@canonical/yui 3.18.2-pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1485) hide show
  1. package/AGENTS.md +50 -0
  2. package/BUILD.md +54 -0
  3. package/CONTRIBUTING.md +85 -0
  4. package/CONTRIBUTORS.md +30 -0
  5. package/Gruntfile.js +122 -0
  6. package/HISTORY.md +12 -0
  7. package/LICENSE.md +145 -0
  8. package/README.md +133 -0
  9. package/build/align-plugin/align-plugin-debug.js +193 -0
  10. package/build/align-plugin/align-plugin-min.js +1 -0
  11. package/build/align-plugin/align-plugin.js +193 -0
  12. package/build/anim-base/anim-base-debug.js +686 -0
  13. package/build/anim-base/anim-base-min.js +1 -0
  14. package/build/anim-base/anim-base.js +685 -0
  15. package/build/anim-color/anim-color-debug.js +53 -0
  16. package/build/anim-color/anim-color-min.js +1 -0
  17. package/build/anim-color/anim-color.js +53 -0
  18. package/build/anim-curve/anim-curve-debug.js +59 -0
  19. package/build/anim-curve/anim-curve-min.js +1 -0
  20. package/build/anim-curve/anim-curve.js +59 -0
  21. package/build/anim-easing/anim-easing-debug.js +365 -0
  22. package/build/anim-easing/anim-easing-min.js +1 -0
  23. package/build/anim-easing/anim-easing.js +365 -0
  24. package/build/anim-node-plugin/anim-node-plugin-debug.js +26 -0
  25. package/build/anim-node-plugin/anim-node-plugin-min.js +1 -0
  26. package/build/anim-node-plugin/anim-node-plugin.js +26 -0
  27. package/build/anim-scroll/anim-scroll-debug.js +38 -0
  28. package/build/anim-scroll/anim-scroll-min.js +1 -0
  29. package/build/anim-scroll/anim-scroll.js +38 -0
  30. package/build/anim-shape/anim-shape-debug.js +185 -0
  31. package/build/anim-shape/anim-shape-min.js +1 -0
  32. package/build/anim-shape/anim-shape.js +185 -0
  33. package/build/anim-xy/anim-xy-debug.js +26 -0
  34. package/build/anim-xy/anim-xy-min.js +1 -0
  35. package/build/anim-xy/anim-xy.js +26 -0
  36. package/build/app-base/app-base-debug.js +1116 -0
  37. package/build/app-base/app-base-min.js +1 -0
  38. package/build/app-base/app-base.js +1116 -0
  39. package/build/app-content/app-content-debug.js +235 -0
  40. package/build/app-content/app-content-min.js +1 -0
  41. package/build/app-content/app-content.js +235 -0
  42. package/build/app-transitions/app-transitions-debug.js +242 -0
  43. package/build/app-transitions/app-transitions-min.js +1 -0
  44. package/build/app-transitions/app-transitions.js +242 -0
  45. package/build/app-transitions-css/app-transitions-css-min.css +1 -0
  46. package/build/app-transitions-css/app-transitions-css.css +33 -0
  47. package/build/app-transitions-native/app-transitions-native-debug.js +353 -0
  48. package/build/app-transitions-native/app-transitions-native-min.js +1 -0
  49. package/build/app-transitions-native/app-transitions-native.js +353 -0
  50. package/build/array-extras/array-extras-debug.js +400 -0
  51. package/build/array-extras/array-extras-min.js +1 -0
  52. package/build/array-extras/array-extras.js +400 -0
  53. package/build/array-invoke/array-invoke-debug.js +40 -0
  54. package/build/array-invoke/array-invoke-min.js +1 -0
  55. package/build/array-invoke/array-invoke.js +40 -0
  56. package/build/arraylist/arraylist-debug.js +214 -0
  57. package/build/arraylist/arraylist-min.js +1 -0
  58. package/build/arraylist/arraylist.js +214 -0
  59. package/build/arraylist-add/arraylist-add-debug.js +87 -0
  60. package/build/arraylist-add/arraylist-add-min.js +1 -0
  61. package/build/arraylist-add/arraylist-add.js +87 -0
  62. package/build/arraylist-filter/arraylist-filter-debug.js +45 -0
  63. package/build/arraylist-filter/arraylist-filter-min.js +1 -0
  64. package/build/arraylist-filter/arraylist-filter.js +45 -0
  65. package/build/arraysort/arraysort-debug.js +181 -0
  66. package/build/arraysort/arraysort-min.js +1 -0
  67. package/build/arraysort/arraysort.js +181 -0
  68. package/build/async-queue/async-queue-debug.js +554 -0
  69. package/build/async-queue/async-queue-min.js +1 -0
  70. package/build/async-queue/async-queue.js +554 -0
  71. package/build/attribute-base/attribute-base-debug.js +110 -0
  72. package/build/attribute-base/attribute-base-min.js +1 -0
  73. package/build/attribute-base/attribute-base.js +110 -0
  74. package/build/attribute-complex/attribute-complex-debug.js +56 -0
  75. package/build/attribute-complex/attribute-complex-min.js +1 -0
  76. package/build/attribute-complex/attribute-complex.js +56 -0
  77. package/build/attribute-core/attribute-core-debug.js +1208 -0
  78. package/build/attribute-core/attribute-core-min.js +1 -0
  79. package/build/attribute-core/attribute-core.js +1196 -0
  80. package/build/attribute-extras/attribute-extras-debug.js +157 -0
  81. package/build/attribute-extras/attribute-extras-min.js +1 -0
  82. package/build/attribute-extras/attribute-extras.js +156 -0
  83. package/build/attribute-observable/attribute-observable-debug.js +237 -0
  84. package/build/attribute-observable/attribute-observable-min.js +1 -0
  85. package/build/attribute-observable/attribute-observable.js +236 -0
  86. package/build/autocomplete-base/autocomplete-base-debug.js +1557 -0
  87. package/build/autocomplete-base/autocomplete-base-min.js +2 -0
  88. package/build/autocomplete-base/autocomplete-base.js +1549 -0
  89. package/build/autocomplete-filters/autocomplete-filters-debug.js +239 -0
  90. package/build/autocomplete-filters/autocomplete-filters-min.js +1 -0
  91. package/build/autocomplete-filters/autocomplete-filters.js +239 -0
  92. package/build/autocomplete-filters-accentfold/autocomplete-filters-accentfold-debug.js +136 -0
  93. package/build/autocomplete-filters-accentfold/autocomplete-filters-accentfold-min.js +1 -0
  94. package/build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js +136 -0
  95. package/build/autocomplete-highlighters/autocomplete-highlighters-debug.js +199 -0
  96. package/build/autocomplete-highlighters/autocomplete-highlighters-min.js +1 -0
  97. package/build/autocomplete-highlighters/autocomplete-highlighters.js +199 -0
  98. package/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold-debug.js +107 -0
  99. package/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold-min.js +1 -0
  100. package/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js +107 -0
  101. package/build/autocomplete-list/assets/autocomplete-list-core.css +27 -0
  102. package/build/autocomplete-list/assets/skins/night/autocomplete-list-skin.css +51 -0
  103. package/build/autocomplete-list/assets/skins/night/autocomplete-list.css +1 -0
  104. package/build/autocomplete-list/assets/skins/sam/autocomplete-list-skin.css +17 -0
  105. package/build/autocomplete-list/assets/skins/sam/autocomplete-list.css +1 -0
  106. package/build/autocomplete-list/autocomplete-list-debug.js +906 -0
  107. package/build/autocomplete-list/autocomplete-list-min.js +2 -0
  108. package/build/autocomplete-list/autocomplete-list.js +906 -0
  109. package/build/autocomplete-list/lang/autocomplete-list.js +1 -0
  110. package/build/autocomplete-list/lang/autocomplete-list_en.js +1 -0
  111. package/build/autocomplete-list/lang/autocomplete-list_es.js +1 -0
  112. package/build/autocomplete-list/lang/autocomplete-list_hu.js +1 -0
  113. package/build/autocomplete-list/lang/autocomplete-list_it.js +1 -0
  114. package/build/autocomplete-list-keys/autocomplete-list-keys-debug.js +186 -0
  115. package/build/autocomplete-list-keys/autocomplete-list-keys-min.js +1 -0
  116. package/build/autocomplete-list-keys/autocomplete-list-keys.js +186 -0
  117. package/build/autocomplete-plugin/autocomplete-plugin-debug.js +48 -0
  118. package/build/autocomplete-plugin/autocomplete-plugin-min.js +1 -0
  119. package/build/autocomplete-plugin/autocomplete-plugin.js +48 -0
  120. package/build/autocomplete-sources/autocomplete-sources-debug.js +475 -0
  121. package/build/autocomplete-sources/autocomplete-sources-min.js +1 -0
  122. package/build/autocomplete-sources/autocomplete-sources.js +475 -0
  123. package/build/axis/axis-debug.js +3173 -0
  124. package/build/axis/axis-min.js +5 -0
  125. package/build/axis/axis.js +3173 -0
  126. package/build/axis-base/axis-base-debug.js +901 -0
  127. package/build/axis-base/axis-base-min.js +1 -0
  128. package/build/axis-base/axis-base.js +901 -0
  129. package/build/axis-category/axis-category-debug.js +119 -0
  130. package/build/axis-category/axis-category-min.js +1 -0
  131. package/build/axis-category/axis-category.js +119 -0
  132. package/build/axis-category-base/axis-category-base-debug.js +247 -0
  133. package/build/axis-category-base/axis-category-base-min.js +1 -0
  134. package/build/axis-category-base/axis-category-base.js +247 -0
  135. package/build/axis-numeric/axis-numeric-debug.js +140 -0
  136. package/build/axis-numeric/axis-numeric-min.js +1 -0
  137. package/build/axis-numeric/axis-numeric.js +140 -0
  138. package/build/axis-numeric-base/axis-numeric-base-debug.js +721 -0
  139. package/build/axis-numeric-base/axis-numeric-base-min.js +1 -0
  140. package/build/axis-numeric-base/axis-numeric-base.js +721 -0
  141. package/build/axis-stacked/axis-stacked-debug.js +23 -0
  142. package/build/axis-stacked/axis-stacked-min.js +1 -0
  143. package/build/axis-stacked/axis-stacked.js +23 -0
  144. package/build/axis-stacked-base/axis-stacked-base-debug.js +133 -0
  145. package/build/axis-stacked-base/axis-stacked-base-min.js +1 -0
  146. package/build/axis-stacked-base/axis-stacked-base.js +133 -0
  147. package/build/axis-time/axis-time-debug.js +91 -0
  148. package/build/axis-time/axis-time-min.js +1 -0
  149. package/build/axis-time/axis-time.js +91 -0
  150. package/build/axis-time-base/axis-time-base-debug.js +352 -0
  151. package/build/axis-time-base/axis-time-base-min.js +1 -0
  152. package/build/axis-time-base/axis-time-base.js +352 -0
  153. package/build/base-base/base-base-debug.js +184 -0
  154. package/build/base-base/base-base-min.js +1 -0
  155. package/build/base-base/base-base.js +184 -0
  156. package/build/base-build/base-build-debug.js +453 -0
  157. package/build/base-build/base-build-min.js +1 -0
  158. package/build/base-build/base-build.js +453 -0
  159. package/build/base-core/base-core-debug.js +838 -0
  160. package/build/base-core/base-core-min.js +1 -0
  161. package/build/base-core/base-core.js +832 -0
  162. package/build/base-observable/base-observable-debug.js +221 -0
  163. package/build/base-observable/base-observable-min.js +1 -0
  164. package/build/base-observable/base-observable.js +220 -0
  165. package/build/base-pluginhost/base-pluginhost-debug.js +36 -0
  166. package/build/base-pluginhost/base-pluginhost-min.js +1 -0
  167. package/build/base-pluginhost/base-pluginhost.js +36 -0
  168. package/build/button/button-debug.js +332 -0
  169. package/build/button/button-min.js +1 -0
  170. package/build/button/button.js +332 -0
  171. package/build/button-core/button-core-debug.js +399 -0
  172. package/build/button-core/button-core-min.js +1 -0
  173. package/build/button-core/button-core.js +399 -0
  174. package/build/button-group/button-group-debug.js +194 -0
  175. package/build/button-group/button-group-min.js +1 -0
  176. package/build/button-group/button-group.js +194 -0
  177. package/build/button-plugin/button-plugin-debug.js +134 -0
  178. package/build/button-plugin/button-plugin-min.js +1 -0
  179. package/build/button-plugin/button-plugin.js +134 -0
  180. package/build/cache-base/cache-base-debug.js +442 -0
  181. package/build/cache-base/cache-base-min.js +1 -0
  182. package/build/cache-base/cache-base.js +432 -0
  183. package/build/cache-offline/cache-offline-debug.js +341 -0
  184. package/build/cache-offline/cache-offline-min.js +1 -0
  185. package/build/cache-offline/cache-offline.js +333 -0
  186. package/build/cache-plugin/cache-plugin-debug.js +53 -0
  187. package/build/cache-plugin/cache-plugin-min.js +1 -0
  188. package/build/cache-plugin/cache-plugin.js +53 -0
  189. package/build/calendar/assets/calendar-core.css +31 -0
  190. package/build/calendar/assets/skins/night/calendar-skin.css +7 -0
  191. package/build/calendar/assets/skins/night/calendar.css +1 -0
  192. package/build/calendar/assets/skins/sam/calendar-skin.css +7 -0
  193. package/build/calendar/assets/skins/sam/calendar.css +1 -0
  194. package/build/calendar/calendar-debug.js +610 -0
  195. package/build/calendar/calendar-min.js +2 -0
  196. package/build/calendar/calendar.js +610 -0
  197. package/build/calendar-base/assets/calendar-base-core.css +21 -0
  198. package/build/calendar-base/assets/skins/night/calendar-base-skin.css +92 -0
  199. package/build/calendar-base/assets/skins/night/calendar-base.css +1 -0
  200. package/build/calendar-base/assets/skins/sam/calendar-base-skin.css +98 -0
  201. package/build/calendar-base/assets/skins/sam/calendar-base.css +1 -0
  202. package/build/calendar-base/calendar-base-debug.js +1719 -0
  203. package/build/calendar-base/calendar-base-min.js +3 -0
  204. package/build/calendar-base/calendar-base.js +1719 -0
  205. package/build/calendar-base/lang/calendar-base.js +1 -0
  206. package/build/calendar-base/lang/calendar-base_de.js +1 -0
  207. package/build/calendar-base/lang/calendar-base_en.js +1 -0
  208. package/build/calendar-base/lang/calendar-base_es-AR.js +1 -0
  209. package/build/calendar-base/lang/calendar-base_es.js +1 -0
  210. package/build/calendar-base/lang/calendar-base_fr.js +1 -0
  211. package/build/calendar-base/lang/calendar-base_hu.js +1 -0
  212. package/build/calendar-base/lang/calendar-base_it.js +1 -0
  213. package/build/calendar-base/lang/calendar-base_ja.js +1 -0
  214. package/build/calendar-base/lang/calendar-base_nb-NO.js +1 -0
  215. package/build/calendar-base/lang/calendar-base_nl.js +1 -0
  216. package/build/calendar-base/lang/calendar-base_pt-BR.js +1 -0
  217. package/build/calendar-base/lang/calendar-base_ru.js +1 -0
  218. package/build/calendar-base/lang/calendar-base_zh-HANT-TW.js +1 -0
  219. package/build/calendar-base/lang/calendar-base_zh-Hans-CN.js +1 -0
  220. package/build/calendar-base/lang/calendar-base_zh-Hans.js +1 -0
  221. package/build/calendar-base/lang/calendar-base_zh-Hant-HK.js +1 -0
  222. package/build/calendar-base/lang/calendar-base_zh-Hant.js +1 -0
  223. package/build/calendarnavigator/assets/calendarnavigator-core.css +18 -0
  224. package/build/calendarnavigator/assets/skins/night/calendarnavigator-skin.css +78 -0
  225. package/build/calendarnavigator/assets/skins/night/calendarnavigator.css +1 -0
  226. package/build/calendarnavigator/assets/skins/sam/calendarnavigator-skin.css +78 -0
  227. package/build/calendarnavigator/assets/skins/sam/calendarnavigator.css +1 -0
  228. package/build/calendarnavigator/calendarnavigator-debug.js +297 -0
  229. package/build/calendarnavigator/calendarnavigator-min.js +1 -0
  230. package/build/calendarnavigator/calendarnavigator.js +297 -0
  231. package/build/charts-base/charts-base-debug.js +5181 -0
  232. package/build/charts-base/charts-base-min.js +8 -0
  233. package/build/charts-base/charts-base.js +5181 -0
  234. package/build/charts-legend/charts-legend-debug.js +1703 -0
  235. package/build/charts-legend/charts-legend-min.js +3 -0
  236. package/build/charts-legend/charts-legend.js +1703 -0
  237. package/build/classnamemanager/classnamemanager-debug.js +84 -0
  238. package/build/classnamemanager/classnamemanager-min.js +1 -0
  239. package/build/classnamemanager/classnamemanager.js +84 -0
  240. package/build/clickable-rail/clickable-rail-debug.js +212 -0
  241. package/build/clickable-rail/clickable-rail-min.js +1 -0
  242. package/build/clickable-rail/clickable-rail.js +212 -0
  243. package/build/color-base/color-base-debug.js +492 -0
  244. package/build/color-base/color-base-min.js +1 -0
  245. package/build/color-base/color-base.js +492 -0
  246. package/build/color-harmony/color-harmony-debug.js +569 -0
  247. package/build/color-harmony/color-harmony-min.js +1 -0
  248. package/build/color-harmony/color-harmony.js +568 -0
  249. package/build/color-hsl/color-hsl-debug.js +218 -0
  250. package/build/color-hsl/color-hsl-min.js +1 -0
  251. package/build/color-hsl/color-hsl.js +218 -0
  252. package/build/color-hsv/color-hsv-debug.js +182 -0
  253. package/build/color-hsv/color-hsv-min.js +1 -0
  254. package/build/color-hsv/color-hsv.js +182 -0
  255. package/build/console/assets/console-core.css +0 -0
  256. package/build/console/assets/skins/sam/bg.png +0 -0
  257. package/build/console/assets/skins/sam/console-skin.css +185 -0
  258. package/build/console/assets/skins/sam/console.css +1 -0
  259. package/build/console/assets/skins/sam/warn_error.png +0 -0
  260. package/build/console/assets/warn_error.png +0 -0
  261. package/build/console/console-debug.js +1517 -0
  262. package/build/console/console-min.js +2 -0
  263. package/build/console/console.js +1517 -0
  264. package/build/console/lang/console.js +1 -0
  265. package/build/console/lang/console_en.js +1 -0
  266. package/build/console/lang/console_es.js +1 -0
  267. package/build/console/lang/console_hu.js +1 -0
  268. package/build/console/lang/console_it.js +1 -0
  269. package/build/console/lang/console_ja.js +1 -0
  270. package/build/console-filters/assets/console-filters-core.css +0 -0
  271. package/build/console-filters/assets/skins/sam/console-filters-skin.css +27 -0
  272. package/build/console-filters/assets/skins/sam/console-filters.css +1 -0
  273. package/build/console-filters/console-filters-debug.js +723 -0
  274. package/build/console-filters/console-filters-min.js +1 -0
  275. package/build/console-filters/console-filters.js +723 -0
  276. package/build/content-editable/content-editable-debug.js +808 -0
  277. package/build/content-editable/content-editable-min.js +1 -0
  278. package/build/content-editable/content-editable.js +797 -0
  279. package/build/cookie/cookie-debug.js +508 -0
  280. package/build/cookie/cookie-min.js +1 -0
  281. package/build/cookie/cookie.js +508 -0
  282. package/build/createlink-base/createlink-base-debug.js +86 -0
  283. package/build/createlink-base/createlink-base-min.js +1 -0
  284. package/build/createlink-base/createlink-base.js +85 -0
  285. package/build/cssbase/cssbase-min.css +1 -0
  286. package/build/cssbase/cssbase.css +77 -0
  287. package/build/cssbase-context/cssbase-context-min.css +1 -0
  288. package/build/cssbase-context/cssbase-context.css +76 -0
  289. package/build/cssbutton/cssbutton-min.css +1 -0
  290. package/build/cssbutton/cssbutton.css +147 -0
  291. package/build/cssfonts/cssfonts-min.css +1 -0
  292. package/build/cssfonts/cssfonts.css +43 -0
  293. package/build/cssfonts-context/cssfonts-context-min.css +1 -0
  294. package/build/cssfonts-context/cssfonts-context.css +43 -0
  295. package/build/cssgrids/cssgrids-min.css +11 -0
  296. package/build/cssgrids/cssgrids.css +298 -0
  297. package/build/cssgrids-base/cssgrids-base-min.css +6 -0
  298. package/build/cssgrids-base/cssgrids-base.css +80 -0
  299. package/build/cssgrids-responsive/cssgrids-responsive-min.css +6 -0
  300. package/build/cssgrids-responsive/cssgrids-responsive.css +398 -0
  301. package/build/cssgrids-units/cssgrids-units-min.css +6 -0
  302. package/build/cssgrids-units/cssgrids-units.css +221 -0
  303. package/build/cssnormalize/cssnormalize-min.css +9 -0
  304. package/build/cssnormalize/cssnormalize.css +584 -0
  305. package/build/cssnormalize-context/cssnormalize-context-min.css +9 -0
  306. package/build/cssnormalize-context/cssnormalize-context.css +584 -0
  307. package/build/cssreset/cssreset-min.css +1 -0
  308. package/build/cssreset/cssreset.css +116 -0
  309. package/build/cssreset-context/cssreset-context-min.css +1 -0
  310. package/build/cssreset-context/cssreset-context.css +121 -0
  311. package/build/dataschema-array/dataschema-array-debug.js +189 -0
  312. package/build/dataschema-array/dataschema-array-min.js +1 -0
  313. package/build/dataschema-array/dataschema-array.js +186 -0
  314. package/build/dataschema-base/dataschema-base-debug.js +67 -0
  315. package/build/dataschema-base/dataschema-base-min.js +1 -0
  316. package/build/dataschema-base/dataschema-base.js +66 -0
  317. package/build/dataschema-json/dataschema-json-debug.js +443 -0
  318. package/build/dataschema-json/dataschema-json-min.js +1 -0
  319. package/build/dataschema-json/dataschema-json.js +439 -0
  320. package/build/dataschema-text/dataschema-text-debug.js +183 -0
  321. package/build/dataschema-text/dataschema-text-min.js +1 -0
  322. package/build/dataschema-text/dataschema-text.js +182 -0
  323. package/build/dataschema-xml/dataschema-xml-debug.js +385 -0
  324. package/build/dataschema-xml/dataschema-xml-min.js +1 -0
  325. package/build/dataschema-xml/dataschema-xml.js +383 -0
  326. package/build/datasource-arrayschema/datasource-arrayschema-debug.js +106 -0
  327. package/build/datasource-arrayschema/datasource-arrayschema-min.js +1 -0
  328. package/build/datasource-arrayschema/datasource-arrayschema.js +106 -0
  329. package/build/datasource-cache/datasource-cache-debug.js +166 -0
  330. package/build/datasource-cache/datasource-cache-min.js +1 -0
  331. package/build/datasource-cache/datasource-cache.js +166 -0
  332. package/build/datasource-function/datasource-function-debug.js +108 -0
  333. package/build/datasource-function/datasource-function-min.js +1 -0
  334. package/build/datasource-function/datasource-function.js +106 -0
  335. package/build/datasource-get/datasource-get-debug.js +213 -0
  336. package/build/datasource-get/datasource-get-min.js +1 -0
  337. package/build/datasource-get/datasource-get.js +209 -0
  338. package/build/datasource-io/datasource-io-debug.js +204 -0
  339. package/build/datasource-io/datasource-io-min.js +1 -0
  340. package/build/datasource-io/datasource-io.js +201 -0
  341. package/build/datasource-jsonschema/datasource-jsonschema-debug.js +103 -0
  342. package/build/datasource-jsonschema/datasource-jsonschema-min.js +1 -0
  343. package/build/datasource-jsonschema/datasource-jsonschema.js +103 -0
  344. package/build/datasource-local/datasource-local-debug.js +402 -0
  345. package/build/datasource-local/datasource-local-min.js +1 -0
  346. package/build/datasource-local/datasource-local.js +398 -0
  347. package/build/datasource-polling/datasource-polling-debug.js +93 -0
  348. package/build/datasource-polling/datasource-polling-min.js +1 -0
  349. package/build/datasource-polling/datasource-polling.js +93 -0
  350. package/build/datasource-textschema/datasource-textschema-debug.js +102 -0
  351. package/build/datasource-textschema/datasource-textschema-min.js +1 -0
  352. package/build/datasource-textschema/datasource-textschema.js +102 -0
  353. package/build/datasource-xmlschema/datasource-xmlschema-debug.js +102 -0
  354. package/build/datasource-xmlschema/datasource-xmlschema-min.js +1 -0
  355. package/build/datasource-xmlschema/datasource-xmlschema.js +102 -0
  356. package/build/datatable-base/assets/datatable-base-core.css +4 -0
  357. package/build/datatable-base/assets/skins/night/datatable-base-skin.css +74 -0
  358. package/build/datatable-base/assets/skins/night/datatable-base.css +1 -0
  359. package/build/datatable-base/assets/skins/sam/datatable-base-skin.css +69 -0
  360. package/build/datatable-base/assets/skins/sam/datatable-base.css +1 -0
  361. package/build/datatable-base/datatable-base-debug.js +694 -0
  362. package/build/datatable-base/datatable-base-min.js +1 -0
  363. package/build/datatable-base/datatable-base.js +694 -0
  364. package/build/datatable-body/datatable-body-debug.js +1211 -0
  365. package/build/datatable-body/datatable-body-min.js +2 -0
  366. package/build/datatable-body/datatable-body.js +1211 -0
  367. package/build/datatable-column-widths/datatable-column-widths-debug.js +323 -0
  368. package/build/datatable-column-widths/datatable-column-widths-min.js +1 -0
  369. package/build/datatable-column-widths/datatable-column-widths.js +323 -0
  370. package/build/datatable-core/datatable-core-debug.js +1321 -0
  371. package/build/datatable-core/datatable-core-min.js +1 -0
  372. package/build/datatable-core/datatable-core.js +1319 -0
  373. package/build/datatable-datasource/datatable-datasource-debug.js +180 -0
  374. package/build/datatable-datasource/datatable-datasource-min.js +1 -0
  375. package/build/datatable-datasource/datatable-datasource.js +180 -0
  376. package/build/datatable-foot/datatable-foot-debug.js +112 -0
  377. package/build/datatable-foot/datatable-foot-min.js +1 -0
  378. package/build/datatable-foot/datatable-foot.js +112 -0
  379. package/build/datatable-formatters/datatable-formatters-debug.js +563 -0
  380. package/build/datatable-formatters/datatable-formatters-min.js +1 -0
  381. package/build/datatable-formatters/datatable-formatters.js +563 -0
  382. package/build/datatable-head/datatable-head-debug.js +532 -0
  383. package/build/datatable-head/datatable-head-min.js +1 -0
  384. package/build/datatable-head/datatable-head.js +532 -0
  385. package/build/datatable-highlight/assets/datatable-highlight-core.css +26 -0
  386. package/build/datatable-highlight/assets/skins/night/datatable-highlight-skin.css +11 -0
  387. package/build/datatable-highlight/assets/skins/night/datatable-highlight.css +1 -0
  388. package/build/datatable-highlight/assets/skins/sam/datatable-highlight-skin.css +11 -0
  389. package/build/datatable-highlight/assets/skins/sam/datatable-highlight.css +1 -0
  390. package/build/datatable-highlight/datatable-highlight-debug.js +282 -0
  391. package/build/datatable-highlight/datatable-highlight-min.js +1 -0
  392. package/build/datatable-highlight/datatable-highlight.js +282 -0
  393. package/build/datatable-keynav/datatable-keynav-debug.js +706 -0
  394. package/build/datatable-keynav/datatable-keynav-min.js +2 -0
  395. package/build/datatable-keynav/datatable-keynav.js +706 -0
  396. package/build/datatable-message/assets/datatable-message-core.css +8 -0
  397. package/build/datatable-message/assets/skins/night/datatable-message-skin.css +6 -0
  398. package/build/datatable-message/assets/skins/night/datatable-message.css +1 -0
  399. package/build/datatable-message/assets/skins/sam/datatable-message-skin.css +5 -0
  400. package/build/datatable-message/assets/skins/sam/datatable-message.css +1 -0
  401. package/build/datatable-message/datatable-message-debug.js +290 -0
  402. package/build/datatable-message/datatable-message-min.js +1 -0
  403. package/build/datatable-message/datatable-message.js +290 -0
  404. package/build/datatable-message/lang/datatable-message.js +1 -0
  405. package/build/datatable-message/lang/datatable-message_en.js +1 -0
  406. package/build/datatable-message/lang/datatable-message_es.js +1 -0
  407. package/build/datatable-message/lang/datatable-message_fr.js +1 -0
  408. package/build/datatable-message/lang/datatable-message_hu.js +1 -0
  409. package/build/datatable-message/lang/datatable-message_it.js +1 -0
  410. package/build/datatable-mutable/datatable-mutable-debug.js +635 -0
  411. package/build/datatable-mutable/datatable-mutable-min.js +1 -0
  412. package/build/datatable-mutable/datatable-mutable.js +630 -0
  413. package/build/datatable-paginator/assets/datatable-paginator-core.css +58 -0
  414. package/build/datatable-paginator/assets/skins/night/datatable-paginator-skin.css +35 -0
  415. package/build/datatable-paginator/assets/skins/night/datatable-paginator.css +1 -0
  416. package/build/datatable-paginator/assets/skins/sam/datatable-paginator-skin.css +36 -0
  417. package/build/datatable-paginator/assets/skins/sam/datatable-paginator.css +1 -0
  418. package/build/datatable-paginator/datatable-paginator-debug.js +995 -0
  419. package/build/datatable-paginator/datatable-paginator-min.js +2 -0
  420. package/build/datatable-paginator/datatable-paginator.js +995 -0
  421. package/build/datatable-paginator/lang/datatable-paginator.js +1 -0
  422. package/build/datatable-paginator/lang/datatable-paginator_en.js +1 -0
  423. package/build/datatable-paginator/lang/datatable-paginator_fr.js +1 -0
  424. package/build/datatable-paginator-templates/datatable-paginator-templates-debug.js +87 -0
  425. package/build/datatable-paginator-templates/datatable-paginator-templates-min.js +1 -0
  426. package/build/datatable-paginator-templates/datatable-paginator-templates.js +87 -0
  427. package/build/datatable-scroll/assets/datatable-scroll-core.css +71 -0
  428. package/build/datatable-scroll/assets/skins/night/datatable-scroll-skin.css +25 -0
  429. package/build/datatable-scroll/assets/skins/night/datatable-scroll.css +1 -0
  430. package/build/datatable-scroll/assets/skins/sam/datatable-scroll-skin.css +24 -0
  431. package/build/datatable-scroll/assets/skins/sam/datatable-scroll.css +1 -0
  432. package/build/datatable-scroll/datatable-scroll-debug.js +1386 -0
  433. package/build/datatable-scroll/datatable-scroll-min.js +2 -0
  434. package/build/datatable-scroll/datatable-scroll.js +1386 -0
  435. package/build/datatable-sort/assets/datatable-sort-core.css +17 -0
  436. package/build/datatable-sort/assets/skins/night/datatable-sort-skin.css +85 -0
  437. package/build/datatable-sort/assets/skins/night/datatable-sort.css +1 -0
  438. package/build/datatable-sort/assets/skins/night/sort-arrow-sprite-ie.png +0 -0
  439. package/build/datatable-sort/assets/skins/night/sort-arrow-sprite.png +0 -0
  440. package/build/datatable-sort/assets/skins/sam/datatable-sort-skin.css +43 -0
  441. package/build/datatable-sort/assets/skins/sam/datatable-sort.css +1 -0
  442. package/build/datatable-sort/assets/skins/sam/sort-arrow-sprite-ie.png +0 -0
  443. package/build/datatable-sort/assets/skins/sam/sort-arrow-sprite.png +0 -0
  444. package/build/datatable-sort/datatable-sort-debug.js +979 -0
  445. package/build/datatable-sort/datatable-sort-min.js +1 -0
  446. package/build/datatable-sort/datatable-sort.js +979 -0
  447. package/build/datatable-sort/lang/datatable-sort.js +1 -0
  448. package/build/datatable-sort/lang/datatable-sort_en.js +1 -0
  449. package/build/datatable-sort/lang/datatable-sort_es.js +1 -0
  450. package/build/datatable-sort/lang/datatable-sort_fr.js +1 -0
  451. package/build/datatable-sort/lang/datatable-sort_hu.js +1 -0
  452. package/build/datatable-table/datatable-table-debug.js +755 -0
  453. package/build/datatable-table/datatable-table-min.js +1 -0
  454. package/build/datatable-table/datatable-table.js +755 -0
  455. package/build/datatype-date-format/datatype-date-format-debug.js +387 -0
  456. package/build/datatype-date-format/datatype-date-format-min.js +1 -0
  457. package/build/datatype-date-format/datatype-date-format.js +385 -0
  458. package/build/datatype-date-format/lang/datatype-date-format.js +1 -0
  459. package/build/datatype-date-format/lang/datatype-date-format_ar-JO.js +1 -0
  460. package/build/datatype-date-format/lang/datatype-date-format_ar.js +1 -0
  461. package/build/datatype-date-format/lang/datatype-date-format_ca-ES.js +1 -0
  462. package/build/datatype-date-format/lang/datatype-date-format_ca.js +1 -0
  463. package/build/datatype-date-format/lang/datatype-date-format_da-DK.js +1 -0
  464. package/build/datatype-date-format/lang/datatype-date-format_da.js +1 -0
  465. package/build/datatype-date-format/lang/datatype-date-format_de-AT.js +1 -0
  466. package/build/datatype-date-format/lang/datatype-date-format_de-DE.js +1 -0
  467. package/build/datatype-date-format/lang/datatype-date-format_de.js +1 -0
  468. package/build/datatype-date-format/lang/datatype-date-format_el-GR.js +1 -0
  469. package/build/datatype-date-format/lang/datatype-date-format_el.js +1 -0
  470. package/build/datatype-date-format/lang/datatype-date-format_en-AU.js +1 -0
  471. package/build/datatype-date-format/lang/datatype-date-format_en-CA.js +1 -0
  472. package/build/datatype-date-format/lang/datatype-date-format_en-GB.js +1 -0
  473. package/build/datatype-date-format/lang/datatype-date-format_en-IE.js +1 -0
  474. package/build/datatype-date-format/lang/datatype-date-format_en-IN.js +1 -0
  475. package/build/datatype-date-format/lang/datatype-date-format_en-JO.js +1 -0
  476. package/build/datatype-date-format/lang/datatype-date-format_en-MY.js +1 -0
  477. package/build/datatype-date-format/lang/datatype-date-format_en-NZ.js +1 -0
  478. package/build/datatype-date-format/lang/datatype-date-format_en-PH.js +1 -0
  479. package/build/datatype-date-format/lang/datatype-date-format_en-SG.js +1 -0
  480. package/build/datatype-date-format/lang/datatype-date-format_en-US.js +1 -0
  481. package/build/datatype-date-format/lang/datatype-date-format_en.js +1 -0
  482. package/build/datatype-date-format/lang/datatype-date-format_es-AR.js +1 -0
  483. package/build/datatype-date-format/lang/datatype-date-format_es-BO.js +1 -0
  484. package/build/datatype-date-format/lang/datatype-date-format_es-CL.js +1 -0
  485. package/build/datatype-date-format/lang/datatype-date-format_es-CO.js +1 -0
  486. package/build/datatype-date-format/lang/datatype-date-format_es-EC.js +1 -0
  487. package/build/datatype-date-format/lang/datatype-date-format_es-ES.js +1 -0
  488. package/build/datatype-date-format/lang/datatype-date-format_es-MX.js +1 -0
  489. package/build/datatype-date-format/lang/datatype-date-format_es-PE.js +1 -0
  490. package/build/datatype-date-format/lang/datatype-date-format_es-PY.js +1 -0
  491. package/build/datatype-date-format/lang/datatype-date-format_es-US.js +1 -0
  492. package/build/datatype-date-format/lang/datatype-date-format_es-UY.js +1 -0
  493. package/build/datatype-date-format/lang/datatype-date-format_es-VE.js +1 -0
  494. package/build/datatype-date-format/lang/datatype-date-format_es.js +1 -0
  495. package/build/datatype-date-format/lang/datatype-date-format_fi-FI.js +1 -0
  496. package/build/datatype-date-format/lang/datatype-date-format_fi.js +1 -0
  497. package/build/datatype-date-format/lang/datatype-date-format_fr-BE.js +1 -0
  498. package/build/datatype-date-format/lang/datatype-date-format_fr-CA.js +1 -0
  499. package/build/datatype-date-format/lang/datatype-date-format_fr-FR.js +1 -0
  500. package/build/datatype-date-format/lang/datatype-date-format_fr.js +1 -0
  501. package/build/datatype-date-format/lang/datatype-date-format_hi-IN.js +1 -0
  502. package/build/datatype-date-format/lang/datatype-date-format_hi.js +1 -0
  503. package/build/datatype-date-format/lang/datatype-date-format_hu.js +1 -0
  504. package/build/datatype-date-format/lang/datatype-date-format_id-ID.js +1 -0
  505. package/build/datatype-date-format/lang/datatype-date-format_id.js +1 -0
  506. package/build/datatype-date-format/lang/datatype-date-format_it-IT.js +1 -0
  507. package/build/datatype-date-format/lang/datatype-date-format_it.js +1 -0
  508. package/build/datatype-date-format/lang/datatype-date-format_ja-JP.js +1 -0
  509. package/build/datatype-date-format/lang/datatype-date-format_ja.js +1 -0
  510. package/build/datatype-date-format/lang/datatype-date-format_ko-KR.js +1 -0
  511. package/build/datatype-date-format/lang/datatype-date-format_ko.js +1 -0
  512. package/build/datatype-date-format/lang/datatype-date-format_ms-MY.js +1 -0
  513. package/build/datatype-date-format/lang/datatype-date-format_ms.js +1 -0
  514. package/build/datatype-date-format/lang/datatype-date-format_nb-NO.js +1 -0
  515. package/build/datatype-date-format/lang/datatype-date-format_nb.js +1 -0
  516. package/build/datatype-date-format/lang/datatype-date-format_nl-BE.js +1 -0
  517. package/build/datatype-date-format/lang/datatype-date-format_nl-NL.js +1 -0
  518. package/build/datatype-date-format/lang/datatype-date-format_nl.js +1 -0
  519. package/build/datatype-date-format/lang/datatype-date-format_pl-PL.js +1 -0
  520. package/build/datatype-date-format/lang/datatype-date-format_pl.js +1 -0
  521. package/build/datatype-date-format/lang/datatype-date-format_pt-BR.js +1 -0
  522. package/build/datatype-date-format/lang/datatype-date-format_pt.js +1 -0
  523. package/build/datatype-date-format/lang/datatype-date-format_ro-RO.js +1 -0
  524. package/build/datatype-date-format/lang/datatype-date-format_ro.js +1 -0
  525. package/build/datatype-date-format/lang/datatype-date-format_ru-RU.js +1 -0
  526. package/build/datatype-date-format/lang/datatype-date-format_ru.js +1 -0
  527. package/build/datatype-date-format/lang/datatype-date-format_sv-SE.js +1 -0
  528. package/build/datatype-date-format/lang/datatype-date-format_sv.js +1 -0
  529. package/build/datatype-date-format/lang/datatype-date-format_th-TH.js +1 -0
  530. package/build/datatype-date-format/lang/datatype-date-format_th.js +1 -0
  531. package/build/datatype-date-format/lang/datatype-date-format_tr-TR.js +1 -0
  532. package/build/datatype-date-format/lang/datatype-date-format_tr.js +1 -0
  533. package/build/datatype-date-format/lang/datatype-date-format_vi-VN.js +1 -0
  534. package/build/datatype-date-format/lang/datatype-date-format_vi.js +1 -0
  535. package/build/datatype-date-format/lang/datatype-date-format_zh-Hans-CN.js +1 -0
  536. package/build/datatype-date-format/lang/datatype-date-format_zh-Hans.js +1 -0
  537. package/build/datatype-date-format/lang/datatype-date-format_zh-Hant-HK.js +1 -0
  538. package/build/datatype-date-format/lang/datatype-date-format_zh-Hant-TW.js +1 -0
  539. package/build/datatype-date-format/lang/datatype-date-format_zh-Hant.js +1 -0
  540. package/build/datatype-date-math/datatype-date-math-debug.js +208 -0
  541. package/build/datatype-date-math/datatype-date-math-min.js +1 -0
  542. package/build/datatype-date-math/datatype-date-math.js +207 -0
  543. package/build/datatype-date-parse/datatype-date-parse-debug.js +36 -0
  544. package/build/datatype-date-parse/datatype-date-parse-min.js +1 -0
  545. package/build/datatype-date-parse/datatype-date-parse.js +35 -0
  546. package/build/datatype-number-format/datatype-number-format-debug.js +109 -0
  547. package/build/datatype-number-format/datatype-number-format-min.js +1 -0
  548. package/build/datatype-number-format/datatype-number-format.js +108 -0
  549. package/build/datatype-number-parse/datatype-number-parse-debug.js +105 -0
  550. package/build/datatype-number-parse/datatype-number-parse-min.js +1 -0
  551. package/build/datatype-number-parse/datatype-number-parse.js +104 -0
  552. package/build/datatype-xml-format/datatype-xml-format-debug.js +53 -0
  553. package/build/datatype-xml-format/datatype-xml-format-min.js +1 -0
  554. package/build/datatype-xml-format/datatype-xml-format.js +52 -0
  555. package/build/datatype-xml-parse/datatype-xml-parse-debug.js +50 -0
  556. package/build/datatype-xml-parse/datatype-xml-parse-min.js +1 -0
  557. package/build/datatype-xml-parse/datatype-xml-parse.js +49 -0
  558. package/build/dd-constrain/dd-constrain-debug.js +562 -0
  559. package/build/dd-constrain/dd-constrain-min.js +1 -0
  560. package/build/dd-constrain/dd-constrain.js +562 -0
  561. package/build/dd-ddm/dd-ddm-debug.js +126 -0
  562. package/build/dd-ddm/dd-ddm-min.js +1 -0
  563. package/build/dd-ddm/dd-ddm.js +126 -0
  564. package/build/dd-ddm-base/dd-ddm-base-debug.js +374 -0
  565. package/build/dd-ddm-base/dd-ddm-base-min.js +1 -0
  566. package/build/dd-ddm-base/dd-ddm-base.js +374 -0
  567. package/build/dd-ddm-drop/dd-ddm-drop-debug.js +399 -0
  568. package/build/dd-ddm-drop/dd-ddm-drop-min.js +1 -0
  569. package/build/dd-ddm-drop/dd-ddm-drop.js +399 -0
  570. package/build/dd-delegate/dd-delegate-debug.js +337 -0
  571. package/build/dd-delegate/dd-delegate-min.js +1 -0
  572. package/build/dd-delegate/dd-delegate.js +337 -0
  573. package/build/dd-drag/dd-drag-debug.js +1270 -0
  574. package/build/dd-drag/dd-drag-min.js +2 -0
  575. package/build/dd-drag/dd-drag.js +1267 -0
  576. package/build/dd-drop/dd-drop-debug.js +553 -0
  577. package/build/dd-drop/dd-drop-min.js +1 -0
  578. package/build/dd-drop/dd-drop.js +552 -0
  579. package/build/dd-drop-plugin/dd-drop-plugin-debug.js +44 -0
  580. package/build/dd-drop-plugin/dd-drop-plugin-min.js +1 -0
  581. package/build/dd-drop-plugin/dd-drop-plugin.js +44 -0
  582. package/build/dd-gestures/dd-gestures-debug.js +56 -0
  583. package/build/dd-gestures/dd-gestures-min.js +1 -0
  584. package/build/dd-gestures/dd-gestures.js +54 -0
  585. package/build/dd-plugin/dd-plugin-debug.js +205 -0
  586. package/build/dd-plugin/dd-plugin-min.js +1 -0
  587. package/build/dd-plugin/dd-plugin.js +200 -0
  588. package/build/dd-proxy/dd-proxy-debug.js +251 -0
  589. package/build/dd-proxy/dd-proxy-min.js +1 -0
  590. package/build/dd-proxy/dd-proxy.js +251 -0
  591. package/build/dd-scroll/dd-scroll-debug.js +423 -0
  592. package/build/dd-scroll/dd-scroll-min.js +1 -0
  593. package/build/dd-scroll/dd-scroll.js +423 -0
  594. package/build/dial/assets/dial-core.css +42 -0
  595. package/build/dial/assets/skins/night/dial-skin.css +89 -0
  596. package/build/dial/assets/skins/night/dial.css +1 -0
  597. package/build/dial/assets/skins/sam/dial-skin.css +75 -0
  598. package/build/dial/assets/skins/sam/dial.css +1 -0
  599. package/build/dial/dial-debug.js +1327 -0
  600. package/build/dial/dial-min.js +3 -0
  601. package/build/dial/dial.js +1327 -0
  602. package/build/dial/lang/dial.js +1 -0
  603. package/build/dial/lang/dial_en.js +1 -0
  604. package/build/dial/lang/dial_es.js +1 -0
  605. package/build/dial/lang/dial_hu.js +1 -0
  606. package/build/dom-base/dom-base-debug.js +699 -0
  607. package/build/dom-base/dom-base-min.js +2 -0
  608. package/build/dom-base/dom-base.js +695 -0
  609. package/build/dom-core/dom-core-debug.js +390 -0
  610. package/build/dom-core/dom-core-min.js +1 -0
  611. package/build/dom-core/dom-core.js +390 -0
  612. package/build/dom-screen/dom-screen-debug.js +611 -0
  613. package/build/dom-screen/dom-screen-min.js +1 -0
  614. package/build/dom-screen/dom-screen.js +605 -0
  615. package/build/dom-style/dom-style-debug.js +249 -0
  616. package/build/dom-style/dom-style-min.js +1 -0
  617. package/build/dom-style/dom-style.js +249 -0
  618. package/build/dom-style-ie/dom-style-ie-debug.js +300 -0
  619. package/build/dom-style-ie/dom-style-ie-min.js +1 -0
  620. package/build/dom-style-ie/dom-style-ie.js +297 -0
  621. package/build/dump/dump-debug.js +105 -0
  622. package/build/dump/dump-min.js +1 -0
  623. package/build/dump/dump.js +105 -0
  624. package/build/editor-base/editor-base-debug.js +946 -0
  625. package/build/editor-base/editor-base-min.js +2 -0
  626. package/build/editor-base/editor-base.js +943 -0
  627. package/build/editor-bidi/editor-bidi-debug.js +340 -0
  628. package/build/editor-bidi/editor-bidi-min.js +1 -0
  629. package/build/editor-bidi/editor-bidi.js +340 -0
  630. package/build/editor-br/editor-br-debug.js +137 -0
  631. package/build/editor-br/editor-br-min.js +1 -0
  632. package/build/editor-br/editor-br.js +137 -0
  633. package/build/editor-inline/editor-inline-debug.js +32 -0
  634. package/build/editor-inline/editor-inline-min.js +1 -0
  635. package/build/editor-inline/editor-inline.js +32 -0
  636. package/build/editor-lists/editor-lists-debug.js +127 -0
  637. package/build/editor-lists/editor-lists-min.js +1 -0
  638. package/build/editor-lists/editor-lists.js +122 -0
  639. package/build/editor-para/editor-para-debug.js +356 -0
  640. package/build/editor-para/editor-para-min.js +1 -0
  641. package/build/editor-para/editor-para.js +355 -0
  642. package/build/editor-para-base/editor-para-base-debug.js +132 -0
  643. package/build/editor-para-base/editor-para-base-min.js +1 -0
  644. package/build/editor-para-base/editor-para-base.js +131 -0
  645. package/build/editor-para-ie/editor-para-ie-debug.js +134 -0
  646. package/build/editor-para-ie/editor-para-ie-min.js +1 -0
  647. package/build/editor-para-ie/editor-para-ie.js +134 -0
  648. package/build/editor-selection/editor-selection-debug.js +1042 -0
  649. package/build/editor-selection/editor-selection-min.js +2 -0
  650. package/build/editor-selection/editor-selection.js +1026 -0
  651. package/build/editor-tab/editor-tab-debug.js +69 -0
  652. package/build/editor-tab/editor-tab-min.js +1 -0
  653. package/build/editor-tab/editor-tab.js +68 -0
  654. package/build/escape/escape-debug.js +92 -0
  655. package/build/escape/escape-min.js +1 -0
  656. package/build/escape/escape.js +92 -0
  657. package/build/event-base/event-base-debug.js +1368 -0
  658. package/build/event-base/event-base-min.js +2 -0
  659. package/build/event-base/event-base.js +1363 -0
  660. package/build/event-base-ie/event-base-ie-debug.js +303 -0
  661. package/build/event-base-ie/event-base-ie-min.js +3 -0
  662. package/build/event-base-ie/event-base-ie.js +303 -0
  663. package/build/event-contextmenu/event-contextmenu-debug.js +192 -0
  664. package/build/event-contextmenu/event-contextmenu-min.js +1 -0
  665. package/build/event-contextmenu/event-contextmenu.js +192 -0
  666. package/build/event-custom-base/event-custom-base-debug.js +2464 -0
  667. package/build/event-custom-base/event-custom-base-min.js +3 -0
  668. package/build/event-custom-base/event-custom-base.js +2449 -0
  669. package/build/event-custom-complex/event-custom-complex-debug.js +673 -0
  670. package/build/event-custom-complex/event-custom-complex-min.js +1 -0
  671. package/build/event-custom-complex/event-custom-complex.js +670 -0
  672. package/build/event-delegate/event-delegate-debug.js +348 -0
  673. package/build/event-delegate/event-delegate-min.js +1 -0
  674. package/build/event-delegate/event-delegate.js +347 -0
  675. package/build/event-flick/event-flick-debug.js +272 -0
  676. package/build/event-flick/event-flick-min.js +1 -0
  677. package/build/event-flick/event-flick.js +271 -0
  678. package/build/event-focus/event-focus-debug.js +280 -0
  679. package/build/event-focus/event-focus-min.js +1 -0
  680. package/build/event-focus/event-focus.js +280 -0
  681. package/build/event-hover/event-hover-debug.js +70 -0
  682. package/build/event-hover/event-hover-min.js +1 -0
  683. package/build/event-hover/event-hover.js +70 -0
  684. package/build/event-key/event-key-debug.js +172 -0
  685. package/build/event-key/event-key-min.js +1 -0
  686. package/build/event-key/event-key.js +172 -0
  687. package/build/event-mouseenter/event-mouseenter-debug.js +129 -0
  688. package/build/event-mouseenter/event-mouseenter-min.js +1 -0
  689. package/build/event-mouseenter/event-mouseenter.js +129 -0
  690. package/build/event-mousewheel/event-mousewheel-debug.js +50 -0
  691. package/build/event-mousewheel/event-mousewheel-min.js +1 -0
  692. package/build/event-mousewheel/event-mousewheel.js +50 -0
  693. package/build/event-move/event-move-debug.js +639 -0
  694. package/build/event-move/event-move-min.js +1 -0
  695. package/build/event-move/event-move.js +626 -0
  696. package/build/event-outside/event-outside-debug.js +107 -0
  697. package/build/event-outside/event-outside-min.js +1 -0
  698. package/build/event-outside/event-outside.js +107 -0
  699. package/build/event-resize/event-resize-debug.js +53 -0
  700. package/build/event-resize/event-resize-min.js +1 -0
  701. package/build/event-resize/event-resize.js +53 -0
  702. package/build/event-simulate/event-simulate-debug.js +957 -0
  703. package/build/event-simulate/event-simulate-min.js +2 -0
  704. package/build/event-simulate/event-simulate.js +957 -0
  705. package/build/event-synthetic/event-synthetic-debug.js +845 -0
  706. package/build/event-synthetic/event-synthetic-min.js +1 -0
  707. package/build/event-synthetic/event-synthetic.js +845 -0
  708. package/build/event-tap/event-tap-debug.js +299 -0
  709. package/build/event-tap/event-tap-min.js +1 -0
  710. package/build/event-tap/event-tap.js +296 -0
  711. package/build/event-touch/event-touch-debug.js +187 -0
  712. package/build/event-touch/event-touch-min.js +1 -0
  713. package/build/event-touch/event-touch.js +181 -0
  714. package/build/event-valuechange/event-valuechange-debug.js +568 -0
  715. package/build/event-valuechange/event-valuechange-min.js +1 -0
  716. package/build/event-valuechange/event-valuechange.js +554 -0
  717. package/build/exec-command/exec-command-debug.js +721 -0
  718. package/build/exec-command/exec-command-min.js +2 -0
  719. package/build/exec-command/exec-command.js +717 -0
  720. package/build/features/features-debug.js +406 -0
  721. package/build/features/features-min.js +1 -0
  722. package/build/features/features.js +405 -0
  723. package/build/file/file-debug.js +31 -0
  724. package/build/file/file-min.js +1 -0
  725. package/build/file/file.js +31 -0
  726. package/build/file-flash/file-flash-debug.js +341 -0
  727. package/build/file-flash/file-flash-min.js +1 -0
  728. package/build/file-flash/file-flash.js +341 -0
  729. package/build/file-html5/file-html5-debug.js +503 -0
  730. package/build/file-html5/file-html5-min.js +1 -0
  731. package/build/file-html5/file-html5.js +503 -0
  732. package/build/frame/frame-debug.js +1076 -0
  733. package/build/frame/frame-min.js +2 -0
  734. package/build/frame/frame.js +1047 -0
  735. package/build/gesture-simulate/gesture-simulate-debug.js +1321 -0
  736. package/build/gesture-simulate/gesture-simulate-min.js +2 -0
  737. package/build/gesture-simulate/gesture-simulate.js +1321 -0
  738. package/build/get/get-debug.js +1292 -0
  739. package/build/get/get-min.js +2 -0
  740. package/build/get/get.js +1275 -0
  741. package/build/get-nodejs/get-nodejs-debug.js +225 -0
  742. package/build/get-nodejs/get-nodejs-min.js +107 -0
  743. package/build/get-nodejs/get-nodejs.js +204 -0
  744. package/build/graphics/graphics-debug.js +1270 -0
  745. package/build/graphics/graphics-min.js +1 -0
  746. package/build/graphics/graphics.js +1270 -0
  747. package/build/graphics-canvas/graphics-canvas-debug.js +3691 -0
  748. package/build/graphics-canvas/graphics-canvas-min.js +5 -0
  749. package/build/graphics-canvas/graphics-canvas.js +3691 -0
  750. package/build/graphics-canvas-default/graphics-canvas-default-debug.js +12 -0
  751. package/build/graphics-canvas-default/graphics-canvas-default-min.js +1 -0
  752. package/build/graphics-canvas-default/graphics-canvas-default.js +12 -0
  753. package/build/graphics-group/graphics-group-debug.js +310 -0
  754. package/build/graphics-group/graphics-group-min.js +1 -0
  755. package/build/graphics-group/graphics-group.js +310 -0
  756. package/build/graphics-svg/graphics-svg-debug.js +3557 -0
  757. package/build/graphics-svg/graphics-svg-min.js +5 -0
  758. package/build/graphics-svg/graphics-svg.js +3557 -0
  759. package/build/graphics-svg-default/graphics-svg-default-debug.js +12 -0
  760. package/build/graphics-svg-default/graphics-svg-default-min.js +1 -0
  761. package/build/graphics-svg-default/graphics-svg-default.js +12 -0
  762. package/build/graphics-vml/graphics-vml-debug.js +3753 -0
  763. package/build/graphics-vml/graphics-vml-min.js +5 -0
  764. package/build/graphics-vml/graphics-vml.js +3753 -0
  765. package/build/graphics-vml-default/graphics-vml-default-debug.js +12 -0
  766. package/build/graphics-vml-default/graphics-vml-default-min.js +1 -0
  767. package/build/graphics-vml-default/graphics-vml-default.js +12 -0
  768. package/build/handlebars-base/handlebars-base-debug.js +693 -0
  769. package/build/handlebars-base/handlebars-base-min.js +7 -0
  770. package/build/handlebars-base/handlebars-base.js +693 -0
  771. package/build/handlebars-compiler/handlebars-compiler-debug.js +2519 -0
  772. package/build/handlebars-compiler/handlebars-compiler-min.js +12 -0
  773. package/build/handlebars-compiler/handlebars-compiler.js +2519 -0
  774. package/build/highlight-accentfold/highlight-accentfold-debug.js +144 -0
  775. package/build/highlight-accentfold/highlight-accentfold-min.js +1 -0
  776. package/build/highlight-accentfold/highlight-accentfold.js +144 -0
  777. package/build/highlight-base/highlight-base-debug.js +312 -0
  778. package/build/highlight-base/highlight-base-min.js +1 -0
  779. package/build/highlight-base/highlight-base.js +312 -0
  780. package/build/history-base/history-base-debug.js +639 -0
  781. package/build/history-base/history-base-min.js +1 -0
  782. package/build/history-base/history-base.js +639 -0
  783. package/build/history-hash/history-hash-debug.js +475 -0
  784. package/build/history-hash/history-hash-min.js +1 -0
  785. package/build/history-hash/history-hash.js +475 -0
  786. package/build/history-hash-ie/history-hash-ie-debug.js +138 -0
  787. package/build/history-hash-ie/history-hash-ie-min.js +1 -0
  788. package/build/history-hash-ie/history-hash-ie.js +134 -0
  789. package/build/history-html5/history-html5-debug.js +189 -0
  790. package/build/history-html5/history-html5-min.js +1 -0
  791. package/build/history-html5/history-html5.js +189 -0
  792. package/build/imageloader/imageloader-debug.js +665 -0
  793. package/build/imageloader/imageloader-min.js +1 -0
  794. package/build/imageloader/imageloader.js +653 -0
  795. package/build/intl/intl-debug.js +150 -0
  796. package/build/intl/intl-min.js +1 -0
  797. package/build/intl/intl.js +150 -0
  798. package/build/intl-base/intl-base-debug.js +88 -0
  799. package/build/intl-base/intl-base-min.js +1 -0
  800. package/build/intl-base/intl-base.js +88 -0
  801. package/build/io-base/io-base-debug.js +1059 -0
  802. package/build/io-base/io-base-min.js +1 -0
  803. package/build/io-base/io-base.js +1053 -0
  804. package/build/io-form/io-form-debug.js +130 -0
  805. package/build/io-form/io-form-min.js +1 -0
  806. package/build/io-form/io-form.js +129 -0
  807. package/build/io-nodejs/io-nodejs-debug.js +215 -0
  808. package/build/io-nodejs/io-nodejs-min.js +108 -0
  809. package/build/io-nodejs/io-nodejs.js +199 -0
  810. package/build/io-queue/io-queue-debug.js +173 -0
  811. package/build/io-queue/io-queue-min.js +1 -0
  812. package/build/io-queue/io-queue.js +170 -0
  813. package/build/io-upload-iframe/io-upload-iframe-debug.js +313 -0
  814. package/build/io-upload-iframe/io-upload-iframe-min.js +1 -0
  815. package/build/io-upload-iframe/io-upload-iframe.js +305 -0
  816. package/build/io-xdr/io-xdr-debug.js +318 -0
  817. package/build/io-xdr/io-xdr-min.js +1 -0
  818. package/build/io-xdr/io-xdr.js +318 -0
  819. package/build/json-parse/json-parse-debug.js +10 -0
  820. package/build/json-parse/json-parse-min.js +1 -0
  821. package/build/json-parse/json-parse.js +10 -0
  822. package/build/json-parse-shim/json-parse-shim-debug.js +183 -0
  823. package/build/json-parse-shim/json-parse-shim-min.js +1 -0
  824. package/build/json-parse-shim/json-parse-shim.js +183 -0
  825. package/build/json-stringify/json-stringify-debug.js +99 -0
  826. package/build/json-stringify/json-stringify-min.js +1 -0
  827. package/build/json-stringify/json-stringify.js +99 -0
  828. package/build/json-stringify-shim/json-stringify-shim-debug.js +233 -0
  829. package/build/json-stringify-shim/json-stringify-shim-min.js +1 -0
  830. package/build/json-stringify-shim/json-stringify-shim.js +233 -0
  831. package/build/jsonp/jsonp-debug.js +274 -0
  832. package/build/jsonp/jsonp-min.js +1 -0
  833. package/build/jsonp/jsonp.js +268 -0
  834. package/build/jsonp-url/jsonp-url-debug.js +133 -0
  835. package/build/jsonp-url/jsonp-url-min.js +1 -0
  836. package/build/jsonp-url/jsonp-url.js +133 -0
  837. package/build/lazy-model-list/lazy-model-list-debug.js +518 -0
  838. package/build/lazy-model-list/lazy-model-list-min.js +1 -0
  839. package/build/lazy-model-list/lazy-model-list.js +518 -0
  840. package/build/loader/loader-debug.js +6053 -0
  841. package/build/loader/loader-min.js +9 -0
  842. package/build/loader/loader.js +6010 -0
  843. package/build/loader-base/loader-base-debug.js +2955 -0
  844. package/build/loader-base/loader-base-min.js +4 -0
  845. package/build/loader-base/loader-base.js +2915 -0
  846. package/build/loader-pathogen-combohandler/loader-pathogen-combohandler-debug.js +320 -0
  847. package/build/loader-pathogen-combohandler/loader-pathogen-combohandler-min.js +1 -0
  848. package/build/loader-pathogen-combohandler/loader-pathogen-combohandler.js +316 -0
  849. package/build/loader-pathogen-encoder/loader-pathogen-encoder-debug.js +6373 -0
  850. package/build/loader-pathogen-encoder/loader-pathogen-encoder-min.js +10 -0
  851. package/build/loader-pathogen-encoder/loader-pathogen-encoder.js +6326 -0
  852. package/build/loader-rollup/loader-rollup-debug.js +102 -0
  853. package/build/loader-rollup/loader-rollup-min.js +1 -0
  854. package/build/loader-rollup/loader-rollup.js +99 -0
  855. package/build/loader-yui3/loader-yui3-debug.js +2995 -0
  856. package/build/loader-yui3/loader-yui3-min.js +6 -0
  857. package/build/loader-yui3/loader-yui3.js +2995 -0
  858. package/build/matrix/matrix-debug.js +932 -0
  859. package/build/matrix/matrix-min.js +2 -0
  860. package/build/matrix/matrix.js +932 -0
  861. package/build/model/model-debug.js +1008 -0
  862. package/build/model/model-min.js +1 -0
  863. package/build/model/model.js +1007 -0
  864. package/build/model-list/model-list-debug.js +1269 -0
  865. package/build/model-list/model-list-min.js +1 -0
  866. package/build/model-list/model-list.js +1269 -0
  867. package/build/model-sync-local/model-sync-local-debug.js +360 -0
  868. package/build/model-sync-local/model-sync-local-min.js +1 -0
  869. package/build/model-sync-local/model-sync-local.js +359 -0
  870. package/build/model-sync-rest/model-sync-rest-debug.js +733 -0
  871. package/build/model-sync-rest/model-sync-rest-min.js +1 -0
  872. package/build/model-sync-rest/model-sync-rest.js +733 -0
  873. package/build/node-base/node-base-debug.js +1003 -0
  874. package/build/node-base/node-base-min.js +1 -0
  875. package/build/node-base/node-base.js +1001 -0
  876. package/build/node-core/node-core-debug.js +1626 -0
  877. package/build/node-core/node-core-min.js +2 -0
  878. package/build/node-core/node-core.js +1622 -0
  879. package/build/node-event-delegate/node-event-delegate-debug.js +54 -0
  880. package/build/node-event-delegate/node-event-delegate-min.js +1 -0
  881. package/build/node-event-delegate/node-event-delegate.js +54 -0
  882. package/build/node-event-html5/node-event-html5-debug.js +52 -0
  883. package/build/node-event-html5/node-event-html5-min.js +1 -0
  884. package/build/node-event-html5/node-event-html5.js +52 -0
  885. package/build/node-event-simulate/node-event-simulate-debug.js +187 -0
  886. package/build/node-event-simulate/node-event-simulate-min.js +1 -0
  887. package/build/node-event-simulate/node-event-simulate.js +187 -0
  888. package/build/node-flick/assets/node-flick-core.css +8 -0
  889. package/build/node-flick/assets/skins/sam/node-flick-skin.css +1 -0
  890. package/build/node-flick/assets/skins/sam/node-flick.css +1 -0
  891. package/build/node-flick/node-flick-debug.js +524 -0
  892. package/build/node-flick/node-flick-min.js +1 -0
  893. package/build/node-flick/node-flick.js +523 -0
  894. package/build/node-focusmanager/node-focusmanager-debug.js +1073 -0
  895. package/build/node-focusmanager/node-focusmanager-min.js +1 -0
  896. package/build/node-focusmanager/node-focusmanager.js +1069 -0
  897. package/build/node-load/node-load-debug.js +65 -0
  898. package/build/node-load/node-load-min.js +1 -0
  899. package/build/node-load/node-load.js +65 -0
  900. package/build/node-menunav/assets/node-menunav-core.css +169 -0
  901. package/build/node-menunav/assets/skins/night/horizontal-menu-submenu-indicator.png +0 -0
  902. package/build/node-menunav/assets/skins/night/node-menunav-skin.css +312 -0
  903. package/build/node-menunav/assets/skins/night/node-menunav.css +1 -0
  904. package/build/node-menunav/assets/skins/night/vertical-menu-submenu-indicator.png +0 -0
  905. package/build/node-menunav/assets/skins/sam/horizontal-menu-submenu-indicator.png +0 -0
  906. package/build/node-menunav/assets/skins/sam/horizontal-menu-submenu-toggle.png +0 -0
  907. package/build/node-menunav/assets/skins/sam/node-menunav-skin.css +266 -0
  908. package/build/node-menunav/assets/skins/sam/node-menunav.css +1 -0
  909. package/build/node-menunav/assets/skins/sam/vertical-menu-submenu-indicator.png +0 -0
  910. package/build/node-menunav/node-menunav-debug.js +2189 -0
  911. package/build/node-menunav/node-menunav-min.js +2 -0
  912. package/build/node-menunav/node-menunav.js +2188 -0
  913. package/build/node-pluginhost/node-pluginhost-debug.js +91 -0
  914. package/build/node-pluginhost/node-pluginhost-min.js +1 -0
  915. package/build/node-pluginhost/node-pluginhost.js +91 -0
  916. package/build/node-screen/node-screen-debug.js +240 -0
  917. package/build/node-screen/node-screen-min.js +1 -0
  918. package/build/node-screen/node-screen.js +238 -0
  919. package/build/node-scroll-info/node-scroll-info-debug.js +656 -0
  920. package/build/node-scroll-info/node-scroll-info-min.js +1 -0
  921. package/build/node-scroll-info/node-scroll-info.js +656 -0
  922. package/build/node-style/node-style-debug.js +271 -0
  923. package/build/node-style/node-style-min.js +1 -0
  924. package/build/node-style/node-style.js +271 -0
  925. package/build/oop/oop-debug.js +432 -0
  926. package/build/oop/oop-min.js +1 -0
  927. package/build/oop/oop.js +432 -0
  928. package/build/overlay/assets/overlay-core.css +11 -0
  929. package/build/overlay/assets/skins/night/overlay-skin.css +175 -0
  930. package/build/overlay/assets/skins/night/overlay.css +1 -0
  931. package/build/overlay/assets/skins/sam/overlay-skin.css +0 -0
  932. package/build/overlay/assets/skins/sam/overlay.css +1 -0
  933. package/build/overlay/overlay-debug.js +39 -0
  934. package/build/overlay/overlay-min.js +1 -0
  935. package/build/overlay/overlay.js +39 -0
  936. package/build/paginator/paginator-debug.js +75 -0
  937. package/build/paginator/paginator-min.js +1 -0
  938. package/build/paginator/paginator.js +75 -0
  939. package/build/paginator-core/paginator-core-debug.js +146 -0
  940. package/build/paginator-core/paginator-core-min.js +1 -0
  941. package/build/paginator-core/paginator-core.js +146 -0
  942. package/build/paginator-url/paginator-url-debug.js +67 -0
  943. package/build/paginator-url/paginator-url-min.js +1 -0
  944. package/build/paginator-url/paginator-url.js +67 -0
  945. package/build/panel/assets/panel-core.css +22 -0
  946. package/build/panel/assets/skins/night/panel-skin.css +123 -0
  947. package/build/panel/assets/skins/night/panel.css +1 -0
  948. package/build/panel/assets/skins/night/sprite_icons.png +0 -0
  949. package/build/panel/assets/skins/sam/panel-skin.css +95 -0
  950. package/build/panel/assets/skins/sam/panel.css +1 -0
  951. package/build/panel/assets/skins/sam/sprite_icons.png +0 -0
  952. package/build/panel/panel-debug.js +112 -0
  953. package/build/panel/panel-min.js +1 -0
  954. package/build/panel/panel.js +112 -0
  955. package/build/parallel/parallel-debug.js +109 -0
  956. package/build/parallel/parallel-min.js +1 -0
  957. package/build/parallel/parallel.js +107 -0
  958. package/build/pjax/pjax-debug.js +170 -0
  959. package/build/pjax/pjax-min.js +1 -0
  960. package/build/pjax/pjax.js +170 -0
  961. package/build/pjax-base/pjax-base-debug.js +443 -0
  962. package/build/pjax-base/pjax-base-min.js +1 -0
  963. package/build/pjax-base/pjax-base.js +442 -0
  964. package/build/pjax-content/pjax-content-debug.js +281 -0
  965. package/build/pjax-content/pjax-content-min.js +1 -0
  966. package/build/pjax-content/pjax-content.js +281 -0
  967. package/build/pjax-plugin/pjax-plugin-debug.js +29 -0
  968. package/build/pjax-plugin/pjax-plugin-min.js +1 -0
  969. package/build/pjax-plugin/pjax-plugin.js +29 -0
  970. package/build/plugin/plugin-debug.js +265 -0
  971. package/build/plugin/plugin-min.js +1 -0
  972. package/build/plugin/plugin.js +263 -0
  973. package/build/pluginhost-base/pluginhost-base-debug.js +187 -0
  974. package/build/pluginhost-base/pluginhost-base-min.js +1 -0
  975. package/build/pluginhost-base/pluginhost-base.js +185 -0
  976. package/build/pluginhost-config/pluginhost-config-debug.js +130 -0
  977. package/build/pluginhost-config/pluginhost-config-min.js +1 -0
  978. package/build/pluginhost-config/pluginhost-config.js +130 -0
  979. package/build/promise/promise-debug.js +624 -0
  980. package/build/promise/promise-min.js +1 -0
  981. package/build/promise/promise.js +620 -0
  982. package/build/querystring-parse/querystring-parse-debug.js +162 -0
  983. package/build/querystring-parse/querystring-parse-min.js +1 -0
  984. package/build/querystring-parse/querystring-parse.js +162 -0
  985. package/build/querystring-parse-simple/querystring-parse-simple-debug.js +49 -0
  986. package/build/querystring-parse-simple/querystring-parse-simple-min.js +1 -0
  987. package/build/querystring-parse-simple/querystring-parse-simple.js +49 -0
  988. package/build/querystring-stringify/querystring-stringify-debug.js +111 -0
  989. package/build/querystring-stringify/querystring-stringify-min.js +1 -0
  990. package/build/querystring-stringify/querystring-stringify.js +106 -0
  991. package/build/querystring-stringify-simple/querystring-stringify-simple-debug.js +44 -0
  992. package/build/querystring-stringify-simple/querystring-stringify-simple-min.js +1 -0
  993. package/build/querystring-stringify-simple/querystring-stringify-simple.js +44 -0
  994. package/build/queue-promote/queue-promote-debug.js +53 -0
  995. package/build/queue-promote/queue-promote-min.js +1 -0
  996. package/build/queue-promote/queue-promote.js +53 -0
  997. package/build/range-slider/range-slider-debug.js +28 -0
  998. package/build/range-slider/range-slider-min.js +1 -0
  999. package/build/range-slider/range-slider.js +28 -0
  1000. package/build/recordset-base/recordset-base-debug.js +651 -0
  1001. package/build/recordset-base/recordset-base-min.js +1 -0
  1002. package/build/recordset-base/recordset-base.js +650 -0
  1003. package/build/recordset-filter/recordset-filter-debug.js +105 -0
  1004. package/build/recordset-filter/recordset-filter-min.js +1 -0
  1005. package/build/recordset-filter/recordset-filter.js +105 -0
  1006. package/build/recordset-indexer/recordset-indexer-debug.js +227 -0
  1007. package/build/recordset-indexer/recordset-indexer-min.js +1 -0
  1008. package/build/recordset-indexer/recordset-indexer.js +227 -0
  1009. package/build/recordset-sort/recordset-sort-debug.js +206 -0
  1010. package/build/recordset-sort/recordset-sort-min.js +1 -0
  1011. package/build/recordset-sort/recordset-sort.js +205 -0
  1012. package/build/resize-base/assets/resize-base-core.css +241 -0
  1013. package/build/resize-base/assets/skins/night/arrows.png +0 -0
  1014. package/build/resize-base/assets/skins/night/resize-base-skin.css +46 -0
  1015. package/build/resize-base/assets/skins/night/resize-base.css +1 -0
  1016. package/build/resize-base/assets/skins/sam/arrows.png +0 -0
  1017. package/build/resize-base/assets/skins/sam/resize-base-skin.css +46 -0
  1018. package/build/resize-base/assets/skins/sam/resize-base.css +1 -0
  1019. package/build/resize-base/resize-base-debug.js +1644 -0
  1020. package/build/resize-base/resize-base-min.js +2 -0
  1021. package/build/resize-base/resize-base.js +1643 -0
  1022. package/build/resize-constrain/resize-constrain-debug.js +455 -0
  1023. package/build/resize-constrain/resize-constrain-min.js +1 -0
  1024. package/build/resize-constrain/resize-constrain.js +455 -0
  1025. package/build/resize-plugin/resize-plugin-debug.js +208 -0
  1026. package/build/resize-plugin/resize-plugin-min.js +1 -0
  1027. package/build/resize-plugin/resize-plugin.js +208 -0
  1028. package/build/resize-proxy/resize-proxy-debug.js +166 -0
  1029. package/build/resize-proxy/resize-proxy-min.js +1 -0
  1030. package/build/resize-proxy/resize-proxy.js +166 -0
  1031. package/build/router/router-debug.js +1818 -0
  1032. package/build/router/router-min.js +2 -0
  1033. package/build/router/router.js +1810 -0
  1034. package/build/scrollview/scrollview-debug.js +21 -0
  1035. package/build/scrollview/scrollview-min.js +1 -0
  1036. package/build/scrollview/scrollview.js +21 -0
  1037. package/build/scrollview-base/assets/scrollview-base-core.css +14 -0
  1038. package/build/scrollview-base/assets/skins/night/scrollview-base-skin.css +0 -0
  1039. package/build/scrollview-base/assets/skins/night/scrollview-base.css +1 -0
  1040. package/build/scrollview-base/assets/skins/sam/scrollview-base-skin.css +3 -0
  1041. package/build/scrollview-base/assets/skins/sam/scrollview-base.css +1 -0
  1042. package/build/scrollview-base/scrollview-base-debug.js +1457 -0
  1043. package/build/scrollview-base/scrollview-base-min.js +2 -0
  1044. package/build/scrollview-base/scrollview-base.js +1457 -0
  1045. package/build/scrollview-base-ie/scrollview-base-ie-debug.js +55 -0
  1046. package/build/scrollview-base-ie/scrollview-base-ie-min.js +1 -0
  1047. package/build/scrollview-base-ie/scrollview-base-ie.js +55 -0
  1048. package/build/scrollview-list/assets/scrollview-list-core.css +0 -0
  1049. package/build/scrollview-list/assets/skins/night/scrollview-list-skin.css +57 -0
  1050. package/build/scrollview-list/assets/skins/night/scrollview-list.css +1 -0
  1051. package/build/scrollview-list/assets/skins/sam/scrollview-list-skin.css +37 -0
  1052. package/build/scrollview-list/assets/skins/sam/scrollview-list.css +1 -0
  1053. package/build/scrollview-list/scrollview-list-debug.js +130 -0
  1054. package/build/scrollview-list/scrollview-list-min.js +1 -0
  1055. package/build/scrollview-list/scrollview-list.js +130 -0
  1056. package/build/scrollview-paginator/scrollview-paginator-debug.js +746 -0
  1057. package/build/scrollview-paginator/scrollview-paginator-min.js +1 -0
  1058. package/build/scrollview-paginator/scrollview-paginator.js +746 -0
  1059. package/build/scrollview-scrollbars/assets/scrollview-scrollbars-core.css +95 -0
  1060. package/build/scrollview-scrollbars/assets/skins/night/scrollview-scrollbars-skin.css +96 -0
  1061. package/build/scrollview-scrollbars/assets/skins/night/scrollview-scrollbars.css +1 -0
  1062. package/build/scrollview-scrollbars/assets/skins/sam/scrollview-scrollbars-skin.css +90 -0
  1063. package/build/scrollview-scrollbars/assets/skins/sam/scrollview-scrollbars.css +1 -0
  1064. package/build/scrollview-scrollbars/scrollview-scrollbars-debug.js +563 -0
  1065. package/build/scrollview-scrollbars/scrollview-scrollbars-min.js +1 -0
  1066. package/build/scrollview-scrollbars/scrollview-scrollbars.js +563 -0
  1067. package/build/selector/selector-debug.js +5 -0
  1068. package/build/selector/selector-min.js +1 -0
  1069. package/build/selector/selector.js +5 -0
  1070. package/build/selector-css2/selector-css2-debug.js +460 -0
  1071. package/build/selector-css2/selector-css2-min.js +1 -0
  1072. package/build/selector-css2/selector-css2.js +459 -0
  1073. package/build/selector-css3/selector-css3-debug.js +152 -0
  1074. package/build/selector-css3/selector-css3-min.js +1 -0
  1075. package/build/selector-css3/selector-css3.js +152 -0
  1076. package/build/selector-native/selector-native-debug.js +405 -0
  1077. package/build/selector-native/selector-native-min.js +1 -0
  1078. package/build/selector-native/selector-native.js +400 -0
  1079. package/build/series-area/series-area-debug.js +103 -0
  1080. package/build/series-area/series-area-min.js +1 -0
  1081. package/build/series-area/series-area.js +103 -0
  1082. package/build/series-area-stacked/series-area-stacked-debug.js +60 -0
  1083. package/build/series-area-stacked/series-area-stacked-min.js +1 -0
  1084. package/build/series-area-stacked/series-area-stacked.js +60 -0
  1085. package/build/series-areaspline/series-areaspline-debug.js +63 -0
  1086. package/build/series-areaspline/series-areaspline-min.js +1 -0
  1087. package/build/series-areaspline/series-areaspline.js +63 -0
  1088. package/build/series-areaspline-stacked/series-areaspline-stacked-debug.js +50 -0
  1089. package/build/series-areaspline-stacked/series-areaspline-stacked-min.js +1 -0
  1090. package/build/series-areaspline-stacked/series-areaspline-stacked.js +50 -0
  1091. package/build/series-bar/series-bar-debug.js +169 -0
  1092. package/build/series-bar/series-bar-min.js +1 -0
  1093. package/build/series-bar/series-bar.js +169 -0
  1094. package/build/series-bar-stacked/series-bar-stacked-debug.js +364 -0
  1095. package/build/series-bar-stacked/series-bar-stacked-min.js +1 -0
  1096. package/build/series-bar-stacked/series-bar-stacked.js +364 -0
  1097. package/build/series-base/series-base-debug.js +408 -0
  1098. package/build/series-base/series-base-min.js +1 -0
  1099. package/build/series-base/series-base.js +408 -0
  1100. package/build/series-candlestick/series-candlestick-debug.js +314 -0
  1101. package/build/series-candlestick/series-candlestick-min.js +1 -0
  1102. package/build/series-candlestick/series-candlestick.js +314 -0
  1103. package/build/series-cartesian/series-cartesian-debug.js +947 -0
  1104. package/build/series-cartesian/series-cartesian-min.js +2 -0
  1105. package/build/series-cartesian/series-cartesian.js +947 -0
  1106. package/build/series-column/series-column-debug.js +160 -0
  1107. package/build/series-column/series-column-min.js +1 -0
  1108. package/build/series-column/series-column.js +160 -0
  1109. package/build/series-column-stacked/series-column-stacked-debug.js +351 -0
  1110. package/build/series-column-stacked/series-column-stacked-min.js +1 -0
  1111. package/build/series-column-stacked/series-column-stacked.js +351 -0
  1112. package/build/series-combo/series-combo-debug.js +283 -0
  1113. package/build/series-combo/series-combo-min.js +1 -0
  1114. package/build/series-combo/series-combo.js +283 -0
  1115. package/build/series-combo-stacked/series-combo-stacked-debug.js +86 -0
  1116. package/build/series-combo-stacked/series-combo-stacked-min.js +1 -0
  1117. package/build/series-combo-stacked/series-combo-stacked.js +86 -0
  1118. package/build/series-combospline/series-combospline-debug.js +60 -0
  1119. package/build/series-combospline/series-combospline-min.js +1 -0
  1120. package/build/series-combospline/series-combospline.js +60 -0
  1121. package/build/series-combospline-stacked/series-combospline-stacked-debug.js +72 -0
  1122. package/build/series-combospline-stacked/series-combospline-stacked-min.js +1 -0
  1123. package/build/series-combospline-stacked/series-combospline-stacked.js +72 -0
  1124. package/build/series-curve-util/series-curve-util-debug.js +135 -0
  1125. package/build/series-curve-util/series-curve-util-min.js +1 -0
  1126. package/build/series-curve-util/series-curve-util.js +135 -0
  1127. package/build/series-fill-util/series-fill-util-debug.js +517 -0
  1128. package/build/series-fill-util/series-fill-util-min.js +1 -0
  1129. package/build/series-fill-util/series-fill-util.js +517 -0
  1130. package/build/series-histogram-base/series-histogram-base-debug.js +245 -0
  1131. package/build/series-histogram-base/series-histogram-base-min.js +1 -0
  1132. package/build/series-histogram-base/series-histogram-base.js +245 -0
  1133. package/build/series-line/series-line-debug.js +113 -0
  1134. package/build/series-line/series-line-min.js +1 -0
  1135. package/build/series-line/series-line.js +113 -0
  1136. package/build/series-line-stacked/series-line-stacked-debug.js +49 -0
  1137. package/build/series-line-stacked/series-line-stacked-min.js +1 -0
  1138. package/build/series-line-stacked/series-line-stacked.js +49 -0
  1139. package/build/series-line-util/series-line-util-debug.js +287 -0
  1140. package/build/series-line-util/series-line-util-min.js +1 -0
  1141. package/build/series-line-util/series-line-util.js +287 -0
  1142. package/build/series-marker/series-marker-debug.js +89 -0
  1143. package/build/series-marker/series-marker-min.js +1 -0
  1144. package/build/series-marker/series-marker.js +89 -0
  1145. package/build/series-marker-stacked/series-marker-stacked-debug.js +50 -0
  1146. package/build/series-marker-stacked/series-marker-stacked-min.js +1 -0
  1147. package/build/series-marker-stacked/series-marker-stacked.js +50 -0
  1148. package/build/series-ohlc/series-ohlc-debug.js +237 -0
  1149. package/build/series-ohlc/series-ohlc-min.js +1 -0
  1150. package/build/series-ohlc/series-ohlc.js +237 -0
  1151. package/build/series-pie/series-pie-debug.js +724 -0
  1152. package/build/series-pie/series-pie-min.js +2 -0
  1153. package/build/series-pie/series-pie.js +724 -0
  1154. package/build/series-plot-util/series-plot-util-debug.js +552 -0
  1155. package/build/series-plot-util/series-plot-util-min.js +1 -0
  1156. package/build/series-plot-util/series-plot-util.js +552 -0
  1157. package/build/series-range/series-range-debug.js +132 -0
  1158. package/build/series-range/series-range-min.js +1 -0
  1159. package/build/series-range/series-range.js +132 -0
  1160. package/build/series-spline/series-spline-debug.js +82 -0
  1161. package/build/series-spline/series-spline-min.js +1 -0
  1162. package/build/series-spline/series-spline.js +82 -0
  1163. package/build/series-spline-stacked/series-spline-stacked-debug.js +50 -0
  1164. package/build/series-spline-stacked/series-spline-stacked-min.js +1 -0
  1165. package/build/series-spline-stacked/series-spline-stacked.js +50 -0
  1166. package/build/series-stacked/series-stacked-debug.js +356 -0
  1167. package/build/series-stacked/series-stacked-min.js +1 -0
  1168. package/build/series-stacked/series-stacked.js +356 -0
  1169. package/build/shim-plugin/shim-plugin-debug.js +106 -0
  1170. package/build/shim-plugin/shim-plugin-min.js +1 -0
  1171. package/build/shim-plugin/shim-plugin.js +106 -0
  1172. package/build/slider-base/assets/skins/audio/rail-x.png +0 -0
  1173. package/build/slider-base/assets/skins/audio/rail-y.png +0 -0
  1174. package/build/slider-base/assets/skins/audio/slider-base-skin.css +91 -0
  1175. package/build/slider-base/assets/skins/audio/slider-base.css +1 -0
  1176. package/build/slider-base/assets/skins/audio/slider-skin.css +91 -0
  1177. package/build/slider-base/assets/skins/audio/thumb-x.png +0 -0
  1178. package/build/slider-base/assets/skins/audio/thumb-y.png +0 -0
  1179. package/build/slider-base/assets/skins/audio-light/rail-x.png +0 -0
  1180. package/build/slider-base/assets/skins/audio-light/rail-y.png +0 -0
  1181. package/build/slider-base/assets/skins/audio-light/slider-base-skin.css +91 -0
  1182. package/build/slider-base/assets/skins/audio-light/slider-base.css +1 -0
  1183. package/build/slider-base/assets/skins/audio-light/slider-skin.css +91 -0
  1184. package/build/slider-base/assets/skins/audio-light/thumb-x.png +0 -0
  1185. package/build/slider-base/assets/skins/audio-light/thumb-y.png +0 -0
  1186. package/build/slider-base/assets/skins/capsule/rail-x-dots.png +0 -0
  1187. package/build/slider-base/assets/skins/capsule/rail-x-lines.png +0 -0
  1188. package/build/slider-base/assets/skins/capsule/rail-x.png +0 -0
  1189. package/build/slider-base/assets/skins/capsule/rail-y-dots.png +0 -0
  1190. package/build/slider-base/assets/skins/capsule/rail-y-lines.png +0 -0
  1191. package/build/slider-base/assets/skins/capsule/rail-y.png +0 -0
  1192. package/build/slider-base/assets/skins/capsule/slider-base-skin.css +93 -0
  1193. package/build/slider-base/assets/skins/capsule/slider-base.css +1 -0
  1194. package/build/slider-base/assets/skins/capsule/slider-skin.css +93 -0
  1195. package/build/slider-base/assets/skins/capsule/thumb-x-line.png +0 -0
  1196. package/build/slider-base/assets/skins/capsule/thumb-x.png +0 -0
  1197. package/build/slider-base/assets/skins/capsule/thumb-y-line.png +0 -0
  1198. package/build/slider-base/assets/skins/capsule/thumb-y-lines.png +0 -0
  1199. package/build/slider-base/assets/skins/capsule/thumb-y.png +0 -0
  1200. package/build/slider-base/assets/skins/capsule-dark/rail-x-dots.png +0 -0
  1201. package/build/slider-base/assets/skins/capsule-dark/rail-x-lines.png +0 -0
  1202. package/build/slider-base/assets/skins/capsule-dark/rail-x.png +0 -0
  1203. package/build/slider-base/assets/skins/capsule-dark/rail-y-dots.png +0 -0
  1204. package/build/slider-base/assets/skins/capsule-dark/rail-y-lines.png +0 -0
  1205. package/build/slider-base/assets/skins/capsule-dark/rail-y.png +0 -0
  1206. package/build/slider-base/assets/skins/capsule-dark/slider-base-skin.css +91 -0
  1207. package/build/slider-base/assets/skins/capsule-dark/slider-base.css +1 -0
  1208. package/build/slider-base/assets/skins/capsule-dark/slider-skin.css +91 -0
  1209. package/build/slider-base/assets/skins/capsule-dark/thumb-x-line.png +0 -0
  1210. package/build/slider-base/assets/skins/capsule-dark/thumb-x.png +0 -0
  1211. package/build/slider-base/assets/skins/capsule-dark/thumb-y-line.png +0 -0
  1212. package/build/slider-base/assets/skins/capsule-dark/thumb-y.png +0 -0
  1213. package/build/slider-base/assets/skins/night/rail-x-lines.png +0 -0
  1214. package/build/slider-base/assets/skins/night/rail-x.png +0 -0
  1215. package/build/slider-base/assets/skins/night/rail-y-lines.png +0 -0
  1216. package/build/slider-base/assets/skins/night/rail-y.png +0 -0
  1217. package/build/slider-base/assets/skins/night/slider-base-skin.css +87 -0
  1218. package/build/slider-base/assets/skins/night/slider-base.css +1 -0
  1219. package/build/slider-base/assets/skins/night/slider-skin.css +87 -0
  1220. package/build/slider-base/assets/skins/night/thumb-x.png +0 -0
  1221. package/build/slider-base/assets/skins/night/thumb-y.png +0 -0
  1222. package/build/slider-base/assets/skins/round/rail-x.png +0 -0
  1223. package/build/slider-base/assets/skins/round/rail-y.png +0 -0
  1224. package/build/slider-base/assets/skins/round/slider-base-skin.css +89 -0
  1225. package/build/slider-base/assets/skins/round/slider-base.css +1 -0
  1226. package/build/slider-base/assets/skins/round/slider-skin.css +89 -0
  1227. package/build/slider-base/assets/skins/round/thumb-x-grip.png +0 -0
  1228. package/build/slider-base/assets/skins/round/thumb-x.png +0 -0
  1229. package/build/slider-base/assets/skins/round/thumb-y-grip.png +0 -0
  1230. package/build/slider-base/assets/skins/round/thumb-y.png +0 -0
  1231. package/build/slider-base/assets/skins/round-dark/rail-x.png +0 -0
  1232. package/build/slider-base/assets/skins/round-dark/rail-y.png +0 -0
  1233. package/build/slider-base/assets/skins/round-dark/slider-base-skin.css +89 -0
  1234. package/build/slider-base/assets/skins/round-dark/slider-base.css +1 -0
  1235. package/build/slider-base/assets/skins/round-dark/slider-skin.css +89 -0
  1236. package/build/slider-base/assets/skins/round-dark/thumb-x-grip.png +0 -0
  1237. package/build/slider-base/assets/skins/round-dark/thumb-x.png +0 -0
  1238. package/build/slider-base/assets/skins/round-dark/thumb-y-grip.png +0 -0
  1239. package/build/slider-base/assets/skins/round-dark/thumb-y.png +0 -0
  1240. package/build/slider-base/assets/skins/sam/rail-x-lines.png +0 -0
  1241. package/build/slider-base/assets/skins/sam/rail-x.png +0 -0
  1242. package/build/slider-base/assets/skins/sam/rail-y-lines.png +0 -0
  1243. package/build/slider-base/assets/skins/sam/rail-y.png +0 -0
  1244. package/build/slider-base/assets/skins/sam/slider-base-skin.css +87 -0
  1245. package/build/slider-base/assets/skins/sam/slider-base.css +1 -0
  1246. package/build/slider-base/assets/skins/sam/slider-skin.css +87 -0
  1247. package/build/slider-base/assets/skins/sam/thumb-x.png +0 -0
  1248. package/build/slider-base/assets/skins/sam/thumb-y.png +0 -0
  1249. package/build/slider-base/assets/skins/sam-dark/rail-x-lines.png +0 -0
  1250. package/build/slider-base/assets/skins/sam-dark/rail-x.png +0 -0
  1251. package/build/slider-base/assets/skins/sam-dark/rail-y-lines.png +0 -0
  1252. package/build/slider-base/assets/skins/sam-dark/rail-y.png +0 -0
  1253. package/build/slider-base/assets/skins/sam-dark/slider-base-skin.css +87 -0
  1254. package/build/slider-base/assets/skins/sam-dark/slider-base.css +1 -0
  1255. package/build/slider-base/assets/skins/sam-dark/slider-skin.css +87 -0
  1256. package/build/slider-base/assets/skins/sam-dark/thumb-x.png +0 -0
  1257. package/build/slider-base/assets/skins/sam-dark/thumb-y.png +0 -0
  1258. package/build/slider-base/assets/slider-base-core.css +31 -0
  1259. package/build/slider-base/assets/slider-core.css +31 -0
  1260. package/build/slider-base/assets/thumb-x-oblong-dark.png +0 -0
  1261. package/build/slider-base/assets/thumb-x-oblong.png +0 -0
  1262. package/build/slider-base/assets/thumb-x-oblong2-dark.png +0 -0
  1263. package/build/slider-base/assets/thumb-x-oblong2.png +0 -0
  1264. package/build/slider-base/assets/thumb-y-oblong-dark.png +0 -0
  1265. package/build/slider-base/assets/thumb-y-oblong.png +0 -0
  1266. package/build/slider-base/assets/thumb-y-oblong2-dark.png +0 -0
  1267. package/build/slider-base/assets/thumb-y-oblong2.png +0 -0
  1268. package/build/slider-base/slider-base-debug.js +762 -0
  1269. package/build/slider-base/slider-base-min.js +1 -0
  1270. package/build/slider-base/slider-base.js +760 -0
  1271. package/build/slider-value-range/slider-value-range-debug.js +422 -0
  1272. package/build/slider-value-range/slider-value-range-min.js +1 -0
  1273. package/build/slider-value-range/slider-value-range.js +418 -0
  1274. package/build/sortable/sortable-debug.js +528 -0
  1275. package/build/sortable/sortable-min.js +1 -0
  1276. package/build/sortable/sortable.js +527 -0
  1277. package/build/sortable-scroll/sortable-scroll-debug.js +67 -0
  1278. package/build/sortable-scroll/sortable-scroll-min.js +1 -0
  1279. package/build/sortable-scroll/sortable-scroll.js +67 -0
  1280. package/build/stylesheet/stylesheet-debug.js +642 -0
  1281. package/build/stylesheet/stylesheet-min.js +1 -0
  1282. package/build/stylesheet/stylesheet.js +638 -0
  1283. package/build/substitute/substitute-debug.js +170 -0
  1284. package/build/substitute/substitute-min.js +1 -0
  1285. package/build/substitute/substitute.js +170 -0
  1286. package/build/swf/swf-debug.js +206 -0
  1287. package/build/swf/swf-min.js +1 -0
  1288. package/build/swf/swf.js +204 -0
  1289. package/build/swfdetect/swfdetect-debug.js +116 -0
  1290. package/build/swfdetect/swfdetect-min.js +1 -0
  1291. package/build/swfdetect/swfdetect.js +115 -0
  1292. package/build/tabview/assets/skins/night/tabview-skin.css +89 -0
  1293. package/build/tabview/assets/skins/night/tabview.css +1 -0
  1294. package/build/tabview/assets/skins/sam/tabview-skin.css +58 -0
  1295. package/build/tabview/assets/skins/sam/tabview.css +1 -0
  1296. package/build/tabview/assets/tabview-core.css +42 -0
  1297. package/build/tabview/tabview-debug.js +436 -0
  1298. package/build/tabview/tabview-min.js +1 -0
  1299. package/build/tabview/tabview.js +436 -0
  1300. package/build/tabview-base/tabview-base-debug.js +144 -0
  1301. package/build/tabview-base/tabview-base-min.js +1 -0
  1302. package/build/tabview-base/tabview-base.js +144 -0
  1303. package/build/tabview-plugin/tabview-plugin-debug.js +16 -0
  1304. package/build/tabview-plugin/tabview-plugin-min.js +1 -0
  1305. package/build/tabview-plugin/tabview-plugin.js +16 -0
  1306. package/build/template-base/template-base-debug.js +272 -0
  1307. package/build/template-base/template-base-min.js +1 -0
  1308. package/build/template-base/template-base.js +272 -0
  1309. package/build/template-micro/template-micro-debug.js +249 -0
  1310. package/build/template-micro/template-micro-min.js +1 -0
  1311. package/build/template-micro/template-micro.js +249 -0
  1312. package/build/test/test-debug.js +3869 -0
  1313. package/build/test/test-min.js +6 -0
  1314. package/build/test/test.js +3869 -0
  1315. package/build/test-console/assets/skins/sam/test-console-skin.css +58 -0
  1316. package/build/test-console/assets/skins/sam/test-console.css +1 -0
  1317. package/build/test-console/assets/test-console-core.css +8 -0
  1318. package/build/test-console/test-console-debug.js +307 -0
  1319. package/build/test-console/test-console-min.js +1 -0
  1320. package/build/test-console/test-console.js +307 -0
  1321. package/build/text-accentfold/text-accentfold-debug.js +162 -0
  1322. package/build/text-accentfold/text-accentfold-min.js +1 -0
  1323. package/build/text-accentfold/text-accentfold.js +162 -0
  1324. package/build/text-data-accentfold/text-data-accentfold-debug.js +46 -0
  1325. package/build/text-data-accentfold/text-data-accentfold-min.js +1 -0
  1326. package/build/text-data-accentfold/text-data-accentfold.js +46 -0
  1327. package/build/text-data-wordbreak/text-data-wordbreak-debug.js +29 -0
  1328. package/build/text-data-wordbreak/text-data-wordbreak-min.js +2 -0
  1329. package/build/text-data-wordbreak/text-data-wordbreak.js +29 -0
  1330. package/build/text-wordbreak/text-wordbreak-debug.js +363 -0
  1331. package/build/text-wordbreak/text-wordbreak-min.js +1 -0
  1332. package/build/text-wordbreak/text-wordbreak.js +362 -0
  1333. package/build/timers/timers-debug.js +314 -0
  1334. package/build/timers/timers-min.js +1 -0
  1335. package/build/timers/timers.js +314 -0
  1336. package/build/transition/transition-debug.js +760 -0
  1337. package/build/transition/transition-min.js +2 -0
  1338. package/build/transition/transition.js +758 -0
  1339. package/build/transition-timer/transition-timer-debug.js +334 -0
  1340. package/build/transition-timer/transition-timer-min.js +1 -0
  1341. package/build/transition-timer/transition-timer.js +334 -0
  1342. package/build/tree/tree-debug.js +940 -0
  1343. package/build/tree/tree-min.js +1 -0
  1344. package/build/tree/tree.js +940 -0
  1345. package/build/tree-labelable/tree-labelable-debug.js +79 -0
  1346. package/build/tree-labelable/tree-labelable-min.js +1 -0
  1347. package/build/tree-labelable/tree-labelable.js +79 -0
  1348. package/build/tree-lazy/tree-lazy-debug.js +176 -0
  1349. package/build/tree-lazy/tree-lazy-min.js +1 -0
  1350. package/build/tree-lazy/tree-lazy.js +175 -0
  1351. package/build/tree-node/tree-node-debug.js +555 -0
  1352. package/build/tree-node/tree-node-min.js +1 -0
  1353. package/build/tree-node/tree-node.js +555 -0
  1354. package/build/tree-openable/tree-openable-debug.js +241 -0
  1355. package/build/tree-openable/tree-openable-min.js +1 -0
  1356. package/build/tree-openable/tree-openable.js +241 -0
  1357. package/build/tree-selectable/tree-selectable-debug.js +289 -0
  1358. package/build/tree-selectable/tree-selectable-min.js +1 -0
  1359. package/build/tree-selectable/tree-selectable.js +289 -0
  1360. package/build/tree-sortable/tree-sortable-debug.js +377 -0
  1361. package/build/tree-sortable/tree-sortable-min.js +1 -0
  1362. package/build/tree-sortable/tree-sortable.js +377 -0
  1363. package/build/uploader/assets/uploader-flash-core.css +4 -0
  1364. package/build/uploader/uploader-debug.js +53 -0
  1365. package/build/uploader/uploader-min.js +1 -0
  1366. package/build/uploader/uploader.js +53 -0
  1367. package/build/uploader-flash/assets/uploader-flash-core.css +4 -0
  1368. package/build/uploader-flash/uploader-flash-debug.js +1612 -0
  1369. package/build/uploader-flash/uploader-flash-min.js +3 -0
  1370. package/build/uploader-flash/uploader-flash.js +1611 -0
  1371. package/build/uploader-html5/assets/uploader-flash-core.css +4 -0
  1372. package/build/uploader-html5/uploader-html5-debug.js +1006 -0
  1373. package/build/uploader-html5/uploader-html5-min.js +2 -0
  1374. package/build/uploader-html5/uploader-html5.js +1006 -0
  1375. package/build/uploader-queue/assets/uploader-flash-core.css +4 -0
  1376. package/build/uploader-queue/uploader-queue-debug.js +656 -0
  1377. package/build/uploader-queue/uploader-queue-min.js +1 -0
  1378. package/build/uploader-queue/uploader-queue.js +656 -0
  1379. package/build/view/view-debug.js +434 -0
  1380. package/build/view/view-min.js +1 -0
  1381. package/build/view/view.js +433 -0
  1382. package/build/view-node-map/view-node-map-debug.js +84 -0
  1383. package/build/view-node-map/view-node-map-min.js +1 -0
  1384. package/build/view-node-map/view-node-map.js +84 -0
  1385. package/build/widget-anim/widget-anim-debug.js +257 -0
  1386. package/build/widget-anim/widget-anim-min.js +1 -0
  1387. package/build/widget-anim/widget-anim.js +257 -0
  1388. package/build/widget-autohide/widget-autohide-debug.js +238 -0
  1389. package/build/widget-autohide/widget-autohide-min.js +1 -0
  1390. package/build/widget-autohide/widget-autohide.js +237 -0
  1391. package/build/widget-base/assets/skins/night/widget-base-skin.css +0 -0
  1392. package/build/widget-base/assets/skins/night/widget-base.css +1 -0
  1393. package/build/widget-base/assets/skins/sam/widget-base-skin.css +0 -0
  1394. package/build/widget-base/assets/skins/sam/widget-base.css +1 -0
  1395. package/build/widget-base/assets/widget-base-core.css +20 -0
  1396. package/build/widget-base/widget-base-debug.js +1293 -0
  1397. package/build/widget-base/widget-base-min.js +2 -0
  1398. package/build/widget-base/widget-base.js +1289 -0
  1399. package/build/widget-base-ie/widget-base-ie-debug.js +49 -0
  1400. package/build/widget-base-ie/widget-base-ie-min.js +1 -0
  1401. package/build/widget-base-ie/widget-base-ie.js +49 -0
  1402. package/build/widget-buttons/widget-buttons-debug.js +1294 -0
  1403. package/build/widget-buttons/widget-buttons-min.js +2 -0
  1404. package/build/widget-buttons/widget-buttons.js +1294 -0
  1405. package/build/widget-child/widget-child-debug.js +377 -0
  1406. package/build/widget-child/widget-child-min.js +1 -0
  1407. package/build/widget-child/widget-child.js +377 -0
  1408. package/build/widget-htmlparser/widget-htmlparser-debug.js +215 -0
  1409. package/build/widget-htmlparser/widget-htmlparser-min.js +1 -0
  1410. package/build/widget-htmlparser/widget-htmlparser.js +215 -0
  1411. package/build/widget-modality/assets/skins/night/widget-modality-skin.css +7 -0
  1412. package/build/widget-modality/assets/skins/night/widget-modality.css +1 -0
  1413. package/build/widget-modality/assets/skins/sam/widget-modality-skin.css +7 -0
  1414. package/build/widget-modality/assets/skins/sam/widget-modality.css +1 -0
  1415. package/build/widget-modality/assets/widget-modality-core.css +1 -0
  1416. package/build/widget-modality/widget-modality-debug.js +566 -0
  1417. package/build/widget-modality/widget-modality-min.js +3 -0
  1418. package/build/widget-modality/widget-modality.js +565 -0
  1419. package/build/widget-parent/widget-parent-debug.js +866 -0
  1420. package/build/widget-parent/widget-parent-min.js +1 -0
  1421. package/build/widget-parent/widget-parent.js +865 -0
  1422. package/build/widget-position/widget-position-debug.js +276 -0
  1423. package/build/widget-position/widget-position-min.js +1 -0
  1424. package/build/widget-position/widget-position.js +276 -0
  1425. package/build/widget-position-align/widget-position-align-debug.js +656 -0
  1426. package/build/widget-position-align/widget-position-align-min.js +1 -0
  1427. package/build/widget-position-align/widget-position-align.js +652 -0
  1428. package/build/widget-position-constrain/widget-position-constrain-debug.js +348 -0
  1429. package/build/widget-position-constrain/widget-position-constrain-min.js +1 -0
  1430. package/build/widget-position-constrain/widget-position-constrain.js +348 -0
  1431. package/build/widget-skin/widget-skin-debug.js +59 -0
  1432. package/build/widget-skin/widget-skin-min.js +1 -0
  1433. package/build/widget-skin/widget-skin.js +59 -0
  1434. package/build/widget-stack/assets/skins/night/widget-stack-skin.css +0 -0
  1435. package/build/widget-stack/assets/skins/night/widget-stack.css +1 -0
  1436. package/build/widget-stack/assets/skins/sam/widget-stack-skin.css +0 -0
  1437. package/build/widget-stack/assets/skins/sam/widget-stack.css +1 -0
  1438. package/build/widget-stack/assets/widget-stack-core.css +19 -0
  1439. package/build/widget-stack/widget-stack-debug.js +440 -0
  1440. package/build/widget-stack/widget-stack-min.js +1 -0
  1441. package/build/widget-stack/widget-stack.js +440 -0
  1442. package/build/widget-stdmod/widget-stdmod-debug.js +780 -0
  1443. package/build/widget-stdmod/widget-stdmod-min.js +1 -0
  1444. package/build/widget-stdmod/widget-stdmod.js +780 -0
  1445. package/build/widget-uievents/widget-uievents-debug.js +227 -0
  1446. package/build/widget-uievents/widget-uievents-min.js +1 -0
  1447. package/build/widget-uievents/widget-uievents.js +226 -0
  1448. package/build/yql/yql-debug.js +168 -0
  1449. package/build/yql/yql-min.js +1 -0
  1450. package/build/yql/yql.js +167 -0
  1451. package/build/yql-jsonp/yql-jsonp-debug.js +29 -0
  1452. package/build/yql-jsonp/yql-jsonp-min.js +1 -0
  1453. package/build/yql-jsonp/yql-jsonp.js +29 -0
  1454. package/build/yql-nodejs/yql-nodejs-debug.js +33 -0
  1455. package/build/yql-nodejs/yql-nodejs-min.js +22 -0
  1456. package/build/yql-nodejs/yql-nodejs.js +33 -0
  1457. package/build/yql-winjs/yql-winjs-debug.js +34 -0
  1458. package/build/yql-winjs/yql-winjs-min.js +1 -0
  1459. package/build/yql-winjs/yql-winjs.js +34 -0
  1460. package/build/yui/yui-debug.js +12330 -0
  1461. package/build/yui/yui-min.js +16 -0
  1462. package/build/yui/yui.js +12022 -0
  1463. package/build/yui-base/yui-base-debug.js +6254 -0
  1464. package/build/yui-base/yui-base-min.js +7 -0
  1465. package/build/yui-base/yui-base.js +5989 -0
  1466. package/build/yui-core/yui-core-debug.js +4264 -0
  1467. package/build/yui-core/yui-core-min.js +5 -0
  1468. package/build/yui-core/yui-core.js +4017 -0
  1469. package/build/yui-later/yui-later-debug.js +78 -0
  1470. package/build/yui-later/yui-later-min.js +1 -0
  1471. package/build/yui-later/yui-later.js +78 -0
  1472. package/build/yui-log/yui-log-debug.js +125 -0
  1473. package/build/yui-log/yui-log-min.js +1 -0
  1474. package/build/yui-log/yui-log.js +125 -0
  1475. package/build/yui-log-nodejs/yui-log-nodejs-debug.js +81 -0
  1476. package/build/yui-log-nodejs/yui-log-nodejs-min.js +1 -0
  1477. package/build/yui-log-nodejs/yui-log-nodejs.js +81 -0
  1478. package/build/yui-nodejs/yui-nodejs-debug.js +11418 -0
  1479. package/build/yui-nodejs/yui-nodejs-min.js +15 -0
  1480. package/build/yui-nodejs/yui-nodejs.js +10969 -0
  1481. package/build/yui-throttle/yui-throttle-debug.js +54 -0
  1482. package/build/yui-throttle/yui-throttle-min.js +3 -0
  1483. package/build/yui-throttle/yui-throttle.js +54 -0
  1484. package/index.js +3 -0
  1485. package/package.json +36 -0
