@datagrok/helm 2.13.8 → 3.0.1

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 (360) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/css/helm.css +40 -0
  3. package/dist/137.js +2 -0
  4. package/dist/137.js.map +1 -0
  5. package/dist/323.js +2 -0
  6. package/dist/323.js.map +1 -0
  7. package/dist/657.js +2 -0
  8. package/dist/657.js.map +1 -0
  9. package/dist/782.js +2 -0
  10. package/dist/782.js.map +1 -0
  11. package/dist/884.js +2 -0
  12. package/dist/884.js.map +1 -0
  13. package/dist/94.js +2 -0
  14. package/dist/94.js.map +1 -0
  15. package/dist/libraries_bio_src_monomer-works_seq-to-molfile-worker_ts.js +16420 -0
  16. package/dist/libraries_bio_src_monomer-works_seq-to-molfile-worker_ts.js.map +1 -0
  17. package/dist/package-test.js +1 -1
  18. package/dist/package-test.js.map +1 -1
  19. package/dist/package.js +1 -1
  20. package/dist/package.js.map +1 -1
  21. package/dist/vendors-HELM_node_modules_lru-cache_dist_esm_index_js.js +1560 -0
  22. package/dist/vendors-HELM_node_modules_lru-cache_dist_esm_index_js.js.map +1 -0
  23. package/files/samples/helm-showcase.csv +56 -0
  24. package/package.json +8 -12
  25. package/src/helm-helper.ts +134 -410
  26. package/src/package-api.ts +14 -11
  27. package/src/package-test.ts +0 -2
  28. package/src/package-utils.ts +8 -298
  29. package/src/package.g.ts +2 -8
  30. package/src/package.ts +11 -31
  31. package/src/tests/helm-activity-cliffs.ts +2 -2
  32. package/src/tests/helm-input-tests.ts +83 -0
  33. package/src/tests/parse-helm-tests.ts +7 -57
  34. package/src/tests/properties-widget-tests.ts +21 -11
  35. package/src/utils/helm-grid-cell-renderer.ts +141 -151
  36. package/src/utils/index.ts +3 -7
  37. package/src/widgets/helm-input.ts +42 -12
  38. package/src/widgets/properties-widget.ts +18 -11
  39. package/webpack.config.js +1 -12
  40. package/helm/JSDraw/Pistoia.HELM-uncompressed.js +0 -9694
  41. package/helm/JSDraw/ReadMe.txt +0 -8
  42. package/helm/JSDraw/Scilligence.JSDraw2.Lite-uncompressed.js +0 -31126
  43. package/helm/dojo/package.ts +0 -41
  44. package/helm/dojo/types.ts +0 -12
  45. package/src/helm-web-editor.ts +0 -68
  46. package/src/tests/get-monomer-tests.ts +0 -214
  47. package/src/tests/helm-service-tests.ts +0 -98
  48. package/src/types/dojo.ts +0 -3
  49. package/src/types/index.ts +0 -5
  50. package/src/utils/get-monomer.ts +0 -90
  51. package/src/utils/helm-service.ts +0 -166
  52. package/test-console-output-1.log +0 -919
  53. package/test-record-1.mp4 +0 -0
  54. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +0 -63
  55. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +0 -116
  56. package/vendor/dojo-1.10.10/dijit/Destroyable.js +0 -35
  57. package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +0 -83
  58. package/vendor/dojo-1.10.10/dijit/Tooltip.js +0 -240
  59. package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +0 -612
  60. package/vendor/dojo-1.10.10/dijit/Viewport.js +0 -44
  61. package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +0 -87
  62. package/vendor/dojo-1.10.10/dijit/WidgetSet.js +0 -76
  63. package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +0 -247
  64. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +0 -94
  65. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +0 -238
  66. package/vendor/dojo-1.10.10/dijit/_Contained.js +0 -17
  67. package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +0 -56
  68. package/vendor/dojo-1.10.10/dijit/_Container.js +0 -47
  69. package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +0 -108
  70. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +0 -198
  71. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +0 -372
  72. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +0 -11
  73. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +0 -66
  74. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +0 -188
  75. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +0 -472
  76. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +0 -8
  77. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +0 -31
  78. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +0 -90
  79. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +0 -205
  80. package/vendor/dojo-1.10.10/dijit/_Widget.js +0 -66
  81. package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +0 -352
  82. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +0 -353
  83. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +0 -1200
  84. package/vendor/dojo-1.10.10/dijit/_base/focus.js +0 -68
  85. package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +0 -207
  86. package/vendor/dojo-1.10.10/dijit/_base/manager.js +0 -10
  87. package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +0 -35
  88. package/vendor/dojo-1.10.10/dijit/_base/place.js +0 -52
  89. package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +0 -131
  90. package/vendor/dojo-1.10.10/dijit/_base/popup.js +0 -23
  91. package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +0 -58
  92. package/vendor/dojo-1.10.10/dijit/_base/scroll.js +0 -6
  93. package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +0 -22
  94. package/vendor/dojo-1.10.10/dijit/_base/sniff.js +0 -3
  95. package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +0 -12
  96. package/vendor/dojo-1.10.10/dijit/_base/typematic.js +0 -3
  97. package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +0 -10
  98. package/vendor/dojo-1.10.10/dijit/_base/wai.js +0 -32
  99. package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +0 -109
  100. package/vendor/dojo-1.10.10/dijit/_base/window.js +0 -6
  101. package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +0 -18
  102. package/vendor/dojo-1.10.10/dijit/_base.js +0 -4
  103. package/vendor/dojo-1.10.10/dijit/_base.js.uncompressed.js +0 -27
  104. package/vendor/dojo-1.10.10/dijit/a11y.js +0 -109
  105. package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +0 -191
  106. package/vendor/dojo-1.10.10/dijit/a11yclick.js +0 -66
  107. package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +0 -139
  108. package/vendor/dojo-1.10.10/dijit/focus.js +0 -188
  109. package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +0 -371
  110. package/vendor/dojo-1.10.10/dijit/form/Button.js +0 -49
  111. package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +0 -130
  112. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +0 -4
  113. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +0 -27
  114. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +0 -21
  115. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +0 -86
  116. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +0 -38
  117. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +0 -102
  118. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +0 -7
  119. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +0 -26
  120. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +0 -50
  121. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +0 -116
  122. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +0 -26
  123. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +0 -81
  124. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +0 -24
  125. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +0 -51
  126. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +0 -22
  127. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +0 -67
  128. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +0 -111
  129. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +0 -254
  130. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +0 -32
  131. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +0 -69
  132. package/vendor/dojo-1.10.10/dijit/hccss.js +0 -9
  133. package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +0 -21
  134. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +0 -215
  135. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +0 -550
  136. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +0 -7
  137. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +0 -25
  138. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +0 -235
  139. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +0 -653
  140. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +0 -171
  141. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +0 -411
  142. package/vendor/dojo-1.10.10/dijit/layout/StackController.js +0 -194
  143. package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +0 -410
  144. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +0 -99
  145. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +0 -236
  146. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +0 -47
  147. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +0 -190
  148. package/vendor/dojo-1.10.10/dijit/layout/utils.js +0 -77
  149. package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +0 -151
  150. package/vendor/dojo-1.10.10/dijit/main.js +0 -4
  151. package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +0 -16
  152. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +0 -2
  153. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +0 -21
  154. package/vendor/dojo-1.10.10/dijit/nls/loading.js +0 -2
  155. package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +0 -47
  156. package/vendor/dojo-1.10.10/dijit/place.js +0 -142
  157. package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +0 -407
  158. package/vendor/dojo-1.10.10/dijit/popup.js +0 -162
  159. package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +0 -441
  160. package/vendor/dojo-1.10.10/dijit/registry.js +0 -79
  161. package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +0 -159
  162. package/vendor/dojo-1.10.10/dijit/selection.js +0 -364
  163. package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +0 -525
  164. package/vendor/dojo-1.10.10/dijit/typematic.js +0 -96
  165. package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +0 -211
  166. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +0 -195
  167. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +0 -761
  168. package/vendor/dojo-1.10.10/dojo/Stateful.js +0 -90
  169. package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +0 -218
  170. package/vendor/dojo-1.10.10/dojo/_base/url.js +0 -87
  171. package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +0 -109
  172. package/vendor/dojo-1.10.10/dojo/cache.js +0 -9
  173. package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +0 -7
  174. package/vendor/dojo-1.10.10/dojo/colors.js +0 -74
  175. package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +0 -232
  176. package/vendor/dojo-1.10.10/dojo/cookie.js +0 -48
  177. package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +0 -98
  178. package/vendor/dojo-1.10.10/dojo/date/stamp.js +0 -82
  179. package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +0 -144
  180. package/vendor/dojo-1.10.10/dojo/dojo.js +0 -7
  181. package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +0 -18680
  182. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +0 -27
  183. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +0 -101
  184. package/vendor/dojo-1.10.10/dojo/fx/easing.js +0 -165
  185. package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +0 -276
  186. package/vendor/dojo-1.10.10/dojo/fx.js +0 -271
  187. package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +0 -443
  188. package/vendor/dojo-1.10.10/dojo/hccss.js +0 -26
  189. package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +0 -52
  190. package/vendor/dojo-1.10.10/dojo/html.js +0 -161
  191. package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +0 -370
  192. package/vendor/dojo-1.10.10/dojo/io/iframe.js +0 -71
  193. package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +0 -190
  194. package/vendor/dojo-1.10.10/dojo/io/script.js +0 -112
  195. package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +0 -280
  196. package/vendor/dojo-1.10.10/dojo/parser.js +0 -437
  197. package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +0 -915
  198. package/vendor/dojo-1.10.10/dojo/promise/all.js +0 -59
  199. package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +0 -77
  200. package/vendor/dojo-1.10.10/dojo/regexp.js +0 -32
  201. package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +0 -70
  202. package/vendor/dojo-1.10.10/dojo/request/iframe.js +0 -291
  203. package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +0 -438
  204. package/vendor/dojo-1.10.10/dojo/request/script.js +0 -129
  205. package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +0 -237
  206. package/vendor/dojo-1.10.10/dojo/require.js +0 -11
  207. package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +0 -7
  208. package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
  209. package/vendor/dojo-1.10.10/dojo/string.js +0 -67
  210. package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +0 -181
  211. package/vendor/dojo-1.10.10/dojo/touch.js +0 -191
  212. package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +0 -468
  213. package/vendor/dojo-1.10.10/dojo/uacss.js +0 -36
  214. package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +0 -85
  215. package/vendor/dojo-1.10.10/dojo/window.js +0 -141
  216. package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +0 -241
  217. package/vendor/dojo-1.10.10/dojox/charting/Chart.js +0 -626
  218. package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +0 -1220
  219. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +0 -5
  220. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +0 -16
  221. package/vendor/dojo-1.10.10/dojox/charting/Element.js +0 -247
  222. package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +0 -402
  223. package/vendor/dojo-1.10.10/dojox/charting/Series.js +0 -24
  224. package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +0 -58
  225. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +0 -191
  226. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +0 -577
  227. package/vendor/dojo-1.10.10/dojox/charting/Theme.js +0 -42
  228. package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +0 -120
  229. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +0 -11
  230. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +0 -36
  231. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +0 -77
  232. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +0 -144
  233. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +0 -58
  234. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +0 -123
  235. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +0 -54
  236. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +0 -124
  237. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +0 -28
  238. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +0 -74
  239. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +0 -116
  240. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +0 -178
  241. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +0 -24
  242. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +0 -83
  243. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +0 -557
  244. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +0 -980
  245. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +0 -65
  246. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +0 -224
  247. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +0 -91
  248. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +0 -164
  249. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +0 -7
  250. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +0 -14
  251. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +0 -168
  252. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +0 -311
  253. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +0 -61
  254. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +0 -161
  255. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +0 -141
  256. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +0 -242
  257. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +0 -126
  258. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +0 -243
  259. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +0 -108
  260. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +0 -290
  261. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +0 -13
  262. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +0 -14
  263. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +0 -13
  264. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +0 -14
  265. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +0 -153
  266. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +0 -249
  267. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +0 -253
  268. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +0 -472
  269. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +0 -182
  270. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +0 -356
  271. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +0 -6
  272. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +0 -12
  273. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +0 -6
  274. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +0 -12
  275. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +0 -7
  276. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +0 -13
  277. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +0 -110
  278. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +0 -208
  279. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +0 -303
  280. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +0 -547
  281. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +0 -134
  282. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +0 -207
  283. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +0 -299
  284. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +0 -537
  285. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +0 -24
  286. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +0 -44
  287. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +0 -7
  288. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +0 -14
  289. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +0 -22
  290. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +0 -33
  291. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +0 -20
  292. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +0 -31
  293. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +0 -6
  294. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +0 -12
  295. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +0 -68
  296. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +0 -120
  297. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +0 -209
  298. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +0 -214
  299. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +0 -76
  300. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +0 -77
  301. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +0 -59
  302. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +0 -70
  303. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +0 -220
  304. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +0 -262
  305. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +0 -23
  306. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +0 -36
  307. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +0 -39
  308. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +0 -106
  309. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +0 -5
  310. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +0 -12
  311. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +0 -4
  312. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +0 -3
  313. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +0 -102
  314. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +0 -165
  315. package/vendor/dojo-1.10.10/dojox/color/Palette.js +0 -163
  316. package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +0 -460
  317. package/vendor/dojo-1.10.10/dojox/color/_base.js +0 -174
  318. package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +0 -196
  319. package/vendor/dojo-1.10.10/dojox/gfx/_base.js +0 -253
  320. package/vendor/dojo-1.10.10/dojox/gfx/_base.js.uncompressed.js +0 -1024
  321. package/vendor/dojo-1.10.10/dojox/gfx/fx.js +0 -297
  322. package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +0 -350
  323. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +0 -63
  324. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +0 -91
  325. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +0 -170
  326. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +0 -501
  327. package/vendor/dojo-1.10.10/dojox/gfx/path.js +0 -319
  328. package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +0 -478
  329. package/vendor/dojo-1.10.10/dojox/gfx/shape.js +0 -459
  330. package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +0 -1091
  331. package/vendor/dojo-1.10.10/dojox/gfx/svg.js +0 -662
  332. package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +0 -1023
  333. package/vendor/dojo-1.10.10/dojox/gfx/utils.js +0 -199
  334. package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +0 -322
  335. package/vendor/dojo-1.10.10/dojox/gfx.js +0 -2
  336. package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +0 -1136
  337. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +0 -151
  338. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +0 -169
  339. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +0 -93
  340. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +0 -125
  341. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +0 -81
  342. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +0 -132
  343. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +0 -54
  344. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +0 -78
  345. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +0 -61
  346. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +0 -77
  347. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +0 -87
  348. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +0 -107
  349. package/vendor/dojo-1.10.10/dojox/lang/functional.js +0 -4
  350. package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +0 -3
  351. package/vendor/dojo-1.10.10/dojox/lang/utils.js +0 -86
  352. package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +0 -121
  353. package/vendor/dojo-1.10.10/dojox/main.js +0 -4
  354. package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +0 -14
  355. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +0 -112
  356. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +0 -208
  357. package/vendor/dojo-1.10.10/dojox/storage/Provider.js +0 -62
  358. package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +0 -344
  359. package/vendor/dojo-1.10.10/dojox/storage/manager.js +0 -110
  360. package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +0 -263
