@datagrok/helm 2.13.7 → 3.0.0

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 (349) hide show
  1. package/CREDITS.md +164 -0
  2. package/dist/489.js +2 -0
  3. package/dist/489.js.map +1 -0
  4. package/dist/package-test.js +1 -1
  5. package/dist/package-test.js.map +1 -1
  6. package/dist/package.js +1 -1
  7. package/dist/package.js.map +1 -1
  8. package/files/samples/helm-showcase.csv +56 -0
  9. package/package.json +6 -10
  10. package/src/helm-helper.ts +61 -413
  11. package/src/package-api.ts +14 -11
  12. package/src/package-test.ts +0 -2
  13. package/src/package-utils.ts +8 -298
  14. package/src/package.g.ts +2 -8
  15. package/src/package.ts +11 -31
  16. package/src/tests/helm-activity-cliffs.ts +2 -2
  17. package/src/tests/helm-input-tests.ts +83 -0
  18. package/src/tests/parse-helm-tests.ts +7 -57
  19. package/src/tests/properties-widget-tests.ts +21 -11
  20. package/src/utils/helm-grid-cell-renderer.ts +141 -151
  21. package/src/utils/index.ts +3 -7
  22. package/src/widgets/helm-input.ts +42 -12
  23. package/src/widgets/properties-widget.ts +18 -11
  24. package/test-console-output-1.log +103 -706
  25. package/test-record-1.mp4 +0 -0
  26. package/webpack.config.js +1 -12
  27. package/dist/455.js +0 -2
  28. package/dist/455.js.map +0 -1
  29. package/dist/package-dojo.js +0 -2
  30. package/dist/package-dojo.js.map +0 -1
  31. package/helm/JSDraw/Pistoia.HELM-uncompressed.js +0 -9694
  32. package/helm/JSDraw/ReadMe.txt +0 -8
  33. package/helm/JSDraw/Scilligence.JSDraw2.Lite-uncompressed.js +0 -31126
  34. package/helm/dojo/package.ts +0 -41
  35. package/helm/dojo/types.ts +0 -12
  36. package/src/helm-web-editor.ts +0 -68
  37. package/src/tests/get-monomer-tests.ts +0 -214
  38. package/src/tests/helm-service-tests.ts +0 -98
  39. package/src/types/dojo.ts +0 -3
  40. package/src/types/index.ts +0 -5
  41. package/src/utils/get-monomer.ts +0 -90
  42. package/src/utils/helm-service.ts +0 -166
  43. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +0 -63
  44. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +0 -116
  45. package/vendor/dojo-1.10.10/dijit/Destroyable.js +0 -35
  46. package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +0 -83
  47. package/vendor/dojo-1.10.10/dijit/Tooltip.js +0 -240
  48. package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +0 -612
  49. package/vendor/dojo-1.10.10/dijit/Viewport.js +0 -44
  50. package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +0 -87
  51. package/vendor/dojo-1.10.10/dijit/WidgetSet.js +0 -76
  52. package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +0 -247
  53. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +0 -94
  54. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +0 -238
  55. package/vendor/dojo-1.10.10/dijit/_Contained.js +0 -17
  56. package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +0 -56
  57. package/vendor/dojo-1.10.10/dijit/_Container.js +0 -47
  58. package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +0 -108
  59. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +0 -198
  60. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +0 -372
  61. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +0 -11
  62. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +0 -66
  63. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +0 -188
  64. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +0 -472
  65. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +0 -8
  66. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +0 -31
  67. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +0 -90
  68. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +0 -205
  69. package/vendor/dojo-1.10.10/dijit/_Widget.js +0 -66
  70. package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +0 -352
  71. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +0 -353
  72. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +0 -1200
  73. package/vendor/dojo-1.10.10/dijit/_base/focus.js +0 -68
  74. package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +0 -207
  75. package/vendor/dojo-1.10.10/dijit/_base/manager.js +0 -10
  76. package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +0 -35
  77. package/vendor/dojo-1.10.10/dijit/_base/place.js +0 -52
  78. package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +0 -131
  79. package/vendor/dojo-1.10.10/dijit/_base/popup.js +0 -23
  80. package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +0 -58
  81. package/vendor/dojo-1.10.10/dijit/_base/scroll.js +0 -6
  82. package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +0 -22
  83. package/vendor/dojo-1.10.10/dijit/_base/sniff.js +0 -3
  84. package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +0 -12
  85. package/vendor/dojo-1.10.10/dijit/_base/typematic.js +0 -3
  86. package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +0 -10
  87. package/vendor/dojo-1.10.10/dijit/_base/wai.js +0 -32
  88. package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +0 -109
  89. package/vendor/dojo-1.10.10/dijit/_base/window.js +0 -6
  90. package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +0 -18
  91. package/vendor/dojo-1.10.10/dijit/_base.js +0 -4
  92. package/vendor/dojo-1.10.10/dijit/_base.js.uncompressed.js +0 -27
  93. package/vendor/dojo-1.10.10/dijit/a11y.js +0 -109
  94. package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +0 -191
  95. package/vendor/dojo-1.10.10/dijit/a11yclick.js +0 -66
  96. package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +0 -139
  97. package/vendor/dojo-1.10.10/dijit/focus.js +0 -188
  98. package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +0 -371
  99. package/vendor/dojo-1.10.10/dijit/form/Button.js +0 -49
  100. package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +0 -130
  101. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +0 -4
  102. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +0 -27
  103. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +0 -21
  104. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +0 -86
  105. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +0 -38
  106. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +0 -102
  107. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +0 -7
  108. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +0 -26
  109. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +0 -50
  110. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +0 -116
  111. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +0 -26
  112. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +0 -81
  113. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +0 -24
  114. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +0 -51
  115. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +0 -22
  116. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +0 -67
  117. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +0 -111
  118. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +0 -254
  119. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +0 -32
  120. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +0 -69
  121. package/vendor/dojo-1.10.10/dijit/hccss.js +0 -9
  122. package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +0 -21
  123. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +0 -215
  124. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +0 -550
  125. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +0 -7
  126. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +0 -25
  127. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +0 -235
  128. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +0 -653
  129. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +0 -171
  130. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +0 -411
  131. package/vendor/dojo-1.10.10/dijit/layout/StackController.js +0 -194
  132. package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +0 -410
  133. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +0 -99
  134. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +0 -236
  135. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +0 -47
  136. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +0 -190
  137. package/vendor/dojo-1.10.10/dijit/layout/utils.js +0 -77
  138. package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +0 -151
  139. package/vendor/dojo-1.10.10/dijit/main.js +0 -4
  140. package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +0 -16
  141. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +0 -2
  142. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +0 -21
  143. package/vendor/dojo-1.10.10/dijit/nls/loading.js +0 -2
  144. package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +0 -47
  145. package/vendor/dojo-1.10.10/dijit/place.js +0 -142
  146. package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +0 -407
  147. package/vendor/dojo-1.10.10/dijit/popup.js +0 -162
  148. package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +0 -441
  149. package/vendor/dojo-1.10.10/dijit/registry.js +0 -79
  150. package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +0 -159
  151. package/vendor/dojo-1.10.10/dijit/selection.js +0 -364
  152. package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +0 -525
  153. package/vendor/dojo-1.10.10/dijit/typematic.js +0 -96
  154. package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +0 -211
  155. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +0 -195
  156. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +0 -761
  157. package/vendor/dojo-1.10.10/dojo/Stateful.js +0 -90
  158. package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +0 -218
  159. package/vendor/dojo-1.10.10/dojo/_base/url.js +0 -87
  160. package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +0 -109
  161. package/vendor/dojo-1.10.10/dojo/cache.js +0 -9
  162. package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +0 -7
  163. package/vendor/dojo-1.10.10/dojo/colors.js +0 -74
  164. package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +0 -232
  165. package/vendor/dojo-1.10.10/dojo/cookie.js +0 -48
  166. package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +0 -98
  167. package/vendor/dojo-1.10.10/dojo/date/stamp.js +0 -82
  168. package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +0 -144
  169. package/vendor/dojo-1.10.10/dojo/dojo.js +0 -7
  170. package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +0 -18680
  171. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +0 -27
  172. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +0 -101
  173. package/vendor/dojo-1.10.10/dojo/fx/easing.js +0 -165
  174. package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +0 -276
  175. package/vendor/dojo-1.10.10/dojo/fx.js +0 -271
  176. package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +0 -443
  177. package/vendor/dojo-1.10.10/dojo/hccss.js +0 -26
  178. package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +0 -52
  179. package/vendor/dojo-1.10.10/dojo/html.js +0 -161
  180. package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +0 -370
  181. package/vendor/dojo-1.10.10/dojo/io/iframe.js +0 -71
  182. package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +0 -190
  183. package/vendor/dojo-1.10.10/dojo/io/script.js +0 -112
  184. package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +0 -280
  185. package/vendor/dojo-1.10.10/dojo/parser.js +0 -437
  186. package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +0 -915
  187. package/vendor/dojo-1.10.10/dojo/promise/all.js +0 -59
  188. package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +0 -77
  189. package/vendor/dojo-1.10.10/dojo/regexp.js +0 -32
  190. package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +0 -70
  191. package/vendor/dojo-1.10.10/dojo/request/iframe.js +0 -291
  192. package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +0 -438
  193. package/vendor/dojo-1.10.10/dojo/request/script.js +0 -129
  194. package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +0 -237
  195. package/vendor/dojo-1.10.10/dojo/require.js +0 -11
  196. package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +0 -7
  197. package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
  198. package/vendor/dojo-1.10.10/dojo/string.js +0 -67
  199. package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +0 -181
  200. package/vendor/dojo-1.10.10/dojo/touch.js +0 -191
  201. package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +0 -468
  202. package/vendor/dojo-1.10.10/dojo/uacss.js +0 -36
  203. package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +0 -85
  204. package/vendor/dojo-1.10.10/dojo/window.js +0 -141
  205. package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +0 -241
  206. package/vendor/dojo-1.10.10/dojox/charting/Chart.js +0 -626
  207. package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +0 -1220
  208. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +0 -5
  209. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +0 -16
  210. package/vendor/dojo-1.10.10/dojox/charting/Element.js +0 -247
  211. package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +0 -402
  212. package/vendor/dojo-1.10.10/dojox/charting/Series.js +0 -24
  213. package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +0 -58
  214. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +0 -191
  215. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +0 -577
  216. package/vendor/dojo-1.10.10/dojox/charting/Theme.js +0 -42
  217. package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +0 -120
  218. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +0 -11
  219. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +0 -36
  220. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +0 -77
  221. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +0 -144
  222. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +0 -58
  223. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +0 -123
  224. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +0 -54
  225. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +0 -124
  226. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +0 -28
  227. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +0 -74
  228. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +0 -116
  229. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +0 -178
  230. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +0 -24
  231. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +0 -83
  232. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +0 -557
  233. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +0 -980
  234. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +0 -65
  235. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +0 -224
  236. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +0 -91
  237. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +0 -164
  238. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +0 -7
  239. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +0 -14
  240. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +0 -168
  241. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +0 -311
  242. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +0 -61
  243. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +0 -161
  244. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +0 -141
  245. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +0 -242
  246. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +0 -126
  247. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +0 -243
  248. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +0 -108
  249. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +0 -290
  250. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +0 -13
  251. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +0 -14
  252. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +0 -13
  253. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +0 -14
  254. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +0 -153
  255. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +0 -249
  256. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +0 -253
  257. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +0 -472
  258. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +0 -182
  259. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +0 -356
  260. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +0 -6
  261. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +0 -12
  262. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +0 -6
  263. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +0 -12
  264. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +0 -7
  265. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +0 -13
  266. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +0 -110
  267. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +0 -208
  268. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +0 -303
  269. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +0 -547
  270. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +0 -134
  271. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +0 -207
  272. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +0 -299
  273. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +0 -537
  274. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +0 -24
  275. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +0 -44
  276. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +0 -7
  277. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +0 -14
  278. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +0 -22
  279. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +0 -33
  280. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +0 -20
  281. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +0 -31
  282. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +0 -6
  283. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +0 -12
  284. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +0 -68
  285. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +0 -120
  286. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +0 -209
  287. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +0 -214
  288. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +0 -76
  289. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +0 -77
  290. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +0 -59
  291. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +0 -70
  292. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +0 -220
  293. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +0 -262
  294. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +0 -23
  295. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +0 -36
  296. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +0 -39
  297. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +0 -106
  298. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +0 -5
  299. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +0 -12
  300. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +0 -4
  301. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +0 -3
  302. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +0 -102
  303. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +0 -165
  304. package/vendor/dojo-1.10.10/dojox/color/Palette.js +0 -163
  305. package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +0 -460
  306. package/vendor/dojo-1.10.10/dojox/color/_base.js +0 -174
  307. package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +0 -196
  308. package/vendor/dojo-1.10.10/dojox/gfx/_base.js +0 -253
  309. package/vendor/dojo-1.10.10/dojox/gfx/_base.js.uncompressed.js +0 -1024
  310. package/vendor/dojo-1.10.10/dojox/gfx/fx.js +0 -297
  311. package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +0 -350
  312. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +0 -63
  313. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +0 -91
  314. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +0 -170
  315. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +0 -501
  316. package/vendor/dojo-1.10.10/dojox/gfx/path.js +0 -319
  317. package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +0 -478
  318. package/vendor/dojo-1.10.10/dojox/gfx/shape.js +0 -459
  319. package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +0 -1091
  320. package/vendor/dojo-1.10.10/dojox/gfx/svg.js +0 -662
  321. package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +0 -1023
  322. package/vendor/dojo-1.10.10/dojox/gfx/utils.js +0 -199
  323. package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +0 -322
  324. package/vendor/dojo-1.10.10/dojox/gfx.js +0 -2
  325. package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +0 -1136
  326. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +0 -151
  327. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +0 -169
  328. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +0 -93
  329. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +0 -125
  330. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +0 -81
  331. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +0 -132
  332. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +0 -54
  333. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +0 -78
  334. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +0 -61
  335. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +0 -77
  336. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +0 -87
  337. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +0 -107
  338. package/vendor/dojo-1.10.10/dojox/lang/functional.js +0 -4
  339. package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +0 -3
  340. package/vendor/dojo-1.10.10/dojox/lang/utils.js +0 -86
  341. package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +0 -121
  342. package/vendor/dojo-1.10.10/dojox/main.js +0 -4
  343. package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +0 -14
  344. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +0 -112
  345. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +0 -208
  346. package/vendor/dojo-1.10.10/dojox/storage/Provider.js +0 -62
  347. package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +0 -344
  348. package/vendor/dojo-1.10.10/dojox/storage/manager.js +0 -110
  349. package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +0 -263
@@ -1,761 +0,0 @@
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
- });