neo.mjs 6.17.2 → 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 +1 -1
- package/apps/portal/view/ViewportController.mjs +89 -1
- package/apps/portal/view/home/MainContainer.mjs +5 -6
- package/apps/portal/view/home/parts/AfterMath.mjs +1 -1
- package/apps/portal/view/home/parts/{CoolStuff.mjs → Colors.mjs} +20 -28
- package/apps/portal/view/home/parts/Helix.mjs +75 -0
- package/apps/portal/view/learn/LivePreview.mjs +56 -15
- 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/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 +2 -2
- 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_text_primary.svg +5 -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 +1 -1
- package/resources/scss/src/apps/portal/home/MainContainer.scss +1 -1
- package/resources/scss/src/apps/portal/home/preview/PageCodeContainer.scss +1 -1
- 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 +25 -31
- 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/container/Accordion.mjs +18 -20
- package/src/container/AccordionItem.mjs +12 -11
- package/src/container/Base.mjs +24 -23
- package/src/container/Panel.mjs +9 -9
- 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 +41 -44
- 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 +1 -1
- 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_Logo_Blue.svg → logo/neo_logo_secondary.svg} +0 -0
- /package/resources/images/{Neo_Logo_Text.svg → logo/neo_logo_text_secondary.svg} +0 -0
- /package/resources/images/{Neo_Logo_White.svg → logo/neo_logo_white.svg} +0 -0
@@ -92,7 +92,7 @@ class TextArea extends Text {
|
|
92
92
|
|
93
93
|
// Restore any configured height if autoGrow turned off
|
94
94
|
if (!value) {
|
95
|
-
me.afterSetHeight(me._height)
|
95
|
+
me.afterSetHeight(me._height)
|
96
96
|
}
|
97
97
|
}
|
98
98
|
|
@@ -103,7 +103,7 @@ class TextArea extends Text {
|
|
103
103
|
* @protected
|
104
104
|
*/
|
105
105
|
afterSetCols(value, oldValue) {
|
106
|
-
this.changeInputElKey('cols', value)
|
106
|
+
this.changeInputElKey('cols', value)
|
107
107
|
}
|
108
108
|
|
109
109
|
/**
|
@@ -113,7 +113,7 @@ class TextArea extends Text {
|
|
113
113
|
* @protected
|
114
114
|
*/
|
115
115
|
afterSetInputTag(value, oldValue) {
|
116
|
-
this.changeInputElKey('tag', value)
|
116
|
+
this.changeInputElKey('tag', value)
|
117
117
|
}
|
118
118
|
|
119
119
|
/**
|
@@ -124,7 +124,7 @@ class TextArea extends Text {
|
|
124
124
|
*/
|
125
125
|
afterSetMounted(value, oldValue) {
|
126
126
|
super.afterSetMounted(value, oldValue);
|
127
|
-
this.syncAutoGrowMonitor()
|
127
|
+
this.syncAutoGrowMonitor()
|
128
128
|
}
|
129
129
|
|
130
130
|
/**
|
@@ -138,7 +138,7 @@ class TextArea extends Text {
|
|
138
138
|
style = this.getInputEl().style;
|
139
139
|
|
140
140
|
style.resize = value ? null : 'none';
|
141
|
-
me.update()
|
141
|
+
me.update()
|
142
142
|
}
|
143
143
|
|
144
144
|
/**
|
@@ -148,7 +148,7 @@ class TextArea extends Text {
|
|
148
148
|
* @protected
|
149
149
|
*/
|
150
150
|
afterSetRows(value, oldValue) {
|
151
|
-
this.changeInputElKey('rows', value)
|
151
|
+
this.changeInputElKey('rows', value)
|
152
152
|
}
|
153
153
|
|
154
154
|
/**
|
@@ -162,7 +162,7 @@ class TextArea extends Text {
|
|
162
162
|
inputEl = me.getInputEl();
|
163
163
|
|
164
164
|
if (inputEl) {
|
165
|
-
inputEl.html = StringUtil.escapeHtml(value)
|
165
|
+
inputEl.html = StringUtil.escapeHtml(value)
|
166
166
|
}
|
167
167
|
|
168
168
|
super.afterSetValue(value, oldValue);
|
@@ -185,7 +185,7 @@ class TextArea extends Text {
|
|
185
185
|
* @protected
|
186
186
|
*/
|
187
187
|
afterSetWrap(value, oldValue) {
|
188
|
-
this.changeInputElKey('wrap', value)
|
188
|
+
this.changeInputElKey('wrap', value)
|
189
189
|
}
|
190
190
|
|
191
191
|
/**
|
@@ -196,7 +196,7 @@ class TextArea extends Text {
|
|
196
196
|
* @protected
|
197
197
|
*/
|
198
198
|
beforeSetWrap(value, oldValue) {
|
199
|
-
return this.beforeSetEnumValue(value, oldValue, 'wrap', 'wrapValues')
|
199
|
+
return this.beforeSetEnumValue(value, oldValue, 'wrap', 'wrapValues')
|
200
200
|
}
|
201
201
|
|
202
202
|
/**
|
package/src/form/field/Time.mjs
CHANGED
@@ -118,7 +118,7 @@ class Time extends Picker {
|
|
118
118
|
itemClick : me.onListItemClick,
|
119
119
|
itemNavigate: me.onListItemNavigate,
|
120
120
|
scope : me
|
121
|
-
})
|
121
|
+
})
|
122
122
|
}
|
123
123
|
|
124
124
|
/**
|
@@ -131,7 +131,7 @@ class Time extends Picker {
|
|
131
131
|
this.changeInputElKey('max', value);
|
132
132
|
|
133
133
|
if (oldValue !== undefined) {
|
134
|
-
this.recreateListItems()
|
134
|
+
this.recreateListItems()
|
135
135
|
}
|
136
136
|
}
|
137
137
|
|
@@ -145,7 +145,7 @@ class Time extends Picker {
|
|
145
145
|
this.changeInputElKey('min', value);
|
146
146
|
|
147
147
|
if (oldValue !== undefined) {
|
148
|
-
this.recreateListItems()
|
148
|
+
this.recreateListItems()
|
149
149
|
}
|
150
150
|
}
|
151
151
|
|
@@ -157,7 +157,7 @@ class Time extends Picker {
|
|
157
157
|
*/
|
158
158
|
afterSetPickerIsMounted(value, oldValue) {
|
159
159
|
if (value) {
|
160
|
-
this.selectCurrentListItem()
|
160
|
+
this.selectCurrentListItem()
|
161
161
|
}
|
162
162
|
}
|
163
163
|
|
@@ -168,7 +168,7 @@ class Time extends Picker {
|
|
168
168
|
* @protected
|
169
169
|
*/
|
170
170
|
afterSetStepSize(value, oldValue) {
|
171
|
-
this.changeInputElKey('step', value)
|
171
|
+
this.changeInputElKey('step', value)
|
172
172
|
|
173
173
|
// todo: adjust min & max value => see: form.field.Number
|
174
174
|
}
|
@@ -188,7 +188,7 @@ class Time extends Picker {
|
|
188
188
|
me.getTrigger('time').value = value;
|
189
189
|
|
190
190
|
if (me.pickerIsMounted && !preventListSelect) {
|
191
|
-
me.selectCurrentListItem(true)
|
191
|
+
me.selectCurrentListItem(true)
|
192
192
|
}
|
193
193
|
}
|
194
194
|
|
@@ -206,10 +206,10 @@ class Time extends Picker {
|
|
206
206
|
minute: '2-digit',
|
207
207
|
second: this.stepSize < 60 ? '2-digit' : undefined,
|
208
208
|
hour12: false
|
209
|
-
})
|
209
|
+
})
|
210
210
|
}
|
211
211
|
|
212
|
-
return value
|
212
|
+
return value
|
213
213
|
}
|
214
214
|
|
215
215
|
/**
|
@@ -222,11 +222,11 @@ class Time extends Picker {
|
|
222
222
|
beforeSetMaxValue(value, oldValue) {
|
223
223
|
if (value) {
|
224
224
|
if (value.includes('24') || (value.startsWith('12') && value.includes('AM'))) {
|
225
|
-
return '23:59:00'
|
225
|
+
return '23:59:00'
|
226
226
|
}
|
227
227
|
}
|
228
228
|
|
229
|
-
return this.formatTime(value)
|
229
|
+
return this.formatTime(value)
|
230
230
|
}
|
231
231
|
|
232
232
|
/**
|
@@ -237,7 +237,7 @@ class Time extends Picker {
|
|
237
237
|
* @returns {String}
|
238
238
|
*/
|
239
239
|
beforeSetMinValue(value, oldValue) {
|
240
|
-
return this.formatTime(value)
|
240
|
+
return this.formatTime(value)
|
241
241
|
}
|
242
242
|
|
243
243
|
/**
|
@@ -248,7 +248,7 @@ class Time extends Picker {
|
|
248
248
|
* @returns {String}
|
249
249
|
*/
|
250
250
|
beforeSetValue(value, oldValue) {
|
251
|
-
return this.formatTime(value)
|
251
|
+
return this.formatTime(value)
|
252
252
|
}
|
253
253
|
|
254
254
|
/**
|
@@ -276,17 +276,17 @@ class Time extends Picker {
|
|
276
276
|
value: dt.format(currentDate)
|
277
277
|
});
|
278
278
|
|
279
|
-
currentDate.setSeconds(currentDate.getSeconds() + me.stepSize)
|
279
|
+
currentDate.setSeconds(currentDate.getSeconds() + me.stepSize)
|
280
280
|
}
|
281
281
|
|
282
|
-
return listItems
|
282
|
+
return listItems
|
283
283
|
}
|
284
284
|
|
285
285
|
/**
|
286
286
|
* @returns {Neo.component.DateSelector}
|
287
287
|
*/
|
288
288
|
createPickerComponent() {
|
289
|
-
return this.list
|
289
|
+
return this.list
|
290
290
|
}
|
291
291
|
|
292
292
|
/**
|
@@ -312,10 +312,10 @@ class Time extends Picker {
|
|
312
312
|
*/
|
313
313
|
formatTime(value) {
|
314
314
|
if (value) {
|
315
|
-
return this.valueFormat.format(new Date(`November 23, 2019 ${value}`))
|
315
|
+
return this.valueFormat.format(new Date(`November 23, 2019 ${value}`))
|
316
316
|
}
|
317
317
|
|
318
|
-
return value
|
318
|
+
return value
|
319
319
|
}
|
320
320
|
|
321
321
|
/**
|
@@ -323,7 +323,7 @@ class Time extends Picker {
|
|
323
323
|
* @protected
|
324
324
|
*/
|
325
325
|
onContainerKeyDownEnter(data) {
|
326
|
-
this.hidePicker()
|
326
|
+
this.hidePicker()
|
327
327
|
}
|
328
328
|
|
329
329
|
/**
|
@@ -331,7 +331,7 @@ class Time extends Picker {
|
|
331
331
|
* @protected
|
332
332
|
*/
|
333
333
|
onContainerKeyDownEscape(data) {
|
334
|
-
this.focusInputEl(this.hidePicker)
|
334
|
+
this.focusInputEl(this.hidePicker)
|
335
335
|
}
|
336
336
|
|
337
337
|
/**
|
@@ -343,9 +343,9 @@ class Time extends Picker {
|
|
343
343
|
|
344
344
|
if (me.pickerIsMounted) {
|
345
345
|
super.onKeyDownEnter(data);
|
346
|
-
me.selectCurrentListItem()
|
346
|
+
me.selectCurrentListItem()
|
347
347
|
} else {
|
348
|
-
super.onKeyDownEnter(data, me.selectCurrentListItem)
|
348
|
+
super.onKeyDownEnter(data, me.selectCurrentListItem)
|
349
349
|
}
|
350
350
|
}
|
351
351
|
|
@@ -355,13 +355,13 @@ class Time extends Picker {
|
|
355
355
|
onListItemClick(record) {
|
356
356
|
let me = this,
|
357
357
|
oldValue = me.value,
|
358
|
-
value
|
358
|
+
{value} = record;
|
359
359
|
|
360
360
|
if (me.value !== value) {
|
361
361
|
value = me.formatTime(value);
|
362
362
|
|
363
363
|
me._value = value;
|
364
|
-
me.afterSetValue(value, oldValue, true)
|
364
|
+
me.afterSetValue(value, oldValue, true) // prevent the list from getting selected / focused
|
365
365
|
}
|
366
366
|
}
|
367
367
|
|
@@ -369,7 +369,7 @@ class Time extends Picker {
|
|
369
369
|
* @param {Object} record
|
370
370
|
*/
|
371
371
|
onListItemNavigate(record) {
|
372
|
-
this.onListItemClick(record)
|
372
|
+
this.onListItemClick(record)
|
373
373
|
}
|
374
374
|
|
375
375
|
/**
|
@@ -380,7 +380,7 @@ class Time extends Picker {
|
|
380
380
|
|
381
381
|
me.collection.clear();
|
382
382
|
me.collection.add(me.createCollectionItems());
|
383
|
-
me.list.createItems()
|
383
|
+
me.list.createItems()
|
384
384
|
}
|
385
385
|
|
386
386
|
/**
|
@@ -392,19 +392,19 @@ class Time extends Picker {
|
|
392
392
|
let me = this;
|
393
393
|
|
394
394
|
if (value && me.clearToOriginalValue) {
|
395
|
-
me.originalConfig.value = me.formatTime(value)
|
395
|
+
me.originalConfig.value = me.formatTime(value)
|
396
396
|
}
|
397
397
|
|
398
|
-
me.value = me.clearToOriginalValue ? me.originalConfig.value : null
|
398
|
+
me.value = me.clearToOriginalValue ? me.originalConfig.value : null
|
399
399
|
}
|
400
400
|
|
401
401
|
/**
|
402
402
|
* @param {Boolean} [preventFocus=false]
|
403
403
|
*/
|
404
404
|
selectCurrentListItem(preventFocus=false) {
|
405
|
-
let me
|
406
|
-
list = me
|
407
|
-
id
|
405
|
+
let me = this,
|
406
|
+
{list} = me,
|
407
|
+
id = list.getItemId(me.value);
|
408
408
|
|
409
409
|
list.selectionModel.select(id);
|
410
410
|
|
@@ -87,8 +87,8 @@ class Base extends Component {
|
|
87
87
|
me.field.addDomListeners([
|
88
88
|
{mouseenter: me.onMouseEnter, scope: me},
|
89
89
|
{mouseleave: me.onMouseLeave, scope: me}
|
90
|
-
])
|
91
|
-
}, me)
|
90
|
+
])
|
91
|
+
}, me)
|
92
92
|
}
|
93
93
|
}
|
94
94
|
|
@@ -102,11 +102,17 @@ class Base extends Component {
|
|
102
102
|
let cls = this.cls;
|
103
103
|
|
104
104
|
NeoArray[value === 'start' ? 'add' : 'remove'](cls, 'neo-align-start');
|
105
|
-
this.cls = cls
|
105
|
+
this.cls = cls
|
106
106
|
}
|
107
107
|
|
108
|
-
|
109
|
-
|
108
|
+
/**
|
109
|
+
* Triggered after the field config got changed
|
110
|
+
* @param {String} value
|
111
|
+
* @param {String} oldValue
|
112
|
+
* @protected
|
113
|
+
*/
|
114
|
+
afterSetField(value, oldValue) {
|
115
|
+
(this.vdom.data || (this.vdom.data = {})).focus = value?.getInputElId()
|
110
116
|
}
|
111
117
|
|
112
118
|
/**
|
@@ -116,10 +122,10 @@ class Base extends Component {
|
|
116
122
|
* @protected
|
117
123
|
*/
|
118
124
|
afterSetHidden(value, oldValue) {
|
119
|
-
let style = this
|
125
|
+
let {style} = this;
|
120
126
|
|
121
127
|
style.display = value ? 'none' : 'inherit';
|
122
|
-
this.style = style
|
128
|
+
this.style = style
|
123
129
|
}
|
124
130
|
|
125
131
|
/**
|
@@ -129,15 +135,15 @@ class Base extends Component {
|
|
129
135
|
* @protected
|
130
136
|
*/
|
131
137
|
afterSetIconCls(value, oldValue) {
|
132
|
-
let cls = this
|
138
|
+
let {cls} = this;
|
133
139
|
|
134
140
|
NeoArray.remove(cls, oldValue);
|
135
141
|
|
136
142
|
if (value && value !== '') {
|
137
|
-
NeoArray.add(cls, value)
|
143
|
+
NeoArray.add(cls, value)
|
138
144
|
}
|
139
145
|
|
140
|
-
this.cls = cls
|
146
|
+
this.cls = cls
|
141
147
|
}
|
142
148
|
|
143
149
|
/**
|
@@ -147,7 +153,7 @@ class Base extends Component {
|
|
147
153
|
* @protected
|
148
154
|
*/
|
149
155
|
beforeSetAlign(value, oldValue) {
|
150
|
-
return this.beforeSetEnumValue(value, oldValue, 'align', 'alignValues')
|
156
|
+
return this.beforeSetEnumValue(value, oldValue, 'align', 'alignValues')
|
151
157
|
}
|
152
158
|
|
153
159
|
/**
|
@@ -163,7 +169,7 @@ class Base extends Component {
|
|
163
169
|
|
164
170
|
delete me.field;
|
165
171
|
|
166
|
-
super.destroy(updateParentVdom, silent)
|
172
|
+
super.destroy(updateParentVdom, silent)
|
167
173
|
}
|
168
174
|
|
169
175
|
/**
|
@@ -192,7 +198,7 @@ class Base extends Component {
|
|
192
198
|
scope = me.scope || me;
|
193
199
|
|
194
200
|
if (me.handler) {
|
195
|
-
scope[me.handler].call(scope)
|
201
|
+
scope[me.handler].call(scope)
|
196
202
|
}
|
197
203
|
}
|
198
204
|
}
|
@@ -45,7 +45,7 @@ class Clear extends Base {
|
|
45
45
|
* @protected
|
46
46
|
*/
|
47
47
|
afterSetHidden(value, oldValue) {
|
48
|
-
let cls = this
|
48
|
+
let {cls} = this;
|
49
49
|
|
50
50
|
NeoArray[value ? 'add' : 'remove'](cls, 'neo-is-hidden');
|
51
51
|
this.cls = cls;
|
@@ -59,10 +59,10 @@ class Clear extends Base {
|
|
59
59
|
*/
|
60
60
|
beforeSetHidden(value, oldValue) {
|
61
61
|
if (this.showOnHover && !this.isHovered) {
|
62
|
-
return true
|
62
|
+
return true
|
63
63
|
}
|
64
64
|
|
65
|
-
return value
|
65
|
+
return value
|
66
66
|
}
|
67
67
|
|
68
68
|
/**
|
@@ -77,25 +77,25 @@ class Clear extends Base {
|
|
77
77
|
scope : me
|
78
78
|
});
|
79
79
|
|
80
|
-
super.destroy(...args)
|
80
|
+
super.destroy(...args)
|
81
81
|
}
|
82
82
|
|
83
83
|
/**
|
84
84
|
* @returns {Boolean} true in case the trigger should be hidden
|
85
85
|
*/
|
86
86
|
getHiddenState() {
|
87
|
-
let me
|
88
|
-
field = me
|
89
|
-
value = field
|
87
|
+
let me = this,
|
88
|
+
{field} = me,
|
89
|
+
{value} = field;
|
90
90
|
|
91
91
|
if (field.clearToOriginalValue) {
|
92
92
|
return value === field.originalConfig.value;
|
93
93
|
} else {
|
94
94
|
if (value === 0) {
|
95
|
-
value = '0'
|
95
|
+
value = '0'
|
96
96
|
}
|
97
97
|
|
98
|
-
return !field.value || value.toString().length < 1
|
98
|
+
return !field.value || value.toString().length < 1
|
99
99
|
}
|
100
100
|
}
|
101
101
|
|
@@ -103,7 +103,7 @@ class Clear extends Base {
|
|
103
103
|
* @param {Object} opts
|
104
104
|
*/
|
105
105
|
onFieldChange(opts) {
|
106
|
-
this.hidden = this.getHiddenState()
|
106
|
+
this.hidden = this.getHiddenState()
|
107
107
|
}
|
108
108
|
|
109
109
|
/**
|
@@ -120,7 +120,7 @@ class Clear extends Base {
|
|
120
120
|
scope : me
|
121
121
|
});
|
122
122
|
|
123
|
-
me.hidden = me.getHiddenState()
|
123
|
+
me.hidden = me.getHiddenState()
|
124
124
|
}
|
125
125
|
|
126
126
|
/**
|
@@ -130,14 +130,14 @@ class Clear extends Base {
|
|
130
130
|
let me = this;
|
131
131
|
|
132
132
|
me.isHovered = true;
|
133
|
-
me.hidden = me.getHiddenState()
|
133
|
+
me.hidden = me.getHiddenState()
|
134
134
|
}
|
135
135
|
|
136
136
|
/**
|
137
137
|
* @param {Object} data
|
138
138
|
*/
|
139
139
|
onTriggerClick(data) {
|
140
|
-
this.field.clear()
|
140
|
+
this.field.clear()
|
141
141
|
}
|
142
142
|
}
|
143
143
|
|
@@ -49,16 +49,16 @@ class CopyToClipboard extends Base {
|
|
49
49
|
* @protected
|
50
50
|
*/
|
51
51
|
afterSetHidden(value, oldValue) {
|
52
|
-
let cls = this
|
52
|
+
let {cls} = this;
|
53
53
|
NeoArray[value? 'add' : 'remove'](cls, 'neo-is-hidden');
|
54
|
-
this.cls = cls
|
54
|
+
this.cls = cls
|
55
55
|
}
|
56
56
|
|
57
57
|
/**
|
58
58
|
* @returns {Boolean} true in case the trigger should be hidden
|
59
59
|
*/
|
60
60
|
getHiddenState() {
|
61
|
-
return !this.field.value || this.field.value.length === 0
|
61
|
+
return !this.field.value || this.field.value.length === 0
|
62
62
|
}
|
63
63
|
|
64
64
|
/**
|
@@ -75,14 +75,14 @@ class CopyToClipboard extends Base {
|
|
75
75
|
scope : me
|
76
76
|
});
|
77
77
|
|
78
|
-
me.hidden = me.getHiddenState()
|
78
|
+
me.hidden = me.getHiddenState()
|
79
79
|
}
|
80
80
|
|
81
81
|
/**
|
82
82
|
* @param {Object} opts
|
83
83
|
*/
|
84
84
|
onFieldChange(opts) {
|
85
|
-
this.hidden = this.getHiddenState()
|
85
|
+
this.hidden = this.getHiddenState()
|
86
86
|
}
|
87
87
|
|
88
88
|
/**
|
@@ -98,8 +98,8 @@ class CopyToClipboard extends Base {
|
|
98
98
|
Neo.main.DomAccess.execCommand({
|
99
99
|
appName: me.appName,
|
100
100
|
command: 'copy'
|
101
|
-
})
|
102
|
-
})
|
101
|
+
})
|
102
|
+
})
|
103
103
|
}
|
104
104
|
}
|
105
105
|
|
@@ -50,7 +50,7 @@ class SpinUpDown extends Base {
|
|
50
50
|
|
51
51
|
me.update();
|
52
52
|
|
53
|
-
super.onConstructed()
|
53
|
+
super.onConstructed()
|
54
54
|
}
|
55
55
|
|
56
56
|
/**
|
@@ -62,9 +62,9 @@ class SpinUpDown extends Base {
|
|
62
62
|
cls = target.cls.join(' ');
|
63
63
|
|
64
64
|
if (cls.includes('neo-down')) {
|
65
|
-
me.field.onSpinButtonDownClick()
|
65
|
+
me.field.onSpinButtonDownClick()
|
66
66
|
} else if (cls.includes('neo-up')) {
|
67
|
-
me.field.onSpinButtonUpClick()
|
67
|
+
me.field.onSpinButtonUpClick()
|
68
68
|
}
|
69
69
|
}
|
70
70
|
}
|
@@ -66,7 +66,7 @@ class Time extends Picker {
|
|
66
66
|
});
|
67
67
|
|
68
68
|
me.vdom.cn = [me.clock.vdom];
|
69
|
-
me.update()
|
69
|
+
me.update()
|
70
70
|
}
|
71
71
|
|
72
72
|
/**
|
@@ -79,7 +79,7 @@ class Time extends Picker {
|
|
79
79
|
super.afterSetAppName(value, oldValue);
|
80
80
|
|
81
81
|
if (value) {
|
82
|
-
this.clock.appName = value
|
82
|
+
this.clock.appName = value
|
83
83
|
}
|
84
84
|
}
|
85
85
|
|
@@ -91,7 +91,7 @@ class Time extends Picker {
|
|
91
91
|
*/
|
92
92
|
afterSetValue(value, oldValue) {
|
93
93
|
if (value) {
|
94
|
-
this.clock.time = value
|
94
|
+
this.clock.time = value
|
95
95
|
}
|
96
96
|
}
|
97
97
|
}
|