Browse files

Fixed merge

  • Loading branch information...
2 parents c644b19 + 01e329c commit bb6652dd3380bbeae26adc95a4979b5a5a58b0a4 @davglass committed Sep 18, 2012
Showing with 2,534 additions and 1,960 deletions.
  1. +2 −2 README.md
  2. +1 −1 build/align-plugin/align-plugin-min.js
  3. +1 −1 build/anim-base/anim-base-min.js
  4. +1 −1 build/anim-color/anim-color-min.js
  5. +1 −1 build/anim-curve/anim-curve-min.js
  6. +1 −1 build/anim-easing/anim-easing-min.js
  7. +1 −1 build/anim-node-plugin/anim-node-plugin-min.js
  8. +1 −1 build/anim-scroll/anim-scroll-min.js
  9. +296 −0 build/anim-shape/anim-shape-coverage.js
  10. +2 −2 build/anim-shape/anim-shape-debug.js
  11. +1 −1 build/anim-shape/anim-shape-min.js
  12. +2 −2 build/anim-shape/anim-shape.js
  13. +1 −1 build/anim-xy/anim-xy-min.js
  14. +1 −1 build/app-base/app-base-min.js
  15. +1 −1 build/app-content/app-content-min.js
  16. +1 −1 build/app-transitions-css/app-transitions-css-min.css
  17. +1 −1 build/app-transitions-native/app-transitions-native-min.js
  18. +1 −1 build/app-transitions/app-transitions-min.js
  19. +2 −2 build/array-extras/array-extras-coverage.js
  20. +1 −1 build/array-extras/array-extras-debug.js
  21. +1 −1 build/array-extras/array-extras-min.js
  22. +1 −1 build/array-extras/array-extras.js
  23. +1 −1 build/array-invoke/array-invoke-min.js
  24. +1 −1 build/arraylist-add/arraylist-add-min.js
  25. +1 −1 build/arraylist-filter/arraylist-filter-min.js
  26. +1 −1 build/arraylist/arraylist-min.js
  27. +1 −1 build/arraysort/arraysort-min.js
  28. +1 −1 build/async-queue/async-queue-min.js
  29. +1 −1 build/attribute-base/attribute-base-min.js
  30. +1 −1 build/attribute-complex/attribute-complex-min.js
  31. +1 −1 build/attribute-core/attribute-core-min.js
  32. +1 −1 build/attribute-events/attribute-events-min.js
  33. +1 −1 build/attribute-extras/attribute-extras-min.js
  34. +1 −2 build/autocomplete-base/autocomplete-base-min.js
  35. +1 −1 build/autocomplete-filters-accentfold/autocomplete-filters-accentfold-min.js
  36. +1 −1 build/autocomplete-filters/autocomplete-filters-min.js
  37. +1 −1 build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold-min.js
  38. +1 −1 build/autocomplete-highlighters/autocomplete-highlighters-min.js
  39. +1 −1 build/autocomplete-list-keys/autocomplete-list-keys-min.js
  40. +1 −1 build/autocomplete-list/assets/skins/night/autocomplete-list.css
  41. +1 −1 build/autocomplete-list/assets/skins/sam/autocomplete-list.css
  42. +2 −2 build/autocomplete-list/autocomplete-list-coverage.js
  43. +1 −1 build/autocomplete-list/autocomplete-list-debug.js
  44. +1 −2 build/autocomplete-list/autocomplete-list-min.js
  45. +1 −1 build/autocomplete-list/autocomplete-list.js
  46. +1 −1 build/autocomplete-list/lang/autocomplete-list.js
  47. +1 −1 build/autocomplete-list/lang/autocomplete-list_en.js
  48. +1 −1 build/autocomplete-plugin/autocomplete-plugin-min.js
  49. +1 −1 build/autocomplete-sources/autocomplete-sources-min.js
  50. +1 −1 build/base-base/base-base-min.js
  51. +1 −1 build/base-build/base-build-min.js
  52. +1 −1 build/base-core/base-core-min.js
  53. +1 −1 build/base-pluginhost/base-pluginhost-min.js
  54. +1 −1 build/button-core/button-core-min.js
  55. +1 −1 build/button-group/button-group-min.js
  56. +1 −1 build/button-plugin/button-plugin-min.js
  57. +1 −1 build/button/button-min.js
  58. +1 −1 build/cache-base/cache-base-min.js
  59. +1 −1 build/cache-offline/cache-offline-min.js
  60. +1 −1 build/cache-plugin/cache-plugin-min.js
  61. +1 −1 build/calendar-base/assets/skins/night/calendar-base.css
  62. +1 −1 build/calendar-base/assets/skins/sam/calendar-base.css
  63. +1 −3 build/calendar-base/calendar-base-min.js
  64. +1 −1 build/calendar-base/lang/calendar-base.js
  65. +1 −1 build/calendar-base/lang/calendar-base_de.js
  66. +1 −1 build/calendar-base/lang/calendar-base_en.js
  67. +1 −1 build/calendar-base/lang/calendar-base_fr.js
  68. +1 −1 build/calendar-base/lang/calendar-base_ja.js
  69. +1 −1 build/calendar-base/lang/calendar-base_nb-NO.js
  70. +1 −1 build/calendar-base/lang/calendar-base_pt-BR.js
  71. +1 −1 build/calendar-base/lang/calendar-base_ru.js
  72. +1 −1 build/calendar-base/lang/calendar-base_zh-HANT-TW.js
  73. +1 −1 build/calendar/assets/skins/night/calendar.css
  74. +1 −1 build/calendar/assets/skins/sam/calendar.css
  75. +1 −1 build/calendar/calendar-min.js
  76. +1 −1 build/calendar/lang/calendar.js
  77. +1 −1 build/calendar/lang/calendar_de.js
  78. +1 −1 build/calendar/lang/calendar_en.js
  79. +1 −1 build/calendar/lang/calendar_fr.js
  80. +1 −1 build/calendar/lang/calendar_ja.js
  81. +1 −1 build/calendar/lang/calendar_nb-NO.js
  82. +1 −0 build/calendar/lang/calendar_pt-BR.js
  83. +1 −1 build/calendar/lang/calendar_ru.js
  84. +1 −1 build/calendar/lang/calendar_zh-HANT-TW.js
  85. +1 −1 build/calendarnavigator/assets/skins/night/calendarnavigator.css
  86. +1 −1 build/calendarnavigator/assets/skins/sam/calendarnavigator.css
  87. +1 −1 build/calendarnavigator/calendarnavigator-min.js
  88. +2 −2 build/charts-base/charts-base-coverage.js
  89. +1 −1 build/charts-base/charts-base-debug.js
  90. +1 −1 build/charts-base/charts-base-min.js
  91. +1 −1 build/charts-base/charts-base.js
  92. +2 −2 build/charts-legend/charts-legend-coverage.js
  93. +1 −1 build/charts-legend/charts-legend-debug.js
  94. +1 −1 build/charts-legend/charts-legend-min.js
  95. +1 −1 build/charts-legend/charts-legend.js
  96. +1 −1 build/charts/charts-min.js
  97. +1 −1 build/classnamemanager/classnamemanager-min.js
  98. +284 −0 build/clickable-rail/clickable-rail-coverage.js
  99. +1 −1 build/clickable-rail/clickable-rail-min.js
  100. +1 −1 build/console-filters/assets/skins/sam/console-filters.css
  101. +1 −1 build/console-filters/console-filters-min.js
  102. +1 −1 build/console/assets/skins/sam/console.css
  103. +1 −2 build/console/console-min.js
  104. +1 −1 build/console/lang/console.js
  105. +1 −1 build/console/lang/console_en.js
  106. +1 −1 build/console/lang/console_es.js
  107. +1 −1 build/console/lang/console_ja.js
  108. +1 −1 build/cookie/cookie-min.js
  109. +1 −0 build/createlink-base/createlink-base-min.js
  110. +1 −1 build/cssbase-context/cssbase-context-min.css
  111. +1 −1 build/cssbase/cssbase-min.css
  112. +1 −1 build/cssbutton/cssbutton-min.css
  113. +1 −1 build/cssfonts-context/cssfonts-context-min.css
  114. +1 −1 build/cssfonts/cssfonts-min.css
  115. +1 −1 build/cssgrids-base/cssgrids-base-min.css
  116. +1 −1 build/cssgrids-units/cssgrids-units-min.css
  117. +1 −1 build/cssgrids/cssgrids-min.css
  118. +1 −1 build/cssreset-context/cssreset-context-min.css
  119. +1 −1 build/cssreset/cssreset-min.css
  120. +1 −1 build/dataschema-array/dataschema-array-min.js
  121. +1 −1 build/dataschema-base/dataschema-base-min.js
  122. +1 −1 build/dataschema-json/dataschema-json-min.js
  123. +1 −1 build/dataschema-text/dataschema-text-min.js
  124. +1 −1 build/dataschema-xml/dataschema-xml-min.js
  125. +1 −1 build/datasource-arrayschema/datasource-arrayschema-min.js
  126. +1 −1 build/datasource-cache/datasource-cache-min.js
  127. +1 −1 build/datasource-function/datasource-function-min.js
  128. +1 −1 build/datasource-get/datasource-get-min.js
  129. +1 −1 build/datasource-io/datasource-io-min.js
  130. +1 −1 build/datasource-jsonschema/datasource-jsonschema-min.js
  131. +1 −1 build/datasource-local/datasource-local-min.js
  132. +1 −1 build/datasource-polling/datasource-polling-min.js
  133. +1 −1 build/datasource-textschema/datasource-textschema-min.js
  134. +1 −1 build/datasource-xmlschema/datasource-xmlschema-min.js
  135. +1 −1 build/datatable-base/assets/skins/night/datatable-base.css
  136. +1 −1 build/datatable-base/assets/skins/sam/datatable-base.css
  137. +1 −1 build/datatable-base/datatable-base-min.js
  138. +1 −1 build/datatable-body/datatable-body-min.js
  139. +1 −1 build/datatable-column-widths/datatable-column-widths-min.js
  140. +1 −1 build/datatable-core/datatable-core-min.js
  141. +1 −1 build/datatable-datasource/datatable-datasource-min.js
  142. +1 −1 build/datatable-head/datatable-head-min.js
  143. +1 −1 build/datatable-message/assets/skins/night/datatable-message.css
  144. +1 −1 build/datatable-message/assets/skins/sam/datatable-message.css
  145. +1 −1 build/datatable-message/datatable-message-min.js
  146. +1 −1 build/datatable-message/lang/datatable-message.js
  147. +1 −1 build/datatable-message/lang/datatable-message_en.js
  148. +1 −1 build/datatable-mutable/datatable-mutable-min.js
  149. +1 −1 build/datatable-scroll/assets/skins/night/datatable-scroll.css
  150. +1 −1 build/datatable-scroll/assets/skins/sam/datatable-scroll.css
  151. +1 −1 build/datatable-scroll/datatable-scroll-min.js
  152. +1 −1 build/datatable-sort/assets/skins/night/datatable-sort.css
  153. +1 −1 build/datatable-sort/assets/skins/sam/datatable-sort.css
  154. +1 −1 build/datatable-sort/datatable-sort-min.js
  155. +1 −1 build/datatable-sort/lang/datatable-sort.js
  156. +1 −1 build/datatable-sort/lang/datatable-sort_en.js
  157. +1 −1 build/datatable-table/datatable-table-min.js
  158. +1 −1 build/datatype-date-format/datatype-date-format-min.js
  159. +1 −1 build/datatype-date-format/lang/datatype-date-format.js
  160. +1 −1 build/datatype-date-format/lang/datatype-date-format_ar-JO.js
  161. +1 −1 build/datatype-date-format/lang/datatype-date-format_ar.js
  162. +1 −1 build/datatype-date-format/lang/datatype-date-format_ca-ES.js
  163. +1 −1 build/datatype-date-format/lang/datatype-date-format_ca.js
  164. +1 −1 build/datatype-date-format/lang/datatype-date-format_da-DK.js
  165. +1 −1 build/datatype-date-format/lang/datatype-date-format_da.js
  166. +1 −1 build/datatype-date-format/lang/datatype-date-format_de-AT.js
  167. +1 −1 build/datatype-date-format/lang/datatype-date-format_de-DE.js
  168. +1 −1 build/datatype-date-format/lang/datatype-date-format_de.js
  169. +1 −1 build/datatype-date-format/lang/datatype-date-format_el-GR.js
  170. +1 −1 build/datatype-date-format/lang/datatype-date-format_el.js
  171. +1 −1 build/datatype-date-format/lang/datatype-date-format_en-AU.js
  172. +1 −1 build/datatype-date-format/lang/datatype-date-format_en-CA.js
  173. +1 −1 build/datatype-date-format/lang/datatype-date-format_en-GB.js
  174. +1 −1 build/datatype-date-format/lang/datatype-date-format_en-IE.js
  175. +1 −1 build/datatype-date-format/lang/datatype-date-format_en-IN.js
  176. +1 −1 build/datatype-date-format/lang/datatype-date-format_en-JO.js
  177. +1 −1 build/datatype-date-format/lang/datatype-date-format_en-MY.js
  178. +1 −1 build/datatype-date-format/lang/datatype-date-format_en-NZ.js
  179. +1 −1 build/datatype-date-format/lang/datatype-date-format_en-PH.js
  180. +1 −1 build/datatype-date-format/lang/datatype-date-format_en-SG.js
  181. +1 −1 build/datatype-date-format/lang/datatype-date-format_en-US.js
  182. +1 −1 build/datatype-date-format/lang/datatype-date-format_en.js
  183. +1 −1 build/datatype-date-format/lang/datatype-date-format_es-AR.js
  184. +1 −1 build/datatype-date-format/lang/datatype-date-format_es-BO.js
  185. +1 −1 build/datatype-date-format/lang/datatype-date-format_es-CL.js
  186. +1 −1 build/datatype-date-format/lang/datatype-date-format_es-CO.js
  187. +1 −1 build/datatype-date-format/lang/datatype-date-format_es-EC.js
  188. +1 −1 build/datatype-date-format/lang/datatype-date-format_es-ES.js
  189. +1 −1 build/datatype-date-format/lang/datatype-date-format_es-MX.js
  190. +1 −1 build/datatype-date-format/lang/datatype-date-format_es-PE.js
  191. +1 −1 build/datatype-date-format/lang/datatype-date-format_es-PY.js
  192. +1 −1 build/datatype-date-format/lang/datatype-date-format_es-US.js
  193. +1 −1 build/datatype-date-format/lang/datatype-date-format_es-UY.js
  194. +1 −1 build/datatype-date-format/lang/datatype-date-format_es-VE.js
  195. +1 −1 build/datatype-date-format/lang/datatype-date-format_es.js
  196. +1 −1 build/datatype-date-format/lang/datatype-date-format_fi-FI.js
  197. +1 −1 build/datatype-date-format/lang/datatype-date-format_fi.js
  198. +1 −1 build/datatype-date-format/lang/datatype-date-format_fr-BE.js
  199. +1 −1 build/datatype-date-format/lang/datatype-date-format_fr-CA.js
  200. +1 −1 build/datatype-date-format/lang/datatype-date-format_fr-FR.js
  201. +1 −1 build/datatype-date-format/lang/datatype-date-format_fr.js
  202. +1 −1 build/datatype-date-format/lang/datatype-date-format_hi-IN.js
  203. +1 −1 build/datatype-date-format/lang/datatype-date-format_hi.js
  204. +1 −1 build/datatype-date-format/lang/datatype-date-format_id-ID.js
  205. +1 −1 build/datatype-date-format/lang/datatype-date-format_id.js
  206. +1 −1 build/datatype-date-format/lang/datatype-date-format_it-IT.js
  207. +1 −1 build/datatype-date-format/lang/datatype-date-format_it.js
  208. +1 −1 build/datatype-date-format/lang/datatype-date-format_ja-JP.js
  209. +1 −1 build/datatype-date-format/lang/datatype-date-format_ja.js
  210. +1 −1 build/datatype-date-format/lang/datatype-date-format_ko-KR.js
  211. +1 −1 build/datatype-date-format/lang/datatype-date-format_ko.js
  212. +1 −1 build/datatype-date-format/lang/datatype-date-format_ms-MY.js
  213. +1 −1 build/datatype-date-format/lang/datatype-date-format_ms.js
  214. +1 −1 build/datatype-date-format/lang/datatype-date-format_nb-NO.js
  215. +1 −1 build/datatype-date-format/lang/datatype-date-format_nb.js
  216. +1 −1 build/datatype-date-format/lang/datatype-date-format_nl-BE.js
  217. +1 −1 build/datatype-date-format/lang/datatype-date-format_nl-NL.js
  218. +1 −1 build/datatype-date-format/lang/datatype-date-format_nl.js
  219. +1 −1 build/datatype-date-format/lang/datatype-date-format_pl-PL.js
  220. +1 −1 build/datatype-date-format/lang/datatype-date-format_pl.js
  221. +1 −1 build/datatype-date-format/lang/datatype-date-format_pt-BR.js
  222. +1 −1 build/datatype-date-format/lang/datatype-date-format_pt.js
  223. +1 −1 build/datatype-date-format/lang/datatype-date-format_ro-RO.js
  224. +1 −1 build/datatype-date-format/lang/datatype-date-format_ro.js
  225. +1 −1 build/datatype-date-format/lang/datatype-date-format_ru-RU.js
  226. +1 −1 build/datatype-date-format/lang/datatype-date-format_ru.js
  227. +1 −1 build/datatype-date-format/lang/datatype-date-format_sv-SE.js
  228. +1 −1 build/datatype-date-format/lang/datatype-date-format_sv.js
  229. +1 −1 build/datatype-date-format/lang/datatype-date-format_th-TH.js
  230. +1 −1 build/datatype-date-format/lang/datatype-date-format_th.js
  231. +1 −1 build/datatype-date-format/lang/datatype-date-format_tr-TR.js
  232. +1 −1 build/datatype-date-format/lang/datatype-date-format_tr.js
  233. +1 −1 build/datatype-date-format/lang/datatype-date-format_vi-VN.js
  234. +1 −1 build/datatype-date-format/lang/datatype-date-format_vi.js
  235. +1 −1 build/datatype-date-format/lang/datatype-date-format_zh-Hans-CN.js
  236. +1 −1 build/datatype-date-format/lang/datatype-date-format_zh-Hans.js
  237. +1 −1 build/datatype-date-format/lang/datatype-date-format_zh-Hant-HK.js
  238. +1 −1 build/datatype-date-format/lang/datatype-date-format_zh-Hant-TW.js
  239. +1 −1 build/datatype-date-format/lang/datatype-date-format_zh-Hant.js
  240. +1 −1 build/datatype-date-math/datatype-date-math-min.js
  241. +1 −1 build/datatype-date-parse/datatype-date-parse-min.js
  242. +1 −1 build/datatype-number-format/datatype-number-format-min.js
  243. +1 −1 build/datatype-number-parse/datatype-number-parse-min.js
  244. +1 −1 build/datatype-xml-format/datatype-xml-format-min.js
  245. +1 −1 build/datatype-xml-parse/datatype-xml-parse-min.js
  246. +1 −1 build/dd-constrain/dd-constrain-min.js
  247. +1 −1 build/dd-ddm-base/dd-ddm-base-min.js
  248. +1 −1 build/dd-ddm-drop/dd-ddm-drop-min.js
  249. +1 −1 build/dd-ddm/dd-ddm-min.js
  250. +1 −1 build/dd-delegate/dd-delegate-min.js
  251. +1 −1 build/dd-drag/dd-drag-min.js
  252. +1 −1 build/dd-drop-plugin/dd-drop-plugin-min.js
  253. +1 −1 build/dd-drop/dd-drop-min.js
  254. +1 −1 build/dd-gestures/dd-gestures-min.js
  255. +1 −1 build/dd-plugin/dd-plugin-min.js
  256. +1 −1 build/dd-proxy/dd-proxy-min.js
  257. +1 −1 build/dd-scroll/dd-scroll-min.js
  258. +1 −1 build/dial/assets/skins/night/dial.css
  259. +1 −1 build/dial/assets/skins/sam/dial.css
  260. +1,657 −1,657 build/dial/dial-coverage.js
  261. +1 −3 build/dial/dial-min.js
  262. +1 −1 build/dial/lang/dial.js
  263. +1 −1 build/dial/lang/dial_en.js
  264. +1 −1 build/dial/lang/dial_es.js
  265. +3 −3 build/dom-base/dom-base-coverage.js
  266. +2 −2 build/dom-base/dom-base-debug.js
  267. +1 −2 build/dom-base/dom-base-min.js
  268. +2 −2 build/dom-base/dom-base.js
  269. +1 −1 build/dom-core/dom-core-min.js
  270. +1 −1 build/dom-deprecated/dom-deprecated-min.js
  271. +1 −1 build/dom-screen/dom-screen-min.js
  272. +1 −1 build/dom-style-ie/dom-style-ie-min.js
  273. +1 −1 build/dom-style/dom-style-min.js
  274. +1 −1 build/dump/dump-min.js
  275. +1 −2 build/editor-base/editor-base-min.js
  276. +1 −1 build/editor-bidi/editor-bidi-min.js
  277. +1 −1 build/editor-br/editor-br-min.js
  278. +1 −1 build/editor-lists/editor-lists-min.js
  279. +1 −1 build/editor-para-base/editor-para-base-min.js
  280. +1 −1 build/editor-para-ie/editor-para-ie-min.js
  281. +1 −1 build/editor-para/editor-para-min.js
  282. +1 −2 build/editor-selection/editor-selection-min.js
  283. +1 −1 build/editor-tab/editor-tab-min.js
  284. +1 −1 build/escape/escape-min.js
  285. +3 −1 build/event-base-ie/event-base-ie-min.js
  286. +1 −1 build/event-base/event-base-min.js
  287. +1 −1 build/event-contextmenu/event-contextmenu-min.js
