@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,2464 @@
1
+ YUI.add('event-custom-base', function (Y, NAME) {
2
+
3
+ /**
4
+ * Custom event engine, DOM event listener abstraction layer, synthetic DOM
5
+ * events.
6
+ * @module event-custom
7
+ */
8
+
9
+ Y.Env.evt = {
10
+ handles: {},
11
+ plugins: {}
12
+ };
13
+
14
+ /**
15
+ * Custom event engine, DOM event listener abstraction layer, synthetic DOM
16
+ * events.
17
+ * @module event-custom
18
+ * @submodule event-custom-base
19
+ */
20
+
21
+ /**
22
+ * Allows for the insertion of methods that are executed before or after
23
+ * a specified method
24
+ * @class Do
25
+ * @static
26
+ */
27
+
28
+ var DO_BEFORE = 0,
29
+ DO_AFTER = 1,
30
+
31
+ DO = {
32
+
33
+ /**
34
+ * Cache of objects touched by the utility
35
+ * @property objs
36
+ * @static
37
+ * @deprecated Since 3.6.0. The `_yuiaop` property on the AOP'd object
38
+ * replaces the role of this property, but is considered to be private, and
39
+ * is only mentioned to provide a migration path.
40
+ *
41
+ * If you have a use case which warrants migration to the _yuiaop property,
42
+ * please file a ticket to let us know what it's used for and we can see if
43
+ * we need to expose hooks for that functionality more formally.
44
+ */
45
+ objs: null,
46
+
47
+ /**
48
+ * <p>Execute the supplied method before the specified function. Wrapping
49
+ * function may optionally return an instance of the following classes to
50
+ * further alter runtime behavior:</p>
51
+ * <dl>
52
+ * <dt></code>Y.Do.Halt(message, returnValue)</code></dt>
53
+ * <dd>Immediatly stop execution and return
54
+ * <code>returnValue</code>. No other wrapping functions will be
55
+ * executed.</dd>
56
+ * <dt></code>Y.Do.AlterArgs(message, newArgArray)</code></dt>
57
+ * <dd>Replace the arguments that the original function will be
58
+ * called with.</dd>
59
+ * <dt></code>Y.Do.Prevent(message)</code></dt>
60
+ * <dd>Don't execute the wrapped function. Other before phase
61
+ * wrappers will be executed.</dd>
62
+ * </dl>
63
+ *
64
+ * @method before
65
+ * @param fn {Function} the function to execute
66
+ * @param obj the object hosting the method to displace
67
+ * @param sFn {string} the name of the method to displace
68
+ * @param c The execution context for fn
69
+ * @param arg* {mixed} 0..n additional arguments to supply to the subscriber
70
+ * when the event fires.
71
+ * @return {EventHandle} handle for the subscription
72
+ * @static
73
+ */
74
+ before: function(fn, obj, sFn, c) {
75
+ // Y.log('Do before: ' + sFn, 'info', 'event');
76
+ var f = fn, a;
77
+ if (c) {
78
+ a = [fn, c].concat(Y.Array(arguments, 4, true));
79
+ f = Y.rbind.apply(Y, a);
80
+ }
81
+
82
+ return this._inject(DO_BEFORE, f, obj, sFn);
83
+ },
84
+
85
+ /**
86
+ * <p>Execute the supplied method after the specified function. Wrapping
87
+ * function may optionally return an instance of the following classes to
88
+ * further alter runtime behavior:</p>
89
+ * <dl>
90
+ * <dt></code>Y.Do.Halt(message, returnValue)</code></dt>
91
+ * <dd>Immediatly stop execution and return
92
+ * <code>returnValue</code>. No other wrapping functions will be
93
+ * executed.</dd>
94
+ * <dt></code>Y.Do.AlterReturn(message, returnValue)</code></dt>
95
+ * <dd>Return <code>returnValue</code> instead of the wrapped
96
+ * method's original return value. This can be further altered by
97
+ * other after phase wrappers.</dd>
98
+ * </dl>
99
+ *
100
+ * <p>The static properties <code>Y.Do.originalRetVal</code> and
101
+ * <code>Y.Do.currentRetVal</code> will be populated for reference.</p>
102
+ *
103
+ * @method after
104
+ * @param fn {Function} the function to execute
105
+ * @param obj the object hosting the method to displace
106
+ * @param sFn {string} the name of the method to displace
107
+ * @param c The execution context for fn
108
+ * @param arg* {mixed} 0..n additional arguments to supply to the subscriber
109
+ * @return {EventHandle} handle for the subscription
110
+ * @static
111
+ */
112
+ after: function(fn, obj, sFn, c) {
113
+ var f = fn, a;
114
+ if (c) {
115
+ a = [fn, c].concat(Y.Array(arguments, 4, true));
116
+ f = Y.rbind.apply(Y, a);
117
+ }
118
+
119
+ return this._inject(DO_AFTER, f, obj, sFn);
120
+ },
121
+
122
+ /**
123
+ * Execute the supplied method before or after the specified function.
124
+ * Used by <code>before</code> and <code>after</code>.
125
+ *
126
+ * @method _inject
127
+ * @param when {string} before or after
128
+ * @param fn {Function} the function to execute
129
+ * @param obj the object hosting the method to displace
130
+ * @param sFn {string} the name of the method to displace
131
+ * @param c The execution context for fn
132
+ * @return {EventHandle} handle for the subscription
133
+ * @private
134
+ * @static
135
+ */
136
+ _inject: function(when, fn, obj, sFn) {
137
+ // object id
138
+ var id = Y.stamp(obj), o, sid;
139
+
140
+ if (!obj._yuiaop) {
141
+ // create a map entry for the obj if it doesn't exist, to hold overridden methods
142
+ obj._yuiaop = {};
143
+ }
144
+
145
+ o = obj._yuiaop;
146
+
147
+ if (!o[sFn]) {
148
+ // create a map entry for the method if it doesn't exist
149
+ o[sFn] = new Y.Do.Method(obj, sFn);
150
+
151
+ // re-route the method to our wrapper
152
+ obj[sFn] = function() {
153
+ return o[sFn].exec.apply(o[sFn], arguments);
154
+ };
155
+ }
156
+
157
+ // subscriber id
158
+ sid = id + Y.stamp(fn) + sFn;
159
+
160
+ // register the callback
161
+ o[sFn].register(sid, fn, when);
162
+
163
+ return new Y.EventHandle(o[sFn], sid);
164
+ },
165
+
166
+ /**
167
+ * Detach a before or after subscription.
168
+ *
169
+ * @method detach
170
+ * @param handle {EventHandle} the subscription handle
171
+ * @static
172
+ */
173
+ detach: function(handle) {
174
+ if (handle.detach) {
175
+ handle.detach();
176
+ }
177
+ }
178
+ };
179
+
180
+ Y.Do = DO;
181
+
182
+ //////////////////////////////////////////////////////////////////////////
183
+
184
+ /**
185
+ * Contains the return value from the wrapped method, accessible
186
+ * by 'after' event listeners.
187
+ *
188
+ * @property originalRetVal
189
+ * @static
190
+ * @since 3.2.0
191
+ */
192
+
193
+ /**
194
+ * Contains the current state of the return value, consumable by
195
+ * 'after' event listeners, and updated if an after subscriber
196
+ * changes the return value generated by the wrapped function.
197
+ *
198
+ * @property currentRetVal
199
+ * @static
200
+ * @since 3.2.0
201
+ */
202
+
203
+ //////////////////////////////////////////////////////////////////////////
204
+
205
+ /**
206
+ * Wrapper for a displaced method with aop enabled
207
+ * @class Do.Method
208
+ * @constructor
209
+ * @param obj The object to operate on
210
+ * @param sFn The name of the method to displace
211
+ */
212
+ DO.Method = function(obj, sFn) {
213
+ this.obj = obj;
214
+ this.methodName = sFn;
215
+ this.method = obj[sFn];
216
+ this.before = {};
217
+ this.after = {};
218
+ };
219
+
220
+ /**
221
+ * Register a aop subscriber
222
+ * @method register
223
+ * @param sid {string} the subscriber id
224
+ * @param fn {Function} the function to execute
225
+ * @param when {string} when to execute the function
226
+ */
227
+ DO.Method.prototype.register = function (sid, fn, when) {
228
+ if (when) {
229
+ this.after[sid] = fn;
230
+ } else {
231
+ this.before[sid] = fn;
232
+ }
233
+ };
234
+
235
+ /**
236
+ * Unregister a aop subscriber
237
+ * @method delete
238
+ * @param sid {string} the subscriber id
239
+ * @param fn {Function} the function to execute
240
+ * @param when {string} when to execute the function
241
+ */
242
+ DO.Method.prototype._delete = function (sid) {
243
+ // Y.log('Y.Do._delete: ' + sid, 'info', 'Event');
244
+ delete this.before[sid];
245
+ delete this.after[sid];
246
+ };
247
+
248
+ /**
249
+ * <p>Execute the wrapped method. All arguments are passed into the wrapping
250
+ * functions. If any of the before wrappers return an instance of
251
+ * <code>Y.Do.Halt</code> or <code>Y.Do.Prevent</code>, neither the wrapped
252
+ * function nor any after phase subscribers will be executed.</p>
253
+ *
254
+ * <p>The return value will be the return value of the wrapped function or one
255
+ * provided by a wrapper function via an instance of <code>Y.Do.Halt</code> or
256
+ * <code>Y.Do.AlterReturn</code>.
257
+ *
258
+ * @method exec
259
+ * @param arg* {any} Arguments are passed to the wrapping and wrapped functions
260
+ * @return {any} Return value of wrapped function unless overwritten (see above)
261
+ */
262
+ DO.Method.prototype.exec = function () {
263
+
264
+ var args = Y.Array(arguments, 0, true),
265
+ i, ret, newRet,
266
+ bf = this.before,
267
+ af = this.after,
268
+ prevented = false;
269
+
270
+ // execute before
271
+ for (i in bf) {
272
+ if (bf.hasOwnProperty(i)) {
273
+ ret = bf[i].apply(this.obj, args);
274
+ if (ret) {
275
+ switch (ret.constructor) {
276
+ case DO.Halt:
277
+ return ret.retVal;
278
+ case DO.AlterArgs:
279
+ args = ret.newArgs;
280
+ break;
281
+ case DO.Prevent:
282
+ prevented = true;
283
+ break;
284
+ default:
285
+ }
286
+ }
287
+ }
288
+ }
289
+
290
+ // execute method
291
+ if (!prevented) {
292
+ ret = this.method.apply(this.obj, args);
293
+ }
294
+
295
+ DO.originalRetVal = ret;
296
+ DO.currentRetVal = ret;
297
+
298
+ // execute after methods.
299
+ for (i in af) {
300
+ if (af.hasOwnProperty(i)) {
301
+ newRet = af[i].apply(this.obj, args);
302
+ // Stop processing if a Halt object is returned
303
+ if (newRet && newRet.constructor === DO.Halt) {
304
+ return newRet.retVal;
305
+ // Check for a new return value
306
+ } else if (newRet && newRet.constructor === DO.AlterReturn) {
307
+ ret = newRet.newRetVal;
308
+ // Update the static retval state
309
+ DO.currentRetVal = ret;
310
+ }
311
+ }
312
+ }
313
+
314
+ return ret;
315
+ };
316
+
317
+ //////////////////////////////////////////////////////////////////////////
318
+
319
+ /**
320
+ * Return an AlterArgs object when you want to change the arguments that
321
+ * were passed into the function. Useful for Do.before subscribers. An
322
+ * example would be a service that scrubs out illegal characters prior to
323
+ * executing the core business logic.
324
+ * @class Do.AlterArgs
325
+ * @constructor
326
+ * @param msg {String} (optional) Explanation of the altered return value
327
+ * @param newArgs {Array} Call parameters to be used for the original method
328
+ * instead of the arguments originally passed in.
329
+ */
330
+ DO.AlterArgs = function(msg, newArgs) {
331
+ this.msg = msg;
332
+ this.newArgs = newArgs;
333
+ };
334
+
335
+ /**
336
+ * Return an AlterReturn object when you want to change the result returned
337
+ * from the core method to the caller. Useful for Do.after subscribers.
338
+ * @class Do.AlterReturn
339
+ * @constructor
340
+ * @param msg {String} (optional) Explanation of the altered return value
341
+ * @param newRetVal {any} Return value passed to code that invoked the wrapped
342
+ * function.
343
+ */
344
+ DO.AlterReturn = function(msg, newRetVal) {
345
+ this.msg = msg;
346
+ this.newRetVal = newRetVal;
347
+ };
348
+
349
+ /**
350
+ * Return a Halt object when you want to terminate the execution
351
+ * of all subsequent subscribers as well as the wrapped method
352
+ * if it has not exectued yet. Useful for Do.before subscribers.
353
+ * @class Do.Halt
354
+ * @constructor
355
+ * @param msg {String} (optional) Explanation of why the termination was done
356
+ * @param retVal {any} Return value passed to code that invoked the wrapped
357
+ * function.
358
+ */
359
+ DO.Halt = function(msg, retVal) {
360
+ this.msg = msg;
361
+ this.retVal = retVal;
362
+ };
363
+
364
+ /**
365
+ * Return a Prevent object when you want to prevent the wrapped function
366
+ * from executing, but want the remaining listeners to execute. Useful
367
+ * for Do.before subscribers.
368
+ * @class Do.Prevent
369
+ * @constructor
370
+ * @param msg {String} (optional) Explanation of why the termination was done
371
+ */
372
+ DO.Prevent = function(msg) {
373
+ this.msg = msg;
374
+ };
375
+
376
+ /**
377
+ * Return an Error object when you want to terminate the execution
378
+ * of all subsequent method calls.
379
+ * @class Do.Error
380
+ * @constructor
381
+ * @param msg {String} (optional) Explanation of the altered return value
382
+ * @param retVal {any} Return value passed to code that invoked the wrapped
383
+ * function.
384
+ * @deprecated use Y.Do.Halt or Y.Do.Prevent
385
+ */
386
+ DO.Error = DO.Halt;
387
+
388
+
389
+ //////////////////////////////////////////////////////////////////////////
390
+
391
+ /**
392
+ * Custom event engine, DOM event listener abstraction layer, synthetic DOM
393
+ * events.
394
+ * @module event-custom
395
+ * @submodule event-custom-base
396
+ */
397
+
398
+
399
+ // var onsubscribeType = "_event:onsub",
400
+ var YArray = Y.Array,
401
+
402
+ AFTER = 'after',
403
+ CONFIGS = [
404
+ 'broadcast',
405
+ 'monitored',
406
+ 'bubbles',
407
+ 'context',
408
+ 'contextFn',
409
+ 'currentTarget',
410
+ 'defaultFn',
411
+ 'defaultTargetOnly',
412
+ 'details',
413
+ 'emitFacade',
414
+ 'fireOnce',
415
+ 'async',
416
+ 'host',
417
+ 'preventable',
418
+ 'preventedFn',
419
+ 'queuable',
420
+ 'silent',
421
+ 'stoppedFn',
422
+ 'target',
423
+ 'type'
424
+ ],
425
+
426
+ CONFIGS_HASH = YArray.hash(CONFIGS),
427
+
428
+ nativeSlice = Array.prototype.slice,
429
+
430
+ YUI3_SIGNATURE = 9,
431
+ YUI_LOG = 'yui:log',
432
+
433
+ mixConfigs = function(r, s, ov) {
434
+ var p;
435
+
436
+ for (p in s) {
437
+ if (CONFIGS_HASH[p] && (ov || !(p in r))) {
438
+ r[p] = s[p];
439
+ }
440
+ }
441
+
442
+ return r;
443
+ };
444
+
445
+ /**
446
+ * The CustomEvent class lets you define events for your application
447
+ * that can be subscribed to by one or more independent component.
448
+ *
449
+ * @param {String} type The type of event, which is passed to the callback
450
+ * when the event fires.
451
+ * @param {object} defaults configuration object.
452
+ * @class CustomEvent
453
+ * @constructor
454
+ */
455
+
456
+ /**
457
+ * The type of event, returned to subscribers when the event fires
458
+ * @property type
459
+ * @type string
460
+ */
461
+
462
+ /**
463
+ * By default all custom events are logged in the debug build, set silent
464
+ * to true to disable debug outpu for this event.
465
+ * @property silent
466
+ * @type boolean
467
+ */
468
+
469
+ Y.CustomEvent = function(type, defaults) {
470
+
471
+ this._kds = Y.CustomEvent.keepDeprecatedSubs;
472
+
473
+ this.id = Y.guid();
474
+
475
+ this.type = type;
476
+ this.silent = this.logSystem = (type === YUI_LOG);
477
+
478
+ if (this._kds) {
479
+ /**
480
+ * The subscribers to this event
481
+ * @property subscribers
482
+ * @type Subscriber {}
483
+ * @deprecated
484
+ */
485
+
486
+ /**
487
+ * 'After' subscribers
488
+ * @property afters
489
+ * @type Subscriber {}
490
+ * @deprecated
491
+ */
492
+ this.subscribers = {};
493
+ this.afters = {};
494
+ }
495
+
496
+ if (defaults) {
497
+ mixConfigs(this, defaults, true);
498
+ }
499
+ };
500
+
501
+ /**
502
+ * Static flag to enable population of the <a href="#property_subscribers">`subscribers`</a>
503
+ * and <a href="#property_subscribers">`afters`</a> properties held on a `CustomEvent` instance.
504
+ *
505
+ * These properties were changed to private properties (`_subscribers` and `_afters`), and
506
+ * converted from objects to arrays for performance reasons.
507
+ *
508
+ * Setting this property to true will populate the deprecated `subscribers` and `afters`
509
+ * properties for people who may be using them (which is expected to be rare). There will
510
+ * be a performance hit, compared to the new array based implementation.
511
+ *
512
+ * If you are using these deprecated properties for a use case which the public API
513
+ * does not support, please file an enhancement request, and we can provide an alternate
514
+ * public implementation which doesn't have the performance cost required to maintiain the
515
+ * properties as objects.
516
+ *
517
+ * @property keepDeprecatedSubs
518
+ * @static
519
+ * @for CustomEvent
520
+ * @type boolean
521
+ * @default false
522
+ * @deprecated
523
+ */
524
+ Y.CustomEvent.keepDeprecatedSubs = false;
525
+
526
+ Y.CustomEvent.mixConfigs = mixConfigs;
527
+
528
+ Y.CustomEvent.prototype = {
529
+
530
+ constructor: Y.CustomEvent,
531
+
532
+ /**
533
+ * Monitor when an event is attached or detached.
534
+ *
535
+ * @property monitored
536
+ * @type boolean
537
+ */
538
+
539
+ /**
540
+ * If 0, this event does not broadcast. If 1, the YUI instance is notified
541
+ * every time this event fires. If 2, the YUI instance and the YUI global
542
+ * (if event is enabled on the global) are notified every time this event
543
+ * fires.
544
+ * @property broadcast
545
+ * @type int
546
+ */
547
+
548
+ /**
549
+ * Specifies whether this event should be queued when the host is actively
550
+ * processing an event. This will effect exectution order of the callbacks
551
+ * for the various events.
552
+ * @property queuable
553
+ * @type boolean
554
+ * @default false
555
+ */
556
+
557
+ /**
558
+ * This event has fired if true
559
+ *
560
+ * @property fired
561
+ * @type boolean
562
+ * @default false;
563
+ */
564
+
565
+ /**
566
+ * An array containing the arguments the custom event
567
+ * was last fired with.
568
+ * @property firedWith
569
+ * @type Array
570
+ */
571
+
572
+ /**
573
+ * This event should only fire one time if true, and if
574
+ * it has fired, any new subscribers should be notified
575
+ * immediately.
576
+ *
577
+ * @property fireOnce
578
+ * @type boolean
579
+ * @default false;
580
+ */
581
+
582
+ /**
583
+ * fireOnce listeners will fire syncronously unless async
584
+ * is set to true
585
+ * @property async
586
+ * @type boolean
587
+ * @default false
588
+ */
589
+
590
+ /**
591
+ * Flag for stopPropagation that is modified during fire()
592
+ * 1 means to stop propagation to bubble targets. 2 means
593
+ * to also stop additional subscribers on this target.
594
+ * @property stopped
595
+ * @type int
596
+ */
597
+
598
+ /**
599
+ * Flag for preventDefault that is modified during fire().
600
+ * if it is not 0, the default behavior for this event
601
+ * @property prevented
602
+ * @type int
603
+ */
604
+
605
+ /**
606
+ * Specifies the host for this custom event. This is used
607
+ * to enable event bubbling
608
+ * @property host
609
+ * @type EventTarget
610
+ */
611
+
612
+ /**
613
+ * The default function to execute after event listeners
614
+ * have fire, but only if the default action was not
615
+ * prevented.
616
+ * @property defaultFn
617
+ * @type Function
618
+ */
619
+
620
+ /**
621
+ * Flag for the default function to execute only if the
622
+ * firing event is the current target. This happens only
623
+ * when using custom event delegation and setting the
624
+ * flag to `true` mimics the behavior of event delegation
625
+ * in the DOM.
626
+ *
627
+ * @property defaultTargetOnly
628
+ * @type Boolean
629
+ * @default false
630
+ */
631
+
632
+ /**
633
+ * The function to execute if a subscriber calls
634
+ * stopPropagation or stopImmediatePropagation
635
+ * @property stoppedFn
636
+ * @type Function
637
+ */
638
+
639
+ /**
640
+ * The function to execute if a subscriber calls
641
+ * preventDefault
642
+ * @property preventedFn
643
+ * @type Function
644
+ */
645
+
646
+ /**
647
+ * The subscribers to this event
648
+ * @property _subscribers
649
+ * @type Subscriber []
650
+ * @private
651
+ */
652
+
653
+ /**
654
+ * 'After' subscribers
655
+ * @property _afters
656
+ * @type Subscriber []
657
+ * @private
658
+ */
659
+
660
+ /**
661
+ * If set to true, the custom event will deliver an EventFacade object
662
+ * that is similar to a DOM event object.
663
+ * @property emitFacade
664
+ * @type boolean
665
+ * @default false
666
+ */
667
+
668
+ /**
669
+ * Supports multiple options for listener signatures in order to
670
+ * port YUI 2 apps.
671
+ * @property signature
672
+ * @type int
673
+ * @default 9
674
+ */
675
+ signature : YUI3_SIGNATURE,
676
+
677
+ /**
678
+ * The context the the event will fire from by default. Defaults to the YUI
679
+ * instance.
680
+ * @property context
681
+ * @type object
682
+ */
683
+ context : Y,
684
+
685
+ /**
686
+ * Specifies whether or not this event's default function
687
+ * can be cancelled by a subscriber by executing preventDefault()
688
+ * on the event facade
689
+ * @property preventable
690
+ * @type boolean
691
+ * @default true
692
+ */
693
+ preventable : true,
694
+
695
+ /**
696
+ * Specifies whether or not a subscriber can stop the event propagation
697
+ * via stopPropagation(), stopImmediatePropagation(), or halt()
698
+ *
699
+ * Events can only bubble if emitFacade is true.
700
+ *
701
+ * @property bubbles
702
+ * @type boolean
703
+ * @default true
704
+ */
705
+ bubbles : true,
706
+
707
+ /**
708
+ * Returns the number of subscribers for this event as the sum of the on()
709
+ * subscribers and after() subscribers.
710
+ *
711
+ * @method hasSubs
712
+ * @return Number
713
+ */
714
+ hasSubs: function(when) {
715
+ var s = 0,
716
+ a = 0,
717
+ subs = this._subscribers,
718
+ afters = this._afters,
719
+ sib = this.sibling;
720
+
721
+ if (subs) {
722
+ s = subs.length;
723
+ }
724
+
725
+ if (afters) {
726
+ a = afters.length;
727
+ }
728
+
729
+ if (sib) {
730
+ subs = sib._subscribers;
731
+ afters = sib._afters;
732
+
733
+ if (subs) {
734
+ s += subs.length;
735
+ }
736
+
737
+ if (afters) {
738
+ a += afters.length;
739
+ }
740
+ }
741
+
742
+ if (when) {
743
+ return (when === 'after') ? a : s;
744
+ }
745
+
746
+ return (s + a);
747
+ },
748
+
749
+ /**
750
+ * Monitor the event state for the subscribed event. The first parameter
751
+ * is what should be monitored, the rest are the normal parameters when
752
+ * subscribing to an event.
753
+ * @method monitor
754
+ * @param what {string} what to monitor ('detach', 'attach', 'publish').
755
+ * @return {EventHandle} return value from the monitor event subscription.
756
+ */
757
+ monitor: function(what) {
758
+ this.monitored = true;
759
+ var type = this.id + '|' + this.type + '_' + what,
760
+ args = nativeSlice.call(arguments, 0);
761
+ args[0] = type;
762
+ return this.host.on.apply(this.host, args);
763
+ },
764
+
765
+ /**
766
+ * Get all of the subscribers to this event and any sibling event
767
+ * @method getSubs
768
+ * @return {Array} first item is the on subscribers, second the after.
769
+ */
770
+ getSubs: function() {
771
+
772
+ var sibling = this.sibling,
773
+ subs = this._subscribers,
774
+ afters = this._afters,
775
+ siblingSubs,
776
+ siblingAfters;
777
+
778
+ if (sibling) {
779
+ siblingSubs = sibling._subscribers;
780
+ siblingAfters = sibling._afters;
781
+ }
782
+
783
+ if (siblingSubs) {
784
+ if (subs) {
785
+ subs = subs.concat(siblingSubs);
786
+ } else {
787
+ subs = siblingSubs.concat();
788
+ }
789
+ } else {
790
+ if (subs) {
791
+ subs = subs.concat();
792
+ } else {
793
+ subs = [];
794
+ }
795
+ }
796
+
797
+ if (siblingAfters) {
798
+ if (afters) {
799
+ afters = afters.concat(siblingAfters);
800
+ } else {
801
+ afters = siblingAfters.concat();
802
+ }
803
+ } else {
804
+ if (afters) {
805
+ afters = afters.concat();
806
+ } else {
807
+ afters = [];
808
+ }
809
+ }
810
+
811
+ return [subs, afters];
812
+ },
813
+
814
+ /**
815
+ * Apply configuration properties. Only applies the CONFIG whitelist
816
+ * @method applyConfig
817
+ * @param o hash of properties to apply.
818
+ * @param force {boolean} if true, properties that exist on the event
819
+ * will be overwritten.
820
+ */
821
+ applyConfig: function(o, force) {
822
+ mixConfigs(this, o, force);
823
+ },
824
+
825
+ /**
826
+ * Create the Subscription for subscribing function, context, and bound
827
+ * arguments. If this is a fireOnce event, the subscriber is immediately
828
+ * notified.
829
+ *
830
+ * @method _on
831
+ * @param fn {Function} Subscription callback
832
+ * @param [context] {Object} Override `this` in the callback
833
+ * @param [args] {Array} bound arguments that will be passed to the callback after the arguments generated by fire()
834
+ * @param [when] {String} "after" to slot into after subscribers
835
+ * @return {EventHandle}
836
+ * @protected
837
+ */
838
+ _on: function(fn, context, args, when) {
839
+
840
+ if (!fn) { this.log('Invalid callback for CE: ' + this.type); }
841
+
842
+ var s = new Y.Subscriber(fn, context, args, when),
843
+ firedWith;
844
+
845
+ if (this.fireOnce && this.fired) {
846
+
847
+ firedWith = this.firedWith;
848
+
849
+ // It's a little ugly for this to know about facades,
850
+ // but given the current breakup, not much choice without
851
+ // moving a whole lot of stuff around.
852
+ if (this.emitFacade && this._addFacadeToArgs) {
853
+ this._addFacadeToArgs(firedWith);
854
+ }
855
+
856
+ if (this.async) {
857
+ setTimeout(Y.bind(this._notify, this, s, firedWith), 0);
858
+ } else {
859
+ this._notify(s, firedWith);
860
+ }
861
+ }
862
+
863
+ if (when === AFTER) {
864
+ if (!this._afters) {
865
+ this._afters = [];
866
+ }
867
+ this._afters.push(s);
868
+ } else {
869
+ if (!this._subscribers) {
870
+ this._subscribers = [];
871
+ }
872
+ this._subscribers.push(s);
873
+ }
874
+
875
+ if (this._kds) {
876
+ if (when === AFTER) {
877
+ this.afters[s.id] = s;
878
+ } else {
879
+ this.subscribers[s.id] = s;
880
+ }
881
+ }
882
+
883
+ return new Y.EventHandle(this, s);
884
+ },
885
+
886
+ /**
887
+ * Listen for this event
888
+ * @method subscribe
889
+ * @param {Function} fn The function to execute.
890
+ * @return {EventHandle} Unsubscribe handle.
891
+ * @deprecated use on.
892
+ */
893
+ subscribe: function(fn, context) {
894
+ Y.log('ce.subscribe deprecated, use "on"', 'warn', 'deprecated');
895
+ var a = (arguments.length > 2) ? nativeSlice.call(arguments, 2) : null;
896
+ return this._on(fn, context, a, true);
897
+ },
898
+
899
+ /**
900
+ * Listen for this event
901
+ * @method on
902
+ * @param {Function} fn The function to execute.
903
+ * @param {object} context optional execution context.
904
+ * @param {mixed} arg* 0..n additional arguments to supply to the subscriber
905
+ * when the event fires.
906
+ * @return {EventHandle} An object with a detach method to detch the handler(s).
907
+ */
908
+ on: function(fn, context) {
909
+ var a = (arguments.length > 2) ? nativeSlice.call(arguments, 2) : null;
910
+
911
+ if (this.monitored && this.host) {
912
+ this.host._monitor('attach', this, {
913
+ args: arguments
914
+ });
915
+ }
916
+ return this._on(fn, context, a, true);
917
+ },
918
+
919
+ /**
920
+ * Listen for this event after the normal subscribers have been notified and
921
+ * the default behavior has been applied. If a normal subscriber prevents the
922
+ * default behavior, it also prevents after listeners from firing.
923
+ * @method after
924
+ * @param {Function} fn The function to execute.
925
+ * @param {object} context optional execution context.
926
+ * @param {mixed} arg* 0..n additional arguments to supply to the subscriber
927
+ * when the event fires.
928
+ * @return {EventHandle} handle Unsubscribe handle.
929
+ */
930
+ after: function(fn, context) {
931
+ var a = (arguments.length > 2) ? nativeSlice.call(arguments, 2) : null;
932
+ return this._on(fn, context, a, AFTER);
933
+ },
934
+
935
+ /**
936
+ * Detach listeners.
937
+ * @method detach
938
+ * @param {Function} fn The subscribed function to remove, if not supplied
939
+ * all will be removed.
940
+ * @param {Object} context The context object passed to subscribe.
941
+ * @return {Number} returns the number of subscribers unsubscribed.
942
+ */
943
+ detach: function(fn, context) {
944
+ // unsubscribe handle
945
+ if (fn && fn.detach) {
946
+ return fn.detach();
947
+ }
948
+
949
+ var i, s,
950
+ found = 0,
951
+ subs = this._subscribers,
952
+ afters = this._afters;
953
+
954
+ if (subs) {
955
+ for (i = subs.length; i >= 0; i--) {
956
+ s = subs[i];
957
+ if (s && (!fn || fn === s.fn)) {
958
+ this._delete(s, subs, i);
959
+ found++;
960
+ }
961
+ }
962
+ }
963
+
964
+ if (afters) {
965
+ for (i = afters.length; i >= 0; i--) {
966
+ s = afters[i];
967
+ if (s && (!fn || fn === s.fn)) {
968
+ this._delete(s, afters, i);
969
+ found++;
970
+ }
971
+ }
972
+ }
973
+
974
+ return found;
975
+ },
976
+
977
+ /**
978
+ * Detach listeners.
979
+ * @method unsubscribe
980
+ * @param {Function} fn The subscribed function to remove, if not supplied
981
+ * all will be removed.
982
+ * @param {Object} context The context object passed to subscribe.
983
+ * @return {int|undefined} returns the number of subscribers unsubscribed.
984
+ * @deprecated use detach.
985
+ */
986
+ unsubscribe: function() {
987
+ return this.detach.apply(this, arguments);
988
+ },
989
+
990
+ /**
991
+ * Notify a single subscriber
992
+ * @method _notify
993
+ * @param {Subscriber} s the subscriber.
994
+ * @param {Array} args the arguments array to apply to the listener.
995
+ * @protected
996
+ */
997
+ _notify: function(s, args, ef) {
998
+
999
+ this.log(this.type + '->' + 'sub: ' + s.id);
1000
+
1001
+ var ret;
1002
+
1003
+ ret = s.notify(args, this);
1004
+
1005
+ if (false === ret || this.stopped > 1) {
1006
+ this.log(this.type + ' cancelled by subscriber');
1007
+ return false;
1008
+ }
1009
+
1010
+ return true;
1011
+ },
1012
+
1013
+ /**
1014
+ * Logger abstraction to centralize the application of the silent flag
1015
+ * @method log
1016
+ * @param {string} msg message to log.
1017
+ * @param {string} cat log category.
1018
+ */
1019
+ log: function(msg, cat) {
1020
+ if (!this.silent) { Y.log(this.id + ': ' + msg, cat || 'info', 'event'); }
1021
+ },
1022
+
1023
+ /**
1024
+ * Notifies the subscribers. The callback functions will be executed
1025
+ * from the context specified when the event was created, and with the
1026
+ * following parameters:
1027
+ * <ul>
1028
+ * <li>The type of event</li>
1029
+ * <li>All of the arguments fire() was executed with as an array</li>
1030
+ * <li>The custom object (if any) that was passed into the subscribe()
1031
+ * method</li>
1032
+ * </ul>
1033
+ * @method fire
1034
+ * @param {Object*} arguments an arbitrary set of parameters to pass to
1035
+ * the handler.
1036
+ * @return {boolean} false if one of the subscribers returned false,
1037
+ * true otherwise.
1038
+ *
1039
+ */
1040
+ fire: function() {
1041
+
1042
+ // push is the fastest way to go from arguments to arrays
1043
+ // for most browsers currently
1044
+ // http://jsperf.com/push-vs-concat-vs-slice/2
1045
+
1046
+ var args = [];
1047
+ args.push.apply(args, arguments);
1048
+
1049
+ return this._fire(args);
1050
+ },
1051
+
1052
+ /**
1053
+ * Private internal implementation for `fire`, which is can be used directly by
1054
+ * `EventTarget` and other event module classes which have already converted from
1055
+ * an `arguments` list to an array, to avoid the repeated overhead.
1056
+ *
1057
+ * @method _fire
1058
+ * @private
1059
+ * @param {Array} args The array of arguments passed to be passed to handlers.
1060
+ * @return {boolean} false if one of the subscribers returned false, true otherwise.
1061
+ */
1062
+ _fire: function(args) {
1063
+
1064
+ if (this.fireOnce && this.fired) {
1065
+ this.log('fireOnce event: ' + this.type + ' already fired');
1066
+ return true;
1067
+ } else {
1068
+
1069
+ // this doesn't happen if the event isn't published
1070
+ // this.host._monitor('fire', this.type, args);
1071
+
1072
+ this.fired = true;
1073
+
1074
+ if (this.fireOnce) {
1075
+ this.firedWith = args;
1076
+ }
1077
+
1078
+ if (this.emitFacade) {
1079
+ return this.fireComplex(args);
1080
+ } else {
1081
+ return this.fireSimple(args);
1082
+ }
1083
+ }
1084
+ },
1085
+
1086
+ /**
1087
+ * Set up for notifying subscribers of non-emitFacade events.
1088
+ *
1089
+ * @method fireSimple
1090
+ * @param args {Array} Arguments passed to fire()
1091
+ * @return Boolean false if a subscriber returned false
1092
+ * @protected
1093
+ */
1094
+ fireSimple: function(args) {
1095
+ this.stopped = 0;
1096
+ this.prevented = 0;
1097
+ if (this.hasSubs()) {
1098
+ var subs = this.getSubs();
1099
+ this._procSubs(subs[0], args);
1100
+ this._procSubs(subs[1], args);
1101
+ }
1102
+ if (this.broadcast) {
1103
+ this._broadcast(args);
1104
+ }
1105
+ return this.stopped ? false : true;
1106
+ },
1107
+
1108
+ // Requires the event-custom-complex module for full funcitonality.
1109
+ fireComplex: function(args) {
1110
+ this.log('Missing event-custom-complex needed to emit a facade for: ' + this.type);
1111
+ args[0] = args[0] || {};
1112
+ return this.fireSimple(args);
1113
+ },
1114
+
1115
+ /**
1116
+ * Notifies a list of subscribers.
1117
+ *
1118
+ * @method _procSubs
1119
+ * @param subs {Array} List of subscribers
1120
+ * @param args {Array} Arguments passed to fire()
1121
+ * @param ef {}
1122
+ * @return Boolean false if a subscriber returns false or stops the event
1123
+ * propagation via e.stopPropagation(),
1124
+ * e.stopImmediatePropagation(), or e.halt()
1125
+ * @private
1126
+ */
1127
+ _procSubs: function(subs, args, ef) {
1128
+ var s, i, l;
1129
+
1130
+ for (i = 0, l = subs.length; i < l; i++) {
1131
+ s = subs[i];
1132
+ if (s && s.fn) {
1133
+ if (false === this._notify(s, args, ef)) {
1134
+ this.stopped = 2;
1135
+ }
1136
+ if (this.stopped === 2) {
1137
+ return false;
1138
+ }
1139
+ }
1140
+ }
1141
+
1142
+ return true;
1143
+ },
1144
+
1145
+ /**
1146
+ * Notifies the YUI instance if the event is configured with broadcast = 1,
1147
+ * and both the YUI instance and Y.Global if configured with broadcast = 2.
1148
+ *
1149
+ * @method _broadcast
1150
+ * @param args {Array} Arguments sent to fire()
1151
+ * @private
1152
+ */
1153
+ _broadcast: function(args) {
1154
+ if (!this.stopped && this.broadcast) {
1155
+
1156
+ var a = args.concat();
1157
+ a.unshift(this.type);
1158
+
1159
+ if (this.host !== Y) {
1160
+ Y.fire.apply(Y, a);
1161
+ }
1162
+
1163
+ if (this.broadcast === 2) {
1164
+ Y.Global.fire.apply(Y.Global, a);
1165
+ }
1166
+ }
1167
+ },
1168
+
1169
+ /**
1170
+ * Removes all listeners
1171
+ * @method unsubscribeAll
1172
+ * @return {Number} The number of listeners unsubscribed.
1173
+ * @deprecated use detachAll.
1174
+ */
1175
+ unsubscribeAll: function() {
1176
+ return this.detachAll.apply(this, arguments);
1177
+ },
1178
+
1179
+ /**
1180
+ * Removes all listeners
1181
+ * @method detachAll
1182
+ * @return {Number} The number of listeners unsubscribed.
1183
+ */
1184
+ detachAll: function() {
1185
+ return this.detach();
1186
+ },
1187
+
1188
+ /**
1189
+ * Deletes the subscriber from the internal store of on() and after()
1190
+ * subscribers.
1191
+ *
1192
+ * @method _delete
1193
+ * @param s subscriber object.
1194
+ * @param subs (optional) on or after subscriber array
1195
+ * @param index (optional) The index found.
1196
+ * @private
1197
+ */
1198
+ _delete: function(s, subs, i) {
1199
+ var when = s._when;
1200
+
1201
+ if (!subs) {
1202
+ subs = (when === AFTER) ? this._afters : this._subscribers;
1203
+ }
1204
+
1205
+ if (subs) {
1206
+ i = YArray.indexOf(subs, s, 0);
1207
+
1208
+ if (s && subs[i] === s) {
1209
+ subs.splice(i, 1);
1210
+ }
1211
+ }
1212
+
1213
+ if (this._kds) {
1214
+ if (when === AFTER) {
1215
+ delete this.afters[s.id];
1216
+ } else {
1217
+ delete this.subscribers[s.id];
1218
+ }
1219
+ }
1220
+
1221
+ if (this.monitored && this.host) {
1222
+ this.host._monitor('detach', this, {
1223
+ ce: this,
1224
+ sub: s
1225
+ });
1226
+ }
1227
+
1228
+ if (s) {
1229
+ s.deleted = true;
1230
+ }
1231
+ }
1232
+ };
1233
+ /**
1234
+ * Stores the subscriber information to be used when the event fires.
1235
+ * @param {Function} fn The wrapped function to execute.
1236
+ * @param {Object} context The value of the keyword 'this' in the listener.
1237
+ * @param {Array} args* 0..n additional arguments to supply the listener.
1238
+ *
1239
+ * @class Subscriber
1240
+ * @constructor
1241
+ */
1242
+ Y.Subscriber = function(fn, context, args, when) {
1243
+
1244
+ /**
1245
+ * The callback that will be execute when the event fires
1246
+ * This is wrapped by Y.rbind if obj was supplied.
1247
+ * @property fn
1248
+ * @type Function
1249
+ */
1250
+ this.fn = fn;
1251
+
1252
+ /**
1253
+ * Optional 'this' keyword for the listener
1254
+ * @property context
1255
+ * @type Object
1256
+ */
1257
+ this.context = context;
1258
+
1259
+ /**
1260
+ * Unique subscriber id
1261
+ * @property id
1262
+ * @type String
1263
+ */
1264
+ this.id = Y.guid();
1265
+
1266
+ /**
1267
+ * Additional arguments to propagate to the subscriber
1268
+ * @property args
1269
+ * @type Array
1270
+ */
1271
+ this.args = args;
1272
+
1273
+ this._when = when;
1274
+
1275
+ /**
1276
+ * Custom events for a given fire transaction.
1277
+ * @property events
1278
+ * @type {EventTarget}
1279
+ */
1280
+ // this.events = null;
1281
+
1282
+ /**
1283
+ * This listener only reacts to the event once
1284
+ * @property once
1285
+ */
1286
+ // this.once = false;
1287
+
1288
+ };
1289
+
1290
+ Y.Subscriber.prototype = {
1291
+ constructor: Y.Subscriber,
1292
+
1293
+ _notify: function(c, args, ce) {
1294
+ if (this.deleted && !this.postponed) {
1295
+ if (this.postponed) {
1296
+ delete this.fn;
1297
+ delete this.context;
1298
+ } else {
1299
+ delete this.postponed;
1300
+ return null;
1301
+ }
1302
+ }
1303
+ var a = this.args, ret;
1304
+ switch (ce.signature) {
1305
+ case 0:
1306
+ ret = this.fn.call(c, ce.type, args, c);
1307
+ break;
1308
+ case 1:
1309
+ ret = this.fn.call(c, args[0] || null, c);
1310
+ break;
1311
+ default:
1312
+ if (a || args) {
1313
+ args = args || [];
1314
+ a = (a) ? args.concat(a) : args;
1315
+ ret = this.fn.apply(c, a);
1316
+ } else {
1317
+ ret = this.fn.call(c);
1318
+ }
1319
+ }
1320
+
1321
+ if (this.once) {
1322
+ ce._delete(this);
1323
+ }
1324
+
1325
+ return ret;
1326
+ },
1327
+
1328
+ /**
1329
+ * Executes the subscriber.
1330
+ * @method notify
1331
+ * @param args {Array} Arguments array for the subscriber.
1332
+ * @param ce {CustomEvent} The custom event that sent the notification.
1333
+ */
1334
+ notify: function(args, ce) {
1335
+ var c = this.context,
1336
+ ret = true;
1337
+
1338
+ if (!c) {
1339
+ c = (ce.contextFn) ? ce.contextFn() : ce.context;
1340
+ }
1341
+
1342
+ // only catch errors if we will not re-throw them.
1343
+ if (Y.config && Y.config.throwFail) {
1344
+ ret = this._notify(c, args, ce);
1345
+ } else {
1346
+ try {
1347
+ ret = this._notify(c, args, ce);
1348
+ } catch (e) {
1349
+ Y.error(this + ' failed: ' + e.message, e);
1350
+ }
1351
+ }
1352
+
1353
+ return ret;
1354
+ },
1355
+
1356
+ /**
1357
+ * Returns true if the fn and obj match this objects properties.
1358
+ * Used by the unsubscribe method to match the right subscriber.
1359
+ *
1360
+ * @method contains
1361
+ * @param {Function} fn the function to execute.
1362
+ * @param {Object} context optional 'this' keyword for the listener.
1363
+ * @return {boolean} true if the supplied arguments match this
1364
+ * subscriber's signature.
1365
+ */
1366
+ contains: function(fn, context) {
1367
+ if (context) {
1368
+ return ((this.fn === fn) && this.context === context);
1369
+ } else {
1370
+ return (this.fn === fn);
1371
+ }
1372
+ },
1373
+
1374
+ valueOf : function() {
1375
+ return this.id;
1376
+ }
1377
+
1378
+ };
1379
+ /**
1380
+ * Return value from all subscribe operations
1381
+ * @class EventHandle
1382
+ * @constructor
1383
+ * @param {CustomEvent} evt the custom event.
1384
+ * @param {Subscriber} sub the subscriber.
1385
+ */
1386
+ Y.EventHandle = function(evt, sub) {
1387
+
1388
+ /**
1389
+ * The custom event
1390
+ *
1391
+ * @property evt
1392
+ * @type CustomEvent
1393
+ */
1394
+ this.evt = evt;
1395
+
1396
+ /**
1397
+ * The subscriber object
1398
+ *
1399
+ * @property sub
1400
+ * @type Subscriber
1401
+ */
1402
+ this.sub = sub;
1403
+ };
1404
+
1405
+ Y.EventHandle.prototype = {
1406
+ batch: function(f, c) {
1407
+ f.call(c || this, this);
1408
+ if (Y.Lang.isArray(this.evt)) {
1409
+ Y.Array.each(this.evt, function(h) {
1410
+ h.batch.call(c || h, f);
1411
+ });
1412
+ }
1413
+ },
1414
+
1415
+ /**
1416
+ * Detaches this subscriber
1417
+ * @method detach
1418
+ * @return {Number} the number of detached listeners
1419
+ */
1420
+ detach: function() {
1421
+ var evt = this.evt, detached = 0, i;
1422
+ if (evt) {
1423
+ // Y.log('EventHandle.detach: ' + this.sub, 'info', 'Event');
1424
+ if (Y.Lang.isArray(evt)) {
1425
+ for (i = 0; i < evt.length; i++) {
1426
+ detached += evt[i].detach();
1427
+ }
1428
+ } else {
1429
+ evt._delete(this.sub);
1430
+ detached = 1;
1431
+ }
1432
+
1433
+ }
1434
+
1435
+ return detached;
1436
+ },
1437
+
1438
+ /**
1439
+ * Monitor the event state for the subscribed event. The first parameter
1440
+ * is what should be monitored, the rest are the normal parameters when
1441
+ * subscribing to an event.
1442
+ * @method monitor
1443
+ * @param what {string} what to monitor ('attach', 'detach', 'publish').
1444
+ * @return {EventHandle} return value from the monitor event subscription.
1445
+ */
1446
+ monitor: function(what) {
1447
+ return this.evt.monitor.apply(this.evt, arguments);
1448
+ }
1449
+ };
1450
+
1451
+ /**
1452
+ * Custom event engine, DOM event listener abstraction layer, synthetic DOM
1453
+ * events.
1454
+ * @module event-custom
1455
+ * @submodule event-custom-base
1456
+ */
1457
+
1458
+ /**
1459
+ * EventTarget provides the implementation for any object to
1460
+ * publish, subscribe and fire to custom events, and also
1461
+ * alows other EventTargets to target the object with events
1462
+ * sourced from the other object.
1463
+ * EventTarget is designed to be used with Y.augment to wrap
1464
+ * EventCustom in an interface that allows events to be listened to
1465
+ * and fired by name. This makes it possible for implementing code to
1466
+ * subscribe to an event that either has not been created yet, or will
1467
+ * not be created at all.
1468
+ * @class EventTarget
1469
+ * @param opts a configuration object
1470
+ * @config emitFacade {boolean} if true, all events will emit event
1471
+ * facade payloads by default (default false)
1472
+ * @config prefix {String} the prefix to apply to non-prefixed event names
1473
+ */
1474
+
1475
+ var L = Y.Lang,
1476
+ PREFIX_DELIMITER = ':',
1477
+ CATEGORY_DELIMITER = '|',
1478
+ AFTER_PREFIX = '~AFTER~',
1479
+ WILD_TYPE_RE = /(.*?)(:)(.*?)/,
1480
+
1481
+ _wildType = Y.cached(function(type) {
1482
+ return type.replace(WILD_TYPE_RE, "*$2$3");
1483
+ }),
1484
+
1485
+ /**
1486
+ * If the instance has a prefix attribute and the
1487
+ * event type is not prefixed, the instance prefix is
1488
+ * applied to the supplied type.
1489
+ * @method _getType
1490
+ * @private
1491
+ */
1492
+ _getType = function(type, pre) {
1493
+
1494
+ if (!pre || !type || type.indexOf(PREFIX_DELIMITER) > -1) {
1495
+ return type;
1496
+ }
1497
+
1498
+ return pre + PREFIX_DELIMITER + type;
1499
+ },
1500
+
1501
+ /**
1502
+ * Returns an array with the detach key (if provided),
1503
+ * and the prefixed event name from _getType
1504
+ * Y.on('detachcategory| menu:click', fn)
1505
+ * @method _parseType
1506
+ * @private
1507
+ */
1508
+ _parseType = Y.cached(function(type, pre) {
1509
+
1510
+ var t = type, detachcategory, after, i;
1511
+
1512
+ if (!L.isString(t)) {
1513
+ return t;
1514
+ }
1515
+
1516
+ i = t.indexOf(AFTER_PREFIX);
1517
+
1518
+ if (i > -1) {
1519
+ after = true;
1520
+ t = t.substr(AFTER_PREFIX.length);
1521
+ }
1522
+
1523
+ i = t.indexOf(CATEGORY_DELIMITER);
1524
+
1525
+ if (i > -1) {
1526
+ detachcategory = t.substr(0, (i));
1527
+ t = t.substr(i+1);
1528
+ if (t === '*') {
1529
+ t = null;
1530
+ }
1531
+ }
1532
+
1533
+ // detach category, full type with instance prefix, is this an after listener, short type
1534
+ return [detachcategory, (pre) ? _getType(t, pre) : t, after, t];
1535
+ }),
1536
+
1537
+ ET = function(opts) {
1538
+
1539
+ var etState = this._yuievt,
1540
+ etConfig;
1541
+
1542
+ if (!etState) {
1543
+ etState = this._yuievt = {
1544
+ events: {}, // PERF: Not much point instantiating lazily. We're bound to have events
1545
+ targets: null, // PERF: Instantiate lazily, if user actually adds target,
1546
+ config: {
1547
+ host: this,
1548
+ context: this
1549
+ },
1550
+ chain: Y.config.chain
1551
+ };
1552
+ }
1553
+
1554
+ etConfig = etState.config;
1555
+
1556
+ if (opts) {
1557
+ mixConfigs(etConfig, opts, true);
1558
+
1559
+ if (opts.chain !== undefined) {
1560
+ etState.chain = opts.chain;
1561
+ }
1562
+
1563
+ if (opts.prefix) {
1564
+ etConfig.prefix = opts.prefix;
1565
+ }
1566
+ }
1567
+ };
1568
+
1569
+ ET.prototype = {
1570
+
1571
+ constructor: ET,
1572
+
1573
+ /**
1574
+ * Listen to a custom event hosted by this object one time.
1575
+ * This is the equivalent to <code>on</code> except the
1576
+ * listener is immediatelly detached when it is executed.
1577
+ * @method once
1578
+ * @param {String} type The name of the event
1579
+ * @param {Function} fn The callback to execute in response to the event
1580
+ * @param {Object} [context] Override `this` object in callback
1581
+ * @param {Any} [arg*] 0..n additional arguments to supply to the subscriber
1582
+ * @return {EventHandle} A subscription handle capable of detaching the
1583
+ * subscription
1584
+ */
1585
+ once: function() {
1586
+ var handle = this.on.apply(this, arguments);
1587
+ handle.batch(function(hand) {
1588
+ if (hand.sub) {
1589
+ hand.sub.once = true;
1590
+ }
1591
+ });
1592
+ return handle;
1593
+ },
1594
+
1595
+ /**
1596
+ * Listen to a custom event hosted by this object one time.
1597
+ * This is the equivalent to <code>after</code> except the
1598
+ * listener is immediatelly detached when it is executed.
1599
+ * @method onceAfter
1600
+ * @param {String} type The name of the event
1601
+ * @param {Function} fn The callback to execute in response to the event
1602
+ * @param {Object} [context] Override `this` object in callback
1603
+ * @param {Any} [arg*] 0..n additional arguments to supply to the subscriber
1604
+ * @return {EventHandle} A subscription handle capable of detaching that
1605
+ * subscription
1606
+ */
1607
+ onceAfter: function() {
1608
+ var handle = this.after.apply(this, arguments);
1609
+ handle.batch(function(hand) {
1610
+ if (hand.sub) {
1611
+ hand.sub.once = true;
1612
+ }
1613
+ });
1614
+ return handle;
1615
+ },
1616
+
1617
+ /**
1618
+ * Takes the type parameter passed to 'on' and parses out the
1619
+ * various pieces that could be included in the type. If the
1620
+ * event type is passed without a prefix, it will be expanded
1621
+ * to include the prefix one is supplied or the event target
1622
+ * is configured with a default prefix.
1623
+ * @method parseType
1624
+ * @param {String} type the type
1625
+ * @param {String} [pre] The prefix. Defaults to this._yuievt.config.prefix
1626
+ * @since 3.3.0
1627
+ * @return {Array} an array containing:
1628
+ * * the detach category, if supplied,
1629
+ * * the prefixed event type,
1630
+ * * whether or not this is an after listener,
1631
+ * * the supplied event type
1632
+ */
1633
+ parseType: function(type, pre) {
1634
+ return _parseType(type, pre || this._yuievt.config.prefix);
1635
+ },
1636
+
1637
+ /**
1638
+ * Subscribe a callback function to a custom event fired by this object or
1639
+ * from an object that bubbles its events to this object.
1640
+ *
1641
+ * this.on("change", this._onChange, this);
1642
+ *
1643
+ * Callback functions for events published with `emitFacade = true` will
1644
+ * receive an `EventFacade` as the first argument (typically named "e").
1645
+ * These callbacks can then call `e.preventDefault()` to disable the
1646
+ * behavior published to that event's `defaultFn`. See the `EventFacade`
1647
+ * API for all available properties and methods. Subscribers to
1648
+ * non-`emitFacade` events will receive the arguments passed to `fire()`
1649
+ * after the event name.
1650
+ *
1651
+ * To subscribe to multiple events at once, pass an object as the first
1652
+ * argument, where the key:value pairs correspond to the eventName:callback.
1653
+ *
1654
+ * this.on({
1655
+ * "attrChange" : this._onAttrChange,
1656
+ * "change" : this._onChange
1657
+ * });
1658
+ *
1659
+ * You can also pass an array of event names as the first argument to
1660
+ * subscribe to all listed events with the same callback.
1661
+ *
1662
+ * this.on([ "change", "attrChange" ], this._onChange);
1663
+ *
1664
+ * Returning `false` from a callback is supported as an alternative to
1665
+ * calling `e.preventDefault(); e.stopPropagation();`. However, it is
1666
+ * recommended to use the event methods whenever possible.
1667
+ *
1668
+ * @method on
1669
+ * @param {String} type The name of the event
1670
+ * @param {Function} fn The callback to execute in response to the event
1671
+ * @param {Object} [context] Override `this` object in callback
1672
+ * @param {Any} [arg*] 0..n additional arguments to supply to the subscriber
1673
+ * @return {EventHandle} A subscription handle capable of detaching that
1674
+ * subscription
1675
+ */
1676
+ on: function(type, fn, context) {
1677
+
1678
+ var yuievt = this._yuievt,
1679
+ parts = _parseType(type, yuievt.config.prefix), f, c, args, ret, ce,
1680
+ detachcategory, handle, store = Y.Env.evt.handles, after, adapt, shorttype,
1681
+ Node = Y.Node, n, domevent, isArr;
1682
+
1683
+ // full name, args, detachcategory, after
1684
+ this._monitor('attach', parts[1], {
1685
+ args: arguments,
1686
+ category: parts[0],
1687
+ after: parts[2]
1688
+ });
1689
+
1690
+ if (L.isObject(type)) {
1691
+
1692
+ if (L.isFunction(type)) {
1693
+ return Y.Do.before.apply(Y.Do, arguments);
1694
+ }
1695
+
1696
+ f = fn;
1697
+ c = context;
1698
+ args = nativeSlice.call(arguments, 0);
1699
+ ret = [];
1700
+
1701
+ if (L.isArray(type)) {
1702
+ isArr = true;
1703
+ }
1704
+
1705
+ after = type._after;
1706
+ delete type._after;
1707
+
1708
+ Y.each(type, function(v, k) {
1709
+
1710
+ if (L.isObject(v)) {
1711
+ f = v.fn || ((L.isFunction(v)) ? v : f);
1712
+ c = v.context || c;
1713
+ }
1714
+
1715
+ var nv = (after) ? AFTER_PREFIX : '';
1716
+
1717
+ args[0] = nv + ((isArr) ? v : k);
1718
+ args[1] = f;
1719
+ args[2] = c;
1720
+
1721
+ ret.push(this.on.apply(this, args));
1722
+
1723
+ }, this);
1724
+
1725
+ return (yuievt.chain) ? this : new Y.EventHandle(ret);
1726
+ }
1727
+
1728
+ detachcategory = parts[0];
1729
+ after = parts[2];
1730
+ shorttype = parts[3];
1731
+
1732
+ // extra redirection so we catch adaptor events too. take a look at this.
1733
+ if (Node && Y.instanceOf(this, Node) && (shorttype in Node.DOM_EVENTS)) {
1734
+ args = nativeSlice.call(arguments, 0);
1735
+ args.splice(2, 0, Node.getDOMNode(this));
1736
+ // Y.log("Node detected, redirecting with these args: " + args);
1737
+ return Y.on.apply(Y, args);
1738
+ }
1739
+
1740
+ type = parts[1];
1741
+
1742
+ if (Y.instanceOf(this, YUI)) {
1743
+
1744
+ adapt = Y.Env.evt.plugins[type];
1745
+ args = nativeSlice.call(arguments, 0);
1746
+ args[0] = shorttype;
1747
+
1748
+ if (Node) {
1749
+ n = args[2];
1750
+
1751
+ if (Y.instanceOf(n, Y.NodeList)) {
1752
+ n = Y.NodeList.getDOMNodes(n);
1753
+ } else if (Y.instanceOf(n, Node)) {
1754
+ n = Node.getDOMNode(n);
1755
+ }
1756
+
1757
+ domevent = (shorttype in Node.DOM_EVENTS);
1758
+
1759
+ // Captures both DOM events and event plugins.
1760
+ if (domevent) {
1761
+ args[2] = n;
1762
+ }
1763
+ }
1764
+
1765
+ // check for the existance of an event adaptor
1766
+ if (adapt) {
1767
+ Y.log('Using adaptor for ' + shorttype + ', ' + n, 'info', 'event');
1768
+ handle = adapt.on.apply(Y, args);
1769
+ } else if ((!type) || domevent) {
1770
+ handle = Y.Event._attach(args);
1771
+ }
1772
+
1773
+ }
1774
+
1775
+ if (!handle) {
1776
+ ce = yuievt.events[type] || this.publish(type);
1777
+ handle = ce._on(fn, context, (arguments.length > 3) ? nativeSlice.call(arguments, 3) : null, (after) ? 'after' : true);
1778
+
1779
+ // TODO: More robust regex, accounting for category
1780
+ if (type.indexOf("*:") !== -1) {
1781
+ this._hasSiblings = true;
1782
+ }
1783
+ }
1784
+
1785
+ if (detachcategory) {
1786
+ store[detachcategory] = store[detachcategory] || {};
1787
+ store[detachcategory][type] = store[detachcategory][type] || [];
1788
+ store[detachcategory][type].push(handle);
1789
+ }
1790
+
1791
+ return (yuievt.chain) ? this : handle;
1792
+
1793
+ },
1794
+
1795
+ /**
1796
+ * subscribe to an event
1797
+ * @method subscribe
1798
+ * @deprecated use on
1799
+ */
1800
+ subscribe: function() {
1801
+ Y.log('EventTarget subscribe() is deprecated, use on()', 'warn', 'deprecated');
1802
+ return this.on.apply(this, arguments);
1803
+ },
1804
+
1805
+ /**
1806
+ * Detach one or more listeners the from the specified event
1807
+ * @method detach
1808
+ * @param type {string|Object} Either the handle to the subscriber or the
1809
+ * type of event. If the type
1810
+ * is not specified, it will attempt to remove
1811
+ * the listener from all hosted events.
1812
+ * @param fn {Function} The subscribed function to unsubscribe, if not
1813
+ * supplied, all subscribers will be removed.
1814
+ * @param context {Object} The custom object passed to subscribe. This is
1815
+ * optional, but if supplied will be used to
1816
+ * disambiguate multiple listeners that are the same
1817
+ * (e.g., you subscribe many object using a function
1818
+ * that lives on the prototype)
1819
+ * @return {EventTarget} the host
1820
+ */
1821
+ detach: function(type, fn, context) {
1822
+
1823
+ var evts = this._yuievt.events,
1824
+ i,
1825
+ Node = Y.Node,
1826
+ isNode = Node && (Y.instanceOf(this, Node));
1827
+
1828
+ // detachAll disabled on the Y instance.
1829
+ if (!type && (this !== Y)) {
1830
+ for (i in evts) {
1831
+ if (evts.hasOwnProperty(i)) {
1832
+ evts[i].detach(fn, context);
1833
+ }
1834
+ }
1835
+ if (isNode) {
1836
+ Y.Event.purgeElement(Node.getDOMNode(this));
1837
+ }
1838
+
1839
+ return this;
1840
+ }
1841
+
1842
+ var parts = _parseType(type, this._yuievt.config.prefix),
1843
+ detachcategory = L.isArray(parts) ? parts[0] : null,
1844
+ shorttype = (parts) ? parts[3] : null,
1845
+ adapt, store = Y.Env.evt.handles, detachhost, cat, args,
1846
+ ce,
1847
+
1848
+ keyDetacher = function(lcat, ltype, host) {
1849
+ var handles = lcat[ltype], ce, i;
1850
+ if (handles) {
1851
+ for (i = handles.length - 1; i >= 0; --i) {
1852
+ ce = handles[i].evt;
1853
+ if (ce.host === host || ce.el === host) {
1854
+ handles[i].detach();
1855
+ }
1856
+ }
1857
+ }
1858
+ };
1859
+
1860
+ if (detachcategory) {
1861
+
1862
+ cat = store[detachcategory];
1863
+ type = parts[1];
1864
+ detachhost = (isNode) ? Y.Node.getDOMNode(this) : this;
1865
+
1866
+ if (cat) {
1867
+ if (type) {
1868
+ keyDetacher(cat, type, detachhost);
1869
+ } else {
1870
+ for (i in cat) {
1871
+ if (cat.hasOwnProperty(i)) {
1872
+ keyDetacher(cat, i, detachhost);
1873
+ }
1874
+ }
1875
+ }
1876
+
1877
+ return this;
1878
+ }
1879
+
1880
+ // If this is an event handle, use it to detach
1881
+ } else if (L.isObject(type) && type.detach) {
1882
+ type.detach();
1883
+ return this;
1884
+ // extra redirection so we catch adaptor events too. take a look at this.
1885
+ } else if (isNode && ((!shorttype) || (shorttype in Node.DOM_EVENTS))) {
1886
+ args = nativeSlice.call(arguments, 0);
1887
+ args[2] = Node.getDOMNode(this);
1888
+ Y.detach.apply(Y, args);
1889
+ return this;
1890
+ }
1891
+
1892
+ adapt = Y.Env.evt.plugins[shorttype];
1893
+
1894
+ // The YUI instance handles DOM events and adaptors
1895
+ if (Y.instanceOf(this, YUI)) {
1896
+ args = nativeSlice.call(arguments, 0);
1897
+ // use the adaptor specific detach code if
1898
+ if (adapt && adapt.detach) {
1899
+ adapt.detach.apply(Y, args);
1900
+ return this;
1901
+ // DOM event fork
1902
+ } else if (!type || (!adapt && Node && (type in Node.DOM_EVENTS))) {
1903
+ args[0] = type;
1904
+ Y.Event.detach.apply(Y.Event, args);
1905
+ return this;
1906
+ }
1907
+ }
1908
+
1909
+ // ce = evts[type];
1910
+ ce = evts[parts[1]];
1911
+ if (ce) {
1912
+ ce.detach(fn, context);
1913
+ }
1914
+
1915
+ return this;
1916
+ },
1917
+
1918
+ /**
1919
+ * detach a listener
1920
+ * @method unsubscribe
1921
+ * @deprecated use detach
1922
+ */
1923
+ unsubscribe: function() {
1924
+ Y.log('EventTarget unsubscribe() is deprecated, use detach()', 'warn', 'deprecated');
1925
+ return this.detach.apply(this, arguments);
1926
+ },
1927
+
1928
+ /**
1929
+ * Removes all listeners from the specified event. If the event type
1930
+ * is not specified, all listeners from all hosted custom events will
1931
+ * be removed.
1932
+ * @method detachAll
1933
+ * @param type {String} The type, or name of the event
1934
+ */
1935
+ detachAll: function(type) {
1936
+ return this.detach(type);
1937
+ },
1938
+
1939
+ /**
1940
+ * Removes all listeners from the specified event. If the event type
1941
+ * is not specified, all listeners from all hosted custom events will
1942
+ * be removed.
1943
+ * @method unsubscribeAll
1944
+ * @param type {String} The type, or name of the event
1945
+ * @deprecated use detachAll
1946
+ */
1947
+ unsubscribeAll: function() {
1948
+ Y.log('EventTarget unsubscribeAll() is deprecated, use detachAll()', 'warn', 'deprecated');
1949
+ return this.detachAll.apply(this, arguments);
1950
+ },
1951
+
1952
+ /**
1953
+ * Creates a new custom event of the specified type. If a custom event
1954
+ * by that name already exists, it will not be re-created. In either
1955
+ * case the custom event is returned.
1956
+ *
1957
+ * @method publish
1958
+ *
1959
+ * @param type {String} the type, or name of the event
1960
+ * @param opts {object} optional config params. Valid properties are:
1961
+ * @param [opts.broadcast=false] {Boolean} whether or not the YUI instance and YUI global
1962
+ * are notified when the event is fired.
1963
+ * @param [opts.bubbles=true] {Boolean} Whether or not this event bubbles. Events can
1964
+ * only bubble if `emitFacade` is true.
1965
+ * @param [opts.context=this] {Object} the default execution context for the listeners.
1966
+ * @param [opts.defaultFn] {Function} the default function to execute when this event
1967
+ * fires if preventDefault was not called.
1968
+ * @param [opts.emitFacade=false] {Boolean} whether or not this event emits a facade.
1969
+ * @param [opts.prefix] {String} the prefix for this targets events, e.g., 'menu' in 'menu:click'.
1970
+ * @param [opts.fireOnce=false] {Boolean} if an event is configured to fire once,
1971
+ * new subscribers after the fire will be notified immediately.
1972
+ * @param [opts.async=false] {Boolean} fireOnce event listeners will fire synchronously
1973
+ * if the event has already fired unless `async` is `true`.
1974
+ * @param [opts.preventable=true] {Boolean} whether or not `preventDefault()` has an effect.
1975
+ * @param [opts.preventedFn] {Function} a function that is executed when `preventDefault()` is called.
1976
+ * @param [opts.queuable=false] {Boolean} whether or not this event can be queued during bubbling.
1977
+ * @param [opts.silent] {Boolean} if silent is true, debug messages are not provided for this event.
1978
+ * @param [opts.stoppedFn] {Function} a function that is executed when stopPropagation is called.
1979
+ * @param [opts.monitored] {Boolean} specifies whether or not this event should send notifications about
1980
+ * when the event has been attached, detached, or published.
1981
+ * @param [opts.type] {String} the event type (valid option if not provided as the first parameter to publish).
1982
+ *
1983
+ * @return {CustomEvent} the custom event
1984
+ *
1985
+ */
1986
+ publish: function(type, opts) {
1987
+
1988
+ var ret,
1989
+ etState = this._yuievt,
1990
+ etConfig = etState.config,
1991
+ pre = etConfig.prefix;
1992
+
1993
+ if (typeof type === "string") {
1994
+ if (pre) {
1995
+ type = _getType(type, pre);
1996
+ }
1997
+ ret = this._publish(type, etConfig, opts);
1998
+ } else {
1999
+ ret = {};
2000
+
2001
+ Y.each(type, function(v, k) {
2002
+ if (pre) {
2003
+ k = _getType(k, pre);
2004
+ }
2005
+ ret[k] = this._publish(k, etConfig, v || opts);
2006
+ }, this);
2007
+
2008
+ }
2009
+
2010
+ return ret;
2011
+ },
2012
+
2013
+ /**
2014
+ * Returns the fully qualified type, given a short type string.
2015
+ * That is, returns "foo:bar" when given "bar" if "foo" is the configured prefix.
2016
+ *
2017
+ * NOTE: This method, unlike _getType, does no checking of the value passed in, and
2018
+ * is designed to be used with the low level _publish() method, for critical path
2019
+ * implementations which need to fast-track publish for performance reasons.
2020
+ *
2021
+ * @method _getFullType
2022
+ * @private
2023
+ * @param {String} type The short type to prefix
2024
+ * @return {String} The prefixed type, if a prefix is set, otherwise the type passed in
2025
+ */
2026
+ _getFullType : function(type) {
2027
+
2028
+ var pre = this._yuievt.config.prefix;
2029
+
2030
+ if (pre) {
2031
+ return pre + PREFIX_DELIMITER + type;
2032
+ } else {
2033
+ return type;
2034
+ }
2035
+ },
2036
+
2037
+ /**
2038
+ * The low level event publish implementation. It expects all the massaging to have been done
2039
+ * outside of this method. e.g. the `type` to `fullType` conversion. It's designed to be a fast
2040
+ * path publish, which can be used by critical code paths to improve performance.
2041
+ *
2042
+ * @method _publish
2043
+ * @private
2044
+ * @param {String} fullType The prefixed type of the event to publish.
2045
+ * @param {Object} etOpts The EventTarget specific configuration to mix into the published event.
2046
+ * @param {Object} ceOpts The publish specific configuration to mix into the published event.
2047
+ * @return {CustomEvent} The published event. If called without `etOpts` or `ceOpts`, this will
2048
+ * be the default `CustomEvent` instance, and can be configured independently.
2049
+ */
2050
+ _publish : function(fullType, etOpts, ceOpts) {
2051
+
2052
+ var ce,
2053
+ etState = this._yuievt,
2054
+ etConfig = etState.config,
2055
+ host = etConfig.host,
2056
+ context = etConfig.context,
2057
+ events = etState.events;
2058
+
2059
+ ce = events[fullType];
2060
+
2061
+ // PERF: Hate to pull the check out of monitor, but trying to keep critical path tight.
2062
+ if ((etConfig.monitored && !ce) || (ce && ce.monitored)) {
2063
+ this._monitor('publish', fullType, {
2064
+ args: arguments
2065
+ });
2066
+ }
2067
+
2068
+ if (!ce) {
2069
+ // Publish event
2070
+ ce = events[fullType] = new Y.CustomEvent(fullType, etOpts);
2071
+
2072
+ if (!etOpts) {
2073
+ ce.host = host;
2074
+ ce.context = context;
2075
+ }
2076
+ }
2077
+
2078
+ if (ceOpts) {
2079
+ mixConfigs(ce, ceOpts, true);
2080
+ }
2081
+
2082
+ return ce;
2083
+ },
2084
+
2085
+ /**
2086
+ * This is the entry point for the event monitoring system.
2087
+ * You can monitor 'attach', 'detach', 'fire', and 'publish'.
2088
+ * When configured, these events generate an event. click ->
2089
+ * click_attach, click_detach, click_publish -- these can
2090
+ * be subscribed to like other events to monitor the event
2091
+ * system. Inividual published events can have monitoring
2092
+ * turned on or off (publish can't be turned off before it
2093
+ * it published) by setting the events 'monitor' config.
2094
+ *
2095
+ * @method _monitor
2096
+ * @param what {String} 'attach', 'detach', 'fire', or 'publish'
2097
+ * @param eventType {String|CustomEvent} The prefixed name of the event being monitored, or the CustomEvent object.
2098
+ * @param o {Object} Information about the event interaction, such as
2099
+ * fire() args, subscription category, publish config
2100
+ * @private
2101
+ */
2102
+ _monitor: function(what, eventType, o) {
2103
+ var monitorevt, ce, type;
2104
+
2105
+ if (eventType) {
2106
+ if (typeof eventType === "string") {
2107
+ type = eventType;
2108
+ ce = this.getEvent(eventType, true);
2109
+ } else {
2110
+ ce = eventType;
2111
+ type = eventType.type;
2112
+ }
2113
+
2114
+ if ((this._yuievt.config.monitored && (!ce || ce.monitored)) || (ce && ce.monitored)) {
2115
+ monitorevt = type + '_' + what;
2116
+ o.monitored = what;
2117
+ this.fire.call(this, monitorevt, o);
2118
+ }
2119
+ }
2120
+ },
2121
+
2122
+ /**
2123
+ * Fire a custom event by name. The callback functions will be executed
2124
+ * from the context specified when the event was created, and with the
2125
+ * following parameters.
2126
+ *
2127
+ * The first argument is the event type, and any additional arguments are
2128
+ * passed to the listeners as parameters. If the first of these is an
2129
+ * object literal, and the event is configured to emit an event facade,
2130
+ * that object is mixed into the event facade and the facade is provided
2131
+ * in place of the original object.
2132
+ *
2133
+ * If the custom event object hasn't been created, then the event hasn't
2134
+ * been published and it has no subscribers. For performance sake, we
2135
+ * immediate exit in this case. This means the event won't bubble, so
2136
+ * if the intention is that a bubble target be notified, the event must
2137
+ * be published on this object first.
2138
+ *
2139
+ * @method fire
2140
+ * @param type {String|Object} The type of the event, or an object that contains
2141
+ * a 'type' property.
2142
+ * @param arguments {Object*} an arbitrary set of parameters to pass to
2143
+ * the handler. If the first of these is an object literal and the event is
2144
+ * configured to emit an event facade, the event facade will replace that
2145
+ * parameter after the properties the object literal contains are copied to
2146
+ * the event facade.
2147
+ * @return {Boolean} True if the whole lifecycle of the event went through,
2148
+ * false if at any point the event propagation was halted.
2149
+ */
2150
+ fire: function(type) {
2151
+
2152
+ var typeIncluded = (typeof type === "string"),
2153
+ argCount = arguments.length,
2154
+ t = type,
2155
+ yuievt = this._yuievt,
2156
+ etConfig = yuievt.config,
2157
+ pre = etConfig.prefix,
2158
+ ret,
2159
+ ce,
2160
+ ce2,
2161
+ args;
2162
+
2163
+ if (typeIncluded && argCount <= 3) {
2164
+
2165
+ // PERF: Try to avoid slice/iteration for the common signatures
2166
+
2167
+ // Most common
2168
+ if (argCount === 2) {
2169
+ args = [arguments[1]]; // fire("foo", {})
2170
+ } else if (argCount === 3) {
2171
+ args = [arguments[1], arguments[2]]; // fire("foo", {}, opts)
2172
+ } else {
2173
+ args = []; // fire("foo")
2174
+ }
2175
+
2176
+ } else {
2177
+ args = nativeSlice.call(arguments, ((typeIncluded) ? 1 : 0));
2178
+ }
2179
+
2180
+ if (!typeIncluded) {
2181
+ t = (type && type.type);
2182
+ }
2183
+
2184
+ if (pre) {
2185
+ t = _getType(t, pre);
2186
+ }
2187
+
2188
+ ce = yuievt.events[t];
2189
+
2190
+ if (this._hasSiblings) {
2191
+ ce2 = this.getSibling(t, ce);
2192
+
2193
+ if (ce2 && !ce) {
2194
+ ce = this.publish(t);
2195
+ }
2196
+ }
2197
+
2198
+ // PERF: trying to avoid function call, since this is a critical path
2199
+ if ((etConfig.monitored && (!ce || ce.monitored)) || (ce && ce.monitored)) {
2200
+ this._monitor('fire', (ce || t), {
2201
+ args: args
2202
+ });
2203
+ }
2204
+
2205
+ // this event has not been published or subscribed to
2206
+ if (!ce) {
2207
+ if (yuievt.hasTargets) {
2208
+ return this.bubble({ type: t }, args, this);
2209
+ }
2210
+
2211
+ // otherwise there is nothing to be done
2212
+ ret = true;
2213
+ } else {
2214
+
2215
+ if (ce2) {
2216
+ ce.sibling = ce2;
2217
+ }
2218
+
2219
+ ret = ce._fire(args);
2220
+ }
2221
+
2222
+ return (yuievt.chain) ? this : ret;
2223
+ },
2224
+
2225
+ getSibling: function(type, ce) {
2226
+ var ce2;
2227
+
2228
+ // delegate to *:type events if there are subscribers
2229
+ if (type.indexOf(PREFIX_DELIMITER) > -1) {
2230
+ type = _wildType(type);
2231
+ ce2 = this.getEvent(type, true);
2232
+ if (ce2) {
2233
+ ce2.applyConfig(ce);
2234
+ ce2.bubbles = false;
2235
+ ce2.broadcast = 0;
2236
+ }
2237
+ }
2238
+
2239
+ return ce2;
2240
+ },
2241
+
2242
+ /**
2243
+ * Returns the custom event of the provided type has been created, a
2244
+ * falsy value otherwise
2245
+ * @method getEvent
2246
+ * @param type {String} the type, or name of the event
2247
+ * @param prefixed {String} if true, the type is prefixed already
2248
+ * @return {CustomEvent} the custom event or null
2249
+ */
2250
+ getEvent: function(type, prefixed) {
2251
+ var pre, e;
2252
+
2253
+ if (!prefixed) {
2254
+ pre = this._yuievt.config.prefix;
2255
+ type = (pre) ? _getType(type, pre) : type;
2256
+ }
2257
+ e = this._yuievt.events;
2258
+ return e[type] || null;
2259
+ },
2260
+
2261
+ /**
2262
+ * Subscribe to a custom event hosted by this object. The
2263
+ * supplied callback will execute after any listeners add
2264
+ * via the subscribe method, and after the default function,
2265
+ * if configured for the event, has executed.
2266
+ *
2267
+ * @method after
2268
+ * @param {String} type The name of the event
2269
+ * @param {Function} fn The callback to execute in response to the event
2270
+ * @param {Object} [context] Override `this` object in callback
2271
+ * @param {Any} [arg*] 0..n additional arguments to supply to the subscriber
2272
+ * @return {EventHandle} A subscription handle capable of detaching the
2273
+ * subscription
2274
+ */
2275
+ after: function(type, fn) {
2276
+
2277
+ var a = nativeSlice.call(arguments, 0);
2278
+
2279
+ switch (L.type(type)) {
2280
+ case 'function':
2281
+ return Y.Do.after.apply(Y.Do, arguments);
2282
+ case 'array':
2283
+ // YArray.each(a[0], function(v) {
2284
+ // v = AFTER_PREFIX + v;
2285
+ // });
2286
+ // break;
2287
+ case 'object':
2288
+ a[0]._after = true;
2289
+ break;
2290
+ default:
2291
+ a[0] = AFTER_PREFIX + type;
2292
+ }
2293
+
2294
+ return this.on.apply(this, a);
2295
+
2296
+ },
2297
+
2298
+ /**
2299
+ * Executes the callback before a DOM event, custom event
2300
+ * or method. If the first argument is a function, it
2301
+ * is assumed the target is a method. For DOM and custom
2302
+ * events, this is an alias for Y.on.
2303
+ *
2304
+ * For DOM and custom events:
2305
+ * type, callback, context, 0-n arguments
2306
+ *
2307
+ * For methods:
2308
+ * callback, object (method host), methodName, context, 0-n arguments
2309
+ *
2310
+ * @method before
2311
+ * @return detach handle
2312
+ */
2313
+ before: function() {
2314
+ return this.on.apply(this, arguments);
2315
+ }
2316
+
2317
+ };
2318
+
2319
+ Y.EventTarget = ET;
2320
+
2321
+ // make Y an event target
2322
+ Y.mix(Y, ET.prototype);
2323
+ ET.call(Y, { bubbles: false });
2324
+
2325
+ YUI.Env.globalEvents = YUI.Env.globalEvents || new ET();
2326
+
2327
+ /**
2328
+ * Hosts YUI page level events. This is where events bubble to
2329
+ * when the broadcast config is set to 2. This property is
2330
+ * only available if the custom event module is loaded.
2331
+ * @property Global
2332
+ * @type EventTarget
2333
+ * @for YUI
2334
+ */
2335
+ Y.Global = YUI.Env.globalEvents;
2336
+
2337
+ // @TODO implement a global namespace function on Y.Global?
2338
+
2339
+ /**
2340
+ `Y.on()` can do many things:
2341
+
2342
+ <ul>
2343
+ <li>Subscribe to custom events `publish`ed and `fire`d from Y</li>
2344
+ <li>Subscribe to custom events `publish`ed with `broadcast` 1 or 2 and
2345
+ `fire`d from any object in the YUI instance sandbox</li>
2346
+ <li>Subscribe to DOM events</li>
2347
+ <li>Subscribe to the execution of a method on any object, effectively
2348
+ treating that method as an event</li>
2349
+ </ul>
2350
+
2351
+ For custom event subscriptions, pass the custom event name as the first argument
2352
+ and callback as the second. The `this` object in the callback will be `Y` unless
2353
+ an override is passed as the third argument.
2354
+
2355
+ Y.on('io:complete', function () {
2356
+ Y.MyApp.updateStatus('Transaction complete');
2357
+ });
2358
+
2359
+ To subscribe to DOM events, pass the name of a DOM event as the first argument
2360
+ and a CSS selector string as the third argument after the callback function.
2361
+ Alternately, the third argument can be a `Node`, `NodeList`, `HTMLElement`,
2362
+ array, or simply omitted (the default is the `window` object).
2363
+
2364
+ Y.on('click', function (e) {
2365
+ e.preventDefault();
2366
+
2367
+ // proceed with ajax form submission
2368
+ var url = this.get('action');
2369
+ ...
2370
+ }, '#my-form');
2371
+
2372
+ The `this` object in DOM event callbacks will be the `Node` targeted by the CSS
2373
+ selector or other identifier.
2374
+
2375
+ `on()` subscribers for DOM events or custom events `publish`ed with a
2376
+ `defaultFn` can prevent the default behavior with `e.preventDefault()` from the
2377
+ event object passed as the first parameter to the subscription callback.
2378
+
2379
+ To subscribe to the execution of an object method, pass arguments corresponding to the call signature for
2380
+ <a href="../classes/Do.html#methods_before">`Y.Do.before(...)`</a>.
2381
+
2382
+ NOTE: The formal parameter list below is for events, not for function
2383
+ injection. See `Y.Do.before` for that signature.
2384
+
2385
+ @method on
2386
+ @param {String} type DOM or custom event name
2387
+ @param {Function} fn The callback to execute in response to the event
2388
+ @param {Object} [context] Override `this` object in callback
2389
+ @param {Any} [arg*] 0..n additional arguments to supply to the subscriber
2390
+ @return {EventHandle} A subscription handle capable of detaching the
2391
+ subscription
2392
+ @see Do.before
2393
+ @for YUI
2394
+ **/
2395
+
2396
+ /**
2397
+ Listen for an event one time. Equivalent to `on()`, except that
2398
+ the listener is immediately detached when executed.
2399
+
2400
+ See the <a href="#methods_on">`on()` method</a> for additional subscription
2401
+ options.
2402
+
2403
+ @see on
2404
+ @method once
2405
+ @param {String} type DOM or custom event name
2406
+ @param {Function} fn The callback to execute in response to the event
2407
+ @param {Object} [context] Override `this` object in callback
2408
+ @param {Any} [arg*] 0..n additional arguments to supply to the subscriber
2409
+ @return {EventHandle} A subscription handle capable of detaching the
2410
+ subscription
2411
+ @for YUI
2412
+ **/
2413
+
2414
+ /**
2415
+ Listen for an event one time. Equivalent to `once()`, except, like `after()`,
2416
+ the subscription callback executes after all `on()` subscribers and the event's
2417
+ `defaultFn` (if configured) have executed. Like `after()` if any `on()` phase
2418
+ subscriber calls `e.preventDefault()`, neither the `defaultFn` nor the `after()`
2419
+ subscribers will execute.
2420
+
2421
+ The listener is immediately detached when executed.
2422
+
2423
+ See the <a href="#methods_on">`on()` method</a> for additional subscription
2424
+ options.
2425
+
2426
+ @see once
2427
+ @method onceAfter
2428
+ @param {String} type The custom event name
2429
+ @param {Function} fn The callback to execute in response to the event
2430
+ @param {Object} [context] Override `this` object in callback
2431
+ @param {Any} [arg*] 0..n additional arguments to supply to the subscriber
2432
+ @return {EventHandle} A subscription handle capable of detaching the
2433
+ subscription
2434
+ @for YUI
2435
+ **/
2436
+
2437
+ /**
2438
+ Like `on()`, this method creates a subscription to a custom event or to the
2439
+ execution of a method on an object.
2440
+
2441
+ For events, `after()` subscribers are executed after the event's
2442
+ `defaultFn` unless `e.preventDefault()` was called from an `on()` subscriber.
2443
+
2444
+ See the <a href="#methods_on">`on()` method</a> for additional subscription
2445
+ options.
2446
+
2447
+ NOTE: The subscription signature shown is for events, not for function
2448
+ injection. See <a href="../classes/Do.html#methods_after">`Y.Do.after`</a>
2449
+ for that signature.
2450
+
2451
+ @see on
2452
+ @see Do.after
2453
+ @method after
2454
+ @param {String} type The custom event name
2455
+ @param {Function} fn The callback to execute in response to the event
2456
+ @param {Object} [context] Override `this` object in callback
2457
+ @param {Any} [args*] 0..n additional arguments to supply to the subscriber
2458
+ @return {EventHandle} A subscription handle capable of detaching the
2459
+ subscription
2460
+ @for YUI
2461
+ **/
2462
+
2463
+
2464
+ }, '@VERSION@', {"requires": ["oop"]});