@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,271 +0,0 @@
1
- /*
2
- Copyright (c) 2004-2017, The JS Foundation All Rights Reserved.
3
- Available via Academic Free License >= 2.1 OR the modified BSD license.
4
- see: http://dojotoolkit.org/license for details
5
- */
6
- //>>built
7
- define("dojo/fx",["./_base/lang","./Evented","./_base/kernel","./_base/array","./aspect","./_base/fx","./dom","./dom-style","./dom-geometry","./ready","require"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b){
8
- if(!_3.isAsync){
9
- _a(0,function(){
10
- var _c=["./fx/Toggler"];
11
- _b(_c);
12
- });
13
- }
14
- var _d=_3.fx={};
15
- var _e={_fire:function(_f,_10){
16
- if(this[_f]){
17
- this[_f].apply(this,_10||[]);
18
- }
19
- return this;
20
- }};
21
- var _11=function(_12){
22
- this._index=-1;
23
- this._animations=_12||[];
24
- this._current=this._onAnimateCtx=this._onEndCtx=null;
25
- this.duration=0;
26
- _4.forEach(this._animations,function(a){
27
- if(a){
28
- if(typeof a.duration!="undefined"){
29
- this.duration+=a.duration;
30
- }
31
- if(a.delay){
32
- this.duration+=a.delay;
33
- }
34
- }
35
- },this);
36
- };
37
- _11.prototype=new _2();
38
- _1.extend(_11,{_onAnimate:function(){
39
- this._fire("onAnimate",arguments);
40
- },_onEnd:function(){
41
- this._onAnimateCtx.remove();
42
- this._onEndCtx.remove();
43
- this._onAnimateCtx=this._onEndCtx=null;
44
- if(this._index+1==this._animations.length){
45
- this._fire("onEnd");
46
- }else{
47
- this._current=this._animations[++this._index];
48
- this._onAnimateCtx=_5.after(this._current,"onAnimate",_1.hitch(this,"_onAnimate"),true);
49
- this._onEndCtx=_5.after(this._current,"onEnd",_1.hitch(this,"_onEnd"),true);
50
- this._current.play(0,true);
51
- }
52
- },play:function(_13,_14){
53
- if(!this._current){
54
- this._current=this._animations[this._index=0];
55
- }
56
- if(!_14&&this._current.status()=="playing"){
57
- return this;
58
- }
59
- var _15=_5.after(this._current,"beforeBegin",_1.hitch(this,function(){
60
- this._fire("beforeBegin");
61
- }),true),_16=_5.after(this._current,"onBegin",_1.hitch(this,function(arg){
62
- this._fire("onBegin",arguments);
63
- }),true),_17=_5.after(this._current,"onPlay",_1.hitch(this,function(arg){
64
- this._fire("onPlay",arguments);
65
- _15.remove();
66
- _16.remove();
67
- _17.remove();
68
- }));
69
- if(this._onAnimateCtx){
70
- this._onAnimateCtx.remove();
71
- }
72
- this._onAnimateCtx=_5.after(this._current,"onAnimate",_1.hitch(this,"_onAnimate"),true);
73
- if(this._onEndCtx){
74
- this._onEndCtx.remove();
75
- }
76
- this._onEndCtx=_5.after(this._current,"onEnd",_1.hitch(this,"_onEnd"),true);
77
- this._current.play.apply(this._current,arguments);
78
- return this;
79
- },pause:function(){
80
- if(this._current){
81
- var e=_5.after(this._current,"onPause",_1.hitch(this,function(arg){
82
- this._fire("onPause",arguments);
83
- e.remove();
84
- }),true);
85
- this._current.pause();
86
- }
87
- return this;
88
- },gotoPercent:function(_18,_19){
89
- this.pause();
90
- var _1a=this.duration*_18;
91
- this._current=null;
92
- _4.some(this._animations,function(a,_1b){
93
- if(_1a<=a.duration){
94
- this._current=a;
95
- this._index=_1b;
96
- return true;
97
- }
98
- _1a-=a.duration;
99
- return false;
100
- },this);
101
- if(this._current){
102
- this._current.gotoPercent(_1a/this._current.duration);
103
- }
104
- if(_19){
105
- this.play();
106
- }
107
- return this;
108
- },stop:function(_1c){
109
- if(this._current){
110
- if(_1c){
111
- for(;this._index+1<this._animations.length;++this._index){
112
- this._animations[this._index].stop(true);
113
- }
114
- this._current=this._animations[this._index];
115
- }
116
- var e=_5.after(this._current,"onStop",_1.hitch(this,function(arg){
117
- this._fire("onStop",arguments);
118
- e.remove();
119
- }),true);
120
- this._current.stop();
121
- }
122
- return this;
123
- },status:function(){
124
- return this._current?this._current.status():"stopped";
125
- },destroy:function(){
126
- this.stop();
127
- if(this._onAnimateCtx){
128
- this._onAnimateCtx.remove();
129
- }
130
- if(this._onEndCtx){
131
- this._onEndCtx.remove();
132
- }
133
- }});
134
- _1.extend(_11,_e);
135
- _d.chain=function(_1d){
136
- return new _11(_1d);
137
- };
138
- var _1e=function(_1f){
139
- this._animations=_1f||[];
140
- this._connects=[];
141
- this._finished=0;
142
- this.duration=0;
143
- _4.forEach(_1f,function(a){
144
- var _20=a.duration;
145
- if(a.delay){
146
- _20+=a.delay;
147
- }
148
- if(this.duration<_20){
149
- this.duration=_20;
150
- }
151
- this._connects.push(_5.after(a,"onEnd",_1.hitch(this,"_onEnd"),true));
152
- },this);
153
- this._pseudoAnimation=new _6.Animation({curve:[0,1],duration:this.duration});
154
- var _21=this;
155
- _4.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){
156
- _21._connects.push(_5.after(_21._pseudoAnimation,evt,function(){
157
- _21._fire(evt,arguments);
158
- },true));
159
- });
160
- };
161
- _1.extend(_1e,{_doAction:function(_22,_23){
162
- _4.forEach(this._animations,function(a){
163
- a[_22].apply(a,_23);
164
- });
165
- return this;
166
- },_onEnd:function(){
167
- if(++this._finished>this._animations.length){
168
- this._fire("onEnd");
169
- }
170
- },_call:function(_24,_25){
171
- var t=this._pseudoAnimation;
172
- t[_24].apply(t,_25);
173
- },play:function(_26,_27){
174
- this._finished=0;
175
- this._doAction("play",arguments);
176
- this._call("play",arguments);
177
- return this;
178
- },pause:function(){
179
- this._doAction("pause",arguments);
180
- this._call("pause",arguments);
181
- return this;
182
- },gotoPercent:function(_28,_29){
183
- var ms=this.duration*_28;
184
- _4.forEach(this._animations,function(a){
185
- a.gotoPercent(a.duration<ms?1:(ms/a.duration),_29);
186
- });
187
- this._call("gotoPercent",arguments);
188
- return this;
189
- },stop:function(_2a){
190
- this._doAction("stop",arguments);
191
- this._call("stop",arguments);
192
- return this;
193
- },status:function(){
194
- return this._pseudoAnimation.status();
195
- },destroy:function(){
196
- this.stop();
197
- _4.forEach(this._connects,function(_2b){
198
- _2b.remove();
199
- });
200
- }});
201
- _1.extend(_1e,_e);
202
- _d.combine=function(_2c){
203
- return new _1e(_2c);
204
- };
205
- _d.wipeIn=function(_2d){
206
- var _2e=_2d.node=_7.byId(_2d.node),s=_2e.style,o;
207
- var _2f=_6.animateProperty(_1.mixin({properties:{height:{start:function(){
208
- o=s.overflow;
209
- s.overflow="hidden";
210
- if(s.visibility=="hidden"||s.display=="none"){
211
- s.height="1px";
212
- s.display="";
213
- s.visibility="";
214
- return 1;
215
- }else{
216
- var _30=_8.get(_2e,"height");
217
- return Math.max(_30,1);
218
- }
219
- },end:function(){
220
- return _2e.scrollHeight;
221
- }}}},_2d));
222
- var _31=function(){
223
- s.height="auto";
224
- s.overflow=o;
225
- };
226
- _5.after(_2f,"onStop",_31,true);
227
- _5.after(_2f,"onEnd",_31,true);
228
- return _2f;
229
- };
230
- _d.wipeOut=function(_32){
231
- var _33=_32.node=_7.byId(_32.node),s=_33.style,o;
232
- var _34=_6.animateProperty(_1.mixin({properties:{height:{end:1}}},_32));
233
- _5.after(_34,"beforeBegin",function(){
234
- o=s.overflow;
235
- s.overflow="hidden";
236
- s.display="";
237
- },true);
238
- var _35=function(){
239
- s.overflow=o;
240
- s.height="auto";
241
- s.display="none";
242
- };
243
- _5.after(_34,"onStop",_35,true);
244
- _5.after(_34,"onEnd",_35,true);
245
- return _34;
246
- };
247
- _d.slideTo=function(_36){
248
- var _37=_36.node=_7.byId(_36.node),top=null,_38=null;
249
- var _39=(function(n){
250
- return function(){
251
- var cs=_8.getComputedStyle(n);
252
- var pos=cs.position;
253
- top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
254
- _38=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
255
- if(pos!="absolute"&&pos!="relative"){
256
- var ret=_9.position(n,true);
257
- top=ret.y;
258
- _38=ret.x;
259
- n.style.position="absolute";
260
- n.style.top=top+"px";
261
- n.style.left=_38+"px";
262
- }
263
- };
264
- })(_37);
265
- _39();
266
- var _3a=_6.animateProperty(_1.mixin({properties:{top:_36.top||0,left:_36.left||0}},_36));
267
- _5.after(_3a,"beforeBegin",_39,true);
268
- return _3a;
269
- };
270
- return _d;
271
- });
@@ -1,443 +0,0 @@
1
- define("dojo/fx", [
2
- "./_base/lang",
3
- "./Evented",
4
- "./_base/kernel",
5
- "./_base/array",
6
- "./aspect",
7
- "./_base/fx",
8
- "./dom",
9
- "./dom-style",
10
- "./dom-geometry",
11
- "./ready",
12
- "require" // for context sensitive loading of Toggler
13
- ], function(lang, Evented, dojo, arrayUtil, aspect, baseFx, dom, domStyle, geom, ready, require){
14
-
15
- // module:
16
- // dojo/fx
17
-
18
- // For back-compat, remove in 2.0.
19
- if(!dojo.isAsync){
20
- ready(0, function(){
21
- var requires = ["./fx/Toggler"];
22
- require(requires); // use indirection so modules not rolled into a build
23
- });
24
- }
25
-
26
- var coreFx = dojo.fx = {
27
- // summary:
28
- // Effects library on top of Base animations
29
- };
30
-
31
- var _baseObj = {
32
- _fire: function(evt, args){
33
- if(this[evt]){
34
- this[evt].apply(this, args||[]);
35
- }
36
- return this;
37
- }
38
- };
39
-
40
- var _chain = function(animations){
41
- this._index = -1;
42
- this._animations = animations||[];
43
- this._current = this._onAnimateCtx = this._onEndCtx = null;
44
-
45
- this.duration = 0;
46
- arrayUtil.forEach(this._animations, function(a){
47
- if(a){
48
- if(typeof a.duration != "undefined"){
49
- this.duration += a.duration;
50
- }
51
- if(a.delay){
52
- this.duration += a.delay;
53
- }
54
- }
55
- }, this);
56
- };
57
- _chain.prototype = new Evented();
58
- lang.extend(_chain, {
59
- _onAnimate: function(){
60
- this._fire("onAnimate", arguments);
61
- },
62
- _onEnd: function(){
63
- this._onAnimateCtx.remove();
64
- this._onEndCtx.remove();
65
- this._onAnimateCtx = this._onEndCtx = null;
66
- if(this._index + 1 == this._animations.length){
67
- this._fire("onEnd");
68
- }else{
69
- // switch animations
70
- this._current = this._animations[++this._index];
71
- this._onAnimateCtx = aspect.after(this._current, "onAnimate", lang.hitch(this, "_onAnimate"), true);
72
- this._onEndCtx = aspect.after(this._current, "onEnd", lang.hitch(this, "_onEnd"), true);
73
- this._current.play(0, true);
74
- }
75
- },
76
- play: function(/*int?*/ delay, /*Boolean?*/ gotoStart){
77
- if(!this._current){ this._current = this._animations[this._index = 0]; }
78
- if(!gotoStart && this._current.status() == "playing"){ return this; }
79
- var beforeBegin = aspect.after(this._current, "beforeBegin", lang.hitch(this, function(){
80
- this._fire("beforeBegin");
81
- }), true),
82
- onBegin = aspect.after(this._current, "onBegin", lang.hitch(this, function(arg){
83
- this._fire("onBegin", arguments);
84
- }), true),
85
- onPlay = aspect.after(this._current, "onPlay", lang.hitch(this, function(arg){
86
- this._fire("onPlay", arguments);
87
- beforeBegin.remove();
88
- onBegin.remove();
89
- onPlay.remove();
90
- }));
91
- if(this._onAnimateCtx){
92
- this._onAnimateCtx.remove();
93
- }
94
- this._onAnimateCtx = aspect.after(this._current, "onAnimate", lang.hitch(this, "_onAnimate"), true);
95
- if(this._onEndCtx){
96
- this._onEndCtx.remove();
97
- }
98
- this._onEndCtx = aspect.after(this._current, "onEnd", lang.hitch(this, "_onEnd"), true);
99
- this._current.play.apply(this._current, arguments);
100
- return this;
101
- },
102
- pause: function(){
103
- if(this._current){
104
- var e = aspect.after(this._current, "onPause", lang.hitch(this, function(arg){
105
- this._fire("onPause", arguments);
106
- e.remove();
107
- }), true);
108
- this._current.pause();
109
- }
110
- return this;
111
- },
112
- gotoPercent: function(/*Decimal*/percent, /*Boolean?*/ andPlay){
113
- this.pause();
114
- var offset = this.duration * percent;
115
- this._current = null;
116
-
117
- arrayUtil.some(this._animations, function(a, index){
118
- if(offset <= a.duration){
119
- this._current = a;
120
- this._index = index;
121
- return true;
122
- }
123
- offset -= a.duration;
124
- return false;
125
- }, this);
126
- if(this._current){
127
- this._current.gotoPercent(offset / this._current.duration);
128
- }
129
- if (andPlay) { this.play(); }
130
- return this;
131
- },
132
- stop: function(/*boolean?*/ gotoEnd){
133
- if(this._current){
134
- if(gotoEnd){
135
- for(; this._index + 1 < this._animations.length; ++this._index){
136
- this._animations[this._index].stop(true);
137
- }
138
- this._current = this._animations[this._index];
139
- }
140
- var e = aspect.after(this._current, "onStop", lang.hitch(this, function(arg){
141
- this._fire("onStop", arguments);
142
- e.remove();
143
- }), true);
144
- this._current.stop();
145
- }
146
- return this;
147
- },
148
- status: function(){
149
- return this._current ? this._current.status() : "stopped";
150
- },
151
- destroy: function(){
152
- this.stop();
153
- if(this._onAnimateCtx){ this._onAnimateCtx.remove(); }
154
- if(this._onEndCtx){ this._onEndCtx.remove(); }
155
- }
156
- });
157
- lang.extend(_chain, _baseObj);
158
-
159
- coreFx.chain = function(/*dojo/_base/fx.Animation[]*/ animations){
160
- // summary:
161
- // Chain a list of `dojo/_base/fx.Animation`s to run in sequence
162
- //
163
- // description:
164
- // Return a `dojo/_base/fx.Animation` which will play all passed
165
- // `dojo/_base/fx.Animation` instances in sequence, firing its own
166
- // synthesized events simulating a single animation. (eg:
167
- // onEnd of this animation means the end of the chain,
168
- // not the individual animations within)
169
- //
170
- // example:
171
- // Once `node` is faded out, fade in `otherNode`
172
- // | require(["dojo/fx"], function(fx){
173
- // | fx.chain([
174
- // | fx.fadeIn({ node:node }),
175
- // | fx.fadeOut({ node:otherNode })
176
- // | ]).play();
177
- // | });
178
- //
179
- return new _chain(animations); // dojo/_base/fx.Animation
180
- };
181
-
182
- var _combine = function(animations){
183
- this._animations = animations||[];
184
- this._connects = [];
185
- this._finished = 0;
186
-
187
- this.duration = 0;
188
- arrayUtil.forEach(animations, function(a){
189
- var duration = a.duration;
190
- if(a.delay){ duration += a.delay; }
191
- if(this.duration < duration){ this.duration = duration; }
192
- this._connects.push(aspect.after(a, "onEnd", lang.hitch(this, "_onEnd"), true));
193
- }, this);
194
-
195
- this._pseudoAnimation = new baseFx.Animation({curve: [0, 1], duration: this.duration});
196
- var self = this;
197
- arrayUtil.forEach(["beforeBegin", "onBegin", "onPlay", "onAnimate", "onPause", "onStop", "onEnd"],
198
- function(evt){
199
- self._connects.push(aspect.after(self._pseudoAnimation, evt,
200
- function(){ self._fire(evt, arguments); },
201
- true));
202
- }
203
- );
204
- };
205
- lang.extend(_combine, {
206
- _doAction: function(action, args){
207
- arrayUtil.forEach(this._animations, function(a){
208
- a[action].apply(a, args);
209
- });
210
- return this;
211
- },
212
- _onEnd: function(){
213
- if(++this._finished > this._animations.length){
214
- this._fire("onEnd");
215
- }
216
- },
217
- _call: function(action, args){
218
- var t = this._pseudoAnimation;
219
- t[action].apply(t, args);
220
- },
221
- play: function(/*int?*/ delay, /*Boolean?*/ gotoStart){
222
- this._finished = 0;
223
- this._doAction("play", arguments);
224
- this._call("play", arguments);
225
- return this;
226
- },
227
- pause: function(){
228
- this._doAction("pause", arguments);
229
- this._call("pause", arguments);
230
- return this;
231
- },
232
- gotoPercent: function(/*Decimal*/percent, /*Boolean?*/ andPlay){
233
- var ms = this.duration * percent;
234
- arrayUtil.forEach(this._animations, function(a){
235
- a.gotoPercent(a.duration < ms ? 1 : (ms / a.duration), andPlay);
236
- });
237
- this._call("gotoPercent", arguments);
238
- return this;
239
- },
240
- stop: function(/*boolean?*/ gotoEnd){
241
- this._doAction("stop", arguments);
242
- this._call("stop", arguments);
243
- return this;
244
- },
245
- status: function(){
246
- return this._pseudoAnimation.status();
247
- },
248
- destroy: function(){
249
- this.stop();
250
- arrayUtil.forEach(this._connects, function(handle){
251
- handle.remove();
252
- });
253
- }
254
- });
255
- lang.extend(_combine, _baseObj);
256
-
257
- coreFx.combine = function(/*dojo/_base/fx.Animation[]*/ animations){
258
- // summary:
259
- // Combine a list of `dojo/_base/fx.Animation`s to run in parallel
260
- //
261
- // description:
262
- // Combine an array of `dojo/_base/fx.Animation`s to run in parallel,
263
- // providing a new `dojo/_base/fx.Animation` instance encompasing each
264
- // animation, firing standard animation events.
265
- //
266
- // example:
267
- // Fade out `node` while fading in `otherNode` simultaneously
268
- // | require(["dojo/fx"], function(fx){
269
- // | fx.combine([
270
- // | fx.fadeIn({ node:node }),
271
- // | fx.fadeOut({ node:otherNode })
272
- // | ]).play();
273
- // | });
274
- //
275
- // example:
276
- // When the longest animation ends, execute a function:
277
- // | require(["dojo/fx"], function(fx){
278
- // | var anim = fx.combine([
279
- // | fx.fadeIn({ node: n, duration:700 }),
280
- // | fx.fadeOut({ node: otherNode, duration: 300 })
281
- // | ]);
282
- // | aspect.after(anim, "onEnd", function(){
283
- // | // overall animation is done.
284
- // | }, true);
285
- // | anim.play(); // play the animation
286
- // | });
287
- //
288
- return new _combine(animations); // dojo/_base/fx.Animation
289
- };
290
-
291
- coreFx.wipeIn = function(/*Object*/ args){
292
- // summary:
293
- // Expand a node to it's natural height.
294
- //
295
- // description:
296
- // Returns an animation that will expand the
297
- // node defined in 'args' object from it's current height to
298
- // it's natural height (with no scrollbar).
299
- // Node must have no margin/border/padding.
300
- //
301
- // args: Object
302
- // A hash-map of standard `dojo/_base/fx.Animation` constructor properties
303
- // (such as easing: node: duration: and so on)
304
- //
305
- // example:
306
- // | require(["dojo/fx"], function(fx){
307
- // | fx.wipeIn({
308
- // | node:"someId"
309
- // | }).play()
310
- // | });
311
-
312
- var node = args.node = dom.byId(args.node), s = node.style, o;
313
-
314
- var anim = baseFx.animateProperty(lang.mixin({
315
- properties: {
316
- height: {
317
- // wrapped in functions so we wait till the last second to query (in case value has changed)
318
- start: function(){
319
- // start at current [computed] height, but use 1px rather than 0
320
- // because 0 causes IE to display the whole panel
321
- o = s.overflow;
322
- s.overflow = "hidden";
323
- if(s.visibility == "hidden" || s.display == "none"){
324
- s.height = "1px";
325
- s.display = "";
326
- s.visibility = "";
327
- return 1;
328
- }else{
329
- var height = domStyle.get(node, "height");
330
- return Math.max(height, 1);
331
- }
332
- },
333
- end: function(){
334
- return node.scrollHeight;
335
- }
336
- }
337
- }
338
- }, args));
339
-
340
- var fini = function(){
341
- s.height = "auto";
342
- s.overflow = o;
343
- };
344
- aspect.after(anim, "onStop", fini, true);
345
- aspect.after(anim, "onEnd", fini, true);
346
-
347
- return anim; // dojo/_base/fx.Animation
348
- };
349
-
350
- coreFx.wipeOut = function(/*Object*/ args){
351
- // summary:
352
- // Shrink a node to nothing and hide it.
353
- //
354
- // description:
355
- // Returns an animation that will shrink node defined in "args"
356
- // from it's current height to 1px, and then hide it.
357
- //
358
- // args: Object
359
- // A hash-map of standard `dojo/_base/fx.Animation` constructor properties
360
- // (such as easing: node: duration: and so on)
361
- //
362
- // example:
363
- // | require(["dojo/fx"], function(fx){
364
- // | fx.wipeOut({ node:"someId" }).play()
365
- // | });
366
-
367
- var node = args.node = dom.byId(args.node), s = node.style, o;
368
-
369
- var anim = baseFx.animateProperty(lang.mixin({
370
- properties: {
371
- height: {
372
- end: 1 // 0 causes IE to display the whole panel
373
- }
374
- }
375
- }, args));
376
-
377
- aspect.after(anim, "beforeBegin", function(){
378
- o = s.overflow;
379
- s.overflow = "hidden";
380
- s.display = "";
381
- }, true);
382
- var fini = function(){
383
- s.overflow = o;
384
- s.height = "auto";
385
- s.display = "none";
386
- };
387
- aspect.after(anim, "onStop", fini, true);
388
- aspect.after(anim, "onEnd", fini, true);
389
-
390
- return anim; // dojo/_base/fx.Animation
391
- };
392
-
393
- coreFx.slideTo = function(/*Object*/ args){
394
- // summary:
395
- // Slide a node to a new top/left position
396
- //
397
- // description:
398
- // Returns an animation that will slide "node"
399
- // defined in args Object from its current position to
400
- // the position defined by (args.left, args.top).
401
- //
402
- // args: Object
403
- // A hash-map of standard `dojo/_base/fx.Animation` constructor properties
404
- // (such as easing: node: duration: and so on). Special args members
405
- // are `top` and `left`, which indicate the new position to slide to.
406
- //
407
- // example:
408
- // | .slideTo({ node: node, left:"40", top:"50", units:"px" }).play()
409
-
410
- var node = args.node = dom.byId(args.node),
411
- top = null, left = null;
412
-
413
- var init = (function(n){
414
- return function(){
415
- var cs = domStyle.getComputedStyle(n);
416
- var pos = cs.position;
417
- top = (pos == 'absolute' ? n.offsetTop : parseInt(cs.top) || 0);
418
- left = (pos == 'absolute' ? n.offsetLeft : parseInt(cs.left) || 0);
419
- if(pos != 'absolute' && pos != 'relative'){
420
- var ret = geom.position(n, true);
421
- top = ret.y;
422
- left = ret.x;
423
- n.style.position="absolute";
424
- n.style.top=top+"px";
425
- n.style.left=left+"px";
426
- }
427
- };
428
- })(node);
429
- init();
430
-
431
- var anim = baseFx.animateProperty(lang.mixin({
432
- properties: {
433
- top: args.top || 0,
434
- left: args.left || 0
435
- }
436
- }, args));
437
- aspect.after(anim, "beforeBegin", init, true);
438
-
439
- return anim; // dojo/_base/fx.Animation
440
- };
441
-
442
- return coreFx;
443
- });