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