@datagrok/helm 2.3.2 → 2.3.4

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 (324) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/package-test.js +1 -1
  3. package/dist/package-test.js.map +1 -1
  4. package/dist/package.js +1 -1
  5. package/dist/package.js.map +1 -1
  6. package/package.json +4 -4
  7. package/src/cell-renderer.ts +5 -4
  8. package/src/helm-helper.ts +6 -6
  9. package/src/helm-monomer-placer.ts +1 -1
  10. package/src/helm-web-editor.ts +5 -5
  11. package/src/package-test.ts +0 -1
  12. package/src/package-utils.ts +211 -69
  13. package/src/package.ts +10 -71
  14. package/src/tests/findMonomers-tests.ts +2 -1
  15. package/src/tests/get-monomer-tests.ts +1 -49
  16. package/src/tests/helm-input-tests.ts +31 -20
  17. package/src/utils/get-monomer.ts +49 -1
  18. package/src/utils/helm-grid-cell-renderer.ts +8 -9
  19. package/src/utils/index.ts +2 -3
  20. package/src/widgets/helm-input.ts +4 -4
  21. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +63 -0
  22. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +116 -0
  23. package/vendor/dojo-1.10.10/dijit/Destroyable.js +35 -0
  24. package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +83 -0
  25. package/vendor/dojo-1.10.10/dijit/Tooltip.js +240 -0
  26. package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +612 -0
  27. package/vendor/dojo-1.10.10/dijit/Viewport.js +44 -0
  28. package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +87 -0
  29. package/vendor/dojo-1.10.10/dijit/WidgetSet.js +76 -0
  30. package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +247 -0
  31. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +94 -0
  32. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +238 -0
  33. package/vendor/dojo-1.10.10/dijit/_Contained.js +17 -0
  34. package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +56 -0
  35. package/vendor/dojo-1.10.10/dijit/_Container.js +47 -0
  36. package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +108 -0
  37. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +198 -0
  38. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +372 -0
  39. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +11 -0
  40. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +66 -0
  41. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +188 -0
  42. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +472 -0
  43. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +8 -0
  44. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +31 -0
  45. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +90 -0
  46. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +205 -0
  47. package/vendor/dojo-1.10.10/dijit/_Widget.js +66 -0
  48. package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +352 -0
  49. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +353 -0
  50. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +1200 -0
  51. package/vendor/dojo-1.10.10/dijit/_base/focus.js +68 -0
  52. package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +207 -0
  53. package/vendor/dojo-1.10.10/dijit/_base/manager.js +10 -0
  54. package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +35 -0
  55. package/vendor/dojo-1.10.10/dijit/_base/place.js +52 -0
  56. package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +131 -0
  57. package/vendor/dojo-1.10.10/dijit/_base/popup.js +23 -0
  58. package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +58 -0
  59. package/vendor/dojo-1.10.10/dijit/_base/scroll.js +6 -0
  60. package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +22 -0
  61. package/vendor/dojo-1.10.10/dijit/_base/sniff.js +3 -0
  62. package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +12 -0
  63. package/vendor/dojo-1.10.10/dijit/_base/typematic.js +3 -0
  64. package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +10 -0
  65. package/vendor/dojo-1.10.10/dijit/_base/wai.js +32 -0
  66. package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +109 -0
  67. package/vendor/dojo-1.10.10/dijit/_base/window.js +6 -0
  68. package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +18 -0
  69. package/vendor/dojo-1.10.10/dijit/_base.js +4 -0
  70. package/vendor/dojo-1.10.10/dijit/a11y.js +109 -0
  71. package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +191 -0
  72. package/vendor/dojo-1.10.10/dijit/a11yclick.js +66 -0
  73. package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +139 -0
  74. package/vendor/dojo-1.10.10/dijit/focus.js +188 -0
  75. package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +371 -0
  76. package/vendor/dojo-1.10.10/dijit/form/Button.js +49 -0
  77. package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +130 -0
  78. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +4 -0
  79. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +27 -0
  80. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +21 -0
  81. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +86 -0
  82. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +38 -0
  83. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +102 -0
  84. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +7 -0
  85. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +26 -0
  86. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +50 -0
  87. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +116 -0
  88. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +26 -0
  89. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +81 -0
  90. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +24 -0
  91. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +51 -0
  92. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +22 -0
  93. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +67 -0
  94. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +111 -0
  95. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +254 -0
  96. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +32 -0
  97. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +69 -0
  98. package/vendor/dojo-1.10.10/dijit/hccss.js +9 -0
  99. package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +21 -0
  100. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +215 -0
  101. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +550 -0
  102. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +7 -0
  103. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +25 -0
  104. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +235 -0
  105. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +653 -0
  106. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +171 -0
  107. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +411 -0
  108. package/vendor/dojo-1.10.10/dijit/layout/StackController.js +194 -0
  109. package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +410 -0
  110. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +99 -0
  111. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +236 -0
  112. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +47 -0
  113. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +190 -0
  114. package/vendor/dojo-1.10.10/dijit/layout/utils.js +77 -0
  115. package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +151 -0
  116. package/vendor/dojo-1.10.10/dijit/main.js +4 -0
  117. package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +16 -0
  118. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +2 -0
  119. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +21 -0
  120. package/vendor/dojo-1.10.10/dijit/nls/loading.js +2 -0
  121. package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +47 -0
  122. package/vendor/dojo-1.10.10/dijit/place.js +142 -0
  123. package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +407 -0
  124. package/vendor/dojo-1.10.10/dijit/popup.js +162 -0
  125. package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +441 -0
  126. package/vendor/dojo-1.10.10/dijit/registry.js +79 -0
  127. package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +159 -0
  128. package/vendor/dojo-1.10.10/dijit/selection.js +364 -0
  129. package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +525 -0
  130. package/vendor/dojo-1.10.10/dijit/typematic.js +96 -0
  131. package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +211 -0
  132. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +195 -0
  133. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +761 -0
  134. package/vendor/dojo-1.10.10/dojo/Stateful.js +90 -0
  135. package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +218 -0
  136. package/vendor/dojo-1.10.10/dojo/_base/url.js +87 -0
  137. package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +109 -0
  138. package/vendor/dojo-1.10.10/dojo/cache.js +9 -0
  139. package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +7 -0
  140. package/vendor/dojo-1.10.10/dojo/colors.js +74 -0
  141. package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +232 -0
  142. package/vendor/dojo-1.10.10/dojo/cookie.js +48 -0
  143. package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +98 -0
  144. package/vendor/dojo-1.10.10/dojo/date/stamp.js +82 -0
  145. package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +144 -0
  146. package/vendor/dojo-1.10.10/dojo/dojo.js +7 -0
  147. package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +18680 -0
  148. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +27 -0
  149. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +101 -0
  150. package/vendor/dojo-1.10.10/dojo/fx/easing.js +165 -0
  151. package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +276 -0
  152. package/vendor/dojo-1.10.10/dojo/fx.js +271 -0
  153. package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +443 -0
  154. package/vendor/dojo-1.10.10/dojo/hccss.js +26 -0
  155. package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +52 -0
  156. package/vendor/dojo-1.10.10/dojo/html.js +161 -0
  157. package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +370 -0
  158. package/vendor/dojo-1.10.10/dojo/io/iframe.js +71 -0
  159. package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +190 -0
  160. package/vendor/dojo-1.10.10/dojo/io/script.js +112 -0
  161. package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +280 -0
  162. package/vendor/dojo-1.10.10/dojo/parser.js +437 -0
  163. package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +915 -0
  164. package/vendor/dojo-1.10.10/dojo/promise/all.js +59 -0
  165. package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +77 -0
  166. package/vendor/dojo-1.10.10/dojo/regexp.js +32 -0
  167. package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +70 -0
  168. package/vendor/dojo-1.10.10/dojo/request/iframe.js +291 -0
  169. package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +438 -0
  170. package/vendor/dojo-1.10.10/dojo/request/script.js +129 -0
  171. package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +237 -0
  172. package/vendor/dojo-1.10.10/dojo/require.js +11 -0
  173. package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +7 -0
  174. package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
  175. package/vendor/dojo-1.10.10/dojo/string.js +67 -0
  176. package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +181 -0
  177. package/vendor/dojo-1.10.10/dojo/touch.js +191 -0
  178. package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +468 -0
  179. package/vendor/dojo-1.10.10/dojo/uacss.js +36 -0
  180. package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +85 -0
  181. package/vendor/dojo-1.10.10/dojo/window.js +141 -0
  182. package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +241 -0
  183. package/vendor/dojo-1.10.10/dojox/charting/Chart.js +626 -0
  184. package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +1220 -0
  185. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +5 -0
  186. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +16 -0
  187. package/vendor/dojo-1.10.10/dojox/charting/Element.js +247 -0
  188. package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +402 -0
  189. package/vendor/dojo-1.10.10/dojox/charting/Series.js +24 -0
  190. package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +58 -0
  191. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +191 -0
  192. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +577 -0
  193. package/vendor/dojo-1.10.10/dojox/charting/Theme.js +42 -0
  194. package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +120 -0
  195. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +11 -0
  196. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +36 -0
  197. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +77 -0
  198. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +144 -0
  199. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +58 -0
  200. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +123 -0
  201. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +54 -0
  202. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +124 -0
  203. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +28 -0
  204. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +74 -0
  205. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +116 -0
  206. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +178 -0
  207. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +24 -0
  208. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +83 -0
  209. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +557 -0
  210. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +980 -0
  211. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +65 -0
  212. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +224 -0
  213. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +91 -0
  214. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +164 -0
  215. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +7 -0
  216. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +14 -0
  217. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +168 -0
  218. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +311 -0
  219. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +61 -0
  220. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +161 -0
  221. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +141 -0
  222. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +242 -0
  223. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +126 -0
  224. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +243 -0
  225. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +108 -0
  226. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +290 -0
  227. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +13 -0
  228. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +14 -0
  229. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +13 -0
  230. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +14 -0
  231. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +153 -0
  232. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +249 -0
  233. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +253 -0
  234. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +472 -0
  235. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +182 -0
  236. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +356 -0
  237. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +6 -0
  238. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +12 -0
  239. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +6 -0
  240. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +12 -0
  241. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +7 -0
  242. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +13 -0
  243. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +110 -0
  244. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +208 -0
  245. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +303 -0
  246. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +547 -0
  247. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +134 -0
  248. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +207 -0
  249. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +299 -0
  250. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +537 -0
  251. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +24 -0
  252. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +44 -0
  253. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +7 -0
  254. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +14 -0
  255. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +22 -0
  256. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +33 -0
  257. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +20 -0
  258. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +31 -0
  259. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +6 -0
  260. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +12 -0
  261. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +68 -0
  262. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +120 -0
  263. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +209 -0
  264. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +214 -0
  265. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +76 -0
  266. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +77 -0
  267. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +59 -0
  268. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +70 -0
  269. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +220 -0
  270. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +262 -0
  271. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +23 -0
  272. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +36 -0
  273. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +39 -0
  274. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +106 -0
  275. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +5 -0
  276. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +12 -0
  277. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +4 -0
  278. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +3 -0
  279. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +102 -0
  280. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +165 -0
  281. package/vendor/dojo-1.10.10/dojox/color/Palette.js +163 -0
  282. package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +460 -0
  283. package/vendor/dojo-1.10.10/dojox/color/_base.js +174 -0
  284. package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +196 -0
  285. package/vendor/dojo-1.10.10/dojox/gfx/fx.js +297 -0
  286. package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +350 -0
  287. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +63 -0
  288. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +91 -0
  289. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +170 -0
  290. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +501 -0
  291. package/vendor/dojo-1.10.10/dojox/gfx/path.js +319 -0
  292. package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +478 -0
  293. package/vendor/dojo-1.10.10/dojox/gfx/shape.js +459 -0
  294. package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +1091 -0
  295. package/vendor/dojo-1.10.10/dojox/gfx/svg.js +662 -0
  296. package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +1023 -0
  297. package/vendor/dojo-1.10.10/dojox/gfx/utils.js +199 -0
  298. package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +322 -0
  299. package/vendor/dojo-1.10.10/dojox/gfx.js +2 -0
  300. package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +1136 -0
  301. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +151 -0
  302. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +169 -0
  303. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +93 -0
  304. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +125 -0
  305. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +81 -0
  306. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +132 -0
  307. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +54 -0
  308. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +78 -0
  309. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +61 -0
  310. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +77 -0
  311. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +87 -0
  312. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +107 -0
  313. package/vendor/dojo-1.10.10/dojox/lang/functional.js +4 -0
  314. package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +3 -0
  315. package/vendor/dojo-1.10.10/dojox/lang/utils.js +86 -0
  316. package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +121 -0
  317. package/vendor/dojo-1.10.10/dojox/main.js +4 -0
  318. package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +14 -0
  319. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +112 -0
  320. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +208 -0
  321. package/vendor/dojo-1.10.10/dojox/storage/Provider.js +62 -0
  322. package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +344 -0
  323. package/vendor/dojo-1.10.10/dojox/storage/manager.js +110 -0
  324. package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +263 -0
