@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,26 +0,0 @@
1
- /*
2
- Copyright (c) 2004-2017, The JS Foundation All Rights Reserved.
3
- Available via Academic Free License >= 2.1 OR the modified BSD license.
4
- see: http://dojotoolkit.org/license for details
5
- */
6
- //>>built
7
- define("dojo/hccss",["require","./_base/config","./dom-class","./dom-style","./has","./domReady","./_base/window"],function(_1,_2,_3,_4,_5,_6,_7){
8
- _5.add("highcontrast",function(){
9
- var _8=_7.doc.createElement("div");
10
- _8.style.cssText="border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;"+"background-image: url(\""+(_2.blankGif||_1.toUrl("./resources/blank.gif"))+"\");";
11
- _7.body().appendChild(_8);
12
- var cs=_4.getComputedStyle(_8),_9=cs.backgroundImage,hc=(cs.borderTopColor==cs.borderRightColor)||(_9&&(_9=="none"||_9=="url(invalid-url:)"));
13
- if(_5("ie")<=8){
14
- _8.outerHTML="";
15
- }else{
16
- _7.body().removeChild(_8);
17
- }
18
- return hc;
19
- });
20
- _6(function(){
21
- if(_5("highcontrast")){
22
- _3.add(_7.body(),"dj_a11y");
23
- }
24
- });
25
- return _5;
26
- });
@@ -1,52 +0,0 @@
1
- define("dojo/hccss", [
2
- "require", // require, require.toUrl
3
- "./_base/config", // config.blankGif
4
- "./dom-class", // domClass.add
5
- "./dom-style", // domStyle.getComputedStyle
6
- "./has",
7
- "./domReady",
8
- "./_base/window" // win.body
9
- ], function(require, config, domClass, domStyle, has, domReady, win){
10
-
11
- // module:
12
- // dojo/hccss
13
-
14
- /*=====
15
- return function(){
16
- // summary:
17
- // Test if computer is in high contrast mode (i.e. if browser is not displaying background images).
18
- // Defines `has("highcontrast")` and sets `dj_a11y` CSS class on `<body>` if machine is in high contrast mode.
19
- // Returns `has()` method;
20
- };
21
- =====*/
22
-
23
- // Has() test for when background images aren't displayed. Don't call has("highcontrast") before dojo/domReady!.
24
- has.add("highcontrast", function(){
25
- // note: if multiple documents, doesn't matter which one we use
26
- var div = win.doc.createElement("div");
27
- div.style.cssText = "border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;" +
28
- "background-image: url(\"" + (config.blankGif || require.toUrl("./resources/blank.gif")) + "\");";
29
- win.body().appendChild(div);
30
-
31
- var cs = domStyle.getComputedStyle(div),
32
- bkImg = cs.backgroundImage,
33
- hc = (cs.borderTopColor == cs.borderRightColor) ||
34
- (bkImg && (bkImg == "none" || bkImg == "url(invalid-url:)" ));
35
-
36
- if(has("ie") <= 8){
37
- div.outerHTML = ""; // prevent mixed-content warning, see http://support.microsoft.com/kb/925014
38
- }else{
39
- win.body().removeChild(div);
40
- }
41
-
42
- return hc;
43
- });
44
-
45
- domReady(function(){
46
- if(has("highcontrast")){
47
- domClass.add(win.body(), "dj_a11y");
48
- }
49
- });
50
-
51
- return has;
52
- });
@@ -1,161 +0,0 @@
1
- /*
2
- Copyright (c) 2004-2017, The JS Foundation All Rights Reserved.
3
- Available via Academic Free License >= 2.1 OR the modified BSD license.
4
- see: http://dojotoolkit.org/license for details
5
- */
6
- //>>built
7
- define("dojo/html",["./_base/kernel","./_base/lang","./_base/array","./_base/declare","./dom","./dom-construct","./parser"],function(_1,_2,_3,_4,_5,_6,_7){
8
- var _8=0;
9
- var _9={_secureForInnerHtml:function(_a){
10
- return _a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");
11
- },_emptyNode:_6.empty,_setNodeContent:function(_b,_c){
12
- _6.empty(_b);
13
- if(_c){
14
- if(typeof _c=="string"){
15
- _c=_6.toDom(_c,_b.ownerDocument);
16
- }
17
- if(!_c.nodeType&&_2.isArrayLike(_c)){
18
- for(var _d=_c.length,i=0;i<_c.length;i=_d==_c.length?i+1:0){
19
- _6.place(_c[i],_b,"last");
20
- }
21
- }else{
22
- _6.place(_c,_b,"last");
23
- }
24
- }
25
- return _b;
26
- },_ContentSetter:_4("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:_1._scopeName,startup:true,constructor:function(_e,_f){
27
- _2.mixin(this,_e||{});
28
- _f=this.node=_5.byId(this.node||_f);
29
- if(!this.id){
30
- this.id=["Setter",(_f)?_f.id||_f.tagName:"",_8++].join("_");
31
- }
32
- },set:function(_10,_11){
33
- if(undefined!==_10){
34
- this.content=_10;
35
- }
36
- if(_11){
37
- this._mixin(_11);
38
- }
39
- this.onBegin();
40
- this.setContent();
41
- var ret=this.onEnd();
42
- if(ret&&ret.then){
43
- return ret;
44
- }else{
45
- return this.node;
46
- }
47
- },setContent:function(){
48
- var _12=this.node;
49
- if(!_12){
50
- throw new Error(this.declaredClass+": setContent given no node");
51
- }
52
- try{
53
- _12=_9._setNodeContent(_12,this.content);
54
- }
55
- catch(e){
56
- var _13=this.onContentError(e);
57
- try{
58
- _12.innerHTML=_13;
59
- }
60
- catch(e){
61
- console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);
62
- }
63
- }
64
- this.node=_12;
65
- },empty:function(){
66
- if(this.parseDeferred){
67
- if(!this.parseDeferred.isResolved()){
68
- this.parseDeferred.cancel();
69
- }
70
- delete this.parseDeferred;
71
- }
72
- if(this.parseResults&&this.parseResults.length){
73
- _3.forEach(this.parseResults,function(w){
74
- if(w.destroy){
75
- w.destroy();
76
- }
77
- });
78
- delete this.parseResults;
79
- }
80
- _6.empty(this.node);
81
- },onBegin:function(){
82
- var _14=this.content;
83
- if(_2.isString(_14)){
84
- if(this.cleanContent){
85
- _14=_9._secureForInnerHtml(_14);
86
- }
87
- if(this.extractContent){
88
- var _15=_14.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
89
- if(_15){
90
- _14=_15[1];
91
- }
92
- }
93
- }
94
- this.empty();
95
- this.content=_14;
96
- return this.node;
97
- },onEnd:function(){
98
- if(this.parseContent){
99
- this._parse();
100
- }
101
- return this.node;
102
- },tearDown:function(){
103
- delete this.parseResults;
104
- delete this.parseDeferred;
105
- delete this.node;
106
- delete this.content;
107
- },onContentError:function(err){
108
- return "Error occurred setting content: "+err;
109
- },onExecError:function(err){
110
- return "Error occurred executing scripts: "+err;
111
- },_mixin:function(_16){
112
- var _17={},key;
113
- for(key in _16){
114
- if(key in _17){
115
- continue;
116
- }
117
- this[key]=_16[key];
118
- }
119
- },_parse:function(){
120
- var _18=this.node;
121
- try{
122
- var _19={};
123
- _3.forEach(["dir","lang","textDir"],function(_1a){
124
- if(this[_1a]){
125
- _19[_1a]=this[_1a];
126
- }
127
- },this);
128
- var _1b=this;
129
- this.parseDeferred=_7.parse({rootNode:_18,noStart:!this.startup,inherited:_19,scope:this.parserScope}).then(function(_1c){
130
- return _1b.parseResults=_1c;
131
- },function(e){
132
- _1b._onError("Content",e,"Error parsing in _ContentSetter#"+_1b.id);
133
- });
134
- }
135
- catch(e){
136
- this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
137
- }
138
- },_onError:function(_1d,err,_1e){
139
- var _1f=this["on"+_1d+"Error"].call(this,err);
140
- if(_1e){
141
- console.error(_1e,err);
142
- }else{
143
- if(_1f){
144
- _9._setNodeContent(this.node,_1f,true);
145
- }
146
- }
147
- }}),set:function(_20,_21,_22){
148
- if(undefined==_21){
149
- console.warn("dojo.html.set: no cont argument provided, using empty string");
150
- _21="";
151
- }
152
- if(!_22){
153
- return _9._setNodeContent(_20,_21,true);
154
- }else{
155
- var op=new _9._ContentSetter(_2.mixin(_22,{content:_21,node:_20}));
156
- return op.set();
157
- }
158
- }};
159
- _2.setObject("dojo.html",_9);
160
- return _9;
161
- });
@@ -1,370 +0,0 @@
1
- define("dojo/html", ["./_base/kernel", "./_base/lang", "./_base/array", "./_base/declare", "./dom", "./dom-construct", "./parser"],
2
- function(kernel, lang, darray, declare, dom, domConstruct, parser){
3
- // module:
4
- // dojo/html
5
-
6
- // the parser might be needed..
7
-
8
- // idCounter is incremented with each instantiation to allow assignment of a unique id for tracking, logging purposes
9
- var idCounter = 0;
10
-
11
- var html = {
12
- // summary:
13
- // TODOC
14
-
15
- _secureForInnerHtml: function(/*String*/ cont){
16
- // summary:
17
- // removes !DOCTYPE and title elements from the html string.
18
- //
19
- // khtml is picky about dom faults, you can't attach a style or `<title>` node as child of body
20
- // must go into head, so we need to cut out those tags
21
- // cont:
22
- // An html string for insertion into the dom
23
- //
24
- return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig, ""); // String
25
- },
26
-
27
- // Deprecated, should use dojo/dom-constuct.empty() directly, remove in 2.0.
28
- _emptyNode: domConstruct.empty,
29
-
30
- _setNodeContent: function(/*DomNode*/ node, /*String|DomNode|NodeList*/ cont){
31
- // summary:
32
- // inserts the given content into the given node
33
- // node:
34
- // the parent element
35
- // content:
36
- // the content to be set on the parent element.
37
- // This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes
38
-
39
- // always empty
40
- domConstruct.empty(node);
41
-
42
- if(cont){
43
- if(typeof cont == "string"){
44
- cont = domConstruct.toDom(cont, node.ownerDocument);
45
- }
46
- if(!cont.nodeType && lang.isArrayLike(cont)){
47
- // handle as enumerable, but it may shrink as we enumerate it
48
- for(var startlen=cont.length, i=0; i<cont.length; i=startlen==cont.length ? i+1 : 0){
49
- domConstruct.place( cont[i], node, "last");
50
- }
51
- }else{
52
- // pass nodes, documentFragments and unknowns through to dojo.place
53
- domConstruct.place(cont, node, "last");
54
- }
55
- }
56
-
57
- // return DomNode
58
- return node;
59
- },
60
-
61
- // we wrap up the content-setting operation in a object
62
- _ContentSetter: declare("dojo.html._ContentSetter", null, {
63
- // node: DomNode|String
64
- // An node which will be the parent element that we set content into
65
- node: "",
66
-
67
- // content: String|DomNode|DomNode[]
68
- // The content to be placed in the node. Can be an HTML string, a node reference, or a enumerable list of nodes
69
- content: "",
70
-
71
- // id: String?
72
- // Usually only used internally, and auto-generated with each instance
73
- id: "",
74
-
75
- // cleanContent: Boolean
76
- // Should the content be treated as a full html document,
77
- // and the real content stripped of <html>, <body> wrapper before injection
78
- cleanContent: false,
79
-
80
- // extractContent: Boolean
81
- // Should the content be treated as a full html document,
82
- // and the real content stripped of `<html> <body>` wrapper before injection
83
- extractContent: false,
84
-
85
- // parseContent: Boolean
86
- // Should the node by passed to the parser after the new content is set
87
- parseContent: false,
88
-
89
- // parserScope: String
90
- // Flag passed to parser. Root for attribute names to search for. If scopeName is dojo,
91
- // will search for data-dojo-type (or dojoType). For backwards compatibility
92
- // reasons defaults to dojo._scopeName (which is "dojo" except when
93
- // multi-version support is used, when it will be something like dojo16, dojo20, etc.)
94
- parserScope: kernel._scopeName,
95
-
96
- // startup: Boolean
97
- // Start the child widgets after parsing them. Only obeyed if parseContent is true.
98
- startup: true,
99
-
100
- // lifecycle methods
101
- constructor: function(/*Object*/ params, /*String|DomNode*/ node){
102
- // summary:
103
- // Provides a configurable, extensible object to wrap the setting on content on a node
104
- // call the set() method to actually set the content..
105
-
106
- // the original params are mixed directly into the instance "this"
107
- lang.mixin(this, params || {});
108
-
109
- // give precedence to params.node vs. the node argument
110
- // and ensure its a node, not an id string
111
- node = this.node = dom.byId( this.node || node );
112
-
113
- if(!this.id){
114
- this.id = [
115
- "Setter",
116
- (node) ? node.id || node.tagName : "",
117
- idCounter++
118
- ].join("_");
119
- }
120
- },
121
- set: function(/* String|DomNode|NodeList? */ cont, /*Object?*/ params){
122
- // summary:
123
- // front-end to the set-content sequence
124
- // cont:
125
- // An html string, node or enumerable list of nodes for insertion into the dom
126
- // If not provided, the object's content property will be used
127
- if(undefined !== cont){
128
- this.content = cont;
129
- }
130
- // in the re-use scenario, set needs to be able to mixin new configuration
131
- if(params){
132
- this._mixin(params);
133
- }
134
-
135
- this.onBegin();
136
- this.setContent();
137
-
138
- var ret = this.onEnd();
139
-
140
- if(ret && ret.then){
141
- // Make dojox/html/_ContentSetter.set() return a Promise that resolves when load and parse complete.
142
- return ret;
143
- }else{
144
- // Vanilla dojo/html._ContentSetter.set() returns a DOMNode for back compat. For 2.0, switch it to
145
- // return a Deferred like above.
146
- return this.node;
147
- }
148
- },
149
-
150
- setContent: function(){
151
- // summary:
152
- // sets the content on the node
153
-
154
- var node = this.node;
155
- if(!node){
156
- // can't proceed
157
- throw new Error(this.declaredClass + ": setContent given no node");
158
- }
159
- try{
160
- node = html._setNodeContent(node, this.content);
161
- }catch(e){
162
- // check if a domfault occurs when we are appending this.errorMessage
163
- // like for instance if domNode is a UL and we try append a DIV
164
-
165
- // FIXME: need to allow the user to provide a content error message string
166
- var errMess = this.onContentError(e);
167
- try{
168
- node.innerHTML = errMess;
169
- }catch(e){
170
- console.error('Fatal ' + this.declaredClass + '.setContent could not change content due to '+e.message, e);
171
- }
172
- }
173
- // always put back the node for the next method
174
- this.node = node; // DomNode
175
- },
176
-
177
- empty: function(){
178
- // summary:
179
- // cleanly empty out existing content
180
-
181
- // If there is a parse in progress, cancel it.
182
- if(this.parseDeferred){
183
- if(!this.parseDeferred.isResolved()){
184
- this.parseDeferred.cancel();
185
- }
186
- delete this.parseDeferred;
187
- }
188
-
189
- // destroy any widgets from a previous run
190
- // NOTE: if you don't want this you'll need to empty
191
- // the parseResults array property yourself to avoid bad things happening
192
- if(this.parseResults && this.parseResults.length){
193
- darray.forEach(this.parseResults, function(w){
194
- if(w.destroy){
195
- w.destroy();
196
- }
197
- });
198
- delete this.parseResults;
199
- }
200
- // this is fast, but if you know its already empty or safe, you could
201
- // override empty to skip this step
202
- domConstruct.empty(this.node);
203
- },
204
-
205
- onBegin: function(){
206
- // summary:
207
- // Called after instantiation, but before set();
208
- // It allows modification of any of the object properties -
209
- // including the node and content provided - before the set operation actually takes place
210
- // This default implementation checks for cleanContent and extractContent flags to
211
- // optionally pre-process html string content
212
- var cont = this.content;
213
-
214
- if(lang.isString(cont)){
215
- if(this.cleanContent){
216
- cont = html._secureForInnerHtml(cont);
217
- }
218
-
219
- if(this.extractContent){
220
- var match = cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
221
- if(match){ cont = match[1]; }
222
- }
223
- }
224
-
225
- // clean out the node and any cruft associated with it - like widgets
226
- this.empty();
227
-
228
- this.content = cont;
229
- return this.node; // DomNode
230
- },
231
-
232
- onEnd: function(){
233
- // summary:
234
- // Called after set(), when the new content has been pushed into the node
235
- // It provides an opportunity for post-processing before handing back the node to the caller
236
- // This default implementation checks a parseContent flag to optionally run the dojo parser over the new content
237
- if(this.parseContent){
238
- // populates this.parseResults and this.parseDeferred if you need those..
239
- this._parse();
240
- }
241
- return this.node; // DomNode
242
- // TODO: for 2.0 return a Promise indicating that the parse completed.
243
- },
244
-
245
- tearDown: function(){
246
- // summary:
247
- // manually reset the Setter instance if its being re-used for example for another set()
248
- // description:
249
- // tearDown() is not called automatically.
250
- // In normal use, the Setter instance properties are simply allowed to fall out of scope
251
- // but the tearDown method can be called to explicitly reset this instance.
252
- delete this.parseResults;
253
- delete this.parseDeferred;
254
- delete this.node;
255
- delete this.content;
256
- },
257
-
258
- onContentError: function(err){
259
- return "Error occurred setting content: " + err;
260
- },
261
-
262
- onExecError: function(err){
263
- return "Error occurred executing scripts: " + err;
264
- },
265
-
266
- _mixin: function(params){
267
- // mix properties/methods into the instance
268
- // TODO: the intention with tearDown is to put the Setter's state
269
- // back to that of the original constructor (vs. deleting/resetting everything regardless of ctor params)
270
- // so we could do something here to move the original properties aside for later restoration
271
- var empty = {}, key;
272
- for(key in params){
273
- if(key in empty){ continue; }
274
- // TODO: here's our opportunity to mask the properties we don't consider configurable/overridable
275
- // .. but history shows we'll almost always guess wrong
276
- this[key] = params[key];
277
- }
278
- },
279
- _parse: function(){
280
- // summary:
281
- // runs the dojo parser over the node contents, storing any results in this.parseResults
282
- // and the parse promise in this.parseDeferred
283
- // Any errors resulting from parsing are passed to _onError for handling
284
-
285
- var rootNode = this.node;
286
- try{
287
- // store the results (widgets, whatever) for potential retrieval
288
- var inherited = {};
289
- darray.forEach(["dir", "lang", "textDir"], function(name){
290
- if(this[name]){
291
- inherited[name] = this[name];
292
- }
293
- }, this);
294
- var self = this;
295
- this.parseDeferred = parser.parse({
296
- rootNode: rootNode,
297
- noStart: !this.startup,
298
- inherited: inherited,
299
- scope: this.parserScope
300
- }).then(function(results){
301
- return self.parseResults = results;
302
- }, function(e){
303
- self._onError('Content', e, "Error parsing in _ContentSetter#" + self.id);
304
- });
305
- }catch(e){
306
- this._onError('Content', e, "Error parsing in _ContentSetter#" + this.id);
307
- }
308
- },
309
-
310
- _onError: function(type, err, consoleText){
311
- // summary:
312
- // shows user the string that is returned by on[type]Error
313
- // override/implement on[type]Error and return your own string to customize
314
- var errText = this['on' + type + 'Error'].call(this, err);
315
- if(consoleText){
316
- console.error(consoleText, err);
317
- }else if(errText){ // a empty string won't change current content
318
- html._setNodeContent(this.node, errText, true);
319
- }
320
- }
321
- }), // end declare()
322
-
323
- set: function(/*DomNode*/ node, /*String|DomNode|NodeList*/ cont, /*Object?*/ params){
324
- // summary:
325
- // inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only")
326
- // may be a better choice for simple HTML insertion.
327
- // description:
328
- // Unless you need to use the params capabilities of this method, you should use
329
- // dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting
330
- // an HTML string into the DOM, but it only handles inserting an HTML string as DOM
331
- // elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions
332
- // dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting
333
- // an HTML string into the DOM, but it only handles inserting an HTML string as DOM
334
- // elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions
335
- // or the other capabilities as defined by the params object for this method.
336
- // node:
337
- // the parent element that will receive the content
338
- // cont:
339
- // the content to be set on the parent element.
340
- // This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes
341
- // params:
342
- // Optional flags/properties to configure the content-setting. See dojo/html/_ContentSetter
343
- // example:
344
- // A safe string/node/nodelist content replacement/injection with hooks for extension
345
- // Example Usage:
346
- // | html.set(node, "some string");
347
- // | html.set(node, contentNode, {options});
348
- // | html.set(node, myNode.childNodes, {options});
349
- if(undefined == cont){
350
- console.warn("dojo.html.set: no cont argument provided, using empty string");
351
- cont = "";
352
- }
353
- if(!params){
354
- // simple and fast
355
- return html._setNodeContent(node, cont, true);
356
- }else{
357
- // more options but slower
358
- // note the arguments are reversed in order, to match the convention for instantiation via the parser
359
- var op = new html._ContentSetter(lang.mixin(
360
- params,
361
- { content: cont, node: node }
362
- ));
363
- return op.set();
364
- }
365
- }
366
- };
367
- lang.setObject("dojo.html", html);
368
-
369
- return html;
370
- });
@@ -1,71 +0,0 @@
1
- /*
2
- Copyright (c) 2004-2017, The JS Foundation All Rights Reserved.
3
- Available via Academic Free License >= 2.1 OR the modified BSD license.
4
- see: http://dojotoolkit.org/license for details
5
- */
6
- //>>built
7
- define("dojo/io/iframe",["../_base/config","../_base/json","../_base/kernel","../_base/lang","../_base/xhr","../sniff","../_base/window","../dom","../dom-construct","../query","require","../aspect","../request/iframe"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d){
8
- _3.deprecated("dojo/io/iframe","Use dojo/request/iframe.","2.0");
9
- var _e=_d._iframeName;
10
- _e=_e.substring(0,_e.lastIndexOf("_"));
11
- var _f=_4.delegate(_d,{create:function(){
12
- return _f._frame=_d.create.apply(_d,arguments);
13
- },get:null,post:null,send:function(_10){
14
- var _11;
15
- var dfd=_5._ioSetArgs(_10,function(dfd){
16
- _11&&_11.cancel();
17
- },function(dfd){
18
- var _12=null,_13=dfd.ioArgs;
19
- try{
20
- var _14=_13.handleAs;
21
- if(_14==="xml"||_14==="html"){
22
- _12=_11.response.data;
23
- }else{
24
- _12=_11.response.text;
25
- if(_14==="json"){
26
- _12=_2.fromJson(_12);
27
- }else{
28
- if(_14==="javascript"){
29
- _12=_3.eval(_12);
30
- }
31
- }
32
- }
33
- }
34
- catch(e){
35
- _12=e;
36
- }
37
- return _12;
38
- },function(_15,dfd){
39
- dfd.ioArgs._hasError=true;
40
- return _15;
41
- });
42
- var _16=dfd.ioArgs;
43
- var _17="GET",_18=_8.byId(_10.form);
44
- if(_10.method&&_10.method.toUpperCase()==="POST"&&_18){
45
- _17="POST";
46
- }
47
- var _19={method:_17,handleAs:_10.handleAs==="json"||_10.handleAs==="javascript"?"text":_10.handleAs,form:_10.form,query:_18?null:_10.content,data:_18?_10.content:null,timeout:_10.timeout,ioArgs:_16};
48
- if(_19.method){
49
- _19.method=_19.method.toUpperCase();
50
- }
51
- if(_1.ioPublish&&_3.publish&&_16.args.ioPublish!==false){
52
- var _1a=_c.after(_d,"_notifyStart",function(_1b){
53
- if(_1b.options.ioArgs===_16){
54
- _1a.remove();
55
- _5._ioNotifyStart(dfd);
56
- }
57
- },true);
58
- }
59
- _11=_d(_16.url,_19,true);
60
- _16._callNext=_11._callNext;
61
- _11.then(function(){
62
- dfd.resolve(dfd);
63
- }).otherwise(function(_1c){
64
- dfd.ioArgs.error=_1c;
65
- dfd.reject(_1c);
66
- });
67
- return dfd;
68
- },_iframeOnload:_7.global[_e+"_onload"]});
69
- _4.setObject("dojo.io.iframe",_f);
70
- return _f;
71
- });