@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,525 @@
1
+ define("dijit/selection", [
2
+ "dojo/_base/array",
3
+ "dojo/dom", // dom.byId
4
+ "dojo/_base/lang",
5
+ "dojo/sniff", // has("ie") has("opera")
6
+ "dojo/_base/window",
7
+ "dijit/focus"
8
+ ], function(array, dom, lang, has, baseWindow, focus){
9
+
10
+ // module:
11
+ // dijit/selection
12
+
13
+ // Note that this class is using feature detection, but doesn't use has() because sometimes on IE the outer window
14
+ // may be running in standards mode (ie, IE9 mode) but an iframe may be in compatibility mode. So the code path
15
+ // used will vary based on the window.
16
+
17
+ var SelectionManager = function(win){
18
+ // summary:
19
+ // Class for monitoring / changing the selection (typically highlighted text) in a given window
20
+ // win: Window
21
+ // The window to monitor/adjust the selection on.
22
+
23
+ var doc = win.document;
24
+
25
+ this.getType = function(){
26
+ // summary:
27
+ // Get the selection type (like doc.select.type in IE).
28
+ if(doc.getSelection){
29
+ // W3C path
30
+ var stype = "text";
31
+
32
+ // Check if the actual selection is a CONTROL (IMG, TABLE, HR, etc...).
33
+ var oSel;
34
+ try{
35
+ oSel = win.getSelection();
36
+ }catch(e){ /*squelch*/ }
37
+
38
+ if(oSel && oSel.rangeCount == 1){
39
+ var oRange = oSel.getRangeAt(0);
40
+ if( (oRange.startContainer == oRange.endContainer) &&
41
+ ((oRange.endOffset - oRange.startOffset) == 1) &&
42
+ (oRange.startContainer.nodeType != 3 /* text node*/)
43
+ ){
44
+ stype = "control";
45
+ }
46
+ }
47
+ return stype; //String
48
+ }else{
49
+ // IE6-8
50
+ return doc.selection.type.toLowerCase();
51
+ }
52
+ };
53
+
54
+ this.getSelectedText = function(){
55
+ // summary:
56
+ // Return the text (no html tags) included in the current selection or null if no text is selected
57
+ if(doc.getSelection){
58
+ // W3C path
59
+ var selection = win.getSelection();
60
+ return selection ? selection.toString() : ""; //String
61
+ }else{
62
+ // IE6-8
63
+ if(this.getType() == 'control'){
64
+ return null;
65
+ }
66
+ return doc.selection.createRange().text;
67
+ }
68
+ };
69
+
70
+ this.getSelectedHtml = function(){
71
+ // summary:
72
+ // Return the html text of the current selection or null if unavailable
73
+ if(doc.getSelection){
74
+ // W3C path
75
+ var selection = win.getSelection();
76
+ if(selection && selection.rangeCount){
77
+ var i;
78
+ var html = "";
79
+ for(i = 0; i < selection.rangeCount; i++){
80
+ //Handle selections spanning ranges, such as Opera
81
+ var frag = selection.getRangeAt(i).cloneContents();
82
+ var div = doc.createElement("div");
83
+ div.appendChild(frag);
84
+ html += div.innerHTML;
85
+ }
86
+ return html; //String
87
+ }
88
+ return null;
89
+ }else{
90
+ // IE6-8
91
+ if(this.getType() == 'control'){
92
+ return null;
93
+ }
94
+ return doc.selection.createRange().htmlText;
95
+ }
96
+ };
97
+
98
+ this.getSelectedElement = function(){
99
+ // summary:
100
+ // Retrieves the selected element (if any), just in the case that
101
+ // a single element (object like and image or a table) is
102
+ // selected.
103
+ if(this.getType() == "control"){
104
+ if(doc.getSelection){
105
+ // W3C path
106
+ var selection = win.getSelection();
107
+ return selection.anchorNode.childNodes[ selection.anchorOffset ];
108
+ }else{
109
+ // IE6-8
110
+ var range = doc.selection.createRange();
111
+ if(range && range.item){
112
+ return doc.selection.createRange().item(0);
113
+ }
114
+ }
115
+ }
116
+ return null;
117
+ };
118
+
119
+ this.getParentElement = function(){
120
+ // summary:
121
+ // Get the parent element of the current selection
122
+ if(this.getType() == "control"){
123
+ var p = this.getSelectedElement();
124
+ if(p){ return p.parentNode; }
125
+ }else{
126
+ if(doc.getSelection){
127
+ var selection = doc.getSelection();
128
+ if(selection){
129
+ var node = selection.anchorNode;
130
+ while(node && (node.nodeType != 1)){ // not an element
131
+ node = node.parentNode;
132
+ }
133
+ return node;
134
+ }
135
+ }else{
136
+ var r = doc.selection.createRange();
137
+ r.collapse(true);
138
+ return r.parentElement();
139
+ }
140
+ }
141
+ return null;
142
+ };
143
+
144
+ this.hasAncestorElement = function(/*String*/ tagName /* ... */){
145
+ // summary:
146
+ // Check whether current selection has a parent element which is
147
+ // of type tagName (or one of the other specified tagName)
148
+ // tagName: String
149
+ // The tag name to determine if it has an ancestor of.
150
+ return this.getAncestorElement.apply(this, arguments) != null; //Boolean
151
+ };
152
+
153
+ this.getAncestorElement = function(/*String*/ tagName /* ... */){
154
+ // summary:
155
+ // Return the parent element of the current selection which is of
156
+ // type tagName (or one of the other specified tagName)
157
+ // tagName: String
158
+ // The tag name to determine if it has an ancestor of.
159
+ var node = this.getSelectedElement() || this.getParentElement();
160
+ return this.getParentOfType(node, arguments); //DOMNode
161
+ };
162
+
163
+ this.isTag = function(/*DomNode*/ node, /*String[]*/ tags){
164
+ // summary:
165
+ // Function to determine if a node is one of an array of tags.
166
+ // node:
167
+ // The node to inspect.
168
+ // tags:
169
+ // An array of tag name strings to check to see if the node matches.
170
+ if(node && node.tagName){
171
+ var _nlc = node.tagName.toLowerCase();
172
+ for(var i=0; i<tags.length; i++){
173
+ var _tlc = String(tags[i]).toLowerCase();
174
+ if(_nlc == _tlc){
175
+ return _tlc; // String
176
+ }
177
+ }
178
+ }
179
+ return "";
180
+ };
181
+
182
+ this.getParentOfType = function(/*DomNode*/ node, /*String[]*/ tags){
183
+ // summary:
184
+ // Function to locate a parent node that matches one of a set of tags
185
+ // node:
186
+ // The node to inspect.
187
+ // tags:
188
+ // An array of tag name strings to check to see if the node matches.
189
+ while(node){
190
+ if(this.isTag(node, tags).length){
191
+ return node; // DOMNode
192
+ }
193
+ node = node.parentNode;
194
+ }
195
+ return null;
196
+ };
197
+
198
+ this.collapse = function(/*Boolean*/ beginning){
199
+ // summary:
200
+ // Function to collapse (clear), the current selection
201
+ // beginning: Boolean
202
+ // Indicates whether to collapse the cursor to the beginning of the selection or end.
203
+ if(doc.getSelection){
204
+ // W3C path
205
+ var selection = win.getSelection();
206
+ if(selection.removeAllRanges){ // Mozilla
207
+ if(beginning){
208
+ selection.collapseToStart();
209
+ }else{
210
+ selection.collapseToEnd();
211
+ }
212
+ }else{ // Safari
213
+ // pulled from WebCore/ecma/kjs_window.cpp, line 2536
214
+ selection.collapse(beginning);
215
+ }
216
+ }else{
217
+ // IE6-8
218
+ var range = doc.selection.createRange();
219
+ range.collapse(beginning);
220
+ range.select();
221
+ }
222
+ };
223
+
224
+ this.remove = function(){
225
+ // summary:
226
+ // Function to delete the currently selected content from the document.
227
+ var sel = doc.selection;
228
+ if(doc.getSelection){
229
+ // W3C path
230
+ sel = win.getSelection();
231
+ sel.deleteFromDocument();
232
+ return sel; //Selection
233
+ }else{
234
+ // IE6-8
235
+ if(sel.type.toLowerCase() != "none"){
236
+ sel.clear();
237
+ }
238
+ return sel; //Selection
239
+ }
240
+ };
241
+
242
+ this.selectElementChildren = function(/*DomNode*/ element, /*Boolean?*/ nochangefocus){
243
+ // summary:
244
+ // clear previous selection and select the content of the node
245
+ // (excluding the node itself)
246
+ // element: DOMNode
247
+ // The element you wish to select the children content of.
248
+ // nochangefocus: Boolean
249
+ // Indicates if the focus should change or not.
250
+
251
+ var range;
252
+ element = dom.byId(element);
253
+ if(doc.getSelection){
254
+ // W3C
255
+ var selection = win.getSelection();
256
+ if(has("opera")){
257
+ //Opera's selectAllChildren doesn't seem to work right
258
+ //against <body> nodes and possibly others ... so
259
+ //we use the W3C range API
260
+ if(selection.rangeCount){
261
+ range = selection.getRangeAt(0);
262
+ }else{
263
+ range = doc.createRange();
264
+ }
265
+ range.setStart(element, 0);
266
+ range.setEnd(element,(element.nodeType == 3) ? element.length : element.childNodes.length);
267
+ selection.addRange(range);
268
+ }else{
269
+ selection.selectAllChildren(element);
270
+ }
271
+ }else{
272
+ // IE6-8
273
+ range = element.ownerDocument.body.createTextRange();
274
+ range.moveToElementText(element);
275
+ if(!nochangefocus){
276
+ try{
277
+ range.select(); // IE throws an exception here if the widget is hidden. See #5439
278
+ }catch(e){ /* squelch */}
279
+ }
280
+ }
281
+ };
282
+
283
+ this.selectElement = function(/*DomNode*/ element, /*Boolean?*/ nochangefocus){
284
+ // summary:
285
+ // clear previous selection and select element (including all its children)
286
+ // element: DOMNode
287
+ // The element to select.
288
+ // nochangefocus: Boolean
289
+ // Boolean indicating if the focus should be changed. IE only.
290
+ var range;
291
+ element = dom.byId(element); // TODO: remove for 2.0 or sooner, spec listed above doesn't allow for string
292
+ if(doc.getSelection){
293
+ // W3C path
294
+ var selection = doc.getSelection();
295
+ range = doc.createRange();
296
+ if(selection.removeAllRanges){ // Mozilla
297
+ // FIXME: does this work on Safari?
298
+ if(has("opera")){
299
+ //Opera works if you use the current range on
300
+ //the selection if present.
301
+ if(selection.getRangeAt(0)){
302
+ range = selection.getRangeAt(0);
303
+ }
304
+ }
305
+ range.selectNode(element);
306
+ selection.removeAllRanges();
307
+ selection.addRange(range);
308
+ }
309
+ }else{
310
+ // IE6-8
311
+ try{
312
+ var tg = element.tagName ? element.tagName.toLowerCase() : "";
313
+ if(tg === "img" || tg === "table"){
314
+ range = baseWindow.body(doc).createControlRange();
315
+ }else{
316
+ range = baseWindow.body(doc).createRange();
317
+ }
318
+ range.addElement(element);
319
+ if(!nochangefocus){
320
+ range.select();
321
+ }
322
+ }catch(e){
323
+ this.selectElementChildren(element, nochangefocus);
324
+ }
325
+ }
326
+ };
327
+
328
+ this.inSelection = function(node){
329
+ // summary:
330
+ // This function determines if 'node' is
331
+ // in the current selection.
332
+ // tags:
333
+ // public
334
+ if(node){
335
+ var newRange;
336
+ var range;
337
+
338
+ if(doc.getSelection){
339
+ // WC3
340
+ var sel = win.getSelection();
341
+ if(sel && sel.rangeCount > 0){
342
+ range = sel.getRangeAt(0);
343
+ }
344
+ if(range && range.compareBoundaryPoints && doc.createRange){
345
+ try{
346
+ newRange = doc.createRange();
347
+ newRange.setStart(node, 0);
348
+ if(range.compareBoundaryPoints(range.START_TO_END, newRange) === 1){
349
+ return true;
350
+ }
351
+ }catch(e){ /* squelch */}
352
+ }
353
+ }else{
354
+ // IE6-8, so we can't use the range object as the pseudo
355
+ // range doesn't implement the boundary checking, we have to
356
+ // use IE specific crud.
357
+ range = doc.selection.createRange();
358
+ try{
359
+ newRange = node.ownerDocument.body.createTextRange();
360
+ newRange.moveToElementText(node);
361
+ }catch(e2){/* squelch */}
362
+ if(range && newRange){
363
+ // We can finally compare similar to W3C
364
+ if(range.compareEndPoints("EndToStart", newRange) === 1){
365
+ return true;
366
+ }
367
+ }
368
+ }
369
+ }
370
+ return false; // Boolean
371
+ };
372
+
373
+ this.getBookmark = function(){
374
+ // summary:
375
+ // Retrieves a bookmark that can be used with moveToBookmark to reselect the currently selected range.
376
+
377
+ // TODO: merge additional code from Editor._getBookmark into this method
378
+
379
+ var bm, rg, tg, sel = doc.selection, cf = focus.curNode;
380
+
381
+ if(doc.getSelection){
382
+ // W3C Range API for selections.
383
+ sel = win.getSelection();
384
+ if(sel){
385
+ if(sel.isCollapsed){
386
+ tg = cf? cf.tagName : "";
387
+ if(tg){
388
+ // Create a fake rangelike item to restore selections.
389
+ tg = tg.toLowerCase();
390
+ if(tg == "textarea" ||
391
+ (tg == "input" && (!cf.type || cf.type.toLowerCase() == "text"))){
392
+ sel = {
393
+ start: cf.selectionStart,
394
+ end: cf.selectionEnd,
395
+ node: cf,
396
+ pRange: true
397
+ };
398
+ return {isCollapsed: (sel.end <= sel.start), mark: sel}; //Object.
399
+ }
400
+ }
401
+ bm = {isCollapsed:true};
402
+ if(sel.rangeCount){
403
+ bm.mark = sel.getRangeAt(0).cloneRange();
404
+ }
405
+ }else{
406
+ rg = sel.getRangeAt(0);
407
+ bm = {isCollapsed: false, mark: rg.cloneRange()};
408
+ }
409
+ }
410
+ }else if(sel){
411
+ // If the current focus was a input of some sort and no selection, don't bother saving
412
+ // a native bookmark. This is because it causes issues with dialog/page selection restore.
413
+ // So, we need to create pseudo bookmarks to work with.
414
+ tg = cf ? cf.tagName : "";
415
+ tg = tg.toLowerCase();
416
+ if(cf && tg && (tg == "button" || tg == "textarea" || tg == "input")){
417
+ if(sel.type && sel.type.toLowerCase() == "none"){
418
+ return {
419
+ isCollapsed: true,
420
+ mark: null
421
+ }
422
+ }else{
423
+ rg = sel.createRange();
424
+ return {
425
+ isCollapsed: rg.text && rg.text.length?false:true,
426
+ mark: {
427
+ range: rg,
428
+ pRange: true
429
+ }
430
+ };
431
+ }
432
+ }
433
+ bm = {};
434
+
435
+ //'IE' way for selections.
436
+ try{
437
+ // createRange() throws exception when dojo in iframe
438
+ // and nothing selected, see #9632
439
+ rg = sel.createRange();
440
+ bm.isCollapsed = !(sel.type == 'Text' ? rg.htmlText.length : rg.length);
441
+ }catch(e){
442
+ bm.isCollapsed = true;
443
+ return bm;
444
+ }
445
+ if(sel.type.toUpperCase() == 'CONTROL'){
446
+ if(rg.length){
447
+ bm.mark=[];
448
+ var i=0,len=rg.length;
449
+ while(i<len){
450
+ bm.mark.push(rg.item(i++));
451
+ }
452
+ }else{
453
+ bm.isCollapsed = true;
454
+ bm.mark = null;
455
+ }
456
+ }else{
457
+ bm.mark = rg.getBookmark();
458
+ }
459
+ }else{
460
+ console.warn("No idea how to store the current selection for this browser!");
461
+ }
462
+ return bm; // Object
463
+ };
464
+
465
+ this.moveToBookmark = function(/*Object*/ bookmark){
466
+ // summary:
467
+ // Moves current selection to a bookmark.
468
+ // bookmark:
469
+ // This should be a returned object from getBookmark().
470
+
471
+ // TODO: merge additional code from Editor._moveToBookmark into this method
472
+
473
+ var mark = bookmark.mark;
474
+ if(mark){
475
+ if(doc.getSelection){
476
+ // W3C Range API (FF, WebKit, Opera, etc)
477
+ var sel = win.getSelection();
478
+ if(sel && sel.removeAllRanges){
479
+ if(mark.pRange){
480
+ var n = mark.node;
481
+ n.selectionStart = mark.start;
482
+ n.selectionEnd = mark.end;
483
+ }else{
484
+ sel.removeAllRanges();
485
+ sel.addRange(mark);
486
+ }
487
+ }else{
488
+ console.warn("No idea how to restore selection for this browser!");
489
+ }
490
+ }else if(doc.selection && mark){
491
+ //'IE' way.
492
+ var rg;
493
+ if(mark.pRange){
494
+ rg = mark.range;
495
+ }else if(lang.isArray(mark)){
496
+ rg = doc.body.createControlRange();
497
+ //rg.addElement does not have call/apply method, so can not call it directly
498
+ //rg is not available in "range.addElement(item)", so can't use that either
499
+ array.forEach(mark, function(n){
500
+ rg.addElement(n);
501
+ });
502
+ }else{
503
+ rg = doc.body.createTextRange();
504
+ rg.moveToBookmark(mark);
505
+ }
506
+ rg.select();
507
+ }
508
+ }
509
+ };
510
+
511
+ this.isCollapsed = function(){
512
+ // summary:
513
+ // Returns true if there is no text selected
514
+ return this.getBookmark().isCollapsed;
515
+ };
516
+ };
517
+
518
+ // singleton on the main window
519
+ var selection = new SelectionManager(window);
520
+
521
+ // hook for editor to use class
522
+ selection.SelectionManager = SelectionManager;
523
+
524
+ return selection;
525
+ });
@@ -0,0 +1,96 @@
1
+ //>>built
2
+ define("dijit/typematic",["dojo/_base/array","dojo/_base/connect","dojo/_base/lang","dojo/on","dojo/sniff","./main"],function(_1,_2,_3,on,_4,_5){
3
+ var _6=(_5.typematic={_fireEventAndReload:function(){
4
+ this._timer=null;
5
+ this._callback(++this._count,this._node,this._evt);
6
+ this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);
7
+ this._timer=setTimeout(_3.hitch(this,"_fireEventAndReload"),this._currentTimeout);
8
+ },trigger:function(_7,_8,_9,_a,_b,_c,_d,_e){
9
+ if(_b!=this._obj){
10
+ this.stop();
11
+ this._initialDelay=_d||500;
12
+ this._subsequentDelay=_c||0.9;
13
+ this._minDelay=_e||10;
14
+ this._obj=_b;
15
+ this._node=_9;
16
+ this._currentTimeout=-1;
17
+ this._count=-1;
18
+ this._callback=_3.hitch(_8,_a);
19
+ this._evt={faux:true};
20
+ for(var _f in _7){
21
+ if(_f!="layerX"&&_f!="layerY"){
22
+ var v=_7[_f];
23
+ if(typeof v!="function"&&typeof v!="undefined"){
24
+ this._evt[_f]=v;
25
+ }
26
+ }
27
+ }
28
+ this._fireEventAndReload();
29
+ }
30
+ },stop:function(){
31
+ if(this._timer){
32
+ clearTimeout(this._timer);
33
+ this._timer=null;
34
+ }
35
+ if(this._obj){
36
+ this._callback(-1,this._node,this._evt);
37
+ this._obj=null;
38
+ }
39
+ },addKeyListener:function(_10,_11,_12,_13,_14,_15,_16){
40
+ var _17="keyCode" in _11?"keydown":"charCode" in _11?"keypress":_2._keypress,_18="keyCode" in _11?"keyCode":"charCode" in _11?"charCode":"charOrCode";
41
+ var _19=[on(_10,_17,_3.hitch(this,function(evt){
42
+ if(evt[_18]==_11[_18]&&(_11.ctrlKey===undefined||_11.ctrlKey==evt.ctrlKey)&&(_11.altKey===undefined||_11.altKey==evt.altKey)&&(_11.metaKey===undefined||_11.metaKey==(evt.metaKey||false))&&(_11.shiftKey===undefined||_11.shiftKey==evt.shiftKey)){
43
+ evt.stopPropagation();
44
+ evt.preventDefault();
45
+ _6.trigger(evt,_12,_10,_13,_11,_14,_15,_16);
46
+ }else{
47
+ if(_6._obj==_11){
48
+ _6.stop();
49
+ }
50
+ }
51
+ })),on(_10,"keyup",_3.hitch(this,function(){
52
+ if(_6._obj==_11){
53
+ _6.stop();
54
+ }
55
+ }))];
56
+ return {remove:function(){
57
+ _1.forEach(_19,function(h){
58
+ h.remove();
59
+ });
60
+ }};
61
+ },addMouseListener:function(_1a,_1b,_1c,_1d,_1e,_1f){
62
+ var _20=[on(_1a,"mousedown",_3.hitch(this,function(evt){
63
+ evt.preventDefault();
64
+ _6.trigger(evt,_1b,_1a,_1c,_1a,_1d,_1e,_1f);
65
+ })),on(_1a,"mouseup",_3.hitch(this,function(evt){
66
+ if(this._obj){
67
+ evt.preventDefault();
68
+ }
69
+ _6.stop();
70
+ })),on(_1a,"mouseout",_3.hitch(this,function(evt){
71
+ if(this._obj){
72
+ evt.preventDefault();
73
+ }
74
+ _6.stop();
75
+ })),on(_1a,"dblclick",_3.hitch(this,function(evt){
76
+ evt.preventDefault();
77
+ if(_4("ie")<9){
78
+ _6.trigger(evt,_1b,_1a,_1c,_1a,_1d,_1e,_1f);
79
+ setTimeout(_3.hitch(this,_6.stop),50);
80
+ }
81
+ }))];
82
+ return {remove:function(){
83
+ _1.forEach(_20,function(h){
84
+ h.remove();
85
+ });
86
+ }};
87
+ },addListener:function(_21,_22,_23,_24,_25,_26,_27,_28){
88
+ var _29=[this.addKeyListener(_22,_23,_24,_25,_26,_27,_28),this.addMouseListener(_21,_24,_25,_26,_27,_28)];
89
+ return {remove:function(){
90
+ _1.forEach(_29,function(h){
91
+ h.remove();
92
+ });
93
+ }};
94
+ }});
95
+ return _6;
96
+ });