@@ -0,0 +1,2915 @@
1
+ YUI.add('loader-base', function (Y, NAME) {
2
+
3
+ /**
4
+ * The YUI loader core
5
+ * @module loader
6
+ * @submodule loader-base
7
+ */
8
+
9
+ (function() {
10
+ var VERSION = Y.version,
11
+ BUILD = '/build/',
12
+ ROOT = VERSION + '/',
13
+ CDN_BASE = Y.Env.base,
14
+ GALLERY_VERSION = 'gallery-2014.07.31-18-26',
15
+ TNT = '2in3',
16
+ TNT_VERSION = '4',
17
+ YUI2_VERSION = '2.9.0',
18
+ COMBO_BASE = CDN_BASE + 'combo?',
19
+ META = {
20
+ version: VERSION,
21
+ root: ROOT,
22
+ base: Y.Env.base,
23
+ comboBase: COMBO_BASE,
24
+ skin: {
25
+ defaultSkin: 'sam',
26
+ base: 'assets/skins/',
27
+ path: 'skin.css',
28
+ after: [
29
+ 'cssreset',
30
+ 'cssfonts',
31
+ 'cssgrids',
32
+ 'cssbase',
33
+ 'cssreset-context',
34
+ 'cssfonts-context'
35
+ ]
36
+ },
37
+ groups: {},
38
+ patterns: {}
39
+ },
40
+ groups = META.groups,
41
+ yui2Update = function(tnt, yui2, config) {
42
+ var root = TNT + '.' +
43
+ (tnt || TNT_VERSION) + '/' +
44
+ (yui2 || YUI2_VERSION) + BUILD,
45
+ base = (config && config.base) ? config.base : CDN_BASE,
46
+ combo = (config && config.comboBase) ? config.comboBase : COMBO_BASE;
47
+
48
+ groups.yui2.base = base + root;
49
+ groups.yui2.root = root;
50
+ groups.yui2.comboBase = combo;
51
+ },
52
+ galleryUpdate = function(tag, config) {
53
+ var root = (tag || GALLERY_VERSION) + BUILD,
54
+ base = (config && config.base) ? config.base : CDN_BASE,
55
+ combo = (config && config.comboBase) ? config.comboBase : COMBO_BASE;
56
+
57
+ groups.gallery.base = base + root;
58
+ groups.gallery.root = root;
59
+ groups.gallery.comboBase = combo;
60
+ };
61
+
62
+
63
+ groups[VERSION] = {};
64
+
65
+ groups.gallery = {
66
+ ext: false,
67
+ combine: true,
68
+ comboBase: COMBO_BASE,
69
+ update: galleryUpdate,
70
+ patterns: {
71
+ 'gallery-': {},
72
+ 'lang/gallery-': {},
73
+ 'gallerycss-': {
74
+ type: 'css'
75
+ }
76
+ }
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
+ if (YUI.Env[VERSION]) {
104
+ Y.mix(META, YUI.Env[VERSION], false, [
105
+ 'modules',
106
+ 'groups',
107
+ 'skin'
108
+ ], 0, true);
109
+ }
110
+
111
+ YUI.Env[VERSION] = META;
112
+ }());
113
+ /*jslint forin: true, maxlen: 350 */
114
+
115
+ /**
116
+ * Loader dynamically loads script and css files. It includes the dependency
117
+ * information for the version of the library in use, and will automatically pull in
118
+ * dependencies for the modules requested. It can also load the
119
+ * files from the Yahoo! CDN, and it can utilize the combo service provided on
120
+ * this network to reduce the number of http connections required to download
121
+ * YUI files.
122
+ *
123
+ * @module loader
124
+ * @main loader
125
+ * @submodule loader-base
126
+ */
127
+
128
+ var NOT_FOUND = {},
129
+ NO_REQUIREMENTS = [],
130
+ MAX_URL_LENGTH = 1024,
131
+ GLOBAL_ENV = YUI.Env,
132
+ GLOBAL_LOADED = GLOBAL_ENV._loaded,
133
+ CSS = 'css',
134
+ JS = 'js',
135
+ INTL = 'intl',
136
+ DEFAULT_SKIN = 'sam',
137
+ VERSION = Y.version,
138
+ ROOT_LANG = '',
139
+ YObject = Y.Object,
140
+ oeach = YObject.each,
141
+ yArray = Y.Array,
142
+ _queue = GLOBAL_ENV._loaderQueue,
143
+ META = GLOBAL_ENV[VERSION],
144
+ SKIN_PREFIX = 'skin-',
145
+ L = Y.Lang,
146
+ ON_PAGE = GLOBAL_ENV.mods,
147
+ modulekey,
148
+ _path = function(dir, file, type, nomin) {
149
+ var path = dir + '/' + file;
150
+ if (!nomin) {
151
+ path += '-min';
152
+ }
153
+ path += '.' + (type || CSS);
154
+
155
+ return path;
156
+ };
157
+
158
+
159
+ if (!YUI.Env._cssLoaded) {
160
+ YUI.Env._cssLoaded = {};
161
+ }
162
+
163
+
164
+ /**
165
+ * The component metadata is stored in Y.Env.meta.
166
+ * Part of the loader module.
167
+ * @property meta
168
+ * @for YUI
169
+ */
170
+ Y.Env.meta = META;
171
+
172
+ /**
173
+ * Loader dynamically loads script and css files. It includes the dependency
174
+ * info for the version of the library in use, and will automatically pull in
175
+ * dependencies for the modules requested. It can load the
176
+ * files from the Yahoo! CDN, and it can utilize the combo service provided on
177
+ * this network to reduce the number of http connections required to download
178
+ * YUI files. You can also specify an external, custom combo service to host
179
+ * your modules as well.
180
+
181
+ var Y = YUI();
182
+ var loader = new Y.Loader({
183
+ filter: 'debug',
184
+ base: '../../',
185
+ root: 'build/',
186
+ combine: true,
187
+ require: ['node', 'dd', 'console']
188
+ });
189
+ var out = loader.resolve(true);
190
+
191
+ * If the Loader needs to be patched before it is used for the first time, it
192
+ * should be done through the `doBeforeLoader` hook. Simply make the patch
193
+ * available via configuration before YUI is loaded:
194
+
195
+ YUI_config = YUI_config || {};
196
+ YUI_config.doBeforeLoader = function (config) {
197
+ var resolve = this.context.Loader.prototype.resolve;
198
+ this.context.Loader.prototype.resolve = function () {
199
+ // do something here
200
+ return resolve.apply(this, arguments);
201
+ };
202
+ };
203
+
204
+ * @constructor
205
+ * @class Loader
206
+ * @param {Object} config an optional set of configuration options.
207
+ * @param {String} config.base The base dir which to fetch this module from
208
+ * @param {String} config.comboBase The Combo service base path. Ex: `http://yui.yahooapis.com/combo?`
209
+ * @param {String} config.root The root path to prepend to module names for the combo service. Ex: `2.5.2/build/`
210
+ * @param {String|Object} config.filter A filter to apply to result urls. <a href="#property_filter">See filter property</a>
211
+ * @param {Object} config.filters Per-component filter specification. If specified for a given component, this overrides the filter config.
212
+ * @param {Boolean} config.combine Use a combo service to reduce the number of http connections required to load your dependencies
213
+ * @param {Boolean} [config.async=true] Fetch files in async
214
+ * @param {Array} config.ignore: A list of modules that should never be dynamically loaded
215
+ * @param {Array} config.force A list of modules that should always be loaded when required, even if already present on the page
216
+ * @param {HTMLElement|String} config.insertBefore Node or id for a node that should be used as the insertion point for new nodes
217
+ * @param {Object} config.jsAttributes Object literal containing attributes to add to script nodes
218
+ * @param {Object} config.cssAttributes Object literal containing attributes to add to link nodes
219
+ * @param {Number} config.timeout The number of milliseconds before a timeout occurs when dynamically loading nodes. If not set, there is no timeout
220
+ * @param {Object} config.context Execution context for all callbacks
221
+ * @param {Function} config.onSuccess Callback for the 'success' event
222
+ * @param {Function} config.onFailure Callback for the 'failure' event
223
+ * @param {Function} config.onTimeout Callback for the 'timeout' event
224
+ * @param {Function} config.onProgress Callback executed each time a script or css file is loaded
225
+ * @param {Object} config.modules A list of module definitions. See <a href="#method_addModule">Loader.addModule</a> for the supported module metadata
226
+ * @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`.
227
+ * @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.
228
+ * @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.
229
+ * @param {Function} config.doBeforeLoader An optional hook that allows for the patching of the loader instance. The `Y` instance is available as `this.context` and the only argument to the function is the Loader configuration object.
230
+ */
231
+ Y.Loader = function(o) {
232
+
233
+ var self = this;
234
+
235
+ //Catch no config passed.
236
+ o = o || {};
237
+
238
+ modulekey = META.md5;
239
+
240
+ /**
241
+ * Internal callback to handle multiple internal insert() calls
242
+ * so that css is inserted prior to js
243
+ * @property _internalCallback
244
+ * @private
245
+ */
246
+ // self._internalCallback = null;
247
+
248
+ /**
249
+ * Callback that will be executed when the loader is finished
250
+ * with an insert
251
+ * @method onSuccess
252
+ * @type function
253
+ */
254
+ // self.onSuccess = null;
255
+
256
+ /**
257
+ * Callback that will be executed if there is a failure
258
+ * @method onFailure
259
+ * @type function
260
+ */
261
+ // self.onFailure = null;
262
+
263
+ /**
264
+ * Callback executed each time a script or css file is loaded
265
+ * @method onProgress
266
+ * @type function
267
+ */
268
+ // self.onProgress = null;
269
+
270
+ /**
271
+ * Callback that will be executed if a timeout occurs
272
+ * @method onTimeout
273
+ * @type function
274
+ */
275
+ // self.onTimeout = null;
276
+
277
+ /**
278
+ * The execution context for all callbacks
279
+ * @property context
280
+ * @default {YUI} the YUI instance
281
+ */
282
+ self.context = Y;
283
+
284
+ // Hook that allows the patching of loader
285
+ if (o.doBeforeLoader) {
286
+ o.doBeforeLoader.apply(self, arguments);
287
+ }
288
+
289
+ /**
290
+ * Data that is passed to all callbacks
291
+ * @property data
292
+ */
293
+ // self.data = null;
294
+
295
+ /**
296
+ * Node reference or id where new nodes should be inserted before
297
+ * @property insertBefore
298
+ * @type string|HTMLElement
299
+ */
300
+ // self.insertBefore = null;
301
+
302
+ /**
303
+ * The charset attribute for inserted nodes
304
+ * @property charset
305
+ * @type string
306
+ * @deprecated , use cssAttributes or jsAttributes.
307
+ */
308
+ // self.charset = null;
309
+
310
+ /**
311
+ * An object literal containing attributes to add to link nodes
312
+ * @property cssAttributes
313
+ * @type object
314
+ */
315
+ // self.cssAttributes = null;
316
+
317
+ /**
318
+ * An object literal containing attributes to add to script nodes
319
+ * @property jsAttributes
320
+ * @type object
321
+ */
322
+ // self.jsAttributes = null;
323
+
324
+ /**
325
+ * The base directory.
326
+ * @property base
327
+ * @type string
328
+ * @default http://yui.yahooapis.com/[YUI VERSION]/build/
329
+ */
330
+ self.base = Y.Env.meta.base + Y.Env.meta.root;
331
+
332
+ /**
333
+ * Base path for the combo service
334
+ * @property comboBase
335
+ * @type string
336
+ * @default http://yui.yahooapis.com/combo?
337
+ */
338
+ self.comboBase = Y.Env.meta.comboBase;
339
+
340
+ /*
341
+ * Base path for language packs.
342
+ */
343
+ // self.langBase = Y.Env.meta.langBase;
344
+ // self.lang = "";
345
+
346
+ /**
347
+ * If configured, the loader will attempt to use the combo
348
+ * service for YUI resources and configured external resources.
349
+ * @property combine
350
+ * @type boolean
351
+ * @default true if a base dir isn't in the config
352
+ */
353
+ self.combine = o.base &&
354
+ (o.base.indexOf(self.comboBase.substr(0, 20)) > -1);
355
+
356
+ /**
357
+ * The default seperator to use between files in a combo URL
358
+ * @property comboSep
359
+ * @type {String}
360
+ * @default Ampersand
361
+ */
362
+ self.comboSep = '&';
363
+ /**
364
+ * Max url length for combo urls. The default is 1024. This is the URL
365
+ * limit for the Yahoo! hosted combo servers. If consuming
366
+ * a different combo service that has a different URL limit
367
+ * it is possible to override this default by supplying
368
+ * the maxURLLength config option. The config option will
369
+ * only take effect if lower than the default.
370
+ *
371
+ * @property maxURLLength
372
+ * @type int
373
+ */
374
+ self.maxURLLength = MAX_URL_LENGTH;
375
+
376
+ /**
377
+ * Ignore modules registered on the YUI global
378
+ * @property ignoreRegistered
379
+ * @default false
380
+ */
381
+ self.ignoreRegistered = o.ignoreRegistered;
382
+
383
+ /**
384
+ * Root path to prepend to module path for the combo
385
+ * service
386
+ * @property root
387
+ * @type string
388
+ * @default [YUI VERSION]/build/
389
+ */
390
+ self.root = Y.Env.meta.root;
391
+
392
+ /**
393
+ * Timeout value in milliseconds. If set, self value will be used by
394
+ * the get utility. the timeout event will fire if
395
+ * a timeout occurs.
396
+ * @property timeout
397
+ * @type int
398
+ */
399
+ self.timeout = 0;
400
+
401
+ /**
402
+ * A list of modules that should not be loaded, even if
403
+ * they turn up in the dependency tree
404
+ * @property ignore
405
+ * @type string[]
406
+ */
407
+ // self.ignore = null;
408
+
409
+ /**
410
+ * A list of modules that should always be loaded, even
411
+ * if they have already been inserted into the page.
412
+ * @property force
413
+ * @type string[]
414
+ */
415
+ // self.force = null;
416
+
417
+ self.forceMap = {};
418
+
419
+ /**
420
+ * Should we allow rollups
421
+ * @property allowRollup
422
+ * @type boolean
423
+ * @default false
424
+ */
425
+ self.allowRollup = false;
426
+
427
+ /**
428
+ * A filter to apply to result urls. This filter will modify the default
429
+ * path for all modules. The default path for the YUI library is the
430
+ * minified version of the files (e.g., event-min.js). The filter property
431
+ * can be a predefined filter or a custom filter. The valid predefined
432
+ * filters are:
433
+ * <dl>
434
+ * <dt>DEBUG</dt>
435
+ * <dd>Selects the debug versions of the library (e.g., event-debug.js).
436
+ * This option will automatically include the Logger widget</dd>
437
+ * <dt>RAW</dt>
438
+ * <dd>Selects the non-minified version of the library (e.g., event.js).
439
+ * </dd>
440
+ * </dl>
441
+ * You can also define a custom filter, which must be an object literal
442
+ * containing a search expression and a replace string:
443
+ *
444
+ * myFilter: {
445
+ * 'searchExp': "-min\\.js",
446
+ * 'replaceStr': "-debug.js"
447
+ * }
448
+ *
449
+ * @property filter
450
+ * @type string| {searchExp: string, replaceStr: string}
451
+ */
452
+ // self.filter = null;
453
+
454
+ /**
455
+ * per-component filter specification. If specified for a given
456
+ * component, this overrides the filter config.
457
+ * @property filters
458
+ * @type object
459
+ */
460
+ self.filters = {};
461
+
462
+ /**
463
+ * The list of requested modules
464
+ * @property required
465
+ * @type {string: boolean}
466
+ */
467
+ self.required = {};
468
+
469
+ /**
470
+ * If a module name is predefined when requested, it is checked againsts
471
+ * the patterns provided in this property. If there is a match, the
472
+ * module is added with the default configuration.
473
+ *
474
+ * At the moment only supporting module prefixes, but anticipate
475
+ * supporting at least regular expressions.
476
+ * @property patterns
477
+ * @type Object
478
+ */
479
+ // self.patterns = Y.merge(Y.Env.meta.patterns);
480
+ self.patterns = {};
481
+
482
+ /**
483
+ * Internal loader instance metadata. Use accessor `getModuleInfo()` instead.
484
+ */
485
+ self.moduleInfo = {};
486
+
487
+ self.groups = Y.merge(Y.Env.meta.groups);
488
+
489
+ /**
490
+ * Provides the information used to skin the skinnable components.
491
+ * The following skin definition would result in 'skin1' and 'skin2'
492
+ * being loaded for calendar (if calendar was requested), and
493
+ * 'sam' for all other skinnable components:
494
+ *
495
+ * skin: {
496
+ * // The default skin, which is automatically applied if not
497
+ * // overriden by a component-specific skin definition.
498
+ * // Change this in to apply a different skin globally
499
+ * defaultSkin: 'sam',
500
+ *
501
+ * // This is combined with the loader base property to get
502
+ * // the default root directory for a skin. ex:
503
+ * // http://yui.yahooapis.com/2.3.0/build/assets/skins/sam/
504
+ * base: 'assets/skins/',
505
+ *
506
+ * // Any component-specific overrides can be specified here,
507
+ * // making it possible to load different skins for different
508
+ * // components. It is possible to load more than one skin
509
+ * // for a given component as well.
510
+ * overrides: {
511
+ * calendar: ['skin1', 'skin2']
512
+ * }
513
+ * }
514
+ * @property skin
515
+ * @type {Object}
516
+ */
517
+ self.skin = Y.merge(Y.Env.meta.skin);
518
+
519
+ /*
520
+ * Map of conditional modules
521
+ * @since 3.2.0
522
+ */
523
+ self.conditions = {};
524
+
525
+ // map of modules with a hash of modules that meet the requirement
526
+ // self.provides = {};
527
+
528
+ self.config = o;
529
+ self._internal = true;
530
+
531
+ self._populateConditionsCache();
532
+
533
+ /**
534
+ * Set when beginning to compute the dependency tree.
535
+ * Composed of what YUI reports to be loaded combined
536
+ * with what has been loaded by any instance on the page
537
+ * with the version number specified in the metadata.
538
+ * @property loaded
539
+ * @type {string: boolean}
540
+ */
541
+ self.loaded = GLOBAL_LOADED[VERSION];
542
+
543
+
544
+ /**
545
+ * Should Loader fetch scripts in `async`, defaults to `true`
546
+ * @property async
547
+ */
548
+
549
+ self.async = true;
550
+
551
+ self._inspectPage();
552
+
553
+ self._internal = false;
554
+
555
+ self._config(o);
556
+
557
+ self.forceMap = (self.force) ? Y.Array.hash(self.force) : {};
558
+
559
+ self.testresults = null;
560
+
561
+ if (Y.config.tests) {
562
+ self.testresults = Y.config.tests;
563
+ }
564
+
565
+ /**
566
+ * List of rollup files found in the library metadata
567
+ * @property rollups
568
+ */
569
+ // self.rollups = null;
570
+
571
+ /**
572
+ * Whether or not to load optional dependencies for
573
+ * the requested modules
574
+ * @property loadOptional
575
+ * @type boolean
576
+ * @default false
577
+ */
578
+ // self.loadOptional = false;
579
+
580
+ /**
581
+ * All of the derived dependencies in sorted order, which
582
+ * will be populated when either calculate() or insert()
583
+ * is called
584
+ * @property sorted
585
+ * @type string[]
586
+ */
587
+ self.sorted = [];
588
+
589
+ /*
590
+ * A list of modules to attach to the YUI instance when complete.
591
+ * If not supplied, the sorted list of dependencies are applied.
592
+ * @property attaching
593
+ */
594
+ // self.attaching = null;
595
+
596
+ /**
597
+ * Flag to indicate the dependency tree needs to be recomputed
598
+ * if insert is called again.
599
+ * @property dirty
600
+ * @type boolean
601
+ * @default true
602
+ */
603
+ self.dirty = true;
604
+
605
+ /**
606
+ * List of modules inserted by the utility
607
+ * @property inserted
608
+ * @type {string: boolean}
609
+ */
610
+ self.inserted = {};
611
+
612
+ /**
613
+ * List of skipped modules during insert() because the module
614
+ * was not defined
615
+ * @property skipped
616
+ */
617
+ self.skipped = {};
618
+
619
+ // Y.on('yui:load', self.loadNext, self);
620
+
621
+ self.tested = {};
622
+
623
+ /*
624
+ * Cached sorted calculate results
625
+ * @property results
626
+ * @since 3.2.0
627
+ */
628
+ //self.results = {};
629
+
630
+ if (self.ignoreRegistered) {
631
+ //Clear inpage already processed modules.
632
+ self._resetModules();
633
+ }
634
+
635
+ };
636
+
637
+ Y.Loader.prototype = {
638
+ /**
639
+ * Gets the module info from the local moduleInfo hash, or from the
640
+ * default metadata and populate the local moduleInfo hash.
641
+ * @method getModuleInfo
642
+ * @param {string} name of the module
643
+ * @public
644
+ */
645
+ getModuleInfo: function(name) {
646
+
647
+ var m = this.moduleInfo[name],
648
+ rawMetaModules, globalRenderedMods, internal, v;
649
+
650
+ if (m) {
651
+ return m;
652
+ }
653
+
654
+ rawMetaModules = META.modules;
655
+ globalRenderedMods = GLOBAL_ENV._renderedMods;
656
+ internal = this._internal;
657
+
658
+ /*
659
+ The logic here is:
660
+
661
+ - if the `moduleInfo[name]` is avilable,
662
+ then short circuit
663
+ - otherwise, if the module is in the globalCache (cross Y instance),
664
+ then port it from the global registry into `moduleInfo[name]`
665
+ - otherwise, if the module has raw metadata (from meta modules)
666
+ then add it to the global registry and to `moduleInfo[name]`
667
+
668
+ */
669
+ if (globalRenderedMods && globalRenderedMods.hasOwnProperty(name) && !this.ignoreRegistered) {
670
+ this.moduleInfo[name] = Y.merge(globalRenderedMods[name]);
671
+ } else {
672
+ if (rawMetaModules.hasOwnProperty(name)) {
673
+ this._internal = true; // making sure that modules from raw data are marked as internal
674
+ v = this.addModule(rawMetaModules[name], name);
675
+ // Inspect the page for the CSS module and mark it as loaded.
676
+ if (v && v.type === CSS) {
677
+ if (this.isCSSLoaded(v.name, true)) {
678
+ this.loaded[v.name] = true;
679
+ }
680
+ }
681
+ this._internal = internal;
682
+ }
683
+ }
684
+ return this.moduleInfo[name];
685
+ },
686
+ /**
687
+ * Expand the names that are aliases to other modules.
688
+ * @method _expandAliases
689
+ * @param {string[]} list a module name or a list of names to be expanded
690
+ * @private
691
+ * @return {array}
692
+ */
693
+ _expandAliases: function(list) {
694
+ var expanded = [],
695
+ aliases = YUI.Env.aliases,
696
+ i, name;
697
+ list = Y.Array(list);
698
+ for (i = 0; i < list.length; i += 1) {
699
+ name = list[i];
700
+ expanded.push.apply(expanded, aliases[name] ? aliases[name] : [name]);
701
+ }
702
+ return expanded;
703
+ },
704
+ /**
705
+ * Populate the conditions cache from raw modules, this is necessary
706
+ * because no other module will require a conditional module, instead
707
+ * the condition has to be executed and then the module is analyzed
708
+ * to be included in the final requirement list. Without this cache
709
+ * conditional modules will be simply ignored.
710
+ * @method _populateConditionsCache
711
+ * @private
712
+ */
713
+ _populateConditionsCache: function() {
714
+ var rawMetaModules = META.modules,
715
+ cache = GLOBAL_ENV._conditions,
716
+ i, j, t, trigger;
717
+
718
+ // if we have conditions in cache and cache is enabled
719
+ // we should port them to this loader instance
720
+ if (cache && !this.ignoreRegistered) {
721
+ for (i in cache) {
722
+ if (cache.hasOwnProperty(i)) {
723
+ this.conditions[i] = Y.merge(cache[i]);
724
+ }
725
+ }
726
+ } else {
727
+ for (i in rawMetaModules) {
728
+ if (rawMetaModules.hasOwnProperty(i) && rawMetaModules[i].condition) {
729
+ t = this._expandAliases(rawMetaModules[i].condition.trigger);
730
+ for (j = 0; j < t.length; j += 1) {
731
+ trigger = t[j];
732
+ this.conditions[trigger] = this.conditions[trigger] || {};
733
+ this.conditions[trigger][rawMetaModules[i].name || i] = rawMetaModules[i].condition;
734
+ }
735
+ }
736
+ }
737
+ GLOBAL_ENV._conditions = this.conditions;
738
+ }
739
+ },
740
+ /**
741
+ * Reset modules in the module cache to a pre-processed state so additional
742
+ * computations with a different skin or language will work as expected.
743
+ * @method _resetModules
744
+ * @private
745
+ */
746
+ _resetModules: function() {
747
+ var self = this, i, o,
748
+ mod, name, details;
749
+ for (i in self.moduleInfo) {
750
+ if (self.moduleInfo.hasOwnProperty(i) && self.moduleInfo[i]) {
751
+ mod = self.moduleInfo[i];
752
+ name = mod.name;
753
+ details = (YUI.Env.mods[name] ? YUI.Env.mods[name].details : null);
754
+
755
+ if (details) {
756
+ self.moduleInfo[name]._reset = true;
757
+ self.moduleInfo[name].requires = details.requires || [];
758
+ self.moduleInfo[name].optional = details.optional || [];
759
+ self.moduleInfo[name].supersedes = details.supercedes || [];
760
+ }
761
+
762
+ if (mod.defaults) {
763
+ for (o in mod.defaults) {
764
+ if (mod.defaults.hasOwnProperty(o)) {
765
+ if (mod[o]) {
766
+ mod[o] = mod.defaults[o];
767
+ }
768
+ }
769
+ }
770
+ }
771
+ mod.langCache = undefined;
772
+ mod.skinCache = undefined;
773
+ if (mod.skinnable) {
774
+ self._addSkin(self.skin.defaultSkin, mod.name);
775
+ }
776
+ }
777
+ }
778
+ },
779
+ /**
780
+ Regex that matches a CSS URL. Used to guess the file type when it's not
781
+ specified.
782
+
783
+ @property REGEX_CSS
784
+ @type RegExp
785
+ @final
786
+ @protected
787
+ @since 3.5.0
788
+ **/
789
+ REGEX_CSS: /\.css(?:[?;].*)?$/i,
790
+
791
+ /**
792
+ * Default filters for raw and debug
793
+ * @property FILTER_DEFS
794
+ * @type Object
795
+ * @final
796
+ * @protected
797
+ */
798
+ FILTER_DEFS: {
799
+ RAW: {
800
+ 'searchExp': '-min\\.js',
801
+ 'replaceStr': '.js'
802
+ },
803
+ DEBUG: {
804
+ 'searchExp': '-min\\.js',
805
+ 'replaceStr': '-debug.js'
806
+ },
807
+ COVERAGE: {
808
+ 'searchExp': '-min\\.js',
809
+ 'replaceStr': '-coverage.js'
810
+ }
811
+ },
812
+ /*
813
+ * Check the pages meta-data and cache the result.
814
+ * @method _inspectPage
815
+ * @private
816
+ */
817
+ _inspectPage: function() {
818
+ var self = this, v, m, req, mr, i;
819
+
820
+ for (i in ON_PAGE) {
821
+ if (ON_PAGE.hasOwnProperty(i)) {
822
+ v = ON_PAGE[i];
823
+ if (v.details) {
824
+ m = self.getModuleInfo(v.name);
825
+ req = v.details.requires;
826
+ mr = m && m.requires;
827
+
828
+ if (m) {
829
+ if (!m._inspected && req && mr.length !== req.length) {
830
+ // console.log('deleting ' + m.name);
831
+ delete m.expanded;
832
+ }
833
+ } else {
834
+ m = self.addModule(v.details, i);
835
+ }
836
+ m._inspected = true;
837
+ }
838
+ }
839
+ }
840
+ },
841
+ /*
842
+ * returns true if b is not loaded, and is required directly or by means of modules it supersedes.
843
+ * @private
844
+ * @method _requires
845
+ * @param {String} mod1 The first module to compare
846
+ * @param {String} mod2 The second module to compare
847
+ */
848
+ _requires: function(mod1, mod2) {
849
+
850
+ var i, rm, after_map, s,
851
+ m = this.getModuleInfo(mod1),
852
+ other = this.getModuleInfo(mod2);
853
+
854
+ if (!m || !other) {
855
+ return false;
856
+ }
857
+
858
+ rm = m.expanded_map;
859
+ after_map = m.after_map;
860
+
861
+ // check if this module should be sorted after the other
862
+ // do this first to short circut circular deps
863
+ if (after_map && (mod2 in after_map)) {
864
+ return true;
865
+ }
866
+
867
+ after_map = other.after_map;
868
+
869
+ // and vis-versa
870
+ if (after_map && (mod1 in after_map)) {
871
+ return false;
872
+ }
873
+
874
+ // check if this module requires one the other supersedes
875
+ s = other.supersedes;
876
+ if (s) {
877
+ for (i = 0; i < s.length; i++) {
878
+ if (this._requires(mod1, s[i])) {
879
+ return true;
880
+ }
881
+ }
882
+ }
883
+
884
+ s = m.supersedes;
885
+ if (s) {
886
+ for (i = 0; i < s.length; i++) {
887
+ if (this._requires(mod2, s[i])) {
888
+ return false;
889
+ }
890
+ }
891
+ }
892
+
893
+ // check if this module requires the other directly
894
+ // if (r && yArray.indexOf(r, mod2) > -1) {
895
+ if (rm && (mod2 in rm)) {
896
+ return true;
897
+ }
898
+
899
+ // external css files should be sorted below yui css
900
+ if (m.ext && m.type === CSS && !other.ext && other.type === CSS) {
901
+ return true;
902
+ }
903
+
904
+ return false;
905
+ },
906
+ /**
907
+ * Apply a new config to the Loader instance
908
+ * @method _config
909
+ * @private
910
+ * @param {Object} o The new configuration
911
+ */
912
+ _config: function(o) {
913
+ var i, j, val, a, f, group, groupName, self = this,
914
+ mods = [], mod, modInfo;
915
+ // apply config values
916
+ if (o) {
917
+ for (i in o) {
918
+ if (o.hasOwnProperty(i)) {
919
+ val = o[i];
920
+ //TODO This should be a case
921
+ if (i === 'require') {
922
+ self.require(val);
923
+ } else if (i === 'skin') {
924
+ //If the config.skin is a string, format to the expected object
925
+ if (typeof val === 'string') {
926
+ self.skin.defaultSkin = o.skin;
927
+ val = {
928
+ defaultSkin: val
929
+ };
930
+ }
931
+
932
+ Y.mix(self.skin, val, true);
933
+ } else if (i === 'groups') {
934
+ for (j in val) {
935
+ if (val.hasOwnProperty(j)) {
936
+ groupName = j;
937
+ group = val[j];
938
+ self.addGroup(group, groupName);
939
+ if (group.aliases) {
940
+ for (a in group.aliases) {
941
+ if (group.aliases.hasOwnProperty(a)) {
942
+ self.addAlias(group.aliases[a], a);
943
+ }
944
+ }
945
+ }
946
+ }
947
+ }
948
+
949
+ } else if (i === 'modules') {
950
+ // add a hash of module definitions
951
+ for (j in val) {
952
+ if (val.hasOwnProperty(j)) {
953
+ self.addModule(val[j], j);
954
+ }
955
+ }
956
+ } else if (i === 'aliases') {
957
+ for (j in val) {
958
+ if (val.hasOwnProperty(j)) {
959
+ self.addAlias(val[j], j);
960
+ }
961
+ }
962
+ } else if (i === 'gallery') {
963
+ if (this.groups.gallery.update) {
964
+ this.groups.gallery.update(val, o);
965
+ }
966
+ } else if (i === 'yui2' || i === '2in3') {
967
+ if (this.groups.yui2.update) {
968
+ this.groups.yui2.update(o['2in3'], o.yui2, o);
969
+ }
970
+ } else {
971
+ self[i] = val;
972
+ }
973
+ }
974
+ }
975
+ }
976
+
977
+ // fix filter
978
+ f = self.filter;
979
+
980
+ if (L.isString(f)) {
981
+ f = f.toUpperCase();
982
+ self.filterName = f;
983
+ self.filter = self.FILTER_DEFS[f];
984
+ if (f === 'DEBUG') {
985
+ self.require('yui-log', 'dump');
986
+ }
987
+ }
988
+
989
+ if (self.filterName && self.coverage) {
990
+ if (self.filterName === 'COVERAGE' && L.isArray(self.coverage) && self.coverage.length) {
991
+ for (i = 0; i < self.coverage.length; i++) {
992
+ mod = self.coverage[i];
993
+ modInfo = self.getModuleInfo(mod);
994
+ if (modInfo && modInfo.use) {
995
+ mods = mods.concat(modInfo.use);
996
+ } else {
997
+ mods.push(mod);
998
+ }
999
+ }
1000
+ self.filters = self.filters || {};
1001
+ Y.Array.each(mods, function(mod) {
1002
+ self.filters[mod] = self.FILTER_DEFS.COVERAGE;
1003
+ });
1004
+ self.filterName = 'RAW';
1005
+ self.filter = self.FILTER_DEFS[self.filterName];
1006
+ }
1007
+ }
1008
+
1009
+ },
1010
+
1011
+ /**
1012
+ * Returns the skin module name for the specified skin name. If a
1013
+ * module name is supplied, the returned skin module name is
1014
+ * specific to the module passed in.
1015
+ * @method formatSkin
1016
+ * @param {string} skin the name of the skin.
1017
+ * @param {string} mod optional: the name of a module to skin.
1018
+ * @return {string} the full skin module name.
1019
+ */
1020
+ formatSkin: function(skin, mod) {
1021
+ var s = SKIN_PREFIX + skin;
1022
+ if (mod) {
1023
+ s = s + '-' + mod;
1024
+ }
1025
+
1026
+ return s;
1027
+ },
1028
+
1029
+ /**
1030
+ * Adds the skin def to the module info
1031
+ * @method _addSkin
1032
+ * @param {string} skin the name of the skin.
1033
+ * @param {string} mod the name of the module.
1034
+ * @param {string} parent parent module if this is a skin of a
1035
+ * submodule or plugin.
1036
+ * @return {string} the module name for the skin.
1037
+ * @private
1038
+ */
1039
+ _addSkin: function(skin, mod, parent) {
1040
+ var pkg, name, nmod,
1041
+ sinf = this.skin,
1042
+ mdef = mod && this.getModuleInfo(mod),
1043
+ ext = mdef && mdef.ext;
1044
+
1045
+ // Add a module definition for the module-specific skin css
1046
+ if (mod) {
1047
+ name = this.formatSkin(skin, mod);
1048
+ if (!this.getModuleInfo(name)) {
1049
+ pkg = mdef.pkg || mod;
1050
+ nmod = {
1051
+ skin: true,
1052
+ name: name,
1053
+ group: mdef.group,
1054
+ type: 'css',
1055
+ after: sinf.after,
1056
+ path: (parent || pkg) + '/' + sinf.base + skin +
1057
+ '/' + mod + '.css',
1058
+ ext: ext
1059
+ };
1060
+ if (mdef.base) {
1061
+ nmod.base = mdef.base;
1062
+ }
1063
+ if (mdef.configFn) {
1064
+ nmod.configFn = mdef.configFn;
1065
+ }
1066
+ this.addModule(nmod, name);
1067
+
1068
+ }
1069
+ }
1070
+
1071
+ return name;
1072
+ },
1073
+ /**
1074
+ * Adds an alias module to the system
1075
+ * @method addAlias
1076
+ * @param {Array} use An array of modules that makes up this alias
1077
+ * @param {String} name The name of the alias
1078
+ * @example
1079
+ * var loader = new Y.Loader({});
1080
+ * loader.addAlias([ 'node', 'yql' ], 'davglass');
1081
+ * loader.require(['davglass']);
1082
+ * var out = loader.resolve(true);
1083
+ *
1084
+ * //out.js will contain Node and YQL modules
1085
+ */
1086
+ addAlias: function(use, name) {
1087
+ YUI.Env.aliases[name] = use;
1088
+ this.addModule({
1089
+ name: name,
1090
+ use: use
1091
+ });
1092
+ },
1093
+ /**
1094
+ * Add a new module group
1095
+ * @method addGroup
1096
+ * @param {Object} config An object containing the group configuration data
1097
+ * @param {String} config.name required, the group name
1098
+ * @param {String} config.base The base directory for this module group
1099
+ * @param {String} config.root The root path to add to each combo resource path
1100
+ * @param {Boolean} config.combine Should the request be combined
1101
+ * @param {String} config.comboBase Combo service base path
1102
+ * @param {Object} config.modules The group of modules
1103
+ * @param {String} name the group name.
1104
+ * @example
1105
+ * var loader = new Y.Loader({});
1106
+ * loader.addGroup({
1107
+ * name: 'davglass',
1108
+ * combine: true,
1109
+ * comboBase: '/combo?',
1110
+ * root: '',
1111
+ * modules: {
1112
+ * //Module List here
1113
+ * }
1114
+ * }, 'davglass');
1115
+ */
1116
+ addGroup: function(o, name) {
1117
+ var mods = o.modules,
1118
+ self = this,
1119
+ defaultBase = o.defaultBase || Y.config.defaultBase,
1120
+ i, v;
1121
+
1122
+ name = name || o.name;
1123
+ o.name = name;
1124
+ self.groups[name] = o;
1125
+
1126
+ if (!o.base && defaultBase && o.root) {
1127
+ o.base = defaultBase + o.root;
1128
+ }
1129
+
1130
+ if (o.patterns) {
1131
+ for (i in o.patterns) {
1132
+ if (o.patterns.hasOwnProperty(i)) {
1133
+ o.patterns[i].group = name;
1134
+ self.patterns[i] = o.patterns[i];
1135
+ }
1136
+ }
1137
+ }
1138
+
1139
+ if (mods) {
1140
+ for (i in mods) {
1141
+ if (mods.hasOwnProperty(i)) {
1142
+ v = mods[i];
1143
+ if (typeof v === 'string') {
1144
+ v = { name: i, fullpath: v };
1145
+ }
1146
+ v.group = name;
1147
+ self.addModule(v, i);
1148
+ }
1149
+ }
1150
+ }
1151
+ },
1152
+
1153
+ /**
1154
+ * Add a new module to the component metadata.
1155
+ * @method addModule
1156
+ * @param {Object} config An object containing the module data.
1157
+ * @param {String} config.name Required, the component name
1158
+ * @param {String} config.type Required, the component type (js or css)
1159
+ * @param {String} config.path Required, the path to the script from `base`
1160
+ * @param {Array} config.requires Array of modules required by this component
1161
+ * @param {Array} [config.optional] Array of optional modules for this component
1162
+ * @param {Array} [config.supersedes] Array of the modules this component replaces
1163
+ * @param {Array} [config.after] Array of modules the components which, if present, should be sorted above this one
1164
+ * @param {Object} [config.after_map] Faster alternative to 'after' -- supply a hash instead of an array
1165
+ * @param {Number} [config.rollup] The number of superseded modules required for automatic rollup
1166
+ * @param {String} [config.fullpath] If `fullpath` is specified, this is used instead of the configured `base + path`
1167
+ * @param {Boolean} [config.skinnable] Flag to determine if skin assets should automatically be pulled in
1168
+ * @param {Object} [config.submodules] Hash of submodules
1169
+ * @param {String} [config.group] The group the module belongs to -- this is set automatically when it is added as part of a group configuration.
1170
+ * @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"]`
1171
+ * @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:
1172
+ * @param {String} [config.condition.trigger] The name of a module that can trigger the auto-load
1173
+ * @param {Function} [config.condition.test] A function that returns true when the module is to be loaded.
1174
+ * @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"`.
1175
+ * @param {String} [config.condition.when] Specifies the load order of the conditional module
1176
+ * with regard to the position of the trigger module.
1177
+ * This should be one of three values: `before`, `after`, or `instead`. The default is `after`.
1178
+ * @param {Object} [config.testresults] A hash of test results from `Y.Features.all()`
1179
+ * @param {Function} [config.configFn] A function to exectute when configuring this module
1180
+ * @param {Object} config.configFn.mod The module config, modifying this object will modify it's config. Returning false will delete the module's config.
1181
+ * @param {String[]} [config.optionalRequires] List of dependencies that
1182
+ may optionally be loaded by this loader. This is targeted mostly at
1183
+ polyfills, since they should not be in the list of requires because
1184
+ polyfills are assumed to be available in the global scope.
1185
+ * @param {Function} [config.test] Test to be called when this module is
1186
+ added as an optional dependency of another module. If the test function
1187
+ returns `false`, the module will be ignored and will not be attached to
1188
+ this YUI instance.
1189
+ * @param {String} [name] The module name, required if not in the module data.
1190
+ * @return {Object} the module definition or null if the object passed in did not provide all required attributes.
1191
+ */
1192
+ addModule: function(o, name) {
1193
+ name = name || o.name;
1194
+
1195
+ if (typeof o === 'string') {
1196
+ o = { name: name, fullpath: o };
1197
+ }
1198
+
1199
+
1200
+ var subs, i, l, t, sup, s, smod, plugins, plug,
1201
+ j, langs, packName, supName, flatSup, flatLang, lang, ret,
1202
+ overrides, skinname, when, g, p,
1203
+ modInfo = this.moduleInfo[name],
1204
+ conditions = this.conditions, trigger;
1205
+
1206
+ //Only merge this data if the temp flag is set
1207
+ //from an earlier pass from a pattern or else
1208
+ //an override module (YUI_config) can not be used to
1209
+ //replace a default module.
1210
+ if (modInfo && modInfo.temp) {
1211
+ //This catches temp modules loaded via a pattern
1212
+ // The module will be added twice, once from the pattern and
1213
+ // Once from the actual add call, this ensures that properties
1214
+ // that were added to the module the first time around (group: gallery)
1215
+ // are also added the second time around too.
1216
+ o = Y.merge(modInfo, o);
1217
+ }
1218
+
1219
+ o.name = name;
1220
+
1221
+ if (!o || !o.name) {
1222
+ return null;
1223
+ }
1224
+
1225
+ if (!o.type) {
1226
+ //Always assume it's javascript unless the CSS pattern is matched.
1227
+ o.type = JS;
1228
+ p = o.path || o.fullpath;
1229
+ if (p && this.REGEX_CSS.test(p)) {
1230
+ o.type = CSS;
1231
+ }
1232
+ }
1233
+
1234
+ if (!o.path && !o.fullpath) {
1235
+ o.path = _path(name, name, o.type);
1236
+ }
1237
+ o.supersedes = o.supersedes || o.use;
1238
+
1239
+ o.ext = ('ext' in o) ? o.ext : (this._internal) ? false : true;
1240
+
1241
+ // Handle submodule logic
1242
+ subs = o.submodules;
1243
+
1244
+ this.moduleInfo[name] = o;
1245
+
1246
+ o.requires = o.requires || [];
1247
+
1248
+ /*
1249
+ Only allowing the cascade of requires information, since
1250
+ optional and supersedes are far more fine grained than
1251
+ a blanket requires is.
1252
+ */
1253
+ if (this.requires) {
1254
+ for (i = 0; i < this.requires.length; i++) {
1255
+ o.requires.push(this.requires[i]);
1256
+ }
1257
+ }
1258
+ if (o.group && this.groups && this.groups[o.group]) {
1259
+ g = this.groups[o.group];
1260
+ if (g.requires) {
1261
+ for (i = 0; i < g.requires.length; i++) {
1262
+ o.requires.push(g.requires[i]);
1263
+ }
1264
+ }
1265
+ }
1266
+
1267
+
1268
+ if (!o.defaults) {
1269
+ o.defaults = {
1270
+ requires: o.requires ? [].concat(o.requires) : null,
1271
+ supersedes: o.supersedes ? [].concat(o.supersedes) : null,
1272
+ optional: o.optional ? [].concat(o.optional) : null
1273
+ };
1274
+ }
1275
+
1276
+ if (o.skinnable && o.ext && o.temp) {
1277
+ skinname = this._addSkin(this.skin.defaultSkin, name);
1278
+ o.requires.unshift(skinname);
1279
+ }
1280
+
1281
+ if (o.requires.length) {
1282
+ o.requires = this.filterRequires(o.requires) || [];
1283
+ }
1284
+
1285
+ if (!o.langPack && o.lang) {
1286
+ langs = yArray(o.lang);
1287
+ for (j = 0; j < langs.length; j++) {
1288
+ lang = langs[j];
1289
+ packName = this.getLangPackName(lang, name);
1290
+ smod = this.getModuleInfo(packName);
1291
+ if (!smod) {
1292
+ smod = this._addLangPack(lang, o, packName);
1293
+ }
1294
+ }
1295
+ }
1296
+
1297
+
1298
+ if (subs) {
1299
+ sup = o.supersedes || [];
1300
+ l = 0;
1301
+
1302
+ for (i in subs) {
1303
+ if (subs.hasOwnProperty(i)) {
1304
+ s = subs[i];
1305
+
1306
+ s.path = s.path || _path(name, i, o.type);
1307
+ s.pkg = name;
1308
+ s.group = o.group;
1309
+
1310
+ if (s.supersedes) {
1311
+ sup = sup.concat(s.supersedes);
1312
+ }
1313
+
1314
+ smod = this.addModule(s, i);
1315
+ sup.push(i);
1316
+
1317
+ if (smod.skinnable) {
1318
+ o.skinnable = true;
1319
+ overrides = this.skin.overrides;
1320
+ if (overrides && overrides[i]) {
1321
+ for (j = 0; j < overrides[i].length; j++) {
1322
+ skinname = this._addSkin(overrides[i][j],
1323
+ i, name);
1324
+ sup.push(skinname);
1325
+ }
1326
+ }
1327
+ skinname = this._addSkin(this.skin.defaultSkin,
1328
+ i, name);
1329
+ sup.push(skinname);
1330
+ }
1331
+
1332
+ // looks like we are expected to work out the metadata
1333
+ // for the parent module language packs from what is
1334
+ // specified in the child modules.
1335
+ if (s.lang && s.lang.length) {
1336
+
1337
+ langs = yArray(s.lang);
1338
+ for (j = 0; j < langs.length; j++) {
1339
+ lang = langs[j];
1340
+ packName = this.getLangPackName(lang, name);
1341
+ supName = this.getLangPackName(lang, i);
1342
+ smod = this.getModuleInfo(packName);
1343
+
1344
+ if (!smod) {
1345
+ smod = this._addLangPack(lang, o, packName);
1346
+ }
1347
+
1348
+ flatSup = flatSup || yArray.hash(smod.supersedes);
1349
+
1350
+ if (!(supName in flatSup)) {
1351
+ smod.supersedes.push(supName);
1352
+ }
1353
+
1354
+ o.lang = o.lang || [];
1355
+
1356
+ flatLang = flatLang || yArray.hash(o.lang);
1357
+
1358
+ if (!(lang in flatLang)) {
1359
+ o.lang.push(lang);
1360
+ }
1361
+
1362
+ // Add rollup file, need to add to supersedes list too
1363
+
1364
+ // default packages
1365
+ packName = this.getLangPackName(ROOT_LANG, name);
1366
+ supName = this.getLangPackName(ROOT_LANG, i);
1367
+
1368
+ smod = this.getModuleInfo(packName);
1369
+
1370
+ if (!smod) {
1371
+ smod = this._addLangPack(lang, o, packName);
1372
+ }
1373
+
1374
+ if (!(supName in flatSup)) {
1375
+ smod.supersedes.push(supName);
1376
+ }
1377
+
1378
+ // Add rollup file, need to add to supersedes list too
1379
+
1380
+ }
1381
+ }
1382
+
1383
+ l++;
1384
+ }
1385
+ }
1386
+ //o.supersedes = YObject.keys(yArray.hash(sup));
1387
+ o.supersedes = yArray.dedupe(sup);
1388
+ if (this.allowRollup) {
1389
+ o.rollup = (l < 4) ? l : Math.min(l - 1, 4);
1390
+ }
1391
+ }
1392
+
1393
+ plugins = o.plugins;
1394
+ if (plugins) {
1395
+ for (i in plugins) {
1396
+ if (plugins.hasOwnProperty(i)) {
1397
+ plug = plugins[i];
1398
+ plug.pkg = name;
1399
+ plug.path = plug.path || _path(name, i, o.type);
1400
+ plug.requires = plug.requires || [];
1401
+ plug.group = o.group;
1402
+ this.addModule(plug, i);
1403
+ if (o.skinnable) {
1404
+ this._addSkin(this.skin.defaultSkin, i, name);
1405
+ }
1406
+
1407
+ }
1408
+ }
1409
+ }
1410
+
1411
+ if (o.condition) {
1412
+ t = this._expandAliases(o.condition.trigger);
1413
+ for (i = 0; i < t.length; i++) {
1414
+ trigger = t[i];
1415
+ when = o.condition.when;
1416
+ conditions[trigger] = conditions[trigger] || {};
1417
+ conditions[trigger][name] = o.condition;
1418
+ // the 'when' attribute can be 'before', 'after', or 'instead'
1419
+ // the default is after.
1420
+ if (when && when !== 'after') {
1421
+ if (when === 'instead') { // replace the trigger
1422
+ o.supersedes = o.supersedes || [];
1423
+ o.supersedes.push(trigger);
1424
+ }
1425
+ // before the trigger
1426
+ // the trigger requires the conditional mod,
1427
+ // so it should appear before the conditional
1428
+ // mod if we do not intersede.
1429
+ } else { // after the trigger
1430
+ o.after = o.after || [];
1431
+ o.after.push(trigger);
1432
+ }
1433
+ }
1434
+ }
1435
+
1436
+ if (o.supersedes) {
1437
+ o.supersedes = this.filterRequires(o.supersedes);
1438
+ }
1439
+
1440
+ if (o.after) {
1441
+ o.after = this.filterRequires(o.after);
1442
+ o.after_map = yArray.hash(o.after);
1443
+ }
1444
+
1445
+ // this.dirty = true;
1446
+
1447
+ if (o.configFn) {
1448
+ ret = o.configFn(o);
1449
+ if (ret === false) {
1450
+ delete this.moduleInfo[name];
1451
+ delete GLOBAL_ENV._renderedMods[name];
1452
+ o = null;
1453
+ }
1454
+ }
1455
+ //Add to global cache
1456
+ if (o) {
1457
+ if (!GLOBAL_ENV._renderedMods) {
1458
+ GLOBAL_ENV._renderedMods = {};
1459
+ }
1460
+ GLOBAL_ENV._renderedMods[name] = Y.mix(GLOBAL_ENV._renderedMods[name] || {}, o);
1461
+ GLOBAL_ENV._conditions = conditions;
1462
+ }
1463
+
1464
+ return o;
1465
+ },
1466
+
1467
+ /**
1468
+ * Add a requirement for one or more module
1469
+ * @method require
1470
+ * @param {string[] | string*} what the modules to load.
1471
+ */
1472
+ require: function(what) {
1473
+ var a = (typeof what === 'string') ? yArray(arguments) : what;
1474
+ this.dirty = true;
1475
+ this.required = Y.merge(this.required, yArray.hash(this.filterRequires(a)));
1476
+
1477
+ this._explodeRollups();
1478
+ },
1479
+ /**
1480
+ * Grab all the items that were asked for, check to see if the Loader
1481
+ * meta-data contains a "use" array. If it doesm remove the asked item and replace it with
1482
+ * the content of the "use".
1483
+ * This will make asking for: "dd"
1484
+ * Actually ask for: "dd-ddm-base,dd-ddm,dd-ddm-drop,dd-drag,dd-proxy,dd-constrain,dd-drop,dd-scroll,dd-drop-plugin"
1485
+ * @private
1486
+ * @method _explodeRollups
1487
+ */
1488
+ _explodeRollups: function() {
1489
+ var self = this, m, m2, i, a, v, len, len2,
1490
+ r = self.required;
1491
+
1492
+ if (!self.allowRollup) {
1493
+ for (i in r) {
1494
+ if (r.hasOwnProperty(i)) {
1495
+ m = self.getModule(i);
1496
+ if (m && m.use) {
1497
+ len = m.use.length;
1498
+ for (a = 0; a < len; a++) {
1499
+ m2 = self.getModule(m.use[a]);
1500
+ if (m2 && m2.use) {
1501
+ len2 = m2.use.length;
1502
+ for (v = 0; v < len2; v++) {
1503
+ r[m2.use[v]] = true;
1504
+ }
1505
+ } else {
1506
+ r[m.use[a]] = true;
1507
+ }
1508
+ }
1509
+ }
1510
+ }
1511
+ }
1512
+ self.required = r;
1513
+ }
1514
+
1515
+ },
1516
+ /**
1517
+ * Explodes the required array to remove aliases and replace them with real modules
1518
+ * @method filterRequires
1519
+ * @param {Array} r The original requires array
1520
+ * @return {Array} The new array of exploded requirements
1521
+ */
1522
+ filterRequires: function(r) {
1523
+ if (r) {
1524
+ if (!Y.Lang.isArray(r)) {
1525
+ r = [r];
1526
+ }
1527
+ r = Y.Array(r);
1528
+ var c = [], i, mod, o, m;
1529
+
1530
+ for (i = 0; i < r.length; i++) {
1531
+ mod = this.getModule(r[i]);
1532
+ if (mod && mod.use) {
1533
+ for (o = 0; o < mod.use.length; o++) {
1534
+ //Must walk the other modules in case a module is a rollup of rollups (datatype)
1535
+ m = this.getModule(mod.use[o]);
1536
+ if (m && m.use && (m.name !== mod.name)) {
1537
+ c = Y.Array.dedupe([].concat(c, this.filterRequires(m.use)));
1538
+ } else {
1539
+ c.push(mod.use[o]);
1540
+ }
1541
+ }
1542
+ } else {
1543
+ c.push(r[i]);
1544
+ }
1545
+ }
1546
+ r = c;
1547
+ }
1548
+ return r;
1549
+ },
1550
+
1551
+ /**
1552
+ Returns `true` if the module can be attached to the YUI instance. Runs
1553
+ the module's test if there is one and caches its result.
1554
+
1555
+ @method _canBeAttached
1556
+ @param {String} module Name of the module to check.
1557
+ @return {Boolean} Result of the module's test if it has one, or `true`.
1558
+ **/
1559
+ _canBeAttached: function (m) {
1560
+ m = this.getModule(m);
1561
+ if (m && m.test) {
1562
+ if (!m.hasOwnProperty('_testResult')) {
1563
+ m._testResult = m.test(Y);
1564
+ }
1565
+ return m._testResult;
1566
+ }
1567
+ // return `true` for modules not registered as Loader will know what
1568
+ // to do with them later on
1569
+ return true;
1570
+ },
1571
+
1572
+ /**
1573
+ * Returns an object containing properties for all modules required
1574
+ * in order to load the requested module
1575
+ * @method getRequires
1576
+ * @param {object} mod The module definition from moduleInfo.
1577
+ * @return {array} the expanded requirement list.
1578
+ */
1579
+ getRequires: function(mod) {
1580
+
1581
+ if (!mod) {
1582
+ //console.log('returning no reqs for ' + mod.name);
1583
+ return NO_REQUIREMENTS;
1584
+ }
1585
+
1586
+ if (mod._parsed) {
1587
+ //console.log('returning requires for ' + mod.name, mod.requires);
1588
+ return mod.expanded || NO_REQUIREMENTS;
1589
+ }
1590
+
1591
+ //TODO add modue cache here out of scope..
1592
+
1593
+ var i, m, j, length, add, packName, lang, testresults = this.testresults,
1594
+ name = mod.name, cond,
1595
+ adddef = ON_PAGE[name] && ON_PAGE[name].details,
1596
+ optReqs = mod.optionalRequires,
1597
+ d, go, def,
1598
+ r, old_mod,
1599
+ o, skinmod, skindef, skinpar, skinname,
1600
+ intl = mod.lang || mod.intl,
1601
+ ftests = Y.Features && Y.Features.tests.load,
1602
+ hash, reparse;
1603
+
1604
+ // console.log(name);
1605
+
1606
+ // pattern match leaves module stub that needs to be filled out
1607
+ if (mod.temp && adddef) {
1608
+ old_mod = mod;
1609
+ mod = this.addModule(adddef, name);
1610
+ mod.group = old_mod.group;
1611
+ mod.pkg = old_mod.pkg;
1612
+ delete mod.expanded;
1613
+ }
1614
+
1615
+ // console.log('cache: ' + mod.langCache + ' == ' + this.lang);
1616
+
1617
+ //If a skin or a lang is different, reparse..
1618
+ reparse = !((!this.lang || mod.langCache === this.lang) && (mod.skinCache === this.skin.defaultSkin));
1619
+
1620
+ if (mod.expanded && !reparse) {
1621
+ return mod.expanded;
1622
+ }
1623
+
1624
+ // Optional dependencies are dependencies that may or may not be
1625
+ // available.
1626
+ // This feature was designed specifically to be used when transpiling
1627
+ // ES6 modules, in order to use polyfills and regular scripts that define
1628
+ // global variables without having to import them since they should be
1629
+ // available in the global scope.
1630
+ if (optReqs) {
1631
+ for (i = 0, length = optReqs.length; i < length; i++) {
1632
+ if (this._canBeAttached(optReqs[i])) {
1633
+ mod.requires.push(optReqs[i]);
1634
+ }
1635
+ }
1636
+ }
1637
+
1638
+ d = [];
1639
+ hash = {};
1640
+ r = this.filterRequires(mod.requires);
1641
+ if (mod.lang) {
1642
+ //If a module has a lang attribute, auto add the intl requirement.
1643
+ d.unshift('intl');
1644
+ r.unshift('intl');
1645
+ intl = true;
1646
+ }
1647
+ o = this.filterRequires(mod.optional);
1648
+
1649
+
1650
+ mod._parsed = true;
1651
+ mod.langCache = this.lang;
1652
+ mod.skinCache = this.skin.defaultSkin;
1653
+
1654
+ for (i = 0; i < r.length; i++) {
1655
+ if (!hash[r[i]]) {
1656
+ d.push(r[i]);
1657
+ hash[r[i]] = true;
1658
+ m = this.getModule(r[i]);
1659
+ if (m) {
1660
+ add = this.getRequires(m);
1661
+ intl = intl || (m.expanded_map &&
1662
+ (INTL in m.expanded_map));
1663
+ for (j = 0; j < add.length; j++) {
1664
+ d.push(add[j]);
1665
+ }
1666
+ }
1667
+ }
1668
+ }
1669
+
1670
+ // get the requirements from superseded modules, if any
1671
+ r = this.filterRequires(mod.supersedes);
1672
+ if (r) {
1673
+ for (i = 0; i < r.length; i++) {
1674
+ if (!hash[r[i]]) {
1675
+ // if this module has submodules, the requirements list is
1676
+ // expanded to include the submodules. This is so we can
1677
+ // prevent dups when a submodule is already loaded and the
1678
+ // parent is requested.
1679
+ if (mod.submodules) {
1680
+ d.push(r[i]);
1681
+ }
1682
+
1683
+ hash[r[i]] = true;
1684
+ m = this.getModule(r[i]);
1685
+
1686
+ if (m) {
1687
+ add = this.getRequires(m);
1688
+ intl = intl || (m.expanded_map &&
1689
+ (INTL in m.expanded_map));
1690
+ for (j = 0; j < add.length; j++) {
1691
+ d.push(add[j]);
1692
+ }
1693
+ }
1694
+ }
1695
+ }
1696
+ }
1697
+
1698
+ if (o && this.loadOptional) {
1699
+ for (i = 0; i < o.length; i++) {
1700
+ if (!hash[o[i]]) {
1701
+ d.push(o[i]);
1702
+ hash[o[i]] = true;
1703
+ m = this.getModuleInfo(o[i]);
1704
+ if (m) {
1705
+ add = this.getRequires(m);
1706
+ intl = intl || (m.expanded_map &&
1707
+ (INTL in m.expanded_map));
1708
+ for (j = 0; j < add.length; j++) {
1709
+ d.push(add[j]);
1710
+ }
1711
+ }
1712
+ }
1713
+ }
1714
+ }
1715
+
1716
+ cond = this.conditions[name];
1717
+
1718
+ if (cond) {
1719
+ //Set the module to not parsed since we have conditionals and this could change the dependency tree.
1720
+ mod._parsed = false;
1721
+ if (testresults && ftests) {
1722
+ oeach(testresults, function(result, id) {
1723
+ var condmod = ftests[id].name;
1724
+ if (!hash[condmod] && ftests[id].trigger === name) {
1725
+ if (result && ftests[id]) {
1726
+ hash[condmod] = true;
1727
+ d.push(condmod);
1728
+ }
1729
+ }
1730
+ });
1731
+ } else {
1732
+ for (i in cond) {
1733
+ if (cond.hasOwnProperty(i)) {
1734
+ if (!hash[i]) {
1735
+ def = cond[i];
1736
+ //first see if they've specfied a ua check
1737
+ //then see if they've got a test fn & if it returns true
1738
+ //otherwise just having a condition block is enough
1739
+ go = def && ((!def.ua && !def.test) || (def.ua && Y.UA[def.ua]) ||
1740
+ (def.test && def.test(Y, r)));
1741
+
1742
+ if (go) {
1743
+ hash[i] = true;
1744
+ d.push(i);
1745
+ m = this.getModule(i);
1746
+ if (m) {
1747
+ add = this.getRequires(m);
1748
+ for (j = 0; j < add.length; j++) {
1749
+ d.push(add[j]);
1750
+ }
1751
+
1752
+ }
1753
+ }
1754
+ }
1755
+ }
1756
+ }
1757
+ }
1758
+ }
1759
+
1760
+ // Create skin modules
1761
+ if (mod.skinnable) {
1762
+ skindef = this.skin.overrides;
1763
+ for (i in YUI.Env.aliases) {
1764
+ if (YUI.Env.aliases.hasOwnProperty(i)) {
1765
+ if (Y.Array.indexOf(YUI.Env.aliases[i], name) > -1) {
1766
+ skinpar = i;
1767
+ }
1768
+ }
1769
+ }
1770
+ if (skindef && (skindef[name] || (skinpar && skindef[skinpar]))) {
1771
+ skinname = name;
1772
+ if (skindef[skinpar]) {
1773
+ skinname = skinpar;
1774
+ }
1775
+ for (i = 0; i < skindef[skinname].length; i++) {
1776
+ skinmod = this._addSkin(skindef[skinname][i], name);
1777
+ if (!this.isCSSLoaded(skinmod, this._boot)) {
1778
+ d.push(skinmod);
1779
+ }
1780
+ }
1781
+ } else {
1782
+ skinmod = this._addSkin(this.skin.defaultSkin, name);
1783
+ if (!this.isCSSLoaded(skinmod, this._boot)) {
1784
+ d.push(skinmod);
1785
+ }
1786
+ }
1787
+ }
1788
+
1789
+ mod._parsed = false;
1790
+
1791
+ if (intl) {
1792
+
1793
+ if (mod.lang && !mod.langPack && Y.Intl) {
1794
+ lang = Y.Intl.lookupBestLang(this.lang || ROOT_LANG, mod.lang);
1795
+ packName = this.getLangPackName(lang, name);
1796
+ if (packName) {
1797
+ d.unshift(packName);
1798
+ }
1799
+ }
1800
+ d.unshift(INTL);
1801
+ }
1802
+
1803
+ mod.expanded_map = yArray.hash(d);
1804
+
1805
+ mod.expanded = YObject.keys(mod.expanded_map);
1806
+
1807
+ return mod.expanded;
1808
+ },
1809
+ /**
1810
+ * Check to see if named css module is already loaded on the page
1811
+ * @method isCSSLoaded
1812
+ * @param {String} name The name of the css file
1813
+ * @param {Boolean} skip To skip the short-circuit for ignoreRegister
1814
+ * @return Boolean
1815
+ */
1816
+ isCSSLoaded: function(name, skip) {
1817
+ //TODO - Make this call a batching call with name being an array
1818
+ if (!name || !YUI.Env.cssStampEl || (!skip && this.ignoreRegistered)) {
1819
+ return false;
1820
+ }
1821
+ var el = YUI.Env.cssStampEl,
1822
+ ret = false,
1823
+ mod = YUI.Env._cssLoaded[name],
1824
+ style = el.currentStyle; //IE
1825
+
1826
+
1827
+ if (mod !== undefined) {
1828
+ return mod;
1829
+ }
1830
+
1831
+ //Add the classname to the element
1832
+ el.className = name;
1833
+
1834
+ if (!style) {
1835
+ style = Y.config.doc.defaultView.getComputedStyle(el, null);
1836
+ }
1837
+
1838
+ if (style && style.display === 'none') {
1839
+ ret = true;
1840
+ }
1841
+
1842
+
1843
+ el.className = ''; //Reset the classname to ''
1844
+
1845
+ YUI.Env._cssLoaded[name] = ret;
1846
+
1847
+ return ret;
1848
+ },
1849
+
1850
+ /**
1851
+ * Returns a hash of module names the supplied module satisfies.
1852
+ * @method getProvides
1853
+ * @param {string} name The name of the module.
1854
+ * @return {object} what this module provides.
1855
+ */
1856
+ getProvides: function(name) {
1857
+ var m = this.getModule(name), o, s;
1858
+ // supmap = this.provides;
1859
+
1860
+ if (!m) {
1861
+ return NOT_FOUND;
1862
+ }
1863
+
1864
+ if (m && !m.provides) {
1865
+ o = {};
1866
+ s = m.supersedes;
1867
+
1868
+ if (s) {
1869
+ yArray.each(s, function(v) {
1870
+ Y.mix(o, this.getProvides(v));
1871
+ }, this);
1872
+ }
1873
+
1874
+ o[name] = true;
1875
+ m.provides = o;
1876
+
1877
+ }
1878
+
1879
+ return m.provides;
1880
+ },
1881
+
1882
+ /**
1883
+ * Calculates the dependency tree, the result is stored in the sorted
1884
+ * property.
1885
+ * @method calculate
1886
+ * @param {object} o optional options object.
1887
+ * @param {string} type optional argument to prune modules.
1888
+ */
1889
+ calculate: function(o, type) {
1890
+ if (o || type || this.dirty) {
1891
+
1892
+ if (o) {
1893
+ this._config(o);
1894
+ }
1895
+
1896
+ if (!this._init) {
1897
+ this._setup();
1898
+ }
1899
+
1900
+ this._explode();
1901
+
1902
+ if (this.allowRollup) {
1903
+ this._rollup();
1904
+ } else {
1905
+ this._explodeRollups();
1906
+ }
1907
+ this._reduce();
1908
+ this._sort();
1909
+ }
1910
+ },
1911
+ /**
1912
+ * Creates a "psuedo" package for languages provided in the lang array
1913
+ * @method _addLangPack
1914
+ * @private
1915
+ * @param {String} lang The language to create
1916
+ * @param {Object} m The module definition to create the language pack around
1917
+ * @param {String} packName The name of the package (e.g: lang/datatype-date-en-US)
1918
+ * @return {Object} The module definition
1919
+ */
1920
+ _addLangPack: function(lang, m, packName) {
1921
+ var name = m.name,
1922
+ packPath, conf,
1923
+ existing = this.getModuleInfo(packName);
1924
+
1925
+ if (!existing) {
1926
+
1927
+ packPath = _path((m.pkg || name), packName, JS, true);
1928
+
1929
+ conf = {
1930
+ path: packPath,
1931
+ intl: true,
1932
+ langPack: true,
1933
+ ext: m.ext,
1934
+ group: m.group,
1935
+ supersedes: []
1936
+ };
1937
+ if (m.root) {
1938
+ conf.root = m.root;
1939
+ }
1940
+ if (m.base) {
1941
+ conf.base = m.base;
1942
+ }
1943
+
1944
+ if (m.configFn) {
1945
+ conf.configFn = m.configFn;
1946
+ }
1947
+
1948
+ this.addModule(conf, packName);
1949
+
1950
+ if (lang) {
1951
+ Y.Env.lang = Y.Env.lang || {};
1952
+ Y.Env.lang[lang] = Y.Env.lang[lang] || {};
1953
+ Y.Env.lang[lang][name] = true;
1954
+ }
1955
+ }
1956
+
1957
+ return this.getModuleInfo(packName);
1958
+ },
1959
+
1960
+ /**
1961
+ * Investigates the current YUI configuration on the page. By default,
1962
+ * modules already detected will not be loaded again unless a force
1963
+ * option is encountered. Called by calculate()
1964
+ * @method _setup
1965
+ * @private
1966
+ */
1967
+ _setup: function() {
1968
+ var info = this.moduleInfo, name, i, j, m, l,
1969
+ packName;
1970
+
1971
+ for (name in info) {
1972
+ if (info.hasOwnProperty(name)) {
1973
+ m = info[name];
1974
+ if (m) {
1975
+
1976
+ // remove dups
1977
+ //m.requires = YObject.keys(yArray.hash(m.requires));
1978
+ m.requires = yArray.dedupe(m.requires);
1979
+
1980
+ // Create lang pack modules
1981
+ //if (m.lang && m.lang.length) {
1982
+ if (m.lang) {
1983
+ // Setup root package if the module has lang defined,
1984
+ // it needs to provide a root language pack
1985
+ packName = this.getLangPackName(ROOT_LANG, name);
1986
+ this._addLangPack(null, m, packName);
1987
+ }
1988
+
1989
+ }
1990
+ }
1991
+ }
1992
+
1993
+
1994
+ //l = Y.merge(this.inserted);
1995
+ l = {};
1996
+
1997
+ // available modules
1998
+ if (!this.ignoreRegistered) {
1999
+ Y.mix(l, GLOBAL_ENV.mods);
2000
+ }
2001
+
2002
+ // add the ignore list to the list of loaded packages
2003
+ if (this.ignore) {
2004
+ Y.mix(l, yArray.hash(this.ignore));
2005
+ }
2006
+
2007
+ // expand the list to include superseded modules
2008
+ for (j in l) {
2009
+ if (l.hasOwnProperty(j)) {
2010
+ Y.mix(l, this.getProvides(j));
2011
+ }
2012
+ }
2013
+
2014
+ // remove modules on the force list from the loaded list
2015
+ if (this.force) {
2016
+ for (i = 0; i < this.force.length; i++) {
2017
+ if (this.force[i] in l) {
2018
+ delete l[this.force[i]];
2019
+ }
2020
+ }
2021
+ }
2022
+
2023
+ Y.mix(this.loaded, l);
2024
+
2025
+ this._init = true;
2026
+ },
2027
+
2028
+ /**
2029
+ * Builds a module name for a language pack
2030
+ * @method getLangPackName
2031
+ * @param {string} lang the language code.
2032
+ * @param {string} mname the module to build it for.
2033
+ * @return {string} the language pack module name.
2034
+ */
2035
+ getLangPackName: function(lang, mname) {
2036
+ return ('lang/' + mname + ((lang) ? '_' + lang : ''));
2037
+ },
2038
+ /**
2039
+ * Inspects the required modules list looking for additional
2040
+ * dependencies. Expands the required list to include all
2041
+ * required modules. Called by calculate()
2042
+ * @method _explode
2043
+ * @private
2044
+ */
2045
+ _explode: function() {
2046
+ //TODO Move done out of scope
2047
+ var r = this.required, m, reqs, done = {},
2048
+ self = this, name, expound;
2049
+
2050
+ // the setup phase is over, all modules have been created
2051
+ self.dirty = false;
2052
+
2053
+ self._explodeRollups();
2054
+ r = self.required;
2055
+
2056
+ for (name in r) {
2057
+ if (r.hasOwnProperty(name)) {
2058
+ if (!done[name]) {
2059
+ done[name] = true;
2060
+ m = self.getModule(name);
2061
+ if (m) {
2062
+ expound = m.expound;
2063
+
2064
+ if (expound) {
2065
+ r[expound] = self.getModule(expound);
2066
+ reqs = self.getRequires(r[expound]);
2067
+ Y.mix(r, yArray.hash(reqs));
2068
+ }
2069
+
2070
+ reqs = self.getRequires(m);
2071
+ Y.mix(r, yArray.hash(reqs));
2072
+ }
2073
+ }
2074
+ }
2075
+ }
2076
+
2077
+ },
2078
+ /**
2079
+ * The default method used to test a module against a pattern
2080
+ * @method _patternTest
2081
+ * @private
2082
+ * @param {String} mname The module being tested
2083
+ * @param {String} pname The pattern to match
2084
+ */
2085
+ _patternTest: function(mname, pname) {
2086
+ return (mname.indexOf(pname) > -1);
2087
+ },
2088
+ /**
2089
+ * Get's the loader meta data for the requested module
2090
+ * @method getModule
2091
+ * @param {String} mname The module name to get
2092
+ * @return {Object} The module metadata
2093
+ */
2094
+ getModule: function(mname) {
2095
+ //TODO: Remove name check - it's a quick hack to fix pattern WIP
2096
+ if (!mname) {
2097
+ return null;
2098
+ }
2099
+
2100
+ var p, found, pname,
2101
+ m = this.getModuleInfo(mname),
2102
+ patterns = this.patterns;
2103
+
2104
+ // check the patterns library to see if we should automatically add
2105
+ // the module with defaults
2106
+ if (!m || (m && m.ext)) {
2107
+ for (pname in patterns) {
2108
+ if (patterns.hasOwnProperty(pname)) {
2109
+ p = patterns[pname];
2110
+
2111
+ //There is no test method, create a default one that tests
2112
+ // the pattern against the mod name
2113
+ if (!p.test) {
2114
+ p.test = this._patternTest;
2115
+ }
2116
+
2117
+ if (p.test(mname, pname)) {
2118
+ // use the metadata supplied for the pattern
2119
+ // as the module definition.
2120
+ found = p;
2121
+ break;
2122
+ }
2123
+ }
2124
+ }
2125
+ }
2126
+
2127
+ if (!m) {
2128
+ if (found) {
2129
+ if (p.action) {
2130
+ p.action.call(this, mname, pname);
2131
+ } else {
2132
+ // ext true or false?
2133
+ m = this.addModule(Y.merge(found, {
2134
+ test: void 0,
2135
+ temp: true
2136
+ }), mname);
2137
+ if (m && found.configFn) {
2138
+ m.configFn = found.configFn;
2139
+ }
2140
+ }
2141
+ }
2142
+ } else {
2143
+ if (found && m && found.configFn && !m.configFn) {
2144
+ m.configFn = found.configFn;
2145
+ m.configFn(m);
2146
+ }
2147
+ }
2148
+
2149
+ return m;
2150
+ },
2151
+
2152
+ // impl in rollup submodule
2153
+ _rollup: function() { },
2154
+
2155
+ /**
2156
+ * Remove superceded modules and loaded modules. Called by
2157
+ * calculate() after we have the mega list of all dependencies
2158
+ * @method _reduce
2159
+ * @return {object} the reduced dependency hash.
2160
+ * @private
2161
+ */
2162
+ _reduce: function(r) {
2163
+
2164
+ r = r || this.required;
2165
+
2166
+ var i, j, s, m, type = this.loadType,
2167
+ ignore = this.ignore ? yArray.hash(this.ignore) : false;
2168
+
2169
+ for (i in r) {
2170
+ if (r.hasOwnProperty(i)) {
2171
+ m = this.getModule(i);
2172
+ // remove if already loaded
2173
+ if (((this.loaded[i] || ON_PAGE[i]) &&
2174
+ !this.forceMap[i] && !this.ignoreRegistered) ||
2175
+ (type && m && m.type !== type)) {
2176
+ delete r[i];
2177
+ }
2178
+ if (ignore && ignore[i]) {
2179
+ delete r[i];
2180
+ }
2181
+ // remove anything this module supersedes
2182
+ s = m && m.supersedes;
2183
+ if (s) {
2184
+ for (j = 0; j < s.length; j++) {
2185
+ if (s[j] in r) {
2186
+ delete r[s[j]];
2187
+ }
2188
+ }
2189
+ }
2190
+ }
2191
+ }
2192
+
2193
+ return r;
2194
+ },
2195
+ /**
2196
+ * Handles the queue when a module has been loaded for all cases
2197
+ * @method _finish
2198
+ * @private
2199
+ * @param {String} msg The message from Loader
2200
+ * @param {Boolean} success A boolean denoting success or failure
2201
+ */
2202
+ _finish: function(msg, success) {
2203
+
2204
+ _queue.running = false;
2205
+
2206
+ var onEnd = this.onEnd;
2207
+ if (onEnd) {
2208
+ onEnd.call(this.context, {
2209
+ msg: msg,
2210
+ data: this.data,
2211
+ success: success
2212
+ });
2213
+ }
2214
+ this._continue();
2215
+ },
2216
+ /**
2217
+ * The default Loader onSuccess handler, calls this.onSuccess with a payload
2218
+ * @method _onSuccess
2219
+ * @private
2220
+ */
2221
+ _onSuccess: function() {
2222
+ var self = this, skipped = Y.merge(self.skipped), fn,
2223
+ failed = [], rreg = self.requireRegistration,
2224
+ success, msg, i, mod;
2225
+
2226
+ for (i in skipped) {
2227
+ if (skipped.hasOwnProperty(i)) {
2228
+ delete self.inserted[i];
2229
+ }
2230
+ }
2231
+
2232
+ self.skipped = {};
2233
+
2234
+ for (i in self.inserted) {
2235
+ if (self.inserted.hasOwnProperty(i)) {
2236
+ mod = self.getModule(i);
2237
+ if (mod && rreg && mod.type === JS && !(i in YUI.Env.mods)) {
2238
+ failed.push(i);
2239
+ } else {
2240
+ Y.mix(self.loaded, self.getProvides(i));
2241
+ }
2242
+ }
2243
+ }
2244
+
2245
+ fn = self.onSuccess;
2246
+ msg = (failed.length) ? 'notregistered' : 'success';
2247
+ success = !(failed.length);
2248
+ if (fn) {
2249
+ fn.call(self.context, {
2250
+ msg: msg,
2251
+ data: self.data,
2252
+ success: success,
2253
+ failed: failed,
2254
+ skipped: skipped
2255
+ });
2256
+ }
2257
+ self._finish(msg, success);
2258
+ },
2259
+ /**
2260
+ * The default Loader onProgress handler, calls this.onProgress with a payload
2261
+ * @method _onProgress
2262
+ * @private
2263
+ */
2264
+ _onProgress: function(e) {
2265
+ var self = this, i;
2266
+ //set the internal cache to what just came in.
2267
+ if (e.data && e.data.length) {
2268
+ for (i = 0; i < e.data.length; i++) {
2269
+ e.data[i] = self.getModule(e.data[i].name);
2270
+ }
2271
+ }
2272
+ if (self.onProgress) {
2273
+ self.onProgress.call(self.context, {
2274
+ name: e.url,
2275
+ data: e.data
2276
+ });
2277
+ }
2278
+ },
2279
+ /**
2280
+ * The default Loader onFailure handler, calls this.onFailure with a payload
2281
+ * @method _onFailure
2282
+ * @private
2283
+ */
2284
+ _onFailure: function(o) {
2285
+ var f = this.onFailure, msg = [], i = 0, len = o.errors.length;
2286
+
2287
+ for (i; i < len; i++) {
2288
+ msg.push(o.errors[i].error);
2289
+ }
2290
+
2291
+ msg = msg.join(',');
2292
+
2293
+
2294
+ if (f) {
2295
+ f.call(this.context, {
2296
+ msg: msg,
2297
+ data: this.data,
2298
+ success: false
2299
+ });
2300
+ }
2301
+
2302
+ this._finish(msg, false);
2303
+
2304
+ },
2305
+
2306
+ /**
2307
+ * The default Loader onTimeout handler, calls this.onTimeout with a payload
2308
+ * @method _onTimeout
2309
+ * @param {Get.Transaction} transaction The Transaction object from `Y.Get`
2310
+ * @private
2311
+ */
2312
+ _onTimeout: function(transaction) {
2313
+ var f = this.onTimeout;
2314
+ if (f) {
2315
+ f.call(this.context, {
2316
+ msg: 'timeout',
2317
+ data: this.data,
2318
+ success: false,
2319
+ transaction: transaction
2320
+ });
2321
+ }
2322
+ },
2323
+
2324
+ /**
2325
+ * Sorts the dependency tree. The last step of calculate()
2326
+ * @method _sort
2327
+ * @private
2328
+ */
2329
+ _sort: function() {
2330
+ var name,
2331
+
2332
+ // Object containing module names.
2333
+ required = this.required,
2334
+
2335
+ // Keep track of whether we've visited a module.
2336
+ visited = {};
2337
+
2338
+ // Will contain modules names, in the correct order,
2339
+ // according to dependencies.
2340
+ this.sorted = [];
2341
+
2342
+ for (name in required) {
2343
+ if (!visited[name] && required.hasOwnProperty(name)) {
2344
+ this._visit(name, visited);
2345
+ }
2346
+ }
2347
+ },
2348
+
2349
+ /**
2350
+ * Recursively visits the dependencies of the module name
2351
+ * passed in, and appends each module name to the `sorted` property.
2352
+ * @param {String} name The name of a module.
2353
+ * @param {Object} visited Keeps track of whether a module was visited.
2354
+ * @method _visit
2355
+ * @private
2356
+ */
2357
+ _visit: function (name, visited) {
2358
+ var required, condition, moduleInfo, dependency, dependencies,
2359
+ trigger, isAfter, i, l;
2360
+
2361
+ visited[name] = true;
2362
+ required = this.required;
2363
+ moduleInfo = this.moduleInfo[name];
2364
+ condition = this.conditions[name] || {};
2365
+
2366
+ if (moduleInfo) {
2367
+ // Recurse on each dependency of this module,
2368
+ // figuring out its dependencies, and so on.
2369
+ dependencies = moduleInfo.expanded || moduleInfo.requires;
2370
+
2371
+ for (i = 0, l = dependencies.length; i < l; ++i) {
2372
+ dependency = dependencies[i];
2373
+ trigger = condition[dependency];
2374
+
2375
+ // We cannot process this dependency yet if it must
2376
+ // appear after our current module.
2377
+ isAfter = trigger && (!trigger.when || trigger.when === "after");
2378
+
2379
+ // Is this module name in the required list of modules,
2380
+ // and have we not already visited it?
2381
+ if (required[dependency] && !visited[dependency] && !isAfter) {
2382
+ this._visit(dependency, visited);
2383
+ }
2384
+ }
2385
+ }
2386
+
2387
+ this.sorted.push(name);
2388
+ },
2389
+
2390
+ /**
2391
+ * Handles the actual insertion of script/link tags
2392
+ * @method _insert
2393
+ * @private
2394
+ * @param {Object} source The YUI instance the request came from
2395
+ * @param {Object} o The metadata to include
2396
+ * @param {String} type JS or CSS
2397
+ * @param {Boolean} [skipcalc=false] Do a Loader.calculate on the meta
2398
+ */
2399
+ _insert: function(source, o, type, skipcalc) {
2400
+
2401
+
2402
+ // restore the state at the time of the request
2403
+ if (source) {
2404
+ this._config(source);
2405
+ }
2406
+
2407
+ // build the dependency list
2408
+ // don't include type so we can process CSS and script in
2409
+ // one pass when the type is not specified.
2410
+
2411
+ var modules = this.resolve(!skipcalc),
2412
+ self = this, comp = 0, actions = 0,
2413
+ mods = {}, deps, complete;
2414
+
2415
+ self._refetch = [];
2416
+
2417
+ if (type) {
2418
+ //Filter out the opposite type and reset the array so the checks later work
2419
+ modules[((type === JS) ? CSS : JS)] = [];
2420
+ }
2421
+ if (!self.fetchCSS) {
2422
+ modules.css = [];
2423
+ }
2424
+ if (modules.js.length) {
2425
+ comp++;
2426
+ }
2427
+ if (modules.css.length) {
2428
+ comp++;
2429
+ }
2430
+
2431
+ //console.log('Resolved Modules: ', modules);
2432
+
2433
+ complete = function(d) {
2434
+ actions++;
2435
+ var errs = {}, i = 0, o = 0, u = '', fn,
2436
+ modName, resMods;
2437
+
2438
+ if (d && d.errors) {
2439
+ for (i = 0; i < d.errors.length; i++) {
2440
+ if (d.errors[i].request) {
2441
+ u = d.errors[i].request.url;
2442
+ } else {
2443
+ u = d.errors[i];
2444
+ }
2445
+ errs[u] = u;
2446
+ }
2447
+ }
2448
+
2449
+ if (d && d.data && d.data.length && (d.type === 'success')) {
2450
+ for (i = 0; i < d.data.length; i++) {
2451
+ self.inserted[d.data[i].name] = true;
2452
+ //If the external module has a skin or a lang, reprocess it
2453
+ if (d.data[i].lang || d.data[i].skinnable) {
2454
+ delete self.inserted[d.data[i].name];
2455
+ self._refetch.push(d.data[i].name);
2456
+ }
2457
+ }
2458
+ }
2459
+
2460
+ if (actions === comp) {
2461
+ self._loading = null;
2462
+ if (self._refetch.length) {
2463
+ //Get the deps for the new meta-data and reprocess
2464
+ for (i = 0; i < self._refetch.length; i++) {
2465
+ deps = self.getRequires(self.getModule(self._refetch[i]));
2466
+ for (o = 0; o < deps.length; o++) {
2467
+ if (!self.inserted[deps[o]]) {
2468
+ //We wouldn't be to this point without the module being here
2469
+ mods[deps[o]] = deps[o];
2470
+ }
2471
+ }
2472
+ }
2473
+ mods = Y.Object.keys(mods);
2474
+ if (mods.length) {
2475
+ self.require(mods);
2476
+ resMods = self.resolve(true);
2477
+ if (resMods.cssMods.length) {
2478
+ for (i=0; i < resMods.cssMods.length; i++) {
2479
+ modName = resMods.cssMods[i].name;
2480
+ delete YUI.Env._cssLoaded[modName];
2481
+ if (self.isCSSLoaded(modName)) {
2482
+ self.inserted[modName] = true;
2483
+ delete self.required[modName];
2484
+ }
2485
+ }
2486
+ self.sorted = [];
2487
+ self._sort();
2488
+ }
2489
+ d = null; //bail
2490
+ self._insert(); //insert the new deps
2491
+ }
2492
+ }
2493
+ if (d && d.fn) {
2494
+ fn = d.fn;
2495
+ delete d.fn;
2496
+ fn.call(self, d);
2497
+ }
2498
+ }
2499
+ };
2500
+
2501
+ this._loading = true;
2502
+
2503
+ if (!modules.js.length && !modules.css.length) {
2504
+ actions = -1;
2505
+ complete({
2506
+ fn: self._onSuccess
2507
+ });
2508
+ return;
2509
+ }
2510
+
2511
+
2512
+ if (modules.css.length) { //Load CSS first
2513
+ Y.Get.css(modules.css, {
2514
+ data: modules.cssMods,
2515
+ attributes: self.cssAttributes,
2516
+ insertBefore: self.insertBefore,
2517
+ charset: self.charset,
2518
+ timeout: self.timeout,
2519
+ context: self,
2520
+ onProgress: function(e) {
2521
+ self._onProgress.call(self, e);
2522
+ },
2523
+ onTimeout: function(d) {
2524
+ self._onTimeout.call(self, d);
2525
+ },
2526
+ onSuccess: function(d) {
2527
+ d.type = 'success';
2528
+ d.fn = self._onSuccess;
2529
+ complete.call(self, d);
2530
+ },
2531
+ onFailure: function(d) {
2532
+ d.type = 'failure';
2533
+ d.fn = self._onFailure;
2534
+ complete.call(self, d);
2535
+ }
2536
+ });
2537
+ }
2538
+
2539
+ if (modules.js.length) {
2540
+ Y.Get.js(modules.js, {
2541
+ data: modules.jsMods,
2542
+ insertBefore: self.insertBefore,
2543
+ attributes: self.jsAttributes,
2544
+ charset: self.charset,
2545
+ timeout: self.timeout,
2546
+ autopurge: false,
2547
+ context: self,
2548
+ async: self.async,
2549
+ onProgress: function(e) {
2550
+ self._onProgress.call(self, e);
2551
+ },
2552
+ onTimeout: function(d) {
2553
+ self._onTimeout.call(self, d);
2554
+ },
2555
+ onSuccess: function(d) {
2556
+ d.type = 'success';
2557
+ d.fn = self._onSuccess;
2558
+ complete.call(self, d);
2559
+ },
2560
+ onFailure: function(d) {
2561
+ d.type = 'failure';
2562
+ d.fn = self._onFailure;
2563
+ complete.call(self, d);
2564
+ }
2565
+ });
2566
+ }
2567
+ },
2568
+ /**
2569
+ * Once a loader operation is completely finished, process any additional queued items.
2570
+ * @method _continue
2571
+ * @private
2572
+ */
2573
+ _continue: function() {
2574
+ if (!(_queue.running) && _queue.size() > 0) {
2575
+ _queue.running = true;
2576
+ _queue.next()();
2577
+ }
2578
+ },
2579
+
2580
+ /**
2581
+ * inserts the requested modules and their dependencies.
2582
+ * <code>type</code> can be "js" or "css". Both script and
2583
+ * css are inserted if type is not provided.
2584
+ * @method insert
2585
+ * @param {object} o optional options object.
2586
+ * @param {string} type the type of dependency to insert.
2587
+ */
2588
+ insert: function(o, type, skipsort) {
2589
+ var self = this, copy = Y.merge(this);
2590
+ delete copy.require;
2591
+ delete copy.dirty;
2592
+ _queue.add(function() {
2593
+ self._insert(copy, o, type, skipsort);
2594
+ });
2595
+ this._continue();
2596
+ },
2597
+
2598
+ /**
2599
+ * Executed every time a module is loaded, and if we are in a load
2600
+ * cycle, we attempt to load the next script. Public so that it
2601
+ * is possible to call this if using a method other than
2602
+ * Y.register to determine when scripts are fully loaded
2603
+ * @method loadNext
2604
+ * @deprecated
2605
+ * @param {string} mname optional the name of the module that has
2606
+ * been loaded (which is usually why it is time to load the next
2607
+ * one).
2608
+ */
2609
+ loadNext: function() {
2610
+ return;
2611
+ },
2612
+
2613
+ /**
2614
+ * Apply filter defined for this instance to a url/path
2615
+ * @method _filter
2616
+ * @param {string} u the string to filter.
2617
+ * @param {string} name the name of the module, if we are processing
2618
+ * a single module as opposed to a combined url.
2619
+ * @return {string} the filtered string.
2620
+ * @private
2621
+ */
2622
+ _filter: function(u, name, group) {
2623
+ var f = this.filter,
2624
+ hasFilter = name && (name in this.filters),
2625
+ modFilter = hasFilter && this.filters[name],
2626
+ groupName = group || (this.getModuleInfo(name) || {}).group || null;
2627
+
2628
+ if (groupName && this.groups[groupName] && this.groups[groupName].filter) {
2629
+ modFilter = this.groups[groupName].filter;
2630
+ hasFilter = true;
2631
+ }
2632
+
2633
+ if (u) {
2634
+ if (hasFilter) {
2635
+ f = (L.isString(modFilter)) ? this.FILTER_DEFS[modFilter.toUpperCase()] || null : modFilter;
2636
+ }
2637
+ if (f) {
2638
+ u = u.replace(new RegExp(f.searchExp, 'g'), f.replaceStr);
2639
+ }
2640
+ }
2641
+ return u;
2642
+ },
2643
+
2644
+ /**
2645
+ * Generates the full url for a module
2646
+ * @method _url
2647
+ * @param {string} path the path fragment.
2648
+ * @param {String} name The name of the module
2649
+ * @param {String} [base] The base url to use. Defaults to self.base
2650
+ * @return {string} the full url.
2651
+ * @private
2652
+ */
2653
+ _url: function(path, name, base) {
2654
+ return this._filter((base || this.base || '') + path, name);
2655
+ },
2656
+ /**
2657
+ * Returns an Object hash of file arrays built from `loader.sorted` or from an arbitrary list of sorted modules.
2658
+ * @method resolve
2659
+ * @param {Boolean} [calc=false] Perform a loader.calculate() before anything else
2660
+ * @param {Array} [sorted=loader.sorted] An override for the loader.sorted array
2661
+ * @return {Object} Object hash (js and css) of two arrays of file lists
2662
+ * @example This method can be used as an off-line dep calculator
2663
+ *
2664
+ * var Y = YUI();
2665
+ * var loader = new Y.Loader({
2666
+ * filter: 'debug',
2667
+ * base: '../../',
2668
+ * root: 'build/',
2669
+ * combine: true,
2670
+ * require: ['node', 'dd', 'console']
2671
+ * });
2672
+ * var out = loader.resolve(true);
2673
+ *
2674
+ */
2675
+ resolve: function(calc, sorted) {
2676
+ var self = this,
2677
+ resolved = { js: [], jsMods: [], css: [], cssMods: [] },
2678
+ addSingle,
2679
+ usePathogen = Y.config.comboLoader && Y.config.customComboBase;
2680
+
2681
+ if (self.skin.overrides || self.skin.defaultSkin !== DEFAULT_SKIN || self.ignoreRegistered) {
2682
+ self._resetModules();
2683
+ }
2684
+
2685
+ if (calc) {
2686
+ self.calculate();
2687
+ }
2688
+ sorted = sorted || self.sorted;
2689
+
2690
+ addSingle = function(mod) {
2691
+ if (mod) {
2692
+ var group = (mod.group && self.groups[mod.group]) || NOT_FOUND,
2693
+ url;
2694
+
2695
+ //Always assume it's async
2696
+ if (group.async === false) {
2697
+ mod.async = group.async;
2698
+ }
2699
+
2700
+ url = (mod.fullpath) ? self._filter(mod.fullpath, mod.name) :
2701
+ self._url(mod.path, mod.name, group.base || mod.base);
2702
+
2703
+ if (mod.attributes || mod.async === false) {
2704
+ url = {
2705
+ url: url,
2706
+ async: mod.async
2707
+ };
2708
+ if (mod.attributes) {
2709
+ url.attributes = mod.attributes;
2710
+ }
2711
+ }
2712
+ resolved[mod.type].push(url);
2713
+ resolved[mod.type + 'Mods'].push(mod);
2714
+ } else {
2715
+ }
2716
+
2717
+ };
2718
+
2719
+ /*jslint vars: true */
2720
+ var inserted = (self.ignoreRegistered) ? {} : self.inserted,
2721
+ comboSources,
2722
+ maxURLLength,
2723
+ comboMeta,
2724
+ comboBase,
2725
+ comboSep,
2726
+ group,
2727
+ mod,
2728
+ len,
2729
+ i,
2730
+ hasComboModule = false;
2731
+
2732
+ /*jslint vars: false */
2733
+
2734
+ for (i = 0, len = sorted.length; i < len; i++) {
2735
+ mod = self.getModule(sorted[i]);
2736
+ if (!mod || inserted[mod.name]) {
2737
+ continue;
2738
+ }
2739
+
2740
+ group = self.groups[mod.group];
2741
+
2742
+ comboBase = self.comboBase;
2743
+
2744
+ if (group) {
2745
+ if (!group.combine || mod.fullpath) {
2746
+ //This is not a combo module, skip it and load it singly later.
2747
+ addSingle(mod);
2748
+ continue;
2749
+ }
2750
+ mod.combine = true;
2751
+
2752
+ if (typeof group.root === 'string') {
2753
+ mod.root = group.root;
2754
+ }
2755
+
2756
+ comboBase = group.comboBase || comboBase;
2757
+ comboSep = group.comboSep;
2758
+ maxURLLength = group.maxURLLength;
2759
+ } else {
2760
+ if (!self.combine) {
2761
+ //This is not a combo module, skip it and load it singly later.
2762
+ addSingle(mod);
2763
+ continue;
2764
+ }
2765
+ }
2766
+
2767
+ if (!mod.combine && mod.ext) {
2768
+ addSingle(mod);
2769
+ continue;
2770
+ }
2771
+ hasComboModule = true;
2772
+ comboSources = comboSources || {};
2773
+ comboSources[comboBase] = comboSources[comboBase] ||
2774
+ { js: [], jsMods: [], css: [], cssMods: [] };
2775
+
2776
+ comboMeta = comboSources[comboBase];
2777
+ comboMeta.group = mod.group;
2778
+ comboMeta.comboSep = comboSep || self.comboSep;
2779
+ comboMeta.maxURLLength = maxURLLength || self.maxURLLength;
2780
+
2781
+ comboMeta[mod.type + 'Mods'].push(mod);
2782
+ if (mod.type === JS || mod.type === CSS) {
2783
+ resolved[mod.type + 'Mods'].push(mod);
2784
+ }
2785
+ }
2786
+ //only encode if we have something to encode
2787
+ if (hasComboModule) {
2788
+ if (usePathogen) {
2789
+ resolved = this._pathogenEncodeComboSources(resolved);
2790
+ } else {
2791
+ resolved = this._encodeComboSources(resolved, comboSources);
2792
+ }
2793
+ }
2794
+ return resolved;
2795
+ },
2796
+
2797
+ /**
2798
+ * Encodes combo sources and appends them to an object hash of arrays from `loader.resolve`.
2799
+ *
2800
+ * @method _encodeComboSources
2801
+ * @param {Object} resolved The object hash of arrays in which to attach the encoded combo sources.
2802
+ * @param {Object} comboSources An object containing relevant data about modules.
2803
+ * @return Object
2804
+ * @private
2805
+ */
2806
+ _encodeComboSources: function(resolved, comboSources) {
2807
+ var fragSubset,
2808
+ modules,
2809
+ tmpBase,
2810
+ baseLen,
2811
+ frags,
2812
+ frag,
2813
+ type,
2814
+ mod,
2815
+ maxURLLength,
2816
+ comboBase,
2817
+ comboMeta,
2818
+ comboSep,
2819
+ i,
2820
+ len,
2821
+ self = this;
2822
+
2823
+ for (comboBase in comboSources) {
2824
+ if (comboSources.hasOwnProperty(comboBase)) {
2825
+ comboMeta = comboSources[comboBase];
2826
+ comboSep = comboMeta.comboSep;
2827
+ maxURLLength = comboMeta.maxURLLength;
2828
+ for (type in comboMeta) {
2829
+ if (type === JS || type === CSS) {
2830
+ modules = comboMeta[type + 'Mods'];
2831
+ frags = [];
2832
+ for (i = 0, len = modules.length; i < len; i += 1) {
2833
+ mod = modules[i];
2834
+ frag = ((typeof mod.root === 'string') ? mod.root : self.root) + (mod.path || mod.fullpath);
2835
+ frags.push(
2836
+ self._filter(frag, mod.name)
2837
+ );
2838
+ }
2839
+ tmpBase = comboBase + frags.join(comboSep);
2840
+ baseLen = tmpBase.length;
2841
+ if (maxURLLength <= comboBase.length) {
2842
+ maxURLLength = MAX_URL_LENGTH;
2843
+ }
2844
+
2845
+ if (frags.length) {
2846
+ if (baseLen > maxURLLength) {
2847
+ fragSubset = [];
2848
+ for (i = 0, len = frags.length; i < len; i++) {
2849
+ fragSubset.push(frags[i]);
2850
+ tmpBase = comboBase + fragSubset.join(comboSep);
2851
+
2852
+ if (tmpBase.length > maxURLLength) {
2853
+ frag = fragSubset.pop();
2854
+ tmpBase = comboBase + fragSubset.join(comboSep);
2855
+ resolved[type].push(self._filter(tmpBase, null, comboMeta.group));
2856
+ fragSubset = [];
2857
+ if (frag) {
2858
+ fragSubset.push(frag);
2859
+ }
2860
+ }
2861
+ }
2862
+ if (fragSubset.length) {
2863
+ tmpBase = comboBase + fragSubset.join(comboSep);
2864
+ resolved[type].push(self._filter(tmpBase, null, comboMeta.group));
2865
+ }
2866
+ } else {
2867
+ resolved[type].push(self._filter(tmpBase, null, comboMeta.group));
2868
+ }
2869
+ }
2870
+ }
2871
+ }
2872
+ }
2873
+ }
2874
+ return resolved;
2875
+ },
2876
+
2877
+ /**
2878
+ Shortcut to calculate, resolve and load all modules.
2879
+
2880
+ var loader = new Y.Loader({
2881
+ ignoreRegistered: true,
2882
+ modules: {
2883
+ mod: {
2884
+ path: 'mod.js'
2885
+ }
2886
+ },
2887
+ requires: [ 'mod' ]
2888
+ });
2889
+ loader.load(function() {
2890
+ console.log('All modules have loaded..');
2891
+ });
2892
+
2893
+
2894
+ @method load
2895
+ @param {Function} cb Executed after all load operations are complete
2896
+ */
2897
+ load: function(cb) {
2898
+ if (!cb) {
2899
+ return;
2900
+ }
2901
+ var self = this,
2902
+ out = self.resolve(true);
2903
+
2904
+ self.data = out;
2905
+
2906
+ self.onEnd = function() {
2907
+ cb.apply(self.context || self, arguments);
2908
+ };
2909
+
2910
+ self.insert();
2911
+ }
2912
+ };
2913
+
2914
+
2915
+ }, '@VERSION@', {"requires": ["get", "features"]});