|
525
|
1 |
/*
|
|
|
2 |
YUI 3.10.3 (build 2fb5187)
|
|
|
3 |
Copyright 2013 Yahoo! Inc. All rights reserved.
|
|
|
4 |
Licensed under the BSD License.
|
|
|
5 |
http://yuilibrary.com/license/
|
|
|
6 |
*/
|
|
|
7 |
|
|
|
8 |
YUI.add('loader-base', function (Y, NAME) {
|
|
|
9 |
|
|
|
10 |
/**
|
|
|
11 |
* The YUI loader core
|
|
|
12 |
* @module loader
|
|
|
13 |
* @submodule loader-base
|
|
|
14 |
*/
|
|
|
15 |
|
|
|
16 |
if (!YUI.Env[Y.version]) {
|
|
|
17 |
|
|
|
18 |
(function() {
|
|
|
19 |
var VERSION = Y.version,
|
|
|
20 |
BUILD = '/build/',
|
|
|
21 |
ROOT = VERSION + '/',
|
|
|
22 |
CDN_BASE = Y.Env.base,
|
|
|
23 |
GALLERY_VERSION = 'gallery-2013.06.05-22-14',
|
|
|
24 |
TNT = '2in3',
|
|
|
25 |
TNT_VERSION = '4',
|
|
|
26 |
YUI2_VERSION = '2.9.0',
|
|
|
27 |
COMBO_BASE = CDN_BASE + 'combo?',
|
|
|
28 |
META = { version: VERSION,
|
|
|
29 |
root: ROOT,
|
|
|
30 |
base: Y.Env.base,
|
|
|
31 |
comboBase: COMBO_BASE,
|
|
|
32 |
skin: { defaultSkin: 'sam',
|
|
|
33 |
base: 'assets/skins/',
|
|
|
34 |
path: 'skin.css',
|
|
|
35 |
after: ['cssreset',
|
|
|
36 |
'cssfonts',
|
|
|
37 |
'cssgrids',
|
|
|
38 |
'cssbase',
|
|
|
39 |
'cssreset-context',
|
|
|
40 |
'cssfonts-context']},
|
|
|
41 |
groups: {},
|
|
|
42 |
patterns: {} },
|
|
|
43 |
groups = META.groups,
|
|
|
44 |
yui2Update = function(tnt, yui2, config) {
|
|
|
45 |
|
|
|
46 |
var root = TNT + '.' +
|
|
|
47 |
(tnt || TNT_VERSION) + '/' +
|
|
|
48 |
(yui2 || YUI2_VERSION) + BUILD,
|
|
|
49 |
base = (config && config.base) ? config.base : CDN_BASE,
|
|
|
50 |
combo = (config && config.comboBase) ? config.comboBase : COMBO_BASE;
|
|
|
51 |
|
|
|
52 |
groups.yui2.base = base + root;
|
|
|
53 |
groups.yui2.root = root;
|
|
|
54 |
groups.yui2.comboBase = combo;
|
|
|
55 |
},
|
|
|
56 |
galleryUpdate = function(tag, config) {
|
|
|
57 |
var root = (tag || GALLERY_VERSION) + BUILD,
|
|
|
58 |
base = (config && config.base) ? config.base : CDN_BASE,
|
|
|
59 |
combo = (config && config.comboBase) ? config.comboBase : COMBO_BASE;
|
|
|
60 |
|
|
|
61 |
groups.gallery.base = base + root;
|
|
|
62 |
groups.gallery.root = root;
|
|
|
63 |
groups.gallery.comboBase = combo;
|
|
|
64 |
};
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
groups[VERSION] = {};
|
|
|
68 |
|
|
|
69 |
groups.gallery = {
|
|
|
70 |
ext: false,
|
|
|
71 |
combine: true,
|
|
|
72 |
comboBase: COMBO_BASE,
|
|
|
73 |
update: galleryUpdate,
|
|
|
74 |
patterns: { 'gallery-': { },
|
|
|
75 |
'lang/gallery-': {},
|
|
|
76 |
'gallerycss-': { type: 'css' } }
|
|
|
77 |
};
|
|
|
78 |
|
|
|
79 |
groups.yui2 = {
|
|
|
80 |
combine: true,
|
|
|
81 |
ext: false,
|
|
|
82 |
comboBase: COMBO_BASE,
|
|
|
83 |
update: yui2Update,
|
|
|
84 |
patterns: {
|
|
|
85 |
'yui2-': {
|
|
|
86 |
configFn: function(me) {
|
|
|
87 |
if (/-skin|reset|fonts|grids|base/.test(me.name)) {
|
|
|
88 |
me.type = 'css';
|
|
|
89 |
me.path = me.path.replace(/\.js/, '.css');
|
|
|
90 |
// this makes skins in builds earlier than
|
|
|
91 |
// 2.6.0 work as long as combine is false
|
|
|
92 |
me.path = me.path.replace(/\/yui2-skin/,
|
|
|
93 |
'/assets/skins/sam/yui2-skin');
|
|
|
94 |
}
|
|
|
95 |
}
|
|
|
96 |
}
|
|
|
97 |
}
|
|
|
98 |
};
|
|
|
99 |
|
|
|
100 |
galleryUpdate();
|
|
|
101 |
yui2Update();
|
|
|
102 |
|
|
|
103 |
YUI.Env[VERSION] = META;
|
|
|
104 |
}());
|
|
|
105 |
}
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
/*jslint forin: true, maxlen: 350 */
|
|
|
109 |
|
|
|
110 |
/**
|
|
|
111 |
* Loader dynamically loads script and css files. It includes the dependency
|
|
|
112 |
* information for the version of the library in use, and will automatically pull in
|
|
|
113 |
* dependencies for the modules requested. It can also load the
|
|
|
114 |
* files from the Yahoo! CDN, and it can utilize the combo service provided on
|
|
|
115 |
* this network to reduce the number of http connections required to download
|
|
|
116 |
* YUI files.
|
|
|
117 |
*
|
|
|
118 |
* @module loader
|
|
|
119 |
* @main loader
|
|
|
120 |
* @submodule loader-base
|
|
|
121 |
*/
|
|
|
122 |
|
|
|
123 |
var NOT_FOUND = {},
|
|
|
124 |
NO_REQUIREMENTS = [],
|
|
|
125 |
MAX_URL_LENGTH = 1024,
|
|
|
126 |
GLOBAL_ENV = YUI.Env,
|
|
|
127 |
GLOBAL_LOADED = GLOBAL_ENV._loaded,
|
|
|
128 |
CSS = 'css',
|
|
|
129 |
JS = 'js',
|
|
|
130 |
INTL = 'intl',
|
|
|
131 |
DEFAULT_SKIN = 'sam',
|
|
|
132 |
VERSION = Y.version,
|
|
|
133 |
ROOT_LANG = '',
|
|
|
134 |
YObject = Y.Object,
|
|
|
135 |
oeach = YObject.each,
|
|
|
136 |
yArray = Y.Array,
|
|
|
137 |
_queue = GLOBAL_ENV._loaderQueue,
|
|
|
138 |
META = GLOBAL_ENV[VERSION],
|
|
|
139 |
SKIN_PREFIX = 'skin-',
|
|
|
140 |
L = Y.Lang,
|
|
|
141 |
ON_PAGE = GLOBAL_ENV.mods,
|
|
|
142 |
modulekey,
|
|
|
143 |
_path = function(dir, file, type, nomin) {
|
|
|
144 |
var path = dir + '/' + file;
|
|
|
145 |
if (!nomin) {
|
|
|
146 |
path += '-min';
|
|
|
147 |
}
|
|
|
148 |
path += '.' + (type || CSS);
|
|
|
149 |
|
|
|
150 |
return path;
|
|
|
151 |
};
|
|
|
152 |
|
|
|
153 |
|
|
|
154 |
if (!YUI.Env._cssLoaded) {
|
|
|
155 |
YUI.Env._cssLoaded = {};
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
/**
|
|
|
160 |
* The component metadata is stored in Y.Env.meta.
|
|
|
161 |
* Part of the loader module.
|
|
|
162 |
* @property meta
|
|
|
163 |
* @for YUI
|
|
|
164 |
*/
|
|
|
165 |
Y.Env.meta = META;
|
|
|
166 |
|
|
|
167 |
/**
|
|
|
168 |
* Loader dynamically loads script and css files. It includes the dependency
|
|
|
169 |
* info for the version of the library in use, and will automatically pull in
|
|
|
170 |
* dependencies for the modules requested. It can load the
|
|
|
171 |
* files from the Yahoo! CDN, and it can utilize the combo service provided on
|
|
|
172 |
* this network to reduce the number of http connections required to download
|
|
|
173 |
* YUI files. You can also specify an external, custom combo service to host
|
|
|
174 |
* your modules as well.
|
|
|
175 |
|
|
|
176 |
var Y = YUI();
|
|
|
177 |
var loader = new Y.Loader({
|
|
|
178 |
filter: 'debug',
|
|
|
179 |
base: '../../',
|
|
|
180 |
root: 'build/',
|
|
|
181 |
combine: true,
|
|
|
182 |
require: ['node', 'dd', 'console']
|
|
|
183 |
});
|
|
|
184 |
var out = loader.resolve(true);
|
|
|
185 |
|
|
|
186 |
* @constructor
|
|
|
187 |
* @class Loader
|
|
|
188 |
* @param {Object} config an optional set of configuration options.
|
|
|
189 |
* @param {String} config.base The base dir which to fetch this module from
|
|
|
190 |
* @param {String} config.comboBase The Combo service base path. Ex: `http://yui.yahooapis.com/combo?`
|
|
|
191 |
* @param {String} config.root The root path to prepend to module names for the combo service. Ex: `2.5.2/build/`
|
|
|
192 |
* @param {String|Object} config.filter A filter to apply to result urls. <a href="#property_filter">See filter property</a>
|
|
|
193 |
* @param {Object} config.filters Per-component filter specification. If specified for a given component, this overrides the filter config.
|
|
|
194 |
* @param {Boolean} config.combine Use a combo service to reduce the number of http connections required to load your dependencies
|
|
|
195 |
* @param {Boolean} [config.async=true] Fetch files in async
|
|
|
196 |
* @param {Array} config.ignore: A list of modules that should never be dynamically loaded
|
|
|
197 |
* @param {Array} config.force A list of modules that should always be loaded when required, even if already present on the page
|
|
|
198 |
* @param {HTMLElement|String} config.insertBefore Node or id for a node that should be used as the insertion point for new nodes
|
|
|
199 |
* @param {Object} config.jsAttributes Object literal containing attributes to add to script nodes
|
|
|
200 |
* @param {Object} config.cssAttributes Object literal containing attributes to add to link nodes
|
|
|
201 |
* @param {Number} config.timeout The number of milliseconds before a timeout occurs when dynamically loading nodes. If not set, there is no timeout
|
|
|
202 |
* @param {Object} config.context Execution context for all callbacks
|
|
|
203 |
* @param {Function} config.onSuccess Callback for the 'success' event
|
|
|
204 |
* @param {Function} config.onFailure Callback for the 'failure' event
|
|
|
205 |
* @param {Function} config.onCSS Callback for the 'CSSComplete' event. When loading YUI components with CSS the CSS is loaded first, then the script. This provides a moment you can tie into to improve the presentation of the page while the script is loading.
|
|
|
206 |
* @param {Function} config.onTimeout Callback for the 'timeout' event
|
|
|
207 |
* @param {Function} config.onProgress Callback executed each time a script or css file is loaded
|
|
|
208 |
* @param {Object} config.modules A list of module definitions. See <a href="#method_addModule">Loader.addModule</a> for the supported module metadata
|
|
|
209 |
* @param {Object} config.groups A list of group definitions. Each group can contain specific definitions for `base`, `comboBase`, `combine`, and accepts a list of `modules`.
|
|
|
210 |
* @param {String} config.2in3 The version of the YUI 2 in 3 wrapper to use. The intrinsic support for YUI 2 modules in YUI 3 relies on versions of the YUI 2 components inside YUI 3 module wrappers. These wrappers change over time to accomodate the issues that arise from running YUI 2 in a YUI 3 sandbox.
|
|
|
211 |
* @param {String} config.yui2 When using the 2in3 project, you can select the version of YUI 2 to use. Valid values are `2.2.2`, `2.3.1`, `2.4.1`, `2.5.2`, `2.6.0`, `2.7.0`, `2.8.0`, `2.8.1` and `2.9.0` [default] -- plus all versions of YUI 2 going forward.
|
|
|
212 |
*/
|
|
|
213 |
Y.Loader = function(o) {
|
|
|
214 |
|
|
|
215 |
var self = this;
|
|
|
216 |
|
|
|
217 |
//Catch no config passed.
|
|
|
218 |
o = o || {};
|
|
|
219 |
|
|
|
220 |
modulekey = META.md5;
|
|
|
221 |
|
|
|
222 |
/**
|
|
|
223 |
* Internal callback to handle multiple internal insert() calls
|
|
|
224 |
* so that css is inserted prior to js
|
|
|
225 |
* @property _internalCallback
|
|
|
226 |
* @private
|
|
|
227 |
*/
|
|
|
228 |
// self._internalCallback = null;
|
|
|
229 |
|
|
|
230 |
/**
|
|
|
231 |
* Callback that will be executed when the loader is finished
|
|
|
232 |
* with an insert
|
|
|
233 |
* @method onSuccess
|
|
|
234 |
* @type function
|
|
|
235 |
*/
|
|
|
236 |
// self.onSuccess = null;
|
|
|
237 |
|
|
|
238 |
/**
|
|
|
239 |
* Callback that will be executed if there is a failure
|
|
|
240 |
* @method onFailure
|
|
|
241 |
* @type function
|
|
|
242 |
*/
|
|
|
243 |
// self.onFailure = null;
|
|
|
244 |
|
|
|
245 |
/**
|
|
|
246 |
* Callback for the 'CSSComplete' event. When loading YUI components
|
|
|
247 |
* with CSS the CSS is loaded first, then the script. This provides
|
|
|
248 |
* a moment you can tie into to improve the presentation of the page
|
|
|
249 |
* while the script is loading.
|
|
|
250 |
* @method onCSS
|
|
|
251 |
* @type function
|
|
|
252 |
*/
|
|
|
253 |
// self.onCSS = null;
|
|
|
254 |
|
|
|
255 |
/**
|
|
|
256 |
* Callback executed each time a script or css file is loaded
|
|
|
257 |
* @method onProgress
|
|
|
258 |
* @type function
|
|
|
259 |
*/
|
|
|
260 |
// self.onProgress = null;
|
|
|
261 |
|
|
|
262 |
/**
|
|
|
263 |
* Callback that will be executed if a timeout occurs
|
|
|
264 |
* @method onTimeout
|
|
|
265 |
* @type function
|
|
|
266 |
*/
|
|
|
267 |
// self.onTimeout = null;
|
|
|
268 |
|
|
|
269 |
/**
|
|
|
270 |
* The execution context for all callbacks
|
|
|
271 |
* @property context
|
|
|
272 |
* @default {YUI} the YUI instance
|
|
|
273 |
*/
|
|
|
274 |
self.context = Y;
|
|
|
275 |
|
|
|
276 |
/**
|
|
|
277 |
* Data that is passed to all callbacks
|
|
|
278 |
* @property data
|
|
|
279 |
*/
|
|
|
280 |
// self.data = null;
|
|
|
281 |
|
|
|
282 |
/**
|
|
|
283 |
* Node reference or id where new nodes should be inserted before
|
|
|
284 |
* @property insertBefore
|
|
|
285 |
* @type string|HTMLElement
|
|
|
286 |
*/
|
|
|
287 |
// self.insertBefore = null;
|
|
|
288 |
|
|
|
289 |
/**
|
|
|
290 |
* The charset attribute for inserted nodes
|
|
|
291 |
* @property charset
|
|
|
292 |
* @type string
|
|
|
293 |
* @deprecated , use cssAttributes or jsAttributes.
|
|
|
294 |
*/
|
|
|
295 |
// self.charset = null;
|
|
|
296 |
|
|
|
297 |
/**
|
|
|
298 |
* An object literal containing attributes to add to link nodes
|
|
|
299 |
* @property cssAttributes
|
|
|
300 |
* @type object
|
|
|
301 |
*/
|
|
|
302 |
// self.cssAttributes = null;
|
|
|
303 |
|
|
|
304 |
/**
|
|
|
305 |
* An object literal containing attributes to add to script nodes
|
|
|
306 |
* @property jsAttributes
|
|
|
307 |
* @type object
|
|
|
308 |
*/
|
|
|
309 |
// self.jsAttributes = null;
|
|
|
310 |
|
|
|
311 |
/**
|
|
|
312 |
* The base directory.
|
|
|
313 |
* @property base
|
|
|
314 |
* @type string
|
|
|
315 |
* @default http://yui.yahooapis.com/[YUI VERSION]/build/
|
|
|
316 |
*/
|
|
|
317 |
self.base = Y.Env.meta.base + Y.Env.meta.root;
|
|
|
318 |
|
|
|
319 |
/**
|
|
|
320 |
* Base path for the combo service
|
|
|
321 |
* @property comboBase
|
|
|
322 |
* @type string
|
|
|
323 |
* @default http://yui.yahooapis.com/combo?
|
|
|
324 |
*/
|
|
|
325 |
self.comboBase = Y.Env.meta.comboBase;
|
|
|
326 |
|
|
|
327 |
/*
|
|
|
328 |
* Base path for language packs.
|
|
|
329 |
*/
|
|
|
330 |
// self.langBase = Y.Env.meta.langBase;
|
|
|
331 |
// self.lang = "";
|
|
|
332 |
|
|
|
333 |
/**
|
|
|
334 |
* If configured, the loader will attempt to use the combo
|
|
|
335 |
* service for YUI resources and configured external resources.
|
|
|
336 |
* @property combine
|
|
|
337 |
* @type boolean
|
|
|
338 |
* @default true if a base dir isn't in the config
|
|
|
339 |
*/
|
|
|
340 |
self.combine = o.base &&
|
|
|
341 |
(o.base.indexOf(self.comboBase.substr(0, 20)) > -1);
|
|
|
342 |
|
|
|
343 |
/**
|
|
|
344 |
* The default seperator to use between files in a combo URL
|
|
|
345 |
* @property comboSep
|
|
|
346 |
* @type {String}
|
|
|
347 |
* @default Ampersand
|
|
|
348 |
*/
|
|
|
349 |
self.comboSep = '&';
|
|
|
350 |
/**
|
|
|
351 |
* Max url length for combo urls. The default is 1024. This is the URL
|
|
|
352 |
* limit for the Yahoo! hosted combo servers. If consuming
|
|
|
353 |
* a different combo service that has a different URL limit
|
|
|
354 |
* it is possible to override this default by supplying
|
|
|
355 |
* the maxURLLength config option. The config option will
|
|
|
356 |
* only take effect if lower than the default.
|
|
|
357 |
*
|
|
|
358 |
* @property maxURLLength
|
|
|
359 |
* @type int
|
|
|
360 |
*/
|
|
|
361 |
self.maxURLLength = MAX_URL_LENGTH;
|
|
|
362 |
|
|
|
363 |
/**
|
|
|
364 |
* Ignore modules registered on the YUI global
|
|
|
365 |
* @property ignoreRegistered
|
|
|
366 |
* @default false
|
|
|
367 |
*/
|
|
|
368 |
self.ignoreRegistered = o.ignoreRegistered;
|
|
|
369 |
|
|
|
370 |
/**
|
|
|
371 |
* Root path to prepend to module path for the combo
|
|
|
372 |
* service
|
|
|
373 |
* @property root
|
|
|
374 |
* @type string
|
|
|
375 |
* @default [YUI VERSION]/build/
|
|
|
376 |
*/
|
|
|
377 |
self.root = Y.Env.meta.root;
|
|
|
378 |
|
|
|
379 |
/**
|
|
|
380 |
* Timeout value in milliseconds. If set, self value will be used by
|
|
|
381 |
* the get utility. the timeout event will fire if
|
|
|
382 |
* a timeout occurs.
|
|
|
383 |
* @property timeout
|
|
|
384 |
* @type int
|
|
|
385 |
*/
|
|
|
386 |
self.timeout = 0;
|
|
|
387 |
|
|
|
388 |
/**
|
|
|
389 |
* A list of modules that should not be loaded, even if
|
|
|
390 |
* they turn up in the dependency tree
|
|
|
391 |
* @property ignore
|
|
|
392 |
* @type string[]
|
|
|
393 |
*/
|
|
|
394 |
// self.ignore = null;
|
|
|
395 |
|
|
|
396 |
/**
|
|
|
397 |
* A list of modules that should always be loaded, even
|
|
|
398 |
* if they have already been inserted into the page.
|
|
|
399 |
* @property force
|
|
|
400 |
* @type string[]
|
|
|
401 |
*/
|
|
|
402 |
// self.force = null;
|
|
|
403 |
|
|
|
404 |
self.forceMap = {};
|
|
|
405 |
|
|
|
406 |
/**
|
|
|
407 |
* Should we allow rollups
|
|
|
408 |
* @property allowRollup
|
|
|
409 |
* @type boolean
|
|
|
410 |
* @default false
|
|
|
411 |
*/
|
|
|
412 |
self.allowRollup = false;
|
|
|
413 |
|
|
|
414 |
/**
|
|
|
415 |
* A filter to apply to result urls. This filter will modify the default
|
|
|
416 |
* path for all modules. The default path for the YUI library is the
|
|
|
417 |
* minified version of the files (e.g., event-min.js). The filter property
|
|
|
418 |
* can be a predefined filter or a custom filter. The valid predefined
|
|
|
419 |
* filters are:
|
|
|
420 |
* <dl>
|
|
|
421 |
* <dt>DEBUG</dt>
|
|
|
422 |
* <dd>Selects the debug versions of the library (e.g., event-debug.js).
|
|
|
423 |
* This option will automatically include the Logger widget</dd>
|
|
|
424 |
* <dt>RAW</dt>
|
|
|
425 |
* <dd>Selects the non-minified version of the library (e.g., event.js).
|
|
|
426 |
* </dd>
|
|
|
427 |
* </dl>
|
|
|
428 |
* You can also define a custom filter, which must be an object literal
|
|
|
429 |
* containing a search expression and a replace string:
|
|
|
430 |
*
|
|
|
431 |
* myFilter: {
|
|
|
432 |
* 'searchExp': "-min\\.js",
|
|
|
433 |
* 'replaceStr': "-debug.js"
|
|
|
434 |
* }
|
|
|
435 |
*
|
|
|
436 |
* @property filter
|
|
|
437 |
* @type string| {searchExp: string, replaceStr: string}
|
|
|
438 |
*/
|
|
|
439 |
// self.filter = null;
|
|
|
440 |
|
|
|
441 |
/**
|
|
|
442 |
* per-component filter specification. If specified for a given
|
|
|
443 |
* component, this overrides the filter config.
|
|
|
444 |
* @property filters
|
|
|
445 |
* @type object
|
|
|
446 |
*/
|
|
|
447 |
self.filters = {};
|
|
|
448 |
|
|
|
449 |
/**
|
|
|
450 |
* The list of requested modules
|
|
|
451 |
* @property required
|
|
|
452 |
* @type {string: boolean}
|
|
|
453 |
*/
|
|
|
454 |
self.required = {};
|
|
|
455 |
|
|
|
456 |
/**
|
|
|
457 |
* If a module name is predefined when requested, it is checked againsts
|
|
|
458 |
* the patterns provided in this property. If there is a match, the
|
|
|
459 |
* module is added with the default configuration.
|
|
|
460 |
*
|
|
|
461 |
* At the moment only supporting module prefixes, but anticipate
|
|
|
462 |
* supporting at least regular expressions.
|
|
|
463 |
* @property patterns
|
|
|
464 |
* @type Object
|
|
|
465 |
*/
|
|
|
466 |
// self.patterns = Y.merge(Y.Env.meta.patterns);
|
|
|
467 |
self.patterns = {};
|
|
|
468 |
|
|
|
469 |
/**
|
|
|
470 |
* The library metadata
|
|
|
471 |
* @property moduleInfo
|
|
|
472 |
*/
|
|
|
473 |
// self.moduleInfo = Y.merge(Y.Env.meta.moduleInfo);
|
|
|
474 |
self.moduleInfo = {};
|
|
|
475 |
|
|
|
476 |
self.groups = Y.merge(Y.Env.meta.groups);
|
|
|
477 |
|
|
|
478 |
/**
|
|
|
479 |
* Provides the information used to skin the skinnable components.
|
|
|
480 |
* The following skin definition would result in 'skin1' and 'skin2'
|
|
|
481 |
* being loaded for calendar (if calendar was requested), and
|
|
|
482 |
* 'sam' for all other skinnable components:
|
|
|
483 |
*
|
|
|
484 |
* skin: {
|
|
|
485 |
* // The default skin, which is automatically applied if not
|
|
|
486 |
* // overriden by a component-specific skin definition.
|
|
|
487 |
* // Change this in to apply a different skin globally
|
|
|
488 |
* defaultSkin: 'sam',
|
|
|
489 |
*
|
|
|
490 |
* // This is combined with the loader base property to get
|
|
|
491 |
* // the default root directory for a skin. ex:
|
|
|
492 |
* // http://yui.yahooapis.com/2.3.0/build/assets/skins/sam/
|
|
|
493 |
* base: 'assets/skins/',
|
|
|
494 |
*
|
|
|
495 |
* // Any component-specific overrides can be specified here,
|
|
|
496 |
* // making it possible to load different skins for different
|
|
|
497 |
* // components. It is possible to load more than one skin
|
|
|
498 |
* // for a given component as well.
|
|
|
499 |
* overrides: {
|
|
|
500 |
* calendar: ['skin1', 'skin2']
|
|
|
501 |
* }
|
|
|
502 |
* }
|
|
|
503 |
* @property skin
|
|
|
504 |
* @type {Object}
|
|
|
505 |
*/
|
|
|
506 |
self.skin = Y.merge(Y.Env.meta.skin);
|
|
|
507 |
|
|
|
508 |
/*
|
|
|
509 |
* Map of conditional modules
|
|
|
510 |
* @since 3.2.0
|
|
|
511 |
*/
|
|
|
512 |
self.conditions = {};
|
|
|
513 |
|
|
|
514 |
// map of modules with a hash of modules that meet the requirement
|
|
|
515 |
// self.provides = {};
|
|
|
516 |
|
|
|
517 |
self.config = o;
|
|
|
518 |
self._internal = true;
|
|
|
519 |
|
|
|
520 |
self._populateCache();
|
|
|
521 |
|
|
|
522 |
/**
|
|
|
523 |
* Set when beginning to compute the dependency tree.
|
|
|
524 |
* Composed of what YUI reports to be loaded combined
|
|
|
525 |
* with what has been loaded by any instance on the page
|
|
|
526 |
* with the version number specified in the metadata.
|
|
|
527 |
* @property loaded
|
|
|
528 |
* @type {string: boolean}
|
|
|
529 |
*/
|
|
|
530 |
self.loaded = GLOBAL_LOADED[VERSION];
|
|
|
531 |
|
|
|
532 |
|
|
|
533 |
/**
|
|
|
534 |
* Should Loader fetch scripts in `async`, defaults to `true`
|
|
|
535 |
* @property async
|
|
|
536 |
*/
|
|
|
537 |
|
|
|
538 |
self.async = true;
|
|
|
539 |
|
|
|
540 |
self._inspectPage();
|
|
|
541 |
|
|
|
542 |
self._internal = false;
|
|
|
543 |
|
|
|
544 |
self._config(o);
|
|
|
545 |
|
|
|
546 |
self.forceMap = (self.force) ? Y.Array.hash(self.force) : {};
|
|
|
547 |
|
|
|
548 |
self.testresults = null;
|
|
|
549 |
|
|
|
550 |
if (Y.config.tests) {
|
|
|
551 |
self.testresults = Y.config.tests;
|
|
|
552 |
}
|
|
|
553 |
|
|
|
554 |
/**
|
|
|
555 |
* List of rollup files found in the library metadata
|
|
|
556 |
* @property rollups
|
|
|
557 |
*/
|
|
|
558 |
// self.rollups = null;
|
|
|
559 |
|
|
|
560 |
/**
|
|
|
561 |
* Whether or not to load optional dependencies for
|
|
|
562 |
* the requested modules
|
|
|
563 |
* @property loadOptional
|
|
|
564 |
* @type boolean
|
|
|
565 |
* @default false
|
|
|
566 |
*/
|
|
|
567 |
// self.loadOptional = false;
|
|
|
568 |
|
|
|
569 |
/**
|
|
|
570 |
* All of the derived dependencies in sorted order, which
|
|
|
571 |
* will be populated when either calculate() or insert()
|
|
|
572 |
* is called
|
|
|
573 |
* @property sorted
|
|
|
574 |
* @type string[]
|
|
|
575 |
*/
|
|
|
576 |
self.sorted = [];
|
|
|
577 |
|
|
|
578 |
/*
|
|
|
579 |
* A list of modules to attach to the YUI instance when complete.
|
|
|
580 |
* If not supplied, the sorted list of dependencies are applied.
|
|
|
581 |
* @property attaching
|
|
|
582 |
*/
|
|
|
583 |
// self.attaching = null;
|
|
|
584 |
|
|
|
585 |
/**
|
|
|
586 |
* Flag to indicate the dependency tree needs to be recomputed
|
|
|
587 |
* if insert is called again.
|
|
|
588 |
* @property dirty
|
|
|
589 |
* @type boolean
|
|
|
590 |
* @default true
|
|
|
591 |
*/
|
|
|
592 |
self.dirty = true;
|
|
|
593 |
|
|
|
594 |
/**
|
|
|
595 |
* List of modules inserted by the utility
|
|
|
596 |
* @property inserted
|
|
|
597 |
* @type {string: boolean}
|
|
|
598 |
*/
|
|
|
599 |
self.inserted = {};
|
|
|
600 |
|
|
|
601 |
/**
|
|
|
602 |
* List of skipped modules during insert() because the module
|
|
|
603 |
* was not defined
|
|
|
604 |
* @property skipped
|
|
|
605 |
*/
|
|
|
606 |
self.skipped = {};
|
|
|
607 |
|
|
|
608 |
// Y.on('yui:load', self.loadNext, self);
|
|
|
609 |
|
|
|
610 |
self.tested = {};
|
|
|
611 |
|
|
|
612 |
/*
|
|
|
613 |
* Cached sorted calculate results
|
|
|
614 |
* @property results
|
|
|
615 |
* @since 3.2.0
|
|
|
616 |
*/
|
|
|
617 |
//self.results = {};
|
|
|
618 |
|
|
|
619 |
if (self.ignoreRegistered) {
|
|
|
620 |
//Clear inpage already processed modules.
|
|
|
621 |
self._resetModules();
|
|
|
622 |
}
|
|
|
623 |
|
|
|
624 |
};
|
|
|
625 |
|
|
|
626 |
Y.Loader.prototype = {
|
|
|
627 |
/**
|
|
|
628 |
* Checks the cache for modules and conditions, if they do not exist
|
|
|
629 |
* process the default metadata and populate the local moduleInfo hash.
|
|
|
630 |
* @method _populateCache
|
|
|
631 |
* @private
|
|
|
632 |
*/
|
|
|
633 |
_populateCache: function() {
|
|
|
634 |
var self = this,
|
|
|
635 |
defaults = META.modules,
|
|
|
636 |
cache = GLOBAL_ENV._renderedMods,
|
|
|
637 |
i;
|
|
|
638 |
|
|
|
639 |
if (cache && !self.ignoreRegistered) {
|
|
|
640 |
for (i in cache) {
|
|
|
641 |
if (cache.hasOwnProperty(i)) {
|
|
|
642 |
self.moduleInfo[i] = Y.merge(cache[i]);
|
|
|
643 |
}
|
|
|
644 |
}
|
|
|
645 |
|
|
|
646 |
cache = GLOBAL_ENV._conditions;
|
|
|
647 |
for (i in cache) {
|
|
|
648 |
if (cache.hasOwnProperty(i)) {
|
|
|
649 |
self.conditions[i] = Y.merge(cache[i]);
|
|
|
650 |
}
|
|
|
651 |
}
|
|
|
652 |
|
|
|
653 |
} else {
|
|
|
654 |
for (i in defaults) {
|
|
|
655 |
if (defaults.hasOwnProperty(i)) {
|
|
|
656 |
self.addModule(defaults[i], i);
|
|
|
657 |
}
|
|
|
658 |
}
|
|
|
659 |
}
|
|
|
660 |
|
|
|
661 |
},
|
|
|
662 |
/**
|
|
|
663 |
* Reset modules in the module cache to a pre-processed state so additional
|
|
|
664 |
* computations with a different skin or language will work as expected.
|
|
|
665 |
* @method _resetModules
|
|
|
666 |
* @private
|
|
|
667 |
*/
|
|
|
668 |
_resetModules: function() {
|
|
|
669 |
var self = this, i, o,
|
|
|
670 |
mod, name, details;
|
|
|
671 |
for (i in self.moduleInfo) {
|
|
|
672 |
if (self.moduleInfo.hasOwnProperty(i)) {
|
|
|
673 |
mod = self.moduleInfo[i];
|
|
|
674 |
name = mod.name;
|
|
|
675 |
details = (YUI.Env.mods[name] ? YUI.Env.mods[name].details : null);
|
|
|
676 |
|
|
|
677 |
if (details) {
|
|
|
678 |
self.moduleInfo[name]._reset = true;
|
|
|
679 |
self.moduleInfo[name].requires = details.requires || [];
|
|
|
680 |
self.moduleInfo[name].optional = details.optional || [];
|
|
|
681 |
self.moduleInfo[name].supersedes = details.supercedes || [];
|
|
|
682 |
}
|
|
|
683 |
|
|
|
684 |
if (mod.defaults) {
|
|
|
685 |
for (o in mod.defaults) {
|
|
|
686 |
if (mod.defaults.hasOwnProperty(o)) {
|
|
|
687 |
if (mod[o]) {
|
|
|
688 |
mod[o] = mod.defaults[o];
|
|
|
689 |
}
|
|
|
690 |
}
|
|
|
691 |
}
|
|
|
692 |
}
|
|
|
693 |
delete mod.langCache;
|
|
|
694 |
delete mod.skinCache;
|
|
|
695 |
if (mod.skinnable) {
|
|
|
696 |
self._addSkin(self.skin.defaultSkin, mod.name);
|
|
|
697 |
}
|
|
|
698 |
}
|
|
|
699 |
}
|
|
|
700 |
},
|
|
|
701 |
/**
|
|
|
702 |
Regex that matches a CSS URL. Used to guess the file type when it's not
|
|
|
703 |
specified.
|
|
|
704 |
|
|
|
705 |
@property REGEX_CSS
|
|
|
706 |
@type RegExp
|
|
|
707 |
@final
|
|
|
708 |
@protected
|
|
|
709 |
@since 3.5.0
|
|
|
710 |
**/
|
|
|
711 |
REGEX_CSS: /\.css(?:[?;].*)?$/i,
|
|
|
712 |
|
|
|
713 |
/**
|
|
|
714 |
* Default filters for raw and debug
|
|
|
715 |
* @property FILTER_DEFS
|
|
|
716 |
* @type Object
|
|
|
717 |
* @final
|
|
|
718 |
* @protected
|
|
|
719 |
*/
|
|
|
720 |
FILTER_DEFS: {
|
|
|
721 |
RAW: {
|
|
|
722 |
'searchExp': '-min\\.js',
|
|
|
723 |
'replaceStr': '.js'
|
|
|
724 |
},
|
|
|
725 |
DEBUG: {
|
|
|
726 |
'searchExp': '-min\\.js',
|
|
|
727 |
'replaceStr': '-debug.js'
|
|
|
728 |
},
|
|
|
729 |
COVERAGE: {
|
|
|
730 |
'searchExp': '-min\\.js',
|
|
|
731 |
'replaceStr': '-coverage.js'
|
|
|
732 |
}
|
|
|
733 |
},
|
|
|
734 |
/*
|
|
|
735 |
* Check the pages meta-data and cache the result.
|
|
|
736 |
* @method _inspectPage
|
|
|
737 |
* @private
|
|
|
738 |
*/
|
|
|
739 |
_inspectPage: function() {
|
|
|
740 |
var self = this, v, m, req, mr, i;
|
|
|
741 |
|
|
|
742 |
//Inspect the page for CSS only modules and mark them as loaded.
|
|
|
743 |
for (i in self.moduleInfo) {
|
|
|
744 |
if (self.moduleInfo.hasOwnProperty(i)) {
|
|
|
745 |
v = self.moduleInfo[i];
|
|
|
746 |
if (v.type && v.type === CSS) {
|
|
|
747 |
if (self.isCSSLoaded(v.name)) {
|
|
|
748 |
Y.log('Found CSS module on page: ' + v.name, 'info', 'loader');
|
|
|
749 |
self.loaded[i] = true;
|
|
|
750 |
}
|
|
|
751 |
}
|
|
|
752 |
}
|
|
|
753 |
}
|
|
|
754 |
for (i in ON_PAGE) {
|
|
|
755 |
if (ON_PAGE.hasOwnProperty(i)) {
|
|
|
756 |
v = ON_PAGE[i];
|
|
|
757 |
if (v.details) {
|
|
|
758 |
m = self.moduleInfo[v.name];
|
|
|
759 |
req = v.details.requires;
|
|
|
760 |
mr = m && m.requires;
|
|
|
761 |
|
|
|
762 |
if (m) {
|
|
|
763 |
if (!m._inspected && req && mr.length !== req.length) {
|
|
|
764 |
// console.log('deleting ' + m.name);
|
|
|
765 |
delete m.expanded;
|
|
|
766 |
}
|
|
|
767 |
} else {
|
|
|
768 |
m = self.addModule(v.details, i);
|
|
|
769 |
}
|
|
|
770 |
m._inspected = true;
|
|
|
771 |
}
|
|
|
772 |
}
|
|
|
773 |
}
|
|
|
774 |
},
|
|
|
775 |
/*
|
|
|
776 |
* returns true if b is not loaded, and is required directly or by means of modules it supersedes.
|
|
|
777 |
* @private
|
|
|
778 |
* @method _requires
|
|
|
779 |
* @param {String} mod1 The first module to compare
|
|
|
780 |
* @param {String} mod2 The second module to compare
|
|
|
781 |
*/
|
|
|
782 |
_requires: function(mod1, mod2) {
|
|
|
783 |
|
|
|
784 |
var i, rm, after_map, s,
|
|
|
785 |
info = this.moduleInfo,
|
|
|
786 |
m = info[mod1],
|
|
|
787 |
other = info[mod2];
|
|
|
788 |
|
|
|
789 |
if (!m || !other) {
|
|
|
790 |
return false;
|
|
|
791 |
}
|
|
|
792 |
|
|
|
793 |
rm = m.expanded_map;
|
|
|
794 |
after_map = m.after_map;
|
|
|
795 |
|
|
|
796 |
// check if this module should be sorted after the other
|
|
|
797 |
// do this first to short circut circular deps
|
|
|
798 |
if (after_map && (mod2 in after_map)) {
|
|
|
799 |
return true;
|
|
|
800 |
}
|
|
|
801 |
|
|
|
802 |
after_map = other.after_map;
|
|
|
803 |
|
|
|
804 |
// and vis-versa
|
|
|
805 |
if (after_map && (mod1 in after_map)) {
|
|
|
806 |
return false;
|
|
|
807 |
}
|
|
|
808 |
|
|
|
809 |
// check if this module requires one the other supersedes
|
|
|
810 |
s = info[mod2] && info[mod2].supersedes;
|
|
|
811 |
if (s) {
|
|
|
812 |
for (i = 0; i < s.length; i++) {
|
|
|
813 |
if (this._requires(mod1, s[i])) {
|
|
|
814 |
return true;
|
|
|
815 |
}
|
|
|
816 |
}
|
|
|
817 |
}
|
|
|
818 |
|
|
|
819 |
s = info[mod1] && info[mod1].supersedes;
|
|
|
820 |
if (s) {
|
|
|
821 |
for (i = 0; i < s.length; i++) {
|
|
|
822 |
if (this._requires(mod2, s[i])) {
|
|
|
823 |
return false;
|
|
|
824 |
}
|
|
|
825 |
}
|
|
|
826 |
}
|
|
|
827 |
|
|
|
828 |
// check if this module requires the other directly
|
|
|
829 |
// if (r && yArray.indexOf(r, mod2) > -1) {
|
|
|
830 |
if (rm && (mod2 in rm)) {
|
|
|
831 |
return true;
|
|
|
832 |
}
|
|
|
833 |
|
|
|
834 |
// external css files should be sorted below yui css
|
|
|
835 |
if (m.ext && m.type === CSS && !other.ext && other.type === CSS) {
|
|
|
836 |
return true;
|
|
|
837 |
}
|
|
|
838 |
|
|
|
839 |
return false;
|
|
|
840 |
},
|
|
|
841 |
/**
|
|
|
842 |
* Apply a new config to the Loader instance
|
|
|
843 |
* @method _config
|
|
|
844 |
* @private
|
|
|
845 |
* @param {Object} o The new configuration
|
|
|
846 |
*/
|
|
|
847 |
_config: function(o) {
|
|
|
848 |
var i, j, val, a, f, group, groupName, self = this,
|
|
|
849 |
mods = [], mod;
|
|
|
850 |
// apply config values
|
|
|
851 |
if (o) {
|
|
|
852 |
for (i in o) {
|
|
|
853 |
if (o.hasOwnProperty(i)) {
|
|
|
854 |
val = o[i];
|
|
|
855 |
//TODO This should be a case
|
|
|
856 |
if (i === 'require') {
|
|
|
857 |
self.require(val);
|
|
|
858 |
} else if (i === 'skin') {
|
|
|
859 |
//If the config.skin is a string, format to the expected object
|
|
|
860 |
if (typeof val === 'string') {
|
|
|
861 |
self.skin.defaultSkin = o.skin;
|
|
|
862 |
val = {
|
|
|
863 |
defaultSkin: val
|
|
|
864 |
};
|
|
|
865 |
}
|
|
|
866 |
|
|
|
867 |
Y.mix(self.skin, val, true);
|
|
|
868 |
} else if (i === 'groups') {
|
|
|
869 |
for (j in val) {
|
|
|
870 |
if (val.hasOwnProperty(j)) {
|
|
|
871 |
// Y.log('group: ' + j);
|
|
|
872 |
groupName = j;
|
|
|
873 |
group = val[j];
|
|
|
874 |
self.addGroup(group, groupName);
|
|
|
875 |
if (group.aliases) {
|
|
|
876 |
for (a in group.aliases) {
|
|
|
877 |
if (group.aliases.hasOwnProperty(a)) {
|
|
|
878 |
self.addAlias(group.aliases[a], a);
|
|
|
879 |
}
|
|
|
880 |
}
|
|
|
881 |
}
|
|
|
882 |
}
|
|
|
883 |
}
|
|
|
884 |
|
|
|
885 |
} else if (i === 'modules') {
|
|
|
886 |
// add a hash of module definitions
|
|
|
887 |
for (j in val) {
|
|
|
888 |
if (val.hasOwnProperty(j)) {
|
|
|
889 |
self.addModule(val[j], j);
|
|
|
890 |
}
|
|
|
891 |
}
|
|
|
892 |
} else if (i === 'aliases') {
|
|
|
893 |
for (j in val) {
|
|
|
894 |
if (val.hasOwnProperty(j)) {
|
|
|
895 |
self.addAlias(val[j], j);
|
|
|
896 |
}
|
|
|
897 |
}
|
|
|
898 |
} else if (i === 'gallery') {
|
|
|
899 |
if (this.groups.gallery.update) {
|
|
|
900 |
this.groups.gallery.update(val, o);
|
|
|
901 |
}
|
|
|
902 |
} else if (i === 'yui2' || i === '2in3') {
|
|
|
903 |
if (this.groups.yui2.update) {
|
|
|
904 |
this.groups.yui2.update(o['2in3'], o.yui2, o);
|
|
|
905 |
}
|
|
|
906 |
} else {
|
|
|
907 |
self[i] = val;
|
|
|
908 |
}
|
|
|
909 |
}
|
|
|
910 |
}
|
|
|
911 |
}
|
|
|
912 |
|
|
|
913 |
// fix filter
|
|
|
914 |
f = self.filter;
|
|
|
915 |
|
|
|
916 |
if (L.isString(f)) {
|
|
|
917 |
f = f.toUpperCase();
|
|
|
918 |
self.filterName = f;
|
|
|
919 |
self.filter = self.FILTER_DEFS[f];
|
|
|
920 |
if (f === 'DEBUG') {
|
|
|
921 |
self.require('yui-log', 'dump');
|
|
|
922 |
}
|
|
|
923 |
}
|
|
|
924 |
|
|
|
925 |
if (self.filterName && self.coverage) {
|
|
|
926 |
if (self.filterName === 'COVERAGE' && L.isArray(self.coverage) && self.coverage.length) {
|
|
|
927 |
for (i = 0; i < self.coverage.length; i++) {
|
|
|
928 |
mod = self.coverage[i];
|
|
|
929 |
if (self.moduleInfo[mod] && self.moduleInfo[mod].use) {
|
|
|
930 |
mods = [].concat(mods, self.moduleInfo[mod].use);
|
|
|
931 |
} else {
|
|
|
932 |
mods.push(mod);
|
|
|
933 |
}
|
|
|
934 |
}
|
|
|
935 |
self.filters = self.filters || {};
|
|
|
936 |
Y.Array.each(mods, function(mod) {
|
|
|
937 |
self.filters[mod] = self.FILTER_DEFS.COVERAGE;
|
|
|
938 |
});
|
|
|
939 |
self.filterName = 'RAW';
|
|
|
940 |
self.filter = self.FILTER_DEFS[self.filterName];
|
|
|
941 |
}
|
|
|
942 |
}
|
|
|
943 |
|
|
|
944 |
},
|
|
|
945 |
|
|
|
946 |
/**
|
|
|
947 |
* Returns the skin module name for the specified skin name. If a
|
|
|
948 |
* module name is supplied, the returned skin module name is
|
|
|
949 |
* specific to the module passed in.
|
|
|
950 |
* @method formatSkin
|
|
|
951 |
* @param {string} skin the name of the skin.
|
|
|
952 |
* @param {string} mod optional: the name of a module to skin.
|
|
|
953 |
* @return {string} the full skin module name.
|
|
|
954 |
*/
|
|
|
955 |
formatSkin: function(skin, mod) {
|
|
|
956 |
var s = SKIN_PREFIX + skin;
|
|
|
957 |
if (mod) {
|
|
|
958 |
s = s + '-' + mod;
|
|
|
959 |
}
|
|
|
960 |
|
|
|
961 |
return s;
|
|
|
962 |
},
|
|
|
963 |
|
|
|
964 |
/**
|
|
|
965 |
* Adds the skin def to the module info
|
|
|
966 |
* @method _addSkin
|
|
|
967 |
* @param {string} skin the name of the skin.
|
|
|
968 |
* @param {string} mod the name of the module.
|
|
|
969 |
* @param {string} parent parent module if this is a skin of a
|
|
|
970 |
* submodule or plugin.
|
|
|
971 |
* @return {string} the module name for the skin.
|
|
|
972 |
* @private
|
|
|
973 |
*/
|
|
|
974 |
_addSkin: function(skin, mod, parent) {
|
|
|
975 |
var mdef, pkg, name, nmod,
|
|
|
976 |
info = this.moduleInfo,
|
|
|
977 |
sinf = this.skin,
|
|
|
978 |
ext = info[mod] && info[mod].ext;
|
|
|
979 |
|
|
|
980 |
// Add a module definition for the module-specific skin css
|
|
|
981 |
if (mod) {
|
|
|
982 |
name = this.formatSkin(skin, mod);
|
|
|
983 |
if (!info[name]) {
|
|
|
984 |
mdef = info[mod];
|
|
|
985 |
pkg = mdef.pkg || mod;
|
|
|
986 |
nmod = {
|
|
|
987 |
skin: true,
|
|
|
988 |
name: name,
|
|
|
989 |
group: mdef.group,
|
|
|
990 |
type: 'css',
|
|
|
991 |
after: sinf.after,
|
|
|
992 |
path: (parent || pkg) + '/' + sinf.base + skin +
|
|
|
993 |
'/' + mod + '.css',
|
|
|
994 |
ext: ext
|
|
|
995 |
};
|
|
|
996 |
if (mdef.base) {
|
|
|
997 |
nmod.base = mdef.base;
|
|
|
998 |
}
|
|
|
999 |
if (mdef.configFn) {
|
|
|
1000 |
nmod.configFn = mdef.configFn;
|
|
|
1001 |
}
|
|
|
1002 |
this.addModule(nmod, name);
|
|
|
1003 |
|
|
|
1004 |
Y.log('Adding skin (' + name + '), ' + parent + ', ' + pkg + ', ' + info[name].path, 'info', 'loader');
|
|
|
1005 |
}
|
|
|
1006 |
}
|
|
|
1007 |
|
|
|
1008 |
return name;
|
|
|
1009 |
},
|
|
|
1010 |
/**
|
|
|
1011 |
* Adds an alias module to the system
|
|
|
1012 |
* @method addAlias
|
|
|
1013 |
* @param {Array} use An array of modules that makes up this alias
|
|
|
1014 |
* @param {String} name The name of the alias
|
|
|
1015 |
* @example
|
|
|
1016 |
* var loader = new Y.Loader({});
|
|
|
1017 |
* loader.addAlias([ 'node', 'yql' ], 'davglass');
|
|
|
1018 |
* loader.require(['davglass']);
|
|
|
1019 |
* var out = loader.resolve(true);
|
|
|
1020 |
*
|
|
|
1021 |
* //out.js will contain Node and YQL modules
|
|
|
1022 |
*/
|
|
|
1023 |
addAlias: function(use, name) {
|
|
|
1024 |
YUI.Env.aliases[name] = use;
|
|
|
1025 |
this.addModule({
|
|
|
1026 |
name: name,
|
|
|
1027 |
use: use
|
|
|
1028 |
});
|
|
|
1029 |
},
|
|
|
1030 |
/**
|
|
|
1031 |
* Add a new module group
|
|
|
1032 |
* @method addGroup
|
|
|
1033 |
* @param {Object} config An object containing the group configuration data
|
|
|
1034 |
* @param {String} config.name required, the group name
|
|
|
1035 |
* @param {String} config.base The base directory for this module group
|
|
|
1036 |
* @param {String} config.root The root path to add to each combo resource path
|
|
|
1037 |
* @param {Boolean} config.combine Should the request be combined
|
|
|
1038 |
* @param {String} config.comboBase Combo service base path
|
|
|
1039 |
* @param {Object} config.modules The group of modules
|
|
|
1040 |
* @param {String} name the group name.
|
|
|
1041 |
* @example
|
|
|
1042 |
* var loader = new Y.Loader({});
|
|
|
1043 |
* loader.addGroup({
|
|
|
1044 |
* name: 'davglass',
|
|
|
1045 |
* combine: true,
|
|
|
1046 |
* comboBase: '/combo?',
|
|
|
1047 |
* root: '',
|
|
|
1048 |
* modules: {
|
|
|
1049 |
* //Module List here
|
|
|
1050 |
* }
|
|
|
1051 |
* }, 'davglass');
|
|
|
1052 |
*/
|
|
|
1053 |
addGroup: function(o, name) {
|
|
|
1054 |
var mods = o.modules,
|
|
|
1055 |
self = this, i, v;
|
|
|
1056 |
|
|
|
1057 |
name = name || o.name;
|
|
|
1058 |
o.name = name;
|
|
|
1059 |
self.groups[name] = o;
|
|
|
1060 |
|
|
|
1061 |
if (o.patterns) {
|
|
|
1062 |
for (i in o.patterns) {
|
|
|
1063 |
if (o.patterns.hasOwnProperty(i)) {
|
|
|
1064 |
o.patterns[i].group = name;
|
|
|
1065 |
self.patterns[i] = o.patterns[i];
|
|
|
1066 |
}
|
|
|
1067 |
}
|
|
|
1068 |
}
|
|
|
1069 |
|
|
|
1070 |
if (mods) {
|
|
|
1071 |
for (i in mods) {
|
|
|
1072 |
if (mods.hasOwnProperty(i)) {
|
|
|
1073 |
v = mods[i];
|
|
|
1074 |
if (typeof v === 'string') {
|
|
|
1075 |
v = { name: i, fullpath: v };
|
|
|
1076 |
}
|
|
|
1077 |
v.group = name;
|
|
|
1078 |
self.addModule(v, i);
|
|
|
1079 |
}
|
|
|
1080 |
}
|
|
|
1081 |
}
|
|
|
1082 |
},
|
|
|
1083 |
|
|
|
1084 |
/**
|
|
|
1085 |
* Add a new module to the component metadata.
|
|
|
1086 |
* @method addModule
|
|
|
1087 |
* @param {Object} config An object containing the module data.
|
|
|
1088 |
* @param {String} config.name Required, the component name
|
|
|
1089 |
* @param {String} config.type Required, the component type (js or css)
|
|
|
1090 |
* @param {String} config.path Required, the path to the script from `base`
|
|
|
1091 |
* @param {Array} config.requires Array of modules required by this component
|
|
|
1092 |
* @param {Array} [config.optional] Array of optional modules for this component
|
|
|
1093 |
* @param {Array} [config.supersedes] Array of the modules this component replaces
|
|
|
1094 |
* @param {Array} [config.after] Array of modules the components which, if present, should be sorted above this one
|
|
|
1095 |
* @param {Object} [config.after_map] Faster alternative to 'after' -- supply a hash instead of an array
|
|
|
1096 |
* @param {Number} [config.rollup] The number of superseded modules required for automatic rollup
|
|
|
1097 |
* @param {String} [config.fullpath] If `fullpath` is specified, this is used instead of the configured `base + path`
|
|
|
1098 |
* @param {Boolean} [config.skinnable] Flag to determine if skin assets should automatically be pulled in
|
|
|
1099 |
* @param {Object} [config.submodules] Hash of submodules
|
|
|
1100 |
* @param {String} [config.group] The group the module belongs to -- this is set automatically when it is added as part of a group configuration.
|
|
|
1101 |
* @param {Array} [config.lang] Array of BCP 47 language tags of languages for which this module has localized resource bundles, e.g., `["en-GB", "zh-Hans-CN"]`
|
|
|
1102 |
* @param {Object} [config.condition] Specifies that the module should be loaded automatically if a condition is met. This is an object with up to four fields:
|
|
|
1103 |
* @param {String} [config.condition.trigger] The name of a module that can trigger the auto-load
|
|
|
1104 |
* @param {Function} [config.condition.test] A function that returns true when the module is to be loaded.
|
|
|
1105 |
* @param {String} [config.condition.ua] The UA name of <a href="UA.html">Y.UA</a> object that returns true when the module is to be loaded. e.g., `"ie"`, `"nodejs"`.
|
|
|
1106 |
* @param {String} [config.condition.when] Specifies the load order of the conditional module
|
|
|
1107 |
* with regard to the position of the trigger module.
|
|
|
1108 |
* This should be one of three values: `before`, `after`, or `instead`. The default is `after`.
|
|
|
1109 |
* @param {Object} [config.testresults] A hash of test results from `Y.Features.all()`
|
|
|
1110 |
* @param {Function} [config.configFn] A function to exectute when configuring this module
|
|
|
1111 |
* @param {Object} config.configFn.mod The module config, modifying this object will modify it's config. Returning false will delete the module's config.
|
|
|
1112 |
* @param {String} [name] The module name, required if not in the module data.
|
|
|
1113 |
* @return {Object} the module definition or null if the object passed in did not provide all required attributes.
|
|
|
1114 |
*/
|
|
|
1115 |
addModule: function(o, name) {
|
|
|
1116 |
name = name || o.name;
|
|
|
1117 |
|
|
|
1118 |
if (typeof o === 'string') {
|
|
|
1119 |
o = { name: name, fullpath: o };
|
|
|
1120 |
}
|
|
|
1121 |
|
|
|
1122 |
|
|
|
1123 |
var subs, i, l, t, sup, s, smod, plugins, plug,
|
|
|
1124 |
j, langs, packName, supName, flatSup, flatLang, lang, ret,
|
|
|
1125 |
overrides, skinname, when, g, p,
|
|
|
1126 |
conditions = this.conditions, trigger;
|
|
|
1127 |
|
|
|
1128 |
//Only merge this data if the temp flag is set
|
|
|
1129 |
//from an earlier pass from a pattern or else
|
|
|
1130 |
//an override module (YUI_config) can not be used to
|
|
|
1131 |
//replace a default module.
|
|
|
1132 |
if (this.moduleInfo[name] && this.moduleInfo[name].temp) {
|
|
|
1133 |
//This catches temp modules loaded via a pattern
|
|
|
1134 |
// The module will be added twice, once from the pattern and
|
|
|
1135 |
// Once from the actual add call, this ensures that properties
|
|
|
1136 |
// that were added to the module the first time around (group: gallery)
|
|
|
1137 |
// are also added the second time around too.
|
|
|
1138 |
o = Y.merge(this.moduleInfo[name], o);
|
|
|
1139 |
}
|
|
|
1140 |
|
|
|
1141 |
o.name = name;
|
|
|
1142 |
|
|
|
1143 |
if (!o || !o.name) {
|
|
|
1144 |
return null;
|
|
|
1145 |
}
|
|
|
1146 |
|
|
|
1147 |
if (!o.type) {
|
|
|
1148 |
//Always assume it's javascript unless the CSS pattern is matched.
|
|
|
1149 |
o.type = JS;
|
|
|
1150 |
p = o.path || o.fullpath;
|
|
|
1151 |
if (p && this.REGEX_CSS.test(p)) {
|
|
|
1152 |
Y.log('Auto determined module type as CSS', 'warn', 'loader');
|
|
|
1153 |
o.type = CSS;
|
|
|
1154 |
}
|
|
|
1155 |
}
|
|
|
1156 |
|
|
|
1157 |
if (!o.path && !o.fullpath) {
|
|
|
1158 |
o.path = _path(name, name, o.type);
|
|
|
1159 |
}
|
|
|
1160 |
o.supersedes = o.supersedes || o.use;
|
|
|
1161 |
|
|
|
1162 |
o.ext = ('ext' in o) ? o.ext : (this._internal) ? false : true;
|
|
|
1163 |
|
|
|
1164 |
// Handle submodule logic
|
|
|
1165 |
subs = o.submodules;
|
|
|
1166 |
|
|
|
1167 |
this.moduleInfo[name] = o;
|
|
|
1168 |
|
|
|
1169 |
o.requires = o.requires || [];
|
|
|
1170 |
|
|
|
1171 |
/*
|
|
|
1172 |
Only allowing the cascade of requires information, since
|
|
|
1173 |
optional and supersedes are far more fine grained than
|
|
|
1174 |
a blanket requires is.
|
|
|
1175 |
*/
|
|
|
1176 |
if (this.requires) {
|
|
|
1177 |
for (i = 0; i < this.requires.length; i++) {
|
|
|
1178 |
o.requires.push(this.requires[i]);
|
|
|
1179 |
}
|
|
|
1180 |
}
|
|
|
1181 |
if (o.group && this.groups && this.groups[o.group]) {
|
|
|
1182 |
g = this.groups[o.group];
|
|
|
1183 |
if (g.requires) {
|
|
|
1184 |
for (i = 0; i < g.requires.length; i++) {
|
|
|
1185 |
o.requires.push(g.requires[i]);
|
|
|
1186 |
}
|
|
|
1187 |
}
|
|
|
1188 |
}
|
|
|
1189 |
|
|
|
1190 |
|
|
|
1191 |
if (!o.defaults) {
|
|
|
1192 |
o.defaults = {
|
|
|
1193 |
requires: o.requires ? [].concat(o.requires) : null,
|
|
|
1194 |
supersedes: o.supersedes ? [].concat(o.supersedes) : null,
|
|
|
1195 |
optional: o.optional ? [].concat(o.optional) : null
|
|
|
1196 |
};
|
|
|
1197 |
}
|
|
|
1198 |
|
|
|
1199 |
if (o.skinnable && o.ext && o.temp) {
|
|
|
1200 |
skinname = this._addSkin(this.skin.defaultSkin, name);
|
|
|
1201 |
o.requires.unshift(skinname);
|
|
|
1202 |
}
|
|
|
1203 |
|
|
|
1204 |
if (o.requires.length) {
|
|
|
1205 |
o.requires = this.filterRequires(o.requires) || [];
|
|
|
1206 |
}
|
|
|
1207 |
|
|
|
1208 |
if (!o.langPack && o.lang) {
|
|
|
1209 |
langs = yArray(o.lang);
|
|
|
1210 |
for (j = 0; j < langs.length; j++) {
|
|
|
1211 |
lang = langs[j];
|
|
|
1212 |
packName = this.getLangPackName(lang, name);
|
|
|
1213 |
smod = this.moduleInfo[packName];
|
|
|
1214 |
if (!smod) {
|
|
|
1215 |
smod = this._addLangPack(lang, o, packName);
|
|
|
1216 |
}
|
|
|
1217 |
}
|
|
|
1218 |
}
|
|
|
1219 |
|
|
|
1220 |
|
|
|
1221 |
if (subs) {
|
|
|
1222 |
sup = o.supersedes || [];
|
|
|
1223 |
l = 0;
|
|
|
1224 |
|
|
|
1225 |
for (i in subs) {
|
|
|
1226 |
if (subs.hasOwnProperty(i)) {
|
|
|
1227 |
s = subs[i];
|
|
|
1228 |
|
|
|
1229 |
s.path = s.path || _path(name, i, o.type);
|
|
|
1230 |
s.pkg = name;
|
|
|
1231 |
s.group = o.group;
|
|
|
1232 |
|
|
|
1233 |
if (s.supersedes) {
|
|
|
1234 |
sup = sup.concat(s.supersedes);
|
|
|
1235 |
}
|
|
|
1236 |
|
|
|
1237 |
smod = this.addModule(s, i);
|
|
|
1238 |
sup.push(i);
|
|
|
1239 |
|
|
|
1240 |
if (smod.skinnable) {
|
|
|
1241 |
o.skinnable = true;
|
|
|
1242 |
overrides = this.skin.overrides;
|
|
|
1243 |
if (overrides && overrides[i]) {
|
|
|
1244 |
for (j = 0; j < overrides[i].length; j++) {
|
|
|
1245 |
skinname = this._addSkin(overrides[i][j],
|
|
|
1246 |
i, name);
|
|
|
1247 |
sup.push(skinname);
|
|
|
1248 |
}
|
|
|
1249 |
}
|
|
|
1250 |
skinname = this._addSkin(this.skin.defaultSkin,
|
|
|
1251 |
i, name);
|
|
|
1252 |
sup.push(skinname);
|
|
|
1253 |
}
|
|
|
1254 |
|
|
|
1255 |
// looks like we are expected to work out the metadata
|
|
|
1256 |
// for the parent module language packs from what is
|
|
|
1257 |
// specified in the child modules.
|
|
|
1258 |
if (s.lang && s.lang.length) {
|
|
|
1259 |
|
|
|
1260 |
langs = yArray(s.lang);
|
|
|
1261 |
for (j = 0; j < langs.length; j++) {
|
|
|
1262 |
lang = langs[j];
|
|
|
1263 |
packName = this.getLangPackName(lang, name);
|
|
|
1264 |
supName = this.getLangPackName(lang, i);
|
|
|
1265 |
smod = this.moduleInfo[packName];
|
|
|
1266 |
|
|
|
1267 |
if (!smod) {
|
|
|
1268 |
smod = this._addLangPack(lang, o, packName);
|
|
|
1269 |
}
|
|
|
1270 |
|
|
|
1271 |
flatSup = flatSup || yArray.hash(smod.supersedes);
|
|
|
1272 |
|
|
|
1273 |
if (!(supName in flatSup)) {
|
|
|
1274 |
smod.supersedes.push(supName);
|
|
|
1275 |
}
|
|
|
1276 |
|
|
|
1277 |
o.lang = o.lang || [];
|
|
|
1278 |
|
|
|
1279 |
flatLang = flatLang || yArray.hash(o.lang);
|
|
|
1280 |
|
|
|
1281 |
if (!(lang in flatLang)) {
|
|
|
1282 |
o.lang.push(lang);
|
|
|
1283 |
}
|
|
|
1284 |
|
|
|
1285 |
// Y.log('pack ' + packName + ' should supersede ' + supName);
|
|
|
1286 |
// Add rollup file, need to add to supersedes list too
|
|
|
1287 |
|
|
|
1288 |
// default packages
|
|
|
1289 |
packName = this.getLangPackName(ROOT_LANG, name);
|
|
|
1290 |
supName = this.getLangPackName(ROOT_LANG, i);
|
|
|
1291 |
|
|
|
1292 |
smod = this.moduleInfo[packName];
|
|
|
1293 |
|
|
|
1294 |
if (!smod) {
|
|
|
1295 |
smod = this._addLangPack(lang, o, packName);
|
|
|
1296 |
}
|
|
|
1297 |
|
|
|
1298 |
if (!(supName in flatSup)) {
|
|
|
1299 |
smod.supersedes.push(supName);
|
|
|
1300 |
}
|
|
|
1301 |
|
|
|
1302 |
// Y.log('pack ' + packName + ' should supersede ' + supName);
|
|
|
1303 |
// Add rollup file, need to add to supersedes list too
|
|
|
1304 |
|
|
|
1305 |
}
|
|
|
1306 |
}
|
|
|
1307 |
|
|
|
1308 |
l++;
|
|
|
1309 |
}
|
|
|
1310 |
}
|
|
|
1311 |
//o.supersedes = YObject.keys(yArray.hash(sup));
|
|
|
1312 |
o.supersedes = yArray.dedupe(sup);
|
|
|
1313 |
if (this.allowRollup) {
|
|
|
1314 |
o.rollup = (l < 4) ? l : Math.min(l - 1, 4);
|
|
|
1315 |
}
|
|
|
1316 |
}
|
|
|
1317 |
|
|
|
1318 |
plugins = o.plugins;
|
|
|
1319 |
if (plugins) {
|
|
|
1320 |
for (i in plugins) {
|
|
|
1321 |
if (plugins.hasOwnProperty(i)) {
|
|
|
1322 |
plug = plugins[i];
|
|
|
1323 |
plug.pkg = name;
|
|
|
1324 |
plug.path = plug.path || _path(name, i, o.type);
|
|
|
1325 |
plug.requires = plug.requires || [];
|
|
|
1326 |
plug.group = o.group;
|
|
|
1327 |
this.addModule(plug, i);
|
|
|
1328 |
if (o.skinnable) {
|
|
|
1329 |
this._addSkin(this.skin.defaultSkin, i, name);
|
|
|
1330 |
}
|
|
|
1331 |
|
|
|
1332 |
}
|
|
|
1333 |
}
|
|
|
1334 |
}
|
|
|
1335 |
|
|
|
1336 |
if (o.condition) {
|
|
|
1337 |
t = o.condition.trigger;
|
|
|
1338 |
if (YUI.Env.aliases[t]) {
|
|
|
1339 |
t = YUI.Env.aliases[t];
|
|
|
1340 |
}
|
|
|
1341 |
if (!Y.Lang.isArray(t)) {
|
|
|
1342 |
t = [t];
|
|
|
1343 |
}
|
|
|
1344 |
|
|
|
1345 |
for (i = 0; i < t.length; i++) {
|
|
|
1346 |
trigger = t[i];
|
|
|
1347 |
when = o.condition.when;
|
|
|
1348 |
conditions[trigger] = conditions[trigger] || {};
|
|
|
1349 |
conditions[trigger][name] = o.condition;
|
|
|
1350 |
// the 'when' attribute can be 'before', 'after', or 'instead'
|
|
|
1351 |
// the default is after.
|
|
|
1352 |
if (when && when !== 'after') {
|
|
|
1353 |
if (when === 'instead') { // replace the trigger
|
|
|
1354 |
o.supersedes = o.supersedes || [];
|
|
|
1355 |
o.supersedes.push(trigger);
|
|
|
1356 |
}
|
|
|
1357 |
// before the trigger
|
|
|
1358 |
// the trigger requires the conditional mod,
|
|
|
1359 |
// so it should appear before the conditional
|
|
|
1360 |
// mod if we do not intersede.
|
|
|
1361 |
} else { // after the trigger
|
|
|
1362 |
o.after = o.after || [];
|
|
|
1363 |
o.after.push(trigger);
|
|
|
1364 |
}
|
|
|
1365 |
}
|
|
|
1366 |
}
|
|
|
1367 |
|
|
|
1368 |
if (o.supersedes) {
|
|
|
1369 |
o.supersedes = this.filterRequires(o.supersedes);
|
|
|
1370 |
}
|
|
|
1371 |
|
|
|
1372 |
if (o.after) {
|
|
|
1373 |
o.after = this.filterRequires(o.after);
|
|
|
1374 |
o.after_map = yArray.hash(o.after);
|
|
|
1375 |
}
|
|
|
1376 |
|
|
|
1377 |
// this.dirty = true;
|
|
|
1378 |
|
|
|
1379 |
if (o.configFn) {
|
|
|
1380 |
ret = o.configFn(o);
|
|
|
1381 |
if (ret === false) {
|
|
|
1382 |
Y.log('Config function returned false for ' + name + ', skipping.', 'info', 'loader');
|
|
|
1383 |
delete this.moduleInfo[name];
|
|
|
1384 |
delete GLOBAL_ENV._renderedMods[name];
|
|
|
1385 |
o = null;
|
|
|
1386 |
}
|
|
|
1387 |
}
|
|
|
1388 |
//Add to global cache
|
|
|
1389 |
if (o) {
|
|
|
1390 |
if (!GLOBAL_ENV._renderedMods) {
|
|
|
1391 |
GLOBAL_ENV._renderedMods = {};
|
|
|
1392 |
}
|
|
|
1393 |
GLOBAL_ENV._renderedMods[name] = Y.mix(GLOBAL_ENV._renderedMods[name] || {}, o);
|
|
|
1394 |
GLOBAL_ENV._conditions = conditions;
|
|
|
1395 |
}
|
|
|
1396 |
|
|
|
1397 |
return o;
|
|
|
1398 |
},
|
|
|
1399 |
|
|
|
1400 |
/**
|
|
|
1401 |
* Add a requirement for one or more module
|
|
|
1402 |
* @method require
|
|
|
1403 |
* @param {string[] | string*} what the modules to load.
|
|
|
1404 |
*/
|
|
|
1405 |
require: function(what) {
|
|
|
1406 |
var a = (typeof what === 'string') ? yArray(arguments) : what;
|
|
|
1407 |
this.dirty = true;
|
|
|
1408 |
this.required = Y.merge(this.required, yArray.hash(this.filterRequires(a)));
|
|
|
1409 |
|
|
|
1410 |
this._explodeRollups();
|
|
|
1411 |
},
|
|
|
1412 |
/**
|
|
|
1413 |
* Grab all the items that were asked for, check to see if the Loader
|
|
|
1414 |
* meta-data contains a "use" array. If it doesm remove the asked item and replace it with
|
|
|
1415 |
* the content of the "use".
|
|
|
1416 |
* This will make asking for: "dd"
|
|
|
1417 |
* Actually ask for: "dd-ddm-base,dd-ddm,dd-ddm-drop,dd-drag,dd-proxy,dd-constrain,dd-drop,dd-scroll,dd-drop-plugin"
|
|
|
1418 |
* @private
|
|
|
1419 |
* @method _explodeRollups
|
|
|
1420 |
*/
|
|
|
1421 |
_explodeRollups: function() {
|
|
|
1422 |
var self = this, m, m2, i, a, v, len, len2,
|
|
|
1423 |
r = self.required;
|
|
|
1424 |
|
|
|
1425 |
if (!self.allowRollup) {
|
|
|
1426 |
for (i in r) {
|
|
|
1427 |
if (r.hasOwnProperty(i)) {
|
|
|
1428 |
m = self.getModule(i);
|
|
|
1429 |
if (m && m.use) {
|
|
|
1430 |
len = m.use.length;
|
|
|
1431 |
for (a = 0; a < len; a++) {
|
|
|
1432 |
m2 = self.getModule(m.use[a]);
|
|
|
1433 |
if (m2 && m2.use) {
|
|
|
1434 |
len2 = m2.use.length;
|
|
|
1435 |
for (v = 0; v < len2; v++) {
|
|
|
1436 |
r[m2.use[v]] = true;
|
|
|
1437 |
}
|
|
|
1438 |
} else {
|
|
|
1439 |
r[m.use[a]] = true;
|
|
|
1440 |
}
|
|
|
1441 |
}
|
|
|
1442 |
}
|
|
|
1443 |
}
|
|
|
1444 |
}
|
|
|
1445 |
self.required = r;
|
|
|
1446 |
}
|
|
|
1447 |
|
|
|
1448 |
},
|
|
|
1449 |
/**
|
|
|
1450 |
* Explodes the required array to remove aliases and replace them with real modules
|
|
|
1451 |
* @method filterRequires
|
|
|
1452 |
* @param {Array} r The original requires array
|
|
|
1453 |
* @return {Array} The new array of exploded requirements
|
|
|
1454 |
*/
|
|
|
1455 |
filterRequires: function(r) {
|
|
|
1456 |
if (r) {
|
|
|
1457 |
if (!Y.Lang.isArray(r)) {
|
|
|
1458 |
r = [r];
|
|
|
1459 |
}
|
|
|
1460 |
r = Y.Array(r);
|
|
|
1461 |
var c = [], i, mod, o, m;
|
|
|
1462 |
|
|
|
1463 |
for (i = 0; i < r.length; i++) {
|
|
|
1464 |
mod = this.getModule(r[i]);
|
|
|
1465 |
if (mod && mod.use) {
|
|
|
1466 |
for (o = 0; o < mod.use.length; o++) {
|
|
|
1467 |
//Must walk the other modules in case a module is a rollup of rollups (datatype)
|
|
|
1468 |
m = this.getModule(mod.use[o]);
|
|
|
1469 |
if (m && m.use && (m.name !== mod.name)) {
|
|
|
1470 |
c = Y.Array.dedupe([].concat(c, this.filterRequires(m.use)));
|
|
|
1471 |
} else {
|
|
|
1472 |
c.push(mod.use[o]);
|
|
|
1473 |
}
|
|
|
1474 |
}
|
|
|
1475 |
} else {
|
|
|
1476 |
c.push(r[i]);
|
|
|
1477 |
}
|
|
|
1478 |
}
|
|
|
1479 |
r = c;
|
|
|
1480 |
}
|
|
|
1481 |
return r;
|
|
|
1482 |
},
|
|
|
1483 |
/**
|
|
|
1484 |
* Returns an object containing properties for all modules required
|
|
|
1485 |
* in order to load the requested module
|
|
|
1486 |
* @method getRequires
|
|
|
1487 |
* @param {object} mod The module definition from moduleInfo.
|
|
|
1488 |
* @return {array} the expanded requirement list.
|
|
|
1489 |
*/
|
|
|
1490 |
getRequires: function(mod) {
|
|
|
1491 |
|
|
|
1492 |
if (!mod) {
|
|
|
1493 |
//console.log('returning no reqs for ' + mod.name);
|
|
|
1494 |
return NO_REQUIREMENTS;
|
|
|
1495 |
}
|
|
|
1496 |
|
|
|
1497 |
if (mod._parsed) {
|
|
|
1498 |
//console.log('returning requires for ' + mod.name, mod.requires);
|
|
|
1499 |
return mod.expanded || NO_REQUIREMENTS;
|
|
|
1500 |
}
|
|
|
1501 |
|
|
|
1502 |
//TODO add modue cache here out of scope..
|
|
|
1503 |
|
|
|
1504 |
var i, m, j, add, packName, lang, testresults = this.testresults,
|
|
|
1505 |
name = mod.name, cond,
|
|
|
1506 |
adddef = ON_PAGE[name] && ON_PAGE[name].details,
|
|
|
1507 |
d, go, def,
|
|
|
1508 |
r, old_mod,
|
|
|
1509 |
o, skinmod, skindef, skinpar, skinname,
|
|
|
1510 |
intl = mod.lang || mod.intl,
|
|
|
1511 |
info = this.moduleInfo,
|
|
|
1512 |
ftests = Y.Features && Y.Features.tests.load,
|
|
|
1513 |
hash, reparse;
|
|
|
1514 |
|
|
|
1515 |
// console.log(name);
|
|
|
1516 |
|
|
|
1517 |
// pattern match leaves module stub that needs to be filled out
|
|
|
1518 |
if (mod.temp && adddef) {
|
|
|
1519 |
old_mod = mod;
|
|
|
1520 |
mod = this.addModule(adddef, name);
|
|
|
1521 |
mod.group = old_mod.group;
|
|
|
1522 |
mod.pkg = old_mod.pkg;
|
|
|
1523 |
delete mod.expanded;
|
|
|
1524 |
}
|
|
|
1525 |
|
|
|
1526 |
// console.log('cache: ' + mod.langCache + ' == ' + this.lang);
|
|
|
1527 |
|
|
|
1528 |
//If a skin or a lang is different, reparse..
|
|
|
1529 |
reparse = !((!this.lang || mod.langCache === this.lang) && (mod.skinCache === this.skin.defaultSkin));
|
|
|
1530 |
|
|
|
1531 |
if (mod.expanded && !reparse) {
|
|
|
1532 |
//Y.log('Already expanded ' + name + ', ' + mod.expanded);
|
|
|
1533 |
return mod.expanded;
|
|
|
1534 |
}
|
|
|
1535 |
|
|
|
1536 |
|
|
|
1537 |
d = [];
|
|
|
1538 |
hash = {};
|
|
|
1539 |
r = this.filterRequires(mod.requires);
|
|
|
1540 |
if (mod.lang) {
|
|
|
1541 |
//If a module has a lang attribute, auto add the intl requirement.
|
|
|
1542 |
d.unshift('intl');
|
|
|
1543 |
r.unshift('intl');
|
|
|
1544 |
intl = true;
|
|
|
1545 |
}
|
|
|
1546 |
o = this.filterRequires(mod.optional);
|
|
|
1547 |
|
|
|
1548 |
// Y.log("getRequires: " + name + " (dirty:" + this.dirty +
|
|
|
1549 |
// ", expanded:" + mod.expanded + ")");
|
|
|
1550 |
|
|
|
1551 |
mod._parsed = true;
|
|
|
1552 |
mod.langCache = this.lang;
|
|
|
1553 |
mod.skinCache = this.skin.defaultSkin;
|
|
|
1554 |
|
|
|
1555 |
for (i = 0; i < r.length; i++) {
|
|
|
1556 |
//Y.log(name + ' requiring ' + r[i], 'info', 'loader');
|
|
|
1557 |
if (!hash[r[i]]) {
|
|
|
1558 |
d.push(r[i]);
|
|
|
1559 |
hash[r[i]] = true;
|
|
|
1560 |
m = this.getModule(r[i]);
|
|
|
1561 |
if (m) {
|
|
|
1562 |
add = this.getRequires(m);
|
|
|
1563 |
intl = intl || (m.expanded_map &&
|
|
|
1564 |
(INTL in m.expanded_map));
|
|
|
1565 |
for (j = 0; j < add.length; j++) {
|
|
|
1566 |
d.push(add[j]);
|
|
|
1567 |
}
|
|
|
1568 |
}
|
|
|
1569 |
}
|
|
|
1570 |
}
|
|
|
1571 |
|
|
|
1572 |
// get the requirements from superseded modules, if any
|
|
|
1573 |
r = this.filterRequires(mod.supersedes);
|
|
|
1574 |
if (r) {
|
|
|
1575 |
for (i = 0; i < r.length; i++) {
|
|
|
1576 |
if (!hash[r[i]]) {
|
|
|
1577 |
// if this module has submodules, the requirements list is
|
|
|
1578 |
// expanded to include the submodules. This is so we can
|
|
|
1579 |
// prevent dups when a submodule is already loaded and the
|
|
|
1580 |
// parent is requested.
|
|
|
1581 |
if (mod.submodules) {
|
|
|
1582 |
d.push(r[i]);
|
|
|
1583 |
}
|
|
|
1584 |
|
|
|
1585 |
hash[r[i]] = true;
|
|
|
1586 |
m = this.getModule(r[i]);
|
|
|
1587 |
|
|
|
1588 |
if (m) {
|
|
|
1589 |
add = this.getRequires(m);
|
|
|
1590 |
intl = intl || (m.expanded_map &&
|
|
|
1591 |
(INTL in m.expanded_map));
|
|
|
1592 |
for (j = 0; j < add.length; j++) {
|
|
|
1593 |
d.push(add[j]);
|
|
|
1594 |
}
|
|
|
1595 |
}
|
|
|
1596 |
}
|
|
|
1597 |
}
|
|
|
1598 |
}
|
|
|
1599 |
|
|
|
1600 |
if (o && this.loadOptional) {
|
|
|
1601 |
for (i = 0; i < o.length; i++) {
|
|
|
1602 |
if (!hash[o[i]]) {
|
|
|
1603 |
d.push(o[i]);
|
|
|
1604 |
hash[o[i]] = true;
|
|
|
1605 |
m = info[o[i]];
|
|
|
1606 |
if (m) {
|
|
|
1607 |
add = this.getRequires(m);
|
|
|
1608 |
intl = intl || (m.expanded_map &&
|
|
|
1609 |
(INTL in m.expanded_map));
|
|
|
1610 |
for (j = 0; j < add.length; j++) {
|
|
|
1611 |
d.push(add[j]);
|
|
|
1612 |
}
|
|
|
1613 |
}
|
|
|
1614 |
}
|
|
|
1615 |
}
|
|
|
1616 |
}
|
|
|
1617 |
|
|
|
1618 |
cond = this.conditions[name];
|
|
|
1619 |
|
|
|
1620 |
if (cond) {
|
|
|
1621 |
//Set the module to not parsed since we have conditionals and this could change the dependency tree.
|
|
|
1622 |
mod._parsed = false;
|
|
|
1623 |
if (testresults && ftests) {
|
|
|
1624 |
oeach(testresults, function(result, id) {
|
|
|
1625 |
var condmod = ftests[id].name;
|
|
|
1626 |
if (!hash[condmod] && ftests[id].trigger === name) {
|
|
|
1627 |
if (result && ftests[id]) {
|
|
|
1628 |
hash[condmod] = true;
|
|
|
1629 |
d.push(condmod);
|
|
|
1630 |
}
|
|
|
1631 |
}
|
|
|
1632 |
});
|
|
|
1633 |
} else {
|
|
|
1634 |
for (i in cond) {
|
|
|
1635 |
if (cond.hasOwnProperty(i)) {
|
|
|
1636 |
if (!hash[i]) {
|
|
|
1637 |
def = cond[i];
|
|
|
1638 |
//first see if they've specfied a ua check
|
|
|
1639 |
//then see if they've got a test fn & if it returns true
|
|
|
1640 |
//otherwise just having a condition block is enough
|
|
|
1641 |
go = def && ((!def.ua && !def.test) || (def.ua && Y.UA[def.ua]) ||
|
|
|
1642 |
(def.test && def.test(Y, r)));
|
|
|
1643 |
|
|
|
1644 |
if (go) {
|
|
|
1645 |
hash[i] = true;
|
|
|
1646 |
d.push(i);
|
|
|
1647 |
m = this.getModule(i);
|
|
|
1648 |
if (m) {
|
|
|
1649 |
add = this.getRequires(m);
|
|
|
1650 |
for (j = 0; j < add.length; j++) {
|
|
|
1651 |
d.push(add[j]);
|
|
|
1652 |
}
|
|
|
1653 |
|
|
|
1654 |
}
|
|
|
1655 |
}
|
|
|
1656 |
}
|
|
|
1657 |
}
|
|
|
1658 |
}
|
|
|
1659 |
}
|
|
|
1660 |
}
|
|
|
1661 |
|
|
|
1662 |
// Create skin modules
|
|
|
1663 |
if (mod.skinnable) {
|
|
|
1664 |
skindef = this.skin.overrides;
|
|
|
1665 |
for (i in YUI.Env.aliases) {
|
|
|
1666 |
if (YUI.Env.aliases.hasOwnProperty(i)) {
|
|
|
1667 |
if (Y.Array.indexOf(YUI.Env.aliases[i], name) > -1) {
|
|
|
1668 |
skinpar = i;
|
|
|
1669 |
}
|
|
|
1670 |
}
|
|
|
1671 |
}
|
|
|
1672 |
if (skindef && (skindef[name] || (skinpar && skindef[skinpar]))) {
|
|
|
1673 |
skinname = name;
|
|
|
1674 |
if (skindef[skinpar]) {
|
|
|
1675 |
skinname = skinpar;
|
|
|
1676 |
}
|
|
|
1677 |
for (i = 0; i < skindef[skinname].length; i++) {
|
|
|
1678 |
skinmod = this._addSkin(skindef[skinname][i], name);
|
|
|
1679 |
if (!this.isCSSLoaded(skinmod, this._boot)) {
|
|
|
1680 |
d.push(skinmod);
|
|
|
1681 |
}
|
|
|
1682 |
}
|
|
|
1683 |
} else {
|
|
|
1684 |
skinmod = this._addSkin(this.skin.defaultSkin, name);
|
|
|
1685 |
if (!this.isCSSLoaded(skinmod, this._boot)) {
|
|
|
1686 |
d.push(skinmod);
|
|
|
1687 |
}
|
|
|
1688 |
}
|
|
|
1689 |
}
|
|
|
1690 |
|
|
|
1691 |
mod._parsed = false;
|
|
|
1692 |
|
|
|
1693 |
if (intl) {
|
|
|
1694 |
|
|
|
1695 |
if (mod.lang && !mod.langPack && Y.Intl) {
|
|
|
1696 |
lang = Y.Intl.lookupBestLang(this.lang || ROOT_LANG, mod.lang);
|
|
|
1697 |
//Y.log('Best lang: ' + lang + ', this.lang: ' + this.lang + ', mod.lang: ' + mod.lang);
|
|
|
1698 |
packName = this.getLangPackName(lang, name);
|
|
|
1699 |
if (packName) {
|
|
|
1700 |
d.unshift(packName);
|
|
|
1701 |
}
|
|
|
1702 |
}
|
|
|
1703 |
d.unshift(INTL);
|
|
|
1704 |
}
|
|
|
1705 |
|
|
|
1706 |
mod.expanded_map = yArray.hash(d);
|
|
|
1707 |
|
|
|
1708 |
mod.expanded = YObject.keys(mod.expanded_map);
|
|
|
1709 |
|
|
|
1710 |
return mod.expanded;
|
|
|
1711 |
},
|
|
|
1712 |
/**
|
|
|
1713 |
* Check to see if named css module is already loaded on the page
|
|
|
1714 |
* @method isCSSLoaded
|
|
|
1715 |
* @param {String} name The name of the css file
|
|
|
1716 |
* @return Boolean
|
|
|
1717 |
*/
|
|
|
1718 |
isCSSLoaded: function(name, skip) {
|
|
|
1719 |
//TODO - Make this call a batching call with name being an array
|
|
|
1720 |
if (!name || !YUI.Env.cssStampEl || (!skip && this.ignoreRegistered)) {
|
|
|
1721 |
Y.log('isCSSLoaded was skipped for ' + name, 'warn', 'loader');
|
|
|
1722 |
return false;
|
|
|
1723 |
}
|
|
|
1724 |
var el = YUI.Env.cssStampEl,
|
|
|
1725 |
ret = false,
|
|
|
1726 |
mod = YUI.Env._cssLoaded[name],
|
|
|
1727 |
style = el.currentStyle; //IE
|
|
|
1728 |
|
|
|
1729 |
|
|
|
1730 |
if (mod !== undefined) {
|
|
|
1731 |
//Y.log('isCSSLoaded was cached for ' + name, 'warn', 'loader');
|
|
|
1732 |
return mod;
|
|
|
1733 |
}
|
|
|
1734 |
|
|
|
1735 |
//Add the classname to the element
|
|
|
1736 |
el.className = name;
|
|
|
1737 |
|
|
|
1738 |
if (!style) {
|
|
|
1739 |
style = Y.config.doc.defaultView.getComputedStyle(el, null);
|
|
|
1740 |
}
|
|
|
1741 |
|
|
|
1742 |
if (style && style.display === 'none') {
|
|
|
1743 |
ret = true;
|
|
|
1744 |
}
|
|
|
1745 |
|
|
|
1746 |
Y.log('Has Skin? ' + name + ' : ' + ret, 'info', 'loader');
|
|
|
1747 |
|
|
|
1748 |
el.className = ''; //Reset the classname to ''
|
|
|
1749 |
|
|
|
1750 |
YUI.Env._cssLoaded[name] = ret;
|
|
|
1751 |
|
|
|
1752 |
return ret;
|
|
|
1753 |
},
|
|
|
1754 |
|
|
|
1755 |
/**
|
|
|
1756 |
* Returns a hash of module names the supplied module satisfies.
|
|
|
1757 |
* @method getProvides
|
|
|
1758 |
* @param {string} name The name of the module.
|
|
|
1759 |
* @return {object} what this module provides.
|
|
|
1760 |
*/
|
|
|
1761 |
getProvides: function(name) {
|
|
|
1762 |
var m = this.getModule(name), o, s;
|
|
|
1763 |
// supmap = this.provides;
|
|
|
1764 |
|
|
|
1765 |
if (!m) {
|
|
|
1766 |
return NOT_FOUND;
|
|
|
1767 |
}
|
|
|
1768 |
|
|
|
1769 |
if (m && !m.provides) {
|
|
|
1770 |
o = {};
|
|
|
1771 |
s = m.supersedes;
|
|
|
1772 |
|
|
|
1773 |
if (s) {
|
|
|
1774 |
yArray.each(s, function(v) {
|
|
|
1775 |
Y.mix(o, this.getProvides(v));
|
|
|
1776 |
}, this);
|
|
|
1777 |
}
|
|
|
1778 |
|
|
|
1779 |
o[name] = true;
|
|
|
1780 |
m.provides = o;
|
|
|
1781 |
|
|
|
1782 |
}
|
|
|
1783 |
|
|
|
1784 |
return m.provides;
|
|
|
1785 |
},
|
|
|
1786 |
|
|
|
1787 |
/**
|
|
|
1788 |
* Calculates the dependency tree, the result is stored in the sorted
|
|
|
1789 |
* property.
|
|
|
1790 |
* @method calculate
|
|
|
1791 |
* @param {object} o optional options object.
|
|
|
1792 |
* @param {string} type optional argument to prune modules.
|
|
|
1793 |
*/
|
|
|
1794 |
calculate: function(o, type) {
|
|
|
1795 |
if (o || type || this.dirty) {
|
|
|
1796 |
|
|
|
1797 |
if (o) {
|
|
|
1798 |
this._config(o);
|
|
|
1799 |
}
|
|
|
1800 |
|
|
|
1801 |
if (!this._init) {
|
|
|
1802 |
this._setup();
|
|
|
1803 |
}
|
|
|
1804 |
|
|
|
1805 |
this._explode();
|
|
|
1806 |
|
|
|
1807 |
if (this.allowRollup) {
|
|
|
1808 |
this._rollup();
|
|
|
1809 |
} else {
|
|
|
1810 |
this._explodeRollups();
|
|
|
1811 |
}
|
|
|
1812 |
this._reduce();
|
|
|
1813 |
this._sort();
|
|
|
1814 |
}
|
|
|
1815 |
},
|
|
|
1816 |
/**
|
|
|
1817 |
* Creates a "psuedo" package for languages provided in the lang array
|
|
|
1818 |
* @method _addLangPack
|
|
|
1819 |
* @private
|
|
|
1820 |
* @param {String} lang The language to create
|
|
|
1821 |
* @param {Object} m The module definition to create the language pack around
|
|
|
1822 |
* @param {String} packName The name of the package (e.g: lang/datatype-date-en-US)
|
|
|
1823 |
* @return {Object} The module definition
|
|
|
1824 |
*/
|
|
|
1825 |
_addLangPack: function(lang, m, packName) {
|
|
|
1826 |
var name = m.name,
|
|
|
1827 |
packPath, conf,
|
|
|
1828 |
existing = this.moduleInfo[packName];
|
|
|
1829 |
|
|
|
1830 |
if (!existing) {
|
|
|
1831 |
|
|
|
1832 |
packPath = _path((m.pkg || name), packName, JS, true);
|
|
|
1833 |
|
|
|
1834 |
conf = {
|
|
|
1835 |
path: packPath,
|
|
|
1836 |
intl: true,
|
|
|
1837 |
langPack: true,
|
|
|
1838 |
ext: m.ext,
|
|
|
1839 |
group: m.group,
|
|
|
1840 |
supersedes: []
|
|
|
1841 |
};
|
|
|
1842 |
if (m.root) {
|
|
|
1843 |
conf.root = m.root;
|
|
|
1844 |
}
|
|
|
1845 |
if (m.base) {
|
|
|
1846 |
conf.base = m.base;
|
|
|
1847 |
}
|
|
|
1848 |
|
|
|
1849 |
if (m.configFn) {
|
|
|
1850 |
conf.configFn = m.configFn;
|
|
|
1851 |
}
|
|
|
1852 |
|
|
|
1853 |
this.addModule(conf, packName);
|
|
|
1854 |
|
|
|
1855 |
if (lang) {
|
|
|
1856 |
Y.Env.lang = Y.Env.lang || {};
|
|
|
1857 |
Y.Env.lang[lang] = Y.Env.lang[lang] || {};
|
|
|
1858 |
Y.Env.lang[lang][name] = true;
|
|
|
1859 |
}
|
|
|
1860 |
}
|
|
|
1861 |
|
|
|
1862 |
return this.moduleInfo[packName];
|
|
|
1863 |
},
|
|
|
1864 |
|
|
|
1865 |
/**
|
|
|
1866 |
* Investigates the current YUI configuration on the page. By default,
|
|
|
1867 |
* modules already detected will not be loaded again unless a force
|
|
|
1868 |
* option is encountered. Called by calculate()
|
|
|
1869 |
* @method _setup
|
|
|
1870 |
* @private
|
|
|
1871 |
*/
|
|
|
1872 |
_setup: function() {
|
|
|
1873 |
var info = this.moduleInfo, name, i, j, m, l,
|
|
|
1874 |
packName;
|
|
|
1875 |
|
|
|
1876 |
for (name in info) {
|
|
|
1877 |
if (info.hasOwnProperty(name)) {
|
|
|
1878 |
m = info[name];
|
|
|
1879 |
if (m) {
|
|
|
1880 |
|
|
|
1881 |
// remove dups
|
|
|
1882 |
//m.requires = YObject.keys(yArray.hash(m.requires));
|
|
|
1883 |
m.requires = yArray.dedupe(m.requires);
|
|
|
1884 |
|
|
|
1885 |
// Create lang pack modules
|
|
|
1886 |
//if (m.lang && m.lang.length) {
|
|
|
1887 |
if (m.lang) {
|
|
|
1888 |
// Setup root package if the module has lang defined,
|
|
|
1889 |
// it needs to provide a root language pack
|
|
|
1890 |
packName = this.getLangPackName(ROOT_LANG, name);
|
|
|
1891 |
this._addLangPack(null, m, packName);
|
|
|
1892 |
}
|
|
|
1893 |
|
|
|
1894 |
}
|
|
|
1895 |
}
|
|
|
1896 |
}
|
|
|
1897 |
|
|
|
1898 |
|
|
|
1899 |
//l = Y.merge(this.inserted);
|
|
|
1900 |
l = {};
|
|
|
1901 |
|
|
|
1902 |
// available modules
|
|
|
1903 |
if (!this.ignoreRegistered) {
|
|
|
1904 |
Y.mix(l, GLOBAL_ENV.mods);
|
|
|
1905 |
}
|
|
|
1906 |
|
|
|
1907 |
// add the ignore list to the list of loaded packages
|
|
|
1908 |
if (this.ignore) {
|
|
|
1909 |
Y.mix(l, yArray.hash(this.ignore));
|
|
|
1910 |
}
|
|
|
1911 |
|
|
|
1912 |
// expand the list to include superseded modules
|
|
|
1913 |
for (j in l) {
|
|
|
1914 |
if (l.hasOwnProperty(j)) {
|
|
|
1915 |
Y.mix(l, this.getProvides(j));
|
|
|
1916 |
}
|
|
|
1917 |
}
|
|
|
1918 |
|
|
|
1919 |
// remove modules on the force list from the loaded list
|
|
|
1920 |
if (this.force) {
|
|
|
1921 |
for (i = 0; i < this.force.length; i++) {
|
|
|
1922 |
if (this.force[i] in l) {
|
|
|
1923 |
delete l[this.force[i]];
|
|
|
1924 |
}
|
|
|
1925 |
}
|
|
|
1926 |
}
|
|
|
1927 |
|
|
|
1928 |
Y.mix(this.loaded, l);
|
|
|
1929 |
|
|
|
1930 |
this._init = true;
|
|
|
1931 |
},
|
|
|
1932 |
|
|
|
1933 |
/**
|
|
|
1934 |
* Builds a module name for a language pack
|
|
|
1935 |
* @method getLangPackName
|
|
|
1936 |
* @param {string} lang the language code.
|
|
|
1937 |
* @param {string} mname the module to build it for.
|
|
|
1938 |
* @return {string} the language pack module name.
|
|
|
1939 |
*/
|
|
|
1940 |
getLangPackName: function(lang, mname) {
|
|
|
1941 |
return ('lang/' + mname + ((lang) ? '_' + lang : ''));
|
|
|
1942 |
},
|
|
|
1943 |
/**
|
|
|
1944 |
* Inspects the required modules list looking for additional
|
|
|
1945 |
* dependencies. Expands the required list to include all
|
|
|
1946 |
* required modules. Called by calculate()
|
|
|
1947 |
* @method _explode
|
|
|
1948 |
* @private
|
|
|
1949 |
*/
|
|
|
1950 |
_explode: function() {
|
|
|
1951 |
//TODO Move done out of scope
|
|
|
1952 |
var r = this.required, m, reqs, done = {},
|
|
|
1953 |
self = this, name, expound;
|
|
|
1954 |
|
|
|
1955 |
// the setup phase is over, all modules have been created
|
|
|
1956 |
self.dirty = false;
|
|
|
1957 |
|
|
|
1958 |
self._explodeRollups();
|
|
|
1959 |
r = self.required;
|
|
|
1960 |
|
|
|
1961 |
for (name in r) {
|
|
|
1962 |
if (r.hasOwnProperty(name)) {
|
|
|
1963 |
if (!done[name]) {
|
|
|
1964 |
done[name] = true;
|
|
|
1965 |
m = self.getModule(name);
|
|
|
1966 |
if (m) {
|
|
|
1967 |
expound = m.expound;
|
|
|
1968 |
|
|
|
1969 |
if (expound) {
|
|
|
1970 |
r[expound] = self.getModule(expound);
|
|
|
1971 |
reqs = self.getRequires(r[expound]);
|
|
|
1972 |
Y.mix(r, yArray.hash(reqs));
|
|
|
1973 |
}
|
|
|
1974 |
|
|
|
1975 |
reqs = self.getRequires(m);
|
|
|
1976 |
Y.mix(r, yArray.hash(reqs));
|
|
|
1977 |
}
|
|
|
1978 |
}
|
|
|
1979 |
}
|
|
|
1980 |
}
|
|
|
1981 |
|
|
|
1982 |
// Y.log('After explode: ' + YObject.keys(r));
|
|
|
1983 |
},
|
|
|
1984 |
/**
|
|
|
1985 |
* The default method used to test a module against a pattern
|
|
|
1986 |
* @method _patternTest
|
|
|
1987 |
* @private
|
|
|
1988 |
* @param {String} mname The module being tested
|
|
|
1989 |
* @param {String} pname The pattern to match
|
|
|
1990 |
*/
|
|
|
1991 |
_patternTest: function(mname, pname) {
|
|
|
1992 |
return (mname.indexOf(pname) > -1);
|
|
|
1993 |
},
|
|
|
1994 |
/**
|
|
|
1995 |
* Get's the loader meta data for the requested module
|
|
|
1996 |
* @method getModule
|
|
|
1997 |
* @param {String} mname The module name to get
|
|
|
1998 |
* @return {Object} The module metadata
|
|
|
1999 |
*/
|
|
|
2000 |
getModule: function(mname) {
|
|
|
2001 |
//TODO: Remove name check - it's a quick hack to fix pattern WIP
|
|
|
2002 |
if (!mname) {
|
|
|
2003 |
return null;
|
|
|
2004 |
}
|
|
|
2005 |
|
|
|
2006 |
var p, found, pname,
|
|
|
2007 |
m = this.moduleInfo[mname],
|
|
|
2008 |
patterns = this.patterns;
|
|
|
2009 |
|
|
|
2010 |
// check the patterns library to see if we should automatically add
|
|
|
2011 |
// the module with defaults
|
|
|
2012 |
if (!m || (m && m.ext)) {
|
|
|
2013 |
// Y.log('testing patterns ' + YObject.keys(patterns));
|
|
|
2014 |
for (pname in patterns) {
|
|
|
2015 |
if (patterns.hasOwnProperty(pname)) {
|
|
|
2016 |
// Y.log('testing pattern ' + i);
|
|
|
2017 |
p = patterns[pname];
|
|
|
2018 |
|
|
|
2019 |
//There is no test method, create a default one that tests
|
|
|
2020 |
// the pattern against the mod name
|
|
|
2021 |
if (!p.test) {
|
|
|
2022 |
p.test = this._patternTest;
|
|
|
2023 |
}
|
|
|
2024 |
|
|
|
2025 |
if (p.test(mname, pname)) {
|
|
|
2026 |
// use the metadata supplied for the pattern
|
|
|
2027 |
// as the module definition.
|
|
|
2028 |
found = p;
|
|
|
2029 |
break;
|
|
|
2030 |
}
|
|
|
2031 |
}
|
|
|
2032 |
}
|
|
|
2033 |
}
|
|
|
2034 |
|
|
|
2035 |
if (!m) {
|
|
|
2036 |
if (found) {
|
|
|
2037 |
if (p.action) {
|
|
|
2038 |
// Y.log('executing pattern action: ' + pname);
|
|
|
2039 |
p.action.call(this, mname, pname);
|
|
|
2040 |
} else {
|
|
|
2041 |
Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
|
|
|
2042 |
pname, 'info', 'loader');
|
|
|
2043 |
// ext true or false?
|
|
|
2044 |
m = this.addModule(Y.merge(found), mname);
|
|
|
2045 |
if (found.configFn) {
|
|
|
2046 |
m.configFn = found.configFn;
|
|
|
2047 |
}
|
|
|
2048 |
m.temp = true;
|
|
|
2049 |
}
|
|
|
2050 |
}
|
|
|
2051 |
} else {
|
|
|
2052 |
if (found && m && found.configFn && !m.configFn) {
|
|
|
2053 |
m.configFn = found.configFn;
|
|
|
2054 |
m.configFn(m);
|
|
|
2055 |
}
|
|
|
2056 |
}
|
|
|
2057 |
|
|
|
2058 |
return m;
|
|
|
2059 |
},
|
|
|
2060 |
|
|
|
2061 |
// impl in rollup submodule
|
|
|
2062 |
_rollup: function() { },
|
|
|
2063 |
|
|
|
2064 |
/**
|
|
|
2065 |
* Remove superceded modules and loaded modules. Called by
|
|
|
2066 |
* calculate() after we have the mega list of all dependencies
|
|
|
2067 |
* @method _reduce
|
|
|
2068 |
* @return {object} the reduced dependency hash.
|
|
|
2069 |
* @private
|
|
|
2070 |
*/
|
|
|
2071 |
_reduce: function(r) {
|
|
|
2072 |
|
|
|
2073 |
r = r || this.required;
|
|
|
2074 |
|
|
|
2075 |
var i, j, s, m, type = this.loadType,
|
|
|
2076 |
ignore = this.ignore ? yArray.hash(this.ignore) : false;
|
|
|
2077 |
|
|
|
2078 |
for (i in r) {
|
|
|
2079 |
if (r.hasOwnProperty(i)) {
|
|
|
2080 |
m = this.getModule(i);
|
|
|
2081 |
// remove if already loaded
|
|
|
2082 |
if (((this.loaded[i] || ON_PAGE[i]) &&
|
|
|
2083 |
!this.forceMap[i] && !this.ignoreRegistered) ||
|
|
|
2084 |
(type && m && m.type !== type)) {
|
|
|
2085 |
delete r[i];
|
|
|
2086 |
}
|
|
|
2087 |
if (ignore && ignore[i]) {
|
|
|
2088 |
delete r[i];
|
|
|
2089 |
}
|
|
|
2090 |
// remove anything this module supersedes
|
|
|
2091 |
s = m && m.supersedes;
|
|
|
2092 |
if (s) {
|
|
|
2093 |
for (j = 0; j < s.length; j++) {
|
|
|
2094 |
if (s[j] in r) {
|
|
|
2095 |
delete r[s[j]];
|
|
|
2096 |
}
|
|
|
2097 |
}
|
|
|
2098 |
}
|
|
|
2099 |
}
|
|
|
2100 |
}
|
|
|
2101 |
|
|
|
2102 |
return r;
|
|
|
2103 |
},
|
|
|
2104 |
/**
|
|
|
2105 |
* Handles the queue when a module has been loaded for all cases
|
|
|
2106 |
* @method _finish
|
|
|
2107 |
* @private
|
|
|
2108 |
* @param {String} msg The message from Loader
|
|
|
2109 |
* @param {Boolean} success A boolean denoting success or failure
|
|
|
2110 |
*/
|
|
|
2111 |
_finish: function(msg, success) {
|
|
|
2112 |
Y.log('loader finishing: ' + msg + ', ' + Y.id + ', ' +
|
|
|
2113 |
this.data, 'info', 'loader');
|
|
|
2114 |
|
|
|
2115 |
_queue.running = false;
|
|
|
2116 |
|
|
|
2117 |
var onEnd = this.onEnd;
|
|
|
2118 |
if (onEnd) {
|
|
|
2119 |
onEnd.call(this.context, {
|
|
|
2120 |
msg: msg,
|
|
|
2121 |
data: this.data,
|
|
|
2122 |
success: success
|
|
|
2123 |
});
|
|
|
2124 |
}
|
|
|
2125 |
this._continue();
|
|
|
2126 |
},
|
|
|
2127 |
/**
|
|
|
2128 |
* The default Loader onSuccess handler, calls this.onSuccess with a payload
|
|
|
2129 |
* @method _onSuccess
|
|
|
2130 |
* @private
|
|
|
2131 |
*/
|
|
|
2132 |
_onSuccess: function() {
|
|
|
2133 |
var self = this, skipped = Y.merge(self.skipped), fn,
|
|
|
2134 |
failed = [], rreg = self.requireRegistration,
|
|
|
2135 |
success, msg, i, mod;
|
|
|
2136 |
|
|
|
2137 |
for (i in skipped) {
|
|
|
2138 |
if (skipped.hasOwnProperty(i)) {
|
|
|
2139 |
delete self.inserted[i];
|
|
|
2140 |
}
|
|
|
2141 |
}
|
|
|
2142 |
|
|
|
2143 |
self.skipped = {};
|
|
|
2144 |
|
|
|
2145 |
for (i in self.inserted) {
|
|
|
2146 |
if (self.inserted.hasOwnProperty(i)) {
|
|
|
2147 |
mod = self.getModule(i);
|
|
|
2148 |
if (mod && rreg && mod.type === JS && !(i in YUI.Env.mods)) {
|
|
|
2149 |
failed.push(i);
|
|
|
2150 |
} else {
|
|
|
2151 |
Y.mix(self.loaded, self.getProvides(i));
|
|
|
2152 |
}
|
|
|
2153 |
}
|
|
|
2154 |
}
|
|
|
2155 |
|
|
|
2156 |
fn = self.onSuccess;
|
|
|
2157 |
msg = (failed.length) ? 'notregistered' : 'success';
|
|
|
2158 |
success = !(failed.length);
|
|
|
2159 |
if (fn) {
|
|
|
2160 |
fn.call(self.context, {
|
|
|
2161 |
msg: msg,
|
|
|
2162 |
data: self.data,
|
|
|
2163 |
success: success,
|
|
|
2164 |
failed: failed,
|
|
|
2165 |
skipped: skipped
|
|
|
2166 |
});
|
|
|
2167 |
}
|
|
|
2168 |
self._finish(msg, success);
|
|
|
2169 |
},
|
|
|
2170 |
/**
|
|
|
2171 |
* The default Loader onProgress handler, calls this.onProgress with a payload
|
|
|
2172 |
* @method _onProgress
|
|
|
2173 |
* @private
|
|
|
2174 |
*/
|
|
|
2175 |
_onProgress: function(e) {
|
|
|
2176 |
var self = this, i;
|
|
|
2177 |
//set the internal cache to what just came in.
|
|
|
2178 |
if (e.data && e.data.length) {
|
|
|
2179 |
for (i = 0; i < e.data.length; i++) {
|
|
|
2180 |
e.data[i] = self.getModule(e.data[i].name);
|
|
|
2181 |
}
|
|
|
2182 |
}
|
|
|
2183 |
if (self.onProgress) {
|
|
|
2184 |
self.onProgress.call(self.context, {
|
|
|
2185 |
name: e.url,
|
|
|
2186 |
data: e.data
|
|
|
2187 |
});
|
|
|
2188 |
}
|
|
|
2189 |
},
|
|
|
2190 |
/**
|
|
|
2191 |
* The default Loader onFailure handler, calls this.onFailure with a payload
|
|
|
2192 |
* @method _onFailure
|
|
|
2193 |
* @private
|
|
|
2194 |
*/
|
|
|
2195 |
_onFailure: function(o) {
|
|
|
2196 |
var f = this.onFailure, msg = [], i = 0, len = o.errors.length;
|
|
|
2197 |
|
|
|
2198 |
for (i; i < len; i++) {
|
|
|
2199 |
msg.push(o.errors[i].error);
|
|
|
2200 |
}
|
|
|
2201 |
|
|
|
2202 |
msg = msg.join(',');
|
|
|
2203 |
|
|
|
2204 |
Y.log('load error: ' + msg + ', ' + Y.id, 'error', 'loader');
|
|
|
2205 |
|
|
|
2206 |
if (f) {
|
|
|
2207 |
f.call(this.context, {
|
|
|
2208 |
msg: msg,
|
|
|
2209 |
data: this.data,
|
|
|
2210 |
success: false
|
|
|
2211 |
});
|
|
|
2212 |
}
|
|
|
2213 |
|
|
|
2214 |
this._finish(msg, false);
|
|
|
2215 |
|
|
|
2216 |
},
|
|
|
2217 |
|
|
|
2218 |
/**
|
|
|
2219 |
* The default Loader onTimeout handler, calls this.onTimeout with a payload
|
|
|
2220 |
* @method _onTimeout
|
|
|
2221 |
* @param {Get.Transaction} transaction The Transaction object from `Y.Get`
|
|
|
2222 |
* @private
|
|
|
2223 |
*/
|
|
|
2224 |
_onTimeout: function(transaction) {
|
|
|
2225 |
Y.log('loader timeout: ' + Y.id, 'error', 'loader');
|
|
|
2226 |
var f = this.onTimeout;
|
|
|
2227 |
if (f) {
|
|
|
2228 |
f.call(this.context, {
|
|
|
2229 |
msg: 'timeout',
|
|
|
2230 |
data: this.data,
|
|
|
2231 |
success: false,
|
|
|
2232 |
transaction: transaction
|
|
|
2233 |
});
|
|
|
2234 |
}
|
|
|
2235 |
},
|
|
|
2236 |
|
|
|
2237 |
/**
|
|
|
2238 |
* Sorts the dependency tree. The last step of calculate()
|
|
|
2239 |
* @method _sort
|
|
|
2240 |
* @private
|
|
|
2241 |
*/
|
|
|
2242 |
_sort: function() {
|
|
|
2243 |
|
|
|
2244 |
// create an indexed list
|
|
|
2245 |
var s = YObject.keys(this.required),
|
|
|
2246 |
// loaded = this.loaded,
|
|
|
2247 |
//TODO Move this out of scope
|
|
|
2248 |
done = {},
|
|
|
2249 |
p = 0, l, a, b, j, k, moved, doneKey;
|
|
|
2250 |
|
|
|
2251 |
// keep going until we make a pass without moving anything
|
|
|
2252 |
for (;;) {
|
|
|
2253 |
|
|
|
2254 |
l = s.length;
|
|
|
2255 |
moved = false;
|
|
|
2256 |
|
|
|
2257 |
// start the loop after items that are already sorted
|
|
|
2258 |
for (j = p; j < l; j++) {
|
|
|
2259 |
|
|
|
2260 |
// check the next module on the list to see if its
|
|
|
2261 |
// dependencies have been met
|
|
|
2262 |
a = s[j];
|
|
|
2263 |
|
|
|
2264 |
// check everything below current item and move if we
|
|
|
2265 |
// find a requirement for the current item
|
|
|
2266 |
for (k = j + 1; k < l; k++) {
|
|
|
2267 |
doneKey = a + s[k];
|
|
|
2268 |
|
|
|
2269 |
if (!done[doneKey] && this._requires(a, s[k])) {
|
|
|
2270 |
|
|
|
2271 |
// extract the dependency so we can move it up
|
|
|
2272 |
b = s.splice(k, 1);
|
|
|
2273 |
|
|
|
2274 |
// insert the dependency above the item that
|
|
|
2275 |
// requires it
|
|
|
2276 |
s.splice(j, 0, b[0]);
|
|
|
2277 |
|
|
|
2278 |
// only swap two dependencies once to short circut
|
|
|
2279 |
// circular dependencies
|
|
|
2280 |
done[doneKey] = true;
|
|
|
2281 |
|
|
|
2282 |
// keep working
|
|
|
2283 |
moved = true;
|
|
|
2284 |
|
|
|
2285 |
break;
|
|
|
2286 |
}
|
|
|
2287 |
}
|
|
|
2288 |
|
|
|
2289 |
// jump out of loop if we moved something
|
|
|
2290 |
if (moved) {
|
|
|
2291 |
break;
|
|
|
2292 |
// this item is sorted, move our pointer and keep going
|
|
|
2293 |
} else {
|
|
|
2294 |
p++;
|
|
|
2295 |
}
|
|
|
2296 |
}
|
|
|
2297 |
|
|
|
2298 |
// when we make it here and moved is false, we are
|
|
|
2299 |
// finished sorting
|
|
|
2300 |
if (!moved) {
|
|
|
2301 |
break;
|
|
|
2302 |
}
|
|
|
2303 |
|
|
|
2304 |
}
|
|
|
2305 |
|
|
|
2306 |
this.sorted = s;
|
|
|
2307 |
},
|
|
|
2308 |
|
|
|
2309 |
/**
|
|
|
2310 |
* Handles the actual insertion of script/link tags
|
|
|
2311 |
* @method _insert
|
|
|
2312 |
* @private
|
|
|
2313 |
* @param {Object} source The YUI instance the request came from
|
|
|
2314 |
* @param {Object} o The metadata to include
|
|
|
2315 |
* @param {String} type JS or CSS
|
|
|
2316 |
* @param {Boolean} [skipcalc=false] Do a Loader.calculate on the meta
|
|
|
2317 |
*/
|
|
|
2318 |
_insert: function(source, o, type, skipcalc) {
|
|
|
2319 |
|
|
|
2320 |
Y.log('private _insert() ' + (type || '') + ', ' + Y.id, "info", "loader");
|
|
|
2321 |
|
|
|
2322 |
// restore the state at the time of the request
|
|
|
2323 |
if (source) {
|
|
|
2324 |
this._config(source);
|
|
|
2325 |
}
|
|
|
2326 |
|
|
|
2327 |
// build the dependency list
|
|
|
2328 |
// don't include type so we can process CSS and script in
|
|
|
2329 |
// one pass when the type is not specified.
|
|
|
2330 |
|
|
|
2331 |
var modules = this.resolve(!skipcalc),
|
|
|
2332 |
self = this, comp = 0, actions = 0,
|
|
|
2333 |
mods = {}, deps, complete;
|
|
|
2334 |
|
|
|
2335 |
self._refetch = [];
|
|
|
2336 |
|
|
|
2337 |
if (type) {
|
|
|
2338 |
//Filter out the opposite type and reset the array so the checks later work
|
|
|
2339 |
modules[((type === JS) ? CSS : JS)] = [];
|
|
|
2340 |
}
|
|
|
2341 |
if (!self.fetchCSS) {
|
|
|
2342 |
modules.css = [];
|
|
|
2343 |
}
|
|
|
2344 |
if (modules.js.length) {
|
|
|
2345 |
comp++;
|
|
|
2346 |
}
|
|
|
2347 |
if (modules.css.length) {
|
|
|
2348 |
comp++;
|
|
|
2349 |
}
|
|
|
2350 |
|
|
|
2351 |
//console.log('Resolved Modules: ', modules);
|
|
|
2352 |
|
|
|
2353 |
complete = function(d) {
|
|
|
2354 |
actions++;
|
|
|
2355 |
var errs = {}, i = 0, o = 0, u = '', fn,
|
|
|
2356 |
modName, resMods;
|
|
|
2357 |
|
|
|
2358 |
if (d && d.errors) {
|
|
|
2359 |
for (i = 0; i < d.errors.length; i++) {
|
|
|
2360 |
if (d.errors[i].request) {
|
|
|
2361 |
u = d.errors[i].request.url;
|
|
|
2362 |
} else {
|
|
|
2363 |
u = d.errors[i];
|
|
|
2364 |
}
|
|
|
2365 |
errs[u] = u;
|
|
|
2366 |
}
|
|
|
2367 |
}
|
|
|
2368 |
|
|
|
2369 |
if (d && d.data && d.data.length && (d.type === 'success')) {
|
|
|
2370 |
for (i = 0; i < d.data.length; i++) {
|
|
|
2371 |
self.inserted[d.data[i].name] = true;
|
|
|
2372 |
//If the external module has a skin or a lang, reprocess it
|
|
|
2373 |
if (d.data[i].lang || d.data[i].skinnable) {
|
|
|
2374 |
delete self.inserted[d.data[i].name];
|
|
|
2375 |
self._refetch.push(d.data[i].name);
|
|
|
2376 |
}
|
|
|
2377 |
}
|
|
|
2378 |
}
|
|
|
2379 |
|
|
|
2380 |
if (actions === comp) {
|
|
|
2381 |
self._loading = null;
|
|
|
2382 |
Y.log('Loader actions complete!', 'info', 'loader');
|
|
|
2383 |
if (self._refetch.length) {
|
|
|
2384 |
//Get the deps for the new meta-data and reprocess
|
|
|
2385 |
Y.log('Found potential modules to refetch', 'info', 'loader');
|
|
|
2386 |
for (i = 0; i < self._refetch.length; i++) {
|
|
|
2387 |
deps = self.getRequires(self.getModule(self._refetch[i]));
|
|
|
2388 |
for (o = 0; o < deps.length; o++) {
|
|
|
2389 |
if (!self.inserted[deps[o]]) {
|
|
|
2390 |
//We wouldn't be to this point without the module being here
|
|
|
2391 |
mods[deps[o]] = deps[o];
|
|
|
2392 |
}
|
|
|
2393 |
}
|
|
|
2394 |
}
|
|
|
2395 |
mods = Y.Object.keys(mods);
|
|
|
2396 |
if (mods.length) {
|
|
|
2397 |
Y.log('Refetching modules with new meta-data', 'info', 'loader');
|
|
|
2398 |
self.require(mods);
|
|
|
2399 |
resMods = self.resolve(true);
|
|
|
2400 |
if (resMods.cssMods.length) {
|
|
|
2401 |
for (i=0; i < resMods.cssMods.length; i++) {
|
|
|
2402 |
modName = resMods.cssMods[i].name;
|
|
|
2403 |
delete YUI.Env._cssLoaded[modName];
|
|
|
2404 |
if (self.isCSSLoaded(modName)) {
|
|
|
2405 |
self.inserted[modName] = true;
|
|
|
2406 |
delete self.required[modName];
|
|
|
2407 |
}
|
|
|
2408 |
}
|
|
|
2409 |
self.sorted = [];
|
|
|
2410 |
self._sort();
|
|
|
2411 |
}
|
|
|
2412 |
d = null; //bail
|
|
|
2413 |
self._insert(); //insert the new deps
|
|
|
2414 |
}
|
|
|
2415 |
}
|
|
|
2416 |
if (d && d.fn) {
|
|
|
2417 |
Y.log('Firing final Loader callback!', 'info', 'loader');
|
|
|
2418 |
fn = d.fn;
|
|
|
2419 |
delete d.fn;
|
|
|
2420 |
fn.call(self, d);
|
|
|
2421 |
}
|
|
|
2422 |
}
|
|
|
2423 |
};
|
|
|
2424 |
|
|
|
2425 |
this._loading = true;
|
|
|
2426 |
|
|
|
2427 |
if (!modules.js.length && !modules.css.length) {
|
|
|
2428 |
Y.log('No modules resolved..', 'warn', 'loader');
|
|
|
2429 |
actions = -1;
|
|
|
2430 |
complete({
|
|
|
2431 |
fn: self._onSuccess
|
|
|
2432 |
});
|
|
|
2433 |
return;
|
|
|
2434 |
}
|
|
|
2435 |
|
|
|
2436 |
|
|
|
2437 |
if (modules.css.length) { //Load CSS first
|
|
|
2438 |
Y.log('Loading CSS modules', 'info', 'loader');
|
|
|
2439 |
Y.Get.css(modules.css, {
|
|
|
2440 |
data: modules.cssMods,
|
|
|
2441 |
attributes: self.cssAttributes,
|
|
|
2442 |
insertBefore: self.insertBefore,
|
|
|
2443 |
charset: self.charset,
|
|
|
2444 |
timeout: self.timeout,
|
|
|
2445 |
context: self,
|
|
|
2446 |
onProgress: function(e) {
|
|
|
2447 |
self._onProgress.call(self, e);
|
|
|
2448 |
},
|
|
|
2449 |
onTimeout: function(d) {
|
|
|
2450 |
self._onTimeout.call(self, d);
|
|
|
2451 |
},
|
|
|
2452 |
onSuccess: function(d) {
|
|
|
2453 |
d.type = 'success';
|
|
|
2454 |
d.fn = self._onSuccess;
|
|
|
2455 |
complete.call(self, d);
|
|
|
2456 |
},
|
|
|
2457 |
onFailure: function(d) {
|
|
|
2458 |
d.type = 'failure';
|
|
|
2459 |
d.fn = self._onFailure;
|
|
|
2460 |
complete.call(self, d);
|
|
|
2461 |
}
|
|
|
2462 |
});
|
|
|
2463 |
}
|
|
|
2464 |
|
|
|
2465 |
if (modules.js.length) {
|
|
|
2466 |
Y.log('Loading JS modules', 'info', 'loader');
|
|
|
2467 |
Y.Get.js(modules.js, {
|
|
|
2468 |
data: modules.jsMods,
|
|
|
2469 |
insertBefore: self.insertBefore,
|
|
|
2470 |
attributes: self.jsAttributes,
|
|
|
2471 |
charset: self.charset,
|
|
|
2472 |
timeout: self.timeout,
|
|
|
2473 |
autopurge: false,
|
|
|
2474 |
context: self,
|
|
|
2475 |
async: self.async,
|
|
|
2476 |
onProgress: function(e) {
|
|
|
2477 |
self._onProgress.call(self, e);
|
|
|
2478 |
},
|
|
|
2479 |
onTimeout: function(d) {
|
|
|
2480 |
self._onTimeout.call(self, d);
|
|
|
2481 |
},
|
|
|
2482 |
onSuccess: function(d) {
|
|
|
2483 |
d.type = 'success';
|
|
|
2484 |
d.fn = self._onSuccess;
|
|
|
2485 |
complete.call(self, d);
|
|
|
2486 |
},
|
|
|
2487 |
onFailure: function(d) {
|
|
|
2488 |
d.type = 'failure';
|
|
|
2489 |
d.fn = self._onFailure;
|
|
|
2490 |
complete.call(self, d);
|
|
|
2491 |
}
|
|
|
2492 |
});
|
|
|
2493 |
}
|
|
|
2494 |
},
|
|
|
2495 |
/**
|
|
|
2496 |
* Once a loader operation is completely finished, process any additional queued items.
|
|
|
2497 |
* @method _continue
|
|
|
2498 |
* @private
|
|
|
2499 |
*/
|
|
|
2500 |
_continue: function() {
|
|
|
2501 |
if (!(_queue.running) && _queue.size() > 0) {
|
|
|
2502 |
_queue.running = true;
|
|
|
2503 |
_queue.next()();
|
|
|
2504 |
}
|
|
|
2505 |
},
|
|
|
2506 |
|
|
|
2507 |
/**
|
|
|
2508 |
* inserts the requested modules and their dependencies.
|
|
|
2509 |
* <code>type</code> can be "js" or "css". Both script and
|
|
|
2510 |
* css are inserted if type is not provided.
|
|
|
2511 |
* @method insert
|
|
|
2512 |
* @param {object} o optional options object.
|
|
|
2513 |
* @param {string} type the type of dependency to insert.
|
|
|
2514 |
*/
|
|
|
2515 |
insert: function(o, type, skipsort) {
|
|
|
2516 |
Y.log('public insert() ' + (type || '') + ', ' +
|
|
|
2517 |
Y.Object.keys(this.required), "info", "loader");
|
|
|
2518 |
var self = this, copy = Y.merge(this);
|
|
|
2519 |
delete copy.require;
|
|
|
2520 |
delete copy.dirty;
|
|
|
2521 |
_queue.add(function() {
|
|
|
2522 |
self._insert(copy, o, type, skipsort);
|
|
|
2523 |
});
|
|
|
2524 |
this._continue();
|
|
|
2525 |
},
|
|
|
2526 |
|
|
|
2527 |
/**
|
|
|
2528 |
* Executed every time a module is loaded, and if we are in a load
|
|
|
2529 |
* cycle, we attempt to load the next script. Public so that it
|
|
|
2530 |
* is possible to call this if using a method other than
|
|
|
2531 |
* Y.register to determine when scripts are fully loaded
|
|
|
2532 |
* @method loadNext
|
|
|
2533 |
* @deprecated
|
|
|
2534 |
* @param {string} mname optional the name of the module that has
|
|
|
2535 |
* been loaded (which is usually why it is time to load the next
|
|
|
2536 |
* one).
|
|
|
2537 |
*/
|
|
|
2538 |
loadNext: function() {
|
|
|
2539 |
Y.log('loadNext was called..', 'error', 'loader');
|
|
|
2540 |
return;
|
|
|
2541 |
},
|
|
|
2542 |
|
|
|
2543 |
/**
|
|
|
2544 |
* Apply filter defined for this instance to a url/path
|
|
|
2545 |
* @method _filter
|
|
|
2546 |
* @param {string} u the string to filter.
|
|
|
2547 |
* @param {string} name the name of the module, if we are processing
|
|
|
2548 |
* a single module as opposed to a combined url.
|
|
|
2549 |
* @return {string} the filtered string.
|
|
|
2550 |
* @private
|
|
|
2551 |
*/
|
|
|
2552 |
_filter: function(u, name, group) {
|
|
|
2553 |
var f = this.filter,
|
|
|
2554 |
hasFilter = name && (name in this.filters),
|
|
|
2555 |
modFilter = hasFilter && this.filters[name],
|
|
|
2556 |
groupName = group || (this.moduleInfo[name] ? this.moduleInfo[name].group : null);
|
|
|
2557 |
|
|
|
2558 |
if (groupName && this.groups[groupName] && this.groups[groupName].filter) {
|
|
|
2559 |
modFilter = this.groups[groupName].filter;
|
|
|
2560 |
hasFilter = true;
|
|
|
2561 |
}
|
|
|
2562 |
|
|
|
2563 |
if (u) {
|
|
|
2564 |
if (hasFilter) {
|
|
|
2565 |
f = (L.isString(modFilter)) ? this.FILTER_DEFS[modFilter.toUpperCase()] || null : modFilter;
|
|
|
2566 |
}
|
|
|
2567 |
if (f) {
|
|
|
2568 |
u = u.replace(new RegExp(f.searchExp, 'g'), f.replaceStr);
|
|
|
2569 |
}
|
|
|
2570 |
}
|
|
|
2571 |
return u;
|
|
|
2572 |
},
|
|
|
2573 |
|
|
|
2574 |
/**
|
|
|
2575 |
* Generates the full url for a module
|
|
|
2576 |
* @method _url
|
|
|
2577 |
* @param {string} path the path fragment.
|
|
|
2578 |
* @param {String} name The name of the module
|
|
|
2579 |
* @param {String} [base=self.base] The base url to use
|
|
|
2580 |
* @return {string} the full url.
|
|
|
2581 |
* @private
|
|
|
2582 |
*/
|
|
|
2583 |
_url: function(path, name, base) {
|
|
|
2584 |
return this._filter((base || this.base || '') + path, name);
|
|
|
2585 |
},
|
|
|
2586 |
/**
|
|
|
2587 |
* Returns an Object hash of file arrays built from `loader.sorted` or from an arbitrary list of sorted modules.
|
|
|
2588 |
* @method resolve
|
|
|
2589 |
* @param {Boolean} [calc=false] Perform a loader.calculate() before anything else
|
|
|
2590 |
* @param {Array} [s=loader.sorted] An override for the loader.sorted array
|
|
|
2591 |
* @return {Object} Object hash (js and css) of two arrays of file lists
|
|
|
2592 |
* @example This method can be used as an off-line dep calculator
|
|
|
2593 |
*
|
|
|
2594 |
* var Y = YUI();
|
|
|
2595 |
* var loader = new Y.Loader({
|
|
|
2596 |
* filter: 'debug',
|
|
|
2597 |
* base: '../../',
|
|
|
2598 |
* root: 'build/',
|
|
|
2599 |
* combine: true,
|
|
|
2600 |
* require: ['node', 'dd', 'console']
|
|
|
2601 |
* });
|
|
|
2602 |
* var out = loader.resolve(true);
|
|
|
2603 |
*
|
|
|
2604 |
*/
|
|
|
2605 |
resolve: function(calc, s) {
|
|
|
2606 |
|
|
|
2607 |
var len, i, m, url, group, groupName, j, frag,
|
|
|
2608 |
comboSource, comboSources, mods, comboBase,
|
|
|
2609 |
base, urls, u = [], tmpBase, baseLen, resCombos = {},
|
|
|
2610 |
self = this, comboSep, maxURLLength,
|
|
|
2611 |
inserted = (self.ignoreRegistered) ? {} : self.inserted,
|
|
|
2612 |
resolved = { js: [], jsMods: [], css: [], cssMods: [] },
|
|
|
2613 |
type = self.loadType || 'js', addSingle;
|
|
|
2614 |
|
|
|
2615 |
if (self.skin.overrides || self.skin.defaultSkin !== DEFAULT_SKIN || self.ignoreRegistered) {
|
|
|
2616 |
self._resetModules();
|
|
|
2617 |
}
|
|
|
2618 |
|
|
|
2619 |
if (calc) {
|
|
|
2620 |
self.calculate();
|
|
|
2621 |
}
|
|
|
2622 |
s = s || self.sorted;
|
|
|
2623 |
|
|
|
2624 |
addSingle = function(m) {
|
|
|
2625 |
|
|
|
2626 |
if (m) {
|
|
|
2627 |
group = (m.group && self.groups[m.group]) || NOT_FOUND;
|
|
|
2628 |
|
|
|
2629 |
//Always assume it's async
|
|
|
2630 |
if (group.async === false) {
|
|
|
2631 |
m.async = group.async;
|
|
|
2632 |
}
|
|
|
2633 |
|
|
|
2634 |
url = (m.fullpath) ? self._filter(m.fullpath, s[i]) :
|
|
|
2635 |
self._url(m.path, s[i], group.base || m.base);
|
|
|
2636 |
|
|
|
2637 |
if (m.attributes || m.async === false) {
|
|
|
2638 |
url = {
|
|
|
2639 |
url: url,
|
|
|
2640 |
async: m.async
|
|
|
2641 |
};
|
|
|
2642 |
if (m.attributes) {
|
|
|
2643 |
url.attributes = m.attributes;
|
|
|
2644 |
}
|
|
|
2645 |
}
|
|
|
2646 |
resolved[m.type].push(url);
|
|
|
2647 |
resolved[m.type + 'Mods'].push(m);
|
|
|
2648 |
} else {
|
|
|
2649 |
Y.log('Undefined Module', 'warn', 'loader');
|
|
|
2650 |
}
|
|
|
2651 |
|
|
|
2652 |
};
|
|
|
2653 |
|
|
|
2654 |
len = s.length;
|
|
|
2655 |
|
|
|
2656 |
// the default combo base
|
|
|
2657 |
comboBase = self.comboBase;
|
|
|
2658 |
|
|
|
2659 |
url = comboBase;
|
|
|
2660 |
|
|
|
2661 |
comboSources = {};
|
|
|
2662 |
|
|
|
2663 |
for (i = 0; i < len; i++) {
|
|
|
2664 |
comboSource = comboBase;
|
|
|
2665 |
m = self.getModule(s[i]);
|
|
|
2666 |
groupName = m && m.group;
|
|
|
2667 |
group = self.groups[groupName];
|
|
|
2668 |
if (groupName && group) {
|
|
|
2669 |
|
|
|
2670 |
if (!group.combine || m.fullpath) {
|
|
|
2671 |
//This is not a combo module, skip it and load it singly later.
|
|
|
2672 |
addSingle(m);
|
|
|
2673 |
continue;
|
|
|
2674 |
}
|
|
|
2675 |
m.combine = true;
|
|
|
2676 |
if (group.comboBase) {
|
|
|
2677 |
comboSource = group.comboBase;
|
|
|
2678 |
}
|
|
|
2679 |
|
|
|
2680 |
if ("root" in group && L.isValue(group.root)) {
|
|
|
2681 |
m.root = group.root;
|
|
|
2682 |
}
|
|
|
2683 |
m.comboSep = group.comboSep || self.comboSep;
|
|
|
2684 |
m.maxURLLength = group.maxURLLength || self.maxURLLength;
|
|
|
2685 |
} else {
|
|
|
2686 |
if (!self.combine) {
|
|
|
2687 |
//This is not a combo module, skip it and load it singly later.
|
|
|
2688 |
addSingle(m);
|
|
|
2689 |
continue;
|
|
|
2690 |
}
|
|
|
2691 |
}
|
|
|
2692 |
|
|
|
2693 |
comboSources[comboSource] = comboSources[comboSource] || [];
|
|
|
2694 |
comboSources[comboSource].push(m);
|
|
|
2695 |
}
|
|
|
2696 |
|
|
|
2697 |
for (j in comboSources) {
|
|
|
2698 |
if (comboSources.hasOwnProperty(j)) {
|
|
|
2699 |
resCombos[j] = resCombos[j] || { js: [], jsMods: [], css: [], cssMods: [] };
|
|
|
2700 |
url = j;
|
|
|
2701 |
mods = comboSources[j];
|
|
|
2702 |
len = mods.length;
|
|
|
2703 |
|
|
|
2704 |
if (len) {
|
|
|
2705 |
for (i = 0; i < len; i++) {
|
|
|
2706 |
if (inserted[mods[i]]) {
|
|
|
2707 |
continue;
|
|
|
2708 |
}
|
|
|
2709 |
m = mods[i];
|
|
|
2710 |
// Do not try to combine non-yui JS unless combo def
|
|
|
2711 |
// is found
|
|
|
2712 |
if (m && (m.combine || !m.ext)) {
|
|
|
2713 |
resCombos[j].comboSep = m.comboSep;
|
|
|
2714 |
resCombos[j].group = m.group;
|
|
|
2715 |
resCombos[j].maxURLLength = m.maxURLLength;
|
|
|
2716 |
frag = ((L.isValue(m.root)) ? m.root : self.root) + (m.path || m.fullpath);
|
|
|
2717 |
frag = self._filter(frag, m.name);
|
|
|
2718 |
resCombos[j][m.type].push(frag);
|
|
|
2719 |
resCombos[j][m.type + 'Mods'].push(m);
|
|
|
2720 |
} else {
|
|
|
2721 |
//Add them to the next process..
|
|
|
2722 |
if (mods[i]) {
|
|
|
2723 |
addSingle(mods[i]);
|
|
|
2724 |
}
|
|
|
2725 |
}
|
|
|
2726 |
|
|
|
2727 |
}
|
|
|
2728 |
}
|
|
|
2729 |
}
|
|
|
2730 |
}
|
|
|
2731 |
|
|
|
2732 |
|
|
|
2733 |
for (j in resCombos) {
|
|
|
2734 |
if (resCombos.hasOwnProperty(j)) {
|
|
|
2735 |
base = j;
|
|
|
2736 |
comboSep = resCombos[base].comboSep || self.comboSep;
|
|
|
2737 |
maxURLLength = resCombos[base].maxURLLength || self.maxURLLength;
|
|
|
2738 |
Y.log('Using maxURLLength of ' + maxURLLength, 'info', 'loader');
|
|
|
2739 |
for (type in resCombos[base]) {
|
|
|
2740 |
if (type === JS || type === CSS) {
|
|
|
2741 |
urls = resCombos[base][type];
|
|
|
2742 |
mods = resCombos[base][type + 'Mods'];
|
|
|
2743 |
len = urls.length;
|
|
|
2744 |
tmpBase = base + urls.join(comboSep);
|
|
|
2745 |
baseLen = tmpBase.length;
|
|
|
2746 |
if (maxURLLength <= base.length) {
|
|
|
2747 |
Y.log('maxURLLength (' + maxURLLength + ') is lower than the comboBase length (' + base.length + '), resetting to default (' + MAX_URL_LENGTH + ')', 'error', 'loader');
|
|
|
2748 |
maxURLLength = MAX_URL_LENGTH;
|
|
|
2749 |
}
|
|
|
2750 |
|
|
|
2751 |
if (len) {
|
|
|
2752 |
if (baseLen > maxURLLength) {
|
|
|
2753 |
Y.log('Exceeded maxURLLength (' + maxURLLength + ') for ' + type + ', splitting', 'info', 'loader');
|
|
|
2754 |
u = [];
|
|
|
2755 |
for (s = 0; s < len; s++) {
|
|
|
2756 |
u.push(urls[s]);
|
|
|
2757 |
tmpBase = base + u.join(comboSep);
|
|
|
2758 |
|
|
|
2759 |
if (tmpBase.length > maxURLLength) {
|
|
|
2760 |
m = u.pop();
|
|
|
2761 |
tmpBase = base + u.join(comboSep);
|
|
|
2762 |
resolved[type].push(self._filter(tmpBase, null, resCombos[base].group));
|
|
|
2763 |
u = [];
|
|
|
2764 |
if (m) {
|
|
|
2765 |
u.push(m);
|
|
|
2766 |
}
|
|
|
2767 |
}
|
|
|
2768 |
}
|
|
|
2769 |
if (u.length) {
|
|
|
2770 |
tmpBase = base + u.join(comboSep);
|
|
|
2771 |
resolved[type].push(self._filter(tmpBase, null, resCombos[base].group));
|
|
|
2772 |
}
|
|
|
2773 |
} else {
|
|
|
2774 |
resolved[type].push(self._filter(tmpBase, null, resCombos[base].group));
|
|
|
2775 |
}
|
|
|
2776 |
}
|
|
|
2777 |
resolved[type + 'Mods'] = resolved[type + 'Mods'].concat(mods);
|
|
|
2778 |
}
|
|
|
2779 |
}
|
|
|
2780 |
}
|
|
|
2781 |
}
|
|
|
2782 |
|
|
|
2783 |
resCombos = null;
|
|
|
2784 |
|
|
|
2785 |
return resolved;
|
|
|
2786 |
},
|
|
|
2787 |
/**
|
|
|
2788 |
Shortcut to calculate, resolve and load all modules.
|
|
|
2789 |
|
|
|
2790 |
var loader = new Y.Loader({
|
|
|
2791 |
ignoreRegistered: true,
|
|
|
2792 |
modules: {
|
|
|
2793 |
mod: {
|
|
|
2794 |
path: 'mod.js'
|
|
|
2795 |
}
|
|
|
2796 |
},
|
|
|
2797 |
requires: [ 'mod' ]
|
|
|
2798 |
});
|
|
|
2799 |
loader.load(function() {
|
|
|
2800 |
console.log('All modules have loaded..');
|
|
|
2801 |
});
|
|
|
2802 |
|
|
|
2803 |
|
|
|
2804 |
@method load
|
|
|
2805 |
@param {Callback} cb Executed after all load operations are complete
|
|
|
2806 |
*/
|
|
|
2807 |
load: function(cb) {
|
|
|
2808 |
if (!cb) {
|
|
|
2809 |
Y.log('No callback supplied to load()', 'error', 'loader');
|
|
|
2810 |
return;
|
|
|
2811 |
}
|
|
|
2812 |
var self = this,
|
|
|
2813 |
out = self.resolve(true);
|
|
|
2814 |
|
|
|
2815 |
self.data = out;
|
|
|
2816 |
|
|
|
2817 |
self.onEnd = function() {
|
|
|
2818 |
cb.apply(self.context || self, arguments);
|
|
|
2819 |
};
|
|
|
2820 |
|
|
|
2821 |
self.insert();
|
|
|
2822 |
}
|
|
|
2823 |
};
|
|
|
2824 |
|
|
|
2825 |
|
|
|
2826 |
|
|
|
2827 |
}, '@VERSION@', {"requires": ["get", "features"]});
|
|
|
2828 |
YUI.add('loader-rollup', function (Y, NAME) {
|
|
|
2829 |
|
|
|
2830 |
/**
|
|
|
2831 |
* Optional automatic rollup logic for reducing http connections
|
|
|
2832 |
* when not using a combo service.
|
|
|
2833 |
* @module loader
|
|
|
2834 |
* @submodule rollup
|
|
|
2835 |
*/
|
|
|
2836 |
|
|
|
2837 |
/**
|
|
|
2838 |
* Look for rollup packages to determine if all of the modules a
|
|
|
2839 |
* rollup supersedes are required. If so, include the rollup to
|
|
|
2840 |
* help reduce the total number of connections required. Called
|
|
|
2841 |
* by calculate(). This is an optional feature, and requires the
|
|
|
2842 |
* appropriate submodule to function.
|
|
|
2843 |
* @method _rollup
|
|
|
2844 |
* @for Loader
|
|
|
2845 |
* @private
|
|
|
2846 |
*/
|
|
|
2847 |
Y.Loader.prototype._rollup = function() {
|
|
|
2848 |
var i, j, m, s, r = this.required, roll,
|
|
|
2849 |
info = this.moduleInfo, rolled, c, smod;
|
|
|
2850 |
|
|
|
2851 |
// find and cache rollup modules
|
|
|
2852 |
if (this.dirty || !this.rollups) {
|
|
|
2853 |
this.rollups = {};
|
|
|
2854 |
for (i in info) {
|
|
|
2855 |
if (info.hasOwnProperty(i)) {
|
|
|
2856 |
m = this.getModule(i);
|
|
|
2857 |
// if (m && m.rollup && m.supersedes) {
|
|
|
2858 |
if (m && m.rollup) {
|
|
|
2859 |
this.rollups[i] = m;
|
|
|
2860 |
}
|
|
|
2861 |
}
|
|
|
2862 |
}
|
|
|
2863 |
}
|
|
|
2864 |
|
|
|
2865 |
// make as many passes as needed to pick up rollup rollups
|
|
|
2866 |
for (;;) {
|
|
|
2867 |
rolled = false;
|
|
|
2868 |
|
|
|
2869 |
// go through the rollup candidates
|
|
|
2870 |
for (i in this.rollups) {
|
|
|
2871 |
if (this.rollups.hasOwnProperty(i)) {
|
|
|
2872 |
// there can be only one, unless forced
|
|
|
2873 |
if (!r[i] && ((!this.loaded[i]) || this.forceMap[i])) {
|
|
|
2874 |
m = this.getModule(i);
|
|
|
2875 |
s = m.supersedes || [];
|
|
|
2876 |
roll = false;
|
|
|
2877 |
|
|
|
2878 |
// @TODO remove continue
|
|
|
2879 |
if (!m.rollup) {
|
|
|
2880 |
continue;
|
|
|
2881 |
}
|
|
|
2882 |
|
|
|
2883 |
c = 0;
|
|
|
2884 |
|
|
|
2885 |
// check the threshold
|
|
|
2886 |
for (j = 0; j < s.length; j++) {
|
|
|
2887 |
smod = info[s[j]];
|
|
|
2888 |
|
|
|
2889 |
// if the superseded module is loaded, we can't
|
|
|
2890 |
// load the rollup unless it has been forced.
|
|
|
2891 |
if (this.loaded[s[j]] && !this.forceMap[s[j]]) {
|
|
|
2892 |
roll = false;
|
|
|
2893 |
break;
|
|
|
2894 |
// increment the counter if this module is required.
|
|
|
2895 |
// if we are beyond the rollup threshold, we will
|
|
|
2896 |
// use the rollup module
|
|
|
2897 |
} else if (r[s[j]] && m.type === smod.type) {
|
|
|
2898 |
c++;
|
|
|
2899 |
// Y.log("adding to thresh: " + c + ", " + s[j]);
|
|
|
2900 |
roll = (c >= m.rollup);
|
|
|
2901 |
if (roll) {
|
|
|
2902 |
// Y.log("over thresh " + c + ", " + s[j]);
|
|
|
2903 |
break;
|
|
|
2904 |
}
|
|
|
2905 |
}
|
|
|
2906 |
}
|
|
|
2907 |
|
|
|
2908 |
if (roll) {
|
|
|
2909 |
// Y.log("adding rollup: " + i);
|
|
|
2910 |
// add the rollup
|
|
|
2911 |
r[i] = true;
|
|
|
2912 |
rolled = true;
|
|
|
2913 |
|
|
|
2914 |
// expand the rollup's dependencies
|
|
|
2915 |
this.getRequires(m);
|
|
|
2916 |
}
|
|
|
2917 |
}
|
|
|
2918 |
}
|
|
|
2919 |
}
|
|
|
2920 |
|
|
|
2921 |
// if we made it here w/o rolling up something, we are done
|
|
|
2922 |
if (!rolled) {
|
|
|
2923 |
break;
|
|
|
2924 |
}
|
|
|
2925 |
}
|
|
|
2926 |
};
|
|
|
2927 |
|
|
|
2928 |
|
|
|
2929 |
}, '@VERSION@', {"requires": ["loader-base"]});
|
|
|
2930 |
YUI.add('loader-yui3', function (Y, NAME) {
|
|
|
2931 |
|
|
|
2932 |
/* This file is auto-generated by (yogi loader --yes --mix --start ../) */
|
|
|
2933 |
|
|
|
2934 |
/*jshint maxlen:900, eqeqeq: false */
|
|
|
2935 |
|
|
|
2936 |
/**
|
|
|
2937 |
* YUI 3 module metadata
|
|
|
2938 |
* @module loader
|
|
|
2939 |
* @submodule loader-yui3
|
|
|
2940 |
*/
|
|
|
2941 |
YUI.Env[Y.version].modules = YUI.Env[Y.version].modules || {};
|
|
|
2942 |
Y.mix(YUI.Env[Y.version].modules, {
|
|
|
2943 |
"align-plugin": {
|
|
|
2944 |
"requires": [
|
|
|
2945 |
"node-screen",
|
|
|
2946 |
"node-pluginhost"
|
|
|
2947 |
]
|
|
|
2948 |
},
|
|
|
2949 |
"anim": {
|
|
|
2950 |
"use": [
|
|
|
2951 |
"anim-base",
|
|
|
2952 |
"anim-color",
|
|
|
2953 |
"anim-curve",
|
|
|
2954 |
"anim-easing",
|
|
|
2955 |
"anim-node-plugin",
|
|
|
2956 |
"anim-scroll",
|
|
|
2957 |
"anim-xy"
|
|
|
2958 |
]
|
|
|
2959 |
},
|
|
|
2960 |
"anim-base": {
|
|
|
2961 |
"requires": [
|
|
|
2962 |
"base-base",
|
|
|
2963 |
"node-style"
|
|
|
2964 |
]
|
|
|
2965 |
},
|
|
|
2966 |
"anim-color": {
|
|
|
2967 |
"requires": [
|
|
|
2968 |
"anim-base"
|
|
|
2969 |
]
|
|
|
2970 |
},
|
|
|
2971 |
"anim-curve": {
|
|
|
2972 |
"requires": [
|
|
|
2973 |
"anim-xy"
|
|
|
2974 |
]
|
|
|
2975 |
},
|
|
|
2976 |
"anim-easing": {
|
|
|
2977 |
"requires": [
|
|
|
2978 |
"anim-base"
|
|
|
2979 |
]
|
|
|
2980 |
},
|
|
|
2981 |
"anim-node-plugin": {
|
|
|
2982 |
"requires": [
|
|
|
2983 |
"node-pluginhost",
|
|
|
2984 |
"anim-base"
|
|
|
2985 |
]
|
|
|
2986 |
},
|
|
|
2987 |
"anim-scroll": {
|
|
|
2988 |
"requires": [
|
|
|
2989 |
"anim-base"
|
|
|
2990 |
]
|
|
|
2991 |
},
|
|
|
2992 |
"anim-shape": {
|
|
|
2993 |
"requires": [
|
|
|
2994 |
"anim-base",
|
|
|
2995 |
"anim-easing",
|
|
|
2996 |
"anim-color",
|
|
|
2997 |
"matrix"
|
|
|
2998 |
]
|
|
|
2999 |
},
|
|
|
3000 |
"anim-shape-transform": {
|
|
|
3001 |
"use": [
|
|
|
3002 |
"anim-shape"
|
|
|
3003 |
]
|
|
|
3004 |
},
|
|
|
3005 |
"anim-xy": {
|
|
|
3006 |
"requires": [
|
|
|
3007 |
"anim-base",
|
|
|
3008 |
"node-screen"
|
|
|
3009 |
]
|
|
|
3010 |
},
|
|
|
3011 |
"app": {
|
|
|
3012 |
"use": [
|
|
|
3013 |
"app-base",
|
|
|
3014 |
"app-content",
|
|
|
3015 |
"app-transitions",
|
|
|
3016 |
"lazy-model-list",
|
|
|
3017 |
"model",
|
|
|
3018 |
"model-list",
|
|
|
3019 |
"model-sync-rest",
|
|
|
3020 |
"router",
|
|
|
3021 |
"view",
|
|
|
3022 |
"view-node-map"
|
|
|
3023 |
]
|
|
|
3024 |
},
|
|
|
3025 |
"app-base": {
|
|
|
3026 |
"requires": [
|
|
|
3027 |
"classnamemanager",
|
|
|
3028 |
"pjax-base",
|
|
|
3029 |
"router",
|
|
|
3030 |
"view"
|
|
|
3031 |
]
|
|
|
3032 |
},
|
|
|
3033 |
"app-content": {
|
|
|
3034 |
"requires": [
|
|
|
3035 |
"app-base",
|
|
|
3036 |
"pjax-content"
|
|
|
3037 |
]
|
|
|
3038 |
},
|
|
|
3039 |
"app-transitions": {
|
|
|
3040 |
"requires": [
|
|
|
3041 |
"app-base"
|
|
|
3042 |
]
|
|
|
3043 |
},
|
|
|
3044 |
"app-transitions-css": {
|
|
|
3045 |
"type": "css"
|
|
|
3046 |
},
|
|
|
3047 |
"app-transitions-native": {
|
|
|
3048 |
"condition": {
|
|
|
3049 |
"name": "app-transitions-native",
|
|
|
3050 |
"test": function (Y) {
|
|
|
3051 |
var doc = Y.config.doc,
|
|
|
3052 |
node = doc ? doc.documentElement : null;
|
|
|
3053 |
|
|
|
3054 |
if (node && node.style) {
|
|
|
3055 |
return ('MozTransition' in node.style || 'WebkitTransition' in node.style || 'transition' in node.style);
|
|
|
3056 |
}
|
|
|
3057 |
|
|
|
3058 |
return false;
|
|
|
3059 |
},
|
|
|
3060 |
"trigger": "app-transitions"
|
|
|
3061 |
},
|
|
|
3062 |
"requires": [
|
|
|
3063 |
"app-transitions",
|
|
|
3064 |
"app-transitions-css",
|
|
|
3065 |
"parallel",
|
|
|
3066 |
"transition"
|
|
|
3067 |
]
|
|
|
3068 |
},
|
|
|
3069 |
"array-extras": {
|
|
|
3070 |
"requires": [
|
|
|
3071 |
"yui-base"
|
|
|
3072 |
]
|
|
|
3073 |
},
|
|
|
3074 |
"array-invoke": {
|
|
|
3075 |
"requires": [
|
|
|
3076 |
"yui-base"
|
|
|
3077 |
]
|
|
|
3078 |
},
|
|
|
3079 |
"arraylist": {
|
|
|
3080 |
"requires": [
|
|
|
3081 |
"yui-base"
|
|
|
3082 |
]
|
|
|
3083 |
},
|
|
|
3084 |
"arraylist-add": {
|
|
|
3085 |
"requires": [
|
|
|
3086 |
"arraylist"
|
|
|
3087 |
]
|
|
|
3088 |
},
|
|
|
3089 |
"arraylist-filter": {
|
|
|
3090 |
"requires": [
|
|
|
3091 |
"arraylist"
|
|
|
3092 |
]
|
|
|
3093 |
},
|
|
|
3094 |
"arraysort": {
|
|
|
3095 |
"requires": [
|
|
|
3096 |
"yui-base"
|
|
|
3097 |
]
|
|
|
3098 |
},
|
|
|
3099 |
"async-queue": {
|
|
|
3100 |
"requires": [
|
|
|
3101 |
"event-custom"
|
|
|
3102 |
]
|
|
|
3103 |
},
|
|
|
3104 |
"attribute": {
|
|
|
3105 |
"use": [
|
|
|
3106 |
"attribute-base",
|
|
|
3107 |
"attribute-complex"
|
|
|
3108 |
]
|
|
|
3109 |
},
|
|
|
3110 |
"attribute-base": {
|
|
|
3111 |
"requires": [
|
|
|
3112 |
"attribute-core",
|
|
|
3113 |
"attribute-observable",
|
|
|
3114 |
"attribute-extras"
|
|
|
3115 |
]
|
|
|
3116 |
},
|
|
|
3117 |
"attribute-complex": {
|
|
|
3118 |
"requires": [
|
|
|
3119 |
"attribute-base"
|
|
|
3120 |
]
|
|
|
3121 |
},
|
|
|
3122 |
"attribute-core": {
|
|
|
3123 |
"requires": [
|
|
|
3124 |
"oop"
|
|
|
3125 |
]
|
|
|
3126 |
},
|
|
|
3127 |
"attribute-events": {
|
|
|
3128 |
"use": [
|
|
|
3129 |
"attribute-observable"
|
|
|
3130 |
]
|
|
|
3131 |
},
|
|
|
3132 |
"attribute-extras": {
|
|
|
3133 |
"requires": [
|
|
|
3134 |
"oop"
|
|
|
3135 |
]
|
|
|
3136 |
},
|
|
|
3137 |
"attribute-observable": {
|
|
|
3138 |
"requires": [
|
|
|
3139 |
"event-custom"
|
|
|
3140 |
]
|
|
|
3141 |
},
|
|
|
3142 |
"autocomplete": {
|
|
|
3143 |
"use": [
|
|
|
3144 |
"autocomplete-base",
|
|
|
3145 |
"autocomplete-sources",
|
|
|
3146 |
"autocomplete-list",
|
|
|
3147 |
"autocomplete-plugin"
|
|
|
3148 |
]
|
|
|
3149 |
},
|
|
|
3150 |
"autocomplete-base": {
|
|
|
3151 |
"optional": [
|
|
|
3152 |
"autocomplete-sources"
|
|
|
3153 |
],
|
|
|
3154 |
"requires": [
|
|
|
3155 |
"array-extras",
|
|
|
3156 |
"base-build",
|
|
|
3157 |
"escape",
|
|
|
3158 |
"event-valuechange",
|
|
|
3159 |
"node-base"
|
|
|
3160 |
]
|
|
|
3161 |
},
|
|
|
3162 |
"autocomplete-filters": {
|
|
|
3163 |
"requires": [
|
|
|
3164 |
"array-extras",
|
|
|
3165 |
"text-wordbreak"
|
|
|
3166 |
]
|
|
|
3167 |
},
|
|
|
3168 |
"autocomplete-filters-accentfold": {
|
|
|
3169 |
"requires": [
|
|
|
3170 |
"array-extras",
|
|
|
3171 |
"text-accentfold",
|
|
|
3172 |
"text-wordbreak"
|
|
|
3173 |
]
|
|
|
3174 |
},
|
|
|
3175 |
"autocomplete-highlighters": {
|
|
|
3176 |
"requires": [
|
|
|
3177 |
"array-extras",
|
|
|
3178 |
"highlight-base"
|
|
|
3179 |
]
|
|
|
3180 |
},
|
|
|
3181 |
"autocomplete-highlighters-accentfold": {
|
|
|
3182 |
"requires": [
|
|
|
3183 |
"array-extras",
|
|
|
3184 |
"highlight-accentfold"
|
|
|
3185 |
]
|
|
|
3186 |
},
|
|
|
3187 |
"autocomplete-list": {
|
|
|
3188 |
"after": [
|
|
|
3189 |
"autocomplete-sources"
|
|
|
3190 |
],
|
|
|
3191 |
"lang": [
|
|
|
3192 |
"en",
|
|
|
3193 |
"es",
|
|
|
3194 |
"it"
|
|
|
3195 |
],
|
|
|
3196 |
"requires": [
|
|
|
3197 |
"autocomplete-base",
|
|
|
3198 |
"event-resize",
|
|
|
3199 |
"node-screen",
|
|
|
3200 |
"selector-css3",
|
|
|
3201 |
"shim-plugin",
|
|
|
3202 |
"widget",
|
|
|
3203 |
"widget-position",
|
|
|
3204 |
"widget-position-align"
|
|
|
3205 |
],
|
|
|
3206 |
"skinnable": true
|
|
|
3207 |
},
|
|
|
3208 |
"autocomplete-list-keys": {
|
|
|
3209 |
"condition": {
|
|
|
3210 |
"name": "autocomplete-list-keys",
|
|
|
3211 |
"test": function (Y) {
|
|
|
3212 |
// Only add keyboard support to autocomplete-list if this doesn't appear to
|
|
|
3213 |
// be an iOS or Android-based mobile device.
|
|
|
3214 |
//
|
|
|
3215 |
// There's currently no feasible way to actually detect whether a device has
|
|
|
3216 |
// a hardware keyboard, so this sniff will have to do. It can easily be
|
|
|
3217 |
// overridden by manually loading the autocomplete-list-keys module.
|
|
|
3218 |
//
|
|
|
3219 |
// Worth noting: even though iOS supports bluetooth keyboards, Mobile Safari
|
|
|
3220 |
// doesn't fire the keyboard events used by AutoCompleteList, so there's
|
|
|
3221 |
// no point loading the -keys module even when a bluetooth keyboard may be
|
|
|
3222 |
// available.
|
|
|
3223 |
return !(Y.UA.ios || Y.UA.android);
|
|
|
3224 |
},
|
|
|
3225 |
"trigger": "autocomplete-list"
|
|
|
3226 |
},
|
|
|
3227 |
"requires": [
|
|
|
3228 |
"autocomplete-list",
|
|
|
3229 |
"base-build"
|
|
|
3230 |
]
|
|
|
3231 |
},
|
|
|
3232 |
"autocomplete-plugin": {
|
|
|
3233 |
"requires": [
|
|
|
3234 |
"autocomplete-list",
|
|
|
3235 |
"node-pluginhost"
|
|
|
3236 |
]
|
|
|
3237 |
},
|
|
|
3238 |
"autocomplete-sources": {
|
|
|
3239 |
"optional": [
|
|
|
3240 |
"io-base",
|
|
|
3241 |
"json-parse",
|
|
|
3242 |
"jsonp",
|
|
|
3243 |
"yql"
|
|
|
3244 |
],
|
|
|
3245 |
"requires": [
|
|
|
3246 |
"autocomplete-base"
|
|
|
3247 |
]
|
|
|
3248 |
},
|
|
|
3249 |
"axes": {
|
|
|
3250 |
"use": [
|
|
|
3251 |
"axis-numeric",
|
|
|
3252 |
"axis-category",
|
|
|
3253 |
"axis-time",
|
|
|
3254 |
"axis-stacked"
|
|
|
3255 |
]
|
|
|
3256 |
},
|
|
|
3257 |
"axes-base": {
|
|
|
3258 |
"use": [
|
|
|
3259 |
"axis-numeric-base",
|
|
|
3260 |
"axis-category-base",
|
|
|
3261 |
"axis-time-base",
|
|
|
3262 |
"axis-stacked-base"
|
|
|
3263 |
]
|
|
|
3264 |
},
|
|
|
3265 |
"axis": {
|
|
|
3266 |
"requires": [
|
|
|
3267 |
"dom",
|
|
|
3268 |
"widget",
|
|
|
3269 |
"widget-position",
|
|
|
3270 |
"widget-stack",
|
|
|
3271 |
"graphics",
|
|
|
3272 |
"axis-base"
|
|
|
3273 |
]
|
|
|
3274 |
},
|
|
|
3275 |
"axis-base": {
|
|
|
3276 |
"requires": [
|
|
|
3277 |
"classnamemanager",
|
|
|
3278 |
"datatype-number",
|
|
|
3279 |
"datatype-date",
|
|
|
3280 |
"base",
|
|
|
3281 |
"event-custom"
|
|
|
3282 |
]
|
|
|
3283 |
},
|
|
|
3284 |
"axis-category": {
|
|
|
3285 |
"requires": [
|
|
|
3286 |
"axis",
|
|
|
3287 |
"axis-category-base"
|
|
|
3288 |
]
|
|
|
3289 |
},
|
|
|
3290 |
"axis-category-base": {
|
|
|
3291 |
"requires": [
|
|
|
3292 |
"axis-base"
|
|
|
3293 |
]
|
|
|
3294 |
},
|
|
|
3295 |
"axis-numeric": {
|
|
|
3296 |
"requires": [
|
|
|
3297 |
"axis",
|
|
|
3298 |
"axis-numeric-base"
|
|
|
3299 |
]
|
|
|
3300 |
},
|
|
|
3301 |
"axis-numeric-base": {
|
|
|
3302 |
"requires": [
|
|
|
3303 |
"axis-base"
|
|
|
3304 |
]
|
|
|
3305 |
},
|
|
|
3306 |
"axis-stacked": {
|
|
|
3307 |
"requires": [
|
|
|
3308 |
"axis-numeric",
|
|
|
3309 |
"axis-stacked-base"
|
|
|
3310 |
]
|
|
|
3311 |
},
|
|
|
3312 |
"axis-stacked-base": {
|
|
|
3313 |
"requires": [
|
|
|
3314 |
"axis-numeric-base"
|
|
|
3315 |
]
|
|
|
3316 |
},
|
|
|
3317 |
"axis-time": {
|
|
|
3318 |
"requires": [
|
|
|
3319 |
"axis",
|
|
|
3320 |
"axis-time-base"
|
|
|
3321 |
]
|
|
|
3322 |
},
|
|
|
3323 |
"axis-time-base": {
|
|
|
3324 |
"requires": [
|
|
|
3325 |
"axis-base"
|
|
|
3326 |
]
|
|
|
3327 |
},
|
|
|
3328 |
"base": {
|
|
|
3329 |
"use": [
|
|
|
3330 |
"base-base",
|
|
|
3331 |
"base-pluginhost",
|
|
|
3332 |
"base-build"
|
|
|
3333 |
]
|
|
|
3334 |
},
|
|
|
3335 |
"base-base": {
|
|
|
3336 |
"requires": [
|
|
|
3337 |
"attribute-base",
|
|
|
3338 |
"base-core",
|
|
|
3339 |
"base-observable"
|
|
|
3340 |
]
|
|
|
3341 |
},
|
|
|
3342 |
"base-build": {
|
|
|
3343 |
"requires": [
|
|
|
3344 |
"base-base"
|
|
|
3345 |
]
|
|
|
3346 |
},
|
|
|
3347 |
"base-core": {
|
|
|
3348 |
"requires": [
|
|
|
3349 |
"attribute-core"
|
|
|
3350 |
]
|
|
|
3351 |
},
|
|
|
3352 |
"base-observable": {
|
|
|
3353 |
"requires": [
|
|
|
3354 |
"attribute-observable"
|
|
|
3355 |
]
|
|
|
3356 |
},
|
|
|
3357 |
"base-pluginhost": {
|
|
|
3358 |
"requires": [
|
|
|
3359 |
"base-base",
|
|
|
3360 |
"pluginhost"
|
|
|
3361 |
]
|
|
|
3362 |
},
|
|
|
3363 |
"button": {
|
|
|
3364 |
"requires": [
|
|
|
3365 |
"button-core",
|
|
|
3366 |
"cssbutton",
|
|
|
3367 |
"widget"
|
|
|
3368 |
]
|
|
|
3369 |
},
|
|
|
3370 |
"button-core": {
|
|
|
3371 |
"requires": [
|
|
|
3372 |
"attribute-core",
|
|
|
3373 |
"classnamemanager",
|
|
|
3374 |
"node-base"
|
|
|
3375 |
]
|
|
|
3376 |
},
|
|
|
3377 |
"button-group": {
|
|
|
3378 |
"requires": [
|
|
|
3379 |
"button-plugin",
|
|
|
3380 |
"cssbutton",
|
|
|
3381 |
"widget"
|
|
|
3382 |
]
|
|
|
3383 |
},
|
|
|
3384 |
"button-plugin": {
|
|
|
3385 |
"requires": [
|
|
|
3386 |
"button-core",
|
|
|
3387 |
"cssbutton",
|
|
|
3388 |
"node-pluginhost"
|
|
|
3389 |
]
|
|
|
3390 |
},
|
|
|
3391 |
"cache": {
|
|
|
3392 |
"use": [
|
|
|
3393 |
"cache-base",
|
|
|
3394 |
"cache-offline",
|
|
|
3395 |
"cache-plugin"
|
|
|
3396 |
]
|
|
|
3397 |
},
|
|
|
3398 |
"cache-base": {
|
|
|
3399 |
"requires": [
|
|
|
3400 |
"base"
|
|
|
3401 |
]
|
|
|
3402 |
},
|
|
|
3403 |
"cache-offline": {
|
|
|
3404 |
"requires": [
|
|
|
3405 |
"cache-base",
|
|
|
3406 |
"json"
|
|
|
3407 |
]
|
|
|
3408 |
},
|
|
|
3409 |
"cache-plugin": {
|
|
|
3410 |
"requires": [
|
|
|
3411 |
"plugin",
|
|
|
3412 |
"cache-base"
|
|
|
3413 |
]
|
|
|
3414 |
},
|
|
|
3415 |
"calendar": {
|
|
|
3416 |
"lang": [
|
|
|
3417 |
"de",
|
|
|
3418 |
"en",
|
|
|
3419 |
"es",
|
|
|
3420 |
"es-AR",
|
|
|
3421 |
"fr",
|
|
|
3422 |
"it",
|
|
|
3423 |
"ja",
|
|
|
3424 |
"nb-NO",
|
|
|
3425 |
"nl",
|
|
|
3426 |
"pt-BR",
|
|
|
3427 |
"ru",
|
|
|
3428 |
"zh-HANT-TW"
|
|
|
3429 |
],
|
|
|
3430 |
"requires": [
|
|
|
3431 |
"calendar-base",
|
|
|
3432 |
"calendarnavigator"
|
|
|
3433 |
],
|
|
|
3434 |
"skinnable": true
|
|
|
3435 |
},
|
|
|
3436 |
"calendar-base": {
|
|
|
3437 |
"lang": [
|
|
|
3438 |
"de",
|
|
|
3439 |
"en",
|
|
|
3440 |
"es",
|
|
|
3441 |
"es-AR",
|
|
|
3442 |
"fr",
|
|
|
3443 |
"it",
|
|
|
3444 |
"ja",
|
|
|
3445 |
"nb-NO",
|
|
|
3446 |
"nl",
|
|
|
3447 |
"pt-BR",
|
|
|
3448 |
"ru",
|
|
|
3449 |
"zh-HANT-TW"
|
|
|
3450 |
],
|
|
|
3451 |
"requires": [
|
|
|
3452 |
"widget",
|
|
|
3453 |
"datatype-date",
|
|
|
3454 |
"datatype-date-math",
|
|
|
3455 |
"cssgrids"
|
|
|
3456 |
],
|
|
|
3457 |
"skinnable": true
|
|
|
3458 |
},
|
|
|
3459 |
"calendarnavigator": {
|
|
|
3460 |
"requires": [
|
|
|
3461 |
"plugin",
|
|
|
3462 |
"classnamemanager",
|
|
|
3463 |
"datatype-date",
|
|
|
3464 |
"node"
|
|
|
3465 |
],
|
|
|
3466 |
"skinnable": true
|
|
|
3467 |
},
|
|
|
3468 |
"charts": {
|
|
|
3469 |
"use": [
|
|
|
3470 |
"charts-base"
|
|
|
3471 |
]
|
|
|
3472 |
},
|
|
|
3473 |
"charts-base": {
|
|
|
3474 |
"requires": [
|
|
|
3475 |
"dom",
|
|
|
3476 |
"event-mouseenter",
|
|
|
3477 |
"event-touch",
|
|
|
3478 |
"graphics-group",
|
|
|
3479 |
"axes",
|
|
|
3480 |
"series-pie",
|
|
|
3481 |
"series-line",
|
|
|
3482 |
"series-marker",
|
|
|
3483 |
"series-area",
|
|
|
3484 |
"series-spline",
|
|
|
3485 |
"series-column",
|
|
|
3486 |
"series-bar",
|
|
|
3487 |
"series-areaspline",
|
|
|
3488 |
"series-combo",
|
|
|
3489 |
"series-combospline",
|
|
|
3490 |
"series-line-stacked",
|
|
|
3491 |
"series-marker-stacked",
|
|
|
3492 |
"series-area-stacked",
|
|
|
3493 |
"series-spline-stacked",
|
|
|
3494 |
"series-column-stacked",
|
|
|
3495 |
"series-bar-stacked",
|
|
|
3496 |
"series-areaspline-stacked",
|
|
|
3497 |
"series-combo-stacked",
|
|
|
3498 |
"series-combospline-stacked"
|
|
|
3499 |
]
|
|
|
3500 |
},
|
|
|
3501 |
"charts-legend": {
|
|
|
3502 |
"requires": [
|
|
|
3503 |
"charts-base"
|
|
|
3504 |
]
|
|
|
3505 |
},
|
|
|
3506 |
"classnamemanager": {
|
|
|
3507 |
"requires": [
|
|
|
3508 |
"yui-base"
|
|
|
3509 |
]
|
|
|
3510 |
},
|
|
|
3511 |
"clickable-rail": {
|
|
|
3512 |
"requires": [
|
|
|
3513 |
"slider-base"
|
|
|
3514 |
]
|
|
|
3515 |
},
|
|
|
3516 |
"collection": {
|
|
|
3517 |
"use": [
|
|
|
3518 |
"array-extras",
|
|
|
3519 |
"arraylist",
|
|
|
3520 |
"arraylist-add",
|
|
|
3521 |
"arraylist-filter",
|
|
|
3522 |
"array-invoke"
|
|
|
3523 |
]
|
|
|
3524 |
},
|
|
|
3525 |
"color": {
|
|
|
3526 |
"use": [
|
|
|
3527 |
"color-base",
|
|
|
3528 |
"color-hsl",
|
|
|
3529 |
"color-harmony"
|
|
|
3530 |
]
|
|
|
3531 |
},
|
|
|
3532 |
"color-base": {
|
|
|
3533 |
"requires": [
|
|
|
3534 |
"yui-base"
|
|
|
3535 |
]
|
|
|
3536 |
},
|
|
|
3537 |
"color-harmony": {
|
|
|
3538 |
"requires": [
|
|
|
3539 |
"color-hsl"
|
|
|
3540 |
]
|
|
|
3541 |
},
|
|
|
3542 |
"color-hsl": {
|
|
|
3543 |
"requires": [
|
|
|
3544 |
"color-base"
|
|
|
3545 |
]
|
|
|
3546 |
},
|
|
|
3547 |
"color-hsv": {
|
|
|
3548 |
"requires": [
|
|
|
3549 |
"color-base"
|
|
|
3550 |
]
|
|
|
3551 |
},
|
|
|
3552 |
"console": {
|
|
|
3553 |
"lang": [
|
|
|
3554 |
"en",
|
|
|
3555 |
"es",
|
|
|
3556 |
"it",
|
|
|
3557 |
"ja"
|
|
|
3558 |
],
|
|
|
3559 |
"requires": [
|
|
|
3560 |
"yui-log",
|
|
|
3561 |
"widget"
|
|
|
3562 |
],
|
|
|
3563 |
"skinnable": true
|
|
|
3564 |
},
|
|
|
3565 |
"console-filters": {
|
|
|
3566 |
"requires": [
|
|
|
3567 |
"plugin",
|
|
|
3568 |
"console"
|
|
|
3569 |
],
|
|
|
3570 |
"skinnable": true
|
|
|
3571 |
},
|
|
|
3572 |
"controller": {
|
|
|
3573 |
"use": [
|
|
|
3574 |
"router"
|
|
|
3575 |
]
|
|
|
3576 |
},
|
|
|
3577 |
"cookie": {
|
|
|
3578 |
"requires": [
|
|
|
3579 |
"yui-base"
|
|
|
3580 |
]
|
|
|
3581 |
},
|
|
|
3582 |
"createlink-base": {
|
|
|
3583 |
"requires": [
|
|
|
3584 |
"editor-base"
|
|
|
3585 |
]
|
|
|
3586 |
},
|
|
|
3587 |
"cssbase": {
|
|
|
3588 |
"after": [
|
|
|
3589 |
"cssreset",
|
|
|
3590 |
"cssfonts",
|
|
|
3591 |
"cssgrids",
|
|
|
3592 |
"cssreset-context",
|
|
|
3593 |
"cssfonts-context",
|
|
|
3594 |
"cssgrids-context"
|
|
|
3595 |
],
|
|
|
3596 |
"type": "css"
|
|
|
3597 |
},
|
|
|
3598 |
"cssbase-context": {
|
|
|
3599 |
"after": [
|
|
|
3600 |
"cssreset",
|
|
|
3601 |
"cssfonts",
|
|
|
3602 |
"cssgrids",
|
|
|
3603 |
"cssreset-context",
|
|
|
3604 |
"cssfonts-context",
|
|
|
3605 |
"cssgrids-context"
|
|
|
3606 |
],
|
|
|
3607 |
"type": "css"
|
|
|
3608 |
},
|
|
|
3609 |
"cssbutton": {
|
|
|
3610 |
"type": "css"
|
|
|
3611 |
},
|
|
|
3612 |
"cssfonts": {
|
|
|
3613 |
"type": "css"
|
|
|
3614 |
},
|
|
|
3615 |
"cssfonts-context": {
|
|
|
3616 |
"type": "css"
|
|
|
3617 |
},
|
|
|
3618 |
"cssgrids": {
|
|
|
3619 |
"optional": [
|
|
|
3620 |
"cssreset",
|
|
|
3621 |
"cssfonts"
|
|
|
3622 |
],
|
|
|
3623 |
"type": "css"
|
|
|
3624 |
},
|
|
|
3625 |
"cssgrids-base": {
|
|
|
3626 |
"optional": [
|
|
|
3627 |
"cssreset",
|
|
|
3628 |
"cssfonts"
|
|
|
3629 |
],
|
|
|
3630 |
"type": "css"
|
|
|
3631 |
},
|
|
|
3632 |
"cssgrids-responsive": {
|
|
|
3633 |
"optional": [
|
|
|
3634 |
"cssreset",
|
|
|
3635 |
"cssfonts"
|
|
|
3636 |
],
|
|
|
3637 |
"requires": [
|
|
|
3638 |
"cssgrids",
|
|
|
3639 |
"cssgrids-responsive-base"
|
|
|
3640 |
],
|
|
|
3641 |
"type": "css"
|
|
|
3642 |
},
|
|
|
3643 |
"cssgrids-units": {
|
|
|
3644 |
"optional": [
|
|
|
3645 |
"cssreset",
|
|
|
3646 |
"cssfonts"
|
|
|
3647 |
],
|
|
|
3648 |
"requires": [
|
|
|
3649 |
"cssgrids-base"
|
|
|
3650 |
],
|
|
|
3651 |
"type": "css"
|
|
|
3652 |
},
|
|
|
3653 |
"cssnormalize": {
|
|
|
3654 |
"type": "css"
|
|
|
3655 |
},
|
|
|
3656 |
"cssnormalize-context": {
|
|
|
3657 |
"type": "css"
|
|
|
3658 |
},
|
|
|
3659 |
"cssreset": {
|
|
|
3660 |
"type": "css"
|
|
|
3661 |
},
|
|
|
3662 |
"cssreset-context": {
|
|
|
3663 |
"type": "css"
|
|
|
3664 |
},
|
|
|
3665 |
"dataschema": {
|
|
|
3666 |
"use": [
|
|
|
3667 |
"dataschema-base",
|
|
|
3668 |
"dataschema-json",
|
|
|
3669 |
"dataschema-xml",
|
|
|
3670 |
"dataschema-array",
|
|
|
3671 |
"dataschema-text"
|
|
|
3672 |
]
|
|
|
3673 |
},
|
|
|
3674 |
"dataschema-array": {
|
|
|
3675 |
"requires": [
|
|
|
3676 |
"dataschema-base"
|
|
|
3677 |
]
|
|
|
3678 |
},
|
|
|
3679 |
"dataschema-base": {
|
|
|
3680 |
"requires": [
|
|
|
3681 |
"base"
|
|
|
3682 |
]
|
|
|
3683 |
},
|
|
|
3684 |
"dataschema-json": {
|
|
|
3685 |
"requires": [
|
|
|
3686 |
"dataschema-base",
|
|
|
3687 |
"json"
|
|
|
3688 |
]
|
|
|
3689 |
},
|
|
|
3690 |
"dataschema-text": {
|
|
|
3691 |
"requires": [
|
|
|
3692 |
"dataschema-base"
|
|
|
3693 |
]
|
|
|
3694 |
},
|
|
|
3695 |
"dataschema-xml": {
|
|
|
3696 |
"requires": [
|
|
|
3697 |
"dataschema-base"
|
|
|
3698 |
]
|
|
|
3699 |
},
|
|
|
3700 |
"datasource": {
|
|
|
3701 |
"use": [
|
|
|
3702 |
"datasource-local",
|
|
|
3703 |
"datasource-io",
|
|
|
3704 |
"datasource-get",
|
|
|
3705 |
"datasource-function",
|
|
|
3706 |
"datasource-cache",
|
|
|
3707 |
"datasource-jsonschema",
|
|
|
3708 |
"datasource-xmlschema",
|
|
|
3709 |
"datasource-arrayschema",
|
|
|
3710 |
"datasource-textschema",
|
|
|
3711 |
"datasource-polling"
|
|
|
3712 |
]
|
|
|
3713 |
},
|
|
|
3714 |
"datasource-arrayschema": {
|
|
|
3715 |
"requires": [
|
|
|
3716 |
"datasource-local",
|
|
|
3717 |
"plugin",
|
|
|
3718 |
"dataschema-array"
|
|
|
3719 |
]
|
|
|
3720 |
},
|
|
|
3721 |
"datasource-cache": {
|
|
|
3722 |
"requires": [
|
|
|
3723 |
"datasource-local",
|
|
|
3724 |
"plugin",
|
|
|
3725 |
"cache-base"
|
|
|
3726 |
]
|
|
|
3727 |
},
|
|
|
3728 |
"datasource-function": {
|
|
|
3729 |
"requires": [
|
|
|
3730 |
"datasource-local"
|
|
|
3731 |
]
|
|
|
3732 |
},
|
|
|
3733 |
"datasource-get": {
|
|
|
3734 |
"requires": [
|
|
|
3735 |
"datasource-local",
|
|
|
3736 |
"get"
|
|
|
3737 |
]
|
|
|
3738 |
},
|
|
|
3739 |
"datasource-io": {
|
|
|
3740 |
"requires": [
|
|
|
3741 |
"datasource-local",
|
|
|
3742 |
"io-base"
|
|
|
3743 |
]
|
|
|
3744 |
},
|
|
|
3745 |
"datasource-jsonschema": {
|
|
|
3746 |
"requires": [
|
|
|
3747 |
"datasource-local",
|
|
|
3748 |
"plugin",
|
|
|
3749 |
"dataschema-json"
|
|
|
3750 |
]
|
|
|
3751 |
},
|
|
|
3752 |
"datasource-local": {
|
|
|
3753 |
"requires": [
|
|
|
3754 |
"base"
|
|
|
3755 |
]
|
|
|
3756 |
},
|
|
|
3757 |
"datasource-polling": {
|
|
|
3758 |
"requires": [
|
|
|
3759 |
"datasource-local"
|
|
|
3760 |
]
|
|
|
3761 |
},
|
|
|
3762 |
"datasource-textschema": {
|
|
|
3763 |
"requires": [
|
|
|
3764 |
"datasource-local",
|
|
|
3765 |
"plugin",
|
|
|
3766 |
"dataschema-text"
|
|
|
3767 |
]
|
|
|
3768 |
},
|
|
|
3769 |
"datasource-xmlschema": {
|
|
|
3770 |
"requires": [
|
|
|
3771 |
"datasource-local",
|
|
|
3772 |
"plugin",
|
|
|
3773 |
"datatype-xml",
|
|
|
3774 |
"dataschema-xml"
|
|
|
3775 |
]
|
|
|
3776 |
},
|
|
|
3777 |
"datatable": {
|
|
|
3778 |
"use": [
|
|
|
3779 |
"datatable-core",
|
|
|
3780 |
"datatable-table",
|
|
|
3781 |
"datatable-head",
|
|
|
3782 |
"datatable-body",
|
|
|
3783 |
"datatable-base",
|
|
|
3784 |
"datatable-column-widths",
|
|
|
3785 |
"datatable-message",
|
|
|
3786 |
"datatable-mutable",
|
|
|
3787 |
"datatable-sort",
|
|
|
3788 |
"datatable-datasource"
|
|
|
3789 |
]
|
|
|
3790 |
},
|
|
|
3791 |
"datatable-base": {
|
|
|
3792 |
"requires": [
|
|
|
3793 |
"datatable-core",
|
|
|
3794 |
"datatable-table",
|
|
|
3795 |
"datatable-head",
|
|
|
3796 |
"datatable-body",
|
|
|
3797 |
"base-build",
|
|
|
3798 |
"widget"
|
|
|
3799 |
],
|
|
|
3800 |
"skinnable": true
|
|
|
3801 |
},
|
|
|
3802 |
"datatable-body": {
|
|
|
3803 |
"requires": [
|
|
|
3804 |
"datatable-core",
|
|
|
3805 |
"view",
|
|
|
3806 |
"classnamemanager"
|
|
|
3807 |
]
|
|
|
3808 |
},
|
|
|
3809 |
"datatable-column-widths": {
|
|
|
3810 |
"requires": [
|
|
|
3811 |
"datatable-base"
|
|
|
3812 |
]
|
|
|
3813 |
},
|
|
|
3814 |
"datatable-core": {
|
|
|
3815 |
"requires": [
|
|
|
3816 |
"escape",
|
|
|
3817 |
"model-list",
|
|
|
3818 |
"node-event-delegate"
|
|
|
3819 |
]
|
|
|
3820 |
},
|
|
|
3821 |
"datatable-datasource": {
|
|
|
3822 |
"requires": [
|
|
|
3823 |
"datatable-base",
|
|
|
3824 |
"plugin",
|
|
|
3825 |
"datasource-local"
|
|
|
3826 |
]
|
|
|
3827 |
},
|
|
|
3828 |
"datatable-formatters": {
|
|
|
3829 |
"requires": [
|
|
|
3830 |
"datatable-body",
|
|
|
3831 |
"datatype-number-format",
|
|
|
3832 |
"datatype-date-format",
|
|
|
3833 |
"escape"
|
|
|
3834 |
]
|
|
|
3835 |
},
|
|
|
3836 |
"datatable-head": {
|
|
|
3837 |
"requires": [
|
|
|
3838 |
"datatable-core",
|
|
|
3839 |
"view",
|
|
|
3840 |
"classnamemanager"
|
|
|
3841 |
]
|
|
|
3842 |
},
|
|
|
3843 |
"datatable-message": {
|
|
|
3844 |
"lang": [
|
|
|
3845 |
"en",
|
|
|
3846 |
"fr",
|
|
|
3847 |
"es",
|
|
|
3848 |
"it"
|
|
|
3849 |
],
|
|
|
3850 |
"requires": [
|
|
|
3851 |
"datatable-base"
|
|
|
3852 |
],
|
|
|
3853 |
"skinnable": true
|
|
|
3854 |
},
|
|
|
3855 |
"datatable-mutable": {
|
|
|
3856 |
"requires": [
|
|
|
3857 |
"datatable-base"
|
|
|
3858 |
]
|
|
|
3859 |
},
|
|
|
3860 |
"datatable-scroll": {
|
|
|
3861 |
"requires": [
|
|
|
3862 |
"datatable-base",
|
|
|
3863 |
"datatable-column-widths",
|
|
|
3864 |
"dom-screen"
|
|
|
3865 |
],
|
|
|
3866 |
"skinnable": true
|
|
|
3867 |
},
|
|
|
3868 |
"datatable-sort": {
|
|
|
3869 |
"lang": [
|
|
|
3870 |
"en",
|
|
|
3871 |
"fr",
|
|
|
3872 |
"es"
|
|
|
3873 |
],
|
|
|
3874 |
"requires": [
|
|
|
3875 |
"datatable-base"
|
|
|
3876 |
],
|
|
|
3877 |
"skinnable": true
|
|
|
3878 |
},
|
|
|
3879 |
"datatable-table": {
|
|
|
3880 |
"requires": [
|
|
|
3881 |
"datatable-core",
|
|
|
3882 |
"datatable-head",
|
|
|
3883 |
"datatable-body",
|
|
|
3884 |
"view",
|
|
|
3885 |
"classnamemanager"
|
|
|
3886 |
]
|
|
|
3887 |
},
|
|
|
3888 |
"datatype": {
|
|
|
3889 |
"use": [
|
|
|
3890 |
"datatype-date",
|
|
|
3891 |
"datatype-number",
|
|
|
3892 |
"datatype-xml"
|
|
|
3893 |
]
|
|
|
3894 |
},
|
|
|
3895 |
"datatype-date": {
|
|
|
3896 |
"use": [
|
|
|
3897 |
"datatype-date-parse",
|
|
|
3898 |
"datatype-date-format",
|
|
|
3899 |
"datatype-date-math"
|
|
|
3900 |
]
|
|
|
3901 |
},
|
|
|
3902 |
"datatype-date-format": {
|
|
|
3903 |
"lang": [
|
|
|
3904 |
"ar",
|
|
|
3905 |
"ar-JO",
|
|
|
3906 |
"ca",
|
|
|
3907 |
"ca-ES",
|
|
|
3908 |
"da",
|
|
|
3909 |
"da-DK",
|
|
|
3910 |
"de",
|
|
|
3911 |
"de-AT",
|
|
|
3912 |
"de-DE",
|
|
|
3913 |
"el",
|
|
|
3914 |
"el-GR",
|
|
|
3915 |
"en",
|
|
|
3916 |
"en-AU",
|
|
|
3917 |
"en-CA",
|
|
|
3918 |
"en-GB",
|
|
|
3919 |
"en-IE",
|
|
|
3920 |
"en-IN",
|
|
|
3921 |
"en-JO",
|
|
|
3922 |
"en-MY",
|
|
|
3923 |
"en-NZ",
|
|
|
3924 |
"en-PH",
|
|
|
3925 |
"en-SG",
|
|
|
3926 |
"en-US",
|
|
|
3927 |
"es",
|
|
|
3928 |
"es-AR",
|
|
|
3929 |
"es-BO",
|
|
|
3930 |
"es-CL",
|
|
|
3931 |
"es-CO",
|
|
|
3932 |
"es-EC",
|
|
|
3933 |
"es-ES",
|
|
|
3934 |
"es-MX",
|
|
|
3935 |
"es-PE",
|
|
|
3936 |
"es-PY",
|
|
|
3937 |
"es-US",
|
|
|
3938 |
"es-UY",
|
|
|
3939 |
"es-VE",
|
|
|
3940 |
"fi",
|
|
|
3941 |
"fi-FI",
|
|
|
3942 |
"fr",
|
|
|
3943 |
"fr-BE",
|
|
|
3944 |
"fr-CA",
|
|
|
3945 |
"fr-FR",
|
|
|
3946 |
"hi",
|
|
|
3947 |
"hi-IN",
|
|
|
3948 |
"id",
|
|
|
3949 |
"id-ID",
|
|
|
3950 |
"it",
|
|
|
3951 |
"it-IT",
|
|
|
3952 |
"ja",
|
|
|
3953 |
"ja-JP",
|
|
|
3954 |
"ko",
|
|
|
3955 |
"ko-KR",
|
|
|
3956 |
"ms",
|
|
|
3957 |
"ms-MY",
|
|
|
3958 |
"nb",
|
|
|
3959 |
"nb-NO",
|
|
|
3960 |
"nl",
|
|
|
3961 |
"nl-BE",
|
|
|
3962 |
"nl-NL",
|
|
|
3963 |
"pl",
|
|
|
3964 |
"pl-PL",
|
|
|
3965 |
"pt",
|
|
|
3966 |
"pt-BR",
|
|
|
3967 |
"ro",
|
|
|
3968 |
"ro-RO",
|
|
|
3969 |
"ru",
|
|
|
3970 |
"ru-RU",
|
|
|
3971 |
"sv",
|
|
|
3972 |
"sv-SE",
|
|
|
3973 |
"th",
|
|
|
3974 |
"th-TH",
|
|
|
3975 |
"tr",
|
|
|
3976 |
"tr-TR",
|
|
|
3977 |
"vi",
|
|
|
3978 |
"vi-VN",
|
|
|
3979 |
"zh-Hans",
|
|
|
3980 |
"zh-Hans-CN",
|
|
|
3981 |
"zh-Hant",
|
|
|
3982 |
"zh-Hant-HK",
|
|
|
3983 |
"zh-Hant-TW"
|
|
|
3984 |
]
|
|
|
3985 |
},
|
|
|
3986 |
"datatype-date-math": {
|
|
|
3987 |
"requires": [
|
|
|
3988 |
"yui-base"
|
|
|
3989 |
]
|
|
|
3990 |
},
|
|
|
3991 |
"datatype-date-parse": {},
|
|
|
3992 |
"datatype-number": {
|
|
|
3993 |
"use": [
|
|
|
3994 |
"datatype-number-parse",
|
|
|
3995 |
"datatype-number-format"
|
|
|
3996 |
]
|
|
|
3997 |
},
|
|
|
3998 |
"datatype-number-format": {},
|
|
|
3999 |
"datatype-number-parse": {},
|
|
|
4000 |
"datatype-xml": {
|
|
|
4001 |
"use": [
|
|
|
4002 |
"datatype-xml-parse",
|
|
|
4003 |
"datatype-xml-format"
|
|
|
4004 |
]
|
|
|
4005 |
},
|
|
|
4006 |
"datatype-xml-format": {},
|
|
|
4007 |
"datatype-xml-parse": {},
|
|
|
4008 |
"dd": {
|
|
|
4009 |
"use": [
|
|
|
4010 |
"dd-ddm-base",
|
|
|
4011 |
"dd-ddm",
|
|
|
4012 |
"dd-ddm-drop",
|
|
|
4013 |
"dd-drag",
|
|
|
4014 |
"dd-proxy",
|
|
|
4015 |
"dd-constrain",
|
|
|
4016 |
"dd-drop",
|
|
|
4017 |
"dd-scroll",
|
|
|
4018 |
"dd-delegate"
|
|
|
4019 |
]
|
|
|
4020 |
},
|
|
|
4021 |
"dd-constrain": {
|
|
|
4022 |
"requires": [
|
|
|
4023 |
"dd-drag"
|
|
|
4024 |
]
|
|
|
4025 |
},
|
|
|
4026 |
"dd-ddm": {
|
|
|
4027 |
"requires": [
|
|
|
4028 |
"dd-ddm-base",
|
|
|
4029 |
"event-resize"
|
|
|
4030 |
]
|
|
|
4031 |
},
|
|
|
4032 |
"dd-ddm-base": {
|
|
|
4033 |
"requires": [
|
|
|
4034 |
"node",
|
|
|
4035 |
"base",
|
|
|
4036 |
"yui-throttle",
|
|
|
4037 |
"classnamemanager"
|
|
|
4038 |
]
|
|
|
4039 |
},
|
|
|
4040 |
"dd-ddm-drop": {
|
|
|
4041 |
"requires": [
|
|
|
4042 |
"dd-ddm"
|
|
|
4043 |
]
|
|
|
4044 |
},
|
|
|
4045 |
"dd-delegate": {
|
|
|
4046 |
"requires": [
|
|
|
4047 |
"dd-drag",
|
|
|
4048 |
"dd-drop-plugin",
|
|
|
4049 |
"event-mouseenter"
|
|
|
4050 |
]
|
|
|
4051 |
},
|
|
|
4052 |
"dd-drag": {
|
|
|
4053 |
"requires": [
|
|
|
4054 |
"dd-ddm-base"
|
|
|
4055 |
]
|
|
|
4056 |
},
|
|
|
4057 |
"dd-drop": {
|
|
|
4058 |
"requires": [
|
|
|
4059 |
"dd-drag",
|
|
|
4060 |
"dd-ddm-drop"
|
|
|
4061 |
]
|
|
|
4062 |
},
|
|
|
4063 |
"dd-drop-plugin": {
|
|
|
4064 |
"requires": [
|
|
|
4065 |
"dd-drop"
|
|
|
4066 |
]
|
|
|
4067 |
},
|
|
|
4068 |
"dd-gestures": {
|
|
|
4069 |
"condition": {
|
|
|
4070 |
"name": "dd-gestures",
|
|
|
4071 |
"trigger": "dd-drag",
|
|
|
4072 |
"ua": "touchEnabled"
|
|
|
4073 |
},
|
|
|
4074 |
"requires": [
|
|
|
4075 |
"dd-drag",
|
|
|
4076 |
"event-synthetic",
|
|
|
4077 |
"event-gestures"
|
|
|
4078 |
]
|
|
|
4079 |
},
|
|
|
4080 |
"dd-plugin": {
|
|
|
4081 |
"optional": [
|
|
|
4082 |
"dd-constrain",
|
|
|
4083 |
"dd-proxy"
|
|
|
4084 |
],
|
|
|
4085 |
"requires": [
|
|
|
4086 |
"dd-drag"
|
|
|
4087 |
]
|
|
|
4088 |
},
|
|
|
4089 |
"dd-proxy": {
|
|
|
4090 |
"requires": [
|
|
|
4091 |
"dd-drag"
|
|
|
4092 |
]
|
|
|
4093 |
},
|
|
|
4094 |
"dd-scroll": {
|
|
|
4095 |
"requires": [
|
|
|
4096 |
"dd-drag"
|
|
|
4097 |
]
|
|
|
4098 |
},
|
|
|
4099 |
"dial": {
|
|
|
4100 |
"lang": [
|
|
|
4101 |
"en",
|
|
|
4102 |
"es"
|
|
|
4103 |
],
|
|
|
4104 |
"requires": [
|
|
|
4105 |
"widget",
|
|
|
4106 |
"dd-drag",
|
|
|
4107 |
"event-mouseenter",
|
|
|
4108 |
"event-move",
|
|
|
4109 |
"event-key",
|
|
|
4110 |
"transition",
|
|
|
4111 |
"intl"
|
|
|
4112 |
],
|
|
|
4113 |
"skinnable": true
|
|
|
4114 |
},
|
|
|
4115 |
"dom": {
|
|
|
4116 |
"use": [
|
|
|
4117 |
"dom-base",
|
|
|
4118 |
"dom-screen",
|
|
|
4119 |
"dom-style",
|
|
|
4120 |
"selector-native",
|
|
|
4121 |
"selector"
|
|
|
4122 |
]
|
|
|
4123 |
},
|
|
|
4124 |
"dom-base": {
|
|
|
4125 |
"requires": [
|
|
|
4126 |
"dom-core"
|
|
|
4127 |
]
|
|
|
4128 |
},
|
|
|
4129 |
"dom-core": {
|
|
|
4130 |
"requires": [
|
|
|
4131 |
"oop",
|
|
|
4132 |
"features"
|
|
|
4133 |
]
|
|
|
4134 |
},
|
|
|
4135 |
"dom-deprecated": {
|
|
|
4136 |
"requires": [
|
|
|
4137 |
"dom-base"
|
|
|
4138 |
]
|
|
|
4139 |
},
|
|
|
4140 |
"dom-screen": {
|
|
|
4141 |
"requires": [
|
|
|
4142 |
"dom-base",
|
|
|
4143 |
"dom-style"
|
|
|
4144 |
]
|
|
|
4145 |
},
|
|
|
4146 |
"dom-style": {
|
|
|
4147 |
"requires": [
|
|
|
4148 |
"dom-base",
|
|
|
4149 |
"color-base"
|
|
|
4150 |
]
|
|
|
4151 |
},
|
|
|
4152 |
"dom-style-ie": {
|
|
|
4153 |
"condition": {
|
|
|
4154 |
"name": "dom-style-ie",
|
|
|
4155 |
"test": function (Y) {
|
|
|
4156 |
|
|
|
4157 |
var testFeature = Y.Features.test,
|
|
|
4158 |
addFeature = Y.Features.add,
|
|
|
4159 |
WINDOW = Y.config.win,
|
|
|
4160 |
DOCUMENT = Y.config.doc,
|
|
|
4161 |
DOCUMENT_ELEMENT = 'documentElement',
|
|
|
4162 |
ret = false;
|
|
|
4163 |
|
|
|
4164 |
addFeature('style', 'computedStyle', {
|
|
|
4165 |
test: function() {
|
|
|
4166 |
return WINDOW && 'getComputedStyle' in WINDOW;
|
|
|
4167 |
}
|
|
|
4168 |
});
|
|
|
4169 |
|
|
|
4170 |
addFeature('style', 'opacity', {
|
|
|
4171 |
test: function() {
|
|
|
4172 |
return DOCUMENT && 'opacity' in DOCUMENT[DOCUMENT_ELEMENT].style;
|
|
|
4173 |
}
|
|
|
4174 |
});
|
|
|
4175 |
|
|
|
4176 |
ret = (!testFeature('style', 'opacity') &&
|
|
|
4177 |
!testFeature('style', 'computedStyle'));
|
|
|
4178 |
|
|
|
4179 |
return ret;
|
|
|
4180 |
},
|
|
|
4181 |
"trigger": "dom-style"
|
|
|
4182 |
},
|
|
|
4183 |
"requires": [
|
|
|
4184 |
"dom-style"
|
|
|
4185 |
]
|
|
|
4186 |
},
|
|
|
4187 |
"dump": {
|
|
|
4188 |
"requires": [
|
|
|
4189 |
"yui-base"
|
|
|
4190 |
]
|
|
|
4191 |
},
|
|
|
4192 |
"editor": {
|
|
|
4193 |
"use": [
|
|
|
4194 |
"frame",
|
|
|
4195 |
"editor-selection",
|
|
|
4196 |
"exec-command",
|
|
|
4197 |
"editor-base",
|
|
|
4198 |
"editor-para",
|
|
|
4199 |
"editor-br",
|
|
|
4200 |
"editor-bidi",
|
|
|
4201 |
"editor-tab",
|
|
|
4202 |
"createlink-base"
|
|
|
4203 |
]
|
|
|
4204 |
},
|
|
|
4205 |
"editor-base": {
|
|
|
4206 |
"requires": [
|
|
|
4207 |
"base",
|
|
|
4208 |
"frame",
|
|
|
4209 |
"node",
|
|
|
4210 |
"exec-command",
|
|
|
4211 |
"editor-selection"
|
|
|
4212 |
]
|
|
|
4213 |
},
|
|
|
4214 |
"editor-bidi": {
|
|
|
4215 |
"requires": [
|
|
|
4216 |
"editor-base"
|
|
|
4217 |
]
|
|
|
4218 |
},
|
|
|
4219 |
"editor-br": {
|
|
|
4220 |
"requires": [
|
|
|
4221 |
"editor-base"
|
|
|
4222 |
]
|
|
|
4223 |
},
|
|
|
4224 |
"editor-lists": {
|
|
|
4225 |
"requires": [
|
|
|
4226 |
"editor-base"
|
|
|
4227 |
]
|
|
|
4228 |
},
|
|
|
4229 |
"editor-para": {
|
|
|
4230 |
"requires": [
|
|
|
4231 |
"editor-para-base"
|
|
|
4232 |
]
|
|
|
4233 |
},
|
|
|
4234 |
"editor-para-base": {
|
|
|
4235 |
"requires": [
|
|
|
4236 |
"editor-base"
|
|
|
4237 |
]
|
|
|
4238 |
},
|
|
|
4239 |
"editor-para-ie": {
|
|
|
4240 |
"condition": {
|
|
|
4241 |
"name": "editor-para-ie",
|
|
|
4242 |
"trigger": "editor-para",
|
|
|
4243 |
"ua": "ie",
|
|
|
4244 |
"when": "instead"
|
|
|
4245 |
},
|
|
|
4246 |
"requires": [
|
|
|
4247 |
"editor-para-base"
|
|
|
4248 |
]
|
|
|
4249 |
},
|
|
|
4250 |
"editor-selection": {
|
|
|
4251 |
"requires": [
|
|
|
4252 |
"node"
|
|
|
4253 |
]
|
|
|
4254 |
},
|
|
|
4255 |
"editor-tab": {
|
|
|
4256 |
"requires": [
|
|
|
4257 |
"editor-base"
|
|
|
4258 |
]
|
|
|
4259 |
},
|
|
|
4260 |
"escape": {
|
|
|
4261 |
"requires": [
|
|
|
4262 |
"yui-base"
|
|
|
4263 |
]
|
|
|
4264 |
},
|
|
|
4265 |
"event": {
|
|
|
4266 |
"after": [
|
|
|
4267 |
"node-base"
|
|
|
4268 |
],
|
|
|
4269 |
"use": [
|
|
|
4270 |
"event-base",
|
|
|
4271 |
"event-delegate",
|
|
|
4272 |
"event-synthetic",
|
|
|
4273 |
"event-mousewheel",
|
|
|
4274 |
"event-mouseenter",
|
|
|
4275 |
"event-key",
|
|
|
4276 |
"event-focus",
|
|
|
4277 |
"event-resize",
|
|
|
4278 |
"event-hover",
|
|
|
4279 |
"event-outside",
|
|
|
4280 |
"event-touch",
|
|
|
4281 |
"event-move",
|
|
|
4282 |
"event-flick",
|
|
|
4283 |
"event-valuechange",
|
|
|
4284 |
"event-tap"
|
|
|
4285 |
]
|
|
|
4286 |
},
|
|
|
4287 |
"event-base": {
|
|
|
4288 |
"after": [
|
|
|
4289 |
"node-base"
|
|
|
4290 |
],
|
|
|
4291 |
"requires": [
|
|
|
4292 |
"event-custom-base"
|
|
|
4293 |
]
|
|
|
4294 |
},
|
|
|
4295 |
"event-base-ie": {
|
|
|
4296 |
"after": [
|
|
|
4297 |
"event-base"
|
|
|
4298 |
],
|
|
|
4299 |
"condition": {
|
|
|
4300 |
"name": "event-base-ie",
|
|
|
4301 |
"test": function(Y) {
|
|
|
4302 |
var imp = Y.config.doc && Y.config.doc.implementation;
|
|
|
4303 |
return (imp && (!imp.hasFeature('Events', '2.0')));
|
|
|
4304 |
},
|
|
|
4305 |
"trigger": "node-base"
|
|
|
4306 |
},
|
|
|
4307 |
"requires": [
|
|
|
4308 |
"node-base"
|
|
|
4309 |
]
|
|
|
4310 |
},
|
|
|
4311 |
"event-contextmenu": {
|
|
|
4312 |
"requires": [
|
|
|
4313 |
"event-synthetic",
|
|
|
4314 |
"dom-screen"
|
|
|
4315 |
]
|
|
|
4316 |
},
|
|
|
4317 |
"event-custom": {
|
|
|
4318 |
"use": [
|
|
|
4319 |
"event-custom-base",
|
|
|
4320 |
"event-custom-complex"
|
|
|
4321 |
]
|
|
|
4322 |
},
|
|
|
4323 |
"event-custom-base": {
|
|
|
4324 |
"requires": [
|
|
|
4325 |
"oop"
|
|
|
4326 |
]
|
|
|
4327 |
},
|
|
|
4328 |
"event-custom-complex": {
|
|
|
4329 |
"requires": [
|
|
|
4330 |
"event-custom-base"
|
|
|
4331 |
]
|
|
|
4332 |
},
|
|
|
4333 |
"event-delegate": {
|
|
|
4334 |
"requires": [
|
|
|
4335 |
"node-base"
|
|
|
4336 |
]
|
|
|
4337 |
},
|
|
|
4338 |
"event-flick": {
|
|
|
4339 |
"requires": [
|
|
|
4340 |
"node-base",
|
|
|
4341 |
"event-touch",
|
|
|
4342 |
"event-synthetic"
|
|
|
4343 |
]
|
|
|
4344 |
},
|
|
|
4345 |
"event-focus": {
|
|
|
4346 |
"requires": [
|
|
|
4347 |
"event-synthetic"
|
|
|
4348 |
]
|
|
|
4349 |
},
|
|
|
4350 |
"event-gestures": {
|
|
|
4351 |
"use": [
|
|
|
4352 |
"event-flick",
|
|
|
4353 |
"event-move"
|
|
|
4354 |
]
|
|
|
4355 |
},
|
|
|
4356 |
"event-hover": {
|
|
|
4357 |
"requires": [
|
|
|
4358 |
"event-mouseenter"
|
|
|
4359 |
]
|
|
|
4360 |
},
|
|
|
4361 |
"event-key": {
|
|
|
4362 |
"requires": [
|
|
|
4363 |
"event-synthetic"
|
|
|
4364 |
]
|
|
|
4365 |
},
|
|
|
4366 |
"event-mouseenter": {
|
|
|
4367 |
"requires": [
|
|
|
4368 |
"event-synthetic"
|
|
|
4369 |
]
|
|
|
4370 |
},
|
|
|
4371 |
"event-mousewheel": {
|
|
|
4372 |
"requires": [
|
|
|
4373 |
"node-base"
|
|
|
4374 |
]
|
|
|
4375 |
},
|
|
|
4376 |
"event-move": {
|
|
|
4377 |
"requires": [
|
|
|
4378 |
"node-base",
|
|
|
4379 |
"event-touch",
|
|
|
4380 |
"event-synthetic"
|
|
|
4381 |
]
|
|
|
4382 |
},
|
|
|
4383 |
"event-outside": {
|
|
|
4384 |
"requires": [
|
|
|
4385 |
"event-synthetic"
|
|
|
4386 |
]
|
|
|
4387 |
},
|
|
|
4388 |
"event-resize": {
|
|
|
4389 |
"requires": [
|
|
|
4390 |
"node-base",
|
|
|
4391 |
"event-synthetic"
|
|
|
4392 |
]
|
|
|
4393 |
},
|
|
|
4394 |
"event-simulate": {
|
|
|
4395 |
"requires": [
|
|
|
4396 |
"event-base"
|
|
|
4397 |
]
|
|
|
4398 |
},
|
|
|
4399 |
"event-synthetic": {
|
|
|
4400 |
"requires": [
|
|
|
4401 |
"node-base",
|
|
|
4402 |
"event-custom-complex"
|
|
|
4403 |
]
|
|
|
4404 |
},
|
|
|
4405 |
"event-tap": {
|
|
|
4406 |
"requires": [
|
|
|
4407 |
"node-base",
|
|
|
4408 |
"event-base",
|
|
|
4409 |
"event-touch",
|
|
|
4410 |
"event-synthetic"
|
|
|
4411 |
]
|
|
|
4412 |
},
|
|
|
4413 |
"event-touch": {
|
|
|
4414 |
"requires": [
|
|
|
4415 |
"node-base"
|
|
|
4416 |
]
|
|
|
4417 |
},
|
|
|
4418 |
"event-valuechange": {
|
|
|
4419 |
"requires": [
|
|
|
4420 |
"event-focus",
|
|
|
4421 |
"event-synthetic"
|
|
|
4422 |
]
|
|
|
4423 |
},
|
|
|
4424 |
"exec-command": {
|
|
|
4425 |
"requires": [
|
|
|
4426 |
"frame"
|
|
|
4427 |
]
|
|
|
4428 |
},
|
|
|
4429 |
"features": {
|
|
|
4430 |
"requires": [
|
|
|
4431 |
"yui-base"
|
|
|
4432 |
]
|
|
|
4433 |
},
|
|
|
4434 |
"file": {
|
|
|
4435 |
"requires": [
|
|
|
4436 |
"file-flash",
|
|
|
4437 |
"file-html5"
|
|
|
4438 |
]
|
|
|
4439 |
},
|
|
|
4440 |
"file-flash": {
|
|
|
4441 |
"requires": [
|
|
|
4442 |
"base"
|
|
|
4443 |
]
|
|
|
4444 |
},
|
|
|
4445 |
"file-html5": {
|
|
|
4446 |
"requires": [
|
|
|
4447 |
"base"
|
|
|
4448 |
]
|
|
|
4449 |
},
|
|
|
4450 |
"frame": {
|
|
|
4451 |
"requires": [
|
|
|
4452 |
"base",
|
|
|
4453 |
"node",
|
|
|
4454 |
"selector-css3",
|
|
|
4455 |
"yui-throttle"
|
|
|
4456 |
]
|
|
|
4457 |
},
|
|
|
4458 |
"gesture-simulate": {
|
|
|
4459 |
"requires": [
|
|
|
4460 |
"async-queue",
|
|
|
4461 |
"event-simulate",
|
|
|
4462 |
"node-screen"
|
|
|
4463 |
]
|
|
|
4464 |
},
|
|
|
4465 |
"get": {
|
|
|
4466 |
"requires": [
|
|
|
4467 |
"yui-base"
|
|
|
4468 |
]
|
|
|
4469 |
},
|
|
|
4470 |
"graphics": {
|
|
|
4471 |
"requires": [
|
|
|
4472 |
"node",
|
|
|
4473 |
"event-custom",
|
|
|
4474 |
"pluginhost",
|
|
|
4475 |
"matrix",
|
|
|
4476 |
"classnamemanager"
|
|
|
4477 |
]
|
|
|
4478 |
},
|
|
|
4479 |
"graphics-canvas": {
|
|
|
4480 |
"condition": {
|
|
|
4481 |
"name": "graphics-canvas",
|
|
|
4482 |
"test": function(Y) {
|
|
|
4483 |
var DOCUMENT = Y.config.doc,
|
|
|
4484 |
useCanvas = Y.config.defaultGraphicEngine && Y.config.defaultGraphicEngine == "canvas",
|
|
|
4485 |
canvas = DOCUMENT && DOCUMENT.createElement("canvas"),
|
|
|
4486 |
svg = (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
|
|
|
4487 |
return (!svg || useCanvas) && (canvas && canvas.getContext && canvas.getContext("2d"));
|
|
|
4488 |
},
|
|
|
4489 |
"trigger": "graphics"
|
|
|
4490 |
},
|
|
|
4491 |
"requires": [
|
|
|
4492 |
"graphics"
|
|
|
4493 |
]
|
|
|
4494 |
},
|
|
|
4495 |
"graphics-canvas-default": {
|
|
|
4496 |
"condition": {
|
|
|
4497 |
"name": "graphics-canvas-default",
|
|
|
4498 |
"test": function(Y) {
|
|
|
4499 |
var DOCUMENT = Y.config.doc,
|
|
|
4500 |
useCanvas = Y.config.defaultGraphicEngine && Y.config.defaultGraphicEngine == "canvas",
|
|
|
4501 |
canvas = DOCUMENT && DOCUMENT.createElement("canvas"),
|
|
|
4502 |
svg = (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
|
|
|
4503 |
return (!svg || useCanvas) && (canvas && canvas.getContext && canvas.getContext("2d"));
|
|
|
4504 |
},
|
|
|
4505 |
"trigger": "graphics"
|
|
|
4506 |
}
|
|
|
4507 |
},
|
|
|
4508 |
"graphics-group": {
|
|
|
4509 |
"requires": [
|
|
|
4510 |
"graphics"
|
|
|
4511 |
]
|
|
|
4512 |
},
|
|
|
4513 |
"graphics-svg": {
|
|
|
4514 |
"condition": {
|
|
|
4515 |
"name": "graphics-svg",
|
|
|
4516 |
"test": function(Y) {
|
|
|
4517 |
var DOCUMENT = Y.config.doc,
|
|
|
4518 |
useSVG = !Y.config.defaultGraphicEngine || Y.config.defaultGraphicEngine != "canvas",
|
|
|
4519 |
canvas = DOCUMENT && DOCUMENT.createElement("canvas"),
|
|
|
4520 |
svg = (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
|
|
|
4521 |
|
|
|
4522 |
return svg && (useSVG || !canvas);
|
|
|
4523 |
},
|
|
|
4524 |
"trigger": "graphics"
|
|
|
4525 |
},
|
|
|
4526 |
"requires": [
|
|
|
4527 |
"graphics"
|
|
|
4528 |
]
|
|
|
4529 |
},
|
|
|
4530 |
"graphics-svg-default": {
|
|
|
4531 |
"condition": {
|
|
|
4532 |
"name": "graphics-svg-default",
|
|
|
4533 |
"test": function(Y) {
|
|
|
4534 |
var DOCUMENT = Y.config.doc,
|
|
|
4535 |
useSVG = !Y.config.defaultGraphicEngine || Y.config.defaultGraphicEngine != "canvas",
|
|
|
4536 |
canvas = DOCUMENT && DOCUMENT.createElement("canvas"),
|
|
|
4537 |
svg = (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
|
|
|
4538 |
|
|
|
4539 |
return svg && (useSVG || !canvas);
|
|
|
4540 |
},
|
|
|
4541 |
"trigger": "graphics"
|
|
|
4542 |
}
|
|
|
4543 |
},
|
|
|
4544 |
"graphics-vml": {
|
|
|
4545 |
"condition": {
|
|
|
4546 |
"name": "graphics-vml",
|
|
|
4547 |
"test": function(Y) {
|
|
|
4548 |
var DOCUMENT = Y.config.doc,
|
|
|
4549 |
canvas = DOCUMENT && DOCUMENT.createElement("canvas");
|
|
|
4550 |
return (DOCUMENT && !DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") && (!canvas || !canvas.getContext || !canvas.getContext("2d")));
|
|
|
4551 |
},
|
|
|
4552 |
"trigger": "graphics"
|
|
|
4553 |
},
|
|
|
4554 |
"requires": [
|
|
|
4555 |
"graphics"
|
|
|
4556 |
]
|
|
|
4557 |
},
|
|
|
4558 |
"graphics-vml-default": {
|
|
|
4559 |
"condition": {
|
|
|
4560 |
"name": "graphics-vml-default",
|
|
|
4561 |
"test": function(Y) {
|
|
|
4562 |
var DOCUMENT = Y.config.doc,
|
|
|
4563 |
canvas = DOCUMENT && DOCUMENT.createElement("canvas");
|
|
|
4564 |
return (DOCUMENT && !DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") && (!canvas || !canvas.getContext || !canvas.getContext("2d")));
|
|
|
4565 |
},
|
|
|
4566 |
"trigger": "graphics"
|
|
|
4567 |
}
|
|
|
4568 |
},
|
|
|
4569 |
"handlebars": {
|
|
|
4570 |
"use": [
|
|
|
4571 |
"handlebars-compiler"
|
|
|
4572 |
]
|
|
|
4573 |
},
|
|
|
4574 |
"handlebars-base": {
|
|
|
4575 |
"requires": []
|
|
|
4576 |
},
|
|
|
4577 |
"handlebars-compiler": {
|
|
|
4578 |
"requires": [
|
|
|
4579 |
"handlebars-base"
|
|
|
4580 |
]
|
|
|
4581 |
},
|
|
|
4582 |
"highlight": {
|
|
|
4583 |
"use": [
|
|
|
4584 |
"highlight-base",
|
|
|
4585 |
"highlight-accentfold"
|
|
|
4586 |
]
|
|
|
4587 |
},
|
|
|
4588 |
"highlight-accentfold": {
|
|
|
4589 |
"requires": [
|
|
|
4590 |
"highlight-base",
|
|
|
4591 |
"text-accentfold"
|
|
|
4592 |
]
|
|
|
4593 |
},
|
|
|
4594 |
"highlight-base": {
|
|
|
4595 |
"requires": [
|
|
|
4596 |
"array-extras",
|
|
|
4597 |
"classnamemanager",
|
|
|
4598 |
"escape",
|
|
|
4599 |
"text-wordbreak"
|
|
|
4600 |
]
|
|
|
4601 |
},
|
|
|
4602 |
"history": {
|
|
|
4603 |
"use": [
|
|
|
4604 |
"history-base",
|
|
|
4605 |
"history-hash",
|
|
|
4606 |
"history-hash-ie",
|
|
|
4607 |
"history-html5"
|
|
|
4608 |
]
|
|
|
4609 |
},
|
|
|
4610 |
"history-base": {
|
|
|
4611 |
"requires": [
|
|
|
4612 |
"event-custom-complex"
|
|
|
4613 |
]
|
|
|
4614 |
},
|
|
|
4615 |
"history-hash": {
|
|
|
4616 |
"after": [
|
|
|
4617 |
"history-html5"
|
|
|
4618 |
],
|
|
|
4619 |
"requires": [
|
|
|
4620 |
"event-synthetic",
|
|
|
4621 |
"history-base",
|
|
|
4622 |
"yui-later"
|
|
|
4623 |
]
|
|
|
4624 |
},
|
|
|
4625 |
"history-hash-ie": {
|
|
|
4626 |
"condition": {
|
|
|
4627 |
"name": "history-hash-ie",
|
|
|
4628 |
"test": function (Y) {
|
|
|
4629 |
var docMode = Y.config.doc && Y.config.doc.documentMode;
|
|
|
4630 |
|
|
|
4631 |
return Y.UA.ie && (!('onhashchange' in Y.config.win) ||
|
|
|
4632 |
!docMode || docMode < 8);
|
|
|
4633 |
},
|
|
|
4634 |
"trigger": "history-hash"
|
|
|
4635 |
},
|
|
|
4636 |
"requires": [
|
|
|
4637 |
"history-hash",
|
|
|
4638 |
"node-base"
|
|
|
4639 |
]
|
|
|
4640 |
},
|
|
|
4641 |
"history-html5": {
|
|
|
4642 |
"optional": [
|
|
|
4643 |
"json"
|
|
|
4644 |
],
|
|
|
4645 |
"requires": [
|
|
|
4646 |
"event-base",
|
|
|
4647 |
"history-base",
|
|
|
4648 |
"node-base"
|
|
|
4649 |
]
|
|
|
4650 |
},
|
|
|
4651 |
"imageloader": {
|
|
|
4652 |
"requires": [
|
|
|
4653 |
"base-base",
|
|
|
4654 |
"node-style",
|
|
|
4655 |
"node-screen"
|
|
|
4656 |
]
|
|
|
4657 |
},
|
|
|
4658 |
"intl": {
|
|
|
4659 |
"requires": [
|
|
|
4660 |
"intl-base",
|
|
|
4661 |
"event-custom"
|
|
|
4662 |
]
|
|
|
4663 |
},
|
|
|
4664 |
"intl-base": {
|
|
|
4665 |
"requires": [
|
|
|
4666 |
"yui-base"
|
|
|
4667 |
]
|
|
|
4668 |
},
|
|
|
4669 |
"io": {
|
|
|
4670 |
"use": [
|
|
|
4671 |
"io-base",
|
|
|
4672 |
"io-xdr",
|
|
|
4673 |
"io-form",
|
|
|
4674 |
"io-upload-iframe",
|
|
|
4675 |
"io-queue"
|
|
|
4676 |
]
|
|
|
4677 |
},
|
|
|
4678 |
"io-base": {
|
|
|
4679 |
"requires": [
|
|
|
4680 |
"event-custom-base",
|
|
|
4681 |
"querystring-stringify-simple"
|
|
|
4682 |
]
|
|
|
4683 |
},
|
|
|
4684 |
"io-form": {
|
|
|
4685 |
"requires": [
|
|
|
4686 |
"io-base",
|
|
|
4687 |
"node-base"
|
|
|
4688 |
]
|
|
|
4689 |
},
|
|
|
4690 |
"io-nodejs": {
|
|
|
4691 |
"condition": {
|
|
|
4692 |
"name": "io-nodejs",
|
|
|
4693 |
"trigger": "io-base",
|
|
|
4694 |
"ua": "nodejs"
|
|
|
4695 |
},
|
|
|
4696 |
"requires": [
|
|
|
4697 |
"io-base"
|
|
|
4698 |
]
|
|
|
4699 |
},
|
|
|
4700 |
"io-queue": {
|
|
|
4701 |
"requires": [
|
|
|
4702 |
"io-base",
|
|
|
4703 |
"queue-promote"
|
|
|
4704 |
]
|
|
|
4705 |
},
|
|
|
4706 |
"io-upload-iframe": {
|
|
|
4707 |
"requires": [
|
|
|
4708 |
"io-base",
|
|
|
4709 |
"node-base"
|
|
|
4710 |
]
|
|
|
4711 |
},
|
|
|
4712 |
"io-xdr": {
|
|
|
4713 |
"requires": [
|
|
|
4714 |
"io-base",
|
|
|
4715 |
"datatype-xml-parse"
|
|
|
4716 |
]
|
|
|
4717 |
},
|
|
|
4718 |
"json": {
|
|
|
4719 |
"use": [
|
|
|
4720 |
"json-parse",
|
|
|
4721 |
"json-stringify"
|
|
|
4722 |
]
|
|
|
4723 |
},
|
|
|
4724 |
"json-parse": {
|
|
|
4725 |
"requires": [
|
|
|
4726 |
"yui-base"
|
|
|
4727 |
]
|
|
|
4728 |
},
|
|
|
4729 |
"json-parse-shim": {
|
|
|
4730 |
"condition": {
|
|
|
4731 |
"name": "json-parse-shim",
|
|
|
4732 |
"test": function (Y) {
|
|
|
4733 |
var _JSON = Y.config.global.JSON,
|
|
|
4734 |
Native = Object.prototype.toString.call(_JSON) === '[object JSON]' && _JSON,
|
|
|
4735 |
nativeSupport = Y.config.useNativeJSONParse !== false && !!Native;
|
|
|
4736 |
|
|
|
4737 |
function workingNative( k, v ) {
|
|
|
4738 |
return k === "ok" ? true : v;
|
|
|
4739 |
}
|
|
|
4740 |
|
|
|
4741 |
// Double check basic functionality. This is mainly to catch early broken
|
|
|
4742 |
// implementations of the JSON API in Firefox 3.1 beta1 and beta2
|
|
|
4743 |
if ( nativeSupport ) {
|
|
|
4744 |
try {
|
|
|
4745 |
nativeSupport = ( Native.parse( '{"ok":false}', workingNative ) ).ok;
|
|
|
4746 |
}
|
|
|
4747 |
catch ( e ) {
|
|
|
4748 |
nativeSupport = false;
|
|
|
4749 |
}
|
|
|
4750 |
}
|
|
|
4751 |
|
|
|
4752 |
return !nativeSupport;
|
|
|
4753 |
},
|
|
|
4754 |
"trigger": "json-parse"
|
|
|
4755 |
},
|
|
|
4756 |
"requires": [
|
|
|
4757 |
"json-parse"
|
|
|
4758 |
]
|
|
|
4759 |
},
|
|
|
4760 |
"json-stringify": {
|
|
|
4761 |
"requires": [
|
|
|
4762 |
"yui-base"
|
|
|
4763 |
]
|
|
|
4764 |
},
|
|
|
4765 |
"json-stringify-shim": {
|
|
|
4766 |
"condition": {
|
|
|
4767 |
"name": "json-stringify-shim",
|
|
|
4768 |
"test": function (Y) {
|
|
|
4769 |
var _JSON = Y.config.global.JSON,
|
|
|
4770 |
Native = Object.prototype.toString.call(_JSON) === '[object JSON]' && _JSON,
|
|
|
4771 |
nativeSupport = Y.config.useNativeJSONStringify !== false && !!Native;
|
|
|
4772 |
|
|
|
4773 |
// Double check basic native functionality. This is primarily to catch broken
|
|
|
4774 |
// early JSON API implementations in Firefox 3.1 beta1 and beta2.
|
|
|
4775 |
if ( nativeSupport ) {
|
|
|
4776 |
try {
|
|
|
4777 |
nativeSupport = ( '0' === Native.stringify(0) );
|
|
|
4778 |
} catch ( e ) {
|
|
|
4779 |
nativeSupport = false;
|
|
|
4780 |
}
|
|
|
4781 |
}
|
|
|
4782 |
|
|
|
4783 |
|
|
|
4784 |
return !nativeSupport;
|
|
|
4785 |
},
|
|
|
4786 |
"trigger": "json-stringify"
|
|
|
4787 |
},
|
|
|
4788 |
"requires": [
|
|
|
4789 |
"json-stringify"
|
|
|
4790 |
]
|
|
|
4791 |
},
|
|
|
4792 |
"jsonp": {
|
|
|
4793 |
"requires": [
|
|
|
4794 |
"get",
|
|
|
4795 |
"oop"
|
|
|
4796 |
]
|
|
|
4797 |
},
|
|
|
4798 |
"jsonp-url": {
|
|
|
4799 |
"requires": [
|
|
|
4800 |
"jsonp"
|
|
|
4801 |
]
|
|
|
4802 |
},
|
|
|
4803 |
"lazy-model-list": {
|
|
|
4804 |
"requires": [
|
|
|
4805 |
"model-list"
|
|
|
4806 |
]
|
|
|
4807 |
},
|
|
|
4808 |
"loader": {
|
|
|
4809 |
"use": [
|
|
|
4810 |
"loader-base",
|
|
|
4811 |
"loader-rollup",
|
|
|
4812 |
"loader-yui3"
|
|
|
4813 |
]
|
|
|
4814 |
},
|
|
|
4815 |
"loader-base": {
|
|
|
4816 |
"requires": [
|
|
|
4817 |
"get",
|
|
|
4818 |
"features"
|
|
|
4819 |
]
|
|
|
4820 |
},
|
|
|
4821 |
"loader-rollup": {
|
|
|
4822 |
"requires": [
|
|
|
4823 |
"loader-base"
|
|
|
4824 |
]
|
|
|
4825 |
},
|
|
|
4826 |
"loader-yui3": {
|
|
|
4827 |
"requires": [
|
|
|
4828 |
"loader-base"
|
|
|
4829 |
]
|
|
|
4830 |
},
|
|
|
4831 |
"matrix": {
|
|
|
4832 |
"requires": [
|
|
|
4833 |
"yui-base"
|
|
|
4834 |
]
|
|
|
4835 |
},
|
|
|
4836 |
"model": {
|
|
|
4837 |
"requires": [
|
|
|
4838 |
"base-build",
|
|
|
4839 |
"escape",
|
|
|
4840 |
"json-parse"
|
|
|
4841 |
]
|
|
|
4842 |
},
|
|
|
4843 |
"model-list": {
|
|
|
4844 |
"requires": [
|
|
|
4845 |
"array-extras",
|
|
|
4846 |
"array-invoke",
|
|
|
4847 |
"arraylist",
|
|
|
4848 |
"base-build",
|
|
|
4849 |
"escape",
|
|
|
4850 |
"json-parse",
|
|
|
4851 |
"model"
|
|
|
4852 |
]
|
|
|
4853 |
},
|
|
|
4854 |
"model-sync-rest": {
|
|
|
4855 |
"requires": [
|
|
|
4856 |
"model",
|
|
|
4857 |
"io-base",
|
|
|
4858 |
"json-stringify"
|
|
|
4859 |
]
|
|
|
4860 |
},
|
|
|
4861 |
"node": {
|
|
|
4862 |
"use": [
|
|
|
4863 |
"node-base",
|
|
|
4864 |
"node-event-delegate",
|
|
|
4865 |
"node-pluginhost",
|
|
|
4866 |
"node-screen",
|
|
|
4867 |
"node-style"
|
|
|
4868 |
]
|
|
|
4869 |
},
|
|
|
4870 |
"node-base": {
|
|
|
4871 |
"requires": [
|
|
|
4872 |
"event-base",
|
|
|
4873 |
"node-core",
|
|
|
4874 |
"dom-base"
|
|
|
4875 |
]
|
|
|
4876 |
},
|
|
|
4877 |
"node-core": {
|
|
|
4878 |
"requires": [
|
|
|
4879 |
"dom-core",
|
|
|
4880 |
"selector"
|
|
|
4881 |
]
|
|
|
4882 |
},
|
|
|
4883 |
"node-deprecated": {
|
|
|
4884 |
"requires": [
|
|
|
4885 |
"node-base"
|
|
|
4886 |
]
|
|
|
4887 |
},
|
|
|
4888 |
"node-event-delegate": {
|
|
|
4889 |
"requires": [
|
|
|
4890 |
"node-base",
|
|
|
4891 |
"event-delegate"
|
|
|
4892 |
]
|
|
|
4893 |
},
|
|
|
4894 |
"node-event-html5": {
|
|
|
4895 |
"requires": [
|
|
|
4896 |
"node-base"
|
|
|
4897 |
]
|
|
|
4898 |
},
|
|
|
4899 |
"node-event-simulate": {
|
|
|
4900 |
"requires": [
|
|
|
4901 |
"node-base",
|
|
|
4902 |
"event-simulate",
|
|
|
4903 |
"gesture-simulate"
|
|
|
4904 |
]
|
|
|
4905 |
},
|
|
|
4906 |
"node-flick": {
|
|
|
4907 |
"requires": [
|
|
|
4908 |
"classnamemanager",
|
|
|
4909 |
"transition",
|
|
|
4910 |
"event-flick",
|
|
|
4911 |
"plugin"
|
|
|
4912 |
],
|
|
|
4913 |
"skinnable": true
|
|
|
4914 |
},
|
|
|
4915 |
"node-focusmanager": {
|
|
|
4916 |
"requires": [
|
|
|
4917 |
"attribute",
|
|
|
4918 |
"node",
|
|
|
4919 |
"plugin",
|
|
|
4920 |
"node-event-simulate",
|
|
|
4921 |
"event-key",
|
|
|
4922 |
"event-focus"
|
|
|
4923 |
]
|
|
|
4924 |
},
|
|
|
4925 |
"node-load": {
|
|
|
4926 |
"requires": [
|
|
|
4927 |
"node-base",
|
|
|
4928 |
"io-base"
|
|
|
4929 |
]
|
|
|
4930 |
},
|
|
|
4931 |
"node-menunav": {
|
|
|
4932 |
"requires": [
|
|
|
4933 |
"node",
|
|
|
4934 |
"classnamemanager",
|
|
|
4935 |
"plugin",
|
|
|
4936 |
"node-focusmanager"
|
|
|
4937 |
],
|
|
|
4938 |
"skinnable": true
|
|
|
4939 |
},
|
|
|
4940 |
"node-pluginhost": {
|
|
|
4941 |
"requires": [
|
|
|
4942 |
"node-base",
|
|
|
4943 |
"pluginhost"
|
|
|
4944 |
]
|
|
|
4945 |
},
|
|
|
4946 |
"node-screen": {
|
|
|
4947 |
"requires": [
|
|
|
4948 |
"dom-screen",
|
|
|
4949 |
"node-base"
|
|
|
4950 |
]
|
|
|
4951 |
},
|
|
|
4952 |
"node-scroll-info": {
|
|
|
4953 |
"requires": [
|
|
|
4954 |
"base-build",
|
|
|
4955 |
"dom-screen",
|
|
|
4956 |
"event-resize",
|
|
|
4957 |
"node-pluginhost",
|
|
|
4958 |
"plugin"
|
|
|
4959 |
]
|
|
|
4960 |
},
|
|
|
4961 |
"node-style": {
|
|
|
4962 |
"requires": [
|
|
|
4963 |
"dom-style",
|
|
|
4964 |
"node-base"
|
|
|
4965 |
]
|
|
|
4966 |
},
|
|
|
4967 |
"oop": {
|
|
|
4968 |
"requires": [
|
|
|
4969 |
"yui-base"
|
|
|
4970 |
]
|
|
|
4971 |
},
|
|
|
4972 |
"overlay": {
|
|
|
4973 |
"requires": [
|
|
|
4974 |
"widget",
|
|
|
4975 |
"widget-stdmod",
|
|
|
4976 |
"widget-position",
|
|
|
4977 |
"widget-position-align",
|
|
|
4978 |
"widget-stack",
|
|
|
4979 |
"widget-position-constrain"
|
|
|
4980 |
],
|
|
|
4981 |
"skinnable": true
|
|
|
4982 |
},
|
|
|
4983 |
"panel": {
|
|
|
4984 |
"requires": [
|
|
|
4985 |
"widget",
|
|
|
4986 |
"widget-autohide",
|
|
|
4987 |
"widget-buttons",
|
|
|
4988 |
"widget-modality",
|
|
|
4989 |
"widget-position",
|
|
|
4990 |
"widget-position-align",
|
|
|
4991 |
"widget-position-constrain",
|
|
|
4992 |
"widget-stack",
|
|
|
4993 |
"widget-stdmod"
|
|
|
4994 |
],
|
|
|
4995 |
"skinnable": true
|
|
|
4996 |
},
|
|
|
4997 |
"parallel": {
|
|
|
4998 |
"requires": [
|
|
|
4999 |
"yui-base"
|
|
|
5000 |
]
|
|
|
5001 |
},
|
|
|
5002 |
"pjax": {
|
|
|
5003 |
"requires": [
|
|
|
5004 |
"pjax-base",
|
|
|
5005 |
"pjax-content"
|
|
|
5006 |
]
|
|
|
5007 |
},
|
|
|
5008 |
"pjax-base": {
|
|
|
5009 |
"requires": [
|
|
|
5010 |
"classnamemanager",
|
|
|
5011 |
"node-event-delegate",
|
|
|
5012 |
"router"
|
|
|
5013 |
]
|
|
|
5014 |
},
|
|
|
5015 |
"pjax-content": {
|
|
|
5016 |
"requires": [
|
|
|
5017 |
"io-base",
|
|
|
5018 |
"node-base",
|
|
|
5019 |
"router"
|
|
|
5020 |
]
|
|
|
5021 |
},
|
|
|
5022 |
"pjax-plugin": {
|
|
|
5023 |
"requires": [
|
|
|
5024 |
"node-pluginhost",
|
|
|
5025 |
"pjax",
|
|
|
5026 |
"plugin"
|
|
|
5027 |
]
|
|
|
5028 |
},
|
|
|
5029 |
"plugin": {
|
|
|
5030 |
"requires": [
|
|
|
5031 |
"base-base"
|
|
|
5032 |
]
|
|
|
5033 |
},
|
|
|
5034 |
"pluginhost": {
|
|
|
5035 |
"use": [
|
|
|
5036 |
"pluginhost-base",
|
|
|
5037 |
"pluginhost-config"
|
|
|
5038 |
]
|
|
|
5039 |
},
|
|
|
5040 |
"pluginhost-base": {
|
|
|
5041 |
"requires": [
|
|
|
5042 |
"yui-base"
|
|
|
5043 |
]
|
|
|
5044 |
},
|
|
|
5045 |
"pluginhost-config": {
|
|
|
5046 |
"requires": [
|
|
|
5047 |
"pluginhost-base"
|
|
|
5048 |
]
|
|
|
5049 |
},
|
|
|
5050 |
"promise": {
|
|
|
5051 |
"requires": [
|
|
|
5052 |
"timers"
|
|
|
5053 |
]
|
|
|
5054 |
},
|
|
|
5055 |
"querystring": {
|
|
|
5056 |
"use": [
|
|
|
5057 |
"querystring-parse",
|
|
|
5058 |
"querystring-stringify"
|
|
|
5059 |
]
|
|
|
5060 |
},
|
|
|
5061 |
"querystring-parse": {
|
|
|
5062 |
"requires": [
|
|
|
5063 |
"yui-base",
|
|
|
5064 |
"array-extras"
|
|
|
5065 |
]
|
|
|
5066 |
},
|
|
|
5067 |
"querystring-parse-simple": {
|
|
|
5068 |
"requires": [
|
|
|
5069 |
"yui-base"
|
|
|
5070 |
]
|
|
|
5071 |
},
|
|
|
5072 |
"querystring-stringify": {
|
|
|
5073 |
"requires": [
|
|
|
5074 |
"yui-base"
|
|
|
5075 |
]
|
|
|
5076 |
},
|
|
|
5077 |
"querystring-stringify-simple": {
|
|
|
5078 |
"requires": [
|
|
|
5079 |
"yui-base"
|
|
|
5080 |
]
|
|
|
5081 |
},
|
|
|
5082 |
"queue-promote": {
|
|
|
5083 |
"requires": [
|
|
|
5084 |
"yui-base"
|
|
|
5085 |
]
|
|
|
5086 |
},
|
|
|
5087 |
"range-slider": {
|
|
|
5088 |
"requires": [
|
|
|
5089 |
"slider-base",
|
|
|
5090 |
"slider-value-range",
|
|
|
5091 |
"clickable-rail"
|
|
|
5092 |
]
|
|
|
5093 |
},
|
|
|
5094 |
"recordset": {
|
|
|
5095 |
"use": [
|
|
|
5096 |
"recordset-base",
|
|
|
5097 |
"recordset-sort",
|
|
|
5098 |
"recordset-filter",
|
|
|
5099 |
"recordset-indexer"
|
|
|
5100 |
]
|
|
|
5101 |
},
|
|
|
5102 |
"recordset-base": {
|
|
|
5103 |
"requires": [
|
|
|
5104 |
"base",
|
|
|
5105 |
"arraylist"
|
|
|
5106 |
]
|
|
|
5107 |
},
|
|
|
5108 |
"recordset-filter": {
|
|
|
5109 |
"requires": [
|
|
|
5110 |
"recordset-base",
|
|
|
5111 |
"array-extras",
|
|
|
5112 |
"plugin"
|
|
|
5113 |
]
|
|
|
5114 |
},
|
|
|
5115 |
"recordset-indexer": {
|
|
|
5116 |
"requires": [
|
|
|
5117 |
"recordset-base",
|
|
|
5118 |
"plugin"
|
|
|
5119 |
]
|
|
|
5120 |
},
|
|
|
5121 |
"recordset-sort": {
|
|
|
5122 |
"requires": [
|
|
|
5123 |
"arraysort",
|
|
|
5124 |
"recordset-base",
|
|
|
5125 |
"plugin"
|
|
|
5126 |
]
|
|
|
5127 |
},
|
|
|
5128 |
"resize": {
|
|
|
5129 |
"use": [
|
|
|
5130 |
"resize-base",
|
|
|
5131 |
"resize-proxy",
|
|
|
5132 |
"resize-constrain"
|
|
|
5133 |
]
|
|
|
5134 |
},
|
|
|
5135 |
"resize-base": {
|
|
|
5136 |
"requires": [
|
|
|
5137 |
"base",
|
|
|
5138 |
"widget",
|
|
|
5139 |
"event",
|
|
|
5140 |
"oop",
|
|
|
5141 |
"dd-drag",
|
|
|
5142 |
"dd-delegate",
|
|
|
5143 |
"dd-drop"
|
|
|
5144 |
],
|
|
|
5145 |
"skinnable": true
|
|
|
5146 |
},
|
|
|
5147 |
"resize-constrain": {
|
|
|
5148 |
"requires": [
|
|
|
5149 |
"plugin",
|
|
|
5150 |
"resize-base"
|
|
|
5151 |
]
|
|
|
5152 |
},
|
|
|
5153 |
"resize-plugin": {
|
|
|
5154 |
"optional": [
|
|
|
5155 |
"resize-constrain"
|
|
|
5156 |
],
|
|
|
5157 |
"requires": [
|
|
|
5158 |
"resize-base",
|
|
|
5159 |
"plugin"
|
|
|
5160 |
]
|
|
|
5161 |
},
|
|
|
5162 |
"resize-proxy": {
|
|
|
5163 |
"requires": [
|
|
|
5164 |
"plugin",
|
|
|
5165 |
"resize-base"
|
|
|
5166 |
]
|
|
|
5167 |
},
|
|
|
5168 |
"router": {
|
|
|
5169 |
"optional": [
|
|
|
5170 |
"querystring-parse"
|
|
|
5171 |
],
|
|
|
5172 |
"requires": [
|
|
|
5173 |
"array-extras",
|
|
|
5174 |
"base-build",
|
|
|
5175 |
"history"
|
|
|
5176 |
]
|
|
|
5177 |
},
|
|
|
5178 |
"scrollview": {
|
|
|
5179 |
"requires": [
|
|
|
5180 |
"scrollview-base",
|
|
|
5181 |
"scrollview-scrollbars"
|
|
|
5182 |
]
|
|
|
5183 |
},
|
|
|
5184 |
"scrollview-base": {
|
|
|
5185 |
"requires": [
|
|
|
5186 |
"widget",
|
|
|
5187 |
"event-gestures",
|
|
|
5188 |
"event-mousewheel",
|
|
|
5189 |
"transition"
|
|
|
5190 |
],
|
|
|
5191 |
"skinnable": true
|
|
|
5192 |
},
|
|
|
5193 |
"scrollview-base-ie": {
|
|
|
5194 |
"condition": {
|
|
|
5195 |
"name": "scrollview-base-ie",
|
|
|
5196 |
"trigger": "scrollview-base",
|
|
|
5197 |
"ua": "ie"
|
|
|
5198 |
},
|
|
|
5199 |
"requires": [
|
|
|
5200 |
"scrollview-base"
|
|
|
5201 |
]
|
|
|
5202 |
},
|
|
|
5203 |
"scrollview-list": {
|
|
|
5204 |
"requires": [
|
|
|
5205 |
"plugin",
|
|
|
5206 |
"classnamemanager"
|
|
|
5207 |
],
|
|
|
5208 |
"skinnable": true
|
|
|
5209 |
},
|
|
|
5210 |
"scrollview-paginator": {
|
|
|
5211 |
"requires": [
|
|
|
5212 |
"plugin",
|
|
|
5213 |
"classnamemanager"
|
|
|
5214 |
]
|
|
|
5215 |
},
|
|
|
5216 |
"scrollview-scrollbars": {
|
|
|
5217 |
"requires": [
|
|
|
5218 |
"classnamemanager",
|
|
|
5219 |
"transition",
|
|
|
5220 |
"plugin"
|
|
|
5221 |
],
|
|
|
5222 |
"skinnable": true
|
|
|
5223 |
},
|
|
|
5224 |
"selector": {
|
|
|
5225 |
"requires": [
|
|
|
5226 |
"selector-native"
|
|
|
5227 |
]
|
|
|
5228 |
},
|
|
|
5229 |
"selector-css2": {
|
|
|
5230 |
"condition": {
|
|
|
5231 |
"name": "selector-css2",
|
|
|
5232 |
"test": function (Y) {
|
|
|
5233 |
var DOCUMENT = Y.config.doc,
|
|
|
5234 |
ret = DOCUMENT && !('querySelectorAll' in DOCUMENT);
|
|
|
5235 |
|
|
|
5236 |
return ret;
|
|
|
5237 |
},
|
|
|
5238 |
"trigger": "selector"
|
|
|
5239 |
},
|
|
|
5240 |
"requires": [
|
|
|
5241 |
"selector-native"
|
|
|
5242 |
]
|
|
|
5243 |
},
|
|
|
5244 |
"selector-css3": {
|
|
|
5245 |
"requires": [
|
|
|
5246 |
"selector-native",
|
|
|
5247 |
"selector-css2"
|
|
|
5248 |
]
|
|
|
5249 |
},
|
|
|
5250 |
"selector-native": {
|
|
|
5251 |
"requires": [
|
|
|
5252 |
"dom-base"
|
|
|
5253 |
]
|
|
|
5254 |
},
|
|
|
5255 |
"series-area": {
|
|
|
5256 |
"requires": [
|
|
|
5257 |
"series-cartesian",
|
|
|
5258 |
"series-fill-util"
|
|
|
5259 |
]
|
|
|
5260 |
},
|
|
|
5261 |
"series-area-stacked": {
|
|
|
5262 |
"requires": [
|
|
|
5263 |
"series-stacked",
|
|
|
5264 |
"series-area"
|
|
|
5265 |
]
|
|
|
5266 |
},
|
|
|
5267 |
"series-areaspline": {
|
|
|
5268 |
"requires": [
|
|
|
5269 |
"series-area",
|
|
|
5270 |
"series-curve-util"
|
|
|
5271 |
]
|
|
|
5272 |
},
|
|
|
5273 |
"series-areaspline-stacked": {
|
|
|
5274 |
"requires": [
|
|
|
5275 |
"series-stacked",
|
|
|
5276 |
"series-areaspline"
|
|
|
5277 |
]
|
|
|
5278 |
},
|
|
|
5279 |
"series-bar": {
|
|
|
5280 |
"requires": [
|
|
|
5281 |
"series-marker",
|
|
|
5282 |
"series-histogram-base"
|
|
|
5283 |
]
|
|
|
5284 |
},
|
|
|
5285 |
"series-bar-stacked": {
|
|
|
5286 |
"requires": [
|
|
|
5287 |
"series-stacked",
|
|
|
5288 |
"series-bar"
|
|
|
5289 |
]
|
|
|
5290 |
},
|
|
|
5291 |
"series-base": {
|
|
|
5292 |
"requires": [
|
|
|
5293 |
"graphics",
|
|
|
5294 |
"axis-base"
|
|
|
5295 |
]
|
|
|
5296 |
},
|
|
|
5297 |
"series-candlestick": {
|
|
|
5298 |
"requires": [
|
|
|
5299 |
"series-range"
|
|
|
5300 |
]
|
|
|
5301 |
},
|
|
|
5302 |
"series-cartesian": {
|
|
|
5303 |
"requires": [
|
|
|
5304 |
"series-base"
|
|
|
5305 |
]
|
|
|
5306 |
},
|
|
|
5307 |
"series-column": {
|
|
|
5308 |
"requires": [
|
|
|
5309 |
"series-marker",
|
|
|
5310 |
"series-histogram-base"
|
|
|
5311 |
]
|
|
|
5312 |
},
|
|
|
5313 |
"series-column-stacked": {
|
|
|
5314 |
"requires": [
|
|
|
5315 |
"series-stacked",
|
|
|
5316 |
"series-column"
|
|
|
5317 |
]
|
|
|
5318 |
},
|
|
|
5319 |
"series-combo": {
|
|
|
5320 |
"requires": [
|
|
|
5321 |
"series-cartesian",
|
|
|
5322 |
"series-line-util",
|
|
|
5323 |
"series-plot-util",
|
|
|
5324 |
"series-fill-util"
|
|
|
5325 |
]
|
|
|
5326 |
},
|
|
|
5327 |
"series-combo-stacked": {
|
|
|
5328 |
"requires": [
|
|
|
5329 |
"series-stacked",
|
|
|
5330 |
"series-combo"
|
|
|
5331 |
]
|
|
|
5332 |
},
|
|
|
5333 |
"series-combospline": {
|
|
|
5334 |
"requires": [
|
|
|
5335 |
"series-combo",
|
|
|
5336 |
"series-curve-util"
|
|
|
5337 |
]
|
|
|
5338 |
},
|
|
|
5339 |
"series-combospline-stacked": {
|
|
|
5340 |
"requires": [
|
|
|
5341 |
"series-combo-stacked",
|
|
|
5342 |
"series-curve-util"
|
|
|
5343 |
]
|
|
|
5344 |
},
|
|
|
5345 |
"series-curve-util": {},
|
|
|
5346 |
"series-fill-util": {},
|
|
|
5347 |
"series-histogram-base": {
|
|
|
5348 |
"requires": [
|
|
|
5349 |
"series-cartesian",
|
|
|
5350 |
"series-plot-util"
|
|
|
5351 |
]
|
|
|
5352 |
},
|
|
|
5353 |
"series-line": {
|
|
|
5354 |
"requires": [
|
|
|
5355 |
"series-cartesian",
|
|
|
5356 |
"series-line-util"
|
|
|
5357 |
]
|
|
|
5358 |
},
|
|
|
5359 |
"series-line-stacked": {
|
|
|
5360 |
"requires": [
|
|
|
5361 |
"series-stacked",
|
|
|
5362 |
"series-line"
|
|
|
5363 |
]
|
|
|
5364 |
},
|
|
|
5365 |
"series-line-util": {},
|
|
|
5366 |
"series-marker": {
|
|
|
5367 |
"requires": [
|
|
|
5368 |
"series-cartesian",
|
|
|
5369 |
"series-plot-util"
|
|
|
5370 |
]
|
|
|
5371 |
},
|
|
|
5372 |
"series-marker-stacked": {
|
|
|
5373 |
"requires": [
|
|
|
5374 |
"series-stacked",
|
|
|
5375 |
"series-marker"
|
|
|
5376 |
]
|
|
|
5377 |
},
|
|
|
5378 |
"series-ohlc": {
|
|
|
5379 |
"requires": [
|
|
|
5380 |
"series-range"
|
|
|
5381 |
]
|
|
|
5382 |
},
|
|
|
5383 |
"series-pie": {
|
|
|
5384 |
"requires": [
|
|
|
5385 |
"series-base",
|
|
|
5386 |
"series-plot-util"
|
|
|
5387 |
]
|
|
|
5388 |
},
|
|
|
5389 |
"series-plot-util": {},
|
|
|
5390 |
"series-range": {
|
|
|
5391 |
"requires": [
|
|
|
5392 |
"series-cartesian"
|
|
|
5393 |
]
|
|
|
5394 |
},
|
|
|
5395 |
"series-spline": {
|
|
|
5396 |
"requires": [
|
|
|
5397 |
"series-line",
|
|
|
5398 |
"series-curve-util"
|
|
|
5399 |
]
|
|
|
5400 |
},
|
|
|
5401 |
"series-spline-stacked": {
|
|
|
5402 |
"requires": [
|
|
|
5403 |
"series-stacked",
|
|
|
5404 |
"series-spline"
|
|
|
5405 |
]
|
|
|
5406 |
},
|
|
|
5407 |
"series-stacked": {
|
|
|
5408 |
"requires": [
|
|
|
5409 |
"axis-stacked"
|
|
|
5410 |
]
|
|
|
5411 |
},
|
|
|
5412 |
"shim-plugin": {
|
|
|
5413 |
"requires": [
|
|
|
5414 |
"node-style",
|
|
|
5415 |
"node-pluginhost"
|
|
|
5416 |
]
|
|
|
5417 |
},
|
|
|
5418 |
"slider": {
|
|
|
5419 |
"use": [
|
|
|
5420 |
"slider-base",
|
|
|
5421 |
"slider-value-range",
|
|
|
5422 |
"clickable-rail",
|
|
|
5423 |
"range-slider"
|
|
|
5424 |
]
|
|
|
5425 |
},
|
|
|
5426 |
"slider-base": {
|
|
|
5427 |
"requires": [
|
|
|
5428 |
"widget",
|
|
|
5429 |
"dd-constrain",
|
|
|
5430 |
"event-key"
|
|
|
5431 |
],
|
|
|
5432 |
"skinnable": true
|
|
|
5433 |
},
|
|
|
5434 |
"slider-value-range": {
|
|
|
5435 |
"requires": [
|
|
|
5436 |
"slider-base"
|
|
|
5437 |
]
|
|
|
5438 |
},
|
|
|
5439 |
"sortable": {
|
|
|
5440 |
"requires": [
|
|
|
5441 |
"dd-delegate",
|
|
|
5442 |
"dd-drop-plugin",
|
|
|
5443 |
"dd-proxy"
|
|
|
5444 |
]
|
|
|
5445 |
},
|
|
|
5446 |
"sortable-scroll": {
|
|
|
5447 |
"requires": [
|
|
|
5448 |
"dd-scroll",
|
|
|
5449 |
"sortable"
|
|
|
5450 |
]
|
|
|
5451 |
},
|
|
|
5452 |
"stylesheet": {
|
|
|
5453 |
"requires": [
|
|
|
5454 |
"yui-base"
|
|
|
5455 |
]
|
|
|
5456 |
},
|
|
|
5457 |
"substitute": {
|
|
|
5458 |
"optional": [
|
|
|
5459 |
"dump"
|
|
|
5460 |
],
|
|
|
5461 |
"requires": [
|
|
|
5462 |
"yui-base"
|
|
|
5463 |
]
|
|
|
5464 |
},
|
|
|
5465 |
"swf": {
|
|
|
5466 |
"requires": [
|
|
|
5467 |
"event-custom",
|
|
|
5468 |
"node",
|
|
|
5469 |
"swfdetect",
|
|
|
5470 |
"escape"
|
|
|
5471 |
]
|
|
|
5472 |
},
|
|
|
5473 |
"swfdetect": {
|
|
|
5474 |
"requires": [
|
|
|
5475 |
"yui-base"
|
|
|
5476 |
]
|
|
|
5477 |
},
|
|
|
5478 |
"tabview": {
|
|
|
5479 |
"requires": [
|
|
|
5480 |
"widget",
|
|
|
5481 |
"widget-parent",
|
|
|
5482 |
"widget-child",
|
|
|
5483 |
"tabview-base",
|
|
|
5484 |
"node-pluginhost",
|
|
|
5485 |
"node-focusmanager"
|
|
|
5486 |
],
|
|
|
5487 |
"skinnable": true
|
|
|
5488 |
},
|
|
|
5489 |
"tabview-base": {
|
|
|
5490 |
"requires": [
|
|
|
5491 |
"node-event-delegate",
|
|
|
5492 |
"classnamemanager"
|
|
|
5493 |
]
|
|
|
5494 |
},
|
|
|
5495 |
"tabview-plugin": {
|
|
|
5496 |
"requires": [
|
|
|
5497 |
"tabview-base"
|
|
|
5498 |
]
|
|
|
5499 |
},
|
|
|
5500 |
"template": {
|
|
|
5501 |
"use": [
|
|
|
5502 |
"template-base",
|
|
|
5503 |
"template-micro"
|
|
|
5504 |
]
|
|
|
5505 |
},
|
|
|
5506 |
"template-base": {
|
|
|
5507 |
"requires": [
|
|
|
5508 |
"yui-base"
|
|
|
5509 |
]
|
|
|
5510 |
},
|
|
|
5511 |
"template-micro": {
|
|
|
5512 |
"requires": [
|
|
|
5513 |
"escape"
|
|
|
5514 |
]
|
|
|
5515 |
},
|
|
|
5516 |
"test": {
|
|
|
5517 |
"requires": [
|
|
|
5518 |
"event-simulate",
|
|
|
5519 |
"event-custom",
|
|
|
5520 |
"json-stringify"
|
|
|
5521 |
]
|
|
|
5522 |
},
|
|
|
5523 |
"test-console": {
|
|
|
5524 |
"requires": [
|
|
|
5525 |
"console-filters",
|
|
|
5526 |
"test",
|
|
|
5527 |
"array-extras"
|
|
|
5528 |
],
|
|
|
5529 |
"skinnable": true
|
|
|
5530 |
},
|
|
|
5531 |
"text": {
|
|
|
5532 |
"use": [
|
|
|
5533 |
"text-accentfold",
|
|
|
5534 |
"text-wordbreak"
|
|
|
5535 |
]
|
|
|
5536 |
},
|
|
|
5537 |
"text-accentfold": {
|
|
|
5538 |
"requires": [
|
|
|
5539 |
"array-extras",
|
|
|
5540 |
"text-data-accentfold"
|
|
|
5541 |
]
|
|
|
5542 |
},
|
|
|
5543 |
"text-data-accentfold": {
|
|
|
5544 |
"requires": [
|
|
|
5545 |
"yui-base"
|
|
|
5546 |
]
|
|
|
5547 |
},
|
|
|
5548 |
"text-data-wordbreak": {
|
|
|
5549 |
"requires": [
|
|
|
5550 |
"yui-base"
|
|
|
5551 |
]
|
|
|
5552 |
},
|
|
|
5553 |
"text-wordbreak": {
|
|
|
5554 |
"requires": [
|
|
|
5555 |
"array-extras",
|
|
|
5556 |
"text-data-wordbreak"
|
|
|
5557 |
]
|
|
|
5558 |
},
|
|
|
5559 |
"timers": {
|
|
|
5560 |
"requires": [
|
|
|
5561 |
"yui-base"
|
|
|
5562 |
]
|
|
|
5563 |
},
|
|
|
5564 |
"transition": {
|
|
|
5565 |
"requires": [
|
|
|
5566 |
"node-style"
|
|
|
5567 |
]
|
|
|
5568 |
},
|
|
|
5569 |
"transition-timer": {
|
|
|
5570 |
"condition": {
|
|
|
5571 |
"name": "transition-timer",
|
|
|
5572 |
"test": function (Y) {
|
|
|
5573 |
var DOCUMENT = Y.config.doc,
|
|
|
5574 |
node = (DOCUMENT) ? DOCUMENT.documentElement: null,
|
|
|
5575 |
ret = true;
|
|
|
5576 |
|
|
|
5577 |
if (node && node.style) {
|
|
|
5578 |
ret = !('MozTransition' in node.style || 'WebkitTransition' in node.style || 'transition' in node.style);
|
|
|
5579 |
}
|
|
|
5580 |
|
|
|
5581 |
return ret;
|
|
|
5582 |
},
|
|
|
5583 |
"trigger": "transition"
|
|
|
5584 |
},
|
|
|
5585 |
"requires": [
|
|
|
5586 |
"transition"
|
|
|
5587 |
]
|
|
|
5588 |
},
|
|
|
5589 |
"tree": {
|
|
|
5590 |
"requires": [
|
|
|
5591 |
"base-build",
|
|
|
5592 |
"tree-node"
|
|
|
5593 |
]
|
|
|
5594 |
},
|
|
|
5595 |
"tree-labelable": {
|
|
|
5596 |
"requires": [
|
|
|
5597 |
"tree"
|
|
|
5598 |
]
|
|
|
5599 |
},
|
|
|
5600 |
"tree-lazy": {
|
|
|
5601 |
"requires": [
|
|
|
5602 |
"base-pluginhost",
|
|
|
5603 |
"plugin",
|
|
|
5604 |
"tree"
|
|
|
5605 |
]
|
|
|
5606 |
},
|
|
|
5607 |
"tree-node": {},
|
|
|
5608 |
"tree-openable": {
|
|
|
5609 |
"requires": [
|
|
|
5610 |
"tree"
|
|
|
5611 |
]
|
|
|
5612 |
},
|
|
|
5613 |
"tree-selectable": {
|
|
|
5614 |
"requires": [
|
|
|
5615 |
"tree"
|
|
|
5616 |
]
|
|
|
5617 |
},
|
|
|
5618 |
"tree-sortable": {
|
|
|
5619 |
"requires": [
|
|
|
5620 |
"tree"
|
|
|
5621 |
]
|
|
|
5622 |
},
|
|
|
5623 |
"uploader": {
|
|
|
5624 |
"requires": [
|
|
|
5625 |
"uploader-html5",
|
|
|
5626 |
"uploader-flash"
|
|
|
5627 |
]
|
|
|
5628 |
},
|
|
|
5629 |
"uploader-flash": {
|
|
|
5630 |
"requires": [
|
|
|
5631 |
"swf",
|
|
|
5632 |
"widget",
|
|
|
5633 |
"base",
|
|
|
5634 |
"cssbutton",
|
|
|
5635 |
"node",
|
|
|
5636 |
"event-custom",
|
|
|
5637 |
"file-flash",
|
|
|
5638 |
"uploader-queue"
|
|
|
5639 |
]
|
|
|
5640 |
},
|
|
|
5641 |
"uploader-html5": {
|
|
|
5642 |
"requires": [
|
|
|
5643 |
"widget",
|
|
|
5644 |
"node-event-simulate",
|
|
|
5645 |
"file-html5",
|
|
|
5646 |
"uploader-queue"
|
|
|
5647 |
]
|
|
|
5648 |
},
|
|
|
5649 |
"uploader-queue": {
|
|
|
5650 |
"requires": [
|
|
|
5651 |
"base"
|
|
|
5652 |
]
|
|
|
5653 |
},
|
|
|
5654 |
"view": {
|
|
|
5655 |
"requires": [
|
|
|
5656 |
"base-build",
|
|
|
5657 |
"node-event-delegate"
|
|
|
5658 |
]
|
|
|
5659 |
},
|
|
|
5660 |
"view-node-map": {
|
|
|
5661 |
"requires": [
|
|
|
5662 |
"view"
|
|
|
5663 |
]
|
|
|
5664 |
},
|
|
|
5665 |
"widget": {
|
|
|
5666 |
"use": [
|
|
|
5667 |
"widget-base",
|
|
|
5668 |
"widget-htmlparser",
|
|
|
5669 |
"widget-skin",
|
|
|
5670 |
"widget-uievents"
|
|
|
5671 |
]
|
|
|
5672 |
},
|
|
|
5673 |
"widget-anim": {
|
|
|
5674 |
"requires": [
|
|
|
5675 |
"anim-base",
|
|
|
5676 |
"plugin",
|
|
|
5677 |
"widget"
|
|
|
5678 |
]
|
|
|
5679 |
},
|
|
|
5680 |
"widget-autohide": {
|
|
|
5681 |
"requires": [
|
|
|
5682 |
"base-build",
|
|
|
5683 |
"event-key",
|
|
|
5684 |
"event-outside",
|
|
|
5685 |
"widget"
|
|
|
5686 |
]
|
|
|
5687 |
},
|
|
|
5688 |
"widget-base": {
|
|
|
5689 |
"requires": [
|
|
|
5690 |
"attribute",
|
|
|
5691 |
"base-base",
|
|
|
5692 |
"base-pluginhost",
|
|
|
5693 |
"classnamemanager",
|
|
|
5694 |
"event-focus",
|
|
|
5695 |
"node-base",
|
|
|
5696 |
"node-style"
|
|
|
5697 |
],
|
|
|
5698 |
"skinnable": true
|
|
|
5699 |
},
|
|
|
5700 |
"widget-base-ie": {
|
|
|
5701 |
"condition": {
|
|
|
5702 |
"name": "widget-base-ie",
|
|
|
5703 |
"trigger": "widget-base",
|
|
|
5704 |
"ua": "ie"
|
|
|
5705 |
},
|
|
|
5706 |
"requires": [
|
|
|
5707 |
"widget-base"
|
|
|
5708 |
]
|
|
|
5709 |
},
|
|
|
5710 |
"widget-buttons": {
|
|
|
5711 |
"requires": [
|
|
|
5712 |
"button-plugin",
|
|
|
5713 |
"cssbutton",
|
|
|
5714 |
"widget-stdmod"
|
|
|
5715 |
]
|
|
|
5716 |
},
|
|
|
5717 |
"widget-child": {
|
|
|
5718 |
"requires": [
|
|
|
5719 |
"base-build",
|
|
|
5720 |
"widget"
|
|
|
5721 |
]
|
|
|
5722 |
},
|
|
|
5723 |
"widget-htmlparser": {
|
|
|
5724 |
"requires": [
|
|
|
5725 |
"widget-base"
|
|
|
5726 |
]
|
|
|
5727 |
},
|
|
|
5728 |
"widget-locale": {
|
|
|
5729 |
"requires": [
|
|
|
5730 |
"widget-base"
|
|
|
5731 |
]
|
|
|
5732 |
},
|
|
|
5733 |
"widget-modality": {
|
|
|
5734 |
"requires": [
|
|
|
5735 |
"base-build",
|
|
|
5736 |
"event-outside",
|
|
|
5737 |
"widget"
|
|
|
5738 |
],
|
|
|
5739 |
"skinnable": true
|
|
|
5740 |
},
|
|
|
5741 |
"widget-parent": {
|
|
|
5742 |
"requires": [
|
|
|
5743 |
"arraylist",
|
|
|
5744 |
"base-build",
|
|
|
5745 |
"widget"
|
|
|
5746 |
]
|
|
|
5747 |
},
|
|
|
5748 |
"widget-position": {
|
|
|
5749 |
"requires": [
|
|
|
5750 |
"base-build",
|
|
|
5751 |
"node-screen",
|
|
|
5752 |
"widget"
|
|
|
5753 |
]
|
|
|
5754 |
},
|
|
|
5755 |
"widget-position-align": {
|
|
|
5756 |
"requires": [
|
|
|
5757 |
"widget-position"
|
|
|
5758 |
]
|
|
|
5759 |
},
|
|
|
5760 |
"widget-position-constrain": {
|
|
|
5761 |
"requires": [
|
|
|
5762 |
"widget-position"
|
|
|
5763 |
]
|
|
|
5764 |
},
|
|
|
5765 |
"widget-skin": {
|
|
|
5766 |
"requires": [
|
|
|
5767 |
"widget-base"
|
|
|
5768 |
]
|
|
|
5769 |
},
|
|
|
5770 |
"widget-stack": {
|
|
|
5771 |
"requires": [
|
|
|
5772 |
"base-build",
|
|
|
5773 |
"widget"
|
|
|
5774 |
],
|
|
|
5775 |
"skinnable": true
|
|
|
5776 |
},
|
|
|
5777 |
"widget-stdmod": {
|
|
|
5778 |
"requires": [
|
|
|
5779 |
"base-build",
|
|
|
5780 |
"widget"
|
|
|
5781 |
]
|
|
|
5782 |
},
|
|
|
5783 |
"widget-uievents": {
|
|
|
5784 |
"requires": [
|
|
|
5785 |
"node-event-delegate",
|
|
|
5786 |
"widget-base"
|
|
|
5787 |
]
|
|
|
5788 |
},
|
|
|
5789 |
"yql": {
|
|
|
5790 |
"requires": [
|
|
|
5791 |
"oop"
|
|
|
5792 |
]
|
|
|
5793 |
},
|
|
|
5794 |
"yql-jsonp": {
|
|
|
5795 |
"condition": {
|
|
|
5796 |
"name": "yql-jsonp",
|
|
|
5797 |
"test": function (Y) {
|
|
|
5798 |
/* Only load the JSONP module when not in nodejs or winjs
|
|
|
5799 |
TODO Make the winjs module a CORS module
|
|
|
5800 |
*/
|
|
|
5801 |
return (!Y.UA.nodejs && !Y.UA.winjs);
|
|
|
5802 |
},
|
|
|
5803 |
"trigger": "yql",
|
|
|
5804 |
"when": "after"
|
|
|
5805 |
},
|
|
|
5806 |
"requires": [
|
|
|
5807 |
"jsonp",
|
|
|
5808 |
"jsonp-url"
|
|
|
5809 |
]
|
|
|
5810 |
},
|
|
|
5811 |
"yql-nodejs": {
|
|
|
5812 |
"condition": {
|
|
|
5813 |
"name": "yql-nodejs",
|
|
|
5814 |
"trigger": "yql",
|
|
|
5815 |
"ua": "nodejs",
|
|
|
5816 |
"when": "after"
|
|
|
5817 |
}
|
|
|
5818 |
},
|
|
|
5819 |
"yql-winjs": {
|
|
|
5820 |
"condition": {
|
|
|
5821 |
"name": "yql-winjs",
|
|
|
5822 |
"trigger": "yql",
|
|
|
5823 |
"ua": "winjs",
|
|
|
5824 |
"when": "after"
|
|
|
5825 |
}
|
|
|
5826 |
},
|
|
|
5827 |
"yui": {},
|
|
|
5828 |
"yui-base": {},
|
|
|
5829 |
"yui-later": {
|
|
|
5830 |
"requires": [
|
|
|
5831 |
"yui-base"
|
|
|
5832 |
]
|
|
|
5833 |
},
|
|
|
5834 |
"yui-log": {
|
|
|
5835 |
"requires": [
|
|
|
5836 |
"yui-base"
|
|
|
5837 |
]
|
|
|
5838 |
},
|
|
|
5839 |
"yui-throttle": {
|
|
|
5840 |
"requires": [
|
|
|
5841 |
"yui-base"
|
|
|
5842 |
]
|
|
|
5843 |
}
|
|
|
5844 |
});
|
|
|
5845 |
YUI.Env[Y.version].md5 = 'd7ced98e3907d3c3c0655a93c6ac6867';
|
|
|
5846 |
|
|
|
5847 |
|
|
|
5848 |
}, '@VERSION@', {"requires": ["loader-base"]});
|
|
|
5849 |
YUI.add('loader', function (Y, NAME) {}, '@VERSION@', {"use": ["loader-base", "loader-rollup", "loader-yui3"]});
|