@datagrok/helm 2.13.7 → 3.0.0
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/CREDITS.md +164 -0
- package/dist/489.js +2 -0
- package/dist/489.js.map +1 -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/files/samples/helm-showcase.csv +56 -0
- package/package.json +6 -10
- package/src/helm-helper.ts +61 -413
- package/src/package-api.ts +14 -11
- package/src/package-test.ts +0 -2
- package/src/package-utils.ts +8 -298
- package/src/package.g.ts +2 -8
- package/src/package.ts +11 -31
- package/src/tests/helm-activity-cliffs.ts +2 -2
- package/src/tests/helm-input-tests.ts +83 -0
- package/src/tests/parse-helm-tests.ts +7 -57
- package/src/tests/properties-widget-tests.ts +21 -11
- package/src/utils/helm-grid-cell-renderer.ts +141 -151
- package/src/utils/index.ts +3 -7
- package/src/widgets/helm-input.ts +42 -12
- package/src/widgets/properties-widget.ts +18 -11
- package/test-console-output-1.log +103 -706
- package/test-record-1.mp4 +0 -0
- package/webpack.config.js +1 -12
- package/dist/455.js +0 -2
- package/dist/455.js.map +0 -1
- package/dist/package-dojo.js +0 -2
- package/dist/package-dojo.js.map +0 -1
- package/helm/JSDraw/Pistoia.HELM-uncompressed.js +0 -9694
- package/helm/JSDraw/ReadMe.txt +0 -8
- package/helm/JSDraw/Scilligence.JSDraw2.Lite-uncompressed.js +0 -31126
- package/helm/dojo/package.ts +0 -41
- package/helm/dojo/types.ts +0 -12
- package/src/helm-web-editor.ts +0 -68
- package/src/tests/get-monomer-tests.ts +0 -214
- package/src/tests/helm-service-tests.ts +0 -98
- package/src/types/dojo.ts +0 -3
- package/src/types/index.ts +0 -5
- package/src/utils/get-monomer.ts +0 -90
- package/src/utils/helm-service.ts +0 -166
- package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +0 -63
- package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +0 -116
- package/vendor/dojo-1.10.10/dijit/Destroyable.js +0 -35
- package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +0 -83
- package/vendor/dojo-1.10.10/dijit/Tooltip.js +0 -240
- package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +0 -612
- package/vendor/dojo-1.10.10/dijit/Viewport.js +0 -44
- package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +0 -87
- package/vendor/dojo-1.10.10/dijit/WidgetSet.js +0 -76
- package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +0 -247
- package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +0 -94
- package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +0 -238
- package/vendor/dojo-1.10.10/dijit/_Contained.js +0 -17
- package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +0 -56
- package/vendor/dojo-1.10.10/dijit/_Container.js +0 -47
- package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +0 -108
- package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +0 -198
- package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +0 -372
- package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +0 -11
- package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +0 -66
- package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +0 -188
- package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +0 -472
- package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +0 -8
- package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +0 -31
- package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +0 -90
- package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +0 -205
- package/vendor/dojo-1.10.10/dijit/_Widget.js +0 -66
- package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +0 -352
- package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +0 -353
- package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +0 -1200
- package/vendor/dojo-1.10.10/dijit/_base/focus.js +0 -68
- package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +0 -207
- package/vendor/dojo-1.10.10/dijit/_base/manager.js +0 -10
- package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +0 -35
- package/vendor/dojo-1.10.10/dijit/_base/place.js +0 -52
- package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +0 -131
- package/vendor/dojo-1.10.10/dijit/_base/popup.js +0 -23
- package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +0 -58
- package/vendor/dojo-1.10.10/dijit/_base/scroll.js +0 -6
- package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +0 -22
- package/vendor/dojo-1.10.10/dijit/_base/sniff.js +0 -3
- package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dijit/_base/typematic.js +0 -3
- package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +0 -10
- package/vendor/dojo-1.10.10/dijit/_base/wai.js +0 -32
- package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +0 -109
- package/vendor/dojo-1.10.10/dijit/_base/window.js +0 -6
- package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +0 -18
- package/vendor/dojo-1.10.10/dijit/_base.js +0 -4
- package/vendor/dojo-1.10.10/dijit/_base.js.uncompressed.js +0 -27
- package/vendor/dojo-1.10.10/dijit/a11y.js +0 -109
- package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +0 -191
- package/vendor/dojo-1.10.10/dijit/a11yclick.js +0 -66
- package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +0 -139
- package/vendor/dojo-1.10.10/dijit/focus.js +0 -188
- package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +0 -371
- package/vendor/dojo-1.10.10/dijit/form/Button.js +0 -49
- package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +0 -130
- package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +0 -4
- package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +0 -27
- package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +0 -21
- package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +0 -86
- package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +0 -38
- package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +0 -102
- package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +0 -7
- package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +0 -26
- package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +0 -50
- package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +0 -116
- package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +0 -26
- package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +0 -81
- package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +0 -24
- package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +0 -51
- package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +0 -22
- package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +0 -67
- package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +0 -111
- package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +0 -254
- package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +0 -32
- package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +0 -69
- package/vendor/dojo-1.10.10/dijit/hccss.js +0 -9
- package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +0 -21
- package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +0 -215
- package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +0 -550
- package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +0 -7
- package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +0 -25
- package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +0 -235
- package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +0 -653
- package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +0 -171
- package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +0 -411
- package/vendor/dojo-1.10.10/dijit/layout/StackController.js +0 -194
- package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +0 -410
- package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +0 -99
- package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +0 -236
- package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +0 -47
- package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +0 -190
- package/vendor/dojo-1.10.10/dijit/layout/utils.js +0 -77
- package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +0 -151
- package/vendor/dojo-1.10.10/dijit/main.js +0 -4
- package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +0 -16
- package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +0 -2
- package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +0 -21
- package/vendor/dojo-1.10.10/dijit/nls/loading.js +0 -2
- package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +0 -47
- package/vendor/dojo-1.10.10/dijit/place.js +0 -142
- package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +0 -407
- package/vendor/dojo-1.10.10/dijit/popup.js +0 -162
- package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +0 -441
- package/vendor/dojo-1.10.10/dijit/registry.js +0 -79
- package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +0 -159
- package/vendor/dojo-1.10.10/dijit/selection.js +0 -364
- package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +0 -525
- package/vendor/dojo-1.10.10/dijit/typematic.js +0 -96
- package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +0 -211
- package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +0 -195
- package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +0 -761
- package/vendor/dojo-1.10.10/dojo/Stateful.js +0 -90
- package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +0 -218
- package/vendor/dojo-1.10.10/dojo/_base/url.js +0 -87
- package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +0 -109
- package/vendor/dojo-1.10.10/dojo/cache.js +0 -9
- package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +0 -7
- package/vendor/dojo-1.10.10/dojo/colors.js +0 -74
- package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +0 -232
- package/vendor/dojo-1.10.10/dojo/cookie.js +0 -48
- package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +0 -98
- package/vendor/dojo-1.10.10/dojo/date/stamp.js +0 -82
- package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +0 -144
- package/vendor/dojo-1.10.10/dojo/dojo.js +0 -7
- package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +0 -18680
- package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +0 -27
- package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +0 -101
- package/vendor/dojo-1.10.10/dojo/fx/easing.js +0 -165
- package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +0 -276
- package/vendor/dojo-1.10.10/dojo/fx.js +0 -271
- package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +0 -443
- package/vendor/dojo-1.10.10/dojo/hccss.js +0 -26
- package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +0 -52
- package/vendor/dojo-1.10.10/dojo/html.js +0 -161
- package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +0 -370
- package/vendor/dojo-1.10.10/dojo/io/iframe.js +0 -71
- package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +0 -190
- package/vendor/dojo-1.10.10/dojo/io/script.js +0 -112
- package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +0 -280
- package/vendor/dojo-1.10.10/dojo/parser.js +0 -437
- package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +0 -915
- package/vendor/dojo-1.10.10/dojo/promise/all.js +0 -59
- package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +0 -77
- package/vendor/dojo-1.10.10/dojo/regexp.js +0 -32
- package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +0 -70
- package/vendor/dojo-1.10.10/dojo/request/iframe.js +0 -291
- package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +0 -438
- package/vendor/dojo-1.10.10/dojo/request/script.js +0 -129
- package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +0 -237
- package/vendor/dojo-1.10.10/dojo/require.js +0 -11
- package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +0 -7
- package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
- package/vendor/dojo-1.10.10/dojo/string.js +0 -67
- package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +0 -181
- package/vendor/dojo-1.10.10/dojo/touch.js +0 -191
- package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +0 -468
- package/vendor/dojo-1.10.10/dojo/uacss.js +0 -36
- package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +0 -85
- package/vendor/dojo-1.10.10/dojo/window.js +0 -141
- package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +0 -241
- package/vendor/dojo-1.10.10/dojox/charting/Chart.js +0 -626
- package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +0 -1220
- package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +0 -5
- package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +0 -16
- package/vendor/dojo-1.10.10/dojox/charting/Element.js +0 -247
- package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +0 -402
- package/vendor/dojo-1.10.10/dojox/charting/Series.js +0 -24
- package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +0 -58
- package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +0 -191
- package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +0 -577
- package/vendor/dojo-1.10.10/dojox/charting/Theme.js +0 -42
- package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +0 -120
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +0 -11
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +0 -36
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +0 -77
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +0 -144
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +0 -58
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +0 -123
- package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +0 -54
- package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +0 -124
- package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +0 -28
- package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +0 -74
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +0 -116
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +0 -178
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +0 -24
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +0 -83
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +0 -557
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +0 -980
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +0 -65
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +0 -224
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +0 -91
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +0 -164
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +0 -7
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +0 -168
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +0 -311
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +0 -61
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +0 -161
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +0 -141
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +0 -242
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +0 -126
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +0 -243
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +0 -108
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +0 -290
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +0 -13
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +0 -13
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +0 -153
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +0 -249
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +0 -253
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +0 -472
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +0 -182
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +0 -356
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +0 -6
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +0 -6
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +0 -7
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +0 -13
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +0 -110
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +0 -208
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +0 -303
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +0 -547
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +0 -134
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +0 -207
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +0 -299
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +0 -537
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +0 -24
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +0 -44
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +0 -7
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +0 -22
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +0 -33
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +0 -20
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +0 -31
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +0 -6
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +0 -68
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +0 -120
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +0 -209
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +0 -214
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +0 -76
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +0 -77
- package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +0 -59
- package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +0 -70
- package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +0 -220
- package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +0 -262
- package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +0 -23
- package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +0 -36
- package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +0 -39
- package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +0 -106
- package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +0 -5
- package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +0 -4
- package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +0 -3
- package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +0 -102
- package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +0 -165
- package/vendor/dojo-1.10.10/dojox/color/Palette.js +0 -163
- package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +0 -460
- package/vendor/dojo-1.10.10/dojox/color/_base.js +0 -174
- package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +0 -196
- package/vendor/dojo-1.10.10/dojox/gfx/_base.js +0 -253
- package/vendor/dojo-1.10.10/dojox/gfx/_base.js.uncompressed.js +0 -1024
- package/vendor/dojo-1.10.10/dojox/gfx/fx.js +0 -297
- package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +0 -350
- package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +0 -63
- package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +0 -91
- package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +0 -170
- package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +0 -501
- package/vendor/dojo-1.10.10/dojox/gfx/path.js +0 -319
- package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +0 -478
- package/vendor/dojo-1.10.10/dojox/gfx/shape.js +0 -459
- package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +0 -1091
- package/vendor/dojo-1.10.10/dojox/gfx/svg.js +0 -662
- package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +0 -1023
- package/vendor/dojo-1.10.10/dojox/gfx/utils.js +0 -199
- package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +0 -322
- package/vendor/dojo-1.10.10/dojox/gfx.js +0 -2
- package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +0 -1136
- package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +0 -151
- package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +0 -169
- package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +0 -93
- package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +0 -125
- package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +0 -81
- package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +0 -132
- package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +0 -54
- package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +0 -78
- package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +0 -61
- package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +0 -77
- package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +0 -87
- package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +0 -107
- package/vendor/dojo-1.10.10/dojox/lang/functional.js +0 -4
- package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +0 -3
- package/vendor/dojo-1.10.10/dojox/lang/utils.js +0 -86
- package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +0 -121
- package/vendor/dojo-1.10.10/dojox/main.js +0 -4
- package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +0 -112
- package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +0 -208
- package/vendor/dojo-1.10.10/dojox/storage/Provider.js +0 -62
- package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +0 -344
- package/vendor/dojo-1.10.10/dojox/storage/manager.js +0 -110
- package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +0 -263
|
@@ -1,141 +0,0 @@
|
|
|
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/window",["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style","./dom-construct"],function(_1,_2,_3,_4,_5,_6,_7){
|
|
8
|
-
_2.add("rtl-adjust-position-for-verticalScrollBar",function(_8,_9){
|
|
9
|
-
var _a=_3.body(_9),_b=_7.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},_a,"last"),_c=_7.create("div",{style:{overflow:"hidden",direction:"ltr"}},_b,"last"),_d=_5.position(_c).x!=0;
|
|
10
|
-
_b.removeChild(_c);
|
|
11
|
-
_a.removeChild(_b);
|
|
12
|
-
return _d;
|
|
13
|
-
});
|
|
14
|
-
_2.add("position-fixed-support",function(_e,_f){
|
|
15
|
-
var _10=_3.body(_f),_11=_7.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},_10,"last"),_12=_7.create("span",{style:{position:"fixed",left:"0",top:"0"}},_11,"last"),ret=_5.position(_12).x!=_5.position(_11).x;
|
|
16
|
-
_11.removeChild(_12);
|
|
17
|
-
_10.removeChild(_11);
|
|
18
|
-
return ret;
|
|
19
|
-
});
|
|
20
|
-
var _13={getBox:function(doc){
|
|
21
|
-
doc=doc||_3.doc;
|
|
22
|
-
var _14=(doc.compatMode=="BackCompat")?_3.body(doc):doc.documentElement,_15=_5.docScroll(doc),w,h;
|
|
23
|
-
if(_2("touch")){
|
|
24
|
-
var _16=_13.get(doc);
|
|
25
|
-
w=_16.innerWidth||_14.clientWidth;
|
|
26
|
-
h=_16.innerHeight||_14.clientHeight;
|
|
27
|
-
}else{
|
|
28
|
-
w=_14.clientWidth;
|
|
29
|
-
h=_14.clientHeight;
|
|
30
|
-
}
|
|
31
|
-
return {l:_15.x,t:_15.y,w:w,h:h};
|
|
32
|
-
},get:function(doc){
|
|
33
|
-
if(_2("ie")&&_13!==document.parentWindow){
|
|
34
|
-
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
|
|
35
|
-
var win=doc._parentWindow;
|
|
36
|
-
doc._parentWindow=null;
|
|
37
|
-
return win;
|
|
38
|
-
}
|
|
39
|
-
return doc.parentWindow||doc.defaultView;
|
|
40
|
-
},scrollIntoView:function(_17,pos){
|
|
41
|
-
try{
|
|
42
|
-
_17=_4.byId(_17);
|
|
43
|
-
var doc=_17.ownerDocument||_3.doc,_18=_3.body(doc),_19=doc.documentElement||_18.parentNode,_1a=_2("ie")||_2("trident"),_1b=_2("webkit");
|
|
44
|
-
if(_17==_18||_17==_19){
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if(!(_2("mozilla")||_1a||_1b||_2("opera")||_2("trident")||_2("edge"))&&("scrollIntoView" in _17)){
|
|
48
|
-
_17.scrollIntoView(false);
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
var _1c=doc.compatMode=="BackCompat",_1d=Math.min(_18.clientWidth||_19.clientWidth,_19.clientWidth||_18.clientWidth),_1e=Math.min(_18.clientHeight||_19.clientHeight,_19.clientHeight||_18.clientHeight),_1f=(_1b||_1c)?_18:_19,_20=pos||_5.position(_17),el=_17.parentNode,_21=function(el){
|
|
52
|
-
return (_1a<=6||(_1a==7&&_1c))?false:(_2("position-fixed-support")&&(_6.get(el,"position").toLowerCase()=="fixed"));
|
|
53
|
-
},_22=this,_23=function(el,x,y){
|
|
54
|
-
if(el.tagName=="BODY"||el.tagName=="HTML"){
|
|
55
|
-
_22.get(el.ownerDocument).scrollBy(x,y);
|
|
56
|
-
}else{
|
|
57
|
-
x&&(el.scrollLeft+=x);
|
|
58
|
-
y&&(el.scrollTop+=y);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
if(_21(_17)){
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
while(el){
|
|
65
|
-
if(el==_18){
|
|
66
|
-
el=_1f;
|
|
67
|
-
}
|
|
68
|
-
var _24=_5.position(el),_25=_21(el),rtl=_6.getComputedStyle(el).direction.toLowerCase()=="rtl";
|
|
69
|
-
if(el==_1f){
|
|
70
|
-
_24.w=_1d;
|
|
71
|
-
_24.h=_1e;
|
|
72
|
-
if(_1f==_19&&(_1a||_2("trident"))&&rtl){
|
|
73
|
-
_24.x+=_1f.offsetWidth-_24.w;
|
|
74
|
-
}
|
|
75
|
-
_24.x=0;
|
|
76
|
-
_24.y=0;
|
|
77
|
-
}else{
|
|
78
|
-
var pb=_5.getPadBorderExtents(el);
|
|
79
|
-
_24.w-=pb.w;
|
|
80
|
-
_24.h-=pb.h;
|
|
81
|
-
_24.x+=pb.l;
|
|
82
|
-
_24.y+=pb.t;
|
|
83
|
-
var _26=el.clientWidth,_27=_24.w-_26;
|
|
84
|
-
if(_26>0&&_27>0){
|
|
85
|
-
if(rtl&&_2("rtl-adjust-position-for-verticalScrollBar")){
|
|
86
|
-
_24.x+=_27;
|
|
87
|
-
}
|
|
88
|
-
_24.w=_26;
|
|
89
|
-
}
|
|
90
|
-
_26=el.clientHeight;
|
|
91
|
-
_27=_24.h-_26;
|
|
92
|
-
if(_26>0&&_27>0){
|
|
93
|
-
_24.h=_26;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
if(_25){
|
|
97
|
-
if(_24.y<0){
|
|
98
|
-
_24.h+=_24.y;
|
|
99
|
-
_24.y=0;
|
|
100
|
-
}
|
|
101
|
-
if(_24.x<0){
|
|
102
|
-
_24.w+=_24.x;
|
|
103
|
-
_24.x=0;
|
|
104
|
-
}
|
|
105
|
-
if(_24.y+_24.h>_1e){
|
|
106
|
-
_24.h=_1e-_24.y;
|
|
107
|
-
}
|
|
108
|
-
if(_24.x+_24.w>_1d){
|
|
109
|
-
_24.w=_1d-_24.x;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
var l=_20.x-_24.x,t=_20.y-_24.y,r=l+_20.w-_24.w,bot=t+_20.h-_24.h;
|
|
113
|
-
var s,old;
|
|
114
|
-
if(r*l>0&&(!!el.scrollLeft||el==_1f||el.scrollWidth>el.offsetHeight)){
|
|
115
|
-
s=Math[l<0?"max":"min"](l,r);
|
|
116
|
-
if(rtl&&((_1a==8&&!_1c)||_2("trident")>=5)){
|
|
117
|
-
s=-s;
|
|
118
|
-
}
|
|
119
|
-
old=el.scrollLeft;
|
|
120
|
-
_23(el,s,0);
|
|
121
|
-
s=el.scrollLeft-old;
|
|
122
|
-
_20.x-=s;
|
|
123
|
-
}
|
|
124
|
-
if(bot*t>0&&(!!el.scrollTop||el==_1f||el.scrollHeight>el.offsetHeight)){
|
|
125
|
-
s=Math.ceil(Math[t<0?"max":"min"](t,bot));
|
|
126
|
-
old=el.scrollTop;
|
|
127
|
-
_23(el,0,s);
|
|
128
|
-
s=el.scrollTop-old;
|
|
129
|
-
_20.y-=s;
|
|
130
|
-
}
|
|
131
|
-
el=(el!=_1f)&&!_25&&el.parentNode;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
catch(error){
|
|
135
|
-
console.error("scrollIntoView: "+error);
|
|
136
|
-
_17.scrollIntoView(false);
|
|
137
|
-
}
|
|
138
|
-
}};
|
|
139
|
-
1&&_1.setObject("dojo.window",_13);
|
|
140
|
-
return _13;
|
|
141
|
-
});
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
define("dojo/window", ["./_base/lang", "./sniff", "./_base/window", "./dom", "./dom-geometry", "./dom-style", "./dom-construct"],
|
|
2
|
-
function(lang, has, baseWindow, dom, geom, style, domConstruct){
|
|
3
|
-
|
|
4
|
-
// feature detection
|
|
5
|
-
/* not needed but included here for future reference
|
|
6
|
-
has.add("rtl-innerVerticalScrollBar-on-left", function(win, doc){
|
|
7
|
-
var body = baseWindow.body(doc),
|
|
8
|
-
scrollable = domConstruct.create('div', {
|
|
9
|
-
style: {overflow:'scroll', overflowX:'hidden', direction:'rtl', visibility:'hidden', position:'absolute', left:'0', width:'64px', height:'64px'}
|
|
10
|
-
}, body, "last"),
|
|
11
|
-
center = domConstruct.create('center', {
|
|
12
|
-
style: {overflow:'hidden', direction:'ltr'}
|
|
13
|
-
}, scrollable, "last"),
|
|
14
|
-
inner = domConstruct.create('div', {
|
|
15
|
-
style: {overflow:'visible', display:'inline' }
|
|
16
|
-
}, center, "last");
|
|
17
|
-
inner.innerHTML=" ";
|
|
18
|
-
var midPoint = Math.max(inner.offsetLeft, geom.position(inner).x);
|
|
19
|
-
var ret = midPoint >= 32;
|
|
20
|
-
center.removeChild(inner);
|
|
21
|
-
scrollable.removeChild(center);
|
|
22
|
-
body.removeChild(scrollable);
|
|
23
|
-
return ret;
|
|
24
|
-
});
|
|
25
|
-
*/
|
|
26
|
-
has.add("rtl-adjust-position-for-verticalScrollBar", function(win, doc){
|
|
27
|
-
var body = baseWindow.body(doc),
|
|
28
|
-
scrollable = domConstruct.create('div', {
|
|
29
|
-
style: {overflow:'scroll', overflowX:'visible', direction:'rtl', visibility:'hidden', position:'absolute', left:'0', top:'0', width:'64px', height:'64px'}
|
|
30
|
-
}, body, "last"),
|
|
31
|
-
div = domConstruct.create('div', {
|
|
32
|
-
style: {overflow:'hidden', direction:'ltr'}
|
|
33
|
-
}, scrollable, "last"),
|
|
34
|
-
ret = geom.position(div).x != 0;
|
|
35
|
-
scrollable.removeChild(div);
|
|
36
|
-
body.removeChild(scrollable);
|
|
37
|
-
return ret;
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
has.add("position-fixed-support", function(win, doc){
|
|
41
|
-
// IE6, IE7+quirks, and some older mobile browsers don't support position:fixed
|
|
42
|
-
var body = baseWindow.body(doc),
|
|
43
|
-
outer = domConstruct.create('span', {
|
|
44
|
-
style: {visibility:'hidden', position:'fixed', left:'1px', top:'1px'}
|
|
45
|
-
}, body, "last"),
|
|
46
|
-
inner = domConstruct.create('span', {
|
|
47
|
-
style: {position:'fixed', left:'0', top:'0'}
|
|
48
|
-
}, outer, "last"),
|
|
49
|
-
ret = geom.position(inner).x != geom.position(outer).x;
|
|
50
|
-
outer.removeChild(inner);
|
|
51
|
-
body.removeChild(outer);
|
|
52
|
-
return ret;
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
// module:
|
|
56
|
-
// dojo/window
|
|
57
|
-
|
|
58
|
-
var window = {
|
|
59
|
-
// summary:
|
|
60
|
-
// TODOC
|
|
61
|
-
|
|
62
|
-
getBox: function(/*Document?*/ doc){
|
|
63
|
-
// summary:
|
|
64
|
-
// Returns the dimensions and scroll position of the viewable area of a browser window
|
|
65
|
-
|
|
66
|
-
doc = doc || baseWindow.doc;
|
|
67
|
-
|
|
68
|
-
var
|
|
69
|
-
scrollRoot = (doc.compatMode == 'BackCompat') ? baseWindow.body(doc) : doc.documentElement,
|
|
70
|
-
// get scroll position
|
|
71
|
-
scroll = geom.docScroll(doc), // scrollRoot.scrollTop/Left should work
|
|
72
|
-
w, h;
|
|
73
|
-
|
|
74
|
-
if(has("touch")){ // if(scrollbars not supported)
|
|
75
|
-
var uiWindow = window.get(doc); // use UI window, not dojo.global window
|
|
76
|
-
// on mobile, scrollRoot.clientHeight <= uiWindow.innerHeight <= scrollRoot.offsetHeight, return uiWindow.innerHeight
|
|
77
|
-
w = uiWindow.innerWidth || scrollRoot.clientWidth; // || scrollRoot.clientXXX probably never evaluated
|
|
78
|
-
h = uiWindow.innerHeight || scrollRoot.clientHeight;
|
|
79
|
-
}else{
|
|
80
|
-
// on desktops, scrollRoot.clientHeight <= scrollRoot.offsetHeight <= uiWindow.innerHeight, return scrollRoot.clientHeight
|
|
81
|
-
// uiWindow.innerWidth/Height includes the scrollbar and cannot be used
|
|
82
|
-
w = scrollRoot.clientWidth;
|
|
83
|
-
h = scrollRoot.clientHeight;
|
|
84
|
-
}
|
|
85
|
-
return {
|
|
86
|
-
l: scroll.x,
|
|
87
|
-
t: scroll.y,
|
|
88
|
-
w: w,
|
|
89
|
-
h: h
|
|
90
|
-
};
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
get: function(/*Document*/ doc){
|
|
94
|
-
// summary:
|
|
95
|
-
// Get window object associated with document doc.
|
|
96
|
-
// doc:
|
|
97
|
-
// The document to get the associated window for.
|
|
98
|
-
|
|
99
|
-
// In some IE versions (at least 6.0), document.parentWindow does not return a
|
|
100
|
-
// reference to the real window object (maybe a copy), so we must fix it as well
|
|
101
|
-
// We use IE specific execScript to attach the real window reference to
|
|
102
|
-
// document._parentWindow for later use
|
|
103
|
-
if(has("ie") && window !== document.parentWindow){
|
|
104
|
-
/*
|
|
105
|
-
In IE 6, only the variable "window" can be used to connect events (others
|
|
106
|
-
may be only copies).
|
|
107
|
-
*/
|
|
108
|
-
doc.parentWindow.execScript("document._parentWindow = window;", "Javascript");
|
|
109
|
-
//to prevent memory leak, unset it after use
|
|
110
|
-
//another possibility is to add an onUnload handler which seems overkill to me (liucougar)
|
|
111
|
-
var win = doc._parentWindow;
|
|
112
|
-
doc._parentWindow = null;
|
|
113
|
-
return win; // Window
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
return doc.parentWindow || doc.defaultView; // Window
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
scrollIntoView: function(/*DomNode*/ node, /*Object?*/ pos){
|
|
120
|
-
// summary:
|
|
121
|
-
// Scroll the passed node into view using minimal movement, if it is not already.
|
|
122
|
-
|
|
123
|
-
// Don't rely on node.scrollIntoView working just because the function is there since
|
|
124
|
-
// it forces the node to the page's bottom or top (and left or right in IE) without consideration for the minimal movement.
|
|
125
|
-
// WebKit's node.scrollIntoViewIfNeeded doesn't work either for inner scrollbars in right-to-left mode
|
|
126
|
-
// and when there's a fixed position scrollable element
|
|
127
|
-
|
|
128
|
-
try{ // catch unexpected/unrecreatable errors (#7808) since we can recover using a semi-acceptable native method
|
|
129
|
-
node = dom.byId(node);
|
|
130
|
-
var doc = node.ownerDocument || baseWindow.doc, // TODO: why baseWindow.doc? Isn't node.ownerDocument always defined?
|
|
131
|
-
body = baseWindow.body(doc),
|
|
132
|
-
html = doc.documentElement || body.parentNode,
|
|
133
|
-
isIE = has("ie") || has("trident"),
|
|
134
|
-
isWK = has("webkit");
|
|
135
|
-
// if an untested browser, then use the native method
|
|
136
|
-
if(node == body || node == html){ return; }
|
|
137
|
-
if(!(has("mozilla") || isIE || isWK || has("opera") || has("trident") || has("edge"))
|
|
138
|
-
&& ("scrollIntoView" in node)){
|
|
139
|
-
node.scrollIntoView(false); // short-circuit to native if possible
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
var backCompat = doc.compatMode == 'BackCompat',
|
|
143
|
-
rootWidth = Math.min(body.clientWidth || html.clientWidth, html.clientWidth || body.clientWidth),
|
|
144
|
-
rootHeight = Math.min(body.clientHeight || html.clientHeight, html.clientHeight || body.clientHeight),
|
|
145
|
-
scrollRoot = (isWK || backCompat) ? body : html,
|
|
146
|
-
nodePos = pos || geom.position(node),
|
|
147
|
-
el = node.parentNode,
|
|
148
|
-
isFixed = function(el){
|
|
149
|
-
return (isIE <= 6 || (isIE == 7 && backCompat))
|
|
150
|
-
? false
|
|
151
|
-
: (has("position-fixed-support") && (style.get(el, 'position').toLowerCase() == "fixed"));
|
|
152
|
-
},
|
|
153
|
-
self = this,
|
|
154
|
-
scrollElementBy = function(el, x, y){
|
|
155
|
-
if(el.tagName == "BODY" || el.tagName == "HTML"){
|
|
156
|
-
self.get(el.ownerDocument).scrollBy(x, y);
|
|
157
|
-
}else{
|
|
158
|
-
x && (el.scrollLeft += x);
|
|
159
|
-
y && (el.scrollTop += y);
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
if(isFixed(node)){ return; } // nothing to do
|
|
163
|
-
while(el){
|
|
164
|
-
if(el == body){ el = scrollRoot; }
|
|
165
|
-
var elPos = geom.position(el),
|
|
166
|
-
fixedPos = isFixed(el),
|
|
167
|
-
rtl = style.getComputedStyle(el).direction.toLowerCase() == "rtl";
|
|
168
|
-
|
|
169
|
-
if(el == scrollRoot){
|
|
170
|
-
elPos.w = rootWidth; elPos.h = rootHeight;
|
|
171
|
-
if(scrollRoot == html && (isIE || has("trident")) && rtl){
|
|
172
|
-
elPos.x += scrollRoot.offsetWidth-elPos.w;// IE workaround where scrollbar causes negative x
|
|
173
|
-
}
|
|
174
|
-
elPos.x = 0;
|
|
175
|
-
elPos.y = 0;
|
|
176
|
-
}else{
|
|
177
|
-
var pb = geom.getPadBorderExtents(el);
|
|
178
|
-
elPos.w -= pb.w; elPos.h -= pb.h; elPos.x += pb.l; elPos.y += pb.t;
|
|
179
|
-
var clientSize = el.clientWidth,
|
|
180
|
-
scrollBarSize = elPos.w - clientSize;
|
|
181
|
-
if(clientSize > 0 && scrollBarSize > 0){
|
|
182
|
-
if(rtl && has("rtl-adjust-position-for-verticalScrollBar")){
|
|
183
|
-
elPos.x += scrollBarSize;
|
|
184
|
-
}
|
|
185
|
-
elPos.w = clientSize;
|
|
186
|
-
}
|
|
187
|
-
clientSize = el.clientHeight;
|
|
188
|
-
scrollBarSize = elPos.h - clientSize;
|
|
189
|
-
if(clientSize > 0 && scrollBarSize > 0){
|
|
190
|
-
elPos.h = clientSize;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
if(fixedPos){ // bounded by viewport, not parents
|
|
194
|
-
if(elPos.y < 0){
|
|
195
|
-
elPos.h += elPos.y; elPos.y = 0;
|
|
196
|
-
}
|
|
197
|
-
if(elPos.x < 0){
|
|
198
|
-
elPos.w += elPos.x; elPos.x = 0;
|
|
199
|
-
}
|
|
200
|
-
if(elPos.y + elPos.h > rootHeight){
|
|
201
|
-
elPos.h = rootHeight - elPos.y;
|
|
202
|
-
}
|
|
203
|
-
if(elPos.x + elPos.w > rootWidth){
|
|
204
|
-
elPos.w = rootWidth - elPos.x;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
// calculate overflow in all 4 directions
|
|
208
|
-
var l = nodePos.x - elPos.x, // beyond left: < 0
|
|
209
|
-
// t = nodePos.y - Math.max(elPos.y, 0), // beyond top: < 0
|
|
210
|
-
t = nodePos.y - elPos.y, // beyond top: < 0
|
|
211
|
-
r = l + nodePos.w - elPos.w, // beyond right: > 0
|
|
212
|
-
bot = t + nodePos.h - elPos.h; // beyond bottom: > 0
|
|
213
|
-
var s, old;
|
|
214
|
-
if(r * l > 0 && (!!el.scrollLeft || el == scrollRoot || el.scrollWidth > el.offsetHeight)){
|
|
215
|
-
s = Math[l < 0? "max" : "min"](l, r);
|
|
216
|
-
if(rtl && ((isIE == 8 && !backCompat) || has("trident") >= 5)){ s = -s; }
|
|
217
|
-
old = el.scrollLeft;
|
|
218
|
-
scrollElementBy(el, s, 0);
|
|
219
|
-
s = el.scrollLeft - old;
|
|
220
|
-
nodePos.x -= s;
|
|
221
|
-
}
|
|
222
|
-
if(bot * t > 0 && (!!el.scrollTop || el == scrollRoot || el.scrollHeight > el.offsetHeight)){
|
|
223
|
-
s = Math.ceil(Math[t < 0? "max" : "min"](t, bot));
|
|
224
|
-
old = el.scrollTop;
|
|
225
|
-
scrollElementBy(el, 0, s);
|
|
226
|
-
s = el.scrollTop - old;
|
|
227
|
-
nodePos.y -= s;
|
|
228
|
-
}
|
|
229
|
-
el = (el != scrollRoot) && !fixedPos && el.parentNode;
|
|
230
|
-
}
|
|
231
|
-
}catch(error){
|
|
232
|
-
console.error('scrollIntoView: ' + error);
|
|
233
|
-
node.scrollIntoView(false);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
1 && lang.setObject("dojo.window", window);
|
|
239
|
-
|
|
240
|
-
return window;
|
|
241
|
-
});
|