@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,194 +0,0 @@
1
- //>>built
2
- define("dijit/layout/StackController",["dojo/_base/array","dojo/_base/declare","dojo/dom-class","dojo/dom-construct","dojo/keys","dojo/_base/lang","dojo/on","dojo/topic","../focus","../registry","../_Widget","../_TemplatedMixin","../_Container","../form/ToggleButton","dojo/touch"],function(_1,_2,_3,_4,_5,_6,on,_7,_8,_9,_a,_b,_c,_d){
3
- var _e=_2("dijit.layout._StackButton",_d,{tabIndex:"-1",closeButton:false,_aria_attr:"aria-selected",buildRendering:function(_f){
4
- this.inherited(arguments);
5
- (this.focusNode||this.domNode).setAttribute("role","tab");
6
- }});
7
- var _10=_2("dijit.layout.StackController",[_a,_b,_c],{baseClass:"dijitStackController",templateString:"<span role='tablist' data-dojo-attach-event='onkeydown'></span>",containerId:"",buttonWidget:_e,buttonWidgetCloseClass:"dijitStackCloseButton",pane2button:function(id){
8
- return _9.byId(this.id+"_"+id);
9
- },postCreate:function(){
10
- this.inherited(arguments);
11
- this.own(_7.subscribe(this.containerId+"-startup",_6.hitch(this,"onStartup")),_7.subscribe(this.containerId+"-addChild",_6.hitch(this,"onAddChild")),_7.subscribe(this.containerId+"-removeChild",_6.hitch(this,"onRemoveChild")),_7.subscribe(this.containerId+"-selectChild",_6.hitch(this,"onSelectChild")),_7.subscribe(this.containerId+"-containerKeyDown",_6.hitch(this,"onContainerKeyDown")));
12
- this.containerNode.dojoClick=true;
13
- this.own(on(this.containerNode,"click",_6.hitch(this,function(evt){
14
- var _11=_9.getEnclosingWidget(evt.target);
15
- if(_11!=this.containerNode&&!_11.disabled&&_11.page){
16
- for(var _12=evt.target;_12!==this.containerNode;_12=_12.parentNode){
17
- if(_3.contains(_12,this.buttonWidgetCloseClass)){
18
- this.onCloseButtonClick(_11.page);
19
- break;
20
- }else{
21
- if(_12==_11.domNode){
22
- this.onButtonClick(_11.page);
23
- break;
24
- }
25
- }
26
- }
27
- }
28
- })));
29
- },onStartup:function(_13){
30
- this.textDir=_13.textDir;
31
- _1.forEach(_13.children,this.onAddChild,this);
32
- if(_13.selected){
33
- this.onSelectChild(_13.selected);
34
- }
35
- var _14=_9.byId(this.containerId).containerNode,_15=_6.hitch(this,"pane2button"),_16={"title":"label","showtitle":"showLabel","iconclass":"iconClass","closable":"closeButton","tooltip":"title","disabled":"disabled","textdir":"textdir"},_17=function(_18,_19){
36
- return on(_14,"attrmodified-"+_18,function(evt){
37
- var _1a=_15(evt.detail&&evt.detail.widget&&evt.detail.widget.id);
38
- if(_1a){
39
- _1a.set(_19,evt.detail.newValue);
40
- }
41
- });
42
- };
43
- for(var _1b in _16){
44
- this.own(_17(_1b,_16[_1b]));
45
- }
46
- },destroy:function(_1c){
47
- this.destroyDescendants(_1c);
48
- this.inherited(arguments);
49
- },onAddChild:function(_1d,_1e){
50
- var Cls=_6.isString(this.buttonWidget)?_6.getObject(this.buttonWidget):this.buttonWidget;
51
- var _1f=new Cls({id:this.id+"_"+_1d.id,name:this.id+"_"+_1d.id,label:_1d.title,disabled:_1d.disabled,ownerDocument:this.ownerDocument,dir:_1d.dir,lang:_1d.lang,textDir:_1d.textDir||this.textDir,showLabel:_1d.showTitle,iconClass:_1d.iconClass,closeButton:_1d.closable,title:_1d.tooltip,page:_1d});
52
- this.addChild(_1f,_1e);
53
- _1d.controlButton=_1f;
54
- if(!this._currentChild){
55
- this.onSelectChild(_1d);
56
- }
57
- var _20=_1d._wrapper.getAttribute("aria-labelledby")?_1d._wrapper.getAttribute("aria-labelledby")+" "+_1f.id:_1f.id;
58
- _1d._wrapper.removeAttribute("aria-label");
59
- _1d._wrapper.setAttribute("aria-labelledby",_20);
60
- },onRemoveChild:function(_21){
61
- if(this._currentChild===_21){
62
- this._currentChild=null;
63
- }
64
- var _22=this.pane2button(_21.id);
65
- if(_22){
66
- this.removeChild(_22);
67
- _22.destroy();
68
- }
69
- delete _21.controlButton;
70
- },onSelectChild:function(_23){
71
- if(!_23){
72
- return;
73
- }
74
- if(this._currentChild){
75
- var _24=this.pane2button(this._currentChild.id);
76
- _24.set("checked",false);
77
- _24.focusNode.setAttribute("tabIndex","-1");
78
- }
79
- var _25=this.pane2button(_23.id);
80
- _25.set("checked",true);
81
- this._currentChild=_23;
82
- _25.focusNode.setAttribute("tabIndex","0");
83
- var _26=_9.byId(this.containerId);
84
- },onButtonClick:function(_27){
85
- var _28=this.pane2button(_27.id);
86
- _8.focus(_28.focusNode);
87
- if(this._currentChild&&this._currentChild.id===_27.id){
88
- _28.set("checked",true);
89
- }
90
- var _29=_9.byId(this.containerId);
91
- _29.selectChild(_27);
92
- },onCloseButtonClick:function(_2a){
93
- var _2b=_9.byId(this.containerId);
94
- _2b.closeChild(_2a);
95
- if(this._currentChild){
96
- var b=this.pane2button(this._currentChild.id);
97
- if(b){
98
- _8.focus(b.focusNode||b.domNode);
99
- }
100
- }
101
- },adjacent:function(_2c){
102
- if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){
103
- _2c=!_2c;
104
- }
105
- var _2d=this.getChildren();
106
- var idx=_1.indexOf(_2d,this.pane2button(this._currentChild.id)),_2e=_2d[idx];
107
- var _2f;
108
- do{
109
- idx=(idx+(_2c?1:_2d.length-1))%_2d.length;
110
- _2f=_2d[idx];
111
- }while(_2f.disabled&&_2f!=_2e);
112
- return _2f;
113
- },onkeydown:function(e,_30){
114
- if(this.disabled||e.altKey){
115
- return;
116
- }
117
- var _31=null;
118
- if(e.ctrlKey||!e._djpage){
119
- switch(e.keyCode){
120
- case _5.LEFT_ARROW:
121
- case _5.UP_ARROW:
122
- if(!e._djpage){
123
- _31=false;
124
- }
125
- break;
126
- case _5.PAGE_UP:
127
- if(e.ctrlKey){
128
- _31=false;
129
- }
130
- break;
131
- case _5.RIGHT_ARROW:
132
- case _5.DOWN_ARROW:
133
- if(!e._djpage){
134
- _31=true;
135
- }
136
- break;
137
- case _5.PAGE_DOWN:
138
- if(e.ctrlKey){
139
- _31=true;
140
- }
141
- break;
142
- case _5.HOME:
143
- var _32=this.getChildren();
144
- for(var idx=0;idx<_32.length;idx++){
145
- var _33=_32[idx];
146
- if(!_33.disabled){
147
- this.onButtonClick(_33.page);
148
- break;
149
- }
150
- }
151
- e.stopPropagation();
152
- e.preventDefault();
153
- break;
154
- case _5.END:
155
- var _32=this.getChildren();
156
- for(var idx=_32.length-1;idx>=0;idx--){
157
- var _33=_32[idx];
158
- if(!_33.disabled){
159
- this.onButtonClick(_33.page);
160
- break;
161
- }
162
- }
163
- e.stopPropagation();
164
- e.preventDefault();
165
- break;
166
- case _5.DELETE:
167
- case "W".charCodeAt(0):
168
- if(this._currentChild.closable&&(e.keyCode==_5.DELETE||e.ctrlKey)){
169
- this.onCloseButtonClick(this._currentChild);
170
- e.stopPropagation();
171
- e.preventDefault();
172
- }
173
- break;
174
- case _5.TAB:
175
- if(e.ctrlKey){
176
- this.onButtonClick(this.adjacent(!e.shiftKey).page);
177
- e.stopPropagation();
178
- e.preventDefault();
179
- }
180
- break;
181
- }
182
- if(_31!==null){
183
- this.onButtonClick(this.adjacent(_31).page);
184
- e.stopPropagation();
185
- e.preventDefault();
186
- }
187
- }
188
- },onContainerKeyDown:function(_34){
189
- _34.e._djpage=_34.page;
190
- this.onkeydown(_34.e);
191
- }});
192
- _10.StackButton=_e;
193
- return _10;
194
- });
@@ -1,410 +0,0 @@
1
- define("dijit/layout/StackController", [
2
- "dojo/_base/array", // array.forEach array.indexOf array.map
3
- "dojo/_base/declare", // declare
4
- "dojo/dom-class",
5
- "dojo/dom-construct",
6
- "dojo/keys", // keys
7
- "dojo/_base/lang", // lang.getObject
8
- "dojo/on",
9
- "dojo/topic",
10
- "../focus", // focus.focus()
11
- "../registry", // registry.byId
12
- "../_Widget",
13
- "../_TemplatedMixin",
14
- "../_Container",
15
- "../form/ToggleButton",
16
- "dojo/touch" // for normalized click handling, see dojoClick property setting in postCreate()
17
- ], function(array, declare, domClass, domConstruct, keys, lang, on, topic,
18
- focus, registry, _Widget, _TemplatedMixin,_Container, ToggleButton){
19
-
20
- // module:
21
- // dijit/layout/StackController
22
-
23
- var StackButton = declare("dijit.layout._StackButton", ToggleButton, {
24
- // summary:
25
- // Internal widget used by StackContainer.
26
- // description:
27
- // The button-like or tab-like object you click to select or delete a page
28
- // tags:
29
- // private
30
-
31
- // Override _FormWidget.tabIndex.
32
- // StackContainer buttons are not in the tab order by default.
33
- // Probably we should be calling this.startupKeyNavChildren() instead.
34
- tabIndex: "-1",
35
-
36
- // closeButton: Boolean
37
- // When true, display close button for this tab
38
- closeButton: false,
39
-
40
- _aria_attr: "aria-selected",
41
-
42
- buildRendering: function(/*Event*/ evt){
43
- this.inherited(arguments);
44
- (this.focusNode || this.domNode).setAttribute("role", "tab");
45
- }
46
- });
47
-
48
-
49
- var StackController = declare("dijit.layout.StackController", [_Widget, _TemplatedMixin, _Container], {
50
- // summary:
51
- // Set of buttons to select a page in a `dijit/layout/StackContainer`
52
- // description:
53
- // Monitors the specified StackContainer, and whenever a page is
54
- // added, deleted, or selected, updates itself accordingly.
55
-
56
- baseClass: "dijitStackController",
57
-
58
- templateString: "<span role='tablist' data-dojo-attach-event='onkeydown'></span>",
59
-
60
- // containerId: [const] String
61
- // The id of the page container that I point to
62
- containerId: "",
63
-
64
- // buttonWidget: [const] Constructor
65
- // The button widget to create to correspond to each page
66
- buttonWidget: StackButton,
67
-
68
- // buttonWidgetCloseClass: String
69
- // CSS class of [x] close icon, used by event delegation code to tell when close button was clicked
70
- buttonWidgetCloseClass: "dijitStackCloseButton",
71
-
72
- pane2button: function(/*String*/ id){
73
- // summary:
74
- // Returns the button corresponding to the pane w/the given id.
75
- // tags:
76
- // protected
77
- return registry.byId(this.id + "_" + id);
78
- },
79
-
80
- postCreate: function(){
81
- this.inherited(arguments);
82
-
83
- // Listen to notifications from StackContainer. This is tricky because the StackContainer may not have
84
- // been created yet, so abstracting it through topics.
85
- // Note: for TabContainer we can do this through bubbled events instead of topics; maybe that's
86
- // all we support for 2.0?
87
- this.own(
88
- topic.subscribe(this.containerId + "-startup", lang.hitch(this, "onStartup")),
89
- topic.subscribe(this.containerId + "-addChild", lang.hitch(this, "onAddChild")),
90
- topic.subscribe(this.containerId + "-removeChild", lang.hitch(this, "onRemoveChild")),
91
- topic.subscribe(this.containerId + "-selectChild", lang.hitch(this, "onSelectChild")),
92
- topic.subscribe(this.containerId + "-containerKeyDown", lang.hitch(this, "onContainerKeyDown"))
93
- );
94
-
95
- // Listen for click events to select or close tabs.
96
- // No need to worry about ENTER/SPACE key handling: tabs are selected via left/right arrow keys,
97
- // and closed via shift-F10 (to show the close menu).
98
- // Also, add flag to use normalized click handling from dojo/touch
99
- this.containerNode.dojoClick = true;
100
- this.own(on(this.containerNode, 'click', lang.hitch(this, function(evt){
101
- var button = registry.getEnclosingWidget(evt.target);
102
- if(button != this.containerNode && !button.disabled && button.page){
103
- for(var target = evt.target; target !== this.containerNode; target = target.parentNode){
104
- if(domClass.contains(target, this.buttonWidgetCloseClass)){
105
- this.onCloseButtonClick(button.page);
106
- break;
107
- }else if(target == button.domNode){
108
- this.onButtonClick(button.page);
109
- break;
110
- }
111
- }
112
- }
113
- })));
114
- },
115
-
116
- onStartup: function(/*Object*/ info){
117
- // summary:
118
- // Called after StackContainer has finished initializing
119
- // tags:
120
- // private
121
- this.textDir = info.textDir;
122
- array.forEach(info.children, this.onAddChild, this);
123
- if(info.selected){
124
- // Show button corresponding to selected pane (unless selected
125
- // is null because there are no panes)
126
- this.onSelectChild(info.selected);
127
- }
128
-
129
- // Reflect events like page title changes to tab buttons
130
- var containerNode = registry.byId(this.containerId).containerNode,
131
- pane2button = lang.hitch(this, "pane2button"),
132
- paneToButtonAttr = {
133
- "title": "label",
134
- "showtitle": "showLabel",
135
- "iconclass": "iconClass",
136
- "closable": "closeButton",
137
- "tooltip": "title",
138
- "disabled": "disabled",
139
- "textdir": "textdir"
140
- },
141
- connectFunc = function(attr, buttonAttr){
142
- return on(containerNode, "attrmodified-" + attr, function(evt){
143
- var button = pane2button(evt.detail && evt.detail.widget && evt.detail.widget.id);
144
- if(button){
145
- button.set(buttonAttr, evt.detail.newValue);
146
- }
147
- });
148
- };
149
- for(var attr in paneToButtonAttr){
150
- this.own(connectFunc(attr, paneToButtonAttr[attr]));
151
- }
152
- },
153
-
154
- destroy: function(preserveDom){
155
- // Since the buttons are internal to the StackController widget, destroy() should remove them.
156
- // When #5796 is fixed for 2.0 can get rid of this function completely.
157
- this.destroyDescendants(preserveDom);
158
- this.inherited(arguments);
159
- },
160
-
161
- onAddChild: function(/*dijit/_WidgetBase*/ page, /*Integer?*/ insertIndex){
162
- // summary:
163
- // Called whenever a page is added to the container.
164
- // Create button corresponding to the page.
165
- // tags:
166
- // private
167
-
168
- // create an instance of the button widget
169
- // (remove typeof buttonWidget == string support in 2.0)
170
- var Cls = lang.isString(this.buttonWidget) ? lang.getObject(this.buttonWidget) : this.buttonWidget;
171
- var button = new Cls({
172
- id: this.id + "_" + page.id,
173
- name: this.id + "_" + page.id, // note: must match id used in pane2button()
174
- label: page.title,
175
- disabled: page.disabled,
176
- ownerDocument: this.ownerDocument,
177
- dir: page.dir,
178
- lang: page.lang,
179
- textDir: page.textDir || this.textDir,
180
- showLabel: page.showTitle,
181
- iconClass: page.iconClass,
182
- closeButton: page.closable,
183
- title: page.tooltip,
184
- page: page
185
- });
186
-
187
- this.addChild(button, insertIndex);
188
- page.controlButton = button; // this value might be overwritten if two tabs point to same container
189
- if(!this._currentChild){
190
- // If this is the first child then StackContainer will soon publish that it's selected,
191
- // but before that StackContainer calls layout(), and before layout() is called the
192
- // StackController needs to have the proper height... which means that the button needs
193
- // to be marked as selected now. See test_TabContainer_CSS.html for test.
194
- this.onSelectChild(page);
195
- }
196
-
197
- // Add this StackController button to the list of things that labels that StackContainer pane.
198
- // Also, if there's an aria-labelledby parameter for the pane, then the aria-label parameter is unneeded.
199
- var labelledby = page._wrapper.getAttribute("aria-labelledby") ?
200
- page._wrapper.getAttribute("aria-labelledby") + " " + button.id : button.id;
201
- page._wrapper.removeAttribute("aria-label");
202
- page._wrapper.setAttribute("aria-labelledby", labelledby);
203
- },
204
-
205
- onRemoveChild: function(/*dijit/_WidgetBase*/ page){
206
- // summary:
207
- // Called whenever a page is removed from the container.
208
- // Remove the button corresponding to the page.
209
- // tags:
210
- // private
211
-
212
- if(this._currentChild === page){
213
- this._currentChild = null;
214
- }
215
-
216
- var button = this.pane2button(page.id);
217
- if(button){
218
- this.removeChild(button);
219
- button.destroy();
220
- }
221
- delete page.controlButton;
222
- },
223
-
224
- onSelectChild: function(/*dijit/_WidgetBase*/ page){
225
- // summary:
226
- // Called when a page has been selected in the StackContainer, either by me or by another StackController
227
- // tags:
228
- // private
229
-
230
- if(!page){
231
- return;
232
- }
233
-
234
- if(this._currentChild){
235
- var oldButton = this.pane2button(this._currentChild.id);
236
- oldButton.set('checked', false);
237
- oldButton.focusNode.setAttribute("tabIndex", "-1");
238
- }
239
-
240
- var newButton = this.pane2button(page.id);
241
- newButton.set('checked', true);
242
- this._currentChild = page;
243
- newButton.focusNode.setAttribute("tabIndex", "0");
244
- var container = registry.byId(this.containerId);
245
- },
246
-
247
- onButtonClick: function(/*dijit/_WidgetBase*/ page){
248
- // summary:
249
- // Called whenever one of my child buttons is pressed in an attempt to select a page
250
- // tags:
251
- // private
252
-
253
- var button = this.pane2button(page.id);
254
-
255
- // For TabContainer where the tabs are <span>, need to set focus explicitly when left/right arrow
256
- focus.focus(button.focusNode);
257
-
258
- if(this._currentChild && this._currentChild.id === page.id){
259
- //In case the user clicked the checked button, keep it in the checked state because it remains to be the selected stack page.
260
- button.set('checked', true);
261
- }
262
- var container = registry.byId(this.containerId);
263
- container.selectChild(page);
264
- },
265
-
266
- onCloseButtonClick: function(/*dijit/_WidgetBase*/ page){
267
- // summary:
268
- // Called whenever one of my child buttons [X] is pressed in an attempt to close a page
269
- // tags:
270
- // private
271
-
272
- var container = registry.byId(this.containerId);
273
- container.closeChild(page);
274
- if(this._currentChild){
275
- var b = this.pane2button(this._currentChild.id);
276
- if(b){
277
- focus.focus(b.focusNode || b.domNode);
278
- }
279
- }
280
- },
281
-
282
- // TODO: this is a bit redundant with forward, back api in StackContainer
283
- adjacent: function(/*Boolean*/ forward){
284
- // summary:
285
- // Helper for onkeydown to find next/previous button
286
- // tags:
287
- // private
288
-
289
- if(!this.isLeftToRight() && (!this.tabPosition || /top|bottom/.test(this.tabPosition))){
290
- forward = !forward;
291
- }
292
- // find currently focused button in children array
293
- var children = this.getChildren();
294
- var idx = array.indexOf(children, this.pane2button(this._currentChild.id)),
295
- current = children[idx];
296
-
297
- // Pick next/previous non-disabled button to focus on. If we get back to the original button it means
298
- // that all buttons must be disabled, so return current child to avoid an infinite loop.
299
- var child;
300
- do{
301
- idx = (idx + (forward ? 1 : children.length - 1)) % children.length;
302
- child = children[idx];
303
- }while(child.disabled && child != current);
304
-
305
- return child; // dijit/_WidgetBase
306
- },
307
-
308
- onkeydown: function(/*Event*/ e, /*Boolean?*/ fromContainer){
309
- // summary:
310
- // Handle keystrokes on the page list, for advancing to next/previous button
311
- // and closing the current page if the page is closable.
312
- // tags:
313
- // private
314
-
315
- if(this.disabled || e.altKey){
316
- return;
317
- }
318
- var forward = null;
319
- if(e.ctrlKey || !e._djpage){
320
- switch(e.keyCode){
321
- case keys.LEFT_ARROW:
322
- case keys.UP_ARROW:
323
- if(!e._djpage){
324
- forward = false;
325
- }
326
- break;
327
- case keys.PAGE_UP:
328
- if(e.ctrlKey){
329
- forward = false;
330
- }
331
- break;
332
- case keys.RIGHT_ARROW:
333
- case keys.DOWN_ARROW:
334
- if(!e._djpage){
335
- forward = true;
336
- }
337
- break;
338
- case keys.PAGE_DOWN:
339
- if(e.ctrlKey){
340
- forward = true;
341
- }
342
- break;
343
- case keys.HOME:
344
- // Navigate to first non-disabled child
345
- var children = this.getChildren();
346
- for(var idx = 0; idx < children.length; idx++){
347
- var child = children[idx];
348
- if(!child.disabled){
349
- this.onButtonClick(child.page);
350
- break;
351
- }
352
- }
353
- e.stopPropagation();
354
- e.preventDefault();
355
- break;
356
- case keys.END:
357
- // Navigate to last non-disabled child
358
- var children = this.getChildren();
359
- for(var idx = children.length - 1; idx >= 0; idx--){
360
- var child = children[idx];
361
- if(!child.disabled){
362
- this.onButtonClick(child.page);
363
- break;
364
- }
365
- }
366
- e.stopPropagation();
367
- e.preventDefault();
368
- break;
369
- case keys.DELETE:
370
- case "W".charCodeAt(0): // ctrl-W
371
- if(this._currentChild.closable &&
372
- (e.keyCode == keys.DELETE || e.ctrlKey)){
373
- this.onCloseButtonClick(this._currentChild);
374
-
375
- // avoid browser tab closing
376
- e.stopPropagation();
377
- e.preventDefault();
378
- }
379
- break;
380
- case keys.TAB:
381
- if(e.ctrlKey){
382
- this.onButtonClick(this.adjacent(!e.shiftKey).page);
383
- e.stopPropagation();
384
- e.preventDefault();
385
- }
386
- break;
387
- }
388
- // handle next/previous page navigation (left/right arrow, etc.)
389
- if(forward !== null){
390
- this.onButtonClick(this.adjacent(forward).page);
391
- e.stopPropagation();
392
- e.preventDefault();
393
- }
394
- }
395
- },
396
-
397
- onContainerKeyDown: function(/*Object*/ info){
398
- // summary:
399
- // Called when there was a keydown on the container
400
- // tags:
401
- // private
402
- info.e._djpage = info.page;
403
- this.onkeydown(info.e);
404
- }
405
- });
406
-
407
- StackController.StackButton = StackButton; // for monkey patching
408
-
409
- return StackController;
410
- });
@@ -1,99 +0,0 @@
1
- //>>built
2
- define("dijit/layout/_ContentPaneResizeMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/lang","dojo/query","../registry","../Viewport","./utils"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a){
3
- return _2("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isLayoutContainer:true,startup:function(){
4
- if(this._started){
5
- return;
6
- }
7
- var _b=this.getParent();
8
- this._childOfLayoutWidget=_b&&_b.isLayoutContainer;
9
- this._needLayout=!this._childOfLayoutWidget;
10
- this.inherited(arguments);
11
- if(this._isShown()){
12
- this._onShow();
13
- }
14
- if(!this._childOfLayoutWidget){
15
- this.own(_9.on("resize",_6.hitch(this,"resize")));
16
- }
17
- },_checkIfSingleChild:function(){
18
- if(!this.doLayout){
19
- return;
20
- }
21
- var _c=[],_d=false;
22
- _7("> *",this.containerNode).some(function(_e){
23
- var _f=_8.byNode(_e);
24
- if(_f&&_f.resize){
25
- _c.push(_f);
26
- }else{
27
- if(!/script|link|style/i.test(_e.nodeName)&&_e.offsetHeight){
28
- _d=true;
29
- }
30
- }
31
- });
32
- this._singleChild=_c.length==1&&!_d?_c[0]:null;
33
- _3.toggle(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);
34
- },resize:function(_10,_11){
35
- this._resizeCalled=true;
36
- this._scheduleLayout(_10,_11);
37
- },_scheduleLayout:function(_12,_13){
38
- if(this._isShown()){
39
- this._layout(_12,_13);
40
- }else{
41
- this._needLayout=true;
42
- this._changeSize=_12;
43
- this._resultSize=_13;
44
- }
45
- },_layout:function(_14,_15){
46
- delete this._needLayout;
47
- if(!this._wasShown&&this.open!==false){
48
- this._onShow();
49
- }
50
- if(_14){
51
- _4.setMarginBox(this.domNode,_14);
52
- }
53
- var cn=this.containerNode;
54
- if(cn===this.domNode){
55
- var mb=_15||{};
56
- _6.mixin(mb,_14||{});
57
- if(!("h" in mb)||!("w" in mb)){
58
- mb=_6.mixin(_4.getMarginBox(cn),mb);
59
- }
60
- this._contentBox=_a.marginBox2contentBox(cn,mb);
61
- }else{
62
- this._contentBox=_4.getContentBox(cn);
63
- }
64
- this._layoutChildren();
65
- },_layoutChildren:function(){
66
- this._checkIfSingleChild();
67
- if(this._singleChild&&this._singleChild.resize){
68
- var cb=this._contentBox||_4.getContentBox(this.containerNode);
69
- this._singleChild.resize({w:cb.w,h:cb.h});
70
- }else{
71
- var _16=this.getChildren(),_17,i=0;
72
- while(_17=_16[i++]){
73
- if(_17.resize){
74
- _17.resize();
75
- }
76
- }
77
- }
78
- },_isShown:function(){
79
- if(this._childOfLayoutWidget){
80
- if(this._resizeCalled&&"open" in this){
81
- return this.open;
82
- }
83
- return this._resizeCalled;
84
- }else{
85
- if("open" in this){
86
- return this.open;
87
- }else{
88
- var _18=this.domNode,_19=this.domNode.parentNode;
89
- return (_18.style.display!="none")&&(_18.style.visibility!="hidden")&&!_3.contains(_18,"dijitHidden")&&_19&&_19.style&&(_19.style.display!="none");
90
- }
91
- }
92
- },_onShow:function(){
93
- this._wasShown=true;
94
- if(this._needLayout){
95
- this._layout(this._changeSize,this._resultSize);
96
- }
97
- this.inherited(arguments);
98
- }});
99
- });