@@ -1,653 +0,0 @@
1
- define("dijit/layout/ContentPane", [
2
- "dojo/_base/kernel", // kernel.deprecated
3
- "dojo/_base/lang", // lang.mixin lang.delegate lang.hitch lang.isFunction lang.isObject
4
- "../_Widget",
5
- "../_Container",
6
- "./_ContentPaneResizeMixin",
7
- "dojo/string", // string.substitute
8
- "dojo/html", // html._ContentSetter
9
- "dojo/i18n!../nls/loading",
10
- "dojo/_base/array", // array.forEach
11
- "dojo/_base/declare", // declare
12
- "dojo/_base/Deferred", // Deferred
13
- "dojo/dom", // dom.byId
14
- "dojo/dom-attr", // domAttr.attr
15
- "dojo/dom-construct", // empty()
16
- "dojo/_base/xhr", // xhr.get
17
- "dojo/i18n", // i18n.getLocalization
18
- "dojo/when"
19
- ], function(kernel, lang, _Widget, _Container, _ContentPaneResizeMixin, string, html, nlsLoading, array, declare,
20
- Deferred, dom, domAttr, domConstruct, xhr, i18n, when){
21
-
22
- // module:
23
- // dijit/layout/ContentPane
24
-
25
- return declare("dijit.layout.ContentPane", [_Widget, _Container, _ContentPaneResizeMixin], {
26
- // summary:
27
- // A widget containing an HTML fragment, specified inline
28
- // or by uri. Fragment may include widgets.
29
- //
30
- // description:
31
- // This widget embeds a document fragment in the page, specified
32
- // either by uri, javascript generated markup or DOM reference.
33
- // Any widgets within this content are instantiated and managed,
34
- // but laid out according to the HTML structure. Unlike IFRAME,
35
- // ContentPane embeds a document fragment as would be found
36
- // inside the BODY tag of a full HTML document. It should not
37
- // contain the HTML, HEAD, or BODY tags.
38
- // For more advanced functionality with scripts and
39
- // stylesheets, see dojox/layout/ContentPane. This widget may be
40
- // used stand alone or as a base class for other widgets.
41
- // ContentPane is useful as a child of other layout containers
42
- // such as BorderContainer or TabContainer, but note that those
43
- // widgets can contain any widget as a child.
44
- //
45
- // example:
46
- // Some quick samples:
47
- // To change the innerHTML:
48
- // | cp.set('content', '<b>new content</b>')`
49
- // Or you can send it a NodeList:
50
- // | cp.set('content', dojo.query('div [class=selected]', userSelection))
51
- // To do an ajax update:
52
- // | cp.set('href', url)
53
-
54
- // href: String
55
- // The href of the content that displays now.
56
- // Set this at construction if you want to load data externally when the
57
- // pane is shown. (Set preload=true to load it immediately.)
58
- // Changing href after creation doesn't have any effect; Use set('href', ...);
59
- href: "",
60
-
61
- // content: String|DomNode|NodeList|dijit/_Widget
62
- // The innerHTML of the ContentPane.
63
- // Note that the initialization parameter / argument to set("content", ...)
64
- // can be a String, DomNode, Nodelist, or _Widget.
65
- content: "",
66
-
67
- // extractContent: Boolean
68
- // Extract visible content from inside of `<body> .... </body>`.
69
- // I.e., strip `<html>` and `<head>` (and it's contents) from the href
70
- extractContent: false,
71
-
72
- // parseOnLoad: Boolean
73
- // Parse content and create the widgets, if any.
74
- parseOnLoad: true,
75
-
76
- // parserScope: String
77
- // Flag passed to parser. Root for attribute names to search for. If scopeName is dojo,
78
- // will search for data-dojo-type (or dojoType). For backwards compatibility
79
- // reasons defaults to dojo._scopeName (which is "dojo" except when
80
- // multi-version support is used, when it will be something like dojo16, dojo20, etc.)
81
- parserScope: kernel._scopeName,
82
-
83
- // preventCache: Boolean
84
- // Prevent caching of data from href's by appending a timestamp to the href.
85
- preventCache: false,
86
-
87
- // preload: Boolean
88
- // Force load of data on initialization even if pane is hidden.
89
- preload: false,
90
-
91
- // refreshOnShow: Boolean
92
- // Refresh (re-download) content when pane goes from hidden to shown
93
- refreshOnShow: false,
94
-
95
- // loadingMessage: String
96
- // Message that shows while downloading
97
- loadingMessage: "<span class='dijitContentPaneLoading'><span class='dijitInline dijitIconLoading'></span>${loadingState}</span>",
98
-
99
- // errorMessage: String
100
- // Message that shows if an error occurs
101
- errorMessage: "<span class='dijitContentPaneError'><span class='dijitInline dijitIconError'></span>${errorState}</span>",
102
-
103
- // isLoaded: [readonly] Boolean
104
- // True if the ContentPane has data in it, either specified
105
- // during initialization (via href or inline content), or set
106
- // via set('content', ...) / set('href', ...)
107
- //
108
- // False if it doesn't have any content, or if ContentPane is
109
- // still in the process of downloading href.
110
- isLoaded: false,
111
-
112
- baseClass: "dijitContentPane",
113
-
114
- /*======
115
- // ioMethod: dojo/_base/xhr.get|dojo._base/xhr.post
116
- // Function that should grab the content specified via href.
117
- ioMethod: dojo.xhrGet,
118
- ======*/
119
-
120
- // ioArgs: Object
121
- // Parameters to pass to xhrGet() request, for example:
122
- // | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="href: './bar', ioArgs: {timeout: 500}">
123
- ioArgs: {},
124
-
125
- // onLoadDeferred: [readonly] dojo.Deferred
126
- // This is the `dojo.Deferred` returned by set('href', ...) and refresh().
127
- // Calling onLoadDeferred.then() registers your
128
- // callback to be called only once, when the prior set('href', ...) call or
129
- // the initial href parameter to the constructor finishes loading.
130
- //
131
- // This is different than an onLoad() handler which gets called any time any href
132
- // or content is loaded.
133
- onLoadDeferred: null,
134
-
135
- // Cancel _WidgetBase's _setTitleAttr because we don't want the title attribute (used to specify
136
- // tab labels) to be copied to ContentPane.domNode... otherwise a tooltip shows up over the
137
- // entire pane.
138
- _setTitleAttr: null,
139
-
140
- // Flag to parser that I'll parse my contents, so it shouldn't.
141
- stopParser: true,
142
-
143
- // template: [private] Boolean
144
- // Flag from the parser that this ContentPane is inside a template
145
- // so the contents are pre-parsed.
146
- // TODO: this declaration can be commented out in 2.0
147
- template: false,
148
-
149
- markupFactory: function(params, node, ctor){
150
- var self = new ctor(params, node);
151
-
152
- // If a parse has started but is waiting for modules to load, then return a Promise for when the parser
153
- // finishes. Don't return a promise though for the case when content hasn't started loading because the
154
- // ContentPane is hidden and it has an href (ex: hidden pane of a TabContainer). In that case we consider
155
- // that initialization has already finished.
156
- return !self.href && self._contentSetter && self._contentSetter.parseDeferred && !self._contentSetter.parseDeferred.isFulfilled() ?
157
- self._contentSetter.parseDeferred.then(function(){
158
- return self;
159
- }) : self;
160
- },
161
-
162
- create: function(params, srcNodeRef){
163
- // Convert a srcNodeRef argument into a content parameter, so that the original contents are
164
- // processed in the same way as contents set via set("content", ...), calling the parser etc.
165
- // Avoid modifying original params object since that breaks NodeList instantiation, see #11906.
166
- if((!params || !params.template) && srcNodeRef && !("href" in params) && !("content" in params)){
167
- srcNodeRef = dom.byId(srcNodeRef);
168
- var df = srcNodeRef.ownerDocument.createDocumentFragment();
169
- while(srcNodeRef.firstChild){
170
- df.appendChild(srcNodeRef.firstChild);
171
- }
172
- params = lang.delegate(params, {content: df});
173
- }
174
- this.inherited(arguments, [params, srcNodeRef]);
175
- },
176
-
177
- postMixInProperties: function(){
178
- this.inherited(arguments);
179
- var messages = i18n.getLocalization("dijit", "loading", this.lang);
180
- this.loadingMessage = string.substitute(this.loadingMessage, messages);
181
- this.errorMessage = string.substitute(this.errorMessage, messages);
182
- },
183
-
184
- buildRendering: function(){
185
- this.inherited(arguments);
186
-
187
- // Since we have no template we need to set this.containerNode ourselves, to make getChildren() work.
188
- // For subclasses of ContentPane that do have a template, does nothing.
189
- if(!this.containerNode){
190
- this.containerNode = this.domNode;
191
- }
192
-
193
- // remove the title attribute so it doesn't show up when hovering
194
- // over a node (TODO: remove in 2.0, no longer needed after #11490)
195
- this.domNode.removeAttribute("title");
196
- },
197
-
198
- startup: function(){
199
- // summary:
200
- // Call startup() on all children including non _Widget ones like dojo/dnd/Source objects
201
-
202
- // This starts all the widgets
203
- this.inherited(arguments);
204
-
205
- // And this catches stuff like dojo/dnd/Source
206
- if(this._contentSetter){
207
- array.forEach(this._contentSetter.parseResults, function(obj){
208
- if(!obj._started && !obj._destroyed && lang.isFunction(obj.startup)){
209
- obj.startup();
210
- obj._started = true;
211
- }
212
- }, this);
213
- }
214
- },
215
-
216
- _startChildren: function(){
217
- // summary:
218
- // Called when content is loaded. Calls startup on each child widget. Similar to ContentPane.startup()
219
- // itself, but avoids marking the ContentPane itself as "restarted" (see #15581).
220
-
221
- // This starts all the widgets
222
- array.forEach(this.getChildren(), function(obj){
223
- if(!obj._started && !obj._destroyed && lang.isFunction(obj.startup)){
224
- obj.startup();
225
- obj._started = true;
226
- }
227
- });
228
-
229
- // And this catches stuff like dojo/dnd/Source
230
- if(this._contentSetter){
231
- array.forEach(this._contentSetter.parseResults, function(obj){
232
- if(!obj._started && !obj._destroyed && lang.isFunction(obj.startup)){
233
- obj.startup();
234
- obj._started = true;
235
- }
236
- }, this);
237
- }
238
- },
239
-
240
- setHref: function(/*String|Uri*/ href){
241
- // summary:
242
- // Deprecated. Use set('href', ...) instead.
243
- kernel.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.", "", "2.0");
244
- return this.set("href", href);
245
- },
246
- _setHrefAttr: function(/*String|Uri*/ href){
247
- // summary:
248
- // Hook so set("href", ...) works.
249
- // description:
250
- // Reset the (external defined) content of this pane and replace with new url
251
- // Note: It delays the download until widget is shown if preload is false.
252
- // href:
253
- // url to the page you want to get, must be within the same domain as your mainpage
254
-
255
- // Cancel any in-flight requests (a set('href', ...) will cancel any in-flight set('href', ...))
256
- this.cancel();
257
-
258
- this.onLoadDeferred = new Deferred(lang.hitch(this, "cancel"));
259
- this.onLoadDeferred.then(lang.hitch(this, "onLoad"));
260
-
261
- this._set("href", href);
262
-
263
- // _setHrefAttr() is called during creation and by the user, after creation.
264
- // Assuming preload == false, only in the second case do we actually load the URL;
265
- // otherwise it's done in startup(), and only if this widget is shown.
266
- if(this.preload || (this._created && this._isShown())){
267
- this._load();
268
- }else{
269
- // Set flag to indicate that href needs to be loaded the next time the
270
- // ContentPane is made visible
271
- this._hrefChanged = true;
272
- }
273
-
274
- return this.onLoadDeferred; // Deferred
275
- },
276
-
277
- setContent: function(/*String|DomNode|Nodelist*/data){
278
- // summary:
279
- // Deprecated. Use set('content', ...) instead.
280
- kernel.deprecated("dijit.layout.ContentPane.setContent() is deprecated. Use set('content', ...) instead.", "", "2.0");
281
- this.set("content", data);
282
- },
283
- _setContentAttr: function(/*String|DomNode|Nodelist*/data){
284
- // summary:
285
- // Hook to make set("content", ...) work.
286
- // Replaces old content with data content, include style classes from old content
287
- // data:
288
- // the new Content may be String, DomNode or NodeList
289
- //
290
- // if data is a NodeList (or an array of nodes) nodes are copied
291
- // so you can import nodes from another document implicitly
292
-
293
- // clear href so we can't run refresh and clear content
294
- // refresh should only work if we downloaded the content
295
- this._set("href", "");
296
-
297
- // Cancel any in-flight requests (a set('content', ...) will cancel any in-flight set('href', ...))
298
- this.cancel();
299
-
300
- // Even though user is just setting content directly, still need to define an onLoadDeferred
301
- // because the _onLoadHandler() handler is still getting called from setContent()
302
- this.onLoadDeferred = new Deferred(lang.hitch(this, "cancel"));
303
- if(this._created){
304
- // For back-compat reasons, call onLoad() for set('content', ...)
305
- // calls but not for content specified in srcNodeRef (ie: <div data-dojo-type=ContentPane>...</div>)
306
- // or as initialization parameter (ie: new ContentPane({content: ...})
307
- this.onLoadDeferred.then(lang.hitch(this, "onLoad"));
308
- }
309
-
310
- this._setContent(data || "");
311
-
312
- this._isDownloaded = false; // mark that content is from a set('content') not a set('href')
313
-
314
- return this.onLoadDeferred; // Deferred
315
- },
316
- _getContentAttr: function(){
317
- // summary:
318
- // Hook to make get("content") work
319
- return this.containerNode.innerHTML;
320
- },
321
-
322
- cancel: function(){
323
- // summary:
324
- // Cancels an in-flight download of content
325
- if(this._xhrDfd && (this._xhrDfd.fired == -1)){
326
- this._xhrDfd.cancel();
327
- }
328
- delete this._xhrDfd; // garbage collect
329
-
330
- this.onLoadDeferred = null;
331
- },
332
-
333
- destroy: function(){
334
- this.cancel();
335
- this.inherited(arguments);
336
- },
337
-
338
- destroyRecursive: function(/*Boolean*/ preserveDom){
339
- // summary:
340
- // Destroy the ContentPane and its contents
341
-
342
- // if we have multiple controllers destroying us, bail after the first
343
- if(this._beingDestroyed){
344
- return;
345
- }
346
- this.inherited(arguments);
347
- },
348
-
349
- _onShow: function(){
350
- // summary:
351
- // Called when the ContentPane is made visible
352
- // description:
353
- // For a plain ContentPane, this is called on initialization, from startup().
354
- // If the ContentPane is a hidden pane of a TabContainer etc., then it's
355
- // called whenever the pane is made visible.
356
- //
357
- // Does necessary processing, including href download and layout/resize of
358
- // child widget(s)
359
-
360
- this.inherited(arguments);
361
-
362
- if(this.href){
363
- if(!this._xhrDfd && // if there's an href that isn't already being loaded
364
- (!this.isLoaded || this._hrefChanged || this.refreshOnShow)
365
- ){
366
- return this.refresh(); // If child has an href, promise that fires when the load is complete
367
- }
368
- }
369
- },
370
-
371
- refresh: function(){
372
- // summary:
373
- // [Re]download contents of href and display
374
- // description:
375
- // 1. cancels any currently in-flight requests
376
- // 2. posts "loading..." message
377
- // 3. sends XHR to download new data
378
-
379
- // Cancel possible prior in-flight request
380
- this.cancel();
381
-
382
- this.onLoadDeferred = new Deferred(lang.hitch(this, "cancel"));
383
- this.onLoadDeferred.then(lang.hitch(this, "onLoad"));
384
- this._load();
385
- return this.onLoadDeferred; // If child has an href, promise that fires when refresh is complete
386
- },
387
-
388
- _load: function(){
389
- // summary:
390
- // Load/reload the href specified in this.href
391
-
392
- // display loading message
393
- this._setContent(this.onDownloadStart(), true);
394
-
395
- var self = this;
396
- var getArgs = {
397
- preventCache: (this.preventCache || this.refreshOnShow),
398
- url: this.href,
399
- handleAs: "text"
400
- };
401
- if(lang.isObject(this.ioArgs)){
402
- lang.mixin(getArgs, this.ioArgs);
403
- }
404
-
405
- var hand = (this._xhrDfd = (this.ioMethod || xhr.get)(getArgs)),
406
- returnedHtml;
407
-
408
- hand.then(
409
- function(html){
410
- returnedHtml = html;
411
- try{
412
- self._isDownloaded = true;
413
- return self._setContent(html, false);
414
- }catch(err){
415
- self._onError('Content', err); // onContentError
416
- }
417
- },
418
- function(err){
419
- if(!hand.canceled){
420
- // show error message in the pane
421
- self._onError('Download', err); // onDownloadError
422
- }
423
- delete self._xhrDfd;
424
- return err;
425
- }
426
- ).then(function(){
427
- self.onDownloadEnd();
428
- delete self._xhrDfd;
429
- return returnedHtml;
430
- });
431
-
432
- // Remove flag saying that a load is needed
433
- delete this._hrefChanged;
434
- },
435
-
436
- _onLoadHandler: function(data){
437
- // summary:
438
- // This is called whenever new content is being loaded
439
- this._set("isLoaded", true);
440
- try{
441
- this.onLoadDeferred.resolve(data);
442
- }catch(e){
443
- console.error('Error ' + (this.widgetId || this.id) + ' running custom onLoad code: ' + e.message);
444
- }
445
- },
446
-
447
- _onUnloadHandler: function(){
448
- // summary:
449
- // This is called whenever the content is being unloaded
450
- this._set("isLoaded", false);
451
- try{
452
- this.onUnload();
453
- }catch(e){
454
- console.error('Error ' + this.widgetId + ' running custom onUnload code: ' + e.message);
455
- }
456
- },
457
-
458
- destroyDescendants: function(/*Boolean*/ preserveDom){
459
- // summary:
460
- // Destroy all the widgets inside the ContentPane and empty containerNode
461
-
462
- // Make sure we call onUnload (but only when the ContentPane has real content)
463
- if(this.isLoaded){
464
- this._onUnloadHandler();
465
- }
466
-
467
- // Even if this.isLoaded == false there might still be a "Loading..." message
468
- // to erase, so continue...
469
-
470
- // For historical reasons we need to delete all widgets under this.containerNode,
471
- // even ones that the user has created manually.
472
- var setter = this._contentSetter;
473
- array.forEach(this.getChildren(), function(widget){
474
- if(widget.destroyRecursive){
475
- // All widgets will hit this branch
476
- widget.destroyRecursive(preserveDom);
477
- }else if(widget.destroy){
478
- // Things like dojo/dnd/Source have destroy(), not destroyRecursive()
479
- widget.destroy(preserveDom);
480
- }
481
- widget._destroyed = true;
482
- });
483
- if(setter){
484
- // Most of the widgets in setter.parseResults have already been destroyed, but
485
- // things like Menu that have been moved to <body> haven't yet
486
- array.forEach(setter.parseResults, function(widget){
487
- if(!widget._destroyed){
488
- if(widget.destroyRecursive){
489
- // All widgets will hit this branch
490
- widget.destroyRecursive(preserveDom);
491
- }else if(widget.destroy){
492
- // Things like dojo/dnd/Source have destroy(), not destroyRecursive()
493
- widget.destroy(preserveDom);
494
- }
495
- widget._destroyed = true;
496
- }
497
- });
498
- delete setter.parseResults;
499
- }
500
-
501
- // And then clear away all the DOM nodes
502
- if(!preserveDom){
503
- domConstruct.empty(this.containerNode);
504
- }
505
-
506
- // Delete any state information we have about current contents
507
- delete this._singleChild;
508
- },
509
-
510
- _setContent: function(/*String|DocumentFragment*/ cont, /*Boolean*/ isFakeContent){
511
- // summary:
512
- // Insert the content into the container node
513
- // returns:
514
- // Returns a Deferred promise that is resolved when the content is parsed.
515
-
516
- // first get rid of child widgets
517
- this.destroyDescendants();
518
-
519
- // html.set will take care of the rest of the details
520
- // we provide an override for the error handling to ensure the widget gets the errors
521
- // configure the setter instance with only the relevant widget instance properties
522
- // NOTE: unless we hook into attr, or provide property setters for each property,
523
- // we need to re-configure the ContentSetter with each use
524
- var setter = this._contentSetter;
525
- if(!(setter && setter instanceof html._ContentSetter)){
526
- setter = this._contentSetter = new html._ContentSetter({
527
- node: this.containerNode,
528
- _onError: lang.hitch(this, this._onError),
529
- onContentError: lang.hitch(this, function(e){
530
- // fires if a domfault occurs when we are appending this.errorMessage
531
- // like for instance if domNode is a UL and we try append a DIV
532
- var errMess = this.onContentError(e);
533
- try{
534
- this.containerNode.innerHTML = errMess;
535
- }catch(e){
536
- console.error('Fatal ' + this.id + ' could not change content due to ' + e.message, e);
537
- }
538
- })/*,
539
- _onError */
540
- });
541
- }
542
-
543
- var setterParams = lang.mixin({
544
- cleanContent: this.cleanContent,
545
- extractContent: this.extractContent,
546
- parseContent: !cont.domNode && this.parseOnLoad,
547
- parserScope: this.parserScope,
548
- startup: false,
549
- dir: this.dir,
550
- lang: this.lang,
551
- textDir: this.textDir
552
- }, this._contentSetterParams || {});
553
-
554
- var p = setter.set((lang.isObject(cont) && cont.domNode) ? cont.domNode : cont, setterParams);
555
-
556
- // dojox/layout/html/_base::_ContentSetter.set() returns a Promise that indicates when everything is completed.
557
- // dojo/html::_ContentSetter.set() currently returns the DOMNode, but that will be changed for 2.0.
558
- // So, if set() returns a promise then use it, otherwise fallback to waiting on setter.parseDeferred
559
- var self = this;
560
- return when(p && p.then ? p : setter.parseDeferred, function(){
561
- // setter params must be pulled afresh from the ContentPane each time
562
- delete self._contentSetterParams;
563
-
564
- if(!isFakeContent){
565
- if(self._started){
566
- // Startup each top level child widget (and they will start their children, recursively)
567
- self._startChildren();
568
-
569
- // Call resize() on each of my child layout widgets,
570
- // or resize() on my single child layout widget...
571
- // either now (if I'm currently visible) or when I become visible
572
- self._scheduleLayout();
573
- }
574
- self._onLoadHandler(cont);
575
- }
576
- });
577
- },
578
-
579
- _onError: function(type, err, consoleText){
580
- this.onLoadDeferred.reject(err);
581
-
582
- // shows user the string that is returned by on[type]Error
583
- // override on[type]Error and return your own string to customize
584
- var errText = this['on' + type + 'Error'].call(this, err);
585
- if(consoleText){
586
- console.error(consoleText, err);
587
- }else if(errText){// a empty string won't change current content
588
- this._setContent(errText, true);
589
- }
590
- },
591
-
592
- // EVENT's, should be overide-able
593
- onLoad: function(/*===== data =====*/){
594
- // summary:
595
- // Event hook, is called after everything is loaded and widgetified
596
- // tags:
597
- // callback
598
- },
599
-
600
- onUnload: function(){
601
- // summary:
602
- // Event hook, is called before old content is cleared
603
- // tags:
604
- // callback
605
- },
606
-
607
- onDownloadStart: function(){
608
- // summary:
609
- // Called before download starts.
610
- // description:
611
- // The string returned by this function will be the html
612
- // that tells the user we are loading something.
613
- // Override with your own function if you want to change text.
614
- // tags:
615
- // extension
616
- return this.loadingMessage;
617
- },
618
-
619
- onContentError: function(/*Error*/ /*===== error =====*/){
620
- // summary:
621
- // Called on DOM faults, require faults etc. in content.
622
- //
623
- // In order to display an error message in the pane, return
624
- // the error message from this method, as an HTML string.
625
- //
626
- // By default (if this method is not overriden), it returns
627
- // nothing, so the error message is just printed to the console.
628
- // tags:
629
- // extension
630
- },
631
-
632
- onDownloadError: function(/*Error*/ /*===== error =====*/){
633
- // summary:
634
- // Called when download error occurs.
635
- //
636
- // In order to display an error message in the pane, return
637
- // the error message from this method, as an HTML string.
638
- //
639
- // Default behavior (if this method is not overriden) is to display
640
- // the error message inside the pane.
641
- // tags:
642
- // extension
643
- return this.errorMessage;
644
- },
645
-
646
- onDownloadEnd: function(){
647
- // summary:
648
- // Called when download is finished.
649
- // tags:
650
- // callback
651
- }
652
- });
653
- });