diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a3ba35e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +**/.idea/ +**/*.iml diff --git a/bin/install.bat b/bin/install.bat new file mode 100644 index 0000000..c0034c9 --- /dev/null +++ b/bin/install.bat @@ -0,0 +1,21 @@ +@setlocal + +cd %~dp0 +@echo off +REM set PROJECT_ROOT=../../web_project + +if "%PROJECT_ROOT%" == "" ( + echo =============================================================== + echo コメントアウトされている PROJECT_ROOT を設定してください。 + + echo =============================================================== + pause + GOTO :END +) +@echo on + +set UI_PLUGINS_DIRS=ui_plugins + +node "..\\node_modules\\nablarch-dev-tool-installer\\bin\\installer.js" + +:END \ No newline at end of file diff --git a/bin/install.sh b/bin/install.sh new file mode 100755 index 0000000..60c76e5 --- /dev/null +++ b/bin/install.sh @@ -0,0 +1,5 @@ +export PROJECT_ROOT='../../web_project' +export UI_PLUGINS_DIRS=ui_plugins + +node ../node_modules/.bin/plugin_installer.js + diff --git a/bin/install_for_ssd.bat b/bin/install_for_ssd.bat new file mode 100644 index 0000000..50de102 --- /dev/null +++ b/bin/install_for_ssd.bat @@ -0,0 +1,8 @@ +@setlocal + +cd %~dp0 + +set PROJECT_ROOT=../../nablarch-tutorial-project +set UI_PLUGINS_DIRS=ui_plugins + +node "..\\node_modules\\nablarch-dev-tool-installer\\bin\\installer.js" diff --git a/bin/setup.bat b/bin/setup.bat new file mode 100644 index 0000000..f3803b0 --- /dev/null +++ b/bin/setup.bat @@ -0,0 +1,13 @@ +cd %~dp0 + +call mvn clean compile dependency:copy-dependencies -f ../node_modules/nablarch-dev-tool-server/ui_test/pom.xml + +if NOT "%ERRORLEVEL%" == "0" ( + echo "nablarch-dev-tool-serverのビルドに失敗しました。" + exit /B +) + +pushd .. +npm install +popd +pause diff --git a/bin/setup.sh b/bin/setup.sh new file mode 100755 index 0000000..e773748 --- /dev/null +++ b/bin/setup.sh @@ -0,0 +1,7 @@ +(mvn clean compile dependency:copy-dependencies -f ../node_modules/nablarch-dev-tool-server/ui_test/pom.xml); +if [ $? -ne 0 ]; then + echo "nablarch-dev-tool-server縺ョ繝薙Ν繝峨↓螟ア謨励@縺セ縺励◆縲" + exit $? +fi + +(cd .. && npm install); diff --git a/bin/update.bat b/bin/update.bat new file mode 100644 index 0000000..86d3e74 --- /dev/null +++ b/bin/update.bat @@ -0,0 +1,22 @@ +@setlocal + +cd %~dp0 +@echo off +REM set PROJECT_ROOT=../../nablarch-tutorial-project + +if "%PROJECT_ROOT%" == "" ( + echo =============================================================== + echo コメントアウトされている PROJECT_ROOT を設定してください。 + + echo =============================================================== + pause + GOTO :END +) +@echo on + +set UI_PLUGINS_DIRS=ui_plugins + +node "..\\node_modules\\nablarch-dev-tool-update_support\\bin\\updated_plugin.js" +pause + +:END \ No newline at end of file diff --git a/node_modules/es6-promise/CHANGELOG.md b/node_modules/es6-promise/CHANGELOG.md new file mode 100644 index 0000000..363cc7b --- /dev/null +++ b/node_modules/es6-promise/CHANGELOG.md @@ -0,0 +1,43 @@ +# master + +# 2.0.4 + +* Fix npm package + +# 2.0.3 + +* Fix useSetTimeout bug + +# 2.0.2 + +* Adding RSVP#rethrow +* add pre-built AMD link to README +* adding promise#fail + +# 2.0.1 +* misc IE fixes, including IE array detection +* upload passing builds to s3 +* async: use three args for addEventListener +* satisfy both 1.0 and 1.1 specs +* Run reduce tests only in node +* RSVP.resolve now simply uses the internal resolution procedure +* prevent multiple promise resolutions +* simplify thenable handling +* pre-allocate the deferred's shape +* Moved from Rake-based builds to Grunt +* Fix Promise subclassing bug +* Add RSVP.configure('onerror') +* Throw exception when RSVP.all is called without an array +* refactor RSVP.all to just use a promise directly +* Make `RSVP.denodeify` pass along `thisArg` +* add RSVP.reject +* Reject promise if resolver function throws an exception +* add travis build-status +* correctly test and fix self fulfillment +* remove promise coercion. +* Fix infinite recursion with deep self fulfilling promises +* doc fixes + +# 2.0.0 + +* No changelog beyond this point. Here be dragons. diff --git a/node_modules/es6-promise/LICENSE b/node_modules/es6-promise/LICENSE new file mode 100644 index 0000000..83dade6 --- /dev/null +++ b/node_modules/es6-promise/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2013 Yehuda Katz, Tom Dale, and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/es6-promise/README.md b/node_modules/es6-promise/README.md new file mode 100644 index 0000000..fc77292 --- /dev/null +++ b/node_modules/es6-promise/README.md @@ -0,0 +1,36 @@ +# ES6-Promises + +This is a polyfill of [ES6 Promises](https://github.com/domenic/promises-unwrapping). The implementation is basically an API remapping of [rsvp.js](https://github.com/tildeio/rsvp.js). + +For API details and how to use promises, see the JavaScript Promises HTML5Rocks article. + +## Downloads + +* [promise](http://s3.amazonaws.com/es6-promises/promise-0.1.1.js) +* [promise-min](http://s3.amazonaws.com/es6-promises/promise-0.1.1.min.js) (~2k gzipped) + +## Node.js + +To install: + +```sh +npm install es6-promise +``` + +To use: + +```js +var Promise = require('es6-promise').Promise; +``` + +## Building & Testing + +This package uses the [grunt-microlib](https://github.com/thomasboyt/grunt-microlib) package for building. + +Custom tasks: + +* `grunt test` - Run Mocha tests through Node and PhantomJS. +* `grunt test:phantom` - Run Mocha tests through PhantomJS (browser build). +* `grunt test:node` - Run Mocha tests through Node (CommonJS build). + +TODO: docs will output wrong diff --git a/node_modules/es6-promise/dist/commonjs/main.js b/node_modules/es6-promise/dist/commonjs/main.js new file mode 100644 index 0000000..2fd7021 --- /dev/null +++ b/node_modules/es6-promise/dist/commonjs/main.js @@ -0,0 +1,5 @@ +"use strict"; +var Promise = require("./promise/promise").Promise; +var polyfill = require("./promise/polyfill").polyfill; +exports.Promise = Promise; +exports.polyfill = polyfill; \ No newline at end of file diff --git a/node_modules/es6-promise/dist/commonjs/promise/all.js b/node_modules/es6-promise/dist/commonjs/promise/all.js new file mode 100644 index 0000000..86ccd1e --- /dev/null +++ b/node_modules/es6-promise/dist/commonjs/promise/all.js @@ -0,0 +1,93 @@ +"use strict"; +/* global toString */ + +var isArray = require("./utils").isArray; +var isFunction = require("./utils").isFunction; + +/** + Returns a promise that is fulfilled when all the given promises have been + fulfilled, or rejected if any of them become rejected. The return promise + is fulfilled with an array that gives all the values in the order they were + passed in the `promises` array argument. + + Example: + + ```javascript + var promise1 = RSVP.resolve(1); + var promise2 = RSVP.resolve(2); + var promise3 = RSVP.resolve(3); + var promises = [ promise1, promise2, promise3 ]; + + RSVP.all(promises).then(function(array){ + // The array here would be [ 1, 2, 3 ]; + }); + ``` + + If any of the `promises` given to `RSVP.all` are rejected, the first promise + that is rejected will be given as an argument to the returned promises's + rejection handler. For example: + + Example: + + ```javascript + var promise1 = RSVP.resolve(1); + var promise2 = RSVP.reject(new Error("2")); + var promise3 = RSVP.reject(new Error("3")); + var promises = [ promise1, promise2, promise3 ]; + + RSVP.all(promises).then(function(array){ + // Code here never runs because there are rejected promises! + }, function(error) { + // error.message === "2" + }); + ``` + + @method all + @for RSVP + @param {Array} promises + @param {String} label + @return {Promise} promise that is fulfilled when all `promises` have been + fulfilled, or rejected if any of them become rejected. +*/ +function all(promises) { + /*jshint validthis:true */ + var Promise = this; + + if (!isArray(promises)) { + throw new TypeError('You must pass an array to all.'); + } + + return new Promise(function(resolve, reject) { + var results = [], remaining = promises.length, + promise; + + if (remaining === 0) { + resolve([]); + } + + function resolver(index) { + return function(value) { + resolveAll(index, value); + }; + } + + function resolveAll(index, value) { + results[index] = value; + if (--remaining === 0) { + resolve(results); + } + } + + for (var i = 0; i < promises.length; i++) { + promise = promises[i]; + + if (promise && isFunction(promise.then)) { + promise.then(resolver(i), reject); + } else { + resolveAll(i, promise); + } + } + }); +} + +exports.all = all; \ No newline at end of file diff --git a/node_modules/es6-promise/dist/commonjs/promise/asap.js b/node_modules/es6-promise/dist/commonjs/promise/asap.js new file mode 100644 index 0000000..73182c8 --- /dev/null +++ b/node_modules/es6-promise/dist/commonjs/promise/asap.js @@ -0,0 +1,61 @@ +"use strict"; +var browserGlobal = (typeof window !== 'undefined') ? window : {}; +var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; +var local = (typeof global !== 'undefined') ? global : this; + +// node +function useNextTick() { + return function() { + process.nextTick(flush); + }; +} + +function useMutationObserver() { + var iterations = 0; + var observer = new BrowserMutationObserver(flush); + var node = document.createTextNode(''); + observer.observe(node, { characterData: true }); + + return function() { + node.data = (iterations = ++iterations % 2); + }; +} + +function useSetTimeout() { + return function() { + local.setTimeout(flush, 1); + }; +} + +var queue = []; +function flush() { + for (var i = 0; i < queue.length; i++) { + var tuple = queue[i]; + var callback = tuple[0], arg = tuple[1]; + callback(arg); + } + queue = []; +} + +var scheduleFlush; + +// Decide what async method to use to triggering processing of queued callbacks: +if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') { + scheduleFlush = useNextTick(); +} else if (BrowserMutationObserver) { + scheduleFlush = useMutationObserver(); +} else { + scheduleFlush = useSetTimeout(); +} + +function asap(callback, arg) { + var length = queue.push([callback, arg]); + if (length === 1) { + // If length is 1, that means that we need to schedule an async flush. + // If additional callbacks are queued before the queue is flushed, they + // will be processed by this flush that we are scheduling. + scheduleFlush(); + } +} + +exports.asap = asap; \ No newline at end of file diff --git a/node_modules/es6-promise/dist/commonjs/promise/cast.js b/node_modules/es6-promise/dist/commonjs/promise/cast.js new file mode 100644 index 0000000..3fc5ad5 --- /dev/null +++ b/node_modules/es6-promise/dist/commonjs/promise/cast.js @@ -0,0 +1,67 @@ +"use strict"; +/** + `RSVP.Promise.cast` returns the same promise if that promise shares a constructor + with the promise being casted. + + Example: + + ```javascript + var promise = RSVP.resolve(1); + var casted = RSVP.Promise.cast(promise); + + console.log(promise === casted); // true + ``` + + In the case of a promise whose constructor does not match, it is assimilated. + The resulting promise will fulfill or reject based on the outcome of the + promise being casted. + + In the case of a non-promise, a promise which will fulfill with that value is + returned. + + Example: + + ```javascript + var value = 1; // could be a number, boolean, string, undefined... + var casted = RSVP.Promise.cast(value); + + console.log(value === casted); // false + console.log(casted instanceof RSVP.Promise) // true + + casted.then(function(val) { + val === value // => true + }); + ``` + + `RSVP.Promise.cast` is similar to `RSVP.resolve`, but `RSVP.Promise.cast` differs in the + following ways: + * `RSVP.Promise.cast` serves as a memory-efficient way of getting a promise, when you + have something that could either be a promise or a value. RSVP.resolve + will have the same effect but will create a new promise wrapper if the + argument is a promise. + * `RSVP.Promise.cast` is a way of casting incoming thenables or promise subclasses to + promises of the exact class specified, so that the resulting object's `then` is + ensured to have the behavior of the constructor you are calling cast on (i.e., RSVP.Promise). + + @method cast + @for RSVP + @param {Object} object to be casted + @return {Promise} promise that is fulfilled when all properties of `promises` + have been fulfilled, or rejected if any of them become rejected. +*/ + + +function cast(object) { + /*jshint validthis:true */ + if (object && typeof object === 'object' && object.constructor === this) { + return object; + } + + var Promise = this; + + return new Promise(function(resolve) { + resolve(object); + }); +} + +exports.cast = cast; \ No newline at end of file diff --git a/node_modules/es6-promise/dist/commonjs/promise/config.js b/node_modules/es6-promise/dist/commonjs/promise/config.js new file mode 100644 index 0000000..1e73f46 --- /dev/null +++ b/node_modules/es6-promise/dist/commonjs/promise/config.js @@ -0,0 +1,15 @@ +"use strict"; +var config = { + instrument: false +}; + +function configure(name, value) { + if (arguments.length === 2) { + config[name] = value; + } else { + return config[name]; + } +} + +exports.config = config; +exports.configure = configure; \ No newline at end of file diff --git a/node_modules/es6-promise/dist/commonjs/promise/polyfill.js b/node_modules/es6-promise/dist/commonjs/promise/polyfill.js new file mode 100644 index 0000000..4104706 --- /dev/null +++ b/node_modules/es6-promise/dist/commonjs/promise/polyfill.js @@ -0,0 +1,28 @@ +"use strict"; +var RSVPPromise = require("./promise").Promise; +var isFunction = require("./utils").isFunction; + +function polyfill() { + var es6PromiseSupport = + "Promise" in window && + // Some of these methods are missing from + // Firefox/Chrome experimental implementations + "cast" in window.Promise && + "resolve" in window.Promise && + "reject" in window.Promise && + "all" in window.Promise && + "race" in window.Promise && + // Older version of the spec had a resolver object + // as the arg rather than a function + (function() { + var resolve; + new window.Promise(function(r) { resolve = r; }); + return isFunction(resolve); + }()); + + if (!es6PromiseSupport) { + window.Promise = RSVPPromise; + } +} + +exports.polyfill = polyfill; \ No newline at end of file diff --git a/node_modules/es6-promise/dist/commonjs/promise/promise.js b/node_modules/es6-promise/dist/commonjs/promise/promise.js new file mode 100644 index 0000000..353f62a --- /dev/null +++ b/node_modules/es6-promise/dist/commonjs/promise/promise.js @@ -0,0 +1,213 @@ +"use strict"; +var config = require("./config").config; +var configure = require("./config").configure; +var objectOrFunction = require("./utils").objectOrFunction; +var isFunction = require("./utils").isFunction; +var now = require("./utils").now; +var cast = require("./cast").cast; +var all = require("./all").all; +var race = require("./race").race; +var staticResolve = require("./resolve").resolve; +var staticReject = require("./reject").reject; +var asap = require("./asap").asap; + +var counter = 0; + +config.async = asap; // default async is asap; + +function Promise(resolver) { + if (!isFunction(resolver)) { + throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); + } + + if (!(this instanceof Promise)) { + throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); + } + + this._subscribers = []; + + invokeResolver(resolver, this); +} + +function invokeResolver(resolver, promise) { + function resolvePromise(value) { + resolve(promise, value); + } + + function rejectPromise(reason) { + reject(promise, reason); + } + + try { + resolver(resolvePromise, rejectPromise); + } catch(e) { + rejectPromise(e); + } +} + +function invokeCallback(settled, promise, callback, detail) { + var hasCallback = isFunction(callback), + value, error, succeeded, failed; + + if (hasCallback) { + try { + value = callback(detail); + succeeded = true; + } catch(e) { + failed = true; + error = e; + } + } else { + value = detail; + succeeded = true; + } + + if (handleThenable(promise, value)) { + return; + } else if (hasCallback && succeeded) { + resolve(promise, value); + } else if (failed) { + reject(promise, error); + } else if (settled === FULFILLED) { + resolve(promise, value); + } else if (settled === REJECTED) { + reject(promise, value); + } +} + +var PENDING = void 0; +var SEALED = 0; +var FULFILLED = 1; +var REJECTED = 2; + +function subscribe(parent, child, onFulfillment, onRejection) { + var subscribers = parent._subscribers; + var length = subscribers.length; + + subscribers[length] = child; + subscribers[length + FULFILLED] = onFulfillment; + subscribers[length + REJECTED] = onRejection; +} + +function publish(promise, settled) { + var child, callback, subscribers = promise._subscribers, detail = promise._detail; + + for (var i = 0; i < subscribers.length; i += 3) { + child = subscribers[i]; + callback = subscribers[i + settled]; + + invokeCallback(settled, child, callback, detail); + } + + promise._subscribers = null; +} + +Promise.prototype = { + constructor: Promise, + + _state: undefined, + _detail: undefined, + _subscribers: undefined, + + then: function(onFulfillment, onRejection) { + var promise = this; + + var thenPromise = new this.constructor(function() {}); + + if (this._state) { + var callbacks = arguments; + config.async(function invokePromiseCallback() { + invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail); + }); + } else { + subscribe(this, thenPromise, onFulfillment, onRejection); + } + + return thenPromise; + }, + + 'catch': function(onRejection) { + return this.then(null, onRejection); + } +}; + +Promise.all = all; +Promise.cast = cast; +Promise.race = race; +Promise.resolve = staticResolve; +Promise.reject = staticReject; + +function handleThenable(promise, value) { + var then = null, + resolved; + + try { + if (promise === value) { + throw new TypeError("A promises callback cannot return that same promise."); + } + + if (objectOrFunction(value)) { + then = value.then; + + if (isFunction(then)) { + then.call(value, function(val) { + if (resolved) { return true; } + resolved = true; + + if (value !== val) { + resolve(promise, val); + } else { + fulfill(promise, val); + } + }, function(val) { + if (resolved) { return true; } + resolved = true; + + reject(promise, val); + }); + + return true; + } + } + } catch (error) { + if (resolved) { return true; } + reject(promise, error); + return true; + } + + return false; +} + +function resolve(promise, value) { + if (promise === value) { + fulfill(promise, value); + } else if (!handleThenable(promise, value)) { + fulfill(promise, value); + } +} + +function fulfill(promise, value) { + if (promise._state !== PENDING) { return; } + promise._state = SEALED; + promise._detail = value; + + config.async(publishFulfillment, promise); +} + +function reject(promise, reason) { + if (promise._state !== PENDING) { return; } + promise._state = SEALED; + promise._detail = reason; + + config.async(publishRejection, promise); +} + +function publishFulfillment(promise) { + publish(promise, promise._state = FULFILLED); +} + +function publishRejection(promise) { + publish(promise, promise._state = REJECTED); +} + +exports.Promise = Promise; \ No newline at end of file diff --git a/node_modules/es6-promise/dist/commonjs/promise/race.js b/node_modules/es6-promise/dist/commonjs/promise/race.js new file mode 100644 index 0000000..9a21f87 --- /dev/null +++ b/node_modules/es6-promise/dist/commonjs/promise/race.js @@ -0,0 +1,89 @@ +"use strict"; +/* global toString */ +var isArray = require("./utils").isArray; + +/** + `RSVP.race` allows you to watch a series of promises and act as soon as the + first promise given to the `promises` argument fulfills or rejects. + + Example: + + ```javascript + var promise1 = new RSVP.Promise(function(resolve, reject){ + setTimeout(function(){ + resolve("promise 1"); + }, 200); + }); + + var promise2 = new RSVP.Promise(function(resolve, reject){ + setTimeout(function(){ + resolve("promise 2"); + }, 100); + }); + + RSVP.race([promise1, promise2]).then(function(result){ + // result === "promise 2" because it was resolved before promise1 + // was resolved. + }); + ``` + + `RSVP.race` is deterministic in that only the state of the first completed + promise matters. For example, even if other promises given to the `promises` + array argument are resolved, but the first completed promise has become + rejected before the other promises became fulfilled, the returned promise + will become rejected: + + ```javascript + var promise1 = new RSVP.Promise(function(resolve, reject){ + setTimeout(function(){ + resolve("promise 1"); + }, 200); + }); + + var promise2 = new RSVP.Promise(function(resolve, reject){ + setTimeout(function(){ + reject(new Error("promise 2")); + }, 100); + }); + + RSVP.race([promise1, promise2]).then(function(result){ + // Code here never runs because there are rejected promises! + }, function(reason){ + // reason.message === "promise2" because promise 2 became rejected before + // promise 1 became fulfilled + }); + ``` + + @method race + @for RSVP + @param {Array} promises array of promises to observe + @param {String} label optional string for describing the promise returned. + Useful for tooling. + @return {Promise} a promise that becomes fulfilled with the value the first + completed promises is resolved with if the first completed promise was + fulfilled, or rejected with the reason that the first completed promise + was rejected with. +*/ +function race(promises) { + /*jshint validthis:true */ + var Promise = this; + + if (!isArray(promises)) { + throw new TypeError('You must pass an array to race.'); + } + return new Promise(function(resolve, reject) { + var results = [], promise; + + for (var i = 0; i < promises.length; i++) { + promise = promises[i]; + + if (promise && typeof promise.then === 'function') { + promise.then(resolve, reject); + } else { + resolve(promise); + } + } + }); +} + +exports.race = race; \ No newline at end of file diff --git a/node_modules/es6-promise/dist/commonjs/promise/reject.js b/node_modules/es6-promise/dist/commonjs/promise/reject.js new file mode 100644 index 0000000..d8e90c5 --- /dev/null +++ b/node_modules/es6-promise/dist/commonjs/promise/reject.js @@ -0,0 +1,47 @@ +"use strict"; +/** + `RSVP.reject` returns a promise that will become rejected with the passed + `reason`. `RSVP.reject` is essentially shorthand for the following: + + ```javascript + var promise = new RSVP.Promise(function(resolve, reject){ + reject(new Error('WHOOPS')); + }); + + promise.then(function(value){ + // Code here doesn't run because the promise is rejected! + }, function(reason){ + // reason.message === 'WHOOPS' + }); + ``` + + Instead of writing the above, your code now simply becomes the following: + + ```javascript + var promise = RSVP.reject(new Error('WHOOPS')); + + promise.then(function(value){ + // Code here doesn't run because the promise is rejected! + }, function(reason){ + // reason.message === 'WHOOPS' + }); + ``` + + @method reject + @for RSVP + @param {Any} reason value that the returned promise will be rejected with. + @param {String} label optional string for identifying the returned promise. + Useful for tooling. + @return {Promise} a promise that will become rejected with the given + `reason`. +*/ +function reject(reason) { + /*jshint validthis:true */ + var Promise = this; + + return new Promise(function (resolve, reject) { + reject(reason); + }); +} + +exports.reject = reject; \ No newline at end of file diff --git a/node_modules/es6-promise/dist/commonjs/promise/resolve.js b/node_modules/es6-promise/dist/commonjs/promise/resolve.js new file mode 100644 index 0000000..011b460 --- /dev/null +++ b/node_modules/es6-promise/dist/commonjs/promise/resolve.js @@ -0,0 +1,42 @@ +"use strict"; +/** + `RSVP.resolve` returns a promise that will become fulfilled with the passed + `value`. `RSVP.resolve` is essentially shorthand for the following: + + ```javascript + var promise = new RSVP.Promise(function(resolve, reject){ + resolve(1); + }); + + promise.then(function(value){ + // value === 1 + }); + ``` + + Instead of writing the above, your code now simply becomes the following: + + ```javascript + var promise = RSVP.resolve(1); + + promise.then(function(value){ + // value === 1 + }); + ``` + + @method resolve + @for RSVP + @param {Any} value value that the returned promise will be resolved with + @param {String} label optional string for identifying the returned promise. + Useful for tooling. + @return {Promise} a promise that will become fulfilled with the given + `value` +*/ +function resolve(value) { + /*jshint validthis:true */ + var Promise = this; + return new Promise(function(resolve, reject) { + resolve(value); + }); +} + +exports.resolve = resolve; \ No newline at end of file diff --git a/node_modules/es6-promise/dist/commonjs/promise/utils.js b/node_modules/es6-promise/dist/commonjs/promise/utils.js new file mode 100644 index 0000000..7791c2b --- /dev/null +++ b/node_modules/es6-promise/dist/commonjs/promise/utils.js @@ -0,0 +1,22 @@ +"use strict"; +function objectOrFunction(x) { + return isFunction(x) || (typeof x === "object" && x !== null); +} + +function isFunction(x) { + return typeof x === "function"; +} + +function isArray(x) { + return Object.prototype.toString.call(x) === "[object Array]"; +} + +// Date.now is not available in browsers < IE9 +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility +var now = Date.now || function() { return new Date().getTime(); }; + + +exports.objectOrFunction = objectOrFunction; +exports.isFunction = isFunction; +exports.isArray = isArray; +exports.now = now; \ No newline at end of file diff --git a/node_modules/es6-promise/dist/promise-0.1.1.amd.js b/node_modules/es6-promise/dist/promise-0.1.1.amd.js new file mode 100644 index 0000000..5f604f3 --- /dev/null +++ b/node_modules/es6-promise/dist/promise-0.1.1.amd.js @@ -0,0 +1,721 @@ +/** + @class RSVP + @module RSVP + */ +define("promise/all", + ["./utils","exports"], + function(__dependency1__, __exports__) { + "use strict"; + /* global toString */ + + var isArray = __dependency1__.isArray; + var isFunction = __dependency1__.isFunction; + + /** + Returns a promise that is fulfilled when all the given promises have been + fulfilled, or rejected if any of them become rejected. The return promise + is fulfilled with an array that gives all the values in the order they were + passed in the `promises` array argument. + + Example: + + ```javascript + var promise1 = RSVP.resolve(1); + var promise2 = RSVP.resolve(2); + var promise3 = RSVP.resolve(3); + var promises = [ promise1, promise2, promise3 ]; + + RSVP.all(promises).then(function(array){ + // The array here would be [ 1, 2, 3 ]; + }); + ``` + + If any of the `promises` given to `RSVP.all` are rejected, the first promise + that is rejected will be given as an argument to the returned promises's + rejection handler. For example: + + Example: + + ```javascript + var promise1 = RSVP.resolve(1); + var promise2 = RSVP.reject(new Error("2")); + var promise3 = RSVP.reject(new Error("3")); + var promises = [ promise1, promise2, promise3 ]; + + RSVP.all(promises).then(function(array){ + // Code here never runs because there are rejected promises! + }, function(error) { + // error.message === "2" + }); + ``` + + @method all + @for RSVP + @param {Array} promises + @param {String} label + @return {Promise} promise that is fulfilled when all `promises` have been + fulfilled, or rejected if any of them become rejected. + */ + function all(promises) { + /*jshint validthis:true */ + var Promise = this; + + if (!isArray(promises)) { + throw new TypeError('You must pass an array to all.'); + } + + return new Promise(function(resolve, reject) { + var results = [], remaining = promises.length, + promise; + + if (remaining === 0) { + resolve([]); + } + + function resolver(index) { + return function(value) { + resolveAll(index, value); + }; + } + + function resolveAll(index, value) { + results[index] = value; + if (--remaining === 0) { + resolve(results); + } + } + + for (var i = 0; i < promises.length; i++) { + promise = promises[i]; + + if (promise && isFunction(promise.then)) { + promise.then(resolver(i), reject); + } else { + resolveAll(i, promise); + } + } + }); + } + + __exports__.all = all; + }); +define("promise/asap", + ["exports"], + function(__exports__) { + "use strict"; + var browserGlobal = (typeof window !== 'undefined') ? window : {}; + var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; + var local = (typeof global !== 'undefined') ? global : this; + + // node + function useNextTick() { + return function() { + process.nextTick(flush); + }; + } + + function useMutationObserver() { + var iterations = 0; + var observer = new BrowserMutationObserver(flush); + var node = document.createTextNode(''); + observer.observe(node, { characterData: true }); + + return function() { + node.data = (iterations = ++iterations % 2); + }; + } + + function useSetTimeout() { + return function() { + local.setTimeout(flush, 1); + }; + } + + var queue = []; + function flush() { + for (var i = 0; i < queue.length; i++) { + var tuple = queue[i]; + var callback = tuple[0], arg = tuple[1]; + callback(arg); + } + queue = []; + } + + var scheduleFlush; + + // Decide what async method to use to triggering processing of queued callbacks: + if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') { + scheduleFlush = useNextTick(); + } else if (BrowserMutationObserver) { + scheduleFlush = useMutationObserver(); + } else { + scheduleFlush = useSetTimeout(); + } + + function asap(callback, arg) { + var length = queue.push([callback, arg]); + if (length === 1) { + // If length is 1, that means that we need to schedule an async flush. + // If additional callbacks are queued before the queue is flushed, they + // will be processed by this flush that we are scheduling. + scheduleFlush(); + } + } + + __exports__.asap = asap; + }); +define("promise/cast", + ["exports"], + function(__exports__) { + "use strict"; + /** + `RSVP.Promise.cast` returns the same promise if that promise shares a constructor + with the promise being casted. + + Example: + + ```javascript + var promise = RSVP.resolve(1); + var casted = RSVP.Promise.cast(promise); + + console.log(promise === casted); // true + ``` + + In the case of a promise whose constructor does not match, it is assimilated. + The resulting promise will fulfill or reject based on the outcome of the + promise being casted. + + In the case of a non-promise, a promise which will fulfill with that value is + returned. + + Example: + + ```javascript + var value = 1; // could be a number, boolean, string, undefined... + var casted = RSVP.Promise.cast(value); + + console.log(value === casted); // false + console.log(casted instanceof RSVP.Promise) // true + + casted.then(function(val) { + val === value // => true + }); + ``` + + `RSVP.Promise.cast` is similar to `RSVP.resolve`, but `RSVP.Promise.cast` differs in the + following ways: + * `RSVP.Promise.cast` serves as a memory-efficient way of getting a promise, when you + have something that could either be a promise or a value. RSVP.resolve + will have the same effect but will create a new promise wrapper if the + argument is a promise. + * `RSVP.Promise.cast` is a way of casting incoming thenables or promise subclasses to + promises of the exact class specified, so that the resulting object's `then` is + ensured to have the behavior of the constructor you are calling cast on (i.e., RSVP.Promise). + + @method cast + @for RSVP + @param {Object} object to be casted + @return {Promise} promise that is fulfilled when all properties of `promises` + have been fulfilled, or rejected if any of them become rejected. + */ + + + function cast(object) { + /*jshint validthis:true */ + if (object && typeof object === 'object' && object.constructor === this) { + return object; + } + + var Promise = this; + + return new Promise(function(resolve) { + resolve(object); + }); + } + + __exports__.cast = cast; + }); +define("promise/config", + ["exports"], + function(__exports__) { + "use strict"; + var config = { + instrument: false + }; + + function configure(name, value) { + if (arguments.length === 2) { + config[name] = value; + } else { + return config[name]; + } + } + + __exports__.config = config; + __exports__.configure = configure; + }); +define("promise/polyfill", + ["./promise","./utils","exports"], + function(__dependency1__, __dependency2__, __exports__) { + "use strict"; + var RSVPPromise = __dependency1__.Promise; + var isFunction = __dependency2__.isFunction; + + function polyfill() { + var es6PromiseSupport = + "Promise" in window && + // Some of these methods are missing from + // Firefox/Chrome experimental implementations + "cast" in window.Promise && + "resolve" in window.Promise && + "reject" in window.Promise && + "all" in window.Promise && + "race" in window.Promise && + // Older version of the spec had a resolver object + // as the arg rather than a function + (function() { + var resolve; + new window.Promise(function(r) { resolve = r; }); + return isFunction(resolve); + }()); + + if (!es6PromiseSupport) { + window.Promise = RSVPPromise; + } + } + + __exports__.polyfill = polyfill; + }); +define("promise/promise", + ["./config","./utils","./cast","./all","./race","./resolve","./reject","./asap","exports"], + function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) { + "use strict"; + var config = __dependency1__.config; + var configure = __dependency1__.configure; + var objectOrFunction = __dependency2__.objectOrFunction; + var isFunction = __dependency2__.isFunction; + var now = __dependency2__.now; + var cast = __dependency3__.cast; + var all = __dependency4__.all; + var race = __dependency5__.race; + var staticResolve = __dependency6__.resolve; + var staticReject = __dependency7__.reject; + var asap = __dependency8__.asap; + + var counter = 0; + + config.async = asap; // default async is asap; + + function Promise(resolver) { + if (!isFunction(resolver)) { + throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); + } + + if (!(this instanceof Promise)) { + throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); + } + + this._subscribers = []; + + invokeResolver(resolver, this); + } + + function invokeResolver(resolver, promise) { + function resolvePromise(value) { + resolve(promise, value); + } + + function rejectPromise(reason) { + reject(promise, reason); + } + + try { + resolver(resolvePromise, rejectPromise); + } catch(e) { + rejectPromise(e); + } + } + + function invokeCallback(settled, promise, callback, detail) { + var hasCallback = isFunction(callback), + value, error, succeeded, failed; + + if (hasCallback) { + try { + value = callback(detail); + succeeded = true; + } catch(e) { + failed = true; + error = e; + } + } else { + value = detail; + succeeded = true; + } + + if (handleThenable(promise, value)) { + return; + } else if (hasCallback && succeeded) { + resolve(promise, value); + } else if (failed) { + reject(promise, error); + } else if (settled === FULFILLED) { + resolve(promise, value); + } else if (settled === REJECTED) { + reject(promise, value); + } + } + + var PENDING = void 0; + var SEALED = 0; + var FULFILLED = 1; + var REJECTED = 2; + + function subscribe(parent, child, onFulfillment, onRejection) { + var subscribers = parent._subscribers; + var length = subscribers.length; + + subscribers[length] = child; + subscribers[length + FULFILLED] = onFulfillment; + subscribers[length + REJECTED] = onRejection; + } + + function publish(promise, settled) { + var child, callback, subscribers = promise._subscribers, detail = promise._detail; + + for (var i = 0; i < subscribers.length; i += 3) { + child = subscribers[i]; + callback = subscribers[i + settled]; + + invokeCallback(settled, child, callback, detail); + } + + promise._subscribers = null; + } + + Promise.prototype = { + constructor: Promise, + + _state: undefined, + _detail: undefined, + _subscribers: undefined, + + then: function(onFulfillment, onRejection) { + var promise = this; + + var thenPromise = new this.constructor(function() {}); + + if (this._state) { + var callbacks = arguments; + config.async(function invokePromiseCallback() { + invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail); + }); + } else { + subscribe(this, thenPromise, onFulfillment, onRejection); + } + + return thenPromise; + }, + + 'catch': function(onRejection) { + return this.then(null, onRejection); + } + }; + + Promise.all = all; + Promise.cast = cast; + Promise.race = race; + Promise.resolve = staticResolve; + Promise.reject = staticReject; + + function handleThenable(promise, value) { + var then = null, + resolved; + + try { + if (promise === value) { + throw new TypeError("A promises callback cannot return that same promise."); + } + + if (objectOrFunction(value)) { + then = value.then; + + if (isFunction(then)) { + then.call(value, function(val) { + if (resolved) { return true; } + resolved = true; + + if (value !== val) { + resolve(promise, val); + } else { + fulfill(promise, val); + } + }, function(val) { + if (resolved) { return true; } + resolved = true; + + reject(promise, val); + }); + + return true; + } + } + } catch (error) { + if (resolved) { return true; } + reject(promise, error); + return true; + } + + return false; + } + + function resolve(promise, value) { + if (promise === value) { + fulfill(promise, value); + } else if (!handleThenable(promise, value)) { + fulfill(promise, value); + } + } + + function fulfill(promise, value) { + if (promise._state !== PENDING) { return; } + promise._state = SEALED; + promise._detail = value; + + config.async(publishFulfillment, promise); + } + + function reject(promise, reason) { + if (promise._state !== PENDING) { return; } + promise._state = SEALED; + promise._detail = reason; + + config.async(publishRejection, promise); + } + + function publishFulfillment(promise) { + publish(promise, promise._state = FULFILLED); + } + + function publishRejection(promise) { + publish(promise, promise._state = REJECTED); + } + + __exports__.Promise = Promise; + }); +define("promise/race", + ["./utils","exports"], + function(__dependency1__, __exports__) { + "use strict"; + /* global toString */ + var isArray = __dependency1__.isArray; + + /** + `RSVP.race` allows you to watch a series of promises and act as soon as the + first promise given to the `promises` argument fulfills or rejects. + + Example: + + ```javascript + var promise1 = new RSVP.Promise(function(resolve, reject){ + setTimeout(function(){ + resolve("promise 1"); + }, 200); + }); + + var promise2 = new RSVP.Promise(function(resolve, reject){ + setTimeout(function(){ + resolve("promise 2"); + }, 100); + }); + + RSVP.race([promise1, promise2]).then(function(result){ + // result === "promise 2" because it was resolved before promise1 + // was resolved. + }); + ``` + + `RSVP.race` is deterministic in that only the state of the first completed + promise matters. For example, even if other promises given to the `promises` + array argument are resolved, but the first completed promise has become + rejected before the other promises became fulfilled, the returned promise + will become rejected: + + ```javascript + var promise1 = new RSVP.Promise(function(resolve, reject){ + setTimeout(function(){ + resolve("promise 1"); + }, 200); + }); + + var promise2 = new RSVP.Promise(function(resolve, reject){ + setTimeout(function(){ + reject(new Error("promise 2")); + }, 100); + }); + + RSVP.race([promise1, promise2]).then(function(result){ + // Code here never runs because there are rejected promises! + }, function(reason){ + // reason.message === "promise2" because promise 2 became rejected before + // promise 1 became fulfilled + }); + ``` + + @method race + @for RSVP + @param {Array} promises array of promises to observe + @param {String} label optional string for describing the promise returned. + Useful for tooling. + @return {Promise} a promise that becomes fulfilled with the value the first + completed promises is resolved with if the first completed promise was + fulfilled, or rejected with the reason that the first completed promise + was rejected with. + */ + function race(promises) { + /*jshint validthis:true */ + var Promise = this; + + if (!isArray(promises)) { + throw new TypeError('You must pass an array to race.'); + } + return new Promise(function(resolve, reject) { + var results = [], promise; + + for (var i = 0; i < promises.length; i++) { + promise = promises[i]; + + if (promise && typeof promise.then === 'function') { + promise.then(resolve, reject); + } else { + resolve(promise); + } + } + }); + } + + __exports__.race = race; + }); +define("promise/reject", + ["exports"], + function(__exports__) { + "use strict"; + /** + `RSVP.reject` returns a promise that will become rejected with the passed + `reason`. `RSVP.reject` is essentially shorthand for the following: + + ```javascript + var promise = new RSVP.Promise(function(resolve, reject){ + reject(new Error('WHOOPS')); + }); + + promise.then(function(value){ + // Code here doesn't run because the promise is rejected! + }, function(reason){ + // reason.message === 'WHOOPS' + }); + ``` + + Instead of writing the above, your code now simply becomes the following: + + ```javascript + var promise = RSVP.reject(new Error('WHOOPS')); + + promise.then(function(value){ + // Code here doesn't run because the promise is rejected! + }, function(reason){ + // reason.message === 'WHOOPS' + }); + ``` + + @method reject + @for RSVP + @param {Any} reason value that the returned promise will be rejected with. + @param {String} label optional string for identifying the returned promise. + Useful for tooling. + @return {Promise} a promise that will become rejected with the given + `reason`. + */ + function reject(reason) { + /*jshint validthis:true */ + var Promise = this; + + return new Promise(function (resolve, reject) { + reject(reason); + }); + } + + __exports__.reject = reject; + }); +define("promise/resolve", + ["exports"], + function(__exports__) { + "use strict"; + /** + `RSVP.resolve` returns a promise that will become fulfilled with the passed + `value`. `RSVP.resolve` is essentially shorthand for the following: + + ```javascript + var promise = new RSVP.Promise(function(resolve, reject){ + resolve(1); + }); + + promise.then(function(value){ + // value === 1 + }); + ``` + + Instead of writing the above, your code now simply becomes the following: + + ```javascript + var promise = RSVP.resolve(1); + + promise.then(function(value){ + // value === 1 + }); + ``` + + @method resolve + @for RSVP + @param {Any} value value that the returned promise will be resolved with + @param {String} label optional string for identifying the returned promise. + Useful for tooling. + @return {Promise} a promise that will become fulfilled with the given + `value` + */ + function resolve(value) { + /*jshint validthis:true */ + var Promise = this; + return new Promise(function(resolve, reject) { + resolve(value); + }); + } + + __exports__.resolve = resolve; + }); +define("promise/utils", + ["exports"], + function(__exports__) { + "use strict"; + function objectOrFunction(x) { + return isFunction(x) || (typeof x === "object" && x !== null); + } + + function isFunction(x) { + return typeof x === "function"; + } + + function isArray(x) { + return Object.prototype.toString.call(x) === "[object Array]"; + } + + // Date.now is not available in browsers < IE9 + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility + var now = Date.now || function() { return new Date().getTime(); }; + + + __exports__.objectOrFunction = objectOrFunction; + __exports__.isFunction = isFunction; + __exports__.isArray = isArray; + __exports__.now = now; + }); \ No newline at end of file diff --git a/node_modules/es6-promise/dist/promise-0.1.1.js b/node_modules/es6-promise/dist/promise-0.1.1.js new file mode 100644 index 0000000..fe60bfd --- /dev/null +++ b/node_modules/es6-promise/dist/promise-0.1.1.js @@ -0,0 +1,774 @@ +(function() { +var define, requireModule, require, requirejs; + +(function() { + var registry = {}, seen = {}; + + define = function(name, deps, callback) { + registry[name] = { deps: deps, callback: callback }; + }; + + requirejs = require = requireModule = function(name) { + requirejs._eak_seen = registry; + + if (seen[name]) { return seen[name]; } + seen[name] = {}; + + if (!registry[name]) { + throw new Error("Could not find module " + name); + } + + var mod = registry[name], + deps = mod.deps, + callback = mod.callback, + reified = [], + exports; + + for (var i=0, l=deps.length; i true + }); + ``` + + `RSVP.Promise.cast` is similar to `RSVP.resolve`, but `RSVP.Promise.cast` differs in the + following ways: + * `RSVP.Promise.cast` serves as a memory-efficient way of getting a promise, when you + have something that could either be a promise or a value. RSVP.resolve + will have the same effect but will create a new promise wrapper if the + argument is a promise. + * `RSVP.Promise.cast` is a way of casting incoming thenables or promise subclasses to + promises of the exact class specified, so that the resulting object's `then` is + ensured to have the behavior of the constructor you are calling cast on (i.e., RSVP.Promise). + + @method cast + @for RSVP + @param {Object} object to be casted + @return {Promise} promise that is fulfilled when all properties of `promises` + have been fulfilled, or rejected if any of them become rejected. + */ + + + function cast(object) { + /*jshint validthis:true */ + if (object && typeof object === 'object' && object.constructor === this) { + return object; + } + + var Promise = this; + + return new Promise(function(resolve) { + resolve(object); + }); + } + + __exports__.cast = cast; + }); +define("promise/config", + ["exports"], + function(__exports__) { + "use strict"; + var config = { + instrument: false + }; + + function configure(name, value) { + if (arguments.length === 2) { + config[name] = value; + } else { + return config[name]; + } + } + + __exports__.config = config; + __exports__.configure = configure; + }); +define("promise/polyfill", + ["./promise","./utils","exports"], + function(__dependency1__, __dependency2__, __exports__) { + "use strict"; + var RSVPPromise = __dependency1__.Promise; + var isFunction = __dependency2__.isFunction; + + function polyfill() { + var es6PromiseSupport = + "Promise" in window && + // Some of these methods are missing from + // Firefox/Chrome experimental implementations + "cast" in window.Promise && + "resolve" in window.Promise && + "reject" in window.Promise && + "all" in window.Promise && + "race" in window.Promise && + // Older version of the spec had a resolver object + // as the arg rather than a function + (function() { + var resolve; + new window.Promise(function(r) { resolve = r; }); + return isFunction(resolve); + }()); + + if (!es6PromiseSupport) { + window.Promise = RSVPPromise; + } + } + + __exports__.polyfill = polyfill; + }); +define("promise/promise", + ["./config","./utils","./cast","./all","./race","./resolve","./reject","./asap","exports"], + function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) { + "use strict"; + var config = __dependency1__.config; + var configure = __dependency1__.configure; + var objectOrFunction = __dependency2__.objectOrFunction; + var isFunction = __dependency2__.isFunction; + var now = __dependency2__.now; + var cast = __dependency3__.cast; + var all = __dependency4__.all; + var race = __dependency5__.race; + var staticResolve = __dependency6__.resolve; + var staticReject = __dependency7__.reject; + var asap = __dependency8__.asap; + + var counter = 0; + + config.async = asap; // default async is asap; + + function Promise(resolver) { + if (!isFunction(resolver)) { + throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); + } + + if (!(this instanceof Promise)) { + throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); + } + + this._subscribers = []; + + invokeResolver(resolver, this); + } + + function invokeResolver(resolver, promise) { + function resolvePromise(value) { + resolve(promise, value); + } + + function rejectPromise(reason) { + reject(promise, reason); + } + + try { + resolver(resolvePromise, rejectPromise); + } catch(e) { + rejectPromise(e); + } + } + + function invokeCallback(settled, promise, callback, detail) { + var hasCallback = isFunction(callback), + value, error, succeeded, failed; + + if (hasCallback) { + try { + value = callback(detail); + succeeded = true; + } catch(e) { + failed = true; + error = e; + } + } else { + value = detail; + succeeded = true; + } + + if (handleThenable(promise, value)) { + return; + } else if (hasCallback && succeeded) { + resolve(promise, value); + } else if (failed) { + reject(promise, error); + } else if (settled === FULFILLED) { + resolve(promise, value); + } else if (settled === REJECTED) { + reject(promise, value); + } + } + + var PENDING = void 0; + var SEALED = 0; + var FULFILLED = 1; + var REJECTED = 2; + + function subscribe(parent, child, onFulfillment, onRejection) { + var subscribers = parent._subscribers; + var length = subscribers.length; + + subscribers[length] = child; + subscribers[length + FULFILLED] = onFulfillment; + subscribers[length + REJECTED] = onRejection; + } + + function publish(promise, settled) { + var child, callback, subscribers = promise._subscribers, detail = promise._detail; + + for (var i = 0; i < subscribers.length; i += 3) { + child = subscribers[i]; + callback = subscribers[i + settled]; + + invokeCallback(settled, child, callback, detail); + } + + promise._subscribers = null; + } + + Promise.prototype = { + constructor: Promise, + + _state: undefined, + _detail: undefined, + _subscribers: undefined, + + then: function(onFulfillment, onRejection) { + var promise = this; + + var thenPromise = new this.constructor(function() {}); + + if (this._state) { + var callbacks = arguments; + config.async(function invokePromiseCallback() { + invokeCallback(promise._state, thenPromise, callbacks[promise._state - 1], promise._detail); + }); + } else { + subscribe(this, thenPromise, onFulfillment, onRejection); + } + + return thenPromise; + }, + + 'catch': function(onRejection) { + return this.then(null, onRejection); + } + }; + + Promise.all = all; + Promise.cast = cast; + Promise.race = race; + Promise.resolve = staticResolve; + Promise.reject = staticReject; + + function handleThenable(promise, value) { + var then = null, + resolved; + + try { + if (promise === value) { + throw new TypeError("A promises callback cannot return that same promise."); + } + + if (objectOrFunction(value)) { + then = value.then; + + if (isFunction(then)) { + then.call(value, function(val) { + if (resolved) { return true; } + resolved = true; + + if (value !== val) { + resolve(promise, val); + } else { + fulfill(promise, val); + } + }, function(val) { + if (resolved) { return true; } + resolved = true; + + reject(promise, val); + }); + + return true; + } + } + } catch (error) { + if (resolved) { return true; } + reject(promise, error); + return true; + } + + return false; + } + + function resolve(promise, value) { + if (promise === value) { + fulfill(promise, value); + } else if (!handleThenable(promise, value)) { + fulfill(promise, value); + } + } + + function fulfill(promise, value) { + if (promise._state !== PENDING) { return; } + promise._state = SEALED; + promise._detail = value; + + config.async(publishFulfillment, promise); + } + + function reject(promise, reason) { + if (promise._state !== PENDING) { return; } + promise._state = SEALED; + promise._detail = reason; + + config.async(publishRejection, promise); + } + + function publishFulfillment(promise) { + publish(promise, promise._state = FULFILLED); + } + + function publishRejection(promise) { + publish(promise, promise._state = REJECTED); + } + + __exports__.Promise = Promise; + }); +define("promise/race", + ["./utils","exports"], + function(__dependency1__, __exports__) { + "use strict"; + /* global toString */ + var isArray = __dependency1__.isArray; + + /** + `RSVP.race` allows you to watch a series of promises and act as soon as the + first promise given to the `promises` argument fulfills or rejects. + + Example: + + ```javascript + var promise1 = new RSVP.Promise(function(resolve, reject){ + setTimeout(function(){ + resolve("promise 1"); + }, 200); + }); + + var promise2 = new RSVP.Promise(function(resolve, reject){ + setTimeout(function(){ + resolve("promise 2"); + }, 100); + }); + + RSVP.race([promise1, promise2]).then(function(result){ + // result === "promise 2" because it was resolved before promise1 + // was resolved. + }); + ``` + + `RSVP.race` is deterministic in that only the state of the first completed + promise matters. For example, even if other promises given to the `promises` + array argument are resolved, but the first completed promise has become + rejected before the other promises became fulfilled, the returned promise + will become rejected: + + ```javascript + var promise1 = new RSVP.Promise(function(resolve, reject){ + setTimeout(function(){ + resolve("promise 1"); + }, 200); + }); + + var promise2 = new RSVP.Promise(function(resolve, reject){ + setTimeout(function(){ + reject(new Error("promise 2")); + }, 100); + }); + + RSVP.race([promise1, promise2]).then(function(result){ + // Code here never runs because there are rejected promises! + }, function(reason){ + // reason.message === "promise2" because promise 2 became rejected before + // promise 1 became fulfilled + }); + ``` + + @method race + @for RSVP + @param {Array} promises array of promises to observe + @param {String} label optional string for describing the promise returned. + Useful for tooling. + @return {Promise} a promise that becomes fulfilled with the value the first + completed promises is resolved with if the first completed promise was + fulfilled, or rejected with the reason that the first completed promise + was rejected with. + */ + function race(promises) { + /*jshint validthis:true */ + var Promise = this; + + if (!isArray(promises)) { + throw new TypeError('You must pass an array to race.'); + } + return new Promise(function(resolve, reject) { + var results = [], promise; + + for (var i = 0; i < promises.length; i++) { + promise = promises[i]; + + if (promise && typeof promise.then === 'function') { + promise.then(resolve, reject); + } else { + resolve(promise); + } + } + }); + } + + __exports__.race = race; + }); +define("promise/reject", + ["exports"], + function(__exports__) { + "use strict"; + /** + `RSVP.reject` returns a promise that will become rejected with the passed + `reason`. `RSVP.reject` is essentially shorthand for the following: + + ```javascript + var promise = new RSVP.Promise(function(resolve, reject){ + reject(new Error('WHOOPS')); + }); + + promise.then(function(value){ + // Code here doesn't run because the promise is rejected! + }, function(reason){ + // reason.message === 'WHOOPS' + }); + ``` + + Instead of writing the above, your code now simply becomes the following: + + ```javascript + var promise = RSVP.reject(new Error('WHOOPS')); + + promise.then(function(value){ + // Code here doesn't run because the promise is rejected! + }, function(reason){ + // reason.message === 'WHOOPS' + }); + ``` + + @method reject + @for RSVP + @param {Any} reason value that the returned promise will be rejected with. + @param {String} label optional string for identifying the returned promise. + Useful for tooling. + @return {Promise} a promise that will become rejected with the given + `reason`. + */ + function reject(reason) { + /*jshint validthis:true */ + var Promise = this; + + return new Promise(function (resolve, reject) { + reject(reason); + }); + } + + __exports__.reject = reject; + }); +define("promise/resolve", + ["exports"], + function(__exports__) { + "use strict"; + /** + `RSVP.resolve` returns a promise that will become fulfilled with the passed + `value`. `RSVP.resolve` is essentially shorthand for the following: + + ```javascript + var promise = new RSVP.Promise(function(resolve, reject){ + resolve(1); + }); + + promise.then(function(value){ + // value === 1 + }); + ``` + + Instead of writing the above, your code now simply becomes the following: + + ```javascript + var promise = RSVP.resolve(1); + + promise.then(function(value){ + // value === 1 + }); + ``` + + @method resolve + @for RSVP + @param {Any} value value that the returned promise will be resolved with + @param {String} label optional string for identifying the returned promise. + Useful for tooling. + @return {Promise} a promise that will become fulfilled with the given + `value` + */ + function resolve(value) { + /*jshint validthis:true */ + var Promise = this; + return new Promise(function(resolve, reject) { + resolve(value); + }); + } + + __exports__.resolve = resolve; + }); +define("promise/utils", + ["exports"], + function(__exports__) { + "use strict"; + function objectOrFunction(x) { + return isFunction(x) || (typeof x === "object" && x !== null); + } + + function isFunction(x) { + return typeof x === "function"; + } + + function isArray(x) { + return Object.prototype.toString.call(x) === "[object Array]"; + } + + // Date.now is not available in browsers < IE9 + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility + var now = Date.now || function() { return new Date().getTime(); }; + + + __exports__.objectOrFunction = objectOrFunction; + __exports__.isFunction = isFunction; + __exports__.isArray = isArray; + __exports__.now = now; + }); +requireModule('promise/polyfill').polyfill(); +}()); \ No newline at end of file diff --git a/node_modules/es6-promise/dist/promise-0.1.1.min.js b/node_modules/es6-promise/dist/promise-0.1.1.min.js new file mode 100644 index 0000000..89569ba --- /dev/null +++ b/node_modules/es6-promise/dist/promise-0.1.1.min.js @@ -0,0 +1 @@ +!function(){var a,b,c,d;!function(){var e={},f={};a=function(a,b,c){e[a]={deps:b,callback:c}},d=c=b=function(a){function c(b){if("."!==b.charAt(0))return b;for(var c=b.split("/"),d=a.split("/").slice(0,-1),e=0,f=c.length;f>e;e++){var g=c[e];if(".."===g)d.pop();else{if("."===g)continue;d.push(g)}}return d.join("/")}if(d._eak_seen=e,f[a])return f[a];if(f[a]={},!e[a])throw new Error("Could not find module "+a);for(var g,h=e[a],i=h.deps,j=h.callback,k=[],l=0,m=i.length;m>l;l++)"exports"===i[l]?k.push(g={}):k.push(b(c(i[l])));var n=j.apply(this,k);return f[a]=g||n}}(),a("promise/all",["./utils","exports"],function(a,b){"use strict";function c(a){var b=this;if(!d(a))throw new TypeError("You must pass an array to all.");return new b(function(b,c){function d(a){return function(b){f(a,b)}}function f(a,c){h[a]=c,0===--i&&b(h)}var g,h=[],i=a.length;0===i&&b([]);for(var j=0;jJavaScript Promises HTML5Rocks article.\n\n## Downloads\n\n* [promise](http://s3.amazonaws.com/es6-promises/promise-0.1.1.js)\n* [promise-min](http://s3.amazonaws.com/es6-promises/promise-0.1.1.min.js) (~2k gzipped)\n\n## Node.js\n\nTo install:\n\n```sh\nnpm install es6-promise\n```\n\nTo use:\n\n```js\nvar Promise = require('es6-promise').Promise;\n```\n\n## Building & Testing\n\nThis package uses the [grunt-microlib](https://github.com/thomasboyt/grunt-microlib) package for building.\n\nCustom tasks:\n\n* `grunt test` - Run Mocha tests through Node and PhantomJS.\n* `grunt test:phantom` - Run Mocha tests through PhantomJS (browser build).\n* `grunt test:node` - Run Mocha tests through Node (CommonJS build).\n\nTODO: docs will output wrong\n", + "readmeFilename": "README.md", + "homepage": "https://github.com/jakearchibald/ES6-Promises", + "_id": "es6-promise@0.1.1", + "dist": { + "shasum": "80e3bae22decb5df9cefbe027e41a0ecc17837ef" + }, + "_from": "es6-promise@*", + "_resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-0.1.1.tgz" +} diff --git a/node_modules/nablarch-css-base/package.json b/node_modules/nablarch-css-base/package.json new file mode 100644 index 0000000..f49d75d --- /dev/null +++ b/node_modules/nablarch-css-base/package.json @@ -0,0 +1,7 @@ +{ + "name": "nablarch-css-base", + "version": "1.0.0", + "description":"html縺ョ蝓コ譛ャ隕∫エ縺ォ蟇セ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ繧定。後≧繝励Λ繧ー繧、繝ウ", + "_from" : "nablarch-css-base@1.0.0", + "dependencies": {} +} diff --git a/node_modules/nablarch-css-base/ui_public/css/style/base.less b/node_modules/nablarch-css-base/ui_public/css/style/base.less new file mode 100644 index 0000000..6e3e938 --- /dev/null +++ b/node_modules/nablarch-css-base/ui_public/css/style/base.less @@ -0,0 +1,193 @@ +@charset "UTF-8"; + +html, body { + font-size : @baseFontSize; + font-family : "繝偵Λ繧ョ繝手ァ偵ざ Pro W3","Hiragino Kaku Gothic Pro","繝。繧、繝ェ繧ェ",Meiryo,"シュシウ シー繧エ繧キ繝繧ッ",Verdana sans-serif; + color : @mainColor2; + background-color : @baseColor; +} + +h1 { + font-size : @largestFontSize; + text-shadow : 1px 1px 3px #666; +} + +h2 { + font-size : @largerFontSize; + color : @mainColor2; + border-left : 5px solid @mainColor1; + padding-left : 5px; + margin-top : 5px; + border-bottom : 1px solid @mainColor1; + text-shadow : 0 1px 1px rgba(0,0,0,.3); +} + +h3 { + border-bottom : 1px solid @mainColor1; +} + +h1, h2, h3 { + margin : 0.5em 0.2em; +} + +h1, h2, h3, h4, h5, h6, strong { + font-weight : bold; +} + +abbr, acronym { + border-bottom : 1px dotted @mainColor2; + cursor : help; +} + +em { + font-style : italic; +} + +blockquote, ul, ol, dl { + margin : 0.9em; +} + +ol, ul, dl { + margin-left : 2em; +} + +ol { + list-style : decimal outside; +} + +ul { + list-style : disc outside; +} + +dl dd { + margin-left : 0.9em; +} + +table { + border-collapse: separate; + border-spacing: 2px; +} + +th, td { + padding : 5px 1px; +} + +td { + font-size: @smallestFontSize; +} + +th, td.vheader { + font-size : @smallestFontSize; + font-weight : bold; + text-align : center; + border-bottom : 1px solid @mainColor2; + border-top : 1px solid @mainColor2; + background-color : lighten(@mainColor2, 10%); +} + +th.vheader { + background-color : @baseColor; + border: 0; +} + +th, th a, td.vheader { + color : @baseColor; +} + +a:hover { + cursor : pointer; +} + +caption { + margin-bottom : 0.5em; + text-align : center; +} + +p, fieldset, table, pre { + margin-bottom : 1em; +} + +input, textarea, select { + border-color : @mainColor2; + border-style : solid; + border-width : 1px; + color : @mainColor2; + padding-left : 1px; +} + + +input[type='checkbox'], input[type='radio'] { + border: none; +} + +i { + font-size : @largerFontSize; + margin : 0 0 0 0; +} + +.button() { + color : @baseColor; + border : solid 1px darken(@mainColor1, 10%); + text-shadow : 0 1px 1px rgba(0,0,0,.3); + font-weight : bold; + padding : 3px; + border-radius : 20px; + cursor : pointer; + .vertical-gradient(lighten(@mainColor1, 20%), @mainColor1); + .box-shadow(0,0,0,.2); + + &:hover, &:focus { + color : @baseColor; + .vertical-gradient(lighten(@mainColor1, 10%), @mainColor1); + } + + &[name="confirm"] { + border : solid 1px darken(@subColor, 10%); + .vertical-gradient(lighten(@subColor, 20%), @subColor); + } + + &[name="confirm"]:hover { + border : solid 1px darken(@subColor, 10%); + .vertical-gradient(lighten(@subColor, 10%), @subColor); + } + &[disabled] { + .vertical-gradient(lighten(@mainColor1, 25%), lighten(@mainColor1, 25%)); + border-color : lighten(@mainColor1, 15%); + color : #ddd; + cursor : default; + } + &[disabled]:hover { + .vertical-gradient(lighten(@mainColor1, 25%), lighten(@mainColor1, 25%)); + } +} + +input[type="submit"], +input[type="button"], +input[type="reset"] { + .button(); +} + +a.button { + .button(); + text-decoration: none; +} + +button { + .button(); +} + +i.fa { + margin: 2px; +} + +select[disabled='true'], select[disabled='disabled'], +input[disabled='true'], input[disabled='disabled'], +textarea[disbled='true'], textarea[disabled='disabled'] { + opacity : 1 !important; + color : #555 !important; + background-color: #efefef !important; +} + +input[type='checkbox'], input[type='radio'] { + background-color: transparent !important; +} diff --git a/node_modules/nablarch-css-color-default/package.json b/node_modules/nablarch-css-color-default/package.json new file mode 100644 index 0000000..2e02abc --- /dev/null +++ b/node_modules/nablarch-css-color-default/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-css-color-default", + "version": "1.0.0", + "description": "Nablarch繝繝シ繝槭ョ繧ォ繝ゥ繝シ繧ケ繧ュ繝シ繝", + "_from" : "nablarch-css-color-default@1.0.0", + "dependencies": { + } +} \ No newline at end of file diff --git a/node_modules/nablarch-css-color-default/ui_public/css/color/default-color-scheme.less b/node_modules/nablarch-css-color-default/ui_public/css/color/default-color-scheme.less new file mode 100644 index 0000000..f5d667a --- /dev/null +++ b/node_modules/nablarch-css-color-default/ui_public/css/color/default-color-scheme.less @@ -0,0 +1,8 @@ +/** + * Nablarch繝悶Λ繝ウ繝峨き繝ゥ繝シ繧貞渕隱ソ縺ィ縺励◆驟崎牡險ュ螳 + */ +@baseColor : rgb(255, 255, 255); // 逋ス +@mainColor1 : rgb(235, 92, 21); // 繧ェ繝ャ繝ウ繧ク +@mainColor2 : rgb(76, 42, 26); // 縺薙£闌カ +@subColor : rgb(170, 10, 10); // 襍、 + diff --git a/node_modules/nablarch-css-common/package.json b/node_modules/nablarch-css-common/package.json new file mode 100644 index 0000000..bd6553a --- /dev/null +++ b/node_modules/nablarch-css-common/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-css-common", + "version": "1.0.0", + "description": "蜈ア騾咾SS", + "_from" : "nablarch-css-common@1.0.0", + "dependencies": {} +} + diff --git a/node_modules/nablarch-css-common/ui_public/css/common/nablarch.less b/node_modules/nablarch-css-common/ui_public/css/common/nablarch.less new file mode 100644 index 0000000..e1e0061 --- /dev/null +++ b/node_modules/nablarch-css-common/ui_public/css/common/nablarch.less @@ -0,0 +1,30 @@ +/****************************************************************************** +n:errors繧ソ繧ー縺ァ蜃コ蜉帙&繧後k繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク陦ィ遉コ鬆伜沺縺ョ繧ケ繧ソ繧、繝ォ螳夂セゥ +******************************************************************************/ +.nablarch_errors { + border: 2.6px solid #FF0000; + margin: 15px 0px; + padding-left: 40px; +} + +li.nablarch_error, span.nablarch_error { + list-style: disc; + color: red; +} + +li.nablarch_error, div.nablarch_error { + color: #FF0000; + font-size: @smallestFontSize; +} + +/****************************************************************************** +n:error繧ソ繧ー縺ァ蜃コ蜉帙&繧後k繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク陦ィ遉コ鬆伜沺縺ィ +繧ィ繝ゥ繝シ蜴溷屏縺ィ縺ェ縺」縺溷・蜉幄ヲ∫エ縺ォ蟇セ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ +******************************************************************************/ +input.nablarch_error,select.nablarch_error,textarea.nablarch_error { + background-color: #FFFF00; +} + +input[type='file'].nablarch_error::-ms-value { + background-color: #FFFF00; +} diff --git a/node_modules/nablarch-css-conf-compact/package.json b/node_modules/nablarch-css-conf-compact/package.json new file mode 100644 index 0000000..7bd37da --- /dev/null +++ b/node_modules/nablarch-css-conf-compact/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-css-conf-compact", + "version": "1.0.0", + "description": "繧ウ繝ウ繝代け繝郁。ィ遉コ逕ィ縺ョ繧ケ繧ソ繧、繝ォ螳夂セゥシ亥、画焚螳夂セゥシ", + "_from" : "nablarch-css-conf-compact@1.0.0", + "dependencies": { + } +} diff --git a/node_modules/nablarch-css-conf-compact/ui_public/css/conf/page-size-compact.less b/node_modules/nablarch-css-conf-compact/ui_public/css/conf/page-size-compact.less new file mode 100644 index 0000000..c3c439e --- /dev/null +++ b/node_modules/nablarch-css-conf-compact/ui_public/css/conf/page-size-compact.less @@ -0,0 +1,24 @@ +/** + * 蜈ィ逕サ髱「陦ィ遉コ縺悟渕譛ャ縺ィ縺ェ繧九Δ繝舌う繝ォ繝繝舌う繧ケ繧貞燕謠舌→縺励◆繧オ繧、繧コ險ュ螳壹 + * 蜈ィ蟷繧堤判髱「蟷縺ォ荳閾エ縺輔○繧九 + */ +@columns : 24; // 1繝壹シ繧ク蜀縺ョ繧ー繝ェ繝繝画焚 +@trackWidth : 35px; // 1繧ー繝ェ繝繝峨ョ繧ー繝ェ繝繝牙ケ +@gutterWidth : 5px; // 1繧ー繝ェ繝繝峨≠縺溘j縺ョ繝槭シ繧ク繝ウ蟷 +@totalWidth : 100%; // 1繝壹シ繧ク縺ョ讓ェ蟷 + +@smallestFontSize : 11px; +@smallerFontSize : 12px; +@baseFontSize : 14px; +@largerFontSize : 16px; +@largestFontSize : 18px; + +// 繧ー繝ェ繝繝画焚 +@labelGridSpan : 4; // 繝ゥ繝吶Ν驛ィ縺ョ繧ー繝ェ繝繝画焚 +@inputGridSpan : 8; // 蜈・蜉帶ャ縺ョ繧ー繝ェ繝繝画焚 +@unitGridSpan : 2; // 蜊倅ス崎。ィ遉コ驛ィ縺ョ繧ー繝ェ繝繝画焚 +@buttonGridSpan : 3; // 讓呎コ悶懊ち繝ウ縺ョ繧ー繝ェ繝繝 + +@fieldGridSpan : 16; // 讌ュ蜍咏判髱「驛ィ縺ォ驟咲スョ縺吶k隕∫エ縺ョ繧ー繝ェ繝繝画焚 +@tableGridSpan : 16; // 讓呎コ悶ユ繝シ繝悶Ν縺ョ繧ー繝ェ繝繝画焚 +@contentGridSpan: 16; // 讌ュ蜍咎擇驛ィ縺ョ繧ー繝ェ繝繝画焚 diff --git a/node_modules/nablarch-css-conf-multicol/package.json b/node_modules/nablarch-css-conf-multicol/package.json new file mode 100644 index 0000000..4be9883 --- /dev/null +++ b/node_modules/nablarch-css-conf-multicol/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-css-conf-multicol", + "version": "1.0.0", + "description": "繝槭Ν繝√き繝ゥ繝陦ィ遉コ逕ィ縺ョ繧ケ繧ソ繧、繝ォ螳夂セゥシ亥、画焚螳夂セゥシ", + "_from" : "nablarch-css-conf-multicol@1.0.0", + "dependencies": { + } +} diff --git a/node_modules/nablarch-css-conf-multicol/ui_public/css/conf/page-size-multicol.less b/node_modules/nablarch-css-conf-multicol/ui_public/css/conf/page-size-multicol.less new file mode 100644 index 0000000..b5c8a9b --- /dev/null +++ b/node_modules/nablarch-css-conf-multicol/ui_public/css/conf/page-size-multicol.less @@ -0,0 +1,29 @@ +/** + * XGA(1024x768)莉・荳翫ョ隗」蜒丞コヲ縺ォ蟇セ蠢懊@縺溽判髱「繧オ繧、繧コ險ュ螳壹 + * 讓ェ蟷 965px 縺ョ蝗コ螳壹Ξ繧、繧「繧ヲ繝医→縺ェ繧九 + * + * @since 1.4 + * @author Hisaaki Sioiri + */ +@columns : 64; // 1繝壹シ繧ク蜀縺ョ繧ー繝ェ繝繝画焚 +@trackWidth : 13px; // 1繧ー繝ェ繝繝峨ョ繧ー繝ェ繝繝牙ケ +@gutterWidth : 2px; // 1繧ー繝ェ繝繝峨≠縺溘j縺ョ繝槭シ繧ク繝ウ蟷 +@totalWidth : @columns * (@trackWidth + @gutterWidth); // 1繝壹シ繧ク縺ョ讓ェ蟷 + +@smallestFontSize : 11px; +@smallerFontSize : 12px; +@baseFontSize : 14px; +@largerFontSize : 16px; +@largestFontSize : 18px; + +// 繧ー繝ェ繝繝画焚(繝繝輔か繝ォ繝医ョ繧ー繝ェ繝繝画焚シ +@labelGridSpan : 10; // 繝ゥ繝吶Ν驛ィ縺ョ繧ー繝ェ繝繝画焚 +@inputGridSpan : 21; // 蜈・蜉帶ャ縺ョ繧ー繝ェ繝繝画焚 +@buttonGridSpan : 8; // 讓呎コ悶懊ち繝ウ縺ョ繧ー繝ェ繝繝画焚 +@unitGridSpan : 3; // 蜊倅ス崎。ィ遉コ驛ィ縺ョ繧ー繝ェ繝繝画焚 + +@fieldGridSpan : 45; // 讌ュ蜍咏判髱「驛ィ縺ォ驟咲スョ縺吶k隕∫エ縺ョ繧ー繝ェ繝繝画焚 +@tableGridSpan : 45; // 讓呎コ悶ユ繝シ繝悶Ν縺ョ繧ー繝ェ繝繝画焚 +@contentGridSpan: 45; // 讌ュ蜍咎擇驛ィ縺ョ繧ー繝ェ繝繝画焚 +@contentWidth : @contentGridSpan * (@trackWidth + @gutterWidth); // 讌ュ蜍咎伜沺縺ョ蟷 + diff --git a/node_modules/nablarch-css-conf-narrow/package.json b/node_modules/nablarch-css-conf-narrow/package.json new file mode 100644 index 0000000..9742821 --- /dev/null +++ b/node_modules/nablarch-css-conf-narrow/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-css-conf-narrow", + "version": "1.0.0", + "description": "繝翫Ο繝シ陦ィ遉コ逕ィ縺ョ繧ケ繧ソ繧、繝ォ螳夂セゥシ亥、画焚螳夂セゥシ", + "_from" : "nablarch-css-conf-narrow@1.0.0", + "dependencies": { + } +} diff --git a/node_modules/nablarch-css-conf-narrow/ui_public/css/conf/page-size-narrow.less b/node_modules/nablarch-css-conf-narrow/ui_public/css/conf/page-size-narrow.less new file mode 100644 index 0000000..5d1ed59 --- /dev/null +++ b/node_modules/nablarch-css-conf-narrow/ui_public/css/conf/page-size-narrow.less @@ -0,0 +1,25 @@ +/** + * 荳サ縺ォ繧ケ繝槭シ繝医ヵ繧ゥ繝ウ縺ョ邵ヲ陦ィ遉コ縺ォ蟇セ蠢懊@縺溽判髱「繧オ繧、繧コ險ュ螳壹 + * 逕サ髱「蜀縺ョ蜈ィ縺ヲ縺ョ隕∫エ繧呈ィェ蟷 320px (隲也炊繝斐け繧サ繝ォ) 縺ォ蜿弱∪繧九h縺縺ォ驟咲スョ縺吶k縲 + */ +@columns : 24; // 1繝壹シ繧ク蜀縺ョ繧ー繝ェ繝繝画焚 +@trackWidth : 35px; // 1繧ー繝ェ繝繝峨ョ繧ー繝ェ繝繝牙ケ +@gutterWidth : 5px; // 1繧ー繝ェ繝繝峨≠縺溘j縺ョ繝槭シ繧ク繝ウ蟷 +@totalWidth : 100%; // 1繝壹シ繧ク縺ョ讓ェ蟷 +@minWidth : 320px; // 譛蟆乗ィェ蟷 + +@smallestFontSize : 11px; +@smallerFontSize : 12px; +@baseFontSize : 14px; +@largerFontSize : 16px; +@largestFontSize : 18px; + +// 繧ー繝ェ繝繝画焚 +@labelGridSpan : 8; // 繝ゥ繝吶Ν驛ィ縺ョ繧ー繝ェ繝繝画焚 +@inputGridSpan : @labelGridSpan; // 蜈・蜉帶ャ縺ョ繧ー繝ェ繝繝画焚 +@unitGridSpan : 2; // 蜊倅ス崎。ィ遉コ驛ィ縺ョ繧ー繝ェ繝繝画焚 +@buttonGridSpan : 3; // 讓呎コ悶懊ち繝ウ縺ョ繧ー繝ェ繝繝 + +@fieldGridSpan : 16; // 讌ュ蜍咏判髱「驛ィ縺ォ驟咲スョ縺吶k隕∫エ縺ョ繧ー繝ェ繝繝画焚 +@tableGridSpan : 8; // 讓呎コ悶ユ繝シ繝悶Ν縺ョ繧ー繝ェ繝繝画焚 +@contentGridSpan: 16; // 讌ュ蜍咎擇驛ィ縺ョ繧ー繝ェ繝繝画焚 diff --git a/node_modules/nablarch-css-conf-wide/package.json b/node_modules/nablarch-css-conf-wide/package.json new file mode 100644 index 0000000..5750291 --- /dev/null +++ b/node_modules/nablarch-css-conf-wide/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-css-conf-wide", + "version": "1.0.0", + "description": "繝ッ繧、繝芽。ィ遉コ逕ィ縺ョ繧ケ繧ソ繧、繝ォ螳夂セゥシ亥、画焚螳夂セゥシ", + "_from" : "nablarch-css-conf-wide@1.0.0", + "dependencies": { + } +} diff --git a/node_modules/nablarch-css-conf-wide/ui_public/css/conf/page-size-wide.less b/node_modules/nablarch-css-conf-wide/ui_public/css/conf/page-size-wide.less new file mode 100644 index 0000000..1d36147 --- /dev/null +++ b/node_modules/nablarch-css-conf-wide/ui_public/css/conf/page-size-wide.less @@ -0,0 +1,27 @@ +/** + * XGA(1024x768)莉・荳翫ョ隗」蜒丞コヲ縺ォ蟇セ蠢懊@縺溽判髱「繧オ繧、繧コ險ュ螳壹 + * 讓ェ蟷 965px 縺ョ蝗コ螳壹Ξ繧、繧「繧ヲ繝医→縺ェ繧九 + * + * @since 1.3 + * @author iwauo tajima + */ +@columns : 24; // 1繝壹シ繧ク蜀縺ョ繧ー繝ェ繝繝画焚 +@trackWidth : 35px; // 1繧ー繝ェ繝繝峨ョ繧ー繝ェ繝繝牙ケ +@gutterWidth : 5px; // 1繧ー繝ェ繝繝峨≠縺溘j縺ョ繝槭シ繧ク繝ウ蟷 +@totalWidth : @columns * (@trackWidth + @gutterWidth); // 1繝壹シ繧ク縺ョ讓ェ蟷 + +@smallestFontSize : 11px; +@smallerFontSize : 12px; +@baseFontSize : 14px; +@largerFontSize : 16px; +@largestFontSize : 18px; + +// 繧ー繝ェ繝繝画焚 +@labelGridSpan : 4; // 繝ゥ繝吶Ν驛ィ縺ョ繧ー繝ェ繝繝画焚 +@inputGridSpan : 8; // 蜈・蜉帶ャ縺ョ繧ー繝ェ繝繝画焚 +@unitGridSpan : 2; // 蜊倅ス崎。ィ遉コ驛ィ縺ョ繧ー繝ェ繝繝画焚 +@buttonGridSpan : 3; // 讓呎コ悶懊ち繝ウ縺ョ繧ー繝ェ繝繝画焚 + +@fieldGridSpan : 16; // 讌ュ蜍咏判髱「驛ィ縺ォ驟咲スョ縺吶k隕∫エ縺ョ繧ー繝ェ繝繝画焚 +@tableGridSpan : 16; // 讓呎コ悶ユ繝シ繝悶Ν縺ョ繧ー繝ェ繝繝画焚 +@contentGridSpan: 16; // 讌ュ蜍咎擇驛ィ縺ョ繧ー繝ェ繝繝画焚 diff --git a/node_modules/nablarch-css-core/package.json b/node_modules/nablarch-css-core/package.json new file mode 100644 index 0000000..c636c76 --- /dev/null +++ b/node_modules/nablarch-css-core/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-css-core", + "version": "1.0.1", + "description": "Nablarch Core CSS", + "_from" : "nablarch-css-core@1.0.1", + "dependencies": { + } +} diff --git a/node_modules/nablarch-css-core/ui_public/css/core/css3.less b/node_modules/nablarch-css-core/ui_public/css/core/css3.less new file mode 100644 index 0000000..9d174ef --- /dev/null +++ b/node_modules/nablarch-css-core/ui_public/css/core/css3.less @@ -0,0 +1,180 @@ +.viewport-width(@maxwidth) { + @media screen and (min-width: 635px) and (max-width: @maxwidth) { + width: 635px !important; + } + @media screen and (min-width: 625px) and (max-width: 634px) and (max-width: @maxwidth) { + width: 625px !important; + } + @media screen and (min-width: 600px) and (max-width: 624px)and (max-width: @maxwidth) { + width: 600px !important; + } + @media screen and (min-width: 575px) and (max-width: 599px)and (max-width: @maxwidth) { + width: 575px !important; + } + @media screen and (min-width: 550px) and (max-width: 574px) and (max-width: @maxwidth) { + width: 550px !important; + } + @media screen and (min-width: 525px) and (max-width: 549px) and (max-width: @maxwidth) { + width: 525px !important; + } + @media screen and (min-width: 500px) and (max-width: 524px) and (max-width: @maxwidth) { + width: 500px !important; + } + @media screen and (min-width: 475px) and (max-width: 499px) and (max-width: @maxwidth) { + width: 475px !important; + } + @media screen and (min-width: 450px) and (max-width: 474px) and (max-width: @maxwidth) { + width: 450px !important; + } + @media screen and (min-width: 425px) and (max-width: 449px) and (max-width: @maxwidth) { + width: 425px !important; + } + @media screen and (min-width: 400px) and (max-width: 424px) and (max-width: @maxwidth) { + width: 400px !important; + } + @media screen and (min-width: 375px) and (max-width: 399px) and (max-width: @maxwidth) { + width: 375px !important; + } + @media screen and (min-width: 350px) and (max-width: 374px) and (max-width: @maxwidth) { + width: 350px !important; + } + @media screen and (max-width: 349px) { + width: 320px !important; + } +} + +.horizontal-gradient(@start, @stop: #FFF) { + background: -webkit-gradient(linear, left bottom, right bottom, + color-stop(0, @start), color-stop(1, @stop)); + background: -ms-linear-gradient(left, @start 0%, @stop 100%); + background: -moz-linear-gradient(center left, @start 0%, @stop 100%); + background: -o-linear-gradient(center left, @start 0%, @stop 100%); + filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorStr="@start~", EndColorStr="@stop~",GradientType=1)"; + background-color: @stop; // fallback +} + +.vertical-gradient(@start, @stop: #FFF) { + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0, @start), color-stop(1, @stop)); + background: -ms-linear-gradient(top, @start 0%, @stop 100%); + background: -moz-linear-gradient(top, @start 0%, @stop 100%); + background: -o-linear-gradient(top, @start 0%, @stop 100%); + filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorStr="@start~", EndColorStr="@stop~",GradientType=0)"; + + background-color: @stop; // fallback +} + +.box-shadow(@horizontal-offset: 0 + , @vertical-offset : 0 + , @blur-distance : 10px + , @shadow-color : #777) { + + -moz-box-shadow: @horizontal-offset @vertical-offset @blur-distance @shadow-color; + -webkit-box-shadow: @horizontal-offset @vertical-offset @blur-distance @shadow-color; + box-shadow: @horizontal-offset @vertical-offset @blur-distance @shadow-color; +} + +.bordered(@top-color: #EEE, @right-color: #EEE, @bottom-color: #EEE, @left-color: #EEE) { + border-top: solid 1px @top-color; + border-left: solid 1px @left-color; + border-right: solid 1px @right-color; + border-bottom: solid 1px @bottom-color; +} + +.drop-shadow(@x-axis: 0, @y-axis: 1px, @blur: 2px, @alpha: 0.1) { + -webkit-box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha); + -moz-box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha); + box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha); +} + +.rounded(@radius: 2px) { + -webkit-border-radius: @radius; + -moz-border-radius: @radius; + border-radius: @radius; + -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box; +} + +.border-radius(@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) { + -webkit-border-top-right-radius: @topright; + -webkit-border-bottom-right-radius: @bottomright; + -webkit-border-bottom-left-radius: @bottomleft; + -webkit-border-top-left-radius: @topleft; + -moz-border-radius-topright: @topright; + -moz-border-radius-bottomright: @bottomright; + -moz-border-radius-bottomleft: @bottomleft; + -moz-border-radius-topleft: @topleft; + border-top-right-radius: @topright; + border-bottom-right-radius: @bottomright; + border-bottom-left-radius: @bottomleft; + border-top-left-radius: @topleft; + -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box; +} + +.opacity(@opacity: 0.5) { + -moz-opacity: @opacity; + -khtml-opacity: @opacity; + -webkit-opacity: @opacity; + opacity: @opacity; + @ieOpacity: @opacity * 100; + filter: ~"alpha(opacity=@{ieOpacity})"; +} + +.transition-duration(@duration: 0.2s) { + -moz-transition-duration: @duration; + -webkit-transition-duration: @duration; + transition-duration: @duration; +} + +.rotation(@deg:5deg){ + -webkit-transform: rotate(@deg); + -moz-transform: rotate(@deg); + transform: rotate(@deg); +} + +.scale(@ratio:1.5){ + -webkit-transform:scale(@ratio); + -moz-transform:scale(@ratio); + transform:scale(@ratio); +} + +.transition(@duration:0.2s, @ease:ease-out) { + -webkit-transition: all @duration @ease; + -moz-transition: all @duration @ease; + transition: all @duration @ease; +} + +.inner-shadow(@horizontal:0, @vertical:1px, @blur:2px, @alpha: 0.4) { + -webkit-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha); + -moz-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha); + box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha); +} + +.columns(@colwidth: 250px, @colcount: 0, @colgap: 50px, @columnRuleColor: #EEE, + @columnRuleStyle: solid, @columnRuleWidth: 1px) { + -moz-column-width: @colwidth; + -moz-column-count: @colcount; + -moz-column-gap: @colgap; + -moz-column-rule-color: @columnRuleColor; + -moz-column-rule-style: @columnRuleStyle; + -moz-column-rule-width: @columnRuleWidth; + -webkit-column-width: @colwidth; + -webkit-column-count: @colcount; + -webkit-column-gap: @colgap; + -webkit-column-rule-color: @columnRuleColor; + -webkit-column-rule-style: @columnRuleStyle; + -webkit-column-rule-width: @columnRuleWidth; + column-width: @colwidth; + column-count: @colcount; + column-gap: @colgap; + column-rule-color: @columnRuleColor; + column-rule-style: @columnRuleStyle; + column-rule-width: @columnRuleWidth; +} + +.translate(@x:0, @y:0) { + -moz-transform: translate(@x, @y); + -webkit-transform: translate(@x, @y); + -o-transform: translate(@x, @y); + -ms-transform: translate(@x, @y); + transform: translate(@x, @y); +} diff --git a/node_modules/nablarch-css-core/ui_public/css/core/grid.less b/node_modules/nablarch-css-core/ui_public/css/core/grid.less new file mode 100644 index 0000000..1ec4833 --- /dev/null +++ b/node_modules/nablarch-css-core/ui_public/css/core/grid.less @@ -0,0 +1,169 @@ +.grid-row { + width : @totalWidth; + margin : 0 auto; + padding : 0; + clear : both; + position : relative; +} + +.content-row { + clear: both; + margin: 0 auto; + position: relative; + padding: 0; +} + +.grid-row.enclose { + overflow: hidden; +} + +.grid-width-of(@cols) { + width : (@cols * @trackWidth + (@cols - 1) * @gutterWidth) !important; +} + +.grid-offset(@cols) { + margin-left: @cols * (@trackWidth + @gutterWidth); +} + +.grid-offset-i(@cols) { + margin-left: @cols * (@trackWidth + @gutterWidth) !important; +} + +.grid-column { + margin : 0 @gutterWidth 0 0; + float : left; +} + +.grid-col(@cols) { + .grid-column; + width : (@cols * @trackWidth + (@cols - 1) * @gutterWidth); +} + +.grid-col-i(@cols) { + .grid-column; + width : (@cols * @trackWidth + (@cols - 1) * @gutterWidth) !important; +} + +.grid-col-i { + .grid-column; + width : auto !important; + float : none !important; +} + +.grid-col { .grid-col-i; } +.grid-col-1 { .grid-col-i(1); } +.grid-col-2 { .grid-col-i(2); } +.grid-col-3 { .grid-col-i(3); } +.grid-col-4 { .grid-col-i(4); } +.grid-col-5 { .grid-col-i(5); } +.grid-col-6 { .grid-col-i(6); } +.grid-col-7 { .grid-col-i(7); } +.grid-col-8 { .grid-col-i(8); } +.grid-col-9 { .grid-col-i(9); } +.grid-col-10 { .grid-col-i(10); } +.grid-col-11 { .grid-col-i(11); } +.grid-col-12 { .grid-col-i(12); } +.grid-col-13 { .grid-col-i(13); } +.grid-col-14 { .grid-col-i(14); } +.grid-col-15 { .grid-col-i(15); } +.grid-col-16 { .grid-col-i(16); } +.grid-col-17 { .grid-col-i(17); } +.grid-col-18 { .grid-col-i(18); } +.grid-col-19 { .grid-col-i(19); } +.grid-col-20 { .grid-col-i(20); } +.grid-col-21 { .grid-col-i(21); } +.grid-col-22 { .grid-col-i(22); } +.grid-col-23 { .grid-col-i(23); } +.grid-col-24 { .grid-col-i(24); } +.grid-col-25 { .grid-col-i(25); } +.grid-col-26 { .grid-col-i(26); } +.grid-col-27 { .grid-col-i(27); } +.grid-col-28 { .grid-col-i(28); } +.grid-col-29 { .grid-col-i(29); } +.grid-col-30 { .grid-col-i(30); } +.grid-col-31 { .grid-col-i(31); } +.grid-col-32 { .grid-col-i(32); } +.grid-col-33 { .grid-col-i(33); } +.grid-col-34 { .grid-col-i(34); } +.grid-col-35 { .grid-col-i(35); } +.grid-col-36 { .grid-col-i(36); } +.grid-col-37 { .grid-col-i(37); } +.grid-col-38 { .grid-col-i(38); } +.grid-col-39 { .grid-col-i(39); } +.grid-col-40 { .grid-col-i(40); } +.grid-col-41 { .grid-col-i(41); } +.grid-col-42 { .grid-col-i(42); } +.grid-col-43 { .grid-col-i(43); } +.grid-col-44 { .grid-col-i(44); } +.grid-col-45 { .grid-col-i(45); } +.grid-col-46 { .grid-col-i(46); } +.grid-col-47 { .grid-col-i(47); } +.grid-col-48 { .grid-col-i(48); } +.grid-col-49 { .grid-col-i(49); } +.grid-col-50 { .grid-col-i(50); } +.grid-col-51 { .grid-col-i(51); } +.grid-col-52 { .grid-col-i(52); } +.grid-col-53 { .grid-col-i(53); } +.grid-col-54 { .grid-col-i(54); } +.grid-col-55 { .grid-col-i(55); } +.grid-col-56 { .grid-col-i(56); } +.grid-col-57 { .grid-col-i(57); } + + +.grid-offset-1 { .grid-offset-i(1); } +.grid-offset-2 { .grid-offset-i(2); } +.grid-offset-3 { .grid-offset-i(3); } +.grid-offset-4 { .grid-offset-i(4); } +.grid-offset-5 { .grid-offset-i(5); } +.grid-offset-6 { .grid-offset-i(6); } +.grid-offset-7 { .grid-offset-i(7); } +.grid-offset-8 { .grid-offset-i(8); } +.grid-offset-9 { .grid-offset-i(9); } +.grid-offset-10 { .grid-offset-i(10); } +.grid-offset-11 { .grid-offset-i(11); } +.grid-offset-12 { .grid-offset-i(12); } +.grid-offset-13 { .grid-offset-i(13); } +.grid-offset-14 { .grid-offset-i(14); } +.grid-offset-15 { .grid-offset-i(15); } +.grid-offset-16 { .grid-offset-i(16); } +.grid-offset-17 { .grid-offset-i(17); } +.grid-offset-18 { .grid-offset-i(18); } +.grid-offset-19 { .grid-offset-i(19); } +.grid-offset-20 { .grid-offset-i(20); } +.grid-offset-21 { .grid-offset-i(21); } +.grid-offset-22 { .grid-offset-i(22); } +.grid-offset-23 { .grid-offset-i(23); } +.grid-offset-24 { .grid-offset-i(24); } +.grid-offset-25 { .grid-offset-i(25); } +.grid-offset-26 { .grid-offset-i(26); } +.grid-offset-27 { .grid-offset-i(27); } +.grid-offset-28 { .grid-offset-i(28); } +.grid-offset-29 { .grid-offset-i(29); } +.grid-offset-30 { .grid-offset-i(30); } +.grid-offset-31 { .grid-offset-i(31); } +.grid-offset-32 { .grid-offset-i(32); } +.grid-offset-33 { .grid-offset-i(33); } +.grid-offset-34 { .grid-offset-i(34); } +.grid-offset-35 { .grid-offset-i(35); } +.grid-offset-36 { .grid-offset-i(36); } +.grid-offset-37 { .grid-offset-i(37); } +.grid-offset-38 { .grid-offset-i(38); } +.grid-offset-39 { .grid-offset-i(39); } +.grid-offset-40 { .grid-offset-i(40); } +.grid-offset-41 { .grid-offset-i(41); } +.grid-offset-42 { .grid-offset-i(42); } +.grid-offset-43 { .grid-offset-i(43); } +.grid-offset-44 { .grid-offset-i(44); } +.grid-offset-45 { .grid-offset-i(45); } +.grid-offset-46 { .grid-offset-i(46); } +.grid-offset-47 { .grid-offset-i(47); } +.grid-offset-48 { .grid-offset-i(48); } +.grid-offset-49 { .grid-offset-i(49); } +.grid-offset-50 { .grid-offset-i(50); } +.grid-offset-51 { .grid-offset-i(51); } +.grid-offset-52 { .grid-offset-i(52); } +.grid-offset-53 { .grid-offset-i(53); } +.grid-offset-54 { .grid-offset-i(54); } +.grid-offset-55 { .grid-offset-i(55); } +.grid-offset-56 { .grid-offset-i(56); } +.grid-offset-57 { .grid-offset-i(57); } diff --git a/node_modules/nablarch-css-core/ui_public/css/core/reset.less b/node_modules/nablarch-css-core/ui_public/css/core/reset.less new file mode 100644 index 0000000..1bce1d8 --- /dev/null +++ b/node_modules/nablarch-css-core/ui_public/css/core/reset.less @@ -0,0 +1,125 @@ +/* +YUI 3.6.0 (build 5521) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +/* + TODO will need to remove settings on HTML since we can't namespace it. + TODO with the prefix, should I group by selector or property for weight savings? +*/ +html{ + color:#000; + background:#FFF; +} +/* + TODO remove settings on BODY since we can't namespace it. +*/ +/* + TODO test putting a class on HEAD. + - Fails on FF. +*/ +body, +div, +dl, +dt, +dd, +ul, +ol, +li, +h1, +h2, +h3, +h4, +h5, +h6, +pre, +code, +form, +fieldset, +legend, +input, +textarea, +p, +blockquote, +th, +td { + margin:0; + padding:0; +} +table { + border-collapse:collapse; + border-spacing:0; +} +fieldset, +img { + border:0; +} +/* + TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit... +*/ +address, +caption, +cite, +code, +dfn, +em, +strong, +th, +var { + font-style:normal; + font-weight:normal; +} + +ol, +ul { + list-style:none; +} + +caption, +th { + text-align:left; +} +h1, +h2, +h3, +h4, +h5, +h6 { + font-size:100%; + font-weight:normal; +} +q:before, +q:after { + content:''; +} +abbr, +acronym { + border:0; + font-variant:normal; +} +/* to preserve line-height and selector appearance */ +sup { + vertical-align:text-top; +} +sub { + vertical-align:text-bottom; +} +input, +textarea, +select { + font-family:inherit; + font-size:inherit; + font-weight:inherit; +} +/*to enable resizing for IE*/ +input, +textarea, +select { + *font-size:100%; +} +/*because legend doesn't inherit in IE */ +legend { + color:#000; +} + diff --git a/node_modules/nablarch-dev-tool-installer/bin/installer.js b/node_modules/nablarch-dev-tool-installer/bin/installer.js new file mode 100755 index 0000000..4a729b2 --- /dev/null +++ b/node_modules/nablarch-dev-tool-installer/bin/installer.js @@ -0,0 +1,473 @@ +'use strict'; +require('sugar'); + +var fs = require('fs') + , path = require('path') + , http = require('http') + , crypto = require('crypto') + , shell = require('shelljs') + , Promise = global.Promise || require('es6-promise').Promise; + +//螳壽焚螳夂セゥ +var PROJECT_ROOT = process.env.PROJECT_ROOT + , UI_PLUGINS_DIRS = process.env.UI_PLUGINS_DIRS + ? process.env.UI_PLUGINS_DIRS.split(',') : ['ui_plugins'] + , CACHE_DIR = UI_PLUGINS_DIRS.map(function(pluginsDir) { + return path.join(PROJECT_ROOT, pluginsDir, '.npm'); + }) + , REGISTRY_URL = 'http://127.0.0.1:3000/' + , PLUGIN_DIR = '../node_modules' + , PJ_PLUGIN_DIR = UI_PLUGINS_DIRS.map(function(pluginsDir) { + return path.join(PROJECT_ROOT, pluginsDir, 'node_modules'); + }); + +var LAST_PACKAGE = UI_PLUGINS_DIRS.map(function(pluginsDir) { + return path.resolve(path.join(PROJECT_ROOT, pluginsDir, 'lastInstallPackage.json')); + }) + , CURR_PACKAGE = UI_PLUGINS_DIRS.map(function(pluginsDir) { + return path.resolve(path.join(PROJECT_ROOT, pluginsDir, 'package.json')); + }); + +// 繧ュ繝」繝繧キ繝・霑ス蜉蜃ヲ逅縺ョ螟夐榊コヲ(荳翫£縺吶℃繧九→繝上Φ繧ー縺吶k) +//var CACHE_ADD_MULTIPLICITY = 1; // 騾先ャ。螳溯。 +//var CACHE_ADD_MULTIPLICITY = 5; +var CACHE_ADD_MULTIPLICITY = 10; +//var CACHE_ADD_MULTIPLICITY = 20; +//var CACHE_ADD_MULTIPLICITY = 0; // 蜈ィ驛ィ蜷梧凾 + +var registryServer = null; + +var nablarchDevelopMode = false; +var cleanMode = false; +if (process.argv.length > 2) { + if (process.argv[2] === 'nablarchDevelopMode') { + nablarchDevelopMode = true; + } else if (process.argv[2] === 'clean') { + cleanMode = true; + } +} + +// --- script main --- // +function main() { + var currPromise = Promise.resolve([0]); + for(var i = 0; i < UI_PLUGINS_DIRS.length; i++) { + var uiPluginsDir = path.join(PROJECT_ROOT, UI_PLUGINS_DIRS[i]); + if (fs.existsSync(uiPluginsDir)) { + console.log('target dir:', uiPluginsDir); + } else { + console.log(uiPluginsDir, 'is not found.'); + continue; + } + + if (nablarchDevelopMode) { + // 髢狗匱繝「繝シ繝 + currPromise = currPromise + .then(createPluginLink); + } else if (cleanMode) { + // 繧ッ繝ェ繝シ繝ウ繝「繝シ繝 + currPromise = currPromise + .then(cleanup) + .then(runAllNpmUninstall); + } else { + // 騾壼クク繝「繝シ繝 + currPromise = currPromise + .then(cleanup) + .then(updatePluginCache) + .then(startLocalRegistry) + .then(runRejectedNpmUninstall) + .then(runNpmInstall) + .then(stopLocalRegistry); + } + currPromise = currPromise.then(countUpIndex); +// currPromise = currPromise.catch(function(e) { +// console.log(e); +// }); + } +} + +// --- subroutines --- // +/** + * 蜑榊屓縺ョPromise蛟、繧医j繧、繝ウ繝繝繧ッ繧ケ繧貞叙蠕励☆繧 + */ +function currentIndexFromLastResult(lastPromiseResult) { + return lastPromiseResult[0]; +} + +/** + * 繧、繝ウ繝繝繧ッ繧ケ諠蝣ア繧剃サ伜刈縺励◆Promise蛟、繧剃ス懈舌☆繧 + */ +function createResult(lastResult, currResult) { + var idx = currentIndexFromLastResult(lastResult); + return Promise.all(Array.create( + Promise.resolve(idx), currResult + ).flatten()); +} + +/** + * 蜑榊屓縺ョPromise蛟、縺ョ繧、繝ウ繝繝繧ッ繧ケ繧偵う繝ウ繧ッ繝ェ繝。繝ウ繝医@縺ヲ險ュ螳壹☆繧 + */ +function countUpIndex(lastResult) { + var idx = currentIndexFromLastResult(lastResult); + return Promise.resolve([idx + 1]); +} + +/** + * 迴セ蝨ィ蜃ヲ逅蟇セ雎。縺ョ繧ュ繝」繝繧キ繝・繝繧」繝ャ繧ッ繝医Μ繧貞叙蠕励☆繧 + */ +function getCacheDir(lastPromiseResult) { + return CACHE_DIR[currentIndexFromLastResult(lastPromiseResult)]; +} + +/** + * 迴セ蝨ィ蜃ヲ逅蟇セ雎。縺ョ繝励Λ繧ー繧、繝ウ繝繧」繝ャ繧ッ繝医Μ繧貞叙蠕励☆繧 + */ +function getPluginsDir(lastPromiseResult) { + return UI_PLUGINS_DIRS[currentIndexFromLastResult(lastPromiseResult)]; +} + +/** + * 迴セ蝨ィ蜃ヲ逅蟇セ雎。縺ョ蜑榊屓繧、繝ウ繧ケ繝医シ繝ォ繝代ャ繧ア繝シ繧ク繝輔ぃ繧、繝ォ繧貞叙蠕励☆繧 + */ +function getLastPackageFile(lastPromiseResult) { + return LAST_PACKAGE[currentIndexFromLastResult(lastPromiseResult)]; +} + +/** + * 迴セ蝨ィ蜃ヲ逅蟇セ雎。縺ョ莉雁屓繧、繝ウ繧ケ繝医シ繝ォ繝代ャ繧ア繝シ繧ク繝輔ぃ繧、繝ォ繧貞叙蠕励☆繧 + */ +function getCurrPackageFile(lastPromiseResult) { + return CURR_PACKAGE[currentIndexFromLastResult(lastPromiseResult)]; +} + +/** + * 迴セ蝨ィ蜃ヲ逅蟇セ雎。縺ョ繝励Ο繧ク繧ァ繧ッ繝医励Λ繧ー繧、繝ウ繝繧」繝ャ繧ッ繝医Μ繧貞叙蠕励☆繧 + */ +function getPjPluginDir(lastPromiseResult) { + return PJ_PLUGIN_DIR[currentIndexFromLastResult(lastPromiseResult)]; +} + +/** + * 繝繧ケ繝磯幕逋コ譎ゅ↓菴ソ逕ィ縺吶k繧キ繝ウ繝懊Μ繝繧ッ繝ェ繝ウ繧ッ繧剃ス懈舌☆繧 + */ +function createPluginLink(lastResult) { + var pjPluginDir = getPjPluginDir(lastResult); + + console.log('createPluginLink:', pjPluginDir); + + pjPluginDir = path.resolve(pjPluginDir); + if(fs.existsSync(pjPluginDir) + && fs.lstatSync(pjPluginDir).isSymbolicLink()) { + fs.unlinkSync(pjPluginDir); + }; + + fs.symlinkSync(path.resolve(PLUGIN_DIR), pjPluginDir, 'junction'); + + return createResult(lastResult, Promise.resolve(0)); +} + +/** + * 繝励Ο繧ク繧ァ繧ッ繝医ョ繧」繝ャ繧ッ繝医Μ縺ョ繧ュ繝」繝繧キ繝・繧呈峩譁ー縺吶k + */ +function updatePluginCache(lastResult) { + console.log('updatePluginCache:', getCacheDir(lastResult), CACHE_ADD_MULTIPLICITY); + + var currResult; + if (CACHE_ADD_MULTIPLICITY === 0) { + // 螟夐榊コヲ0縺ョ蝣エ蜷医ッ蜈ィ縺ヲ荳ヲ蛻怜ョ溯。 + currResult = Promise.all(fs.readdirSync(PLUGIN_DIR).map(addPluginToCache)); + + } else { + // 螟夐榊コヲ縺ォ蜷医o縺帙※繝ェ繧ケ繝医r蛻蜑イ縺励∝句挨縺ォ荳ヲ蛻怜ョ溯。 + var currPromise = Promise.resolve([0]); + var fileList = fs.readdirSync(PLUGIN_DIR).filter(/^[^\.]/); + var groupList = fileList.inGroups(fileList.length / CACHE_ADD_MULTIPLICITY); + for(var i = 0; i < groupList.length; i++) { + currPromise = currPromise.then(function(lastResult) { + var idx = currentIndexFromLastResult(lastResult); + return Promise.all(Array.create( + Promise.resolve(idx + 1), + groupList[idx].map(addPluginToCache) + ).flatten()); + }); + } + currResult = currPromise; + } + + return createResult(lastResult, currResult); + + /** + * 繝励Ο繧ク繧ァ繧ッ繝医ョ繧」繝ャ繧ッ繝医Μ縺ォ蛟九縺ョ繧ュ繝」繝繧キ繝・繧定ソス蜉縺吶k + */ + function addPluginToCache(pluginRoot) { + if (pluginRoot.startsWith('.')) { + return; + } + pluginRoot = path.join(PLUGIN_DIR, pluginRoot); + return new Promise(function(resolve, reject) { + shell.exec('npm cache add ' + pluginRoot + ' --cache ' + getCacheDir(lastResult), function(code) { + shell.echo('setup plugin: ' + pluginRoot); + (code === 0) ? resolve() + : reject(new Error("Can't add the cache for the module at:" + pluginRoot)); + }); + }); + } +} + +/** + * 繝励Ο繧ク繧ァ繧ッ繝医ョ繧」繝ャ繧ッ繝医Μ縺ョ繧ュ繝」繝繧キ繝・繧偵け繝ェ繧「縺吶k + */ +function cleanup(lastResult) { + console.log('cleanup:', getCacheDir(lastResult)); + + var currResult = new Promise(function(resolve, reject) { + var code = shell.exec('npm cache clean --cache ' + getCacheDir(lastResult)).code; + (code === 0) ? resolve() + : reject(); + }); + + return createResult(lastResult, currResult); +} + +/** + * 繝励Ο繧ク繧ァ繧ッ繝医ョ繧」繝ャ繧ッ繝医Μ縺ォ繧、繝ウ繧ケ繝医シ繝ォ縺輔l縺ヲ縺繧九☆縺ケ縺ヲ縺ョ繝代ャ繧ア繝シ繧ク繧偵い繝ウ繧、繝ウ繧ケ繝医シ繝ォ縺吶k + */ +function runAllNpmUninstall(lastResult) { + var currPackageFile = getCurrPackageFile(lastResult); + var lastPackageFile = getLastPackageFile(lastResult); + + console.log('runAllNpmUninstall:', currPackageFile, lastPackageFile); + + var currResult = new Promise(function(resolve) { + if (fs.existsSync(currPackageFile)) { + var currPackage = require(currPackageFile) + , packageDeps = Object.merge(currPackage.dependencies, currPackage.devDependencies); + + if (fs.existsSync(lastPackageFile)) { + var lastPackage = require(lastPackageFile) + , lastPackageDeps = Object.merge(lastPackage.dependencies, lastPackage.devDependencies); + Object.merge(packageDeps, lastPackageDeps); + } + shell.pushd(path.join(PROJECT_ROOT, getPluginsDir(lastResult))); + Object.extended(packageDeps).keys(function(packageName) { + shell.echo('uninstall plugin: ' + packageName); + shell.exec('npm uninstall ' + packageName); + }); + shell.popd(); + } + resolve(); + }); + + return createResult(lastResult, currResult); +} + +/** + * 蜑榊屓繝励Ο繧ク繧ァ繧ッ繝医ョ繧」繝ャ繧ッ繝医Μ縺ォ繧、繝ウ繧ケ繝医シ繝ォ縺輔l縲∽サ雁屓繧、繝ウ繧ケ繝医シ繝ォ蟇セ雎。螟悶→縺ェ縺」縺溘ヱ繝繧ア繝シ繧ク繧偵い繝ウ繧、繝ウ繧ケ繝医シ繝ォ縺吶k + */ +function runRejectedNpmUninstall(lastResult) { + var currPackageFile = getCurrPackageFile(lastResult); + var lastPackageFile = getLastPackageFile(lastResult); + + console.log('runRejectedNpmUninstall:', currPackageFile, lastPackageFile); + + var currResult = new Promise(function(resolve) { + if (fs.existsSync(lastPackageFile) && fs.existsSync(currPackageFile)) { + var lastPackage = require(lastPackageFile) + , currPackage = require(currPackageFile) + , lastPackageDeps = Object.merge(lastPackage.dependencies, lastPackage.devDependencies) + , currPackageDeps = Object.merge(currPackage.dependencies, currPackage.devDependencies) + , removePackageDeps = Object.reject(lastPackageDeps, currPackageDeps); + + shell.pushd(path.join(PROJECT_ROOT, getPluginsDir(lastResult))); + Object.extended(removePackageDeps).keys(function(packageName) { + shell.echo('uninstall plugin: ' + packageName); + shell.exec('npm uninstall ' + packageName); + }); + shell.popd(); + } + resolve(); + }); + + return createResult(lastResult, currResult); +} + +/** + * 繝励Ο繧ク繧ァ繧ッ繝医ョ繧」繝ャ繧ッ繝医Μ縺ォpackage.json縺ァ謖螳壹&繧後※縺繧九ヱ繝繧ア繝シ繧ク繧偵う繝ウ繧ケ繝医シ繝ォ縺吶k + */ +function runNpmInstall(lastResult) { + console.log('runNpmInstall:', getPluginsDir(lastResult)); + + var currPackageFile = getCurrPackageFile(lastResult); + var lastPackageFile = getLastPackageFile(lastResult); + + var currResult = new Promise(function(resolve) { + process.env.http_proxy = ''; + process.env.HTTP_PROXY = ''; + shell.pushd(path.join(PROJECT_ROOT, getPluginsDir(lastResult))); + shell.exec( + 'npm install --registry ' + REGISTRY_URL + ' --cache .npm --no-optional' + , function() { + shell.cp('-f', currPackageFile, lastPackageFile); + resolve(); + } + ); + shell.popd(); + }); + + return createResult(lastResult, currResult); +} + +/** + * 繝ュ繝シ繧ォ繝ォ繝ャ繧ク繧ケ繝医Μ繧オ繝シ繝舌r蛛懈ュ「縺吶k + */ +function stopLocalRegistry(lastResult) { + console.log('stopLocalRegistry:', getCacheDir(lastResult)); + + var currResult = new Promise(function(resolve, reject) { + shell.echo('halting local repository ...'); + if (!registryServer) { + resolve(); + } + registryServer + .on('close', function(){ + shell.echo('... local repository shutdown.'); + resolve(); + }) + .close(); + }); + + return createResult(lastResult, currResult); +} + +/** + * 繝ュ繝シ繧ォ繝ォ繝ャ繧ク繧ケ繝医Μ繧オ繝シ繝舌r襍キ蜍輔☆繧 + */ +function startLocalRegistry(lastResult) { + var cacheDir = getCacheDir(lastResult); + console.log('startLocalRegistry:', cacheDir); + + var currResult = new Promise(function(resolve, reject) { + shell.echo('starting local repository ...'); + registryServer = http.createServer() + .on('request', function(req, res) { + return (req.url.indexOf('.tgz') === -1) + ? responsePackageJson(req, res, cacheDir) + : responsePackageArchive(req, res, cacheDir); + }) + .on('listening', function() { + shell.echo('... local repository launched'); + resolve(); + }) + .listen(3000); + }); + + return createResult(lastResult, currResult); + + // --- subroutine --- // + /** + * package.json繧定ソ泌唆縺吶k縲 + */ + function responsePackageJson(req, res, cacheDir) { + + var body = getPackageJsonByUrlVersion(req, cacheDir); + if (!body) { + body = getPackageJsonAllVersion(req, cacheDir); + } + + res.writeHead(200, {"Content-Type" : "text/plain", "Content-Length": body.length}); + res.write(body); + res.end(); + } + + /** + * url縺ァ謖螳壹&繧後◆繝舌シ繧ク繝ァ繝ウ縺ョpackage.json繧貞叙蠕励☆繧 + */ + function getPackageJsonByUrlVersion(req, cacheDir) { + var pattern = /.*\/([^\/]+)\/(\d+\.\d+\.\d+)?$/ + , m = pattern.exec(req.url) + , packageName = m && m[1] + , version = m && m[2]; + + return m && new PackageInfo(packageName, version, cacheDir).toString(); + } + + /** + * 繧ュ繝」繝繧キ繝・蜀蜈ィ繝舌シ繧ク繝ァ繝ウ縺ョpackage.json繧貞叙蠕励☆繧 + * (npm1.4.8莉・荳翫〒package.json蜿門セ励Μ繧ッ繧ィ繧ケ繝医ョ莉墓ァ倥′螟峨o縺」縺) + */ + function getPackageJsonAllVersion(req, cacheDir) { + var pattern = /.*\/([^\/]+)$/ + , m = pattern.exec(req.url) + , packageName = m && m[1]; + + var versions = {}; + fs.readdirSync(path.join(cacheDir, packageName)) + .filter(function(n) { + return n.match(/\d+\.\d+\.\d+/); + }) + .each(function(version) { + versions[version] = JSON.parse(new PackageInfo(packageName, version, cacheDir).toString()); + }); + + return JSON.stringify({"versions":versions}); + } + + /** + * 繝代ャ繧ア繝シ繧ク繧「繝シ繧ォ繧、繝悶r霑泌唆縺吶k縲 + */ + function responsePackageArchive(req, res, cacheDir) { + var pattern = /.*\/([^\/]+)\/-\/[^\/]+-(\d+\.\d+\.\d+)\/package\.tgz$/ + , m = pattern.exec(req.url) + , packageName = m && m[1] + , version = m && m[2] + , archive = new PackageInfo(packageName, version, cacheDir).getArchive(); + + res.writeHead(200); + res.write(archive); + res.end(); + } +} + +/** + * 繝代ャ繧ア繝シ繧ク諠蝣ア繧ッ繝ゥ繧ケ + */ +PackageInfo.prototype = { + toString : PackageInfo_serialize +, getArchive : PackageInfo_getArchive +, calcDigest : PackageInfo_calcDigest +}; + +function PackageInfo(name, version, cacheDir) { + this.constructor = PackageInfo; + this.name = name; + this.version = version; + this._id = name; + this._cacheDir = cacheDir; +} + +function PackageInfo_serialize() { + var versionInfo = { + name : this.name + , _id : this.name + , version: this.version + , dist: { + tarball : REGISTRY_URL + this.name + '/-/' + this.name + '-' + this.version + '/package.tgz' + , shasum : this.calcDigest() + } + }; + return JSON.stringify(versionInfo); +} + +function PackageInfo_getArchive() { + var archivePath = path.join(this._cacheDir, this.name, this.version, 'package.tgz'); + return fs.readFileSync(archivePath); +} + +function PackageInfo_calcDigest() { + var sum = crypto.createHash('sha1') + , archive = this.getArchive(); + sum.update(archive); + return sum.digest('hex'); +} + +main(); + diff --git a/node_modules/nablarch-dev-tool-installer/package.json b/node_modules/nablarch-dev-tool-installer/package.json new file mode 100644 index 0000000..e98e6f1 --- /dev/null +++ b/node_modules/nablarch-dev-tool-installer/package.json @@ -0,0 +1,13 @@ +{ "name": "nablarch-dev-tool-installer" +, "description": "Nablarch UI繝励Λ繧ー繧、繝ウ 繧、繝ウ繧ケ繝医シ繝ゥ繝シ" +, "version": "1.0.0" +, "_from" : "nablarch-dev-tool-installer@1.0.0" +, "bin": { + "plugin_installer.js" : "./bin/installer.js" + } +, "dependencies": + { "sugarjs" : "1.4.1" + , "shelljs" : "0.2.6" + , "es6-promise": "*" + } +} diff --git a/node_modules/nablarch-dev-tool-server/package.json b/node_modules/nablarch-dev-tool-server/package.json new file mode 100644 index 0000000..760168e --- /dev/null +++ b/node_modules/nablarch-dev-tool-server/package.json @@ -0,0 +1,5 @@ +{ "name": "nablarch-dev-tool-server" +, "description": "UI蜍穂ス懃「コ隱咲畑繧オ繝シ繝" +, "_from" : "nablarch-dev-tool-server@1.0.1" +, "version": "1.0.1" +} diff --git a/node_modules/nablarch-dev-tool-server/ui_public/localServer.sh b/node_modules/nablarch-dev-tool-server/ui_public/localServer.sh new file mode 100644 index 0000000..32c3683 --- /dev/null +++ b/node_modules/nablarch-dev-tool-server/ui_public/localServer.sh @@ -0,0 +1,3 @@ +# ローカル確認用サーバ起動スクリプト +node ./tools/server.js + diff --git a/node_modules/nablarch-dev-tool-server/ui_public/tools/bin/node.exe b/node_modules/nablarch-dev-tool-server/ui_public/tools/bin/node.exe new file mode 100644 index 0000000..bd4b5d6 Binary files /dev/null and b/node_modules/nablarch-dev-tool-server/ui_public/tools/bin/node.exe differ diff --git a/node_modules/nablarch-dev-tool-server/ui_public/tools/server.js b/node_modules/nablarch-dev-tool-server/ui_public/tools/server.js new file mode 100644 index 0000000..0c3c9cc --- /dev/null +++ b/node_modules/nablarch-dev-tool-server/ui_public/tools/server.js @@ -0,0 +1,110 @@ +'use strict'; +var http = require('http'); +var fs = require('fs'); +var url = require("url"); + +var WEB_ROOT = __dirname + '/../' + // 繝昴シ繝育分蜿キ + , PORT = 8888 + // 繧、繝ウ繝繝繧ッ繧ケ繝壹シ繧ク縺ォ繝ェ繧ケ繝医い繝繝励@縺ェ縺繝繧」繝ャ繧ッ繝医Μ蜷 + , ignoreDirs = ['tools', 'include'] + , pageList = [] + , pageMap = {}; + +crawl(WEB_ROOT); + +function crawl(path) { + var stat = fs.statSync(path); + + return stat.isDirectory() ? crawlDir(path) + : stat.isFile() ? addToList(path) + : null; + + //----- subroutines -----// + function crawlDir(path) { + fs.readdirSync(path).forEach(function(fileName) { + if (ignoreDirs.indexOf(fileName) !== -1) { + return; + } + crawl(path + '/' + fileName); + }); + } + + function addToList(path) { + var jspPage = /.*\/([^\/]+)\.jsp$/.exec(path); + if (jspPage) { + pageList.push(path); + pageMap[jspPage[1]] = path; + } + } +} + +function tool_path(path) { + path = path.substr(1); + var index = path.indexOf("/tools"); + if (index != -1) { + return path.substr(index); + } + index = path.indexOf('/specsheet_template') + if (index != -1) { + return path.substr(index); + } else { + return path.replace(/.+\/(js|css|fonts|img)\//, "/$1/"); + } +} + +var server = http.createServer(function(request, response) { + var pathname = url.parse(request.url).pathname; + var filename = pathname.replace(/^.*\/([^\/]+)\.[a-z]+$/, "$1"); + var extension = pathname.replace(/.+\./, ""); + var file_path = ""; + + if (pathname === '/') { + return indexPage(response); + } + + if (extension === "jsp") { + try { + file_path = WEB_ROOT + decodeURI(pathname); + } catch (e) { + console.log(pathname) + } + response.setHeader('Content-Type', 'text/html; charset=utf-8'); + } else if (extension === 'css') { + file_path = WEB_ROOT + tool_path(decodeURI(pathname)); + response.setHeader('Content-Type', 'text/css; charset=utf-8'); + } else if (extension === 'htm') { + file_path = WEB_ROOT + tool_path(decodeURI(pathname)); + response.setHeader('Content-Type', 'text/html; charset=utf-8'); + } else { + file_path = WEB_ROOT + tool_path(decodeURI(pathname)); + } + + try { + if (!fs.existsSync(file_path) && pageMap[filename]) { + file_path = pageMap[filename]; + } + var file = fs.readFileSync(file_path, 'binary'); + response.writeHead(200); + response.write(file, 'binary'); + } catch (e) { + response.writeHead(404); + response.write('

404 Not Found!!!

') + } + response.end(); + + //----- subroutines ------// + function indexPage(response) { + response.setHeader('Content-Type', 'text/html; charset=utf-8'); + response.write(pageList.map(renderLink).join('
')); + response.end(); + return; + + function renderLink(path) { + var path = ('./' + path.replace(WEB_ROOT, '')).replace(/\/+/g, '/'); + return '' + path + ''; + } + } +}); + +server.listen(PORT); diff --git "a/node_modules/nablarch-dev-tool-server/ui_public/\343\203\255\343\203\274\343\202\253\343\203\253\347\224\273\351\235\242\347\242\272\350\252\215.bat" "b/node_modules/nablarch-dev-tool-server/ui_public/\343\203\255\343\203\274\343\202\253\343\203\253\347\224\273\351\235\242\347\242\272\350\252\215.bat" new file mode 100644 index 0000000..2dad98c --- /dev/null +++ "b/node_modules/nablarch-dev-tool-server/ui_public/\343\203\255\343\203\274\343\202\253\343\203\253\347\224\273\351\235\242\347\242\272\350\252\215.bat" @@ -0,0 +1,11 @@ +cd %~dp0 + +start http://localhost:8888 + +@echo "画面確認用ローカルサーバを起動しています。 " + +tools\\bin\\node.exe tools\\server.js + +pause + + diff --git a/node_modules/nablarch-dev-tool-server/ui_test/WEB-INF/web.xml b/node_modules/nablarch-dev-tool-server/ui_test/WEB-INF/web.xml new file mode 100644 index 0000000..3de9d0f --- /dev/null +++ b/node_modules/nablarch-dev-tool-server/ui_test/WEB-INF/web.xml @@ -0,0 +1,46 @@ + + + + + + di.config + web-component-configuration.xml + + + + + di.duplicate-definition-policy + DENY + + + + + nablarch.fw.web.servlet.NablarchServletContextListener + + + nablarch_plugins_test + + The Nablarch plugin test application. + + + + entryPoint + nablarch.fw.web.servlet.RepositoryBasedWebFrontController + + + + entryPoint + /* + + + + diff --git a/node_modules/nablarch-dev-tool-server/ui_test/pom.xml b/node_modules/nablarch-dev-tool-server/ui_test/pom.xml new file mode 100644 index 0000000..e6353bb --- /dev/null +++ b/node_modules/nablarch-dev-tool-server/ui_test/pom.xml @@ -0,0 +1,113 @@ + + 4.0.0 + + com.nablarch.ui + nablarch-dev-tool-server + 1.0.0 + jar + + nablarch-dev-tool-server + http://maven.apache.org + + + ${project.basedir}/tools/src/main/java + + + ${project.basedir}/tools/src/main/resources + + + ${project.basedir}/tools/bin + + + org.apache.maven.plugins + maven-dependency-plugin + 2.9 + + ${project.basedir}/tools/lib + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.5.1 + + 1.6 + 1.6 + + + + + + + UTF-8 + 1.6 + + + + + + com.nablarch.profile + nablarch-bom + 5u6 + pom + import + + + + + + + com.nablarch.framework + nablarch-testing + + + + * + * + + + + + com.nablarch.profile + nablarch-web + + + com.nablarch.framework + nablarch-backward-compatibility + + + + org.mortbay.jetty + jsp-2.1-glassfish + 2.1.v20100127 + runtime + + + org.eclipse.jdt.core.compiler + ecj + + + + + org.eclipse.jdt.core.compiler + ecj + 4.5.1 + runtime + + + org.mortbay.jetty + jsp-api-2.1-glassfish + 2.1.v20100127 + runtime + + + org.mortbay.jetty + jetty + 6.1.24 + runtime + + + + diff --git a/node_modules/nablarch-dev-tool-server/ui_test/tools/index.html b/node_modules/nablarch-dev-tool-server/ui_test/tools/index.html new file mode 100644 index 0000000..84cc03e --- /dev/null +++ b/node_modules/nablarch-dev-tool-server/ui_test/tools/index.html @@ -0,0 +1,8 @@ + + + + +繧オ繝シ繝舌′襍キ蜍輔@縺溘i縺薙ョ繝ェ繝ウ繧ッ繧偵け繝ェ繝繧ッ縺励※縺上□縺輔>縲
+繝繝「逕サ髱「繧帝幕縺 + + diff --git a/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/java/ui_test/AppServer.java b/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/java/ui_test/AppServer.java new file mode 100644 index 0000000..3b5ff71 --- /dev/null +++ b/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/java/ui_test/AppServer.java @@ -0,0 +1,122 @@ +package ui_test; + +import java.io.File; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import nablarch.common.handler.FileRecordWriterDisposeHandler; +import nablarch.common.handler.threadcontext.ExecutionIdAttribute; +import nablarch.common.handler.threadcontext.InternalRequestIdAttribute; +import nablarch.common.handler.threadcontext.RequestIdAttribute; +import nablarch.common.handler.threadcontext.ThreadContextAttribute; +import nablarch.common.handler.threadcontext.ThreadContextHandler; +import nablarch.common.handler.threadcontext.TimeZoneAttribute; +import nablarch.common.handler.threadcontext.UserIdAttribute; +import nablarch.common.web.handler.HttpAccessLogHandler; +import nablarch.common.web.handler.NablarchTagHandler; +import nablarch.common.web.handler.threadcontext.LanguageAttributeInHttpCookie; +import nablarch.fw.ExecutionContext; +import nablarch.fw.Handler; +import nablarch.fw.handler.GlobalErrorHandler; +import nablarch.fw.handler.SessionConcurrentAccessHandler; +import nablarch.fw.web.HttpMethodBinding; +import nablarch.fw.web.HttpRequest; +import nablarch.fw.web.HttpResponse; +import nablarch.fw.web.HttpServer; +import nablarch.fw.web.handler.ForwardingHandler; +import nablarch.fw.web.handler.HttpCharacterEncodingHandler; +import nablarch.fw.web.handler.HttpErrorHandler; +import nablarch.fw.web.handler.HttpResponseHandler; +import nablarch.fw.web.handler.ResourceMapping; +import nablarch.fw.web.upload.MultipartHandler; +import nablarch.fw.web.upload.PartInfo; + +/** + * JSP逕ィ繧「繝励Μ繧オ繝シ繝舌 + * + * @author nablarch + * @since 1.3 + */ +public class AppServer { + + private static final List HTTP_REQUEST_HOLDER = new ArrayList(); + + private static final List EXECUTION_CONTEXT_HOLDER = new ArrayList(); + + /** + * 迴セ蝨ィ縺ョHTTP繝ェ繧ッ繧ィ繧ケ繝医r霑斐☆縲 + * @return 迴セ蝨ィ縺ョHTTP繝ェ繧ッ繧ィ繧ケ繝 + */ + public static HttpRequest currentRequest() { + return HTTP_REQUEST_HOLDER.get(0); + } + + /** + * 迴セ蝨ィ縺ョ螳溯。後さ繝ウ繝繧ュ繧ケ繝医r霑斐☆縲 + * @return 迴セ蝨ィ縺ョ螳溯。後さ繝ウ繝繧ュ繧ケ繝 + */ + public static ExecutionContext currentExecutionContext() { + return EXECUTION_CONTEXT_HOLDER.get(0); + } + + /** + * 繝。繧、繝ウ繝。繧ス繝繝峨 + * + * @param args 繧ウ繝槭Φ繝峨Λ繧、繝ウ蠑墓焚 [繧オ繝シ繝悶Ξ繝繝医さ繝ウ繝繧ュ繧ケ繝医ヱ繧ケ(./main/web)] [襍キ蜍輔昴シ繝(7777)] + */ + @SuppressWarnings("rawtypes") + public static final void main(String[] args) { + String path = (args.length >= 1) ? args[0] : "./main/web"; + int portNum = (args.length >= 2) ? Integer.valueOf(args[1]) : 7777; + + new HttpServer() + .clearHandlers() + .setWarBasePath("file://" + path) + .setPort(portNum) + .setMethodBinder(new HttpMethodBinding.Binder()) + .addHandler(new GlobalErrorHandler()) + .addHandler(new HttpCharacterEncodingHandler()) + .addHandler(new FileRecordWriterDisposeHandler()) + .addHandler(new SessionConcurrentAccessHandler()) + .addHandler(new HttpResponseHandler()) + .addHandler(new ThreadContextHandler().setAttributes( + Arrays.asList( + new UserIdAttribute() {{ + setSessionKey("user.id"); + setAnonymousId("9999999999"); + }}, + new RequestIdAttribute(), + new InternalRequestIdAttribute(), + new LanguageAttributeInHttpCookie() {{ + setDefaultLanguage("ja"); + setSupportedLanguages("ja,en"); + setCookieMaxAge(7776000); // 90 days + }}, + new ExecutionIdAttribute(), + new TimeZoneAttribute() {{ + setDefaultTimeZone("Asia/Tokyo"); + }}))) + .addHandler(new HttpAccessLogHandler()) + .addHandler(new ForwardingHandler()) + .addHandler(new HttpErrorHandler()) + .addHandler(new MultipartHandler()) + .addHandler("//*.jsp", new NablarchTagHandler()) + .addHandler("//*.jsp", new Handler() { + @Override + public HttpResponse handle(HttpRequest req, ExecutionContext ctx) { + if (!req.getMultipart().isEmpty()) { + PartInfo part = req.getMultipart().values().iterator().next().get(0); + part.moveTo(new File("./"), part.getFileName()); + } + HTTP_REQUEST_HOLDER.clear(); + HTTP_REQUEST_HOLDER.add(req); + EXECUTION_CONTEXT_HOLDER.clear(); + EXECUTION_CONTEXT_HOLDER.add(ctx); + return new HttpResponse(200, "servlet://" + req.getRequestUri()); + } + }) + .addHandler("//*.*", new ResourceMapping("/", "servlet:///")) + .start(); + } +} diff --git a/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/java/ui_test/StubCodeManager.java b/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/java/ui_test/StubCodeManager.java new file mode 100644 index 0000000..95b5d74 --- /dev/null +++ b/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/java/ui_test/StubCodeManager.java @@ -0,0 +1,105 @@ +package ui_test; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.TreeMap; + +import nablarch.common.code.CodeManager; + +public class StubCodeManager implements CodeManager { + + private Map> codes; + + { + codes = new HashMap>(); + + TreeMap code1 = new TreeMap(); + code1.put("value1-1", "name1-1"); + code1.put("value1-2", "name1-2"); + code1.put("value1-3", "name1-3"); + codes.put("code1", code1); + + TreeMap code2 = new TreeMap(); + code2.put("value2-1", "name2-1"); + code2.put("value2-2", "name2-2"); + code2.put("value2-3", "name2-3"); + codes.put("code2", code2); + } + + @Override + public String getName(String codeId, String value) throws IllegalArgumentException { + return codes.get(codeId).get(value); + } + + @Override + public String getName(String codeId, String value, Locale locale) throws IllegalArgumentException { + return codes.get(codeId).get(value); + } + + @Override + public String getShortName(String codeId, String value) throws IllegalArgumentException { + return "short:" + codes.get(codeId).get(value); + } + + @Override + public String getShortName(String codeId, String value, Locale locale) throws IllegalArgumentException { + return "short:" + codes.get(codeId).get(value) + " locale:" + locale; + } + + @Override + public String getOptionalName(String codeId, String value, String optionColumnName) throws IllegalArgumentException { + return codes.get(codeId).get(value) + " column:" + optionColumnName; + } + + @Override + public String getOptionalName(String codeId, String value, String optionColumnName, Locale locale) throws IllegalArgumentException { + return codes.get(codeId).get(value) + " column:" + optionColumnName + " locale:" + locale; + } + + @Override + public List getValues(String codeId) throws IllegalArgumentException { + return new ArrayList(codes.get(codeId).keySet()); + } + + @Override + public List getValues(String codeId, String pattern) throws IllegalArgumentException { + if ("code1".equals(codeId)) { + if ("PATTERN01".equals(pattern)) { + return Arrays.asList("value1-1", "value1-2", "value1-3"); + } + return Arrays.asList("value1-2"); + } + if ("code2".equals(codeId)) { + if ("PATTERN01".equals(pattern)) { + return Arrays.asList("value2-1", "value2-2", "value2-3"); + } + return Arrays.asList("value2-2"); + } + return Collections.emptyList(); + } + + @Override + public List getValues(String codeId, Locale locale) throws IllegalArgumentException { + return new ArrayList(codes.get(codeId).keySet()); + } + + @Override + public List getValues(String codeId, String pattern, Locale locale) throws IllegalArgumentException { + return new ArrayList(codes.get(codeId).keySet()); + } + + @Override + public boolean contains(String codeId, String value) throws IllegalArgumentException { + return codes.get(codeId).keySet().contains(value); + } + + @Override + public boolean contains(String codeId, String pattern, String value) throws IllegalArgumentException { + return codes.get(codeId).keySet().contains(value); + } +} diff --git a/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/resources/app-log.properties b/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/resources/app-log.properties new file mode 100644 index 0000000..0c1622d --- /dev/null +++ b/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/resources/app-log.properties @@ -0,0 +1,17 @@ +# FailureLogFormatter +#failureLogFormatter.className= +failureLogFormatter.defaultFailureCode=MSG99999 +failureLogFormatter.defaultMessage=an unexpected exception occurred. +failureLogFormatter.language=ja +failureLogFormatter.notificationFormat=fail_code = [$failureCode$] $message$ +failureLogFormatter.analysisFormat=fail_code = [$failureCode$] $message$\nInput Data :\n$data$ +#failureLogFormatter.contactFilePath=classpath:failure-log-contact.properties +#failureLogFormatter.appFailureCodeFilePath=classpath:failure-log-app-codes.properties +#failureLogFormatter.fwFailureCodeFilePath=classpath:failure-log-fw-codes.properties + + +# PerformanceLogFormatter +#performanceLogFormatter.className= +#performanceLogFormatter.targetPoints=UserSearchAction#doRW11AC0102 +#performanceLogFormatter.datePattern= +#performanceLogFormatter.format= diff --git a/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/resources/log.properties b/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/resources/log.properties new file mode 100644 index 0000000..9dcd102 --- /dev/null +++ b/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/resources/log.properties @@ -0,0 +1,33 @@ +loggerFactory.className=nablarch.core.log.basic.BasicLoggerFactory + +writerNames=appFile,stdout + +# appFile +writer.appFile.className=nablarch.core.log.basic.FileLogWriter +writer.appFile.filePath=./app.log +writer.appFile.encoding=UTF-8 +writer.appFile.maxFileSize=10000 +writer.appFile.formatter.className=nablarch.core.log.basic.BasicLogFormatter +writer.appFile.formatter.format=$date$ -$logLevel$- $loggerName$ [$executionId$] $message$$information$$stackTrace$ + +# stdout +writer.stdout.className=nablarch.core.log.basic.StandardOutputLogWriter +writer.stdout.formatter.className=nablarch.core.log.basic.BasicLogFormatter +writer.stdout.formatter.format=$date$ -$logLevel$- $loggerName$ [$executionId$] $message$$information$$stackTrace$ + +availableLoggersNamesOrder=DEV,ACC,ROO + +# ROO +loggers.ROO.nameRegex=.* +loggers.ROO.level=INFO +loggers.ROO.writerNames=appFile,stdout + +# ACC +loggers.ACC.nameRegex=HTTP_ACCESS +loggers.ACC.level=INFO +loggers.ACC.writerNames=appFile,stdout + +# DEV +loggers.DEV.nameRegex=DEV +loggers.DEV.level=FATAL +loggers.DEV.writerNames=appFile,stdout diff --git a/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/resources/web-component-configuration.xml b/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/resources/web-component-configuration.xml new file mode 100644 index 0000000..0b45fe7 --- /dev/null +++ b/node_modules/nablarch-dev-tool-server/ui_test/tools/src/main/resources/web-component-configuration.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + diff --git a/node_modules/nablarch-dev-tool-server/ui_test/uiTestServer.sh b/node_modules/nablarch-dev-tool-server/ui_test/uiTestServer.sh new file mode 100755 index 0000000..4466944 --- /dev/null +++ b/node_modules/nablarch-dev-tool-server/ui_test/uiTestServer.sh @@ -0,0 +1,4 @@ +# UI驛ィ蜩√ョ繝「逕サ髱「繧オ繝シ繝占オキ蜍輔せ繧ッ繝ェ繝励ヨ +mkdir -p ./tools/tmp/test-data +mkdir -p ./tools/tmp/web/format +java -cp 'tools/tmp:tools/bin:tools/lib/*:$JAVA_HOME/lib/*' ui_test.AppServer './' 7777 diff --git "a/node_modules/nablarch-dev-tool-server/ui_test/\343\202\265\343\203\274\343\203\220\345\213\225\344\275\234\347\242\272\350\252\215.bat" "b/node_modules/nablarch-dev-tool-server/ui_test/\343\202\265\343\203\274\343\203\220\345\213\225\344\275\234\347\242\272\350\252\215.bat" new file mode 100644 index 0000000..622219c --- /dev/null +++ "b/node_modules/nablarch-dev-tool-server/ui_test/\343\202\265\343\203\274\343\203\220\345\213\225\344\275\234\347\242\272\350\252\215.bat" @@ -0,0 +1,12 @@ +cd %~dp0 + +mkdir tools\\tmp\\test-data +mkdir tools\\tmp\\web\\format + +start tools\\index.html + +java -cp "tools\\tmp;tools\\bin\\;tools\\lib\\*;%JAVA_HOME%\\lib\\*" ui_test.AppServer "./" 7777 + +pause + + diff --git a/node_modules/nablarch-dev-tool-uibuild/bin/ui_build.js b/node_modules/nablarch-dev-tool-uibuild/bin/ui_build.js new file mode 100755 index 0000000..310e18b --- /dev/null +++ b/node_modules/nablarch-dev-tool-uibuild/bin/ui_build.js @@ -0,0 +1,920 @@ +'use strict'; + +// 蠑墓焚繝√ぉ繝繧ッ +console.log(process.argv); +if (process.argv.length < 3) { + console.log("Usage: node ui_build.js [clean] [genless] [nablarchDevelopMode]"); + process.exit(1); +} + +var cleanMode = (process.argv.indexOf('clean') > 0); +var generateLessMode = (process.argv.indexOf('genless') > 0); +var developMode = (process.argv.indexOf('nablarchDevelopMode') > 0); + +require('sugar'); +require('shelljs/global'); +var fs = require('fs'); +var path = require('path'); + +// 繧ウ繝ウ繝輔ぅ繧ー繝輔ぃ繧、繝ォ繝√ぉ繝繧ッ +var PJ_CONF_PATH = process.argv[2]; +if (!fs.existsSync(PJ_CONF_PATH)) { + console.log("Project's conf file is not found."); + process.exit(1); +} + +// 螳壽焚螳夂セゥ +var DEFAULT_PJ_CONF = { + "pathSettings" : + { "projectRootPath" : PJ_CONF_PATH + , "demoProjectPath" : "ui_demo" + , "testProjectPath" : "ui_test" + , "pluginProjectPath" : "ui_plugins" + } + , "cssMode" : ["wide", "compact", "narrow"] + , "plugins" : [{"pattern": ".*"}] + , "imgcopy" : + { "fromdirs" : [] + , "todirs" : [] + } + , "excludedirs" : ["^\\.[^\\.]+"] +}; + +var pjConf; +if (fs.statSync(PJ_CONF_PATH).isFile()) { + // 險ュ螳壹ヵ繧。繧、繝ォ繧定ェュ縺ソ霎シ縺ソ + pjConf = readJsonFile(path.resolve(PJ_CONF_PATH)); + + // 譛ェ險ュ螳夐逶ョ縺ォ繝繝輔か繝ォ繝亥、繧定ィュ螳 + pjConf.pathSettings = pjConf.pathSettings || DEFAULT_PJ_CONF.pathSettings; + var pathSettings = pjConf.pathSettings; + var defPathSettings = DEFAULT_PJ_CONF.pathSettings; + pathSettings.demoProjectPath = pathSettings.demoProjectPath || defPathSettings.demoProjectPath; + pathSettings.testProjectPath = pathSettings.testProjectPath || defPathSettings.testProjectPath; + pathSettings.pluginProjectPath = pathSettings.pluginProjectPath || defPathSettings.pluginProjectPath; + pjConf.cssMode = pjConf.cssMode || DEFAULT_PJ_CONF.cssMode; + pjConf.plugins = pjConf.plugins || DEFAULT_PJ_CONF.plugins; + pjConf.imgcopy = pjConf.imgcopy || DEFAULT_PJ_CONF.imgcopy; + pjConf.excludedirs = pjConf.excludedirs || DEFAULT_PJ_CONF.excludedirs; + +} else { + pjConf = DEFAULT_PJ_CONF; +} + +// 蠢鬆郁ィュ螳夐逶ョ繝√ぉ繝繧ッ +if (!pjConf.pathSettings.webProjectPath) { + console.log('"pathSettings.webProjectPath" is required. conf-file:' + PJ_CONF_PATH); + process.exit(1); +} + +var PJ_ROOT_PATH = pjConf.pathSettings.projectRootPath + , PJ_WEBPRJ_PATH = path.join(PJ_ROOT_PATH, pjConf.pathSettings.webProjectPath) + , UI_DEMO_PATH = path.join(PJ_ROOT_PATH, pjConf.pathSettings.demoProjectPath) + , UI_TEST_PATH = path.join(PJ_ROOT_PATH, pjConf.pathSettings.testProjectPath) + , UI_PLUGINS_PATH = path.join(PJ_ROOT_PATH, pjConf.pathSettings.pluginProjectPath) + , UI_MODULE_PATH = path.join(UI_PLUGINS_PATH , 'node_modules'); + +var INTEGRATION_LESS_LIST = Array.create(pjConf.cssMode); + +var JS = 'node'; +var LS = '\n'; + +var LIB_DEPLOY_PATHS = [UI_DEMO_PATH, UI_TEST_PATH, PJ_WEBPRJ_PATH]; +var BUILD_TARGET_PATHS = [UI_DEMO_PATH, UI_TEST_PATH, PJ_WEBPRJ_PATH]; + +var UI_PUBLIC_DEPLOY_PATHS = [UI_DEMO_PATH, UI_TEST_PATH, PJ_WEBPRJ_PATH]; +var UI_LOCAL_DEPLOY_PATHS = [UI_DEMO_PATH, UI_TEST_PATH]; +var UI_TEST_DEPLOY_PATHS = [UI_TEST_PATH]; + +// 髢狗匱繝「繝シ繝 +if (developMode) { + LIB_DEPLOY_PATHS = [UI_TEST_PATH]; + BUILD_TARGET_PATHS = [UI_TEST_PATH]; + UI_PUBLIC_DEPLOY_PATHS = [UI_TEST_PATH]; + UI_LOCAL_DEPLOY_PATHS = [UI_TEST_PATH]; + UI_TEST_DEPLOY_PATHS = [UI_TEST_PATH]; +} + +var DEPLOY_PATHS = Object.extended({ + 'ui_public' : UI_PUBLIC_DEPLOY_PATHS +, 'ui_local' : UI_LOCAL_DEPLOY_PATHS +, 'ui_test' : UI_TEST_DEPLOY_PATHS +}); + +var DEPLOY_ORDER = ['ui_public', 'ui_local', 'ui_test']; + +var pjConfName = path.basename(PJ_CONF_PATH, '.json'); +var LAST_BUILD_FILE_LIST = path.resolve(path.join(UI_PLUGINS_PATH, pjConfName + 'LastBuildFileList.json')); + +var libraryDeployMappings = pjConf.libraryDeployMappings || {}; + +var TOOLS_DIR_PATH = 'tools' + , SCRIPT_DIR_PATH = 'js' + , CSS_BUILT_PATH = path.join('css', 'built') + , AUTOCONF_JS_PATH = path.join(TOOLS_DIR_PATH, 'build', 'lib', 'autoconf.js') + , RSCRIPT_JS_PATH = getPackageBinPath('requirejs', 'r.js') + , LESSC_PATH = getPackageBinPath('less', 'lessc') + , YUIDOC_JSON_PATH = path.join(TOOLS_DIR_PATH, 'yuidoc.json'); + +var UI_JS_PATH = path.join(SCRIPT_DIR_PATH, 'nablarch', 'ui.js') + , MINIFY_JS_PATH = path.join(SCRIPT_DIR_PATH, 'nablarch-minify.js') + , DEVTOOL_JS_PATH = path.join(SCRIPT_DIR_PATH, 'devtool.js') + , DEVTOOL_CF_PATH = path.join(SCRIPT_DIR_PATH, 'build', 'devtool_conf.js') + , IT_LESS_PATH = path.join(UI_PLUGINS_PATH, 'css', '{1}', '{2}.less') + , IT_CSS_PATH = path.join(CSS_BUILT_PATH, '{1}.css') + , IT_MINIFY_PATH = path.join(CSS_BUILT_PATH, '{1}-minify.css'); + +var AUTOGEN_FILES = Array.create( + UI_JS_PATH + , MINIFY_JS_PATH + , DEVTOOL_JS_PATH + , DEVTOOL_CF_PATH + ).add(INTEGRATION_LESS_LIST.map(function(mode) { + return(Array.create( + IT_CSS_PATH.assign(mode) + , IT_MINIFY_PATH.assign(mode) + )); + })).flatten(); + +var IGNORE_REMOVED_FAILED_FILES = + { "nablarch-dev-tool-server" : [ ".*" ] + }; + +var deployedFiles = Object.extended(); + +var copiedCssFiles = Object.extended(); + +var copiedImages = []; + +//--- script main --- // +function main() { + console.log('project conf: ', pjConf); + + if (cleanMode) { + // 繧ッ繝ェ繝シ繝ウ繝「繝シ繝 + removeLastBuildFile(); + + } else if(generateLessMode) { + // LESS繝輔ぃ繧、繝ォ菴懈舌Δ繝シ繝 + deployModules(); + generateLess(); + + } else { + // 騾壼クク繝「繝シ繝 + removeLastBuildFile(); + // 莉雁屓繝薙Ν繝牙ッセ雎。縺ョ繝輔ぃ繧、繝ォ繧偵∽コ句燕縺ォ譛蠕後ョ繝薙Ν繝峨ヵ繧。繧、繝ォ繝ェ繧ケ繝医↓逋サ骭イ縺吶k + // 縺薙l縺ァ縲騾比クュ縺ァ繧ィ繝ゥ繝シ縺ァ繝薙Ν繝峨′螟ア謨励@縺溷エ蜷医〒繧ゅ∵ャ。蝗槫ョ溯。梧凾縺ォ蜑榊屓繝薙Ν繝峨ヵ繧。繧、繝ォ縺ョ繧ッ繝ェ繝シ繝九Φ繧ー縺檎「コ螳溘↓陦後o繧後k縲 + createLastBuildFileList(); + createDirs(); + deployModules(); + buildMinifyJS(); + buildDevtoolJS(); + distDevtoolJS(); + buildMinifyCSS(); + copyimg(); + showDuplicateDeployFiles(); + } +} + +//----- subroutines -----// +/** + * JSON繝輔ぃ繧、繝ォ繧定ェュ縺ソ霎シ繧 + */ +function readJsonFile(filePath) { + // return require(filePath); + return eval('(' + fs.readFileSync(filePath, 'utf8') + ')'); +} + +/** + * package.json縺ョ'bin'縺九i繝舌う繝翫Μ繝輔ぃ繧、繝ォ蜷阪r蜿門セ励☆繧 + */ +function getPackageBinPath(packageName, binName) { + var packagePath = path.join(UI_MODULE_PATH, packageName); + var packageJsonPath = path.join(packagePath, 'package.json'); + var packageJson = readJsonFile(packageJsonPath); + var binPath = packageJson.bin[binName]; + return path.join(packagePath, binPath); +} + +/** + * 蜃コ蜉帛医ョ繝繧」繝ャ繧ッ繝医Μ繧剃ス懈舌☆繧 + */ +function createDirs() { + console.log('createDirs:'); + + mkdir('-p', UI_MODULE_PATH); + BUILD_TARGET_PATHS.each(function(targetDir) { + mkdir('-p', targetDir); + }); +} + +/** + * 繧、繝ウ繧ケ繝医シ繝ォ蟇セ雎。縺ョ繝励Λ繧ー繧、繝ウ繧呈歓蜃コ縺吶k + */ +function selectInstallPlugins() { + return pjConf.plugins.map(function(confItem) { + return ls(UI_MODULE_PATH) + .filter(new RegExp(confItem.pattern)) + .map(function(packageName) { + return { packageName : packageName + , opts : confItem }; + }); + }).exclude(function(packageInfo) { + return packageInfo.isEmpty(); + }).flatten(); +} + +/** + * 蜷迺ー蠅縺ォ繝「繧ク繝・繝シ繝ォ繧帝榊ク縺吶k + */ +function deployModules() { + console.log('deployModules:'); + + var installPlugins = selectInstallPlugins(); + installPlugins.each(function(packageInfo) { + var packageName = packageInfo.packageName; + var packagePath = path.join(UI_MODULE_PATH, packageName) + , content = ls(packagePath); + + console.log('Install plugin.', packageName); + + // 髢狗匱繝ゥ繧、繝悶Λ繝ェ縺ョ繝繝励Ο繧、 + DEPLOY_ORDER.each(function(key) { + if (content.some(key)) { + DEPLOY_PATHS[key].each(function(targetDir) { + if (generateLessMode) { + addCssFiles(packagePath, key, targetDir, packageInfo.opts.exclude); + } else { + deployFiles(packagePath, key, targetDir, packageInfo.opts.exclude); + } + }); + } + }); + + if (!generateLessMode) { + // 繧オ繝シ繝峨ヱ繝シ繝繧」繝ゥ繧、繝悶Λ繝ェ縺ョ繝繝励Ο繧、 + if (libraryDeployMappings[packageName]) { + for(var srcKey in libraryDeployMappings[packageName]){ + var srcPath = path.join(packagePath, srcKey); + var srcFile = path.basename(srcPath); + + LIB_DEPLOY_PATHS.each(function(deployPath) { + var dst = libraryDeployMappings[packageName][srcKey]; + var dstPath = path.join(deployPath, dst); + var dstDir = path.dirname(dstPath); + var dstFile = path.basename(dstPath); + + mkdir('-p', dstDir); + copyFile(srcPath, dstDir, true); + if (dst==srcKey) return; // 荳邱偵↑繧臥┌隕悶(fonts/font*) 蟇セ蠢 + fs.renameSync(path.join(dstDir, srcFile), path.join(dstDir, dstFile)); + }); + } + } + } + }); +} + +/** + * 繝輔ぃ繧、繝ォ繧偵ョ繝励Ο繧、縺吶k + */ +function deployFiles(packagePath, key, dstRoot, excludeFiles) { + var srcRoot = packagePath + '/' + key; + find(srcRoot) + .filter(function(file) { + return isExcludeCopyFile(file, excludeFiles); + }) + .each(function(src) { + var dst = path.join(dstRoot, path.relative(srcRoot, src)); + if (!src.match(/\.less$/)) { + if (fs.statSync(src).isDirectory()) { + mkdir('-p', dst); + } else { + copyFile(src, dst); + addDeployedFiles(packagePath, key, path.relative(srcRoot, src)); + } + } + }); +} + + +/** + * 繧ウ繝斐シ蟇セ雎。縺ョCSS繧定ソス蜉縺吶k + */ +function addCssFiles(packagePath, key, dstRoot, excludeFiles) { + var srcRoot = packagePath + '/' + key; + + find(srcRoot) + .filter(function(file) { + return isExcludeCopyFile(file, excludeFiles); + }) + .each(function(src) { + if (src.match(/\.less$/)) { + if (!copiedCssFiles[key]) { + copiedCssFiles[key] = []; + } + copiedCssFiles[key].push(src); + addDeployedFiles(packagePath, key, path.relative(srcRoot, src)); + } + }); +} + +/** + * 繧ウ繝斐シ蟇セ雎。螟悶ヵ繧。繧、繝ォ繧帝勁螟悶☆繧九ヵ繧」繝ォ繧ソ繝シ + */ +function isExcludeCopyFile(file, excludeFiles) { + var isExclude = false; + if (excludeFiles) { + isExclude = Array.create(excludeFiles).some(function(name) { + return file.match(new RegExp(name)); + }); + } + return !isExcludeDirectory(file) + && !isExclude + && !(fs.statSync(file).isDirectory() && file.match(/\/css\//)); +} + +/** + * 髯、螟門ッセ雎。繝繧」繝ャ繧ッ繝医Μ縺ァ縺ゅk縺九r蛻、螳壹☆繧 + */ +function isExcludeDirectory(file) { + var dirs = file.replace(/\\/g, '/').split('/'); + return Array.create(dirs).any(function(dir) { + return Array.create(pjConf.excludedirs).any(function(regexp) { + return dir.match(new RegExp(regexp)); + }); + }); +} + +/** + * 繝繝励Ο繧、貂医∩繝輔ぃ繧、繝ォ繝ェ繧ケ繝医↓霑ス蜉縺吶k + */ +function addDeployedFiles(packagePath, key, targetFile) { + var packageName = packagePath.replace(/\\/g, '/').match(/.*\/(.*)/)[1]; + targetFile = key + '/' + targetFile.replace(/\\/g, '/'); + + if (deployedFiles.has(targetFile)) { + if (!deployedFiles[targetFile].some(packageName)) { + console.log(' duplicate file detected!!', targetFile); + deployedFiles[targetFile].add(packageName); + } + } else { + deployedFiles[targetFile] = [packageName]; + } +} + +/** + * 繝輔ぃ繧、繝ォ繧偵さ繝斐シ縺吶k + */ +function copyFile(src, dst, recurse) { + var opt = recurse ? '-Rf' : '-f'; + cp(opt, src, dst); + fs.exists(src, function(exists) { + if (exists) { + var srcStats = fs.statSync(src); + fs.utimesSync(dst, srcStats.atime, srcStats.mtime); + } + }) +} + +/** + * 髢狗匱逕ィ繝繝シ繝ォ繧堤函謌舌☆繧 + */ +function buildDevtoolJS() { + console.log('buildDevtoolJS:'); + + BUILD_TARGET_PATHS.each(function(targetDir) { + var autoconfScript = path.resolve(path.join(targetDir, AUTOCONF_JS_PATH)); + if (fs.existsSync(autoconfScript)) { + var scriptDir = path.resolve(path.join(targetDir, SCRIPT_DIR_PATH)); + var rScript = path.resolve(RSCRIPT_JS_PATH); + + var devtoolConf = path.resolve(path.join(targetDir, DEVTOOL_CF_PATH)); + + mkdir('-p', path.dirname(devtoolConf)); + + pushd(scriptDir); + + // js/build/devtool_conf.js 繧剃ス懈舌☆繧 + var result = execute(JS + ' ' + autoconfScript, {silent:true}); + fs.writeFileSync(devtoolConf, result.output); + + // js/devtool.js 繧剃ス懈舌☆繧 + execute(JS + ' ' + rScript + ' -o ' + devtoolConf); + + popd(); + }; + }); +} + +/** + * 繝薙Ν繝峨&繧後◆髢狗匱逕ィ繝繝シ繝ォ(devtool.js)繧帝榊ク縺吶k縲 + */ +function distDevtoolJS() { + console.log('distDevtoolJS:'); + var devtooljs = path.resolve(path.join(UI_DEMO_PATH, DEVTOOL_JS_PATH)); + var dest = path.resolve(path.join(PJ_WEBPRJ_PATH, DEVTOOL_JS_PATH)); + cp('-f', devtooljs, dest); +} + + +/** + * minify縺輔l縺櫟avaScript繝輔ぃ繧、繝ォ繧堤函謌舌☆繧 + */ +function buildMinifyJS() { + console.log('buildMinifyJS:'); + + BUILD_TARGET_PATHS.each(function(targetDir) { + var scriptDir = path.resolve(path.join(targetDir, SCRIPT_DIR_PATH)); + + var rScript = path.resolve(RSCRIPT_JS_PATH); + + var minifyJsFileName = path.basename(MINIFY_JS_PATH); + var uiJsFile = path.resolve(path.join(targetDir, UI_JS_PATH)); + + pushd(scriptDir); + + // js/nablarch/ui.js 繧剃ス懈舌☆繧 + createIntegrationUIScript(scriptDir, uiJsFile); + + // js/nablarch-minify.js 繧剃ス懈舌☆繧 + execute(JS + ' ' + rScript + ' -o name=nablarch.js out=' + minifyJsFileName + ' baseUrl=.'); + + popd(); + }); +} + +/** + * UI驛ィ蜩√Λ繧、繝悶Λ繝ェ隱ュ縺ソ霎シ縺ソ逕ィ縺ョ邨仙粋繝輔ぃ繧、繝ォ(js/nablarch/ui.js)繧堤函謌舌☆繧 + */ +function createIntegrationUIScript(relativeRootDir, targetJsFile) { + fs.writeFileSync(targetJsFile, 'define([' + LS); + find(path.dirname(targetJsFile)) + .filter(function(file) { + return file.match(/.*\.js$/) && !file.match(/.*test\.js$/i); + }) + .sortBy(function(file){ + return file.match(/.*Widget\.js$/i) ? 0 : 1; + }) + .each(function(targetFile, index) { + var dirname = path.dirname(path.relative(relativeRootDir, targetFile)).replace(/\\/g, '/'); + var filename = path.basename(targetFile, '.js'); + var comma = (index === 0) ? ' ' : ','; + fs.appendFileSync(targetJsFile, comma + ' "' + dirname + "/" + filename + '"' + LS); + }); + fs.appendFileSync(targetJsFile, '], function(Widget) { "use strict"; return { Widget: Widget }; });' + LS); +} + +/** + * minify縺輔l縺櫃SS繝輔ぃ繧、繝ォ繧堤函謌舌☆繧 + */ +function buildMinifyCSS() { + console.log('buildMinifyCSS:'); + + BUILD_TARGET_PATHS.each(function(targetDir) { + var cssDir = path.resolve(path.join(targetDir, CSS_BUILT_PATH)); + var toolsDir = path.resolve(path.join(targetDir, TOOLS_DIR_PATH)); + + var rScript = path.resolve(RSCRIPT_JS_PATH); + var lesscScript = path.resolve(LESSC_PATH); + + mkdir('-p', cssDir); + + var cssFindDir = null; + switch (targetDir) { + case PJ_WEBPRJ_PATH: + cssFindDir = 'ui_public'; + break; + case UI_DEMO_PATH: + case UI_TEST_PATH: + cssFindDir = 'ui_local'; + break; + } + + INTEGRATION_LESS_LIST.each(function(targetMode) { + //var lessFile = path.resolve(path.join(targetDir, IT_LESS_PATH.assign(targetMode))); + var lessFile = path.resolve(IT_LESS_PATH.assign(cssFindDir, targetMode)); + + var cssFile = path.resolve(path.join(targetDir, IT_CSS_PATH.assign(targetMode))); + var cssFileName = path.basename(cssFile); + + var minifyFile = path.resolve(path.join(targetDir, IT_MINIFY_PATH.assign(targetMode))); + var minifyFileName = path.basename(minifyFile); + + // css/built/(compact|narrow|wide).css 繧剃ス懈舌☆繧 + pushd(toolsDir); + var result = execute(JS + ' ' + lesscScript + ' ' + lessFile, {silent:true}); + fs.writeFileSync(cssFile, result.output); + popd(); + + // css/built/(compact|narrow|wide)-minify.css 繧剃ス懈舌☆繧 + pushd(cssDir); + execute(JS + ' ' + rScript + ' -o cssIn=' + cssFileName + ' out=' + minifyFileName); + + // css/built/(compact|narrow|wide)-minify.css 莉・螟悶ッ荳崎ヲ√↑縺溘a蜑企勁縺吶k + //rm('-f', lessFile, cssFile); + popd(); + }); + }); +} + +/** + * less隱ュ縺ソ霎シ縺ソ逕ィ縺ョ邨仙粋繝輔ぃ繧、繝ォ(css/built/(compact|narrow|wide).less)繧堤函謌舌☆繧 + */ +function generateLess() { + console.log('generateLess:'); + + sortCopiedCssFiles(); + + INTEGRATION_LESS_LIST.each(function(targetMode) { + createIntegrationLess(targetMode, true); + createIntegrationLess(targetMode, false); + }); + + /** + * CSS繝輔ぃ繧、繝ォ繝ェ繧ケ繝医r繧ス繝シ繝医☆繧 + */ + function sortCopiedCssFiles() { + var dispModeRegexp = new RegExp('.*(' + INTEGRATION_LESS_LIST.join('|') + ')$'); + + copiedCssFiles.keys(function(key) { + var targetCssFiles = copiedCssFiles[key]; + + // 繝代ャ繧ア繝シ繧ク繧ー繝ォ繝シ繝励#縺ィ縺ョ蜃ヲ逅 + var pluginGroups = Object.extended(); + targetCssFiles.each(function(n) { + var packageName = n.match(/.*\/node_modules\/([^\/]+)\//)[1]; + var packageGroup = packageName.match(/(.*)-.*$/)[1]; + if (pluginGroups[packageGroup]) { + pluginGroups[packageGroup].push(n); + } else { + pluginGroups[packageGroup] = [n]; + } + }); + + // 蜷繝代ャ繧ア繝シ繧ク繧ー繝ォ繝シ繝励ョbase繧貞磯ュ縺ォ遘サ蜍 + pluginGroups.keys(function(packageGroup) { + var pluginList = pluginGroups[packageGroup].sortBy(function(n) { + var packageName = n.match(/.*\/node_modules\/([^\/]+)\//)[1]; + var packageSuffix = packageName.match(/.*-(.*)$/)[1]; + if (packageSuffix === 'base') { + return 0; + } else { + return 1; + } + }); + pluginGroups[packageGroup] = pluginList; + }); + + targetCssFiles = pluginGroups.values().flatten(); + + // 繝代ャ繧ア繝シ繧ク縺斐→縺ョ蜃ヲ逅 + var pluginPackages = Object.extended(); + targetCssFiles.each(function(n) { + var packageName = n.match(/.*\/node_modules\/([^\/]+)\//)[1]; + if (pluginPackages[packageName]) { + pluginPackages[packageName].push(n); + } else { + pluginPackages[packageName] = [n]; + } + }); + + // 蜷繝代ャ繧ア繝シ繧ク縺ョ陦ィ遉コ繝「繝シ繝我サ倥″繝輔ぃ繧、繝ォ繧呈怙蠕悟ーセ縺ォ遘サ蜍 + pluginPackages.keys(function(packageName) { + var pluginList = pluginPackages[packageName].sortBy(function(n) { + var hasDispMode = path.basename(n, '.less').match(dispModeRegexp); + if (hasDispMode) { + return 1; + } else { + return 0; + } + }); + pluginPackages[packageName] = pluginList; + }); + + targetCssFiles = pluginPackages.values().flatten(); + + // nablarch-css繧呈歓蜃コ + var nablarchCssFiles = targetCssFiles + .filter(function(n) { + var packageName = n.match(/.*\/node_modules\/([^\/]+)\//)[1]; + return packageName.match(/nablarch-css-.*/); + + }).sortBy(function(n) { + // nablarch-css縺ョ荳ュ縺ァ繧る菴堺サ倥¢ + var packageName = n.match(/.*\/node_modules\/([^\/]+)\//)[1]; + if (packageName.match(/nablarch-css-core/)) { + if (n.endsWith('reset.less')) { + return 0; + } else { + return 1; + } + } else if (packageName.match(/nablarch-css-.*/)) { + return 2; + } + }); + + // nablarch縺ョcss繧剃ク譌ヲ蜑企勁縺励∝磯ュ縺ク霑ス蜉 + targetCssFiles = targetCssFiles.subtract(nablarchCssFiles); + targetCssFiles = targetCssFiles.add(nablarchCssFiles, 0); + + copiedCssFiles[key] = targetCssFiles; + }); + } + + /** + * less隱ュ縺ソ霎シ縺ソ逕ィ縺ョ邨仙粋繝輔ぃ繧、繝ォ(css/built/(compact|narrow|wide).less)繧堤函謌舌☆繧 + */ + function createIntegrationLess(targetMode, isLocal) { + var dispModeRegexp = new RegExp('.*(' + INTEGRATION_LESS_LIST.join('|') + ')$'); + + var binDir = process.cwd(); + + var targetLessFile = IT_LESS_PATH.assign(isLocal ? 'ui_local' : 'ui_public', targetMode); + var targetCssDir = path.dirname(targetLessFile); + + console.log('Create less.', targetLessFile); + + rm('-f', targetLessFile); + mkdir('-p', targetCssDir); + + var targetCssFile = copiedCssFiles['ui_public'].clone(); + if (isLocal && copiedCssFiles['ui_local']) { + targetCssFile.add(copiedCssFiles['ui_local']); + } + + targetCssFile + .filter(function(file) { + return !file.match(/.*\/built\/.*/) + && file.match(/.*\.less$/); + }) + .each(function(targetFile) { + var targetFilePath = path.resolve(path.join(binDir, targetFile)); + var dirname = path.dirname(path.relative(path.resolve(targetCssDir), targetFilePath)).replace(/\\/g, '/'); + var filename = path.basename(targetFile, '.less'); + targetFile = dirname + "/" + filename; + if (filename.match(dispModeRegexp)) { + if (filename.endsWith(targetMode)) { + // 陦ィ遉コ繝「繝シ繝画ッ弱ョ繝輔ぃ繧、繝ォ縺ッ蟇セ雎。繝「繝シ繝峨ョ縺ソ + fs.appendFileSync(targetLessFile, '@import "' + targetFile + '";' + LS, {'flag' : 'a+'}); + } + } else { + // 蜈ア騾壹ヵ繧。繧、繝ォ縺ッ縺吶∋縺ヲ + fs.appendFileSync(targetLessFile, '@import "' + targetFile + '";' + LS, {'flag' : 'a+'}); + } + }); + } +} + + +/** + * 螟夜Κ繧ウ繝槭Φ繝峨r螳溯。後☆繧 + */ +function execute(cmd, options) { + var result = exec(cmd, options); + if (result.code !== 0) { + console.log('Command execution failed. RC:[' + result.code + '] CMD:[' + cmd + ']'); + console.log(result.output); + process.exit(result.code); + } + return result; +} + +/** + * 譛蠕後↓繝薙Ν繝峨@縺溘ヵ繧。繧、繝ォ縺ョ繝ェ繧ケ繝医r逕滓舌☆繧 + */ +function createLastBuildFileList() { + console.log('createLastBuildFileList:'); + + var DEPLOY_TARGETS = new RegExp('(' + DEPLOY_PATHS.keys().join('|') + ')\/'); + + var lastBuildFileList = {}; + + // 閾ェ蜍慕函謌舌ヵ繧。繧、繝ォ + lastBuildFileList['_autogen'] = {'files' : AUTOGEN_FILES}; + + // 繝峨く繝・繝。繝ウ繝 + var yuidocConf = path.resolve(path.join(UI_TEST_PATH, YUIDOC_JSON_PATH)); + if (fs.existsSync(yuidocConf)) { + var yuidocOutDir = readJsonFile(yuidocConf).options.outdir; + lastBuildFileList['_autogen']['files'].add(yuidocOutDir); + } + + // 繧ウ繝斐シ逕サ蜒上ヵ繧。繧、繝ォ + lastBuildFileList['_autogen']['files'].add(copiedImages); + + ls(UI_MODULE_PATH) + .filter(function(targetModuleName) { + // 繝繧」繝ャ繧ッ繝医Μ縺ョ縺ソ + var targetModule = path.join(UI_MODULE_PATH, targetModuleName); + return fs.statSync(targetModule).isDirectory(); + }) + .each(function(targetModuleName) { + // 謚ス蜃コ縺励◆繝「繧ク繝・繝シ繝ォ縺斐→縺ォ蜃ヲ逅 + var listMap = {}; + + if (libraryDeployMappings[targetModuleName]) { + // 繧オ繝シ繝峨ヱ繝シ繝繧」繝ゥ繧、繝悶Λ繝ェ + listMap['files'] = Object.extended(libraryDeployMappings[targetModuleName]).values(); + + } else { + // 髢狗匱繝ゥ繧、繝悶Λ繝ェ + var targetModule = path.join(UI_MODULE_PATH, targetModuleName); + find(targetModule) + .filter(function(targetFilePath) { + // svn莉・螟悶°縺、蜷迺ー蠅縺ォ繧ウ繝斐シ縺吶k繝輔ぃ繧、繝ォ縺ョ縺ソ縺悟ッセ雎。 + return !isExcludeDirectory(targetFilePath) + && targetFilePath.match(DEPLOY_TARGETS); + }) + .each(function(targetFilePath) { + // 繝輔ぃ繧、繝ォ諠蝣ア繧貞ッセ雎。縺ョ繝ェ繧ケ繝医↓譬シ邏阪☆繧 + var targetFile = path.relative(targetModule, targetFilePath); + var listName = targetFile.split(path.sep)[0]; + var relativePath = targetFile.remove(listName + path.sep); + if (fs.statSync(targetFilePath).isFile()) { + if (!listMap[listName]) { + listMap[listName] = []; + } + listMap[listName].push(relativePath); + } + }); + } + + // 繝「繧ク繝・繝シ繝ォ縺ォ蜷ォ縺セ繧後k繝輔ぃ繧、繝ォ荳隕ァ繧貞コ蜉 + lastBuildFileList[targetModuleName] = listMap; + }); + + fs.writeFileSync(LAST_BUILD_FILE_LIST, + JSON.stringify(lastBuildFileList, function(key, value) { + return (typeof value === 'string') ? value.replace(/\\/g, '/') : value; + }, 0)); +} + +/** + * 譛蠕後↓繝薙Ν繝峨@縺溘ヵ繧。繧、繝ォ繧貞炎髯、縺吶k + */ +function removeLastBuildFile() { + console.log('removeLastBuildFile:'); + + if (!fs.existsSync(LAST_BUILD_FILE_LIST)) { + return; + } + var lastBuildFileList = readJsonFile(LAST_BUILD_FILE_LIST); + + for (var moduleName in lastBuildFileList) { + // 蜈ィ繝「繧ク繝・繝シ繝ォ + for (var listName in lastBuildFileList[moduleName]) { + // 蜈ィ繝ェ繧ケ繝 + var targetDeployPaths = DEPLOY_PATHS[listName] || UI_PUBLIC_DEPLOY_PATHS; + targetDeployPaths.each(function(targetDir) { + // 蟇セ雎。繝ェ繧ケ繝医ョ繝繝励Ο繧、蜈医r蜿門セ + var targetDirAbsolutePath = path.resolve(targetDir); + lastBuildFileList[moduleName][listName].each(function(targetFile) { + // 蟇セ雎。繝輔ぃ繧、繝ォ繧貞句挨縺ォ遒コ隱 + var targetFilePath = path.resolve(path.join(targetDir, targetFile)); + if (fs.existsSync(targetFilePath)) { + try { + // 繝輔ぃ繧、繝ォ繧貞炎髯、 + removeFile(targetFilePath); + + // 隕ェ繝繧」繝ャ繧ッ繝医Μ縺檎ゥコ縺ェ繧牙炎髯、 + var parentFilePath = path.dirname(targetFilePath); + while (parentFilePath != targetDirAbsolutePath + && fs.existsSync(parentFilePath) + && fs.readdirSync(parentFilePath).isEmpty()) { + removeFile(parentFilePath); + parentFilePath = path.dirname(parentFilePath); + } + } catch (e) { + if (isIgnoreRemovedFailed(moduleName, targetFile)) { + console.log('remove file failed.', e); + } else { + throw e; + } + } + } + }); + }); + } + } + + /** + * 繝輔ぃ繧、繝ォ繧貞炎髯、縺励∪縺 + */ + function removeFile(p) { + if (fs.statSync(p).isDirectory()) { + if (fs.readdirSync(p).isEmpty()) { + fs.rmdirSync(p); + } + } else { + fs.unlinkSync(p); + } + } + + /** + * 蟇セ雎。繝輔ぃ繧、繝ォ縺悟炎髯、縺ォ螟ア謨励@縺ヲ繧ら┌隕悶☆繧九°繧定ソ斐@縺セ縺 + */ + function isIgnoreRemovedFailed(moduleName, file) { + var ignoreFileList = IGNORE_REMOVED_FAILED_FILES[moduleName]; + if (ignoreFileList) { + return ignoreFileList.some(function(r) { + return file.match(new RegExp(r)); + }); + } + return false; + } +} + +/** + * 逕サ蜒上ヵ繧。繧、繝ォ繧偵さ繝斐シ縺吶k + */ +function copyimg() { + console.log('copyimg:'); + + var fromdirs = pjConf.imgcopy.fromdirs; + var todirs = pjConf.imgcopy.todirs; + + // 繧ウ繝斐シ螳溯。 + BUILD_TARGET_PATHS.forEach(function(buildTargetDir) { + fromdirs.forEach(function(fromdir){ + todirs.forEach(copy(buildTargetDir, fromdir)); + }); + }); + + /** + * callback 縺ョ繝倥Ν繝代シ縲 + */ + function copy(buildTargetDir, fromdir) { + return function (todir) { + copydir(buildTargetDir, fromdir, todir); + }; + } + + /** + * 繝繧」繝ャ繧ッ繝医Μ縺ョ蜀螳ケ繧偵さ繝斐シ縺吶k縲 + */ + function copydir(buildTarget, from, to) { + var fromdir = path.resolve(buildTarget, from); + var todir = path.resolve(buildTarget, to); + + if (fs.existsSync(fromdir)) { + fs.readdirSync(fromdir) + .filter(function(file) { + return !isExcludeDirectory(file); + }) + .forEach(cp_r); + } + + /** + * 蜀榊クー逧縺ォ繧ウ繝斐シ縺吶k縲 + * 繝輔ぃ繧、繝ォ縺悟ュ伜惠縺吶k蝣エ蜷医ッ繧ケ繧ュ繝繝励☆繧九 + */ + function cp_r(file) { + var frompath = path.join(fromdir, file) + , topath = path.join(todir, file) + , stat = fs.statSync(frompath); + if (stat.isDirectory()){ + if (!fs.existsSync(topath)) { + fs.mkdir(topath); + } + copydir(buildTarget, frompath, topath); + } else if (stat.isFile()) { + if (!fs.existsSync(topath)) { + copyfile(frompath, topath); + copiedImages.push(path.join(to, file)); + } + } + } + + /** + * 繝輔ぃ繧、繝ォ繧偵さ繝斐シ縺吶k縲 + */ + function copyfile(from, to) { + var parentDir = path.dirname(to); + if (!fs.existsSync(parentDir)) { + fs.mkdir(parentDir); + } + fs.createReadStream(from).pipe(fs.createWriteStream(to)); + } + } +} + +/** + * 繝励Λ繧ー繧、繝ウ髢薙〒驥崎、縺励※縺繧九ヵ繧。繧、繝ォ繧定。ィ遉コ縺吶k縲 + */ +function showDuplicateDeployFiles() { + var duplicatedDeployFiles = Object.extended(); + deployedFiles.keys(function(key) { + if (deployedFiles[key].length > 1) { + duplicatedDeployFiles[key] = deployedFiles[key]; + }; + }); + if (duplicatedDeployFiles.size() > 0) { + console.log(); + console.log('duplicate file detected!!'); + console.log(JSON.stringify(duplicatedDeployFiles, null, 2)); + } +} + +main(); + diff --git a/node_modules/nablarch-dev-tool-uibuild/package.json b/node_modules/nablarch-dev-tool-uibuild/package.json new file mode 100644 index 0000000..3a2ff97 --- /dev/null +++ b/node_modules/nablarch-dev-tool-uibuild/package.json @@ -0,0 +1,11 @@ +{ "name": "nablarch-dev-tool-uibuild" +, "version": "1.0.1" +, "description": "UI繝励Λ繧ー繧、繝ウ繝薙Ν繝峨さ繝槭Φ繝" +, "_from" : "nablarch-dev-tool-uibuild@1.0.1" +, "bin": { + "ui_build.js" : "./bin/ui_build.js" + } +, "dependencies": + { "shelljs": "0.2.6" + } +} diff --git a/node_modules/nablarch-dev-tool-uibuild/ui_local/tools/build/lib/autoconf.js b/node_modules/nablarch-dev-tool-uibuild/ui_local/tools/build/lib/autoconf.js new file mode 100644 index 0000000..589b634 --- /dev/null +++ b/node_modules/nablarch-dev-tool-uibuild/ui_local/tools/build/lib/autoconf.js @@ -0,0 +1,59 @@ +'use strict'; + +var fs = require('fs') + , path = require('path') + , libDirs = [ + 'jsp/taglib' + , 'nablarch' + , '../WEB-INF/tags' + , '../include'] + , config = { + name: 'devtool-loader' + , baseUrl: '../' + , out: '../devtool.js' + , preserveLicenseComments: false + , optimize: 'none' + , paths: { requireLib: 'require' } + , include: [ 'requireLib' ] + }; + +libDirs.forEach(include); + +process.stdout.write( + JSON.stringify(config, null, ' ') +); + +return; + +// ------------------ subroutines --------------------// +function include(dir) { + var stat = fs.lstatSync(dir); + if (path.basename(dir).indexOf('.') === 0) { + return; + } + else if (stat.isDirectory()) { + includeDir(dir); + } + if (stat.isFile()) { + includeFile(dir); + } +} + +function includeFile(file) { + var isJS = (path.extname(file) === '.js') + , loader = isJS ? '' : 'text!' + , module = isJS ? file.replace(/\.js$/, '') : file; + + if (isJS && file.indexOf('ui_test') >= 0 || file.match(/.*test\.js$/i)) { + return; + } + config.include.push(loader + module.replace(/\\/g, '/')); +} + +function includeDir(dir) { + var files = fs.readdirSync(dir) + files.forEach(function(file) { + include(path.join(dir, file)); + }); +} + diff --git a/node_modules/nablarch-dev-tool-update_support/bin/updated_plugin.js b/node_modules/nablarch-dev-tool-update_support/bin/updated_plugin.js new file mode 100644 index 0000000..8ee741c --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/bin/updated_plugin.js @@ -0,0 +1,38 @@ +'use strict'; +require('sugar'); + +var fs = require('fs') + , path = require('path') + , versions = require('../lib/versions'); + +//螳壽焚螳夂セゥ +var PROJECT_ROOT = process.env.PROJECT_ROOT + , UI_PLUGINS_DIRS = process.env.UI_PLUGINS_DIRS + ? process.env.UI_PLUGINS_DIRS.split(',') : ['ui_plugins'] + , PLUGIN_DIR = process.env.PLUGIN_DIR + ? process.env.PLUGIN_DIR :'../node_modules' + , CURRENT_VERSION = versions(PLUGIN_DIR) + , PJ_PLUGINS_DIRS = UI_PLUGINS_DIRS.map(function(pluginsDir) { + return path.join(PROJECT_ROOT, pluginsDir).trim(); + }) + , RESULT_FILE = 'updated_plugin.json'; + +function main() { + // PJ縺ォ縺ゅk繝励Λ繧ー繧、繝ウ豈弱↓譖エ譁ー迥カ諷九r遒コ隱阪☆繧九 + PJ_PLUGINS_DIRS.each(function(uiPluginsDir) { + var plugins; + if (!fs.existsSync(uiPluginsDir)) { + console.log(path.resolve(uiPluginsDir), 'is not found.'); + return false; // 謖螳壹&繧後◆繝繧」繝ャ繧ッ繝医Μ縺後↑縺蝣エ蜷医ッ縲∵、懃衍縺励◆譎らせ縺ァ蜃ヲ逅邨ゆコ縲 + } + plugins = CURRENT_VERSION.diff(versions(path.join(uiPluginsDir,'node_modules')).info); + if(Object.keys(plugins).isEmpty()) { + console.log("can not find unmatch-version plugin. [" + uiPluginsDir + "]"); + return; + } + fs.writeFileSync(path.join(uiPluginsDir, RESULT_FILE), JSON.stringify(plugins, null, 4)); + console.log("write unmatch-version plugin(s) to " + path.resolve(uiPluginsDir, RESULT_FILE)); + }); +} + +main(); diff --git a/node_modules/nablarch-dev-tool-update_support/lib/versions.js b/node_modules/nablarch-dev-tool-update_support/lib/versions.js new file mode 100644 index 0000000..0fede70 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/lib/versions.js @@ -0,0 +1,112 @@ +'use strict'; +require('sugar'); + +var fs = require('fs') + , path = require('path'); + +Versions.prototype = { + info : {} + , diff : Versions_diff + , list : Versions_list + , root : null +} + +/** + * 繝励Λ繧ー繧、繝ウ縺ョ繝舌シ繧ク繝ァ繝ウ諠蝣ア縲 + * + * @param pluginDir 繝励Λ繧ー繧、繝ウ鄒、縺ョ譬シ邏阪ョ繧」繝ャ繧ッ繝医Μ縲 + */ +function Versions(pluginsDir) { + this.constructor = Versions; + this.root = pluginsDir; + this.info = this.list(this.root); +} + +/** + * 蟾ョ蛻繧貞叙蠕励☆繧九 + * + * this.info = { + * plugin_a : 1.0.0 + * , plugin_b : 1.0.1 + * } + * + * target = { + * plugin_a : 1.0.0 + * , plugin_b : 1.0.0 + * , plugin_c : 1.0.0 + * , plugin_c_from : plugin_a@1.0.0 + * , plugin_d : 1.0.0 + * , plugin_d_from : plugin_b@1.0.0 + * , plugin_g : 1.0.0 + * } + * + * 縺ョ縺ィ縺 + * + * { plugin_b : 1.0.0 + * , plugin_d : 1.0.0 } 繧定ソ斐☆縲 + * + * @param target 蟾ョ蛻繧堤「コ隱阪☆繧句ッセ雎。縲 + * @returns target縺ョ蜀縲√く繝シ縺御ク閾エ縺励√ヰ繝シ繧ク繝ァ繝ウ縺御ク閾エ縺励↑縺隕∫エ縲 + */ +function Versions_diff(target) { + var diff = {} + , self = this.info; + Object.keys(target, function(key) { + var value = verExpr(target[key]) + , find_key = findKey(key, target[key]); + + // 邂。逅螟悶ョplugin縺ァ縺ゅl縺ー蟇セ雎。螟悶 + if (!Object.has(self, find_key)) return; + + if (self[find_key] != value) { + key = key.remove('_from'); + diff[key] = target[key]; + } + }); + return diff; + + /** + * 繝舌シ繧ク繝ァ繝ウ諠蝣ア縺ョ陦ィ迴セ縺ョ豁」隕丞喧縲 + */ + function verExpr(value) { + return value.split('@').last() + } + /** + * 繝励Λ繧ー繧、繝ウ縺ョ繧ュ繝シ諠蝣ア縺ョ豁」隕丞喧縲 + */ + function findKey(key, value) { + return key.endsWith('_from') ? value.split('@').first() : key; + } +} + +/** + * 繝繧」繝ャ繧ッ繝医Μ逶エ荳九ョ繝励Λ繧ー繧、繝ウ縺ョ繝舌シ繧ク繝ァ繝ウ諠蝣ア繧貞叙蠕励☆繧九 + * + * @param root + * @returns 繝繧」繝ャ繧ッ繝医Μ逶エ荳九ョ繝励Λ繧ー繧、繝ウ鄒、縺ョ繝舌シ繧ク繝ァ繝ウ諠蝣ア + */ +function Versions_list(root) { + var versions = {}; + fs.readdirSync(root) + .filter(function(dirname) { + return fs.existsSync(path.join(root, dirname, 'package.json')); + }) + .each(function(dirname){ + var info = require(path.resolve(root, dirname, 'package.json')); + versions[info.name] = info.version; + if (info._from) {versions[info.name+"_from"] = info._from;} + }); + return versions; +} + +/** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縺ョ繧ィ繧、繝ェ繧「繧ケ逕ィ縺ョ髢「謨ー縲 + * + * @param pluginDir 讀懈渊蟇セ雎。縺ョ繝繧」繝ャ繧ッ繝医Μ縲 + * @returns {Versions} + */ +function versions(pluginDir) { + return new Versions(pluginDir); +} + +module.exports = versions; \ No newline at end of file diff --git a/node_modules/nablarch-dev-tool-update_support/package.json b/node_modules/nablarch-dev-tool-update_support/package.json new file mode 100644 index 0000000..3f4435c --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/package.json @@ -0,0 +1,8 @@ +{ "name": "nablarch-dev-tool-update_support" +, "description": "Nablarch UI繝励Λ繧ー繧、繝ウ 繧「繝繝励ョ繝シ繝医し繝昴シ繝" +, "version": "1.0.0" +, "_from" : "nablarch-dev-tool-update_support@1.0.0" +, "dependencies": + { "sugarjs" : "1.4.1" + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/less/package.json b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/less/package.json new file mode 100644 index 0000000..3820226 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/less/package.json @@ -0,0 +1,7 @@ +{ + "name": "less", + "version": "1.4.2", + "description": "dummy third party lib for devlop", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/nablarch-dev-tool-server/package.json b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/nablarch-dev-tool-server/package.json new file mode 100644 index 0000000..86860d9 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/nablarch-dev-tool-server/package.json @@ -0,0 +1,7 @@ +{ + "name": "nablarch-dev-tool-server", + "version": "1.0.0", + "description": "nablarch*-devDepends", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/nablarch-js-submit/package.json b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/nablarch-js-submit/package.json new file mode 100644 index 0000000..cb5ed98 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/nablarch-js-submit/package.json @@ -0,0 +1,7 @@ +{ + "name": "nablarch-js-submit", + "version": "1.0.0", + "description": "nablarch*", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/pj-dev-has-from/package.json b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/pj-dev-has-from/package.json new file mode 100644 index 0000000..4278095 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/pj-dev-has-from/package.json @@ -0,0 +1,8 @@ +{ + "name": "pj-dev-has-from", + "version": "1.0.0", + "description": "pj-plugin-has-from", + "_from" : "nablarch-dev-tool-server@1.0.0", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/pj-dev-origin/package.json b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/pj-dev-origin/package.json new file mode 100644 index 0000000..4382289 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/pj-dev-origin/package.json @@ -0,0 +1,7 @@ +{ + "name": "pj-dev-origin", + "version": "1.0.0", + "description": "pj-original(not has _from)", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/pj-plugin-has-from/package.json b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/pj-plugin-has-from/package.json new file mode 100644 index 0000000..5b57bb1 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/pj-plugin-has-from/package.json @@ -0,0 +1,8 @@ +{ + "name": "pj-plugin-has-from", + "version": "1.0.0", + "description": "pj-plugin has from", + "_from" : "nablarch-js-submit@1.0.0", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/pj-plugin-original/package.json b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/pj-plugin-original/package.json new file mode 100644 index 0000000..79c667b --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/pj-plugin-original/package.json @@ -0,0 +1,7 @@ +{ + "name": "pj-plugin-original", + "version": "1.0.0", + "description": "pj-original(not has _from)", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/sugar/package.json b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/sugar/package.json new file mode 100644 index 0000000..61b7a69 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/node_modules/sugar/package.json @@ -0,0 +1,7 @@ +{ + "name": "sugar", + "version": "1.4.1", + "description": "dummy third party lib for product", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/all_match_case/package.json b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/package.json new file mode 100644 index 0000000..00c0079 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/all_match_case/package.json @@ -0,0 +1,16 @@ +{ "name": "all_match_case" +, "description": "蜈ィ縺ヲ縺ョ繝舌シ繧ク繝ァ繝ウ縺御ク閾エ繧ア繝シ繧ケ(nablarch*, thirdparty, pj_origin(from or not))" +, "dependencies" : { + "nablarch-js-submit" : "1.0.0" + , "sugar" : "1.4.1" + , "pj-plugin-has-from":"1.0.0" + , "pj-plugin-original":"0.0.1" + } +, "devDependencies" : { + "nablarch-dev-tool-server" : "1.0.0" + , "pj-dev-has-from" :"1.0.0" + , "pj-dev-origin" :"0.0.1" + , "less" : "1.4.2" + } +, "version": "1.0.0" +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/base_plugin_case/expected_updated_plugin.json b/node_modules/nablarch-dev-tool-update_support/test/base_plugin_case/expected_updated_plugin.json new file mode 100644 index 0000000..bbb1981 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/base_plugin_case/expected_updated_plugin.json @@ -0,0 +1,3 @@ +{ + "nablarch-dev-tool-server": "0.0.1" +} \ No newline at end of file diff --git a/node_modules/nablarch-dev-tool-update_support/test/base_plugin_case/node_modules/nablarch-dev-tool-server/package.json b/node_modules/nablarch-dev-tool-update_support/test/base_plugin_case/node_modules/nablarch-dev-tool-server/package.json new file mode 100644 index 0000000..d182e15 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/base_plugin_case/node_modules/nablarch-dev-tool-server/package.json @@ -0,0 +1,7 @@ +{ + "name": "nablarch-dev-tool-server", + "version": "0.0.1", + "description": "nablarch*-(unmatched)", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/base_plugin_case/node_modules/nablarch-js-submit/package.json b/node_modules/nablarch-dev-tool-update_support/test/base_plugin_case/node_modules/nablarch-js-submit/package.json new file mode 100644 index 0000000..e390c81 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/base_plugin_case/node_modules/nablarch-js-submit/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-js-submit", + "version": "1.0.0", + "description": "nablarch*", + "_from" : "nablarch-js-sumit@0.0.1", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/base_plugin_case/package.json b/node_modules/nablarch-dev-tool-update_support/test/base_plugin_case/package.json new file mode 100644 index 0000000..d81faaa --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/base_plugin_case/package.json @@ -0,0 +1,10 @@ +{ "name": "base_plugin_case" +, "description": "nablarch*縺ョ繝舌シ繧ク繝ァ繝ウ縺御ク閾エ縺励↑縺縲" +, "dependencies": { + "nablarch-js-submit" : "1.0.0" + } +, "devDependencies" : { + "nablarch-dev-tool-server":"0.0.1" + } +, "version": "1.0.0" +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/bin/all_match_case.bat b/node_modules/nablarch-dev-tool-update_support/test/bin/all_match_case.bat new file mode 100644 index 0000000..b06ea87 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/bin/all_match_case.bat @@ -0,0 +1,16 @@ +@setlocal + +REM 通常の実行時の作業ディレクトリへ。 +cd %~dp0 +cd ..\\..\\..\\..\\bin +@echo off +set PROJECT_ROOT=../node_modules/nablarch-dev-tool-update_support/test + +@echo on + +set UI_PLUGINS_DIRS=all_match_case + +node "..\\node_modules\\nablarch-dev-tool-update_support\\bin\\updated_plugin.js" +pause + +:END \ No newline at end of file diff --git a/node_modules/nablarch-dev-tool-update_support/test/bin/base_plugin.bat b/node_modules/nablarch-dev-tool-update_support/test/bin/base_plugin.bat new file mode 100644 index 0000000..e9145d9 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/bin/base_plugin.bat @@ -0,0 +1,16 @@ +@setlocal + +REM 通常の実行時の作業ディレクトリへ。 +cd %~dp0 +cd ..\\..\\..\\..\\bin +@echo off +set PROJECT_ROOT=../node_modules/nablarch-dev-tool-update_support/test + +@echo on + +set UI_PLUGINS_DIRS=base_plugin_case + +node "..\\node_modules\\nablarch-dev-tool-update_support\\bin\\updated_plugin.js" +pause + +:END \ No newline at end of file diff --git a/node_modules/nablarch-dev-tool-update_support/test/bin/many_plugins.bat b/node_modules/nablarch-dev-tool-update_support/test/bin/many_plugins.bat new file mode 100644 index 0000000..c0c758c --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/bin/many_plugins.bat @@ -0,0 +1,17 @@ +サソ@setlocal + +REM 騾壼クク縺ョ螳溯。梧凾縺ョ菴懈・ュ繝繧」繝ャ繧ッ繝医Μ縺ク縲 + +cd %~dp0 +cd ..\\..\\..\\..\\bin +@echo off +set PROJECT_ROOT=../node_modules/nablarch-dev-tool-update_support/test + +@echo on + +set UI_PLUGINS_DIRS=pj_plugin_case,base_plugin_case + +node "..\\node_modules\\nablarch-dev-tool-update_support\\bin\\updated_plugin.js" +pause + +:END \ No newline at end of file diff --git a/node_modules/nablarch-dev-tool-update_support/test/bin/not_exists_ui_plugins_dir.bat b/node_modules/nablarch-dev-tool-update_support/test/bin/not_exists_ui_plugins_dir.bat new file mode 100644 index 0000000..22e11fa --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/bin/not_exists_ui_plugins_dir.bat @@ -0,0 +1,16 @@ +サソ@setlocal + +REM 騾壼クク縺ョ螳溯。梧凾縺ョ菴懈・ュ繝繧」繝ャ繧ッ繝医Μ縺ク縲 +cd %~dp0 +cd ..\\..\\..\\..\\bin +@echo off +set PROJECT_ROOT=../node_modules/nablarch-dev-tool-update_support/test + +@echo on + +set UI_PLUGINS_DIRS=not_exists + +node "..\\node_modules\\nablarch-dev-tool-update_support\\bin\\updated_plugin.js" +pause + +:END \ No newline at end of file diff --git a/node_modules/nablarch-dev-tool-update_support/test/bin/pj_plugin.bat b/node_modules/nablarch-dev-tool-update_support/test/bin/pj_plugin.bat new file mode 100644 index 0000000..9427e44 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/bin/pj_plugin.bat @@ -0,0 +1,16 @@ +@setlocal + +REM 通常の実行時の作業ディレクトリへ。 +cd %~dp0 +cd ..\\..\\..\\..\\bin +@echo off +set PROJECT_ROOT=../node_modules/nablarch-dev-tool-update_support/test + +@echo on + +set UI_PLUGINS_DIRS=pj_plugin_case + +node "..\\node_modules\\nablarch-dev-tool-update_support\\bin\\updated_plugin.js" +pause + +:END \ No newline at end of file diff --git a/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/expected_updated_plugin.json b/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/expected_updated_plugin.json new file mode 100644 index 0000000..df714f9 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/expected_updated_plugin.json @@ -0,0 +1,3 @@ +{ + "pj-dev-has-from": "1.0.0" +} \ No newline at end of file diff --git a/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/node_modules/pj-dev-has-from/package.json b/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/node_modules/pj-dev-has-from/package.json new file mode 100644 index 0000000..6f7b934 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/node_modules/pj-dev-has-from/package.json @@ -0,0 +1,8 @@ +{ + "name": "pj-dev-has-from", + "version": "1.0.0", + "description": "pj-plugin-has-from", + "_from" : "nablarch-dev-tool-server@0.9.0", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/node_modules/pj-dev-origin/package.json b/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/node_modules/pj-dev-origin/package.json new file mode 100644 index 0000000..4382289 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/node_modules/pj-dev-origin/package.json @@ -0,0 +1,7 @@ +{ + "name": "pj-dev-origin", + "version": "1.0.0", + "description": "pj-original(not has _from)", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/node_modules/pj-plugin-has-from/package.json b/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/node_modules/pj-plugin-has-from/package.json new file mode 100644 index 0000000..5b57bb1 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/node_modules/pj-plugin-has-from/package.json @@ -0,0 +1,8 @@ +{ + "name": "pj-plugin-has-from", + "version": "1.0.0", + "description": "pj-plugin has from", + "_from" : "nablarch-js-submit@1.0.0", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/node_modules/pj-plugin-original/package.json b/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/node_modules/pj-plugin-original/package.json new file mode 100644 index 0000000..79c667b --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/node_modules/pj-plugin-original/package.json @@ -0,0 +1,7 @@ +{ + "name": "pj-plugin-original", + "version": "1.0.0", + "description": "pj-original(not has _from)", + "dependencies": { + } +} diff --git a/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/package.json b/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/package.json new file mode 100644 index 0000000..78d5c44 --- /dev/null +++ b/node_modules/nablarch-dev-tool-update_support/test/pj_plugin_case/package.json @@ -0,0 +1,12 @@ +{ "name": "pj_plugin_case" +, "description": "PJ縺ァ繧ウ繝斐シ縺励◆繧ゅョ縺御ク閾エ縺励↑縺繧ゅョ縺後≠繧句エ蜷" +, "dependencies" : { + "pj-plugin-has-from":"1.0.0" + , "pj-plugin-original":"0.0.1" + } +, "devDependencies" : { + "pj-dev-has-from" :"1.0.0" + , "pj-dev-origin" :"0.0.1" + } +, "version": "1.0.0" +} diff --git a/node_modules/nablarch-dev-ui_demo-config/package.json b/node_modules/nablarch-dev-ui_demo-config/package.json new file mode 100644 index 0000000..0121bca --- /dev/null +++ b/node_modules/nablarch-dev-ui_demo-config/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-dev-ui_demo-config" +, "description": "JSP繝ュ繝シ繧ォ繝ォ陦ィ遉コ縺ョ繧ウ繝ウ繝輔ぅ繧ョ繝・繝ャ繝シ繧キ繝ァ繝ウ繝励Λ繧ー繧、繝ウ" +, "version": "1.0.1" +, "_from" : "nablarch-dev-ui_demo-config@1.0.1" +, "dependencies": {} +} diff --git a/node_modules/nablarch-dev-ui_demo-config/ui_local/js/jsp/context.js b/node_modules/nablarch-dev-ui_demo-config/ui_local/js/jsp/context.js new file mode 100644 index 0000000..97982c1 --- /dev/null +++ b/node_modules/nablarch-dev-ui_demo-config/ui_local/js/jsp/context.js @@ -0,0 +1,82 @@ +define(['sugar'],function() { +var c = Object.create({setVar: setVar, getVar: getVar}), FW="nablarch_"; Object.each({"":"" +, projectName : '繝繝「繧「繝励Μ繧ア繝シ繧キ繝ァ繝ウ' +, systemName : '繝ヲ繝シ繧カ諠蝣ア邂。逅繧キ繧ケ繝繝' +, commonHeaderLoginUserName : '繝繧ケ繝医Θ繝シ繧カ' +, commonHeaderLoginDate : '2013/6/13' +, sortSubmitTag : 'submitLink' +, sortSubmitType : '' +, sortSubmitCss : FW+'sort' +, ascSortSubmitCss : FW+'asc' +, descSortSubmitCss : FW+'desc' +, defaultSort : 'asc' +, deleteUserCount : '5' // 繝ヲ繝シ繧カ諠蝣ア荳諡ャ蜑企勁螳御コ(蜑企勁莉カ謨ー) +, recordCount : '10' // 繝ヲ繝シ繧カ荳諡ャ逋サ骭イ(逋サ骭イ莉カ謨ー) +, resultCount : '1' // 繝ヲ繝シ繧カ荳隕ァ辣ァ莨(讀懃エ「邨先棡莉カ謨ー) +, nablarch_confirmationpage : Object.fromQueryString(document.location, true)[FW+'confirmationPage'] +, nablarch_spec_layout : Object.fromQueryString(document.location, true)[FW+'spec_layout'] +, nablarch_spec_conditions : Object.fromQueryString(document.location, true)[FW+'spec_conditions'] +/* + * 荳玖ィ倥ッ蜑企勁縺吶∋縺阪励Ο繝代ユ繧」縺縺後 + * local rendering 譎ゅョ蝠城。後ョ縺溘a谿九☆縲 + * 縺薙l繧呈ョ九&縺ェ縺縺ィlocal rendering 縺ィ server 蜍穂ス懊〒蜃コ蜉帙&繧後k隕∫エ縺悟、峨o縺」縺ヲ縺励∪縺縲 + * server縺ィlocal縺ァ蜷梧ァ倥↓蜍輔°縺吝エ蜷医ッ貍皮ョ励ョ蜆ェ蜈亥コヲ繧り諷ョ縺励※荳玖ィ倥ョ繧医≧縺ォ螳溯」縺励↑縺縺ィ縺縺代↑縺縲 + * e.g. + * ((useResultCount == true) || (useResultCount == 'true')) + */ +, useResultCount : 'true' +, usePaging : 'true' +, usePrevSubmit : 'true' +, useNextSubmit : 'true' +, useCurrentPageNumber : 'true' +, usePageNumberSubmit : 'false' +, useFirstSubmit : 'false' +, useLastSubmit : 'false' + +}, function(k,v) {c[k.toLowerCase()] = v;}); +return c; + +//--------- functions for managing the variables in context --------// +function setVar(name, value) { + var target = this + , i, len, key, next; + + name = name && name.toLowerCase().split('.'); + for (i = 0, len = name.length; i < len; i++) { + var key = name[i]; + if (i === len-1) { + target[key] = value; + } + else { + next = target[key]; + if (next === null || typeof next === 'undefined') { + next = target[key] = {}; + } + target = next; + } + } +} + +function getVar(name) { + var target = this + , i, len, key; + + if (key === 'disabled') return this.__disabled; + + name = name && name.toLowerCase().split('.'); + for (i = 0, len = name.length; i < len; i++) { + var key = name[i]; + if (i === len-1) { + return target[key]; + } + else { + target = target[key]; + if (target === null || typeof target === 'undefined') { + return target; + } + } + } +} + +}); + diff --git a/node_modules/nablarch-dev-ui_demo-core-lib/package.json b/node_modules/nablarch-dev-ui_demo-core-lib/package.json new file mode 100644 index 0000000..391c00d --- /dev/null +++ b/node_modules/nablarch-dev-ui_demo-core-lib/package.json @@ -0,0 +1,8 @@ +{ "name": "nablarch-dev-ui_demo-core-lib" +, "description": "JSP繝ュ繝シ繧ォ繝ォ陦ィ遉コ縺ョ繧ウ繧「繝ゥ繧、繝悶Λ繝ェ" +, "version": "1.0.1" +, "_from" : "nablarch-dev-ui_demo-core-lib@1.0.1" +, "dependencies": { + "nablarch-dev-ui_demo-core" : "1.0.1" + } +} diff --git a/node_modules/nablarch-dev-ui_demo-core-lib/ui_local/js/jsp/el.js b/node_modules/nablarch-dev-ui_demo-core-lib/ui_local/js/jsp/el.js new file mode 100644 index 0000000..752bfba --- /dev/null +++ b/node_modules/nablarch-dev-ui_demo-core-lib/ui_local/js/jsp/el.js @@ -0,0 +1,269 @@ +/** + * @module jsp + * @author Iwauo Tajima + */ +define(['nablarch/util/Consumer', 'jsp/taglib/function', 'sugar'], +function(Consumer, jstlFunctions) { 'use strict'; + var identifireFragment = "[_$a-zA-Z][_0-9a-zA-Z]*"; + + return el_interpolate; + + /** + * EL蠑上ョ邁。譏薙ヱ繝シ繧オ繝シ + * + * 貂。縺輔l縺滓枚蟄怜励↓縺、縺縺ヲ縲∵枚蟄怜嶺クュ縺ョ `${...}` 蠖「蠑上〒蝓九a霎シ縺セ繧後◆el蠑上r + * 螻暮幕縺励◆邨先棡縺ョ譁蟄怜励r霑斐☆縲 + * + * @method el + * @for jsp + * @static + * @param {String} str 隧穂セ。蟇セ雎。譁蟄怜 + * @param {Object} [context] 繧ウ繝ウ繝繧ュ繧ケ繝亥、画焚繧呈シ邏阪@縺溘が繝悶ず繧ァ繧ッ繝 + * @return {String} 隧穂セ。邨先棡譁蟄怜 + */ + function el_interpolate(str, context) { + var m = /^\$\{([^}]*)\}$/.exec(str) + , v; + + if (m) { + v = el_eval(m[1], context); + } + else { + v = str.replace(/\$\{([^}]*)\}/g, function(_, expr) { + var v = el_eval(expr, context); + return (typeof v === 'undefined' || v === null) ? '' + : (v === false) ? 'false' + : v; + }); + } + return v; + } + + /** + * EL蠑上r隧穂セ。縺吶k縲 + */ + function el_eval(expr, context) { + var c = new Consumer(expr) + , v; + c.data = context; + v = expression(c); + return v[0]; + } + + /** + * 蠑 + */ + function expression(c) { + return c.once(ternaryExpression) + || c.once(bareExpression); + } + + function bareExpression(c) { + return c.once(binaryExpresstion) + || c.once(term); + } + + /** + * 2鬆貍皮ョ怜シ + */ + function binaryExpresstion(c) { + var op, v1, v2; + return (v1 = term(c)) + && (op = binaryOp(c)) + && (v2 = term(c)) + && op.fill(v1[0], v2[0]).call(c); + } + + /** + * 3鬆貍皮ョ怜シ + */ + function ternaryExpression(c) { + var cond, branch1, branch2; + return (cond = bareExpression(c)) + && c.consume('\\?') + && (branch1 = expression(c)) + && c.consume('\\:') + && (branch2 = expression(c)) + && !!cond[0] ? branch1 : branch2; + } + + /** + * 鬆 + */ + function term(c) { + return c.once(expressionValue) + || c.once(unaryExpression) + || c.once(literal) + || c.once(value); + } + + /** + * 蜊倬貍皮ョ + */ + function unaryExpression(c) { + var op, v; + return (op = unaryOp(c)) + && (v = term(c)) + && op.fill(v[0]).call(c); + } + + /** + * 蠑上r諡ャ蠑ァ縺ァ縺上¥縺」縺ヲ鬆縺ォ縺吶k縲 + */ + function expressionValue(c) { + var v; + return c.consume('\\(') + && (v = expression(c)) + && c.consume('\\)') + && v; + } + + /** + * 蜊倬貍皮ョ怜ュ + */ + function unaryOp(c) { + return c.consume('-') && function(a) { return [-1 * a] } + || c.consume('!|not') && function(a) { return [!a] } + || c.consume('empty') && function(a) { + return (a && a.hasOwnProperty('length')) ? [a.length == 0] + : [!a]; + }; + } + + /** + * 2鬆貍皮ョ怜ュ + */ + function binaryOp(c) { + return c.consume('\\&\\&|and') && function(a,b) { return [a && b] } + || c.consume('\\|\\||or') && function(a,b) { return [a || b] } + || c.consume('\\+') && function(a,b) { return [a + b] } + || c.consume('\\-') && function(a,b) { return [a - b] } + || c.consume('\\*') && function(a,b) { return [a * b] } + || c.consume('\\/|div') && function(a,b) { return [a / b] } + || c.consume('%|mod') && function(a,b) { return [a % b] } + || c.consume('>|gt') && function(a,b) { return [a > b] } + || c.consume('<|lt') && function(a,b) { return [a < b] } + || c.consume('>=|ge') && function(a,b) { return [a >= b] } + || c.consume('<=|le') && function(a,b) { return [a <= b] } + || c.consume('==|eq') && function(a,b) { return [a == b] } + || c.consume('!=|ne') && function(a,b) { return [a != b] }; + } + + /** + * 螟画焚 + */ + function value(c) { + var key, val; + return (val = c.once(functionInvocation)) && val + || (key = c.once(identifier)) && resolve(c, key); + } + + /** + * 隴伜挨蟄 + */ + function identifier(c) { + var m; + return !reserved(c) + && (m = c.consume(identifireFragment + '(\\.' + identifireFragment + ')*')) + && m[0].trim(); + } + + /** + * 髢「謨ー蜻シ縺ウ蜃コ縺 + */ + function functionInvocation(c) { + var m, fname, args, func; + return !reserved(c) + && (m = c.consume(identifireFragment + '\\:(' + identifireFragment + ')\\(')) + && (fname = m[1]) + && (args = functionArguments(c)) + && c.consume('\\)') + && (func = jstlFunctions[fname]) + && [func.apply(c, args)]; + } + + function functionArguments(c) { + var args = [] + , arg = c.once(expression); + if (!arg) { + return []; + } + args = c.some(additionalArg); + if (args) { + args.unshift(arg[0]); + } + else { + args = [arg[0]]; + } + return args; + } + + function additionalArg(c) { + var arg; + return c.consume(',') + && (arg = expression(c)) + && arg[0]; + } + + /** + * 莠育エ隱 + */ + function reserved(c) { + return c.consume([ + 'and', 'or', 'not', 'eq', 'ne', 'lt', 'gt', 'le', 'ge' + , 'true', 'false', 'null', 'instanceof', 'empty', 'mod' + ].join(' |')); + } + + /** + * 繧ウ繝ウ繝繧ュ繧ケ繝亥、画焚縺ョ蛟、隗」豎コ繧定。後≧縲 + */ + function resolve(c, key) { + var value = c.data.getVar(key); + return [value]; + } + + /** + * 繝ェ繝繝ゥ繝ォ蛟、 + */ + function literal(c) { + return c.once(booleanLiteral) + || c.once(numberLiteral) + || c.once(stringLiteral) + || c.once(nullLiteral); + } + + /** + * 逵溷⊃蛟、繝ェ繝繝ゥ繝ォ + */ + function booleanLiteral(c) { + return c.consume('true') && [true] + || c.consume('false') && [false]; + } + + /** + * 謨ー蛟、繝ェ繝繝ゥ繝ォ + */ + function numberLiteral(c) { + var m; + return (m = c.consume('[0-9]+(\\.[0-9]+)?([eE][-+]?[0-9]+)?')) && [Number(m[0])]; + } + + /** + * 譁蟄怜励Μ繝繝ゥ繝ォ + */ + function stringLiteral(c) { + var m; + // IE8 bug. Two RegExp bugs in Internet Explorer 8 + // http://blogs.perl.org/users/mauke/2010/11/two-regexp-bugs-in-internet-explorer-8.html + return (m = c.consume('\"([^\"]*)\"')) && [m[1]] + || (m = c.consume("\'([^\']*)\'")) && [m[1]]; + } + + /** + * null繝ェ繝繝ゥ繝ォ + */ + function nullLiteral(c) { + return c.consume('null') && [null]; + } +}); diff --git a/node_modules/nablarch-dev-ui_demo-core-lib/ui_local/js/jsp/taglib/function.js b/node_modules/nablarch-dev-ui_demo-core-lib/ui_local/js/jsp/taglib/function.js new file mode 100644 index 0000000..e289bef --- /dev/null +++ b/node_modules/nablarch-dev-ui_demo-core-lib/ui_local/js/jsp/taglib/function.js @@ -0,0 +1,204 @@ +/** + * JSTL繧ソ繧ー繝ゥ繧、繝悶Λ繝ェ讓呎コ悶ョ邨縺ソ霎シ縺ソ髢「謨ー(``)縺ョ繧ィ繝溘Η繝シ繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * @module jsp.taglib + * @class jsp.taglib.function + * @author Iwauo Tajima + */ +define(['sugar'], +function($) { 'use strict'; + return { + /** + * `fn:contains()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Tests if an input string contains the specified substring. + * @method contains + */ + contains: function_contains + /** + * `fn:containsIgnoreCase()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Tests if an input string contains the specified substring in a case insensitive way. + * @method containsIgnoreCase + */ + , containsIgnoreCase: function_containsIgnoreCase + /** + * `fn:startsWith()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Tests if an input string starts with the specified prefix. + * @method startsWith + */ + , startsWith: function_startsWith + + /** + * `fn:endsWith()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Tests if an input string ends with the specified suffix. + * @method endsWith + */ + , endsWith: function_endsWith + /** + * `fn:escapeXml()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Escapes characters that could be interpreted as XML markup. + * @method escapeXml + */ + , escapeXml: function_escapeXml + /** + * `fn:indexOf()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Returns the index withing a string of the first occurrence of a specified substring. + * @method indexOf + */ + , indexOf: function_indexOf + /** + * `fn:join()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Joins all elements of an array into a string. + * @method join + */ + , join: function_join + /** + * `fn:length()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Returns the number of items in a collection, or the number of characters in a string. + * @method length + */ + , length: function_length + /** + * `fn:replace()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Returns a string resulting from replacing in an input string all occurrences + * of a "before" string into an "after" substring. + * @method replace + */ + , replace: function_replace + /** + * `fn:split()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Splits a string into an array of substrings. + * @method split + */ + , split: function_split + /** + * `fn:substring()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Returns a subset of a string. + * @method substring + */ + , substring: function_substring + /** + * `fn:substringAfter()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Returns a subset of a string following a specific substring. + * @method substringAfter + */ + , substringAfter: function_substringAfter + /** + * `fn:substringBefore()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Returns a subset of a string before a specific substring. + * @method substringBefore + */ + , substringBefore: function_substringBefore + /** + * `fn:toLowerCase()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Converts all of the characters of a string to lower case. + * @method toLowerCase + */ + , toLowerCase: function_toLowerCase + /** + * `fn:toUpperCase()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Converts all of the characters of a string to upper case. + * @method toUpperCase + */ + , toUpperCase: function_toUpperCase + /** + * `fn:trim()` 髢「謨ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * Removes white spaces from both ends of a string. + * @method trim + */ + , trim: function_trim + + }; + + function function_trim(text) { + return (text || "").trim(); + } + + function function_toLowerCase(text) { + return (text || "").toLowerCase(); + } + + function function_toUpperCase(text) { + return (text || "").toUpperCase(); + } + + function function_substringBefore(text, pattern) { + text = text || ""; + var pos = text.indexOf(pattern); + return (pos === -1) ? '' + : text.substring(0, pos); + } + + function function_substringAfter(text, pattern) { + text = text || ""; + var pos = text.indexOf(pattern); + return (pos === -1) ? '' + : text.substring(pos+1, text.length); + } + + function function_substring(text, start, end) { + text = text || ""; + return (end === -1) ? text.substring(start) + : text.substring(start, end); + } + + function function_split(text, separator) { + text = text || ""; + if (!separator) return text; + return text.split(separator); + } + + function function_replace(text, pattern, replacement) { + text = text || ""; + pattern = new RegExp(RegExp.escape(pattern || ""), 'g'); + replacement = replacement || ""; + return text.replace(pattern, replacement); + } + + function function_length(obj) { + obj = obj || ""; + return obj.length + ""; + } + + function function_join(arr, separator) { + arr = arr || []; + separator = separator || ""; + return arr.join(separator); + } + + function function_indexOf(str, substr) { + str = str || ""; + substr = substr || ""; + return str.indexOf(substr) + ''; + } + + function function_contains(str, substr) { + str = str || ""; + substr = substr || ""; + return str.indexOf(substr) >= 0; + } + + function function_containsIgnoreCase(str, substr) { + str = str || ""; + substr = substr || ""; + return str.toLowerCase().indexOf(substr.toLowerCase()) >= 0; + } + + function function_startsWith(str, prefix) { + str = str || ""; + prefix = prefix || ""; + return str.startsWith(prefix); + } + + function function_endsWith(str, suffix) { + str = str || ""; + suffix = suffix || ""; + return str.endsWith(suffix); + } + + function function_escapeXml(str) { + str = str || ""; + return str; // 繝繧ュ繧ケ繝医ヮ繝シ繝牙喧縺吶k縺ョ縺ァ譏守、コ逧縺ェ繧ィ繧ケ繧ア繝シ繝励ッ荳崎ヲ√ + } +}); + + diff --git a/node_modules/nablarch-dev-ui_demo-core-lib/ui_local/js/jsp/taglib/html.js b/node_modules/nablarch-dev-ui_demo-core-lib/ui_local/js/jsp/taglib/html.js new file mode 100644 index 0000000..50b4e63 --- /dev/null +++ b/node_modules/nablarch-dev-ui_demo-core-lib/ui_local/js/jsp/taglib/html.js @@ -0,0 +1,75 @@ +/** + * 繝悶Λ繧ヲ繧カ縺ォ繧医k證鈴サ咏噪DOM謫堺ス懊ョ蟇セ雎。縺ィ縺ェ繧九ョ縺ァ縲∽サョ諠ウ逧縺ェJSP繧ソ繧ー縺ォ鄂ョ謠帙@縺溘ち繧ー繧 + * 蜈縺ョHTML繧ソ繧ー縺ォ蠕ゥ譌ァ縺吶k縲 + * + * 蟇セ雎。縺ィ縺ェ繧稀TML繧ソ繧ー縺ッ莉・荳九ョ縺ィ縺翫j縲 + * + * - **title/style:** + * HTML縺ョ莉墓ァ倅ク翫懊ョ繧」驛ィ縺悟ュ伜惠縺励↑縺縺ョ縺ァ縲 + * 繝懊ョ繧」縺ォ險倩ソー縺励◆JSP繧ソ繧ー縺後ユ繧ュ繧ケ繝医ヮ繝シ繝画桶縺縺ォ縺ェ縺」縺ヲ縺励∪縺縲 + * + * - **table/tr/td/th:** + * 隕ェ蟄宣未菫ゅ′蜴ウ蟇縺ァ縺ゅk縺溘a縲∫峩謗・縺ョ隕ェ蟄舌′JSP繧ソ繧ー縺ァ縺ゅ▲縺溘j縲 + * 繧ソ繧ー繝輔ぃ繧、繝ォ荳ュ縺ォ迢ャ遶九↓蟄伜惠縺励※縺縺溘j縺吶k縺ィ縲.OM繝弱シ繝峨°繧蛾勁蜴サ縺輔l縺ヲ縺励∪縺縲 + * + * @module jsp.taglib + * @class jsp.taglib.html + * @author Iwauo Tajima + */ +define(['jsp', 'sugar'], +function($) { 'use strict'; + return { + script : $.noop + , title : setTitle + , style : setStyle + , tr : htmlTag.fill('tr') + , td : htmlTag.fill('td') + , th : htmlTag.fill('th') + , table : htmlTag.fill('table') + , select : htmlTag.fill('select') + }; + + function htmlTag(tagName, $tagBody, context) { + var $tag + , styleName; + $tag = $('<'+tagName+'>').attr($(this).jsp_attrs(context)).append($tagBody); + + if (tagName === 'td' && context.css) { + // IE蟇セ遲悶Dolumn.js縺ァ騾驕ソ縺励◆width螻樊ァ繧団ss螻樊ァ縺ィ縺励※蠕ゥ蜈縺吶k + for (styleName in context.css) { + if (context.css.hasOwnProperty(styleName)) { + $tag.css(styleName, context.css[styleName]); + } + } + } + return $tag; + } + + function setTitle($tagBody, context) { + var $title = $('
', $(this).jsp_attrs(context)).append($tagBody); + $(this).remove(); + $title.jsp_eval(context); + setTimeout(function() { + document.title = $title.text(); + $title.remove(); + }, 1000); + return false; + } + + function setStyle($tagBody, context) { + var $style = $(''); + +// Object.create() 縺ョ shim (IE8莉・荳狗畑) +if (typeof Object.create === 'undefined') { + Object.create = function (proto) { + function F() {}; + F.prototype = proto; + return new F(); + }; +} + +(function(document, require) { "use strict"; + // minify縺輔l縺ヲ縺縺ェ縺蝣エ蜷医ッ蜈医↓require.js繧偵Ο繝シ繝峨@縺ヲ縺九i蛻晄悄蛹悶☆繧九 + var scripts = document.scripts + , script = scripts[scripts.length - 1] + , head = script.parentNode + , jsPath = script.src + '/../' + , loader = document.createElement('script'); + + // minify貂医∩繧ケ繧ッ繝ェ繝励ヨ縺ョ蝣エ蜷医ッrequirejs縺悟酔譴ア縺輔l縺ヲ縺繧九ョ縺ァ縺昴ョ縺セ縺セ蛻晄悄蛹悶☆繧九 + if (typeof require === 'function') { + require.config({baseUrl : jsPath}); + require(['jquery', 'devtool/Main'], function($, Main) { + $(function() { + var $body = $('body'); + $body.widget(Main); + $(document).on('jsp_processed', function() { + require(['nablarch/ui/readonly'], function(readonly){ + $("select, input, textarea") + .filter("." + readonly.markerCss) + .readonly(); + }); + $body.addClass('loaded'); + }); + }); + }); + return; + } + + // 繝繝シ繝ォ縺翫h縺ウ萓晏ュ倥せ繧ッ繝ェ繝励ヨ繧偵Ο繝シ繝峨☆繧九 + loader.setAttribute('src', jsPath + 'require.js'); + require.baseUrl = jsPath; + require.deps = ['jquery', 'devtool/Main']; + require.callback = function($, Main) { + var $body = $('body'); + $body.widget(Main); + $(document).on('jsp_processed', function() { + require(['nablarch/ui/readonly'], function(readonly){ + $("select, input, textarea") + .filter("." + readonly.markerCss) + .readonly(); + }); + $body.addClass('loaded'); + }); + }; + head.insertBefore(loader, null); + +})(document, require); + diff --git a/node_modules/nablarch-dev-ui_demo-core/ui_local/js/devtool/DevTool.template b/node_modules/nablarch-dev-ui_demo-core/ui_local/js/devtool/DevTool.template new file mode 100644 index 0000000..4311a3a --- /dev/null +++ b/node_modules/nablarch-dev-ui_demo-core/ui_local/js/devtool/DevTool.template @@ -0,0 +1,28 @@ + + +
+ +
    + +
  • + + 險ュ險域嶌繝薙Η繝シ繧帝幕縺 +
  • + +
  • + + 繧ス繝シ繧ケ繧ウ繝シ繝峨ン繝・繝シ繧帝幕縺 +
  • + +
  • + + 騾壼クク縺ョ繝。繝九Η繝シ繧剃スソ逕ィ縺吶k +
  • + +
+
+ diff --git a/node_modules/nablarch-dev-ui_demo-core/ui_local/js/devtool/JspPreview.js b/node_modules/nablarch-dev-ui_demo-core/ui_local/js/devtool/JspPreview.js new file mode 100644 index 0000000..81222a3 --- /dev/null +++ b/node_modules/nablarch-dev-ui_demo-core/ui_local/js/devtool/JspPreview.js @@ -0,0 +1,77 @@ +/** + * @module devtool + */ +define(['jsp', 'nablarch/ui/Widget', 'sugar'], +function($, Widget) { 'use strict'; + + JspPreview.widgetType = 'devtool_JspPreview'; + + /** + * 繝峨く繝・繝。繝ウ繝亥縺ョJSP繧ス繝シ繧ケ縺ョ繝ャ繝ウ繝繝ェ繝ウ繧ー繝励Ξ繝薙Η繝シ陦ィ遉コ鬆伜沺 + * + * @namespace devtool + * @class devtool.JspPreview + * @author Iwauo Tajima + * @since 1.3 + */ + JspPreview.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * @method JspPreview + * @constructor + * @param {HTMLElement} body JSP繧ス繝シ繧ケ繧ウ繝シ繝峨′險倩ソー縺輔l縺溯ヲ∫エ(騾壼クク縺ッBODY) + */ + constructor: JspPreview + /** + * 繝峨く繝・繝。繝ウ繝亥縺ョJSP繧ス繝シ繧ケ繧ウ繝シ繝 + * @property source + * @type String + */ + , source: null + /** + * JSP縺ョDOM繝繝ェ繝シ繧呈シ邏阪@縺殍Query邨先棡繧サ繝繝 + * @property $jsp + * @type jQuery + */ + , $jsp: null + /** + * JSP繧貞阪Ξ繝ウ繝繝ェ繝ウ繧ー縺励√励Ξ繝薙Η繝シ繧呈峩譁ー縺吶k縲 + * @method render + * @chainable + */ + , render: JspPreview_render + }); + + /** + * 繧、繝吶Φ繝亥ョ夂セゥ + */ + JspPreview.event = { + + }; + + function JspPreview(body) { + this.constructor = JspPreview; + Widget.call(this, body); + + this.source = this.$node.html() + .replace(/</g, '<').replace(/>/g, '>'); + try { + this.$jsp = $.jsp(this.source, '__page'); + } catch(e) { + alert(e); + } + this.$node.empty(); + this.render(); + } + + function JspPreview_render() { + this.$node.empty(); + this.$jsp.clone() + .appendTo(this.$node) + .jsp_eval(); + return this; + } + + return JspPreview; +}); + diff --git a/node_modules/nablarch-dev-ui_demo-core/ui_local/js/devtool/Main.js b/node_modules/nablarch-dev-ui_demo-core/ui_local/js/devtool/Main.js new file mode 100644 index 0000000..6f2e074 --- /dev/null +++ b/node_modules/nablarch-dev-ui_demo-core/ui_local/js/devtool/Main.js @@ -0,0 +1,74 @@ +/** + * @module devtool + */ +define([ + 'jquery' +, 'nablarch/ui/Widget' +, 'text!./DevTool.template' // HTML繝繝ウ繝励Ξ繝シ繝 +, './JspPreview' // 繝壹シ繧ク蜀縺ョJSP繧ウ繝シ繝峨Ξ繝ウ繝繝ェ繝ウ繧ー邨先棡縺ョ繝励Ξ繝薙Η繝シ +, './SpecSheetView' // 逕サ髱「鬆逶ョ螳夂セゥ譖ク繝薙Η繝シ +, 'nablarch/ui/LightBox' +, 'nablarch/ui/ContextMenu' + +, 'sugar'], +function($, Widget, template, JspPreview, SpecSheetView) { 'use strict'; + + ToolMain.widgetType = "devtool_Main"; + + /** + * 繝「繝繧ッ逕サ髱「JSP髢狗匱逕ィ繝繝シ繝ォ + * + * 譛ャ繝繝シ繝ォ縺ッbody隕∫エ縺ォ莉倬囂縺吶k繧ヲ繧」繧ク繧ァ繝繝医→縺励※螳溯」縺励※縺繧九 + * + * @class devtool.ToolMain + * @author Iwauo Tajima + * @since 1.3 + */ + ToolMain.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * + * @method ToolMain + * @constructor + * @param {HTMLElement} body body繧ソ繧ー縺ョDOM隕∫エ + */ + constructor: ToolMain + /** + * JSP繝励Ξ繝薙Η繝シ陦ィ遉コ繧ヲ繧」繧ク繧ァ繝繝 + * @property preview + * @type devtool.JspPreview + */ + , preview: null + /** + * 逕サ髱「鬆逶ョ螳夂セゥ譖ク繝薙Η繝シ繧ヲ繧」繧ク繧ァ繝繝 + * @property specSheet + * @type devtool.SpecSheetView + */ + , specSheet : null + }); + + /** + * 繧、繝吶Φ繝亥ョ夂セゥ + */ + ToolMain.event = { + '#contextMenu li.specView click': function() { + this.specSheet.render(this.preview.$jsp); + } + , '#contextMenu li.sourceView click': function() { + $('.sourceView').jsp_showSource(); + } + }; + + function ToolMain(body) { + this.constructor = ToolMain; + this.preview = $(body).widget(JspPreview); + $(body).append(template); + this.specSheet = $('#specSheetView').widget(SpecSheetView); + Widget.call(this, body); + if (document.location.toString().has('nablarch_spec_open_specsheet')) { + this.specSheet.render(this.preview.$jsp); + } + } + + return ToolMain; +}); diff --git a/node_modules/nablarch-dev-ui_demo-core/ui_local/js/jsp.js b/node_modules/nablarch-dev-ui_demo-core/ui_local/js/jsp.js new file mode 100644 index 0000000..59e17a4 --- /dev/null +++ b/node_modules/nablarch-dev-ui_demo-core/ui_local/js/jsp.js @@ -0,0 +1,467 @@ +/** + * 繝壹シ繧ク荳開SP繧ス繝シ繧ケ繧ウ繝シ繝峨r繝悶Λ繧ヲ繧カ荳翫〒繝「繝繧ッ繝ャ繝ウ繝繝ェ繝ウ繧ー縺吶kjQuery諡。蠑オ縲 + * + * 蜷ЙSP繧ソ繧ー繧貞ッセ蠢懊☆繧稀TML繧ソ繧ー縺ォ螟画鋤縺吶k蜃ヲ逅縺ッ縲 `jsp/taglib/(繧ソ繧ー繝ェ繝門錐).js` 縺ォ + * 繝繧」繧ケ繝代ャ繝√&繧後k縲 + * 萓九∴縺ー縲 `` 縺ョ螟画鋤縺ッ `jsp/taglib/jstl.js` 縺ァ陦後↑繧上l繧九 + * + * @example + * var src = $('body').html() // JSP繧ス繝シ繧ケ繧ウ繝シ繝 + * , $jsp = $.jsp(src) // JSP繧ソ繧ー縺ョDOM繝弱シ繝峨r菴懈舌 + * , context = {login_id: 'user1'} // 繧サ繝繧キ繝ァ繝ウ繝サ繝ェ繧ッ繧ィ繧ケ繝医サ繝壹シ繧ク繧ウ繝ウ繝繧ュ繧ケ繝医ョ蜀螳ケ + * + * $('body').remove(); // JSP繧ス繝シ繧ケ繧堤判髱「縺九i髯、蜴サ + * + * $jsp.jsp_eval(context) // JSP縺ョDOM繝弱シ繝峨rHTML縺ョDOM縺ォ螟画鋤縺励 + * .appendTo('body'); // 逕サ髱「縺ォ陦ィ遉コ縺吶k縲 + * + * $jsp.find('c\\:if').attr('test', 'true'); // 蜈ィ縺ヲ縺ョ繧ソ繧ー縺ョ譚。莉カ蠑上r逵溘↓螟画峩縲 + * + * $('body').remove() + * .append($jsp.jsp_eval(context)); // 蜀肴緒逕サ + * + * @module jsp + * @requires jquery, jsp/context, jsp/el, sugar + * + * @author Iwauo Tajima + * @since 1.3 + */ +define(['jquery', 'jsp/context', 'jsp/el', 'devtool/jsp_verifier','sugar'], +function($, topContext, el, verifier) { 'use strict'; + + var alias = { + button : 'button' + , field : 'field' + , c : 'jstl' + , jsp : 'jsp' + , n : 'nablarch' + , t : 'template' + }; + + function define() { + $.jsp = jquery_jsp; + $.jsp_pageContext = topContext; + $.loadTagfile = jquery_loadTagfile; + $.loadedTags = {}; + $.fn.jsp_eval = jquery_jsp_eval; + $.fn.jsp_attrs = jquery_jsp_attrs; + $.fn.jsp_evaledNode = jqeury_jsp_evaledNode; + $.fn.jsp_verify = jquery_jsp_verify; + $.fn.jsp_showError = jquery_jsp_showError; + $.fn.jsp_showSource = jquery_jsp_showSource; + $.fn.jsp_addError = jquery_jsp_addError; + + // JSP繝ャ繝ウ繝繝ェ繝ウ繧ー螳御コ繧、繝吶Φ繝 + var pid = setInterval(function() { + var $jspTagsUnprocessed = $('div[data-jsp]'); + if (!$jspTagsUnprocessed.length) { + $.event.trigger($.Event('jsp_processed')); + clearInterval(pid); + } + }, 1000); + + return $; + } + + function jqeury_jsp_evaledNode() { + return this.first().contents().first().next(); + } + + /** + * 謖螳壹&繧後◆繝代せ荳翫ョ繧ソ繧ー繝輔ぃ繧、繝ォ繧谷SP繧ソ繧ー縺ョ蜀螳ケ縺ィ縺励※螻暮幕縺吶k縲 + * + * @method loadTagfile + * @static + * @for jQuery + * @param {String} path 繧ソ繧ー繝輔ぃ繧、繝ォ縺ョ繧ウ繝ウ繝繧ュ繧ケ繝医Ν繝シ繝磯堺ク九°繧峨ョ逶ク蟇セ繝代せ縲 + * @param {jQuery} $tagBody 迴セ蝨ィ蜃ヲ逅荳ュ縺ョJSP繧ソ繧ー繧呈シ邏阪@縺殍Query邨先棡繧サ繝繝 + * @param {Object} context 迴セ蝨ィ縺ョ繧ウ繝ウ繝繧ュ繧ケ繝亥、画焚繧呈シ邏阪@縺溘が繝悶ず繧ァ繧ッ繝 + * @param {String} tagName 迴セ蝨ィ蜃ヲ逅荳ュ縺ョJSP繧ソ繧ー縺ョ繧ソ繧ー蜷 + * @return {boolean} 蟶ク縺ォfalse繧定ソ斐☆縲 + */ + function jquery_loadTagfile(path, $tagBody, context, tagName) { + var $tag = $(this); + context['__$tagBody'] = $tagBody; + $tag.jsp_verify(path, tagName, function($content) { + $tag.replaceWith($content); + $content.jsp_eval(context); + }); + return false; + } + + function jquery_jsp_verify(path, tagName, callback) { + var $tag = $(this) + , jsp = $tag[0].outerHTML + , module = ('text!' + path + '/' + tagName + '.tag').replace(/\/+/g, '/'); + + require([module], function(content) { + var $content = $.jsp(content, module); + + $.loadedTags[$tag[0].tagName] = ''; + verifier.verify(module, $tag); + $tag.jsp_showError(); + if (callback) { + callback.call($tag[0], $content); + } + }); + return false; + } + + function jquery_jsp_addError(message) { + jquery_jsp_showError.messages.push(message); + } + + jquery_jsp_showError.messages = []; + + + function jquery_jsp_showSource() { + var src = jquery_jsp.meta.pageSrc.escapeHTML() + , nid = this.attr('data-seq') + , tagName = this.attr('data-jsp') + , tagPtn = /\<([-_:a-zA-Z0-9]+) data-seq=\"([0-9]+)\"(.*?)\>/g + , $pain = $('div.sourceView').show(); + + if ($('div.sourceView pre').length) return; + + src = src.replace(tagPtn, function(openTag, currName, currNid, following) { + + var html = '<' + currName + following + '>' + + if (currNid === nid) { + html = '' + html + ''; + } + return html; + }); + + $('

').text('JSP繧ス繝シ繧ケ繧ウ繝シ繝').appendTo($pain); + $(' + *

+ * + * @class nablarch.ui.LightBox + * @author Iwauo Tajima + * @since 1.3 + */ + LightBox.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * @method LightBox + * @param {HTMLElement} element 繧ウ繝ウ繝繧ュ繧ケ繝医Γ繝九Η繝シ繧呈ァ区舌☆繧汽OM繝弱シ繝 + * @param {Object} opts 繧ェ繝励す繝ァ繝ウ繧呈シ邏阪@縺溘が繝悶ず繧ァ繧ッ繝 + * @constructor + */ + constructor: LightBox + /** + * 繝繧、繧「繝ュ繧ー縺碁幕縺九l縺ヲ縺繧九°縺ゥ縺縺九 + * @property isOpen + * @type Boolean + */ + , isOpen: null + /** + * 繝繧、繧「繝ュ繧ー縺ョ陦ィ遉コ菴咲スョ(逕サ髱「蟾ヲ遶ッ縺九i縺ョpx謖螳) + * null縺ョ蝣エ蜷医ッ逕サ髱「荳ュ螟ョ縺ォ陦ィ遉コ縺吶k繧医≧縺ォ閾ェ蜍慕噪縺ォ隱ソ謨エ縺吶k縲 + * @property left + * @type Number + */ + , left: null + /** + * 繝繧、繧「繝ュ繧ー縺ョ陦ィ遉コ菴咲スョ(逕サ髱「荳顔ォッ縺九i縺ョpx謖螳) + * null縺ョ蝣エ蜷医ッ逕サ髱「荳ュ螟ョ縺ォ陦ィ遉コ縺吶k繧医≧縺ォ閾ェ蜍慕噪縺ォ隱ソ謨エ縺吶k縲 + * @property top + * @type Number + */ + , top: null + /** + * 繝繧、繧「繝ュ繧ー縺ョ閭梧勹縺ィ縺励※蜈ィ逕サ髱「陦ィ遉コ縺吶kdiv隕∫エ + * @property $screen + * @type HTMLElement + */ + , $screen: null + /** + * 繝「繝シ繝繝ォ繝繧、繧「繝ュ繧ー繧貞ア暮幕縺吶k縲 + * @method show + * @param {jQuery.Event} event 繧、繝吶Φ繝医が繝悶ず繧ァ繧ッ繝 + * @chainable + */ + , show: LightBox_show + /** + * 繝「繝シ繝繝ォ繝繧、繧「繝ュ繧ー繧帝哩縺倥k縲 + * @method hide + * @param {jQuery.Event} event 繧、繝吶Φ繝医が繝悶ず繧ァ繧ッ繝 + * @chainable + */ + , hide : LightBox_hide + /** + * 迴セ蝨ィ縺ョ繧ケ繝繝シ繧ソ繧ケ縺ォ蠢懊§縺ヲ陦ィ遉コ繧呈峩譁ー縺吶k縲 + * @method render + * @param {jQuery.Event} event 繧、繝吶Φ繝医が繝悶ず繧ァ繧ッ繝 + * @chainable + */ + , render : LightBox_render + }); + + LightBox.event = {}; + + /** + * 繧ヲ繧」繧ク繧ァ繝繝郁ュ伜挨蟄 + * @property widgetType + * @static + * @final + * @default "nablarch_LightBox" + */ + LightBox.widgetType = "nablarch_LightBox"; + + Widget.register(LightBox); + + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + */ + function LightBox(element, opts) { + this.constructor = LightBox; + this.isOpen = false; + this.left = Number(opts.left); + this.top = Number(opts.top); + this.$screen = $('
', {'class': 'nablarch_LightBox_screen'}) + .hide().appendTo('body'); + + Widget.call(this, element); + + this.bindEvent(opts.open, 'show'); + this.bindEvent(opts.close, 'hide'); + + this.render(); + } + + function LightBox_render(event) { + var self = this; + if (!self.isOpen) { + self.$node.hide(); + self.$screen.hide(); + } + else { + adjustPlacement(); + self.$screen.show(); + self.$node.show(); + } + return this; + + // --- subroutines --- // + function adjustPlacement() { + var left = self.left || ($(window).innerWidth() - self.$node.innerWidth()) / 2 + , top = self.top || ($(window).innerHeight() - self.$node.innerHeight()) / 2 ; + + self.$screen.css({ + top : 0 + , left : 0 + , height : $(document).innerHeight() + 'px' + , width : $(document).innerWidth() + 'px' + }); + + self.$node.css({ + top : top + 'px' + , left : left + 'px' + }); + } + } + + function LightBox_show(event) { + this.isOpen = true; + this.render(event); + } + + function LightBox_hide(event) { + this.isOpen = false; + this.render(event); + } + + return LightBox; +}); diff --git a/node_modules/nablarch-dev-ui_tool-base-core/ui_public/css/ui/contextmenu.less b/node_modules/nablarch-dev-ui_tool-base-core/ui_public/css/ui/contextmenu.less new file mode 100644 index 0000000..9c7265e --- /dev/null +++ b/node_modules/nablarch-dev-ui_tool-base-core/ui_public/css/ui/contextmenu.less @@ -0,0 +1,34 @@ +// 繧ウ繝ウ繝繧ュ繧ケ繝医Γ繝九Η繝シ +.nablarch_ContextMenu { + position : absolute; + z-index : 1000; + margin : 0; + padding : 0; + border : 1px solid @mainColor2; + + .box-shadow(4px, 0, 4px, #ccc); + background-color: @baseColor; + list-style : none outside none; + + + li { + padding : 1px; + color : @mainColor1; + a { + display : block; + width : 100%; + } + border-top : 1px solid #eee; + border-bottom : 1px solid #ddd; + } + + li:hover, li.current { + background-color : @mainColor1; + color : @baseColor; + } + + a { + text-decoration: none !important; + text-decoration: underline; // affects ie6 only. + } +} \ No newline at end of file diff --git a/node_modules/nablarch-dev-ui_tool-base-core/ui_public/css/ui/lightbox.less b/node_modules/nablarch-dev-ui_tool-base-core/ui_public/css/ui/lightbox.less new file mode 100644 index 0000000..eda1421 --- /dev/null +++ b/node_modules/nablarch-dev-ui_tool-base-core/ui_public/css/ui/lightbox.less @@ -0,0 +1,16 @@ +.nablarch_LightBox_screen { + opacity : 0.8; + background-color : @baseColor; + position : absolute; + top : 0; + left : 0; + z-index : 799; +} + +.nablarch_LightBox { + background-color : @baseColor; + position : absolute; + top : 0; + left : 0; + z-index : 800; +} diff --git a/node_modules/nablarch-dev-ui_tool-jsp_verify/package.json b/node_modules/nablarch-dev-ui_tool-jsp_verify/package.json new file mode 100644 index 0000000..83a167b --- /dev/null +++ b/node_modules/nablarch-dev-ui_tool-jsp_verify/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-dev-ui_tool-jsp_verify" +, "description": "JSP讀懆ィシ繝繝シ繝ォ繝励Λ繧ー繧、繝ウ" +, "version": "1.0.0" +, "_from" : "nablarch-dev-ui_tool-jsp_verify@1.0.0" +, "dependencies": {} +} diff --git a/node_modules/nablarch-dev-ui_tool-jsp_verify/ui_local/js/devtool/jsp_verifier.js b/node_modules/nablarch-dev-ui_tool-jsp_verify/ui_local/js/devtool/jsp_verifier.js new file mode 100644 index 0000000..5ba437b --- /dev/null +++ b/node_modules/nablarch-dev-ui_tool-jsp_verify/ui_local/js/devtool/jsp_verifier.js @@ -0,0 +1,81 @@ +define(['jquery', 'sugar'], +function($){ + + return { + verify : verify + }; + // ------------------------ + function verify(moduleName, $tag) { + if (isUnsupported()) return; //IE8縺ァ邊セ譟サ縺吶k縺ィ蠢縺壹お繝ゥ繝シ縺ォ縺ェ縺」縺ヲ縺励∪縺縲 + var meta = $.jsp.meta[moduleName]; + verifyAllRequiredAttributesAreAssigned(meta, $tag); + verifyAllAttributesAreConfirmedByTLD(meta, $tag); + verifyAllAttributesNeededForSpecSheetAreAssined(meta, $tag); +// verifyAllFieldsAreIncludedInALayout(meta, $tag); + } + + /** + * 繝ュ繝シ繧ォ繝ォ繝ャ繝ウ繝繝ェ繝ウ繧ー繧偵し繝昴シ繝医☆繧九ヶ繝ゥ繧ヲ繧カ縺ョ縺縺。 + * 邊セ譟サ讖溯ス繧偵し繝昴シ繝医〒縺阪k繝悶Λ繧ヲ繧カ縺九←縺縺句愛螳壹☆繧九 + * 繝ュ繝シ繧ォ繝ォ繝ャ繝ウ繝繝ェ繝ウ繧ー譎ゅ↓縺ッIE8縺ァ髢九>縺溷エ蜷医↓縲∽コ呈鋤陦ィ遉コ繝「繝シ繝峨〒蜍穂ス懊@縲 + * IE7縺ォ縺ェ繧九%縺ィ縺後≠繧九ョ縺ァ縲「serAgent縺栗E7繧堤、コ縺吝エ蜷医b繧オ繝昴シ繝亥ッセ雎。螟悶↓縺吶k縲 + */ + function isUnsupported() { + var userAgent = navigator && navigator.userAgent || ""; + return !!userAgent.match(/msie\s*[78]/i); + } + + function verifyAllFieldsAreIncludedInALayout(meta, $tag) { + var tagName = $tag.attr('data-jsp'); + if (!tagName.match(/^(column:|field:)/)) return; + if (tagName === 'field:block') return; + + if(!$tag.closest('[data-jsp="spec:layout"]').length) { + $tag.jsp_addError( + '險ュ險域嶌逕サ髱「荳翫↓鬆逶ョ繧定。ィ遉コ縺吶k縺ォ縺ッ<' + + $tag.attr('data-jsp') + + '>繧ソ繧ー繧繧ソ繧ー蜀縺ォ險倩ソー縺吶k蠢隕√′縺ゅj縺セ縺吶' + ); + } + } + + function verifyAllRequiredAttributesAreAssigned(meta, $tag) { + Object.each(meta.attributes, function(attrName, attrSpec) { + if (!attrSpec.description) { + return; + } + if (attrSpec.description.has('[繝ュ繝シ繧ォ繝ォ陦ィ遉コ蠢鬆]') && !$tag.attr(attrName)) { + $tag.jsp_addError( + '繝励Ξ繝薙Η繝シ逕サ髱「繧定。ィ遉コ縺吶k縺溘a縺ォ<' + $tag.attr('data-jsp') + '>繧ソ繧ー縺ォ縺ッ' + attrName + '螻樊ァ縺悟ソ隕√〒縺吶' + ); + } + }); + } + + function verifyAllAttributesNeededForSpecSheetAreAssined(meta, $tag) { + Object.each(meta.attributes, function(attrName, attrSpec) { + if (!attrSpec.description) { + return; + } + if (attrSpec.description.has('[險ュ險域嶌陦ィ遉コ蠢鬆]') && !$tag.attr(attrName)) { + $tag.jsp_addError( + '險ュ險域嶌繝薙Η繝シ繧定。ィ遉コ縺吶k縺溘a縺ォ<' + $tag.attr('data-jsp') + '>繧ソ繧ー縺ォ縺ッ' + attrName + '螻樊ァ縺悟ソ隕√〒縺吶' + ); + } + }); + } + + function verifyAllAttributesAreConfirmedByTLD(meta, $tag) { + var attrs = $tag[0].attributes + , attr, name , i, len; + for (i=0, len=attrs.length; i < len; i++) { + attr = attrs[i]; name = attr.nodeName; + if (name.startsWith('data-') || name.startsWith('_')) continue; + if (!(name.toLowerCase() in meta.attributes)) { + $tag.jsp_addError( '<' + $tag.attr('data-jsp') + '>繧ソ繧ー縺ォ' + name + '螻樊ァ縺ッ菴ソ逕ィ縺ァ縺阪∪縺帙s縲' ); + return false; + } + } + } + +}); \ No newline at end of file diff --git "a/node_modules/nablarch-dev-ui_tool-jsp_verify/ui_test/jsp/\343\203\255\343\203\274\343\202\253\343\203\253\343\203\254\343\203\263\343\203\200\343\203\252\343\203\263\343\202\260\347\262\276\346\237\273/\345\261\236\346\200\247/\345\255\230\345\234\250\343\201\227\343\201\252\343\201\204\345\261\236\346\200\247.jsp" "b/node_modules/nablarch-dev-ui_tool-jsp_verify/ui_test/jsp/\343\203\255\343\203\274\343\202\253\343\203\253\343\203\254\343\203\263\343\203\200\343\203\252\343\203\263\343\202\260\347\262\276\346\237\273/\345\261\236\346\200\247/\345\255\230\345\234\250\343\201\227\343\201\252\343\201\204\345\261\236\346\200\247.jsp" new file mode 100644 index 0000000..2a95f7e --- /dev/null +++ "b/node_modules/nablarch-dev-ui_tool-jsp_verify/ui_test/jsp/\343\203\255\343\203\274\343\202\253\343\203\253\343\203\254\343\203\263\343\203\200\343\203\252\343\203\263\343\202\260\347\262\276\346\237\273/\345\261\236\346\200\247/\345\255\230\345\234\250\343\201\227\343\201\252\343\201\204\345\261\236\346\200\247.jsp" @@ -0,0 +1,18 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="spec" tagdir="/WEB-INF/tags/widget/spec" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + \ No newline at end of file diff --git a/node_modules/nablarch-dev-ui_tool-spec_view-core/package.json b/node_modules/nablarch-dev-ui_tool-spec_view-core/package.json new file mode 100644 index 0000000..04c05a8 --- /dev/null +++ b/node_modules/nablarch-dev-ui_tool-spec_view-core/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-dev-ui_tool-spec_view-core" +, "description": "逕サ髱「險ュ險域嶌陦ィ遉コ繝繝シ繝ォ繧ウ繧「繝励Λ繧ー繧、繝ウ" +, "version": "1.0.1" +, "_from" : "nablarch-dev-ui_tool-spec_view-core@1.0.1" +, "dependencies": {} +} \ No newline at end of file diff --git a/node_modules/nablarch-dev-ui_tool-spec_view-core/ui_local/js/devtool/SpecSheetInterpreter.js b/node_modules/nablarch-dev-ui_tool-spec_view-core/ui_local/js/devtool/SpecSheetInterpreter.js new file mode 100644 index 0000000..d6fda85 --- /dev/null +++ b/node_modules/nablarch-dev-ui_tool-spec_view-core/ui_local/js/devtool/SpecSheetInterpreter.js @@ -0,0 +1,162 @@ +/** + * @module devtool + */ +define(['jquery' +, 'jsp/context' +, './SpecSheetItems' +, 'sugar'], +function($, context) { "use strict"; + /** + * 逕サ髱「險ュ險域嶌繝薙Η繝シ + * + * JSP縺ョDOM繝弱シ繝峨°繧臥判髱「險ュ險域ュ蝣ア繧呈歓蜃コ縺励 + * 逕サ髱「險ュ險域嶌繝繝ウ繝励Ξ繝シ繝井ク翫↓蜃コ蜉帙☆繧九 + * + * @class devtool.SpecSheetInterpreter + * @author Iwauo Tajima + * @since 1.4 + */ + SpecSheetInterpreter.prototype = { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * + * @method ToolMain + * @constructor + * @param {jQuery} $specSheet 讌ュ蜍咏判髱「險ュ險域嶌繝繝ウ繝励Ξ繝シ繝医ョ + * DOM繝弱シ繝峨r譬シ邏阪☆繧桔Query邨先棡繧サ繝繝 + */ + constructor: SpecSheetInterpreter + /** + * 讌ュ蜍咏判髱「險ュ險域嶌繝繝ウ繝励Ξ繝シ繝医ョDOM繝弱シ繝峨r譬シ邏阪☆繧桔Query邨先棡繧サ繝繝 + * @property $specSheet + * @type jQuery + */ + , $specSheet: null + /** + * 讌ュ蜍咏判髱「JSP縺ョDOM繝弱シ繝峨ョ蜀螳ケ繧呈・ュ蜍咏判髱「險ュ險域嶌繝繝ウ繝励Ξ繝シ繝井ク翫↓蜃コ蜉帙☆繧九 + * @method eval + * @param {jQuery} $jsp 讌ュ蜍咏判髱「JSP縺ョDOM繝弱シ繝峨r + * 譬シ邏阪@縺殍Query邨先棡繧サ繝繝 + */ + , eval: SpecSheetInterpreter_eval + }; + + function SpecSheetInterpreter($specSheet) { + tidyUp(); + this.$specSheet = $specSheet; + + // --- subroutines --- // + function tidyUp() { + var $head = $specSheet.find('tr:contains(COMMAND)').first(); + $specSheet.find('tr').slice(0, $head.index()+4).remove(); + $specSheet.find('ruby > span').remove(); + } + }; + + function SpecSheetInterpreter_eval($jsp) { + var $rows = this.$specSheet.find('tr') + , instructionOf = { + INTERPOLATE: interpolate + , TEMPLATE : template + , 'TEMPLATE{': nestedTemplate + , '}' : function() {} + }; + + $rows.each(function(){ + exec(this, Object.create(null)); + }); + + this.$specSheet.find('col:nth-child(1), col:nth-child(2)').remove(); + this.$specSheet.find('td:nth-child(2)').remove(); + this.$specSheet.find('td:nth-child(1)').remove(); + return; + + //--------- subroutines -----------// + function exec(row, data) { + var $row = $(row) + , name = $row.find('td').eq(0).text().trim() + , arg = $row.find('td').eq(1).text().trim() + + instruction = instructionOf[name]; + instruction && instruction.apply(row, [arg, data]); + } + + function interpolate(arg, data) { + $(this).find('td').each(function() { + var cell = this + , $cell = $(cell) + , content = $(cell).text(); + data.cell = cell; + $cell.empty(); + content = content.replace(/\{\{([^}]+)\}\}/g, function(_, expr) { + var evaled = evalExpression(expr, data); + if (evaled instanceof jQuery) { + $cell.append(evaled); + return ''; + } + return evaled; + }); + $cell.append(document.createTextNode(content)); + }); + } + + function evalExpression(expr, data) { + var result = new Function('jsp', 'context', 'count', 'item', 'cell', + 'return (' + expr.replace('\n', ' ') + ');' + ).apply(context, [$.findJspTag.bind($jsp), context, data.count, data.item, data.cell]) || ''; + //console.log(expr, ' --> ', result) + return result; + } + + function template(arg, data, nesting) { + var template = this + , $template = $(template) + , $nextRow = $template.next('tr') + , $items = evalExpression(arg, data); + + $template.find('td').each(function() { + var $cell = $(this) + , w = Object.map($cell.css([ + 'borderTopWidth' + , 'borderRightWidth' + , 'borderBottomWidth' + , 'borderLeftWidth' + ]), function(k, v){return parseInt(v) > 0 ? '0.5pt' : '0'}) + , style = 'border-width: ' + + w.borderTopWidth + ' ' + + w.borderRightWidth + ' ' + + w.borderBottomWidth + ' ' + + w.borderLeftWidth + ';' + + 'border-style: solid;' + + 'word-break: break-all;' + + 'vertical-align: top;'; + $cell.attr('style', style); + }); + + $items.each(function(index) { + var row = $template.clone(true)[0] + , base = data.base ? $(data.base) : $template; + data.item = this; + data.count = index + 1; + interpolate.call(row, arg, data); + if (nesting) { + base.before(row); + exec($nextRow[0], {item: data.item, count: 1, base: $(row).next('tr')[0]}); + } + else { + base.before(row); + } + }); + $template.remove(); + if (nesting) { + $nextRow.remove(); + } + } + + function nestedTemplate(arg, data) { + template.apply(this, [arg, data, true]); + } + + } + return SpecSheetInterpreter; +}); diff --git a/node_modules/nablarch-dev-ui_tool-spec_view-core/ui_local/js/devtool/SpecSheetView.js b/node_modules/nablarch-dev-ui_tool-spec_view-core/ui_local/js/devtool/SpecSheetView.js new file mode 100644 index 0000000..467856a --- /dev/null +++ b/node_modules/nablarch-dev-ui_tool-spec_view-core/ui_local/js/devtool/SpecSheetView.js @@ -0,0 +1,88 @@ +/** + * @module devtool + */ +define(['jquery', 'nablarch/ui/Widget', 'sugar', './SpecSheetInterpreter'], +function($, Widget, template, interpreter) { 'use strict'; + /** + * Nablarch逕サ髱「鬆逶ョ險ュ險医ン繝・繝シ + * + * @class devtool.SpecSheetView + * @author Iwauo Tajima + */ + SpecSheetView.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * + * @method SpecSheetView + * @param {HTMLElement} element 鬆逶ョ螳夂セゥ譖ク繝薙Η繝シ縺ョDOM + * @return {devtool.SpecSheetView} 繧、繝ウ繧ケ繧ソ繝ウ繧ケ + */ + constructor: SpecSheetView + /** + * 蠑墓焚縺ォ貂。縺励◆JSP縺ョDOM繝弱シ繝峨r縺九i逕サ髱「鬆逶ョ繧呈歓蜃コ縺励※ + * 逕サ髱「鬆逶ョ螳夂セゥ縺ョ繝薙Η繝シ繧定。ィ遉コ縺吶k縲 + * @method render + * @param {jQuery} $jsp JSP縺ョDOM繝弱シ繝峨r譬シ邏阪@縺殍Query邨先棡繧サ繝繝 + */ + , render : SpecSheetView_render + }); + + /** + * 繧ヲ繧」繧ク繧ァ繝繝郁ュ伜挨蟄 + * @property widgetType + * @static + * @final + * @type String + * @default "devtool_SpecSheetView" + */ + SpecSheetView.widgetType = 'devtool_SpecSheetView'; + + /** + * 繧、繝吶Φ繝亥ョ夂セゥ + */ + SpecSheetView.event = { + }; + + function SpecSheetView_render($jsp) { + var self = this + , subwin = window.open('./specsheet_template/SpecSheetTemplate.htm', 'SpecSheetView'); + + self.$jsp = $jsp; + var $subwindoc = $(subwin.document); + setTimeout(function() { + subwin.document.title = '縲千判髱「讖溯ス險ュ險医'; + var $sheetDoc = $(subwin.frSheet.document) + , $hoverStyle = $(' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
險ュ險域嶌繧サ繝繧ア繧、繧キ繝ァ繝薙Η繝シ繧讒区繧ウ繧ヲ繧サ繧、縺励※縺縺セ縺吮ヲ
+ + + + + + + + + + + + +
http://192.168.160.123/document/_images/Nablarch1.jpg
+
COMMANDARGCONTENT
INTERPOLATEPJ蜷{{context.projectname}}蟾・遞螟夜Κ繧ャ繧、繝險ュ險繧サ繝繧ア繧、蜀驛ィ繝翫う繝險ュ險繧サ繝繧ア繧、菴懈繧オ繧ッ繧サ繧、{{jsp("spec:author").text()}}{{jsp("spec:created_date").text()}}
INTERPOLATE繧キ繧ケ繝繝蜷{{context.systemname}}謌先棡迚ゥ蜷繧キ繧ケ繝繝讖溯ス繧ュ繝弱え險ュ險域嶌繧サ繝繧ア繧、繧キ繝ァ螟画峩繝倥Φ繧ウ繧ヲ{{jsp("spec:updated_by").text()}}{{jsp("spec:updated_date").text()}}
繧オ繝悶す繧ケ繝繝蜷
縲2.1.逕サ髱「繧ャ繝。繝ウ讎りヲ繧ャ繧、繝ィ繧ヲ
(1)縲荳隕ァ繧、繝√Λ繝ウ陦ィ遉コ繝偵Ι繧ヲ繧ク
INTERPOLATE{{ jsp("table:").length ? + "" : "シ医↑縺)" }}
TEMPLATEjsp("table:").first()No荳隕ァ繧、繝√Λ繝ウ蜷咲ァー繝。繧、繧キ繝ァ繧ヲ荳隕ァ繧、繝√Λ繝ウ陦ィ遉コ繝偵Ι繧ヲ繧ク蠖「蠑繧ア繧、繧キ繧ュ諠ウ螳繧ス繧ヲ繝繧、讀懃エ「繧ア繝ウ繧オ繧ッ譛螟ァ繧オ繧、繝繧、莉カ謨ー繧ア繝ウ繧ケ繧ヲ繧ス繝シ繝譚。莉カ繧ク繝ァ繧ヲ繧ア繝ウ蛯呵繝薙さ繧ヲ
TEMPLATEjsp("table:"){{$(item).spec_hoverItem(cell)}}{{count}}{{$(item).attr("title")}}{{$(item).jsp_tagName()!="table:search_result"?"繝壹シ繧ク繝ウ繧ー縺ェ縺":($(item).attr("usepaging")=="false"?"繝壹シ繧ク繝ウ繧ー縺ェ縺":"繝壹シ繧ク繝ウ繧ー縺ゅj")}}{{$(item).attr("estimatedmaxsearchresults")}}{{$(item).attr("sortcondition")}}{{$(item).attr("comment")}}
縲2.2.逕サ髱「繧ャ繝。繝ウ繝ャ繧、繧「繧ヲ繝
TEMPLATEjsp('spec:condition')({{count}}){{$(item).spec_pageConditionLink()}}
縲2.3.鬆逶ョ繧ウ繧ヲ繝「繧ッ螳夂セゥ繝繧、繧ョ
(1)縲逕サ髱「繧ャ繝。繝ウ鬆逶ョ繧ウ繧ヲ繝「繧ッ螳夂セゥ繝繧、繧ョ
INTERPOLATE竕ェ{{jsp("t:page_template").attr("title")}}逕サ髱「繧ャ繝。繝ウ鬆逶ョ繧ウ繧ヲ繝「繧ッ螳夂セゥ繝繧、繧ョ荳隕ァ繧、繝√Λ繝ウ竕ォ
INTERPOLATE{{ jsp("field: + column:").length ? "" : "シ医↑縺)" }}
TEMPLATEjsp("field: column:").first()No陦ィ遉コ繝偵Ι繧ヲ繧ク諠蝣ア繧ク繝ァ繧ヲ繝帙え繝峨Γ繧、繝ウ諠蝣ア繧ク繝ァ繧ヲ繝帙え蛯呵
TEMPLATEjsp("field: column:").first()逕サ髱「繧ャ繝。繝ウ鬆逶ョ繧ウ繧ヲ繝「繧ッ繝。繧、逕サ髱「繧ャ繝。繝ウ鬆逶ョ繧ウ繧ヲ繝「繧ッ遞ョ鬘繧キ繝・繝ォ繧、陦ィ遉コ繝偵Ι繧ヲ繧ク諠蝣ア繧ク繝ァ繧ヲ繝帙え蜿門セ繧キ繝・繝医け繝「繝陦ィ遉コ繝偵Ι繧ヲ繧ク鬆逶ョ繧ウ繧ヲ繝「繧ッ繝。繧、邱ィ髮繝倥Φ繧キ繝・繧ヲ莉墓ァ繧キ繝ィ繧ヲ蠢鬆繝偵ャ繧ケ繝峨Γ繧、繝ウ繝。繧、
TEMPLATE{jsp("spec:layout"){{$(item).spec_hoverLayout(cell)}}繝ャ繧、繧「繧ヲ繝{{count}} + シ {{$(item).attr("name")}}
TEMPLATEjsp("field: column: ", item){{$(item).spec_hoverItem(cell)}}{{count}}{{$(item).spec_appearsWhen()}} + {{$(item).attr("title")}}{{$(item).spec_uiType()}}{{$(item).spec_getDataStoreName()}}{{$(item).spec_getDataFieldName()}}{{$(item).spec_getDisplayingFormat()}}{{($(item).attr("required") + == "required") ? "笳" : ""}}{{$(item).spec_getDomainName()}}{{$("<div>").text($(item).attr("comment"))}}
+ {{$(item).attr("initialValueDesc") ? + $("<div>").text($(item).attr("initialValueDesc")) : + ""}}
}
(2)縲鬆逶ョ繧ウ繧ヲ繝「繧ッ邊セ譟サ繧サ繧、繧オ
INTERPOLATE竕ェ{{jsp("t\:page_template").attr("title")}}逕サ髱「縲鬆逶ョ繧ウ繧ヲ繝「繧ッ邊セ譟サ莉墓ァ繧キ繝ィ繧ヲ竕ォ
INTERPOLATE{{ + jsp("spec:validation").length ? "" : "シ医↑縺)" }}
TEMPLATEjsp("spec:validation").first()No.邊セ譟サ繧サ繧、繧オ繝。繧、蟇セ雎。繧ソ繧、繧キ繝ァ繧ヲ鬆逶ョ繧ウ繧ヲ繝「繧ッ豁」蟶ク繧サ繧、繧ク繝ァ繧ヲ譚。莉カ繧ク繝ァ繧ヲ繧ア繝ウ繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク蜀螳ケ繝翫う繝ィ繧ヲ
TEMPLATEjsp("spec:validation"){{count}}{{$(item).attr("name")}}{{$(item).attr("target")}}{{$(item).attr("condition")}}{{$(item).spec_getMessage()}}
縲2.4.逕サ髱「繧ャ繝。繝ウ繧、繝吶Φ繝荳隕ァ繧、繝√Λ繝ウ
INTERPOLATE竕ェ{{jsp("t:page_template").attr("title")}}逕サ髱「縲逕サ髱「繧、繝吶Φ繝井ク隕ァ竕ォ
No.逕サ髱「繧ャ繝。繝ウ繧、繝吶Φ繝繝。繧、逕サ髱「繧ャ繝。繝ウ謫堺ス繧ス繧ヲ繧オ逕サ髱「繧ャ繝。繝ウ繧、繝吶Φ繝讎りヲ繧ャ繧、繝ィ繧ヲ謗剃サ繝上う繧ソ蛻カ蠕。繧サ繧、繧ョ繝ァ蟇セ雎。繧ソ繧、繧キ繝ァ繧ヲ莠碁繝九ず繝・繧ヲ繧オ繝悶Α繝繝
+ 髦イ豁「繝懊え繧キ蟇セ雎。繧ソ繧、繧キ繝ァ繧ヲ
豁」蟶ク繧サ繧、繧ク繝ァ繧ヲ繧ク驕キ遘サ繧サ繝ウ繧、繧オ繧ュ逕サ髱「繧ャ繝。繝ウ
INTERPOLATE1蛻晄悄繧キ繝ァ繧ュ陦ィ遉コ繝偵Ι繧ヲ繧ク{{jsp("t:page_template").attr("title")}}逕サ髱「
TEMPLATEjsp("link: button: column:link event:listen"){{$(item).spec_hoverItem(cell)}}{{count+1}}{{$(item).spec_appearsWhen()}} + {{$(item).spec_getEventName()}}{{$(item).spec_getEventTrigger()}}{{$(item).spec_getEventDesc()}}{{$(item).spec_lockTarget()}}{{$(item).spec_blocksDoubleSubmit()}}{{$(item).spec_getMoveToPageName()}}
+ + + + diff --git a/node_modules/nablarch-dev-ui_tool-spec_view-resource/ui_local/specsheet_template/SpecSheetTemplate.files/stylesheet.css b/node_modules/nablarch-dev-ui_tool-spec_view-resource/ui_local/specsheet_template/SpecSheetTemplate.files/stylesheet.css new file mode 100755 index 0000000..d3da475 --- /dev/null +++ b/node_modules/nablarch-dev-ui_tool-spec_view-resource/ui_local/specsheet_template/SpecSheetTemplate.files/stylesheet.css @@ -0,0 +1,918 @@ +tr + {mso-height-source:auto; + mso-ruby-visibility:none;} +col + {mso-width-source:auto; + mso-ruby-visibility:none;} +br + {mso-data-placement:same-cell;} +ruby + {ruby-align:left;} +.style0 + {mso-number-format:General; + text-align:general; + vertical-align:bottom; + white-space:nowrap; + mso-rotate:0; + mso-background-source:auto; + mso-pattern:auto; + color:windowtext; + font-size:9.0pt; + font-weight:400; + font-style:normal; + text-decoration:none; + font-family:"シュシウ 譏取悃", serif; + mso-font-charset:128; + border:none; + mso-protection:locked visible; + mso-style-name:讓呎コ; + mso-style-id:0;} +.style16 + {mso-number-format:General; + text-align:general; + vertical-align:bottom; + white-space:nowrap; + mso-rotate:0; + mso-background-source:auto; + mso-pattern:auto; + color:windowtext; + font-size:9.0pt; + font-weight:400; + font-style:normal; + text-decoration:none; + font-family:"シュシウ 譏取悃", serif; + mso-font-charset:128; + border:none; + mso-protection:locked visible; + mso-style-name:讓呎コ棒逕サ髱「讓呎コ;} +.style17 + {mso-number-format:General; + text-align:general; + vertical-align:bottom; + white-space:nowrap; + mso-rotate:0; + mso-background-source:auto; + mso-pattern:auto; + color:windowtext; + font-size:9.0pt; + font-weight:400; + font-style:normal; + text-decoration:none; + font-family:"シュシウ 譏取悃", serif; + mso-font-charset:128; + border:none; + mso-protection:locked visible; + mso-style-name:讓呎コ棒逕サ髱「讓呎コ門ョ夂セゥ;} +.font0 + {color:windowtext; + font-size:9.0pt; + font-weight:400; + font-style:normal; + text-decoration:none; + font-family:"シュシウ 譏取悃", serif; + mso-font-charset:128;} +td + {mso-style-parent:style0; + padding:0px; + mso-ignore:padding; + color:windowtext; + font-size:9.0pt; + font-weight:400; + font-style:normal; + text-decoration:none; + font-family:"シュシウ 譏取悃", serif; + mso-font-charset:128; + mso-number-format:General; + text-align:general; + vertical-align:bottom; + border:none; + mso-background-source:auto; + mso-pattern:auto; + mso-protection:locked visible; + white-space:nowrap; + mso-rotate:0;} +.xl67 + {mso-style-parent:style16;} +.xl68 + {mso-style-parent:style16; + text-align:right;} +.xl69 + {mso-style-parent:style16; + vertical-align:top;} +.xl70 + {mso-style-parent:style16; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl71 + {mso-style-parent:style16; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl72 + {mso-style-parent:style16; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl73 + {mso-style-parent:style16; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:none; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl74 + {mso-style-parent:style16; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:none; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl75 + {mso-style-parent:style16; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:none; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl76 + {mso-style-parent:style16; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl77 + {mso-style-parent:style16; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl78 + {mso-style-parent:style16; + mso-number-format:"\@"; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl79 + {mso-style-parent:style16; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl80 + {mso-style-parent:style16; + border-top:none; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl81 + {mso-style-parent:style16; + border-top:none; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl82 + {mso-style-parent:style16; + border-top:none; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl83 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl84 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl85 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:middle; + border:.5pt solid windowtext;} +.xl86 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle;} +.xl87 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:middle;} +.xl88 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + white-space:normal;} +.xl89 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:none; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl90 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:middle; + border-top:none; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl91 + {mso-style-parent:style0; + font-size:8.0pt; + mso-number-format:"\@"; + text-align:left; + vertical-align:middle; + white-space:normal;} +.xl92 + {mso-style-parent:style0; + font-size:8.0pt; + mso-number-format:"\@"; + text-align:right; + vertical-align:middle;} +.xl93 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:center; + vertical-align:middle;} +.xl94 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:top; + white-space:normal;} +.xl95 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl96 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl97 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:center; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext;} +.xl98 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:center; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl99 + {mso-style-parent:style0; + font-size:8.0pt; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl100 + {mso-style-parent:style0; + vertical-align:middle;} +.xl101 + {mso-style-parent:style0; + font-size:8.0pt; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl102 + {mso-style-parent:style17; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext;} +.xl103 + {mso-style-parent:style17; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl104 + {mso-style-parent:style17; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl105 + {mso-style-parent:style16; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl106 + {mso-style-parent:style16; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl107 + {mso-style-parent:style0; + font-size:8.0pt; + border:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl108 + {mso-style-parent:style0; + font-size:8.0pt; + border:.5pt solid windowtext;} +.xl109 + {mso-style-parent:style0; + font-size:8.0pt;} +.xl110 + {mso-style-parent:style0; + font-size:8.0pt; + mso-number-format:"\@"; + text-align:left; + vertical-align:middle;} +.xl111 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:none; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl112 + {mso-style-parent:style0; + font-size:8.0pt; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl113 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:none; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl114 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:none; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl115 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left;} +.xl116 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none;} +.xl117 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:middle; + border:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl118 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:top; + border:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl119 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none;} +.xl120 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border-top:none; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none; + white-space:normal;} +.xl121 + {mso-style-parent:style0; + text-align:left;} +.xl122 + {mso-style-parent:style0; + text-align:left; + vertical-align:middle;} +.xl123 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext;} +.xl124 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl125 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl126 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:right; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext;} +.xl127 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:right; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl128 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:right; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl129 + {mso-style-parent:style0; + text-align:left; + vertical-align:middle; + border-top:none; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none; + white-space:normal;} +.xl130 + {mso-style-parent:style0; + text-align:left; + vertical-align:middle; + border-top:none; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none; + white-space:normal;} +.xl131 + {mso-style-parent:style0; + font-size:8.0pt; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext;} +.xl132 + {mso-style-parent:style0; + font-size:8.0pt; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl133 + {mso-style-parent:style0; + font-size:8.0pt; + border-top:none; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl134 + {mso-style-parent:style0; + font-size:8.0pt; + border-top:none; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl135 + {mso-style-parent:style0; + color:white; + background:#595959; + mso-pattern:black none;} +.xl136 + {mso-style-parent:style0; + white-space:normal;} +.xl137 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border:.5pt solid windowtext;} +.xl138 + {mso-style-parent:style16; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext;} +.xl139 + {mso-style-parent:style0; + font-size:20.0pt; + font-family:繝。繧、繝ェ繧ェ, monospace; + mso-font-charset:128;} +.xl140 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none; + white-space:normal;} +.xl141 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + white-space:normal;} +.xl142 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none; + white-space:normal;} +.xl143 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none; + white-space:normal;} +.xl144 + {mso-style-parent:style0; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + white-space:normal;} +.xl145 + {mso-style-parent:style0; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none; + white-space:normal;} +.xl146 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none; + white-space:normal;} +.xl147 + {mso-style-parent:style0; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none; + white-space:normal;} +.xl148 + {mso-style-parent:style0; + font-size:8.0pt; + mso-number-format:"\@"; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + white-space:normal;} +.xl149 + {mso-style-parent:style0; + font-size:8.0pt; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none; + white-space:normal;} +.xl150 + {mso-style-parent:style0; + font-size:8.0pt; + font-weight:700; + font-family:"シュシウ シー繧エ繧キ繝繧ッ", monospace; + mso-font-charset:128; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + background:#FFFF99; + mso-pattern:black none;} +.xl151 + {mso-style-parent:style0; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl152 + {mso-style-parent:style0; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl153 + {mso-style-parent:style0; + mso-number-format:"yyyy\/mm\/dd"; + text-align:right; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext;} +.xl154 + {mso-style-parent:style0; + mso-number-format:"yyyy\/mm\/dd"; + text-align:right; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl155 + {mso-style-parent:style0; + mso-number-format:"yyyy\/mm\/dd"; + text-align:right; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl156 + {mso-style-parent:style16; + mso-number-format:"Short Date"; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext;} +.xl157 + {mso-style-parent:style16; + mso-number-format:"Short Date"; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl158 + {mso-style-parent:style16; + mso-number-format:"Short Date"; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl159 + {mso-style-parent:style17; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:none; + border-left:.5pt solid windowtext; + white-space:normal;} +.xl160 + {mso-style-parent:style17; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:none; + border-left:none; + white-space:normal;} +.xl161 + {mso-style-parent:style17; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:none; + border-left:none; + white-space:normal;} +.xl162 + {mso-style-parent:style17; + text-align:left; + vertical-align:top; + border-top:none; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + white-space:normal;} +.xl163 + {mso-style-parent:style17; + text-align:left; + vertical-align:top; + border-top:none; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none; + white-space:normal;} +.xl164 + {mso-style-parent:style17; + text-align:left; + vertical-align:top; + border-top:none; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none; + white-space:normal;} +.xl165 + {mso-style-parent:style0; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl166 + {mso-style-parent:style0; + text-align:left; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl167 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + background:silver; + mso-pattern:black none; + white-space:normal;} +.xl168 + {mso-style-parent:style0; + font-size:8.0pt; + vertical-align:middle; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none; + background:silver; + mso-pattern:black none; + white-space:normal;} diff --git a/node_modules/nablarch-dev-ui_tool-spec_view-resource/ui_local/specsheet_template/SpecSheetTemplate.files/tabstrip.htm b/node_modules/nablarch-dev-ui_tool-spec_view-resource/ui_local/specsheet_template/SpecSheetTemplate.files/tabstrip.htm new file mode 100755 index 0000000..1101d94 --- /dev/null +++ b/node_modules/nablarch-dev-ui_tool-spec_view-resource/ui_local/specsheet_template/SpecSheetTemplate.files/tabstrip.htm @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + +
 逕サ髱「險ュ險 
+ + diff --git a/node_modules/nablarch-dev-ui_tool-spec_view-resource/ui_local/specsheet_template/SpecSheetTemplate.htm b/node_modules/nablarch-dev-ui_tool-spec_view-resource/ui_local/specsheet_template/SpecSheetTemplate.htm new file mode 100755 index 0000000..305129d --- /dev/null +++ b/node_modules/nablarch-dev-ui_tool-spec_view-resource/ui_local/specsheet_template/SpecSheetTemplate.htm @@ -0,0 +1,325 @@ + + + + + + + + + + + + + + + + + + + + + + <body> + <p>縺薙ョ繝壹シ繧ク縺ァ菴ソ逕ィ縺吶k繝輔Ξ繝シ繝縺ッ縲√♀菴ソ縺縺ョ繝悶Λ繧ヲ繧カ繝シ縺ァ縺ッ繧オ繝昴シ繝医&繧後※縺縺セ縺帙s縲</p> + </body> + + + diff --git a/node_modules/nablarch-dev-ui_tool-spec_view-resource/ui_local/specsheet_template/SpecSheetTemplate.xlsx b/node_modules/nablarch-dev-ui_tool-spec_view-resource/ui_local/specsheet_template/SpecSheetTemplate.xlsx new file mode 100755 index 0000000..143185d Binary files /dev/null and b/node_modules/nablarch-dev-ui_tool-spec_view-resource/ui_local/specsheet_template/SpecSheetTemplate.xlsx differ diff --git a/node_modules/nablarch-dev-ui_tool-spec_view/package.json b/node_modules/nablarch-dev-ui_tool-spec_view/package.json new file mode 100644 index 0000000..5d3d094 --- /dev/null +++ b/node_modules/nablarch-dev-ui_tool-spec_view/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-dev-ui_tool-spec_view" +, "description": "險ュ險域嶌繝薙Η繝シ繝励Λ繧ー繧、繝ウ" +, "version": "1.0.0" +, "_from" : "nablarch-dev-ui_tool-spec_view@1.0.0" +, "dependencies": {} +} \ No newline at end of file diff --git a/node_modules/nablarch-dev-ui_tool-spec_view/ui_local/js/devtool/SpecSheetItems.js b/node_modules/nablarch-dev-ui_tool-spec_view/ui_local/js/devtool/SpecSheetItems.js new file mode 100644 index 0000000..bd55dd0 --- /dev/null +++ b/node_modules/nablarch-dev-ui_tool-spec_view/ui_local/js/devtool/SpecSheetItems.js @@ -0,0 +1,508 @@ +/** + * 險ュ險域ュ蝣ア繧谷SP縺九i蜿門セ励☆繧区僑蠑オ讖溯ス縲(jQuery縺ョ諡。蠑オ繝励Λ繧ー繧、繝ウ縺ィ縺励※謠蝉セ帙☆繧九) + * + * 逕サ髱「險ュ險域嶌View繧Ёorm閾ェ蜍慕函謌先ゥ溯ス縺ェ縺ゥ + * 繝ャ繝ウ繝繝ェ繝ウ繧ー縺励◆JSP縺ョ蛟、繧貞叙蠕励∝、画鋤縺吶k髫帙↓譛ャ諡。蠑オ讖溯ス縺悟茜逕ィ縺ァ縺阪k縲 + * + */ +define([ + 'jquery' +, 'jsp/context' +, 'devtool/resource' +, 'devtool/resource/繧ウ繝シ繝牙、螳夂セゥ' +, 'devtool/resource/DB鬆逶ョ螳夂セゥ' +, 'devtool/resource/螟夜Κ繧、繝ウ繧ソ繝シ繝輔ぉ繝シ繧ケ險ュ險' +, 'sugar'], +function($, context, resource, codeDef, dbDef, interfaceDef) { "use strict"; + + /** 繧ケ繧ソ繧、繝ォ螳夂セゥ */ + var errorStyle = {color:'red'} + , linkStyle = {color:'blue', 'text-decoration':'underline', cursor:'pointer'} + , infoStyle = {color:'blue'}; + + /** + * 謗剃サ門宛蠕。蟇セ雎。繧貞叙蠕励☆繧九 + */ + $.fn.spec_lockTarget = function() { + return getTableName(this, 'lockTarget'); + }; + + /** + * selector縺ォ荳閾エ縺吶kjsp繧ソ繧ー縺ョ荳隕ァ繧貞叙蠕励☆繧九 + */ + $.findJspTag = function(selector, c) { + var s = selector.split(/\s+/) + .map(function(t){ + return 'div[data-jsp*="'+t+'"]'; + }).join(', ') + , $c = (c ? $(c) : this) + /* 險ュ險域ュ蝣ア縺ョ蟇セ雎。縺ィ縺励↑縺繧ソ繧ー縺ョ荳隕ァ縲 */ + , blackList = ['field:block', 'field:hint', 'button:block']; + return $c.find(s).addBack().filter(s).filter(function() { + return blackList.none($(this).jsp_tagName()); + }); + }; + + /** + * 莠碁阪し繝悶Α繝繝磯亟豁「縲 + */ + $.fn.spec_blocksDoubleSubmit = function() { + var tagName = this.jsp_tagName() + , allowed = this.spec_attr('allowDoubleSubmission'); + + if (tagName === 'button:confirm') { + return (allowed === 'true') ? '' : '笳ッ'; + } + return (allowed === 'false') ? '笳ッ' : ''; + }; + + /** + * 逕サ髱「鬆逶ョ縺ョ蜃コ蜉帶擅莉カ縲 + */ + $.fn.spec_appearsWhen = function() { + var $tag = this + , confirmationPageOnly = $tag.closest('[data-jsp="n:forconfirmationpage"]').length > 0 + , inputPageOnly = $tag.closest('[data-jsp="n:forinputpage"]').length > 0 + , $conditionUnder = $tag.closest('[data-jsp="c:if"]') + , fragment; + + if (!inputPageOnly && !confirmationPageOnly && !$conditionUnder.length) { + return ''; + } + + fragment = document.createDocumentFragment(); + + if (inputPageOnly) { + fragment.appendChild( + $('
').css(infoStyle).text('縲仙・蜉帷判髱「縺ョ縺ソ縲')[0] + ); + } + + if (confirmationPageOnly) { + fragment.appendChild( + $('
').css(infoStyle).text('縲千「コ隱咲判髱「縺ョ縺ソ縲')[0] + ); + } + + if ($conditionUnder.length) { + fragment.appendChild( + $('
').css(infoStyle).text( + '縲' + + ($conditionUnder.spec_desc() || $conditionUnder.spec_attr('test') + '縺ョ蝣エ蜷') + + '縲' + )[0] + ); + } + return $(fragment); + }; + + /** + * spec:desc縺ョ蜀螳ケ繧貞叙蠕励☆繧九 + */ + $.fn.spec_desc = function() { + var $desc = this.children('[data-jsp="spec:desc"]:first-child'); + return ($desc.text() || '').trim(); + }; + + /** + * 譚。莉カ莉倥″(filter縺輔l縺)逕サ髱「繝ャ繧、繧「繧ヲ繝医r陦ィ遉コ縺吶k繝ェ繝ウ繧ッ繧貞コ蜉帙☆繧九 + */ + $.fn.spec_pageConditionLink = function() { + var $tag = this + , name = $tag.spec_attr('name') + , layout = $tag.spec_attr('layout') + , confirmation = $tag.spec_attr('isConfirmationPage') + , conditions = $tag.spec_attrAsArray('when') + , reloadOpts = {nablarch_spec_open_specsheet: 'true'}; + + if (layout) { + reloadOpts.nablarch_spec_layout = layout; + } + + if (confirmation) { + reloadOpts.nablarch_confirmationPage = 'true'; + } + + if (conditions.length) { + reloadOpts.nablarch_spec_conditions = conditions.join('|'); + } + + return $('') + .css(linkStyle) + .on('click', reloadPage.fill(reloadOpts)) + .text($tag.attr('name')); + }; + + /* + * 繝壹シ繧ク繧偵Μ繝ュ繝シ繝峨☆繧九 + */ + function reloadPage(params) { + var pageName = document.location.pathname + .replace(/^.*?([^\/]+)\.jsp$/, '$1'); + + window.location = '../../' + pageName + '.jsp' + + '?' + + Object.toQueryString(params); + return false; + } + + /** + * 逕サ髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ縺ォ繝輔か繝シ繧ォ繧ケ縺励◆譎ゅ∬ゥイ蠖薙☆繧九Ξ繝ウ繝繝ェ繝ウ繧ー貂医∩縺ョ繝ャ繧、繧「繧ヲ繝磯Κ蛻繧(HTML)繧偵ワ繧、繝ゥ繧、繝医☆繧九 + */ + $.fn.spec_hoverLayout = function(cell) { + var layoutName = $(this).attr('name') + , $layout = window.spec_nodeRefs[layoutName].first().next(); + $layout.addClass('spec_layout'); + $(cell).closest('tr') + .on('mouseenter', function(){highlight(this, $layout, true);}) + .on('mouseleave', function(){highlight(this, $layout, false);}); + }; + + /** + * 逕サ髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ縺ォ繝輔か繝シ繧ォ繧ケ縺励◆譎ゅ∬ゥイ蠖薙☆繧九Ξ繝ウ繝繝ェ繝ウ繧ー貂医∩縺ョ隕∫エ驛ィ蛻繧(HTML)繧偵ワ繧、繝ゥ繧、繝医☆繧九 + */ + $.fn.spec_hoverItem = function(cell) { + var $target = targetOf(this); + + $(cell).closest('tr') + .on('mouseenter', function(){highlight(this, $target, true);}) + .on('mouseleave', function(){highlight(this, $target, false);}); + + return; + + // ---- subroutines ---- // + function targetOf(tag) { + var $tag = $(tag) + , tagName = $tag.attr('data-jsp') + , title = $tag.attr('title'); + + if (tagName.startsWith(/field\:/)) { + return $('div.field:contains('+title+')').find('label, .fieldinput'); + } + else if (tagName.startsWith('column:')) { + var $th = $('table th:contains('+title+')') + , pos = $th.index()+1; + return $('th:nth-child('+pos+'), td:nth-child('+pos+')'); + } + else if (tagName.startsWith('button:')) { + var label = buttonLabel($tag); + return $('button:contains('+label+')').closest('div'); + } + } + }; + + /* + * 繝上う繝ゥ繧、繝医☆繧九せ繧ソ繧、繝ォ繧定ィュ螳壹☆繧九 + */ + function highlight(row, $target, on) { + var $row = $(row); + if (on) { + $target.addClass('spec_hover'); + $row.addClass('spec_hover'); + } + else { + $target.removeClass('spec_hover'); + $row.removeClass('spec_hover'); + } + } + + /** + * 繧ソ繧ー蜷咲ァー繧貞叙蠕励☆繧九 + */ + $.fn.jsp_tagName = function() { + return (this.attr('data-jsp') || '').trim(); + }; + + /** + * 螻樊ァ蛟、繧貞叙蠕励☆繧九 + * (遨コ譁蟄励〒繧ャ繝シ繝峨&繧後※縺繧九ョ縺ァ縲]ull繧еndefined縺ッ霑斐&縺ェ縺縲) + */ + $.fn.spec_attr = function(name) { + return (this.attr(name) || '').trim(); + }; + + /** + * 螻樊ァ蛟、縺ョ譁蟄怜励r縲芸縲榊玄蛻繧翫〒驟榊励↓縺励◆繧ゅョ繧貞叙蠕励☆繧九 + */ + $.fn.spec_attrAsArray = function(name) { + var attr = this.spec_attr(name); + return attr ? attr.split('|').map('trim') + : []; + }; + + /** + * dataFrom螻樊ァ繧貞縺ォ諠蝣ア蜿門セ怜繧貞叙蠕励☆繧九 + * + * 縲轡B螳夂セゥ縺ョ繝繝シ繝悶Ν隲也炊蜷咲ァー縲 縺セ縺溘ッ + * 縲悟、夜Κ繧、繝ウ繧ソ繝シ繝輔ぉ繝シ繧ケ險ュ險医ョ逶ク謇句医す繧ケ繝繝蜷 + 蜿門シ募錐遘ー縲 + * 繧呈嶌縺榊コ縺吶 + * + * @return 諠蝣ア蜿門セ怜 + * + */ + $.fn.spec_getDataStoreName = function() { + return getDataStoreName(this, 'dataFrom'); + }; + + // 螳夂セゥ縺ョ諠蝣ア繧呈ァ狗ッ峨☆繧九 + var dataStoreDef = Object.create(null); + dataStoreDef = Object.merge(dataStoreDef, dbDef); + Object.keys(interfaceDef, function(key, values){ + dataStoreDef[key] = key.has(".") ? values : [values[0] + ":" + values[1]]; + }); + + /* + * 繝繝シ繧ソ繧ケ繝医い縺ョ蜷咲ァー繧貞叙蠕励☆繧九 + */ + function getDataStoreName($tag, attrName) { + var colNames = $tag.spec_attrAsArray(attrName); + return $( + colNames.map(resourceName) + .compact() + .unique() + .map(renderIdentifier.using(dataStoreDef)) + ); + function resourceName(columnName) { + return columnName.split('.')[0]; + } + } + + /* + * 繝繝シ繝悶Ν蜷咲ァー繧貞叙蠕励☆繧九 + */ + function getTableName($tag, attrName) { + var colNames = $tag.spec_attrAsArray(attrName); + return $( + colNames.map(tableName) + .compact() + .unique() + .map(renderIdentifier.using(dbDef)) + ); + function tableName(columnName) { + return columnName.replace(/\.[^\s.]+$/, ''); + } + } + + /* + * warning諠蝣ア(蠑墓焚縺ョtext)繧貞コ蜉帙@縺櫂OM隕∫エ繧貞叙蠕励☆繧九 + */ + function renderWarning(text) { + return $('').text(text)[0]; + } + + /** + * 螳夂セゥ諠蝣ア縺ョ隲也炊蜷阪→繧ュ繝シ繧呈嶌縺榊コ縺励◆DocumentFragment繧堤函謌舌☆繧九 + * + * @param identifier {String} 螳夂セゥ諠蝣ア縺ョ繧ュ繝シ + * @param definition {Object} 蛟、縺ォArray繧呈戟縺、螳夂セゥ諠蝣ア + * @return 諠蝣ア繧貞コ蜉帙@縺溯ヲ∫エ繧呈戟縺、DocumentFragment + */ + function renderIdentifier(identifier, definition) { + var dispName = definition[identifier] && definition[identifier][0] + , fragment = document.createDocumentFragment(); + + if (!identifier) { + fragment.appendChild( + $('').addClass('spec_not_any')[0] + ); + } + else if (dispName === null || (typeof dispName === 'undefined')) { + fragment.appendChild( + renderWarning(identifier.split('.').join(' .')) + ); + } + else { + fragment.appendChild($('').text(dispName)[0]); + fragment.appendChild($('
')[0]); + fragment.appendChild($('') + .text('(' + identifier.split('.').join(' .') + ')')[0]); + } + fragment.appendChild($('
')[0]); + return fragment; + } + + renderIdentifier.using = function(definition) { + return renderIdentifier.fill(undefined, definition); + }; + + /** + * 繝繝シ繧ソ繝輔ぅ繝シ繝ォ繝牙錐遘ー繧貞叙蠕励☆繧九 + */ + $.fn.spec_getDataFieldName = function() { + var columnNames = this.spec_attrAsArray('dataFrom'); + return $( + columnNames + .map(function(n){return (!n || n.has('.')) ? n : '(譛ェ謖螳)';}) + .map(renderIdentifier.using(dataStoreDef)) + ); + }; + + /** + * 邱ィ髮莉墓ァ倥r蜿門セ励☆繧九 + */ + $.fn.spec_getDisplayingFormat = function() { + var $tag = this + , tagName = $tag.jsp_tagName(); + + return tagName.has('code') ? getCodeDisplayingSpec() + : getValueFormat(); + + // --------- subroutines -------// + function getCodeDisplayingSpec() { + var codeId = $tag.spec_attr('codeId') + , pattern = $tag.spec_attr('pattern') || 'PATTERN01' + , label = $tag.spec_attr('labelPattern') || '$NAME$' + , optionName = $tag.spec_attr('optionColumnName') || 'OPTION01'; + + if (!codeId) { + return $(renderWarning('(繧ウ繝シ繝迂D譛ェ螳夂セゥ)')); + } + + $content = $('
'); + $('
').html('繧ウ繝シ繝迂D: ' + codeId) + .appendTo($content); + $('
').html('繧ウ繝シ繝牙錐遘ー:
') + .append(renderIdentifier(codeId, codeDef)).appendTo($content); + $('
').html('繧ウ繝シ繝峨ヱ繧ソ繝シ繝ウ: ' + pattern) + .appendTo($content); + $('
').html('陦ィ遉コ蜀螳ケ:
' + labelContent()) + .appendTo($content); + return $content; + + // ---- subroutines ----- // + function labelContent() { + return label.replace(/\$([a-zA-Z]+)\$/, function(_, token) { + return { + NAME : '縲舌さ繝シ繝牙錐遘ー縲' + , SHORTNAME : '縲舌さ繝シ繝臥払遘ー縲' + , VALUE : '縲舌さ繝シ繝牙、縲' + , OPTIONALNAME: '縲舌が繝励す繝ァ繝ウ蜷咲ァー(' + optionName + ')縲' + }[token] || ''; + }); + } + } + + function getValueFormat() { + return $tag.spec_attr('format') || $tag.spec_attr('formatSpec'); + } + }; + + /** + * 繝峨Γ繧、繝ウ蜷阪r蜿門セ励☆繧九 + */ + $.fn.spec_getDomainName = function() { + var domainList = this.spec_attrAsArray('domain') + , fragment = document.createDocumentFragment() + , index = !arguments.length ? null : arguments[0]; + + domainList.each(function(domainId) { + var domainInfo = resource.domainInfo(domainId) + , $node = !domainInfo ? $('
').css(errorStyle).text(domainId) + : index === null ? $('
').text(domainInfo.name + '(' + domainId + ')') + : $('
').text(domainInfo.data[index || 0]); + fragment.appendChild($node[0]); + }); + return $(fragment); + }; + + /** + * 逕サ髱「繧、繝吶Φ繝亥錐繧貞叙蠕励☆繧九 + */ + $.fn.spec_getEventName = function() { + var tagName = this.jsp_tagName(); + if (tagName.indexOf('button:') >= 0) { + return buttonLabel(this); + } + else if (tagName.indexOf('link') >= 0) { + return this.attr('title'); + } + else if (tagName.indexOf('table:search_result') >= 0) { + return this.attr('title') + '繝壹シ繧ク驕キ遘サ' ; + } + else if (tagName.has('event:listen')) { + return this.spec_attr('title') || $(renderWarning('title縺悟ョ夂セゥ縺輔l縺ヲ縺縺セ縺帙s縲')); + } + return '-'; + }; + + /** + * 繝懊ち繝ウ縺ョ繝ゥ繝吶Ν蜷咲ァー繧貞叙蠕励☆繧九 + */ + function buttonLabel($tag) { + var tagName = $tag.jsp_tagName(); + return $tag.spec_attr('label') || resource.defaultLabel(tagName); + } + + /** + * 繧、繝吶Φ繝医r逋コ逕溘&縺帙k謫堺ス懷錐遘ー繧貞叙蠕励☆繧九 + */ + $.fn.spec_getEventTrigger = function() { + var tagName = this.jsp_tagName(); + if (tagName.has('button:')) { + return buttonLabel(this) + '繝懊ち繝ウ謚シ荳区凾'; + } + else if (tagName.has('link')) { + return this.attr('title') + '繝ェ繝ウ繧ッ謚シ荳区凾'; + } + else if (tagName.has('table:search_result')) { + return this.attr('title') + '繝繝シ繝悶Ν縺ョ繝壹シ繧ク逡ェ蜿キ繝ェ繝ウ繧ッ謚シ荳区凾'; + } + else if (tagName.has('event:listen')) { + return this.spec_attr('operation') || $(renderWarning('operation縺悟ョ夂セゥ縺輔l縺ヲ縺縺セ縺帙s縲')); + } + return '-'; + }; + + /** + * 逕サ髱「繧、繝吶Φ繝医ョ讎りヲ√r蜿門セ励☆繧九 + */ + $.fn.spec_getEventDesc = function() { + return this.attr('comment'); + }; + + /** + * 驕キ遘サ蜈医ョ繝壹シ繧ク蜷咲ァー繧貞叙蠕励☆繧九 + */ + $.fn.spec_getMoveToPageName = function() { + var uri = this.spec_attr('dummyUri') || '' + , pageId = uri.replace(/(^|.*\/)([^\/]+)\.jsp$/, '$2') + , pageName = resource.pageName(pageId); + + return pageName ? pageName + : $(renderWarning(pageId)); + }; + + /** + * 繝。繝繧サ繝シ繧ク繧貞叙蠕励☆繧九 + */ + $.fn.spec_getMessage = function() { + var messageId = this.spec_attr('messageId') + , messageParam = this.spec_attrAsArray('messageParam') + , message = resource.message(messageId); + + if (!messageId) { + return $(renderWarning('(繝。繝繧サ繝シ繧クID譛ェ謖螳)')); + } + if (!message) { + return $(renderWarning(messageId)); + } + return $('').html( + message.escapeHTML().replace(/\{([0-9]|[-_A-Za-z0-9]+)\}/g, function(_, param) { + return (param.length === 1) + ? ('縲' + messageParam[Number(param)] + '縲') + : (messageDef[param] || param); + }) + '(' + messageId + ')' + ); + }; + + /** + * 逕サ髱「鬆逶ョ遞ョ鬘槭r蜿門セ励☆繧九 + */ + $.fn.spec_uiType = function() { + var tagName = this.jsp_tagName() + , uiType = resource.uiType(tagName); + + return uiType ? uiType + : $(renderWarning(tagName)); + }; +}); diff --git a/node_modules/nablarch-device-fix-android_browser/package.json b/node_modules/nablarch-device-fix-android_browser/package.json new file mode 100644 index 0000000..3e6eda6 --- /dev/null +++ b/node_modules/nablarch-device-fix-android_browser/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-device-fix-android-browser" +, "description": "Android讓呎コ悶ヶ繝ゥ繧ヲ繧カ驕ゥ蜷磯Κ蜩" +, "version": "1.0.0" +, "_from" : "nablarch-device-fix-android-browser@1.0.0" +, "dependencies": {} +} \ No newline at end of file diff --git a/node_modules/nablarch-device-fix-android_browser/ui_public/css/device/android_slide_menu.less b/node_modules/nablarch-device-fix-android_browser/ui_public/css/device/android_slide_menu.less new file mode 100644 index 0000000..20121db --- /dev/null +++ b/node_modules/nablarch-device-fix-android_browser/ui_public/css/device/android_slide_menu.less @@ -0,0 +1,12 @@ +body.android.android_browser { + // 繧ケ繧ッ繝ュ繝シ繝ォ縺檎匱逕溘☆繧九→繧ッ繝ェ繝繧ッ繧、繝吶Φ繝医′逋コ轣ォ縺励↑縺蝠城。後∈縺ョ蟇セ蠢 + #aside{ + .touchdevice .scrollMargin { + display:none; + } + // 繧ケ繧ッ繝ュ繝シ繝ォ遒コ隱咲畑縺ョList縺ッ陦ィ遉コ縺輔○縺ェ縺縲 + .largeArea { + display:none; + } + } +} diff --git a/node_modules/nablarch-device-fix-base/package.json b/node_modules/nablarch-device-fix-base/package.json new file mode 100644 index 0000000..25e9b95 --- /dev/null +++ b/node_modules/nablarch-device-fix-base/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-device-fix-base" +, "description": "蜍穂ス懃腸蠅驕ゥ蜷育畑繝吶シ繧ケ繝励Λ繧ー繧、繝ウ" +, "version": "1.0.1" +, "_from" : "nablarch-device-fix-base@1.0.1" +, "dependencies": {} +} diff --git a/node_modules/nablarch-device-fix-base/ui_local/js/jsp/taglib/device.js b/node_modules/nablarch-device-fix-base/ui_local/js/jsp/taglib/device.js new file mode 100644 index 0000000..0a58a63 --- /dev/null +++ b/node_modules/nablarch-device-fix-base/ui_local/js/jsp/taglib/device.js @@ -0,0 +1,61 @@ +/** + * 繝繝舌う繧ケ繧ヲ繧」繧ク繧ァ繝繝医ョ繧ィ繝溘Η繝シ繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * JSP繧ソ繧ー `` 縺ッ荳玖ィ倥ョ繧ソ繧ー繝輔ぃ繧、繝ォ縺ォ繧医j謠冗判縺輔l繧九 + * + * (繧オ繝シ繝悶Ξ繝繝医さ繝ウ繝繧ュ繧ケ繝)/WEB-INF/tags/widget/device/xxx.tag + * + * @module jsp.taglib + * @class jsp.taglib.device + * @author tani takanori + */ +define(['jsp', 'sugar'], +function($) { 'use strict'; + var p = new RegExp("(windows|mac os x)[\\D]*([\\d\\.]*).+(firefox|chrome|msie|trident)[/\\s]([\\d\\.]*)", 'i') + , group = p.exec(navigator.userAgent.toLowerCase()) + , type = (group && group[1] || "").replace(" ", "_") + , typevers = (group && group[2] || "").split(/\D/) + , browser = (group && group[3] || "") + , browservers = (group && group[4] || "").split(/\D/) + , path = '../WEB-INF/tags/device/'; + + if (browser == "msie") { + browser = "ie"; + } + + if (browser == "trident") { + browservers[0] = browservers[0] ? (browservers[0].toNumber() + 4) + "" + : browservers[0]; + browser = "ie"; + } + + return { + script : $.loadTagfile.fill(path, undefined, undefined, undefined) + , set : doSetTag + , media : $.loadTagfile.fill(path, undefined, undefined, undefined) + }; + + /** + * 繧ー繝ュ繝シ繝舌Ν繧ウ繝ウ繝繧ュ繧ケ繝医↓蛟、繧定ィュ螳壹☆繧九 + * 蜀驛ィ縺ョ螳溯」(n:set)縺ッtagBody縺ァ縺ッ陦後o縺ェ縺縺ョ縺ァ縲∵守、コ逧縺ォfalse繧池eturn縺吶k縲 + */ + function doSetTag($tagBody, context, tagName, _context) { + var deviceVersion = verExpr(typevers, "-") + , browserVersion = verExpr(browservers, "_"); + + _context.setVar("nablarch_deviceType", type); + _context.setVar("nablarch_deviceVersion", deviceVersion); + _context.setVar("nablarch_browserType", browser); + _context.setVar("nablarch_browserVersion", browserVersion); + $('body').addClass([type, deviceVersion, browser, browserVersion].join(' ')); + $tagBody.remove(); + } + + function verExpr(vers, sep) { + var formated = ""; + (0).upto(2, function(i) { + formated = formated.add(sep.repeat(i+1) + (vers[i] || "") + " "); + }); + return formated.trim(); + } +}); diff --git a/node_modules/nablarch-device-fix-base/ui_public/WEB-INF/tags/device/script.tag b/node_modules/nablarch-device-fix-base/ui_public/WEB-INF/tags/device/script.tag new file mode 100644 index 0000000..e49ca98 --- /dev/null +++ b/node_modules/nablarch-device-fix-base/ui_public/WEB-INF/tags/device/script.tag @@ -0,0 +1,18 @@ +<%-- + 蜍穂ス懃腸蠅縺ョ諠蝣ア繧谷avaScript縺九i隱ュ縺ソ蜿悶l繧句ス「縺ァ蜃コ蜉帙☆繧九ち繧ー縲 + 蜃コ蜉帛、縺ッ繧ィ繧ケ繧ア繝シ繝怜ヲ逅縺御ク崎ヲ√↑蠖「蠑上〒繝帙Ρ繧、繝医Μ繧ケ繝医〒謖螳夲シdevice/set.tag蜿らァシ峨@縺ヲ縺翫j縲 + 譏守、コ逧縺ォ繧ィ繧ケ繧ア繝シ繝怜ヲ逅繧定。後o縺ェ縺上※繧ゅけ繝ュ繧ケ繧オ繧、繝医せ繧ッ繝ェ繝励ユ繧」繝ウ繧ー縺ォ縺、縺ェ縺後k縺薙→縺ッ縺ェ縺縲 + @author takanori tani +--%> + +<%@tag pageEncoding="UTF-8" description="蜍穂ス懃腸蠅縺ォ髢「縺吶k諠蝣ア繧谷avaScript縺ォ蜃コ蜉帙☆繧九" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + + +var nablarch_device = { + type : '' + , version : '' + , browser : '' + , browserVersion : '' + }; + diff --git a/node_modules/nablarch-device-fix-base/ui_public/WEB-INF/tags/device/set.tag b/node_modules/nablarch-device-fix-base/ui_public/WEB-INF/tags/device/set.tag new file mode 100644 index 0000000..2559fce --- /dev/null +++ b/node_modules/nablarch-device-fix-base/ui_public/WEB-INF/tags/device/set.tag @@ -0,0 +1,129 @@ +<%-- + 繝繝舌う繧ケ諠蝣ア險ュ螳壹ち繧ー + @author takanori tani +--%> + +<%@tag pageEncoding="UTF-8" description="蜍穂ス懃腸蠅縺ォ髢「縺吶k諠蝣ア繧定ィュ螳壹☆繧九え繧」繧ク繧ァ繝繝" %> +<%@tag import="java.util.regex.Pattern" %> +<%@tag import="java.util.regex.Matcher" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + +<%-- suppress jsp check:user-agent繧貞愛螳壹@縺ヲ繝ェ繧ッ繧ィ繧ケ繝医せ繧ウ繝シ繝励↓繝悶Λ繧ヲ繧カ縲^S諠蝣ア繧定ィュ螳壹☆繧句ヲ逅縲Uag繝輔ぃ繧、繝ォ縺ァ螳溯。後☆繧句ソ隕√′譛峨k縺溘a縲√メ繧ァ繝繧ッ蟇セ雎。螟悶→縺吶k --%> +<%-- 譛ャ蜃ヲ逅縺ァUserAgent縺ォ險ュ螳壹@縺溷、繧剃スソ逕ィ縺励※縲《cript.tag縺ァ蜍慕噪縺ォJS繧堤函謌舌☆繧九ゅ◎縺ョ縺溘a縲 ̄J縺ァ繧ォ繧ケ繧ソ繝槭う繧コ縺吶k蝣エ蜷医ッ繧ッ繝ュ繧ケ繧オ繧、繝医せ繧ッ繝ェ繝励ユ繧」繝ウ繧ー縺檎匱逕溘@縺ェ縺繧医≧縺ォ豌励r莉倥¢繧九%縺ィ縲 --%> +<%! + static class UserAgent { + // OS has name and version + private final String OS_VERSION_EXP = "[\\D+]*([\\d\\._]*)"; + private final Pattern DEVICE = Pattern.compile(".*(iphone;|ipad;|android)" + OS_VERSION_EXP +".*"); + private final Pattern OS = Pattern.compile(".*(windows|mac os x)" + OS_VERSION_EXP +".*"); + + // trident is mean Internet Explorer.(msie is not supported in IE11) + private final String BROWSER_VERSION_EXPRESSION = "[\\s/]*([\\d\\.]*)"; + private final Pattern IE = Pattern.compile(".*(msie\\s|trident.+rv:)([\\d\\.]*)" + ".*"); + private final Pattern FIREFOX_CHROME = Pattern.compile(".*(firefox|chrome)"+ BROWSER_VERSION_EXPRESSION + ".*"); + private final Pattern IOS_SAFARI = Pattern.compile(".*version/([\\d\\.]*).+(mobile.*safari).*"); + private final Pattern ANDROID_BROWSER = Pattern.compile(".*android.*version/([\\d\\.]*).+(mobile *safari).*"); + private final Pattern SAFARI = Pattern.compile(".*version/([\\d\\.]*).+(safari).*"); + + String os = "Unknown"; + String osVer = ""; + String browser = "Unknown"; + String browserVer = ""; + + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ + * + * @param uaText UA縺ョ譁蟄怜 + */ + public UserAgent(String uaText) { + if (uaText == null) { + return; + } + uaText = uaText.toLowerCase(); + setOS(uaText); + setBrowser(uaText); + } + + // os 縺ョ 繧ソ繧、繝励√ヰ繝シ繧ク繝ァ繝ウ繧定ィュ螳壹☆繧九 + private void setOS(String uaText) { + Matcher os = DEVICE.matcher(uaText); + if (os.matches() && os.groupCount() >= 2) { + this.os = os.group(1).toLowerCase().replace(";", ""); + this.osVer = verExpr(os.group(2), "-"); + return; + } + os = OS.matcher(uaText); + if (os.matches() && os.groupCount() >= 2) { + this.os = os.group(1).toLowerCase().replace(" ", "_"); + this.osVer = verExpr(os.group(2), "-"); + return; + } + } + + // browser 縺ョ繧ソ繧、繝励√ヰ繝シ繧ク繝ァ繝ウ繧定ィュ螳壹☆繧九 + private void setBrowser(String uaText) { + String separator = "_"; + Matcher ie = IE.matcher(uaText); + if (ie.matches() && ie.groupCount() >= 2) { + this.browserVer = verExpr(ie.group(2), separator); + this.browser = "ie"; + return; + } + Matcher androidBrowser = ANDROID_BROWSER.matcher(uaText); + if (androidBrowser.matches() && androidBrowser.groupCount() >= 2) { + this.browserVer = verExpr(androidBrowser.group(1), separator); + this.browser = "android_browser"; + return; + } + Matcher iosSafari = IOS_SAFARI.matcher(uaText); + if (iosSafari.matches() && iosSafari.groupCount() >= 2) { + this.browserVer = verExpr(iosSafari.group(1), separator); + this.browser = "mobile_safari"; + return; + } + Matcher firefox = FIREFOX_CHROME.matcher(uaText); + if (firefox.matches() && firefox.groupCount() >= 2) { + this.browserVer = verExpr(firefox.group(2), separator); + this.browser = firefox.group(1); + return; + } + + Matcher safari = SAFARI.matcher(uaText); + if(safari.matches() && safari.groupCount() >= 2) { + this.browserVer = verExpr(safari.group(1), separator); + this.browser = "safari"; + return; + } + } + + private String verExpr(String ver, String type) { + String[] exprList = {type, " "+type+type, " "+type+type+type}; + String[] vers = ver.split("\\D"); + for (int i = 0; i < vers.length && i < 3; i++) { + exprList[i] = exprList[i] + vers[i]; + } + StringBuilder exp = new StringBuilder(); + for (String v : exprList) { + exp.append(v); + } + return exp.toString(); + } + } +%> +<%-- suppress jsp check:user-agent繧貞愛螳壹@縺ヲ繝ェ繧ッ繧ィ繧ケ繝医せ繧ウ繝シ繝励↓繝悶Λ繧ヲ繧カ縲^S諠蝣ア繧定ィュ螳壹☆繧句ヲ逅縲Uag繝輔ぃ繧、繝ォ縺ァ螳溯。後☆繧句ソ隕√′譛峨k縺溘a縲√メ繧ァ繝繧ッ蟇セ雎。螟悶→縺吶k --%> +<% + try { + String text = request.getHeader("User-Agent"); + UserAgent ua = new UserAgent(text); + request.setAttribute("nablarch_deviceType", ua.os); + request.setAttribute("nablarch_deviceVersion", ua.osVer); + request.setAttribute("nablarch_browserType", ua.browser); + request.setAttribute("nablarch_browserVersion", ua.browserVer); + // 萓句、悶′蜃コ縺溷エ蜷医〒繧ゅ壹シ繧ク縺ッ陦ィ遉コ縺吶k縲 + } catch (Exception e) { + request.setAttribute("nablarch_deviceType", "UnKnown"); + request.setAttribute("nablarch_deviceVersion", ""); + request.setAttribute("nablarch_browserType", "UnKnown"); + request.setAttribute("nablarch_browserVersion",""); + } +%> diff --git "a/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/index.jsp" "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/index.jsp" new file mode 100644 index 0000000..047d48e --- /dev/null +++ "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/index.jsp" @@ -0,0 +1,22 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + +
    +
  • +
  • +
+ +
+
+
diff --git "a/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\345\244\211\346\225\260\345\207\272\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\345\244\211\346\225\260\345\207\272\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..5c61f35 --- /dev/null +++ "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\345\244\211\346\225\260\345\207\272\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,10 @@ +runTest( + 蜃コ蜉帷オ先棡縺ョ遒コ隱 +); + +function 蜃コ蜉帷オ先棡縺ョ遒コ隱() {"use strict"; + ok(nablarch_device.type, "nablarch_device.type縺悟コ蜉帙&繧後k縺薙→[" + nablarch_device.type + "]"); + ok(nablarch_device.version, "nablarch_device.version縺悟コ蜉帙&繧後k縺薙→[" + nablarch_device.version + "]"); + ok(nablarch_device.browser, "nablarch_device.browser縺悟コ蜉帙&繧後k縺薙→[" + nablarch_device.browser + "]"); + ok(nablarch_device.browserVersion, "nablarch_device.browserVer縺悟コ蜉帙&繧後k縺薙→[" + nablarch_device.browserVer + "]"); +} \ No newline at end of file diff --git "a/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\345\244\211\346\225\260\345\207\272\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\345\244\211\346\225\260\345\207\272\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..1265ba5 --- /dev/null +++ "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\345\244\211\346\225\260\345\207\272\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,36 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + span.forview { + margin:10px; + } + + + + $(function(){ + putObjectInfo(); + }); + $(document).on('jsp_processed', putObjectInfo); + + function putObjectInfo() { + $('span.type').text(nablarch_device.type); + $('span.version').text(nablarch_device.version); + $('span.browser').text(nablarch_device.browser); + $('span.browserVersion').text(nablarch_device.browserVersion); + } + + diff --git "a/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\345\244\211\346\225\260\345\207\272\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\345\244\211\346\225\260\345\207\272\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..78c5cb2 --- /dev/null +++ "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\345\244\211\346\225\260\345\207\272\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,11 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\345\244\211\346\225\260\345\207\272\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\345\244\211\346\225\260\345\207\272\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..9dfc978 --- /dev/null +++ "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\345\244\211\346\225\260\345\207\272\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,14 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +繝繧ケ繝医壹シ繧ク縺ョ繧ケ繧ッ繝ェ繝励ヨ縺ァnablarch_device縺ョ諠蝣ア繧貞コ蜉帙☆繧九 +
    +
  • type :
  • +
  • version:
  • +
  • browser:
  • +
  • browserVersion:
  • +
diff --git "a/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\350\250\255\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\350\250\255\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..242a046 --- /dev/null +++ "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\350\250\255\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,31 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + span.classOfBody { + border:#000000 solid 1px; + } + span.header { + margin-right:4px; + } + + + $(function(){'use strict'; + $('span.classOfBody').text($('body').attr("class")); + $('span.userAgent').text(navigator.userAgent); + }); + + + diff --git "a/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\350\250\255\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\350\250\255\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..78c5cb2 --- /dev/null +++ "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\350\250\255\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,11 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\350\250\255\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\350\250\255\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..4ca24b1 --- /dev/null +++ "b/node_modules/nablarch-device-fix-base/ui_test/jsp/\345\213\225\344\275\234\347\222\260\345\242\203\351\201\251\345\220\210/\350\250\255\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,17 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + 蜍穂ス懃腸蠅縺ォ蠢懊§縺溷螳ケ縺悟コ蜉帙&繧後k縺薙→ +
    +
  • deviceType:
  • +
  • deviceVersion:
  • +
  • browserType:
  • +
  • browserVersion:
  • +
+ body縺ォ蜃コ蜉帙&繧後※縺繧議lass螻樊ァ(譫蜀): + +
+ UserAgent@javascript(navigator.userAgent):
+ +
\ No newline at end of file diff --git a/node_modules/nablarch-device-fix-ios/package.json b/node_modules/nablarch-device-fix-ios/package.json new file mode 100644 index 0000000..280d342 --- /dev/null +++ b/node_modules/nablarch-device-fix-ios/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-device-fix-ios" +, "description": "ios迺ー蠅驕ゥ蜷育畑繝励Λ繧ー繧、繝ウ" +, "_from" : "nablarch-device-fix-ios@1.1.0" +, "version": "1.1.0" +, "dependencies": {} +} diff --git a/node_modules/nablarch-device-fix-ios/ui_public/css/device/iphone.less b/node_modules/nablarch-device-fix-ios/ui_public/css/device/iphone.less new file mode 100644 index 0000000..ec9208e --- /dev/null +++ b/node_modules/nablarch-device-fix-ios/ui_public/css/device/iphone.less @@ -0,0 +1,7 @@ +/** + * iPhone逕ィ縺ョ繧ケ繧ソ繧、繝ォ + */ +body.iphone { + // 譁蟄励′諡。螟ァ縺輔l縺ヲ縺励∪縺縺溘a縲(Phone縺ョ譁蟄励し繧、繧コ閾ェ蜍戊ェソ謨エ繧剃ク蠕100%縺ォ險ュ螳 + -webkit-text-size-adjust: 100%; +} \ No newline at end of file diff --git a/node_modules/nablarch-device-fix-ios/ui_public/js/nablarch/ui/device/ios-viewport-scaling-fix.js b/node_modules/nablarch-device-fix-ios/ui_public/js/nablarch/ui/device/ios-viewport-scaling-fix.js new file mode 100644 index 0000000..a445f91 --- /dev/null +++ b/node_modules/nablarch-device-fix-ios/ui_public/js/nablarch/ui/device/ios-viewport-scaling-fix.js @@ -0,0 +1,35 @@ +/** + * iOS繝薙Η繝シ繝昴シ繝亥宛蠕。荳榊キ蜷井ソョ豁」 + * ================================================ + * iOS繝繝舌う繧ケ縺ォ縺翫>縺ヲ縲」iewport繧壇evice-width縺ォ險ュ螳壹@縺九▽繝ヲ繝シ繧カ縺ォ繧医k諡。螟ァ繝サ邵ョ蟆上r遖∵ュ「 + * 縺励◆蝣エ蜷医↓縲√ョ繝舌う繧ケ縺ョ邵ヲ讓ェ陦ィ遉コ縺ョ蛻譖ソ繧偵¥繧翫°縺医☆縺ィ縲∫判髱「縺ョ陦ィ遉コ縺後☆縺薙@縺壹▽諡。螟ァ縺励※ + * 縺縺上→縺縺蝠城。後′縺ゅk縲(iOS6/iOS7縺ァ縺ョ逋コ逕溘r遒コ隱) + * + * 譛ャ繧ケ繧ッ繝ェ繝励ヨ縺ァ縺ッ縲√%縺ョ蝠城。後r蝗樣∩縺吶k縺溘a縺ョ繧ゅョ縺ァ縺ゅk縲 + * + * @author Iwauo Tajima + * @module nablarch.ui.device + */ +define(['jquery', 'sugar'], function($) {'use strict'; + var device = window.nablarch_device.type + , fixedViewPort; + + if (device !== 'iphone' && device !== 'ipad') { + return; + } + + fixedViewPort = (device === 'ipad') ? "width=768px, minimum-scale=1.0, maximum-scale=1.0" + : (device === 'iphone') ? "width=device-width, minimum-scale=1.0, maximum-scale=1.0" + : null; + + $(function() { + fixViewPort(); + $('body').on('gesturestart', fixViewPort); + }); + + // --- helper functions --- // + function fixViewPort() { + $('meta[name="viewport"]').attr('content', fixedViewPort); + } +}); + diff --git a/node_modules/nablarch-device-fix-ios/ui_public/js/nablarch/ui/device/ios-virtual-keyboard-fix.js b/node_modules/nablarch-device-fix-ios/ui_public/js/nablarch/ui/device/ios-virtual-keyboard-fix.js new file mode 100644 index 0000000..12c3902 --- /dev/null +++ b/node_modules/nablarch-device-fix-ios/ui_public/js/nablarch/ui/device/ios-virtual-keyboard-fix.js @@ -0,0 +1,37 @@ +/** + * iOS繧ス繝輔ヨ繧ヲ繧ァ繧「繧ュ繝シ繝懊シ繝郁。ィ遉コ譎ゆク榊キ蜷亥ッセ蠢 + * ================================================ + * 繧ソ繝繝√ョ繝舌う繧ケ縺ッ縲∝・蜉幄ヲ∫エ縺ォ繝輔か繝シ繧ォ繧ケ縺励◆髫帙↓ + * 繧ス繝輔ヨ繧ヲ繧ァ繧「繧ュ繝シ繝懊シ繝峨r陦ィ遉コ縺輔○繧九′縲 + * iOS縺ョ蝣エ蜷医ッ繧ス繝輔ヨ繧ヲ繧ァ繧「繧ュ繝シ繝懊シ繝芽。ィ遉コ荳ュ縺ッ縲 + * 蜈・蜉幃Κ蜩∽サ・螟悶ョUI繧ケ繝ャ繝繝峨′蛛懈ュ「縺吶k縲 + * + * 迚ケ縺ォ縲}osition:fixed 縺ァ蝗コ螳壹&繧後◆隕∫エ縺ョ陦ィ遉コ菴咲スョ譖エ譁ー縺 + * 荳譎ら噪縺ォ陦後o繧後↑縺上↑繧九ョ縺ァ縲√く繝シ繝懊シ繝芽。ィ遉コ縺ョ髫帙ョ繧ケ繧ッ繝ュ繝シ繝ォ縺ォ + * 繧医▲縺ヲ縲∝崋螳夊ヲ∫エ縺御コ域悄縺励↑縺蝣エ謇縺ォ遘サ蜍輔@縺ヲ縺励∪縺繧医≧縺ォ隕九∴繧九 + * + * 縺薙ョ縺溘a縲(OS繝繝舌う繧ケ縺ァ縺ッ縲∝崋螳夊ヲ∫エ繧剃ク譎ら噪縺ォ髱櫁。ィ遉コ縺ォ縺吶k縺薙→縺ァ + * 蝠城。後r蝗樣∩縺吶k縲 + * + * 逕サ髱「蜀縺ォ #top_nav #footer 莉・螟悶ョ蝗コ螳夊ヲ∫エ縺後≠繧句エ蜷医ッ縲 + * 譛ャ繧ケ繧ッ繝ェ繝励ヨ縺ョ繧サ繝ャ繧ッ繧ソ繧剃ソョ豁」縺吶k縺薙→縲 + * + * @author Iwauo Tajima + * @module nablarch.ui.device + */ +define(['jquery', 'sugar'], function($) {'use strict'; + + var device = window.nablarch_device.type; + if (device !== 'iphone' && device !== 'ipad') { + return; + } + + $(function() { + // 逕サ髱「蜀縺ョ蝗コ螳夊ヲ∫エ縲 + var $fixed = $('#top_nav, #footer, #menuControl'); + $(document) + .on('focus', 'input, textarea', function() { $fixed.hide() }) + .on('blur', 'input, textarea', function() { $fixed.show() }); + }); +}); + diff --git a/node_modules/nablarch-device-media_query/package.json b/node_modules/nablarch-device-media_query/package.json new file mode 100644 index 0000000..e5f0f4a --- /dev/null +++ b/node_modules/nablarch-device-media_query/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-device-media_query" +, "description": "陦ィ遉コ繝「繝シ繝牙、画峩逕ィ繝励Λ繧ー繧、繝ウ" +, "version": "1.0.0" +, "_from" : "nablarch-device-media_query@1.0.0" +, "dependencies": {} +} diff --git a/node_modules/nablarch-device-media_query/ui_public/WEB-INF/tags/device/media.tag b/node_modules/nablarch-device-media_query/ui_public/WEB-INF/tags/device/media.tag new file mode 100644 index 0000000..d38bcbc --- /dev/null +++ b/node_modules/nablarch-device-media_query/ui_public/WEB-INF/tags/device/media.tag @@ -0,0 +1,26 @@ +<%-- + 陦ィ遉コ繝「繝シ繝牙ッセ蠢懊え繧」繧ク繧ァ繝繝 + @author takanori tani +--%> + +<%@tag pageEncoding="UTF-8" description="陦ィ遉コ繝「繝シ繝峨↓繧医▲縺ヲ繧ケ繧ソ繧、繝ォ繧定ェュ縺ソ霎シ繧繧ヲ繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + + + + + + + diff --git a/node_modules/nablarch-js-submit/package.json b/node_modules/nablarch-js-submit/package.json new file mode 100644 index 0000000..ff132ca --- /dev/null +++ b/node_modules/nablarch-js-submit/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-js-submit" + , "description": "Nablarch Submit讖溯ス騾」蜍輔き繧ケ繧ソ繝繧、繝吶Φ繝" + , "version": "1.0.0" + , "_from" : "nablarch-js-submit@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-js-submit/ui_public/js/nablarch/ui/event.js b/node_modules/nablarch-js-submit/ui_public/js/nablarch/ui/event.js new file mode 100644 index 0000000..9eb8027 --- /dev/null +++ b/node_modules/nablarch-js-submit/ui_public/js/nablarch/ui/event.js @@ -0,0 +1,167 @@ +/** + * @module nablarch.ui + */ +define(["jquery", "nablarch/util", 'sugar'], +function($, util) { "use strict"; + + function define() { + $(function() { + defineNablarchCustomEvents(); + }); + + return { + /** + * event縺ヲ螳夂セゥ縺励◆繧、繝吶Φ繝域ュ蝣ア縺ィcontext縺九i + * context, target, eventType 繧貞叙蠕励☆繧九 + * + * @param {String} event 繧、繝吶Φ繝医ョ諠蝣ア繧貞ョ夂セゥ縺励◆譁蟄怜 + * @param {Object} context 繧、繝吶Φ繝医r蜃ヲ逅縺吶k繧ウ繝ウ繝繧ュ繧ケ繝 + * @returns {Object} 螳夂セゥ諠蝣ア縺九i逕滓舌@縺溽オ先棡 + * **context:** {String|Object} 繧、繝吶Φ繝亥ヲ逅繧偵☆繧九さ繝ウ繝繧ュ繧ケ繝域ュ蝣ア + * **target:** {String|Object} 繧、繝吶Φ繝医ョ蟇セ雎。 + * **eventType:** {String} 繧、繝吶Φ繝医ョ遞ョ鬘 + * + * @method parse + */ + parse : Event_parse + }; + + function Event_parse(event, context) { + var params = event.split(/\s+/) + , length = params.length + , target, eventType; + + eventType = params.last(); + target = length === 1 ? context + : params[length - 2]; + context = !!context ? context : params[0]; + + return { + context : context + , target : target + , eventType : eventType + }; + }; + } + + return define(); + + /** + * nablarch_submit()髢「謨ー縺ォ繧医ksubmit蜃ヲ逅縺悟ョ溯。後&繧後k蜑阪↓逋コ轣ォ縺吶k繧ー繝ュ繝シ繝舌Ν繧、繝吶Φ繝医 + * + * 騾壼クク縺ョDOM繧、繝吶Φ繝医↓縺翫¢繧 `submit` 繧、繝吶Φ繝医→縺ッ逡ー縺ェ繧翫 + * API縺九i繧オ繝悶Α繝繝医r陦後▲縺溷エ蜷医〒繧ゅう繝吶Φ繝医′逋コ逕溘☆繧九 + * 蜷繧、繝吶Φ繝医ワ繝ウ繝峨Λ縺ォ縺翫>縺ヲ縲∵守、コ逧縺ォ `false` 繧偵Μ繧ソ繝シ繝ウ縺励◆蝣エ蜷医ッ + * 蠕檎カ壹う繝吶Φ繝医ョ繝舌ヶ繝ェ繝ウ繧ー縺ィ繝繝輔か繝ォ繝医い繧ッ繧キ繝ァ繝ウ縺ョ螳溯。後r蛛懈ュ「縺吶k縲 + * + * @event beforeSubmit.nablarch + * @for nablarch.ui + * @param {jQuery.Event} event 繧、繝吶Φ繝医が繝悶ず繧ァ繧ッ繝 + * @param {String} submitName 繧オ繝悶Α繝繝医懊ち繝ウ/繝ェ繝ウ繧ッ縺ョname螻樊ァ + */ + var beforeSubmitEvent = "beforeSubmit"; + + /** + * nablarch_submit()髢「謨ー縺ォ繧医ksubmit蜃ヲ逅縺悟ョ溯。後&繧後◆蠕後↓逋コ轣ォ縺吶k繧ー繝ュ繝シ繝舌Ν繧、繝吶Φ繝医 + * + * 縺溘□縺励 `` 繧縲 `` 縺ョ繧医≧縺ォ縲√し繝悶Α繝繝亥ョ溯。悟セ後b繧ヲ繧」繝ウ繝峨え縺 + * 繝ェ繝ュ繝シ繝峨&繧後★縺ォ谿九k蝣エ蜷医ョ縺ソ逋コ轣ォ縺吶k縲 + * 蜷繧、繝吶Φ繝医ワ繝ウ繝峨Λ縺ォ縺翫>縺ヲ縲∵守、コ逧縺ォfalse繧定ソ斐@縺溷エ蜷医ッ縲∝セ檎カ壹う繝吶Φ繝医ョ繝舌ヶ繝ェ繝ウ繧ー縺ィ + * 繝繝輔か繝ォ繝医い繧ッ繧キ繝ァ繝ウ縺ョ螳溯。後r蛛懈ュ「縺吶k縲 + * + * @event afterSubmit.nablarch + * @for nablarch.ui + * @param {jQuery.Event} event 繧、繝吶Φ繝医が繝悶ず繧ァ繧ッ繝 + * @param {String} submitName 繧オ繝悶Α繝繝医懊ち繝ウ/繝ェ繝ウ繧ッ縺ョname螻樊ァ + */ + var afterSubmitEvent = "afterSubmit"; + + /** + * nablarch蜈ア騾夐未謨ー縺ォ繝輔ャ繧ッ繧偵°縺代k縺薙→縺ァ縲]ablarch髢「騾」繧、繝吶Φ繝医ョ螳夂セゥ繧定。後≧縲 + */ + function defineNablarchCustomEvents() { + var global = window + , orgNablarchSubmit = global.nablarch_submit + , orgNablarchSubmitToNewForm = global.nablarch_submitToNewForm + , orgNablarchSubmitOnWindow = global.nablarch_submitOnWindow + , submitEventTrigger = null; + + if (typeof orgNablarchSubmit !== "function") { + util.error("a global function named nablarch_submit() is not defined."); + } + global.nablarch_submit = nablarchSubmitOverride; + + if (typeof orgNablarchSubmitToNewForm !== "function") { + util.error("a global function named nablarch_submitToNewForm() is not defined."); + } + global.nablarch_submitToNewForm = nablarchSubmitToNewFormOverride; + + if (typeof orgNablarchSubmitOnWindow !== "function") { + util.error("a global function named nablarch_submitOnWindow() is not defined."); + } + global.nablarch_submitOnWindow = nablarchSubmitOnWindowOverride; + + /** + * nablarch_submit()髢「謨ー繧偵が繝シ繝舌シ繝ゥ繧、繝峨☆繧矩未謨ー縲 + * + * JSP縺ォ繧医▲縺ヲ蜃コ蜉帙&繧後k nablarch_submit() 髢「謨ー縺ッonclick螻樊ァ縺ォ險ュ螳壹&繧後 + * 縺昴ョ荳ュ縺ァ繧オ繝悶Α繝繝亥ヲ逅繧貞ョ溯。後☆繧九◆繧√∝セ後°繧営lick繧、繝吶Φ繝医↓繝舌う繝ウ繝峨☆繧九%縺ィ縺後〒縺阪↑縺縲 + * 縺昴ョ縺溘a縲√%縺ョ髢「謨ー縺ァ縺ッ縲{nclick繝上Φ繝峨Λ蜀縺ァ逶エ謗・繧オ繝悶Α繝繝医r陦後≧縺薙→縺ッ縺帙★縲 + * body隕∫エ縺セ縺ァ繝舌ヶ繝ェ繝ウ繧ー縺励※縺阪◆繧、繝吶Φ繝医r謐墓拷縺励※繧オ繝悶Α繝繝医☆繧九h縺縺ォ縺励※縺繧九 + * + * @param {Event} event DOM繧、繝吶Φ繝医が繝悶ず繧ァ繧ッ繝 + * @param {Element} element 繧オ繝悶Α繝繝医′逋コ逕溘@縺櫂OM隕∫エ + */ + function nablarchSubmitOverride(event, element) { + var $body = $("body") + , $submitEventTrigger = $(element); + + submitEventTrigger = element; + + $body.off("click.nablarch_submit") + .one("click.nablarch_submit" + , '[name="' + $submitEventTrigger.prop("name") + '"]' + , function() { return orgNablarchSubmit(event, element); } + ); + } + + /** + * nablarch_submitToNewForm() 髢「謨ー繧偵が繝シ繝舌シ繝ゥ繧、繝峨☆繧矩未謨ー縲 + * + * 譛ャ髢「謨ー縺ッ縲/遲峨√し繝悶Α繝繝亥セ後b蠖楢ゥイ縺ョ繧ヲ繧」繝ウ繝峨え縺檎判髱「荳翫↓ + * 縺昴ョ縺セ縺セ谿九k蝣エ蜷医↓蜻シ縺ー繧後√し繝悶Α繝繝亥ヲ逅繧定。後≧蜑榊セ後〒縲√げ繝ュ繝シ繝舌Ν繧、繝吶Φ繝 + * beforeSubmit.nablarch/afterSubmit.nablarch 繧偵◎繧後◇繧檎匱轣ォ縺吶k縲 + */ + function nablarchSubmitToNewFormOverride(submitName, form, submissionData) { + var beforeEvent = $.Event("beforeSubmit", { target: submitEventTrigger }) + , afterEvent = $.Event("afterSubmit", { target: submitEventTrigger }); + + $.event.trigger(beforeEvent, [submitName, form, submissionData]); + // 騾比クュ縺ョ繧、繝吶Φ繝医ワ繝ウ繝峨Λ縺ァ繝繝輔か繝ォ繝医い繧ッ繧キ繝ァ繝ウ縺ョ螳溯。後′謚第ュ「縺輔l縺ヲ縺縺溷エ蜷医ッ縲 + // 繧オ繝悶Α繝繝亥ヲ逅繧剃クュ譁ュ縺吶k縲 + if (beforeEvent.isDefaultPrevented()) { + return false; + } + orgNablarchSubmitToNewForm(submitName, form, submissionData); + $.event.trigger(afterEvent, [submitName, form, submissionData]); + } + + /** + * nablarch_submitToNewForm() 髢「謨ー繧偵が繝シ繝舌シ繝ゥ繧、繝峨☆繧矩未謨ー縲 + * + * 譛ャ髢「謨ー縺ァ縺ッ繧オ繝悶Α繝繝亥ヲ逅繧定。後≧蜑阪↓縲√げ繝ュ繝シ繝舌Ν繧、繝吶Φ繝 beforeSubmit.nablarch + * 繧堤匱轣ォ縺吶k縲 + */ + function nablarchSubmitOnWindowOverride(submitName, form, submissionData) { + var beforeEvent = $.Event("beforeSubmit", { target: submitEventTrigger }); + $.event.trigger(beforeEvent, [submitName, form, submissionData]); + // 騾比クュ縺ョ繧、繝吶Φ繝医ワ繝ウ繝峨Λ縺ァ繝繝輔か繝ォ繝医い繧ッ繧キ繝ァ繝ウ縺ョ螳溯。後′謚第ュ「縺輔l縺ヲ縺縺溷エ蜷医ッ縲 + // 繧オ繝悶Α繝繝亥ヲ逅繧剃クュ譁ュ縺吶k縲 + if (beforeEvent.isDefaultPrevented()) { + return false; + } + orgNablarchSubmitOnWindow(submitName, form, submissionData); + } + } +}); + diff --git a/node_modules/nablarch-js-submit/ui_public/js/nablarch/util.js b/node_modules/nablarch-js-submit/ui_public/js/nablarch/util.js new file mode 100644 index 0000000..8550cc3 --- /dev/null +++ b/node_modules/nablarch-js-submit/ui_public/js/nablarch/util.js @@ -0,0 +1,22 @@ +/** + * 繝ヲ繝シ繝繧」繝ェ繝繧」髢「謨ー縺ェ縺ゥ + * + * @module nablarch.util + * @author Iwauo Tajima + */ +define(function() {'use strict'; + + return { + error : error + }; + + /** + * 謖螳壹&繧後◆繝。繝繧サ繝シ繧ク縺ォ繧医j縲∽セ句、悶r騾∝コ縺吶k縲 + * + * @param {String} 萓句、悶Γ繝繧サ繝シ繧ク + */ + function error(message) { + message = message + '\n' + (new Error().stack || ""); + throw new Error(message); + } +}); diff --git "a/node_modules/nablarch-js-submit/ui_test/jsp/\343\202\265\343\203\226\343\203\237\343\203\203\343\203\210\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265/index.jsp" "b/node_modules/nablarch-js-submit/ui_test/jsp/\343\202\265\343\203\226\343\203\237\343\203\203\343\203\210\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265/index.jsp" new file mode 100644 index 0000000..b63ca30 --- /dev/null +++ "b/node_modules/nablarch-js-submit/ui_test/jsp/\343\202\265\343\203\226\343\203\237\343\203\203\343\203\210\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265/index.jsp" @@ -0,0 +1,111 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + +

+ 荳玖ィ倥ョ蜀螳ケ繧貞・蜉帙@縲∝螳ケ繧堤「コ隱榊セ後騾∽ソ。繝懊ち繝ウ繧呈款縺励※荳九&縺縲 +

+ + + + + + + + + + + + +
+ + + + + + + + + + + + +
+
+ + + $(function() {"use strict"; + $("#submitLink").on("click", validateInput); + $(document).on("beforeSubmit", "#content", checkConfirmation) + .on("afterSubmit", "#content", function(){alert("譁ー縺励>繧ヲ繧」繝ウ繝峨え縺碁幕縺阪∪縺励◆!")}); + // UNIT TEST 縺ク縺ョ繝懊ち繝ウ縺ッ繝繧、繧「繝ュ繧ー蜃コ縺輔↑縺縲 + $("#unittest").on("click", function(){ + $('input').prop('checked', true).filter(':text').val('縲'); + }); + + }); + + function validateInput() {"use strict"; + var trim = $.trim + , question = trim($("#question").val()) + , answer = trim($("#answer").val()) + , isBlank = (question.length == 0 || answer.length == 0); + + if (isBlank) { + alert("蜈・蜉帙&繧後※縺縺ェ縺鬆逶ョ縺後≠繧翫∪縺吶"); + return false; + } + } + + function checkConfirmation() {"use strict"; + var confirmed = $("#confirmed:checked").length; + if (!confirmed) { + alert("蜈・蜉帛螳ケ繧堤「コ隱阪@縺ヲ遒コ隱肴ャ縺ォ繝√ぉ繝繧ッ繧貞・繧後※荳九&縺縲"); + return false; + } + } + +
diff --git "a/node_modules/nablarch-js-submit/ui_test/jsp/\343\202\265\343\203\226\343\203\237\343\203\203\343\203\210\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265.js" "b/node_modules/nablarch-js-submit/ui_test/jsp/\343\202\265\343\203\226\343\203\237\343\203\203\343\203\210\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265.js" new file mode 100644 index 0000000..e50d74e --- /dev/null +++ "b/node_modules/nablarch-js-submit/ui_test/jsp/\343\202\265\343\203\226\343\203\237\343\203\203\343\203\210\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265.js" @@ -0,0 +1,36 @@ +require(['jquery', 'nablarch/ui/event', 'sugar'] +,function($, event){ + runTest( + parse縺ョ繝繧ケ繝 + ); + + function parse縺ョ繝繧ケ繝() { + var actual; + ok(Object.isFunction(event.parse), "parse繝。繧ス繝繝峨′螳溯」縺輔l縺ヲ縺繧九"); + + actual = event.parse("#forTestInput change", "form"); + equal(actual.context, "form", "target eventType繝代ち繝シ繝ウ[貂。縺励◆繧ウ繝ウ繝繧ュ繧ケ繝医′context縺ォ險ュ螳壹&繧後※縺繧九%縺ィ]"); + equal(actual.target, "#forTestInput", "target eventType繝代ち繝シ繝ウ[繝代Λ繝。繝シ繧ソ縺九i譛溷セ縺励◆target縺悟叙蠕励〒縺阪k縺薙→]"); + equal(actual.eventType, "change", "target eventType繝代ち繝シ繝ウ[繝代Λ繝。繝シ繧ソ縺九i譛溷セ縺励◆eventType縺悟叙蠕励〒縺阪k縺薙→]"); + + actual = event.parse("event", "form"); + equal(actual.context, "form", "evnetType繝代ち繝シ繝ウ[貂。縺励◆繧ウ繝ウ繝繧ュ繧ケ繝医′context縺ォ險ュ螳壹&繧後k縺薙→]"); + equal(actual.target, "form", "evnetType繝代ち繝シ繝ウ[貂。縺励◆繧ウ繝ウ繝繧ュ繧ケ繝医′target險ュ螳壹&繧後k縺薙→]"); + equal(actual.eventType, "event", "eventType繝代ち繝シ繝ウ[繝代Λ繝。繝シ繧ソ縺九i譛溷セ縺励◆eventType縺悟叙蠕励〒縺阪k縺薙→]"); + + actual = event.parse("form #forTestInput focus"); + equal(actual.context, "form", "context target eventType繝代ち繝シ繝ウ[蜈磯ュ縺$context縺ォ險ュ螳壹&繧後k縺薙→"); + equal(actual.target, "#forTestInput", "context target eventType繝代ち繝シ繝ウ[2縺、繧√ョ譁蟄怜励′target縺ォ險ュ螳壹&繧後k縺薙→"); + equal(actual.eventType, "focus", "context target eventType繝代ち繝シ繝ウ[3縺、繧√ョ譁蟄怜励′eventType縺ォ險ュ螳壹&繧後k縺薙→"); + } + + // 莉・荳九ッ譛ェ螳溯」 + function beforeSubmit縺ョ繝繧ケ繝() { + ok(false, '繝繧ケ繝域悴螳溯」'); + } + + function afterSubmit縺ョ繝繧ケ繝() { + ok(false, '繝繧ケ繝域悴螳溯」'); + } +}); + diff --git "a/node_modules/nablarch-js-submit/ui_test/jsp/\343\202\265\343\203\226\343\203\237\343\203\203\343\203\210\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265.jsp" "b/node_modules/nablarch-js-submit/ui_test/jsp/\343\202\265\343\203\226\343\203\237\343\203\203\343\203\210\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265.jsp" new file mode 100644 index 0000000..f339577 --- /dev/null +++ "b/node_modules/nablarch-js-submit/ui_test/jsp/\343\202\265\343\203\226\343\203\237\343\203\203\343\203\210\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\343\202\244\343\203\231\343\203\263\343\203\210\346\213\241\345\274\265.jsp" @@ -0,0 +1,40 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + diff --git a/node_modules/nablarch-js-util-bigdecimal/package.json b/node_modules/nablarch-js-util-bigdecimal/package.json new file mode 100644 index 0000000..258a97d --- /dev/null +++ b/node_modules/nablarch-js-util-bigdecimal/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-js-util-bigdecimal" + , "description": "JavaScript迚医ョ邁。譏釘igDecimal螳溯」" + , "version": "1.0.0" + , "_from" : "nablarch-js-util-bigdecimal@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-js-util-bigdecimal/ui_public/js/nablarch/util/BigDecimal.js b/node_modules/nablarch-js-util-bigdecimal/ui_public/js/nablarch/util/BigDecimal.js new file mode 100644 index 0000000..e06cf72 --- /dev/null +++ b/node_modules/nablarch-js-util-bigdecimal/ui_public/js/nablarch/util/BigDecimal.js @@ -0,0 +1,308 @@ +/** + * @module nablarch.util + */ +define(function () { + + "use strict"; + + function BigDecimal(value, /* option */ scale) { + if (overflow(value)) { + return BigDecimal.NaN; + } + + // 髱樊焚蛟、縺ョ蝣エ蜷医ッ縲。igDecimal.NaN縺ィ縺吶k + if (!isNumber(value)) { + return BigDecimal.NaN; + } + + /** 譁蟄怜励↓螟画鋤縺励◆蛟、 */ + this._value = value.toString(); + + /** 繧ケ繧ア繝シ繝ォ(繧ケ繧ア繝シ繝ォ縺梧欠螳壹&繧後↑縺蝣エ蜷医ッ縲∝、繧貞縺ォ蟆主コ縺吶k) */ + this._scale = isNumber(scale) ? Math.floor(scale) : getScale(this._value); + } + + /** + * Javascript縺ォ繧医k邁。譏釘igDecimal螳溯」 + * ------------------------------------ + * + * **險ア螳ケ縺輔l繧10騾イ譯∵焚** + * javascript縺ョ謨ー蛟、(number)縺ッ蜈ィ縺ヲ豬ョ蜍募ー乗焚轤ケ縺ォ繧医▲縺ヲ蜀驛ィ逧縺ォ菫晄戟縺輔l繧九 + * 縺薙ョBigDecimal縺ョ螳溯」縺ァ縺ッ縲∵焚蛟、驛ィ蛻繧男avascript縺ョnumber縺ィ縺励※菫晄戟縺吶k縺ョ縺ァ縲 + * 謨ー蛟、驛ィ蛻縺ョ險育ョ励〒豬ョ蜍募ー乗焚縺ョ螳滓焚驛ィ縺ョ譛螟ァ蛟、(=2^53)繧定カ驕弱☆繧九→邊セ蠎ヲ縺御ク九′繧翫 + * 險育ョ礼オ先棡縺後★繧後k縲 + * + * 縺薙ョ縺溘a縲∬ィ育ョ礼オ先棡縺ョ謨ー蛟、驛ィ蛻縺御ク螳壹ョ譯∵焚繧定カ翫∴縺溷エ蜷医ッNaN繧定ソ斐☆縲 + * log(2^53) = 15.95 縺ェ縺ョ縺ァ縲√ョ繝輔か繝ォ繝医ョ險ュ螳壼、縺ァ縺ッ10^15譛ェ貅縺ョ謨ー(15譯√ョ)謨ー繧定ィア螳ケ縺吶k縲 + * + * @class nablarch.util.BigDecimal + * @author Hisaaki Sioiri + * @since 1.2 + */ + BigDecimal.prototype = { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縲 + * @param {Number} value 蛟、縲(謨ー蛟、莉・螟悶ョ蛟、縺梧欠螳壹&繧後◆蝣エ蜷医ッNaN縺ォ螟画鋤縺吶k縲) + * @param {Number} scale 繧ケ繧ア繝シ繝ォ(謨ー蛟、莉・螟悶ョ蛟、縺梧欠螳壹&繧後◆蝣エ蜷医ッ縲0縺ォ螟画鋤縺吶k縲) + * @constructor + */ + constructor: BigDecimal, + /** + * 蜉邂励r陦後≧縲 + * + * @method add + * @param {Number|String} value 蜉邂励☆繧句、 + * @param {Number|String} [scale] 蜉邂怜セ後ョ繧ケ繧ア繝シ繝ォ + * (譛ェ謖螳壹ョ蝣エ蜷医ッ縲√%縺ョ繧ェ繝悶ず繧ァ繧ッ繝医ョ繧ケ繧ア繝シ繝ォ縺ィaddValue縺ョ繧ケ繧ア繝シ繝ォ縺ョ螟ァ縺阪>繧ケ繧ア繝シ繝ォ縺碁←逕ィ縺輔l繧九) + * @return {BigDecimal} 蜉邂怜セ後ョ蛟、 + */ + add:BigDecimal_add, + /** + * 貂帷ョ励r陦後≧縲 + * @method subtract + * @param {Number|String} value 貂帷ョ励☆繧句、 + * @param {Number|String} [scale] 貂帷ョ怜セ後ョ繧ケ繧ア繝シ繝ォ + * (譛ェ謖螳壹ョ蝣エ蜷医ッ縲√%縺ョ繧ェ繝悶ず繧ァ繧ッ繝医ョ繧ケ繧ア繝シ繝ォ縺ィaddValue縺ョ繧ケ繧ア繝シ繝ォ縺ョ螟ァ縺阪>繧ケ繧ア繝シ繝ォ縺碁←逕ィ縺輔l繧九) + * @return {BigDecimal} 貂帷ョ怜セ後ョ蛟、 + */ + subtract:BigDecimal_subtract, + /** + * 荵礼ョ励r陦後≧縲 + * @method multiply + * @param {Number|String} value 荵礼ョ励☆繧句、 + * @param {Number|String} [scale] 荵礼ョ怜セ後ョ繧ケ繧ア繝シ繝ォ + * (譛ェ謖螳壹ョ蝣エ蜷医ッ縲√%縺ョ繧ェ繝悶ず繧ァ繧ッ繝医ョ繧ケ繧ア繝シ繝ォ縺ィaddValue縺ョ繧ケ繧ア繝シ繝ォ縺ョ螟ァ縺阪>繧ケ繧ア繝シ繝ォ縺碁←逕ィ縺輔l繧九) + * @return {BigDecimal} 荵礼ョ怜セ後ョ蛟、 + */ + multiply:BigDecimal_multiply, + /** + * 譁蟄怜励↓螟画鋤縺吶k縲 + * @method toString + * @return {String} 螟画鋤蠕後ョ譁蟄怜 + */ + toString:BigDecimal_toString, + /** + * 謨ー蛟、縺ォ螟画鋤縺吶k縲 + * @method toNumber + * @return {Number} 螟画鋤蠕後ョ謨ー蛟、 + */ + toNumber:BigDecimal_toNumber + }; + + /** + * 譛螟ァ謨ー蛟、 + * @property maxDigit + * @static + * @final + */ + BigDecimal.maxDigit = 1000 * 1000 * 1000 * 1000 * 1000 - 1; // 譛螟ァ謨ー蛟、 + + /** + * 譛蟆乗焚蛟、 + * @property minDigit + * @static + * @final + */ + BigDecimal.minDigit = -1000 * 1000 * 1000 * 1000 * 1000 + 1; // 譛蟆乗焚蛟、 + + function overflow(digit) { + if (typeof digit === "string") { + digit = toInteger(digit); + } + return (digit > BigDecimal.maxDigit) + || (digit < BigDecimal.minDigit); + } + + /** + * Not A Number + * @class nablarch.util.BigDecimal.NaN + * @final + * @for nablarch.util.BigDecimal + */ + BigDecimal.NaN = new BigDecimal(0,0); + BigDecimal.NaN.add = function() {return this;}; + BigDecimal.NaN.subtract = function() {return this;}; + BigDecimal.NaN.multiply = function() {return this;}; + BigDecimal.NaN.toString = function() {return "NaN";}; + BigDecimal.NaN.toNumber = function() {return Number.NaN;}; + + return BigDecimal; + + function BigDecimal_add(value, /* option */ scale) { + return expression(this, value, scale, + function (v1, v2) { + return v1 + v2; + }, + function (scale) { + return scale; + }); + } + + function BigDecimal_subtract(value, /* option */ scale) { + return expression(this, value, scale, + function (v1, v2) { + return v1 - v2; + }, + function (scale) { + return scale; + }); + } + + function BigDecimal_multiply(value, /* option */ scale) { + return expression(this, value, scale, + function (v1, v2) { + return v1 * v2; + }, function (scale) { + return scale * 2; + }); + } + + function BigDecimal_toString() { + var str = this._value, + sign = ""; + if (str.substring(0,1) === "-"){ + str = str.substring(1); + if (str.match(/[^0.]/)){ + sign = "-"; + } + } + var split = str.split("."); + split[0] = split[0].length == 0 ? "0" : split[0]; + if (this._scale === 0) { + return sign + split[0]; + } else if (split.length === 1) { + return sign + split[0] + "." + addZero("", this._scale); + } else if (split[1].length < this._scale) { + return sign + split[0] + "." + addZero(split[1], this._scale); + } else { + return sign + split[0] + "." + split[1].substring(0, this._scale); + } + } + + function BigDecimal_toNumber() { + return Number(this.toString()); + } + + /** + * 險育ョ励r陦後≧縲 + * @param value1 險育ョ怜ッセ雎。縺ョ蛟、1 + * @param value2 險育ョ怜ッセ雎。縺ョ蛟、2 + * @param scale 險育ョ玲凾縺ョ繧ケ繧ア繝シ繝ォ + * @param expressionInner 險育ョ怜ヲ逅繧定。後≧髢「謨ー + * @return {BigDecimal} 險育ョ怜セ後ョ蛟、 + */ + function expression(value1, value2, scale, expressionInner, newScale) { + var thisNumber, + addNumber, + maxScale, + resultNumber; + + if (!(value2 instanceof BigDecimal)) { + value2 = new BigDecimal(value2); + } + + if (value2 === BigDecimal.NaN) { + return BigDecimal.NaN; + } + maxScale = Math.max(value1._scale, value2._scale); + thisNumber = toInteger(value1._value, maxScale); + addNumber = toInteger(value2._value, maxScale); + if (overflow(thisNumber) || overflow(addNumber)) { + return BigDecimal.NaN; + } + resultNumber = expressionInner(thisNumber, addNumber); + if (overflow(resultNumber)) { + return BigDecimal.NaN; + } + return new BigDecimal(toBigDecimalString(resultNumber, newScale(maxScale)), + isNumber(scale) ? scale : maxScale); + } + + /** + * 譁蟄怜怜、縺九i繧ケ繧ア繝シ繝ォ繧貞ー主コ縺吶k縲 + * @param value 蛟、 + * @return {Number} 繧ケ繧ア繝シ繝ォ + */ + function getScale(value) { + if (value.indexOf(".") === -1) { + return 0; + } + return value.split(".")[1].length; + } + + /** + * 繧ケ繧ア繝シ繝ォ蛻譯√r縺壹i縺励◆謨ー蛟、縺ォ螟画鋤縺吶k縲 + * @param value 蛟、 + * @param scale 繧ケ繧ア繝シ繝ォ + * @return {Number} 螟画鋤蠕後ョ蛟、 + */ + function toInteger(value, scale) { + var split = value.split("."); + if (split.length === 1) { + return Number(value + addZero("", scale)); + } + if (split[1].length >= scale) { + return Number(split[0] + split[1].substring(0, scale)); + } else { + return Number(split[0] + addZero(split[1], scale)); + } + } + + /** + * 謖螳壹&繧後◆繧ケ繧ア繝シ繝ォ繧呈戟縺、謨ー蛟、譁蟄怜励↓螟画鋤縺吶k縲 + * + * 謨ー蛟、驛ィ縺 BigDecimal.maxDigit 繧定カ驕弱@縺溷エ蜷医ッ"NaN" 繧定ソ斐☆縲 + * + * @param value 蛟、 + * @param scale 繧ケ繧ア繝シ繝ォ + * @return {String} + */ + function toBigDecimalString(value, scale) { + var str = value.toString(); + if (scale === 0) { + return str; + } + var sign = ""; + if (str.substring(0,1) === "-"){ + str = str.substring(1); + if (str !== "0"){ + sign = "-"; + } + } + if (str.length <= scale){ + str = addZero("", scale - str.length + 1) + str; + } + return sign + str.substring(0, str.length - scale) + "." + str.substring(str.length - scale); + } + + /** + * 謖螳壹@縺滄聞縺輔↓縺ェ繧九h縺縺ォ譛ォ蟆セ縺ォ縲0縲阪r莉伜刈縺吶k縲 + * @param value 蛟、 + * @param length 髟キ縺 + * @return {String} 謖螳壹&繧後◆髟キ縺輔ョ蛟、 + */ + function addZero(value, length) { + var i, + ret = value; + for (i = ret.length; i < length; i += 1) { + ret += "0"; + } + return ret; + } + + /** + * 謖螳壹@縺溷、縺梧焚蛟、縺句凄縺九 + * @param value 蛟、 + * @return {Boolean} 謨ー蛟、縺ョ蝣エ蜷医ッ縲》rue + */ + function isNumber(value) { + if (value === undefined) { + return false; + } + if (value.toString().length === 0) { + return false; + } + return !isNaN(value); + } +}); + diff --git a/node_modules/nablarch-js-util-bigdecimal/ui_test/js/nablarch/util/BigDecimalTest.js b/node_modules/nablarch-js-util-bigdecimal/ui_test/js/nablarch/util/BigDecimalTest.js new file mode 100644 index 0000000..28a3f30 --- /dev/null +++ b/node_modules/nablarch-js-util-bigdecimal/ui_test/js/nablarch/util/BigDecimalTest.js @@ -0,0 +1,198 @@ +require(["nablarch/util/BigDecimal", "sugar"], function (BigDecimal) { + + module("nablarch/util/BigDecimal"); + + test("#BigDeciaml 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縺ョ繝繧ケ繝", function () { + + //繧「繧オ繝シ繝磯未謨ー + var assertConstructor = function (actual, expected) { + equal(actual.toString(), expected, actual.toString() + " = " + expected); + }; + // 0 + assertConstructor(new BigDecimal("0"), "0"); + assertConstructor(new BigDecimal(0), "0"); + assertConstructor(new BigDecimal("0", 2), "0.00"); + assertConstructor(new BigDecimal(0, 2), "0.00"); + + // 蟆乗焚驛ィ縺ョ縺ソ + assertConstructor(new BigDecimal(".00"), "0.00"); + assertConstructor(new BigDecimal(.00), "0"); + assertConstructor(new BigDecimal("-.00"), "0.00"); + assertConstructor(new BigDecimal(-.00), "0"); + assertConstructor(new BigDecimal("-0.00"), "0.00"); + assertConstructor(new BigDecimal(-0.00), "0"); + assertConstructor(new BigDecimal(".00", 0), "0"); + assertConstructor(new BigDecimal(.00, 0), "0"); + + // 謨エ謨ー驛ィ縲∝ー乗焚驛ィ譛峨j + assertConstructor(new BigDecimal("1.11"), "1.11"); + assertConstructor(new BigDecimal(1), "1"); + assertConstructor(new BigDecimal("999999999999.999", 1), "999999999999.9"); + assertConstructor(new BigDecimal(999999999999, 3), "999999999999.000"); + + + // 髱樊焚蟄 + assertConstructor(new BigDecimal(""), BigDecimal.NaN); + assertConstructor(new BigDecimal("abc"), BigDecimal.NaN); + assertConstructor(new BigDecimal("1234abc", 2), BigDecimal.NaN); + + // 譛螟ァ謨ー縲∵怙蟆乗焚雜驕 + assertConstructor(new BigDecimal(1000 * 1000 * 1000 * 1000 * 1000 -1), "999999999999999"); + assertConstructor(new BigDecimal(1000 * 1000 * 1000 * 1000 * 1000), "NaN"); + assertConstructor(new BigDecimal(-1000 * 1000 * 1000 * 1000 * 1000), "NaN"); + assertConstructor(new BigDecimal(-1000 * 1000 * 1000 * 1000 * 1000 +1), "-999999999999999"); + }); + + test("#add Big蜉邂励ョ繝繧ケ繝", function () { + + // ZERO縺ョ繝繧ケ繝 + equal(new BigDecimal("0").add("0").toString(), "0", "0 + 0縺ッ0"); + equal(new BigDecimal("0.00").add("1.0").toString(), "1.00", "蟆第焚譛峨j縺ョ蝣エ蜷医ッ縲∝、ァ縺阪>縺サ縺縺悟━蜈医&繧後k縲"); + equal(new BigDecimal("0.00").add("1.0", 1).toString(), "1.0", "繧ケ繧ア繝シ繝ォ繧呈欠螳壹@縺ヲ蜉邂励@縺溷エ蜷医ッ縲√◎縺ョ繧ケ繧ア繝シ繝ォ縺ョ邨先棡縺悟セ励i繧後k縲"); + equal(new BigDecimal("10000").add("90000").toString(), "100000", "譯√ョ郢ー繧贋ク翫′繧翫b豁」縺励¥險育ョ励&繧後k縲"); + equal(new BigDecimal("1.001").add(new BigDecimal("9.009")).toString(), "10.010", "蟆乗焚驛ィ縺ョ郢ー繧贋ク翫′繧翫b豁」縺励¥險育ョ励&繧後k縲"); + equal(new BigDecimal("1.001").add(new BigDecimal("9.009"), 1).toString(), "10.0", "蟆乗焚驛ィ縺ョ郢ー繧贋ク翫′繧翫〒繧ケ繧ア繝シ繝ォ險ュ螳壹≠繧翫〒繧よュ」縺励¥險育ョ励&繧後k縲"); + equal(new BigDecimal("1.001", 3).add(new BigDecimal("9.009", 3), 1).toString(), "10.0", + "蜉邂怜ッセ雎。縺ョBigDecimal縺ォ繧ケ繧ア繝シ繝ォ險ュ螳壹′縺ゅ▲縺ヲ繧ゅ‖dd譎ゅ↓謖螳壹@縺溘せ繧ア繝シ繝ォ縺悟━蜈医&繧後k"); + + equal(new BigDecimal("999999999999").add("-999999999999").toString(), "0", "繝槭う繝翫せ蛟、繧貞刈邂励@縺ヲ繧0K"); + equal(new BigDecimal("999999999999").add("-1000000000000").toString(), "-1", "繝槭う繝翫せ蛟、繧貞刈邂励@縺ヲ繝槭う繝翫せ縺ォ縺ェ繧九こ繝シ繧ケ縺ァ繧0K"); + + equal(new BigDecimal("100.00001").add(new BigDecimal("-.00001"), 5).toString(), "100.00000", + "蟆乗焚驛ィ縺0縺ォ縺ェ繧九槭う繝翫せ蛟、繧貞刈邂励@縺ヲ繧0K"); + equal(new BigDecimal("-100.00001").add(new BigDecimal("100.00001"), 5).toString(), "0.00000", + "繝槭う繝翫せ蛟、縺ォ蜉邂励@縺ヲ0縺ォ縺ェ繧九こ繝シ繧ケ繧0K"); + equal(new BigDecimal("-100.01").add(new BigDecimal("-100.01"), 2).toString(), "-200.02", + "繝槭う繝翫せ蛟、縺ォ繝槭う繝翫せ蛟、繧貞刈邂励☆繧九こ繝シ繧ケ繧0K"); + + equal(new BigDecimal("1234567890").add(new BigDecimal("0.12345")).toString(), + "1234567890.12345", "險育ョ礼オ先棡縺ョ謨ー蛟、驛ィ15譯√∪縺ァ縺ェ繧碓K"); + + equal(new BigDecimal("1234567890").add(new BigDecimal("0.123456")).toString(), + "NaN", "險育ョ礼オ先棡縺ョ謨ー蛟、縺16譯√↑繧丑aN"); + + equal(BigDecimal.NaN.add(new BigDecimal("100")).toString(), "NaN", "NaN縺ォadd縺励※繧りィ育ョ嶺ク榊庄"); + equal(new BigDecimal("100").add(BigDecimal.NaN).toString(), "NaN", "謨ー蛟、縺ォNaN繧誕dd險育ョ嶺ク榊庄"); + + equal(new BigDecimal("aaa").add(new BigDecimal("100")).toString(), "NaN", "譁蟄怜励↓add縺励※繧りィ育ョ嶺ク榊庄"); + equal(new BigDecimal("100").add(new BigDecimal("")).toString(), "NaN", "謨ー蛟、縺ォ譁蟄怜励radd險育ョ嶺ク榊庄"); + + // 0.01ス0.99 + 0.99ス0.01 = 1.00 縺ョ繝繧ケ繝 + (1).upto(99, function (n) { + var input1 = "0." + n.pad(2), + input2 = "0." + (100 - n).pad(2); + equal(new BigDecimal(input1).add(new BigDecimal(input2)), "1.00", input1 + "縺ィ" + input2 + "繧貞刈邂励@縺ヲ1.00縺ォ縺ェ繧九%縺ィ"); + }); + + (1).upto(99, function (n) { + var input1 = "99." + n.pad(2), + input2 = "0." + (100 - n).pad(2); + equal(new BigDecimal(input1).add(new BigDecimal(input2)), "100.00", input1 + "縺ィ" + input2 + "繧貞刈邂励@縺ヲ100.00縺ォ縺ェ繧九%縺ィ"); + }); + + (1).upto(99, function (n) { + var input1 = "-0." + n.pad(2), + input2 = "-0." + (100 - n).pad(2); + equal(new BigDecimal(input1).add(new BigDecimal(input2)).toString(), "-1.00", + input1 + "縺ィ" + input2 + "繧貞刈邂励@縺ヲ-1.00縺ォ縺ェ繧九%縺ィ") + }); + + (1).upto(99, function (n) { + var input1 = "-99." + n.pad(2), + input2 = "-0." + (100 - n).pad(2); + equal(new BigDecimal(input1).add(new BigDecimal(input2)).toString(), "-100.00", + input1 + "縺ィ" + input2 + "繧貞刈邂励@縺ヲ-100.00縺ォ縺ェ繧九%縺ィ") + }); + }); + + test("#subtract縺ョ繝繧ケ繝", function () { + equal(new BigDecimal("0").subtract("0").toString(), "0", "0 - 0 縺ッ0"); + equal(new BigDecimal("0.00").subtract(new BigDecimal("1.0")).toString(), "-1.00", "蟆第焚縺ゅj縺ョ蝣エ蜷医ッ縲∵。∵焚縺悟、ァ縺阪>縺サ縺縺悟━蜈医&繧後k縲"); + equal(new BigDecimal("0.00").subtract("1.0", 1).toString(), "-1.0", "繧ケ繧ア繝シ繝ォ繧呈欠螳壹@縺溷エ蜷医ッ縲√◎縺ョ繧ケ繧ア繝シ繝ォ縺ョ邨先棡縺悟セ励i繧後k縲"); + + equal(new BigDecimal("-10000").subtract("90000").toString(), "-100000", "譯√ョ縺上j縺ゅ′繧翫b豁」縺励¥險育ョ励&繧後k縲"); + equal(new BigDecimal("-1.001").subtract(new BigDecimal("9.009")).toString(), "-10.010", "蟆乗焚驛ィ縺ョ郢ー繧贋ク翫′繧翫b豁」縺励¥險育ョ励&繧後k縲"); + + equal(new BigDecimal("-1.001").subtract(new BigDecimal("9.009"), 1).toString(), "-10.0", + "蟆乗焚驛ィ縺ョ郢ー繧贋ク翫′繧翫〒繧ケ繧ア繝シ繝ォ險ュ螳壹≠繧翫〒繧よュ」縺励¥險育ョ励&繧後k縲"); + equal(new BigDecimal("-1.001", 3).subtract(new BigDecimal("9.009", 3), 1).toString(), "-10.0", + "貂帷ョ怜ッセ雎。縺ョBigDecimal縺ォ繧ケ繧ア繝シ繝ォ險ュ螳壹′縺ゅ▲縺ヲ繧ゅ《ubtract譎ゅ↓謖螳壹@縺溘せ繧ア繝シ繝ォ縺悟━蜈医&繧後k"); + + equal(new BigDecimal("-999999999999").subtract("-999999999999").toString(), "0", "繝槭う繝翫せ蛟、繧呈ク帷ョ励@縺ヲ繧0K"); + equal(new BigDecimal("-999999999999").subtract("-1000000000000").toString(), "1", "繝槭う繝翫せ蛟、繧呈ク帷ョ励@縺ヲ繝励Λ繧ケ縺ォ縺ェ繧九こ繝シ繧ケ縺ァ繧0K"); + + equal(new BigDecimal("100.00001").subtract(new BigDecimal(".00001"), 5).toString(), "100.00000", + "蟆乗焚驛ィ縺0縺ォ縺ェ繧九槭う繝翫せ蛟、繧呈ク帷ョ励@縺ヲ繧0K"); + equal(new BigDecimal("100.00001").subtract(new BigDecimal("100.00001"), 5).toString(), "0.00000", + "貂帷ョ励@縺ヲ0縺ォ縺ェ繧九こ繝シ繧ケ繧0K"); + equal(new BigDecimal("-100.01").subtract(new BigDecimal("-100.01"), 2).toString(), "0.00", + "繝槭う繝翫せ蛟、縺ォ繝槭う繝翫せ蛟、繧呈ク帷ョ励☆繧九こ繝シ繧ケ繧0K"); + + equal(new BigDecimal("1234567890").subtract(new BigDecimal("0.12345")).toString(), + "1234567889.87655", "險育ョ礼オ先棡縺ョ謨ー蛟、驛ィ15譯√∪縺ァ縺ェ繧碓K"); + + equal(new BigDecimal("1234567890").subtract(new BigDecimal("0.123456")).toString(), + "NaN", "險育ョ礼オ先棡縺ョ謨ー蛟、縺16譯√↑繧丑aN"); + + equal(BigDecimal.NaN.subtract(new BigDecimal("100")).toString(), "NaN", "NaN縺ォsubtract縺励※繧りィ育ョ嶺ク榊庄"); + equal(new BigDecimal("100").subtract(BigDecimal.NaN).toString(), "NaN", "謨ー蛟、縺ォNaN繧痴ubtract縺励※繧りィ育ョ嶺ク榊庄"); + + equal(new BigDecimal("aaa").subtract(new BigDecimal("100")).toString(), "NaN", "譁蟄怜励↓subtract縺励※繧りィ育ョ嶺ク榊庄"); + equal(new BigDecimal("100").subtract(new BigDecimal("zz")).toString(), "NaN", "謨ー蛟、縺ォ譁蟄怜励rsubtract險育ョ嶺ク榊庄"); + + (1).upto(99, function (n) { + var input1 = "-0." + n.pad(2), + input2 = "0." + (100 - n).pad(2); + equal(new BigDecimal(input1).subtract(new BigDecimal(input2)).toString(), "-1.00", input1 + "縺九i" + input2 + "繧貞シ輔¥縺ィ-1.00縺ォ縺ェ繧九"); + }); + + (1).upto(99, function (n) { + var input1 = "-0." + n.pad(2), + input2 = "0." + (100 - n).pad(2); + equal(new BigDecimal(input1).subtract(new BigDecimal(input2)).toString(), "-1.00", input1 + "縺九i" + input2 + "繧貞シ輔¥縺ィ-1.00縺ォ縺ェ繧九"); + }); + + (1).upto(99, function (n) { + var input1 = "-99." + n.pad(2), + input2 = "0." + (100 - n).pad(2); + equal(new BigDecimal(input1).subtract(new BigDecimal(input2)).toString(), "-100.00", input1 + "縺九i" + input2 + "繧貞シ輔¥縺ィ100.00縺ォ縺ェ繧"); + }); + + (1).upto(99, function (n) { + var input1 = "0." + n.pad(2), + input2 = "-0." + (100 - n).pad(2); + equal(new BigDecimal(input1).subtract(new BigDecimal(input2)).toString(), "1.00", + input1 + "縺九i" + input2 + "繧貞シ輔>縺ヲ1.00縺ォ縺ェ繧九%縺ィ") + }); + + (1).upto(99, function (n) { + var input1 = "99." + n.pad(2), + input2 = "-0." + (100 - n).pad(2); + equal(new BigDecimal(input1).subtract(new BigDecimal(input2)).toString(), "100.00", + input1 + "縺ィ" + input2 + "繧貞シ輔>縺ヲ100.00縺ォ縺ェ繧九%縺ィ") + }); + }); + + test("#multiply縺ョ繝繧ケ繝", function() { + equal(new BigDecimal("0").multiply("0").toString(), "0", "0 * 0 縺ッ0"); + equal(new BigDecimal("1.00").multiply(new BigDecimal("1.0")).toString(), "1.00", "蟆第焚縺ゅj縺ョ蝣エ蜷医ッ縲∵。∵焚縺悟、ァ縺阪>縺サ縺縺悟━蜈医&繧後k縲"); + equal(new BigDecimal("2.01").multiply("1.0", 1).toString(), "2.0", "繧ケ繧ア繝シ繝ォ繧呈欠螳壹@縺溷エ蜷医ッ縲√◎縺ョ繧ケ繧ア繝シ繝ォ縺ョ邨先棡縺悟セ励i繧後k縲"); + + equal(new BigDecimal("20000").multiply("5").toString(), "100000", "譯√ョ縺上j縺ゅ′繧翫b豁」縺励¥險育ョ励&繧後k縲"); + equal(new BigDecimal("1.002").multiply(new BigDecimal("5")).toString(), "5.010", "蟆乗焚驛ィ縺ョ郢ー繧贋ク翫′繧翫b豁」縺励¥險育ョ励&繧後k縲"); + + equal(new BigDecimal("2.2").multiply(new BigDecimal("5.00"), 1).toString(), "11.0", + "蟆乗焚驛ィ縺ョ郢ー繧贋ク翫′繧翫〒繧ケ繧ア繝シ繝ォ險ュ螳壹≠繧翫〒繧よュ」縺励¥險育ョ励&繧後k縲"); + equal(new BigDecimal("1.001", 3).multiply(new BigDecimal("9.009", 3), 1).toString(), "9.0", + "險育ョ怜ッセ雎。縺ョBigDecimal縺ォ繧ケ繧ア繝シ繝ォ險ュ螳壹′縺ゅ▲縺ヲ繧ゅ[ultiply譎ゅ↓謖螳壹@縺溘せ繧ア繝シ繝ォ縺悟━蜈医&繧後k"); + + equal(new BigDecimal("9999.99").multiply("-12.345").toString(), "-123449.876", "繝槭う繝翫せ蛟、繧偵°縺代◆繧峨槭う繝翫せ縺ォ縺ェ繧"); + equal(new BigDecimal("-100").multiply("-12345.12").toString(), "1234512.00", "繝槭う繝翫せ蛟、蜷悟」ォ繧偵°縺代k縺ィ繝励Λ繧ケ縺ォ謌舌k縺薙→"); + + equal(BigDecimal.NaN.multiply(new BigDecimal("100")).toString(), "NaN", "NaN縺ォmultiply縺励※繧りィ育ョ嶺ク榊庄"); + equal(new BigDecimal("100").multiply(BigDecimal.NaN).toString(), "NaN", "謨ー蛟、縺ォNaN繧知ultiply縺励※繧りィ育ョ嶺ク榊庄"); + + equal(new BigDecimal("aaa").multiply(new BigDecimal("100")).toString(), "NaN", "譁蟄怜励↓multiply縺励※繧りィ育ョ嶺ク榊庄"); + equal(new BigDecimal("100").multiply(new BigDecimal("zz")).toString(), "NaN", "謨ー蛟、縺ォ譁蟄怜励rmultiply險育ョ嶺ク榊庄"); + }); +}); \ No newline at end of file diff --git a/node_modules/nablarch-js-util-consumer/package.json b/node_modules/nablarch-js-util-consumer/package.json new file mode 100644 index 0000000..3df6388 --- /dev/null +++ b/node_modules/nablarch-js-util-consumer/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-js-util-consumer" + , "description": "JavaScript迚育ー。譏捺ア守畑繝代シ繧オ" + , "version": "1.0.0" + , "_from" : "nablarch-js-util-consumer@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-js-util-consumer/ui_public/js/nablarch/util/Consumer.js b/node_modules/nablarch-js-util-consumer/ui_public/js/nablarch/util/Consumer.js new file mode 100755 index 0000000..bbe8c0a --- /dev/null +++ b/node_modules/nablarch-js-util-consumer/ui_public/js/nablarch/util/Consumer.js @@ -0,0 +1,144 @@ +/** + * @module nablarch.util + */ +define(['sugar'], +function() { 'use strict'; + /** + * 邁。譏捺ア守畑繝代シ繧オ繝シ + * --------------------- + * + * @class nablarch.util.Consumer + * @author Iwauo Tajima + * @since 1.3 + */ + Consumer.prototype = { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * @mehtod Consumer + * @constructor + */ + constructor: Consumer + /** + * 隗」譫仙ッセ雎。譁蟄怜 + * @property source + * @type String + */ + , source: null + /** + * 迴セ蝨ィ菴咲スョ + * @property head + * @type Number + */ + , head: 0 + /** + * 繧ウ繝ウ繝繧ュ繧ケ繝亥、画焚 + * @property data + * @type Object + */ + , data: null + /** + * 迴セ蝨ィ菴咲スョ繧定オキ轤ケ縺ィ縺励※謖螳壹&繧後◆豁」隕剰。ィ迴セ縺ォ繝槭ャ繝√☆繧区枚蟄怜励r隱ュ縺ソ騾イ繧√k縲 + * @method consume + * @param {String} 繝代ち繝シ繝ウ譁蟄怜 + * @return {Array|null} 繝槭ャ繝∫オ先棡(繝槭ャ繝√↓螟ア謨励@縺溷エ蜷医ッ`null` + */ + , consume: Consumer_consume + /** + * 隗」譫仙ッセ雎。譁蟄怜励ョ邨らォッ縺ォ蛻ー驕斐@縺溘°縺ゥ縺縺九r霑斐☆縲 + * + * @method eof + * @return {Boolean} 邨らォッ縺ォ蛻ー驕斐@縺ヲ縺繧後ー`true`縲√◎縺縺ァ縺ェ縺代l縺ー`false`縲 + */ + , eof: Consumer_eof + /** + * 讒区枚繝ォ繝シ繝ォ繧定。ィ縺咎未謨ー繧"繧「繝医Α繝繧ッ縺ォ"螳溯。後☆繧九 + * + * 蠑墓焚縺ィ縺励※貂。縺輔l縺滓ァ区枚繝ォ繝シ繝ォ繧偵√%縺ョ繧ェ繝悶ず繧ァ繧ッ繝郁ェ菴薙r蠑墓焚縺ィ縺励※螳溯。後@縲 + * 縺昴ョ邨先棡縺悟⊃縺ィ縺ソ縺ェ縺帙k蛟、縺ァ縺ゅ▲縺溷エ蜷医ッ縲∬ェュ縺ソ霎シ縺ソ襍キ轤ケ繧偵Ν繝シ繝ォ螳溯。悟燕縺ョ迥カ諷九↓謌サ縺吶 + * + * 縺薙ョ髢「謨ー縺ョ謌サ繧雁、縺ィ縺励※縲∵ァ区枚繝ォ繝シ繝ォ縺ョ謌サ繧雁、繧偵◎縺ョ縺セ縺セ霑斐☆縲 + * + * @method once + * @param {Function} rule 讒区枚繝ォ繝シ繝ォ髢「謨ー + * @return {Anything} 讒区枚繝ォ繝シ繝ォ縺ョ螳溯。檎オ先棡 + */ + , once: Consumer_once + /** + * 讒区枚繝ォ繝シ繝ォ繧定。ィ縺咎未謨ー繧定、謨ー蝗槫ョ溯。後☆繧九 + * + * 蠑墓焚縺ィ縺励※貂。縺輔l縺滓ァ区枚繝ォ繝シ繝ォ繧偵√%縺ョ繧ェ繝悶ず繧ァ繧ッ繝郁ェ菴薙r蠑墓焚縺ィ縺励※螳溯。後☆繧九 + * 縺昴ョ邨先棡縺悟⊃縺ィ縺ソ縺ェ縺帙k蛟、縺ァ縺ゅ▲縺溷エ蜷医ッ縲∬ェュ縺ソ霎シ縺ソ襍キ轤ケ繧偵Ν繝シ繝ォ螳溯。悟燕縺ョ迥カ諷九↓謌サ縺励◆荳翫〒 + * `null` 繧定ソ斐☆縲 + * + * 縺昴≧縺ァ縺ェ縺蝣エ蜷医ッ縲∵ァ区枚繝ォ繝シ繝ォ縺ョ謌サ繧雁、縺悟⊃縺ィ縺ソ縺ェ縺帙k蛟、繧定ソ泌唆縺吶k縺セ縺ァ郢ー繧願ソ斐@螳溯。後☆繧九 + * 縺薙ョ髫帙∵怙蠕後↓讒区枚繝ォ繝シ繝ォ繧貞ョ溯。後☆繧狗峩蜑阪ョ菴咲スョ縺ォ襍キ轤ケ繧呈綾縺励 + * 蜷螳溯。梧凾縺ョ邨先棡縺ョ驟榊励r縺薙ョ髢「謨ー縺ョ謌サ繧雁、縺ィ縺励※霑泌唆縺吶k縲 + * (縺溘□縺励∵怙蠕後ョ邨先棡縺ッ縺薙ョ驟榊励↓蜷ォ縺セ繧後↑縺縲) + * + * @metod some + * @param {Function} rule 讒区枚繝ォ繝シ繝ォ髢「謨ー + * @return {Array|null} 讒区枚繝ォ繝シ繝ォ縺ョ蜷螳溯。檎オ先棡繧貞庶繧√◆驟榊励(蛻晏屓螳溯。後↓螟ア謨励@縺溷エ蜷医ッ`null`) + */ + , some: Consumer_some + /** + * 縺薙ョ繧ェ繝悶ず繧ァ繧ッ繝医ョ譁蟄怜苓。ィ迴セ繧定ソ泌唆縺吶k縲(繝繝舌ャ繧ー逕ィ) + * + * @method toString + * @return {String} 縺薙ョ繧ェ繝悶ず繧ァ繧ッ繝医ョ譁蟄怜苓。ィ迴セ + */ + , toString: Consumer_toString + }; + + Consumer.Error = Consumer_Error; + + function Consumer(source) { + this.source = source; + this.data = {}; + } + + function Consumer_consume(pattern) { + pattern = new RegExp('^[\\s\\S]{'+this.head+'}(\\s*(?:'+pattern+')\\s*)'); + var match = pattern.exec(this.source); + if (match) { + this.head += match[1].length; + match = [].slice.call(match, 1); + } +//console.log(pattern, !!(match), this.source.slice(this.head, this.head + 20)) + return match; + } + + function Consumer_toString() { + return 'head: ' + this.head + ' [[' + this.source.slice(this.head, this.head + 20) + ']]'; + } + + function Consumer_eof() { + return (this.head == this.source.length) && this.head++; + } + + function Consumer_once(rule) { + var savepoint = this.head + , result = rule.apply(null, [this]); + if (!result) this.head = savepoint; + return result; + } + + function Consumer_some(rule) { + var result = this.once(rule) + , results; + if (!result) return result; + results = [result]; + while (result = this.once(rule)) { + results.push(result); + } + return results; + } + + function Consumer_Error(c, rule) { + this.name = 'Consumer.Error'; + this.message = rule.name; + } + Consumer_Error.prototype = new Error(); + + return Consumer; +}); + diff --git a/node_modules/nablarch-js-util-date/package.json b/node_modules/nablarch-js-util-date/package.json new file mode 100644 index 0000000..1518cbe --- /dev/null +++ b/node_modules/nablarch-js-util-date/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-js-util-date" + , "description": "JavaScript迚域律莉倥Θ繝シ繝繧」繝ェ繝繧」" + , "version": "1.0.0" + , "_from" : "nablarch-js-util-date@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-js-util-date/ui_public/js/nablarch/util/DateUtil.js b/node_modules/nablarch-js-util-date/ui_public/js/nablarch/util/DateUtil.js new file mode 100644 index 0000000..cb03fad --- /dev/null +++ b/node_modules/nablarch-js-util-date/ui_public/js/nablarch/util/DateUtil.js @@ -0,0 +1,49 @@ +/** + * @module nablarch.util + */ +define(["./SimpleDateFormat", "sugar"], function(SimpleDateFormat) { "use strict"; + /** + * 譌・莉倬未騾」繝ヲ繝シ繝繧」繝ェ繝繧」髢「謨ー + * --------------------------- + * + * 譛ャ繝「繧ク繝・繝シ繝ォ縺ァ縺ッ譌・莉倥ョ譁蟄怜苓。ィ迴セ縺ィ譌・莉倥ョ繝シ繧ソ蝙(Date)縺ィ縺ョ髢薙ョ蟇セ蠢懊r螳夂セゥ縺吶k + * 髢「謨ー繧呈署萓帙☆繧九 + * + * 繝輔か繝シ繝槭ャ繝亥ョ夂セゥ縺ッJava縺ョ讓呎コ悶Λ繧、繝悶Λ繝ェ縺ァ縺ゅkSimpleDateFormat縺ォ豐ソ縺」縺滓嶌蠑上〒謖螳壹☆繧九 + * + * @class nablarch.util.DateUtil + * @author Iwauo Tajima + * @since 1.2 + */ + return { + /** + * 譌・莉倥ョ譁蟄怜苓。ィ迴セ繧呈律莉伜梛縺ォ螟画鋤縺吶k縲 + * + * @method parse + * @param dateStr {String} 譌・莉倥ョ譁蟄怜苓。ィ迴セ + * @param format {String} 譌・莉倥ョ繝輔か繝シ繝槭ャ繝亥ョ夂セゥ + * @return {Date} 譌・莉倥ョ繝シ繧ソ蝙 + */ + parse: DateUtil_parse + /** + * 荳弱∴繧峨l縺滓律莉倥ョ譁蟄怜苓。ィ迴セ繧貞叙蠕励☆繧九 + * + * @method format + * @param date {Date} 譌・莉倥ョ繝繝シ繧ソ蝙 + * @param format {String} 譌・莉倥ョ繝輔か繝シ繝槭ャ繝亥ョ夂セゥ + * @return {String} 譌・莉倥ョ譁蟄怜苓。ィ迴セ + */ + , format: DateUtil_format + }; + + + function DateUtil_parse(dateStr, format) { + return new SimpleDateFormat(format).parse(dateStr); + } + + function DateUtil_format(date, format, locale) { + return new SimpleDateFormat(format).format(date, locale); + } + +}); + diff --git a/node_modules/nablarch-js-util-date/ui_public/js/nablarch/util/SimpleDateFormat.js b/node_modules/nablarch-js-util-date/ui_public/js/nablarch/util/SimpleDateFormat.js new file mode 100644 index 0000000..56ddeba --- /dev/null +++ b/node_modules/nablarch-js-util-date/ui_public/js/nablarch/util/SimpleDateFormat.js @@ -0,0 +1,293 @@ +/** + * @module nablarch.util + */ +define(["sugar"], function() { "use strict"; + + function define() { + return SimpleDateFormat; + } + + /** + * Java SDK SimpleDateFormat 繧ッ繝ゥ繧ケ莠呈鋤繝ゥ繧、繝悶Λ繝ェ + * --------------------------------------------------------- + * 譛ャ繧ッ繝ゥ繧ケ縺ァ縺ッSimpleDateFormat縺ョ莉墓ァ倥ョ縺縺。縲∵律莉倥↓髢「縺吶k蜃ヲ逅縺ョ繧オ繝悶そ繝繝医r螳溯」縺吶k縲 + * 繧オ繝昴シ繝医☆繧九ヵ繧ゥ繝シ繝槭ャ繝域嶌蠑上ッ莉・荳九ョ騾壹j縲 + * + * yyyy: 隘ソ證ヲ蟷エ(4譯) + * yy : 隘ソ證ヲ蟷エ(荳2譯) * 繝代シ繧ケ譎ゅッ迴セ蝨ィ繧定オキ轤ケ縺ィ縺励※驕主悉80蟷エス20蟷エ蠕後↓蜿弱∪繧区律莉倥↓縺ェ繧九 + * M : 譛 (1ス2譯) + * MM : 譛 (2譯) + * MMM : 譛 (繝繧ュ繧ケ繝) * 繝輔か繝シ繝槭ャ繝域凾縺ョ縺ソ + * d : 譌・ (1ス2譯) + * dd : 譌・ (2譯) + * EEEE: 譖懈律 (繝繧ュ繧ケ繝) * 繝輔か繝シ繝槭ャ繝域凾縺ョ縺ソ縲√Ο繧ア繝シ繝ォ蟇セ蠢 + * E : 譖懈律逡・蜿キ (繝繧ュ繧ケ繝) * 繝輔か繝シ繝槭ャ繝域凾縺ョ縺ソ縲√Ο繧ア繝シ繝ォ蟇セ蠢 + * '' : 繧キ繝ウ繧ー繝ォ繧ッ繧ゥ繝シ繝 + * [a-zA-Z']莉・螟悶ョ譁蟄 : 繝ェ繝繝ゥ繝ォ + * '縺ォ繧医k繧ッ繧ゥ繝シ繝域枚蟄怜 : 繝ェ繝繝ゥ繝ォ + * + * @class nablarch.util.SimpleDateFormat + * @author Iwauo Tajima + * @since 1.2 + */ + SimpleDateFormat.prototype = { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ + * @method SimpleDateFormat + * @constructor + * @param {String} pattern 繝輔か繝シ繝槭ャ繝域枚蟄怜 + * @return {SimpleDateFormat} 繧、繝ウ繧ケ繧ソ繝ウ繧ケ + */ + constructor: SimpleDateFormat + /** + * 繝輔か繝シ繝槭ャ繝域枚蟄怜 + * @property pattern + * @type String + */ + , pattern: null + /** + * 譌・莉倥が繝悶ず繧ァ繧ッ繝医r譁蟄怜苓。ィ迴セ縺ォ螟画鋤縺吶k縲 + * @method format + * @param {String} date 譌・莉倥が繝悶ず繧ァ繧ッ繝 + * @param {String} locale = 'ja' 繝ュ繧ア繝シ繝ォ + * @return {String} 譌・莉倥が繝悶ず繧ァ繧ッ繝医ョ譁蟄怜苓。ィ迴セ + */ + , format: SimpleDateFormat_format + /** + * 譌・莉俶枚蟄怜励r`Date`繧ェ繝悶ず繧ァ繧ッ繝医↓螟画鋤縺吶k縲 + * 螟画鋤縺ァ縺阪↑縺蝣エ蜷null繧定ソ泌唆縺吶k縲 + * + * @method parse + * @param {String} dateStr 譌・莉俶枚蟄怜 + * @returns {Date} 譌・莉倥が繝悶ず繧ァ繧ッ繝 + */ + , parse: SimpleDateFormat_parse + /** + * 繝輔か繝シ繝槭ャ繝域枚蟄怜励r繝代シ繧ケ縺励∝ッセ蠢懊☆繧九い繧ッ繧キ繝ァ繝ウ繧貞ョ溯。後☆繧九 + * @method eval + * @param {Object} action 螳溯。後☆繧九い繧ッ繧キ繝ァ繝ウ + */ + , eval: SimpleDateFormat_eval + }; + + function SimpleDateFormat(pattern) { + this.pattern = pattern; + } + + function SimpleDateFormat_parse(dateStr) { + var date = new Date(1970, 1, 1) + , c = new Consumer(dateStr) + , valid = true; + this.eval({ + letters: consumeLetters + , text : consumeText + }); + return valid ? date : null; + + //--- subroutines ---// + + /** 譌・莉俶嶌蠑乗枚蟄怜励r隱ュ縺ソ霎シ繧 */ + function consumeLetters(letters) { + var m; + switch (letters) { + case "yyyy": + (m = c.consume(/^\d{1,4}/)) && date.setFullYear(Number(m[0])); + break; + + case "yy": + (m = c.consume(/^\d{1,4}/)) && setYear(date, Number(m[0])); + break; + + case "M": case "MM": + (m = c.consume(/^\d{1,2}/)) && date.setMonth(Number(m[0]) -1); + break; + + case "d": case "dd": + (m = c.consume(/^\d{1,2}/)) && date.setDate(Number(m[0])); + break; + + default: + m = null; + } + if (!m) { + valid = false; + return false; + } + } + + /** 繝ェ繝繝ゥ繝ォ譁蟄怜励r隱ュ縺ソ霎シ繧 */ + function consumeText(text) { + return c.consume("^" + RegExp.escape(text)); + } + + /** 2譯∬。ィ險倥ョ蟷エ繧定ィュ螳壹☆繧九(險ュ螳壼ケエ縺ッ迴セ蝨ィ縺九i80蟷エ蜑搾ス20蟷エ蠕後ョ遽蝗イ縺ォ蜿弱a繧) */ + function setYear(date, yy) { + var currentCentury, year; + + if (yy.length > 2) { + date.setFullYear(Number(yy)); + return; + } + + currentCentury = new Date().getFullYear().toString().first(2); + year = Date.create(currentCentury + ("0" + yy).last(2)); + + year = year.isAfter("20 years after") ? year.rewind("100 years") + : year.isBefore("80 yeas before") ? year.advance("100 years") + : year; + + date.setFullYear(year.getFullYear()); + } + } + + function SimpleDateFormat_format(date, locale) { + var buff = [] + , valid = null; + locale = locale || "ja"; + + if (!date || !Object.isDate(date)) { + return ""; + } + + valid = this.eval({ + letters : consumeLetters + , text : consumeText + }); + return valid ? buff.join("") : ""; + + //--- subroutines ---// + /** 譌・莉俶嶌蠑乗枚蟄励r隱ュ縺ソ霎シ繧 */ + function consumeLetters(letters) { + switch (letters) { + case "yyyy": buff.push(("000" + date.getFullYear()).last(4)); break; + case "yy" : buff.push(date.getFullYear().toString().last(2)); break; + case "M" : buff.push(date.getMonth()+1); break; + case "MM" : buff.push(("0" + (date.getMonth()+1)).last(2)); break; + case "MMM" : buff.push(date.format("{Mon}", locale)); break; + case "d" : buff.push(date.getDate()); break; + case "dd" : buff.push(("0" + date.getDate()).last(2)); break; + case "EEEE": buff.push(date.format("{Weekday}", locale)); break; + case "E" : buff.push(date.format("{Dow}", locale)); break; + default:; + } + } + /** 繝ェ繝繝ゥ繝ォ譁蟄励r隱ュ縺ソ霎シ繧 */ + function consumeText(text) { + buff.push(text); + } + } + + function SimpleDateFormat_eval(action) { + var c = new Consumer(this.pattern); + action = action || {}; + var result = c.some(token); + return result; + + function token(c) { + return c.consume(letters, action.letters) + || c.consume(text, action.text); + } + + function letters(c) { + return c.consume(/^([a-zA-Z])\1*/); + } + + function text(c) { + return c.consume(quotedText) + || c.consume(unquotedText); + } + + function quotedText(c) { + return c.consume(/^'([^']|'')+'/); + } + + function unquotedText(c) { + return c.consume(/^[^a-zA-Z']+/); + } + } + + /** + * 邁。譏薙せ繧ュ繝」繝 + */ + Consumer.prototype = { + // properties + source : null + , pos : null + , action : null + // methods + , some : Consumer_some + , consume : Consumer_consume + , ended : function() { return (this.pos > this.source.length); } + }; + + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ + * @param source 蜈・蜉帶枚蟄怜 + * @param actions 螳溯。後☆繧九い繧ッ繧キ繝ァ繝ウ + * @returns {Consumer} 繧、繝ウ繧ケ繧ソ繝ウ繧ケ + */ + function Consumer(source) { + this.source = source; + this.pos = 0; // 谺。蝗櫁ェュ縺ソ蜃コ縺鈴幕蟋倶ス咲スョ + } + + /** + * 謖螳壹&繧後◆豁」隕剰。ィ迴セ縲√b縺励¥縺ッ繝ォ繝シ繝ォ繧定ェュ縺ソ霎シ繧 + * @param pattern {RegExp} 隱ュ縺ソ霎シ繧繝代ち繝シ繝ウ + * @param pattern {String} 隱ュ縺ソ霎シ繧繝代ち繝シ繝ウ + * @param pattern {Function} 隱ュ縺ソ霎シ繧繝ォ繝シ繝ォ + */ + function Consumer_consume(pattern, action) { + var self = this + , head = this.pos + , m = null; + + m = Object.isRegExp(pattern) ? consumePattern(pattern) + : Object.isString(pattern) ? consumePattern(new RegExp(pattern)) + : Object.isFunction(pattern) ? consumeFunction(pattern) + : null; + + if (!m) { + this.pos = head; + } + + if (m && action && Object.isFunction(action)) { + if (action.apply(self, m) === false) { + return null; + } + } + return m; + + //--- subroutines ---// + /** 繝代ち繝シ繝ウ繧定ェュ縺ソ霎シ繧 */ + function consumePattern(regex) { + var m = regex.exec(self.source.substring(self.pos)); + if (m) { + self.pos += m[0].length; + } + return m; + } + + /** 繝ォ繝シ繝ォ繧定ェュ縺ソ霎シ繧 */ + function consumeFunction(func) { + return func.call(null, self); + } + } + + /** + * 謖螳壹&繧後◆繝ォ繝シ繝ォ繧1蝗樔サ・荳願ェュ縺ソ霎シ繧縲 + * @param func {Function} 繝ォ繝シ繝ォ + */ + function Consumer_some(func) { + var m = this.consume(func) + , result = m; + + while (m && !this.ended()) { + m = this.consume(func); + } + return result; + } + + return define(); +}); + diff --git a/node_modules/nablarch-js-util-date/ui_test/js/nablarch/util/SimpleDateFormatTest.js b/node_modules/nablarch-js-util-date/ui_test/js/nablarch/util/SimpleDateFormatTest.js new file mode 100644 index 0000000..723222e --- /dev/null +++ b/node_modules/nablarch-js-util-date/ui_test/js/nablarch/util/SimpleDateFormatTest.js @@ -0,0 +1,107 @@ +require(["nablarch/util/SimpleDateFormat", "sugar"], +function(SimpleDateFormat) { + + module("nablarch/util/SimpleDateFormat"); + + test("#SimpleDateFormat.prototype.format 縺ョ繝繧ケ繝", function() { + var format, locale, testTable; + + function testFormat() { + testTable.each(function(data) { + var date = Date.create(data[0]) + , expected = data[1] + , comment = data[2] || ""; + equal(new SimpleDateFormat(format).format(date, locale), expected, comment); + }); + } + + format = "yyyy蟷エMM譛dd譌・"; + locale = "ja"; + testTable = [ + ["2012-12-21", "2012蟷エ12譛21譌・", "yyyy蟷エMM譛dd譌・:繝輔Ν譯(4譯/2譯/2譯)縺ョ陦ィ遉コ"] + , ["2012-4-21", "2012蟷エ04譛21譌・", "yyyy蟷エMM譛dd譌・:譛医′1譯≫0縺ァpad縺励※2譯"] + , ["2012-12-2", "2012蟷エ12譛02譌・", "yyyy蟷エMM譛dd譌・:譌・縺1譯≫0縺ァpad縺励※2譯"] + , ["0212-12-21", "0212蟷エ12譛21譌・", "yyyy蟷エMM譛dd譌・:蟷エ縺3譯≫0縺ァpad縺励※4譯"] + , ["0012-12-21", "0012蟷エ12譛21譌・", "yyyy蟷エMM譛dd譌・:蟷エ縺2譯≫0縺ァpad縺励※4譯"] + , ["0002-12-21", "0002蟷エ12譛21譌・", "yyyy蟷エMM譛dd譌・:蟷エ縺1譯≫0縺ァpad縺励※4譯"] + ]; + testFormat(); + + format = "yy蟷エM譛d譌・"; + locale = "ja"; + testTable = [ + ["2012-12-21", "12蟷エ12譛21譌・", "yy蟷エM譛d譌・:蟷エ縺4譯≫剃ク2譯√〒縺阪k"] + , ["2012-4-21", "12蟷エ4譛21譌・", "yy蟷エM譛d譌・:譛医′1譯≫偵◎縺ョ縺セ縺セ"] + , ["2012-12-2", "12蟷エ12譛2譌・", "yy蟷エM譛d譌・:譌・縺1譯≫偵◎縺ョ縺セ縺セ"] + , ["0212-12-21", "12蟷エ12譛21譌・", "yy蟷エM譛d譌・:蟷エ縺3譯≫剃ク2譯√〒縺阪k"] + , ["0098-12-21", "98蟷エ12譛21譌・", "yy蟷エM譛d譌・:蟷エ縺2譯≫偵◎縺ョ縺セ縺セ"] + , ["0004-12-21", "4蟷エ12譛21譌・", "yy蟷エM譛d譌・:蟷エ縺1譯≫偵◎縺ョ縺セ縺セ"] + ]; + testFormat(); + + format = "E MMM d, yyyy"; + locale = "en"; + testTable = [ + ["2012-11-1", "Thu Nov 1, 2012", "E MMM d, yyyy:闍ア隱槭Ο繧ア繝シ繝ォ譎ゅョ譖懈律繝サ譛郁。ィ遉コ"] + ]; + testFormat(); + + + format = "yy蟷エMMMd譌・ (EEEE)"; + locale = "ja"; + testTable = [ + ["2012-11-1", "12蟷エ11譛1譌・ (譛ィ譖懈律)", "yy蟷エMMMd譌・ (E):譌・譛ャ隱槭Ο繧ア繝シ繝ォ譎ゅョ譖懈律繝サ譛郁。ィ遉コ"] + ]; + testFormat(); + }); + + test("#SimpleDateFormat.prototype.parse 縺ョ繝繧ケ繝", function() { + var format, locale, testTable; + + function testParse() { + testTable.each(function(data) { + var dateStr = data[0] + , expected = Date.create(data[1]) + , comment = data[2] || ""; + + equal( + new SimpleDateFormat(format).parse(dateStr).format() + , expected.format() + , comment + ); + + }); + } + + format = "yyyy蟷エMM譛dd譌・"; + testTable = [ + ["2012蟷エ12譛21譌・", "2012-12-21", "yyyy蟷エMM譛dd譌・:繝輔Ν譯∝・蜉"] + , ["2012蟷エ4譛21譌・", "2012-4-21", "yyyy蟷エMM譛dd譌・:譛1譯"] + , ["2012蟷エ04譛21譌・", "2012-4-21", "yyyy蟷エMM譛dd譌・:譛0蝓九a2譯"] + , ["2012蟷エ12譛02譌・", "2012-12-2", "yyyy蟷エMM譛dd譌・:譌・0蝓九a2譯"] + , ["0212蟷エ12譛21譌・", "0212-12-21", "yyyy蟷エMM譛dd譌・:蟷エ縺3譯≫偵◎縺ョ縺セ縺セ"] + , ["0012蟷エ12譛21譌・", "0012-12-21", "yyyy蟷エMM譛dd譌・:蟷エ縺2譯≫偵◎縺ョ縺セ縺セ"] + , ["0002蟷エ12譛21譌・", "0002-12-21", "yyyy蟷エMM譛dd譌・:蟷エ縺1譯≫偵◎縺ョ縺セ縺セ"] + ]; + testParse(); + + format = "yy/M/d"; + testTable = [ + ["2012/12/21", "2012-12-21", "yy/M/d:繝輔Ν譯∝・蜉"] + , ["2012/4/21", "2012-4-21", "yy/M/d:譛1譯"] + , ["2012/04/21", "2012-4-21", "yy/M/d:譛0蝓九a2譯"] + , ["2012/12/02", "2012-12-2", "yy/M/d:譌・0蝓九a2譯"] + , ["0212/12/21", "2012-12-21", "212蟷エ竊剃ク2譯∽ク閾エ縺ァ驕主悉80蟷エス樊悴譚・20蟷エ縺ョ髢薙ョ蟷エ=2012"] + , ["0012/12/21", "2012-12-21", "12蟷エ竊剃ク2譯∽ク閾エ縺ァ驕主悉80蟷エス樊悴譚・20蟷エ縺ョ髢薙ョ蟷エ=2012"] + , ["0002/12/21", "2002-12-21", "2蟷エ竊剃ク2譯∽ク閾エ縺ァ驕主悉80蟷エス樊悴譚・20蟷エ縺ョ髢薙ョ蟷エ=2002"] + , ["5098/12/21", "1998-12-21", "5098蟷エ竊剃ク2譯∽ク閾エ縺ァ驕主悉80蟷エス樊悴譚・20蟷エ縺ョ髢薙ョ蟷エ=1998"] + , ["1920/12/21", "2020-12-21", "1920蟷エ竊剃ク2譯∽ク閾エ縺ァ驕主悉80蟷エス樊悴譚・20蟷エ縺ョ髢薙ョ蟷エ=2020"] + ]; + testParse(); + + ok( + new SimpleDateFormat("yy/M/d").parse("hoge") === null + , "繝輔か繝シ繝槭ャ繝医お繝ゥ繝シ譎ゅッnull繧定ソ泌唆縺吶k" + ); + }); +}); \ No newline at end of file diff --git a/node_modules/nablarch-template-app_aside/package.json b/node_modules/nablarch-template-app_aside/package.json new file mode 100644 index 0000000..23b3984 --- /dev/null +++ b/node_modules/nablarch-template-app_aside/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-template-app_aside" + , "description": "繧オ繧、繝峨ヰ繝シ鬆伜沺" + , "version": "1.0.0" + , "_from" : "nablarch-template-app_aside@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-template-app_aside/ui_public/css/template/aside-compact.less b/node_modules/nablarch-template-app_aside/ui_public/css/template/aside-compact.less new file mode 100644 index 0000000..f6e3266 --- /dev/null +++ b/node_modules/nablarch-template-app_aside/ui_public/css/template/aside-compact.less @@ -0,0 +1,20 @@ +/** + * comapct繝「繝シ繝峨ョ繝ャ繧、繧「繧ヲ繝 + */ +#aside { + width : 100%; + overflow : hidden; + + ul { + width: 100%; + margin: 0 auto; + text-align: center; + li { + display: inline-block; + a { + display : block; + padding : 5px 10px; + } + } + } +} \ No newline at end of file diff --git a/node_modules/nablarch-template-app_aside/ui_public/css/template/aside-multicol.less b/node_modules/nablarch-template-app_aside/ui_public/css/template/aside-multicol.less new file mode 100644 index 0000000..bc80e03 --- /dev/null +++ b/node_modules/nablarch-template-app_aside/ui_public/css/template/aside-multicol.less @@ -0,0 +1,18 @@ +/** + * wide繝「繝シ繝峨ョ繝ャ繧、繧「繧ヲ繝 + */ +#aside { + .grid-col(16); + min-height: 350px; + padding-top: 15px; + li a { + display : block; + width : 100%; + padding : 5px 10px; + } +} + +// 繝。繝九Η繝シ縺後↑縺蝣エ蜷医ョ鬆伜沺縺ョ螳夂セゥ +#aside.noMenu { + .grid-col(8); +} diff --git a/node_modules/nablarch-template-app_aside/ui_public/css/template/aside-narrow.less b/node_modules/nablarch-template-app_aside/ui_public/css/template/aside-narrow.less new file mode 100644 index 0000000..0e88f2b --- /dev/null +++ b/node_modules/nablarch-template-app_aside/ui_public/css/template/aside-narrow.less @@ -0,0 +1,21 @@ +/** + * narrow繝「繝シ繝峨ョ繝ャ繧、繧「繧ヲ繝 + */ +#aside { + width : 100%; + min-width: 320px; + overflow : hidden; + + ul { + width: 100%; + margin: 0 auto; + text-align: center; + li { + display: inline-block; + a { + display : block; + padding : 5px 10px; + } + } + } +} \ No newline at end of file diff --git a/node_modules/nablarch-template-app_aside/ui_public/css/template/aside-wide.less b/node_modules/nablarch-template-app_aside/ui_public/css/template/aside-wide.less new file mode 100644 index 0000000..0820128 --- /dev/null +++ b/node_modules/nablarch-template-app_aside/ui_public/css/template/aside-wide.less @@ -0,0 +1,18 @@ +/** + * wide繝「繝シ繝峨ョ繝ャ繧、繧「繧ヲ繝 + */ +#aside { + .grid-col(6); + min-height: 350px; + padding-top: 15px; + li a { + display : block; + width : 100%; + padding : 5px 10px; + } +} + +// 繝。繝九Η繝シ縺後↑縺蝣エ蜷医ョ鬆伜沺縺ョ螳夂セゥ +#aside.noMenu { + .grid-col(3); +} diff --git a/node_modules/nablarch-template-app_aside/ui_public/css/template/aside.less b/node_modules/nablarch-template-app_aside/ui_public/css/template/aside.less new file mode 100644 index 0000000..54e473e --- /dev/null +++ b/node_modules/nablarch-template-app_aside/ui_public/css/template/aside.less @@ -0,0 +1,50 @@ +#aside { + .box-shadow(4px, 2px, 3px, #ddd); + + ul { + list-style : none outside none; + margin: 0; + } + + .menu_folder { + display:none; + } + + h3.menu_folder { + margin-left : 8px; + } + + h3.sub_folder { + margin-left : 14px; + } + + li { + a, i { + color : @mainColor1; + } + i { + display: inline-block; + width: 20px; + } + } + + h3:hover { + cursor : pointer; + } + + li.hover:hover, li.current { + background-color : @mainColor1; + a, i { + color : @baseColor; + } + } + + a { + text-decoration: none !important; + text-decoration: underline; // affects ie6 only. + } +} + +#aside.noMenu { + .box-shadow(0, 0, 0, #fff); +} \ No newline at end of file diff --git a/node_modules/nablarch-template-app_aside/ui_public/include/app_aside.jsp b/node_modules/nablarch-template-app_aside/ui_public/include/app_aside.jsp new file mode 100644 index 0000000..6e4f0ac --- /dev/null +++ b/node_modules/nablarch-template-app_aside/ui_public/include/app_aside.jsp @@ -0,0 +1,65 @@ +<%@ page language="java" pageEncoding="UTF-8" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> + + +<%-- + TreeMenu繧貞茜逕ィ縺励◆sample縺ョ螳溯」縲 + plugin縺ァ縺ッ驕キ遘サ蜈医↑縺ゥ縺後↑縺縺ョ縺ァuri縺ッalert陦ィ遉コ縺ォ縺吶k縲 +--%> +
+ + + + + + +<%-- 螟壽ョオ髫主ア、縺ョ繝。繝九Η繝シ --%> + + + + + + + + + +
+
diff --git a/node_modules/nablarch-template-app_aside/ui_public/js/nablarch/ui/TreeMenu.js b/node_modules/nablarch-template-app_aside/ui_public/js/nablarch/ui/TreeMenu.js new file mode 100644 index 0000000..b46b43c --- /dev/null +++ b/node_modules/nablarch-template-app_aside/ui_public/js/nablarch/ui/TreeMenu.js @@ -0,0 +1,182 @@ +define([ + "jquery" // jQuery繝ゥ繧、繝悶Λ繝ェ +, "global" // 繧ー繝ュ繝シ繝舌Ν(Window)繧ェ繝悶ず繧ァ繧ッ繝 +, "./Widget" // Widget蝓コ蠎輔け繝ゥ繧ケ +, "./Collapsible" // 髢矩哩讖溯ス +, "sugar" // sugar.js 繝ゥ繧、繝悶Λ繝ェ +], +function($, global, Widget, Collapsible) { "use strict"; + + /** + * 髫主ア、陦ィ遉コ繝。繝九Η繝シ(髢矩哩蜿ッ閭ス) + * ================================== + * 縺薙ョ繧ヲ繧」繧ク繧ァ繝繝医ッ縲髢矩哩蜿ッ閭ス縺ェ髫主ア、陦ィ遉コ讖溯ス繧呈署萓帙☆繧九 + * + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * --------------------- + * 髫主ア、繧呈戟縺、繝。繝九Η繝シ繝ェ繧ケ繝医ョ鬆伜沺繧貞峇繧隕∫エ縺ォ **nablarch_TreeMenu** 繧呈欠螳壹@縲 + * -name 縺ォ繝。繝九Η繝シ逕ィ縺ョform縺ョ蜷榊燕繧定ィュ螳壹☆繧(繝ェ繧ッ繧ィ繧ケ繝医r霍ィ縺縺髢矩哩迥カ諷九ョ邯ュ謖√ョ縺溘a) + * + * 髢矩哩繧定。後≧繧ソ繧、繝医Ν縺ィ縺ェ繧玖ヲ∫エ縺ォ縺ッ **menu_title** 繧呈欠螳壹@縲(d螻樊ァ縺ォ荳諢上ョ蛟、繧定ィュ螳壹☆繧九 + * id螻樊ァ縺ョ蛟、縺ッ蠕瑚ソー縺吶k繝輔か繝ォ繝繝シ逕ィ縺ョ隕∫エ繧堤エ蝉サ倥¢繧九◆繧√↓謖螳壹′蠢鬆医〒縺ゅk縲 + * + * 繝。繝九Η繝シ縺ョ繝ェ繝ウ繧ッ隕∫エ縺ェ縺ゥ繧貞崋繧√k繝輔か繝ォ繝繝シ逕ィ縺ョ隕∫エ縺ォ縺ッ **menu_folder** 繧呈欠螳壹☆繧九 + * 蜑崎ソー縺励◆繧ソ繧、繝医Ν逕ィ縺ョid螻樊ァ縺ョ蛟、繧**-title** 縺ョ逶エ蠕後↓謖螳壹☆繧九%縺ィ縺ァ繧ソ繧、繝医Ν縺ィ縺ョ邏蝉サ倥¢縺悟庄閭ス縺ィ縺ェ繧九 + * + * **menu_folder** 縺ァ縺ェ縺 **menu_title**縺ョ髢矩哩迥カ諷九ッ譛荳贋ス阪ョtitle縺励※蟶ク縺ォ陦ィ遉コ縺輔l繧九′縲 + * 譛荳贋ス阪ョtitle縺ョ髢矩哩縺悟、画峩縺輔l縺溷エ蜷医∽サ悶ョ譛荳贋ス阪ち繧、繝医Ν縺ッ髢峨§繧九 + * + * + * 1縺、縺ョ隕∫エ縺ォ繧ソ繧、繝医Ν縺ョ讖溯ス縺ィ繝輔か繝ォ繝縺ョ讖溯ス繧呈戟縺溘○繧九%縺ィ縺悟庄閭ス縺ァ縺ゅk縲 + * 莉・荳九↓髫主ア、縺輔○縺溷エ蜷医ョ繝槭シ繧ッ繧「繝繝励r遉コ縺吶 + * + *

menu

+ * + * + *
+ * + * @class nablarch.ui.TreeMenu + * + * @author tani takanori + * @since 1.3 + */ + TreeMenu.prototype = Object.merge(new Widget, { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー縲 + * + * @method TreeMenu + * @constructor + * @param {HTMLElement} element 繝。繝九Η繝シ縺ョ鬆伜沺 + * @param {Object} [opts] 莉・荳九ョ繧ェ繝励す繝ァ繝ウ繧剃ソ晄戟縺吶k繧ェ繝悶ず繧ァ繧ッ繝 + * **name:** (String) 繝。繝九Η繝シ鬆伜沺縺後≠繧鞠orm縺ョname螻樊ァ + */ + constructor:TreeMenu + /** + * 髢矩哩縺輔l繧九Γ繝九Η繝シ繧呈戟縺、隕∫エ縲 + * + * @property $folders + * @type jQuery + */ + , $folders:null + /** + * 髢矩哩縺吶k繧ソ繧、繝医Ν縺ョ隕∫エ縲 + * + * @property $titles + * @type jQuery + */ + , $titles:null + /** + * 髢矩哩迥カ諷九r菫晏ュ倥☆繧九◆繧√ョform縺ョ蜷榊燕縲 + * + * @property name + * @type String + */ + , name : null + /** + * 蠢縺夊。ィ遉コ縺輔l繧九Γ繝九Η繝シ縺ョ譛荳贋ス埼嚴螻、縲 + * + * @property $tops + * @jQuery + */ + , $tops : null + /** + * 譛荳贋ス阪ョ繧ソ繧、繝医Ν縺ョ髢矩哩繧定。後≧繝。繧ス繝繝峨 + * + * @method toggle + */ + , toggle : TreeMenu_toggle + /** + * 繝輔か繝シ繝隕∫エ縺ォ菫晄戟縺励◆髢矩哩迥カ諷九r陦ィ遉コ縺ォ蜿肴丐縺輔○繧九 + * + * @method render + */ + , render : TreeMenu_render + }); + + TreeMenu.widgetType = "nablarch_TreeMenu"; + + TreeMenu.event = { + ".menu_title click" : "toggle" + }; + + Widget.register(TreeMenu); + + function TreeMenu(element, option) { + var $area = $(element); + this.$titles = $area.find('.menu_title'); + this.$tops = this.$titles.filter(':not(.menu_folder)'); + this.$folders = $area.find('.menu_folder'); + this.name = option.name; + this.constructor = TreeMenu; + Widget.call(this, element); + this.render(); + } + + function TreeMenu_render() { + this.$titles.map(attachCollapsible(this)).each(saveFormInfo); + function saveFormInfo() { + if(!this.isClosed()) { + this.revertState(); + this.changeState(); + } + } + } + + function TreeMenu_toggle(event, $target) { + var $toggle = $(event.currentTarget) + , titleId = rootId($toggle); + this.$tops.filter(":not(#" + titleId +")") + .map(attachCollapsible(this)) + .each(function() { this.close(event);}); + function rootId($toggle) { + var $root = $toggle + , id = $root.widgetOption().title; + while($root.is('.menu_folder')) { + $root = $('#' + id); + id = $root.widgetOption().title; + } + return $root.attr('id'); + } + } + + function attachCollapsible(self) { + var formName = self.name + , $folders = self.$folders; + return function(){ + var $title = $(this) + , id = $title.attr('id') + , contents = $title.map(collect); + return $title.widget(Collapsible, { + value : id, + name : formName, + content : contents, + icon : "", + closed : true + }); + }; + function collect() { + var $title = $(this) + , contents = $folders.filter('.-title.' + $title.attr('id')) + , sub_contents = contents.filter('.menu_title').map(collect); + contents = contents.length > 0 ? asArray(contents) :[]; + if (sub_contents.length > 0) { + contents.add(asArray(sub_contents)); + } + return contents.length > 0 ? contents : undefined; + + function asArray($contents) { + return Array.prototype.slice.call($contents); + } + } + } + + return TreeMenu; +}); diff --git "a/node_modules/nablarch-template-app_aside/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\204\343\203\252\343\203\274\343\203\241\343\203\213\343\203\245\343\203\274.jsp" "b/node_modules/nablarch-template-app_aside/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\204\343\203\252\343\203\274\343\203\241\343\203\213\343\203\245\343\203\274.jsp" new file mode 100644 index 0000000..a4d7da7 --- /dev/null +++ "b/node_modules/nablarch-template-app_aside/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\204\343\203\252\343\203\274\343\203\241\343\203\213\343\203\245\343\203\274.jsp" @@ -0,0 +1,123 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + #content ul.menu_title, #content ul.menu_folder { + float:left; + list-style-type:none; + } + #content span.menu_title { + width : 100%; + float:left; + color : #DE9932 + } + #content li.margin { + margin-bottom : 0.5em; + } + #content .menu_folder { + display:none; + } + #content .menu_title:hover, menu_folder:hover { + cursor : pointer; + } + #content li span.menu_title { + margin-top : 20px; + width : 100%; + } + #content .second_line { + margin-left : 30px; + } + #content .third_line { + margin-left : 50px; + } + #content .firth_line { + margin-left : 70px; + } + #content ul { + bottom : 5px; + margin-top:0; + margin-bottom:0; + width:100%; + } + + + + 繝。繝九Η繝シ縺ョ繧ソ繧、繝医Ν繧呈款荳九@縺溷エ蜷医髢矩哩迥カ諷九′螟画峩縺輔l繧九%縺ィ縲 + +
+ + + 繝繧ケ繝医Γ繝九Η繝シ 1 (5 children) + <%-- 2髫主ア、逶ョ --%> + + 繝繧ケ繝医Γ繝九Η繝シ 1-4(1 child) + <%-- 3髫主ア、逶ョ --%> + + 繝繧ケ繝医Γ繝九Η繝シ 1-5(7 children) + + 繝繧ケ繝医Γ繝九Η繝シ 1-5-4(2 children) + + +
+
+ + + + + + + + + + + +
+
+
diff --git "a/node_modules/nablarch-template-app_aside/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\204\343\203\252\343\203\274\343\203\241\343\203\213\343\203\245\343\203\274_\347\242\272\350\252\215.jsp" "b/node_modules/nablarch-template-app_aside/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\204\343\203\252\343\203\274\343\203\241\343\203\213\343\203\245\343\203\274_\347\242\272\350\252\215.jsp" new file mode 100644 index 0000000..42145f6 --- /dev/null +++ "b/node_modules/nablarch-template-app_aside/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\204\343\203\252\343\203\274\343\203\241\343\203\213\343\203\245\343\203\274_\347\242\272\350\252\215.jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git a/node_modules/nablarch-template-app_footer/package.json b/node_modules/nablarch-template-app_footer/package.json new file mode 100644 index 0000000..8a9c091 --- /dev/null +++ b/node_modules/nablarch-template-app_footer/package.json @@ -0,0 +1,7 @@ +{ + "name": "nablarch-template-app_footer", + "description": "繝輔ャ繧ソ繝シ鬆伜沺", + "version": "1.0.0", + "_from" : "nablarch-template-app_footer@1.0.0", + "dependencies": {} +} diff --git a/node_modules/nablarch-template-app_footer/ui_public/css/template/footer-compact.less b/node_modules/nablarch-template-app_footer/ui_public/css/template/footer-compact.less new file mode 100644 index 0000000..e70f7c4 --- /dev/null +++ b/node_modules/nablarch-template-app_footer/ui_public/css/template/footer-compact.less @@ -0,0 +1,10 @@ +/* + * 繝輔ャ繧ソ繝シ鬆伜沺: + * 逕サ髱「荳矩Κ縺ォ蝗コ螳夊。ィ遉コ + */ +#footer { + width: 100%; + height: 25px; + position: fixed; + bottom: 0; +} diff --git a/node_modules/nablarch-template-app_footer/ui_public/css/template/footer-multicol.less b/node_modules/nablarch-template-app_footer/ui_public/css/template/footer-multicol.less new file mode 100644 index 0000000..b6dd630 --- /dev/null +++ b/node_modules/nablarch-template-app_footer/ui_public/css/template/footer-multicol.less @@ -0,0 +1,8 @@ +/* + * 繝輔ャ繧ソ繝シ鬆伜沺 + */ +#footer { + .grid-col(@columns); + height: 25px; +} + diff --git a/node_modules/nablarch-template-app_footer/ui_public/css/template/footer-narrow.less b/node_modules/nablarch-template-app_footer/ui_public/css/template/footer-narrow.less new file mode 100644 index 0000000..d3ff766 --- /dev/null +++ b/node_modules/nablarch-template-app_footer/ui_public/css/template/footer-narrow.less @@ -0,0 +1,12 @@ +/* + * 繝輔ャ繧ソ繝シ鬆伜沺: + * 逕サ髱「荳矩Κ縺ォ蝗コ螳夊。ィ遉コ + */ +#footer { + width: 100%; + min-width: 320px; + height: 25px; + position: fixed; + bottom: 0; +} + diff --git a/node_modules/nablarch-template-app_footer/ui_public/css/template/footer-wide.less b/node_modules/nablarch-template-app_footer/ui_public/css/template/footer-wide.less new file mode 100644 index 0000000..b6dd630 --- /dev/null +++ b/node_modules/nablarch-template-app_footer/ui_public/css/template/footer-wide.less @@ -0,0 +1,8 @@ +/* + * 繝輔ャ繧ソ繝シ鬆伜沺 + */ +#footer { + .grid-col(@columns); + height: 25px; +} + diff --git a/node_modules/nablarch-template-app_footer/ui_public/css/template/footer.less b/node_modules/nablarch-template-app_footer/ui_public/css/template/footer.less new file mode 100644 index 0000000..9a713db --- /dev/null +++ b/node_modules/nablarch-template-app_footer/ui_public/css/template/footer.less @@ -0,0 +1,24 @@ +#footer { + background-color : @mainColor2; + color : #FFF; + font-size : 0.8em; + margin-top : 0; + .box-shadow(4px, 4px, 8px, #ccc); + + .navItem { + float: left; + margin: 6px 2px 4px 5px; + a { + text-decoration : none; + } + } + + #copy_right { + float: right; + margin: 5px; + font-weight: bold; + font-size: @smallestFontSize; + font-family: Arial, Verdana, sans-serif; + } +} + diff --git a/node_modules/nablarch-template-app_footer/ui_public/include/app_footer.jsp b/node_modules/nablarch-template-app_footer/ui_public/include/app_footer.jsp new file mode 100644 index 0000000..6150ebe --- /dev/null +++ b/node_modules/nablarch-template-app_footer/ui_public/include/app_footer.jsp @@ -0,0 +1,4 @@ +<%@ page language="java" pageEncoding="UTF-8" %> +<%-- 繝繝輔か繝ォ繝医ユ繝ウ繝励Ξ繝シ繝医〒縺ッ縲√リ繝薙ご繝シ繧キ繝ァ繝ウ驛ィ縺ォ縺ッ菴輔b蜃コ蜉帙@縺ェ縺 --%> + + diff --git a/node_modules/nablarch-template-app_footer/ui_public/include/subwindow_app_footer.jsp b/node_modules/nablarch-template-app_footer/ui_public/include/subwindow_app_footer.jsp new file mode 100644 index 0000000..4f7a355 --- /dev/null +++ b/node_modules/nablarch-template-app_footer/ui_public/include/subwindow_app_footer.jsp @@ -0,0 +1,4 @@ +<%@ page language="java" pageEncoding="UTF-8" %> +<%-- 繝繝輔か繝ォ繝医ユ繝ウ繝励Ξ繝シ繝医〒縺ッ縲√ヵ繝繧ソ繝シ驛ィ縺ッ繝。繧、繝ウ繧ヲ繧」繝ウ繝峨え縺ィ蜷後§ --%> + + diff --git a/node_modules/nablarch-template-app_header/package.json b/node_modules/nablarch-template-app_header/package.json new file mode 100644 index 0000000..734f787 --- /dev/null +++ b/node_modules/nablarch-template-app_header/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-template-app_header" + , "description": "繝倥ャ繝繝シ鬆伜沺" + , "version": "1.0.0" + , "_from" : "nablarch-template-app_header@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-template-app_header/ui_public/css/template/header-compact.less b/node_modules/nablarch-template-app_header/ui_public/css/template/header-compact.less new file mode 100644 index 0000000..fc3d906 --- /dev/null +++ b/node_modules/nablarch-template-app_header/ui_public/css/template/header-compact.less @@ -0,0 +1,16 @@ +#header { + width: 100%; + margin-top: 30px; + + #brand_logo { + float: left; + width: 40px; + } + + #title { + float: right; + width: 85%; + margin: 0; + } +} + diff --git a/node_modules/nablarch-template-app_header/ui_public/css/template/header-multicol.less b/node_modules/nablarch-template-app_header/ui_public/css/template/header-multicol.less new file mode 100644 index 0000000..285016a --- /dev/null +++ b/node_modules/nablarch-template-app_header/ui_public/css/template/header-multicol.less @@ -0,0 +1,11 @@ +#header { + + .grid-col(@columns); + + #brand_logo { + .grid-col-16; + } + #title { + .grid-col-48; + } +} diff --git a/node_modules/nablarch-template-app_header/ui_public/css/template/header-narrow.less b/node_modules/nablarch-template-app_header/ui_public/css/template/header-narrow.less new file mode 100644 index 0000000..c15dfe4 --- /dev/null +++ b/node_modules/nablarch-template-app_header/ui_public/css/template/header-narrow.less @@ -0,0 +1,18 @@ +#header { + width: 100%; + min-width: @minWidth; + margin-top: 30px; + + #brand_logo { + float: left; + width: 40px; + } + + #title { + float: right; + width: 85%; + margin: 0; + } + +} + diff --git a/node_modules/nablarch-template-app_header/ui_public/css/template/header-wide.less b/node_modules/nablarch-template-app_header/ui_public/css/template/header-wide.less new file mode 100644 index 0000000..6d13710 --- /dev/null +++ b/node_modules/nablarch-template-app_header/ui_public/css/template/header-wide.less @@ -0,0 +1,11 @@ +#header { + + .grid-col(@columns); + + #brand_logo { + .grid-col-6; + } + #title { + .grid-col-18; + } +} diff --git a/node_modules/nablarch-template-app_header/ui_public/css/template/header.less b/node_modules/nablarch-template-app_header/ui_public/css/template/header.less new file mode 100644 index 0000000..3915cd4 --- /dev/null +++ b/node_modules/nablarch-template-app_header/ui_public/css/template/header.less @@ -0,0 +1,21 @@ +#header { + background-color: @baseColor; + border-bottom: 1px solid #eee; + .box-shadow(4px, 0, 8px, #ccc); + + #brand_logo { + height: 50px; + background-image: url("../../img/logo.png"); + background-repeat: no-repeat; + background-position: 5px center; + } + + #title { + .horizontal-gradient(@baseColor, @mainColor1); + height: 37px; + padding-top: 13px; + color: @baseColor; + font-size: @largestFontSize; + text-align: center; + } +} diff --git a/node_modules/nablarch-template-app_header/ui_public/include/app_header.jsp b/node_modules/nablarch-template-app_header/ui_public/include/app_header.jsp new file mode 100644 index 0000000..834de77 --- /dev/null +++ b/node_modules/nablarch-template-app_header/ui_public/include/app_header.jsp @@ -0,0 +1,11 @@ +<%@ page language="java" pageEncoding="UTF-8" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + +
+ + +

+ +

+
diff --git a/node_modules/nablarch-template-app_header/ui_public/include/subwindow_app_header.jsp b/node_modules/nablarch-template-app_header/ui_public/include/subwindow_app_header.jsp new file mode 100644 index 0000000..c951c76 --- /dev/null +++ b/node_modules/nablarch-template-app_header/ui_public/include/subwindow_app_header.jsp @@ -0,0 +1,4 @@ +<%@ page language="java" pageEncoding="UTF-8" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%-- 繝繝輔か繝ォ繝医ユ繝ウ繝励Ξ繝シ繝医〒縺ッ縲√倥ャ繝驛ィ縺ッ繝。繧、繝ウ繧ヲ繧」繝ウ繝峨え縺ィ蜷後§ --%> + diff --git a/node_modules/nablarch-template-app_nav/package.json b/node_modules/nablarch-template-app_nav/package.json new file mode 100644 index 0000000..a543f12 --- /dev/null +++ b/node_modules/nablarch-template-app_nav/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-template-app_nav" + , "description": "繝翫ン繧イ繝シ繧キ繝ァ繝ウ鬆伜沺" + , "version": "1.0.0" + , "_from" : "nablarch-template-app_nav@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav-compact.less b/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav-compact.less new file mode 100644 index 0000000..7e971d1 --- /dev/null +++ b/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav-compact.less @@ -0,0 +1,11 @@ +/* + * 繝医ャ繝励リ繝薙ご繝シ繧キ繝ァ繝ウ鬆伜沺: + * 逕サ髱「荳企Κ縺ォ蝗コ螳夊。ィ遉コ + */ +#top_nav { + height : 30px; + position : fixed; + width : 100%; + top : 0; + z-index : 10; +} diff --git a/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav-multicol.less b/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav-multicol.less new file mode 100644 index 0000000..1d086f4 --- /dev/null +++ b/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav-multicol.less @@ -0,0 +1,10 @@ +#top_nav { + .grid-col(@columns); + margin-top: 20px; + height: 30px; + ul { + margin : 0; + padding: 0; + } +} + diff --git a/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav-narrow.less b/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav-narrow.less new file mode 100644 index 0000000..139c1e6 --- /dev/null +++ b/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav-narrow.less @@ -0,0 +1,13 @@ +/* + * 繝医ャ繝励リ繝薙ご繝シ繧キ繝ァ繝ウ鬆伜沺: + * 逕サ髱「荳企Κ縺ォ蝗コ螳夊。ィ遉コ + */ +#top_nav { + height : 30px; + position : fixed; + width : 100%; + top : 0; + z-index : 10; + min-width: 320px; +} + diff --git a/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav-wide.less b/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav-wide.less new file mode 100644 index 0000000..1d086f4 --- /dev/null +++ b/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav-wide.less @@ -0,0 +1,10 @@ +#top_nav { + .grid-col(@columns); + margin-top: 20px; + height: 30px; + ul { + margin : 0; + padding: 0; + } +} + diff --git a/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav.less b/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav.less new file mode 100644 index 0000000..a0dcb7e --- /dev/null +++ b/node_modules/nablarch-template-app_nav/ui_public/css/template/topnav.less @@ -0,0 +1,27 @@ +#top_nav { + background-color: @mainColor2; + color: @baseColor; + font-size: @smallerFontSize; + .box-shadow(4px, 0, 8px, #ccc); + + .navItem { + float: left; + margin: 6px 2px 4px 5px; + a { + text-decoration: none !important; + } + } + + .navItem.loginInfo { + float: right; + } + + a { + color: #FFF; + } + + a:hover { + color: @mainColor1; + } + +} diff --git a/node_modules/nablarch-template-app_nav/ui_public/include/app_top_nav.jsp b/node_modules/nablarch-template-app_nav/ui_public/include/app_top_nav.jsp new file mode 100644 index 0000000..a4091d9 --- /dev/null +++ b/node_modules/nablarch-template-app_nav/ui_public/include/app_top_nav.jsp @@ -0,0 +1,2 @@ +<%@ page language="java" pageEncoding="UTF-8" %> +<%-- 繝繝輔か繝ォ繝医ユ繝ウ繝励Ξ繝シ繝医〒縺ッ縲√リ繝薙ご繝シ繧キ繝ァ繝ウ驛ィ縺ォ縺ッ菴輔b蜃コ蜉帙@縺ェ縺 --%> diff --git a/node_modules/nablarch-template-app_nav/ui_public/include/subwindow_app_top_nav.jsp b/node_modules/nablarch-template-app_nav/ui_public/include/subwindow_app_top_nav.jsp new file mode 100644 index 0000000..d1999fa --- /dev/null +++ b/node_modules/nablarch-template-app_nav/ui_public/include/subwindow_app_top_nav.jsp @@ -0,0 +1,4 @@ +<%@ page language="java" pageEncoding="UTF-8" %> +<%-- 繝繝輔か繝ォ繝医ユ繝ウ繝励Ξ繝シ繝医〒縺ッ縲√リ繝薙ご繝シ繧キ繝ァ繝ウ驛ィ縺ッ繝。繧、繝ウ繧ヲ繧」繝ウ繝峨え縺ィ蜷後§ --%> + + diff --git a/node_modules/nablarch-template-base/package.json b/node_modules/nablarch-template-base/package.json new file mode 100644 index 0000000..82b13b5 --- /dev/null +++ b/node_modules/nablarch-template-base/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-template-base" + , "description": "讓呎コ蓬TML繝繝ウ繝励Ξ繝シ繝" + , "version": "1.0.0" + , "_from" : "nablarch-template-base@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-template-base/ui_local/js/jsp/taglib/template.js b/node_modules/nablarch-template-base/ui_local/js/jsp/taglib/template.js new file mode 100644 index 0000000..7651c1f --- /dev/null +++ b/node_modules/nablarch-template-base/ui_local/js/jsp/taglib/template.js @@ -0,0 +1,25 @@ +/** + * 繝繝ウ繝励Ξ繝シ繝医え繧」繧ク繧ァ繝繝(``)縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * JSP繧ソ繧ー `` 縺ッ荳玖ィ倥ョ繧ソ繧ー繝輔ぃ繧、繝ォ縺ォ繧医j謠冗判縺輔l繧九 + * + * (繧オ繝シ繝悶Ξ繝繝医さ繝ウ繝繧ュ繧ケ繝)/WEB-INF/tags/template/xxx.tag + * + * @module jsp.taglib + * @class jsp.taglib.template + * @author Iwauo Tajima + */ +define(['jsp', 'sugar'], +function($) { 'use strict'; + return function($tagBody, context, tagName, _context) { + if (tagName === 'errorpage_template') { + context.trackingnumber = Date.create().format('{yyyy}{MM}{dd}{HH}{mm}{ss}{fff}') + (Number.random(1000, 9999)+''); + } + if (tagName === 'ui_test_template') { + context.__jsp_load_base_path = 'tools/ui_test/jsp/' + encodeURI(context.suite) + '/'; // encodeURI for IE8,9 bug + } + return $.loadTagfile.apply( + this, ['../WEB-INF/tags/template/', $tagBody, context, tagName, _context] + ); + }; +}); diff --git a/node_modules/nablarch-template-base/ui_public/WEB-INF/tags/template/base_layout.tag b/node_modules/nablarch-template-base/ui_public/WEB-INF/tags/template/base_layout.tag new file mode 100644 index 0000000..4c46412 --- /dev/null +++ b/node_modules/nablarch-template-base/ui_public/WEB-INF/tags/template/base_layout.tag @@ -0,0 +1,120 @@ +<%-- + 讓呎コ蓬TML繝繝ウ繝励Ξ繝シ繝 + @author Iwauo Tajima +--%> + +<%@tag pageEncoding="UTF-8" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@taglib prefix="device" tagdir="/WEB-INF/tags/device" %> + + <%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="逕サ髱「蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="topNavHtml" description="繝医ャ繝励リ繝薙ご繝シ繧キ繝ァ繝ウ鬆伜沺縺ョ蜀螳ケ" fragment="true" required="true" %> +<%@ attribute name="headerHtml" description="繝倥ャ繝繝シ鬆伜沺縺ョ蜀螳ケ" fragment="true" required="true" %> +<%@ attribute name="bodyLayoutHtml" description="繝懊ョ繧」鬆伜沺縺ョ蜀螳ケ" fragment="true" required="true" %> +<%@ attribute name="footerHtml" description="繝輔ャ繧ソ繝シ鬆伜沺縺ョ蜀螳ケ" fragment="true" required="true" %> +<%@ attribute name="localCss" description="繝壹シ繧ク豈擦SS" fragment="true" %> +<%@ attribute name="localJs" description="繝壹シ繧ク豈捌S" fragment="true" %> +<%@ attribute name="localInclude" description="繝壹シ繧ク豈主、夜Κ繧ケ繧ッ繝ェ繝励ヨ" fragment="true" %> +<%@ attribute name="remainSubWindow" description="逕サ髱「驕キ遘サ蠕後b髢峨§縺壹↓谿九☆繧オ繝悶え繧」繝ウ繝峨え蜷阪ョ繝ェ繧ケ繝(繧ォ繝ウ繝槫玄蛻繧)縲ゅョ繝輔か繝ォ繝医ッ遨コ譁蟄(蜈ィ縺ヲ縺ョ繧オ繝悶え繧」繝ウ繝峨え繧帝哩縺倥k)" rtexprvalue="true" %> +<%@ attribute name="tabindexOrder" description="繧ソ繝悶ョ驕キ遘サ鬆繧帝伜沺蜊倅ス阪〒螟画峩縺吶k縺溘a縺ョ鬆蠎(繧ォ繝ウ繝槫玄蛻繧)縲" rtexprvalue="true" %> +<%@ attribute name="whenToClose" description="逕サ髱「繧帝哩縺倥k繧、繝吶Φ繝亥シ上r謖螳壹☆繧九" rtexprvalue="true" %> +<%------------------------------------------------------------%> + + + + + + + <%-- HTTP繝倥ャ繝 --%> + + + <%-- html繝倥ャ繝 --%> + + + + + <%-- 繝壹シ繧ク豈擦SS --%> + + + + +<%-- tabindex縺ョ螳夂セゥ --%> + + + + +<%-- 髢峨§繧区ゥ溯ス繧、繝吶Φ繝医ョ螳夂セゥ --%> + + + + + + + + + +<%-- 繝医ャ繝励リ繝薙ご繝シ繧キ繝ァ繝ウ鬆伜沺 --%> +
+
+ +
+
+ +<%-- 繝倥ャ繝繝シ鬆伜沺 --%> +
+ +
+ +<%-- 繝。繧、繝ウ鬆伜沺 --%> +
+ +
+ +<%-- 繝輔ャ繧ソ繝シ鬆伜沺 --%> +
+ +
+ + + + +<%-- 逕サ髱「驕キ遘サ譎ゅ↓縺薙ョ繧オ繝悶え繧」繝ウ繝峨え縺九i髢九°繧後◆蜈ィ縺ヲ縺ョ繧オ繝悶え繧」繝ウ繝峨え繧帝哩縺倥k --%> + +require(["jquery", "sugar"], function($) { + var remainSubWindow = "".split(/\s*,\s*/); + $(function() { + function closeAllSubWindows() { + Object.each(nablarch_opened_windows, function(name, w) { + if (!remainSubWindow.any(name)) { + w.close(); + } + }); + } + $(window).on('unload', closeAllSubWindows) + .on('beforeunload', closeAllSubWindows); + + }); +}); + + + +require(["jquery", "sugar"], function($) { + +}); + + + + + diff --git a/node_modules/nablarch-template-base/ui_public/css/template/base-compact.less b/node_modules/nablarch-template-base/ui_public/css/template/base-compact.less new file mode 100644 index 0000000..69e5512 --- /dev/null +++ b/node_modules/nablarch-template-base/ui_public/css/template/base-compact.less @@ -0,0 +1,4 @@ +div.enclose.main { + margin-bottom: 70px; +} + diff --git a/node_modules/nablarch-template-base/ui_public/css/template/base-multicol.less b/node_modules/nablarch-template-base/ui_public/css/template/base-multicol.less new file mode 100644 index 0000000..84b45fa --- /dev/null +++ b/node_modules/nablarch-template-base/ui_public/css/template/base-multicol.less @@ -0,0 +1,3 @@ +div.enclose.main { + overflow: visible; +} diff --git a/node_modules/nablarch-template-base/ui_public/css/template/base-narrow.less b/node_modules/nablarch-template-base/ui_public/css/template/base-narrow.less new file mode 100644 index 0000000..55b0771 --- /dev/null +++ b/node_modules/nablarch-template-base/ui_public/css/template/base-narrow.less @@ -0,0 +1,3 @@ +div.enclose.main { + margin-bottom: 70px; +} diff --git a/node_modules/nablarch-template-base/ui_public/css/template/base-wide.less b/node_modules/nablarch-template-base/ui_public/css/template/base-wide.less new file mode 100644 index 0000000..84b45fa --- /dev/null +++ b/node_modules/nablarch-template-base/ui_public/css/template/base-wide.less @@ -0,0 +1,3 @@ +div.enclose.main { + overflow: visible; +} diff --git a/node_modules/nablarch-template-base/ui_public/js/nablarch/ui/TabindexOrder.js b/node_modules/nablarch-template-base/ui_public/js/nablarch/ui/TabindexOrder.js new file mode 100644 index 0000000..607bb69 --- /dev/null +++ b/node_modules/nablarch-template-base/ui_public/js/nablarch/ui/TabindexOrder.js @@ -0,0 +1,108 @@ +define(["jquery", "./Widget" , "sugar"], +function($, Widget){ 'use strict'; + /** + * 繧ソ繝悶う繝ウ繝繝繧ッ繧ケ驕キ遘サ鬆螳夂セゥ + * =========================== + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------ + * 縺薙ョ繧ヲ繧」繧ク繧ァ繝繝医ッ繧ソ繝悶く繝シ縺ァ縺ョ驕キ遘サ鬆繧帝伜沺蜊倅ス阪↓險ュ螳壹☆繧句エ蜷医↓菴ソ逕ィ縺吶k縲 + * 謖螳壹☆繧句ッセ雎。鬆伜沺縺ョ蜈蠑溯ヲ∫エ縺ォ繝槭シ繧ォCSS繧ッ繝ゥ繧ケ **nablarch_TabindexOrder** 繧呈欠螳壹☆繧九 + * + * + * 繧ソ繝夜キ遘サ縺ョ鬆逡ェ繧呈欠螳壹@縺溘>鬆伜沺縺ョ鬆蠎上r **-order** 縺ォID螻樊ァ縺ァ謖螳壹☆繧九 + * 鬆伜沺蜀縺ョ繧ソ繝夜キ遘サ縺ッ隕∫エ縺ョ蜃コ迴セ鬆蠎上↓蠕薙≧縲 + * + * 萓具シ喞ontents=>footer=>menu=>header=>top縺ョ鬆縺ァ蛻カ蠕。縺吶k蝣エ蜷 + *
+ *
+ *
...
+ * + * + *
...
+ * + *
+ * + * @class nablarch.ui.TabindexOrder + * + * @author tani takanori + * @since 1.4 + * + */ + TabindexOrder.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縲 + * + * @constructor + * @param {HTMLElement} element 繧ヲ繧」繧ク繧ァ繝繝亥ョ夂セゥ繧呈欠螳壹@縺櫞TML隕∫エ + * @param {Object} opt 繧ヲ繧」繧ク繧ァ繝繝医ョ繧ェ繝励す繝ァ繝ウ繧ェ繝悶ず繧ァ繧ッ繝 + * **order:**(`String`) ID螻樊ァ縺ォ縺ヲ繧ソ繝夜キ遘サ縺ョ鬆蠎上r繧ォ繝ウ繝槫玄蛻繧翫〒謖螳壹☆繧九 + * @return {TabindexOrder} 繧、繝ウ繧ケ繧ソ繝ウ繧ケ + */ + constructor: TabindexOrder + /** + * 螳夂セゥ縺吶k遽蝗イ縲 + * + * @property $context + * @type jQuery + */ + , $context : null + /** + * 驕キ遘サ鬆縺ョ繝ェ繧ケ繝医 + * @property orderlist + * @type Array + */ + , orderlist : [] + /** + * 繧ェ繝励す繝ァ繝ウ縺ォ蠕薙>繧ソ繝悶う繝ウ繝繝繧ッ繧ケ繧貞ョ夂セゥ縺吶k縲 + * + * @method define + */ + , define : TabindexOrder_define + }); + + /** + * 繧ヲ繧」繧ク繧ァ繝繝郁ュ伜挨蟄 + * @property widgetType + * @static + * @final + * @default "nablarch_TabindexOrder" + */ + TabindexOrder.widgetType = "nablarch_TabindexOrder"; + /** + * 繧、繝吶Φ繝亥ョ夂セゥス。 + * (Widget.init縺ァ蛻晄悄蛹悶&繧後k縺溘a縲√ラ繧ュ繝・繝。繝ウ繝医ョ荳翫ョ繧、繝吶Φ繝医〒縺ッ蜍穂ス懊@縺ェ縺縲) + * + * TabindexOrder.event = {}; + * + * @property event + * @type Object + * @static + */ + TabindexOrder.event = {}; + + var defaultNode = 'input, select, textarea, a, button'; + + function TabindexOrder(element, opt) { + this.$context = $(element).parent(); + this.orderlist = opt.order ? opt.order.split(',') : []; + this.constructor = TabindexOrder; + this.define(); + } + + function TabindexOrder_define() { + var index = 1 + , $context = this.$context; + this.orderlist.each(function(area) { + $context.find('#' + area.trim()).find(defaultNode).each(function(){ + $(this).attr('tabindex', index); + index++; + }); + }); + } + + Widget.register(TabindexOrder); + + return TabindexOrder; + +}); \ No newline at end of file diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/index.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/index.jsp" new file mode 100644 index 0000000..90592c6 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/index.jsp" @@ -0,0 +1,32 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • 繧ソ繝悶う繝ウ繝繝繧ッ繧ケ螳夂セゥ +
      +
    • +
    +
  • +
  • 髢峨§繧区ゥ溯ス +
      +
    • +
    +
  • +
+
+
+
diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/1\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/1\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..9b78be0 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/1\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,43 @@ + runTest( + tabindex繧1縺、縺ョ繧ウ繝ウ繝繧ュ繧ケ繝医↓縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var tabindexnodes = 'input, select, textarea, a, button'; + + function tabindex繧1縺、縺ョ繧ウ繝ウ繝繧ュ繧ケ繝医↓縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var testcase = test_for('order') + , $context = testcase.$context + , msg = testcase.msg + , testTable = [ + ['input:text', 1] + , ['textarea', 2] + , ['input:file', 3] + , ['select', 4] + , ['input:radio', [5, 6, 7, 8]] + , ['input:checkbox', [9, 10, 11, 12]] + , ['a', 13] + , ['button', 14] + ]; + + testTable.each(function(e){ + var selector = e[0] + , expected = to_a(e[1]) + , node = $context.find(selector); + expected.each(function(expect, i){ + equal(node.filter(':eq(' + i + ")").attr('tabindex'), expect, [msg, " [", selector, "]" ].join("")); + }); + }); + } + + function to_a(index) { + return [].slice.call(arguments).flatten(); + } + + function test_for(case_id) { + var $context = $("#" + case_id) + , msg = $context.find('.test-case').text(); + return { + $context : $context + , msg : msg + }; + } diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/1\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/1\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..586f733 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/1\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,23 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + *:focus { + outline:5px #DAA520 solid; + } + + diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/1\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/1\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..ece93c8 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/1\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,23 @@ +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="java.util.*" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/1\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/1\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..4278a65 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/1\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,34 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + +
+
+ 謖螳壹′縺ゅk蝣エ蜷医ッtablindex縺悟コ蜉帙&繧後k縺薙→ +
+ + + + + + + + + + tabindex縺ョ遒コ隱 + + +
+
+
diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/index.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/index.jsp" new file mode 100644 index 0000000..d2d4ccd --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/index.jsp" @@ -0,0 +1,30 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • 繧ソ繝悶う繝ウ繝繝繧ッ繧ケ螳夂セゥ(繧ッ繝ゥ繧、繧「繝ウ繝医し繝シ繝舌シ蜈ア騾)
    窶サtabindex縺ッ繧ウ繝ウ繝繧ュ繧ケ繝医′繝壹シ繧ク縺ィ縺ェ繧九◆繧√こ繝シ繧ケ縺斐→縺ォ繝壹シ繧ク繧堤畑諢上☆繧九 +
      +
    • +
    • +
    • +
    • +
    +
  • +
+
+
+
diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..c48b27f --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,89 @@ +require(['jquery', 'nablarch/ui/Widget'], +function($, Widget){ + runTest( + tabindex譛ェ謖螳壹ョ繝繧ケ繝 + , tabindex繧1縺、縺ョ繧ウ繝ウ繝繧ュ繧ケ繝医↓縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + , tabindex繧2縺、縺ョ繧ウ繝ウ繝繧ュ繧ケ繝医↓險ュ螳壹@縺溷エ蜷医ョ繝繧ケ繝 + , 謇馴嵯繝繧ケ繝 + ); + + var tabindexnodes = 'input, select, textarea, a, button'; + + function tabindex譛ェ謖螳壹ョ繝繧ケ繝() { + var testcase = test_for("non-order"); + testcase.$context.find(tabindexnodes).each(function(){ + ok(!this.tabindex, testcase.msg); + }); + } + + function tabindex繧1縺、縺ョ繧ウ繝ウ繝繧ュ繧ケ繝医↓縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var testcase = test_for('order') + , $context = testcase.$context + , msg = testcase.msg + , testTable = [ + ['input:text', 1] + , ['textarea', 2] + , ['input:file', 3] + , ['select', 4] + , ['input:radio', [5, 6, 7, 8]] + , ['input:checkbox', [9, 10, 11, 12]] + , ['a', 13] + , ['button', 14] + ]; + + testTable.each(function(e){ + var selector = e[0] + , expected = to_a(e[1]) + , node = $context.find(selector); + expected.each(function(expect, i){ + equal(node.filter(':eq(' + i + ")").attr('tabindex'), expect, [msg, " [", selector, "]" ].join("")); + }); + }); + } + + function tabindex繧2縺、縺ョ繧ウ繝ウ繝繧ュ繧ケ繝医↓險ュ螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var testcase = test_for('multi_order') + , $context = testcase.$context + , msg = testcase.msg + , testTable = [ + // node, index @area1, index @area2 + ['input:text', 11] + , ['textarea', 12] + , ['input:file', 13] + , ['a', 14] + , ['select', 1] + , ['input:radio', [2, 3, 4, 5]] + , ['input:checkbox', [6, 7, 8, 9]] + , ['button', 10] + ]; + testTable.each(function(e){ + var selector = e[0] + , expected = to_a(e[1]) + , node = $context.find(selector); + expected.each(function(expect, i){ + equal(node.filter(':eq(' + i + ")").attr('tabindex'), expect, [msg, " [", selector, "]" ].join("")); + }); + }); + } + + function 謇馴嵯繝繧ケ繝() { + var newDefinition = $('
', {'class': 'nablarch_TabindexOrder -order area1,multi_area2,multi_area1'}); + $('.nablarch_TabindexOrder').removeClass('nablarch_TabindexOrder'); + $('div#content').append(newDefinition); + Widget.init(); + ok(true, '謇馴嵯繝繧ケ繝育畑縺ォIndex繧貞榊ョ夂セゥ縺励※縺励∪縺縲'); + } + + function to_a(index) { + return [].slice.call(arguments).flatten(); + } + + function test_for(case_id) { + var $context = $("#" + case_id) + , msg = $context.find('.test-case').text(); + return { + $context : $context + , msg : msg + }; + } +}); \ No newline at end of file diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..d8e0b30 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,25 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + *:focus { + outline:3px #DAA520 solid; + } + + diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..ece93c8 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,23 @@ +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="java.util.*" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..236df6c --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,89 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + +
+ 謖螳壹′縺ェ縺蝣エ蜷医ッtablindex縺悟コ蜉帙&繧後↑縺縺薙→ +
+ + + + + + + + + + tabindex縺ョ遒コ隱 + + +
+
+
+
+ 謖螳壹′縺ゅk蝣エ蜷医ッtabindex縺悟コ蜉帙&繧後k縺薙→ +
+ + + + + + + + + + tabindex縺ョ遒コ隱 + + +
+
+
+
+ 謖螳壹′縺ゅk蝣エ蜷医ッtabindex縺悟コ蜉帙&繧後k縺薙→ +
+ + + + + + + tabindex縺ョ遒コ隱 + +
+
+ + + + + + + + +
+
+ +
diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\344\270\200\351\203\250\346\234\252\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\344\270\200\351\203\250\346\234\252\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..486e3bb --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\344\270\200\351\203\250\346\234\252\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,65 @@ + runTest( + 謖螳壹→譛ェ謖螳夐伜沺縺梧キキ蝨ィ縺吶k蝣エ蜷医ョ繝繧ケ繝 + ); + + var tabindexnodes = 'input, select, textarea, a, button'; + + function 謖螳壹→譛ェ謖螳夐伜沺縺梧キキ蝨ィ縺吶k蝣エ蜷医ョ繝繧ケ繝() { + var non_order = test_for('non-order') + , second = test_for('second') + , first = test_for('first') + , assertTabindex = function(testcase) { + var $context = testcase.$context; + testcase.datalist.each(function(data){ + var selector = data[0] + , expects = to_a(data[1]) + , $nodes = $context.find(selector); + equal($nodes.length, expects.length, testcase.msg + " test縺ョ讀懆ィシ縲ゅし繧、繧コ縺ョ遒コ隱 [" + selector + "]"); + $nodes.each(function(i) { + var node = this + , expect = expects[i]; + equal(node.tabIndex, expect, testcase.msg + " selector => " + selector); + }); + }); + + }; + // expected = [[selector, [tabindex, tabindex]] + first.datalist = [ + ['select', 1] + , ['input:radio', [2,3,4,5]] + , ['input:checkbox', [6,7,8, 9]] + , ['button', 10] + , ['input:text', 11] + , ['textarea', 12] + , ['input:file', 13] + , ['a', 14]]; + + second.datalist = [ + ['input:text', 15] + , ['textarea', 16] + , ['input:file', 17] + , ['select', 18] + , ['input:radio', [19, 20, 21, 22]] + , ['input:checkbox', [23, 24, 25, 26]] + , ['a', 27] + , ['button', 28]]; + + assertTabindex(first); + assertTabindex(second); + non_order.$context.find(tabindexnodes).each(function() { + ok(!this.tabIndex, non_order.msg + " : " + this.name ); + }); + } + + function to_a(index) { + return [].slice.call(arguments).flatten(); + } + + function test_for(context_id) { + var $context = $("#" + context_id) + , msg = $context.find('.test-case').text(); + return { + $context : $context + , msg : msg + }; + } diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\344\270\200\351\203\250\346\234\252\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\344\270\200\351\203\250\346\234\252\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..f55ffaf --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\344\270\200\351\203\250\346\234\252\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,23 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + *:focus { + outline:5px #DAA520 solid; + } + + diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\344\270\200\351\203\250\346\234\252\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\344\270\200\351\203\250\346\234\252\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..ece93c8 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\344\270\200\351\203\250\346\234\252\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,23 @@ +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="java.util.*" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\344\270\200\351\203\250\346\234\252\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\344\270\200\351\203\250\346\234\252\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..ccd4bbe --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\344\270\200\351\203\250\346\234\252\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,87 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + +
+
+ 謖螳壹&繧後↑縺隕∫エ縺ォ繧ゅヵ繧ゥ繝シ繧ォ繧ケ縺ッ蠖薙◆繧(謖螳壹&繧後◆鬆伜沺縺悟) +
+ + + + + + + + + + tabindex縺ョ遒コ隱 + + +
+
+
+ 謖螳夐縺ォ蠕薙≧縺薙→:second +
+ + + + + + + + + + tabindex縺ョ遒コ隱 + + +
+
+
+ 謖螳夐縺ォ蠕薙≧縺薙→:first +
+ + + + + + + tabindex縺ョ遒コ隱 + +
+
+ + + + + + + + +
+
+ +
diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..70d2ae5 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,21 @@ + runTest( + tabindex譛ェ謖螳壹ョ繝繧ケ繝 + ); + + var tabindexnodes = 'input, select, textarea, a, button'; + + function tabindex譛ェ謖螳壹ョ繝繧ケ繝() { + var testcase = test_for("non-order"); + testcase.$context.find(tabindexnodes).each(function(){ + ok(!this.tabindex, testcase.msg); + }); + } + + function test_for(case_id) { + var $context = $("#" + case_id) + , msg = $context.find('.test-case').text(); + return { + $context : $context + , msg : msg + }; + } diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..eac6639 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,23 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + *:focus { + outline:5px #DAA520 solid; + } + + diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..ece93c8 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,23 @@ +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="java.util.*" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..0f54684 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,34 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + +
+ 謖螳壹′縺ェ縺蝣エ蜷医ッtabindex縺悟コ蜉帙&繧後↑縺縺薙→ +
+ + + + + + + + + + tabindex縺ョ遒コ隱 + + +
+
+
diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\350\244\207\346\225\260\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\350\244\207\346\225\260\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..71ce0c2 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\350\244\207\346\225\260\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,43 @@ + runTest( + tabindex繧2縺、縺ョ繧ウ繝ウ繝繧ュ繧ケ繝医↓險ュ螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var tabindexnodes = 'input, select, textarea, a, button'; + + function tabindex繧2縺、縺ョ繧ウ繝ウ繝繧ュ繧ケ繝医↓險ュ螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var testcase = test_for('multi_order') + , $context = testcase.$context + , msg = testcase.msg + , testTable = [ + // node, index @area1, index @area2 + ['input:text', 11] + , ['textarea', 12] + , ['input:file', 13] + , ['a', 14] + , ['select', 1] + , ['input:radio', [2, 3, 4, 5]] + , ['input:checkbox', [6, 7, 8, 9]] + , ['button', 10] + ]; + testTable.each(function(e){ + var selector = e[0] + , expected = to_a(e[1]) + , node = $context.find(selector); + expected.each(function(expect, i){ + equal(node.filter(':eq(' + i + ")").attr('tabindex'), expect, [msg, " [", selector, "]" ].join("")); + }); + }); + } + + function to_a(index) { + return [].slice.call(arguments).flatten(); + } + + function test_for(case_id) { + var $context = $("#" + case_id) + , msg = $context.find('.test-case').text(); + return { + $context : $context + , msg : msg + }; + } diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\350\244\207\346\225\260\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\350\244\207\346\225\260\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..bfb49a3 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\350\244\207\346\225\260\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,23 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + *:focus { + outline:5px #DAA520 solid; + } + + diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\350\244\207\346\225\260\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\350\244\207\346\225\260\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..ece93c8 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\350\244\207\346\225\260\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,23 @@ +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="java.util.*" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\350\244\207\346\225\260\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\350\244\207\346\225\260\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..5bd32af --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\343\202\277\343\203\226\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\345\256\232\347\276\251/\350\244\207\346\225\260\351\240\230\345\237\237\346\214\207\345\256\232/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,42 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + +
+
+ 謖螳壹′縺ゅk蝣エ蜷医ッtablindex縺悟コ蜉帙&繧後k縺薙→ +
+ + + + + + + tabindex縺ョ遒コ隱 + +
+
+ + + + + + + + +
+
+ +
diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/index.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/index.jsp" new file mode 100644 index 0000000..e8b20b7 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/index.jsp" @@ -0,0 +1,26 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • 逕サ髱「繧ッ繝ュ繝シ繧コ讖溯ス +
      +
    • 繝繝輔か繝ォ繝医ョ繝繝ウ繝励Ξ繝シ繝
    • +
    +
      +
    • 逕サ髱「繧ッ繝ュ繝シ繧コ繧、繝吶Φ繝医ョ謖螳
    • +
    +
  • +
+
+
+
diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\202\343\202\212/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\202\343\202\212/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..2da9a79 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\202\343\202\212/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,90 @@ + runTest( + assertTestCode + , nablarch縺ョ繝繝輔か繝ォ繝医〒蜍穂ス懊&縺帙k + , 繧、繝吶Φ繝亥ョ夂セゥ縺ョ遒コ隱 + , revert + ); + + + // window close 縺ョ繝舌ャ繧ッ繧「繝繝 + var _window_Close = window.close; + + /** + * 繝繧ケ繝育畑縺ョ繧ウ繝シ繝峨′譛溷セ縺励◆騾壹j縺ォ蜍穂ス懊@縺ヲ縺繧九°讀懆ィシ縺吶k縲 + */ + function assertTestCode() { + var spy = proxy(); + equal(spy.callCount, 0, "proxy 縺ョ蜻シ縺ウ蜃コ縺怜屓謨ー縺ョ蛻晄悄蛟、縺ッ0縲"); + window.close(); + equal(spy.callCount, 1, "proxy 繧ェ繝悶ず繧ァ繧ッ繝医ョ蜻シ縺ウ蜃コ縺怜屓謨ー縺悟「怜刈縺吶k縺薙→縲"); + window.close(); + equal(spy.callCount, 2, "proxy 繧ェ繝悶ず繧ァ繧ッ繝医ョ蜻シ縺ウ蜃コ縺怜屓謨ー縺悟「怜刈縺吶k縺薙→縲"); + window.close(); + window.close(); + equal(spy.callCount, 4, "proxy 繧ェ繝悶ず繧ァ繧ッ繝医ョ蜻シ縺ウ蜃コ縺怜屓謨ー縺悟「怜刈縺吶k縺薙→縲"); + spy = proxy(); + } + + function nablarch縺ョ繝繝輔か繝ォ繝医〒蜍穂ス懊&縺帙k() { + var testcases = test_for('default') + , no_close = testcases[0] + , with_close = testcases[1] + , spy ; + spy = proxy(); + no_close.area.find('button, a').each(function(){ + $(this).click(function(event){event.preventDefault();}).click(); + equal(spy.callCount, 0 , no_close.msg); + }); + + spy = proxy(); + with_close.area.find('button, a').each(function(i){ + $(this).click(function(event){event.preventDefault();}).click(); + equal(spy.callCount, i + 1, with_close.msg); + }); + + } + + function 繧、繝吶Φ繝亥ョ夂セゥ縺ョ遒コ隱() { + var with_close = test_for("eventDef")[0] + , spy ; + spy = proxy(); + with_close.area.find('button, a').each(function(i){ + $(this).click(function(event){event.preventDefault();}).click(); + equal(spy.callCount, i + 1, with_close.msg); + }); + } + + /** + * 繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + */ + function test_for(case_id) { + var $cases = $('.testcase.' + case_id); + return $cases.map(function(){ + return { + msg : $(this).text() + , area : $(this).closest('div') + }; + }); + } + + function proxy() { + var proxy = {callCount : 0}; + mock(function(e) { + proxy.callCount++; + return false; + }); + return proxy; + } + + function mock(fn) { + window.close = fn; + if (window.close == _window_Close) { + ok(false, "window.close繧偵ヵ繝繧ッ縺ァ縺阪↑縺九▲縺溘ョ縺ァ閾ェ蜍輔〒繝繧ケ繝医〒縺阪∪縺帙s縺ァ縺励◆縲ゅユ繧ケ繝医こ繝シ繧ケ繧堤「コ隱阪@縲∵焔蜍輔〒螳溯。後@縺ヲ縺上□縺輔>縲"); + throw "can't override!"; + } + } + + function revert() { + window.close = _window_Close; + ok(window.close, 'windowClose繧貞セゥ蜈'); + } diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\202\343\202\212/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\202\343\202\212/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..2aafdd1 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\202\343\202\212/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,18 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\202\343\202\212/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\202\343\202\212/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..2f5f32a --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\202\343\202\212/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,9 @@ +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="java.util.*" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\202\343\202\212/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\202\343\202\212/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..3923dc7 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\202\343\202\212/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,35 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + +
+
+ nablarch_windowClose, 繧、繝吶Φ繝亥ョ夂セゥ縺ィ荳閾エ縺励↑縺蝣エ蜷医ッ繧ヲ繧」繝ウ繝峨え縺ッ繧ッ繝ュ繝シ繧コ縺励↑縺 + + + 謖螳壹↑縺 + +
+
+ nablarch_windowClose縺後≠繧句エ蜷医ッ髢峨§繧 + + +
+ class謖螳 +
+
+
+ 繧、繝吶Φ繝亥ョ夂セゥ縺ィ荳閾エ縺吶k蝣エ蜷医ッ髢峨§繧 + + +
+ event螳夂セゥ +
+
+
diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..1b5fd7e --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,90 @@ + runTest( + assertTestCode + , nablarch縺ョ繝繝輔か繝ォ繝医〒蜍穂ス懊&縺帙k + , 繧、繝吶Φ繝亥ョ夂セゥ縺ョ遒コ隱 + , revert + ); + + + // window close 縺ョ繝舌ャ繧ッ繧「繝繝 + var _window_Close = window.close; + + /** + * 繝繧ケ繝育畑縺ョ繧ウ繝シ繝峨′譛溷セ縺励◆騾壹j縺ォ蜍穂ス懊@縺ヲ縺繧九°讀懆ィシ縺吶k縲 + */ + function assertTestCode() { + var spy = proxy(); + equal(spy.callCount, 0, "proxy 縺ョ蜻シ縺ウ蜃コ縺怜屓謨ー縺ョ蛻晄悄蛟、縺ッ0縲"); + window.close(); + equal(spy.callCount, 1, "proxy 繧ェ繝悶ず繧ァ繧ッ繝医ョ蜻シ縺ウ蜃コ縺怜屓謨ー縺悟「怜刈縺吶k縺薙→縲"); + window.close(); + equal(spy.callCount, 2, "proxy 繧ェ繝悶ず繧ァ繧ッ繝医ョ蜻シ縺ウ蜃コ縺怜屓謨ー縺悟「怜刈縺吶k縺薙→縲"); + window.close(); + window.close(); + equal(spy.callCount, 4, "proxy 繧ェ繝悶ず繧ァ繧ッ繝医ョ蜻シ縺ウ蜃コ縺怜屓謨ー縺悟「怜刈縺吶k縺薙→縲"); + spy = proxy(); + } + + function nablarch縺ョ繝繝輔か繝ォ繝医〒蜍穂ス懊&縺帙k() { + var testcases = test_for('default') + , no_close = testcases[0] + , with_close = testcases[1] + , spy ; + spy = proxy(); + no_close.area.find('button, a').each(function(){ + $(this).click(function(event){event.preventDefault();}).click(); + equal(spy.callCount, 0 , no_close.msg); + }); + + spy = proxy(); + with_close.area.find('button, a').each(function(i){ + $(this).click(function(event){event.preventDefault();}).click(); + equal(spy.callCount, i + 1, with_close.msg); + }); + + } + + function 繧、繝吶Φ繝亥ョ夂セゥ縺ョ遒コ隱() { + var no_close = test_for("eventDef")[0] + , spy ; + spy = proxy(); + no_close.area.find('button, a').each(function(){ + $(this).click(function(event){event.preventDefault();}).click(); + equal(spy.callCount, 0 , no_close.msg); + }); + } + + + /** + * 繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + */ + function test_for(case_id) { + var $cases = $('.testcase.' + case_id); + return $cases.map(function(){ + return { + msg : $(this).text() + , area : $(this).closest('div') + }; + }); + } + + function proxy() { + var proxy = {callCount : 0}; + mock(function(e) { + proxy.callCount++; + return false; + }); + return proxy; + } + + function mock(fn) { + window.close = fn; + if (window.close == _window_Close) { + throw "can't override!"; + } + } + + function revert() { + window.close = _window_Close; + ok(window.close, 'windowClose繧貞セゥ蜈'); + } diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..9da2577 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,17 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..2f5f32a --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,9 @@ +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="java.util.*" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..bc00412 --- /dev/null +++ "b/node_modules/nablarch-template-base/ui_test/jsp/\343\203\206\343\203\263\343\203\227\343\203\254\343\203\274\343\203\210\346\213\241\345\274\265/\347\224\273\351\235\242\343\202\257\343\203\255\343\203\274\343\202\272\346\251\237\350\203\275/\346\214\207\345\256\232\343\201\252\343\201\227/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,36 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + +
+
+ nablarch_windowClose縺後↑縺蝣エ蜷医ッ繧ヲ繧」繝ウ繝峨え縺ッ繧ッ繝ュ繝シ繧コ縺励↑縺 + + + 謖螳壹↑縺 + +
+
+ nablarch_windowClose縺後≠繧句エ蜷医ッ髢峨§繧 + + +
+ class謖螳 +
+
+
+ 繝繝ウ繝励Ξ繝シ繝医ョwhenToClose繧呈欠螳壹@縺ェ縺縺溘a髢峨§縺ェ縺縲 + + +
+ event螳夂セゥ +
+
+ +
diff --git a/node_modules/nablarch-template-error/package.json b/node_modules/nablarch-template-error/package.json new file mode 100644 index 0000000..4ae419c --- /dev/null +++ b/node_modules/nablarch-template-error/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-template-error" + , "description": "繧ィ繝ゥ繝シ繝壹シ繧ク縺ョ繝繝ウ繝励Ξ繝シ繝" + , "version": "1.0.0" + , "_from" : "nablarch-template-error@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-template-error/ui_public/WEB-INF/tags/template/errorpage_template.tag b/node_modules/nablarch-template-error/ui_public/WEB-INF/tags/template/errorpage_template.tag new file mode 100644 index 0000000..2e98960 --- /dev/null +++ b/node_modules/nablarch-template-error/ui_public/WEB-INF/tags/template/errorpage_template.tag @@ -0,0 +1,25 @@ +<%-- + 蜈ア騾壹お繝ゥ繝シ逕サ髱「逕ィ繝繝ウ繝励Ξ繝シ繝 + @author Iwauo Tajima +--%> + +<%@tag pageEncoding="UTF-8" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="t" tagdir="/WEB-INF/tags/template" %> + +<%-- 繝壹シ繧ク繧ソ繧、繝医Ν --%> +<%@attribute name="title" required="true" rtexprvalue="true" %> + +<%-- 繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク --%> +<%@attribute name="errorMessageHtml" fragment="true" required="true" %> + + + + +
+ +
+
+
+ diff --git a/node_modules/nablarch-template-error/ui_public/css/template/errorpage.less b/node_modules/nablarch-template-error/ui_public/css/template/errorpage.less new file mode 100644 index 0000000..7ef8726 --- /dev/null +++ b/node_modules/nablarch-template-error/ui_public/css/template/errorpage.less @@ -0,0 +1,5 @@ +#content { + div.error-content { + margin-top: 30px; + } +} diff --git a/node_modules/nablarch-template-head/package.json b/node_modules/nablarch-template-head/package.json new file mode 100644 index 0000000..7a68997 --- /dev/null +++ b/node_modules/nablarch-template-head/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-template-head" + , "description": "HTML head繧ソ繧ー繧ウ繝ウ繝繝ウ繝" + , "version": "1.0.0" + , "_from" : "nablarch-template-head@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-template-head/ui_public/include/html_head.jsp b/node_modules/nablarch-template-head/ui_public/include/html_head.jsp new file mode 100644 index 0000000..bab6930 --- /dev/null +++ b/node_modules/nablarch-template-head/ui_public/include/html_head.jsp @@ -0,0 +1,14 @@ +<%@ page language="java" pageEncoding="UTF-8"%> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="device" tagdir="/WEB-INF/tags/device" %> + + +<n:write name="pageTitle" /> + + + + + + + diff --git a/node_modules/nablarch-template-js_include/package.json b/node_modules/nablarch-template-js_include/package.json new file mode 100644 index 0000000..7ea70b1 --- /dev/null +++ b/node_modules/nablarch-template-js_include/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-template-js_include" + , "description": "JavaScript繧、繝ウ繧ッ繝ォ繝シ繝芽ィュ螳" + , "version": "1.0.0" + , "_from" : "nablarch-template-js_include@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-template-js_include/ui_public/include/js_include.jsp b/node_modules/nablarch-template-js_include/ui_public/include/js_include.jsp new file mode 100644 index 0000000..7cbb918 --- /dev/null +++ b/node_modules/nablarch-template-js_include/ui_public/include/js_include.jsp @@ -0,0 +1,14 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + +<%-- !!! include/html_head.jsp 縺ョ險ュ螳壹b遒コ隱阪@縺ヲ荳九&縺縲 !!! --%> + + + +<%-- (譛ャ逡ェ逕ィ) + +--%> + +<%-- (髢狗匱逕ィ) !!!譛ャ逡ェ驕狗畑譎ゅッ莉・荳九ョ繧ソ繧ー繧貞ィ縺ヲ繧ウ繝。繝ウ繝医い繧ヲ繝医@縺ヲ荳九&縺縲!!! --%> + diff --git a/node_modules/nablarch-template-multicol-head/package.json b/node_modules/nablarch-template-multicol-head/package.json new file mode 100644 index 0000000..a72cb60 --- /dev/null +++ b/node_modules/nablarch-template-multicol-head/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-template-multicol-head" + , "description": "繝槭Ν繝√き繝ゥ繝繝ャ繧、繧「繧ヲ繝育畑HTML head繧ソ繧ー繧ウ繝ウ繝繝ウ繝" + , "version": "1.0.0" + , "_from" : "nablarch-template-multicol-head@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-template-multicol-head/ui_public/include/html_head.jsp b/node_modules/nablarch-template-multicol-head/ui_public/include/html_head.jsp new file mode 100644 index 0000000..f6cb6d7 --- /dev/null +++ b/node_modules/nablarch-template-multicol-head/ui_public/include/html_head.jsp @@ -0,0 +1,13 @@ +<%@ page language="java" pageEncoding="UTF-8"%> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<n:write name="pageTitle" /> + + + + + + + + diff --git a/node_modules/nablarch-template-multicol-head/ui_test/img/wide/high/multicol-test.png b/node_modules/nablarch-template-multicol-head/ui_test/img/wide/high/multicol-test.png new file mode 100644 index 0000000..431d7c6 Binary files /dev/null and b/node_modules/nablarch-template-multicol-head/ui_test/img/wide/high/multicol-test.png differ diff --git a/node_modules/nablarch-template-multicol-head/ui_test/img/wide/low/multicol-test.png b/node_modules/nablarch-template-multicol-head/ui_test/img/wide/low/multicol-test.png new file mode 100644 index 0000000..e5692bf Binary files /dev/null and b/node_modules/nablarch-template-multicol-head/ui_test/img/wide/low/multicol-test.png differ diff --git "a/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/index.jsp" "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/index.jsp" new file mode 100644 index 0000000..c0f05a0 --- /dev/null +++ "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/index.jsp" @@ -0,0 +1,37 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • 繝繝「逕サ髱「 +
      +
    • + +
    • +
    • + +
    • +
    +
  • +
  • + +
  • +
+
+
+
diff --git "a/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270/\343\203\206\343\202\271\343\203\210\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270/\343\203\206\343\202\271\343\203\210\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..0389665 --- /dev/null +++ "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270/\343\203\206\343\202\271\343\203\210\347\224\273\351\235\242.jsp" @@ -0,0 +1,17 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270/\343\203\206\343\202\271\343\203\210\347\224\273\351\235\242_\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270/\343\203\206\343\202\271\343\203\210\347\224\273\351\235\242_\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..385be01 --- /dev/null +++ "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270/\343\203\206\343\202\271\343\203\210\347\224\273\351\235\242_\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,65 @@ +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="java.util.Locale" %> +<%@ page import="java.util.Map" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + + ApplicationException exception = new ApplicationException(); + exception.addMessages(new ValidationResultMessage("input.text", new StringResource() { + @Override + public String getId() { + return "id"; + } + + @Override + public String getValue(Locale locale) { + return "繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ繧堤「コ隱阪☆繧九"; + } + }, new Object[0])); + request.setAttribute("nablarch_application_error", exception); + + // list + + List> list = new ArrayList>(); + list.add(new HashMap() {{ + put("name", "逕キ"); + put("value", "1"); + }}); + list.add(new HashMap() {{ + put("name", "螂ウ"); + put("value", "2"); + }}); + list.add(new HashMap() {{ + put("name", "豕穂ココ"); + put("value", "3"); + }}); + + request.setAttribute("list", list); + + Map input = new HashMap(); + input.put("textarea", "蜿ウ蛛エ縺ォ繝代せ繝ッ繝シ繝牙・蜉帶ャ縺ィ繧ウ繝シ繝峨メ繧ァ繝繧ッ繝懊ャ繧ッ繧ケ縺瑚。ィ遉コ縺輔l繧九h縲"); + input.put("label", "繝ゥ繝吶Ν陦ィ遉コ繧定。後≧縺ィ縺薙m"); + input.put("label_code", "value1-2"); + input.put("id", "1"); + input.put("value", "譎ョ騾夐宣"); + + request.setAttribute("input", input); + + + List> resultSet = new ArrayList>(); + Map row = new HashMap(); + row.put("col1", "繧ォ繝ゥ繝1"); + row.put("col2", "繧ォ繝ゥ繝2"); + resultSet.add(row); + resultSet.add(row); + request.setAttribute("resultSet", resultSet); + +%> + + diff --git "a/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270/\343\203\206\343\202\271\343\203\210\347\224\273\351\235\242_\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270/\343\203\206\343\202\271\343\203\210\347\224\273\351\235\242_\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..5e3232c --- /dev/null +++ "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270/\343\203\206\343\202\271\343\203\210\347\224\273\351\235\242_\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,263 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="layout" tagdir="/WEB-INF/tags/widget/layout" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + <%--**************************************** + 1陦檎岼 + ****************************************--%> + + + + 蜊倩。後ユ繧ュ繧ケ繝医→繧ォ繝ャ繝ウ繝繝シ縺ョ2縺、縺ョ鬆逶ョ縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + + <%--**************************************** + 2陦檎岼 + ****************************************--%> + + + + 繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ィ蜊倩。後ユ繧ュ繧ケ繝医r荳ヲ縺ケ縺ヲ陦ィ遉コ + + + + + + + + + + + + + + + <%--**************************************** + 3陦檎岼 + ****************************************--%> + + 縺薙%縺ォ繧ソ繧、繝医Ν縺瑚。ィ遉コ縺輔l繧 + + + + + + + + + + + + + <%--**************************************** + 4陦檎岼 + ****************************************--%> + + + + + + + + + + + + <%--**************************************** + 5陦檎岼 + ****************************************--%> + + + + + + + + + <%--**************************************** + 6陦檎岼 + ****************************************--%> + + + 縺繧阪s縺ェ繧ゅョ縺悟コ蜉帙〒縺阪k鬆伜沺 +
    +
  • hoge
  • +
  • fuga
  • +
+
+ + + +
+ + <%--**************************************** + 7陦檎岼 + ****************************************--%> + + + + + + + + <%--**************************************** + 8陦檎岼 + ****************************************--%> + + + + + + + 繝偵Φ繝医r蜊倡峡縺ァ菴ソ縺 + + + + + + <%--**************************************** + 9陦檎岼(繝繝シ繝悶Ν) + ****************************************--%> + + + + + + +
+ + <%--**************************************** + 10陦檎岼 + ****************************************--%> + + + +

+ + + + + +

+ + + + + diff --git "a/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\346\244\234\347\264\242\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\346\244\234\347\264\242\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..328e455 --- /dev/null +++ "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\346\244\234\347\264\242\347\224\273\351\235\242.jsp" @@ -0,0 +1,16 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git "a/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\346\244\234\347\264\242\347\224\273\351\235\242_\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\346\244\234\347\264\242\347\224\273\351\235\242_\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..fbbf760 --- /dev/null +++ "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\346\244\234\347\264\242\347\224\273\351\235\242_\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,84 @@ +<%@ page import="java.text.DateFormat" %> +<%@ page import="java.text.SimpleDateFormat" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.Calendar" %> +<%@ page import="java.util.Date" %> +<%@ page import="java.util.Enumeration" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Locale" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\346\244\234\347\264\242\347\224\273\351\235\242_\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\346\244\234\347\264\242\347\224\273\351\235\242_\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..093f79b --- /dev/null +++ "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\346\244\234\347\264\242\347\224\273\351\235\242_\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,81 @@ +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="layout" tagdir="/WEB-INF/tags/widget/layout" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..d7dd61d --- /dev/null +++ "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,16 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git "a/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\347\231\273\351\214\262\347\224\273\351\235\242_\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\347\231\273\351\214\262\347\224\273\351\235\242_\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..0ff3bc3 --- /dev/null +++ "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\347\231\273\351\214\262\347\224\273\351\235\242_\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,38 @@ +<%@ page import="java.util.Map" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\347\231\273\351\214\262\347\224\273\351\235\242_\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\347\231\273\351\214\262\347\224\273\351\235\242_\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..1469552 --- /dev/null +++ "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\347\231\273\351\214\262\347\224\273\351\235\242_\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,148 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="layout" tagdir="/WEB-INF/tags/widget/layout" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\347\242\272\350\252\215\347\224\273\351\235\242_\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\347\242\272\350\252\215\347\224\273\351\235\242_\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..cf8dd6c --- /dev/null +++ "b/node_modules/nablarch-template-multicol-head/ui_test/jsp/\343\203\236\343\203\253\343\203\201\343\202\253\343\203\251\343\203\240\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270/\347\242\272\350\252\215\347\224\273\351\235\242_\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git a/node_modules/nablarch-template-page/package.json b/node_modules/nablarch-template-page/package.json new file mode 100644 index 0000000..1d8c1da --- /dev/null +++ b/node_modules/nablarch-template-page/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-template-page" + , "description": "讌ュ蜍咏判髱「縺ョ繝繝ウ繝励Ξ繝シ繝" + , "version": "1.0.0" + , "_from" : "nablarch-template-page@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-template-page/ui_public/WEB-INF/tags/template/page_template.tag b/node_modules/nablarch-template-page/ui_public/WEB-INF/tags/template/page_template.tag new file mode 100644 index 0000000..4e0d007 --- /dev/null +++ b/node_modules/nablarch-template-page/ui_public/WEB-INF/tags/template/page_template.tag @@ -0,0 +1,91 @@ +<%----------------------------------------------------------------- + 讓呎コ匁・ュ蜍咏判髱「繝繝ウ繝励Ξ繝シ繝 (2繝壹う繝ウ/24繧ー繝ェ繝繝) + @author Iwauo Tajima +------------------------------------------------------------------%> + +<%@tag pageEncoding="UTF-8" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="t" tagdir="/WEB-INF/tags/template" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="逕サ髱「蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="noMenu" description="繧オ繧、繝峨Γ繝九Η繝シ繧帝撼陦ィ遉コ縺ォ縺吶k縺九←縺縺(繝繝輔か繝ォ繝:false)" rtexprvalue="true" %> +<%@ attribute name="confirmationPageTitle" description="遒コ隱咲判髱「蜷" %> +<%@ attribute name="topNavHtml" description="繝医ャ繝励リ繝薙ご繝シ繧キ繝ァ繝ウ鬆伜沺縺ョ蜀螳ケ" fragment="true" %> +<%@ attribute name="headerHtml" description="繝倥ャ繝繝シ鬆伜沺縺ョ蜀螳ケ" fragment="true" %> +<%@ attribute name="asideHtml" description="繧オ繧、繝峨さ繝ウ繝繝ウ繝鬆伜沺縺ョ蜀螳ケ" fragment="true" %> +<%@ attribute name="contentHtml" description="繝。繧、繝ウ繧ウ繝ウ繝繝ウ繝鬆伜沺縺ョ蜀螳ケ" fragment="true" required="true" %> +<%@ attribute name="footerHtml" description="繝輔ャ繧ソ繝シ鬆伜沺縺ョ蜀螳ケ" fragment="true" %> +<%@ attribute name="localCss" description="繝壹シ繧ク豈擦SS" fragment="true" %> +<%@ attribute name="localJs" description="繝壹シ繧ク豈捌S" fragment="true" %> +<%@ attribute name="remainSubWindow" description="逕サ髱「驕キ遘サ蠕後b髢峨§縺壹↓谿九☆繧オ繝悶え繧」繝ウ繝峨え蜷阪ョ繝ェ繧ケ繝(繧ォ繝ウ繝槫玄蛻繧)縲ゅョ繝輔か繝ォ繝医ッ遨コ譁蟄(蜈ィ縺ヲ縺ョ繧オ繝悶え繧」繝ウ繝峨え繧帝哩縺倥k)" %> +<%@ attribute name="tabindexOrder" description="繧ソ繝悶ョ驕キ遘サ鬆繧帝伜沺蜊倅ス阪〒螟画峩縺吶k縺溘a縺ョ鬆蠎(繧ォ繝ウ繝槫玄蛻繧)縲" %> +<%@ attribute name="whenToClose" description="逕サ髱「繧帝哩縺倥k繧、繝吶Φ繝亥シ上r謖螳壹☆繧九" rtexprvalue="true" %> +<%------------------------------------------------------------%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- 繧オ繧、繝峨さ繝ウ繝繝ウ繝鬆伜沺 --%> +

+ + + + + + + + +
+ + <%-- 繝。繧、繝ウ繧ウ繝ウ繝繝ウ繝鬆伜沺 --%> +
+ + +
+ + + + + + + + + + + + + + + + diff --git a/node_modules/nablarch-template-page/ui_public/WEB-INF/tags/template/subwindow_page_template.tag b/node_modules/nablarch-template-page/ui_public/WEB-INF/tags/template/subwindow_page_template.tag new file mode 100644 index 0000000..0930bf8 --- /dev/null +++ b/node_modules/nablarch-template-page/ui_public/WEB-INF/tags/template/subwindow_page_template.tag @@ -0,0 +1,73 @@ +<%----------------------------------------------------------------- + 讓呎コ門ュ千判髱「繝繝ウ繝励Ξ繝シ繝 (1繝壹う繝ウ/18繧ー繝ェ繝繝) + @author Hisaaki Sioiri +------------------------------------------------------------------%> + +<%@tag pageEncoding="UTF-8" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="t" tagdir="/WEB-INF/tags/template" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="逕サ髱「蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="topNavHtml" description="繝医ャ繝励リ繝薙ご繝シ繧キ繝ァ繝ウ鬆伜沺縺ョ蜀螳ケ" fragment="true" %> +<%@ attribute name="headerHtml" description="繝倥ャ繝繝シ鬆伜沺縺ョ蜀螳ケ" fragment="true" %> +<%@ attribute name="contentHtml" description="繝。繧、繝ウ繧ウ繝ウ繝繝ウ繝鬆伜沺縺ョ蜀螳ケ" fragment="true" required="true" %> +<%@ attribute name="footerHtml" description="繝輔ャ繧ソ繝シ鬆伜沺縺ョ蜀螳ケ" fragment="true" %> +<%@ attribute name="localCss" description="繝壹シ繧ク豈擦SS" fragment="true" %> +<%@ attribute name="localJs" description="繝壹シ繧ク豈捌S" fragment="true" %> +<%@ attribute name="tabindexOrder" description="繧ソ繝悶ョ驕キ遘サ鬆繧帝伜沺蜊倅ス阪〒螟画峩縺吶k縺溘a縺ョ鬆蠎(繧ォ繝ウ繝槫玄蛻繧)縲" %> +<%@ attribute name="whenToClose" description="逕サ髱「繧帝哩縺倥k繧、繝吶Φ繝亥シ上r謖螳壹☆繧九" rtexprvalue="true" %> +<%------------------------------------------------------------%> + + + + + + + + + + + + + + + + + + + + + + + + + + <%--繧オ繧、繝峨ヰ繝シ縺ッ髱櫁。ィ遉コ--%> +
+ <%-- 繝。繧、繝ウ繧ウ繝ウ繝繝ウ繝鬆伜沺 (18grid)--%> +
+ + +
+
+ + + + + + + + + + + + + + +
diff --git a/node_modules/nablarch-template-page/ui_public/css/template/page-compact.less b/node_modules/nablarch-template-page/ui_public/css/template/page-compact.less new file mode 100644 index 0000000..536c217 --- /dev/null +++ b/node_modules/nablarch-template-page/ui_public/css/template/page-compact.less @@ -0,0 +1,7 @@ +#content { + .grid-width-of(@contentGridSpan); + margin: 0 auto 70px; // margin-bottom for calendar UI + min-height: 350px; + padding-top: 10px; + padding-bottom: 10px; +} diff --git a/node_modules/nablarch-template-page/ui_public/css/template/page-multicol.less b/node_modules/nablarch-template-page/ui_public/css/template/page-multicol.less new file mode 100644 index 0000000..174c320 --- /dev/null +++ b/node_modules/nablarch-template-page/ui_public/css/template/page-multicol.less @@ -0,0 +1,8 @@ +#content { + width: @contentWidth; + float: left; + .grid-offset-3; + min-height: 350px; + padding-top: 10px; + padding-bottom: 50px; +} diff --git a/node_modules/nablarch-template-page/ui_public/css/template/page-narrow.less b/node_modules/nablarch-template-page/ui_public/css/template/page-narrow.less new file mode 100644 index 0000000..0be3aa4 --- /dev/null +++ b/node_modules/nablarch-template-page/ui_public/css/template/page-narrow.less @@ -0,0 +1,16 @@ +#content { + width: 100% !important; + min-width: @minWidth; + margin: 0 auto 50px; // margin-bottom for calendar UI + min-height: 350px; + padding-top: 10px; + padding-bottom: 10px; + + .title { + h1, h2, h3, h4, h5, h6 { + width: 97%; + margin: 10px auto 20px auto; + } + } +} + diff --git a/node_modules/nablarch-template-page/ui_public/css/template/page-wide.less b/node_modules/nablarch-template-page/ui_public/css/template/page-wide.less new file mode 100644 index 0000000..952abe2 --- /dev/null +++ b/node_modules/nablarch-template-page/ui_public/css/template/page-wide.less @@ -0,0 +1,7 @@ +#content { + .grid-col(@contentGridSpan); + .grid-offset-1; + min-height: 350px; + padding-top: 10px; + padding-bottom: 50px; +} diff --git a/node_modules/nablarch-template-page/ui_public/css/template/page.less b/node_modules/nablarch-template-page/ui_public/css/template/page.less new file mode 100644 index 0000000..bc0dac1 --- /dev/null +++ b/node_modules/nablarch-template-page/ui_public/css/template/page.less @@ -0,0 +1,22 @@ +#content { + + // 繧ソ繧、繝医Ν驛ィ縺ォ髢「縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + .title { + .content-row; + + h1, h2, h3, h4, h5, h6 { + margin: 10px auto 20px auto; + } + } + + // 豕ィ險倥↓髢「縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + .attention { + margin: 10px 0 0 0; + color: red; + font-weight: bold; + font-size: @smallerFontSize; + width: 100%; + } + +} + diff --git a/node_modules/nablarch-template-page/ui_public/include/app_error.jsp b/node_modules/nablarch-template-page/ui_public/include/app_error.jsp new file mode 100644 index 0000000..42a5cb7 --- /dev/null +++ b/node_modules/nablarch-template-page/ui_public/include/app_error.jsp @@ -0,0 +1,6 @@ +<%@ page language="java" pageEncoding="UTF-8"%> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch"%> + + + + diff --git "a/node_modules/nablarch-template-page/ui_test/jsp/\343\202\265\343\203\226\343\202\246\343\202\243\343\203\263\343\203\211\343\202\246/index.jsp" "b/node_modules/nablarch-template-page/ui_test/jsp/\343\202\265\343\203\226\343\202\246\343\202\243\343\203\263\343\203\211\343\202\246/index.jsp" new file mode 100644 index 0000000..6e8ba91 --- /dev/null +++ "b/node_modules/nablarch-template-page/ui_test/jsp/\343\202\265\343\203\226\343\202\246\343\202\243\343\203\263\343\203\211\343\202\246/index.jsp" @@ -0,0 +1,27 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + 譛ャ讖溯ス縺ョ繝繧ケ繝医〒縺ッ縲∝ュ千判髱「繝繝ウ繝励Ξ繝シ繝医ョ繝繧ケ繝医r螳滓命縺吶k縺溘a蟄千判髱「蛛エ縺ァ縺ッui_test_template縺ッ菴ソ逕ィ縺励↑縺縲 + +
    +
  • + + +
  • +
+
+
+
+
diff --git "a/node_modules/nablarch-template-page/ui_test/jsp/\343\202\265\343\203\226\343\202\246\343\202\243\343\203\263\343\203\211\343\202\246/\345\255\220\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-template-page/ui_test/jsp/\343\202\265\343\203\226\343\202\246\343\202\243\343\203\263\343\203\211\343\202\246/\345\255\220\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..5f79187 --- /dev/null +++ "b/node_modules/nablarch-template-page/ui_test/jsp/\343\202\265\343\203\226\343\202\246\343\202\243\343\203\263\343\203\211\343\202\246/\345\255\220\347\224\273\351\235\242.jsp" @@ -0,0 +1,90 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Locale" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> + + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/node_modules/nablarch-widget-box-base/package.json b/node_modules/nablarch-widget-box-base/package.json new file mode 100644 index 0000000..d2eff75 --- /dev/null +++ b/node_modules/nablarch-widget-box-base/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-box-base" + , "version": "1.0.0" + , "_from" : "nablarch-widget-box-base@1.0.0" + , "dependencies": { +} + , "description": "陦ィ遉コ鬆伜沺繧ヲ繧」繧ク繧ァ繝繝亥ア騾夐Κ蜩" +} diff --git a/node_modules/nablarch-widget-box-base/ui_local/js/jsp/taglib/box.js b/node_modules/nablarch-widget-box-base/ui_local/js/jsp/taglib/box.js new file mode 100644 index 0000000..8f3f31b --- /dev/null +++ b/node_modules/nablarch-widget-box-base/ui_local/js/jsp/taglib/box.js @@ -0,0 +1,16 @@ +/** + * Box縺ョ繧ィ繝溘Η繝シ繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * JSP繧ソ繧ー `` 縺ッ荳玖ィ倥ョ繧ソ繧ー繝輔ぃ繧、繝ォ縺ォ繧医j謠冗判縺輔l繧九 + * + * (繧オ繝シ繝悶Ξ繝繝医さ繝ウ繝繧ュ繧ケ繝)/WEB-INF/tags/widget/box/xxx.tag + * + * @module jsp.taglib + * @class jsp.taglib.box + * @author tani takanori + */ + +define(['jsp', 'sugar'], +function($) { 'use strict'; + return $.loadTagfile.fill('../WEB-INF/tags/widget/box/'); +}); diff --git a/node_modules/nablarch-widget-box-base/ui_public/css/box/base-compact.less b/node_modules/nablarch-widget-box-base/ui_public/css/box/base-compact.less new file mode 100644 index 0000000..1014bb3 --- /dev/null +++ b/node_modules/nablarch-widget-box-base/ui_public/css/box/base-compact.less @@ -0,0 +1,6 @@ +#content { + .box { + width: 100%; + float: left; + } +} diff --git a/node_modules/nablarch-widget-box-base/ui_public/css/box/base-multicol.less b/node_modules/nablarch-widget-box-base/ui_public/css/box/base-multicol.less new file mode 100644 index 0000000..a905503 --- /dev/null +++ b/node_modules/nablarch-widget-box-base/ui_public/css/box/base-multicol.less @@ -0,0 +1,6 @@ +#content { + .box { + float: left; + width: 100%; + } +} diff --git a/node_modules/nablarch-widget-box-base/ui_public/css/box/base-narrow.less b/node_modules/nablarch-widget-box-base/ui_public/css/box/base-narrow.less new file mode 100644 index 0000000..1014bb3 --- /dev/null +++ b/node_modules/nablarch-widget-box-base/ui_public/css/box/base-narrow.less @@ -0,0 +1,6 @@ +#content { + .box { + width: 100%; + float: left; + } +} diff --git a/node_modules/nablarch-widget-box-base/ui_public/css/box/base-wide.less b/node_modules/nablarch-widget-box-base/ui_public/css/box/base-wide.less new file mode 100644 index 0000000..e2cc0be --- /dev/null +++ b/node_modules/nablarch-widget-box-base/ui_public/css/box/base-wide.less @@ -0,0 +1,6 @@ +#content { + .box { + .grid-col(@fieldGridSpan); + float: left; + } +} diff --git "a/node_modules/nablarch-widget-box-base/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/index.jsp" "b/node_modules/nablarch-widget-box-base/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/index.jsp" new file mode 100644 index 0000000..10c2e3f --- /dev/null +++ "b/node_modules/nablarch-widget-box-base/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/index.jsp" @@ -0,0 +1,38 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • 繧ウ繝ウ繝繝ウ繝 +
      +
    • +
    +
  • +
  • 繧ソ繧、繝医Ν +
      +
    • +
    +
  • +
  • 逕サ蜒 +
      +
    • +
    • +
    +
  • +
+
+
+
diff --git a/node_modules/nablarch-widget-box-content/package.json b/node_modules/nablarch-widget-box-content/package.json new file mode 100644 index 0000000..16734f6 --- /dev/null +++ b/node_modules/nablarch-widget-box-content/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-box-content" +, "version": "1.0.0" +, "_from" : "nablarch-widget-box-content@1.0.0" +, "dependencies": { + } +, "description": "繧ウ繝ウ繝繝ウ繝逕ィ陦ィ遉コ鬆伜沺繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-box-content/ui_public/WEB-INF/tags/widget/box/content.tag b/node_modules/nablarch-widget-box-content/ui_public/WEB-INF/tags/widget/box/content.tag new file mode 100644 index 0000000..d804468 --- /dev/null +++ b/node_modules/nablarch-widget-box-content/ui_public/WEB-INF/tags/widget/box/content.tag @@ -0,0 +1,12 @@ +<%-- + 繝繧ュ繧ケ繝医ョ陦ィ遉コ + @author takanori tani +--%> + +<%@tag pageEncoding="UTF-8" description="譁險繧定。ィ遉コ縺吶k繧ヲ繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="cssClass" description="html縺ョclass螻樊ァ" rtexprvalue="true" %> + +
\ No newline at end of file diff --git a/node_modules/nablarch-widget-box-content/ui_public/css/box/content.less b/node_modules/nablarch-widget-box-content/ui_public/css/box/content.less new file mode 100644 index 0000000..7a78917 --- /dev/null +++ b/node_modules/nablarch-widget-box-content/ui_public/css/box/content.less @@ -0,0 +1,5 @@ +#content { + .contentBox { + margin-bottom: 21px; + } +} diff --git "a/node_modules/nablarch-widget-box-content/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\263\343\203\263\343\203\206\343\203\263\343\203\204/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-box-content/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\263\343\203\263\343\203\206\343\203\263\343\203\204/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..203227e --- /dev/null +++ "b/node_modules/nablarch-widget-box-content/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\263\343\203\263\343\203\206\343\203\263\343\203\204/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,41 @@ +runTest( + 蠢鬆亥ア樊ァ縺ョ縺ソ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 +); + + + function 蠢鬆亥ア樊ァ縺ョ縺ソ縺ョ繝繧ケ繝() { + var testcase = test_for('requireOnly')[0] + , node = testcase.node + , msg = testcase.msg; + + ok(node.is('.box'), msg + "class = box縺後≠繧九%縺ィ"); + ok(node.is('.contentBox'), msg + "class = contentBox縺後≠繧九%縺ィ"); + equal(node.text().trim(), "險倩シ峨@縺溷螳ケ縺後Γ繝繧サ繝シ繧ク縺悟コ蜉帙&繧後k縺薙→縲" ,msg + "蜀螳ケ縺ョ讀懆ィシ"); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var testcases = test_for('css-test') + , default_case = testcases[0] + , blank_case = testcases[1] + , underline_case = testcases[2]; + + ok(!default_case.node.is('.cssUnderline'), default_case.msg); + ok(!blank_case.node.is('.cssUnderline'), blank_case.msg); + ok(underline_case.node.is('.cssUnderline'), underline_case.msg); + } + + function test_for(case_id) { + var $all_node = $('span.test-case, div.box') + , $cases = $all_node.filter('.test-case.' + case_id); + + return $cases.map(function(i){ + var $case = $(this) + , index = $all_node.index($case) + , node = $all_node.get(index + 1); + return { + msg : $case.text().trim() + , node : $(node) + }; + }); + } \ No newline at end of file diff --git "a/node_modules/nablarch-widget-box-content/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\263\343\203\263\343\203\206\343\203\263\343\203\204/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-box-content/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\263\343\203\263\343\203\206\343\203\263\343\203\204/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..f08babb --- /dev/null +++ "b/node_modules/nablarch-widget-box-content/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\263\343\203\263\343\203\206\343\203\263\343\203\204/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,25 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + .cssUnderline { + text-decoration : underline; + } + + diff --git "a/node_modules/nablarch-widget-box-content/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\263\343\203\263\343\203\206\343\203\263\343\203\204/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-box-content/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\263\343\203\263\343\203\206\343\203\263\343\203\204/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..ece93c8 --- /dev/null +++ "b/node_modules/nablarch-widget-box-content/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\263\343\203\263\343\203\206\343\203\263\343\203\204/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,23 @@ +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="java.util.*" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-box-content/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\263\343\203\263\343\203\206\343\203\263\343\203\204/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-box-content/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\263\343\203\263\343\203\206\343\203\263\343\203\204/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..3e62c69 --- /dev/null +++ "b/node_modules/nablarch-widget-box-content/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\263\343\203\263\343\203\206\343\203\263\343\203\204/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,32 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + 繝。繝繧サ繝シ繧ク縺ョBody縺悟コ蜉帙&繧後k縺薙→縲 + + 險倩シ峨@縺溷螳ケ縺後Γ繝繧サ繝シ繧ク縺悟コ蜉帙&繧後k縺薙→縲 + + + cssClass螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医ョ繝繧ケ繝 + + class縺悟コ蜉帙&繧後※縺縺ェ縺縺薙→縲(荳狗キ壹′縺ェ縺縺薙→) + + + cssClass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医ョ繝繧ケ繝 + + class縺悟コ蜉帙&繧後※縺縺ェ縺縺薙→縲(荳狗キ壹′縺ェ縺縺薙→) + + + cssClass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医ョ繝繧ケ繝 + + class縺悟コ蜉帙&繧後k縺薙→縲(荳狗キ壹′縺ゅk縺薙→) + + + field:block縺ィ菴オ逕ィ縺励◆蝣エ蜷医ョ繝ャ繧、繧「繧ヲ繝医ョ遒コ隱 + + 謾ケ陦御ス咲スョ繧堤「コ縺九a繧九ョ縺溘a縺ョ譁遶縺ァ縺吶ゅΡ繧、繝芽。ィ遉コ縺ョ蝣エ蜷医√さ繝ウ繝代け繝郁。ィ遉コ縺ョ蝣エ蜷医√さ繝ウ繝繝ウ繝鬆伜沺縺九i縺ッ縺ソ蜃コ縺励※縺励∪繧上↑縺縺薙→繧堤「コ隱阪@縺ヲ縺上□縺輔>縲ゅリ繝ュ繝シ陦ィ遉コ縺ョ蝣エ蜷医↓縺ッ縲鬆伜沺繧貞ー上&縺上@縺溷エ蜷医↓繝繧ュ繧ケ繝医′隕句繧後↑縺縺薙→繧堤「コ隱阪@縺ヲ縺上□縺輔>縲 + + diff --git a/node_modules/nablarch-widget-box-img/package.json b/node_modules/nablarch-widget-box-img/package.json new file mode 100644 index 0000000..e7eb7bb --- /dev/null +++ b/node_modules/nablarch-widget-box-img/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-box-img" +, "version": "1.0.1" +, "_from" : "nablarch-widget-box-img@1.0.1" +, "dependencies": { + } +, "description": "逕サ蜒剰。ィ遉コ繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-box-img/ui_public/WEB-INF/tags/widget/box/img.tag b/node_modules/nablarch-widget-box-img/ui_public/WEB-INF/tags/widget/box/img.tag new file mode 100644 index 0000000..dc6f8b9 --- /dev/null +++ b/node_modules/nablarch-widget-box-img/ui_public/WEB-INF/tags/widget/box/img.tag @@ -0,0 +1,23 @@ +<%-- + 逕サ蜒剰。ィ遉コ逕ィ繧ヲ繧」繧ク繧ァ繝繝 + @author takanori tani +--%> + +<%@tag pageEncoding="UTF-8" description="逕サ蜒上r陦ィ遉コ縺吶k繧ヲ繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="cssClass" description="html縺ョclass螻樊ァ縲ゅ%縺ョ繧ヲ繧」繧ク繧ァ繝繝医ョ蜈ィ菴薙Λ繝繝代↓驕ゥ逕ィ縺輔l繧九" rtexprvalue="true" %> +<%@ attribute name="id" description="html縺ョid螻樊ァ縲ゅ%縺ョ繧ヲ繧」繧ク繧ァ繝繝医ョ蜈ィ菴薙Λ繝繝代↓驕ゥ逕ィ縺輔l繧九" rtexprvalue="true" %> +<%@ attribute name="file" description="陦ィ遉コ縺吶k逕サ蜒上ョ逶ク蟇セ繝代せ繧呈欠螳壹☆繧九" rtexprvalue="true" required="true"%> + + + +
+
+
\ No newline at end of file diff --git a/node_modules/nablarch-widget-box-img/ui_public/css/img/base-multicol.less b/node_modules/nablarch-widget-box-img/ui_public/css/img/base-multicol.less new file mode 100644 index 0000000..ae1b440 --- /dev/null +++ b/node_modules/nablarch-widget-box-img/ui_public/css/img/base-multicol.less @@ -0,0 +1,12 @@ +/** + * 繝槭Ν繝√Ξ繧、繧「繧ヲ繝医ョ蝣エ蜷医ョ謖螳壹 + */ +#content { + // JSP縺ォ縺ヲFix縺吶k諠ウ螳壹↑縺ョ縺ァ莉ョ鄂ョ縺阪↓縺吶k縲 + .box.imgWrapper { + div { + height : 10em; + width : 100%; + } + } +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-box-img/ui_public/css/img/base.less b/node_modules/nablarch-widget-box-img/ui_public/css/img/base.less new file mode 100644 index 0000000..df767e6 --- /dev/null +++ b/node_modules/nablarch-widget-box-img/ui_public/css/img/base.less @@ -0,0 +1,11 @@ +/** + * 逕サ蜒上ョ蝓コ譛ャ螳夂セゥ縲 + */ +#content { + .box.imgWrapper { + div { + background-size : contain; + background-repeat : no-repeat; + } + } +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-box-img/ui_public/css/img/narrow.less b/node_modules/nablarch-widget-box-img/ui_public/css/img/narrow.less new file mode 100644 index 0000000..8970b36 --- /dev/null +++ b/node_modules/nablarch-widget-box-img/ui_public/css/img/narrow.less @@ -0,0 +1,11 @@ +/** + * narrow陦ィ遉コ繝「繝シ繝臥畑縺ョ逕サ蜒上r螳夂セゥ縺吶k縲 + */ +#content { + .box.imgWrapper { + div { + height : 10em; + width : 100%; + } + } +} diff --git a/node_modules/nablarch-widget-box-img/ui_public/css/img/wide.less b/node_modules/nablarch-widget-box-img/ui_public/css/img/wide.less new file mode 100644 index 0000000..4c2d0b8 --- /dev/null +++ b/node_modules/nablarch-widget-box-img/ui_public/css/img/wide.less @@ -0,0 +1,11 @@ +/** + * wide, compact陦ィ遉コ繝「繝シ繝臥畑縺ョ逕サ蜒上r螳夂セゥ縺吶k縲 + */ + #content { + .box.imgWrapper { + div { + height : 10em; + width : 100%; + } + } +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-box-img/ui_public/js/nablarch/ui/ResponsibleImage.js b/node_modules/nablarch-widget-box-img/ui_public/js/nablarch/ui/ResponsibleImage.js new file mode 100644 index 0000000..2655ba8 --- /dev/null +++ b/node_modules/nablarch-widget-box-img/ui_public/js/nablarch/ui/ResponsibleImage.js @@ -0,0 +1,35 @@ +define([ + 'text!./ResponsibleImage.template' +, 'text!./ResponsibleImageUnsupportRatio.template' +, 'text!./ResponsibleImageUnsupportMatchMedia.template' +, 'jquery', 'sugar'], +function(template, unsupportDevicePixelRatio, unsupportMatchMedia, $) { 'use strict'; + /** + * 陦ィ遉コ繝「繝シ繝峨↓蟇セ蠢懊@縺溽判蜒丞譖ソ讖溯ス + * ===================================================== + * + * template縺ョ繝励Ξ繝シ繧ケ繝帙Ν繝繧堤スョ縺肴鋤縺医√Γ繝繧」繧「繧ッ繧ィ繝ェ縺ォ蟇セ蠢懊@縺溯レ譎ッ逕サ蜒上r險ュ螳壹☆繧九 + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * **nablarch_ResponsibleImage**繧呈欠螳壹@縺櫻ode縺ォ謖螳壹@縺溘が繝励す繝ァ繝ウ縺ョ蛟、繧偵ユ繝ウ繝励Ξ繝シ繝医ョ繝励Ξ繝シ繧ケ繝帙Ν繝縺ォ險ュ螳壹@縲 + * 繧ケ繧ソ繧、繝ォ縺ィ縺励※螳夂セゥ縺吶k縲 + * + */ + function responsibleImage() { + var $elements = $('.nablarch_ResponsibleImage') + , base = (window.devicePixelRatio) ? template + : (window.matchMedia || window.msMatchMedia || document.documentMode >= 9) ? unsupportDevicePixelRatio + : unsupportMatchMedia + , styles = Array.prototype.map.call($elements, createStyle); + $('head').append($('")); + /** + * Array.map 逕ィ縺ョ陬懷勧髢「謨ー縲 + * 蜷隕∫エ縺ョclass縺九i蜿門セ励@縺殪ption繧貞縺ォimg縺ョ繧ケ繧ソ繧、繝ォ繧堤函謌舌☆繧九 + */ + function createStyle(element) { + return base.assign($(element).widgetOption()); + } + } + + $(responsibleImage); +}); \ No newline at end of file diff --git a/node_modules/nablarch-widget-box-img/ui_public/js/nablarch/ui/ResponsibleImage.template b/node_modules/nablarch-widget-box-img/ui_public/js/nablarch/ui/ResponsibleImage.template new file mode 100644 index 0000000..306345f --- /dev/null +++ b/node_modules/nablarch-widget-box-img/ui_public/js/nablarch/ui/ResponsibleImage.template @@ -0,0 +1,28 @@ +@media screen and (min-width: 640px) and (-webkit-min-device-pixel-ratio:1.25) + , screen and (min-width: 640px) and (-moz-min-device-pixel-ratio:1.25) + , screen and (min-width: 640px) and (min-resolution:120dpi) { + #{id} > div { + background-image : url("{contextPath}/img/wide/high/{filepath}"); + } + } +@media screen and (max-width: 639px) and (-webkit-min-device-pixel-ratio:1.25) + , screen and (min-width: 639px) and (-moz-min-device-pixel-ratio:1.25) + , screen and (max-width: 639px) and (min-resolution:120dpi) { + #{id} > div { + background-image : url("{contextPath}/img/narrow/high/{filepath}"); + } +} +@media screen and (min-width: 640px) and (-webkit-max-device-pixel-ratio:1) + , screen and (min-width: 640px) and (-moz-max-device-pixel-ratio:1) + , screen and (min-width: 640px) and (max-resolution:96dpi) { + #{id} > div { + background-image : url("{contextPath}/img/wide/low/{filepath}") ; + } +} +@media screen and (max-width: 639px) and (-webkit-max-device-pixel-ratio:1) + , screen and (max-width: 639px) and (-moz-max-device-pixel-ratio:1) + , screen and (max-width: 639px) and (max-resolution:96dpi) { + #{id} > div { + background-image : url("{contextPath}/img/narrow/low/{filepath}") ; + } +} diff --git a/node_modules/nablarch-widget-box-img/ui_public/js/nablarch/ui/ResponsibleImageUnsupportMatchMedia.template b/node_modules/nablarch-widget-box-img/ui_public/js/nablarch/ui/ResponsibleImageUnsupportMatchMedia.template new file mode 100644 index 0000000..faa54c5 --- /dev/null +++ b/node_modules/nablarch-widget-box-img/ui_public/js/nablarch/ui/ResponsibleImageUnsupportMatchMedia.template @@ -0,0 +1,3 @@ +#{id} > div { + -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader( src='{contextPath}/img/wide/high/{filepath}', sizingMethod='scale')"; +} diff --git a/node_modules/nablarch-widget-box-img/ui_public/js/nablarch/ui/ResponsibleImageUnsupportRatio.template b/node_modules/nablarch-widget-box-img/ui_public/js/nablarch/ui/ResponsibleImageUnsupportRatio.template new file mode 100644 index 0000000..44ef9b1 --- /dev/null +++ b/node_modules/nablarch-widget-box-img/ui_public/js/nablarch/ui/ResponsibleImageUnsupportRatio.template @@ -0,0 +1,10 @@ +@media screen and (max-width: 639px) { + #{id} > div { + background-image : url("{contextPath}/img/narrow/high/{filepath}"); + } +} +@media screen and (min-width: 640px) { + #{id} > div { + background-image : url("{contextPath}/img/wide/high/{filepath}"); + } +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/narrow/high/test.png b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/high/test.png new file mode 100644 index 0000000..4d4cdb5 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/high/test.png differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/narrow/high/test_css.jpg b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/high/test_css.jpg new file mode 100644 index 0000000..d7ea0d0 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/high/test_css.jpg differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/narrow/high/test_html.jpg b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/high/test_html.jpg new file mode 100644 index 0000000..6aa3e16 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/high/test_html.jpg differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/narrow/high/test_owner.png b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/high/test_owner.png new file mode 100644 index 0000000..8b8a832 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/high/test_owner.png differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/narrow/low/test.png b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/low/test.png new file mode 100644 index 0000000..7b1a467 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/low/test.png differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/narrow/low/test_css.jpg b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/low/test_css.jpg new file mode 100644 index 0000000..d7ea0d0 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/low/test_css.jpg differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/narrow/low/test_html.jpg b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/low/test_html.jpg new file mode 100644 index 0000000..6aa3e16 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/low/test_html.jpg differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/narrow/low/test_owner.png b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/low/test_owner.png new file mode 100644 index 0000000..8b8a832 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/narrow/low/test_owner.png differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/wide/high/test.png b/node_modules/nablarch-widget-box-img/ui_test/img/wide/high/test.png new file mode 100644 index 0000000..431d7c6 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/wide/high/test.png differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/wide/high/test_css.jpg b/node_modules/nablarch-widget-box-img/ui_test/img/wide/high/test_css.jpg new file mode 100644 index 0000000..d7ea0d0 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/wide/high/test_css.jpg differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/wide/high/test_html.jpg b/node_modules/nablarch-widget-box-img/ui_test/img/wide/high/test_html.jpg new file mode 100644 index 0000000..6aa3e16 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/wide/high/test_html.jpg differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/wide/high/test_owner.png b/node_modules/nablarch-widget-box-img/ui_test/img/wide/high/test_owner.png new file mode 100644 index 0000000..8b8a832 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/wide/high/test_owner.png differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/wide/low/test.png b/node_modules/nablarch-widget-box-img/ui_test/img/wide/low/test.png new file mode 100644 index 0000000..e5692bf Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/wide/low/test.png differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/wide/low/test_css.jpg b/node_modules/nablarch-widget-box-img/ui_test/img/wide/low/test_css.jpg new file mode 100644 index 0000000..d7ea0d0 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/wide/low/test_css.jpg differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/wide/low/test_html.jpg b/node_modules/nablarch-widget-box-img/ui_test/img/wide/low/test_html.jpg new file mode 100644 index 0000000..6aa3e16 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/wide/low/test_html.jpg differ diff --git a/node_modules/nablarch-widget-box-img/ui_test/img/wide/low/test_owner.png b/node_modules/nablarch-widget-box-img/ui_test/img/wide/low/test_owner.png new file mode 100644 index 0000000..8b8a832 Binary files /dev/null and b/node_modules/nablarch-widget-box-img/ui_test/img/wide/low/test_owner.png differ diff --git "a/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..bdc0d9f --- /dev/null +++ "b/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,49 @@ +runTest( + 蠢鬆亥ア樊ァ縺ョ縺ソ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , file螻樊ァ縺ョ繝繧ケ繝 +); + + function 蠢鬆亥ア樊ァ縺ョ縺ソ縺ョ繝繧ケ繝() { + var testcase = test_for('requireTest')[0] + , msg = testcase.msg + , wrapper = testcase.node + , imgNode = wrapper.find('div'); + ok(wrapper.is('#logo_test') , msg + " wrapper 縺ォ ID縺瑚ィュ螳壹&繧後k縺薙→縲"); + ok(wrapper.is('.box.imgWrapper') , msg + " wrapper 縺ォ縺ッclass縺ォbox, imgWrapper縺悟コ蜉帙&繧後k縲"); + ok(imgNode.is('.nablarch_ResponsibleImage'), msg + "img node 縺ォ縺ッclass縺ォnablarch_ResponsibleImage縺悟コ蜉帙&繧後k縲"); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var testcases = test_for('cssClassTest') + , default_case = testcases[0] + , blank_case = testcases[1] + , set_case = testcases[2] + , testCss = '.cssBorder'; + + ok(!default_case.node.is(testCss), default_case.msg); + ok(!blank_case.node.is(testCss), blank_case.msg); + ok(set_case.node.is(testCss), set_case.msg); + } + + function file螻樊ァ縺ョ繝繧ケ繝() { + var testcase = test_for('fileTest')[0] + , imgNode = testcase.node.find('div'); + ok(imgNode.is('[class*="test_owner.png"]'), testcase.msg + " " + imgNode.attr('class')); + } + + + function test_for(case_id) { + var $all_node = $('span.test-case, div.box') + , $cases = $all_node.filter('.test-case.' + case_id); + + return $cases.map(function(i){ + var $case = $(this) + , index = $all_node.index($case) + , node = $all_node.get(index + 1); + return { + msg : $case.text().trim() + , node : $(node) + }; + }); + } \ No newline at end of file diff --git "a/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..71854c3 --- /dev/null +++ "b/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,42 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + .cssBorder { + padding : 3px 0; + border : black solid 1px; + } + #idTest { + border : green solid 3px; + } + #content #html_test_css_default .nablarch_ResponsibleImage, + #content #html_test_css_blank .nablarch_ResponsibleImage, + #content #html_test_css .nablarch_ResponsibleImage{ + width : 13em; + } + #content #owner_test .nablarch_ResponsibleImage { + width : 10em; + } + + #content .box.img .imageBackBlue { + border : blue solid 3px; + width : 30%; + } + + diff --git "a/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..ece93c8 --- /dev/null +++ "b/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,23 @@ +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="java.util.*" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..9df0871 --- /dev/null +++ "b/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,36 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝
+ background-image縺ァ陦ィ遉コ縺輔l繧九%縺ィ
+ narrow<=>compact, wide縺ァ逕サ蜒上′蛻繧頑崛繧上k
+ image縺ョ繧オ繧、繧コ縺碁←蛻縺ォ螟画峩縺輔l繧九%縺ィ +
+ + + + cssClass繧呈欠螳壹@縺ェ縺蝣エ蜷医√え繧」繧ク繧ァ繝繝医ョ繝ゥ繝繝代↓繧ッ繝ゥ繧ケ縺悟コ蜉帙&繧後↑縺縺薙→ + + + cssClass縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√え繧」繧ク繧ァ繝繝医ョ繝ゥ繝繝代↓繧ッ繝ゥ繧ケ縺悟コ蜉帙&繧後↑縺縺薙→ + + + cssClass繧呈欠螳壹@縺溷エ蜷医√え繧」繧ク繧ァ繝繝医ョ繝ゥ繝繝代↓繧ッ繝ゥ繧ケ縺悟コ蜉帙&繧後k縺薙→ + + + + file謖螳壹@縺溘ヱ繧ケ縺悟茜逕ィ縺輔l繧九%縺ィ縲 + + + + + diff --git "a/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\346\200\247\350\203\275\343\203\206\343\202\271\343\203\210.jsp" "b/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\346\200\247\350\203\275\343\203\206\343\202\271\343\203\210.jsp" new file mode 100644 index 0000000..bfdad83 --- /dev/null +++ "b/node_modules/nablarch-widget-box-img/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\347\224\273\345\203\217/\346\200\247\350\203\275\343\203\206\343\202\271\343\203\210.jsp" @@ -0,0 +1,122 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + .box { + padding : 3px 0; + border : black solid 1px; + } + + + 繧ヲ繧」繧ク繧ァ繝繝医r螟壹¥蛻ゥ逕ィ縺励◆蝣エ蜷医ョ譁蟄怜怜ヲ逅縺ョ諤ァ閭ス繧堤「コ隱阪☆繧九 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/node_modules/nablarch-widget-box-title/package.json b/node_modules/nablarch-widget-box-title/package.json new file mode 100644 index 0000000..f693f8e --- /dev/null +++ b/node_modules/nablarch-widget-box-title/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-box-title" +, "version": "1.0.0" +, "_from" : "nablarch-widget-box-title@1.0.0" +, "dependencies": { + } +, "description": "繧ソ繧、繝医Ν逕ィ陦ィ遉コ鬆伜沺繧ヲ繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-box-title/ui_public/WEB-INF/tags/widget/box/title.tag b/node_modules/nablarch-widget-box-title/ui_public/WEB-INF/tags/widget/box/title.tag new file mode 100644 index 0000000..f4d8ea2 --- /dev/null +++ b/node_modules/nablarch-widget-box-title/ui_public/WEB-INF/tags/widget/box/title.tag @@ -0,0 +1,14 @@ +<%-- + 繧ソ繧、繝医Ν繝繧ュ繧ケ繝医ョ陦ィ遉コ + @author takanori tani +--%> + +<%@tag pageEncoding="UTF-8" description="繧ソ繧、繝医Ν譁險繧定。ィ遉コ縺吶k繧ヲ繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="cssClass" description="html縺ョclass螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="id" description="html縺ョid螻樊ァ" rtexprvalue="true" %> + +
diff --git a/node_modules/nablarch-widget-box-title/ui_public/css/box/title.less b/node_modules/nablarch-widget-box-title/ui_public/css/box/title.less new file mode 100644 index 0000000..41950fc --- /dev/null +++ b/node_modules/nablarch-widget-box-title/ui_public/css/box/title.less @@ -0,0 +1,3 @@ +.titleBox { + font-weight: bold; +} diff --git "a/node_modules/nablarch-widget-box-title/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\277\343\202\244\343\203\210\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-box-title/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\277\343\202\244\343\203\210\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..e20a1aa --- /dev/null +++ "b/node_modules/nablarch-widget-box-title/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\277\343\202\244\343\203\210\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,52 @@ +runTest( + 蠢鬆亥ア樊ァ縺ョ縺ソ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 +); + + + function 蠢鬆亥ア樊ァ縺ョ縺ソ縺ョ繝繧ケ繝() { + var testcase = test_for('requireOnly')[0] + , node = testcase.node + , msg = testcase.msg; + + ok(node.is('.box'), msg + "class = box縺後≠繧九%縺ィ"); + ok(node.is('.titleBox'), msg + "class = titleBox縺後≠繧九%縺ィ"); + equal(node.text().trim(), "險倩シ峨@縺溷螳ケ縺後Γ繝繧サ繝シ繧ク縺悟コ蜉帙&繧後k縺薙→縲" ,msg + "蜀螳ケ縺ョ讀懆ィシ"); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var testcases = test_for('css-test') + , default_case = testcases[0] + , blank_case = testcases[1] + , underline_case = testcases[2]; + + ok(!default_case.node.is('.cssUnderline'), default_case.msg); + ok(!blank_case.node.is('.cssUnderline'), blank_case.msg); + ok(underline_case.node.is('.cssUnderline'), underline_case.msg); + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + var testcases = test_for('id-test') + , default_case = testcases[0] + , blank_case = testcases[1] + , set_case = testcases[2]; + ok(!default_case.node.attr('id'), default_case.msg); + ok(!blank_case.node.attr('id'), blank_case.msg); + ok(set_case.node.is('#idTest'), set_case.msg); + } + + function test_for(case_id) { + var $all_node = $('span.test-case, div.box') + , $cases = $all_node.filter('.test-case.' + case_id); + + return $cases.map(function(i){ + var $case = $(this) + , index = $all_node.index($case) + , node = $all_node.get(index + 1); + return { + msg : $case.text().trim() + , node : $(node) + }; + }); + } \ No newline at end of file diff --git "a/node_modules/nablarch-widget-box-title/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\277\343\202\244\343\203\210\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-box-title/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\277\343\202\244\343\203\210\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..fa6fe90 --- /dev/null +++ "b/node_modules/nablarch-widget-box-title/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\277\343\202\244\343\203\210\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,28 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + .cssUnderline { + text-decoration : underline; + } + #idTest{ + background-color : #CCC0B7; + } + + diff --git "a/node_modules/nablarch-widget-box-title/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\277\343\202\244\343\203\210\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-box-title/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\277\343\202\244\343\203\210\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..ece93c8 --- /dev/null +++ "b/node_modules/nablarch-widget-box-title/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\277\343\202\244\343\203\210\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,23 @@ +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="java.util.*" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-box-title/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\277\343\202\244\343\203\210\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-box-title/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\277\343\202\244\343\203\210\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..75f5a1c --- /dev/null +++ "b/node_modules/nablarch-widget-box-title/ui_test/jsp/\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\277\343\202\244\343\203\210\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,40 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + 繝。繝繧サ繝シ繧ク縺ョBody縺悟コ蜉帙&繧後k縺薙→縲 + + 險倩シ峨@縺溷螳ケ縺後Γ繝繧サ繝シ繧ク縺悟コ蜉帙&繧後k縺薙→縲 + + cssClass螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医ョ繝繧ケ繝 + + class縺悟コ蜉帙&繧後※縺縺ェ縺縺薙→縲(荳狗キ壹′縺ェ縺縺薙→) + + + cssClass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医ョ繝繧ケ繝 + + class縺悟コ蜉帙&繧後※縺縺ェ縺縺薙→縲(荳狗キ壹′縺ェ縺縺薙→) + + + cssClass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医ョ繝繧ケ繝 + + class縺悟コ蜉帙&繧後k縺薙→縲(荳狗キ壹′縺ゅk縺薙→) + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医ョ繝繧ケ繝 + id縺悟コ蜉帙&繧後↑縺縺薙→縲 + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医ョ繝繧ケ繝 + id縺悟コ蜉帙&繧後↑縺縺薙→縲 + + id螻樊ァ繧呈欠螳壹@縺溷エ蜷医ョ繝繧ケ繝 + id螻樊ァ縺ォ謖螳壹@縺溷、縺後Λ繝繝代ョ隕∫エ縺ョid螻樊ァ縺ォ蜃コ蜉帙&繧後k縺薙→縲 + + field:block縺ィ菴オ逕ィ縺励◆蝣エ蜷医ョ繝ャ繧、繧「繧ヲ繝医ョ遒コ隱 + + 謾ケ陦御ス咲スョ繧堤「コ縺九a繧九ョ縺溘a縺ョ譁遶縺ァ縺吶ゅΡ繧、繝芽。ィ遉コ縺ョ蝣エ蜷医√さ繝ウ繝代け繝郁。ィ遉コ縺ョ蝣エ蜷医√さ繝ウ繝繝ウ繝鬆伜沺縺九i縺ッ縺ソ蜃コ縺励※縺励∪繧上↑縺縺薙→繧堤「コ隱阪@縺ヲ縺上□縺輔>縲ゅリ繝ュ繝シ陦ィ遉コ縺ョ蝣エ蜷医↓縺ッ縲鬆伜沺繧貞ー上&縺上@縺溷エ蜷医↓繝繧ュ繧ケ繝医′隕句繧後↑縺縺薙→繧堤「コ隱阪@縺ヲ縺上□縺輔>縲 + + diff --git a/node_modules/nablarch-widget-button/package.json b/node_modules/nablarch-widget-button/package.json new file mode 100644 index 0000000..03d5b08 --- /dev/null +++ b/node_modules/nablarch-widget-button/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-button" +, "version": "1.0.1" +, "_from" : "nablarch-widget-button@1.0.1" +, "dependencies": { + } +, "description": "繝懊ち繝ウ繧ヲ繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-button/ui_local/js/jsp/taglib/button.js b/node_modules/nablarch-widget-button/ui_local/js/jsp/taglib/button.js new file mode 100644 index 0000000..d6cff12 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_local/js/jsp/taglib/button.js @@ -0,0 +1,15 @@ +/** + * 繝懊ち繝ウ繧ヲ繧」繧ク繧ァ繝繝医ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * JSP繧ソ繧ー `` 縺ッ荳玖ィ倥ョ繧ソ繧ー繝輔ぃ繧、繝ォ縺ォ繧医j謠冗判縺輔l繧九 + * + * (繧オ繝シ繝悶Ξ繝繝医さ繝ウ繝繧ュ繧ケ繝)/WEB-INF/tags/widget/button/xxx.tag + * + * @module jsp.taglib + * @class jsp.taglib.button + * @author Iwauo Tajima + */ +define(['jsp', 'sugar'], +function($) { 'use strict'; + return $.loadTagfile.fill('../WEB-INF/tags/widget/button/'); +}); diff --git a/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/back.tag b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/back.tag new file mode 100644 index 0000000..8f42b9e --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/back.tag @@ -0,0 +1,37 @@ +<%-- + 謌サ繧九懊ち繝ウ陦ィ遉コ + @author Hisaaki Sioiri +--%> +<%@ tag pageEncoding="UTF-8" description="謌サ繧九懊ち繝ウ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="label" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繝ゥ繝吶Ν繧定ィュ螳壹☆繧九ら怐逡・縺励◆蝣エ蜷医ッ縲√梧綾繧九" rtexprvalue="true" %> +<%@ attribute name="uri" description="驕キ遘サ蜈URI" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="size" description="繝懊ち繝ウ縺ョ陦ィ遉コ繧オ繧、繧コ(Grid謨ー)縲ゅョ繝輔か繝ォ繝医ッ3" rtexprvalue="true" %> +<%@ attribute name="disabled" rtexprvalue="true" description="繝懊ち繝ウ繧堤┌蜉ケ蛹悶☆繧九°蜷ヲ縺" %> + +<%@ attribute name="allowDoubleSubmission" description="2驥阪し繝悶Α繝繝医r險ア蜿ッ縺吶k縺句凄縺九Galse繧呈欠螳壹@縺溷エ蜷医ッ險ア蜿ッ縺励↑縺縲ゅョ繝輔か繝ォ繝医ッtrue" rtexprvalue="true" %> +<%@ attribute name="dummyUri" description="逕サ髱「險ュ險域凾縺ォ菴ソ逕ィ縺吶k驕キ遘サ蜈茨シ育エ呵茅螻縺ョ繧医≧縺ォ逕サ髱「驕キ遘サ縺吶kシ会シ域悽逡ェ迺ー蠅縺ァ縺ッ菴ソ逕ィ縺励↑縺シ" rtexprvalue="true" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> +<%@ attribute name="comment" description="縺薙ョ繝懊ち繝ウ繧呈款荳九@縺滄圀縺ョ繧、繝吶Φ繝域ヲりヲシ育判髱「鬆逶ョ螳夂セゥ縺ョ繧、繝吶Φ繝井ク隕ァ縺ァ縲∫判髱「繧、繝吶Φ繝域ヲりヲ√↓陦ィ遉コ縺輔l繧具シ" %> + + + + + + + + + diff --git a/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/base.tag b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/base.tag new file mode 100644 index 0000000..114768a --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/base.tag @@ -0,0 +1,40 @@ +<%-- + 繝懊ち繝ウ逕ィ縺ョ蜈ア騾壹ユ繝ウ繝励Ξ繝シ繝 + @author Hisaaki Sioiri +--%> + +<%@ tag pageEncoding="UTF-8" description="繝懊ち繝ウ逕ィ縺ョ蜈ア騾壹ユ繝シ繝ウ繝励Ξ繝シ繝医ち繧ー" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%@ attribute name="label" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繝ゥ繝吶Ν" rtexprvalue="true" required="true" %> +<%@ attribute name="uri" description="驕キ遘サ蜈URI" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="icon" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繧「繧、繧ウ繝ウ縺ョ逕サ蜒丞錐" rtexprvalue="true" %> +<%@ attribute name="size" description="繝懊ち繝ウ縺ョ陦ィ遉コ繧オ繧、繧コ(Grid謨ー)縲ゅョ繝輔か繝ォ繝医ッ3" rtexprvalue="true" %> +<%@ attribute name="disabled" rtexprvalue="true" description="繝懊ち繝ウ繧堤┌蜉ケ蛹悶☆繧九°蜷ヲ縺" %> +<%@ attribute name="bodyContent" fragment="true" required="true" description="繝懊ち繝ウ縺ョ繝懊ョ繧」驛ィ縺ォ蜃コ蜉帙☆繧句螳ケ" %> + +<%@ attribute name="allowDoubleSubmission" description="2驥阪し繝悶Α繝繝医r險ア蜿ッ縺吶k縺句凄縺九Galse繧呈欠螳壹@縺溷エ蜷医ッ險ア蜿ッ縺励↑縺縲ゅョ繝輔か繝ォ繝医ッtrue" rtexprvalue="true" %> +<%@ attribute name="displayMethod" description="繝ェ繧ッ繧ィ繧ケ繝医′蜃ヲ逅縺ァ縺阪↑縺蝣エ蜷医↓縺ゥ縺ョ繧医≧縺ォ陦ィ遉コ縺吶k縺九ゅョ繝輔か繝ォ繝医ッNORMAL" rtexprvalue="true" %> + + + + + + +
+ + + + + +
+
diff --git a/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/block.tag b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/block.tag new file mode 100644 index 0000000..b1161e0 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/block.tag @@ -0,0 +1,12 @@ +<%-- + 繝懊ち繝ウ隕∫エ驟咲スョ繝悶Ο繝繧ッ + @author Iwauo Tajima +--%> + +<%@tag pageEncoding="UTF-8" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +
+ +
diff --git a/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/cancel.tag b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/cancel.tag new file mode 100644 index 0000000..e959213 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/cancel.tag @@ -0,0 +1,37 @@ +<%-- + 繧ュ繝」繝ウ繧サ繝ォ繝懊ち繝ウ陦ィ遉コ + @author Hisaaki Sioiri +--%> +<%@tag pageEncoding="UTF-8" description="繧ュ繝」繝ウ繧サ繝ォ繝懊ち繝ウ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%@ attribute name="label" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繝ゥ繝吶Ν繧定ィュ螳壹☆繧九ら怐逡・縺励◆蝣エ蜷医ッ縲√後く繝」繝ウ繧サ繝ォ縲" rtexprvalue="true" %> +<%@ attribute name="uri" description="驕キ遘サ蜈URI" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="size" description="繝懊ち繝ウ縺ョ陦ィ遉コ繧オ繧、繧コ(Grid謨ー)縲ゅョ繝輔か繝ォ繝医ッ3" rtexprvalue="true" %> +<%@ attribute name="disabled" rtexprvalue="true" description="繝懊ち繝ウ繧堤┌蜉ケ蛹悶☆繧九°蜷ヲ縺" %> +<%@ attribute name="allowDoubleSubmission" description="2驥阪し繝悶Α繝繝医r險ア蜿ッ縺吶k縺句凄縺九Galse繧呈欠螳壹@縺溷エ蜷医ッ險ア蜿ッ縺励↑縺縲ゅョ繝輔か繝ォ繝医ッtrue" rtexprvalue="true" %> + +<%@ attribute name="dummyUri" description="逕サ髱「險ュ險域凾縺ォ菴ソ逕ィ縺吶k驕キ遘サ蜈茨シ育エ呵茅螻縺ョ繧医≧縺ォ逕サ髱「驕キ遘サ縺吶kシ会シ域悽逡ェ迺ー蠅縺ァ縺ッ菴ソ逕ィ縺励↑縺シ" rtexprvalue="true" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> +<%@ attribute name="comment" description="縺薙ョ繝懊ち繝ウ繧呈款荳九@縺滄圀縺ョ繧、繝吶Φ繝域ヲりヲシ育判髱「鬆逶ョ螳夂セゥ縺ョ繧、繝吶Φ繝井ク隕ァ縺ァ縲∫判髱「繧、繝吶Φ繝域ヲりヲ√↓陦ィ遉コ縺輔l繧具シ" %> + + + + + + + + diff --git a/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/check.tag b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/check.tag new file mode 100644 index 0000000..2e9d3da --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/check.tag @@ -0,0 +1,36 @@ +<%-- + 遒コ隱阪懊ち繝ウ陦ィ遉コ + @author Hisaaki Sioiri +--%> +<%@tag pageEncoding="UTF-8" description="遒コ隱阪懊ち繝ウ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="label" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繝ゥ繝吶Ν繧定ィュ螳壹☆繧九ら怐逡・縺励◆蝣エ蜷医ッ縲√檎「コ隱阪" rtexprvalue="true" %> +<%@ attribute name="uri" description="驕キ遘サ蜈URI" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="size" description="繝懊ち繝ウ縺ョ陦ィ遉コ繧オ繧、繧コ(Grid謨ー)縲ゅョ繝輔か繝ォ繝医ッ3" rtexprvalue="true" %> +<%@ attribute name="disabled" rtexprvalue="true" description="繝懊ち繝ウ繧堤┌蜉ケ蛹悶☆繧九°蜷ヲ縺" %> +<%@ attribute name="allowDoubleSubmission" description="2驥阪し繝悶Α繝繝医r險ア蜿ッ縺吶k縺句凄縺九Galse繧呈欠螳壹@縺溷エ蜷医ッ險ア蜿ッ縺励↑縺縲ゅョ繝輔か繝ォ繝医ッtrue" rtexprvalue="true" %> +<%@ attribute name="dummyUri" description="逕サ髱「險ュ險域凾縺ォ菴ソ逕ィ縺吶k驕キ遘サ蜈茨シ育エ呵茅螻縺ョ繧医≧縺ォ逕サ髱「驕キ遘サ縺吶kシ会シ域悽逡ェ迺ー蠅縺ァ縺ッ菴ソ逕ィ縺励↑縺シ" rtexprvalue="true" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> +<%@ attribute name="comment" description="縺薙ョ繝懊ち繝ウ繧呈款荳九@縺滄圀縺ョ繧、繝吶Φ繝域ヲりヲシ育判髱「鬆逶ョ螳夂セゥ縺ョ繧、繝吶Φ繝井ク隕ァ縺ァ縲∫判髱「繧、繝吶Φ繝域ヲりヲ√↓陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="lockTarget" description="謗剃サ門宛蠕。蟇セ雎。縺ィ縺ェ繧九ユ繝シ繝悶Ν蜷阪r謖螳壹☆繧九" %> + + + + + + + + diff --git a/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/close.tag b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/close.tag new file mode 100644 index 0000000..f7efc81 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/close.tag @@ -0,0 +1,34 @@ +<%-- + 髢峨§繧九懊ち繝ウ + @author tani takanori +--%> +<%@tag pageEncoding="UTF-8" description="髢峨§繧九懊ち繝ウ繧堤函謌舌☆繧九え繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="label" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繝ゥ繝吶Ν繧定ィュ螳壹☆繧九ら怐逡・縺励◆蝣エ蜷医ッ縲√碁哩縺倥k縲" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="size" description="繝懊ち繝ウ縺ョ陦ィ遉コ繧オ繧、繧コ(Grid謨ー)縲ゅョ繝輔か繝ォ繝医ッ3" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繝懊ち繝ウ繧帝撼豢サ諤ァ縺ォ縺吶k縲ゅョ繝輔か繝ォ繝医ッfalse" rtexprvalue="true" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> +<%@ attribute name="comment" description="縺薙ョ繝懊ち繝ウ繧呈款荳九@縺滄圀縺ョ繧、繝吶Φ繝域ヲりヲシ育判髱「鬆逶ョ螳夂セゥ縺ョ繧、繝吶Φ繝井ク隕ァ縺ァ縲∫判髱「繧、繝吶Φ繝域ヲりヲ√↓陦ィ遉コ縺輔l繧具シ" %> + + + + + + diff --git a/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/confirm.tag b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/confirm.tag new file mode 100644 index 0000000..3e9c715 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/confirm.tag @@ -0,0 +1,36 @@ +<%-- + 遒コ螳壹懊ち繝ウ陦ィ遉コ + @author Hisaaki Sioiri +--%> +<%@tag pageEncoding="UTF-8" description="遒コ螳壹懊ち繝ウ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="label" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繝ゥ繝吶Ν繧定ィュ螳壹☆繧九ら怐逡・縺励◆蝣エ蜷医ッ縲√檎「コ螳壹" rtexprvalue="true" %> +<%@ attribute name="uri" description="驕キ遘サ蜈URI" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="size" description="繝懊ち繝ウ縺ョ陦ィ遉コ繧オ繧、繧コ(Grid謨ー)縲ゅョ繝輔か繝ォ繝医ッ3" rtexprvalue="true" %> +<%@ attribute name="disabled" rtexprvalue="true" description="繝懊ち繝ウ繧堤┌蜉ケ蛹悶☆繧九°蜷ヲ縺" %> +<%@ attribute name="allowDoubleSubmission" description="2驥阪し繝悶Α繝繝医r險ア蜿ッ縺吶k縺句凄縺九Galse繧呈欠螳壹@縺溷エ蜷医ッ險ア蜿ッ縺励↑縺縲ゅョ繝輔か繝ォ繝医ッfalse" rtexprvalue="true" %> +<%@ attribute name="dummyUri" description="逕サ髱「險ュ險域凾縺ォ菴ソ逕ィ縺吶k驕キ遘サ蜈茨シ育エ呵茅螻縺ョ繧医≧縺ォ逕サ髱「驕キ遘サ縺吶kシ会シ域悽逡ェ迺ー蠅縺ァ縺ッ菴ソ逕ィ縺励↑縺シ" rtexprvalue="true" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> +<%@ attribute name="comment" description="縺薙ョ繝懊ち繝ウ繧呈款荳九@縺滄圀縺ョ繧、繝吶Φ繝域ヲりヲシ育判髱「鬆逶ョ螳夂セゥ縺ョ繧、繝吶Φ繝井ク隕ァ縺ァ縲∫判髱「繧、繝吶Φ繝域ヲりヲ√↓陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="lockTarget" description="謗剃サ門宛蠕。蟇セ雎。縺ィ縺ェ繧九ユ繝シ繝悶Ν蜷阪r謖螳壹☆繧九" %> + + + + + + + + diff --git a/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/delete.tag b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/delete.tag new file mode 100644 index 0000000..dffa005 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/delete.tag @@ -0,0 +1,37 @@ +<%-- + 蜑企勁繝懊ち繝ウ陦ィ遉コ + @author Hisaaki Sioiri +--%> +<%@ tag pageEncoding="UTF-8" description="蜑企勁繝懊ち繝ウ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%@ attribute name="label" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繝ゥ繝吶Ν繧定ィュ螳壹☆繧九ら怐逡・縺励◆蝣エ蜷医ッ縲√悟炎髯、縲" rtexprvalue="true" %> +<%@ attribute name="uri" description="驕キ遘サ蜈URI" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="size" description="繝懊ち繝ウ縺ョ陦ィ遉コ繧オ繧、繧コ(Grid謨ー)縲ゅョ繝輔か繝ォ繝医ッ3" rtexprvalue="true" %> +<%@ attribute name="disabled" rtexprvalue="true" description="繝懊ち繝ウ繧堤┌蜉ケ蛹悶☆繧九°蜷ヲ縺" %> +<%@ attribute name="allowDoubleSubmission" description="2驥阪し繝悶Α繝繝医r險ア蜿ッ縺吶k縺句凄縺九Galse繧呈欠螳壹@縺溷エ蜷医ッ險ア蜿ッ縺励↑縺縲ゅョ繝輔か繝ォ繝医ッtrue" rtexprvalue="true" %> +<%@ attribute name="dummyUri" description="逕サ髱「險ュ險域凾縺ォ菴ソ逕ィ縺吶k驕キ遘サ蜈茨シ育エ呵茅螻縺ョ繧医≧縺ォ逕サ髱「驕キ遘サ縺吶kシ会シ域悽逡ェ迺ー蠅縺ァ縺ッ菴ソ逕ィ縺励↑縺シ" rtexprvalue="true" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> +<%@ attribute name="comment" description="縺薙ョ繝懊ち繝ウ繧呈款荳九@縺滄圀縺ョ繧、繝吶Φ繝域ヲりヲシ育判髱「鬆逶ョ螳夂セゥ縺ョ繧、繝吶Φ繝井ク隕ァ縺ァ縲∫判髱「繧、繝吶Φ繝域ヲりヲ√↓陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="lockTarget" description="謗剃サ門宛蠕。蟇セ雎。縺ィ縺ェ繧九ユ繝シ繝悶Ν蜷阪r謖螳壹☆繧九" %> + + + + + + + + diff --git a/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/download.tag b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/download.tag new file mode 100644 index 0000000..b13c25b --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/download.tag @@ -0,0 +1,41 @@ +<%-- + 繝繧ヲ繝ウ繝ュ繝シ繝峨懊ち繝ウ + @author Iwauo Tajima +--%> +<%@tag pageEncoding="UTF-8" description="繝繧ヲ繝ウ繝ュ繝シ繝峨懊ち繝ウ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="label" rtexprvalue="true" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繝ゥ繝吶Ν" required="true" %> +<%@ attribute name="uri" rtexprvalue="true" description="繝繧ヲ繝ウ繝ュ繝シ繝臥畑繝ェ繧ッ繧ィ繧ケ繝医ョURI" required="true" %> +<%@ attribute name="id" rtexprvalue="true" description="HTML縺ョid螻樊ァ蛟、" %> +<%@ attribute name="cssClass" rtexprvalue="true" description="HTML縺ョclass螻樊ァ蛟、" %> +<%@ attribute name="size" description="繝懊ち繝ウ縺ョ陦ィ遉コ繧オ繧、繧コ(Grid謨ー)縲ゅョ繝輔か繝ォ繝医ッ3" rtexprvalue="true" %> +<%@ attribute name="disabled" rtexprvalue="true" description="繝懊ち繝ウ繧堤┌蜉ケ蛹悶☆繧九°蜷ヲ縺" %> +<%@ attribute name="allowDoubleSubmission" description="2驥阪し繝悶Α繝繝医r險ア蜿ッ縺吶k縺句凄縺九Galse繧呈欠螳壹@縺溷エ蜷医ッ險ア蜿ッ縺励↑縺縲ゅョ繝輔か繝ォ繝医ッtrue" rtexprvalue="true" %> +<%@ attribute name="dummyUri" description="逕サ髱「險ュ險域凾縺ォ菴ソ逕ィ縺吶k驕キ遘サ蜈茨シ医ム繧ヲ繝ウ繝ュ繝シ繝画凾縺ォ蟆ら畑逕サ髱「繧定。ィ遉コ縺吶k蝣エ蜷医↑縺ゥ縺ォ謖螳壹☆繧具シ会シ域悽逡ェ迺ー蠅縺ァ縺ッ菴ソ逕ィ縺励↑縺シ" rtexprvalue="true" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> +<%@ attribute name="comment" description="縺薙ョ繝懊ち繝ウ繧呈款荳九@縺滄圀縺ョ繧、繝吶Φ繝域ヲりヲシ育判髱「鬆逶ョ螳夂セゥ縺ョ繧、繝吶Φ繝井ク隕ァ縺ァ縲∫判髱「繧、繝吶Φ繝域ヲりヲ√↓陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="lockTarget" description="謗剃サ門宛蠕。蟇セ雎。縺ィ縺ェ繧九ユ繝シ繝悶Ν蜷阪r謖螳壹☆繧九" %> + + + + + + +
+ + + + + +
+
diff --git a/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/popup.tag b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/popup.tag new file mode 100644 index 0000000..055cdec --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/popup.tag @@ -0,0 +1,45 @@ +<%-- + 繝昴ャ繝励い繝繝礼判髱「逕ィ繝懊ち繝ウ陦ィ遉コ + @author Ryo Tanaka +--%> +<%@tag pageEncoding="UTF-8" description="驕キ遘サ蜈育判髱「繧呈眠隕上え繧」繝ウ繝峨え縺ァ陦ィ遉コ縺吶k縺溘a縺ョ繝懊ち繝ウ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝医" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%@ attribute name="label" rtexprvalue="true" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繝ゥ繝吶Ν" required="true" %> +<%@ attribute name="uri" rtexprvalue="true" description="驕キ遘サ蜈URI" required="true" %> +<%@ attribute name="disabled" rtexprvalue="true" description="繝懊ち繝ウ繧堤┌蜉ケ蛹悶☆繧九°蜷ヲ縺" %> +<%@ attribute name="id" rtexprvalue="true" description="HTML縺ョid螻樊ァ" %> +<%@ attribute name="popupWindowName" rtexprvalue="true" description="繝昴ャ繝励い繝繝励ョ繧ヲ繧」繝ウ繝峨え蜷" %> +<%@ attribute name="popupOption" rtexprvalue="true" description="繝昴ャ繝励い繝繝励ョ繧ェ繝励す繝ァ繝ウ諠蝣ア" %> +<%@ attribute name="cssClass" rtexprvalue="true" description="HTML縺ョclass螻樊ァ" %> +<%@ attribute name="icon" rtexprvalue="true" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繧「繧、繧ウ繝ウ縺ョ逕サ蜒丞錐" %> +<%@ attribute name="size" rtexprvalue="true" description="繝懊ち繝ウ縺ョ陦ィ遉コ繧オ繧、繧コ(Grid謨ー)縲ゅョ繝輔か繝ォ繝医ッ3" %> +<%@ attribute name="dummyUri" rtexprvalue="true" description="逕サ髱「險ュ險域凾縺ォ菴ソ逕ィ縺吶k驕キ遘サ蜈茨シ育エ呵茅螻縺ョ繧医≧縺ォ逕サ髱「驕キ遘サ縺吶kシ会シ域悽逡ェ迺ー蠅縺ァ縺ッ菴ソ逕ィ縺励↑縺シ" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> +<%@ attribute name="comment" description="縺薙ョ繝懊ち繝ウ繧呈款荳九@縺滄圀縺ョ繧、繝吶Φ繝域ヲりヲシ育判髱「鬆逶ョ螳夂セゥ縺ョ繧、繝吶Φ繝井ク隕ァ縺ァ縲∫判髱「繧、繝吶Φ繝域ヲりヲ√↓陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="lockTarget" description="謗剃サ門宛蠕。蟇セ雎。縺ィ縺ェ繧九ユ繝シ繝悶Ν蜷阪r謖螳壹☆繧九"%> + + + + + + +
+ + + + + +
+
diff --git a/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/search.tag b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/search.tag new file mode 100644 index 0000000..1043328 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/search.tag @@ -0,0 +1,36 @@ +<%-- + 讀懃エ「繝懊ち繝ウ陦ィ遉コ + @author Hisaaki Sioiri +--%> +<%@ tag pageEncoding="UTF-8" description="讀懃エ「繝懊ち繝ウ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="label" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繝ゥ繝吶Ν繧定ィュ螳壹☆繧九ら怐逡・縺励◆蝣エ蜷医ッ縲√梧、懃エ「縲" rtexprvalue="true" %> +<%@ attribute name="uri" description="驕キ遘サ蜈URI" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="size" description="繝懊ち繝ウ縺ョ陦ィ遉コ繧オ繧、繧コ(Grid謨ー)縲ゅョ繝輔か繝ォ繝医ッ3" rtexprvalue="true" %> +<%@ attribute name="disabled" rtexprvalue="true" description="繝懊ち繝ウ繧堤┌蜉ケ蛹悶☆繧九°蜷ヲ縺" %> +<%@ attribute name="allowDoubleSubmission" description="2驥阪し繝悶Α繝繝医r險ア蜿ッ縺吶k縺句凄縺九Galse繧呈欠螳壹@縺溷エ蜷医ッ險ア蜿ッ縺励↑縺縲ゅョ繝輔か繝ォ繝医ッtrue" rtexprvalue="true" %> +<%@ attribute name="dummyUri" description="逕サ髱「險ュ險域凾縺ォ菴ソ逕ィ縺吶k驕キ遘サ蜈茨シ育エ呵茅螻縺ョ繧医≧縺ォ逕サ髱「驕キ遘サ縺吶kシ会シ域悽逡ェ迺ー蠅縺ァ縺ッ菴ソ逕ィ縺励↑縺シ" rtexprvalue="true" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> +<%@ attribute name="comment" description="縺薙ョ繝懊ち繝ウ繧呈款荳九@縺滄圀縺ョ繧、繝吶Φ繝域ヲりヲシ育判髱「鬆逶ョ螳夂セゥ縺ョ繧、繝吶Φ繝井ク隕ァ縺ァ縲∫判髱「繧、繝吶Φ繝域ヲりヲ√↓陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="lockTarget" description="謗剃サ門宛蠕。蟇セ雎。縺ィ縺ェ繧九ユ繝シ繝悶Ν蜷阪r謖螳壹☆繧九" %> + + + + + + + + diff --git a/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/submit.tag b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/submit.tag new file mode 100644 index 0000000..4672cc1 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/submit.tag @@ -0,0 +1,40 @@ +<%-- + 繝懊ち繝ウ陦ィ遉コ + @author Iwauo Tajima +--%> +<%@tag pageEncoding="UTF-8" description="繝懊ち繝ウ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝医" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%@ attribute name="label" rtexprvalue="true" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繝ゥ繝吶Ν" required="true" %> +<%@ attribute name="uri" rtexprvalue="true" description="驕キ遘サ蜈URI" required="true" %> +<%@ attribute name="disabled" rtexprvalue="true" description="繝懊ち繝ウ繧堤┌蜉ケ蛹悶☆繧九°蜷ヲ縺" %> +<%@ attribute name="id" rtexprvalue="true" description="HTML縺ョid螻樊ァ" %> +<%@ attribute name="cssClass" rtexprvalue="true" description="HTML縺ョclass螻樊ァ" %> +<%@ attribute name="size" rtexprvalue="true" description="繝懊ち繝ウ縺ョ陦ィ遉コ繧オ繧、繧コ(Grid謨ー)縲ゅョ繝輔か繝ォ繝医ッ3"%> +<%@ attribute name="icon" rtexprvalue="true" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繧「繧、繧ウ繝ウ縺ョ逕サ蜒丞錐" %> +<%@ attribute name="dummyUri" rtexprvalue="true" description="逕サ髱「險ュ險域凾縺ォ菴ソ逕ィ縺吶k驕キ遘サ蜈茨シ育エ呵茅螻縺ョ繧医≧縺ォ逕サ髱「驕キ遘サ縺吶kシ会シ域悽逡ェ迺ー蠅縺ァ縺ッ菴ソ逕ィ縺励↑縺シ" %> +<%@ attribute name="allowDoubleSubmission" description="2驥阪し繝悶Α繝繝医r險ア蜿ッ縺吶k縺句凄縺九Galse繧呈欠螳壹@縺溷エ蜷医ッ險ア蜿ッ縺励↑縺縲ゅョ繝輔か繝ォ繝医ッtrue" rtexprvalue="true" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> +<%@ attribute name="comment" description="縺薙ョ繝懊ち繝ウ繧呈款荳九@縺滄圀縺ョ繧、繝吶Φ繝域ヲりヲシ育判髱「鬆逶ョ螳夂セゥ縺ョ繧、繝吶Φ繝井ク隕ァ縺ァ縲∫判髱「繧、繝吶Φ繝域ヲりヲ√↓陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="lockTarget" description="謗剃サ門宛蠕。蟇セ雎。縺ィ縺ェ繧九ユ繝シ繝悶Ν蜷阪r謖螳壹☆繧九"%> + + + + + + + + + diff --git a/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/update.tag b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/update.tag new file mode 100644 index 0000000..60a97d1 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/WEB-INF/tags/widget/button/update.tag @@ -0,0 +1,38 @@ +<%-- + 譖エ譁ー繝懊ち繝ウ陦ィ遉コ + @author Hisaaki Sioiri +--%> +<%@tag pageEncoding="UTF-8" description="譖エ譁ー繝懊ち繝ウ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%@ attribute name="label" description="繝懊ち繝ウ縺ォ陦ィ遉コ縺吶k繝ゥ繝吶Ν繧定ィュ螳壹☆繧九ら怐逡・縺励◆蝣エ蜷医ッ縲√梧峩譁ー縲" rtexprvalue="true" %> +<%@ attribute name="uri" description="驕キ遘サ蜈URI" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="size" description="繝懊ち繝ウ縺ョ陦ィ遉コ繧オ繧、繧コ(Grid謨ー)縲ゅョ繝輔か繝ォ繝医ッ3" rtexprvalue="true" %> +<%@ attribute name="disabled" rtexprvalue="true" description="繝懊ち繝ウ繧堤┌蜉ケ蛹悶☆繧九°蜷ヲ縺" %> +<%@ attribute name="allowDoubleSubmission" description="2驥阪し繝悶Α繝繝医r險ア蜿ッ縺吶k縺句凄縺九Galse繧呈欠螳壹@縺溷エ蜷医ッ險ア蜿ッ縺励↑縺縲ゅョ繝輔か繝ォ繝医ッtrue" rtexprvalue="true" %> +<%@ attribute name="dummyUri" description="逕サ髱「險ュ險域凾縺ォ菴ソ逕ィ縺吶k驕キ遘サ蜈茨シ育エ呵茅螻縺ョ繧医≧縺ォ逕サ髱「驕キ遘サ縺吶kシ会シ域悽逡ェ迺ー蠅縺ァ縺ッ菴ソ逕ィ縺励↑縺シ" rtexprvalue="true" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> +<%@ attribute name="comment" description="縺薙ョ繝懊ち繝ウ繧呈款荳九@縺滄圀縺ョ繧、繝吶Φ繝域ヲりヲシ育判髱「鬆逶ョ螳夂セゥ縺ョ繧、繝吶Φ繝井ク隕ァ縺ァ縲∫判髱「繧、繝吶Φ繝域ヲりヲ√↓陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="lockTarget" description="謗剃サ門宛蠕。蟇セ雎。縺ィ縺ェ繧九ユ繝シ繝悶Ν蜷阪r謖螳壹☆繧九" %> + + + + + + + + + diff --git a/node_modules/nablarch-widget-button/ui_public/css/button/base-compact.less b/node_modules/nablarch-widget-button/ui_public/css/button/base-compact.less new file mode 100644 index 0000000..c1333d6 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/css/button/base-compact.less @@ -0,0 +1,20 @@ +#content { + .control { + .grid-width-of(@contentGridSpan); + text-align: center; + margin: 0 auto 35px auto; + padding-top: 30px; + } + div.buttonWrapper { + margin: 5px 3px; + button { + .grid-col(@buttonGridSpan); + margin: 0; + // 繝繧ヲ繝ウ繝ュ繝シ繝峨懊ち繝ウ縺ッ縲√Λ繝吶Ν縺碁聞縺縺ョ縺ァ蟆代@螟ァ縺阪¥縺吶k縲 + &.download { + .grid-col(@buttonGridSpan + 2); + margin: 0; + } + } + } +} diff --git a/node_modules/nablarch-widget-button/ui_public/css/button/base-multicol.less b/node_modules/nablarch-widget-button/ui_public/css/button/base-multicol.less new file mode 100644 index 0000000..d88f0a4 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/css/button/base-multicol.less @@ -0,0 +1,16 @@ +#content { + .control { + .grid-width-of(@contentGridSpan); + text-align: center; + margin: 0 auto 35px auto; + padding-top: 30px; + } + + .layout.content-row { + div.buttonWrapper { + margin:5px 0 !important; + text-align: center; + float:left; + } + } +} diff --git a/node_modules/nablarch-widget-button/ui_public/css/button/base-narrow.less b/node_modules/nablarch-widget-button/ui_public/css/button/base-narrow.less new file mode 100644 index 0000000..304a005 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/css/button/base-narrow.less @@ -0,0 +1,51 @@ +#content { + .control { + margin: 50px auto 35px auto; + .grid-width-of(@inputGridSpan); + + /** + * 繝翫Ο繝シ陦ィ遉コ繝「繝シ繝峨〒縺ッ逕サ髱「驕キ遘サ繝懊ち繝ウ縺ョ蟷繧貞・蜉幃逶ョ縺ョ蟷(315px)縺ォ荳閾エ縺輔○繧九 + * 縺セ縺溘∬ェ、謫堺ス懊ョ逋コ逕溘r菴取ク帙☆繧九◆繧√√懊ち繝ウ蟷繧貞コ縺上☆繧九 + */ + div.buttonWrapper { + position: absolute; + left: 0; + button { + padding: 5px 0; + .grid-width-of(@inputGridSpan); + margin: 0; + } + &:nth-last-child(2) { + top: 0; + } + &:nth-last-child(4) { + top: 40px; + } + &:nth-last-child(6) { + top: 80px; + } + &:nth-last-child(8) { + top: 120px; + } + &:nth-last-child(10) { + top: 160px; + } + &:nth-last-child(12) { + top: 200px; + } + &:nth-last-child(14) { + top: 240px; + } + &:nth-last-child(16) { + top: 280px; + } + &:nth-last-child(18) { + top: 320px; + } + } + div.pillar { + display: block !important; + height: 40px; + } + } +} diff --git a/node_modules/nablarch-widget-button/ui_public/css/button/base-wide.less b/node_modules/nablarch-widget-button/ui_public/css/button/base-wide.less new file mode 100644 index 0000000..db7b768 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/css/button/base-wide.less @@ -0,0 +1,19 @@ +#content { + .control { + .grid-width-of(@contentGridSpan); + text-align: center; + margin: 0 auto 35px auto; + padding-top: 30px; + } + div.buttonWrapper { + button { + .grid-col(@buttonGridSpan); + margin: 0; + // 繝繧ヲ繝ウ繝ュ繝シ繝峨懊ち繝ウ縺ッ縲√Λ繝吶Ν縺碁聞縺縺ョ縺ァ蟆代@螟ァ縺阪¥縺吶k縲 + &.download { + .grid-col(@buttonGridSpan + 2); + margin: 0; + } + } + } +} diff --git a/node_modules/nablarch-widget-button/ui_public/css/button/base.less b/node_modules/nablarch-widget-button/ui_public/css/button/base.less new file mode 100644 index 0000000..f8c8da9 --- /dev/null +++ b/node_modules/nablarch-widget-button/ui_public/css/button/base.less @@ -0,0 +1,28 @@ +#content { + .control { + .content-row; + + div.pillar { + display : none; + } + } + + div.buttonWrapper { + float: none; + display: inline-block; + margin: 5px 3px; + + // buttonWrapper蜀縺ョbutton縺ォ蟇セ縺励※縺ッ繝槭シ繧ク繝ウ繧貞叙繧峨↑縺縺ァ縲 + // buttonWrapper縺ォ繝槭シ繧ク繝ウ繧偵▽縺代k縲 + // + // IE9縺ァ縺ッ縲∝酔荳隕∫エ縺ォborder-radius縺ィfilter繧偵°縺代k縺ィ譛溷セ騾壹j謠冗判縺輔l縺ェ縺縺溘a縲 + // button縺ィbuttonWrapper縺ォ蛻縺代※filter縺ィborder-radius繧偵@縺ヲ縺繧九 + // 縺昴ョ縺溘a縲|utton縺ィbuttonWrapper縺ョ髢薙↓繝槭シ繧ク繝ウ縺後≠繧九→縲∵悄蠕騾壹j隗剃クク縺ォ縺ェ縺」縺ヲ縺上l縺ェ縺縲 + button { + float : none; + } + border-radius : 20px; + overflow: hidden; + padding: 0; + } +} diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/index.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/index.jsp" new file mode 100644 index 0000000..deac2db --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/index.jsp" @@ -0,0 +1,46 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • <%-- 髢峨§繧九懊ち繝ウ縺ェ縺ョ縺ァ譁ー隕冗判髱「 --%> +
+
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • <%-- 髢峨§繧九懊ち繝ウ縺ェ縺ョ縺ァ譁ー隕冗判髱「 --%> +
+
    +
  • +
+ +
+
+
diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\202\255\343\203\243\343\203\263\343\202\273\343\203\253\343\203\234\343\202\277\343\203\263.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\202\255\343\203\243\343\203\263\343\202\273\343\203\253\343\203\234\343\202\277\343\203\263.jsp" new file mode 100644 index 0000000..6d30dc5 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\202\255\343\203\243\343\203\263\343\202\273\343\203\253\343\203\234\343\202\277\343\203\263.jsp" @@ -0,0 +1,336 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + #cancel-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲後く繝」繝ウ繧サ繝ォ縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲後く繝」繝ウ繧サ繝ォ縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + + + + if (nablarch_submission_info) { + $('button').each(function () { + var $button = $(this); + var name = $button.attr('name'); + var $form = $button.parents('form'); + var formName = $form.attr('name'); + if (nablarch_submission_info[formName]) { + var allowDoubleSubmission = nablarch_submission_info[formName][name]['allowDoubleSubmission']; + $button.parent('div.buttonWrapper').after($('').text('allowDoubleSubmission = [' + allowDoubleSubmission + + ']')); + } + }); + } + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\202\255\343\203\243\343\203\263\343\202\273\343\203\253\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\202\255\343\203\243\343\203\263\343\202\273\343\203\253\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..b2434d4 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\202\255\343\203\243\343\203\263\343\202\273\343\203\253\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,121 @@ + runTest( + label螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝 + , 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var size_prefix = ".grid-col-" + , defaults = { + label : "繧ュ繝」繝ウ繧サ繝ォ", + size : ":not([class *= grid-col-])" + }; + + function label螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('label-test') + , label_default = cases[0] + , label_blank = cases[1] + , label_set = cases[2]; + equal($.trim(label_default.label.text()), defaults.label, label_default.testcase); + equal($.trim(label_blank.label.text()), defaults.label, label_blank.testcase); + equal($.trim(label_set.label.text()), "繧繧√k", label_set.testcase); + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('id-test') + , id_default = cases[0] + , id_blank = cases[1] + , id_set = cases[2]; + + ok(!id_default.button.attr('id'), id_default.testcase); + ok(!id_blank.button.attr('id'), id_blank.testcase); + ok(id_set.button.attr('id'), id_set.testcase); + equal(id_set.button.attr('id'), "cancel-id", id_set.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('cssClass-test') + , cssclass_default = cases[0] + , cssclass_blank = cases[1] + , cssclass_set = cases[2] + , test_css = ".button-white"; + + ok(!cssclass_default.button.is(test_css), cssclass_default.testcase); + ok(!cssclass_blank.button.is(test_css) , cssclass_blank.testcase); + ok(cssclass_set.button.is(test_css) , cssclass_set.testcase); + } + + function size螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('size-test') + , size_default = cases[0] + , size_blank = cases[1] + , size_set = cases[2]; + + ok(size_default.button.is(defaults.size), size_default.testcase); + ok(size_blank.button.is(defaults.size), size_blank.testcase); + ok(size_set.button.is(size_prefix + '6'), size_set.testcase); + } + + function disabled螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('disabled-test') + , disabled_default = cases[0] + , disabled_blank = cases[1] + , disabled_false = cases[2] + , disabled_true = cases[3]; + + ok(!disabled_default.button.attr('disabled'), disabled_default.testcase); + ok(!disabled_blank.button.attr('disabled'), disabled_blank.testcase); + ok(!disabled_false.button.attr('disabled'), disabled_false.testcase); + ok(disabled_true.button.attr('disabled'), disabled_true.testcase); + } + + function allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('allowDoubleSubmission-test') + , double_submit_default = cases[0] + , double_submit_blank = cases[1] + , double_submit_true = cases[2] + , double_submit_false = cases[3]; + + ok(isAllowedDoubleSubmit(double_submit_default), double_submit_default.testcase); + ok(isAllowedDoubleSubmit(double_submit_blank), double_submit_blank.testcase); + ok(isAllowedDoubleSubmit(double_submit_true), double_submit_true.testcase); + ok(!isAllowedDoubleSubmit(double_submit_false), double_submit_false.testcase); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var cases = test_for('default_value-test') + , require_only = cases[0]; + + equal($.trim(require_only.label.text()), defaults.label, require_only.testcase + "[label]"); + ok(require_only.button.is(defaults.size), require_only.testcase + "[size]"); + ok(isAllowedDoubleSubmit(require_only), require_only.testcase + "[doubleSubmit]"); + ok(!require_only.button.attr('disabled'), require_only.testcase + "[disabled]"); + } + + /** + * 繧ュ繝」繝ウ繧サ繝ォ繝懊ち繝ウ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $nodes = $('span.test-case.' + case_id + ' + div.control') + , $cases = $('span.test-case.' + case_id); + return $nodes.map(function(i, e) { + return { testcase : $.trim($($cases.get(i)).text()), + label : $(e).find('div.buttonWrapper'), + button : $(e).find('button').first()}; + }); + } + + function isAllowedDoubleSubmit(testcase) { + var $button = testcase.button + , name = $button.attr('name') + , formName = $button.closest('form').attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['allowDoubleSubmission']; + } + throw Error('can\'t get submmision info'); + } diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\202\255\343\203\243\343\203\263\343\202\273\343\203\253\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\202\255\343\203\243\343\203\263\343\202\273\343\203\253\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..b62a648 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\202\255\343\203\243\343\203\263\343\202\273\343\203\253\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,38 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + request.setAttribute("serverMode", true); +%> + + + + + #cancel-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\202\255\343\203\243\343\203\263\343\202\273\343\203\253\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\202\255\343\203\243\343\203\263\343\202\273\343\203\253\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..d382ec1 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\202\255\343\203\243\343\203\263\343\202\273\343\203\253\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,287 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲後く繝」繝ウ繧サ繝ォ縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲後く繝」繝ウ繧サ繝ォ縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\200\343\202\246\343\203\263\343\203\255\343\203\274\343\203\211\343\203\234\343\202\277\343\203\263.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\200\343\202\246\343\203\263\343\203\255\343\203\274\343\203\211\343\203\234\343\202\277\343\203\263.jsp" new file mode 100644 index 0000000..e0ae14f --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\200\343\202\246\343\203\263\343\203\255\343\203\274\343\203\211\343\203\234\343\202\277\343\203\263.jsp" @@ -0,0 +1,303 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + #download-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + + + + $('button').each(function() { + var $button = $(this); + var name = $button.attr('name'); + var $form = $button.parents('form'); + var formName = $form.attr('name'); + if (nablarch_submission_info[formName]) { + var allowDoubleSubmission = nablarch_submission_info[formName][name]['allowDoubleSubmission']; + $button.parent('div.buttonWrapper').after($('').text('allowDoubleSubmission = [' + allowDoubleSubmission +']')); + } + }); + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\200\343\202\246\343\203\263\343\203\255\343\203\274\343\203\211\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\200\343\202\246\343\203\263\343\203\255\343\203\274\343\203\211\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..9811fe0 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\200\343\202\246\343\203\263\343\203\255\343\203\274\343\203\211\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,108 @@ + runTest( + id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝 + , 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var size_prefix = ".grid-col-" + , defaults = { + size : ":not([class *= grid-col-])" + }; + + function id螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('id-test') + , id_default = cases[0] + , id_blank = cases[1] + , id_set = cases[2]; + + ok(!id_default.button.attr('id'), id_default.testcase); + ok(!id_blank.button.attr('id'), id_blank.testcase); + ok(id_set.button.attr('id'), id_set.testcase); + equal(id_set.button.attr('id'), "download-id", id_set.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('cssClass-test') + , cssclass_default = cases[0] + , cssclass_blank = cases[1] + , cssclass_set = cases[2] + , test_css = ".button-white"; + + ok(!cssclass_default.button.is(test_css), cssclass_default.testcase); + ok(!cssclass_blank.button.is(test_css) , cssclass_blank.testcase); + ok(cssclass_set.button.is(test_css) , cssclass_set.testcase); + } + + function size螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('size-test') + , size_default = cases[0] + , size_blank = cases[1] + , size_set = cases[2]; + + ok(size_default.button.is(defaults.size), size_default.testcase); + ok(size_blank.button.is(defaults.size), size_blank.testcase); + ok(size_set.button.is(size_prefix + '6'), size_set.testcase); + } + + function disabled螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('disabled-test') + , disabled_default = cases[0] + , disabled_blank = cases[1] + , disabled_false = cases[2] + , disabled_true = cases[3]; + + ok(!disabled_default.button.attr('disabled'), disabled_default.testcase); + ok(!disabled_blank.button.attr('disabled'), disabled_blank.testcase); + ok(!disabled_false.button.attr('disabled'), disabled_false.testcase); + ok(disabled_true.button.attr('disabled'), disabled_true.testcase); + } + + function allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('allowDoubleSubmission-test') + , double_submit_default = cases[0] + , double_submit_blank = cases[1] + , double_submit_true = cases[2] + , double_submit_false = cases[3]; + + ok(isAllowedDoubleSubmit(double_submit_default), double_submit_default.testcase); + ok(isAllowedDoubleSubmit(double_submit_blank), double_submit_blank.testcase); + ok(isAllowedDoubleSubmit(double_submit_true), double_submit_true.testcase); + ok(!isAllowedDoubleSubmit(double_submit_false), double_submit_false.testcase); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var cases = test_for('default_value-test') + , require_only = cases[0]; + + ok(require_only.button.is(defaults.size), require_only.testcase + "[size]"); + ok(isAllowedDoubleSubmit(require_only), require_only.testcase + "[doubleSubmit]"); + ok(!require_only.button.attr('disabled'), require_only.testcase + "[disabled]"); + } + + /** + * 繝繧ヲ繝ウ繝ュ繝シ繝峨懊ち繝ウ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $nodes = $('span.test-case.' + case_id + ' + div.control') + , $cases = $('span.test-case.' + case_id); + return $nodes.map(function(i, e) { + return { testcase : $.trim($($cases.get(i)).text()), + label : $(e).find('div.buttonWrapper'), + button : $(e).find('button').first()}; + }); + } + + function isAllowedDoubleSubmit(testcase) { + var $button = testcase.button + , name = $button.attr('name') + , formName = $button.closest('form').attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['allowDoubleSubmission']; + } + throw Error('can\'t get submmision info'); + } diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\200\343\202\246\343\203\263\343\203\255\343\203\274\343\203\211\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\200\343\202\246\343\203\263\343\203\255\343\203\274\343\203\211\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..9a51ea1 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\200\343\202\246\343\203\263\343\203\255\343\203\274\343\203\211\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,38 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + request.setAttribute("serverMode", true); +%> + + + + + #download-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\200\343\202\246\343\203\263\343\203\255\343\203\274\343\203\211\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\200\343\202\246\343\203\263\343\203\255\343\203\274\343\203\211\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..0e8d9a5 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\200\343\202\246\343\203\263\343\203\255\343\203\274\343\203\211\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,259 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\234\343\202\277\343\203\263\344\270\246\345\210\227\350\241\250\347\244\272.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\234\343\202\277\343\203\263\344\270\246\345\210\227\350\241\250\347\244\272.jsp" new file mode 100644 index 0000000..547a333 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\234\343\202\277\343\203\263\344\270\246\345\210\227\350\241\250\347\244\272.jsp" @@ -0,0 +1,47 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + 縺吶∋縺ヲ縺ョ繝懊ち繝ウ繧剃クヲ縺ケ縺ヲ陦ィ遉コ +
    +
  • 繝ッ繧、繝芽。ィ遉コシ壼承竊貞キヲ縺ョ鬆
  • +
  • 繧ウ繝ウ繝代け繝郁。ィ遉コシ壼承竊貞キヲ縺ョ鬆
  • +
  • 繝翫Ο繝シ陦ィ遉コシ壻ク銀剃ク翫ョ鬆縺ァ陦ィ遉コ縺輔l繧九%縺ィ縲
  • +
+ +

繧ュ繝」繝ウ繧サ繝ォ 竊 謌サ繧 竊 遒コ隱 竊 遒コ螳

+ + + + + + +

蜑企勁 竊 繝繧ヲ繝ウ繝ュ繝シ繝 竊 繧オ繝悶え繧」繝ウ繝峨え

+ + + + + +

讀懃エ「 竊 繧オ繝悶Α繝繝 竊 譖エ譁ー 竊 髢峨§繧

+ + + + + + + +
+
+ +
diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\234\343\202\277\343\203\263.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\234\343\202\277\343\203\263.jsp" new file mode 100644 index 0000000..f7e37c9 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\234\343\202\277\343\203\263.jsp" @@ -0,0 +1,321 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + #popup-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + icon螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√い繧、繧ウ繝ウ縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + + + icon螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√い繧、繧ウ繝ウ縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + + + icon螻樊ァ繧呈欠螳壹@縺溷エ蜷医√い繧、繧ウ繝ウ縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + + + popupOption繧呈欠螳壹@縺ェ縺蝣エ蜷医√が繝励す繝ァ繝ウ縺ェ縺励〒繧ヲ繧」繝ウ繝峨え縺碁幕縺九l繧九%縺ィ + + + + + + + + popupOption縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√が繝励す繝ァ繝ウ縺ェ縺励〒繧ヲ繧」繝ウ繝峨え縺碁幕縺九l繧九%縺ィ + + + + + + + + popupOption繧呈欠螳壹@縺溷エ蜷医√◎縺ョ繧ェ繝励す繝ァ繝ウ縺ァ繧ヲ繧」繝ウ繝峨え縺碁幕縺九l繧九%縺ィ + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..b53e075 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,132 @@ + runTest( + id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , icon螻樊ァ縺ョ繝繧ケ繝 + , popupOption螻樊ァ縺ョ繝繧ケ繝 + , 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var size_prefix = ".grid-col-" + , defaults = { + size : ":not([class *= grid-col-])" + }; + + function id螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('id-test') + , id_default = cases[0] + , id_blank = cases[1] + , id_set = cases[2]; + + ok(!id_default.button.attr('id'), id_default.testcase); + ok(!id_blank.button.attr('id'), id_blank.testcase); + ok(id_set.button.attr('id'), id_set.testcase); + equal(id_set.button.attr('id'), "popup-id", id_set.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('cssClass-test') + , cssclass_default = cases[0] + , cssclass_blank = cases[1] + , cssclass_set = cases[2] + , test_css = ".button-white"; + + ok(!cssclass_default.button.is(test_css), cssclass_default.testcase); + ok(!cssclass_blank.button.is(test_css) , cssclass_blank.testcase); + ok(cssclass_set.button.is(test_css) , cssclass_set.testcase); + } + + function size螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('size-test') + , size_default = cases[0] + , size_blank = cases[1] + , size_set = cases[2]; + + ok(size_default.button.is(defaults.size), size_default.testcase); + ok(size_blank.button.is(defaults.size), size_blank.testcase); + ok(size_set.button.is(size_prefix + '6'), size_set.testcase); + } + + function disabled螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('disabled-test') + , disabled_default = cases[0] + , disabled_blank = cases[1] + , disabled_false = cases[2] + , disabled_true = cases[3]; + + ok(!disabled_default.button.attr('disabled'), disabled_default.testcase); + ok(!disabled_blank.button.attr('disabled'), disabled_blank.testcase); + ok(!disabled_false.button.attr('disabled'), disabled_false.testcase); + ok(disabled_true.button.attr('disabled'), disabled_true.testcase); + } + + function icon螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('icon-test') + , icon_default = cases[0] + , icon_blank = cases[1] + , icon_set = cases[2]; + + ok(!icon_default.button.find('i').is('.fa.fa-twitter'), icon_default.testcase); + ok(!icon_blank.button.find('i').is('.fa.fa-twitter'), icon_blank.testcase); + ok(icon_set.button.find('i').is('.fa.fa-twitter'), icon_set.testcase); + + } + + function popupOption螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('popupOption-test') + , popup_default = cases[0] + , popup_blank = cases[1] + , popup_set = cases[2] + , popupOption = function(button) { + var $button = $(button) + , name = $button.attr('name') + , $form = $button.parents('form') + , formName = $form.attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['popupOption']; + } + } + , assert = function (testcase, option) { + equal(popupOption(testcase.button), option, testcase.testcase); + }; + + assert(popup_default, ""); + assert(popup_blank, ""); + assert(popup_set, "menubar=no, width=100, height=100"); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var cases = test_for('default_value-test') + , require_only = cases[0]; + + equal($.trim(require_only.label.text()), "驥題檮讖滄未讀懃エ「", require_only.testcase + "[label]"); + ok(require_only.button.is(defaults.size), require_only.testcase + "[size]"); + ok(isAllowedDoubleSubmit(require_only), require_only.testcase + "[doubleSubmit]"); + ok(!require_only.button.attr('disabled'), require_only.testcase + "[disabled]"); + } + + /** + * 繝昴ャ繝励い繝繝励懊ち繝ウ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $nodes = $('span.test-case.' + case_id + ' + div.control') + , $cases = $('span.test-case.' + case_id); + return $nodes.map(function(i, e) { + return { testcase : $.trim($($cases.get(i)).text()), + label : $(e).find('div.buttonWrapper'), + button : $(e).find('button').first()}; + }); + } + + function isAllowedDoubleSubmit(testcase) { + var $button = testcase.button + , name = $button.attr('name') + , formName = $button.closest('form').attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['allowDoubleSubmission']; + } + throw Error('can\'t get submmision info'); + } diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..8963cb7 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,38 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + request.setAttribute("serverMode", true); +%> + + + + + #popup-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..391a4f7 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,289 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + icon螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√い繧、繧ウ繝ウ縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + + + icon螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√い繧、繧ウ繝ウ縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + + + icon螻樊ァ繧呈欠螳壹@縺溷エ蜷医√い繧、繧ウ繝ウ縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + + + popupOption繧呈欠螳壹@縺ェ縺蝣エ蜷医√が繝励す繝ァ繝ウ縺ェ縺励〒繧ヲ繧」繝ウ繝峨え縺碁幕縺九l繧九%縺ィ + + + + + + + + popupOption縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√が繝励す繝ァ繝ウ縺ェ縺励〒繧ヲ繧」繝ウ繝峨え縺碁幕縺九l繧九%縺ィ + + + + + + + + popupOption繧呈欠螳壹@縺溷エ蜷医√◎縺ョ繧ェ繝励す繝ァ繝ウ縺ァ繧ヲ繧」繝ウ繝峨え縺碁幕縺九l繧九%縺ィ + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\345\211\212\351\231\244\343\203\234\343\202\277\343\203\263.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\345\211\212\351\231\244\343\203\234\343\202\277\343\203\263.jsp" new file mode 100644 index 0000000..85f2be1 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\345\211\212\351\231\244\343\203\234\343\202\277\343\203\263.jsp" @@ -0,0 +1,333 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + #delete-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲悟炎髯、縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲悟炎髯、縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + + + + $('button').each(function() { + var $button = $(this); + var name = $button.attr('name'); + var $form = $button.parents('form'); + var formName = $form.attr('name'); + if (nablarch_submission_info[formName]) { + var allowDoubleSubmission = nablarch_submission_info[formName][name]['allowDoubleSubmission']; + $button.parent('div.buttonWrapper').after($('').text('allowDoubleSubmission = [' + allowDoubleSubmission + ']')); + } + }); + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\345\211\212\351\231\244\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\345\211\212\351\231\244\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..87d1d38 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\345\211\212\351\231\244\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,121 @@ + runTest( + label螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝 + , 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var size_prefix = ".grid-col-" + , defaults = { + label : "蜑企勁", + size : ":not([class *= grid-col-])" + }; + + function label螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('label-test') + , label_default = cases[0] + , label_blank = cases[1] + , label_set = cases[2]; + equal($.trim(label_default.label.text()), defaults.label, label_default.testcase); + equal($.trim(label_blank.label.text()), defaults.label, label_blank.testcase); + equal($.trim(label_set.label.text()), "豸医☆", label_set.testcase); + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('id-test') + , id_default = cases[0] + , id_blank = cases[1] + , id_set = cases[2]; + + ok(!id_default.button.attr('id'), id_default.testcase); + ok(!id_blank.button.attr('id'), id_blank.testcase); + ok(id_set.button.attr('id'), id_set.testcase); + equal(id_set.button.attr('id'), "delete-id", id_set.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('cssClass-test') + , cssclass_default = cases[0] + , cssclass_blank = cases[1] + , cssclass_set = cases[2] + , test_css = ".button-white"; + + ok(!cssclass_default.button.is(test_css), cssclass_default.testcase); + ok(!cssclass_blank.button.is(test_css) , cssclass_blank.testcase); + ok(cssclass_set.button.is(test_css) , cssclass_set.testcase); + } + + function size螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('size-test') + , size_default = cases[0] + , size_blank = cases[1] + , size_set = cases[2]; + + ok(size_default.button.is(defaults.size), size_default.testcase); + ok(size_blank.button.is(defaults.size), size_blank.testcase); + ok(size_set.button.is(size_prefix + '6'), size_set.testcase); + } + + function disabled螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('disabled-test') + , disabled_default = cases[0] + , disabled_blank = cases[1] + , disabled_false = cases[2] + , disabled_true = cases[3]; + + ok(!disabled_default.button.attr('disabled'), disabled_default.testcase); + ok(!disabled_blank.button.attr('disabled'), disabled_blank.testcase); + ok(!disabled_false.button.attr('disabled'), disabled_false.testcase); + ok(disabled_true.button.attr('disabled'), disabled_true.testcase); + } + + function allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('allowDoubleSubmission-test') + , double_submit_default = cases[0] + , double_submit_blank = cases[1] + , double_submit_true = cases[2] + , double_submit_false = cases[3]; + + ok(isAllowedDoubleSubmit(double_submit_default), double_submit_default.testcase); + ok(isAllowedDoubleSubmit(double_submit_blank), double_submit_blank.testcase); + ok(isAllowedDoubleSubmit(double_submit_true), double_submit_true.testcase); + ok(!isAllowedDoubleSubmit(double_submit_false), double_submit_false.testcase); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var cases = test_for('default_value-test') + , require_only = cases[0]; + + equal($.trim(require_only.label.text()), defaults.label, require_only.testcase + "[label]"); + ok(require_only.button.is(defaults.size), require_only.testcase + "[size]"); + ok(isAllowedDoubleSubmit(require_only), require_only.testcase + "[doubleSubmit]"); + ok(!require_only.button.attr('disabled'), require_only.testcase + "[disabled]"); + } + + /** + * 蜑企勁繝懊ち繝ウ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $nodes = $('span.test-case.' + case_id + ' + div.control') + , $cases = $('span.test-case.' + case_id); + return $nodes.map(function(i, e) { + return { testcase : $.trim($($cases.get(i)).text()), + label : $(e).find('div.buttonWrapper'), + button : $(e).find('button').first()}; + }); + } + + function isAllowedDoubleSubmit(testcase) { + var $button = testcase.button + , name = $button.attr('name') + , formName = $button.closest('form').attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['allowDoubleSubmission']; + } + throw Error('can\'t get submmision info'); + } diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\345\211\212\351\231\244\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\345\211\212\351\231\244\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..c04ec62 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\345\211\212\351\231\244\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,39 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + request.setAttribute("serverMode", true); +%> + + + + + + #delete-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\345\211\212\351\231\244\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\345\211\212\351\231\244\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..67633e8 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\345\211\212\351\231\244\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,288 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲悟炎髯、縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲悟炎髯、縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\210\273\343\202\213\343\203\234\343\202\277\343\203\263.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\210\273\343\202\213\343\203\234\343\202\277\343\203\263.jsp" new file mode 100644 index 0000000..e1e875b --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\210\273\343\202\213\343\203\234\343\202\277\343\203\263.jsp" @@ -0,0 +1,333 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + #back-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲梧綾繧九阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲梧綾繧九阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + + + + $('button').each(function() { + var $button = $(this); + var name = $button.attr('name'); + var $form = $button.parents('form'); + var formName = $form.attr('name'); + if (nablarch_submission_info[formName]) { + var allowDoubleSubmission = nablarch_submission_info[formName][name]['allowDoubleSubmission']; + $button.parent('div.buttonWrapper').after($('').text('allowDoubleSubmission = [' + allowDoubleSubmission + ']')); + } + }); + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\210\273\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\210\273\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..536e7d9 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\210\273\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,121 @@ + runTest( + label螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝 + , 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var size_prefix = ".grid-col-" + , defaults = { + label : "謌サ繧", + size : ":not([class *= grid-col-])" + }; + + function label螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('label-test') + , label_default = cases[0] + , label_blank = cases[1] + , label_set = cases[2]; + equal($.trim(label_default.label.text()), defaults.label, label_default.testcase); + equal($.trim(label_blank.label.text()), defaults.label, label_blank.testcase); + equal($.trim(label_set.label.text()), "蜑阪ョ逕サ髱「縺ク", label_set.testcase); + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('id-test') + , id_default = cases[0] + , id_blank = cases[1] + , id_set = cases[2]; + + ok(!id_default.button.attr('id'), id_default.testcase); + ok(!id_blank.button.attr('id'), id_blank.testcase); + ok(id_set.button.attr('id'), id_set.testcase); + equal(id_set.button.attr('id'), "back-id", id_set.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('cssClass-test') + , cssclass_default = cases[0] + , cssclass_blank = cases[1] + , cssclass_set = cases[2] + , test_css = ".button-white"; + + ok(!cssclass_default.button.is(test_css), cssclass_default.testcase); + ok(!cssclass_blank.button.is(test_css) , cssclass_blank.testcase); + ok(cssclass_set.button.is(test_css) , cssclass_set.testcase); + } + + function size螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('size-test') + , size_default = cases[0] + , size_blank = cases[1] + , size_set = cases[2]; + + ok(size_default.button.is(defaults.size), size_default.testcase); + ok(size_blank.button.is(defaults.size), size_blank.testcase); + ok(size_set.button.is(size_prefix + '6'), size_set.testcase); + } + + function disabled螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('disabled-test') + , disabled_default = cases[0] + , disabled_blank = cases[1] + , disabled_false = cases[2] + , disabled_true = cases[3]; + + ok(!disabled_default.button.attr('disabled'), disabled_default.testcase); + ok(!disabled_blank.button.attr('disabled'), disabled_blank.testcase); + ok(!disabled_false.button.attr('disabled'), disabled_false.testcase); + ok(disabled_true.button.attr('disabled'), disabled_true.testcase); + } + + function allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('allowDoubleSubmission-test') + , double_submit_default = cases[0] + , double_submit_blank = cases[1] + , double_submit_true = cases[2] + , double_submit_false = cases[3]; + + ok(isAllowedDoubleSubmit(double_submit_default), double_submit_default.testcase); + ok(isAllowedDoubleSubmit(double_submit_blank), double_submit_blank.testcase); + ok(isAllowedDoubleSubmit(double_submit_true), double_submit_true.testcase); + ok(!isAllowedDoubleSubmit(double_submit_false), double_submit_false.testcase); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var cases = test_for('default_value-test') + , require_only = cases[0]; + + equal($.trim(require_only.label.text()), defaults.label, require_only.testcase + "[label]"); + ok(require_only.button.is(defaults.size), require_only.testcase + "[size]"); + ok(isAllowedDoubleSubmit(require_only), require_only.testcase + "[doubleSubmit]"); + ok(!require_only.button.attr('disabled'), require_only.testcase + "[disabled]"); + } + + /** + * confirm逕ィbutton縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $nodes = $('span.test-case.' + case_id + ' + div.control') + , $cases = $('span.test-case.' + case_id); + return $nodes.map(function(i, e) { + return { testcase : $.trim($($cases.get(i)).text()), + label : $(e).find('div.buttonWrapper'), + button : $(e).find('button').first()}; + }); + } + + function isAllowedDoubleSubmit(testcase) { + var $button = testcase.button + , name = $button.attr('name') + , formName = $button.closest('form').attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['allowDoubleSubmission']; + } + throw Error('can\'t get submmision info'); + } diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\210\273\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\210\273\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..7dddc32 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\210\273\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,38 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + request.setAttribute("serverMode", true); +%> + + + + + #back-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\210\273\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\210\273\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..d30a092 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\210\273\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,288 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲梧綾繧九阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲梧綾繧九阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\233\264\346\226\260\343\203\234\343\202\277\343\203\263.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\233\264\346\226\260\343\203\234\343\202\277\343\203\263.jsp" new file mode 100644 index 0000000..d7948d6 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\233\264\346\226\260\343\203\234\343\202\277\343\203\263.jsp" @@ -0,0 +1,333 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + #update-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲梧峩譁ー縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲梧峩譁ー縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + + + + $('button').each(function() { + var $button = $(this); + var name = $button.attr('name'); + var $form = $button.parents('form'); + var formName = $form.attr('name'); + if (nablarch_submission_info[formName]) { + var allowDoubleSubmission = nablarch_submission_info[formName][name]['allowDoubleSubmission']; + $button.parent('div.buttonWrapper').after($('').text('allowDoubleSubmission = [' + allowDoubleSubmission +']')); + } + }); + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\233\264\346\226\260\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\233\264\346\226\260\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..0df7499 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\233\264\346\226\260\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,121 @@ + runTest( + label螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝 + , 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var size_prefix = ".grid-col-" + , defaults = { + label : "譖エ譁ー", + size : ":not([class *= grid-col-])" + }; + + function label螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('label-test') + , label_default = cases[0] + , label_blank = cases[1] + , label_set = cases[2]; + equal($.trim(label_default.label.text()), defaults.label, label_default.testcase); + equal($.trim(label_blank.label.text()), defaults.label, label_blank.testcase); + equal($.trim(label_set.label.text()), "縺ゅ▲縺キ縺ァ繝シ縺ィ", label_set.testcase); + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('id-test') + , id_default = cases[0] + , id_blank = cases[1] + , id_set = cases[2]; + + ok(!id_default.button.attr('id'), id_default.testcase); + ok(!id_blank.button.attr('id'), id_blank.testcase); + ok(id_set.button.attr('id'), id_set.testcase); + equal(id_set.button.attr('id'), "update-id", id_set.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('cssClass-test') + , cssclass_default = cases[0] + , cssclass_blank = cases[1] + , cssclass_set = cases[2] + , test_css = ".button-white"; + + ok(!cssclass_default.button.is(test_css), cssclass_default.testcase); + ok(!cssclass_blank.button.is(test_css) , cssclass_blank.testcase); + ok(cssclass_set.button.is(test_css) , cssclass_set.testcase); + } + + function size螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('size-test') + , size_default = cases[0] + , size_blank = cases[1] + , size_set = cases[2]; + + ok(size_default.button.is(defaults.size), size_default.testcase); + ok(size_blank.button.is(defaults.size), size_blank.testcase); + ok(size_set.button.is(size_prefix + '6'), size_set.testcase); + } + + function disabled螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('disabled-test') + , disabled_default = cases[0] + , disabled_blank = cases[1] + , disabled_false = cases[2] + , disabled_true = cases[3]; + + ok(!disabled_default.button.attr('disabled'), disabled_default.testcase); + ok(!disabled_blank.button.attr('disabled'), disabled_blank.testcase); + ok(!disabled_false.button.attr('disabled'), disabled_false.testcase); + ok(disabled_true.button.attr('disabled'), disabled_true.testcase); + } + + function allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('allowDoubleSubmission-test') + , double_submit_default = cases[0] + , double_submit_blank = cases[1] + , double_submit_true = cases[2] + , double_submit_false = cases[3]; + + ok(isAllowedDoubleSubmit(double_submit_default), double_submit_default.testcase); + ok(isAllowedDoubleSubmit(double_submit_blank), double_submit_blank.testcase); + ok(isAllowedDoubleSubmit(double_submit_true), double_submit_true.testcase); + ok(!isAllowedDoubleSubmit(double_submit_false), double_submit_false.testcase); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var cases = test_for('default_value-test') + , require_only = cases[0]; + + equal($.trim(require_only.label.text()), defaults.label, require_only.testcase + "[label]"); + ok(require_only.button.is(defaults.size), require_only.testcase + "[size]"); + ok(isAllowedDoubleSubmit(require_only), require_only.testcase + "[doubleSubmit]"); + ok(!require_only.button.attr('disabled'), require_only.testcase + "[disabled]"); + } + + /** + * 譖エ譁ー繝懊ち繝ウ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $nodes = $('span.test-case.' + case_id + ' + div.control') + , $cases = $('span.test-case.' + case_id); + return $nodes.map(function(i, e) { + return { testcase : $.trim($($cases.get(i)).text()), + label : $(e).find('div.buttonWrapper'), + button : $(e).find('button').first()}; + }); + } + + function isAllowedDoubleSubmit(testcase) { + var $button = testcase.button + , name = $button.attr('name') + , formName = $button.closest('form').attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['allowDoubleSubmission']; + } + throw Error('can\'t get submmision info'); + } diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\233\264\346\226\260\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\233\264\346\226\260\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..5badd20 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\233\264\346\226\260\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,37 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + request.setAttribute("serverMode", true); +%> + + + + #update-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\233\264\346\226\260\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\233\264\346\226\260\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..84016ac --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\233\264\346\226\260\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,289 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲梧峩譁ー縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲梧峩譁ー縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\244\234\347\264\242\343\203\234\343\202\277\343\203\263.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\244\234\347\264\242\343\203\234\343\202\277\343\203\263.jsp" new file mode 100644 index 0000000..6cf8f26 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\244\234\347\264\242\343\203\234\343\202\277\343\203\263.jsp" @@ -0,0 +1,333 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + #search-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲梧、懃エ「縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲梧、懃エ「縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + + + + $('button').each(function() { + var $button = $(this); + var name = $button.attr('name'); + var $form = $button.parents('form'); + var formName = $form.attr('name'); + if (nablarch_submission_info[formName]) { + var allowDoubleSubmission = nablarch_submission_info[formName][name]['allowDoubleSubmission']; + $button.parent('div.buttonWrapper').after($('').text('allowDoubleSubmission = [' + allowDoubleSubmission +']')); + } + }); + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\244\234\347\264\242\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\244\234\347\264\242\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..2bb8e46 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\244\234\347\264\242\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,121 @@ + runTest( + label螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝 + , 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var size_prefix = ".grid-col-" + , defaults = { + label : "讀懃エ「", + size : ":not([class *= grid-col-])" + }; + + function label螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('label-test') + , label_default = cases[0] + , label_blank = cases[1] + , label_set = cases[2]; + equal($.trim(label_default.label.text()), defaults.label, label_default.testcase); + equal($.trim(label_blank.label.text()), defaults.label, label_blank.testcase); + equal($.trim(label_set.label.text()), "縺輔シ縺。", label_set.testcase); + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('id-test') + , id_default = cases[0] + , id_blank = cases[1] + , id_set = cases[2]; + + ok(!id_default.button.attr('id'), id_default.testcase); + ok(!id_blank.button.attr('id'), id_blank.testcase); + ok(id_set.button.attr('id'), id_set.testcase); + equal(id_set.button.attr('id'), "search-id", id_set.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('cssClass-test') + , cssclass_default = cases[0] + , cssclass_blank = cases[1] + , cssclass_set = cases[2] + , test_css = ".button-white"; + + ok(!cssclass_default.button.is(test_css), cssclass_default.testcase); + ok(!cssclass_blank.button.is(test_css) , cssclass_blank.testcase); + ok(cssclass_set.button.is(test_css) , cssclass_set.testcase); + } + + function size螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('size-test') + , size_default = cases[0] + , size_blank = cases[1] + , size_set = cases[2]; + + ok(size_default.button.is(defaults.size), size_default.testcase); + ok(size_blank.button.is(defaults.size), size_blank.testcase); + ok(size_set.button.is(size_prefix + '6'), size_set.testcase); + } + + function disabled螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('disabled-test') + , disabled_default = cases[0] + , disabled_blank = cases[1] + , disabled_false = cases[2] + , disabled_true = cases[3]; + + ok(!disabled_default.button.attr('disabled'), disabled_default.testcase); + ok(!disabled_blank.button.attr('disabled'), disabled_blank.testcase); + ok(!disabled_false.button.attr('disabled'), disabled_false.testcase); + ok(disabled_true.button.attr('disabled'), disabled_true.testcase); + } + + function allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('allowDoubleSubmission-test') + , double_submit_default = cases[0] + , double_submit_blank = cases[1] + , double_submit_true = cases[2] + , double_submit_false = cases[3]; + + ok(isAllowedDoubleSubmit(double_submit_default), double_submit_default.testcase); + ok(isAllowedDoubleSubmit(double_submit_blank), double_submit_blank.testcase); + ok(isAllowedDoubleSubmit(double_submit_true), double_submit_true.testcase); + ok(!isAllowedDoubleSubmit(double_submit_false), double_submit_false.testcase); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var cases = test_for('default_value-test') + , require_only = cases[0]; + + equal($.trim(require_only.label.text()), defaults.label, require_only.testcase + "[label]"); + ok(require_only.button.is(defaults.size), require_only.testcase + "[size]"); + ok(isAllowedDoubleSubmit(require_only), require_only.testcase + "[doubleSubmit]"); + ok(!require_only.button.attr('disabled'), require_only.testcase + "[disabled]"); + } + + /** + * 讀懃エ「繝懊ち繝ウ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $nodes = $('span.test-case.' + case_id + ' + div.control') + , $cases = $('span.test-case.' + case_id); + return $nodes.map(function(i, e) { + return { testcase : $.trim($($cases.get(i)).text()), + label : $(e).find('div.buttonWrapper'), + button : $(e).find('button').first()}; + }); + } + + function isAllowedDoubleSubmit(testcase) { + var $button = testcase.button + , name = $button.attr('name') + , formName = $button.closest('form').attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['allowDoubleSubmission']; + } + throw Error('can\'t get submmision info'); + } diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\244\234\347\264\242\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\244\234\347\264\242\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..3014181 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\244\234\347\264\242\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,38 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + request.setAttribute("serverMode", true); +%> + + + + + #search-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\244\234\347\264\242\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\244\234\347\264\242\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..f7ac3aa --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\244\234\347\264\242\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,292 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲梧、懃エ「縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲梧、懃エ「縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\261\216\347\224\250\343\203\234\343\202\277\343\203\263.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\261\216\347\224\250\343\203\234\343\202\277\343\203\263.jsp" new file mode 100644 index 0000000..966b370 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\261\216\347\224\250\343\203\234\343\202\277\343\203\263.jsp" @@ -0,0 +1,337 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + #submit-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + icon螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√い繧、繧ウ繝ウ縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + + + icon螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√い繧、繧ウ繝ウ縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + + + icon螻樊ァ繧呈欠螳壹@縺溷エ蜷医√い繧、繧ウ繝ウ縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + + $('button').each(function() { + var $button = $(this); + var name = $button.attr('name'); + var $form = $button.parents('form'); + var formName = $form.attr('name'); + if (nablarch_submission_info[formName]) { + var allowDoubleSubmission = nablarch_submission_info[formName][name]['allowDoubleSubmission']; + $button.parent('div.buttonWrapper').after($('').text('allowDoubleSubmission = [' + allowDoubleSubmission +']')); + } + }); + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\261\216\347\224\250\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\261\216\347\224\250\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..5eb3981 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\261\216\347\224\250\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,131 @@ + runTest( + id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝 + , icon螻樊ァ縺ョ繝繧ケ繝 + , 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var size_prefix = ".grid-col-" + , defaults = { + size : ":not([class *= grid-col-])" + }; + + function label螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('label-test') + , label_default = cases[0] + , label_blank = cases[1] + , label_set = cases[2]; + equal($.trim(label_default.label.text()), defaults.label, label_default.testcase); + equal($.trim(label_blank.label.text()), defaults.label, label_blank.testcase); + equal($.trim(label_set.label.text()), "繧繧√k", label_set.testcase); + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('id-test') + , id_default = cases[0] + , id_blank = cases[1] + , id_set = cases[2]; + + ok(!id_default.button.attr('id'), id_default.testcase); + ok(!id_blank.button.attr('id'), id_blank.testcase); + ok(id_set.button.attr('id'), id_set.testcase); + equal(id_set.button.attr('id'), "submit-id", id_set.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('cssClass-test') + , cssclass_default = cases[0] + , cssclass_blank = cases[1] + , cssclass_set = cases[2] + , test_css = ".button-white"; + + ok(!cssclass_default.button.is(test_css), cssclass_default.testcase); + ok(!cssclass_blank.button.is(test_css) , cssclass_blank.testcase); + ok(cssclass_set.button.is(test_css) , cssclass_set.testcase); + } + + function size螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('size-test') + , size_default = cases[0] + , size_blank = cases[1] + , size_set = cases[2]; + + ok(size_default.button.is(defaults.size), size_default.testcase); + ok(size_blank.button.is(defaults.size), size_blank.testcase); + ok(size_set.button.is(size_prefix + '6'), size_set.testcase); + } + + function disabled螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('disabled-test') + , disabled_default = cases[0] + , disabled_blank = cases[1] + , disabled_false = cases[2] + , disabled_true = cases[3]; + + ok(!disabled_default.button.attr('disabled'), disabled_default.testcase); + ok(!disabled_blank.button.attr('disabled'), disabled_blank.testcase); + ok(!disabled_false.button.attr('disabled'), disabled_false.testcase); + ok(disabled_true.button.attr('disabled'), disabled_true.testcase); + } + + function icon螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('icon-test') + , icon_default = cases[0] + , icon_blank = cases[1] + , icon_set = cases[2]; + + ok(!icon_default.button.find('i').is('.fa.fa-twitter'), icon_default.testcase); + ok(!icon_blank.button.find('i').is('.fa.fa-twitter'), icon_blank.testcase); + ok(icon_set.button.find('i').is('.fa.fa-twitter'), icon_set.testcase); + } + + function allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('allowDoubleSubmission-test') + , double_submit_default = cases[0] + , double_submit_blank = cases[1] + , double_submit_true = cases[2] + , double_submit_false = cases[3]; + + ok(isAllowedDoubleSubmit(double_submit_default), double_submit_default.testcase); + ok(isAllowedDoubleSubmit(double_submit_blank), double_submit_blank.testcase); + ok(isAllowedDoubleSubmit(double_submit_true), double_submit_true.testcase); + ok(!isAllowedDoubleSubmit(double_submit_false), double_submit_false.testcase); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var cases = test_for('default_value-test') + , require_only = cases[0]; + + equal($.trim(require_only.label.text()), "驥題檮讖滄未讀懃エ「", require_only.testcase + "[label]"); + ok(require_only.button.is(defaults.size), require_only.testcase + "[size]"); + ok(isAllowedDoubleSubmit(require_only), require_only.testcase + "[doubleSubmit]"); + ok(!require_only.button.attr('disabled'), require_only.testcase + "[disabled]"); + } + + /** + * 豎守畑繝懊ち繝ウ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $nodes = $('span.test-case.' + case_id + ' + div.control') + , $cases = $('span.test-case.' + case_id); + return $nodes.map(function(i, e) { + return { testcase : $.trim($($cases.get(i)).text()), + label : $(e).find('div.buttonWrapper'), + button : $(e).find('button').first()}; + }); + } + + function isAllowedDoubleSubmit(testcase) { + var $button = testcase.button + , name = $button.attr('name') + , formName = $button.closest('form').attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['allowDoubleSubmission']; + } + throw Error('can\'t get submmision info'); + } diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\261\216\347\224\250\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\261\216\347\224\250\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..f77f8eb --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\261\216\347\224\250\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,39 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + request.setAttribute("serverMode", true); +%> + + + + + + #submit-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\261\216\347\224\250\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\261\216\347\224\250\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..ef6b473 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\346\261\216\347\224\250\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,300 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + icon螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√い繧、繧ウ繝ウ縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + + + icon螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√い繧、繧ウ繝ウ縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + + + icon螻樊ァ繧呈欠螳壹@縺溷エ蜷医√い繧、繧ウ繝ウ縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\345\256\232\343\203\234\343\202\277\343\203\263.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\345\256\232\343\203\234\343\202\277\343\203\263.jsp" new file mode 100644 index 0000000..867a988 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\345\256\232\343\203\234\343\202\277\343\203\263.jsp" @@ -0,0 +1,334 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + #confirm-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲檎「コ螳壹阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲檎「コ螳壹阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + + + + $('button').each(function() { + var $button = $(this); + var name = $button.attr('name'); + var $form = $button.parents('form'); + var formName = $form.attr('name'); + if (nablarch_submission_info[formName]) { + var allowDoubleSubmission = nablarch_submission_info[formName][name]['allowDoubleSubmission']; + $button.parent('div.buttonWrapper').after($('').text('allowDoubleSubmission = [' + allowDoubleSubmission + + ']')); + } + }); + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\345\256\232\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\345\256\232\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..ac3532c --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\345\256\232\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,121 @@ + runTest( + label螻樊ァ縺ョ繝繧ケ繝, + id螻樊ァ縺ョ繝繧ケ繝, + cssClass螻樊ァ縺ョ繝繧ケ繝, + size螻樊ァ縺ョ繝繧ケ繝, + disabled螻樊ァ縺ョ繝繧ケ繝, + allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝, + 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var size_prefix = ".grid-col-" + , defaults = { + label : "遒コ螳", + size : ":not([class *= grid-col-])" + }; + + function label螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('label-test') + , label_default = cases[0] + , label_blank = cases[1] + , label_set = cases[2]; + equal($.trim(label_default.label.text()), defaults.label, label_default.testcase); + equal($.trim(label_blank.label.text()), defaults.label, label_blank.testcase); + equal($.trim(label_set.label.text()), "逋サ骭イ", label_set.testcase); + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('id-test') + , id_default = cases[0] + , id_blank = cases[1] + , id_set = cases[2]; + + ok(!id_default.button.attr('id'), id_default.testcase); + ok(!id_blank.button.attr('id'), id_blank.testcase); + ok(id_set.button.attr('id'), id_set.testcase); + equal(id_set.button.attr('id'), "confirm-id", id_set.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('cssClass-test') + , cssclass_default = cases[0] + , cssclass_blank = cases[1] + , cssclass_set = cases[2] + , test_css = ".button-white"; + + ok(!cssclass_default.button.is(test_css), cssclass_default.testcase); + ok(!cssclass_blank.button.is(test_css) , cssclass_blank.testcase); + ok(cssclass_set.button.is(test_css) , cssclass_set.testcase); + } + + function size螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('size-test') + , size_default = cases[0] + , size_blank = cases[1] + , size_set = cases[2]; + + ok(size_default.button.is(defaults.size), size_default.testcase); + ok(size_blank.button.is(defaults.size), size_blank.testcase); + ok(size_set.button.is(size_prefix + '6'), size_set.testcase); + } + + function disabled螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('disabled-test') + , disabled_default = cases[0] + , disabled_blank = cases[1] + , disabled_false = cases[2] + , disabled_true = cases[3]; + + ok(!disabled_default.button.attr('disabled'), disabled_default.testcase); + ok(!disabled_blank.button.attr('disabled'), disabled_blank.testcase); + ok(!disabled_false.button.attr('disabled'), disabled_false.testcase); + ok(disabled_true.button.attr('disabled'), disabled_true.testcase); + } + + function allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('allowDoubleSubmission-test') + , double_submit_default = cases[0] + , double_submit_blank = cases[1] + , double_submit_true = cases[2] + , double_submit_false = cases[3]; + + ok(!isAllowedDoubleSubmit(double_submit_default), double_submit_default.testcase); + ok(!isAllowedDoubleSubmit(double_submit_blank), double_submit_blank.testcase); + ok(isAllowedDoubleSubmit(double_submit_true), double_submit_true.testcase); + ok(!isAllowedDoubleSubmit(double_submit_false), double_submit_false.testcase); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var cases = test_for('default_value-test') + , require_only = cases[0]; + + equal($.trim(require_only.label.text()), defaults.label, require_only.testcase + "[label]"); + ok(require_only.button.is(defaults.size), require_only.testcase + "[size]"); + ok(!isAllowedDoubleSubmit(require_only), require_only.testcase + "[doubleSubmit]"); + ok(!require_only.button.attr('disabled'), require_only.testcase + "[disabled]"); + } + + /** + * 遒コ螳壹懊ち繝ウ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $nodes = $('span.test-case.' + case_id + ' + div.control') + , $cases = $('span.test-case.' + case_id); + return $nodes.map(function(i, e) { + return { testcase : $.trim($($cases.get(i)).text()), + label : $(e).find('div.buttonWrapper'), + button : $(e).find('button').first()}; + }); + } + + function isAllowedDoubleSubmit(testcase) { + var $button = testcase.button + , name = $button.attr('name') + , formName = $button.closest('form').attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['allowDoubleSubmission']; + } + throw Error('can\'t get submmision info'); + } diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\345\256\232\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\345\256\232\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..8057fcf --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\345\256\232\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,35 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + #confirm-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\345\256\232\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\345\256\232\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..f4aa09f --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\345\256\232\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,292 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲檎「コ螳壹阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲檎「コ螳壹阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\350\252\215\343\203\234\343\202\277\343\203\263.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\350\252\215\343\203\234\343\202\277\343\203\263.jsp" new file mode 100644 index 0000000..f962166 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\350\252\215\343\203\234\343\202\277\343\203\263.jsp" @@ -0,0 +1,333 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + #check-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲檎「コ隱阪阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲檎「コ隱阪阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + + + + $('button').each(function() { + var $button = $(this); + var name = $button.attr('name'); + var $form = $button.parents('form'); + var formName = $form.attr('name'); + if (nablarch_submission_info[formName]) { + var allowDoubleSubmission = nablarch_submission_info[formName][name]['allowDoubleSubmission']; + $button.parent('div.buttonWrapper').after($('').text('allowDoubleSubmission = [' + allowDoubleSubmission +']')); + } + }); + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\350\252\215\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\350\252\215\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..309d3fc --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\350\252\215\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,121 @@ + runTest( + label螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝 + , 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var size_prefix = ".grid-col-" + , defaults = { + label : "遒コ隱", + size : ":not([class *= grid-col-])" + }; + + function label螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('label-test') + , label_default = cases[0] + , label_blank = cases[1] + , label_set = cases[2]; + equal($.trim(label_default.label.text()), defaults.label, label_default.testcase); + equal($.trim(label_blank.label.text()), defaults.label, label_blank.testcase); + equal($.trim(label_set.label.text()), "谺。縺ク", label_set.testcase); + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('id-test') + , id_default = cases[0] + , id_blank = cases[1] + , id_set = cases[2]; + + ok(!id_default.button.attr('id'), id_default.testcase); + ok(!id_blank.button.attr('id'), id_blank.testcase); + ok(id_set.button.attr('id'), id_set.testcase); + equal(id_set.button.attr('id'), "check-id", id_set.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('cssClass-test') + , cssclass_default = cases[0] + , cssclass_blank = cases[1] + , cssclass_set = cases[2] + , test_css = ".button-white"; + + ok(!cssclass_default.button.is(test_css), cssclass_default.testcase); + ok(!cssclass_blank.button.is(test_css) , cssclass_blank.testcase); + ok(cssclass_set.button.is(test_css) , cssclass_set.testcase); + } + + function size螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('size-test') + , size_default = cases[0] + , size_blank = cases[1] + , size_set = cases[2]; + + ok(size_default.button.is(defaults.size), size_default.testcase); + ok(size_blank.button.is(defaults.size), size_blank.testcase); + ok(size_set.button.is(size_prefix + '6'), size_set.testcase); + } + + function disabled螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('disabled-test') + , disabled_default = cases[0] + , disabled_blank = cases[1] + , disabled_false = cases[2] + , disabled_true = cases[3]; + + ok(!disabled_default.button.attr('disabled'), disabled_default.testcase); + ok(!disabled_blank.button.attr('disabled'), disabled_blank.testcase); + ok(!disabled_false.button.attr('disabled'), disabled_false.testcase); + ok(disabled_true.button.attr('disabled'), disabled_true.testcase); + } + + function allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('allowDoubleSubmission-test') + , double_submit_default = cases[0] + , double_submit_blank = cases[1] + , double_submit_true = cases[2] + , double_submit_false = cases[3]; + + ok(isAllowedDoubleSubmit(double_submit_default), double_submit_default.testcase); + ok(isAllowedDoubleSubmit(double_submit_blank), double_submit_blank.testcase); + ok(isAllowedDoubleSubmit(double_submit_true), double_submit_true.testcase); + ok(!isAllowedDoubleSubmit(double_submit_false), double_submit_false.testcase); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var cases = test_for('default_value-test') + , require_only = cases[0]; + + equal($.trim(require_only.label.text()), defaults.label, require_only.testcase + "[label]"); + ok(require_only.button.is(defaults.size), require_only.testcase + "[size]"); + ok(isAllowedDoubleSubmit(require_only), require_only.testcase + "[doubleSubmit]"); + ok(!require_only.button.attr('disabled'), require_only.testcase + "[disabled]"); + } + + /** + * 遒コ隱阪懊ち繝ウ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $nodes = $('span.test-case.' + case_id + ' + div.control') + , $cases = $('span.test-case.' + case_id); + return $nodes.map(function(i, e) { + return { testcase : $.trim($($cases.get(i)).text()), + label : $(e).find('div.buttonWrapper'), + button : $(e).find('button').first()}; + }); + } + + function isAllowedDoubleSubmit(testcase) { + var $button = testcase.button + , name = $button.attr('name') + , formName = $button.closest('form').attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['allowDoubleSubmission']; + } + throw Error('can\'t get submmision info'); + } diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\350\252\215\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\350\252\215\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..f941c28 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\350\252\215\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,38 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + request.setAttribute("serverMode", true); +%> + + + + + #check-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff !important; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\350\252\215\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\350\252\215\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..bc270f9 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\347\242\272\350\252\215\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,289 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲檎「コ隱阪阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲檎「コ隱阪阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ驕キ遘サ縺ァ縺阪k縺薙→シ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ医け繝ェ繝繧ッ蜃コ譚・縺ェ縺シ + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\351\226\211\343\201\230\343\202\213\343\203\234\343\202\277\343\203\263.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\351\226\211\343\201\230\343\202\213\343\203\234\343\202\277\343\203\263.jsp" new file mode 100644 index 0000000..3669b89 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\351\226\211\343\201\230\343\202\213\343\203\234\343\202\277\343\203\263.jsp" @@ -0,0 +1,42 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + request.setAttribute("serverMode", true); +%> + + + + + #close-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + .server { + background: #ffff00; + background-color: #ffff00; + } + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\351\226\211\343\201\230\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\351\226\211\343\201\230\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..ff46e8c --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\351\226\211\343\201\230\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,108 @@ + runTest( + label螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var size_prefix = ".grid-col-" + , defaults = { + label : "髢峨§繧", + size : ":not([class *= grid-col-])" + }; + + function label螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('label-test') + , label_default = cases[0] + , label_blank = cases[1] + , label_set = cases[2]; + equal($.trim(label_default.label.text()), defaults.label, label_default.testcase); + equal($.trim(label_blank.label.text()), defaults.label, label_blank.testcase); + equal($.trim(label_set.label.text()), "邨ゆコ", label_set.testcase); + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('id-test') + , id_default = cases[0] + , id_blank = cases[1] + , id_set = cases[2]; + + ok(!id_default.button.attr('id'), id_default.testcase); + ok(!id_blank.button.attr('id'), id_blank.testcase); + ok(id_set.button.attr('id'), id_set.testcase); + equal(id_set.button.attr('id'), "close-id", id_set.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('cssClass-test') + , cssclass_default = cases[0] + , cssclass_blank = cases[1] + , cssclass_set = cases[2] + , test_css = ".button-white"; + + ok(!cssclass_default.button.is(test_css), cssclass_default.testcase); + ok(!cssclass_blank.button.is(test_css) , cssclass_blank.testcase); + ok(cssclass_set.button.is(test_css) , cssclass_set.testcase); + } + + function size螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('size-test') + , size_default = cases[0] + , size_blank = cases[1] + , size_set = cases[2]; + + ok(size_default.button.is(defaults.size), size_default.testcase); + ok(size_blank.button.is(defaults.size), size_blank.testcase); + ok(size_set.button.is(size_prefix + '6'), size_set.testcase); + } + + function disabled螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('disabled-test') + , disabled_default = cases[0] + , disabled_blank = cases[1] + , disabled_false = cases[2] + , disabled_true = cases[3]; + + ok(!disabled_default.button.attr('disabled'), disabled_default.testcase); + ok(!disabled_blank.button.attr('disabled'), disabled_blank.testcase); + ok(!disabled_false.button.attr('disabled'), disabled_false.testcase); + ok(disabled_true.button.attr('disabled'), disabled_true.testcase); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var cases = test_for('default_value-test') + , require_only = cases[0]; + + equal($.trim(require_only.label.text()), defaults.label, require_only.testcase + "[label]"); + ok(require_only.button.is(defaults.size), require_only.testcase + "[size]"); + ok(!require_only.button.attr('disabled'), require_only.testcase + "[disabled]"); + ok(isAllowedDoubleSubmit(require_only), require_only.testcase + "[doubleSubmit]"); + } + + /** + * close逕ィbutton縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $nodes = $('span.test-case.' + case_id + ' + div.control') + , $cases = $('span.test-case.' + case_id); + return $nodes.map(function(i, e) { + return { testcase : $.trim($($cases.get(i)).text()), + label : $(e).find('div.buttonWrapper'), + button : $(e).find('button').first()}; + }); + } + + function isAllowedDoubleSubmit(testcase) { + var $button = testcase.button + , name = $button.attr('name') + , formName = $button.closest('form').attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['allowDoubleSubmission']; + } + throw Error('can\'t get submmision info'); + } + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\351\226\211\343\201\230\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\351\226\211\343\201\230\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..80014a6 --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\351\226\211\343\201\230\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,45 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + request.setAttribute("serverMode", true); +%> + + + + + #close-id { + background: #000066; + background-color: #000066; + border: none; + text-shadow: none; + font-weight: normal; + color: #ffffff; + } + + .button-white { + background: #ffffff; + background-color: #ffffff; + color: #000000; + font-weight: normal; + border: #000000 solid 1px; + text-shadow: none; + } + + .server { + background: #ffff00; + background-color: #ffff00; + } + + + + diff --git "a/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\351\226\211\343\201\230\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\351\226\211\343\201\230\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..492755e --- /dev/null +++ "b/node_modules/nablarch-widget-button/ui_test/jsp/\343\203\234\343\202\277\343\203\263/\351\226\211\343\201\230\343\202\213\343\203\234\343\202\277\343\203\263_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,200 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ蛟、繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ蛟、繧定ィュ螳 + + + + + + + + + + + label螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲碁哩縺倥k縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繝ゥ繝吶Ν縺ォ縺ッ縲碁哩縺倥k縲阪→陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + label螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後Λ繝吶Ν縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョid螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + id螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺後懊ち繝ウ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√懊ち繝ウ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医∵欠螳壹@縺溷、縺後懊ち繝ウ縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ繧オ繧、繧コ縺ッ繝繝輔か繝ォ繝亥、縺ィ縺ェ繧九%縺ィシclass螻樊ァ縺ォ謖螳壹&繧後↑縺) + + + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ョ蟷縺悟、峨o繧九%縺ィ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ逕サ髱「繧帝哩縺倥l繧九%縺ィシ + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ逕サ髱「繧帝哩縺倥l繧九%縺ィシ + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医け繝ェ繝繧ッ縺ァ逕サ髱「繧帝哩縺倥l繧九%縺ィシ + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√懊ち繝ウ縺ッ菴ソ逕ィ荳榊庄縺ァ縺ゅk縺薙→シ亥虚菴懊@縺ェ縺シ + + + + + + + + + button縺碁哩縺倥k繝懊ち繝ウ縺ァ縺ェ縺蝣エ蜷医ッ髢峨§縺ェ縺 + + + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医→縺ェ繧句ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + + + diff --git a/node_modules/nablarch-widget-collapsible/package.json b/node_modules/nablarch-widget-collapsible/package.json new file mode 100644 index 0000000..d642482 --- /dev/null +++ b/node_modules/nablarch-widget-collapsible/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-collapsible" +, "version": "1.0.0" +, "_from" : "nablarch-widget-collapsible@1.0.0" +, "dependencies": { + } +, "description": "髢矩哩蜿ッ閭ス鬆伜沺繧ヲ繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-collapsible/ui_public/css/ui/collapsible.less b/node_modules/nablarch-widget-collapsible/ui_public/css/ui/collapsible.less new file mode 100644 index 0000000..4ce5444 --- /dev/null +++ b/node_modules/nablarch-widget-collapsible/ui_public/css/ui/collapsible.less @@ -0,0 +1,11 @@ +//髢矩哩謫堺ス懊懊ち繝ウ +.Collapsible_icon { + cursor : pointer; + padding : 0; + font-weight : bold; + font-style : normal; + width : 17px; + text-align : center; + font-weight : bold; +} + diff --git a/node_modules/nablarch-widget-collapsible/ui_public/js/nablarch/ui/Collapsible.js b/node_modules/nablarch-widget-collapsible/ui_public/js/nablarch/ui/Collapsible.js new file mode 100644 index 0000000..ea9cf6a --- /dev/null +++ b/node_modules/nablarch-widget-collapsible/ui_public/js/nablarch/ui/Collapsible.js @@ -0,0 +1,393 @@ +define([ + "jquery" // jQuery繝ゥ繧、繝悶Λ繝ェ +, "./Widget" // Widget蝓コ蠎輔け繝ゥ繧ケ +, "sugar" // sugar.js 繝ゥ繧、繝悶Λ繝ェ +], +function($, Widget) { "use strict"; + /** + * 髢矩哩蜿ッ閭ス鬆伜沺 + * ============================================ + * 縺薙ョ繧ヲ繧」繧ク繧ァ繝繝医ッ縲∫判髱「縺ョ迚ケ螳壹ョ鬆伜沺繧帝幕髢画桃菴懷庄閭ス縺ィ縺吶k繧ゅョ縺ァ縺ゅk縲 + * 萓九∴縺ー縲√Γ繝九Η繝シ縺ョ繧オ繝夜嚴螻、繧縲∬ゥウ邏ー諠蝣ア縺ェ縺ゥ縺ョ繧医≧縺ォ縲∝ソ隕√↓蠢懊§縺ヲ陦ィ遉コ繝サ髱櫁。ィ遉コ繧 + * 蛻繧頑崛縺医◆縺隕∫エ縺ォ蟇セ縺励※驕ゥ逕ィ縺吶k縲 + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------ + * 髢矩哩繧貞宛蠕。縺輔○縺溘>隕∫エ縺ォ繝槭シ繧ォCSS繧ッ繝ゥ繧ケ **nablarch_Collapsible** 繧呈欠螳壹@縲 + * 縺昴ョ **-content** 繧ェ繝励す繝ァ繝ウ縺ォ髢矩哩蟇セ雎。縺ィ縺ェ繧玖ヲ∫エ繧呈欠縺礼、コ縺吶そ繝ャ繧ッ繧ソ蠑上r謖螳壹☆繧九 + * + * 繝槭シ繧ォCSS繧帝←逕ィ縺励◆隕∫エ縺ョ蜈磯ュ縺ォ縺ッ縲√い繧、繧ウ繝ウ縺梧諺蜈・縺輔l繧九 + * 縺昴l繧偵け繝ェ繝繧ッ縺吶k縺薙→縺ァ縲∝螳ケ縺ョ陦ィ遉コ繝サ髱櫁。ィ遉コ隕∫エ繧貞繧頑崛縺医k縺薙→縺後〒縺阪k縲 + * + * 縺セ縺溘∬ヲ∫エ縺ョ髢矩哩迥カ諷九ッ繝輔か繝シ繝隕∫エ縺ォ閾ェ蜍慕噪縺ォ菫晄戟縺輔l繧九 + * NAF縺ョ繧ヲ繧」繝ウ繝峨え繧ケ繧ウ繝シ繝励→騾」蜍輔&縺帙k縺薙→縺ォ繧医j縲∫判髱「髢薙ョ驕キ遘サ縺ォ縺翫>縺ヲ縲 + * 蜷隕∫エ縺ョ髢矩哩迥カ諷九r閾ェ蜍慕噪縺ォ菫晄戟縺吶k縺薙→縺後〒縺阪k縲 + * (髢矩哩迥カ諷九r菫晄戟縺吶k繝輔か繝シ繝隕∫エ縺ョname螻樊ァ縲」alue螻樊ァ繧偵◎繧後◇繧 **-name** 繧ェ繝励す繝ァ繝ウ縲 + * **-value** 繧ェ繝励す繝ァ繝ウ縺ォ謖螳壹☆繧九) + * + *

+ * 莨壼藤諠蝣ア + *

+ *
+ * ... + *
+ *

+ * 雉シ蜈・螻・豁エ + *

+ *
+ * ... + *
+ *
+ * ... + *
+ * + * + * 莉・荳九ッ縲√%縺ョ繧ヲ繧」繧ク繧ァ繝繝医ョ繧ェ繝励す繝ァ繝ウ縺ョ荳隕ァ縺ァ縺ゅk縲 + * + * **-content (繧サ繝ャ繧ッ繧ソ蠑):** + * 髢矩哩蟇セ雎。隕∫エ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ蠑(蠢鬆茨シ + * + * **-name (螻樊ァ蛟、):** + * 逕サ髱「蜀縺ョ髢矩哩鬆伜沺縺ョ迥カ諷九r菫晄戟縺吶k繝輔か繝シ繝隕∫エ縺ョname螻樊ァ(蠢鬆) + * + * 蝓コ譛ャ逧縺ォ莉サ諢上ョ譁蟄怜励〒讒九o縺ェ縺縺 + * 髢矩哩迥カ諷九r逕サ髱「驕キ遘サ髢薙〒菫晄戟縺吶k縺ォ縺ッ驕ゥ蛻縺ェ繧ヲ繧」繝ウ繝峨え繧ケ繧ウ繝シ繝励励Ξ繝輔ぅ繝繧ッ繧ケ縺九i + * 髢句ァ九&縺帙k蠢隕√′縺ゅk縲 + * + * 髢矩哩迥カ諷九r逕サ髱「髢薙〒蠑輔″邯吶$蝣エ蜷医↓縺ッ縲髢矩哩迥カ諷九ョ繧ケ繝繝シ繧ソ繧ケ繧帝」謳コ縺吶k縺溘a縺ョ + * hidden繧ソ繧ー(n:plainHidden)繧定ゥイ蠖薙ョform縺ォ霑ス蜉縺吶k縺薙→縲 + * hidden繧ソ繧ー縺ョname螻樊ァ縺ォ縺ッ縲∵悽螻樊ァ蛟、( **-name螻樊ァ蛟、** )縺ォ險ュ螳壹@縺溷、繧呈欠螳壹☆繧九 + * 窶サ髢矩哩隕∫エ縺瑚、謨ー縺ゅ▲縺溷エ蜷医〒繧ゅ **-name螻樊ァ蛟、** 縺ッ蜈ィ縺ヲ蜷御ク蛟、縺ィ縺励 + * hidden繧ソ繧ー縺ッ1縺、縺ョ縺ソ逕ィ諢上☆繧後ー濶ッ縺縲 + * + * + * <%-- 逕サ髱「髢薙〒髢矩哩迥カ諷九r蠑輔″邯吶$縺溘a縺ォ蠢隕√→縺ェ繧吃idden繧ソ繧ー --%> + * + * <%-- 髢矩哩讖溯ス隕∫エシ --%> + * <%-- 髢矩哩讖溯ス隕∫エシ --%> + * + * + * **-value (螻樊ァ蛟、):** + * 鬆伜沺縺ョ髢矩哩迥カ諷九r菫晄戟縺吶k繝輔か繝シ繝隕∫エ縺ョvalue螻樊ァ(蠢鬆) + * + * 髢矩哩蟇セ雎。繧剃ク諢上↓迚ケ螳壹☆繧区枚蟄怜励r謖螳壹☆繧九(ID螻樊ァ縺ェ縺ゥ) + * + * **-open:** / **-closed:** + * 縺薙ョ鬆伜沺縺ョ蛻晄悄髢矩哩迥カ諷九r謖螳壹☆繧九 + * **-open**, **-closed** 縺ョ縺縺壹l繧よ欠螳壹@縺ェ縺九▲縺溷エ蜷医ッ髢九>縺溽憾諷九〒陦ィ遉コ縺輔l繧九 + * 縺ェ縺翫√%縺ョ繧ッ繝ゥ繧ケ縺ッ迴セ蝨ィ縺ョ髢矩哩迥カ諷九↓蠢懊§縺ヲ閾ェ蜍慕噪縺ォ霑ス蜉縲∵峩譁ー縺輔l繧九 + * + * @class nablarch.ui.Collapsible + * + * @author Iwauo Tajima + * @since 1.2 + */ + Collapsible.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * + * @method Collapsible + * @constructor + * @param {HTMLElement} element 螻暮幕繝懊ち繝ウ縺ョDOM隕∫エ + * @param {Object} [opts] 莉・荳九ョ繧ェ繝励す繝ァ繝ウ繧剃ソ晄戟縺吶k繧ェ繝悶ず繧ァ繧ッ繝 + * **closed:** (`Boolean`) 蛻晄悄陦ィ遉コ譎ゅ↓髢峨§縺ヲ縺繧 + * **content:** (`jQuery|String`) 螻暮幕蟇セ雎。隕∫エ縺ョjQuery邨先棡繧サ繝繝医b縺励¥縺ッ繧サ繝ャ繧ッ繧ソ蠑 + * **name:** (`String`) 鬆伜沺縺ョ髢矩哩迥カ諷九r菫晄戟縺吶k繝輔か繝シ繝隕∫エ縺ョname螻樊ァ + * **value:** (`String`) 鬆伜沺縺ョ髢矩哩迥カ諷九r菫晄戟縺吶k繝輔か繝シ繝隕∫エ縺ョvalue螻樊ァ + * + * @return {Collapsible} 繧、繝ウ繧ケ繧ソ繝ウ繧ケ + */ + constructor: Collapsible + /** + * 髢矩哩繧ケ繝繝シ繧ソ繧ケ繧剃ソ晄戟縺吶kinput隕∫エ縺ョname螻樊ァ蛟、 + * @property name + * @type String + */ + , name: null + /** + * 髢矩哩繧ケ繝繝シ繧ソ繧ケ繧剃ソ晄戟縺吶kinput隕∫エ縺ョvalue螻樊ァ蛟、 + * @property name + * @type String + */ + , value: null + /** + * 蛻晄悄髢矩哩迥カ諷 + * @property initClosed + * @type String + */ + , initClosed : null + /** + * 髢矩哩蟇セ雎。縺ョ隕∫エ + * @property $content + * @type jQuery + */ + , $content: null + /** + * 繝輔か繝シ繝隕∫エ荳翫↓菫晄戟縺輔l縺溘せ繝繝シ繧ソ繧ケ縺ォ蜷医o縺帙※髢矩哩迥カ諷九r螟画峩縺吶k縲 + * + * 蜈キ菴鍋噪縺ォ縺ッ莉・荳九ョ2縺、縺ョ蜃ヲ逅繧定。後≧縲 + * + * 1. 髢矩哩繝懊ち繝ウ (繝槭シ繧ォCSS nablarch_Collapsible 繧呈欠螳壹@縺溯ヲ∫エ) 縺ョCSS繧貞繧頑崛縺医k縲 + * + * 2. 蜷髢矩哩蟇セ雎。隕∫エ ($content蜀縺ョ蜷隕∫エ) 縺ォ蟇セ縺励※莉・荳九ョ蜃ヲ逅繧定。後≧縲 + * + * a. 蜷隕∫エ縺ョ data-nablarch_Collapsible_closeRequstsKey 螻樊ァ繧貞叙蠕励☆繧九 + * 蠖楢ゥイ螻樊ァ縺系ull縺ァ縺ゅl縺ー遨コ縺ョ繧ェ繝悶ず繧ァ繧ッ繝医r險ュ螳壹☆繧九 + * + * b1. 蟇セ雎。繧帝哩縺倥k蝣エ蜷医ッ縲‖.縺ァ蜿門セ励@縺溘が繝悶ず繧ァ繧ッ繝医↓蟇セ縺励※ + * -value繧ェ繝励す繝ァ繝ウ蛟、縺ョ繧ュ繝シ繧堤匳骭イ縺吶k縲 + * + * b2. 蟇セ雎。繧帝幕縺丞エ蜷医ッ縲‖.縺ァ蜿門セ励@縺溘が繝悶ず繧ァ繧ッ繝医↓蟇セ縺励※ + * -value繧ェ繝励す繝ァ繝ウ蛟、縺ョ繧ュ繝シ繧貞炎髯、縺吶k縲 + * + * c. 縺薙ョ蜃ヲ逅縺ョ邨先棡縲‖.縺ァ蜿門セ励@縺溘が繝悶ず繧ァ繧ッ繝井ク翫↓繧ュ繝シ縺1縺、繧ょュ伜惠縺励↑縺代l縺ー + * 縺薙ョ隕∫エ繧定。ィ遉コ縺励√◎縺縺ァ縺ェ縺代l縺ー髱櫁。ィ遉コ縺ィ縺吶k縲 + * + * 縺ェ縺翫∽ク願ィ倥ョ繧医≧縺ェ莉墓ァ倥→縺励※縺繧九ョ縺ッ縲∽サ・荳九ョ逅逕ア縺ォ繧医k縲 + * + * > `Collapsible` 縺悟・繧悟ュ舌↓縺ェ縺」縺ヲ縺繧句エ蜷医ッ縲髢矩哩蟇セ雎。隕∫エ縺瑚、謨ー縺ョ `Collapsible` 縺九i + * > 髢矩哩縺ョ謖遉コ繧貞女縺代k縲 + * > 縺薙ョ縺ィ縺阪髢矩哩蟇セ雎。隕∫エ縺ッ縲1縺、縺ァ繧る哩縺倥k繧医≧縺ォ謖遉コ縺励※縺繧 `Collapsible` 縺 + * > 蟄伜惠縺励※縺繧後ー髢峨§繧句ソ隕√′縺ゅk縲 + * + * @method render + * @chainable + */ + , render: Collapsible_render + /** + * 迴セ蝨ィ縺ョ髢矩哩迥カ諷九r蜿崎サ「縺輔○繧九 + * @method toggle + * @chainable + */ + , toggle: Collapsible_toggle + /** + * 蟇セ雎。鬆伜沺繧帝幕縺上 + * 縺吶〒縺ォ髢九>縺ヲ縺繧句エ蜷医ッ縺ェ縺ォ繧ゅ@縺ェ縺縲 + * @method open + */ + , open: Collapsible_open + /** + * 蟇セ雎。鬆伜沺繧帝哩縺倥k縲 + * 縺吶〒縺ォ髢峨§縺ヲ縺繧句エ蜷医ッ縺ェ縺ォ繧ゅ@縺ェ縺縲 + * @method close + */ + , close: Collapsible_close + /** + * 繝輔か繝シ繝隕∫エ荳翫↓菫晄戟縺輔l縺溘せ繝繝シ繧ソ繧ケ繧偵b縺ィ縺ォ迴セ蝨ィ縺ョ髢矩哩迥カ諷九r霑斐☆縲 + * @method isClosed + * @return {Boolean} 迴セ蝨ィ縺ョ繧ケ繝繝シ繧ソ繧ケ縺碁哩縺倥※縺繧句エ蜷医ッtrue + * 縺昴≧縺ァ縺ェ縺代l縺ーfalse + */ + , isClosed: Collapsible_isClosed + /** + * 迴セ蝨ィ縺ョ髢矩哩迥カ諷九′蛻晄悄迥カ諷九°繧牙渚霆「縺励◆縺薙→繧定。ィ縺呎ュ蝣ア繧偵ヵ繧ゥ繝シ繝縺ォ霑ス蜉縺吶k縲 + * 縺吶〒縺ォ蠖楢ゥイ縺ョ隕∫エ縺悟ュ伜惠縺励※縺縺溷エ蜷医ッ菴輔b縺励↑縺縲 + * @methosd changeState + */ + , changeState : Collapsible_changeState + /** + * 迴セ蝨ィ縺ョ髢矩哩迥カ諷九′蛻晄悄迥カ諷九↓謌サ縺」縺溘%縺ィ繧偵ヵ繧ゥ繝シ繝縺ォ險倬鹸縺吶k縲 + * (=迴セ蝨ィ縺ョ髢矩哩迥カ諷九′蛻晄悄迥カ諷九°繧牙渚霆「縺励◆縺薙→繧定。ィ縺吶ヵ繧ゥ繝シ繝隕∫エ繧貞炎髯、縺吶k縲) + * @method revertState + */ + , revertState : Collapsible_revertState // 髢矩哩迥カ諷九r蛻晄悄迥カ諷九↓謌サ縺 + /** + * 迴セ蝨ィ縺ョ髢矩哩迥カ諷九r菫晄戟縺吶k繝輔か繝シ繝隕∫エ繧貞叙蠕励☆繧九 + * @method $state + * @return {jQuery} 迴セ蝨ィ縺ョ髢矩哩迥カ諷九r菫晄戟縺吶k繝輔か繝シ繝隕∫エ + */ + , $state : Collapsible_$state // 髢矩哩迥カ諷九r菫晄戟縺吶k繝輔か繝シ繝隕∫エ繧定ソ斐☆ + /** + * 髢矩哩縺吶k隕∫エ縺ォ繧「繧、繧ウ繝ウ縺悟ュ伜惠縺吶k縺九←縺縺九 + * @property hasIcon + * @type Boolean + */ + , hasIcon : false + }); + + /** + * 繧、繝吶Φ繝亥ョ夂セゥ + * + * Collapsible.event = { + * "click" : "toggle" + * }; + * + * @property event + * @type Object + * @static + * @final + */ + Collapsible.event = { + "click" : "toggle" + }; + + /** + * 繧ヲ繧」繧ク繧ァ繝繝郁ュ伜挨蟄 + * @property widgetType + * @type String + * @static + * @final + * @default "nablarch_Collapsible" + */ + Collapsible.widgetType = "nablarch_Collapsible"; + + /** + * 髢矩哩蟇セ雎。隕∫エ縺ョ迥カ諷九r菫晄戟縺吶kdata螻樊ァ縺ョ繧ュ繝シ蜷(螳壽焚) + * + * @property closeRequstsKey + * @type String + * @static + * @final + * @default Collapsible.widgetType + "_closeRequstsKey" + */ + Collapsible.closeRequstsKey = Collapsible.widgetType + "_closeRequstsKey"; + + Widget.register(Collapsible); + + // 繧ー繝ュ繝シ繝舌Ν繧ィ繝ゥ繝シ縺悟ュ伜惠縺吶k蝣エ蜷医∬。ィ遉コ縺吶k鬆伜沺縺ョ繧サ繝ャ繧ッ繧ソ + var grobalErrorOpenArea = "#content"; + + function Collapsible(element, opt) { + var hasError = $(element).closest('form').find(".nablarch_error").length != 0 + , needsOpen = hasError || $(".nablarch_errors").length != 0 && $(element).closest(grobalErrorOpenArea).length != 0; + + this.name = opt.name; + this.value = opt.value; + this.initClosed = Object.has(opt, "closed"); + this.hasIcon = Object.has(opt, "icon"); + this.$content = $(opt.content); + + this.constructor = Collapsible; + Widget.call(this, element); + + if (needsOpen) { + // 逕サ髱「蜀縺ォ繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺繧貞頃繧√kclass螻樊ァ縺後≠繧句エ蜷医ッ縲 + // 蠑キ蛻カ逧縺ォ髢矩哩迥カ諷九r髢九↓螟画峩縺吶k縲 + this.initClosed ? this.changeState() + : this.revertState(); + } + this.render(false); + } + + function Collapsible_render(isToggle) { + var closed = this.isClosed() // 繝輔か繝シ繝隕∫エ縺ォ菫晄戟縺輔l縺滄幕髢臥憾諷九r蜿門セ励☆繧 + , value = this.value + , key = Collapsible.closeRequstsKey + , size = this.$content.size(); + + // 髢矩哩繝懊ち繝ウ縺ョ陦ィ遉コ繧貞、画峩縺吶k縲 + if (!this.hasIcon) { + this.$node.find(".Collapsible_icon").remove(); + closed ? this.$node.removeClass("-open open").addClass("-closed closed") + .prepend('') + : this.$node.removeClass("-closed closed").addClass("-open open") + .prepend(''); + } + + // 蜷髢矩哩蟇セ雎。隕∫エ縺ョ繧ケ繝繝シ繧ソ繧ケ繧呈峩譁ー縺吶k縲 + this.$content.each(function() { + var $contentItem = $(this) + , closeRequests = $contentItem.data(key); // 縺薙ョ隕∫エ繧帝哩縺倥h縺縺ィ縺励※縺繧 + // Collapsible縺ョ荳隕ァ + + if (!closeRequests) { + closeRequests = {}; + $contentItem.data(key, closeRequests); + } + // 縺薙ョ隕∫エ繧帝哩縺倥h縺縺ィ縺励※縺繧句エ蜷医ッ-value繧ェ繝励す繝ァ繝ウ縺ョ蛟、繧偵く繝シ縺ォ霑ス蜉 + // 髢九%縺縺ィ縺励※縺繧句エ蜷医ッ縺昴ョ繧ュ繝シ繧貞炎髯、縺吶k縲 + closed ? closeRequests[value] = true + : delete closeRequests[value]; + + // 縺薙ョ隕∫エ繧帝哩縺倥h縺縺ィ縺励※縺繧気ollapsible縺1縺、繧ら┌縺代l縺ー髢九¥縲 + // 縺昴≧縺ァ縺ェ縺代l縺ー髢峨§繧九 + Object.isEmpty(closeRequests) ? show($contentItem, isToggle, size) + : hide($contentItem); + }); + } + + function show($contentItem, isToggle, size) { + var overflow = $contentItem.css('overflow') || 'visible' + , restoreOverflow = function() { + $(this).css('overflow', overflow); + }; + // toggle縺九i蜻シ縺ウ蜃コ縺輔l縺溷エ蜷医↓縺ッ繧「繝九Γ繝シ繧キ繝ァ繝ウ繧剃スソ逕ィ縺励※陦ィ遉コ縺吶k + if (isToggle) { + $contentItem.is('tr') ? slideRowIn($contentItem, size) + : $contentItem.animate({height: "show"}, {duration: 300, complete: restoreOverflow}); + } else { + $contentItem.show(); + } + } + + function slideRowIn($row, rowSize) { + if (rowSize >= 30) { // 30莉カ遞句コヲ縺縺ィ 繧「繝九Γ繝シ繧キ繝ァ繝ウ縺ョ隕冶ヲ壼柑譫懊′蠕励i繧後↑縺 & 驕縺縺ョ縺ァ 繧「繝九Γ繝シ繧キ繝ァ繝ウ縺ッ蛻ゥ逕ィ縺励↑縺縲 + $row.show(); + } else { + $row.show() + .find('td') + .wrapInner('
') + .parent() + .find('td > div') + .slideDown(200, function() { + $(this).replaceWith($(this).contents()); + }); + } + } + + function hide($contentItem) { + $contentItem.hide(); + } + + function Collapsible_isClosed() { + return this.initClosed ? this.$state().length === 0 + : this.$state().length > 0; + } + + function Collapsible_toggle(event) { + return this.isClosed() ? this.open(event) + : this.close(event); + } + + function Collapsible_open(event) { + this.initClosed ? this.changeState() + : this.revertState(); + this.render(true); + event.preventDefault(); + } + + function Collapsible_close(event) { + this.initClosed ? this.revertState() + : this.changeState(); + this.render(true); + event.preventDefault(); + } + + function Collapsible_changeState() { + if (this.$state().length == 0) { + $("", { + type : "hidden" + , name : this.name + , value : this.value + }).appendTo("form"); + } + } + + function Collapsible_revertState() { + this.$state().remove(); + } + + function Collapsible_$state() { + return $("input").filter("[name='" + this.name + "']" + + "[value='" + this.value + "']"); + } + + return Collapsible; +}); diff --git "a/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/index.jsp" "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/index.jsp" new file mode 100644 index 0000000..fb503e7 --- /dev/null +++ "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/index.jsp" @@ -0,0 +1,20 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
  • +
+
+
+
diff --git "a/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277_\343\203\252\343\202\271\343\203\210\343\201\256\345\206\205\345\256\271.jsp" "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277_\343\203\252\343\202\271\343\203\210\343\201\256\345\206\205\345\256\271.jsp" new file mode 100644 index 0000000..91ddc31 --- /dev/null +++ "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277_\343\203\252\343\202\271\343\203\210\343\201\256\345\206\205\345\256\271.jsp" @@ -0,0 +1,86 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> +<% + request.setAttribute("allPermissionUnit", new Map[] { + new HashMap() { + { + put("permissionUnitName", "繝ヲ繝シ繧カ荳隕ァ辣ァ莨"); + put("permissionUnitId", "0000000001"); + } + }, + new HashMap() { + { + put("permissionUnitName", "繝繧ケ繝育畑"); + put("permissionUnitId", "0000000002"); + } + }, + new HashMap() { + { + put("permissionUnitName", "繝ヲ繝シ繧カ諠蝣ア逋サ骭イ"); + put("permissionUnitId", "0000000003"); + } + }, + }); + request.setAttribute("allGroup", new Map[] { + new HashMap() { + { + put("ugroupName", "邱丞漁驛ィ" ); + put("ugroupId", "0000000001"); + } + }, + new HashMap() { + { + put("ugroupName", "莠コ莠矩Κ" ); + put("ugroupId", "0000000002"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑1" ); + put("ugroupId", "0000000003"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑2" ); + put("ugroupId", "0000000004"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑3" ); + put("ugroupId", "0000000005"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑4" ); + put("ugroupId", "0000000006"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑5" ); + put("ugroupId", "0000000007"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑6" ); + put("ugroupId", "0000000008"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑7" ); + put("ugroupId", "0000000009"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑8" ); + put("ugroupId", "0000000010"); + } + }, + }); +%> \ No newline at end of file diff --git "a/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..f594214 --- /dev/null +++ "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,106 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> + +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..310c459 --- /dev/null +++ "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,29 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> + + +<% + request.setAttribute("W11AC02", new HashMap() {{ + put("systemAccount", new HashMap()); + put("ugroupSystemAccount", new HashMap() {{ + put("ugroupId", ""); + }}); + put("users", new HashMap()); + }}); +%> + + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..a80d56c --- /dev/null +++ "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" @@ -0,0 +1,10 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..281938f --- /dev/null +++ "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,29 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> + + + + + $('#resetError').click(function(){ + $('#inputError').remove(); + $('#grobalError').remove(); + }); + $('#showInputError').click(function(){ + $('#grobalError').remove(); + }); + $('#showGrobalError').click(function(){ + $('#inputError').remove(); + }); + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..721b786 --- /dev/null +++ "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,39 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.message.Message" %> +<%@ page import="nablarch.core.message.MessageLevel" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> + +<% + ApplicationException exception = new ApplicationException(); + if (request.getParameterMap().containsKey("inputError")) { + exception.addMessages(new ValidationResultMessage("formdata.loginId", new StringResource() { + @Override + public String getId() { + return "id"; + } + + @Override + public String getValue(Locale locale) { + return "formdata.loginId縺ッ繧ィ繝ゥ繝シ"; + } + }, new Object[0])); + request.setAttribute("nablarch_application_error", exception); + } + if (request.getParameterMap().containsKey("grobalError")) { + exception.addMessages(new Message(MessageLevel.ERROR, new StringResource() { + @Override + public String getId() { + return "id"; + } + @Override + public String getValue(Locale locale) { + return "繧ー繝ュ繝シ繝舌Ν繧ィ繝ゥ繝シ"; + } + })); + request.setAttribute("nablarch_application_error", exception); + } + +%> \ No newline at end of file diff --git "a/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..b31f156 --- /dev/null +++ "b/node_modules/nablarch-widget-collapsible/ui_test/jsp/\351\226\213\351\226\211\345\217\257\350\203\275\351\240\230\345\237\237/\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,85 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> + +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/node_modules/nablarch-widget-column-base/package.json b/node_modules/nablarch-widget-column-base/package.json new file mode 100644 index 0000000..bd5bcf2 --- /dev/null +++ b/node_modules/nablarch-widget-column-base/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-column-base" +, "version": "1.0.0" +, "_from" : "nablarch-widget-column-base@1.0.0" +, "dependencies": { + } +, "description": "繧ォ繝ゥ繝邉サ縺ョ繝吶シ繧ケ繝励Λ繧ー繧、繝ウ" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-column-base/ui_local/js/jsp/taglib/column.js b/node_modules/nablarch-widget-column-base/ui_local/js/jsp/taglib/column.js new file mode 100644 index 0000000..8aa6879 --- /dev/null +++ b/node_modules/nablarch-widget-column-base/ui_local/js/jsp/taglib/column.js @@ -0,0 +1,45 @@ +/** + * 繝繝シ繝悶Ν繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝医ョ繧ィ繝溘Η繝シ繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * JSP繧ソ繧ー `` 縺ッ荳玖ィ倥ョ繧ソ繧ー繝輔ぃ繧、繝ォ縺ォ繧医j謠冗判縺輔l繧九 + * + * (繧オ繝シ繝悶Ξ繝繝医さ繝ウ繝繧ュ繧ケ繝)/WEB-INF/tags/widget/column/xxx.tag + * + * 蜷繝ャ繧ウ繝シ繝峨↓縺ッ縲∝推column繧ソ繧ー縺ョsample螻樊ァ縺ォ險ュ螳壹&繧後◆蛟、繧定。ィ遉コ縺吶k縲 + * 縺薙ョ髫帙《ample螻樊ァ縺ォ邵ヲ譽("|")縺ァ蛹コ蛻繧峨l縺溯、謨ー縺ョ蛟、繧呈欠螳壹☆繧九%縺ィ縺ァ縲 + * 縺昴l繧峨ョ蛟、繧貞推繝ャ繧ウ繝シ繝峨↓鬆谺。陦ィ遉コ縺吶k縺薙→縺後〒縺阪k縲 + * (sample縺ォ謖螳壹@縺溷、縺ョ繧医j繝ャ繧ウ繝シ繝我サカ謨ー縺悟、壹>蝣エ蜷医ッ譛蛻昴ョ蛟、縺九i繝ォ繝シ繝励☆繧九) + * + * @module jsp.taglib + * @class jsp.taglib.column + * @author Iwauo Tajima + */ +define(['jsp', 'sugar'], +function($) { 'use strict'; + return function($tagBody, context, tagName, _context) { + var attrs = $(this).jsp_attrs(context) + , sample = attrs.sample && attrs.sample.split('|') + , separator = attrs.sampleseparator + , status = context.nablarch_status; + + if (sample && status) { + context.value = sample[status.index % sample.length]; + context.sample = separator + ? context.value.split(separator) + : context.value; + } + + if (attrs.width) { + // IE蟇セ遲悶よ欠螳壹&繧後◆width螻樊ァ縺ョ蛟、繧帝驕ソ縺吶k縲 + // 縺薙%縺ァ騾驕ソ縺励◆width螻樊ァ縺ッ縲”tml.js縺ァ菴ソ逕ィ縺吶k + context.css = {'width': attrs.width}; + } + if (tagName === "code") { + context.samplepattern = attrs.samplepattern; + } + + return $.loadTagfile.apply( + this, ['../WEB-INF/tags/widget/column/', $tagBody, context, tagName, _context] + ); + }; +}); diff --git a/node_modules/nablarch-widget-column-base/ui_public/css/column/base.less b/node_modules/nablarch-widget-column-base/ui_public/css/column/base.less new file mode 100644 index 0000000..cc9c0ae --- /dev/null +++ b/node_modules/nablarch-widget-column-base/ui_public/css/column/base.less @@ -0,0 +1,12 @@ +/************************************* + * 繧ォ繝ゥ繝邉サ繧ヲ繧」繧ク繧ァ繝繝医ョ繝吶シ繧ケ繧ケ繧ソ繧、繝ォ縺ョ螳夂セゥ + *************************************/ +tr.nablarch_AdditionalColumnInlay { + .inlayTitle { + width: 300px !important; + } + .inlayData { + padding-left: 15px; + width: 285px; + } +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-column-checkbox/package.json b/node_modules/nablarch-widget-column-checkbox/package.json new file mode 100644 index 0000000..1d248a8 --- /dev/null +++ b/node_modules/nablarch-widget-column-checkbox/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-column-checkbox" +, "version": "1.0.1" +, "_from" : "nablarch-widget-column-checkbox@1.0.1" +, "dependencies": { + } +, "description": "隍謨ー繝ャ繧ウ繝シ繝蛾∈謚樒畑繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-column-checkbox/ui_public/WEB-INF/tags/widget/column/checkbox.tag b/node_modules/nablarch-widget-column-checkbox/ui_public/WEB-INF/tags/widget/column/checkbox.tag new file mode 100644 index 0000000..3c2cdde --- /dev/null +++ b/node_modules/nablarch-widget-column-checkbox/ui_public/WEB-INF/tags/widget/column/checkbox.tag @@ -0,0 +1,88 @@ +<%-- + 繝繝シ繝悶Ν繧ォ繝ゥ繝螳夂セゥ (陦碁∈謚樒畑繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ) + @author Iwauo Tajima +--%> +<%@ tag pageEncoding="UTF-8" description="繝繝シ繝悶Ν繧ォ繝ゥ繝螳夂セゥ (陦碁∈謚樒畑繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ)" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%@ attribute name="key" description="繧ォ繝ゥ繝繧ュ繝シ" required="true" rtexprvalue="true" %> +<%@ attribute name="title" description="繧ォ繝ゥ繝繝倥ャ繝繝シ縺ォ陦ィ遉コ縺吶k譁蟄怜" required="true" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="蜷繧ォ繝ゥ繝縺ォ謖螳壹☆繧気SS繧ッ繝ゥ繧ケ" rtexprvalue="true" %> + +<%@ attribute name="checkboxCssClass" description="繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ォ謖螳壹☆繧気SS繧ッ繝ゥ繧ケ" rtexprvalue="true" %> + +<%@ attribute name="name" description="繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ョname螻樊ァ" required="true" rtexprvalue="true" %> +<%@ attribute name="value" description="繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ驕ク謚樊凾縺ォ騾∽ソ。縺吶k蛟、" rtexprvalue="true" %> +<%@ attribute name="offValue" description="繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ髱樣∈謚樊凾縺ォ騾∽ソ。縺吶k蛟、" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="readonly" description="邱ィ髮蜿ッ閭ス縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="width" description="繧ォ繝ゥ繝縺ョ讓ェ蟷縲" rtexprvalue="true"%> + +<%@ attribute name="toggle" description="蜈ィ驕ク謚/隗」髯、蟇セ雎。縺ィ縺吶k縺句凄縺九Urue繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν驛ィ縺後悟ィ驕ク謚/蜈ィ隗」髯、縲阪Μ繝ウ繧ッ縺ィ縺ェ繧翫∝ィ驕ク謚/隗」髯、縺悟庄閭ス縺ィ縺ェ繧" rtexprvalue="true" %> + +<%-- 隍謨ー陦瑚。ィ遉コ蟇セ蠢 --%> +<%@ attribute name="colspan" description="讓ェ譁ケ蜷代↓邨仙粋縺吶k繧ォ繝ゥ繝謨ー縲" rtexprvalue="true" %> +<%@ attribute name="rowspan" description="邵ヲ譁ケ蜷代↓邨仙粋縺吶k繧ォ繝ゥ繝謨ー縲" rtexprvalue="true" %> + +<%-- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ --%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + +<%-- 蜈ィ驕ク謚/隗」髯、逕ィ縺ョ繧ッ繝ゥ繧ケ螳夂セゥ --%> + + + + + + + + +<%-- 繝倥ャ繝繝シ陦 --%> + + + + + 蜈ィ驕ク謚/蜈ィ隗」髯、 + + + + + + + +<%-- 繝懊ョ繧」陦 --%> + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271.jsp" "b/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271.jsp" new file mode 100644 index 0000000..9069283 --- /dev/null +++ "b/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271.jsp" @@ -0,0 +1,34 @@ + + +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + th.border-red, td.border-red { + border: 1px solid red; + } + + .check-none { + display: none; + } + + + diff --git "a/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..982029c --- /dev/null +++ "b/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,292 @@ + runTest( + 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , checkboxCssClass螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , readonly螻樊ァ縺ョ繝繧ケ繝 + , width螻樊ァ縺ョ繝繧ケ繝 + , value螻樊ァ縺ョ繝繧ケ繝 + , offValue螻樊ァ縺ョ繝繧ケ繝 + , toggle螻樊ァ縺ョ繝繧ケ繝 + ); + + var $all_nodes + , paging_navi_area = "div.nablarch_paging" + , title_label = 'h2'; + + function setup() { + $all_nodes = $('span.test-case, div.title, div.nablarch_listSearchResultWrapper'); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + setup(); + var cases = test_for('require_only-test') + , require_only = cases[0]; + + equal($.trim(require_only.title.find(title_label).text()), "蠢鬆亥ア樊ァシ亥ィ縺ヲ縺ョ繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝医r郤上a縺ヲ螳滓命シ", require_only.testcase + " [title label]"); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_css_case = cases[2] + , assertIsBlank = function(case_description) {return function () { + ok($(this).attr('class').isBlank(), case_description); + };} + , assertClass = function(clazz, case_description) {return function () { + equal($.trim($(this).attr('class')), clazz, set_css_case.testcase); + };} + , findTr = function($table) { + return $table.find('tr').not('.nablarch_AdditionalColumnInlay') + }; + + findTr(default_case.table).find('td').has('input:checkbox').each(assertIsBlank(default_case.testcase)); + findTr(default_case.table).find('th:eq(0)').each(assertIsBlank(default_case.testcase)); + findTr(blank_case.table).find('td').has('input:checkbox').each(assertIsBlank(blank_case.testcase)); + findTr(blank_case.table).find('th:eq(0)').each(assertIsBlank(blank_case.testcase)); + + // 謖螳壹@縺溘き繝ゥ繝縺ョ縺ソ險ュ螳壹&繧後k縺薙→ + findTr(set_css_case.table).find('td').has('input:checkbox').each(assertClass('border-red', set_css_case.testcase)); + findTr(set_css_case.table).find('th:eq(0)').each(assertClass('border-red', set_css_case.testcase)); + // 繝ゥ繝吶Ν驛ィ縺ォ縺ッ縲√ョ繝輔か繝ォ繝医ョcss繧ッ繝ゥ繧ケ(col + 繧ュ繝シ蜷)縺ョ縺ソ縺瑚ィュ螳壹&繧後√メ繧ァ繝繧ッ繝懊ャ繧ッ繧ケ縺ォ謖螳壹@縺溘け繝ゥ繧ケ縺ッ險ュ螳壹&繧後↑縺縺薙→ + findTr(set_css_case.table).find('td:eq(1)').each(assertClass('col_mail', set_css_case.testcase)); + findTr(set_css_case.table).find('th:eq(1)').each(assertClass('col_mail', set_css_case.testcase)); + } + + function checkboxCssClass螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('checkboxCssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_css_case = cases[2] + , clazz = '.check-none' + , asserHasNot = function(clazz, case_description) {return function(i) { + ok(!$(this).is(clazz), case_description + "[" + i + "]"); + };} + , assertHas = function(clazz, case_description) {return function(i) { + ok($(this).is(clazz), case_description + "[" + i + "]"); + };}; + + default_case.table.find(':checkbox').each(asserHasNot(clazz, default_case.testcase)); + blank_case.table.find(':checkbox').each(asserHasNot(clazz, blank_case.testcase)); + set_css_case.table.find(':checkbox').each(assertHas(clazz, set_css_case.testcase)); + } + + function disabled螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('disabled-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , assertTrue = function(case_description) { return function(i) { + ok($(this).prop('disabled'), case_description + "[" + i + "]"); + };} + , assertFalse = function(case_description) {return function(i) { + ok(!$(this).prop('disabled'), case_description + "[" + i + "]"); + };}; + + default_case.table.find(':checkbox').each(assertFalse(default_case.testcase)); + blank_case.table.find(':checkbox').each(assertFalse(blank_case.testcase)); + false_case.table.find(':checkbox').each(assertFalse(false_case.testcase)); + true_case.table.find(':checkbox').each(assertTrue(true_case.testcase)); + } + + function readonly螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('readonly-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , assertTrue = function(case_description) { return function(i) { + ok($(this).prop('disabled') && $(this).is('.nablarch_readonly'), case_description + "[" + i + "]"); + };} + , assertFalse = function(case_description) { return function(i) { + ok(!$(this).prop('disabled') && !$(this).is('.nablarch_readonly'), case_description + "[" + i + "]"); + };}; + + default_case.table.find(':checkbox').each(assertFalse(default_case.testcase)); + blank_case.table.find(':checkbox').each(assertFalse(blank_case.testcase)); + false_case.table.find(':checkbox').each(assertFalse(false_case.testcase)); + true_case.table.find(':checkbox').each(assertTrue(true_case.testcase)); + } + + function width螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('width-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assertWidth = function(testcase, expected) { + return function(i) { + var $this = $(this) + , style = $this[0].style; + + for (expectedStyle in expected) { + if (expected.hasOwnProperty(expectedStyle)) { + equal(style[expectedStyle], expected[expectedStyle], testcase); + } + } + }; + }; + default_case.table.find('th:eq(0)').each(assertWidth(default_case, {'width': ''})); + blank_case.table.find('th:eq(0)').each(assertWidth(blank_case, {'width' : ''})); + set_case.table.find('th:eq(0)').each(assertWidth(set_case, {'width':'100px'})); + set_case.table.find('tr').not('.nablarch_AdditionalColumnInlay').find('td:eq(0)').each( + assertWidth(set_case, {'textAlign': 'center', 'width': '100px'})); + } + + + function value螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('value-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_value_case = cases[2] + , server_values = ['1001', '1002', '1003', '1004'] + , tag_values = ['check on', 'check on', 'check on', 'check on'] + , assertValues = function(expects, case_desctiption) { return function(i, e){ + equal($(this).val(), expects[i] ,case_desctiption + "[" + i + "]"); + };}; + + default_case.table.find(':checkbox').each(assertValues(server_values, default_case.testcase)); + blank_case.table.find(':checkbox').each(assertValues(server_values, blank_case.testcase)); + set_value_case.table.find(':checkbox').each(assertValues(tag_values, set_value_case.testcase)); + } + + function offValue螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('offValue-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_value_case = cases[2] + , tag_values = ['繝√ぉ繝繧ッ縺輔l縺ヲ縺縺ェ縺蛟、', '繝√ぉ繝繧ッ縺輔l縺ヲ縺縺ェ縺蛟、', '繝√ぉ繝繧ッ縺輔l縺ヲ縺縺ェ縺蛟、', '繝√ぉ繝繧ッ縺輔l縺ヲ縺縺ェ縺蛟、'] + , offValue = function (node) { + var $node = $(node) + , key = $.trim("nablarch_cbx_off_param_" + $node.attr('name')); + return n_hidden_val($node, key); + } + , assertBlank = function(case_desctiption) { return function(i, e){ + ok(offValue(this).isBlank() ,case_desctiption + "[" + i + "]"); + };} + , assertValues = function(expects, case_desctiption) { return function(i, e){ + equal(offValue(this), expects[i] ,case_desctiption + "[" + i + "]"); + };}; + + default_case.table.find(':checkbox').each(assertBlank(default_case.testcase)); + blank_case.table.find(':checkbox').each(assertBlank(blank_case.testcase)); + set_value_case.table.find(':checkbox').each(assertValues(tag_values, set_value_case.testcase)); + } + + function toggle螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('toggle-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , assertToggleOffTitle = function(caseDescritpion) { + return function() { + var $this = $(this); + equal($this.text().trim(), '驕ク謚', caseDescritpion + ': title縺ッ驕ク謚槭〒縺ゅk縺薙→') + ok(!$this.hasClass('nablarch_Toggle_checkbox'), caseDescritpion + ': nablarch_Toggle_checkbox繧ッ繝ゥ繧ケ縺ッ險ュ螳壹&繧後※縺縺ェ縺縺薙→') + } + } + , assertToggleOffRow = function(caseDescritpion) { + return function() { + var $this = $(this); + ok(!$this.find('input:checkbox').is('.toggle'), + caseDescritpion + ': toggle蟇セ雎。縺ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ァ縺ゅk縺薙→繧堤、コ縺吶け繝ゥ繧ケ螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→'); + } + } + , assertToggleOnTitle = function(caseDescritpion) { + return function() { + var $this = $(this); + + equal($this.text().trim(), '蜈ィ驕ク謚/蜈ィ隗」髯、', caseDescritpion + ': title縺ッ蜈ィ驕ク謚/蜈ィ隗」髯、縺ァ縺ゅk縺薙→') + ok($this.find('a:eq(0)').hasClass('toggle-on'), caseDescritpion); + equal($this.find('a:eq(0)').text().trim(), '蜈ィ驕ク謚', caseDescritpion); + equal($this.find('a:eq(1)').text().trim(), '蜈ィ隗」髯、', caseDescritpion); + + ok($this.is('.nablarch_Toggle_checkbox.-toggleTarget.mail'), + caseDescritpion + ': nablarch_Toggle_checkbox繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後※縺繧九%縺ィ(繧ェ繝励す繝ァ繝ウ諠蝣ア繧ゑシ') + + } + } + , assertToggleOnRow = function(caseDescritpion) { + return function() { + var $this = $(this); + ok($this.find('input:checkbox').is('.toggle.mail'), + caseDescritpion + ': toggle蟇セ雎。縺ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ァ縺ゅk縺薙→繧堤、コ縺吶け繝ゥ繧ケ螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→'); + } + } + , assertChecked = function(caseDescription, checked) { + return function() { + var $this = $(this); + equal($this.prop('checked'), checked, caseDescription); + }; + } + , findTr = function($table) { + return $table.find('tr').not('.nablarch_AdditionalColumnInlay') + }; + + // toggle螻樊ァ謖螳壹↑縺 + findTr(default_case.table).find('th:eq(0)').each(assertToggleOffTitle(default_case.testcase)); + findTr(default_case.table).find('td:eq(0)').each(assertToggleOffRow(default_case.testcase)); + + // toggle螻樊ァ繝悶Λ繝ウ繧ッ + findTr(blank_case.table).find('th:eq(0)').each(assertToggleOffTitle(blank_case.testcase)); + findTr(blank_case.table).find('td:eq(0)').each(assertToggleOffRow(blank_case.testcase)); + + // toggle螻樊ァ縺ォfalse繧呈欠螳 + findTr(false_case.table).find('th:eq(0)').each(assertToggleOffTitle(false_case.testcase)); + findTr(false_case.table).find('td:eq(0)').each(assertToggleOffRow(false_case.testcase)); + + // 蜈ィ隗」髯、繧偵け繝ェ繝繧ッ + true_case.table.find('th:eq(0)').find('a:eq(1)').click(); + + // toggle螻樊ァ縺ォtrue繧呈欠螳 + findTr(true_case.table).find('th:eq(0)').each(assertToggleOnTitle(true_case.testcase)); + findTr(true_case.table).find('td:eq(0)').each(assertToggleOnRow(default_case.testcase)); + // toggle螻樊ァ繧稚rue縺ォ險ュ螳壹@縺ヲ縺縺ェ縺蛻励ッ縲》oggle逕ィ縺ョ繧ッ繝ゥ繧ケ螻樊ァ縺ェ縺ゥ縺瑚ィュ螳壹&繧後↑縺縺薙→ + findTr(true_case.table).find('th:eq(1)').each(assertToggleOffTitle(true_case.testcase)); + findTr(true_case.table).find('td:eq(1)').each(assertToggleOffRow(default_case.testcase)); + + // 蜈ィ驕ク謚槭r繧ッ繝ェ繝繧ッ + true_case.table.find('th:eq(0)').find('a:eq(0)').click(); + assertChecked() + findTr(true_case.table).find('td:eq(0)').find('input:checkbox').each(assertChecked('繝√ぉ繝繧ッ迥カ諷九〒縺ゅk縺薙→', true)); + findTr(true_case.table).find('td:eq(1)').find('input:checkbox').each(assertChecked('謫堺ス懷ッセ雎。螟悶ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ョ縺溘a繝√ぉ繝繧ッ縺悟、悶l縺溽憾諷九〒縺ゅk縺薙→', false)); + + // 謫堺ス懷ッセ雎。螟悶ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ繧剃ク譌ヲ蜈ィ縺ヲ繝√ぉ繝繧ッ縺ォ螟画峩縺吶k + findTr(true_case.table).find('td:eq(1)').find('input:checkbox').each(function() { + $(this).prop('checked', true); + }); + + // 蜈ィ隗」髯、謚槭r繧ッ繝ェ繝繧ッ + true_case.table.find('th:eq(0)').find('a:eq(1)').click(); + findTr(true_case.table).find('td:eq(0)').find('input:checkbox').each(assertChecked('繝√ぉ繝繧ッ縺悟、悶l縺溽憾諷九〒縺ゅk縺薙→', false)); + findTr(true_case.table).find('td:eq(1)').find('input:checkbox').each(assertChecked('謫堺ス懷ッセ雎。螟悶ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ェ縺ョ縺ァ繝√ぉ繝繧ッ縺ッ螟悶l縺ェ縺縺薙→', true)); + + } + + /** + * 繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝_繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e); + return { + testcase : $.trim($e.text()), + title : $($all_nodes[idx + 1]), + table : $($all_nodes[idx + 2]) + }; + }); + } diff --git "a/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..3600af9 --- /dev/null +++ "b/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,27 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + th.border-red, td.border-red { + border: 1px solid red; + } + + .check-none { + display: none; + } + + + diff --git "a/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..16a1a26 --- /dev/null +++ "b/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,69 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..dc6e657 --- /dev/null +++ "b/node_modules/nablarch-widget-column-checkbox/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,643 @@ +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒謖螳壹☆繧句、繧貞性繧√※蜈ィ縺ヲ險ュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医ョ蜍穂ス懊′蝠城。後↑縺縺薙→ + + + + + + + + + + + + + cssClass繧呈欠螳壹@縺ェ縺蝣エ蜷医∬ゥイ蠖灘励ョth蜿翫ウtd縺ォ縺ッclass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∬ゥイ蠖灘励ョth蜿翫ウtd縺ォ縺ッclass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + cssClass繧呈欠螳壹@縺溷エ蜷医∬ゥイ蠖灘励ョth蜿翫ウtd縺ォ縺ッclass螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + + + + + checkboxCssClass謖螳壹@縺ェ縺蝣エ蜷医√メ繧ァ繝繧ッ繝懊ャ繧ッ繧ケ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + checkboxCssClass縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√メ繧ァ繝繧ッ繝懊ャ繧ッ繧ケ縺ョclass螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + checkboxCssClass繧呈欠螳壹@縺溷エ蜷医√メ繧ァ繝繧ッ繝懊ャ繧ッ繧ケ縺ョclass螻樊ァ縺ォ縺昴ョ蛟、縺瑚ィュ螳壹&繧後k縺薙→
+ 窶サdisplay:none縺ェ繧ケ繧ソ繧、繝ォ繧偵け繝ゥ繧ケ縺ァ縺ゅ※繧 +
+ + + + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∵桃菴懷庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + + + disabled螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∵桃菴懷庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∵桃菴懷庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∵桃菴應ク榊庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + + + + readonly螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∵桃菴懷庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + + + readonly螻樊ァ縺ォ遨コ譁蟄励r謖螳壹@縺溷エ蜷医∵桃菴懷庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + + + readonly螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∵桃菴懷庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + + + readonly螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∵桃菴應ク榊庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + + + width繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医《tyle螻樊ァ縺ォwidth縺梧欠螳壹&繧後↑縺縺薙→縲 + + + + + + + + + width繧鍛lank縺ォ縺励◆蝣エ蜷医《tyle螻樊ァ縺ォwidth縺梧欠螳壹&繧後↑縺縺薙→縲 + + + + + + + + + width繧呈欠螳壹@縺溷エ蜷医《tyle螻樊ァ縺ォwidth縺梧欠螳壹&繧後k縺薙→縲 + + + + + + + + + + toggle繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ィ驕ク謚/隗」髯、逕ィ縺ョ繧ッ繝ゥ繧ケ螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + toggle縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ィ驕ク謚/隗」髯、逕ィ縺ョ繧ッ繝ゥ繧ケ螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + toggle縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ィ驕ク謚/隗」髯、逕ィ縺ョ繧ッ繝ゥ繧ケ螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + toggle縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝ィ驕ク謚/隗」髯、逕ィ縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後√ち繧、繝医Ν縺後悟ィ驕ク謚/蜈ィ隗」髯、縲阪→縺ェ繧九%縺ィ + + + <%-- 蜈ィ驕ク謚/隗」髯、蟇セ雎。縺ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ --%> + + + <%-- 蜈ィ驕ク謚/隗」髯、蟇セ雎。螟悶ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ --%> + + + + + + +
+ + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医∝励ち繧、繝医Ν蜿翫ウ蛻励ョ蛟、縺悟コ蜉帙&繧後k縺薙→
+ 窶サ蛟、縺悟コ蜉帙&繧後◆縺薙→繧堤「コ隱阪☆繧九◆繧〔ey螻樊ァ繧よ欠螳壹☆繧九 +
+ + + + + + + + + + + + + value螻樊ァ繧定ィュ螳壹@縺ヲ縺縺ェ縺蝣エ蜷医√し繝シ繝舌し繧、繝峨〒險ュ螳壹@縺溷、縺後メ繧ァ繝繧ッon譎ゅ↓騾∽ソ。縺輔l縺溷、縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + + + + value螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医√し繝シ繝舌し繧、繝峨〒險ュ螳壹@縺溷、縺後メ繧ァ繝繧ッon譎ゅ↓騾∽ソ。縺輔l縺溷、縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + + + + value螻樊ァ繧定ィュ螳壹@縺溷エ蜷医√メ繧ァ繝繧ッon譎ゅ↓縺昴ョ蛟、縺後し繝シ繝舌し繧、繝峨↓騾∽ソ。縺輔l繧九%縺ィ + + + + + + + + + + + + offValue螻樊ァ繧定ィュ螳壹@縺ヲ縺縺ェ縺蝣エ蜷医{ffValue蛟、縺ッ騾∽ソ。縺輔l縺ェ縺縺薙→ + + + + + + + + + + + + + + offValue螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医{ffValue蛟、縺ッ騾∽ソ。縺輔l縺ェ縺縺薙→ + + + + + + + + + + + + + + offValue螻樊ァ繧定ィュ螳壹@縺溷エ蜷医{ffValue蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + + + + + + + + + +
+
+
diff --git a/node_modules/nablarch-widget-column-code/package.json b/node_modules/nablarch-widget-column-code/package.json new file mode 100644 index 0000000..d3de0fe --- /dev/null +++ b/node_modules/nablarch-widget-column-code/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-column-code" +, "version": "1.0.1" +, "_from" : "nablarch-widget-column-code@1.0.1" +, "dependencies": { + } +, "description": "繧ウ繝シ繝牙、陦ィ遉コ逕ィ繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-column-code/ui_public/WEB-INF/tags/widget/column/code.tag b/node_modules/nablarch-widget-column-code/ui_public/WEB-INF/tags/widget/column/code.tag new file mode 100644 index 0000000..9ebccd4 --- /dev/null +++ b/node_modules/nablarch-widget-column-code/ui_public/WEB-INF/tags/widget/column/code.tag @@ -0,0 +1,109 @@ +<%-- + 繝繝シ繝悶Ν繧ォ繝ゥ繝螳夂セゥ(繧ウ繝シ繝牙、陦ィ遉コ) + @author Iwauo Tajima +--%> +<%@ tag pageEncoding="UTF-8" description="繝繝シ繝悶Ν繧ォ繝ゥ繝螳夂セゥ(繧ウ繝シ繝芽。ィ遉コ)" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="listSearchResult" tagdir="/WEB-INF/tags/listSearchResult" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%@ attribute name="key" description="繧ォ繝ゥ繝繧ュ繝シ" required="true" rtexprvalue="true" %> +<%@ attribute name="title" description="繧ォ繝ゥ繝繝倥ャ繝繝シ縺ォ陦ィ遉コ縺吶k譁蟄怜" required="true" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="蜷繧ォ繝ゥ繝縺ォ謖螳壹☆繧気SS繧ッ繝ゥ繧ケ" rtexprvalue="true" %> +<%@ attribute name="sortable" description="縲腎able:search_result繧ソ繧ー縺ァ縺ョ縺ソ蛻ゥ逕ィ蜿ッ閭ス縲代き繝ゥ繝縺ョ繧ス繝シ繝医Μ繝ウ繧ッ繧定。ィ遉コ縺吶k縺九←縺縺(繝繝輔か繝ォ繝:false)" rtexprvalue="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> + +<%@ attribute name="samplePattern" description="1繝ャ繧ウ繝シ繝峨↓蜃コ蜉帙☆繧倶サカ謨ー縺ョ蜃コ迴セ繝代ち繝シ繝ウ縲ゅき繝ウ繝槫玄蛻繧翫〒謖螳壹☆繧九(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" %> +<%@ attribute name="codeId" description="繧ウ繝シ繝牙ョ夂セゥID" required="true" rtexprvalue="true" %> +<%@ attribute name="pattern" description="菴ソ逕ィ縺吶k繧ウ繝シ繝峨ヱ繧ソ繝シ繝ウ縺ョ繧ォ繝ゥ繝蜷(繝繝輔か繝ォ繝医ッ'PATTERN01')" rtexprvalue="true" %> +<%@ attribute name="optionColumnName" description="蜿門セ励☆繧九が繝励す繝ァ繝ウ蜷咲ァー縺ョ繧ォ繝ゥ繝蜷(繝繝輔か繝ォ繝医ッ'OPTION01')" rtexprvalue="true" %> +<%@ attribute name="labelPattern" description="繝ゥ繝吶Ν陦ィ遉コ譖ク蠑(繝繝輔か繝ォ繝:$NAME$)" rtexprvalue="true" %> +<%@ attribute name="listFormat" description="繝ェ繧ケ繝郁。ィ遉コ譎ゅ↓菴ソ逕ィ縺吶k繝輔か繝シ繝槭ャ繝医ゑシ医ョ繝輔か繝ォ繝亥、縺ッ'sp'シ" rtexprvalue="true" %> +<%@ attribute name="width" description="繧ォ繝ゥ繝縺ョ讓ェ蟷縲" rtexprvalue="true"%> + +<%-- 隍謨ー陦瑚。ィ遉コ蟇セ蠢 --%> +<%@ attribute name="colspan" description="讓ェ譁ケ蜷代↓邨仙粋縺吶k繧ォ繝ゥ繝謨ー縲" rtexprvalue="true" %> +<%@ attribute name="rowspan" description="邵ヲ譁ケ蜷代↓邨仙粋縺吶k繧ォ繝ゥ繝謨ー縲" rtexprvalue="true" %> +<%@ attribute name="additional" description="莉伜刈諠蝣ア縺九←縺縺(true縺ョ蝣エ蜷narrow陦ィ遉コ繝「繝シ繝峨〒蛻・蠖「蠑上〒縺ョ陦ィ遉コ縺ィ縺ェ繧九ゅョ繝輔か繝ォ繝医ッfalse)" rtexprvalue="true"%> + +<%-- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ --%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繧ウ繝シ繝牙、陦ィ遉コ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繝代ち繝シ繝ウ繧ウ繝シ繝峨ョ繧ォ繝ゥ繝蜷 --%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繧ェ繝励す繝ァ繝ウ蜷咲ァー縺ョ繧ォ繝ゥ繝蜷 --%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繝ゥ繝吶Ν繧ウ繝シ繝 --%> + + + + + + + + +<%-- 繝倥ャ繝繝シ陦 --%> + + + + + + + + + + + +<%-- 繝懊ョ繧」陦 --%> + + + + + + +<%-- 莉伜刈諠蝣ア陦ィ遉コ鬆伜沺 --%> + +
+
+
+ +
+
+
diff --git "a/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211.jsp" "b/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211.jsp" new file mode 100644 index 0000000..8a16842 --- /dev/null +++ "b/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211.jsp" @@ -0,0 +1,22 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + th.border-red, td.border-red { + border: 1px solid red; + } + + + diff --git "a/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..9e48fdb --- /dev/null +++ "b/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,235 @@ + runTest( + 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , sortable螻樊ァ縺ョ繝繧ケ繝 + , listFormat螻樊ァ縺ョ繝繧ケ繝 + , width螻樊ァ縺ョ繝繧ケ繝 + , additional螻樊ァ縺ョ繝繧ケ繝 + ); + + var $all_nodes + , paging_navi_area = "div.nablarch_paging" + , label = 'h2' + , inlay = { + record : ".nablarch_AdditionalColumnInlay" + } + , visible = { + tr : 'tr:not('+inlay.record+')' + , td : 'td:not(.nablarch_AdditionalColumnInlayToggle)' + , th : 'th:not(.nablarch_AdditionalColumnInlayToggle)' + }; + + function setup() { + $all_nodes = $('span.test-case, div.title, div.nablarch_listSearchResultWrapper'); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + setup(); + var cases = test_for('require_only-test') + , require_only = cases[0]; + + equal($.trim(require_only.title.find(label).text()), "蠢鬆亥ア樊ァシ亥ィ縺ヲ縺ョ繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝医r郤上a縺ヲ螳滓命シ", require_only.testcase + " [title label]"); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_css_case = cases[2] + , assertIsBlank = function(case_description) { + return function () { + ok($(this).attr('class').isBlank(), case_description); + }; + } + , assertClass = function(clazz, case_description) { + return function () { + equal($.trim($(this).attr('class')), clazz, case_description); + }; + }; + + default_case.table.find(visible.tr).find(visible.td).each(assertIsBlank(default_case.testcase)); + default_case.table.find(visible.tr).find(visible.td).each(assertIsBlank(default_case.testcase)); + blank_case.table.find(visible.tr).find(visible.td).each(assertIsBlank(blank_case.testcase)); + blank_case.table.find(visible.tr).find(visible.th).each(assertIsBlank(blank_case.testcase)); + // 謖螳壹@縺溘き繝ゥ繝縺ョ縺ソ險ュ螳壹&繧後k縺薙→ + set_css_case.table.find(visible.tr).find(visible.td).filter(':eq(0)').each(assertClass('border-red', set_css_case.testcase)); + set_css_case.table.find(visible.tr).find(visible.th).filter(':eq(0)').each(assertClass('border-red', set_css_case.testcase)); + set_css_case.table.find(visible.tr).find(visible.td).filter(':eq(1)').each(assertIsBlank(set_css_case.testcase)); + set_css_case.table.find(visible.tr).find(visible.th).filter(':eq(1)').each(assertIsBlank(set_css_case.testcase)); + } + + function sortable螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('sortable-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , assertNotLink = function(case_description) { + return function() { + equal($(this).find('a').size(), 0, case_description); + }; + } + , assertLinkCount = function(count, case_description) { + return function() { + equal($(this).find('a').size(), count, case_description); + }; + }; + + default_case.table.find('tr:first').find('th').each(assertNotLink(default_case.testcase)); + blank_case.table.find('tr:first').find('th').each(assertNotLink(blank_case.testcase)); + false_case.table.find('tr:first').find('th').each(assertNotLink(false_case.testcase)); + // 謖螳壹@縺溘き繝ゥ繝縺ョ縺ソ險ュ螳壹&繧後k縺薙→ + true_case.table.find('tr:first').find('th:eq(0)').each(assertLinkCount(1, true_case.testcase)); + true_case.table.find('tr:first').find('th:eq(1)').each(assertNotLink(true_case.testcase)); + } + + function listFormat螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('listFormat-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_sp_case = cases[2] + , set_br_case = cases[3] + , assertSpFormat = function(case_description) { + return function() { + ok($(this).html().has(" ") && + !$(this).html().has("
"), case_description); + }; + } + , assertBrFormat = function(case_description) { + return function() { + ok(!$(this).html().has(" ") && + $(this).html().toLowerCase().has("
"), case_description); + }; + } + , multi_data_record = ':eq(2)'; + + default_case.table.find(visible.tr).filter(multi_data_record).find(visible.td).each(assertSpFormat(default_case.testcase)); + blank_case.table.find(visible.tr).filter(multi_data_record).find(visible.td).each(assertSpFormat(blank_case.testcase)); + set_sp_case.table.find(visible.tr).filter(multi_data_record).find(visible.td).each(assertSpFormat(set_sp_case.testcase)); + // 謖螳壹@縺溘き繝ゥ繝縺ョ縺ソ險ュ螳壹&繧後k縺薙→ + set_br_case.table.find(visible.tr).filter(multi_data_record).find(visible.td).filter(':eq(0)').each(assertBrFormat(set_br_case.testcase)); + set_br_case.table.find(visible.tr).filter(multi_data_record).find(visible.td).filter(':eq(1)').each(assertSpFormat(set_br_case.testcase)); + } + + function width螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('width-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assertWidth = function(testcase, expected) { + return function(i) { + var style = this.style + , key; + for (key in expected) { + if (expected.hasOwnProperty(key)) { + equal(style[key], expected[key], testcase.testcase + style[key]); + } + } + }; + }; + default_case.table.find(visible.th).each(assertWidth(default_case, '')); + blank_case.table.find(visible.th).each(assertWidth(blank_case, '')); + set_case.table.find(visible.th).filter(':eq(0)').each(assertWidth(set_case, {'width' : '100px'})); + set_case.table.find(visible.th).filter(':eq(1)').each(assertWidth(set_case, {'width' : '30%'})); + set_case.table.find(visible.tr).find(visible.td).filter(':eq(0)').each(assertWidth(set_case, {'width' : '100px'})); + set_case.table.find(visible.tr).find(visible.td).filter(':eq(1)').each(assertWidth(set_case, {'width' : '30%'})); + } + + function additional螻樊ァ縺ョ繝繧ケ繝() { + var testcases = test_for('additional-test') + , non = testcases[0] + , blank = testcases[1] + , False = testcases[2] + , True = testcases[3] + , multi = testcases[4] + , dataRowNum = function(table) { + var $row = table.find(visible.tr) + , all = $row.length + , header = $row.filter(':has(th)').length; + return all - header; + } + , findAddInfo = function(table) { + return table.find('tr.nablarch_AdditionalColumnInlay').find('td > div.inlayDataRecord'); + } + , code = { + names : ["name1-1", "name1-1"+"name1-3", "name1-3", "name1-2"] + , values : ["value1-1", "value1-1"+"value1-3", "value1-3", "value1-2"] + , composePatterns : ["繧ェ繝励す繝ァ繝ウシ嗜ame1-1column:OPTION01(value1-1)-name1-1" + , "繧ェ繝励す繝ァ繝ウシ嗜ame1-1column:OPTION01(value1-1)-name1-1"+"繧ェ繝励す繝ァ繝ウシ嗜ame1-3column:OPTION01(value1-3)-name1-3" + , "繧ェ繝励す繝ァ繝ウシ嗜ame1-3column:OPTION01(value1-3)-name1-3" + , "繧ェ繝励す繝ァ繝ウシ嗜ame1-2column:OPTION01(value1-2)-name1-2"] + } + , assertText = function(node, expected, msg) { + // $.fn.text 繧貞茜逕ィ縺励↑縺縺ョ縺ッIE8縺ョnbsp縺ョ蝠城。後↓蟇セ蠢懊☆繧九◆繧√ + var text = $(node).html().stripTags().remove(/(\s| )+/g); + ok(text.has(expected), [msg ," text = ", text, ",expected = ", expected].join(' ')); + if (!text.has(expected)) { + + } + }; + + // non + equal(non.table.find("td.additional").length, 0, non.testcase +"[td.additional]"); + equal(findAddInfo(non.table).length, 0, non.testcase +"[td.addInfo]"); + non.table.find(visible.tr).find(visible.td+":eq(1)").each(function(i) { + assertText(this, code.names[i], non.testcase + "(normal)[ "+i+" ]"); + }); + + // blank + equal(blank.table.find("td.additional").length, 0, blank.testcase +"[td.additional]"); + equal(findAddInfo(blank.table).length, 0, blank.testcase +"[td.addInfo]"); + blank.table.find(visible.tr).find(visible.td+":eq(1)").each(function(i) { + assertText(this, code.names[i], blank.testcase + "(normal)[ "+i+" ]"); + }); + + // false + equal(False.table.find("td.additional").length, 0, False.testcase +"[td.additional]"); + equal(findAddInfo(False.table).length, 0, False.testcase +"[td.addInfo]"); + False.table.find(visible.tr).find(visible.td+":eq(1)").each(function(i) { + assertText(this, code.names[i], False.testcase + "(normal)[ "+i+" ]"); + }); + + // true + equal(True.table.find("td.additional").length, dataRowNum(True.table), True.testcase +"[td.additional]"); + equal(findAddInfo(True.table).length, dataRowNum(True.table), True.testcase +"[td.addInfo]"); + True.table.find(visible.tr).find(visible.td+":eq(1)").each(function(i) { + assertText(this, code.names[i], True.testcase + "(normal)[ "+i+" ]"); + }); + True.table.find(inlay.record).find("td").each(function(i){ + assertText(this, "true"+"シ"+code.names[i], True.testcase + "(inlay)[ "+i+" ]") + }); + + // multi + equal(multi.table.find("td.additional").length, (dataRowNum(multi.table) * 2), multi.testcase +"[td.additional]"); + equal(findAddInfo(multi.table).length, (dataRowNum(multi.table)*2), multi.testcase +"[td.addInfo]"); + multi.table.find(visible.tr).filter(':has('+visible.td+')').each(function(i){ + assertText($(this).find(':eq(1)'), code.values[i], multi.testcase + "[td.addInfo(value)]"); + assertText($(this).find('td:eq(2)'), code.composePatterns[i], multi.testcase + "[td.addInfo(compose)]") + }); + } + + function not(selectExpr) { + return ":not(" + selectExpr + ")"; + } + + /** + * 繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝_繧ウ繝シ繝峨ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e); + return { + testcase : $.trim($e.text()), + title : $($all_nodes[idx + 1]), + table : $($all_nodes[idx + 2]) + }; + }); + } diff --git "a/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..68add7d --- /dev/null +++ "b/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,23 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + th.border-red, td.border-red { + border: 1px solid red; + } + + + diff --git "a/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..c3855c3 --- /dev/null +++ "b/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,75 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..80bd23d --- /dev/null +++ "b/node_modules/nablarch-widget-column-code/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\202\263\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,842 @@ + + +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝井ク翫〒繝ェ繝ウ繧ッ縺梧ュ」縺励¥陦ィ遉コ縺輔l縲√壹シ繧ク驕キ遘サ縺後〒縺阪k縺薙→
+ 窶サsample螻樊ァ縺ッ繝悶Λ繝ウ繧ッ縺ェ縺ョ縺ァ縲…odeId縺ォ蟇セ蠢懊☆繧九し繝ウ繝励Ν蛟、縺瑚。ィ遉コ縺輔l繧九 +
+ + + + + + + sample螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後け繝ゥ繧、繧「繝ウ繝井ク翫〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + 蜈ィ螻樊ァ繧呈欠螳夲シ医し繝シ繝舌し繧、繝峨〒菴ソ逕ィ縺吶k螻樊ァ繧よ欠螳夲シ峨@縺溷エ蜷医〒繧ゅけ繝ゥ繧、繧「繝ウ繝医ョ蜍穂ス懊↓蝠城。後′縺ェ縺縺薙→ + + + + + + + samplePattern螻樊ァ繧呈欠螳壹@縺溷エ蜷医↓隍謨ー縺ョ繝繝シ繧ソ縺1繝ャ繧ウ繝シ繝峨↓蜃コ蜉帙☆繧九%縺ィ繧堤「コ隱阪☆繧九 + + + + + + +
+
+ + + + cssClass繧呈欠螳壹@縺ェ縺蝣エ蜷医√ち繧、繝医Ν蜿翫ウ蜷蛻励ョ隕∫エ縺ォclass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν蜿翫ウ蜷蛻励ョ隕∫エ縺ォclass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + + cssClass繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν蜿翫ウ蜷蛻励ョ隕∫エ縺ォclass螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + + + + + + sortable繧呈欠螳壹@縺ェ縺蝣エ蜷医√ち繧、繝医Ν驛ィ縺後た繝シ繝育畑繝ェ繝ウ繧ッ縺ィ縺ェ繧峨↑縺縺薙→ + + + + + + + + + + + sortable縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν驛ィ縺後た繝シ繝育畑繝ェ繝ウ繧ッ縺ィ縺ェ繧峨↑縺縺薙→ + + + + + + + + + + + sortable縺ォfalse繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν驛ィ縺後た繝シ繝育畑繝ェ繝ウ繧ッ縺ィ縺ェ繧峨↑縺縺薙→ + + + + + + + + + + + sortable縺ォtrue繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν驛ィ縺後た繝シ繝育畑繝ェ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + width繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医《tyle螻樊ァ縺ォwidth縺梧欠螳壹&繧後↑縺縺薙→縲 + + + + + + + + + + width繧鍛lank縺ォ縺励◆蝣エ蜷医《tyle螻樊ァ縺ォwidth縺梧欠螳壹&繧後↑縺縺薙→縲 + + + + + + + + + + width繧呈欠螳壹@縺溷エ蜷医《tyle螻樊ァ縺ォwidth縺梧欠螳壹&繧後k縺薙→縲 + + + + + + + + + listFormat縺梧悴謖螳壹ョ蝣エ蜷医√ョ繝輔か繝ォ繝医ョsp蛹コ蛻繧翫〒繝輔か繝シ繝槭ャ繝医&繧後k縺薙→ + + + + + + + + + + + listFormat縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ョ繝輔か繝ォ繝医ョsp蛹コ蛻繧翫〒繝輔か繝シ繝槭ャ繝医&繧後k縺薙→
+
+ + + + + + + + + + listFormat縺ォ繝繝輔か繝ォ繝亥、縺ョsp繧呈欠螳壹@縺溷エ蜷医《p蛹コ蛻繧翫〒繝輔か繝シ繝槭ャ繝医&繧後k縺薙→
+
+ + + + + + + + + + listFormat縺ォ繝繝輔か繝ォ繝亥、莉・螟悶ョ蛟、シbrシ峨r謖螳壹@縺溷エ蜷医|r縺ァ繝輔か繝シ繝槭ャ繝医&繧後k縺薙→ + + + + + + + + + additional螻樊ァ縺梧悴謖螳壹ョ蝣エ蜷医]arrow陦ィ遉コ縺ァ莉伜刈諠蝣ア逕ィ縺ョ蛻カ蠕。縺悟コ縺ェ縺縺薙→縲 + + + + + + additional螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医]arrow陦ィ遉コ縺ァ莉伜刈諠蝣ア逕ィ縺ョ蛻カ蠕。縺悟コ縺ェ縺縺薙→縲 + + + + + + additional螻樊ァ縺掲alse縺ョ蝣エ蜷医]arrow陦ィ遉コ縺ァ莉伜刈諠蝣ア逕ィ縺ョ蛻カ蠕。縺悟コ縺ェ縺縺薙→縲 + + + + + additional螻樊ァ縺荊rue縺ョ蝣エ蜷医]arrow陦ィ遉コ縺ァ莉伜刈諠蝣ア逕ィ縺ョ蛻カ蠕。縺梧怏蜉ケ縺ォ縺ェ繧九%縺ィ縲 + + + + + + 隍謨ー縺ョ陦後〒 true 繧呈欠螳壹@縺溷エ蜷域欠螳夊。後′莉伜刈諠蝣ア縺ィ縺ェ繧九%縺ィ縲 + + + + + + + + + + + pattern繧呈欠螳壹@縺ェ縺蝣エ蜷医 ̄ATTERN01縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + pattern縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医 ̄ATTERN01縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + pattern縺ォPATTERN01シ医ョ繝輔か繝ォ繝亥、シ峨r謖螳壹@縺溷エ蜷医√◎縺ョ繝代ち繝シ繝ウ縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + pattern縺ォPATTERN02シ医ョ繝輔か繝ォ繝亥、莉・螟厄シ峨r謖螳壹@縺溷エ蜷医√◎縺ョ繝代ち繝シ繝ウ縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + optionColumnName繧呈欠螳壹@縺ェ縺蝣エ蜷医√ョ繝輔か繝ォ繝医ョOPTION01縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ縲
+ labelPattern縺ォ$OPTIONALNAME$繧呈欠螳壹@縺ヲ遒コ隱 +
+ + + + + + + + + + optionColumnName縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ョ繝輔か繝ォ繝医ョOPTION01縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ縲
+ labelPattern縺ォ$OPTIONALNAME$繧呈欠螳壹@縺ヲ遒コ隱
+ +
+ + + + + + + + + + optionColumnName縺ォ繝繝輔か繝ォ繝亥、縺ョ縲薫PTION01縲阪r謖螳壹@縺溷エ蜷医√ョ繝輔か繝ォ繝医ョOPTION01縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ
+ labelPattern縺ォ$OPTIONALNAME$繧呈欠螳壹@縺ヲ遒コ隱 +
+ + + + + + + + + + optionColumnName縺ォ繝繝輔か繝ォ繝亥、莉・螟悶ョ蛟、繧呈欠螳壹@縺溷エ蜷医√◎縺ョ繧ェ繝励す繝ァ繝ウ縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ
+ labelPattern縺ォ$OPTIONALNAME$繧呈欠螳壹@縺ヲ遒コ隱 +
+ + + + + + + + + + labelPattern繧呈欠螳壹@縺ェ縺蝣エ蜷医√ョ繝輔か繝ォ繝医ョ$NAME$縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + + labelPattern縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ョ繝輔か繝ォ繝医ョ$NAME$縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + + labelPattern縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ョ繝輔か繝ォ繝医ョ$NAME$縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + + labelPattern縺ォ繝繝輔か繝ォ繝亥、縺ョ縲$NAME$縲阪r謖螳壹@縺溷エ蜷医$NAME$縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + + labelPattern縺ォ繝繝輔か繝ォ繝亥、莉・螟悶ョ蛟、シ$SHORTNAME$シ峨$SHORTNAME$縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + + labelPattern縺ォ隍謨ー縺ョ繝代ち繝シ繝ウ譁蟄怜励r謖螳壹@縺溷エ蜷医√◎縺ョ縺ィ縺翫j縺ォ邱ィ髮縺輔l蜃コ蜉帙&繧後k縺薙→ + + + + + + + + +
+ + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医∝励ち繧、繝医Ν蜿翫ウ蛻励ョ蛟、縺悟コ蜉帙&繧後k縺薙→
+ 窶サ蛟、縺悟コ蜉帙&繧後◆縺薙→繧堤「コ隱阪☆繧九◆繧〔ey螻樊ァ繧よ欠螳壹☆繧九 +
+ + + + + + + +
+
+
+ diff --git a/node_modules/nablarch-widget-column-label/package.json b/node_modules/nablarch-widget-column-label/package.json new file mode 100644 index 0000000..30187cc --- /dev/null +++ b/node_modules/nablarch-widget-column-label/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-column-label" +, "version": "1.0.1" +, "_from" : "nablarch-widget-column-label@1.0.1" +, "dependencies": { + } +, "description": "繝ゥ繝吶Ν陦ィ遉コ逕ィ繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-column-label/ui_public/WEB-INF/tags/widget/column/label.tag b/node_modules/nablarch-widget-column-label/ui_public/WEB-INF/tags/widget/column/label.tag new file mode 100644 index 0000000..4ea2b39 --- /dev/null +++ b/node_modules/nablarch-widget-column-label/ui_public/WEB-INF/tags/widget/column/label.tag @@ -0,0 +1,111 @@ +<%-- + 繝繝シ繝悶Ν繧ォ繝ゥ繝螳夂セゥ(繝繧ュ繧ケ繝郁。ィ遉コ) + @author Iwauo Tajima +--%> +<%@ tag pageEncoding="UTF-8" description="繝繝シ繝悶Ν繧ォ繝ゥ繝螳夂セゥ(繝繧ュ繧ケ繝郁。ィ遉コ)" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="listSearchResult" tagdir="/WEB-INF/tags/listSearchResult" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%@ attribute name="key" description="繧ォ繝ゥ繝繧ュ繝シ" required="true" rtexprvalue="true" %> +<%@ attribute name="title" description="繧ォ繝ゥ繝繝倥ャ繝繝シ縺ォ陦ィ遉コ縺吶k譁蟄怜" required="true" rtexprvalue="true" %> +<%@ attribute name="value" description="繧ォ繝ゥ繝縺ョ陦ィ遉コ蜀螳ケ" rtexprvalue="true" %> +<%@ attribute name="domain" description="繝繝シ繧ソ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="蜷繧ォ繝ゥ繝縺ォ謖螳壹☆繧気SS繧ッ繝ゥ繧ケ" rtexprvalue="true" %> +<%@ attribute name="sortable" description="縲腎able:search_result繧ソ繧ー縺ァ縺ョ縺ソ蛻ゥ逕ィ蜿ッ閭ス縲代き繝ゥ繝縺ョ繧ス繝シ繝医Μ繝ウ繧ッ繧定。ィ遉コ縺吶k縺九←縺縺(繝繝輔か繝ォ繝:false)" rtexprvalue="true" %> +<%@ attribute name="valueFormat" description="蜃コ蜉帙☆繧句、縺ョ繝輔か繝シ繝槭ャ繝域欠螳" rtexprvalue="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%@ attribute name="width" description="繧ォ繝ゥ繝縺ョ讓ェ蟷縲" rtexprvalue="true"%> +<%@ attribute name="additional" description="莉伜刈諠蝣ア縺九←縺縺(true縺ョ蝣エ蜷narrow陦ィ遉コ繝「繝シ繝峨〒蛻・蠖「蠑上〒縺ョ陦ィ遉コ縺ィ縺ェ繧九ゅョ繝輔か繝ォ繝医ッfalse)" rtexprvalue="true"%> + + +<%-- ============================ 髫主ア、繝ェ繧ケ繝育畑螻樊ァ =============================== --%> +<%@ attribute name="tree_indent" description="髫主ア、縺ョ豺ア縺輔↓蠢懊§縺溘う繝ウ繝繝ウ繝医r陦ィ遉コ縺吶k縺九←縺縺九(繝繝輔か繝ォ繝医ッfalse)" rtexprvalue="true" %> +<%@ attribute name="tree_toggler" description="蜷髫主ア、縺ョ髢矩哩繧定。後≧繝懊ち繝ウ繧偵%縺ョ繧ォ繝ゥ繝蜀縺ォ陦ィ遉コ縺吶k縺九←縺縺九(繝繝輔か繝ォ繝医ッfalse)" rtexprvalue="true" %> + + +<%-- ============================ 險ュ險域嶌逕ィ螻樊ァ =============================== --%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繝ゥ繝吶Ν陦ィ遉コ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="formatSpec" description="邱ィ髮莉墓ァ倥↓髢「縺吶k隱ャ譏" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + + +<%-- 隍謨ー陦瑚。ィ遉コ蟇セ蠢 --%> +<%@ attribute name="colspan" description="讓ェ譁ケ蜷代↓邨仙粋縺吶k繧ォ繝ゥ繝謨ー縲" rtexprvalue="true" %> +<%@ attribute name="rowspan" description="邵ヲ譁ケ蜷代↓邨仙粋縺吶k繧ォ繝ゥ繝謨ー縲" rtexprvalue="true" %> +<%@ attribute name="autospan" description="鬆逶ョ蛟、縺ォ繧医k閾ェ蜍輔き繝ゥ繝騾」邨舌" rtexprvalue="true"%> + + + + + + + + +<%-- 繝倥ャ繝繝シ陦 --%> + + + + + + + + + + +<%-- 繝懊ョ繧」陦 --%><%-- 謾ケ陦後′驥阪↑繧九→IE9縲!E10縺ァ繝ャ繝ウ繝繝ェ繝ウ繧ー縺後%縺代k蝠城。後ョ蟇セ蠢懊〒謾ケ陦後r蜑翫k(#8653) --%> +<%-- 荳蠎ヲ縺縺代ヰ繧、繝ウ繝峨☆繧九◆繧(ndex縺ァ蛻、螳壹☆繧九(index == 0 縺ァ蛻、螳壹☆繧九→繝ュ繝シ繧ォ繝ォ繝ャ繝ウ繝繝ェ繝ウ繧ー縺後〒縺阪↑縺縺ョ縺ァcount==1繧貞茜逕ィ縺吶k縲)--%> + + + + + + + + + +<%-- 莉伜刈諠蝣ア陦ィ遉コ鬆伜沺 --%> + +
+
+
+ + + + + + + + +
+
+
\ No newline at end of file diff --git a/node_modules/nablarch-widget-column-label/ui_public/js/nablarch/ui/AutoSpan.js b/node_modules/nablarch-widget-column-label/ui_public/js/nablarch/ui/AutoSpan.js new file mode 100644 index 0000000..5432ab6 --- /dev/null +++ b/node_modules/nablarch-widget-column-label/ui_public/js/nablarch/ui/AutoSpan.js @@ -0,0 +1,140 @@ +define(['./Widget', 'jquery', 'sugar'], +function(Widget, $) { "use strict"; + /** + * 繧ォ繝ゥ繝蛟、縺ォ繧医k閾ェ蜍戊。碁」邨先ゥ溯ス + * ========================================= + * 荳贋ク九↓髫」謗・縺吶k繧サ繝ォ縺ォ縺翫>縺ヲ縲∫音螳壹ョ螻樊ァ蛟、縺悟酔縺倥≠縺」縺溷エ蜷医↓閾ェ蜍慕噪縺ォ繧サ繝ォ繧帝」邨舌&縺帙k讖溯ス縲 + * 譛ャ讖溯ス繧堤畑縺繧九%縺ィ縺ァ蝣エ蜷医∽ク闊ャ逧縺ェ螳溯」縺ォ豈斐∋縺ヲ繧オ繝シ繝舌し繧、繝牙エ縺ョ繝ュ繧ク繝繧ッ繧定サス貂帙☆繧九%縺ィ縺後〒縺阪k縲 + * + * 縺ェ縺翫√ョ繝シ繧ソ縺ョ繧ス繝シ繝医ッ繧オ繝シ繝仙エ縺ョ蜃ヲ逅縺ァ 莠句燕縺ォ陦後▲縺ヲ縺翫¥蠢隕√′縺ゅk縲 + * + * 蜍穂ス應サ墓ァ + * ------------------------------------- + * 莉・荳九ョ譚。莉カ繧呈コ縺溘☆繧サ繝ォ繧池owspan 繧堤畑縺縺ヲ騾」邨舌☆繧九 + * 騾」邨仙セ後↓谿九k縺ョ縺ッ縲∽ク逡ェ荳雁エ縺ョ蛻励↓蟄伜惠縺吶k繧サ繝ォ縺ョ縺ソ縺ァ縺ゅk縲 + * + * 1. selector螻樊ァ縺ォ蜷郁エ縺吶k縲 + * 2. 荳贋ク区婿蜷代↓髫」謗・縺励※縺繧九 + * 3. data-autospan螻樊ァ縺ョ蛟、縺御ク閾エ縺励※縺繧九 + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------------------- + * 谺。縺ョ萓九〒縺ッ縲後Θ繝シ繧カ蜷阪阪き繝ゥ繝縺ョ data-autospan 縺ョ蛟、縺御ク閾エ縺吶k髫」謗・繧サ繝ォ縺檎オ仙粋縺輔l繧九 + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * ... + * + * + * + * + * + * ... + *
繝ヲ繝シ繧カ蜷 蛻ゥ逕ィ蟷エ譛 譛亥挨隱イ驥鷹。
繝ヲ繝シ繧カ001 2009/12 4321 蜀
繝ヲ繝シ繧カ001 2010/12 5832 蜀
繝ヲ繝シ繧カ001 2011/1 899 蜀
繝ヲ繝シ繧カ002 2009/10 3455 蜀
+ * + * @class nablarch.ui.AutoSpan + * + * @author Iwauo Tajima + * @since 1.4 + */ + AutoSpan.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ + * + * @method AutoSpan + * @constructor + * @param {HTMLElement} element 繝槭シ繧ォCSS繧呈欠螳壹@縺櫂OM繝弱シ繝 + * @param {Object} option 繧ェ繝励す繝ァ繝ウ繧呈シ邏阪@縺溘が繝悶ず繧ァ繧ッ繝 + * **selector:** 邨仙粋蟇セ雎。縺ョ繧サ繝ォ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ蠑 + * @return {AutoSpan} 繧、繝ウ繧ケ繧ソ繝ウ繧ケ + */ + constructor: AutoSpan + /** + * 邨仙粋蟇セ雎。縺ョ繧サ繝ォ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ蠑 + * + * @property selector + * @type String + */ + , selector: null + /** + * 邨仙粋蟇セ雎。縺ョ繧サ繝ォ繧呈シ邏阪☆繧狗オ先棡繧サ繝繝 + * @property $cols + * @type jQuery + */ + , $cols: null + /** + * 邨仙粋蟇セ雎。縺ョ繧サ繝ォ繧貞性繧繝繝シ繝悶Ν + * @property $table + * @type jQuery + */ + , $table: null + /** + * 迴セ蝨ィ縺ョ迥カ諷九↓豐ソ縺」縺ヲ縲√き繝ゥ繝縺ョ邨仙粋蜃ヲ逅繧貞ョ溯。後☆繧九 + * method render + * @type AutoSpan + */ + , render: AutoSpan_render + }); + /** + * 繝「繧ク繝・繝シ繝ォ隴伜挨蜷 + * @property widgetType + * @type String + * @static + * @final + */ + AutoSpan.widgetType = 'nablarch_AutoSpan'; + Widget.register(AutoSpan); + + function AutoSpan(element, opts) { + this.constructor = AutoSpan; + Object.merge(this, opts); + Widget.call(this, element); + this.$table = this.$node.closest('table'); + this.render(); + } + + function AutoSpan_render() { + var $rows = this.$table.find('tr:not(.nablarch_AdditionalColumnInlay)') + , selector = this.selector; + + $rows.get().reduce(function(spanningCell, row) { + var $cell = $(row).find(selector) + , $spanning = $(spanningCell) + , span; + + if (!spanningCell) { + return $cell[0]; + } + if ($spanning.attr('data-autospan') !== $cell.attr('data-autospan')) { + return $cell[0]; + } + span = Number($spanning.attr('rowspan')) || 1; + $spanning.attr('rowspan', span + 1); + $cell.remove(); + return $spanning[0]; + + }, null); + return this; + } + + return AutoSpan; +}); diff --git "a/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253.jsp" "b/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253.jsp" new file mode 100644 index 0000000..274b40d --- /dev/null +++ "b/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253.jsp" @@ -0,0 +1,42 @@ + + +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + th.font-red, td.font-red { + color: red; + } + + th.font-blue, td.font-blue { + color: blue; + } + + th.mail, td.mail { + border: 2px green solid; + } + + th.date, td.date { + border: 2px #800080 solid; + } + + + diff --git "a/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..a5a0fb6 --- /dev/null +++ "b/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,326 @@ + runTest( + 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , sortable螻樊ァ縺ョ繝繧ケ繝 + , domain螻樊ァ縺ョ繝繧ケ繝 + , width螻樊ァ縺ョ繝繧ケ繝 + , value螻樊ァ縺ョ繝繧ケ繝 + , valueFormat螻樊ァ繝繧ケ繝 + , autospan螻樊ァ繝繧ケ繝 + , additional螻樊ァ縺ョ繝繧ケ繝 + ); + + var $all_nodes + , paging_navi_area = "div.nablarch_paging" + , label = 'h2' + , inlay = { + record : ".nablarch_AdditionalColumnInlay" + } + , visible = { + tr : 'tr:not('+inlay.record+')' + , td : 'td:not(.nablarch_AdditionalColumnInlayToggle)' + , th : 'th:not(.nablarch_AdditionalColumnInlayToggle)' + }; + + function setup() { + $all_nodes = $('span.test-case, div.title, div.nablarch_listSearchResultWrapper'); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + setup(); + var cases = test_for('require_only-test') + , require_only = cases[0]; + + equal($.trim(require_only.title.find(label).text()), "蠢鬆亥ア樊ァシ亥ィ縺ヲ縺ョ繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝医r郤上a縺ヲ螳滓命シ", require_only.testcase + " [title label]"); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_css_case = cases[2] + , assertClass = function(clazz, case_description) { + return function () { + ok($(this).is(clazz), case_description); + }; + }; + + // 繝ゥ繝吶Ν驛ィ縺ォ縺ッ縲√ョ繝輔か繝ォ繝医ョcss繧ッ繝ゥ繧ケシcol_ + key蜷搾シ峨′蠢縺夊ィュ螳壹&繧後k + default_case.table.find(visible.tr).find(visible.td).filter(':eq(0)').each(assertClass('.col_mail', default_case.testcase)); + default_case.table.find(visible.tr).find(visible.td).filter(':eq(1)').each(assertClass('.col_date', default_case.testcase)); + default_case.table.find(visible.tr).find(visible.th).filter(':eq(0)').each(assertClass('.col_mail', default_case.testcase)); + default_case.table.find(visible.tr).find(visible.th).filter(':eq(1)').each(assertClass('.col_date', default_case.testcase)); + blank_case.table.find(visible.tr).find(visible.td).filter(':eq(0)').each(assertClass('.col_mail', blank_case.testcase)); + blank_case.table.find(visible.tr).find(visible.td).filter(':eq(1)').each(assertClass('.col_date', blank_case.testcase)); + blank_case.table.find(visible.tr).find(visible.th).filter(':eq(0)').each(assertClass('.col_mail', blank_case.testcase)); + blank_case.table.find(visible.tr).find(visible.th).filter(':eq(1)').each(assertClass('.col_date', blank_case.testcase)); + + // 謖螳壹@縺歡ss繧ッ繝ゥ繧ケ縺ィ繝繝輔か繝ォ繝医ョcss繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→ + set_css_case.table.find(visible.tr).find(visible.td).filter(':eq(0)').each(assertClass('.font-red.col_mail', set_css_case.testcase)); + set_css_case.table.find(visible.tr).find(visible.td).filter(':eq(1)').each(assertClass('.font-blue.col_date', set_css_case.testcase)); + set_css_case.table.find(visible.tr).find(visible.th).filter(':eq(0)').each(assertClass('.font-red.col_mail', set_css_case.testcase)); + set_css_case.table.find(visible.tr).find(visible.th).filter(':eq(1)').each(assertClass('.font-blue.col_date', set_css_case.testcase)); + + } + + function sortable螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('sortable-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , assertNotLink = function(case_description) { + return function() { + equal($(this).find('a').size(), 0, case_description); + }; + } + , assertLinkCount = function(count, case_description) { + return function() { + equal($(this).find('a').size(), count, case_description); + }; + }; + + default_case.table.find('tr:first').find('th').each(assertNotLink(default_case.testcase)); + blank_case.table.find('tr:first').find('th').each(assertNotLink(blank_case.testcase)); + false_case.table.find('tr:first').find('th').each(assertNotLink(false_case.testcase)); + // 謖螳壹@縺溘き繝ゥ繝縺ョ縺ソ險ュ螳壹&繧後k縺薙→ + true_case.table.find('tr:first').find('th:eq(0)').each(assertLinkCount(1, true_case.testcase)); + true_case.table.find('tr:first').find('th:eq(1)').each(assertNotLink(true_case.testcase)); + } + + function domain螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('domain-test') + , domain_only = cases[0] + , domain_and_css = cases[1] + , mail_col = 'td:eq(0)' // mail domain縺ッ1蛻礼岼 + , mail_header = 'th:eq(0)' + , date_col = 'td:eq(1)' // date domain縺ッ2蛻礼岼 + , date_header = 'th:eq(1)' + , assertHas = function(classes, case_description) { + return function(/* $.each */) { + var $node = $(this); + $.each(classes, function(i, clazz){ + ok($node.is('.' + clazz), case_description + "[has " + clazz + ":" + i + "]"); + }); + }; + } + , assertNotHas = function(classes, case_description) { + return function(/* $.each */) { + var $node = $(this); + $.each(classes, function(i, clazz){ + ok(!$node.is('.' + clazz), case_description + "[not has " + clazz + ":" + i + "]"); + }); + }; + }; + domain_only.table.find('tr').find(mail_col).each(assertHas(['mail'], domain_only.testcase)); + domain_only.table.find('tr').find(mail_col).each(assertNotHas(['date', 'font-red', 'font-blue'], domain_only.testcase)); + domain_only.table.find('tr').find(mail_header).each(assertNotHas(['mail', 'date', 'font-red', 'font-blue'], domain_only.testcase)); + + domain_only.table.find('tr').find(date_col).each(assertHas(['date'], domain_only.testcase)); + domain_only.table.find('tr').find(date_col).each(assertNotHas(['mail', 'font-red', 'font-blue'], domain_only.testcase)); + domain_only.table.find('tr').find(date_header).each(assertNotHas(['mail', 'date', 'font-red', 'font-blue'], domain_only.testcase)); + + domain_and_css.table.find('tr').find(mail_col).each(assertHas(['mail', 'font-red'], domain_and_css.testcase)); + domain_and_css.table.find('tr').find(mail_col).each(assertNotHas(['date', 'font-blue'], domain_and_css.testcase)); + domain_and_css.table.find('tr').find(mail_header).each(assertHas(['font-red'], domain_and_css.testcase)); + domain_and_css.table.find('tr').find(mail_header).each(assertNotHas(['mail', 'date', 'font-blue'], domain_and_css.testcase)); + + domain_and_css.table.find('tr').find(date_col).each(assertHas(['date', 'font-blue'], domain_and_css.testcase)); + domain_and_css.table.find('tr').find(date_col).each(assertNotHas(['mail', 'font-red'], domain_and_css.testcase)); + domain_and_css.table.find('tr').find(date_header).each(assertHas(['font-blue'], domain_and_css.testcase)); + domain_and_css.table.find('tr').find(date_header).each(assertNotHas(['mail', 'date', 'font-red'], domain_and_css.testcase)); + } + + function width螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('width-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assertWidth = function(testcase, expected) { + return function(i) { + var style = this.style + , key; + for (key in expected) { + if (expected.hasOwnProperty(key)) { + equal(style[key], expected[key], testcase.testcase + style[key]); + } + } + }; + }; + default_case.table.find(visible.th).each(assertWidth(default_case, '')); + blank_case.table.find(visible.th).each(assertWidth(blank_case, '')); + set_case.table.find(visible.th).filter(':eq(0)').each(assertWidth(set_case, {'width' : '100px'})); + set_case.table.find(visible.th).filter(':eq(1)').each(assertWidth(set_case, {'width' : '30%'})); + set_case.table.find(visible.tr).find(visible.td).filter(':eq(0)').each(assertWidth(set_case, {'width' : '100px'})); + set_case.table.find(visible.tr).find(visible.td).filter(':eq(1)').each(assertWidth(set_case, {'width' : '30%'})); + } + + function value螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('value-test') + , defualt_mail_case = cases[0] // 繧オ繝シ繝舌シ繝ャ繧ケ繝昴Φ繧ケ縺ョid繧貞茜逕ィ + , blank_id_case = cases[1] // 繧オ繝シ繝舌シ繝ャ繧ケ繝昴Φ繧ケ縺ョid繧貞茜逕ィ + , tag_seq_case = cases[2] // tag縺ァ騾」逡ェ繧呈欠螳 + , assertValues = function(values, case_description) { + return function(i , td) { + equal($.trim($(td).text()), values[i], case_description + "[" + i + "]"); + }; + } + , ids = ["1001", "1002", "1003", "1004"] + , mails = ["mail@mail.com", "mail2@mail.com", "mail3@mail.com", "mail4@mail.com"] + , seq = ["1", "2", "3", "4"]; + + defualt_mail_case.table.find(visible.tr).find(visible.td).each(assertValues(mails, defualt_mail_case.testcase)); + blank_id_case.table.find(visible.tr).find(visible.td).each(assertValues(ids, blank_id_case.testcase)); + tag_seq_case.table.find(visible.tr).find(visible.td).each(assertValues(seq, tag_seq_case.testcase)); + } + + function autospan螻樊ァ繝繧ケ繝() { + setup(); + var cases = test_for('autospan-test') + , autospan_no_use = cases[0] + , autospan_blank = cases[1] + , autospan_used = cases[2] + , autospan_other = cases[3] + // no use + , $no_use_status = autospan_no_use.table.find('td.col_status') + , $no_use_mail = autospan_no_use.table.find('td.col_mail') + , $no_use_date = autospan_no_use.table.find('td.col_date') + // blank + , $blank_status = autospan_blank.table.find('td.col_status') + , $blank_mail = autospan_blank.table.find('td.col_mail') + , $blank_date = autospan_blank.table.find('td.col_date') + // used + , $used_spanned_row = autospan_used.table.find('td.col_status') + , $used_not_spanned_row = autospan_used.table.find('td.col_mail') + // other column key + , $other_spanned_date = autospan_other.table.find('td.col_date') + , $other_not_spanned_date = autospan_other.table.find('td.col_no_span_date') + , $other_hidden = autospan_other.table.find('td.col_hidden'); + + // case1 no use + equal($no_use_status.length, 4, autospan_no_use.testcase + "[0]"); + equal($no_use_status.map(collectRowspan).get().join(), '1,1,1,1', autospan_no_use.testcase + "[1]"); + equal($no_use_mail.length, 4, autospan_no_use.testcase + "[2]"); + equal($no_use_mail.map(collectRowspan).get().join(), '1,1,1,1', autospan_no_use.testcase + "[3]"); + equal($no_use_date.length, 4, autospan_no_use.testcase + "[4]"); + equal($no_use_date.map(collectRowspan).get().join(), '1,1,1,1', autospan_no_use.testcase + "[5]"); + + // case2 blank + equal($blank_status.length, 4, autospan_blank.testcase + "[0]"); + equal($blank_status.map(collectRowspan).get().join(), '1,1,1,1', autospan_blank.testcase + "[1]"); + equal($blank_mail.length, 4, autospan_blank.testcase + "[2]"); + equal($blank_mail.map(collectRowspan).get().join(), '1,1,1,1', autospan_blank.testcase + "[3]"); + equal($blank_date.length, 4, autospan_blank.testcase + "[4]"); + equal($blank_date.map(collectRowspan).get().join(), '1,1,1,1', autospan_blank.testcase + "[5]"); + + // case3 simple use + equal($used_spanned_row.length, 3, autospan_used.testcase + '[0]'); + equal($used_spanned_row.map(collectRowspan).get().join(), '1,1,2', autospan_used.testcase + '[1]'); + equal($used_not_spanned_row.length, 4, autospan_used.testcase + '[2]'); + equal($used_not_spanned_row.map(collectRowspan).get(), '1,1,1,1', autospan_used.testcase + '[3]'); + + // case4 use other column for key + equal($other_spanned_date.length, 2, autospan_other.testcase + "[0]"); + equal($other_spanned_date.map(collectRowspan).get().join(), '3,1' , autospan_other.testcase + "[1]"); + equal($other_not_spanned_date.length, 4, autospan_other.testcase + "[2]"); + equal($other_not_spanned_date.map(collectRowspan).get().join(), '1,1,1,1' , autospan_other.testcase + "[3]"); + equal($other_hidden.length, 4, autospan_other.testcase + "[4]"); + equal($other_hidden.map(collectRowspan).get().join(), '1,1,1,1' , autospan_other.testcase + "[5]"); + + // for $.map(array, this); + function collectRowspan() { + return $(this).attr('rowspan') || "1"; + } + } + + function valueFormat螻樊ァ繝繧ケ繝() { + setup(); + var cases = test_for('valueFormat-test') + , default_case = cases[0] + , blank_case = cases[1] + , format_case = cases[2] + , assertValues = function(values, case_description) { + return function(i , td) { + equal($.trim($(td).text()), values[i], case_description + "[" + i + "]"); + }; + } + , dates = ["20131001", "20131002", "20131003", "20131004"] + , srashes = dates.map(function(e, i){return e.replace(/(\d{4})(\d{2})(\d{2})/, "$1/$2/$3");}) + , 蟷エ譛域律s = dates.map(function(e, i){return e.replace(/(\d{4})(\d{2})(\d{2})/, "$1蟷エ$2譛$3譌・");}) + , nums = ["1,000", "10,000", "100,000", "1,000,000"]; + + default_case.table.find(visible.tr).find(visible.td).each(assertValues(dates, default_case.testcase)); + blank_case.table.find(visible.tr).find(visible.td).each(assertValues(dates, blank_case.testcase)); + format_case.table.find(visible.tr).find(visible.td).filter(':eq(0)').each(assertValues(srashes, format_case.testcase)); + format_case.table.find(visible.tr).find(visible.td).filter(':eq(1)').each(assertValues(蟷エ譛域律s, format_case.testcase)); + format_case.table.find(visible.tr).find(visible.td).filter(':eq(2)').each(assertValues(nums, format_case.testcase)); + } + + function additional螻樊ァ縺ョ繝繧ケ繝() { + var testcases = test_for("additionalTest") + , simple = testcases[0] + , composite = testcases[1] + , msg = simple.testcase + , table = simple.table + , mail = { + expected : ["mail@mail.com", "mail2@mail.com", "mail3@mail.com", "mail4@mail.com"] + , header : "繝。繝シ繝ォ(true)" + } + num = { + expected : ["1,000", "10,000", "100,000", "1,000,000"] + , header : "value&format(true)" + } + , assertText = function(node, expected, msg) { + var text = $(node).text().split(/\s+/).join(""); + ok(text.has(expected), [msg , text, expected].join(' , ')); + }; + + table.find(visible.td).filter('.additional').each(function(i,e) { + assertText(this, mail.expected[i], msg + "additional(normal col)[ "+i+" ]"); + }); + + table.find(inlay.record).find('td').each(function(i,e) { + assertText(this, mail.header + "シ" + mail.expected[i], msg + "inlay[ "+i+" ]"); + }) + + // value & valueFormat譛峨ョ蝣エ蜷医ョ繧ア繝シ繧ケ + table = composite.table; + msg = composite.testcase; + table.find(visible.tr).find(visible.td+":eq(1)").filter('.additional').each(function(i) { + assertText(this, mail.expected[i], msg + "additional(normal col)[ "+i+" ]"); + }); + table.find(visible.tr).find(visible.td+":eq(2)").filter('.additional').each(function(i) { + assertText(this, num.expected[i], msg + "additional(normal col)[ "+i+" ]"); + }); + + table.find(inlay.record).find("td").each(function(i){ + assertText(this, expectText(), msg + "inlay[ "+i+" ]"); + function expectText() { + return mail.header+"シ"+mail.expected[i]+num.header+"シ"+num.expected[i]; + } + }); + } + + /** + * 繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝_繝ゥ繝吶Ν縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e); + return { + testcase : $.trim($e.text()), + title : $($all_nodes[idx + 1]), + table : $($all_nodes[idx + 2]) + }; + }); + } + diff --git "a/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..dd0cd17 --- /dev/null +++ "b/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,35 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + th.font-red, td.font-red { + color: red; + } + + th.font-blue, td.font-blue { + color: blue; + } + + th.mail, td.mail { + border: 2px green solid; + } + + th.date, td.date { + border: 2px #800080 solid; + } + + + diff --git "a/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..b7431d4 --- /dev/null +++ "b/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,77 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..650f6f4 --- /dev/null +++ "b/node_modules/nablarch-widget-column-label/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\203\231\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,616 @@ +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳壹@縺溷エ蜷医√し繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後k縺薙→ + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒謖螳壹☆繧句、繧貞ィ縺ヲ險ュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医ョ蜍穂ス懊′蝠城。後↑縺縺薙→ + + + + + + + + + + + + + cssClass繧呈欠螳壹@縺ェ縺蝣エ蜷医∬ゥイ蠖灘励ョth蜿翫ウtd縺ォ縺ッclass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∬ゥイ蠖灘励ョth蜿翫ウtd縺ォ縺ッclass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + cssClass繧呈欠螳壹@縺溷エ蜷医∬ゥイ蠖灘励ョth蜿翫ウtd縺ォ縺ッclass螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + + + + + sortable繧呈欠螳壹@縺ェ縺蝣エ蜷医√ち繧、繝医Ν縺ッ繧ス繝シ繝育畑縺ョ繝ェ繝ウ繧ッ縺ォ縺ェ繧峨↑縺縺薙→ + + + + + + + + + + sortable縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν縺ッ繧ス繝シ繝育畑縺ョ繝ェ繝ウ繧ッ縺ォ縺ェ繧峨↑縺縺薙→ + + + + + + + + + + sortable縺ォfalse繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν縺ッ繧ス繝シ繝育畑縺ョ繝ェ繝ウ繧ッ縺ォ縺ェ繧峨↑縺縺薙→ + + + + + + + + + + sortable縺ォtrue繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν縺ッ繧ス繝シ繝育畑縺ョ繝ェ繝ウ繧ッ縺ォ縺ェ繧九%縺ィ + + + + + + + + + + domain縺ォ謖螳壹@縺溷、縺後…lass螻樊ァ縺ォ蜃コ蜉帙&繧後k縺薙→ + + + + + + + + + + domain縺ィcssClass繧呈欠螳壹☆繧九→縲∽ク。譁ケ縺ョ蛟、縺慶lass螻樊ァ縺ォ蜃コ蜉帙&繧後k縺薙→ + + + + + + + + + domain縺ィcssClass繧呈欠螳壹☆繧九→縲∽ク。譁ケ縺ョ蛟、縺慶lass螻樊ァ縺ォ蜃コ蜉帙&繧後k縺薙→ + + + width繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医《tyle螻樊ァ縺ォwidth縺梧欠螳壹&繧後↑縺縺薙→縲 + + + + + + + + + width繧鍛lank縺ォ縺励◆蝣エ蜷医《tyle螻樊ァ縺ォwidth縺梧欠螳壹&繧後↑縺縺薙→縲 + + + + + + + + + width繧呈欠螳壹@縺溷エ蜷医《tyle螻樊ァ縺ォwidth縺梧欠螳壹&繧後k縺薙→縲 + + + + + + + + + + autospan螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∬。後ッ邨仙粋縺輔l縺ェ縺縲 + + + + + + + + + + + + autospan螻樊ァ縺ォblank繧呈欠螳壹@縺溷エ蜷医∬。後ッ邨仙粋縺輔l縺ェ縺縲 + + + + + + + + + + + + autospan螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蜀螳ケ縺御ク閾エ縺吶k + 荳贋ク九↓髫」謗・縺吶k繧ォ繝ゥ繝繧定ェ蜍慕噪縺ォ邨仙粋縺吶k縲 + + + + + + + + + + + + autospan螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蜀螳ケ縺御ク閾エ縺吶k + 荳贋ク九↓髫」謗・縺吶k繧ォ繝ゥ繝繧定ェ蜍慕噪縺ォ邨仙粋縺吶k縲(陦ィ遉コ縺ィ縺ッ蛻・縺ョ鬆逶ョ繧貞茜逕ィ縺励◆蝣エ蜷) + + + + + + + + + + + + additional螻樊ァ縺ョ繝繧ケ繝 + narrow陦ィ遉コ縺ァ縺ッtrue縺悟励°繧画カ医∴縲(nlay陦ィ遉コ縺ォ縺ェ繧九%縺ィ + + + + + + + + + + + + value縺翫h縺ウvalueFormat縺悟茜逕ィ縺ァ縺阪k縺薙→ + + + + + + + + + + + + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医∝励ち繧、繝医Ν蜿翫ウ蛻励ョ蛟、縺悟コ蜉帙&繧後k縺薙→
+ 窶サ蛟、縺悟コ蜉帙&繧後◆縺薙→繧堤「コ隱阪☆繧九◆繧〔ey螻樊ァ繧よ欠螳壹☆繧九 +
+ + + + + + + value螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌し繧、繝峨〒險ュ螳壹@縺溷、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + + + value螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌し繧、繝峨〒險ュ螳壹@縺溷、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + + + value螻樊ァ縺ォ蛟、繧呈欠螳壹@縺溷エ蜷医∝推陦後↓縺昴ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + <%-- count螻樊ァ繧剃スソ逕ィ縺励※騾」逡ェ繧定ィュ螳 --%> + + + + + valueFormat螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ヵ繧ゥ繝シ繝槭ャ繝医&繧後↑縺縺薙→ + + + + + + + + valueFormat螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ヵ繧ゥ繝シ繝槭ャ繝医&繧後↑縺縺薙→ + + + + + + + + valueFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医√ヵ繧ゥ繝シ繝槭ャ繝医&繧後k縺薙→ + + + + + + + + + +
+
+
diff --git a/node_modules/nablarch-widget-column-link/package.json b/node_modules/nablarch-widget-column-link/package.json new file mode 100644 index 0000000..de1e6b9 --- /dev/null +++ b/node_modules/nablarch-widget-column-link/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-column-link" +, "version": "1.0.1" +, "_from" : "nablarch-widget-column-link@1.0.1" +, "dependencies": { + } +, "description": "繝ェ繝ウ繧ッ蜃コ蜉帷畑繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-column-link/ui_public/WEB-INF/tags/widget/column/link.tag b/node_modules/nablarch-widget-column-link/ui_public/WEB-INF/tags/widget/column/link.tag new file mode 100644 index 0000000..7a0af95 --- /dev/null +++ b/node_modules/nablarch-widget-column-link/ui_public/WEB-INF/tags/widget/column/link.tag @@ -0,0 +1,83 @@ +<%-- + 繝繝シ繝悶Ν繧ォ繝ゥ繝螳夂セゥ (繝ェ繝ウ繧ッ陦ィ遉コ) + @author Iwauo Tajima +--%> +<%@ tag pageEncoding="UTF-8" description="繝繝シ繝悶Ν繧ォ繝ゥ繝螳夂セゥ (繝ェ繝ウ繧ッ陦ィ遉コ)" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="listSearchResult" tagdir="/WEB-INF/tags/listSearchResult" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%@ attribute name="key" description="繧ォ繝ゥ繝繧ュ繝シ" rtexprvalue="true" %> +<%@ attribute name="title" description="繧ォ繝ゥ繝繝倥ャ繝繝シ縺ォ陦ィ遉コ縺吶k譁蟄怜" required="true" rtexprvalue="true" %> +<%@ attribute name="value" description="繝ェ繝ウ繧ッ繝繧ュ繧ケ繝域枚蟄怜" rtexprvalue="true" %> +<%@ attribute name="domain" description="繝繝シ繧ソ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="蜷繧ォ繝ゥ繝縺ォ謖螳壹☆繧気SS繧ッ繝ゥ繧ケ" rtexprvalue="true" %> +<%@ attribute name="sortable" description="縲腎able:search_result繧ソ繧ー縺ァ縺ョ縺ソ蛻ゥ逕ィ蜿ッ閭ス縲代き繝ゥ繝縺ョ繧ス繝シ繝医Μ繝ウ繧ッ繧定。ィ遉コ縺吶k縺九←縺縺(繝繝輔か繝ォ繝:false)" rtexprvalue="true" %> +<%@ attribute name="uri" description="繝ェ繝ウ繧ッ蟇セ雎。URI" required="true" rtexprvalue="true" %> +<%@ attribute name="inactive" description="繝ェ繝ウ繧ッ繧帝撼豢サ諤ァ縺ィ縺吶k縺九←縺縺九Urue縺ョ蝣エ蜷医↓縺ッ繝ェ繝ウ繧ッ繧帝撼豢サ諤ァ縺ィ縺励√Λ繝吶Ν陦ィ遉コ縺輔l繧九" rtexprvalue="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%@ attribute name="dummyUri" description="繝繧ケ繝育畑縺ョ繝繝溘シ驕キ遘サ蜈(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%@ attribute name="width" description="繧ォ繝ゥ繝縺ョ讓ェ蟷縲" rtexprvalue="true"%> + +<%-- 隍謨ー陦瑚。ィ遉コ蟇セ蠢 --%> +<%@ attribute name="colspan" description="讓ェ譁ケ蜷代↓邨仙粋縺吶k繧ォ繝ゥ繝謨ー縲" rtexprvalue="true" %> +<%@ attribute name="rowspan" description="邵ヲ譁ケ蜷代↓邨仙粋縺吶k繧ォ繝ゥ繝謨ー縲" rtexprvalue="true" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繝ェ繝ウ繧ッ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + + + + +<%-- 繝倥ャ繝繝シ陦 --%> + + + + + + + + + + + +<%-- 繝懊ョ繧」陦 --%> + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257.jsp" "b/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257.jsp" new file mode 100644 index 0000000..dc22e8d --- /dev/null +++ "b/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257.jsp" @@ -0,0 +1,37 @@ + + +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + th.border-red, td.border-red { + border: 1px solid red; + } + + th.bg-red, td.bg-red { + background: red; + } + + th.mail, td.mail { + border: 2px green solid; + } + + diff --git "a/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..37be878 --- /dev/null +++ "b/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,186 @@ + runTest( + 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , sortable螻樊ァ縺ョ繝繧ケ繝 + , inactive螻樊ァ縺ョ繝繧ケ繝 + , domain螻樊ァ縺ョ繝繧ケ繝 + , width螻樊ァ縺ョ繝繧ケ繝 + , value螻樊ァ縺ョ繝繧ケ繝 + ); + + var $all_nodes + , paging_navi_area = "div.nablarch_paging" + , label = 'h2' + , visible = { + tr : 'tr:not(.nablarch_AdditionalColumnInlay)' + , td : 'td:not(.nablarch_AdditionalColumnInlayToggle)' + , th : 'th:not(.nablarch_AdditionalColumnInlayToggle)' + }; + + function setup() { + $all_nodes = $('span.test-case, div.title, div.nablarch_listSearchResultWrapper'); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + setup(); + var cases = test_for('require_only-test') + , require_only = cases[0]; + + equal($.trim(require_only.title.find(label).text()), "蠢鬆亥ア樊ァシ亥ィ縺ヲ縺ョ繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝医r郤上a縺ヲ螳滓命シ", require_only.testcase + " [title label]"); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_css_case = cases[2] + , assertIsBlank = function(case_description) {return function () { + ok($.trim($(this).attr('class')).isBlank(), case_description); + };} + , assertClass = function(clazz, case_description) {return function () { + equal($.trim($(this).attr('class')), clazz, case_description); + };}; + + default_case.table.find(visible.tr).find(visible.td).each(assertIsBlank(default_case.testcase + "(td)")); + default_case.table.find(visible.tr).find(visible.th).each(assertIsBlank(default_case.testcase + "(th)")); + blank_case.table.find(visible.tr).find(visible.td).each(assertIsBlank(blank_case.testcase + "(td)")); + blank_case.table.find(visible.tr).find(visible.th).each(assertIsBlank(blank_case.testcase + "(th)")); + // 謖螳壹@縺溘き繝ゥ繝縺ョ縺ソ險ュ螳壹&繧後k縺薙→ + set_css_case.table.find(visible.tr).find(visible.td+':eq(0)').each(assertClass('border-red', set_css_case.testcase + "(td:eq(0))")); + set_css_case.table.find(visible.tr).find(visible.th+':eq(0)').each(assertClass('border-red', set_css_case.testcase + "(th:eq(0))")); + set_css_case.table.find(visible.tr).find(visible.td+':eq(1)').each(assertIsBlank(set_css_case.testcase + "(td:eq(1))")); + set_css_case.table.find(visible.tr).find(visible.th+':eq(1)').each(assertIsBlank(set_css_case.testcase + "(th:eq(1))")); + } + + function sortable螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('sortable-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , assertNotLink = function(case_description) { + return function() { + equal($(this).find('a').size(), 0, case_description); + }; + } + , assertLinkCount = function(count, case_description) { + return function() { + equal($(this).find('a').size(), count, case_description); + }; + }; + + default_case.table.find('tr:first').find('th').each(assertNotLink(default_case.testcase)); + blank_case.table.find('tr:first').find('th').each(assertNotLink(blank_case.testcase)); + false_case.table.find('tr:first').find('th').each(assertNotLink(false_case.testcase)); + // 謖螳壹@縺溘き繝ゥ繝縺ョ縺ソ險ュ螳壹&繧後k縺薙→ + true_case.table.find('tr:first').find('th:eq(0)').each(assertLinkCount(1, true_case.testcase)); + true_case.table.find('tr:first').find('th:eq(1)').each(assertNotLink(true_case.testcase)); + } + + function inactive螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('inactive-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , assertHasLink = function(case_description) { return function() { + ok( $(this).find('a').size() > 0, case_description); + };} + , assertNotHasLink = function(case_description) { return function() { + ok( $(this).find('a').size() === 0, case_description); + };}; + + default_case.table.find(visible.tr).find(visible.td).each(assertHasLink(default_case.testcase)); + blank_case.table.find(visible.tr).find(visible.td).each( assertHasLink(blank_case.testcase)); + false_case.table.find(visible.tr).find(visible.td).each( assertHasLink(false_case.testcase)); + true_case.table.find(visible.tr).find(visible.td).each( assertNotHasLink(true_case.testcase)); + } + + function domain螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('domain-test') + , domain_only = cases[0] + , domain_and_css = cases[1] + , assertHas = function(classes, case_description) {return function(/* $.each */) { + var $node = $(this); + $.each(classes, function(i, clazz){ + ok($node.is('.' + clazz), case_description + "[has " + clazz + ":" + i + "]"); + }); + };} + , assertNotHas = function(classes, case_description) {return function(/* $.each */) { + var $node = $(this); + $.each(classes, function(i, clazz){ + ok(!$node.is('.' + clazz), case_description + "[not has " + clazz + ":" + i + "]"); + }); + };}; + + domain_only.table.find(visible.tr).find(visible.td).each(assertHas(['mail'], domain_only.testcase)); + domain_only.table.find(visible.tr).find(visible.td).each(assertNotHas(['bg-red'], domain_only.testcase)); + domain_and_css.table.find(visible.tr).find(visible.td).each(assertHas(['mail', 'bg-red'], domain_only.testcase)); + } + + function value螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('value-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_value_case = cases[2] + , assertValues = function(values, case_description) { + return function(i , td) { + equal($.trim($(td).text()), values[i], case_description + "[" + i + "]"); + }; + } + , server_values = ["mail@mail.com", "mail2@mail.com", "mail3@mail.com", "mail4@mail.com"] + , tag_seq = ["繝。繝シ繝ォ繧「繝峨Ξ繧ケ1", "繝。繝シ繝ォ繧「繝峨Ξ繧ケ2", "繝。繝シ繝ォ繧「繝峨Ξ繧ケ3", "繝。繝シ繝ォ繧「繝峨Ξ繧ケ4"]; // 繝。繝シ繝ォ繧「繝峨Ξ繧ケ${seq} + + default_case.table.find(visible.tr).find(visible.td).each(assertValues(server_values, default_case.testcase)); + blank_case.table.find(visible.tr).find(visible.td).each(assertValues(server_values, blank_case.testcase)); + set_value_case.table.find(visible.tr).find(visible.td).each(assertValues(tag_seq, set_value_case.testcase)); + } + + function width螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('width-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assertWidth = function(testcase, expected) { + return function(i) { + var style = this.style + , key; + for (key in expected) { + if (expected.hasOwnProperty(key)) { + equal(style[key], expected[key], testcase.testcase + style[key]); + } + } + }; + }; + default_case.table.find(visible.tr).find(visible.th).each(assertWidth(default_case, '')); + blank_case.table.find(visible.tr).find(visible.th).each(assertWidth(blank_case, '')); + set_case.table.find(visible.tr).find(visible.th+':eq(0)').each(assertWidth(set_case, {'width':'100px'})); + set_case.table.find(visible.tr).find(visible.th+':eq(1)').each(assertWidth(set_case, {'width':'30%'})); + set_case.table.find(visible.tr).find(visible.td+':eq(0)').each(assertWidth(set_case, {'width':'100px'})); + set_case.table.find(visible.tr).find(visible.td+':eq(1)').each(assertWidth(set_case, {'width':'30%'})); + } + + + /** + * 繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝_繝ェ繝ウ繧ッ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e); + return { + testcase : $.trim($e.text()), + title : $($all_nodes[idx + 1]), + table : $($all_nodes[idx + 2]) + }; + }); + } diff --git "a/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..eeb0cba --- /dev/null +++ "b/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,31 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + th.border-red, td.border-red { + border: 1px solid red; + } + + th.bg-red, td.bg-red { + background: red; + } + + th.mail, td.mail { + border: 2px green solid; + } + + + diff --git "a/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..d61a077 --- /dev/null +++ "b/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,73 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..aeb8f85 --- /dev/null +++ "b/node_modules/nablarch-widget-column-link/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,435 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝井ク翫〒繝ェ繝ウ繧ッ縺梧ュ」縺励¥陦ィ遉コ縺輔l縲√壹シ繧ク驕キ遘サ縺後〒縺阪k縺薙→ + + + + + + + + 蜈ィ螻樊ァ繧呈欠螳夲シ医し繝シ繝舌し繧、繝峨〒菴ソ逕ィ縺吶k螻樊ァ繧よ欠螳夲シ峨@縺溷エ蜷医〒繧ゅけ繝ゥ繧、繧「繝ウ繝医ョ蜍穂ス懊↓蝠城。後′縺ェ縺縺薙→ + + + + + + + + + + + cssClass繧呈欠螳壹@縺ェ縺蝣エ蜷医√ち繧、繝医Ν蜿翫ウ蜷陦後↓class螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν蜿翫ウ蜷陦後↓class螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν蜿翫ウ蜷陦後↓class螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + + + sortable繧呈欠螳壹@縺ェ縺蝣エ蜷医√ち繧、繝医Ν縺ッ繧ス繝シ繝育畑縺ョ繝ェ繝ウ繧ッ縺ォ縺ェ繧峨↑縺縺薙→ + + + + + + + + + + sortable縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν縺ッ繧ス繝シ繝育畑縺ョ繝ェ繝ウ繧ッ縺ォ縺ェ繧峨↑縺縺薙→ + + + + + + + + + + sortable縺ォfalse繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν縺ッ繧ス繝シ繝育畑縺ョ繝ェ繝ウ繧ッ縺ォ縺ェ繧峨↑縺縺薙→ + + + + + + + + + + sortable縺ォtrue繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν縺ッ繧ス繝シ繝育畑縺ョ繝ェ繝ウ繧ッ縺ォ縺ェ繧九%縺ィ + + + + + + + + + + inactive繧呈欠螳壹@縺ェ縺蝣エ蜷医√Μ繝ウ繧ッ縺ィ縺励※陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + inactive縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√Μ繝ウ繧ッ縺ィ縺励※陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + inactive縺ォfalse繧呈欠螳壹@縺溷エ蜷医√Μ繝ウ繧ッ縺ィ縺励※陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + inactive縺ォtrue繧呈欠螳壹@縺溷エ蜷医√ユ繧ュ繧ケ繝医→縺励※陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + domain縺ォ謖螳壹@縺溷、縺後…lass螻樊ァ縺ォ蜃コ蜉帙&繧後k縺薙→ + + + + + + + + domain縺ィcssClass繧呈欠螳壹☆繧九→縲∽ク。譁ケ縺ョ蛟、縺慶lass螻樊ァ縺ォ蜃コ蜉帙&繧後k縺薙→ + + + + + + + width繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医《tyle螻樊ァ縺ォwidth縺梧欠螳壹&繧後↑縺縺薙→縲 + + + + + + + + + width繧鍛lank縺ォ縺励◆蝣エ蜷医《tyle螻樊ァ縺ォwidth縺梧欠螳壹&繧後↑縺縺薙→縲 + + + + + + + + + width繧呈欠螳壹@縺溷エ蜷医《tyle螻樊ァ縺ォwidth縺梧欠螳壹&繧後k縺薙→縲 + + + + + + + + + + + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医∝励ち繧、繝医Ν蜿翫ウ蛻励ョ蛟、縺悟コ蜉帙&繧後k縺薙→
+ 窶サ蛟、縺悟コ蜉帙&繧後◆縺薙→繧堤「コ隱阪☆繧九◆繧〔ey螻樊ァ繧よ欠螳壹☆繧九 +
+ + + + + + + value螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌し繧、繝峨〒險ュ螳壹&繧後◆蛟、縺後Μ繝ウ繧ッ繝繧ュ繧ケ繝医→縺励※蜃コ蜉帙○繧後k縺薙→ + + + + + + + + value螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌し繧、繝峨〒險ュ螳壹&繧後◆蛟、縺後Μ繝ウ繧ッ繝繧ュ繧ケ繝医→縺励※蜃コ蜉帙○繧後k縺薙→ + + + + + + + + value螻樊ァ繧呈欠螳壹@縺溷エ蜷医」alue螻樊ァ縺ョ蛟、縺後Μ繝ウ繧ッ繝繧ュ繧ケ繝医→縺励※蜃コ蜉帙&繧後k縺薙→ + + + + + + +
+
+
diff --git a/node_modules/nablarch-widget-column-radio/package.json b/node_modules/nablarch-widget-column-radio/package.json new file mode 100644 index 0000000..c55fdda --- /dev/null +++ b/node_modules/nablarch-widget-column-radio/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-column-radio" +, "version": "1.0.1" +, "_from" : "nablarch-widget-column-radio@1.0.1" +, "dependencies": { + } +, "description": "繝ャ繧ウ繝シ繝蛾∈謚樒畑繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-column-radio/ui_public/WEB-INF/tags/widget/column/radio.tag b/node_modules/nablarch-widget-column-radio/ui_public/WEB-INF/tags/widget/column/radio.tag new file mode 100644 index 0000000..dad067d --- /dev/null +++ b/node_modules/nablarch-widget-column-radio/ui_public/WEB-INF/tags/widget/column/radio.tag @@ -0,0 +1,71 @@ +<%-- + 繝繝シ繝悶Ν繧ォ繝ゥ繝螳夂セゥ (陦碁∈謚樒畑繝ゥ繧ク繧ェ繝懊ち繝ウ) + @author Iwauo Tajima +--%> +<%@ tag pageEncoding="UTF-8" description="繝繝シ繝悶Ν繧ォ繝ゥ繝螳夂セゥ (陦碁∈謚樒畑繝ゥ繧ク繧ェ繝懊ち繝ウ)" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%@ attribute name="key" description="繧ォ繝ゥ繝繧ュ繝シ" required="true" rtexprvalue="true" %> +<%@ attribute name="title" description="繧ォ繝ゥ繝繝倥ャ繝繝シ縺ォ陦ィ遉コ縺吶k譁蟄怜" required="true" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="蜷繧ォ繝ゥ繝縺ォ謖螳壹☆繧気SS繧ッ繝ゥ繧ケ" rtexprvalue="true" %> + +<%@ attribute name="name" description="繝ゥ繧ク繧ェ繝懊ち繝ウ縺ョname螻樊ァ" required="true" rtexprvalue="true" %> +<%@ attribute name="value" description="繝ゥ繧ク繧ェ繝懊ち繝ウ驕ク謚樊凾縺ォ騾∽ソ。縺吶k蛟、" rtexprvalue="true" %> + +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="readonly" description="邱ィ髮蜿ッ閭ス縺九←縺縺" rtexprvalue="true" %> + +<%@ attribute name="width" description="繧ォ繝ゥ繝縺ョ讓ェ蟷縲" rtexprvalue="true"%> + +<%-- 隍謨ー陦瑚。ィ遉コ蟇セ蠢 --%> +<%@ attribute name="colspan" description="讓ェ譁ケ蜷代↓邨仙粋縺吶k繧ォ繝ゥ繝謨ー縲" rtexprvalue="true" %> +<%@ attribute name="rowspan" description="邵ヲ譁ケ蜷代↓邨仙粋縺吶k繧ォ繝ゥ繝謨ー縲" rtexprvalue="true" %> + +<%-- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ --%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繝ゥ繧ク繧ェ繝懊ち繝ウ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + + + + + + +<%-- 繝倥ャ繝繝シ陦 --%> + + + + + + +<%-- 繝懊ョ繧」陦 --%> + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..d3ace7f --- /dev/null +++ "b/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,389 @@ +runTest( + 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳 + , cssClass螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ謖螳 + , cssClass螻樊ァ縺ョ繝繧ケ繝_class螻樊ァ謖螳 + , disabled螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳 + , disabled螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ謖螳 + , disabled螻樊ァ縺ョ繝繧ケ繝_false謖螳 + , disabled螻樊ァ縺ョ繝繧ケ繝_true謖螳 + , readonly螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳 + , readonly螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ + , readonly螻樊ァ縺ョ繝繧ケ繝_false謖螳 + , readonly螻樊ァ縺ョ繝繧ケ繝_true謖螳 + , width螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳 + , width螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ + , width螻樊ァ縺ョ繝繧ケ繝_謖螳 + , value縺ィkey螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳 + , value縺ィkey螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ + , value縺ィkey螻樊ァ縺ョ繝繧ケ繝_謖螳 + , colspan螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳 + , colspan螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ + , colspan螻樊ァ縺ョ繝繧ケ繝_謖螳 + , rowspan螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳 + , rowspan螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ + , rowspan螻樊ァ縺ョ繝繧ケ繝_謖螳 +); + +function 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝() { + var test = findTest('蠢鬆亥ア樊ァ謖螳'); + + equal($(test.radioHeader).text().trim(), '蠢鬆亥ア樊ァ繧偵@縺溷エ蜷医ョ繧ソ繧、繝医Ν', 'title'); +} + +function cssClass螻樊ァ縺ョ繝繧ケ繝_class螻樊ァ繝悶Λ繝ウ繧ッ(caseName) { + var test = findTest(caseName); + + if (isConfirmationPage()) { + ok(true, '遒コ隱咲判髱「縺ァ縺ョ繧「繧オ繝シ繝磯逶ョ縺ェ縺'); + return; + } + + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + equal($(test.radioHeader).attr('class').trim(), '', 'th縺ョ繧ッ繝ゥ繧ケ螻樊ァ'); + + test.radioRows.each(function (index, row) { + var $row = $(row); + equal($row.attr('class').trim(), '', (index + 1) + "陦檎岼"); + }); +} + +function cssClass螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳() { + cssClass螻樊ァ縺ョ繝繧ケ繝_class螻樊ァ繝悶Λ繝ウ繧ッ('cssClass螻樊ァ譛ェ謖螳'); +} + +function cssClass螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ謖螳() { + cssClass螻樊ァ縺ョ繝繧ケ繝_class螻樊ァ繝悶Λ繝ウ繧ッ('cssClass螻樊ァ繝悶Λ繝ウ繧ッ'); +} + +function cssClass螻樊ァ縺ョ繝繧ケ繝_class螻樊ァ謖螳() { + var test = findTest('cssClass螻樊ァ謖螳'); + + if (isConfirmationPage()) { + ok(true, '遒コ隱咲判髱「縺ァ縺ョ繧「繧オ繝シ繝磯逶ョ縺ェ縺'); + return; + } + + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + equal($(test.radioHeader).attr('class').trim(), 'red-line', 'th縺ョ繧ッ繝ゥ繧ケ螻樊ァ'); + + test.radioRows.each(function (index, row) { + var $row = $(row); + equal($row.attr('class').trim(), 'red-line', (index + 1) + "陦檎岼"); + }); +} + +function disabled螻樊ァ縺ョ繝繧ケ繝_謫堺ス懷庄閭ス(testCase) { + var test = findTest(testCase); + + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + + if (isConfirmationPage()) { + equal($(test.radioRows[0]).text().trim(), '', '驕ク謚槭&繧後※縺縺ェ縺鬆逶ョ縺ョ蛟、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l縺ェ縺縺薙→'); + equal($(test.radioRows[1]).text().trim(), '', '驕ク謚槭&繧後※縺縺ェ縺鬆逶ョ縺ョ蛟、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l縺ェ縺縺薙→'); + equal($(test.radioRows[2]).text().trim(), '', '驕ク謚槭&繧後※縺縺ェ縺鬆逶ョ縺ョ蛟、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l縺ェ縺縺薙→'); + equal($(test.radioRows[3]).text().trim(), '笳', '驕ク謚槭&繧後◆鬆逶ョ縺ョ蛟、縺後し繝シ繝舌↓騾∽ソ。縺輔l繧九%縺ィ'); + } else { + test.radioRows.each(function (index, row) { + var $row = $(row) + , $radio = $row.find('input[type=radio]') + , rowNo = (index + 1); + ok(!$radio.prop('disabled'), rowNo + "陦檎岼"); + + ok(!$radio.prop('checked'), rowNo + "陦檎岼シ壽悴驕ク謚"); + $radio.click(); + ok($radio.prop('checked'), rowNo + "陦檎岼シ壹メ繧ァ繝繧ッ縺ァ縺阪k縺薙→"); + }); + } +} + +function disabled螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳() { + disabled螻樊ァ縺ョ繝繧ケ繝_謫堺ス懷庄閭ス('disable譛ェ謖螳'); +} + +function disabled螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ謖螳() { + disabled螻樊ァ縺ョ繝繧ケ繝_謫堺ス懷庄閭ス('disable繝悶Λ繝ウ繧ッ'); +} + +function disabled螻樊ァ縺ョ繝繧ケ繝_false謖螳() { + disabled螻樊ァ縺ョ繝繧ケ繝_謫堺ス懷庄閭ス('disable_false'); +} + +function disabled螻樊ァ縺ョ繝繧ケ繝_true謖螳() { + var test = findTest('disable_true'); + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + + if (isConfirmationPage()) { + + equal($(test.radioRows[0]).text().trim(), '', '驕ク謚槭&繧後※縺縺ェ縺鬆逶ョ縺ョ蛟、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l縺ェ縺縺薙→'); + equal($(test.radioRows[1]).text().trim(), '', '驕ク謚槭&繧後※縺縺ェ縺鬆逶ョ縺ョ蛟、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l縺ェ縺縺薙→'); + equal($(test.radioRows[2]).text().trim(), '', '驕ク謚槭&繧後※縺縺ェ縺鬆逶ョ縺ョ蛟、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l縺ェ縺縺薙→'); + equal($(test.radioRows[3]).text().trim(), '', '驕ク謚樒憾諷九ョ鬆逶ョ縺縺後‥isabled縺ォ縺ェ縺」縺ヲ縺繧九ョ縺ァ蛟、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l縺ェ縺'); + } else { + test.radioRows.each(function (index, row) { + var $row = $(row) + , $radio = $row.find('input[type=radio]') + , rowNo = (index + 1); + + ok($radio.prop('disabled'), rowNo + "陦檎岼"); + + ok(!$radio.prop('checked'), rowNo + "陦檎岼シ壽悴驕ク謚"); + $radio.click(); + ok(!$radio.prop('checked'), rowNo + "陦檎岼シ壹メ繧ァ繝繧ッ縺輔l縺ェ縺縺薙→"); + + }); + // 繧オ繝シ繝舌↓蛟、縺碁∽ソ。縺輔l縺ェ縺縺薙→繧偵ユ繧ケ繝医☆繧九◆繧√↓蜈磯ュ鬆逶ョ繧堤┌逅繧繧翫メ繧ァ繝繧ッ迥カ諷九↓縺吶k縲 + $(test.radioRows[0]).find('input').prop('checked', 'checked'); + } +} + +function readonly螻樊ァ縺ョ繝繧ケ繝_邱ィ髮蜿ッ閭ス(testCase) { + var test = findTest(testCase); + + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + + if (isConfirmationPage()) { + equal($(test.radioRows[0]).text().trim(), '', '驕ク謚槭&繧後※縺縺ェ縺鬆逶ョ縺ョ蛟、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l縺ェ縺縺薙→'); + equal($(test.radioRows[1]).text().trim(), '', '驕ク謚槭&繧後※縺縺ェ縺鬆逶ョ縺ョ蛟、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l縺ェ縺縺薙→'); + equal($(test.radioRows[2]).text().trim(), '', '驕ク謚槭&繧後※縺縺ェ縺鬆逶ョ縺ョ蛟、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l縺ェ縺縺薙→'); + equal($(test.radioRows[3]).text().trim(), '笳', '驕ク謚槭&繧後◆鬆逶ョ縺ョ蛟、縺後し繝シ繝舌↓騾∽ソ。縺輔l繧九%縺ィ'); + } else { + test.radioRows.each(function (index, row) { + var $row = $(row) + , $radio = $row.find('input[type=radio]') + , rowNo = (index + 1); + + equal($radio.attr('class').trim(), '', '陦檎岼シ嗜ablarch_readonly繧ッ繝ゥ繧ケ縺ッ險ュ螳壹&繧後↑縺縺薙→'); + ok(!$radio.prop('disabled'), rowNo + "陦檎岼シ單isable縺ァ縺ッ縺ェ縺縺薙→"); + + ok(!$radio.prop('checked'), rowNo + "陦檎岼シ壽悴驕ク謚"); + $radio.click(); + ok($radio.prop('checked'), rowNo + "陦檎岼シ壹メ繧ァ繝繧ッ縺輔l繧九%縺ィ"); + }); + } +} + +function readonly螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳() { + readonly螻樊ァ縺ョ繝繧ケ繝_邱ィ髮蜿ッ閭ス('readonly譛ェ謖螳'); +} + +function readonly螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ() { + readonly螻樊ァ縺ョ繝繧ケ繝_邱ィ髮蜿ッ閭ス('readonly繝悶Λ繝ウ繧ッ'); +} + +function readonly螻樊ァ縺ョ繝繧ケ繝_false謖螳() { + readonly螻樊ァ縺ョ繝繧ケ繝_邱ィ髮蜿ッ閭ス('readonly_false'); +} + +function readonly螻樊ァ縺ョ繝繧ケ繝_true謖螳() { + var test = findTest('readonly_true'); + + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + + if (isConfirmationPage()) { + equal($(test.radioRows[0]).text().trim(), '', '驕ク謚槭&繧後※縺縺ェ縺鬆逶ョ縺ョ蛟、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l縺ェ縺縺薙→'); + equal($(test.radioRows[1]).text().trim(), '', '驕ク謚槭&繧後※縺縺ェ縺鬆逶ョ縺ョ蛟、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l縺ェ縺縺薙→'); + equal($(test.radioRows[2]).text().trim(), '笳', '驕ク謚槭&繧後◆鬆逶ョ縺ョ蛟、縺後し繝シ繝舌↓騾∽ソ。縺輔l繧九%縺ィ'); + equal($(test.radioRows[3]).text().trim(), '', '驕ク謚槭&繧後※縺縺ェ縺鬆逶ョ縺ョ蛟、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l縺ェ縺縺薙→'); + } else { + test.radioRows.each(function (index, row) { + var $row = $(row) + , $radio = $row.find('input[type=radio]') + , rowNo = (index + 1); + + equal($radio.attr('class').trim(), 'nablarch_readonly', '陦檎岼シ嗜ablarch_readonly繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + ok($radio.prop('disabled'), rowNo + "陦檎岼シ單isabled縺ァ縺ゅk縺薙→"); + if ($radio.val() === '1003') { + ok($radio.prop('checked'), rowNo + "陦檎岼シ夐∈謚樒憾諷"); + $radio.click(); + ok($radio.prop('checked'), rowNo + "陦檎岼シ壹メ繧ァ繝繧ッ縺輔l縺溽憾諷九〒縺ゅk縺薙→"); + } else { + ok(!$radio.prop('checked'), rowNo + "陦檎岼シ壽悴驕ク謚"); + $radio.click(); + ok(!$radio.prop('checked'), rowNo + "陦檎岼シ壹メ繧ァ繝繧ッ縺輔l縺ェ縺縺薙→"); + } + }); + } +} + +function width螻樊ァ縺ョ繝繧ケ繝_width螻樊ァ繝悶Λ繝ウ繧ッ(testCase) { + var test = findTest(testCase) + , style = $(test.radioHeader).attr('style') || ''; + + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + + ok(!style.has('width'), 'width螻樊ァ縺ッ險ュ螳壹&繧後↑縺縺薙→'); + + test.radioRows.each(function (index, row) { + var $row = $(row) + , rowNo = (index + 1) + , style = $row.attr('style') || ''; + + ok(!style.has('width'), rowNo + '陦檎岼シ嘖tyle螻樊ァ縺ォwidth縺ッ險ュ螳壹&繧後↑縺縺薙→'); + }); +} + +function width螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳() { + width螻樊ァ縺ョ繝繧ケ繝_width螻樊ァ繝悶Λ繝ウ繧ッ('width譛ェ謖螳'); +} + +function width螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ() { + width螻樊ァ縺ョ繝繧ケ繝_width螻樊ァ繝悶Λ繝ウ繧ッ('width繝悶Λ繝ウ繧ッ'); +} + +function width螻樊ァ縺ョ繝繧ケ繝_謖螳() { + var test = findTest('width謖螳'); + + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + + equal($(test.radioHeader).css('width'), '123px'); + + test.radioRows.each(function (index, row) { + var $row = $(row) + , rowNo = (index + 1); + + equal($row.css('width'), '123px', rowNo + '陦檎岼シ嘖tyle螻樊ァ縺ォwidth縺瑚ィュ螳壹&繧後k縺薙→'); + }); +} + + +function value螻樊ァ縺ョ繝繧ケ繝_resultSet縺九ivalue蛟、縺瑚ィュ螳壹&繧後k繝代ち繝シ繝ウ(testCase) { + var test = findTest(testCase); + + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + + if (isConfirmationPage()) { + return; + } + + test.radioRows.each(function (index, row) { + var $radio = $(row).find('input[type=radio]') + , expected = $(test.labelRows[index]).text().trim() + , rowNo = (index + 1); + + equal($radio.val(), expected, rowNo + '陦檎岼シ嗅ey縺ォ蟇セ蠢懊☆繧句、縺計alue縺ォ險ュ螳壹&繧後k縺薙→'); + }); +} + +function value縺ィkey螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳() { + value螻樊ァ縺ョ繝繧ケ繝_resultSet縺九ivalue蛟、縺瑚ィュ螳壹&繧後k繝代ち繝シ繝ウ('value譛ェ謖螳'); +} + +function value縺ィkey螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ() { + value螻樊ァ縺ョ繝繧ケ繝_resultSet縺九ivalue蛟、縺瑚ィュ螳壹&繧後k繝代ち繝シ繝ウ('value繝悶Λ繝ウ繧ッ'); +} + +function value縺ィkey螻樊ァ縺ョ繝繧ケ繝_謖螳() { + var test = findTest('value謖螳'); + + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + + if (isConfirmationPage()) { + return; + } + + test.radioRows.each(function (index, row) { + var $radio = $(row).find('input[type=radio]') + , rowNo = (index + 1); + + equal($radio.val(), 'abcdefg', rowNo + '陦檎岼シ嘛alue螻樊ァ縺ォ謖螳壹@縺溷、縺計alue蛟、縺ィ縺ェ繧九%縺ィ'); + }); +} + +function colspan螻樊ァ縺ョ繝繧ケ繝_colspan縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九ヱ繧ソ繝シ繝ウ(testCase) { + var test = findTest(testCase) + colspan = $(test.radioHeader).attr('colspan').trim() || '1'; + + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + equal(colspan, '1', '繧ソ繧、繝医Ν驛ィ縺ョcolspan縺ッ"1"縺ォ縺ェ繧九%縺ィ'); + + test.radioRows.each(function (index, row) { + var $row = $(row) + , rowNo = (index + 1) + , colspan = $row.attr('colspan').trim() || '1'; + + equal(colspan, '1', rowNo + '陦檎岼シ壹ョcolspan縺ッ"1"縺ォ縺ェ繧九%縺ィ'); + }); +} + +function colspan螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳() { + colspan螻樊ァ縺ョ繝繧ケ繝_colspan縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九ヱ繧ソ繝シ繝ウ('colspan譛ェ謖螳'); +} + +function colspan螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ() { + colspan螻樊ァ縺ョ繝繧ケ繝_colspan縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九ヱ繧ソ繝シ繝ウ('colspan繝悶Λ繝ウ繧ッ'); +} + +function colspan螻樊ァ縺ョ繝繧ケ繝_謖螳() { + var test = findTest('colspan謖螳'); + + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + equal($(test.radioHeader).attr('colspan').trim(), '123', '繧ソ繧、繝医Ν驛ィ縺ョcolspan縺ッ謖螳壹@縺溷、縺ォ縺ェ繧九%縺ィ'); + + test.radioRows.each(function (index, row) { + var $row = $(row) + , rowNo = (index + 1); + + equal($row.attr('colspan').trim(), '123', rowNo + '陦檎岼シ壹ョcolspan縺ッ謖螳壹@縺溷、縺ォ縺ェ繧九%縺ィ'); + }); +} + +function rowspan螻樊ァ縺ョ繝繧ケ繝_rowspan縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九ヱ繧ソ繝シ繝ウ(testCase) { + var test = findTest(testCase) + rowspan = $(test.radioHeader).attr('rowspan').trim() || '1'; + + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + equal(rowspan, '1', '繧ソ繧、繝医Ν驛ィ縺ョrowspan縺ッ"1"縺ォ縺ェ繧九%縺ィ'); + + test.radioRows.each(function (index, row) { + var $row = $(row) + , rowNo = (index + 1) + , rowspan = $row.attr('rowspan').trim() || '1'; + + equal(rowspan, '1', rowNo + '陦檎岼シ壹ョrowspan縺ッ"1"縺ォ縺ェ繧九%縺ィ'); + }); +} + +function rowspan螻樊ァ縺ョ繝繧ケ繝_譛ェ謖螳() { + rowspan螻樊ァ縺ョ繝繧ケ繝_rowspan縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九ヱ繧ソ繝シ繝ウ('rowspan譛ェ謖螳') +} + +function rowspan螻樊ァ縺ョ繝繧ケ繝_繝悶Λ繝ウ繧ッ() { + rowspan螻樊ァ縺ョ繝繧ケ繝_rowspan縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九ヱ繧ソ繝シ繝ウ('rowspan繝悶Λ繝ウ繧ッ') +} + +function rowspan螻樊ァ縺ョ繝繧ケ繝_謖螳() { + var test = findTest('rowspan謖螳'); + + equal($(test.radioHeader).text().trim(), '驕ク謚', 'title'); + equal($(test.radioHeader).attr('rowspan').trim(), '2', '繧ソ繧、繝医Ν驛ィ縺ョrowspan縺瑚ィュ螳壹&繧後k縺薙→'); + + + test.radioRows.filter(function() { return $(this).find('input').is('*')}).each(function (index, row) { + var $row = $(row) + , rowNo = (index + 1); + + equal($row.attr('rowspan').trim(), '2', rowNo + '陦檎岼シ壹ョrowspan縺瑚ィュ螳壹&繧後k縺薙→'); + }); +} + +/** + * 繝繧ケ繝亥ッセ雎。縺ョ繝繝シ繝悶Ν縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * + * @param caseName 繧ア繝シ繧ケ蜷 + * @returns {{table: *, radioHeader: *, radioRows: *}} + */ +function findTest(caseName) { + var $testCase = $('.test-case.' + caseName) + , $table = $testCase.nextAll('div.nablarch_listSearchResultWrapper').first().find('table') + , $radioCol = $table.find('tr').not('.nablarch_AdditionalColumnInlay').find('td:nth-child(1), th:nth-child(1)') + , $labelCol = $table.find('tr').not('.nablarch_AdditionalColumnInlay').find('td:nth-child(2), th:nth-child(2)'); + + return { + table : $table, + radioHeader: $radioCol[0], + radioRows : $radioCol.slice(1), + labelRows : $labelCol.slice(1) + }; +} + diff --git "a/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..024dc69 --- /dev/null +++ "b/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,20 @@ + + +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + th.red-line, td.red-line { + border: 2px red solid; + } + + diff --git "a/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..c923139 --- /dev/null +++ "b/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,69 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..0e59c8b --- /dev/null +++ "b/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,404 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒謖螳壹☆繧句、繧貞性繧√※蜈ィ縺ヲ險ュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医ョ蜍穂ス懊′蝠城。後↑縺縺薙→ + + + + + + + + + + + + + + + + + + + + + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷 + + + + + + + + + + + cssClass繧呈欠螳壹@縺ェ縺蝣エ蜷医》h蜿翫ウtd縺ォ縺ッclass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》h蜿翫ウtd縺ォ縺ッclass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + cssClass繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺荊h蜿翫ウtd縺ョclass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + + disable螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∵桃菴懷庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + disable螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医∵桃菴懷庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + disable螻樊ァ縺ォfalse繧定ィュ螳壹@縺溷エ蜷医∵桃菴懷庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + disable螻樊ァ縺ォtrue繧定ィュ螳壹@縺溷エ蜷医∵桃菴應ク榊庄閭ス縺ァ縺ゅk縺薙→ + + + + + + + + readonly螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∵桃菴懷庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + readonly螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医∵桃菴懷庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + readonly螻樊ァ縺掲alse縺ョ蝣エ蜷医∵桃菴懷庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + + + readonly螻樊ァ縺荊rue縺ョ蝣エ蜷医∵桃菴應ク榊庄閭ス縺ァ縺ゅk縺薙→縲ゅ◆縺縺励∝、縺ッ繧オ繝シ繝舌↓騾∽ソ。縺輔l繧九%縺ィ縲 + + + + + + + + width螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医《tyle螻樊ァ縺ォwidth縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + width螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医《tyle螻樊ァ縺ォwidth縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + width螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医《tyle螻樊ァ縺ォwidth縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + value螻樊ァ繧呈悴謖螳壹ョ蝣エ蜷医〉esultSet蜀縺ョ蟇セ雎。繧ォ繝ゥ繝縺ョ蛟、縺計alue蛟、縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + value螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医〉esultSet蜀縺ョ蟇セ雎。繧ォ繝ゥ繝縺ョ蛟、縺計alue蛟、縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + value螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺計alue蛟、縺ィ縺ェ繧九%縺ィ + + + + + + + + colspan螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医…olspan縺ッ繝悶Λ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ + + + + + + + + colspan螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…olspan縺ッ繝悶Λ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ + + + + + + + + colspan螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺慶olspan縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + rowspan繧呈悴謖螳壹ョ蝣エ蜷医〉owspan螻樊ァ縺ッ繝悶Λ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ + + + + + + + + rowspan繧呈悴謖螳壹ョ蝣エ蜷医〉owspan螻樊ァ縺ッ繝悶Λ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ + + + + + + + + rowspan繧呈欠螳壹@縺溷エ蜷医〉owspan縺ォ縺ッ縺昴ョ蛟、縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270\357\274\210\347\242\272\350\252\215\357\274\211.jsp" "b/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270\357\274\210\347\242\272\350\252\215\357\274\211.jsp" new file mode 100644 index 0000000..6f36b08 --- /dev/null +++ "b/node_modules/nablarch-widget-column-radio/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\253\343\203\251\343\203\240\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210_\343\203\251\343\202\270\343\202\252_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270\357\274\210\347\242\272\350\252\215\357\274\211.jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git a/node_modules/nablarch-widget-core/package.json b/node_modules/nablarch-widget-core/package.json new file mode 100644 index 0000000..daf9b8f --- /dev/null +++ b/node_modules/nablarch-widget-core/package.json @@ -0,0 +1,9 @@ +{ "name": "nablarch-widget-core" +, "description": "Nablarch UI繧ヲ繧」繧ク繧ァ繝繝 蝓コ逶、JS驛ィ蜩" +, "version": "1.0.0" +, "_from" : "nablarch-widget-core@1.0.0" +, "dependencies": + { "sugar" : "1.4.1" + , "jquery" : "1.11.0" + } +} diff --git a/node_modules/nablarch-widget-core/ui_public/js/global.js b/node_modules/nablarch-widget-core/ui_public/js/global.js new file mode 100644 index 0000000..9c9648f --- /dev/null +++ b/node_modules/nablarch-widget-core/ui_public/js/global.js @@ -0,0 +1,11 @@ +/** + * 繧ー繝ュ繝シ繝舌Ν繧ェ繝悶ず繧ァ繧ッ繝(Window繧ェ繝悶ず繧ァ繧ッ繝) + * + * @name global + * @type Window + * + * @author Iwauo Tajima + */ +define(function() {'use strict'; + return window; +}); diff --git a/node_modules/nablarch-widget-core/ui_public/js/nablarch.js b/node_modules/nablarch-widget-core/ui_public/js/nablarch.js new file mode 100644 index 0000000..5394002 --- /dev/null +++ b/node_modules/nablarch-widget-core/ui_public/js/nablarch.js @@ -0,0 +1,34 @@ +(function(global) { "use strict"; + //Object.create() 縺ョ shim (IE8莉・荳狗畑) + if (typeof Object.create === 'undefined') { + Object.create = function (proto) { + function F() {}; + F.prototype = proto; + return new F(); + }; + } + + // 繧ケ繧ッ繝ェ繝励ヨ繝代せ + var scripts = document.scripts + , script = scripts[scripts.length-1] + , path = script.src.replace(/[?;].*/, "") + , scriptDir = path + "/../"; + + // requireJS 蛻晄悄險ュ螳 + require.config({ + baseUrl: scriptDir + }); + + // 蛻晄悄繝ュ繝シ繝牙ッセ雎。繧ウ繝ウ繝昴シ繝阪Φ繝 + require(["jquery", "nablarch/ui"], function($, ui) { + $(function() { + if ('ontouchstart' in window) { + // 繧ソ繝繝∵桃菴懊〒縺ッhover譎ゅョ讖溯ス縺ョ繧ケ繧ソ繧、繝ォ繧堤┌蜉ケ縺ォ縺吶k縲 + $('#aside').find('.hover').removeClass('hover'); + } + ui.Widget.init(); + }); + }); + +})(window); + diff --git a/node_modules/nablarch-widget-core/ui_public/js/nablarch/ui/Widget.js b/node_modules/nablarch-widget-core/ui_public/js/nablarch/ui/Widget.js new file mode 100644 index 0000000..6b52990 --- /dev/null +++ b/node_modules/nablarch-widget-core/ui_public/js/nablarch/ui/Widget.js @@ -0,0 +1,278 @@ +/** + * @module nablarch.ui + */ +define(["jquery"], function($) { "use strict"; + + /** 繝「繧ク繝・繝シ繝ォ螳夂セゥ */ + function define() { + $.fn.widget = jQuery_widget; + $.fn.widgets = jQuery_widgets; + $.fn.widgetOption = jQuery_widgetOption; + return Widget; + } + + /** + * jQuery繝励Λ繧ー繧、繝ウ繝。繧ス繝繝峨 + * + * 縺薙ョ繝励Λ繧ー繧、繝ウ繝。繧ス繝繝峨ッ縲∫ャャ荳蠑墓焚縺ョ蝙九↓蠕薙>縲∽サ・荳九ョ2縺、縺ョ蜃ヲ逅縺ョ縺縺壹l縺九r陦後≧縲 + * + * `$.fn.widgets(constructor:Function, ...args)` + * wrappedSet荳翫ョ蜷隕∫エ繧貞シ墓焚縺ィ縺励※constructor繧貞ョ溯。後@縲 + * 繧ヲ繧」繧ク繧ァ繝繝医ョ繧、繝ウ繧ケ繧ソ繝ウ繧ケ繧貞晄悄蛹悶☆繧九 + * 隨ャ2蠑墓焚莉・髯阪ッ縲√さ繝ウ繧ケ繝医Λ繧ッ繧ソ縺ョ蠑墓焚縺ィ縺励※縺昴ョ縺セ縺セ貂。縺輔l繧九 + * + * 縺ェ縺翫∝晄悄蛹悶&繧後◆繧ヲ繧」繧ク繧ァ繝繝医う繝ウ繧ケ繧ソ繝ウ繧ケ縺ッ縲√ヮ繝シ繝峨ョdata螻樊ァ縺ォ菫晏ュ倥&繧後 + * 蜷後§繝弱シ繝峨↓蟇セ縺励※蜷後§繧ヲ繧」繧ク繧ァ繝繝医ョ蛻晄悄蛹門ヲ逅縺瑚、謨ー蝗櫁。後o繧後◆蝣エ蜷医 + * 2蝗樒岼莉・髯阪ョ蛻晄悄蛹門ヲ逅縺ッ辟。隕悶&繧後k縲 + * + * + * `$.fn.widget(command:String, ...args)` + * wrappedSet荳翫ョ蜷隕∫エ荳翫↓繧ヲ繧」繧ク繧ァ繝繝医ョ繧、繝ウ繧ケ繧ソ繝ウ繧ケ縺御ソ晄戟縺輔l縺ヲ縺繧句エ蜷医↓縲 + * 隨ャ1蠑墓焚縺ァ謖螳壹&繧後◆繝。繧ス繝繝峨r蜻シ縺ウ蜃コ縺励√◎縺ョ邨先棡繧呈シ邏阪@縺毆rappedSet繧定ソ泌唆縺吶k縲 + * 隨ャ2蠑墓焚莉・髯阪ッ縲√Γ繧ス繝繝峨ョ蠑墓焚縺ィ縺励※縺昴ョ縺セ縺セ貂。縺輔l繧九 + * + * @method widgets + * @for jQuery + * @param {Function|String} constructorOrCommand + * 蛻晄悄蛹悶☆繧九え繧」繧ク繧ァ繝繝医ョ繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縺セ縺溘ッ縲∝ョ溯。後☆繧九Γ繧ス繝繝牙錐縲 + * @param {anything} [args]* + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ繧ゅ@縺上ッ繝。繧ス繝繝峨ョ蠑墓焚縲 + */ + function jQuery_widgets(/* ...args*/) { + var args = Array.prototype.slice.call(arguments); + return this.map(function() { + return jQuery_widget.apply($(this), args); + }); + } + + /** + * jQuery繝励Λ繧ー繧、繝ウ繝。繧ス繝繝峨 + * + * 縺薙ョ繝励Λ繧ー繧、繝ウ繝。繧ス繝繝峨ョ蜃ヲ逅蜀螳ケ縺ッ縲∽サ・荳九ョ2轤ケ繧帝勁縺阪 `$.fn.widgets()` 縺ィ蜷後§縺ァ縺ゅk縲 + * + * 1. wrappedSet縺ョ蜈磯ュ隕∫エ縺ョ縺ソ繧貞ヲ逅縺ョ蟇セ雎。縺ィ縺吶k縲 + * 2. 謌サ繧雁、縺ィ縺励※縲√え繧」繧ク繧ァ繝繝医う繝ウ繧ケ繧ソ繝ウ繧ケ縲√b縺励¥縺ッ縲 + * 繧ヲ繧」繧ク繧ァ繝繝医↓蟇セ縺励※螳溯。後@縺溘Γ繧ス繝繝峨ョ謌サ繧雁、繧定ソ斐☆縲 + * + * @method widget + * @for jQuery + * @param {Function|String} constructorOrCommand + * 蛻晄悄蛹悶☆繧九え繧」繧ク繧ァ繝繝医ョ繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縺セ縺溘ッ縲∝ョ溯。後☆繧九Γ繧ス繝繝牙錐縲 + * @param {anything} [args]* + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ繧ゅ@縺上ッ繝。繧ス繝繝峨ョ蠑墓焚縲 + */ + function jQuery_widget(arg /*, ...args*/) { + var node = this.get(0) + , $node = $(node) + , constructor = Object.isFunction(arg) ? arg : null + , command = Object.isString(arg) ? arg : null + , type = constructor && constructor.widgetType + , widget = constructor && this.data(type) + , args = Array.prototype.slice.call(arguments, 1); + + return constructor ? create() + : command ? call() + : undefined; + + function create() { + var option = $node.widgetOption(type); + if (args[0]) { + Object.merge(option, args[0]); + } + return widget || new constructor(node, option); + } + + function call() { + return (widget && Object.isFunction(widget[command])) + ? widget[command](args) + : undefined; + } + } + + /** + * jQuery繝励Λ繧ー繧、繝ウ繝。繧ス繝繝 + * + * 繝弱シ繝峨ョclass螻樊ァ蛟、繧偵ヱ繝シ繧ケ縺励√%縺ョ繧ヲ繧」繧ク繧ァ繝繝医ョ繧ェ繝励す繝ァ繝ウ險ュ螳壹r蜿門セ励☆繧九 + * 蜷繧ェ繝励す繝ァ繝ウ縺ョ蛟、縺ッ蠢縺壽枚蟄怜励b縺励¥縺ッnull縺ィ縺ェ繧九 + * + * HTML: + *
= 2) { + $context = when[0].trim(); + if ($context.startsWith("$")) { + $context = self[$context]; + } + else if ($context.startsWith("#")) { + $context = $($context); + } + else if ($context == "document") { + $context = $(document); + } + else { + selector = $context; + $context = null; + } + } + if (when.length == 3) { + selector = when[1]; + } + handler = Object.isFunction(what) ? what : self[what+'']; + $context = $context || self.$node; + + $context.on(eventType, selector || null, handler.bind(self)); + } + + return define(); +}); diff --git a/node_modules/nablarch-widget-core/ui_public/js/nablarch/ui/selector.js b/node_modules/nablarch-widget-core/ui_public/js/nablarch/ui/selector.js new file mode 100644 index 0000000..65e495c --- /dev/null +++ b/node_modules/nablarch-widget-core/ui_public/js/nablarch/ui/selector.js @@ -0,0 +1,94 @@ +/** + * @module nablarch.ui + */ +define(['jquery', 'sugar'], +function($) {'use strict'; + /** + * @class nablarch.ui.selector + */ + Object.merge($.expr.pseudos, { + /** + * 蟇セ雎。縺ョ隕∫エ縺檎ゥコ縺ァ縺ェ縺蝣エ蜷医↓荳閾エ縺吶k繧サ繝ャ繧ッ繧ソ縲 + * + * input, select, textarea, option 縺ァ縺ゅl縺ー縲)Query.fn.val縲 + * 縺昴l莉・螟悶〒縺ゅl縺ーjQuery.fn.text縺ョ邨先棡縺ァ蛻、螳壹☆繧九 + * + * @for jQuery + * @method jQuery.expr.is-not-blank + */ + 'is-not-blank': $.expr.createPseudo(isNotBlankSelector) + /** + * 蟇セ雎。縺ョ隕∫エ縺檎ゥコ縺ョ縺ォ荳閾エ縺吶k繧サ繝ャ繧ッ繧ソ縲 + * + * input, select, textarea, option 縺ァ縺ゅl縺ー縲)Query.fn.val縲 + * 縺昴l莉・螟悶〒縺ゅl縺ーjQuery.fn.text縺ョ邨先棡縺ァ蛻、螳壹☆繧九 + * + * @for jQuery + * @method jQuery.expr.is-blank + */ + , 'is-blank': $.expr.createPseudo(isBlankSelector) + /** + * 蟇セ雎。縺ョ隕∫エ縺ォ蠑墓焚縺ョ蛟、縺ョ縺縺壹l縺九′蜷ォ縺セ繧後k蝣エ蜷医↓荳閾エ縺吶k繧サ繝ャ繧ッ繧ソ縲 + * + * 隕∫エ縺ッ繧ォ繝ウ繝槫玄蛻繧翫〒謖螳壹〒縺阪k縲 + * + * + * @for jQuery + * @method jQuery.expr.is-value + * @param values {String} 荳閾エ縺吶k蛟、(繧ォ繝ウ繝槫玄蛻繧) + */ + , 'is-value': $.expr.createPseudo(isVal) + }); + + Object.merge($, { + /** + * CSS譖ク蠑上ョ迚ケ谿頑枚蟄励r繧ィ繧ケ繧ア繝シ繝励☆繧九 + * + * 繧サ繝ャ繧ッ繧ソ蜀縺ォID繧class縺ェ縺ゥ縺ョ繝ェ繝繝ゥ繝ォ繧帝」邨舌☆繧矩圀縺ォ菴ソ逕ィ縺吶k縲 + * 蜿り: http://mathiasbynens.be/notes/css-escapes + * + * @for jQuery + * @method jQuery.escapeCssSpecialChars + * @param str {String} 繧ィ繧ケ繧ア繝シ繝怜ッセ雎。譁蟄怜 + */ + escapeCssSpecialChars: escapeCssSpecialChars + }); + + function escapeCssSpecialChars(str) { + var specials = /[!"#%&'()*+,.\/:;<=>?@\[\]^`{|}]/g + , hyphen = /^-[-0-9]/; + return str.replace(specials, '\\$&') + .replace(hyphen, '\\$&'); + } + + function isNotBlankSelector() { + return function(element) { + return !isBlank(element); + }; + } + + function isBlankSelector() { + return function(element) { + return isBlank(element); + }; + } + + function isBlank(element) { + var $element = $(element) + , content = $element.is('select, input, textarea, option') + ? $element.val() + : $element.text(); + return !content || content.isBlank(); + } + + function isVal(selector) { + return function(element) { + var matched = false; + selector.split(',').each(function(val) { + matched = matched || $(element).val() === val.trim(); + }); + return matched; + }; + } + +}); diff --git a/node_modules/nablarch-widget-core/ui_test/js/nablarch/ui/selectorTest.js b/node_modules/nablarch-widget-core/ui_test/js/nablarch/ui/selectorTest.js new file mode 100644 index 0000000..ec7d32b --- /dev/null +++ b/node_modules/nablarch-widget-core/ui_test/js/nablarch/ui/selectorTest.js @@ -0,0 +1,71 @@ +require(['jquery', 'sugar', 'nablarch/ui/selector'], +function($){ + + module("nablarch/ui/selector"); + + test(":is-blank縺ョ繝繧ケ繝", function() { + var testTable = [ + // [case, expected, input.val, text.html] + ["empty縺ョ蝣エ蜷", true, "", ""], + ["blank縺ョ蝣エ蜷", true, " ", " "], + ["nbsp縺ョ蝣エ蜷", true, "\xA0", " "], + ["蛟、縺後≠繧句エ蜷", false, "dummy", "text"], + ] + , inputTag = $('') + , textNode = $(''); + + testTable.each(function(testcase) { + var description = testcase[0] + , expected = testcase[1]; + inputTag.val(testcase[2]); + textNode.html(testcase[3]); + equal(inputTag.is(':is-blank'), expected, description); + equal(textNode.is(':is-blank'), expected, description); + }); + }); + + test(":is-not-blank縺ョ繝繧ケ繝", function() { + var testTable = [ + // [case, expected, input.val, text.html] + ["empty縺ョ蝣エ蜷", false, "", ""], + ["blank縺ョ蝣エ蜷", false, " ", " "], + ["nbsp縺ョ蝣エ蜷", false, "\xA0", " "], + ["蛟、縺後≠繧句エ蜷", true, "dummy", "text"], + ] + , inputTag = $('') + , textNode = $(''); + + testTable.each(function(testcase) { + var description = testcase[0] + , expected = testcase[1]; + inputTag.val(testcase[2]); + textNode.html(testcase[3]); + equal(inputTag.is(':is-not-blank'), expected, description); + equal(textNode.is(':is-not-blank'), expected, description); + }); + }); + + test(':is-value縺ョ繝繧ケ繝', function(){ + var testTable = [ + // [case, expected, selector, val] + ["繝槭ャ繝√☆繧", true, ':is-value(dummy)', "dummy"], + ["繝槭ャ繝√@縺ェ縺", false, ':is-value(money)', "dummy"], + ["隍謨ー險ュ螳壹@縲√槭ャ繝√☆繧", true, ":is-value(money, dummy)", "dummy"], + ["隍謨ー險ュ螳壹@縲√槭ャ繝√☆繧", true, ":is-value(money, dummy)", "money"], + ["隍謨ー險ュ螳壹@縲√槭ャ繝√@縺ェ縺", false, ":is-value(money, dummy)", "none"], + ] + , inputTag = $('') + , textNode = $(''); + testTable.each(function(testcase) { + var description = testcase[0] + , expected = testcase[1] + , selector = testcase[2] + , val = testcase[3]; + inputTag.val(val); + textNode.html(val); + equal(inputTag.is(selector), expected, description); + ok(!textNode.is(selector), description + " [text縺ォ縺ッ蛻ゥ逕ィ縺ァ縺阪↑縺Ь"); + }); + }); + +}); \ No newline at end of file diff --git a/node_modules/nablarch-widget-event-autosum/package.json b/node_modules/nablarch-widget-event-autosum/package.json new file mode 100644 index 0000000..90a74d6 --- /dev/null +++ b/node_modules/nablarch-widget-event-autosum/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-event-autosum" +, "version": "1.0.1" +, "_from" : "nablarch-widget-event-autosum@1.0.1" +, "dependencies": { + } +, "description": "閾ェ蜍暮寔險域ゥ溯ス" +} diff --git a/node_modules/nablarch-widget-event-autosum/ui_public/js/nablarch/ui/AutoSum.js b/node_modules/nablarch-widget-event-autosum/ui_public/js/nablarch/ui/AutoSum.js new file mode 100644 index 0000000..49c7873 --- /dev/null +++ b/node_modules/nablarch-widget-event-autosum/ui_public/js/nablarch/ui/AutoSum.js @@ -0,0 +1,241 @@ +/** + * @module nablarch.ui + */ +define([ + "jquery" // jQuery繝ゥ繧、繝悶Λ繝ェ + , "nablarch/ui/Widget" // 繧ヲ繧」繧ク繧ァ繝繝医ョ蜈ア騾壼渕蠎輔け繝ゥ繧ケ + , "nablarch/util/BigDecimal" // BigDecimal繧ッ繝ゥ繧ケ + , "nablarch/ui/readonly" // readonly蛻カ蠕。 + , "nablarch/ui/event" // nablarch縺ョ蜍穂ス懊↓髢「騾」縺励◆繧、繝吶Φ繝医ョ螳夂セゥ + , "sugar" // sugar.js +], + + function ($, Widget, BigDecimal, readonly) { "use strict"; + /** + * 閾ェ蜍暮寔險域ゥ溯ス + * ============================================ + * 閾ェ蜍暮寔險域ゥ溯ス縺ッ縲√Θ繝シ繧カ縺悟・蜉帙@縺溷、繧偵け繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒髮險医☆繧九◆繧√ョUI讖溯ス縺ァ縺ゅk縲 + * + * 譛ャ讖溯ス縺ァ縺ッ縲√ユ繧ュ繧ケ繝医ヵ繧」繝シ繝ォ繝峨↓蜈・蜉帙&繧後◆蛟、繧帝寔險医@蜷郁ィ域ャ縺ォ邨先棡繧貞コ蜉帙☆繧九 + * 髮險亥ヲ逅縺瑚。後o繧後k繧ソ繧、繝溘Φ繧ー縺ッ縲髮險亥ッセ雎。縺ョ繝繧ュ繧ケ繝医ヵ繧」繝シ繝ォ繝峨°繧峨ヵ繧ゥ繝シ繧ォ繧ケ縺悟、悶l縺溘ち繧、繝溘Φ繧ー縺ァ縺ゅk縲 + * + * 窶サ髮險亥ッセ雎。縺ョ蜈・蜉帶ャ縺ョ蛟、縺悟・蜉帙&繧後※縺繧九′謨ー蛟、莉・螟悶ョ蝣エ蜷医↓縺ッ縲髮險亥ヲ逅繧定。後≧縺薙→縺後〒縺阪↑縺縺溘a險育ョ礼オ先棡縺ッNaN(Not A Number)縺ィ縺ェ繧九 + * 縺セ縺溘∵怏蜉ケ譯(15譯)繧定カ縺医k蝣エ蜷医↓繧NaN(Not A Number)縺ィ縺ェ繧九 + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------ + * 譛ャ讖溯ス繧剃スソ逕ィ縺吶k蝣エ蜷井サ・荳九ョ繝槭シ繧ォCSS繧剃スソ逕ィ縺吶k縲 + * + * 1. 蜷郁ィ亥、繧貞コ蜉帙☆繧玖ヲ∫エ + * + * 繝槭シ繧ォCSS縺ィ縺励※ `nablarch_AutoSum` 繧呈欠螳壹☆繧九 + * 閾ェ蜍暮寔險亥ッセ雎。縺ョ繝繧ュ繧ケ繝医ヵ繧」繝シ繝ォ繝峨ッ縲〜-target` 繧ェ繝励す繝ァ繝ウ縺ァ謖螳壹☆繧九 + * (蜷郁ィ亥、縺ッ縲√ユ繧ュ繧ケ繝医ヵ繧」繝シ繝ォ繝牙所縺ウHTML隕∫エ縺ョContent驛ィ縺ォ蜃コ蜉帙☆繧倶コ九′縺ァ縺阪k縲) + * + * 2. 閾ェ蜍暮寔險亥ッセ雎。縺ョ隕∫エ + * + * 蜷郁ィ亥、繧貞コ蜉帙☆繧玖ヲ∫エ縺ョ `-target` 繧ェ繝励す繝ァ繝ウ縺ァ謖螳壹@縺溷、繧偵槭シ繧ォCSS縺ィ縺励※謖螳壹☆繧九 + * + * **蜉邂励☆繧句エ蜷:** `AutoSum_ + (-target 繧ェ繝励す繝ァ繝ウ縺ァ謖螳壹@縺溷、)` + * **貂帷ョ励☆繧句エ蜷:** `AutoSum_ + (-target 繧ェ繝励す繝ァ繝ウ縺ァ謖螳壹@縺溷、) + _negative` + * + * 菴ソ逕ィ萓 + * --------- + * + * **HTML** + * + * + * + * + * + * + * + * + * + * + * + * + * **JSP** + * + * 縺薙ョ螳溯」萓九〒縺ッ縲∽サ・荳2遞ョ鬘槭ョ閾ェ蜍暮寔險医′陦後o繧後k縲 + * 1. 驥鷹。1-1縺九i驥鷹。1-3縺ョ蜷郁ィ医′蜷郁ィ1縺ォ蜃コ蜉帙&繧後k縲 + * 2. 驥鷹。2-1縺ィ驥鷹。2-2縺ョ蜷郁ィ医′蜷郁ィ2縺ォ蜃コ蜉帙&繧後k縲 + * (驥鷹。2-2縺ォ縺ッ縲∵ク帷ョ励ョ繝槭シ繧ォCSS縺梧欠螳壹&繧後※縺繧九◆繧√驥鷹。2-1縺九i驥鷹。2-2繧貞シ輔>縺溷、縺悟コ蜉帙&繧後k縲) + * + * + *
+ * + * + * + *
+ * + *
+ * + * + * + *
+ * + *
+ * + * + * + *
+ * + *
+ * + * + *
+ * + *
+ * + * + * + *
+ * + *
+ * + * + * + *
+ * + *
+ * + * + *
+ * + * @class nablarch.ui.AutoSum + * @author Hisaaki Sioiri + * @since 1.2 + */ + AutoSum.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縲 + * @method AutoSum + * @constructor + * @param {Element} element 髮險育オ先棡繧貞コ蜉帙☆繧九お繝ェ繧「縺ョDOM繝弱シ繝 + * @param {Object} opt 繧ェ繝励す繝ァ繝ウ繧呈シ邏阪@縺溘が繝悶ず繧ァ繧ッ繝 + * **target:** (`String`) 髮險亥ッセ雎。縺ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨ョ繧ッ繝ゥ繧ケ蜷 + * @returns {AutoSum} 繧、繝ウ繧ケ繧ソ繝ウ繧ケ + */ + constructor: AutoSum, + /** + * 蜉邂怜ッセ雎。縺ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝 + * @property $target + * @type jQuery + */ + $target:null, + /** + * 貂帷ョ怜ッセ雎。縺ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝 + * @property $negativeTarget + * @type jQuery + */ + $negativeTarget:null, + /** + * 髮險育オ先棡繧貞コ蜉帙☆繧玖ヲ∫エ + * @property $element + * @type jQuery + */ + $element:null, + /** + * 髮險亥ヲ逅繧定。後≧縲 + * + * 髮險亥ッセ雎。縺ョ隕∫エ縺九i蛟、繧貞叙蠕励@縲∝粋險亥、繧偵き繝ウ繝樒キィ髮縺怜コ蜉帙☆繧九 + * + * @method sum + * @param {jQuery.Event} event 繧、繝吶Φ繝(菴ソ逕ィ縺励↑縺) + */ + sum:AutoSum_sum + }); + + /** + * 繧、繝吶Φ繝亥ョ夂セゥ + * + * AutoSum.event = { + * "$target focusout":"sum", + * "$negativeTarget focusout":"sum" + * "$target nablarch_value_change" : "sum", + * "$negativeTarget nablarch_value_change":"sum" + * }; + * + * @property event + * @type Object + * @static + * @final + * + */ + AutoSum.event = { + "$target focusout":"sum", + "$negativeTarget focusout":"sum", + "$target nablarch_value_change" : "sum", + "$negativeTarget nablarch_value_change":"sum" + }; + + /** + * 繧ヲ繧」繧ク繧ァ繝繝郁ュ伜挨蟄 + * + * @property widgetType + * @type String + * @static + * @final + * @default "nablarch_AutoSum" + */ + AutoSum.widgetType = "nablarch_AutoSum"; + + Widget.register(AutoSum); + + function AutoSum(element, option) { + if (!element) { + return this; + } + this.$target = $(":input.AutoSum_" + option.target).not(":disabled:not(." + readonly.markerCss + ")"); + this.$negativeTarget = $(":input.AutoSum_" + option.target + "_negative").not(":disabled:not(."+readonly.markerCss+")"); + this.constructor = AutoSum; + Widget.call(this, element); + this.$element = $(element); + + // 閾ェ蜍暮寔險亥ッセ雎。縺悟ュ伜惠縺励※縺繧句エ蜷医∫判髱「陦ィ遉コ譎ゅ↓閾ェ蜍暮寔險医r陦後≧縲 + // シ育「コ隱咲判髱「縺ァ縺ッ縲√し繝シ繝舌し繧、繝峨〒險育ョ励@縺溷、繧貞コ蜉帙☆繧九%縺ィ繧呈Φ螳壹@縲√け繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ョ髮險医ッ陦後o縺ェ縺縲ゑシ + if (this.$target.length !== 0) { + this.sum(); + } + } + + function AutoSum_sum(event) { + var total = new BigDecimal(0); + // 蜉邂鈴逶ョ + this.$target.each(function () { + var $this = $(this), + val; + val = $this.val().trim() || '0'; + if (isNumber(val)) { + total = total.add(new BigDecimal(val.toNumber())); + } else { + total = BigDecimal.NaN; + } + }); + // 貂帷ョ鈴逶ョ + this.$negativeTarget.each(function () { + var $this = $(this), + val; + val = $this.val().trim() || '0'; + if (isNumber(val)) { + total = total.subtract(new BigDecimal(val.toNumber())); + } else { + total = BigDecimal.NaN; + } + }); + if (this.$element.is('input')) { + this.$element.val(total.toNumber().format()); + } else { + this.$element.text(total.toNumber().format()); + } + + function isNumber(value) { + return value.match(/^-?\d{1,3}(,?\d{3})*(\.\d*)?$/) + } + } + + return AutoSum; + } +); + diff --git "a/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/index.jsp" "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/index.jsp" new file mode 100644 index 0000000..ed8aed7 --- /dev/null +++ "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/index.jsp" @@ -0,0 +1,20 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
  • +
+
+
+
\ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" new file mode 100644 index 0000000..70b86e9 --- /dev/null +++ "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" @@ -0,0 +1,277 @@ + runTest( + 閾ェ蜍暮寔險医〒縺阪k縺薙→ + , 閾ェ蜍暮寔險医〒貂帷ョ励b縺ァ縺阪k縺薙→ + , 繧ォ繝ウ繝樒キィ髮縺輔l縺ヲ縺縺ヲ繧りェ蜍戊ィ育ョ励〒縺阪k縺薙→ + , 謨ー蟄嶺サ・螟悶r蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓蜈・蜉帙@縺溷エ蜷医ッ邨先棡縺君aN縺ォ縺ェ繧九%縺ィ + , disabled螻樊ァ縺翫h縺ウnablarch_readonly鬆逶ョ縺梧ュ」縺励¥蜃ヲ逅縺輔l繧九%縺ィ + , 譛牙柑譯√ョ繝繧ケ繝 + , 繧ォ繧ケ繧ソ繝繧、繝吶Φ繝医〒險育ョ励☆繧九%縺ィ + ); +// , 遒コ隱咲判髱「縺ョ驕キ遘サ縺ァ縺ッ閾ェ蜍暮寔險医′陦後o繧後↑縺縺薙→ +// , 繧ィ繝ゥ繝シ譎ゅョ蜀肴緒逕サ縺ァ閾ェ蜍暮寔險医〒縺阪k縺薙→ + + + var $input1, + $input2, + $input3, + $input4, + $input5, + $input_disabled, + $input_readonly, + $sum1, + $sum2; + + /** + * 繝繧ケ繝育畑縺ョ繧サ繝繝医い繝繝怜ヲ逅縲 + */ + function testSetup() { + $input1 = $("#amount1_1"); + $input2 = $("#amount1_2"); + $input3 = $("#amount1_3"); + $input4 = $("#amount2_1"); + $input5 = $("#amount2_2"); + $input_disabled = $("#amount3_1"); + $input_readonly = $("#amount3_2"); + $sum1 = $("#autoSum1"); + $sum2 = $("#autoSum2"); + } + + /** + * 閾ェ蜍暮寔險医ョ繝繧ケ繝医 + * 蜊倡エ斐↓隍謨ー鬆逶ョ縺ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨r鬆縺ォ蜈・蜉帙@縺ヲ縺縺阪 + * 蜷郁ィ磯Κ縺ョ陦ィ遉コ蛟、縺後Μ繧「繝ォ繧ソ繧、繝縺ォ螟画峩縺輔l縺ヲ縺縺上%縺ィ繧堤「コ隱阪☆繧九 + * + * 蜷郁ィ磯Κ縺ォ縺ッ縲《pan繧ソ繧ー繧剃スソ逕ィ + */ + function 閾ェ蜍暮寔險医〒縺阪k縺薙→() { + testSetup(); + + // 0繧ッ繝ェ繧「 + $input1.val("0"); + $input2.val("0"); + $input3.val("0"); + $input1.trigger('focusout'); + equal($sum1.text(), "0", "蜈ィ縺ヲ縺ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨′0縺ェ縺ョ縺ァ蜷郁ィ医b0縺ォ縺ェ繧九"); + + // 1縺、繧√ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓蛟、繧定ィュ螳 + $input1.val("999.99"); + $input1.trigger('focusout'); + equal($sum1.text(), "999.99", "1縺、繧√ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓蛟、繧偵>繧後◆縺ョ縺ァ縲√◎縺ョ蛟、縺悟粋險医↓險ュ螳壹&繧後k縲"); + + // 2縺、繧√ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓蛟、繧定ィュ螳 + $input2.val("0.05"); + $input2.trigger('focusout'); + equal($sum1.text(), "1,000.04", "2縺、繧√ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓蛟、繧貞・繧後◆縺ョ縺ァ縲(nput1縺ィ縺ョ蜷郁ィ医′險ュ螳壹&繧後k縲"); + + // 3縺、繧√ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓蛟、繧定ィュ螳 + $input3.val("0.06"); + $input2.trigger('focusout'); + equal($sum1.text(), "1,000.1", "3縺、繧√ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓蛟、繧貞・繧後◆縺ョ縺ァ縲(nput1縺ィinput2縺ィ縺ョ蜷郁ィ医′險ュ螳壹&繧後k縲"); + } + + /** + * 貂帷ョ励r蜷ォ繧閾ェ蜍暮寔險医ョ繝繧ケ繝医 + * + * 蜷郁ィ磯Κ縺ォ縺ッ縲(nput type=text繧剃スソ逕ィ縲 + */ + function 閾ェ蜍暮寔險医〒貂帷ョ励b縺ァ縺阪k縺薙→() { + testSetup(); + + // 0繧ッ繝ェ繧「 + $input4.val("0"); + $input5.val("0"); + $input_disabled.val("0"); + $input_readonly.val("0"); + + + $input4.trigger('focusout'); + equal($sum2.val(), "0", "蜈ィ縺ヲ縺ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨′0縺ェ縺ョ縺ァ蜷郁ィ医b0縺ォ縺ェ繧九"); + + // 1縺、繧√ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓蛟、繧定ィュ螳 + $input4.val("1000"); + $input4.trigger('focusout'); + equal($sum2.val(), "1,000", "1縺、繧√ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓蛟、繧定ィュ螳壹@縺溘ョ縺ァ縲√◎縺ョ蛟、縺悟粋險医↓險ュ螳壹&繧後k縲"); + + // 2縺、繧√ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓蛟、繧定ィュ螳 + $input5.val("1000"); + $input5.trigger('focusout'); + equal($sum2.val(), "0", "2縺、繧√ョ繝輔ぅ繝シ繝ォ繝峨ッ貂帷ョ怜ッセ雎。縺ェ縺ョ縺ァ縲1縺、繧√→蜷後§蛟、繧貞・繧後◆蝣エ蜷育オ先棡縺ッ0縺ォ縺ェ繧九"); + + // 2縺、繧√ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨ョ蛟、縺悟、ァ縺阪>蝣エ蜷(繝槭う繝翫せ縺ォ縺ェ繧玖ィ育ョ) + $input4.val("999.99"); + $input5.val("1000"); + $input5.trigger('focusout'); + equal($sum2.val(), "-0.01", "2縺、繧√ョ繝輔ぅ繝シ繝ォ繝峨ョ蛟、縺悟、ァ縺阪>縺ョ縺ァ縲∫オ先棡縺ッ繝槭う繝翫せ縺ォ縺ェ繧"); + } + + /** + * 貂帷ョ励r蜷ォ繧閾ェ蜍暮寔險医ョ繝繧ケ繝医 + * + * 蜷郁ィ磯Κ縺ォ縺ッ縲(nput type=text繧剃スソ逕ィ縲 + */ + function disabled螻樊ァ縺翫h縺ウnablarch_readonly鬆逶ョ縺梧ュ」縺励¥蜃ヲ逅縺輔l繧九%縺ィ() { + testSetup(); + + // 蛻晄悄蛹 + $input4.val("10"); + $input5.val("100"); + $input_disabled.val("0"); + $input_readonly.val("0"); + + $input4.trigger('focusout'); + equal($sum2.val(), "-90", "蛻晄悄迥カ諷"); + + $input_disabled.val("10000"); + $input4.trigger('focusout'); + equal($sum2.val(), "-90", "disabled鬆逶ョ縺ッ髮險亥ッセ雎。縺ィ縺ェ繧峨↑縺縺薙→縲"); + + $input_readonly.val("90"); + $input4.trigger('focusout'); + equal($sum2.val(), "0", "readonly鬆逶ョ縺ッ髮險亥ッセ雎。縺ィ縺ェ繧九%縺ィ縲"); + } + + /** + * 繧ォ繝ウ繝樒キィ髮縺輔l縺ヲ縺繧句エ蜷医ョ閾ェ蜍暮寔險医ョ繝繧ケ繝医 + */ + function 繧ォ繝ウ繝樒キィ髮縺輔l縺ヲ縺縺ヲ繧りェ蜍戊ィ育ョ励〒縺阪k縺薙→() { + testSetup(); + + // 蜈・蜉帛螳ケ繧ッ繝ェ繧「 + $input1.val(""); + $input2.val(""); + $input3.val(""); + $input3.trigger('focusout'); + equal($sum1.text(), "0", "蜈ィ縺ヲ縺ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨′遨コ縺ェ縺ョ縺ァ0縺ォ縺ェ繧九"); + + // 1縺、繧√ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓蛟、繧定ィュ螳 + $input1.val("1,000"); + $input2.val("1,000,000"); + $input3.val("2,0,0,0,"); // 繧ォ繝ウ繝槭ョ菴咲スョ縺御ク肴ュ」縺ェ蝣エ蜷医b辟。隕悶&繧後k縲 + $input3.trigger('focusout'); + equal($sum1.text(), "1,003,000", "蜈ィ縺ヲ縺ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨ョ蜷郁ィ医′險ュ螳壹&繧後k縲"); + } + + /** + * 繧ォ繝ウ繝樒キィ髮縺輔l縺ヲ縺繧句エ蜷医ョ閾ェ蜍暮寔險医ョ繝繧ケ繝医 + */ + function 繧ォ繝ウ繝樒キィ髮縺輔l縺ヲ縺縺ヲ繧りェ蜍戊ィ育ョ励〒縺阪k縺薙→() { + testSetup(); + + // 蜈・蜉帛螳ケ繧ッ繝ェ繧「 + $input1.val(""); + $input2.val(""); + $input3.val(""); + $input3.trigger('focusout'); + equal($sum1.text(), "0", "蜈ィ縺ヲ縺ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨′遨コ縺ェ縺ョ縺ァ0縺ォ縺ェ繧九"); + + $input1.val("1,000"); + $input2.val("1,000,000"); + $input3.val("2,000.123"); + $input3.trigger('focusout'); + equal($sum1.text(), "1,003,000.123", "蜈ィ縺ヲ縺ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨ョ蜷郁ィ医′險ュ螳壹&繧後k縲"); + } + + /** + * 謨ー蟄嶺サ・螟悶r蜈・蜉帙@縺溷エ蜷 + */ + function 謨ー蟄嶺サ・螟悶r蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓蜈・蜉帙@縺溷エ蜷医ッ邨先棡縺君aN縺ォ縺ェ繧九%縺ィ() { + testSetup(); + + // 蜈・蜉帛螳ケ繧ッ繝ェ繧「 + $input1.val(""); + $input2.val(""); + $input3.val(""); + $input3.trigger('focusout'); + equal($sum1.text(), "0", "蜈ィ縺ヲ縺ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨′遨コ縺ェ縺ョ縺ァ0縺ォ縺ェ繧九"); + + $input1.val("abcd"); + $input2.val("縺ゅ>縺縺医♀"); + $input3.val("2.123"); // 繧ォ繝ウ繝槭ョ菴咲スョ縺御ク肴ュ」縺ェ蝣エ蜷医b辟。隕悶&繧後k縲 + $input3.trigger('focusout'); + equal($sum1.text(), "NaN", "NaN縺ィ縺ェ繧"); + } + + /** + * 譛牙柑譯√ョ繝繧ケ繝 + */ + function 譛牙柑譯√ョ繝繧ケ繝() { + testSetup(); + + // 蜈・蜉帛螳ケ繧ッ繝ェ繧「 + $input1.val(""); + $input2.val(""); + $input3.val(""); + $input3.trigger('focusout'); + equal($sum1.text(), "0", "蜈ィ縺ヲ縺ョ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨′遨コ縺ェ縺ョ縺ァ0縺ォ縺ェ繧九"); + + // 譛螟ァ譯15譯√r蜈・蜉 + $input1.val("999999999999999"); + $input1.trigger('focusout'); + + equal($sum1.text(), "999,999,999,999,999", "譛螟ァ譯√↑縺ョ縺ァ險育ョ励〒縺阪k"); + + // 譛螟ァ譯√r繝槭う繝翫せ縺励◆蝣エ蜷育オ先棡縺ッ0縺ォ縺ェ繧 + $input2.val("-999999999999999"); + $input2.trigger('focusout'); + equal($sum1.text(), "0", "譛螟ァ譯 - 譛螟ァ譯√ッ0"); + + // 譛螟ァ譯 + 1縺ッNaN + $input2.val("1"); + $input2.trigger('focusout'); + equal($sum1.text(), "NaN", "譯∵焚雜驕弱〒NaN"); + + } + + function 繧ォ繧ケ繧ソ繝繧、繝吶Φ繝医〒險育ョ励☆繧九%縺ィ() { + // 蜈・蜉帛螳ケ繧ッ繝ェ繧「 + $input1.val(""); + $input2.val(""); + $input3.val(""); + $input3.trigger('focusout'); + equal($sum1.text(), "0", "蛻晄悄蛹悶@縺溘ョ縺ァ0"); + + $input1.val("100"); + $input1.trigger('nablarch_value_change'); + + equal($sum1.text(), "100", "繧ォ繧ケ繧ソ繝繧、繝吶Φ繝医〒蜍穂ス懊☆繧九"); + // 貂帷ョ鈴逶ョ + $input4.val("0"); + $input5.val("0"); + $input_disabled.val("0"); + $input_readonly.val("0"); + + $input4.trigger('focusout'); + equal($sum2.val(), "0", "蛻晄悄蛹悶@縺溘ョ縺ァ0"); + + $input5.val("100"); + $input5.trigger('nablarch_value_change'); + equal($sum2.val(), "-100", "貂帷ョ怜ヲ逅縺ァ繧ょ虚菴懊☆繧九"); + + $input5.val("not_match_event"); + $input5.trigger('nablarch_change'); + equal($sum2.val(), "-100", "莉悶ョ繧、繝吶Φ繝医〒縺ッ蜍穂ス懊@縺ェ縺縲"); + + // 謌サ縺吶 + $input5.val("100"); + + } + /** + * 繧ィ繝ゥ繝シ譎ゅョ閾ェ逕サ髱「驕キ遘サシ亥肴緒逕サシ峨〒繧りェ蜍暮寔險医′陦後o繧後k縺薙→ + */ + function 繧ィ繝ゥ繝シ譎ゅョ蜀肴緒逕サ縺ァ閾ェ蜍暮寔險医〒縺阪k縺薙→() { + testSetup(); + + equal($sum1.text(), "3", "謨ー蛟、縺悟・蜉帙&繧後◆繝輔ぅ繝シ繝ォ繝峨ョ蜷郁ィ医′險ュ螳壹&繧後※縺繧九%縺ィ"); + equal($sum2.val(), "-1,000", "謨ー蛟、縺悟・蜉帙&繧後◆繝輔ぅ繝シ繝ォ繝峨ョ蜷郁ィ医′險ュ螳壹&繧後k縺薙→"); + } + + /** + * 遒コ隱咲判髱「縺ク縺ョ驕キ遘サ譎ゅッ縲∬ェ蜍暮寔險医′陦後o繧後↑縺縺薙→縲 + */ + function 遒コ隱咲判髱「縺ョ驕キ遘サ縺ァ縺ッ閾ェ蜍暮寔險医′陦後o繧後↑縺縺薙→() { + testSetup(); + + equal($sum1.text(), "600", "繧オ繝シ繝仙榊コヲ縺ァ險育ョ励@縺溷、縺瑚。ィ遉コ縺輔l繧九%縺ィ"); + } + + diff --git "a/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" new file mode 100644 index 0000000..0a1d7cb --- /dev/null +++ "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" @@ -0,0 +1,17 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..aa1140c --- /dev/null +++ "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,32 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*, java.math.*" %> +<% + + nablarch.core.ThreadContext.setLanguage(Locale.JAPANESE); + + request.setAttribute("formdata", new HashMap() {{ + put("amount11", BigDecimal.TEN); + put("amount12", new BigDecimal("1000.12")); + put("amount13", BigDecimal.ZERO); + put("amount21", BigDecimal.ZERO); + put("amount22", BigDecimal.ZERO); + put("amount31", BigDecimal.ONE); + put("amount32", new BigDecimal("11")); + put("amount33", new BigDecimal("111")); + put("totalAmount1", BigDecimal.TEN.add(new BigDecimal("1000.12"))); + put("totalAmount2", BigDecimal.TEN); + }}); + + request.setAttribute("listBox", new ArrayList() {{ + add(new HashMap() {{put("key", "シ"); put("value", "0"); }}); + add(new HashMap() {{put("key", "シ托シ撰シ仙"); put("value", "100"); }}); + add(new HashMap() {{put("key", "シ托シ撰シ撰シ仙"); put("value", "1000"); }}); + }}); +%> + + +<% + Map bean = (Map) request.getAttribute("formdata"); + bean.put("totalAmount1", new BigDecimal("600")); +%> + diff --git "a/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..b7c8245 --- /dev/null +++ "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,103 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +<%-- + + + + + + + + + +--%> + diff --git "a/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..40c1847 --- /dev/null +++ "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,17 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..560fdd1 --- /dev/null +++ "b/node_modules/nablarch-widget-event-autosum/ui_test/jsp/\350\207\252\345\213\225\351\233\206\350\250\210/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" @@ -0,0 +1,11 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + \ No newline at end of file diff --git a/node_modules/nablarch-widget-event-base/package.json b/node_modules/nablarch-widget-event-base/package.json new file mode 100644 index 0000000..6673b96 --- /dev/null +++ b/node_modules/nablarch-widget-event-base/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-event-base" + , "version": "1.0.0" + , "_from" : "nablarch-widget-event-base@1.0.0" + , "dependencies": { + } + , "description": "繧、繝吶Φ繝医え繧」繧ク繧ァ繝繝亥ア騾夐Κ蜩" +} diff --git a/node_modules/nablarch-widget-event-base/ui_local/js/jsp/taglib/event.js b/node_modules/nablarch-widget-event-base/ui_local/js/jsp/taglib/event.js new file mode 100644 index 0000000..00fee84 --- /dev/null +++ b/node_modules/nablarch-widget-event-base/ui_local/js/jsp/taglib/event.js @@ -0,0 +1,26 @@ +/** + * 繧、繝吶Φ繝医ョ繧ィ繝溘Η繝シ繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * JSP繧ソ繧ー `` 縺ッ荳玖ィ倥ョ繧ソ繧ー繝輔ぃ繧、繝ォ縺ォ繧医j謠冗判縺輔l繧九 + * + * (繧オ繝シ繝悶Ξ繝繝医さ繝ウ繝繧ュ繧ケ繝)/WEB-INF/tags/widget/event/xxx.tag + * + * @module jsp.taglib + * @class jsp.taglib.column + * @author tani takanori + */ + +define(['jsp', 'sugar'], +function($) { 'use strict'; + return function($tagBody, context, tagName, _context) { + if (tagName === 'send_request') { + // 繧、繝吶Φ繝育ウサ縺ョ繧ソ繧ー縺ァ縺ッ縲)sp:dobody驛ィ縺ョ蜀螳ケ繧剃スソ逕ィ縺吶k縺薙→縺ッ縺ェ縺縲 + // 縺薙ョ縺溘a縲√懊ョ繧」驛ィ縺ォjsp:dobody縺後≠繧句エ蜷医↓縺ッ蜑企勁縺励※縺翫¥縲 + $tagBody.filter('div[data-jsp="jsp:dobody"]').removeAttr('data-jsp'); + } + + return $.loadTagfile.apply( + this, ['../WEB-INF/tags/widget/event/', $tagBody, context, tagName, _context] + ); + }; +}); diff --git "a/node_modules/nablarch-widget-event-base/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/index.jsp" "b/node_modules/nablarch-widget-event-base/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/index.jsp" new file mode 100644 index 0000000..a40acc7 --- /dev/null +++ "b/node_modules/nablarch-widget-event-base/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/index.jsp" @@ -0,0 +1,33 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
+
    +
  • +
  • +
+
    +
  • +
+ +
+
+
\ No newline at end of file diff --git a/node_modules/nablarch-widget-event-dialog/package.json b/node_modules/nablarch-widget-event-dialog/package.json new file mode 100644 index 0000000..4c81bf6 --- /dev/null +++ b/node_modules/nablarch-widget-event-dialog/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-event-dialog" +, "version": "1.0.3" +, "_from" : "nablarch-widget-event-dialog@1.0.3" +, "dependencies": { + } +, "description": "繝繧、繧「繝ュ繧ー陦ィ遉コ繧ヲ繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-event-dialog/ui_public/WEB-INF/tags/widget/event/alert.tag b/node_modules/nablarch-widget-event-dialog/ui_public/WEB-INF/tags/widget/event/alert.tag new file mode 100644 index 0000000..6df8741 --- /dev/null +++ b/node_modules/nablarch-widget-event-dialog/ui_public/WEB-INF/tags/widget/event/alert.tag @@ -0,0 +1,20 @@ +<%@ tag pageEncoding="UTF-8" description="隴ヲ蜻翫ム繧、繧「繝ュ繧ー陦ィ遉コ" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="蜃ヲ逅蜷咲ァー" rtexprvalue="true" %> +<%@ attribute name="target" description="逶」隕門ッセ雎。縺ョ繧ソ繝シ繧イ繝繝医ョ繧サ繝ャ繧ッ繧ソ" rtexprvalue="true" %> +<%@ attribute name="condition" description="隴ヲ蜻翫r陦ィ遉コ縺吶k譚。莉カ" rtexprvalue="true" %> +<%@ attribute name="message" description="陦ィ遉コ縺吶k繝。繝繧サ繝シ繧ク" rtexprvalue="true" required="true" %> +<%@ attribute name="stop" description="繧、繝吶Φ繝医r蛛懈ュ「縺吶k縺九←縺縺(繝繝輔か繝ォ繝医ッtrue)" rtexprvalue="true" %> +<%@ attribute name="revert" description="蜈・蜉帛、繧貞セゥ蜈縺吶k縺九←縺縺(繝繝輔か繝ォ繝医ッtrue)" rtexprvalue="true" %> + + + diff --git a/node_modules/nablarch-widget-event-dialog/ui_public/WEB-INF/tags/widget/event/confirm.tag b/node_modules/nablarch-widget-event-dialog/ui_public/WEB-INF/tags/widget/event/confirm.tag new file mode 100644 index 0000000..199a5a7 --- /dev/null +++ b/node_modules/nablarch-widget-event-dialog/ui_public/WEB-INF/tags/widget/event/confirm.tag @@ -0,0 +1,20 @@ +<%@ tag pageEncoding="UTF-8" description="遒コ隱阪ム繧、繧「繝ュ繧ー縺ョ陦ィ遉コ" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="蜃ヲ逅蜷咲ァー" rtexprvalue="true" %> +<%@ attribute name="target" description="逶」隕門ッセ雎。縺ョ繧ソ繝シ繧イ繝繝医ョ繧サ繝ャ繧ッ繧ソ" rtexprvalue="true" %> +<%@ attribute name="condition" description="隴ヲ蜻翫r陦ィ遉コ縺吶k譚。莉カ" rtexprvalue="true" %> +<%@ attribute name="message" description="陦ィ遉コ縺吶k繝。繝繧サ繝シ繧ク" rtexprvalue="true" required="true"%> +<%@ attribute name="stop" description="繧、繝吶Φ繝医r蛛懈ュ「縺吶k縺九←縺縺(繝繝輔か繝ォ繝医ッtrue)" rtexprvalue="true"%> +<%@ attribute name="revert" description="蜈・蜉帛、繧貞セゥ蜈縺吶k縺九←縺縺(繝繝輔か繝ォ繝医ッtrue)" rtexprvalue="true"%> + + + diff --git a/node_modules/nablarch-widget-event-dialog/ui_public/WEB-INF/tags/widget/event/dialog.tag b/node_modules/nablarch-widget-event-dialog/ui_public/WEB-INF/tags/widget/event/dialog.tag new file mode 100644 index 0000000..1a86747 --- /dev/null +++ b/node_modules/nablarch-widget-event-dialog/ui_public/WEB-INF/tags/widget/event/dialog.tag @@ -0,0 +1,27 @@ +<%@ tag pageEncoding="UTF-8" description="繝繧、繧「繝ュ繧ー陦ィ遉コ繧ヲ繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="蜃ヲ逅蜷咲ァー" rtexprvalue="true" %> +<%@ attribute name="type" description="繝励Ο繝代ユ繧」縺ョ蛻譖ソ遞ョ蛻・" required="true" rtexprvalue="true" %> +<%@ attribute name="target" description="謫堺ス懷ッセ雎。縺ョ鬆逶ョ縺ョ繧サ繝ャ繧ッ繧ソ" rtexprvalue="true" %> +<%@ attribute name="condition" description="繧、繝吶Φ繝医r蜃ヲ逅縺吶k譚。莉カ" rtexprvalue="true" %> +<%@ attribute name="message" description="陦ィ遉コ縺吶k繝。繝繧サ繝シ繧ク" rtexprvalue="true" required="true"%> +<%@ attribute name="stop" description="繧、繝吶Φ繝医r蛛懈ュ「縺吶k縺九←縺縺(繝繝輔か繝ォ繝医ッtrue)" rtexprvalue="true" %> +<%@ attribute name="revert" description="蜈・蜉帛、繧貞セゥ蜈縺吶k縺九←縺縺(繝繝輔か繝ォ繝医ッtrue)" rtexprvalue="true" %> + + + + diff --git a/node_modules/nablarch-widget-event-dialog/ui_public/js/nablarch/ui/event/RevertValue.js b/node_modules/nablarch-widget-event-dialog/ui_public/js/nablarch/ui/event/RevertValue.js new file mode 100644 index 0000000..19faab8 --- /dev/null +++ b/node_modules/nablarch-widget-event-dialog/ui_public/js/nablarch/ui/event/RevertValue.js @@ -0,0 +1,48 @@ +define(['jquery', 'sugar'], +function($) { 'use strict'; + var preValueKey = 'revertAction-preValue'; + + RevertValue.prototype = { + constructor : RevertValue + , isActive : true + , $target : null + , init : RevertValue_init + , store : RevertValue_store + , revert : RevertValue_revert + }; + + function RevertValue(activate) { + this.constructor = RevertValue; + this.isActive = activate; + } + + function RevertValue_init(listener) { + if (!this.isActive) {return;} + var $context = listener.$context + , target = listener.event.split(/\s+/).first() + , $target = $context.find(target); + this.$target = $target; + this.store(); + } + + function RevertValue_store() { + if (!this.isActive) {return;} + this.$target.each(function() { + var $this = $(this) + , val = $this.is(':checkbox, :radio') + ? !!$this.prop('checked') : $this.val(); + $this.data(preValueKey, val); + }); + } + + function RevertValue_revert() { + if (!this.isActive) {return;} + this.$target.each(function() { + var $this = $(this) + , val = $this.data(preValueKey); + $this.is(':checkbox, :radio') ? $this.prop('checked', val) + : $this.val(val); + }); + } + return RevertValue; +}); \ No newline at end of file diff --git a/node_modules/nablarch-widget-event-dialog/ui_public/js/nablarch/ui/event/ShowDialogAction.js b/node_modules/nablarch-widget-event-dialog/ui_public/js/nablarch/ui/event/ShowDialogAction.js new file mode 100644 index 0000000..e68aaf7 --- /dev/null +++ b/node_modules/nablarch-widget-event-dialog/ui_public/js/nablarch/ui/event/ShowDialogAction.js @@ -0,0 +1,180 @@ +define(['jquery', './Listener', './RevertValue', 'sugar'], +function($, Listener, RevertValue) { 'use strict'; + /** + * 繝繧、繧「繝ュ繧ー陦ィ遉コ繧「繧ッ繧キ繝ァ繝ウ + * ============================================= + * 逋コ逕溘@縺溘う繝吶Φ繝医〒繝繧、繧「繝ュ繧ー繧定。ィ遉コ縺吶k繧「繧ッ繧キ繝ァ繝ウ縲 + * + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------------------------- + * 譛ャ讖溯ス繧剃スソ逕ィ縺吶k蝣エ蜷井サ・荳九ョ繝槭シ繧ォCSS繧剃スソ逕ィ縺吶k縲 + * + * 1. 繧、繝吶Φ繝医r邂。逅縺吶k縺溘a縺ョ謖螳 + * + * 繧、繝吶Φ繝医r螳夂セゥ縺励◆隕∫エ蜀縺ォ + * 繝槭シ繧ォCSS縺ィ縺励※ `nablarch_event_Action -type ShowDialog` 繧呈欠螳壹☆繧九 + * + * 2. 繧、繝吶Φ繝育匱逕滓凾縺ォ繝繧、繧「繝ュ繧ー繧定。ィ遉コ縺吶k蛻カ蠕。 + * + * event縺ョ逶」隕門ッセ雎。縲√b縺励¥縺ッtarget縺ァ謖螳壹@縺溘そ繝ャ繧ッ繧ソ縺ォ荳閾エ縺吶k隕∫エ + * + * 莉・荳九ッ縲√%縺ョ繧ヲ繧」繧ク繧ァ繝繝医ョ繧ェ繝励す繝ァ繝ウ縺ョ荳隕ァ縺ァ縺ゅk縲 + * + * **-dialog (String):** + * 陦ィ遉コ縺吶k繝繧、繧「繝ュ繧ー縲 **alert** 縺ィ **confirm** 繧偵し繝昴シ繝医@縺ヲ縺繧九 + * + * **-target (繧サ繝ャ繧ッ繧ソ譁ケ蠑):** + * 繝繧、繧「繝ュ繧ー繧定。ィ遉コ縺吶k譚。莉カ繧呈戟縺、隕∫エ縲Uarget隕∫エ縺御ク玖ィ倥ョwhen縺ァ謖螳壹&繧後◆迥カ諷九ョ蝣エ蜷医√ム繧、繧「繝ュ繧ー繧定。ィ遉コ縺吶k縲 + * 謖螳壹@縺ェ縺蝣エ蜷医ッ縲‘vent縺ョ逶」隕門ッセ雎。繧稚arget縺ィ縺ィ縺吶k縲 + * + * **-when (繧サ繝ャ繧ッ繧ソ譁ケ蠑):** + * 繝繧、繧「繝ュ繧ー繧定。ィ遉コ縺吶k譚。莉カ縲よ欠螳壹@縺ェ縺蝣エ蜷医ッ縲∝ソ縺夊。ィ遉コ縺吶k縲(繧、繝吶Φ繝医′騾比クュ縺ァ蛛懈ュ「縺励◆蝣エ蜷医r髯、縺) + * + * **螳溯」萓 (HTML)** + * + * 莉・荳九ッ縲∫屮隕門ッセ雎。縺ョ隕∫エ縺後計alue=1縲阪ョ縺ィ縺阪系ame螻樊ァ縺掲orm.縺ァ縺ッ縺倥∪繧玖ヲ∫エ縲阪r縲梧エサ諤ァ蛹悶阪☆繧句エ蜷医ョ繝槭シ繧ッ繧「繝繝励 + * + * + * + * + * @class nablarch.ui.event.ShowDialog + * + * @author tani takanori + * @since 1.4 + * + */ + ShowDialogAction.prototype = { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縲 + * @constructor + */ + constructor : ShowDialogAction + /** + * 陦ィ遉コ縺吶k繝繧、繧「繝ュ繧ー縺ョ遞ョ鬘槭(alert|confirm) + * + * @property dialog + * @type String + */ + , dialog : null + /** + * 逶」隕悶@縺ヲ縺繧句ッセ雎。莉・螟悶r譚。莉カ縺ィ縺吶k蝣エ蜷医 + * 譚。莉カ繧貞愛螳壹☆繧句ッセ雎。縺ョ隕∫エ縲 + * + * @property target + * @type element + */ + , target : null + /** + * 蟇セ雎。縺御ク閾エ縺励◆蝣エ蜷医↓繝繧、繧「繝ュ繧ー繧定。ィ遉コ縺吶k譚。莉カ縲 + * + * @property condition + * @type 繧サ繝ャ繧ッ繧ソ蠖「蠑 + */ + , condition : null + /** + * 蟇セ雎。縺御ク閾エ縺励◆蝣エ蜷医↓繝繧、繧「繝ュ繧ー繧定。ィ遉コ縺吶k譚。莉カ縲 + * + * @property target + * @type String + */ + , message : null + /** + * 逶」隕門ッセ雎。縺ョ繧、繝吶Φ繝医′逋コ轣ォ縺励◆髫帙↓蜻シ縺ウ蜃コ縺輔l繧九Γ繧ス繝繝峨 + * + * @method fire + */ + , fire : ShowDialogAction_fire + /** + * 蛻晄悄蜃ヲ逅縲 + * + * 蛟、蠕ゥ蜈逕ィ縺ォ迴セ蝨ィ縺ョvalue繧剃ソ晄戟縺吶k縲 + * + * @method init + */ + , init : ShowDailogAction_init + /** + * 繝繧、繧「繝ュ繧ー繧定。ィ遉コ縺吶k縲 + * + * @method showDialog + * @return 繝ヲ繝シ繧カ繝シ縺後く繝」繝ウ繧サ繝ォ縺励◆蝣エ蜷false縲√◎繧御サ・螟悶ッtrue + */ + , showDialog : ShowDialogAction_showDialog + /** + * 繝ヲ繝シ繧カ繝シ縺後く繝」繝ウ繧サ繝ォ縺励◆蝣エ蜷医↓蛟、繧貞セゥ蜈縺吶k縺九←縺縺九r蛻カ蠕。縺吶k縲 + * + * @property revert + */ + , revert : null + /** + * 繝ヲ繝シ繧カ繝シ縺後く繝」繝ウ繧サ繝ォ縺励◆蝣エ蜷医↓蠕檎カ壹ョ繧、繝吶Φ繝医r蛛懈ュ「縺吶k縺九←縺縺九r蛻カ蠕。縺吶k縲 + * + * @property stop + */ + , stop : null + }; + + function ShowDialogAction(opts) { + this.constructor = ShowDialogAction; + Object.merge(this, opts); + this.revert = new RevertValue(opts.revert === "true"); + this.stop = opts.stop === "true"; + } + + function ShowDailogAction_init(listener) { + this.revert.init(listener); + } + + function ShowDialogAction_fire(listener, event, actions) { + var self = this; + if (event.type === "change") { + setTimeout(delay(self, event), 0); + return false; + } + return this.showDialog(event); + + // 蜃ヲ逅繧帝≦蟒カ縺輔○繧九◆繧√ョsub routine + function delay(self, event) { + return function() { + var ok = self.showDialog(event); + if(ok || !self.stop) { + actions.each(function(action, i) { + return action.fire.apply(action, [listener, event, actions.from(i+1)]); + }); + } + }; + } + } + + function ShowDialogAction_showDialog(event) { + var $target = $(this.target || event.currentTarget) + , show = this.condition || '*' + , dialog = window[this.dialog] + , cancel = false; + if ($target.is(show)) { + cancel = !dialog(this.message); + if (cancel) { + this.revert.revert(); + if (this.revert.isActive) { + $target.trigger('nablarch_value_change'); + } + if (event.type !== "change") { + event.preventDefault(); + } + event.stopPropagation(); + } + } + this.revert.store(); + return !cancel; + } + + Listener.register('ShowDialog', ShowDialogAction); + return ShowDialogAction; +}); \ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/index.jsp" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/index.jsp" new file mode 100644 index 0000000..ff7bc1f --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/index.jsp" @@ -0,0 +1,25 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
  • +
  • +
  • +
+ +
+
+ + +
diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..14ea338 --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,51 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> +<% + request.setAttribute("applicationTypeList", new Map[] { + new HashMap() {{ + put("appName", "逋サ骭イ"); + put("appCode", "insert"); + }}, + new HashMap() {{ + put("appName", "譖エ譁ー"); + put("appCode", "update"); + }}, + new HashMap() {{ + put("appName", "蜑企勁"); + put("appCode", "delete"); + }}, + new HashMap() {{ + put("appName", "蜿らァ"); + put("appCode", "refer"); + }}, + + }); + request.setAttribute("userTypeList", new Map[] { + new HashMap() {{ + put("ugroupName", "邱丞漁" ); + put("ugroupId", "001"); + }}, + new HashMap() {{ + put("ugroupName", "邨檎炊" ); + put("ugroupId", "002"); + }}, + new HashMap() {{ + put("ugroupName", "蝟カ讌ュ" ); + put("ugroupId", "003"); + }}, + new HashMap() {{ + put("ugroupName", "莠コ莠" ); + put("ugroupId", "005"); + }}, + }); + if (!request.getParameterMap().containsKey("formdata.required")) { + request.setAttribute("formdata", + new HashMap() {{ + put("required", "蠢鬆" ); + put("conditional", "ssd"); + put("revertText1", "no_revert"); + put("revertText2", "no_revert"); + put("revertText3", "revert"); + }}); + } +%> \ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\207\343\203\242.jsp" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\207\343\203\242.jsp" new file mode 100644 index 0000000..f09492c --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\207\343\203\242.jsp" @@ -0,0 +1,74 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\207\343\203\242\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\207\343\203\242\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..1241abd --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\207\343\203\242\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,41 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> +<% + request.setAttribute("applicationTypeList", new Map[] { + new HashMap() {{ + put("appName", "逋サ骭イ"); + put("appCode", "insert"); + }}, + new HashMap() {{ + put("appName", "譖エ譁ー"); + put("appCode", "update"); + }}, + new HashMap() {{ + put("appName", "蜑企勁"); + put("appCode", "delete"); + }}, + new HashMap() {{ + put("appName", "蜿らァ"); + put("appCode", "refer"); + }}, + + }); + request.setAttribute("userTypeList", new Map[] { + new HashMap() {{ + put("ugroupName", "邱丞漁" ); + put("ugroupId", "001"); + }}, + new HashMap() {{ + put("ugroupName", "邨檎炊" ); + put("ugroupId", "002"); + }}, + new HashMap() {{ + put("ugroupName", "蝟カ讌ュ" ); + put("ugroupId", "003"); + }}, + new HashMap() {{ + put("ugroupName", "莠コ莠" ); + put("ugroupId", "005"); + }}, + }); +%> \ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..a6d661d --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\207\343\203\242\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,168 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> + + +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + 蜊願ァ定恭謨ー險伜捷20譁蟄嶺サ・蜀 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\347\242\272\350\252\215.jsp" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\347\242\272\350\252\215.jsp" new file mode 100644 index 0000000..c78bbd9 --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\347\242\272\350\252\215.jsp" @@ -0,0 +1,7 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\252\343\203\220\343\203\274\343\203\210_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\252\343\203\220\343\203\274\343\203\210_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..ddce010 --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\252\343\203\220\343\203\274\343\203\210_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,24 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + var placeHolderCase = $('span.test-case.revertOnPlaceHolder'); + placeHolderCase.prepend($('').text(nativeSupport())); + function nativeSupport() { + return ("placeholder" in document.createElement("input")) ? " can't test " : " can test "; + } + + diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\252\343\203\220\343\203\274\343\203\210_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\242\272\350\252\215.jsp" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\252\343\203\220\343\203\274\343\203\210_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\242\272\350\252\215.jsp" new file mode 100644 index 0000000..c921b41 --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\252\343\203\220\343\203\274\343\203\210_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\242\272\350\252\215.jsp" @@ -0,0 +1,7 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\252\343\203\220\343\203\274\343\203\210_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\252\343\203\220\343\203\274\343\203\210_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..b5f5456 --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\343\203\252\343\203\220\343\203\274\343\203\210_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,97 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> + + +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\347\242\272\350\252\215\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\347\242\272\350\252\215\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..e0d2009 --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\347\242\272\350\252\215\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,363 @@ +require(['jquery'], +function($){ + var _confirm = window.confirm + , $all_nodes = []; + + runTest( + 蠢鬆亥ア樊ァ縺ョ縺ソ縺ョ繝繧ケ繝 + , 譚。莉カ謖螳壹ョ繝繧ケ繝 + , 陦ィ遉コ譚。莉カ繧貞挨縺ョ隕∫エ繧呈擅莉カ蛻、螳壹↓縺吶k繝繧ケ繝 + , stop螻樊ァ縺ョ繝繧ケ繝 + , revert螻樊ァ縺ョ繝繧ケ繝 + , restore + ); + + $(function() { + $all_nodes = $('span.test-case, div.field'); + }); + + function 蠢鬆亥ア樊ァ縺ョ縺ソ縺ョ繝繧ケ繝() { + var testcase = test_for("require-only")[0] + , caseMsg = testcase.testcase + , $node = testcase.area.find('input') + , samples = ['nablarch', 'ssd', 'data', '', ' '] //縺縺壹l縺ァ繧ょ虚菴懊☆繧九%縺ィ縲 + , preval = $node.val(); + + equal($node.size(), 1, testcase.testcase + " 隕∫エ謨ー縺檎焚縺ェ繧(莠句燕譚。莉カ縺ョ遒コ隱)"); + doCancelTest(); + // 迥カ諷九′螟峨o繧峨↑縺cancel縺ョ繝繧ケ繝医°繧牙ョ溯。後☆繧九 + // doCancel 縺ョ蜀崎オキ蜻シ縺ウ蜃コ縺励′菫ョ莠縺励◆繧 doOk繧貞ョ溯。後☆繧九 + function doCancelTest(no) { + var caseNo = no || 0 + , sample = samples[caseNo] + , results = mockConfirm(false); + $node.val(sample); + doChange($node); + delay(function(){ + equal($node.val(), preval, caseMsg + " 蠕ゥ蜈縺ョ遒コ隱阪"); + equal(results.length, 1 , caseMsg + " 蜻シ縺ウ蜃コ縺怜屓謨ー縺ョ遒コ隱阪"); + if(samples.length > caseNo + 1) { + doCancelTest(caseNo + 1); + } else { + doOkTest(); + } + }); + } + + function doOkTest(no) { + var caseNo = no || 0 + , sample = samples[caseNo] + , results = mockConfirm(true); + $node.val(sample); + doChange($node); + delay(function(){ + equal($node.val(), sample, caseMsg + " 蠕ゥ蜈縺ョ遒コ隱阪"); + equal(results.length, 1 , caseMsg + " 蜻シ縺ウ蜃コ縺怜屓謨ー縺ョ遒コ隱阪"); + if(samples.length > caseNo + 1) { + doOkTest(caseNo + 1); + } + }); + } + } + + function 譚。莉カ謖螳壹ョ繝繧ケ繝() { + var testcase = test_for('conditional')[0] + , caseMsg = testcase.testcase + , $node = testcase.area.find('input') + , samples = ['ssd', ' ', '', 'match'] + , results; + + equal($node.size(), 1, caseMsg + " 隕∫エ謨ー縺ョ遒コ隱阪"); + + // 譚。莉カ縺ォ荳閾エ縺励↑縺縺溘a縲∫「コ隱阪ム繧、繧「繝ュ繧ー縺ッ陦ィ遉コ縺輔l縺ェ縺縲 + doCancelTest(); + function doCancelTest(no) { + var caseNo = no || 0 + , sample = samples[caseNo] + , results = mockConfirm(false); + $node.val(sample); + doChange($node); + delay(function() { + equal(results.length, 0, caseMsg + ' [蜻シ縺ウ蜃コ縺怜屓謨ー縺ョ遒コ隱江'); + equal($node.val(), sample, caseMsg + ' [繝。繝繧サ繝シ繧ク縺ョ遒コ隱江'); + if (samples.length > caseNo + 1) { + doCancelTest(caseNo+1); + } else { + doOkTest(); + } + }); + } + function doOkTest(no) { + var caseNo = no || 0 + , sample = samples[caseNo] + , results = mockConfirm(true); + $node.val(sample); + doChange($node); + delay(function() { + equal(results.length, 0, caseMsg + ' [蜻シ縺ウ蜃コ縺怜屓謨ー縺ョ遒コ隱江'); + equal($node.val(), sample, caseMsg + ' [繝。繝繧サ繝シ繧ク縺ョ遒コ隱江'); + if (samples.length > caseNo + 1) { + doOkTest(caseNo+1); + } else { + doConditionMatch(); + } + }); + } + function doConditionMatch() { + // 蛻晄悄蛹 + $node.val('reset_val'); + doChange($node); // 繝繝シ繧ソ菫晏ュ + delay(function(){ + results = mockConfirm(false); + $node.val('nablarch'); + doChange($node); + delay(function(){ + equal(results.length, 1, caseMsg + " [譚。莉カ縺ォ荳閾エ縺励◆蝣エ蜷医ョ遒コ隱江"); + equal(results[0].param, "譚。莉カ繧呈欠螳壹@縺溷エ蜷医ッ荳閾エ縺励◆蝣エ蜷医ョ縺ソ縲√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l繧九", caseMsg + " [繝。繝繧サ繝シ繧ク縺ョ遒コ隱江"); + equal($node.val(), 'reset_val', caseMsg + " [蠕ゥ蜈縺ョ遒コ隱江"); + + // OK縺ョ蝣エ蜷 + results = mockConfirm(true); + $node.val('nablarch'); + doChange($node); + delay(function(){ + equal(results.length, 1, caseMsg + " [譚。莉カ縺ォ荳閾エ縺励◆蝣エ蜷医ョ遒コ隱江"); + equal(results[0].param, "譚。莉カ繧呈欠螳壹@縺溷エ蜷医ッ荳閾エ縺励◆蝣エ蜷医ョ縺ソ縲√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l繧九", caseMsg + " [繝。繝繧サ繝シ繧ク縺ョ遒コ隱江"); + equal($node.val(), 'nablarch', caseMsg + " [螟画峩縺ョ遒コ隱江"); + }); + }); + }); + } + } + + function 陦ィ遉コ譚。莉カ繧貞挨縺ョ隕∫エ繧呈擅莉カ蛻、螳壹↓縺吶k繝繧ケ繝() { + var testcase = test_for('otherTarget')[0] + , caseMsg = testcase.testcase + , $trigger = testcase.area.find('input') + , $condition = $('input#target') + , firstval = $trigger.val() + , results; + + // 繝繧ケ繝医ョ莠句燕譚。莉カ縺ョ遒コ隱 + equal($trigger.size(), 1, caseMsg + " trigger縺ョ隕∫エ謨ー縺檎焚縺ェ繧九"); + equal($condition.size(), 1, caseMsg + " condition縺ョ隕∫エ謨ー縺檎焚縺ェ繧九"); + notEqual($condition.attr('id'), $trigger.attr('id'), "繝医Μ繧ャ繝シ縺ィ譚。莉カ縺ョ隕∫エ縺檎焚縺ェ繧九%縺ィ縲"); + + // 陦ィ遉コ縺輔l繧区擅莉カ縺ョ險ュ螳 + $condition.val(''); + // cancel case + results = mockConfirm(false); + doChange($condition); + delay(function() { + equal(results.length, 0, caseMsg + ":譚。莉カ縺悟、画峩縺輔l縺ヲ繧ょ他縺ウ蜃コ縺輔l縺ェ縺縲"); + + //ok case + results = mockConfirm(false); + $trigger.val(firstval + ' modify'); + doChange($trigger); + delay(function() { + equal(results.length, 1, caseMsg + ":繝医Μ繧ャ繝シ縺悟、画峩縺輔l繧後ー蜻シ縺ウ蜃コ縺輔l繧九"); + equal($trigger.val(), firstval, caseMsg + ':繧ュ繝」繝ウ繧サ繝ォ縺輔l縺溷エ蜷医ッtrigger縺梧綾繧'); + + // 繝医Μ繧ャ繝シ縺ョ蛟、繧貞、画峩縺励※繧る未菫ゅ↑縺縲 + results = mockConfirm(true); + $trigger.val(firstval + ' modify'); + doChange($trigger); + delay(function() { + equal(results.length, 1, caseMsg + ":繝医Μ繧ャ繝シ縺悟、画峩縺輔l繧後ー蜻シ縺ウ蜃コ縺輔l繧九"); + equal($trigger.val(), firstval + ' modify', caseMsg + ':OK縺ァ縺ゅl縺ー螟画峩縺輔l繧'); + // 陦ィ遉コ縺輔l縺ェ縺譚。莉カ縺ョ險ュ螳 + $condition.val('nablarch'); + + // cancel case + results = mockConfirm(false); + $trigger.val(firstval + ' modify'); + doChange($trigger); + delay(function() { + equal(results.length, 0, caseMsg + ":譚。莉カ縺碁&縺縺ョ縺ァ蜻シ縺ウ蜃コ縺輔l縺ェ縺"); + equal($trigger.val(), firstval + ' modify', caseMsg + ":繝繧、繧「繝ュ繧ー縺悟コ縺ェ縺縺ョ縺ァ螟画峩縺輔l繧九"); + + // ok case + results = mockConfirm(true); + $trigger.val(firstval + ' no_revert'); + doChange($trigger); + delay(function() { + equal(results.length, 0, caseMsg + ":譚。莉カ縺碁&縺縺ョ縺ァ蜻シ縺ウ蜃コ縺輔l縺ェ縺"); + equal($trigger.val(), firstval + ' no_revert', caseMsg + ":繝繧、繧「繝ュ繧ー縺悟コ縺ェ縺縺ョ縺ァ螟画峩縺輔l繧九"); + }); + }); + }); + }); + }); + } + + function stop螻樊ァ縺ョ繝繧ケ繝() { + ok(false, "閾ェ蜍輔ユ繧ケ繝医′螢翫l縺ヲ縺励∪縺縺ョ縺ァ謇馴嵯縺ァ縺ョ遒コ隱阪r縺励※縺上□縺輔>縲"); + return; + var testcases = test_for('stop') + , default_case = testcases[0] + , true_case = testcases[1] + , false_case = testcases[2] + , testTable = [ [default_case, '邱丞漁', '' , ["stop繧呈欠螳壹@縺ヲ縺縺ェ縺縺溘a縲√く繝」繝ウ繧サ繝ォ縺輔l縺溷エ蜷医∝虚菴懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ッ陦ィ遉コ縺輔l縺ェ縺"] , false] + , [default_case, '邱丞漁', '邱丞漁', ["stop繧呈欠螳壹@縺ヲ縺縺ェ縺縺溘a縲√く繝」繝ウ繧サ繝ォ縺輔l縺溷エ蜷医∝虚菴懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ッ陦ィ遉コ縺輔l縺ェ縺", "蜍穂ス懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ァ縺吶"] , true] + , [default_case, '邨檎炊', '邨檎炊', ["蜍穂ス懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ァ縺吶"] /*譚。莉カ縺ォ荳閾エ縺励↑縺蝣エ蜷医ョ繝繧ケ繝*/ , true] + , [true_case , '邱丞漁', '' , ["stop縺ォtrue繧呈欠螳壹@縺ヲ縺繧九◆繧√√%縺ョ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧後ー縲∬。ィ遉コ縺輔l縺ェ縺縲"] , false] + , [true_case , '邱丞漁', '邱丞漁', ["stop縺ォtrue繧呈欠螳壹@縺ヲ縺繧九◆繧√√%縺ョ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧後ー縲∬。ィ遉コ縺輔l縺ェ縺縲", "蜍穂ス懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ァ縺吶"] , true] + , [true_case , '邨檎炊', '邨檎炊', ["蜍穂ス懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ァ縺吶"] /*譚。莉カ縺ォ荳閾エ縺励↑縺蝣エ蜷医ョ繝繧ケ繝*/ , true] + , [false_case , '邱丞漁', '' , ["stop縺ォfalse繧呈欠螳壹@縺ヲ縺繧九◆繧√√%縺ョ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l縺ヲ繧ゅ∝ソ縺壼セ檎カ壹ョ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧", "蜍穂ス懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ァ縺吶"], false] + , [false_case , '邱丞漁', '邱丞漁', ["stop縺ォfalse繧呈欠螳壹@縺ヲ縺繧九◆繧√√%縺ョ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l縺ヲ繧ゅ∝ソ縺壼セ檎カ壹ョ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧", "蜍穂ス懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ァ縺吶"] , true] + , [false_case , '邨檎炊', '邨檎炊', ["蜍穂ス懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ァ縺吶"] /*譚。莉カ縺ォ荳閾エ縺励↑縺蝣エ蜷医ョ繝繧ケ繝*/ , true] + ]; + doTest(); + function doTest(no) { + var caseNo = no || 0 + , testDef = testTable[caseNo] + , testcase = testDef[0] + , setval = testDef[1] + , expectval = testDef[2] + , messages = testDef[3] + , ok_or_cancel = testDef[4] + , caseMsg = testcase.testcase + , $node = testcase.area.find('select') + , results = mockConfirm(ok_or_cancel) + , callcount = messages.length; + + equal($node.size(), 1, "隕∫エ謨ー縺ョ遒コ隱阪"); + $node.val(setval); + doChange($node); + delay(function() { + equal(results.length, callcount, caseMsg + " [蜻シ縺ウ蜃コ縺怜屓謨ー縺ョ遒コ隱江"); + for (var i = 0; callcount > i; i++) { + equal(results[i].param, messages[i], caseMsg + " [繝。繝繧サ繝シ繧ク縺ョ遒コ隱江"); + } + equal($node.val(), expectval, caseMsg + " [蛟、縺ョ遒コ隱江"); + $node.val(''); // 蛟、縺ョ蠕ゥ蜈縲 + doChange($node); + delay(function(){ + if(testTable.length > caseNo + 1) { + doTest(caseNo + 1); + } + }); + }); + } + + function a(testcase, setval, expectval, messagelist, ok_or_cancel) { + var caseMsg = testcase.testcase + , $node = testcase.area.find('select') + , preval = $node.val() + , callcount = messagelist.length + , results = mockConfirm(ok_or_cancel); + + equal($node.size(), 1, "隕∫エ謨ー縺ョ遒コ隱阪"); + $node.val(setval); + doChange($node); + equal(results.length, callcount, caseMsg + " [蜻シ縺ウ蜃コ縺怜屓謨ー縺ョ遒コ隱江"); + for (var i = 0; callcount > i; i++) { + equal(results[i].param, messagelist[i], caseMsg + " [繝。繝繧サ繝シ繧ク縺ョ遒コ隱江"); + } + equal($node.val(), expectval, caseMsg + " [蛟、縺ョ遒コ隱江"); + + $node.val(preval); // 蛟、縺ョ蠕ゥ蜈縲 + doChange($node); + }; + + } + + function revert螻樊ァ縺ョ繝繧ケ繝(){ + var testcases = test_for('revert') + , default_case = testcases[0] + , true_case = testcases[1] + , false_case = testcases[2] + , testTable = [ [default_case, "nablarch", "" , ["revert縺後ョ繝輔か繝ォ繝医↑縺ョ縺ァ縲√ム繧、繧「繝ュ繧ー陦ィ遉コ蠕後↓繧ュ繝」繝ウ繧サ繝ォ縺吶l縺ー縲√ョ繝シ繧ソ縺梧綾繧"], false, true] + , [default_case, "nablarch", "nablarch", ["revert縺後ョ繝輔か繝ォ繝医↑縺ョ縺ァ縲√ム繧、繧「繝ュ繧ー陦ィ遉コ蠕後↓繧ュ繝」繝ウ繧サ繝ォ縺吶l縺ー縲√ョ繝シ繧ソ縺梧綾繧"], true , false] + , [default_case, "nab" , "nab" , [/* 遒コ隱阪′蜃コ縺ェ縺代l縺ー縺昴ョ縺セ縺セ縲*/] , false, false] + , [true_case, "nablarch", "" , ["revert縺荊rue縺ェ縺ョ縺ァ縲√ム繧、繧「繝ュ繧ー陦ィ遉コ蠕後√く繝」繝ウ繧サ繝ォ縺吶l縺ー縲√ョ繝シ繧ソ縺梧綾繧"] , false, true] + , [true_case, "nablarch", "nablarch", ["revert縺荊rue縺ェ縺ョ縺ァ縲√ム繧、繧「繝ュ繧ー陦ィ遉コ蠕後√く繝」繝ウ繧サ繝ォ縺吶l縺ー縲√ョ繝シ繧ソ縺梧綾繧"] , true , false] + , [true_case, "nab" , "nab" , [/* 遒コ隱阪′蜃コ縺ェ縺代l縺ー縺昴ョ縺セ縺セ縲*/] , false, false] + , [false_case, "nablarch", "nablarch", ["revert縺掲alse縺ェ縺ョ縺ァ縲√ム繧、繧「繝ュ繧ー陦ィ遉コ蠕後√く繝」繝ウ繧サ繝ォ縺励※繧ゅョ繝シ繧ソ縺梧綾繧峨↑縺"] , false, false] + , [false_case, "ssd" , "ssd" , ["revert縺掲alse縺ェ縺ョ縺ァ縲√ム繧、繧「繝ュ繧ー陦ィ遉コ蠕後√く繝」繝ウ繧サ繝ォ縺励※繧ゅョ繝シ繧ソ縺梧綾繧峨↑縺"] , true , false] + , [false_case, "nab" , "nab" , [/* 遒コ隱阪′蜃コ縺ェ縺代l縺ー縺昴ョ縺セ縺セ縲*/] , false , false] + ]; + doTest(); + function doTest(no) { + var caseNo = no || 0 + , testDef = testTable[caseNo] + , testcase = testDef[0] + , setval = testDef[1] + , expectval = testDef[2] + , messages = testDef[3] + , ok_or_cancel = testDef[4] + , isReverted = testDef[5] + , caseMsg = testcase.testcase + , $node = testcase.area.find('input') + , results = mockConfirm(ok_or_cancel) + , callcount = messages.length + , revertEventCall = false; + equal($node.size(), 1, "隕∫エ謨ー縺ョ遒コ隱阪"); + $node.val(setval); + $node.one('nablarch_value_change', function(event) { + revertEventCall = true; + }); + doChange($node); + delay(function(){ + equal(results.length, callcount, caseMsg + "[蜻シ縺ウ蜃コ縺怜屓謨ー縺ョ遒コ隱江"); + for (var i =0; callcount > i; i++) { + equal(results[i].param, messages[i], caseMsg + " [繝。繝繧サ繝シ繧ク縺ョ遒コ隱江"); + } + equal(revertEventCall, isReverted, caseMsg + "revert繧、繝吶Φ繝医′蜻シ縺ー繧後◆縺九←縺縺"); + equal($node.val(), expectval, caseMsg + " [蛟、縺ョ遒コ隱江"); + if(testTable.length > caseNo + 1) { + doTest(caseNo + 1); + } + }); + } + } + + /** + * window.confirm繧偵ョ繝輔か繝ォ繝医↓謌サ縺吶 + */ + function restore() { + setTimeout(function(){ + window.confirm = _confirm ? _confirm : window.confirm; + }, 2000); + ok(true, 'restore ready!'); + } + + /** + * 繝繧ケ繝医r荳ュ譁ュ縺励※縺励∪縺window.confirm繧偵Δ繝繧ッ縺ォ蟾ョ縺玲崛縺医∝他縺ウ蜃コ縺礼憾豕√r險倬鹸縺吶k縲 + */ + function mockConfirm(ret) { + var results = []; + window.confirm = function(message) { + results.add({called : true, param : message}); + return ret; + }; + return results; + } + + function delay(fn, delayTime) { + var time = delayTime || 10; + QUnit.stop(); + setTimeout(function() { + fn(); + QUnit.start(); + }, time); + } + + function test_for(caseid) { + var $cases = $all_nodes.filter('span.test-case.' + caseid); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e); + return { + testcase : $.trim($e.text()), + area : $($all_nodes[idx + 1]), + }; + }); + } + function doChange($node) { + $node.change(); + } + +}); + diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\347\242\272\350\252\215\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\347\242\272\350\252\215\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..63b7fef --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\347\242\272\350\252\215\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,17 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\347\242\272\350\252\215\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\347\242\272\350\252\215\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..c68f734 --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\347\242\272\350\252\215\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,167 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> + + +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 蠢鬆域擅莉カ縺ョ縺ソ縺ョ蝣エ蜷医√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + 譚。莉カ縺梧欠螳壹&繧後◆蝣エ蜷医∵擅莉カ縺ォ荳閾エ縺吶k蝣エ蜷医ョ縺ソ繝繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l繧九%縺ィ縲
(value = nablarch)
+ + + + + + + + 繝繧、繧「繝ュ繧ー縺ョ譚。莉カ縺ョ蟇セ雎。繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溷ッセ雎。縺ョ迥カ諷九〒繝繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + stop繧呈欠螳壹@縺ェ縺蝣エ蜷医ッ縲√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l縲√く繝」繝ウ繧サ繝ォ縺輔l縺溘i蠕檎カ壹ョ繧「繧ッ繧キ繝ァ繝ウ縺ッ蜍穂ス懊@縺ェ縺縺薙→ + + + + + + + + + stop繧稚rue縺ァ謖螳壹@縺溷エ蜷医√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l縺溘i縲√く繝」繝ウ繧サ繝ォ縺輔l縺溘i蠕檎カ壹ョ繧「繧ッ繧キ繝ァ繝ウ縺悟虚菴懊@縺ェ縺縺薙→ + + + + + + + stop繧断alse縺ァ謖螳壹@縺溷エ蜷医√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l縲√く繝」繝ウ繧サ繝ォ縺輔l縺ヲ繧ゅ∝セ檎カ壹ョ繧「繧ッ繧キ繝ァ繝ウ縺悟虚菴懊☆繧九%縺ィ + + + + + + + + + + revert繧呈欠螳壹@縺ェ縺蝣エ蜷医√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l縲√く繝」繝ウ繧サ繝ォ縺輔l縺溘i蛟、縺梧綾繧九%縺ィ縲0K縺輔l縺溘i謌サ繧峨↑縺縺薙→縲 + + + + + + + revert縺ォtrue繧呈欠螳壹@縺溷エ蜷医√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l縲√く繝」繝ウ繧サ繝ォ縺輔l縺溘i蛟、縺梧綾繧九%縺ィ縲0K縺輔l縺溘i謌サ繧峨↑縺縺薙→縲 + + + + + + revert縺ォfalse繧呈欠螳壹@縺溷エ蜷医√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l縲√く繝」繝ウ繧サ繝ォ縺輔l縺ヲ繧ょ、縺梧綾繧峨↑縺縺薙→縲0K縺輔l縺ヲ繧よ綾繧峨↑縺縺薙→縲 + + + + + +
+ +
+ + + + + +
diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\350\255\246\345\221\212\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\350\255\246\345\221\212\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..c35b9bc --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\350\255\246\345\221\212\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,262 @@ +require(['jquery'], +function($){ + var _alert = window.alert + , $all_nodes = []; + + runTest( + 蠢鬆亥ア樊ァ縺ョ縺ソ縺ョ繝繧ケ繝 + , 譚。莉カ謖螳壹ョ繝繧ケ繝 + , 陦ィ遉コ譚。莉カ繧貞挨縺ョ隕∫エ繧呈擅莉カ蛻、螳壹↓縺吶k繝繧ケ繝 + , stop螻樊ァ縺ョ繝繧ケ繝 + , revert螻樊ァ縺ョ繝繧ケ繝 + , restore + ); + + $(function() { + $all_nodes = $('span.test-case, div.field'); + }); + + function 蠢鬆亥ア樊ァ縺ョ縺ソ縺ョ繝繧ケ繝() { + var testcase = test_for("require-only")[0] + , caseMsg = testcase.testcase + , $node = testcase.area.find('input') + , samples = ['nablarch' , 'ssd', 'data', '', ' '] //縺縺壹l縺ァ繧ょ虚菴懊☆繧九%縺ィ縲 + , firstval = $node.val() + , results = {}; + + equal($node.size(), 1, testcase.testcase + " 隕∫エ謨ー縺檎焚縺ェ繧(莠句燕譚。莉カ縺ョ遒コ隱)"); + doTest(samples.first(), 0); + + // setTimeout繧貞茜逕ィ縺吶k讖溯ス縺ォ蟇セ縺励※繝繧ケ繝医☆繧九◆繧√∝崎オキ蜻シ縺ウ蜃コ縺励〒繧キ繝シ繧ア繝ウ繧キ繝」繝ォ縺ォ蜃ヲ逅縺吶k縲 + function doTest(sample, i) { + results = mockAlert(); + $node.val(sample); + // 螟画峩繧、繝吶Φ繝医r繝医Μ繧ャ繝シ縺吶k縲 + doChange($node); + delay(function(){ + var testInfo = [' input is', sample].join(" "); + equal($node.val(), firstval, caseMsg + testInfo + " 蠕ゥ蜈縺ョ遒コ隱阪"); + equal(results.length, 1 , caseMsg + testInfo + " 蜻シ縺ウ蜃コ縺怜屓謨ー縺ョ遒コ隱阪"); + if (samples.length > i+1) { + doTest(samples.at(i+1), i+1); + } + }); + } + } + + function 譚。莉カ謖螳壹ョ繝繧ケ繝() { + var testcase = test_for("conditional")[0] + , caseMsg = testcase.testcase + , $node = testcase.area.find('input') + , init = $node.val() + , results + , testTable = { + input : ['nablarch', 'ssd', ' ', '', 'match'] + , callcount : [ 1 , 0 , 0 , 0 , 0] + , afterVal : [init , 'ssd', ' ', '', 'match'] + }; + + equal($node.size(), 1, testcase.testcase + " 隕∫エ謨ー縺檎焚縺ェ繧(莠句燕譚。莉カ縺ョ遒コ隱)"); + // alert縺悟他縺ー繧後k譚。莉カ繧定ィュ螳 + + doTest(); + function doTest(no) { + var caseNo = no || 0 + , input = testTable.input[caseNo] + , afterVal = testTable.afterVal[caseNo] + , count = testTable.callcount[caseNo] + , testInfo = ["input =[", input, "]"].join(" "); + $node.val(testTable.input[caseNo]); + results = mockAlert(); + doChange($node); + delay(function(){ + equal(results.length, count, caseMsg + testInfo + " [蜻シ縺ウ蜃コ縺怜屓謨ー縺ョ遒コ隱江"); + equal($node.val(), afterVal, caseMsg + testInfo + " [蠕ゥ蜈迥カ諷九ョ遒コ隱阪]"); + if (testTable.input.length > caseNo + 1) { + doTest(caseNo + 1); + } + }); + } + } + + function 陦ィ遉コ譚。莉カ繧貞挨縺ョ隕∫エ繧呈擅莉カ蛻、螳壹↓縺吶k繝繧ケ繝() { + var testcase = test_for('otherTarget')[0] + , caseMsg = testcase.testcase + , $trigger = testcase.area.find('input') + , $condition = $('input#target') + , firstval = $trigger.val() + , results; + + // 繝繧ケ繝医ョ莠句燕譚。莉カ縺ョ遒コ隱 + equal($trigger.size(), 1, caseMsg + " trigger縺ョ隕∫エ謨ー縺檎焚縺ェ繧九"); + equal($condition.size(), 1, caseMsg + " condition縺ョ隕∫エ謨ー縺檎焚縺ェ繧九"); + notEqual($condition.attr('id'), $trigger.attr('id'), "繝医Μ繧ャ繝シ縺ィ譚。莉カ縺ョ隕∫エ縺檎焚縺ェ繧九%縺ィ縲"); + + // 陦ィ遉コ縺輔l繧区擅莉カ縺ョ險ュ螳 + $condition.val(''); + + results = mockAlert(); + // case 1 ///////////////////// + delay(function(){ + doChange($condition); + equal(results.length, 0, caseMsg + " :譚。莉カ縺悟、画峩縺輔l縺ヲ繧ょ他縺ウ蜃コ縺輔l縺ェ縺縲"); + // case2 ///////////////////// + results = mockAlert(); + $trigger.val(firstval + ' modify'); + doChange($trigger); + delay(function(){ + equal(results.length, 1, caseMsg + " :繝医Μ繧ャ繝シ縺悟、画峩縺輔l繧後ー蜻シ縺ウ蜃コ縺輔l繧九"); + equal($trigger.val(), firstval, caseMsg + ' :蜻シ縺ウ蜃コ縺輔l縺溷エ蜷医ッtrigger縺梧綾繧'); + // case3 ///////////////////// + // 陦ィ遉コ縺輔l縺ェ縺譚。莉カ縺ョ險ュ螳 + $condition.val('nablarch'); + results = mockAlert(); + doChange($condition); + delay(function(){ + equal(results.length, 0, caseMsg + " :譚。莉カ縺悟、画峩縺輔l縺ヲ繧ょ他縺ウ蜃コ縺輔l縺ェ縺縲"); + + // case4 ///////////////////// + results = mockAlert(); + doChange($trigger); + delay(function(){ + equal(results.length, 0, caseMsg + " :繝医Μ繧ャ繝シ縺悟、画峩縺輔l縺ヲ繧よ擅莉カ縺御ク閾エ縺励↑縺代l縺ー蜻シ縺ウ蜃コ縺輔l縺ェ縺縲"); + // 謇馴嵯逕ィ縺ォ謌サ縺吶 + $condition.val(''); + }); + }); + }); + }); + } + + function stop螻樊ァ縺ョ繝繧ケ繝() { + ok(false, "閾ェ蜍輔ユ繧ケ繝医′螢翫l縺ヲ縺励∪縺縺ョ縺ァ謇馴嵯縺ァ縺ョ遒コ隱阪r縺励※縺上□縺輔>縲"); + return; + + var testcases = test_for('stop') + , default_case = testcases[0] + , true_case = testcases[1] + , false_case = testcases[2] + , testTable = [ [default_case, '邱丞漁', ["stop繧呈欠螳壹@縺ヲ縺縺ェ縺縺溘a縲√%縺ョ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l縺溷エ蜷医∝虚菴懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ッ陦ィ遉コ縺輔l縺ェ縺"]] + , [default_case, '邨檎炊', ["蜍穂ス懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ァ縺吶"]] + , [true_case , '邱丞漁', ["stop縺ォtrue繧呈欠螳壹@縺ヲ縺繧九◆繧√√%縺ョ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧後ー縲∝虚菴懃「コ隱阪Γ繝繧サ繝シ繧ク縺ッ陦ィ遉コ縺輔l縺ェ縺縲"]] + , [true_case , '邨檎炊', ["蜍穂ス懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ァ縺吶"]] + , [false_case , '邱丞漁', ["stop縺ォfalse繧呈欠螳壹@縺ヲ縺繧九◆繧√√%縺ョ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l縺ヲ繧ゅ∝ソ縺壼セ檎カ壹ョ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧", "蜍穂ス懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ァ縺吶"]] + , [false_case , '邨檎炊', ["蜍穂ス懃「コ隱咲畑縺ョ繝。繝繧サ繝シ繧ク縺ァ縺吶"]] + ]; + doTest(); + function doTest(no) { + var caseNo = no || 0 + , testDef = testTable[caseNo] + , testcase = testDef[0] + , setval = testDef[1] + , messages = testDef[2] + , $node = testcase.area.find('select') + , caseMsg = testcase.testcase + , results = mockAlert() + , callcount = messages.length; + + $node.val(setval); + doChange($node); + delay(function() { + equal(results.length, callcount, caseMsg + " [蜻シ縺ウ蜃コ縺怜屓謨ー縺ョ遒コ隱阪]"); + for (var i =0; callcount > i; i++) { + equal(results[i].param, messages[i], caseMsg + " [繝。繝繧サ繝シ繧ク縺ョ遒コ隱江"); + } + if (testTable.length > caseNo + 1) { + doTest(caseNo + 1); + } + }); + } + } + + function revert螻樊ァ縺ョ繝繧ケ繝() { + var testcases = test_for('revert') + , default_case = testcases[0] + , true_case = testcases[1] + , false_case = testcases[2] + , testTable = [ [default_case, 'nablarch', 'no_revert', ["revert縺後ョ繝輔か繝ォ繝医↑縺ョ縺ァ縲√ム繧、繧「繝ュ繧ー陦ィ遉コ蠕後↓繝繝シ繧ソ縺梧綾繧"], true] + , [default_case, 'sample1' , 'sample1' , [/* alert縺後↑縺代l縺ー繝繝シ繧ソ縺ッ螟画峩縺輔l繧九*/] , false] + , [true_case, 'nablarch', 'no_revert', ["revert縺荊rue縺ェ縺ョ縺ァ縲√ム繧、繧「繝ュ繧ー陦ィ遉コ蠕後↓繝繝シ繧ソ縺梧綾繧"] , true] + , [true_case, 'sample2' , 'sample2' , [/* alert縺後↑縺代l縺ー繝繝シ繧ソ縺ッ螟画峩縺輔l繧九*/] , false] + , [false_case, 'nablarch', 'nablarch' , ["revert縺掲alse縺ェ縺ョ縺ァ縲√ム繧、繧「繝ュ繧ー陦ィ遉コ蠕後↓繝繝シ繧ソ縺梧綾繧峨↑縺"], false] + , [false_case, 'sample3' , 'sample3' , [/* alert縺後↑縺代l縺ー繝繝シ繧ソ縺ッ螟画峩縺輔l繧九*/] , false] + ]; + doTest(); + function doTest(no) { + var caseNo = no || 0 + , testDef = testTable[caseNo] + , testcase = testDef[0] + , setval = testDef[1] + , expectval = testDef[2] + , messages = testDef[3] + , isReverted = testDef[4] + , $node = testcase.area.find('input') + , caseMsg = testcase.testcase + , results = mockAlert() + , callcount = messages.length + , revertEventCall = false; + $node.val(setval); + $node.one('nablarch_value_change', function(event) { + revertEventCall = true; + }); + doChange($node); + delay(function(){ + equal(results.length, callcount, caseMsg + " [蜻シ縺ウ蜃コ縺怜屓謨ー縺ョ遒コ隱阪]"); + for (var i =0; callcount > i; i++) { + equal(results[i].param, messages[i], caseMsg + " [繝。繝繧サ繝シ繧ク縺ョ遒コ隱江"); + } + equal(revertEventCall, isReverted, caseMsg + "revert繧、繝吶Φ繝医′蜻シ縺ー繧後◆縺九←縺縺") + equal($node.val(), expectval, caseMsg + " [蛟、縺ョ遒コ隱江"); + if (testTable.length > caseNo + 1) { + doTest(caseNo + 1); + } + }); + } + } + + /** + * window.alert繧偵ョ繝輔か繝ォ繝医↓謌サ縺吶 + */ + function restore() { + delay(function() {; + window.alert = _alert ? _alert : window.alert; + ok(true, 'restore done!'); + }, 100); + } + + function delay(fn, delayTime) { + var time = delayTime || 100; + QUnit.stop(); + setTimeout(function() { + fn(); + QUnit.start(); + }, time); + } + /** + * 繝繧ケ繝医r荳ュ譁ュ縺励※縺励∪縺window.alert繧偵Δ繝繧ッ縺ォ蟾ョ縺玲崛縺医∝他縺ウ蜃コ縺礼憾豕√r險倬鹸縺吶k縲 + */ + function mockAlert() { + var results = []; + window.alert = function(message) { + results.add({called : true, param : message}); + return false; + }; + return results; + } + + function test_for(caseid) { + var $cases = $all_nodes.filter('span.test-case.' + caseid); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e); + return { + testcase : $.trim($e.text()), + area : $($all_nodes[idx + 1]), + }; + }); + } + function doChange($node) { + $node.change(); + } +}); + diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\350\255\246\345\221\212\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\350\255\246\345\221\212\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..80a0637 --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\350\255\246\345\221\212\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,17 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\350\255\246\345\221\212\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\350\255\246\345\221\212\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..a9c4c86 --- /dev/null +++ "b/node_modules/nablarch-widget-event-dialog/ui_test/jsp/\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260/\350\255\246\345\221\212\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,163 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> + + +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 蠢鬆域擅莉カ縺ョ縺ソ縺ョ蝣エ蜷医√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + 譚。莉カ縺梧欠螳壹&繧後◆蝣エ蜷医∵擅莉カ縺ォ荳閾エ縺吶k蝣エ蜷医ョ縺ソ繝繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l繧九%縺ィ縲
(value = nablarch)
+ + + + + + + + 繝繧、繧「繝ュ繧ー陦ィ遉コ縺ョ譚。莉カ縺ョ蟇セ雎。繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溷ッセ雎。縺ョ迥カ諷九〒繝繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + stop繧呈欠螳壹@縺ェ縺蝣エ蜷医ッ縲√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l縺溘i縲∝セ檎カ壹ョ繧「繧ッ繧キ繝ァ繝ウ縺ッ蜍穂ス懊@縺ェ縺縺薙→ + + + + + + + + + stop繧稚rue縺ァ謖螳壹@縺溷エ蜷医√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l縺溘i縲∝セ檎カ壹ョ繧「繧ッ繧キ繝ァ繝ウ縺悟虚菴懊@縺ェ縺縺薙→ + + + + + + + stop繧断alse縺ァ謖螳壹@縺溷エ蜷医√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l縺ヲ繧ゅ∝セ檎カ壹ョ繧「繧ッ繧キ繝ァ繝ウ縺悟虚菴懊☆繧九%縺ィ + + + + + + + + + revert繧呈欠螳壹@縺ェ縺蝣エ蜷医√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l縺溘i蛟、縺梧綾繧九%縺ィ + + + + + + + revert縺ォtrue繧呈欠螳壹@縺溷エ蜷医√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l繧九→縲∝、縺梧綾繧九%縺ィ + + + + + + revert縺ォfalse繧呈欠螳壹@縺溷エ蜷医√ム繧、繧「繝ュ繧ー縺瑚。ィ遉コ縺輔l縺ヲ繧ゅ∝、縺梧綾繧峨↑縺縺薙→ + + + + + +
+
+ + + + + +
diff --git a/node_modules/nablarch-widget-event-listen/package.json b/node_modules/nablarch-widget-event-listen/package.json new file mode 100644 index 0000000..ee301b1 --- /dev/null +++ b/node_modules/nablarch-widget-event-listen/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-event-listen" +, "version": "1.0.1" +, "_from" : "nablarch-widget-event-listen@1.0.1" +, "dependencies": { + } +, "description": "繧、繝吶Φ繝医Μ繧ケ繝翫シ螳夂セゥ繧ヲ繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-event-listen/ui_public/WEB-INF/tags/widget/event/listen.tag b/node_modules/nablarch-widget-event-listen/ui_public/WEB-INF/tags/widget/event/listen.tag new file mode 100644 index 0000000..5391d2b --- /dev/null +++ b/node_modules/nablarch-widget-event-listen/ui_public/WEB-INF/tags/widget/event/listen.tag @@ -0,0 +1,23 @@ +<%-- + 隕ェ隕∫エ蜀縺ァ逋コ逕溘☆繧九う繝吶Φ繝医r逶」隕悶☆繧九う繝吶Φ繝医ワ繝ウ繝峨Λ繧貞ョ夂セゥ縺吶k縲 + @author Iwauo Tajima + @from 1.4 +--%> +<%@ tag pageEncoding="UTF-8" description="隕ェ隕∫エ蜀縺ァ逋コ逕溘☆繧九う繝吶Φ繝医r逶」隕悶☆繧九う繝吶Φ繝医ワ繝ウ繝峨Λ繧貞ョ夂セゥ縺吶k縲" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="context" description="逶」隕門ッセ雎。隕∫エ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ(逵∫払譎ゅッ隕ェ隕∫エ)" rtexprvalue="true" %> +<%@ attribute name="event" description="逶」隕門ッセ雎。隕∫エ荳翫ョ繧、繝吶Φ繝亥ョ夂セゥ蠑" required="true" rtexprvalue="true" %> + +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="title" description="繧、繝吶Φ繝医ョ蜷咲ァー"%> +<%@ attribute name="operation" description="逕サ髱「讖溯ス險ュ險域嶌縺ョ逕サ髱「繧、繝吶Φ繝医ョ逕サ髱「謫堺ス" %> +<%@ attribute name="comment" description="逕サ髱「讖溯ス險ュ險域嶌縺ョ逕サ髱「繧、繝吶Φ繝医ョ讎りヲ" %> + + diff --git a/node_modules/nablarch-widget-event-listen/ui_public/WEB-INF/tags/widget/event/listen_subwindow.tag b/node_modules/nablarch-widget-event-listen/ui_public/WEB-INF/tags/widget/event/listen_subwindow.tag new file mode 100644 index 0000000..914ee21 --- /dev/null +++ b/node_modules/nablarch-widget-event-listen/ui_public/WEB-INF/tags/widget/event/listen_subwindow.tag @@ -0,0 +1,28 @@ +<%-- + 莉悶ョ繧ヲ繧」繝ウ繝峨え荳翫〒逋コ逕溘☆繧九う繝吶Φ繝医r逶」隕悶☆繧九ワ繝ウ繝峨Λ繧貞ョ夂セゥ縺吶k縲 + @author Iwauo Tajima + @from 1.4 +--%> +<%@ tag pageEncoding="UTF-8" description="莉悶ョ繧ヲ繧」繝ウ繝峨え荳翫〒逋コ逕溘☆繧九う繝吶Φ繝医r逶」隕悶☆繧九ワ繝ウ繝峨Λ繧貞ョ夂セゥ縺吶k縲" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="windowName" description="逶」隕門ッセ雎。繧ヲ繧」繝ウ繝峨え蜷" rtexprvalue="true" %> +<%@ attribute name="openTrigger" description="逶」隕門ッセ雎。縺ィ縺ェ繧九え繧」繝ウ繝峨え繧帝幕縺縺溯ヲ∫エ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ" rtexprvalue="true" %> +<%@ attribute name="watchTarget" description="逶」隕門ッセ雎。隕∫エ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ(蠢鬆)" required="true" rtexprvalue="true" %> +<%@ attribute name="event" description="逶」隕門ッセ雎。隕∫エ荳翫ョ繧、繝吶Φ繝亥ョ夂セゥ" required="true" rtexprvalue="true" %> + +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="title" description="繧、繝吶Φ繝医ョ蜷咲ァー"%> +<%@ attribute name="operation" description="逕サ髱「讖溯ス險ュ險域嶌縺ョ逕サ髱「繧、繝吶Φ繝医ョ逕サ髱「謫堺ス" %> +<%@ attribute name="comment" description="逕サ髱「讖溯ス險ュ險域嶌縺ョ逕サ髱「繧、繝吶Φ繝医ョ讎りヲ" %> + + diff --git a/node_modules/nablarch-widget-event-listen/ui_public/js/nablarch/ui/event/Listener.js b/node_modules/nablarch-widget-event-listen/ui_public/js/nablarch/ui/event/Listener.js new file mode 100644 index 0000000..2d4d37a --- /dev/null +++ b/node_modules/nablarch-widget-event-listen/ui_public/js/nablarch/ui/event/Listener.js @@ -0,0 +1,168 @@ +define(['jquery', '../Widget', 'sugar'], +function($, Widget) { "use strict"; + /** + * 隕ェ隕∫エ蜀繧、繝吶Φ繝磯」謳コ讖溯ス + * ============================================= + * 隕ェ隕∫エ蜀縺ァ逋コ逕溘@縺滉ササ諢上ョ繧、繝吶Φ繝医r逶」隕悶☆繧九う繝吶Φ繝医Μ繧ケ繝翫シ縲 + * + * @class nablarch.ui.event.Listener + * @author Iwauo Tajima + * @since 1.4 + */ + Listener.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縲 + * @constructor + * @param {HTMLElement} element 縺薙ョ繧ヲ繧」繧ク繧ァ繝繝医′莉倬囂縺吶kDOM繝弱シ繝峨 + * @param {Object} opts 縺薙ョ繧ヲ繧」繧ク繧ァ繝繝医↓險ュ螳壹☆繧九励Ο繝代ユ繧」縲 + * **content:** 逶」隕門ッセ雎。隕∫エ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ(逵∫払譎ゅッ縺薙ョ繧ヲ繧」繧ク繧ァ繝繝医′莉倬囂縺吶kDOM繝弱シ繝峨ョ隕ェ隕∫エ) + * **event:** 逶」隕門ッセ雎。隕∫エ荳翫ョ繧、繝吶Φ繝亥ョ夂セゥ蠑 + */ + constructor: Listener + /** + * 逶」隕門ッセ雎。繝弱シ繝峨r謖螳壹☆繧九そ繝ャ繧ッ繧ソ蠑上 + * 逵∫払譎ゅッ縺薙ョ繧、繝吶Φ繝医ョ隕ェ繝弱シ繝($context)縺檎屮隕門ッセ雎。縺ィ縺ェ繧九 + * @property target + * @type String + */ + , watchTarget: null + /** + * 逶」隕門ッセ雎。繝弱シ繝我ク翫ョ繧、繝吶Φ繝医r螳夂セゥ縺吶k譁蟄怜励 + * @property event + * @type String + */ + , event: null + /** + * 逶」隕門ッセ雎。繧、繝吶Φ繝医′逋コ轣ォ縺励◆蝣エ蜷医↓螳溯。後☆繧句ヲ逅縲 + * @property actions + * @type Array + */ + , actions: null + /** + * 縺薙ョ繧、繝吶Φ繝亥ョ夂セゥ縺ョ隕ェ繝弱シ繝峨 + * @property $context + * @type jQuery + */ + , $context: null + /** + * 逶」隕門ッセ雎。繧、繝吶Φ繝医′逋コ轣ォ縺励◆蝣エ蜷医↓螳溯。後☆繧句ヲ逅繧堤匳骭イ縺吶k縲 + * @method registerAction + */ + , registerAction: Listener_registerAction + /** + * 縺薙ョ繝上Φ繝峨Λ縺ォ逋サ骭イ縺励◆蜃ヲ逅繧貞ョ溯。後☆繧九 + * @method fire + */ + , fire: Listener_fire + /** + * 縺薙ョ繝ェ繧ケ繝翫シ縺悟晄悄蛹悶&繧後◆髫帙↓螳溯。後&繧後 + * 逋サ骭イ縺輔l縺溷推繧「繧ッ繧キ繝ァ繝ウ縺景nit繝。繧ス繝繝峨r螳溯」縺励※縺繧後ー + * 縺昴l繧貞他縺ウ蜃コ縺吶 + * 縺薙ョ髫帙(nit繝。繧ス繝繝峨ョ隨ャ荳蠑墓焚縺ィ縺励※縺薙ョ繝ェ繧ケ繝翫シ繧ェ繝悶ず繧ァ繧ッ繝郁ェ菴薙r貂。縺吶 + * @method init + */ + , init: Listener_init + /** + * 蜊ウ譎ゅ〒螳溯。後&繧後k蛻晄悄繧、繝吶Φ繝医r逋サ骭イ縺吶k縲 + * @property initEvents + * @type Array + */ + , initEvents: [] + }); + + /** + * UI驛ィ蜩√ョ隴伜挨蜷阪 + * @property widgetType + * @type String + * @static + * @final + */ + Listener.widgetType = 'nablarch_event_Listener'; + + /** + * 繝槭シ繧ォCSS縺ョ繧サ繝ャ繧ッ繧ソ + * @property selector + * @type String + * @static + * @final + */ + Listener.selector = '.nablarch_event_Listener:not(.-type)'; + + /** + * 縺薙ョ繝ェ繧ケ繝翫シ縺檎匱轣ォ縺励◆髫帙↓蜻シ縺ウ蜃コ縺吶い繧ッ繧キ繝ァ繝ウ縲 + * @property actionTypeOf + * @type Object + * @static + * @final + */ + Listener.actionTypeOf = Object.create(null); + + /** + * 縺薙ョ繝ェ繧ケ繝翫シ縺檎匱轣ォ縺励◆髫帙↓蜻シ縺ウ蜃コ縺吶い繧ッ繧キ繝ァ繝ウ繧堤匳骭イ縺吶k縲 + * @param type String 繧「繧ッ繧キ繝ァ繝ウ縺ョ隴伜挨蟄 + * @param constructor 繧「繧ッ繧キ繝ァ繝ウ縺ョ繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * @static + */ + Listener.register = function(type, constructor) { + Listener.actionTypeOf[type] = constructor; + }; + + // 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ + function Listener(element, opts) { + this.constructor = Listener; + Object.merge(this, opts); + this.$context = $(element).parent(); + this.$watchTarget = !!this.watchTarget + ? this.$context.find(this.watchTarget) + : this.$context; + Widget.call(this, element); + doBindEvent(this); + this.registerAction(); + this.init(); + } + + function doBindEvent(listener) { + listener.event.split('|').each(function(event) { + listener.bindEvent('$watchTarget ' + event, 'fire'); + }); + } + + // 縺薙ョ繝ェ繧ケ繝翫↓逋サ骭イ縺輔l縺ヲ縺繧九い繧ッ繧キ繝ァ繝ウ繧帝谺。螳溯。後☆繧九 + function Listener_fire(event, target) { + var self = this; + if (target) { + event.delegateTarget = target; + } + this.actions.each(function(action, i) { + return action.fire.apply(action, [self, event, self.actions.from(i+1)]); + }); + return this; + } + + // 繧「繧ッ繧キ繝ァ繝ウ繧堤匳骭イ縺吶k縲 + function Listener_registerAction() { + var actions = this.actions = []; + this.$node + .find('.nablarch_event_Action') + .each(function() { + var opts = $(this).widgetOption('nablarch_event_Action') + , actionType = Listener.actionTypeOf[opts.type]; + actions.push(new actionType(opts)); + }); + return this; + } + + // 繝ェ繧ケ繝翫シ蛻晄悄蛹門セ後↓蜷繧「繧ッ繧キ繝ァ繝ウ繧貞晄悄蛹悶☆繧九 + function Listener_init() { + var $context = this.$context + , listener = this; + this.actions.each(function(action){ + if(Object.isFunction(action.init)) { + action.init(listener, null); + } + }); + } + + Widget.register(Listener); + return Listener; +}); diff --git a/node_modules/nablarch-widget-event-listen/ui_public/js/nablarch/ui/event/SubWindowListener.js b/node_modules/nablarch-widget-event-listen/ui_public/js/nablarch/ui/event/SubWindowListener.js new file mode 100644 index 0000000..b36003f --- /dev/null +++ b/node_modules/nablarch-widget-event-listen/ui_public/js/nablarch/ui/event/SubWindowListener.js @@ -0,0 +1,186 @@ +define(['jquery', './Listener', '../Widget', 'sugar'], +function($, Listener, Widget) { "use strict"; + /** + * 繧オ繝悶え繧」繝ウ繝峨え蜀繧、繝吶Φ繝磯」謳コ讖溯ス + * ============================================= + * 繧オ繝悶え繧」繝ウ繝峨え蜀縺ァ逋コ逕溘@縺滉ササ諢上ョ繧、繝吶Φ繝医r逶」隕悶☆繧九う繝吶Φ繝医Μ繧ケ繝翫シ縲 + * + * @class nablarch.ui.event.SubWindowListener + * + * @author Iwauo Tajima + * @since 1.4 + */ + SubWindowListener.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縲 + * @constructor + * @param {HTMLElement} element 縺薙ョ繧ヲ繧」繧ク繧ァ繝繝医′莉倬囂縺吶kDOM繝弱シ繝峨 + * @param {Object} opts 縺薙ョ繧ヲ繧」繧ク繧ァ繝繝医↓險ュ螳壹☆繧九励Ο繝代ユ繧」縲 + * **windowName:** 逶」隕門ッセ雎。繧ヲ繧」繝ウ繝峨え蜷 + * **openTrigger:** 逶」隕門ッセ雎。縺ィ縺ェ繧九え繧」繝ウ繝峨え繧帝幕縺縺溯ヲ∫エ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ + * **watchTarget:** 逶」隕門ッセ雎。隕∫エ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ(蠢鬆) + * **event:** 逶」隕門ッセ雎。隕∫エ荳翫ョ繧、繝吶Φ繝亥ョ夂セゥ + */ + constructor: SubWindowListener + /** + * 逶」隕門ッセ雎。繝弱シ繝峨r謖螳壹☆繧九そ繝ャ繧ッ繧ソ蠑上 + * (蠢鬆域欠螳) + * @property watchTarget + * @type String + */ + , watchTarget: null + /** + * 逶」隕門ッセ雎。繝弱シ繝我ク翫ョ繧、繝吶Φ繝医r螳夂セゥ縺吶k譁蟄怜励 + * @property event + * @type String + */ + , event: null + /** + * 逶」隕門ッセ雎。縺ィ縺ェ繧九え繧」繝ウ繝峨え繧帝幕縺縺溯ヲ∫エ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ蠑上 + * 縺薙ョ螻樊ァ繧定ィュ螳壹☆繧九%縺ィ縺ァ縲∝ス楢ゥイ隕∫エ縺九i髢九°繧後◆繧ヲ繧」繝ウ繝峨え縺ョ縺ソ縺檎屮隕門ッセ雎。縺ィ縺ェ繧九 + * @property openTrigger + * @type String + */ + , openTrigger: null + /** + * 蟇セ雎。縺ィ縺吶k繧オ繝悶え繧」繝ウ繝峨え蜷阪 + * 逵∫払譎ゅッ 'subwindow' + * @property windowName + * @type String + */ + , windowName: null + /** + * 逶」隕門ッセ雎。繧、繝吶Φ繝医′逋コ轣ォ縺励◆蝣エ蜷医↓螳溯。後☆繧句ヲ逅縲 + * @property actions + * @type Array + */ + , actions: null + /** + * 縺薙ョ繧、繝吶Φ繝亥ョ夂セゥ縺瑚ィ倩ソー縺輔l縺ヲ縺繧九ヮ繝シ繝峨 + * @property $context + * @type jQuery + */ + , $context: null + /** + * 逶」隕門ッセ雎。繧、繝吶Φ繝医′逋コ轣ォ縺励◆蝣エ蜷医↓螳溯。後☆繧句ヲ逅繧堤匳骭イ縺吶k縲 + * @method registerAction + */ + , registerAction: SubWindowListener_registerAction + /** + * 縺薙ョ繝上Φ繝峨Λ縺ォ逋サ骭イ縺励◆蜃ヲ逅繧貞ョ溯。後☆繧九 + * @method fire + */ + , bind: SubWindowListener_bind + }); + + /** + * UI驛ィ蜩√ョ隴伜挨蜷阪 + * @property widgetType + * @type String + * @static + * @final + */ + SubWindowListener.widgetType = 'nablarch_event_SubWindowListener'; + + /** + * 繧サ繝ャ繧ッ繧ソ + * @property selector + * @type String + * @static + * @final + */ + SubWindowListener.selector = '.nablarch_event_Listener.SubWindow'; + + /** + * 縺薙ョ逕サ髱「縺九i髢九°繧後◆繧オ繝悶え繧」繝ウ繝峨え繧堤ョ。逅縺吶k縲 + * @method manageSubWindows + * @static + */ + SubWindowListener.manageSubWindows = SubWindowListener_manageSubWindows; + var managedWindows = Object.create(null); + + /** + * 繧オ繝悶え繧」繝ウ繝峨え荳翫↓繧、繝吶Φ繝医Μ繧ケ繝翫シ繧堤匳骭イ縺吶k縲 + * @method bindToSubWindow + * @global + */ + window.nablarch_bindToSubWindow = SubWindowListener_bindToSubWindow; + + $(function() { + try { + var opener = window.opener; + if (opener) { + opener.nablarch_bindToSubWindow(window); + } + $(document).on('afterSubmit', SubWindowListener.manageSubWindows); + } catch(e) { + /* nop (may be security error) */ + } + }); + + function SubWindowListener_bindToSubWindow(subwindow) { + var $widgets = $(SubWindowListener.selector).widgets(SubWindowListener) + , name = subwindow.name + , $openTrigger = managedWindows[name].$openTrigger; + $widgets.each(function() { this.bind(subwindow, $openTrigger); }); + } + + function SubWindowListener_manageSubWindows(event) { + var $openTrigger = $(event.target); + Object.each(nablarch_opened_windows, function(name, w) { + if (managedWindows[name] && (w === managedWindows[name])) { + return; + } + managedWindows[name] = {window: w, $openTrigger: $openTrigger}; + }); + } + + // 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ + function SubWindowListener(element, opts) { + this.constructor = SubWindowListener; + Object.merge(this, opts); + this.windowName = opts.windowName || 'subwindow'; + this.actions = []; + Widget.call(this, element); + this.$context = $(element).parent(); + this.registerAction(); + } + + // 繧、繝吶Φ繝育匱轣ォ譎ゅョ蜃ヲ逅 + function SubWindowListener_bind(subwindow, $openTrigger) { + if (this.openTrigger && !$openTrigger.is(this.openTrigger)) { + return this; // 繧オ繝悶え繧」繝ウ繝峨え縺檎屮隕門ッセ雎。縺ョ繝懊ち繝ウ縺九i髢九°繧後◆繧ゅョ縺ァ縺ッ縺ェ縺蝣エ蜷 + } + var event = this.event.split(/\s+/) + , context = event[0] + , eventName = event[1] + , actions = this.actions + , $context = this.$context + , listener = this; + + $(subwindow.document) + .find(this.watchTarget) + .on(eventName, context, function(event) { + actions.each(function(action) { + action.fire(listener, event); + }); + }); + return this; + } + + // 繧「繧ッ繧キ繝ァ繝ウ繧堤匳骭イ縺吶k縲 + function SubWindowListener_registerAction() { + var actions = this.actions = []; + this.$node + .find('.nablarch_event_Action') + .each(function() { + var opts = $(this).widgetOption('nablarch_event_Action') + , actionType = Listener.actionTypeOf[opts.type]; + actions.push(new actionType(opts)); + }); + return this; + } + + Widget.register(SubWindowListener); + return SubWindowListener; +}); diff --git "a/node_modules/nablarch-widget-event-listen/ui_test/jsp/\344\273\226\346\251\237\350\203\275\343\201\250\344\275\265\347\224\250/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-event-listen/ui_test/jsp/\344\273\226\346\251\237\350\203\275\343\201\250\344\275\265\347\224\250/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..567f7b4 --- /dev/null +++ "b/node_modules/nablarch-widget-event-listen/ui_test/jsp/\344\273\226\346\251\237\350\203\275\343\201\250\344\275\265\347\224\250/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,121 @@ +"use strict"; + var duration = 200; + runTest( + 繧ォ繝ャ繝ウ繝繝シ縺ョ譌・莉倥r螟画峩縺励◆蝣エ蜷医↓螟画峩繧、繝吶Φ繝医′逋コ逕溘☆繧九%縺ィ + , 蜈・蜉帙&繧後◆譌・莉倥→蜷後§譌・莉倥r驕ク謚槭@縺溷エ蜷医ッ螟画峩繧、繝吶Φ繝医′逋コ逕溘@縺ェ縺縺薙→ + , 蜈・蜉帛、縺御ク肴ュ」縺ェ蝣エ蜷医ョ繧ア繝シ繧ケ + , 繝輔か繝シ繝槭ャ繝医′逋コ逕溘☆繧句エ蜷医ョ繧ア繝シ繧ケ + ); + + function 繧ォ繝ャ繝ウ繝繝シ縺ョ譌・莉倥r螟画峩縺励◆蝣エ蜷医↓螟画峩繧、繝吶Φ繝医′逋コ逕溘☆繧九%縺ィ() { + var $to = $("input#to") + , $input = $("input#calendar") + , $calendar = $("div.calendar") + , $button = $('button.nablarch_DatePicker') + , called = false + //event繧貞ョ夂セゥ縺励※縺翫°縺ェ縺縺ィ繝繧ケ繝医さ繝シ繝峨〒繧ィ繝ゥ繝シ縺檎匱逕溘@縲∝ヲ逅縺悟●豁「縺励※縺励∪縺縺ョ縺ァ縲√い繧オ繝シ繝医お繝ゥ繝シ縺ォ縺ェ繧九h縺縺ォ縺吶k縲 + , event = {currentTarget:{}}; + + // 縺ィ繧ゅ↓蛻晄悄蛹 + $to.val(""); + $input.val("2012/01/01"); + $input.on("change", function(e) { + called = true; + event = e; + }); + $button.click(); + QUnit.stop(); + + setTimeout(function() { + ok($calendar.is(":visible"), "繝懊ち繝ウ繧偵け繝ェ繝繧ッ縺吶k縺ィ繧ォ繝ャ繝ウ繝繝シ縺碁幕縺"); + $calendar.find("td.thisMonth:contains('10')").click(); //10譌・繧偵け繝ェ繝繧ッ + + setTimeout(function(){ + equal($input.val(), "2012/01/10", "驕ク謚槭@縺滓律莉倥′蜈・蜉帙&繧後k"); + equal(event.currentTarget.id, "calendar", "蜈・蜉帙ヵ繧」繝シ繝ォ繝峨′繧、繝吶Φ繝育匱轣ォ縺ョ繝医Μ繧ャ繝シ"); + equal($to.val(), "2012/01/10", "驕ク謚槭@縺滓律莉倥′蜿肴丐縺輔l繧"); + ok(called, "change繧、繝吶Φ繝医↓逋サ骭イ縺励◆繝上Φ繝峨Λ縺悟他縺ウ蜃コ縺輔l繧九"); + QUnit.start(); + }, duration); + }, duration); + } + + function 蜈・蜉帙&繧後◆譌・莉倥→蜷後§譌・莉倥r驕ク謚槭@縺溷エ蜷医ッ螟画峩繧、繝吶Φ繝医′逋コ逕溘@縺ェ縺縺薙→() { + var $to = $("input#to") + , $input = $("input#calendar") + , $calendar = $("div.calendar") + , $button = $('button.nablarch_DatePicker') + , called = false; + // 縺ィ繧ゅ↓蛻晄悄蛹 + $to.val(""); + $input.val("2012/01/10"); + $input.on("change", function() { + called = true; + }); + $button.click(); + QUnit.stop(); + setTimeout(function() { + ok($calendar.is(":visible"), "繝懊ち繝ウ繧偵け繝ェ繝繧ッ縺吶k縺ィ繧ォ繝ャ繝ウ繝繝シ縺碁幕縺"); + $calendar.find("td.thisMonth:contains('10')").click(); //蜈・蜉帛、縺ィ蜷後§譌・繧偵け繝ェ繝繧ッ + + setTimeout(function(){ + equal($input.val(), "2012/01/10", "驕ク謚槫燕縺ィ蜷後§譌・莉"); + equal($to.val(), "", "change繧、繝吶Φ繝医′逋コ逕溘@縺ェ縺縺ョ縺ァ蜿肴丐縺輔l縺ェ縺縲"); + ok(!called, "change繧、繝吶Φ繝医↓逋サ骭イ縺励◆繝上Φ繝峨Λ縺悟他縺ウ蜃コ縺輔l縺ェ縺縲"); + QUnit.start(); + }, duration); + }, duration); + } + + function 蜈・蜉帛、縺御ク肴ュ」縺ェ蝣エ蜷医ョ繧ア繝シ繧ケ() { + var $to = $("input#to") + , $input = $("input#calendar") + , $button = $('button.nablarch_DatePicker') + , called = false; + + $to.val("2011/1/1"); + $input.val("illegalDate"); + $input.on("change", function() { + called=true; + }); + $button.click(); + QUnit.stop(); + + setTimeout(function() { + // calendar莉・螟悶ョ隕∫エ繧偵け繝ェ繝繧ッ縺励※繧ォ繝ャ繝ウ繝繝シ繧帝哩縺倥k縲 + $button.click(); + setTimeout(function(){ + equal($input.val(), "", "荳肴ュ」縺ェ蛟、縺ョ蝣エ蜷医ッ遨コ譁蟄励↓縺ェ繧九"); + ok(called, "蛟、縺悟、画峩縺輔l縺溘◆繧√…hange繧、繝吶Φ繝医′逋コ轣ォ"); + equal($to.val(), "", "遨コ譁蟄励′蜿肴丐縺輔l繧九"); + QUnit.start(); + }, duration); + }, duration); + } + + function 繝輔か繝シ繝槭ャ繝医′逋コ逕溘☆繧句エ蜷医ョ繧ア繝シ繧ケ() { + var $to = $("input#to") + , $input = $("input#calendar") + , $button = $('button.nablarch_DatePicker') + , called = false; + + $to.val("20141010"); + $input.val("20141010"); + $input.on("change", function() { + called=true; + }); + $button.click(); + QUnit.stop(); + + setTimeout(function() { + // calendar莉・螟悶ョ隕∫エ繧偵け繝ェ繝繧ッ縺励※繧ォ繝ャ繝ウ繝繝シ繧帝哩縺倥k縲 + $button.click(); + setTimeout(function(){ + equal($input.val(), "2014/10/10", "yyyy/MM/DD縺ォ繝輔か繝シ繝槭ャ繝医&繧後k縲"); + ok(called, "蛟、縺悟、画峩縺輔l縺溘◆繧√…hange繧、繝吶Φ繝医′逋コ轣ォ"); + equal($to.val(), "2014/10/10", "繝輔か繝シ繝槭ャ繝亥セ後ョ蛟、縺悟・繧九"); + QUnit.start(); + }, duration); + }, duration); + } + diff --git "a/node_modules/nablarch-widget-event-listen/ui_test/jsp/\344\273\226\346\251\237\350\203\275\343\201\250\344\275\265\347\224\250/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-event-listen/ui_test/jsp/\344\273\226\346\251\237\350\203\275\343\201\250\344\275\265\347\224\250/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..03fbed5 --- /dev/null +++ "b/node_modules/nablarch-widget-event-listen/ui_test/jsp/\344\273\226\346\251\237\350\203\275\343\201\250\344\275\265\347\224\250/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,15 @@ + + +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-listen/ui_test/jsp/\344\273\226\346\251\237\350\203\275\343\201\250\344\275\265\347\224\250/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-event-listen/ui_test/jsp/\344\273\226\346\251\237\350\203\275\343\201\250\344\275\265\347\224\250/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..a25e7d7 --- /dev/null +++ "b/node_modules/nablarch-widget-event-listen/ui_test/jsp/\344\273\226\346\251\237\350\203\275\343\201\250\344\275\265\347\224\250/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,39 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-event-listen/ui_test/jsp/\344\273\226\346\251\237\350\203\275\343\201\250\344\275\265\347\224\250/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-event-listen/ui_test/jsp/\344\273\226\346\251\237\350\203\275\343\201\250\344\275\265\347\224\250/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..5e4c691 --- /dev/null +++ "b/node_modules/nablarch-widget-event-listen/ui_test/jsp/\344\273\226\346\251\237\350\203\275\343\201\250\344\275\265\347\224\250/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" @@ -0,0 +1,13 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> + +<% +%> + \ No newline at end of file diff --git a/node_modules/nablarch-widget-event-send_request/package.json b/node_modules/nablarch-widget-event-send_request/package.json new file mode 100644 index 0000000..e973198 --- /dev/null +++ b/node_modules/nablarch-widget-event-send_request/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-event-send_request" +, "version": "1.0.0" +, "_from" : "nablarch-widget-event-send_request@1.0.0" +, "dependencies": { + } +, "description": "Ajax繝ェ繧ッ繧ィ繧ケ繝磯∽ソ。繧ヲ繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-event-send_request/ui_public/WEB-INF/tags/widget/event/send_request.tag b/node_modules/nablarch-widget-event-send_request/ui_public/WEB-INF/tags/widget/event/send_request.tag new file mode 100644 index 0000000..024796c --- /dev/null +++ b/node_modules/nablarch-widget-event-send_request/ui_public/WEB-INF/tags/widget/event/send_request.tag @@ -0,0 +1,30 @@ +<%-- + 繧、繝吶Φ繝育匱逕滓凾縺ォ縲々MLHttpRequest繧ェ繝悶ず繧ァ繧ッ繝医↓繧医k繝ェ繧ッ繧ィ繧ケ繝医r騾∽ソ。縺吶k縲 + @author Iwauo Tajima + @from 1.4 +--%> +<%@ tag pageEncoding="UTF-8" description="繧、繝吶Φ繝育匱逕滓凾縺ォ縲∵欠螳壹@縺溯ヲ∫エ蜀縺ョ譁蟄怜励b縺励¥縺ッ繝輔か繝シ繝蜈・蜉帛、繧定ィュ螳壹☆繧九" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="蜃ヲ逅蜷咲ァー" rtexprvalue="true" %> +<%@ attribute name="name" description="繧オ繝悶Α繝繝亥錐" rtexprvalue="true" %> +<%@ attribute name="uri" description="騾∽ソ。蜈URI(蠢鬆)" rtexprvalue="true" required="true" %> +<%@ attribute name="target" description="蜿門セ苓ヲ∫エ(蠢鬆)" rtexprvalue="true" required="true" %> +<%@ attribute name="condition" description="繝ェ繧ッ繧ィ繧ケ繝医r騾∽ソ。縺吶k譚。莉カ縲ら怐逡・譎ゅッ蟶ク縺ォ騾∽ソ。縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="paramNameAlias" description="繝ェ繧ッ繧ィ繧ケ繝磯∽ソ。譎ゅ↓繝代Λ繝。繝シ繧ソ蜷阪ョ譖ク縺肴鋤縺医r陦後≧縲" rtexprvalue="true" %> + + diff --git a/node_modules/nablarch-widget-event-send_request/ui_public/js/nablarch/ui/event/AjaxAction.js b/node_modules/nablarch-widget-event-send_request/ui_public/js/nablarch/ui/event/AjaxAction.js new file mode 100644 index 0000000..309a320 --- /dev/null +++ b/node_modules/nablarch-widget-event-send_request/ui_public/js/nablarch/ui/event/AjaxAction.js @@ -0,0 +1,138 @@ +define(['jquery', './Listener', 'sugar'], +function($, Listener) { "use strict"; + /** + * Ajax繝ェ繧ッ繧ィ繧ケ繝磯∽ソ。繧「繧ッ繧キ繝ァ繝ウ + * ============================================= + * Ajax繝ェ繧ッ繧ィ繧ケ繝医r騾∽ソ。縺吶k繧、繝吶Φ繝医い繧ッ繧キ繝ァ繝ウ縲 + * + * Nablarch譛ャ菴薙ョ讖滓ァ(繧ヲ繧」繝ウ繝峨え繧ケ繧ウ繝シ繝/Nablarch 繧オ繝悶Α繝繝育ュ) + * 縺ィ騾」蜍輔@縲 繧剃スソ逕ィ縺励◆蝣エ蜷医→蜷後§POST繝ェ繧ッ繧ィ繧ケ繝医r + * 騾∽ソ。縺吶k縺薙→縺後〒縺阪k縲 + * 縺セ縺溘 繧堤畑縺縺溘Μ繧ッ繧ィ繧ケ繝医ヱ繝ゥ繝。繝シ繧ソ縺ョ莉倅ク弱b蜿ッ閭ス縺ィ縺ェ縺」縺ヲ縺繧九 + * + * @class nablarch.ui.event.AjaxAction + * @author Iwauo Tajima + * @since 1.4 + */ + AjaxAction.prototype = { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縲 + * @constructor + * @param {Object} opts 縺薙ョ繧「繧ッ繧キ繝ァ繝ウ縺ォ險ュ螳壹☆繧九励Ο繝代ユ繧」縲 + * **name:** 繧オ繝悶Α繝繝亥錐(蠢鬆域欠螳) + * **uri:** 騾∽ソ。蟇セ雎。URI(蠢鬆域欠螳) + * **target:** 繝ャ繧ケ繝昴Φ繧ケ縺輔l縺溘壹シ繧ク蜀縺ァ蜿門セ怜ッセ雎。縺ィ縺吶k繝弱シ繝峨r謖螳壹☆繧九そ繝ャ繧ッ繧ソ蠑上 + * **condition:** 繝ェ繧ッ繧ィ繧ケ繝磯∽ソ。繧貞ョ溯。後☆繧矩圀縺ォ貅縺溘☆縺ケ縺肴擅莉カ繧定。ィ縺吶そ繝ャ繧ッ繧ソ蠑上 + * **paramNameAlias:** 繝ェ繧ッ繧ィ繧ケ繝医r騾∽ソ。縺吶k髫帙↓縲√Μ繧ッ繧ィ繧ケ繝医ヱ繝ゥ繝。繝シ繧ソ縺ョ鄂ョ謠帙r陦後≧繝ォ繝シ繝ォ繧貞ョ夂セゥ縺吶k縲 + * 鄂ョ謠帙Ν繝シ繝ォ縺ョ譖ク蠑上ッ莉・荳九ョ縺ィ縺翫j縲 + * + * 縲千スョ謠帛ッセ雎。譁蟄怜1縲/縲千スョ謠帛セ梧枚蟄怜1縲掃縲千スョ謠帛ッセ雎。譁蟄怜2縲/縲千スョ謠帛セ梧枚蟄怜2縲掃 .. + */ + constructor: AjaxAction + /** + * 繧オ繝悶Α繝繝亥錐(蠢鬆域欠螳) + * @property name + * @type String + */ + , name: null + /** + * 讀懃エ「蟇セ雎。URI(蠢鬆域欠螳) + * @property uri + * @type String + */ + , uri: null + /** + * 繝ャ繧ケ繝昴Φ繧ケ縺輔l縺溘壹シ繧ク蜀縺ァ蜿門セ怜ッセ雎。縺ィ縺吶k繝弱シ繝峨r謖螳壹☆繧九そ繝ャ繧ッ繧ソ蠑上 + */ + , target: null + /** + * 繝ェ繧ッ繧ィ繧ケ繝磯∽ソ。繧貞ョ溯。後☆繧矩圀縺ォ貅縺溘☆縺ケ縺肴擅莉カ繧定。ィ縺吶そ繝ャ繧ッ繧ソ蠑上 + * @property condtion + * @type String + */ + , condition: null + /** + * 繝ェ繧ッ繧ィ繧ケ繝医r騾∽ソ。縺吶k髫帙↓縲√Μ繧ッ繧ィ繧ケ繝医ヱ繝ゥ繝。繝シ繧ソ縺ョ鄂ョ謠帙r陦後≧繝ォ繝シ繝ォ繧貞ョ夂セゥ縺吶k縲 + * 鄂ョ謠帙Ν繝シ繝ォ縺ョ譖ク蠑上ッ莉・荳九ョ縺ィ縺翫j縲 + * + * 縲千スョ謠帛ッセ雎。譁蟄怜1縲/縲千スョ謠帛セ梧枚蟄怜1縲掃縲千スョ謠帛ッセ雎。譁蟄怜2縲/縲千スョ謠帛セ梧枚蟄怜2縲掃 .. + * + * 蜈ア騾夂判髱「縺ク縺ョ驕キ遘サ繧定。後≧蝣エ蜷医↓縲√え繧」繝ウ繝峨え繝励Ξ繝輔ぅ繝繧ッ繧ケ縺ョ鄂ョ縺肴鋤縺医r陦後≧蝣エ蜷医↑縺ゥ + * 縺ォ菴ソ逕ィ縺吶k縲 + * + * @property paramNameAlias + * @type String + */ + , paramNameAlias: null + /** + * 縺薙ョ繧「繧ッ繧キ繝ァ繝ウ縺後Μ繧ケ繝翫°繧峨さ繝シ繝ォ繝舌ャ繧ッ縺輔l縺溷エ蜷医↓螳溯。後☆繧句ヲ逅縲 + * 繝励Ο繝代ユ繧」縺ョ險ュ螳壼螳ケ縺ォ蠕薙▲縺ヲ縲々HR繝ェ繧ッ繧ィ繧ケ繝医r騾∽ソ。縺吶k縲 + * @method fire + * @param {nablarch.ui.event.Listener} 縺薙ョ繧「繧ッ繧キ繝ァ繝ウ繧貞他縺ウ蜃コ縺励◆繝ェ繧ケ繝 + * @param {jQuery.Event} 繝ェ繧ケ繝翫′謐墓拷縺励◆繧、繝吶Φ繝医が繝悶ず繧ァ繧ッ繝 + */ + , fire: AjaxAction_sendRequest + /** + * 蛻晄悄蛹門ヲ逅蠕後↓繝ェ繧ケ繝翫°繧峨さ繝シ繝ォ繝舌ャ繧ッ縺輔l縺溷エ蜷医↓螳溯。後☆繧句ヲ逅縲 + * fire繧ウ繝シ繝ォ繝舌ャ繧ッ縺ィ蜷檎ュ峨ョXHR繝ェ繧ッ繧ィ繧ケ繝医r騾∽ソ。縺吶k縲 + * @method fire + * @param {nablarch.ui.event.Listener} 縺薙ョ繧「繧ッ繧キ繝ァ繝ウ繧貞他縺ウ蜃コ縺励◆繝ェ繧ケ繝 + * @param {jQuery.Event} 繝ェ繧ケ繝翫′謐墓拷縺励◆繧、繝吶Φ繝医が繝悶ず繧ァ繧ッ繝 + */ + , init: AjaxAction_sendRequest + }; + + function AjaxAction(opts) { + this.constructor = AjaxAction; + Object.merge(this, opts); + // IE8,9 XHR.open bug if url has double byte. + this.uri = this.uri.escapeURL(); + } + + function AjaxAction_sendRequest(listener, event) { + if (this.condition && !listener.$watchTarget.find(this.condition).length) { + return; + } + var target = this.target + , $form = listener.$context.closest('form') + , $submitName = $form + .find('input[name="nablarch_submit"]') + .val(this.name) //繧オ繝悶Α繝繝亥錐繧定ィュ螳壹☆繧(nablarch譛ャ菴薙→縺ョ騾」蜍輔↓蠢隕) + , queryString = $form.serialize() + , nameAlias = this.paramNameAlias; + + if (nameAlias) { + nameAlias.split('|').each(function(replace) { + var pattern = replace.split('/'); + queryString = queryString.replace(/(^|&)([^=]+)=(.*?)(?=(&|$))/g, + function(org, head, name, value) { + var replaced = name.replace(pattern[0], pattern[1]); + if (replaced === name) { + return org; + } + return [ + head, name, '=', value + , '&', replaced, '=', value + ].join(''); + } + ); + }); + } + + $.ajax({ + type : 'POST' + , url : this.uri + , dataType : 'html' + , data : queryString + , complete : function(xhr) { + var html = xhr.responseText + , eventName = (xhr.status <= 400) + ? 'ajaxSuccess' + : 'ajaxError'; + listener.$context.trigger(eventName, [$(html).find(target)][0]); + } + }); + } + Listener.register('Ajax', AjaxAction); + return AjaxAction; +}); diff --git a/node_modules/nablarch-widget-event-toggle/package.json b/node_modules/nablarch-widget-event-toggle/package.json new file mode 100644 index 0000000..e8f7b85 --- /dev/null +++ b/node_modules/nablarch-widget-event-toggle/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-event-toggle" +, "version": "1.0.1" +, "_from" : "nablarch-widget-event-toggle@1.0.1" +, "dependencies": { + } +, "description": "繝励Ο繝代ユ繧」蛻譖ソ繧ヲ繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-event-toggle/ui_public/WEB-INF/tags/widget/event/toggle_disabled.tag b/node_modules/nablarch-widget-event-toggle/ui_public/WEB-INF/tags/widget/event/toggle_disabled.tag new file mode 100644 index 0000000..d559d71 --- /dev/null +++ b/node_modules/nablarch-widget-event-toggle/ui_public/WEB-INF/tags/widget/event/toggle_disabled.tag @@ -0,0 +1,16 @@ +<%@ tag pageEncoding="UTF-8" description="繧、繝吶Φ繝域凾disabled蛻譖ソ" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="蜃ヲ逅蜷咲ァー" rtexprvalue="true" %> +<%@ attribute name="target" description="謫堺ス懷ッセ雎。縺ョ鬆逶ョ縺ョ繧サ繝ャ繧ッ繧ソ" rtexprvalue="true" required="true"%> +<%@ attribute name="condition" description="繧、繝吶Φ繝医r蜃ヲ逅縺吶k譚。莉カ" rtexprvalue="true" required="true" %> +<%@ attribute name="reverse" description="謫堺ス懷ッセ雎。縺ョ繝励Ο繝代ユ繧」縺ョ蛻譖ソ繧帝霆「縺輔○繧九" rtexprvalue="true" %> + + + diff --git a/node_modules/nablarch-widget-event-toggle/ui_public/WEB-INF/tags/widget/event/toggle_property.tag b/node_modules/nablarch-widget-event-toggle/ui_public/WEB-INF/tags/widget/event/toggle_property.tag new file mode 100644 index 0000000..7151cd8 --- /dev/null +++ b/node_modules/nablarch-widget-event-toggle/ui_public/WEB-INF/tags/widget/event/toggle_property.tag @@ -0,0 +1,22 @@ +<%@ tag pageEncoding="UTF-8" description="繧、繝吶Φ繝域凾繝励Ο繝代ユ繧」蛻譖ソ" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="蜃ヲ逅蜷咲ァー" rtexprvalue="true" %> +<%@ attribute name="type" description="繝励Ο繝代ユ繧」縺ョ蛻譖ソ遞ョ蛻・" required="true" rtexprvalue="true" %> +<%@ attribute name="target" description="謫堺ス懷ッセ雎。縺ョ鬆逶ョ縺ョ繧サ繝ャ繧ッ繧ソ" required="true" rtexprvalue="true" %> +<%@ attribute name="reverse" description="謫堺ス懷ッセ雎。縺ョ繝励Ο繝代ユ繧」縺ョ蛻譖ソ繧帝霆「縺輔○繧九" rtexprvalue="true" %> +<%@ attribute name="condition" description="繧、繝吶Φ繝医r蜃ヲ逅縺吶k譚。莉カ" rtexprvalue="true" required="true" %> + + + + diff --git a/node_modules/nablarch-widget-event-toggle/ui_public/WEB-INF/tags/widget/event/toggle_readonly.tag b/node_modules/nablarch-widget-event-toggle/ui_public/WEB-INF/tags/widget/event/toggle_readonly.tag new file mode 100644 index 0000000..235139f --- /dev/null +++ b/node_modules/nablarch-widget-event-toggle/ui_public/WEB-INF/tags/widget/event/toggle_readonly.tag @@ -0,0 +1,16 @@ +<%@ tag pageEncoding="UTF-8" description="繧、繝吶Φ繝域凾readonly蛻譖ソ" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="蜃ヲ逅蜷咲ァー" rtexprvalue="true" %> +<%@ attribute name="target" description="謫堺ス懷ッセ雎。縺ョ鬆逶ョ縺ョ繧サ繝ャ繧ッ繧ソ" rtexprvalue="true" required="true"%> +<%@ attribute name="condition" description="繧、繝吶Φ繝医r蜃ヲ逅縺吶k譚。莉カ" rtexprvalue="true" required="true" %> +<%@ attribute name="reverse" description="謫堺ス懷ッセ雎。縺ョ繝励Ο繝代ユ繧」縺ョ蛻譖ソ繧帝霆「縺輔○繧九" rtexprvalue="true" %> + + + diff --git a/node_modules/nablarch-widget-event-toggle/ui_public/js/nablarch/ui/event/TogglePropertyAction.js b/node_modules/nablarch-widget-event-toggle/ui_public/js/nablarch/ui/event/TogglePropertyAction.js new file mode 100644 index 0000000..2387982 --- /dev/null +++ b/node_modules/nablarch-widget-event-toggle/ui_public/js/nablarch/ui/event/TogglePropertyAction.js @@ -0,0 +1,197 @@ +define(['jquery', './Listener', 'nablarch/ui/readonly', 'sugar'], +function($, Listener, readony) { 'use strict'; + /** + * 繝励Ο繝代ユ繧」蛻譖ソ繧「繧ッ繧キ繝ァ繝ウ + * ============================================= + * 蛻晄悄繝ュ繝シ繝画凾縺ィ逋コ逕溘@縺溘う繝吶Φ繝医↓蠢懊§縺ヲ縲∝ッセ雎。隕∫エ縺ョ繝励Ο繝代ユ繧」縺ョ蛻繧頑崛縺医r陦後≧繧「繧ッ繧キ繝ァ繝ウ縲 + * 蛻繧頑崛縺亥庄閭ス縺ェ繧ソ繧ー縺ッinput:checkbox,:radio,select + * 蛻繧頑崛縺医k蛟、縺ッboolean繧偵し繝昴シ繝医☆繧九 + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------------------------- + * 譛ャ讖溯ス繧剃スソ逕ィ縺吶k蝣エ蜷井サ・荳九ョ繝槭シ繧ォCSS繧剃スソ逕ィ縺吶k縲 + * + * 1. 繧、繝吶Φ繝医r邂。逅縺吶k縺溘a縺ョ謖螳 + * + * 讖溯ス縺ョ繝励Ο繝代ユ繧」繧貞ョ夂セゥ縺吶k隕∫エ縺ォ + * 繝槭シ繧ォCSS縺ィ縺励※ `nablarch_event_Action -type ToggleProperty` 繧呈欠螳壹☆繧九 + * + * 2. 繧、繝吶Φ繝育匱逕滓凾縺ォ繝励Ο繝代ユ繧」繧貞繧頑崛縺医k隕∫エ縺ョ蛻カ蠕。 + * + * 逶」隕門ッセ雎。縺ョ繧、繝吶Φ繝医′逋コ逕溘@縺溷エ蜷医 + * 蛻繧頑崛縺医k蟇セ雎。縲∝繧頑崛縺医k譚。莉カ繧呈欠螳壹☆繧九 + * + * 莉・荳九ッ縲√%縺ョ繧ヲ繧」繧ク繧ァ繝繝医ョ繧ェ繝励す繝ァ繝ウ縺ョ荳隕ァ縺ァ縺ゅk縲 + * + * **-toggleType (String):** + * boolean縺ォ繧医▲縺ヲ蛻繧頑崛縺医i繧後k繝励Ο繝代ユ繧」蜷阪√∪縺溘ッ `readonly` + * + * **-condition (繧サ繝ャ繧ッ繧ソ譁ケ蠑):** + * 逶」隕門ッセ雎。縺ョ隕∫エ縺後そ繝ャ繧ッ繧ソ縺ォ荳閾エ縺励◆蝣エ蜷医↓縲√励Ο繝代ユ繧」縺ョ蛻繧頑崛縺医r陦後≧縲 + * + * **-toggleTarget (繧サ繝ャ繧ッ繧ソ譁ケ蠑):** + * 逶」隕門ッセ雎。縺ョ隕∫エ縺梧擅莉カ(condition)縺ォ荳閾エ縺励◆蝣エ蜷医√励Ο繝代ユ繧」繧貞繧頑崛縺医k蟇セ雎。縺ョ隕∫エ縺ョ繧サ繝ャ繧ッ繧ソ縲 + * 繧、繝吶Φ繝医r螳夂セゥ縺励◆繧ウ繝ウ繝繧ュ繧ケ繝亥縺九i蟇セ雎。繧呈、懃エ「縺吶k縲 + * + * **-reverse (boolean):** + * 繝励Ο繝代ユ繧」縺ョ蛻繧頑崛縺医r騾霆「縺輔○繧九 + * + * **螳溯」萓 (HTML)** + * + * 莉・荳九ッ縲∫屮隕門ッセ雎。縺ョ隕∫エ縺後計alue=1縲阪ョ縺ィ縺阪系ame螻樊ァ縺掲orm.縺ァ縺ッ縺倥∪繧玖ヲ∫エ縲阪r縲梧エサ諤ァ蛹悶阪☆繧句エ蜷医ョ繝槭シ繧ッ繧「繝繝励 + * + * + * + * @class nablarch.ui.event.ToggleAction + * + * @author tani takanori + * @since 1.4 + * + */ + TogglePropertyAction.prototype = { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縲 + * @constructor + */ + constructor : TogglePropertyAction + /** + * 蜃ヲ逅蛻、螳壹r陦後≧縲 + * 逶」隕門ッセ雎。縺後%縺ョ譚。莉カ縺ォ荳閾エ縺吶k蝣エ蜷医√励Ο繝代ユ繧」縺ョ險ュ螳壹r陦後≧縲 + * + * @property condition + * @type String + */ + , condition : null + /** + * 繝励Ο繝代ユ繧」繧貞繧頑崛縺医k蟇セ雎。繧堤、コ縺吶励Ο繝代ユ繧」縲 + * @property toggleTarget + * @type String + */ + , toggleTarget : null + /** + * 縺ゥ縺ョ繝励Ο繝代ユ繧」繧貞繧頑崛縺医k縺九r遉コ縺吶励Ο繝代ユ繧」縲 + * @property toggleTarget + * @type String + */ + , toggleType : null + /** + * 逶」隕門ッセ雎。縺ョ繧、繝吶Φ繝医′逋コ轣ォ縺励◆髫帙↓蜻シ縺ウ蜃コ縺輔l繧九Γ繧ス繝繝峨 + * + * @method fire + */ + , fire : TogglePropertyAction_fire + /** + * 蟇セ雎。隕∫エ縺ョ繝励Ο繝代ユ繧」繧貞繧頑崛縺医k縲 + * + * @method toggle + */ + , toggle : TogglePropertyAction_toggle + /** + * 蟇セ雎。隕∫エ縺ォ縺、縺縺ヲ縲√励Ο繝代ユ繧」縺ョ險ュ螳壹r繧ッ繝ェ繧「縺吶k縲 + * @method clear + */ + , clear : TogglePropertyAction_clear + /** + * 繧、繝吶Φ繝育匱轣ォ譎ゅ↓逶」隕門ッセ雎。隕∫エ縺梧擅莉カ縺ォ荳閾エ縺励◆蝣エ蜷医↓ + * 繝励Ο繝代ユ繧」縺ョ險ュ螳壹r陦後≧縲 + * + * @method set + */ + , set : TogglePropertyAction_set + /** + * 蛻晄悄繧、繝吶Φ繝域凾縺ォ繝励Ο繝代ユ繧」繧貞繧頑崛縺医k縲 + * + * @method init + */ + , init : TogglePropertyAction_init + }; + + function TogglePropertyAction(opts) { + this.constructor = TogglePropertyAction; + Object.merge(this, opts); + this.reverse = opts.reverse === 'true'; + } + + function TogglePropertyAction_fire(listener, event) { + var $watchTarget = $(event.currentTarget); + this.toggle($watchTarget, listener.$context); + return this; + } + + function TogglePropertyAction_toggle($watchTarget, $context) { + var $target = $context.find(this.toggleTarget) + , match = conditionOf($watchTarget); + + if (needsClear($watchTarget, this.condition)) { + this.clear($target); + } + if (match($watchTarget, this.condition)) { + this.set($target); + } + }; + + function conditionOf($watchTarget) { + return $watchTarget.is('select') ? conditionOfSelect + : $watchTarget.is('input:radio') ? conditionOfRadio + : conditionOfCheckbox; + } + + function conditionOfSelect($node, condition) { + return $node.find(condition).is(':selected'); + } + + function conditionOfRadio($node, condition) { + return $node.filter(condition).is(':checked'); + } + + function conditionOfCheckbox($node, condition) { + var checkbox = $node.filter(condition); + return checkbox.length === 0 ? false + : checkbox.is(':checked'); + } + + function needsClear($node, condition) { + return $node.is(':not(:checkbox)') || $node.filter(condition).length > 0; + } + + function TogglePropertyAction_clear($target) { + setPropertyOf(this.toggleType, $target, this.reverse); + } + + function TogglePropertyAction_set($target) { + setPropertyOf(this.toggleType, $target, !this.reverse); + } + + function setPropertyOf(type, $target, value) { + return type === "readonly" ? setReadonly($target, value) + : setDisabled($target, value); + } + + function setReadonly($target, readonly) { + $target.readonly(readonly); + } + + function setDisabled($target, disabled) { + var type = "disabled"; + disabled ? $target.attr(type, type).closest('div.field').addClass(type) + : $target.removeAttr(type).closest('div.field').removeClass(type); + } + + function TogglePropertyAction_init(listener, $watchTarget) { + var $context = listener.$context + , event = listener.event.split('|')[0].split(/\s/) + , node = event.length === 3 ? event[1] : event[0]; + this.toggle($(node, $context), $context); + } + + Listener.register('ToggleProperty', TogglePropertyAction); + return TogglePropertyAction; +}); \ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/index.jsp" "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/index.jsp" new file mode 100644 index 0000000..a40acc7 --- /dev/null +++ "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/index.jsp" @@ -0,0 +1,33 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
+
    +
  • +
  • +
+
    +
  • +
+ +
+
+
\ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..099c726 --- /dev/null +++ "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,252 @@ +require(["nablarch/ui/readonly", "nablarch/ui/selector"], function (readonly) {"use strict"; + + runTest( + 蠢鬆磯逶ョ縺ョ縺ソ縺ァ蜍穂ス懊☆繧九%縺ィ縺ョ遒コ隱 + , reverse螻樊ァ縺ョ遒コ隱 + , 繝ゥ繧ク繧ェ繝懊ち繝ウ繧偵し繝昴シ繝医☆繧九%縺ィ縺ョ遒コ隱 + , 繝励Ν繝繧ヲ繝ウ繧偵し繝昴シ繝医☆繧九%縺ィ縺ョ遒コ隱 + , checkbox繧偵し繝昴シ繝医☆繧九%縺ィ縺ョ遒コ隱 + ); + + function 蠢鬆磯逶ョ縺ョ縺ソ縺ァ蜍穂ス懊☆繧九%縺ィ縺ョ遒コ隱() { + var context = $("div#require_only_test") + , $disabled = context.find("#require_only_target_disable") + , $readonly = context.find("#require_only_target_readonly"); + doChange(context, 'input[name="formdata.require_only"]', 'available'); + ok($disabled.is(':enabled'), "蛟、縺梧擅莉カ縺ォ荳閾エ縺励↑縺蝣エ蜷医ッ豢サ諤ァ迥カ諷(髱樊エサ諤ァ)"); + + doChange(context, 'input[name="formdata.require_only"]', "disable"); + ok($disabled.is(':disabled'), "蛟、縺梧擅莉カ縺ォ荳閾エ縺吶k蝣エ蜷医ッ髱樊エサ諤ァ迥カ諷"); + + doChange(context, 'input[name="formdata.require_only"]', 'available'); + ok($readonly.is(':enabled'), "蛟、縺梧擅莉カ縺ォ荳閾エ縺励↑縺蝣エ蜷医ッ豢サ諤ァ"); + doChange(context, 'input[name="formdata.require_only"]', 'readonly'); + ok($readonly.is(':disabled'), "蛟、縺梧擅莉カ縺ォ荳閾エ縺励↑縺蝣エ蜷医ッ豢サ諤ァ"); + } + + function reverse螻樊ァ縺ョ遒コ隱() { + var context = $('div#reverse_attr_test') + , trigger = 'input[name="formdata.reverse"]' + , $targets = context.find('input:text.target') + , reverse = ".reverse" + , readonlyMark = ".onReadonly" + , disabledMark = ".onDisabled"; + + doChange(context, trigger, 'available'); + $targets.filter(not(reverse)).each(assertEnable("reverse縺荊rue縺ァ縺ェ縺鬆逶ョ縺ッ豢サ諤ァ")); + $targets.filter(reverse).each(assertDisable("reverse縺荊rue縺ェ鬆逶ョ縺ッ髱樊エサ諤ァ")); + + doChange(context, trigger, 'readonly'); + $targets.filter(readonlyMark + not(reverse)).each(assertDisable("readonly && reverse縺ァ縺ェ縺 => 髱樊エサ諤ァ")); + $targets.filter(readonlyMark + reverse).each(assertEnable("readonly && reverse => 豢サ諤ァ")); + + doChange(context, trigger, 'disable'); + $targets.filter(disabledMark + not(reverse)).each(assertDisable("diabled && reverse縺ァ縺ェ縺 => 髱樊エサ諤ァ")); + $targets.filter(disabledMark + reverse).each(assertEnable("disabled && reverse => 豢サ諤ァ")); + + function not(selector) { + return ':not(' + selector + ")"; + } + + function assertEnable(msg) { + return function() { + var $this = $(this); + ok($this.is(':enabled'), msg + "[ " + this.id + " ]"); + }; + } + function assertDisable(msg) { + return function() { + var $this = $(this); + ok($this.is(':disabled'), msg + "[ " + this.id + " ]"); + }; + } + } + + function 繝ゥ繧ク繧ェ繝懊ち繝ウ繧偵し繝昴シ繝医☆繧九%縺ィ縺ョ遒コ隱() { + var context = $("div[class*='toggle-radio']") + , values = ["owner", "sales", "agency", "support"] + , expected = { + owner : { // 譛ャ莠コ + enable : ['kanjiName', 'mailAddress', 'card', 'mobilePhoneNumber'] + , readonly : ['before'] + } + , sales : { // 蝟カ讌ュ + enable : ['kanjiName'] + , readonly : ['before', 'mailAddress', 'card', 'mobilePhoneNumber'] + } + , agency : { // 莉」逅蠎 + enable : ['kanjiName', 'mailAddress'] + , readonly : ['before', 'card', 'mobilePhoneNumber'] + } + , support : { // 繧オ繝昴シ繝 + enable : ['kanjiName', 'mailAddress', 'mobilePhoneNumber'] + , readonly : ['before', 'card'] + } + } + , assertReadonly = function(key, context) { + return function(selector) { + $(selector, context).each(function () { + var $node = $(this) + , msg = "readonly fail [if " + key + " selected. " + $node.attr('name') + " is readonly]"; + ok($node.prop('disabled') && $node.is('.' + readonly.markerCss), msg); + }); + }; + } + , assertEnabled = function(key, context) { + return function(selector) { + $(selector, context).each(function () { + var $node = $(this) + , msg = "enabled fail [if " + key + " selected. " + $node.attr('name') + " is enabled]"; + ok(!$node.prop('disabled') && !$node.is('.' + readonly.markerCss), msg); + }); + }; + }; + + // 蝓コ轤ケ縺ィ縺ェ繧九Λ繧ク繧ェ縺梧戟縺、蛟、縺斐→縺ォ繝繧ケ繝医r螳滓命縲 + values.each(function(key){ + var select = function (name) { return selector('formdata', name); } + , readonly = expected[key]['readonly'].map(select) + , enabled = expected[key]['enable'].map(select); + doChange(context, 'input:radio[name="formdata.switch-radio"]', key); + + readonly.each(assertReadonly(key, context)); + enabled.each(assertEnabled(key, context)); + + ['kanjiName', 'mobilePhoneNumber', 'mailAddress', 'card'].map(select).each(function(selector){ + $(selector, context).readonly(false); + }); + + }); + } + + function 繝励Ν繝繧ヲ繝ウ繧偵し繝昴シ繝医☆繧九%縺ィ縺ョ遒コ隱() { + var context = $("div[class*='toggle-pulldown']") + , values = ["lawyer", "piper", "chef", "spaceman"] + , expected = { + lawyer : { // 蠑∬ュキ螢ォ + enable : ['kanjiName', 'mailAddress', 'card'] + , disable : ['mobilePhoneNumber', 'before'] + } + , piper : { // 驟咲ョ。蟾・ + enable : ['kanjiName', 'mobilePhoneNumber'] + , disable : ['mailAddress', 'card', 'before'] + } + , chef : { // 譁咏炊莠コ + enable : ['kanjiName'] + , disable : ['mailAddress', 'card', 'mobilePhoneNumber', 'before'] + } + , spaceman : { // 螳螳咎」幄。悟」ォ + enable : ['kanjiName', 'card'] + , disable : ['mailAddress', 'mobilePhoneNumber', 'before'] + } + } + , assertDisabled = function(key, context) { + return function(selector) { + $(selector, context).each(function () { + var $node = $(this) + , msg = "if " + key + " selected. " + $node.attr('name') + " is disabled"; + ok($node.prop('disabled') && !$node.is('.' + readonly.markerCss), msg); + }); + }; + } + , assertEnabled = function(key, context) { + return function(selector) { + $(selector, context).each(function () { + var $node = $(this) + , msg = "if " + key + " selected. " + $node.attr('name') + " is enabled"; + ok(!$node.prop('disabled') && !$node.is('.' + readonly.markerCss), msg); + }); + }; + }; + + values.each(function(key) { + var select = function(name) {return selector('formdata_disabled', name);} + , disabled = expected[key]['disable'].map(select) + , enabled = expected[key]['enable'].map(select); + + doChange(context, 'select[name="formdata_disabled.switch-select"]', key); + + disabled.each(assertDisabled(key, context)); + enabled.each(assertEnabled(key, context)); + + ['kanjiName', 'mobilePhoneNumber', 'mailAddress', 'card'].map(select).each(function(selector){ + $(selector, context).prop('disabled', false); + }); + }); + } + + function checkbox繧偵し繝昴シ繝医☆繧九%縺ィ縺ョ遒コ隱() { + var context = $("div[class*='toggel_checkbox']") + , values = ["lawyer", "piper", "chef", "spaceman"] + , expected = { + lawyer : { // 蠑∬ュキ螢ォ + enable : ['office'] + , disable : ['office', 'before'] + , reverse : true + } + , piper : { // 驟咲ョ。蟾・ + enable : ['dailyPay'] + , disable : ['dailyPay','before'] + , reverse : true + } + , chef : { // 譁咏炊莠コ + enable : [] + , disable : ['before'] + } + , spaceman : { // 螳螳咎」幄。悟」ォ + enable : ['allergy'] + , disable : ['allergy', 'before'] + } + } + , assertDisabled = function(key, context) { + return function(selector) { + $(selector, context).each(function () { + var $node = $(this) + , msg = "if " + key + " unselected. " + $node.attr('name') + " is disabled"; + ok($node.prop('disabled') && !$node.is('.' + readonly.markerCss), msg); + }); + }; + } + , assertEnabled = function(key, context) { + return function(selector) { + $(selector, context).each(function () { + var $node = $(this) + , msg = "if " + key + " selected. " + $node.attr('name') + " is enabled"; + ok(!$node.prop('disabled') && !$node.is('.' + readonly.markerCss), msg); + }); + }; + }; + + values.each(function(key) { + var select = function(name) {return selector('formdata_checkbox', name);} + , disabled = expected[key]['disable'].map(select) + , enabled = expected[key]['enable'].map(select) + , reverse = expected[key]['reverse'] + , $target = $(context).find(":checkbox[value='" + key + "']"); + + $target.prop('checked', !reverse).change(); + disabled.each(assertDisabled(key, context)); + + $target.prop('checked', !!reverse).change(); + enabled.each(assertEnabled(key, context)); + + ['office', 'dailyPay', 'allergy'].map(select).each(function(selector){ + $(selector, context).prop('disabled', false); + }); + }); + } + + + /** + * 謖螳壹&繧後◆蛟、繧定ィュ螳壹@縺溽憾諷九〒change繧、繝吶Φ繝医r逋コ轣ォ縺輔○繧九 + * + * @param context + */ + function doChange(context, selector, val) { + $(context).find(selector).val(val).prop('checked', true).change(); + } + + function selector(prefix, name) { + return 'input[name^="' + prefix + '.' + name + '"]'; + } +}); diff --git "a/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..eb9974f --- /dev/null +++ "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,89 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.Map" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..8e78c55 --- /dev/null +++ "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,274 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> + +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + <%-- 莉悶ョ螳夂セゥ縺悟スア髻ソ縺励↑縺繧医≧縺ォ繧ウ繝ウ繝繧ュ繧ケ繝医ョ蠅逡後r菴懈舌☆繧九 --%> + 蠢鬆亥ア樊ァ縺ョ縺ソ縺ョ遒コ隱阪(蠢鬆亥ア樊ァ縺ョ縺ソ繧呈欠螳壹@縺溷エ蜷医↓蜍穂ス懊☆繧九%縺ィ繧堤「コ隱阪☆繧九) + + + + + + + + + + + + + + + reverse螻樊ァ繧呈欠螳壹@縺溷エ蜷医ョ遒コ隱
reverse螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∵擅莉カ縺ォ荳閾エ縺励◆蝣エ蜷医ョ縺ソ豢サ諤ァ縺ォ縺ェ繧九
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + 繝ゥ繧ク繧ェ繝懊ち繝ウ繧偵し繝昴シ繝医☆繧九%縺ィ縺ョ遒コ隱 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 繝励Ν繝繧ヲ繝ウ縺ァ蛻繧頑崛繧上k縺薙→縲
+ + + + + + + + + + + + + +
+ + 繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ァ蛻繧頑崛繧上k縺薙→ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
diff --git "a/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\347\231\273\351\214\262_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\347\231\273\351\214\262_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..1d7a965 --- /dev/null +++ "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\347\231\273\351\214\262_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,19 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..17b666c --- /dev/null +++ "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,21 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> + +<% +%> + + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\347\242\272\350\252\215\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\347\242\272\350\252\215\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..4afd186 --- /dev/null +++ "b/node_modules/nablarch-widget-event-toggle/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\346\264\273\346\200\247\345\210\207\346\233\277/\346\264\273\346\200\247\345\210\207\346\233\277_\347\242\272\350\252\215\347\224\273\351\235\242.jsp" @@ -0,0 +1,14 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> + +<% +%> + + \ No newline at end of file diff --git a/node_modules/nablarch-widget-event-window_close/package.json b/node_modules/nablarch-widget-event-window_close/package.json new file mode 100644 index 0000000..45b5fd1 --- /dev/null +++ b/node_modules/nablarch-widget-event-window_close/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-event-window_close" +, "version": "1.0.0" +, "_from" : "nablarch-widget-event-window_close@1.0.0" +, "dependencies": { + } +, "description": "繧ヲ繧」繝ウ繝峨え繧ッ繝ュ繝シ繧コ繧ヲ繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-event-window_close/ui_public/WEB-INF/tags/widget/event/window_close.tag b/node_modules/nablarch-widget-event-window_close/ui_public/WEB-INF/tags/widget/event/window_close.tag new file mode 100644 index 0000000..ad43e60 --- /dev/null +++ b/node_modules/nablarch-widget-event-window_close/ui_public/WEB-INF/tags/widget/event/window_close.tag @@ -0,0 +1,10 @@ +<%@ tag pageEncoding="UTF-8" description="繧ヲ繧」繝ウ繝峨え繧ッ繝ュ繝シ繧コ繧「繧ッ繧キ繝ァ繝ウ" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="蜃ヲ逅蜀螳ケ縺ョ邁。蜊倥↑隱ャ譏" rtexprvalue="true" %> + + \ No newline at end of file diff --git a/node_modules/nablarch-widget-event-window_close/ui_public/js/nablarch/ui/event/WindowCloseAction.js b/node_modules/nablarch-widget-event-window_close/ui_public/js/nablarch/ui/event/WindowCloseAction.js new file mode 100644 index 0000000..1d57ab1 --- /dev/null +++ b/node_modules/nablarch-widget-event-window_close/ui_public/js/nablarch/ui/event/WindowCloseAction.js @@ -0,0 +1,49 @@ +define(['jquery', './Listener', 'sugar'], +function($, Listener) { 'use strict'; + /** + * 繧ヲ繧」繝ウ繝峨え繧ッ繝ュ繝シ繧コ繧「繧ッ繧キ繝ァ繝ウ + * ============================================= + * 繧ヲ繧」繝ウ繝峨え繧偵け繝ュ繝シ繧コ縺吶k縲 + * + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------------------------- + * 譛ャ讖溯ス繧剃スソ逕ィ縺吶k蝣エ蜷井サ・荳九ョ繝槭シ繧ォCSS繧剃スソ逕ィ縺吶k縲 + * + * 1. 繧、繝吶Φ繝医r邂。逅縺吶k縺溘a縺ョ謖螳 + * + * 讖溯ス縺ョ繝励Ο繝代ユ繧」繧貞ョ夂セゥ縺吶k隕∫エ縺ォ + * 繝槭シ繧ォCSS縺ィ縺励※ `nablarch_event_Action -type WindowClose` 繧呈欠螳壹☆繧九 + * + * @class nablarch.ui.event.WindowClose + * + * @author tani takanori + * @since 1.4 + * + */ + WindowCloseAction.prototype = { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縲 + * @constructor + */ + constructor : WindowCloseAction + /** + * 繧ヲ繧」繝ウ繝峨え繧偵け繝ュ繝シ繧コ縺吶k縲 + * + * @method fire + */ + , fire : WindowCloseAction_fire + }; + + function WindowCloseAction(opts) { + this.constructor = WindowCloseAction; + Object.merge(this, opts); + } + + function WindowCloseAction_fire(listener, event) { + window.close(); + } + + Listener.register('WindowClose', WindowCloseAction); + return WindowCloseAction; +}); \ No newline at end of file diff --git a/node_modules/nablarch-widget-event-write_to/package.json b/node_modules/nablarch-widget-event-write_to/package.json new file mode 100644 index 0000000..0b4259e --- /dev/null +++ b/node_modules/nablarch-widget-event-write_to/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-event-write_to" +, "version": "1.0.0" +, "_from" : "nablarch-widget-event-write_to@1.0.0" +, "dependencies": { + } +, "description": "鬆逶ョ蜀螳ケ螟画峩繧ヲ繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-event-write_to/ui_public/WEB-INF/tags/widget/event/write_to.tag b/node_modules/nablarch-widget-event-write_to/ui_public/WEB-INF/tags/widget/event/write_to.tag new file mode 100644 index 0000000..a661d3b --- /dev/null +++ b/node_modules/nablarch-widget-event-write_to/ui_public/WEB-INF/tags/widget/event/write_to.tag @@ -0,0 +1,25 @@ +<%-- + 繧、繝吶Φ繝育匱逕滓凾縺ォ縲∵欠螳壹@縺溯ヲ∫エ蜀縺ョ譁蟄怜励b縺励¥縺ッ繝輔か繝シ繝蜈・蜉帛、繧定ィュ螳壹☆繧九 + @author Iwauo Tajima + @from 1.4 +--%> +<%@ tag pageEncoding="UTF-8" description="繧、繝吶Φ繝育匱逕滓凾縺ォ縲∵欠螳壹@縺溯ヲ∫エ蜀縺ョ譁蟄怜励b縺励¥縺ッ繝輔か繝シ繝蜈・蜉帛、繧定ィュ螳壹☆繧九" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="蜃ヲ逅蜷咲ァー" rtexprvalue="true" %> +<%@ attribute name="target" description="蛟、繧定ィュ螳壹☆繧九ヮ繝シ繝峨r謖螳壹☆繧九そ繝ャ繧ッ繧ソ蠑(蠢鬆)" required="true" rtexprvalue="true" %> +<%@ attribute name="format" description="險ュ螳壹☆繧区ュ蝣ア縺ョ繝輔か繝シ繝槭ャ繝亥シ上(蝓九a霎シ縺ソ譁蟄養}蜀縺ォ繧サ繝ャ繧ッ繧ソ繧呈欠螳壹@縲∝ッセ雎。縺ョ隕∫エ縺九i蛟、,繝繧ュ繧ケ繝域ュ蝣ア繧貞ア暮幕縺励※蜃コ蜉帙〒縺阪k縲 萓:{span.prefix}:{span.code})" rtexprvalue="true" %> +<%@ attribute name="condition" description="縺薙ョ繧「繧ッ繧キ繝ァ繝ウ縺悟ョ溯。後&繧後k縺溘a縺ォ縲√う繝吶Φ繝育匱逕溷繝弱シ繝峨′貅縺溘☆縺ケ縺肴擅莉カ(繧サ繝ャ繧ッ繧ソ蠑)" rtexprvalue="true" %> +<%@ attribute name="addClass" description="霑ス蜉縺吶kCSS繧ッ繝ゥ繧ケ蜷(遨コ逋ス譁蟄怜玄蛻繧)" rtexprvalue="true" %> +<%@ attribute name="removeClass" description="髯、蜴サ縺吶kCSS繧ッ繝ゥ繧ケ蜷(遨コ逋ス譁蟄怜玄蛻繧)" rtexprvalue="true" %> + + diff --git a/node_modules/nablarch-widget-event-write_to/ui_public/js/nablarch/ui/event/WriteAction.js b/node_modules/nablarch-widget-event-write_to/ui_public/js/nablarch/ui/event/WriteAction.js new file mode 100644 index 0000000..ca0b08f --- /dev/null +++ b/node_modules/nablarch-widget-event-write_to/ui_public/js/nablarch/ui/event/WriteAction.js @@ -0,0 +1,141 @@ +define(['jquery', './Listener', 'sugar'], +function($, Listener) { 'use strict'; + /** + * 蜍慕噪螟画峩鬆逶ョ讖溯ス + * ============================================= + * 逕サ髱「蜀縺ョchange繧、繝吶Φ繝医dajaxsuccess繧、繝吶Φ繝医→騾」蜍輔@縲 + * 逕サ髱「蜀縺ョ隕∫エ繧貞虚逧縺ォ譖ク謠帙∴繧句ヲ逅繧定。後≧繧「繧ッ繧キ繝ァ繝ウ縲 + * 隕∫エ縺ョ蜀螳ケ縺ョ莉悶↓縲,SS繧ッ繝ゥ繧ケ縺ョ霑ス蜉繝サ蜑企勁繧ゅ≠繧上○縺ヲ陦後≧縺薙→縺後〒縺阪k縲 + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------------------------- + * + *
+ * + * + * + * + * + * +0 蜀 + *
+ * + * @class nablarch.ui.event.WriteAction + * @author Iwauo Tajima + * @since 1.4 + */ + WriteAction.prototype = { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縲 + * + * @constructor + * @param {Object} opts 縺薙ョ繧「繧ッ繧キ繝ァ繝ウ縺ォ險ュ螳壹☆繧九励Ο繝代ユ繧」縲 + */ + constructor: WriteAction + /** + * 蜃コ蜉帛ッセ雎。隕∫エ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ蠑(蠢鬆域欠螳) + * + * @property writeTo + * @type String + */ + , writeTo: null + /** + * 蜃コ蜉帛螳ケ譁蟄怜(蠢鬆域欠螳) + * 譁蟄怜嶺クュ縺ョ{}縺ァ蝗イ縺セ繧後◆譁蟄怜励ッ繧サ繝ャ繧ッ繧ソ蠑上→縺励※隗」驥医@縲 + * 縺昴ョ邨先棡繧サ繝繝医ョ蜈磯ュ隕∫エ縺ョvalue螻樊ァ蛟、(input/select/textarea隕∫エ)繧ゅ@縺上ッ + * contentText(縺昴l莉・螟悶ョ隕∫エ)縺ォ鄂ョ謠帙&繧後k縲 + * + * @property format + * @type String + */ + , format: null + /** + * 螳溯。梧擅莉カ繧サ繝ャ繧ッ繧ソ蠑 + * 縺薙ョ繧「繧ッ繧キ繝ァ繝ウ縺ョ蜃ヲ逅縺悟ョ溯。後☆繧矩圀縺ョ莠句燕譚。莉カ縺ィ縺ェ繧九そ繝ャ繧ッ繧ソ蠑上 + * 繝ェ繧ケ繝翫′繧、繝吶Φ繝医r謐墓拷縺励※繧ゅ√%縺ョ繧サ繝ャ繧ッ繧ソ蠑上′逵溘↓隧穂セ。縺輔l縺ェ縺蝣エ蜷医ッ + * 縺薙ョ繧「繧ッ繧キ繝ァ繝ウ縺ョ螳溯。後r繧ュ繝」繝ウ繧サ繝ォ縺吶k縲 + * + * @property condition + * @type String + */ + , condition: null + /** + * 霑ス蜉CSS繧ッ繝ゥ繧ケ縲 + * 縺薙ョ繧「繧ッ繧キ繝ァ繝ウ縺悟ョ溯。後&繧後◆蝣エ蜷医↓霑ス蜉縺吶kCSS繧ッ繝ゥ繧ケ縲 + * + * @property addClass + * @type String + */ + , addClass: '' + /** + * 髯、蜴サCSS繧ッ繝ゥ繧ケ縲 + * 縺薙ョ繧「繧ッ繧キ繝ァ繝ウ縺悟ョ溯。後&繧後◆蝣エ蜷医↓髯、蜴サ縺吶kCSS繧ッ繝ゥ繧ケ縲 + * + * @property removeClass + * @type String + */ + , removeClass: '' + /** + * 蜃コ蜉帛ッセ雎。隕∫エ縺ョjQuery邨先棡繧サ繝繝 + * + * @property $writeTo + * @type jQuery + */ + , $writeTo: null + /** + * 縺薙ョ繧「繧ッ繧キ繝ァ繝ウ縺後Μ繧ケ繝翫°繧峨さ繝シ繝ォ繝舌ャ繧ッ縺輔l縺溷エ蜷医↓螳溯。後☆繧句ヲ逅縲 + * 蟇セ雎。隕∫エ蜀螳ケ縺ョ譖ク謠帙∴繧定。後≧縲 + * @method fire + * @param {nablarch.ui.event.Listener} 縺薙ョ繧「繧ッ繧キ繝ァ繝ウ繧貞他縺ウ蜃コ縺励◆繝ェ繧ケ繝 + * @param {jQuery.Event} 繝ェ繧ケ繝翫′謐墓拷縺励◆繧、繝吶Φ繝医が繝悶ず繧ァ繧ッ繝 + */ + , fire: WriteAction_fire + }; + + /** + * 繝輔か繝シ繝槭ャ繝亥シ上r隗」驥医☆繧九 + * @method interpolate + * @static + */ + WriteAction.interpolate = WriteAction_interpolate; + + function WriteAction(opts) { + this.constructor = WriteAction; + Object.merge(this, opts); + } + + function WriteAction_fire(listener, event) { + var $writeTo = listener.$context.find(this.writeTo) + , $target = $(event.delegateTarget) + , value; + if (this.condition && !$target.is(this.condition)) { + return; + } + if (this.format) { + value = WriteAction.interpolate(this.format, $target); + $writeTo.is('input, select, textarea') ? $writeTo.val(value) + : $writeTo.text(value); + } + $writeTo.addClass(this.addClass) + .removeClass(this.removeClass); + return this; + } + + function WriteAction_interpolate(format, $source) { + var pattern = /\{([^}]+)\}/g; + return format.replace(pattern, function(_, selector) { + var $matched = $source.find(selector); + return ($matched.is('input, select, textarea') + ? $matched.val() + : $matched.text()).trim(); + }); + } + + Listener.register('Write', WriteAction); + return WriteAction; +}); diff --git "a/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/index.jsp" "b/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/index.jsp" new file mode 100644 index 0000000..a40acc7 --- /dev/null +++ "b/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/index.jsp" @@ -0,0 +1,33 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
+
    +
  • +
  • +
+
    +
  • +
+ +
+
+
\ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\345\213\225\347\232\204\346\233\270\343\201\215\350\276\274\343\201\277/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\345\213\225\347\232\204\346\233\270\343\201\215\350\276\274\343\201\277/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..3635c8c --- /dev/null +++ "b/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\345\213\225\347\232\204\346\233\270\343\201\215\350\276\274\343\201\277/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,88 @@ + runTest( + 蠢鬆亥ア樊ァ縺ョ縺ソ蜍穂ス懃「コ隱 + , format螻樊ァ縺ョ繝繧ケ繝 + ); + + function 蠢鬆亥ア樊ァ縺ョ縺ソ蜍穂ス懃「コ隱() {'use strict'; + var testcase = test_for('requireTest')[0] + , msg = testcase.msg + , $input = testcase.area.find('input.from') + , $to = testcase.area.find('div.to') + , blurCase = 'set value onBlur' + , changeCase = 'not set to label onChange'; + $input.val(''); + $to.text(''); + // emulate user's operation. + $input.val(blurCase); + equal($to.text(), '', msg + " (blur蜑阪ッ蛟、縺後↑縺縺薙→縲)"); + $input.blur(); + equal($to.text(), blurCase, msg + " (blur蠕後↓蛟、縺瑚ィュ螳壹&繧後k縺薙→縲)"); + + $to.text(''); + $input.val(changeCase); + $input.change(); + equal($to.text(), '', msg + " (change縺ァ縺ッ蛟、縺悟、画峩縺輔l縺ェ縺縺薙→縲)"); + } + + function format螻樊ァ縺ョ繝繧ケ繝() { + var testcase = test_for("formatTest")[0] + , $context = testcase.area + , msg = testcase.msg + , $to_default = $context.find("span.to.default") + , $to_blank = $context.find("span.to.blank") + , $to_first = $context.find("span.to.first") + , $to_second = $context.find("span.to.second") + , $to_multi = $context.find("span.to.multi") + , $first = $context.find("input.first") + , $second = $context.find("input.second") + , $third = $context.find("input.third") + , inputs = [$first, $second, $third] + , texts = [$to_default, $to_blank, $to_first, $to_second, $to_multi]; + + init(); + // first縺ョ隕∫エ縺ョ蛟、繧貞、画峩縺励※繧、繝吶Φ繝医r逋コ轣ォ + $first.val("100").change(); + equal($to_default.text(), "", "format螻樊ァ縺後↑縺代l縺ー蜿肴丐縺輔l縺ェ縺"); + equal($to_blank.text(), "", "format螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ァ縺ッ蜿肴丐縺輔l縺ェ縺"); + equal($to_first.text(), "100", "format螻樊ァ縺ォ{input.first}縺梧欠螳壹&繧後※縺繧九ョ縺ァ蜿肴丐縺輔l繧"); + equal($to_second.text(), "", "format螻樊ァ縺ォ{input.second}縺梧欠螳壹&繧後※縺繧九ョ縺ァ蜿肴丐縺輔l縺ェ縺"); + equal($to_multi.text() , "100--", "format螻樊ァ縺ォ{input.first}繧貞性繧薙〒縺繧九ョ縺ァ蜿肴丐縺輔l繧"); + + + init(); + $second.val("200").change(); + equal($to_default.text(), "", "format螻樊ァ縺後↑縺代l縺ー蜿肴丐縺輔l縺ェ縺"); + equal($to_blank.text(), "", "format螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ァ縺ッ蜿肴丐縺輔l縺ェ縺"); + equal($to_first.text(), "", "format螻樊ァ縺ォ{input.first}縺梧欠螳壹&繧後※縺繧九ョ縺ァ蜿肴丐縺輔l繧"); + equal($to_second.text(), "200", "format螻樊ァ縺ォ{input.second}縺梧欠螳壹&繧後※縺繧九ョ縺ァ蜿肴丐縺輔l縺ェ縺"); + equal($to_multi.text() , "-200-", "format螻樊ァ縺ォ{input.first}繧貞性繧薙〒縺繧九ョ縺ァ蜿肴丐縺輔l繧"); + + init(); + $first.val("100"); + $second.val("200"); + $third.val("300").change(); + equal($to_default.text(), "", "format螻樊ァ縺後↑縺代l縺ー蜿肴丐縺輔l縺ェ縺"); + equal($to_blank.text(), "", "format螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ァ縺ッ蜿肴丐縺輔l縺ェ縺"); + equal($to_first.text(), "100", "format螻樊ァ縺ォ{input.first}縺梧欠螳壹&繧後※縺繧九ョ縺ァ蜿肴丐縺輔l繧"); + equal($to_second.text(), "200", "format螻樊ァ縺ォ{input.second}縺梧欠螳壹&繧後※縺繧九ョ縺ァ蜿肴丐縺輔l縺ェ縺"); + equal($to_multi.text() , "100-200-300", "format螻樊ァ縺ォ{input.first}繧貞性繧薙〒縺繧九ョ縺ァ蜿肴丐縺輔l繧"); + + function init() { + inputs.each(function(node) {node.val("");}); + texts.each(function(text) {text.text("");}).each(function(text) { + equal(text.text(), "", msg + "蛻晄悄蛟、縺ッ遨コ縺ォ縺ェ縺」縺ヲ縺繧九%縺ィ"); + }); + } + } + + function test_for(caseId) {'use strict'; + var $cases = $('span.testcase.' + caseId); + return $cases.map(function(){ + var $case = $(this) + , $area = $case.closest('div'); + return { + msg : $case.text().trim() + , area : $area + }; + }); + } \ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\345\213\225\347\232\204\346\233\270\343\201\215\350\276\274\343\201\277/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\345\213\225\347\232\204\346\233\270\343\201\215\350\276\274\343\201\277/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..8c72836 --- /dev/null +++ "b/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\345\213\225\347\232\204\346\233\270\343\201\215\350\276\274\343\201\277/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,15 @@ + + +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\345\213\225\347\232\204\346\233\270\343\201\215\350\276\274\343\201\277/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\345\213\225\347\232\204\346\233\270\343\201\215\350\276\274\343\201\277/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..c164896 --- /dev/null +++ "b/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\345\213\225\347\232\204\346\233\270\343\201\215\350\276\274\343\201\277/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,6 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\345\213\225\347\232\204\346\233\270\343\201\215\350\276\274\343\201\277/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\345\213\225\347\232\204\346\233\270\343\201\215\350\276\274\343\201\277/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..3a27cc4 --- /dev/null +++ "b/node_modules/nablarch-widget-event-write_to/ui_test/jsp/\343\202\244\343\203\231\343\203\263\343\203\210/\345\213\225\347\232\204\346\233\270\343\201\215\350\276\274\343\201\277/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,48 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="event" tagdir="/WEB-INF/tags/widget/event" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 蠢鬆亥ア樊ァ縺ョ縺ソ繧呈欠螳壹@縺溷エ蜷医↓蜍穂ス懊☆繧九%縺ィ繧堤「コ隱阪☆繧九
+ (event縺ョ螳夂セゥ縺ッ繝悶Ο繝繧ッ蜀縺ョinput縺九i繝輔か繝シ繧ォ繧ケ繧「繧ヲ繝医@縺溷エ蜷医↓蜍穂ス) +
+ + + + + + +
+ + + + 繝輔か繝シ繝槭ャ繝亥ア樊ァ縺ォ蠕薙▲縺ヲ蜃コ蜉帙&繧後k縺薙→ + + + + + + + + + + + + + + + + + + +
diff --git a/node_modules/nablarch-widget-field-base/package.json b/node_modules/nablarch-widget-field-base/package.json new file mode 100644 index 0000000..c96f035 --- /dev/null +++ b/node_modules/nablarch-widget-field-base/package.json @@ -0,0 +1,7 @@ +{ + "name": "nablarch-widget-field-base", + "version": "1.0.1", + "_from" : "nablarch-widget-field-base@1.0.1", + "description": "繝輔ぅ繝シ繝ォ繝峨え繧」繧ク繧ァ繝繝亥渕逶、", + "dependencies": {} +} diff --git a/node_modules/nablarch-widget-field-base/ui_local/js/jsp/taglib/field.js b/node_modules/nablarch-widget-field-base/ui_local/js/jsp/taglib/field.js new file mode 100644 index 0000000..8d88317 --- /dev/null +++ b/node_modules/nablarch-widget-field-base/ui_local/js/jsp/taglib/field.js @@ -0,0 +1,38 @@ +/** + * 繝輔ぅ繝シ繝ォ繝峨え繧」繧ク繧ァ繝繝医ョ繧ィ繝溘Η繝シ繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * JSP繧ソ繧ー `` 縺ッ荳玖ィ倥ョ繧ソ繧ー繝輔ぃ繧、繝ォ縺ォ繧医j謠冗判縺輔l繧九 + * + * (繧オ繝シ繝悶Ξ繝繝医さ繝ウ繝繧ュ繧ケ繝)/WEB-INF/tags/widget/field/xxx.tag + * + * @module jsp.taglib + * @class jsp.taglib.column + * @author Iwauo Tajima + */ +define(['jsp', 'sugar'], +function($) { 'use strict'; +return function($tagBody, context, tagName, _context) { + var attrs = $(this).jsp_attrs(context) + , sample = attrs.sample + , separator = attrs.sampleseparator; + + if (sample && separator) { + context.setVar('sample', sample.split(separator)); + } + if (tagName === 'listbuilder') { + context.setVar(attrs.name, ['']); + } + if (tagName === 'label' || tagName === 'text') { + context.setVar(attrs.name, attrs.sample); + } + if (tagName === 'label_id_value' && attrs.sample) { + context.setVar("idName", "__sample_id"); + context.setVar("valueName", "__sample_value"); + context.setVar("__sample_id", attrs.sample.split(':')[0] || ''); + context.setVar("__sample_value", attrs.sample.split(':')[1] || ''); + } + + return $.loadTagfile.apply( + this, ['../WEB-INF/tags/widget/field/', $tagBody, context, tagName, _context] + ); +};}); diff --git a/node_modules/nablarch-widget-field-base/ui_public/WEB-INF/tags/widget/field/base.tag b/node_modules/nablarch-widget-field-base/ui_public/WEB-INF/tags/widget/field/base.tag new file mode 100644 index 0000000..d2821af --- /dev/null +++ b/node_modules/nablarch-widget-field-base/ui_public/WEB-INF/tags/widget/field/base.tag @@ -0,0 +1,58 @@ +<%-- + 繝輔ぅ繝シ繝ォ繝牙ア騾壹ョ繝繝ウ繝励Ξ繝シ繝 + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="蜈・蜉幃逶ョ縺ョ蜈ア騾壹ユ繝ウ繝励Ξ繝シ繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="fieldClass" description="蜈・蜉帙ヵ繧」繝シ繝ォ繝峨ョDIV縺ォ莉倅ク弱☆繧議ssClass" rtexprvalue="true" %> +<%@ attribute name="contentId" description="繧ウ繝ウ繝繝ウ繝驛ィ繧偵Λ繝繝励☆繧掬iv繧ソ繧ー縺ォ險ュ螳壹☆繧喫d螻樊ァ蛟、" %> +<%@ attribute name="contentClass" description="繧ウ繝ウ繝繝ウ繝驛ィ繧偵Λ繝繝励☆繧掬iv繧ソ繧ー縺ォ險ュ螳壹☆繧九け繝ゥ繧ケ螻樊ァ" %> +<%@ attribute name="inputField" required="true" description="蜈・蜉帙ヵ繧」繝シ繝ォ繝峨°蜷ヲ縺" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺(inputField縺荊rue縺ョ蝣エ蜷医ョ縺ソ譛牙柑)" %> + +<%@ attribute name="fieldContent" fragment="true" required="true" description="繝輔ぅ繝シ繝ォ繝牙・蜉幃Κ繧ソ繧ー" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%------------------------------------------------------%> + + +<%-- +label縺ョ繧ー繝ェ繝繝画焚繧堤ョ怜コ縺吶k +(c:if 繧貞茜逕ィ縺吶k縺ィ繝繝「陦ィ遉コ縺ォ繝溘せ縺吶k縺ョ縺ァ,n:set蜀縺ョ荳蛾貍皮ョ励〒蝗樣∩縺吶k縲#8426) +--%> + + + + + + + +
+ <%-- 繝輔ぅ繝シ繝ォ繝牙錐遘ー --%> + + + <%-- 蜷咲ァー縺ィ蜈・蜉幃Κ縺ョ蛹コ蛻繧企Κ --%> + + <%-- 蜈・蜉帙ヵ繧」繝シ繝ォ繝峨ョ蝣エ蜷医∝ソ鬆医槭シ繧ッ縺ョ蜃コ蜉帛愛螳壹r陦後≧ --%> + + *シ + + + + + <%-- 繝輔ぅ繝シ繝ォ繝牙・蜉幃Κ --%> +
+ +
+ +
+ diff --git a/node_modules/nablarch-widget-field-base/ui_public/WEB-INF/tags/widget/field/inputbase.tag b/node_modules/nablarch-widget-field-base/ui_public/WEB-INF/tags/widget/field/inputbase.tag new file mode 100644 index 0000000..019f0e8 --- /dev/null +++ b/node_modules/nablarch-widget-field-base/ui_public/WEB-INF/tags/widget/field/inputbase.tag @@ -0,0 +1,50 @@ +<%-- + 蜊倅ク縺ョ蜈・蜉幃逶ョ繧呈戟縺、繝輔ぅ繝シ繝ォ繝峨ョ蜈ア騾壹ユ繝ウ繝励Ξ繝シ繝 + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="蜈・蜉幃逶ョ縺ョ蜈ア騾壹ユ繝ウ繝励Ξ繝シ繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="fieldContent" fragment="true" required="true" description="繝輔ぅ繝シ繝ォ繝牙・蜉幃Κ繧ソ繧ー" %> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="name" description="HTML縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="hint" description="蜈・蜉帛螳ケ繧逡呎э轤ケ縺ェ縺ゥ縺ョ陬懷勧繝繧ュ繧ケ繝" rtexprvalue="true" %> +<%@ attribute name="fieldClass" description="蜈・蜉帙ヵ繧」繝シ繝ォ繝峨ョDIV縺ォ莉倅ク弱☆繧議ssClass" rtexprvalue="true" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> + +<%------------------------------------------------------%> + + + + + + + + + <%-- 繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク陦ィ遉コ蝓 --%> +
+ +
+ <%-- 陬懷勧繝繧ュ繧ケ繝郁。ィ遉コ蝓 --%> + + + +
+
+ +
diff --git a/node_modules/nablarch-widget-field-base/ui_public/css/field/base-compact.less b/node_modules/nablarch-widget-field-base/ui_public/css/field/base-compact.less new file mode 100644 index 0000000..ef0909c --- /dev/null +++ b/node_modules/nablarch-widget-field-base/ui_public/css/field/base-compact.less @@ -0,0 +1,59 @@ +#content { + .field { + .content-row; + + padding: 5px 0; + + &::before, &::after { + display: table; + content: " "; + } + &::after { + clear: both; + } + + .grid-width-of(@fieldGridSpan); + + // 繝ゥ繝吶Ν驛ィ + label { + text-align: right; + .grid-col(@labelGridSpan); + // 繝ゥ繝吶Ν驛ィ縺ィ繧サ繝代Ξ繝シ繧ソ驛ィ縺ィ縺ョ遨コ逋ス繧堤強縺上☆繧九◆繧√↓縲 + // 蜿ウ蛛エ縺ョ繝槭シ繧ク繝ウ繧貞キヲ蛛エ縺ォ遘サ蜍 + //シ医槭シ繧ク繝ウ繧0縺ォ縺吶k縺ィ謖螳壹@縺溘げ繝ェ繝繝牙ケ繧医j繝槭シ繧ク繝ウ蛻迢ュ縺上↑繧九◆繧∝スア髻ソ縺ョ縺ェ縺蟾ヲ蛛エ縺ォ遘サ蜍輔☆繧具シ + margin: 0 0 0 @gutterWidth; + } + + // 繝ゥ繝吶Ν驛ィ縺ィ蜈・蜉幃Κ縺ョ繧サ繝代Ξ繝シ繧ソ + span.label-separator { + .grid-col(1); + text-align: right; + } + + // 蜈・蜉幃Κ + .field-content { + .grid-col(@inputGridSpan); + + input, select, textarea, label { + .grid-col(@inputGridSpan); + float: none; + } + + // 蜈・蜉幃Κ縺ォ蟇セ蠢懊☆繧九お繝ゥ繝シ陦ィ遉コ鬆伜沺 + .fielderror { + .grid-col(@inputGridSpan); + } + } + + // 豕ィ驥郁。ィ遉コ鬆伜沺 + .note { + .grid-col(@inputGridSpan); + } + + button { + font-size: @smallerFontSize; + padding: 0 5px; + } + } +} + diff --git a/node_modules/nablarch-widget-field-base/ui_public/css/field/base-multicol.less b/node_modules/nablarch-widget-field-base/ui_public/css/field/base-multicol.less new file mode 100644 index 0000000..2c47e1b --- /dev/null +++ b/node_modules/nablarch-widget-field-base/ui_public/css/field/base-multicol.less @@ -0,0 +1,33 @@ +#content { + .field { + float: left; + padding: 5px 0; + + // 繝ゥ繝吶Ν驛ィ + label { + float: left; + text-align: right; + font-weight: bold; + // 繝ゥ繝吶Ν驛ィ縺ィ繧サ繝代Ξ繝シ繧ソ驛ィ縺ィ縺ョ遨コ逋ス繧堤強縺上☆繧九◆繧√↓縲 + // 蜿ウ蛛エ縺ョ繝槭シ繧ク繝ウ繧貞キヲ蛛エ縺ォ遘サ蜍 + //シ医槭シ繧ク繝ウ繧0縺ォ縺吶k縺ィ謖螳壹@縺溘げ繝ェ繝繝牙ケ繧医j繝槭シ繧ク繝ウ蛻迢ュ縺上↑繧九◆繧∝スア髻ソ縺ョ縺ェ縺蟾ヲ蛛エ縺ォ遘サ蜍輔☆繧具シ + margin: 0 0 0 @gutterWidth; + } + + // 繝ゥ繝吶Ν驛ィ縺ィ蜈・蜉幃Κ縺ョ繧サ繝代Ξ繝シ繧ソ + span.label-separator { + .grid-col(2); + text-align: right; + } + + // 蜈・蜉幃Κ + .field-content { + float: left; + + input, select, textarea, label { + width: 100%; + } + } + } +} + diff --git a/node_modules/nablarch-widget-field-base/ui_public/css/field/base-narrow.less b/node_modules/nablarch-widget-field-base/ui_public/css/field/base-narrow.less new file mode 100644 index 0000000..426386f --- /dev/null +++ b/node_modules/nablarch-widget-field-base/ui_public/css/field/base-narrow.less @@ -0,0 +1,45 @@ +#content { + .field { + .content-row; + + padding: 5px 0; + + &::before, &::after { + display: table; + content: " "; + } + &::after { + clear: both; + } + + .grid-width-of(@inputGridSpan); + margin: 0 auto !important; + + label { + // narrow陦ィ遉コ縺ァ縺ッ縲√ち繧、繝医Ν驛ィ繧貞キヲ蟇縺帙〒繝槭シ繧ク繝ウ辟。縺励〒陦ィ遉コ縺吶k + text-align: left !important; + margin: 0; + float: none; + } + + span.label-separator { + text-align: left; + float: none; + } + + div.field-content { + .grid-col(@inputGridSpan); + + input, select, textarea, label { + .grid-col(@inputGridSpan); + float: none; + } + + .note, .fielderror { + .grid-width-of(@inputGridSpan); + float: left !important; + margin: 0 auto !important; + } + } + } +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-base/ui_public/css/field/base-wide.less b/node_modules/nablarch-widget-field-base/ui_public/css/field/base-wide.less new file mode 100644 index 0000000..4d2f482 --- /dev/null +++ b/node_modules/nablarch-widget-field-base/ui_public/css/field/base-wide.less @@ -0,0 +1,58 @@ +#content { + .field { + .content-row; + + padding: 5px 0; + + &::before, &::after { + display: table; + content: " "; + } + &::after { + clear: both; + } + + .grid-width-of(@fieldGridSpan); + + // 繝ゥ繝吶Ν驛ィ + label { + text-align: right; + .grid-col(@labelGridSpan); + // 繝ゥ繝吶Ν驛ィ縺ィ繧サ繝代Ξ繝シ繧ソ驛ィ縺ィ縺ョ遨コ逋ス繧堤強縺上☆繧九◆繧√↓縲 + // 蜿ウ蛛エ縺ョ繝槭シ繧ク繝ウ繧貞キヲ蛛エ縺ォ遘サ蜍 + //シ医槭シ繧ク繝ウ繧0縺ォ縺吶k縺ィ謖螳壹@縺溘げ繝ェ繝繝牙ケ繧医j繝槭シ繧ク繝ウ蛻迢ュ縺上↑繧九◆繧∝スア髻ソ縺ョ縺ェ縺蟾ヲ蛛エ縺ォ遘サ蜍輔☆繧具シ + margin: 0 0 0 @gutterWidth; + } + + // 繝ゥ繝吶Ν驛ィ縺ィ蜈・蜉幃Κ縺ョ繧サ繝代Ξ繝シ繧ソ + span.label-separator { + .grid-col(1); + text-align: right; + } + + // 蜈・蜉幃Κ + .field-content { + .grid-col(@inputGridSpan); + + input, select, textarea, label { + .grid-col(@inputGridSpan); + float: none; + } + + // 蜈・蜉幃Κ縺ォ蟇セ蠢懊☆繧九お繝ゥ繝シ陦ィ遉コ鬆伜沺 + .fielderror { + .grid-col(@inputGridSpan); + } + } + + // 豕ィ驥郁。ィ遉コ鬆伜沺 + .note { + .grid-col(@inputGridSpan); + } + + button { + font-size: @smallerFontSize; + padding: 0 5px; + } + } +} diff --git a/node_modules/nablarch-widget-field-base/ui_public/css/field/base.less b/node_modules/nablarch-widget-field-base/ui_public/css/field/base.less new file mode 100644 index 0000000..9f8aec6 --- /dev/null +++ b/node_modules/nablarch-widget-field-base/ui_public/css/field/base.less @@ -0,0 +1,76 @@ +#content { + .field { + + + // 繝ゥ繝吶Ν驛ィ + label { + font-weight: bold; + } + + // disabled繧ッ繝ゥ繧ケ縺ョ險ュ螳壹&繧後◆繝輔ぅ繝シ繝ォ繝峨ョ繝ゥ繝吶Ν縺ッ譁蟄励r阮縺上☆繧 + &.disabled label { + color: gray; + } + + // 繝ゥ繝吶Ν驛ィ縺ィ蜈・蜉幃Κ縺ョ繧サ繝代Ξ繝シ繧ソ + span.label-separator { + font-weight: bold; + + .required { + color: red; + font-weight: bold; + } + } + + // 繧サ繝代Ξ繝シ繧ソ + // 蜈・蜉幃Κ蜀縺ョ隍謨ー蜈・蜉幄ヲ∫エ縺ョ蛹コ蛻繧翫→縺励※菴ソ逕ィ縺吶k + .spacer, .separator { + float : left; + font-weight : bold; + margin-right : 5px + } + + // 蜈・蜉幃Κ + .field-content { + position: relative; + overflow: visible; + + input, select, textarea, label { + &.inline { + float: left !important; + } + } + + input[type="checkbox"], input[type="radio"] { + width: 30px; + } + + input[type="text"] { + height: 22px; + } + + // 蜈・蜉幃Κ縺ォ蟇セ蠢懊☆繧九お繝ゥ繝シ陦ィ遉コ鬆伜沺 + .fielderror { + font-size: @smallestFontSize; + } + + // 繝ェ繧ケ繝郁。ィ遉コ縺ョ蝣エ蜷医∽ク贋ク九ョ繝槭シ繧ク繝ウ繧貞炎髯、 + ul, ol { + margin: 0 0 0 2em; + } + + } + + // 豕ィ驥郁。ィ遉コ鬆伜沺 + .note { + color: grey; + font-size: @smallestFontSize; + } + + button { + font-size: @smallerFontSize; + padding: 0 5px; + } + } +} + diff --git "a/node_modules/nablarch-widget-field-base/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/index.jsp" "b/node_modules/nablarch-widget-field-base/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/index.jsp" new file mode 100644 index 0000000..93ea8be --- /dev/null +++ "b/node_modules/nablarch-widget-field-base/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/index.jsp" @@ -0,0 +1,204 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
繧ヲ繧」繧ク繧ァ繝繝繧オ繝シ繝舌し繧、繝繧オ繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア騾繧ッ繝ゥ繧、繧「繝ウ繝
蜊倩。後ユ繧ュ繧ケ繝亥・蜉 + + + + + +
隍謨ー陦後ユ繧ュ繧ケ繝亥・蜉 + + + + + +
繝代せ繝ッ繝シ繝牙・蜉 + + + + + +
繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ + + + + + +
繝ゥ繧ク繧ェ繝懊ち繝ウ + + + + + +
繝励Ν繝繧ヲ繝ウ + + + + + +
繧ウ繝シ繝牙、繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ + + + + + +
繧ウ繝シ繝牙、繝ゥ繧ク繧ェ繝懊ち繝ウ + + + + + +
繧ウ繝シ繝牙、繝励Ν繝繧ヲ繝ウ + + + + + +
繝ゥ繝吶Ν陦ィ遉コ + + + + + +
繝ゥ繝吶Ν繝悶Ο繝繧ッ + - + + + + - +
繧ウ繝シ繝牙、繝ゥ繝吶Ν + + + + + +
ID縺ィ繝ゥ繝吶Ν陦ィ遉コ + + + + + +
蜊倡峡繝偵Φ繝- + + -
+ + + 縺昴ョ莉悶ョ繝繧ケ繝(謨エ逅縺輔l縺ヲ縺縺ェ縺繧ゅョ) + + + +
    +
  • +
+ +
    +
  • +
+
+
+
+
diff --git a/node_modules/nablarch-widget-field-block/package.json b/node_modules/nablarch-widget-field-block/package.json new file mode 100644 index 0000000..27da924 --- /dev/null +++ b/node_modules/nablarch-widget-field-block/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-block" +, "version": "1.0.1" +, "_from" : "nablarch-widget-field-block@1.0.1" +, "dependencies": { + } +, "description": "隕句コ縺嶺サ倥″繝悶Ο繝繧ッ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-block/ui_public/WEB-INF/tags/widget/field/block.tag b/node_modules/nablarch-widget-field-block/ui_public/WEB-INF/tags/widget/field/block.tag new file mode 100644 index 0000000..9e57e8f --- /dev/null +++ b/node_modules/nablarch-widget-field-block/ui_public/WEB-INF/tags/widget/field/block.tag @@ -0,0 +1,49 @@ +<%-- + 隕∫エ驟咲スョ繝悶Ο繝繧ッ + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="隕句コ縺嶺サ倥ヶ繝ュ繝繧ッ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%@ attribute name="title" description="繝悶Ο繝繧ッ縺ョ隕句コ縺" rtexprvalue="true" %> +<%@ attribute name="id" description="html縺ョid螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="collapsible" description="繝悶Ο繝繧ッ繧帝幕髢牙庄閭ス縺ィ縺吶k縺(繝繝輔か繝ォ繝医ッfalse)" rtexprvalue="true" %> +<%@ attribute name="name" description="繝悶Ο繝繧ッ縺ョ髢矩哩迥カ諷九r菫晄戟縺吶k繝輔か繝シ繝縺ョ蜈・蜉幄ヲ∫エ蜷" rtexprvalue="true" %> +<%@ attribute name="value" description="繝悶Ο繝繧ッ縺碁幕縺九l縺ヲ縺縺溷エ蜷医↓繧オ繝シ繝仙エ縺ォ騾∽ソ。縺吶k蛟、" rtexprvalue="true" %> +<%@ attribute name="collapsed" description="蛻晄悄陦ィ遉コ譎ゅ↓繝悶Ο繝繧ッ繧帝哩縺倥k縺九←縺縺九(繝繝輔か繝ォ繝医ッfalse)" rtexprvalue="true" %> +<%@ attribute name="showTitle" description="繝悶Ο繝繧ッ縺ョ隕句コ縺励r陦ィ遉コ縺吶k縺九←縺縺九(繝繝輔か繝ォ繝医ッtrue)" rtexprvalue="true" %> + + + + +<%-- 蜈・蜉幃逶ョ驟咲スョ逕ィ繝悶Ο繝繧ッ --%> +
+ + + + +

+ +

+
+ +

+ +

+
+
+ +
+ +
+
diff --git "a/node_modules/nablarch-widget-field-block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\203\226\343\203\255\343\203\203\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\203\226\343\203\255\343\203\203\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..aa10bcd --- /dev/null +++ "b/node_modules/nablarch-widget-field-block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\203\226\343\203\255\343\203\203\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,91 @@ +runTest( + title螻樊ァ縺ョ繝繧ケ繝, id螻樊ァ縺ョ繝繧ケ繝, collapsible縺ョ繝繧ケ繝, showTitle螻樊ァ縺ョ繝繧ケ繝); + +/** + * 蠢鬆亥ア樊ァシ井サ・荳矩逶ョシ峨ョ繝繧ケ繝医r螳滓命縺吶k縲 + * + *
    + *
  • title螻樊ァ
  • + *
+ */ +function title螻樊ァ縺ョ繝繧ケ繝() { + var find_title = function(test_case) { + $test_block = find_block(test_case) + , $title = $test_block.find('h2'); + return $.trim($title.html()); + } + equal(find_title('not-title'), '', 'title譛ェ謖螳:title縺ッ遨コ縺ァ縺ゅk縺薙→'); + equal(find_title('title-blank'), '', 'title繝悶Λ繝ウ繧ッ:title縺ッ遨コ縺ァ縺ゅk縺薙→'); + equal(find_title('title'), '繧ソ繧、繝医Ν謖螳', 'title謖螳:謖螳壹@縺溷、縺瑚ィュ螳壹&繧後k縺薙→'); +} + +/** + * id螻樊ァ縺ョ繝繧ケ繝医r螳滓命縺吶k縲 + */ +function id螻樊ァ縺ョ繝繧ケ繝() { + var find_id = function(test_case) { + var $test_block = find_block(test_case) + return $test_block.attr('id'); + } + + equal(find_id('not-id'), '', 'id譛ェ謖螳:id螻樊ァ縺ッ蟄伜惠縺励↑縺縺薙→'); + equal(find_id('id-blank'), '', 'id繝悶Λ繝ウ繧ッ:id螻樊ァ縺ッ蟄伜惠縺励↑縺縺薙→'); + equal(find_id('id'), 'test-id', 'id謖螳:謖螳壹@縺溷、縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→'); + +} + +/** + * collapsible螻樊ァ縺ョ繝繧ケ繝 + */ +function collapsible縺ョ繝繧ケ繝() { + var find_title = function (test_case) { + var $test_block = find_block(test_case) + $title = $test_block.find('h2'); + return $title; + }, + assert_not_collapsible = function (test_case, expectedTitle) { + var $title = find_title(test_case); + + equal($title.html().trim(), expectedTitle, test_case + ':title縺梧Φ螳夐壹j蜃コ蜉帙&繧後k縺薙→'); + ok(!$title.hasClass('nablarch_Collapsible'), test_case + ':髢矩哩蜿ッ閭ス繧堤、コ縺吶槭シ繧ォCSS縺瑚ィュ螳壹&繧後↑縺縺薙→'); + }, + assert_collapsible = function(test_case, expectedTitle, closed) { + var $title = find_title(test_case); + + equal($title.text().trim(), expectedTitle, test_case + ':title縺梧Φ螳夐壹j蜃コ蜉帙&繧後k縺薙→'); + ok($title.hasClass('nablarch_Collapsible'), test_case + ':髢矩哩蜿ッ閭ス繧堤、コ縺吶槭シ繧ォCSS縺瑚ィュ螳壹&繧後k縺薙→'); + equal($title.hasClass('-closed'), closed, test_case + ':髢矩哩迥カ諷九′諠ウ螳夐壹j蜃コ蜉帙&繧後k縺薙→'); + } + + + // 髢矩哩蜿ッ閭ス縺ィ縺ェ繧峨↑縺蝣エ蜷医ョ繧ア繝シ繧ケ + assert_not_collapsible('not-collapsible', 'collapsible譛ェ謖螳'); + assert_not_collapsible('collapsible-blank', 'collapsible繝悶Λ繝ウ繧ッ'); + assert_not_collapsible('collapsible-false', 'collapsible:false'); + + // 髢矩哩蜿ッ閭ス縺ィ縺ェ繧句エ蜷医ョ繧ア繝シ繧ケ + assert_collapsible('collapsible-true', 'collapsible:true', false); + assert_collapsible('collapsible-true-closed', 'collapsible:true(closed)', true); +} + +function showTitle螻樊ァ縺ョ繝繧ケ繝() { + + var find_title = function(test_case) { + $test_block = find_block(test_case) + , $title = $test_block.find('h2'); + return $.trim($title.html()); + } + + equal(find_title('not-showtitle'), 'showTitle譛ェ謖螳', 'showTitle譛ェ謖螳:繧ソ繧、繝医Ν縺瑚。ィ遉コ縺輔l繧九%縺ィ'); + equal(find_title('showtitle-blank'), 'showTitle繝悶Λ繝ウ繧ッ', 'showTitle繝悶Λ繝ウ繧ッ:繧ソ繧、繝医Ν縺瑚。ィ遉コ縺輔l繧九%縺ィ'); + equal(find_title('showtitle-true'), 'showTitle:true', 'showTitle:true:繧ソ繧、繝医Ν縺瑚。ィ遉コ縺輔l繧九%縺ィ'); + ok(find_block('showtitle-false').is(':not(:has(h2))'), 'showTitle:false:繧ソ繧、繝医Ν縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→'); + +} + + +function find_block(test_case) { + var test = $('span.test-case.' + test_case); + return test.next('div.title'); +} + diff --git "a/node_modules/nablarch-widget-field-block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\203\226\343\203\255\343\203\203\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\203\226\343\203\255\343\203\203\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..e0f0426 --- /dev/null +++ "b/node_modules/nablarch-widget-field-block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\203\226\343\203\255\343\203\203\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,25 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + #test-id { + background-color: #ffd390; + height: 50px; + + } + + + diff --git "a/node_modules/nablarch-widget-field-block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\203\226\343\203\255\343\203\203\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-field-block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\203\226\343\203\255\343\203\203\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..c3a7b2d --- /dev/null +++ "b/node_modules/nablarch-widget-field-block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\203\226\343\203\255\343\203\203\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,62 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + title螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷 + + + title螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷 + + + title螻樊ァ繧呈欠螳 + + + ID螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷 + + + ID螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳 + + + ID螻樊ァ繧呈欠螳 + + + collapsible螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医髢矩哩蜿ッ閭ス縺ィ縺ッ縺ェ繧峨↑縺縺薙→ + + + collapsible螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医髢矩哩蜿ッ閭ス縺ィ縺ッ縺ェ繧峨↑縺縺薙→ + + + collapsible螻樊ァ縺掲alse縺ョ蝣エ蜷医髢矩哩蜿ッ閭ス縺ィ縺ッ縺ェ繧峨↑縺縺薙→ + + + collapsible螻樊ァ縺荊rue縺ョ蝣エ蜷医髢矩哩蜿ッ閭ス縺ィ縺ェ繧九%縺ィシ磯幕縺九l縺溽憾諷具シ + + + 髢九°繧後◆迥カ諷 + + + + collapsible螻樊ァ縺荊rue縺ョ蝣エ蜷医〒closed縺荊rue縺ョ蝣エ蜷医ッ縲髢矩哩蜿ッ閭ス縺ィ縺ェ繧企哩縺倥i繧後◆迥カ諷九〒陦ィ遉コ縺輔l繧九%縺ィ + + + 髢峨§繧峨l縺溽憾諷 + + + + showTitle螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ち繧、繝医Ν螻樊ァ縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + showTitle螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν螻樊ァ縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + showTitle螻樊ァ縺荊rue縺ョ蝣エ蜷医√ち繧、繝医Ν螻樊ァ縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + showTitle螻樊ァ縺掲alse縺ョ蝣エ蜷医√ち繧、繝医Ν螻樊ァ縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→ + + + diff --git a/node_modules/nablarch-widget-field-calendar/package.json b/node_modules/nablarch-widget-field-calendar/package.json new file mode 100644 index 0000000..c8d66eb --- /dev/null +++ b/node_modules/nablarch-widget-field-calendar/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-calendar", + "version": "1.0.1", + "_from" : "nablarch-widget-field-calendar@1.0.1", + "description": "繧ォ繝ャ繝ウ繝繝シ譌・莉伜・蜉帙え繧」繧ク繧ァ繝繝", + "dependencies": { + } +} diff --git a/node_modules/nablarch-widget-field-calendar/ui_public/WEB-INF/tags/widget/field/calendar.tag b/node_modules/nablarch-widget-field-calendar/ui_public/WEB-INF/tags/widget/field/calendar.tag new file mode 100644 index 0000000..9d660ce --- /dev/null +++ b/node_modules/nablarch-widget-field-calendar/ui_public/WEB-INF/tags/widget/field/calendar.tag @@ -0,0 +1,106 @@ +<%-- + 繧ォ繝ャ繝ウ繝繝シ譌・莉伜・蜉婉I驛ィ蜩 + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="譌・莉伜・蜉幃逶ョ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="domain" description="鬆逶ョ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="readonly" description="邱ィ髮蜿ッ閭ス縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="name" description="HTML縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ蛟、 (逵∫払譎ゅッname螻樊ァ縺ィ蜷後§蛟、繧剃スソ逕ィ縺吶k)" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> +<%@ attribute name="maxlength" description="蜈・蜉帶枚蟄玲焚縺ョ荳企剞(繝繝輔か繝ォ繝:10譁蟄)" rtexprvalue="true" %> +<%@ attribute name="example" description="蜈キ菴鍋噪縺ェ蜈・蜉帑セ九r陦ィ縺吶ユ繧ュ繧ケ繝(placeholder縺ェ縺ゥ縺ョ蠖「蠑上〒陦ィ遉コ縺吶k)" rtexprvalue="true" %> +<%@ attribute name="nameAlias" description="荳縺、縺ョ繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ォ蟇セ縺励※隍謨ー縺ョ蜈・蜉幃逶ョ繧偵ワ繧、繝ゥ繧、繝郁。ィ遉コ縺吶k蝣エ蜷医↓謖螳壹☆繧具シ磯逶ョ髢鍋イセ譟サ縺ェ縺ゥシ峨りゥウ邏ー縺ォ縺、縺縺ヲ縺ッ縲、pplication Framework隗」隱ャ譖ク縺ョ縲後お繝ゥ繝シ陦ィ遉コ縲阪r蜿らァ縲" rtexprvalue="true" %> +<%@ attribute name="hint" description="蜈・蜉帛螳ケ繧逡呎э轤ケ縺ェ縺ゥ縺ョ陬懷勧繝繧ュ繧ケ繝" rtexprvalue="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%-----------------------霑ス蜉螻樊ァ---------------------------%> +<%@ attribute name="format" description="譌・莉倥ヵ繧ゥ繝シ繝槭ャ繝(繝繝輔か繝ォ繝:yyyy/MM/dd)" rtexprvalue="true" %> +<%@ attribute name="locale" description="險隱櫁ィュ螳(繝繝輔か繝ォ繝:ja)" rtexprvalue="true" %> + +<%---------------------- 險ュ險域嶌逕ィ螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繧ォ繝ャ繝ウ繝繝シ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" type="java.lang.Integer" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> + +<%-- 繝繝輔か繝ォ繝医ョ譌・莉倥ヵ繧ゥ繝シ繝槭ャ繝医ョ譛螟ァ蜈・蜉帶枚蟄玲焚 --%> + + + + + + + +<%-- 繝繝輔か繝ォ繝医ョ譌・莉倥ヵ繧ゥ繝シ繝槭ャ繝 --%> + + +<%-- 繝繝輔か繝ォ繝医ョ繝ュ繧ア繝シ繝ォ --%> + + + + + + + + + + + + + + + + + + + + + diff --git a/node_modules/nablarch-widget-field-calendar/ui_public/css/ui/calendar.less b/node_modules/nablarch-widget-field-calendar/ui_public/css/ui/calendar.less new file mode 100644 index 0000000..f38f44d --- /dev/null +++ b/node_modules/nablarch-widget-field-calendar/ui_public/css/ui/calendar.less @@ -0,0 +1,78 @@ +button.nablarch_DatePicker { + border-radius: 0; + position: absolute; + right: -5px; + top: 0px; + height: 24px; +} + +div.calendar { + .grid-col(@inputGridSpan); + background-color : @baseColor; + position : absolute; + top : 25px; + left : 0px; + z-index : 5; + border : 1px solid @mainColor2; + .box-shadow(5px, 5px, 5px, #ddd); + + div.calendar-control { + button { + width: 35px; + background-color: @baseColor; + background: @baseColor; + border-radius: 0; + color: dimgray; + text-align: center; + border: none; + filter: none; + } + } + + div.calendar-control, + table.dates { + .grid-col(@inputGridSpan); + border-spacing : 1px; + a { + font-weight : bold; + } + } + + span.year { + float: right; + } + + span.month { + float: left; + } + + th { + padding: 0 1px; + } + + td { + padding: 3px 1px; + } + + th { + font-size : @smallestFontSize; + width : 45px; + } + + td { + color: #aaa; + &.today { + border: 1px solid blue; + } + &.thisMonth { + color : @mainColor2; + cursor : pointer; + &.sunday { + color : red; + } + &:hover, &.selected { + background-color: yellow; + } + } + } +} diff --git a/node_modules/nablarch-widget-field-calendar/ui_public/js/nablarch/ui/DatePicker.js b/node_modules/nablarch-widget-field-calendar/ui_public/js/nablarch/ui/DatePicker.js new file mode 100644 index 0000000..c4a9bc5 --- /dev/null +++ b/node_modules/nablarch-widget-field-calendar/ui_public/js/nablarch/ui/DatePicker.js @@ -0,0 +1,442 @@ +define(["jquery" + , "nablarch/util/DateUtil" + , "./Widget" + , "text!./DatePicker.template" + , "./readonly" + , "sugar"], +function($, DateUtil, Widget, template, readOnly) { "use strict"; + /** + * 譌・莉伜・蜉帶ゥ溯ス + * ============================================ + * 譌・莉伜・蜉帶ゥ溯ス縺ッ譌・莉俶枚蟄怜励r蜈・蜉帙☆繧九◆繧√ョ蜈・蜉幄」懷勧UI驛ィ蜩√〒縺ゅk縲 + * 譌・莉伜・蜉帶ゥ溯ス縺ッ縲∽サ・荳九ョ3縺、縺ョ隕∫エ縺九i讒区舌&繧後k縲 + * + * 1. 蜈・蜉帙ヵ繧」繝シ繝ォ繝 + * 2. 繧ォ繝ャ繝ウ繝繝シ縺ョ髢矩哩繧定。後≧隕∫エ + * 3. 繧ォ繝ャ繝ウ繝繝シ + * + * **繧ォ繝ャ繝ウ繝繝シ縺ョ髢矩哩** + * 繧ォ繝ャ繝ウ繝繝シ縺ョ髢矩哩繧定。後≧隕∫エ縺ッ縲∵守、コ逧縺ェ隕∫エ(繝懊ち繝ウ)縺ィ縺励※驟咲スョ縺励※繧ゅh縺縺後 + * 繝懊ち繝ウ繧堤怐逡・縺励※縲∝・蜉帙ヵ繧」繝シ繝ォ繝牙腰迢ャ縺ァ髢矩哩繧定。後o縺帙k縺薙→繧ょ庄閭ス縺ァ縺ゅk縲 + * 髢九°繧後◆繧ォ繝ャ繝ウ繝繝シ縺ッ縲√き繝ャ繝ウ繝繝シ荳翫ョ譌・莉倥r驕ク謚槭☆繧九°繧ォ繝ャ繝ウ繝繝シ縺ョ螟門エ縺ョ縺ゥ縺薙°繧 + * 繧ッ繝ェ繝繧ッ縺吶k縺ィ髢峨§繧九 + * 繧ォ繝ャ繝ウ繝繝シ縺ァ縺ョ蛟、縺ョ螟画峩縺後≠縺」縺溷エ蜷医ッ縲∝・蜉帙ヵ繧」繝シ繝ォ繝峨ョchange繧、繝吶Φ繝医ョ縺ソ縺檎匱轣ォ縺吶k縲 + * 縺溘□縺励∝・蜉帙ヵ繧」繝シ繝ォ繝峨〒螟画峩縺吶k髫帙↓騾壼クク逋コ逕溘☆繧鞠ocus, blur繧、繝吶Φ繝医↑縺ゥ縺ッ逋コ逕溘@縺ェ縺縲 + * + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------ + * 繧ォ繝ャ繝ウ繝繝シ縺ョ髢矩哩繧定。後≧隕∫エ縺ォ繝槭シ繧ォ繝シCSS繧ッ繝ゥ繧ケ **nablarch_DatePicker** 繧呈欠螳壹☆繧九 + * 縺セ縺溘∝・蜉帛ッセ雎。縺ョ繝輔ぅ繝シ繝ォ繝峨ョid螻樊ァ繧 **-input** 繧ェ繝励す繝ァ繝ウ縺ォ謖螳壹☆繧九 + * + *
+ * + * + * + *
+ * + * 谺。縺ョ險倩ソー萓九〒縺ッ縲髢矩哩繝懊ち繝ウ繧剃スソ逕ィ縺帙★縺ォ縲∝・蜉帙ヵ繧」繝シ繝ォ繝峨〒逶エ謗・繧ォ繝ャ繝ウ繝繝シ縺ョ髢矩哩繧定。後▲縺ヲ縺繧九 + * 縺薙ョ蝣エ蜷医√槭シ繧ォCSS縺ッ蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓逶エ謗・謖螳壹@縲√が繝励す繝ァ繝ウ **-input** 縺ッ逵∫払縺吶k縲 + * + *
+ * + * + * + * @class nablarch.ui.DatePicker + * + * @author Iwauo Tajima + * @since 1.2 + */ + DatePicker.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー縲 + * + * 隨ャ2蠑墓焚縺ォ貂。縺吶が繝励す繝ァ繝ウ繧ェ繝悶ず繧ァ繧ッ繝医ョ蜀螳ケ縺ッ莉・荳九ョ縺ィ縺翫j縲 + * + * @method DatePicker + * @constructor + * @param {HTMLElement} element 繝槭シ繧ォCSS繧呈欠螳壹@縺櫂OM繝弱シ繝 + * @param {Object} option 繧ェ繝励す繝ァ繝ウ繧呈シ邏阪@縺溘が繝悶ず繧ァ繧ッ繝 + * **input:** 譌・莉倥r蜈・蜉帙☆繧紀NPUT隕∫エ縺ョid螻樊ァ蛟、 + * **locale:** 陦ィ遉コ險隱 (繝繝輔か繝ォ繝:ja) + * **format:** 譌・莉倥ヵ繧ゥ繝シ繝槭ャ繝 (繝繝輔か繝ォ繝:yyyy/M/d) + * @return {DatePicker} 繧、繝ウ繧ケ繧ソ繝ウ繧ケ + */ + constructor: DatePicker + /** + * 驕ク謚樔クュ縺ョ譌・莉 + * @property selectedDate + * @type Date + */ + , selectedDate: null + /** + * 迴セ蝨ィ陦ィ遉コ縺励※縺繧九き繝ャ繝ウ繝繝シ縺ョ蝓コ貅匁律 + * @property displayingDate + * @type Date + */ + , displayingDate: null + /** + * 迴セ蝨ィ譌・莉(繧ォ繝ャ繝ウ繝繝シ繧帝幕縺縺滓凾轤ケ縺ァ譖エ譁ー縺吶k縲) + * @property today + * @type Date + */ + , today: null + /** + * 譌・莉倥ョ繝輔か繝シ繝槭ャ繝 + * @property format + * @type String + */ + , format: null + /** + * 陦ィ遉コ險隱 + * @property locale + * @type String + */ + , locale: null + /** + * 蜈・蜉帙ヵ繧」繝シ繝ォ繝 + * @property $input + * @type jQuery + */ + , $input: null + /** + * 繧ォ繝ャ繝ウ繝繝シ陦ィ遉コ驛ィ + * @property $calendar + * @type jQuery + */ + , $calendar : null + /** + * 迴セ蝨ィ縺ョ迥カ諷九↓豐ソ縺」縺ヲ縲√き繝ャ繝ウ繝繝シ繧(蜀)謠冗判縺吶k縲 + */ + , render: DatePicker_render + /** + * 繧ォ繝ャ繝ウ繝繝シ繧帝幕縺上 + * @method show + * @param event {jQuery.Event} 繧、繝吶Φ繝 + * @return {Boolean} 蟶ク縺ォfalse繧定ソ斐☆縲 + */ + , show: DatePicker_show + /** + * 繧ォ繝ャ繝ウ繝繝シ繧帝哩縺倥k縲 + * @method hide + * @param event {jQuery.Event} 繧、繝吶Φ繝 + * @return {Boolean} 蟶ク縺ォfalse繧定ソ斐☆縲 + */ + , hide: DatePicker_hide + /** + * 驕ク謚槭&繧後◆譌・莉倥r蜿門セ励☆繧九 + * 譌・莉倥′驕ク謚槭&繧後※縺縺ェ縺蝣エ蜷医d縲∵律莉倥ョ蠖「蠑上′豁」縺励¥縺ェ縺蝣エ蜷医ッ null 繧定ソ斐☆縲 + * + * @example + * // 驕ク謚槭&繧後◆譌・莉倥r蜿門セ励☆繧 + * var datePicker = $form.find(".nablarch_DatePicker").widget(DatePicker) + * , selectedDate = datePicker.getDate(); + * + * @method getDate + * @return {Date} 迴セ蝨ィ驕ク謚樔クュ縺ョ譌・莉 + */ + , getDate: DatePicker_getDate // + }); + + /** + * 繧、繝吶Φ繝亥ョ夂セゥ + * + * DatePicker.event = { + * "click" : DatePicker_toggle + * , "$calendar .thisMonth click" : DatePicker_selectDate + * , "$calendar .nextMonth click" : DatePicker_nextMonth + * , "$calendar .lastMonth click" : DatePicker_lastMonth + * , "$calendar .nextYear click" : DatePicker_nextYear + * , "$calendar .lastYear click" : DatePicker_lastYear + * , "$calendar .today click" : DatePicker_today + * , "$calendar .close click" : DatePicker_hide + * , "$input blur" : DatePicker_format + * }; + * + * @property event + * @type Object + * @static + * @final + */ + DatePicker.event = { + "click" : DatePicker_toggle + , "$calendar .thisMonth click" : DatePicker_selectDate + , "$calendar .nextMonth click" : DatePicker_nextMonth + , "$calendar .lastMonth click" : DatePicker_lastMonth + , "$calendar .nextYear click" : DatePicker_nextYear + , "$calendar .lastYear click" : DatePicker_lastYear + , "$calendar .today click" : DatePicker_today + , "$calendar .close click" : DatePicker_hide + , "$input blur" : DatePicker_format + }; + + + + /** + * 繧ォ繝ャ繝ウ繝繝シ縺ョ螟夜Κ繧偵け繝ェ繝繧ッ縺励◆蝣エ蜷医↓髢九°繧後※縺繧九き繝ャ繝ウ繝繝シ繧帝哩縺倥k縲 + * (iOS縺ァ縺ッ繧ッ繝ェ繝繧ッ繧、繝吶Φ繝医′迚ケ螳壹ョ隕∫エ荳翫〒縺励°繝舌ヶ繝ェ繝ウ繧ー縺励↑縺縺ョ縺ァ縲 + * 繧ソ繝繝√ョ繝舌う繧ケ縺ァ縺ッ繧ソ繝繝√う繝吶Φ繝医↓繝舌う繝ウ繝峨☆繧九) + */ + var touchEventSupported = ('ontouchstart' in window) + , touchstart = (touchEventSupported ? 'touchstart' : 'click'); + DatePicker.event["document " + touchstart] = occuredAtOutsideOfCalendar(DatePicker_hide); + + /** + * 繧ォ繝ャ繝ウ繝縺ョ螟夜Κ縺ァ繧、繝吶Φ繝医′逋コ逕溘@縺溷エ蜷医ョ縺ソ縲∵ク。縺輔l縺溘う繝吶Φ繝医ワ繝ウ繝峨Λ繧貞ョ溯。後☆繧 + * 繧、繝吶Φ繝医ワ繝ウ繝峨Λ繧定ソ斐☆縲 + */ + function occuredAtOutsideOfCalendar(f) { + return function(event) { + if (this.$calendar.find(getTouch(event).target).length === 0) { + f.apply(this, arguments); + } + }; + } + + /** + * 繧、繝吶Φ繝医が繝悶ず繧ァ繧ッ繝亥叙蠕 + */ + function getTouch(event) { + return touchEventSupported + ? event.originalEvent.touches[0] + : event; + } + + /** + * 繝「繧ク繝・繝シ繝ォ隴伜挨蜷 + * @property widgetType + * @type String + * @static + * @final + */ + DatePicker.widgetType = "nablarch_DatePicker"; + + Widget.register(DatePicker); + + function DatePicker(element, option) { + if (arguments.length === 0) return this; + this.$calendar = $(template).css({display:"none"}); + + this.constructor = DatePicker; + + this.format = option.format || "yyyy/M/d"; + this.locale = option.locale || "ja"; + this.$input = option.input ? $("#" + option.input.replace(/\./g, '\\.')) + : $(element); + Widget.call(this, element); + + renderWeekday(this); + this.$input.after(this.$calendar); + + // 譖懈律谺繧定。ィ遉コ縺吶k縲 + function renderWeekday(self) { + var date = new Date(); + (0).upto(6, function(n) { + var text; + date.setWeekday(n); + text = date.format("{dow}", self.locale); + self.$calendar.find("th.weekday" + n).text(text); + }); + } + } + + function DatePicker_show(event) { + var val; + if (this.$input.is(':disabled') || this.$input.hasClass(readOnly.markerCss)) { + return false; + } + // before open a calendar, close all calendars. + $('.' + DatePicker.widgetType).widgets(DatePicker).each(function() { + this.hide(); + }); + + val = this.$input.val(); + this.$input.data("datePicker_preval", val); // 繧ォ繝ャ繝ウ繝繝シ陦ィ遉コ譎ゅョ蛟、 + this.today = Date.create("today"); + if (val) { + this.selectedDate = DateUtil.parse(val, this.format); + this.$input.val(DateUtil.format(this.selectedDate, this.format, this.locale)); + } + else { + this.selectedDate = null; + this.$input.val(""); + } + this.displayingDate = this.selectedDate || this.today; + this.render(); + this.$calendar.fadeIn("fast"); + return false; + } + + + /** + * 繧ォ繝ャ繝ウ繝繝シ繧帝哩縺倥k縲 + * + * @param event {jQuery.Event} 繧、繝吶Φ繝 + * @returns false + */ + function DatePicker_hide(event) { + var showed = this.$calendar.is(":visible"); + this.$calendar.fadeOut("fast"); + if (showed && this.$input.val() !== this.$input.data("datePicker_preval")) { + this.$input.trigger("change"); + } + return false; + } + + function DatePicker_toggle(event) { + this.$calendar.is(":hidden") ? this.show(event) + : this.hide(event); + return false; + } + + /** + * 陦ィ遉コ蜀螳ケ繧貞驛ィ迥カ諷九↓蜷医o縺帙※譖エ譁ー縺吶k縲 + */ + function DatePicker_render() { + var $calendar = this.$calendar + , baseDate = this.displayingDate + , today = this.today + , selectedDate = this.selectedDate + , firstDate = baseDate.clone().beginningOfMonth().beginningOfWeek() + , lastDate = firstDate.clone().addDays(41) // 6 weeks + , thisMonth = baseDate.getMonth(); + + $calendar.find(".month .value") + .text(baseDate.format("{Month}", this.locale)); + $calendar.find(".year .value") + .text(baseDate.format("{yyyy}", this.locale)); + + Date.range(firstDate, lastDate).every('day', renderDate); + return false; + + function renderDate(date, index) { + var $cell = $calendar.find("td.day" + index); + + (date.getMonth() === thisMonth) + ? $cell.addClass("thisMonth") + : $cell.removeClass("thisMonth"); + + (selectedDate && date.is(selectedDate)) + ? $cell.addClass("selected") + : $cell.removeClass("selected"); + + date.is(today) + ? $cell.addClass("today") + : $cell.removeClass("today"); + + $cell.text(date.getDate()).data("calendar-date", date); + } + } + + /** + * 譌・莉倥r驕ク謚槭☆繧九 + * + * 繧、繝吶Φ繝医ョ逋コ逕溷縺ォ菫晄戟縺輔l縺滓律莉倥r繝輔か繝シ繝槭ャ繝医@縺ヲ縺九i + * 蜈・蜉帙ヵ繧」繝シ繝ォ繝峨↓險ュ螳壹☆繧九 + * + * @param event {jQuery.Event} 繧、繝吶Φ繝 + * @returns false + */ + function DatePicker_selectDate(event) { + var selectedDate = $(event.target).data("calendar-date"); + this.$input.val(DateUtil.format(selectedDate, this.format, this.locale)); + this.$node.focus(); + return this.hide(); + } + + /** + * 繧ォ繝ャ繝ウ繝繝シ縺ョ陦ィ遉コ譛医r1蟷エ縺吶☆繧√k縲 + * + * @param event {jQuery.Event} 繧、繝吶Φ繝 + * @returns false + */ + function DatePicker_nextYear(event) { + this.displayingDate = (1).yearAfter(this.displayingDate); + return this.render(); + } + + /** + * 繧ォ繝ャ繝ウ繝繝シ縺ョ陦ィ遉コ譛医r1蟷エ蜑阪↓謌サ縺吶 + * + * @param event {jQuery.Event} 繧、繝吶Φ繝 + * @returns false + */ + function DatePicker_lastYear(event) { + this.displayingDate = (1).yearBefore(this.displayingDate); + return this.render(); + } + + /** + * 繧ォ繝ャ繝ウ繝繝シ縺ョ陦ィ遉コ譛医r鄙梧怦縺ォ縺吶k縲 + * + * @param event {jQuery.Event} 繧、繝吶Φ繝 + * @returns false + */ + function DatePicker_nextMonth(event) { + this.displayingDate = (1).monthAfter(this.displayingDate); + return this.render(); + } + + /** + * 繧ォ繝ャ繝ウ繝繝シ縺ョ陦ィ遉コ譛医r荳繝カ譛域綾縺吶 + * + * @param event {jQuery.Event} 繧、繝吶Φ繝 + * @returns false + */ + function DatePicker_lastMonth(event) { + this.displayingDate = (1).monthBefore(this.displayingDate); + return this.render(); + } + + /** + * 繧ォ繝ャ繝ウ繝繝シ縺ョ陦ィ遉コ譛医r迴セ蝨ィ縺ョ譛医↓縺吶k縲 + * + * @param event {jQuery.Event} 繧、繝吶Φ繝 + * @returns false + */ + function DatePicker_today(event) { + this.displayingDate = this.today.clone(); + return this.render(); + } + + /** + * 驕ク謚槭&繧後◆譌・莉倥r蜿門セ励☆繧九 + * + * @returns {Date} 驕ク謚槭&繧後◆譌・莉倥 + * 譛ェ驕ク謚樊凾縺ッnull縺瑚ソ斐k縲 + */ + function DatePicker_getDate() { + return DateUtil.parse(this.$node.val(), this.format); + } + + /** + * 蜈・蜉帙ヵ繧」繝シ繝ォ繝峨ョ譁蟄怜励r譌・莉倥ヵ繧ゥ繝シ繝槭ャ繝医↓蠕薙▲縺ヲ邱ィ髮縺励 + * 縺昴ョ邨先棡譁蟄怜励r險ュ螳壹☆繧九 + * 繝輔ぅ繝シ繝ォ繝峨ョ譁蟄怜励′繝輔か繝シ繝槭ャ繝医↓蜷郁エ縺励↑縺九▲縺溷エ蜷医ッ + * 繝輔ぅ繝シ繝ォ繝牙縺ョ譁蟄怜励r繧ッ繝ェ繧「縺吶k縲 + */ + function DatePicker_format(event) { + var val = this.$input.val() + , date = val && DateUtil.parse(val, this.format); + + val = date ? DateUtil.format(date, this.format, this.locale) + : ''; + this.$input.val(val); + return this; + } + + + return DatePicker; +}); diff --git a/node_modules/nablarch-widget-field-calendar/ui_public/js/nablarch/ui/DatePicker.template b/node_modules/nablarch-widget-field-calendar/ui_public/js/nablarch/ui/DatePicker.template new file mode 100644 index 0000000..683e238 --- /dev/null +++ b/node_modules/nablarch-widget-field-calendar/ui_public/js/nablarch/ui/DatePicker.template @@ -0,0 +1,98 @@ +
+ +
+
+ + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
diff --git "a/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/index.jsp" "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/index.jsp" new file mode 100644 index 0000000..2dcca02 --- /dev/null +++ "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/index.jsp" @@ -0,0 +1,22 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
  • +
  • +
  • +
+
+
+
\ No newline at end of file diff --git "a/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\202\255\343\203\274\343\203\234\343\203\274\343\203\211\346\223\215\344\275\234_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\202\255\343\203\274\343\203\234\343\203\274\343\203\211\346\223\215\344\275\234_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..39ac40f --- /dev/null +++ "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\202\255\343\203\274\343\203\234\343\203\274\343\203\211\346\223\215\344\275\234_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,66 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + Enter繧ュ繝シ縺ョ蜍穂ス +
繧ォ繝ャ繝ウ繝繝シ縺ォ繝輔か繝シ繧ォ繧ケ縺後↑縺蝣エ蜷医√き繝ャ繝ウ繝繝シ縺悟虚菴懊○縺壹√し繝悶Α繝繝医&繧後k縺薙→縲 +
繧ォ繝ャ繝ウ繝繝シ繝懊ち繝ウ縺ォ繝輔か繝シ繧ォ繧ケ縺後≠繧句エ蜷医√き繝ャ繝ウ繝繝シ縺悟虚菴懊☆繧九%縺ィ縲 +
+
+ + + + + + + + + + + + +
+ + + + + + + + + + + + + +
diff --git "a/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\202\255\343\203\274\343\203\234\343\203\274\343\203\211\346\223\215\344\275\234_\347\231\273\351\214\262.jsp" "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\202\255\343\203\274\343\203\234\343\203\274\343\203\211\346\223\215\344\275\234_\347\231\273\351\214\262.jsp" new file mode 100644 index 0000000..01255a2 --- /dev/null +++ "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\202\255\343\203\274\343\203\234\343\203\274\343\203\211\346\223\215\344\275\234_\347\231\273\351\214\262.jsp" @@ -0,0 +1,11 @@ + + +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\202\255\343\203\274\343\203\234\343\203\274\343\203\211\346\223\215\344\275\234_\347\242\272\350\252\215.jsp" "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\202\255\343\203\274\343\203\234\343\203\274\343\203\211\346\223\215\344\275\234_\347\242\272\350\252\215.jsp" new file mode 100644 index 0000000..e1011c2 --- /dev/null +++ "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\202\255\343\203\274\343\203\234\343\203\274\343\203\211\346\223\215\344\275\234_\347\242\272\350\252\215.jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" new file mode 100644 index 0000000..5962bf3 --- /dev/null +++ "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" @@ -0,0 +1,290 @@ +"use strict"; + var animatingDuration = 1000 + , $button, $button2, $button3 + , $input, $input2, $input3 + , $calendar, $calendar2, $calendar3; + + runTest( + 繧ォ繝ャ繝ウ繝繝シ縺ョ譌・莉倥r繧ッ繝ェ繝繧ッ縺吶k縺薙→縺ァ譌・莉倥′蜈・蜉帙&繧後k縺薙→ + , 繧オ繝悶Α繝繝域凾縺ォ驕ク謚槭@縺滓律莉倥′騾∽ソ。縺輔l繧九%縺ィ + , 繧ォ繝ャ繝ウ繝繝シ縺ッ繝懊ち繝ウ繧呈款縺吶→髢九″_繧ォ繝ャ繝ウ繝繝シ縺ョ螟悶r繧ッ繝ェ繝繧ッ縺吶k縺ィ髢峨§繧九%縺ィ + , 繧ォ繝ャ繝ウ繝繝シ繧帝幕縺縺溘→縺阪ッ蜈・蜉帶ャ縺ョ譌・莉倥r蜷ォ繧譛医r陦ィ遉コ縺吶k縺薙→ + , 蜈・蜉帶ャ縺檎ゥコ縺ョ迥カ諷九〒繧ォ繝ャ繝ウ繝繝シ繧帝幕縺縺溷エ蜷医ッ迴セ蝨ィ縺ョ譛医r陦ィ遉コ縺吶k縺薙→ + , 繧ォ繝ャ繝ウ繝繝シ縺ョ陦ィ遉コ繧1繝カ譛亥腰菴阪↓遘サ蜍輔〒縺阪k縺薙→ + , 繧ォ繝ャ繝ウ繝繝シ縺ョ陦ィ遉コ繧1蟷エ蜊倅ス阪〒遘サ蜍輔〒縺阪k縺薙→ + , 隍謨ー縺ョ繧ォ繝ャ繝ウ繝繝シ繧剃スソ逕ィ縺励※繧よュ」縺励¥蜍穂ス懊☆繧九%縺ィ + , 蛻・繝ュ繧ア繝シ繝ォ_繝輔か繝シ繝槭ャ繝医r菴ソ逕ィ縺ァ縺阪k縺薙→ + , 譌・莉倥r逶エ謗・蜈・蜉帛セ後↓繝輔か繝シ繧ォ繧ケ縺悟、悶l繧九→蜈・蜉帛、繧定ェ蜍慕噪縺ォ繝輔か繝シ繝槭ャ繝医☆繧九%縺ィ + ); + +// runTest( + //邊セ譟サ繧ィ繝ゥ繝シ譎ゅ↓蜑榊屓驕ク謚槭@縺滄逶ョ縺御ソ晄戟縺輔l縺ヲ縺繧九%縺ィ + //, 邊セ譟サ繧ィ繝ゥ繝シ蠕後↓蜀埼∽ソ。縺励◆蝣エ蜷医↓豁」縺励¥騾∽ソ。縺ァ縺阪k縺薙→ +// ); + + function setup() { + $button = $("button.nablarch_DatePicker").first(); + $input = $("input[name='formdata.effectiveDate']"); + $calendar = $("div.calendar").first(); + + $button2 = $("button.nablarch_DatePicker").eq(1); + $input2 = $("input[name='formdata.lastEffectiveDate']"); + $calendar2 = $("div.calendar").eq(1); + + $button3 = $("button.nablarch_DatePicker").eq(2); + $input3 = $("input[name='formdata.anotherLocaleSample']"); + $calendar3 = $("div.calendar").eq(2); + } + + function reset() { + setup(); + $("div.calendar").hide(); + $("input").val(""); + } + + function 繧ォ繝ャ繝ウ繝繝シ縺ョ譌・莉倥r繧ッ繝ェ繝繧ッ縺吶k縺薙→縺ァ譌・莉倥′蜈・蜉帙&繧後k縺薙→() { + setup(); + equal($input.val(), "2012/10/20", "繝ェ繧ッ繧ィ繧ケ繝医ヱ繝ゥ繝。繝シ繧ソ縺ォ險ュ螳壹&繧後◆譌・莉倥r陦ィ遉コ縺吶k"); + ok($calendar.is(":hidden"), "蛻晄悄陦ィ遉コ縺ァ縺ッ繧ォ繝ャ繝ウ繝繝シ縺ッ髱櫁。ィ遉コ"); + $button.click(); + QUnit.stop(); + + setTimeout(function() { + ok($calendar.is(":visible"), "繝懊ち繝ウ繧偵け繝ェ繝繧ッ縺吶k縺ィ繧ォ繝ャ繝ウ繝繝シ縺碁幕縺"); + equal($calendar.find(".weekday0").text(), "譌・譖懈律", "ja繝ュ繧ア繝シ繝ォ縺ァ縺ョ譖懈律陦ィ遉コ(譌・譖)"); + equal($calendar.find(".weekday3").text(), "豌エ譖懈律", "ja繝ュ繧ア繝シ繝ォ縺ァ縺ョ譖懈律陦ィ遉コ(豌エ譖)"); + + $calendar.find("td.thisMonth:contains('10')").click(); //10譌・繧偵け繝ェ繝繧ッ + equal($input.val(), "2012/10/10", "驕ク謚槭@縺滓律莉倥′蜈・蜉帙&繧後k"); + }, animatingDuration); + + setTimeout(function() { + ok($calendar.is(":hidden"), "譌・莉倥r蜈・蜉帙☆繧九→繧ォ繝ャ繝ウ繝繝シ縺ッ髢峨§繧"); + QUnit.start(); + }, animatingDuration *2); + } + + function 繧オ繝悶Α繝繝域凾縺ォ驕ク謚槭@縺滓律莉倥′騾∽ソ。縺輔l繧九%縺ィ() { + reset(); + $input.val("2012/10/10"); + $(document).one("beforeSubmit", function(event, submitName, form) { + equal( + $(form["formdata.effectiveDate"]).val() + , "2012/10/10", "驕ク謚槭@縺滓律莉倥′騾∽ソ。縺輔l繧" + ); + + form.reset(); + return false; + }); + $("#check").click(); // 縲檎「コ隱阪阪懊ち繝ウ繧偵け繝ェ繝繧ッ + } + + function 繧ォ繝ャ繝ウ繝繝シ縺ッ繝懊ち繝ウ繧呈款縺吶→髢九″_繧ォ繝ャ繝ウ繝繝シ縺ョ螟悶r繧ッ繝ェ繝繧ッ縺吶k縺ィ髢峨§繧九%縺ィ() { + reset(); + ok($calendar.is(":hidden"), "繧ォ繝ャ繝ウ繝繝シ縺ッ髢峨§縺ヲ縺繧"); + if ('ontouchstart' in window) { + ok(false, "繧ソ繝繝√ョ繝舌う繧ケ縺ァ縺ッ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ縺ァ縺阪↑縺縺ョ縺ァ謇馴嵯遒コ隱阪@縺ヲ縺上□縺輔>縲"); + return; //繧ソ繝繝√ョ繝舌う繧ケ縺ァ縺ッtouchstart縺ァ蛻カ蠕。繧定。後>縲√お繝溘Η繝ャ繝シ繧キ繝ァ繝ウ縺ァ縺阪↑縺縺ョ縺ァ謇馴嵯遒コ隱 + } + $button.click(); + ok($calendar.is(":visible"), "繝懊ち繝ウ繧偵け繝ェ繝繧ッ縺吶k縺ィ陦ィ遉コ縺輔l繧"); + $("div#brand_logo").click(); + QUnit.stop(); + setTimeout(function() { + ok($calendar.is(":hidden"), "繧ォ繝ャ繝ウ繝繝シ縺ョ螟門エ繧偵け繝ェ繝繧ッ縺吶k縺ィ髢峨§繧"); + $button.click(); + setTimeout(function() { $button.click(); }, animatingDuration); + setTimeout(function() { + ok($calendar.is(":hidden"), "繧ォ繝ャ繝ウ繝繝シ縺碁幕縺縺ヲ縺繧狗憾諷九〒繝懊ち繝ウ繧貞榊コヲ謚シ縺励※繧る哩縺倥k"); + QUnit.start(); + }, animatingDuration *2); + }, animatingDuration); + } + + function 繧ォ繝ャ繝ウ繝繝シ繧帝幕縺縺溘→縺阪ッ蜈・蜉帶ャ縺ョ譌・莉倥r蜷ォ繧譛医r陦ィ遉コ縺吶k縺薙→() { + reset(); + $input.val("2011/09/20"); // 蜈・蜉帶ャ縺ョ譌・莉倥ッ2012/10/20 + $button.click(); + QUnit.stop(); + + setTimeout(function() { + equal($calendar.find(".year .value").text(), "2011", "蜈・蜉帶ャ縺ョ譌・莉倥r蜷ォ繧蟷エ繧定。ィ遉コ"); + equal($calendar.find(".month .value").text(), "9譛", "蜈・蜉帶ャ縺ョ譌・莉倥r蜷ォ繧譛医r陦ィ遉コ"); + ok($calendar.find("table.dates td") + .filter(function() {return $(this).text() == "20";}) + .is(".selected") + , "蜈・蜉帶ャ縺ョ譌・莉倥r繝上う繝ゥ繧、繝郁。ィ遉コ(.selected)縺吶k" + ); + QUnit.start(); + }, animatingDuration); + } + + function 蜈・蜉帶ャ縺檎ゥコ縺ョ迥カ諷九〒繧ォ繝ャ繝ウ繝繝シ繧帝幕縺縺溷エ蜷医ッ迴セ蝨ィ縺ョ譛医r陦ィ遉コ縺吶k縺薙→() { + var today = new Date(); + reset(); // 蜈・蜉帶ャ縺ッ遨コ + $button.click(); + QUnit.stop(); + + setTimeout(function() { + equal($calendar.find(".year .value").text(), today.format("{yyyy}", "ja"), "迴セ蝨ィ縺ョ蟷エ繧定。ィ遉コ"); + equal($calendar.find(".month .value").text(), today.format("{Month}", "ja"), "迴セ蝨ィ縺ョ譛医r陦ィ遉コ"); + ok($calendar.find("table.dates td") + .filter(function() {return $(this).text() == today.format("{d}");}) + .is(".today") + , "蠖捺律譌・莉倥ッ譫邱壹′陦ィ遉コ縺輔l繧(.today)" + ); + QUnit.start(); + }, animatingDuration); + } + + function 譌・莉倥r逶エ謗・蜈・蜉帛セ後↓繝輔か繝シ繧ォ繧ケ縺悟、悶l繧九→蜈・蜉帛、繧定ェ蜍慕噪縺ォ繝輔か繝シ繝槭ャ繝医☆繧九%縺ィ() { + var today = new Date(); + reset(); // 蜈・蜉帶ャ縺ッ遨コ + $input.val("19770202"); + $input.blur(); + equal($input.val(), "1977/02/02", "blur譎ゅ↓蜈・蜉帛、繧偵ヵ繧ゥ繝シ繝槭ャ繝医@縺ヲ陦ィ遉コ縺吶k縲"); + + $input.val("Feb 2, 1977"); + $input.blur(); + equal($input.val(), "", "蜈・蜉帛、縺御ク肴ュ」縺ァ縺ゅ▲縺溷エ蜷医ッ遨コ縺ォ縺ェ繧九"); + } + + function 繧ォ繝ャ繝ウ繝繝シ縺ョ陦ィ遉コ繧1繝カ譛亥腰菴阪↓遘サ蜍輔〒縺阪k縺薙→() { + reset(); + $input.val("2011/12/20"); + $button.click(); + QUnit.stop(); + + setTimeout(nextMonth, animatingDuration); + + function nextMonth() { + $calendar.find(".nextMonth").click(); + equal($calendar.find(".year .value").text(), "2012", "鄙梧怦縺ョ蟷エ繧定。ィ遉コ"); + equal($calendar.find(".month .value").text(), "1譛", "鄙梧怦繧定。ィ遉コ"); + $calendar.find("td.thisMonth").filter(function(){return $(this).text() == "1";}) + .click(); // 1譌・繧帝∈謚 + equal($input.val(), "2012/01/01", "鄙梧怦縺ョ荳譌・縺碁∈謚槭&繧後k"); + + $button.click(); + setTimeout(lastMonth, animatingDuration); + } + + function lastMonth() { + $calendar.find(".lastMonth").click(); + equal($calendar.find(".year .value").text(), "2011", "蜑肴怦縺ョ蟷エ繧定。ィ遉コ"); + equal($calendar.find(".month .value").text(), "12譛", "蜑肴怦繧定。ィ遉コ"); + $calendar.find("td.thisMonth").filter(function(){return $(this).text() == "1";}) + .click(); // 1譌・繧帝∈謚 + equal($input.val(), "2011/12/01", "鄙梧怦縺ョ荳譌・縺碁∈謚槭&繧後k"); + + QUnit.start(); + } + } + + function 繧ォ繝ャ繝ウ繝繝シ縺ョ陦ィ遉コ繧1蟷エ蜊倅ス阪〒遘サ蜍輔〒縺阪k縺薙→() { + reset(); + $input.val("2011/12/20"); + $button.click(); + QUnit.stop(); + + setTimeout(nextMonth, animatingDuration); + + function nextMonth() { + $calendar.find(".nextYear").click(); + equal($calendar.find(".year .value").text(), "2012", "鄙悟ケエ縺ョ蟷エ繧定。ィ遉コ"); + equal($calendar.find(".month .value").text(), "12譛", "譛医ッ螟峨o繧峨★"); + $calendar.find("td.thisMonth").filter(function(){return $(this).text() == "1";}) + .click(); // 1譌・繧帝∈謚 + equal($input.val(), "2012/12/01", "鄙悟ケエ縺ョ荳譌・縺碁∈謚槭&繧後k"); + + $button.click(); + setTimeout(lastMonth, animatingDuration); + } + + function lastMonth() { + $calendar.find(".lastYear").click(); + equal($calendar.find(".year .value").text(), "2011", "蜑榊ケエ縺ョ蟷エ繧定。ィ遉コ"); + equal($calendar.find(".month .value").text(), "12譛", "譛医ッ螟峨o繧峨★"); + $calendar.find("td.thisMonth").filter(function(){return $(this).text() == "1";}) + .click(); // 1譌・繧帝∈謚 + equal($input.val(), "2011/12/01", "蜑榊ケエ縺ョ荳譌・縺碁∈謚槭&繧後k"); + + QUnit.start(); + } + } + + function 隍謨ー縺ョ繧ォ繝ャ繝ウ繝繝シ繧剃スソ逕ィ縺励※繧よュ」縺励¥蜍穂ス懊☆繧九%縺ィ() { + reset(); + $input.val("1912/12/20"); + $input2.val("2012/12/20"); + + $button2.click(); + QUnit.stop(); + + setTimeout(function() { + ok($calendar2.is(":not(:hidden)"), "2縺、繧√き繝ャ繝ウ繝繝シ繧帝幕縺"); + ok($calendar.is(":hidden"), "1縺、繧√ョ繧ォ繝ャ繝ウ繝繝シ縺ッ縺昴ョ縺セ縺セ"); + + $calendar2.find(".nextMonth").click(); + $calendar2.find("td:contains(20)").click(); + + equal($input2.val(), "2013/01/20", "2縺、繧√ョ繧ォ繝ャ繝ウ繝繝シ縺ァ鄙梧怦縺ョ譌・莉倥r驕ク謚"); + equal($input.val(), "1912/12/20", "1縺、繧√ョ譌・莉倥ョ蛟、縺ッ縺昴ョ縺セ縺セ"); + + QUnit.start(); + + }, animatingDuration); + } + + function 蛻・繝ュ繧ア繝シ繝ォ_繝輔か繝シ繝槭ャ繝医r菴ソ逕ィ縺ァ縺阪k縺薙→() { + reset(); + $input3.val("12.20,13"); + + $button3.click(); + QUnit.stop(); + + setTimeout(function() { + equal($calendar3.find(".year .value").text(), "2013", "蛻・繝輔か繝シ繝槭ャ繝医ョ隱ュ縺ソ霎シ縺ソ(yy)"); + equal($calendar3.find(".month .value").text(), "December", "蛻・繝輔か繝シ繝槭ャ繝医ョ隱ュ縺ソ霎シ縺ソ(M)"); + ok($calendar3.find("td:contains(20)").is(".selected"), "蛻・繝輔か繝シ繝槭ャ繝医ョ隱ュ縺ソ霎シ縺ソ(d)"); + + $calendar3.find(".nextMonth").click(); + $calendar3.find("td:contains(10)").click(); + + equal($input3.val(), "1.10,14", "蛻・繝輔か繝シ繝槭ャ繝医〒縺ョ蜃コ蜉"); + + equal($calendar3.find(".weekday0").text(), "sun", "en繝ュ繧ア繝シ繝ォ縺ァ縺ョ譖懈律陦ィ遉コ(譌・譖)"); + equal($calendar3.find(".weekday3").text(), "wed", "en繝ュ繧ア繝シ繝ォ縺ァ縺ョ譖懈律陦ィ遉コ(豌エ譖)"); + + QUnit.start(); + }, animatingDuration); + } + + function 邊セ譟サ繧ィ繝ゥ繝シ譎ゅ↓蜑榊屓驕ク謚槭@縺滄逶ョ縺御ソ晄戟縺輔l縺ヲ縺繧九%縺ィ() { + setup(); + equal($input.val() + , "" + , "譛ェ蜈・蜉幃逶ョ縺ッ譛ェ蜈・蜉帙ョ縺セ縺セ縲"); + equal($input2.val() + , "2012/11/10" + , "蜑榊屓蜈・蜉帙@縺溷、縺悟セゥ蟶ー縺励※縺繧九"); + } + + function 邊セ譟サ繧ィ繝ゥ繝シ蠕後↓蜀埼∽ソ。縺励◆蝣エ蜷医↓豁」縺励¥騾∽ソ。縺ァ縺阪k縺薙→() { + setup(); + $input.val("2012/10/10"); + $(document).one("beforeSubmit", function(event, submitName, form) { + equal($(form["formdata.effectiveDate"]).val() + , "2012/10/10" + , "邊セ譟サ繧ィ繝ゥ繝シ蠕後↓蜀咲キィ髮縺励◆鬆逶ョ縺ョ騾∽ソ。縺梧ュ」縺励¥陦後o繧後k縲" + ); + equal($(form["formdata.lastEffectiveDate"]).val() + , "2012/11/10" + , "邊セ譟サ繧ィ繝ゥ繝シ譎ゅ↓蠕ゥ蟶ー縺励◆鬆逶ョ縺ョ蜀埼∽ソ。縺梧ュ」縺励¥陦後o繧後k縲" + ); + form.reset(); + return false; + }); + $("button[name='check']").click(); + } + diff --git "a/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" new file mode 100644 index 0000000..afe7689 --- /dev/null +++ "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" @@ -0,0 +1,22 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> + +<% + request.setAttribute("formdata", new HashMap() {{ + put("effectiveDate", "2012/10/20"); + }}); +%> + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..45a8e3c --- /dev/null +++ "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,54 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210.jsp" "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210.jsp" new file mode 100644 index 0000000..0a18fa5 --- /dev/null +++ "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210.jsp" @@ -0,0 +1,583 @@ + + +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + .border-blue { + border: solid 2px blue; + height: 50px !important; + } + + + + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳壹@縺溷エ蜷 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒謖螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ縺ョ螻樊ァ繧定ィュ螳 + + + + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医]ame螻樊ァ縺ョ蛟、縺御スソ逕ィ縺輔l繧九%縺ィ + + + + + + id螻樊ァ繧ゅ@縺上ッname螻樊ァ縺ォ.縺御スソ逕ィ縺輔l縺ヲ縺繧句エ蜷医〒繧よュ」縺励¥蜍穂ス懊☆繧九%縺ィ縲 + + + + + + + + format螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ョ繝輔か繝ォ繝医ョ縲軽yyy/MM/dd縲榊梛蠑上〒繝輔か繝シ繝槭ャ繝医&繧後k縺薙→ + + + + + + format螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ョ繝輔か繝ォ繝医ョ縲軽yyy/MM/dd縲榊梛蠑上〒繝輔か繝シ繝槭ャ繝医&繧後k縺薙→
+
+ + + + + format螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺ァ繝輔か繝シ繝槭ャ繝医&繧後k縺薙→ + + + +
+ + + + required螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ソ鬆医槭シ繧ッ縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + required縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + required縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + required縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + + + readonly螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + readonly螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + readonly螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + readonly螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮荳榊庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→縲
+ 窶サ繧オ繝シ繝舌∈縺ョ蛟、縺ョ騾∽ソ。縺ッ陦後o繧後k縺薙→ +
+ + +
+ + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ェ迥カ諷九〒繧オ繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + + + + disabled縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ェ迥カ諷九〒繧オ繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + + + + disabled縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ェ迥カ諷九〒繧オ繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + + + + disabled縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮荳榊庄縺ァ繧オ繝シ繝舌↓蛟、縺碁∽ソ。縺輔l縺ェ縺縺薙→ + + + + + + + + cssClass螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√き繝ャ繝ウ繝繝シ縺ォ髢「騾」縺吶kclass莉・螟悶ッclass螻樊ァ縺ォ謖螳壹&繧後↑縺縺薙→ + + + + + + cssClass螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√き繝ャ繝ウ繝繝シ縺ォ髢「騾」縺吶kclass莉・螟悶ッclass螻樊ァ縺ォ謖螳壹&繧後↑縺縺薙→ + + + + + + cssClass螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョclass縺慶lass縺ォ謖螳壹&繧後k縺薙→ + + + + + + + + format螻樊ァ繧呈欠螳壹@縺ヲ縺縺ェ縺縺ョ縺ァ縲√ョ繝輔か繝ォ繝医ヵ繧ゥ繝シ繝槭ャ繝医ョ髟キ縺10縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + format螻樊ァ繧呈欠螳壹@縲[axlength縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医ッmaxlength螻樊ァ閾ェ菴薙′蜃コ蜉帙&繧後↑縺縺薙→ + + + + + + format螻樊ァ繧呈欠螳壹@縲[axlength繧呈欠螳壹@縺ェ縺蝣エ蜷医ッmaxlength螻樊ァ閾ェ菴薙′蜃コ蜉帙&繧後↑縺縺薙→ + + + + + + maxlength繧呈欠螳壹@縺ヲ縺繧九′縲’ormat螻樊ァ繧呈欠螳壹@縺ヲ縺縺ェ縺縺溘a繝繝輔か繝ォ繝亥、縺ョmaxlength縺ッ繝繝輔か繝ォ繝亥、縺ョ10縺ィ縺ェ繧九%縺ィ + + + + + + maxlength縺ィformat螻樊ァ繧偵→繧ゅ↓謖螳壹@縺ヲ縺繧九ョ縺ァ縲∵欠螳壹@縺殞axlength縺ョ蛟、縺敬tml縺ョmaxlength螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + example繧呈欠螳壹@縺ェ縺蝣エ蜷医}laceholder縺ィ縺励※菴輔b陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + example縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医}laceholder縺ィ縺励※菴輔b陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + example繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺継laceholder縺ィ縺励※陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + hint繧呈欠螳壹@縺ェ縺蝣エ蜷医√ヲ繝ウ繝医ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + hint縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ヲ繝ウ繝医ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + hint繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後ヲ繝ウ繝医→縺励※陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + locale螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ョ繝輔か繝ォ繝医ョ縲桂a縲阪′險ュ螳壹&繧後k縺薙→縲ゑシ医き繝ャ繝ウ繝繝シ繧定。ィ遉コ縺励※遒コ隱搾シ + + + + + + locale螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ョ繝輔か繝ォ繝医ョ縲桂a縲阪′險ュ螳壹&繧後k縺薙→縲ゑシ医き繝ャ繝ウ繝繝シ繧定。ィ遉コ縺励※遒コ隱搾シ + + + + + + locale螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ繝ュ繧ア繝シ繝ォ縺ォ貅悶§縺溘き繝ャ繝ウ繝繝シ陦ィ遉コ縺ォ縺ェ繧九%縺ィ + + + + + + + + + size螻樊ァ縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ョ繧ッ繝ゥ繧ケ螻樊ァ縺ォ縺ッgrid-col縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + size螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ョ繧ッ繝ゥ繧ケ螻樊ァ縺ォ縺ッgrid-col縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ョ繧ッ繝ゥ繧ケ螻樊ァ縺ォgrid-col縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→
+ 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚 - 2縺ョ繧ー繝ェ繝繝画焚縺瑚ィュ螳壹&繧後k縺薙→
+ 蜈・蜉幃Κ(div.field-content)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺瑚ィュ螳壹&繧後k縺薙→ +
+ + +
+ +
+ + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ蜈・蜉帙@縺溷、縺檎「コ隱咲判髱「縺ォ陦ィ遉コ縺輔l繧九%縺ィ
+ 窶サ繧ォ繝ャ繝ウ繝繝シ縺ィ縺ョ騾」謳コ驛ィ縺ッ縲∵遠骰オ縺ォ縺ヲ蜍穂ス懊r遒コ隱阪☆繧九 +
+ + +
+ + + + nameAlias螻樊ァ繧呈悴謖螳壹ョ蝣エ蜷医√お繝ゥ繝シ繝上う繝ゥ繧、繝郁。ィ遉コ縺輔l縺ェ縺縺薙→
+ name螻樊ァ縺ォ蟇セ蠢懊☆繧九お繝ゥ繝シ諠蝣ア縺ォ繧医j縲√お繝ゥ繝シ陦ィ遉コ縺後&繧後k縲 +
+ + + + + nameAlias螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√お繝ゥ繝シ繝上う繝ゥ繧、繝郁。ィ遉コ縺輔l縺ェ縺縺薙→
+
+ + + + + nameAlias螻樊ァ繧呈欠螳壹@縺溷エ蜷医√お繝ゥ繝シ繝上う繝ゥ繧、繝郁。ィ遉コ縺輔l繧九%縺ィ
+
+ + +
+
+
+ + + + + + + + + + +
+
+
diff --git "a/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210_\347\242\272\350\252\215.jsp" "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210_\347\242\272\350\252\215.jsp" new file mode 100644 index 0000000..8a5f565 --- /dev/null +++ "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210_\347\242\272\350\252\215.jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..5416bc5 --- /dev/null +++ "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,15 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..560fdd1 --- /dev/null +++ "b/node_modules/nablarch-widget-field-calendar/ui_test/jsp/\343\202\253\343\203\254\343\203\263\343\203\200\343\203\274\346\227\245\344\273\230\345\205\245\345\212\233/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" @@ -0,0 +1,11 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-checkbox/package.json b/node_modules/nablarch-widget-field-checkbox/package.json new file mode 100644 index 0000000..90d56b7 --- /dev/null +++ b/node_modules/nablarch-widget-field-checkbox/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-checkbox" +, "version": "1.0.1" +, "_from" : "nablarch-widget-field-checkbox@1.0.1" +, "dependencies": { + } +, "description": "繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ蜈・蜉幃逶ョ繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-checkbox/ui_public/WEB-INF/tags/widget/field/checkbox.tag b/node_modules/nablarch-widget-field-checkbox/ui_public/WEB-INF/tags/widget/field/checkbox.tag new file mode 100644 index 0000000..234098b --- /dev/null +++ b/node_modules/nablarch-widget-field-checkbox/ui_public/WEB-INF/tags/widget/field/checkbox.tag @@ -0,0 +1,60 @@ +<%-- + 繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケUI驛ィ蜩シ医Μ繧ケ繝医r蜿励¢蜿悶j縲√メ繧ァ繝繧ッ繝懊ャ繧ッ繧ケ縺ョ驕ク謚樣逶ョ縺ィ縺励※陦ィ遉コ縺吶k縲ゑシ + @author Ryo Tanaka +--%> + +<%@ tag pageEncoding="UTF-8" description="繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ鬆逶ョ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%---------------------- 螻樊ァ螳夂セゥシ亥ア騾夲シ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="domain" description="鬆逶ョ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="readonly" description="邱ィ髮蜿ッ閭ス縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="name" description="HTML縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> +<%@ attribute name="nameAlias" description="荳縺、縺ョ繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ォ蟇セ縺励※隍謨ー縺ョ蜈・蜉幃逶ョ繧偵ワ繧、繝ゥ繧、繝郁。ィ遉コ縺吶k蝣エ蜷医↓謖螳壹☆繧具シ磯逶ョ髢鍋イセ譟サ縺ェ縺ゥシ峨りゥウ邏ー縺ォ縺、縺縺ヲ縺ッ縲、pplication Framework隗」隱ャ譖ク縺ョ縲後お繝ゥ繝シ陦ィ遉コ縲阪r蜿らァ縲" rtexprvalue="true" %> +<%@ attribute name="hint" description="蜈・蜉帛螳ケ繧逡呎э轤ケ縺ェ縺ゥ縺ョ陬懷勧繝繧ュ繧ケ繝" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ亥句挨シ ----------------------%> +<%@ attribute name="listName" description="驕ク謚樣逶ョ縺ョ繝ェ繧ケ繝医ョ螻樊ァ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="elementLabelProperty" description="繝ェ繧ケ繝郁ヲ∫エ縺九i蛟、繧貞叙蠕励☆繧九◆繧√ョ繝励Ο繝代ユ繧」蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="elementValueProperty" description="繝ェ繧ケ繝郁ヲ∫エ縺九i繝ゥ繝吶Ν繧貞叙蠕励☆繧九◆繧√ョ繝励Ο繝代ユ繧」蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="elementLabelPattern" description="繝ゥ繝吶Ν繧呈紛蠖「縺吶k縺溘a縺ョ繝代ち繝シ繝ウ縲" rtexprvalue="true" %> +<%@ attribute name="listFormat" description="繝ェ繧ケ繝郁。ィ遉コ譎ゅ↓菴ソ逕ィ縺吶k繝輔か繝シ繝槭ャ繝医ゑシ医ョ繝輔か繝ォ繝亥、縺ッ'span'シ" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ医Ο繝シ繧ォ繝ォ繝ャ繝ウ繝繝ェ繝ウ繧ーシ ----------------------%> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%------------------------------------------------------------%> + + + + <%-- listFormat縺梧欠螳壹&繧後※縺縺ェ縺蝣エ蜷医↓繧ィ繝ゥ繝シ縺ィ縺ェ繧九◆繧√∵欠螳壹&繧後↑縺蝣エ蜷医ッ'span'繧呈守、コ逧縺ォ險ュ螳壹☆繧九 --%> + + + diff --git a/node_modules/nablarch-widget-field-checkbox/ui_public/WEB-INF/tags/widget/field/code_checkbox.tag b/node_modules/nablarch-widget-field-checkbox/ui_public/WEB-INF/tags/widget/field/code_checkbox.tag new file mode 100644 index 0000000..c8638a1 --- /dev/null +++ b/node_modules/nablarch-widget-field-checkbox/ui_public/WEB-INF/tags/widget/field/code_checkbox.tag @@ -0,0 +1,67 @@ +<%-- + 繧ウ繝シ繝牙ョ夂セゥ縺ォ蠕薙▲縺ヲ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ繧貞コ蜉帙☆繧偽I驛ィ蜩 + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="繧ウ繝シ繝牙ョ夂セゥ縺ォ蠕薙▲縺ヲ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ鬆逶ョ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%---------------------- 螻樊ァ螳夂セゥシ亥ア騾夲シ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="domain" description="鬆逶ョ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="readonly" description="邱ィ髮蜿ッ閭ス縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="name" description="HTML縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> +<%@ attribute name="nameAlias" description="荳縺、縺ョ繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ォ蟇セ縺励※隍謨ー縺ョ蜈・蜉幃逶ョ繧偵ワ繧、繝ゥ繧、繝郁。ィ遉コ縺吶k蝣エ蜷医↓謖螳壹☆繧具シ磯逶ョ髢鍋イセ譟サ縺ェ縺ゥシ峨りゥウ邏ー縺ォ縺、縺縺ヲ縺ッ縲、pplication Framework隗」隱ャ譖ク縺ョ縲後お繝ゥ繝シ陦ィ遉コ縲阪r蜿らァ縲" rtexprvalue="true" %> +<%@ attribute name="hint" description="蜈・蜉帛螳ケ繧逡呎э轤ケ縺ェ縺ゥ縺ョ陬懷勧繝繧ュ繧ケ繝" rtexprvalue="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ亥句挨シ ----------------------%> +<%@ attribute name="codeId" description="繧ウ繝シ繝牙ョ夂セゥID" required="true" rtexprvalue="true" %> +<%@ attribute name="pattern" description="菴ソ逕ィ縺吶k繧ウ繝シ繝峨ヱ繧ソ繝シ繝ウ縺ョ繧ォ繝ゥ繝蜷(繝繝輔か繝ォ繝医ッ'PATTERN01')" rtexprvalue="true" %> +<%@ attribute name="optionColumnName" description="蜿門セ励☆繧九が繝励す繝ァ繝ウ蜷咲ァー縺ョ繧ォ繝ゥ繝蜷(繝繝輔か繝ォ繝医ッ'OPTION01')" rtexprvalue="true" %> +<%@ attribute name="labelPattern" description="繝ゥ繝吶Ν陦ィ遉コ譖ク蠑(繝繝輔か繝ォ繝:$NAME$)" rtexprvalue="true" %> +<%@ attribute name="listFormat" description="繝ェ繧ケ繝郁。ィ遉コ譎ゅ↓菴ソ逕ィ縺吶k繝輔か繝シ繝槭ャ繝医ゑシ医ョ繝輔か繝ォ繝亥、縺ッ'span'シ" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="comment" description="縺薙ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%------------------------------------------------------------%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繝代ち繝シ繝ウ繧ウ繝シ繝峨ョ繧ォ繝ゥ繝蜷 --%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繧ェ繝励す繝ァ繝ウ蜷咲ァー縺ョ繧ォ繝ゥ繝蜷 --%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繝ゥ繝吶Ν繧ウ繝シ繝 --%> + + + + + + + + + diff --git a/node_modules/nablarch-widget-field-checkbox/ui_public/css/field/checkbox-multicol.less b/node_modules/nablarch-widget-field-checkbox/ui_public/css/field/checkbox-multicol.less new file mode 100644 index 0000000..2b094dd --- /dev/null +++ b/node_modules/nablarch-widget-field-checkbox/ui_public/css/field/checkbox-multicol.less @@ -0,0 +1,13 @@ +/** + * field:checkbox(code_checkbox)縺ョ繧ケ繧ソ繧、繝ォ螳夂セゥ + */ +#content { + div.field.checkboxes { + div.field-content { + label { + font-weight: normal; + float: none; + } + } + } +} diff --git a/node_modules/nablarch-widget-field-checkbox/ui_public/css/field/checkbox.less b/node_modules/nablarch-widget-field-checkbox/ui_public/css/field/checkbox.less new file mode 100644 index 0000000..ea85d4a --- /dev/null +++ b/node_modules/nablarch-widget-field-checkbox/ui_public/css/field/checkbox.less @@ -0,0 +1,20 @@ +/** + * field:checkbox(code_checkbox)縺ョ繧ケ繧ソ繧、繝ォ螳夂セゥ + */ +#content { + div.field.checkboxes { + div.field-content { + // span縺ァ繝ゥ繝繝励&繧後◆繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ョ蝣エ蜷医 + // 繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ驛ィ縺ィ繝ゥ繝吶Ν驛ィ縺ァ謾ケ陦後′蜈・繧峨↑縺繧医≧縺ォ縺吶k縺溘a縺ョ繧ケ繧ソ繧、繝ォ螳夂セゥ + span { + display: inline-block; + margin-right: 8px; + } + + // checkbox驛ィ縺ョ繝ゥ繝吶Ν縺ョ繝輔か繝ウ繝医ッ繝弱シ繝槭Ν繧オ繧、繧コ + label { + font-weight: normal; + } + } + } +} diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..ecf4653 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,16 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..f380962 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,54 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 蠢鬆亥ア樊ァ縺ョ繧ソ繧、繝医Ν縺ォ謖螳壹@縺溷、シ医後ち繧、繝医Ν縲搾シ峨′縲∝・蜉帷判髱「縺ィ遒コ隱咲判髱「縺ァ陦ィ遉コ縺輔l繧九%縺ィ + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧貞性繧縲∝ィ縺ヲ縺ョ螻樊ァ繧定ィュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..d6b4f54 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,7 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..f65d50b --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,76 @@ +runTest( + 蠢鬆亥ア樊ァ繝繧ケ繝, + nameAlias螻樊ァ縺ョ繝繧ケ繝 +); + +/** + * 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝 + */ +function 蠢鬆亥ア樊ァ繝繧ケ繝() { + var target = findTest('required') + , labels = ['name1-1', 'name1-2' , 'name1-3' ] + , values = ['value1-1', 'value1-2', 'value1-3'] + , checked = [false, true, false]; + + equal(target.label.text().compact(), '蠢鬆亥ア樊ァ繧呈欠螳', '繧ソ繧、繝医Ν螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), 'name1-2', 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + equal(target.error.length, 0, '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + + } else { + equal(target.input.find('input').length, 3, '繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺3縺、蜃コ蜉帙&繧後k縺薙→'); + + values.each(function (value, index) { + var $checkbox = $(target.input.find('input:checkbox')[index]); + equal($checkbox.val(), value, 'value螻樊ァ縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + equal($checkbox.next('label').text().trim(), labels[index], 'label縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + equal($checkbox.prop('checked'), checked[index], '繝√ぉ繝繧ッ迥カ諷九′豁」縺励¥險ュ螳壹&繧後k縺薙→') + }); + + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ縺ッ縺ェ縺縺薙→'); + } +} + +/** + * nameAlias螻樊ァ縺ョ繝繧ケ繝 + */ +function nameAlias螻樊ァ縺ョ繝繧ケ繝() { + var test = { + nonNameAlias: function (testCase) { + var target = findTest(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('input.nablarch_error').length, 3, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + equal(target.error.find('div.nablarch_error').length, 1, '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺帙l繧九%縺ィ'); + } + }, + nameAlias : function (testCase) { + var target = findTest(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('input.nablarch_error').length, 3, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→'); + } + } + }; + + test.nonNameAlias('not-nameAlias'); + test.nonNameAlias('nameAlias-blank'); + test.nameAlias('nameAlias'); +} + + +function findTest(testCase) { + var $test = $('span.test-case.' + testCase) + , $text_div = $test.next('.field.checkboxes'); + + return { + testCase: $test.text(), + label : $text_div.children('label'), + input : $text_div.find('div.field-content'), + error : $text_div.find('div.fielderror') + } +} diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..0ec7fe0 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,30 @@ + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input.cssClass-test + label { + color: red; + font-weight: bold; + } + input.nablarch_error + label { + color: red; + } + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..cc6cccf --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,61 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + + if (!request.getParameterMap().containsKey("input")) { + + request.setAttribute("server", new HashMap() {{ + put("required", "value1-2"); + put("pattern-none", new String[]{"value1-1", "value1-2", "value1-3"}); + put("pattern-blank", new String[]{"value1-1", "value1-2", "value1-3"}); + put("pattern-nonblank", new String[]{"value1-1", "value1-2", "value1-3"}); + put("label-pattern-none", new String[]{"value1-1", "value1-2", "value1-3"}); + put("label-pattern-blank", new String[]{"value1-1", "value1-2", "value1-3"}); + put("label-pattern", new String[]{"value1-1", "value1-2", "value1-3"}); + put("optional-name-none", new String[]{"value1-1", "value1-2", "value1-3"}); + put("optional-name-blank", new String[]{"value1-1", "value1-2", "value1-3"}); + put("optional-name-nonblank", new String[]{"value1-1", "value1-2", "value1-3"}); + }}); + + ApplicationException exception = new ApplicationException(); + exception.addMessages(new ValidationResultMessage("server.nameAlias-test", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-none", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹↑縺励ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-blank", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias縺ォ繝悶Λ繝ウ繧ッ謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + request.setAttribute("nablarch_application_error", exception); + } +%> diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..0f87a38 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,74 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ォ縺ッ蜈・蜉帶ャ縺悟コ蜉帙&繧後∫「コ隱咲判髱「縺ォ縺ッ蜈・蜉帛、縺後Λ繝吶Ν縺ィ縺励※蜃コ蜉帙&繧後k縺薙→縲 + + + + + + nameAlias螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ繧呈欠螳壹@縺溷エ蜷医鬆逶ョ縺ョclass螻樊ァ縺ォnablarch_error縺瑚ィュ螳壹&繧後k縺薙→ + + + 繝ゥ繝吶Ν縺梧隼陦後&繧後※繧ゅお繝ゥ繝シ鬆逶ョ縺梧ュ」縺励¥陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..7472b4c --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,5 @@ + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..26428fc --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,455 @@ +runTest( + require螻樊ァ縺ョ繝繧ケ繝 + , hint螻樊ァ縺ョ繝繧ケ繝 + , readonly螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , sample螻樊ァ縺ョ繝繧ケ繝 + , listFormat螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 + , pattern螻樊ァ縺ョ繝繧ケ繝 + , optionColumnName螻樊ァ縺ョ繝繧ケ繝 + , labelPattern螻樊ァ縺ョ繝繧ケ繝 +); + +var $all_nodes; + +function setup() { + $all_nodes = $('span.test-case, div.field.checkboxes, div.fielderror, div.note'); +} + +function require螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('required-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , required = 'span.required' + , assertHas = function(testcase) { + if(isConfirmationPage()) { assertNotHas(testcase); + } else{ + equal(testcase.area.find(required).size(), 1, testcase.testcase); + equal($.trim(testcase.area.find(required).text()), '*', testcase.testcase); + } + } + , assertNotHas = function(testcase) { + equal(testcase.area.find(required).size(), 0, testcase.testcase); + }; + + assertNotHas(default_case); + assertNotHas(blank_case); + assertNotHas(false_case); + assertHas(true_case); +} + +function hint螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('hint-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_hint_case = cases[2] + , assertHasHint = function(testcase) { + isConfirmationPage() ? equal(testcase.hint.size(), 0, testcase.testcase) + : equal(testcase.hint.size(), 1, testcase.testcase); + } + , assertHasNotHint = function(testcase) { + equal(testcase.hint.size(), 0, testcase.testcase); + }; + + assertHasNotHint(default_case); + assertHasNotHint(blank_case); + assertHasHint(set_hint_case); +} + +function readonly螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('readonly-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, values) { + var text = testcase.area.find('div.field-content').html().replace(/ /g, ' ').trim() + , datalist = text.split(/\s/); + $.each(datalist, function(i, e) { + equal(e, values[i], testcase.testcase); + }); + } + , assertValues = function(testcase, values) { + return function(i, e) { + equal($(this).val(), values[i], testcase.testcase); + }; + } + , assertReadOnly = function(testcase, values) { + var $input = testcase.area.find('input:checkbox'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function(){ + ok($(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + ok($(this).is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }); + } + , assertNotReadOnly = function(testcase, values) { + var $input = testcase.area.find('input:checkbox'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function(){ + ok(!$(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + ok(!$(this).is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }); + } + , values = ["value1-1", "value1-2", "value1-3"] + , labels = ["name1-1", "name1-2", "name1-3"]; + + if (isConfirmationPage()) { + assertText(default_case, labels); + assertText(blank_case, labels); + assertText(true_case, labels); + assertText(false_case, labels); + } else { + assertNotReadOnly(default_case, values); + assertNotReadOnly(blank_case, values); + assertReadOnly(true_case, values); + assertNotReadOnly(false_case, values); + } +} + +function disabled螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('disabled-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, values) { + var text = testcase.area.find('div.field-content').html().replace(/ /g, ' ').trim() + , datalist = text.split(/\s/); + $.each(datalist, function(i, e) { + equal($.trim(e), values[i], testcase.testcase); + }); + } + , assertValues = function(testcase, values) { + return function(i, e) { + equal($(this).val(), values[i], testcase.testcase); + }; + } + , assertDisabled = function(testcase, values) { + var $input = testcase.area.find('input:checkbox'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function(){ + ok($(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + }); + } + , assertNotDisabled = function(testcase, values) { + var $input = testcase.area.find('input:checkbox'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function(){ + ok(!$(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + }); + } + , values = ["value1-1", "value1-2", "value1-3"] + , labels = ["name1-1", "name1-2", "name1-3"]; + + if (isConfirmationPage()) { + assertText(default_case, labels); + assertText(blank_case, labels); + assertText(true_case, [""]); + assertText(false_case, labels); + } else { + assertNotDisabled(default_case, values); + assertNotDisabled(blank_case, values); + assertDisabled(true_case, values); + assertNotDisabled(false_case, values); + } +} + +function cssClass螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + equal(default_case.area.find('input:checkbox').size(), 3, default_case.testcase); + equal(default_case.area.find('input:checkbox.cssClass-test').size(), 0, default_case.testcase); + + equal(blank_case.area.find('input:checkbox').size(), 3, blank_case.testcase); + equal(blank_case.area.find('input:checkbox.cssClass-test').size(), 0, blank_case.testcase); + + equal(set_case.area.find('input:checkbox.cssClass-test').size(), 3, set_case.testcase); +} + +function sample螻樊ァ縺ョ繝繧ケ繝() { // server 縺ォ縺ヲ蜃コ蜉帙&繧後k蝣エ蜷医ッ辟。蜉ケ縺ァ縺ゅk縺薙→繧堤「コ隱阪☆繧九 + setup(); + var cases = test_for('sample-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , multi_select = cases[3] + , assertBlankText = function(testcase) { + var text = testcase.area.find('div.field-content').text(); + ok(text.isBlank(), testcase.testcase); + } + , assert = function(testcase) { + if (isConfirmationPage()) {return assertBlankText(testcase);} + + var $nodes = testcase.area.find('div.field-content').find(':checkbox') + , values = ["value1-1", "value1-2", "value1-3"] + , text = $.trim(testcase.area.find('div.field-content').text()) + , label = ["name1-1", "name1-2", "name1-3"].join("\xA0"); + $nodes.each(function(i, e){ + equal($(this).val(), values[i], testcase.testcase); + }); + equal(text, label, testcase.testcase); + }; + + assert(default_case); + assert(blank_case); + assert(set_case); + assert(multi_select); +} + +function listFormat螻樊ァ縺ョ繝繧ケ繝() { + + setup(); + var cases = test_for('listFormat-test') + , default_case = cases[0] + , blank_case = cases[1] + , br_case = cases[2] + , div_case = cases[3] + , ul_case = cases[4] + , ol_case = cases[5] + , span_case = cases[6] + , sp_case = cases[7] + , values = ["value1-1", "value1-2", "value1-3"] + , labels = ["name1-1", "name1-2", "name1-3"] + , assertValuesFormat = function(testcase, formatSpec, values) { // 蜈・蜉帷判髱「縺ァ縺ッformat蜀縺ォcheckbox縺後≠繧九%縺ィ縺ァ讀懆ィシ + var $input = testcase.area.find('div.field-content').find(formatSpec).find('input:checkbox'); + equal($input.size(), values.length, testcase.testcase + " formatspec = " + formatSpec); + $input.each(function(i, e){ + equal($(this).val(), values[i], testcase.testcase); + }); + } + , assertLabelFormat = function(testcase, formatSpec, labels){ //遒コ隱咲判髱「縺ァ縺ッformat縺ョ荳ュ縺ォlabel縺ョ繝繧ュ繧ケ繝医′縺ゅk縺薙→縺ァ讀懆ィシ縺吶k縲 + var $labels = testcase.area.find('div.field-content').find(formatSpec); + equal($labels.size(), labels.length, testcase.testcase); + $labels.each(function(i, e){ + var text = $.trim($(e).text()); + equal(text, labels[i], testcase.testcase); + }); + } + , assertTextFormat = function (testcase, formatSpec ,labels) { + var fieldInput = testcase.area.find('div.field-content').clone() + , nodes; + + fieldInput.find('div.fielderror').remove(); + nodes = fieldInput.html().trim().toLocaleLowerCase().split(formatSpec).remove(""); + equal(nodes.length, labels.length, testcase.testcase); + $.each(nodes, function(i, htmltext){ + if(isConfirmationPage()) { + ok(htmltext.match('^\\s*' + labels[i] + '\\s*$'), testcase.testcase); + } else { + ok(htmltext.match('^\\s*\\s*$'), testcase.testcase); + } + }); + }; + + if (isConfirmationPage()) { + assertLabelFormat(default_case, "span", labels); + assertLabelFormat(blank_case, "span", labels); + assertTextFormat(br_case, "
",labels); + assertLabelFormat(div_case, "div", labels); + assertLabelFormat(span_case, "span", labels); + assertLabelFormat(ul_case, "ul > li", labels); + assertLabelFormat(ol_case, "ol > li", labels); + assertTextFormat(sp_case," " ,labels); + } else { + assertValuesFormat(default_case, "span", values); + assertValuesFormat(blank_case, "span", values); + assertTextFormat(br_case, "
",labels); + assertValuesFormat(div_case, "div", values); + assertValuesFormat(span_case, "span", values); + assertValuesFormat(ul_case, "ul > li", values); + assertValuesFormat(ol_case, "ol > li", values); + assertTextFormat(sp_case," " ,labels); + } +} + +function size螻樊ァ縺ョ繝繧ケ繝() { + setup(); + + var cases = test_for('size-test'), + assertNotSizeClass = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-8'), testCase.testcase); + ok(fieldContent.hasClass('grid-col-12'), testCase.testcase); + }; + + assertNotSizeClass(cases[0]); // size螻樊ァ謖螳壹↑縺 + assertNotSizeClass(cases[1]); // size螻樊ァ繝悶Λ繝ウ繧ッ謖螳 + assertSize(cases[2]); // size螻樊ァ繧呈欠螳 +} + +/** + * pattern螻樊ァ縺ョ繝繧ケ繝 + */ +function pattern螻樊ァ縺ョ繝繧ケ繝() { + var pattern1 = [ + {label: 'name1-1', value: 'value1-1'}, + {label: 'name1-2', value: 'value1-2'}, + {label: 'name1-3', value: 'value1-3'} + ] + , pattern2 = [ + {label: 'name1-2', value: 'value1-2'} + ] + , assert = function (testCase, expected) { + var target = findTest(testCase) + , $checkboxes = target.input.find('input:checkbox'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), expected.map(function (val) { + return val.label + }).join(''), 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + } else { + expected.each(function (code, index) { + var $checkbox = $($checkboxes[index]) + , label = $checkbox.next('label').text().trim(); + + equal(label, code.label, target.testCase + ': 繝ゥ繝吶Ν陦ィ遉コ縺梧ュ」縺励>縺薙→'); + equal($checkbox.val(), code.value, target.testCase + ': value螻樊ァ縺梧ュ」縺励>縺薙→'); + }); + } + }; + + assert('pattern-none', pattern1); + assert('pattern-blank', pattern1); + assert('pattern-not-blank', pattern2); +} + +/** + * optionColumnName螻樊ァ縺ョ繝繧ケ繝 + */ +function optionColumnName螻樊ァ縺ョ繝繧ケ繝() { + var defaultOption = [ + {label: 'name1-1 column:OPTION01', value: 'value1-1'}, + {label: 'name1-2 column:OPTION01', value: 'value1-2'}, + {label: 'name1-3 column:OPTION01', value: 'value1-3'} + ] + , specifiedOption = [ + {label: 'name1-1 column:OPTION03', value: 'value1-1'}, + {label: 'name1-2 column:OPTION03', value: 'value1-2'}, + {label: 'name1-3 column:OPTION03', value: 'value1-3'} + ] + , assert = function (testCase, expected) { + var target = findTest(testCase) + , $checkboxes = target.input.find('input:checkbox'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), expected.map(function (val) { + return val.label + }).join(''), 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + } else { + expected.each(function (code, index) { + var $checkbox = $($checkboxes[index]) + , label = $checkbox.next('label').text().compact(); + + equal(label, code.label, target.testCase + ': 繝ゥ繝吶Ν陦ィ遉コ縺梧ュ」縺励>縺薙→'); + equal($checkbox.val(), code.value, target.testCase + ': value螻樊ァ縺梧ュ」縺励>縺薙→'); + }); + + } + } + ; + + assert('option-none', defaultOption); + assert('option-blank', defaultOption); + assert('option-not-blank', specifiedOption); +} + +/** + * labelPattern螻樊ァ縺ョ繝繧ケ繝 + */ +function labelPattern螻樊ァ縺ョ繝繧ケ繝() { + var defaultLabel = [ + {label: 'name1-1', value: 'value1-1'}, + {label: 'name1-2', value: 'value1-2'}, + {label: 'name1-3', value: 'value1-3'} + ] + , specifiedPattern = [ + {label: 'name1-1 - short:name1-1 - name1-1 column:OPTION03 - value1-1', value: 'value1-1'}, + {label: 'name1-2 - short:name1-2 - name1-2 column:OPTION03 - value1-2', value: 'value1-2'}, + {label: 'name1-3 - short:name1-3 - name1-3 column:OPTION03 - value1-3', value: 'value1-3'} + ] + , assert = function (testCase, expected) { + var target = findTest(testCase) + , $checkboxes = target.input.find('input:checkbox'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), expected.map(function (val) { + return val.label + }).join(''), 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + } else { + expected.each(function (code, index) { + var $checkbox = $($checkboxes[index]) + , label = $checkbox.next('label').text().compact(); + + equal(label, code.label, target.testCase + ': 繝ゥ繝吶Ν陦ィ遉コ縺梧ュ」縺励>縺薙→'); + equal($checkbox.val(), code.value, target.testCase + ': value螻樊ァ縺梧ュ」縺励>縺薙→'); + }); + } + }; + + assert('labelPattern-none', defaultLabel); + assert('labelPattern-blank', defaultLabel); + assert('labelPattern-not-blank', specifiedPattern); +} + +/** + * 蜊倩。後ユ繧ュ繧ケ繝医ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]) + , $options = $all_nodes.filter(':eq(' + (idx + 2) + '), :eq(' + (idx + 3) + ')') + , error = $options.filter('div.fielderror') + , note = $options.filter('div.note'); + return { + testcase : $.trim($e.text()), + area : $area, + error : error, + hint : note + }; + }); +} + +function findTest(testCase) { + var $test = $('span.test-case.' + testCase) + , $text_div = $test.next('.field.checkboxes'); + + return { + testCase: $test.text(), + label : $text_div.children('label'), + input : $text_div.find('div.field-content'), + error : $text_div.find('div.fielderror') + } +} diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..3753440 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,33 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input.cssClass-test + label { + color: red; + font-weight: bold; + } + + input.nablarch_error + label { + color: red; + } + + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..6f087b8 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,40 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..be20a71 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,467 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 繝ゥ繝吶Ν繧偵け繝ェ繝繧ッ縺吶k縺薙→縺ァ繧ウ繝シ繝牙、繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ繧帝∈謚樒憾諷九↓縺ァ縺阪k縺薙→ + + + + + + required螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッ蠢鬆医槭シ繧ッ縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ陦ィ遉コ縺輔l縺ェ縺シ + + + + + + hint螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッhint縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→シ + + + 繝ゥ繝吶Ν縺梧釜繧願ソ斐@縺溷エ蜷医〒繧ゅ”int螻樊ァ縺悟・蜉帙お繝ェ繧「縺ョ逶エ荳九↓蟾ヲ謠縺医〒蜃コ蜉帙&繧後k縺薙→縲ら「コ隱咲判髱「縺ァ縺ッ蜃コ蜉帙&繧後↑縺縺薙→縲 + + + + + + readonly螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮荳榊庄縺ォ縺ェ繧九%縺ィ(蛟、縺ッ騾∽ソ。縺輔l遒コ隱咲判髱「縺ォ繝ゥ繝吶Ν陦ィ遉コ縺輔l繧九%縺ィ) + + + readonly螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l縺ェ縺縺薙→シ育「コ隱咲判髱「縺ォ陦ィ遉コ縺輔l縺ェ縺縺薙→シ + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + + + + cssClass螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺ォ謖螳壹@縺歡ssClass縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + sample螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォcodeId縺ォ謖螳壹&繧後◆繧ウ繝シ繝峨ョ繧ウ繝シ繝牙錐遘ー縺悟コ蜉帙&繧後k縺薙→ + + + sample螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォcodeId縺ォ謖螳壹&繧後◆繧ウ繝シ繝峨ョ繧ウ繝シ繝牙錐遘ー縺悟コ蜉帙&繧後k縺薙→ + + + sample螻樊ァ繧呈欠螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝医〒縺ッsample螻樊ァ縺ョ蛟、縺悟コ蜉帙&繧後ー]縺ァ蝗イ縺セ繧後◆蛟、縺碁∈謚樒憾諷九→縺ェ繧九%縺ィ縲 + + + 隍謨ー鬆逶ョ繧端]縺ァ蝗イ繧縺ィ縲∝峇縺セ繧後◆蛟、縺悟ィ縺ヲ驕ク謚樒憾諷九→縺ェ繧九%縺ィ縲 + + + + + + listFormat螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医《pan蛹コ蛻繧翫ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + listFormat螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医《pan蛹コ蛻繧翫ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝茨シbrシ峨〒縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝茨シdivシ峨〒縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝茨シulシ峨〒縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝茨シolシ峨〒縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝茨シspanシ峨〒縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝茨シspシ峨〒縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + + + + size螻樊ァ縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + size螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + + + + + + pattern螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医 ̄ATTERN01縺ォ蟇セ蠢懊☆繧九さ繝シ繝峨′陦ィ遉コ縺輔l繧九%縺ィ縲
+ 繝ュ繝シ繧ォ繝ォ陦ィ遉コ縺ァ繧ゅ…odeId螻樊ァ縺ォ謖螳壹&繧後◆繧ウ繝シ繝峨ョ蜷咲ァー縺後た繝シ繝磯縺ォ蠕薙▲縺ヲ繧ス繝シ繝医&繧後※陦ィ遉コ縺輔l繧九%縺ィ縲 +
+ + + pattern螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医 ̄ATTERN01縺ォ蟇セ蠢懊☆繧九さ繝シ繝峨′陦ィ遉コ縺輔l繧九%縺ィ + + + pattern螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヱ繧ソ繝シ繝ウシPATTERN02シ峨↓蟇セ蠢懊☆繧九さ繝シ繝峨′陦ィ遉コ縺輔l繧九%縺ィ + + +
+ + + optionColumnName螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医^PTION01縺ォ蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + optionColumnName螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医^PTION01縺ォ蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + optionColumnName螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘が繝励す繝ァ繝ウ蜷咲ァーシOPTION03シ峨↓蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + labelPattern螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医∝ッセ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + labelPattern螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ッセ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + labelPattern螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘励Ξ繝シ繧ケ繝帙Ν繝シ$NAME$ - $SHORTNAME$ - $OPTIONALNAME$ - $VALUE$シ峨↓蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + +
+ + + + + + + + + + + +
diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..8808bbe --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..84d5d94 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,16 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..42b2682 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,55 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 蠢鬆亥ア樊ァ縺ョ繧ソ繧、繝医Ν縺ォ謖螳壹@縺溷、シ医後ち繧、繝医Ν縲搾シ峨′縲∝・蜉帷判髱「縺ィ遒コ隱咲判髱「縺ァ陦ィ遉コ縺輔l繧九%縺ィ + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧貞性繧縲∝ィ縺ヲ縺ョ螻樊ァ繧定ィュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..8ccdbc3 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..124e7c6 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,100 @@ +runTest( + 蠢鬆亥ア樊ァ繝繧ケ繝, + nameAlias螻樊ァ縺ョ繝繧ケ繝, + elementLabelPattern螻樊ァ縺ョ繝繧ケ繝 +); + +/** + * 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝 + */ +function 蠢鬆亥ア樊ァ繝繧ケ繝() { + var target = find_test('required') + , labels = ['繝ゥ繝吶Ν1', '繝ゥ繝吶Ν2' , '繝ゥ繝吶Ν3' ] + , values = ['蛟、1', '蛟、2', '蛟、3']; + + equal(target.label.text().compact(), '蠢鬆亥ア樊ァ繧呈欠螳', '繧ソ繧、繝医Ν螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), '繝ゥ繝吶Ν1', 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + equal(target.error.length, 0, '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('input').length, 3, '繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺3縺、蜃コ蜉帙&繧後k縺薙→'); + + values.each(function (value, index) { + var $checkbox = $(target.input.find('input:checkbox')[index]); + equal($checkbox.val(), value, 'value螻樊ァ縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + equal($checkbox.next('label').text().trim(), labels[index], 'label縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + }); + + ok($(target.input.find("input:checkbox")[0]).attr('checked'), '蛟、1縺ョ縺ソ繝√ぉ繝繧ッ迥カ諷九〒縺ゅk縺薙→'); + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ縺ッ縺ェ縺縺薙→'); + } +} + +/** + * nameAlias螻樊ァ縺ョ繝繧ケ繝 + */ +function nameAlias螻樊ァ縺ョ繝繧ケ繝() { + var test = { + nonNameAlias: function (testCase) { + var target = find_test(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('input.nablarch_error').length, 3, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + equal(target.error.find('div.nablarch_error').length, 1, '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺帙l繧九%縺ィ'); + } + }, + nameAlias : function (testCase) { + var target = find_test(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('input.nablarch_error').length, 3, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→'); + } + } + }; + + test.nonNameAlias('not-nameAlias'); + test.nonNameAlias('nameAlias-blank'); + test.nameAlias('nameAlias'); +} + +function elementLabelPattern螻樊ァ縺ョ繝繧ケ繝() { + var labels = ['繝ゥ繝吶Ν1', '繝ゥ繝吶Ν2' , '繝ゥ繝吶Ν3' ] + , formatLabels = ['蛟、1 - 繝ゥ繝吶Ν1', '蛟、2 - 繝ゥ繝吶Ν2' , '蛟、3 - 繝ゥ繝吶Ν3' ] + , values = ['蛟、1', '蛟、2', '蛟、3'] + , assertLabel = function (testCase, expectedLabels) { + var target = find_test(testCase) + , $checkboxes = target.input.find('input:checkbox'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), expectedLabels.join(''), 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + } else { + $checkboxes.each(function (index, checkbox) { + var $checkbox = $(checkbox) + , labelText = $checkbox.next('label').text().compact(); + + equal($checkbox.val(), values[index], target.testCase + ':value螻樊ァ縺瑚ィュ螳壹&繧後※縺繧九%縺ィ'); + equal(labelText, expectedLabels[index], target.testCase + ':label縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + }); + } + }; + + assertLabel('elementLabelPattern-none', labels); + assertLabel('elementLabelPattern-blank', labels); + assertLabel('elementLabelPattern-not-blank', formatLabels); +} + +function find_test(test_case) { + var $test = $('span.test-case.' + test_case) + , $text_div = $test.next('.field.checkboxes'); + + return { + testCase: $test.text(), + label: $text_div.children('label'), + input: $text_div.find('div.field-content'), + error: $text_div.find('div.fielderror') + } +} diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..d6c279a --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,30 @@ + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input.cssClass-test + label { + color: blue; + } + + input.nablarch_error + label { + color: red; + } + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..abf9f68 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,74 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Locale" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + final List> checkboxList = new ArrayList>() {{ + add(new HashMap() {{ + put("label", "繝ゥ繝吶Ν1"); + put("value", "蛟、1"); + }}); + add(new HashMap() {{ + put("label", "繝ゥ繝吶Ν2"); + put("value", "蛟、2"); + }}); + add(new HashMap() {{ + put("label", "繝ゥ繝吶Ν3"); + put("value", "蛟、3"); + }}); + }}; + + request.setAttribute("checkbox-list", checkboxList); + + if (!request.getParameterMap().containsKey("input")) { + + request.setAttribute("server", new HashMap() {{ + put("required", "蛟、1"); + put("labelpattern-none", new String[] {"蛟、1", "蛟、2", "蛟、3"}); + put("labelpattern-blank", new String[] {"蛟、1", "蛟、2", "蛟、3"}); + put("labelpattern", new String[] {"蛟、1", "蛟、2", "蛟、3"}); + }}); + + ApplicationException exception = new ApplicationException(); + exception.addMessages(new ValidationResultMessage("server.nameAlias-test", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-none", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹↑縺励ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-blank", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias縺ォ繝悶Λ繝ウ繧ッ謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + request.setAttribute("nablarch_application_error", exception); + } +%> diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..6453043 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,115 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ォ縺ッ蜈・蜉帶ャ縺悟コ蜉帙&繧後∫「コ隱咲判髱「縺ォ縺ッ蜈・蜉帛、縺後Λ繝吶Ν縺ィ縺励※蜃コ蜉帙&繧後k縺薙→縲 + + + + + + nameAlias螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ繧呈欠螳壹@縺溷エ蜷医鬆逶ョ縺ョclass螻樊ァ縺ォnablarch_error縺瑚ィュ螳壹&繧後k縺薙→ + + + 繝ゥ繝吶Ν縺梧隼陦後&繧後※繧ゅお繝ゥ繝シ鬆逶ョ縺梧ュ」縺励¥陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + elementLabelPattern螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医‘lementLabelProperty縺ォ謖螳壹@縺溘励Ο繝代ユ繧」縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + elementLabelPattern螻樊ァ繧偵ヶ繝ゥ繝ウ繧ッ縺ィ縺励◆蝣エ蜷医‘lementLabelProperty縺ォ謖螳壹@縺溘励Ο繝代ユ繧」縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + elementLabelPattern螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝医〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..7472b4c --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,5 @@ + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..e4ceeb7 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,314 @@ +runTest( + require螻樊ァ縺ョ繝繧ケ繝 + , hint螻樊ァ縺ョ繝繧ケ繝 + , readonly螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , listFormat螻樊ァ縺ョ繝繧ケ繝 + , sample螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 +); + +var $all_nodes; + +function setup() { + $all_nodes = $('span.test-case, div.field.checkboxes, div.fielderror, div.note'); +} + +function require螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('required-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , required = 'span.required' + , assertHas = function(testcase) { + if(isConfirmationPage()) { assertNotHas(testcase); + } else{ + equal(testcase.area.find(required).size(), 1, testcase.testcase); + equal($.trim(testcase.area.find(required).text()), '*', testcase.testcase); + } + } + , assertNotHas = function(testcase) { + equal(testcase.area.find(required).size(), 0, testcase.testcase); + }; + + assertNotHas(default_case); + assertNotHas(blank_case); + assertNotHas(false_case); + assertHas(true_case); +} + +function hint螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('hint-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_hint_case = cases[2] + , assertHasHint = function(testcase) { + isConfirmationPage() ? equal(testcase.hint.size(), 0, testcase.testcase) + : equal(testcase.hint.size(), 1, testcase.testcase); + } + , assertHasNotHint = function(testcase) { + equal(testcase.hint.size(), 0, testcase.testcase); + }; + + assertHasNotHint(default_case); + assertHasNotHint(blank_case); + assertHasHint(set_hint_case); +} + +function readonly螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('readonly-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, values) { + var text = testcase.area.find('div.field-content').html().replace(/ /g, ' ').trim() + , datalist = text.split(/\s| /); + $.each(datalist, function(i, e) { + equal(e, values[i], testcase.testcase); + }); + } + , assertValues = function(testcase, values) { + return function(i, e) { + equal($(this).val(), values[i], testcase.testcase); + }; + } + , assertReadOnly = function(testcase, values) { + var $input = testcase.area.find('input:checkbox'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function(){ + ok($(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + ok($(this).is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }); + } + , assertNotReadOnly = function(testcase, values) { + var $input = testcase.area.find('input:checkbox'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function(){ + ok(!$(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + ok(!$(this).is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }); + } + , values = ["蛟、1", "蛟、2", "蛟、3"] + , labels = ["繝ゥ繝吶Ν1", "繝ゥ繝吶Ν2", "繝ゥ繝吶Ν3"]; + + if (isConfirmationPage()) { + assertText(default_case, labels); + assertText(blank_case, labels); + assertText(true_case, labels); + assertText(false_case, labels); + } else { + assertNotReadOnly(default_case, values); + assertNotReadOnly(blank_case, values); + assertReadOnly(true_case, values); + assertNotReadOnly(false_case, values); + } +} + +function disabled螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('disabled-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, values) { + var text = testcase.area.find('div.field-content').html().replace(/ /g, ' ').trim() + , datalist = text.split(/\s/); + $.each(datalist, function(i, e) { + equal($.trim(e), values[i], testcase.testcase); + }); + } + , assertValues = function(testcase, values) { + return function(i, e) { + equal($(this).val(), values[i], testcase.testcase); + }; + } + , assertDisabled = function(testcase, values) { + var $input = testcase.area.find('input:checkbox'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function(){ + ok($(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + }); + } + , assertNotDisabled = function(testcase, values) { + var $input = testcase.area.find('input:checkbox'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function(){ + ok(!$(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + }); + } + , values = ["蛟、1", "蛟、2", "蛟、3"] + , labels = ["繝ゥ繝吶Ν1", "繝ゥ繝吶Ν2", "繝ゥ繝吶Ν3"]; + + if (isConfirmationPage()) { + assertText(default_case, labels); + assertText(blank_case, labels); + assertText(true_case, [""]); + assertText(false_case, labels); + } else { + assertNotDisabled(default_case, values); + assertNotDisabled(blank_case, values); + assertDisabled(true_case, values); + assertNotDisabled(false_case, values); + } +} + +function cssClass螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + equal(default_case.area.find('input:checkbox').size(), 3, default_case.testcase); + equal(default_case.area.find('input:checkbox.cssClass-test').size(), 0, default_case.testcase); + + equal(blank_case.area.find('input:checkbox').size(), 3, blank_case.testcase); + equal(blank_case.area.find('input:checkbox.cssClass-test').size(), 0, blank_case.testcase); + + equal(set_case.area.find('input:checkbox.cssClass-test').size(), 3, set_case.testcase); +} + +function listFormat螻樊ァ縺ョ繝繧ケ繝() { + + setup(); + var cases = test_for('listFormat-test') + , default_case = cases[0] + , blank_case = cases[1] + , br_case = cases[2] + , div_case = cases[3] + , span_case = cases[4] + , ul_case = cases[5] + , ol_case = cases[6] + , sp_case = cases[7] + , values = ["蛟、1", "蛟、2", "蛟、3"] + , labels = ["繝ゥ繝吶Ν1", "繝ゥ繝吶Ν2", "繝ゥ繝吶Ν3"] + , assertValuesFormat = function(testcase, formatSpec, values) { // 蜈・蜉帷判髱「縺ァ縺ッformat蜀縺ォcheckbox縺後≠繧九%縺ィ縺ァ讀懆ィシ + var $input = testcase.area.find('div.field-content').find(formatSpec).find('input:checkbox'); + equal($input.size(), values.length, testcase.testcase + " formatspec = " + formatSpec); + $input.each(function(i, e){ + equal($(this).val(), values[i], testcase.testcase); + }); + } + , assertLabelFormat = function(testcase, formatSpec, labels){ //遒コ隱咲判髱「縺ァ縺ッformat縺ョ荳ュ縺ォlabel縺ョ繝繧ュ繧ケ繝医′縺ゅk縺薙→縺ァ讀懆ィシ縺吶k縲 + var $labels = testcase.area.find('div.field-content').find(formatSpec); + equal($labels.size(), labels.length, testcase.testcase); + $labels.each(function(i, e){ + var text = $.trim($(e).text()); + equal(text, labels[i], testcase.testcase); + }); + } + , assertTextFormat = function (testcase, formatSpec ,labels) { + var fieldInput = testcase.area.find('div.field-content').clone() + , nodex; + + fieldInput.find('div.fielderror').remove(); + nodes = fieldInput.html().trim().toLocaleLowerCase().split(formatSpec).remove(""); + equal(nodes.length, labels.length, testcase.testcase); + $.each(nodes, function(i, htmltext){ + if(isConfirmationPage()) { + ok(htmltext.match('^\\s*' + labels[i] + '\\s*$'), testcase.testcase); + } else { + ok(htmltext.match('^\\s*\\s*$'), testcase.testcase); + } + }); + }; + + if (isConfirmationPage()) { + assertLabelFormat(default_case, "span", labels); + assertLabelFormat(blank_case, "span", labels); + assertTextFormat(br_case, "
",labels); + assertLabelFormat(div_case, "div", labels); + assertLabelFormat(span_case, "span", labels); + assertLabelFormat(ul_case, "ul > li", labels); + assertLabelFormat(ol_case, "ol > li", labels); + assertTextFormat(sp_case," " ,labels); + } else { + assertValuesFormat(default_case, "span", values); + assertValuesFormat(blank_case, "span", values); + assertTextFormat(br_case, "
",labels); + assertValuesFormat(div_case, "div", values); + assertValuesFormat(span_case, "span", values); + assertValuesFormat(ul_case, "ul > li", values); + assertValuesFormat(ol_case, "ol > li", values); + assertTextFormat(sp_case," " ,labels); + } +} + +function sample螻樊ァ縺ョ繝繧ケ繝() { // server 縺ォ縺ヲ蜃コ蜉帙&繧後k蝣エ蜷医ッ辟。蜉ケ縺ァ縺ゅk縺薙→繧堤「コ隱阪☆繧九 + setup(); + var cases = test_for('sample-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , multi_select = cases[3] + , assert = function(testcase) { + var text = testcase.area.find('div.field-content').text(); + ok(text.isBlank(), testcase.testcase); + }; + + assert(default_case); + assert(blank_case); + assert(set_case); + assert(multi_select); +} + +function size螻樊ァ縺ョ繝繧ケ繝() { + setup(); + + var cases = test_for('size-test'), + assertNotSizeClass = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-8'), testCase.testcase); + ok(fieldContent.hasClass('grid-col-12'), testCase.testcase); + }; + + assertNotSizeClass(cases[0]); // size螻樊ァ譛ェ謖螳 + assertNotSizeClass(cases[1]); // size螻樊ァ繝悶Λ繝ウ繧ッ謖螳 + assertSize(cases[2]); // size螻樊ァ繧呈欠螳 +} + +/** + * 蜊倩。後ユ繧ュ繧ケ繝医ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]) + , $options = $all_nodes.filter(':eq(' + (idx + 2) + '), :eq(' + (idx + 3) + ')') + , error = $options.filter('div.fielderror') + , note = $options.filter('div.note'); + return { + testcase : $.trim($e.text()), + area : $area, + error : error, + hint : note + }; + }); +} diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..37469c8 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,42 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + /********************* + id螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input#server\.id-none { + background-color: #7ec78f; + } + + input#server\.id-blank { + background-color: #a7c788 + } + + input#test-id { + border-color: red; + } + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input.cssClass-test { + border-color: blue; + } + + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..e4df382 --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,95 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Locale" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..98d144e --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,449 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 繝ゥ繝吶Ν繧偵け繝ェ繝繧ッ縺吶k縺薙→縺ァ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ繧帝∈謚樒憾諷九↓縺ァ縺阪k縺薙→ + + + + + + required螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッ蠢鬆医槭シ繧ッ縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ陦ィ遉コ縺輔l縺ェ縺シ + + + + + + hint螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッhint縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→シ + + + 繝ゥ繝吶Ν縺梧釜繧願ソ斐@縺溷エ蜷医〒繧ゅ”int螻樊ァ縺悟・蜉帙お繝ェ繧「縺ョ逶エ荳九↓蟾ヲ謠縺医〒蜃コ蜉帙&繧後k縺薙→縲ら「コ隱咲判髱「縺ァ縺ッ蜃コ蜉帙&繧後↑縺縺薙→縲 + + + + + + readonly螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮荳榊庄縺ォ縺ェ繧九%縺ィ(蛟、縺ッ騾∽ソ。縺輔l遒コ隱咲判髱「縺ォ繝ゥ繝吶Ν陦ィ遉コ縺輔l繧九%縺ィ) + + + readonly螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l縺ェ縺縺薙→シ育「コ隱咲判髱「縺ォ陦ィ遉コ縺輔l縺ェ縺縺薙→シ + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + + + + cssClass螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺ォ謖螳壹@縺歡ssClass縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + listFormat螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医《pan蛹コ蛻繧翫ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + listFormat螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医《pan蛹コ蛻繧翫ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝(br)縺ァ縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝(div)縺ァ縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝(span)縺ァ縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝(ul)縺ァ縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝(ol)縺ァ縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝(sp)縺ァ縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + + + sample螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ繧呈欠螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝医〒縺ッ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後ー]縺ァ蝗イ縺セ繧後◆蛟、縺碁∈謚樒憾諷九→縺ェ繧九%縺ィ縲 + + + 隍謨ー鬆逶ョ繧端]縺ァ蝗イ繧縺ィ縲∝峇縺セ繧後◆蛟、縺悟ィ縺ヲ驕ク謚樒憾諷九→縺ェ繧九%縺ィ縲 + + + + + + + size螻樊ァ縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + size螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + +
+ + + + + + + + + + + +
diff --git "a/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..8808bbe --- /dev/null +++ "b/node_modules/nablarch-widget-field-checkbox/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\201\343\202\247\343\203\203\343\202\257\343\203\234\343\203\203\343\202\257\343\202\271/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git a/node_modules/nablarch-widget-field-file/package.json b/node_modules/nablarch-widget-field-file/package.json new file mode 100644 index 0000000..eec536e --- /dev/null +++ b/node_modules/nablarch-widget-field-file/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-file" +, "version": "1.0.0" +, "_from" : "nablarch-widget-field-file@1.0.0" +, "dependencies": { + } +, "description": "繝輔ぃ繧、繝ォ驕ク謚樣逶ョ繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-file/ui_public/WEB-INF/tags/widget/field/file.tag b/node_modules/nablarch-widget-field-file/ui_public/WEB-INF/tags/widget/field/file.tag new file mode 100644 index 0000000..f4149f8 --- /dev/null +++ b/node_modules/nablarch-widget-field-file/ui_public/WEB-INF/tags/widget/field/file.tag @@ -0,0 +1,44 @@ +<%-- + 繝輔ぃ繧、繝ォ驕ク謚朸I驛ィ蜩 + @author Ryo Tanaka +--%> + +<%@ tag pageEncoding="UTF-8" description="繝輔ぃ繧、繝ォ驕ク謚樣逶ョ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%---------------------- 螻樊ァ螳夂セゥシ亥ア騾夲シ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="domain" description="鬆逶ョ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="name" description="HTML縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ蛟、 (逵∫払譎ゅッname螻樊ァ縺ィ蜷後§蛟、繧剃スソ逕ィ縺吶k)" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> +<%@ attribute name="nameAlias" description="荳縺、縺ョ繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ォ蟇セ縺励※隍謨ー縺ョ蜈・蜉幃逶ョ繧偵ワ繧、繝ゥ繧、繝郁。ィ遉コ縺吶k蝣エ蜷医↓謖螳壹☆繧具シ磯逶ョ髢鍋イセ譟サ縺ェ縺ゥシ峨りゥウ邏ー縺ォ縺、縺縺ヲ縺ッ縲、pplication Framework隗」隱ャ譖ク縺ョ縲後お繝ゥ繝シ陦ィ遉コ縲阪r蜿らァ縲" rtexprvalue="true" %> +<%@ attribute name="hint" description="蜈・蜉帛螳ケ繧逡呎э轤ケ縺ェ縺ゥ縺ョ陬懷勧繝繧ュ繧ケ繝" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="comment" description="縺薙ョ繝輔ぃ繧、繝ォ驕ク謚槭ム繧、繧「繝ュ繧ー縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%------------------------------------------------------------%> + + + + + + diff --git "a/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/index.jsp" "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/index.jsp" new file mode 100644 index 0000000..a3f7cc6 --- /dev/null +++ "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/index.jsp" @@ -0,0 +1,21 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
  • +
  • +
+
+
+
diff --git "a/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..d787cfe --- /dev/null +++ "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,197 @@ + runTest( + require螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , hint螻樊ァ縺ョ繝繧ケ繝 + , nameAlias螻樊ァ縺ョ繝繧ケ繝 + , 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝 + ); + + var $all_nodes; + + function setup() { + $all_nodes = $('span.test-case, div.field.file, div.fielderror, div.note'); + } + + function require螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('required-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , required = 'span.required' + , assertHas = function(testcase) { + if(isConfirmationPage()) { assertNotHas(testcase); + } else{ + equal(testcase.area.find(required).size(), 1, testcase.testcase); + equal($.trim(testcase.area.find(required).text()), '*', testcase.testcase); + } + } + , assertNotHas = function(testcase) { + equal(testcase.area.find(required).size(), 0, testcase.testcase); + }; + + assertNotHas(default_case); + assertNotHas(blank_case); + assertNotHas(false_case); + assertHas(true_case); + } + + function hint螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('hint-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_hint_case = cases[2] + , assertHasHint = function(testcase) { + isConfirmationPage() ? equal(testcase.hint.size(), 0, testcase.testcase) + : equal(testcase.hint.size(), 1, testcase.testcase); + } + , assertHasNotHint = function(testcase) { + equal(testcase.hint.size(), 0, testcase.testcase); + }; + + assertHasNotHint(default_case); + assertHasNotHint(blank_case); + assertHasHint(set_hint_case); + } + + function disabled螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('disabled-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , assertText = function (testcase, value) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, value, testcase.testcase); + } + , assertDisabled = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase, ""); }// 遒コ隱咲判髱「縺ァ縺ッ陦ィ遉コ辟。縺 + var $input = testcase.area.find('input:file'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok($input.prop('disabled'), testcase.testcase + "[prop disabled]"); + } + , assertNotDisabled = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase, value); } + var $input = testcase.area.find('input:file'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok(!$input.prop('disabled'), testcase.testcase + "[prop disabled]"); + }; + + assertNotDisabled(default_case, ""); + assertNotDisabled(blank_case, ""); + assertDisabled(true_case, ""); + assertNotDisabled(false_case, ""); + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('id-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + var default_input = default_case.area.find('input:file'); + equal(default_input.attr('id'), default_input.attr('name'), default_case.testcase); + + var blank_input = blank_case.area.find('input:file'); + equal(blank_input.attr('id'), blank_input.attr('name'), blank_case.testcase); + + var set_input = set_case.area.find('input:file'); + notEqual(set_input.attr('id'), set_input.attr('name'), set_case.testcase); + equal(set_input.attr('id'), 'id.hoge', set_case.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + ok(!default_case.area.find('input:file').is('.border-blue'), default_case.testcase); + ok(!blank_case.area.find('input:file').is('.border-blue'), blank_case.testcase); + ok(set_case.area.find('input:file').is('.border-blue'), set_case.testcase); + } + + function nameAlias螻樊ァ縺ョ繝繧ケ繝() { + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('nameAlias-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assertHighLight = function(testcase) { + ok(testcase.area.find('input:file').is('.nablarch_error'), testcase.testcase); + } + , assertNotHighLight = function(testcase) { + ok(!testcase.area.find('input:file').is('.nablarch_error'), testcase.testcase); + } + , assertNotHasErrMsg = function(i, testcase) { + ok(testcase.error.text().isBlank(), testcase.testcase); + }; + + $.each(cases, assertNotHasErrMsg); + assertNotHighLight(default_case); + assertNotHighLight(blank_case); + assertHighLight(set_case); + } + + function 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('title-input-size'), + assertNotSizeClass = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-10'), testCase.testcase); + ok(fieldContent.hasClass('grid-col-18'), testCase.testcase); + }; + + assertNotSizeClass(cases[0]); // size螻樊ァ譛ェ謖螳 + assertNotSizeClass(cases[1]); // size螻樊ァ繝悶Λ繝ウ繧ッ謖螳 + assertSize(cases[2]); // size螻樊ァ繧呈欠螳 + } + + /** + * 蜊倩。後ユ繧ュ繧ケ繝医ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]) + , $options = $all_nodes.filter(':eq(' + (idx + 2) + '), :eq(' + (idx + 3) + ')') + , error = $options.filter('div.fielderror') + , note = $options.filter('div.note'); + return { + testcase : $.trim($e.text()), + area : $area, + error : error, + hint : note + }; + }); + } diff --git "a/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..a972cdd --- /dev/null +++ "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,22 @@ +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="java.util.Locale" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + + ApplicationException exception = new ApplicationException(); + exception.addMessages(new ValidationResultMessage("error", new StringResource() { + @Override + public String getId() { + return "id"; + } + + @Override + public String getValue(Locale locale) { + return "繝。繝繧サ繝シ繧ク"; + } + }, new Object[0])); + request.setAttribute("nablarch_application_error", exception); +%> diff --git "a/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..2441a43 --- /dev/null +++ "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,239 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + 蜈ィ螻樊ァ繧呈欠螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + required螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + + + + required螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + + + + required螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + + + + required螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後k縺薙→ + + + + + + disabled繧呈欠螳壹@縺ェ縺蝣エ蜷医√ヵ繧。繧、繝ォ驕ク謚槫庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + disabled縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ヵ繧。繧、繝ォ驕ク謚槫庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + disabled縺ォfalse繧呈欠螳壹@縺溷エ蜷医√ヵ繧。繧、繝ォ驕ク謚槫庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + disabled縺ォtrue繧定ィュ螳壹@縺溷エ蜷医√ヵ繧。繧、繝ォ驕ク謚槭′蜃コ譚・縺ェ縺縺薙→ + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→シ医た繝シ繧ケ縺ァ遒コ隱搾シ + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→シ医た繝シ繧ケ縺ァ遒コ隱搾シ + + + + + + id螻樊ァ繧呈欠螳壹@縺溷エ蜷医(d螻樊ァ縺ォ縺昴ョ蛟、縺瑚ィュ螳壹&繧後k縺薙→シ医た繝シ繧ケ縺ァ遒コ隱搾シ + + + + + + cssClass繧呈欠螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→シ医た繝シ繧ケ縺ァ遒コ隱搾シ + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→シ医た繝シ繧ケ縺ァ遒コ隱搾シ + + + + + + cssClass繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺慶lass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + hint繧呈欠螳壹@縺ェ縺蝣エ蜷医√ヲ繝ウ繝医ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + hint縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ヲ繝ウ繝医ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + hint繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後ヲ繝ウ繝医↓陦ィ遉コ縺輔l繧九%縺ィ + + + + + + titleSize縺ィinputSize縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + + +
+ + + + 蠢鬆磯逶ョ繧貞ィ縺ヲ險ュ螳 + + + + + + nameAlias繧呈欠螳壹@縺ェ縺蝣エ蜷医√ワ繧、繝ゥ繧、繝郁。ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + nameAlias縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ワ繧、繝ゥ繧、繝郁。ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + nameAlias縺ォ繧呈欠螳壹@縺溷エ蜷医√ワ繧、繝ゥ繧、繝郁。ィ遉コ縺輔l繧九%縺ィ + + + + +
+ + + + +
diff --git "a/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211_\347\231\273\351\214\262_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211_\347\231\273\351\214\262_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..7abc00d --- /dev/null +++ "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211_\347\231\273\351\214\262_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,26 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + .border-blue { + border: 1px solid blue; + } + + + + diff --git "a/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210_\347\231\273\351\214\262.jsp" "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210_\347\231\273\351\214\262.jsp" new file mode 100644 index 0000000..e11526d --- /dev/null +++ "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210_\347\231\273\351\214\262.jsp" @@ -0,0 +1,259 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="java.util.Locale" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + .border-blue { + border: 1px solid blue; + } + + + + + + + + 蜈ィ螻樊ァ繧呈欠螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + required螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + + + + required螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + + + + required螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + + + + required螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後k縺薙→ + + + + + + disabled繧呈欠螳壹@縺ェ縺蝣エ蜷医√ヵ繧。繧、繝ォ驕ク謚槫庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + disabled縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ヵ繧。繧、繝ォ驕ク謚槫庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + disabled縺ォfalse繧呈欠螳壹@縺溷エ蜷医√ヵ繧。繧、繝ォ驕ク謚槫庄閭ス縺ェ迥カ諷九〒縺ゅk縺薙→ + + + + + + disabled縺ォtrue繧定ィュ螳壹@縺溷エ蜷医√ヵ繧。繧、繝ォ驕ク謚槭′蜃コ譚・縺ェ縺縺薙→ + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→シ医た繝シ繧ケ縺ァ遒コ隱搾シ + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→シ医た繝シ繧ケ縺ァ遒コ隱搾シ + + + + + + id螻樊ァ繧呈欠螳壹@縺溷エ蜷医(d螻樊ァ縺ォ縺昴ョ蛟、縺瑚ィュ螳壹&繧後k縺薙→シ医た繝シ繧ケ縺ァ遒コ隱搾シ + + + + + + cssClass繧呈欠螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→シ医た繝シ繧ケ縺ァ遒コ隱搾シ + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→シ医た繝シ繧ケ縺ァ遒コ隱搾シ + + + + + + cssClass繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺慶lass螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + hint繧呈欠螳壹@縺ェ縺蝣エ蜷医√ヲ繝ウ繝医ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + hint縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ヲ繝ウ繝医ッ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + hint繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後ヲ繝ウ繝医↓陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + 蠢鬆磯逶ョ繧貞ィ縺ヲ險ュ螳 + + + + + + nameAlias繧呈欠螳壹@縺ェ縺蝣エ蜷医√ワ繧、繝ゥ繧、繝郁。ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + nameAlias縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ワ繧、繝ゥ繧、繝郁。ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + nameAlias縺ォ繧呈欠螳壹@縺溷エ蜷医√ワ繧、繝ゥ繧、繝郁。ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\347\224\273\345\203\217\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211.jsp" "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\347\224\273\345\203\217\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211.jsp" new file mode 100644 index 0000000..21e6a10 --- /dev/null +++ "b/node_modules/nablarch-widget-field-file/ui_test/jsp/\343\203\225\343\202\241\343\202\244\343\203\253\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211/\347\224\273\345\203\217\343\202\242\343\203\203\343\203\227\343\203\255\343\203\274\343\203\211.jsp" @@ -0,0 +1,25 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + diff --git a/node_modules/nablarch-widget-field-hint/package.json b/node_modules/nablarch-widget-field-hint/package.json new file mode 100644 index 0000000..2ead0c2 --- /dev/null +++ b/node_modules/nablarch-widget-field-hint/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-hint" +, "version": "1.0.1" +, "_from" : "nablarch-widget-field-hint@1.0.1" +, "dependencies": { + } +, "description": "蜈・蜉帶凾縺ョ逡呎э轤ケ繧定。ィ遉コ縺吶k繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-hint/ui_public/WEB-INF/tags/widget/field/hint.tag b/node_modules/nablarch-widget-field-hint/ui_public/WEB-INF/tags/widget/field/hint.tag new file mode 100644 index 0000000..be7d20c --- /dev/null +++ b/node_modules/nablarch-widget-field-hint/ui_public/WEB-INF/tags/widget/field/hint.tag @@ -0,0 +1,27 @@ +<%-- + 蜈・蜉帶凾縺ョ逡呎э轤ケ繧定。ィ遉コ縺吶k鬆伜沺 + @author Iwauo Tajima +--%> + +<%@tag pageEncoding="UTF-8" description="蜈・蜉帶凾縺ョ逡呎э轤ケ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + +<%@ attribute name="gridSize" description="繝偵Φ繝郁。ィ遉コ驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> + + + + +
+ <%-- + 譛ャ繧ソ繧ー繝輔ぃ繧、繝ォ縺ッ縲’ield:internal_hint繧剃スソ逕ィ縺吶k縺薙→縺悟庄閭ス縺縺後∽サ・荳九ョ逅逕ア縺九iinternal_hint繧貞茜逕ィ縺励※縺縺ェ縺縲 + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ縲縺輔l縺溘ち繧ー蜀驛ィ縺ァ縲∝榊コヲ縺悟他縺ウ蜃コ縺輔l縺溷エ蜷域ュ」縺励¥謠冗判縺吶k縺薙→縺悟コ譚・縺ェ縺縲 + --%> + +
+ 窶サ +
+
+
+
+ diff --git a/node_modules/nablarch-widget-field-hint/ui_public/WEB-INF/tags/widget/field/internal_hint.tag b/node_modules/nablarch-widget-field-hint/ui_public/WEB-INF/tags/widget/field/internal_hint.tag new file mode 100644 index 0000000..a66c568 --- /dev/null +++ b/node_modules/nablarch-widget-field-hint/ui_public/WEB-INF/tags/widget/field/internal_hint.tag @@ -0,0 +1,14 @@ +<%-- + 蜈・蜉帶凾縺ョ逡呎э轤ケ繧定。ィ遉コ縺吶k鬆伜沺(譛ャ繧ソ繧ー縺ッ縲√ち繧ー繝輔ぃ繧、繝ォ蜀驛ィ縺九i菴ソ逕ィ縺吶k) + @author Iwauo Tajima +--%> + +<%@tag pageEncoding="UTF-8" description="蜈・蜉帶凾縺ョ逡呎э轤ケ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝(繧ソ繧ー繝輔ぃ繧、繝ォ蜀驛ィ縺九i蜻シ縺ウ蜃コ縺吶ち繧ー繝輔ぃ繧、繝ォ縲JSP縺九i逶エ謗・菴ソ逕ィ縺吶k縺薙→縺ッ遖∵ュ「縺吶k)" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + + +
+ 窶サ +
+
+ diff --git a/node_modules/nablarch-widget-field-hint/ui_public/css/field/hint-compact.less b/node_modules/nablarch-widget-field-hint/ui_public/css/field/hint-compact.less new file mode 100644 index 0000000..ba135c7 --- /dev/null +++ b/node_modules/nablarch-widget-field-hint/ui_public/css/field/hint-compact.less @@ -0,0 +1,8 @@ +#content { + // 迢ャ遶句梛繝偵Φ繝医ッ縲∝・蜉幃Κ縺ォ陦ィ遉コ縺吶k縲 + .field.hint { + div.note { + .grid-offset(@labelGridSpan + 1); + } + } +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-hint/ui_public/css/field/hint-multicol.less b/node_modules/nablarch-widget-field-hint/ui_public/css/field/hint-multicol.less new file mode 100644 index 0000000..e69de29 diff --git a/node_modules/nablarch-widget-field-hint/ui_public/css/field/hint-narrow.less b/node_modules/nablarch-widget-field-hint/ui_public/css/field/hint-narrow.less new file mode 100644 index 0000000..a06029d --- /dev/null +++ b/node_modules/nablarch-widget-field-hint/ui_public/css/field/hint-narrow.less @@ -0,0 +1,8 @@ +#content { + // 迢ャ遶句梛繝偵Φ繝医ッ縲∝・蜉幃Κ縺ォ陦ィ遉コ縺吶k縲 + .field.hint { + div.note { + margin-left: 0; + } + } +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-hint/ui_public/css/field/hint-wide.less b/node_modules/nablarch-widget-field-hint/ui_public/css/field/hint-wide.less new file mode 100644 index 0000000..ba135c7 --- /dev/null +++ b/node_modules/nablarch-widget-field-hint/ui_public/css/field/hint-wide.less @@ -0,0 +1,8 @@ +#content { + // 迢ャ遶句梛繝偵Φ繝医ッ縲∝・蜉幃Κ縺ォ陦ィ遉コ縺吶k縲 + .field.hint { + div.note { + .grid-offset(@labelGridSpan + 1); + } + } +} \ No newline at end of file diff --git "a/node_modules/nablarch-widget-field-hint/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\347\213\254\343\203\222\343\203\263\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-hint/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\347\213\254\343\203\222\343\203\263\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..ccb3636 --- /dev/null +++ "b/node_modules/nablarch-widget-field-hint/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\347\213\254\343\203\222\343\203\263\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,20 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + diff --git "a/node_modules/nablarch-widget-field-hint/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\347\213\254\343\203\222\343\203\263\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-hint/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\347\213\254\343\203\222\343\203\263\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..29dc1aa --- /dev/null +++ "b/node_modules/nablarch-widget-field-hint/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\347\213\254\343\203\222\343\203\263\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,73 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + diff --git "a/node_modules/nablarch-widget-field-hint/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\347\213\254\343\203\222\343\203\263\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-hint/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\347\213\254\343\203\222\343\203\263\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..34d281d --- /dev/null +++ "b/node_modules/nablarch-widget-field-hint/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\347\213\254\343\203\222\343\203\263\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,75 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + 繝偵Φ繝医ョ蜃コ蜉帑ス咲スョ + standalone + 莉悶ョ鬆逶ョ縺ィ縺ョ逶ク蟇セ逧縺ェ菴咲スョ髢「菫 + + + relative + + 蜈・蜉帙え繧」繧ク繧ァ繝繝医ョhint螻樊ァ縺ィ縺ョ菴オ逕ィ + + + withHintAttribute + + hint繧定、謨ー荳ヲ縺ケ縺溷エ蜷医 + + + 縺イ縺ィ縺、繧√ョ繝偵Φ繝 + 縺オ縺溘▽繧√ョ繝偵Φ繝医る聞縺譁蟄怜励〒繧ゅ∝・蜉帶ャ縺ョ蜿ウ蛛エ縺ァ謚倥j霑斐&繧後※2陦瑚。ィ遉コ縺輔l繧九%縺ィ + + hint繧定ィュ螳壹☆繧九Λ繝吶Ν縺梧釜繧願ソ斐☆蝣エ蜷医ョ遒コ隱 + + + long label + + gridSize繧呈欠螳壹@縺ェ縺蝣エ蜷 + gridSize繧呈欠螳壹@縺ェ縺 + + gridSize縺ォ繝悶Λ繝ウ繧ッ繧偵@縺ヲ縺縺励◆蝣エ蜷 + gridSize縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳 + + gridSize繧呈欠螳壹@縺溷エ蜷 + gridSize繧呈欠螳 + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-hint/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\347\213\254\343\203\222\343\203\263\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-hint/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\347\213\254\343\203\222\343\203\263\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..cb3a434 --- /dev/null +++ "b/node_modules/nablarch-widget-field-hint/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\347\213\254\343\203\222\343\203\263\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-label/package.json b/node_modules/nablarch-widget-field-label/package.json new file mode 100644 index 0000000..5845826 --- /dev/null +++ b/node_modules/nablarch-widget-field-label/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-label" +, "version": "1.0.1" +, "_from" : "nablarch-widget-field-label@1.0.1" +, "dependencies": { + } +, "description": "繝ゥ繝吶Ν陦ィ遉コ繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-label/ui_public/WEB-INF/tags/widget/field/label.tag b/node_modules/nablarch-widget-field-label/ui_public/WEB-INF/tags/widget/field/label.tag new file mode 100644 index 0000000..d741942 --- /dev/null +++ b/node_modules/nablarch-widget-field-label/ui_public/WEB-INF/tags/widget/field/label.tag @@ -0,0 +1,60 @@ +<%-- + 繝ゥ繝吶Ν陦ィ遉コ + @author Hisaaki Sioiri +--%> + +<%@tag pageEncoding="UTF-8" description="鬆逶ョ縺ョ繝ゥ繝吶Ν陦ィ遉コ繧定。後≧繧ヲ繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="name" description="蜃コ蜉帛ッセ雎。縺ョ蛟、繧貞、画焚繧ケ繧ウ繝シ繝励°繧牙叙蠕励☆繧九◆繧√ョ蜷榊燕" rtexprvalue="true" required="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ蛟、 (逵∫払譎ゅッname螻樊ァ縺ィ蜷後§蛟、繧剃スソ逕ィ縺吶k)" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> +<%@ attribute name="domain" description="繝繝シ繧ソ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%@ attribute name="valueFormat" description="蜃コ蜉帶凾縺ョ繝輔か繝シ繝槭ャ繝茨シ郁ゥウ邏ー縺ッ縲『rite(n:write)繧ソ繧ー繧貞盾辣ァ" rtexprvalue="true" %> +<%@ attribute name="unit" description="繝ゥ繝吶Ν縺ョ蜿ウ蛛エ縺ォ陦ィ遉コ縺吶k蜊倅ス" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="comment" description="縺薙ョ繝ゥ繝吶Ν陦ィ遉コ鬆逶ョ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> +<%@ attribute name="formatSpec" description="邱ィ髮莉墓ァ倥↓髢「縺吶k隱ャ譏" %> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%------------------------------------------------------------%> + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/node_modules/nablarch-widget-field-label/ui_public/WEB-INF/tags/widget/field/label_code.tag b/node_modules/nablarch-widget-field-label/ui_public/WEB-INF/tags/widget/field/label_code.tag new file mode 100644 index 0000000..b088974 --- /dev/null +++ b/node_modules/nablarch-widget-field-label/ui_public/WEB-INF/tags/widget/field/label_code.tag @@ -0,0 +1,54 @@ +<%-- + 繧ウ繝シ繝牙ョ夂セゥ縺ォ蠕薙▲縺ヲ繝繧ュ繧ケ繝医Λ繝吶Ν繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝 + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="繧ウ繝シ繝牙ョ夂セゥ縺ォ蠕薙▲縺ヲ繝繧ュ繧ケ繝医Λ繝吶Ν繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="name" description="蜃コ蜉帛ッセ雎。縺ョ蛟、繧貞、画焚繧ケ繧ウ繝シ繝励°繧牙叙蠕励☆繧九◆繧√ョ蜷榊燕" rtexprvalue="true" required="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> + +<%@ attribute name="codeId" description="繧ウ繝シ繝牙ョ夂セゥID" required="true" rtexprvalue="true" %> +<%@ attribute name="pattern" description="菴ソ逕ィ縺吶k繧ウ繝シ繝峨ヱ繧ソ繝シ繝ウ縺ョ繧ォ繝ゥ繝蜷(繝繝輔か繝ォ繝医ッ'PATTERN01')" rtexprvalue="true" %> +<%@ attribute name="optionColumnName" description="蜿門セ励☆繧九が繝励す繝ァ繝ウ蜷咲ァー縺ョ繧ォ繝ゥ繝蜷(繝繝輔か繝ォ繝医ッ'OPTION01')" rtexprvalue="true" %> +<%@ attribute name="labelPattern" description="繝ゥ繝吶Ν陦ィ遉コ譖ク蠑(繝繝輔か繝ォ繝:$NAME$)" rtexprvalue="true" %> +<%@ attribute name="listFormat" description="繝ェ繧ケ繝郁。ィ遉コ譎ゅ↓菴ソ逕ィ縺吶k繝輔か繝シ繝槭ャ繝医ゑシ医ョ繝輔か繝ォ繝亥、縺ッ'sp'シ" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繧ウ繝シ繝芽。ィ遉コ鬆逶ョ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%------------------------------------------------------------%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繝代ち繝シ繝ウ繧ウ繝シ繝峨ョ繧ォ繝ゥ繝蜷 --%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繧ェ繝励す繝ァ繝ウ蜷咲ァー縺ョ繧ォ繝ゥ繝蜷 --%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繝ゥ繝吶Ν繧ウ繝シ繝 --%> + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\201\256\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\201\256\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272.jsp" new file mode 100644 index 0000000..8468e16 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\201\256\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272.jsp" @@ -0,0 +1,30 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + ui_test.AppServer.currentRequest().setParam( + "formdata.label_code", new String[] {"value1-1"}); +%> + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..8e34a31 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,11 @@ + + +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..b970b8d --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,31 @@ +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷title縺ォ謖螳壹@縺溷、シ医後ち繧、繝医Ν縲搾シ峨′縲》itle驛ィ縺ォ蜃コ蜉帙&繧後k縺薙→ + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧ょ性繧√◆縲∝ィ螻樊ァ繧呈欠螳壹@縺溷エ蜷医↓豁」縺励¥陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..7f3a450 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,12 @@ + +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..c5f4922 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,22 @@ +<%@ page import="java.util.Arrays" %> +<%@ page import="java.util.HashMap" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..edce255 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,16 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医√さ繝シ繝牙、縺後Λ繝吶Ν陦ィ遉コ縺輔l繧九%縺ィ + + + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..198c1bf --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,142 @@ +runTest( + sample螻樊ァ縺ョ繝繧ケ繝 + , listFormat螻樊ァ縺ョ繝繧ケ繝 + , 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝 + , pattern螻樊ァ縺ョ繝繧ケ繝 + , optionColumnName螻樊ァ縺ョ繝繧ケ繝 + , labelPattern螻樊ァ縺ョ繝繧ケ繝 +); + +var $all_nodes + , assertAttr = function(testcase, attr, expect) { + equal(testcase.field.attr(attr), expect, testcase.testcase + " [" + attr + "]"); + }; + +function setup() { + $all_nodes = $('span.test-case, div.field'); +} + +function sample螻樊ァ縺ョ繝繧ケ繝() { + setup(); + test_for('sample-test').each(function(){ + ok(this.field.text().isBlank(), this.testcase); + }); +} + +function unit螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('unit-test'), + assertUnitEmpty = function (testCase) { + equal($.trim(testCase.area.find('span.unit').html()), '', testCase.testcase); + }, + assertUnit = function (testCase) { + equal($.trim(testCase.area.find('span.unit').html()), '荳蜀', testCase.testcase); + }; + + assertUnitEmpty(cases[0]); // unit譛ェ謖螳 + assertUnitEmpty(cases[1]); // unit繝悶Λ繝ウ繧ッ + assertUnitEmpty(cases[2]); // unit謖螳壹□縺悟、縺檎ゥコ + assertUnit(cases[3]); // unit謖螳 +} + +function listFormat螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('listFormat-test') + , default_case = cases[0] + , blank_case = cases[1] + , ul_case = cases[2] + , labels = ["name1-1", "name1-2"] + , assertLabels = function(testcase, formatSpec) { + var assert = function(i, e) { + equal($.trim($(e).text()), labels[i], testcase.testcase); + }; + equal(testcase.field.find(formatSpec).size(), 2, testcase.testcase); + testcase.field.find(formatSpec).each(assert); + } + , assertNbspText = function(testcase) { + var text = $.trim(testcase.field.text()); + equal(text, labels.join("\xA0"), testcase.testcase); + }; + + assertNbspText(default_case); + assertNbspText(blank_case); + assertLabels(ul_case, 'ul > li'); +} + +function 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('title-input-size'), + assertNotSizeClass = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-13'), testCase.testcase); + ok(fieldContent.hasClass('grid-col-8'), testCase.testcase); + }; + + assertNotSizeClass(cases[0]); // size螻樊ァ譛ェ謖螳 + assertNotSizeClass(cases[1]); // size螻樊ァ繝悶Λ繝ウ繧ッ謖螳 + assertSize(cases[2]); // size螻樊ァ繧呈欠螳 +} + +function pattern螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('pattern-test') + , default_case = cases[0] + , blank_case = cases[1] + , pattern2_case = cases[2]; + + equal($.trim(default_case.field.text().compact()), 'name1-1name1-2name1-3', default_case.testcase); + equal($.trim(blank_case.field.text().compact()), 'name1-1name1-2name1-3', blank_case.testcase); + equal($.trim(pattern2_case.field.text().compact()), 'name1-2', pattern2_case.testcase); +} + +function optionColumnName螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('optionColumnName-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_opt_case = cases[2]; + + equal($.trim(default_case.field.text().compact()), 'name1-2 column:OPTION01' ,default_case.testcase); + equal($.trim(blank_case.field.text().compact()), 'name1-2 column:OPTION01' ,blank_case.testcase); + equal($.trim(set_opt_case.field.text().compact()), 'name1-2 column:OPTION03' ,set_opt_case.testcase); +} + +function labelPattern螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('labelPattern-test') + , default_case = cases[0] + , blank_case = cases[1] + , short_case = cases[2]; + + equal($.trim(default_case.field.text()), 'name1-2' ,default_case.testcase); + equal($.trim(blank_case.field.text()), 'name1-2' ,blank_case.testcase); + equal($.trim(short_case.field.text().compact()), 'name1-2 - short:name1-2 - name1-2 column:OPTION01 - value1-2' ,short_case.testcase); +} + +/** + * 繝ゥ繝吶Ν陦ィ遉コ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]); + return { + testcase : $.trim($e.text()), + area : $area, + field : $area.find('div.field-content') + }; + }); +} diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..31a8b60 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,48 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + /********************* + id螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + div#server\.id-none { + background-color: #7ec78f; + } + + div#server\.id-blank { + background-color: #a7c788; + } + + div#test-id { + border: 1px red solid; + } + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + div.cssClass-test { + border: 1px blue solid; + } + + /********************* + domain螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + div.domain-test { + border: 1px green solid; + } + + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..fff3e51 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,22 @@ +<%@ page import="java.util.Arrays" %> +<%@ page import="java.util.HashMap" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..b8e67c5 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\203\231\343\203\253/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,179 @@ +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + sample螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォcodeId縺ォ謖螳壹&繧後◆繧ウ繝シ繝峨ョ繧ウ繝シ繝牙錐遘ー縺悟コ蜉帙&繧後k縺薙→ + + + sample螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォcodeId縺ォ謖螳壹&繧後◆繧ウ繝シ繝峨ョ繧ウ繝シ繝牙錐遘ー縺悟コ蜉帙&繧後k縺薙→ + + + sample螻樊ァ繧呈欠螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝医〒縺ッlistFormat縺ァ謨エ蠖「縺輔l縺溘Μ繧ケ繝医r陦ィ遉コ縺吶k縺薙→縲 + + + + + + listFormat螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医《p蛹コ蛻繧翫ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + listFormat螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医《p蛹コ蛻繧翫ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝茨シulシ峨〒縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + + + + titleSize縺ィinputSize縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + +
+ + + + pattern螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医 ̄ATTERN01縺ォ蟇セ蠢懊☆繧九さ繝シ繝峨′陦ィ遉コ縺輔l繧九%縺ィ縲
+ 繝ュ繝シ繧ォ繝ォ陦ィ遉コ縺ァ繧ゅ…odeId螻樊ァ縺ォ謖螳壹&繧後◆繧ウ繝シ繝峨ョ蜷咲ァー縺後た繝シ繝磯縺ォ蠕薙▲縺ヲ繧ス繝シ繝医&繧後※陦ィ遉コ縺輔l繧九%縺ィ縲 +
+ + + pattern螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医 ̄ATTERN01縺ォ蟇セ蠢懊☆繧九さ繝シ繝峨′陦ィ遉コ縺輔l繧九%縺ィ + + + pattern螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヱ繧ソ繝シ繝ウシPATTERN02シ峨↓蟇セ蠢懊☆繧九さ繝シ繝峨′陦ィ遉コ縺輔l繧九%縺ィ + + +
+ + + optionColumnName螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医^PTION01縺ォ蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + optionColumnName螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医^PTION01縺ォ蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + optionColumnName螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘が繝励す繝ァ繝ウ蜷咲ァーシOPTION03シ峨↓蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + labelPattern螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医∝ッセ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + labelPattern螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ッセ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + labelPattern螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘励Ξ繝シ繧ケ繝帙Ν繝シ$NAME$ - $SHORTNAME$ - $OPTIONALNAME$ - $VALUE$シ峨↓蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + +
diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..23cab2b --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,15 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..9d134bc --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,32 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷title縺ォ謖螳壹@縺溷、シ医後ち繧、繝医Ν縲搾シ峨′縲》itle驛ィ縺ォ蜃コ蜉帙&繧後k縺薙→ + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧ょ性繧√◆縲∝ィ螻樊ァ繧呈欠螳壹@縺溷エ蜷医↓豁」縺励¥陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..a932231 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,52 @@ +runTest( + 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝 + , valueFormat螻樊ァ縺ョ繝繧ケ繝 +); + +var $all_nodes + , assertAttr = function(testcase, attr, expect) { + equal(testcase.field.attr(attr), expect, testcase.testcase + " [" + attr + "]"); + }; + +function setup() { + $all_nodes = $('span.test-case, div.field'); +} + + +function 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝() { + setup(); + var testcase = test_for('require_val-test')[0]; + ok($.trim(testcase.area.find('label').text()).startsWith('繧ソ繧、繝医Ν'), testcase.testcase); + ok($.trim(testcase.field.text()), '蠢鬆亥ア樊ァ繧呈欠螳', testcase.testcase); +} + +function valueFormat螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('valueFormat-test') + , default_case = cases[0] + , blank_case = cases[1] + , 蟷エ譛域律_case = cases[2]; + + equal($.trim(default_case.field.text()), '19700101', default_case.testacase); + equal($.trim(blank_case.field.text()), '19700101', blank_case.testacase); + equal($.trim(蟷エ譛域律_case.field.text()), '1970蟷エ01譛01譌・', 蟷エ譛域律_case.testacase); +} + +/** + * 繝ゥ繝吶Ν陦ィ遉コ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]); + return { + testcase : $.trim($e.text()), + area : $area, + field : $area.find('div.field-content') + }; + }); +} diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..36d5636 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,17 @@ + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..c62ef8d --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,13 @@ +<%@ page import="java.util.HashMap" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + if (!request.getParameterMap().containsKey("input")) { + request.setAttribute("server", new HashMap() {{ + put("required-name", "蠢鬆亥ア樊ァ繧呈欠螳"); + put("valueFormat-none", "19700101"); + put("valueFormat-blank", "19700101"); + put("valueFormat", "19700101"); + }}); + } +%> diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..3a79a44 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,37 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺ヲ縲∵ュ」縺励¥name螻樊ァ縺ォ謖螳壹&繧後◆螟画焚縺ョ蛟、縺悟コ蜉帙&繧後k縺薙→ + + + + + + valueFormat螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ヵ繧ゥ繝シ繝槭ャ繝医&繧後★縺ォ蛟、縺悟コ蜉帙&繧後k縺薙→ + + + valueFormat螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ヵ繧ゥ繝シ繝槭ャ繝医&繧後★縺ォ蛟、縺悟コ蜉帙&繧後k縺薙→ + + + valueFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ繝輔か繝シ繝槭ャ繝医↓蠕薙>蛟、縺後ヵ繧ゥ繝シ繝槭ャ繝医&繧後※蜃コ蜉帙&繧後k縺薙→ + + + + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..933a1c6 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,129 @@ +runTest( + id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , domain螻樊ァ縺ョ繝繧ケ繝 + , sample螻樊ァ縺ョ繝繧ケ繝 + , sample螻樊ァ縺ョ繝繧ケ繝 + , unit螻樊ァ縺ョ繝繧ケ繝 + , 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝 +); + +var $all_nodes + , assertAttr = function(testcase, attr, expect) { + equal(testcase.field.attr(attr), expect, testcase.testcase + " [" + attr + "]"); + }; + +function setup() { + $all_nodes = $('span.test-case, div.field'); +} + +function id螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('id-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assertId = function(testcase, id) { + assertAttr(testcase, 'id', id); + }; + + assertId(default_case, "server.id-none"); + assertId(blank_case, "server.id-blank"); + assertId(set_case, "test-id"); +} + +function cssClass螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + ok(!default_case.field.is('.cssClass-test'), default_case.testcase); + ok(!blank_case.field.is('.cssClass-test'), blank_case.testcase); + ok(set_case.field.is('.cssClass-test'), set_case.testcase); +} + +function domain螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('domain-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + ok(!default_case.area.is('.cssClass-test'), default_case.testcase); + ok(!blank_case.area.is('.cssClass-test'), blank_case.testcase); + ok(set_case.area.is('.domain-test'), set_case.testcase); +} + +function sample螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('sample-test'); + cases.each(function(){ + ok(this.field.text().isBlank(), this.testcase); + }); +} + +function sample螻樊ァ縺ョ繝繧ケ繝() { + setup(); + test_for('sample-test').each(function(){ + ok(this.field.text().isBlank(), this.testcase); + }); +} + +function unit螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('unit-test'), + assertUnitEmpty = function (testCase) { + equal($.trim(testCase.area.find('span.unit').html()), '', testCase.testcase); + }, + assertUnit = function (testCase) { + equal($.trim(testCase.area.find('span.unit').html()), '荳蜀', testCase.testcase); + }; + + assertUnitEmpty(cases[0]); // unit譛ェ謖螳 + assertUnitEmpty(cases[1]); // unit繝悶Λ繝ウ繧ッ + assertUnitEmpty(cases[2]); // unit謖螳壹□縺悟、縺檎ゥコ + assertUnit(cases[3]); // unit謖螳 +} + +function 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('title-input-size'), + assertNotSizeClass = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-4'), testCase.testcase); + ok(fieldContent.hasClass('grid-col-7'), testCase.testcase); + }; + + assertNotSizeClass(cases[0]); // size螻樊ァ譛ェ謖螳 + assertNotSizeClass(cases[1]); // size螻樊ァ繝悶Λ繝ウ繧ッ謖螳 + assertSize(cases[2]); // size螻樊ァ繧呈欠螳 +} + +/** + * 繝ゥ繝吶Ν陦ィ遉コ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]); + return { + testcase : $.trim($e.text()), + area : $area, + field : $area.find('div.field-content') + }; + }); +} diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..0d5aa25 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,51 @@ + + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + /********************* + id螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + div#server\.id-none { + background-color: #7ec78f; + } + + div#server\.id-blank { + background-color: #a7c788; + } + + div#test-id { + border: 1px red solid; + } + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + div.cssClass-test { + border: 1px blue solid; + } + + /********************* + domain螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + div.domain-test { + border: 1px green solid; + } + + + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..ffd3627 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,29 @@ +<%@ page import="java.util.Arrays" %> +<%@ page import="java.util.HashMap" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..8f510c8 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,165 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + id螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + id螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョid縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + cssClass螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺掲ield-content縺ョ縺ソ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺掲ield-content縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺ォ謖螳壹@縺歡ssClass縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + domain螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∬ヲェ縺ョdiv縺ョclass螻樊ァ縺掲ield縺ョ縺ソ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + domain螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∬ヲェ縺ョdiv縺ョclass螻樊ァ縺掲ield縺ョ縺ソ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + domain螻樊ァ繧呈欠螳壹@縺溷エ蜷医∬ヲェ縺ョdiv縺ョclass螻樊ァ縺ォ謖螳壹@縺歸omain縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + sample螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ繧呈欠螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝医〒縺ッ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後k縺薙→ + + + + + + + unit螻樊ァ繧呈欠螳壹@縺ヲ縺縺ェ縺縺ョ縺ァ縲∝腰菴阪ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + + + + unit螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝腰菴阪ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + + + + unit螻樊ァ繧呈欠螳壹@縺ヲ縺繧九′縲∝コ蜉帙&繧後k蛟、縺檎ゥコ縺ョ縺溘a蜊倅ス阪ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + + + + unit螻樊ァ繧呈欠螳壹@縺溷エ蜷医√Λ繝吶Ν縺ョ蜿ウ蛛エ縺ォ蜊倅ス阪′蜃コ蜉帙&繧後k縺薙→ + + + + + + + + titleSize縺ィinputSize縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + titleSize縺ィinputSize縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + + +
+
diff --git a/node_modules/nablarch-widget-field-label_block/package.json b/node_modules/nablarch-widget-field-label_block/package.json new file mode 100644 index 0000000..3fd299f --- /dev/null +++ b/node_modules/nablarch-widget-field-label_block/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-label_block" +, "version": "1.0.0" +, "_from" : "nablarch-widget-field-label_block@1.0.0" +, "dependencies": { + } +, "description": "繧ソ繧ー繝懊ョ繧」縺ョ蜀螳ケ繧偵Λ繝吶Ν陦ィ遉コ縺吶k繧ヲ繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-field-label_block/ui_public/WEB-INF/tags/widget/field/label_block.tag b/node_modules/nablarch-widget-field-label_block/ui_public/WEB-INF/tags/widget/field/label_block.tag new file mode 100644 index 0000000..6660a75 --- /dev/null +++ b/node_modules/nablarch-widget-field-label_block/ui_public/WEB-INF/tags/widget/field/label_block.tag @@ -0,0 +1,32 @@ +<%-- + 繝ゥ繝吶Ν陦ィ遉コ + @author Hisaaki Sioiri +--%> + +<%@tag pageEncoding="UTF-8" description="繧ソ繧ー繝懊ョ繧」蜀螳ケ縺ョ繝ゥ繝吶Ν陦ィ遉コ繧定。後≧繧ヲ繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> + +<%----------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌逕ィシ ----------------%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繝ゥ繝吶Ν陦ィ遉コ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> + + + + + + + diff --git "a/node_modules/nablarch-widget-field-label_block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\343\203\226\343\203\255\343\203\203\343\202\257/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-label_block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\343\203\226\343\203\255\343\203\203\343\202\257/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..be4ef47 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label_block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\343\203\226\343\203\255\343\203\203\343\202\257/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,65 @@ +runTest( + label_block縺ョ繝繧ケ繝 + , 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝 +); + +var $all_nodes + , assertAttr = function(testcase, attr, expect) { + equal(testcase.field.attr(attr), expect, testcase.testcase + " [" + attr + "]"); + }; + +function setup() { + $all_nodes = $('span.test-case, div.field'); +} + +function label_block縺ョ繝繧ケ繝() { + setup(); + var cases = test_for("label_block-test") + , require_case = cases[0] + , body_case = cases[1]; + ok($.trim(require_case.area.find('label').text()).startsWith('繧ソ繧、繝医Ν'), require_case.testcase); + ok($.trim(body_case.area.find('label').text()).startsWith('body'), body_case.testcase); + ok($.trim(body_case.field.text()), '縺薙ョ蜀螳ケ縺後Λ繝吶Ν縺ィ縺励※陦ィ遉コ縺輔l繧九%縺ィ縲', body_case.testcase); +} + +function 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('title-input-size'), + assertNotSizeClass = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-8'), testCase.testcase); + ok(fieldContent.hasClass('grid-col-12'), testCase.testcase); + }; + + assertNotSizeClass(cases[0]); // size螻樊ァ譛ェ謖螳 + assertNotSizeClass(cases[1]); // size螻樊ァ繝悶Λ繝ウ繧ッ謖螳 + assertSize(cases[2]); // size螻樊ァ繧呈欠螳 +} + +/** + * 繝ゥ繝吶Ν陦ィ遉コ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]); + return { + testcase : $.trim($e.text()), + area : $area, + field : $area.find('div.field-content') + }; + }); +} diff --git "a/node_modules/nablarch-widget-field-label_block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\343\203\226\343\203\255\343\203\203\343\202\257/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-label_block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\343\203\226\343\203\255\343\203\203\343\202\257/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..3b3ccdf --- /dev/null +++ "b/node_modules/nablarch-widget-field-label_block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\343\203\226\343\203\255\343\203\203\343\202\257/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,44 @@ + + +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + /********************* + id螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + div#server\.id-none { + background-color: #7ec78f; + } + + div#server\.id-blank { + background-color: #a7c788; + } + + div#test-id { + border: 1px red solid; + } + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + div.cssClass-test { + border: 1px blue solid; + } + + /********************* + domain螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + div.domain-test { + border: 1px green solid; + } + + + diff --git "a/node_modules/nablarch-widget-field-label_block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\343\203\226\343\203\255\343\203\203\343\202\257/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-field-label_block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\343\203\226\343\203\255\343\203\203\343\202\257/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..d6150b5 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label_block/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\203\231\343\203\253\343\203\226\343\203\255\343\203\203\343\202\257/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,55 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷title縺ォ謖螳壹@縺溷、シ医後ち繧、繝医Ν縲搾シ峨′縲》itle驛ィ縺ォ蜃コ蜉帙&繧後k縺薙→ + + + + + body驛ィ縺ォ險倩シ峨@縺溷螳ケ縺後√Λ繝吶Ν縺ィ縺励※陦ィ遉コ縺輔l繧九%縺ィ + + 縺薙ョ蜀螳ケ縺後Λ繝吶Ν縺ィ縺励※陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + titleSize縺ィinputSize縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + 縺繧阪>繧崎。ィ遉コ縺輔l繧句エ謇 + + + + titleSize縺ィinputSize縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + 縺繧阪>繧崎。ィ遉コ縺輔l繧句エ謇 + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + hoge
+ fuga
+
+
+
+ diff --git a/node_modules/nablarch-widget-field-label_id_value/package.json b/node_modules/nablarch-widget-field-label_id_value/package.json new file mode 100644 index 0000000..a903876 --- /dev/null +++ b/node_modules/nablarch-widget-field-label_id_value/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-label_id_value" +, "version": "1.0.1" +, "_from" : "nablarch-widget-field-label_id_value@1.0.1" +, "dependencies": { + } +, "description": "ID蛟、縺ィ蜷咲ァー繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-label_id_value/ui_public/WEB-INF/tags/widget/field/label_id_value.tag b/node_modules/nablarch-widget-field-label_id_value/ui_public/WEB-INF/tags/widget/field/label_id_value.tag new file mode 100644 index 0000000..216eab9 --- /dev/null +++ b/node_modules/nablarch-widget-field-label_id_value/ui_public/WEB-INF/tags/widget/field/label_id_value.tag @@ -0,0 +1,48 @@ +<%-- + 繝ゥ繝吶Ν陦ィ遉コ + + ID蛟、縺ィ蜷咲ァーシVALUEシ峨r縲:縲阪〒騾」邨舌@縺ヲ蜃コ蜉帙☆繧九 + + @author Hisaaki Sioiri +--%> + +<%@tag pageEncoding="UTF-8" description="ID蛟、縺ィ蜷咲ァーシVALUEシ峨r縲:縲阪〒騾」邨舌@縺ヲ蜃コ蜉帙☆繧九" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、 (ID縺ョ繧オ繝ウ繝励Ν蛟、):(蜷咲ァー縺ョ繧オ繝ウ繝励Ν蛟、) 縺ョ譖ク蠑上〒蜈・蜉帙☆繧九" rtexprvalue="true" %> +<%@ attribute name="domain" description="鬆逶ョ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> + +<%---------------------- 蛟句挨螻樊ァ ----------------------%> +<%@ attribute name="idName" description="ID蛟、縺ョname螻樊ァ" required="true" rtexprvalue="true" %> +<%@ attribute name="valueName" description="蜷咲ァー縺ョname螻樊ァ" required="true" rtexprvalue="true" %> + +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ陦ィ遉コ鬆逶ョ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..432dbdc --- /dev/null +++ "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,11 @@ + + +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..50c792d --- /dev/null +++ "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,26 @@ +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷title縺ォ謖螳壹@縺溷、シ医後ち繧、繝医Ν縲搾シ峨′縲》itle驛ィ縺ォ蜃コ蜉帙&繧後k縺薙→ + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧ょ性繧√◆縲∝ィ螻樊ァ繧呈欠螳壹@縺溷エ蜷医↓豁」縺励¥陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + diff --git "a/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..796433a --- /dev/null +++ "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,39 @@ +runTest( + value_id縺ョ繝繧ケ繝 +); + +var $all_nodes + , assertAttr = function (testcase, attr, expect) { + equal(testcase.field.attr(attr), expect, testcase.testcase + " [" + attr + "]"); + }; + +function setup() { + $all_nodes = $('span.test-case, div.field'); +} + +function value_id縺ョ繝繧ケ繝() { + setup(); + var value_id = {value: "value縺ョ蛟、", id: "ID縺ョ蛟、"} + , testcase = test_for('value_id-test')[0]; + + equal($.trim(testcase.field.text()), value_id.id + ":" + value_id.value, testcase.testcase); +} + +/** + * 繝ゥ繝吶Ν陦ィ遉コ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function () { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]); + return { + testcase: $.trim($e.text()), + area : $area, + field : $area.find('div.field-content') + }; + }); +} diff --git "a/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..6c104d2 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,13 @@ + +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + diff --git "a/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..10efa33 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,14 @@ +<%@ page import="java.util.Arrays" %> +<%@ page import="java.util.HashMap" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..1442965 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,19 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + 蜈ィ螻樊ァ繧呈欠螳壹@縺溷エ蜷医!D縺ィVALUE縺後→繧ゅ↓陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + diff --git "a/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..da895e4 --- /dev/null +++ "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,62 @@ +runTest( + sample螻樊ァ縺ョ繝繧ケ繝 + , 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝 +); + +var $all_nodes + , assertAttr = function(testcase, attr, expect) { + equal(testcase.field.attr(attr), expect, testcase.testcase + " [" + attr + "]"); + }; + +function setup() { + $all_nodes = $('span.test-case, div.field'); +} + +function sample螻樊ァ縺ョ繝繧ケ繝() { + setup(); + test_for('sample-test').each(function(){ + ok(this.field.text().isBlank(), this.testcase); + }); +} + +function 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('title-input-size'), + assertNotSizeClass = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-12'), testCase.testcase); + ok(fieldContent.hasClass('grid-col-9'), testCase.testcase); + }; + + assertNotSizeClass(cases[0]); // size螻樊ァ譛ェ謖螳 + assertNotSizeClass(cases[1]); // size螻樊ァ繝悶Λ繝ウ繧ッ謖螳 + assertSize(cases[2]); // size螻樊ァ繧呈欠螳 +} + +/** + * 繝ゥ繝吶Ν陦ィ遉コ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]); + return { + testcase : $.trim($e.text()), + area : $area, + field : $area.find('div.field-content') + }; + }); +} diff --git "a/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..c17c79d --- /dev/null +++ "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,48 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + /********************* + id螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + div#server\.id-none { + background-color: #7ec78f; + } + + div#server\.id-blank { + background-color: #a7c788; + } + + div#test-id { + border: 1px red solid; + } + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + div.cssClass-test { + border: 1px blue solid; + } + + /********************* + domain螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + div.domain-test { + border: 1px green solid; + } + + + diff --git "a/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..9a2d13c --- /dev/null +++ "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,15 @@ +<%@ page import="java.util.Arrays" %> +<%@ page import="java.util.HashMap" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..0e5d16b --- /dev/null +++ "b/node_modules/nablarch-widget-field-label_id_value/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/ID\343\201\250\343\203\251\343\203\231\343\203\253\350\241\250\347\244\272/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,69 @@ +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + sample螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ繧呈欠螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝医〒縺ッ謖螳壹&繧後◆蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + titleSize縺ィinputSize縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + + +
+
diff --git a/node_modules/nablarch-widget-field-listbuilder/package.json b/node_modules/nablarch-widget-field-listbuilder/package.json new file mode 100644 index 0000000..51093ea --- /dev/null +++ b/node_modules/nablarch-widget-field-listbuilder/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-listbuilder" +, "version": "1.0.1" +, "_from" : "nablarch-widget-field-listbuilder@1.0.1" +, "dependencies": { + } +, "description": "繝ェ繧ケ繝医ン繝ォ繝繝シ蜈・蜉幃逶ョ繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-listbuilder/ui_public/WEB-INF/tags/widget/field/listbuilder.tag b/node_modules/nablarch-widget-field-listbuilder/ui_public/WEB-INF/tags/widget/field/listbuilder.tag new file mode 100644 index 0000000..86b6ceb --- /dev/null +++ b/node_modules/nablarch-widget-field-listbuilder/ui_public/WEB-INF/tags/widget/field/listbuilder.tag @@ -0,0 +1,112 @@ +<%-- + 繝ェ繧ケ繝医ン繝ォ繝繝シ + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="繝ェ繧ケ繝医ン繝ォ繝繝シUI驛ィ蜩√r陦ィ遉コ縺吶k繧ヲ繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%---------------------- 螻樊ァ螳夂セゥシ亥ア騾夲シ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="domain" description="鬆逶ョ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="readonly" description="邱ィ髮蜿ッ閭ス縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="name" description="HTML縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> +<%@ attribute name="nameAlias" description="荳縺、縺ョ繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ォ蟇セ縺励※隍謨ー縺ョ蜈・蜉幃逶ョ繧偵ワ繧、繝ゥ繧、繝郁。ィ遉コ縺吶k蝣エ蜷医↓謖螳壹☆繧具シ磯逶ョ髢鍋イセ譟サ縺ェ縺ゥシ峨りゥウ邏ー縺ォ縺、縺縺ヲ縺ッ縲、pplication Framework隗」隱ャ譖ク縺ョ縲後お繝ゥ繝シ陦ィ遉コ縲阪r蜿らァ縲" rtexprvalue="true" %> +<%@ attribute name="hint" description="蜈・蜉帛螳ケ繧逡呎э轤ケ縺ェ縺ゥ縺ョ陬懷勧繝繧ュ繧ケ繝" rtexprvalue="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ亥句挨シ ----------------------%> +<%@ attribute name="listName" description="驕ク謚樣逶ョ縺ョ繝ェ繧ケ繝医ョ螻樊ァ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="size" description="繝ェ繧ケ繝井ク翫↓荳蠎ヲ縺ォ陦ィ遉コ縺吶k莉カ謨ー (繝繝輔か繝ォ繝医ッ6莉カ)" rtexprvalue="true" %> +<%@ attribute name="elementLabelProperty" description="繝ェ繧ケ繝郁ヲ∫エ縺九i蛟、繧貞叙蠕励☆繧九◆繧√ョ繝励Ο繝代ユ繧」蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="elementValueProperty" description="繝ェ繧ケ繝郁ヲ∫エ縺九i繝ゥ繝吶Ν繧貞叙蠕励☆繧九◆繧√ョ繝励Ο繝代ユ繧」蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="elementLabelPattern" description="繝ゥ繝吶Ν繧呈紛蠖「縺吶k縺溘a縺ョ繝代ち繝シ繝ウ縲" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繝ェ繧ケ繝医ン繝ォ繝繝シ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲(蜈・蜉幃Κ縺ョ蟷縺ッ21繧ー繝ェ繝繝牙崋螳壹→縺ェ繧)" rtexprvalue="true" %> +<%------------------------------------------------------------%> + + + + + + + + <%-- listFormat縺梧欠螳壹&繧後※縺縺ェ縺蝣エ蜷医↓繧ィ繝ゥ繝シ縺ィ縺ェ繧九◆繧√∵欠螳壹&繧後↑縺蝣エ蜷医ッ'br'繧呈守、コ逧縺ォ險ュ螳壹☆繧九 --%> + + + +
+
+ + + + + + + + +
+ + + + + - + + +
+
diff --git a/node_modules/nablarch-widget-field-listbuilder/ui_public/css/ui/listbuilder-multicol.less b/node_modules/nablarch-widget-field-listbuilder/ui_public/css/ui/listbuilder-multicol.less new file mode 100644 index 0000000..4a02f57 --- /dev/null +++ b/node_modules/nablarch-widget-field-listbuilder/ui_public/css/ui/listbuilder-multicol.less @@ -0,0 +1,5 @@ +#content .field.listbuilder { + div.field-content { + .grid-col(21); + } +} diff --git a/node_modules/nablarch-widget-field-listbuilder/ui_public/css/ui/listbuilder.less b/node_modules/nablarch-widget-field-listbuilder/ui_public/css/ui/listbuilder.less new file mode 100644 index 0000000..cfa3863 --- /dev/null +++ b/node_modules/nablarch-widget-field-listbuilder/ui_public/css/ui/listbuilder.less @@ -0,0 +1,20 @@ +#content .field { + select.listbuilder_from, select.listbuilder_to { + width: 140px; + margin: 0; + font-size: @smallerFontSize; + } + + div.nablarch_ListBuilder { + width: 25px; + margin: 0 2px 0 2px; + float: left; + button { + border-radius: 0; + margin: 0 0 5px 0; + padding: 0; + font-size: @smallerFontSize; + width: 23px; + } + } +} diff --git a/node_modules/nablarch-widget-field-listbuilder/ui_public/js/nablarch/ui/ListBuilder.js b/node_modules/nablarch-widget-field-listbuilder/ui_public/js/nablarch/ui/ListBuilder.js new file mode 100644 index 0000000..88960ca --- /dev/null +++ b/node_modules/nablarch-widget-field-listbuilder/ui_public/js/nablarch/ui/ListBuilder.js @@ -0,0 +1,274 @@ +/** + * @module nablarch.ui + */ +define(["text!./ListBuilder.template", "jquery", "./Widget", "./readonly","./event", "sugar"], +function(template, $, Widget, readOnly) { "use strict"; + /** + * 繝ェ繧ケ繝医ン繝ォ繝繝シ + * ============================================ + * 2縺、縺ョ繝ェ繧ケ繝医懊ャ繧ッ繧ケ(` + * + * + * + *
+ *
+ * + * + * + * + * + * **螳溯」萓 (JSP)** + * 莉・荳九ッJSP縺ョ險倩ソー萓九〒縺ゅk縲 + * + * 繝ェ繧ケ繝医ン繝ォ繝繝シ縺ョ驕ク謚樒憾諷九ッ縲∝晄悄繝ュ繝シ繝画凾縺ィ繧オ繝悶Α繝繝亥ヲ逅譎ゅ↓騾∽ソ。蜈繝ェ繧ケ繝医懊ャ繧ッ繧ケ縺ォ蜿肴丐縺輔l繧九ョ縺ァ縲 + * 繧オ繝シ繝仙エ縺九i隕九◆繝ェ繧ケ繝医ン繝ォ繝繝シ縺ョ謇ア縺縺ッ縲騾壼クク縺ョ繝ェ繧ケ繝医懊ャ繧ッ繧ケ縺ィ蜈ィ縺丞酔縺倥b縺ョ縺ィ縺ェ繧九 + * 縺薙ョ縺溘a縲゛SP繧定ィ倩ソー縺吶k蝣エ蜷医ッ縲驕ク謚槫繝ェ繧ケ繝医r騾壼クク縺ゥ縺翫j `` 縺ェ縺ゥ繧剃スソ逕ィ縺励※蜃コ蜉帙@縲 + * 驕ク謚槫医Μ繧ケ繝医↓縺、縺縺ヲ縺ッ遨コ縺ョ ` + * + * + * @class nablarch.ui.ListBuilder + * @author Iwauo Tajima + * @since 1.2 + */ + ListBuilder.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * + * @method ListBuilder + * @constructor + * @param {HTMLElement} element ListBuilder縺ョ繧ウ繝ウ繝医Ο繝シ繝ォ驛ィ蛻縺ョDOM繝弱シ繝 + * @param {Object} opts 荳玖ィ倥ョ繧ェ繝励す繝ァ繝ウ繧呈シ邏阪@縺溘が繝悶ず繧ァ繧ッ繝 + * **from:** (`String`) 驕ク謚槫繝ェ繧ケ繝医懊ャ繧ッ繧ケ縺ョID + * **to:** (`String`) 驕ク謚槫医Μ繧ケ繝医懊ャ繧ッ繧ケ縺ョID + * @return {ListBuilder} 繧、繝ウ繧ケ繧ソ繝ウ繧ケ + */ + constructor: ListBuilder + /** + * 驕ク謚槫医Μ繧ケ繝医懊ャ繧ッ繧ケ + * @property $toList + * @type jQuery + */ + , $toList: null + /** + * 驕ク謚槫繝ェ繧ケ繝医懊ャ繧ッ繧ケ + * @property $fromList + * @type jQuery + */ + , $fromList: null + /** + * 蜈ィ縺ヲ縺ョ繧「繧、繝繝繧帝∈謚槫医Μ繧ケ繝医懊ャ繧ッ繧ケ縺ォ遘サ蜍輔☆繧九 + * @method addAll + * @chainable + */ + , addAll: ListBuilder_moveItem.fill("select", true) + /** + * 驕ク謚槫繝ェ繧ケ繝医懊ャ繧ッ繧ケ縺ァ驕ク謚樔クュ縺ョ繧「繧、繝繝繧帝∈謚槫医Μ繧ケ繝医懊ャ繧ッ繧ケ縺ォ遘サ蜍輔☆繧九 + * @method add + * @chainable + */ + , add: ListBuilder_moveItem.fill("select", false) + /** + * 蜈ィ縺ヲ縺ョ繧「繧、繝繝繧帝∈謚槫繝ェ繧ケ繝医懊ャ繧ッ繧ケ縺ォ遘サ蜍輔☆繧九 + * @method removeAll + * @chainable + */ + , removeAll: ListBuilder_moveItem.fill("unselect", true) + /** + * 驕ク謚槫医Μ繧ケ繝医懊ャ繧ッ繧ケ縺ァ驕ク謚樔クュ縺ョ繧「繧、繝繝繧帝∈謚槫繝ェ繧ケ繝医懊ャ繧ッ繧ケ縺ォ遘サ蜍輔☆繧九 + * @method remove + * @chainable + */ + , remove: ListBuilder_moveItem.fill("unselect", false) + /** + * 驕ク謚槫繝ェ繧ケ繝医懊ャ繧ッ繧ケ縺ョ驕ク謚樒憾諷九↓縺ゅo縺帙※縲∝推繝ェ繧ケ繝医懊ャ繧ッ繧ケ荳翫ョ隕∫エ繧堤ァサ蜍輔☆繧九 + * 蜈キ菴鍋噪縺ォ縺ッ縲驕ク謚槫繝ェ繧ケ繝医懊ャ繧ッ繧ケ縺ョselected隕∫エ繧帝∈謚槫医Μ繧ケ繝医懊ャ繧ッ繧ケ縺ォ遘サ蜍輔☆繧九 + * @method render + * @chainable + */ + , render: ListBuilder_render + /** + * 繧オ繝悶Α繝繝域凾縺ォ驕ゥ蛻縺ェ蛟、縺碁∽ソ。縺輔l繧九h縺縺ォ縲 + * 迴セ蝨ィ縺ョ繝ェ繧ケ繝医ン繝ォ繝繝シ縺ョ驕ク謚樒憾諷九r驕ク謚槫繝ェ繧ケ繝医↓蜿肴丐縺吶k縲 + * + * 蜈キ菴鍋噪縺ォ縺ッ莉・荳九ョ謫堺ス懊r陦後≧縲 + * 1. 驕ク謚槫繝ェ繧ケ繝亥縺ョ蜷隕∫エ縺ォ縺、縺縺ヲselected螻樊ァ繧帝勁蜴サ縺吶k縲 + * 2. 驕ク謚槫医Μ繧ケ繝医ョ蜷隕∫エ縺ョselected螻樊ァ縺ョ蛟、繧定ィュ螳壹@縲驕ク謚槫繝ェ繧ケ繝医↓霑ス蜉縺吶k縲 + * + * @method update + * @chainable + */ + , update: ListBuilder_update + }); + + /** + * 繧、繝吶Φ繝亥ョ夂セゥ + * + * ListBuilder.event = { + * "button.addAll click" : "addAll" + * , "button.add click" : "add" + * , "button.removeAll click" : "removeAll" + * , "button.remove click" : "remove" + * , "document beforeSubmit" : "update" // nablarch_submit 縺ォ繧医k繧オ繝悶Α繝繝亥燕 + * , "document afterSubmit" : "render" // nablarch_submit 縺ォ繧医k繧オ繝悶Α繝繝亥セ + * }; + * + * @property event + * @type Object + * @static + * @final + */ + ListBuilder.event = { + "button.addAll click" : "addAll" + , "button.add click" : "add" + , "button.removeAll click" : "removeAll" + , "button.remove click" : "remove" + , "document beforeSubmit" : "update" // nablarch_submit 縺ォ繧医k繧オ繝悶Α繝繝亥燕 + , "document afterSubmit" : "render" // nablarch_submit 縺ォ繧医k繧オ繝悶Α繝繝亥セ + }; + + /** + * 繧ヲ繧」繧ク繧ァ繝繝郁ュ伜挨蟄 + * @property widgetType + * @static + * @final + * @default "nablarch_ListBuilder" + */ + ListBuilder.widgetType = "nablarch_ListBuilder"; + + Widget.register(ListBuilder); + + function ListBuilder(element, option) { + if (!element) return this; + + this.constructor = ListBuilder; + Widget.call(this, element); + + this.$toList = $("#" + option.to); + this.$fromList = $("#" + option.from); + this.$options = this.$fromList.find("option"); + this.$control = $(element).html(template); + + this.render(); + } + + function ListBuilder_render() { + var $toList = this.$toList.empty("option") + , $fromList = this.$fromList.empty("option") + , $options = this.$options; + + $options.filter(":selected").appendTo($toList); + $options.filter(":not(:selected)").appendTo($fromList); + $options.width(); //縺ェ繧縺ェ繧 + $options.prop("selected", ""); + if ($fromList.hasClass(readOnly.markerCss) || $fromList.attr('disabled')) { + // 隱ュ縺ソ蜿悶j蟆ら畑縺ョ蝣エ蜷医↓縺ッ縲√懊ち繝ウ繧帝撼豢サ諤ァ蛹悶☆繧 + this.$control.find('button').attr('disabled', 'true'); + } + // IE蟇セ蠢懊ョ繧ウ繝シ繝 + // IE縺ッtab縺ァ遘サ蜍輔@縺溷エ蜷医∵怙蠕後↓selected縺縺」縺殪ption縺ォ繝輔か繝シ繧ォ繧ケ繧貞ス薙※繧九◆繧√ + // 繝ェ繧ケ繝医懊ャ繧ッ繧ケ謫堺ス懈凾縺ォ縺ッ蠢縺壼磯ュ隕∫エ縺ォ繝輔か繝シ繧ォ繧ケ縺檎ァサ蜍輔☆繧九h縺縺ォ縲 蜈磯ュ隕∫エ縺ョselected繧呈守、コ逧縺ォ險ュ螳壹@縺ヲ縺ゅ£繧九 + $toList.find("option").first().prop("selected", "selected").prop("selected", ""); + return this; + } + + /** + * 繝ェ繧ケ繝医懊ャ繧ッ繧ケ荳翫ョoption隕∫エ繧堤ァサ蜍輔☆繧九 + * + * @param {String} direction 遘サ蜍輔☆繧区婿蜷代r陦ィ縺呎枚蟄怜励 + * "select" 縺ッ驕ク謚槫医Μ繧ケ繝医↓縲 + * "unselect" 縺ァ縺ッ驕ク謚槫繝ェ繧ケ繝医↓縺昴l縺槭l遘サ蜍輔☆繧九 + * + * @param {boolean} all true繧呈欠螳壹@縺溷エ蜷医ッ蜈ィoption隕∫エ繧堤ァサ蜍募ッセ雎。縺ィ縺吶k縲 + * false 繧ゅ@縺上ッ逵∫払縺励◆蝣エ蜷医ッ縲驕ク謚槫繝ェ繧ケ繝井ク翫ョ + * 驕ク謚樒憾諷(selected)縺ォ縺ゅkoption隕∫エ繧堤ァサ蜍輔☆繧九 + * @chainable + */ + function ListBuilder_moveItem(direction, all) { + var select = (direction === "select") + , $fromList = this.$fromList + , $toList = this.$toList + , $target = (select ? $fromList : $toList) + .find(all ? "option" : "option:selected"); + + if ($fromList.hasClass(readOnly.markerCss) || $fromList.is(':disabled') + || $toList.hasClass(readOnly.markerCss) || $toList.is(':disabled')) { + return false; + } + + $fromList.find("option").remove().prop("selected", ""); + $toList.find("option").remove().prop("selected", "selected"); + $target.prop("selected", select ? "selected" : ""); + return this.render(); + } + + function ListBuilder_update() { + var $selected = this.$toList.find("option") + , $unselected = this.$fromList.find("option"); + + $unselected.prop("selected", ""); + $selected.prop("selected", "selected") + .hide() // 繝ヲ繝シ繧カ縺九i隕九∴縺ェ縺繧医≧縺ォ縲ゅ + .appendTo(this.$fromList); + return this; + } + + return ListBuilder; +}); + diff --git a/node_modules/nablarch-widget-field-listbuilder/ui_public/js/nablarch/ui/ListBuilder.template b/node_modules/nablarch-widget-field-listbuilder/ui_public/js/nablarch/ui/ListBuilder.template new file mode 100644 index 0000000..c00b4ef --- /dev/null +++ b/node_modules/nablarch-widget-field-listbuilder/ui_public/js/nablarch/ui/ListBuilder.template @@ -0,0 +1,12 @@ +
+ +
+
+ +
+
+ +
+
+ +
diff --git "a/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/index.jsp" "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/index.jsp" new file mode 100644 index 0000000..37cac9f --- /dev/null +++ "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/index.jsp" @@ -0,0 +1,22 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
  • +
  • +
  • +
+
+
+
\ No newline at end of file diff --git "a/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" new file mode 100644 index 0000000..750b07b --- /dev/null +++ "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" @@ -0,0 +1,109 @@ + + runTest( + 蛻晄悄驕ク謚樣逶ョ縺1縺、繧ら┌縺蝣エ蜷医ョ蛻晄悄陦ィ遉コ遒コ隱 + , 鬆逶ョ繧1縺、驕ク謚槭@縺ヲ霑ス蜉縺ァ縺阪k縺薙→ + , 繧オ繝悶Α繝繝域凾縺ォ驕ク謚槭@縺滄逶ョ縺ョ縺ソ騾∽ソ。縺輔l繧九%縺ィ + , 驕ク謚樔クュ縺ョ鬆逶ョ繧帝∈謚槫医Μ繧ケ繝医°繧牙、悶○繧九%縺ィ + , 蜈ィ鬆逶ョ繧定ソス蜉縺ァ縺阪k縺薙→ + , 蜈ィ鬆逶ョ繧貞炎髯、縺ァ縺阪k縺薙→ + , 隍謨ー縺ョ繝ェ繧ケ繝医ン繝ォ繝繝シ縺悟ュ伜惠縺励※縺縺ヲ繧よュ」蟶ク縺ォ蜍穂ス懊☆繧九%縺ィ + ); + + var $from, $to, $control; + + function setup() { + $from = $("#permissionUnit_from"); + $to = $("#permissionUnit_to"); + $control = $(".nablarch_ListBuilder:first"); + + $from2 = $("#groups_from"); + $to2 = $("#groups_to"); + $control2 = $(".nablarch_ListBuilder:eq(1)"); + } + + function 蛻晄悄驕ク謚樣逶ョ縺1縺、繧ら┌縺蝣エ蜷医ョ蛻晄悄陦ィ遉コ遒コ隱() { + setup(); + equal($from.find("option").get().map("text").join(",") + , "繝ヲ繝シ繧カ荳隕ァ辣ァ莨,繝繧ケ繝育畑,繝ヲ繝シ繧カ諠蝣ア逋サ骭イ" + , "驕ク謚槫繝ェ繧ケ繝医↓蜈ィ蛟呵」懊′縺ゅk縲"); + + equal($to.find("option").length, 0, "驕ク謚槫医Μ繧ケ繝医ッ遨コ"); + } + + function 鬆逶ョ繧1縺、驕ク謚槭@縺ヲ霑ス蜉縺ァ縺阪k縺薙→() { + setup(); + $from.val("0000000002"); // 荳翫°繧2逡ェ逶ョ縺ョ鬆逶ョ繧帝∈謚 + $control.find("button.add").click(); // 霑ス蜉繝懊ち繝ウ繧呈款 + + equal($from.find("option").get().map("text").join(",") + , "繝ヲ繝シ繧カ荳隕ァ辣ァ莨,繝ヲ繝シ繧カ諠蝣ア逋サ骭イ" + , "驕ク謚槫繝ェ繧ケ繝医°繧蛾勁蜴サ縺輔l繧九"); + equal($to.find("option").get().map("text").join(",") + , "繝繧ケ繝育畑" + , "驕ク謚槫医Μ繧ケ繝医↓霑ス蜉縺輔l繧九"); + } + + function 繧オ繝悶Α繝繝域凾縺ォ驕ク謚槭@縺滄逶ョ縺ョ縺ソ騾∽ソ。縺輔l繧九%縺ィ(items) { + setup(); + $(document).one("beforeSubmit", function(event, submitName, form) { + equal( + $(form["formdata.permissionUnits"]).val().join("") + , "0000000002" + , "2逡ェ逶ョ縺ョ鬆逶ョ縺ョ縺ソ騾∽ソ。縺輔l繧九" + ); + form.reset(); + + // firefox縺ッreset縺ァ逕サ髱「陦ィ遉コ譎ゅョ迥カ諷九ョ謌サ縺励※繧ゅ慧isplay:none縲阪ッ隗」髯、縺輔l縺ェ縺縺ョ縺ァ縲∝シキ蛻カ逧縺ォ隗」髯、縺吶k + $from.find('option').show(); + return false; + }); + $("#check").click(); // 縲檎「コ隱阪阪懊ち繝ウ繧偵け繝ェ繝繧ッ + } + + function 驕ク謚樔クュ縺ョ鬆逶ョ繧帝∈謚槫医Μ繧ケ繝医°繧牙、悶○繧九%縺ィ() { + setup(); + $to.val("0000000002"); // 蜈医↓霑ス蜉縺励◆鬆逶ョ繧帝∈謚 + $control.find("button.remove").click(); // 蜑企勁繝懊ち繝ウ繧呈款荳 + + equal($to.find("option").length, 0, "驕ク謚槫医Μ繧ケ繝医ッ遨コ縺ォ縺ェ繧"); + equal($from.find("option").get().map("text").join(",") + , "繝ヲ繝シ繧カ荳隕ァ辣ァ莨,繝繧ケ繝育畑,繝ヲ繝シ繧カ諠蝣ア逋サ骭イ" + , "驕ク謚槫繝ェ繧ケ繝医↓蜈ィ蛟呵」懊′謌サ繧九"); + } + + function 蜈ィ鬆逶ョ繧定ソス蜉縺ァ縺阪k縺薙→() { + setup(); + $control.find("button.addAll").click(); // 縲悟ィ縺ヲ霑ス蜉縲阪懊ち繝ウ繧呈款荳 + + equal($to.find("option").get().map("text").join(",") + , "繝ヲ繝シ繧カ荳隕ァ辣ァ莨,繝繧ケ繝育畑,繝ヲ繝シ繧カ諠蝣ア逋サ骭イ" + , "蜈ィ縺ヲ縺ョ蛟呵」懊′驕ク謚槫医Μ繧ケ繝医↓遘サ蜍輔☆繧九"); + equal($from.find("option").length, 0, "驕ク謚槫繝ェ繧ケ繝医ッ遨コ縺ォ縺ェ繧九"); + equal($from2.find("option").length, 10, "蟇セ雎。縺ョ繝ェ繧ケ繝井サ・螟悶ッ蠖ア髻ソ繧貞女縺代↑縺"); + } + + function 蜈ィ鬆逶ョ繧貞炎髯、縺ァ縺阪k縺薙→() { + setup(); + $control.find("button.removeAll").click(); // 縲悟ィ縺ヲ蜑企勁縲阪懊ち繝ウ繧呈款荳 + + equal($to.find("option").length, 0, "驕ク謚槫医Μ繧ケ繝医ッ遨コ縺ォ縺ェ繧"); + equal($from.find("option").get().map("text").join(",") + , "繝ヲ繝シ繧カ荳隕ァ辣ァ莨,繝繧ケ繝育畑,繝ヲ繝シ繧カ諠蝣ア逋サ骭イ" + , "驕ク謚槫繝ェ繧ケ繝医↓蜈ィ蛟呵」懊′謌サ繧九"); + } + + function 隍謨ー縺ョ繝ェ繧ケ繝医ン繝ォ繝繝シ縺悟ュ伜惠縺励※縺縺ヲ繧よュ」蟶ク縺ォ蜍穂ス懊☆繧九%縺ィ() { + setup(); + + // 1,3逡ェ繧√ョ蛟呵」懊r驕ク謚 + $from.val(["0000000001","0000000003"]); + $from2.val(["0000000001","0000000003"]); + + // 2逡ェ逶ョ縺ョ繝ェ繧ケ繝医ョ縲瑚ソス蜉縲阪懊ち繝ウ繧呈款縺 + $control2.find("button.add").click(); + + equal($to2.find("option").get().length, 2, "繝懊ち繝ウ繧呈款縺励◆繝ェ繧ケ繝医ョ隕∫エ縺檎ァサ蜍"); + equal($from2.find("option").length, 8, "繝懊ち繝ウ繧呈款縺励◆繝ェ繧ケ繝医ョ隕∫エ縺檎ァサ蜍"); + equal($from.find("option").length, 3, "蟇セ雎。縺ョ繝ェ繧ケ繝井サ・螟悶ッ蠖ア髻ソ繧貞女縺代↑縺"); + } + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" new file mode 100644 index 0000000..1c541e0 --- /dev/null +++ "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" @@ -0,0 +1,16 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.js" "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.js" new file mode 100644 index 0000000..b3dd5a8 --- /dev/null +++ "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.js" @@ -0,0 +1,45 @@ + + runTest( + 邊セ譟サ繧ィ繝ゥ繝シ譎ゅ↓蜑榊屓驕ク謚槭@縺滄逶ョ縺御ソ晄戟縺輔l縺ヲ縺繧九%縺ィ + , 邊セ譟サ繧ィ繝ゥ繝シ蠕後↓蜀埼∽ソ。縺励◆蝣エ蜷医↓豁」縺励¥騾∽ソ。縺ァ縺阪k縺薙→ + ); + + var $from, $to, $control; + + function setup() { + $from = $("#permissionUnit_from"); + $to = $("#permissionUnit_to"); + $control = $(".nablarch_ListBuilder:first"); + + $from2 = $("#groups_from"); + $to2 = $("#groups_to"); + $control2 = $(".nablarch_ListBuilder:eq(1)"); + } + + function 邊セ譟サ繧ィ繝ゥ繝シ譎ゅ↓蜑榊屓驕ク謚槭@縺滄逶ョ縺御ソ晄戟縺輔l縺ヲ縺繧九%縺ィ() { + setup(); + equal($from.find("option").get().map("text").join(",") + , "繝ヲ繝シ繧カ諠蝣ア逋サ骭イ" + , "驕ク謚槫繝ェ繧ケ繝医ョ驕ク謚樒憾諷九′菫晄戟縺輔l繧九"); + + equal($to.find("option").get().map("text").join(",") + , "繝ヲ繝シ繧カ荳隕ァ辣ァ莨,繝繧ケ繝育畑" + , "驕ク謚槫医Μ繧ケ繝医ョ驕ク謚樒憾諷九′菫晄戟縺輔l繧九"); + } + + function 邊セ譟サ繧ィ繝ゥ繝シ蠕後↓蜀埼∽ソ。縺励◆蝣エ蜷医↓豁」縺励¥騾∽ソ。縺ァ縺阪k縺薙→() { + setup(); + $(document).one("beforeSubmit", function(event, submitName, form) { + equal( + $(form["formdata.permissionUnits"]).val().join(",") + , "0000000001,0000000002" + , "驕ク謚槭Μ繧ケ繝井ク翫↓縺ゅk鬆逶ョ縺碁∽ソ。縺輔l繧九" + ); + form.reset(); + // firefox縺ッreset縺ァ逕サ髱「陦ィ遉コ譎ゅョ迥カ諷九ョ謌サ縺励※繧ゅ慧isplay:none縲阪ッ隗」髯、縺輔l縺ェ縺縺ョ縺ァ縲∝シキ蛻カ逧縺ォ隗」髯、縺吶k + $from.find('option').show(); + return false; + }); + $("#check").click(); // 縲檎「コ隱阪阪懊ち繝ウ繧偵け繝ェ繝繧ッ + } + diff --git "a/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.jsp" "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.jsp" new file mode 100644 index 0000000..34ac1d9 --- /dev/null +++ "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.jsp" @@ -0,0 +1,22 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + ui_test.AppServer.currentRequest().setParam( + "formdata.permissionUnits" + , new String[] {"0000000001","0000000002","0123456789012"} + ); +%> + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277_\343\203\252\343\202\271\343\203\210\343\201\256\345\206\205\345\256\271.jsp" "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277_\343\203\252\343\202\271\343\203\210\343\201\256\345\206\205\345\256\271.jsp" new file mode 100644 index 0000000..91ddc31 --- /dev/null +++ "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277_\343\203\252\343\202\271\343\203\210\343\201\256\345\206\205\345\256\271.jsp" @@ -0,0 +1,86 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> +<% + request.setAttribute("allPermissionUnit", new Map[] { + new HashMap() { + { + put("permissionUnitName", "繝ヲ繝シ繧カ荳隕ァ辣ァ莨"); + put("permissionUnitId", "0000000001"); + } + }, + new HashMap() { + { + put("permissionUnitName", "繝繧ケ繝育畑"); + put("permissionUnitId", "0000000002"); + } + }, + new HashMap() { + { + put("permissionUnitName", "繝ヲ繝シ繧カ諠蝣ア逋サ骭イ"); + put("permissionUnitId", "0000000003"); + } + }, + }); + request.setAttribute("allGroup", new Map[] { + new HashMap() { + { + put("ugroupName", "邱丞漁驛ィ" ); + put("ugroupId", "0000000001"); + } + }, + new HashMap() { + { + put("ugroupName", "莠コ莠矩Κ" ); + put("ugroupId", "0000000002"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑1" ); + put("ugroupId", "0000000003"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑2" ); + put("ugroupId", "0000000004"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑3" ); + put("ugroupId", "0000000005"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑4" ); + put("ugroupId", "0000000006"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑5" ); + put("ugroupId", "0000000007"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑6" ); + put("ugroupId", "0000000008"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑7" ); + put("ugroupId", "0000000009"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑8" ); + put("ugroupId", "0000000010"); + } + }, + }); +%> \ No newline at end of file diff --git "a/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..afadfa5 --- /dev/null +++ "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,45 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210.jsp" "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210.jsp" new file mode 100644 index 0000000..b1ccf75 --- /dev/null +++ "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210.jsp" @@ -0,0 +1,595 @@ + + +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Locale" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + .style { + border: none; + color: #ffffff; + background-color: #ffc66d; + } + + + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + 繧オ繝シ繝舌し繧、繝峨〒謖螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ謖螳 + + + + + + + + + required繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ソ鬆医槭シ繧ッ縺後▽縺九↑縺縺薙→ + + + + + + required縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺後▽縺九↑縺縺薙→ + + + + + + required縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺後▽縺九↑縺縺薙→ + + + + + + required縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺後▽縺上%縺ィ + + + + + + readonly繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→(繧オ繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧具シ + + + + + + readonly縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→(繧オ繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧具シ + + + + + + readonly縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→(繧オ繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧具シ + + + + + + readonly縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮縺ァ縺阪↑縺上↑繧九%縺ィシ医し繝シ繝舌↓蛟、縺ッ騾∽ソ。縺輔l繧具シ + + + + + + disabled繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医し繝シ繝舌↓蛟、縺ッ騾∽ソ。縺輔l繧具シ + + + + + + disabled縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医し繝シ繝舌↓蛟、縺ッ騾∽ソ。縺輔l繧具シ + + + + + + disabled縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ェ迥カ諷九〒縺ゅk縺薙→シ医し繝シ繝舌↓蛟、縺ッ騾∽ソ。縺輔l繧具シ + + + + + + disabled縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮縺ァ縺阪↑縺上↑繧九%縺ィシ医し繝シ繝舌↓蛟、縺ッ騾∽ソ。縺輔l縺ェ縺シ + + + + + + cssClass繧呈欠螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ(繝ェ繧ケ繝医ン繝ォ繝髢「騾」縺ョclass螻樊ァ莉・螟)縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ(繝ェ繧ケ繝医ン繝ォ繝髢「騾」縺ョclass螻樊ァ莉・螟)縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + cssClass繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ(繝ェ繧ケ繝医ン繝ォ繝髢「騾」縺ョclass螻樊ァ莉・螟)縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + hint螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ヲ繝ウ繝医′陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + hint螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ヲ繝ウ繝医′陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + hint螻樊ァ繧呈欠螳壹@縺溷エ蜷医√ヲ繝ウ繝医′陦ィ遉コ縺輔l繧九%縺ィ + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医鬮倥&縺ッ6隕∫エ譁縺ィ縺ェ繧九%縺ィ + + + + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医鬮倥&縺ッ6隕∫エ譁縺ィ縺ェ繧九%縺ィ + + + + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医鬮倥&縺ッ謖螳壹@縺溘し繧、繧コ蛻縺ォ縺ェ繧九%縺ィ + + + + + + titleSize縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ォgrid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ォgrid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize繧呈欠螳壹@縺溷エ蜷医√ち繧、繝医Ν驛ィ縺ォgrid-col縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ險ュ螳壹@縺溷エ蜷 + + + + + + elementLabelPattern繧呈欠螳壹@縺ェ縺蝣エ蜷医∝錐遘ー縺ョ縺ソ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + elementLabelPattern縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝錐遘ー縺ョ縺ソ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + elementLabelPattern繧呈欠螳壹@縺溷エ蜷医√◎縺ョ繝輔か繝シ繝槭ャ繝医〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + nameAlias繧呈悴謖螳壹ョ蝣エ蜷医√お繝ゥ繝シ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + nameAlias縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√お繝ゥ繝シ陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + nameAlias繧呈欠螳壹@縺溷エ蜷医√お繝ゥ繝シ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210_\347\242\272\350\252\215.jsp" "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210_\347\242\272\350\252\215.jsp" new file mode 100644 index 0000000..1dcf7f0 --- /dev/null +++ "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210_\347\242\272\350\252\215.jsp" @@ -0,0 +1,7 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git "a/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..efe3bc4 --- /dev/null +++ "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,16 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..560fdd1 --- /dev/null +++ "b/node_modules/nablarch-widget-field-listbuilder/ui_test/jsp/\343\203\252\343\202\271\343\203\210\343\203\223\343\203\253\343\203\200\343\203\274/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" @@ -0,0 +1,11 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-password/package.json b/node_modules/nablarch-widget-field-password/package.json new file mode 100644 index 0000000..ad687ec --- /dev/null +++ b/node_modules/nablarch-widget-field-password/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-password" +, "version": "1.0.0" +, "_from" : "nablarch-widget-field-password@1.0.0" +, "dependencies": { + } +, "description": "繝代せ繝ッ繝シ繝牙・蜉幃逶ョ繧ヲ繧」繧ヲ繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-password/ui_public/WEB-INF/tags/widget/field/password.tag b/node_modules/nablarch-widget-field-password/ui_public/WEB-INF/tags/widget/field/password.tag new file mode 100644 index 0000000..d34222f --- /dev/null +++ b/node_modules/nablarch-widget-field-password/ui_public/WEB-INF/tags/widget/field/password.tag @@ -0,0 +1,72 @@ +<%-- + 繝代せ繝ッ繝シ繝牙・蜉婉I驛ィ蜩 + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="繝代せ繝ッ繝シ繝牙・蜉幃逶ョ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="domain" description="鬆逶ョ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="readonly" description="邱ィ髮蜿ッ閭ス縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="name" description="HTML縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ蛟、 (逵∫払譎ゅッname螻樊ァ縺ィ蜷後§蛟、繧剃スソ逕ィ縺吶k)" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> +<%@ attribute name="maxlength" description="蜈・蜉帶枚蟄玲焚縺ョ荳企剞" rtexprvalue="true" %> +<%@ attribute name="example" description="蜈キ菴鍋噪縺ェ蜈・蜉帑セ九r陦ィ縺吶ユ繧ュ繧ケ繝(placeholder縺ェ縺ゥ縺ョ蠖「蠑上〒陦ィ遉コ縺吶k)" rtexprvalue="true" %> +<%@ attribute name="nameAlias" description="荳縺、縺ョ繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ォ蟇セ縺励※隍謨ー縺ョ蜈・蜉幃逶ョ繧偵ワ繧、繝ゥ繧、繝郁。ィ遉コ縺吶k蝣エ蜷医↓謖螳壹☆繧具シ磯逶ョ髢鍋イセ譟サ縺ェ縺ゥシ峨りゥウ邏ー縺ォ縺、縺縺ヲ縺ッ縲、pplication Framework隗」隱ャ譖ク縺ョ縲後お繝ゥ繝シ陦ィ遉コ縲阪r蜿らァ縲" rtexprvalue="true" %> +<%@ attribute name="hint" description="蜈・蜉帛螳ケ繧逡呎э轤ケ縺ェ縺ゥ縺ョ陬懷勧繝繧ュ繧ケ繝" rtexprvalue="true" %> + +<%---------------------- 螻樊ァ螳夂セゥシ医Ο繝シ繧ォ繝ォ繝ャ繝ウ繝繝ェ繝ウ繧ー逕ィシ ----------------------%> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%------------------------------------------------------%> + +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繝代せ繝ッ繝シ繝牙・蜉幃逶ョ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%------------------------------------------------------%> + + + + <%-- maxlength譛ェ險ュ螳壹ョ蝣エ蜷 --%> + + + + <%-- maxlength險ュ螳壹≠繧翫ョ蝣エ蜷 --%> + + + + + diff --git "a/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..fd8a34b --- /dev/null +++ "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,16 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..ecde03f --- /dev/null +++ "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,53 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 蠢鬆亥ア樊ァ縺ョ繧ソ繧、繝医Ν縺ォ謖螳壹@縺溷、シ医後ち繧、繝医Ν縲搾シ峨′縲∝・蜉帷判髱「縺ィ遒コ隱咲判髱「縺ァ陦ィ遉コ縺輔l繧九%縺ィ + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧貞性繧縲∝ィ縺ヲ縺ョ螻樊ァ繧定ィュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..8ccdbc3 --- /dev/null +++ "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..1a6cc7a --- /dev/null +++ "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,67 @@ +runTest( + 蠢鬆亥ア樊ァ繝繧ケ繝, + nameAlias螻樊ァ縺ョ繝繧ケ繝 +); + +/** + * 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝 + */ +function 蠢鬆亥ア樊ァ繝繧ケ繝() { + + var target = find_text('required'); + + equal(target.label.text().compact(), '蠢鬆亥ア樊ァ繧呈欠螳', '繧ソ繧、繝医Ν螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→'); + + if (isConfirmationPage()) { + equal($.trim(target.input.html()), '*****', '遒コ隱咲判髱「縺ッ*陦ィ遉コ縺輔l繧九%縺ィ'); + equal(target.error.length, 0, '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal($.trim(target.input.find('input').val()), '', 'password蜈・蜉帶ャ縺ッ遨コ縺ァ陦ィ遉コ縺輔l繧九%縺ィ'); + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ縺ッ縺ェ縺縺薙→'); + + // 遒コ隱咲判髱「縺ョ陦ィ遉コ繝繧ケ繝育畑縺ォ縲√ヱ繧ケ繝ッ繝シ繝牙・蜉帶ャ縺ォ閾ェ蜍慕噪縺ォ蛟、繧定ィュ螳壹@縺ヲ縺翫¥ + // 遒コ隱咲判髱「縺ョ繝繧ケ繝医〒縺ッ縲√%縺ョ蛟、縺後槭せ繧ッ縺輔l縺ヲ陦ィ遉コ縺輔l繧九%縺ィ繧偵い繧オ繝シ繝医☆繧九 + target.input.find('input').val('12345'); + } +} + +/** + * nameAlias螻樊ァ縺ョ繝繧ケ繝 + */ +function nameAlias螻樊ァ縺ョ繝繧ケ繝() { + var test = { + nonNameAlias: function (testCase) { + var target = find_text(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('input.nablarch_error').length, 1, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + ok(target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺帙l繧九%縺ィ'); + } + }, + nameAlias: function(testCase) { + var target = find_text(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('input.nablarch_error').length, 1, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→'); + } + } + }; + + test.nonNameAlias('not-nameAlias'); + test.nonNameAlias('nameAlias-blank'); + test.nameAlias('nameAlias'); +} + +function find_text(test_case) { + var $test = $('span.test-case.' + test_case) + , $text_div = $test.next('.field.password'); + + return { + label: $text_div.find('label'), + input: $text_div.find('div.field-content'), + error: $text_div.find('div.fielderror') + } +} diff --git "a/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..450bf95 --- /dev/null +++ "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,17 @@ + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..9141911 --- /dev/null +++ "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,51 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + if (!request.getParameterMap().containsKey("input")) { + request.setAttribute("server", new HashMap() {{ + put("required", "12345"); + }}); + + + ApplicationException exception = new ApplicationException(); + exception.addMessages(new ValidationResultMessage("server.nameAlias-test", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-none", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹↑縺励ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-blank", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias縺ォ繝悶Λ繝ウ繧ッ謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + request.setAttribute("nablarch_application_error", exception); + } +%> diff --git "a/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..068afba --- /dev/null +++ "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,62 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ォ縺ッ蜈・蜉帶ャ縺悟コ蜉帙&繧後∫「コ隱咲判髱「縺ォ縺ッ蜈・蜉帛、縺後Λ繝吶Ν縺ィ縺励※蜃コ蜉帙&繧後k縺薙→縲 + + + + + + nameAlias螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ繧呈欠螳壹@縺溷エ蜷医鬆逶ョ縺後ワ繧、繝ゥ繧、繝郁。ィ遉コ縺輔l繧九%縺ィ + + + 繝ゥ繝吶Ν縺梧隼陦後&繧後※繧ゅお繝ゥ繝シ鬆逶ョ縺梧ュ」縺励¥陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..f9db739 --- /dev/null +++ "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git "a/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..5d3f346 --- /dev/null +++ "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,318 @@ +runTest( + masking縺ョ繝繧ケ繝 + , require螻樊ァ縺ョ繝繧ケ繝 + , hint螻樊ァ縺ョ繝繧ケ繝 + , readonly螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , maxlength螻樊ァ縺ョ繝繧ケ繝 + , example螻樊ァ縺ョ繝繧ケ繝 + , sample螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 +); + +var $all_nodes + , initialized = false + , asterisks = "********"; + +function setup() { + $all_nodes = $('span.test-case, div.field.password, div.fielderror, div.note'); +} + +function dummyData(cases) { + $.each(cases, function(i, testcase){ + testcase.area.find('input:password').val('password'); + }); +} + +function masking縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('masking-test') + , masking = cases[0]; + + dummyData(cases); + + if (isConfirmationPage()) { + var text = masking.area.find('div.field-content').text().trim(); + equal(text, "********", masking.testcase); // password 縺ッ8譁蟄 + } else { + var $input = masking.area.find('input'); + $input.each(function(){ + ok($(this).is(':password'), masking.testcase); + }); + } +} + +function require螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('required-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , required = 'span.required' + , assertHas = function(testcase) { + if(isConfirmationPage()) { assertNotHas(testcase); + } else{ + equal(testcase.area.find(required).size(), 1, testcase.testcase); + equal($.trim(testcase.area.find(required).text()), '*', testcase.testcase); + } + } + , assertNotHas = function(testcase) { + equal(testcase.area.find(required).size(), 0, testcase.testcase); + }; + + dummyData(cases); + + assertNotHas(default_case); + assertNotHas(blank_case); + assertNotHas(false_case); + assertHas(true_case); +} + +function hint螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('hint-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_hint_case = cases[2] + , assertHasHint = function(testcase) { + isConfirmationPage() ? equal(testcase.hint.size(), 0, testcase.testcase) + : equal(testcase.hint.size(), 1, testcase.testcase); + } + , assertHasNotHint = function(testcase) { + equal(testcase.hint.size(), 0, testcase.testcase); + }; + + dummyData(cases); + + assertHasNotHint(default_case); + assertHasNotHint(blank_case); + assertHasHint(set_hint_case); +} + +function readonly螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('readonly-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, asterisks, testcase.testcase); + } + , assertReadOnly = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase);} + var $input = testcase.area.find('input:password'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok($input.prop('disabled'), testcase.testcase + "[prop disabled]"); + ok($input.is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + } + , assertNotReadOnly = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase); } + var $input = testcase.area.find('input:password'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok(!$input.prop('disabled'), testcase.testcase + "[prop disabled]"); + ok(!$input.is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }; + + dummyData(cases); + + assertNotReadOnly(default_case, "password"); + assertNotReadOnly(blank_case, "password"); + assertReadOnly(true_case, "password"); + assertNotReadOnly(false_case, "password"); +} + +function disabled螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('disabled-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, value) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, value, testcase.testcase); + } + , assertDisabled = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase, ""); }// 遒コ隱咲判髱「縺ァ縺ッ陦ィ遉コ辟。縺 + var $input = testcase.area.find('input:password'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok($input.prop('disabled'), testcase.testcase + "[prop disabled]"); + } + , assertNotDisabled = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase, asterisks); } + var $input = testcase.area.find('input:password'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok(!$input.prop('disabled'), testcase.testcase + "[prop disabled]"); + }; + + dummyData(cases); + + assertNotDisabled(default_case, "password"); + assertNotDisabled(blank_case, "password"); + assertDisabled(true_case, "password"); + assertNotDisabled(false_case, "password"); +} + +function id螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('id-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + dummyData(cases); + + var default_input = default_case.area.find('input:password'); + equal(default_input.attr('id'), default_input.attr('name'), default_case.testcase); + + var blank_input = blank_case.area.find('input:password'); + equal(blank_input.attr('id'), blank_input.attr('name'), blank_case.testcase); + + var set_input = set_case.area.find('input:password'); + notEqual(set_input.attr('id'), set_input.attr('name'), set_case.testcase); + equal(set_input.attr('id'), 'test-id', set_case.testcase); +} + +function cssClass螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + dummyData(cases); + + ok(!default_case.area.find('input:password').is('.cssClass-test'), default_case.testcase); + ok(!blank_case.area.find('input:password').is('.cssClass-test'), blank_case.testcase); + ok(set_case.area.find('input:password').is('.cssClass-test'), set_case.testcase); +} + +function maxlength螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('maxlength-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + dummyData(cases); + + ok(!default_case.area.find('input:password').attr('maxlength'), default_case.testcase); + ok(!blank_case.area.find('input:password').attr('maxlength'), blank_case.testcase); + ok(set_case.area.find('input:password').attr('maxlength'), set_case.testcase); + equal(set_case.area.find('input:password').attr('maxlength'), 5, set_case.testcase); +} + +function example螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('example-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assertText = function (testcase) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, "", testcase.testcase); + } + , assertHasPlaceholder = function assertExample(testcase, placeholder) { + if(isConfirmationPage()) {return assertText(testcase);} + var $input = testcase.area.find('input:password'); + equal($input.val(), "", testcase.testcase + "[val()]"); + equal($input.attr('placeholder'), placeholder, testcase.testcase); + } + , assertNotHasPlaceholder = function(testcase) { + if(isConfirmationPage()) {return assertText(testcase);} + var $input = testcase.area.find('input:password'); + equal($input.val(), "", testcase.testcase + "[val()]"); + ok(!$input.attr('placeholder'), testcase.testcase); + }; + + // placeholder縺碁崎ヲ√↑縺ョ縺ァ蛟、縺ッ險ュ螳壹@縺ェ縺縲 + assertNotHasPlaceholder(default_case); + assertNotHasPlaceholder(blank_case); + assertHasPlaceholder(set_case, "繧オ繝ウ繝励Ν"); + +} + +function sample螻樊ァ縺ョ繝繧ケ繝() { // server 縺ォ縺ヲ蜃コ蜉帙&繧後k蝣エ蜷医ッ辟。蜉ケ縺ァ縺ゅk縺薙→繧堤「コ隱阪☆繧九 + setup(); + var cases = test_for('sample-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assert = function(testcase) { + if (isConfirmationPage()) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, "", testcase.testcase); + } else { + equal(testcase.area.find('input:password').val(), "", testcase.testcase); + } + }; + + assert(default_case); + assert(blank_case); + assert(set_case); +} + +function size螻樊ァ縺ョ繝繧ケ繝() { + setup(); + + var cases = test_for('size-test'), + assertNotSizeClass = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-8'), testCase.testcase); + ok(fieldContent.hasClass('grid-col-12'), testCase.testcase); + }; + + assertNotSizeClass(cases[0]); // size螻樊ァ譛ェ謖螳 + assertNotSizeClass(cases[1]); // size螻樊ァ繝悶Λ繝ウ繧ッ謖螳 + assertSize(cases[2]); // size螻樊ァ繧呈欠螳 +} + +/** + * 蜊倩。後ユ繧ュ繧ケ繝医ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]) + , $options = $all_nodes.filter(':eq(' + (idx + 2) + '), :eq(' + (idx + 3) + ')') + , error = $options.filter('div.fielderror') + , note = $options.filter('div.note'); + return { + testcase : $.trim($e.text()), + area : $area, + error : error, + hint : note + }; + }); +} diff --git "a/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..d48f88c --- /dev/null +++ "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,42 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + /********************* + id螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input#server\.id-none { + background-color: #7ec78f; + } + + input#server\.id-blank { + background-color: #a7c788 + } + + input#test-id { + border-color: red; + } + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input.cssClass-test { + border-color: blue; + } + + + diff --git "a/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..a1c5f24 --- /dev/null +++ "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,68 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..3b16f99 --- /dev/null +++ "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,310 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + 蜈・蜉帷判髱「縺ァ繝代せ繝ッ繝シ繝牙・蜉帶ャ縺ォ蜈・蜉帙&繧後◆譁蟄励ッ繝槭せ繧ュ繝ウ繧ー縺輔l繧九%縺ィ縲
+ 遒コ隱咲判髱「縺ァ縺ッ縲√ヱ繧ケ繝ッ繝シ繝峨′繝槭せ繧ュ繝ウ繧ー縺輔l縺ヲ陦ィ遉コ縺輔l繧九%縺ィ縲 +
+ + +
+ + required螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッ蠢鬆医槭シ繧ッ縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ陦ィ遉コ縺輔l縺ェ縺シ + + + + + + hint螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + 蜈・蜉帷判髱「縺ァ縺ッ縲”int螻樊ァ縺ォ謖螳壹@縺溷、縺悟コ蜉帙&繧後k縺薙→縲ら「コ隱咲判髱「縺ァ縺ッ蜃コ蜉帙&繧後↑縺縺薙→縲 + + + 繝ゥ繝吶Ν縺梧釜繧願ソ斐@縺溷エ蜷医〒繧ゅ”int螻樊ァ縺悟・蜉帙お繝ェ繧「縺ョ逶エ荳九↓蟾ヲ謠縺医〒蜃コ蜉帙&繧後k縺薙→縲ら「コ隱咲判髱「縺ァ縺ッ蜃コ蜉帙&繧後↑縺縺薙→縲 + + + + + + readonly螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮荳榊庄縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮荳榊庄縺ィ縺ェ縺」縺ヲ縺繧九%縺ィ縲 + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + id螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + id螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョid縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + cssClass螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺ォ謖螳壹@縺歡ssClass縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + maxlength螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医[axlength螻樊ァ縺悟コ蜉帙&繧後↑縺縺薙→(繧ス繝シ繧ケ縺九i遒コ隱搾シ + + + maxlength螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医[axlength螻樊ァ縺悟コ蜉帙&繧後↑縺縺薙→(繧ス繝シ繧ケ縺九i遒コ隱搾シ + + + maxlength螻樊ァ繧呈欠螳壹@縺溷エ蜷医[axlength螻樊ァ縺ォ謖螳壹@縺溷、(縲5])縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + example螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√励Ξ繝シ繧ケ繝帙Ν繝縺ィ縺励※菴輔b陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + example螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√励Ξ繝シ繧ケ繝帙Ν繝縺ィ縺励※菴輔b陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + example螻樊ァ繧呈欠螳壹@縺溷エ蜷医√励Ξ繝シ繧ケ繝帙Ν繝縺ィ縺励※縺昴ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィシplaceholder縺ォ蟇セ蠢懊@縺ヲ縺縺ェ縺繝悶Λ繧ヲ繧カ繧帝勁縺擾シ + + + + + + sample螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ繧呈欠螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝医〒縺ッ繧オ繝ウ繝励Ν蛟、縺後槭せ繧ュ繝ウ繧ー縺輔l縺ヲ蜃コ蜉帙&繧後k縺薙→ + + + + + + + + size螻樊ァ縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + size螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + +
+ + + + + + + + + + + +
diff --git "a/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..8808bbe --- /dev/null +++ "b/node_modules/nablarch-widget-field-password/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\221\343\202\271\343\203\257\343\203\274\343\203\211\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git a/node_modules/nablarch-widget-field-pulldown/package.json b/node_modules/nablarch-widget-field-pulldown/package.json new file mode 100644 index 0000000..0b876e4 --- /dev/null +++ b/node_modules/nablarch-widget-field-pulldown/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-pulldown" +, "version": "1.0.1" +, "_from" : "nablarch-widget-field-pulldown@1.0.1" +, "dependencies": { +} +, "description": "繝励Ν繝繧ヲ繝ウ蜈・蜉幃逶ョ繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-pulldown/ui_public/WEB-INF/tags/widget/field/code_pulldown.tag b/node_modules/nablarch-widget-field-pulldown/ui_public/WEB-INF/tags/widget/field/code_pulldown.tag new file mode 100644 index 0000000..5597506 --- /dev/null +++ b/node_modules/nablarch-widget-field-pulldown/ui_public/WEB-INF/tags/widget/field/code_pulldown.tag @@ -0,0 +1,75 @@ +<%-- + 繧ウ繝シ繝牙ョ夂セゥ縺ォ蠕薙▲縺ヲ繝励Ν繝繧ヲ繝ウ繝。繝九Η繝シ(select繧ソ繧ー)繧貞コ蜉帙☆繧偽I驛ィ蜩 + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="繧ウ繝シ繝牙ョ夂セゥ縺ォ蠕薙▲縺ヲ繝励Ν繝繧ヲ繝ウ鬆逶ョ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%---------------------- 螻樊ァ螳夂セゥシ亥ア騾夲シ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="domain" description="鬆逶ョ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="readonly" description="邱ィ髮蜿ッ閭ス縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="name" description="HTML縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ蛟、 (逵∫払譎ゅッname螻樊ァ縺ィvalue蛟、縺九i蟆主コ縺励◆蛟、繧剃スソ逕ィ縺吶k)" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> +<%@ attribute name="nameAlias" description="荳縺、縺ョ繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ォ蟇セ縺励※隍謨ー縺ョ蜈・蜉幃逶ョ繧偵ワ繧、繝ゥ繧、繝郁。ィ遉コ縺吶k蝣エ蜷医↓謖螳壹☆繧具シ磯逶ョ髢鍋イセ譟サ縺ェ縺ゥシ峨りゥウ邏ー縺ォ縺、縺縺ヲ縺ッ縲、pplication Framework隗」隱ャ譖ク縺ョ縲後お繝ゥ繝シ陦ィ遉コ縲阪r蜿らァ縲" rtexprvalue="true" %> +<%@ attribute name="hint" description="蜈・蜉帛螳ケ繧逡呎э轤ケ縺ェ縺ゥ縺ョ陬懷勧繝繧ュ繧ケ繝" rtexprvalue="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ亥句挨シ ----------------------%> +<%@ attribute name="codeId" description="繧ウ繝シ繝牙ョ夂セゥID" required="true" rtexprvalue="true" %> +<%@ attribute name="pattern" description="菴ソ逕ィ縺吶k繧ウ繝シ繝峨ヱ繧ソ繝シ繝ウ縺ョ繧ォ繝ゥ繝蜷(繝繝輔か繝ォ繝医ッ'PATTERN01')" rtexprvalue="true" %> +<%@ attribute name="optionColumnName" description="蜿門セ励☆繧九が繝励す繝ァ繝ウ蜷咲ァー縺ョ繧ォ繝ゥ繝蜷(繝繝輔か繝ォ繝医ッ'OPTION01')" rtexprvalue="true" %> +<%@ attribute name="labelPattern" description="繝ゥ繝吶Ν陦ィ遉コ譖ク蠑(繝繝輔か繝ォ繝:$NAME$)" rtexprvalue="true" %> +<%@ attribute name="withNoneOption" description="繝ェ繧ケ繝亥磯ュ縺ォ驕ク謚槭↑縺励ョ繧ェ繝励す繝ァ繝ウ繧定ソス蜉縺吶k縺句凄縺九(繝繝輔か繝ォ繝:false)" rtexprvalue="true" %> +<%@ attribute name="multiple" description="xhtml縺ョmultiple螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="size" description="xhtml縺ョsize螻樊ァ" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="comment" description="縺薙ョ繝励Ν繝繧ヲ繝ウ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%------------------------------------------------------------%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繝代ち繝シ繝ウ繧ウ繝シ繝峨ョ繧ォ繝ゥ繝蜷 --%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繧ェ繝励す繝ァ繝ウ蜷咲ァー縺ョ繧ォ繝ゥ繝蜷 --%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繝ゥ繝吶Ν繧ウ繝シ繝 --%> + + + + + + + + + + diff --git a/node_modules/nablarch-widget-field-pulldown/ui_public/WEB-INF/tags/widget/field/pulldown.tag b/node_modules/nablarch-widget-field-pulldown/ui_public/WEB-INF/tags/widget/field/pulldown.tag new file mode 100644 index 0000000..2155165 --- /dev/null +++ b/node_modules/nablarch-widget-field-pulldown/ui_public/WEB-INF/tags/widget/field/pulldown.tag @@ -0,0 +1,81 @@ +<%@tag pageEncoding="UTF-8" description="繝励Ν繝繧ヲ繝ウ鬆逶ョ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%-- + 繝励Ν繝繧ヲ繝ウ逕ィ繧ヲ繧」繧ク繧ァ繝繝 + @author Hisaaki Sioiri +--%> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="domain" description="鬆逶ョ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="readonly" description="邱ィ髮蜿ッ閭ス縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="name" description="HTML縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ蛟、 (逵∫払譎ゅッname螻樊ァ縺ィ蜷後§蛟、繧剃スソ逕ィ縺吶k)" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> +<%@ attribute name="nameAlias" description="荳縺、縺ョ繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ォ蟇セ縺励※隍謨ー縺ョ蜈・蜉幃逶ョ繧偵ワ繧、繝ゥ繧、繝郁。ィ遉コ縺吶k蝣エ蜷医↓謖螳壹☆繧具シ磯逶ョ髢鍋イセ譟サ縺ェ縺ゥシ峨りゥウ邏ー縺ォ縺、縺縺ヲ縺ッ縲、pplication Framework隗」隱ャ譖ク縺ョ縲後お繝ゥ繝シ陦ィ遉コ縲阪r蜿らァ縲" rtexprvalue="true" %> +<%@ attribute name="hint" description="蜈・蜉帛螳ケ繧逡呎э轤ケ縺ェ縺ゥ縺ョ陬懷勧繝繧ュ繧ケ繝" rtexprvalue="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繝励Ν繝繧ヲ繝ウ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%------------------------------------------------------%> + +<%-- 驕ク謚樣逶ョ縺ョ繝ェ繧ケ繝医ョ螻樊ァ蜷 --%> +<%@ attribute name="listName" required="true" description="驕ク謚樣逶ョ縺ョ繝ェ繧ケ繝医ョ螻樊ァ蜷" rtexprvalue="true" %> + +<%-- 繝ゥ繝吶Ν縺ョ陦ィ遉コ蠖「蠑 --%> +<%@ attribute name="elementLabelPattern" description="繝ゥ繝吶Ν縺ョ陦ィ遉コ蠖「蠑" rtexprvalue="true" %> + +<%-- 繝ゥ繝吶Ν縺ョ螻樊ァ蜷 --%> +<%@ attribute name="elementLabelProperty" required="true" description="繝ェ繧ケ繝磯逶ョ(listName)縺九i繝ゥ繝吶Ν繧貞叙蠕励☆繧九◆繧√ョ螻樊ァ蜷" rtexprvalue="true" %> + +<%-- 蛟、縺ョ螻樊ァ蜷 --%> +<%@ attribute name="elementValueProperty" required="true" description="繝ェ繧ケ繝磯逶ョ(listName)縺九i蛟、繧貞叙蠕励☆繧九◆繧√ョ螻樊ァ蜷" rtexprvalue="true" %> + +<%-- xhtml縺ョmultiple螻樊ァ --%> +<%@ attribute name="multiple" description="xhtml縺ョmultiple螻樊ァ" rtexprvalue="true" %> + +<%-- xhtml縺ョsize螻樊ァ --%> +<%@ attribute name="size" description="xhtml縺ョsize螻樊ァ" rtexprvalue="true" %> + +<%--繝ェ繧ケ繝亥磯ュ縺ォ驕ク謚槭↑縺励ョ繧ェ繝励す繝ァ繝ウ繧定ソス蜉縺吶k縺句凄縺九 --%> +<%@ attribute name="withNoneOption" description="繝ェ繧ケ繝亥磯ュ縺ォ驕ク謚槭↑縺励ョ繧ェ繝励す繝ァ繝ウ繧定ソス蜉縺吶k縺句凄縺九(繝繝輔か繝ォ繝:false)" rtexprvalue="true" %> + +<%-- ============================ 繝輔ぅ繝シ繝ォ繝蛾Κ =============================== --%> + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..8f8b0df --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,16 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..4b2b4b3 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,55 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 蠢鬆亥ア樊ァ縺ョ繧ソ繧、繝医Ν縺ォ謖螳壹@縺溷、シ医後ち繧、繝医Ν縲搾シ峨′縲∝・蜉帷判髱「縺ィ遒コ隱咲判髱「縺ァ陦ィ遉コ縺輔l繧九%縺ィ + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧貞性繧縲∝ィ縺ヲ縺ョ螻樊ァ繧定ィュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..8ccdbc3 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..e195bd0 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,76 @@ +runTest( + 蠢鬆亥ア樊ァ繝繧ケ繝, + nameAlias螻樊ァ縺ョ繝繧ケ繝 +); + +/** + * 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝 + */ +function 蠢鬆亥ア樊ァ繝繧ケ繝() { + var target = findTest('required') + , labels = ['name1-1', 'name1-2' , 'name1-3' ] + , values = ['value1-1', 'value1-2', 'value1-3'] + , selected = [false, true, false]; + + equal(target.label.text().compact(), '蠢鬆亥ア樊ァ繧呈欠螳', '繧ソ繧、繝医Ν螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), 'name1-2', 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + equal(target.error.length, 0, '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + + } else { + equal(target.input.find('select > option').length, 3, '隕∫エ謨ー縺後′3縺、蜃コ蜉帙&繧後k縺薙→'); + + values.each(function (value, index) { + var $option = $(target.input.find('select > option')[index]); + equal($option.val(), value, 'value螻樊ァ縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + equal($option.text().trim(), labels[index], 'label縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + equal($option.prop('selected'), selected[index], '繝√ぉ繝繧ッ迥カ諷九′豁」縺励¥險ュ螳壹&繧後k縺薙→') + }); + + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ縺ッ縺ェ縺縺薙→'); + } +} + +/** + * nameAlias螻樊ァ縺ョ繝繧ケ繝 + */ +function nameAlias螻樊ァ縺ョ繝繧ケ繝() { + var test = { + nonNameAlias: function (testCase) { + var target = findTest(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('select.nablarch_error').length, 1, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + equal(target.error.find('div.nablarch_error').length, 1, '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺帙l繧九%縺ィ'); + } + }, + nameAlias : function (testCase) { + var target = findTest(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('select.nablarch_error').length, 1, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→'); + } + } + }; + + test.nonNameAlias('not-nameAlias'); + test.nonNameAlias('nameAlias-blank'); + test.nameAlias('nameAlias'); +} + + +function findTest(testCase) { + var $test = $('span.test-case.' + testCase) + , $text_div = $test.next('.field.pulldown'); + + return { + testCase: $test.text(), + label : $text_div.find('label'), + input : $text_div.find('div.field-content'), + error : $text_div.find('div.fielderror') + } +} diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..5194a05 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,20 @@ + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..99d4fc0 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,61 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + + if (!request.getParameterMap().containsKey("input")) { + + request.setAttribute("server", new HashMap() {{ + put("required", "value1-2"); + put("pattern-none", new String[]{"value1-2"}); + put("pattern-blank", new String[]{"value1-3"}); + put("pattern", new String[]{"value1-1"}); + put("optional-name-none", new String[]{"value1-2"}); + put("optional-name-blank", new String[]{"value1-3"}); + put("optional-name", new String[]{"value1-1"}); + put("label-pattern-none", new String[]{"value1-2"}); + put("label-pattern-blank", new String[]{"value1-3"}); + put("label-pattern", new String[]{"value1-1"}); + }}); + + ApplicationException exception = new ApplicationException(); + exception.addMessages(new ValidationResultMessage("server.nameAlias-test", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-none", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹↑縺励ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-blank", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias縺ォ繝悶Λ繝ウ繧ッ謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + request.setAttribute("nablarch_application_error", exception); + } +%> diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..c2fe09f --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,68 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ォ縺ッ蜈・蜉帶ャ縺悟コ蜉帙&繧後∫「コ隱咲判髱「縺ォ縺ッ蜈・蜉帛、縺後Λ繝吶Ν縺ィ縺励※蜃コ蜉帙&繧後k縺薙→縲 + + + + + + nameAlias螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ繧呈欠螳壹@縺溷エ蜷医鬆逶ョ縺後ワ繧、繝ゥ繧、繝郁。ィ遉コ縺輔l繧九%縺ィ + + + 繝ゥ繝吶Ν縺梧隼陦後&繧後※繧ゅお繝ゥ繝シ鬆逶ョ縺梧ュ」縺励¥陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..7472b4c --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,5 @@ + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..604df24 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,464 @@ +runTest( + require螻樊ァ縺ョ繝繧ケ繝 + , hint螻樊ァ縺ョ繝繧ケ繝 + , readonly螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , sample螻樊ァ縺ョ繝繧ケ繝 + , withNoneOption螻樊ァ縺ョ繝繧ケ繝 + , multiple螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 + , 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝 + , pattern螻樊ァ縺ョ繝繧ケ繝 + , optionColumnName螻樊ァ縺ョ繝繧ケ繝 + , labelPattern螻樊ァ縺ョ繝繧ケ繝 +); + +var $all_nodes + , values = ["value1-1", "value1-2", "value1-3"] + , labels = ["name1-1", "name1-2", "name1-3"]; + +function setup() { + $all_nodes = $('span.test-case, div.field.pulldown, div.fielderror, div.note'); +} + +function require螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('required-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , required = 'span.required' + , assertHas = function (testcase) { + if (isConfirmationPage()) { + assertNotHas(testcase); + } else { + equal(testcase.area.find(required).size(), 1, testcase.testcase); + equal($.trim(testcase.area.find(required).text()), '*', testcase.testcase); + } + } + , assertNotHas = function (testcase) { + equal(testcase.area.find(required).size(), 0, testcase.testcase); + }; + + assertNotHas(default_case); + assertNotHas(blank_case); + assertNotHas(false_case); + assertHas(true_case); +} + +function hint螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('hint-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_hint_case = cases[2] + , assertHasHint = function (testcase) { + isConfirmationPage() ? equal(testcase.hint.size(), 0, testcase.testcase) + : equal(testcase.hint.size(), 1, testcase.testcase); + } + , assertHasNotHint = function (testcase) { + equal(testcase.hint.size(), 0, testcase.testcase); + }; + + assertHasNotHint(default_case); + assertHasNotHint(blank_case); + assertHasHint(set_hint_case); +} + +function readonly螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('readonly-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, label) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, label, testcase.testcase); + } + , assertValues = function (testcase, values) { + return function (i, e) { + equal($(this).val(), values[i], testcase.testcase); + }; + } + , assertReadOnly = function (testcase, values) { + var $input = testcase.area.find('select'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function () { + ok($(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + ok($(this).is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }); + } + , assertNotReadOnly = function (testcase, values) { + var $input = testcase.area.find('select'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + $input.each(function () { + ok(!$(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + ok(!$(this).is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }) + .find('option').each(assertValues(testcase, values)); + }; + + if (isConfirmationPage()) { + assertText(default_case, "name1-1"); + assertText(blank_case, "name1-1"); + assertText(true_case, "name1-1"); + assertText(false_case, "name1-1"); + } else { + assertNotReadOnly(default_case, values); + assertNotReadOnly(blank_case, values); + assertReadOnly(true_case, values); + assertNotReadOnly(false_case, values); + } +} + +function disabled螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('disabled-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, label) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, label, testcase.testcase); + } + , assertValues = function (testcase, values) { + return function (i, e) { + equal($(this).val(), values[i], testcase.testcase); + }; + } + , assertDisabled = function (testcase, values) { + var $input = testcase.area.find('select'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + $input.each(function () { + ok($(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + }) + .find('option').each(assertValues(testcase, values)); + } + , assertNotDisabled = function (testcase, values) { + var $input = testcase.area.find('select'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + $input.each(function () { + ok(!$(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + }) + .find('option').each(assertValues(testcase, values)); + }; + + if (isConfirmationPage()) { + assertText(default_case, "name1-2"); + assertText(blank_case, "name1-3"); + assertText(true_case, ""); + assertText(false_case, "name1-2"); + } else { + assertNotDisabled(default_case, values); + assertNotDisabled(blank_case, values); + assertDisabled(true_case, values); + assertNotDisabled(false_case, values); + } +} + +function id螻樊ァ縺ョ繝繧ケ繝() { + if (isConfirmationPage()) { + return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺"); + } + + setup(); + var cases = test_for('id-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + var default_input = default_case.area.find('select'); + equal(default_input.attr('id'), default_input.attr('name'), default_case.testcase); + + var blank_input = blank_case.area.find('select'); + equal(blank_input.attr('id'), blank_input.attr('name'), blank_case.testcase); + + var set_input = set_case.area.find('select'); + notEqual(set_input.attr('id'), set_input.attr('name'), set_case.testcase); + equal(set_input.attr('id'), 'test-id', set_case.testcase); +} + + +function cssClass螻樊ァ縺ョ繝繧ケ繝() { + if (isConfirmationPage()) { + return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺"); + } + + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + equal(default_case.area.find('select').size(), 1, default_case.testcase); + equal(default_case.area.find('select.cssClass-test').size(), 0, default_case.testcase); + + equal(blank_case.area.find('select').size(), 1, blank_case.testcase); + equal(blank_case.area.find('select.cssClass-test').size(), 0, blank_case.testcase); + + equal(set_case.area.find('select.cssClass-test').size(), 1, set_case.testcase); +} + +function sample螻樊ァ縺ョ繝繧ケ繝() { // server 縺ォ縺ヲ蜃コ蜉帙&繧後k蝣エ蜷医ッ辟。蜉ケ縺ァ縺ゅk縺薙→繧堤「コ隱阪☆繧九 + setup(); + var cases = test_for('sample-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assertText = function (testcase) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, "name1-1", testcase.testcase); + } + , assert = function (testcase) { + if (isConfirmationPage()) { + return assertText(testcase); + } + var $nodes = testcase.area.find('div.field-content').find('option'); + $nodes.each(function (i, e) { + equal($(this).val(), values[i], testcase.testcase); + equal($(this).text(), labels[i], testcase.testcase); + }); + }; + + assert(default_case); + assert(blank_case); + assert(set_case); +} + +function withNoneOption螻樊ァ縺ョ繝繧ケ繝() { + if (isConfirmationPage()) { + return ok(true, "遒コ隱咲判髱「縺ァ縺ッ螳滓命縺励↑縺"); + } + setup(); + var cases = test_for('withNoneOption-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertOptions = function (testcase, options) { + var $input = testcase.area.find('select') + , assert = function (i, e) { + equal($(this).val(), options[i], testcase.testcase); + }; + $input.find('option').each(assert); + }; + + assertOptions(default_case, values); + assertOptions(blank_case, values); + assertOptions(true_case, [""].union(values)); + assertOptions(false_case, values); +} + +function size螻樊ァ縺ョ繝繧ケ繝() { + if (isConfirmationPage()) { + return ok(true, "遒コ隱咲判髱「縺ァ縺ッ讀懆ィシ縺励↑縺"); + } + setup(); + var cases = test_for('size-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assert = function (testcase, size) { + equal(testcase.area.find('select').attr('size'), size, testcase.testcase); + }; + + assert(default_case, 0); + assert(blank_case, 0); + assert(set_case, 5); +} + +function multiple螻樊ァ縺ョ繝繧ケ繝() { + if (isConfirmationPage()) { + return ok(true, "遒コ隱咲判髱「縺ァ縺ッ螳滓命縺励↑縺"); + } + setup(); + var cases = test_for('multiple-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , assertMultiple = function (testcase) { + ok(testcase.area.find('select').attr('multiple'), testcase.testcase); + } + , assertNotMultiple = function (testcase) { + ok(!testcase.area.find('select').attr('multiple'), testcase.testcase); + }; + + assertNotMultiple(default_case); + assertNotMultiple(blank_case); + assertNotMultiple(false_case); + assertMultiple(true_case); +} + +function 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('title-input-size'), + assertNotSizeClass = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-8'), testCase.testcase); + ok(fieldContent.hasClass('grid-col-20'), testCase.testcase); + }; + + assertNotSizeClass(cases[0]); // size螻樊ァ譛ェ謖螳 + assertNotSizeClass(cases[1]); // size螻樊ァ繝悶Λ繝ウ繧ッ謖螳 + assertSize(cases[2]); // size螻樊ァ繧呈欠螳 +} + +/** + * pattern螻樊ァ縺ョ繝繧ケ繝 + */ +function pattern螻樊ァ縺ョ繝繧ケ繝() { + var pattern1 = [ + {label: 'name1-1', value: 'value1-1'}, + {label: 'name1-2', value: 'value1-2'}, + {label: 'name1-3', value: 'value1-3'} + ] + , pattern2 = [ + {label: 'name1-2', value: 'value1-2'} + ] + , assert = function (testCase, expected, confirmExpected) { + var target = findTest(testCase) + , $options = target.input.find('select > option'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), confirmExpected, 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + } else { + expected.each(function (code, index) { + var $option = $($options[index]) + , label = $option.text().trim(); + + equal(label, code.label, target.testCase + ': 繝ゥ繝吶Ν陦ィ遉コ縺梧ュ」縺励>縺薙→'); + equal($option.val(), code.value, target.testCase + ': value螻樊ァ縺梧ュ」縺励>縺薙→'); + }); + } + }; + + assert('pattern-none', pattern1, 'name1-1'); + assert('pattern-blank', pattern1, 'name1-1'); + assert('pattern-not-blank', pattern2, 'name1-2'); +} + +/** + * optionColumnName螻樊ァ縺ョ繝繧ケ繝 + */ +function optionColumnName螻樊ァ縺ョ繝繧ケ繝() { + var defaultOption = [ + {label: 'name1-1 column:OPTION01', value: 'value1-1'}, + {label: 'name1-2 column:OPTION01', value: 'value1-2'}, + {label: 'name1-3 column:OPTION01', value: 'value1-3'} + ] + , specifiedOption = [ + {label: 'name1-1 column:OPTION03', value: 'value1-1'}, + {label: 'name1-2 column:OPTION03', value: 'value1-2'}, + {label: 'name1-3 column:OPTION03', value: 'value1-3'} + ] + , assert = function (testCase, expected, confirmExpected) { + var target = findTest(testCase) + , $options = target.input.find('select > option'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), confirmExpected, 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + } else { + expected.each(function (code, index) { + var $option = $($options[index]) + , label = $option.text().compact(); + + equal(label, code.label, target.testCase + ': 繝ゥ繝吶Ν陦ィ遉コ縺梧ュ」縺励>縺薙→'); + equal($option.val(), code.value, target.testCase + ': value螻樊ァ縺梧ュ」縺励>縺薙→'); + }); + + } + } + ; + + assert('option-none', defaultOption, 'name1-2 column:OPTION01'); + assert('option-blank', defaultOption, 'name1-3 column:OPTION01'); + assert('option-not-blank', specifiedOption, 'name1-1 column:OPTION03'); +} + +/** + * labelPattern螻樊ァ縺ョ繝繧ケ繝 + */ +function labelPattern螻樊ァ縺ョ繝繧ケ繝() { + var defaultLabel = [ + {label: 'name1-1', value: 'value1-1'}, + {label: 'name1-2', value: 'value1-2'}, + {label: 'name1-3', value: 'value1-3'} + ] + , specifiedPattern = [ + {label: 'name1-1 - short:name1-1 - name1-1 column:OPTION03 - value1-1', value: 'value1-1'}, + {label: 'name1-2 - short:name1-2 - name1-2 column:OPTION03 - value1-2', value: 'value1-2'}, + {label: 'name1-3 - short:name1-3 - name1-3 column:OPTION03 - value1-3', value: 'value1-3'} + ] + , assert = function (testCase, expected, confirmExpected) { + var target = findTest(testCase) + , $options = target.input.find('select > option'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), confirmExpected, 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + } else { + expected.each(function (code, index) { + var $option = $($options[index]) + , label = $option.text().compact(); + + equal(label, code.label, target.testCase + ': 繝ゥ繝吶Ν陦ィ遉コ縺梧ュ」縺励>縺薙→'); + equal($option.val(), code.value, target.testCase + ': value螻樊ァ縺梧ュ」縺励>縺薙→'); + }); + } + }; + + assert('labelPattern-none', defaultLabel, 'name1-2'); + assert('labelPattern-blank', defaultLabel, 'name1-3'); + assert('labelPattern-not-blank', specifiedPattern, 'name1-1 - short:name1-1 - name1-1 column:OPTION03 - value1-1'); +} + + +/** + * 蜊倩。後ユ繧ュ繧ケ繝医ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function () { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]) + , $options = $all_nodes.filter(':eq(' + (idx + 2) + '), :eq(' + (idx + 3) + ')') + , error = $options.filter('div.fielderror') + , note = $options.filter('div.note'); + return { + testcase: $.trim($e.text()), + area : $area, + error : error, + hint : note + }; + }); +} + + function findTest(testCase) { + var $test = $('span.test-case.' + testCase) + , $text_div = $test.next('.field.pulldown'); + + return { + testCase: $test.text(), + label: $text_div.find('label'), + input: $text_div.find('div.field-content'), + error: $text_div.find('div.fielderror') + } + } diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..b10c379 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,43 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + /********************* + id螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + select#server\.id-none { + background-color: #7ec78f; + } + + select#server\.id-blank { + background-color: #a7c788 + } + + select#test-id { + border-color: red; + } + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + select.cssClass-test { + border-color: blue; + } + + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..8f1ceac --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,66 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..eaecbd4 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,459 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + required螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッ蠢鬆医槭シ繧ッ縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ陦ィ遉コ縺輔l縺ェ縺シ + + + + + + hint螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッhint縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→シ + + + 繝ゥ繝吶Ν縺梧釜繧願ソ斐@縺溷エ蜷医〒繧ゅ”int螻樊ァ縺悟・蜉帙お繝ェ繧「縺ョ逶エ荳九↓蟾ヲ謠縺医〒蜃コ蜉帙&繧後k縺薙→縲ら「コ隱咲判髱「縺ァ縺ッ蜃コ蜉帙&繧後↑縺縺薙→縲 + + + + + + readonly螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮荳榊庄縺ォ縺ェ繧九%縺ィ(蛟、縺ッ騾∽ソ。縺輔l遒コ隱咲判髱「縺ォ繝ゥ繝吶Ν陦ィ遉コ縺輔l繧九%縺ィ) + + + readonly螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l縺ェ縺縺薙→シ育「コ隱咲判髱「縺ォ陦ィ遉コ縺輔l縺ェ縺縺薙→シ + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + id螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + id螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョid縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + cssClass螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺ォ謖螳壹@縺歡ssClass縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + sample螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォcodeId縺ォ謖螳壹&繧後◆繧ウ繝シ繝峨ョ繧ウ繝シ繝牙錐遘ー縺悟コ蜉帙&繧後k縺薙→ + + + sample螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォcodeId縺ォ謖螳壹&繧後◆繧ウ繝シ繝峨ョ繧ウ繝シ繝牙錐遘ー縺悟コ蜉帙&繧後k縺薙→ + + + sample螻樊ァ繧呈欠螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝医〒縺ッsample螻樊ァ縺ョ蛟、縺悟コ蜉帙&繧後ー]縺ァ蝗イ縺セ繧後◆蛟、縺碁∈謚樒憾諷九→縺ェ繧九%縺ィ縲 + + + + + + withNoneOption繧呈欠螳壹@縺ェ縺蝣エ蜷医√鯉シ磯∈謚槭@縺ェ縺シ峨阪ョ鬆逶ョ縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→ + + + withNoneOption縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√鯉シ磯∈謚槭@縺ェ縺シ峨阪ョ鬆逶ョ縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→ + + + withNoneOption縺ォtrue繧呈欠螳壹@縺溷エ蜷医√鯉シ磯∈謚槭@縺ェ縺シ峨阪ョ鬆逶ョ縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + withNoneOption縺ォfalse繧呈欠螳壹@縺溷エ蜷医√鯉シ磯∈謚槭@縺ェ縺シ峨阪ョ鬆逶ョ縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + size繧呈欠螳壹@縺ェ縺蝣エ蜷医騾壼クク縺ョ繝励Ν繝繧ヲ繝ウ陦ィ遉コ縺ィ縺ェ繧九%縺ィ + + + size縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医騾壼クク縺ョ繝励Ν繝繧ヲ繝ウ陦ィ遉コ縺ィ縺ェ繧九%縺ィ + + + size繧呈欠螳壹@縺溷エ蜷医?TML縺ョsize螻樊ァ縺御スソ逕ィ縺ァ縺阪k縺薙→ + + + + + + multiple繧呈欠螳壹@縺ェ縺蝣エ蜷医∬、謨ー驕ク謚槭〒縺阪↑縺縺薙→ + + + multiple縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∬、謨ー驕ク謚槭〒縺阪↑縺縺薙→ + + + multiple縺ォfalse繧呈欠螳壹@縺溷エ蜷医∬、謨ー驕ク謚槭〒縺阪↑縺縺薙→ + + + multiple縺ォtrue繧呈欠螳壹@縺溷エ蜷医?TML縺ョmultiple螻樊ァ縺御スソ逕ィ縺ァ縺阪k縺薙→ + + + + + + + titleSize縺ィinputSize縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + + + + + + pattern螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医 ̄ATTERN01縺ォ蟇セ蠢懊☆繧九さ繝シ繝峨′陦ィ遉コ縺輔l繧九%縺ィ縲
+ 繝ュ繝シ繧ォ繝ォ陦ィ遉コ縺ァ繧ゅ…odeId螻樊ァ縺ォ謖螳壹&繧後◆繧ウ繝シ繝峨ョ蜷咲ァー縺後た繝シ繝磯縺ォ蠕薙▲縺ヲ繧ス繝シ繝医&繧後※陦ィ遉コ縺輔l繧九%縺ィ縲 +
+ + + pattern螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医 ̄ATTERN01縺ォ蟇セ蠢懊☆繧九さ繝シ繝峨′陦ィ遉コ縺輔l繧九%縺ィ + + + pattern螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヱ繧ソ繝シ繝ウシPATTERN02シ峨↓蟇セ蠢懊☆繧九さ繝シ繝峨′陦ィ遉コ縺輔l繧九%縺ィ + + +
+ + + optionColumnName螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医^PTION01縺ォ蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + optionColumnName螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医^PTION01縺ォ蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + optionColumnName螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘が繝励す繝ァ繝ウ蜷咲ァーシOPTION03シ峨↓蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + labelPattern螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医√ョ繝輔か繝ォ繝医ョ繧ウ繝シ繝牙錐遘ーシ$NAME$シ峨′陦ィ遉コ縺輔l繧九%縺ィ + + + labelPattern螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ョ繝輔か繝ォ繝医ョ繧ウ繝シ繝牙錐遘ーシ$NAME$シ峨′陦ィ遉コ縺輔l繧九%縺ィ + + + labelPattern螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘励Ξ繝シ繧ケ繝帙Ν繝シ$NAME$ - $SHORTNAME$ - $OPTIONALNAME$ - $VALUE$シ峨↓蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + +
+ + + + + + + + + + + +
diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..8808bbe --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..d0e220d --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,16 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..70961c7 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,47 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 蠢鬆亥ア樊ァ縺ョ繧ソ繧、繝医Ν縺ォ謖螳壹@縺溷、シ医後ち繧、繝医Ν縲搾シ峨′縲∝・蜉帷判髱「縺ィ遒コ隱咲判髱「縺ァ陦ィ遉コ縺輔l繧九%縺ィ + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧貞性繧縲∝ィ縺ヲ縺ョ螻樊ァ繧定ィュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..8ccdbc3 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..ceeb3aa --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,100 @@ +runTest( + 蠢鬆亥ア樊ァ繝繧ケ繝, + nameAlias螻樊ァ縺ョ繝繧ケ繝, + elementLabelPattern螻樊ァ縺ョ繝繧ケ繝 +); + +/** + * 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝 + */ +function 蠢鬆亥ア樊ァ繝繧ケ繝() { + var target = findTest('required') + , labels = ['繝ゥ繝吶Ν1', '繝ゥ繝吶Ν2' , '繝ゥ繝吶Ν3' ] + , values = ['蛟、1', '蛟、2', '蛟、3'] + , selected = [false, true, false]; + + equal(target.label.text().compact(), '蠢鬆亥ア樊ァ繧呈欠螳', '繧ソ繧、繝医Ν螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), '繝ゥ繝吶Ν2', '驕ク謚槭&繧後◆蛟、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + equal(target.error.length, 0, '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('select > option').length, 3, '繝励Ν繝繧ヲ繝ウ縺ョ隕∫エ謨ー縺ッ3縺ァ縺ゅk縺薙→'); + + values.each(function (value, index) { + var $select = $(target.input.find('select > option')[index]); + equal($select.val(), value, 'value螻樊ァ縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + equal($select.text().trim(), labels[index], 'label縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + equal($select.prop('selected'), selected[index], '驕ク謚樒憾諷九′豁」縺励>縺薙→') + }); + + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ縺ッ縺ェ縺縺薙→'); + } +} + +/** + * nameAlias螻樊ァ縺ョ繝繧ケ繝 + */ +function nameAlias螻樊ァ縺ョ繝繧ケ繝() { + var test = { + nonNameAlias: function (testCase) { + var target = findTest(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('select.nablarch_error').length, 1, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + equal(target.error.find('div.nablarch_error').length, 1, '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺帙l繧九%縺ィ'); + } + }, + nameAlias : function (testCase) { + var target = findTest(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('select.nablarch_error').length, 1, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→'); + } + } + }; + + test.nonNameAlias('not-nameAlias'); + test.nonNameAlias('nameAlias-blank'); + test.nameAlias('nameAlias'); +} + +function elementLabelPattern螻樊ァ縺ョ繝繧ケ繝() { + var labels = ['繝ゥ繝吶Ν1', '繝ゥ繝吶Ν2' , '繝ゥ繝吶Ν3' ] + , formatLabels = ['蛟、1 - 繝ゥ繝吶Ν1', '蛟、2 - 繝ゥ繝吶Ν2' , '蛟、3 - 繝ゥ繝吶Ν3' ] + , values = ['蛟、1', '蛟、2', '蛟、3'] + , assertLabel = function (testCase, expectedLabels, confirmExpectedLabel) { + var target = findTest(testCase) + , $options = target.input.find('select > option'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), confirmExpectedLabel, 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + } else { + $options.each(function (index, option) { + var $option = $(option); + + equal($option.val(), values[index], target.testCase + ':value螻樊ァ縺瑚ィュ螳壹&繧後※縺繧九%縺ィ'); + equal($option.text().trim(), expectedLabels[index], target.testCase + ':label縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + }); + } + }; + + assertLabel('elementLabelPattern-none', labels, '繝ゥ繝吶Ν1'); + assertLabel('elementLabelPattern-blank', labels, '繝ゥ繝吶Ν2'); + assertLabel('elementLabelPattern-not-blank', formatLabels, '蛟、3 - 繝ゥ繝吶Ν3'); +} + +function findTest(testCase) { + var $test = $('span.test-case.' + testCase) + , $text_div = $test.next('.field.pulldown'); + + return { + testCase: $test.text(), + label: $text_div.find('label'), + input: $text_div.find('div.field-content'), + error: $text_div.find('div.fielderror') + } +} diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..9cacd11 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,20 @@ + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..a8b5a00 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,75 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Locale" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + + final List> pulldownList = new ArrayList>() {{ + add(new HashMap() {{ + put("label", "繝ゥ繝吶Ν1"); + put("value", "蛟、1"); + }}); + add(new HashMap() {{ + put("label", "繝ゥ繝吶Ν2"); + put("value", "蛟、2"); + }}); + add(new HashMap() {{ + put("label", "繝ゥ繝吶Ν3"); + put("value", "蛟、3"); + }}); + }}; + + request.setAttribute("pulldown-list", pulldownList); + + if (!request.getParameterMap().containsKey("input")) { + + request.setAttribute("server", new HashMap() {{ + put("required", "蛟、2"); + put("labelpattern-none", new String[]{"蛟、1"}); + put("labelpattern-blank", new String[]{"蛟、2"}); + put("labelpattern", new String[]{"蛟、3"}); + }}); + + ApplicationException exception = new ApplicationException(); + exception.addMessages(new ValidationResultMessage("server.nameAlias-test", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-none", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹↑縺励ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-blank", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias縺ォ繝悶Λ繝ウ繧ッ謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + request.setAttribute("nablarch_application_error", exception); + } +%> diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..68451d9 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,100 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ォ縺ッ蜈・蜉帶ャ縺悟コ蜉帙&繧後∫「コ隱咲判髱「縺ォ縺ッ蜈・蜉帛、縺後Λ繝吶Ν縺ィ縺励※蜃コ蜉帙&繧後k縺薙→縲 + + + + + + nameAlias螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ繧呈欠螳壹@縺溷エ蜷医鬆逶ョ縺後ワ繧、繝ゥ繧、繝郁。ィ遉コ縺輔l繧九%縺ィ + + + + + + elementLabelPattern螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医‘lementLabelProperty縺ォ謖螳壹@縺溘励Ο繝代ユ繧」縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + elementLabelPattern螻樊ァ繧偵ヶ繝ゥ繝ウ繧ッ縺ィ縺励◆蝣エ蜷医‘lementLabelProperty縺ォ謖螳壹@縺溘励Ο繝代ユ繧」縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + elementLabelPattern螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝医〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..7472b4c --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,5 @@ + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..2cd7490 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,323 @@ +runTest( + require螻樊ァ縺ョ繝繧ケ繝 + , hint螻樊ァ縺ョ繝繧ケ繝 + , readonly螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , multiple螻樊ァ縺ョ繝繧ケ繝 + , withNoneOption螻樊ァ縺ョ繝繧ケ繝 + , sample螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 + , 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝 +); + +var $all_nodes; + +function setup() { + $all_nodes = $('span.test-case, div.field.pulldown, div.fielderror, div.note'); +} + +function require螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('required-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , required = 'span.required' + , assertHas = function(testcase) { + if(isConfirmationPage()) { assertNotHas(testcase); + } else{ + equal(testcase.area.find(required).size(), 1, testcase.testcase); + equal($.trim(testcase.area.find(required).text()), '*', testcase.testcase); + } + } + , assertNotHas = function(testcase) { + equal(testcase.area.find(required).size(), 0, testcase.testcase); + }; + + assertNotHas(default_case); + assertNotHas(blank_case); + assertNotHas(false_case); + assertHas(true_case); +} + +function hint螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('hint-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_hint_case = cases[2] + , assertHasHint = function(testcase) { + isConfirmationPage() ? equal(testcase.hint.size(), 0, testcase.testcase) + : equal(testcase.hint.size(), 1, testcase.testcase); + } + , assertHasNotHint = function(testcase) { + equal(testcase.hint.size(), 0, testcase.testcase); + }; + + assertHasNotHint(default_case); + assertHasNotHint(blank_case); + assertHasHint(set_hint_case); +} + +function readonly螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('readonly-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, label) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, label, testcase.testcase); + } + , assertValues = function(testcase, values) { + return function(i, e) { + equal($(this).val(), values[i], testcase.testcase); + }; + } + , assertReadOnly = function(testcase, values) { + var $input = testcase.area.find('select'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function(){ + ok($(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + ok($(this).is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }); + } + , assertNotReadOnly = function(testcase, values) { + var $input = testcase.area.find('select'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + $input.each(function(){ + ok(!$(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + ok(!$(this).is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }) + .find('option').each(assertValues(testcase, values)); + } + , values = ["蛟、1", "蛟、2", "蛟、3"]; + + if (isConfirmationPage()) { + assertText(default_case, "繝ゥ繝吶Ν1"); + assertText(blank_case, "繝ゥ繝吶Ν1"); + assertText(true_case, "繝ゥ繝吶Ν1"); + assertText(false_case, "繝ゥ繝吶Ν1"); + } else { + assertNotReadOnly(default_case, values); + assertNotReadOnly(blank_case, values); + assertReadOnly(true_case, values); + assertNotReadOnly(false_case, values); + } +} + +function disabled螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('disabled-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, label) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, label, testcase.testcase); + } + , assertValues = function(testcase, values) { + return function(i, e) { + equal($(this).val(), values[i], testcase.testcase); + }; + } + , assertDisabled = function(testcase, values) { + var $input = testcase.area.find('select'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + $input.each(function(){ + ok($(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + }) + .find('option').each(assertValues(testcase, values)); + } + , assertNotDisabled = function(testcase, values) { + var $input = testcase.area.find('select'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + $input.each(function(){ + ok(!$(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + }) + .find('option').each(assertValues(testcase, values)); + } + , values = ["蛟、1", "蛟、2", "蛟、3"]; + + if (isConfirmationPage()) { + assertText(default_case, "繝ゥ繝吶Ν2"); + assertText(blank_case, "繝ゥ繝吶Ν3"); + assertText(true_case, ""); + assertText(false_case, "繝ゥ繝吶Ν1"); + } else { + assertNotDisabled(default_case, values); + assertNotDisabled(blank_case, values); + assertDisabled(true_case, values); + assertNotDisabled(false_case, values); + } +} + +function id螻樊ァ縺ョ繝繧ケ繝() { + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('id-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + var default_input = default_case.area.find('select'); + equal(default_input.attr('id'), default_input.attr('name'), default_case.testcase); + + var blank_input = blank_case.area.find('select'); + equal(blank_input.attr('id'), blank_input.attr('name'), blank_case.testcase); + + var set_input = set_case.area.find('select'); + notEqual(set_input.attr('id'), set_input.attr('name'), set_case.testcase); + equal(set_input.attr('id'), 'test-id', set_case.testcase); +} + + +function cssClass螻樊ァ縺ョ繝繧ケ繝() { + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + equal(default_case.area.find('select').size(), 1, default_case.testcase); + equal(default_case.area.find('select.cssClass-test').size(), 0, default_case.testcase); + + equal(blank_case.area.find('select').size(), 1, blank_case.testcase); + equal(blank_case.area.find('select.cssClass-test').size(), 0, blank_case.testcase); + + equal(set_case.area.find('select.cssClass-test').size(), 1, set_case.testcase); +} + +function multiple螻樊ァ縺ョ繝繧ケ繝() { + if (isConfirmationPage()) {return ok(true, "遒コ隱咲判髱「縺ァ縺ッ螳滓命縺励↑縺");} + setup(); + var cases = test_for('multiple-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertMultiple = function(testcase) { + ok(testcase.area.find('select').attr('multiple'), testcase.testcase); + } + , assertNotMultiple = function(testcase) { + ok(!testcase.area.find('select').attr('multiple'), testcase.testcase); + }; + + assertNotMultiple(default_case); + assertNotMultiple(blank_case); + assertNotMultiple(false_case); + assertMultiple(true_case); +} + +function withNoneOption螻樊ァ縺ョ繝繧ケ繝() { + if (isConfirmationPage()) {return ok(true, "遒コ隱咲判髱「縺ァ縺ッ螳滓命縺励↑縺");} + setup(); + var cases = test_for('withNoneOption-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , options = ["蛟、1", "蛟、2", "蛟、3"] + , assertOptions = function(testcase, options) { + var $input = testcase.area.find('select') + , assert = function(i, e) { + equal($(this).val(), options[i], testcase.testcase); + }; + $input.find('option').each(assert); + }; + + assertOptions(default_case, options); + assertOptions(blank_case, options); + assertOptions(true_case, [""].union(options)); + assertOptions(false_case, options); + +} + +function sample螻樊ァ縺ョ繝繧ケ繝() { // server 縺ォ縺ヲ蜃コ蜉帙&繧後k蝣エ蜷医ッ辟。蜉ケ縺ァ縺ゅk縺薙→繧堤「コ隱阪☆繧九 + setup(); + var cases = test_for('sample-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , set_multi_case = cases[3] + , assert = function(testcase) { + var text = testcase.area.find('div.field-content').text(); + ok(text.isBlank(), testcase.testcase); + }; + + assert(default_case); + assert(blank_case); + assert(set_case); + assert(set_multi_case); +} + +function size螻樊ァ縺ョ繝繧ケ繝() { + if (isConfirmationPage()) {return ok(true, "遒コ隱咲判髱「縺ァ縺ッ讀懆ィシ縺励↑縺");} + setup(); + var cases = test_for('size-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assert = function(testcase, size) { + equal(testcase.area.find('select').attr('size'), size, testcase.testcase); + }; + + assert(default_case, 0); + assert(blank_case, 0); + assert(set_case, 10); +} + +function 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('title-input-size'), + assertNotSizeClass = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-10'), testCase.testcase); + ok(fieldContent.hasClass('grid-col-8'), testCase.testcase); + }; + + assertNotSizeClass(cases[0]); // size螻樊ァ譛ェ謖螳 + assertNotSizeClass(cases[1]); // size螻樊ァ繝悶Λ繝ウ繧ッ謖螳 + assertSize(cases[2]); // size螻樊ァ繧呈欠螳 +} + +/** + * 蜊倩。後ユ繧ュ繧ケ繝医ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]) + , $options = $all_nodes.filter(':eq(' + (idx + 2) + '), :eq(' + (idx + 3) + ')') + , error = $options.filter('div.fielderror') + , note = $options.filter('div.note'); + return { + testcase : $.trim($e.text()), + area : $area, + error : error, + hint : note + }; + }); +} diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..f80621f --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,43 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + /********************* + id螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + select#server\.id-none { + background-color: #7ec78f; + } + + select#server\.id-blank { + background-color: #a7c788 + } + + select#test-id { + border-color: red; + } + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + select.cssClass-test { + border-color: blue; + } + + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..8ecce3f --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,68 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Locale" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..8b87eb0 --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,481 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + required螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッ蠢鬆医槭シ繧ッ縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ陦ィ遉コ縺輔l縺ェ縺シ + + + + + + hint螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッhint縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ蜃コ蜉帙&繧後↑縺縺薙→シ + + + 繝ゥ繝吶Ν縺梧釜繧願ソ斐@縺溷エ蜷医〒繧ゅ”int螻樊ァ縺悟・蜉帙お繝ェ繧「縺ョ逶エ荳九↓蟾ヲ謠縺医〒蜃コ蜉帙&繧後k縺薙→縲ら「コ隱咲判髱「縺ァ縺ッ蜃コ蜉帙&繧後↑縺縺薙→縲 + + + + + + + readonly螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮荳榊庄縺ォ縺ェ繧九%縺ィ(蛟、縺ッ騾∽ソ。縺輔l遒コ隱咲判髱「縺ォ繝ゥ繝吶Ν陦ィ遉コ縺輔l繧九%縺ィ) + + + readonly螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l縺ェ縺縺薙→シ育「コ隱咲判髱「縺ォ陦ィ遉コ縺輔l縺ェ縺縺薙→シ + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + id螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + id螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョid縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + cssClass螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺ォ謖螳壹@縺歡ssClass縺瑚ィュ螳壹&繧後k縺薙→ + + + + + multiple螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∬、謨ー驕ク謚槭〒縺阪↑縺繝励Ν繝繧ヲ繝ウ縺悟コ蜉帙&繧後k縺薙→ + + + multiple螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∬、謨ー驕ク謚槭〒縺阪↑縺繝励Ν繝繧ヲ繝ウ縺悟コ蜉帙&繧後k縺薙→ + + + multiple螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∬、謨ー驕ク謚槭〒縺阪k繝励Ν繝繧ヲ繝ウ縺悟コ蜉帙&繧後k縺薙→ + + + multiple螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∬、謨ー驕ク謚槭〒縺阪↑縺繝励Ν繝繧ヲ繝ウ縺悟コ蜉帙&繧後k縺薙→ + + + + + + withNoneOption繧呈欠螳壹@縺ェ縺蝣エ蜷医√鯉シ磯∈謚槭@縺ェ縺シ峨阪ョ鬆逶ョ縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→ + + + withNoneOption縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√鯉シ磯∈謚槭@縺ェ縺シ峨阪ョ鬆逶ョ縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→ + + + withNoneOption縺ォtrue繧呈欠螳壹@縺溷エ蜷医√鯉シ磯∈謚槭@縺ェ縺シ峨阪ョ鬆逶ョ縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + withNoneOption縺ォfalse繧呈欠螳壹@縺溷エ蜷医√鯉シ磯∈謚槭@縺ェ縺シ峨阪ョ鬆逶ョ縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→ + + + + + + sample螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ繧呈欠螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝医〒縺ッ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後ー]縺ァ蝗イ縺セ繧後◆蛟、縺碁∈謚樒憾諷九→縺ェ繧九%縺ィ縲 + + + 隍謨ー鬆逶ョ繧端]縺ァ蝗イ繧縺ィ縲∝峇縺セ繧後◆蛟、縺悟ィ縺ヲ驕ク謚樒憾諷九→縺ェ繧九%縺ィ縲(multiple) + + + + + 繝励Ν繝繧ヲ繝ウ蜀縺ォ髱槫クク縺ォ髟キ縺譁蟄怜励′蜷ォ縺セ繧後k縺ィ縲√☆縺ケ縺ヲ陦ィ遉コ縺輔l縺壹↓隕句繧後※縺励∪縺縲 + + + + + + size螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ョ繝輔か繝ォ繝医ョ陦梧焚縺ァ陦ィ遉コ縺輔l繧九%縺ィ + + + size螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ョ繝輔か繝ォ繝医ョ陦梧焚縺ァ陦ィ遉コ縺輔l繧九%縺ィ + + + size螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溯。梧焚縺ァ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + titleSize縺ィinputSize縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + + +
+ + + + + + + + + + + +
diff --git "a/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..8808bbe --- /dev/null +++ "b/node_modules/nablarch-widget-field-pulldown/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\227\343\203\253\343\203\200\343\202\246\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git a/node_modules/nablarch-widget-field-radio/package.json b/node_modules/nablarch-widget-field-radio/package.json new file mode 100644 index 0000000..a53f912 --- /dev/null +++ b/node_modules/nablarch-widget-field-radio/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-radio" +, "version": "1.0.1" +, "_from" : "nablarch-widget-field-radio@1.0.1" +, "dependencies": { + } +, "description": "繝ゥ繧ク繧ェ繝懊ち繝ウ蜈・蜉幃逶ョ繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-radio/ui_public/WEB-INF/tags/widget/field/code_radio.tag b/node_modules/nablarch-widget-field-radio/ui_public/WEB-INF/tags/widget/field/code_radio.tag new file mode 100644 index 0000000..12c4877 --- /dev/null +++ b/node_modules/nablarch-widget-field-radio/ui_public/WEB-INF/tags/widget/field/code_radio.tag @@ -0,0 +1,70 @@ +<%-- + 繧ウ繝シ繝牙ョ夂セゥ縺ォ蠕薙▲縺ヲ繝ゥ繧ク繧ェ繝懊ち繝ウ繧貞コ蜉帙☆繧偽I驛ィ蜩 + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="繧ウ繝シ繝牙ョ夂セゥ縺ォ蠕薙▲縺ヲ繝ゥ繧ク繧ェ繝懊ち繝ウ鬆逶ョ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%---------------------- 螻樊ァ螳夂セゥシ亥ア騾夲シ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="domain" description="鬆逶ョ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="readonly" description="邱ィ髮蜿ッ閭ス縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="name" description="HTML縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> +<%@ attribute name="nameAlias" description="荳縺、縺ョ繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ォ蟇セ縺励※隍謨ー縺ョ蜈・蜉幃逶ョ繧偵ワ繧、繝ゥ繧、繝郁。ィ遉コ縺吶k蝣エ蜷医↓謖螳壹☆繧具シ磯逶ョ髢鍋イセ譟サ縺ェ縺ゥシ峨りゥウ邏ー縺ォ縺、縺縺ヲ縺ッ縲、pplication Framework隗」隱ャ譖ク縺ョ縲後お繝ゥ繝シ陦ィ遉コ縲阪r蜿らァ縲" rtexprvalue="true" %> +<%@ attribute name="hint" description="蜈・蜉帛螳ケ繧逡呎э轤ケ縺ェ縺ゥ縺ョ陬懷勧繝繧ュ繧ケ繝" rtexprvalue="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ亥句挨シ ----------------------%> +<%@ attribute name="codeId" description="繧ウ繝シ繝牙ョ夂セゥID" required="true" rtexprvalue="true" %> +<%@ attribute name="pattern" description="菴ソ逕ィ縺吶k繧ウ繝シ繝峨ヱ繧ソ繝シ繝ウ縺ョ繧ォ繝ゥ繝蜷(繝繝輔か繝ォ繝医ッ'PATTERN01')" rtexprvalue="true" %> +<%@ attribute name="optionColumnName" description="蜿門セ励☆繧九が繝励す繝ァ繝ウ蜷咲ァー縺ョ繧ォ繝ゥ繝蜷(繝繝輔か繝ォ繝医ッ'OPTION01')" rtexprvalue="true" %> +<%@ attribute name="labelPattern" description="繝ゥ繝吶Ν陦ィ遉コ譖ク蠑(繝繝輔か繝ォ繝:$NAME$)" rtexprvalue="true" %> +<%@ attribute name="listFormat" description="繝ェ繧ケ繝郁。ィ遉コ譎ゅ↓菴ソ逕ィ縺吶k繝輔か繝シ繝槭ャ繝医ゑシ医ョ繝輔か繝ォ繝亥、縺ッ'span'シ" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="comment" description="縺薙ョ繝ゥ繧ク繧ェ繝懊ち繝ウ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%------------------------------------------------------------%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繝代ち繝シ繝ウ繧ウ繝シ繝峨ョ繧ォ繝ゥ繝蜷 --%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繧ェ繝励す繝ァ繝ウ蜷咲ァー縺ョ繧ォ繝ゥ繝蜷 --%> + +<%-- 譏守、コ逧縺ォ謖螳壹@縺ェ縺九▲縺溷エ蜷医↓菴ソ逕ィ縺吶k繝ゥ繝吶Ν繧ウ繝シ繝 --%> + + + + + + + + + + + + diff --git a/node_modules/nablarch-widget-field-radio/ui_public/WEB-INF/tags/widget/field/radio.tag b/node_modules/nablarch-widget-field-radio/ui_public/WEB-INF/tags/widget/field/radio.tag new file mode 100644 index 0000000..29ed96f --- /dev/null +++ b/node_modules/nablarch-widget-field-radio/ui_public/WEB-INF/tags/widget/field/radio.tag @@ -0,0 +1,60 @@ +<%-- + 繝ゥ繧ク繧ェ繝懊ち繝ウUI驛ィ蜩シ医Μ繧ケ繝医r蜿励¢蜿悶j縲√Λ繧ク繧ェ繝懊ち繝ウ縺ョ驕ク謚樣逶ョ縺ィ縺励※陦ィ遉コ縺吶k縲ゑシ + @author Ryo Tanaka +--%> + +<%@ tag pageEncoding="UTF-8" description="繝ゥ繧ク繧ェ繝懊ち繝ウ鬆逶ョ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%---------------------- 螻樊ァ螳夂セゥシ亥ア騾夲シ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="domain" description="鬆逶ョ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="readonly" description="邱ィ髮蜿ッ閭ス縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="name" description="HTML縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> +<%@ attribute name="nameAlias" description="荳縺、縺ョ繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ォ蟇セ縺励※隍謨ー縺ョ蜈・蜉幃逶ョ繧偵ワ繧、繝ゥ繧、繝郁。ィ遉コ縺吶k蝣エ蜷医↓謖螳壹☆繧具シ磯逶ョ髢鍋イセ譟サ縺ェ縺ゥシ峨りゥウ邏ー縺ォ縺、縺縺ヲ縺ッ縲、pplication Framework隗」隱ャ譖ク縺ョ縲後お繝ゥ繝シ陦ィ遉コ縲阪r蜿らァ縲" rtexprvalue="true" %> +<%@ attribute name="hint" description="蜈・蜉帛螳ケ繧逡呎э轤ケ縺ェ縺ゥ縺ョ陬懷勧繝繧ュ繧ケ繝" rtexprvalue="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ亥句挨シ ----------------------%> +<%@ attribute name="listName" description="驕ク謚樣逶ョ縺ョ繝ェ繧ケ繝医ョ螻樊ァ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="elementLabelProperty" description="繝ェ繧ケ繝郁ヲ∫エ縺九i蛟、繧貞叙蠕励☆繧九◆繧√ョ繝励Ο繝代ユ繧」蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="elementValueProperty" description="繝ェ繧ケ繝郁ヲ∫エ縺九i繝ゥ繝吶Ν繧貞叙蠕励☆繧九◆繧√ョ繝励Ο繝代ユ繧」蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="elementLabelPattern" description="繝ゥ繝吶Ν繧呈紛蠖「縺吶k縺溘a縺ョ繝代ち繝シ繝ウ縲" rtexprvalue="true" %> +<%@ attribute name="listFormat" description="繝ェ繧ケ繝郁。ィ遉コ譎ゅ↓菴ソ逕ィ縺吶k繝輔か繝シ繝槭ャ繝医ゑシ医ョ繝輔か繝ォ繝亥、縺ッ'span'シ" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繝ゥ繧ク繧ェ繝懊ち繝ウ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%------------------------------------------------------------%> + + + + + <%-- listFormat縺梧欠螳壹&繧後※縺縺ェ縺蝣エ蜷医↓繧ィ繝ゥ繝シ縺ィ縺ェ繧九◆繧√∵欠螳壹&繧後↑縺蝣エ蜷医ッ'br'繧呈守、コ逧縺ォ險ュ螳壹☆繧九 --%> + + + diff --git a/node_modules/nablarch-widget-field-radio/ui_public/css/field/radio-multicol.less b/node_modules/nablarch-widget-field-radio/ui_public/css/field/radio-multicol.less new file mode 100644 index 0000000..41770b0 --- /dev/null +++ b/node_modules/nablarch-widget-field-radio/ui_public/css/field/radio-multicol.less @@ -0,0 +1,11 @@ +#content { + div.field.radios { + div.field-content { + label { + font-weight: normal; + float: none; + } + } + } +} + diff --git a/node_modules/nablarch-widget-field-radio/ui_public/css/field/radio.less b/node_modules/nablarch-widget-field-radio/ui_public/css/field/radio.less new file mode 100644 index 0000000..c23c8c2 --- /dev/null +++ b/node_modules/nablarch-widget-field-radio/ui_public/css/field/radio.less @@ -0,0 +1,16 @@ +#content { + div.field.radios { + div.field-content { + span { + display: inline-block; + margin-right: 8px; + } + + // radiobutton縺ョ繝ゥ繝吶Ν縺ョ繝輔か繝ウ繝医ッ繝弱シ繝槭Ν繧オ繧、繧コ + label { + font-weight: normal; + } + } + } +} + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..da29c9a --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,16 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..2b5f579 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,54 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 蠢鬆亥ア樊ァ縺ョ繧ソ繧、繝医Ν縺ォ謖螳壹@縺溷、シ医後ち繧、繝医Ν縲搾シ峨′縲∝・蜉帷判髱「縺ィ遒コ隱咲判髱「縺ァ陦ィ遉コ縺輔l繧九%縺ィ + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧貞性繧縲∝ィ縺ヲ縺ョ螻樊ァ繧定ィュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..8ccdbc3 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..2a5bdb1 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,76 @@ +runTest( + 蠢鬆亥ア樊ァ繝繧ケ繝, + nameAlias螻樊ァ縺ョ繝繧ケ繝 +); + +/** + * 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝 + */ +function 蠢鬆亥ア樊ァ繝繧ケ繝() { + var target = findTest('required') + , labels = ['name1-1', 'name1-2' , 'name1-3' ] + , values = ['value1-1', 'value1-2', 'value1-3'] + , checked = [false, true, false]; + + equal(target.label.text().compact(), '蠢鬆亥ア樊ァ繧呈欠螳', '繧ソ繧、繝医Ν螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), 'name1-2', 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + equal(target.error.length, 0, '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + + } else { + equal(target.input.find('input').length, 3, '繝ゥ繧ク繧ェ繝懊ち繝ウ縺3縺、蜃コ蜉帙&繧後k縺薙→'); + + values.each(function (value, index) { + var $radio = $(target.input.find('input:radio')[index]); + equal($radio.val(), value, 'value螻樊ァ縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + equal($radio.next('label').text().trim(), labels[index], 'label縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + equal($radio.prop('checked'), checked[index], '繝√ぉ繝繧ッ迥カ諷九′豁」縺励¥險ュ螳壹&繧後k縺薙→') + }); + + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ縺ッ縺ェ縺縺薙→'); + } +} + +/** + * nameAlias螻樊ァ縺ョ繝繧ケ繝 + */ +function nameAlias螻樊ァ縺ョ繝繧ケ繝() { + var test = { + nonNameAlias: function (testCase) { + var target = findTest(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('input.nablarch_error').length, 3, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + equal(target.error.find('div.nablarch_error').length, 1, '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺帙l繧九%縺ィ'); + } + }, + nameAlias : function (testCase) { + var target = findTest(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('input.nablarch_error').length, 3, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→'); + } + } + }; + + test.nonNameAlias('not-nameAlias'); + test.nonNameAlias('nameAlias-blank'); + test.nameAlias('nameAlias'); +} + + +function findTest(testCase) { + var $test = $('span.test-case.' + testCase) + , $text_div = $test.next('.field.radios'); + + return { + testCase: $test.text(), + label : $text_div.children('label'), + input : $text_div.find('div.field-content'), + error : $text_div.find('div.fielderror') + } +} diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..942c449 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,31 @@ + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input.cssClass-test + label { + color: red; + font-weight: bold; + } + + input.nablarch_error + label { + color: red; + } + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..eef24d6 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,61 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + + if (!request.getParameterMap().containsKey("input")) { + + request.setAttribute("server", new HashMap() {{ + put("required", "value1-2"); + put("pattern-none", new String[]{"value1-2"}); + put("pattern-blank", new String[]{"value1-3"}); + put("pattern-nonblank", new String[]{"value1-2"}); + put("optional-name-none", new String[]{"value1-2"}); + put("optional-name-blank", new String[]{"value1-3"}); + put("optional-name", new String[]{"value1-1"}); + put("label-pattern-none", new String[]{"value1-2"}); + put("label-pattern-blank", new String[]{"value1-3"}); + put("label-pattern", new String[]{"value1-1"}); + }}); + + ApplicationException exception = new ApplicationException(); + exception.addMessages(new ValidationResultMessage("server.nameAlias-test", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-none", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹↑縺励ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-blank", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias縺ォ繝悶Λ繝ウ繧ッ謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + request.setAttribute("nablarch_application_error", exception); + } +%> diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..5741b26 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,73 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ォ縺ッ蜈・蜉帶ャ縺悟コ蜉帙&繧後∫「コ隱咲判髱「縺ォ縺ッ蜈・蜉帛、縺後Λ繝吶Ν縺ィ縺励※蜃コ蜉帙&繧後k縺薙→縲 + + + + + + nameAlias螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ繧呈欠螳壹@縺溷エ蜷医鬆逶ョ縺ォ縺ョclass螻樊ァ縺ォnablarch_error縺瑚ィュ螳壹&繧後k縺薙→ + + + 繝ゥ繝吶Ν縺梧隼陦後&繧後※繧ゅお繝ゥ繝シ鬆逶ョ縺梧ュ」縺励¥陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..7472b4c --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,5 @@ + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..5b60daf --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,440 @@ +runTest( + require螻樊ァ縺ョ繝繧ケ繝 + , hint螻樊ァ縺ョ繝繧ケ繝 + , readonly螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , sample螻樊ァ縺ョ繝繧ケ繝 + , listFormat螻樊ァ縺ョ繝繧ケ繝 + , 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝 + , pattern螻樊ァ縺ョ繝繧ケ繝 + , optionColumnName螻樊ァ縺ョ繝繧ケ繝 + , labelPattern螻樊ァ縺ョ繝繧ケ繝 +); + +var $all_nodes; + +function setup() { + $all_nodes = $('span.test-case, div.field.radios, div.fielderror, div.note'); +} + +function require螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('required-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , required = 'span.required' + , assertHas = function(testcase) { + if(isConfirmationPage()) { assertNotHas(testcase); + } else{ + equal(testcase.area.find(required).size(), 1, testcase.testcase); + equal($.trim(testcase.area.find(required).text()), '*', testcase.testcase); + } + } + , assertNotHas = function(testcase) { + equal(testcase.area.find(required).size(), 0, testcase.testcase); + }; + + assertNotHas(default_case); + assertNotHas(blank_case); + assertNotHas(false_case); + assertHas(true_case); +} + +function hint螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('hint-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_hint_case = cases[2] + , assertHasHint = function(testcase) { + isConfirmationPage() ? equal(testcase.hint.size(), 0, testcase.testcase) + : equal(testcase.hint.size(), 1, testcase.testcase); + } + , assertHasNotHint = function(testcase) { + equal(testcase.hint.size(), 0, testcase.testcase); + }; + + assertHasNotHint(default_case); + assertHasNotHint(blank_case); + assertHasHint(set_hint_case); +} + +function readonly螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('readonly-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, values) { + var text = $.trim(testcase.area.find('div.field-content').text()) + , datalist = text.split(/\s/); + $.each(datalist, function(i, e) { + equal(e, values[i], testcase.testcase); + }); + } + , assertValues = function(testcase, values) { + return function(i, e) { + equal($(this).val(), values[i], testcase.testcase); + }; + } + , assertReadOnly = function(testcase, values) { + var $input = testcase.area.find('input:radio'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function(){ + ok($(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + ok($(this).is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }); + } + , assertNotReadOnly = function(testcase, values) { + var $input = testcase.area.find('input:radio'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function(){ + ok(!$(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + ok(!$(this).is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }); + } + , values = ["value1-1", "value1-2", "value1-3"] + , labels = ["name1-1", "name1-2", "name1-3"]; + + if (isConfirmationPage()) { + assertText(default_case, labels); + assertText(blank_case, labels); + assertText(true_case, labels); + assertText(false_case, labels); + } else { + assertNotReadOnly(default_case, values); + assertNotReadOnly(blank_case, values); + assertReadOnly(true_case, values); + assertNotReadOnly(false_case, values); + } +} + +function disabled螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('disabled-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, label) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, label, testcase.testcase); + } + , assertValues = function(testcase, values) { + return function(i, e) { + equal($(this).val(), values[i], testcase.testcase); + }; + } + , assertDisabled = function(testcase, values) { + var $input = testcase.area.find('input:radio'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function(){ + ok($(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + }); + } + , assertNotDisabled = function(testcase, values) { + var $input = testcase.area.find('input:radio'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function(){ + ok(!$(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + }); + } + , values = ["value1-1", "value1-2", "value1-3"]; + + if (isConfirmationPage()) { + assertText(default_case, "name1-2"); + assertText(blank_case, "name1-3"); + assertText(true_case, ""); + assertText(false_case, "name1-2"); + } else { + assertNotDisabled(default_case, values); + assertNotDisabled(blank_case, values); + assertDisabled(true_case, values); + assertNotDisabled(false_case, values); + } +} + +function cssClass螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + equal(default_case.area.find('input:radio').size(), 3, default_case.testcase); + equal(default_case.area.find('input:radio.cssClass-test').size(), 0, default_case.testcase); + + equal(blank_case.area.find('input:radio').size(), 3, blank_case.testcase); + equal(blank_case.area.find('input:radio.cssClass-test').size(), 0, blank_case.testcase); + + equal(set_case.area.find('input:radio.cssClass-test').size(), 3, set_case.testcase); +} + +function sample螻樊ァ縺ョ繝繧ケ繝() { // server 縺ォ縺ヲ蜃コ蜉帙&繧後k蝣エ蜷医ッ辟。蜉ケ縺ァ縺ゅk縺薙→繧堤「コ隱阪☆繧九 + setup(); + var cases = test_for('sample-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assertBlankText = function(testcase) { + var text = testcase.area.find('div.field-content').text(); + ok(text.isBlank(), testcase.testcase); + } + , assert = function(testcase) { + if (isConfirmationPage()) {return assertBlankText(testcase);} + + var $nodes = testcase.area.find('div.field-content').find('input:radio') + , values = ["value1-1", "value1-2", "value1-3"] + , text = $.trim(testcase.area.find('div.field-content').text()) + , label = ["name1-1", "name1-2", "name1-3"].join("\xA0"); + $nodes.each(function(i, e){ + equal($(this).val(), values[i], testcase.testcase); + }); + equal(text, label, testcase.testcase); + }; + + assert(default_case); + assert(blank_case); + assert(set_case); +} + +function listFormat螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('listFormat-test') + , default_case = cases[0] + , blank_case = cases[1] + , br_case = cases[2] + , div_case = cases[3] + , span_case = cases[4] + , ul_case = cases[5] + , ol_case = cases[6] + , sp_case = cases[7] + , values = ["value1-1", "value1-2", "value1-3"] + , labels = ["name1-1", "name1-2", "name1-3"] + , assertValuesFormat = function(testcase, formatSpec, values) { // 蜈・蜉帷判髱「縺ァ縺ッformat蜀縺ォcheckbox縺後≠繧九%縺ィ縺ァ讀懆ィシ + var $input = testcase.area.find('div.field-content').find(formatSpec).find('input:radio'); + equal($input.size(), values.length, testcase.testcase + " formatspec = " + formatSpec); + $input.each(function(i, e){ + equal($(this).val(), values[i], testcase.testcase); + }); + } + , assertLabelFormat = function(testcase, formatSpec, label){ //遒コ隱咲判髱「縺ァ縺ッformat縺ョ荳ュ縺ォlabel縺ョ繝繧ュ繧ケ繝医′縺ゅk縺薙→縺ァ讀懆ィシ縺吶k縲 + var $label = testcase.area.find('div.field-content').find(formatSpec) + , text = $.trim($label.text()); + equal($label.size(), 1, testcase.testcase); + equal(text, label, testcase.testcase); + } + , assertTextFormat = function (testcase, formatSpec ,labels) { + var fieldInput = testcase.area.find('div.field-content').clone() + , nodes; + + fieldInput.find('div.fielderror').remove(); + nodes = fieldInput.html().trim().toLowerCase().split(formatSpec).remove(""); + equal(nodes.length, labels.length, testcase.testcase); + $.each(nodes, function(i, htmltext){ + ok(htmltext.match('^\\s*\\s*$'), testcase.testcase); + }); + } + , assertText = function(testcase, label) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, label, testcase.testcase); + } ; + + if (isConfirmationPage()) { + assertLabelFormat(default_case, "span", "name1-3"); + assertLabelFormat(blank_case, "span", "name1-3"); + assertText(br_case, "name1-1"); + assertLabelFormat(div_case, "div", "name1-1"); + assertLabelFormat(span_case, "span", "name1-1"); + assertLabelFormat(ul_case, "ul > li", "name1-1"); + assertLabelFormat(ol_case, "ol > li", "name1-1"); + assertText(sp_case, "name1-1"); + } else { + assertValuesFormat(default_case, "span", values); + assertValuesFormat(blank_case, "span", values); + assertTextFormat(br_case, "
", labels); + assertValuesFormat(div_case, "div", values); + assertValuesFormat(span_case, "span", values); + assertValuesFormat(ul_case, "ul > li", values); + assertValuesFormat(ol_case, "ol > li", values); + assertTextFormat(sp_case, " ",labels); + } +} + +function 繧ソ繧、繝医Ν繧オ繧、繧コ縺ィ蜈・蜉幃Κ繧オ繧、繧コ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('title-input-size'), + assertNotSizeClass = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-5'), testCase.testcase); + ok(fieldContent.hasClass('grid-col-10'), testCase.testcase); + }; + + assertNotSizeClass(cases[0]); // size螻樊ァ譛ェ謖螳 + assertNotSizeClass(cases[1]); // size螻樊ァ繝悶Λ繝ウ繧ッ謖螳 + assertSize(cases[2]); // size螻樊ァ繧呈欠螳 +} + +/** + * pattern螻樊ァ縺ョ繝繧ケ繝 + */ +function pattern螻樊ァ縺ョ繝繧ケ繝() { + var pattern1 = [ + {label: 'name1-1', value: 'value1-1'}, + {label: 'name1-2', value: 'value1-2'}, + {label: 'name1-3', value: 'value1-3'} + ] + , pattern2 = [ + {label: 'name1-2', value: 'value1-2'} + ] + , assert = function (testCase, expected, confirmExpected) { + var target = findTest(testCase) + , $radios = target.input.find('input:radio'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), confirmExpected, 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + } else { + expected.each(function (code, index) { + var $radio = $($radios[index]) + , label = $radio.next('label').text().trim(); + + equal(label, code.label, target.testCase + ': 繝ゥ繝吶Ν陦ィ遉コ縺梧ュ」縺励>縺薙→'); + equal($radio.val(), code.value, target.testCase + ': value螻樊ァ縺梧ュ」縺励>縺薙→'); + }); + } + }; + + assert('pattern-none', pattern1, 'name1-2'); + assert('pattern-blank', pattern1, 'name1-3'); + assert('pattern-not-blank', pattern2, 'name1-2'); +} + +/** + * optionColumnName螻樊ァ縺ョ繝繧ケ繝 + */ +function optionColumnName螻樊ァ縺ョ繝繧ケ繝() { + var defaultOption = [ + {label: 'name1-1 column:OPTION01', value: 'value1-1'}, + {label: 'name1-2 column:OPTION01', value: 'value1-2'}, + {label: 'name1-3 column:OPTION01', value: 'value1-3'} + ] + , specifiedOption = [ + {label: 'name1-1 column:OPTION03', value: 'value1-1'}, + {label: 'name1-2 column:OPTION03', value: 'value1-2'}, + {label: 'name1-3 column:OPTION03', value: 'value1-3'} + ] + , assert = function (testCase, expected, confirmExpected) { + var target = findTest(testCase) + , $radios = target.input.find('input:radio'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), confirmExpected, 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + } else { + expected.each(function (code, index) { + var $radio = $($radios[index]) + , label = $radio.next('label').text().compact(); + + equal(label, code.label, target.testCase + ': 繝ゥ繝吶Ν陦ィ遉コ縺梧ュ」縺励>縺薙→'); + equal($radio.val(), code.value, target.testCase + ': value螻樊ァ縺梧ュ」縺励>縺薙→'); + }); + + } + } + ; + + assert('option-none', defaultOption, 'name1-2 column:OPTION01'); + assert('option-blank', defaultOption, 'name1-3 column:OPTION01'); + assert('option-not-blank', specifiedOption, 'name1-1 column:OPTION03'); +} + +/** + * labelPattern螻樊ァ縺ョ繝繧ケ繝 + */ +function labelPattern螻樊ァ縺ョ繝繧ケ繝() { + var defaultLabel = [ + {label: 'name1-1', value: 'value1-1'}, + {label: 'name1-2', value: 'value1-2'}, + {label: 'name1-3', value: 'value1-3'} + ] + , specifiedPattern = [ + {label: 'name1-1 - short:name1-1 - name1-1 column:OPTION01 - value1-1', value: 'value1-1'}, + {label: 'name1-2 - short:name1-2 - name1-2 column:OPTION01 - value1-2', value: 'value1-2'}, + {label: 'name1-3 - short:name1-3 - name1-3 column:OPTION01 - value1-3', value: 'value1-3'} + ] + , assert = function (testCase, expected, confirmExpected) { + var target = findTest(testCase) + , $radios = target.input.find('input:radio'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), confirmExpected, 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + } else { + expected.each(function (code, index) { + var $radio = $($radios[index]) + , label = $radio.next('label').text().compact(); + + equal(label, code.label, target.testCase + ': 繝ゥ繝吶Ν陦ィ遉コ縺梧ュ」縺励>縺薙→'); + equal($radio.val(), code.value, target.testCase + ': value螻樊ァ縺梧ュ」縺励>縺薙→'); + }); + } + }; + + assert('labelPattern-none', defaultLabel, 'name1-2'); + assert('labelPattern-blank', defaultLabel, 'name1-3'); + assert('labelPattern-not-blank', specifiedPattern, 'name1-1 - short:name1-1 - name1-1 column:OPTION01 - value1-1'); +} + + +/** + * 蜊倩。後ユ繧ュ繧ケ繝医ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]) + , $options = $all_nodes.filter(':eq(' + (idx + 2) + '), :eq(' + (idx + 3) + ')') + , error = $options.filter('div.fielderror') + , note = $options.filter('div.note'); + return { + testcase : $.trim($e.text()), + area : $area, + error : error, + hint : note + }; + }); +} + +function findTest(testCase) { + var $test = $('span.test-case.' + testCase) + , $text_div = $test.next('.field.radios'); + + return { + testCase: $test.text(), + label : $text_div.children('label'), + input : $text_div.find('div.field-content'), + error : $text_div.find('div.fielderror') + } +} diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..3753440 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,33 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input.cssClass-test + label { + color: red; + font-weight: bold; + } + + input.nablarch_error + label { + color: red; + } + + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..c3bd14a --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,41 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..c4b9c81 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,457 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 繝ゥ繝吶Ν繧偵け繝ェ繝繧ッ縺吶k縺薙→縺ァ繧ウ繝シ繝牙、繝ゥ繧ク繧ェ繝懊ち繝ウ繧帝∈謚樒憾諷九↓縺ァ縺阪k縺薙→ + + + + + + required螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッ蠢鬆医槭シ繧ッ縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ陦ィ遉コ縺輔l縺ェ縺シ + + + + + + hint螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッhint縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→シ + + + 繝ゥ繝吶Ν縺梧釜繧願ソ斐@縺溷エ蜷医〒繧ゅ”int螻樊ァ縺悟・蜉帙お繝ェ繧「縺ョ逶エ荳九↓蟾ヲ謠縺医〒蜃コ蜉帙&繧後k縺薙→縲ら「コ隱咲判髱「縺ァ縺ッ蜃コ蜉帙&繧後↑縺縺薙→縲 + + + + + + + readonly螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮荳榊庄縺ォ縺ェ繧九%縺ィ(蛟、縺ッ騾∽ソ。縺輔l遒コ隱咲判髱「縺ォ繝ゥ繝吶Ν陦ィ遉コ縺輔l繧九%縺ィ) + + + readonly螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l縺ェ縺縺薙→シ育「コ隱咲判髱「縺ォ陦ィ遉コ縺輔l縺ェ縺縺薙→シ + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + + + + cssClass螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺ォ謖螳壹@縺歡ssClass縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + sample螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォcodeId縺ォ謖螳壹&繧後◆繧ウ繝シ繝峨ョ繧ウ繝シ繝牙錐遘ー縺悟コ蜉帙&繧後k縺薙→ + + + sample螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォcodeId縺ォ謖螳壹&繧後◆繧ウ繝シ繝峨ョ繧ウ繝シ繝牙錐遘ー縺悟コ蜉帙&繧後k縺薙→ + + + sample螻樊ァ繧呈欠螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝医〒縺ッsample螻樊ァ縺ョ蛟、縺悟コ蜉帙&繧後ー]縺ァ蝗イ縺セ繧後◆蛟、縺碁∈謚樒憾諷九→縺ェ繧九%縺ィ縲 + + + + + + listFormat螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医《pan蛹コ蛻繧翫ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + listFormat螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医《pan蛹コ蛻繧翫ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝茨シbrシ峨〒縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝茨シdivシ峨〒縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝茨シspanシ峨〒縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝茨シulシ峨〒縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝茨シolシ峨〒縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝茨シspシ峨〒縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + + + + titleSize縺ィinputSize縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + + + + + pattern螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医 ̄ATTERN01縺ォ蟇セ蠢懊☆繧九さ繝シ繝峨′陦ィ遉コ縺輔l繧九%縺ィ縲
+ 繝ュ繝シ繧ォ繝ォ陦ィ遉コ縺ァ繧ゅ…odeId螻樊ァ縺ォ謖螳壹&繧後◆繧ウ繝シ繝峨ョ蜷咲ァー縺後た繝シ繝磯縺ォ蠕薙▲縺ヲ繧ス繝シ繝医&繧後※陦ィ遉コ縺輔l繧九%縺ィ縲 +
+ + + pattern螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医 ̄ATTERN01縺ォ蟇セ蠢懊☆繧九さ繝シ繝峨′陦ィ遉コ縺輔l繧九%縺ィ + + + pattern螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヱ繧ソ繝シ繝ウシPATTERN02シ峨↓蟇セ蠢懊☆繧九さ繝シ繝峨′陦ィ遉コ縺輔l繧九%縺ィ + + +
+ + + optionColumnName螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医^PTION01縺ォ蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + optionColumnName螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医^PTION01縺ォ蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + optionColumnName螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘が繝励す繝ァ繝ウ蜷咲ァーシOPTION03シ峨↓蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + labelPattern螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医√ョ繝輔か繝ォ繝医ョ繧ウ繝シ繝牙錐遘ーシ$NAME$シ峨′陦ィ遉コ縺輔l繧九%縺ィ + + + labelPattern螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ョ繝輔か繝ォ繝医ョ繧ウ繝シ繝牙錐遘ーシ$NAME$シ峨′陦ィ遉コ縺輔l繧九%縺ィ + + + labelPattern螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘励Ξ繝シ繧ケ繝帙Ν繝シ$NAME$ - $SHORTNAME$ - $OPTIONALNAME$ - $VALUE$シ峨↓蟇セ蠢懊☆繧九さ繝シ繝牙錐遘ー縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + +
+ + + + + + + + + + + +
diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..8808bbe --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\202\263\343\203\274\343\203\211\345\200\244\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..09a966b --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,16 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..70cc1ae --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,55 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 蠢鬆亥ア樊ァ縺ョ繧ソ繧、繝医Ν縺ォ謖螳壹@縺溷、シ医後ち繧、繝医Ν縲搾シ峨′縲∝・蜉帷判髱「縺ィ遒コ隱咲判髱「縺ァ陦ィ遉コ縺輔l繧九%縺ィ + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧貞性繧縲∝ィ縺ヲ縺ョ螻樊ァ繧定ィュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..8ccdbc3 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..b4c9ba9 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,105 @@ +runTest( + 蠢鬆亥ア樊ァ繝繧ケ繝, + nameAlias螻樊ァ縺ョ繝繧ケ繝, + elementLabelPattern螻樊ァ縺ョ繝繧ケ繝 +); + +/** + * 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝 + */ +function 蠢鬆亥ア樊ァ繝繧ケ繝() { + var target = findTest('required') + , labels = ['繝ゥ繝吶Ν1', '繝ゥ繝吶Ν2' , '繝ゥ繝吶Ν3' ] + , values = ['蛟、1', '蛟、2', '蛟、3'] + , checked = [false, true, false]; + + equal(target.label.text().compact(), '蠢鬆亥ア樊ァ繧呈欠螳', '繧ソ繧、繝医Ν螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→'); + + if (isConfirmationPage()) { + + equal(target.input.text().compact(), '繝ゥ繝吶Ν2', 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + equal(target.error.length, 0, '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + + } else { + equal(target.input.find('input').length, 3, '繝ゥ繧ク繧ェ繝懊ち繝ウ縺3縺、蜃コ蜉帙&繧後k縺薙→'); + + values.each(function (value, index) { + var $radio = $(target.input.find('input:radio')[index]); + + equal($radio.val(), value, 'value螻樊ァ縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + equal($radio.next('label').text().trim(), labels[index], 'label縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + equal($radio.prop('checked'), checked[index], '繝√ぉ繝繧ッ迥カ諷') + }); + + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ縺ッ縺ェ縺縺薙→'); + } +} + +/** + * nameAlias螻樊ァ縺ョ繝繧ケ繝 + */ +function nameAlias螻樊ァ縺ョ繝繧ケ繝() { + var test = { + nonNameAlias: function (testCase) { + var target = findTest(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('input.nablarch_error').length, 3, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + equal(target.error.find('div.nablarch_error').length, 1, '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺帙l繧九%縺ィ'); + } + }, + nameAlias : function (testCase) { + var target = findTest(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('input.nablarch_error').length, 3, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→'); + } + } + }; + + test.nonNameAlias('not-nameAlias'); + test.nonNameAlias('nameAlias-blank'); + test.nameAlias('nameAlias'); +} + +function elementLabelPattern螻樊ァ縺ョ繝繧ケ繝() { + var labels = ['繝ゥ繝吶Ν1', '繝ゥ繝吶Ν2' , '繝ゥ繝吶Ν3' ] + , formatLabels = ['蛟、1 - 繝ゥ繝吶Ν1', '蛟、2 - 繝ゥ繝吶Ν2' , '蛟、3 - 繝ゥ繝吶Ν3' ] + , values = ['蛟、1', '蛟、2', '蛟、3'] + , assertLabel = function (testCase, expectedLabels, confirmExpectedLabel) { + var target = findTest(testCase) + , $radios = target.input.find('input:radio'); + + if (isConfirmationPage()) { + equal(target.input.text().compact(), confirmExpectedLabel, 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + } else { + $radios.each(function (index, radio) { + var $radio = $(radio) + , labelText = $radio.next('label').text().compact(); + + equal($radio.val(), values[index], target.testCase + ':value螻樊ァ縺瑚ィュ螳壹&繧後※縺繧九%縺ィ'); + equal(labelText, expectedLabels[index], target.testCase + ':label縺梧ュ」縺励¥險ュ螳壹&繧後※縺繧九%縺ィ'); + }); + } + }; + + assertLabel('elementLabelPattern-none', labels, '繝ゥ繝吶Ν1'); + assertLabel('elementLabelPattern-blank', labels, '繝ゥ繝吶Ν2'); + assertLabel('elementLabelPattern-not-blank', formatLabels, '蛟、3 - 繝ゥ繝吶Ν3'); +} + +function findTest(testCase) { + var $test = $('span.test-case.' + testCase) + , $text_div = $test.next('.field.radios'); + + return { + testCase: $test.text(), + label: $text_div.children('label'), + input: $text_div.find('div.field-content'), + error: $text_div.find('div.fielderror') + } +} + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..366f669 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,30 @@ + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input.cssClass-test + label { + color: blue; + } + + input.nablarch_error + label { + color: red; + } + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..0f0a0d1 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,75 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Locale" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + + final List> radioList = new ArrayList>() {{ + add(new HashMap() {{ + put("label", "繝ゥ繝吶Ν1"); + put("value", "蛟、1"); + }}); + add(new HashMap() {{ + put("label", "繝ゥ繝吶Ν2"); + put("value", "蛟、2"); + }}); + add(new HashMap() {{ + put("label", "繝ゥ繝吶Ν3"); + put("value", "蛟、3"); + }}); + }}; + + request.setAttribute("radio-list", radioList); + + if (!request.getParameterMap().containsKey("input")) { + + request.setAttribute("server", new HashMap() {{ + put("required", "蛟、2"); + put("labelpattern-none", new String[] {"蛟、1"}); + put("labelpattern-blank", new String[] {"蛟、2"}); + put("labelpattern", new String[] {"蛟、3"}); + }}); + + ApplicationException exception = new ApplicationException(); + exception.addMessages(new ValidationResultMessage("server.nameAlias-test", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-none", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹↑縺励ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-blank", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias縺ォ繝悶Λ繝ウ繧ッ謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + request.setAttribute("nablarch_application_error", exception); + } +%> diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..8bed253 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,115 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ォ縺ッ蜈・蜉帶ャ縺悟コ蜉帙&繧後∫「コ隱咲判髱「縺ォ縺ッ蜈・蜉帛、縺後Λ繝吶Ν縺ィ縺励※蜃コ蜉帙&繧後k縺薙→縲 + + + + + + nameAlias螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ繧呈欠螳壹@縺溷エ蜷医鬆逶ョ縺後ワ繧、繝ゥ繧、繝郁。ィ遉コ縺輔l繧九%縺ィ + + + 繝ゥ繝吶Ν縺梧隼陦後&繧後※繧ゅお繝ゥ繝シ鬆逶ョ縺梧ュ」縺励¥陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + elementLabelPattern螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医‘lementLabelProperty縺ォ謖螳壹@縺溘励Ο繝代ユ繧」縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + elementLabelPattern螻樊ァ繧偵ヶ繝ゥ繝ウ繧ッ縺ィ縺励◆蝣エ蜷医‘lementLabelProperty縺ォ謖螳壹@縺溘励Ο繝代ユ繧」縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + elementLabelPattern螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝医〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..7472b4c --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,5 @@ + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..a8c125f --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,311 @@ +runTest( + require螻樊ァ縺ョ繝繧ケ繝 + , hint螻樊ァ縺ョ繝繧ケ繝 + , readonly螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , listFormat螻樊ァ縺ョ繝繧ケ繝 + , sample螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 +); + +var $all_nodes; + +function setup() { + $all_nodes = $('span.test-case, div.field.radios, div.fielderror, div.note'); +} + +function require螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('required-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , required = 'span.required' + , assertHas = function (testcase) { + if (isConfirmationPage()) { + assertNotHas(testcase); + } else { + equal(testcase.area.find(required).size(), 1, testcase.testcase); + equal($.trim(testcase.area.find(required).text()), '*', testcase.testcase); + } + } + , assertNotHas = function (testcase) { + equal(testcase.area.find(required).size(), 0, testcase.testcase); + }; + + assertNotHas(default_case); + assertNotHas(blank_case); + assertNotHas(false_case); + assertHas(true_case); +} + +function hint螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('hint-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_hint_case = cases[2] + , assertHasHint = function (testcase) { + isConfirmationPage() ? equal(testcase.hint.size(), 0, testcase.testcase) + : equal(testcase.hint.size(), 1, testcase.testcase); + } + , assertHasNotHint = function (testcase) { + equal(testcase.hint.size(), 0, testcase.testcase); + }; + + assertHasNotHint(default_case); + assertHasNotHint(blank_case); + assertHasHint(set_hint_case); +} + +function readonly螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('readonly-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, values) { + var text = $.trim(testcase.area.find('div.field-content').text()) + , datalist = text.split(/\s/); + $.each(datalist, function (i, e) { + equal(e, values[i], testcase.testcase); + }); + } + , assertValues = function (testcase, values) { + return function (i, e) { + equal($(this).val(), values[i], testcase.testcase); + }; + } + , assertReadOnly = function (testcase, values) { + var $input = testcase.area.find('input:radio'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function () { + ok($(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + ok($(this).is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }); + } + , assertNotReadOnly = function (testcase, values) { + var $input = testcase.area.find('input:radio'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function () { + ok(!$(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + ok(!$(this).is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }); + } + , values = ["蛟、1", "蛟、2", "蛟、3"] + , labels = ["繝ゥ繝吶Ν1", "繝ゥ繝吶Ν2", "繝ゥ繝吶Ν3"]; + + if (isConfirmationPage()) { + assertText(default_case, labels); + assertText(blank_case, labels); + assertText(true_case, labels); + assertText(false_case, labels); + } else { + assertNotReadOnly(default_case, values); + assertNotReadOnly(blank_case, values); + assertReadOnly(true_case, values); + assertNotReadOnly(false_case, values); + } +} + +function disabled螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('disabled-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, label) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, label, testcase.testcase); + } + , assertValues = function (testcase, values) { + return function (i, e) { + equal($(this).val(), values[i], testcase.testcase); + }; + } + , assertDisabled = function (testcase, values) { + var $input = testcase.area.find('input:radio'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function () { + ok($(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + }); + } + , assertNotDisabled = function (testcase, values) { + var $input = testcase.area.find('input:radio'); + equal($input.size(), 3, testcase.testcase + "[input size]"); + $input.each(assertValues(testcase, values)) + .each(function () { + ok(!$(this).prop('disabled'), testcase.testcase + "[prop disabled]"); + }); + } + , values = ["蛟、1", "蛟、2", "蛟、3"]; + + if (isConfirmationPage()) { + assertText(default_case, "繝ゥ繝吶Ν2"); + assertText(blank_case, "繝ゥ繝吶Ν3"); + assertText(true_case, ""); + assertText(false_case, "繝ゥ繝吶Ν1"); + } else { + assertNotDisabled(default_case, values); + assertNotDisabled(blank_case, values); + assertDisabled(true_case, values); + assertNotDisabled(false_case, values); + } +} + +function cssClass螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if (isConfirmationPage()) { + return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺"); + } + + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + equal(default_case.area.find('input:radio').size(), 3, default_case.testcase); + equal(default_case.area.find('input:radio.cssClass-test').size(), 0, default_case.testcase); + + equal(blank_case.area.find('input:radio').size(), 3, blank_case.testcase); + equal(blank_case.area.find('input:radio.cssClass-test').size(), 0, blank_case.testcase); + + equal(set_case.area.find('input:radio.cssClass-test').size(), 3, set_case.testcase); +} + +function listFormat螻樊ァ縺ョ繝繧ケ繝() { + + setup(); + var cases = test_for('listFormat-test') + , default_case = cases[0] + , blank_case = cases[1] + , br_case = cases[2] + , div_case = cases[3] + , span_case = cases[4] + , ul_case = cases[5] + , ol_case = cases[6] + , sp_case = cases[7] + , values = ["蛟、1", "蛟、2", "蛟、3"] + , labels = ["繝ゥ繝吶Ν1", "繝ゥ繝吶Ν2", "繝ゥ繝吶Ν3"] + , assertValuesFormat = function (testcase, formatSpec, values) { // 蜈・蜉帷判髱「縺ァ縺ッformat蜀縺ォcheckbox縺後≠繧九%縺ィ縺ァ讀懆ィシ + var $input = testcase.area.find('div.field-content').find(formatSpec).find('input:radio'); + equal($input.size(), values.length, testcase.testcase + " formatspec = " + formatSpec); + $input.each(function (i, e) { + equal($(this).val(), values[i], testcase.testcase); + }); + } + , assertLabelFormat = function (testcase, formatSpec, label) { //遒コ隱咲判髱「縺ァ縺ッformat縺ョ荳ュ縺ォlabel縺ョ繝繧ュ繧ケ繝医′縺ゅk縺薙→縺ァ讀懆ィシ縺吶k縲 + var $label = testcase.area.find('div.field-content').find(formatSpec) + , text = $.trim($label.text()); + equal($label.size(), 1, testcase.testcase); + equal(text, label, testcase.testcase); + } + , assertTextFormat = function (testcase, formatSpec, labels) { + var fieldInput = testcase.area.find('div.field-content').clone() + , nodes; + + fieldInput.find('div.fielderror').remove(); + nodes = fieldInput.html().trim().toLocaleLowerCase().split(formatSpec).remove(""); + + equal(nodes.length, labels.length, testcase.testcase); + $.each(nodes, function (i, htmltext) { + ok(htmltext.match('^\\s*\\s*$'), testcase.testcase); + }); + } + , assertText = function (testcase, label) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, label, testcase.testcase); + }; + + if (isConfirmationPage()) { + assertLabelFormat(default_case, "span", "繝ゥ繝吶Ν2"); + assertLabelFormat(blank_case, "span", "繝ゥ繝吶Ν1"); + assertText(br_case, "繝ゥ繝吶Ν3"); + assertLabelFormat(div_case, "div", "繝ゥ繝吶Ν3"); + assertLabelFormat(span_case, "span", "繝ゥ繝吶Ν3"); + assertLabelFormat(ul_case, "ul > li", "繝ゥ繝吶Ν3"); + assertLabelFormat(ol_case, "ol > li", "繝ゥ繝吶Ν3"); + assertText(sp_case, "繝ゥ繝吶Ν3"); + } else { + assertValuesFormat(default_case, "span", values); + assertValuesFormat(blank_case, "span", values); + assertTextFormat(br_case, "
", labels); + assertValuesFormat(div_case, "div", values); + assertValuesFormat(span_case, "span", values); + assertValuesFormat(ul_case, "ul > li", values); + assertValuesFormat(ol_case, "ol > li", values); + assertTextFormat(sp_case, " ", labels); + } + +} + +function sample螻樊ァ縺ョ繝繧ケ繝() { // server 縺ォ縺ヲ蜃コ蜉帙&繧後k蝣エ蜷医ッ辟。蜉ケ縺ァ縺ゅk縺薙→繧堤「コ隱阪☆繧九 + setup(); + var cases = test_for('sample-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assert = function (testcase) { + var text = testcase.area.find('div.field-content').text(); + ok(text.isBlank(), testcase.testcase); + }; + + assert(default_case); + assert(blank_case); + assert(set_case); +} + +function size螻樊ァ縺ョ繝繧ケ繝() { + setup(); + + var cases = test_for('size-test'), + assertNotSizeClass = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-3'), testCase.testcase); + ok(fieldContent.hasClass('grid-col-10'), testCase.testcase); + }; + + assertNotSizeClass(cases[0]); // size螻樊ァ譛ェ謖螳 + assertNotSizeClass(cases[1]); // size螻樊ァ繝悶Λ繝ウ繧ッ謖螳 + assertSize(cases[2]); // size螻樊ァ繧呈欠螳 +} + +/** + * 蜊倩。後ユ繧ュ繧ケ繝医ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function () { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]) + , $options = $all_nodes.filter(':eq(' + (idx + 2) + '), :eq(' + (idx + 3) + ')') + , error = $options.filter('div.fielderror') + , note = $options.filter('div.note'); + return { + testcase: $.trim($e.text()), + area : $area, + error : error, + hint : note + }; + }); +} diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..02aaf4d --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,31 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input.cssClass-test { + zoom: 110%; + } + input.nablarch_error + label { + color: red; + } + + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..02793c5 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,53 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Locale" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..73adaf9 --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,443 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 繝ゥ繝吶Ν繧偵け繝ェ繝繧ッ縺吶k縺薙→縺ァ繝ゥ繧ク繧ェ繝懊ち繝ウ繧帝∈謚樒憾諷九↓縺ァ縺阪k縺薙→ + + + + + required螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッ蠢鬆医槭シ繧ッ縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ陦ィ遉コ縺輔l縺ェ縺シ + + + + + + hint螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ繧呈欠螳壹@縺溷エ蜷医”int縺悟コ蜉帙&繧後k縺薙→ + + + 繝ゥ繝吶Ν縺梧釜繧願ソ斐@縺溷エ蜷医〒繧ゅ”int螻樊ァ縺悟・蜉帙お繝ェ繧「縺ョ逶エ荳九↓蟾ヲ謠縺医〒蜃コ蜉帙&繧後k縺薙→縲ら「コ隱咲判髱「縺ァ縺ッ蜃コ蜉帙&繧後↑縺縺薙→縲 + + + + + + + readonly螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮荳榊庄縺ォ縺ェ繧九%縺ィ(蛟、縺ッ騾∽ソ。縺輔l遒コ隱咲判髱「縺ォ繝ゥ繝吶Ν陦ィ遉コ縺輔l繧九%縺ィ) + + + readonly螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l縺ェ縺縺薙→シ育「コ隱咲判髱「縺ォ陦ィ遉コ縺輔l縺ェ縺縺薙→シ + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + + + + cssClass螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺ォ謖螳壹@縺歡ssClass縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + listFormat螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医《pan蛹コ蛻繧翫ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + listFormat螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医《pan蛹コ蛻繧翫ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝(br)縺ァ縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝(div)縺ァ縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝(span)縺ァ縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝(ul)縺ァ縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝(ol)縺ァ縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + listFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺溘ヵ繧ゥ繝シ繝槭ャ繝(sp)縺ァ縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ィ縺ェ繧九%縺ィ + + + + + + sample螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ繧呈欠螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝医〒縺ッ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後ー]縺ァ蝗イ縺セ繧後◆蛟、縺碁∈謚樒憾諷九→縺ェ繧九%縺ィ縲 + + + + + + + size螻樊ァ縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + size螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + + +
+ + + + + + + + + + + +
diff --git "a/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..8808bbe --- /dev/null +++ "b/node_modules/nablarch-widget-field-radio/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\343\203\251\343\202\270\343\202\252\343\203\234\343\202\277\343\203\263/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git a/node_modules/nablarch-widget-field-text/package.json b/node_modules/nablarch-widget-field-text/package.json new file mode 100644 index 0000000..871b544 --- /dev/null +++ b/node_modules/nablarch-widget-field-text/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-text" +, "version": "1.0.1" +, "_from" : "nablarch-widget-field-text@1.0.1" +, "dependencies": { + } +, "description": "蜊倩。後ユ繧ュ繧ケ繝亥・蜉帙え繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-text/ui_public/WEB-INF/tags/widget/field/text.tag b/node_modules/nablarch-widget-field-text/ui_public/WEB-INF/tags/widget/field/text.tag new file mode 100644 index 0000000..1c55ad6 --- /dev/null +++ b/node_modules/nablarch-widget-field-text/ui_public/WEB-INF/tags/widget/field/text.tag @@ -0,0 +1,127 @@ +<%-- + 蜊倩。後ユ繧ュ繧ケ繝亥・蜉婉I驛ィ蜩 + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="蜊倩。後ユ繧ュ繧ケ繝亥・蜉幃逶ョ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="domain" description="鬆逶ョ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="readonly" description="邱ィ髮蜿ッ閭ス縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="name" description="HTML縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ蛟、 (逵∫払譎ゅッname螻樊ァ縺ィ蜷後§蛟、繧剃スソ逕ィ縺吶k)" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> +<%@ attribute name="maxlength" description="蜈・蜉帶枚蟄玲焚縺ョ荳企剞" rtexprvalue="true" %> +<%@ attribute name="example" description="蜈キ菴鍋噪縺ェ蜈・蜉帑セ九r陦ィ縺吶ユ繧ュ繧ケ繝(placeholder縺ェ縺ゥ縺ョ蠖「蠑上〒陦ィ遉コ縺吶k)" rtexprvalue="true" %> +<%@ attribute name="nameAlias" description="荳縺、縺ョ繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ォ蟇セ縺励※隍謨ー縺ョ蜈・蜉幃逶ョ繧偵ワ繧、繝ゥ繧、繝郁。ィ遉コ縺吶k蝣エ蜷医↓謖螳壹☆繧具シ磯逶ョ髢鍋イセ譟サ縺ェ縺ゥシ峨りゥウ邏ー縺ォ縺、縺縺ヲ縺ッ縲、pplication Framework隗」隱ャ譖ク縺ョ縲後お繝ゥ繝シ陦ィ遉コ縲阪r蜿らァ縲" rtexprvalue="true" %> +<%@ attribute name="hint" description="蜈・蜉帛螳ケ繧逡呎э轤ケ縺ェ縺ゥ縺ョ陬懷勧繝繧ュ繧ケ繝" rtexprvalue="true" %> +<%@ attribute name="valueFormat" description="蜃コ蜉帙☆繧句、縺ョ繝輔か繝シ繝槭ャ繝域欠螳(遒コ隱咲判髱「逕ィ)" rtexprvalue="true" %> +<%@ attribute name="unit" description="繝繧ュ繧ケ繝亥・蜉幃Κ縺ョ蜿ウ蛛エ縺ォ陦ィ遉コ縺吶k蜊倅ス" rtexprvalue="true" %> +<%------------------------------------------------------%> + +<%---------------------- 螻樊ァ螳夂セゥシ医Ο繝シ繧ォ繝ォ繝ャ繝ウ繝繝ェ繝ウ繧ー逕ィシ ----------------------%> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%------------------------------------------------------%> + +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繝繧ュ繧ケ繝亥・蜉幃逶ョ縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="formatSpec" description="邱ィ髮莉墓ァ倥↓髢「縺吶k隱ャ譏" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%------------------------------------------------------%> + + + + + + + + + + + + <%-- 繝輔か繝シ繝槭ャ繝亥所縺ウmaxlength譛ェ謖螳壹ョ蝣エ蜷 --%> + + + + <%-- 繝輔か繝シ繝槭ャ繝医ョ縺ソ謖螳壽怏繧翫ョ蝣エ蜷 --%> + + + + <%-- maxlength縺ョ縺ソ謖螳壽怏繧翫ョ蝣エ蜷 --%> + + + + <%-- 繝輔か繝シ繝槭ャ繝亥所縺ウmaxlength縺梧欠螳壽怏繧翫ョ蝣エ蜷 --%> + + + + <%-- 蜊倅ス肴欠螳壹′縺ゅk蝣エ蜷医ッ縲∝腰菴阪ョ陦ィ遉コ鬆伜沺繧貞コ蜉 --%> + + + + + + + + + + + + + + + + + + diff --git a/node_modules/nablarch-widget-field-text/ui_public/css/field/text.less b/node_modules/nablarch-widget-field-text/ui_public/css/field/text.less new file mode 100644 index 0000000..321ba68 --- /dev/null +++ b/node_modules/nablarch-widget-field-text/ui_public/css/field/text.less @@ -0,0 +1,20 @@ +/** + * field:text逕ィ縺ョ繧ケ繧ソ繧、繝ォ螳夂セゥ + */ +#content { + .field { + .field-content { + // 蜊倅ス崎。ィ遉コ縺ゅj縺ョ蜈・蜉帶ャ + // 蜊倅ス榊縺ョ2繧ー繝ェ繝繝牙陦ィ遉コ鬆伜沺繧堤強縺上☆繧 + input.unit { + .grid-col(@inputGridSpan - @unitGridSpan); + } + + // 蜊倅ス崎。ィ遉コ鬆伜沺(2繧ー繝ェ繝繝) + span.unit { + .grid-col(@unitGridSpan); + float: none; + } + } + } +} diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..f9efcd7 --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,41 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + /********************* + id螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input#server\.id-none { + background-color: #7ec78f; + } + + input#server\.id-blank { + background-color: #a7c788 + } + + input#test-id { + border-color: red; + } + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input.cssClass-test { + border-color: blue; + } + + + diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..873de89 --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,67 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..4106f3b --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,57 @@ + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 蠢鬆亥ア樊ァ縺ョ繧ソ繧、繝医Ν縺ォ謖螳壹@縺溷、シ医後ち繧、繝医Ν縲搾シ峨′縲∝・蜉帷判髱「縺ィ遒コ隱咲判髱「縺ァ陦ィ遉コ縺輔l繧九%縺ィ + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧貞性繧縲∝ィ縺ヲ縺ョ螻樊ァ繧定ィュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..d6b4f54 --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,7 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..bc83435 --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,63 @@ +runTest( + 蠢鬆亥ア樊ァ繝繧ケ繝, + nameAlias螻樊ァ縺ョ繝繧ケ繝 +); + +/** + * 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝 + */ +function 蠢鬆亥ア樊ァ繝繧ケ繝() { + + var target = find_text('required'); + + equal(target.label.text().compact(), '蠢鬆亥ア樊ァシ壹ち繧、繝医Ν', '繧ソ繧、繝医Ν螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→'); + + if (isConfirmationPage()) { + equal($.trim(target.input.html()), '蠢鬆亥ア樊ァ繧呈欠螳', 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + equal(target.error.length, 0, '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal($.trim(target.input.find('input').val()), '蠢鬆亥ア樊ァ繧呈欠螳', 'input縺ョvalue螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→'); + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ縺ッ縺ェ縺縺薙→'); + } +} + +/** + * nameAlias螻樊ァ縺ョ繝繧ケ繝 + */ +function nameAlias螻樊ァ縺ョ繝繧ケ繝() { + var test = { + nonNameAlias: function (testCase) { + var target = find_text(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('input.nablarch_error').length, 1, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + ok(target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺帙l繧九%縺ィ'); + } + }, + nameAlias: function(testCase) { + var target = find_text(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('input.nablarch_error').length, 1, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→'); + } + } + }; + + test.nonNameAlias('not-nameAlias'); + test.nonNameAlias('nameAlias-blank'); + test.nameAlias('nameAlias'); +} + +function find_text(test_case) { + var $test = $('span.test-case.' + test_case) + , $text_div = $test.next('.field.text'); + + return { + label: $text_div.find('label'), + input: $text_div.find('div.field-content'), + error: $text_div.find('div.fielderror') + } +} diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..c7934c4 --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,18 @@ + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..472e6a9 --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,50 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + if (!request.getParameterMap().containsKey("server.required")) { + request.setAttribute("server", new HashMap() {{ + put("required", "蠢鬆亥ア樊ァ繧呈欠螳"); + }}); + + ApplicationException exception = new ApplicationException(); + exception.addMessages(new ValidationResultMessage("server.nameAlias-test", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-none", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias謖螳壹↑縺励ョ繝繧ケ繝"; + } + }, new Object[0])); + exception.addMessages(new ValidationResultMessage("server.nameAlias-blank", new StringResource() { + @Override + public String getId() { + return "name-alias"; + } + + @Override + public String getValue(Locale locale) { + return "nameAlias縺ォ繝悶Λ繝ウ繧ッ謖螳壹ョ繝繧ケ繝"; + } + }, new Object[0])); + request.setAttribute("nablarch_application_error", exception); + } +%> + diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..bde6afa --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,59 @@ + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ォ縺ッ蜈・蜉帶ャ縺悟コ蜉帙&繧後∫「コ隱咲判髱「縺ォ縺ッ蜈・蜉帛、縺後Λ繝吶Ν縺ィ縺励※蜃コ蜉帙&繧後k縺薙→縲 + + + + + + nameAlias螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + nameAlias螻樊ァ繧呈欠螳壹@縺溷エ蜷医鬆逶ョ縺後ワ繧、繝ゥ繧、繝郁。ィ遉コ縺輔l繧九%縺ィ + + + 繝ゥ繝吶Ν縺梧隼陦後&繧後※繧ゅお繝ゥ繝シ鬆逶ョ縺梧ュ」縺励¥陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..f9db739 --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..5a4e33c --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,326 @@ +runTest( + require螻樊ァ縺ョ繝繧ケ繝 + , hint螻樊ァ縺ョ繝繧ケ繝 + , readonly螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , maxlength螻樊ァ縺ョ繝繧ケ繝 + , example螻樊ァ縺ョ繝繧ケ繝 + , valueFormat螻樊ァ縺ョ繝繧ケ繝 + , sample螻樊ァ縺ョ繝繧ケ繝 + , unit螻樊ァ縺ョ繝繧ケ繝 + , titleSize縺ィinputSize縺ョ繝繧ケ繝 +); + +var $all_nodes; + +function setup() { + $all_nodes = $('span.test-case, div.field.text, div.fielderror, div.note'); +} + +function require螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('required-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , required = 'span.required' + , assertHas = function(testcase) { + if(isConfirmationPage()) { assertNotHas(testcase); + } else{ + equal(testcase.area.find(required).size(), 1, testcase.testcase); + equal($.trim(testcase.area.find(required).text()), '*', testcase.testcase); + } + } + , assertNotHas = function(testcase) { + equal(testcase.area.find(required).size(), 0, testcase.testcase); + }; + + assertNotHas(default_case); + assertNotHas(blank_case); + assertNotHas(false_case); + assertHas(true_case); +} + +function hint螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('hint-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_hint_case = cases[2] + , assertHasHint = function(testcase) { + isConfirmationPage() ? equal(testcase.hint.size(), 0, testcase.testcase) + : equal(testcase.hint.size(), 1, testcase.testcase); + } + , assertHasNotHint = function(testcase) { + equal(testcase.hint.size(), 0, testcase.testcase); + }; + + assertHasNotHint(default_case); + assertHasNotHint(blank_case); + assertHasHint(set_hint_case); +} + +function readonly螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('readonly-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, value) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, value, testcase.testcase); + } + , assertReadOnly = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase, value);} + var $input = testcase.area.find('input:text'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok($input.prop('disabled'), testcase.testcase + "[prop disabled]"); + ok($input.is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + } + , assertNotReadOnly = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase, value); } + var $input = testcase.area.find('input:text'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok(!$input.prop('disabled'), testcase.testcase + "[prop disabled]"); + ok(!$input.is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }; + + assertNotReadOnly(default_case, "readonly螻樊ァ謖螳壹↑縺"); + assertNotReadOnly(blank_case, "readonly螻樊ァ縺ォ遨コ"); + assertReadOnly(true_case, "邱ィ髮荳榊庄"); + assertNotReadOnly(false_case, "邱ィ髮蜿ッ閭ス"); +} + +function disabled螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('disabled-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, value) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, value, testcase.testcase); + } + , assertDisabled = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase, ""); }// 遒コ隱咲判髱「縺ァ縺ッ陦ィ遉コ辟。縺 + var $input = testcase.area.find('input:text'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok($input.prop('disabled'), testcase.testcase + "[prop disabled]"); + } + , assertNotDisabled = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase, value); } + var $input = testcase.area.find('input:text'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok(!$input.prop('disabled'), testcase.testcase + "[prop disabled]"); + }; + + assertNotDisabled(default_case, "disabled螻樊ァ謖螳壹↑縺"); + assertNotDisabled(blank_case, "disabled螻樊ァ縺ォ遨コ"); + assertDisabled(true_case, "繧オ繝シ繝舌↓蛟、縺碁∽ソ。縺輔l縺ェ縺"); + assertNotDisabled(false_case, "繧オ繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧"); +} + +function id螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('id-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + var default_input = default_case.area.find('input:text'); + equal(default_input.attr('id'), default_input.attr('name'), default_case.testcase); + + var blank_input = blank_case.area.find('input:text'); + equal(blank_input.attr('id'), blank_input.attr('name'), blank_case.testcase); + + var set_input = set_case.area.find('input:text'); + notEqual(set_input.attr('id'), set_input.attr('name'), set_case.testcase); + equal(set_input.attr('id'), 'test-id', set_case.testcase); +} + +function cssClass螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + ok(!default_case.area.find('input:text').is('.cssClass-test'), default_case.testcase); + ok(!blank_case.area.find('input:text').is('.cssClass-test'), blank_case.testcase); + ok(set_case.area.find('input:text').is('.cssClass-test'), set_case.testcase); +} + +function maxlength螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('maxlength-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + ok(!default_case.area.find('input:text').attr('maxlength'), default_case.testcase); + ok(!blank_case.area.find('input:text').attr('maxlength'), blank_case.testcase); + ok(set_case.area.find('input:text').attr('maxlength'), set_case.testcase); + equal(set_case.area.find('input:text').attr('maxlength'), 5, set_case.testcase); +} + +function example螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('example-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assertText = function (testcase) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, "", testcase.testcase); + } + , assertHasPlaceholder = function assertExample(testcase, placeholder) { + if(isConfirmationPage()) {return assertText(testcase);} + var $input = testcase.area.find('input:text'); + equal($input.val(), "", testcase.testcase + "[val()]"); + equal($input.attr('placeholder'), placeholder, testcase.testcase); + } + , assertNotHasPlaceholder = function(testcase) { + if(isConfirmationPage()) {return assertText(testcase);} + var $input = testcase.area.find('input:text'); + equal($input.val(), "", testcase.testcase + "[val()]"); + ok(!$input.attr('placeholder'), testcase.testcase); + }; + + assertNotHasPlaceholder(default_case); + assertNotHasPlaceholder(blank_case); + assertHasPlaceholder(set_case, "繧オ繝ウ繝励Ν"); + +} +function valueFormat螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('valueFormat-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assertText = function (testcase, value) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, value, testcase.testcase); + } + , assertValue = function (testcase, value) { + if (isConfirmationPage()) {return assertText(testcase, value);} + equal(testcase.area.find('input:text').val(), value, testcase.testcase); + }; + + assertValue(default_case, "20131007"); + assertValue(blank_case, "20131007"); + assertValue(set_case, "2013蟷エ10譛07譌・"); + +} +function sample螻樊ァ縺ョ繝繧ケ繝() { // server 縺ォ縺ヲ蜃コ蜉帙&繧後k蝣エ蜷医ッ辟。蜉ケ縺ァ縺ゅk縺薙→繧堤「コ隱阪☆繧九 + setup(); + var cases = test_for('sample-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assert = function(testcase) { + if (isConfirmationPage()) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, "", testcase.testcase); + } else { + equal(testcase.area.find('input:text').val(), "", testcase.testcase); + } + }; + + assert(default_case); + assert(blank_case); + assert(set_case); +} + +function unit螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('unit-test') + , assertUnitNothing = function (testCase) { + ok(!testCase.area.find('span.unit').is('*'), testCase.testcase); + } + , assert = function (testCase, expected) { + equal($.trim(testCase.area.find('span.unit').html()), expected, testCase.testcase); + } + , assertValueEmpty = function (testCase, expected) { + if (isConfirmationPage()) { + ok(!testCase.area.find('span.unit').is('*'), expected, testCase.testcase); + } else { + equal($.trim(testCase.area.find('span.unit').html()), expected, testCase.testcase); + } + }; + + assertUnitNothing(cases[0]); // unit螻樊ァ譛ェ謖螳 + assertUnitNothing(cases[1]); // unit螻樊ァ繝悶Λ繝ウ繧ッ + assert(cases[2], '蜀'); // unit謖螳(蜀) + assert(cases[3], '蜊蜀'); // unit謖螳(蜊蜀) + assert(cases[4], '荳蜀'); // unit謖螳(荳蜀) + assert(cases[5], '逋セ荳蜀'); // unit謖螳(逋セ荳蜀) + assertValueEmpty(cases[6], '荳蜀'); // 蛟、縺後ヶ繝ゥ繝ウ繧ッシ育「コ隱咲判髱「縺ァ縺ッ蜊倅ス阪′蜃コ蜉帙&繧後↑縺シ +} + +function titleSize縺ィinputSize縺ョ繝繧ケ繝() { + setup(); + + var cases = test_for('size-test'), + assertSizeNone = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase + 'シ壹ち繧、繝医Ν驛ィ(label)縺ォgrid-col邉サ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後※縺縺ェ縺縺薙→'); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase + 'シ壼・蜉幃Κ(fieldContent)縺ォgrid-col邉サ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後※縺縺ェ縺縺薙→'); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-13'), testCase.testcase + 'シ壹ち繧、繝医Ν驛ィ(label)縺ォ謖螳壹@縺溘し繧、繧コ - 2縺ョ繧ー繝ェ繝繝画焚縺梧欠螳壹&繧後k縺薙→'); + ok(fieldContent.hasClass('grid-col-20'), testCase.testcase + 'シ壼・蜉幃Κ(div.field-content)縺ォ謖螳壹@縺溘し繧、繧コ縺ョ繧ー繝ェ繝繝画焚縺梧欠螳壹&繧後k縺薙→'); + } + ; + + assertSizeNone(cases[0]); // size譛ェ謖螳 + assertSizeNone(cases[1]); // size繝悶Λ繝ウ繧ッ + assertSize(cases[2]); // size謖螳 +} + + +/** + * 蜊倩。後ユ繧ュ繧ケ繝医ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]) + , $options = $all_nodes.filter(':eq(' + (idx + 2) + '), :eq(' + (idx + 3) + ')') + , error = $options.filter('div.fielderror') + , note = $options.filter('div.note'); + return { + testcase : $.trim($e.text()), + area : $area, + error : error, + hint : note + }; + }); +} + diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..1e0d802 --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,42 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + /********************* + id螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input#server\.id-none { + background-color: #7ec78f; + } + + input#server\.id-blank { + background-color: #a7c788 + } + + input#test-id { + border-color: red; + } + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input.cssClass-test { + border-color: blue; + } + + + diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..29dc1aa --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,73 @@ +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..c40fcf3 --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,374 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + required螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッ蠢鬆医槭シ繧ッ縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ陦ィ遉コ縺輔l縺ェ縺シ + + + + + + hint螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + hint螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + 蜈・蜉帷判髱「縺ァ縺ッ縲”int螻樊ァ縺ォ謖螳壹@縺溷、縺悟コ蜉帙&繧後k縺薙→縲ら「コ隱咲判髱「縺ァ縺ッ蜃コ蜉帙&繧後↑縺縺薙→縲 + + + 繝ゥ繝吶Ν縺梧釜繧願ソ斐@縺溷エ蜷医〒繧ゅ”int螻樊ァ縺悟・蜉帙お繝ェ繧「縺ョ逶エ荳九↓蟾ヲ謠縺医〒蜃コ蜉帙&繧後k縺薙→縲ら「コ隱咲判髱「縺ァ縺ッ蜃コ蜉帙&繧後↑縺縺薙→縲 + + + + + + readonly螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮荳榊庄縺ォ縺ェ繧九%縺ィ(蛟、縺ッ騾∽ソ。縺輔l遒コ隱咲判髱「縺ォ繝ゥ繝吶Ν陦ィ遉コ縺輔l繧九%縺ィ) + + + readonly螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l縺ェ縺縺薙→シ育「コ隱咲判髱「縺ォ陦ィ遉コ縺輔l縺ェ縺縺薙→シ + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + id螻樊ァ縺檎ゥコ譁蟄怜励ョ蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + id螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョid縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + cssClass螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ィ縺ェ繧九%縺ィ(繧ス繝シ繧ケ縺九i遒コ隱) + + + cssClass螻樊ァ繧呈欠螳壹@縺溷エ蜷医…lass螻樊ァ縺ォ謖螳壹@縺歡ssClass縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + maxlength螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医[axlength螻樊ァ縺悟コ蜉帙&繧後↑縺縺薙→(繧ス繝シ繧ケ縺九i遒コ隱搾シ + + + maxlength螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医[axlength螻樊ァ縺悟コ蜉帙&繧後↑縺縺薙→(繧ス繝シ繧ケ縺九i遒コ隱搾シ + + + maxlength螻樊ァ繧呈欠螳壹@縺溷エ蜷医[axlength螻樊ァ縺ォ謖螳壹@縺溷、縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + example螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√励Ξ繝シ繧ケ繝帙Ν繝縺ィ縺励※菴輔b陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + example螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√励Ξ繝シ繧ケ繝帙Ν繝縺ィ縺励※菴輔b陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + example螻樊ァ繧呈欠螳壹@縺溷エ蜷医√励Ξ繝シ繧ケ繝帙Ν繝縺ィ縺励※縺昴ョ蛟、縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + + + valueFormat螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ヵ繧ゥ繝シ繝槭ャ繝医&繧後★縺ォ蛟、縺悟コ蜉帙&繧後k縺薙→ + + + valueFormat螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ヵ繧ゥ繝シ繝槭ャ繝医&繧後★縺ォ蛟、縺悟コ蜉帙&繧後k縺薙→ + + + valueFormat螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ繝輔か繝シ繝槭ャ繝医↓蠕薙>蛟、縺後ヵ繧ゥ繝シ繝槭ャ繝医&繧後※蜃コ蜉帙&繧後k縺薙→ + + + + + + sample螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + sample螻樊ァ繧呈欠螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝医〒縺ッ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後k縺薙→ + + + + + + unit螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ユ繧ュ繧ケ繝医懊ャ繧ッ繧ケ縺ョ蜿ウ蛛エ縺ォ蜊倅ス阪ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + + unit螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ユ繧ュ繧ケ繝医懊ャ繧ッ繧ケ縺ョ蜿ウ蛛エ縺ォ蜊倅ス阪ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + + + unit螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後ユ繧ュ繧ケ繝医懊ャ繧ッ繧ケ縺ョ蜿ウ蛛エ縺ォ蜃コ蜉帙&繧後k縺薙→
+
+ 窶サvalueFormat縺翫h縺ウmaxlength縺ョ謖螳壹ッ縺ェ縺 +
+ + + + + unit螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後ユ繧ュ繧ケ繝医懊ャ繧ッ繧ケ縺ョ蜿ウ蛛エ縺ォ蜃コ蜉帙&繧後k縺薙→
+
+ 窶サvalueFormat螻樊ァ繧ょ酔譎ゅ↓謖螳 +
+ + + + + unit螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後ユ繧ュ繧ケ繝医懊ャ繧ッ繧ケ縺ョ蜿ウ蛛エ縺ォ蜃コ蜉帙&繧後k縺薙→
+
+ 窶サmaxlength螻樊ァ繧ょ酔譎ゅ↓謖螳 +
+ + + + + unit螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ蛟、縺後ユ繧ュ繧ケ繝医懊ャ繧ッ繧ケ縺ョ蜿ウ蛛エ縺ォ蜃コ蜉帙&繧後k縺薙→
+
+ 窶サvalueFormat縺ィmaxlength螻樊ァ繧ょ酔譎ゅ↓謖螳 +
+ + + + + unit螻樊ァ繧呈欠螳壹@縺溷エ蜷医〒繧ゅ∝、縺梧悴蜈・蜉帙ョ蝣エ蜷育「コ隱咲判髱「縺ァ蜊倅ス阪ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + +
+ + + + titleSize縺ィinputSize縺ッ縺ィ繧ゅ↓譛ェ謖螳 + + + + + + titleSize縺ィinputSize縺ィ繧ゅ↓繝悶Λ繝ウ繧ッ謖螳 + + + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + +
+ + + + + + + + + + +
diff --git "a/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..70d1c75 --- /dev/null +++ "b/node_modules/nablarch-widget-field-text/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\345\215\230\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,7 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git a/node_modules/nablarch-widget-field-textarea/package.json b/node_modules/nablarch-widget-field-textarea/package.json new file mode 100644 index 0000000..5619748 --- /dev/null +++ b/node_modules/nablarch-widget-field-textarea/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-field-textarea" +, "version": "1.0.0" +, "_from" : "nablarch-widget-field-textarea@1.0.0" +, "dependencies": { + } +, "description": "隍謨ー陦悟・蜉幃逶ョ繧ヲ繧」繧ク繧ァ繝繝" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-field-textarea/ui_public/WEB-INF/tags/widget/field/textarea.tag b/node_modules/nablarch-widget-field-textarea/ui_public/WEB-INF/tags/widget/field/textarea.tag new file mode 100644 index 0000000..e902101 --- /dev/null +++ b/node_modules/nablarch-widget-field-textarea/ui_public/WEB-INF/tags/widget/field/textarea.tag @@ -0,0 +1,72 @@ +<%-- + 隍謨ー陦後ユ繧ュ繧ケ繝亥・蜉婉I驛ィ蜩 + @author Ryo Tanaka +--%> + +<%@tag pageEncoding="UTF-8" description="繝繧ュ繧ケ繝医お繝ェ繧「鬆逶ョ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> + +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="title" description="鬆逶ョ蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="domain" description="鬆逶ョ縺ョ繝峨Γ繧、繝ウ蝙" rtexprvalue="true" %> +<%@ attribute name="required" description="蠢鬆磯逶ョ縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="readonly" description="邱ィ髮蜿ッ閭ス縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="disabled" description="繧オ繝シ繝舌↓蟇セ縺吶k蜈・蜉帛、縺ョ騾∽ソ。繧呈椛蛻カ縺吶k縺九←縺縺" rtexprvalue="true" %> +<%@ attribute name="name" description="HTML縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ蛟、 (逵∫払譎ゅッname螻樊ァ縺ィ蜷後§蛟、繧剃スソ逕ィ縺吶k)" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> +<%@ attribute name="maxlength" description="蜈・蜉帶枚蟄玲焚縺ョ荳企剞" rtexprvalue="true" %> +<%@ attribute name="example" description="蜈キ菴鍋噪縺ェ蜈・蜉帑セ九r陦ィ縺吶ユ繧ュ繧ケ繝(placeholder縺ェ縺ゥ縺ョ蠖「蠑上〒陦ィ遉コ縺吶k)" rtexprvalue="true" %> +<%@ attribute name="nameAlias" description="荳縺、縺ョ繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ォ蟇セ縺励※隍謨ー縺ョ蜈・蜉幃逶ョ繧偵ワ繧、繝ゥ繧、繝郁。ィ遉コ縺吶k蝣エ蜷医↓謖螳壹☆繧具シ磯逶ョ髢鍋イセ譟サ縺ェ縺ゥシ峨りゥウ邏ー縺ォ縺、縺縺ヲ縺ッ縲、pplication Framework隗」隱ャ譖ク縺ョ縲後お繝ゥ繝シ陦ィ遉コ縲阪r蜿らァ縲" rtexprvalue="true" %> +<%@ attribute name="hint" description="蜈・蜉帛螳ケ繧逡呎э轤ケ縺ェ縺ゥ縺ョ陬懷勧繝繧ュ繧ケ繝" rtexprvalue="true" %> +<%@ attribute name="sample" description="繝繧ケ繝育畑縺ョ繝繝溘シ蜈・蜉帛、(譛ャ逡ェ蜍穂ス懊〒縺ッ菴ソ逕ィ縺輔l縺ェ縺)" rtexprvalue="true" %> +<%---------------------- 蛟句挨螻樊ァ ----------------------%> +<%@ attribute name="rows" description="陦ィ遉コ陦梧焚(繝繝輔か繝ォ繝:4)" rtexprvalue="true" %> +<%---------------------- 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ ----------------------%> +<%@ attribute name="dataFrom" description="陦ィ遉コ縺吶k繝繝シ繧ソ縺ョ蜿門セ怜シ育判髱「鬆逶ョ螳夂セゥ縺ォ險倩シ峨☆繧九√瑚。ィ遉コ諠蝣ア蜿門セ怜縲.縲瑚。ィ遉コ鬆逶ョ蜷阪阪ョ蠖「蠑上〒險ュ螳壹☆繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繝繧ュ繧ケ繝医お繝ェ繧「縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「鬆逶ョ螳夂セゥ縺ョ鬆逶ョ螳夂セゥ荳隕ァ縺ァ縲∝y閠谺縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="initialValueDesc" description="蛻晄悄陦ィ遉コ蜀螳ケ縺ォ髢「縺吶k隱ャ譏弱" %> + +<%---------------------- 繝槭Ν繝√Ξ繧、繧「繧ヲ繝育畑螻樊ァ ----------------------%> +<%@ attribute name="titleSize" description="繧ソ繧、繝医Ν驛ィ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%@ attribute name="inputSize" description="蜈・蜉幃Κ縺ョ蟷シ医げ繝ェ繝繝画焚シ俄サ繝槭Ν繝√Ξ繧、繧「繧ヲ繝医Δ繝シ繝峨ョ蝣エ蜷医↓菴ソ逕ィ縺吶k縲" rtexprvalue="true" %> +<%------------------------------------------------------%> + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..52ff236 --- /dev/null +++ "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,40 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + /********************* + id螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input#server\.id-none { + background-color: #7ec78f; + } + + input#server\.id-blank { + background-color: #a7c788 + } + + input#test-id { + border-color: red; + } + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + input.cssClass-test { + border-color: blue; + } + + + diff --git "a/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..e030e19 --- /dev/null +++ "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,55 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 蠢鬆亥ア樊ァ縺ョ繧ソ繧、繝医Ν縺ォ謖螳壹@縺溷、シ医後ち繧、繝医Ν縲搾シ峨′縲∝・蜉帷判髱「縺ィ遒コ隱咲判髱「縺ァ陦ィ遉コ縺輔l繧九%縺ィ + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧貞性繧縲∝ィ縺ヲ縺ョ螻樊ァ繧定ィュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..d6b4f54 --- /dev/null +++ "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,7 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git "a/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..df913d6 --- /dev/null +++ "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,63 @@ +runTest( + 蠢鬆亥ア樊ァ繝繧ケ繝, + nameAlias螻樊ァ縺ョ繝繧ケ繝 +); + +/** + * 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝 + */ +function 蠢鬆亥ア樊ァ繝繧ケ繝() { + + var target = find_text('required'); + + equal(target.label.text().compact(), '蠢鬆亥ア樊ァ繧呈欠螳', '繧ソ繧、繝医Ν螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→'); + + if (isConfirmationPage()) { + equal(target.input.text().trim(), '蠢鬆亥ア樊ァ繧呈欠螳', 'div縺ョ繝懊ョ繧」驛ィ縺ォ蜈・蜉帛、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ'); + equal(target.error.length, 0, '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal($.trim(target.input.find('textarea').val()), '蠢鬆亥ア樊ァ繧呈欠螳', 'textarea縺ョbody驛ィ縺ォ蛟、縺悟コ蜉帙〒縺阪※縺繧九%縺ィ'); + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ縺ッ縺ェ縺縺薙→'); + } +} + +/** + * nameAlias螻樊ァ縺ョ繝繧ケ繝 + */ +function nameAlias螻樊ァ縺ョ繝繧ケ繝() { + var test = { + nonNameAlias: function (testCase) { + var target = find_text(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('textarea.nablarch_error').length, 1, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + ok(target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺帙l繧九%縺ィ'); + } + }, + nameAlias: function(testCase) { + var target = find_text(testCase); + if (isConfirmationPage()) { + ok(!target.error.is('*'), '繧ィ繝ゥ繝シ陦ィ遉コ鬆伜沺縺昴ョ繧ゅョ縺悟ュ伜惠縺励↑縺縺薙→'); + } else { + equal(target.input.find('textarea.nablarch_error').length, 1, 'nablarch_error繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後k縺薙→'); + ok(!target.error.find('div.nablarch_error').is('*'), '繧ィ繝ゥ繝シ繝。繝繧サ繝シ繧ク縺ッ陦ィ遉コ縺輔l縺ェ縺縺薙→'); + } + } + }; + + test.nonNameAlias('not-nameAlias'); + test.nonNameAlias('nameAlias-blank'); + test.nameAlias('nameAlias'); +} + +function find_text(test_case) { + var $test = $('span.test-case.' + test_case) + , $text_div = $test.next('.field.textarea'); + + return { + label: $text_div.find('label'), + input: $text_div.find('div.field-content'), + error: $text_div.find('div.fielderror') + } +} diff --git "a/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..87357b2 --- /dev/null +++ "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,18 @@ + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + diff --git "a/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..5b09810 --- /dev/null +++ "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,44 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.Message" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> + +<% + if (!request.getParameterMap().containsKey("input")) { + request.setAttribute("server", new HashMap() {{ + put("required", "蠢鬆亥ア樊ァ繧呈欠螳"); + put("errorName", "繧ィ繝ゥ繝シ鬆逶ョ"); + put("nameAlias-none", "nameAlias螻樊ァ譛ェ謖螳"); + put("nameAlias", "nameAlias繧呈欠螳"); + }}); + } + ApplicationException exception = new ApplicationException(); + Message message1 = new ValidationResultMessage("server.nameAlias", new StringResource() { + @Override + public String getId() { + return "error1"; + } + + @Override + public String getValue(Locale locale) { + return "name螻樊ァ繧ゅ@縺上ッnameAlias螻樊ァ縺ォ server.nameAlias 縺梧欠螳壹&繧後※縺繧矩逶ョ縺後お繝ゥ繝シ陦ィ遉コ縺ォ縺ェ繧九%縺ィ縲"; + } + }, new String[0]); + exception.addMessages(message1); + Message message2 = new ValidationResultMessage("server.errorName", new StringResource() { + @Override + public String getId() { + return "error2"; + } + + @Override + public String getValue(Locale locale) { + return "name螻樊ァ繧ゅ@縺上ッnameAlias螻樊ァ縺ォ server.errorName 縺梧欠螳壹&繧後※縺繧矩逶ョ縺後お繝ゥ繝シ陦ィ遉コ縺ォ縺ェ繧翫√%縺ョ繝。繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ縲"; + } + }, new String[0]); + exception.addMessages(message2); + request.setAttribute("nablarch_application_error", exception); +%> diff --git "a/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..dd81915 --- /dev/null +++ "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,65 @@ +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 蠢鬆亥ア樊ァ繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ォ縺ッ蜈・蜉帶ャ縺悟コ蜉帙&繧後∫「コ隱咲判髱「縺ォ縺ッ蜈・蜉帛、縺後Λ繝吶Ν縺ィ縺励※蜃コ蜉帙&繧後k縺薙→縲 + + + + + + nameAlias螻樊ァ繧呈欠螳壹@縺ェ縺九▲縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + nameAlias螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医]ame螻樊ァ縺ォ蟇セ蠢懊☆繧九Γ繝繧サ繝シ繧ク縺瑚。ィ遉コ縺輔l繧九%縺ィ + + + + nameAlias螻樊ァ繧呈欠螳壹@縺溷エ蜷医鬆逶ョ縺後ワ繧、繝ゥ繧、繝郁。ィ遉コ縺輔l繧九%縺ィ + + + + 繝ゥ繝吶Ν縺梧隼陦後&繧後※繧ゅお繝ゥ繝シ鬆逶ョ縺梧ュ」縺励¥陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..f9db739 --- /dev/null +++ "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\202\265\343\202\244\343\203\211\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git "a/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..83387fb --- /dev/null +++ "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,294 @@ +runTest( + required螻樊ァ縺ョ繝繧ケ繝 + , readonly螻樊ァ縺ョ繝繧ケ繝 + , disabled螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , maxlength螻樊ァ縺ョ繝繧ケ繝 + , example螻樊ァ縺ョ繝繧ケ繝 + , rows螻樊ァ縺ョ繝繧ケ繝 + , hint螻樊ァ縺ョ繝繧ケ繝 + , sample螻樊ァ縺ョ繝繧ケ繝 + , size螻樊ァ縺ョ繝繧ケ繝 +); + +var $all_nodes; + +function setup() { + $all_nodes = $('span.test-case, div.field.textarea, div.fielderror, div.note'); +} + + +function required螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('required-test') + , default_case = cases[0] + , blank_case = cases[1] + , false_case = cases[2] + , true_case = cases[3] + , required = 'span.required' + , assertHas = function(testcase) { + if(isConfirmationPage()) { assertNotHas(testcase); + } else{ + equal(testcase.area.find(required).size(), 1, testcase.testcase); + equal($.trim(testcase.area.find(required).text()), '*', testcase.testcase); + } + } + , assertNotHas = function(testcase) { + equal(testcase.area.find(required).size(), 0, testcase.testcase); + }; + + assertNotHas(default_case); + assertNotHas(blank_case); + assertNotHas(false_case); + assertHas(true_case); +} + +function hint螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('hint-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_hint_case = cases[2] + , assertHasHint = function(testcase) { + isConfirmationPage() ? equal(testcase.hint.size(), 0, testcase.testcase) + : equal(testcase.hint.size(), 1, testcase.testcase); + } + , assertHasNotHint = function(testcase) { + equal(testcase.hint.size(), 0, testcase.testcase); + }; + + assertHasNotHint(default_case); + assertHasNotHint(blank_case); + assertHasHint(set_hint_case); +} + +function readonly螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('readonly-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, value) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, value, testcase.testcase); + } + , assertReadOnly = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase, value);} + var $input = testcase.area.find('textarea'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok($input.prop('disabled'), testcase.testcase + "[prop disabled]"); + ok($input.is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + } + , assertNotReadOnly = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase, value); } + var $input = testcase.area.find('textarea'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok(!$input.prop('disabled'), testcase.testcase + "[prop disabled]"); + ok(!$input.is('.nablarch_readonly'), testcase.testcase + "[marker readonly]"); + }; + + assertNotReadOnly(default_case, "readonly螻樊ァ謖螳壹↑縺"); + assertNotReadOnly(blank_case, "readonly螻樊ァ縺ォ遨コ"); + assertReadOnly(true_case, "邱ィ髮荳榊庄"); + assertNotReadOnly(false_case, "邱ィ髮蜿ッ閭ス"); +} + +function disabled螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('disabled-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3] + , assertText = function (testcase, value) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, value, testcase.testcase); + } + , assertDisabled = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase, ""); }// 遒コ隱咲判髱「縺ァ縺ッ陦ィ遉コ辟。縺 + var $input = testcase.area.find('textarea'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok($input.prop('disabled'), testcase.testcase + "[prop disabled]"); + } + , assertNotDisabled = function(testcase, value) { + if(isConfirmationPage()) { return assertText(testcase, value); } + var $input = testcase.area.find('textarea'); + equal($input.size(), 1, testcase.testcase + "[input size]"); + equal($input.val(), value, testcase.testcase + "[input value]"); + ok(!$input.prop('disabled'), testcase.testcase + "[prop disabled]"); + }; + + assertNotDisabled(default_case, "disabled螻樊ァ謖螳壹↑縺"); + assertNotDisabled(blank_case, "disabled螻樊ァ縺ォ遨コ"); + assertDisabled(true_case, "繧オ繝シ繝舌↓蛟、縺碁∽ソ。縺輔l縺ェ縺"); + assertNotDisabled(false_case, "繧オ繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧"); +} + +function id螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('id-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + var default_input = default_case.area.find('textarea'); + equal(default_input.attr('id'), default_input.attr('name'), default_case.testcase); + + var blank_input = blank_case.area.find('textarea'); + equal(blank_input.attr('id'), blank_input.attr('name'), blank_case.testcase); + + var set_input = set_case.area.find('textarea'); + notEqual(set_input.attr('id'), set_input.attr('name'), set_case.testcase); + equal(set_input.attr('id'), 'id-identified', set_case.testcase); +} + +function cssClass螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('cssClass-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + ok(!default_case.area.find('textarea').is('.testCss'), default_case.testcase); + ok(!blank_case.area.find('textarea').is('.testCss'), blank_case.testcase); + ok(set_case.area.find('textarea').is('.testCss'), set_case.testcase); +} + +function maxlength螻樊ァ縺ョ繝繧ケ繝() { + // 蜈・蜉帷判髱「縺ョ縺ソ讀懆ィシ + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + + setup(); + var cases = test_for('maxlength-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2]; + + ok(!default_case.area.find('textarea').attr('maxlength'), default_case.testcase); + ok(!blank_case.area.find('textarea').attr('maxlength'), blank_case.testcase); + ok(set_case.area.find('textarea').attr('maxlength'), set_case.testcase); + equal(set_case.area.find('textarea').attr('maxlength'), 5, set_case.testcase); +} + +function example螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('example-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assertText = function (testcase) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, "", testcase.testcase); + } + , assertHasPlaceholder = function assertExample(testcase, placeholder) { + if(isConfirmationPage()) {return assertText(testcase);} + var $input = testcase.area.find('textarea'); + equal($input.val(), "", testcase.testcase + "[val()]"); + equal($input.attr('placeholder'), placeholder, testcase.testcase); + } + , assertNotHasPlaceholder = function(testcase) { + if(isConfirmationPage()) {return assertText(testcase);} + var $input = testcase.area.find('textarea'); + equal($input.val(), "", testcase.testcase + "[val()]"); + ok(!$input.attr('placeholder'), testcase.testcase); + }; + + assertNotHasPlaceholder(default_case); + assertNotHasPlaceholder(blank_case); + assertHasPlaceholder(set_case, "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l繧九%縺ィ"); +} + +function rows螻樊ァ縺ョ繝繧ケ繝() { + if(isConfirmationPage()) { return ok(true, "遒コ隱咲判髱「縺ァ縺ッ繝繧ケ繝育┌縺");} + setup(); + var cases = test_for('rows-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assertRows = function(testcase, row_count) { + var $input = testcase.area.find('textarea'); + equal($input.attr('rows'), row_count, testcase.testcase); + }; + + assertRows(default_case, 4); + assertRows(blank_case, 4); + assertRows(set_case, 10); +} + +function sample螻樊ァ縺ョ繝繧ケ繝() { // server 縺ォ縺ヲ蜃コ蜉帙&繧後k蝣エ蜷医ッ辟。蜉ケ縺ァ縺ゅk縺薙→繧堤「コ隱阪☆繧九 + setup(); + var cases = test_for('sample-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_case = cases[2] + , assert = function(testcase) { + if (isConfirmationPage()) { + var text = $.trim(testcase.area.find('div.field-content').text()); + equal(text, "", testcase.testcase); + } else { + equal(testcase.area.find('textarea').val(), "", testcase.testcase); + } + }; + + assert(default_case); + assert(blank_case); + assert(set_case); +} + +function size螻樊ァ縺ョ繝繧ケ繝() { + setup(); + + var cases = test_for('size-test'), + assertNotSizeClass = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(!label.attr('class').has('grid-col'), testCase.testcase); + ok(!fieldContent.attr('class').has('grid-col'), testCase.testcase); + }, + assertSize = function(testCase) { + var label = testCase.area.find('label'), + fieldContent = testCase.area.find('div.field-content'); + + ok(label.hasClass('grid-col-13'), testCase.testcase); + ok(fieldContent.hasClass('grid-col-5'), testCase.testcase); + }; + + assertNotSizeClass(cases[0]); // size螻樊ァ謖螳壹↑縺 + assertNotSizeClass(cases[1]); // size螻樊ァ繝悶Λ繝ウ繧ッ謖螳 + assertSize(cases[2]); // size螻樊ァ謖螳 +} + +/** + * 蜊倩。後ユ繧ュ繧ケ繝医ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ +function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e) + , $area = $($all_nodes[idx + 1]) + , $options = $all_nodes.filter(':eq(' + (idx + 2) + '), :eq(' + (idx + 3) + ')') + , error = $options.filter('div.fielderror') + , note = $options.filter('div.note'); + return { + testcase : $.trim($e.text()), + area : $area, + error : error, + hint : note + }; + }); +} diff --git "a/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..89f3c3c --- /dev/null +++ "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,42 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + /********************* + id螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + textarea#server\.id-none { + background-color: #7ec78f; + } + + textarea#server\.id-blank { + background-color: #a7c788 + } + + textarea#id-identified { + border-color: red; + } + + /********************* + cssClass螻樊ァ縺ョ繝繧ケ繝医〒菴ソ逕ィ縺吶k繧ケ繧ソ繧、繝ォ螳夂セゥ + *********************/ + textarea.testCss { + border-color: blue; + } + + + diff --git "a/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..ac4b4e1 --- /dev/null +++ "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,40 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.Message" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> + + diff --git "a/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" new file mode 100644 index 0000000..97ab858 --- /dev/null +++ "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\231\273\351\214\262).jsp" @@ -0,0 +1,315 @@ +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + required螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∝ソ鬆医槭シ繧ッ縺悟コ蜉帙&繧後↑縺縺薙→ + + + required螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∝・蜉帷判髱「縺ァ縺ッ蠢鬆医槭シ繧ッ縺悟コ蜉帙&繧後k縺薙→シ育「コ隱咲判髱「縺ァ縺ッ陦ィ遉コ縺輔l縺ェ縺シ + + + + + + readonly螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + readonly螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医∫キィ髮荳榊庄縺ォ縺ェ繧九%縺ィ(蛟、縺ッ騾∽ソ。縺輔l遒コ隱咲判髱「縺ォ繝ゥ繝吶Ν陦ィ遉コ縺輔l繧九%縺ィ) + + + readonly螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ォ縺ェ繧九%縺ィ + + + + + + disabled螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + disabled螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l縺ェ縺縺薙→シ育「コ隱咲判髱「縺ォ陦ィ遉コ縺輔l縺ェ縺縺薙→シ + + + disabled螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医∫キィ髮蜿ッ閭ス縺ィ縺ェ繧翫し繝シ繝舌↓蛟、縺碁∽ソ。縺輔l繧九%縺ィ + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + id螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医]ame螻樊ァ縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + id螻樊ァ繧呈欠螳壹@縺溷エ蜷医∵欠螳壹@縺殃d螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + cssClass螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医…lass縺ッ險ュ螳壹&繧後↑縺縺薙→シ医た繝シ繧ケ縺九i遒コ隱搾シ + + + + cssClass螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医…lass縺ッ險ュ螳壹&繧後↑縺縺薙→シ医た繝シ繧ケ縺九i遒コ隱搾シ + + + + cssClass螻樊ァ繧呈欠螳壹@縺溷、縺後…lass縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + maxlength繧呈欠螳壹@縺ェ縺蝣エ蜷医[axlength縺ッ險ュ螳壹&繧後↑縺縺薙→シ医た繝シ繧ケ縺九i遒コ隱搾シ + + + + maxlength縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医[axlength縺ッ險ュ螳壹&繧後↑縺縺薙→シ医た繝シ繧ケ縺九i遒コ隱搾シ + + + + maxlength繧呈欠螳壹@縺溷エ蜷医∽ク企剞莉・荳翫ョ譁蟄玲焚繧貞・蜉帙@縺ヲ繧ら判髱「縺ォ縺ッ陦ィ遉コ縺輔l縺壹↓辟。隕悶&繧後k縺薙→ + + + + + + example螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√励Ξ繝シ繧ケ繝帙Ν繝縺ィ縺励※菴輔b陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + example螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√励Ξ繝シ繧ケ繝帙Ν繝縺ィ縺励※菴輔b陦ィ遉コ縺輔l縺ェ縺縺薙→ + + + + 蜈・蜉帷判髱「縺ァ縺ッ縲‘xample縺ォ謖螳壹@縺溷、縺後励Ξ繝シ繧ケ繝帙Ν繝縺ォ險ュ螳壹&繧後k縺薙→縲ら「コ隱咲判髱「縺ァ縺ッ縲∬。ィ遉コ縺輔l縺ェ縺縺薙→縲 + + + + + + rows螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ョ繝輔か繝ォ繝医ョ陦梧焚縺悟茜逕ィ縺輔l繧九%縺ィ + + + + rows螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ョ繝輔か繝ォ繝医ョ陦梧焚縺悟茜逕ィ縺輔l繧九%縺ィ + + + + rows螻樊ァ縺ォ謖螳壹@縺溷、縺瑚。梧焚縺ィ縺ェ繧九%縺ィ + + + + + + hint螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + + hint螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医”int縺ッ蜃コ蜉帙&繧後↑縺縺薙→ + + + + 蜈・蜉帷判髱「縺ァ縺ッ縲”int螻樊ァ縺ォ謖螳壹@縺溷、縺悟コ蜉帙&繧後k縺薙→縲ら「コ隱咲判髱「縺ァ縺ッ蜃コ蜉帙&繧後↑縺縺薙→縲 + + + + 繝ゥ繝吶Ν縺梧釜繧願ソ斐@縺溷エ蜷医〒繧ゅ”int螻樊ァ縺悟・蜉帙お繝ェ繧「縺ョ逶エ荳九↓蟾ヲ謠縺医〒蜃コ蜉帙&繧後k縺薙→縲ら「コ隱咲判髱「縺ァ縺ッ蜃コ蜉帙&繧後↑縺縺薙→縲 + + + + + + + sample螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + + sample螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√し繝シ繝舌サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア縺ォ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後↑縺縺薙→ + + + + sample螻樊ァ繧呈欠螳壹@縺溷エ蜷医√け繝ゥ繧、繧「繝ウ繝医〒縺ッ繧オ繝ウ繝励Ν蛟、縺悟コ蜉帙&繧後k縺薙→ + + + + + + + size螻樊ァ縺梧悴謖螳壹ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + size螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν驛ィ縺ィ蜈・蜉幃Κ縺ィ繧ゅ↓grid-col髢「騾」縺ョ繧ッ繝ゥ繧ケ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + titleSize縺ィinputSize繧偵→繧ゅ↓謖螳
+ + 繧ソ繧、繝医Ν驛ィ(label)縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝峨し繧、繧コ縺九i縲:縲埼Κ縺ョ繧ー繝ェ繝繝画焚縺梧ク帷ョ励&繧後◆蛟、縺瑚ィュ螳壹&繧後k縺薙→ + 蜈・蜉幃Κ(div.field-content縺ォ縺ッ縲∵欠螳壹@縺溘げ繝ェ繝繝画焚縺後◎縺ョ縺セ縺セ險ュ螳壹&繧後k縺薙→ +
+ + + +
+ + + + + + + + + + + +
diff --git "a/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..70d1c75 --- /dev/null +++ "b/node_modules/nablarch-widget-field-textarea/ui_test/jsp/\343\201\235\343\201\256\344\273\226\343\201\256\343\202\246\343\202\243\343\202\270\343\202\247\343\203\203\343\203\210/\350\244\207\346\225\260\350\241\214\343\203\206\343\202\255\343\202\271\343\203\210\345\205\245\345\212\233/\343\202\265\343\203\274\343\203\220\343\203\273\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270(\347\242\272\350\252\215).jsp" @@ -0,0 +1,7 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git a/node_modules/nablarch-widget-link/package.json b/node_modules/nablarch-widget-link/package.json new file mode 100644 index 0000000..76d101f --- /dev/null +++ b/node_modules/nablarch-widget-link/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-link" +, "version": "1.0.0" +, "_from" : "nablarch-widget-link@1.0.0" +, "dependencies": { + } +, "description": "繝ェ繝ウ繧ッ繧ヲ繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-link/ui_local/js/jsp/taglib/link.js b/node_modules/nablarch-widget-link/ui_local/js/jsp/taglib/link.js new file mode 100644 index 0000000..6d2762f --- /dev/null +++ b/node_modules/nablarch-widget-link/ui_local/js/jsp/taglib/link.js @@ -0,0 +1,16 @@ +/** + * 繝ェ繝ウ繧ッ繧ヲ繧」繧ク繧ァ繝繝医ョ繧ィ繝溘Η繝シ繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * JSP繧ソ繧ー `` 縺ッ荳玖ィ倥ョ繧ソ繧ー繝輔ぃ繧、繝ォ縺ォ繧医j謠冗判縺輔l繧九 + * + * (繧オ繝シ繝悶Ξ繝繝医さ繝ウ繝繧ュ繧ケ繝)/WEB-INF/tags/widget/link/xxx.tag + * + * @module jsp.taglib + * @class jsp.taglib.column + * @author Iwauo Tajima + */ + +define(['jsp', 'sugar'], +function($) { 'use strict'; + return $.loadTagfile.fill('../WEB-INF/tags/widget/link/'); +}); diff --git a/node_modules/nablarch-widget-link/ui_public/WEB-INF/tags/widget/link/popup.tag b/node_modules/nablarch-widget-link/ui_public/WEB-INF/tags/widget/link/popup.tag new file mode 100644 index 0000000..3f9956f --- /dev/null +++ b/node_modules/nablarch-widget-link/ui_public/WEB-INF/tags/widget/link/popup.tag @@ -0,0 +1,31 @@ +<%-- + 繝昴ャ繝励い繝繝礼畑繝ェ繝ウ繧ッ陦ィ遉コ + @author tani takanori +--%> + +<%@tag pageEncoding="UTF-8" description="繝昴ャ繝励い繝繝礼畑縺ョ繝ェ繝ウ繧ッ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="label" description="繝ゥ繝吶Ν驛ィ縺ォ陦ィ遉コ縺吶k譁險" required="true" rtexprvalue="true" %> +<%@ attribute name="uri" description="繝ェ繝ウ繧ッ蜈uri" rtexprvalue="true" required="true" %> +<%@ attribute name="id" description="html縺ョid螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="html縺ョclass螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="popupWindowName" description="遶九■荳翫£繧妓indow縺ョ蜷榊燕(繝繝輔か繝ォ繝医ッsubwindow)" rtexprvalue="true" %> +<%@ attribute name="popupOption" description="繝昴ャ繝励い繝繝励ョ繧ェ繝励す繝ァ繝ウ諠蝣ア" rtexprvalue="true" %> + +<%@ attribute name="dummyUri" description="逕サ髱「險ュ險域凾縺ォ菴ソ逕ィ縺吶k驕キ遘サ蜈茨シ育エ呵茅螻縺ョ繧医≧縺ォ逕サ髱「驕キ遘サ縺吶kシ会シ域悽逡ェ迺ー蠅縺ァ縺ッ菴ソ逕ィ縺励↑縺シ" rtexprvalue="true" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> +<%@ attribute name="comment" description="縺薙ョ繧オ繝悶Α繝繝育畑繝ェ繝ウ繧ッ縺ォ縺、縺縺ヲ縺ョ蛯呵 シ育判髱「繧、繝吶Φ繝井ク隕ァ縺ョ逕サ髱「繧、繝吶Φ繝域ヲりヲ√↓陦ィ遉コ縺輔l繧具シ" %> + + + + + diff --git a/node_modules/nablarch-widget-link/ui_public/WEB-INF/tags/widget/link/submit.tag b/node_modules/nablarch-widget-link/ui_public/WEB-INF/tags/widget/link/submit.tag new file mode 100644 index 0000000..ccabd56 --- /dev/null +++ b/node_modules/nablarch-widget-link/ui_public/WEB-INF/tags/widget/link/submit.tag @@ -0,0 +1,30 @@ +<%-- + 繧オ繝悶Α繝繝育畑繝ェ繝ウ繧ッ陦ィ遉コ + @author Hisaaki Sioiri +--%> + +<%@tag pageEncoding="UTF-8" description="繧オ繝悶Α繝繝育畑縺ョ繝ェ繝ウ繧ッ繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="label" description="繝ゥ繝吶Ν驛ィ縺ォ陦ィ遉コ縺吶k譁險" required="true" rtexprvalue="true" %> +<%@ attribute name="uri" description="繝ェ繝ウ繧ッ蜈uri" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="html縺ョid螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="html縺ョclass螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="allowDoubleSubmission" description="2驥阪し繝悶Α繝繝医r險ア蜿ッ縺吶k縺句凄縺九Galse繧呈欠螳壹@縺溷エ蜷医ッ險ア蜿ッ縺励↑縺縲ゅョ繝輔か繝ォ繝医ッtrue" rtexprvalue="true" %> + +<%@ attribute name="dummyUri" description="逕サ髱「險ュ險域凾縺ォ菴ソ逕ィ縺吶k驕キ遘サ蜈茨シ育エ呵茅螻縺ョ繧医≧縺ォ逕サ髱「驕キ遘サ縺吶kシ会シ域悽逡ェ迺ー蠅縺ァ縺ッ菴ソ逕ィ縺励↑縺シ" rtexprvalue="true" %> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌シ =============================== --%> +<%@ attribute name="comment" description="縺薙ョ繧オ繝悶Α繝繝育畑繝ェ繝ウ繧ッ縺ォ縺、縺縺ヲ縺ョ蛯呵 シ育判髱「繧、繝吶Φ繝井ク隕ァ縺ョ逕サ髱「繧、繝吶Φ繝域ヲりヲ√↓陦ィ遉コ縺輔l繧具シ" %> + + + + + + diff --git "a/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/index.jsp" "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/index.jsp" new file mode 100644 index 0000000..a159812 --- /dev/null +++ "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/index.jsp" @@ -0,0 +1,24 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
  • +
+
    +
  • +
  • +
+
+
+
diff --git "a/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\252\343\203\263\343\202\257.jsp" "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\252\343\203\263\343\202\257.jsp" new file mode 100644 index 0000000..33c0c9d --- /dev/null +++ "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\252\343\203\263\343\202\257.jsp" @@ -0,0 +1,258 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + #link-id { + font-size: 2em; + color: #000066; + } + + #link-id:hover { + color: red; + } + + a.style { + font-size: 1.25em; + color: #ffffff; + text-decoration: none; + background-color: blue; + text-align: center; + padding: 0 1em 0 1em; + } + + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ險ュ螳壹@縺溷エ蜷医ョ蜍穂ス + + + + + + + + + + + id繧呈欠螳壹@縺ェ縺蝣エ蜷医(d螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + id縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医(d螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + id繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医…lass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医…lass螻樊ァ縺ォ縺昴ョ蛟、縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + + + popupOption繧呈欠螳壹@縺ェ縺蝣エ蜷医√が繝励す繝ァ繝ウ縺ェ縺励〒繧ヲ繧」繝ウ繝峨え縺碁幕縺九l繧九%縺ィ + + + + + + + + popupOption縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√が繝励す繝ァ繝ウ縺ェ縺励〒繧ヲ繧」繝ウ繝峨え縺碁幕縺九l繧九%縺ィ + + + + + + + + popupOption繧呈欠螳壹@縺溷エ蜷医√◎縺ョ繧ェ繝励す繝ァ繝ウ縺ァ繧ヲ繧」繝ウ繝峨え縺碁幕縺九l繧九%縺ィ + + + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + + + + 1.popupWindowName繧呈欠螳壹@縺ェ縺蝣エ蜷医"subwindow"縺梧欠螳壹&繧後k縺薙→ + + + + + + + + 2.popupWindowName縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医"subwindow"縺梧欠螳壹&繧後k縺薙→ + + + + + + + + 3.popupWindowName縺ォ繝繝輔か繝ォ繝亥、シ"subwindow"シ峨r謖螳壹@縺溷エ蜷 + + + + + + + + 4.popupWindowName縺ォ繝繝輔か繝ォ繝医〒縺ェ縺蛟、繧呈欠螳壹@縺溷エ蜷 + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..b1030d4 --- /dev/null +++ "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,87 @@ + runTest( + id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , popupOption螻樊ァ縺ョ繝繧ケ繝 + , 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + function id螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('id-test') + , id_default = cases[0] + , id_blank = cases[1] + , id_set = cases[2]; + + ok(!id_default.link.attr('id'), id_default.testcase); + ok(!id_blank.link.attr('id'), id_blank.testcase); + ok(id_set.link.attr('id'), id_set.testcase); + equal(id_set.link.attr('id'), "link-id", id_set.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('cssClass-test') + , cssclass_default = cases[0] + , cssclass_blank = cases[1] + , cssclass_set = cases[2] + , test_css = ".style"; + + ok(!cssclass_default.link.is(test_css), cssclass_default.testcase); + ok(!cssclass_blank.link.is(test_css) , cssclass_blank.testcase); + ok(cssclass_set.link.is(test_css) , cssclass_set.testcase); + } + + function popupOption螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('popupOption-test') + , popup_default = cases[0] + , popup_blank = cases[1] + , popup_set = cases[2] + , popupOption = function(link) { + var $link = $(link) + , name = $link.attr('name') + , $form = $link.parents('form') + , formName = $form.attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['popupOption']; + } + } + , assert = function (testcase, option) { + equal(popupOption(testcase.link), option, testcase.testcase); + }; + + assert(popup_default, ""); + assert(popup_blank, ""); + assert(popup_set, "menubar=no, width=100, height=100"); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var cases = test_for('default_value-test') + , require_only = cases[0]; + + equal($.trim(require_only.label.text()), "驥題檮讖滄未讀懃エ「", require_only.testcase + "[label]"); + ok(isAllowedDoubleSubmit(require_only), require_only.testcase + "[doubleSubmit]"); + ok(!require_only.link.attr('disabled'), require_only.testcase + "[disabled]"); + } + + /** + * 繝ェ繝ウ繧ッ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $nodes = $('span.test-case.' + case_id + ' + div.control') + , $cases = $('span.test-case.' + case_id); + return $nodes.map(function(i, e) { + return { testcase : $.trim($($cases.get(i)).text()), + label : $(e).find('a').first(), + link : $(e).find('a').first()}; + }); + } + + function isAllowedDoubleSubmit(testcase) { + var $link = testcase.link + , name = $link.attr('name') + , formName = $link.closest('form').attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['allowDoubleSubmission']; + } + throw Error('can\'t get submmision info'); + } diff --git "a/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..c938f43 --- /dev/null +++ "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,39 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + request.setAttribute("serverMode", true); +%> + + + + + #link-id { + font-size: 2em; + color: #000066; + } + + #link-id:hover { + color: red; + } + + a.style { + font-size: 1.25em; + color: #ffffff; + text-decoration: none; + background-color: blue; + text-align: center; + padding: 0 1em 0 1em; + } + + + diff --git "a/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..68d5e2b --- /dev/null +++ "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\235\343\203\203\343\203\227\343\202\242\343\203\203\343\203\227\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,170 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ險ュ螳壹@縺溷エ蜷医ョ蜍穂ス + + + + + + + + + + + id繧呈欠螳壹@縺ェ縺蝣エ蜷医(d螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + id縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医(d螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + id繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医…lass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医…lass螻樊ァ縺ォ縺昴ョ蛟、縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + + + + popupOption繧呈欠螳壹@縺ェ縺蝣エ蜷医√が繝励す繝ァ繝ウ縺ェ縺励〒繧ヲ繧」繝ウ繝峨え縺碁幕縺九l繧九%縺ィ + + + + + + + + popupOption縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√が繝励す繝ァ繝ウ縺ェ縺励〒繧ヲ繧」繝ウ繝峨え縺碁幕縺九l繧九%縺ィ + + + + + + + + popupOption繧呈欠螳壹@縺溷エ蜷医√◎縺ョ繧ェ繝励す繝ァ繝ウ縺ァ繧ヲ繧」繝ウ繝峨え縺碁幕縺九l繧九%縺ィ + + + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + diff --git "a/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\252\343\203\263\343\202\257.jsp" "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\252\343\203\263\343\202\257.jsp" new file mode 100644 index 0000000..0e1193f --- /dev/null +++ "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\252\343\203\263\343\202\257.jsp" @@ -0,0 +1,211 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + request.setAttribute("serverMode", true); +%> + + + + #link-id { + font-size: 2em; + color: #000066; + } + + #link-id:hover { + color: red; + } + + a.style { + font-size: 1.25em; + color: #ffffff; + text-decoration: none; + background-color: blue; + text-align: center; + padding: 0 1em 0 1em; + } + + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ險ュ螳壹@縺溷エ蜷医ョ蜍穂ス + + + + + + + + + + + id繧呈欠螳壹@縺ェ縺蝣エ蜷医(d螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + id縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医(d螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + id繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医…lass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医…lass螻樊ァ縺ォ縺昴ョ蛟、縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + + + + $('div#tab_content_s_content').find('a').each(function() { + var $button = $(this); + var name = $button.attr('name'); + var $form = $button.parents('form'); + var formName = $form.attr('name'); + if (nablarch_submission_info[formName]) { + var allowDoubleSubmission = nablarch_submission_info[formName][name]['allowDoubleSubmission']; + $button.after($('').text('allowDoubleSubmission = [' + allowDoubleSubmission +']')); + } + }); + + diff --git "a/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..6c58e23 --- /dev/null +++ "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,92 @@ + runTest( + id螻樊ァ縺ョ繝繧ケ繝 + , cssClass螻樊ァ縺ョ繝繧ケ繝 + , allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝 + , 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + ); + + var size_prefix = ".grid-col-" + , defaults = { + size : size_prefix + '3' + }; + + function label螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('label-test') + , label_default = cases[0] + , label_blank = cases[1] + , label_set = cases[2]; + equal($.trim(label_default.label.text()), defaults.label, label_default.testcase); + equal($.trim(label_blank.label.text()), defaults.label, label_blank.testcase); + equal($.trim(label_set.label.text()), "繧繧√k", label_set.testcase); + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('id-test') + , id_default = cases[0] + , id_blank = cases[1] + , id_set = cases[2]; + + ok(!id_default.button.attr('id'), id_default.testcase); + ok(!id_blank.button.attr('id'), id_blank.testcase); + ok(id_set.button.attr('id'), id_set.testcase); + equal(id_set.button.attr('id'), "link-id", id_set.testcase); + } + + function cssClass螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('cssClass-test') + , cssclass_default = cases[0] + , cssclass_blank = cases[1] + , cssclass_set = cases[2] + , test_css = ".style"; + + ok(!cssclass_default.button.is(test_css), cssclass_default.testcase); + ok(!cssclass_blank.button.is(test_css) , cssclass_blank.testcase); + ok(cssclass_set.button.is(test_css) , cssclass_set.testcase); + } + + function allowDoubleSubmmision螻樊ァ縺ョ繝繧ケ繝() { + var cases = test_for('allowDoubleSubmission-test') + , double_submit_default = cases[0] + , double_submit_blank = cases[1] + , double_submit_true = cases[2] + , double_submit_false = cases[3]; + + ok(isAllowedDoubleSubmit(double_submit_default), double_submit_default.testcase); + ok(isAllowedDoubleSubmit(double_submit_blank), double_submit_blank.testcase); + ok(isAllowedDoubleSubmit(double_submit_true), double_submit_true.testcase); + ok(!isAllowedDoubleSubmit(double_submit_false), double_submit_false.testcase); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + var cases = test_for('default_value-test') + , require_only = cases[0]; + + equal($.trim(require_only.label.text()), "繧、繝ウ繝繝繧ッ繧ケ繝壹シ繧ク", require_only.testcase + "[label]"); + ok(isAllowedDoubleSubmit(require_only), require_only.testcase + "[doubleSubmit]"); + ok(!require_only.button.attr('disabled'), require_only.testcase + "[disabled]"); + } + + /** + * 繝ェ繝ウ繧ッ縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $nodes = $('span.test-case.' + case_id + ' + div.control') + , $cases = $('span.test-case.' + case_id); + return $nodes.map(function(i, e) { + return { testcase : $.trim($($cases.get(i)).text()), + label : $(e).find('a').first(), + button : $(e).find('a').first()}; + }); + } + + function isAllowedDoubleSubmit(testcase) { + var $button = testcase.button + , name = $button.attr('name') + , formName = $button.closest('form').attr('name'); + if (nablarch_submission_info[formName]) { + return nablarch_submission_info[formName][name]['allowDoubleSubmission']; + } + throw Error('can\'t get submmision info'); + } diff --git "a/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..2f7872e --- /dev/null +++ "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,39 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + request.setAttribute("serverMode", true); +%> + + + + + #link-id { + font-size: 2em; + color: #000066; + } + + #link-id:hover { + color: red; + } + + a.style { + font-size: 1.25em; + color: #ffffff; + text-decoration: none; + background-color: blue; + text-align: center; + padding: 0 1em 0 1em; + } + + + diff --git "a/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..b274aac --- /dev/null +++ "b/node_modules/nablarch-widget-link/ui_test/jsp/\343\203\252\343\203\263\343\202\257/\343\203\252\343\203\263\343\202\257_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,167 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒險ュ螳壹☆繧句、繧ょ性繧√※蜈ィ縺ヲ險ュ螳壹@縺溷エ蜷医ョ蜍穂ス + + + + + + + + + + + id繧呈欠螳壹@縺ェ縺蝣エ蜷医(d螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + id縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医(d螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + id繧定ィュ螳壹@縺溷エ蜷医√◎縺ョid縺景d螻樊ァ縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺ェ縺蝣エ蜷医…lass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass縺ォ繝悶Λ繝ウ繧ッ繧定ィュ螳壹@縺溷エ蜷医…lass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + cssClass繧定ィュ螳壹@縺溷エ蜷医…lass螻樊ァ縺ォ縺昴ョ蛟、縺瑚ィュ螳壹&繧後k縺薙→ + + + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + allowDoubleSubmission繧呈欠螳壹@縺ェ縺蝣エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォtrue繧呈欠螳壹@縺溷エ蜷医》rue縺ィ縺ェ繧九%縺ィ + + + + + + + + allowDoubleSubmission縺ォfalse繧呈欠螳壹@縺溷エ蜷医’alse縺ィ縺ェ繧九%縺ィ + + + + + + + + diff --git a/node_modules/nablarch-widget-multicol-cell/package.json b/node_modules/nablarch-widget-multicol-cell/package.json new file mode 100644 index 0000000..4931742 --- /dev/null +++ b/node_modules/nablarch-widget-multicol-cell/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-multicol-cell" +, "version": "1.0.0" +, "_from" : "nablarch-widget-multicol-cell@1.0.0" +, "dependencies": { + } +, "description": "繧サ繝ォ鬆伜沺螳夂セゥ繧ヲ繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-multicol-cell/ui_public/WEB-INF/tags/widget/layout/cell.tag b/node_modules/nablarch-widget-multicol-cell/ui_public/WEB-INF/tags/widget/layout/cell.tag new file mode 100644 index 0000000..242c37b --- /dev/null +++ b/node_modules/nablarch-widget-multicol-cell/ui_public/WEB-INF/tags/widget/layout/cell.tag @@ -0,0 +1,17 @@ +<%-- + 繧サ繝ォ謖螳壹Ξ繧、繧「繧ヲ繝 + @author tani takanori +--%> + +<%@tag pageEncoding="UTF-8" description="繧サ繝ォ縺ョ繝ャ繧、繧「繧ヲ繝医r螳夂セゥ縺吶k繧ヲ繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="gridSize" description="繧ー繝ェ繝繝牙ケ" rtexprvalue="true"%> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> + +
+ +
\ No newline at end of file diff --git a/node_modules/nablarch-widget-multicol-cell/ui_public/css/layout/cell.less b/node_modules/nablarch-widget-multicol-cell/ui_public/css/layout/cell.less new file mode 100644 index 0000000..429249d --- /dev/null +++ b/node_modules/nablarch-widget-multicol-cell/ui_public/css/layout/cell.less @@ -0,0 +1,83 @@ +/** + * layout:cell逕ィ縺ョスス繧ソ繧、繝ォ + */ +/* margin 繧定諷ョ縺励↑縺蟷縺ョ螳夂セゥ*/ +.cell-width-of(@cols) { + width: @cols * (@trackWidth + @gutterWidth) !important; +} + +#content { + /* content 蜀縺ョ陦後ョ螳夂セゥ */ + .content-row { + /* cell閾ェ菴薙ッmargin繧偵→繧峨↑縺縲 */ + .layout.content-cell { + margin:auto 0 !important; + float:left; + &::before, &::after { + display: table; + content: " "; + height: 1px; + } + &::after { + clear: both; + } + } + .cell-width-1 { .cell-width-of(1); } + .cell-width-2 { .cell-width-of(2); } + .cell-width-3 { .cell-width-of(3); } + .cell-width-4 { .cell-width-of(4); } + .cell-width-5 { .cell-width-of(5); } + .cell-width-6 { .cell-width-of(6); } + .cell-width-7 { .cell-width-of(7); } + .cell-width-8 { .cell-width-of(8); } + .cell-width-9 { .cell-width-of(9); } + .cell-width-10 { .cell-width-of(10); } + .cell-width-11 { .cell-width-of(11); } + .cell-width-12 { .cell-width-of(12); } + .cell-width-13 { .cell-width-of(13); } + .cell-width-14 { .cell-width-of(14); } + .cell-width-15 { .cell-width-of(15); } + .cell-width-16 { .cell-width-of(16); } + .cell-width-17 { .cell-width-of(17); } + .cell-width-18 { .cell-width-of(18); } + .cell-width-19 { .cell-width-of(19); } + .cell-width-20 { .cell-width-of(20); } + .cell-width-21 { .cell-width-of(21); } + .cell-width-22 { .cell-width-of(22); } + .cell-width-23 { .cell-width-of(23); } + .cell-width-24 { .cell-width-of(24); } + .cell-width-25 { .cell-width-of(25); } + .cell-width-26 { .cell-width-of(26); } + .cell-width-27 { .cell-width-of(27); } + .cell-width-28 { .cell-width-of(28); } + .cell-width-29 { .cell-width-of(29); } + .cell-width-30 { .cell-width-of(30); } + .cell-width-31 { .cell-width-of(31); } + .cell-width-32 { .cell-width-of(32); } + .cell-width-33 { .cell-width-of(33); } + .cell-width-34 { .cell-width-of(34); } + .cell-width-35 { .cell-width-of(35); } + .cell-width-36 { .cell-width-of(36); } + .cell-width-37 { .cell-width-of(37); } + .cell-width-38 { .cell-width-of(38); } + .cell-width-39 { .cell-width-of(39); } + .cell-width-40 { .cell-width-of(40); } + .cell-width-41 { .cell-width-of(41); } + .cell-width-42 { .cell-width-of(42); } + .cell-width-43 { .cell-width-of(43); } + .cell-width-44 { .cell-width-of(44); } + .cell-width-45 { .cell-width-of(45); } + .cell-width-46 { .cell-width-of(46); } + .cell-width-47 { .cell-width-of(47); } + .cell-width-48 { .cell-width-of(48); } + .cell-width-49 { .cell-width-of(49); } + .cell-width-50 { .cell-width-of(50); } + .cell-width-51 { .cell-width-of(51); } + .cell-width-52 { .cell-width-of(52); } + .cell-width-53 { .cell-width-of(53); } + .cell-width-54 { .cell-width-of(54); } + .cell-width-55 { .cell-width-of(55); } + .cell-width-56 { .cell-width-of(56); } + .cell-width-57 { .cell-width-of(57); } + } +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-multicol-row/package.json b/node_modules/nablarch-widget-multicol-row/package.json new file mode 100644 index 0000000..f151b48 --- /dev/null +++ b/node_modules/nablarch-widget-multicol-row/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-multicol-row" +, "version": "1.0.0" +, "_from" : "nablarch-widget-multicol-row@1.0.0" +, "dependencies": { + } +, "description": "繝ャ繧、繧「繧ヲ繝亥ョ夂セゥ繧ヲ繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-multicol-row/ui_local/js/jsp/taglib/layout.js b/node_modules/nablarch-widget-multicol-row/ui_local/js/jsp/taglib/layout.js new file mode 100644 index 0000000..c8787ec --- /dev/null +++ b/node_modules/nablarch-widget-multicol-row/ui_local/js/jsp/taglib/layout.js @@ -0,0 +1,16 @@ +/** + * 繝ャ繧、繧「繧ヲ繝医え繧」繧ク繧ァ繝繝医ョ繧ィ繝溘Η繝シ繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * JSP繧ソ繧ー `` 縺ッ荳玖ィ倥ョ繧ソ繧ー繝輔ぃ繧、繝ォ縺ォ繧医j謠冗判縺輔l繧九 + * + * (繧オ繝シ繝悶Ξ繝繝医さ繝ウ繝繧ュ繧ケ繝)/WEB-INF/tags/widget/layout/xxx.tag + * + * @module jsp.taglib + * @class jsp.taglib.layout + * @author Takanori Tani + */ + +define(['jsp', 'sugar'], +function($) { 'use strict'; + return $.loadTagfile.fill('../WEB-INF/tags/widget/layout/'); +}); diff --git a/node_modules/nablarch-widget-multicol-row/ui_public/WEB-INF/tags/widget/layout/row.tag b/node_modules/nablarch-widget-multicol-row/ui_public/WEB-INF/tags/widget/layout/row.tag new file mode 100644 index 0000000..27b8bd7 --- /dev/null +++ b/node_modules/nablarch-widget-multicol-row/ui_public/WEB-INF/tags/widget/layout/row.tag @@ -0,0 +1,15 @@ +<%-- + 陦梧欠螳壹Ξ繧、繧「繧ヲ繝 + @author tani takanori +--%> + +<%@tag pageEncoding="UTF-8" description="陦後ョ繝ャ繧、繧「繧ヲ繝医r螳夂セゥ縺吶k繧ヲ繧」繧ク繧ァ繝繝" %> +<%@taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌陦ィ遉コ逕ィシ =============================== --%> + +
+ +
\ No newline at end of file diff --git a/node_modules/nablarch-widget-multicol-row/ui_public/css/layout/row.less b/node_modules/nablarch-widget-multicol-row/ui_public/css/layout/row.less new file mode 100644 index 0000000..174b68d --- /dev/null +++ b/node_modules/nablarch-widget-multicol-row/ui_public/css/layout/row.less @@ -0,0 +1,19 @@ +/** + * layout:row逕ィ縺ョスス繧ソ繧、繝ォ + */ +#content { + /* content 蜀縺ョ陦後ョ螳夂セゥ */ + .content-row { + .content-row; + + padding-top: 5px; + + &::before, &::after { + display: table; + content: " "; + } + &::after { + clear: both; + } + } +} diff --git a/node_modules/nablarch-widget-placeholder/package.json b/node_modules/nablarch-widget-placeholder/package.json new file mode 100644 index 0000000..922ba79 --- /dev/null +++ b/node_modules/nablarch-widget-placeholder/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-widget-placeholder" + , "description": "繝励Ξ繝シ繧ケ繝帙Ν繝繝シ繧ヲ繧」繧ク繧ァ繝繝" + , "version": "1.0.0" + , "_from" : "nablarch-widget-placeholder@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-widget-placeholder/ui_public/css/ui/placeholder.less b/node_modules/nablarch-widget-placeholder/ui_public/css/ui/placeholder.less new file mode 100644 index 0000000..1a56081 --- /dev/null +++ b/node_modules/nablarch-widget-placeholder/ui_public/css/ui/placeholder.less @@ -0,0 +1,15 @@ +@placeholderColor: #bbb; + +:-webkit-input-placeholder { + color: @placeholderColor; +} + +:-moz-placeholder { + color: @placeholderColor; +} +:-ms-input-placeholder { /* Internet Explorer 10+ */ + color: @placeholderColor; +} +.nablarch_placeholder { + color: @placeholderColor; +} diff --git a/node_modules/nablarch-widget-placeholder/ui_public/js/nablarch/ui/Placeholder.js b/node_modules/nablarch-widget-placeholder/ui_public/js/nablarch/ui/Placeholder.js new file mode 100644 index 0000000..9e30c0a --- /dev/null +++ b/node_modules/nablarch-widget-placeholder/ui_public/js/nablarch/ui/Placeholder.js @@ -0,0 +1,130 @@ +/** + * IE縺ェ縺ゥ縺ョ繝阪う繝繧」繝悶〒placeholder螻樊ァ繧偵し繝昴シ繝医@縺ヲ縺縺ェ縺繝悶Λ繧ヲ繧カ縺ァ繝励Ξ繝シ繧ケ繝帙Ν繝繧定。ィ遉コ縺吶kUI驛ィ蜩√ + * + * 繝阪う繝繧」繝悶〒placeholder螻樊ァ繧偵し繝昴シ繝医@縺ヲ縺繧九ヶ繝ゥ繧ヲ繧カ縺ョ蝣エ蜷医ッ菴輔b蜃ヲ逅縺励↑縺縲 + * + * @author Kiyohito Itoh + * @since 1.2 + */ +define(["jquery" + , "nablarch/ui/Widget" + , "nablarch/ui/event" + , "sugar"], +function($, Widget) { "use strict"; + + // placeholder螻樊ァ繧偵し繝昴シ繝医@縺ヲ縺繧九ヶ繝ゥ繧ヲ繧カ縺ョ蝣エ蜷医ッ縺吶$縺ォ繝ェ繧ソ繝シ繝ウ縲 + if ("placeholder" in document.createElement("input")) { + return {}; + } + + /** + * 繝「繧ク繝・繝シ繝ォ螳夂セゥ縲 + * + * 蜈・蜉帛、縺ョ蜿門セ励→險ュ螳壹〒繝励Ξ繝シ繧ケ繝帙Ν繝縺ォ蟇セ蠢懊☆繧九◆繧√)Query縺ョ$.val()繧偵が繝シ繝舌シ繝ゥ繧、繝峨☆繧九 + * + * $.val() + * 繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ヲ縺繧句エ蜷医ッ縲∫ゥコ譁蟄励r霑斐☆縲 + * 繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ヲ縺縺ェ縺蝣エ蜷医ッ縲)Query縺ョ$.val()繧貞他縺ウ蜃コ縺吶 + * + * $.val(value) + * 繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ヲ縺繧句エ蜷医√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョCSS繧ッ繝ゥ繧ケ繧貞炎髯、縺励 + * jQuery縺ョ$.val(value)繧貞他縺ウ蜃コ縺吶 + * 繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ヲ縺縺ェ縺蝣エ蜷医ッ縲)Query縺ョ$.val(value)繧貞他縺ウ蜃コ縺吶 + */ + function define() { + + $.fn.originalVal = $.fn.val; + $.fn.val = function Placeholder_jQuery_val(value) { + + var $this = $(this) + , placeholder = $this.attr("placeholder") + , originalValResult = value !== undefined ? $this.originalVal(value) : $this.originalVal(); + + if (!placeholder) { + // placeholder螻樊ァ縺瑚ィュ螳壹&繧後※縺縺ェ縺蝣エ蜷 + return originalValResult; + } + + if (value !== undefined) { + // $.val(value)蜻シ縺ウ蜃コ縺励ョ蝣エ蜷 + $this.removeClass(Placeholder.className); + if (value === "") { + // 險ュ螳壹&繧後◆蛟、縺檎ゥコ譁蟄怜励ョ蝣エ蜷医↓縺ッ縲}laceholder螻樊ァ縺ョ蛟、繧致alue螻樊ァ縺ォ險ュ螳壹@縲 + // Placeholder逕ィ繧ッ繝ゥ繧ケ螻樊ァ繧定ソス蜉縺吶k縲 + $this.originalVal(placeholder).addClass(Placeholder.className); + } + return originalValResult; + } else { + return $this.hasClass(Placeholder.className) && placeholder === originalValResult ? "" : originalValResult; + } + }; + + return Placeholder; + } + + Placeholder.prototype = Object.merge(new Widget(), { + show: Placeholder_show + , hide: Placeholder_hide + }); + + Placeholder.event = { + "$node focusin" : "hide" + , "$node focusout" : "show" + , "document beforeSubmit" : "hide" + , "document afterSubmit" : "show" + }; + + Placeholder.widgetType = "nablarch_Placeholder"; + + /** 繝励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョCSS繧ッ繝ゥ繧ケ蜷 */ + Placeholder.className = "nablarch_placeholder"; + + Placeholder.selector = ":text[placeholder],textarea[placeholder]"; + + Widget.register(Placeholder); + + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縲 + * @param element placeholder螻樊ァ縺梧欠螳壹&繧後◆DOM繝弱シ繝 + * @param option 繧ェ繝励す繝ァ繝ウ(譛ェ菴ソ逕ィ) + * @returns {Placeholder} + */ + function Placeholder(element, option) { + this.constructor = Placeholder; + Widget.call(this, element); + this.show(); + } + + /** + * 繝励Ξ繝シ繧ケ繝帙Ν繝繧定。ィ遉コ縺吶k縲 + * + * 蟇セ雎。繝弱シ繝峨ョplaceholder螻樊ァ縺ョ蛟、縺檎ゥコ縺ァ縺ェ縺上∝・蜉帛、縺檎ゥコ縺ョ蝣エ蜷医ョ縺ソ繝励Ξ繝シ繧ケ繝帙Ν繝繧定。ィ遉コ縺吶k縲 + * 繝励Ξ繝シ繧ケ繝帙Ν繝陦ィ遉コ譎ゅ↓縺ッ繝励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョCSS繧ッ繝ゥ繧ケ繧定ソス蜉縺吶k縲 + * + * @param event {jQuery.Event} 繧、繝吶Φ繝 + */ + function Placeholder_show(event) { + var placeholder = this.$node.attr("placeholder"); + if (placeholder && !this.$node.val()) { + this.$node.originalVal(placeholder).addClass(Placeholder.className); + } + } + + /** + * 繝励Ξ繝シ繧ケ繝帙Ν繝繧呈カ亥悉縺吶k縲 + * + * 蟇セ雎。繝弱シ繝峨ョplaceholder螻樊ァ縺ョ蛟、縺檎ゥコ縺ァ縺ェ縺上√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョCSS繧ッ繝ゥ繧ケ縺梧欠螳壹&繧後※縺繧句エ蜷医ョ縺ソ + * 繝励Ξ繝シ繧ケ繝帙Ν繝繧呈カ亥悉縺吶k縲 + * 繝励Ξ繝シ繧ケ繝帙Ν繝豸亥悉譎ゅ↓縺ッ繝励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョCSS繧ッ繝ゥ繧ケ繧貞炎髯、縺吶k縲 + * + * @param event {jQuery.Event} 繧、繝吶Φ繝 + */ + function Placeholder_hide(event) { + var placeholder = this.$node.attr("placeholder"); + if (placeholder && this.$node.is("." + Placeholder.className)) { + this.$node.originalVal("").removeClass(Placeholder.className); + } + } + + return define(); +}); diff --git "a/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/index.jsp" "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/index.jsp" new file mode 100644 index 0000000..650ca16 --- /dev/null +++ "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/index.jsp" @@ -0,0 +1,21 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
  • +
  • +
+
+
+
\ No newline at end of file diff --git "a/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" new file mode 100644 index 0000000..5a22cc7 --- /dev/null +++ "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" @@ -0,0 +1,150 @@ + runTest( + 繝阪う繝繧」繝悶〒placeholder螻樊ァ繧偵し繝昴シ繝医@縺ヲ縺繧句エ蜷医ッPlaceholder縺碁←逕ィ縺輔l縺ェ縺縺薙→, + 繝阪う繝繧」繝悶〒placeholder螻樊ァ繧偵し繝昴シ繝医@縺ヲ縺縺ェ縺蝣エ蜷医ッPlaceholder縺碁←逕ィ縺輔l繧九%縺ィ, + 繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l繧九%縺ィ, + 蛟、繧貞・蜉帙ヵ繧」繝シ繝ォ繝峨↓蜈・蜉帙@縺溷エ蜷医ッ繝励Ξ繝シ繧ケ繝帙Ν繝縺梧カ医∴繧九%縺ィ, + 繧オ繝悶Α繝繝域凾縺ォ繝励Ξ繝シ繧ケ繝帙Ν繝縺碁∽ソ。縺輔l縺ェ縺縺薙→ + ); + + var isSupportsNativePlaceholder + , $text1 + , $text2 + , $text3 + , $textarea1 + , $textarea2 + , $textarea3; + + /** + * 螟画焚縺ョ蛻晄悄蛹悶 + */ + function setupVariables() { + isSupportsNativePlaceholder = "placeholder" in document.createElement("input"); + $text1 = $("#text1"); + $text2 = $("#text2"); + $text3 = $("#text3"); + $textarea1 = $("#textarea1"); + $textarea2 = $("#textarea2"); + $textarea3 = $("#textarea3"); + } + + /** + * 螟画焚縺ョ繝繝輔か繝ォ繝亥、險ュ螳壹 + */ + function setupDefaultValues() { + $text1.val(""); + $text2.val("縺ゅ>縺縺医♀"); + $text3.val(""); + $textarea1.val(""); + $textarea2.val("縺九″縺上¢縺"); + $textarea3.val(""); + } + + function 繝阪う繝繧」繝悶〒placeholder螻樊ァ繧偵し繝昴シ繝医@縺ヲ縺繧句エ蜷医ッPlaceholder縺碁←逕ィ縺輔l縺ェ縺縺薙→() { + setupVariables(); + setupDefaultValues(); + + if (!isSupportsNativePlaceholder) { + ok(true, "繝阪う繝繧」繝悶〒placeholder螻樊ァ繧偵し繝昴シ繝医@縺ヲ縺縺ェ縺繝悶Λ繧ヲ繧カ縺後ユ繧ケ繝亥ッセ雎。縺ョ縺溘a縲∝クク縺ォ繝繧ケ繝域仙粥縺ィ縺吶k縲"); + return; + } + + // Placeholder縺碁←逕ィ縺輔l縺ェ縺縺薙→縺ョ遒コ隱 + ok(!$text1.attr("class").has("nablarch_placeholder"), "繝阪う繝繧」繝悶〒placeholder繧偵し繝昴シ繝医@縺ヲ縺繧九ョ縺ァ縲》ext1縺ォPlaceholder繧ッ繝ゥ繧ケ縺碁←逕ィ縺輔l縺ェ縺縲"); + ok(!$text2.attr("class").has("nablarch_placeholder"), "繝阪う繝繧」繝悶〒placeholder繧偵し繝昴シ繝医@縺ヲ縺繧九ョ縺ァ縲》ext2縺ォPlaceholder繧ッ繝ゥ繧ケ縺碁←逕ィ縺輔l縺ェ縺縲"); + ok(!$text3.attr("class").has("nablarch_placeholder"), "繝阪う繝繧」繝悶〒placeholder繧偵し繝昴シ繝医@縺ヲ縺繧九ョ縺ァ縲》ext3縺ォPlaceholder繧ッ繝ゥ繧ケ縺碁←逕ィ縺輔l縺ェ縺縲"); + ok(!$textarea1.attr("class").has("nablarch_placeholder"), "繝阪う繝繧」繝悶〒placeholder繧偵し繝昴シ繝医@縺ヲ縺繧九ョ縺ァ縲》extarea1縺ォPlaceholder繧ッ繝ゥ繧ケ縺碁←逕ィ縺輔l縺ェ縺縲"); + ok(!$textarea2.attr("class").has("nablarch_placeholder"), "繝阪う繝繧」繝悶〒placeholder繧偵し繝昴シ繝医@縺ヲ縺繧九ョ縺ァ縲》extarea2縺ォPlaceholder繧ッ繝ゥ繧ケ縺碁←逕ィ縺輔l縺ェ縺縲"); + ok(!$textarea3.attr("class").has("nablarch_placeholder"), "繝阪う繝繧」繝悶〒placeholder繧偵し繝昴シ繝医@縺ヲ縺繧九ョ縺ァ縲》extarea3縺ォPlaceholder繧ッ繝ゥ繧ケ縺碁←逕ィ縺輔l縺ェ縺縲"); + + // $.val()縺後が繝シ繝舌シ繝ゥ繧、繝峨&繧後↑縺縺薙→縺ョ遒コ隱 + $text1.val("10譁蟄励∪縺ァ蜈・蜉帙〒縺阪∪縺吶"); + equal($text1.val(), "10譁蟄励∪縺ァ蜈・蜉帙〒縺阪∪縺吶", "placeholder螻樊ァ縺ィ蜷後§蛟、繧致alue螻樊ァ縺ォ險ュ螳壹@縺溷エ蜷(text1)縺ッ縲$.val()蜻シ縺ウ蜃コ縺励〒value螻樊ァ縺ョ蛟、縺瑚ソ斐&繧後k縲"); + } + + function 繝阪う繝繧」繝悶〒placeholder螻樊ァ繧偵し繝昴シ繝医@縺ヲ縺縺ェ縺蝣エ蜷医ッPlaceholder縺碁←逕ィ縺輔l繧九%縺ィ() { + setupVariables(); + setupDefaultValues(); + + if (isSupportsNativePlaceholder) { + ok(true, "繝阪う繝繧」繝悶〒placeholder螻樊ァ繧偵し繝昴シ繝医@縺ヲ縺繧九ヶ繝ゥ繧ヲ繧カ縺後ユ繧ケ繝亥ッセ雎。縺ョ縺溘a蟶ク縺ォ繝繧ケ繝域仙粥縺ィ縺吶k縲"); + return; + } + + // Placeholder縺碁←逕ィ縺輔l繧九%縺ィ縺ョ遒コ隱 + equal($text1.attr("class").trim(), "nablarch_placeholder", "繝阪う繝繧」繝悶〒placeholder繧偵し繝昴シ繝医@縺ヲ縺縺ェ縺縺ョ縺ァ縲》ext1縺ォPlaceholder繧ッ繝ゥ繧ケ縺碁←逕ィ縺輔l繧九"); + equal($text2.attr("class").trim(), "", "蛟、縺瑚ィュ螳壹&繧後※縺繧九ョ縺ァ縲 ̄laceholder繧ッ繝ゥ繧ケ縺ッ驕ゥ逕ィ縺輔l縺ェ縺縲"); + equal($text3.attr("class").trim(), "", "placeholder螻樊ァ繧呈欠螳壹@縺ヲ縺縺ェ縺縺ョ縺ァ縲》ext3縺ォPlaceholder繧ッ繝ゥ繧ケ縺碁←逕ィ縺輔l縺ェ縺縲"); + equal($textarea1.attr("class").trim(), "nablarch_placeholder", "繝阪う繝繧」繝悶〒placeholder繧偵し繝昴シ繝医@縺ヲ縺縺ェ縺縺ョ縺ァ縲》extarea1縺ォPlaceholder繧ッ繝ゥ繧ケ縺碁←逕ィ縺輔l繧九"); + equal($textarea2.attr("class").trim(), "", "蛟、縺瑚ィュ螳壹&繧後※縺繧九ョ縺ァ縲 ̄laceholder繧ッ繝ゥ繧ケ縺ッ驕ゥ逕ィ縺輔l縺ェ縺縲"); + equal($textarea3.attr("class").trim(), "", "placeholder螻樊ァ繧呈欠螳壹@縺ヲ縺縺ェ縺縺ョ縺ァ縲》extarea3縺ォPlaceholder繧ッ繝ゥ繧ケ縺碁←逕ィ縺輔l縺ェ縺縲"); + + // $.val()縺後が繝シ繝舌シ繝ゥ繧、繝峨&繧後k縺薙→縺ョ遒コ隱 + $text1.val(""); + ok($text1.hasClass("nablarch_placeholder"), "遨コ譁蟄励r險ュ螳壹@縺溷エ蜷医√励Ξ繝シ繧ケ繝帙Ν繝繝シ繧堤、コ縺冂lass縺瑚ィュ螳壹&繧後k"); + equal($text1.val(), "", "遨コ譁蟄怜励r險ュ螳壹@縺ヲ縺繧九ョ縺ァ遨コ譁蟄怜励′蜿門セ怜コ譚・繧"); + equal($text1.originalVal(), "10譁蟄励∪縺ァ蜈・蜉帙〒縺阪∪縺吶", "遨コ譁蟄怜励r險ュ螳壹@縺ヲ縺繧九ョ縺ァ遨コ譁蟄怜励′蜿門セ怜コ譚・繧"); + } + + function 繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l繧九%縺ィ() { + setupVariables(); + setupDefaultValues(); + + if (isSupportsNativePlaceholder) { + ok(true, "繝阪う繝繧」繝悶〒placeholder螻樊ァ繧偵し繝昴シ繝医@縺ヲ縺繧九ヶ繝ゥ繧ヲ繧カ縺後ユ繧ケ繝亥ッセ雎。縺ョ縺溘a蟶ク縺ォ繝繧ケ繝域仙粥縺ィ縺吶k縲"); + return; + } + + equal($text1.val(), "", "placeholder螻樊ァ縺ョ蛟、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九ョ縺ァ縲)Query#val()縺ッ遨コ譁蟄怜励r霑斐☆縲"); + ok($text1.hasClass("nablarch_placeholder"), "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l繧句エ蜷(text1)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺瑚ソス蜉縺輔l繧九"); + equal($text2.val(), "縺ゅ>縺縺医♀", "value螻樊ァ縺檎ゥコ縺ァ縺ェ縺蝣エ蜷(text2)縺ッ縲」alue螻樊ァ縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九"); + ok(!$text2.hasClass("nablarch_placeholder"), "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ェ縺蝣エ蜷(text2)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺瑚ソス蜉縺輔l縺ェ縺縲"); + equal($text3.val(), "", "value螻樊ァ縺檎ゥコ縺九▽placeholder螻樊ァ縺ョ謖螳壹′縺ェ縺蝣エ蜷(text3)縺ッ縲∫ゥコ譁蟄励′陦ィ遉コ縺輔l繧九"); + ok(!$text3.hasClass("nablarch_placeholder"), "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ェ縺蝣エ蜷(text3)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺瑚ソス蜉縺輔l縺ェ縺縲"); + equal($textarea1.val(), "", "placeholder螻樊ァ縺ョ蛟、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九ョ縺ァ縲)Query#val()縺ッ遨コ譁蟄怜励r霑斐☆縲"); + ok($textarea1.hasClass("nablarch_placeholder"), "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l繧句エ蜷(textarea1)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺瑚ソス蜉縺輔l繧九"); + equal($textarea2.val(), "縺九″縺上¢縺", "value螻樊ァ縺檎ゥコ縺ァ縺ェ縺蝣エ蜷(textarea2)縺ッ縲」alue螻樊ァ縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九"); + ok(!$textarea2.hasClass("nablarch_placeholder"), "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ェ縺蝣エ蜷(textarea2)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺瑚ソス蜉縺輔l縺ェ縺縲"); + equal($textarea3.val(), "", "value螻樊ァ縺檎ゥコ縺九▽placeholder螻樊ァ縺ョ謖螳壹′縺ェ縺蝣エ蜷(textarea3)縺ッ縲∫ゥコ譁蟄励′陦ィ遉コ縺輔l繧九"); + ok(!$textarea3.hasClass("nablarch_placeholder"), "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ェ縺蝣エ蜷(textarea3)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺瑚ソス蜉縺輔l縺ェ縺縲"); + } + + function 蛟、繧貞・蜉帙ヵ繧」繝シ繝ォ繝峨↓蜈・蜉帙@縺溷エ蜷医ッ繝励Ξ繝シ繧ケ繝帙Ν繝縺梧カ医∴繧九%縺ィ() { + setupVariables(); + setupDefaultValues(); + + if (isSupportsNativePlaceholder) { + ok(true, "繝阪う繝繧」繝悶〒placeholder螻樊ァ繧偵し繝昴シ繝医@縺ヲ縺繧九ヶ繝ゥ繧ヲ繧カ縺後ユ繧ケ繝亥ッセ雎。縺ョ縺溘a蟶ク縺ォ繝繧ケ繝域仙粥縺ィ縺吶k縲"); + return; + } + + $text1.val("text1縺ォ蛟、繧定ィュ螳壹☆繧九"); + equal($text1.val(), "text1縺ォ蛟、繧定ィュ螳壹☆繧九", "value螻樊ァ縺ォ蛟、繧定ィュ螳壹@縺溷エ蜷(text1)縺ッ縲」alue螻樊ァ縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九"); + ok(!$text1.hasClass("nablarch_placeholder"), "value螻樊ァ縺ォ蛟、繧定ィュ螳壹@縺溷エ蜷(text1)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺悟炎髯、縺輔l繧九"); + + $textarea1.val("textarea1縺ォ蛟、繧定ィュ螳壹☆繧九"); + equal($textarea1.val(), "textarea1縺ォ蛟、繧定ィュ螳壹☆繧九", "value螻樊ァ縺ォ蛟、繧定ィュ螳壹@縺溷エ蜷(textarea1)縺ッ縲」alue螻樊ァ縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九"); + ok(!$textarea1.hasClass("nablarch_placeholder"), "value螻樊ァ縺ォ蛟、繧定ィュ螳壹@縺溷エ蜷(textarea1)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺悟炎髯、縺輔l繧九"); + + } + + function 繧オ繝悶Α繝繝域凾縺ォ繝励Ξ繝シ繧ケ繝帙Ν繝縺碁∽ソ。縺輔l縺ェ縺縺薙→() { + setupVariables(); + setupDefaultValues(); + + if (isSupportsNativePlaceholder) { + ok(true, "繝阪う繝繧」繝悶〒placeholder螻樊ァ繧偵し繝昴シ繝医@縺ヲ縺繧九ヶ繝ゥ繧ヲ繧カ縺後ユ繧ケ繝亥ッセ雎。縺ョ縺溘a蟶ク縺ォ繝繧ケ繝域仙粥縺ィ縺吶k縲"); + return; + } + + $(document).one("beforeSubmit", function (event, submitName, form) { + equal($(form["formdata.text1"]).val(), "", "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺滄逶ョ(text1)縺ッ縲∫ゥコ譁蟄励′騾∽ソ。縺輔l繧九"); + equal($(form["formdata.text2"]).val(), "縺ゅ>縺縺医♀", "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ヲ縺ェ縺鬆逶ョ(text2)縺ッ縲√◎縺ョ縺セ縺セ騾∽ソ。縺輔l繧九"); + equal($(form["formdata.text3"]).val(), "", "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ヲ縺ェ縺鬆逶ョ(text3)縺ッ縲√◎縺ョ縺セ縺セ騾∽ソ。縺輔l繧九"); + equal($(form["formdata.textarea1"]).val(), "", "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺滄逶ョ(textarea1)縺ッ縲∫ゥコ譁蟄励′騾∽ソ。縺輔l繧九"); + equal($(form["formdata.textarea2"]).val(), "縺九″縺上¢縺", "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ヲ縺ェ縺鬆逶ョ(textarea2)縺ッ縲√◎縺ョ縺セ縺セ騾∽ソ。縺輔l繧九"); + equal($(form["formdata.textarea3"]).val(), "", "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ヲ縺ェ縺鬆逶ョ(textarea3)縺ッ縲√◎縺ョ縺セ縺セ騾∽ソ。縺輔l繧九"); + return false; + }); + $("#check").click(); // 縲檎「コ隱阪阪懊ち繝ウ繧偵け繝ェ繝繧ッ + } + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" new file mode 100644 index 0000000..6664383 --- /dev/null +++ "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" @@ -0,0 +1,22 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> + +<% + request.setAttribute("formdata", new HashMap() {{ + put("effectiveDate", "2012/10/20"); + }}); +%> + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.js" "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.js" new file mode 100644 index 0000000..d1bffd5 --- /dev/null +++ "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.js" @@ -0,0 +1,45 @@ + runTest(繧ィ繝ゥ繝シ譎ゅョ蜀肴緒逕サ縺ァ繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l繧九%縺ィ); + + var isSupportsNativePlaceholder + , $text1 + , $text2 + , $text3 + , $textarea1 + , $textarea2 + , $textarea3; + + /** + * 螟画焚縺ョ蛻晄悄蛹悶 + */ + function setupVariables() { + isSupportsNativePlaceholder = "placeholder" in document.createElement("input"); + $text1 = $("#text1"); + $text2 = $("#text2"); + $text3 = $("#text3"); + $textarea1 = $("#textarea1"); + $textarea2 = $("#textarea2"); + $textarea3 = $("#textarea3"); + } + + function 繧ィ繝ゥ繝シ譎ゅョ蜀肴緒逕サ縺ァ繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l繧九%縺ィ() { + setupVariables(); + + if (isSupportsNativePlaceholder) { + ok(true, "繝阪う繝繧」繝悶〒placeholder螻樊ァ繧偵し繝昴シ繝医@縺ヲ縺繧九ヶ繝ゥ繧ヲ繧カ縺後ユ繧ケ繝亥ッセ雎。縺ョ縺溘a蟶ク縺ォ繝繧ケ繝域仙粥縺ィ縺吶k縲"); + return; + } + + equal($text1.val(), "", "placeholder螻樊ァ縺ョ蛟、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九ョ縺ァ縲)Query#val()縺ッ遨コ譁蟄怜励r霑斐☆縲"); + ok($text1.hasClass("nablarch_placeholder"), "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l繧句エ蜷(text1)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺瑚ソス蜉縺輔l繧九"); + equal($text2.val(), "シ托シ抵シ難シ費シ包シ厄シ暦シ假シ呻シ撰シ托シ抵シ難シ費シ包シ厄シ暦シ假シ呻シ撰シ", "value螻樊ァ縺檎ゥコ縺ァ縺ェ縺蝣エ蜷(text2)縺ッ縲」alue螻樊ァ縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九"); + ok(!$text2.hasClass("nablarch_placeholder"), "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ェ縺蝣エ蜷(text2)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺瑚ソス蜉縺輔l縺ェ縺縲"); + equal($text3.val(), "", "value螻樊ァ縺檎ゥコ縺九▽placeholder螻樊ァ縺ョ謖螳壹′縺ェ縺蝣エ蜷(text3)縺ッ縲∫ゥコ譁蟄励′陦ィ遉コ縺輔l繧九"); + ok(!$text3.hasClass("nablarch_placeholder"), "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ェ縺蝣エ蜷(text3)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺瑚ソス蜉縺輔l縺ェ縺縲"); + equal($textarea1.val(), "", "placeholder螻樊ァ縺ョ蛟、縺瑚。ィ遉コ縺輔l縺ヲ縺繧九ョ縺ァ縲)Query#val()縺ッ遨コ譁蟄怜励r霑斐☆縲"); + ok($textarea1.hasClass("nablarch_placeholder"), "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l繧句エ蜷(textarea1)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺瑚ソス蜉縺輔l繧九"); + equal($textarea2.val(), "シ托シ抵シ難シ費シ包シ厄シ暦シ假シ呻シ撰シ托シ抵シ難シ費シ包シ厄シ暦シ假シ呻シ撰シ托シ抵シ難シ費シ包シ厄シ暦シ假シ呻シ撰シ托シ抵シ難シ費シ包シ厄シ暦シ假シ呻シ撰シ", "value螻樊ァ縺檎ゥコ縺ァ縺ェ縺蝣エ蜷(textarea2)縺ッ縲」alue螻樊ァ縺ョ蛟、縺瑚。ィ遉コ縺輔l繧九"); + ok(!$textarea2.hasClass("nablarch_placeholder"), "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ェ縺蝣エ蜷(textarea2)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺瑚ソス蜉縺輔l縺ェ縺縲"); + equal($textarea3.val(), "", "value螻樊ァ縺檎ゥコ縺九▽placeholder螻樊ァ縺ョ謖螳壹′縺ェ縺蝣エ蜷(textarea3)縺ッ縲∫ゥコ譁蟄励′陦ィ遉コ縺輔l繧九"); + ok(!$textarea3.hasClass("nablarch_placeholder"), "繝励Ξ繝シ繧ケ繝帙Ν繝縺瑚。ィ遉コ縺輔l縺ェ縺蝣エ蜷(textarea3)縺ッ縲√励Ξ繝シ繧ケ繝帙Ν繝逕ィ縺ョclass螻樊ァ縺瑚ソス蜉縺輔l縺ェ縺縲"); + } + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.jsp" "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.jsp" new file mode 100644 index 0000000..f8e24d7 --- /dev/null +++ "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.jsp" @@ -0,0 +1,26 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> +<% + request.setAttribute("formdata", new HashMap() {{ + put("text1", ""); + put("text2", "シ托シ抵シ難シ費シ包シ厄シ暦シ假シ呻シ撰シ托シ抵シ難シ費シ包シ厄シ暦シ假シ呻シ撰シ"); + put("text3", ""); + put("textarea1", ""); + put("textarea2", "シ托シ抵シ難シ費シ包シ厄シ暦シ假シ呻シ撰シ托シ抵シ難シ費シ包シ厄シ暦シ假シ呻シ撰シ托シ抵シ難シ費シ包シ厄シ暦シ假シ呻シ撰シ托シ抵シ難シ費シ包シ厄シ暦シ假シ呻シ撰シ"); + put("textarea3", ""); + }}); +%> + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..11ac373 --- /dev/null +++ "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,70 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..2f529e1 --- /dev/null +++ "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,15 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..560fdd1 --- /dev/null +++ "b/node_modules/nablarch-widget-placeholder/ui_test/jsp/\343\203\227\343\203\254\343\203\274\343\202\271\343\203\233\343\203\253\343\203\200\343\203\274/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" @@ -0,0 +1,11 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + \ No newline at end of file diff --git a/node_modules/nablarch-widget-readonly/package.json b/node_modules/nablarch-widget-readonly/package.json new file mode 100644 index 0000000..583c46f --- /dev/null +++ b/node_modules/nablarch-widget-readonly/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-widget-readonly" + , "description": "螟画峩荳榊庄鬆逶ョ繧ヲ繧」繧ク繧ァ繝繝" + , "version": "1.0.0" + , "_from" : "nablarch-widget-readonly@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-widget-readonly/ui_public/css/ui/readonly.less b/node_modules/nablarch-widget-readonly/ui_public/css/ui/readonly.less new file mode 100644 index 0000000..5bd1d92 --- /dev/null +++ b/node_modules/nablarch-widget-readonly/ui_public/css/ui/readonly.less @@ -0,0 +1,13 @@ +// 螟画峩荳榊庄隕∫エ +input, select, textarea { + &.nablarch_readonly { + background-color : #efefef; + color: #555; + } +} + +input[type='checkbox'], input[type='radio'] { + &.nablarch_readonly { + background-color : transparent !important; + } +} diff --git a/node_modules/nablarch-widget-readonly/ui_public/js/nablarch/ui/readonly.js b/node_modules/nablarch-widget-readonly/ui_public/js/nablarch/ui/readonly.js new file mode 100644 index 0000000..3c68a44 --- /dev/null +++ b/node_modules/nablarch-widget-readonly/ui_public/js/nablarch/ui/readonly.js @@ -0,0 +1,88 @@ +/** + * 蜈・蜉幄ヲ∫エ縺ォ蟇セ縺吶k螟画峩繧剃ク榊庄(readonly)縺ォ縺吶k讖溯ス縲 + * + * 蜈・蜉幄ヲ∫エ縺ォ蟇セ縺励※繝槭シ繧ォCSS **nablarch_readonly** 繧帝←逕ィ縺吶k縺薙→縺ァ + * 蟇セ雎。縺ョ隕∫エ縺ォ莉・荳九ョ蜉ケ譫懊r荳弱∴繧九 + * + * 1. 蜈・蜉幃逶ョ縺ォ蟇セ縺吶k螟画峩繧呈椛蛻カ縺吶k縲 + * 2. 繧オ繝悶Α繝繝域凾縺ォ騾∽ソ。蟇セ雎。縺ィ縺ェ繧九 + * 3. 螟画峩荳榊庄縺ァ縺ゅk縺薙→繧定。ィ縺吶◆繧√↓閭梧勹濶イ繧堤ー濶イ(disabled縺ィ蜷後§陦ィ遉コ)縺ォ螟画峩縺吶k縲 + * + * 莉・荳九ョ萓九〒縺ッ縲√メ繧ァ繝繧ッ繝懊ャ繧ッ繧ケ縺ョ螟画峩繧呈椛豁「縺励※縺繧九 + * + *
+ *  
+ *   
+ * 
+ * 
+ * + * **DOM縺ョreadonly螻樊ァ縺ィ縺ョ逶ク驕慕せ** + * 繧ゅ→繧ゅ→縲.OM縺ョreadonly螻樊ァ縺ッ縲∝・蜉幄ヲ∫エ縺ョvalue螻樊ァ蛟、縺ョ螟画峩繧呈椛蛻カ縺吶k繧ゅョ縺ェ縺ョ縺ァ縲 + * select繧ソ繧ー繧checkbox縺ョ驕ク謚樒憾諷(selected/checked)縺ョ螟画峩繧呈椛豁「縺吶k縺薙→縺ッ縺ァ縺阪↑縺縲 + * 荳譁ケ縲 **nablarch_readonly** 縺ァ縺ッ縲驕ク謚樒憾諷九ョ螟画峩縺ォ縺、縺縺ヲ繧ょ・蜉帛、縺ィ蜷梧ァ倥↓ + * 謚大宛縺吶k縺薙→縺悟庄閭ス縺ィ縺ェ縺」縺ヲ縺繧九 + * + * @author Iwauo Tajima + * @since 1.2 + */ +define([ + "jquery" // jQuery繝ゥ繧、繝悶Λ繝ェ +, "nablarch/ui/event" // beforeSubmit/afterSubmit繧、繝吶Φ繝亥ョ夂セゥ +, "sugar" // sugarjs繝ゥ繧、繝悶Λ繝ェ +], +function($) {'use strict'; + var markerCss = "nablarch_readonly"; + + + /** + * 繝「繧ク繝・繝シ繝ォ螳夂セゥ + */ + function define() { + $.fn.readonly = jQuery_readonly; + $(function() { + $target().readonly(); + $(document) + .on("beforeSubmit", Readonly_beforeSubmit) + .on("afterSubmit", Readonly_afterSubmit); + }); + return {markerCss: markerCss}; + } + + /** + * 蟇セ雎。隕∫エ繧貞、画峩荳榊庄縺ォ縺吶k縲 + */ + function jQuery_readonly(readonly) { + readonly = (arguments.length === 0) ? true + : !!(readonly); + return this.each(function() { + var $this = $(this); + readonly ? $this.addClass(markerCss) + : $this.removeClass(markerCss); + $this.prop("disabled", readonly); + }); + } + + /** + * 繧オ繝悶Α繝繝亥ヲ逅縺ョ逶エ蜑阪↓disabled螻樊ァ繧定ァ」髯、縺吶k縲 + */ + function Readonly_beforeSubmit() { + $target().each(function(){ $(this).prop("disabled", false); }); + } + + /** + * 繧オ繝悶Α繝繝亥ヲ逅縺ョ螳御コ蠕後↓disabled螻樊ァ繧偵▽縺醍峩縺吶 + * (繧オ繝悶Α繝繝亥セ後b逕サ髱「縺後い繝ウ繝ュ繝シ繝峨@縺ェ縺蝣エ蜷医ョ縺ソ縲) + */ + function Readonly_afterSubmit() { + $target().each(function(){ $(this).prop("disabled", true); }); + } + + /** + * 蟇セ雎。隕∫エ繧貞叙蠕励☆繧九 + */ + function $target() { + return $("select, input, textarea").filter("." + markerCss); + } + + return define(); +}); diff --git "a/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/index.jsp" "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/index.jsp" new file mode 100644 index 0000000..487cd3c --- /dev/null +++ "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/index.jsp" @@ -0,0 +1,21 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
  • +
  • +
+
+
+
\ No newline at end of file diff --git "a/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" new file mode 100644 index 0000000..0a2d2e5 --- /dev/null +++ "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" @@ -0,0 +1,51 @@ +require(["nablarch/ui/DatePicker"], +function(DatePicker) { + var $dateField, $radiobuttons; + + runTest( + 蛻晄悄陦ィ遉コ譎ゅ↓nablarch_readonly縺梧欠螳壹&繧後◆隕∫エ縺ッ蜈ィ縺ヲdisabled縺ォ縺ェ繧九%縺ィ + , 繧オ繝悶Α繝繝域凾縺ォ縺ッdisabled縺瑚ァ」髯、縺輔l蛟、縺碁∽ソ。縺輔l繧九%縺ィ + , API蜻シ縺ウ蜃コ縺励↓繧医knablarch_readonly螻樊ァ縺ョ險ュ螳壹→隗」髯、縺悟庄閭ス縺ェ縺薙→ + ); + + function setup() { + $dateField = $("input[name='formdata.flightDate']"); + $radiobuttons = $("input[name='formdata.sheetGrade']"); + } + + function 蛻晄悄陦ィ遉コ譎ゅ↓nablarch_readonly縺梧欠螳壹&繧後◆隕∫エ縺ッ蜈ィ縺ヲdisabled縺ォ縺ェ繧九%縺ィ() { + setup(); + ok($dateField.is(":disabled"), "蜈・蜉帙ヵ繧」繝シ繝ォ繝峨′disabled迥カ諷九↓縺ェ繧"); + ok($radiobuttons.is(":disabled"), "繝ゥ繧ク繧ェ繝懊ち繝ウ繧Eisabled迥カ諷九↓縺ェ繧"); + } + + function 繧オ繝悶Α繝繝域凾縺ォ縺ッdisabled縺瑚ァ」髯、縺輔l蛟、縺碁∽ソ。縺輔l繧九%縺ィ() { + setup(); + $(document).one("beforeSubmit", function(event, submitName, form) { + equal($(form["formdata.flightDate"]).filter(":not(:disabled)").val(), + "2012/10/10", "disabled縺瑚ァ」髯、縺輔l騾∽ソ。縺輔l繧"); + equal($(form["formdata.sheetGrade"]).filter(":checked:not(:disabled)").val(), + "business", "disabled縺瑚ァ」髯、縺輔l騾∽ソ。縺輔l繧"); + form.reset(); + return false; + }); + $("#check").click(); // 縲檎匳骭イ縲阪懊ち繝ウ繧偵け繝ェ繝繧ッ + } + + function API蜻シ縺ウ蜃コ縺励↓繧医knablarch_readonly螻樊ァ縺ョ險ュ螳壹→隗」髯、縺悟庄閭ス縺ェ縺薙→() { + setup(); + $("input[type='radio']").readonly(true); // 譖エ譁ー荳榊庄縺ォ + + equal($radiobuttons.filter(":disabled").length, 3, + "readonly(true) 縺ァdisabled縺ォ"); + equal($radiobuttons.filter(".nablarch_readonly").length, 3, + "nablarch_readonly 繧ッ繝ゥ繧ケ縺梧欠螳壹&繧後k"); + + $("input[type='radio']").readonly(false); // 譖エ譁ー蜿ッ閭ス縺ォ + + equal($radiobuttons.not(":disabled").length, 3, + "readonly(false) 縺ァdisabled縺瑚ァ」髯、"); + equal($radiobuttons.not(".nablarch_readonly").length, 3, + "nablarch_readonly 繧ッ繝ゥ繧ケ繧ょ、悶l繧"); + } +}); diff --git "a/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" new file mode 100644 index 0000000..4782555 --- /dev/null +++ "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" @@ -0,0 +1,38 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + ui_test.AppServer.currentRequest().setParam( + "formdata.flightDate", new String[] {"2012/10/10"} + ); + + ui_test.AppServer.currentRequest().setParam( + "formdata.sheetGrade", new String[] {"business"} + ); +%> + + + + + + + $(function() { + $("#changeClass").on("click", function() { + $(":input").readonly(false); + return false; + }); + }); + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.js" "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.js" new file mode 100644 index 0000000..6a3ca17 --- /dev/null +++ "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.js" @@ -0,0 +1,20 @@ +require(["nablarch/ui/DatePicker"], +function(DatePicker) { + var $dateField, $radiobuttons; + + runTest( + 蛻晄悄陦ィ遉コ譎ゅ↓nablarch_readonly縺梧欠螳壹&繧後◆隕∫エ縺ッ蜈ィ縺ヲdisabled縺ォ縺ェ繧九%縺ィ + ); + + function setup() { + $dateField = $("input[name='formdata.flightDate']"); + $radiobuttons = $("input[name='formdata.sheetGrade']"); + } + + function 蛻晄悄陦ィ遉コ譎ゅ↓nablarch_readonly縺梧欠螳壹&繧後◆隕∫エ縺ッ蜈ィ縺ヲdisabled縺ォ縺ェ繧九%縺ィ() { + setup(); + ok($dateField.is(":disabled"), "蜈・蜉帙ヵ繧」繝シ繝ォ繝峨′disabled迥カ諷九↓縺ェ繧"); + ok($radiobuttons.is(":disabled"), "繝ゥ繧ク繧ェ繝懊ち繝ウ繧Eisabled迥カ諷九↓縺ェ繧"); + } + +}); diff --git "a/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.jsp" "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.jsp" new file mode 100644 index 0000000..b31cd82 --- /dev/null +++ "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.jsp" @@ -0,0 +1,36 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + ui_test.AppServer.currentRequest().setParam( + "formdata.flightDate", new String[] {"2012/10/10"} + ); + + ui_test.AppServer.currentRequest().setParam( + "formdata.sheetGrade", new String[] {"business"} + ); +%> + + + + + $(function() { + $("#changeClass").on("click", function() { + $(":input").readonly(false); + return false; + }); + }); + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..ce1a1c7 --- /dev/null +++ "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,39 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> +<% + request.setAttribute("sheetGrades", new ArrayList() {{ + add(new HashMap() {{ put("id", "economy"); put("name", "繧ィ繧ウ繝弱Α繝シ繧ッ繝ゥ繧ケ"); }}); + add(new HashMap() {{ put("id", "business"); put("name", "繝薙ず繝阪せ繧ッ繝ゥ繧ケ"); }}); + add(new HashMap() {{ put("id", "first"); put("name", "繝輔ぃ繝シ繧ケ繝医け繝ゥ繧ケ"); }}); + }}); + + request.setAttribute("companies", new ArrayList() {{ + add(new HashMap() {{ put("id", "aaa"); put("name", "AAA闊ェ遨コ"); }}); + add(new HashMap() {{ put("id", "bbb"); put("name", "BBB繧ィ繧「繝ゥ繧、繝ウ"); }}); + add(new HashMap() {{ put("id", "ccc"); put("name", "CCC繧ィ繧「繧キ繧ケ繝繝"); }}); + }}); + + request.setAttribute("useRentalCar", new ArrayList() {{ + add(new HashMap() {{ put("id", "use"); put("name", "菴ソ逕ィ縺吶k"); }}); + }}); + + request.setAttribute("departureTimes", new ArrayList() {{ + add(new HashMap() {{ put("id", "0600"); put("name", "AM 6:00"); }}); + add(new HashMap() {{ put("id", "0700"); put("name", "AM 7:00"); }}); + add(new HashMap() {{ put("id", "0800"); put("name", "AM 8:00"); }}); + add(new HashMap() {{ put("id", "0900"); put("name", "AM 9:00"); }}); + add(new HashMap() {{ put("id", "1000"); put("name", "AM 10:00"); }}); + add(new HashMap() {{ put("id", "1100"); put("name", "AM 11:00"); }}); + add(new HashMap() {{ put("id", "1200"); put("name", "AM 12:00"); }}); + add(new HashMap() {{ put("id", "1300"); put("name", "PM 1:00"); }}); + add(new HashMap() {{ put("id", "1400"); put("name", "PM 2:00"); }}); + add(new HashMap() {{ put("id", "1500"); put("name", "PM 3:00"); }}); + add(new HashMap() {{ put("id", "1600"); put("name", "PM 4:00"); }}); + add(new HashMap() {{ put("id", "1700"); put("name", "PM 5:00"); }}); + add(new HashMap() {{ put("id", "1800"); put("name", "PM 6:00"); }}); + add(new HashMap() {{ put("id", "1900"); put("name", "PM 7:00"); }}); + add(new HashMap() {{ put("id", "2000"); put("name", "PM 8:00"); }}); + add(new HashMap() {{ put("id", "2100"); put("name", "PM 9:00"); }}); + add(new HashMap() {{ put("id", "2200"); put("name", "PM 10:00"); }}); + }}); +%> \ No newline at end of file diff --git "a/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..e672f09 --- /dev/null +++ "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,109 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..bd3a5a4 --- /dev/null +++ "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,36 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + ui_test.AppServer.currentRequest().setParam( + "formdata.flightDate", new String[] {"2012/10/10"} + ); + + ui_test.AppServer.currentRequest().setParam( + "formdata.sheetGrade", new String[] {"business"} + ); +%> + + + + + + $(function() { + $("#changeClass").on("click", function() { + $(":input").readonly(false); + return false; + }); + }); + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..560fdd1 --- /dev/null +++ "b/node_modules/nablarch-widget-readonly/ui_test/jsp/\345\244\211\346\233\264\344\270\215\345\217\257\351\240\205\347\233\256/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" @@ -0,0 +1,11 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + \ No newline at end of file diff --git a/node_modules/nablarch-widget-slide-menu/package.json b/node_modules/nablarch-widget-slide-menu/package.json new file mode 100644 index 0000000..67a7fdb --- /dev/null +++ b/node_modules/nablarch-widget-slide-menu/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-widget-slide-menu" + , "description": "繧ケ繝ゥ繧、繝峨☆繧九Γ繝九Η繝シ" + , "version": "1.0.0" + , "_from" : "nablarch-widget-slide-menu@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-widget-slide-menu/ui_public/css/ui/screen.less b/node_modules/nablarch-widget-slide-menu/ui_public/css/ui/screen.less new file mode 100644 index 0000000..f65f548 --- /dev/null +++ b/node_modules/nablarch-widget-slide-menu/ui_public/css/ui/screen.less @@ -0,0 +1,19 @@ +/** + * 閭梧勹鬆伜沺縺ョ謖螳壹 + * 隧イ蠖薙☆繧汽OM隕∫エ縺ッJavaScript縺ォ縺ヲ蜍慕噪縺ォ蝓九a霎シ縺セ繧後k縲 + */ +div.nablarch_screen { + background-color : @baseColor; + width : 100%; + height : 120%;/* 100%縺縺ィgalaxy縺ェ縺ゥ縺ョ繝繝舌う繧ケ縺ァ鬮倥&縺瑚凶蟷イ雜ウ繧翫↑縺上↑繧九 */ + top : 0; + bottom : 0; + left : 0; + right : 0; + position : fixed; + z-index : 100; + &.hide { + display : none; + } + .opacity(0.6); +} diff --git a/node_modules/nablarch-widget-slide-menu/ui_public/css/widget/slide_menu_base.less b/node_modules/nablarch-widget-slide-menu/ui_public/css/widget/slide_menu_base.less new file mode 100644 index 0000000..e88962c --- /dev/null +++ b/node_modules/nablarch-widget-slide-menu/ui_public/css/widget/slide_menu_base.less @@ -0,0 +1,45 @@ +/** + * 繧ケ繝ッ繧、繝励う繝ウ繧貞茜逕ィ縺吶k繝。繝九Η繝シ縺ョ螳夂セゥ + */ +#aside { + #slideInMenu { + z-index : 103; + /* 蠢縺壼キヲ蛛エ縺ォ陦ィ遉コ縺吶k縺ョ縺ァ縲》ext-align:center繧呈カ医☆縲 */ + ul { + text-align:left; + } + } + /* 髢九¥縲髢峨§繧九↑縺ゥ縺ョ讖溯ス縺ョ繧ケ繧ソ繧、繝ォ */ + .trigger { + cursor : pointer; + margin : 2px; + padding : 8px; + &.hide { + display : none; + } + } + /* navtop縺ォ縺ゅklink縺ョ莉」譖ソ隕∫エ縺ョ螳夂セゥ */ + #navLink { + a { + text-decoration: none !important; + color : @mainColor2; + font-weight:normal; + } + } +} +#menuControl { + height : 27px; + top : 3px; + position : fixed; + z-index : 102; + background-color: @mainColor2; + #openMenu { + // 繧「繧、繧ウ繝ウ繧呈款縺励d縺吶>繧医≧縺ォ鬆伜沺繧貞ー代@蠎縺偵k縲 + .trigger-icon { + padding-right : 8px; + } + } + .trigger { + color : @baseColor; + } +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-slide-menu/ui_public/css/widget/slide_menu_compact.less b/node_modules/nablarch-widget-slide-menu/ui_public/css/widget/slide_menu_compact.less new file mode 100644 index 0000000..8068452 --- /dev/null +++ b/node_modules/nablarch-widget-slide-menu/ui_public/css/widget/slide_menu_compact.less @@ -0,0 +1,42 @@ +/** + * 繧ケ繝ッ繧、繝励う繝ウ繧貞茜逕ィ縺吶k繝。繝九Η繝シ縺ョ螳夂セゥ + */ +#aside { + #slideInMenu { + width:320px; + left :-320px; + top : 30px; + position:fixed; + background-color: @baseColor; + height:95%; + .box-shadow(4px, 2px, 3px, #ddd); + overflow:hidden; + &.hide, .hide { + display:none; + } + .scrollMenu { + overflow-y:scroll; + height:100%; + width:100%; + } + } + .box-shadow(0, 0, 0, #fff); +} +/** + * 繝。繝九Η繝シ繧定。ィ遉コ縺励◆蝣エ蜷医ッ縺昴ョ莉悶ョ隕∫エ縺後せ繧ッ繝ュ繝シ繝ォ縺励↑縺繧医≧縺ォ縺吶k縲 + */ +body.scrollOff { + overflow:hidden; + position:relative; +} +#aside { +/** touchdevice 縺ァ讌ュ蜍咎伜沺縺後せ繧ッ繝ュ繝シ繝ォ縺励↑縺繧医≧縺ォ */ + .touchdevice { + .scrollMargin { + position:relative; + height:100%; + width:100%; + z-index:200; + } + } +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-slide-menu/ui_public/css/widget/slide_menu_narrow.less b/node_modules/nablarch-widget-slide-menu/ui_public/css/widget/slide_menu_narrow.less new file mode 100644 index 0000000..8500e6c --- /dev/null +++ b/node_modules/nablarch-widget-slide-menu/ui_public/css/widget/slide_menu_narrow.less @@ -0,0 +1,42 @@ +/** + * 繧ケ繝ッ繧、繝励う繝ウ繧貞茜逕ィ縺吶k繝。繝九Η繝シ縺ョ螳夂セゥ + */ +#aside { + #slideInMenu { + width:320px; + left :-320px; + top : 30px; + position:fixed; + background-color: @baseColor; + height:90%; + .box-shadow(4px, 2px, 3px, #ddd); + overflow:hidden; + &.hide, .hide { + display:none; + } + .scrollMenu { + overflow-y:scroll; + height:100%; + width:100%; + } + } + .box-shadow(0, 0, 0, #fff); +} +/** + * 繝。繝九Η繝シ繧定。ィ遉コ縺励◆蝣エ蜷医ッ縺昴ョ莉悶ョ隕∫エ縺後せ繧ッ繝ュ繝シ繝ォ縺励↑縺繧医≧縺ォ縺吶k縲 + */ +body.scrollOff { + overflow:hidden; + position:relative; +} +#aside { +/** touchdevice 縺ァ讌ュ蜍咎伜沺縺後せ繧ッ繝ュ繝シ繝ォ縺励↑縺繧医≧縺ォ */ + .touchdevice { + .scrollMargin { + position:relative; + height:100%; + width:100%; + z-index:200; + } + } +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-slide-menu/ui_public/css/widget/slide_menu_wide.less b/node_modules/nablarch-widget-slide-menu/ui_public/css/widget/slide_menu_wide.less new file mode 100644 index 0000000..b2dd842 --- /dev/null +++ b/node_modules/nablarch-widget-slide-menu/ui_public/css/widget/slide_menu_wide.less @@ -0,0 +1,20 @@ +/** + * 繧ケ繝ッ繧、繝励う繝ウ繧貞茜逕ィ縺吶k繝。繝九Η繝シ縺ョ螳夂セゥ + */ +.nablarch_SlideMenu { + display:none; +} +#aside { + .trigger { + display:none; + } +} +/** + * 繧ケ繧ッ繝ェ繝シ繝ウ繧「繧ヲ繝医r辟。蜉ケ蛹 + */ +div.nablarch_screen { + display:none; +} +#navLink { + display:none; +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-slide-menu/ui_public/include/slide_aside.jsp b/node_modules/nablarch-widget-slide-menu/ui_public/include/slide_aside.jsp new file mode 100644 index 0000000..ebcfc2d --- /dev/null +++ b/node_modules/nablarch-widget-slide-menu/ui_public/include/slide_aside.jsp @@ -0,0 +1,192 @@ +<%@ page language="java" pageEncoding="UTF-8" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> + + + +
+ +
+ 繝。繝九Η繝シ繧帝哩縺倥k + + + + + <%-- 螟壽ョオ髫主ア、縺ョ繝。繝九Η繝シ --%> + + + + + + + + + <%-- 莉・荳九ッ繝ャ繧、繧「繧ヲ繝育「コ隱咲畑 --%> + + + + + +
+ + +
+
<%-- touch device 縺ァ繧ウ繝ウ繝繧ュ繧ケ繝医′繧ケ繧ッ繝ュ繝シ繝ォ縺励↑縺繧医≧縺ォ --%> +
+
+
diff --git a/node_modules/nablarch-widget-slide-menu/ui_public/js/nablarch/ui/SlideMenu.js b/node_modules/nablarch-widget-slide-menu/ui_public/js/nablarch/ui/SlideMenu.js new file mode 100644 index 0000000..c151734 --- /dev/null +++ b/node_modules/nablarch-widget-slide-menu/ui_public/js/nablarch/ui/SlideMenu.js @@ -0,0 +1,217 @@ +define([ + "jquery" +, "nablarch/ui/Widget" +, "sugar" +], +function($, Widget) {'use strict'; + + /** + * 繧ケ繝ゥ繧、繝峨Γ繝九Η繝シ + * =================== + * 繝。繝九Η繝シ縺ェ縺ゥ蜈ア騾夂噪縺ェ鬆逶ョ繧偵せ繝ゥ繧、繝峨&縺帙k驛ィ蜩√〒縺ゅk縲 + * 繧ケ繝ゥ繧、繝峨@縺滄圀縺ォ縺ッ縲∽サ悶ョ隕∫エ繧偵Θ繝シ繧カ繝シ縺瑚ェ、謫堺ス懊@縺ェ縺繧医≧縺ォ閭梧勹(background)繧貞茜逕ィ縺励※髫阡ス縺吶k縲 + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------ + * 莉サ諢上ョ蝣エ謇(陦ィ遉コ縺励◆縺繝。繝九Η繝シ鬆伜沺螟悶〒繧り憶縺)縺ォ繝槭シ繧ォ繝シCSS繧ッ繝ゥ繧ケ **nablarch_SlideMenu** 繧呈欠螳壹☆繧九 + * 陦ィ遉コ縲髱櫁。ィ遉コ繧貞繧頑崛縺医k蝣エ蜷医↓蛻ゥ逕ィ縺吶k繝懊ち繝ウ縺ェ縺ゥ縺ッ **-open** 縲 **-close** 縺ォjQuery縺ョ繧サ繝ャ繧ッ繧ソ繧呈欠螳壹☆繧九 + * + * 謖螳壹@縺殪pen, close 縺ョ隕∫エ縺ッ繝。繝九Η繝シ縺ョ陦ィ遉コ縲髱櫁。ィ遉コ縺ォ繧医j繧ケ繧ソ繧、繝ォ繧貞繧頑崛縺医i繧後k繧医≧縺ォ縲√け繝ゥ繧ケ螻樊ァ縺瑚ソス蜉縲∝炎髯、縺輔l繧九 + * 譏守、コ逧縺ォ隕∫エ縺ョstyle繝励Ο繝代ユ繧」縺ッ蛻カ蠕。縺励↑縺縺溘a縲∝挨騾斐せ繧ソ繧、繝ォ繧キ繝シ繝医〒螳夂セゥ縺吶k蠢隕√′縺ゅk縲 + * + * 荳玖ィ倥ョ萓九〒縺ッ縲√Γ繝九Η繝シ縺ョ陦ィ遉コ縲髱櫁。ィ遉コ縺ァclass螻樊ァ縺悟、画峩縺輔l繧狗せ繧堤、コ縺吶 + * + * * 蛻晄悄陦ィ遉コ縺ョ繝槭シ繧ッ繧「繝繝 + * + * + *
+ * + * + *
+ *
...
+ * + * + * * open繧偵け繝ェ繝繧ッ縺励√Γ繝九Η繧定。ィ遉コ迥カ諷九↓螟画峩縺励◆蝣エ蜷 + * + * + *
+ * + * + *
+ *
...
+ * + * * close繧ゅ@縺上ッ閭梧勹隕∫エ繧偵け繝ェ繝繧ッ縺励√Γ繝九Η繝シ髱櫁。ィ遉コ迥カ諷九↓螟画峩縺励◆蝣エ蜷 + * + * + *
+ * + * + *
+ *
...
+ * + * TouchDevice縺ョ繧オ繝昴シ繝 + * + * 繝。繝九Η繝シ鬆伜沺縺ョ繧ケ繧ソ繧、繝ォ繧貞、画峩縺ァ縺阪k繧医≧縲 + * touch繧、繝吶Φ繝医r繧オ繝昴シ繝医☆繧九ョ繝舌う繧ケ縺ァ縺ッ **-context** 縺ァ謖螳壹&繧後◆隕∫エ縺ョclass螻樊ァ縺ォ "touchdevice" 繧定ソス蜉縺吶k縲 + * + * @class nablarch.ui.SlideMenu + * @author tani + * @since 1.4.2 + */ + SlideMenu.prototype = Object.merge(new Widget, { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ縲 + * + * @method SlideMenu + * @constructor + * @param {Element} element 陦ィ遉コ縲髱櫁。ィ遉コ繧貞繧頑崛縺医k蟇セ雎。 + * @param {Object} opts 繧ェ繝励す繝ァ繝ウ + * **open:** (`String`) click繧、繝吶Φ繝医〒陦ィ遉コ縺吶k髫帙↓菴ソ逕ィ縺吶kElement繧呈欠螳壹☆繧虐elector + * **close:** (`String`) click繧、繝吶Φ繝医〒髱櫁。ィ遉コ縺吶k髫帙↓菴ソ逕ィ縺吶kElement繧呈欠螳壹☆繧虐elector + * **context:**(`String`) 繝。繝九Η繝シ鬆伜沺繧呈欠螳壹☆繧虐elector + * **slideFrom:**(`String`) 繧ケ繝ゥ繧、繝峨&縺帙k譁ケ蜷代r謖螳壹☆繧(left|right) + */ + constructor : SlideMenu + /** + * 繧ケ繝ゥ繧、繝峨&縺帙※陦ィ遉コ縺吶kDOM隕∫エ縲 + * + * @property $context + * @type jQuery + */ + , $context : null + /** + * click繧、繝吶Φ繝医〒$context繧定。ィ遉コ縺輔○繧汽OM縲 + * + * @property $open + * @type jQuery + */ + , $open : null + /** + * click繧、繝吶Φ繝医〒$context繧帝撼陦ィ遉コ縺ォ縺吶kDOM縲 + * + * @property $close + * @type jQuery + */ + , $close : null + /** + * 繝。繝九Η繝シ繧帝撼陦ィ遉コ縺ォ縺吶k縲 + * 縺昴ョ髫帙↓$open繧定。ィ遉コ縺ァ縺阪k繧医≧縺ォ縺吶k縲(class螻樊ァ縺九ihide繧貞炎髯、縺励《how繧剃サ倅ク弱☆繧九) + * + * @method hide + * @param event + */ + , hide : SlideMenu_hide + /** + * 繝。繝九Η繝シ繧定。ィ遉コ縺吶k縲 + * 縺昴ョ髫帙↓$open繧帝撼陦ィ遉コ縺ォ縺ァ縺阪k繧医≧縺ォ縺吶k縲(class螻樊ァ縺九ishow繧貞炎髯、縺励”ide繧剃サ倅ク弱☆繧九) + * + * @method show + * @param event + */ + , show : SlideMenu_show + /** + * $context縺ョ animateProp縺ョ蛻晄悄菴咲スョ縲 + * + * @property initpos + * @type String + */ + , initpos : null + /** + * 繧ケ繝ゥ繧、繝峨☆繧句キョ逡ー縺ォ蛻ゥ逕ィ縺吶k繧「繝九Γ繝シ繧キ繝ァ繝ウ縺輔○繧九励Ο繝代ユ繧」縲 + * + * @property animateProp + * @Type String + * + */ + , animateProp : "" + /** + * 繝。繝九Η繝シ讓咏、コ譎ゅョ蜈ィ菴薙ョ閭梧勹隕∫エ縺ョDOM縲 + * style縺ッ + * body > div.nablarch_screen + * 縺ォ縺ヲ謖螳壹〒縺阪k縲 + * + * @property $background + */ + , $background : null + }); + + /** + * 繧、繝吶Φ繝亥ョ夂セゥ縲 + * + * SlideMenu.event { + * "$open click" : "show" + * , "$close click" : "hide" + * , "$background click" : "hide" + * } + * + * @static + */ + SlideMenu.event = { + "$open click" : "show" + , "$close click" : "hide" + , "$background click" : "hide" + , "$background touchmove" : stopScroll + }; + + Widget.register(SlideMenu); + + SlideMenu.widgetType = "nablarch_SlideMenu"; + var scrollOff = "scrollOff" + + function SlideMenu(element, opts) { + this.$context = hide($(opts.context)); + this.animateProp = opts.slideFrom || "left"; + this.initpos = this.$context.css(this.animateProp); + + this.$open = show($(opts.open)); + this.$close = hide($(opts.close)); + this.$background = hide(createScreen()); + this.constructor = SlideMenu; + Widget.call(this, element); + if ('ontouchstart' in window) { + this.$context.addClass('touchdevice'); + } + + function createScreen() { + var $screen = $('div.nablarch_screen'); + return $screen.length == 0 ? $('
').addClass("nablarch_screen").appendTo('body') + : $screen; + } + } + + function SlideMenu_hide(event) { + hide(this.$context).css(this.animateProp, this.initpos); + hide(this.$close); + hide(this.$background); + show(this.$open); + $('body').removeClass('scrollOff'); + } + + function SlideMenu_show(event) { + var self = this + , style = {}; + style[self.animateProp] = "0"; + hide(self.$open); + show(self.$background); + show(self.$context).animate(style); + show(self.$close); + $('body').addClass('scrollOff'); + } + + /* + * 陦ィ遉コ縲髱櫁。ィ遉コ縺ョ蛻譖ソ繧偵☆繧九◆繧√ョ陬懷勧髢「謨ー縲 + * + * $.fn.(show|hide)縺ァ縺ッ繝ャ繧ケ繝昴Φ繧キ繝悶〒蟇セ蠢懊@縺・繧峨>縺ョ縺ァclass縺ョ莉倥¢譖ソ縺医〒蟇セ蠢懊☆繧九 + */ + function show($node) { + return $node.addClass("show").removeClass("hide"); + } + function hide($node) { + return $node.addClass("hide").removeClass("show"); + } + function stopScroll(event) { + event.preventDefault(); + } + + return SlideMenu; +}); diff --git "a/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/index.jsp" "b/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/index.jsp" new file mode 100644 index 0000000..c6c4648 --- /dev/null +++ "b/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/index.jsp" @@ -0,0 +1,92 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + attention + 繧オ繝ウ繝励Ν縺ョ繝。繝九Η繝シ縺ァ縺吶
+ wide縺ョ譎ゅ↓縺ッ縺昴ョ縺セ縺セ縺ョ陦ィ遉コ縺ァ縺吶
narrow,compact譎ゅ↓縺ッ蝓コ譛ャ逧縺ォ髱櫁。ィ遉コ縺ォ縺ェ繧翫∪縺吶
+ narrow,compact譎ゅ↓縺ッ荳企Κ縺ォ縺ゅk繝懊ち繝ウ繧偵け繝ェ繝繧ッ縺吶k縺ィ繝。繝九Η繝シ縺悟コ縺セ縺吶 +
+ + view mode + + wide陦ィ遉コ縺ョ蝣エ蜷医ッ縲∝キヲaside鬆伜沺縺ォ繝。繝九Η繝シ縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ縲
+ narrow,compact譎ゅ↓縺ッ"繝。繝九Η繝シ繧帝幕縺上◆繧√ョicon"縺後リ繝薙ご繝シ繧キ繝ァ繝ウ鬆伜沺縺ォ蟄伜惠縺吶k縺薙→縲
+
+
+ + function + + wide陦ィ遉コ縺ョ髫帙ッtree-menu縺ィ蜷梧ァ倥驕キ遘サ縺励◆縺ィ縺阪↓髢矩哩迥カ諷九′邯ュ謖√&繧後k縺薙→縲 +
+
+ + + narrow, compact陦ィ遉コ縺ョ髫帙ッ繝。繝九Η繝シ繝懊ち繝ウ縺瑚。ィ遉コ縺輔l縺ヲ縺繧九%縺ィ縲
繝懊ち繝ウ繧呈款荳九☆繧後ー縲√Γ繝九Η繝シ縺瑚。ィ遉コ縺輔l繧九%縺ィ縲 +

+ + 陦ィ遉コ縺輔l縺溘Γ繝九Η繝シ縺ッ繧ケ繧ッ繝ュ繝シ繝ォ縺励※繧よカ医∴縺ヲ縺励∪繧上↑縺縺薙→
(top_nav縺ィ蜷梧ァ倥↓霑ス髫上☆繧九%縺ィ)
+ 繝。繝九Η繝シ鬆伜沺繧団lick縺励※繧ゅ√Γ繝九Η繝シ縺梧カ医∴縺ェ縺縺薙→
+ 繝。繝九Η繝シ繧定。ィ遉コ縺励※縺繧狗憾諷九〒繝。繝九Η繝シ莉・螟悶ョ蝣エ謇繧団lick縺励◆繧画カ医∴繧九%縺ィ縲

+
+ + + scroll + + wide繝「繝シ繝峨〒縺ッ謇馴嵯繝繧ケ繝育畑縺ョ繝。繝九Η繝シ繧帝幕縺縺ヲ繧ゅ‖side縺ォ繧ケ繧ッ繝ュ繝シ繝ォ縺悟コ縺ェ縺縺薙→縲
+
+ + compact,narrow繝「繝シ繝峨〒縺ッ謇馴嵯繝繧ケ繝育畑縺ョ繝。繝九Η繝シ繧帝幕縺縺溷エ蜷医↓aside縺ォ繧ケ繧ッ繝ュ繝シ繝ォ縺悟コ繧九%縺ィ縲
+ scroll縺励◆譎ゅ↓譛蠕後ョ隕∫エ縺梧桃菴懷庄閭ス縺ェ縺薙→縲 +

+ + aside縺ョ繝。繝九Η繝シ螟悶ョ隕∫エ縺後せ繧ッ繝ュ繝シ繝ォ縺励※縺励∪繧上↑縺縺薙→縲
+ aside縺ョ繝。繝九Η繝シ繧帝哩縺倥◆繧峨√せ繧ッ繝ュ繝シ繝ォ縺ァ縺阪k縺薙→縲
窶サMenu縺ョ謫堺ス懊〒莉悶ョ隕∫エ縺悟、峨o縺」縺ヲ縺励∪繧上↑縺縺薙→縲 +
+
+ + screen + + screen縺悟コ縺ヲ縺繧狗憾諷九〒button繧繧ォ繝ャ繝ウ繝繝シ荳翫〒繧ッ繝ェ繝繧ッ繧偵@縺ヲ繧ゅ√せ繧ッ繝ェ繝シ繝ウ縺後≠繧九◆繧√∝虚菴懊@縺ェ縺縺薙→縲(隱、謫堺ス懊r髦イ豁「縺ァ縺阪※縺繧九%縺ィ縲) + + + + + + + + + + + + + + + + + +
+
+
\ No newline at end of file diff --git "a/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..d7d91e2 --- /dev/null +++ "b/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,157 @@ +runTest( + 繝繝輔か繝ォ繝医ョ蝣エ蜷 +, slideFrom_left縺ョ蝣エ蜷 +, slideFrom_right縺ョ蝣エ蜷 +); + +function 繝繝輔か繝ォ繝医ョ蝣エ蜷() { + var $menu = $('#defaultContext') + , $open = $('#default_open') + , $close = $('#default_close') + , $screen = $('.nablarch_screen') + , initpos = $menu.css('left') + , touchSupport = ('ontouchstart' in window); + + equal($menu.length, 1 , "繝。繝九Η繝シ縺悟ュ伜惠縺吶k縲"); + equal($open.length, 1 , "髢九¥繝懊ち繝ウ縺悟ュ伜惠縺吶k縲"); + equal($close.length, 1 , "髢峨§繧九懊ち繝ウ縺悟ュ伜惠縺吶k縲"); + equal($screen.length, 1 , "繧ケ繧ッ繝ェ繝シ繝ウ縺悟ュ伜惠縺吶k縲"); + equal($menu.is('.touchdevice'), touchSupport, "繝繝舌う繧ケ縺ョ邨先棡縺悟コ蜉帙&繧後k縲"); + + ok(isHide($menu), "menu :蛻晄悄陦ィ遉コ縺ッhide迥カ諷"); + ok(isHide($close), "close :蛻晄悄陦ィ遉コ縺ッhide迥カ諷"); + ok(isShow($open), "open :蛻晄悄陦ィ遉コ縺ッshow迥カ諷"); + ok(isHide($screen),"screen:蛻晄悄陦ィ遉コ縺ッhide迥カ諷"); + $open.click(); + delay(function(){ + equal($menu.css('left').remove('px'), '0', "繝繝輔か繝ォ繝医ッleft繧呈桃菴懊☆繧九"); + ok(isShow($menu), "menu :open縺励◆繧鋭how迥カ諷"); + ok(isShow($close), "close :open縺励◆繧鋭how迥カ諷"); + ok(isShow($screen),"screen:open縺励◆繧鋭how迥カ諷"); + ok(isHide($open), "open :open縺励◆繧栄ide迥カ諷"); + ok($('body').is('.scrollOff'), 'menu縺悟コ繧後ーscrollOff迥カ諷九↓縺ェ繧九'); + $close.click(); + delay(function(){ + equal($menu.css('left'), initpos, "蛻晄悄菴咲スョ縺ォ遘サ蜍輔") + ok(isHide($menu), "menu :close縺励◆繧栄ide迥カ諷"); + ok(isHide($close), "close :close縺励◆繧栄ide迥カ諷"); + ok(isHide($screen),"screen:close縺励◆繧栄ide迥カ諷"); + ok(isShow($open), "open :close縺励◆繧鋭how迥カ諷"); + ok(!$('body').is('.scrollOff'), 'menu縺悟コ繧後ーscrollOff迥カ諷九r隗」髯、縺吶k縲'); + $open.click(); + delay(function(){ + ok(isShow($menu) && isShow($close) && isShow($screen) && isHide($open), "蜷Нode縺ョ迥カ諷九ョ遒コ隱"); + $menu.click(); + ok(isShow($menu) && isShow($close) && isShow($screen) && isHide($open), "繝。繝九Η繝シ繧偵け繝ェ繝繧ッ縺励※繧ょ、峨o繧峨↑縺縲"); + $screen.click(); + ok(isHide($menu), "menu :screen繧団lick縺励◆繧栄ide迥カ諷"); + ok(isHide($close), "close :screen繧団lick縺励◆繧栄ide迥カ諷"); + ok(isHide($screen), "screen:screen繧団lick縺励◆繧栄ide迥カ諷"); + ok(isShow($open), "open :screen繧団lick縺励◆繧鋭how迥カ諷"); + }); + }); + }); +} + +function slideFrom_left縺ョ蝣エ蜷() { + var $menu = $('#fromLeftContext') + , $open = $('#fromleft_open') + , $close = $('#fromleft_close') + , $screen = $('.nablarch_screen') + , initpos = $menu.css('left'); + + equal($menu.length, 1 , "繝。繝九Η繝シ縺悟ュ伜惠縺吶k縲"); + equal($open.length, 1 , "髢九¥繝懊ち繝ウ縺悟ュ伜惠縺吶k縲"); + equal($close.length, 1 , "髢峨§繧九懊ち繝ウ縺悟ュ伜惠縺吶k縲"); + equal($screen.length, 1 , "繧ケ繧ッ繝ェ繝シ繝ウ縺悟ュ伜惠縺吶k縲"); + + ok(isHide($menu), "menu :蛻晄悄陦ィ遉コ縺ッhide迥カ諷"); + ok(isHide($close), "close :蛻晄悄陦ィ遉コ縺ッhide迥カ諷"); + ok(isShow($open), "open :蛻晄悄陦ィ遉コ縺ッshow迥カ諷"); + ok(isHide($screen),"screen:蛻晄悄陦ィ遉コ縺ッhide迥カ諷"); + $open.click(); + delay(function(){ + equal($menu.css('left').remove('px'), '0', "left繧呈桃菴懊☆繧九"); + ok(isShow($menu), "menu :open縺励◆繧鋭how迥カ諷"); + ok(isShow($close), "close :open縺励◆繧鋭how迥カ諷"); + ok(isShow($screen),"screen:open縺励◆繧鋭how迥カ諷"); + ok(isHide($open), "open :open縺励◆繧栄ide迥カ諷"); + $close.click(); + delay(function(){ + equal($menu.css('left'), initpos, "蛻晄悄菴咲スョ縺ォ遘サ蜍輔") + ok(isHide($menu), "menu :close縺励◆繧栄ide迥カ諷"); + ok(isHide($close), "close :close縺励◆繧栄ide迥カ諷"); + ok(isHide($screen),"screen:close縺励◆繧栄ide迥カ諷"); + ok(isShow($open), "open :close縺励◆繧鋭how迥カ諷"); + }); + }); +} + +function slideFrom_right縺ョ蝣エ蜷() { + var $menu = $('#fromRightContext') + , $open = $('#fromright_open') + , $close = $('#fromright_close') + , $screen = $('.nablarch_screen') + , initpos = $menu.css('right'); + + equal($menu.length, 1 , "繝。繝九Η繝シ縺悟ュ伜惠縺吶k縲"); + equal($open.length, 1 , "髢九¥繝懊ち繝ウ縺悟ュ伜惠縺吶k縲"); + equal($close.length, 1 , "髢峨§繧九懊ち繝ウ縺悟ュ伜惠縺吶k縲"); + equal($screen.length, 1 , "繧ケ繧ッ繝ェ繝シ繝ウ縺悟ュ伜惠縺吶k縲"); + + ok(isHide($menu), "menu :蛻晄悄陦ィ遉コ縺ッhide迥カ諷"); + ok(isHide($close), "close :蛻晄悄陦ィ遉コ縺ッhide迥カ諷"); + ok(isShow($open), "open :蛻晄悄陦ィ遉コ縺ッshow迥カ諷"); + ok(isHide($screen),"screen:蛻晄悄陦ィ遉コ縺ッhide迥カ諷"); + $open.click(); + delay(function(){ + equal($menu.css('right').remove('px'), '0', "left繧呈桃菴懊☆繧九"); + ok(isShow($menu), "menu :open縺励◆繧鋭how迥カ諷"); + ok(isShow($close), "close :open縺励◆繧鋭how迥カ諷"); + ok(isShow($screen),"screen:open縺励◆繧鋭how迥カ諷"); + ok(isHide($open), "open :open縺励◆繧栄ide迥カ諷"); + $close.click(); + delay(function(){ + equal($menu.css('right'), initpos, "蛻晄悄菴咲スョ縺ォ遘サ蜍輔") + ok(isHide($menu), "menu :close縺励◆繧栄ide迥カ諷"); + ok(isHide($close), "close :close縺励◆繧栄ide迥カ諷"); + ok(isHide($screen),"screen:close縺励◆繧栄ide迥カ諷"); + ok(isShow($open), "open :close縺励◆繧鋭how迥カ諷"); + }); + }); +} + +function delay(callback, time) { + QUnit.stop(); + setTimeout(function() { + callback(); + QUnit.start(); + }, time || 600); +} +/* + * show迥カ諷九°縺ゥ縺縺九 + * + * !isHide繧貞茜逕ィ縺吶k縺ィ隲也炊蜥後′驕ゥ逕ィ縺輔l繧九ョ縺ァ縺薙ョ髢「謨ー繧帝←逕ィ縺吶k縺薙→縲 + * + * @param $node 蛻、螳壼ッセ雎。縺ョjQueryObject + * @returns {Boolean} + */ +function isShow($node) { + return $node.is('.show') && $node.is(':not(.hide)') && $node.is(':not(:hidden)'); +} + +/* + * hide迥カ諷九°縺ゥ縺縺九 + * + * !isShow繧貞茜逕ィ縺吶k縺ィ隲也炊蜥後′驕ゥ逕ィ縺輔l繧九ョ縺ァ縺薙ョ髢「謨ー繧帝←逕ィ縺吶k縺薙→縲 + * + * @param $node 蛻、螳壼ッセ雎。縺ョjQueryObject + * @returns {Boolean} + */ +function isHide($node) { + return $node.is('.hide') && $node.is(':hidden') && $node.is(':not(.show)'); +} + +function fail(msg) { + ok(false, msg); +} \ No newline at end of file diff --git "a/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..377ecb5 --- /dev/null +++ "b/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,44 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + #defaultContext, #fromLeftContext { + left:-320px; + } + #fromRightContext { + right:-320px; + } + div.dummyMenu { + z-index:200; + position:fixed; + top:30px; + background-color:white; + } + .trigger { + cursor:pointer; + } + div.hide { + display:none; + } + div.nablarch_screen { + display:block; + } + .touchdevice { + border: double 4px #ff0000; + } + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..c01e9d4 --- /dev/null +++ "b/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,7 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..5661579 --- /dev/null +++ "b/node_modules/nablarch-widget-slide-menu/ui_test/jsp/\343\203\241\343\203\213\343\203\245\343\203\274/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,39 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + 繧ソ繝繝√ョ繝舌う繧ケ縺ァ縺ッ繧ウ繝ウ繝繧ュ繧ケ繝医ョ繝懊シ繝繝シ縺後▽縺阪∪縺吶 + +
+
+
繝繝輔か繝ォ繝郁ィュ螳壹〒髢九¥
+
縺薙ョ隕∫エ縺ッ繝繝輔か繝ォ繝郁ィュ螳壹〒蜍穂ス懊@縺ヲ縺縺セ縺吶
隕九◆逶ョ縺ョ隱ソ謨エ縺ッlocalCss縺ォ縺ヲ蟇セ蠢懊@縺ヲ縺縺セ縺 +
繝繝輔か繝ォ繝郁ィュ螳壹〒髢峨§繧九
+
+
+

+
+
+
蟾ヲ縺九i繧ケ繝ゥ繧、繝峨&縺帙k險ュ螳壹〒髢九¥
+
縺薙ョ隕∫エ縺ッslideFrom left縺ァ蜍穂ス懊&縺帙※縺縺セ縺吶
隕九◆逶ョ縺ョ隱ソ謨エ縺ッlocalCss縺ォ縺ヲ蟇セ蠢懊@縺ヲ縺縺セ縺 +
蟾ヲ縺九i繧ケ繝ゥ繧、繝峨&縺帙k險ュ螳壹〒髢峨§繧
+
+
+

+
+
+
蜿ウ縺九i繧ケ繝ゥ繧、繝峨&縺帙k險ュ螳壹〒髢九¥
+
縺薙ョ隕∫エ縺ッslideFrom right縺ァ蜍穂ス懊&縺帙※縺縺セ縺吶
隕九◆逶ョ縺ョ隱ソ謨エ縺ッlocalCss縺ォ縺ヲ蟇セ蠢懊@縺ヲ縺縺セ縺 +
蜿ウ縺九i繧ケ繝ゥ繧、繝峨&縺帙k險ュ螳壹〒髢峨§繧
+
+
+ + + +
\ No newline at end of file diff --git a/node_modules/nablarch-widget-spec-meta_info/package.json b/node_modules/nablarch-widget-spec-meta_info/package.json new file mode 100644 index 0000000..ecc6ca3 --- /dev/null +++ b/node_modules/nablarch-widget-spec-meta_info/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-widget-spec-meta_info" + , "description": "險ュ險域嶌繝。繧ソ諠蝣ア繧ヲ繧」繧ク繧ァ繝繝" + , "version": "1.0.0" + , "_from" : "nablarch-widget-spec-meta_info@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-widget-spec-meta_info/ui_public/WEB-INF/tags/widget/spec/author.tag b/node_modules/nablarch-widget-spec-meta_info/ui_public/WEB-INF/tags/widget/spec/author.tag new file mode 100644 index 0000000..aed3b34 --- /dev/null +++ b/node_modules/nablarch-widget-spec-meta_info/ui_public/WEB-INF/tags/widget/spec/author.tag @@ -0,0 +1,6 @@ +<%-- + 縺薙ョ繝壹シ繧ク縺ョ菴懈占 + @author Iwauo Tajima + @from 1.4 +--%> +<%@ tag pageEncoding="UTF-8" description="縺薙ョ繝壹シ繧ク縺ョ菴懈占" %> diff --git a/node_modules/nablarch-widget-spec-meta_info/ui_public/WEB-INF/tags/widget/spec/created_date.tag b/node_modules/nablarch-widget-spec-meta_info/ui_public/WEB-INF/tags/widget/spec/created_date.tag new file mode 100644 index 0000000..bb85301 --- /dev/null +++ b/node_modules/nablarch-widget-spec-meta_info/ui_public/WEB-INF/tags/widget/spec/created_date.tag @@ -0,0 +1,6 @@ +<%-- + 縺薙ョ繝壹シ繧ク縺ョ菴懈先律譎 + @author Iwauo Tajima + @from 1.4 +--%> +<%@ tag pageEncoding="UTF-8" description="縺薙ョ繝壹シ繧ク縺ョ菴懈先凾" %> diff --git a/node_modules/nablarch-widget-spec-meta_info/ui_public/WEB-INF/tags/widget/spec/updated_by.tag b/node_modules/nablarch-widget-spec-meta_info/ui_public/WEB-INF/tags/widget/spec/updated_by.tag new file mode 100644 index 0000000..dbc8452 --- /dev/null +++ b/node_modules/nablarch-widget-spec-meta_info/ui_public/WEB-INF/tags/widget/spec/updated_by.tag @@ -0,0 +1,6 @@ +<%-- + 縺薙ョ繝壹シ繧ク縺ョ譛邨よ峩譁ー閠 + @author Iwauo Tajima + @from 1.4 +--%> +<%@ tag pageEncoding="UTF-8" description="縺薙ョ繝壹シ繧ク縺ョ譛邨よ峩譁ー閠" %> diff --git a/node_modules/nablarch-widget-spec-meta_info/ui_public/WEB-INF/tags/widget/spec/updated_date.tag b/node_modules/nablarch-widget-spec-meta_info/ui_public/WEB-INF/tags/widget/spec/updated_date.tag new file mode 100644 index 0000000..8c71794 --- /dev/null +++ b/node_modules/nablarch-widget-spec-meta_info/ui_public/WEB-INF/tags/widget/spec/updated_date.tag @@ -0,0 +1,6 @@ +<%-- + 縺薙ョ繝壹シ繧ク縺ョ譛邨よ峩譁ー譌・譎 + @author Iwauo Tajima + @from 1.4 +--%> +<%@ tag pageEncoding="UTF-8" description="縺薙ョ繝壹シ繧ク縺ョ譛邨よ峩譁ー譌・譎" %> diff --git a/node_modules/nablarch-widget-spec/package.json b/node_modules/nablarch-widget-spec/package.json new file mode 100644 index 0000000..1b20d33 --- /dev/null +++ b/node_modules/nablarch-widget-spec/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-widget-spec" + , "description": "險ュ險域嶌陦ィ遉コ逕ィ繝励Λ繧ー繧、繝ウ" + , "_from" : "nablarch-widget-spec@1.0.0" + , "version": "1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-widget-spec/ui_local/js/jsp/taglib/spec.js b/node_modules/nablarch-widget-spec/ui_local/js/jsp/taglib/spec.js new file mode 100644 index 0000000..cddc2bd --- /dev/null +++ b/node_modules/nablarch-widget-spec/ui_local/js/jsp/taglib/spec.js @@ -0,0 +1,41 @@ +/** + * 險ュ險域嶌陦ィ遉コ逕ィ繧ソ繧ー + * @author Iwauo Tajima + */ + +define(['jsp', 'sugar'], +function($) { 'use strict'; + window.spec_nodeRefs = {}; + return { + author : noop + , updated_by : noop + , created_date: noop + , updated_date: noop + , condition : noop + , layout : doLayoutTag + , validation : noop + , desc : noop + }; + + function noop(b, c, tagName) { + $(this).jsp_verify('../WEB-INF/tags/widget/spec/', tagName); + $(this).remove(); + }; + + function doLayoutTag($tagBody, context, tagName) { + var layout = context.getVar('nablarch_spec_layout') || '' + , thisLayout = $(this).attr('name'); + + $(this).jsp_verify('../WEB-INF/tags/widget/spec/', tagName); + + window.spec_nodeRefs[thisLayout] = $tagBody; + + if (!layout || layout.indexOf(context.getVar('name')) !== -1) { + return $tagBody; + } + else { + $(this).remove(); + } + } +}); + diff --git a/node_modules/nablarch-widget-spec/ui_public/WEB-INF/tags/widget/spec/condition.tag b/node_modules/nablarch-widget-spec/ui_public/WEB-INF/tags/widget/spec/condition.tag new file mode 100644 index 0000000..283f6f5 --- /dev/null +++ b/node_modules/nablarch-widget-spec/ui_public/WEB-INF/tags/widget/spec/condition.tag @@ -0,0 +1,13 @@ +<%-- + 繝繝「螳溯。梧凾縺ョ逕サ髱「迥カ諷九r螳夂セゥ縺吶k縲 + @author Iwauo Tajima + @from 1.4 +--%> +<%@ tag pageEncoding="UTF-8" description="繝繝「螳溯。梧凾縺ョ逕サ髱「迥カ諷九r螳夂セゥ縺吶k縲" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="name" description="逕サ髱「迥カ諷句錐[險ュ險域嶌陦ィ遉コ蠢鬆]" %> +<%@ attribute name="layout" description="縺薙ョ逕サ髱「迥カ諷九↓縺翫>縺ヲ陦ィ遉コ縺輔l繧九Ξ繧、繧「繧ヲ繝医ョ蜷咲ァー繧'|'蛹コ蛻繧翫〒謖螳壹☆繧九(繝繝輔か繝ォ繝医〒縺ッ蜈ィ縺ヲ縺ョ繝ャ繧、繧「繧ヲ繝医r陦ィ遉コ)" %> +<%@ attribute name="when" description="縺薙ョ逕サ髱「迥カ諷九↓縺翫>縺ヲtrue縺ォ隧穂セ。縺吶k c:if 繧ソ繧ー縺ョ譚。莉カ繧呈欠螳壹☆繧九Urue縺ィ縺励◆縺 c:if 繧ソ繧ー逶エ荳九ョ spec:desc 繧ソ繧ー縺ョ蜀螳ケ繧'|'蛹コ蛻繧翫〒謖螳壹☆繧九(繝繝輔か繝ォ繝医〒縺ッ spec:desc 繧ソ繧ー逶エ荳翫ョ隕ェ隕∫エ縺ョ c:if 繧ソ繧ー縺ッ蜈ィ縺ヲtrue縺ィ縺励※隧穂セ。縺吶k縲)" %> +<%@ attribute name="isConfirmationPage" description="遒コ隱咲判髱「陦ィ遉コ縺ィ縺吶k蝣エ蜷医ッ'true'繧定ィュ螳壹☆繧九(繝繝輔か繝ォ繝医ッ'false')" %> +<%@ attribute name="comment" description="逕サ髱「迥カ諷九↓髢「縺吶k隱ャ譏取枚" %> diff --git a/node_modules/nablarch-widget-spec/ui_public/WEB-INF/tags/widget/spec/desc.tag b/node_modules/nablarch-widget-spec/ui_public/WEB-INF/tags/widget/spec/desc.tag new file mode 100644 index 0000000..9e52830 --- /dev/null +++ b/node_modules/nablarch-widget-spec/ui_public/WEB-INF/tags/widget/spec/desc.tag @@ -0,0 +1,7 @@ +<%-- + 蜷繧ソ繧ー縺ョ隧ウ邏ー繧ウ繝。繝ウ繝医r螳夂セゥ縺吶k縲 + + @author Iwauo Tajima + @from 1.4 +--%> +<%@ tag pageEncoding="UTF-8" description="蜷 spec:xxx 繧ソ繧ー縺ョ隧ウ邏ー繧ウ繝。繝ウ繝医r螳夂セゥ縺吶k縲ょッセ雎。縺ョ繧ソ繧ー縺ョ譛蛻昴ョ蟄占ヲ∫エ縺ィ縺励※驟咲スョ縺吶k縲" %> diff --git a/node_modules/nablarch-widget-spec/ui_public/WEB-INF/tags/widget/spec/layout.tag b/node_modules/nablarch-widget-spec/ui_public/WEB-INF/tags/widget/spec/layout.tag new file mode 100644 index 0000000..031058b --- /dev/null +++ b/node_modules/nablarch-widget-spec/ui_public/WEB-INF/tags/widget/spec/layout.tag @@ -0,0 +1,11 @@ +<%-- + 繝ャ繧、繧「繧ヲ繝亥ョ夂セゥ + @author Iwauo Tajima + @from 1.4 +--%> +<%@ tag pageEncoding="UTF-8" description="逕サ髱「險ュ險域嶌縺ァ縺ョ逕サ髱「蜀陦ィ遉コ蛹コ蛻(繝ャ繧、繧「繧ヲ繝)繧貞ョ夂セゥ縺吶k縲" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="name" description="繝ャ繧、繧「繧ヲ繝亥錐[險ュ險域嶌陦ィ遉コ蠢鬆]" %> + + diff --git a/node_modules/nablarch-widget-spec/ui_public/WEB-INF/tags/widget/spec/validation.tag b/node_modules/nablarch-widget-spec/ui_public/WEB-INF/tags/widget/spec/validation.tag new file mode 100644 index 0000000..20f1e10 --- /dev/null +++ b/node_modules/nablarch-widget-spec/ui_public/WEB-INF/tags/widget/spec/validation.tag @@ -0,0 +1,14 @@ +<%-- + 鬆逶ョ髢薙サ繧サ繝槭Φ繝繧」繧ッ邊セ譟サ螳夂セゥ + @author Iwauo Tajima + @from 1.4 +--%> +<%@ tag pageEncoding="UTF-8" description="鬆逶ョ髢薙サ繧サ繝槭Φ繝繧」繧ッ邊セ譟サ螳夂セゥ" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%---------------------- 螻樊ァ螳夂セゥ ----------------------%> +<%@ attribute name="name" description="邊セ譟サ蜃ヲ逅蜷" %> +<%@ attribute name="target" description="蟇セ雎。鬆逶ョ蜷" %> +<%@ attribute name="condition" description="邊セ譟サ縺梧仙粥縺吶k譚。莉カ" %> +<%@ attribute name="messageId" description="邊セ譟サ繧ィ繝ゥ繝シ譎ゅ↓陦ィ遉コ縺吶k繝。繝繧サ繝シ繧クID" %> +<%@ attribute name="messageParam" description="繝。繝繧サ繝シ繧ク蜀縺ァ菴ソ逕ィ縺吶k蝓九a霎シ縺ソ繝代Λ繝。繝シ繧ソ縺ョ蜀螳ケ縲ゅ芸縲榊玄蛻繧翫〒隍謨ー縺ョ蝓九a霎シ縺ソ繝代Λ繝。繝シ繧ソ繧呈欠螳壹☆繧九" %> + diff --git "a/node_modules/nablarch-widget-spec/ui_test/jsp/\343\202\271\343\203\232\343\203\203\343\202\257\343\202\277\343\202\260/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210.jsp" "b/node_modules/nablarch-widget-spec/ui_test/jsp/\343\202\271\343\203\232\343\203\203\343\202\257\343\202\277\343\202\260/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210.jsp" new file mode 100644 index 0000000..bf683d1 --- /dev/null +++ "b/node_modules/nablarch-widget-spec/ui_test/jsp/\343\202\271\343\203\232\343\203\203\343\202\257\343\202\277\343\202\260/\345\215\230\344\275\223\343\203\206\343\202\271\343\203\210.jsp" @@ -0,0 +1,29 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ taglib prefix="spec" tagdir="/WEB-INF/tags/widget/spec" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + spec + spec + spec + spec + + + + + SPEC繧ソ繧ー縺後し繝シ繝舌シ繧オ繧、繝峨〒蜍穂ス懊@縺ェ縺縺薙→縺ョ遒コ隱 + + 繝ャ繧、繧「繧ヲ繝井クュ縺ォ驟榊y縺励※縺縺セ縺吶 + + + + + diff --git a/node_modules/nablarch-widget-tab/package.json b/node_modules/nablarch-widget-tab/package.json new file mode 100644 index 0000000..461ed59 --- /dev/null +++ b/node_modules/nablarch-widget-tab/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-tab" +, "version": "1.0.1" +, "_from" : "nablarch-widget-tab@1.0.1" +, "dependencies": { + } +, "description": "繧ソ繝悶え繧」繧ク繧ァ繝繝" +} diff --git a/node_modules/nablarch-widget-tab/ui_local/js/jsp/taglib/tab.js b/node_modules/nablarch-widget-tab/ui_local/js/jsp/taglib/tab.js new file mode 100644 index 0000000..08d05dd --- /dev/null +++ b/node_modules/nablarch-widget-tab/ui_local/js/jsp/taglib/tab.js @@ -0,0 +1,36 @@ +/** + * 繧ソ繝悶え繧」繧ク繧ァ繝繝医ョ繧ィ繝溘Η繝シ繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * JSP繧ソ繧ー `` 縺ッ荳玖ィ倥ョ繧ソ繧ー繝輔ぃ繧、繝ォ縺ォ繧医j謠冗判縺輔l繧九 + * + * (繧オ繝シ繝悶Ξ繝繝医さ繝ウ繝繧ュ繧ケ繝)/WEB-INF/tags/widget/tab/xxx.tag + * + * 繧ソ繧ー縺ョname螻樊ァ縲繧ソ繧ー縺ョvalue螻樊ァ縺ッ蛟、縺ッ + * 閾ェ蜍慕噪縺ォ謗。逡ェ縺吶k縺溘a縲∬ィュ險域ョオ髫弱〒謖螳壹☆繧句ソ隕√ッ縺ェ縺縲 + * (縺薙l繧峨ョ螻樊ァ繧呈守、コ逧縺ォ謖螳壹@縺溷エ蜷医√Ο繝シ繧ォ繝ォ蜍穂ス懊↓縺翫>縺ヲ縺ッ蜊倥↓辟。隕悶&繧後k縲) + * + * + * @module jsp.taglib + * @class jsp.taglib.tab + * @author Iwauo Tajima + */ +define(['jsp', 'sugar'], +function($) { 'use strict'; + var tabGroupSeq = 0; + return function($tagBody, context, tagName, _context) { + var tabSeq = 0 + , selected = $(this).jsp_attrs().selected; + if (tagName === 'group') { + $(this).attr('name', 'tabgroup_' + (tabGroupSeq++)); + } + $tagBody.filter('div[data-jsp="tab:content"]').each(function() { + $(this).attr('value', 'tab_' + tabGroupSeq + '_' + (tabSeq++)); + }); + + context.selected = selected === 'true'; + + return $.loadTagfile.apply( + this, ['../WEB-INF/tags/widget/tab/', $tagBody, context, tagName, _context] + ); + }; +}); diff --git a/node_modules/nablarch-widget-tab/ui_public/WEB-INF/tags/widget/tab/content.tag b/node_modules/nablarch-widget-tab/ui_public/WEB-INF/tags/widget/tab/content.tag new file mode 100644 index 0000000..fb2b82f --- /dev/null +++ b/node_modules/nablarch-widget-tab/ui_public/WEB-INF/tags/widget/tab/content.tag @@ -0,0 +1,36 @@ +<%-- + 繧ソ繝悶↓繧医k陦ィ遉コ蜀螳ケ蛻繧頑崛縺 + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="繧ソ繝悶↓繧医k陦ィ遉コ蜀螳ケ蛻繧頑崛縺" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%@ attribute name="title" description="繧ソ繝悶↓陦ィ遉コ縺吶k隕句コ縺" required="true" rtexprvalue="true" %> +<%@ attribute name="value" description="繧ソ繝悶ョ隴伜挨蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="selected" description="繧ソ繝悶ョ蛻晄悄驕ク謚樒憾諷" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ蛟、" rtexprvalue="true" %> + +<%-- 隱ュ縺ソ蜿悶j蟆ら畑繧定。ィ縺冂ss繧ッ繝ゥ繧ケ縺ョ螳夂セゥ --%> + + + +<%-- 繧ソ繝 --%> + +
+ +
+
+ +<%-- 繧ウ繝ウ繝繝ウ繝 --%> + + + diff --git a/node_modules/nablarch-widget-tab/ui_public/WEB-INF/tags/widget/tab/group.tag b/node_modules/nablarch-widget-tab/ui_public/WEB-INF/tags/widget/tab/group.tag new file mode 100644 index 0000000..905ca62 --- /dev/null +++ b/node_modules/nablarch-widget-tab/ui_public/WEB-INF/tags/widget/tab/group.tag @@ -0,0 +1,23 @@ +<%-- + 繧ソ繝悶↓繧医k陦ィ遉コ蜀螳ケ蛻繧頑崛縺 + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="繧ソ繝悶↓繧医k陦ィ遉コ蜀螳ケ蛻繧頑崛縺" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> + +<%@ attribute name="name" description="繧ソ繝悶げ繝ォ繝シ繝怜錐(蠢鬆)" required="true" rtexprvalue="true" %> + +<%-- 繧ソ繝 --%> +
+ + + +
+ +<%-- 繧ソ繝悶ョ驕ク謚樒憾諷倶ソ晄戟逕ィ --%> + + +<%-- 繧ウ繝ウ繝繝ウ繝 --%> + + diff --git a/node_modules/nablarch-widget-tab/ui_public/WEB-INF/tags/widget/tab/link.tag b/node_modules/nablarch-widget-tab/ui_public/WEB-INF/tags/widget/tab/link.tag new file mode 100644 index 0000000..b99f7aa --- /dev/null +++ b/node_modules/nablarch-widget-tab/ui_public/WEB-INF/tags/widget/tab/link.tag @@ -0,0 +1,30 @@ +<%-- + 繧ソ繝門梛繝ェ繝ウ繧ッ + @author Iwauo Tajima +--%> + +<%@ tag pageEncoding="UTF-8" description="繧ソ繝門梛繝ェ繝ウ繧ッ" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%@ attribute name="title" description="繧ソ繝悶↓陦ィ遉コ縺吶k隕句コ縺" rtexprvalue="true" required="true" %> +<%@ attribute name="uri" description="驕キ遘サ蜈URI" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="HTML縺ョid螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="HTML縺ョclass螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="dummyUri" rtexprvalue="true" description="逕サ髱「險ュ險域凾縺ォ菴ソ逕ィ縺吶k驕キ遘サ蜈茨シ育エ呵茅螻縺ョ繧医≧縺ォ逕サ髱「驕キ遘サ縺吶kシ会シ域悽逡ェ迺ー蠅縺ァ縺ッ菴ソ逕ィ縺励↑縺シ" %> +<%@ attribute name="allowDoubleSubmission" description="2驥阪し繝悶Α繝繝医r險ア蜿ッ縺吶k縺句凄縺九Galse繧呈欠螳壹@縺溷エ蜷医ッ險ア蜿ッ縺励↑縺縲ゅョ繝輔か繝ォ繝医ッtrue" rtexprvalue="true" %> + +<%-- 繧ソ繝 --%> + + + diff --git a/node_modules/nablarch-widget-tab/ui_public/css/ui/tab.less b/node_modules/nablarch-widget-tab/ui_public/css/ui/tab.less new file mode 100644 index 0000000..e5acba9 --- /dev/null +++ b/node_modules/nablarch-widget-tab/ui_public/css/ui/tab.less @@ -0,0 +1,57 @@ +div.nablarch_Tab, button.Tab, div.nablarch_TabLink { + float : left; + margin : 0 12px 0 0; + color : @mainColor2; + border-width : 1px 1px 0 1px; + border-style : solid; + border-color : darken(@baseColor, 20%); + padding : 4px 7px 4px 7px; + font-weight : bold; + border-radius : 0; + text-shadow : none; + .vertical-gradient(@baseColor, darken(@baseColor, 5%)); + + &.selected { + .vertical-gradient(lighten(@mainColor1, 10%), @mainColor1); + color : @baseColor; + text-shadow : 0 1px 1px rgba(0,0,0,.3); + cursor : default; + border-color : @mainColor1; + &:hover { + .vertical-gradient(lighten(@mainColor1, 10%), @mainColor1); + } + } + + &:hover { + border-color : @mainColor1; + .vertical-gradient(darken(@baseColor, 5%), @baseColor); + } +} + +div.nablarch_Tab, button.Tab { + cursor : pointer; +} +div.nablarch_Tab div.nablarch_TabLink { + height: 20px; +} + +a.TabLink { + color : @mainColor2; + text-decoration: none; +} + +div.tabgroup { + .grid-col(@fieldGridSpan); + .box-shadow(0, 3px, 1px, #e0e0e0); + border-style: solid; + border-color: @mainColor1; + border-width: 0 0 2px 0; + margin: 15px auto; +} + +a.TabLink { + text-decoration: none; + &:visited { + color: @mainColor2; + } +} diff --git a/node_modules/nablarch-widget-tab/ui_public/js/nablarch/ui/Tab.js b/node_modules/nablarch-widget-tab/ui_public/js/nablarch/ui/Tab.js new file mode 100644 index 0000000..7adc560 --- /dev/null +++ b/node_modules/nablarch-widget-tab/ui_public/js/nablarch/ui/Tab.js @@ -0,0 +1,219 @@ +/** + * @module nablarch.ui + */ +define(['jquery', './Widget', 'sugar'], +function($, Widget) { "use strict"; + /** + * 繧ソ繝門宛蠕。 + * =================================== + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------ + * + * <%-- 繧ソ繝 --%> + *
+ * 繧ソ繝1 + *
+ * + *
+ * 繧ソ繝2 + *
+ * + * <%-- 繧ソ繝悶ョ驕ク謚樒憾諷九r菫晄戟縺吶k縺溘a縺ョ繝輔か繝シ繝隕∫エ --%> + * + * + * <%-- 繧ソ繝悶〒髢矩哩縺吶k鬆伜沺縺ョ荳ュ霄ォ --%> + * + * + * + * + * @class nablarch.ui.Tab + * @author Iwauo Tajima + */ + Tab.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * @method Tab + * @constructor + * @param {HTMLElement} element 繧ソ繝悶ョHTML隕∫エ + * @param {Object} opts 繧ヲ繧」繧ク繧ァ繝繝医ョ繧ェ繝励す繝ァ繝ウ繧ェ繝悶ず繧ァ繧ッ繝 + */ + constructor: Tab + /** + * 繧ソ繧ー繧ー繝ォ繝シ繝怜錐 + * 迴セ蝨ィ驕ク謚樔クュ縺ョ繧ソ繧ー蜷阪ッ縺薙ョname蛟、繧偵b縺」縺歿orm隕∫エ縺ォ菫晄戟縺輔l繧九 + * @property name + * @type String + */ + , name: null + /** + * 繧ソ繧ー蜷 + * 縺薙ョ繧ソ繧ー縺碁∈謚樔クュ縺ァ縺ゅ▲縺溷エ蜷医√%縺ョ蛟、縺掲orm隕∫エ縺ォ菫晄戟縺輔l繧九 + * @property value + * @type String + */ + , value: null + /** + * 縺薙ョ繧ソ繧ー縺碁∈謚樒憾諷九↓縺ゅk縺九←縺縺 + * @property selected + * @type Boolean + */ + , selected: null + /** + * 縺薙ョ繧ソ繝悶r菴ソ縺」縺ヲ陦ィ遉コ繝サ髱櫁。ィ遉コ繧貞繧頑崛縺医k蟇セ雎。鬆伜沺繧剃ソ晄戟縺吶kjQuery邨先棡繧サ繝繝 + * @property $content + * @type jQuery + */ + , $content: null + /** + * 縺薙ョ繧ソ繝悶ョ驕ク謚樒憾諷九r菫晄戟縺吶k繝輔か繝シ繝隕∫エ繧剃ソ晄戟縺吶kjQuery邨先棡繧サ繝繝 + * @property $input + * @type jQuery + */ + , $input: null + /** + * 縺薙ョ繧ソ繝悶r驕ク謚槭☆繧九 + * + * 縺薙ョ繝。繧ス繝繝牙ョ溯。悟セ後ッ莉・荳九ョ迥カ諷九→縺ェ繧九 + * + * - 蜷後§繧ソ繧ー繧ー繝ォ繝シ繝怜縺ォ蟄伜惠縺吶k蜈ィ縺ヲ縺ョ繧ソ繧ー繧帝撼驕ク謚樒憾諷九↓螟画峩縺励√◎縺ョ蟇セ雎。鬆伜沺繧帝撼陦ィ遉コ縺ォ縺吶k縲 + * - 縺薙ョ繧ソ繝悶r驕ク謚樒憾諷九↓螟画峩縺励∝ッセ雎。鬆伜沺繧定。ィ遉コ縺吶k縲 + * + * 縺ェ縺翫√%縺ョ繧ソ繝悶′譌「縺ォ驕ク謚樒憾諷九↓縺ゅk蝣エ蜷医ッ縺ェ縺ォ繧ゅ@縺ェ縺縲 + * + * @method select + * @chainable + */ + , select: Tab_select + /** + * 縺薙ョ繧ソ繝悶r髱樣∈謚樒憾諷九↓縺吶k縲 + * + * @method unselect + * @chainable + */ + , unselect: Tab_unselect + /** + * 迴セ蝨ィ縺ョ繧ヲ繧」繧ク繧ァ繝繝医ョ迥カ諷九↓豐ソ縺」縺ヲ縲 + * 縺薙ョ繧ソ繝門所縺ウ蛻カ蠕。蟇セ雎。鬆伜沺縺ョ陦ィ遉コ繧貞繧頑崛縺医k縺ィ縺ィ繧ゅ↓縲 + * 繝輔か繝シ繝荳翫ョ隕∫エ縺ォ迴セ蝨ィ縺ョ驕ク謚樒憾諷九r蜿肴丐縺吶k縲 + * + * @method render + * @chainable + */ + , render: Tab_render + }); + + /** + * 繧、繝吶Φ繝亥ョ夂セゥ + * + * Tab.event = { + * 'click' : 'select' + * }; + * + * @property event + * @type Object + * @static + */ + Tab.event = { + 'click' : 'select' + }; + + /** + * 繧ヲ繧」繧ク繧ァ繝繝郁ュ伜挨蟄 + * @property widgetType + * @static + * @final + * @default "nablarch_Tab" + */ + Tab.widgetType = 'nablarch_Tab'; + + // ------------------------------------------------------- implementation + + Widget.register(Tab); + + // 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ + function Tab(element, opts) { + var self = this; + this.constructor = Tab; + readOption(); + Widget.call(this, element); + readForm(); + hasError() ? this.select() + : this.render(); + + // ----- subroutines -------- // + function readOption() { + self.value = opts.value; + self.name = opts.name; + self.$content = $(opts.content); + } + + function hasError() { + return self.$content.find(".nablarch_errors, .nablarch_error").length > 0; + } + + function readForm() { + var $input = $('input[name="'+ self.name + '"]'); + if (!$input.length) { + $input = $('', {type:'hidden', name:self.name}) + .appendTo('form'); + } + + self.selected = $input.val() + ? (self.value === $input.val()) + : self.$node.is('.selected'); + + self.$input = $input; + } + } + + function Tab_select() { + var thisTab = this; + + // 蜷後§繧ソ繝悶げ繝ォ繝シ繝励↓螻槭☆繧九ち繝悶r蜈ィ縺ヲ髢峨§繧九 + $('.' + Tab.widgetType).each(function() { + var tab = $(this).widget(Tab); + if ((tab.name === thisTab.name) && (thisTab !== this)) { + tab.unselect(); + } + }); + + this.selected = true; + this.render(); + return this; + } + + function Tab_unselect() { + if (this.selected) { + this.selected = false; + this.render(); + } + return this; + } + + function Tab_render() { + if (this.selected) { + this.$input.val(this.value); + this.$node.removeClass('selected').addClass('selected'); + this.$content.show(); + } + else { + this.$node.removeClass('selected'); + this.$content.hide(); + } + return this; + } + + return Tab; +}); diff --git a/node_modules/nablarch-widget-tab/ui_public/js/nablarch/ui/TabLink.js b/node_modules/nablarch-widget-tab/ui_public/js/nablarch/ui/TabLink.js new file mode 100644 index 0000000..2d910b6 --- /dev/null +++ b/node_modules/nablarch-widget-tab/ui_public/js/nablarch/ui/TabLink.js @@ -0,0 +1,99 @@ +/** + * @module nablarch.ui + */ +define(['jquery', './Widget', 'sugar'], +function($, Widget) { "use strict"; + /** + * 繧ソ繝門宛蠕。 + * =================================== + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------ + * + * <%-- 繧ソ繝 --%> + *
+ * 繧ソ繝1 + *
+ * + *
+ * 繧ソ繝2 + *
+ * + * <%-- 繧ソ繝悶ョ驕ク謚樒憾諷九r菫晄戟縺吶k縺溘a縺ョ繝輔か繝シ繝隕∫エ --%> + * + * + * <%-- 繧ソ繝悶〒髢矩哩縺吶k鬆伜沺縺ョ荳ュ霄ォ --%> + * + * + * + * + * @class nablarch.ui.TabLink + * @author Iwauo Tajima + */ + TabLink.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * @method TabLink + * @constructor + * @param {HTMLElement} element 繧ソ繝悶ョHTML隕∫エ + * @param {Object} opts 繧ヲ繧」繧ク繧ァ繝繝医ョ繧ェ繝励す繝ァ繝ウ繧ェ繝悶ず繧ァ繧ッ繝 + */ + constructor: TabLink + /** + * 繧ソ繧ー繧ー繝ォ繝シ繝怜錐 + * 迴セ蝨ィ驕ク謚樔クュ縺ョ繧ソ繧ー蜷阪ッ縺薙ョname蛟、繧偵b縺」縺歿orm隕∫エ縺ォ菫晄戟縺輔l繧九 + * @property name + * @type String + */ + , name: null + }); + + /** + * 繧、繝吶Φ繝亥ョ夂セゥ + * + * Tab.event = { + * 'click' : 'select' + * }; + * + * @property event + * @type Object + * @static + */ + TabLink.event = { + 'click' : function(event) { + $("input[name=" + this.name + "]").val(""); + } + }; + + /** + * 繧ヲ繧」繧ク繧ァ繝繝郁ュ伜挨蟄 + * @property widgetType + * @static + * @final + * @default "nablarch_TabLink" + */ + TabLink.widgetType = 'TabLink'; + + // ------------------------------------------------------- implementation + + Widget.register(TabLink); + + // 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ + function TabLink(element, opts) { + this.name = opts.name; + Widget.call(this, element); + } + + return TabLink; +}); diff --git "a/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/index.jsp" "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/index.jsp" new file mode 100644 index 0000000..6ee28a1 --- /dev/null +++ "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/index.jsp" @@ -0,0 +1,21 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
  • +
  • +
+
+
+
diff --git "a/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226.jsp" "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226.jsp" new file mode 100644 index 0000000..e8cc7dd --- /dev/null +++ "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226.jsp" @@ -0,0 +1,155 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + +<% + // 繧オ繝シ繝舌シ繝「繝シ繝峨r陦ィ縺 + request.setAttribute("serverMode", true); +%> + + + + + span.procedure { + display: block; + clear: both; + font-size: 80%; + } + + div.nablarch_Tab.border-blue { + border: 3px blue solid; + } + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ鬆逶ョ縺ョ縺ソ謖螳壹@縺ヲ蜍穂ス懊☆繧九%縺ィ + + 縲後ち繝悶阪r驕ク謚槭☆繧 + + +

縲後ち繝悶阪r驕ク謚槭☆繧九→縺薙ョ繝悶Ο繝繧ッ縺瑚。ィ遉コ縺輔l繧九%縺ィ

+ 縲悟譖ソ逕ィ繧ソ繝悶阪b驕ク謚槭☆繧九%縺ィ縲 +
+ +

蛻繧頑崛縺医◆蠕後↓縺薙ョ繝悶Ο繝繧ッ縺瑚。ィ遉コ縺輔l繧九%縺ィ

+
+
+
+ + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧貞性繧縲∝ィ縺ヲ縺ョ螻樊ァ繧定ィュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蜍穂ス懊☆繧九%縺ィ + + +

蛻晄悄陦ィ遉コ譎ゅ↓縺薙ョ繝悶Ο繝繧ッ縺碁∈謚樒憾諷九〒縺ゅk縺薙→

+ 縲悟譖ソ逕ィ繧ソ繝悶阪b驕ク謚槭☆繧九%縺ィ縲 +
+ +

蛻繧頑崛縺医◆蠕後↓縺薙ョ繝悶Ο繝繧ッ縺瑚。ィ遉コ縺輔l繧九%縺ィ

+ 縲後ち繝悶阪b驕ク謚槭☆繧九%縺ィ縲 +
+
+
+
+
+ + + + +

蛻晄悄陦ィ遉コ譎ゅ↓縺薙ョ繝悶Ο繝繧ッ縺ッ驕ク謚樒憾諷九〒縺ェ縺縺薙→

+
+ +

蛻晄悄陦ィ遉コ譎ゅ↓縺薙ョ繝悶Ο繝繧ッ縺ッ驕ク謚樒憾諷九〒縺ェ縺縺薙→

+
+ +

蛻晄悄陦ィ遉コ譎ゅ↓縺薙ョ繝悶Ο繝繧ッ縺ッ驕ク謚樒憾諷九〒縺ェ縺縺薙→

+
+ +

蛻晄悄陦ィ遉コ譎ゅ↓縺薙ョ繝悶Ο繝繧ッ縺碁∈謚樒憾諷九〒縺ゅk縺薙→

+
+
+
+ + cssClass縺梧悴謖螳壹ョ蝣エ蜷医√ち繝悶↓縺ッclass螻樊ァ縺梧欠螳壹&繧後↑縺縺薙→ + cssClass縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繝悶↓縺ッclass螻樊ァ縺梧欠螳壹&繧後↑縺縺薙→ + cssClass繧呈欠螳壹@縺溷エ蜷医√ち繝悶↓class螻樊ァ縺梧欠螳壹&繧後k縺薙→ + + + + + + + + + + + + 谺。逕サ髱「縺ォ驕キ遘サ縺励※繧ゅ√ち繝悶ョ驕ク謚樒憾諷九′邯ュ謖√&繧後※縺繧九%縺ィ縲 + Selected螻樊ァ縺掲alse縺ョ繧ゅョ繧帝∈謚槭@縺ヲ驕キ遘サ縺吶k縲 + + + 蜈逕サ髱「縺ォ驕キ遘サ縺励※繧ゅ√ち繝悶ョ驕ク謚樒憾諷九′邯ュ謖√&繧後※縺繧九%縺ィ縲 + 迴セ蝨ィ驕ク謚樔クュ縺ョ繧ソ繝悶→逡ー縺ェ繧九ち繝悶r驕ク謚槭@縺ヲ驕キ遘サ縺吶k縲 + + + + + + + + + + + + + + + + + + +
+ + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医ョ鬆逶ョ縺ョ縺ソ謖螳壹@縺ヲ蜍穂ス懊☆繧九%縺ィ + + 縲後ち繝悶阪r驕ク謚槭☆繧 + + +

縲後ち繝悶阪r驕ク謚槭☆繧九→縺薙ョ繝悶Ο繝繧ッ縺瑚。ィ遉コ縺輔l繧九%縺ィ

+ 縲悟譖ソ逕ィ繧ソ繝悶阪b驕ク謚槭☆繧九%縺ィ縲 +
+ +

蛻繧頑崛縺医◆蠕後↓縺薙ョ繝悶Ο繝繧ッ縺瑚。ィ遉コ縺輔l繧九%縺ィ

+
+
+
+
+
+
+
+ +
diff --git "a/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.jsp" "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.jsp" new file mode 100644 index 0000000..d9fe777 --- /dev/null +++ "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226_\347\262\276\346\237\273\343\202\250\343\203\251\343\203\274.jsp" @@ -0,0 +1,117 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page import="java.util.Locale" %> +<%@ page import="nablarch.core.message.ApplicationException" %> +<%@ page import="nablarch.core.message.Message" %> +<%@ page import="nablarch.core.message.StringResource" %> +<%@ page import="nablarch.core.validation.ValidationResultMessage" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + +<% + // 繧オ繝シ繝舌シ繝「繝シ繝峨r陦ィ縺 + request.setAttribute("serverMode", true); + + ApplicationException exception = new ApplicationException(); + Message message1 = new ValidationResultMessage("validation_error", new StringResource() { + @Override + public String getId() { + return "error1"; + } + + @Override + public String getValue(Locale locale) { + return "蜊倬逶ョ邊セ譟サ繧ィ繝ゥ繝シ"; + } + }, new String[0]); + exception.addMessages(message1); + Message message2 = new ValidationResultMessage("validation_error_alias", new StringResource() { + @Override + public String getId() { + return "error2"; + } + + @Override + public String getValue(Locale locale) { + return "鬆逶ョ髢鍋イセ譟サ繧ィ繝ゥ繝シ"; + } + }, new String[0]); + exception.addMessages(message2); + request.setAttribute("nablarch_application_error", exception); +%> + + + + + + +

縺薙ョ繧ソ繝悶′驕ク謚槭&繧後※縺縺ェ縺縺薙→

+ + + + +
+ +

縺薙ョ繧ソ繝悶′驕ク謚槭&繧後※縺繧九%縺ィ

+ + +

縺薙ョ繧ソ繝悶′驕ク謚槭&繧後※縺繧九%縺ィ

+ + + + +
+ +

縺薙ョ繧ソ繝悶′驕ク謚槭&繧後※縺縺ェ縺縺薙→

+ + + + +
+
+ + +

縺薙ョ繧ソ繝悶′驕ク謚槭&繧後※縺縺ェ縺縺薙→

+ + + + +
+ +

縺薙ョ繧ソ繝悶′驕ク謚槭&繧後※縺繧九%縺ィ

+ + + + +
+
+
+
+ + + + +
+
+
diff --git "a/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226_\351\201\267\347\247\273\345\205\210.jsp" "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226_\351\201\267\347\247\273\345\205\210.jsp" new file mode 100644 index 0000000..20c89b2 --- /dev/null +++ "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226_\351\201\267\347\247\273\345\205\210.jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226\345\236\213\343\203\252\343\203\263\343\202\257.jsp" "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226\345\236\213\343\203\252\343\203\263\343\202\257.jsp" new file mode 100644 index 0000000..513e7f3 --- /dev/null +++ "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226\345\236\213\343\203\252\343\203\263\343\202\257.jsp" @@ -0,0 +1,175 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + +<% + // 繧オ繝シ繝舌シ繝「繝シ繝峨r陦ィ縺 + request.setAttribute("serverMode", true); +%> + + + + + span.procedure { + display: block; + clear: both; + font-size: 80%; + } + + div.nablarch_TabLink.border-blue { + border: 3px blue solid; + } + + a#test-id { + border: 3px green solid; + } + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蠢鬆医ョ鬆逶ョ縺ョ縺ソ謖螳壹@縺ヲ蜍穂ス懊☆繧九%縺ィ + + +

縲後ち繝門梛繝ェ繝ウ繧ッ縲阪→縺縺繧ソ繝悶′陦ィ遉コ縺輔l縺ヲ縺繧九%縺ィ縲

+
+ + +
+
+ + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧貞性繧縲∝ィ縺ヲ縺ョ螻樊ァ繧定ィュ螳壹@縺ヲ繧ゅけ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒蜍穂ス懊☆繧九%縺ィ + + +

縲後ち繝門梛繝ェ繝ウ繧ッ縲阪→縺縺繧ソ繝悶′陦ィ遉コ縺輔l縺ヲ縺繧九%縺ィ縲

+
+ + +
+
+
+
+ + + id螻樊ァ縺梧悴謖螳壹ョ蝣エ蜷医√ち繝悶↓縺ッid螻樊ァ縺梧欠螳壹&繧後↑縺縺薙→ + id螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繝悶↓縺ッid螻樊ァ縺梧欠螳壹&繧後↑縺縺薙→ + id螻樊ァ繧呈欠螳壹@縺溷エ蜷医√ち繝悶↓id螻樊ァ縺梧欠螳壹&繧後k縺薙→ + id螻樊ァ縺梧欠螳壹&繧後※縺繧九ち繝悶ッ縲∫キ題牡縺ョ譫邱壹〒蝗イ縺セ繧後k縲 + + + + + + + + + + + dummyUri螻樊ァ縺梧欠螳壹&繧後◆蝣エ蜷医√Μ繝ウ繧ッ繧偵け繝ェ繝繧ッ縺吶k縺ィ謖螳壹&繧後◆繝ェ繝ウ繧ッ蜈医↓驕キ遘サ縺吶k縺薙→シ医け繝ゥ繧、繧「繝ウ繝医し繧、繝峨ョ縺ソシ + dummyUri螻樊ァ縺梧欠螳壹&繧後※縺縺ヲ繧ゅ√し繝シ繝舌し繧、繝峨〒縺ッ譛牙柑縺ォ縺ェ繧峨★縲「ri螻樊ァ縺ォ謖螳壹&繧後◆繝ェ繝ウ繧ッ蜈医↓驕キ遘サ縺吶k縺薙→ + 縲後ち繝門梛繝ェ繝ウ繧ッ_繝壹シ繧ク2.jsp縲阪↓驕キ遘サ縺吶l縺ー繧医>縲 + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒蠢鬆医ョ鬆逶ョ縺ョ縺ソ謖螳壹☆繧九よ欠螳壹@縺欟RI縺ォ驕キ遘サ縺吶k縺薙→縲 + 縲後ち繝門梛繝ェ繝ウ繧ッ_繝壹シ繧ク2.jsp縲阪↓驕キ遘サ縺吶l縺ー繧医>縲 + + + + + + + allowDoubleSubmission螻樊ァ縺梧悴謖螳壹ョ蝣エ蜷医‖llowDoubleSubmission螻樊ァ縺ッtrue縺梧欠螳壹&繧後k縺薙→ + allowDoubleSubmission螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医‖llowDoubleSubmission螻樊ァ縺ッtrue縺梧欠螳壹&繧後k縺薙→ + allowDoubleSubmission螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医‖llowDoubleSubmission螻樊ァ縺ッtrue縺梧欠螳壹&繧後k縺薙→ + allowDoubleSubmission螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医‖llowDoubleSubmission螻樊ァ縺ッfalse縺梧欠螳壹&繧後k縺薙→ + allowDoubleSubmission螻樊ァ縺荊rue縺ョ繧ソ繝悶ッ縲∫エォ濶イ縺ョ譫邱壹〒蝗イ縺セ繧後k縲 + + + + + + + + + + + + +
+
+
+ + + $('div.nablarch_TabLink > a').each(function () { + var $a = $(this); + var name = $a.attr('name'); + var $form = $a.parents('form'); + var formName = $form.attr('name'); + var allowDoubleSubmission = formName && nablarch_submission_info[formName][name]['allowDoubleSubmission']; + if (allowDoubleSubmission) { + $a.parent().css("border", "3px purple solid") + } + }); + +
diff --git "a/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226\345\236\213\343\203\252\343\203\263\343\202\257_\343\203\232\343\203\274\343\202\2702.jsp" "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226\345\236\213\343\203\252\343\203\263\343\202\257_\343\203\232\343\203\274\343\202\2702.jsp" new file mode 100644 index 0000000..930a470 --- /dev/null +++ "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\202\277\343\203\226\345\236\213\343\203\252\343\203\263\343\202\257_\343\203\232\343\203\274\343\202\2702.jsp" @@ -0,0 +1,30 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + +<% + // 繧オ繝シ繝舌シ繝「繝シ繝峨r陦ィ縺 + request.setAttribute("serverMode", true); +%> + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277_\343\203\252\343\202\271\343\203\210\343\201\256\345\206\205\345\256\271.jsp" "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277_\343\203\252\343\202\271\343\203\210\343\201\256\345\206\205\345\256\271.jsp" new file mode 100644 index 0000000..91ddc31 --- /dev/null +++ "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277_\343\203\252\343\202\271\343\203\210\343\201\256\345\206\205\345\256\271.jsp" @@ -0,0 +1,86 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> +<% + request.setAttribute("allPermissionUnit", new Map[] { + new HashMap() { + { + put("permissionUnitName", "繝ヲ繝シ繧カ荳隕ァ辣ァ莨"); + put("permissionUnitId", "0000000001"); + } + }, + new HashMap() { + { + put("permissionUnitName", "繝繧ケ繝育畑"); + put("permissionUnitId", "0000000002"); + } + }, + new HashMap() { + { + put("permissionUnitName", "繝ヲ繝シ繧カ諠蝣ア逋サ骭イ"); + put("permissionUnitId", "0000000003"); + } + }, + }); + request.setAttribute("allGroup", new Map[] { + new HashMap() { + { + put("ugroupName", "邱丞漁驛ィ" ); + put("ugroupId", "0000000001"); + } + }, + new HashMap() { + { + put("ugroupName", "莠コ莠矩Κ" ); + put("ugroupId", "0000000002"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑1" ); + put("ugroupId", "0000000003"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑2" ); + put("ugroupId", "0000000004"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑3" ); + put("ugroupId", "0000000005"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑4" ); + put("ugroupId", "0000000006"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑5" ); + put("ugroupId", "0000000007"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑6" ); + put("ugroupId", "0000000008"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑7" ); + put("ugroupId", "0000000009"); + } + }, + new HashMap() { + { + put("ugroupName", "繝繧ケ繝育畑8" ); + put("ugroupId", "0000000010"); + } + }, + }); +%> \ No newline at end of file diff --git "a/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..ae630f7 --- /dev/null +++ "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,106 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> + +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + + + + 蜊願ァ定恭謨ー險伜捷20譁蟄嶺サ・蜀 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..2f421e5 --- /dev/null +++ "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,29 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> + + +<% + request.setAttribute("W11AC02", new HashMap() {{ + put("systemAccount", new HashMap()); + put("ugroupSystemAccount", new HashMap() {{ + put("ugroupId", ""); + }}); + put("users", new HashMap()); + }}); +%> + + + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..a80d56c --- /dev/null +++ "b/node_modules/nablarch-widget-tab/ui_test/jsp/\343\202\277\343\203\226/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" @@ -0,0 +1,10 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + \ No newline at end of file diff --git a/node_modules/nablarch-widget-table-base/package.json b/node_modules/nablarch-widget-table-base/package.json new file mode 100644 index 0000000..c108047 --- /dev/null +++ b/node_modules/nablarch-widget-table-base/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-table-base" +, "description": "繝繝シ繝悶Ν繝ャ繧、繧「繧ヲ繝医ョ繝吶シ繧ケ繝励Λ繧ー繧、繝ウ" +, "version": "1.0.0" +, "_from" : "nablarch-widget-table-base@1.0.0" +, "dependencies": { + } +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-table-base/ui_local/js/jsp/taglib/listsearchresult.js b/node_modules/nablarch-widget-table-base/ui_local/js/jsp/taglib/listsearchresult.js new file mode 100644 index 0000000..f70c3ce --- /dev/null +++ b/node_modules/nablarch-widget-table-base/ui_local/js/jsp/taglib/listsearchresult.js @@ -0,0 +1,71 @@ +/** + * 荳隕ァ讀懃エ「逕サ髱「陦ィ遉コ逕ィ繧ソ繧ー `` 繧ソ繧ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * `js/jsp/tagfile` 驟堺ク九↓蟄伜惠縺吶k繧ソ繧ー繝輔ぃ繧、繝ォ繧偵Ο繝シ繝峨☆繧九 + * + * @module jsp.taglib + * @class jsp.taglib.listsearchresult + * @author Iwauo Tajima + */ +define(['jsp', 'sugar'], +function($) { 'use strict'; + var path = '../WEB-INF/tags/listSearchResult/'; + return { + /** + * ``繧ソ繧ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * 繧ソ繧ー繝輔ぃ繧、繝ォ `listSearchPaging.tag` 縺ョ蜀螳ケ繧貞ア暮幕縺吶k縲 + * + * @method listsearchpaging + */ + listsearchpaging: $.loadTagfile.fill(path, undefined, undefined, 'listSearchPaging') + /** + * ``繧ソ繧ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * 繧ソ繧ー繝輔ぃ繧、繝ォ `listSearchParam.tag` 縺ョ蜀螳ケ繧貞ア暮幕縺吶k縲 + * + * @method listsearchparam + */ + , listsearchparam: $.loadTagfile.fill(path, undefined, undefined, 'listSearchParam') + /** + * ``繧ソ繧ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * 繧ソ繧ー繝輔ぃ繧、繝ォ `listSearchParams.tag` 縺ョ蜀螳ケ繧貞ア暮幕縺吶k縲 + * + * @method listsearchparams + */ + , listsearchparams: $.loadTagfile.fill(path, undefined, undefined, 'listSearchParams') + /** + * ``繧ソ繧ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * 繧ソ繧ー繝輔ぃ繧、繝ォ `listSearchResult.tag` 縺ョ蜀螳ケ繧貞ア暮幕縺吶k縲 + * + * @method listsearchresult + */ + , listsearchresult: $.loadTagfile.fill(path, undefined, undefined, 'listSearchResult') + /** + * ``繧ソ繧ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * 繧ソ繧ー繝輔ぃ繧、繝ォ `listSearchSortSubmit.tag` 縺ョ蜀螳ケ繧貞ア暮幕縺吶k縲 + * + * @method listsearchsortsubmit + */ + , listsearchsortsubmit: $.loadTagfile.fill(path, undefined, undefined, 'listSearchSortSubmit') + /** + * ``繧ソ繧ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * 繧ソ繧ー繝輔ぃ繧、繝ォ `listSearchSubmit.tag` 縺ョ蜀螳ケ繧貞ア暮幕縺吶k縲 + * + * @method listsearchsubmit + */ + , listsearchsubmit: $.loadTagfile.fill(path, undefined, undefined, 'listSearchSubmit') + /** + * ``繧ソ繧ー縺ョ繧ィ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * 繧ソ繧ー繝輔ぃ繧、繝ォ `table.tag` 縺ョ蜀螳ケ繧貞ア暮幕縺吶k縲 + * + * @method table + */ + , table: $.loadTagfile.fill(path, undefined, undefined, 'table') + }; +}); \ No newline at end of file diff --git a/node_modules/nablarch-widget-table-base/ui_local/js/jsp/taglib/table.js b/node_modules/nablarch-widget-table-base/ui_local/js/jsp/taglib/table.js new file mode 100644 index 0000000..9fc7acf --- /dev/null +++ b/node_modules/nablarch-widget-table-base/ui_local/js/jsp/taglib/table.js @@ -0,0 +1,65 @@ +/** + * 繝繝シ繝悶Ν繧ヲ繧」繧ク繧ァ繝繝(``)縺ョ繧ィ繝溘Η繝シ繝ャ繝シ繧キ繝ァ繝ウ繧定。後≧縲 + * + * 繧ヲ繧」繧ク繧ァ繝繝医ョ`sampleResults`螻樊ァ蛟、縺ォ謖螳壹@縺滉サカ謨ー蛻縺縺代 + * 繝繝溘シ縺ョ繝ャ繧ウ繝シ繝(遨コ驟榊)繧剃ス懈舌@縺ヲ繧ウ繝ウ繝繧ュ繧ケ繝医↓隧ー繧√k縲 + * 蜷繝ャ繧ウ繝シ繝峨ョ蜀螳ケ縺ッ縲〜`繧ヲ繧」繧ク繧ァ繝繝医ョsample螻樊ァ縺ョ蜀螳ケ縺瑚。ィ遉コ縺輔l繧九 + * + * @module jsp.taglib + * @class jsp.taglib.table + * @author Iwauo Tajima + */ +define(['jsp', 'nablarch/ui/Widget', 'nablarch/ui/TreeList', 'sugar'], +function($, Widget, TreeList) { 'use strict'; + $(document).on('jsp_processed', function() { + $('.' + TreeList.widgetType).widgets(TreeList).each(function(){this.render()}); + }); + + return function($tagBody, context, tagName, _context) { + var attrs = $(this).jsp_attrs(context) + , rowNum = Number(attrs.sampleresults) || 0 + , infoName = attrs.listsearchinfoname || 'listsearchinfo' + , rowsName = attrs.resultsetname + , numName = attrs.resultnumname + , rows = [] + , cols = $tagBody.filter("div[data-jsp^='column']") + .add($tagBody.find("div[data-jsp^='column']")) + .map(function(){return $(this).jsp_attrs(context)}) + .get() + , i, col, len; + + if (!rowsName && !numName) { + rowsName = 'sampleresult'; + } + + // 莉カ謨ー諠蝣ア(listSearchInfo)縺ョ繝繝溘シ繝繝シ繧ソ + context.setVar('listsearchinfoname', infoName); + context.setVar(infoName + '.resultCount', rowNum); + context.setVar(infoName + '.pageNumber', 1); + context.setVar(infoName + '.pageCount', 1); + context.setVar(infoName + '.startPosition', 1); + context.setVar('resultcount', rowNum); + + // 讀懃エ「邨先棡(resultSet/resultNum)縺ョ繝繝溘シ繝繝シ繧ソ + context.setVar('resultsetname', rowsName); + context.setVar('resultnumname', numName); + + for (i = 0, len = rowNum; i < len; i++) { + row = {}; + cols.each(function(col) { + if (!col.sample) return; + var key = (col.key || '').toLowerCase() + , sample = (col.sample) ? col.sample.split('|') : [] + , val = (sample.length) ? sample[i % sample.length] : ''; + row[key] = val; + }); + rows.push(row); + } + rowsName && context.setVar(rowsName, rows); + numName && context.setVar(numName, rowNum); + + return $.loadTagfile.apply( + this, ['../WEB-INF/tags/widget/table/', $tagBody, context, tagName, _context] + ); + }; +}); diff --git a/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchPaging.tag b/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchPaging.tag new file mode 100644 index 0000000..464482c --- /dev/null +++ b/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchPaging.tag @@ -0,0 +1,186 @@ +<%-------------------------------------------------------------- +讀懃エ「邨先棡縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ョ繝壹シ繧ク繝ウ繧ー繧貞コ蜉帙☆繧九ち繧ー縲 +--------------------------------------------------------------%> +<%@ tag language="java" pageEncoding="UTF-8" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="listSearchResult" tagdir="/WEB-INF/tags/listSearchResult" %> + +<%-------------------------------------------------------------- +螻樊ァ +--------------------------------------------------------------%> +<%@ attribute name="listSearchInfoName" required="true" rtexprvalue="true" %> +<%@ attribute name="pagingCss" required="false" rtexprvalue="true" %> +<%@ attribute name="searchUri" required="true" rtexprvalue="true" %> +<%@ attribute name="submitNameSuffix" required="false" rtexprvalue="true" %> +<%-- 迴セ蝨ィ縺ョ繝壹シ繧ク逡ェ蜿キ --%> +<%@ attribute name="useCurrentPageNumber" required="false" rtexprvalue="true" %> +<%@ attribute name="currentPageNumberCss" required="false" rtexprvalue="true" %> +<%@ attribute name="currentPageNumberFragment" required="false" fragment="true" %> +<%-- 譛蛻 --%> +<%@ attribute name="useFirstSubmit" required="false" rtexprvalue="true" %> +<%@ attribute name="firstSubmitTag" required="false" rtexprvalue="true" %> +<%@ attribute name="firstSubmitType" required="false" rtexprvalue="true" %> +<%@ attribute name="firstSubmitCss" required="false" rtexprvalue="true" %> +<%@ attribute name="firstSubmitLabel" required="false" rtexprvalue="true" %> +<%@ attribute name="firstSubmitName" required="false" rtexprvalue="true" %> +<%-- 蜑阪∈ --%> +<%@ attribute name="usePrevSubmit" required="false" rtexprvalue="true" %> +<%@ attribute name="prevSubmitTag" required="false" rtexprvalue="true" %> +<%@ attribute name="prevSubmitType" required="false" rtexprvalue="true" %> +<%@ attribute name="prevSubmitCss" required="false" rtexprvalue="true" %> +<%@ attribute name="prevSubmitLabel" required="false" rtexprvalue="true" %> +<%@ attribute name="prevSubmitName" required="false" rtexprvalue="true" %> +<%-- 繝壹シ繧ク逡ェ蜿キ(1 2 3 ...n) --%> +<%@ attribute name="usePageNumberSubmit" required="false" rtexprvalue="true" %> +<%@ attribute name="pageNumberSubmitWrapperCss" required="false" rtexprvalue="true" %> +<%@ attribute name="pageNumberSubmitTag" required="false" rtexprvalue="true" %> +<%@ attribute name="pageNumberSubmitType" required="false" rtexprvalue="true" %> +<%@ attribute name="pageNumberSubmitCss" required="false" rtexprvalue="true" %> +<%@ attribute name="pageNumberSubmitName" required="false" rtexprvalue="true" %> +<%-- 谺。縺ク --%> +<%@ attribute name="useNextSubmit" required="false" rtexprvalue="true" %> +<%@ attribute name="nextSubmitTag" required="false" rtexprvalue="true" %> +<%@ attribute name="nextSubmitType" required="false" rtexprvalue="true" %> +<%@ attribute name="nextSubmitCss" required="false" rtexprvalue="true" %> +<%@ attribute name="nextSubmitLabel" required="false" rtexprvalue="true" %> +<%@ attribute name="nextSubmitName" required="false" rtexprvalue="true" %> +<%-- 譛蠕 --%> +<%@ attribute name="useLastSubmit" required="false" rtexprvalue="true" %> +<%@ attribute name="lastSubmitTag" required="false" rtexprvalue="true" %> +<%@ attribute name="lastSubmitType" required="false" rtexprvalue="true" %> +<%@ attribute name="lastSubmitCss" required="false" rtexprvalue="true" %> +<%@ attribute name="lastSubmitLabel" required="false" rtexprvalue="true" %> +<%@ attribute name="lastSubmitName" required="false" rtexprvalue="true" %> + +<%-------------------------------------------------------------- +繝繝輔か繝ォ繝 +--------------------------------------------------------------%> + +<%-- 迴セ蝨ィ縺ョ繝壹シ繧ク逡ェ蜿キ --%> + + +<%-- 譛蛻 --%> + + + + + + +<%-- 蜑阪∈ --%> + + + + + + +<%-- 繝壹シ繧ク逡ェ蜿キ(1 2 3 ...n) --%> + + + + + + +<%-- 谺。縺ク --%> + + + + + + +<%-- 譛蠕 --%> + + + + + + + +<%-------------------------------------------------------------- +譛ャ菴灘ヲ逅 +--------------------------------------------------------------%> + + + +
+ <%-- 迴セ蝨ィ縺ョ繝壹シ繧ク逡ェ蜿キ --%> + +
+ + + + [/繝壹シ繧ク] + + + + + +
+
+ <%-- 譛蛻 --%> + + + + <%-- 蜑阪∈ --%> + + + + <%-- 繝壹シ繧ク逡ェ蜿キ(1 2 3 ...n) --%> + +
+ + + + +
+
+ <%-- 谺。縺ク --%> + + + + <%-- 譛蠕 --%> + + + +
+
diff --git a/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchParams.tag b/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchParams.tag new file mode 100644 index 0000000..d270840 --- /dev/null +++ b/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchParams.tag @@ -0,0 +1,23 @@ +<%-------------------------------------------------------------- +讀懃エ「邨先棡縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ョ繧オ繝悶Α繝繝郁ヲ∫エ逕ィ縺ォ螟画峩繝代Λ繝。繝シ繧ソ繧貞コ蜉帙☆繧九ち繧ー縲 +--------------------------------------------------------------%> +<%@ tag language="java" pageEncoding="UTF-8" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%-------------------------------------------------------------- +螻樊ァ +--------------------------------------------------------------%> +<%@ attribute name="pageNumber" required="true" rtexprvalue="true" %> +<%@ attribute name="sortId" required="false" rtexprvalue="true" %> +<%@ attribute name="listSearchInfoName" required="true" rtexprvalue="true" %> + +<%-------------------------------------------------------------- +譛ャ菴灘ヲ逅 +--------------------------------------------------------------%> + + + + + + \ No newline at end of file diff --git a/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchResult.tag b/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchResult.tag new file mode 100644 index 0000000..4eaece8 --- /dev/null +++ b/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchResult.tag @@ -0,0 +1,223 @@ +<%-------------------------------------------------------------- +讀懃エ「邨先棡縺ョ繝ェ繧ケ繝郁。ィ遉コ繧定。後≧繧ソ繧ー縲 +--------------------------------------------------------------%> +<%@ tag language="java" pageEncoding="UTF-8" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="listSearchResult" tagdir="/WEB-INF/tags/listSearchResult" %> + +<%-------------------------------------------------------------- +螻樊ァ +--------------------------------------------------------------%> +<%-- 蜈ィ菴薙Λ繝繝 --%> +<%@ attribute name="listSearchResultWrapperCss" required="false" rtexprvalue="true" %> +<%@ attribute name="listSearchInfoName" required="false" rtexprvalue="true" %> +<%-- 讀懃エ「邨先棡莉カ謨ー --%> +<%@ attribute name="useResultCount" required="false" rtexprvalue="true" %> +<%@ attribute name="resultCountCss" required="false" rtexprvalue="true" %> +<%@ attribute name="resultCountFragment" required="false" fragment="true" %> +<%-- 繝壹シ繧ク繝ウ繧ー --%> +<%@ attribute name="usePaging" required="false" rtexprvalue="true" %> +<%@ attribute name="pagingPosition" required="false" rtexprvalue="true" %> +<%@ attribute name="pagingCss" required="false" rtexprvalue="true" %> +<%@ attribute name="searchUri" required="false" rtexprvalue="true" %> +<%-- 繝壹シ繧ク繝ウ繧ー(迴セ蝨ィ縺ョ繝壹シ繧ク逡ェ蜿キ) --%> +<%@ attribute name="useCurrentPageNumber" required="false" rtexprvalue="true" %> +<%@ attribute name="currentPageNumberCss" required="false" rtexprvalue="true" %> +<%@ attribute name="currentPageNumberFragment" required="false" fragment="true" %> +<%-- 繝壹シ繧ク繝ウ繧ー(譛蛻) --%> +<%@ attribute name="useFirstSubmit" required="false" rtexprvalue="true" %> +<%@ attribute name="firstSubmitTag" required="false" rtexprvalue="true" %> +<%@ attribute name="firstSubmitType" required="false" rtexprvalue="true" %> +<%@ attribute name="firstSubmitCss" required="false" rtexprvalue="true" %> +<%@ attribute name="firstSubmitLabel" required="false" rtexprvalue="true" %> +<%@ attribute name="firstSubmitName" required="false" rtexprvalue="true" %> +<%-- 繝壹シ繧ク繝ウ繧ー(蜑阪∈) --%> +<%@ attribute name="usePrevSubmit" required="false" rtexprvalue="true" %> +<%@ attribute name="prevSubmitTag" required="false" rtexprvalue="true" %> +<%@ attribute name="prevSubmitType" required="false" rtexprvalue="true" %> +<%@ attribute name="prevSubmitCss" required="false" rtexprvalue="true" %> +<%@ attribute name="prevSubmitLabel" required="false" rtexprvalue="true" %> +<%@ attribute name="prevSubmitName" required="false" rtexprvalue="true" %> +<%-- 繝壹シ繧ク繝ウ繧ー(繝壹シ繧ク逡ェ蜿キ(1 2 3 ...n)) --%> +<%@ attribute name="usePageNumberSubmit" required="false" rtexprvalue="true" %> +<%@ attribute name="pageNumberSubmitWrapperCss" required="false" rtexprvalue="true" %> +<%@ attribute name="pageNumberSubmitTag" required="false" rtexprvalue="true" %> +<%@ attribute name="pageNumberSubmitType" required="false" rtexprvalue="true" %> +<%@ attribute name="pageNumberSubmitCss" required="false" rtexprvalue="true" %> +<%@ attribute name="pageNumberSubmitName" required="false" rtexprvalue="true" %> +<%-- 繝壹シ繧ク繝ウ繧ー(谺。縺ク) --%> +<%@ attribute name="useNextSubmit" required="false" rtexprvalue="true" %> +<%@ attribute name="nextSubmitTag" required="false" rtexprvalue="true" %> +<%@ attribute name="nextSubmitType" required="false" rtexprvalue="true" %> +<%@ attribute name="nextSubmitCss" required="false" rtexprvalue="true" %> +<%@ attribute name="nextSubmitLabel" required="false" rtexprvalue="true" %> +<%@ attribute name="nextSubmitName" required="false" rtexprvalue="true" %> +<%-- 繝壹シ繧ク繝ウ繧ー(譛蠕) --%> +<%@ attribute name="useLastSubmit" required="false" rtexprvalue="true" %> +<%@ attribute name="lastSubmitTag" required="false" rtexprvalue="true" %> +<%@ attribute name="lastSubmitType" required="false" rtexprvalue="true" %> +<%@ attribute name="lastSubmitCss" required="false" rtexprvalue="true" %> +<%@ attribute name="lastSubmitLabel" required="false" rtexprvalue="true" %> +<%@ attribute name="lastSubmitName" required="false" rtexprvalue="true" %> +<%-- 讀懃エ「邨先棡 --%> +<%@ attribute name="resultSetName" required="false" rtexprvalue="true" %> +<%@ attribute name="resultNumName" required="false" rtexprvalue="true" %> +<%@ attribute name="resultSetCss" required="false" rtexprvalue="true" %> +<%@ attribute name="headerRowFragment" required="true" fragment="true" %> +<%@ attribute name="bodyRowFragment" required="true" fragment="true" %> +<%@ attribute name="varRowName" required="false" rtexprvalue="true" %> +<%@ attribute name="varStatusName" required="false" rtexprvalue="true" %> +<%@ attribute name="varCountName" required="false" rtexprvalue="true" %> +<%@ attribute name="varRowCountName" required="false" rtexprvalue="true" %> +<%@ attribute name="varOddEvenName" required="false" rtexprvalue="true" %> +<%@ attribute name="oddValue" required="false" rtexprvalue="true" %> +<%@ attribute name="evenValue" required="false" rtexprvalue="true" %> + +<%@ attribute name="id" required="false" rtexprvalue="true" %> + +<%-------------------------------------------------------------- +繝繝輔か繝ォ繝 +--------------------------------------------------------------%> +<%-- 蜈ィ菴薙Λ繝繝 --%> + + +<%-- 讀懃エ「邨先棡莉カ謨ー --%> + + +<%-- 繝壹シ繧ク繝ウ繧ー --%> + + +<%-------------------------------------------------------------- +譛ャ菴灘ヲ逅 +--------------------------------------------------------------%> +<%-- 蜈ィ菴薙Λ繝繝 --%> + + + + + + + + + + +
+ <%-- 讀懃エ「邨先棡莉カ謨ー --%> + + +
+ + 讀懃エ「邨先棡 莉カ + + + + +
+
+ <%-- 繝壹シ繧ク繝ウ繧ー(top) --%> + + + + + + <%-- 讀懃エ「邨先棡 --%> + + + + + + + + + + + <%-- 繝壹シ繧ク繝ウ繧ー(bottom) --%> + + + + + +
+
diff --git a/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchSortSubmit.tag b/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchSortSubmit.tag new file mode 100644 index 0000000..eaa95a5 --- /dev/null +++ b/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchSortSubmit.tag @@ -0,0 +1,66 @@ +<%-------------------------------------------------------------- +讀懃エ「邨先棡縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ョ繧ス繝シ繝育畑縺ョ繧オ繝悶Α繝繝郁ヲ∫エ繧貞コ蜉帙☆繧九ち繧ー縲 +--------------------------------------------------------------%> +<%@ tag language="java" pageEncoding="UTF-8" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="listSearchResult" tagdir="/WEB-INF/tags/listSearchResult" %> + +<%-------------------------------------------------------------- +螻樊ァ +--------------------------------------------------------------%> +<%@ attribute name="tag" required="false" rtexprvalue="true" %> +<%@ attribute name="type" required="false" rtexprvalue="true" %> +<%@ attribute name="sortCss" required="false" rtexprvalue="true" %> +<%@ attribute name="ascCss" required="false" rtexprvalue="true" %> +<%@ attribute name="descCss" required="false" rtexprvalue="true" %> +<%@ attribute name="ascSortId" required="true" rtexprvalue="true" %> +<%@ attribute name="descSortId" required="true" rtexprvalue="true" %> +<%@ attribute name="defaultSort" required="false" rtexprvalue="true" %> +<%@ attribute name="label" required="true" rtexprvalue="true" %> +<%@ attribute name="uri" required="true" rtexprvalue="true" %> +<%@ attribute name="name" required="true" rtexprvalue="true" %> +<%@ attribute name="listSearchInfoName" required="true" rtexprvalue="true" %> + +<%-------------------------------------------------------------- +繝繝輔か繝ォ繝 +--------------------------------------------------------------%> + + + + + + + +<%-------------------------------------------------------------- +譛ャ菴灘ヲ逅 +--------------------------------------------------------------%> + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchSubmit.tag b/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchSubmit.tag new file mode 100644 index 0000000..4328472 --- /dev/null +++ b/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/listSearchSubmit.tag @@ -0,0 +1,59 @@ +<%-------------------------------------------------------------- +讀懃エ「邨先棡縺ョ繝ェ繧ケ繝郁。ィ遉コ縺ョ繧オ繝悶Α繝繝郁ヲ∫エ繧貞コ蜉帙☆繧九ち繧ー縲 +--------------------------------------------------------------%> +<%@ tag language="java" pageEncoding="UTF-8" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="listSearchResult" tagdir="/WEB-INF/tags/listSearchResult" %> + +<%-------------------------------------------------------------- +螻樊ァ +--------------------------------------------------------------%> +<%@ attribute name="tag" required="true" rtexprvalue="true" %> +<%@ attribute name="type" required="false" rtexprvalue="true" %> +<%@ attribute name="css" required="false" rtexprvalue="true" %> +<%@ attribute name="label" required="true" rtexprvalue="true" %> +<%@ attribute name="enable" required="true" rtexprvalue="true" type="java.lang.Boolean" %> +<%@ attribute name="uri" required="true" rtexprvalue="true" %> +<%@ attribute name="name" required="true" rtexprvalue="true" %> +<%@ attribute name="pageNumber" required="true" rtexprvalue="true" %> +<%@ attribute name="sortId" required="false" rtexprvalue="true" %> +<%@ attribute name="listSearchInfoName" required="true" rtexprvalue="true" %> + +<%-------------------------------------------------------------- +譛ャ菴灘ヲ逅 +--------------------------------------------------------------%> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/table.tag b/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/table.tag new file mode 100644 index 0000000..0d64acb --- /dev/null +++ b/node_modules/nablarch-widget-table-base/ui_public/WEB-INF/tags/listSearchResult/table.tag @@ -0,0 +1,83 @@ +<%-------------------------------------------------------------- +陦後ョ繝シ繧ソ縲√倥ャ繝陦後→繝懊ョ繧」陦後ョ繝輔Λ繧ー繝。繝ウ繝医r菴ソ逕ィ縺励※繝繝シ繝悶Ν繧貞コ蜉帙☆繧九ち繧ー縲 +--------------------------------------------------------------%> +<%@ tag language="java" pageEncoding="UTF-8" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="listSearchResult" tagdir="/WEB-INF/tags/listSearchResult" %> + +<%-------------------------------------------------------------- +螻樊ァ +--------------------------------------------------------------%> +<%@ attribute name="resultSetName" required="false" rtexprvalue="true" %> +<%@ attribute name="resultNumName" required="false" rtexprvalue="true" %> +<%@ attribute name="resultSetCss" required="false" rtexprvalue="true" %> +<%@ attribute name="headerRowFragment" required="true" fragment="true" %> +<%@ attribute name="bodyRowFragment" required="true" fragment="true" %> +<%@ attribute name="varRowName" required="false" rtexprvalue="true" %> +<%@ attribute name="varStatusName" required="false" rtexprvalue="true" %> +<%@ attribute name="varCountName" required="false" rtexprvalue="true" %> +<%@ attribute name="varRowCountName" required="false" rtexprvalue="true" %> +<%@ attribute name="varOddEvenName" required="false" rtexprvalue="true" %> +<%@ attribute name="oddValue" required="false" rtexprvalue="true" %> +<%@ attribute name="evenValue" required="false" rtexprvalue="true" %> +<%@ attribute name="startPosition" required="true" rtexprvalue="true" type="java.lang.Integer" %> + +<%-------------------------------------------------------------- +繝繝輔か繝ォ繝 +--------------------------------------------------------------%> + + + + + + + + + +<%-------------------------------------------------------------- +譛ャ菴灘ヲ逅 +--------------------------------------------------------------%> +
+ + + <%-- 繝倥ャ繝陦 --%> + + <%-- 繝懊ョ繧」陦 --%> + + + + + + + + + + + + + + + + + + + <%-- 繝倥ャ繝陦 --%> + + <%-- 繝懊ョ繧」陦 --%> + + + + + + + + + + + + + + +
+
\ No newline at end of file diff --git a/node_modules/nablarch-widget-table-base/ui_public/css/table/base-compact.less b/node_modules/nablarch-widget-table-base/ui_public/css/table/base-compact.less new file mode 100644 index 0000000..4b1f981 --- /dev/null +++ b/node_modules/nablarch-widget-table-base/ui_public/css/table/base-compact.less @@ -0,0 +1,28 @@ +/** + * compact繝「繝シ繝峨〒縺ッ + * narrow陦ィ遉コ逕ィ縺ョ莉伜刈諠蝣ア縺ッ莉悶ョ繧ォ繝ゥ繝縺ィ蜷梧ァ倥↓陦ィ遉コ縺吶k縲 + */ +// 莉伜刈諠蝣ア縺ッ騾壼クク陦ィ遉コ +td.additional, th.additional { + display : table-cell; +} + +// 蛻カ蠕。逕ィ縺ョ繧ォ繝ゥ繝縺ッ髱櫁。ィ遉コ +th.nablarch_AdditionalColumnInlayToggle, +td.nablarch_AdditionalColumnInlayToggle { + display: none; +} + +// inlay陦後ッ髱櫁。ィ遉コ +tr.nablarch_AdditionalColumnInlay { + display: none !important; +} + +/** + * 繝繝シ繝悶Ν縺ッ讓ェ繧ケ繧ッ繝ュ繝シ繝ォ繧堤匱逕溘&縺帙k縲 + */ +.nablarch_resultSet, +.nablarch_paging, +.nablarch_resultCount { + overflow-x: auto; +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-table-base/ui_public/css/table/base-multicol.less b/node_modules/nablarch-widget-table-base/ui_public/css/table/base-multicol.less new file mode 100644 index 0000000..c1e4a29 --- /dev/null +++ b/node_modules/nablarch-widget-table-base/ui_public/css/table/base-multicol.less @@ -0,0 +1,19 @@ +/** + * wide繝「繝シ繝峨〒縺ッ + * narrow陦ィ遉コ逕ィ縺ョ莉伜刈諠蝣ア縺ッ莉悶ョ繧ォ繝ゥ繝縺ィ蜷梧ァ倥↓陦ィ遉コ縺吶k縲 + */ +// 莉伜刈諠蝣ア縺ッ騾壼クク陦ィ遉コ +td.additional, th.additional { + display : table-cell; +} + +// 蛻カ蠕。逕ィ縺ョ繧ォ繝ゥ繝縺ッ髱櫁。ィ遉コ +th.nablarch_AdditionalColumnInlayToggle, +td.nablarch_AdditionalColumnInlayToggle { + display: none; +} + +// inlay陦後ッ髱櫁。ィ遉コ +tr.nablarch_AdditionalColumnInlay { + display: none !important; +} diff --git a/node_modules/nablarch-widget-table-base/ui_public/css/table/base-narrow.less b/node_modules/nablarch-widget-table-base/ui_public/css/table/base-narrow.less new file mode 100644 index 0000000..0c271c6 --- /dev/null +++ b/node_modules/nablarch-widget-table-base/ui_public/css/table/base-narrow.less @@ -0,0 +1,33 @@ +/** + * narrow陦ィ遉コ繝「繝シ繝峨〒縺ッInlay縺ォ譬シ邏阪@縺歛dditional隕∫エ繧偵う繝ウ繧ソ繝ゥ繧ッ繝繧」繝悶↓陦ィ遉コ蛻カ蠕。縺吶k縲 + */ +// 莉伜刈諠蝣ア縺ォ縺ェ縺」縺溘き繝ゥ繝縺ッ髱櫁。ィ遉コ +td.additional, th.additional { + display:none; +} +// 蛻カ蠕。諠蝣ア逕ィ縺ョ繧ォ繝ゥ繝縺ッ繝繝輔か繝ォ繝磯撼陦ィ遉コ +.nablarch_AdditionalColumnInlayToggle { + display: none; +} + +// additinal縺後≠繧玖。後ョ蛻カ蠕。繧ォ繝ゥ繝縺ッ陦ィ遉コ縺吶k +td.additional ~ td.nablarch_AdditionalColumnInlayToggle { + display: table-cell; +} +th.additional ~ th.nablarch_AdditionalColumnInlayToggle { + display: table-cell; +} + +// inlay逕ィ縺ョ陦後ッ陦ィ遉コ迥カ諷九↓縺励※縺翫″縲…ollapsible縺ァ蛻晄悄迥カ諷九r髢峨§繧九 +tr.nablarch_AdditionalColumnInlay { + display: table-row; +} + +/** + * 繝繝シ繝悶Ν縺ッ讓ェ繧ケ繧ッ繝ュ繝シ繝ォ繧堤匱逕溘&縺帙k縲 + */ +.nablarch_resultSet, +.nablarch_paging, +.nablarch_resultCount { + overflow-x: auto; +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-table-base/ui_public/css/table/base-wide.less b/node_modules/nablarch-widget-table-base/ui_public/css/table/base-wide.less new file mode 100644 index 0000000..c1e4a29 --- /dev/null +++ b/node_modules/nablarch-widget-table-base/ui_public/css/table/base-wide.less @@ -0,0 +1,19 @@ +/** + * wide繝「繝シ繝峨〒縺ッ + * narrow陦ィ遉コ逕ィ縺ョ莉伜刈諠蝣ア縺ッ莉悶ョ繧ォ繝ゥ繝縺ィ蜷梧ァ倥↓陦ィ遉コ縺吶k縲 + */ +// 莉伜刈諠蝣ア縺ッ騾壼クク陦ィ遉コ +td.additional, th.additional { + display : table-cell; +} + +// 蛻カ蠕。逕ィ縺ョ繧ォ繝ゥ繝縺ッ髱櫁。ィ遉コ +th.nablarch_AdditionalColumnInlayToggle, +td.nablarch_AdditionalColumnInlayToggle { + display: none; +} + +// inlay陦後ッ髱櫁。ィ遉コ +tr.nablarch_AdditionalColumnInlay { + display: none !important; +} diff --git a/node_modules/nablarch-widget-table-base/ui_public/css/table/base.less b/node_modules/nablarch-widget-table-base/ui_public/css/table/base.less new file mode 100644 index 0000000..4643b0f --- /dev/null +++ b/node_modules/nablarch-widget-table-base/ui_public/css/table/base.less @@ -0,0 +1,89 @@ +/****************************************************************************** +繝繝シ繝悶Ν邉サ繧ヲ繧」繧ク繧ァ繝繝医ョ繝吶シ繧ケ繧ケ繧ソ繧、繝ォ螳夂セゥ +******************************************************************************/ +tr.nablarch_even { + background-color: lighten(@mainColor2, 73%); +} + +tr.nablarch_odd { + background-color: inherit; +} + +tr.nablarch_AdditionalColumnInlay { + td { + border-style: solid; + border-width: 1px 0; + .box-shadow(0, 0, 2px, #ddd); + padding: 10px 0; + } +} +td, th { + &.nablarch_AdditionalColumnInlayToggle { + background-color: white; + border : 0; + padding : 0; + margin : 0; + width : 25px; + } +} + +/** + * 讀懃エ「邨先棡縺ェ縺ゥ縲∬、謨ー陦後r蜃コ蜉帙☆繧九Ξ繧、繧「繧ヲ繝医ョlistSearchResult縺ョ繝吶シ繧ケ縺ィ縺ェ繧九せ繧ソ繧、繝ォ繧貞ョ夂セゥ縺吶k縲 + * + */ +.nablarch_listSearchResultWrapper { + .content-row; + margin-bottom : 10px; +} + +.nablarch_paging, .nablarch_resultCount { + .content-row; + .grid-width-of(@tableGridSpan); +} + +.nablarch_paging { + text-align: right; + div { + display: inline; + margin: 0 5px; + font-size: 0.8em; + } +} + +//繧ス繝シ繝医Μ繝ウ繧ッ縺ョ謖螳 +.nablarch_sort { + a:before { + font-family: FontAwesome; + font-size: @largerFontSize; + } + &.nablarch_asc a:before { + content: "\f0d8 "; // fa-caret-up + } + &.nablarch_desc a:before { + content: "\f0d7 "; // fa-caret-down + } +} + +.nablarch_resultSet { + .grid-row; + .grid-width-of(@tableGridSpan); + + table { + .grid-width-of(@tableGridSpan); + margin: 0 auto; + + th { + white-space: nowrap; + } + + button { + padding: 1px; + margin: 0; + font-size: @smallestFontSize; + } + } +} +// 繝峨Γ繧、繝ウ縺ァ謖螳壹&繧後◆鬆逶ョ縺ョ繧ケ繧ソ繧、繝ォ螳夂セゥ +td.Number, td.謨ー蛟、, td.Money, td.驥鷹。 { + text-align: right; +} diff --git "a/node_modules/nablarch-widget-table-base/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/index.jsp" "b/node_modules/nablarch-widget-table-base/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/index.jsp" new file mode 100644 index 0000000..b5100bc --- /dev/null +++ "b/node_modules/nablarch-widget-table-base/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/index.jsp" @@ -0,0 +1,38 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
  • +
  • +
  • +
  • +
  • +
+
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
+
  • 繧オ繝シ繝舌シ繝サ繧ッ繝ゥ繧、繧「繝ウ繝亥ア騾
  • +
  • +
+
+
+
diff --git a/node_modules/nablarch-widget-table-plain/package.json b/node_modules/nablarch-widget-table-plain/package.json new file mode 100644 index 0000000..1a92e71 --- /dev/null +++ b/node_modules/nablarch-widget-table-plain/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-table-plain" +, "version": "1.0.1" +, "_from" : "nablarch-widget-table-plain@1.0.1" +, "dependencies": { + } +, "description": "荳隕ァ陦ィ遉コ繝繝シ繝悶Ν繝励Λ繧ー繧、繝ウ" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-table-plain/ui_public/WEB-INF/tags/widget/table/plain.tag b/node_modules/nablarch-widget-table-plain/ui_public/WEB-INF/tags/widget/table/plain.tag new file mode 100644 index 0000000..fdc66b8 --- /dev/null +++ b/node_modules/nablarch-widget-table-plain/ui_public/WEB-INF/tags/widget/table/plain.tag @@ -0,0 +1,130 @@ +<%-- + 繝繝シ繝悶Ν陦ィ遉コシ医壹シ繧ク繝ウ繧ー繧莉カ謨ー縺ョ陦ィ遉コ繧定。後o縺ェ縺縲ゑシ + @author Iwauo Tajima +--%> +<%@ tag pageEncoding="UTF-8" description="繝壹シ繧ク繝ウ繧ー繧莉カ謨ー縺ョ陦ィ遉コ繧定。後o縺ェ縺繝繝シ繝悶Ν繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<%@ taglib prefix="listSearchResult" tagdir="/WEB-INF/tags/listSearchResult" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%@ attribute name="title" description="繝繝シ繝悶Ν繧ソ繧、繝医Ν[繝ュ繝シ繧ォ繝ォ陦ィ遉コ蠢鬆]" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="繝繝シ繝悶Ν縺ョID螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="showTitle" description="繧ソ繧、繝医Ν繧定ヲ句コ縺励→縺励※陦ィ遉コ縺吶k縺(繝繝輔か繝ォ繝:true)" rtexprvalue="true" %> +<%@ attribute name="resultSetName" description="讀懃エ「邨先棡繧呈シ邏阪☆繧句、画焚蜷(resultNumName縺ィ縺縺壹l縺句ソ鬆)" rtexprvalue="true" %> +<%@ attribute name="resultNumName" description="讀懃エ「邨先棡莉カ謨ー繧呈シ邏阪☆繧句、画焚蜷(resultSetName縺ィ縺縺壹l縺句ソ鬆)" rtexprvalue="true" %> +<%@ attribute name="resultSetCss" description="讀懃エ「邨先棡陦ィ遉コ鬆伜沺縺ォ驕ゥ逕ィ縺吶kCSS繧ッ繝ゥ繧ケ" rtexprvalue="true" %> +<%@ attribute name="sampleResults" description="繧オ繝ウ繝励Ν縺ァ陦ィ遉コ縺吶k莉カ謨ー(譛ャ逡ェ蜍穂ス懈凾縺ァ縺ッ菴ソ逕ィ縺輔l縺ェ縺縲)[繝ュ繝シ繧ォ繝ォ陦ィ遉コ蠢鬆]" rtexprvalue="true" %> + +<%-- ================================================================================ --%> + + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌蜷代¢シ =============================== --%> + +<%@ attribute name="comment" description="縺薙ョ繝繝シ繝悶Ν縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「讎りヲ√ョ荳隕ァ陦ィ遉コ縺ョ繝ェ繧ケ繝医〒縲∝y閠縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="estimatedMaxSearchResults" description="讀懃エ「邨先棡縺ィ縺励※諠ウ螳壹&繧後k譛螟ァ莉カ謨ーシ育判髱「讎りヲ√ョ荳隕ァ陦ィ遉コ縺ョ繝ェ繧ケ繝医〒縲∵Φ螳壽、懃エ「譛螟ァ莉カ謨ー縺ォ陦ィ遉コ縺輔l繧具シ" %> + +<%-- ================================================================================ --%> + + +<%-- 隍謨ー陦瑚。ィ遉コ蟇セ蠢 --%> +<%@ attribute name="multipleRowLayout" description="隍謨ー縺ョ陦後Ξ繧、繧「繧ヲ繝医′蜷ォ縺セ繧後k蝣エ蜷医°縺ゥ縺縺九ゅョ繝輔か繝ォ繝医ッ'false'" rtexprvalue="true" %> + + + + + + + + + + + + + + + + + + + + + +
+

+ +

+
+
+
+ + + + + <%-- 繝倥ャ繝繝シ驛ィ --%> + + + + + + + + + + + + + + + + + + + <%-- 繝懊ョ繧」驛ィ --%> + + + + + + + + + + + + <%-- 莉伜刈諠蝣ア鬆逶ョ陦ィ遉コ蝓 --%> + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\265\343\203\274\343\203\220\351\200\201\344\277\241\347\242\272\350\252\215.jsp" "b/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\265\343\203\274\343\203\220\351\200\201\344\277\241\347\242\272\350\252\215.jsp" new file mode 100644 index 0000000..05c9932 --- /dev/null +++ "b/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\343\202\265\343\203\274\343\203\220\351\200\201\344\277\241\347\242\272\350\252\215.jsp" @@ -0,0 +1,55 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.Arrays" %> +<%@ page import="java.util.Enumeration" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Map" %> + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<% + + List> params = new ArrayList>(); + Enumeration names = request.getParameterNames(); + while (names.hasMoreElements()) { + String key = (String) names.nextElement(); + String value = Arrays.toString(request.getParameterValues(key)); + Map param = new HashMap(); + param.put("key", key); + param.put("value", value); + params.add(param); + } + request.setAttribute("params", params); +%> + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253.jsp" "b/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253.jsp" new file mode 100644 index 0000000..9959ed3 --- /dev/null +++ "b/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253.jsp" @@ -0,0 +1,28 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + tr.nablarch_even + tr.subTotal { + background-color: #FFFFFF; + } + tr.nablarch_odd + tr.subTotal { + background-color: #F6EAE4; + } + + diff --git "a/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..9414adb --- /dev/null +++ "b/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,87 @@ + runTest( + 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + , resultSetCss螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + ); + + var $all_nodes + , paging_navi_area = "div.nablarch_paging" + , result_set_class = "nablarch_resultSet" + , label = 'h2'; + + function setup() { + $all_nodes = $('span.test-case, div.title, div.nablarch_listSearchResultWrapper'); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + setup(); + var cases = test_for('require_only-test') + , require_only = cases[0]; + + equal($.trim(require_only.title.find(label).text()), "蠢鬆亥ア樊ァ", require_only.testcase + " [title label]"); + ok(hasOnlyClass(require_only, [result_set_class]), require_only.testcase + "[result set class]"); + } + + function resultSetCss螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('resultSetCss-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_css_case = cases[2]; + + ok(hasOnlyClass(default_case, [result_set_class]), default_case.testcase); + ok(hasOnlyClass(blank_case, [result_set_class]), blank_case.testcase); + ok(hasOnlyClass(set_css_case, [result_set_class, 'border-blue']), set_css_case.testcase); + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('id-test') + , not_id = cases[0] + , blank_id = cases[1] + , set_id = cases[2]; + + equal(not_id.table.attr('id'), '', 'ID螻樊ァ縺ッ遨コ縺ァ縺ゅk縺薙→'); + equal(blank_id.table.attr('id'), '', 'ID螻樊ァ縺ッ遨コ縺ァ縺ゅk縺薙→'); + equal(set_id.table.attr('id'), 'hogefuga', '謖螳壹@縺殃d螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→'); + } + + /** + * 荳隕ァ繝繝シ繝悶Ν縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e); + return { + testcase : $.trim($e.text()), + title : $($all_nodes[idx + 1]), + table : $($all_nodes[idx + 2]) + }; + }); + } + + /** + * 繝繧ケ繝医こ繝シ繧ケ縺ョtable繝励Ο繝代ユ繧」縺九idiv隕∫エ縺ョclass縺梧欠螳壹&繧後◆繧ゅョ縺縺代°蛻、螳壹☆繧九 + * + * @param testcase table繝励Ο繝代ユ繧」縺ォNode縺瑚ィュ螳壹&繧後※縺繧九ユ繧ケ繝医こ繝シ繧ケ + * @param class繧呈欠螳壹☆繧矩榊 + * @returns 謖螳壹@縺溘け繝ゥ繧ケ縺ョ縺ソ縺ァ縺ゅl縺ーtrue, 縺昴l莉・螟悶ョ繧ゅョ縺後≠繧後ーfalse + * @throws 謖螳壹@縺溘け繝ゥ繧ケ縺1縺、縺ァ繧ゅ↑縺蝣エ蜷 + */ + function hasOnlyClass(testcase, classtexts) { + var node = testcase.table.find('.' + classtexts[0]) + , node_classtext = $(node).attr('class'); + $.each(classtexts, function(_, classtext){ + if (node_classtext.has(classtext)) { + node_classtext = node_classtext.remove(classtext); + } else { + throw Error('node does\'t has class [ ' + classtext + " ]"); + } + }); + return node_classtext.isBlank(); + } + diff --git "a/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..11da8b9 --- /dev/null +++ "b/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,23 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + div.border-blue { + border: 1px solid blue; + } + + + diff --git "a/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..1231c3c --- /dev/null +++ "b/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,58 @@ + + +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Map" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..a639fbf --- /dev/null +++ "b/node_modules/nablarch-widget-table-plain/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\344\270\200\350\246\247\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,419 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳 + + + + + + + + + + 繧オ繝シ繝舌し繧、繝臥畑縺ョ蛟、繧ょ性繧√※蜈ィ縺ヲ螻樊ァ繧呈欠螳壹@縺溽憾諷九〒繧ょ撫鬘後↑縺丞虚菴懊☆繧九%縺ィ + + + + + + + + + + + + + resultSetCss繧呈欠螳壹@縺ェ縺蝣エ蜷医√ユ繝シ繝悶Ν縺ョ螟門エ縺ョdiv繧ソ繧ー縺ォclass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→
+ 窶サ繝繝輔か繝ォ繝医〒縲]ablarch_resultSet繧ッ繝ゥ繧ケ縺碁←逕ィ縺輔l繧九′ +
+ + + + + + + + + resultSetCss縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ユ繝シ繝悶Ν縺ョ螟門エ縺ョdiv繧ソ繧ー縺ォclass螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→
+ 窶サ繝繝輔か繝ォ繝医〒縲]ablarch_resultSet繧ッ繝ゥ繧ケ縺碁←逕ィ縺輔l繧九′ +
+ + + + + + + + + resultSetCss繧呈欠螳壹@縺溷エ蜷医√ユ繝シ繝悶Ν縺ョ螟門エ縺ョdiv繧ソ繧ー縺ォclass螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→
+
+ + + + + + + + + additional螻樊ァ繧稚rue縺ォ險ュ螳壹@縺溘き繝ゥ繝縺悟ュ伜惠縺吶k蝣エ蜷医 + 繝翫Ο繝シ陦ィ遉コ繝「繝シ繝峨〒縺ッ蠖楢ゥイ蛻励′髱櫁。ィ遉コ縺ェ繧九%縺ィ縲 + 縺セ縺溘∝推陦後ョ蜿ウ遶ッ縺ォ繝懊ち繝ウ繧定。ィ遉コ縺励 + 縺昴l繧偵け繝ェ繝繧ッ(繧ソ繝繝)縺吶k縺薙→縺ァ髱櫁。ィ遉コ繧ォ繝ゥ繝繧段nlay陦ィ遉コ縺吶k縺薙→縲 + + + + + + + + + + + + + + multipleRowLayout螻樊ァ繧稚rue縺ォ險ュ螳壹@縲∝ュ占ヲ∫エ縺ォ<table:row>隕∫エ繧堤スョ縺上%縺ィ縺ァ + 隍謨ー縺ョ陦後Ξ繧、繧「繧ヲ繝医r螳夂セゥ縺ァ縺阪k縺薙→縲 + + + + + + + + + + + + + + + + + + + + <table:row>繧ソ繧ー縺ョcond螻樊ァ繧呈欠螳壹☆繧九%縺ィ縺ォ繧医j縲∝ス楢ゥイ縺ョ陦後Ξ繧、繧「繧ヲ繝医r + 陦ィ遉コ縺吶k譚。莉カ繧呈欠螳壹☆繧九%縺ィ縺後〒縺阪k縲 + + + + + + + + + + + + + + + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ユ繝シ繝悶Ν陦ィ遉コ鬆伜沺繧貞峇繧div繧ソ繧ー縺ォid螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ユ繝シ繝悶Ν陦ィ遉コ鬆伜沺繧貞峇繧div繧ソ繧ー縺ォid螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + id螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョid縺後ユ繝シ繝悶Ν陦ィ遉コ鬆伜沺繧貞峇繧div繧ソ繧ー縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + wide繝「繝シ繝峨〒縺ッ繧ヲ繧」繝ウ繝峨え縺ァ縺ョ讓ェ繧ケ繧ッ繝ュ繝シ繝ォ縲…ompact,narrow縺ァ縺ッ蜀驛ィ縺ァ縺ョ讓ェ繧ケ繧ッ繝ュ繝シ繝ォ縺後〒縺阪k縺薙→ + + + + + + + + id螻樊ァ縺ォ縲.縲(繝斐Μ繧ェ繝峨r蛻ゥ逕ィ縺励◆蝣エ蜷医ョ遒コ隱) +
窶サ縺薙ョ繧ア繝シ繧ケ縺ッresultSetName縺ォ繝斐Μ繧ェ繝峨r蛻ゥ逕ィ縺励◆蝣エ蜷医ョ蜍穂ス懊r讀懆ィシ縺吶k莉」譖ソ謇区ョオ縺ァ縺吶 +
narrow陦ィ遉コ縺ァ繝ャ繧、繧「繧ヲ繝医′螢翫l縺ェ縺縺薙→繧堤「コ隱阪@縺ヲ縺上□縺輔>縲 +
+ + + + + + + showTitle螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医ッ繝繝シ繝悶Ν繧ソ繧、繝医Ν縺瑚。ィ遉コ縺輔l繧九 + + + + + showTitle螻樊ァ=繝悶Λ繝ウ繧ッ縺ョ蝣エ蜷医ッ繝繝シ繝悶Ν繧ソ繧、繝医Ν縺瑚。ィ遉コ縺輔l繧九 + + + + + showTitle=true縺ョ蝣エ蜷医ッ繝繝シ繝悶Ν繧ソ繧、繝医Ν縺瑚。ィ遉コ縺輔l繧九 + + + + + showTitle=false縺ョ蝣エ蜷医ッ繝繝シ繝悶Ν繧ソ繧、繝医Ν縺瑚。ィ遉コ縺輔l縺ェ縺縲 + + + + +
+ + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳夲シ亥ソ鬆亥ア樊ァ縺ッ蟶ク縺ォ蠢隕√↑縺ョ縺ァ郤上a縺ヲ繝繧ケ繝茨シ峨@縺溷エ蜷医√◎繧後◇繧後ョ螻樊ァ蛟、縺後◆縺縺励¥蜃コ蜉帙&繧後k縺薙→
+
+ + + + + + + + + + +
+
+
diff --git a/node_modules/nablarch-widget-table-row/package.json b/node_modules/nablarch-widget-table-row/package.json new file mode 100644 index 0000000..8a6211c --- /dev/null +++ b/node_modules/nablarch-widget-table-row/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-table-row" +, "version": "1.0.0" +, "_from" : "nablarch-widget-table-row@1.0.0" +, "dependencies": { + } +, "description": "繝槭Ν繝∬。後ユ繝シ繝悶Ν繝ャ繧、繧「繧ヲ繝育畑繝励Λ繧ー繧、繝ウ" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-table-row/ui_public/WEB-INF/tags/widget/table/row.tag b/node_modules/nablarch-widget-table-row/ui_public/WEB-INF/tags/widget/table/row.tag new file mode 100644 index 0000000..0bd255a --- /dev/null +++ b/node_modules/nablarch-widget-table-row/ui_public/WEB-INF/tags/widget/table/row.tag @@ -0,0 +1,17 @@ +<%-- + 繝繝シ繝悶Ν蜀縺ョ陦後Ξ繧、繧「繧ヲ繝亥ョ夂セゥ(1繝繝シ繝悶Ν蜀縺ォ隍謨ー縺ョ陦後Ξ繧、繧「繧ヲ繝医′蜷ォ縺セ繧後k蝣エ蜷医↓菴ソ逕ィ縺吶k縲) + @author Iwauo Tajima +--%> +<%@ tag pageEncoding="UTF-8" description="繝壹シ繧ク繝ウ繧ー繧莉カ謨ー縺ョ陦ィ遉コ繧定。後o縺ェ縺繝繝シ繝悶Ν繧貞コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="cond" description="縺薙ョ陦後Ξ繧、繧「繧ヲ繝医r菴ソ逕ィ縺吶k譚。莉カ(譛ェ險ュ螳壽凾縺ッ'true:蟶ク縺ォ菴ソ逕ィ縺吶k')" rtexprvalue="true" %> +<%@ attribute name="cssClass" description="蜷繧ォ繝ゥ繝縺ォ謖螳壹☆繧気SS繧ッ繝ゥ繧ケ" rtexprvalue="true" %> + + + + + + diff --git "a/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271(\347\242\272\350\252\215).jsp" "b/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271(\347\242\272\350\252\215).jsp" new file mode 100644 index 0000000..eff0b86 --- /dev/null +++ "b/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271(\347\242\272\350\252\215).jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..535d1c2 --- /dev/null +++ "b/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,454 @@ + runTest( + 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝 + , rowspan螻樊ァ縺ョ繝繧ケ繝_blank + , rowspan螻樊ァ縺ョ繝繧ケ繝_set_one + , rowspan螻樊ァ縺ョ繝繧ケ繝_checkbox + , rowspan螻樊ァ縺ョ繝繧ケ繝_code + , rowspan螻樊ァ縺ョ繝繧ケ繝_radio + , rowspan螻樊ァ縺ョ繝繧ケ繝_label + , rowspan螻樊ァ縺ョ繝繧ケ繝_link + , colspan螻樊ァ縺ョ繝繧ケ繝_blank + , colspan螻樊ァ縺ョ繝繧ケ繝_set_one + , colspan螻樊ァ縺ョ繝繧ケ繝_checkbox + , colspan螻樊ァ縺ョ繝繧ケ繝_code + , colspan螻樊ァ縺ョ繝繧ケ繝_radio + , colspan螻樊ァ縺ョ繝繧ケ繝_label + , colspan螻樊ァ縺ョ繝繧ケ繝_link + ); + + var $all_nodes + , paging_navi_area = "div.nablarch_paging" + , label = 'h2' + , visible = { + tr : 'tr:not(.nablarch_AdditionalColumnInlay)' + , td : 'td:not(.nablarch_AdditionalColumnInlayToggle)' + , th : 'th:not(.nablarch_AdditionalColumnInlayToggle)' + }; + + function setup() { + $all_nodes = $('span.test-case, div.title, div.nablarch_listSearchResultWrapper'); + } + + function 蠢鬆亥ア樊ァ縺ョ繝繧ケ繝() { + setup(); + var testcase = test_for('require-test')[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $checkboxes = $records.find(visible.td+":eq(0)") + , $codes = $records.find(visible.td+":eq(1)") + , $labels = $records.find(visible.td+":eq(2)") + , $radios = $records.find(visible.td+":eq(3)") + , $links = $records.find(visible.td+":eq(4)"); + + // table header + equal(collect($ths, 'rowspan'), '1,1,1,1,1', msg + " [th].rowspan"); + equal(collect($ths, 'colspan'), '1,1,1,1,1', msg + " [th].colspan"); + // column:checkbox + equal(collect($checkboxes, 'rowspan'), '1,1,1,1', msg + " [col:checkbox.rowspan]"); + equal(collect($checkboxes, 'colspan'), '1,1,1,1', msg + " [col:checkbox.colspan]"); + // column:code + equal(collect($codes, 'rowspan'), '1,1,1,1', msg + " [col:code.rowspan]"); + equal(collect($codes, 'colspan'), '1,1,1,1', msg + " [col:code.colspan]"); + // column:label + equal(collect($labels, 'rowspan'), '1,1,1,1', msg + " [col:label.rowspan]"); + equal(collect($labels, 'colspan'), '1,1,1,1', msg + " [col:label.colspan]"); + // column:radio + equal(collect($radios, 'rowspan'), '1,1,1,1', msg + " [col:radio.rowspan]"); + equal(collect($radios, 'colspan'), '1,1,1,1', msg + " [col:radio.colspan]"); + // column:link + equal(collect($links, 'rowspan'), '1,1,1,1', msg + " [col:link.rowspan]"); + equal(collect($links, 'colspan'), '1,1,1,1', msg + " [col:link.colspan]"); + } + + function rowspan螻樊ァ縺ョ繝繧ケ繝_blank() { + var testcase = test_for("rowspan-blank-test")[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $checkboxes = $records.find(visible.td+":eq(0)") + , $codes = $records.find(visible.td+":eq(1)") + , $labels = $records.find(visible.td+":eq(2)") + , $radios = $records.find(visible.td+":eq(3)") + , $links = $records.find(visible.td+":eq(4)"); + + // table header + equal(collect($ths, 'rowspan'), '1,1,1,1,1', msg + "[th.rowspan]"); + equal(collect($ths, 'colspan'), '1,1,1,1,1', msg + "[th.colspan]"); + // column:checkbox + equal(collect($checkboxes, 'rowspan'), '1,1,1,1', msg + "[td:checkbox.rowspan]"); + equal(collect($checkboxes, 'colspan'), '1,1,1,1', msg + "[td:checkbox.colspan]"); + // column:code + equal(collect($codes, 'rowspan'), '1,1,1,1', msg + "[td:code.rowspan]"); + equal(collect($codes, 'colspan'), '1,1,1,1', msg + "[td:code.colspan]"); + // column:label + equal(collect($labels, 'rowspan'), '1,1,1,1', msg + "[td:label.rowspan]"); + equal(collect($labels, 'colspan'), '1,1,1,1', msg + "[td:label.colspan]"); + // column:radio + equal(collect($radios, 'rowspan'), '1,1,1,1', msg + "[td:radio.rowspan]"); + equal(collect($radios, 'colspan'), '1,1,1,1', msg + "[td:radio.colspan]"); + // column:link + equal(collect($links, 'rowspan'), '1,1,1,1', msg + "[td:link.rowspan]"); + equal(collect($links, 'colspan'), '1,1,1,1', msg + "[td:link.colspan]"); + } + + function rowspan螻樊ァ縺ョ繝繧ケ繝_set_one() { + var testcase = test_for("rowspan-set-one-test")[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $checkboxes = $records.find(visible.td+":eq(0)") + , $codes = $records.find(visible.td+":eq(1)") + , $labels = $records.find(visible.td+":eq(2)") + , $radios = $records.find(visible.td+":eq(3)") + , $links = $records.find(visible.td+":eq(4)"); + + // table header + equal(collect($ths, 'rowspan'), '1,1,1,1,1', msg + "[th.rowspan]"); + equal(collect($ths, 'colspan'), '1,1,1,1,1', msg + "[th.colspan]"); + // column:checkbox + equal(collect($checkboxes, 'rowspan'), '1,1,1,1', msg + "[td:checkbox.rowspan]"); + equal(collect($checkboxes, 'colspan'), '1,1,1,1', msg + "[td:checkbox.colspan]"); + // column:code + equal(collect($codes, 'rowspan'), '1,1,1,1', msg + "[td:code.rowspan]"); + equal(collect($codes, 'colspan'), '1,1,1,1', msg + "[td:code.colspan]"); + // column:label + equal(collect($labels, 'rowspan'), '1,1,1,1', msg + "[td:label.rowspan]"); + equal(collect($labels, 'colspan'), '1,1,1,1', msg + "[td:label.colspan]"); + // column:radio + equal(collect($radios, 'rowspan'), '1,1,1,1', msg + "[td:radio.rowspan]"); + equal(collect($radios, 'colspan'), '1,1,1,1', msg + "[td:radio.colspan]"); + // column:link + equal(collect($links, 'rowspan'), '1,1,1,1', msg + "[td:link.rowspan]"); + equal(collect($links, 'colspan'), '1,1,1,1', msg + "[td:link.colspan]"); + } + + function rowspan螻樊ァ縺ョ繝繧ケ繝_checkbox() { + var testcase = test_for('rowspan-checkbox-test')[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $checkbox = $records.find(visible.td+":eq(0)").filter(':even') + , $code = $records.find(visible.td+":eq(0)").filter(':odd') + , $label = $records.find(visible.td+":eq(1)"); + + // table header + equal(collect($ths, 'rowspan'), '2,1,1', msg + "[th.rowspan]"); + equal(collect($ths, 'colspan'), '1,1,1', msg + "[th.colspan]"); + + // column:checkbox + equal(collect($checkbox, 'rowspan'), '2,2,2,2', msg + "[td:checkbox.rowspan]"); + equal(collect($checkbox, 'colspan'), '1,1,1,1', msg + "[td:checkbox.colspan]"); + + // column:code 蠖ア髻ソ縺励↑縺縺薙→繧堤「コ隱 + equal(collect($code, 'rowspan'), '1,1,1,1', msg + "[td:code.rowspan]"); + equal(collect($code, 'colspan'), '1,1,1,1', msg + "[td:code.colspan]"); + + // column:label 蠖ア髻ソ縺励↑縺縺薙→繧堤「コ隱 + equal(collect($label, 'rowspan'), '1,1,1,1', msg + "[td:code.rowspan]"); + equal(collect($label, 'colspan'), '1,1,1,1', msg + "[td:code.colspan]"); + } + + function rowspan螻樊ァ縺ョ繝繧ケ繝_code() { + var testcase = test_for('rowspan-code-test')[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $codes2 = $records.find(visible.td+":eq(0)").filter(':even') + , $code = $records.find(visible.td+":eq(0)").filter(':odd') + , $label = $records.find(visible.td+":eq(1)"); + + // table header + equal(collect($ths, 'rowspan'), '2,1,1', msg + "[th.rowspan]"); + equal(collect($ths, 'colspan'), '1,1,1', msg + "[th.colspan]"); + + // column:code + equal(collect($codes2, 'rowspan'), '2,2,2,2', msg + "[td:code.rowspan]"); + equal(collect($codes2, 'colspan'), '1,1,1,1', msg + "[td:code.colspan]"); + + // column:code 蠖ア髻ソ縺励↑縺縺薙→繧堤「コ隱 + equal(collect($code, 'rowspan'), '1,1,1,1', msg + "[td:code_2.rowspan]"); + equal(collect($code, 'colspan'), '1,1,1,1', msg + "[td:code_2.colspan]"); + + // column:label 蠖ア髻ソ縺励↑縺縺薙→繧堤「コ隱 + equal(collect($label, 'rowspan'), '1,1,1,1', msg + "[td:label.rowspan]"); + equal(collect($label, 'colspan'), '1,1,1,1', msg + "[td:label.colspan]"); + } + + function rowspan螻樊ァ縺ョ繝繧ケ繝_radio() { + var testcase = test_for('rowspan-radio-test')[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $radios = $records.find(visible.td+":eq(0)").filter(':even') + , $codes = $records.find(visible.td+":eq(0)").filter(':odd') + , $labels = $records.find(visible.td+":eq(1)"); + + // table header + equal(collect($ths, 'rowspan'), '2,1,1', msg + "[th.rowspan]"); + equal(collect($ths, 'colspan'), '1,1,1', msg + "[th.colspan]"); + + // column:radio + equal(collect($radios, 'rowspan'), '2,2,2,2', msg + "[td:radio.rowspan]"); + equal(collect($radios, 'colspan'), '1,1,1,1', msg + "[td:radio.colspan]"); + + // column:code 蠖ア髻ソ縺励↑縺縺薙→繧堤「コ隱 + equal(collect($codes, 'rowspan'), '1,1,1,1', msg + "[td:code_2.rowspan]"); + equal(collect($codes, 'colspan'), '1,1,1,1', msg + "[td:code_2.colspan]"); + + // column:label 蠖ア髻ソ縺励↑縺縺薙→繧堤「コ隱 + equal(collect($labels, 'rowspan'), '1,1,1,1', msg + "[td:label.rowspan]"); + equal(collect($labels, 'colspan'), '1,1,1,1', msg + "[td:label.colspan]"); + } + + function rowspan螻樊ァ縺ョ繝繧ケ繝_label() { + var testcase = test_for('rowspan-label-test')[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $labels2 = $records.find(visible.td+":eq(0)").filter(':even') + , $codes = $records.find(visible.td+":eq(0)").filter(':odd') + , $labels = $records.find(visible.td+":eq(1)"); + + // table header + equal(collect($ths, 'rowspan'), '2,1,1', msg + "[th.rowspan]"); + equal(collect($ths, 'colspan'), '1,1,1', msg + "[th.colspan]"); + + // column:label + equal(collect($labels2, 'rowspan'), '2,2,2,2', msg + "[td:label.rowspan]"); + equal(collect($labels2, 'colspan'), '1,1,1,1', msg + "[td:label.colspan]"); + + // column:code 蠖ア髻ソ縺励↑縺縺薙→繧堤「コ隱 + equal(collect($codes, 'rowspan'), '1,1,1,1', msg + "[td:code.rowspan]"); + equal(collect($codes, 'colspan'), '1,1,1,1', msg + "[td:code.colspan]"); + + // column:label 蠖ア髻ソ縺励↑縺縺薙→繧堤「コ隱 + equal(collect($labels, 'rowspan'), '1,1,1,1', msg + "[td:label.rowspan]"); + equal(collect($labels, 'colspan'), '1,1,1,1', msg + "[td:label.colspan]"); + } + + function rowspan螻樊ァ縺ョ繝繧ケ繝_link() { + var testcase = test_for('rowspan-link-test')[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg; + + // table header + equal(collect($records.find(visible.th), 'rowspan'), '2,1,1', msg + "[th.rowspan]"); + equal(collect($records.find(visible.th), 'colspan'), '1,1,1', msg + "[th.colspan]"); + + // column:link + equal(collect($records.find(visible.td+":eq(0)").filter(':even'), 'rowspan'), '2,2,2,2', msg + "[td:link.rowspan]"); + equal(collect($records.find(visible.td+":eq(0)").filter(':even'), 'colspan'), '1,1,1,1', msg + "[td:link.colspan]"); + + // column:code 蠖ア髻ソ縺励↑縺縺薙→繧堤「コ隱 + equal(collect($records.find(visible.td+":eq(0)").filter(':odd'), 'rowspan'), '1,1,1,1', msg + "[td:code.rowspan]"); + equal(collect($records.find(visible.td+":eq(0)").filter(':odd'), 'colspan'), '1,1,1,1', msg + "[td:code.colspan]"); + + // column:label 蠖ア髻ソ縺励↑縺縺薙→繧堤「コ隱 + equal(collect($records.find(visible.td+":eq(1)"), 'rowspan'), '1,1,1,1', msg + "[td:label.rowspan]"); + equal(collect($records.find(visible.td+":eq(1)"), 'colspan'), '1,1,1,1', msg + "[td:label.colspan]"); + } + + function colspan螻樊ァ縺ョ繝繧ケ繝_blank() { + var testcase = test_for('colspan-blank-test')[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $checkboxes = $records.find(visible.td+":eq(0)") + , $codes = $records.find(visible.td+":eq(1)") + , $labels = $records.find(visible.td+":eq(2)") + , $radios = $records.find(visible.td+":eq(3)") + , $links = $records.find(visible.td+":eq(4)"); + + // table header + equal(collect($ths, 'rowspan'), '1,1,1,1,1', msg + "[th.rowspan]"); + equal(collect($ths, 'colspan'), '1,1,1,1,1', msg + "[th.colspan]"); + // column:checkbox + equal(collect($checkboxes, 'rowspan'), '1,1,1,1', msg + "[td:checkbox.rowspan]"); + equal(collect($checkboxes, 'colspan'), '1,1,1,1', msg + "[td:checkbox.colspan]"); + // column:code + equal(collect($codes, 'rowspan'), '1,1,1,1', msg + "[td:code.rowspan]"); + equal(collect($codes, 'colspan'), '1,1,1,1', msg + "[td:code.colspan]"); + // column:label + equal(collect($labels, 'rowspan'), '1,1,1,1', msg + "[td:label.rowspan]"); + equal(collect($labels, 'colspan'), '1,1,1,1', msg + "[td:label.colspan]"); + // column:radio + equal(collect($radios, 'rowspan'), '1,1,1,1', msg + "[td:radio.rowspan]"); + equal(collect($radios, 'colspan'), '1,1,1,1', msg + "[td:radio.colspan]"); + // column:link + equal(collect($links, 'rowspan'), '1,1,1,1', msg + "[td:link.rowspan]"); + equal(collect($links, 'colspan'), '1,1,1,1', msg + "[td:link.colspan]"); + + } + + function colspan螻樊ァ縺ョ繝繧ケ繝_set_one() { + var testcase = test_for('colspan-set-one-test')[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $checkboxes = $records.find(visible.td+":eq(0)") + , $codes = $records.find(visible.td+":eq(1)") + , $labels = $records.find(visible.td+":eq(2)") + , $radios = $records.find(visible.td+":eq(3)") + , $links = $records.find(visible.td+":eq(4)"); + + // table header + equal(collect($ths, 'rowspan'), '1,1,1,1,1', msg + "[th.rowspan]"); + equal(collect($ths, 'colspan'), '1,1,1,1,1', msg + "[th.colspan]"); + // column:checkbox + equal(collect($checkboxes, 'rowspan'), '1,1,1,1', msg + "[td:checkbox.rowspan]"); + equal(collect($checkboxes, 'colspan'), '1,1,1,1', msg + "[td:checkbox.colspan]"); + // column:code + equal(collect($codes, 'rowspan'), '1,1,1,1', msg + "[td:code.rowspan]"); + equal(collect($codes, 'colspan'), '1,1,1,1', msg + "[td:code.colspan]"); + // column:label + equal(collect($labels, 'rowspan'), '1,1,1,1', msg + "[td:label.rowspan]"); + equal(collect($labels, 'colspan'), '1,1,1,1', msg + "[td:label.colspan]"); + // column:radio + equal(collect($radios, 'rowspan'), '1,1,1,1', msg + "[td:radio.rowspan]"); + equal(collect($radios, 'colspan'), '1,1,1,1', msg + "[td:radio.colspan]"); + // column:link + equal(collect($links, 'rowspan'), '1,1,1,1', msg + "[td:link.rowspan]"); + equal(collect($links, 'colspan'), '1,1,1,1', msg + "[td:link.colspan]"); + } + + function colspan螻樊ァ縺ョ繝繧ケ繝_checkbox() { + var testcase = test_for('colspan-checkbox-test')[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $checkbox = $records.filter(':even').find(visible.td) + , $code = $records.filter(':odd').find(visible.td+":eq(0)") + , $label = $records.filter(':odd').find(visible.td+":eq(1)"); + + equal(collect($ths, 'rowspan'), '1,1,1', msg + "[th.rowspan]"); + equal(collect($ths, 'colspan'), '2,1,1', msg + "[th.rowspan]"); + + equal(collect($checkbox, 'rowspan'), '1,1,1,1', msg + "[td:checkbox.rowspan]"); + equal(collect($checkbox, 'colspan'), '2,2,2,2', msg + "[td:checkbox.colspan]"); + + equal(collect($code, 'rowspan'), '1,1,1,1', msg + "[td:code.rowspan"); + equal(collect($code, 'colspan'), '1,1,1,1', msg + "[td:code.colspan"); + + equal(collect($label, 'rowspan'), '1,1,1,1', msg + "[td:label.rowspan"); + equal(collect($label, 'colspan'), '1,1,1,1', msg + "[td:label.colspan"); + + } + + function colspan螻樊ァ縺ョ繝繧ケ繝_code() { + var testcase = test_for('colspan-code-test')[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $code = $records.filter(':even').find(visible.td) + , $checkbox = $records.filter(':odd').find(visible.td+":eq(0)") + , $label = $records.filter(':odd').find(visible.td+":eq(1)"); + + equal(collect($ths, 'rowspan'), '1,1,1', msg + "[th.rowspan]"); + equal(collect($ths, 'colspan'), '2,1,1', msg + "[th.colspan]"); + + equal(collect($code, 'rowspan'), '1,1,1,1', msg + "[td:code.rowspan]"); + equal(collect($code, 'colspan'), '2,2,2,2', msg + "[td:code.colspan]"); + + equal(collect($checkbox, 'rowspan'), '1,1,1,1', msg + "[td.checkbox.rowspan]"); + equal(collect($checkbox, 'colspan'), '1,1,1,1', msg + "[td.checkbox.colspan]"); + + equal(collect($label, 'rowspan'), '1,1,1,1', msg + "[td.label.rowspan]"); + equal(collect($label, 'colspan'), '1,1,1,1', msg + "[td.label.colspan]"); + } + + function colspan螻樊ァ縺ョ繝繧ケ繝_radio() { + var testcase = test_for('colspan-radio-test')[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $radio = $records.filter(':even').find(visible.td) + , $code = $records.filter(':odd').find(visible.td+":eq(0)") + , $label = $records.filter(':odd').find(visible.td+":eq(1)"); + + equal(collect($ths, 'rowspan'), '1,1,1', msg + "[th.rowspan]"); + equal(collect($ths, 'colspan'), '2,1,1', msg + "[th.colspan]"); + + equal(collect($radio, 'rowspan'), '1,1,1,1', msg + "[td:radio.rowspan]"); + equal(collect($radio, 'colspan'), '2,2,2,2', msg + "[td:radio.colspan]"); + + equal(collect($code, 'rowspan'), '1,1,1,1', msg + "[td.code.rowspan]"); + equal(collect($code, 'colspan'), '1,1,1,1', msg + "[td.code.colspan]"); + + equal(collect($label, 'rowspan'), '1,1,1,1', msg + "[td.label.rowspan]"); + equal(collect($label, 'colspan'), '1,1,1,1', msg + "[td.label.colspan]"); + } + + function colspan螻樊ァ縺ョ繝繧ケ繝_label() { + var testcase = test_for('colspan-label-test')[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $label = $records.filter(':even').find(visible.td) + , $code = $records.filter(':odd').find(visible.td+":eq(0)") + , $link = $records.filter(':odd').find(visible.td+":eq(1)"); + + equal(collect($ths, 'rowspan'), '1,1,1', msg + "[th.rowspan]"); + equal(collect($ths, 'colspan'), '2,1,1', msg + "[th.colspan]"); + + equal(collect($label, 'rowspan'), '1,1,1,1', msg + "[td:label.rowspan]"); + equal(collect($label, 'colspan'), '2,2,2,2', msg + "[td:label.colspan]"); + + equal(collect($code, 'rowspan'), '1,1,1,1', msg + "[td.code.rowspan]"); + equal(collect($code, 'colspan'), '1,1,1,1', msg + "[td.code.colspan]"); + + equal(collect($link, 'rowspan'), '1,1,1,1', msg + "[td.link.rowspan]"); + equal(collect($link, 'colspan'), '1,1,1,1', msg + "[td.link.colspan]"); + } + + function colspan螻樊ァ縺ョ繝繧ケ繝_link() { + var testcase = test_for('colspan-link-test')[0] + , $records = testcase.table.find(visible.tr) + , msg = testcase.msg + , $ths = $records.find(visible.th) + , $link = $records.filter(':even').find(visible.td) + , $code = $records.filter(':odd').find(visible.td+":eq(0)") + , $label = $records.filter(':odd').find(visible.td+":eq(1)"); + + equal(collect($ths, 'rowspan'), '1,1,1', msg + "[th.rowspan]"); + equal(collect($ths, 'colspan'), '2,1,1', msg + "[th.colspan]"); + + equal(collect($link, 'rowspan'), '1,1,1,1', msg + "[td.link.rowspan]"); + equal(collect($link, 'colspan'), '2,2,2,2', msg + "[td.link.colspan]"); + + equal(collect($code, 'rowspan'), '1,1,1,1', msg + "[td.code.rowspan]"); + equal(collect($code, 'colspan'), '1,1,1,1', msg + "[td.code.colspan]"); + + equal(collect($label, 'rowspan'), '1,1,1,1', msg + "[td:label.rowspan]"); + equal(collect($label, 'colspan'), '1,1,1,1', msg + "[td:label.colspan]"); + + } + + + /** + * rowspan or colspan繧貞叙蠕励☆繧九ョ縺ォ蛻ゥ逕ィ縺吶k陬懷勧髢「謨ー縲 + * + * @param wrapSet jQuery縺ョ繝ゥ繝繝励そ繝繝医$(td, tr, table)繧偵¥縺縺輔>縲 + * @param type {String} rowspan or colspan + */ + function collect(wrapSet, type) { + return wrapSet.map(function() {return $(this).attr(type) || "1";}).get().join(','); + } + + /** + * 繧ォ繝ゥ繝繧ヲ繧」繧ク繧ァ繝繝_繧ウ繝シ繝峨ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e); + return { + msg : $.trim($e.text()), + title : $($all_nodes[idx + 1]), + table : $($all_nodes[idx + 2]) + }; + }); + } diff --git "a/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..9db6ba3 --- /dev/null +++ "b/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,23 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +<%-- test for table:row --%> + + + table, td, th { + border : 1px #000000 solid; + } + + diff --git "a/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..c3855c3 --- /dev/null +++ "b/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,75 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..3e7d12f --- /dev/null +++ "b/node_modules/nablarch-widget-table-row/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\350\244\207\346\225\260\350\241\214\343\203\254\343\202\244\343\202\242\343\202\246\343\203\210/\343\202\265\343\203\274\343\203\220\343\203\274\343\202\257\343\203\251\343\202\244\343\202\242\343\203\263\343\203\210\345\205\261\351\200\232_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,311 @@ + + +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + 隍謨ー陦後Ξ繧、繧「繧ヲ繝医ョ蠢鬆亥ア樊ァ縺ョ縺ソ繧呈欠螳 + + + + + + + + + + + rowspan縺ォblank繧呈欠螳 + + + + + + + + + + + rowspan縺ォ1繧呈欠螳 + + + + + + + + + + + column:checkbox rowspan縺ォ2繧呈欠螳 + + + + + + + + + + + column:code rowspan縺ォ2繧呈欠螳 + + + + + + + + + + + column:radio rowspan縺ォ2繧呈欠螳 + + + + + + + + + + + column:label rowspan縺ォ2繧呈欠螳 + + + + + + + + + + + column:link rowspan縺ォ2繧呈欠螳 + + + + + + + + + + + colspan縺ォblank繧呈欠螳 + + + + + + + + + + + colspan縺ォ1繧呈欠螳 + + + + + + + + + + + column:checkbox colspan縺ォ2繧呈欠螳 + + + + + + + + + + + column:code colspan縺ォ2繧呈欠螳 + + + + + + + + + + + column:radio colspan縺ォ2繧呈欠螳 + + + + + + + + + + + column:radio colspan縺ォ2繧呈欠螳 + + + + + + + + + + + column:label colspan縺ォ2繧呈欠螳 + + + + + + + + + + + column:link colspan縺ォ2繧呈欠螳 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/node_modules/nablarch-widget-table-search_result/package.json b/node_modules/nablarch-widget-table-search_result/package.json new file mode 100644 index 0000000..33c4a1a --- /dev/null +++ b/node_modules/nablarch-widget-table-search_result/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-table-search_result" +, "version": "1.0.1" +, "_from" : "nablarch-widget-table-search_result@1.0.1" +, "dependencies": { + } +, "description": "讀懃エ「邨先棡陦ィ遉コ繝繝シ繝悶Ν繝励Λ繧ー繧、繝ウ" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-table-search_result/ui_public/WEB-INF/tags/widget/table/search_result.tag b/node_modules/nablarch-widget-table-search_result/ui_public/WEB-INF/tags/widget/table/search_result.tag new file mode 100644 index 0000000..60ea418 --- /dev/null +++ b/node_modules/nablarch-widget-table-search_result/ui_public/WEB-INF/tags/widget/table/search_result.tag @@ -0,0 +1,113 @@ +<%-- + 讀懃エ「邨先棡縺ョ繝繝シ繝悶Ν陦ィ遉コ + @author Iwauo Tajima +--%> +<%@ tag pageEncoding="UTF-8" description="繝繝シ繝悶Νシ域、懃エ「邨先棡縺ェ縺ゥシ峨r蜃コ蜉帙☆繧九え繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="listSearchResult" tagdir="/WEB-INF/tags/listSearchResult" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> + +<%@ attribute name="title" description="隕句コ縺玲枚蟄怜夕繝ュ繝シ繧ォ繝ォ陦ィ遉コ蠢鬆]" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="繝繝シ繝悶Ν縺ョID螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="showTitle" description="繧ソ繧、繝医Ν繧定ヲ句コ縺励→縺励※陦ィ遉コ縺吶k縺(繝繝輔か繝ォ繝:true)" rtexprvalue="true" %> +<%@ attribute name="searchUri" description="讀懃エ「蜃ヲ逅繧定。後≧繝ェ繧ッ繧ィ繧ケ繝医ョURI" rtexprvalue="true" %> +<%@ attribute name="listSearchInfoName" description="讀懃エ「譚。莉カ繧呈シ邏阪☆繧句、画焚蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="resultSetName" description="讀懃エ「邨先棡繧呈シ邏阪☆繧句、画焚蜷" rtexprvalue="true" %> +<%@ attribute name="resultNumName" description="讀懃エ「邨先棡莉カ謨ー繧呈シ邏阪☆繧句、画焚蜷(resultSetName縺ィ縺縺壹l縺句ソ鬆)" rtexprvalue="true" %> +<%@ attribute name="resultSetCss" description="讀懃エ「邨先棡陦ィ遉コ鬆伜沺縺ォ驕ゥ逕ィ縺吶kCSS繧ッ繝ゥ繧ケ" rtexprvalue="true" %> +<%@ attribute name="usePaging" description="繝壹シ繧ク繝ウ繧ー繧剃スソ逕ィ縺吶k縺句凄縺具シ医ョ繝輔か繝ォ繝医ッ菴ソ逕ィ縺吶k:trueシ" rtexprvalue="true" %> +<%@ attribute name="sampleResults" description="繧オ繝ウ繝励Ν縺ァ陦ィ遉コ縺吶k莉カ謨ー(譛ャ逡ェ蜍穂ス懈凾縺ァ縺ッ菴ソ逕ィ縺輔l縺ェ縺縲)[繝ュ繝シ繧ォ繝ォ陦ィ遉コ蠢鬆]" rtexprvalue="true" %> + +<%-- ================================================================================ --%> + + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌蜷代¢シ =============================== --%> + +<%@ attribute name="sortCondition" description="繝繝シ繝悶Ν縺ョ蛻晄悄繧ス繝シ繝域擅莉カシ育判髱「讎りヲ√ョ荳隕ァ陦ィ遉コ縺ョ繝ェ繧ケ繝医〒縲√た繝シ繝域擅莉カ縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="comment" description="繝繝シ繝悶Ν縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「讎りヲ√ョ荳隕ァ陦ィ遉コ縺ョ繝ェ繧ケ繝医〒縲∝y閠縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="estimatedMaxSearchResults" description="讀懃エ「邨先棡縺ィ縺励※諠ウ螳壹&繧後k譛螟ァ莉カ謨ーシ育判髱「讎りヲ√ョ荳隕ァ陦ィ遉コ縺ョ繝ェ繧ケ繝医〒縲∵Φ螳壽、懃エ「譛螟ァ莉カ謨ー縺ォ陦ィ遉コ縺輔l繧具シ" %> + +<%-- ================================================================================ --%> + + +<%-- 隍謨ー陦瑚。ィ遉コ蟇セ蠢 --%> +<%@ attribute name="multipleRowLayout" description="隍謨ー縺ョ陦後Ξ繧、繧「繧ヲ繝医′蜷ォ縺セ繧後k蝣エ蜷医°縺ゥ縺縺九ゅョ繝輔か繝ォ繝医ッ'false'" rtexprvalue="true" %> + + + + + + + + + + + + + + + + + + + + + + + +
+

+ + (莉カ) +

+
+
+
+ + + + + <%-- 繝倥ャ繝繝シ驛ィ --%> + + + + + + + + + + + + + + + + <%-- 繝懊ョ繧」驛ィ --%> + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253.jsp" "b/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253.jsp" new file mode 100644 index 0000000..d534d71 --- /dev/null +++ "b/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253.jsp" @@ -0,0 +1,23 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + div.border-blue > table, div.border-blue tr, div.border-blue td, div.border-blue th { + border: 1px solid blue; + } + + diff --git "a/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" "b/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" new file mode 100644 index 0000000..ac31188 --- /dev/null +++ "b/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.js" @@ -0,0 +1,109 @@ + runTest( + 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝 + , usePaging螻樊ァ縺ョ繝繧ケ繝 + , resultSetCss螻樊ァ縺ョ繝繧ケ繝 + , id螻樊ァ縺ョ繝繧ケ繝 + ); + + var $all_nodes + , paging_navi_area = "div.nablarch_paging" + , result_set_class = "nablarch_resultSet" + , label = 'h2'; + + function setup() { + $all_nodes = $('span.test-case, div.title, div.nablarch_listSearchResultWrapper'); + } + + function usePaging螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('usePaging-test') + , default_case = cases[0] + , blank_case = cases[1] + , true_case = cases[2] + , false_case = cases[3]; + + equal(default_case.table.find(paging_navi_area).size(), 2, default_case.testcase); + equal(blank_case.table.find(paging_navi_area).size(), 2, blank_case.testcase); + equal(true_case.table.find(paging_navi_area).size(), 2, true_case.testcase); + equal(false_case.table.find(paging_navi_area).size(), 0, false_case.testcase); + } + + function resultSetCss螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('resultSetCss-test') + , default_case = cases[0] + , blank_case = cases[1] + , set_css_case = cases[2]; + + + ok(hasOnlyClass(default_case, [result_set_class]), default_case.testcase); + ok(hasOnlyClass(blank_case, [result_set_class]), blank_case.testcase); + ok(hasOnlyClass(set_css_case, [result_set_class, 'border-blue']), set_css_case.testcase); + + } + + function id螻樊ァ縺ョ繝繧ケ繝() { + setup(); + var cases = test_for('id-test') + , not_id = cases[0] + , blank_id = cases[1] + , set_id = cases[2]; + + equal(not_id.table.attr('id'), '', 'ID螻樊ァ縺ッ遨コ縺ァ縺ゅk縺薙→'); + equal(blank_id.table.attr('id'), '', 'ID螻樊ァ縺ッ遨コ縺ァ縺ゅk縺薙→'); + equal(set_id.table.attr('id'), 'hogefuga', '謖螳壹@縺殃d螻樊ァ縺瑚ィュ螳壹&繧後k縺薙→'); + } + + function 蠢鬆亥ア樊ァ縺ョ縺ソ謖螳壹@縺溷エ蜷医ョ繝繧ケ繝() { + setup(); + var cases = test_for('require_only-test') + , title_label + , require_only = cases[0]; + + // paging辟。繧呈欠螳壹@縺ヲ縺繧九◆繧√√壹シ繧ク繝ウ繧ー縺ョ謫堺ス憺伜沺縺ッ蜃コ縺ェ縺縲 + equal(require_only.table.find(paging_navi_area).size(), 0, require_only.testcase + "[paging navigate area size]"); + + title_label = $.trim(require_only.title.find(label).text()); + ok(title_label.has("蠢鬆亥ア樊ァ-讀懃エ「邨先棡") && title_label.has("4莉カ"), require_only.testcase + " [title label = " + title_label); + ok(hasOnlyClass(require_only, [result_set_class]), require_only.testcase); + } + + /** + * 讀懃エ「邨先棡繝繝シ繝悶Ν縺ョwidget縺九i蜃コ蜉帙&繧後◆繝繧ケ繝医こ繝シ繧ケ縺ョ諠蝣ア繧貞叙蠕励☆繧九 + * @param case_id 繝繧ケ繝医こ繝シ繧ケ縺ョID + * @returns 繝繧ケ繝医こ繝シ繧ケ蜀縺ォ螳夂セゥ縺輔l縺溽「コ隱阪懊ち繝ウ + */ + function test_for(case_id) { + var $cases = $all_nodes.filter('span.test-case.' + case_id); + return $cases.map(function() { + var $e = $(this) + , idx = $all_nodes.index($e); + return { + testcase : $.trim($e.text()), + title : $($all_nodes[idx + 1]), + table : $($all_nodes[idx + 2]) + }; + }); + } + + /** + * 繝繧ケ繝医こ繝シ繧ケ縺ョtable繝励Ο繝代ユ繧」縺九idiv隕∫エ縺ョclass縺梧欠螳壹&繧後◆繧ゅョ縺縺代°蛻、螳壹☆繧九 + * + * @param testcase table繝励Ο繝代ユ繧」縺ォNode縺瑚ィュ螳壹&繧後※縺繧九ユ繧ケ繝医こ繝シ繧ケ + * @param class繧呈欠螳壹☆繧矩榊 + * @returns 謖螳壹@縺溘け繝ゥ繧ケ縺ョ縺ソ縺ァ縺ゅl縺ーtrue, 縺昴l莉・螟悶ョ繧ゅョ縺後≠繧後ーfalse + * @throws 謖螳壹@縺溘け繝ゥ繧ケ縺1縺、縺ァ繧ゅ↑縺蝣エ蜷 + */ + function hasOnlyClass(testcase, classtexts) { + var node = testcase.table.find('.' + classtexts[0]) + , node_classtext = $(node).attr('class'); + $.each(classtexts, function(_, classtext){ + if (node_classtext.has(classtext)) { + node_classtext = node_classtext.remove(classtext); + } else { + throw Error('node does\'t has class [ ' + classtext + " ]"); + } + }); + return node_classtext.isBlank(); + } + diff --git "a/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" "b/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" new file mode 100644 index 0000000..92b8ba2 --- /dev/null +++ "b/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271.jsp" @@ -0,0 +1,22 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + div.border-blue > table, div.border-blue tr, div.border-blue td, div.border-blue th { + border: 1px solid blue; + } + + diff --git "a/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" "b/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" new file mode 100644 index 0000000..41ce3a9 --- /dev/null +++ "b/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277.jsp" @@ -0,0 +1,104 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> + \ No newline at end of file diff --git "a/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" "b/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" new file mode 100644 index 0000000..2efe936 --- /dev/null +++ "b/node_modules/nablarch-widget-table-search_result/ui_test/jsp/\343\203\206\343\203\274\343\203\226\343\203\253/\346\244\234\347\264\242\347\265\220\346\236\234\350\241\250\347\244\272\347\224\250\343\203\206\343\203\274\343\203\226\343\203\253_\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270.jsp" @@ -0,0 +1,378 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 蠢鬆亥ア樊ァシsampleResultsシ峨r謖螳壹@縺溷エ蜷医√◎縺ョ莉カ謨ー縺梧、懃エ「邨先棡莉カ謨ー縺ィ縺励※繧ソ繧、繝医Ν驛ィ縺ォ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + 繧オ繝シ繝舌し繧、繝峨〒謖螳壹☆繧句ア樊ァ繧貞性繧√※蜈ィ縺ヲ縺ョ螻樊ァ繧呈欠螳壹@縺溷エ蜷医〒繧ゅ√け繝ゥ繧、繧「繝ウ繝医〒縺ョ蜍穂ス懊↓蝠城。後′縺ェ縺縺薙→ + + + + + + + + + + + + + + + usePaging螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√壹シ繧ク繝ウ繧ー逕ィ縺ョ繝ェ繝ウ繧ッ縺瑚。ィ遉コ縺ョ荳企Κ蜿翫ウ荳矩Κ縺ォ蜃コ蜉帙&繧後k縺薙→ + + + + + + + + + + usePaging螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√壹シ繧ク繝ウ繧ー逕ィ縺ョ繝ェ繝ウ繧ッ縺瑚。ィ遉コ縺ョ荳企Κ蜿翫ウ荳矩Κ縺ォ蜃コ蜉帙&繧後k縺薙→ + + + + + + + + + + usePaging螻樊ァ縺ォtrue繧呈欠螳壹@縺溷エ蜷医√壹シ繧ク繝ウ繧ー逕ィ縺ョ繝ェ繝ウ繧ッ縺瑚。ィ遉コ縺ョ荳企Κ蜿翫ウ荳矩Κ縺ォ蜃コ蜉帙&繧後k縺薙→ + + + + + + + + + + usePaging螻樊ァ縺ォfalse繧呈欠螳壹@縺溷エ蜷医√壹シ繧ク繝ウ繧ー逕ィ縺ョ繝ェ繝ウ繧ッ縺瑚。ィ遉コ縺ョ荳企Κ蜿翫ウ荳矩Κ縺ォ蜃コ蜉帙&繧後↑縺縺薙→ + + + + + + + + + + resultSetCss螻樊ァ繧呈欠螳壹↓縺ェ縺蝣エ蜷医√ユ繝シ繝悶Ν縺ョ隕ェ縺ィ縺ェ繧掬iv繧ソ繧ー縺ョclass螻樊ァ縺ッ縲系ablarch_resultSet縲阪ョ縺ソ縺ァ縺ゅk縺薙→(繧ス繝シ繧ケ縺九i遒コ隱) + + + + + + + + + resultSetCss螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ユ繝シ繝悶Ν縺ョ隕ェ縺ィ縺ェ繧掬iv繧ソ繧ー縺ョclass螻樊ァ縺ッ縲系ablarch_resultSet縲阪ョ縺ソ縺ァ縺ゅk縺薙→(繧ス繝シ繧ケ縺九i遒コ隱) + + + + + + + + + resultSetCss螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ繧ケ繧ソ繧、繝ォ縺碁←逕ィ縺輔l繧九%縺ィ + + + + + + + + + + id螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ユ繝シ繝悶Ν陦ィ遉コ鬆伜沺繧貞峇繧div繧ソ繧ー縺ォid螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + id螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ユ繝シ繝悶Ν陦ィ遉コ鬆伜沺繧貞峇繧div繧ソ繧ー縺ォid螻樊ァ縺瑚ィュ螳壹&繧後↑縺縺薙→ + + + + + + + + + + id螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョid縺後ユ繝シ繝悶Ν陦ィ遉コ鬆伜沺繧貞峇繧div繧ソ繧ー縺ォ險ュ螳壹&繧後k縺薙→ + + + + + + + + showTitle螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ち繧、繝医Ν縺悟コ蜉帙&繧後k縺薙→ + + + + + showTitle螻樊ァ縺後ヶ繝ゥ繝ウ繧ッ縺ョ蝣エ蜷医√ち繧、繝医Ν縺悟コ蜉帙&繧後k縺薙→ + + + + + showTitle螻樊ァ縺荊rue縺ョ蝣エ蜷医√ち繧、繝医Ν縺悟コ蜉帙&繧後k縺薙→ + + + + + showTitle螻樊ァ縺掲alse縺ョ蝣エ蜷医√ち繧、繝医Ν縺悟コ蜉帙&繧後↑縺縺薙→ + + + + + + + wide繝「繝シ繝峨〒縺ッ讓ェ繧ケ繧ッ繝ュ繝シ繝ォ縺帙★縲…ompact,narrow縺ァ縺ッ讓ェ繧ケ繧ッ繝ュ繝シ繝ォ縺吶k縺薙→ + + + + + + + + + + + 蠢鬆亥ア樊ァ繧貞ィ縺ヲ謖螳夲シ亥ソ鬆亥ア樊ァ縺ッ蟶ク縺ォ蠢隕√↑縺ョ縺ァ郤上a縺ヲ繝繧ケ繝茨シ峨@縺溷エ蜷医√◎繧後◇繧後ョ螻樊ァ蛟、縺後◆縺縺励¥蜃コ蜉帙&繧後k縺薙→
+ (繝壹シ繧ク繝ウ繧ー縺ェ縺励r菴ソ逕ィ縺励※繝繧ケ繝医r螳滓命縺吶k縲) +
+ + + + + + +
+
+
diff --git a/node_modules/nablarch-widget-table-tree/package.json b/node_modules/nablarch-widget-table-tree/package.json new file mode 100644 index 0000000..fd8fcea --- /dev/null +++ b/node_modules/nablarch-widget-table-tree/package.json @@ -0,0 +1,8 @@ +{ + "name": "nablarch-widget-table-tree" +, "version": "1.0.0" +, "_from" : "nablarch-widget-table-tree@1.0.0" +, "dependencies": { + } +, "description": "繝繝ェ繝シ繝ェ繧ケ繝郁。ィ遉コ繝繝シ繝悶Ν繝励Λ繧ー繧、繝ウ" +} \ No newline at end of file diff --git a/node_modules/nablarch-widget-table-tree/ui_public/WEB-INF/tags/widget/table/treelist.tag b/node_modules/nablarch-widget-table-tree/ui_public/WEB-INF/tags/widget/table/treelist.tag new file mode 100644 index 0000000..c38b668 --- /dev/null +++ b/node_modules/nablarch-widget-table-tree/ui_public/WEB-INF/tags/widget/table/treelist.tag @@ -0,0 +1,78 @@ +<%-- + 髫主ア、蛹悶Μ繧ケ繝郁。ィ遉コ + @author Iwauo Tajima +--%> +<%@ tag pageEncoding="UTF-8" description="驛ィ鄂イ荳隕ァ縲驛ィ蜩∬。ィ縺ェ縺ゥ縲髫主ア、蛹悶&繧後◆繝繝シ繧ソ縺ョ荳隕ァ繧定。ィ遉コ縺吶k繧ヲ繧」繧ク繧ァ繝繝" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="listSearchResult" tagdir="/WEB-INF/tags/listSearchResult" %> + +<%-- ============================ 螻樊ァ螳夂セゥ =============================== --%> +<%@ attribute name="title" description="隕句コ縺玲枚蟄怜" required="true" rtexprvalue="true" %> +<%@ attribute name="id" description="繝繝シ繝悶Ν縺ョID螻樊ァ" rtexprvalue="true" %> +<%@ attribute name="resultSetName" description="讀懃エ「邨先棡繧呈シ邏阪☆繧句、画焚蜷" required="true" rtexprvalue="true" %> +<%@ attribute name="resultSetCss" description="讀懃エ「邨先棡陦ィ遉コ鬆伜沺縺ォ驕ゥ逕ィ縺吶kCSS繧ッ繝ゥ繧ケ" rtexprvalue="true" %> +<%@ attribute name="key" description="髫主ア、蛹門ッセ雎。繧ュ繝シ" required="true" rtexprvalue="true" %> +<%@ attribute name="name" description="繝繝ェ繝シ縺ョ髢矩哩迥カ諷九ョ菫晄戟縺ォ菴ソ逕ィ縺吶k繝輔か繝シ繝隕∫エ縺ョname螻樊ァ蛟、" required="true" rtexprvalue="true" %> +<%@ attribute name="hierarchy" description="髫主ア、讒矩縺ョ螳夂セゥ蠑上ゆサ・荳九ョ3縺、縺ョ譖ク蠑上ョ縺縺壹l縺九r謖螳壹☆繧九 1. chars:(謨ー蛟、)|(謨ー蛟、)|...|(謨ー蛟、) 蜷隕∫エ縺ョid螻樊ァ蛟、繧貞磯ュ縺九i縺ョ譁蟄玲焚縺ァ蛻蜑イ縺鈴嚴螻、繧呈アコ螳壹☆繧区婿豕輔 2. separator:(蛹コ蛻繧頑枚蟄怜) 蜷隕∫エ縺ョid螻樊ァ蛟、繧貞玄蛻繧頑枚蟄怜励〒蛻蜑イ縺鈴嚴螻、繧呈アコ螳壹☆繧区婿豕輔 3. function: (繧ー繝ュ繝シ繝舌Ν髢「謨ー蜷) 謖螳壹&繧後◆繧ー繝ュ繝シ繝舌Ν髢「謨ー繧剃スソ逕ィ縺励※髫主ア、繧呈アコ螳壹☆繧区婿豕輔" required="true" rtexprvalue="true" %> + +<%@ attribute name="sampleResults" description="繧オ繝ウ繝励Ν縺ァ陦ィ遉コ縺吶k莉カ謨ー(譛ャ逡ェ蜍穂ス懈凾縺ァ縺ッ菴ソ逕ィ縺輔l縺ェ縺縲)" rtexprvalue="true" %> + +<%-- ================================================================================ --%> + + +<%-- ============================ 螻樊ァ螳夂セゥシ郁ィュ險域嶌蜷代¢シ =============================== --%> + +<%@ attribute name="sortCondition" description="縺薙ョ繝繝シ繝悶Ν縺ョ蛻晄悄繧ス繝シ繝域擅莉カシ育判髱「讎りヲ√ョ荳隕ァ陦ィ遉コ縺ョ繝ェ繧ケ繝医〒縲√た繝シ繝域擅莉カ縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="comment" description="縺薙ョ繝繝シ繝悶Ν縺ォ縺、縺縺ヲ縺ョ蛯呵シ育判髱「讎りヲ√ョ荳隕ァ陦ィ遉コ縺ョ繝ェ繧ケ繝医〒縲∝y閠縺ォ陦ィ遉コ縺輔l繧具シ" %> +<%@ attribute name="estimatedMaxSearchResults" description="讀懃エ「邨先棡縺ィ縺励※諠ウ螳壹&繧後k譛螟ァ莉カ謨ーシ育判髱「讎りヲ√ョ荳隕ァ陦ィ遉コ縺ョ繝ェ繧ケ繝医〒縲∵Φ螳壽、懃エ「譛螟ァ莉カ謨ー縺ォ陦ィ遉コ縺輔l繧具シ" %> + +<%-- ================================================================================ --%> + + + + + +
+

+
+
+ +<%-- 蜷繝悶Ο繝繧ッ縲√ヤ繝ェ繝シ縺ョ髢矩哩迥カ諷 --%> + + + + + <%-- 繝倥ャ繝繝シ驛ィ --%> + + + + + + + + + + + <%-- 繝懊ョ繧」驛ィ --%> + + + + + + + + + diff --git a/node_modules/nablarch-widget-table-tree/ui_public/css/ui/treelist.less b/node_modules/nablarch-widget-table-tree/ui_public/css/ui/treelist.less new file mode 100644 index 0000000..dc3ef0a --- /dev/null +++ b/node_modules/nablarch-widget-table-tree/ui_public/css/ui/treelist.less @@ -0,0 +1,47 @@ +.nablarch_TreeList { + + .depth_1, .depth_2 { + color : @baseColor; + font-weight : bold; + } + + .depth_1 { // 隨ャ荳髫主ア、 + background-color : lighten(@mainColor2, 20%); + td.tree_indent { + padding-left : 2px; + } + } + + .depth_2 { // 隨ャ莠碁嚴螻、 + background-color : lighten(@mainColor2, 30%); + td.tree_indent { + padding-left : 17px; + } + } + + .depth_3 { // 隨ャ荳蛾嚴螻、 + td.tree_indent { + padding-left : 32px; + } + } + + .depth_4 { // 隨ャ蝗幃嚴螻、 + td.tree_indent { + padding-left : 47px; + } + } +} + +.even_row { + background-color: lighten(@mainColor2, 70%); +} + +a.toggleAll, a.uncheckAll, a.checkAll { + color: #fff; +} + +h2.nablarch_Collapsible { + a { + color: #4c2a1a; + } +} diff --git a/node_modules/nablarch-widget-table-tree/ui_public/js/nablarch/ui/TreeList.js b/node_modules/nablarch-widget-table-tree/ui_public/js/nablarch/ui/TreeList.js new file mode 100644 index 0000000..e4bde28 --- /dev/null +++ b/node_modules/nablarch-widget-table-tree/ui_public/js/nablarch/ui/TreeList.js @@ -0,0 +1,425 @@ +define([ + "jquery" // jQuery繝ゥ繧、繝悶Λ繝ェ +, "global" // 繧ー繝ュ繝シ繝舌Ν(Window)繧ェ繝悶ず繧ァ繧ッ繝 +, "./Widget" // Widget蝓コ蠎輔け繝ゥ繧ケ +, "./Collapsible" // 髢矩哩讖溯ス +, "./readonly" +, "sugar" // sugar.js 繝ゥ繧、繝悶Λ繝ェ +], +function($, global, Widget, Collapsible, readOnly) { "use strict"; + /** + * 繝繝ェ繝シ繝ェ繧ケ繝 + * ============================================ + * 繝繝ェ繝シ繝ェ繧ケ繝医ッ縲∬ォ也炊逧髫主ア、讒矩繧偵b縺、隕∫エ縺ョ繝ェ繧ケ繝医r髫主ア、蛹悶@縺ヲ陦ィ遉コ縺吶k讖溯ス繧偵b縺、縲 + * + * 譛ャ讖溯ス縺ッ縲√ユ繝シ繝悶Ν繧繝励Ν繝繧ヲ繝ウ繝ェ繧ケ繝医r蜷ォ繧縲∽ササ諢上ョ隕∫エ繝ェ繧ケ繝医r髫主ア、蛹悶@縺ヲ陦ィ遉コ縺吶k縺薙→縺後〒縺阪k縲 + * 蜷髫主ア、縺ッ繧「繧、繧ウ繝ウ繧偵け繝ェ繝繧ッ縺吶k縺薙→縺ァ髢矩哩縺吶k縺薙→縺後〒縺阪k縲 + * 縺セ縺溘髫主ア、縺ョ迥カ諷九ッ繧オ繝悶Α繝繝域凾縺ォ騾∽ソ。縺輔l繧九 + * 縺薙ョ縺溘a縲√え繧」繝ウ繝峨え繧ケ繧ウ繝シ繝励→菴オ逕ィ縺吶l縺ー縲∫判髱「驕キ遘サ髢薙〒髫主ア、縺ョ迥カ諷九r邯ュ謖√☆繧九%縺ィ縺後〒縺阪k縲 + * + * **髫主ア、讒矩縺ョ螳夂セゥ** + * 繝繝ェ繝シ繝ェ繧ケ繝亥縺ョ蜷隕∫エ縺ッid螻樊ァ蛟、縺ョ蛟、縺ォ蠕薙▲縺ヲ髫主ア、蛹悶&繧後k縲 + * 繝ヲ繝シ繧カID繧蝠蜩√さ繝シ繝峨ョ菴鍋ウサ縺ォ隲也炊逧縺ェ髫主ア、讒矩縺悟ュ伜惠縺励※縺繧句エ蜷医ッ縲√◎縺ョ蛟、繧段d螻樊ァ縺ォ蜃コ蜉帙☆繧 + * 縺薙→縺ォ繧医j縲髫主ア、陦ィ遉コ縺悟庄閭ス縺ィ縺ェ繧九 + * + * 縺セ縺溘√さ繝シ繝峨′豁」隕丞喧縺輔l縺ヲ縺縺ヲ縲∬ヲェ繧ウ繝シ繝峨→譏守エー繧ウ繝シ繝峨↓蛻髮「縺励※縺繧句エ蜷医ッ縲√◎繧後i繧帝」邨舌@縺溷、繧 + * id螻樊ァ縺ォ蜃コ蜉帙☆繧後ー繧医>縲 + * + * 髫主ア、讒矩縺ョ螳夂セゥ縺ッ縲∵枚蟄玲焚縺ォ繧医k蛻蜑イ縲∝玄蛻繧頑枚蟄励↓繧医k蛻蜑イ縺ョ縺縺壹l縺九ョ譁ケ豕輔〒陦後≧縲 + * + * **髫主ア、謫堺ス** + * 隕ェ鬆逶ョ縺ョ蜈磯ュ驛ィ蛻縺ォ髢矩哩蜃ヲ逅繧定。後≧繧「繧、繧ウ繝ウ縺瑚ソス蜉縺輔l繧九 + * 縺薙l繧偵け繝ェ繝繧ッ縺吶k縺薙→縺ァ縲∝ュ宣嚴螻、縺ョ陦ィ遉コ繝サ髱櫁。ィ遉コ繧貞繧頑崛縺医k縺薙→縺後〒縺阪k縲 + * 縺セ縺溘∝推隕∫エ荳翫ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ繝サ繝ゥ繧ク繧ェ繝懊ち繝ウ縺ョ蜀螳ケ繧剃ク諡ャ謫堺ス懊☆繧九さ繝ウ繝医Ο繝シ繝ォ(繝ェ繝ウ繧ッor繝懊ち繝ウ)繧 + * 霑ス蜉縺吶k縺薙→縺悟庄閭ス縺ァ縺ゅk縲 + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------ + * + * **髫主ア、讒矩縺ョ螳夂セゥ** + * 繝ェ繧ケ繝医→縺ェ繧玖ヲ∫エ縺ォ繝槭シ繧ォCSS繧ッ繝ゥ繧ケ `nablarch_TreeList` 繧呈欠螳壹☆繧九 + * 縺セ縺溘√Μ繧ケ繝井ク翫ョ蜷隕∫エ縺ォ `nablarch_ListItem` 繧呈欠螳壹☆繧九 + * + * 莉・荳九ッ縲√ユ繝シ繝悶Ν蜀縺ョ蜷陦後rid螻樊ァ蛟、縺ァ繧ス繝シ繝医@縲髫主ア、陦ィ遉コ縺吶k萓九〒縺ゅk縲 + * + * + * ... + *
+ * + * 縺薙ョ繧ヲ繧」繧ク繧ァ繝繝医↓謖螳壹☆繧九が繝励す繝ァ繝ウ縺ッ莉・荳九ョ5縺、縺ァ縺ゅk縲 + * + * **-name (螻樊ァ蛟、):** + * 蜷髫主ア、縺ョ髢矩哩迥カ諷九r菫晄戟縺吶k繝輔か繝シ繝隕∫エ縺ョname螻樊ァ蛟、縲 + * 蝓コ譛ャ逧縺ォ莉サ諢上ョ譁蟄怜励〒讒九o縺ェ縺縺 + * 髢矩哩迥カ諷九r逕サ髱「驕キ遘サ髢薙〒菫晄戟縺吶k縺ォ縺ッ驕ゥ蛻縺ェ繧ヲ繧」繝ウ繝峨え繧ケ繧ウ繝シ繝励励Ξ繝輔ぅ繝繧ッ繧ケ縺九i + * 髢句ァ九&縺帙k蠢隕√′縺ゅk縲 + * + * **-hierarchy (髫主ア、螳夂セゥ蠑):** + * 蜷隕∫エ縺ョ髫主ア、讒矩繧貞ョ夂セゥ縺吶k譁ケ豕輔 + * 莉・荳九ョ3縺、縺ョ譖ク蠑上ョ縺縺。縲√>縺壹l縺九ョ譁ケ豕輔〒謖螳壹☆繧九 + * + * 1. chars:(謨ー蛟、)|(謨ー蛟、)|...|(謨ー蛟、) + * 蜷隕∫エ縺ョid螻樊ァ蛟、繧貞磯ュ縺九i縺ョ譁蟄玲焚縺ァ蛻蜑イ縺鈴嚴螻、繧呈アコ螳壹☆繧区婿豕輔 + * + * 2. separator:(蛹コ蛻繧頑枚蟄怜) + * 蜷隕∫エ縺ョid螻樊ァ蛟、繧貞玄蛻繧頑枚蟄怜励〒蛻蜑イ縺鈴嚴螻、繧呈アコ螳壹☆繧区婿豕輔 + * + * **-depth (謨エ謨ー蛟、):** + * 髫主ア、縺ョ豺ア縺輔r謖螳壹☆繧九 + * + * **-items (繧サ繝ャ繧ッ繧ソ蠑):** + * 繝繝ェ繝シ陦ィ遉コ縺ョ蟇セ雎。隕∫エ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ蠑 + * 萓九∴縺ー縲"#table1 tr:has(td)" 縺ョ繧医≧縺ォ謖螳壹@縺溷エ蜷医ッ縲√ユ繝シ繝悶Ν蜀縺ョ蜷Я`繧ソ繧ー縺 + * 蟇セ雎。縺ィ縺ェ繧九 (`has(td)` 縺ィ縺励※縺繧九ョ縺ッ縲√倥ャ繝繝シ陦(th)繧帝勁螟悶☆繧九◆繧√) + * + * **-navigation (繧サ繝ャ繧ッ繧ソ蠑):** + * 蜷隕∫エ蜀縺ァ繝繝ェ繝シ縺ョ髢矩哩繧定。後≧繧「繧、繧ウ繝ウ繧呈諺蜈・縺吶k隕∫エ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ蠑上 + * 萓九∴縺ー縲〜td:first` 縺ィ縺励◆蝣エ蜷医ッ蜷Я`隕∫エ縺ョ蜈磯ュ蛻励↓髢矩哩逕ィ縺ョ繧「繧、繧ウ繝ウ繧呈諺蜈・縺吶k縲 + * + * **髫主ア、縺ョ謫堺ス** + * 髫主ア、繧呈桃菴懊☆繧九◆繧√ョ隕∫エ(input:checkbox繧ソ繧ー)縺ォ莉・荳九ョ繝槭シ繧ォCSS繧ッ繝ゥ繧ケ繧呈欠螳壹☆繧九 + * + * `toggleAll` + * 繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺セ縺溘ッ繝ゥ繧ク繧ェ繝懊ち繝ウ縺ョ蜈ィ驕ク謚/蜈ィ隗」髯、繧定。後≧莠九r陦ィ縺吶け繝ゥ繧ケ縲 + * + * 髫主ア、蜷 + * + * + * + * + * 縺薙%縺ァ謖螳壹☆繧九が繝励す繝ァ繝ウ縺ッ莉・荳九ョ2縺、縺ァ縺ゅk縲 + * + * **-name (螻樊ァ蛟、):** + * 謫堺ス懷ッセ雎。縺ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺セ縺溘ッ繝ゥ繧ク繧ェ繝懊ち繝ウ縺ョname螻樊ァ蛟、縲 + * + * **-value:** + * 謫堺ス懷ッセ雎。縺ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺セ縺溘ッ繝ゥ繧ク繧ェ繝懊ち繝ウ縺ョvalue蛟、(蜈磯ュ荳閾エ)縲 + * 縺薙%縺ァ險ュ螳壹@縺溷、縺ァ髢句ァ九&繧後kvalue螻樊ァ繧呈戟縺、繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺セ縺溘ッ繝ゥ繧ク繧ェ繝懊ち繝ウ縺梧桃菴懷ッセ雎。縺ィ縺ェ繧九 + * + * @class nablarch.ui.TreeList + * + * @author Iwauo Tajima + * @since 1.2 + */ + TreeList.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * + * 隨ャ2蠑墓焚縺ォ貂。縺吶が繝励す繝ァ繝ウ繧ェ繝悶ず繧ァ繧ッ繝医ョ蜀螳ケ縺ッ莉・荳九ョ縺ィ縺翫j縲 + * + * - name: 蜷髫主ア、縺ョ髢矩哩迥カ諷九r菫晄戟縺吶k繝輔か繝シ繝隕∫エ縺ョname螻樊ァ蛟、 + * - hierarchy: 蜷隕∫エ縺ョ髫主ア、讒矩繧貞ョ夂セゥ縺吶k譁ケ豕輔r陦ィ縺呎枚蟄怜 + * - depth: 髫主ア、縺ョ豺ア縺 + * - items: 繝繝ェ繝シ陦ィ遉コ縺ョ蟇セ雎。隕∫エ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ蠑 + * - navigation: 蜷隕∫エ蜀縺ァ繝繝ェ繝シ縺ョ髢矩哩繧定。後≧繧「繧、繧ウ繝ウ繧呈諺蜈・縺吶k隕∫エ繧呈欠螳壹☆繧九そ繝ャ繧ッ繧ソ蠑上 + * + * @method TreeList + * @constructor + * + * @param {Element} element 繝槭シ繧ォCSS繧呈欠螳壹@縺櫂OM繝弱シ繝 + * @param {Object} opts 蜷遞ョ繧ェ繝励す繝ァ繝ウ繧剃ソ晄戟縺吶k繧ェ繝悶ず繧ァ繧ッ繝 + * @return {TreeList} 繧、繝ウ繧ケ繧ソ繝ウ繧ケ + */ + constructor : TreeList + /** + * 繝繝ェ繝シ縺ョ髢矩哩迥カ諷九ョ菫晄戟縺ォ菴ソ逕ィ縺吶k繝輔か繝シ繝隕∫エ縺ョname螻樊ァ蛟、 + * @property name + * @type {String} + */ + , name: null + /** + * 髫主ア、螳夂セゥ髢「謨ー + * @property hierarchy + * @type {Function} + */ + , hierarchy: null + /** + * 髫主ア、縺ョ豺ア縺 + * @property depth + * @type {Number} + */ + , depth: null + /** + * 繝繝ェ繝シ陦ィ遉コ縺ョ蟇セ雎。隕∫エ繧呈シ邏阪@縺殍Query邨先棡繧サ繝繝 + * @property $items + * @type {jQuery} + */ + , $items: null + /** + * 繝輔か繝シ繝隕∫エ縺ォ菫晄戟縺励◆髢矩哩迥カ諷九r陦ィ遉コ縺ォ蜿肴丐縺輔○繧九 + * + * @method render + * @chainable + */ + , render: TreeList_render + /** + * 蟄宣嚴螻、縺ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ繧偵∪縺ィ繧√※蛻繧頑崛縺医k縲 + * + * @method toggleAll + * @param {jQuery.Event} event 繧、繝吶Φ繝医が繝悶ず繧ァ繧ッ繝 + * @chainable + */ + , toggleAll: TreeList_toggleAll + }); + + /** + * 繧、繝吶Φ繝亥ョ夂セゥ + * @property event + * @static + * @readOnly + * @type Object + * @for nablarch.ui.TreeList + */ + TreeList.event = { + "$toggleCheckBox click": "toggleAll" + }; + + /** + * 繧ヲ繧」繧ク繧ァ繝繝医ョ隴伜挨蜷 + * @property widgetType + * @static + * @readOnly + * @type String + * @for nablarch.ui.TreeList + */ + TreeList.widgetType = "nablarch_TreeList"; + + /** 蜷隕∫エ縺ョ髫主ア、蛟、縺ョ譬シ邏阪く繝シ */ + TreeList.dataKey = "data-hierarchy"; + + Widget.register(TreeList); + + /** 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ */ + function TreeList(element, opts) { + this.name = opts.name; + this.hierarchy = parseHierarchy(opts.hierarchy); + this.depth = opts.depth; + this.navigation = opts.navigation; + this.$items = $(element).find(opts.items); + this.$container = this.$items.first().parent(); + + this.constructor = TreeList; + Widget.call(this, element); + + this.$toggleCheckBox = $(element).find("input:checkbox").hasClass(".toggleAll.-name.-value"); + + this.render(); + } + + /** + * 蟄宣嚴螻、縺ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺翫h縺ウ繝ゥ繧ク繧ェ繝懊ち繝ウ繧偵∪縺ィ繧√※ON/OFF縺吶k縲 + * @param {jQuery.Event} event 繧、繝吶Φ繝医が繝悶ず繧ァ繧ッ繝 + */ + function TreeList_toggleAll(event) { + var $target = $(event.target) + , opts = $target.widgetOption() + , name = opts.name + , value = opts.value || "" + , hierarchy = this.hierarchy + , check = $target.prop('checked') + , $checkboxes + , currentValue; + + if (!name) { + return this; + } + value = hierarchy(value).join("_"); + $checkboxes = this.$items.find("input") + .filter("[name='" + name + "']") + .filter(":checkbox, :radio") + .filter(":not(." + readOnly.markerCss + ")") + .filter(function() { + currentValue = hierarchy($(this).val()).join("_"); + if (currentValue.length < value.length) { + return false; + } else if (currentValue.length == value.length) { + return currentValue === value; + } else { + return currentValue.indexOf(value) == 0 && currentValue[value.length] === '_'; + } + }); + check = (check === true) ? true + : (check === false) ? false + : ($checkboxes.filter(":not(:checked)").length > 0); + $checkboxes.prop("checked", check); + return true; + } + + function TreeList_render() { + var self = this + , tree = new TreeNode() + , nodeList = []; + + this.$items.detach().each(function() { + var currentNode = tree + , $item = $(this) + , hierarchy = self.hierarchy(this.id) + , maxDepth = self.depth + , key + , depth + , len; + + $item.attr(TreeList.dataKey, hierarchy.join("_")); + for (depth = 0, len = hierarchy.length; depth < len; depth++) { + key = hierarchy[depth]; + if (depth === len-1) { + $item.addClass("depth_" + (depth + 1)); + if (depth !== maxDepth-1) { + $item.addClass("folder"); + } + currentNode.add(key, this); + } + else { + currentNode.add(key); + } + currentNode = currentNode.children[key]; + } + nodeList.push([hierarchy.join("_"), $item]); + }); + nodeList.sort(); + + // 譛荳句ア、縺ョ閭梧勹濶イ繧剃コ、莠偵↓濶イ莉倥¢縺吶k縲 + this.$items.filter(".depth_" + (this.depth) + ":even").addClass("even_row"); + this.$items.filter(".folder").each(function() { + var $item = $(this) + , hierarchy = $item.attr(TreeList.dataKey); + + $item.find(self.navigation) + .widget(Collapsible, { + name : self.name + , value : hierarchy + , content: findChildren() + }); + + function findChildren() { + var item, i, len, results = [], inRange = false; + for (i = 0, len = nodeList.length; i < len; i++) { + item = nodeList[i]; + + if (item[0].indexOf(hierarchy) == 0) { + inRange = true; + if (item[0].length != hierarchy.length) { + results.push(item[1]); + } + } else { + if (inRange) break; + } + } + return results; + } + }); + + var root = document.createDocumentFragment(); + tree.walk(function(node, k) { + var item = node.value; + if (item) { + root.appendChild(node.value); + } + }); + //this.$node.append(root); + this.$container.append(root); + } + + /** + * -hierarchy 繧ェ繝励す繝ァ繝ウ縺ョ蜀螳ケ繧偵ヱ繝シ繧ケ縺吶k縲 + */ + function parseHierarchy(definition) { + var m = /^(chars|separator|function)\s*\:\s*(.*)/.exec(definition) + , type = m && m[1] + , expr = m && m[2]; + + return (type === "chars") ? charsHierarchy(expr) + : (type === "separator") ? separatedHierarchy(expr) + : (type === "function") ? customHierarchy(expr) + : null; + } + + function separatedHierarchy(separator) { + return function(id) { + return id.split(separator).compact(); + }; + } + + function customHierarchy(funcname) { + var func = funcname && global[funcname]; + if (!Object.isFunction(func)) { + throw new Error("undefined global function: " + funcname); + } + return func; + } + + /** + * -hierarchy 繧ェ繝励す繝ァ繝ウ縺 + * 縲chars:(謨ー蛟、)|(謨ー蛟、)|... + * 蠖「蠑上〒謖螳壹&繧後◆蝣エ蜷医↓縲√◎縺ョ蜀螳ケ繧偵ヱ繝シ繧ケ縺吶k縲 + */ + function charsHierarchy(expr) { + var hierarchy = expr.split("|").map(function(d){ return Number(d); }); + return function(id) { + var head = 0; + return hierarchy.map(function(chars) { + var segment = id.substr(head, chars); + head = head + chars; + return segment.length ? segment : null; + }).compact(); + }; + } + + /** + * 髫主ア、蝙九ョ繝繝シ繧ソ讒矩繧剃ソ晄戟縺吶k縺溘a縺ョ繝倥Ν繝代シ繧ッ繝ゥ繧ケ縲 + */ + TreeNode.prototype = { + // properties + children : null // 縺薙ョ繝弱シ繝峨ョ蟄舌ヮ繝シ繝 + , value : null // 縺薙ョ繝弱シ繝峨ョ蛟、 + // methods + /** + * 縺薙ョ繝弱シ繝峨↓謖螳壹&繧後◆蜷榊燕縺ョ蟄舌ヮ繝シ繝峨r霑ス蜉縺励√◎縺ョ繝弱シ繝峨↓蛟、繧定ィュ螳壹☆繧九 + * 譌「縺ォ蜷後§蜷榊燕縺ョ繝弱シ繝峨′霑ス蜉縺輔l縺ヲ縺縺溷エ蜷医ッ蛟、縺ョ縺ソ繧剃ク頑嶌縺上 + * 蛟、繧堤怐逡・縺励◆蝣エ蜷医ッ繝弱シ繝峨ョ霑ス蜉縺ョ縺ソ陦後≧縲 + * + * @param {String} k 霑ス蜉縺吶k蟄舌ヮ繝シ繝峨ョ蜷榊燕 + * @param {Object} v 霑ス蜉縺吶k蟄舌ヮ繝シ繝峨↓險ュ螳壹☆繧句、 + */ + , add: function(k, /*optional*/ v) { + if (!Object.has(this.children, k)) { + this.children[k] = new TreeNode(); + } + if (arguments.length >= 2) { + this.children[k].value = v; + } + } + /** + * 縺薙ョ繝弱シ繝峨♀繧医ウ驟堺ク九ョ蜈ィ繝弱シ繝峨↓蟇セ縺励※縲∵欠螳壹&繧後◆蜃ヲ逅繧帝谺。螳溯。後☆繧九 + * @param {Function(TreeNode)} 蜷繝弱シ繝峨↓蟇セ縺励※螳溯。後☆繧句ヲ逅縲 + */ + , walk: function(action) { + action.call(this, this, ""); + Object.keys(this.children, function(k, child) { + action.call(child, child, k); + child.walk(action); + }); + } + }; + + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * @returns {TreeNode} + */ + function TreeNode() { + this.children = {}; + this.value = null; + } + + return TreeList; +}); + diff --git "a/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/index.jsp" "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/index.jsp" new file mode 100644 index 0000000..7b91340 --- /dev/null +++ "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/index.jsp" @@ -0,0 +1,22 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
  • +
  • +
  • +
+
+
+
diff --git "a/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210.jsp" "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210.jsp" new file mode 100644 index 0000000..71c9ea6 --- /dev/null +++ "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210.jsp" @@ -0,0 +1,676 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + div.border-blue table, div.border-blue tr, div.border-blue td, div.border-blue th { + border: 1px solid blue; + } + + + + + + + + + 蠢鬆亥ア樊ァ縺ョ縺ソ繧呈欠螳壹@縺溷エ蜷医√ョ繝シ繧ソ縺後ヤ繝ェ繝シ陦ィ遉コ縺輔l繧九%縺ィ + + + + + + + + + + + + + + + 繧ッ繝ゥ繧、繧「繝ウ繝医し繧、繝峨〒縺ッ蛻ゥ逕ィ縺輔l縺ェ縺螻樊ァ繧ょ性繧√◆縲∝ィ螻樊ァ繧呈欠螳壹@縺溷エ蜷医↓繝繝シ繧ソ縺後ヤ繝ェ繝シ陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + + + + + + + + + + + + 謇馴嵯遒コ隱 + + + + + + + + + + + + + + + + + + + + + + + + hierarchy謖螳 + + + + + + + + + + + + + + + resultSetCss螻樊ァ繧呈欠螳壹@縺ェ縺蝣エ蜷医√ユ繝シ繝悶Ν縺ョ隕ェ縺ィ縺ェ繧掬iv繧ソ繧ー縺ョclass螻樊ァ縺ォ繝繝シ繝悶Ν陦ィ遉コ逕ィ縺翫h縺ウ繝繝ェ繝シ繝ェ繧ケ繝郁。ィ遉コ逕ィ縺ョ螻樊ァ縺ョ縺ソ蜃コ蜉帙&繧後※縺繧九%縺ィ縲 + + + + + + + + + resultSetCss螻樊ァ縺ォ繝悶Λ繝ウ繧ッ繧呈欠螳壹@縺溷エ蜷医√ユ繝シ繝悶Ν縺ョ隕ェ縺ィ縺ェ繧掬iv繧ソ繧ー縺ョclass螻樊ァ縺ォ繝繝シ繝悶Ν陦ィ遉コ逕ィ縺翫h縺ウ繝繝ェ繝シ繝ェ繧ケ繝郁。ィ遉コ逕ィ縺ョ螻樊ァ縺ョ縺ソ蜃コ蜉帙&繧後※縺繧九%縺ィ縲 + + + + + + + + + resultSetCss螻樊ァ繧呈欠螳壹@縺溷エ蜷医√◎縺ョ繧ケ繧ソ繧、繝ォ縺碁←逕ィ縺輔l繧九%縺ィ + + + + + + + + + [column:label] tree_toggler縺梧悴謖螳壹ョ繧ォ繝ゥ繝縺ォ縺ッ縲∵釜繧顔糞縺ソ逕ィ縺ョ繧「繧、繧ウ繝ウ縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→縲 + + + [column:label] tree_toggler縺荊rue縺ョ繧ォ繝ゥ繝縺ォ縺ッ縲∵釜繧顔糞縺ソ逕ィ縺ョ繧「繧、繧ウ繝ウ縺瑚。ィ遉コ縺輔l繧九%縺ィ縲
+ シtree_toggler縺梧欠螳壹&繧後◆蛻励′荳縺、縺ッ蟄伜惠縺吶k蠢隕√′縺ゅk縺溘a縲√∪縺ィ繧√※螳滓命縺吶k縲ゑシ +
+ + + + + + + + [column:label] tree_toggler縺後ヶ繝ゥ繝ウ繧ッ縺ョ繧ォ繝ゥ繝縺ォ縺ッ縲∵釜繧顔糞縺ソ逕ィ縺ョ繧「繧、繧ウ繝ウ縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→縲 + + + + + + + + + [column:label] tree_toggler縺掲alse縺ョ繧ォ繝ゥ繝縺ォ縺ッ縲∵釜繧顔糞縺ソ逕ィ縺ョ繧「繧、繧ウ繝ウ縺瑚。ィ遉コ縺輔l縺ェ縺縺薙→縲 + + + + + + + + + + [column:label] tree_indent縺梧悴謖螳壹ョ繧ォ繝ゥ繝縺ァ縺ッ縲鬆逶ョ縺後う繝ウ繝繝ウ繝医&繧後※陦ィ遉コ縺輔l縺ェ縺縺薙→縲 + + + + + + + + + [column:label] tree_indent縺後ヶ繝ゥ繝ウ繧ッ縺ョ繧ォ繝ゥ繝縺ァ縺ッ縲鬆逶ョ縺後う繝ウ繝繝ウ繝医&繧後※陦ィ遉コ縺輔l縺ェ縺縺薙→縲 + + + + + + + + + [column:label] tree_indent縺掲alse縺ョ繧ォ繝ゥ繝縺ァ縺ッ縲鬆逶ョ縺後う繝ウ繝繝ウ繝医&繧後※陦ィ遉コ縺輔l縺ェ縺縺薙→縲 + + + + + + + + + tree_indent縺荊rue縺ョ繧ォ繝ゥ繝縺ァ縺ッ縲鬆逶ョ縺後う繝ウ繝繝ウ繝医&繧後※陦ィ遉コ縺輔l繧九%縺ィ縲 + + + + + + + +
+ + + + + + + + + +
+ + + + + + + + + + +
+
+
diff --git "a/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210_\346\200\247\350\203\275.jsp" "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210_\346\200\247\350\203\275.jsp" new file mode 100644 index 0000000..3751b73 --- /dev/null +++ "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210_\346\200\247\350\203\275.jsp" @@ -0,0 +1,188 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="tab" tagdir="/WEB-INF/tags/widget/tab" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Map" %> +<%@ page import="nablarch.core.db.support.ListSearchInfo" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + div.border-blue table, div.border-blue tr, div.border-blue td, div.border-blue th { + border: 1px solid blue; + } + + + $('table').each(function() {'use strict'; + var $table = $(this) + , count = $table.find('tr').size() - 1 // head tr is ignore + , $head = $table.find('th').first(); + $head.text($head.text() + [" count = [", count, "]"].join("")); + }); + + + + + + 莉カ謨ー蠅逡後〒縺ョ蛻蟯 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210_\347\242\272\350\252\215.jsp" "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210_\347\242\272\350\252\215.jsp" new file mode 100644 index 0000000..3d52eea --- /dev/null +++ "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210_\347\242\272\350\252\215.jsp" @@ -0,0 +1,6 @@ + + +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git "a/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" new file mode 100644 index 0000000..1885cab --- /dev/null +++ "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.js" @@ -0,0 +1,169 @@ + + runTest( + 蛻晄悄陦ィ遉コ譎ゅ↓隲也炊逧縺ェ髫主ア、讒矩縺ォ蠕薙▲縺ヲ閾ェ蜍慕噪縺ォ荳ヲ縺ウ縺九∴繧峨l繧九%縺ィ + , 蜑咲判髱「縺九i騾∽ソ。縺輔l縺滄幕髢臥憾諷九′蛻晄悄陦ィ遉コ縺ォ蜿肴丐縺輔l繧九%縺ィ + , 繧「繧、繧ウ繝ウ驛ィ繧偵け繝ェ繝繧ッ縺吶k縺薙→縺ァ繧オ繝夜嚴螻、繧帝幕髢峨〒縺阪k縺薙→ + , 繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ繝ゥ繧ク繧ェ繝懊ち繝ウ縺ョ荳諡ャ螟画峩縺悟庄閭ス縺ェ縺薙→ + , 繧オ繝悶Α繝繝域凾縺ォ髢矩哩迥カ諷九′騾∽ソ。縺輔l繧九%縺ィ + , 蛹コ蛻繧頑枚蟄励↓繧医k髫主ア、讒矩螳夂セゥ縺悟庄閭ス縺ェ縺薙→ + ); + + var $dateField, $radiobuttons + , $treeTable, $treeTable2, $treeTable3 + , $subsection; + + function setup() { + $treeTable = $(".nablarch_TreeList table").first(); + $treeTable2 = $(".nablarch_TreeList table").eq(1); + $treeTable3 = $(".nablarch_TreeList table").eq(2); + $subsection = $("h2.nablarch_Collapsible"); + } + + function 蛻晄悄陦ィ遉コ譎ゅ↓隲也炊逧縺ェ髫主ア、讒矩縺ォ蠕薙▲縺ヲ閾ェ蜍慕噪縺ォ荳ヲ縺ウ縺九∴繧峨l繧九%縺ィ() { + setup(); + equal($treeTable.find("tr:has(td)").map(function(){ return this.id; }).get().join(","), + [ "RW11AA" + , "RW11AA0101" + , "RW11AA0102" + , "RW11AB" + , "RW11AB0101" + , "RW11AC" + , "RW11AC01" + , "RW11AC0101" + , "RW11AC0102" + , "RW11AC0103" + , "RW11AC0104" + , "RW11AC02" + , "RW11AC0201" + , "RW11AC0202" + , "RW11AC0203" + , "RW11AC0205" + , "RW11AC0204" + , "RW11AC03" + , "RW11AC0301" + , "RW11AC0302" + , "RW11AC0303" + , "RW11AC0304" + ].join(","), "ID縺ョ髫主ア、螳夂セゥ鬆縺ォ荳ヲ縺ウ譖ソ縺医i繧後k縺薙→"); + } + + function 蜑咲判髱「縺九i騾∽ソ。縺輔l縺滄幕髢臥憾諷九′蛻晄悄陦ィ遉コ縺ォ蜿肴丐縺輔l繧九%縺ィ() { + setup(); + var $openStatus = $(":input[name='formdata.blockOpenStatus']"); + equal($openStatus.val(), "RW11AB", "蜑咲判髱「縺ァRW11AB縺碁哩縺倥◆迥カ諷"); + ok($("tr#RW11AB td:first").is(".-closed"), "蠖楢ゥイ縺ョ隕∫エ縺ョ繧「繧、繧ウ繝ウ驛ィ縺ォclosed繧ッ繝ゥ繧ケ縺御サ伜刈縺輔l繧"); + ok($rows("RW11AB0").length > 0 && $rows("RW11AB0").not(":hidden").length === 0, + "RW11AB驟堺ク九ョ隕∫エ縺碁撼陦ィ遉コ縺ォ縺ェ繧"); + ok($rows("RW11AA0").length > 0 && $rows("RW11AA0").add($rows("RW11AC")).filter(":hidden").length === 0, + "縺昴ョ莉悶ョ隕∫エ縺ッ陦ィ遉コ縺輔l繧"); + } + + function 繧「繧、繧ウ繝ウ驛ィ繧偵け繝ェ繝繧ッ縺吶k縺薙→縺ァ繧オ繝夜嚴螻、繧帝幕髢峨〒縺阪k縺薙→() { + setup(); + var $button_RW11AC = $("tr#RW11AC td:first"); + ok($button_RW11AC.not(".-closed"), "繧「繧、繧ウ繝ウ縺ッ髢九>縺溽憾諷"); + ok($rows("RW11AC0").length > 0 && $rows("RW11AC0").filter(":hidden").length === 0, + "驟堺ク九ョ蛻励b蜈ィ縺ヲ髢九>縺溽憾諷"); + + $button_RW11AC.click(); // 繝懊ち繝ウ繧偵♀縺 + + ok($button_RW11AC.is(".-closed"), "繧ッ繝ェ繝繧ッ縺吶k縺ィ繧「繧、繧ウ繝ウ縺ッ髢峨§縺溽憾諷九↓螟牙喧"); + ok($rows("RW11AC0").length > 0 && $rows("RW11AC0").not(":hidden").length === 0, + "驟堺ク九ョ蛻励b蜈ィ縺ヲ髢峨§繧"); + + $button_RW11AC.click(); // 蜀榊コヲ繝懊ち繝ウ繧偵が繧ケ + ok($button_RW11AC.not(".-closed"), "蜀榊コヲ繧ッ繝ェ繝繧ッ縺吶k縺ィ繧「繧、繧ウ繝ウ縺ッ髢九>縺溽憾諷九↓"); + ok($rows("RW11AC0").length > 0 && $rows("RW11AC0").filter(":hidden").length == 0, + "驟堺ク九ョ蛻励b蜈ィ縺ヲ髢九>縺溽憾諷九↓繧ゅ←繧"); + + var $button_RW11AC02 = $("tr#RW11AC02 td:first"); + $button_RW11AC02.click(); + + ok($button_RW11AC02.is(".-closed"), "繧オ繝夜嚴螻、縺ョ髢矩哩繝懊ち繝ウ繧偵け繝ェ繝繧ッ縺励※髢峨§繧"); + ok($rows("RW11AC020").length > 0 && $rows("RW11AC020").not(":hidden").length === 0, + "繧オ繝夜嚴螻、縺ョ隕∫エ縺碁哩縺倥k"); + ok($rows("RW11AC030").add($rows("RW11AC010")).filter(":hidden").length === 0, + "繧オ繝夜嚴螻、莉悶ョ隕∫エ縺ッ髢九>縺溘∪縺セ"); + + $button_RW11AC.click(); //隕ェ髫主ア、繧帝哩縺倥k + $button_RW11AC.click(); //隕ェ髫主ア、繧帝幕縺 + + ok($rows("RW11AC020").length > 0 && $rows("RW11AC020").not(":hidden").length === 0, + "隕ェ髫主ア、繧帝幕髢峨@縺ヲ繧ゅし繝夜嚴螻、縺ョ髢矩哩迥カ諷九ッ邯ュ謖√&繧後k縲"); + ok($rows("RW11AC030").add($rows("RW11AC010")).filter(":hidden").length === 0, + "隕ェ髫主ア、繧帝幕髢峨@縺ヲ繧ゅし繝夜嚴螻、縺ョ髢矩哩迥カ諷九ッ邯ュ謖√&繧後k縲"); + } + + function 繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ繝ゥ繧ク繧ェ繝懊ち繝ウ縺ョ荳諡ャ螟画峩縺悟庄閭ス縺ェ縺薙→() { + + ok($rows("RW11AC0").length > 0 && $rows("RW11AC0").find(":checkbox:checked").length === 0, + "繝√ぉ繝繧ッ縺ッ蜈ィ縺ヲ縺ッ縺壹l縺ヲ縺繧"); + + $("#RW11AC02 .toggleAll").click(); + + ok($rows("RW11AC020").find(":checkbox").length > 0 && $rows("RW11AC020").find(":checkbox").not(":checked").length === 0, + "RW11AC縺ョ荳諡ャ繝√ぉ繝繧ッ繝懊ち繝ウ繧偵♀縺吶→驟堺ク九ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺悟ィ縺ヲ繝√ぉ繝繧ッ縺輔l繧九"); + + equal($rows("RW11AC010").add($rows("RW11AC030")).find(":checkbox:checked").length, 0, + "RW11AC縺ョ蜈蠑溯ヲ∫エ縺ッ繝√ぉ繝繧ッ縺輔l縺ェ縺縲"); + + $("#RW11AC02 .toggleAll").click(); + + ok($rows("RW11AC020").find(":checkbox").length > 0 && $rows("RW11AC020").find(":checkbox").filter(":checked").length === 0, + "RW11AC縺ョ荳諡ャ繝√ぉ繝繧ッ繝懊ち繝ウ繧偵b縺荳蠎ヲ謚シ縺吶→驟堺ク九ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ョ驕ク謚槭′蜈ィ縺ヲ隗」髯、縺輔l繧九"); + + equal($rows("RW11AC010").add($rows("RW11AC030")).find(":checkbox:checked").length, 0, + "RW11AC縺ョ蜈蠑溯ヲ∫エ縺ッ繝√ぉ繝繧ッ縺輔l縺ェ縺縲"); + + $("#RW11AC .toggleAll").click(); + + ok($rows("RW11AC0").find(":checkbox").length > 0 && $rows("RW11AC0").find(":checkbox").not(":checked").length === 0, + "隕ェ髫主ア、縺ョ荳諡ャ繝√ぉ繝繧ッ繝懊ち繝ウ繧偵♀縺吶→蜈蠑溯ヲ∫エ繧ょ性繧√※蜈ィ縺ヲ繝√ぉ繝繧ッ縺輔l繧九"); + } + + function 繧オ繝悶Α繝繝域凾縺ォ髢矩哩迥カ諷九′騾∽ソ。縺輔l繧九%縺ィ() { + setup(); + $(document).one("beforeSubmit", function(event, submitName, form) { + var $openstatus = $(form).find(":input[name='formdata.blockOpenStatus']"); + equal($openstatus.length, 2, "繧オ繝悶Α繝繝域凾縺ォ髢矩哩迥カ諷九′騾∽ソ。縺輔l繧九%縺ィ"); + equal($openstatus.map(function(){return $(this).val();}).get().join(","), + "RW11AB,RW11AC_02", + "繧オ繝悶Α繝繝域凾縺ォ髢矩哩迥カ諷九′騾∽ソ。縺輔l繧九%縺ィ"); + + form.reset(); + return false; + }); + $("#check").click(); // 縲檎匳骭イ縲阪懊ち繝ウ繧偵け繝ェ繝繧ッ + } + + function 蛹コ蛻繧頑枚蟄励↓繧医k髫主ア、讒矩螳夂セゥ縺悟庄閭ス縺ェ縺薙→() { + setup(); + equal($treeTable2.find("tr:has(td)").map(function(){ return this.id; }).get().join(","), + [ "RW11AA" + , "RW11AA_1_1" + , "RW11AA_1_2" + , "RW11AB" + , "RW11AB_1_1" + , "RW11AC" + , "RW11AC_1" + , "RW11AC_1_1" + , "RW11AC_1_2" + , "RW11AC_1_3" + , "RW11AC_1_4" + , "RW11AC_2" + , "RW11AC_2_1" + , "RW11AC_2_2" + , "RW11AC_2_10" + , "RW11AC_2_20" + , "RW11AC_2_30" + , "RW11AC_3" + , "RW11AC_3_1" + , "RW11AC_3_2" + , "RW11AC_3_3" + , "RW11AC_3_4" + ].join(","), "ID縺ョ髫主ア、螳夂セゥ鬆縺ォ荳ヲ縺ウ譖ソ縺医i繧後k縺薙→"); + } + function $rows(id) { + return $treeTable.find("tr[id^='"+id+"']"); + } + diff --git "a/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" new file mode 100644 index 0000000..9c98a37 --- /dev/null +++ "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\206\343\202\271\343\203\210\343\202\261\343\203\274\343\202\271_\345\210\235\346\234\237\350\241\250\347\244\272.jsp" @@ -0,0 +1,23 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + +<% + ui_test.AppServer.currentRequest().setParam( + "formdata.blockOpenStatus", "RW11AB" + ); +%> + + + diff --git "a/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277_\343\203\206\343\203\274\343\203\226\343\203\253\346\244\234\347\264\242\347\265\220\346\236\234.jsp" "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277_\343\203\206\343\203\274\343\203\226\343\203\253\346\244\234\347\264\242\347\265\220\346\236\234.jsp" new file mode 100644 index 0000000..4943eaa --- /dev/null +++ "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\207\343\203\274\343\202\277_\343\203\206\343\203\274\343\203\226\343\203\253\346\244\234\347\264\242\347\265\220\346\236\234.jsp" @@ -0,0 +1,269 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ page import="java.util.*" %> +<%@ page import="java.util.*, nablarch.core.db.support.*" %> + +<% + request.setAttribute("searchResult", new ArrayList() {{ + add(new HashMap() {{ + put("id", "RW11AA0101"); + put("name", "繝ュ繧ー繧、繝ウ逕サ髱「蛻晄悄陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AA0102"); + put("name", "繝ュ繧ー繧、繝ウ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AB0101"); + put("name", "繝。繝九Η繝シ陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC0101"); + put("name", "繝ヲ繝シ繧カ諠蝣ア荳隕ァ辣ァ莨夂判髱「蛻晄悄陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC0102"); + put("name", "繝ヲ繝シ繧カ讀懃エ「蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC0103"); + put("name", "繝ヲ繝シ繧カ諠蝣ア隧ウ邏ー逕サ髱「陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC0104"); + put("name", "繝ヲ繝シ繧カ荳隕ァCSV繝繧ヲ繝ウ繝ュ繝シ繝牙ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC0201"); + put("name", "繝ヲ繝シ繧カ諠蝣ア逋サ骭イ逕サ髱「蛻晄悄陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC0202"); + put("name", "繝ヲ繝シ繧カ諠蝣ア蜈・蜉帷「コ隱榊ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC0203"); + put("name", "繝ヲ繝シ繧カ諠蝣ア蜈・蜉帷判髱「謌サ繧句ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC0205"); + put("name", "繝ヲ繝シ繧カ諠蝣ア繝。繝繧サ繝シ繧ク騾∽ソ。蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC0204"); + put("name", "繝ヲ繝シ繧カ諠蝣ア逋サ骭イ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC0301"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー逕サ髱「蛻晄悄陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC0302"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー蜈・蜉帷「コ隱榊ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC0303"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー蜈・蜉帷判髱「謌サ繧句ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC0304"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AA"); + put("name", "繝ュ繧ー繧、繝ウ讖溯ス"); + }}); + add(new HashMap() {{ + put("id", "RW11AB"); + put("name", "繝。繝九Η繝シ"); + }}); + add(new HashMap() {{ + put("id", "RW11AC"); + put("name", "繝ヲ繝シ繧カ邂。逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC01"); + put("name", "繝ヲ繝シ繧カ荳隕ァ讀懃エ「"); + }}); + add(new HashMap() {{ + put("id", "RW11AC02"); + put("name", "繝ヲ繝シ繧カ譁ー隕冗匳骭イ"); + }}); + add(new HashMap() {{ + put("id", "RW11AC03"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー"); + }}); + }}); + request.setAttribute("searchResult2", new ArrayList() {{ + add(new HashMap() {{ + put("id", "RW11AA_1_1"); + put("name", "繝ュ繧ー繧、繝ウ逕サ髱「蛻晄悄陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AA_1_2"); + put("name", "繝ュ繧ー繧、繝ウ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AB_1_1"); + put("name", "繝。繝九Η繝シ陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_1_1"); + put("name", "繝ヲ繝シ繧カ諠蝣ア荳隕ァ辣ァ莨夂判髱「蛻晄悄陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_1_2"); + put("name", "繝ヲ繝シ繧カ讀懃エ「蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_1_3"); + put("name", "繝ヲ繝シ繧カ諠蝣ア隧ウ邏ー逕サ髱「陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_1_4"); + put("name", "繝ヲ繝シ繧カ荳隕ァCSV繝繧ヲ繝ウ繝ュ繝シ繝牙ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_2_1"); + put("name", "繝ヲ繝シ繧カ諠蝣ア逋サ骭イ逕サ髱「蛻晄悄陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_2_2"); + put("name", "繝ヲ繝シ繧カ諠蝣ア蜈・蜉帷「コ隱榊ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_2_10"); + put("name", "繝ヲ繝シ繧カ諠蝣ア蜈・蜉帷判髱「謌サ繧句ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_2_20"); + put("name", "繝ヲ繝シ繧カ諠蝣ア繝。繝繧サ繝シ繧ク騾∽ソ。蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_2_30"); + put("name", "繝ヲ繝シ繧カ諠蝣ア逋サ骭イ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_3_1"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー逕サ髱「蛻晄悄陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_3_2"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー蜈・蜉帷「コ隱榊ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_3_3"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー蜈・蜉帷判髱「謌サ繧句ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_3_4"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AA"); + put("name", "繝ュ繧ー繧、繝ウ讖溯ス"); + }}); + add(new HashMap() {{ + put("id", "RW11AB"); + put("name", "繝。繝九Η繝シ"); + }}); + add(new HashMap() {{ + put("id", "RW11AC"); + put("name", "繝ヲ繝シ繧カ邂。逅"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_1"); + put("name", "繝ヲ繝シ繧カ荳隕ァ讀懃エ「"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_2"); + put("name", "繝ヲ繝シ繧カ譁ー隕冗匳骭イ"); + }}); + add(new HashMap() {{ + put("id", "RW11AC_3"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー"); + }}); + }}); + request.setAttribute("searchResult3", new ArrayList() {{ + add(new HashMap() {{ + put("id", "32"); + put("name", "繝ュ繧ー繧、繝ウ逕サ髱「蛻晄悄陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "1001"); + put("name", "繝ュ繧ー繧、繝ウ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "1057"); + put("name", "繝。繝九Η繝シ陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "2003"); + put("name", "繝ヲ繝シ繧カ諠蝣ア荳隕ァ辣ァ莨夂判髱「蛻晄悄陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "2089"); + put("name", "繝ヲ繝シ繧カ讀懃エ「蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "3982"); + put("name", "繝ヲ繝シ繧カ諠蝣ア隧ウ邏ー逕サ髱「陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "4789"); + put("name", "繝ヲ繝シ繧カ荳隕ァCSV繝繧ヲ繝ウ繝ュ繝シ繝牙ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "4998"); + put("name", "繝ヲ繝シ繧カ諠蝣ア逋サ骭イ逕サ髱「蛻晄悄陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "5001"); + put("name", "繝ヲ繝シ繧カ諠蝣ア蜈・蜉帷「コ隱榊ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "5012"); + put("name", "繝ヲ繝シ繧カ諠蝣ア蜈・蜉帷判髱「謌サ繧句ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "5489"); + put("name", "繝ヲ繝シ繧カ諠蝣ア繝。繝繧サ繝シ繧ク騾∽ソ。蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "6031"); + put("name", "繝ヲ繝シ繧カ諠蝣ア逋サ骭イ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "8099"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー逕サ髱「蛻晄悄陦ィ遉コ蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "10022"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー蜈・蜉帷「コ隱榊ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "10090"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー蜈・蜉帷判髱「謌サ繧句ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "10109"); + put("name", "繝ヲ繝シ繧カ諠蝣ア譖エ譁ー蜃ヲ逅"); + }}); + add(new HashMap() {{ + put("id", "0_"); + put("name", "ス5000"); + }}); + add(new HashMap() {{ + put("id", "5001_"); + put("name", "5001ス10000"); + }}); + add(new HashMap() {{ + put("id", "10001_"); + put("name", "10001ス"); + }}); + }}); + + request.setAttribute("searchInfo", new ListSearchInfo() { + {setResultCount(17);} + public String[] getSearchConditionProps() {return new String[0];} + }); +%> diff --git "a/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..38322cc --- /dev/null +++ "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\343\203\206\343\202\271\343\203\210\343\203\232\343\203\274\343\202\270_\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,98 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="table" tagdir="/WEB-INF/tags/widget/table" %> +<%@ taglib prefix="column" tagdir="/WEB-INF/tags/widget/column" %> +<%@ taglib prefix="box" tagdir="/WEB-INF/tags/widget/box" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="listSearchResult" tagdir="/WEB-INF/tags/listSearchResult" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + 髢牙ア縺吶k繝ェ繧ッ繧ィ繧ケ繝医r驕ク謚槭@縺ヲ縺上□縺輔>縲 + + + 莉・荳九ョ讖溯ス繧帝哩螻縺励∪縺吶ゅh繧阪@縺縺ァ縺吶°シ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..1131872 --- /dev/null +++ "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\347\231\273\351\214\262\347\224\273\351\235\242.jsp" @@ -0,0 +1,16 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + diff --git "a/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" new file mode 100644 index 0000000..78153e1 --- /dev/null +++ "b/node_modules/nablarch-widget-table-tree/ui_test/jsp/\343\203\204\343\203\252\343\203\274\343\203\252\343\202\271\343\203\210/\347\242\272\350\252\215\347\224\273\351\235\242.jsp" @@ -0,0 +1,10 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + diff --git a/node_modules/nablarch-widget-toggle-checkbox/package.json b/node_modules/nablarch-widget-toggle-checkbox/package.json new file mode 100644 index 0000000..7c02456 --- /dev/null +++ b/node_modules/nablarch-widget-toggle-checkbox/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-widget-toggle-checkbox" + , "description": "繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ョ驕ク謚樒憾諷九r螟画峩縺吶k繝励Λ繧ー繧、繝ウ" + , "_from" : "nablarch-widget-toggle-checkbox@1.0.0" + , "version": "1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-widget-toggle-checkbox/ui_public/js/nablarch/ui/ToggleCheckbox.js b/node_modules/nablarch-widget-toggle-checkbox/ui_public/js/nablarch/ui/ToggleCheckbox.js new file mode 100644 index 0000000..c61ce59 --- /dev/null +++ b/node_modules/nablarch-widget-toggle-checkbox/ui_public/js/nablarch/ui/ToggleCheckbox.js @@ -0,0 +1,129 @@ +define(['nablarch/ui/Widget', 'jquery', 'sugar'], + function (Widget, $) { + "use strict"; + + /** + * 繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ョ蜈ィ驕ク謚/蜈ィ隗」髯、 + * ================================================== + * 繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ョ蜈ィ驕ク謚槭♀繧医ウ蜈ィ隗」髯、縺ョ讖溯ス繧偵b縺、縲 + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------ + * 蜈ィ驕ク謚橸シ亥ィ隗」髯、シ峨ョ繝ェ繝ウ繧ッ繧繝懊ち繝ウ遲峨r驟咲スョ縺吶kDOM縺ォ蟇セ縺励※縲]ablarch_Toggle_checkbox繧ッ繝ゥ繧ケ繧定ィュ螳壹☆繧九 + * nablarch_Toggle_checkbox縺ォ縺ッ繧ェ繝励す繝ァ繝ウ縺ィ縺励※縲》oggleTarget繧定ィュ螳壹☆繧九 + * toggleTarget繧ェ繝励す繝ァ繝ウ縺ォ縺ッ縲∵桃菴懷ッセ雎。縺ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ繧堤、コ縺吶け繝ゥ繧ケ螻樊ァ繧定ィュ螳壹☆繧九 + * + * 謫堺ス懷ッセ雎。縺ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ォ縺ッ縲》oggleTarget繧ェ繝励す繝ァ繝ウ縺ァ謖螳壹@縺溘け繝ゥ繧ケ縺ィ縲 + * toggle繧ッ繝ゥ繧ケ繧偵そ繝繝医〒險ュ螳壹☆繧九 + * + * **螳溯」萓(HTML)** + * + * <%-- 蜈ィ驕ク謚/蜈ィ隗」髯、縺ョ繝ェ繝ウ繧ッ --%> + * + * + * <%-- 謫堺ス懷ッセ雎。縺ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ --%> + * + * + * + * + * + * @class nablarch.ui.ToggleCheckbox + * + * @author Hisaaki Sioiri + * @since 1.4 + */ + ToggleCheckbox.prototype = Object.merge(new Widget(), { + + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * + * 隨ャ2蠑墓焚縺ォ貂。縺吶が繝励す繝ァ繝ウ繧ェ繝悶ず繧ァ繧ッ繝医ョ蜀螳ケ縺ッ莉・荳九ョ縺ィ縺翫j縲 + * + * -toggleTarget 蜈ィ驕ク謚/蜈ィ隗」髯、繧定。後≧蟇セ雎。縺ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ョclass螻樊ァ縺ョ蛟、 + * + * @method ToggleCheckbox + * @constructor + * + * @param {Element} element 繝槭シ繧ォCSS繧呈欠螳壹@縺櫂OM繝弱シ繝 + * @param {Object} opts 蜷遞ョ繧ェ繝励す繝ァ繝ウ繧剃ソ晄戟縺吶k繧ェ繝悶ず繧ァ繧ッ繝 + * @return {Tooltip} 繧、繝ウ繧ケ繧ソ繝ウ繧ケ + */ + constructor: ToggleCheckbox + + /** + * 蜈ィ驕ク謚/蜈ィ隗」髯、謫堺ス懊r陦後≧繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ + */ + , $checkboxes: null + + /** + * 蜈ィ驕ク謚槭r陦後≧繧、繝吶Φ繝医ヨ繝ェ繧ャ繝シDOM繝弱シ繝 + */ + , $toggleOn: null + + /** + * 蜈ィ驕ク謚槭r陦後≧繧、繝吶Φ繝医ヨ繝ェ繧ャ繝シDOM繝弱シ繝 + */ + , $toggleOff: null + + /** 繝√ぉ繝繧ッ:on */ + , toggleOn: ToggleCheckbox_toggle.fill(true) + + /** 繝√ぉ繝繧ッ:off */ + , toggleOff: ToggleCheckbox_toggle.fill(false) + }); + + + /** + * 繧、繝吶Φ繝亥ョ夂セゥ + */ + ToggleCheckbox.event = { + "$toggleOn click" : "toggleOn" + , "$toggleOff click" : "toggleOff" + }; + + ToggleCheckbox.widgetType = 'nablarch_Toggle_checkbox'; + Widget.register(ToggleCheckbox); + + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー縲 + * + * 隨ャ2蠑墓焚縺ォ貂。縺吶が繝励す繝ァ繝ウ繧ェ繝悶ず繧ァ繧ッ繝医ョ蜀螳ケ縺ッ莉・荳九ョ縺ィ縺翫j縲 + * + * -toggleTarget 蜈ィ驕ク謚/蜈ィ隗」髯、繧定。後≧蟇セ雎。縺ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ョclass螻樊ァ縺ョ蛟、 + * (toggleTarget繧ェ繝励す繝ァ繝ウ縺ォ謖螳壹@縺溷、繧呈桃菴懷ッセ雎。縺ョ繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ョclass螻樊ァ縺ォ縲荊oggle縲阪け繝ゥ繧ケ縺ィ繧サ繝繝医〒謖螳壹☆繧九%縺ィ縺ァ縲√メ繧ァ繝繧ッ繝懊ャ繧ッ繧ケ縺ョ蜈ィ驕ク謚/蜈ィ隗」髯、縺悟庄閭ス縺ィ縺ェ繧) + * + * + * @method ToggleCheckbox + * @constructor + * + * @param {Element} element 繝槭シ繧ォCSS繧呈欠螳壹@縺櫂OM繝弱シ繝 + * @param opts 繧ェ繝励す繝ァ繝ウ繧剃ソ晄戟縺吶k繧ェ繝悶ず繧ァ繧ッ繝 + */ + function ToggleCheckbox(element, opts) { + var target = opts.toggleTarget; + this.constructor = ToggleCheckbox; + this.$checkboxes = $('input:checkbox.toggle.' + target); + this.$toggleOn = $(element).find('.toggle-on'); + this.$toggleOff = $(element).find('.toggle-off'); + + Object.merge(this, opts); + + Widget.call(this, element); + } + + /** + * 繝√ぉ繝繧ッ繝懊ャ繧ッ繧ケ縺ョ驕ク謚樒憾諷九r迥カ諷九r螟画峩縺吶k縲 + * + * @param checked true:繝√ぉ繝繧ッon, false:繝√ぉ繝繧ッoff + * @return {boolean} + */ + function ToggleCheckbox_toggle(checked) { + this.$checkboxes.prop('checked', checked); + return false; + } + return ToggleCheckbox; + } +); + diff --git a/node_modules/nablarch-widget-tooltip/package.json b/node_modules/nablarch-widget-tooltip/package.json new file mode 100644 index 0000000..9803996 --- /dev/null +++ b/node_modules/nablarch-widget-tooltip/package.json @@ -0,0 +1,6 @@ +{ "name": "nablarch-widget-tooltip" + , "description": "繝繝シ繝ォ繝√ャ繝励r陦ィ遉コ縺吶k繝励Λ繧ー繧、繝ウ" + , "version": "1.0.0" + , "_from" : "nablarch-widget-tooltip@1.0.0" + , "dependencies": {} +} diff --git a/node_modules/nablarch-widget-tooltip/ui_public/css/jquery.cluetip.css b/node_modules/nablarch-widget-tooltip/ui_public/css/jquery.cluetip.css new file mode 100644 index 0000000..aecf26e --- /dev/null +++ b/node_modules/nablarch-widget-tooltip/ui_public/css/jquery.cluetip.css @@ -0,0 +1,239 @@ +/* global */ +div.ui-cluetip { + font-size: 1em; +} +.ui-cluetip-header, +.ui-cluetip-content { + padding: 12px; +} +.ui-cluetip-header { + font-size: 1em; + margin: 0; + overflow: hidden; +} + +.cluetip-title .cluetip-close { + float: right; + position: relative; +} +.cluetip-close img { + border: 0; +} + +#cluetip-waitimage { + width: 43px; + height: 11px; + position: absolute; + /*background-image: url(images/wait.gif);*/ +} +.cluetip-arrows { + display: none; + position: absolute; + top: 0; + left: -11px; + width: 11px; + height: 22px; + background-repeat: no-repeat; + background-position: 0 0; + border-width: 0; +} +.cluetip-extra { + display: none; +} + +/*************************************** + =cluetipClass: 'default' +-------------------------------------- */ + +.cluetip-default, +.cluetip-default .cluetip-outer { + background-color: #d9d9c2; +} +.cluetip-default .ui-cluetip-header { + background-color: #87876a; +} + + +/* +.cluetip-default #cluetip-outer { + position: relative; + margin: 0; + background-color: #d9d9c2; +} +.cluetip-default h3#cluetip-title { + margin: 0 0 5px; + padding: 8px 10px 4px; + font-size: 1.1em; + font-weight: normal; + background-color: #87876a; + color: #fff; +} +.cluetip-default #cluetip-title a { + color: #d9d9c2; + font-size: 0.95em; +} +.cluetip-default #cluetip-inner { + padding: 10px; +} +.cluetip-default div#cluetip-close { + text-align: right; + margin: 0 5px 5px; + color: #900; +} +*/ +/* default arrows */ +div.cluetip-default .cluetip-arrows { + border-width: 0; + background: transparent none; +} +div.clue-right-default .cluetip-arrows { + background-image: url(images/darrowleft.gif); +} +div.clue-left-default .cluetip-arrows { + background-image: url(images/darrowright.gif); + left: 100%; + margin-right: -11px; +} +div.clue-top-default .cluetip-arrows { + background-image: url(images/darrowdown.gif); + top: 100%; + left: 50%; + margin-left: -11px; + width: 22px; + height: 11px; +} +div.clue-bottom-default .cluetip-arrows { + background-image: url(images/darrowup.gif); + top: -11px; + left: 50%; + margin-left: -11px; + width: 22px; + height: 11px; +} + +/*************************************** + =cluetipClass: 'jtip' +-------------------------------------- */ +.cluetip-jtip { + background-color: #fff; +} +.cluetip-jtip .cluetip-outer { + border: 2px solid #ccc; + position: relative; + /*background-color: #fff;*/ +} + +.cluetip-jtip .cluetip-inner { + padding: 5px; + display: inline-block; +} +.cluetip-jtip div.cluetip-close { + text-align: right; + margin: 0 5px 0; + color: #900; +} + +.cluetip-jtip .ui-cluetip-header { + background-color: #ccc; + padding: 6px; +/* margin-bottom: 1em;*/ +} + +/* jtip arrows */ +div.cluetip-jtip .cluetip-arrows { + border-width: 0; + background: transparent none; +} +div.clue-right-jtip .cluetip-arrows { + background-image: url(images/arrowleft.gif); +} +div.clue-left-jtip .cluetip-arrows { + background-image: url(images/arrowright.gif); + left: 100%; + margin-right: -11px; +} +div.clue-top-jtip .cluetip-arrows { + background-image: url(images/arrowdown.gif); + top: 100%; + left: 50%; + width: 22px; + height: 11px; + margin-left: -11px; +} +div.clue-bottom-jtip .cluetip-arrows { + background-image: url(images/arrowup.gif); + top: -11px; + left: 50%; + width: 22px; + height: 11px; + margin-left: -11px; +} + +/*************************************** + =cluetipClass: 'rounded' +-------------------------------------- */ +.cluetip-rounded { + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + background-color: #fff; + border: 1px solid #ccc; +} + +.cluetip-rounded .cluetip-outer { + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + background-color: #fff; +} + +.cluetip-rounded .cluetip-arrows { + border-color: #ccc; +} + +/* need to be more specific here to override ThemeRoller defaults */ +div.cluetip-rounded .cluetip-arrows { + font-size: 0; + line-height: 0%; + width: 0; + height: 0; + border-style: solid; + background: transparent none; +} +div.clue-right-rounded .cluetip-arrows { + border-width: 11px 11px 11px 0; + border-top-color: transparent; + border-bottom-color: transparent; + border-left-color: transparent; +} +div.clue-left-rounded .cluetip-arrows { + left: 100%; + margin-right: -11px; + border-width: 11px 0 11px 11px; + border-top-color: transparent; + border-right-color: transparent; + border-bottom-color: transparent; + +} +div.clue-top-rounded .cluetip-arrows { + top: 100%; + left: 50%; + border-width: 11px 11px 0 11px; + border-right-color: transparent; + border-bottom-color: transparent; + border-left-color: transparent; +} +.clue-bottom-rounded .cluetip-arrows { + top: -11px; + left: 50%; + border-width: 0 11px 11px 11px; + border-top-color: transparent; + border-right-color: transparent; + border-left-color: transparent; + +} +/* stupid IE6 HasLayout hack */ +.cluetip-rounded .cluetip-title, +.cluetip-rounded .cluetip-inner { + zoom: 1; +} diff --git a/node_modules/nablarch-widget-tooltip/ui_public/js/jquery.cluetip.js b/node_modules/nablarch-widget-tooltip/ui_public/js/jquery.cluetip.js new file mode 100644 index 0000000..a2ec27b --- /dev/null +++ b/node_modules/nablarch-widget-tooltip/ui_public/js/jquery.cluetip.js @@ -0,0 +1,888 @@ +/*! + * clueTip - v1.2.10 - 2013-07-20 + * http://plugins.learningjquery.com/cluetip/ + * Copyright (c) 2013 Karl Swedberg + * Licensed MIT (http://www.opensource.org/licenses/mit-license.php) + */ + +(function($) { + + $.cluetip = { + version: '1.2.10', + + // the HTML that will be used for the tooltip + template: ['
', + '
', + '

', + '
', + '
', + '
', + '
'].join(''), + + /* clueTip setup + * the setup options are applied each time .cluetip() is called, + * BUT only if
is not already in the document + */ + setup: { + // method to be used for inserting the clueTip into the DOM. + // Permitted values are 'appendTo', 'prependTo', 'insertBefore', and 'insertAfter' + insertionType: 'appendTo', + // element in the DOM the plugin will reference when inserting the clueTip. + insertionElement: 'body' + }, + + /* + * clueTip options + * + * each one can be explicitly overridden by changing its value. + * for example: $.cluetip.defaults.width = 200; + * or: $.fn.cluetip.defaults.width = 200; // for compatibility with previous clueTip versions + * would change the default width for all clueTips to 200. + * + * each one can also be overridden by passing an options map to the cluetip method. + * for example: $('a.example').cluetip({width: 200}); + * would change the default width to 200 for clueTips invoked by a link with class of "example" + * + */ + defaults: { + multiple: false, // Allow a new tooltip to be created for each .cluetip() call + width: 275, // The width of the clueTip + height: 'auto', // The height of the clueTip + cluezIndex: 97, // Sets the z-index style property of the clueTip + positionBy: 'auto', // Sets the type of positioning: 'auto', 'mouse','bottomTop', 'topBottom', fixed' + topOffset: 15, // Number of px to offset clueTip from top of invoking element + leftOffset: 15, // Number of px to offset clueTip from left of invoking element + snapToEdge: false, // For bottomTop and topBottom, snap to the top or bottom of the element. + local: false, // Whether to use content from the same page for the clueTip's body + localPrefix: null, // string to be prepended to the tip attribute if local is true + localIdSuffix: null, // string to be appended to the cluetip content element's id if local is true + hideLocal: true, // If local option is set to true, this determines whether local content + // to be shown in clueTip should be hidden at its original location + attribute: 'rel', // the attribute to be used for fetching the clueTip's body content + titleAttribute: 'title', // the attribute to be used for fetching the clueTip's title + splitTitle: '', // A character used to split the title attribute into the clueTip title and divs + // within the clueTip body. more info below [6] + escapeTitle: false, // whether to html escape the title attribute + showTitle: true, // show title bar of the clueTip, even if title attribute not set + cluetipClass: 'default',// class added to outermost clueTip div in the form of 'cluetip-' + clueTipClass. + hoverClass: '', // class applied to the invoking element onmouseover and removed onmouseout + waitImage: true, // whether to show a "loading" img, which is set in jquery.cluetip.css + cursor: 'help', + arrows: false, // if true, displays arrow on appropriate side of clueTip + dropShadow: true, // set to false if you don't want the drop-shadow effect on the clueTip + dropShadowSteps: 6, // adjusts the size of the drop shadow + sticky: false, // keep visible until manually closed + mouseOutClose: false, // close when clueTip is moused out: false, 'cluetip', 'link', 'both' + delayedClose: 50, // close clueTip on a timed delay + activation: 'hover', // set to 'click' to force user to click to show clueTip + // set to 'focus' to show on focus of a form element and hide on blur + clickThrough: true, // if true, and activation is not 'click', then clicking on link will take user to the link's href, + // even if href and tipAttribute are equal + tracking: false, // if true, clueTip will track mouse movement (experimental) + closePosition: 'top', // location of close text for sticky cluetips; can be 'top', 'bottom', 'title' or 'none' + closeText: 'Close', // text (or HTML) to to be clicked to close sticky clueTips + truncate: 0, // number of characters to truncate clueTip's contents. if 0, no truncation occurs + + // effect and speed for opening clueTips + fx: { + open: 'show', // can be 'show' or 'slideDown' or 'fadeIn' + openSpeed: '' + }, + + // settings for when hoverIntent plugin is used + hoverIntent: { + sensitivity: 3, + interval: 50, + timeout: 0 + }, + + // short-circuit function to run just before clueTip is shown. + onActivate: function(e) {return true;}, + // function to run just after clueTip is shown. + onShow: function(ct, ci){}, + // function to run just after clueTip is hidden. + onHide: function(ct, ci){}, + // whether to cache results of ajax request to avoid unnecessary hits to server + ajaxCache: true, + + // process data retrieved via xhr before it's displayed + ajaxProcess: function(data) { + data = data.replace(/<(script|style|title)[^<]+<\/(script|style|title)>/gm, '').replace(/<(link|meta)[^>]+>/g,''); + return data; + }, + + // can pass in standard $.ajax() parameters. Callback functions, such as beforeSend, + // will be queued first within the default callbacks. + // The only exception is error, which overrides the default + ajaxSettings: { + // error: function(ct, ci) { /* override default error callback */ }, + // beforeSend: function(ct, ci) { /* called first within default beforeSend callback */ }, + dataType: 'html' + }, + debug: false + + } + }; + var $cluetipWait, + standardClasses = 'cluetip ui-widget ui-widget-content ui-cluetip', + caches = {}, + counter = 0, + imgCount = 0; + + var encodeString = function(str) { + return str.replace(/&/g,'&').replace(/>/g,'>').replace(/
').attr('id', 'cluetip-waitimage').css({position: 'absolute'}); + $cluetipWait.insertBefore($cluetip).hide(); + } + + + var cluetipPadding = (parseInt($cluetip.css('paddingLeft'), 10) || 0) + (parseInt($cluetip.css('paddingRight'), 10) || 0); + + + this.each(function(index) { + var jsContent, + link = this, + $link = $(this), + // support metadata plugin (v1.0 and 2.0) + opts = $.extend(true, {}, options, $.metadata ? $link.metadata() : $.meta ? $link.data() : $link.data('cluetip') || {}), + // start out with no contents (for ajax activation) + cluetipContents = false, + isActive = false, + closeOnDelay = null, + tipAttribute = opts[opts.attribute] || + ( opts.attribute == 'href' ? $link.attr(opts.attribute) : $link.attrProp(opts.attribute) || $link.attr(opts.attribute) ), + ctClass = opts.cluetipClass; + + cluezIndex = +opts.cluezIndex; + $link.data('cluetip', {title: link.title, zIndex: cluezIndex, selector: cluetipSelector, cursor: link.style.cursor || ''}); + + if (opts.arrows && !$cluetip.find('.cluetip-arrows').length) { + $cluetip.append('
'); + } + + if (!tipAttribute && !opts.splitTitle && !js) { + return true; + } + // if hideLocal is set to true, on DOM ready hide the local content that will be displayed in the clueTip + if (opts.local && opts.localPrefix) {tipAttribute = opts.localPrefix + tipAttribute;} + if (opts.local && opts.hideLocal && tipAttribute) { $(tipAttribute + ':first').hide(); } + + var tOffset = parseInt(opts.topOffset, 10), lOffset = parseInt(opts.leftOffset, 10); + // vertical measurement variables + var tipHeight, wHeight, + defHeight = isNaN(parseInt(opts.height, 10)) ? 'auto' : (/\D/g).test(opts.height) ? opts.height : opts.height + 'px'; + var sTop, linkTop, linkBottom, posY, tipY, mouseY, baseline; + // horizontal measurement variables + var tipInnerWidth = parseInt(opts.width, 10) || 275, + tipWidth = tipInnerWidth + cluetipPadding + opts.dropShadowSteps, + linkWidth = this.offsetWidth, + linkLeft, posX, tipX, mouseX, winWidth; + + // parse the title + var tipParts; + var tipTitle = (opts.attribute != 'title') ? $link.attr(opts.titleAttribute) || '' : ''; + if (opts.escapeTitle) { + tipTitle = encodeString(tipTitle); + } + if (opts.splitTitle) { + tipParts = tipTitle.split(opts.splitTitle); + tipTitle = opts.showTitle || tipParts[0] === '' ? tipParts.shift() : ''; + } + + + + var localContent; + function returnFalse() { return false; } + + // Keep track of mouse entered state on link + $link.bind('mouseenter mouseleave', function(event) { + var data = $link.data('cluetip'); + data.entered = event.type === 'entered'; + $link.data('cluetip', data); + }); + +/*************************************** +* ACTIVATION +****************************************/ + +//activate clueTip + var activate = function(event) { + var pY, ajaxMergedSettings, cacheKey, + continueOn = opts.onActivate.call(link, event); + + if (continueOn === false) { + return false; + } + + isActive = true; + + // activate function may get called after an initialization of a + // different target so need to re-get the Correct Cluetip object here + $cluetip = $(cluetipSelector).css({position: 'absolute'}); + $cluetipOuter = $cluetip.find(prefix + 'cluetip-outer'); + $cluetipInner = $cluetip.find(prefix + 'cluetip-inner'); + $cluetipTitle = $cluetip.find(prefix + 'cluetip-title'); + $cluetipArrows = $cluetip.find(prefix + 'cluetip-arrows'); + $cluetip.removeClass().css({width: tipInnerWidth}); + if (tipAttribute == $link.attr('href')) { + $link.css('cursor', opts.cursor); + } + if (opts.hoverClass) { + $link.addClass(opts.hoverClass); + } + linkTop = posY = $link.offset().top; + linkBottom = linkTop + $link.innerHeight(); + linkLeft = $link.offset().left; + if ( $(insertionElement).css('position') === 'relative' ) { + linkLeft -= $(insertionElement)[0].getBoundingClientRect().left; + } + + // FIX: (bug 4412) + linkWidth = $link.innerWidth(); + if ( event.type == focus ) { + // in focus event, no mouse position is available; this is needed with bottomTop: + mouseX = linkLeft + ( linkWidth / 2 ) + lOffset; + $cluetip.css({left: posX}); + mouseY = posY + tOffset; + } else { + mouseX = event.pageX; + mouseY = event.pageY; + } + //END OF FIX + + if (link.tagName.toLowerCase() != 'area') { + sTop = $(document).scrollTop(); + winWidth = $(window).width(); + } +// position clueTip horizontally + if (opts.positionBy == 'fixed') { + posX = linkWidth + linkLeft + lOffset; + $cluetip.css({left: posX}); + } else { + posX = (linkWidth > linkLeft && linkLeft > tipWidth) || + linkLeft + linkWidth + tipWidth + lOffset > winWidth ? + linkLeft - tipWidth - lOffset : + linkWidth + linkLeft + lOffset; + if (link.tagName.toLowerCase() == 'area' || opts.positionBy == 'mouse' || linkWidth + tipWidth > winWidth) { // position by mouse + if (mouseX + 20 + tipWidth > winWidth) { + $cluetip.addClass('cluetip-' + ctClass); + posX = (mouseX - tipWidth - lOffset) >= 0 ? mouseX - tipWidth - lOffset - parseInt($cluetip.css('marginLeft'),10) + parseInt($cluetipInner.css('marginRight'),10) : mouseX - (tipWidth/2); + } else { + posX = mouseX + lOffset; + } + } + pY = posX < 0 ? event.pageY + tOffset : event.pageY; + if (posX < 0 || opts.positionBy == 'bottomTop' || opts.positionBy == 'topBottom') { + posX = (mouseX + (tipWidth/2) > winWidth) ? winWidth/2 - tipWidth/2 : Math.max(mouseX - (tipWidth/2),0); + } + } + + $cluetipArrows.css({zIndex: $link.data('cluetip').zIndex+1}); + $cluetip.css({ + left: posX, + zIndex: $link.data('cluetip').zIndex + }); + wHeight = $(window).height(); + +/*************************************** +* load a string from cluetip method's first argument +***************************************/ + if (js) { + if (typeof js == 'function') { + jsContent = js.call(link); + } else { + jsContent = js; + } + $cluetipInner.html(jsContent); + cluetipShow(pY); + } +/*************************************** +* load the title attribute only (or user-selected attribute). +* clueTip title is the string before the first delimiter +* subsequent delimiters place clueTip body text on separate lines +***************************************/ + + else if (tipParts) { + var tpl = tipParts.length; + $cluetipInner.html(tpl ? tipParts[0] : ''); + if (tpl > 1) { + for (var i=1; i < tpl; i++) { + $cluetipInner.append('
' + tipParts[i] + '
'); + } + } + cluetipShow(pY); + } +/*************************************** +* load external file via ajax +***************************************/ + + else if ( !opts.local && tipAttribute.indexOf('#') !== 0 ) { + if (/\.(jpe?g|tiff?|gif|png)(?:\?.*)?$/i.test(tipAttribute)) { + $cluetipInner.html('' + tipTitle + ''); + cluetipShow(pY); + } else { + var optionBeforeSend = opts.ajaxSettings.beforeSend, + optionError = opts.ajaxSettings.error, + optionSuccess = opts.ajaxSettings.success, + optionComplete = opts.ajaxSettings.complete; + + cacheKey = getCacheKey(tipAttribute, opts.ajaxSettings.data); + + var ajaxSettings = { + cache: opts.ajaxCache, // force requested page not to be cached by browser + url: tipAttribute, + beforeSend: function(xhr, settings) { + if (optionBeforeSend) {optionBeforeSend.call(link, xhr, $cluetip, $cluetipInner, settings);} + $cluetipOuter.children().empty(); + if (opts.waitImage) { + $cluetipWait + .css({top: mouseY+20, left: mouseX+20, zIndex: $link.data('cluetip').zIndex-1}) + .show(); + } + }, + error: function(xhr, textStatus) { + if ( options.ajaxCache && !caches[cacheKey] ) { + caches[cacheKey] = {status: 'error', textStatus: textStatus, xhr: xhr}; + } + + if (isActive) { + if (optionError) { + optionError.call(link, xhr, textStatus, $cluetip, $cluetipInner); + } else { + $cluetipInner.html('sorry, the contents could not be loaded'); + } + } + }, + success: function(data, textStatus, xhr) { + if ( options.ajaxCache && !caches[cacheKey] ) { + caches[cacheKey] = {status: 'success', data: data, textStatus: textStatus, xhr: xhr}; + } + + cluetipContents = opts.ajaxProcess.call(link, data); + + // allow for changing the title based on data returned by xhr + if ( typeof cluetipContents == 'object' && cluetipContents !== null ) { + tipTitle = cluetipContents.title; + cluetipContents = cluetipContents.content; + } + + if (isActive) { + if (optionSuccess) { + optionSuccess.call(link, data, textStatus, $cluetip, $cluetipInner); + } + $cluetipInner.html(cluetipContents); + + } + }, + complete: function(xhr, textStatus) { + if (optionComplete) { + optionComplete.call(link, xhr, textStatus, $cluetip, $cluetipInner); + } + var imgs = $cluetipInner[0].getElementsByTagName('img'); + imgCount = imgs.length; + for (var i=0, l = imgs.length; i < l; i++) { + if (imgs[i].complete) { + imgCount--; + } + } + if (imgCount) { + $(imgs).bind('load.ct error.ct', function() { + imgCount--; + if (imgCount === 0) { + $cluetipWait.hide(); + $(imgs).unbind('.ct'); + if (isActive) { cluetipShow(pY); } + } + }); + } else { + $cluetipWait.hide(); + if (isActive) { cluetipShow(pY); } + } + } + }; + + ajaxMergedSettings = $.extend(true, {}, opts.ajaxSettings, ajaxSettings); + + if ( caches[cacheKey] ) { + cachedAjax( caches[cacheKey], ajaxMergedSettings ); + } else { + $.ajax(ajaxMergedSettings); + } + } + } +/*************************************** +* load an element from the same page +***************************************/ + else if (opts.local) { + var $localContent = $(tipAttribute + (/^#\S+$/.test(tipAttribute) ? '' : ':eq(' + index + ')')).clone(true).show(); + if (opts.localIdSuffix) { + $localContent.attr('id', $localContent[0].id + opts.localIdSuffix); + } + $cluetipInner.html($localContent); + cluetipShow(pY); + } + }; + +// get dimensions and options for cluetip and prepare it to be shown + var cluetipShow = function(bpY) { + var $closeLink, dynamicClasses, heightDiff, + titleHTML = tipTitle || opts.showTitle && ' ', + bgY = '', direction = '', insufficientX = false; + var stickyClose = { + bottom: function($cLink) { + $cLink.appendTo($cluetipInner); + }, + top: function($cLink) { + $cLink.prependTo($cluetipInner); + }, + title: function($cLink) { + $cLink.prependTo($cluetipTitle); + } + }; + + $cluetip.addClass('cluetip-' + ctClass); + if (opts.truncate) { + var $truncloaded = $cluetipInner.text().slice(0,opts.truncate) + '...'; + $cluetipInner.html($truncloaded); + } + + if (titleHTML) { + $cluetipTitle.show().html(titleHTML); + } else { + $cluetipTitle.hide(); + } + + if (opts.sticky) { + if (stickyClose[opts.closePosition]) { + $closeLink = $(''); + stickyClose[opts.closePosition]( $closeLink ); + $closeLink.bind('click.cluetip', function() { + cluetipClose(); + return false; + }); + } + if (opts.mouseOutClose) { + $link.unbind('mouseleave.cluetipMoc'); + $cluetip.unbind('mouseleave.cluetipMoc'); + if (opts.mouseOutClose == 'both' || opts.mouseOutClose == 'cluetip' || opts.mouseOutClose === true) { // true implies 'cluetip' for backwards compatability + $cluetip.bind('mouseleave.cluetipMoc', mouseOutClose); + } + if (opts.mouseOutClose == 'both' || opts.mouseOutClose == 'link') { + $link.bind('mouseleave.cluetipMoc', mouseOutClose); + } + } + } + +// now that content is loaded, finish the positioning + $cluetipOuter.css({zIndex: $link.data('cluetip').zIndex, overflow: defHeight == 'auto' ? 'visible' : 'auto', height: defHeight}); + tipHeight = defHeight == 'auto' ? Math.max($cluetip.outerHeight(),$cluetip.height()) : parseInt(defHeight,10); + tipY = posY; + baseline = sTop + wHeight; + insufficientX = (posX < mouseX && (Math.max(posX, 0) + tipWidth > mouseX)); + if (opts.positionBy == 'fixed') { + tipY = posY - opts.dropShadowSteps + tOffset; + } else if (opts.positionBy == 'topBottom' || opts.positionBy == 'bottomTop' || insufficientX) { + if (opts.positionBy == 'topBottom') { + if (posY + tipHeight + tOffset < baseline && mouseY - sTop < tipHeight + tOffset) { + direction = 'bottom'; + } else { + direction = 'top'; + } + } else if (opts.positionBy == 'bottomTop' || insufficientX) { + if (posY + tipHeight + tOffset > baseline && mouseY - sTop > tipHeight + tOffset) { + direction = 'top'; + } else { + direction = 'bottom'; + } + } + // We should now have a direction. Compute tipY + if (opts.snapToEdge) { + if (direction == 'top') { + tipY = linkTop - tipHeight - tOffset; + } else if (direction == 'bottom') { + tipY = linkBottom + tOffset; + } + } else { + if (direction == 'top') { + tipY = mouseY - tipHeight - tOffset; + } else if (direction == 'bottom') { + tipY = mouseY + tOffset; + } + } + } else if ( posY + tipHeight + tOffset > baseline ) { + tipY = (tipHeight >= wHeight) ? sTop : baseline - tipHeight - tOffset; + } else if ($link.css('display') == 'block' || link.tagName.toLowerCase() == 'area' || opts.positionBy == "mouse") { + tipY = bpY - tOffset; + } else { + tipY = posY - opts.dropShadowSteps; + } + if (direction === '') { + direction = posX < linkLeft ? 'left' : 'right'; + } + // add classes + dynamicClasses = ' clue-' + direction + '-' + ctClass + ' cluetip-' + ctClass; + if (ctClass == 'rounded') { + dynamicClasses += ' ui-corner-all'; + } + $cluetip.css({top: tipY + 'px'}).attrProp({'className': standardClasses + dynamicClasses}); + // set up arrow positioning to align with element + if (opts.arrows) { + if ( /(left|right)/.test(direction) ) { + heightDiff = $cluetip.height() - $cluetipArrows.height(); + bgY = posX >= 0 && bpY > 0 ? (posY - tipY - opts.dropShadowSteps) : 0; + bgY = heightDiff > bgY ? bgY : heightDiff; + bgY += 'px'; + } + $cluetipArrows.css({top: bgY}).show(); + } else { + $cluetipArrows.hide(); + } + +// (first hide, then) ***SHOW THE CLUETIP*** + // handle dropshadow divs first + $dropShadow = createDropShadows($cluetip, opts); + if ($dropShadow && $dropShadow.length) { + $dropShadow.hide().css({height: tipHeight, width: tipInnerWidth, zIndex: $link.data('cluetip').zIndex-1}).show(); + } + + if (!closeOnDelay) { + $cluetip.hide(); + } + clearTimeout(closeOnDelay); + closeOnDelay = null; + + // show the cluetip + $cluetip[opts.fx.open](opts.fx.openSpeed || 0); + + if ($.fn.bgiframe) { $cluetip.bgiframe(); } + + // trigger the optional onShow function + opts.onShow.call(link, $cluetip, $cluetipInner); + }; + +/*************************************** + =INACTIVATION +-------------------------------------- */ + var inactivate = function(event) { + isActive = false; + $cluetipWait.hide(); + if (!opts.sticky || (/click|toggle/).test(opts.activation) ) { + // delayed close (not fully tested) + if (opts.delayedClose > 0) { + clearTimeout(closeOnDelay); + closeOnDelay = null; + closeOnDelay = setTimeout(cluetipClose, opts.delayedClose); + } else { + cluetipClose(); + clearTimeout(closeOnDelay); + } + } + + if (opts.hoverClass) { + $link.removeClass(opts.hoverClass); + } + }; + + // close cluetip and reset some things + var cluetipClose = function(el) { + var $closer = el && el.data('cluetip') ? el : $link, + ct = $closer.data('cluetip') && $closer.data('cluetip').selector, + ctSelector = ct || 'div.cluetip', + $cluetip = $(ctSelector), + $cluetipInner = $cluetip.find(prefix + 'cluetip-inner'), + $cluetipArrows = $cluetip.find(prefix + 'cluetip-arrows'); + + $cluetip.hide().removeClass(); + opts.onHide.call($closer[0], $cluetip, $cluetipInner); + + if (ct) { + $closer.removeClass('cluetip-clicked'); + $link.css('cursor', $link.data('cluetip').cursor); + } + if (ct && tipTitle) { + $closer.attrProp(opts.titleAttribute, tipTitle); + } + + if (opts.arrows) { + $cluetipArrows.css({top: ''}); + } + if ($dropShadow) { + $dropShadow.hide(); + } + }; + + // Check to see if we should be closing by checking where the user is hovering. + // We do a short 50ms delay for two reasons: to prevent flicker, and to allow the user time to hover on other element + var mouseOutClose = function() { + var el = this; + clearTimeout(closeOnDelay); + closeOnDelay = setTimeout(function() { + var linkOver = $link.data('cluetip').entered, + cluetipOver = $cluetip.data('entered'), + entered = false; + + if ( opts.mouseOutClose == 'both' && (linkOver || cluetipOver) ) { + entered = true; + } + // true implies 'cluetip' for backwards compatibility + else if ( (opts.mouseOutClose === true || opts.mouseOutClose == 'cluetip') && cluetipOver) { + entered = true; + } + else if (opts.mouseOutClose == 'link' && linkOver) { + entered = true; + } + + if ( !entered ) { + // All checks pass, close the cluetip + cluetipClose.call(el); + } + + }, opts.delayedClose); + }; + + $(document).unbind('hideCluetip.cluetip').bind('hideCluetip.cluetip', function(e) { + cluetipClose( $(e.target) ); + }); +/*************************************** + =BIND EVENTS +-------------------------------------- */ + // activate by click + if ( (/click|toggle/).test(opts.activation) ) { + $link.bind('click.cluetip', function(event) { + if ($cluetip.is(':hidden') || !$link.is('.cluetip-clicked')) { + activate(event); + $('.cluetip-clicked').removeClass('cluetip-clicked'); + $link.addClass('cluetip-clicked'); + } else { + inactivate(event); + } + return false; + }); + // activate by focus; inactivate by blur + } else if (opts.activation == 'focus') { + $link.bind('focus.cluetip', function(event) { + $link.attrProp('title',''); + activate(event); + }); + $link.bind('blur.cluetip', function(event) { + $link.attrProp('title', $link.data('cluetip').title); + inactivate(event); + }); + // activate by hover + } else { + + // clicking is returned false if clickThrough option is set to false + $link[opts.clickThrough ? 'unbind' : 'bind']('click.cluetip', returnFalse); + + //set up mouse tracking + var mouseTracks = function(evt) { + if (opts.tracking) { + var trackX = posX - evt.pageX; + var trackY = tipY ? tipY - evt.pageY : posY - evt.pageY; + $link.bind('mousemove.cluetip', function(evt) { + $cluetip.css({left: evt.pageX + trackX, top: evt.pageY + trackY }); + }); + } + }; + + if ($.fn.hoverIntent && opts.hoverIntent) { + $link.hoverIntent({ + sensitivity: opts.hoverIntent.sensitivity, + interval: opts.hoverIntent.interval, + over: function(event) { + activate(event); + mouseTracks(event); + }, + timeout: opts.hoverIntent.timeout, + out: function(event) { + inactivate(event); + $link.unbind('mousemove.cluetip'); + } + }); + } else { + $link.bind('mouseenter.cluetip', function(event) { + activate(event); + mouseTracks(event); + }) + .bind('mouseleave.cluetip', function(event) { + inactivate(event); + $link.unbind('mousemove.cluetip'); + }); + } + + $link.bind('mouseover.cluetip', function(event) { + $link.attrProp('title',''); + }).bind('mouseleave.cluetip', function(event) { + $link.attrProp('title', $link.data('cluetip').title); + }); + } + + // trigger a cached Ajax response + function cachedAjax(info, settings) { + var status = info.status; + settings.beforeSend(info.xhr, settings); + if ( status == 'error' ) { + settings[status](info.xhr, info.textStatus); + } else if (status == 'success') { + settings[status](info.data, info.textStatus, info.xhr); + } + settings.complete(info.xhr, settings.textStatus); + } + + }); // end this.each + + /** =private functions + ************************************************************/ + //empty function + function doNothing() {} + + // create a string to be used as an identifier for ajax caches + function getCacheKey(url, data) { + var cacheKey = url || ''; + data = data || ''; + + if (typeof data == 'object') { + $.each(data, function(key, val) { + cacheKey += '-' + key + '-' + val; + }); + } else if (typeof data == 'string') { + cacheKey += data; + } + + return cacheKey; + } + + /** =create dropshadow divs **/ + + function createDropShadows($cluetip, options, newDropShadow) { + var dsStyle = '', + dropShadowSteps = (options.dropShadow && options.dropShadowSteps) ? +options.dropShadowSteps : 0; + + if ($.support.boxShadow) { + if ( dropShadowSteps ) { + dsStyle = '1px 1px ' + dropShadowSteps + 'px rgba(0,0,0,0.5)'; + } + var dsOffsets = dropShadowSteps === 0 ? '0 0 ' : '1px 1px '; + $cluetip.css($.support.boxShadow, dsStyle); + return false; + } + var oldDropShadow = $cluetip.find('.cluetip-drop-shadow'); + if (dropShadowSteps == oldDropShadow.length) { + return oldDropShadow; + } + oldDropShadow.remove(); + var dropShadows = []; + for (var i=0; i < dropShadowSteps;) { + dropShadows[i++] = '
'; + } + + newDropShadow = $(dropShadows.join('')) + .css({ + position: 'absolute', + backgroundColor: '#000', + zIndex: cluezIndex -1, + opacity: 0.1 + }) + .addClass('cluetip-drop-shadow') + .prependTo($cluetip); + return newDropShadow; + + } + + return this; + }; + + (function() { + $.support = $.support || {}; + // check support for CSS3 properties (currently only boxShadow) + var div = document.createElement('div'), + divStyle = div.style, + styleProps = ['boxShadow'], + prefixes = ['moz', 'Moz', 'webkit', 'o']; + + for (var i=0, sl = styleProps.length; i < sl; i++) { + var prop = styleProps[i], + uProp = prop.charAt(0).toUpperCase() + prop.slice(1); + + if ( typeof divStyle[ prop ] !== 'undefined' ) { + $.support[ prop ] = prop; + } else { + for (var j=0, pl = prefixes.length; j < pl; j++) { + + if (typeof divStyle[ prefixes[j] + uProp ] !== 'undefined') { + $.support[ prop ] = prefixes[j] + uProp; + break; + } + } + } + } + div = null; + })(); + + $.fn.cluetip.defaults = $.cluetip.defaults; + +})(jQuery); diff --git a/node_modules/nablarch-widget-tooltip/ui_public/js/nablarch/ui/Tooltip.js b/node_modules/nablarch-widget-tooltip/ui_public/js/nablarch/ui/Tooltip.js new file mode 100644 index 0000000..a2f7aab --- /dev/null +++ b/node_modules/nablarch-widget-tooltip/ui_public/js/nablarch/ui/Tooltip.js @@ -0,0 +1,96 @@ +define([ + "jquery" // jQuery繝ゥ繧、繝悶Λ繝ェ + , "global" // 繧ー繝ュ繝シ繝舌Ν(Window)繧ェ繝悶ず繧ァ繧ッ繝 + , "./Widget" // Widget蝓コ蠎輔け繝ゥ繧ケ + , "jquery.cluetip" // 繝繝シ繝ォ繝√ャ繝励r陦ィ遉コ縺吶k縺溘a縺ョjQuery繝励Λ繧ー繧、繝ウ + , "sugar" // sugar.js 繝ゥ繧、繝悶Λ繝ェ +], + function($, global, Widget) { "use strict"; + /** + * 繝繝シ繝ォ繝√ャ繝 + * ============================================ + * 繝繝シ繝ォ繝√ャ繝励ッ縲√槭え繧ケ繧ェ繝シ繝舌↓繧医j陬懆カウ諠蝣ア繧偵昴ャ繝励い繝繝励〒陦ィ遉コ縺吶k讖溯ス繧偵b縺、縲 + * + * 繝槭シ繧ッ繧「繝繝嶺サ墓ァ + * ------------------------ + * + * <%-- 繝繝シ繝ォ繝√ャ繝励r陦ィ遉コ縺吶k隕∫エ --%> + *
+ * 縺薙ョ隕∫エ縺ォ繝槭え繧ケ繧ェ繝シ繝舌☆繧九%縺ィ縺ォ繧医j繝繝シ繝ォ繝√ャ繝励′陦ィ遉コ縺輔l繧 + *
+ * + * <%-- 繝繝シ繝ォ繝√ャ繝励↓陦ィ遉コ縺吶k蜀螳ケ --%> + * + * + * @class nablarch.ui.Tooltip + * + * @author Hisaaki Sioiri + * @since 1.4 + */ + Tooltip.prototype = Object.merge(new Widget(), { + /** + * 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ髢「謨ー + * + * 隨ャ2蠑墓焚縺ォ貂。縺吶が繝励す繝ァ繝ウ繧ェ繝悶ず繧ァ繧ッ繝医ョ蜀螳ケ縺ッ莉・荳九ョ縺ィ縺翫j縲 + * + * - name: 繝繝シ繝ォ繝√ャ繝励↓陦ィ遉コ縺吶k蜀螳ケ繧呈戟縺、DOM縺ョID螻樊ァ + * + * @method Tooltip + * @constructor + * + * @param {Element} element 繝槭シ繧ォCSS繧呈欠螳壹@縺櫂OM繝弱シ繝 + * @param {Object} opts 蜷遞ョ繧ェ繝励す繝ァ繝ウ繧剃ソ晄戟縺吶k繧ェ繝悶ず繧ァ繧ッ繝 + * @return {Tooltip} 繧、繝ウ繧ケ繧ソ繝ウ繧ケ + */ + constructor : Tooltip, + + /** + * 蛻晄悄蜃ヲ逅縲 + * + * 繝繝シ繝ォ繝√ャ繝励r陦ィ遉コ縺吶k縺溘a縺ョ繧、繝吶Φ繝育匳骭イ繧定。後≧縲 + */ + initialize : Tooltip_initialize, + + /** 繝繝シ繝ォ繝√ャ繝励↓陦ィ遉コ縺吶k繝繧ュ繧ケ繝医r謖√▽DOM繝弱シ繝峨ョID螻樊ァ */ + name : null + }); + + /** + * 繧ヲ繧」繧ク繧ァ繝繝医ョ隴伜挨蜷 + * @property widgetType + * @static + * @readOnly + * @type String + * @for nablarch.ui.Tooltip + */ + Tooltip.widgetType = "nablarch_Tooltip"; + + Widget.register(Tooltip); + + /** 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ */ + function Tooltip(element, opts) { + this.name = opts.name; + this.constructor = Tooltip; + Widget.call(this, element); + this.initialize(); + } + + /** 蛻晄悄蜃ヲ逅 */ + function Tooltip_initialize() { + this.$node.attr("rel", this.name); + this.$node.cluetip({ + positionBy: 'mouse', + showTitle: false, + local: true, + delayedClose: 0, + dropShadow: false, + cluetipClass: 'jtip' + }); + } + + return Tooltip; +}); diff --git "a/node_modules/nablarch-widget-tooltip/ui_test/jsp/\343\203\204\343\203\274\343\203\253\343\203\201\343\203\203\343\203\227/index.jsp" "b/node_modules/nablarch-widget-tooltip/ui_test/jsp/\343\203\204\343\203\274\343\203\253\343\203\201\343\203\203\343\203\227/index.jsp" new file mode 100644 index 0000000..bd2220c --- /dev/null +++ "b/node_modules/nablarch-widget-tooltip/ui_test/jsp/\343\203\204\343\203\274\343\203\253\343\203\201\343\203\203\343\203\227/index.jsp" @@ -0,0 +1,19 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + +
    +
  • +
+
+
+
diff --git "a/node_modules/nablarch-widget-tooltip/ui_test/jsp/\343\203\204\343\203\274\343\203\253\343\203\201\343\203\203\343\203\227/\345\213\225\344\275\234\343\203\207\343\203\242.jsp" "b/node_modules/nablarch-widget-tooltip/ui_test/jsp/\343\203\204\343\203\274\343\203\253\343\203\201\343\203\203\343\203\227/\345\213\225\344\275\234\343\203\207\343\203\242.jsp" new file mode 100644 index 0000000..f0b9fea --- /dev/null +++ "b/node_modules/nablarch-widget-tooltip/ui_test/jsp/\343\203\204\343\203\274\343\203\253\343\203\201\343\203\203\343\203\227/\345\213\225\344\275\234\343\203\207\343\203\242.jsp" @@ -0,0 +1,35 @@ + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="n" uri="http://tis.co.jp/nablarch" %> +<%@ taglib prefix="field" tagdir="/WEB-INF/tags/widget/field" %> +<%@ taglib prefix="link" tagdir="/WEB-INF/tags/widget/link" %> +<%@ taglib prefix="button" tagdir="/WEB-INF/tags/widget/button" %> +<%@ taglib prefix="t" tagdir="/WEB-INF/tags/template" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + +
    +
  • + + +
  • +
+ +
+
+
+
diff --git a/node_modules/requirejs-text/package.json b/node_modules/requirejs-text/package.json new file mode 100644 index 0000000..2fa5929 --- /dev/null +++ b/node_modules/requirejs-text/package.json @@ -0,0 +1,8 @@ +{ + "name": "requirejs-text" +, "description": "RequireJS/text plugin" +, "version": "2.0.10" +, "homepage": "http://github.com/requirejs/text" +, "dependencies": { + } +} \ No newline at end of file diff --git a/node_modules/requirejs-text/ui_public/js/text.js b/node_modules/requirejs-text/ui_public/js/text.js new file mode 100644 index 0000000..1e4fc96 --- /dev/null +++ b/node_modules/requirejs-text/ui_public/js/text.js @@ -0,0 +1,386 @@ +/** + * @license RequireJS text 2.0.10 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved. + * Available via the MIT or new BSD license. + * see: http://github.com/requirejs/text for details + */ +/*jslint regexp: true */ +/*global require, XMLHttpRequest, ActiveXObject, + define, window, process, Packages, + java, location, Components, FileUtils */ + +define(['module'], function (module) { + 'use strict'; + + var text, fs, Cc, Ci, xpcIsWindows, + progIds = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'], + xmlRegExp = /^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im, + bodyRegExp = /]*>\s*([\s\S]+)\s*<\/body>/im, + hasLocation = typeof location !== 'undefined' && location.href, + defaultProtocol = hasLocation && location.protocol && location.protocol.replace(/\:/, ''), + defaultHostName = hasLocation && location.hostname, + defaultPort = hasLocation && (location.port || undefined), + buildMap = {}, + masterConfig = (module.config && module.config()) || {}; + + text = { + version: '2.0.10', + + strip: function (content) { + //Strips declarations so that external SVG and XML + //documents can be added to a document without worry. Also, if the string + //is an HTML document, only the part inside the body tag is returned. + if (content) { + content = content.replace(xmlRegExp, ""); + var matches = content.match(bodyRegExp); + if (matches) { + content = matches[1]; + } + } else { + content = ""; + } + return content; + }, + + jsEscape: function (content) { + return content.replace(/(['\\])/g, '\\$1') + .replace(/[\f]/g, "\\f") + .replace(/[\b]/g, "\\b") + .replace(/[\n]/g, "\\n") + .replace(/[\t]/g, "\\t") + .replace(/[\r]/g, "\\r") + .replace(/[\u2028]/g, "\\u2028") + .replace(/[\u2029]/g, "\\u2029"); + }, + + createXhr: masterConfig.createXhr || function () { + //Would love to dump the ActiveX crap in here. Need IE 6 to die first. + var xhr, i, progId; + if (typeof XMLHttpRequest !== "undefined") { + return new XMLHttpRequest(); + } else if (typeof ActiveXObject !== "undefined") { + for (i = 0; i < 3; i += 1) { + progId = progIds[i]; + try { + xhr = new ActiveXObject(progId); + } catch (e) {} + + if (xhr) { + progIds = [progId]; // so faster next time + break; + } + } + } + + return xhr; + }, + + /** + * Parses a resource name into its component parts. Resource names + * look like: module/name.ext!strip, where the !strip part is + * optional. + * @param {String} name the resource name + * @returns {Object} with properties "moduleName", "ext" and "strip" + * where strip is a boolean. + */ + parseName: function (name) { + var modName, ext, temp, + strip = false, + index = name.indexOf("."), + isRelative = name.indexOf('./') === 0 || + name.indexOf('../') === 0; + + if (index !== -1 && (!isRelative || index > 1)) { + modName = name.substring(0, index); + ext = name.substring(index + 1, name.length); + } else { + modName = name; + } + + temp = ext || modName; + index = temp.indexOf("!"); + if (index !== -1) { + //Pull off the strip arg. + strip = temp.substring(index + 1) === "strip"; + temp = temp.substring(0, index); + if (ext) { + ext = temp; + } else { + modName = temp; + } + } + + return { + moduleName: modName, + ext: ext, + strip: strip + }; + }, + + xdRegExp: /^((\w+)\:)?\/\/([^\/\\]+)/, + + /** + * Is an URL on another domain. Only works for browser use, returns + * false in non-browser environments. Only used to know if an + * optimized .js version of a text resource should be loaded + * instead. + * @param {String} url + * @returns Boolean + */ + useXhr: function (url, protocol, hostname, port) { + var uProtocol, uHostName, uPort, + match = text.xdRegExp.exec(url); + if (!match) { + return true; + } + uProtocol = match[2]; + uHostName = match[3]; + + uHostName = uHostName.split(':'); + uPort = uHostName[1]; + uHostName = uHostName[0]; + + return (!uProtocol || uProtocol === protocol) && + (!uHostName || uHostName.toLowerCase() === hostname.toLowerCase()) && + ((!uPort && !uHostName) || uPort === port); + }, + + finishLoad: function (name, strip, content, onLoad) { + content = strip ? text.strip(content) : content; + if (masterConfig.isBuild) { + buildMap[name] = content; + } + onLoad(content); + }, + + load: function (name, req, onLoad, config) { + //Name has format: some.module.filext!strip + //The strip part is optional. + //if strip is present, then that means only get the string contents + //inside a body tag in an HTML string. For XML/SVG content it means + //removing the declarations so the content can be inserted + //into the current doc without problems. + + // Do not bother with the work if a build and text will + // not be inlined. + if (config.isBuild && !config.inlineText) { + onLoad(); + return; + } + + masterConfig.isBuild = config.isBuild; + + var parsed = text.parseName(name), + nonStripName = parsed.moduleName + + (parsed.ext ? '.' + parsed.ext : ''), + url = req.toUrl(nonStripName), + useXhr = (masterConfig.useXhr) || + text.useXhr; + + // Do not load if it is an empty: url + if (url.indexOf('empty:') === 0) { + onLoad(); + return; + } + + //Load the text. Use XHR if possible and in a browser. + if (!hasLocation || useXhr(url, defaultProtocol, defaultHostName, defaultPort)) { + text.get(url, function (content) { + text.finishLoad(name, parsed.strip, content, onLoad); + }, function (err) { + if (onLoad.error) { + onLoad.error(err); + } + }); + } else { + //Need to fetch the resource across domains. Assume + //the resource has been optimized into a JS module. Fetch + //by the module name + extension, but do not include the + //!strip part to avoid file system issues. + req([nonStripName], function (content) { + text.finishLoad(parsed.moduleName + '.' + parsed.ext, + parsed.strip, content, onLoad); + }); + } + }, + + write: function (pluginName, moduleName, write, config) { + if (buildMap.hasOwnProperty(moduleName)) { + var content = text.jsEscape(buildMap[moduleName]); + write.asModule(pluginName + "!" + moduleName, + "define(function () { return '" + + content + + "';});\n"); + } + }, + + writeFile: function (pluginName, moduleName, req, write, config) { + var parsed = text.parseName(moduleName), + extPart = parsed.ext ? '.' + parsed.ext : '', + nonStripName = parsed.moduleName + extPart, + //Use a '.js' file name so that it indicates it is a + //script that can be loaded across domains. + fileName = req.toUrl(parsed.moduleName + extPart) + '.js'; + + //Leverage own load() method to load plugin value, but only + //write out values that do not have the strip argument, + //to avoid any potential issues with ! in file names. + text.load(nonStripName, req, function (value) { + //Use own write() method to construct full module value. + //But need to create shell that translates writeFile's + //write() to the right interface. + var textWrite = function (contents) { + return write(fileName, contents); + }; + textWrite.asModule = function (moduleName, contents) { + return write.asModule(moduleName, fileName, contents); + }; + + text.write(pluginName, nonStripName, textWrite, config); + }, config); + } + }; + + if (masterConfig.env === 'node' || (!masterConfig.env && + typeof process !== "undefined" && + process.versions && + !!process.versions.node && + !process.versions['node-webkit'])) { + //Using special require.nodeRequire, something added by r.js. + fs = require.nodeRequire('fs'); + + text.get = function (url, callback, errback) { + try { + var file = fs.readFileSync(url, 'utf8'); + //Remove BOM (Byte Mark Order) from utf8 files if it is there. + if (file.indexOf('\uFEFF') === 0) { + file = file.substring(1); + } + callback(file); + } catch (e) { + errback(e); + } + }; + } else if (masterConfig.env === 'xhr' || (!masterConfig.env && + text.createXhr())) { + text.get = function (url, callback, errback, headers) { + var xhr = text.createXhr(), header; + xhr.open('GET', url, true); + + //Allow plugins direct access to xhr headers + if (headers) { + for (header in headers) { + if (headers.hasOwnProperty(header)) { + xhr.setRequestHeader(header.toLowerCase(), headers[header]); + } + } + } + + //Allow overrides specified in config + if (masterConfig.onXhr) { + masterConfig.onXhr(xhr, url); + } + + xhr.onreadystatechange = function (evt) { + var status, err; + //Do not explicitly handle errors, those should be + //visible via console output in the browser. + if (xhr.readyState === 4) { + status = xhr.status; + if (status > 399 && status < 600) { + //An http 4xx or 5xx error. Signal an error. + err = new Error(url + ' HTTP status: ' + status); + err.xhr = xhr; + errback(err); + } else { + callback(xhr.responseText); + } + + if (masterConfig.onXhrComplete) { + masterConfig.onXhrComplete(xhr, url); + } + } + }; + xhr.send(null); + }; + } else if (masterConfig.env === 'rhino' || (!masterConfig.env && + typeof Packages !== 'undefined' && typeof java !== 'undefined')) { + //Why Java, why is this so awkward? + text.get = function (url, callback) { + var stringBuffer, line, + encoding = "utf-8", + file = new java.io.File(url), + lineSeparator = java.lang.System.getProperty("line.separator"), + input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file), encoding)), + content = ''; + try { + stringBuffer = new java.lang.StringBuffer(); + line = input.readLine(); + + // Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324 + // http://www.unicode.org/faq/utf_bom.html + + // Note that when we use utf-8, the BOM should appear as "EF BB BF", but it doesn't due to this bug in the JDK: + // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058 + if (line && line.length() && line.charAt(0) === 0xfeff) { + // Eat the BOM, since we've already found the encoding on this file, + // and we plan to concatenating this buffer with others; the BOM should + // only appear at the top of a file. + line = line.substring(1); + } + + if (line !== null) { + stringBuffer.append(line); + } + + while ((line = input.readLine()) !== null) { + stringBuffer.append(lineSeparator); + stringBuffer.append(line); + } + //Make sure we return a JavaScript string and not a Java string. + content = String(stringBuffer.toString()); //String + } finally { + input.close(); + } + callback(content); + }; + } else if (masterConfig.env === 'xpconnect' || (!masterConfig.env && + typeof Components !== 'undefined' && Components.classes && + Components.interfaces)) { + //Avert your gaze! + Cc = Components.classes, + Ci = Components.interfaces; + Components.utils['import']('resource://gre/modules/FileUtils.jsm'); + xpcIsWindows = ('@mozilla.org/windows-registry-key;1' in Cc); + + text.get = function (url, callback) { + var inStream, convertStream, fileObj, + readData = {}; + + if (xpcIsWindows) { + url = url.replace(/\//g, '\\'); + } + + fileObj = new FileUtils.File(url); + + //XPCOM, you so crazy + try { + inStream = Cc['@mozilla.org/network/file-input-stream;1'] + .createInstance(Ci.nsIFileInputStream); + inStream.init(fileObj, 1, 0, false); + + convertStream = Cc['@mozilla.org/intl/converter-input-stream;1'] + .createInstance(Ci.nsIConverterInputStream); + convertStream.init(inStream, "utf-8", inStream.available(), + Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER); + + convertStream.readString(inStream.available(), readData); + convertStream.close(); + inStream.close(); + callback(readData.value); + } catch (e) { + throw new Error((fileObj && fileObj.path || '') + ': ' + e); + } + }; + } + return text; +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..0b2e12e --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ "name" : "nablarch_ui_plugin_bundle" +, "version": "1.0.1" +, "private": true +, "dependencies": + { "requirejs" : "2.1.11" + , "sugar" : "1.4.1" + , "jquery" : "1.11.0" + , "font-awesome": "4.0.3" + } +, "devDependencies": + { "less" : "1.4.2" + , "shelljs": "0.2.6" + , "es6-promise": "0.1.1" + } +, "scripts": {} +} diff --git a/tool/jspanalysis/config.txt b/tool/jspanalysis/config.txt new file mode 100644 index 0000000..658af9c --- /dev/null +++ b/tool/jspanalysis/config.txt @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tool/jspanalysis/transform-to-html.xsl b/tool/jspanalysis/transform-to-html.xsl new file mode 100644 index 0000000..79ea6dd --- /dev/null +++ b/tool/jspanalysis/transform-to-html.xsl @@ -0,0 +1,112 @@ + + + + + + + + + + JSP繝√ぉ繝繧ッ邨先棡 + + + + + +
+ 縲縲

JSP繝√ぉ繝繧ッ邨先棡

+ + + + + + + + + + +
+ JSP繝代せ + + 繧ィ繝ゥ繝シ蜀螳ケ +
+
+ +

謖鞫倥ッ縺ゅj縺セ縺帙s縺ァ縺励◆縲

+
+
+
+ + +
+ + + + + + + + + + + + + + 繧ィ繝ゥ繝シ莉カ謨ー 莉カ + + + + + + + + + + + +
diff --git a/tool/yuidoc/build.bat b/tool/yuidoc/build.bat new file mode 100644 index 0000000..7ffbbf8 --- /dev/null +++ b/tool/yuidoc/build.bat @@ -0,0 +1,24 @@ +cd %~dp0 +set tool_dir=%~dp0 + +@call :SET_YUIDOC yuidoc + +@if "%command%"=="" GOTO YUIDOC_NOTFOUND + +pushd ..\..\node_modules +call %command% -c %tool_dir%\yuidoc.json +popd + +goto END + +:YUIDOC_NOTFOUND +echo 'yuidoc command not found.' + +:END +pause +exit /b + +:SET_YUIDOC +@set command=%~$PATH:1 +exit /b + diff --git a/tool/yuidoc/yuidoc.json b/tool/yuidoc/yuidoc.json new file mode 100644 index 0000000..9d731c1 --- /dev/null +++ b/tool/yuidoc/yuidoc.json @@ -0,0 +1,10 @@ +{ + "name": "Nablarch JavaScript Widget", + "description": "Nablarch JavaScript驛ィ蜩 API 繝峨く繝・繝。繝ウ繝", + "version": "1.0.0", + "options": { + "paths": "**/js", + "outdir": "../doc/_static/yuidoc", + "exclude": "jquery.js,jquery.cluetip.js,require.js,devtool.js,devtool" + } +}