@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,441 +0,0 @@
1
- define("dijit/popup", [
2
- "dojo/_base/array", // array.forEach array.some
3
- "dojo/aspect",
4
- "dojo/_base/declare", // declare
5
- "dojo/dom", // dom.isDescendant
6
- "dojo/dom-attr", // domAttr.set
7
- "dojo/dom-construct", // domConstruct.create domConstruct.destroy
8
- "dojo/dom-geometry", // domGeometry.isBodyLtr
9
- "dojo/dom-style", // domStyle.set
10
- "dojo/has", // has("config-bgIframe")
11
- "dojo/keys",
12
- "dojo/_base/lang", // lang.hitch
13
- "dojo/on",
14
- "./place",
15
- "./BackgroundIframe",
16
- "./Viewport",
17
- "./main", // dijit (defining dijit.popup to match API doc)
18
- "dojo/touch" // use of dojoClick
19
- ], function(array, aspect, declare, dom, domAttr, domConstruct, domGeometry, domStyle, has, keys, lang, on,
20
- place, BackgroundIframe, Viewport, dijit){
21
-
22
- // module:
23
- // dijit/popup
24
-
25
- /*=====
26
- var __OpenArgs = {
27
- // popup: Widget
28
- // widget to display
29
- // parent: Widget
30
- // the button etc. that is displaying this popup
31
- // around: DomNode
32
- // DOM node (typically a button); place popup relative to this node. (Specify this *or* "x" and "y" parameters.)
33
- // x: Integer
34
- // Absolute horizontal position (in pixels) to place node at. (Specify this *or* "around" parameter.)
35
- // y: Integer
36
- // Absolute vertical position (in pixels) to place node at. (Specify this *or* "around" parameter.)
37
- // orient: Object|String
38
- // When the around parameter is specified, orient should be a list of positions to try, ex:
39
- // | [ "below", "above" ]
40
- // For backwards compatibility it can also be an (ordered) hash of tuples of the form
41
- // (around-node-corner, popup-node-corner), ex:
42
- // | { "BL": "TL", "TL": "BL" }
43
- // where BL means "bottom left" and "TL" means "top left", etc.
44
- //
45
- // dijit/popup.open() tries to position the popup according to each specified position, in order,
46
- // until the popup appears fully within the viewport.
47
- //
48
- // The default value is ["below", "above"]
49
- //
50
- // When an (x,y) position is specified rather than an around node, orient is either
51
- // "R" or "L". R (for right) means that it tries to put the popup to the right of the mouse,
52
- // specifically positioning the popup's top-right corner at the mouse position, and if that doesn't
53
- // fit in the viewport, then it tries, in order, the bottom-right corner, the top left corner,
54
- // and the top-right corner.
55
- // onCancel: Function
56
- // callback when user has canceled the popup by:
57
- //
58
- // 1. hitting ESC or
59
- // 2. by using the popup widget's proprietary cancel mechanism (like a cancel button in a dialog);
60
- // i.e. whenever popupWidget.onCancel() is called, args.onCancel is called
61
- // onClose: Function
62
- // callback whenever this popup is closed
63
- // onExecute: Function
64
- // callback when user "executed" on the popup/sub-popup by selecting a menu choice, etc. (top menu only)
65
- // padding: place.__Position
66
- // adding a buffer around the opening position. This is only useful when around is not set.
67
- // maxHeight: Integer
68
- // The max height for the popup. Any popup taller than this will have scrollbars.
69
- // Set to Infinity for no max height. Default is to limit height to available space in viewport,
70
- // above or below the aroundNode or specified x/y position.
71
- };
72
- =====*/
73
-
74
- function destroyWrapper(){
75
- // summary:
76
- // Function to destroy wrapper when popup widget is destroyed.
77
- // Left in this scope to avoid memory leak on IE8 on refresh page, see #15206.
78
- if(this._popupWrapper){
79
- domConstruct.destroy(this._popupWrapper);
80
- delete this._popupWrapper;
81
- }
82
- }
83
-
84
- var PopupManager = declare(null, {
85
- // summary:
86
- // Used to show drop downs (ex: the select list of a ComboBox)
87
- // or popups (ex: right-click context menus).
88
-
89
- // _stack: dijit/_WidgetBase[]
90
- // Stack of currently popped up widgets.
91
- // (someone opened _stack[0], and then it opened _stack[1], etc.)
92
- _stack: [],
93
-
94
- // _beginZIndex: Number
95
- // Z-index of the first popup. (If first popup opens other
96
- // popups they get a higher z-index.)
97
- _beginZIndex: 1000,
98
-
99
- _idGen: 1,
100
-
101
- _repositionAll: function(){
102
- // summary:
103
- // If screen has been scrolled, reposition all the popups in the stack.
104
- // Then set timer to check again later.
105
-
106
- if(this._firstAroundNode){ // guard for when clearTimeout() on IE doesn't work
107
- var oldPos = this._firstAroundPosition,
108
- newPos = domGeometry.position(this._firstAroundNode, true),
109
- dx = newPos.x - oldPos.x,
110
- dy = newPos.y - oldPos.y;
111
-
112
- if(dx || dy){
113
- this._firstAroundPosition = newPos;
114
- for(var i = 0; i < this._stack.length; i++){
115
- var style = this._stack[i].wrapper.style;
116
- style.top = (parseFloat(style.top) + dy) + "px";
117
- if(style.right == "auto"){
118
- style.left = (parseFloat(style.left) + dx) + "px";
119
- }else{
120
- style.right = (parseFloat(style.right) - dx) + "px";
121
- }
122
- }
123
- }
124
-
125
- this._aroundMoveListener = setTimeout(lang.hitch(this, "_repositionAll"), dx || dy ? 10 : 50);
126
- }
127
- },
128
-
129
- _createWrapper: function(/*Widget*/ widget){
130
- // summary:
131
- // Initialization for widgets that will be used as popups.
132
- // Puts widget inside a wrapper DIV (if not already in one),
133
- // and returns pointer to that wrapper DIV.
134
-
135
- var wrapper = widget._popupWrapper,
136
- node = widget.domNode;
137
-
138
- if(!wrapper){
139
- // Create wrapper <div> for when this widget [in the future] will be used as a popup.
140
- // This is done early because of IE bugs where creating/moving DOM nodes causes focus
141
- // to go wonky, see tests/robot/Toolbar.html to reproduce
142
- wrapper = domConstruct.create("div", {
143
- "class": "dijitPopup",
144
- style: { display: "none"},
145
- role: "region",
146
- "aria-label": widget["aria-label"] || widget.label || widget.name || widget.id
147
- }, widget.ownerDocumentBody);
148
- wrapper.appendChild(node);
149
-
150
- var s = node.style;
151
- s.display = "";
152
- s.visibility = "";
153
- s.position = "";
154
- s.top = "0px";
155
-
156
- widget._popupWrapper = wrapper;
157
- aspect.after(widget, "destroy", destroyWrapper, true);
158
-
159
- // Workaround iOS problem where clicking a Menu can focus an <input> (or click a button) behind it.
160
- // Need to be careful though that you can still focus <input>'s and click <button>'s in a TooltipDialog.
161
- // Also, be careful not to break (native) scrolling of dropdown like ComboBox's options list.
162
- if("ontouchend" in document) {
163
- on(wrapper, "touchend", function (evt){
164
- if(!/^(input|button|textarea)$/i.test(evt.target.tagName)) {
165
- evt.preventDefault();
166
- }
167
- });
168
- }
169
-
170
- // Calling evt.preventDefault() suppresses the native click event on most browsers. However, it doesn't
171
- // suppress the synthetic click event emitted by dojo/touch. In order for clicks in popups to work
172
- // consistently, always use dojo/touch in popups. See #18150.
173
- wrapper.dojoClick = true;
174
- }
175
-
176
- return wrapper;
177
- },
178
-
179
- moveOffScreen: function(/*Widget*/ widget){
180
- // summary:
181
- // Moves the popup widget off-screen.
182
- // Do not use this method to hide popups when not in use, because
183
- // that will create an accessibility issue: the offscreen popup is
184
- // still in the tabbing order.
185
-
186
- // Create wrapper if not already there
187
- var wrapper = this._createWrapper(widget);
188
-
189
- // Besides setting visibility:hidden, move it out of the viewport, see #5776, #10111, #13604
190
- var ltr = domGeometry.isBodyLtr(widget.ownerDocument),
191
- style = {
192
- visibility: "hidden",
193
- top: "-9999px",
194
- display: ""
195
- };
196
- style[ltr ? "left" : "right"] = "-9999px";
197
- style[ltr ? "right" : "left"] = "auto";
198
- domStyle.set(wrapper, style);
199
-
200
- return wrapper;
201
- },
202
-
203
- hide: function(/*Widget*/ widget){
204
- // summary:
205
- // Hide this popup widget (until it is ready to be shown).
206
- // Initialization for widgets that will be used as popups
207
- //
208
- // Also puts widget inside a wrapper DIV (if not already in one)
209
- //
210
- // If popup widget needs to layout it should
211
- // do so when it is made visible, and popup._onShow() is called.
212
-
213
- // Create wrapper if not already there
214
- var wrapper = this._createWrapper(widget);
215
-
216
- domStyle.set(wrapper, {
217
- display: "none",
218
- height: "auto", // Open() may have limited the height to fit in the viewport,
219
- overflowY: "visible", // and set overflowY to "auto".
220
- border: "" // Open() may have moved border from popup to wrapper.
221
- });
222
-
223
- // Open() may have moved border from popup to wrapper. Move it back.
224
- var node = widget.domNode;
225
- if("_originalStyle" in node){
226
- node.style.cssText = node._originalStyle;
227
- }
228
- },
229
-
230
- getTopPopup: function(){
231
- // summary:
232
- // Compute the closest ancestor popup that's *not* a child of another popup.
233
- // Ex: For a TooltipDialog with a button that spawns a tree of menus, find the popup of the button.
234
- var stack = this._stack;
235
- for(var pi = stack.length - 1; pi > 0 && stack[pi].parent === stack[pi - 1].widget; pi--){
236
- /* do nothing, just trying to get right value for pi */
237
- }
238
- return stack[pi];
239
- },
240
-
241
- open: function(/*__OpenArgs*/ args){
242
- // summary:
243
- // Popup the widget at the specified position
244
- //
245
- // example:
246
- // opening at the mouse position
247
- // | popup.open({popup: menuWidget, x: evt.pageX, y: evt.pageY});
248
- //
249
- // example:
250
- // opening the widget as a dropdown
251
- // | popup.open({parent: this, popup: menuWidget, around: this.domNode, onClose: function(){...}});
252
- //
253
- // Note that whatever widget called dijit/popup.open() should also listen to its own _onBlur callback
254
- // (fired from _base/focus.js) to know that focus has moved somewhere else and thus the popup should be closed.
255
-
256
- var stack = this._stack,
257
- widget = args.popup,
258
- node = widget.domNode,
259
- orient = args.orient || ["below", "below-alt", "above", "above-alt"],
260
- ltr = args.parent ? args.parent.isLeftToRight() : domGeometry.isBodyLtr(widget.ownerDocument),
261
- around = args.around,
262
- id = (args.around && args.around.id) ? (args.around.id + "_dropdown") : ("popup_" + this._idGen++);
263
-
264
- // If we are opening a new popup that isn't a child of a currently opened popup, then
265
- // close currently opened popup(s). This should happen automatically when the old popups
266
- // gets the _onBlur() event, except that the _onBlur() event isn't reliable on IE, see [22198].
267
- while(stack.length && (!args.parent || !dom.isDescendant(args.parent.domNode, stack[stack.length - 1].widget.domNode))){
268
- this.close(stack[stack.length - 1].widget);
269
- }
270
-
271
- // Get pointer to popup wrapper, and create wrapper if it doesn't exist. Remove display:none (but keep
272
- // off screen) so we can do sizing calculations.
273
- var wrapper = this.moveOffScreen(widget);
274
-
275
- if(widget.startup && !widget._started){
276
- widget.startup(); // this has to be done after being added to the DOM
277
- }
278
-
279
- // Limit height to space available in viewport either above or below aroundNode (whichever side has more
280
- // room), adding scrollbar if necessary. Can't add scrollbar to widget because it may be a <table> (ex:
281
- // dijit/Menu), so add to wrapper, and then move popup's border to wrapper so scroll bar inside border.
282
- var maxHeight, popupSize = domGeometry.position(node);
283
- if("maxHeight" in args && args.maxHeight != -1){
284
- maxHeight = args.maxHeight || Infinity; // map 0 --> infinity for back-compat of _HasDropDown.maxHeight
285
- }else{
286
- var viewport = Viewport.getEffectiveBox(this.ownerDocument),
287
- aroundPos = around ? domGeometry.position(around, false) : {y: args.y - (args.padding||0), h: (args.padding||0) * 2};
288
- maxHeight = Math.floor(Math.max(aroundPos.y, viewport.h - (aroundPos.y + aroundPos.h)));
289
- }
290
- if(popupSize.h > maxHeight){
291
- // Get style of popup's border. Unfortunately domStyle.get(node, "border") doesn't work on FF or IE,
292
- // and domStyle.get(node, "borderColor") etc. doesn't work on FF, so need to use fully qualified names.
293
- var cs = domStyle.getComputedStyle(node),
294
- borderStyle = cs.borderLeftWidth + " " + cs.borderLeftStyle + " " + cs.borderLeftColor;
295
- domStyle.set(wrapper, {
296
- overflowY: "scroll",
297
- height: maxHeight + "px",
298
- border: borderStyle // so scrollbar is inside border
299
- });
300
- node._originalStyle = node.style.cssText;
301
- node.style.border = "none";
302
- }
303
-
304
- domAttr.set(wrapper, {
305
- id: id,
306
- style: {
307
- zIndex: this._beginZIndex + stack.length
308
- },
309
- "class": "dijitPopup " + (widget.baseClass || widget["class"] || "").split(" ")[0] + "Popup",
310
- dijitPopupParent: args.parent ? args.parent.id : ""
311
- });
312
-
313
- if(stack.length == 0 && around){
314
- // First element on stack. Save position of aroundNode and setup listener for changes to that position.
315
- this._firstAroundNode = around;
316
- this._firstAroundPosition = domGeometry.position(around, true);
317
- this._aroundMoveListener = setTimeout(lang.hitch(this, "_repositionAll"), 50);
318
- }
319
-
320
- if(has("config-bgIframe") && !widget.bgIframe){
321
- // setting widget.bgIframe triggers cleanup in _WidgetBase.destroyRendering()
322
- widget.bgIframe = new BackgroundIframe(wrapper);
323
- }
324
-
325
- // position the wrapper node and make it visible
326
- var layoutFunc = widget.orient ? lang.hitch(widget, "orient") : null,
327
- best = around ?
328
- place.around(wrapper, around, orient, ltr, layoutFunc) :
329
- place.at(wrapper, args, orient == 'R' ? ['TR', 'BR', 'TL', 'BL'] : ['TL', 'BL', 'TR', 'BR'], args.padding,
330
- layoutFunc);
331
-
332
- wrapper.style.visibility = "visible";
333
- node.style.visibility = "visible"; // counteract effects from _HasDropDown
334
-
335
- var handlers = [];
336
-
337
- // provide default escape and tab key handling
338
- // (this will work for any widget, not just menu)
339
- handlers.push(on(wrapper, "keydown", lang.hitch(this, function(evt){
340
- if(evt.keyCode == keys.ESCAPE && args.onCancel){
341
- evt.stopPropagation();
342
- evt.preventDefault();
343
- args.onCancel();
344
- }else if(evt.keyCode == keys.TAB){
345
- evt.stopPropagation();
346
- evt.preventDefault();
347
- var topPopup = this.getTopPopup();
348
- if(topPopup && topPopup.onCancel){
349
- topPopup.onCancel();
350
- }
351
- }
352
- })));
353
-
354
- // watch for cancel/execute events on the popup and notify the caller
355
- // (for a menu, "execute" means clicking an item)
356
- if(widget.onCancel && args.onCancel){
357
- handlers.push(widget.on("cancel", args.onCancel));
358
- }
359
-
360
- handlers.push(widget.on(widget.onExecute ? "execute" : "change", lang.hitch(this, function(){
361
- var topPopup = this.getTopPopup();
362
- if(topPopup && topPopup.onExecute){
363
- topPopup.onExecute();
364
- }
365
- })));
366
-
367
- stack.push({
368
- widget: widget,
369
- wrapper: wrapper,
370
- parent: args.parent,
371
- onExecute: args.onExecute,
372
- onCancel: args.onCancel,
373
- onClose: args.onClose,
374
- handlers: handlers
375
- });
376
-
377
- if(widget.onOpen){
378
- // TODO: in 2.0 standardize onShow() (used by StackContainer) and onOpen() (used here)
379
- widget.onOpen(best);
380
- }
381
-
382
- return best;
383
- },
384
-
385
- close: function(/*Widget?*/ popup){
386
- // summary:
387
- // Close specified popup and any popups that it parented.
388
- // If no popup is specified, closes all popups.
389
-
390
- var stack = this._stack;
391
-
392
- // Basically work backwards from the top of the stack closing popups
393
- // until we hit the specified popup, but IIRC there was some issue where closing
394
- // a popup would cause others to close too. Thus if we are trying to close B in [A,B,C]
395
- // closing C might close B indirectly and then the while() condition will run where stack==[A]...
396
- // so the while condition is constructed defensively.
397
- while((popup && array.some(stack, function(elem){
398
- return elem.widget == popup;
399
- })) ||
400
- (!popup && stack.length)){
401
- var top = stack.pop(),
402
- widget = top.widget,
403
- onClose = top.onClose;
404
-
405
- if (widget.bgIframe) {
406
- // push the iframe back onto the stack.
407
- widget.bgIframe.destroy();
408
- delete widget.bgIframe;
409
- }
410
-
411
- if(widget.onClose){
412
- // TODO: in 2.0 standardize onHide() (used by StackContainer) and onClose() (used here).
413
- // Actually, StackContainer also calls onClose(), but to mean that the pane is being deleted
414
- // (i.e. that the TabContainer's tab's [x] icon was clicked)
415
- widget.onClose();
416
- }
417
-
418
- var h;
419
- while(h = top.handlers.pop()){
420
- h.remove();
421
- }
422
-
423
- // Hide the widget and it's wrapper unless it has already been destroyed in above onClose() etc.
424
- if(widget && widget.domNode){
425
- this.hide(widget);
426
- }
427
-
428
- if(onClose){
429
- onClose();
430
- }
431
- }
432
-
433
- if(stack.length == 0 && this._aroundMoveListener){
434
- clearTimeout(this._aroundMoveListener);
435
- this._firstAroundNode = this._firstAroundPosition = this._aroundMoveListener = null;
436
- }
437
- }
438
- });
439
-
440
- return (dijit.popup = new PopupManager());
441
- });
@@ -1,79 +0,0 @@
1
- //>>built
2
- define("dijit/registry",["dojo/_base/array","dojo/_base/window","./main"],function(_1,_2,_3){
3
- var _4={},_5={};
4
- var _6={length:0,add:function(_7){
5
- if(_5[_7.id]){
6
- throw new Error("Tried to register widget with id=="+_7.id+" but that id is already registered");
7
- }
8
- _5[_7.id]=_7;
9
- this.length++;
10
- },remove:function(id){
11
- if(_5[id]){
12
- delete _5[id];
13
- this.length--;
14
- }
15
- },byId:function(id){
16
- return typeof id=="string"?_5[id]:id;
17
- },byNode:function(_8){
18
- return _5[_8.getAttribute("widgetId")];
19
- },toArray:function(){
20
- var ar=[];
21
- for(var id in _5){
22
- ar.push(_5[id]);
23
- }
24
- return ar;
25
- },getUniqueId:function(_9){
26
- var id;
27
- do{
28
- id=_9+"_"+(_9 in _4?++_4[_9]:_4[_9]=0);
29
- }while(_5[id]);
30
- return _3._scopeName=="dijit"?id:_3._scopeName+"_"+id;
31
- },findWidgets:function(_a,_b){
32
- var _c=[];
33
- function _d(_e){
34
- for(var _f=_e.firstChild;_f;_f=_f.nextSibling){
35
- if(_f.nodeType==1){
36
- var _10=_f.getAttribute("widgetId");
37
- if(_10){
38
- var _11=_5[_10];
39
- if(_11){
40
- _c.push(_11);
41
- }
42
- }else{
43
- if(_f!==_b){
44
- _d(_f);
45
- }
46
- }
47
- }
48
- }
49
- };
50
- _d(_a);
51
- return _c;
52
- },_destroyAll:function(){
53
- _3._curFocus=null;
54
- _3._prevFocus=null;
55
- _3._activeStack=[];
56
- _1.forEach(_6.findWidgets(_2.body()),function(_12){
57
- if(!_12._destroyed){
58
- if(_12.destroyRecursive){
59
- _12.destroyRecursive();
60
- }else{
61
- if(_12.destroy){
62
- _12.destroy();
63
- }
64
- }
65
- }
66
- });
67
- },getEnclosingWidget:function(_13){
68
- while(_13){
69
- var id=_13.nodeType==1&&_13.getAttribute("widgetId");
70
- if(id){
71
- return _5[id];
72
- }
73
- _13=_13.parentNode;
74
- }
75
- return null;
76
- },_hash:_5};
77
- _3.registry=_6;
78
- return _6;
79
- });
@@ -1,159 +0,0 @@
1
- define("dijit/registry", [
2
- "dojo/_base/array", // array.forEach array.map
3
- "dojo/_base/window", // win.body
4
- "./main" // dijit._scopeName
5
- ], function(array, win, dijit){
6
-
7
- // module:
8
- // dijit/registry
9
-
10
- var _widgetTypeCtr = {}, hash = {};
11
-
12
- var registry = {
13
- // summary:
14
- // Registry of existing widget on page, plus some utility methods.
15
-
16
- // length: Number
17
- // Number of registered widgets
18
- length: 0,
19
-
20
- add: function(widget){
21
- // summary:
22
- // Add a widget to the registry. If a duplicate ID is detected, a error is thrown.
23
- // widget: dijit/_WidgetBase
24
- // Any dijit/_WidgetBase subclass.
25
- if(hash[widget.id]){
26
- throw new Error("Tried to register widget with id==" + widget.id + " but that id is already registered");
27
- }
28
- hash[widget.id] = widget;
29
- this.length++;
30
- },
31
-
32
- remove: function(/*String*/ id){
33
- // summary:
34
- // Remove a widget from the registry. Does not destroy the widget; simply
35
- // removes the reference.
36
- if(hash[id]){
37
- delete hash[id];
38
- this.length--;
39
- }
40
- },
41
-
42
- byId: function(/*String|Widget*/ id){
43
- // summary:
44
- // Find a widget by it's id.
45
- // If passed a widget then just returns the widget.
46
- return typeof id == "string" ? hash[id] : id; // dijit/_WidgetBase
47
- },
48
-
49
- byNode: function(/*DOMNode*/ node){
50
- // summary:
51
- // Returns the widget corresponding to the given DOMNode
52
- return hash[node.getAttribute("widgetId")]; // dijit/_WidgetBase
53
- },
54
-
55
- toArray: function(){
56
- // summary:
57
- // Convert registry into a true Array
58
- //
59
- // example:
60
- // Work with the widget .domNodes in a real Array
61
- // | array.map(registry.toArray(), function(w){ return w.domNode; });
62
-
63
- var ar = [];
64
- for(var id in hash){
65
- ar.push(hash[id]);
66
- }
67
- return ar; // dijit/_WidgetBase[]
68
- },
69
-
70
- getUniqueId: function(/*String*/widgetType){
71
- // summary:
72
- // Generates a unique id for a given widgetType
73
-
74
- var id;
75
- do{
76
- id = widgetType + "_" +
77
- (widgetType in _widgetTypeCtr ?
78
- ++_widgetTypeCtr[widgetType] : _widgetTypeCtr[widgetType] = 0);
79
- }while(hash[id]);
80
- return dijit._scopeName == "dijit" ? id : dijit._scopeName + "_" + id; // String
81
- },
82
-
83
- findWidgets: function(root, skipNode){
84
- // summary:
85
- // Search subtree under root returning widgets found.
86
- // Doesn't search for nested widgets (ie, widgets inside other widgets).
87
- // root: DOMNode
88
- // Node to search under.
89
- // skipNode: DOMNode
90
- // If specified, don't search beneath this node (usually containerNode).
91
-
92
- var outAry = [];
93
-
94
- function getChildrenHelper(root){
95
- for(var node = root.firstChild; node; node = node.nextSibling){
96
- if(node.nodeType == 1){
97
- var widgetId = node.getAttribute("widgetId");
98
- if(widgetId){
99
- var widget = hash[widgetId];
100
- if(widget){ // may be null on page w/multiple dojo's loaded
101
- outAry.push(widget);
102
- }
103
- }else if(node !== skipNode){
104
- getChildrenHelper(node);
105
- }
106
- }
107
- }
108
- }
109
-
110
- getChildrenHelper(root);
111
- return outAry;
112
- },
113
-
114
- _destroyAll: function(){
115
- // summary:
116
- // Code to destroy all widgets and do other cleanup on page unload
117
-
118
- // Clean up focus manager lingering references to widgets and nodes
119
- dijit._curFocus = null;
120
- dijit._prevFocus = null;
121
- dijit._activeStack = [];
122
-
123
- // Destroy all the widgets, top down
124
- array.forEach(registry.findWidgets(win.body()), function(widget){
125
- // Avoid double destroy of widgets like Menu that are attached to <body>
126
- // even though they are logically children of other widgets.
127
- if(!widget._destroyed){
128
- if(widget.destroyRecursive){
129
- widget.destroyRecursive();
130
- }else if(widget.destroy){
131
- widget.destroy();
132
- }
133
- }
134
- });
135
- },
136
-
137
- getEnclosingWidget: function(/*DOMNode*/ node){
138
- // summary:
139
- // Returns the widget whose DOM tree contains the specified DOMNode, or null if
140
- // the node is not contained within the DOM tree of any widget
141
- while(node){
142
- var id = node.nodeType == 1 && node.getAttribute("widgetId");
143
- if(id){
144
- return hash[id];
145
- }
146
- node = node.parentNode;
147
- }
148
- return null;
149
- },
150
-
151
- // In case someone needs to access hash.
152
- // Actually, this is accessed from WidgetSet back-compatibility code
153
- _hash: hash
154
- };
155
-
156
- dijit.registry = registry;
157
-
158
- return registry;
159
- });