neo.mjs 2.3.17 → 3.0.1
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/README.md +9 -0
- package/apps/covid/Util.mjs +1 -3
- package/apps/covid/view/GalleryContainer.mjs +2 -3
- package/apps/covid/view/GalleryContainerController.mjs +1 -5
- package/apps/covid/view/HelixContainer.mjs +2 -3
- package/apps/covid/view/HelixContainerController.mjs +1 -4
- package/apps/covid/view/MainContainerController.mjs +0 -7
- package/apps/covid/view/MainContainerModel.mjs +0 -1
- package/apps/covid/view/TableContainer.mjs +2 -3
- package/apps/covid/view/TableContainerController.mjs +0 -3
- package/apps/covid/view/WorldMapComponent.mjs +1 -2
- package/apps/covid/view/WorldMapContainerController.mjs +0 -2
- package/apps/covid/view/country/Gallery.mjs +0 -2
- package/apps/covid/view/country/Helix.mjs +0 -3
- package/apps/covid/view/mapboxGl/Container.mjs +1 -1
- package/apps/covid/view/mapboxGl/ContainerController.mjs +1 -6
- package/apps/krausest/TableCollection.mjs +0 -1
- package/apps/krausest/view/MainComponent.mjs +2 -3
- package/apps/krausest/view/MainComponentController.mjs +0 -1
- package/apps/krausest/view/TableComponent.mjs +2 -4
- package/apps/realworld/api/Article.mjs +1 -4
- package/apps/realworld/api/Base.mjs +0 -5
- package/apps/realworld/api/Favorite.mjs +1 -3
- package/apps/realworld/api/Profile.mjs +1 -3
- package/apps/realworld/view/HeaderComponent.mjs +1 -2
- package/apps/realworld/view/HomeComponent.mjs +2 -11
- package/apps/realworld/view/MainContainerController.mjs +0 -13
- package/apps/realworld/view/article/CommentComponent.mjs +3 -5
- package/apps/realworld/view/article/Component.mjs +2 -7
- package/apps/realworld/view/article/CreateCommentComponent.mjs +3 -7
- package/apps/realworld/view/article/CreateComponent.mjs +3 -3
- package/apps/realworld/view/article/PreviewComponent.mjs +3 -5
- package/apps/realworld/view/article/TagListComponent.mjs +3 -7
- package/apps/realworld/view/user/ProfileComponent.mjs +2 -8
- package/apps/realworld/view/user/SettingsComponent.mjs +3 -7
- package/apps/realworld/view/user/SignUpComponent.mjs +2 -3
- package/apps/realworld2/api/Article.mjs +1 -4
- package/apps/realworld2/api/Base.mjs +0 -5
- package/apps/realworld2/api/Favorite.mjs +1 -3
- package/apps/realworld2/api/Profile.mjs +1 -3
- package/apps/realworld2/view/HeaderToolbarController.mjs +1 -2
- package/apps/realworld2/view/HomeContainer.mjs +1 -2
- package/apps/realworld2/view/MainContainerController.mjs +1 -14
- package/apps/realworld2/view/article/Gallery.mjs +1 -3
- package/apps/realworld2/view/article/GalleryContainer.mjs +1 -2
- package/apps/realworld2/view/article/Helix.mjs +1 -3
- package/apps/realworld2/view/article/HelixContainer.mjs +3 -5
- package/apps/realworld2/view/article/PreviewComponent.mjs +3 -5
- package/apps/realworld2/view/article/TagListComponent.mjs +3 -7
- package/apps/realworld2/view/user/LoginFormContainer.mjs +3 -4
- package/apps/sharedcovid/Util.mjs +1 -3
- package/apps/sharedcovid/view/GalleryContainer.mjs +2 -3
- package/apps/sharedcovid/view/GalleryContainerController.mjs +1 -5
- package/apps/sharedcovid/view/HelixContainer.mjs +2 -3
- package/apps/sharedcovid/view/HelixContainerController.mjs +1 -4
- package/apps/sharedcovid/view/MainContainerController.mjs +12 -16
- package/apps/sharedcovid/view/MainContainerModel.mjs +0 -1
- package/apps/sharedcovid/view/TableContainer.mjs +2 -3
- package/apps/sharedcovid/view/TableContainerController.mjs +0 -3
- package/apps/sharedcovid/view/WorldMapComponent.mjs +1 -2
- package/apps/sharedcovid/view/WorldMapContainerController.mjs +0 -2
- package/apps/sharedcovid/view/country/Gallery.mjs +0 -2
- package/apps/sharedcovid/view/country/Helix.mjs +0 -3
- package/apps/sharedcovid/view/mapboxGl/Container.mjs +2 -3
- package/apps/sharedcovid/view/mapboxGl/ContainerController.mjs +1 -5
- package/apps/shareddialog/view/MainContainerController.mjs +0 -18
- package/apps/shareddialog2/view/MainContainerController.mjs +1 -2
- package/apps/website/data/blog.json +13 -0
- package/apps/website/view/MainContainerController.mjs +0 -4
- package/docs/app/view/ContentTabContainer.mjs +2 -2
- package/docs/app/view/MainContainer.mjs +2 -2
- package/docs/app/view/classdetails/SourceViewComponent.mjs +2 -2
- package/docs/app/view/classdetails/TutorialComponent.mjs +2 -2
- package/docs/tutorials/02_ClassSystem.html +3 -3
- package/docs/tutorials/02_ClassSystem.md +2 -2
- package/docs/tutorials/09_TodoList_version1.html +8 -8
- package/examples/ConfigurationViewport.mjs +0 -4
- package/examples/calendar/basic/MainContainerController.mjs +0 -1
- package/examples/calendar/weekview/MainContainer.mjs +2 -2
- package/examples/component/coronaGallery/CountryGallery.mjs +1 -4
- package/examples/component/coronaGallery/MainContainer.mjs +2 -4
- package/examples/component/coronaHelix/CountryHelix.mjs +0 -4
- package/examples/component/coronaHelix/MainContainer.mjs +2 -4
- package/examples/component/gallery/MainContainer.mjs +2 -4
- package/examples/component/helix/MainContainer.mjs +2 -4
- package/examples/component/splitter/MainContainer.mjs +0 -2
- package/examples/core/config/MainContainer.mjs +3 -5
- package/examples/dialog/MainContainer.mjs +3 -7
- package/examples/list/animate/MainContainer.mjs +2 -2
- package/examples/model/advanced/MainContainerController.mjs +0 -12
- package/examples/model/dialog/EditUserDialogController.mjs +1 -3
- package/examples/model/dialog/MainContainerController.mjs +1 -2
- package/examples/model/extendedClass/MainContainerController.mjs +0 -7
- package/examples/model/inline/MainContainerController.mjs +0 -7
- package/examples/model/inlineNoModel/MainContainerController.mjs +1 -6
- package/examples/model/multiWindow/EditUserDialogController.mjs +1 -3
- package/examples/model/multiWindow/MainContainerController.mjs +1 -3
- package/examples/model/multiWindow/ViewportController.mjs +3 -5
- package/examples/model/nestedData/MainContainerController.mjs +1 -8
- package/examples/tab/container/MainContainer.mjs +1 -6
- package/examples/todoList/version1/MainComponent.mjs +3 -3
- package/examples/todoList/version2/MainContainer.mjs +3 -3
- package/examples/todoList/version2/TodoList.mjs +1 -1
- package/examples/tree/MainContainer.mjs +0 -2
- package/package.json +7 -7
- package/src/Main.mjs +9 -18
- package/src/Neo.mjs +26 -26
- package/src/button/Menu.mjs +0 -1
- package/src/button/Split.mjs +2 -6
- package/src/calendar/store/Events.mjs +0 -1
- package/src/calendar/view/DayComponent.mjs +0 -1
- package/src/calendar/view/EditEventContainer.mjs +2 -9
- package/src/calendar/view/MainContainer.mjs +2 -17
- package/src/calendar/view/MainContainerModel.mjs +2 -4
- package/src/calendar/view/SettingsContainer.mjs +2 -6
- package/src/calendar/view/YearComponent.mjs +3 -14
- package/src/calendar/view/calendars/Container.mjs +0 -1
- package/src/calendar/view/calendars/EditContainer.mjs +2 -7
- package/src/calendar/view/calendars/List.mjs +0 -5
- package/src/calendar/view/month/Component.mjs +3 -17
- package/src/calendar/view/settings/GeneralContainer.mjs +0 -3
- package/src/calendar/view/settings/MonthContainer.mjs +0 -3
- package/src/calendar/view/settings/WeekContainer.mjs +0 -5
- package/src/calendar/view/settings/YearContainer.mjs +0 -3
- package/src/calendar/view/week/Component.mjs +3 -22
- package/src/calendar/view/week/EventDragZone.mjs +1 -6
- package/src/calendar/view/week/TimeAxisComponent.mjs +2 -3
- package/src/calendar/view/week/plugin/DragDrop.mjs +2 -12
- package/src/calendar/view/week/plugin/EventResizable.mjs +0 -3
- package/src/collection/Base.mjs +3 -22
- package/src/collection/Filter.mjs +0 -1
- package/src/collection/Sorter.mjs +0 -3
- package/src/component/Base.mjs +14 -3
- package/src/component/Chip.mjs +2 -4
- package/src/component/Circle.mjs +2 -20
- package/src/component/DateSelector.mjs +4 -21
- package/src/component/Gallery.mjs +2 -14
- package/src/component/Helix.mjs +2 -16
- package/src/component/Splitter.mjs +3 -8
- package/src/component/mwc/Button.mjs +2 -2
- package/src/component/mwc/TextField.mjs +2 -3
- package/src/component/wrapper/AmChart.mjs +1 -1
- package/src/component/wrapper/MapboxGL.mjs +0 -5
- package/src/container/Base.mjs +1 -7
- package/src/container/Panel.mjs +2 -5
- package/src/controller/Application.mjs +2 -3
- package/src/controller/Base.mjs +2 -3
- package/src/controller/Component.mjs +3 -6
- package/src/core/Base.mjs +26 -3
- package/src/core/Compare.mjs +0 -1
- package/src/core/IdGenerator.mjs +2 -4
- package/src/core/Observable.mjs +0 -3
- package/src/core/Util.mjs +0 -1
- package/src/core/_export.mjs +1 -2
- package/src/data/RecordFactory.mjs +1 -6
- package/src/data/Store.mjs +2 -12
- package/src/data/connection/Xhr.mjs +0 -6
- package/src/dialog/Base.mjs +5 -24
- package/src/draggable/DragProxyComponent.mjs +3 -5
- package/src/draggable/DragZone.mjs +2 -8
- package/src/draggable/DropZone.mjs +3 -9
- package/src/draggable/list/DragZone.mjs +3 -9
- package/src/draggable/tab/header/toolbar/SortZone.mjs +1 -3
- package/src/draggable/toolbar/DragZone.mjs +3 -7
- package/src/draggable/toolbar/SortZone.mjs +1 -8
- package/src/draggable/tree/DragZone.mjs +1 -4
- package/src/filter/BooleanContainer.mjs +0 -1
- package/src/filter/NumberContainer.mjs +0 -2
- package/src/filter/ToggleOperatorsButton.mjs +3 -5
- package/src/form/Container.mjs +0 -2
- package/src/form/Fieldset.mjs +0 -1
- package/src/form/field/Base.mjs +0 -2
- package/src/form/field/CheckBox.mjs +2 -7
- package/src/form/field/Color.mjs +2 -5
- package/src/form/field/Date.mjs +2 -6
- package/src/form/field/Display.mjs +2 -3
- package/src/form/field/Picker.mjs +1 -12
- package/src/form/field/Range.mjs +2 -3
- package/src/form/field/Select.mjs +24 -22
- package/src/form/field/Text.mjs +3 -20
- package/src/form/field/Time.mjs +2 -9
- package/src/form/field/trigger/Base.mjs +2 -4
- package/src/form/field/trigger/Clear.mjs +0 -3
- package/src/form/field/trigger/CopyToClipboard.mjs +0 -3
- package/src/form/field/trigger/Picker.mjs +0 -1
- package/src/form/field/trigger/SpinDown.mjs +0 -1
- package/src/form/field/trigger/SpinUp.mjs +0 -1
- package/src/form/field/trigger/SpinUpDown.mjs +0 -1
- package/src/form/field/trigger/Time.mjs +2 -3
- package/src/grid/Container.mjs +3 -6
- package/src/grid/header/Toolbar.mjs +1 -5
- package/src/list/Base.mjs +2 -2
- package/src/list/Color.mjs +0 -3
- package/src/list/Component.mjs +0 -3
- package/src/list/plugin/Animate.mjs +3 -6
- package/src/main/DomAccess.mjs +9 -24
- package/src/main/DomEvents.mjs +44 -77
- package/src/main/addon/AmCharts.mjs +3 -12
- package/src/main/addon/AnalyticsByGoogle.mjs +3 -4
- package/src/main/addon/CloneNode.mjs +0 -2
- package/src/main/addon/Cookie.mjs +0 -3
- package/src/main/addon/DragDrop.mjs +2 -11
- package/src/main/addon/HighlightJS.mjs +3 -7
- package/src/main/addon/MapboxGL.mjs +4 -16
- package/src/main/addon/Markdown.mjs +3 -3
- package/src/main/addon/Mwc.mjs +0 -2
- package/src/main/addon/Siesta.mjs +2 -3
- package/src/main/addon/Stylesheet.mjs +2 -6
- package/src/main/addon/WindowPosition.mjs +3 -8
- package/src/main/draggable/sensor/Mouse.mjs +2 -6
- package/src/main/draggable/sensor/Touch.mjs +2 -6
- package/src/main/mixin/DeltaUpdates.mjs +0 -8
- package/src/main/mixin/TouchDomEvents.mjs +1 -7
- package/src/manager/Base.mjs +0 -2
- package/src/manager/Component.mjs +2 -5
- package/src/manager/DomEvent.mjs +1 -6
- package/src/manager/Focus.mjs +0 -7
- package/src/manager/Instance.mjs +2 -3
- package/src/manager/Store.mjs +0 -4
- package/src/menu/List.mjs +4 -18
- package/src/model/Component.mjs +2 -3
- package/src/plugin/Base.mjs +2 -3
- package/src/plugin/Resizable.mjs +4 -15
- package/src/selection/CircleModel.mjs +1 -5
- package/src/selection/DateSelectorModel.mjs +1 -9
- package/src/selection/GalleryModel.mjs +0 -9
- package/src/selection/HelixModel.mjs +0 -9
- package/src/selection/ListModel.mjs +0 -8
- package/src/selection/Model.mjs +0 -8
- package/src/selection/menu/ListModel.mjs +0 -2
- package/src/selection/table/CellColumnModel.mjs +2 -6
- package/src/selection/table/CellColumnRowModel.mjs +2 -6
- package/src/selection/table/CellModel.mjs +0 -8
- package/src/selection/table/CellRowModel.mjs +2 -8
- package/src/selection/table/ColumnModel.mjs +0 -6
- package/src/selection/table/RowModel.mjs +0 -5
- package/src/tab/Container.mjs +0 -6
- package/src/tab/Strip.mjs +1 -3
- package/src/tab/header/Button.mjs +1 -2
- package/src/tab/header/Toolbar.mjs +0 -1
- package/src/table/Container.mjs +2 -10
- package/src/table/View.mjs +0 -4
- package/src/table/header/Button.mjs +2 -8
- package/src/table/header/Toolbar.mjs +1 -2
- package/src/tree/List.mjs +0 -4
- package/src/util/Css.mjs +0 -1
- package/src/util/Date.mjs +0 -2
- package/src/util/Function.mjs +0 -2
- package/src/util/HashHistory.mjs +0 -3
- package/src/util/KeyNavigation.mjs +0 -5
- package/src/{core → util}/Logger.mjs +7 -19
- package/src/util/Matrix.mjs +0 -3
- package/src/util/VDom.mjs +0 -5
- package/src/util/_export.mjs +2 -1
- package/src/vdom/Helper.mjs +0 -3
- package/src/vdom/VNode.mjs +0 -1
- package/src/worker/App.mjs +2 -9
- package/src/worker/Base.mjs +2 -8
- package/src/worker/Canvas.mjs +0 -2
- package/src/worker/Manager.mjs +3 -5
- package/src/worker/Message.mjs +0 -1
- package/src/worker/mixin/RemoteMethodAccess.mjs +0 -3
- package/test/siesta/siesta.js +2 -1
- package/test/siesta/tests/ClassConfigsAndFields.mjs +307 -0
- package/test/siesta/tests/ClassSystem.mjs +1 -1
|
@@ -70,11 +70,10 @@ class CheckBox extends Base {
|
|
|
70
70
|
}}
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
74
73
|
* @param {Object} config
|
|
75
74
|
*/
|
|
76
|
-
|
|
77
|
-
super(config);
|
|
75
|
+
construct(config) {
|
|
76
|
+
super.construct(config);
|
|
78
77
|
|
|
79
78
|
let me = this,
|
|
80
79
|
domListeners = me.domListeners;
|
|
@@ -87,7 +86,6 @@ class CheckBox extends Base {
|
|
|
87
86
|
}
|
|
88
87
|
|
|
89
88
|
/**
|
|
90
|
-
*
|
|
91
89
|
* @param {Boolean} value
|
|
92
90
|
* @param {Boolean} oldValue
|
|
93
91
|
* @protected
|
|
@@ -261,7 +259,6 @@ class CheckBox extends Base {
|
|
|
261
259
|
}
|
|
262
260
|
|
|
263
261
|
/**
|
|
264
|
-
*
|
|
265
262
|
* @returns {String}
|
|
266
263
|
*/
|
|
267
264
|
getInputElId() {
|
|
@@ -269,7 +266,6 @@ class CheckBox extends Base {
|
|
|
269
266
|
}
|
|
270
267
|
|
|
271
268
|
/**
|
|
272
|
-
*
|
|
273
269
|
* @returns {String}
|
|
274
270
|
*/
|
|
275
271
|
getLabelId() {
|
|
@@ -277,7 +273,6 @@ class CheckBox extends Base {
|
|
|
277
273
|
}
|
|
278
274
|
|
|
279
275
|
/**
|
|
280
|
-
*
|
|
281
276
|
* @returns {String}
|
|
282
277
|
*/
|
|
283
278
|
getValueLabelId() {
|
package/src/form/field/Color.mjs
CHANGED
|
@@ -45,11 +45,10 @@ class Color extends Select {
|
|
|
45
45
|
}}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
48
|
* @param {Object} config
|
|
50
49
|
*/
|
|
51
|
-
|
|
52
|
-
super(config);
|
|
50
|
+
construct(config) {
|
|
51
|
+
super.construct(config);
|
|
53
52
|
|
|
54
53
|
let me = this,
|
|
55
54
|
vdom = me.vdom,
|
|
@@ -95,7 +94,6 @@ class Color extends Select {
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
/**
|
|
98
|
-
*
|
|
99
97
|
* @returns {String}
|
|
100
98
|
*/
|
|
101
99
|
getColor() {
|
|
@@ -107,7 +105,6 @@ class Color extends Select {
|
|
|
107
105
|
}
|
|
108
106
|
|
|
109
107
|
/**
|
|
110
|
-
*
|
|
111
108
|
* @returns {String}
|
|
112
109
|
*/
|
|
113
110
|
getColorIndicatorId() {
|
package/src/form/field/Date.mjs
CHANGED
|
@@ -60,11 +60,10 @@ class DateField extends Picker {
|
|
|
60
60
|
}}
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
64
63
|
* @param config
|
|
65
64
|
*/
|
|
66
|
-
|
|
67
|
-
super(config);
|
|
65
|
+
construct(config) {
|
|
66
|
+
super.construct(config);
|
|
68
67
|
|
|
69
68
|
let me = this;
|
|
70
69
|
|
|
@@ -85,7 +84,6 @@ class DateField extends Picker {
|
|
|
85
84
|
}
|
|
86
85
|
|
|
87
86
|
/**
|
|
88
|
-
*
|
|
89
87
|
* @returns {Neo.component.DateSelector}
|
|
90
88
|
*/
|
|
91
89
|
createPickerComponent() {
|
|
@@ -104,7 +102,6 @@ class DateField extends Picker {
|
|
|
104
102
|
}
|
|
105
103
|
|
|
106
104
|
/**
|
|
107
|
-
*
|
|
108
105
|
* @param {Object} opts
|
|
109
106
|
*/
|
|
110
107
|
onDatePickerChange(opts) {
|
|
@@ -141,7 +138,6 @@ class DateField extends Picker {
|
|
|
141
138
|
}
|
|
142
139
|
|
|
143
140
|
/**
|
|
144
|
-
*
|
|
145
141
|
* @param {Object} data
|
|
146
142
|
* @protected
|
|
147
143
|
*/
|
|
@@ -84,7 +84,6 @@ class Picker extends Text {
|
|
|
84
84
|
}}
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
88
87
|
* @param {Boolean} silent
|
|
89
88
|
*/
|
|
90
89
|
applyClientRects(silent) {
|
|
@@ -110,7 +109,6 @@ class Picker extends Text {
|
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
/**
|
|
113
|
-
*
|
|
114
112
|
* @returns {Neo.container.Base}
|
|
115
113
|
*/
|
|
116
114
|
createPicker() {
|
|
@@ -139,16 +137,13 @@ class Picker extends Text {
|
|
|
139
137
|
}
|
|
140
138
|
|
|
141
139
|
/**
|
|
142
|
-
*
|
|
143
140
|
* @param {Function} [callback]
|
|
144
141
|
* @param {Function} [callbackScope]
|
|
145
142
|
*/
|
|
146
143
|
getClientRectsThenShow(callback, callbackScope) {
|
|
147
144
|
let me = this;
|
|
148
145
|
|
|
149
|
-
|
|
150
|
-
id: [me.id, me.getInputWrapperId(), 'body']
|
|
151
|
-
}).then(data => {
|
|
146
|
+
me.getDomRect([me.id, me.getInputWrapperId(), 'body']).then(data => {
|
|
152
147
|
me.clientRects = data;
|
|
153
148
|
me.showPicker(callback, callbackScope);
|
|
154
149
|
});
|
|
@@ -169,7 +164,6 @@ class Picker extends Text {
|
|
|
169
164
|
}
|
|
170
165
|
|
|
171
166
|
/**
|
|
172
|
-
*
|
|
173
167
|
* @returns {String}
|
|
174
168
|
*/
|
|
175
169
|
getPickerId() {
|
|
@@ -177,7 +171,6 @@ class Picker extends Text {
|
|
|
177
171
|
}
|
|
178
172
|
|
|
179
173
|
/**
|
|
180
|
-
*
|
|
181
174
|
* @param {Boolean} [silent=false]
|
|
182
175
|
*/
|
|
183
176
|
hidePicker(silent=false) {
|
|
@@ -200,7 +193,6 @@ class Picker extends Text {
|
|
|
200
193
|
}
|
|
201
194
|
|
|
202
195
|
/**
|
|
203
|
-
*
|
|
204
196
|
* @param {Object} data
|
|
205
197
|
* @protected
|
|
206
198
|
*/
|
|
@@ -218,7 +210,6 @@ class Picker extends Text {
|
|
|
218
210
|
}
|
|
219
211
|
|
|
220
212
|
/**
|
|
221
|
-
*
|
|
222
213
|
* @param {Object} data
|
|
223
214
|
* @param {Function} [callback]
|
|
224
215
|
* @param {Function} [callbackScope]
|
|
@@ -229,7 +220,6 @@ class Picker extends Text {
|
|
|
229
220
|
}
|
|
230
221
|
|
|
231
222
|
/**
|
|
232
|
-
*
|
|
233
223
|
* @param {Object} data
|
|
234
224
|
* @protected
|
|
235
225
|
*/
|
|
@@ -252,7 +242,6 @@ class Picker extends Text {
|
|
|
252
242
|
}
|
|
253
243
|
|
|
254
244
|
/**
|
|
255
|
-
*
|
|
256
245
|
* @param {Function} [callback]
|
|
257
246
|
* @param {Function} [callbackScope]
|
|
258
247
|
*/
|
package/src/form/field/Range.mjs
CHANGED
|
@@ -105,8 +105,8 @@ class Select extends Picker {
|
|
|
105
105
|
/**
|
|
106
106
|
* @param {Object} config
|
|
107
107
|
*/
|
|
108
|
-
|
|
109
|
-
super(config);
|
|
108
|
+
construct(config) {
|
|
109
|
+
super.construct(config);
|
|
110
110
|
|
|
111
111
|
let me = this;
|
|
112
112
|
|
|
@@ -189,15 +189,6 @@ class Select extends Picker {
|
|
|
189
189
|
super.afterSetValue(value, oldValue);
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
/**
|
|
193
|
-
* Gets triggered before getting the value of the value config
|
|
194
|
-
* @param {Number|String|null} value
|
|
195
|
-
* @returns {Number|Object|String}
|
|
196
|
-
*/
|
|
197
|
-
beforeGetValue(value) {
|
|
198
|
-
return this.record || value;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
192
|
/**
|
|
202
193
|
* Triggered before the listConfig config gets changed.
|
|
203
194
|
* @param {Object} value
|
|
@@ -278,13 +269,18 @@ class Select extends Picker {
|
|
|
278
269
|
*/
|
|
279
270
|
fireChangeEvent(value, oldValue) {
|
|
280
271
|
let me = this,
|
|
281
|
-
record = me.record
|
|
272
|
+
record = me.record,
|
|
273
|
+
oldRecord;
|
|
282
274
|
|
|
283
275
|
if (!(me.forceSelection && !record)) {
|
|
276
|
+
oldRecord = me.store.get(oldValue) || null;
|
|
277
|
+
|
|
284
278
|
me.fire('change', {
|
|
285
279
|
component: me,
|
|
286
|
-
|
|
287
|
-
|
|
280
|
+
oldRecord,
|
|
281
|
+
oldValue,
|
|
282
|
+
record,
|
|
283
|
+
value
|
|
288
284
|
});
|
|
289
285
|
}
|
|
290
286
|
}
|
|
@@ -307,7 +303,6 @@ class Select extends Picker {
|
|
|
307
303
|
}
|
|
308
304
|
|
|
309
305
|
/**
|
|
310
|
-
*
|
|
311
306
|
* @returns {Object}
|
|
312
307
|
*/
|
|
313
308
|
getInputHintEl() {
|
|
@@ -350,7 +345,6 @@ class Select extends Picker {
|
|
|
350
345
|
}
|
|
351
346
|
|
|
352
347
|
/**
|
|
353
|
-
*
|
|
354
348
|
* @param {Object} data
|
|
355
349
|
* @param {Object[]} data.oldPath
|
|
356
350
|
* @protected
|
|
@@ -402,10 +396,17 @@ class Select extends Picker {
|
|
|
402
396
|
* @protected
|
|
403
397
|
*/
|
|
404
398
|
onKeyDownRight(data) {
|
|
405
|
-
let me = this
|
|
399
|
+
let me = this,
|
|
400
|
+
oldValue, record;
|
|
406
401
|
|
|
407
402
|
if (me.hintRecordId) {
|
|
408
|
-
|
|
403
|
+
oldValue = me.value;
|
|
404
|
+
record = me.store.get(me.hintRecordId);
|
|
405
|
+
|
|
406
|
+
me.record = record;
|
|
407
|
+
me._value = record[me.displayField];
|
|
408
|
+
|
|
409
|
+
me.afterSetValue(me._value, oldValue);
|
|
409
410
|
}
|
|
410
411
|
}
|
|
411
412
|
|
|
@@ -437,9 +438,10 @@ class Select extends Picker {
|
|
|
437
438
|
* @protected
|
|
438
439
|
*/
|
|
439
440
|
onListItemClick(record) {
|
|
440
|
-
let me
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
let me = this,
|
|
442
|
+
displayField = me.displayField,
|
|
443
|
+
oldValue = me.value,
|
|
444
|
+
value = record[displayField];
|
|
443
445
|
|
|
444
446
|
if (me.value !== value) {
|
|
445
447
|
me.hintRecordId = null;
|
|
@@ -451,7 +453,7 @@ class Select extends Picker {
|
|
|
451
453
|
|
|
452
454
|
me.fire('select', {
|
|
453
455
|
record: record,
|
|
454
|
-
value : record[
|
|
456
|
+
value : record[displayField]
|
|
455
457
|
});
|
|
456
458
|
}
|
|
457
459
|
}
|
package/src/form/field/Text.mjs
CHANGED
|
@@ -121,11 +121,10 @@ class Text extends Base {
|
|
|
121
121
|
}}
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
125
124
|
* @param {Object} config
|
|
126
125
|
*/
|
|
127
|
-
|
|
128
|
-
super(config);
|
|
126
|
+
construct(config) {
|
|
127
|
+
super.construct(config);
|
|
129
128
|
|
|
130
129
|
let me = this,
|
|
131
130
|
domListeners = me.domListeners;
|
|
@@ -638,7 +637,6 @@ class Text extends Base {
|
|
|
638
637
|
}
|
|
639
638
|
|
|
640
639
|
/**
|
|
641
|
-
*
|
|
642
640
|
* @returns {Object|null}
|
|
643
641
|
*/
|
|
644
642
|
getCenterBorderEl() {
|
|
@@ -647,7 +645,6 @@ class Text extends Base {
|
|
|
647
645
|
}
|
|
648
646
|
|
|
649
647
|
/**
|
|
650
|
-
*
|
|
651
648
|
* @returns {Object|null}
|
|
652
649
|
*/
|
|
653
650
|
getInputEl() {
|
|
@@ -655,7 +652,6 @@ class Text extends Base {
|
|
|
655
652
|
return el?.vdom;
|
|
656
653
|
}
|
|
657
654
|
/**
|
|
658
|
-
*
|
|
659
655
|
* @returns {String}
|
|
660
656
|
*/
|
|
661
657
|
getInputElId() {
|
|
@@ -682,7 +678,6 @@ class Text extends Base {
|
|
|
682
678
|
}
|
|
683
679
|
|
|
684
680
|
/**
|
|
685
|
-
*
|
|
686
681
|
* @returns {String}
|
|
687
682
|
*/
|
|
688
683
|
getInputWrapperId() {
|
|
@@ -690,7 +685,6 @@ class Text extends Base {
|
|
|
690
685
|
}
|
|
691
686
|
|
|
692
687
|
/**
|
|
693
|
-
*
|
|
694
688
|
* @returns {Object|null}
|
|
695
689
|
*/
|
|
696
690
|
getLabelEl() {
|
|
@@ -699,7 +693,6 @@ class Text extends Base {
|
|
|
699
693
|
}
|
|
700
694
|
|
|
701
695
|
/**
|
|
702
|
-
*
|
|
703
696
|
* @returns {String}
|
|
704
697
|
*/
|
|
705
698
|
getLabelId() {
|
|
@@ -707,7 +700,6 @@ class Text extends Base {
|
|
|
707
700
|
}
|
|
708
701
|
|
|
709
702
|
/**
|
|
710
|
-
*
|
|
711
703
|
* @param {String} type
|
|
712
704
|
* @returns {Neo.form.field.trigger.Base|null}
|
|
713
705
|
*/
|
|
@@ -727,7 +719,6 @@ class Text extends Base {
|
|
|
727
719
|
}
|
|
728
720
|
|
|
729
721
|
/**
|
|
730
|
-
*
|
|
731
722
|
* @param {String} id
|
|
732
723
|
* @returns {Neo.form.field.trigger.Base|null}
|
|
733
724
|
*/
|
|
@@ -747,7 +738,6 @@ class Text extends Base {
|
|
|
747
738
|
}
|
|
748
739
|
|
|
749
740
|
/**
|
|
750
|
-
*
|
|
751
741
|
* @param {String} type
|
|
752
742
|
* @protected
|
|
753
743
|
* @returns {String} The trigger node id
|
|
@@ -776,7 +766,6 @@ class Text extends Base {
|
|
|
776
766
|
}
|
|
777
767
|
|
|
778
768
|
/**
|
|
779
|
-
*
|
|
780
769
|
* @returns {Boolean}
|
|
781
770
|
*/
|
|
782
771
|
isEmpty() {
|
|
@@ -784,7 +773,6 @@ class Text extends Base {
|
|
|
784
773
|
}
|
|
785
774
|
|
|
786
775
|
/**
|
|
787
|
-
*
|
|
788
776
|
* @returns {Boolean}
|
|
789
777
|
*/
|
|
790
778
|
isValid() {
|
|
@@ -798,7 +786,6 @@ class Text extends Base {
|
|
|
798
786
|
}
|
|
799
787
|
|
|
800
788
|
/**
|
|
801
|
-
*
|
|
802
789
|
* @param {Object} config
|
|
803
790
|
* @param {Boolean} [preventOriginalConfig] True prevents the instance from getting an originalConfig property
|
|
804
791
|
* @returns {Object} config
|
|
@@ -815,7 +802,6 @@ class Text extends Base {
|
|
|
815
802
|
}
|
|
816
803
|
|
|
817
804
|
/**
|
|
818
|
-
*
|
|
819
805
|
* @param {Object} data
|
|
820
806
|
* @param {Object[]} data.path
|
|
821
807
|
* @protected
|
|
@@ -840,7 +826,6 @@ class Text extends Base {
|
|
|
840
826
|
}
|
|
841
827
|
|
|
842
828
|
/**
|
|
843
|
-
*
|
|
844
829
|
* @param {Object} data
|
|
845
830
|
* @param {Object[]} data.oldPath
|
|
846
831
|
* @protected
|
|
@@ -936,9 +921,7 @@ class Text extends Base {
|
|
|
936
921
|
updateCenterBorderElWidth(silent=false) {
|
|
937
922
|
let me = this;
|
|
938
923
|
|
|
939
|
-
me.mounted &&
|
|
940
|
-
id: me.getCenterBorderEl().id
|
|
941
|
-
}).then(data => {
|
|
924
|
+
me.mounted && me.getDomRect(me.getCenterBorderEl().id).then(data => {
|
|
942
925
|
me.centerBorderElWidth = Math.round(data.width * .7) + 8;
|
|
943
926
|
|
|
944
927
|
if (!silent) {
|
package/src/form/field/Time.mjs
CHANGED
|
@@ -82,11 +82,10 @@ class Time extends Picker {
|
|
|
82
82
|
}}
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
86
85
|
* @param {Object} config
|
|
87
86
|
*/
|
|
88
|
-
|
|
89
|
-
super(config);
|
|
87
|
+
construct(config) {
|
|
88
|
+
super.construct(config);
|
|
90
89
|
|
|
91
90
|
let me = this,
|
|
92
91
|
clearTrigger = me.getTrigger('clear');
|
|
@@ -253,7 +252,6 @@ class Time extends Picker {
|
|
|
253
252
|
}
|
|
254
253
|
|
|
255
254
|
/**
|
|
256
|
-
*
|
|
257
255
|
* @returns {String[]}
|
|
258
256
|
*/
|
|
259
257
|
createCollectionItems() {
|
|
@@ -285,7 +283,6 @@ class Time extends Picker {
|
|
|
285
283
|
}
|
|
286
284
|
|
|
287
285
|
/**
|
|
288
|
-
*
|
|
289
286
|
* @returns {Neo.component.DateSelector}
|
|
290
287
|
*/
|
|
291
288
|
createPickerComponent() {
|
|
@@ -293,7 +290,6 @@ class Time extends Picker {
|
|
|
293
290
|
}
|
|
294
291
|
|
|
295
292
|
/**
|
|
296
|
-
*
|
|
297
293
|
* @param {Function} [callback]
|
|
298
294
|
*/
|
|
299
295
|
focusInputEl(callback) {
|
|
@@ -340,7 +336,6 @@ class Time extends Picker {
|
|
|
340
336
|
}
|
|
341
337
|
|
|
342
338
|
/**
|
|
343
|
-
*
|
|
344
339
|
* @param {Object} data
|
|
345
340
|
* @protected
|
|
346
341
|
*/
|
|
@@ -356,7 +351,6 @@ class Time extends Picker {
|
|
|
356
351
|
}
|
|
357
352
|
|
|
358
353
|
/**
|
|
359
|
-
*
|
|
360
354
|
* @param {Object} record
|
|
361
355
|
*/
|
|
362
356
|
onListItemClick(record) {
|
|
@@ -373,7 +367,6 @@ class Time extends Picker {
|
|
|
373
367
|
}
|
|
374
368
|
|
|
375
369
|
/**
|
|
376
|
-
*
|
|
377
370
|
* @param {Object} record
|
|
378
371
|
*/
|
|
379
372
|
onListItemNavigate(record) {
|
|
@@ -80,11 +80,10 @@ class Base extends Component {
|
|
|
80
80
|
}}
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
84
83
|
* @param {Object} config
|
|
85
84
|
*/
|
|
86
|
-
|
|
87
|
-
super(config);
|
|
85
|
+
construct(config) {
|
|
86
|
+
super.construct(config);
|
|
88
87
|
|
|
89
88
|
let me = this,
|
|
90
89
|
domListeners = me.domListeners || [],
|
|
@@ -168,7 +167,6 @@ class Base extends Component {
|
|
|
168
167
|
}
|
|
169
168
|
|
|
170
169
|
/**
|
|
171
|
-
*
|
|
172
170
|
* @param {Boolean} updateParentVdom
|
|
173
171
|
* @param {Boolean} silent
|
|
174
172
|
*/
|
|
@@ -81,7 +81,6 @@ class Clear extends Base {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
85
84
|
* @returns {Boolean} true in case the trigger should be hidden
|
|
86
85
|
*/
|
|
87
86
|
getHiddenState() {
|
|
@@ -101,7 +100,6 @@ class Clear extends Base {
|
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
/**
|
|
104
|
-
*
|
|
105
103
|
* @param {Object} opts
|
|
106
104
|
*/
|
|
107
105
|
onFieldChange(opts) {
|
|
@@ -136,7 +134,6 @@ class Clear extends Base {
|
|
|
136
134
|
}
|
|
137
135
|
|
|
138
136
|
/**
|
|
139
|
-
*
|
|
140
137
|
* @param {Object} data
|
|
141
138
|
*/
|
|
142
139
|
onTriggerClick(data) {
|
|
@@ -55,7 +55,6 @@ class CopyToClipboard extends Base {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
59
58
|
* @returns {Boolean} true in case the trigger should be hidden
|
|
60
59
|
*/
|
|
61
60
|
getHiddenState() {
|
|
@@ -80,7 +79,6 @@ class CopyToClipboard extends Base {
|
|
|
80
79
|
}
|
|
81
80
|
|
|
82
81
|
/**
|
|
83
|
-
*
|
|
84
82
|
* @param {Object} opts
|
|
85
83
|
*/
|
|
86
84
|
onFieldChange(opts) {
|
|
@@ -88,7 +86,6 @@ class CopyToClipboard extends Base {
|
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
/**
|
|
91
|
-
*
|
|
92
89
|
* @param {Object} data
|
|
93
90
|
*/
|
|
94
91
|
onTriggerClick(data) {
|
package/src/grid/Container.mjs
CHANGED
|
@@ -74,17 +74,15 @@ class Container extends BaseContainer {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
78
77
|
* @param {Object} config
|
|
79
78
|
*/
|
|
80
|
-
|
|
81
|
-
super(config);
|
|
79
|
+
construct(config) {
|
|
80
|
+
super.construct(config);
|
|
82
81
|
|
|
83
82
|
this.createRandomViewData(this.amountRows);
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
/**
|
|
87
|
-
*
|
|
88
86
|
* @param columns
|
|
89
87
|
* @returns {*}
|
|
90
88
|
*/
|
|
@@ -108,7 +106,6 @@ class Container extends BaseContainer {
|
|
|
108
106
|
}
|
|
109
107
|
|
|
110
108
|
/**
|
|
111
|
-
*
|
|
112
109
|
* Dummy method until we have a data package in place
|
|
113
110
|
* @param {Number} amountRows
|
|
114
111
|
*/
|
|
@@ -165,4 +162,4 @@ class Container extends BaseContainer {
|
|
|
165
162
|
|
|
166
163
|
Neo.applyClassConfig(Container);
|
|
167
164
|
|
|
168
|
-
export {Container as default};
|
|
165
|
+
export {Container as default};
|