neo.mjs 6.17.1 → 6.18.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/apps/ServiceWorker.mjs +3 -5
- package/apps/colors/README.md +8 -0
- package/apps/colors/app.mjs +6 -0
- package/apps/colors/childapps/widget/app.mjs +7 -0
- package/apps/colors/childapps/widget/index.html +11 -0
- package/apps/colors/childapps/widget/neo-config.json +10 -0
- package/apps/colors/childapps/widget/view/Viewport.mjs +19 -0
- package/apps/colors/index.html +11 -0
- package/apps/colors/model/Color.mjs +43 -0
- package/apps/colors/neo-config.json +10 -0
- package/apps/colors/remotes-api.json +13 -0
- package/apps/colors/store/Colors.mjs +24 -0
- package/apps/colors/view/BarChartComponent.mjs +64 -0
- package/apps/colors/view/HeaderToolbar.mjs +95 -0
- package/apps/colors/view/PieChartComponent.mjs +58 -0
- package/apps/colors/view/TableContainer.mjs +91 -0
- package/apps/colors/view/Viewport.mjs +57 -0
- package/apps/colors/view/ViewportController.mjs +277 -0
- package/apps/colors/view/ViewportModel.mjs +53 -0
- package/apps/portal/Util.mjs +11 -0
- package/apps/portal/childapps/preview/neo-config.json +2 -2
- package/apps/portal/neo-config.json +2 -1
- package/apps/portal/remotes-api.json +13 -0
- package/apps/portal/view/HeaderToolbar.mjs +44 -27
- package/apps/portal/view/Viewport.mjs +12 -1
- package/apps/portal/view/ViewportController.mjs +89 -1
- package/apps/portal/view/home/MainContainer.mjs +27 -60
- package/apps/portal/view/home/parts/AfterMath.mjs +58 -0
- package/apps/portal/view/home/parts/Colors.mjs +74 -0
- package/apps/portal/view/home/parts/Features.mjs +52 -0
- package/apps/portal/view/home/parts/Helix.mjs +75 -0
- package/apps/portal/view/home/parts/HelloWorld.mjs +82 -0
- package/apps/portal/view/home/parts/MainNeo.mjs +55 -0
- package/apps/portal/view/home/preview/PageCodeContainer.mjs +55 -0
- package/apps/portal/view/learn/LivePreview.mjs +72 -29
- package/apps/portal/view/learn/MainContainerController.mjs +10 -90
- package/apps/realworld/api/Article.mjs +1 -3
- package/apps/realworld/api/Favorite.mjs +1 -3
- package/apps/realworld/api/Profile.mjs +1 -3
- package/apps/realworld/api/Tag.mjs +1 -3
- package/apps/realworld/api/User.mjs +1 -3
- package/apps/realworld2/api/Article.mjs +1 -3
- package/apps/realworld2/api/Favorite.mjs +1 -3
- package/apps/realworld2/api/Profile.mjs +1 -3
- package/apps/realworld2/api/Tag.mjs +1 -3
- package/apps/realworld2/api/User.mjs +1 -3
- package/apps/realworld2/view/article/HelixContainer.mjs +5 -5
- package/buildScripts/webpack/json/myApps.template.json +1 -0
- package/buildScripts/webpack/webpack.server.config.mjs +4 -1
- package/docs/app/view/MainContainer.mjs +5 -0
- package/docs/app/view/classdetails/MembersList.mjs +1 -1
- package/examples/ServiceWorker.mjs +3 -5
- package/examples/component/helix/Viewport.mjs +309 -0
- package/examples/component/helix/ViewportController.mjs +122 -0
- package/examples/component/helix/app.mjs +2 -2
- package/examples/component/helix/neo-config.json +0 -1
- package/examples/component/multiWindowHelix/Viewport.mjs +11 -3
- package/examples/component/multiWindowHelix/ViewportController.mjs +21 -9
- package/examples/component/multiWindowHelix/neo-config.json +0 -1
- package/examples/fieldWithPrefix/MainContainer.mjs +1 -6
- package/examples/list/animate/MainContainerController.mjs +1 -1
- package/examples/worker/task/MyTasks.mjs +1 -3
- package/package.json +5 -5
- package/resources/data/deck/learnneo/pages/GuideEvents.md +131 -0
- package/resources/data/deck/learnneo/pages/WhyNeo-Speed.md +1 -1
- package/resources/images/logo/neo_logo_primary.svg +6 -0
- package/resources/images/logo/neo_logo_secondary.svg +6 -0
- package/resources/images/logo/neo_logo_text_primary.svg +5 -0
- package/resources/images/logo/neo_logo_text_secondary.svg +5 -0
- package/resources/images/logo/neo_logo_white.svg +6 -0
- package/resources/scss/src/apps/colors/BarChartComponent.scss +3 -0
- package/resources/scss/src/apps/colors/HeaderToolbar.scss +11 -0
- package/resources/scss/src/apps/colors/PieChartComponent.scss +3 -0
- package/resources/scss/src/apps/colors/TableContainer.scss +64 -0
- package/resources/scss/src/apps/colors/Viewport.scss +9 -0
- package/resources/scss/src/apps/portal/HeaderToolbar.scss +189 -17
- package/resources/scss/src/apps/portal/home/MainContainer.scss +46 -20
- package/resources/scss/src/apps/portal/home/parts/Features.scss +3 -0
- package/resources/scss/src/apps/portal/home/preview/PageCodeContainer.scss +115 -0
- package/resources/scss/src/component/Base.scss +2 -0
- package/resources/scss/src/examples/component/multiWindowHelix/Viewport.scss +3 -0
- package/resources/scss/src/form/field/CheckBox.scss +1 -0
- package/resources/scss/src/tab/header/Button.scss +2 -1
- package/resources/scss/theme-dark/Global.scss +8 -0
- package/resources/scss/theme-dark/button/Base.scss +1 -1
- package/resources/scss/theme-dark/tab/header/Button.scss +1 -0
- package/resources/scss/theme-light/Global.scss +8 -0
- package/resources/scss/theme-light/button/Base.scss +1 -1
- package/resources/scss/theme-light/tab/header/Button.scss +1 -0
- package/resources/scss/theme-neo-light/Global.scss +53 -53
- package/resources/scss/theme-neo-light/button/Base.scss +3 -4
- package/resources/scss/theme-neo-light/tab/header/Button.scss +6 -8
- package/src/DefaultConfig.mjs +2 -2
- package/src/Fetch.mjs +1 -3
- package/src/Main.mjs +13 -11
- package/src/MicroLoader.mjs +2 -2
- package/src/Neo.mjs +27 -26
- package/src/Xhr.mjs +1 -3
- package/src/button/Base.mjs +6 -4
- package/src/button/Split.mjs +10 -9
- package/src/calendar/view/EditEventContainer.mjs +13 -12
- package/src/calendar/view/MainContainer.mjs +40 -40
- package/src/calendar/view/MainContainerModel.mjs +5 -5
- package/src/calendar/view/SettingsContainer.mjs +11 -11
- package/src/calendar/view/YearComponent.mjs +73 -75
- package/src/calendar/view/calendars/ColorsList.mjs +2 -2
- package/src/calendar/view/calendars/EditContainer.mjs +2 -2
- package/src/calendar/view/calendars/List.mjs +12 -13
- package/src/calendar/view/month/Component.mjs +72 -73
- package/src/calendar/view/settings/GeneralContainer.mjs +5 -5
- package/src/calendar/view/settings/MonthContainer.mjs +5 -5
- package/src/calendar/view/settings/WeekContainer.mjs +6 -6
- package/src/calendar/view/settings/YearContainer.mjs +4 -4
- package/src/calendar/view/week/Component.mjs +47 -57
- package/src/calendar/view/week/EventDragZone.mjs +43 -50
- package/src/calendar/view/week/TimeAxisComponent.mjs +21 -21
- package/src/calendar/view/week/plugin/DragDrop.mjs +53 -45
- package/src/calendar/view/week/plugin/EventResizable.mjs +8 -3
- package/src/collection/Base.mjs +15 -22
- package/src/collection/Filter.mjs +4 -9
- package/src/collection/Sorter.mjs +6 -7
- package/src/component/Base.mjs +149 -87
- package/src/component/Canvas.mjs +9 -9
- package/src/component/Carousel.mjs +31 -33
- package/src/component/Chip.mjs +9 -9
- package/src/component/Circle.mjs +84 -91
- package/src/component/Clock.mjs +8 -8
- package/src/component/DateSelector.mjs +14 -15
- package/src/component/Gallery.mjs +82 -80
- package/src/component/Helix.mjs +131 -126
- package/src/component/Iframe.mjs +1 -1
- package/src/component/Label.mjs +1 -1
- package/src/component/Legend.mjs +3 -3
- package/src/component/Process.mjs +39 -37
- package/src/component/Splitter.mjs +9 -11
- package/src/component/StatusBadge.mjs +2 -3
- package/src/component/Timer.mjs +62 -68
- package/src/component/Toast.mjs +11 -11
- package/src/component/Video.mjs +7 -8
- package/src/component/mwc/Button.mjs +10 -10
- package/src/component/mwc/TextField.mjs +17 -17
- package/src/component/wrapper/AmChart.mjs +5 -5
- package/src/component/wrapper/CesiumJS.mjs +11 -17
- package/src/component/wrapper/GoogleMaps.mjs +58 -35
- package/src/component/wrapper/MapboxGL.mjs +112 -79
- package/src/component/wrapper/MonacoEditor.mjs +1 -6
- package/src/container/Accordion.mjs +18 -20
- package/src/container/AccordionItem.mjs +12 -11
- package/src/container/Base.mjs +29 -28
- package/src/container/Panel.mjs +9 -9
- package/src/container/Viewport.mjs +30 -1
- package/src/controller/Base.mjs +12 -14
- package/src/controller/Component.mjs +60 -66
- package/src/core/Base.mjs +5 -8
- package/src/core/IdGenerator.mjs +1 -3
- package/src/core/Observable.mjs +17 -17
- package/src/core/Util.mjs +5 -5
- package/src/data/Model.mjs +3 -3
- package/src/data/RecordFactory.mjs +3 -6
- package/src/data/Store.mjs +34 -34
- package/src/data/connection/Fetch.mjs +3 -3
- package/src/data/connection/WebSocket.mjs +21 -25
- package/src/data/connection/Xhr.mjs +31 -28
- package/src/date/DayViewComponent.mjs +1 -1
- package/src/date/SelectorContainer.mjs +2 -2
- package/src/dialog/Base.mjs +27 -25
- package/src/dialog/header/Toolbar.mjs +5 -4
- package/src/draggable/DragProxyComponent.mjs +7 -4
- package/src/draggable/DragZone.mjs +30 -30
- package/src/draggable/DropZone.mjs +7 -7
- package/src/draggable/list/DragZone.mjs +18 -18
- package/src/draggable/tab/header/toolbar/SortZone.mjs +7 -7
- package/src/draggable/toolbar/DragZone.mjs +15 -15
- package/src/draggable/toolbar/SortZone.mjs +30 -31
- package/src/draggable/tree/DragZone.mjs +9 -9
- package/src/filter/BooleanContainer.mjs +3 -3
- package/src/filter/NumberContainer.mjs +5 -5
- package/src/filter/ToggleOperatorsButton.mjs +5 -5
- package/src/form/Fieldset.mjs +26 -26
- package/src/form/field/Base.mjs +1 -1
- package/src/form/field/CheckBox.mjs +15 -16
- package/src/form/field/Color.mjs +13 -15
- package/src/form/field/ComboBox.mjs +16 -24
- package/src/form/field/Country.mjs +1 -1
- package/src/form/field/Date.mjs +3 -4
- package/src/form/field/Display.mjs +1 -1
- package/src/form/field/Email.mjs +2 -2
- package/src/form/field/Number.mjs +51 -56
- package/src/form/field/Picker.mjs +2 -2
- package/src/form/field/Radio.mjs +1 -1
- package/src/form/field/Range.mjs +7 -6
- package/src/form/field/Text.mjs +29 -36
- package/src/form/field/TextArea.mjs +9 -9
- package/src/form/field/Time.mjs +30 -30
- package/src/form/field/trigger/Base.mjs +19 -13
- package/src/form/field/trigger/Clear.mjs +13 -13
- package/src/form/field/trigger/CopyToClipboard.mjs +7 -7
- package/src/form/field/trigger/Picker.mjs +2 -2
- package/src/form/field/trigger/SpinDown.mjs +1 -1
- package/src/form/field/trigger/SpinUp.mjs +1 -1
- package/src/form/field/trigger/SpinUpDown.mjs +3 -3
- package/src/form/field/trigger/Time.mjs +3 -3
- package/src/grid/Container.mjs +33 -33
- package/src/grid/View.mjs +20 -22
- package/src/grid/header/Button.mjs +12 -12
- package/src/grid/header/Toolbar.mjs +4 -4
- package/src/layout/Base.mjs +5 -4
- package/src/layout/Card.mjs +15 -16
- package/src/layout/Fit.mjs +22 -8
- package/src/layout/Flexbox.mjs +30 -29
- package/src/layout/Form.mjs +15 -15
- package/src/layout/Grid.mjs +2 -2
- package/src/layout/HBox.mjs +3 -2
- package/src/layout/VBox.mjs +3 -2
- package/src/list/Base.mjs +45 -47
- package/src/list/Chip.mjs +4 -4
- package/src/list/Circle.mjs +3 -3
- package/src/list/Color.mjs +4 -4
- package/src/list/Component.mjs +10 -10
- package/src/list/plugin/Animate.mjs +18 -13
- package/src/main/DomAccess.mjs +92 -56
- package/src/main/DomEvents.mjs +38 -39
- package/src/main/addon/AmCharts.mjs +37 -37
- package/src/main/addon/AnalyticsByGoogle.mjs +4 -4
- package/src/main/addon/CesiumJS.mjs +8 -8
- package/src/main/addon/CloneNode.mjs +5 -5
- package/src/main/addon/Cookie.mjs +4 -4
- package/src/main/addon/DragDrop.mjs +35 -34
- package/src/main/addon/GoogleMaps.mjs +19 -19
- package/src/main/addon/LocalStorage.mjs +3 -3
- package/src/main/addon/MapboxGL.mjs +40 -41
- package/src/main/addon/MonacoEditor.mjs +5 -5
- package/src/main/addon/Mwc.mjs +6 -6
- package/src/main/addon/Navigator.mjs +35 -39
- package/src/main/addon/Popover.mjs +5 -6
- package/src/main/addon/PrefixField.mjs +1 -2
- package/src/main/addon/ServiceWorker.mjs +9 -9
- package/src/main/addon/Siesta.mjs +3 -2
- package/src/main/addon/Stylesheet.mjs +37 -37
- package/src/main/addon/WebComponent.mjs +2 -3
- package/src/main/addon/WindowPosition.mjs +18 -18
- package/src/main/draggable/sensor/Base.mjs +2 -2
- package/src/main/draggable/sensor/Mouse.mjs +15 -15
- package/src/main/draggable/sensor/Touch.mjs +24 -23
- package/src/main/mixin/DeltaUpdates.mjs +10 -12
- package/src/main/mixin/TouchDomEvents.mjs +6 -6
- package/src/manager/Base.mjs +4 -4
- package/src/manager/Component.mjs +41 -41
- package/src/manager/DomEvent.mjs +52 -50
- package/src/manager/Focus.mjs +14 -16
- package/src/manager/Instance.mjs +2 -4
- package/src/manager/Store.mjs +4 -8
- package/src/manager/Task.mjs +20 -22
- package/src/manager/Toast.mjs +14 -16
- package/src/manager/rpc/Api.mjs +1 -3
- package/src/manager/rpc/Message.mjs +16 -18
- package/src/menu/List.mjs +16 -16
- package/src/menu/Panel.mjs +4 -4
- package/src/model/Component.mjs +5 -5
- package/src/plugin/Base.mjs +2 -0
- package/src/plugin/Popover.mjs +1 -1
- package/src/plugin/PrefixField.mjs +35 -45
- package/src/plugin/Resizable.mjs +86 -101
- package/src/plugin/Responsive.mjs +175 -0
- package/src/remotes/Api.mjs +4 -6
- package/src/selection/CircleModel.mjs +12 -16
- package/src/selection/DateSelectorModel.mjs +21 -23
- package/src/selection/GalleryModel.mjs +49 -63
- package/src/selection/HelixModel.mjs +35 -41
- package/src/selection/ListModel.mjs +9 -14
- package/src/selection/Model.mjs +31 -31
- package/src/selection/TreeAccordionModel.mjs +74 -80
- package/src/selection/grid/CellColumnModel.mjs +10 -10
- package/src/selection/grid/CellColumnRowModel.mjs +10 -10
- package/src/selection/grid/CellModel.mjs +26 -28
- package/src/selection/grid/CellRowModel.mjs +24 -24
- package/src/selection/grid/ColumnModel.mjs +16 -20
- package/src/selection/grid/RowModel.mjs +27 -29
- package/src/selection/menu/ListModel.mjs +2 -2
- package/src/selection/table/CellColumnModel.mjs +12 -12
- package/src/selection/table/CellColumnRowModel.mjs +12 -12
- package/src/selection/table/CellModel.mjs +26 -29
- package/src/selection/table/CellRowModel.mjs +19 -19
- package/src/selection/table/ColumnModel.mjs +18 -22
- package/src/selection/table/RowModel.mjs +27 -29
- package/src/sitemap/Component.mjs +20 -20
- package/src/sitemap/Store.mjs +1 -1
- package/src/tab/Container.mjs +15 -15
- package/src/tab/Strip.mjs +1 -1
- package/src/tab/header/Toolbar.mjs +4 -4
- package/src/table/Container.mjs +8 -10
- package/src/table/View.mjs +29 -34
- package/src/table/header/Button.mjs +18 -18
- package/src/table/header/Toolbar.mjs +2 -2
- package/src/toolbar/Base.mjs +14 -14
- package/src/toolbar/Breadcrumb.mjs +11 -11
- package/src/toolbar/Paging.mjs +18 -18
- package/src/tooltip/Base.mjs +20 -22
- package/src/tree/Accordion.mjs +69 -75
- package/src/tree/List.mjs +22 -25
- package/src/util/Array.mjs +19 -18
- package/src/util/ClassSystem.mjs +9 -9
- package/src/util/Css.mjs +2 -2
- package/src/util/Date.mjs +9 -9
- package/src/util/Function.mjs +2 -2
- package/src/util/HashHistory.mjs +3 -5
- package/src/util/KeyNavigation.mjs +17 -17
- package/src/util/Logger.mjs +9 -9
- package/src/util/Matrix.mjs +19 -19
- package/src/util/String.mjs +9 -9
- package/src/util/Style.mjs +11 -11
- package/src/util/VDom.mjs +12 -14
- package/src/util/VNode.mjs +29 -29
- package/src/vdom/Helper.mjs +84 -93
- package/src/vdom/VNode.mjs +1 -1
- package/src/worker/App.mjs +19 -16
- package/src/worker/Base.mjs +14 -15
- package/src/worker/Canvas.mjs +1 -3
- package/src/worker/Data.mjs +4 -8
- package/src/worker/Manager.mjs +27 -32
- package/src/worker/Message.mjs +1 -1
- package/src/worker/ServiceBase.mjs +38 -42
- package/src/worker/Task.mjs +1 -3
- package/src/worker/VDom.mjs +2 -4
- package/src/worker/mixin/RemoteMethodAccess.mjs +5 -6
- package/examples/component/helix/MainContainer.mjs +0 -340
- package/resources/images/Neo_Vector.svg +0 -3
- package/resources/images/logos/Github-logo-black.svg +0 -1
- package/resources/images/logos/Slack-logo-black.svg +0 -17
package/src/toolbar/Base.mjs
CHANGED
@@ -73,7 +73,7 @@ class Base extends Container {
|
|
73
73
|
super.afterSetAppName(value, oldValue);
|
74
74
|
|
75
75
|
if (this.sortZone) {
|
76
|
-
this.sortZone.appName = value
|
76
|
+
this.sortZone.appName = value
|
77
77
|
}
|
78
78
|
}
|
79
79
|
|
@@ -85,15 +85,15 @@ class Base extends Container {
|
|
85
85
|
*/
|
86
86
|
afterSetDock(value, oldValue) {
|
87
87
|
let me = this,
|
88
|
-
cls
|
88
|
+
{cls} = me,
|
89
89
|
dockPositions = me.getStaticConfig('dockPositions');
|
90
90
|
|
91
91
|
dockPositions.forEach(key => {
|
92
|
-
key !== null && NeoArray[key === value ? 'add' : 'remove'](cls, 'neo-dock-' + key)
|
92
|
+
key !== null && NeoArray[key === value ? 'add' : 'remove'](cls, 'neo-dock-' + key)
|
93
93
|
});
|
94
94
|
|
95
95
|
me.cls = cls;
|
96
|
-
me.layout = me.getLayoutConfig()
|
96
|
+
me.layout = me.getLayoutConfig()
|
97
97
|
}
|
98
98
|
|
99
99
|
/**
|
@@ -113,8 +113,8 @@ class Base extends Container {
|
|
113
113
|
boundaryContainerId: me.id,
|
114
114
|
owner : me,
|
115
115
|
...me.sortZoneConfig
|
116
|
-
})
|
117
|
-
})
|
116
|
+
})
|
117
|
+
})
|
118
118
|
}
|
119
119
|
}
|
120
120
|
|
@@ -126,7 +126,7 @@ class Base extends Container {
|
|
126
126
|
* @protected
|
127
127
|
*/
|
128
128
|
beforeSetDock(value, oldValue) {
|
129
|
-
return this.beforeSetEnumValue(value, oldValue, 'dock', 'dockPositions')
|
129
|
+
return this.beforeSetEnumValue(value, oldValue, 'dock', 'dockPositions')
|
130
130
|
}
|
131
131
|
|
132
132
|
/**
|
@@ -141,12 +141,12 @@ class Base extends Container {
|
|
141
141
|
items[index] = Neo.create({
|
142
142
|
module: Component,
|
143
143
|
flex : 1
|
144
|
-
})
|
144
|
+
})
|
145
145
|
}
|
146
|
-
})
|
146
|
+
})
|
147
147
|
}
|
148
148
|
|
149
|
-
return super.createItems()
|
149
|
+
return super.createItems()
|
150
150
|
}
|
151
151
|
|
152
152
|
/**
|
@@ -166,7 +166,7 @@ class Base extends Container {
|
|
166
166
|
align: 'center',
|
167
167
|
pack : 'start'
|
168
168
|
};
|
169
|
-
break
|
169
|
+
break
|
170
170
|
case 'left':
|
171
171
|
layoutConfig = {
|
172
172
|
ntype : 'vbox',
|
@@ -174,7 +174,7 @@ class Base extends Container {
|
|
174
174
|
direction: 'column-reverse',
|
175
175
|
pack : 'start'
|
176
176
|
};
|
177
|
-
break
|
177
|
+
break
|
178
178
|
case 'right':
|
179
179
|
layoutConfig = {
|
180
180
|
ntype : 'vbox',
|
@@ -182,11 +182,11 @@ class Base extends Container {
|
|
182
182
|
direction: 'column',
|
183
183
|
pack : 'start'
|
184
184
|
};
|
185
|
-
break
|
185
|
+
break
|
186
186
|
}
|
187
187
|
}
|
188
188
|
|
189
|
-
return layoutConfig || me.layout
|
189
|
+
return layoutConfig || me.layout
|
190
190
|
}
|
191
191
|
}
|
192
192
|
|
@@ -75,7 +75,7 @@ class Breadcrumb extends Toolbar {
|
|
75
75
|
|
76
76
|
let me = this;
|
77
77
|
|
78
|
-
me.updateOnHashChange && HashHistory.on('change', me.onHashChange, me)
|
78
|
+
me.updateOnHashChange && HashHistory.on('change', me.onHashChange, me)
|
79
79
|
}
|
80
80
|
|
81
81
|
/**
|
@@ -119,7 +119,7 @@ class Breadcrumb extends Toolbar {
|
|
119
119
|
*/
|
120
120
|
beforeSetStore(value, oldValue) {
|
121
121
|
oldValue?.destroy();
|
122
|
-
return ClassSystemUtil.beforeSetInstance(value, null, this.defaultStoreConfig)
|
122
|
+
return ClassSystemUtil.beforeSetInstance(value, null, this.defaultStoreConfig)
|
123
123
|
}
|
124
124
|
|
125
125
|
/**
|
@@ -130,7 +130,7 @@ class Breadcrumb extends Toolbar {
|
|
130
130
|
|
131
131
|
me.updateOnHashChange && HashHistory.un('change', me.onHashChange, me);
|
132
132
|
|
133
|
-
super.destroy(...args)
|
133
|
+
super.destroy(...args)
|
134
134
|
}
|
135
135
|
|
136
136
|
/**
|
@@ -139,7 +139,7 @@ class Breadcrumb extends Toolbar {
|
|
139
139
|
getPathItems() {
|
140
140
|
let items = [],
|
141
141
|
parentId = this.activeKey,
|
142
|
-
store
|
142
|
+
{store} = this,
|
143
143
|
item;
|
144
144
|
|
145
145
|
while (parentId !== null) {
|
@@ -147,10 +147,10 @@ class Breadcrumb extends Toolbar {
|
|
147
147
|
|
148
148
|
items.unshift(item);
|
149
149
|
|
150
|
-
parentId = item.parentId
|
150
|
+
parentId = item.parentId
|
151
151
|
}
|
152
152
|
|
153
|
-
return items
|
153
|
+
return items
|
154
154
|
}
|
155
155
|
|
156
156
|
/**
|
@@ -159,17 +159,17 @@ class Breadcrumb extends Toolbar {
|
|
159
159
|
*/
|
160
160
|
onHashChange(value, oldValue) {
|
161
161
|
let hashString = value?.hashString,
|
162
|
-
store
|
162
|
+
{store} = this,
|
163
163
|
activeKey;
|
164
164
|
|
165
165
|
if (hashString && !hashString.endsWith('/')) {
|
166
|
-
hashString += '/'
|
166
|
+
hashString += '/'
|
167
167
|
}
|
168
168
|
|
169
169
|
activeKey = hashString && store.findFirst({route: hashString})?.[store.keyProperty] || null;
|
170
170
|
|
171
171
|
if (activeKey !== null) {
|
172
|
-
this.activeKey = activeKey
|
172
|
+
this.activeKey = activeKey
|
173
173
|
}
|
174
174
|
}
|
175
175
|
|
@@ -177,7 +177,7 @@ class Breadcrumb extends Toolbar {
|
|
177
177
|
* @param {Object[]} items
|
178
178
|
*/
|
179
179
|
onStoreLoad(items) {
|
180
|
-
this.afterSetActiveKey(this.activeKey, null)
|
180
|
+
this.afterSetActiveKey(this.activeKey, null)
|
181
181
|
}
|
182
182
|
|
183
183
|
/**
|
@@ -185,7 +185,7 @@ class Breadcrumb extends Toolbar {
|
|
185
185
|
*/
|
186
186
|
updateItems() {
|
187
187
|
let me = this,
|
188
|
-
items
|
188
|
+
{items} = me,
|
189
189
|
pathItems = me.getPathItems(),
|
190
190
|
i = 0,
|
191
191
|
len = pathItems.length,
|
package/src/toolbar/Paging.mjs
CHANGED
@@ -120,7 +120,7 @@ class Paging extends Toolbar {
|
|
120
120
|
*/
|
121
121
|
afterSetCurrentPage(value, oldValue) {
|
122
122
|
if (oldValue) {
|
123
|
-
this.store.currentPage = value
|
123
|
+
this.store.currentPage = value
|
124
124
|
}
|
125
125
|
}
|
126
126
|
|
@@ -133,7 +133,7 @@ class Paging extends Toolbar {
|
|
133
133
|
afterSetPageSize(value, oldValue) {
|
134
134
|
if (oldValue) {
|
135
135
|
this._currentPage = 1; // silent update
|
136
|
-
this.store.pageSize = value
|
136
|
+
this.store.pageSize = value
|
137
137
|
}
|
138
138
|
}
|
139
139
|
|
@@ -144,7 +144,7 @@ class Paging extends Toolbar {
|
|
144
144
|
* @protected
|
145
145
|
*/
|
146
146
|
afterSetPagesText(value, oldValue) {
|
147
|
-
oldValue && this.updatePagesText()
|
147
|
+
oldValue && this.updatePagesText()
|
148
148
|
}
|
149
149
|
|
150
150
|
/**
|
@@ -154,7 +154,7 @@ class Paging extends Toolbar {
|
|
154
154
|
* @protected
|
155
155
|
*/
|
156
156
|
afterSetTotalText(value, oldValue) {
|
157
|
-
oldValue && this.updateTotalText()
|
157
|
+
oldValue && this.updateTotalText()
|
158
158
|
}
|
159
159
|
|
160
160
|
/**
|
@@ -172,28 +172,28 @@ class Paging extends Toolbar {
|
|
172
172
|
|
173
173
|
oldValue?.un(listeners);
|
174
174
|
|
175
|
-
return ClassSystemUtil.beforeSetInstance(value, null, {listeners})
|
175
|
+
return ClassSystemUtil.beforeSetInstance(value, null, {listeners})
|
176
176
|
}
|
177
177
|
|
178
178
|
/**
|
179
179
|
* @returns {Number}
|
180
180
|
*/
|
181
181
|
getMaxPages() {
|
182
|
-
return Math.ceil(this.store.totalCount / this.pageSize)
|
182
|
+
return Math.ceil(this.store.totalCount / this.pageSize)
|
183
183
|
}
|
184
184
|
|
185
185
|
/**
|
186
186
|
*
|
187
187
|
*/
|
188
188
|
onFirstPageButtonClick() {
|
189
|
-
this.currentPage = 1
|
189
|
+
this.currentPage = 1
|
190
190
|
}
|
191
191
|
|
192
192
|
/**
|
193
193
|
*
|
194
194
|
*/
|
195
195
|
onLastPageButtonClick() {
|
196
|
-
this.currentPage = this.getMaxPages()
|
196
|
+
this.currentPage = this.getMaxPages()
|
197
197
|
}
|
198
198
|
|
199
199
|
/**
|
@@ -203,7 +203,7 @@ class Paging extends Toolbar {
|
|
203
203
|
let me = this;
|
204
204
|
|
205
205
|
if (me.currentPage < me.getMaxPages()) {
|
206
|
-
me.currentPage
|
206
|
+
me.currentPage++
|
207
207
|
}
|
208
208
|
}
|
209
209
|
|
@@ -211,7 +211,7 @@ class Paging extends Toolbar {
|
|
211
211
|
* @param {Object} data
|
212
212
|
*/
|
213
213
|
onPageSizeFieldChange(data) {
|
214
|
-
this.pageSize = data.value
|
214
|
+
this.pageSize = data.value
|
215
215
|
}
|
216
216
|
|
217
217
|
/**
|
@@ -219,7 +219,7 @@ class Paging extends Toolbar {
|
|
219
219
|
*/
|
220
220
|
onPrevPageButtonClick() {
|
221
221
|
if (this.currentPage > 1) {
|
222
|
-
this.currentPage
|
222
|
+
this.currentPage--
|
223
223
|
}
|
224
224
|
}
|
225
225
|
|
@@ -233,21 +233,21 @@ class Paging extends Toolbar {
|
|
233
233
|
|
234
234
|
me.updateNavigationButtons();
|
235
235
|
me.updatePagesText();
|
236
|
-
me.updateTotalText()
|
236
|
+
me.updateTotalText()
|
237
237
|
}
|
238
238
|
|
239
239
|
/**
|
240
240
|
*
|
241
241
|
*/
|
242
242
|
updateNavigationButtons() {
|
243
|
-
let me
|
244
|
-
currentPage = me
|
245
|
-
maxPages
|
243
|
+
let me = this,
|
244
|
+
{currentPage} = me,
|
245
|
+
maxPages = me.getMaxPages();
|
246
246
|
|
247
247
|
me.down({reference: 'nav-button-first'}).disabled = currentPage === 1;
|
248
248
|
me.down({reference: 'nav-button-prev'}) .disabled = currentPage === 1;
|
249
249
|
me.down({reference: 'nav-button-next'}) .disabled = currentPage === maxPages;
|
250
|
-
me.down({reference: 'nav-button-last'}) .disabled = currentPage === maxPages
|
250
|
+
me.down({reference: 'nav-button-last'}) .disabled = currentPage === maxPages
|
251
251
|
}
|
252
252
|
|
253
253
|
/**
|
@@ -256,7 +256,7 @@ class Paging extends Toolbar {
|
|
256
256
|
updatePagesText() {
|
257
257
|
let me = this;
|
258
258
|
|
259
|
-
me.down({reference: 'pages-text'}).text = me.pagesText(me)
|
259
|
+
me.down({reference: 'pages-text'}).text = me.pagesText(me)
|
260
260
|
}
|
261
261
|
|
262
262
|
/**
|
@@ -265,7 +265,7 @@ class Paging extends Toolbar {
|
|
265
265
|
updateTotalText() {
|
266
266
|
let me = this;
|
267
267
|
|
268
|
-
me.down({reference: 'total-text'}).text = me.totalText(me.store.totalCount)
|
268
|
+
me.down({reference: 'total-text'}).text = me.totalText(me.store.totalCount)
|
269
269
|
}
|
270
270
|
}
|
271
271
|
|
package/src/tooltip/Base.mjs
CHANGED
@@ -93,7 +93,7 @@ class Base extends Container {
|
|
93
93
|
id += 'DelayTaskId';
|
94
94
|
|
95
95
|
this.clearTimeout(this[id]);
|
96
|
-
this[id] = setTimeout(callback, delay)
|
96
|
+
this[id] = setTimeout(callback, delay)
|
97
97
|
}
|
98
98
|
|
99
99
|
/**
|
@@ -153,12 +153,12 @@ class Base extends Container {
|
|
153
153
|
item = items[0];
|
154
154
|
|
155
155
|
if (item?.ntype === 'label') {
|
156
|
-
item.text = value
|
156
|
+
item.text = value
|
157
157
|
} else {
|
158
158
|
me.add({
|
159
159
|
module: Label,
|
160
160
|
text : value
|
161
|
-
})
|
161
|
+
})
|
162
162
|
}
|
163
163
|
}
|
164
164
|
}
|
@@ -169,7 +169,7 @@ class Base extends Container {
|
|
169
169
|
*/
|
170
170
|
clearTimeout(timers) {
|
171
171
|
if (!Array.isArray(timers)) {
|
172
|
-
timers = [timers]
|
172
|
+
timers = [timers]
|
173
173
|
}
|
174
174
|
|
175
175
|
let me = this,
|
@@ -180,9 +180,9 @@ class Base extends Container {
|
|
180
180
|
|
181
181
|
if (me[id]) {
|
182
182
|
clearTimeout(me[id]);
|
183
|
-
me[id] = null
|
183
|
+
me[id] = null
|
184
184
|
}
|
185
|
-
})
|
185
|
+
})
|
186
186
|
}
|
187
187
|
|
188
188
|
/**
|
@@ -218,13 +218,13 @@ class Base extends Container {
|
|
218
218
|
}
|
219
219
|
|
220
220
|
// Set ourself up as the target wants
|
221
|
-
me.set(config)
|
221
|
+
me.set(config)
|
222
222
|
}
|
223
223
|
}
|
224
224
|
});
|
225
225
|
}
|
226
226
|
|
227
|
-
return singletons[app.name]
|
227
|
+
return singletons[app.name]
|
228
228
|
}
|
229
229
|
|
230
230
|
/**
|
@@ -245,7 +245,7 @@ class Base extends Container {
|
|
245
245
|
let me = this;
|
246
246
|
|
247
247
|
if (me.hideDelay) {
|
248
|
-
me.addTimeout('hide', me.hide.bind(me), me.hideDelay)
|
248
|
+
me.addTimeout('hide', me.hide.bind(me), me.hideDelay)
|
249
249
|
} else {
|
250
250
|
me.hide(data)
|
251
251
|
}
|
@@ -255,11 +255,8 @@ class Base extends Container {
|
|
255
255
|
* @param {Object} data
|
256
256
|
*/
|
257
257
|
onDelegateMouseEnter(data) {
|
258
|
-
|
259
|
-
|
260
|
-
{
|
261
|
-
currentTarget
|
262
|
-
} = data;
|
258
|
+
let me = this,
|
259
|
+
{currentTarget} = data;
|
263
260
|
|
264
261
|
// If it's an internal move within the delegate, do nothing
|
265
262
|
if (currentTarget !== me.activeTarget?.id) {
|
@@ -279,10 +276,10 @@ class Base extends Container {
|
|
279
276
|
// Still visible, just realign
|
280
277
|
if (me.mounted) {
|
281
278
|
me.show();
|
282
|
-
me.alignTo()
|
279
|
+
me.alignTo()
|
283
280
|
}
|
284
281
|
else {
|
285
|
-
me.showDelayed(data)
|
282
|
+
me.showDelayed(data)
|
286
283
|
}
|
287
284
|
}
|
288
285
|
}
|
@@ -291,7 +288,7 @@ class Base extends Container {
|
|
291
288
|
static delegateFilter(path) {
|
292
289
|
for (let i = 0, { length } = path; i < length; i++) {
|
293
290
|
if (path[i].cls.includes('neo-uses-shared-tooltip') || path[i].data['neoTooltip']) {
|
294
|
-
return i
|
291
|
+
return i
|
295
292
|
}
|
296
293
|
}
|
297
294
|
}
|
@@ -300,7 +297,7 @@ class Base extends Container {
|
|
300
297
|
* @param {Object} data
|
301
298
|
*/
|
302
299
|
onDelegateMouseLeave(data) {
|
303
|
-
|
300
|
+
let me = this;
|
304
301
|
|
305
302
|
// If it's an internal move within the delegate, do nothing
|
306
303
|
if (data.currentTarget === me.activeTarget?.id) {
|
@@ -308,8 +305,9 @@ class Base extends Container {
|
|
308
305
|
target : me.activeTarget,
|
309
306
|
data
|
310
307
|
});
|
308
|
+
|
311
309
|
me.activeTarget = null;
|
312
|
-
me.hideDelayed(data)
|
310
|
+
me.hideDelayed(data)
|
313
311
|
}
|
314
312
|
}
|
315
313
|
|
@@ -322,7 +320,7 @@ class Base extends Container {
|
|
322
320
|
targetId = data.path[0].id;
|
323
321
|
|
324
322
|
// only use path[0] based events to ignore mouseenter & leave for child nodes
|
325
|
-
me.id === targetId && me.clearTimeout(['dismiss', 'hide'])
|
323
|
+
me.id === targetId && me.clearTimeout(['dismiss', 'hide'])
|
326
324
|
}
|
327
325
|
|
328
326
|
/**
|
@@ -334,7 +332,7 @@ class Base extends Container {
|
|
334
332
|
targetId = data.path[0].id;
|
335
333
|
|
336
334
|
// only use path[0] based events to ignore mouseenter & leave for child nodes
|
337
|
-
me.id === targetId && me.hideDelayed(null)
|
335
|
+
me.id === targetId && me.hideDelayed(null)
|
338
336
|
}
|
339
337
|
|
340
338
|
/**
|
@@ -349,7 +347,7 @@ class Base extends Container {
|
|
349
347
|
me.clearTimeout(['hide', 'dismiss']);
|
350
348
|
|
351
349
|
if (me.dismissDelay) {
|
352
|
-
me.addTimeout('dismiss', me.hide.bind(me), me.dismissDelay, data)
|
350
|
+
me.addTimeout('dismiss', me.hide.bind(me), me.dismissDelay, data)
|
353
351
|
}
|
354
352
|
|
355
353
|
!me.mounted && me.render(true)
|