@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,236 +0,0 @@
|
|
|
1
|
-
define("dijit/layout/_ContentPaneResizeMixin", [
|
|
2
|
-
"dojo/_base/array", // array.filter array.forEach
|
|
3
|
-
"dojo/_base/declare", // declare
|
|
4
|
-
"dojo/dom-class", // domClass.contains domClass.toggle
|
|
5
|
-
"dojo/dom-geometry", // domGeometry.contentBox domGeometry.marginBox
|
|
6
|
-
"dojo/dom-style",
|
|
7
|
-
"dojo/_base/lang", // lang.mixin
|
|
8
|
-
"dojo/query", // query
|
|
9
|
-
"../registry", // registry.byId
|
|
10
|
-
"../Viewport",
|
|
11
|
-
"./utils" // marginBox2contextBox
|
|
12
|
-
], function(array, declare, domClass, domGeometry, domStyle, lang, query,
|
|
13
|
-
registry, Viewport, layoutUtils){
|
|
14
|
-
|
|
15
|
-
// module:
|
|
16
|
-
// dijit/layout/_ContentPaneResizeMixin
|
|
17
|
-
|
|
18
|
-
return declare("dijit.layout._ContentPaneResizeMixin", null, {
|
|
19
|
-
// summary:
|
|
20
|
-
// Resize() functionality of ContentPane. If there's a single layout widget
|
|
21
|
-
// child then it will call resize() with the same dimensions as the ContentPane.
|
|
22
|
-
// Otherwise just calls resize on each child.
|
|
23
|
-
//
|
|
24
|
-
// Also implements basic startup() functionality, where starting the parent
|
|
25
|
-
// will start the children
|
|
26
|
-
|
|
27
|
-
// doLayout: Boolean
|
|
28
|
-
// - false - don't adjust size of children
|
|
29
|
-
// - true - if there is a single visible child widget, set it's size to however big the ContentPane is
|
|
30
|
-
doLayout: true,
|
|
31
|
-
|
|
32
|
-
// isLayoutContainer: [protected] Boolean
|
|
33
|
-
// Indicates that this widget will call resize() on it's child widgets
|
|
34
|
-
// when they become visible.
|
|
35
|
-
isLayoutContainer: true,
|
|
36
|
-
|
|
37
|
-
startup: function(){
|
|
38
|
-
// summary:
|
|
39
|
-
// See `dijit/layout/_LayoutWidget.startup()` for description.
|
|
40
|
-
// Although ContentPane doesn't extend _LayoutWidget, it does implement
|
|
41
|
-
// the same API.
|
|
42
|
-
|
|
43
|
-
if(this._started){
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
var parent = this.getParent();
|
|
48
|
-
this._childOfLayoutWidget = parent && parent.isLayoutContainer;
|
|
49
|
-
|
|
50
|
-
// I need to call resize() on my child/children (when I become visible), unless
|
|
51
|
-
// I'm the child of a layout widget in which case my parent will call resize() on me and I'll do it then.
|
|
52
|
-
this._needLayout = !this._childOfLayoutWidget;
|
|
53
|
-
|
|
54
|
-
this.inherited(arguments);
|
|
55
|
-
|
|
56
|
-
if(this._isShown()){
|
|
57
|
-
this._onShow();
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
if(!this._childOfLayoutWidget){
|
|
61
|
-
// Since my parent isn't a layout container, and my style *may be* width=height=100%
|
|
62
|
-
// or something similar (either set directly or via a CSS class),
|
|
63
|
-
// monitor when viewport size changes so that I can re-layout.
|
|
64
|
-
// This is more for subclasses of ContentPane than ContentPane itself, although it
|
|
65
|
-
// could be useful for a ContentPane if it has a single child widget inheriting ContentPane's size.
|
|
66
|
-
this.own(Viewport.on("resize", lang.hitch(this, "resize")));
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
_checkIfSingleChild: function(){
|
|
71
|
-
// summary:
|
|
72
|
-
// Test if we have exactly one visible widget as a child,
|
|
73
|
-
// and if so assume that we are a container for that widget,
|
|
74
|
-
// and should propagate startup() and resize() calls to it.
|
|
75
|
-
// Skips over things like data stores since they aren't visible.
|
|
76
|
-
|
|
77
|
-
if(!this.doLayout){ return; }
|
|
78
|
-
|
|
79
|
-
var candidateWidgets = [],
|
|
80
|
-
otherVisibleNodes = false;
|
|
81
|
-
|
|
82
|
-
query("> *", this.containerNode).some(function(node){
|
|
83
|
-
var widget = registry.byNode(node);
|
|
84
|
-
if(widget && widget.resize){
|
|
85
|
-
candidateWidgets.push(widget);
|
|
86
|
-
}else if(!/script|link|style/i.test(node.nodeName) && node.offsetHeight){
|
|
87
|
-
otherVisibleNodes = true;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
this._singleChild = candidateWidgets.length == 1 && !otherVisibleNodes ?
|
|
92
|
-
candidateWidgets[0] : null;
|
|
93
|
-
|
|
94
|
-
// So we can set overflow: hidden to avoid a safari bug w/scrollbars showing up (#9449)
|
|
95
|
-
domClass.toggle(this.containerNode, this.baseClass + "SingleChild", !!this._singleChild);
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
resize: function(changeSize, resultSize){
|
|
99
|
-
// summary:
|
|
100
|
-
// See `dijit/layout/_LayoutWidget.resize()` for description.
|
|
101
|
-
// Although ContentPane doesn't extend _LayoutWidget, it does implement
|
|
102
|
-
// the same API.
|
|
103
|
-
|
|
104
|
-
this._resizeCalled = true;
|
|
105
|
-
|
|
106
|
-
this._scheduleLayout(changeSize, resultSize);
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
_scheduleLayout: function(changeSize, resultSize){
|
|
110
|
-
// summary:
|
|
111
|
-
// Resize myself, and call resize() on each of my child layout widgets, either now
|
|
112
|
-
// (if I'm currently visible) or when I become visible
|
|
113
|
-
if(this._isShown()){
|
|
114
|
-
this._layout(changeSize, resultSize);
|
|
115
|
-
}else{
|
|
116
|
-
this._needLayout = true;
|
|
117
|
-
this._changeSize = changeSize;
|
|
118
|
-
this._resultSize = resultSize;
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
_layout: function(changeSize, resultSize){
|
|
123
|
-
// summary:
|
|
124
|
-
// Resize myself according to optional changeSize/resultSize parameters, like a layout widget.
|
|
125
|
-
// Also, since I am an isLayoutContainer widget, each of my children expects me to
|
|
126
|
-
// call resize() or layout() on it.
|
|
127
|
-
//
|
|
128
|
-
// Should be called on initialization and also whenever we get new content
|
|
129
|
-
// (from an href, or from set('content', ...))... but deferred until
|
|
130
|
-
// the ContentPane is visible
|
|
131
|
-
|
|
132
|
-
delete this._needLayout;
|
|
133
|
-
|
|
134
|
-
// For the TabContainer --> BorderContainer --> ContentPane case, _onShow() is
|
|
135
|
-
// never called directly, so resize() is our trigger to do the initial href download (see [20099]).
|
|
136
|
-
// However, don't load href for closed TitlePanes.
|
|
137
|
-
if(!this._wasShown && this.open !== false){
|
|
138
|
-
this._onShow();
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// Set margin box size, unless it wasn't specified, in which case use current size.
|
|
142
|
-
if(changeSize){
|
|
143
|
-
domGeometry.setMarginBox(this.domNode, changeSize);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// Compute content box size of containerNode in case we [later] need to size our single child.
|
|
147
|
-
var cn = this.containerNode;
|
|
148
|
-
if(cn === this.domNode){
|
|
149
|
-
// If changeSize or resultSize was passed to this method and this.containerNode ==
|
|
150
|
-
// this.domNode then we can compute the content-box size without querying the node,
|
|
151
|
-
// which is more reliable (similar to LayoutWidget.resize) (see for example #9449).
|
|
152
|
-
var mb = resultSize || {};
|
|
153
|
-
lang.mixin(mb, changeSize || {}); // changeSize overrides resultSize
|
|
154
|
-
if(!("h" in mb) || !("w" in mb)){
|
|
155
|
-
mb = lang.mixin(domGeometry.getMarginBox(cn), mb); // just use domGeometry.setMarginBox() to fill in missing values
|
|
156
|
-
}
|
|
157
|
-
this._contentBox = layoutUtils.marginBox2contentBox(cn, mb);
|
|
158
|
-
}else{
|
|
159
|
-
this._contentBox = domGeometry.getContentBox(cn);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
this._layoutChildren();
|
|
163
|
-
},
|
|
164
|
-
|
|
165
|
-
_layoutChildren: function(){
|
|
166
|
-
// Call _checkIfSingleChild() again in case app has manually mucked w/the content
|
|
167
|
-
// of the ContentPane (rather than changing it through the set("content", ...) API.
|
|
168
|
-
this._checkIfSingleChild();
|
|
169
|
-
|
|
170
|
-
if(this._singleChild && this._singleChild.resize){
|
|
171
|
-
var cb = this._contentBox || domGeometry.getContentBox(this.containerNode);
|
|
172
|
-
|
|
173
|
-
// note: if widget has padding this._contentBox will have l and t set,
|
|
174
|
-
// but don't pass them to resize() or it will doubly-offset the child
|
|
175
|
-
this._singleChild.resize({w: cb.w, h: cb.h});
|
|
176
|
-
}else{
|
|
177
|
-
// All my child widgets are independently sized (rather than matching my size),
|
|
178
|
-
// but I still need to call resize() on each child to make it layout.
|
|
179
|
-
var children = this.getChildren(),
|
|
180
|
-
widget,
|
|
181
|
-
i = 0;
|
|
182
|
-
while(widget = children[i++]){
|
|
183
|
-
if(widget.resize){
|
|
184
|
-
widget.resize();
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
_isShown: function(){
|
|
191
|
-
// summary:
|
|
192
|
-
// Returns true if the content is currently shown.
|
|
193
|
-
// description:
|
|
194
|
-
// If I am a child of a layout widget then it actually returns true if I've ever been visible,
|
|
195
|
-
// not whether I'm currently visible, since that's much faster than tracing up the DOM/widget
|
|
196
|
-
// tree every call, and at least solves the performance problem on page load by deferring loading
|
|
197
|
-
// hidden ContentPanes until they are first shown
|
|
198
|
-
|
|
199
|
-
if(this._childOfLayoutWidget){
|
|
200
|
-
// If we are TitlePane, etc - we return that only *IF* we've been resized
|
|
201
|
-
if(this._resizeCalled && "open" in this){
|
|
202
|
-
return this.open;
|
|
203
|
-
}
|
|
204
|
-
return this._resizeCalled;
|
|
205
|
-
}else if("open" in this){
|
|
206
|
-
return this.open; // for TitlePane, etc.
|
|
207
|
-
}else{
|
|
208
|
-
var node = this.domNode, parent = this.domNode.parentNode;
|
|
209
|
-
return (node.style.display != 'none') && (node.style.visibility != 'hidden') && !domClass.contains(node, "dijitHidden") &&
|
|
210
|
-
parent && parent.style && (parent.style.display != 'none');
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
|
|
214
|
-
_onShow: function(){
|
|
215
|
-
// summary:
|
|
216
|
-
// Called when the ContentPane is made visible
|
|
217
|
-
// description:
|
|
218
|
-
// For a plain ContentPane, this is called on initialization, from startup().
|
|
219
|
-
// If the ContentPane is a hidden pane of a TabContainer etc., then it's
|
|
220
|
-
// called whenever the pane is made visible.
|
|
221
|
-
//
|
|
222
|
-
// Does layout/resize of child widget(s)
|
|
223
|
-
|
|
224
|
-
// Need to keep track of whether ContentPane has been shown (which is different than
|
|
225
|
-
// whether or not it's currently visible).
|
|
226
|
-
this._wasShown = true;
|
|
227
|
-
|
|
228
|
-
if(this._needLayout){
|
|
229
|
-
// If a layout has been scheduled for when we become visible, do it now
|
|
230
|
-
this._layout(this._changeSize, this._resultSize);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
this.inherited(arguments);
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
});
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dijit/layout/_LayoutWidget",["dojo/_base/lang","../_Widget","../_Container","../_Contained","../Viewport","dojo/_base/declare","dojo/dom-class","dojo/dom-geometry","dojo/dom-style"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){
|
|
3
|
-
return _6("dijit.layout._LayoutWidget",[_2,_3,_4],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,_setTitleAttr:null,buildRendering:function(){
|
|
4
|
-
this.inherited(arguments);
|
|
5
|
-
_7.add(this.domNode,"dijitContainer");
|
|
6
|
-
},startup:function(){
|
|
7
|
-
if(this._started){
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
this.inherited(arguments);
|
|
11
|
-
var _a=this.getParent&&this.getParent();
|
|
12
|
-
if(!(_a&&_a.isLayoutContainer)){
|
|
13
|
-
this.resize();
|
|
14
|
-
this.own(_5.on("resize",_1.hitch(this,"resize")));
|
|
15
|
-
}
|
|
16
|
-
},resize:function(_b,_c){
|
|
17
|
-
var _d=this.domNode;
|
|
18
|
-
if(_b){
|
|
19
|
-
_8.setMarginBox(_d,_b);
|
|
20
|
-
}
|
|
21
|
-
var mb=_c||{};
|
|
22
|
-
_1.mixin(mb,_b||{});
|
|
23
|
-
if(!("h" in mb)||!("w" in mb)){
|
|
24
|
-
mb=_1.mixin(_8.getMarginBox(_d),mb);
|
|
25
|
-
}
|
|
26
|
-
var cs=_9.getComputedStyle(_d);
|
|
27
|
-
var me=_8.getMarginExtents(_d,cs);
|
|
28
|
-
var be=_8.getBorderExtents(_d,cs);
|
|
29
|
-
var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});
|
|
30
|
-
var pe=_8.getPadExtents(_d,cs);
|
|
31
|
-
this._contentBox={l:_9.toPixelValue(_d,cs.paddingLeft),t:_9.toPixelValue(_d,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};
|
|
32
|
-
this.layout();
|
|
33
|
-
},layout:function(){
|
|
34
|
-
},_setupChild:function(_e){
|
|
35
|
-
var _f=this.baseClass+"-child "+(_e.baseClass?this.baseClass+"-"+_e.baseClass:"");
|
|
36
|
-
_7.add(_e.domNode,_f);
|
|
37
|
-
},addChild:function(_10,_11){
|
|
38
|
-
this.inherited(arguments);
|
|
39
|
-
if(this._started){
|
|
40
|
-
this._setupChild(_10);
|
|
41
|
-
}
|
|
42
|
-
},removeChild:function(_12){
|
|
43
|
-
var cls=this.baseClass+"-child"+(_12.baseClass?" "+this.baseClass+"-"+_12.baseClass:"");
|
|
44
|
-
_7.remove(_12.domNode,cls);
|
|
45
|
-
this.inherited(arguments);
|
|
46
|
-
}});
|
|
47
|
-
});
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
define("dijit/layout/_LayoutWidget", [
|
|
2
|
-
"dojo/_base/lang", // lang.mixin
|
|
3
|
-
"../_Widget",
|
|
4
|
-
"../_Container",
|
|
5
|
-
"../_Contained",
|
|
6
|
-
"../Viewport",
|
|
7
|
-
"dojo/_base/declare", // declare
|
|
8
|
-
"dojo/dom-class", // domClass.add domClass.remove
|
|
9
|
-
"dojo/dom-geometry", // domGeometry.marginBox
|
|
10
|
-
"dojo/dom-style" // domStyle.getComputedStyle
|
|
11
|
-
], function(lang, _Widget, _Container, _Contained, Viewport,
|
|
12
|
-
declare, domClass, domGeometry, domStyle){
|
|
13
|
-
|
|
14
|
-
// module:
|
|
15
|
-
// dijit/layout/_LayoutWidget
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return declare("dijit.layout._LayoutWidget", [_Widget, _Container, _Contained], {
|
|
19
|
-
// summary:
|
|
20
|
-
// Base class for a _Container widget which is responsible for laying out its children.
|
|
21
|
-
// Widgets which mixin this code must define layout() to manage placement and sizing of the children.
|
|
22
|
-
|
|
23
|
-
// baseClass: [protected extension] String
|
|
24
|
-
// This class name is applied to the widget's domNode
|
|
25
|
-
// and also may be used to generate names for sub nodes,
|
|
26
|
-
// for example dijitTabContainer-content.
|
|
27
|
-
baseClass: "dijitLayoutContainer",
|
|
28
|
-
|
|
29
|
-
// isLayoutContainer: [protected] Boolean
|
|
30
|
-
// Indicates that this widget is going to call resize() on its
|
|
31
|
-
// children widgets, setting their size, when they become visible.
|
|
32
|
-
isLayoutContainer: true,
|
|
33
|
-
|
|
34
|
-
// Cancel _WidgetBase's _setTitleAttr because we don't want the title property (used to specify
|
|
35
|
-
// tab labels) to be set as an attribute on this.domNode... otherwise a tooltip shows up over the
|
|
36
|
-
// entire widget.
|
|
37
|
-
_setTitleAttr: null,
|
|
38
|
-
|
|
39
|
-
buildRendering: function(){
|
|
40
|
-
this.inherited(arguments);
|
|
41
|
-
domClass.add(this.domNode, "dijitContainer");
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
startup: function(){
|
|
45
|
-
// summary:
|
|
46
|
-
// Called after all the widgets have been instantiated and their
|
|
47
|
-
// dom nodes have been inserted somewhere under <body>.
|
|
48
|
-
//
|
|
49
|
-
// Widgets should override this method to do any initialization
|
|
50
|
-
// dependent on other widgets existing, and then call
|
|
51
|
-
// this superclass method to finish things off.
|
|
52
|
-
//
|
|
53
|
-
// startup() in subclasses shouldn't do anything
|
|
54
|
-
// size related because the size of the widget hasn't been set yet.
|
|
55
|
-
|
|
56
|
-
if(this._started){ return; }
|
|
57
|
-
|
|
58
|
-
// Need to call inherited first - so that child widgets get started
|
|
59
|
-
// up correctly
|
|
60
|
-
this.inherited(arguments);
|
|
61
|
-
|
|
62
|
-
// If I am a not being controlled by a parent layout widget...
|
|
63
|
-
var parent = this.getParent && this.getParent();
|
|
64
|
-
if(!(parent && parent.isLayoutContainer)){
|
|
65
|
-
// Do recursive sizing and layout of all my descendants
|
|
66
|
-
// (passing in no argument to resize means that it has to glean the size itself)
|
|
67
|
-
this.resize();
|
|
68
|
-
|
|
69
|
-
// Since my parent isn't a layout container, and my style *may be* width=height=100%
|
|
70
|
-
// or something similar (either set directly or via a CSS class),
|
|
71
|
-
// monitor when viewport size changes so that I can re-layout.
|
|
72
|
-
this.own(Viewport.on("resize", lang.hitch(this, "resize")));
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
resize: function(changeSize, resultSize){
|
|
77
|
-
// summary:
|
|
78
|
-
// Call this to resize a widget, or after its size has changed.
|
|
79
|
-
// description:
|
|
80
|
-
// ####Change size mode:
|
|
81
|
-
//
|
|
82
|
-
// When changeSize is specified, changes the marginBox of this widget
|
|
83
|
-
// and forces it to re-layout its contents accordingly.
|
|
84
|
-
// changeSize may specify height, width, or both.
|
|
85
|
-
//
|
|
86
|
-
// If resultSize is specified it indicates the size the widget will
|
|
87
|
-
// become after changeSize has been applied.
|
|
88
|
-
//
|
|
89
|
-
// ####Notification mode:
|
|
90
|
-
//
|
|
91
|
-
// When changeSize is null, indicates that the caller has already changed
|
|
92
|
-
// the size of the widget, or perhaps it changed because the browser
|
|
93
|
-
// window was resized. Tells widget to re-layout its contents accordingly.
|
|
94
|
-
//
|
|
95
|
-
// If resultSize is also specified it indicates the size the widget has
|
|
96
|
-
// become.
|
|
97
|
-
//
|
|
98
|
-
// In either mode, this method also:
|
|
99
|
-
//
|
|
100
|
-
// 1. Sets this._borderBox and this._contentBox to the new size of
|
|
101
|
-
// the widget. Queries the current domNode size if necessary.
|
|
102
|
-
// 2. Calls layout() to resize contents (and maybe adjust child widgets).
|
|
103
|
-
// changeSize: Object?
|
|
104
|
-
// Sets the widget to this margin-box size and position.
|
|
105
|
-
// May include any/all of the following properties:
|
|
106
|
-
// | {w: int, h: int, l: int, t: int}
|
|
107
|
-
// resultSize: Object?
|
|
108
|
-
// The margin-box size of this widget after applying changeSize (if
|
|
109
|
-
// changeSize is specified). If caller knows this size and
|
|
110
|
-
// passes it in, we don't need to query the browser to get the size.
|
|
111
|
-
// | {w: int, h: int}
|
|
112
|
-
|
|
113
|
-
var node = this.domNode;
|
|
114
|
-
|
|
115
|
-
// set margin box size, unless it wasn't specified, in which case use current size
|
|
116
|
-
if(changeSize){
|
|
117
|
-
domGeometry.setMarginBox(node, changeSize);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// If either height or width wasn't specified by the user, then query node for it.
|
|
121
|
-
// But note that setting the margin box and then immediately querying dimensions may return
|
|
122
|
-
// inaccurate results, so try not to depend on it.
|
|
123
|
-
var mb = resultSize || {};
|
|
124
|
-
lang.mixin(mb, changeSize || {}); // changeSize overrides resultSize
|
|
125
|
-
if( !("h" in mb) || !("w" in mb) ){
|
|
126
|
-
mb = lang.mixin(domGeometry.getMarginBox(node), mb); // just use domGeometry.marginBox() to fill in missing values
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// Compute and save the size of my border box and content box
|
|
130
|
-
// (w/out calling domGeometry.getContentBox() since that may fail if size was recently set)
|
|
131
|
-
var cs = domStyle.getComputedStyle(node);
|
|
132
|
-
var me = domGeometry.getMarginExtents(node, cs);
|
|
133
|
-
var be = domGeometry.getBorderExtents(node, cs);
|
|
134
|
-
var bb = (this._borderBox = {
|
|
135
|
-
w: mb.w - (me.w + be.w),
|
|
136
|
-
h: mb.h - (me.h + be.h)
|
|
137
|
-
});
|
|
138
|
-
var pe = domGeometry.getPadExtents(node, cs);
|
|
139
|
-
this._contentBox = {
|
|
140
|
-
l: domStyle.toPixelValue(node, cs.paddingLeft),
|
|
141
|
-
t: domStyle.toPixelValue(node, cs.paddingTop),
|
|
142
|
-
w: bb.w - pe.w,
|
|
143
|
-
h: bb.h - pe.h
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
// Callback for widget to adjust size of its children
|
|
147
|
-
this.layout();
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
layout: function(){
|
|
151
|
-
// summary:
|
|
152
|
-
// Widgets override this method to size and position their contents/children.
|
|
153
|
-
// When this is called this._contentBox is guaranteed to be set (see resize()).
|
|
154
|
-
//
|
|
155
|
-
// This is called after startup(), and also when the widget's size has been
|
|
156
|
-
// changed.
|
|
157
|
-
// tags:
|
|
158
|
-
// protected extension
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
_setupChild: function(/*dijit/_WidgetBase*/child){
|
|
162
|
-
// summary:
|
|
163
|
-
// Common setup for initial children and children which are added after startup
|
|
164
|
-
// tags:
|
|
165
|
-
// protected extension
|
|
166
|
-
|
|
167
|
-
var cls = this.baseClass + "-child "
|
|
168
|
-
+ (child.baseClass ? this.baseClass + "-" + child.baseClass : "");
|
|
169
|
-
domClass.add(child.domNode, cls);
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
addChild: function(/*dijit/_WidgetBase*/ child, /*Integer?*/ insertIndex){
|
|
173
|
-
// Overrides _Container.addChild() to call _setupChild()
|
|
174
|
-
this.inherited(arguments);
|
|
175
|
-
if(this._started){
|
|
176
|
-
this._setupChild(child);
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
removeChild: function(/*dijit/_WidgetBase*/ child){
|
|
181
|
-
// Overrides _Container.removeChild() to remove class added by _setupChild()
|
|
182
|
-
var cls = this.baseClass + "-child"
|
|
183
|
-
+ (child.baseClass ?
|
|
184
|
-
" " + this.baseClass + "-" + child.baseClass : "");
|
|
185
|
-
domClass.remove(child.domNode, cls);
|
|
186
|
-
|
|
187
|
-
this.inherited(arguments);
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
});
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dijit/layout/utils",["dojo/_base/array","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/lang"],function(_1,_2,_3,_4,_5){
|
|
3
|
-
function _6(_7){
|
|
4
|
-
return _7.substring(0,1).toUpperCase()+_7.substring(1);
|
|
5
|
-
};
|
|
6
|
-
function _8(_9,_a){
|
|
7
|
-
var _b=_9.resize?_9.resize(_a):_3.setMarginBox(_9.domNode,_a);
|
|
8
|
-
if(_b){
|
|
9
|
-
_5.mixin(_9,_b);
|
|
10
|
-
}else{
|
|
11
|
-
_5.mixin(_9,_3.getMarginBox(_9.domNode));
|
|
12
|
-
_5.mixin(_9,_a);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
var _c={marginBox2contentBox:function(_d,mb){
|
|
16
|
-
var cs=_4.getComputedStyle(_d);
|
|
17
|
-
var me=_3.getMarginExtents(_d,cs);
|
|
18
|
-
var pb=_3.getPadBorderExtents(_d,cs);
|
|
19
|
-
return {l:_4.toPixelValue(_d,cs.paddingLeft),t:_4.toPixelValue(_d,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};
|
|
20
|
-
},layoutChildren:function(_e,_f,_10,_11,_12){
|
|
21
|
-
_f=_5.mixin({},_f);
|
|
22
|
-
_2.add(_e,"dijitLayoutContainer");
|
|
23
|
-
_10=_1.filter(_10,function(_13){
|
|
24
|
-
return _13.region!="center"&&_13.layoutAlign!="client";
|
|
25
|
-
}).concat(_1.filter(_10,function(_14){
|
|
26
|
-
return _14.region=="center"||_14.layoutAlign=="client";
|
|
27
|
-
}));
|
|
28
|
-
_1.forEach(_10,function(_15){
|
|
29
|
-
var elm=_15.domNode,pos=(_15.region||_15.layoutAlign);
|
|
30
|
-
if(!pos){
|
|
31
|
-
throw new Error("No region setting for "+_15.id);
|
|
32
|
-
}
|
|
33
|
-
var _16=elm.style;
|
|
34
|
-
_16.left=_f.l+"px";
|
|
35
|
-
_16.top=_f.t+"px";
|
|
36
|
-
_16.position="absolute";
|
|
37
|
-
_2.add(elm,"dijitAlign"+_6(pos));
|
|
38
|
-
var _17={};
|
|
39
|
-
if(_11&&_11==_15.id){
|
|
40
|
-
_17[_15.region=="top"||_15.region=="bottom"?"h":"w"]=_12;
|
|
41
|
-
}
|
|
42
|
-
if(pos=="leading"){
|
|
43
|
-
pos=_15.isLeftToRight()?"left":"right";
|
|
44
|
-
}
|
|
45
|
-
if(pos=="trailing"){
|
|
46
|
-
pos=_15.isLeftToRight()?"right":"left";
|
|
47
|
-
}
|
|
48
|
-
if(pos=="top"||pos=="bottom"){
|
|
49
|
-
_17.w=_f.w;
|
|
50
|
-
_8(_15,_17);
|
|
51
|
-
_f.h-=_15.h;
|
|
52
|
-
if(pos=="top"){
|
|
53
|
-
_f.t+=_15.h;
|
|
54
|
-
}else{
|
|
55
|
-
_16.top=_f.t+_f.h+"px";
|
|
56
|
-
}
|
|
57
|
-
}else{
|
|
58
|
-
if(pos=="left"||pos=="right"){
|
|
59
|
-
_17.h=_f.h;
|
|
60
|
-
_8(_15,_17);
|
|
61
|
-
_f.w-=_15.w;
|
|
62
|
-
if(pos=="left"){
|
|
63
|
-
_f.l+=_15.w;
|
|
64
|
-
}else{
|
|
65
|
-
_16.left=_f.l+_f.w+"px";
|
|
66
|
-
}
|
|
67
|
-
}else{
|
|
68
|
-
if(pos=="client"||pos=="center"){
|
|
69
|
-
_8(_15,_f);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}};
|
|
75
|
-
_5.setObject("dijit.layout.utils",_c);
|
|
76
|
-
return _c;
|
|
77
|
-
});
|