Sorry, we could not display the entire diff because too many files (612) changed.
View
4 README.md
@@ -16,7 +16,7 @@ Links
* [Contributor Info](http://yuilibrary.com/contribute/)
* [Report a Bug](http://yuilibrary.com/yui/docs/tutorials/report-bugs/)
* [![Build Status](https://secure.travis-ci.org/yui/yui3.png?branch=master)](http://travis-ci.org/yui/yui3)
- * [Shifter, for building YUI](http://yui.github.com/yui/shifter)
+ * [Shifter, for building YUI](http://yui.github.com/shifter/)
Source Info
@@ -67,7 +67,7 @@ The YUI source tree includes the following directories:
modifications to the library and its documentation should take place in
this directory.
-To build YUI components install [Shifter](http://yui.github.com/shifter) (`npm -g install shifter`)
+To build YUI components install [Shifter](http://yui.github.com/shifter/) (`npm -g install shifter`)
and then simply run `shifter` in that components directory.
Shifter also allows you to rebuild the entire YUI src tree:
View
2 build/align-plugin/align-plugin-min.js
@@ -1 +1 @@
-YUI.add("align-plugin",function(d,b){var f="offsetWidth",e="offsetHeight",c=c;function a(g){if(g.host){this._host=g.host;}}a.prototype={to:function(k,u,m,p){this._syncArgs=d.Array(arguments);if(k.top===c){k=d.one(k).get("region");}if(k){var t=[k.left,k.top],r=[k.width,k.height],o=a.points,g=this._host,i=null,s=g.getAttrs([e,f]),l=[0-s[f],0-s[e]],q=u?o[u.charAt(0)]:i,n=(u&&u!=="cc")?o[u.charAt(1)]:i,j=m?o[m.charAt(0)]:i,h=(m&&m!=="cc")?o[m.charAt(1)]:i;if(q){t=q(t,r,u);}if(n){t=n(t,r,u);}if(j){t=j(t,l,m);}if(h){t=h(t,l,m);}if(t&&g){g.setXY(t);}this._resize(p);}return this;},sync:function(){this.to.apply(this,this._syncArgs);return this;},_resize:function(h){var g=this._handle;if(h&&!g){this._handle=d.on("resize",this._onresize,window,this);}else{if(!h&&g){g.detach();}}},_onresize:function(){var g=this;setTimeout(function(){g.sync();});},center:function(h,g){this.to(h,"cc","cc",g);return this;},destroy:function(){var g=this._handle;if(g){g.detach();}}};a.points={"t":function(g,h){return g;},"r":function(g,h){return[g[0]+h[0],g[1]];},"b":function(g,h){return[g[0],g[1]+h[1]];},"l":function(g,h){return g;},"c":function(j,l,g){var i=(g[0]==="t"||g[0]==="b")?0:1,h,k;if(g==="cc"){h=[j[0]+l[0]/2,j[1]+l[1]/2];}else{k=j[i]+l[i]/2;h=(i)?[j[0],k]:[k,j[1]];}return h;}};a.NAME="Align";a.NS="align";a.prototype.constructor=a;d.namespace("Plugin");d.Plugin.Align=a;},"@VERSION@",{"requires":["node-screen","node-pluginhost"]});
+YUI.add("align-plugin",function(e,t){function s(e){e.host&&(this._host=e.host)}var n="offsetWidth",r="offsetHeight",i=i;s.prototype={to:function(t,o,u,a){this._syncArgs=e.Array(arguments),t.top===i&&(t=e.one(t).get("region"));if(t){var f=[t.left,t.top],l=[t.width,t.height],c=s.points,h=this._host,p=null,d=h.getAttrs([r,n]),v=[0-d[n],0-d[r]],m=o?c[o.charAt(0)]:p,g=o&&o!=="cc"?c[o.charAt(1)]:p,y=u?c[u.charAt(0)]:p,b=u&&u!=="cc"?c[u.charAt(1)]:p;m&&(f=m(f,l,o)),g&&(f=g(f,l,o)),y&&(f=y(f,v,u)),b&&(f=b(f,v,u)),f&&h&&h.setXY(f),this._resize(a)}return this},sync:function(){return this.to.apply(this,this._syncArgs),this},_resize:function(t){var n=this._handle;t&&!n?this._handle=e.on("resize",this._onresize,window,this):!t&&n&&n.detach()},_onresize:function(){var e=this;setTimeout(function(){e.sync()})},center:function(e,t){return this.to(e,"cc","cc",t),this},destroy:function(){var e=this._handle;e&&e.detach()}},s.points={t:function(e,t){return e},r:function(e,t){return[e[0]+t[0],e[1]]},b:function(e,t){return[e[0],e[1]+t[1]]},l:function(e,t){return e},c:function(e,t,n){var r=n[0]==="t"||n[0]==="b"?0:1,i,s;return n==="cc"?i=[e[0]+t[0]/2,e[1]+t[1]/2]:(s=e[r]+t[r]/2,i=r?[e[0],s]:[s,e[1]]),i}},s.NAME="Align",s.NS="align",s.prototype.constructor=s,e.namespace("Plugin"),e.Plugin.Align=s},"@VERSION@",{requires:["node-screen","node-pluginhost"]});
View
2 build/anim-base/anim-base-min.js
@@ -1 +1 @@
-YUI.add("anim-base",function(b,p){var d="running",n="startTime",l="elapsedTime",j="start",i="tween",m="end",c="node",k="paused",o="reverse",h="iterationCount",a=Number;var f={},e;b.Anim=function(){b.Anim.superclass.constructor.apply(this,arguments);b.Anim._instances[b.stamp(this)]=this;};b.Anim.NAME="anim";b.Anim._instances={};b.Anim.RE_DEFAULT_UNIT=/^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i;b.Anim.DEFAULT_UNIT="px";b.Anim.DEFAULT_EASING=function(r,q,u,s){return u*r/s+q;};b.Anim._intervalTime=20;b.Anim.behaviors={left:{get:function(r,q){return r._getOffset(q);}}};b.Anim.behaviors.top=b.Anim.behaviors.left;b.Anim.DEFAULT_SETTER=function(u,v,x,y,A,t,w,z){var r=u._node,s=r._node,q=w(A,a(x),a(y)-a(x),t);if(s){if("style" in s&&(v in s.style||v in b.DOM.CUSTOM_STYLES)){z=z||"";r.setStyle(v,q+z);}else{if("attributes" in s&&v in s.attributes){r.setAttribute(v,q);}else{if(v in s){s[v]=q;}}}}else{if(r.set){r.set(v,q);}else{if(v in r){r[v]=q;}}}};b.Anim.DEFAULT_GETTER=function(t,q){var s=t._node,r=s._node,u="";if(r){if("style" in r&&(q in r.style||q in b.DOM.CUSTOM_STYLES)){u=s.getComputedStyle(q);}else{if("attributes" in r&&q in r.attributes){u=s.getAttribute(q);}else{if(q in r){u=r[q];}}}}else{if(s.get){u=s.get(q);}else{if(q in s){u=s[q];}}}return u;};b.Anim.ATTRS={node:{setter:function(q){if(q){if(typeof q=="string"||q.nodeType){q=b.one(q);}}this._node=q;if(!q){}return q;}},duration:{value:1},easing:{value:b.Anim.DEFAULT_EASING,setter:function(q){if(typeof q==="string"&&b.Easing){return b.Easing[q];}}},from:{},to:{},startTime:{value:0,readOnly:true},elapsedTime:{value:0,readOnly:true},running:{getter:function(){return !!f[b.stamp(this)];},value:false,readOnly:true},iterations:{value:1},iterationCount:{value:0,readOnly:true},direction:{value:"normal"},paused:{readOnly:true,value:false},reverse:{value:false}};b.Anim.run=function(){var r=b.Anim._instances;for(var q in r){if(r[q].run){r[q].run();}}};b.Anim.pause=function(){for(var q in f){if(f[q].pause){f[q].pause();}}b.Anim._stopTimer();};b.Anim.stop=function(){for(var q in f){if(f[q].stop){f[q].stop();}}b.Anim._stopTimer();};b.Anim._startTimer=function(){if(!e){e=setInterval(b.Anim._runFrame,b.Anim._intervalTime);}};b.Anim._stopTimer=function(){clearInterval(e);e=0;};b.Anim._runFrame=function(){var q=true;for(var r in f){if(f[r]._runFrame){q=false;f[r]._runFrame();}}if(q){b.Anim._stopTimer();}};b.Anim.RE_UNITS=/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/;var g={run:function(){if(this.get(k)){this._resume();}else{if(!this.get(d)){this._start();}}return this;},pause:function(){if(this.get(d)){this._pause();}return this;},stop:function(q){if(this.get(d)||this.get(k)){this._end(q);}return this;},_added:false,_start:function(){this._set(n,new Date()-this.get(l));this._actualFrames=0;if(!this.get(k)){this._initAnimAttr();}f[b.stamp(this)]=this;b.Anim._startTimer();this.fire(j);},_pause:function(){this._set(n,null);this._set(k,true);delete f[b.stamp(this)];this.fire("pause");},_resume:function(){this._set(k,false);f[b.stamp(this)]=this;this._set(n,new Date()-this.get(l));b.Anim._startTimer();this.fire("resume");},_end:function(q){var r=this.get("duration")*1000;if(q){this._runAttrs(r,r,this.get(o));}this._set(n,null);this._set(l,0);this._set(k,false);delete f[b.stamp(this)];this.fire(m,{elapsed:this.get(l)});},_runFrame:function(){var v=this._runtimeAttr.duration,s=new Date()-this.get(n),r=this.get(o),q=(s>=v),u,w;this._runAttrs(s,v,r);this._actualFrames+=1;this._set(l,s);this.fire(i);if(q){this._lastFrame();}},_runAttrs:function(B,A,x){var y=this._runtimeAttr,s=b.Anim.behaviors,z=y.easing,q=A,v=false,r,u,w;if(B>=A){v=true;}if(x){B=A-B;q=0;}for(w in y){if(y[w].to){r=y[w];u=(w in s&&"set" in s[w])?s[w].set:b.Anim.DEFAULT_SETTER;if(!v){u(this,w,r.from,r.to,B,A,z,r.unit);}else{u(this,w,r.from,r.to,q,A,z,r.unit);}}}},_lastFrame:function(){var q=this.get("iterations"),r=this.get(h);r+=1;if(q==="infinite"||r<q){if(this.get("direction")==="alternate"){this.set(o,!this.get(o));}this.fire("iteration");}else{r=0;this._end();}this._set(n,new Date());this._set(h,r);},_initAnimAttr:function(){var x=this.get("from")||{},w=this.get("to")||{},q={duration:this.get("duration")*1000,easing:this.get("easing")},s=b.Anim.behaviors,v=this.get(c),u,t,r;b.each(w,function(B,z){if(typeof B==="function"){B=B.call(this,v);}t=x[z];if(t===undefined){t=(z in s&&"get" in s[z])?s[z].get(this,z):b.Anim.DEFAULT_GETTER(this,z);}else{if(typeof t==="function"){t=t.call(this,v);}}var y=b.Anim.RE_UNITS.exec(t);var A=b.Anim.RE_UNITS.exec(B);t=y?y[1]:t;r=A?A[1]:B;u=A?A[2]:y?y[2]:"";if(!u&&b.Anim.RE_DEFAULT_UNIT.test(z)){u=b.Anim.DEFAULT_UNIT;}if(!t||!r){b.error('invalid "from" or "to" for "'+z+'"',"Anim");return;}q[z]={from:b.Lang.isObject(t)?b.clone(t):t,to:r,unit:u};},this);this._runtimeAttr=q;},_getOffset:function(r){var t=this._node,u=t.getComputedStyle(r),s=(r==="left")?"getX":"getY",v=(r==="left")?"setX":"setY";if(u==="auto"){var q=t.getStyle("position");if(q==="absolute"||q==="fixed"){u=t[s]();t[v](u);}else{u=0;}}return u;},destructor:function(){delete b.Anim._instances[b.stamp(this)];}};b.extend(b.Anim,b.Base,g);},"@VERSION@",{"requires":["base-base","node-style"]});
+YUI.add("anim-base",function(e,t){var n="running",r="startTime",i="elapsedTime",s="start",o="tween",u="end",a="node",f="paused",l="reverse",c="iterationCount",h=Number,p={},d;e.Anim=function(){e.Anim.superclass.constructor.apply(this,arguments),e.Anim._instances[e.stamp(this)]=this},e.Anim.NAME="anim",e.Anim._instances={},e.Anim.RE_DEFAULT_UNIT=/^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i,e.Anim.DEFAULT_UNIT="px",e.Anim.DEFAULT_EASING=function(e,t,n,r){return n*e/r+t},e.Anim._intervalTime=20,e.Anim.behaviors={left:{get:function(e,t){return e._getOffset(t)}}},e.Anim.behaviors.top=e.Anim.behaviors.left,e.Anim.DEFAULT_SETTER=function(t,n,r,i,s,o,u,a){var f=t._node,l=f._node,c=u(s,h(r),h(i)-h(r),o);l?"style"in l&&(n in l.style||n in e.DOM.CUSTOM_STYLES)?(a=a||"",f.setStyle(n,c+a)):"attributes"in l&&n in l.attributes?f.setAttribute(n,c):n in l&&(l[n]=c):f.set?f.set(n,c):n in f&&(f[n]=c)},e.Anim.DEFAULT_GETTER=function(t,n){var r=t._node,i=r._node,s="";return i?"style"in i&&(n in i.style||n in e.DOM.CUSTOM_STYLES)?s=r.getComputedStyle(n):"attributes"in i&&n in i.attributes?s=r.getAttribute(n):n in i&&(s=i[n]):r.get?s=r.get(n):n in r&&(s=r[n]),s},e.Anim.ATTRS={node:{setter:function(t){return t&&(typeof t=="string"||t.nodeType)&&(t=e.one(t)),this._node=t,!t,t}},duration:{value:1},easing:{value:e.Anim.DEFAULT_EASING,setter:function(t){if(typeof t=="string"&&e.Easing)return e.Easing[t]}},from:{},to:{},startTime:{value:0,readOnly:!0},elapsedTime:{value:0,readOnly:!0},running:{getter:function(){return!!p[e.stamp(this)]},value:!1,readOnly:!0},iterations:{value:1},iterationCount:{value:0,readOnly:!0},direction:{value:"normal"},paused:{readOnly:!0,value:!1},reverse:{value:!1}},e.Anim.run=function(){var t=e.Anim._instances;for(var n in t)t[n].run&&t[n].run()},e.Anim.pause=function(){for(var t in p)p[t].pause&&p[t].pause();e.Anim._stopTimer()},e.Anim.stop=function(){for(var t in p)p[t].stop&&p[t].stop();e.Anim._stopTimer()},e.Anim._startTimer=function(){d||(d=setInterval(e.Anim._runFrame,e.Anim._intervalTime))},e.Anim._stopTimer=function(){clearInterval(d),d=0},e.Anim._runFrame=function(){var t=!0;for(var n in p)p[n]._runFrame&&(t=!1,p[n]._runFrame());t&&e.Anim._stopTimer()},e.Anim.RE_UNITS=/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/;var v={run:function(){return this.get(f)?this._resume():this.get(n)||this._start(),this},pause:function(){return this.get(n)&&this._pause(),this},stop:function(e){return(this.get(n)||this.get(f))&&this._end(e),this},_added:!1,_start:function(){this._set(r,new Date-this.get(i)),this._actualFrames=0,this.get(f)||this._initAnimAttr(),p[e.stamp(this)]=this,e.Anim._startTimer(),this.fire(s)},_pause:function(){this._set(r,null),this._set(f,!0),delete p[e.stamp(this)],this.fire("pause")},_resume:function(){this._set(f,!1),p[e.stamp(this)]=this,this._set(r,new Date-this.get(i)),e.Anim._startTimer(),this.fire("resume")},_end:function(t){var n=this.get("duration")*1e3;t&&this._runAttrs(n,n,this.get(l)),this._set(r,null),this._set(i,0),this._set(f,!1),delete p[e.stamp(this)],this.fire(u,{elapsed:this.get(i)})},_runFrame:function(){var e=this._runtimeAttr.duration,t=new Date-this.get(r),n=this.get(l),s=t>=e,u,a;this._runAttrs(t,e,n),this._actualFrames+=1,this._set(i,t),this.fire(o),s&&this._lastFrame()},_runAttrs:function(t,n,r){var i=this._runtimeAttr,s=e.Anim.behaviors,o=i.easing,u=n,a=!1,f,l,c;t>=n&&(a=!0),r&&(t=n-t,u=0);for(c in i)i[c].to&&(f=i[c],l=c in s&&"set"in s[c]?s[c].set:e.Anim.DEFAULT_SETTER,a?l(this,c,f.from,f.to,u,n,o,f.unit):l(this,c,f.from,f.to,t,n,o,f.unit))},_lastFrame:function(){var e=this.get("iterations"),t=this.get(c);t+=1,e==="infinite"||t<e?(this.get("direction")==="alternate"&&this.set(l,!this.get(l)),this.fire("iteration")):(t=0,this._end()),this._set(r,new Date),this._set(c,t)},_initAnimAttr:function(){var t=this.get("from")||{},n=this.get("to")||{},r={duration:this.get("duration")*1e3,easing:this.get("easing")},i=e.Anim.behaviors,s=this.get(a),o,u,f;e.each(n,function(n,a){typeof n=="function"&&(n=n.call(this,s)),u=t[a],u===undefined?u=a in i&&"get"in i[a]?i[a].get(this,a):e.Anim.DEFAULT_GETTER(this,a):typeof u=="function"&&(u=u.call(this,s));var l=e.Anim.RE_UNITS.exec(u),c=e.Anim.RE_UNITS.exec(n);u=l?l[1]:u,f=c?c[1]:n,o=c?c[2]:l?l[2]:"",!o&&e.Anim.RE_DEFAULT_UNIT.test(a)&&(o=e.Anim.DEFAULT_UNIT);if(!u||!f){e.error('invalid "from" or "to" for "'+a+'"',"Anim");return}r[a]={from:e.Lang.isObject(u)?e.clone(u):u,to:f,unit:o}},this),this._runtimeAttr=r},_getOffset:function(e){var t=this._node,n=t.getComputedStyle(e),r=e==="left"?"getX":"getY",i=e==="left"?"setX":"setY";if(n==="auto"){var s=t.getStyle("position");s==="absolute"||s==="fixed"?(n=t[r](),t[i](n)):n=0}return n},destructor:function(){delete e.Anim._instances[e.stamp(this)]}};e.extend(e.Anim,e.Base,v)},"@VERSION@",{requires:["base-base","node-style"]});
View
2 build/anim-color/anim-color-min.js
@@ -1 +1 @@
-YUI.add("anim-color",function(c,b){var a=Number;c.Anim.getUpdatedColorValue=function(e,g,d,h,f){e=c.Color.re_RGB.exec(c.Color.toRGB(e));g=c.Color.re_RGB.exec(c.Color.toRGB(g));if(!e||e.length<3||!g||g.length<3){c.error("invalid from or to passed to color behavior");}return"rgb("+[Math.floor(f(d,a(e[1]),a(g[1])-a(e[1]),h)),Math.floor(f(d,a(e[2]),a(g[2])-a(e[2]),h)),Math.floor(f(d,a(e[3]),a(g[3])-a(e[3]),h))].join(", ")+")";};c.Anim.behaviors.color={set:function(g,e,j,i,d,h,f){g._node.setStyle(e,c.Anim.getUpdatedColorValue(j,i,d,h,f));},get:function(e,d){var f=e._node.getComputedStyle(d);f=(f==="transparent")?"rgb(255, 255, 255)":f;return f;}};c.each(["backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],function(d,e){c.Anim.behaviors[d]=c.Anim.behaviors.color;});},"@VERSION@",{"requires":["anim-base"]});
+YUI.add("anim-color",function(e,t){var n=Number;e.Anim.getUpdatedColorValue=function(t,r,i,s,o){return t=e.Color.re_RGB.exec(e.Color.toRGB(t)),r=e.Color.re_RGB.exec(e.Color.toRGB(r)),(!t||t.length<3||!r||r.length<3)&&e.error("invalid from or to passed to color behavior"),"rgb("+[Math.floor(o(i,n(t[1]),n(r[1])-n(t[1]),s)),Math.floor(o(i,n(t[2]),n(r[2])-n(t[2]),s)),Math.floor(o(i,n(t[3]),n(r[3])-n(t[3]),s))].join(", ")+")"},e.Anim.behaviors.color={set:function(t,n,r,i,s,o,u){t._node.setStyle(n,e.Anim.getUpdatedColorValue(r,i,s,o,u))},get:function(e,t){var n=e._node.getComputedStyle(t);return n=n==="transparent"?"rgb(255, 255, 255)":n,n}},e.each(["backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],function(t,n){e.Anim.behaviors[t]=e.Anim.behaviors.color})},"@VERSION@",{requires:["anim-base"]});
View
2 build/anim-curve/anim-curve-min.js
@@ -1 +1 @@
-YUI.add("anim-curve",function(b,a){b.Anim.behaviors.curve={set:function(g,d,j,i,c,h,f){j=j.slice.call(j);i=i.slice.call(i);var e=f(c,0,100,h)/100;i.unshift(j);g._node.setXY(b.Anim.getBezier(i,e));},get:function(d,c){return d._node.getXY();}};b.Anim.getBezier=function(g,f){var h=g.length;var e=[];for(var d=0;d<h;++d){e[d]=[g[d][0],g[d][1]];}for(var c=1;c<h;++c){for(d=0;d<h-c;++d){e[d][0]=(1-f)*e[d][0]+f*e[parseInt(d+1,10)][0];e[d][1]=(1-f)*e[d][1]+f*e[parseInt(d+1,10)][1];}}return[e[0][0],e[0][1]];};},"@VERSION@",{"requires":["anim-xy"]});
+YUI.add("anim-curve",function(e,t){e.Anim.behaviors.curve={set:function(t,n,r,i,s,o,u){r=r.slice.call(r),i=i.slice.call(i);var a=u(s,0,100,o)/100;i.unshift(r),t._node.setXY(e.Anim.getBezier(i,a))},get:function(e,t){return e._node.getXY()}},e.Anim.getBezier=function(e,t){var n=e.length,r=[];for(var i=0;i<n;++i)r[i]=[e[i][0],e[i][1]];for(var s=1;s<n;++s)for(i=0;i<n-s;++i)r[i][0]=(1-t)*r[i][0]+t*r[parseInt(i+1,10)][0],r[i][1]=(1-t)*r[i][1]+t*r[parseInt(i+1,10)][1];return[r[0][0],r[0][1]]}},"@VERSION@",{requires:["anim-xy"]});
View
2 build/anim-easing/anim-easing-min.js
@@ -1 +1 @@
-YUI.add("anim-easing",function(c,b){var a={easeNone:function(f,e,h,g){return h*f/g+e;},easeIn:function(f,e,h,g){return h*(f/=g)*f+e;},easeOut:function(f,e,h,g){return -h*(f/=g)*(f-2)+e;},easeBoth:function(f,e,h,g){if((f/=g/2)<1){return h/2*f*f+e;}return -h/2*((--f)*(f-2)-1)+e;},easeInStrong:function(f,e,h,g){return h*(f/=g)*f*f*f+e;},easeOutStrong:function(f,e,h,g){return -h*((f=f/g-1)*f*f*f-1)+e;},easeBothStrong:function(f,e,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+e;}return -h/2*((f-=2)*f*f*f-2)+e;},elasticIn:function(g,e,k,j,f,i){var h;if(g===0){return e;}if((g/=j)===1){return e+k;}if(!i){i=j*0.3;}if(!f||f<Math.abs(k)){f=k;h=i/4;}else{h=i/(2*Math.PI)*Math.asin(k/f);}return -(f*Math.pow(2,10*(g-=1))*Math.sin((g*j-h)*(2*Math.PI)/i))+e;},elasticOut:function(g,e,k,j,f,i){var h;if(g===0){return e;}if((g/=j)===1){return e+k;}if(!i){i=j*0.3;}if(!f||f<Math.abs(k)){f=k;h=i/4;}else{h=i/(2*Math.PI)*Math.asin(k/f);}return f*Math.pow(2,-10*g)*Math.sin((g*j-h)*(2*Math.PI)/i)+k+e;},elasticBoth:function(g,e,k,j,f,i){var h;if(g===0){return e;}if((g/=j/2)===2){return e+k;}if(!i){i=j*(0.3*1.5);}if(!f||f<Math.abs(k)){f=k;h=i/4;}else{h=i/(2*Math.PI)*Math.asin(k/f);}if(g<1){return -0.5*(f*Math.pow(2,10*(g-=1))*Math.sin((g*j-h)*(2*Math.PI)/i))+e;}return f*Math.pow(2,-10*(g-=1))*Math.sin((g*j-h)*(2*Math.PI)/i)*0.5+k+e;},backIn:function(f,e,i,h,g){if(g===undefined){g=1.70158;}if(f===h){f-=0.001;}return i*(f/=h)*f*((g+1)*f-g)+e;},backOut:function(f,e,i,h,g){if(typeof g==="undefined"){g=1.70158;}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+e;},backBoth:function(f,e,i,h,g){if(typeof g==="undefined"){g=1.70158;}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+e;}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+e;},bounceIn:function(f,e,h,g){return h-c.Easing.bounceOut(g-f,0,h,g)+e;},bounceOut:function(f,e,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+e;}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+e;}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+e;}}}return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+e;},bounceBoth:function(f,e,h,g){if(f<g/2){return c.Easing.bounceIn(f*2,0,h,g)*0.5+e;}return c.Easing.bounceOut(f*2-g,0,h,g)*0.5+h*0.5+e;}};c.Easing=a;},"@VERSION@",{"requires":["anim-base"]});
+YUI.add("anim-easing",function(e,t){var n={easeNone:function(e,t,n,r){return n*e/r+t},easeIn:function(e,t,n,r){return n*(e/=r)*e+t},easeOut:function(e,t,n,r){return-n*(e/=r)*(e-2)+t},easeBoth:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},easeInStrong:function(e,t,n,r){return n*(e/=r)*e*e*e+t},easeOutStrong:function(e,t,n,r){return-n*((e=e/r-1)*e*e*e-1)+t},easeBothStrong:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e*e+t:-n/2*((e-=2)*e*e*e-2)+t},elasticIn:function(e,t,n,r,i,s){var o;return e===0?t:(e/=r)===1?t+n:(s||(s=r*.3),!i||i<Math.abs(n)?(i=n,o=s/4):o=s/(2*Math.PI)*Math.asin(n/i),-(i*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*2*Math.PI/s))+t)},elasticOut:function(e,t,n,r,i,s){var o;return e===0?t:(e/=r)===1?t+n:(s||(s=r*.3),!i||i<Math.abs(n)?(i=n,o=s/4):o=s/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*e)*Math.sin((e*r-o)*2*Math.PI/s)+n+t)},elasticBoth:function(e,t,n,r,i,s){var o;return e===0?t:(e/=r/2)===2?t+n:(s||(s=r*.3*1.5),!i||i<Math.abs(n)?(i=n,o=s/4):o=s/(2*Math.PI)*Math.asin(n/i),e<1?-0.5*i*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*2*Math.PI/s)+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-o)*2*Math.PI/s)*.5+n+t)},backIn:function(e,t,n,r,i){return i===undefined&&(i=1.70158),e===r&&(e-=.001),n*(e/=r)*e*((i+1)*e-i)+t},backOut:function(e,t,n,r,i){return typeof i=="undefined"&&(i=1.70158),n*((e=e/r-1)*e*((i+1)*e+i)+1)+t},backBoth:function(e,t,n,r,i){return typeof i=="undefined"&&(i=1.70158),(e/=r/2)<1?n/2*e*e*(((i*=1.525)+1)*e-i)+t:n/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+t},bounceIn:function(t,n,r,i){return r-e.Easing.bounceOut(i-t,0,r,i)+n},bounceOut:function(e,t,n,r){return(e/=r)<1/2.75?n*7.5625*e*e+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},bounceBoth:function(t,n,r,i){return t<i/2?e.Easing.bounceIn(t*2,0,r,i)*.5+n:e.Easing.bounceOut(t*2-i,0,r,i)*.5+r*.5+n}};e.Easing=n},"@VERSION@",{requires:["anim-base"]});
View
2 build/anim-node-plugin/anim-node-plugin-min.js
@@ -1 +1 @@
-YUI.add("anim-node-plugin",function(c,b){var a=function(d){d=(d)?c.merge(d):{};d.node=d.host;a.superclass.constructor.apply(this,arguments);};a.NAME="nodefx";a.NS="fx";c.extend(a,c.Anim);c.namespace("Plugin");c.Plugin.NodeFX=a;},"@VERSION@",{"requires":["node-pluginhost","anim-base"]});
+YUI.add("anim-node-plugin",function(e,t){var n=function(t){t=t?e.merge(t):{},t.node=t.host,n.superclass.constructor.apply(this,arguments)};n.NAME="nodefx",n.NS="fx",e.extend(n,e.Anim),e.namespace("Plugin"),e.Plugin.NodeFX=n},"@VERSION@",{requires:["node-pluginhost","anim-base"]});
View
2 build/anim-scroll/anim-scroll-min.js
@@ -1 +1 @@
-YUI.add("anim-scroll",function(c,b){var a=Number;c.Anim.behaviors.scroll={set:function(g,h,j,k,l,f,i){var e=g._node,d=([i(l,a(j[0]),a(k[0])-a(j[0]),f),i(l,a(j[1]),a(k[1])-a(j[1]),f)]);if(d[0]){e.set("scrollLeft",d[0]);}if(d[1]){e.set("scrollTop",d[1]);}},get:function(e){var d=e._node;return[d.get("scrollLeft"),d.get("scrollTop")];}};},"@VERSION@",{"requires":["anim-base"]});
+YUI.add("anim-scroll",function(e,t){var n=Number;e.Anim.behaviors.scroll={set:function(e,t,r,i,s,o,u){var a=e._node,f=[u(s,n(r[0]),n(i[0])-n(r[0]),o),u(s,n(r[1]),n(i[1])-n(r[1]),o)];f[0]&&a.set("scrollLeft",f[0]),f[1]&&a.set("scrollTop",f[1])},get:function(e){var t=e._node;return[t.get("scrollLeft"),t.get("scrollTop")]}}},"@VERSION@",{requires:["anim-base"]});
View
296 build/anim-shape/anim-shape-coverage.js
@@ -0,0 +1,296 @@
+if (typeof _yuitest_coverage == "undefined"){
+ _yuitest_coverage = {};
+ _yuitest_coverline = function(src, line){
+ var coverage = _yuitest_coverage[src];
+ if (!coverage.lines[line]){
+ coverage.calledLines++;
+ }
+ coverage.lines[line]++;
+ };
+ _yuitest_coverfunc = function(src, name, line){
+ var coverage = _yuitest_coverage[src],
+ funcId = name + ":" + line;
+ if (!coverage.functions[funcId]){
+ coverage.calledFunctions++;
+ }
+ coverage.functions[funcId]++;
+ };
+}
+_yuitest_coverage["build/anim-shape/anim-shape.js"] = {
+ lines: {},
+ functions: {},
+ coveredLines: 0,
+ calledLines: 0,
+ coveredFunctions: 0,
+ calledFunctions: 0,
+ path: "build/anim-shape/anim-shape.js",
+ code: []
+};
+_yuitest_coverage["build/anim-shape/anim-shape.js"].code=["YUI.add('anim-shape', function (Y, NAME) {","","/**"," * Adds support for the <code>transform</code> attribute of <code>Graphic</code>"," * <code>Shape</code> instances."," * @module anim"," * @submodule anim-shape-transform"," * @deprecated Use anim-shape instead."," */","/**"," * Adds support for the <code>transform</code>, <code>fill</code>, and <code> attributes of <code>Graphic</code>"," * <code>Shape</code> instances. The <code>anim-shape</code> submodule can be used for all animations involving"," * <code>Graphic</code> <code>Shape</code> attributes. "," * "," * @module anim"," * @submodule anim-shape"," */"," var NUM = Number,"," TO,"," TOSTRING,"," COLOR = \"color\","," STOPS = \"stops\","," TYPE = \"type\","," GETUPDATEDSTOPS = function(anim, from, to, elapsed, duration, fn)"," {"," var i = 0,"," getUpdatedColorValue = Y.Anim.getUpdatedColorValue,"," toStop,"," fromStop,"," prop,"," len = to.length,"," color,"," opacity,"," offset,"," rotation,"," r,"," fx,"," fy,"," cx,"," cy,"," stops = [],"," stop;"," for(; i < len; i = i + 1)"," {"," toStop = to[i];"," fromStop = from[i];"," stop = {};"," for(prop in toStop)"," {"," if(toStop.hasOwnProperty(prop))"," {"," if(prop == COLOR)"," {"," stop[prop] = Y.Color.toHex(getUpdatedColorValue(Y.Color.toHex(fromStop[prop]), Y.Color.toHex(toStop[prop]), elapsed, duration, fn));"," }"," else"," {"," stop[prop] = fn(elapsed, NUM(fromStop[prop]), NUM(toStop[prop]) - NUM(fromStop[prop]), duration);"," }"," }"," }"," stops.push(stop);"," }"," return stops;"," },"," FILLANDSTROKEBEHAVIOR = {"," set: function(anim, att, from, to, elapsed, duration, fn) {"," var i,"," updated = {},"," getUpdatedColorValue = Y.Anim.getUpdatedColorValue,"," getUpdatedStops = GETUPDATEDSTOPS;"," for(i in to)"," {"," if(to.hasOwnProperty(i) && i != TYPE)"," {"," switch(i)"," {"," case COLOR :"," updated[i] = getUpdatedColorValue(from[i], to[i], elapsed, duration, fn);"," break;"," case STOPS :"," updated[i] = getUpdatedStops(anim, from[i], to[i], elapsed, duration, fn);"," break;"," default :"," updated[i] = fn(elapsed, NUM(from[i]), NUM(to[i]) - NUM(from[i]), duration);"," break;"," }"," }"," }"," anim._node.set(att, updated);"," }"," };"," Y.Anim.behaviors.fill = FILLANDSTROKEBEHAVIOR;"," Y.Anim.behaviors.stroke = FILLANDSTROKEBEHAVIOR; ",""," Y.Anim.behaviors.transform = {"," set: function(anim, att, from, to, elapsed, duration, fn) {"," var node = anim._node,"," transform = \"\","," transformTo,"," transformFrom,"," toArgs,"," fromArgs,"," i = 0,"," j,"," argLen,"," len;"," to = TO;"," len = TO.length;"," for(; i < len; ++i)"," {"," toArgs = to[i].concat();"," fromArgs = from[i].concat();"," transformTo = toArgs.shift();"," transformFrom = fromArgs.shift();"," argLen = toArgs.length;"," transform += transformTo + \"(\";"," for(j = 0; j < argLen; ++j)"," {"," transform += fn(elapsed, NUM(fromArgs[j]), NUM(toArgs[j]) - NUM(fromArgs[j]), duration);"," if(j < argLen - 1)"," {"," transform += \", \";"," }"," }"," transform += \");\";"," }"," if(transform)"," {"," node.set('transform', transform);"," }"," node._transform = TOSTRING;"," },"," "," get: function(anim) {"," var node = anim._node,"," fromMatrix = node.matrix,"," toAttr = anim.get(\"to\") || {},"," toString = anim.get(\"to\").transform,"," fromString = node.get(\"transform\"),"," toArray = Y.MatrixUtil.getTransformArray(toString),"," fromArray = fromString ? Y.MatrixUtil.getTransformArray(fromString) : null,"," toMatrix,"," i,"," len,"," transformFunction,"," from;"," if(toArray)"," {"," if(!fromArray || fromArray.length < 1)"," {"," fromArray = [];"," len = toArray.length;"," for(i = 0; i < len; ++i)"," {"," transformFunction = toArray[i][0];"," fromArray[i] = Y.MatrixUtil.getTransformFunctionArray(transformFunction);"," }"," TO = toArray;"," from = fromArray;"," }"," else if(Y.MatrixUtil.compareTransformSequence(toArray, fromArray))"," {"," TO = toArray;"," from = fromArray;"," }"," else"," {"," toMatrix = new Y.Matrix();"," len = toArray.length;"," for(i = 0; i < len; ++i)"," {"," transformFunction = toArray[i].shift();"," transformFunction = transformFunction == \"matrix\" ? \"multiply\" : transformFunction;"," toMatrix[transformFunction].apply(toMatrix, toArray[i]); "," }",""," TO = toMatrix.decompose();"," from = fromMatrix.decompose();"," }"," }"," TOSTRING = toString;"," return from;"," }"," }; ","","","","}, '@VERSION@', {\"requires\": [\"anim-base\", \"anim-easing\", \"anim-color\", \"matrix\"]});"];
+_yuitest_coverage["build/anim-shape/anim-shape.js"].lines = {"1":0,"18":0,"26":0,"43":0,"45":0,"46":0,"47":0,"48":0,"50":0,"52":0,"54":0,"58":0,"62":0,"64":0,"68":0,"72":0,"74":0,"76":0,"79":0,"80":0,"82":0,"83":0,"85":0,"86":0,"90":0,"93":0,"94":0,"96":0,"98":0,"108":0,"109":0,"110":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"120":0,"121":0,"123":0,"126":0,"128":0,"130":0,"132":0,"136":0,"148":0,"150":0,"152":0,"153":0,"154":0,"156":0,"157":0,"159":0,"160":0,"162":0,"164":0,"165":0,"169":0,"170":0,"171":0,"173":0,"174":0,"175":0,"178":0,"179":0,"182":0,"183":0};
+_yuitest_coverage["build/anim-shape/anim-shape.js"].functions = {"GETUPDATEDSTOPS:24":0,"set:67":0,"set:97":0,"get:135":0,"(anonymous 1):1":0};
+_yuitest_coverage["build/anim-shape/anim-shape.js"].coveredLines = 69;
+_yuitest_coverage["build/anim-shape/anim-shape.js"].coveredFunctions = 5;
+_yuitest_coverline("build/anim-shape/anim-shape.js", 1);
+YUI.add('anim-shape', function (Y, NAME) {
+
+/**
+ * Adds support for the <code>transform</code> attribute of <code>Graphic</code>
+ * <code>Shape</code> instances.
+ * @module anim
+ * @submodule anim-shape-transform
+ * @deprecated Use anim-shape instead.
+ */
+/**
+ * Adds support for the <code>transform</code>, <code>fill</code>, and <code> attributes of <code>Graphic</code>
+ * <code>Shape</code> instances. The <code>anim-shape</code> submodule can be used for all animations involving
+ * <code>Graphic</code> <code>Shape</code> attributes.
+ *
+ * @module anim
+ * @submodule anim-shape
+ */
+ _yuitest_coverfunc("build/anim-shape/anim-shape.js", "(anonymous 1)", 1);
+_yuitest_coverline("build/anim-shape/anim-shape.js", 18);
+var NUM = Number,
+ TO,
+ TOSTRING,
+ COLOR = "color",
+ STOPS = "stops",
+ TYPE = "type",
+ GETUPDATEDSTOPS = function(anim, from, to, elapsed, duration, fn)
+ {
+ _yuitest_coverfunc("build/anim-shape/anim-shape.js", "GETUPDATEDSTOPS", 24);
+_yuitest_coverline("build/anim-shape/anim-shape.js", 26);
+var i = 0,
+ getUpdatedColorValue = Y.Anim.getUpdatedColorValue,
+ toStop,
+ fromStop,
+ prop,
+ len = to.length,
+ color,
+ opacity,
+ offset,
+ rotation,
+ r,
+ fx,
+ fy,
+ cx,
+ cy,
+ stops = [],
+ stop;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 43);
+for(; i < len; i = i + 1)
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 45);
+toStop = to[i];
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 46);
+fromStop = from[i];
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 47);
+stop = {};
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 48);
+for(prop in toStop)
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 50);
+if(toStop.hasOwnProperty(prop))
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 52);
+if(prop == COLOR)
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 54);
+stop[prop] = Y.Color.toHex(getUpdatedColorValue(Y.Color.toHex(fromStop[prop]), Y.Color.toHex(toStop[prop]), elapsed, duration, fn));
+ }
+ else
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 58);
+stop[prop] = fn(elapsed, NUM(fromStop[prop]), NUM(toStop[prop]) - NUM(fromStop[prop]), duration);
+ }
+ }
+ }
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 62);
+stops.push(stop);
+ }
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 64);
+return stops;
+ },
+ FILLANDSTROKEBEHAVIOR = {
+ set: function(anim, att, from, to, elapsed, duration, fn) {
+ _yuitest_coverfunc("build/anim-shape/anim-shape.js", "set", 67);
+_yuitest_coverline("build/anim-shape/anim-shape.js", 68);
+var i,
+ updated = {},
+ getUpdatedColorValue = Y.Anim.getUpdatedColorValue,
+ getUpdatedStops = GETUPDATEDSTOPS;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 72);
+for(i in to)
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 74);
+if(to.hasOwnProperty(i) && i != TYPE)
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 76);
+switch(i)
+ {
+ case COLOR :
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 79);
+updated[i] = getUpdatedColorValue(from[i], to[i], elapsed, duration, fn);
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 80);
+break;
+ case STOPS :
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 82);
+updated[i] = getUpdatedStops(anim, from[i], to[i], elapsed, duration, fn);
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 83);
+break;
+ default :
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 85);
+updated[i] = fn(elapsed, NUM(from[i]), NUM(to[i]) - NUM(from[i]), duration);
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 86);
+break;
+ }
+ }
+ }
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 90);
+anim._node.set(att, updated);
+ }
+ };
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 93);
+Y.Anim.behaviors.fill = FILLANDSTROKEBEHAVIOR;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 94);
+Y.Anim.behaviors.stroke = FILLANDSTROKEBEHAVIOR;
+
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 96);
+Y.Anim.behaviors.transform = {
+ set: function(anim, att, from, to, elapsed, duration, fn) {
+ _yuitest_coverfunc("build/anim-shape/anim-shape.js", "set", 97);
+_yuitest_coverline("build/anim-shape/anim-shape.js", 98);
+var node = anim._node,
+ transform = "",
+ transformTo,
+ transformFrom,
+ toArgs,
+ fromArgs,
+ i = 0,
+ j,
+ argLen,
+ len;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 108);
+to = TO;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 109);
+len = TO.length;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 110);
+for(; i < len; ++i)
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 112);
+toArgs = to[i].concat();
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 113);
+fromArgs = from[i].concat();
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 114);
+transformTo = toArgs.shift();
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 115);
+transformFrom = fromArgs.shift();
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 116);
+argLen = toArgs.length;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 117);
+transform += transformTo + "(";
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 118);
+for(j = 0; j < argLen; ++j)
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 120);
+transform += fn(elapsed, NUM(fromArgs[j]), NUM(toArgs[j]) - NUM(fromArgs[j]), duration);
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 121);
+if(j < argLen - 1)
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 123);
+transform += ", ";
+ }
+ }
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 126);
+transform += ");";
+ }
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 128);
+if(transform)
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 130);
+node.set('transform', transform);
+ }
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 132);
+node._transform = TOSTRING;
+ },
+
+ get: function(anim) {
+ _yuitest_coverfunc("build/anim-shape/anim-shape.js", "get", 135);
+_yuitest_coverline("build/anim-shape/anim-shape.js", 136);
+var node = anim._node,
+ fromMatrix = node.matrix,
+ toAttr = anim.get("to") || {},
+ toString = anim.get("to").transform,
+ fromString = node.get("transform"),
+ toArray = Y.MatrixUtil.getTransformArray(toString),
+ fromArray = fromString ? Y.MatrixUtil.getTransformArray(fromString) : null,
+ toMatrix,
+ i,
+ len,
+ transformFunction,
+ from;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 148);
+if(toArray)
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 150);
+if(!fromArray || fromArray.length < 1)
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 152);
+fromArray = [];
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 153);
+len = toArray.length;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 154);
+for(i = 0; i < len; ++i)
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 156);
+transformFunction = toArray[i][0];
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 157);
+fromArray[i] = Y.MatrixUtil.getTransformFunctionArray(transformFunction);
+ }
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 159);
+TO = toArray;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 160);
+from = fromArray;
+ }
+ else {_yuitest_coverline("build/anim-shape/anim-shape.js", 162);
+if(Y.MatrixUtil.compareTransformSequence(toArray, fromArray))
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 164);
+TO = toArray;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 165);
+from = fromArray;
+ }
+ else
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 169);
+toMatrix = new Y.Matrix();
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 170);
+len = toArray.length;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 171);
+for(i = 0; i < len; ++i)
+ {
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 173);
+transformFunction = toArray[i].shift();
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 174);
+transformFunction = transformFunction == "matrix" ? "multiply" : transformFunction;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 175);
+toMatrix[transformFunction].apply(toMatrix, toArray[i]);
+ }
+
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 178);
+TO = toMatrix.decompose();
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 179);
+from = fromMatrix.decompose();
+ }}
+ }
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 182);
+TOSTRING = toString;
+ _yuitest_coverline("build/anim-shape/anim-shape.js", 183);
+return from;
+ }
+ };
+
+
+
+}, '@VERSION@', {"requires": ["anim-base", "anim-easing", "anim-color", "matrix"]});
View
4 build/anim-shape/anim-shape-debug.js
@@ -1,4 +1,4 @@
-YUI.add('anim-shape', function(Y) {
+YUI.add('anim-shape', function (Y, NAME) {
/**
* Adds support for the <code>transform</code> attribute of <code>Graphic</code>
@@ -186,4 +186,4 @@ YUI.add('anim-shape', function(Y) {
-}, '@VERSION@' ,{requires:['anim-base','anim-color','matrix']});
+}, '@VERSION@', {"requires": ["anim-base", "anim-easing", "anim-color", "matrix"]});
View
2 build/anim-shape/anim-shape-min.js
@@ -1 +1 @@
-YUI.add("anim-shape",function(d){var c=Number,f,a,b="color",h="stops",g="type",e=function(C,B,m,k,j,v){var E=0,G=d.Anim.getUpdatedColorValue,y,w,p,F=m.length,D,s,t,A,x,q,o,n,l,u=[],z;for(;E<F;E=E+1){y=m[E];w=B[E];z={};for(p in y){if(y.hasOwnProperty(p)){if(p==b){z[p]=d.Color.toHex(G(d.Color.toHex(w[p]),d.Color.toHex(y[p]),k,j,v));}else{z[p]=v(k,c(w[p]),c(y[p])-c(w[p]),j);}}}u.push(z);}return u;},i={set:function(l,p,r,s,t,k,q){var m,n={},o=d.Anim.getUpdatedColorValue,j=e;for(m in s){if(s.hasOwnProperty(m)&&m!=g){switch(m){case b:n[m]=o(r[m],s[m],t,k,q);break;case h:n[m]=j(l,r[m],s[m],t,k,q);break;default:n[m]=q(t,c(r[m]),c(s[m])-c(r[m]),k);break;}}}l._node.set(p,n);}};d.Anim.behaviors.fill=i;d.Anim.behaviors.stroke=i;d.Anim.behaviors.transform={set:function(o,u,x,y,z,n,w){var m=o._node,l="",v,r,A,k,q=0,p,t,s;y=f;s=f.length;for(;q<s;++q){A=y[q].concat();k=x[q].concat();v=A.shift();r=k.shift();t=A.length;l+=v+"(";for(p=0;p<t;++p){l+=w(z,c(k[p]),c(A[p])-c(k[p]),n);if(p<t-1){l+=", ";}}l+=");";}if(l){m.set("transform",l);}m._transform=a;},get:function(o){var n=o._node,m=n.matrix,v=o.get("to")||{},j=o.get("to").transform,l=n.get("transform"),p=d.MatrixUtil.getTransformArray(j),u=l?d.MatrixUtil.getTransformArray(l):null,r,q,s,k,t;if(p){if(!u||u.length<1){u=[];s=p.length;for(q=0;q<s;++q){k=p[q][0];u[q]=d.MatrixUtil.getTransformFunctionArray(k);}f=p;t=u;}else{if(d.MatrixUtil.compareTransformSequence(p,u)){f=p;t=u;}else{r=new d.Matrix();s=p.length;for(q=0;q<s;++q){k=p[q].shift();k=k=="matrix"?"multiply":k;r[k].apply(r,p[q]);}f=r.decompose();t=m.decompose();}}}a=j;return t;}};},"@VERSION@",{requires:["anim-base","anim-color","matrix"]});
+YUI.add("anim-shape",function(e,t){var n=Number,r,i,s="color",o="stops",u="type",a=function(t,r,i,o,u,a){var f=0,l=e.Anim.getUpdatedColorValue,c,h,p,d=i.length,v,m,g,y,b,w,E,S,x,T=[],N;for(;f<d;f+=1){c=i[f],h=r[f],N={};for(p in c)c.hasOwnProperty(p)&&(p==s?N[p]=e.Color.toHex(l(e.Color.toHex(h[p]),e.Color.toHex(c[p]),o,u,a)):N[p]=a(o,n(h[p]),n(c[p])-n(h[p]),u));T.push(N)}return T},f={set:function(t,r,i,f,l,c,h){var p,d={},v=e.Anim.getUpdatedColorValue,m=a;for(p in f)if(f.hasOwnProperty(p)&&p!=u)switch(p){case s:d[p]=v(i[p],f[p],l,c,h);break;case o:d[p]=m(t,i[p],f[p],l,c,h);break;default:d[p]=h(l,n(i[p]),n(f[p])-n(i[p]),c)}t._node.set(r,d)}};e.Anim.behaviors.fill=f,e.Anim.behaviors.stroke=f,e.Anim.behaviors.transform={set:function(e,t,s,o,u,a,f){var l=e._node,c="",h,p,d,v,m=0,g,y,b;o=r,b=r.length;for(;m<b;++m){d=o[m].concat(),v=s[m].concat(),h=d.shift(),p=v.shift(),y=d.length,c+=h+"(";for(g=0;g<y;++g)c+=f(u,n(v[g]),n(d[g])-n(v[g]),a),g<y-1&&(c+=", ");c+=");"}c&&l.set("transform",c),l._transform=i},get:function(t){var n=t._node,s=n.matrix,o=t.get("to")||{},u=t.get("to").transform,a=n.get("transform"),f=e.MatrixUtil.getTransformArray(u),l=a?e.MatrixUtil.getTransformArray(a):null,c,h,p,d,v;if(f)if(!l||l.length<1){l=[],p=f.length;for(h=0;h<p;++h)d=f[h][0],l[h]=e.MatrixUtil.getTransformFunctionArray(d);r=f,v=l}else if(e.MatrixUtil.compareTransformSequence(f,l))r=f,v=l;else{c=new e.Matrix,p=f.length;for(h=0;h<p;++h)d=f[h].shift(),d=d=="matrix"?"multiply":d,c[d].apply(c,f[h]);r=c.decompose(),v=s.decompose()}return i=u,v}}},"@VERSION@",{requires:["anim-base","anim-easing","anim-color","matrix"]});
View
4 build/anim-shape/anim-shape.js
@@ -1,4 +1,4 @@
-YUI.add('anim-shape', function(Y) {
+YUI.add('anim-shape', function (Y, NAME) {
/**
* Adds support for the <code>transform</code> attribute of <code>Graphic</code>
@@ -186,4 +186,4 @@ YUI.add('anim-shape', function(Y) {
-}, '@VERSION@' ,{requires:['anim-base','anim-color','matrix']});
+}, '@VERSION@', {"requires": ["anim-base", "anim-easing", "anim-color", "matrix"]});
View
2 build/anim-xy/anim-xy-min.js
@@ -1 +1 @@
-YUI.add("anim-xy",function(c,b){var a=Number;c.Anim.behaviors.xy={set:function(g,e,j,i,d,h,f){g._node.setXY([f(d,a(j[0]),a(i[0])-a(j[0]),h),f(d,a(j[1]),a(i[1])-a(j[1]),h)]);},get:function(d){return d._node.getXY();}};},"@VERSION@",{"requires":["anim-base","node-screen"]});
+YUI.add("anim-xy",function(e,t){var n=Number;e.Anim.behaviors.xy={set:function(e,t,r,i,s,o,u){e._node.setXY([u(s,n(r[0]),n(i[0])-n(r[0]),o),u(s,n(r[1]),n(i[1])-n(r[1]),o)])},get:function(e){return e._node.getXY()}}},"@VERSION@",{requires:["anim-base","node-screen"]});
View
2 build/app-base/app-base-min.js
@@ -1 +1 @@
-YUI.add("app-base",function(e,t){var n=e.Lang,r=e.Object,i=e.PjaxBase,s=e.Router,o=e.View,u=e.ClassNameManager.getClassName,a=e.config.win,f;f=e.Base.create("app",e.Base,[o,s,i],{views:{},initializer:function(t){function i(t,r){n[r]=e.merge(n[r],t)}t||(t={});var n={};r.each(this.views,i),r.each(t.views,i),this.views=n,this._viewInfoMap={},this.after("activeViewChange",e.bind("_afterActiveViewChange",this)),this.get("serverRouting")||this._pjaxBindUI()},createView:function(t,i){var s=this.getViewInfo(t),u=s&&s.type||o,a,f;return a=n.isString(u)?r.getValue(e,u.split(".")):u,f=new a(i),this._viewInfoMap[e.stamp(f,!0)]=s,f},getViewInfo:function(t){return n.isString(t)?this.views[t]:t&&this._viewInfoMap[e.stamp(t,!0)]},render:function(){var t=e.App.CLASS_NAMES,n=this.get("container"),r=this.get("viewContainer"),i=this.get("activeView"),s=i&&i.get("container"),o=n.compareTo(r);return n.addClass(t.app),r.addClass(t.views),i&&!r.contains(s)&&r.appendChild(s),!n.contains(r)&&!o&&n.appendChild(r),this},showView:function(t,r,i,s){var o,u;return i||(i={}),s?i=e.merge(i,{callback:s}):n.isFunction(i)&&(i={callback:i}),n.isString(t)&&(o=this.getViewInfo(t),o&&o.preserve&&o.instance?(t=o.instance,this._viewInfoMap[e.stamp(t,!0)]=o):(t=this.createView(t,r),u=!0)),i.update&&!u&&t.setAttrs(r),"render"in i?i.render&&t.render():u&&t.render(),this._set("activeView",t,{options:i})},_attachView:function(e,t){if(!e)return;var n=this.getViewInfo(e),r=this.get("viewContainer");e.addTarget(this),n&&(n.instance=e),r[t?"prepend":"append"](e.get("container"))},_destroyContainer:function(){var t=e.App.CLASS_NAMES,n=this.get("container"),r=this.get("viewContainer"),i=n.compareTo(r);if(e.one("body").compareTo(n)){this.detachEvents(),n.removeClass(t.app),i?n.removeClass(t.views):r.remove(!0);return}r.remove(!0),i||n.remove(!0)},_detachView:function(t){if(!t)return;var n=this.getViewInfo(t)||{};n.preserve?t.remove():(t.destroy({remove:!0}),delete this._viewInfoMap[e.stamp(t,!0)],t===n.instance&&delete n.instance),t.removeTarget(this)},_getViewContainer:function(e){return!e&&!this._viewContainer&&(e=this._viewContainer=this.create(),this._set("viewContainer",e)),e},_initHtml5:function(){return this.get("serverRouting")===!1?!1:s.html5},_isChildView:function(e,t){var n=this.getViewInfo(e),r=this.getViewInfo(t);return n&&r?this.getViewInfo(n.parent)===r:!1},_isParentView:function(e,t){var n=this.getViewInfo(e),r=this.getViewInfo(t);return n&&r?this.getViewInfo(r.parent)===n:!1},_navigate:function(t,n){return this.get("serverRouting")||(n=e.merge({force:!0},n)),i.prototype._navigate.call(this,t,n)},_save:function(t,n){var r;return this.get("serverRouting")&&!this.get("html5")?this._hasSameOrigin(t)?(a&&(r=this._joinURL(t||""),n?a.location.replace(r):a.location=r),this):(e.error("Security error: The new URL must be of the same origin as the current URL."),this):s.prototype._save.apply(this,arguments)},_uiSetActiveView:function(e,t,n){n||(n={});var r=n.callback,i=this._isChildView(e,t),s=!i&&this._isParentView(e,t),o=!!n.prepend||s;if(e===t)return r&&r.call(this,e);this._attachView(e,o),this._detachView(t),r&&r.call(this,e)},_afterActiveViewChange:function(e){this._uiSetActiveView(e.newVal,e.prevVal,e.options)}},{ATTRS:{activeView:{value:null,readOnly:!0},container:{valueFn:function(){return e.one("body")}},html5:{valueFn:"_initHtml5"},linkSelector:{value:"a"},serverRouting:{valueFn:function(){return e.App.serverRouting},writeOnce:"initOnly"},viewContainer:{getter:"_getViewContainer",setter:e.one,writeOnce:!0}},_NON_ATTRS_CFG:["views"]}),e.namespace("App").Base=f,e.App=e.mix(e.Base.create("app",f,[]),e.App,!0),e.App.CLASS_NAMES={app:u("app"),views:u("app","views")}},"@VERSION@",{requires:["classnamemanager","pjax-base","router","view"]})
+YUI.add("app-base",function(e,t){var n=e.Lang,r=e.Object,i=e.PjaxBase,s=e.Router,o=e.View,u=e.ClassNameManager.getClassName,a=e.config.win,f;f=e.Base.create("app",e.Base,[o,s,i],{views:{},initializer:function(t){function i(t,r){n[r]=e.merge(n[r],t)}t||(t={});var n={};r.each(this.views,i),r.each(t.views,i),this.views=n,this._viewInfoMap={},this.after("activeViewChange",e.bind("_afterActiveViewChange",this)),this.get("serverRouting")||this._pjaxBindUI()},createView:function(t,i){var s=this.getViewInfo(t),u=s&&s.type||o,a,f;return a=n.isString(u)?r.getValue(e,u.split(".")):u,f=new a(i),this._viewInfoMap[e.stamp(f,!0)]=s,f},getViewInfo:function(t){return n.isString(t)?this.views[t]:t&&this._viewInfoMap[e.stamp(t,!0)]},render:function(){var t=e.App.CLASS_NAMES,n=this.get("container"),r=this.get("viewContainer"),i=this.get("activeView"),s=i&&i.get("container"),o=n.compareTo(r);return n.addClass(t.app),r.addClass(t.views),i&&!r.contains(s)&&r.appendChild(s),!n.contains(r)&&!o&&n.appendChild(r),this},showView:function(t,r,i,s){var o,u;return i||(i={}),s?i=e.merge(i,{callback:s}):n.isFunction(i)&&(i={callback:i}),n.isString(t)&&(o=this.getViewInfo(t),o&&o.preserve&&o.instance?(t=o.instance,this._viewInfoMap[e.stamp(t,!0)]=o):(t=this.createView(t,r),u=!0)),i.update&&!u&&t.setAttrs(r),"render"in i?i.render&&t.render():u&&t.render(),this._set("activeView",t,{options:i})},_attachView:function(e,t){if(!e)return;var n=this.getViewInfo(e),r=this.get("viewContainer");e.addTarget(this),n&&(n.instance=e),r[t?"prepend":"append"](e.get("container"))},_destroyContainer:function(){var t=e.App.CLASS_NAMES,n=this.get("container"),r=this.get("viewContainer"),i=n.compareTo(r);if(e.one("body").compareTo(n)){this.detachEvents(),n.removeClass(t.app),i?n.removeClass(t.views):r.remove(!0);return}r.remove(!0),i||n.remove(!0)},_detachView:function(t){if(!t)return;var n=this.getViewInfo(t)||{};n.preserve?t.remove():(t.destroy({remove:!0}),delete this._viewInfoMap[e.stamp(t,!0)],t===n.instance&&delete n.instance),t.removeTarget(this)},_getViewContainer:function(e){return!e&&!this._viewContainer&&(e=this._viewContainer=this.create(),this._set("viewContainer",e)),e},_initHtml5:function(){return this.get("serverRouting")===!1?!1:s.html5},_isChildView:function(e,t){var n=this.getViewInfo(e),r=this.getViewInfo(t);return n&&r?this.getViewInfo(n.parent)===r:!1},_isParentView:function(e,t){var n=this.getViewInfo(e),r=this.getViewInfo(t);return n&&r?this.getViewInfo(r.parent)===n:!1},_navigate:function(t,n){return this.get("serverRouting")||(n=e.merge({force:!0},n)),i.prototype._navigate.call(this,t,n)},_save:function(t,n){var r;return this.get("serverRouting")&&!this.get("html5")?this._hasSameOrigin(t)?(a&&(r=this._joinURL(t||""),n?a.location.replace(r):a.location=r),this):(e.error("Security error: The new URL must be of the same origin as the current URL."),this):s.prototype._save.apply(this,arguments)},_uiSetActiveView:function(e,t,n){n||(n={});var r=n.callback,i=this._isChildView(e,t),s=!i&&this._isParentView(e,t),o=!!n.prepend||s;if(e===t)return r&&r.call(this,e);this._attachView(e,o),this._detachView(t),r&&r.call(this,e)},_afterActiveViewChange:function(e){this._uiSetActiveView(e.newVal,e.prevVal,e.options)}},{ATTRS:{activeView:{value:null,readOnly:!0},container:{valueFn:function(){return e.one("body")}},html5:{valueFn:"_initHtml5"},linkSelector:{value:"a"},serverRouting:{valueFn:function(){return e.App.serverRouting},writeOnce:"initOnly"},viewContainer:{getter:"_getViewContainer",setter:e.one,writeOnce:!0}},_NON_ATTRS_CFG:["views"]}),e.namespace("App").Base=f,e.App=e.mix(e.Base.create("app",f,[]),e.App,!0),e.App.CLASS_NAMES={app:u("app"),views:u("app","views")}},"@VERSION@",{requires:["classnamemanager","pjax-base","router","view"]});
View
2 build/app-content/app-content-min.js
@@ -1 +1 @@
-YUI.add("app-content",function(e,t){function r(){n.apply(this,arguments)}var n=e.PjaxContent;r.route=["loadContent","_contentRoute"],r.prototype={showContent:function(t,n,r){t=e.one(t),typeof n=="function"&&(n={callback:n},r=null),n=e.merge({render:!1},n);var i=n.view||"",s=typeof i=="string"?i:i.name,o=typeof i!="string"?i.config:{},u=this.getViewInfo(s),a,f,l,c;return delete n.view,t&&t.isFragment()&&t.get("childNodes").size()===1&&(t=t.get("firstChild")),t&&t.get("nodeType")===1?a=t:(l=u&&u.type||e.View,c=typeof l=="string"?e.Object.getValue(e,l.split(".")):l,f=c.prototype.containerTemplate,a=e.Node.create(f),a.append(t)),o=e.merge(o,{container:a}),this.showView(s,o,n,r)},_contentRoute:function(t,n,r){var i=n.content,s=e.config.doc,o;if(!i||!i.node)return r();i.title&&s&&(o=this.onceAfter("activeViewChange",function(){s.title=i.title})),this.showContent(i.node),o&&o.detach(),r()}},e.mix(r,n),e.mix(r,n,!1,null,1),e.App.Content=r,e.Base.mix(e.App,[r])},"@VERSION@",{requires:["app-base","pjax-content"]})
+YUI.add("app-content",function(e,t){function r(){n.apply(this,arguments)}var n=e.PjaxContent;r.route=["loadContent","_contentRoute"],r.prototype={showContent:function(t,n,r){t=e.one(t),typeof n=="function"&&(n={callback:n},r=null),n=e.merge({render:!1},n);var i=n.view||"",s=typeof i=="string"?i:i.name,o=typeof i!="string"?i.config:{},u=this.getViewInfo(s),a,f,l,c;return delete n.view,t&&t.isFragment()&&t.get("childNodes").size()===1&&(t=t.get("firstChild")),t&&t.get("nodeType")===1?a=t:(l=u&&u.type||e.View,c=typeof l=="string"?e.Object.getValue(e,l.split(".")):l,f=c.prototype.containerTemplate,a=e.Node.create(f),a.append(t)),o=e.merge(o,{container:a}),this.showView(s,o,n,r)},_contentRoute:function(t,n,r){var i=n.content,s=e.config.doc,o;if(!i||!i.node)return r();i.title&&s&&(o=this.onceAfter("activeViewChange",function(){s.title=i.title})),this.showContent(i.node),o&&o.detach(),r()}},e.mix(r,n),e.mix(r,n,!1,null,1),e.App.Content=r,e.Base.mix(e.App,[r])},"@VERSION@",{requires:["app-base","pjax-content"]});
View
2 build/app-transitions-css/app-transitions-css-min.css
@@ -1 +1 @@
-.yui3-app-transitioning .yui3-app-views,.yui3-app-views.yui3-app-transitioning{overflow-x:hidden;position:relative;white-space:nowrap;letter-spacing:-0.31em;word-spacing:-0.43em}.yui3-app-transitioning .yui3-app-views>*,.yui3-app-views.yui3-app-transitioning>*{display:inline-block;width:100%;vertical-align:top;white-space:normal;letter-spacing:normal;word-spacing:normal;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#yui3-css-stamp.app-transitions-css{display:none}
+.yui3-app-transitioning .yui3-app-views,.yui3-app-views.yui3-app-transitioning{overflow-x:hidden;position:relative;white-space:nowrap;letter-spacing:-0.31em;word-spacing:-0.43em}.yui3-app-transitioning .yui3-app-views>*,.yui3-app-views.yui3-app-transitioning>*{display:inline-block;width:100%;vertical-align:top;white-space:normal;letter-spacing:normal;word-spacing:normal;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#yui3-css-stamp.app-transitions-css{display:none}
View
2 build/app-transitions-native/app-transitions-native-min.js
@@ -1 +1 @@
-YUI.add("app-transitions-native",function(e,t){function r(){}var n=e.App.Transitions;r.prototype={initializer:function(){this._transitioning=!1,this._viewTransitionQueue=[],e.Do.before(this._queueActiveView,this,"_uiSetActiveView")},_dequeueActiveView:function(){var t=this._viewTransitionQueue,n=t.shift(),r;n&&(t.length&&(r=e.merge(n[2],{transition:!1}),n.splice(2,1,r)),this._uiTransitionActiveView.apply(this,n))},_getFx:function(e,t,r){var i=n.FX,s=this.get("transitions");return r===!1||!s?null:r?i[r]:this._isChildView(e,t)?i[s.toChild]:this._isParentView(e,t)?i[s.toParent]:i[s.navigate]},_queueActiveView:function(){var t=e.Array(arguments,0,!0);return this._viewTransitionQueue.push(t),this._transitioning||this._dequeueActiveView(),new e.Do.Prevent},_uiTransitionActiveView:function(t,n,r){function p(){return this._detachView(n),s.removeClass(o),i&&i.call(this,t),this._transitioning=!1,this._dequeueActiveView()}r||(r={});var i=r.callback,s,o,u,a,f,l,c,h;if(t===n)return i&&i.call(this,t),this._transitioning=!1,this._dequeueActiveView();l=this._getFx(t,n,r.transition),u=this._isChildView(t,n),a=!u&&this._isParentView(t,n),f=!!r.prepend||a;if(!l)return this._attachView(t,f),this._detachView(n),i&&i.call(this,t),this._transitioning=!1,this._dequeueActiveView();this._transitioning=!0,s=this.get("container"),o=e.App.CLASS_NAMES.transitioning,s.addClass(o),this._attachView(t,f),h=new e.Parallel({context:this}),c={crossView:!!n&&!!t,prepended:f},t&&l.viewIn&&t.get("container").transition(l.viewIn,c,h.add()),n&&l.viewOut&&n.get("container").transition(l.viewOut,c,h.add()),h.done(p)}},e.mix(e.Transition.fx,{"app:fadeIn":{opacity:1,duration:.3,on:{start:function(e){var t={opacity:0},n=e.config;n.crossView&&!n.prepended&&(t.transform="translateX(-100%)"),this.setStyles(t)},end:function(){this.setStyle("transform","translateX(0)")}}},"app:fadeOut":{opacity:0,duration:.3,on:{start:function(e){var t={opacity:1},n=e.config;n.crossView&&n.prepended&&(t.transform="translateX(-100%)"),this.setStyles(t)},end:function(){this.setStyle("transform","translateX(0)")}}},"app:slideLeft":{duration:.3,transform:"translateX(-100%)",on:{start:function(){this.setStyles({opacity:1,transform:"translateX(0%)"})},end:function(){this.setStyle("transform","translateX(0)")}}},"app:slideRight":{duration:.3,transform:"translateX(0)",on:{start:function(){this.setStyles({opacity:1,transform:"translateX(-100%)"})},end:function(){this.setStyle("transform","translateX(0)")}}}}),e.App.TransitionsNative=r,e.Base.mix(e.App,[r])},"@VERSION@",{requires:["app-transitions","app-transitions-css","parallel","transition"]})
+YUI.add("app-transitions-native",function(e,t){function r(){}var n=e.App.Transitions;r.prototype={initializer:function(){this._transitioning=!1,this._viewTransitionQueue=[],e.Do.before(this._queueActiveView,this,"_uiSetActiveView")},_dequeueActiveView:function(){var t=this._viewTransitionQueue,n=t.shift(),r;n&&(t.length&&(r=e.merge(n[2],{transition:!1}),n.splice(2,1,r)),this._uiTransitionActiveView.apply(this,n))},_getFx:function(e,t,r){var i=n.FX,s=this.get("transitions");return r===!1||!s?null:r?i[r]:this._isChildView(e,t)?i[s.toChild]:this._isParentView(e,t)?i[s.toParent]:i[s.navigate]},_queueActiveView:function(){var t=e.Array(arguments,0,!0);return this._viewTransitionQueue.push(t),this._transitioning||this._dequeueActiveView(),new e.Do.Prevent},_uiTransitionActiveView:function(t,n,r){function p(){return this._detachView(n),s.removeClass(o),i&&i.call(this,t),this._transitioning=!1,this._dequeueActiveView()}r||(r={});var i=r.callback,s,o,u,a,f,l,c,h;if(t===n)return i&&i.call(this,t),this._transitioning=!1,this._dequeueActiveView();l=this._getFx(t,n,r.transition),u=this._isChildView(t,n),a=!u&&this._isParentView(t,n),f=!!r.prepend||a;if(!l)return this._attachView(t,f),this._detachView(n),i&&i.call(this,t),this._transitioning=!1,this._dequeueActiveView();this._transitioning=!0,s=this.get("container"),o=e.App.CLASS_NAMES.transitioning,s.addClass(o),this._attachView(t,f),h=new e.Parallel({context:this}),c={crossView:!!n&&!!t,prepended:f},t&&l.viewIn&&t.get("container").transition(l.viewIn,c,h.add()),n&&l.viewOut&&n.get("container").transition(l.viewOut,c,h.add()),h.done(p)}},e.mix(e.Transition.fx,{"app:fadeIn":{opacity:1,duration:.3,on:{start:function(e){var t={opacity:0},n=e.config;n.crossView&&!n.prepended&&(t.transform="translateX(-100%)"),this.setStyles(t)},end:function(){this.setStyle("transform","translateX(0)")}}},"app:fadeOut":{opacity:0,duration:.3,on:{start:function(e){var t={opacity:1},n=e.config;n.crossView&&n.prepended&&(t.transform="translateX(-100%)"),this.setStyles(t)},end:function(){this.setStyle("transform","translateX(0)")}}},"app:slideLeft":{duration:.3,transform:"translateX(-100%)",on:{start:function(){this.setStyles({opacity:1,transform:"translateX(0%)"})},end:function(){this.setStyle("transform","translateX(0)")}}},"app:slideRight":{duration:.3,transform:"translateX(0)",on:{start:function(){this.setStyles({opacity:1,transform:"translateX(-100%)"})},end:function(){this.setStyle("transform","translateX(0)")}}}}),e.App.TransitionsNative=r,e.Base.mix(e.App,[r])},"@VERSION@",{requires:["app-transitions","app-transitions-css","parallel","transition"]});
View
2 build/app-transitions/app-transitions-min.js
@@ -1 +1 @@
-YUI.add("app-transitions",function(e,t){function n(){}n.ATTRS={transitions:{setter:"_setTransitions",value:!1}},n.FX={fade:{viewIn:"app:fadeIn",viewOut:"app:fadeOut"},slideLeft:{viewIn:"app:slideLeft",viewOut:"app:slideLeft"},slideRight:{viewIn:"app:slideRight",viewOut:"app:slideRight"}},n.prototype={transitions:{navigate:"fade",toChild:"slideLeft",toParent:"slideRight"},_setTransitions:function(t){var n=this.transitions;return t&&t===!0?e.merge(n):t}},e.App.Transitions=n,e.Base.mix(e.App,[n]),e.mix(e.App.CLASS_NAMES,{transitioning:e.ClassNameManager.getClassName("app","transitioning")})},"@VERSION@",{requires:["app-base"]})
+YUI.add("app-transitions",function(e,t){function n(){}n.ATTRS={transitions:{setter:"_setTransitions",value:!1}},n.FX={fade:{viewIn:"app:fadeIn",viewOut:"app:fadeOut"},slideLeft:{viewIn:"app:slideLeft",viewOut:"app:slideLeft"},slideRight:{viewIn:"app:slideRight",viewOut:"app:slideRight"}},n.prototype={transitions:{navigate:"fade",toChild:"slideLeft",toParent:"slideRight"},_setTransitions:function(t){var n=this.transitions;return t&&t===!0?e.merge(n):t}},e.App.Transitions=n,e.Base.mix(e.App,[n]),e.mix(e.App.CLASS_NAMES,{transitioning:e.ClassNameManager.getClassName("app","transitioning")})},"@VERSION@",{requires:["app-base"]});
View
4 build/array-extras/array-extras-coverage.js
@@ -26,7 +26,7 @@ _yuitest_coverage["build/array-extras/array-extras.js"] = {
path: "build/array-extras/array-extras.js",
code: []
};
-_yuitest_coverage["build/array-extras/array-extras.js"].code=["YUI.add('array-extras', function (Y, NAME) {","","/**","Adds additional utility methods to the `Y.Array` class.","","@module collection","@submodule array-extras","**/","","var A = Y.Array,"," L = Y.Lang,"," ArrayProto = Array.prototype;","","/**","Returns the index of the last item in the array that contains the specified","value, or `-1` if the value isn't found.","","@method lastIndexOf","@param {Array} a Array to search in.","@param {Any} val Value to search for.","@param {Number} [fromIndex] Index at which to start searching backwards."," Defaults to the array's length - 1. If negative, it will be taken as an offset"," from the end of the array. If the calculated index is less than 0, the array"," will not be searched and `-1` will be returned.","@return {Number} Index of the item that contains the value, or `-1` if not"," found.","@static","@for Array","**/","A.lastIndexOf = L._isNative(ArrayProto.lastIndexOf) ?"," function(a, val, fromIndex) {"," // An undefined fromIndex is still considered a value by some (all?)"," // native implementations, so we can't pass it unless it's actually"," // specified."," return fromIndex || fromIndex === 0 ? a.lastIndexOf(val, fromIndex) :"," a.lastIndexOf(val);"," } :"," function(a, val, fromIndex) {"," var len = a.length,"," i = len - 1;",""," if (fromIndex || fromIndex === 0) {"," i = Math.min(fromIndex < 0 ? len + fromIndex : fromIndex, len);"," }",""," if (i > -1 && len > 0) {"," for (; i > -1; --i) {"," if (i in a && a[i] === val) {"," return i;"," }"," }"," }",""," return -1;"," };","","/**","Returns a copy of the input array with duplicate items removed.","","Note: If the input array only contains strings, the `Y.Array.dedupe()` method is","a much faster alternative.","","@method unique","@param {Array} array Array to dedupe.","@param {Function} [testFn] Custom function to use to test the equality of two"," values. A truthy return value indicates that the values are equal. A falsy"," return value indicates that the values are not equal.",""," @param {Any} testFn.a First value to compare."," @param {Any} testFn.b Second value to compare."," @param {Number} testFn.index Index of the current item in the original"," array."," @param {Array} testFn.array The original array."," @return {Boolean} _true_ if the items are equal, _false_ otherwise.","","@return {Array} Copy of the input array with duplicate items removed.","@static","**/","A.unique = function (array, testFn) {"," var i = 0,"," len = array.length,"," results = [],"," j, result, resultLen, value;",""," // Note the label here. It's used to jump out of the inner loop when a value"," // is not unique."," outerLoop: for (; i < len; i++) {"," value = array[i];",""," // For each value in the input array, iterate through the result array"," // and check for uniqueness against each result value."," for (j = 0, resultLen = results.length; j < resultLen; j++) {"," result = results[j];",""," // If the test function returns true or there's no test function and"," // the value equals the current result item, stop iterating over the"," // results and continue to the next value in the input array."," if (testFn) {"," if (testFn.call(array, value, result, i, array)) {"," continue outerLoop;"," }"," } else if (value === result) {"," continue outerLoop;"," }"," }",""," // If we get this far, that means the current value is not already in"," // the result array, so add it."," results.push(value);"," }",""," return results;","};","","/**","Executes the supplied function on each item in the array. Returns a new array","containing the items for which the supplied function returned a truthy value.","","@method filter","@param {Array} a Array to filter.","@param {Function} f Function to execute on each item.","@param {Object} [o] Optional context object.","@return {Array} Array of items for which the supplied function returned a"," truthy value (empty if it never returned a truthy value).","@static","*/","A.filter = L._isNative(ArrayProto.filter) ?"," function(a, f, o) {"," return ArrayProto.filter.call(a, f, o);"," } :"," function(a, f, o) {"," var i = 0,"," len = a.length,"," results = [],"," item;",""," for (; i < len; ++i) {"," if (i in a) {"," item = a[i];",""," if (f.call(o, item, i, a)) {"," results.push(item);"," }"," }"," }",""," return results;"," };","","/**","The inverse of `Array.filter()`. Executes the supplied function on each item.","Returns a new array containing the items for which the supplied function","returned `false`.","","@method reject","@param {Array} a the array to iterate.","@param {Function} f the function to execute on each item.","@param {object} [o] Optional context object.","@return {Array} The items for which the supplied function returned `false`.","@static","*/","A.reject = function(a, f, o) {"," return A.filter(a, function(item, i, a) {"," return !f.call(o, item, i, a);"," });","};","","/**","Executes the supplied function on each item in the array. Iteration stops if the","supplied function does not return a truthy value.","","@method every","@param {Array} a the array to iterate.","@param {Function} f the function to execute on each item.","@param {Object} [o] Optional context object.","@return {Boolean} `true` if every item in the array returns `true` from the"," supplied function, `false` otherwise.","@static","*/","A.every = L._isNative(ArrayProto.every) ?"," function(a, f, o) {"," return ArrayProto.every.call(a, f, o);"," } :"," function(a, f, o) {"," for (var i = 0, l = a.length; i < l; ++i) {"," if (i in a && !f.call(o, a[i], i, a)) {"," return false;"," }"," }",""," return true;"," };","","/**","Executes the supplied function on each item in the array and returns a new array","containing all the values returned by the supplied function.","","@example",""," // Convert an array of numbers into an array of strings."," Y.Array.map([1, 2, 3, 4], function (item) {"," return '' + item;"," });"," // => ['1', '2', '3', '4']","","@method map","@param {Array} a the array to iterate.","@param {Function} f the function to execute on each item.","@param {object} [o] Optional context object.","@return {Array} A new array containing the return value of the supplied function"," for each item in the original array.","@static","*/","A.map = L._isNative(ArrayProto.map) ?"," function(a, f, o) {"," return ArrayProto.map.call(a, f, o);"," } :"," function(a, f, o) {"," var i = 0,"," len = a.length,"," results = ArrayProto.concat.call(a);",""," for (; i < len; ++i) {"," if (i in a) {"," results[i] = f.call(o, a[i], i, a);"," }"," }",""," return results;"," };","","","/**","Executes the supplied function on each item in the array, \"folding\" the array","into a single value.","","@method reduce","@param {Array} a Array to iterate.","@param {Any} init Initial value to start with.","@param {Function} f Function to execute on each item. This function should"," update and return the value of the computation. It will receive the following"," arguments:"," @param {Any} f.previousValue Value returned from the previous iteration,"," or the initial value if this is the first iteration."," @param {Any} f.currentValue Value of the current item being iterated."," @param {Number} f.index Index of the current item."," @param {Array} f.array Array being iterated.","@param {Object} [o] Optional context object.","@return {Any} Final result from iteratively applying the given function to each"," element in the array.","@static","*/","A.reduce = L._isNative(ArrayProto.reduce) ?"," function(a, init, f, o) {"," // ES5 Array.reduce doesn't support a thisObject, so we need to"," // implement it manually."," return ArrayProto.reduce.call(a, function(init, item, i, a) {"," return f.call(o, init, item, i, a);"," }, init);"," } :"," function(a, init, f, o) {"," var i = 0,"," len = a.length,"," result = init;",""," for (; i < len; ++i) {"," if (i in a) {"," result = f.call(o, result, a[i], i, a);"," }"," }",""," return result;"," };","","/**","Executes the supplied function on each item in the array, searching for the","first item that matches the supplied function.","","@method find","@param {Array} a the array to search.","@param {Function} f the function to execute on each item. Iteration is stopped"," as soon as this function returns `true`.","@param {Object} [o] Optional context object.","@return {Object} the first item that the supplied function returns `true` for,"," or `null` if it never returns `true`.","@static","*/","A.find = function(a, f, o) {"," for (var i = 0, l = a.length; i < l; i++) {"," if (i in a && f.call(o, a[i], i, a)) {"," return a[i];"," }"," }"," return null;","};","","/**","Iterates over an array, returning a new array of all the elements that match the","supplied regular expression.","","@method grep","@param {Array} a Array to iterate over.","@param {RegExp} pattern Regular expression to test against each item.","@return {Array} All the items in the array that produce a match against the"," supplied regular expression. If no items match, an empty array is returned.","@static","*/","A.grep = function(a, pattern) {"," return A.filter(a, function(item, index) {"," return pattern.test(item);"," });","};","","/**","Partitions an array into two new arrays, one with the items for which the","supplied function returns `true`, and one with the items for which the function","returns `false`.","","@method partition","@param {Array} a Array to iterate over.","@param {Function} f Function to execute for each item in the array. It will"," receive the following arguments:"," @param {Any} f.item Current item."," @param {Number} f.index Index of the current item."," @param {Array} f.array The array being iterated.","@param {Object} [o] Optional execution context.","@return {Object} An object with two properties: `matches` and `rejects`. Each is"," an array containing the items that were selected or rejected by the test"," function (or an empty array if none).","@static","*/","A.partition = function(a, f, o) {"," var results = {"," matches: [],"," rejects: []"," };",""," A.each(a, function(item, index) {"," var set = f.call(o, item, index, a) ? results.matches : results.rejects;"," set.push(item);"," });",""," return results;","};","","/**","Creates an array of arrays by pairing the corresponding elements of two arrays","together into a new array.","","@method zip","@param {Array} a Array to iterate over.","@param {Array} a2 Another array whose values will be paired with values of the"," first array.","@return {Array} An array of arrays formed by pairing each element of the first"," array with an item in the second array having the corresponding index.","@static","*/","A.zip = function(a, a2) {"," var results = [];"," A.each(a, function(item, index) {"," results.push([item, a2[index]]);"," });"," return results;","};","","/**","Flattens an array of nested arrays at any abitrary depth into a single, flat","array.","","@method flatten","@param {Array} a Array with nested arrays to flatten.","@return {Array} An array whose nested arrays have been flattened.","@static","@since 3.6.1","**/","A.flatten = function(a) {"," var result = [],"," i, len, val;",""," // Always return an array."," if (!a) {"," return result;"," }",""," for (i = 0, len = a.length; i < len; ++i) {"," val = a[i];",""," if (L.isArray(val)) {"," // Recusively flattens any nested arrays."," result.push.apply(result, A.flatten(val));"," } else {"," result.push(val);"," }"," }",""," return result;","};","","","}, '@VERSION@', {\"requires\": [\"yui-base\"]});"];
+_yuitest_coverage["build/array-extras/array-extras.js"].code=["YUI.add('array-extras', function (Y, NAME) {","","/**","Adds additional utility methods to the `Y.Array` class.","","@module collection","@submodule array-extras","**/","","var A = Y.Array,"," L = Y.Lang,"," ArrayProto = Array.prototype;","","/**","Returns the index of the last item in the array that contains the specified","value, or `-1` if the value isn't found.","","@method lastIndexOf","@param {Array} a Array to search in.","@param {Any} val Value to search for.","@param {Number} [fromIndex] Index at which to start searching backwards."," Defaults to the array's length - 1. If negative, it will be taken as an offset"," from the end of the array. If the calculated index is less than 0, the array"," will not be searched and `-1` will be returned.","@return {Number} Index of the item that contains the value, or `-1` if not"," found.","@static","@for Array","**/","A.lastIndexOf = L._isNative(ArrayProto.lastIndexOf) ?"," function(a, val, fromIndex) {"," // An undefined fromIndex is still considered a value by some (all?)"," // native implementations, so we can't pass it unless it's actually"," // specified."," return fromIndex || fromIndex === 0 ? a.lastIndexOf(val, fromIndex) :"," a.lastIndexOf(val);"," } :"," function(a, val, fromIndex) {"," var len = a.length,"," i = len - 1;",""," if (fromIndex || fromIndex === 0) {"," i = Math.min(fromIndex < 0 ? len + fromIndex : fromIndex, len);"," }",""," if (i > -1 && len > 0) {"," for (; i > -1; --i) {"," if (i in a && a[i] === val) {"," return i;"," }"," }"," }",""," return -1;"," };","","/**","Returns a copy of the input array with duplicate items removed.","","Note: If the input array only contains strings, the `Y.Array.dedupe()` method is","a much faster alternative.","","@method unique","@param {Array} array Array to dedupe.","@param {Function} [testFn] Custom function to use to test the equality of two"," values. A truthy return value indicates that the values are equal. A falsy"," return value indicates that the values are not equal.",""," @param {Any} testFn.a First value to compare."," @param {Any} testFn.b Second value to compare."," @param {Number} testFn.index Index of the current item in the original"," array."," @param {Array} testFn.array The original array."," @return {Boolean} _true_ if the items are equal, _false_ otherwise.","","@return {Array} Copy of the input array with duplicate items removed.","@static","**/","A.unique = function (array, testFn) {"," var i = 0,"," len = array.length,"," results = [],"," j, result, resultLen, value;",""," // Note the label here. It's used to jump out of the inner loop when a value"," // is not unique."," outerLoop: for (; i < len; i++) {"," value = array[i];",""," // For each value in the input array, iterate through the result array"," // and check for uniqueness against each result value."," for (j = 0, resultLen = results.length; j < resultLen; j++) {"," result = results[j];",""," // If the test function returns true or there's no test function and"," // the value equals the current result item, stop iterating over the"," // results and continue to the next value in the input array."," if (testFn) {"," if (testFn.call(array, value, result, i, array)) {"," continue outerLoop;"," }"," } else if (value === result) {"," continue outerLoop;"," }"," }",""," // If we get this far, that means the current value is not already in"," // the result array, so add it."," results.push(value);"," }",""," return results;","};","","/**","Executes the supplied function on each item in the array. Returns a new array","containing the items for which the supplied function returned a truthy value.","","@method filter","@param {Array} a Array to filter.","@param {Function} f Function to execute on each item.","@param {Object} [o] Optional context object.","@return {Array} Array of items for which the supplied function returned a"," truthy value (empty if it never returned a truthy value).","@static","*/","A.filter = L._isNative(ArrayProto.filter) ?"," function(a, f, o) {"," return ArrayProto.filter.call(a, f, o);"," } :"," function(a, f, o) {"," var i = 0,"," len = a.length,"," results = [],"," item;",""," for (; i < len; ++i) {"," if (i in a) {"," item = a[i];",""," if (f.call(o, item, i, a)) {"," results.push(item);"," }"," }"," }",""," return results;"," };","","/**","The inverse of `Array.filter()`. Executes the supplied function on each item.","Returns a new array containing the items for which the supplied function","returned `false`.","","@method reject","@param {Array} a the array to iterate.","@param {Function} f the function to execute on each item.","@param {object} [o] Optional context object.","@return {Array} The items for which the supplied function returned `false`.","@static","*/","A.reject = function(a, f, o) {"," return A.filter(a, function(item, i, a) {"," return !f.call(o, item, i, a);"," });","};","","/**","Executes the supplied function on each item in the array. Iteration stops if the","supplied function does not return a truthy value.","","@method every","@param {Array} a the array to iterate.","@param {Function} f the function to execute on each item.","@param {Object} [o] Optional context object.","@return {Boolean} `true` if every item in the array returns `true` from the"," supplied function, `false` otherwise.","@static","*/","A.every = L._isNative(ArrayProto.every) ?"," function(a, f, o) {"," return ArrayProto.every.call(a, f, o);"," } :"," function(a, f, o) {"," for (var i = 0, l = a.length; i < l; ++i) {"," if (i in a && !f.call(o, a[i], i, a)) {"," return false;"," }"," }",""," return true;"," };","","/**","Executes the supplied function on each item in the array and returns a new array","containing all the values returned by the supplied function.","","@example",""," // Convert an array of numbers into an array of strings."," Y.Array.map([1, 2, 3, 4], function (item) {"," return '' + item;"," });"," // => ['1', '2', '3', '4']","","@method map","@param {Array} a the array to iterate.","@param {Function} f the function to execute on each item.","@param {object} [o] Optional context object.","@return {Array} A new array containing the return value of the supplied function"," for each item in the original array.","@static","*/","A.map = L._isNative(ArrayProto.map) ?"," function(a, f, o) {"," return ArrayProto.map.call(a, f, o);"," } :"," function(a, f, o) {"," var i = 0,"," len = a.length,"," results = ArrayProto.concat.call(a);",""," for (; i < len; ++i) {"," if (i in a) {"," results[i] = f.call(o, a[i], i, a);"," }"," }",""," return results;"," };","","","/**","Executes the supplied function on each item in the array, \"folding\" the array","into a single value.","","@method reduce","@param {Array} a Array to iterate.","@param {Any} init Initial value to start with.","@param {Function} f Function to execute on each item. This function should"," update and return the value of the computation. It will receive the following"," arguments:"," @param {Any} f.previousValue Value returned from the previous iteration,"," or the initial value if this is the first iteration."," @param {Any} f.currentValue Value of the current item being iterated."," @param {Number} f.index Index of the current item."," @param {Array} f.array Array being iterated.","@param {Object} [o] Optional context object.","@return {Any} Final result from iteratively applying the given function to each"," element in the array.","@static","*/","A.reduce = L._isNative(ArrayProto.reduce) ?"," function(a, init, f, o) {"," // ES5 Array.reduce doesn't support a thisObject, so we need to"," // implement it manually."," return ArrayProto.reduce.call(a, function(init, item, i, a) {"," return f.call(o, init, item, i, a);"," }, init);"," } :"," function(a, init, f, o) {"," var i = 0,"," len = a.length,"," result = init;",""," for (; i < len; ++i) {"," if (i in a) {"," result = f.call(o, result, a[i], i, a);"," }"," }",""," return result;"," };","","/**","Executes the supplied function on each item in the array, searching for the","first item that matches the supplied function.","","@method find","@param {Array} a the array to search.","@param {Function} f the function to execute on each item. Iteration is stopped"," as soon as this function returns `true`.","@param {Object} [o] Optional context object.","@return {Object} the first item that the supplied function returns `true` for,"," or `null` if it never returns `true`.","@static","*/","A.find = function(a, f, o) {"," for (var i = 0, l = a.length; i < l; i++) {"," if (i in a && f.call(o, a[i], i, a)) {"," return a[i];"," }"," }"," return null;","};","","/**","Iterates over an array, returning a new array of all the elements that match the","supplied regular expression.","","@method grep","@param {Array} a Array to iterate over.","@param {RegExp} pattern Regular expression to test against each item.","@return {Array} All the items in the array that produce a match against the"," supplied regular expression. If no items match, an empty array is returned.","@static","*/","A.grep = function(a, pattern) {"," return A.filter(a, function(item, index) {"," return pattern.test(item);"," });","};","","/**","Partitions an array into two new arrays, one with the items for which the","supplied function returns `true`, and one with the items for which the function","returns `false`.","","@method partition","@param {Array} a Array to iterate over.","@param {Function} f Function to execute for each item in the array. It will"," receive the following arguments:"," @param {Any} f.item Current item."," @param {Number} f.index Index of the current item."," @param {Array} f.array The array being iterated.","@param {Object} [o] Optional execution context.","@return {Object} An object with two properties: `matches` and `rejects`. Each is"," an array containing the items that were selected or rejected by the test"," function (or an empty array if none).","@static","*/","A.partition = function(a, f, o) {"," var results = {"," matches: [],"," rejects: []"," };",""," A.each(a, function(item, index) {"," var set = f.call(o, item, index, a) ? results.matches : results.rejects;"," set.push(item);"," });",""," return results;","};","","/**","Creates an array of arrays by pairing the corresponding elements of two arrays","together into a new array.","","@method zip","@param {Array} a Array to iterate over.","@param {Array} a2 Another array whose values will be paired with values of the"," first array.","@return {Array} An array of arrays formed by pairing each element of the first"," array with an item in the second array having the corresponding index.","@static","*/","A.zip = function(a, a2) {"," var results = [];"," A.each(a, function(item, index) {"," results.push([item, a2[index]]);"," });"," return results;","};","","/**","Flattens an array of nested arrays at any abitrary depth into a single, flat","array.","","@method flatten","@param {Array} a Array with nested arrays to flatten.","@return {Array} An array whose nested arrays have been flattened.","@static","@since 3.7.0","**/","A.flatten = function(a) {"," var result = [],"," i, len, val;",""," // Always return an array."," if (!a) {"," return result;"," }",""," for (i = 0, len = a.length; i < len; ++i) {"," val = a[i];",""," if (L.isArray(val)) {"," // Recusively flattens any nested arrays."," result.push.apply(result, A.flatten(val));"," } else {"," result.push(val);"," }"," }",""," return result;","};","","","}, '@VERSION@', {\"requires\": [\"yui-base\"]});"];
_yuitest_coverage["build/array-extras/array-extras.js"].lines = {"1":0,"10":0,"30":0,"35":0,"39":0,"42":0,"43":0,"46":0,"47":0,"48":0,"49":0,"54":0,"79":0,"80":0,"87":0,"88":0,"92":0,"93":0,"98":0,"99":0,"100":0,"102":0,"103":0,"109":0,"112":0,"127":0,"129":0,"132":0,"137":0,"138":0,"139":0,"141":0,"142":0,"147":0,"162":0,"163":0,"164":0,"180":0,"182":0,"185":0,"186":0,"187":0,"191":0,"214":0,"216":0,"219":0,"223":0,"224":0,"225":0,"229":0,"253":0,"257":0,"258":0,"262":0,"266":0,"267":0,"268":0,"272":0,"288":0,"289":0,"290":0,"291":0,"294":0,"308":0,"309":0,"310":0,"332":0,"333":0,"338":0,"339":0,"340":0,"343":0,"358":0,"359":0,"360":0,"361":0,"363":0,"376":0,"377":0,"381":0,"382":0,"385":0,"386":0,"388":0,"390":0,"392":0,"396":0};
_yuitest_coverage["build/array-extras/array-extras.js"].functions = {"(anonymous 2):31":0,"}:38":0,"unique:79":0,"(anonymous 3):128":0,"}:131":0,"(anonymous 4):163":0,"reject:162":0,"(anonymous 5):181":0,"}:184":0,"(anonymous 6):215":0,"}:218":0,"(anonymous 8):257":0,"(anonymous 7):254":0,"}:261":0,"find:288":0,"(anonymous 9):309":0,"grep:308":0,"(anonymous 10):338":0,"partition:332":0,"(anonymous 11):360":0,"zip:358":0,"flatten:376":0,"(anonymous 1):1":0};
_yuitest_coverage["build/array-extras/array-extras.js"].coveredLines = 87;
@@ -503,7 +503,7 @@ array.
@param {Array} a Array with nested arrays to flatten.
@return {Array} An array whose nested arrays have been flattened.
@static
-@since 3.6.1
+@since 3.7.0
**/
_yuitest_coverline("build/array-extras/array-extras.js", 376);
A.flatten = function(a) {
View
2 build/array-extras/array-extras-debug.js
@@ -371,7 +371,7 @@ array.
@param {Array} a Array with nested arrays to flatten.
@return {Array} An array whose nested arrays have been flattened.
@static
-@since 3.6.1
+@since 3.7.0
**/
A.flatten = function(a) {
var result = [],
View
2 build/array-extras/array-extras-min.js
@@ -1 +1 @@
-YUI.add("array-extras",function(e,d){var b=e.Array,a=e.Lang,c=Array.prototype;b.lastIndexOf=a._isNative(c.lastIndexOf)?function(f,h,g){return g||g===0?f.lastIndexOf(h,g):f.lastIndexOf(h);}:function(g,k,j){var f=g.length,h=f-1;if(j||j===0){h=Math.min(j<0?f+j:j,f);}if(h>-1&&f>0){for(;h>-1;--h){if(h in g&&g[h]===k){return h;}}}return -1;};b.unique=function(m,o){var g=0,l=m.length,h=[],f,p,k,n;outerLoop:for(;g<l;g++){n=m[g];for(f=0,k=h.length;f<k;f++){p=h[f];if(o){if(o.call(m,n,p,g,m)){continue outerLoop;}}else{if(n===p){continue outerLoop;}}}h.push(n);}return h;};b.filter=a._isNative(c.filter)?function(g,h,i){return c.filter.call(g,h,i);}:function(h,m,n){var k=0,g=h.length,j=[],l;for(;k<g;++k){if(k in h){l=h[k];if(m.call(n,l,k,h)){j.push(l);}}}return j;};b.reject=function(g,h,i){return b.filter(g,function(k,j,f){return !h.call(i,k,j,f);});};b.every=a._isNative(c.every)?function(g,h,i){return c.every.call(g,h,i);}:function(h,k,m){for(var j=0,g=h.length;j<g;++j){if(j in h&&!k.call(m,h[j],j,h)){return false;}}return true;};b.map=a._isNative(c.map)?function(g,h,i){return c.map.call(g,h,i);}:function(h,l,m){var k=0,g=h.length,j=c.concat.call(h);for(;k<g;++k){if(k in h){j[k]=l.call(m,h[k],k,h);}}return j;};b.reduce=a._isNative(c.reduce)?function(g,j,h,i){return c.reduce.call(g,function(m,l,k,f){return h.call(i,m,l,k,f);},j);}:function(j,n,l,m){var k=0,h=j.length,g=n;for(;k<h;++k){if(k in j){g=l.call(m,g,j[k],k,j);}}return g;};b.find=function(h,k,m){for(var j=0,g=h.length;j<g;j++){if(j in h&&k.call(m,h[j],j,h)){return h[j];}}return null;};b.grep=function(f,g){return b.filter(f,function(i,h){return g.test(i);});};b.partition=function(g,i,j){var h={matches:[],rejects:[]};b.each(g,function(k,f){var l=i.call(j,k,f,g)?h.matches:h.rejects;l.push(k);});return h;};b.zip=function(g,f){var h=[];b.each(g,function(j,i){h.push([j,f[i]]);});return h;};b.flatten=function(h){var g=[],j,f,k;if(!h){return g;}for(j=0,f=h.length;j<f;++j){k=h[j];if(a.isArray(k)){g.push.apply(g,b.flatten(k));}else{g.push(k);}}return g;};},"@VERSION@",{"requires":["yui-base"]});
+YUI.add("array-extras",function(e,t){var n=e.Array,r=e.Lang,i=Array.prototype;n.lastIndexOf=r._isNative(i.lastIndexOf)?function(e,t,n){return n||n===0?e.lastIndexOf(t,n):e.lastIndexOf(t)}:function(e,t,n){var r=e.length,i=r-1;if(n||n===0)i=Math.min(n<0?r+n:n,r);if(i>-1&&r>0)for(;i>-1;--i)if(i in e&&e[i]===t)return i;return-1},n.unique=function(e,t){var n=0,r=e.length,i=[],s,o,u,a;e:for(;n<r;n++){a=e[n];for(s=0,u=i.length;s<u;s++){o=i[s];if(t){if(t.call(e,a,o,n,e))continue e}else if(a===o)continue e}i.push(a)}return i},n.filter=r._isNative(i.filter)?function(e,t,n){return i.filter.call(e,t,n)}:function(e,t,n){var r=0,i=e.length,s=[],o;for(;r<i;++r)r in e&&(o=e[r],t.call(n,o,r,e)&&s.push(o));return s},n.reject=function(e,t,r){return n.filter(e,function(e,n,i){return!t.call(r,e,n,i)})},n.every=r._isNative(i.every)?function(e,t,n){return i.every.call(e,t,n)}:function(e,t,n){for(var r=0,i=e.length;r<i;++r)if(r in e&&!t.call(n,e[r],r,e))return!1;return!0},n.map=r._isNative(i.map)?function(e,t,n){return i.map.call(e,t,n)}:function(e,t,n){var r=0,s=e.length,o=i.concat.call(e);for(;r<s;++r)r in e&&(o[r]=t.call(n,e[r],r,e));return o},n.reduce=r._isNative(i.reduce)?function(e,t,n,r){return i.reduce.call(e,function(e,t,i,s){return n.call(r,e,t,i,s)},t)}:function(e,t,n,r){var i=0,s=e.length,o=t;for(;i<s;++i)i in e&&(o=n.call(r,o,e[i],i,e));return o},n.find=function(e,t,n){for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r,e))return e[r];return null},n.grep=function(e,t){return n.filter(e,function(e,n){return t.test(e)})},n.partition=function(e,t,r){var i={matches:[],rejects:[]};return n.each(e,function(n,s){var u=t.call(r,n,s,e)?i.matches:i.rejects;u.push(n)}),i},n.zip=function(e,t){var r=[];return n.each(e,function(e,n){r.push([e,t[n]])}),r},n.flatten=function(e){var t=[],i,s,o;if(!e)return t;for(i=0,s=e.length;i<s;++i)o=e[i],r.isArray(o)?t.push.apply(t,n.flatten(o)):t.push(o);return t}},"@VERSION@",{requires:["yui-base"]});
View
2 build/array-extras/array-extras.js
@@ -371,7 +371,7 @@ array.
@param {Array} a Array with nested arrays to flatten.
@return {Array} An array whose nested arrays have been flattened.
@static
-@since 3.6.1
+@since 3.7.0
**/
A.flatten = function(a) {
var result = [],
View
2 build/array-invoke/array-invoke-min.js
@@ -1 +1 @@
-YUI.add("array-invoke",function(b,a){b.Array.invoke=function(c,f){var e=b.Array(arguments,2,true),g=b.Lang.isFunction,d=[];b.Array.each(b.Array(c),function(j,h){if(j&&g(j[f])){d[h]=j[f].apply(j,e);}});return d;};},"@VERSION@",{"requires":["yui-base"]});
+YUI.add("array-invoke",function(e,t){e.Array.invoke=function(t,n){var r=e.Array(arguments,2,!0),i=e.Lang.isFunction,s=[];return e.Array.each(e.Array(t),function(e,t){e&&i(e[n])&&(s[t]=e[n].apply(e,r))}),s}},"@VERSION@",{requires:["yui-base"]});
View
2 build/arraylist-add/arraylist-add-min.js
@@ -1 +1 @@
-YUI.add("arraylist-add",function(b,a){b.mix(b.ArrayList.prototype,{add:function(e,d){var c=this._items;if(b.Lang.isNumber(d)){c.splice(d,0,e);}else{c.push(e);}return this;},remove:function(f,e,c){c=c||this.itemsAreEqual;for(var d=this._items.length-1;d>=0;--d){if(c.call(this,f,this.item(d))){this._items.splice(d,1);if(!e){break;}}}return this;},itemsAreEqual:function(d,c){return d===c;}});},"@VERSION@",{"requires":["arraylist"]});
+YUI.add("arraylist-add",function(e,t){e.mix(e.ArrayList.prototype,{add:function(t,n){var r=this._items;return e.Lang.isNumber(n)?r.splice(n,0,t):r.push(t),this},remove:function(e,t,n){n=n||this.itemsAreEqual;for(var r=this._items.length-1;r>=0;--r)if(n.call(this,e,this.item(r))){this._items.splice(r,1);if(!t)break}return this},itemsAreEqual:function(e,t){return e===t}})},"@VERSION@",{requires:["arraylist"]});
View
2 build/arraylist-filter/arraylist-filter-min.js
@@ -1 +1 @@
-YUI.add("arraylist-filter",function(b,a){b.mix(b.ArrayList.prototype,{filter:function(d){var c=[];b.Array.each(this._items,function(f,e){f=this.item(e);if(d(f)){c.push(f);}},this);return new this.constructor(c);}});},"@VERSION@",{"requires":["arraylist"]});
+YUI.add("arraylist-filter",function(e,t){e.mix(e.ArrayList.prototype,{filter:function(t){var n=[];return e.Array.each(this._items,function(e,r){e=this.item(r),t(e)&&n.push(e)},this),new this.constructor(n)}})},"@VERSION@",{requires:["arraylist"]});
View
2 build/arraylist/arraylist-min.js
@@ -1 +1 @@
-YUI.add("arraylist",function(f,e){var d=f.Array,c=d.each,a;function b(g){if(g!==undefined){this._items=f.Lang.isArray(g)?g:d(g);}else{this._items=this._items||[];}}a={item:function(g){return this._items[g];},each:function(h,g){c(this._items,function(k,j){k=this.item(j);h.call(g||k,k,j,this);},this);return this;},some:function(h,g){return d.some(this._items,function(k,j){k=this.item(j);return h.call(g||k,k,j,this);},this);},indexOf:function(g){return d.indexOf(this._items,g);},size:function(){return this._items.length;},isEmpty:function(){return !this.size();},toJSON:function(){return this._items;}};a._item=a.item;f.mix(b.prototype,a);f.mix(b,{addMethod:function(g,h){h=d(h);c(h,function(i){g[i]=function(){var k=d(arguments,0,true),j=[];c(this._items,function(n,m){n=this._item(m);var l=n[i].apply(n,k);if(l!==undefined&&l!==n){j[m]=l;}},this);return j.length?j:this;};});}});f.ArrayList=b;},"@VERSION@",{"requires":["yui-base"]});
+YUI.add("arraylist",function(e,t){function s(t){t!==undefined?this._items=e.Lang.isArray(t)?t:n(t):this._items=this._items||[]}var n=e.Array,r=n.each,i;i={item:function(e){return this._items[e]},each:function(e,t){return r(this._items,function(n,r){n=this.item(r),e.call(t||n,n,r,this)},this),this},some:function(e,t){return n.some(this._items,function(n,r){return n=this.item(r),e.call(t||n,n,r,this)},this)},indexOf:function(e){return n.indexOf(this._items,e)},size:function(){return this._items.length},isEmpty:function(){return!this.size()},toJSON:function(){return this._items}},i._item=i.item,e.mix(s.prototype,i),e.mix(s,{addMethod:function(e,t){t=n(t),r(t,function(t){e[t]=function(){var e=n(arguments,0,!0),i=[];return r(this._items,function(n,r){n=this._item(r);var s=n[t].apply(n,e);s!==undefined&&s!==n&&(i[r]=s)},this),i.length?i:this}})}}),e.ArrayList=s},"@VERSION@",{requires:["yui-base"]});
View
2 build/arraysort/arraysort-min.js
@@ -1 +1 @@
-YUI.add("arraysort",function(d,c){var b=d.Lang,a=b.isValue,e=b.isString;d.ArraySort={compare:function(g,f,h){if(!a(g)){if(!a(f)){return 0;}else{return 1;}}else{if(!a(f)){return -1;}}if(e(g)){g=g.toLowerCase();}if(e(f)){f=f.toLowerCase();}if(g<f){return(h)?1:-1;}else{if(g>f){return(h)?-1:1;}else{return 0;}}}};},"@VERSION@",{"requires":["yui-base"]});
+YUI.add("arraysort",function(e,t){var n=e.Lang,r=n.isValue,i=n.isString;e.ArraySort={compare:function(e,t,n){return r(e)?r(t)?(i(e)&&(e=e.toLowerCase()),i(t)&&(t=t.toLowerCase()),e<t?n?1:-1:e>t?n?-1:1:0):-1:r(t)?1:0}}},"@VERSION@",{requires:["yui-base"]});
View
2 build/async-queue/async-queue-min.js
@@ -1 +1 @@
-YUI.add("async-queue",function(a,i){a.AsyncQueue=function(){this._init();this.add.apply(this,arguments);};var d=a.AsyncQueue,b="execute",g="shift",f="promote",e="remove",h=a.Lang.isObject,c=a.Lang.isFunction;d.defaults=a.mix({autoContinue:true,iterations:1,timeout:10,until:function(){this.iterations|=0;return this.iterations<=0;}},a.config.queueDefaults||{});a.extend(d,a.EventTarget,{_running:false,_init:function(){a.EventTarget.call(this,{prefix:"queue",emitFacade:true});this._q=[];this.defaults={};this._initEvents();},_initEvents:function(){this.publish({"execute":{defaultFn:this._defExecFn,emitFacade:true},"shift":{defaultFn:this._defShiftFn,emitFacade:true},"add":{defaultFn:this._defAddFn,emitFacade:true},"promote":{defaultFn:this._defPromoteFn,emitFacade:true},"remove":{defaultFn:this._defRemoveFn,emitFacade:true}});},next:function(){var j;while(this._q.length){j=this._q[0]=this._prepare(this._q[0]);if(j&&j.until()){this.fire(g,{callback:j});j=null;}else{break;}}return j||null;},_defShiftFn:function(j){if(this.indexOf(j.callback)===0){this._q.shift();}},_prepare:function(l){if(c(l)&&l._prepared){return l;}var j=a.merge(d.defaults,{context:this,args:[],_prepared:true},this.defaults,(c(l)?{fn:l}:l)),k=a.bind(function(){if(!k._running){k.iterations--;}if(c(k.fn)){k.fn.apply(k.context||a,a.Array(k.args));}},this);return a.mix(k,j);},run:function(){var k,j=true;for(k=this.next();j&&k&&!this.isRunning();k=this.next()){j=(k.timeout<0)?this._execute(k):this._schedule(k);}if(!k){this.fire("complete");}return this;},_execute:function(k){this._running=k._running=true;k.iterations--;this.fire(b,{callback:k});var j=this._running&&k.autoContinue;this._running=k._running=false;return j;},_schedule:function(j){this._running=a.later(j.timeout,this,function(){if(this._execute(j)){this.run();}});return false;},isRunning:function(){return !!this._running;},_defExecFn:function(j){j.callback();},add:function(){this.fire("add",{callbacks:a.Array(arguments,0,true)});return this;},_defAddFn:function(k){var l=this._q,j=[];a.Array.each(k.callbacks,function(m){if(h(m)){l.push(m);j.push(m);}});k.added=j;},pause:function(){if(h(this._running)){this._running.cancel();}this._running=false;return this;},stop:function(){this._q=[];return this.pause();},indexOf:function(m){var k=0,j=this._q.length,l;for(;k<j;++k){l=this._q[k];if(l===m||l.id===m){return k;}}return -1;},getCallback:function(k){var j=this.indexOf(k);return(j>-1)?this._q[j]:null;},promote:function(l){var k={callback:l},j;if(this.isRunning()){j=this.after(g,function(){this.fire(f,k);j.detach();},this);}else{this.fire(f,k);}return this;},_defPromoteFn:function(l){var j=this.indexOf(l.callback),k=(j>-1)?this._q.splice(j,1)[0]:null;l.promoted=k;if(k){this._q.unshift(k);}},remove:function(l){var k={callback:l},j;if(this.isRunning()){j=this.after(g,function(){this.fire(e,k);j.detach();},this);}else{this.fire(e,k);}return this;},_defRemoveFn:function(k){var j=this.indexOf(k.callback);k.removed=(j>-1)?this._q.splice(j,1)[0]:null;},size:function(){if(!this.isRunning()){this.next();}return this._q.length;}});},"@VERSION@",{"requires":["event-custom"]});
+YUI.add("async-queue",function(e,t){e.AsyncQueue=function(){this._init(),this.add.apply(this,arguments)};var n=e.AsyncQueue,r="execute",i="shift",s="promote",o="remove",u=e.Lang.isObject,a=e.Lang.isFunction;n.defaults=e.mix({autoContinue:!0,iterations:1,timeout:10,until:function(){return this.iterations|=0,this.iterations<=0}},e.config.queueDefaults||{}),e.extend(n,e.EventTarget,{_running:!1,_init:function(){e.EventTarget.call(this,{prefix:"queue",emitFacade:!0}),this._q=[],this.defaults={},this._initEvents()},_initEvents:function(){this.publish({execute:{defaultFn:this._defExecFn,emitFacade:!0},shift:{defaultFn:this._defShiftFn,emitFacade:!0},add:{defaultFn:this._defAddFn,emitFacade:!0},promote:{defaultFn:this._defPromoteFn,emitFacade:!0},remove:{defaultFn:this._defRemoveFn,emitFacade:!0}})},next:function(){var e;while(this._q.length){e=this._q[0]=this._prepare(this._q[0]);if(!e||!e.until())break;this.fire(i,{callback:e}),e=null}return e||null},_defShiftFn:function(e){this.indexOf(e.callback)===0&&this._q.shift()},_prepare:function(t){if(a(t)&&t._prepared)return t;var r=e.merge(n.defaults,{context:this,args:[],_prepared:!0},this.defaults,a(t)?{fn:t}:t),i=e.bind(function(){i._running||i.iterations--,a(i.fn)&&i.fn.apply(i.context||e,e.Array(i.args))},this);return e.mix(i,r)},run:function(){var e,t=!0;for(e=this.next();t&&e&&!this.isRunning();e=this.next())t=e.timeout<0?this._execute(e):this._schedule(e);return e||this.fire("complete"),this},_execute:function(e){this._running=e._running=!0,e.iterations--,this.fire(r,{callback:e});var t=this._running&&e.autoContinue;return this._running=e._running=!1,t},_schedule:function(t){return this._running=e.later(t.timeout,this,function(){this._execute(t)&&this.run()}),!1},isRunning:function(){return!!this._running},_defExecFn:function(e){e.callback()},add:function(){return this.fire("add",{callbacks:e.Array(arguments,0,!0)}),this},_defAddFn:function(t){var n=this._q,r=[];e.Array.each(t.callbacks,function(e){u(e)&&(n.push(e),r.push(e))}),t.added=r},pause:function(){return u(this._running)&&this._running.cancel(),this._running=!1,this},stop:function(){return this._q=[],this.pause()},indexOf:function(e){var t=0,n=this._q.length,r;for(;t<n;++t){r=this._q[t];if(r===e||r.id===e)return t}return-1},getCallback:function(e){var t=this.indexOf(e);return t>-1?this._q[t]:null},promote:function(e){var t={callback:e},n;return this.isRunning()?n=this.after(i,function(){this.fire(s,t),n.detach()},this):this.fire(s,t),this},_defPromoteFn:function(e){var t=this.indexOf(e.callback),n=t>-1?this._q.splice(t,1)[0]:null;e.promoted=n,n&&this._q.unshift(n)},remove:function(e){var t={callback:e},n;return this.isRunning()?n=this.after(i,function(){this.fire(o,t),n.detach()},this):this.fire(o,t),this},_defRemoveFn:function(e){var t=this.indexOf(e.callback);e.removed=t>-1?this._q.splice(t,1)[0]:null},size:function(){return this.isRunning()||this.next(),this._q.length}})},"@VERSION@",{requires:["event-custom"]});
View
2 build/attribute-base/attribute-base-min.js
@@ -1 +1 @@
-YUI.add("attribute-base",function(e,t){var n=function(){this._ATTR_E_FACADE=null,this._yuievt=null,e.AttributeCore.apply(this,arguments),e.AttributeEvents.apply(this,arguments),e.AttributeExtras.apply(this,arguments)};e.mix(n,e.AttributeCore,!1,null,1),e.mix(n,e.AttributeExtras,!1,null,1),e.mix(n,e.AttributeEvents,!0,null,1),n.INVALID_VALUE=e.AttributeCore.INVALID_VALUE,n._ATTR_CFG=e.AttributeCore._ATTR_CFG.concat(e.AttributeEvents._ATTR_CFG),e.Attribute=n},"@VERSION@",{requires:["attribute-core","attribute-events","attribute-extras"]})
+YUI.add("attribute-base",function(e,t){var n=function(){this._ATTR_E_FACADE=null,this._yuievt=null,e.AttributeCore.apply(this,arguments),e.AttributeEvents.apply(this,arguments),e.AttributeExtras.apply(this,arguments)};e.mix(n,e.AttributeCore,!1,null,1),e.mix(n,e.AttributeExtras,!1,null,1),e.mix(n,e.AttributeEvents,!0,null,1),n.INVALID_VALUE=e.AttributeCore.INVALID_VALUE,n._ATTR_CFG=e.AttributeCore._ATTR_CFG.concat(e.AttributeEvents._ATTR_CFG),e.Attribute=n},"@VERSION@",{requires:["attribute-core","attribute-events","attribute-extras"]});
View
2 build/attribute-complex/attribute-complex-min.js
@@ -1 +1 @@
-YUI.add("attribute-complex",function(e,t){var n=e.Object,r=".";e.Attribute.Complex=function(){},e.Attribute.Complex.prototype={_normAttrVals:function(e){var t={},n={},i,s,o,u;if(e){for(u in e)e.hasOwnProperty(u)&&(u.indexOf(r)!==-1?(i=u.split(r),s=i.shift(),o=n[s]=n[s]||[],o[o.length]={path:i,value:e[u]}):t[u]=e[u]);return{simple:t,complex:n}}return null},_getAttrInitVal:function(e,t,r){var i=t.value,s=t.valueFn,o,u=!1,a,f,l,c,h,p,d;!t.readOnly&&r&&(a=r.simple,a&&a.hasOwnProperty(e)&&(i=a[e],u=!0)),s&&!u&&(s.call||(s=this[s]),s&&(o=s.call(this,e),i=o));if(!t.readOnly&&r){f=r.complex;if(f&&f.hasOwnProperty(e)&&i!==undefined&&i!==null){d=f[e];for(l=0,c=d.length;l<c;++l)h=d[l].path,p=d[l].value,n.setValue(i,h,p)}}return i}},e.mix(e.Attribute,e.Attribute.Complex,!0,null,1),e.AttributeComplex=e.Attribute.Complex},"@VERSION@",{requires:["attribute-base"]})
+YUI.add("attribute-complex",function(e,t){var n=e.Object,r=".";e.Attribute.Complex=function(){},e.Attribute.Complex.prototype={_normAttrVals:function(e){var t={},n={},i,s,o,u;if(e){for(u in e)e.hasOwnProperty(u)&&(u.indexOf(r)!==-1?(i=u.split(r),s=i.shift(),o=n[s]=n[s]||[],o[o.length]={path:i,value:e[u]}):t[u]=e[u]);return{simple:t,complex:n}}return null},_getAttrInitVal:function(e,t,r){var i=t.value,s=t.valueFn,o,u=!1,a,f,l,c,h,p,d;!t.readOnly&&r&&(a=r.simple,a&&a.hasOwnProperty(e)&&(i=a[e],u=!0)),s&&!u&&(s.call||(s=this[s]),s&&(o=s.call(this,e),i=o));if(!t.readOnly&&r){f=r.complex;if(f&&f.hasOwnProperty(e)&&i!==undefined&&i!==null){d=f[e];for(l=0,c=d.length;l<c;++l)h=d[l].path,p=d[l].value,n.setValue(i,h,p)}}return i}},e.mix(e.Attribute,e.Attribute.Complex,!0,null,1),e.AttributeComplex=e.Attribute.Complex},"@VERSION@",{requires:["attribute-base"]});
View
2 build/attribute-core/attribute-core-min.js
@@ -1 +1 @@
-YUI.add("attribute-core",function(e,t){function E(e,t,n){this._initAttrHost(e,t,n)}e.State=function(){this.data={}},e.State.prototype={add:function(e,t,n){var r=this.data[e];r||(r=this.data[e]={}),r[t]=n},addAll:function(e,t){var n=this.data[e],r;n||(n=this.data[e]={});for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r])},remove:function(e,t){var n=this.data[e];n&&delete n[t]},removeAll:function(t,n){var r;n?e.each(n,function(e,n){this.remove(t,typeof n=="string"?n:e)},this):(r=this.data,t in r&&delete r[t])},get:function(e,t){var n=this.data[e];if(n)return n[t]},getAll:function(e,t){var n=this.data[e],r,i;if(t)i=n;else if(n){i={};for(r in n)n.hasOwnProperty(r)&&(i[r]=n[r])}return i}};var n=e.Object,r=e.Lang,i=".",s="getter",o="setter",u="readOnly",a="writeOnce",f="initOnly",l="validator",c="value",h="valueFn",p="lazyAdd",d="added",v="_bypassProxy",m="initializing",g="initValue",y="lazy",b="isLazyAdd",w;E.INVALID_VALUE={},w=E.INVALID_VALUE,E._ATTR_CFG=[o,s,l,c,h,a,u,p,v],E.prototype={_initAttrHost:function(t,n,r){this._state=new e.State,this._initAttrs(t,n,r)},addAttr:function(e,t,n){var r=this,i=r._state,s,o;t=t||{},n=p in t?t[p]:n;if(n&&!r.attrAdded(e))i.addAll(e,{lazy:t,added:!0});else if(!r.attrAdded(e)||i.get(e,b))o=c in t,o&&(s=t.value,delete t.value),t.added=!0,t.initializing=!0,i.addAll(e,t),o&&r.set(e,s),i.remove(e,m);return r},attrAdded:function(e){return!!this._state.get(e,d)},get:function(e){return this._getAttr(e)},_isLazyAttr:function(e){return this._state.get(e,y)},_addLazyAttr:function(e,t){var n=this._state,r=n.get(e,y);n.add(e,b,!0),n.remove(e,y),this.addAttr(e,r)},set:function(e,t){return this._setAttr(e,t)},_set:function(e,t){return this._setAttr(e,t,null,!0)},_setAttr:function(t,r,s,o){var u=!0,a=this._state,l=this._stateProxy,h,p,d,v,m,g,y;return t.indexOf(i)!==-1&&(d=t,v=t.split(i),t=v.shift()),this._isLazyAttr(t)&&this._addLazyAttr(t),h=a.getAll(t,!0)||{},p=!(c in h),l&&t in l&&!h._bypassProxy&&(p=!1),g=h.writeOnce,y=h.initializing,!p&&!o&&(g&&(u=!1),h.readOnly&&(u=!1)),!y&&!o&&g===f&&(u=!1),u&&(p||(m=this.get(t)),v&&(r=n.setValue(e.clone(m),v,r),r===undefined&&(u=!1)),u&&(!this._fireAttrChange||y?this._setAttrVal(t,d,m,r):this._fireAttrChange(t,d,m,r,s))),this},_getAttr:function(e){var t=this,r=e,o=t._state,u,a,f,l;return e.indexOf(i)!==-1&&(u=e.split(i),e=u.shift()),t._tCfgs&&t._tCfgs[e]&&(l={},l[e]=t._tCfgs[e],delete t._tCfgs[e],t._addAttrs(l,t._tVals)),t._isLazyAttr(e)&&t._addLazyAttr(e),f=t._getStateVal(e),a=o.get(e,s),a&&!a.call&&(a=this[a]),f=a?a.call(t,f,r):f,f=u?n.getValue(f,u):f,f},_getStateVal:function(e){var t=this._stateProxy;return t&&e in t&&!this._state.get(e,v)?t[e]:this._state.get(e,c)},_setStateVal:function(e,t){var n=this._stateProxy;n&&e in n&&!this._state.get(e,v)?n[e]=t:this._state.add(e,c,t)},_setAttrVal:function(e,t,n,i){var s=this,o=!0,u=this._state.getAll(e,!0)||{},a=u.validator,f=u.setter,l=u.initializing,c=this._getStateVal(e),h=t||e,p,d;return a&&(a.call||(a=this[a]),a&&(d=a.call(s,i,h),!d&&l&&(i=u.defaultValue,d=!0))),!a||d?(f&&(f.call||(f=this[f]),f&&(p=f.call(s,i,h),p===w?o=!1:p!==undefined&&(i=p))),o&&(!t&&i===c&&!r.isObject(i)?o=!1:(g in u||(u.initValue=i),s._setStateVal(e,i)))):o=!1,o},setAttrs:function(e){return this._setAttrs(e)},_setAttrs:function(e){var t;for(t in e)e.hasOwnProperty(t)&&this.set(t,e[t]);return this},getAttrs:function(e){return this._getAttrs(e)},_getAttrs:function(e){var t={},r,i,s,o=e===!0;if(!e||o)e=n.keys(this._state.data);for(i=0,s=e.length;i<s;i++){r=e[i];if(!o||this._getStateVal(r)!=this._state.get(r,g))t[r]=this.get(r)}return t},addAttrs:function(e,t,n){var r=this;return e&&(r._tCfgs=e,r._tVals=r._normAttrVals(t),r._addAttrs(e,r._tVals,n),r._tCfgs=r._tVals=null),r},_addAttrs:function(e,t,n){var r=this,i,s,o;for(i in e)e.hasOwnProperty(i)&&(s=e[i],s.defaultValue=s.value,o=r._getAttrInitVal(i,s,r._tVals),o!==undefined&&(s.value=o),r._tCfgs[i]&&delete r._tCfgs[i],r.addAttr(i,s,n))},_protectAttrs:function(t){if(t){t=e.merge(t);for(var n in t)t.hasOwnProperty(n)&&(t[n]=e.merge(t[n]))}return t},_normAttrVals:function(t){return t?e.merge(t):null},_getAttrInitVal:function(e,t,n){var r,i;return!t.readOnly&&n&&n.hasOwnProperty(e)?r=n[e]:(r=t.value,i=t.valueFn,i&&(i.call||(i=this[i]),i&&(r=i.call(this,e)))),r},_initAttrs:function(t,n,r){t=t||this.constructor.ATTRS;var i=e.Base,s=e.BaseCore,o=i&&e.instanceOf(this,i),u=!o&&s&&e.instanceOf(this,s);t&&!o&&!u&&this.addAttrs(this._protectAttrs(t),n,r)}},e.AttributeCore=E},"@VERSION@",{requires:["oop"]})
+YUI.add("attribute-core",function(e,t){function E(e,t,n){this._initAttrHost(e,t,n)}e.State=function(){this.data={}},e.State.prototype={add:function(e,t,n){var r=this.data[e];r||(r=this.data[e]={}),r[t]=n},addAll:function(e,t){var n=this.data[e],r;n||(n=this.data[e]={});for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r])},remove:function(e,t){var n=this.data[e];n&&delete n[t]},removeAll:function(t,n){var r;n?e.each(n,function(e,n){this.remove(t,typeof n=="string"?n:e)},this):(r=this.data,t in r&&delete r[t])},get:function(e,t){var n=this.data[e];if(n)return n[t]},getAll:function(e,t){var n=this.data[e],r,i;if(t)i=n;else if(n){i={};for(r in n)n.hasOwnProperty(r)&&(i[r]=n[r])}return i}};var n=e.Object,r=e.Lang,i=".",s="getter",o="setter",u="readOnly",a="writeOnce",f="initOnly",l="validator",c="value",h="valueFn",p="lazyAdd",d="added",v="_bypassProxy",m="initializing",g="initValue",y="lazy",b="isLazyAdd",w;E.INVALID_VALUE={},w=E.INVALID_VALUE,E._ATTR_CFG=[o,s,l,c,h,a,u,p,v],E.prototype={_initAttrHost:function(t,n,r){this._state=new e.State,this._initAttrs(t,n,r)},addAttr:function(e,t,n){var r=this,i=r._state,s,o;t=t||{},n=p in t?t[p]:n;if(n&&!r.attrAdded(e))i.addAll(e,{lazy:t,added:!0});else if(!r.attrAdded(e)||i.get(e,b))o=c in t,o&&(s=t.value,delete t.value),t.added=!0,t.initializing=!0,i.addAll(e,t),o&&r.set(e,s),i.remove(e,m);return r},attrAdded:function(e){return!!this._state.get(e,d)},get:function(e){return this._getAttr(e)},_isLazyAttr:function(e){return this._state.get(e,y)},_addLazyAttr:function(e,t){var n=this._state,r=n.get(e,y);n.add(e,b,!0),n.remove(e,y),this.addAttr(e,r)},set:function(e,t){return this._setAttr(e,t)},_set:function(e,t){return this._setAttr(e,t,null,!0)},_setAttr:function(t,r,s,o){var u=!0,a=this._state,l=this._stateProxy,h,p,d,v,m,g,y;return t.indexOf(i)!==-1&&(d=t,v=t.split(i),t=v.shift()),this._isLazyAttr(t)&&this._addLazyAttr(t),h=a.getAll(t,!0)||{},p=!(c in h),l&&t in l&&!h._bypassProxy&&(p=!1),g=h.writeOnce,y=h.initializing,!p&&!o&&(g&&(u=!1),h.readOnly&&(u=!1)),!y&&!o&&g===f&&(u=!1),u&&(p||(m=this.get(t)),v&&(r=n.setValue(e.clone(m),v,r),r===undefined&&(u=!1)),u&&(!this._fireAttrChange||y?this._setAttrVal(t,d,m,r):this._fireAttrChange(t,d,m,r,s))),this},_getAttr:function(e){var t=this,r=e,o=t._state,u,a,f,l;return e.indexOf(i)!==-1&&(u=e.split(i),e=u.shift()),t._tCfgs&&t._tCfgs[e]&&(l={},l[e]=t._tCfgs[e],delete t._tCfgs[e],t._addAttrs(l,t._tVals)),t._isLazyAttr(e)&&t._addLazyAttr(e),f=t._getStateVal(e),a=o.get(e,s),a&&!a.call&&(a=this[a]),f=a?a.call(t,f,r):f,f=u?n.getValue(f,u):f,f},_getStateVal:function(e){var t=this._stateProxy;return t&&e in t&&!this._state.get(e,v)?t[e]:this._state.get(e,c)},_setStateVal:function(e,t){var n=this._stateProxy;n&&e in n&&!this._state.get(e,v)?n[e]=t:this._state.add(e,c,t)},_setAttrVal:function(e,t,n,i){var s=this,o=!0,u=this._state.getAll(e,!0)||{},a=u.validator,f=u.setter,l=u.initializing,c=this._getStateVal(e),h=t||e,p,d;return a&&(a.call||(a=this[a]),a&&(d=a.call(s,i,h),!d&&l&&(i=u.defaultValue,d=!0))),!a||d?(f&&(f.call||(f=this[f]),f&&(p=f.call(s,i,h),p===w?o=!1:p!==undefined&&(i=p))),o&&(!t&&i===c&&!r.isObject(i)?o=!1:(g in u||(u.initValue=i),s._setStateVal(e,i)))):o=!1,o},setAttrs:function(e){return this._setAttrs(e)},_setAttrs:function(e){var t;for(t in e)e.hasOwnProperty(t)&&this.set(t,e[t]);return this},getAttrs:function(e){return this._getAttrs(e)},_getAttrs:function(e){var t={},r,i,s,o=e===!0;if(!e||o)e=n.keys(this._state.data);for(i=0,s=e.length;i<s;i++){r=e[i];if(!o||this._getStateVal(r)!=this._state.get(r,g))t[r]=this.get(r)}return t},addAttrs:function(e,t,n){var r=this;return e&&(r._tCfgs=e,r._tVals=r._normAttrVals(t),r._addAttrs(e,r._tVals,n),r._tCfgs=r._tVals=null),r},_addAttrs:function(e,t,n){var r=this,i,s,o;for(i in e)e.hasOwnProperty(i)&&(s=e[i],s.defaultValue=s.value,o=r._getAttrInitVal(i,s,r._tVals),o!==undefined&&(s.value=o),r._tCfgs[i]&&delete r._tCfgs[i],r.addAttr(i,s,n))},_protectAttrs:function(t){if(t){t=e.merge(t);for(var n in t)t.hasOwnProperty(n)&&(t[n]=e.merge(t[n]))}return t},_normAttrVals:function(t){return t?e.merge(t):null},_getAttrInitVal:function(e,t,n){var r,i;return!t.readOnly&&n&&n.hasOwnProperty(e)?r=n[e]:(r=t.value,i=t.valueFn,i&&(i.call||(i=this[i]),i&&(r=i.call(this,e)))),r},_initAttrs:function(t,n,r){t=t||this.constructor.ATTRS;var i=e.Base,s=e.BaseCore,o=i&&e.instanceOf(this,i),u=!o&&s&&e.instanceOf(this,s);t&&!o&&!u&&this.addAttrs(this._protectAttrs(t),n,r)}},e.AttributeCore=E},"@VERSION@",{requires:["oop"]});
View
2 build/attribute-events/attribute-events-min.js
@@ -1 +1 @@
-YUI.add("attribute-events",function(e,t){function o(){this._ATTR_E_FACADE={},n.call(this,{emitFacade:!0})}var n=e.EventTarget,r="Change",i="broadcast",s="published";o._ATTR_CFG=[i],o.prototype={set:function(e,t,n){return this._setAttr(e,t,n)},_set:function(e,t,n){return this._setAttr(e,t,n,!0)},setAttrs:function(e,t){return this._setAttrs(e,t)},_setAttrs:function(e,t){var n;for(n in e)e.hasOwnProperty(n)&&this.set(n,e[n],t);return this},_fireAttrChange:function(t,n,o,u,a){var f=this,l=t+r,c=f._state,h,p,d;c.get(t,s)||(d={queuable:!1,defaultTargetOnly:!0,defaultFn:f._defAttrChangeFn,silent:!0},p=c.get(t,i),p!==undefined&&(d.broadcast=p),f.publish(l,d),c.add(t,s,!0)),h=a?e.merge(a):f._ATTR_E_FACADE,h.attrName=t,h.subAttrName=n,h.prevVal=o,h.newVal=u,f.fire(l,h)},_defAttrChangeFn:function(e){this._setAttrVal(e.attrName,e.subAttrName,e.prevVal,e.newVal)?e.newVal=this.get(e.attrName):e.stopImmediatePropagation()}},e.mix(o,n,!1,null,1),e.AttributeEvents=o},"@VERSION@",{requires:["event-custom"]})
+YUI.add("attribute-events",function(e,t){function o(){this._ATTR_E_FACADE={},n.call(this,{emitFacade:!0})}var n=e.EventTarget,r="Change",i="broadcast",s="published";o._ATTR_CFG=[i],o.prototype={set:function(e,t,n){return this._setAttr(e,t,n)},_set:function(e,t,n){return this._setAttr(e,t,n,!0)},setAttrs:function(e,t){return this._setAttrs(e,t)},_setAttrs:function(e,t){var n;for(n in e)e.hasOwnProperty(n)&&this.set(n,e[n],t);return this},_fireAttrChange:function(t,n,o,u,a){var f=this,l=t+r,c=f._state,h,p,d;c.get(t,s)||(d={queuable:!1,defaultTargetOnly:!0,defaultFn:f._defAttrChangeFn,silent:!0},p=c.get(t,i),p!==undefined&&(d.broadcast=p),f.publish(l,d),c.add(t,s,!0)),h=a?e.merge(a):f._ATTR_E_FACADE,h.attrName=t,h.subAttrName=n,h.prevVal=o,h.newVal=u,f.fire(l,h)},_defAttrChangeFn:function(e){this._setAttrVal(e.attrName,e.subAttrName,e.prevVal,e.newVal)?e.newVal=this.get(e.attrName):e.stopImmediatePropagation()}},e.mix(o,n,!1,null,1),e.AttributeEvents=o},"@VERSION@",{requires:["event-custom"]});
View
2 build/attribute-extras/attribute-extras-min.js
@@ -1 +1 @@
-YUI.add("attribute-extras",function(e,t){function o(){}var n="broadcast",r="published",i="initValue",s={readOnly:1,writeOnce:1,getter:1,broadcast:1};o.prototype={modifyAttr:function(e,t){var i=this,o,u;if(i.attrAdded(e)){i._isLazyAttr(e)&&i._addLazyAttr(e),u=i._state;for(o in t)s[o]&&t.hasOwnProperty(o)&&(u.add(e,o,t[o]),o===n&&u.remove(e,r))}},removeAttr:function(e){this._state.removeAll(e)},reset:function(t){var n=this;return t?(n._isLazyAttr(t)&&n._addLazyAttr(t),n.set(t,n._state.get(t,i))):e.each(n._state.data,function(e,t){n.reset(t)}),n},_getAttrCfg:function(t){var n,r=this._state;return t?n=r.getAll(t)||{}:(n={},e.each(r.data,function(e,t){n[t]=r.getAll(t)})),n}},e.AttributeExtras=o},"@VERSION@",{requires:["oop"]})
+YUI.add("attribute-extras",function(e,t){function o(){}var n="broadcast",r="published",i="initValue",s={readOnly:1,writeOnce:1,getter:1,broadcast:1};o.prototype={modifyAttr:function(e,t){var i=this,o,u;if(i.attrAdded(e)){i._isLazyAttr(e)&&i._addLazyAttr(e),u=i._state;for(o in t)s[o]&&t.hasOwnProperty(o)&&(u.add(e,o,t[o]),o===n&&u.remove(e,r))}},removeAttr:function(e){this._state.removeAll(e)},reset:function(t){var n=this;return t?(n._isLazyAttr(t)&&n._addLazyAttr(t),n.set(t,n._state.get(t,i))):e.each(n._state.data,function(e,t){n.reset(t)}),n},_getAttrCfg:function(t){var n,r=this._state;return t?n=r.getAll(t)||{}:(n={},e.each(r.data,function(e,t){n[t]=r.getAll(t)})),n}},e.AttributeExtras=o},"@VERSION@",{requires:["oop"]});
View
3 build/autocomplete-base/autocomplete-base-min.js
@@ -1,2 +1 @@
-YUI.add("autocomplete-base",function(f,n){var g=f.Escape,j=f.Lang,r=f.Array,i=f.Object,d=j.isFunction,s=j.isString,v=j.trim,m=f.Attribute.INVALID_VALUE,p="_functionValidator",y="_sourceSuccess",c="allowBrowserAutocomplete",h="inputNode",x="query",e="queryDelimiter",b="requestTemplate",l="results",o="resultListLocator",k="value",t="valueChange",a="clear",u=x,q=l;function w(){}w.prototype={initializer:function(){f.before(this._bindUIACBase,this,"bindUI");f.before(this._syncUIACBase,this,"syncUI");this.publish(a,{defaultFn:this._defClearFn});this.publish(u,{defaultFn:this._defQueryFn});this.publish(q,{defaultFn:this._defResultsFn});},destructor:function(){this._acBaseEvents&&this._acBaseEvents.detach();delete this._acBaseEvents;delete this._cache;delete this._inputNode;delete this._rawSource;},clearCache:function(){this._cache&&(this._cache={});return this;},sendRequest:function(B,C){var z,A=this.get("source");if(B||B===""){this._set(x,B);}else{B=this.get(x)||"";}if(A){if(!C){C=this.get(b);}z=C?C.call(this,B):B;A.sendRequest({query:B,request:z,callback:{success:f.bind(this._onResponse,this,B)}});}return this;},_bindUIACBase:function(){var A=this.get(h),z=A&&A.tokenInput;if(z){A=z.get(h);this._set("tokenInput",z);}if(!A){f.error("No inputNode specified.");return;}this._inputNode=A;this._acBaseEvents=new f.EventHandle([A.on(t,this._onInputValueChange,this),A.on("blur",this._onInputBlur,this),this.after(c+"Change",this._syncBrowserAutocomplete),this.after("sourceTypeChange",this._afterSourceTypeChange),this.after(t,this._afterValueChange)]);},_syncUIACBase:function(){this._syncBrowserAutocomplete();this.set(k,this.get(h).get(k));},_createArraySource:function(A){var z=this;return{type:"array",sendRequest:function(B){z[y](A.concat(),B);}};},_createFunctionSource:function(A){var z=this;return{type:"function",sendRequest:function(B){var C;function D(E){z[y](E||[],B);}if((C=A(B.query,D))){D(C);}}};},_createObjectSource:function(A){var z=this;return{type:"object",sendRequest:function(B){var C=B.query;z[y](i.owns(A,C)?A[C]:[],B);}};},_functionValidator:function(z){return z===null||d(z);},_getObjectValue:function(C,B){if(!C){return;}for(var A=0,z=B.length;C&&A<z;A++){C=C[B[A]];}return C;},_parseResponse:function(B,z,Q){var H={data:Q,query:B,results:[]},J=this.get(o),I=[],G=z&&z.results,D,A,K,C,P,L,M,N,E,F,O;if(G&&J){G=J.call(this,G);}if(G&&G.length){D=this.get("resultFilters");O=this.get("resultTextLocator");for(L=0,M=G.length;L<M;++L){E=G[L];F=O?O.call(this,E):E.toString();I.push({display:g.html(F),raw:E,text:F});}for(L=0,M=D.length;L<M;++L){I=D[L].call(this,B,I.concat());if(!I){return;}if(!I.length){break;}}if(I.length){K=this.get("resultFormatter");P=this.get("resultHighlighter");N=this.get("maxResults");if(N&&N>0&&I.length>N){I.length=N;}if(P){C=P.call(this,B,I.concat());if(!C){return;}for(L=0,M=C.length;L<M;++L){E=I[L];E.highlighted=C[L];E.display=E.highlighted;}}if(K){A=K.call(this,B,I.concat());if(!A){return;}for(L=0,M=A.length;L<M;++L){I[L].display=A[L];}}}}H.results=I;this.fire(q,H);},_parseValue:function(z){var A=this.get(e);if(A){z=z.split(A);z=z[z.length-1];}return j.trimLeft(z);},_setEnableCache:function(z){this._cache=z?{}:null;},_setLocator:function(z){if(this[p](z)){return z;}var A=this;z=z.toString().split(".");return function(B){return B&&A._getObjectValue(B,z);};},_setRequestTemplate:function(z){if(this[p](z)){return z;}z=z.toString();return function(A){return j.sub(z,{query:encodeURIComponent(A)});};},_setResultFilters:function(B){var z,A;if(B===null){return[];}z=f.AutoCompleteFilters;A=function(C){if(d(C)){return C;}if(s(C)&&z&&d(z[C])){return z[C];}return false;};if(j.isArray(B)){B=r.map(B,A);return r.every(B,function(C){return !!C;})?B:m;}else{B=A(B);return B?[B]:m;}},_setResultHighlighter:function(z){var A;if(this[p](z)){return z;}A=f.AutoCompleteHighlighters;if(s(z)&&A&&d(A[z])){return A[z];}return m;},_setSource:function(B){var z=this.get("sourceType")||j.type(B),A;if((B&&d(B.sendRequest))||B===null||z==="datasource"){this._rawSource=B;return B;}if((A=w.SOURCE_TYPES[z])){this._rawSource=B;return j.isString(A)?this[A](B):A(B);}f.error("Unsupported source type '"+z+"'. Maybe autocomplete-sources isn't loaded?");return m;},_sourceSuccess:function(A,z){z.callback.success({data:A,response:{results:A}});},_syncBrowserAutocomplete:function(){var z=this.get(h);if(z.get("nodeName").toLowerCase()==="input"){z.setAttribute("autocomplete",this.get(c)?"on":"off");}},_updateValue:function(A){var C=this.get(e),B,z,D;A=j.trimLeft(A);if(C){B=v(C);D=r.map(v(this.get(k)).split(C),v);z=D.length;if(z>1){D[z-1]=A;A=D.join(B+" ");}A=A+B+" ";}this.set(k,A);},_afterSourceTypeChange:function(z){if(this._rawSource){this.set("source",this._rawSource);}},_afterValueChange:function(G){var C=G.newVal,A=this,F=G.src===w.UI_SRC,B,D,z,E;if(!F){A._inputNode.set(k,C);}z=A.get("minQueryLength");E=A._parseValue(C)||"";if(z>=0&&E.length>=z){if(F){B=A.get("queryDelay");D=function(){A.fire(u,{inputValue:C,query:E,src:G.src});};if(B){clearTimeout(A._delay);A._delay=setTimeout(D,B);}else{D();}}else{A._set(x,E);}}else{clearTimeout(A._delay);A.fire(a,{prevVal:G.prevVal?A._parseValue(G.prevVal):null,src:G.src});}},_onInputBlur:function(C){var D=this.get(e),z,A,B;if(D&&!this.get("allowTrailingDelimiter")){D=j.trimRight(D);B=A=this._inputNode.get(k);if(D){while((A=j.trimRight(A))&&(z=A.length-D.length)&&A.lastIndexOf(D)===z){A=A.substring(0,z);}}else{A=j.trimRight(A);}if(A!==B){this.set(k,A);}}},_onInputValueChange:function(A){var z=A.newVal;if(z!==this.get(k)){this.set(k,z,{src:w.UI_SRC});}},_onResponse:function(z,A){if(z===(this.get(x)||"")){this._parseResponse(z||"",A.response,A.data);}},_defClearFn:function(){this._set(x,null);this._set(l,[]);},_defQueryFn:function(z){this.sendRequest(z.query);},_defResultsFn:function(z){this._set(l,z[l]);}};w.ATTRS={allowBrowserAutocomplete:{value:false},allowTrailingDelimiter:{value:false},enableCache:{lazyAdd:false,setter:"_setEnableCache",value:true},inputNode:{setter:f.one,writeOnce:"initOnly"},maxResults:{value:0},minQueryLength:{value:1},query:{readOnly:true,value:null},queryDelay:{value:100},queryDelimiter:{value:null},requestTemplate:{setter:"_setRequestTemplate",value:null},resultFilters:{setter:"_setResultFilters",value:[]},resultFormatter:{validator:p,value:null},resultHighlighter:{setter:"_setResultHighlighter",value:null},resultListLocator:{setter:"_setLocator",value:null},results:{readOnly:true,value:[]},resultTextLocator:{setter:"_setLocator",value:null},source:{setter:"_setSource",value:null},sourceType:{value:null},tokenInput:{readOnly:true},value:{value:""}};
-w._buildCfg={aggregates:["SOURCE_TYPES"],statics:["UI_SRC"]};w.SOURCE_TYPES={array:"_createArraySource","function":"_createFunctionSource",object:"_createObjectSource"};w.UI_SRC=(f.Widget&&f.Widget.UI_SRC)||"ui";f.AutoCompleteBase=w;},"@VERSION@",{"optional":["autocomplete-sources"],"requires":["array-extras","base-build","escape","event-valuechange","node-base"]});
+YUI.add("autocomplete-base",function(e,t){function T(){}var n=e.Escape,r=e.Lang,i=e.Array,s=e.Object,o=r.isFunction,u=r.isString,a=r.trim,f=e.Attribute.INVALID_VALUE,l="_functionValidator",c="_sourceSuccess",h="allowBrowserAutocomplete",p="inputNode",d="query",v="queryDelimiter",m="requestTemplate",g="results",y="resultListLocator",b="value",w="valueChange",E="clear",S=d,x=g;T.prototype={initializer:function(){e.before(this._bindUIACBase,this,"bindUI"),e.before(this._syncUIACBase,this,"syncUI"),this.publish(E,{defaultFn:this._defClearFn}),this.publish(S,{defaultFn:this._defQueryFn}),this.publish(x,{defaultFn:this._defResultsFn})},destructor:function(){this._acBaseEvents&&this._acBaseEvents.detach(),delete this._acBaseEvents,delete this._cache,delete this._inputNode,delete this._rawSource},clearCache:function(){return this._cache&&(this._cache={}),this},sendRequest:function(t,n){var r,i=this.get("source");return t||t===""?this._set(d,t):t=this.get(d)||"",i&&(n||(n=this.get(m)),r=n?n.call(this,t):t,i.sendRequest({query:t,request:r,callback:{success:e.bind(this._onResponse,this,t)}})),this},_bindUIACBase:function(){var t=this.get(p),n=t&&t.tokenInput;n&&(t=n.get(p),this._set("tokenInput",n));if(!t){e.error("No inputNode specified.");return}this._inputNode=t,this._acBaseEvents=new e.EventHandle([t.on(w,this._onInputValueChange,this),t.on("blur",this._onInputBlur,this),this.after(h+"Change",this._syncBrowserAutocomplete),this.after("sourceTypeChange",this._afterSourceTypeChange),this.after(w,this._afterValueChange)])},_syncUIACBase:function(){this._syncBrowserAutocomplete(),this.set(b,this.get(p).get(b))},_createArraySource:function(e){var t=this;return{type:"array",sendRequest:function(n){t[c](e.concat(),n)}}},_createFunctionSource:function(e){var t=this;return{type:"function",sendRequest:function(n){function i(e){t[c](e||[],n)}var r;(r=e(n.query,i))&&i(r)}}},_createObjectSource:function(e){var t=this;return{type:"object",sendRequest:function(n){var r=n.query;t[c](s.owns(e,r)?e[r]:[],n)}}},_functionValidator:function(e){return e===null||o(e)},_getObjectValue:function(e,t){if(!e)return;for(var n=0,r=t.length;e&&n<r;n++)e=e[t[n]];return e},_parseResponse:function(e,t,r){var i={data:r,query:e,results:[]},s=this.get(y),o=[],u=t&&t.results,a,f,l,c,h,p,d,v,m,g,b;u&&s&&(u=s.call(this,u));if(u&&u.length){a=this.get("resultFilters"),b=this.get("resultTextLocator");for(p=0,d=u.length;p<d;++p)m=u[p],g=b?b.call(this,m):m.toString(),o.push({display:n.html(g),raw:m,text:g});for(p=0,d=a.length;p<d;++p){o=a[p].call(this,e,o.concat());if(!o)return;if(!o.length)break}if(o.length){l=this.get("resultFormatter"),h=this.get("resultHighlighter"),v=this.get("maxResults"),v&&v>0&&o.length>v&&(o.length=v);if(h){c=h.call(this,e,o.concat());if(!c)return;for(p=0,d=c.length;p<d;++p)m=o[p],m.highlighted=c[p],m.display=m.highlighted}if(l){f=l.call(this,e,o.concat());if(!f)return;for(p=0,d=f.length;p<d;++p)o[p].display=f[p]}}}i.results=o,this.fire(x,i)},_parseValue:function(e){var t=this.get(v);return t&&(e=e.split(t),e=e[e.length-1]),r.trimLeft(e)},_setEnableCache:function(e){this._cache=e?{}:null},_setLocator:function(e){if(this[l](e))return e;var t=this;return e=e.toString().split("."),function(n){return n&&t._getObjectValue(n,e)}},_setRequestTemplate:function(e){return this[l](e)?e:(e=e.toString(),function(t){return r.sub(e,{query:encodeURIComponent(t)})})},_setResultFilters:function(t){var n,s;return t===null?[]:(n=e.AutoCompleteFilters,s=function(e){return o(e)?e:u(e)&&n&&o(n[e])?n[e]:!1},r.isArray(t)?(t=i.map(t,s),i.every(t,function(e){return!!e})?t:f):(t=s(t),t?[t]:f))},_setResultHighlighter:function(t){var n;return this[l](t)?t:(n=e.AutoCompleteHighlighters,u(t)&&n&&o(n[t])?n[t]:f)},_setSource:function(t){var n=this.get("sourceType")||r.type(t),i;return t&&o(t.sendRequest)||t===null||n==="datasource"?(this._rawSource=t,t):(i=T.SOURCE_TYPES[n])?(this._rawSource=t,r.isString(i)?this[i](t):i(t)):(e.error("Unsupported source type '"+n+"'. Maybe autocomplete-sources isn't loaded?"),f)},_sourceSuccess:function(e,t){t.callback.success({data:e,response:{results:e}})},_syncBrowserAutocomplete:function(){var e=this.get(p);e.get("nodeName").toLowerCase()==="input"&&e.setAttribute("autocomplete",this.get(h)?"on":"off")},_updateValue:function(e){var t=this.get(v),n,s,o;e=r.trimLeft(e),t&&(n=a(t),o=i.map(a(this.get(b)).split(t),a),s=o.length,s>1&&(o[s-1]=e,e=o.join(n+" ")),e=e+n+" "),this.set(b,e)},_afterSourceTypeChange:function(e){this._rawSource&&this.set("source",this._rawSource)},_afterValueChange:function(e){var t=e.newVal,n=this,r=e.src===T.UI_SRC,i,s,o,u;r||n._inputNode.set(b,t),o=n.get("minQueryLength"),u=n._parseValue(t)||"",o>=0&&u.length>=o?r?(i=n.get("queryDelay"),s=function(){n.fire(S,{inputValue:t,query:u,src:e.src})},i?(clearTimeout(n._delay),n._delay=setTimeout(s,i)):s()):n._set(d,u):(clearTimeout(n._delay),n.fire(E,{prevVal:e.prevVal?n._parseValue(e.prevVal):null,src:e.src}))},_onInputBlur:function(e){var t=this.get(v),n,i,s;if(t&&!this.get("allowTrailingDelimiter")){t=r.trimRight(t),s=i=this._inputNode.get(b);if(t)while((i=r.trimRight(i))&&(n=i.length-t.length)&&i.lastIndexOf(t)===n)i=i.substring(0,n);else i=r.trimRight(i);i!==s&&this.set(b,i)}},_onInputValueChange:function(e){var t=e.newVal;t!==this.get(b)&&this.set(b,t,{src:T.UI_SRC})},_onResponse:function(e,t){e===(this.get(d)||"")&&this._parseResponse(e||"",t.response,t.data)},_defClearFn:function(){this._set(d,null),this._set(g,[])},_defQueryFn:function(e){this.sendRequest(e.query)},_defResultsFn:function(e){this._set(g,e[g])}},T.ATTRS={allowBrowserAutocomplete:{value:!1},allowTrailingDelimiter:{value:!1},enableCache:{lazyAdd:!1,setter:"_setEnableCache",value:!0},inputNode:{setter:e.one,writeOnce:"initOnly"},maxResults:{value:0},minQueryLength:{value:1},query:{readOnly:!0,value:null},queryDelay:{value:100},queryDelimiter:{value:null},requestTemplate:{setter:"_setRequestTemplate",value:null},resultFilters:{setter:"_setResultFilters",value:[]},resultFormatter:{validator:l,value:null},resultHighlighter:{setter:"_setResultHighlighter",value:null},resultListLocator:{setter:"_setLocator",value:null},results:{readOnly:!0,value:[]},resultTextLocator:{setter:"_setLocator",value:null},source:{setter:"_setSource",value:null},sourceType:{value:null},tokenInput:{readOnly:!0},value:{value:""}},T._buildCfg={aggregates:["SOURCE_TYPES"],statics:["UI_SRC"]},T.SOURCE_TYPES={array:"_createArraySource","function":"_createFunctionSource",object:"_createObjectSource"},T.UI_SRC=e.Widget&&e.Widget.UI_SRC||"ui",e.AutoCompleteBase=T},"@VERSION@",{optional:["autocomplete-sources"],requires:["array-extras","base-build","escape","event-valuechange","node-base"]});
View
2 build/autocomplete-filters-accentfold/autocomplete-filters-accentfold-min.js
@@ -1 +1 @@
-YUI.add("autocomplete-filters-accentfold",function(e,d){var c=e.Text.AccentFold,a=e.Text.WordBreak,b=e.Array,f=e.Object;e.mix(e.namespace("AutoCompleteFilters"),{charMatchFold:function(i,h){if(!i){return h;}var g=b.unique(c.fold(i).split(""));return b.filter(h,function(j){var k=c.fold(j.text);return b.every(g,function(l){return k.indexOf(l)!==-1;});});},phraseMatchFold:function(h,g){if(!h){return g;}h=c.fold(h);return b.filter(g,function(i){return c.fold(i.text).indexOf(h)!==-1;});},startsWithFold:function(h,g){if(!h){return g;}h=c.fold(h);return b.filter(g,function(i){return c.fold(i.text).indexOf(h)===0;});},subWordMatchFold:function(i,g){if(!i){return g;}var h=a.getUniqueWords(c.fold(i));return b.filter(g,function(j){var k=c.fold(j.text);return b.every(h,function(l){return k.indexOf(l)!==-1;});});},wordMatchFold:function(i,g){if(!i){return g;}var h=a.getUniqueWords(c.fold(i));return b.filter(g,function(j){var k=b.hash(a.getUniqueWords(c.fold(j.text)));return b.every(h,function(l){return f.owns(k,l);});});}});},"@VERSION@",{"requires":["array-extras","text-accentfold","text-wordbreak"]});
+YUI.add("autocomplete-filters-accentfold",function(e,t){var n=e.Text.AccentFold,r=e.Text.WordBreak,i=e.Array,s=e.Object;e.mix(e.namespace("AutoCompleteFilters"),{charMatchFold:function(e,t){if(!e)return t;var r=i.unique(n.fold(e).split(""));return i.filter(t,function(e){var t=n.fold(e.text);return i.every(r,function(e){return t.indexOf(e)!==-1})})},phraseMatchFold:function(e,t){return e?(e=n.fold(e),i.filter(t,function(t){return n.fold(t.text).indexOf(e)!==-1})):t},startsWithFold:function(e,t){return e?(e=n.fold(e),i.filter(t,function(t){return n.fold(t.text).indexOf(e)===0})):t},subWordMatchFold:function(e,t){if(!e)return t;var s=r.getUniqueWords(n.fold(e));return i.filter(t,function(e){var t=n.fold(e.text);return i.every(s,function(e){return t.indexOf(e)!==-1})})},wordMatchFold:function(e,t){if(!e)return t;var o=r.getUniqueWords(n.fold(e));return i.filter(t,function(e){var t=i.hash(r.getUniqueWords(n.fold(e.text)));return i.every(o,function(e){return s.owns(t,e)})})}})},"@VERSION@",{requires:["array-extras","text-accentfold","text-wordbreak"]});
View
2 build/autocomplete-filters/autocomplete-filters-min.js
@@ -1 +1 @@
-YUI.add("autocomplete-filters",function(e,d){var c=e.Array,f=e.Object,a=e.Text.WordBreak,b=e.mix(e.namespace("AutoCompleteFilters"),{charMatch:function(j,i,g){if(!j){return i;}var h=c.unique((g?j:j.toLowerCase()).split(""));return c.filter(i,function(k){k=k.text;if(!g){k=k.toLowerCase();}return c.every(h,function(l){return k.indexOf(l)!==-1;});});},charMatchCase:function(h,g){return b.charMatch(h,g,true);},phraseMatch:function(i,h,g){if(!i){return h;}if(!g){i=i.toLowerCase();}return c.filter(h,function(j){return(g?j.text:j.text.toLowerCase()).indexOf(i)!==-1;});},phraseMatchCase:function(h,g){return b.phraseMatch(h,g,true);},startsWith:function(i,h,g){if(!i){return h;}if(!g){i=i.toLowerCase();}return c.filter(h,function(j){return(g?j.text:j.text.toLowerCase()).indexOf(i)===0;});},startsWithCase:function(h,g){return b.startsWith(h,g,true);},subWordMatch:function(j,h,g){if(!j){return h;}var i=a.getUniqueWords(j,{ignoreCase:!g});return c.filter(h,function(k){var l=g?k.text:k.text.toLowerCase();return c.every(i,function(m){return l.indexOf(m)!==-1;});});},subWordMatchCase:function(h,g){return b.subWordMatch(h,g,true);},wordMatch:function(k,i,g){if(!k){return i;}var h={ignoreCase:!g},j=a.getUniqueWords(k,h);return c.filter(i,function(l){var m=c.hash(a.getUniqueWords(l.text,h));return c.every(j,function(n){return f.owns(m,n);});});},wordMatchCase:function(h,g){return b.wordMatch(h,g,true);}});},"@VERSION@",{"requires":["array-extras","text-wordbreak"]});
+YUI.add("autocomplete-filters",function(e,t){var n=e.Array,r=e.Object,i=e.Text.WordBreak,s=e.mix(e.namespace("AutoCompleteFilters"),{charMatch:function(e,t,r){if(!e)return t;var i=n.unique((r?e:e.toLowerCase()).split(""));return n.filter(t,function(e){return e=e.text,r||(e=e.toLowerCase()),n.every(i,function(t){return e.indexOf(t)!==-1})})},charMatchCase:function(e,t){return s.charMatch(e,t,!0)},phraseMatch:function(e,t,r){return e?(r||(e=e.toLowerCase()),n.filter(t,function(t){return(r?t.text:t.text.toLowerCase()).indexOf(e)!==-1})):t},phraseMatchCase:function(e,t){return s.phraseMatch(e,t,!0)},startsWith:function(e,t,r){return e?(r||(e=e.toLowerCase()),n.filter(t,function(t){return(r?t.text:t.text.toLowerCase()).indexOf(e)===0})):t},startsWithCase:function(e,t){return s.startsWith(e,t,!0)},subWordMatch:function(e,t,r){if(!e)return t;var s=i.getUniqueWords(e,{ignoreCase:!r});return n.filter(t,function(e){var t=r?e.text:e.text.toLowerCase();return n.every(s,function(e){return t.indexOf(e)!==-1})})},subWordMatchCase:function(e,t){return s.subWordMatch(e,t,!0)},wordMatch:function(e,t,s){if(!e)return t;var o={ignoreCase:!s},u=i.getUniqueWords(e,o);return n.filter(t,function(e){var t=n.hash(i.getUniqueWords(e.text,o));return n.every(u,function(e){return r.owns(t,e)})})},wordMatchCase:function(e,t){return s.wordMatch(e,t,!0)}})},"@VERSION@",{requires:["array-extras","text-wordbreak"]});
View
2 build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold-min.js
@@ -1 +1 @@
-YUI.add("autocomplete-highlighters-accentfold",function(d,c){var a=d.Highlight,b=d.Array;d.mix(d.namespace("AutoCompleteHighlighters"),{charMatchFold:function(g,f){var e=b.unique(g.split(""));return b.map(f,function(h){return a.allFold(h.text,e);});},phraseMatchFold:function(f,e){return b.map(e,function(g){return a.allFold(g.text,[f]);});},startsWithFold:function(f,e){return b.map(e,function(g){return a.allFold(g.text,[f],{startsWith:true});});},subWordMatchFold:function(g,e){var f=d.Text.WordBreak.getUniqueWords(g);return b.map(e,function(h){return a.allFold(h.text,f);});},wordMatchFold:function(f,e){return b.map(e,function(g){return a.wordsFold(g.text,f);});}});},"@VERSION@",{"requires":["array-extras","highlight-accentfold"]});
+YUI.add("autocomplete-highlighters-accentfold",function(e,t){var n=e.Highlight,r=e.Array;e.mix(e.namespace("AutoCompleteHighlighters"),{charMatchFold:function(e,t){var i=r.unique(e.split(""));return r.map(t,function(e){return n.allFold(e.text,i)})},phraseMatchFold:function(e,t){return r.map(t,function(t){return n.allFold(t.text,[e])})},startsWithFold:function(e,t){return r.map(t,function(t){return n.allFold(t.text,[e],{startsWith:!0})})},subWordMatchFold:function(t,i){var s=e.Text.WordBreak.getUniqueWords(t);return r.map(i,function(e){return n.allFold(e.text,s)})},wordMatchFold:function(e,t){return r.map(t,function(t){return n.wordsFold(t.text,e)})}})},"@VERSION@",{requires:["array-extras","highlight-accentfold"]});
View
2 build/autocomplete-highlighters/autocomplete-highlighters-min.js
@@ -1 +1 @@
-YUI.add("autocomplete-highlighters",function(e,d){var c=e.Array,a=e.Highlight,b=e.mix(e.namespace("AutoCompleteHighlighters"),{charMatch:function(i,h,f){var g=c.unique((f?i:i.toLowerCase()).split(""));return c.map(h,function(j){return a.all(j.text,g,{caseSensitive:f});});},charMatchCase:function(g,f){return b.charMatch(g,f,true);},phraseMatch:function(h,g,f){return c.map(g,function(i){return a.all(i.text,[h],{caseSensitive:f});});},phraseMatchCase:function(g,f){return b.phraseMatch(g,f,true);},startsWith:function(h,g,f){return c.map(g,function(i){return a.all(i.text,[h],{caseSensitive:f,startsWith:true});});},startsWithCase:function(g,f){return b.startsWith(g,f,true);},subWordMatch:function(i,g,f){var h=e.Text.WordBreak.getUniqueWords(i,{ignoreCase:!f});return c.map(g,function(j){return a.all(j.text,h,{caseSensitive:f});});},subWordMatchCase:function(g,f){return b.subWordMatch(g,f,true);},wordMatch:function(h,g,f){return c.map(g,function(i){return a.words(i.text,h,{caseSensitive:f});});},wordMatchCase:function(g,f){return b.wordMatch(g,f,true);}});},"@VERSION@",{"requires":["array-extras","highlight-base"]});
+YUI.add("autocomplete-highlighters",function(e,t){var n=e.Array,r=e.Highlight,i=e.mix(e.namespace("AutoCompleteHighlighters"),{charMatch:function(e,t,i){var s=n.unique((i?e:e.toLowerCase()).split(""));return n.map(t,function(e){return r.all(e.text,s,{caseSensitive:i})})},charMatchCase:function(e,t){return i.charMatch(e,t,!0)},phraseMatch:function(e,t,i){return n.map(t,function(t){return r.all(t.text,[e],{caseSensitive:i})})},phraseMatchCase:function(e,t){return i.phraseMatch(e,t,!0)},startsWith:function(e,t,i){return n.map(t,function(t){return r.all(t.text,[e],{caseSensitive:i,startsWith:!0})})},startsWithCase:function(e,t){return i.startsWith(e,t,!0)},subWordMatch:function(t,i,s){var o=e.Text.WordBreak.getUniqueWords(t,{ignoreCase:!s});return n.map(i,function(e){return r.all(e.text,o,{caseSensitive:s})})},subWordMatchCase:function(e,t){return i.subWordMatch(e,t,!0)},wordMatch:function(e,t,i){return n.map(t,function(t){return r.words(t.text,e,{caseSensitive:i})})},wordMatchCase:function(e,t){return i.wordMatch(e,t,!0)}})},"@VERSION@",{requires:["array-extras","highlight-base"]});
View
2 build/autocomplete-list-keys/autocomplete-list-keys-min.js
@@ -1 +1 @@
-YUI.add("autocomplete-list-keys",function(h,f){var c=40,a=13,d=27,g=9,b=38;function e(){h.before(this._bindKeys,this,"bindUI");this._initKeys();}e.prototype={_initKeys:function(){var i={},j={};i[c]=this._keyDown;j[a]=this._keyEnter;j[d]=this._keyEsc;j[g]=this._keyTab;j[b]=this._keyUp;this._keys=i;this._keysVisible=j;},destructor:function(){this._unbindKeys();},_bindKeys:function(){this._keyEvents=this._inputNode.on("keydown",this._onInputKey,this);},_unbindKeys:function(){this._keyEvents&&this._keyEvents.detach();this._keyEvents=null;},_keyDown:function(){if(this.get("visible")){this._activateNextItem();}else{this.show();}},_keyEnter:function(j){var i=this.get("activeItem");if(i){this.selectItem(i,j);}else{return false;}},_keyEsc:function(){this.hide();},_keyTab:function(j){var i;if(this.get("tabSelect")){i=this.get("activeItem");if(i){this.selectItem(i,j);return true;}}return false;},_keyUp:function(){this._activatePrevItem();},_onInputKey:function(k){var i,j=k.keyCode;this._lastInputKey=j;if(this.get("results").length){i=this._keys[j];if(!i&&this.get("visible")){i=this._keysVisible[j];}if(i){if(i.call(this,k)!==false){k.preventDefault();}}}}};h.Base.mix(h.AutoCompleteList,[e]);},"@VERSION@",{"requires":["autocomplete-list","base-build"]});
+YUI.add("autocomplete-list-keys",function(e,t){function u(){e.before(this._bindKeys,this,"bindUI"),this._initKeys()}var n=40,r=13,i=27,s=9,o=38;u.prototype={_initKeys:function(){var e={},t={};e[n]=this._keyDown,t[r]=this._keyEnter,t[i]=this._keyEsc,t[s]=this._keyTab,t[o]=this._keyUp,this._keys=e,this._keysVisible=t},destructor:function(){this._unbindKeys()},_bindKeys:function(){this._keyEvents=this._inputNode.on("keydown",this._onInputKey,this)},_unbindKeys:function(){this._keyEvents&&this._keyEvents.detach(),this._keyEvents=null},_keyDown:function(){this.get("visible")?this._activateNextItem():this.show()},_keyEnter:function(e){var t=this.get("activeItem");if(!t)return!1;this.selectItem(t,e)},_keyEsc:function(){this.hide()},_keyTab:function(e){var t;if(this.get("tabSelect")){t=this.get("activeItem");if(t)return this.selectItem(t,e),!0}return!1},_keyUp:function(){this._activatePrevItem()},_onInputKey:function(e){var t,n=e.keyCode;this._lastInputKey=n,this.get("results").length&&(t=this._keys[n],!t&&this.get("visible")&&(t=this._keysVisible[n]),t&&t.call(this,e)!==!1&&e.preventDefault())}},e.Base.mix(e.AutoCompleteList,[u])},"@VERSION@",{requires:["autocomplete-list","base-build"]});
View
2 build/autocomplete-list/assets/skins/night/autocomplete-list.css
@@ -1 +1 @@
-.yui3-aclist{position:absolute;z-index:1}.yui3-aclist-hidden{visibility:hidden}.yui3-aclist-aria{left:-9999px;position:absolute}.yui3-aclist-list{list-style:none;margin:0;overflow:hidden;padding:0}.yui3-aclist-item{cursor:pointer;list-style:none;padding:2px 5px}.yui3-aclist-item-active{outline:#afafaf dotted thin}.yui3-skin-night [for=ac-input]{color:#cbcbcb}.yui3-skin-night .yui3-aclist-content{font-size:100%;background-color:#151515;color:#ccc;border:1px solid #303030;-moz-box-shadow:0 0 17px rgba(0,0,0,0.58);-webkit-box-shadow:0 0 17px rgba(0,0,0,0.58);box-shadow:0 0 17px rgba(0,0,0,0.58)}.yui3-skin-night .yui3-aclist-item-active{background-color:#2f3030;background:-moz-linear-gradient(0% 100% 90deg,#252626 0,#333434 100%);background:-webkit-gradient(linear,left top,left bottom,from(#333434),to(#252626))}.yui3-skin-night .yui3-aclist-item-hover{background-color:#262727;background:-moz-linear-gradient(0% 100% 90deg,#202121 0,#282929 100%);background:-webkit-gradient(linear,left top,left bottom,from(#282929),to(#202121))}.yui3-skin-night .yui3-aclist-item{padding:0 1em;line-height:2.25}.yui3-skin-night .yui3-aclist-item-active{outline:0}.yui3-skin-night .yui3-highlight{color:#efefef}#yui3-css-stamp.skin-night-autocomplete-list{display:none}
+.yui3-aclist{position:absolute;z-index:1}.yui3-aclist-hidden{visibility:hidden}.yui3-aclist-aria{left:-9999px;position:absolute}.yui3-aclist-list{list-style:none;margin:0;overflow:hidden;padding:0}.yui3-aclist-item{cursor:pointer;list-style:none;padding:2px 5px}.yui3-aclist-item-active{outline:#afafaf dotted thin}.yui3-skin-night [for=ac-input]{color:#cbcbcb}.yui3-skin-night .yui3-aclist-content{font-size:100%;background-color:#151515;color:#ccc;border:1px solid #303030;-moz-box-shadow:0 0 17px rgba(0,0,0,0.58);-webkit-box-shadow:0 0 17px rgba(0,0,0,0.58);box-shadow:0 0 17px rgba(0,0,0,0.58)}.yui3-skin-night .yui3-aclist-item-active{background-color:#2f3030;background:-moz-linear-gradient(0% 100% 90deg,#252626 0,#333434 100%);background:-webkit-gradient(linear,left top,left bottom,from(#333434),to(#252626))}.yui3-skin-night .yui3-aclist-item-hover{background-color:#262727;background:-moz-linear-gradient(0% 100% 90deg,#202121 0,#282929 100%);background:-webkit-gradient(linear,left top,left bottom,from(#282929),to(#202121))}.yui3-skin-night .yui3-aclist-item{padding:0 1em;line-height:2.25}.yui3-skin-night .yui3-aclist-item-active{outline:0}.yui3-skin-night .yui3-highlight{color:#efefef}#yui3-css-stamp.skin-night-autocomplete-list{display:none}
View
2 build/autocomplete-list/assets/skins/sam/autocomplete-list.css
@@ -1 +1 @@
-.yui3-aclist{position:absolute;z-index:1}.yui3-aclist-hidden{visibility:hidden}.yui3-aclist-aria{left:-9999px;position:absolute}.yui3-aclist-list{list-style:none;margin:0;overflow:hidden;padding:0}.yui3-aclist-item{cursor:pointer;list-style:none;padding:2px 5px}.yui3-aclist-item-active{outline:#afafaf dotted thin}.yui3-skin-sam .yui3-aclist-content{background:#fff;border:1px solid #afafaf;-moz-box-shadow:1px 1px 4px rgba(0,0,0,0.58);-webkit-box-shadow:1px 1px 4px rgba(0,0,0,0.58);box-shadow:1px 1px 4px rgba(0,0,0,0.58)}.yui3-skin-sam .yui3-aclist-item-hover{background:#bfdaff}.yui3-skin-sam .yui3-aclist-item-active{background:#2647a0;color:#fff;outline:0}#yui3-css-stamp.skin-sam-autocomplete-list{display:none}
+.yui3-aclist{position:absolute;z-index:1}.yui3-aclist-hidden{visibility:hidden}.yui3-aclist-aria{left:-9999px;position:absolute}.yui3-aclist-list{list-style:none;margin:0;overflow:hidden;padding:0}.yui3-aclist-item{cursor:pointer;list-style:none;padding:2px 5px}.yui3-aclist-item-active{outline:#afafaf dotted thin}.yui3-skin-sam .yui3-aclist-content{background:#fff;border:1px solid #afafaf;-moz-box-shadow:1px 1px 4px rgba(0,0,0,0.58);-webkit-box-shadow:1px 1px 4px rgba(0,0,0,0.58);box-shadow:1px 1px 4px rgba(0,0,0,0.58)}.yui3-skin-sam .yui3-aclist-item-hover{background:#bfdaff}.yui3-skin-sam .yui3-aclist-item-active{background:#2647a0;color:#fff;outline:0}#yui3-css-stamp.skin-sam-autocomplete-list{display:none}
View
4 build/autocomplete-list/autocomplete-list-coverage.js
@@ -26,7 +26,7 @@ _yuitest_coverage["build/autocomplete-list/autocomplete-list.js"] = {
path: "build/autocomplete-list/autocomplete-list.js",
code: []
};
-_yuitest_coverage["build/autocomplete-list/autocomplete-list.js"].code=["YUI.add('autocomplete-list', function (Y, NAME) {","","/**","Traditional autocomplete dropdown list widget, just like Mom used to make.","","@module autocomplete","@submodule autocomplete-list","**/","","/**","Traditional autocomplete dropdown list widget, just like Mom used to make.","","@class AutoCompleteList","@extends Widget","@uses AutoCompleteBase","@uses WidgetPosition","@uses WidgetPositionAlign","@constructor","@param {Object} config Configuration object.","**/","","var Lang = Y.Lang,"," Node = Y.Node,"," YArray = Y.Array,",""," // Whether or not we need an iframe shim."," useShim = Y.UA.ie && Y.UA.ie < 7,",""," // keyCode constants."," KEY_TAB = 9,",""," // String shorthand."," _CLASS_ITEM = '_CLASS_ITEM',"," _CLASS_ITEM_ACTIVE = '_CLASS_ITEM_ACTIVE',"," _CLASS_ITEM_HOVER = '_CLASS_ITEM_HOVER',"," _SELECTOR_ITEM = '_SELECTOR_ITEM',",""," ACTIVE_ITEM = 'activeItem',"," ALWAYS_SHOW_LIST = 'alwaysShowList',"," CIRCULAR = 'circular',"," HOVERED_ITEM = 'hoveredItem',"," ID = 'id',"," ITEM = 'item',"," LIST = 'list',"," RESULT = 'result',"," RESULTS = 'results',"," VISIBLE = 'visible',"," WIDTH = 'width',",""," // Event names."," EVT_SELECT = 'select',","","List = Y.Base.create('autocompleteList', Y.Widget, ["," Y.AutoCompleteBase,"," Y.WidgetPosition,"," Y.WidgetPositionAlign","], {"," // -- Prototype Properties -------------------------------------------------"," ARIA_TEMPLATE: '<div/>',"," ITEM_TEMPLATE: '<li/>',"," LIST_TEMPLATE: '<ul/>',",""," // Widget automatically attaches delegated event handlers to everything in"," // Y.Node.DOM_EVENTS, including synthetic events. Since Widget's event"," // delegation won't work for the synthetic valuechange event, and since"," // it creates a name collision between the backcompat \"valueChange\" synth"," // event alias and AutoCompleteList's \"valueChange\" event for the \"value\""," // attr, this hack is necessary in order to prevent Widget from attaching"," // valuechange handlers."," UI_EVENTS: (function () {"," var uiEvents = Y.merge(Y.Node.DOM_EVENTS);",""," delete uiEvents.valuechange;"," delete uiEvents.valueChange;",""," return uiEvents;"," }()),",""," // -- Lifecycle Prototype Methods ------------------------------------------"," initializer: function () {"," var inputNode = this.get('inputNode');",""," if (!inputNode) {"," Y.error('No inputNode specified.');"," return;"," }",""," this._inputNode = inputNode;"," this._listEvents = [];",""," // This ensures that the list is rendered inside the same parent as the"," // input node by default, which is necessary for proper ARIA support."," this.DEF_PARENT_NODE = inputNode.get('parentNode');",""," // Cache commonly used classnames and selectors for performance."," this[_CLASS_ITEM] = this.getClassName(ITEM);"," this[_CLASS_ITEM_ACTIVE] = this.getClassName(ITEM, 'active');"," this[_CLASS_ITEM_HOVER] = this.getClassName(ITEM, 'hover');"," this[_SELECTOR_ITEM] = '.' + this[_CLASS_ITEM];",""," /**"," Fires when an autocomplete suggestion is selected from the list,"," typically via a keyboard action or mouse click.",""," @event select"," @param {Node} itemNode List item node that was selected."," @param {Object} result AutoComplete result object."," @preventable _defSelectFn"," **/"," this.publish(EVT_SELECT, {"," defaultFn: this._defSelectFn"," });"," },",""," destructor: function () {"," while (this._listEvents.length) {"," this._listEvents.pop().detach();"," }",""," if (this._ariaNode) {"," this._ariaNode.remove().destroy(true);"," }"," },",""," bindUI: function () {"," this._bindInput();"," this._bindList();"," },",""," renderUI: function () {"," var ariaNode = this._createAriaNode(),"," boundingBox = this.get('boundingBox'),"," contentBox = this.get('contentBox'),"," inputNode = this._inputNode,"," listNode = this._createListNode(),"," parentNode = inputNode.get('parentNode');",""," inputNode.addClass(this.getClassName('input')).setAttrs({"," 'aria-autocomplete': LIST,"," 'aria-expanded' : false,"," 'aria-owns' : listNode.get('id')"," });",""," // ARIA node must be outside the widget or announcements won't be made"," // when the widget is hidden."," parentNode.append(ariaNode);",""," // Add an iframe shim for IE6."," if (useShim) {"," boundingBox.plug(Y.Plugin.Shim);"," }",""," // Force position: absolute on the boundingBox. This works around a"," // potential CSS loading race condition in Gecko that can cause the"," // boundingBox to become relatively positioned, which is all kinds of"," // no good."," boundingBox.setStyle('position', 'absolute');",""," this._ariaNode = ariaNode;"," this._boundingBox = boundingBox;"," this._contentBox = contentBox;"," this._listNode = listNode;"," this._parentNode = parentNode;"," },",""," syncUI: function () {"," // No need to call _syncPosition() here; the other _sync methods will"," // call it when necessary."," this._syncResults();"," this._syncVisibility();"," },",""," // -- Public Prototype Methods ---------------------------------------------",""," /**"," Hides the list, unless the `alwaysShowList` attribute is `true`.",""," @method hide"," @see show"," @chainable"," **/"," hide: function () {"," return this.get(ALWAYS_SHOW_LIST) ? this : this.set(VISIBLE, false);"," },",""," /**"," Selects the specified _itemNode_, or the current `activeItem` if _itemNode_"," is not specified.",""," @method selectItem"," @param {Node} [itemNode] Item node to select."," @param {EventFacade} [originEvent] Event that triggered the selection, if"," any."," @chainable"," **/"," selectItem: function (itemNode, originEvent) {"," if (itemNode) {"," if (!itemNode.hasClass(this[_CLASS_ITEM])) {"," return this;"," }"," } else {"," itemNode = this.get(ACTIVE_ITEM);",""," if (!itemNode) {"," return this;"," }"," }",""," this.fire(EVT_SELECT, {"," itemNode : itemNode,"," originEvent: originEvent || null,"," result : itemNode.getData(RESULT)"," });",""," return this;"," },",""," // -- Protected Prototype Methods ------------------------------------------",""," /**"," Activates the next item after the currently active item. If there is no next"," item and the `circular` attribute is `true`, focus will wrap back to the"," input node.",""," @method _activateNextItem"," @chainable"," @protected"," **/"," _activateNextItem: function () {"," var item = this.get(ACTIVE_ITEM),"," nextItem;",""," if (item) {"," nextItem = item.next(this[_SELECTOR_ITEM]) ||"," (this.get(CIRCULAR) ? null : item);"," } else {"," nextItem = this._getFirstItemNode();"," }",""," this.set(ACTIVE_ITEM, nextItem);",""," return this;"," },",""," /**"," Activates the item previous to the currently active item. If there is no"," previous item and the `circular` attribute is `true`, focus will wrap back"," to the input node.",""," @method _activatePrevItem"," @chainable"," @protected"," **/"," _activatePrevItem: function () {"," var item = this.get(ACTIVE_ITEM),"," prevItem = item ? item.previous(this[_SELECTOR_ITEM]) :"," this.get(CIRCULAR) && this._getLastItemNode();",""," this.set(ACTIVE_ITEM, prevItem || null);",""," return this;"," },",""," /**"," Appends the specified result _items_ to the list inside a new item node.",""," @method _add"," @param {Array|Node|HTMLElement|String} items Result item or array of"," result items."," @return {NodeList} Added nodes."," @protected"," **/"," _add: function (items) {"," var itemNodes = [];",""," YArray.each(Lang.isArray(items) ? items : [items], function (item) {"," itemNodes.push(this._createItemNode(item).setData(RESULT, item));"," }, this);",""," itemNodes = Y.all(itemNodes);"," this._listNode.append(itemNodes.toFrag());",""," return itemNodes;"," },",""," /**"," Updates the ARIA live region with the specified message.",""," @method _ariaSay"," @param {String} stringId String id (from the `strings` attribute) of the"," message to speak."," @param {Object} [subs] Substitutions for placeholders in the string."," @protected"," **/"," _ariaSay: function (stringId, subs) {"," var message = this.get('strings.' + stringId);"," this._ariaNode.set('text', subs ? Lang.sub(message, subs) : message);"," },",""," /**"," Binds `inputNode` events and behavior.",""," @method _bindInput"," @protected"," **/"," _bindInput: function () {"," var inputNode = this._inputNode,"," alignNode, alignWidth, tokenInput;",""," // Null align means we can auto-align. Set align to false to prevent"," // auto-alignment, or a valid alignment config to customize the"," // alignment."," if (this.get('align') === null) {"," // If this is a tokenInput, align with its bounding box."," // Otherwise, align with the inputNode. Bit of a cheat."," tokenInput = this.get('tokenInput');"," alignNode = (tokenInput && tokenInput.get('boundingBox')) || inputNode;",""," this.set('align', {"," node : alignNode,"," points: ['tl', 'bl']"," });",""," // If no width config is set, attempt to set the list's width to the"," // width of the alignment node. If the alignment node's width is"," // falsy, do nothing."," if (!this.get(WIDTH) && (alignWidth = alignNode.get('offsetWidth'))) {"," this.set(WIDTH, alignWidth);"," }"," }",""," // Attach inputNode events."," this._listEvents = this._listEvents.concat(["," inputNode.after('blur', this._afterListInputBlur, this),"," inputNode.after('focus', this._afterListInputFocus, this)"," ]);"," },",""," /**"," Binds list events.",""," @method _bindList"," @protected"," **/"," _bindList: function () {"," this._listEvents = this._listEvents.concat(["," Y.one('doc').after('click', this._afterDocClick, this),"," Y.one('win').after('windowresize', this._syncPosition, this),",""," this.after({"," mouseover: this._afterMouseOver,"," mouseout : this._afterMouseOut,",""," activeItemChange : this._afterActiveItemChange,"," alwaysShowListChange: this._afterAlwaysShowListChange,"," hoveredItemChange : this._afterHoveredItemChange,"," resultsChange : this._afterResultsChange,"," visibleChange : this._afterVisibleChange"," }),",""," this._listNode.delegate('click', this._onItemClick,"," this[_SELECTOR_ITEM], this)"," ]);"," },",""," /**"," Clears the contents of the tray.",""," @method _clear"," @protected"," **/"," _clear: function () {"," this.set(ACTIVE_ITEM, null);"," this._set(HOVERED_ITEM, null);",""," this._listNode.get('children').remove(true);"," },",""," /**"," Creates and returns an ARIA live region node.",""," @method _createAriaNode"," @return {Node} ARIA node."," @protected"," **/"," _createAriaNode: function () {"," var ariaNode = Node.create(this.ARIA_TEMPLATE);",""," return ariaNode.addClass(this.getClassName('aria')).setAttrs({"," 'aria-live': 'polite',"," role : 'status'"," });"," },",""," /**"," Creates and returns an item node with the specified _content_.",""," @method _createItemNode"," @param {Object} result Result object."," @return {Node} Item node."," @protected"," **/"," _createItemNode: function (result) {"," var itemNode = Node.create(this.ITEM_TEMPLATE);",""," return itemNode.addClass(this[_CLASS_ITEM]).setAttrs({"," id : Y.stamp(itemNode),"," role: 'option'"," }).setAttribute('data-text', result.text).append(result.display);"," },",""," /**"," Creates and returns a list node. If the `listNode` attribute is already set"," to an existing node, that node will be used.",""," @method _createListNode"," @return {Node} List node."," @protected"," **/"," _createListNode: function () {"," var listNode = this.get('listNode') || Node.create(this.LIST_TEMPLATE);",""," listNode.addClass(this.getClassName(LIST)).setAttrs({"," id : Y.stamp(listNode),"," role: 'listbox'"," });",""," this._set('listNode', listNode);"," this.get('contentBox').append(listNode);",""," return listNode;"," },",""," /**"," Gets the first item node in the list, or `null` if the list is empty.",""," @method _getFirstItemNode"," @return {Node|null}"," @protected"," **/"," _getFirstItemNode: function () {"," return this._listNode.one(this[_SELECTOR_ITEM]);"," },",""," /**"," Gets the last item node in the list, or `null` if the list is empty.",""," @method _getLastItemNode"," @return {Node|null}"," @protected"," **/"," _getLastItemNode: function () {"," return this._listNode.one(this[_SELECTOR_ITEM] + ':last-child');"," },",""," /**"," Synchronizes the result list's position and alignment.",""," @method _syncPosition"," @protected"," **/"," _syncPosition: function () {"," // Force WidgetPositionAlign to refresh its alignment."," this._syncUIPosAlign();",""," // Resize the IE6 iframe shim to match the list's dimensions."," this._syncShim();"," },",""," /**"," Synchronizes the results displayed in the list with those in the _results_"," argument, or with the `results` attribute if an argument is not provided.",""," @method _syncResults"," @param {Array} [results] Results."," @protected"," **/"," _syncResults: function (results) {"," if (!results) {"," results = this.get(RESULTS);"," }",""," this._clear();",""," if (results.length) {"," this._add(results);"," this._ariaSay('items_available');"," }",""," this._syncPosition();",""," if (this.get('activateFirstItem') && !this.get(ACTIVE_ITEM)) {"," this.set(ACTIVE_ITEM, this._getFirstItemNode());"," }"," },",""," /**"," Synchronizes the size of the iframe shim used for IE6 and lower. In other"," browsers, this method is a noop.",""," @method _syncShim"," @protected"," **/"," _syncShim: useShim ? function () {"," var shim = this._boundingBox.shim;",""," if (shim) {"," shim.sync();"," }"," } : function () {},",""," /**"," Synchronizes the visibility of the tray with the _visible_ argument, or with"," the `visible` attribute if an argument is not provided.",""," @method _syncVisibility"," @param {Boolean} [visible] Visibility."," @protected"," **/"," _syncVisibility: function (visible) {"," if (this.get(ALWAYS_SHOW_LIST)) {"," visible = true;"," this.set(VISIBLE, visible);"," }",""," if (typeof visible === 'undefined') {"," visible = this.get(VISIBLE);"," }",""," this._inputNode.set('aria-expanded', visible);"," this._boundingBox.set('aria-hidden', !visible);",""," if (visible) {"," this._syncPosition();"," } else {"," this.set(ACTIVE_ITEM, null);"," this._set(HOVERED_ITEM, null);",""," // Force a reflow to work around a glitch in IE6 and 7 where some of"," // the contents of the list will sometimes remain visible after the"," // container is hidden."," this._boundingBox.get('offsetWidth');"," }",""," // In some pages, IE7 fails to repaint the contents of the list after it"," // becomes visible. Toggling a bogus class on the body forces a repaint"," // that fixes the issue."," if (Y.UA.ie === 7) {"," // Note: We don't actually need to use ClassNameManager here. This"," // class isn't applying any actual styles; it's just frobbing the"," // body element to force a repaint. The actual class name doesn't"," // really matter."," Y.one('body')"," .addClass('yui3-ie7-sucks')"," .removeClass('yui3-ie7-sucks');"," }"," },",""," // -- Protected Event Handlers ---------------------------------------------",""," /**"," Handles `activeItemChange` events.",""," @method _afterActiveItemChange"," @param {EventFacade} e"," @protected"," **/"," _afterActiveItemChange: function (e) {"," var inputNode = this._inputNode,"," newVal = e.newVal,"," prevVal = e.prevVal,"," node;",""," // The previous item may have disappeared by the time this handler runs,"," // so we need to be careful."," if (prevVal && prevVal._node) {"," prevVal.removeClass(this[_CLASS_ITEM_ACTIVE]);"," }",""," if (newVal) {"," newVal.addClass(this[_CLASS_ITEM_ACTIVE]);"," inputNode.set('aria-activedescendant', newVal.get(ID));"," } else {"," inputNode.removeAttribute('aria-activedescendant');"," }",""," if (this.get('scrollIntoView')) {"," node = newVal || inputNode;",""," if (!node.inRegion(Y.DOM.viewportRegion(), true)"," || !node.inRegion(this._contentBox, true)) {",""," node.scrollIntoView();"," }"," }"," },",""," /**"," Handles `alwaysShowListChange` events.",""," @method _afterAlwaysShowListChange"," @param {EventFacade} e"," @protected"," **/"," _afterAlwaysShowListChange: function (e) {"," this.set(VISIBLE, e.newVal || this.get(RESULTS).length > 0);"," },",""," /**"," Handles click events on the document. If the click is outside both the"," input node and the bounding box, the list will be hidden.",""," @method _afterDocClick"," @param {EventFacade} e"," @protected"," @since 3.5.0"," **/"," _afterDocClick: function (e) {"," var boundingBox = this._boundingBox,"," target = e.target;",""," if(target !== this._inputNode && target !== boundingBox &&"," target.ancestor('#' + boundingBox.get('id'), true)){"," this.hide();"," }"," },",""," /**"," Handles `hoveredItemChange` events.",""," @method _afterHoveredItemChange"," @param {EventFacade} e"," @protected"," **/"," _afterHoveredItemChange: function (e) {"," var newVal = e.newVal,"," prevVal = e.prevVal;",""," if (prevVal) {"," prevVal.removeClass(this[_CLASS_ITEM_HOVER]);"," }",""," if (newVal) {"," newVal.addClass(this[_CLASS_ITEM_HOVER]);"," }"," },",""," /**"," Handles `inputNode` blur events.",""," @method _afterListInputBlur"," @protected"," **/"," _afterListInputBlur: function () {"," this._listInputFocused = false;",""," if (this.get(VISIBLE) &&"," !this._mouseOverList &&"," (this._lastInputKey !== KEY_TAB ||"," !this.get('tabSelect') ||"," !this.get(ACTIVE_ITEM))) {"," this.hide();"," }"," },",""," /**"," Handles `inputNode` focus events.",""," @method _afterListInputFocus"," @protected"," **/"," _afterListInputFocus: function () {"," this._listInputFocused = true;"," },",""," /**"," Handles `mouseover` events.",""," @method _afterMouseOver"," @param {EventFacade} e"," @protected"," **/"," _afterMouseOver: function (e) {"," var itemNode = e.domEvent.target.ancestor(this[_SELECTOR_ITEM], true);",""," this._mouseOverList = true;",""," if (itemNode) {"," this._set(HOVERED_ITEM, itemNode);"," }"," },",""," /**"," Handles `mouseout` events.",""," @method _afterMouseOut"," @param {EventFacade} e"," @protected"," **/"," _afterMouseOut: function () {"," this._mouseOverList = false;"," this._set(HOVERED_ITEM, null);"," },",""," /**"," Handles `resultsChange` events.",""," @method _afterResultsChange"," @param {EventFacade} e"," @protected"," **/"," _afterResultsChange: function (e) {"," this._syncResults(e.newVal);",""," if (!this.get(ALWAYS_SHOW_LIST)) {"," this.set(VISIBLE, !!e.newVal.length);"," }"," },",""," /**"," Handles `visibleChange` events.",""," @method _afterVisibleChange"," @param {EventFacade} e"," @protected"," **/"," _afterVisibleChange: function (e) {"," this._syncVisibility(!!e.newVal);"," },",""," /**"," Delegated event handler for item `click` events.",""," @method _onItemClick"," @param {EventFacade} e"," @protected"," **/"," _onItemClick: function (e) {"," var itemNode = e.currentTarget;",""," this.set(ACTIVE_ITEM, itemNode);"," this.selectItem(itemNode, e);"," },",""," // -- Protected Default Event Handlers -------------------------------------",""," /**"," Default `select` event handler.",""," @method _defSelectFn"," @param {EventFacade} e"," @protected"," **/"," _defSelectFn: function (e) {"," var text = e.result.text;",""," // TODO: support typeahead completion, etc."," this._inputNode.focus();"," this._updateValue(text);"," this._ariaSay('item_selected', {item: text});"," this.hide();"," }","}, {"," ATTRS: {"," /**"," If `true`, the first item in the list will be activated by default when"," the list is initially displayed and when results change.",""," @attribute activateFirstItem"," @type Boolean"," @default false"," **/"," activateFirstItem: {"," value: false"," },",""," /**"," Item that's currently active, if any. When the user presses enter, this"," is the item that will be selected.",""," @attribute activeItem"," @type Node"," **/"," activeItem: {"," setter: Y.one,"," value: null"," },",""," /**"," If `true`, the list will remain visible even when there are no results"," to display.",""," @attribute alwaysShowList"," @type Boolean"," @default false"," **/"," alwaysShowList: {"," value: false"," },",""," /**"," If `true`, keyboard navigation will wrap around to the opposite end of"," the list when navigating past the first or last item.",""," @attribute circular"," @type Boolean"," @default true"," **/"," circular: {"," value: true"," },",""," /**"," Item currently being hovered over by the mouse, if any.",""," @attribute hoveredItem"," @type Node|null"," @readOnly"," **/"," hoveredItem: {"," readOnly: true,"," value: null"," },",""," /**"," Node that will contain result items.",""," @attribute listNode"," @type Node|null"," @initOnly"," **/"," listNode: {"," writeOnce: 'initOnly',"," value: null"," },",""," /**"," If `true`, the viewport will be scrolled to ensure that the active list"," item is visible when necessary.",""," @attribute scrollIntoView"," @type Boolean"," @default false"," **/"," scrollIntoView: {"," value: false"," },",""," /**"," Translatable strings used by the AutoCompleteList widget.",""," @attribute strings"," @type Object"," **/"," strings: {"," valueFn: function () {"," return Y.Intl.get('autocomplete-list');"," }"," },",""," /**"," If `true`, pressing the tab key while the list is visible will select"," the active item, if any.",""," @attribute tabSelect"," @type Boolean"," @default true"," **/"," tabSelect: {"," value: true"," },",""," // The \"visible\" attribute is documented in Widget."," visible: {"," value: false"," }"," },",""," CSS_PREFIX: Y.ClassNameManager.getClassName('aclist')","});","","Y.AutoCompleteList = List;","","/**","Alias for <a href=\"AutoCompleteList.html\">`AutoCompleteList`</a>. See that class","for API docs.","","@class AutoComplete","**/","","Y.AutoComplete = List;","","","}, '@VERSION@', {\"after\": [\"autocomplete-sources\"], \"lang\": [\"en\"], \"requires\": [\"autocomplete-base\", \"event-resize\", \"node-screen\", \"selector-css3\", \"shim-plugin\", \"widget\", \"widget-position\", \"widget-position-align\"], \"skinnable\": true});"];
+_yuitest_coverage["build/autocomplete-list/autocomplete-list.js"].code=["YUI.add('autocomplete-list', function (Y, NAME) {","","/**","Traditional autocomplete dropdown list widget, just like Mom used to make.","","@module autocomplete","@submodule autocomplete-list","**/","","/**","Traditional autocomplete dropdown list widget, just like Mom used to make.","","@class AutoCompleteList","@extends Widget","@uses AutoCompleteBase","@uses WidgetPosition","@uses WidgetPositionAlign","@constructor","@param {Object} config Configuration object.","**/","","var Lang = Y.Lang,"," Node = Y.Node,"," YArray = Y.Array,",""," // Whether or not we need an iframe shim."," useShim = Y.UA.ie && Y.UA.ie < 7,",""," // keyCode constants."," KEY_TAB = 9,",""," // String shorthand."," _CLASS_ITEM = '_CLASS_ITEM',"," _CLASS_ITEM_ACTIVE = '_CLASS_ITEM_ACTIVE',"," _CLASS_ITEM_HOVER = '_CLASS_ITEM_HOVER',"," _SELECTOR_ITEM = '_SELECTOR_ITEM',",""," ACTIVE_ITEM = 'activeItem',"," ALWAYS_SHOW_LIST = 'alwaysShowList',"," CIRCULAR = 'circular',"," HOVERED_ITEM = 'hoveredItem',"," ID = 'id',"," ITEM = 'item',"," LIST = 'list',"," RESULT = 'result',"," RESULTS = 'results',"," VISIBLE = 'visible',"," WIDTH = 'width',",""," // Event names."," EVT_SELECT = 'select',","","List = Y.Base.create('autocompleteList', Y.Widget, ["," Y.AutoCompleteBase,"," Y.WidgetPosition,"," Y.WidgetPositionAlign","], {"," // -- Prototype Properties -------------------------------------------------"," ARIA_TEMPLATE: '<div/>',"," ITEM_TEMPLATE: '<li/>',"," LIST_TEMPLATE: '<ul/>',",""," // Widget automatically attaches delegated event handlers to everything in"," // Y.Node.DOM_EVENTS, including synthetic events. Since Widget's event"," // delegation won't work for the synthetic valuechange event, and since"," // it creates a name collision between the backcompat \"valueChange\" synth"," // event alias and AutoCompleteList's \"valueChange\" event for the \"value\""," // attr, this hack is necessary in order to prevent Widget from attaching"," // valuechange handlers."," UI_EVENTS: (function () {"," var uiEvents = Y.merge(Y.Node.DOM_EVENTS);",""," delete uiEvents.valuechange;"," delete uiEvents.valueChange;",""," return uiEvents;"," }()),",""," // -- Lifecycle Prototype Methods ------------------------------------------"," initializer: function () {"," var inputNode = this.get('inputNode');",""," if (!inputNode) {"," Y.error('No inputNode specified.');"," return;"," }",""," this._inputNode = inputNode;"," this._listEvents = [];",""," // This ensures that the list is rendered inside the same parent as the"," // input node by default, which is necessary for proper ARIA support."," this.DEF_PARENT_NODE = inputNode.get('parentNode');",""," // Cache commonly used classnames and selectors for performance."," this[_CLASS_ITEM] = this.getClassName(ITEM);"," this[_CLASS_ITEM_ACTIVE] = this.getClassName(ITEM, 'active');"," this[_CLASS_ITEM_HOVER] = this.getClassName(ITEM, 'hover');"," this[_SELECTOR_ITEM] = '.' + this[_CLASS_ITEM];",""," /**"," Fires when an autocomplete suggestion is selected from the list,"," typically via a keyboard action or mouse click.",""," @event select"," @param {Node} itemNode List item node that was selected."," @param {Object} result AutoComplete result object."," @preventable _defSelectFn"," **/"," this.publish(EVT_SELECT, {"," defaultFn: this._defSelectFn"," });"," },",""," destructor: function () {"," while (this._listEvents.length) {"," this._listEvents.pop().detach();"," }",""," if (this._ariaNode) {"," this._ariaNode.remove().destroy(true);"," }"," },",""," bindUI: function () {"," this._bindInput();"," this._bindList();"," },",""," renderUI: function () {"," var ariaNode = this._createAriaNode(),"," boundingBox = this.get('boundingBox'),"," contentBox = this.get('contentBox'),"," inputNode = this._inputNode,"," listNode = this._createListNode(),"," parentNode = inputNode.get('parentNode');",""," inputNode.addClass(this.getClassName('input')).setAttrs({"," 'aria-autocomplete': LIST,"," 'aria-expanded' : false,"," 'aria-owns' : listNode.get('id')"," });",""," // ARIA node must be outside the widget or announcements won't be made"," // when the widget is hidden."," parentNode.append(ariaNode);",""," // Add an iframe shim for IE6."," if (useShim) {"," boundingBox.plug(Y.Plugin.Shim);"," }",""," // Force position: absolute on the boundingBox. This works around a"," // potential CSS loading race condition in Gecko that can cause the"," // boundingBox to become relatively positioned, which is all kinds of"," // no good."," boundingBox.setStyle('position', 'absolute');",""," this._ariaNode = ariaNode;"," this._boundingBox = boundingBox;"," this._contentBox = contentBox;"," this._listNode = listNode;"," this._parentNode = parentNode;"," },",""," syncUI: function () {"," // No need to call _syncPosition() here; the other _sync methods will"," // call it when necessary."," this._syncResults();"," this._syncVisibility();"," },",""," // -- Public Prototype Methods ---------------------------------------------",""," /**"," Hides the list, unless the `alwaysShowList` attribute is `true`.",""," @method hide"," @see show"," @chainable"," **/"," hide: function () {"," return this.get(ALWAYS_SHOW_LIST) ? this : this.set(VISIBLE, false);"," },",""," /**"," Selects the specified _itemNode_, or the current `activeItem` if _itemNode_"," is not specified.",""," @method selectItem"," @param {Node} [itemNode] Item node to select."," @param {EventFacade} [originEvent] Event that triggered the selection, if"," any."," @chainable"," **/"," selectItem: function (itemNode, originEvent) {"," if (itemNode) {"," if (!itemNode.hasClass(this[_CLASS_ITEM])) {"," return this;"," }"," } else {"," itemNode = this.get(ACTIVE_ITEM);",""," if (!itemNode) {"," return this;"," }"," }",""," this.fire(EVT_SELECT, {"," itemNode : itemNode,"," originEvent: originEvent || null,"," result : itemNode.getData(RESULT)"," });",""," return this;"," },",""," // -- Protected Prototype Methods ------------------------------------------",""," /**"," Activates the next item after the currently active item. If there is no next"," item and the `circular` attribute is `true`, focus will wrap back to the"," input node.",""," @method _activateNextItem"," @chainable"," @protected"," **/"," _activateNextItem: function () {"," var item = this.get(ACTIVE_ITEM),"," nextItem;",""," if (item) {"," nextItem = item.next(this[_SELECTOR_ITEM]) ||"," (this.get(CIRCULAR) ? null : item);"," } else {"," nextItem = this._getFirstItemNode();"," }",""," this.set(ACTIVE_ITEM, nextItem);",""," return this;"," },",""," /**"," Activates the item previous to the currently active item. If there is no"," previous item and the `circular` attribute is `true`, focus will wrap back"," to the input node.",""," @method _activatePrevItem"," @chainable"," @protected"," **/"," _activatePrevItem: function () {"," var item = this.get(ACTIVE_ITEM),"," prevItem = item ? item.previous(this[_SELECTOR_ITEM]) :"," this.get(CIRCULAR) && this._getLastItemNode();",""," this.set(ACTIVE_ITEM, prevItem || null);",""," return this;"," },",""," /**"," Appends the specified result _items_ to the list inside a new item node.",""," @method _add"," @param {Array|Node|HTMLElement|String} items Result item or array of"," result items."," @return {NodeList} Added nodes."," @protected"," **/"," _add: function (items) {"," var itemNodes = [];",""," YArray.each(Lang.isArray(items) ? items : [items], function (item) {"," itemNodes.push(this._createItemNode(item).setData(RESULT, item));"," }, this);",""," itemNodes = Y.all(itemNodes);"," this._listNode.append(itemNodes.toFrag());",""," return itemNodes;"," },",""," /**"," Updates the ARIA live region with the specified message.",""," @method _ariaSay"," @param {String} stringId String id (from the `strings` attribute) of the"," message to speak."," @param {Object} [subs] Substitutions for placeholders in the string."," @protected"," **/"," _ariaSay: function (stringId, subs) {"," var message = this.get('strings.' + stringId);"," this._ariaNode.set('text', subs ? Lang.sub(message, subs) : message);"," },",""," /**"," Binds `inputNode` events and behavior.",""," @method _bindInput"," @protected"," **/"," _bindInput: function () {"," var inputNode = this._inputNode,"," alignNode, alignWidth, tokenInput;",""," // Null align means we can auto-align. Set align to false to prevent"," // auto-alignment, or a valid alignment config to customize the"," // alignment."," if (this.get('align') === null) {"," // If this is a tokenInput, align with its bounding box."," // Otherwise, align with the inputNode. Bit of a cheat."," tokenInput = this.get('tokenInput');"," alignNode = (tokenInput && tokenInput.get('boundingBox')) || inputNode;",""," this.set('align', {"," node : alignNode,"," points: ['tl', 'bl']"," });",""," // If no width config is set, attempt to set the list's width to the"," // width of the alignment node. If the alignment node's width is"," // falsy, do nothing."," if (!this.get(WIDTH) && (alignWidth = alignNode.get('offsetWidth'))) {"," this.set(WIDTH, alignWidth);"," }"," }",""," // Attach inputNode events."," this._listEvents = this._listEvents.concat(["," inputNode.after('blur', this._afterListInputBlur, this),"," inputNode.after('focus', this._afterListInputFocus, this)"," ]);"," },",""," /**"," Binds list events.",""," @method _bindList"," @protected"," **/"," _bindList: function () {"," this._listEvents = this._listEvents.concat(["," Y.one('doc').after('click', this._afterDocClick, this),"," Y.one('win').after('windowresize', this._syncPosition, this),",""," this.after({"," mouseover: this._afterMouseOver,"," mouseout : this._afterMouseOut,",""," activeItemChange : this._afterActiveItemChange,"," alwaysShowListChange: this._afterAlwaysShowListChange,"," hoveredItemChange : this._afterHoveredItemChange,"," resultsChange : this._afterResultsChange,"," visibleChange : this._afterVisibleChange"," }),",""," this._listNode.delegate('click', this._onItemClick,"," this[_SELECTOR_ITEM], this)"," ]);"," },",""," /**"," Clears the contents of the tray.",""," @method _clear"," @protected"," **/"," _clear: function () {"," this.set(ACTIVE_ITEM, null);"," this._set(HOVERED_ITEM, null);",""," this._listNode.get('children').remove(true);"," },",""," /**"," Creates and returns an ARIA live region node.",""," @method _createAriaNode"," @return {Node} ARIA node."," @protected"," **/"," _createAriaNode: function () {"," var ariaNode = Node.create(this.ARIA_TEMPLATE);",""," return ariaNode.addClass(this.getClassName('aria')).setAttrs({"," 'aria-live': 'polite',"," role : 'status'"," });"," },",""," /**"," Creates and returns an item node with the specified _content_.",""," @method _createItemNode"," @param {Object} result Result object."," @return {Node} Item node."," @protected"," **/"," _createItemNode: function (result) {"," var itemNode = Node.create(this.ITEM_TEMPLATE);",""," return itemNode.addClass(this[_CLASS_ITEM]).setAttrs({"," id : Y.stamp(itemNode),"," role: 'option'"," }).setAttribute('data-text', result.text).append(result.display);"," },",""," /**"," Creates and returns a list node. If the `listNode` attribute is already set"," to an existing node, that node will be used.",""," @method _createListNode"," @return {Node} List node."," @protected"," **/"," _createListNode: function () {"," var listNode = this.get('listNode') || Node.create(this.LIST_TEMPLATE);",""," listNode.addClass(this.getClassName(LIST)).setAttrs({"," id : Y.stamp(listNode),"," role: 'listbox'"," });",""," this._set('listNode', listNode);"," this.get('contentBox').append(listNode);",""," return listNode;"," },",""," /**"," Gets the first item node in the list, or `null` if the list is empty.",""," @method _getFirstItemNode"," @return {Node|null}"," @protected"," **/"," _getFirstItemNode: function () {"," return this._listNode.one(this[_SELECTOR_ITEM]);"," },",""," /**"," Gets the last item node in the list, or `null` if the list is empty.",""," @method _getLastItemNode"," @return {Node|null}"," @protected"," **/"," _getLastItemNode: function () {"," return this._listNode.one(this[_SELECTOR_ITEM] + ':last-child');"," },",""," /**"," Synchronizes the result list's position and alignment.",""," @method _syncPosition"," @protected"," **/"," _syncPosition: function () {"," // Force WidgetPositionAlign to refresh its alignment."," this._syncUIPosAlign();",""," // Resize the IE6 iframe shim to match the list's dimensions."," this._syncShim();"," },",""," /**"," Synchronizes the results displayed in the list with those in the _results_"," argument, or with the `results` attribute if an argument is not provided.",""," @method _syncResults"," @param {Array} [results] Results."," @protected"," **/"," _syncResults: function (results) {"," if (!results) {"," results = this.get(RESULTS);"," }",""," this._clear();",""," if (results.length) {"," this._add(results);"," this._ariaSay('items_available');"," }",""," this._syncPosition();",""," if (this.get('activateFirstItem') && !this.get(ACTIVE_ITEM)) {"," this.set(ACTIVE_ITEM, this._getFirstItemNode());"," }"," },",""," /**"," Synchronizes the size of the iframe shim used for IE6 and lower. In other"," browsers, this method is a noop.",""," @method _syncShim"," @protected"," **/"," _syncShim: useShim ? function () {"," var shim = this._boundingBox.shim;",""," if (shim) {"," shim.sync();"," }"," } : function () {},",""," /**"," Synchronizes the visibility of the tray with the _visible_ argument, or with"," the `visible` attribute if an argument is not provided.",""," @method _syncVisibility"," @param {Boolean} [visible] Visibility."," @protected"," **/"," _syncVisibility: function (visible) {"," if (this.get(ALWAYS_SHOW_LIST)) {"," visible = true;"," this.set(VISIBLE, visible);"," }",""," if (typeof visible === 'undefined') {"," visible = this.get(VISIBLE);"," }",""," this._inputNode.set('aria-expanded', visible);"," this._boundingBox.set('aria-hidden', !visible);",""," if (visible) {"," this._syncPosition();"," } else {"," this.set(ACTIVE_ITEM, null);"," this._set(HOVERED_ITEM, null);",""," // Force a reflow to work around a glitch in IE6 and 7 where some of"," // the contents of the list will sometimes remain visible after the"," // container is hidden."," this._boundingBox.get('offsetWidth');"," }",""," // In some pages, IE7 fails to repaint the contents of the list after it"," // becomes visible. Toggling a bogus class on the body forces a repaint"," // that fixes the issue."," if (Y.UA.ie === 7) {"," // Note: We don't actually need to use ClassNameManager here. This"," // class isn't applying any actual styles; it's just frobbing the"," // body element to force a repaint. The actual class name doesn't"," // really matter."," Y.one('body')"," .addClass('yui3-ie7-sucks')"," .removeClass('yui3-ie7-sucks');"," }"," },",""," // -- Protected Event Handlers ---------------------------------------------",""," /**"," Handles `activeItemChange` events.",""," @method _afterActiveItemChange"," @param {EventFacade} e"," @protected"," **/"," _afterActiveItemChange: function (e) {"," var inputNode = this._inputNode,"," newVal = e.newVal,"," prevVal = e.prevVal,"," node;",""," // The previous item may have disappeared by the time this handler runs,"," // so we need to be careful."," if (prevVal && prevVal._node) {"," prevVal.removeClass(this[_CLASS_ITEM_ACTIVE]);"," }",""," if (newVal) {"," newVal.addClass(this[_CLASS_ITEM_ACTIVE]);"," inputNode.set('aria-activedescendant', newVal.get(ID));"," } else {"," inputNode.removeAttribute('aria-activedescendant');"," }",""," if (this.get('scrollIntoView')) {"," node = newVal || inputNode;",""," if (!node.inRegion(Y.DOM.viewportRegion(), true)"," || !node.inRegion(this._contentBox, true)) {",""," node.scrollIntoView();"," }"," }"," },",""," /**"," Handles `alwaysShowListChange` events.",""," @method _afterAlwaysShowListChange"," @param {EventFacade} e"," @protected"," **/"," _afterAlwaysShowListChange: function (e) {"," this.set(VISIBLE, e.newVal || this.get(RESULTS).length > 0);"," },",""," /**"," Handles click events on the document. If the click is outside both the"," input node and the bounding box, the list will be hidden.",""," @method _afterDocClick"," @param {EventFacade} e"," @protected"," @since 3.5.0"," **/"," _afterDocClick: function (e) {"," var boundingBox = this._boundingBox,"," target = e.target;",""," if(target !== this._inputNode && target !== boundingBox &&"," target.ancestor('#' + boundingBox.get('id'), true)){"," this.hide();"," }"," },",""," /**"," Handles `hoveredItemChange` events.",""," @method _afterHoveredItemChange"," @param {EventFacade} e"," @protected"," **/"," _afterHoveredItemChange: function (e) {"," var newVal = e.newVal,"," prevVal = e.prevVal;",""," if (prevVal) {"," prevVal.removeClass(this[_CLASS_ITEM_HOVER]);"," }",""," if (newVal) {"," newVal.addClass(this[_CLASS_ITEM_HOVER]);"," }"," },",""," /**"," Handles `inputNode` blur events.",""," @method _afterListInputBlur"," @protected"," **/"," _afterListInputBlur: function () {"," this._listInputFocused = false;",""," if (this.get(VISIBLE) &&"," !this._mouseOverList &&"," (this._lastInputKey !== KEY_TAB ||"," !this.get('tabSelect') ||"," !this.get(ACTIVE_ITEM))) {"," this.hide();"," }"," },",""," /**"," Handles `inputNode` focus events.",""," @method _afterListInputFocus"," @protected"," **/"," _afterListInputFocus: function () {"," this._listInputFocused = true;"," },",""," /**"," Handles `mouseover` events.",""," @method _afterMouseOver"," @param {EventFacade} e"," @protected"," **/"," _afterMouseOver: function (e) {"," var itemNode = e.domEvent.target.ancestor(this[_SELECTOR_ITEM], true);",""," this._mouseOverList = true;",""," if (itemNode) {"," this._set(HOVERED_ITEM, itemNode);"," }"," },",""," /**"," Handles `mouseout` events.",""," @method _afterMouseOut"," @param {EventFacade} e"," @protected"," **/"," _afterMouseOut: function () {"," this._mouseOverList = false;"," this._set(HOVERED_ITEM, null);"," },",""," /**"," Handles `resultsChange` events.",""," @method _afterResultsChange"," @param {EventFacade} e"," @protected"," **/"," _afterResultsChange: function (e) {"," this._syncResults(e.newVal);",""," if (!this.get(ALWAYS_SHOW_LIST)) {"," this.set(VISIBLE, !!e.newVal.length);"," }"," },",""," /**"," Handles `visibleChange` events.",""," @method _afterVisibleChange"," @param {EventFacade} e"," @protected"," **/"," _afterVisibleChange: function (e) {"," this._syncVisibility(!!e.newVal);"," },",""," /**"," Delegated event handler for item `click` events.",""," @method _onItemClick"," @param {EventFacade} e"," @protected"," **/"," _onItemClick: function (e) {"," var itemNode = e.currentTarget;",""," this.set(ACTIVE_ITEM, itemNode);"," this.selectItem(itemNode, e);"," },",""," // -- Protected Default Event Handlers -------------------------------------",""," /**"," Default `select` event handler.",""," @method _defSelectFn"," @param {EventFacade} e"," @protected"," **/"," _defSelectFn: function (e) {"," var text = e.result.text;",""," // TODO: support typeahead completion, etc."," this._inputNode.focus();"," this._updateValue(text);"," this._ariaSay('item_selected', {item: text});"," this.hide();"," }","}, {"," ATTRS: {"," /**"," If `true`, the first item in the list will be activated by default when"," the list is initially displayed and when results change.",""," @attribute activateFirstItem"," @type Boolean"," @default false"," **/"," activateFirstItem: {"," value: false"," },",""," /**"," Item that's currently active, if any. When the user presses enter, this"," is the item that will be selected.",""," @attribute activeItem"," @type Node"," **/"," activeItem: {"," setter: Y.one,"," value: null"," },",""," /**"," If `true`, the list will remain visible even when there are no results"," to display.",""," @attribute alwaysShowList"," @type Boolean"," @default false"," **/"," alwaysShowList: {"," value: false"," },",""," /**"," If `true`, keyboard navigation will wrap around to the opposite end of"," the list when navigating past the first or last item.",""," @attribute circular"," @type Boolean"," @default true"," **/"," circular: {"," value: true"," },",""," /**"," Item currently being hovered over by the mouse, if any.",""," @attribute hoveredItem"," @type Node|null"," @readOnly"," **/"," hoveredItem: {"," readOnly: true,"," value: null"," },",""," /**"," Node that will contain result items.",""," @attribute listNode"," @type Node|null"," @initOnly"," **/"," listNode: {"," writeOnce: 'initOnly',"," value: null"," },",""," /**"," If `true`, the viewport will be scrolled to ensure that the active list"," item is visible when necessary.",""," @attribute scrollIntoView"," @type Boolean"," @default false"," **/"," scrollIntoView: {"," value: false"," },",""," /**"," Translatable strings used by the AutoCompleteList widget.",""," @attribute strings"," @type Object"," **/"," strings: {"," valueFn: function () {"," return Y.Intl.get('autocomplete-list');"," }"," },",""," /**"," If `true`, pressing the tab key while the list is visible will select"," the active item, if any.",""," @attribute tabSelect"," @type Boolean"," @default true"," **/"," tabSelect: {"," value: true"," },",""," // The \"visible\" attribute is documented in Widget."," visible: {"," value: false"," }"," },",""," CSS_PREFIX: Y.ClassNameManager.getClassName('aclist')","});","","Y.AutoCompleteList = List;","","/**","Alias for <a href=\"AutoCompleteList.html\">`AutoCompleteList`</a>. See that class","for API docs.","","@class AutoComplete","**/","","Y.AutoComplete = List;","","","}, '@VERSION@', {\"lang\": [\"en\"], \"requires\": [\"autocomplete-base\", \"event-resize\", \"node-screen\", \"selector-css3\", \"shim-plugin\", \"widget\", \"widget-position\", \"widget-position-align\"], \"skinnable\": true});"];
_yuitest_coverage["build/autocomplete-list/autocomplete-list.js"].lines = {"1":0,"22":0,"71":0,"73":0,"74":0,"76":0,"81":0,"83":0,"84":0,"85":0,"88":0,"89":0,"93":0,"96":0,"97":0,"98":0,"99":0,"110":0,"116":0,"117":0,"120":0,"121":0,"126":0,"127":0,"131":0,"138":0,"146":0,"149":0,"150":0,"157":0,"159":0,"160":0,"161":0,"162":0,"163":0,"169":0,"170":0,"183":0,"197":0,"198":0,"199":0,"202":0,"204":0,"205":0,"209":0,"215":0,"230":0,"233":0,"234":0,"237":0,"240":0,"242":0,"255":0,"259":0,"261":0,"274":0,"276":0,"277":0,"280":0,"281":0,"283":0,"296":0,"297":0,"307":0,"313":0,"316":0,"317":0,"319":0,"327":0,"328":0,"333":0,"346":0,"373":0,"374":0,"376":0,"387":0,"389":0,"404":0,"406":0,"421":0,"423":0,"428":0,"429":0,"431":0,"442":0,"453":0,"464":0,"467":0,"479":0,"480":0,"483":0,"485":0,"486":0,"487":0,"490":0,"492":0,"493":0,"505":0,"507":0,"508":0,"521":0,"522":0,"523":0,"526":0,"527":0,"530":0,"531":0,"533":0,"534":0,"536":0,"537":0,"542":0,"548":0,"553":0,"569":0,"576":0,"577":0,"580":0,"581":0,"582":0,"584":0,"587":0,"588":0,"590":0,"593":0,"606":0,"619":0,"622":0,"624":0,"636":0,"639":0,"640":0,"643":0,"644":0,"655":0,"657":0,"662":0,"673":0,"684":0,"686":0,"688":0,"689":0,"701":0,"702":0,"713":0,"715":0,"716":0,"728":0,"739":0,"741":0,"742":0,"755":0,"758":0,"759":0,"760":0,"761":0,"857":0,"882":0,"891":0};
_yuitest_coverage["build/autocomplete-list/autocomplete-list.js"].functions = {"(anonymous 2):70":0,"initializer:80":0,"destructor:115":0,"bindUI:125":0,"renderUI:130":0,"syncUI:166":0,"hide:182":0,"selectItem:196":0,"_activateNextItem:229":0,"_activatePrevItem:254":0,"(anonymous 3):276":0,"_add:273":0,"_ariaSay:295":0,"_bindInput:306":0,"_bindList:345":0,"_clear:372":0,"_createAriaNode:386":0,"_createItemNode:403":0,"_createListNode:420":0,"_getFirstItemNode:441":0,"_getLastItemNode:452":0,"_syncPosition:462":0,"_syncResults:478":0,"(anonymous 4):504":0,"_syncVisibility:520":0,"_afterActiveItemChange:568":0,"_afterAlwaysShowListChange:605":0,"_afterDocClick:618":0,"_afterHoveredItemChange:635":0,"_afterListInputBlur:654":0,"_afterListInputFocus:672":0,"_afterMouseOver:683":0,"_afterMouseOut:700":0,"_afterResultsChange:712":0,"_afterVisibleChange:727":0,"_onItemClick:738":0,"_defSelectFn:754":0,"valueFn:856":0,"(anonymous 1):1":0};
_yuitest_coverage["build/autocomplete-list/autocomplete-list.js"].coveredLines = 159;
@@ -1122,4 +1122,4 @@ _yuitest_coverline("build/autocomplete-list/autocomplete-list.js", 891);
Y.AutoComplete = List;
-}, '@VERSION@', {"after": ["autocomplete-sources"], "lang": ["en"], "requires": ["autocomplete-base", "event-resize", "node-screen", "selector-css3", "shim-plugin", "widget", "widget-position", "widget-position-align"], "skinnable": true});
+}, '@VERSION@', {"lang": ["en"], "requires": ["autocomplete-base", "event-resize", "node-screen", "selector-css3", "shim-plugin", "widget", "widget-position", "widget-position-align"], "skinnable": true});
View
2 build/autocomplete-list/autocomplete-list-debug.js
@@ -891,4 +891,4 @@ for API docs.
Y.AutoComplete = List;
-}, '@VERSION@', {"after": ["autocomplete-sources"], "lang": ["en"], "requires": ["autocomplete-base", "event-resize", "node-screen", "selector-css3", "shim-plugin", "widget", "widget-position", "widget-position-align"], "skinnable": true});
+}, '@VERSION@', {"lang": ["en"], "requires": ["autocomplete-base", "event-resize", "node-screen", "selector-css3", "shim-plugin", "widget", "widget-position", "widget-position-align"], "skinnable": true});
View
3 build/autocomplete-list/autocomplete-list-min.js
@@ -1,2 +1 @@
-YUI.add("autocomplete-list",function(b,k){var i=b.Lang,w=b.Node,m=b.Array,h=b.UA.ie&&b.UA.ie<7,q=9,t="_CLASS_ITEM",u="_CLASS_ITEM_ACTIVE",d="_CLASS_ITEM_HOVER",v="_SELECTOR_ITEM",f="activeItem",l="alwaysShowList",p="circular",s="hoveredItem",n="id",e="item",c="list",x="result",j="results",r="visible",g="width",o="select",a=b.Base.create("autocompleteList",b.Widget,[b.AutoCompleteBase,b.WidgetPosition,b.WidgetPositionAlign],{ARIA_TEMPLATE:"<div/>",ITEM_TEMPLATE:"<li/>",LIST_TEMPLATE:"<ul/>",UI_EVENTS:(function(){var y=b.merge(b.Node.DOM_EVENTS);delete y.valuechange;delete y.valueChange;return y;}()),initializer:function(){var y=this.get("inputNode");if(!y){b.error("No inputNode specified.");return;}this._inputNode=y;this._listEvents=[];this.DEF_PARENT_NODE=y.get("parentNode");this[t]=this.getClassName(e);this[u]=this.getClassName(e,"active");this[d]=this.getClassName(e,"hover");this[v]="."+this[t];this.publish(o,{defaultFn:this._defSelectFn});},destructor:function(){while(this._listEvents.length){this._listEvents.pop().detach();}if(this._ariaNode){this._ariaNode.remove().destroy(true);}},bindUI:function(){this._bindInput();this._bindList();},renderUI:function(){var D=this._createAriaNode(),A=this.get("boundingBox"),z=this.get("contentBox"),C=this._inputNode,B=this._createListNode(),y=C.get("parentNode");C.addClass(this.getClassName("input")).setAttrs({"aria-autocomplete":c,"aria-expanded":false,"aria-owns":B.get("id")});y.append(D);if(h){A.plug(b.Plugin.Shim);}A.setStyle("position","absolute");this._ariaNode=D;this._boundingBox=A;this._contentBox=z;this._listNode=B;this._parentNode=y;},syncUI:function(){this._syncResults();this._syncVisibility();},hide:function(){return this.get(l)?this:this.set(r,false);},selectItem:function(z,y){if(z){if(!z.hasClass(this[t])){return this;}}else{z=this.get(f);if(!z){return this;}}this.fire(o,{itemNode:z,originEvent:y||null,result:z.getData(x)});return this;},_activateNextItem:function(){var z=this.get(f),y;if(z){y=z.next(this[v])||(this.get(p)?null:z);}else{y=this._getFirstItemNode();}this.set(f,y);return this;},_activatePrevItem:function(){var z=this.get(f),y=z?z.previous(this[v]):this.get(p)&&this._getLastItemNode();this.set(f,y||null);return this;},_add:function(y){var z=[];m.each(i.isArray(y)?y:[y],function(A){z.push(this._createItemNode(A).setData(x,A));},this);z=b.all(z);this._listNode.append(z.toFrag());return z;},_ariaSay:function(A,y){var z=this.get("strings."+A);this._ariaNode.set("text",y?i.sub(z,y):z);},_bindInput:function(){var B=this._inputNode,z,A,y;if(this.get("align")===null){y=this.get("tokenInput");z=(y&&y.get("boundingBox"))||B;this.set("align",{node:z,points:["tl","bl"]});if(!this.get(g)&&(A=z.get("offsetWidth"))){this.set(g,A);}}this._listEvents=this._listEvents.concat([B.after("blur",this._afterListInputBlur,this),B.after("focus",this._afterListInputFocus,this)]);},_bindList:function(){this._listEvents=this._listEvents.concat([b.one("doc").after("click",this._afterDocClick,this),b.one("win").after("windowresize",this._syncPosition,this),this.after({mouseover:this._afterMouseOver,mouseout:this._afterMouseOut,activeItemChange:this._afterActiveItemChange,alwaysShowListChange:this._afterAlwaysShowListChange,hoveredItemChange:this._afterHoveredItemChange,resultsChange:this._afterResultsChange,visibleChange:this._afterVisibleChange}),this._listNode.delegate("click",this._onItemClick,this[v],this)]);},_clear:function(){this.set(f,null);this._set(s,null);this._listNode.get("children").remove(true);},_createAriaNode:function(){var y=w.create(this.ARIA_TEMPLATE);return y.addClass(this.getClassName("aria")).setAttrs({"aria-live":"polite",role:"status"});},_createItemNode:function(y){var z=w.create(this.ITEM_TEMPLATE);return z.addClass(this[t]).setAttrs({id:b.stamp(z),role:"option"}).setAttribute("data-text",y.text).append(y.display);},_createListNode:function(){var y=this.get("listNode")||w.create(this.LIST_TEMPLATE);y.addClass(this.getClassName(c)).setAttrs({id:b.stamp(y),role:"listbox"});this._set("listNode",y);this.get("contentBox").append(y);return y;},_getFirstItemNode:function(){return this._listNode.one(this[v]);},_getLastItemNode:function(){return this._listNode.one(this[v]+":last-child");},_syncPosition:function(){this._syncUIPosAlign();this._syncShim();},_syncResults:function(y){if(!y){y=this.get(j);}this._clear();if(y.length){this._add(y);this._ariaSay("items_available");}this._syncPosition();if(this.get("activateFirstItem")&&!this.get(f)){this.set(f,this._getFirstItemNode());}},_syncShim:h?function(){var y=this._boundingBox.shim;if(y){y.sync();}}:function(){},_syncVisibility:function(y){if(this.get(l)){y=true;this.set(r,y);}if(typeof y==="undefined"){y=this.get(r);}this._inputNode.set("aria-expanded",y);this._boundingBox.set("aria-hidden",!y);if(y){this._syncPosition();}else{this.set(f,null);this._set(s,null);this._boundingBox.get("offsetWidth");}if(b.UA.ie===7){b.one("body").addClass("yui3-ie7-sucks").removeClass("yui3-ie7-sucks");}},_afterActiveItemChange:function(B){var A=this._inputNode,y=B.newVal,C=B.prevVal,z;if(C&&C._node){C.removeClass(this[u]);}if(y){y.addClass(this[u]);A.set("aria-activedescendant",y.get(n));}else{A.removeAttribute("aria-activedescendant");}if(this.get("scrollIntoView")){z=y||A;if(!z.inRegion(b.DOM.viewportRegion(),true)||!z.inRegion(this._contentBox,true)){z.scrollIntoView();}}},_afterAlwaysShowListChange:function(y){this.set(r,y.newVal||this.get(j).length>0);},_afterDocClick:function(A){var y=this._boundingBox,z=A.target;if(z!==this._inputNode&&z!==y&&z.ancestor("#"+y.get("id"),true)){this.hide();}},_afterHoveredItemChange:function(z){var y=z.newVal,A=z.prevVal;if(A){A.removeClass(this[d]);}if(y){y.addClass(this[d]);}},_afterListInputBlur:function(){this._listInputFocused=false;if(this.get(r)&&!this._mouseOverList&&(this._lastInputKey!==q||!this.get("tabSelect")||!this.get(f))){this.hide();}},_afterListInputFocus:function(){this._listInputFocused=true;},_afterMouseOver:function(y){var z=y.domEvent.target.ancestor(this[v],true);
-this._mouseOverList=true;if(z){this._set(s,z);}},_afterMouseOut:function(){this._mouseOverList=false;this._set(s,null);},_afterResultsChange:function(y){this._syncResults(y.newVal);if(!this.get(l)){this.set(r,!!y.newVal.length);}},_afterVisibleChange:function(y){this._syncVisibility(!!y.newVal);},_onItemClick:function(y){var z=y.currentTarget;this.set(f,z);this.selectItem(z,y);},_defSelectFn:function(y){var z=y.result.text;this._inputNode.focus();this._updateValue(z);this._ariaSay("item_selected",{item:z});this.hide();}},{ATTRS:{activateFirstItem:{value:false},activeItem:{setter:b.one,value:null},alwaysShowList:{value:false},circular:{value:true},hoveredItem:{readOnly:true,value:null},listNode:{writeOnce:"initOnly",value:null},scrollIntoView:{value:false},strings:{valueFn:function(){return b.Intl.get("autocomplete-list");}},tabSelect:{value:true},visible:{value:false}},CSS_PREFIX:b.ClassNameManager.getClassName("aclist")});b.AutoCompleteList=a;b.AutoComplete=a;},"@VERSION@",{"after":["autocomplete-sources"],"lang":["en"],"requires":["autocomplete-base","event-resize","node-screen","selector-css3","shim-plugin","widget","widget-position","widget-position-align"],"skinnable":true});
+YUI.add("autocomplete-list",function(e,t){var n=e.Lang,r=e.Node,i=e.Array,s=e.UA.ie&&e.UA.ie<7,o=9,u="_CLASS_ITEM",a="_CLASS_ITEM_ACTIVE",f="_CLASS_ITEM_HOVER",l="_SELECTOR_ITEM",c="activeItem",h="alwaysShowList",p="circular",d="hoveredItem",v="id",m="item",g="list",y="result",b="results",w="visible",E="width",S="select",x=e.Base.create("autocompleteList",e.Widget,[e.AutoCompleteBase,e.WidgetPosition,e.WidgetPositionAlign],{ARIA_TEMPLATE:"<div/>",ITEM_TEMPLATE:"<li/>",LIST_TEMPLATE:"<ul/>",UI_EVENTS:function(){var t=e.merge(e.Node.DOM_EVENTS);return delete t.valuechange,delete t.valueChange,t}(),initializer:function(){var t=this.get("inputNode");if(!t){e.error("No inputNode specified.");return}this._inputNode=t,this._listEvents=[],this.DEF_PARENT_NODE=t.get("parentNode"),this[u]=this.getClassName(m),this[a]=this.getClassName(m,"active"),this[f]=this.