@datagrok/helm 2.3.2 → 2.3.3
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 +12 -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 +228 -69
- package/src/package.ts +7 -69
- package/src/tests/findMonomers-tests.ts +2 -1
- package/src/tests/get-monomer-tests.ts +1 -49
- 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,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2004-2017, The JS Foundation All Rights Reserved.
|
|
3
|
+
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
|
4
|
+
see: http://dojotoolkit.org/license for details
|
|
5
|
+
*/
|
|
6
|
+
//>>built
|
|
7
|
+
define("dojo/hccss",["require","./_base/config","./dom-class","./dom-style","./has","./domReady","./_base/window"],function(_1,_2,_3,_4,_5,_6,_7){
|
|
8
|
+
_5.add("highcontrast",function(){
|
|
9
|
+
var _8=_7.doc.createElement("div");
|
|
10
|
+
_8.style.cssText="border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;"+"background-image: url(\""+(_2.blankGif||_1.toUrl("./resources/blank.gif"))+"\");";
|
|
11
|
+
_7.body().appendChild(_8);
|
|
12
|
+
var cs=_4.getComputedStyle(_8),_9=cs.backgroundImage,hc=(cs.borderTopColor==cs.borderRightColor)||(_9&&(_9=="none"||_9=="url(invalid-url:)"));
|
|
13
|
+
if(_5("ie")<=8){
|
|
14
|
+
_8.outerHTML="";
|
|
15
|
+
}else{
|
|
16
|
+
_7.body().removeChild(_8);
|
|
17
|
+
}
|
|
18
|
+
return hc;
|
|
19
|
+
});
|
|
20
|
+
_6(function(){
|
|
21
|
+
if(_5("highcontrast")){
|
|
22
|
+
_3.add(_7.body(),"dj_a11y");
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
return _5;
|
|
26
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
define("dojo/hccss", [
|
|
2
|
+
"require", // require, require.toUrl
|
|
3
|
+
"./_base/config", // config.blankGif
|
|
4
|
+
"./dom-class", // domClass.add
|
|
5
|
+
"./dom-style", // domStyle.getComputedStyle
|
|
6
|
+
"./has",
|
|
7
|
+
"./domReady",
|
|
8
|
+
"./_base/window" // win.body
|
|
9
|
+
], function(require, config, domClass, domStyle, has, domReady, win){
|
|
10
|
+
|
|
11
|
+
// module:
|
|
12
|
+
// dojo/hccss
|
|
13
|
+
|
|
14
|
+
/*=====
|
|
15
|
+
return function(){
|
|
16
|
+
// summary:
|
|
17
|
+
// Test if computer is in high contrast mode (i.e. if browser is not displaying background images).
|
|
18
|
+
// Defines `has("highcontrast")` and sets `dj_a11y` CSS class on `<body>` if machine is in high contrast mode.
|
|
19
|
+
// Returns `has()` method;
|
|
20
|
+
};
|
|
21
|
+
=====*/
|
|
22
|
+
|
|
23
|
+
// Has() test for when background images aren't displayed. Don't call has("highcontrast") before dojo/domReady!.
|
|
24
|
+
has.add("highcontrast", function(){
|
|
25
|
+
// note: if multiple documents, doesn't matter which one we use
|
|
26
|
+
var div = win.doc.createElement("div");
|
|
27
|
+
div.style.cssText = "border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;" +
|
|
28
|
+
"background-image: url(\"" + (config.blankGif || require.toUrl("./resources/blank.gif")) + "\");";
|
|
29
|
+
win.body().appendChild(div);
|
|
30
|
+
|
|
31
|
+
var cs = domStyle.getComputedStyle(div),
|
|
32
|
+
bkImg = cs.backgroundImage,
|
|
33
|
+
hc = (cs.borderTopColor == cs.borderRightColor) ||
|
|
34
|
+
(bkImg && (bkImg == "none" || bkImg == "url(invalid-url:)" ));
|
|
35
|
+
|
|
36
|
+
if(has("ie") <= 8){
|
|
37
|
+
div.outerHTML = ""; // prevent mixed-content warning, see http://support.microsoft.com/kb/925014
|
|
38
|
+
}else{
|
|
39
|
+
win.body().removeChild(div);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return hc;
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
domReady(function(){
|
|
46
|
+
if(has("highcontrast")){
|
|
47
|
+
domClass.add(win.body(), "dj_a11y");
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
return has;
|
|
52
|
+
});
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2004-2017, The JS Foundation All Rights Reserved.
|
|
3
|
+
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
|
4
|
+
see: http://dojotoolkit.org/license for details
|
|
5
|
+
*/
|
|
6
|
+
//>>built
|
|
7
|
+
define("dojo/html",["./_base/kernel","./_base/lang","./_base/array","./_base/declare","./dom","./dom-construct","./parser"],function(_1,_2,_3,_4,_5,_6,_7){
|
|
8
|
+
var _8=0;
|
|
9
|
+
var _9={_secureForInnerHtml:function(_a){
|
|
10
|
+
return _a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");
|
|
11
|
+
},_emptyNode:_6.empty,_setNodeContent:function(_b,_c){
|
|
12
|
+
_6.empty(_b);
|
|
13
|
+
if(_c){
|
|
14
|
+
if(typeof _c=="string"){
|
|
15
|
+
_c=_6.toDom(_c,_b.ownerDocument);
|
|
16
|
+
}
|
|
17
|
+
if(!_c.nodeType&&_2.isArrayLike(_c)){
|
|
18
|
+
for(var _d=_c.length,i=0;i<_c.length;i=_d==_c.length?i+1:0){
|
|
19
|
+
_6.place(_c[i],_b,"last");
|
|
20
|
+
}
|
|
21
|
+
}else{
|
|
22
|
+
_6.place(_c,_b,"last");
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return _b;
|
|
26
|
+
},_ContentSetter:_4("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:_1._scopeName,startup:true,constructor:function(_e,_f){
|
|
27
|
+
_2.mixin(this,_e||{});
|
|
28
|
+
_f=this.node=_5.byId(this.node||_f);
|
|
29
|
+
if(!this.id){
|
|
30
|
+
this.id=["Setter",(_f)?_f.id||_f.tagName:"",_8++].join("_");
|
|
31
|
+
}
|
|
32
|
+
},set:function(_10,_11){
|
|
33
|
+
if(undefined!==_10){
|
|
34
|
+
this.content=_10;
|
|
35
|
+
}
|
|
36
|
+
if(_11){
|
|
37
|
+
this._mixin(_11);
|
|
38
|
+
}
|
|
39
|
+
this.onBegin();
|
|
40
|
+
this.setContent();
|
|
41
|
+
var ret=this.onEnd();
|
|
42
|
+
if(ret&&ret.then){
|
|
43
|
+
return ret;
|
|
44
|
+
}else{
|
|
45
|
+
return this.node;
|
|
46
|
+
}
|
|
47
|
+
},setContent:function(){
|
|
48
|
+
var _12=this.node;
|
|
49
|
+
if(!_12){
|
|
50
|
+
throw new Error(this.declaredClass+": setContent given no node");
|
|
51
|
+
}
|
|
52
|
+
try{
|
|
53
|
+
_12=_9._setNodeContent(_12,this.content);
|
|
54
|
+
}
|
|
55
|
+
catch(e){
|
|
56
|
+
var _13=this.onContentError(e);
|
|
57
|
+
try{
|
|
58
|
+
_12.innerHTML=_13;
|
|
59
|
+
}
|
|
60
|
+
catch(e){
|
|
61
|
+
console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
this.node=_12;
|
|
65
|
+
},empty:function(){
|
|
66
|
+
if(this.parseDeferred){
|
|
67
|
+
if(!this.parseDeferred.isResolved()){
|
|
68
|
+
this.parseDeferred.cancel();
|
|
69
|
+
}
|
|
70
|
+
delete this.parseDeferred;
|
|
71
|
+
}
|
|
72
|
+
if(this.parseResults&&this.parseResults.length){
|
|
73
|
+
_3.forEach(this.parseResults,function(w){
|
|
74
|
+
if(w.destroy){
|
|
75
|
+
w.destroy();
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
delete this.parseResults;
|
|
79
|
+
}
|
|
80
|
+
_6.empty(this.node);
|
|
81
|
+
},onBegin:function(){
|
|
82
|
+
var _14=this.content;
|
|
83
|
+
if(_2.isString(_14)){
|
|
84
|
+
if(this.cleanContent){
|
|
85
|
+
_14=_9._secureForInnerHtml(_14);
|
|
86
|
+
}
|
|
87
|
+
if(this.extractContent){
|
|
88
|
+
var _15=_14.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
|
|
89
|
+
if(_15){
|
|
90
|
+
_14=_15[1];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
this.empty();
|
|
95
|
+
this.content=_14;
|
|
96
|
+
return this.node;
|
|
97
|
+
},onEnd:function(){
|
|
98
|
+
if(this.parseContent){
|
|
99
|
+
this._parse();
|
|
100
|
+
}
|
|
101
|
+
return this.node;
|
|
102
|
+
},tearDown:function(){
|
|
103
|
+
delete this.parseResults;
|
|
104
|
+
delete this.parseDeferred;
|
|
105
|
+
delete this.node;
|
|
106
|
+
delete this.content;
|
|
107
|
+
},onContentError:function(err){
|
|
108
|
+
return "Error occurred setting content: "+err;
|
|
109
|
+
},onExecError:function(err){
|
|
110
|
+
return "Error occurred executing scripts: "+err;
|
|
111
|
+
},_mixin:function(_16){
|
|
112
|
+
var _17={},key;
|
|
113
|
+
for(key in _16){
|
|
114
|
+
if(key in _17){
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
this[key]=_16[key];
|
|
118
|
+
}
|
|
119
|
+
},_parse:function(){
|
|
120
|
+
var _18=this.node;
|
|
121
|
+
try{
|
|
122
|
+
var _19={};
|
|
123
|
+
_3.forEach(["dir","lang","textDir"],function(_1a){
|
|
124
|
+
if(this[_1a]){
|
|
125
|
+
_19[_1a]=this[_1a];
|
|
126
|
+
}
|
|
127
|
+
},this);
|
|
128
|
+
var _1b=this;
|
|
129
|
+
this.parseDeferred=_7.parse({rootNode:_18,noStart:!this.startup,inherited:_19,scope:this.parserScope}).then(function(_1c){
|
|
130
|
+
return _1b.parseResults=_1c;
|
|
131
|
+
},function(e){
|
|
132
|
+
_1b._onError("Content",e,"Error parsing in _ContentSetter#"+_1b.id);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
catch(e){
|
|
136
|
+
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
|
|
137
|
+
}
|
|
138
|
+
},_onError:function(_1d,err,_1e){
|
|
139
|
+
var _1f=this["on"+_1d+"Error"].call(this,err);
|
|
140
|
+
if(_1e){
|
|
141
|
+
console.error(_1e,err);
|
|
142
|
+
}else{
|
|
143
|
+
if(_1f){
|
|
144
|
+
_9._setNodeContent(this.node,_1f,true);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}}),set:function(_20,_21,_22){
|
|
148
|
+
if(undefined==_21){
|
|
149
|
+
console.warn("dojo.html.set: no cont argument provided, using empty string");
|
|
150
|
+
_21="";
|
|
151
|
+
}
|
|
152
|
+
if(!_22){
|
|
153
|
+
return _9._setNodeContent(_20,_21,true);
|
|
154
|
+
}else{
|
|
155
|
+
var op=new _9._ContentSetter(_2.mixin(_22,{content:_21,node:_20}));
|
|
156
|
+
return op.set();
|
|
157
|
+
}
|
|
158
|
+
}};
|
|
159
|
+
_2.setObject("dojo.html",_9);
|
|
160
|
+
return _9;
|
|
161
|
+
});
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
define("dojo/html", ["./_base/kernel", "./_base/lang", "./_base/array", "./_base/declare", "./dom", "./dom-construct", "./parser"],
|
|
2
|
+
function(kernel, lang, darray, declare, dom, domConstruct, parser){
|
|
3
|
+
// module:
|
|
4
|
+
// dojo/html
|
|
5
|
+
|
|
6
|
+
// the parser might be needed..
|
|
7
|
+
|
|
8
|
+
// idCounter is incremented with each instantiation to allow assignment of a unique id for tracking, logging purposes
|
|
9
|
+
var idCounter = 0;
|
|
10
|
+
|
|
11
|
+
var html = {
|
|
12
|
+
// summary:
|
|
13
|
+
// TODOC
|
|
14
|
+
|
|
15
|
+
_secureForInnerHtml: function(/*String*/ cont){
|
|
16
|
+
// summary:
|
|
17
|
+
// removes !DOCTYPE and title elements from the html string.
|
|
18
|
+
//
|
|
19
|
+
// khtml is picky about dom faults, you can't attach a style or `<title>` node as child of body
|
|
20
|
+
// must go into head, so we need to cut out those tags
|
|
21
|
+
// cont:
|
|
22
|
+
// An html string for insertion into the dom
|
|
23
|
+
//
|
|
24
|
+
return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig, ""); // String
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
// Deprecated, should use dojo/dom-constuct.empty() directly, remove in 2.0.
|
|
28
|
+
_emptyNode: domConstruct.empty,
|
|
29
|
+
|
|
30
|
+
_setNodeContent: function(/*DomNode*/ node, /*String|DomNode|NodeList*/ cont){
|
|
31
|
+
// summary:
|
|
32
|
+
// inserts the given content into the given node
|
|
33
|
+
// node:
|
|
34
|
+
// the parent element
|
|
35
|
+
// content:
|
|
36
|
+
// the content to be set on the parent element.
|
|
37
|
+
// This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes
|
|
38
|
+
|
|
39
|
+
// always empty
|
|
40
|
+
domConstruct.empty(node);
|
|
41
|
+
|
|
42
|
+
if(cont){
|
|
43
|
+
if(typeof cont == "string"){
|
|
44
|
+
cont = domConstruct.toDom(cont, node.ownerDocument);
|
|
45
|
+
}
|
|
46
|
+
if(!cont.nodeType && lang.isArrayLike(cont)){
|
|
47
|
+
// handle as enumerable, but it may shrink as we enumerate it
|
|
48
|
+
for(var startlen=cont.length, i=0; i<cont.length; i=startlen==cont.length ? i+1 : 0){
|
|
49
|
+
domConstruct.place( cont[i], node, "last");
|
|
50
|
+
}
|
|
51
|
+
}else{
|
|
52
|
+
// pass nodes, documentFragments and unknowns through to dojo.place
|
|
53
|
+
domConstruct.place(cont, node, "last");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// return DomNode
|
|
58
|
+
return node;
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
// we wrap up the content-setting operation in a object
|
|
62
|
+
_ContentSetter: declare("dojo.html._ContentSetter", null, {
|
|
63
|
+
// node: DomNode|String
|
|
64
|
+
// An node which will be the parent element that we set content into
|
|
65
|
+
node: "",
|
|
66
|
+
|
|
67
|
+
// content: String|DomNode|DomNode[]
|
|
68
|
+
// The content to be placed in the node. Can be an HTML string, a node reference, or a enumerable list of nodes
|
|
69
|
+
content: "",
|
|
70
|
+
|
|
71
|
+
// id: String?
|
|
72
|
+
// Usually only used internally, and auto-generated with each instance
|
|
73
|
+
id: "",
|
|
74
|
+
|
|
75
|
+
// cleanContent: Boolean
|
|
76
|
+
// Should the content be treated as a full html document,
|
|
77
|
+
// and the real content stripped of <html>, <body> wrapper before injection
|
|
78
|
+
cleanContent: false,
|
|
79
|
+
|
|
80
|
+
// extractContent: Boolean
|
|
81
|
+
// Should the content be treated as a full html document,
|
|
82
|
+
// and the real content stripped of `<html> <body>` wrapper before injection
|
|
83
|
+
extractContent: false,
|
|
84
|
+
|
|
85
|
+
// parseContent: Boolean
|
|
86
|
+
// Should the node by passed to the parser after the new content is set
|
|
87
|
+
parseContent: false,
|
|
88
|
+
|
|
89
|
+
// parserScope: String
|
|
90
|
+
// Flag passed to parser. Root for attribute names to search for. If scopeName is dojo,
|
|
91
|
+
// will search for data-dojo-type (or dojoType). For backwards compatibility
|
|
92
|
+
// reasons defaults to dojo._scopeName (which is "dojo" except when
|
|
93
|
+
// multi-version support is used, when it will be something like dojo16, dojo20, etc.)
|
|
94
|
+
parserScope: kernel._scopeName,
|
|
95
|
+
|
|
96
|
+
// startup: Boolean
|
|
97
|
+
// Start the child widgets after parsing them. Only obeyed if parseContent is true.
|
|
98
|
+
startup: true,
|
|
99
|
+
|
|
100
|
+
// lifecycle methods
|
|
101
|
+
constructor: function(/*Object*/ params, /*String|DomNode*/ node){
|
|
102
|
+
// summary:
|
|
103
|
+
// Provides a configurable, extensible object to wrap the setting on content on a node
|
|
104
|
+
// call the set() method to actually set the content..
|
|
105
|
+
|
|
106
|
+
// the original params are mixed directly into the instance "this"
|
|
107
|
+
lang.mixin(this, params || {});
|
|
108
|
+
|
|
109
|
+
// give precedence to params.node vs. the node argument
|
|
110
|
+
// and ensure its a node, not an id string
|
|
111
|
+
node = this.node = dom.byId( this.node || node );
|
|
112
|
+
|
|
113
|
+
if(!this.id){
|
|
114
|
+
this.id = [
|
|
115
|
+
"Setter",
|
|
116
|
+
(node) ? node.id || node.tagName : "",
|
|
117
|
+
idCounter++
|
|
118
|
+
].join("_");
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
set: function(/* String|DomNode|NodeList? */ cont, /*Object?*/ params){
|
|
122
|
+
// summary:
|
|
123
|
+
// front-end to the set-content sequence
|
|
124
|
+
// cont:
|
|
125
|
+
// An html string, node or enumerable list of nodes for insertion into the dom
|
|
126
|
+
// If not provided, the object's content property will be used
|
|
127
|
+
if(undefined !== cont){
|
|
128
|
+
this.content = cont;
|
|
129
|
+
}
|
|
130
|
+
// in the re-use scenario, set needs to be able to mixin new configuration
|
|
131
|
+
if(params){
|
|
132
|
+
this._mixin(params);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
this.onBegin();
|
|
136
|
+
this.setContent();
|
|
137
|
+
|
|
138
|
+
var ret = this.onEnd();
|
|
139
|
+
|
|
140
|
+
if(ret && ret.then){
|
|
141
|
+
// Make dojox/html/_ContentSetter.set() return a Promise that resolves when load and parse complete.
|
|
142
|
+
return ret;
|
|
143
|
+
}else{
|
|
144
|
+
// Vanilla dojo/html._ContentSetter.set() returns a DOMNode for back compat. For 2.0, switch it to
|
|
145
|
+
// return a Deferred like above.
|
|
146
|
+
return this.node;
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
setContent: function(){
|
|
151
|
+
// summary:
|
|
152
|
+
// sets the content on the node
|
|
153
|
+
|
|
154
|
+
var node = this.node;
|
|
155
|
+
if(!node){
|
|
156
|
+
// can't proceed
|
|
157
|
+
throw new Error(this.declaredClass + ": setContent given no node");
|
|
158
|
+
}
|
|
159
|
+
try{
|
|
160
|
+
node = html._setNodeContent(node, this.content);
|
|
161
|
+
}catch(e){
|
|
162
|
+
// check if a domfault occurs when we are appending this.errorMessage
|
|
163
|
+
// like for instance if domNode is a UL and we try append a DIV
|
|
164
|
+
|
|
165
|
+
// FIXME: need to allow the user to provide a content error message string
|
|
166
|
+
var errMess = this.onContentError(e);
|
|
167
|
+
try{
|
|
168
|
+
node.innerHTML = errMess;
|
|
169
|
+
}catch(e){
|
|
170
|
+
console.error('Fatal ' + this.declaredClass + '.setContent could not change content due to '+e.message, e);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
// always put back the node for the next method
|
|
174
|
+
this.node = node; // DomNode
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
empty: function(){
|
|
178
|
+
// summary:
|
|
179
|
+
// cleanly empty out existing content
|
|
180
|
+
|
|
181
|
+
// If there is a parse in progress, cancel it.
|
|
182
|
+
if(this.parseDeferred){
|
|
183
|
+
if(!this.parseDeferred.isResolved()){
|
|
184
|
+
this.parseDeferred.cancel();
|
|
185
|
+
}
|
|
186
|
+
delete this.parseDeferred;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// destroy any widgets from a previous run
|
|
190
|
+
// NOTE: if you don't want this you'll need to empty
|
|
191
|
+
// the parseResults array property yourself to avoid bad things happening
|
|
192
|
+
if(this.parseResults && this.parseResults.length){
|
|
193
|
+
darray.forEach(this.parseResults, function(w){
|
|
194
|
+
if(w.destroy){
|
|
195
|
+
w.destroy();
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
delete this.parseResults;
|
|
199
|
+
}
|
|
200
|
+
// this is fast, but if you know its already empty or safe, you could
|
|
201
|
+
// override empty to skip this step
|
|
202
|
+
domConstruct.empty(this.node);
|
|
203
|
+
},
|
|
204
|
+
|
|
205
|
+
onBegin: function(){
|
|
206
|
+
// summary:
|
|
207
|
+
// Called after instantiation, but before set();
|
|
208
|
+
// It allows modification of any of the object properties -
|
|
209
|
+
// including the node and content provided - before the set operation actually takes place
|
|
210
|
+
// This default implementation checks for cleanContent and extractContent flags to
|
|
211
|
+
// optionally pre-process html string content
|
|
212
|
+
var cont = this.content;
|
|
213
|
+
|
|
214
|
+
if(lang.isString(cont)){
|
|
215
|
+
if(this.cleanContent){
|
|
216
|
+
cont = html._secureForInnerHtml(cont);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if(this.extractContent){
|
|
220
|
+
var match = cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
|
|
221
|
+
if(match){ cont = match[1]; }
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// clean out the node and any cruft associated with it - like widgets
|
|
226
|
+
this.empty();
|
|
227
|
+
|
|
228
|
+
this.content = cont;
|
|
229
|
+
return this.node; // DomNode
|
|
230
|
+
},
|
|
231
|
+
|
|
232
|
+
onEnd: function(){
|
|
233
|
+
// summary:
|
|
234
|
+
// Called after set(), when the new content has been pushed into the node
|
|
235
|
+
// It provides an opportunity for post-processing before handing back the node to the caller
|
|
236
|
+
// This default implementation checks a parseContent flag to optionally run the dojo parser over the new content
|
|
237
|
+
if(this.parseContent){
|
|
238
|
+
// populates this.parseResults and this.parseDeferred if you need those..
|
|
239
|
+
this._parse();
|
|
240
|
+
}
|
|
241
|
+
return this.node; // DomNode
|
|
242
|
+
// TODO: for 2.0 return a Promise indicating that the parse completed.
|
|
243
|
+
},
|
|
244
|
+
|
|
245
|
+
tearDown: function(){
|
|
246
|
+
// summary:
|
|
247
|
+
// manually reset the Setter instance if its being re-used for example for another set()
|
|
248
|
+
// description:
|
|
249
|
+
// tearDown() is not called automatically.
|
|
250
|
+
// In normal use, the Setter instance properties are simply allowed to fall out of scope
|
|
251
|
+
// but the tearDown method can be called to explicitly reset this instance.
|
|
252
|
+
delete this.parseResults;
|
|
253
|
+
delete this.parseDeferred;
|
|
254
|
+
delete this.node;
|
|
255
|
+
delete this.content;
|
|
256
|
+
},
|
|
257
|
+
|
|
258
|
+
onContentError: function(err){
|
|
259
|
+
return "Error occurred setting content: " + err;
|
|
260
|
+
},
|
|
261
|
+
|
|
262
|
+
onExecError: function(err){
|
|
263
|
+
return "Error occurred executing scripts: " + err;
|
|
264
|
+
},
|
|
265
|
+
|
|
266
|
+
_mixin: function(params){
|
|
267
|
+
// mix properties/methods into the instance
|
|
268
|
+
// TODO: the intention with tearDown is to put the Setter's state
|
|
269
|
+
// back to that of the original constructor (vs. deleting/resetting everything regardless of ctor params)
|
|
270
|
+
// so we could do something here to move the original properties aside for later restoration
|
|
271
|
+
var empty = {}, key;
|
|
272
|
+
for(key in params){
|
|
273
|
+
if(key in empty){ continue; }
|
|
274
|
+
// TODO: here's our opportunity to mask the properties we don't consider configurable/overridable
|
|
275
|
+
// .. but history shows we'll almost always guess wrong
|
|
276
|
+
this[key] = params[key];
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
_parse: function(){
|
|
280
|
+
// summary:
|
|
281
|
+
// runs the dojo parser over the node contents, storing any results in this.parseResults
|
|
282
|
+
// and the parse promise in this.parseDeferred
|
|
283
|
+
// Any errors resulting from parsing are passed to _onError for handling
|
|
284
|
+
|
|
285
|
+
var rootNode = this.node;
|
|
286
|
+
try{
|
|
287
|
+
// store the results (widgets, whatever) for potential retrieval
|
|
288
|
+
var inherited = {};
|
|
289
|
+
darray.forEach(["dir", "lang", "textDir"], function(name){
|
|
290
|
+
if(this[name]){
|
|
291
|
+
inherited[name] = this[name];
|
|
292
|
+
}
|
|
293
|
+
}, this);
|
|
294
|
+
var self = this;
|
|
295
|
+
this.parseDeferred = parser.parse({
|
|
296
|
+
rootNode: rootNode,
|
|
297
|
+
noStart: !this.startup,
|
|
298
|
+
inherited: inherited,
|
|
299
|
+
scope: this.parserScope
|
|
300
|
+
}).then(function(results){
|
|
301
|
+
return self.parseResults = results;
|
|
302
|
+
}, function(e){
|
|
303
|
+
self._onError('Content', e, "Error parsing in _ContentSetter#" + self.id);
|
|
304
|
+
});
|
|
305
|
+
}catch(e){
|
|
306
|
+
this._onError('Content', e, "Error parsing in _ContentSetter#" + this.id);
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
|
|
310
|
+
_onError: function(type, err, consoleText){
|
|
311
|
+
// summary:
|
|
312
|
+
// shows user the string that is returned by on[type]Error
|
|
313
|
+
// override/implement on[type]Error and return your own string to customize
|
|
314
|
+
var errText = this['on' + type + 'Error'].call(this, err);
|
|
315
|
+
if(consoleText){
|
|
316
|
+
console.error(consoleText, err);
|
|
317
|
+
}else if(errText){ // a empty string won't change current content
|
|
318
|
+
html._setNodeContent(this.node, errText, true);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}), // end declare()
|
|
322
|
+
|
|
323
|
+
set: function(/*DomNode*/ node, /*String|DomNode|NodeList*/ cont, /*Object?*/ params){
|
|
324
|
+
// summary:
|
|
325
|
+
// inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only")
|
|
326
|
+
// may be a better choice for simple HTML insertion.
|
|
327
|
+
// description:
|
|
328
|
+
// Unless you need to use the params capabilities of this method, you should use
|
|
329
|
+
// dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting
|
|
330
|
+
// an HTML string into the DOM, but it only handles inserting an HTML string as DOM
|
|
331
|
+
// elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions
|
|
332
|
+
// dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting
|
|
333
|
+
// an HTML string into the DOM, but it only handles inserting an HTML string as DOM
|
|
334
|
+
// elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions
|
|
335
|
+
// or the other capabilities as defined by the params object for this method.
|
|
336
|
+
// node:
|
|
337
|
+
// the parent element that will receive the content
|
|
338
|
+
// cont:
|
|
339
|
+
// the content to be set on the parent element.
|
|
340
|
+
// This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes
|
|
341
|
+
// params:
|
|
342
|
+
// Optional flags/properties to configure the content-setting. See dojo/html/_ContentSetter
|
|
343
|
+
// example:
|
|
344
|
+
// A safe string/node/nodelist content replacement/injection with hooks for extension
|
|
345
|
+
// Example Usage:
|
|
346
|
+
// | html.set(node, "some string");
|
|
347
|
+
// | html.set(node, contentNode, {options});
|
|
348
|
+
// | html.set(node, myNode.childNodes, {options});
|
|
349
|
+
if(undefined == cont){
|
|
350
|
+
console.warn("dojo.html.set: no cont argument provided, using empty string");
|
|
351
|
+
cont = "";
|
|
352
|
+
}
|
|
353
|
+
if(!params){
|
|
354
|
+
// simple and fast
|
|
355
|
+
return html._setNodeContent(node, cont, true);
|
|
356
|
+
}else{
|
|
357
|
+
// more options but slower
|
|
358
|
+
// note the arguments are reversed in order, to match the convention for instantiation via the parser
|
|
359
|
+
var op = new html._ContentSetter(lang.mixin(
|
|
360
|
+
params,
|
|
361
|
+
{ content: cont, node: node }
|
|
362
|
+
));
|
|
363
|
+
return op.set();
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
lang.setObject("dojo.html", html);
|
|
368
|
+
|
|
369
|
+
return html;
|
|
370
|
+
});
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2004-2017, The JS Foundation All Rights Reserved.
|
|
3
|
+
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
|
4
|
+
see: http://dojotoolkit.org/license for details
|
|
5
|
+
*/
|
|
6
|
+
//>>built
|
|
7
|
+
define("dojo/io/iframe",["../_base/config","../_base/json","../_base/kernel","../_base/lang","../_base/xhr","../sniff","../_base/window","../dom","../dom-construct","../query","require","../aspect","../request/iframe"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d){
|
|
8
|
+
_3.deprecated("dojo/io/iframe","Use dojo/request/iframe.","2.0");
|
|
9
|
+
var _e=_d._iframeName;
|
|
10
|
+
_e=_e.substring(0,_e.lastIndexOf("_"));
|
|
11
|
+
var _f=_4.delegate(_d,{create:function(){
|
|
12
|
+
return _f._frame=_d.create.apply(_d,arguments);
|
|
13
|
+
},get:null,post:null,send:function(_10){
|
|
14
|
+
var _11;
|
|
15
|
+
var dfd=_5._ioSetArgs(_10,function(dfd){
|
|
16
|
+
_11&&_11.cancel();
|
|
17
|
+
},function(dfd){
|
|
18
|
+
var _12=null,_13=dfd.ioArgs;
|
|
19
|
+
try{
|
|
20
|
+
var _14=_13.handleAs;
|
|
21
|
+
if(_14==="xml"||_14==="html"){
|
|
22
|
+
_12=_11.response.data;
|
|
23
|
+
}else{
|
|
24
|
+
_12=_11.response.text;
|
|
25
|
+
if(_14==="json"){
|
|
26
|
+
_12=_2.fromJson(_12);
|
|
27
|
+
}else{
|
|
28
|
+
if(_14==="javascript"){
|
|
29
|
+
_12=_3.eval(_12);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch(e){
|
|
35
|
+
_12=e;
|
|
36
|
+
}
|
|
37
|
+
return _12;
|
|
38
|
+
},function(_15,dfd){
|
|
39
|
+
dfd.ioArgs._hasError=true;
|
|
40
|
+
return _15;
|
|
41
|
+
});
|
|
42
|
+
var _16=dfd.ioArgs;
|
|
43
|
+
var _17="GET",_18=_8.byId(_10.form);
|
|
44
|
+
if(_10.method&&_10.method.toUpperCase()==="POST"&&_18){
|
|
45
|
+
_17="POST";
|
|
46
|
+
}
|
|
47
|
+
var _19={method:_17,handleAs:_10.handleAs==="json"||_10.handleAs==="javascript"?"text":_10.handleAs,form:_10.form,query:_18?null:_10.content,data:_18?_10.content:null,timeout:_10.timeout,ioArgs:_16};
|
|
48
|
+
if(_19.method){
|
|
49
|
+
_19.method=_19.method.toUpperCase();
|
|
50
|
+
}
|
|
51
|
+
if(_1.ioPublish&&_3.publish&&_16.args.ioPublish!==false){
|
|
52
|
+
var _1a=_c.after(_d,"_notifyStart",function(_1b){
|
|
53
|
+
if(_1b.options.ioArgs===_16){
|
|
54
|
+
_1a.remove();
|
|
55
|
+
_5._ioNotifyStart(dfd);
|
|
56
|
+
}
|
|
57
|
+
},true);
|
|
58
|
+
}
|
|
59
|
+
_11=_d(_16.url,_19,true);
|
|
60
|
+
_16._callNext=_11._callNext;
|
|
61
|
+
_11.then(function(){
|
|
62
|
+
dfd.resolve(dfd);
|
|
63
|
+
}).otherwise(function(_1c){
|
|
64
|
+
dfd.ioArgs.error=_1c;
|
|
65
|
+
dfd.reject(_1c);
|
|
66
|
+
});
|
|
67
|
+
return dfd;
|
|
68
|
+
},_iframeOnload:_7.global[_e+"_onload"]});
|
|
69
|
+
_4.setObject("dojo.io.iframe",_f);
|
|
70
|
+
return _f;
|
|
71
|
+
});
|