@datagrok/helm 2.3.2 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/package-test.js +1 -1
  3. package/dist/package-test.js.map +1 -1
  4. package/dist/package.js +1 -1
  5. package/dist/package.js.map +1 -1
  6. package/package.json +4 -4
  7. package/src/cell-renderer.ts +5 -4
  8. package/src/helm-helper.ts +6 -6
  9. package/src/helm-monomer-placer.ts +1 -1
  10. package/src/helm-web-editor.ts +5 -5
  11. package/src/package-test.ts +0 -1
  12. package/src/package-utils.ts +211 -69
  13. package/src/package.ts +10 -71
  14. package/src/tests/findMonomers-tests.ts +2 -1
  15. package/src/tests/get-monomer-tests.ts +1 -49
  16. package/src/tests/helm-input-tests.ts +31 -20
  17. package/src/utils/get-monomer.ts +49 -1
  18. package/src/utils/helm-grid-cell-renderer.ts +8 -9
  19. package/src/utils/index.ts +2 -3
  20. package/src/widgets/helm-input.ts +4 -4
  21. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +63 -0
  22. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +116 -0
  23. package/vendor/dojo-1.10.10/dijit/Destroyable.js +35 -0
  24. package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +83 -0
  25. package/vendor/dojo-1.10.10/dijit/Tooltip.js +240 -0
  26. package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +612 -0
  27. package/vendor/dojo-1.10.10/dijit/Viewport.js +44 -0
  28. package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +87 -0
  29. package/vendor/dojo-1.10.10/dijit/WidgetSet.js +76 -0
  30. package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +247 -0
  31. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +94 -0
  32. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +238 -0
  33. package/vendor/dojo-1.10.10/dijit/_Contained.js +17 -0
  34. package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +56 -0
  35. package/vendor/dojo-1.10.10/dijit/_Container.js +47 -0
  36. package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +108 -0
  37. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +198 -0
  38. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +372 -0
  39. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +11 -0
  40. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +66 -0
  41. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +188 -0
  42. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +472 -0
  43. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +8 -0
  44. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +31 -0
  45. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +90 -0
  46. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +205 -0
  47. package/vendor/dojo-1.10.10/dijit/_Widget.js +66 -0
  48. package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +352 -0
  49. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +353 -0
  50. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +1200 -0
  51. package/vendor/dojo-1.10.10/dijit/_base/focus.js +68 -0
  52. package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +207 -0
  53. package/vendor/dojo-1.10.10/dijit/_base/manager.js +10 -0
  54. package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +35 -0
  55. package/vendor/dojo-1.10.10/dijit/_base/place.js +52 -0
  56. package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +131 -0
  57. package/vendor/dojo-1.10.10/dijit/_base/popup.js +23 -0
  58. package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +58 -0
  59. package/vendor/dojo-1.10.10/dijit/_base/scroll.js +6 -0
  60. package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +22 -0
  61. package/vendor/dojo-1.10.10/dijit/_base/sniff.js +3 -0
  62. package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +12 -0
  63. package/vendor/dojo-1.10.10/dijit/_base/typematic.js +3 -0
  64. package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +10 -0
  65. package/vendor/dojo-1.10.10/dijit/_base/wai.js +32 -0
  66. package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +109 -0
  67. package/vendor/dojo-1.10.10/dijit/_base/window.js +6 -0
  68. package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +18 -0
  69. package/vendor/dojo-1.10.10/dijit/_base.js +4 -0
  70. package/vendor/dojo-1.10.10/dijit/a11y.js +109 -0
  71. package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +191 -0
  72. package/vendor/dojo-1.10.10/dijit/a11yclick.js +66 -0
  73. package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +139 -0
  74. package/vendor/dojo-1.10.10/dijit/focus.js +188 -0
  75. package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +371 -0
  76. package/vendor/dojo-1.10.10/dijit/form/Button.js +49 -0
  77. package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +130 -0
  78. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +4 -0
  79. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +27 -0
  80. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +21 -0
  81. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +86 -0
  82. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +38 -0
  83. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +102 -0
  84. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +7 -0
  85. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +26 -0
  86. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +50 -0
  87. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +116 -0
  88. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +26 -0
  89. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +81 -0
  90. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +24 -0
  91. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +51 -0
  92. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +22 -0
  93. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +67 -0
  94. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +111 -0
  95. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +254 -0
  96. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +32 -0
  97. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +69 -0
  98. package/vendor/dojo-1.10.10/dijit/hccss.js +9 -0
  99. package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +21 -0
  100. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +215 -0
  101. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +550 -0
  102. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +7 -0
  103. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +25 -0
  104. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +235 -0
  105. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +653 -0
  106. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +171 -0
  107. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +411 -0
  108. package/vendor/dojo-1.10.10/dijit/layout/StackController.js +194 -0
  109. package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +410 -0
  110. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +99 -0
  111. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +236 -0
  112. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +47 -0
  113. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +190 -0
  114. package/vendor/dojo-1.10.10/dijit/layout/utils.js +77 -0
  115. package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +151 -0
  116. package/vendor/dojo-1.10.10/dijit/main.js +4 -0
  117. package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +16 -0
  118. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +2 -0
  119. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +21 -0
  120. package/vendor/dojo-1.10.10/dijit/nls/loading.js +2 -0
  121. package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +47 -0
  122. package/vendor/dojo-1.10.10/dijit/place.js +142 -0
  123. package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +407 -0
  124. package/vendor/dojo-1.10.10/dijit/popup.js +162 -0
  125. package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +441 -0
  126. package/vendor/dojo-1.10.10/dijit/registry.js +79 -0
  127. package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +159 -0
  128. package/vendor/dojo-1.10.10/dijit/selection.js +364 -0
  129. package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +525 -0
  130. package/vendor/dojo-1.10.10/dijit/typematic.js +96 -0
  131. package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +211 -0
  132. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +195 -0
  133. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +761 -0
  134. package/vendor/dojo-1.10.10/dojo/Stateful.js +90 -0
  135. package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +218 -0
  136. package/vendor/dojo-1.10.10/dojo/_base/url.js +87 -0
  137. package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +109 -0
  138. package/vendor/dojo-1.10.10/dojo/cache.js +9 -0
  139. package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +7 -0
  140. package/vendor/dojo-1.10.10/dojo/colors.js +74 -0
  141. package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +232 -0
  142. package/vendor/dojo-1.10.10/dojo/cookie.js +48 -0
  143. package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +98 -0
  144. package/vendor/dojo-1.10.10/dojo/date/stamp.js +82 -0
  145. package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +144 -0
  146. package/vendor/dojo-1.10.10/dojo/dojo.js +7 -0
  147. package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +18680 -0
  148. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +27 -0
  149. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +101 -0
  150. package/vendor/dojo-1.10.10/dojo/fx/easing.js +165 -0
  151. package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +276 -0
  152. package/vendor/dojo-1.10.10/dojo/fx.js +271 -0
  153. package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +443 -0
  154. package/vendor/dojo-1.10.10/dojo/hccss.js +26 -0
  155. package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +52 -0
  156. package/vendor/dojo-1.10.10/dojo/html.js +161 -0
  157. package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +370 -0
  158. package/vendor/dojo-1.10.10/dojo/io/iframe.js +71 -0
  159. package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +190 -0
  160. package/vendor/dojo-1.10.10/dojo/io/script.js +112 -0
  161. package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +280 -0
  162. package/vendor/dojo-1.10.10/dojo/parser.js +437 -0
  163. package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +915 -0
  164. package/vendor/dojo-1.10.10/dojo/promise/all.js +59 -0
  165. package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +77 -0
  166. package/vendor/dojo-1.10.10/dojo/regexp.js +32 -0
  167. package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +70 -0
  168. package/vendor/dojo-1.10.10/dojo/request/iframe.js +291 -0
  169. package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +438 -0
  170. package/vendor/dojo-1.10.10/dojo/request/script.js +129 -0
  171. package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +237 -0
  172. package/vendor/dojo-1.10.10/dojo/require.js +11 -0
  173. package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +7 -0
  174. package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
  175. package/vendor/dojo-1.10.10/dojo/string.js +67 -0
  176. package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +181 -0
  177. package/vendor/dojo-1.10.10/dojo/touch.js +191 -0
  178. package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +468 -0
  179. package/vendor/dojo-1.10.10/dojo/uacss.js +36 -0
  180. package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +85 -0
  181. package/vendor/dojo-1.10.10/dojo/window.js +141 -0
  182. package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +241 -0
  183. package/vendor/dojo-1.10.10/dojox/charting/Chart.js +626 -0
  184. package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +1220 -0
  185. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +5 -0
  186. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +16 -0
  187. package/vendor/dojo-1.10.10/dojox/charting/Element.js +247 -0
  188. package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +402 -0
  189. package/vendor/dojo-1.10.10/dojox/charting/Series.js +24 -0
  190. package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +58 -0
  191. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +191 -0
  192. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +577 -0
  193. package/vendor/dojo-1.10.10/dojox/charting/Theme.js +42 -0
  194. package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +120 -0
  195. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +11 -0
  196. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +36 -0
  197. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +77 -0
  198. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +144 -0
  199. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +58 -0
  200. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +123 -0
  201. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +54 -0
  202. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +124 -0
  203. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +28 -0
  204. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +74 -0
  205. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +116 -0
  206. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +178 -0
  207. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +24 -0
  208. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +83 -0
  209. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +557 -0
  210. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +980 -0
  211. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +65 -0
  212. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +224 -0
  213. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +91 -0
  214. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +164 -0
  215. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +7 -0
  216. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +14 -0
  217. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +168 -0
  218. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +311 -0
  219. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +61 -0
  220. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +161 -0
  221. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +141 -0
  222. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +242 -0
  223. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +126 -0
  224. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +243 -0
  225. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +108 -0
  226. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +290 -0
  227. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +13 -0
  228. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +14 -0
  229. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +13 -0
  230. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +14 -0
  231. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +153 -0
  232. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +249 -0
  233. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +253 -0
  234. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +472 -0
  235. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +182 -0
  236. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +356 -0
  237. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +6 -0
  238. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +12 -0
  239. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +6 -0
  240. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +12 -0
  241. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +7 -0
  242. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +13 -0
  243. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +110 -0
  244. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +208 -0
  245. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +303 -0
  246. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +547 -0
  247. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +134 -0
  248. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +207 -0
  249. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +299 -0
  250. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +537 -0
  251. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +24 -0
  252. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +44 -0
  253. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +7 -0
  254. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +14 -0
  255. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +22 -0
  256. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +33 -0
  257. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +20 -0
  258. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +31 -0
  259. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +6 -0
  260. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +12 -0
  261. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +68 -0
  262. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +120 -0
  263. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +209 -0
  264. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +214 -0
  265. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +76 -0
  266. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +77 -0
  267. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +59 -0
  268. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +70 -0
  269. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +220 -0
  270. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +262 -0
  271. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +23 -0
  272. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +36 -0
  273. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +39 -0
  274. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +106 -0
  275. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +5 -0
  276. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +12 -0
  277. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +4 -0
  278. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +3 -0
  279. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +102 -0
  280. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +165 -0
  281. package/vendor/dojo-1.10.10/dojox/color/Palette.js +163 -0
  282. package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +460 -0
  283. package/vendor/dojo-1.10.10/dojox/color/_base.js +174 -0
  284. package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +196 -0
  285. package/vendor/dojo-1.10.10/dojox/gfx/fx.js +297 -0
  286. package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +350 -0
  287. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +63 -0
  288. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +91 -0
  289. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +170 -0
  290. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +501 -0
  291. package/vendor/dojo-1.10.10/dojox/gfx/path.js +319 -0
  292. package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +478 -0
  293. package/vendor/dojo-1.10.10/dojox/gfx/shape.js +459 -0
  294. package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +1091 -0
  295. package/vendor/dojo-1.10.10/dojox/gfx/svg.js +662 -0
  296. package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +1023 -0
  297. package/vendor/dojo-1.10.10/dojox/gfx/utils.js +199 -0
  298. package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +322 -0
  299. package/vendor/dojo-1.10.10/dojox/gfx.js +2 -0
  300. package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +1136 -0
  301. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +151 -0
  302. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +169 -0
  303. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +93 -0
  304. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +125 -0
  305. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +81 -0
  306. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +132 -0
  307. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +54 -0
  308. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +78 -0
  309. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +61 -0
  310. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +77 -0
  311. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +87 -0
  312. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +107 -0
  313. package/vendor/dojo-1.10.10/dojox/lang/functional.js +4 -0
  314. package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +3 -0
  315. package/vendor/dojo-1.10.10/dojox/lang/utils.js +86 -0
  316. package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +121 -0
  317. package/vendor/dojo-1.10.10/dojox/main.js +4 -0
  318. package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +14 -0
  319. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +112 -0
  320. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +208 -0
  321. package/vendor/dojo-1.10.10/dojox/storage/Provider.js +62 -0
  322. package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +344 -0
  323. package/vendor/dojo-1.10.10/dojox/storage/manager.js +110 -0
  324. package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +263 -0