@@ -0,0 +1,407 @@
1
+ define("dijit/place", [
2
+ "dojo/_base/array", // array.forEach array.map array.some
3
+ "dojo/dom-geometry", // domGeometry.position
4
+ "dojo/dom-style", // domStyle.getComputedStyle
5
+ "dojo/_base/kernel", // kernel.deprecated
6
+ "dojo/_base/window", // win.body
7
+ "./Viewport", // getEffectiveBox
8
+ "./main" // dijit (defining dijit.place to match API doc)
9
+ ], function(array, domGeometry, domStyle, kernel, win, Viewport, dijit){
10
+
11
+ // module:
12
+ // dijit/place
13
+
14
+
15
+ function _place(/*DomNode*/ node, choices, layoutNode, aroundNodeCoords){
16
+ // summary:
17
+ // Given a list of spots to put node, put it at the first spot where it fits,
18
+ // of if it doesn't fit anywhere then the place with the least overflow
19
+ // choices: Array
20
+ // Array of elements like: {corner: 'TL', pos: {x: 10, y: 20} }
21
+ // Above example says to put the top-left corner of the node at (10,20)
22
+ // layoutNode: Function(node, aroundNodeCorner, nodeCorner, size)
23
+ // for things like tooltip, they are displayed differently (and have different dimensions)
24
+ // based on their orientation relative to the parent. This adjusts the popup based on orientation.
25
+ // It also passes in the available size for the popup, which is useful for tooltips to
26
+ // tell them that their width is limited to a certain amount. layoutNode() may return a value expressing
27
+ // how much the popup had to be modified to fit into the available space. This is used to determine
28
+ // what the best placement is.
29
+ // aroundNodeCoords: Object
30
+ // Size of aroundNode, ex: {w: 200, h: 50}
31
+
32
+ // get {x: 10, y: 10, w: 100, h:100} type obj representing position of
33
+ // viewport over document
34
+ var view = Viewport.getEffectiveBox(node.ownerDocument);
35
+
36
+ // This won't work if the node is inside a <div style="position: relative">,
37
+ // so reattach it to <body>. (Otherwise, the positioning will be wrong
38
+ // and also it might get cutoff.)
39
+ if(!node.parentNode || String(node.parentNode.tagName).toLowerCase() != "body"){
40
+ win.body(node.ownerDocument).appendChild(node);
41
+ }
42
+
43
+ var best = null;
44
+ array.some(choices, function(choice){
45
+ var corner = choice.corner;
46
+ var pos = choice.pos;
47
+ var overflow = 0;
48
+
49
+ // calculate amount of space available given specified position of node
50
+ var spaceAvailable = {
51
+ w: {
52
+ 'L': view.l + view.w - pos.x,
53
+ 'R': pos.x - view.l,
54
+ 'M': view.w
55
+ }[corner.charAt(1)],
56
+ h: {
57
+ 'T': view.t + view.h - pos.y,
58
+ 'B': pos.y - view.t,
59
+ 'M': view.h
60
+ }[corner.charAt(0)]
61
+ };
62
+
63
+ // Clear left/right position settings set earlier so they don't interfere with calculations,
64
+ // specifically when layoutNode() (a.k.a. Tooltip.orient()) measures natural width of Tooltip
65
+ var s = node.style;
66
+ s.left = s.right = "auto";
67
+
68
+ // configure node to be displayed in given position relative to button
69
+ // (need to do this in order to get an accurate size for the node, because
70
+ // a tooltip's size changes based on position, due to triangle)
71
+ if(layoutNode){
72
+ var res = layoutNode(node, choice.aroundCorner, corner, spaceAvailable, aroundNodeCoords);
73
+ overflow = typeof res == "undefined" ? 0 : res;
74
+ }
75
+
76
+ // get node's size
77
+ var style = node.style;
78
+ var oldDisplay = style.display;
79
+ var oldVis = style.visibility;
80
+ if(style.display == "none"){
81
+ style.visibility = "hidden";
82
+ style.display = "";
83
+ }
84
+ var bb = domGeometry.position(node);
85
+ style.display = oldDisplay;
86
+ style.visibility = oldVis;
87
+
88
+ // coordinates and size of node with specified corner placed at pos,
89
+ // and clipped by viewport
90
+ var
91
+ startXpos = {
92
+ 'L': pos.x,
93
+ 'R': pos.x - bb.w,
94
+ 'M': Math.max(view.l, Math.min(view.l + view.w, pos.x + (bb.w >> 1)) - bb.w) // M orientation is more flexible
95
+ }[corner.charAt(1)],
96
+ startYpos = {
97
+ 'T': pos.y,
98
+ 'B': pos.y - bb.h,
99
+ 'M': Math.max(view.t, Math.min(view.t + view.h, pos.y + (bb.h >> 1)) - bb.h)
100
+ }[corner.charAt(0)],
101
+ startX = Math.max(view.l, startXpos),
102
+ startY = Math.max(view.t, startYpos),
103
+ endX = Math.min(view.l + view.w, startXpos + bb.w),
104
+ endY = Math.min(view.t + view.h, startYpos + bb.h),
105
+ width = endX - startX,
106
+ height = endY - startY;
107
+
108
+ overflow += (bb.w - width) + (bb.h - height);
109
+
110
+ if(best == null || overflow < best.overflow){
111
+ best = {
112
+ corner: corner,
113
+ aroundCorner: choice.aroundCorner,
114
+ x: startX,
115
+ y: startY,
116
+ w: width,
117
+ h: height,
118
+ overflow: overflow,
119
+ spaceAvailable: spaceAvailable
120
+ };
121
+ }
122
+
123
+ return !overflow;
124
+ });
125
+
126
+ // In case the best position is not the last one we checked, need to call
127
+ // layoutNode() again.
128
+ if(best.overflow && layoutNode){
129
+ layoutNode(node, best.aroundCorner, best.corner, best.spaceAvailable, aroundNodeCoords);
130
+ }
131
+
132
+ // And then position the node. Do this last, after the layoutNode() above
133
+ // has sized the node, due to browser quirks when the viewport is scrolled
134
+ // (specifically that a Tooltip will shrink to fit as though the window was
135
+ // scrolled to the left).
136
+
137
+ var top = best.y,
138
+ side = best.x,
139
+ body = win.body(node.ownerDocument);
140
+
141
+ if(/relative|absolute/.test(domStyle.get(body, "position"))){
142
+ // compensate for margin on <body>, see #16148
143
+ top -= domStyle.get(body, "marginTop");
144
+ side -= domStyle.get(body, "marginLeft");
145
+ }
146
+
147
+ var s = node.style;
148
+ s.top = top + "px";
149
+ s.left = side + "px";
150
+ s.right = "auto"; // needed for FF or else tooltip goes to far left
151
+
152
+ return best;
153
+ }
154
+
155
+ var reverse = {
156
+ // Map from corner to kitty-corner
157
+ "TL": "BR",
158
+ "TR": "BL",
159
+ "BL": "TR",
160
+ "BR": "TL"
161
+ };
162
+
163
+ var place = {
164
+ // summary:
165
+ // Code to place a DOMNode relative to another DOMNode.
166
+ // Load using require(["dijit/place"], function(place){ ... }).
167
+
168
+ at: function(node, pos, corners, padding, layoutNode){
169
+ // summary:
170
+ // Positions node kitty-corner to the rectangle centered at (pos.x, pos.y) with width and height of
171
+ // padding.x * 2 and padding.y * 2, or zero if padding not specified. Picks first corner in corners[]
172
+ // where node is fully visible, or the corner where it's most visible.
173
+ //
174
+ // Node is assumed to be absolutely or relatively positioned.
175
+ // node: DOMNode
176
+ // The node to position
177
+ // pos: dijit/place.__Position
178
+ // Object like {x: 10, y: 20}
179
+ // corners: String[]
180
+ // Array of Strings representing order to try corners of the node in, like ["TR", "BL"].
181
+ // Possible values are:
182
+ //
183
+ // - "BL" - bottom left
184
+ // - "BR" - bottom right
185
+ // - "TL" - top left
186
+ // - "TR" - top right
187
+ // padding: dijit/place.__Position?
188
+ // Optional param to set padding, to put some buffer around the element you want to position.
189
+ // Defaults to zero.
190
+ // layoutNode: Function(node, aroundNodeCorner, nodeCorner)
191
+ // For things like tooltip, they are displayed differently (and have different dimensions)
192
+ // based on their orientation relative to the parent. This adjusts the popup based on orientation.
193
+ // example:
194
+ // Try to place node's top right corner at (10,20).
195
+ // If that makes node go (partially) off screen, then try placing
196
+ // bottom left corner at (10,20).
197
+ // | place(node, {x: 10, y: 20}, ["TR", "BL"])
198
+ var choices = array.map(corners, function(corner){
199
+ var c = {
200
+ corner: corner,
201
+ aroundCorner: reverse[corner], // so TooltipDialog.orient() gets aroundCorner argument set
202
+ pos: {x: pos.x,y: pos.y}
203
+ };
204
+ if(padding){
205
+ c.pos.x += corner.charAt(1) == 'L' ? padding.x : -padding.x;
206
+ c.pos.y += corner.charAt(0) == 'T' ? padding.y : -padding.y;
207
+ }
208
+ return c;
209
+ });
210
+
211
+ return _place(node, choices, layoutNode);
212
+ },
213
+
214
+ around: function(
215
+ /*DomNode*/ node,
216
+ /*DomNode|dijit/place.__Rectangle*/ anchor,
217
+ /*String[]*/ positions,
218
+ /*Boolean*/ leftToRight,
219
+ /*Function?*/ layoutNode){
220
+
221
+ // summary:
222
+ // Position node adjacent or kitty-corner to anchor
223
+ // such that it's fully visible in viewport.
224
+ // description:
225
+ // Place node such that corner of node touches a corner of
226
+ // aroundNode, and that node is fully visible.
227
+ // anchor:
228
+ // Either a DOMNode or a rectangle (object with x, y, width, height).
229
+ // positions:
230
+ // Ordered list of positions to try matching up.
231
+ //
232
+ // - before: places drop down to the left of the anchor node/widget, or to the right in the case
233
+ // of RTL scripts like Hebrew and Arabic; aligns either the top of the drop down
234
+ // with the top of the anchor, or the bottom of the drop down with bottom of the anchor.
235
+ // - after: places drop down to the right of the anchor node/widget, or to the left in the case
236
+ // of RTL scripts like Hebrew and Arabic; aligns either the top of the drop down
237
+ // with the top of the anchor, or the bottom of the drop down with bottom of the anchor.
238
+ // - before-centered: centers drop down to the left of the anchor node/widget, or to the right
239
+ // in the case of RTL scripts like Hebrew and Arabic
240
+ // - after-centered: centers drop down to the right of the anchor node/widget, or to the left
241
+ // in the case of RTL scripts like Hebrew and Arabic
242
+ // - above-centered: drop down is centered above anchor node
243
+ // - above: drop down goes above anchor node, left sides aligned
244
+ // - above-alt: drop down goes above anchor node, right sides aligned
245
+ // - below-centered: drop down is centered above anchor node
246
+ // - below: drop down goes below anchor node
247
+ // - below-alt: drop down goes below anchor node, right sides aligned
248
+ // layoutNode: Function(node, aroundNodeCorner, nodeCorner)
249
+ // For things like tooltip, they are displayed differently (and have different dimensions)
250
+ // based on their orientation relative to the parent. This adjusts the popup based on orientation.
251
+ // leftToRight:
252
+ // True if widget is LTR, false if widget is RTL. Affects the behavior of "above" and "below"
253
+ // positions slightly.
254
+ // example:
255
+ // | placeAroundNode(node, aroundNode, {'BL':'TL', 'TR':'BR'});
256
+ // This will try to position node such that node's top-left corner is at the same position
257
+ // as the bottom left corner of the aroundNode (ie, put node below
258
+ // aroundNode, with left edges aligned). If that fails it will try to put
259
+ // the bottom-right corner of node where the top right corner of aroundNode is
260
+ // (ie, put node above aroundNode, with right edges aligned)
261
+ //
262
+
263
+ // If around is a DOMNode (or DOMNode id), convert to coordinates.
264
+ var aroundNodePos;
265
+ if(typeof anchor == "string" || "offsetWidth" in anchor || "ownerSVGElement" in anchor){
266
+ aroundNodePos = domGeometry.position(anchor, true);
267
+
268
+ // For above and below dropdowns, subtract width of border so that popup and aroundNode borders
269
+ // overlap, preventing a double-border effect. Unfortunately, difficult to measure the border
270
+ // width of either anchor or popup because in both cases the border may be on an inner node.
271
+ if(/^(above|below)/.test(positions[0])){
272
+ var anchorBorder = domGeometry.getBorderExtents(anchor),
273
+ anchorChildBorder = anchor.firstChild ? domGeometry.getBorderExtents(anchor.firstChild) : {t:0,l:0,b:0,r:0},
274
+ nodeBorder = domGeometry.getBorderExtents(node),
275
+ nodeChildBorder = node.firstChild ? domGeometry.getBorderExtents(node.firstChild) : {t:0,l:0,b:0,r:0};
276
+ aroundNodePos.y += Math.min(anchorBorder.t + anchorChildBorder.t, nodeBorder.t + nodeChildBorder.t);
277
+ aroundNodePos.h -= Math.min(anchorBorder.t + anchorChildBorder.t, nodeBorder.t+ nodeChildBorder.t) +
278
+ Math.min(anchorBorder.b + anchorChildBorder.b, nodeBorder.b + nodeChildBorder.b);
279
+ }
280
+ }else{
281
+ aroundNodePos = anchor;
282
+ }
283
+
284
+ // Compute position and size of visible part of anchor (it may be partially hidden by ancestor nodes w/scrollbars)
285
+ if(anchor.parentNode){
286
+ // ignore nodes between position:relative and position:absolute
287
+ var sawPosAbsolute = domStyle.getComputedStyle(anchor).position == "absolute";
288
+ var parent = anchor.parentNode;
289
+ while(parent && parent.nodeType == 1 && parent.nodeName != "BODY"){ //ignoring the body will help performance
290
+ var parentPos = domGeometry.position(parent, true),
291
+ pcs = domStyle.getComputedStyle(parent);
292
+ if(/relative|absolute/.test(pcs.position)){
293
+ sawPosAbsolute = false;
294
+ }
295
+ if(!sawPosAbsolute && /hidden|auto|scroll/.test(pcs.overflow)){
296
+ var bottomYCoord = Math.min(aroundNodePos.y + aroundNodePos.h, parentPos.y + parentPos.h);
297
+ var rightXCoord = Math.min(aroundNodePos.x + aroundNodePos.w, parentPos.x + parentPos.w);
298
+ aroundNodePos.x = Math.max(aroundNodePos.x, parentPos.x);
299
+ aroundNodePos.y = Math.max(aroundNodePos.y, parentPos.y);
300
+ aroundNodePos.h = bottomYCoord - aroundNodePos.y;
301
+ aroundNodePos.w = rightXCoord - aroundNodePos.x;
302
+ }
303
+ if(pcs.position == "absolute"){
304
+ sawPosAbsolute = true;
305
+ }
306
+ parent = parent.parentNode;
307
+ }
308
+ }
309
+
310
+ var x = aroundNodePos.x,
311
+ y = aroundNodePos.y,
312
+ width = "w" in aroundNodePos ? aroundNodePos.w : (aroundNodePos.w = aroundNodePos.width),
313
+ height = "h" in aroundNodePos ? aroundNodePos.h : (kernel.deprecated("place.around: dijit/place.__Rectangle: { x:"+x+", y:"+y+", height:"+aroundNodePos.height+", width:"+width+" } has been deprecated. Please use { x:"+x+", y:"+y+", h:"+aroundNodePos.height+", w:"+width+" }", "", "2.0"), aroundNodePos.h = aroundNodePos.height);
314
+
315
+ // Convert positions arguments into choices argument for _place()
316
+ var choices = [];
317
+ function push(aroundCorner, corner){
318
+ choices.push({
319
+ aroundCorner: aroundCorner,
320
+ corner: corner,
321
+ pos: {
322
+ x: {
323
+ 'L': x,
324
+ 'R': x + width,
325
+ 'M': x + (width >> 1)
326
+ }[aroundCorner.charAt(1)],
327
+ y: {
328
+ 'T': y,
329
+ 'B': y + height,
330
+ 'M': y + (height >> 1)
331
+ }[aroundCorner.charAt(0)]
332
+ }
333
+ })
334
+ }
335
+ array.forEach(positions, function(pos){
336
+ var ltr = leftToRight;
337
+ switch(pos){
338
+ case "above-centered":
339
+ push("TM", "BM");
340
+ break;
341
+ case "below-centered":
342
+ push("BM", "TM");
343
+ break;
344
+ case "after-centered":
345
+ ltr = !ltr;
346
+ // fall through
347
+ case "before-centered":
348
+ push(ltr ? "ML" : "MR", ltr ? "MR" : "ML");
349
+ break;
350
+ case "after":
351
+ ltr = !ltr;
352
+ // fall through
353
+ case "before":
354
+ push(ltr ? "TL" : "TR", ltr ? "TR" : "TL");
355
+ push(ltr ? "BL" : "BR", ltr ? "BR" : "BL");
356
+ break;
357
+ case "below-alt":
358
+ ltr = !ltr;
359
+ // fall through
360
+ case "below":
361
+ // first try to align left borders, next try to align right borders (or reverse for RTL mode)
362
+ push(ltr ? "BL" : "BR", ltr ? "TL" : "TR");
363
+ push(ltr ? "BR" : "BL", ltr ? "TR" : "TL");
364
+ break;
365
+ case "above-alt":
366
+ ltr = !ltr;
367
+ // fall through
368
+ case "above":
369
+ // first try to align left borders, next try to align right borders (or reverse for RTL mode)
370
+ push(ltr ? "TL" : "TR", ltr ? "BL" : "BR");
371
+ push(ltr ? "TR" : "TL", ltr ? "BR" : "BL");
372
+ break;
373
+ default:
374
+ // To assist dijit/_base/place, accept arguments of type {aroundCorner: "BL", corner: "TL"}.
375
+ // Not meant to be used directly. Remove for 2.0.
376
+ push(pos.aroundCorner, pos.corner);
377
+ }
378
+ });
379
+
380
+ var position = _place(node, choices, layoutNode, {w: width, h: height});
381
+ position.aroundNodePos = aroundNodePos;
382
+
383
+ return position;
384
+ }
385
+ };
386
+
387
+ /*=====
388
+ place.__Position = {
389
+ // x: Integer
390
+ // horizontal coordinate in pixels, relative to document body
391
+ // y: Integer
392
+ // vertical coordinate in pixels, relative to document body
393
+ };
394
+ place.__Rectangle = {
395
+ // x: Integer
396
+ // horizontal offset in pixels, relative to document body
397
+ // y: Integer
398
+ // vertical offset in pixels, relative to document body
399
+ // w: Integer
400
+ // width in pixels. Can also be specified as "width" for backwards-compatibility.
401
+ // h: Integer
402
+ // height in pixels. Can also be specified as "height" for backwards-compatibility.
403
+ };
404
+ =====*/
405
+
406
+ return dijit.place = place; // setting dijit.place for back-compat, remove for 2.0
407
+ });
@@ -0,0 +1,162 @@
1
+ //>>built
2
+ define("dijit/popup",["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/keys","dojo/_base/lang","dojo/on","./place","./BackgroundIframe","./Viewport","./main","dojo/touch"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,on,_c,_d,_e,_f){
3
+ function _10(){
4
+ if(this._popupWrapper){
5
+ _6.destroy(this._popupWrapper);
6
+ delete this._popupWrapper;
7
+ }
8
+ };
9
+ var _11=_3(null,{_stack:[],_beginZIndex:1000,_idGen:1,_repositionAll:function(){
10
+ if(this._firstAroundNode){
11
+ var _12=this._firstAroundPosition,_13=_7.position(this._firstAroundNode,true),dx=_13.x-_12.x,dy=_13.y-_12.y;
12
+ if(dx||dy){
13
+ this._firstAroundPosition=_13;
14
+ for(var i=0;i<this._stack.length;i++){
15
+ var _14=this._stack[i].wrapper.style;
16
+ _14.top=(parseFloat(_14.top)+dy)+"px";
17
+ if(_14.right=="auto"){
18
+ _14.left=(parseFloat(_14.left)+dx)+"px";
19
+ }else{
20
+ _14.right=(parseFloat(_14.right)-dx)+"px";
21
+ }
22
+ }
23
+ }
24
+ this._aroundMoveListener=setTimeout(_b.hitch(this,"_repositionAll"),dx||dy?10:50);
25
+ }
26
+ },_createWrapper:function(_15){
27
+ var _16=_15._popupWrapper,_17=_15.domNode;
28
+ if(!_16){
29
+ _16=_6.create("div",{"class":"dijitPopup",style:{display:"none"},role:"region","aria-label":_15["aria-label"]||_15.label||_15.name||_15.id},_15.ownerDocumentBody);
30
+ _16.appendChild(_17);
31
+ var s=_17.style;
32
+ s.display="";
33
+ s.visibility="";
34
+ s.position="";
35
+ s.top="0px";
36
+ _15._popupWrapper=_16;
37
+ _2.after(_15,"destroy",_10,true);
38
+ if("ontouchend" in document){
39
+ on(_16,"touchend",function(evt){
40
+ if(!/^(input|button|textarea)$/i.test(evt.target.tagName)){
41
+ evt.preventDefault();
42
+ }
43
+ });
44
+ }
45
+ _16.dojoClick=true;
46
+ }
47
+ return _16;
48
+ },moveOffScreen:function(_18){
49
+ var _19=this._createWrapper(_18);
50
+ var ltr=_7.isBodyLtr(_18.ownerDocument),_1a={visibility:"hidden",top:"-9999px",display:""};
51
+ _1a[ltr?"left":"right"]="-9999px";
52
+ _1a[ltr?"right":"left"]="auto";
53
+ _8.set(_19,_1a);
54
+ return _19;
55
+ },hide:function(_1b){
56
+ var _1c=this._createWrapper(_1b);
57
+ _8.set(_1c,{display:"none",height:"auto",overflowY:"visible",border:""});
58
+ var _1d=_1b.domNode;
59
+ if("_originalStyle" in _1d){
60
+ _1d.style.cssText=_1d._originalStyle;
61
+ }
62
+ },getTopPopup:function(){
63
+ var _1e=this._stack;
64
+ for(var pi=_1e.length-1;pi>0&&_1e[pi].parent===_1e[pi-1].widget;pi--){
65
+ }
66
+ return _1e[pi];
67
+ },open:function(_1f){
68
+ var _20=this._stack,_21=_1f.popup,_22=_21.domNode,_23=_1f.orient||["below","below-alt","above","above-alt"],ltr=_1f.parent?_1f.parent.isLeftToRight():_7.isBodyLtr(_21.ownerDocument),_24=_1f.around,id=(_1f.around&&_1f.around.id)?(_1f.around.id+"_dropdown"):("popup_"+this._idGen++);
69
+ while(_20.length&&(!_1f.parent||!_4.isDescendant(_1f.parent.domNode,_20[_20.length-1].widget.domNode))){
70
+ this.close(_20[_20.length-1].widget);
71
+ }
72
+ var _25=this.moveOffScreen(_21);
73
+ if(_21.startup&&!_21._started){
74
+ _21.startup();
75
+ }
76
+ var _26,_27=_7.position(_22);
77
+ if("maxHeight" in _1f&&_1f.maxHeight!=-1){
78
+ _26=_1f.maxHeight||Infinity;
79
+ }else{
80
+ var _28=_e.getEffectiveBox(this.ownerDocument),_29=_24?_7.position(_24,false):{y:_1f.y-(_1f.padding||0),h:(_1f.padding||0)*2};
81
+ _26=Math.floor(Math.max(_29.y,_28.h-(_29.y+_29.h)));
82
+ }
83
+ if(_27.h>_26){
84
+ var cs=_8.getComputedStyle(_22),_2a=cs.borderLeftWidth+" "+cs.borderLeftStyle+" "+cs.borderLeftColor;
85
+ _8.set(_25,{overflowY:"scroll",height:_26+"px",border:_2a});
86
+ _22._originalStyle=_22.style.cssText;
87
+ _22.style.border="none";
88
+ }
89
+ _5.set(_25,{id:id,style:{zIndex:this._beginZIndex+_20.length},"class":"dijitPopup "+(_21.baseClass||_21["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:_1f.parent?_1f.parent.id:""});
90
+ if(_20.length==0&&_24){
91
+ this._firstAroundNode=_24;
92
+ this._firstAroundPosition=_7.position(_24,true);
93
+ this._aroundMoveListener=setTimeout(_b.hitch(this,"_repositionAll"),50);
94
+ }
95
+ if(_9("config-bgIframe")&&!_21.bgIframe){
96
+ _21.bgIframe=new _d(_25);
97
+ }
98
+ var _2b=_21.orient?_b.hitch(_21,"orient"):null,_2c=_24?_c.around(_25,_24,_23,ltr,_2b):_c.at(_25,_1f,_23=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_1f.padding,_2b);
99
+ _25.style.visibility="visible";
100
+ _22.style.visibility="visible";
101
+ var _2d=[];
102
+ _2d.push(on(_25,"keydown",_b.hitch(this,function(evt){
103
+ if(evt.keyCode==_a.ESCAPE&&_1f.onCancel){
104
+ evt.stopPropagation();
105
+ evt.preventDefault();
106
+ _1f.onCancel();
107
+ }else{
108
+ if(evt.keyCode==_a.TAB){
109
+ evt.stopPropagation();
110
+ evt.preventDefault();
111
+ var _2e=this.getTopPopup();
112
+ if(_2e&&_2e.onCancel){
113
+ _2e.onCancel();
114
+ }
115
+ }
116
+ }
117
+ })));
118
+ if(_21.onCancel&&_1f.onCancel){
119
+ _2d.push(_21.on("cancel",_1f.onCancel));
120
+ }
121
+ _2d.push(_21.on(_21.onExecute?"execute":"change",_b.hitch(this,function(){
122
+ var _2f=this.getTopPopup();
123
+ if(_2f&&_2f.onExecute){
124
+ _2f.onExecute();
125
+ }
126
+ })));
127
+ _20.push({widget:_21,wrapper:_25,parent:_1f.parent,onExecute:_1f.onExecute,onCancel:_1f.onCancel,onClose:_1f.onClose,handlers:_2d});
128
+ if(_21.onOpen){
129
+ _21.onOpen(_2c);
130
+ }
131
+ return _2c;
132
+ },close:function(_30){
133
+ var _31=this._stack;
134
+ while((_30&&_1.some(_31,function(_32){
135
+ return _32.widget==_30;
136
+ }))||(!_30&&_31.length)){
137
+ var top=_31.pop(),_33=top.widget,_34=top.onClose;
138
+ if(_33.bgIframe){
139
+ _33.bgIframe.destroy();
140
+ delete _33.bgIframe;
141
+ }
142
+ if(_33.onClose){
143
+ _33.onClose();
144
+ }
145
+ var h;
146
+ while(h=top.handlers.pop()){
147
+ h.remove();
148
+ }
149
+ if(_33&&_33.domNode){
150
+ this.hide(_33);
151
+ }
152
+ if(_34){
153
+ _34();
154
+ }
155
+ }
156
+ if(_31.length==0&&this._aroundMoveListener){
157
+ clearTimeout(this._aroundMoveListener);
158
+ this._firstAroundNode=this._firstAroundPosition=this._aroundMoveListener=null;
159
+ }
160
+ }});
161
+ return (_f.popup=new _11());
162
+ });