@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,232 @@
|
|
|
1
|
+
define("dojo/colors", ["./_base/kernel", "./_base/lang", "./_base/Color", "./_base/array"], function(dojo, lang, Color, ArrayUtil){
|
|
2
|
+
// module:
|
|
3
|
+
// dojo/colors
|
|
4
|
+
|
|
5
|
+
/*=====
|
|
6
|
+
return {
|
|
7
|
+
// summary:
|
|
8
|
+
// Color utilities, extending Base dojo.Color
|
|
9
|
+
};
|
|
10
|
+
=====*/
|
|
11
|
+
|
|
12
|
+
var ColorExt = {};
|
|
13
|
+
lang.setObject("dojo.colors", ColorExt);
|
|
14
|
+
|
|
15
|
+
//TODO: this module appears to break naming conventions
|
|
16
|
+
|
|
17
|
+
// this is a standard conversion prescribed by the CSS3 Color Module
|
|
18
|
+
var hue2rgb = function(m1, m2, h){
|
|
19
|
+
if(h < 0){ ++h; }
|
|
20
|
+
if(h > 1){ --h; }
|
|
21
|
+
var h6 = 6 * h;
|
|
22
|
+
if(h6 < 1){ return m1 + (m2 - m1) * h6; }
|
|
23
|
+
if(2 * h < 1){ return m2; }
|
|
24
|
+
if(3 * h < 2){ return m1 + (m2 - m1) * (2 / 3 - h) * 6; }
|
|
25
|
+
return m1;
|
|
26
|
+
};
|
|
27
|
+
// Override base Color.fromRgb with the impl in this module
|
|
28
|
+
dojo.colorFromRgb = Color.fromRgb = function(/*String*/ color, /*dojo/_base/Color?*/ obj){
|
|
29
|
+
// summary:
|
|
30
|
+
// get rgb(a) array from css-style color declarations
|
|
31
|
+
// description:
|
|
32
|
+
// this function can handle all 4 CSS3 Color Module formats: rgb,
|
|
33
|
+
// rgba, hsl, hsla, including rgb(a) with percentage values.
|
|
34
|
+
var m = color.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);
|
|
35
|
+
if(m){
|
|
36
|
+
var c = m[2].split(/\s*,\s*/), l = c.length, t = m[1], a;
|
|
37
|
+
if((t == "rgb" && l == 3) || (t == "rgba" && l == 4)){
|
|
38
|
+
var r = c[0];
|
|
39
|
+
if(r.charAt(r.length - 1) == "%"){
|
|
40
|
+
// 3 rgb percentage values
|
|
41
|
+
a = ArrayUtil.map(c, function(x){
|
|
42
|
+
return parseFloat(x) * 2.56;
|
|
43
|
+
});
|
|
44
|
+
if(l == 4){ a[3] = c[3]; }
|
|
45
|
+
return Color.fromArray(a, obj); // dojo/_base/Color
|
|
46
|
+
}
|
|
47
|
+
return Color.fromArray(c, obj); // dojo/_base/Color
|
|
48
|
+
}
|
|
49
|
+
if((t == "hsl" && l == 3) || (t == "hsla" && l == 4)){
|
|
50
|
+
// normalize hsl values
|
|
51
|
+
var H = ((parseFloat(c[0]) % 360) + 360) % 360 / 360,
|
|
52
|
+
S = parseFloat(c[1]) / 100,
|
|
53
|
+
L = parseFloat(c[2]) / 100,
|
|
54
|
+
// calculate rgb according to the algorithm
|
|
55
|
+
// recommended by the CSS3 Color Module
|
|
56
|
+
m2 = L <= 0.5 ? L * (S + 1) : L + S - L * S,
|
|
57
|
+
m1 = 2 * L - m2;
|
|
58
|
+
a = [
|
|
59
|
+
hue2rgb(m1, m2, H + 1 / 3) * 256,
|
|
60
|
+
hue2rgb(m1, m2, H) * 256,
|
|
61
|
+
hue2rgb(m1, m2, H - 1 / 3) * 256,
|
|
62
|
+
1
|
|
63
|
+
];
|
|
64
|
+
if(l == 4){ a[3] = c[3]; }
|
|
65
|
+
return Color.fromArray(a, obj); // dojo/_base/Color
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return null; // dojo/_base/Color
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
var confine = function(c, low, high){
|
|
72
|
+
// summary:
|
|
73
|
+
// sanitize a color component by making sure it is a number,
|
|
74
|
+
// and clamping it to valid values
|
|
75
|
+
c = Number(c);
|
|
76
|
+
return isNaN(c) ? high : c < low ? low : c > high ? high : c; // Number
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
Color.prototype.sanitize = function(){
|
|
80
|
+
// summary:
|
|
81
|
+
// makes sure that the object has correct attributes
|
|
82
|
+
var t = this;
|
|
83
|
+
t.r = Math.round(confine(t.r, 0, 255));
|
|
84
|
+
t.g = Math.round(confine(t.g, 0, 255));
|
|
85
|
+
t.b = Math.round(confine(t.b, 0, 255));
|
|
86
|
+
t.a = confine(t.a, 0, 1);
|
|
87
|
+
return this; // dojo/_base/Color
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
ColorExt.makeGrey = Color.makeGrey = function(/*Number*/ g, /*Number?*/ a){
|
|
91
|
+
// summary:
|
|
92
|
+
// creates a greyscale color with an optional alpha
|
|
93
|
+
return Color.fromArray([g, g, g, a]); // dojo/_base/Color
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// mixin all CSS3 named colors not already in _base, along with SVG 1.0 variant spellings
|
|
97
|
+
lang.mixin(Color.named, {
|
|
98
|
+
"aliceblue": [240,248,255],
|
|
99
|
+
"antiquewhite": [250,235,215],
|
|
100
|
+
"aquamarine": [127,255,212],
|
|
101
|
+
"azure": [240,255,255],
|
|
102
|
+
"beige": [245,245,220],
|
|
103
|
+
"bisque": [255,228,196],
|
|
104
|
+
"blanchedalmond": [255,235,205],
|
|
105
|
+
"blueviolet": [138,43,226],
|
|
106
|
+
"brown": [165,42,42],
|
|
107
|
+
"burlywood": [222,184,135],
|
|
108
|
+
"cadetblue": [95,158,160],
|
|
109
|
+
"chartreuse": [127,255,0],
|
|
110
|
+
"chocolate": [210,105,30],
|
|
111
|
+
"coral": [255,127,80],
|
|
112
|
+
"cornflowerblue": [100,149,237],
|
|
113
|
+
"cornsilk": [255,248,220],
|
|
114
|
+
"crimson": [220,20,60],
|
|
115
|
+
"cyan": [0,255,255],
|
|
116
|
+
"darkblue": [0,0,139],
|
|
117
|
+
"darkcyan": [0,139,139],
|
|
118
|
+
"darkgoldenrod": [184,134,11],
|
|
119
|
+
"darkgray": [169,169,169],
|
|
120
|
+
"darkgreen": [0,100,0],
|
|
121
|
+
"darkgrey": [169,169,169],
|
|
122
|
+
"darkkhaki": [189,183,107],
|
|
123
|
+
"darkmagenta": [139,0,139],
|
|
124
|
+
"darkolivegreen": [85,107,47],
|
|
125
|
+
"darkorange": [255,140,0],
|
|
126
|
+
"darkorchid": [153,50,204],
|
|
127
|
+
"darkred": [139,0,0],
|
|
128
|
+
"darksalmon": [233,150,122],
|
|
129
|
+
"darkseagreen": [143,188,143],
|
|
130
|
+
"darkslateblue": [72,61,139],
|
|
131
|
+
"darkslategray": [47,79,79],
|
|
132
|
+
"darkslategrey": [47,79,79],
|
|
133
|
+
"darkturquoise": [0,206,209],
|
|
134
|
+
"darkviolet": [148,0,211],
|
|
135
|
+
"deeppink": [255,20,147],
|
|
136
|
+
"deepskyblue": [0,191,255],
|
|
137
|
+
"dimgray": [105,105,105],
|
|
138
|
+
"dimgrey": [105,105,105],
|
|
139
|
+
"dodgerblue": [30,144,255],
|
|
140
|
+
"firebrick": [178,34,34],
|
|
141
|
+
"floralwhite": [255,250,240],
|
|
142
|
+
"forestgreen": [34,139,34],
|
|
143
|
+
"gainsboro": [220,220,220],
|
|
144
|
+
"ghostwhite": [248,248,255],
|
|
145
|
+
"gold": [255,215,0],
|
|
146
|
+
"goldenrod": [218,165,32],
|
|
147
|
+
"greenyellow": [173,255,47],
|
|
148
|
+
"grey": [128,128,128],
|
|
149
|
+
"honeydew": [240,255,240],
|
|
150
|
+
"hotpink": [255,105,180],
|
|
151
|
+
"indianred": [205,92,92],
|
|
152
|
+
"indigo": [75,0,130],
|
|
153
|
+
"ivory": [255,255,240],
|
|
154
|
+
"khaki": [240,230,140],
|
|
155
|
+
"lavender": [230,230,250],
|
|
156
|
+
"lavenderblush": [255,240,245],
|
|
157
|
+
"lawngreen": [124,252,0],
|
|
158
|
+
"lemonchiffon": [255,250,205],
|
|
159
|
+
"lightblue": [173,216,230],
|
|
160
|
+
"lightcoral": [240,128,128],
|
|
161
|
+
"lightcyan": [224,255,255],
|
|
162
|
+
"lightgoldenrodyellow": [250,250,210],
|
|
163
|
+
"lightgray": [211,211,211],
|
|
164
|
+
"lightgreen": [144,238,144],
|
|
165
|
+
"lightgrey": [211,211,211],
|
|
166
|
+
"lightpink": [255,182,193],
|
|
167
|
+
"lightsalmon": [255,160,122],
|
|
168
|
+
"lightseagreen": [32,178,170],
|
|
169
|
+
"lightskyblue": [135,206,250],
|
|
170
|
+
"lightslategray": [119,136,153],
|
|
171
|
+
"lightslategrey": [119,136,153],
|
|
172
|
+
"lightsteelblue": [176,196,222],
|
|
173
|
+
"lightyellow": [255,255,224],
|
|
174
|
+
"limegreen": [50,205,50],
|
|
175
|
+
"linen": [250,240,230],
|
|
176
|
+
"magenta": [255,0,255],
|
|
177
|
+
"mediumaquamarine": [102,205,170],
|
|
178
|
+
"mediumblue": [0,0,205],
|
|
179
|
+
"mediumorchid": [186,85,211],
|
|
180
|
+
"mediumpurple": [147,112,219],
|
|
181
|
+
"mediumseagreen": [60,179,113],
|
|
182
|
+
"mediumslateblue": [123,104,238],
|
|
183
|
+
"mediumspringgreen": [0,250,154],
|
|
184
|
+
"mediumturquoise": [72,209,204],
|
|
185
|
+
"mediumvioletred": [199,21,133],
|
|
186
|
+
"midnightblue": [25,25,112],
|
|
187
|
+
"mintcream": [245,255,250],
|
|
188
|
+
"mistyrose": [255,228,225],
|
|
189
|
+
"moccasin": [255,228,181],
|
|
190
|
+
"navajowhite": [255,222,173],
|
|
191
|
+
"oldlace": [253,245,230],
|
|
192
|
+
"olivedrab": [107,142,35],
|
|
193
|
+
"orange": [255,165,0],
|
|
194
|
+
"orangered": [255,69,0],
|
|
195
|
+
"orchid": [218,112,214],
|
|
196
|
+
"palegoldenrod": [238,232,170],
|
|
197
|
+
"palegreen": [152,251,152],
|
|
198
|
+
"paleturquoise": [175,238,238],
|
|
199
|
+
"palevioletred": [219,112,147],
|
|
200
|
+
"papayawhip": [255,239,213],
|
|
201
|
+
"peachpuff": [255,218,185],
|
|
202
|
+
"peru": [205,133,63],
|
|
203
|
+
"pink": [255,192,203],
|
|
204
|
+
"plum": [221,160,221],
|
|
205
|
+
"powderblue": [176,224,230],
|
|
206
|
+
"rosybrown": [188,143,143],
|
|
207
|
+
"royalblue": [65,105,225],
|
|
208
|
+
"saddlebrown": [139,69,19],
|
|
209
|
+
"salmon": [250,128,114],
|
|
210
|
+
"sandybrown": [244,164,96],
|
|
211
|
+
"seagreen": [46,139,87],
|
|
212
|
+
"seashell": [255,245,238],
|
|
213
|
+
"sienna": [160,82,45],
|
|
214
|
+
"skyblue": [135,206,235],
|
|
215
|
+
"slateblue": [106,90,205],
|
|
216
|
+
"slategray": [112,128,144],
|
|
217
|
+
"slategrey": [112,128,144],
|
|
218
|
+
"snow": [255,250,250],
|
|
219
|
+
"springgreen": [0,255,127],
|
|
220
|
+
"steelblue": [70,130,180],
|
|
221
|
+
"tan": [210,180,140],
|
|
222
|
+
"thistle": [216,191,216],
|
|
223
|
+
"tomato": [255,99,71],
|
|
224
|
+
"turquoise": [64,224,208],
|
|
225
|
+
"violet": [238,130,238],
|
|
226
|
+
"wheat": [245,222,179],
|
|
227
|
+
"whitesmoke": [245,245,245],
|
|
228
|
+
"yellowgreen": [154,205,50]
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
return Color; // TODO: return ColorExt, not Color
|
|
232
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
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/cookie",["./_base/kernel","./regexp"],function(_1,_2){
|
|
8
|
+
_1.cookie=function(_3,_4,_5){
|
|
9
|
+
var c=document.cookie,_6;
|
|
10
|
+
if(arguments.length==1){
|
|
11
|
+
var _7=c.match(new RegExp("(?:^|; )"+_2.escapeString(_3)+"=([^;]*)"));
|
|
12
|
+
_6=_7?decodeURIComponent(_7[1]):undefined;
|
|
13
|
+
}else{
|
|
14
|
+
_5=_5||{};
|
|
15
|
+
var _8=_5.expires;
|
|
16
|
+
if(typeof _8=="number"){
|
|
17
|
+
var d=new Date();
|
|
18
|
+
d.setTime(d.getTime()+_8*24*60*60*1000);
|
|
19
|
+
_8=_5.expires=d;
|
|
20
|
+
}
|
|
21
|
+
if(_8&&_8.toUTCString){
|
|
22
|
+
_5.expires=_8.toUTCString();
|
|
23
|
+
}
|
|
24
|
+
_4=encodeURIComponent(_4);
|
|
25
|
+
var _9=_3+"="+_4,_a;
|
|
26
|
+
for(_a in _5){
|
|
27
|
+
_9+="; "+_a;
|
|
28
|
+
var _b=_5[_a];
|
|
29
|
+
if(_b!==true){
|
|
30
|
+
_9+="="+_b;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
document.cookie=_9;
|
|
34
|
+
}
|
|
35
|
+
return _6;
|
|
36
|
+
};
|
|
37
|
+
_1.cookie.isSupported=function(){
|
|
38
|
+
if(!("cookieEnabled" in navigator)){
|
|
39
|
+
this("__djCookieTest__","CookiesAllowed");
|
|
40
|
+
navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";
|
|
41
|
+
if(navigator.cookieEnabled){
|
|
42
|
+
this("__djCookieTest__","",{expires:-1});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return navigator.cookieEnabled;
|
|
46
|
+
};
|
|
47
|
+
return _1.cookie;
|
|
48
|
+
});
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
define("dojo/cookie", ["./_base/kernel", "./regexp"], function(dojo, regexp){
|
|
2
|
+
|
|
3
|
+
// module:
|
|
4
|
+
// dojo/cookie
|
|
5
|
+
|
|
6
|
+
/*=====
|
|
7
|
+
var __cookieProps = {
|
|
8
|
+
// expires: Date|String|Number?
|
|
9
|
+
// If a number, the number of days from today at which the cookie
|
|
10
|
+
// will expire. If a date, the date past which the cookie will expire.
|
|
11
|
+
// If expires is in the past, the cookie will be deleted.
|
|
12
|
+
// If expires is omitted or is 0, the cookie will expire when the browser closes.
|
|
13
|
+
// path: String?
|
|
14
|
+
// The path to use for the cookie.
|
|
15
|
+
// domain: String?
|
|
16
|
+
// The domain to use for the cookie.
|
|
17
|
+
// secure: Boolean?
|
|
18
|
+
// Whether to only send the cookie on secure connections
|
|
19
|
+
};
|
|
20
|
+
=====*/
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
dojo.cookie = function(/*String*/name, /*String?*/ value, /*__cookieProps?*/ props){
|
|
24
|
+
// summary:
|
|
25
|
+
// Get or set a cookie.
|
|
26
|
+
// description:
|
|
27
|
+
// If one argument is passed, returns the value of the cookie
|
|
28
|
+
// For two or more arguments, acts as a setter.
|
|
29
|
+
// name:
|
|
30
|
+
// Name of the cookie
|
|
31
|
+
// value:
|
|
32
|
+
// Value for the cookie
|
|
33
|
+
// props:
|
|
34
|
+
// Properties for the cookie
|
|
35
|
+
// example:
|
|
36
|
+
// set a cookie with the JSON-serialized contents of an object which
|
|
37
|
+
// will expire 5 days from now:
|
|
38
|
+
// | require(["dojo/cookie", "dojo/json"], function(cookie, json){
|
|
39
|
+
// | cookie("configObj", json.stringify(config, {expires: 5 }));
|
|
40
|
+
// | });
|
|
41
|
+
//
|
|
42
|
+
// example:
|
|
43
|
+
// de-serialize a cookie back into a JavaScript object:
|
|
44
|
+
// | require(["dojo/cookie", "dojo/json"], function(cookie, json){
|
|
45
|
+
// | config = json.parse(cookie("configObj"));
|
|
46
|
+
// | });
|
|
47
|
+
//
|
|
48
|
+
// example:
|
|
49
|
+
// delete a cookie:
|
|
50
|
+
// | require(["dojo/cookie"], function(cookie){
|
|
51
|
+
// | cookie("configObj", null, {expires: -1});
|
|
52
|
+
// | });
|
|
53
|
+
var c = document.cookie, ret;
|
|
54
|
+
if(arguments.length == 1){
|
|
55
|
+
var matches = c.match(new RegExp("(?:^|; )" + regexp.escapeString(name) + "=([^;]*)"));
|
|
56
|
+
ret = matches ? decodeURIComponent(matches[1]) : undefined;
|
|
57
|
+
}else{
|
|
58
|
+
props = props || {};
|
|
59
|
+
// FIXME: expires=0 seems to disappear right away, not on close? (FF3) Change docs?
|
|
60
|
+
var exp = props.expires;
|
|
61
|
+
if(typeof exp == "number"){
|
|
62
|
+
var d = new Date();
|
|
63
|
+
d.setTime(d.getTime() + exp*24*60*60*1000);
|
|
64
|
+
exp = props.expires = d;
|
|
65
|
+
}
|
|
66
|
+
if(exp && exp.toUTCString){ props.expires = exp.toUTCString(); }
|
|
67
|
+
|
|
68
|
+
value = encodeURIComponent(value);
|
|
69
|
+
var updatedCookie = name + "=" + value, propName;
|
|
70
|
+
for(propName in props){
|
|
71
|
+
updatedCookie += "; " + propName;
|
|
72
|
+
var propValue = props[propName];
|
|
73
|
+
if(propValue !== true){ updatedCookie += "=" + propValue; }
|
|
74
|
+
}
|
|
75
|
+
document.cookie = updatedCookie;
|
|
76
|
+
}
|
|
77
|
+
return ret; // String|undefined
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
dojo.cookie.isSupported = function(){
|
|
81
|
+
// summary:
|
|
82
|
+
// Use to determine if the current browser supports cookies or not.
|
|
83
|
+
//
|
|
84
|
+
// Returns true if user allows cookies.
|
|
85
|
+
// Returns false if user doesn't allow cookies.
|
|
86
|
+
|
|
87
|
+
if(!("cookieEnabled" in navigator)){
|
|
88
|
+
this("__djCookieTest__", "CookiesAllowed");
|
|
89
|
+
navigator.cookieEnabled = this("__djCookieTest__") == "CookiesAllowed";
|
|
90
|
+
if(navigator.cookieEnabled){
|
|
91
|
+
this("__djCookieTest__", "", {expires: -1});
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return navigator.cookieEnabled;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
return dojo.cookie;
|
|
98
|
+
});
|
|
@@ -0,0 +1,82 @@
|
|
|
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/date/stamp",["../_base/lang","../_base/array"],function(_1,_2){
|
|
8
|
+
var _3={};
|
|
9
|
+
_1.setObject("dojo.date.stamp",_3);
|
|
10
|
+
_3.fromISOString=function(_4,_5){
|
|
11
|
+
if(!_3._isoRegExp){
|
|
12
|
+
_3._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;
|
|
13
|
+
}
|
|
14
|
+
var _6=_3._isoRegExp.exec(_4),_7=null;
|
|
15
|
+
if(_6){
|
|
16
|
+
_6.shift();
|
|
17
|
+
if(_6[1]){
|
|
18
|
+
_6[1]--;
|
|
19
|
+
}
|
|
20
|
+
if(_6[6]){
|
|
21
|
+
_6[6]*=1000;
|
|
22
|
+
}
|
|
23
|
+
if(_5){
|
|
24
|
+
_5=new Date(_5);
|
|
25
|
+
_2.forEach(_2.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_8){
|
|
26
|
+
return _5["get"+_8]();
|
|
27
|
+
}),function(_9,_a){
|
|
28
|
+
_6[_a]=_6[_a]||_9;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
_7=new Date(_6[0]||1970,_6[1]||0,_6[2]||1,_6[3]||0,_6[4]||0,_6[5]||0,_6[6]||0);
|
|
32
|
+
if(_6[0]<100){
|
|
33
|
+
_7.setFullYear(_6[0]||1970);
|
|
34
|
+
}
|
|
35
|
+
var _b=0,_c=_6[7]&&_6[7].charAt(0);
|
|
36
|
+
if(_c!="Z"){
|
|
37
|
+
_b=((_6[8]||0)*60)+(Number(_6[9])||0);
|
|
38
|
+
if(_c!="-"){
|
|
39
|
+
_b*=-1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if(_c){
|
|
43
|
+
_b-=_7.getTimezoneOffset();
|
|
44
|
+
}
|
|
45
|
+
if(_b){
|
|
46
|
+
_7.setTime(_7.getTime()+_b*60000);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return _7;
|
|
50
|
+
};
|
|
51
|
+
_3.toISOString=function(_d,_e){
|
|
52
|
+
var _f=function(n){
|
|
53
|
+
return (n<10)?"0"+n:n;
|
|
54
|
+
};
|
|
55
|
+
_e=_e||{};
|
|
56
|
+
var _10=[],_11=_e.zulu?"getUTC":"get",_12="";
|
|
57
|
+
if(_e.selector!="time"){
|
|
58
|
+
var _13=_d[_11+"FullYear"]();
|
|
59
|
+
_12=["0000".substr((_13+"").length)+_13,_f(_d[_11+"Month"]()+1),_f(_d[_11+"Date"]())].join("-");
|
|
60
|
+
}
|
|
61
|
+
_10.push(_12);
|
|
62
|
+
if(_e.selector!="date"){
|
|
63
|
+
var _14=[_f(_d[_11+"Hours"]()),_f(_d[_11+"Minutes"]()),_f(_d[_11+"Seconds"]())].join(":");
|
|
64
|
+
var _15=_d[_11+"Milliseconds"]();
|
|
65
|
+
if(_e.milliseconds){
|
|
66
|
+
_14+="."+(_15<100?"0":"")+_f(_15);
|
|
67
|
+
}
|
|
68
|
+
if(_e.zulu){
|
|
69
|
+
_14+="Z";
|
|
70
|
+
}else{
|
|
71
|
+
if(_e.selector!="time"){
|
|
72
|
+
var _16=_d.getTimezoneOffset();
|
|
73
|
+
var _17=Math.abs(_16);
|
|
74
|
+
_14+=(_16>0?"-":"+")+_f(Math.floor(_17/60))+":"+_f(_17%60);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
_10.push(_14);
|
|
78
|
+
}
|
|
79
|
+
return _10.join("T");
|
|
80
|
+
};
|
|
81
|
+
return _3;
|
|
82
|
+
});
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
define("dojo/date/stamp", ["../_base/lang", "../_base/array"], function(lang, array){
|
|
2
|
+
|
|
3
|
+
// module:
|
|
4
|
+
// dojo/date/stamp
|
|
5
|
+
|
|
6
|
+
var stamp = {
|
|
7
|
+
// summary:
|
|
8
|
+
// TODOC
|
|
9
|
+
};
|
|
10
|
+
lang.setObject("dojo.date.stamp", stamp);
|
|
11
|
+
|
|
12
|
+
// Methods to convert dates to or from a wire (string) format using well-known conventions
|
|
13
|
+
|
|
14
|
+
stamp.fromISOString = function(/*String*/ formattedString, /*Number?*/ defaultTime){
|
|
15
|
+
// summary:
|
|
16
|
+
// Returns a Date object given a string formatted according to a subset of the ISO-8601 standard.
|
|
17
|
+
//
|
|
18
|
+
// description:
|
|
19
|
+
// Accepts a string formatted according to a profile of ISO8601 as defined by
|
|
20
|
+
// [RFC3339](http://www.ietf.org/rfc/rfc3339.txt), except that partial input is allowed.
|
|
21
|
+
// Can also process dates as specified [by the W3C](http://www.w3.org/TR/NOTE-datetime)
|
|
22
|
+
// The following combinations are valid:
|
|
23
|
+
//
|
|
24
|
+
// - dates only
|
|
25
|
+
// - yyyy
|
|
26
|
+
// - yyyy-MM
|
|
27
|
+
// - yyyy-MM-dd
|
|
28
|
+
// - times only, with an optional time zone appended
|
|
29
|
+
// - THH:mm
|
|
30
|
+
// - THH:mm:ss
|
|
31
|
+
// - THH:mm:ss.SSS
|
|
32
|
+
// - and "datetimes" which could be any combination of the above
|
|
33
|
+
//
|
|
34
|
+
// timezones may be specified as Z (for UTC) or +/- followed by a time expression HH:mm
|
|
35
|
+
// Assumes the local time zone if not specified. Does not validate. Improperly formatted
|
|
36
|
+
// input may return null. Arguments which are out of bounds will be handled
|
|
37
|
+
// by the Date constructor (e.g. January 32nd typically gets resolved to February 1st)
|
|
38
|
+
// Only years between 100 and 9999 are supported.
|
|
39
|
+
// formattedString:
|
|
40
|
+
// A string such as 2005-06-30T08:05:00-07:00 or 2005-06-30 or T08:05:00
|
|
41
|
+
// defaultTime:
|
|
42
|
+
// Used for defaults for fields omitted in the formattedString.
|
|
43
|
+
// Uses 1970-01-01T00:00:00.0Z by default.
|
|
44
|
+
|
|
45
|
+
if(!stamp._isoRegExp){
|
|
46
|
+
stamp._isoRegExp =
|
|
47
|
+
//TODO: could be more restrictive and check for 00-59, etc.
|
|
48
|
+
/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
var match = stamp._isoRegExp.exec(formattedString),
|
|
52
|
+
result = null;
|
|
53
|
+
|
|
54
|
+
if(match){
|
|
55
|
+
match.shift();
|
|
56
|
+
if(match[1]){match[1]--;} // Javascript Date months are 0-based
|
|
57
|
+
if(match[6]){match[6] *= 1000;} // Javascript Date expects fractional seconds as milliseconds
|
|
58
|
+
|
|
59
|
+
if(defaultTime){
|
|
60
|
+
// mix in defaultTime. Relatively expensive, so use || operators for the fast path of defaultTime === 0
|
|
61
|
+
defaultTime = new Date(defaultTime);
|
|
62
|
+
array.forEach(array.map(["FullYear", "Month", "Date", "Hours", "Minutes", "Seconds", "Milliseconds"], function(prop){
|
|
63
|
+
return defaultTime["get" + prop]();
|
|
64
|
+
}), function(value, index){
|
|
65
|
+
match[index] = match[index] || value;
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
result = new Date(match[0]||1970, match[1]||0, match[2]||1, match[3]||0, match[4]||0, match[5]||0, match[6]||0); //TODO: UTC defaults
|
|
69
|
+
if(match[0] < 100){
|
|
70
|
+
result.setFullYear(match[0] || 1970);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
var offset = 0,
|
|
74
|
+
zoneSign = match[7] && match[7].charAt(0);
|
|
75
|
+
if(zoneSign != 'Z'){
|
|
76
|
+
offset = ((match[8] || 0) * 60) + (Number(match[9]) || 0);
|
|
77
|
+
if(zoneSign != '-'){ offset *= -1; }
|
|
78
|
+
}
|
|
79
|
+
if(zoneSign){
|
|
80
|
+
offset -= result.getTimezoneOffset();
|
|
81
|
+
}
|
|
82
|
+
if(offset){
|
|
83
|
+
result.setTime(result.getTime() + offset * 60000);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return result; // Date or null
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/*=====
|
|
91
|
+
var __Options = {
|
|
92
|
+
// selector: String
|
|
93
|
+
// "date" or "time" for partial formatting of the Date object.
|
|
94
|
+
// Both date and time will be formatted by default.
|
|
95
|
+
// zulu: Boolean
|
|
96
|
+
// if true, UTC/GMT is used for a timezone
|
|
97
|
+
// milliseconds: Boolean
|
|
98
|
+
// if true, output milliseconds
|
|
99
|
+
};
|
|
100
|
+
=====*/
|
|
101
|
+
|
|
102
|
+
stamp.toISOString = function(/*Date*/ dateObject, /*__Options?*/ options){
|
|
103
|
+
// summary:
|
|
104
|
+
// Format a Date object as a string according a subset of the ISO-8601 standard
|
|
105
|
+
//
|
|
106
|
+
// description:
|
|
107
|
+
// When options.selector is omitted, output follows [RFC3339](http://www.ietf.org/rfc/rfc3339.txt)
|
|
108
|
+
// The local time zone is included as an offset from GMT, except when selector=='time' (time without a date)
|
|
109
|
+
// Does not check bounds. Only years between 100 and 9999 are supported.
|
|
110
|
+
//
|
|
111
|
+
// dateObject:
|
|
112
|
+
// A Date object
|
|
113
|
+
|
|
114
|
+
var _ = function(n){ return (n < 10) ? "0" + n : n; };
|
|
115
|
+
options = options || {};
|
|
116
|
+
var formattedDate = [],
|
|
117
|
+
getter = options.zulu ? "getUTC" : "get",
|
|
118
|
+
date = "";
|
|
119
|
+
if(options.selector != "time"){
|
|
120
|
+
var year = dateObject[getter+"FullYear"]();
|
|
121
|
+
date = ["0000".substr((year+"").length)+year, _(dateObject[getter+"Month"]()+1), _(dateObject[getter+"Date"]())].join('-');
|
|
122
|
+
}
|
|
123
|
+
formattedDate.push(date);
|
|
124
|
+
if(options.selector != "date"){
|
|
125
|
+
var time = [_(dateObject[getter+"Hours"]()), _(dateObject[getter+"Minutes"]()), _(dateObject[getter+"Seconds"]())].join(':');
|
|
126
|
+
var millis = dateObject[getter+"Milliseconds"]();
|
|
127
|
+
if(options.milliseconds){
|
|
128
|
+
time += "."+ (millis < 100 ? "0" : "") + _(millis);
|
|
129
|
+
}
|
|
130
|
+
if(options.zulu){
|
|
131
|
+
time += "Z";
|
|
132
|
+
}else if(options.selector != "time"){
|
|
133
|
+
var timezoneOffset = dateObject.getTimezoneOffset();
|
|
134
|
+
var absOffset = Math.abs(timezoneOffset);
|
|
135
|
+
time += (timezoneOffset > 0 ? "-" : "+") +
|
|
136
|
+
_(Math.floor(absOffset/60)) + ":" + _(absOffset%60);
|
|
137
|
+
}
|
|
138
|
+
formattedDate.push(time);
|
|
139
|
+
}
|
|
140
|
+
return formattedDate.join('T'); // String
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
return stamp;
|
|
144
|
+
});
|