@@ -0,0 +1,761 @@
1
+ define("dojo/NodeList-manipulate", ["./query", "./_base/lang", "./_base/array", "./dom-construct", "./dom-attr", "./NodeList-dom"], function(dquery, lang, array, construct, attr){
2
+ // module:
3
+ // dojo/NodeList-manipulate
4
+
5
+ /*=====
6
+ return function(){
7
+ // summary:
8
+ // Adds chainable methods to dojo.query() / NodeList instances for manipulating HTML
9
+ // and DOM nodes and their properties.
10
+ };
11
+ =====*/
12
+
13
+ var NodeList = dquery.NodeList;
14
+
15
+ //TODO: add a way to parse for widgets in the injected markup?
16
+
17
+
18
+ function getWrapInsertion(/*DOMNode*/node){
19
+ // summary:
20
+ // finds the innermost element to use for wrap insertion.
21
+
22
+ //Make it easy, assume single nesting, no siblings.
23
+ while(node.childNodes[0] && node.childNodes[0].nodeType == 1){
24
+ node = node.childNodes[0];
25
+ }
26
+ return node; //DOMNode
27
+ }
28
+
29
+ function makeWrapNode(/*DOMNode||String*/html, /*DOMNode*/refNode){
30
+ // summary:
31
+ // convert HTML into nodes if it is not already a node.
32
+ if(typeof html == "string"){
33
+ html = construct.toDom(html, (refNode && refNode.ownerDocument));
34
+ if(html.nodeType == 11){
35
+ //DocumentFragment cannot handle cloneNode, so choose first child.
36
+ html = html.childNodes[0];
37
+ }
38
+ }else if(html.nodeType == 1 && html.parentNode){
39
+ //This element is already in the DOM clone it, but not its children.
40
+ html = html.cloneNode(false);
41
+ }
42
+ return html; /*DOMNode*/
43
+ }
44
+
45
+ lang.extend(NodeList, {
46
+ _placeMultiple: function(/*String||Node||NodeList*/query, /*String*/position){
47
+ // summary:
48
+ // private method for inserting queried nodes into all nodes in this NodeList
49
+ // at different positions. Differs from NodeList.place because it will clone
50
+ // the nodes in this NodeList if the query matches more than one element.
51
+ var nl2 = typeof query == "string" || query.nodeType ? dquery(query) : query;
52
+ var toAdd = [];
53
+ for(var i = 0; i < nl2.length; i++){
54
+ //Go backwards in DOM to make dom insertions easier via insertBefore
55
+ var refNode = nl2[i];
56
+ var length = this.length;
57
+ for(var j = length - 1, item; item = this[j]; j--){
58
+ if(i > 0){
59
+ //Need to clone the item. This also means
60
+ //it needs to be added to the current NodeList
61
+ //so it can also be the target of other chaining operations.
62
+ item = this._cloneNode(item);
63
+ toAdd.unshift(item);
64
+ }
65
+ if(j == length - 1){
66
+ construct.place(item, refNode, position);
67
+ }else{
68
+ refNode.parentNode.insertBefore(item, refNode);
69
+ }
70
+ refNode = item;
71
+ }
72
+ }
73
+
74
+ if(toAdd.length){
75
+ //Add the toAdd items to the current NodeList. Build up list of args
76
+ //to pass to splice.
77
+ toAdd.unshift(0);
78
+ toAdd.unshift(this.length - 1);
79
+ Array.prototype.splice.apply(this, toAdd);
80
+ }
81
+
82
+ return this; // dojo/NodeList
83
+ },
84
+
85
+ innerHTML: function(/*String|DOMNode|NodeList?*/ value){
86
+ // summary:
87
+ // allows setting the innerHTML of each node in the NodeList,
88
+ // if there is a value passed in, otherwise, reads the innerHTML value of the first node.
89
+ // description:
90
+ // This method is simpler than the dojo/NodeList.html() method provided by
91
+ // `dojo/NodeList-html`. This method just does proper innerHTML insertion of HTML fragments,
92
+ // and it allows for the innerHTML to be read for the first node in the node list.
93
+ // Since dojo/NodeList-html already took the "html" name, this method is called
94
+ // "innerHTML". However, if dojo/NodeList-html has not been loaded yet, this
95
+ // module will define an "html" method that can be used instead. Be careful if you
96
+ // are working in an environment where it is possible that dojo/NodeList-html could
97
+ // have been loaded, since its definition of "html" will take precedence.
98
+ // The nodes represented by the value argument will be cloned if more than one
99
+ // node is in this NodeList. The nodes in this NodeList are returned in the "set"
100
+ // usage of this method, not the HTML that was inserted.
101
+ // returns:
102
+ // if no value is passed, the result is String, the innerHTML of the first node.
103
+ // If a value is passed, the return is this dojo/NodeList
104
+ // example:
105
+ // assume a DOM created by this markup:
106
+ // | <div id="foo"></div>
107
+ // | <div id="bar"></div>
108
+ // This code inserts `<p>Hello World</p>` into both divs:
109
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
110
+ // | ], function(query){
111
+ // | query("div").innerHTML("<p>Hello World</p>");
112
+ // | });
113
+ // example:
114
+ // assume a DOM created by this markup:
115
+ // | <div id="foo"><p>Hello Mars</p></div>
116
+ // | <div id="bar"><p>Hello World</p></div>
117
+ // This code returns `<p>Hello Mars</p>`:
118
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
119
+ // | ], function(query){
120
+ // | var message = query("div").innerHTML();
121
+ // | });
122
+ if(arguments.length){
123
+ return this.addContent(value, "only"); // dojo/NodeList
124
+ }else{
125
+ return this[0].innerHTML; //String
126
+ }
127
+ },
128
+
129
+ /*=====
130
+ html: function(value){
131
+ // summary:
132
+ // see the information for "innerHTML". "html" is an alias for "innerHTML", but is
133
+ // only defined if dojo/NodeList-html has not been loaded.
134
+ // description:
135
+ // An alias for the "innerHTML" method, but only defined if there is not an existing
136
+ // "html" method on dojo/NodeList. Be careful if you are working in an environment
137
+ // where it is possible that dojo/NodeList-html could have been loaded, since its
138
+ // definition of "html" will take precedence. If you are not sure if dojo/NodeList-html
139
+ // could be loaded, use the "innerHTML" method.
140
+ // value: String|DOMNode|NodeList?
141
+ // The HTML fragment to use as innerHTML. If value is not passed, then the innerHTML
142
+ // of the first element in this NodeList is returned.
143
+ // returns:
144
+ // if no value is passed, the result is String, the innerHTML of the first node.
145
+ // If a value is passed, the return is this dojo/NodeList
146
+ return; // dojo/NodeList|String
147
+ },
148
+ =====*/
149
+
150
+ text: function(/*String*/value){
151
+ // summary:
152
+ // allows setting the text value of each node in the NodeList,
153
+ // if there is a value passed in, otherwise, returns the text value for all the
154
+ // nodes in the NodeList in one string.
155
+ // example:
156
+ // assume a DOM created by this markup:
157
+ // | <div id="foo"></div>
158
+ // | <div id="bar"></div>
159
+ // This code inserts "Hello World" into both divs:
160
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
161
+ // | ], function(query){
162
+ // | query("div").text("Hello World");
163
+ // | });
164
+ // example:
165
+ // assume a DOM created by this markup:
166
+ // | <div id="foo"><p>Hello Mars <span>today</span></p></div>
167
+ // | <div id="bar"><p>Hello World</p></div>
168
+ // This code returns "Hello Mars today":
169
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
170
+ // | ], function(query){
171
+ // | var message = query("div").text();
172
+ // | });
173
+ // returns:
174
+ // if no value is passed, the result is String, the text value of the first node.
175
+ // If a value is passed, the return is this dojo/NodeList
176
+ if(arguments.length){
177
+ for(var i = 0, node; node = this[i]; i++){
178
+ if(node.nodeType == 1){
179
+ attr.set(node, 'textContent', value);
180
+ }
181
+ }
182
+ return this; // dojo/NodeList
183
+ }else{
184
+ var result = "";
185
+ for(i = 0; node = this[i]; i++){
186
+ result += attr.get(node, 'textContent');
187
+ }
188
+ return result; //String
189
+ }
190
+ },
191
+
192
+ val: function(/*String||Array*/value){
193
+ // summary:
194
+ // If a value is passed, allows seting the value property of form elements in this
195
+ // NodeList, or properly selecting/checking the right value for radio/checkbox/select
196
+ // elements. If no value is passed, the value of the first node in this NodeList
197
+ // is returned.
198
+ // returns:
199
+ // if no value is passed, the result is String or an Array, for the value of the
200
+ // first node.
201
+ // If a value is passed, the return is this dojo/NodeList
202
+ // example:
203
+ // assume a DOM created by this markup:
204
+ // | <input type="text" value="foo">
205
+ // | <select multiple>
206
+ // | <option value="red" selected>Red</option>
207
+ // | <option value="blue">Blue</option>
208
+ // | <option value="yellow" selected>Yellow</option>
209
+ // | </select>
210
+ // This code gets and sets the values for the form fields above:
211
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
212
+ // | ], function(query){
213
+ // | query('[type="text"]').val(); //gets value foo
214
+ // | query('[type="text"]').val("bar"); //sets the input's value to "bar"
215
+ // | query("select").val() //gets array value ["red", "yellow"]
216
+ // | query("select").val(["blue", "yellow"]) //Sets the blue and yellow options to selected.
217
+ // | });
218
+
219
+ //Special work for input elements.
220
+ if(arguments.length){
221
+ var isArray = lang.isArray(value);
222
+ for(var index = 0, node; node = this[index]; index++){
223
+ var name = node.nodeName.toUpperCase();
224
+ var type = node.type;
225
+ var newValue = isArray ? value[index] : value;
226
+
227
+ if(name == "SELECT"){
228
+ var opts = node.options;
229
+ for(var i = 0; i < opts.length; i++){
230
+ var opt = opts[i];
231
+ if(node.multiple){
232
+ opt.selected = (array.indexOf(value, opt.value) != -1);
233
+ }else{
234
+ opt.selected = (opt.value == newValue);
235
+ }
236
+ }
237
+ }else if(type == "checkbox" || type == "radio"){
238
+ node.checked = (node.value == newValue);
239
+ }else{
240
+ node.value = newValue;
241
+ }
242
+ }
243
+ return this; // dojo/NodeList
244
+ }else{
245
+ //node already declared above.
246
+ node = this[0];
247
+ if(!node || node.nodeType != 1){
248
+ return undefined;
249
+ }
250
+ value = node.value || "";
251
+ if(node.nodeName.toUpperCase() == "SELECT" && node.multiple){
252
+ //A multivalued selectbox. Do the pain.
253
+ value = [];
254
+ //opts declared above in if block.
255
+ opts = node.options;
256
+ //i declared above in if block;
257
+ for(i = 0; i < opts.length; i++){
258
+ //opt declared above in if block
259
+ opt = opts[i];
260
+ if(opt.selected){
261
+ value.push(opt.value);
262
+ }
263
+ }
264
+ if(!value.length){
265
+ value = null;
266
+ }
267
+ }
268
+ return value; //String||Array
269
+ }
270
+ },
271
+
272
+ append: function(/*String||DOMNode||NodeList*/content){
273
+ // summary:
274
+ // appends the content to every node in the NodeList.
275
+ // description:
276
+ // The content will be cloned if the length of NodeList
277
+ // is greater than 1. Only the DOM nodes are cloned, not
278
+ // any attached event handlers.
279
+ // returns:
280
+ // dojo/NodeList, the nodes currently in this NodeList will be returned,
281
+ // not the appended content.
282
+ // example:
283
+ // assume a DOM created by this markup:
284
+ // | <div id="foo"><p>Hello Mars</p></div>
285
+ // | <div id="bar"><p>Hello World</p></div>
286
+ // Running this code:
287
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
288
+ // | ], function(query){
289
+ // | query("div").append("<span>append</span>");
290
+ // | });
291
+ // Results in this DOM structure:
292
+ // | <div id="foo"><p>Hello Mars</p><span>append</span></div>
293
+ // | <div id="bar"><p>Hello World</p><span>append</span></div>
294
+ return this.addContent(content, "last"); // dojo/NodeList
295
+ },
296
+
297
+ appendTo: function(/*String*/query){
298
+ // summary:
299
+ // appends nodes in this NodeList to the nodes matched by
300
+ // the query passed to appendTo.
301
+ // description:
302
+ // The nodes in this NodeList will be cloned if the query
303
+ // matches more than one element. Only the DOM nodes are cloned, not
304
+ // any attached event handlers.
305
+ // returns:
306
+ // dojo/NodeList, the nodes currently in this NodeList will be returned,
307
+ // not the matched nodes from the query.
308
+ // example:
309
+ // assume a DOM created by this markup:
310
+ // | <span>append</span>
311
+ // | <p>Hello Mars</p>
312
+ // | <p>Hello World</p>
313
+ // Running this code:
314
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
315
+ // | ], function(query){
316
+ // | query("span").appendTo("p");
317
+ // | });
318
+ // Results in this DOM structure:
319
+ // | <p>Hello Mars<span>append</span></p>
320
+ // | <p>Hello World<span>append</span></p>
321
+ return this._placeMultiple(query, "last"); // dojo/NodeList
322
+ },
323
+
324
+ prepend: function(/*String||DOMNode||NodeList*/content){
325
+ // summary:
326
+ // prepends the content to every node in the NodeList.
327
+ // description:
328
+ // The content will be cloned if the length of NodeList
329
+ // is greater than 1. Only the DOM nodes are cloned, not
330
+ // any attached event handlers.
331
+ // returns:
332
+ // dojo/NodeList, the nodes currently in this NodeList will be returned,
333
+ // not the appended content.
334
+ // assume a DOM created by this markup:
335
+ // | <div id="foo"><p>Hello Mars</p></div>
336
+ // | <div id="bar"><p>Hello World</p></div>
337
+ // Running this code:
338
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
339
+ // | ], function(query){
340
+ // | query("div").prepend("<span>prepend</span>");
341
+ // | });
342
+ // Results in this DOM structure:
343
+ // | <div id="foo"><span>prepend</span><p>Hello Mars</p></div>
344
+ // | <div id="bar"><span>prepend</span><p>Hello World</p></div>
345
+ return this.addContent(content, "first"); // dojo/NodeList
346
+ },
347
+
348
+ prependTo: function(/*String*/query){
349
+ // summary:
350
+ // prepends nodes in this NodeList to the nodes matched by
351
+ // the query passed to prependTo.
352
+ // description:
353
+ // The nodes in this NodeList will be cloned if the query
354
+ // matches more than one element. Only the DOM nodes are cloned, not
355
+ // any attached event handlers.
356
+ // returns:
357
+ // dojo/NodeList, the nodes currently in this NodeList will be returned,
358
+ // not the matched nodes from the query.
359
+ // example:
360
+ // assume a DOM created by this markup:
361
+ // | <span>prepend</span>
362
+ // | <p>Hello Mars</p>
363
+ // | <p>Hello World</p>
364
+ // Running this code:
365
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
366
+ // | ], function(query){
367
+ // | query("span").prependTo("p");
368
+ // | });
369
+ // Results in this DOM structure:
370
+ // | <p><span>prepend</span>Hello Mars</p>
371
+ // | <p><span>prepend</span>Hello World</p>
372
+ return this._placeMultiple(query, "first"); // dojo/NodeList
373
+ },
374
+
375
+ after: function(/*String||Element||NodeList*/content){
376
+ // summary:
377
+ // Places the content after every node in the NodeList.
378
+ // description:
379
+ // The content will be cloned if the length of NodeList
380
+ // is greater than 1. Only the DOM nodes are cloned, not
381
+ // any attached event handlers.
382
+ // returns:
383
+ // dojo/NodeList, the nodes currently in this NodeList will be returned,
384
+ // not the appended content.
385
+ // example:
386
+ // assume a DOM created by this markup:
387
+ // | <div id="foo"><p>Hello Mars</p></div>
388
+ // | <div id="bar"><p>Hello World</p></div>
389
+ // Running this code:
390
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
391
+ // | ], function(query){
392
+ // | query("div").after("<span>after</span>");
393
+ // | });
394
+ // Results in this DOM structure:
395
+ // | <div id="foo"><p>Hello Mars</p></div><span>after</span>
396
+ // | <div id="bar"><p>Hello World</p></div><span>after</span>
397
+ return this.addContent(content, "after"); // dojo/NodeList
398
+ },
399
+
400
+ insertAfter: function(/*String*/query){
401
+ // summary:
402
+ // The nodes in this NodeList will be placed after the nodes
403
+ // matched by the query passed to insertAfter.
404
+ // description:
405
+ // The nodes in this NodeList will be cloned if the query
406
+ // matches more than one element. Only the DOM nodes are cloned, not
407
+ // any attached event handlers.
408
+ // returns:
409
+ // dojo/NodeList, the nodes currently in this NodeList will be returned,
410
+ // not the matched nodes from the query.
411
+ // example:
412
+ // assume a DOM created by this markup:
413
+ // | <span>after</span>
414
+ // | <p>Hello Mars</p>
415
+ // | <p>Hello World</p>
416
+ // Running this code:
417
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
418
+ // | ], function(query){
419
+ // | query("span").insertAfter("p");
420
+ // | });
421
+ // Results in this DOM structure:
422
+ // | <p>Hello Mars</p><span>after</span>
423
+ // | <p>Hello World</p><span>after</span>
424
+ return this._placeMultiple(query, "after"); // dojo/NodeList
425
+ },
426
+
427
+ before: function(/*String||DOMNode||NodeList*/content){
428
+ // summary:
429
+ // Places the content before every node in the NodeList.
430
+ // description:
431
+ // The content will be cloned if the length of NodeList
432
+ // is greater than 1. Only the DOM nodes are cloned, not
433
+ // any attached event handlers.
434
+ // returns:
435
+ // dojo/NodeList, the nodes currently in this NodeList will be returned,
436
+ // not the appended content.
437
+ // example:
438
+ // assume a DOM created by this markup:
439
+ // | <div id="foo"><p>Hello Mars</p></div>
440
+ // | <div id="bar"><p>Hello World</p></div>
441
+ // Running this code:
442
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
443
+ // | ], function(query){
444
+ // | query("div").before("<span>before</span>");
445
+ // | });
446
+ // Results in this DOM structure:
447
+ // | <span>before</span><div id="foo"><p>Hello Mars</p></div>
448
+ // | <span>before</span><div id="bar"><p>Hello World</p></div>
449
+ return this.addContent(content, "before"); // dojo/NodeList
450
+ },
451
+
452
+ insertBefore: function(/*String*/query){
453
+ // summary:
454
+ // The nodes in this NodeList will be placed after the nodes
455
+ // matched by the query passed to insertAfter.
456
+ // description:
457
+ // The nodes in this NodeList will be cloned if the query
458
+ // matches more than one element. Only the DOM nodes are cloned, not
459
+ // any attached event handlers.
460
+ // returns:
461
+ // dojo/NodeList, the nodes currently in this NodeList will be returned,
462
+ // not the matched nodes from the query.
463
+ // example:
464
+ // assume a DOM created by this markup:
465
+ // | <span>before</span>
466
+ // | <p>Hello Mars</p>
467
+ // | <p>Hello World</p>
468
+ // Running this code:
469
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
470
+ // | ], function(query){
471
+ // | query("span").insertBefore("p");
472
+ // | });
473
+ // Results in this DOM structure:
474
+ // | <span>before</span><p>Hello Mars</p>
475
+ // | <span>before</span><p>Hello World</p>
476
+ return this._placeMultiple(query, "before"); // dojo/NodeList
477
+ },
478
+
479
+ /*=====
480
+ remove: function(simpleFilter){
481
+ // summary:
482
+ // alias for dojo/NodeList's orphan method. Removes elements
483
+ // in this list that match the simple filter from their parents
484
+ // and returns them as a new NodeList.
485
+ // simpleFilter: String
486
+ // single-expression CSS rule. For example, ".thinger" or
487
+ // "#someId[attrName='value']" but not "div > span". In short,
488
+ // anything which does not invoke a descent to evaluate but
489
+ // can instead be used to test a single node is acceptable.
490
+
491
+ return; // dojo/NodeList
492
+ },
493
+ =====*/
494
+ remove: NodeList.prototype.orphan,
495
+
496
+ wrap: function(/*String||DOMNode*/html){
497
+ // summary:
498
+ // Wrap each node in the NodeList with html passed to wrap.
499
+ // description:
500
+ // html will be cloned if the NodeList has more than one
501
+ // element. Only DOM nodes are cloned, not any attached
502
+ // event handlers.
503
+ // returns:
504
+ // the nodes in the current NodeList will be returned,
505
+ // not the nodes from html argument.
506
+ // example:
507
+ // assume a DOM created by this markup:
508
+ // | <b>one</b>
509
+ // | <b>two</b>
510
+ // Running this code:
511
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
512
+ // | ], function(query){
513
+ // | query("b").wrap("<div><span></span></div>");
514
+ // | });
515
+ // Results in this DOM structure:
516
+ // | <div><span><b>one</b></span></div>
517
+ // | <div><span><b>two</b></span></div>
518
+ if(this[0]){
519
+ html = makeWrapNode(html, this[0]);
520
+
521
+ //Now cycle through the elements and do the insertion.
522
+ for(var i = 0, node; node = this[i]; i++){
523
+ //Always clone because if html is used to hold one of
524
+ //the "this" nodes, then on the clone of html it will contain
525
+ //that "this" node, and that would be bad.
526
+ var clone = this._cloneNode(html);
527
+ if(node.parentNode){
528
+ node.parentNode.replaceChild(clone, node);
529
+ }
530
+ //Find deepest element and insert old node in it.
531
+ var insertion = getWrapInsertion(clone);
532
+ insertion.appendChild(node);
533
+ }
534
+ }
535
+ return this; // dojo/NodeList
536
+ },
537
+
538
+ wrapAll: function(/*String||DOMNode*/html){
539
+ // summary:
540
+ // Insert html where the first node in this NodeList lives, then place all
541
+ // nodes in this NodeList as the child of the html.
542
+ // returns:
543
+ // the nodes in the current NodeList will be returned,
544
+ // not the nodes from html argument.
545
+ // example:
546
+ // assume a DOM created by this markup:
547
+ // | <div class="container">
548
+ // | <div class="red">Red One</div>
549
+ // | <div class="blue">Blue One</div>
550
+ // | <div class="red">Red Two</div>
551
+ // | <div class="blue">Blue Two</div>
552
+ // | </div>
553
+ // Running this code:
554
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
555
+ // | ], function(query){
556
+ // | query(".red").wrapAll('<div class="allRed"></div>');
557
+ // | });
558
+ // Results in this DOM structure:
559
+ // | <div class="container">
560
+ // | <div class="allRed">
561
+ // | <div class="red">Red One</div>
562
+ // | <div class="red">Red Two</div>
563
+ // | </div>
564
+ // | <div class="blue">Blue One</div>
565
+ // | <div class="blue">Blue Two</div>
566
+ // | </div>
567
+ if(this[0]){
568
+ html = makeWrapNode(html, this[0]);
569
+
570
+ //Place the wrap HTML in place of the first node.
571
+ this[0].parentNode.replaceChild(html, this[0]);
572
+
573
+ //Now cycle through the elements and move them inside
574
+ //the wrap.
575
+ var insertion = getWrapInsertion(html);
576
+ for(var i = 0, node; node = this[i]; i++){
577
+ insertion.appendChild(node);
578
+ }
579
+ }
580
+ return this; // dojo/NodeList
581
+ },
582
+
583
+ wrapInner: function(/*String||DOMNode*/html){
584
+ // summary:
585
+ // For each node in the NodeList, wrap all its children with the passed in html.
586
+ // description:
587
+ // html will be cloned if the NodeList has more than one
588
+ // element. Only DOM nodes are cloned, not any attached
589
+ // event handlers.
590
+ // returns:
591
+ // the nodes in the current NodeList will be returned,
592
+ // not the nodes from html argument.
593
+ // example:
594
+ // assume a DOM created by this markup:
595
+ // | <div class="container">
596
+ // | <div class="red">Red One</div>
597
+ // | <div class="blue">Blue One</div>
598
+ // | <div class="red">Red Two</div>
599
+ // | <div class="blue">Blue Two</div>
600
+ // | </div>
601
+ // Running this code:
602
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
603
+ // | ], function(query){
604
+ // | query(".red").wrapInner('<span class="special"></span>');
605
+ // | });
606
+ // Results in this DOM structure:
607
+ // | <div class="container">
608
+ // | <div class="red"><span class="special">Red One</span></div>
609
+ // | <div class="blue">Blue One</div>
610
+ // | <div class="red"><span class="special">Red Two</span></div>
611
+ // | <div class="blue">Blue Two</div>
612
+ // | </div>
613
+ if(this[0]){
614
+ html = makeWrapNode(html, this[0]);
615
+ for(var i = 0; i < this.length; i++){
616
+ //Always clone because if html is used to hold one of
617
+ //the "this" nodes, then on the clone of html it will contain
618
+ //that "this" node, and that would be bad.
619
+ var clone = this._cloneNode(html);
620
+
621
+ //Need to convert the childNodes to an array since wrapAll modifies the
622
+ //DOM and can change the live childNodes NodeList.
623
+ this._wrap(lang._toArray(this[i].childNodes), null, this._NodeListCtor).wrapAll(clone);
624
+ }
625
+ }
626
+ return this; // dojo/NodeList
627
+ },
628
+
629
+ replaceWith: function(/*String||DOMNode||NodeList*/content){
630
+ // summary:
631
+ // Replaces each node in ths NodeList with the content passed to replaceWith.
632
+ // description:
633
+ // The content will be cloned if the length of NodeList
634
+ // is greater than 1. Only the DOM nodes are cloned, not
635
+ // any attached event handlers.
636
+ // returns:
637
+ // The nodes currently in this NodeList will be returned, not the replacing content.
638
+ // Note that the returned nodes have been removed from the DOM.
639
+ // example:
640
+ // assume a DOM created by this markup:
641
+ // | <div class="container">
642
+ // | <div class="red">Red One</div>
643
+ // | <div class="blue">Blue One</div>
644
+ // | <div class="red">Red Two</div>
645
+ // | <div class="blue">Blue Two</div>
646
+ // | </div>
647
+ // Running this code:
648
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
649
+ // | ], function(query){
650
+ // | query(".red").replaceWith('<div class="green">Green</div>');
651
+ // | });
652
+ // Results in this DOM structure:
653
+ // | <div class="container">
654
+ // | <div class="green">Green</div>
655
+ // | <div class="blue">Blue One</div>
656
+ // | <div class="green">Green</div>
657
+ // | <div class="blue">Blue Two</div>
658
+ // | </div>
659
+ content = this._normalize(content, this[0]);
660
+ for(var i = 0, node; node = this[i]; i++){
661
+ this._place(content, node, "before", i > 0);
662
+ node.parentNode.removeChild(node);
663
+ }
664
+ return this; // dojo/NodeList
665
+ },
666
+
667
+ replaceAll: function(/*String*/query){
668
+ // summary:
669
+ // replaces nodes matched by the query passed to replaceAll with the nodes
670
+ // in this NodeList.
671
+ // description:
672
+ // The nodes in this NodeList will be cloned if the query
673
+ // matches more than one element. Only the DOM nodes are cloned, not
674
+ // any attached event handlers.
675
+ // returns:
676
+ // The nodes currently in this NodeList will be returned, not the matched nodes
677
+ // from the query. The nodes currently in this NodeLIst could have
678
+ // been cloned, so the returned NodeList will include the cloned nodes.
679
+ // example:
680
+ // assume a DOM created by this markup:
681
+ // | <div class="container">
682
+ // | <div class="spacer">___</div>
683
+ // | <div class="red">Red One</div>
684
+ // | <div class="spacer">___</div>
685
+ // | <div class="blue">Blue One</div>
686
+ // | <div class="spacer">___</div>
687
+ // | <div class="red">Red Two</div>
688
+ // | <div class="spacer">___</div>
689
+ // | <div class="blue">Blue Two</div>
690
+ // | </div>
691
+ // Running this code:
692
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
693
+ // | ], function(query){
694
+ // | query(".red").replaceAll(".blue");
695
+ // | });
696
+ // Results in this DOM structure:
697
+ // | <div class="container">
698
+ // | <div class="spacer">___</div>
699
+ // | <div class="spacer">___</div>
700
+ // | <div class="red">Red One</div>
701
+ // | <div class="red">Red Two</div>
702
+ // | <div class="spacer">___</div>
703
+ // | <div class="spacer">___</div>
704
+ // | <div class="red">Red One</div>
705
+ // | <div class="red">Red Two</div>
706
+ // | </div>
707
+ var nl = dquery(query);
708
+ var content = this._normalize(this, this[0]);
709
+ for(var i = 0, node; node = nl[i]; i++){
710
+ this._place(content, node, "before", i > 0);
711
+ node.parentNode.removeChild(node);
712
+ }
713
+ return this; // dojo/NodeList
714
+ },
715
+
716
+ clone: function(){
717
+ // summary:
718
+ // Clones all the nodes in this NodeList and returns them as a new NodeList.
719
+ // description:
720
+ // Only the DOM nodes are cloned, not any attached event handlers.
721
+ // returns:
722
+ // a cloned set of the original nodes.
723
+ // example:
724
+ // assume a DOM created by this markup:
725
+ // | <div class="container">
726
+ // | <div class="red">Red One</div>
727
+ // | <div class="blue">Blue One</div>
728
+ // | <div class="red">Red Two</div>
729
+ // | <div class="blue">Blue Two</div>
730
+ // | </div>
731
+ // Running this code:
732
+ // | require(["dojo/query", "dojo/NodeList-manipulate"
733
+ // | ], function(query){
734
+ // | query(".red").clone().appendTo(".container");
735
+ // | });
736
+ // Results in this DOM structure:
737
+ // | <div class="container">
738
+ // | <div class="red">Red One</div>
739
+ // | <div class="blue">Blue One</div>
740
+ // | <div class="red">Red Two</div>
741
+ // | <div class="blue">Blue Two</div>
742
+ // | <div class="red">Red One</div>
743
+ // | <div class="red">Red Two</div>
744
+ // | </div>
745
+
746
+ //TODO: need option to clone events?
747
+ var ary = [];
748
+ for(var i = 0; i < this.length; i++){
749
+ ary.push(this._cloneNode(this[i]));
750
+ }
751
+ return this._wrap(ary, this, this._NodeListCtor); // dojo/NodeList
752
+ }
753
+ });
754
+
755
+ //set up html method if one does not exist
756
+ if(!NodeList.prototype.html){
757
+ NodeList.prototype.html = NodeList.prototype.innerHTML;
758
+ }
759
+
760
+ return NodeList;
761
+ });