@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,2955 @@
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
+ Y.log('Found CSS module on page: ' + v.name, 'info', 'loader');
679
+ this.loaded[v.name] = true;
680
+ }
681
+ }
682
+ this._internal = internal;
683
+ }
684
+ }
685
+ return this.moduleInfo[name];
686
+ },
687
+ /**
688
+ * Expand the names that are aliases to other modules.
689
+ * @method _expandAliases
690
+ * @param {string[]} list a module name or a list of names to be expanded
691
+ * @private
692
+ * @return {array}
693
+ */
694
+ _expandAliases: function(list) {
695
+ var expanded = [],
696
+ aliases = YUI.Env.aliases,
697
+ i, name;
698
+ list = Y.Array(list);
699
+ for (i = 0; i < list.length; i += 1) {
700
+ name = list[i];
701
+ expanded.push.apply(expanded, aliases[name] ? aliases[name] : [name]);
702
+ }
703
+ return expanded;
704
+ },
705
+ /**
706
+ * Populate the conditions cache from raw modules, this is necessary
707
+ * because no other module will require a conditional module, instead
708
+ * the condition has to be executed and then the module is analyzed
709
+ * to be included in the final requirement list. Without this cache
710
+ * conditional modules will be simply ignored.
711
+ * @method _populateConditionsCache
712
+ * @private
713
+ */
714
+ _populateConditionsCache: function() {
715
+ var rawMetaModules = META.modules,
716
+ cache = GLOBAL_ENV._conditions,
717
+ i, j, t, trigger;
718
+
719
+ // if we have conditions in cache and cache is enabled
720
+ // we should port them to this loader instance
721
+ if (cache && !this.ignoreRegistered) {
722
+ for (i in cache) {
723
+ if (cache.hasOwnProperty(i)) {
724
+ this.conditions[i] = Y.merge(cache[i]);
725
+ }
726
+ }
727
+ } else {
728
+ for (i in rawMetaModules) {
729
+ if (rawMetaModules.hasOwnProperty(i) && rawMetaModules[i].condition) {
730
+ t = this._expandAliases(rawMetaModules[i].condition.trigger);
731
+ for (j = 0; j < t.length; j += 1) {
732
+ trigger = t[j];
733
+ this.conditions[trigger] = this.conditions[trigger] || {};
734
+ this.conditions[trigger][rawMetaModules[i].name || i] = rawMetaModules[i].condition;
735
+ }
736
+ }
737
+ }
738
+ GLOBAL_ENV._conditions = this.conditions;
739
+ }
740
+ },
741
+ /**
742
+ * Reset modules in the module cache to a pre-processed state so additional
743
+ * computations with a different skin or language will work as expected.
744
+ * @method _resetModules
745
+ * @private
746
+ */
747
+ _resetModules: function() {
748
+ var self = this, i, o,
749
+ mod, name, details;
750
+ for (i in self.moduleInfo) {
751
+ if (self.moduleInfo.hasOwnProperty(i) && self.moduleInfo[i]) {
752
+ mod = self.moduleInfo[i];
753
+ name = mod.name;
754
+ details = (YUI.Env.mods[name] ? YUI.Env.mods[name].details : null);
755
+
756
+ if (details) {
757
+ self.moduleInfo[name]._reset = true;
758
+ self.moduleInfo[name].requires = details.requires || [];
759
+ self.moduleInfo[name].optional = details.optional || [];
760
+ self.moduleInfo[name].supersedes = details.supercedes || [];
761
+ }
762
+
763
+ if (mod.defaults) {
764
+ for (o in mod.defaults) {
765
+ if (mod.defaults.hasOwnProperty(o)) {
766
+ if (mod[o]) {
767
+ mod[o] = mod.defaults[o];
768
+ }
769
+ }
770
+ }
771
+ }
772
+ mod.langCache = undefined;
773
+ mod.skinCache = undefined;
774
+ if (mod.skinnable) {
775
+ self._addSkin(self.skin.defaultSkin, mod.name);
776
+ }
777
+ }
778
+ }
779
+ },
780
+ /**
781
+ Regex that matches a CSS URL. Used to guess the file type when it's not
782
+ specified.
783
+
784
+ @property REGEX_CSS
785
+ @type RegExp
786
+ @final
787
+ @protected
788
+ @since 3.5.0
789
+ **/
790
+ REGEX_CSS: /\.css(?:[?;].*)?$/i,
791
+
792
+ /**
793
+ * Default filters for raw and debug
794
+ * @property FILTER_DEFS
795
+ * @type Object
796
+ * @final
797
+ * @protected
798
+ */
799
+ FILTER_DEFS: {
800
+ RAW: {
801
+ 'searchExp': '-min\\.js',
802
+ 'replaceStr': '.js'
803
+ },
804
+ DEBUG: {
805
+ 'searchExp': '-min\\.js',
806
+ 'replaceStr': '-debug.js'
807
+ },
808
+ COVERAGE: {
809
+ 'searchExp': '-min\\.js',
810
+ 'replaceStr': '-coverage.js'
811
+ }
812
+ },
813
+ /*
814
+ * Check the pages meta-data and cache the result.
815
+ * @method _inspectPage
816
+ * @private
817
+ */
818
+ _inspectPage: function() {
819
+ var self = this, v, m, req, mr, i;
820
+
821
+ for (i in ON_PAGE) {
822
+ if (ON_PAGE.hasOwnProperty(i)) {
823
+ v = ON_PAGE[i];
824
+ if (v.details) {
825
+ m = self.getModuleInfo(v.name);
826
+ req = v.details.requires;
827
+ mr = m && m.requires;
828
+
829
+ if (m) {
830
+ if (!m._inspected && req && mr.length !== req.length) {
831
+ // console.log('deleting ' + m.name);
832
+ delete m.expanded;
833
+ }
834
+ } else {
835
+ m = self.addModule(v.details, i);
836
+ }
837
+ m._inspected = true;
838
+ }
839
+ }
840
+ }
841
+ },
842
+ /*
843
+ * returns true if b is not loaded, and is required directly or by means of modules it supersedes.
844
+ * @private
845
+ * @method _requires
846
+ * @param {String} mod1 The first module to compare
847
+ * @param {String} mod2 The second module to compare
848
+ */
849
+ _requires: function(mod1, mod2) {
850
+
851
+ var i, rm, after_map, s,
852
+ m = this.getModuleInfo(mod1),
853
+ other = this.getModuleInfo(mod2);
854
+
855
+ if (!m || !other) {
856
+ return false;
857
+ }
858
+
859
+ rm = m.expanded_map;
860
+ after_map = m.after_map;
861
+
862
+ // check if this module should be sorted after the other
863
+ // do this first to short circut circular deps
864
+ if (after_map && (mod2 in after_map)) {
865
+ return true;
866
+ }
867
+
868
+ after_map = other.after_map;
869
+
870
+ // and vis-versa
871
+ if (after_map && (mod1 in after_map)) {
872
+ return false;
873
+ }
874
+
875
+ // check if this module requires one the other supersedes
876
+ s = other.supersedes;
877
+ if (s) {
878
+ for (i = 0; i < s.length; i++) {
879
+ if (this._requires(mod1, s[i])) {
880
+ return true;
881
+ }
882
+ }
883
+ }
884
+
885
+ s = m.supersedes;
886
+ if (s) {
887
+ for (i = 0; i < s.length; i++) {
888
+ if (this._requires(mod2, s[i])) {
889
+ return false;
890
+ }
891
+ }
892
+ }
893
+
894
+ // check if this module requires the other directly
895
+ // if (r && yArray.indexOf(r, mod2) > -1) {
896
+ if (rm && (mod2 in rm)) {
897
+ return true;
898
+ }
899
+
900
+ // external css files should be sorted below yui css
901
+ if (m.ext && m.type === CSS && !other.ext && other.type === CSS) {
902
+ return true;
903
+ }
904
+
905
+ return false;
906
+ },
907
+ /**
908
+ * Apply a new config to the Loader instance
909
+ * @method _config
910
+ * @private
911
+ * @param {Object} o The new configuration
912
+ */
913
+ _config: function(o) {
914
+ var i, j, val, a, f, group, groupName, self = this,
915
+ mods = [], mod, modInfo;
916
+ // apply config values
917
+ if (o) {
918
+ for (i in o) {
919
+ if (o.hasOwnProperty(i)) {
920
+ val = o[i];
921
+ //TODO This should be a case
922
+ if (i === 'require') {
923
+ self.require(val);
924
+ } else if (i === 'skin') {
925
+ //If the config.skin is a string, format to the expected object
926
+ if (typeof val === 'string') {
927
+ self.skin.defaultSkin = o.skin;
928
+ val = {
929
+ defaultSkin: val
930
+ };
931
+ }
932
+
933
+ Y.mix(self.skin, val, true);
934
+ } else if (i === 'groups') {
935
+ for (j in val) {
936
+ if (val.hasOwnProperty(j)) {
937
+ // Y.log('group: ' + j);
938
+ groupName = j;
939
+ group = val[j];
940
+ self.addGroup(group, groupName);
941
+ if (group.aliases) {
942
+ for (a in group.aliases) {
943
+ if (group.aliases.hasOwnProperty(a)) {
944
+ self.addAlias(group.aliases[a], a);
945
+ }
946
+ }
947
+ }
948
+ }
949
+ }
950
+
951
+ } else if (i === 'modules') {
952
+ // add a hash of module definitions
953
+ for (j in val) {
954
+ if (val.hasOwnProperty(j)) {
955
+ self.addModule(val[j], j);
956
+ }
957
+ }
958
+ } else if (i === 'aliases') {
959
+ for (j in val) {
960
+ if (val.hasOwnProperty(j)) {
961
+ self.addAlias(val[j], j);
962
+ }
963
+ }
964
+ } else if (i === 'gallery') {
965
+ if (this.groups.gallery.update) {
966
+ this.groups.gallery.update(val, o);
967
+ }
968
+ } else if (i === 'yui2' || i === '2in3') {
969
+ if (this.groups.yui2.update) {
970
+ this.groups.yui2.update(o['2in3'], o.yui2, o);
971
+ }
972
+ } else {
973
+ self[i] = val;
974
+ }
975
+ }
976
+ }
977
+ }
978
+
979
+ // fix filter
980
+ f = self.filter;
981
+
982
+ if (L.isString(f)) {
983
+ f = f.toUpperCase();
984
+ self.filterName = f;
985
+ self.filter = self.FILTER_DEFS[f];
986
+ if (f === 'DEBUG') {
987
+ self.require('yui-log', 'dump');
988
+ }
989
+ }
990
+
991
+ if (self.filterName && self.coverage) {
992
+ if (self.filterName === 'COVERAGE' && L.isArray(self.coverage) && self.coverage.length) {
993
+ for (i = 0; i < self.coverage.length; i++) {
994
+ mod = self.coverage[i];
995
+ modInfo = self.getModuleInfo(mod);
996
+ if (modInfo && modInfo.use) {
997
+ mods = mods.concat(modInfo.use);
998
+ } else {
999
+ mods.push(mod);
1000
+ }
1001
+ }
1002
+ self.filters = self.filters || {};
1003
+ Y.Array.each(mods, function(mod) {
1004
+ self.filters[mod] = self.FILTER_DEFS.COVERAGE;
1005
+ });
1006
+ self.filterName = 'RAW';
1007
+ self.filter = self.FILTER_DEFS[self.filterName];
1008
+ }
1009
+ }
1010
+
1011
+ },
1012
+
1013
+ /**
1014
+ * Returns the skin module name for the specified skin name. If a
1015
+ * module name is supplied, the returned skin module name is
1016
+ * specific to the module passed in.
1017
+ * @method formatSkin
1018
+ * @param {string} skin the name of the skin.
1019
+ * @param {string} mod optional: the name of a module to skin.
1020
+ * @return {string} the full skin module name.
1021
+ */
1022
+ formatSkin: function(skin, mod) {
1023
+ var s = SKIN_PREFIX + skin;
1024
+ if (mod) {
1025
+ s = s + '-' + mod;
1026
+ }
1027
+
1028
+ return s;
1029
+ },
1030
+
1031
+ /**
1032
+ * Adds the skin def to the module info
1033
+ * @method _addSkin
1034
+ * @param {string} skin the name of the skin.
1035
+ * @param {string} mod the name of the module.
1036
+ * @param {string} parent parent module if this is a skin of a
1037
+ * submodule or plugin.
1038
+ * @return {string} the module name for the skin.
1039
+ * @private
1040
+ */
1041
+ _addSkin: function(skin, mod, parent) {
1042
+ var pkg, name, nmod,
1043
+ sinf = this.skin,
1044
+ mdef = mod && this.getModuleInfo(mod),
1045
+ ext = mdef && mdef.ext;
1046
+
1047
+ // Add a module definition for the module-specific skin css
1048
+ if (mod) {
1049
+ name = this.formatSkin(skin, mod);
1050
+ if (!this.getModuleInfo(name)) {
1051
+ pkg = mdef.pkg || mod;
1052
+ nmod = {
1053
+ skin: true,
1054
+ name: name,
1055
+ group: mdef.group,
1056
+ type: 'css',
1057
+ after: sinf.after,
1058
+ path: (parent || pkg) + '/' + sinf.base + skin +
1059
+ '/' + mod + '.css',
1060
+ ext: ext
1061
+ };
1062
+ if (mdef.base) {
1063
+ nmod.base = mdef.base;
1064
+ }
1065
+ if (mdef.configFn) {
1066
+ nmod.configFn = mdef.configFn;
1067
+ }
1068
+ this.addModule(nmod, name);
1069
+
1070
+ Y.log('Adding skin (' + name + '), ' + parent + ', ' + pkg + ', ' + nmod.path, 'info', 'loader');
1071
+ }
1072
+ }
1073
+
1074
+ return name;
1075
+ },
1076
+ /**
1077
+ * Adds an alias module to the system
1078
+ * @method addAlias
1079
+ * @param {Array} use An array of modules that makes up this alias
1080
+ * @param {String} name The name of the alias
1081
+ * @example
1082
+ * var loader = new Y.Loader({});
1083
+ * loader.addAlias([ 'node', 'yql' ], 'davglass');
1084
+ * loader.require(['davglass']);
1085
+ * var out = loader.resolve(true);
1086
+ *
1087
+ * //out.js will contain Node and YQL modules
1088
+ */
1089
+ addAlias: function(use, name) {
1090
+ YUI.Env.aliases[name] = use;
1091
+ this.addModule({
1092
+ name: name,
1093
+ use: use
1094
+ });
1095
+ },
1096
+ /**
1097
+ * Add a new module group
1098
+ * @method addGroup
1099
+ * @param {Object} config An object containing the group configuration data
1100
+ * @param {String} config.name required, the group name
1101
+ * @param {String} config.base The base directory for this module group
1102
+ * @param {String} config.root The root path to add to each combo resource path
1103
+ * @param {Boolean} config.combine Should the request be combined
1104
+ * @param {String} config.comboBase Combo service base path
1105
+ * @param {Object} config.modules The group of modules
1106
+ * @param {String} name the group name.
1107
+ * @example
1108
+ * var loader = new Y.Loader({});
1109
+ * loader.addGroup({
1110
+ * name: 'davglass',
1111
+ * combine: true,
1112
+ * comboBase: '/combo?',
1113
+ * root: '',
1114
+ * modules: {
1115
+ * //Module List here
1116
+ * }
1117
+ * }, 'davglass');
1118
+ */
1119
+ addGroup: function(o, name) {
1120
+ var mods = o.modules,
1121
+ self = this,
1122
+ defaultBase = o.defaultBase || Y.config.defaultBase,
1123
+ i, v;
1124
+
1125
+ name = name || o.name;
1126
+ o.name = name;
1127
+ self.groups[name] = o;
1128
+
1129
+ if (!o.base && defaultBase && o.root) {
1130
+ o.base = defaultBase + o.root;
1131
+ }
1132
+
1133
+ if (o.patterns) {
1134
+ for (i in o.patterns) {
1135
+ if (o.patterns.hasOwnProperty(i)) {
1136
+ o.patterns[i].group = name;
1137
+ self.patterns[i] = o.patterns[i];
1138
+ }
1139
+ }
1140
+ }
1141
+
1142
+ if (mods) {
1143
+ for (i in mods) {
1144
+ if (mods.hasOwnProperty(i)) {
1145
+ v = mods[i];
1146
+ if (typeof v === 'string') {
1147
+ v = { name: i, fullpath: v };
1148
+ }
1149
+ v.group = name;
1150
+ self.addModule(v, i);
1151
+ }
1152
+ }
1153
+ }
1154
+ },
1155
+
1156
+ /**
1157
+ * Add a new module to the component metadata.
1158
+ * @method addModule
1159
+ * @param {Object} config An object containing the module data.
1160
+ * @param {String} config.name Required, the component name
1161
+ * @param {String} config.type Required, the component type (js or css)
1162
+ * @param {String} config.path Required, the path to the script from `base`
1163
+ * @param {Array} config.requires Array of modules required by this component
1164
+ * @param {Array} [config.optional] Array of optional modules for this component
1165
+ * @param {Array} [config.supersedes] Array of the modules this component replaces
1166
+ * @param {Array} [config.after] Array of modules the components which, if present, should be sorted above this one
1167
+ * @param {Object} [config.after_map] Faster alternative to 'after' -- supply a hash instead of an array
1168
+ * @param {Number} [config.rollup] The number of superseded modules required for automatic rollup
1169
+ * @param {String} [config.fullpath] If `fullpath` is specified, this is used instead of the configured `base + path`
1170
+ * @param {Boolean} [config.skinnable] Flag to determine if skin assets should automatically be pulled in
1171
+ * @param {Object} [config.submodules] Hash of submodules
1172
+ * @param {String} [config.group] The group the module belongs to -- this is set automatically when it is added as part of a group configuration.
1173
+ * @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"]`
1174
+ * @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:
1175
+ * @param {String} [config.condition.trigger] The name of a module that can trigger the auto-load
1176
+ * @param {Function} [config.condition.test] A function that returns true when the module is to be loaded.
1177
+ * @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"`.
1178
+ * @param {String} [config.condition.when] Specifies the load order of the conditional module
1179
+ * with regard to the position of the trigger module.
1180
+ * This should be one of three values: `before`, `after`, or `instead`. The default is `after`.
1181
+ * @param {Object} [config.testresults] A hash of test results from `Y.Features.all()`
1182
+ * @param {Function} [config.configFn] A function to exectute when configuring this module
1183
+ * @param {Object} config.configFn.mod The module config, modifying this object will modify it's config. Returning false will delete the module's config.
1184
+ * @param {String[]} [config.optionalRequires] List of dependencies that
1185
+ may optionally be loaded by this loader. This is targeted mostly at
1186
+ polyfills, since they should not be in the list of requires because
1187
+ polyfills are assumed to be available in the global scope.
1188
+ * @param {Function} [config.test] Test to be called when this module is
1189
+ added as an optional dependency of another module. If the test function
1190
+ returns `false`, the module will be ignored and will not be attached to
1191
+ this YUI instance.
1192
+ * @param {String} [name] The module name, required if not in the module data.
1193
+ * @return {Object} the module definition or null if the object passed in did not provide all required attributes.
1194
+ */
1195
+ addModule: function(o, name) {
1196
+ name = name || o.name;
1197
+
1198
+ if (typeof o === 'string') {
1199
+ o = { name: name, fullpath: o };
1200
+ }
1201
+
1202
+
1203
+ var subs, i, l, t, sup, s, smod, plugins, plug,
1204
+ j, langs, packName, supName, flatSup, flatLang, lang, ret,
1205
+ overrides, skinname, when, g, p,
1206
+ modInfo = this.moduleInfo[name],
1207
+ conditions = this.conditions, trigger;
1208
+
1209
+ //Only merge this data if the temp flag is set
1210
+ //from an earlier pass from a pattern or else
1211
+ //an override module (YUI_config) can not be used to
1212
+ //replace a default module.
1213
+ if (modInfo && modInfo.temp) {
1214
+ //This catches temp modules loaded via a pattern
1215
+ // The module will be added twice, once from the pattern and
1216
+ // Once from the actual add call, this ensures that properties
1217
+ // that were added to the module the first time around (group: gallery)
1218
+ // are also added the second time around too.
1219
+ o = Y.merge(modInfo, o);
1220
+ }
1221
+
1222
+ o.name = name;
1223
+
1224
+ if (!o || !o.name) {
1225
+ return null;
1226
+ }
1227
+
1228
+ if (!o.type) {
1229
+ //Always assume it's javascript unless the CSS pattern is matched.
1230
+ o.type = JS;
1231
+ p = o.path || o.fullpath;
1232
+ if (p && this.REGEX_CSS.test(p)) {
1233
+ Y.log('Auto determined module type as CSS', 'warn', 'loader');
1234
+ o.type = CSS;
1235
+ }
1236
+ }
1237
+
1238
+ if (!o.path && !o.fullpath) {
1239
+ o.path = _path(name, name, o.type);
1240
+ }
1241
+ o.supersedes = o.supersedes || o.use;
1242
+
1243
+ o.ext = ('ext' in o) ? o.ext : (this._internal) ? false : true;
1244
+
1245
+ // Handle submodule logic
1246
+ subs = o.submodules;
1247
+
1248
+ this.moduleInfo[name] = o;
1249
+
1250
+ o.requires = o.requires || [];
1251
+
1252
+ /*
1253
+ Only allowing the cascade of requires information, since
1254
+ optional and supersedes are far more fine grained than
1255
+ a blanket requires is.
1256
+ */
1257
+ if (this.requires) {
1258
+ for (i = 0; i < this.requires.length; i++) {
1259
+ o.requires.push(this.requires[i]);
1260
+ }
1261
+ }
1262
+ if (o.group && this.groups && this.groups[o.group]) {
1263
+ g = this.groups[o.group];
1264
+ if (g.requires) {
1265
+ for (i = 0; i < g.requires.length; i++) {
1266
+ o.requires.push(g.requires[i]);
1267
+ }
1268
+ }
1269
+ }
1270
+
1271
+
1272
+ if (!o.defaults) {
1273
+ o.defaults = {
1274
+ requires: o.requires ? [].concat(o.requires) : null,
1275
+ supersedes: o.supersedes ? [].concat(o.supersedes) : null,
1276
+ optional: o.optional ? [].concat(o.optional) : null
1277
+ };
1278
+ }
1279
+
1280
+ if (o.skinnable && o.ext && o.temp) {
1281
+ skinname = this._addSkin(this.skin.defaultSkin, name);
1282
+ o.requires.unshift(skinname);
1283
+ }
1284
+
1285
+ if (o.requires.length) {
1286
+ o.requires = this.filterRequires(o.requires) || [];
1287
+ }
1288
+
1289
+ if (!o.langPack && o.lang) {
1290
+ langs = yArray(o.lang);
1291
+ for (j = 0; j < langs.length; j++) {
1292
+ lang = langs[j];
1293
+ packName = this.getLangPackName(lang, name);
1294
+ smod = this.getModuleInfo(packName);
1295
+ if (!smod) {
1296
+ smod = this._addLangPack(lang, o, packName);
1297
+ }
1298
+ }
1299
+ }
1300
+
1301
+
1302
+ if (subs) {
1303
+ sup = o.supersedes || [];
1304
+ l = 0;
1305
+
1306
+ for (i in subs) {
1307
+ if (subs.hasOwnProperty(i)) {
1308
+ s = subs[i];
1309
+
1310
+ s.path = s.path || _path(name, i, o.type);
1311
+ s.pkg = name;
1312
+ s.group = o.group;
1313
+
1314
+ if (s.supersedes) {
1315
+ sup = sup.concat(s.supersedes);
1316
+ }
1317
+
1318
+ smod = this.addModule(s, i);
1319
+ sup.push(i);
1320
+
1321
+ if (smod.skinnable) {
1322
+ o.skinnable = true;
1323
+ overrides = this.skin.overrides;
1324
+ if (overrides && overrides[i]) {
1325
+ for (j = 0; j < overrides[i].length; j++) {
1326
+ skinname = this._addSkin(overrides[i][j],
1327
+ i, name);
1328
+ sup.push(skinname);
1329
+ }
1330
+ }
1331
+ skinname = this._addSkin(this.skin.defaultSkin,
1332
+ i, name);
1333
+ sup.push(skinname);
1334
+ }
1335
+
1336
+ // looks like we are expected to work out the metadata
1337
+ // for the parent module language packs from what is
1338
+ // specified in the child modules.
1339
+ if (s.lang && s.lang.length) {
1340
+
1341
+ langs = yArray(s.lang);
1342
+ for (j = 0; j < langs.length; j++) {
1343
+ lang = langs[j];
1344
+ packName = this.getLangPackName(lang, name);
1345
+ supName = this.getLangPackName(lang, i);
1346
+ smod = this.getModuleInfo(packName);
1347
+
1348
+ if (!smod) {
1349
+ smod = this._addLangPack(lang, o, packName);
1350
+ }
1351
+
1352
+ flatSup = flatSup || yArray.hash(smod.supersedes);
1353
+
1354
+ if (!(supName in flatSup)) {
1355
+ smod.supersedes.push(supName);
1356
+ }
1357
+
1358
+ o.lang = o.lang || [];
1359
+
1360
+ flatLang = flatLang || yArray.hash(o.lang);
1361
+
1362
+ if (!(lang in flatLang)) {
1363
+ o.lang.push(lang);
1364
+ }
1365
+
1366
+ // Y.log('pack ' + packName + ' should supersede ' + supName);
1367
+ // Add rollup file, need to add to supersedes list too
1368
+
1369
+ // default packages
1370
+ packName = this.getLangPackName(ROOT_LANG, name);
1371
+ supName = this.getLangPackName(ROOT_LANG, i);
1372
+
1373
+ smod = this.getModuleInfo(packName);
1374
+
1375
+ if (!smod) {
1376
+ smod = this._addLangPack(lang, o, packName);
1377
+ }
1378
+
1379
+ if (!(supName in flatSup)) {
1380
+ smod.supersedes.push(supName);
1381
+ }
1382
+
1383
+ // Y.log('pack ' + packName + ' should supersede ' + supName);
1384
+ // Add rollup file, need to add to supersedes list too
1385
+
1386
+ }
1387
+ }
1388
+
1389
+ l++;
1390
+ }
1391
+ }
1392
+ //o.supersedes = YObject.keys(yArray.hash(sup));
1393
+ o.supersedes = yArray.dedupe(sup);
1394
+ if (this.allowRollup) {
1395
+ o.rollup = (l < 4) ? l : Math.min(l - 1, 4);
1396
+ }
1397
+ }
1398
+
1399
+ plugins = o.plugins;
1400
+ if (plugins) {
1401
+ for (i in plugins) {
1402
+ if (plugins.hasOwnProperty(i)) {
1403
+ plug = plugins[i];
1404
+ plug.pkg = name;
1405
+ plug.path = plug.path || _path(name, i, o.type);
1406
+ plug.requires = plug.requires || [];
1407
+ plug.group = o.group;
1408
+ this.addModule(plug, i);
1409
+ if (o.skinnable) {
1410
+ this._addSkin(this.skin.defaultSkin, i, name);
1411
+ }
1412
+
1413
+ }
1414
+ }
1415
+ }
1416
+
1417
+ if (o.condition) {
1418
+ t = this._expandAliases(o.condition.trigger);
1419
+ for (i = 0; i < t.length; i++) {
1420
+ trigger = t[i];
1421
+ when = o.condition.when;
1422
+ conditions[trigger] = conditions[trigger] || {};
1423
+ conditions[trigger][name] = o.condition;
1424
+ // the 'when' attribute can be 'before', 'after', or 'instead'
1425
+ // the default is after.
1426
+ if (when && when !== 'after') {
1427
+ if (when === 'instead') { // replace the trigger
1428
+ o.supersedes = o.supersedes || [];
1429
+ o.supersedes.push(trigger);
1430
+ }
1431
+ // before the trigger
1432
+ // the trigger requires the conditional mod,
1433
+ // so it should appear before the conditional
1434
+ // mod if we do not intersede.
1435
+ } else { // after the trigger
1436
+ o.after = o.after || [];
1437
+ o.after.push(trigger);
1438
+ }
1439
+ }
1440
+ }
1441
+
1442
+ if (o.supersedes) {
1443
+ o.supersedes = this.filterRequires(o.supersedes);
1444
+ }
1445
+
1446
+ if (o.after) {
1447
+ o.after = this.filterRequires(o.after);
1448
+ o.after_map = yArray.hash(o.after);
1449
+ }
1450
+
1451
+ // this.dirty = true;
1452
+
1453
+ if (o.configFn) {
1454
+ ret = o.configFn(o);
1455
+ if (ret === false) {
1456
+ Y.log('Config function returned false for ' + name + ', skipping.', 'info', 'loader');
1457
+ delete this.moduleInfo[name];
1458
+ delete GLOBAL_ENV._renderedMods[name];
1459
+ o = null;
1460
+ }
1461
+ }
1462
+ //Add to global cache
1463
+ if (o) {
1464
+ if (!GLOBAL_ENV._renderedMods) {
1465
+ GLOBAL_ENV._renderedMods = {};
1466
+ }
1467
+ GLOBAL_ENV._renderedMods[name] = Y.mix(GLOBAL_ENV._renderedMods[name] || {}, o);
1468
+ GLOBAL_ENV._conditions = conditions;
1469
+ }
1470
+
1471
+ return o;
1472
+ },
1473
+
1474
+ /**
1475
+ * Add a requirement for one or more module
1476
+ * @method require
1477
+ * @param {string[] | string*} what the modules to load.
1478
+ */
1479
+ require: function(what) {
1480
+ var a = (typeof what === 'string') ? yArray(arguments) : what;
1481
+ this.dirty = true;
1482
+ this.required = Y.merge(this.required, yArray.hash(this.filterRequires(a)));
1483
+
1484
+ this._explodeRollups();
1485
+ },
1486
+ /**
1487
+ * Grab all the items that were asked for, check to see if the Loader
1488
+ * meta-data contains a "use" array. If it doesm remove the asked item and replace it with
1489
+ * the content of the "use".
1490
+ * This will make asking for: "dd"
1491
+ * Actually ask for: "dd-ddm-base,dd-ddm,dd-ddm-drop,dd-drag,dd-proxy,dd-constrain,dd-drop,dd-scroll,dd-drop-plugin"
1492
+ * @private
1493
+ * @method _explodeRollups
1494
+ */
1495
+ _explodeRollups: function() {
1496
+ var self = this, m, m2, i, a, v, len, len2,
1497
+ r = self.required;
1498
+
1499
+ if (!self.allowRollup) {
1500
+ for (i in r) {
1501
+ if (r.hasOwnProperty(i)) {
1502
+ m = self.getModule(i);
1503
+ if (m && m.use) {
1504
+ len = m.use.length;
1505
+ for (a = 0; a < len; a++) {
1506
+ m2 = self.getModule(m.use[a]);
1507
+ if (m2 && m2.use) {
1508
+ len2 = m2.use.length;
1509
+ for (v = 0; v < len2; v++) {
1510
+ r[m2.use[v]] = true;
1511
+ }
1512
+ } else {
1513
+ r[m.use[a]] = true;
1514
+ }
1515
+ }
1516
+ }
1517
+ }
1518
+ }
1519
+ self.required = r;
1520
+ }
1521
+
1522
+ },
1523
+ /**
1524
+ * Explodes the required array to remove aliases and replace them with real modules
1525
+ * @method filterRequires
1526
+ * @param {Array} r The original requires array
1527
+ * @return {Array} The new array of exploded requirements
1528
+ */
1529
+ filterRequires: function(r) {
1530
+ if (r) {
1531
+ if (!Y.Lang.isArray(r)) {
1532
+ r = [r];
1533
+ }
1534
+ r = Y.Array(r);
1535
+ var c = [], i, mod, o, m;
1536
+
1537
+ for (i = 0; i < r.length; i++) {
1538
+ mod = this.getModule(r[i]);
1539
+ if (mod && mod.use) {
1540
+ for (o = 0; o < mod.use.length; o++) {
1541
+ //Must walk the other modules in case a module is a rollup of rollups (datatype)
1542
+ m = this.getModule(mod.use[o]);
1543
+ if (m && m.use && (m.name !== mod.name)) {
1544
+ c = Y.Array.dedupe([].concat(c, this.filterRequires(m.use)));
1545
+ } else {
1546
+ c.push(mod.use[o]);
1547
+ }
1548
+ }
1549
+ } else {
1550
+ c.push(r[i]);
1551
+ }
1552
+ }
1553
+ r = c;
1554
+ }
1555
+ return r;
1556
+ },
1557
+
1558
+ /**
1559
+ Returns `true` if the module can be attached to the YUI instance. Runs
1560
+ the module's test if there is one and caches its result.
1561
+
1562
+ @method _canBeAttached
1563
+ @param {String} module Name of the module to check.
1564
+ @return {Boolean} Result of the module's test if it has one, or `true`.
1565
+ **/
1566
+ _canBeAttached: function (m) {
1567
+ m = this.getModule(m);
1568
+ if (m && m.test) {
1569
+ if (!m.hasOwnProperty('_testResult')) {
1570
+ m._testResult = m.test(Y);
1571
+ }
1572
+ return m._testResult;
1573
+ }
1574
+ // return `true` for modules not registered as Loader will know what
1575
+ // to do with them later on
1576
+ return true;
1577
+ },
1578
+
1579
+ /**
1580
+ * Returns an object containing properties for all modules required
1581
+ * in order to load the requested module
1582
+ * @method getRequires
1583
+ * @param {object} mod The module definition from moduleInfo.
1584
+ * @return {array} the expanded requirement list.
1585
+ */
1586
+ getRequires: function(mod) {
1587
+
1588
+ if (!mod) {
1589
+ //console.log('returning no reqs for ' + mod.name);
1590
+ return NO_REQUIREMENTS;
1591
+ }
1592
+
1593
+ if (mod._parsed) {
1594
+ //console.log('returning requires for ' + mod.name, mod.requires);
1595
+ return mod.expanded || NO_REQUIREMENTS;
1596
+ }
1597
+
1598
+ //TODO add modue cache here out of scope..
1599
+
1600
+ var i, m, j, length, add, packName, lang, testresults = this.testresults,
1601
+ name = mod.name, cond,
1602
+ adddef = ON_PAGE[name] && ON_PAGE[name].details,
1603
+ optReqs = mod.optionalRequires,
1604
+ d, go, def,
1605
+ r, old_mod,
1606
+ o, skinmod, skindef, skinpar, skinname,
1607
+ intl = mod.lang || mod.intl,
1608
+ ftests = Y.Features && Y.Features.tests.load,
1609
+ hash, reparse;
1610
+
1611
+ // console.log(name);
1612
+
1613
+ // pattern match leaves module stub that needs to be filled out
1614
+ if (mod.temp && adddef) {
1615
+ old_mod = mod;
1616
+ mod = this.addModule(adddef, name);
1617
+ mod.group = old_mod.group;
1618
+ mod.pkg = old_mod.pkg;
1619
+ delete mod.expanded;
1620
+ }
1621
+
1622
+ // console.log('cache: ' + mod.langCache + ' == ' + this.lang);
1623
+
1624
+ //If a skin or a lang is different, reparse..
1625
+ reparse = !((!this.lang || mod.langCache === this.lang) && (mod.skinCache === this.skin.defaultSkin));
1626
+
1627
+ if (mod.expanded && !reparse) {
1628
+ //Y.log('Already expanded ' + name + ', ' + mod.expanded);
1629
+ return mod.expanded;
1630
+ }
1631
+
1632
+ // Optional dependencies are dependencies that may or may not be
1633
+ // available.
1634
+ // This feature was designed specifically to be used when transpiling
1635
+ // ES6 modules, in order to use polyfills and regular scripts that define
1636
+ // global variables without having to import them since they should be
1637
+ // available in the global scope.
1638
+ if (optReqs) {
1639
+ for (i = 0, length = optReqs.length; i < length; i++) {
1640
+ if (this._canBeAttached(optReqs[i])) {
1641
+ mod.requires.push(optReqs[i]);
1642
+ }
1643
+ }
1644
+ }
1645
+
1646
+ d = [];
1647
+ hash = {};
1648
+ r = this.filterRequires(mod.requires);
1649
+ if (mod.lang) {
1650
+ //If a module has a lang attribute, auto add the intl requirement.
1651
+ d.unshift('intl');
1652
+ r.unshift('intl');
1653
+ intl = true;
1654
+ }
1655
+ o = this.filterRequires(mod.optional);
1656
+
1657
+ // Y.log("getRequires: " + name + " (dirty:" + this.dirty +
1658
+ // ", expanded:" + mod.expanded + ")");
1659
+
1660
+ mod._parsed = true;
1661
+ mod.langCache = this.lang;
1662
+ mod.skinCache = this.skin.defaultSkin;
1663
+
1664
+ for (i = 0; i < r.length; i++) {
1665
+ //Y.log(name + ' requiring ' + r[i], 'info', 'loader');
1666
+ if (!hash[r[i]]) {
1667
+ d.push(r[i]);
1668
+ hash[r[i]] = true;
1669
+ m = this.getModule(r[i]);
1670
+ if (m) {
1671
+ add = this.getRequires(m);
1672
+ intl = intl || (m.expanded_map &&
1673
+ (INTL in m.expanded_map));
1674
+ for (j = 0; j < add.length; j++) {
1675
+ d.push(add[j]);
1676
+ }
1677
+ }
1678
+ }
1679
+ }
1680
+
1681
+ // get the requirements from superseded modules, if any
1682
+ r = this.filterRequires(mod.supersedes);
1683
+ if (r) {
1684
+ for (i = 0; i < r.length; i++) {
1685
+ if (!hash[r[i]]) {
1686
+ // if this module has submodules, the requirements list is
1687
+ // expanded to include the submodules. This is so we can
1688
+ // prevent dups when a submodule is already loaded and the
1689
+ // parent is requested.
1690
+ if (mod.submodules) {
1691
+ d.push(r[i]);
1692
+ }
1693
+
1694
+ hash[r[i]] = true;
1695
+ m = this.getModule(r[i]);
1696
+
1697
+ if (m) {
1698
+ add = this.getRequires(m);
1699
+ intl = intl || (m.expanded_map &&
1700
+ (INTL in m.expanded_map));
1701
+ for (j = 0; j < add.length; j++) {
1702
+ d.push(add[j]);
1703
+ }
1704
+ }
1705
+ }
1706
+ }
1707
+ }
1708
+
1709
+ if (o && this.loadOptional) {
1710
+ for (i = 0; i < o.length; i++) {
1711
+ if (!hash[o[i]]) {
1712
+ d.push(o[i]);
1713
+ hash[o[i]] = true;
1714
+ m = this.getModuleInfo(o[i]);
1715
+ if (m) {
1716
+ add = this.getRequires(m);
1717
+ intl = intl || (m.expanded_map &&
1718
+ (INTL in m.expanded_map));
1719
+ for (j = 0; j < add.length; j++) {
1720
+ d.push(add[j]);
1721
+ }
1722
+ }
1723
+ }
1724
+ }
1725
+ }
1726
+
1727
+ cond = this.conditions[name];
1728
+
1729
+ if (cond) {
1730
+ //Set the module to not parsed since we have conditionals and this could change the dependency tree.
1731
+ mod._parsed = false;
1732
+ if (testresults && ftests) {
1733
+ oeach(testresults, function(result, id) {
1734
+ var condmod = ftests[id].name;
1735
+ if (!hash[condmod] && ftests[id].trigger === name) {
1736
+ if (result && ftests[id]) {
1737
+ hash[condmod] = true;
1738
+ d.push(condmod);
1739
+ }
1740
+ }
1741
+ });
1742
+ } else {
1743
+ for (i in cond) {
1744
+ if (cond.hasOwnProperty(i)) {
1745
+ if (!hash[i]) {
1746
+ def = cond[i];
1747
+ //first see if they've specfied a ua check
1748
+ //then see if they've got a test fn & if it returns true
1749
+ //otherwise just having a condition block is enough
1750
+ go = def && ((!def.ua && !def.test) || (def.ua && Y.UA[def.ua]) ||
1751
+ (def.test && def.test(Y, r)));
1752
+
1753
+ if (go) {
1754
+ hash[i] = true;
1755
+ d.push(i);
1756
+ m = this.getModule(i);
1757
+ if (m) {
1758
+ add = this.getRequires(m);
1759
+ for (j = 0; j < add.length; j++) {
1760
+ d.push(add[j]);
1761
+ }
1762
+
1763
+ }
1764
+ }
1765
+ }
1766
+ }
1767
+ }
1768
+ }
1769
+ }
1770
+
1771
+ // Create skin modules
1772
+ if (mod.skinnable) {
1773
+ skindef = this.skin.overrides;
1774
+ for (i in YUI.Env.aliases) {
1775
+ if (YUI.Env.aliases.hasOwnProperty(i)) {
1776
+ if (Y.Array.indexOf(YUI.Env.aliases[i], name) > -1) {
1777
+ skinpar = i;
1778
+ }
1779
+ }
1780
+ }
1781
+ if (skindef && (skindef[name] || (skinpar && skindef[skinpar]))) {
1782
+ skinname = name;
1783
+ if (skindef[skinpar]) {
1784
+ skinname = skinpar;
1785
+ }
1786
+ for (i = 0; i < skindef[skinname].length; i++) {
1787
+ skinmod = this._addSkin(skindef[skinname][i], name);
1788
+ if (!this.isCSSLoaded(skinmod, this._boot)) {
1789
+ d.push(skinmod);
1790
+ }
1791
+ }
1792
+ } else {
1793
+ skinmod = this._addSkin(this.skin.defaultSkin, name);
1794
+ if (!this.isCSSLoaded(skinmod, this._boot)) {
1795
+ d.push(skinmod);
1796
+ }
1797
+ }
1798
+ }
1799
+
1800
+ mod._parsed = false;
1801
+
1802
+ if (intl) {
1803
+
1804
+ if (mod.lang && !mod.langPack && Y.Intl) {
1805
+ lang = Y.Intl.lookupBestLang(this.lang || ROOT_LANG, mod.lang);
1806
+ //Y.log('Best lang: ' + lang + ', this.lang: ' + this.lang + ', mod.lang: ' + mod.lang);
1807
+ packName = this.getLangPackName(lang, name);
1808
+ if (packName) {
1809
+ d.unshift(packName);
1810
+ }
1811
+ }
1812
+ d.unshift(INTL);
1813
+ }
1814
+
1815
+ mod.expanded_map = yArray.hash(d);
1816
+
1817
+ mod.expanded = YObject.keys(mod.expanded_map);
1818
+
1819
+ return mod.expanded;
1820
+ },
1821
+ /**
1822
+ * Check to see if named css module is already loaded on the page
1823
+ * @method isCSSLoaded
1824
+ * @param {String} name The name of the css file
1825
+ * @param {Boolean} skip To skip the short-circuit for ignoreRegister
1826
+ * @return Boolean
1827
+ */
1828
+ isCSSLoaded: function(name, skip) {
1829
+ //TODO - Make this call a batching call with name being an array
1830
+ if (!name || !YUI.Env.cssStampEl || (!skip && this.ignoreRegistered)) {
1831
+ Y.log('isCSSLoaded was skipped for ' + name, 'warn', 'loader');
1832
+ return false;
1833
+ }
1834
+ var el = YUI.Env.cssStampEl,
1835
+ ret = false,
1836
+ mod = YUI.Env._cssLoaded[name],
1837
+ style = el.currentStyle; //IE
1838
+
1839
+
1840
+ if (mod !== undefined) {
1841
+ //Y.log('isCSSLoaded was cached for ' + name, 'warn', 'loader');
1842
+ return mod;
1843
+ }
1844
+
1845
+ //Add the classname to the element
1846
+ el.className = name;
1847
+
1848
+ if (!style) {
1849
+ style = Y.config.doc.defaultView.getComputedStyle(el, null);
1850
+ }
1851
+
1852
+ if (style && style.display === 'none') {
1853
+ ret = true;
1854
+ }
1855
+
1856
+ Y.log('Has Skin? ' + name + ' : ' + ret, 'info', 'loader');
1857
+
1858
+ el.className = ''; //Reset the classname to ''
1859
+
1860
+ YUI.Env._cssLoaded[name] = ret;
1861
+
1862
+ return ret;
1863
+ },
1864
+
1865
+ /**
1866
+ * Returns a hash of module names the supplied module satisfies.
1867
+ * @method getProvides
1868
+ * @param {string} name The name of the module.
1869
+ * @return {object} what this module provides.
1870
+ */
1871
+ getProvides: function(name) {
1872
+ var m = this.getModule(name), o, s;
1873
+ // supmap = this.provides;
1874
+
1875
+ if (!m) {
1876
+ return NOT_FOUND;
1877
+ }
1878
+
1879
+ if (m && !m.provides) {
1880
+ o = {};
1881
+ s = m.supersedes;
1882
+
1883
+ if (s) {
1884
+ yArray.each(s, function(v) {
1885
+ Y.mix(o, this.getProvides(v));
1886
+ }, this);
1887
+ }
1888
+
1889
+ o[name] = true;
1890
+ m.provides = o;
1891
+
1892
+ }
1893
+
1894
+ return m.provides;
1895
+ },
1896
+
1897
+ /**
1898
+ * Calculates the dependency tree, the result is stored in the sorted
1899
+ * property.
1900
+ * @method calculate
1901
+ * @param {object} o optional options object.
1902
+ * @param {string} type optional argument to prune modules.
1903
+ */
1904
+ calculate: function(o, type) {
1905
+ if (o || type || this.dirty) {
1906
+
1907
+ if (o) {
1908
+ this._config(o);
1909
+ }
1910
+
1911
+ if (!this._init) {
1912
+ this._setup();
1913
+ }
1914
+
1915
+ this._explode();
1916
+
1917
+ if (this.allowRollup) {
1918
+ this._rollup();
1919
+ } else {
1920
+ this._explodeRollups();
1921
+ }
1922
+ this._reduce();
1923
+ this._sort();
1924
+ }
1925
+ },
1926
+ /**
1927
+ * Creates a "psuedo" package for languages provided in the lang array
1928
+ * @method _addLangPack
1929
+ * @private
1930
+ * @param {String} lang The language to create
1931
+ * @param {Object} m The module definition to create the language pack around
1932
+ * @param {String} packName The name of the package (e.g: lang/datatype-date-en-US)
1933
+ * @return {Object} The module definition
1934
+ */
1935
+ _addLangPack: function(lang, m, packName) {
1936
+ var name = m.name,
1937
+ packPath, conf,
1938
+ existing = this.getModuleInfo(packName);
1939
+
1940
+ if (!existing) {
1941
+
1942
+ packPath = _path((m.pkg || name), packName, JS, true);
1943
+
1944
+ conf = {
1945
+ path: packPath,
1946
+ intl: true,
1947
+ langPack: true,
1948
+ ext: m.ext,
1949
+ group: m.group,
1950
+ supersedes: []
1951
+ };
1952
+ if (m.root) {
1953
+ conf.root = m.root;
1954
+ }
1955
+ if (m.base) {
1956
+ conf.base = m.base;
1957
+ }
1958
+
1959
+ if (m.configFn) {
1960
+ conf.configFn = m.configFn;
1961
+ }
1962
+
1963
+ this.addModule(conf, packName);
1964
+
1965
+ if (lang) {
1966
+ Y.Env.lang = Y.Env.lang || {};
1967
+ Y.Env.lang[lang] = Y.Env.lang[lang] || {};
1968
+ Y.Env.lang[lang][name] = true;
1969
+ }
1970
+ }
1971
+
1972
+ return this.getModuleInfo(packName);
1973
+ },
1974
+
1975
+ /**
1976
+ * Investigates the current YUI configuration on the page. By default,
1977
+ * modules already detected will not be loaded again unless a force
1978
+ * option is encountered. Called by calculate()
1979
+ * @method _setup
1980
+ * @private
1981
+ */
1982
+ _setup: function() {
1983
+ var info = this.moduleInfo, name, i, j, m, l,
1984
+ packName;
1985
+
1986
+ for (name in info) {
1987
+ if (info.hasOwnProperty(name)) {
1988
+ m = info[name];
1989
+ if (m) {
1990
+
1991
+ // remove dups
1992
+ //m.requires = YObject.keys(yArray.hash(m.requires));
1993
+ m.requires = yArray.dedupe(m.requires);
1994
+
1995
+ // Create lang pack modules
1996
+ //if (m.lang && m.lang.length) {
1997
+ if (m.lang) {
1998
+ // Setup root package if the module has lang defined,
1999
+ // it needs to provide a root language pack
2000
+ packName = this.getLangPackName(ROOT_LANG, name);
2001
+ this._addLangPack(null, m, packName);
2002
+ }
2003
+
2004
+ }
2005
+ }
2006
+ }
2007
+
2008
+
2009
+ //l = Y.merge(this.inserted);
2010
+ l = {};
2011
+
2012
+ // available modules
2013
+ if (!this.ignoreRegistered) {
2014
+ Y.mix(l, GLOBAL_ENV.mods);
2015
+ }
2016
+
2017
+ // add the ignore list to the list of loaded packages
2018
+ if (this.ignore) {
2019
+ Y.mix(l, yArray.hash(this.ignore));
2020
+ }
2021
+
2022
+ // expand the list to include superseded modules
2023
+ for (j in l) {
2024
+ if (l.hasOwnProperty(j)) {
2025
+ Y.mix(l, this.getProvides(j));
2026
+ }
2027
+ }
2028
+
2029
+ // remove modules on the force list from the loaded list
2030
+ if (this.force) {
2031
+ for (i = 0; i < this.force.length; i++) {
2032
+ if (this.force[i] in l) {
2033
+ delete l[this.force[i]];
2034
+ }
2035
+ }
2036
+ }
2037
+
2038
+ Y.mix(this.loaded, l);
2039
+
2040
+ this._init = true;
2041
+ },
2042
+
2043
+ /**
2044
+ * Builds a module name for a language pack
2045
+ * @method getLangPackName
2046
+ * @param {string} lang the language code.
2047
+ * @param {string} mname the module to build it for.
2048
+ * @return {string} the language pack module name.
2049
+ */
2050
+ getLangPackName: function(lang, mname) {
2051
+ return ('lang/' + mname + ((lang) ? '_' + lang : ''));
2052
+ },
2053
+ /**
2054
+ * Inspects the required modules list looking for additional
2055
+ * dependencies. Expands the required list to include all
2056
+ * required modules. Called by calculate()
2057
+ * @method _explode
2058
+ * @private
2059
+ */
2060
+ _explode: function() {
2061
+ //TODO Move done out of scope
2062
+ var r = this.required, m, reqs, done = {},
2063
+ self = this, name, expound;
2064
+
2065
+ // the setup phase is over, all modules have been created
2066
+ self.dirty = false;
2067
+
2068
+ self._explodeRollups();
2069
+ r = self.required;
2070
+
2071
+ for (name in r) {
2072
+ if (r.hasOwnProperty(name)) {
2073
+ if (!done[name]) {
2074
+ done[name] = true;
2075
+ m = self.getModule(name);
2076
+ if (m) {
2077
+ expound = m.expound;
2078
+
2079
+ if (expound) {
2080
+ r[expound] = self.getModule(expound);
2081
+ reqs = self.getRequires(r[expound]);
2082
+ Y.mix(r, yArray.hash(reqs));
2083
+ }
2084
+
2085
+ reqs = self.getRequires(m);
2086
+ Y.mix(r, yArray.hash(reqs));
2087
+ }
2088
+ }
2089
+ }
2090
+ }
2091
+
2092
+ // Y.log('After explode: ' + YObject.keys(r));
2093
+ },
2094
+ /**
2095
+ * The default method used to test a module against a pattern
2096
+ * @method _patternTest
2097
+ * @private
2098
+ * @param {String} mname The module being tested
2099
+ * @param {String} pname The pattern to match
2100
+ */
2101
+ _patternTest: function(mname, pname) {
2102
+ return (mname.indexOf(pname) > -1);
2103
+ },
2104
+ /**
2105
+ * Get's the loader meta data for the requested module
2106
+ * @method getModule
2107
+ * @param {String} mname The module name to get
2108
+ * @return {Object} The module metadata
2109
+ */
2110
+ getModule: function(mname) {
2111
+ //TODO: Remove name check - it's a quick hack to fix pattern WIP
2112
+ if (!mname) {
2113
+ return null;
2114
+ }
2115
+
2116
+ var p, found, pname,
2117
+ m = this.getModuleInfo(mname),
2118
+ patterns = this.patterns;
2119
+
2120
+ // check the patterns library to see if we should automatically add
2121
+ // the module with defaults
2122
+ if (!m || (m && m.ext)) {
2123
+ // Y.log('testing patterns ' + YObject.keys(patterns));
2124
+ for (pname in patterns) {
2125
+ if (patterns.hasOwnProperty(pname)) {
2126
+ // Y.log('testing pattern ' + i);
2127
+ p = patterns[pname];
2128
+
2129
+ //There is no test method, create a default one that tests
2130
+ // the pattern against the mod name
2131
+ if (!p.test) {
2132
+ p.test = this._patternTest;
2133
+ }
2134
+
2135
+ if (p.test(mname, pname)) {
2136
+ // use the metadata supplied for the pattern
2137
+ // as the module definition.
2138
+ found = p;
2139
+ break;
2140
+ }
2141
+ }
2142
+ }
2143
+ }
2144
+
2145
+ if (!m) {
2146
+ if (found) {
2147
+ if (p.action) {
2148
+ // Y.log('executing pattern action: ' + pname);
2149
+ p.action.call(this, mname, pname);
2150
+ } else {
2151
+ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
2152
+ pname, 'info', 'loader');
2153
+ // ext true or false?
2154
+ m = this.addModule(Y.merge(found, {
2155
+ test: void 0,
2156
+ temp: true
2157
+ }), mname);
2158
+ if (m && found.configFn) {
2159
+ m.configFn = found.configFn;
2160
+ }
2161
+ }
2162
+ }
2163
+ } else {
2164
+ if (found && m && found.configFn && !m.configFn) {
2165
+ m.configFn = found.configFn;
2166
+ m.configFn(m);
2167
+ }
2168
+ }
2169
+
2170
+ return m;
2171
+ },
2172
+
2173
+ // impl in rollup submodule
2174
+ _rollup: function() { },
2175
+
2176
+ /**
2177
+ * Remove superceded modules and loaded modules. Called by
2178
+ * calculate() after we have the mega list of all dependencies
2179
+ * @method _reduce
2180
+ * @return {object} the reduced dependency hash.
2181
+ * @private
2182
+ */
2183
+ _reduce: function(r) {
2184
+
2185
+ r = r || this.required;
2186
+
2187
+ var i, j, s, m, type = this.loadType,
2188
+ ignore = this.ignore ? yArray.hash(this.ignore) : false;
2189
+
2190
+ for (i in r) {
2191
+ if (r.hasOwnProperty(i)) {
2192
+ m = this.getModule(i);
2193
+ // remove if already loaded
2194
+ if (((this.loaded[i] || ON_PAGE[i]) &&
2195
+ !this.forceMap[i] && !this.ignoreRegistered) ||
2196
+ (type && m && m.type !== type)) {
2197
+ delete r[i];
2198
+ }
2199
+ if (ignore && ignore[i]) {
2200
+ delete r[i];
2201
+ }
2202
+ // remove anything this module supersedes
2203
+ s = m && m.supersedes;
2204
+ if (s) {
2205
+ for (j = 0; j < s.length; j++) {
2206
+ if (s[j] in r) {
2207
+ delete r[s[j]];
2208
+ }
2209
+ }
2210
+ }
2211
+ }
2212
+ }
2213
+
2214
+ return r;
2215
+ },
2216
+ /**
2217
+ * Handles the queue when a module has been loaded for all cases
2218
+ * @method _finish
2219
+ * @private
2220
+ * @param {String} msg The message from Loader
2221
+ * @param {Boolean} success A boolean denoting success or failure
2222
+ */
2223
+ _finish: function(msg, success) {
2224
+ Y.log('loader finishing: ' + msg + ', ' + Y.id + ', ' +
2225
+ this.data, 'info', 'loader');
2226
+
2227
+ _queue.running = false;
2228
+
2229
+ var onEnd = this.onEnd;
2230
+ if (onEnd) {
2231
+ onEnd.call(this.context, {
2232
+ msg: msg,
2233
+ data: this.data,
2234
+ success: success
2235
+ });
2236
+ }
2237
+ this._continue();
2238
+ },
2239
+ /**
2240
+ * The default Loader onSuccess handler, calls this.onSuccess with a payload
2241
+ * @method _onSuccess
2242
+ * @private
2243
+ */
2244
+ _onSuccess: function() {
2245
+ var self = this, skipped = Y.merge(self.skipped), fn,
2246
+ failed = [], rreg = self.requireRegistration,
2247
+ success, msg, i, mod;
2248
+
2249
+ for (i in skipped) {
2250
+ if (skipped.hasOwnProperty(i)) {
2251
+ delete self.inserted[i];
2252
+ }
2253
+ }
2254
+
2255
+ self.skipped = {};
2256
+
2257
+ for (i in self.inserted) {
2258
+ if (self.inserted.hasOwnProperty(i)) {
2259
+ mod = self.getModule(i);
2260
+ if (mod && rreg && mod.type === JS && !(i in YUI.Env.mods)) {
2261
+ failed.push(i);
2262
+ } else {
2263
+ Y.mix(self.loaded, self.getProvides(i));
2264
+ }
2265
+ }
2266
+ }
2267
+
2268
+ fn = self.onSuccess;
2269
+ msg = (failed.length) ? 'notregistered' : 'success';
2270
+ success = !(failed.length);
2271
+ if (fn) {
2272
+ fn.call(self.context, {
2273
+ msg: msg,
2274
+ data: self.data,
2275
+ success: success,
2276
+ failed: failed,
2277
+ skipped: skipped
2278
+ });
2279
+ }
2280
+ self._finish(msg, success);
2281
+ },
2282
+ /**
2283
+ * The default Loader onProgress handler, calls this.onProgress with a payload
2284
+ * @method _onProgress
2285
+ * @private
2286
+ */
2287
+ _onProgress: function(e) {
2288
+ var self = this, i;
2289
+ //set the internal cache to what just came in.
2290
+ if (e.data && e.data.length) {
2291
+ for (i = 0; i < e.data.length; i++) {
2292
+ e.data[i] = self.getModule(e.data[i].name);
2293
+ }
2294
+ }
2295
+ if (self.onProgress) {
2296
+ self.onProgress.call(self.context, {
2297
+ name: e.url,
2298
+ data: e.data
2299
+ });
2300
+ }
2301
+ },
2302
+ /**
2303
+ * The default Loader onFailure handler, calls this.onFailure with a payload
2304
+ * @method _onFailure
2305
+ * @private
2306
+ */
2307
+ _onFailure: function(o) {
2308
+ var f = this.onFailure, msg = [], i = 0, len = o.errors.length;
2309
+
2310
+ for (i; i < len; i++) {
2311
+ msg.push(o.errors[i].error);
2312
+ }
2313
+
2314
+ msg = msg.join(',');
2315
+
2316
+ Y.log('load error: ' + msg + ', ' + Y.id, 'error', 'loader');
2317
+
2318
+ if (f) {
2319
+ f.call(this.context, {
2320
+ msg: msg,
2321
+ data: this.data,
2322
+ success: false
2323
+ });
2324
+ }
2325
+
2326
+ this._finish(msg, false);
2327
+
2328
+ },
2329
+
2330
+ /**
2331
+ * The default Loader onTimeout handler, calls this.onTimeout with a payload
2332
+ * @method _onTimeout
2333
+ * @param {Get.Transaction} transaction The Transaction object from `Y.Get`
2334
+ * @private
2335
+ */
2336
+ _onTimeout: function(transaction) {
2337
+ Y.log('loader timeout: ' + Y.id, 'error', 'loader');
2338
+ var f = this.onTimeout;
2339
+ if (f) {
2340
+ f.call(this.context, {
2341
+ msg: 'timeout',
2342
+ data: this.data,
2343
+ success: false,
2344
+ transaction: transaction
2345
+ });
2346
+ }
2347
+ },
2348
+
2349
+ /**
2350
+ * Sorts the dependency tree. The last step of calculate()
2351
+ * @method _sort
2352
+ * @private
2353
+ */
2354
+ _sort: function() {
2355
+ var name,
2356
+
2357
+ // Object containing module names.
2358
+ required = this.required,
2359
+
2360
+ // Keep track of whether we've visited a module.
2361
+ visited = {};
2362
+
2363
+ // Will contain modules names, in the correct order,
2364
+ // according to dependencies.
2365
+ this.sorted = [];
2366
+
2367
+ for (name in required) {
2368
+ if (!visited[name] && required.hasOwnProperty(name)) {
2369
+ this._visit(name, visited);
2370
+ }
2371
+ }
2372
+ },
2373
+
2374
+ /**
2375
+ * Recursively visits the dependencies of the module name
2376
+ * passed in, and appends each module name to the `sorted` property.
2377
+ * @param {String} name The name of a module.
2378
+ * @param {Object} visited Keeps track of whether a module was visited.
2379
+ * @method _visit
2380
+ * @private
2381
+ */
2382
+ _visit: function (name, visited) {
2383
+ var required, condition, moduleInfo, dependency, dependencies,
2384
+ trigger, isAfter, i, l;
2385
+
2386
+ visited[name] = true;
2387
+ required = this.required;
2388
+ moduleInfo = this.moduleInfo[name];
2389
+ condition = this.conditions[name] || {};
2390
+
2391
+ if (moduleInfo) {
2392
+ // Recurse on each dependency of this module,
2393
+ // figuring out its dependencies, and so on.
2394
+ dependencies = moduleInfo.expanded || moduleInfo.requires;
2395
+
2396
+ for (i = 0, l = dependencies.length; i < l; ++i) {
2397
+ dependency = dependencies[i];
2398
+ trigger = condition[dependency];
2399
+
2400
+ // We cannot process this dependency yet if it must
2401
+ // appear after our current module.
2402
+ isAfter = trigger && (!trigger.when || trigger.when === "after");
2403
+
2404
+ // Is this module name in the required list of modules,
2405
+ // and have we not already visited it?
2406
+ if (required[dependency] && !visited[dependency] && !isAfter) {
2407
+ this._visit(dependency, visited);
2408
+ }
2409
+ }
2410
+ }
2411
+
2412
+ this.sorted.push(name);
2413
+ },
2414
+
2415
+ /**
2416
+ * Handles the actual insertion of script/link tags
2417
+ * @method _insert
2418
+ * @private
2419
+ * @param {Object} source The YUI instance the request came from
2420
+ * @param {Object} o The metadata to include
2421
+ * @param {String} type JS or CSS
2422
+ * @param {Boolean} [skipcalc=false] Do a Loader.calculate on the meta
2423
+ */
2424
+ _insert: function(source, o, type, skipcalc) {
2425
+
2426
+ Y.log('private _insert() ' + (type || '') + ', ' + Y.id, "info", "loader");
2427
+
2428
+ // restore the state at the time of the request
2429
+ if (source) {
2430
+ this._config(source);
2431
+ }
2432
+
2433
+ // build the dependency list
2434
+ // don't include type so we can process CSS and script in
2435
+ // one pass when the type is not specified.
2436
+
2437
+ var modules = this.resolve(!skipcalc),
2438
+ self = this, comp = 0, actions = 0,
2439
+ mods = {}, deps, complete;
2440
+
2441
+ self._refetch = [];
2442
+
2443
+ if (type) {
2444
+ //Filter out the opposite type and reset the array so the checks later work
2445
+ modules[((type === JS) ? CSS : JS)] = [];
2446
+ }
2447
+ if (!self.fetchCSS) {
2448
+ modules.css = [];
2449
+ }
2450
+ if (modules.js.length) {
2451
+ comp++;
2452
+ }
2453
+ if (modules.css.length) {
2454
+ comp++;
2455
+ }
2456
+
2457
+ //console.log('Resolved Modules: ', modules);
2458
+
2459
+ complete = function(d) {
2460
+ actions++;
2461
+ var errs = {}, i = 0, o = 0, u = '', fn,
2462
+ modName, resMods;
2463
+
2464
+ if (d && d.errors) {
2465
+ for (i = 0; i < d.errors.length; i++) {
2466
+ if (d.errors[i].request) {
2467
+ u = d.errors[i].request.url;
2468
+ } else {
2469
+ u = d.errors[i];
2470
+ }
2471
+ errs[u] = u;
2472
+ }
2473
+ }
2474
+
2475
+ if (d && d.data && d.data.length && (d.type === 'success')) {
2476
+ for (i = 0; i < d.data.length; i++) {
2477
+ self.inserted[d.data[i].name] = true;
2478
+ //If the external module has a skin or a lang, reprocess it
2479
+ if (d.data[i].lang || d.data[i].skinnable) {
2480
+ delete self.inserted[d.data[i].name];
2481
+ self._refetch.push(d.data[i].name);
2482
+ }
2483
+ }
2484
+ }
2485
+
2486
+ if (actions === comp) {
2487
+ self._loading = null;
2488
+ Y.log('Loader actions complete!', 'info', 'loader');
2489
+ if (self._refetch.length) {
2490
+ //Get the deps for the new meta-data and reprocess
2491
+ Y.log('Found potential modules to refetch', 'info', 'loader');
2492
+ for (i = 0; i < self._refetch.length; i++) {
2493
+ deps = self.getRequires(self.getModule(self._refetch[i]));
2494
+ for (o = 0; o < deps.length; o++) {
2495
+ if (!self.inserted[deps[o]]) {
2496
+ //We wouldn't be to this point without the module being here
2497
+ mods[deps[o]] = deps[o];
2498
+ }
2499
+ }
2500
+ }
2501
+ mods = Y.Object.keys(mods);
2502
+ if (mods.length) {
2503
+ Y.log('Refetching modules with new meta-data', 'info', 'loader');
2504
+ self.require(mods);
2505
+ resMods = self.resolve(true);
2506
+ if (resMods.cssMods.length) {
2507
+ for (i=0; i < resMods.cssMods.length; i++) {
2508
+ modName = resMods.cssMods[i].name;
2509
+ delete YUI.Env._cssLoaded[modName];
2510
+ if (self.isCSSLoaded(modName)) {
2511
+ self.inserted[modName] = true;
2512
+ delete self.required[modName];
2513
+ }
2514
+ }
2515
+ self.sorted = [];
2516
+ self._sort();
2517
+ }
2518
+ d = null; //bail
2519
+ self._insert(); //insert the new deps
2520
+ }
2521
+ }
2522
+ if (d && d.fn) {
2523
+ Y.log('Firing final Loader callback!', 'info', 'loader');
2524
+ fn = d.fn;
2525
+ delete d.fn;
2526
+ fn.call(self, d);
2527
+ }
2528
+ }
2529
+ };
2530
+
2531
+ this._loading = true;
2532
+
2533
+ if (!modules.js.length && !modules.css.length) {
2534
+ Y.log('No modules resolved..', 'warn', 'loader');
2535
+ actions = -1;
2536
+ complete({
2537
+ fn: self._onSuccess
2538
+ });
2539
+ return;
2540
+ }
2541
+
2542
+
2543
+ if (modules.css.length) { //Load CSS first
2544
+ Y.log('Loading CSS modules', 'info', 'loader');
2545
+ Y.Get.css(modules.css, {
2546
+ data: modules.cssMods,
2547
+ attributes: self.cssAttributes,
2548
+ insertBefore: self.insertBefore,
2549
+ charset: self.charset,
2550
+ timeout: self.timeout,
2551
+ context: self,
2552
+ onProgress: function(e) {
2553
+ self._onProgress.call(self, e);
2554
+ },
2555
+ onTimeout: function(d) {
2556
+ self._onTimeout.call(self, d);
2557
+ },
2558
+ onSuccess: function(d) {
2559
+ d.type = 'success';
2560
+ d.fn = self._onSuccess;
2561
+ complete.call(self, d);
2562
+ },
2563
+ onFailure: function(d) {
2564
+ d.type = 'failure';
2565
+ d.fn = self._onFailure;
2566
+ complete.call(self, d);
2567
+ }
2568
+ });
2569
+ }
2570
+
2571
+ if (modules.js.length) {
2572
+ Y.log('Loading JS modules', 'info', 'loader');
2573
+ Y.Get.js(modules.js, {
2574
+ data: modules.jsMods,
2575
+ insertBefore: self.insertBefore,
2576
+ attributes: self.jsAttributes,
2577
+ charset: self.charset,
2578
+ timeout: self.timeout,
2579
+ autopurge: false,
2580
+ context: self,
2581
+ async: self.async,
2582
+ onProgress: function(e) {
2583
+ self._onProgress.call(self, e);
2584
+ },
2585
+ onTimeout: function(d) {
2586
+ self._onTimeout.call(self, d);
2587
+ },
2588
+ onSuccess: function(d) {
2589
+ d.type = 'success';
2590
+ d.fn = self._onSuccess;
2591
+ complete.call(self, d);
2592
+ },
2593
+ onFailure: function(d) {
2594
+ d.type = 'failure';
2595
+ d.fn = self._onFailure;
2596
+ complete.call(self, d);
2597
+ }
2598
+ });
2599
+ }
2600
+ },
2601
+ /**
2602
+ * Once a loader operation is completely finished, process any additional queued items.
2603
+ * @method _continue
2604
+ * @private
2605
+ */
2606
+ _continue: function() {
2607
+ if (!(_queue.running) && _queue.size() > 0) {
2608
+ _queue.running = true;
2609
+ _queue.next()();
2610
+ }
2611
+ },
2612
+
2613
+ /**
2614
+ * inserts the requested modules and their dependencies.
2615
+ * <code>type</code> can be "js" or "css". Both script and
2616
+ * css are inserted if type is not provided.
2617
+ * @method insert
2618
+ * @param {object} o optional options object.
2619
+ * @param {string} type the type of dependency to insert.
2620
+ */
2621
+ insert: function(o, type, skipsort) {
2622
+ Y.log('public insert() ' + (type || '') + ', ' + Y.Object.keys(this.required), "info", "loader");
2623
+ var self = this, copy = Y.merge(this);
2624
+ delete copy.require;
2625
+ delete copy.dirty;
2626
+ _queue.add(function() {
2627
+ self._insert(copy, o, type, skipsort);
2628
+ });
2629
+ this._continue();
2630
+ },
2631
+
2632
+ /**
2633
+ * Executed every time a module is loaded, and if we are in a load
2634
+ * cycle, we attempt to load the next script. Public so that it
2635
+ * is possible to call this if using a method other than
2636
+ * Y.register to determine when scripts are fully loaded
2637
+ * @method loadNext
2638
+ * @deprecated
2639
+ * @param {string} mname optional the name of the module that has
2640
+ * been loaded (which is usually why it is time to load the next
2641
+ * one).
2642
+ */
2643
+ loadNext: function() {
2644
+ Y.log('loadNext was called..', 'error', 'loader');
2645
+ return;
2646
+ },
2647
+
2648
+ /**
2649
+ * Apply filter defined for this instance to a url/path
2650
+ * @method _filter
2651
+ * @param {string} u the string to filter.
2652
+ * @param {string} name the name of the module, if we are processing
2653
+ * a single module as opposed to a combined url.
2654
+ * @return {string} the filtered string.
2655
+ * @private
2656
+ */
2657
+ _filter: function(u, name, group) {
2658
+ var f = this.filter,
2659
+ hasFilter = name && (name in this.filters),
2660
+ modFilter = hasFilter && this.filters[name],
2661
+ groupName = group || (this.getModuleInfo(name) || {}).group || null;
2662
+
2663
+ if (groupName && this.groups[groupName] && this.groups[groupName].filter) {
2664
+ modFilter = this.groups[groupName].filter;
2665
+ hasFilter = true;
2666
+ }
2667
+
2668
+ if (u) {
2669
+ if (hasFilter) {
2670
+ f = (L.isString(modFilter)) ? this.FILTER_DEFS[modFilter.toUpperCase()] || null : modFilter;
2671
+ }
2672
+ if (f) {
2673
+ u = u.replace(new RegExp(f.searchExp, 'g'), f.replaceStr);
2674
+ }
2675
+ }
2676
+ return u;
2677
+ },
2678
+
2679
+ /**
2680
+ * Generates the full url for a module
2681
+ * @method _url
2682
+ * @param {string} path the path fragment.
2683
+ * @param {String} name The name of the module
2684
+ * @param {String} [base] The base url to use. Defaults to self.base
2685
+ * @return {string} the full url.
2686
+ * @private
2687
+ */
2688
+ _url: function(path, name, base) {
2689
+ return this._filter((base || this.base || '') + path, name);
2690
+ },
2691
+ /**
2692
+ * Returns an Object hash of file arrays built from `loader.sorted` or from an arbitrary list of sorted modules.
2693
+ * @method resolve
2694
+ * @param {Boolean} [calc=false] Perform a loader.calculate() before anything else
2695
+ * @param {Array} [sorted=loader.sorted] An override for the loader.sorted array
2696
+ * @return {Object} Object hash (js and css) of two arrays of file lists
2697
+ * @example This method can be used as an off-line dep calculator
2698
+ *
2699
+ * var Y = YUI();
2700
+ * var loader = new Y.Loader({
2701
+ * filter: 'debug',
2702
+ * base: '../../',
2703
+ * root: 'build/',
2704
+ * combine: true,
2705
+ * require: ['node', 'dd', 'console']
2706
+ * });
2707
+ * var out = loader.resolve(true);
2708
+ *
2709
+ */
2710
+ resolve: function(calc, sorted) {
2711
+ var self = this,
2712
+ resolved = { js: [], jsMods: [], css: [], cssMods: [] },
2713
+ addSingle,
2714
+ usePathogen = Y.config.comboLoader && Y.config.customComboBase;
2715
+
2716
+ if (self.skin.overrides || self.skin.defaultSkin !== DEFAULT_SKIN || self.ignoreRegistered) {
2717
+ self._resetModules();
2718
+ }
2719
+
2720
+ if (calc) {
2721
+ self.calculate();
2722
+ }
2723
+ sorted = sorted || self.sorted;
2724
+
2725
+ addSingle = function(mod) {
2726
+ if (mod) {
2727
+ var group = (mod.group && self.groups[mod.group]) || NOT_FOUND,
2728
+ url;
2729
+
2730
+ //Always assume it's async
2731
+ if (group.async === false) {
2732
+ mod.async = group.async;
2733
+ }
2734
+
2735
+ url = (mod.fullpath) ? self._filter(mod.fullpath, mod.name) :
2736
+ self._url(mod.path, mod.name, group.base || mod.base);
2737
+
2738
+ if (mod.attributes || mod.async === false) {
2739
+ url = {
2740
+ url: url,
2741
+ async: mod.async
2742
+ };
2743
+ if (mod.attributes) {
2744
+ url.attributes = mod.attributes;
2745
+ }
2746
+ }
2747
+ resolved[mod.type].push(url);
2748
+ resolved[mod.type + 'Mods'].push(mod);
2749
+ } else {
2750
+ Y.log('Undefined Module', 'warn', 'loader');
2751
+ }
2752
+
2753
+ };
2754
+
2755
+ /*jslint vars: true */
2756
+ var inserted = (self.ignoreRegistered) ? {} : self.inserted,
2757
+ comboSources,
2758
+ maxURLLength,
2759
+ comboMeta,
2760
+ comboBase,
2761
+ comboSep,
2762
+ group,
2763
+ mod,
2764
+ len,
2765
+ i,
2766
+ hasComboModule = false;
2767
+
2768
+ /*jslint vars: false */
2769
+
2770
+ for (i = 0, len = sorted.length; i < len; i++) {
2771
+ mod = self.getModule(sorted[i]);
2772
+ if (!mod || inserted[mod.name]) {
2773
+ continue;
2774
+ }
2775
+
2776
+ group = self.groups[mod.group];
2777
+
2778
+ comboBase = self.comboBase;
2779
+
2780
+ if (group) {
2781
+ if (!group.combine || mod.fullpath) {
2782
+ //This is not a combo module, skip it and load it singly later.
2783
+ addSingle(mod);
2784
+ continue;
2785
+ }
2786
+ mod.combine = true;
2787
+
2788
+ if (typeof group.root === 'string') {
2789
+ mod.root = group.root;
2790
+ }
2791
+
2792
+ comboBase = group.comboBase || comboBase;
2793
+ comboSep = group.comboSep;
2794
+ maxURLLength = group.maxURLLength;
2795
+ } else {
2796
+ if (!self.combine) {
2797
+ //This is not a combo module, skip it and load it singly later.
2798
+ addSingle(mod);
2799
+ continue;
2800
+ }
2801
+ }
2802
+
2803
+ if (!mod.combine && mod.ext) {
2804
+ addSingle(mod);
2805
+ continue;
2806
+ }
2807
+ hasComboModule = true;
2808
+ comboSources = comboSources || {};
2809
+ comboSources[comboBase] = comboSources[comboBase] ||
2810
+ { js: [], jsMods: [], css: [], cssMods: [] };
2811
+
2812
+ comboMeta = comboSources[comboBase];
2813
+ comboMeta.group = mod.group;
2814
+ comboMeta.comboSep = comboSep || self.comboSep;
2815
+ comboMeta.maxURLLength = maxURLLength || self.maxURLLength;
2816
+
2817
+ comboMeta[mod.type + 'Mods'].push(mod);
2818
+ if (mod.type === JS || mod.type === CSS) {
2819
+ resolved[mod.type + 'Mods'].push(mod);
2820
+ }
2821
+ }
2822
+ //only encode if we have something to encode
2823
+ if (hasComboModule) {
2824
+ if (usePathogen) {
2825
+ resolved = this._pathogenEncodeComboSources(resolved);
2826
+ } else {
2827
+ resolved = this._encodeComboSources(resolved, comboSources);
2828
+ }
2829
+ }
2830
+ return resolved;
2831
+ },
2832
+
2833
+ /**
2834
+ * Encodes combo sources and appends them to an object hash of arrays from `loader.resolve`.
2835
+ *
2836
+ * @method _encodeComboSources
2837
+ * @param {Object} resolved The object hash of arrays in which to attach the encoded combo sources.
2838
+ * @param {Object} comboSources An object containing relevant data about modules.
2839
+ * @return Object
2840
+ * @private
2841
+ */
2842
+ _encodeComboSources: function(resolved, comboSources) {
2843
+ var fragSubset,
2844
+ modules,
2845
+ tmpBase,
2846
+ baseLen,
2847
+ frags,
2848
+ frag,
2849
+ type,
2850
+ mod,
2851
+ maxURLLength,
2852
+ comboBase,
2853
+ comboMeta,
2854
+ comboSep,
2855
+ i,
2856
+ len,
2857
+ self = this;
2858
+
2859
+ for (comboBase in comboSources) {
2860
+ if (comboSources.hasOwnProperty(comboBase)) {
2861
+ comboMeta = comboSources[comboBase];
2862
+ comboSep = comboMeta.comboSep;
2863
+ maxURLLength = comboMeta.maxURLLength;
2864
+ Y.log('Using maxURLLength of ' + maxURLLength, 'info', 'loader');
2865
+ for (type in comboMeta) {
2866
+ if (type === JS || type === CSS) {
2867
+ modules = comboMeta[type + 'Mods'];
2868
+ frags = [];
2869
+ for (i = 0, len = modules.length; i < len; i += 1) {
2870
+ mod = modules[i];
2871
+ frag = ((typeof mod.root === 'string') ? mod.root : self.root) + (mod.path || mod.fullpath);
2872
+ frags.push(
2873
+ self._filter(frag, mod.name)
2874
+ );
2875
+ }
2876
+ tmpBase = comboBase + frags.join(comboSep);
2877
+ baseLen = tmpBase.length;
2878
+ if (maxURLLength <= comboBase.length) {
2879
+ Y.log('maxURLLength (' + maxURLLength + ') is lower than the comboBase length (' + comboBase.length + '), resetting to default (' + MAX_URL_LENGTH + ')', 'error', 'loader');
2880
+ maxURLLength = MAX_URL_LENGTH;
2881
+ }
2882
+
2883
+ if (frags.length) {
2884
+ if (baseLen > maxURLLength) {
2885
+ Y.log('Exceeded maxURLLength (' + maxURLLength + ') for ' + type + ', splitting', 'info', 'loader');
2886
+ fragSubset = [];
2887
+ for (i = 0, len = frags.length; i < len; i++) {
2888
+ fragSubset.push(frags[i]);
2889
+ tmpBase = comboBase + fragSubset.join(comboSep);
2890
+
2891
+ if (tmpBase.length > maxURLLength) {
2892
+ frag = fragSubset.pop();
2893
+ tmpBase = comboBase + fragSubset.join(comboSep);
2894
+ resolved[type].push(self._filter(tmpBase, null, comboMeta.group));
2895
+ fragSubset = [];
2896
+ if (frag) {
2897
+ fragSubset.push(frag);
2898
+ }
2899
+ }
2900
+ }
2901
+ if (fragSubset.length) {
2902
+ tmpBase = comboBase + fragSubset.join(comboSep);
2903
+ resolved[type].push(self._filter(tmpBase, null, comboMeta.group));
2904
+ }
2905
+ } else {
2906
+ resolved[type].push(self._filter(tmpBase, null, comboMeta.group));
2907
+ }
2908
+ }
2909
+ }
2910
+ }
2911
+ }
2912
+ }
2913
+ return resolved;
2914
+ },
2915
+
2916
+ /**
2917
+ Shortcut to calculate, resolve and load all modules.
2918
+
2919
+ var loader = new Y.Loader({
2920
+ ignoreRegistered: true,
2921
+ modules: {
2922
+ mod: {
2923
+ path: 'mod.js'
2924
+ }
2925
+ },
2926
+ requires: [ 'mod' ]
2927
+ });
2928
+ loader.load(function() {
2929
+ console.log('All modules have loaded..');
2930
+ });
2931
+
2932
+
2933
+ @method load
2934
+ @param {Function} cb Executed after all load operations are complete
2935
+ */
2936
+ load: function(cb) {
2937
+ if (!cb) {
2938
+ Y.log('No callback supplied to load()', 'error', 'loader');
2939
+ return;
2940
+ }
2941
+ var self = this,
2942
+ out = self.resolve(true);
2943
+
2944
+ self.data = out;
2945
+
2946
+ self.onEnd = function() {
2947
+ cb.apply(self.context || self, arguments);
2948
+ };
2949
+
2950
+ self.insert();
2951
+ }
2952
+ };
2953
+
2954
+
2955
+ }, '@VERSION@', {"requires": ["get", "features"]});