neo.mjs 2.3.14 → 2.3.18
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 +2 -2
- package/apps/covid/Util.mjs +1 -3
- package/apps/covid/view/GalleryContainer.mjs +0 -1
- package/apps/covid/view/GalleryContainerController.mjs +1 -5
- package/apps/covid/view/HelixContainer.mjs +0 -1
- package/apps/covid/view/HelixContainerController.mjs +1 -4
- package/apps/covid/view/MainContainer.mjs +1 -1
- package/apps/covid/view/MainContainerController.mjs +0 -7
- package/apps/covid/view/MainContainerModel.mjs +0 -1
- package/apps/covid/view/TableContainer.mjs +0 -1
- 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 +0 -1
- package/apps/krausest/view/MainComponentController.mjs +0 -1
- package/apps/krausest/view/TableComponent.mjs +0 -2
- 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/api/config.mjs +2 -2
- package/apps/realworld/view/HeaderComponent.mjs +1 -2
- package/apps/realworld/view/HomeComponent.mjs +0 -9
- package/apps/realworld/view/MainContainerController.mjs +0 -13
- package/apps/realworld/view/article/CommentComponent.mjs +1 -3
- package/apps/realworld/view/article/Component.mjs +0 -5
- package/apps/realworld/view/article/CreateCommentComponent.mjs +1 -5
- package/apps/realworld/view/article/PreviewComponent.mjs +1 -3
- package/apps/realworld/view/article/TagListComponent.mjs +1 -5
- package/apps/realworld/view/user/ProfileComponent.mjs +0 -6
- package/apps/realworld/view/user/SettingsComponent.mjs +1 -5
- package/apps/realworld/view/user/SignUpComponent.mjs +0 -1
- 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 +1 -3
- package/apps/realworld2/view/article/PreviewComponent.mjs +1 -3
- package/apps/realworld2/view/article/TagListComponent.mjs +1 -5
- package/apps/realworld2/view/user/LoginFormContainer.mjs +1 -2
- package/apps/sharedcovid/Util.mjs +1 -3
- package/apps/sharedcovid/view/GalleryContainer.mjs +0 -1
- package/apps/sharedcovid/view/GalleryContainerController.mjs +1 -5
- package/apps/sharedcovid/view/HelixContainer.mjs +0 -1
- package/apps/sharedcovid/view/HelixContainerController.mjs +1 -4
- package/apps/sharedcovid/view/MainContainer.mjs +1 -1
- package/apps/sharedcovid/view/MainContainerModel.mjs +0 -1
- package/apps/sharedcovid/view/TableContainer.mjs +0 -1
- 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 +0 -1
- 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 +16 -3
- package/apps/website/data/examples_devmode.json +18 -18
- package/apps/website/view/MainContainerController.mjs +0 -4
- package/buildScripts/webpack/development/webpack.config.main.js +2 -1
- package/buildScripts/webpack/production/webpack.config.main.js +2 -1
- package/examples/ConfigurationViewport.mjs +0 -4
- package/examples/calendar/basic/MainContainerController.mjs +0 -1
- package/examples/component/coronaGallery/CountryGallery.mjs +1 -4
- package/examples/component/coronaGallery/MainContainer.mjs +0 -2
- package/examples/component/coronaHelix/CountryHelix.mjs +0 -4
- package/examples/component/coronaHelix/MainContainer.mjs +0 -2
- package/examples/component/gallery/MainContainer.mjs +0 -2
- package/examples/component/helix/MainContainer.mjs +0 -2
- package/examples/component/splitter/MainContainer.mjs +0 -2
- package/examples/core/config/MainContainer.mjs +1 -3
- package/examples/dialog/MainContainer.mjs +1 -5
- package/examples/list/animate/List.mjs +50 -0
- package/examples/list/animate/MainContainer.mjs +79 -0
- package/examples/list/animate/MainModel.mjs +33 -0
- package/examples/list/animate/MainStore.mjs +31 -0
- package/examples/list/animate/app.mjs +8 -0
- package/examples/list/animate/index.html +11 -0
- package/examples/list/animate/neo-config.json +7 -0
- package/examples/list/base/neo-config.json +1 -1
- 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 +1 -3
- package/examples/model/nestedData/MainContainerController.mjs +1 -8
- package/examples/tab/container/MainContainer.mjs +1 -6
- package/examples/todoList/version2/TodoList.mjs +1 -1
- package/examples/tree/MainContainer.mjs +0 -2
- package/package.json +11 -11
- package/resources/scss/src/examples/list/animate/List.scss +30 -0
- package/src/Main.mjs +7 -16
- package/src/Neo.mjs +1 -4
- package/src/button/Menu.mjs +0 -1
- package/src/button/Split.mjs +0 -4
- package/src/calendar/store/Events.mjs +0 -1
- package/src/calendar/view/DayComponent.mjs +0 -1
- package/src/calendar/view/EditEventContainer.mjs +0 -7
- package/src/calendar/view/MainContainer.mjs +0 -15
- package/src/calendar/view/MainContainerModel.mjs +0 -2
- package/src/calendar/view/SettingsContainer.mjs +0 -4
- package/src/calendar/view/YearComponent.mjs +0 -9
- package/src/calendar/view/calendars/Container.mjs +0 -1
- package/src/calendar/view/calendars/EditContainer.mjs +0 -5
- package/src/calendar/view/calendars/List.mjs +0 -5
- package/src/calendar/view/month/Component.mjs +0 -12
- 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 +0 -16
- package/src/calendar/view/week/EventDragZone.mjs +0 -3
- package/src/calendar/view/week/TimeAxisComponent.mjs +0 -1
- package/src/calendar/view/week/plugin/DragDrop.mjs +0 -10
- package/src/calendar/view/week/plugin/EventResizable.mjs +0 -3
- package/src/collection/Base.mjs +8 -24
- package/src/collection/Filter.mjs +0 -1
- package/src/collection/Sorter.mjs +0 -3
- package/src/component/Base.mjs +1 -3
- package/src/component/Chip.mjs +0 -2
- package/src/component/Circle.mjs +0 -18
- package/src/component/DateSelector.mjs +0 -13
- package/src/component/Gallery.mjs +0 -12
- package/src/component/Helix.mjs +0 -14
- package/src/component/Splitter.mjs +0 -3
- package/src/component/mwc/TextField.mjs +0 -1
- 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 +0 -3
- package/src/controller/Application.mjs +0 -1
- package/src/controller/Base.mjs +0 -1
- package/src/controller/Component.mjs +1 -4
- package/src/core/Base.mjs +2 -3
- package/src/core/Compare.mjs +0 -1
- package/src/core/IdGenerator.mjs +1 -3
- 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 +0 -10
- package/src/data/connection/Xhr.mjs +0 -6
- package/src/dialog/Base.mjs +0 -10
- package/src/draggable/DragProxyComponent.mjs +1 -3
- package/src/draggable/DragZone.mjs +0 -6
- package/src/draggable/DropZone.mjs +1 -7
- package/src/draggable/list/DragZone.mjs +1 -7
- package/src/draggable/tab/header/toolbar/SortZone.mjs +1 -3
- package/src/draggable/toolbar/DragZone.mjs +1 -5
- package/src/draggable/toolbar/SortZone.mjs +0 -5
- 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 +1 -3
- 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 +0 -5
- package/src/form/field/Color.mjs +0 -3
- package/src/form/field/Date.mjs +0 -4
- package/src/form/field/Display.mjs +0 -1
- package/src/form/field/Picker.mjs +0 -9
- package/src/form/field/Range.mjs +0 -1
- package/src/form/field/Select.mjs +22 -20
- package/src/form/field/Text.mjs +0 -15
- package/src/form/field/Time.mjs +0 -7
- package/src/form/field/trigger/Base.mjs +0 -2
- 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 +0 -1
- package/src/grid/Container.mjs +1 -4
- package/src/grid/header/Toolbar.mjs +1 -5
- package/src/list/Base.mjs +39 -8
- package/src/list/Color.mjs +0 -3
- package/src/list/Component.mjs +0 -3
- package/src/list/plugin/Animate.mjs +176 -0
- package/src/main/DomAccess.mjs +7 -22
- package/src/main/DomEvents.mjs +42 -75
- package/src/main/addon/AmCharts.mjs +1 -10
- package/src/main/addon/AnalyticsByGoogle.mjs +1 -2
- package/src/main/addon/CloneNode.mjs +0 -2
- package/src/main/addon/Cookie.mjs +0 -3
- package/src/main/addon/DragDrop.mjs +0 -9
- package/src/main/addon/HighlightJS.mjs +1 -5
- package/src/main/addon/MapboxGL.mjs +1 -14
- package/src/main/addon/Mwc.mjs +0 -2
- package/src/main/addon/Siesta.mjs +0 -1
- package/src/main/addon/Stylesheet.mjs +0 -4
- package/src/main/addon/WindowPosition.mjs +1 -6
- package/src/main/draggable/sensor/Mouse.mjs +0 -4
- package/src/main/draggable/sensor/Touch.mjs +0 -4
- 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 +0 -3
- package/src/manager/DomEvent.mjs +1 -6
- package/src/manager/Focus.mjs +0 -7
- package/src/manager/Instance.mjs +0 -1
- package/src/manager/Store.mjs +0 -4
- package/src/menu/List.mjs +0 -6
- package/src/model/Component.mjs +3 -15
- package/src/plugin/Base.mjs +0 -1
- package/src/plugin/Resizable.mjs +0 -8
- 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 +0 -4
- package/src/selection/table/CellColumnRowModel.mjs +0 -4
- package/src/selection/table/CellModel.mjs +0 -8
- package/src/selection/table/CellRowModel.mjs +0 -6
- 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/header/Button.mjs +1 -2
- package/src/tab/header/Toolbar.mjs +0 -1
- package/src/table/Container.mjs +0 -8
- package/src/table/View.mjs +0 -4
- package/src/table/header/Button.mjs +0 -6
- 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 +5 -17
- 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 +0 -7
- package/src/worker/Base.mjs +0 -6
- package/src/worker/Canvas.mjs +0 -2
- package/src/worker/Manager.mjs +1 -3
- package/src/worker/Message.mjs +0 -1
- package/src/worker/mixin/RemoteMethodAccess.mjs +0 -3
|
@@ -150,7 +150,6 @@ class DragZone extends Base {
|
|
|
150
150
|
}}
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
154
153
|
* @param {Object} config
|
|
155
154
|
*/
|
|
156
155
|
constructor(config) {
|
|
@@ -185,7 +184,6 @@ class DragZone extends Base {
|
|
|
185
184
|
}
|
|
186
185
|
|
|
187
186
|
/**
|
|
188
|
-
*
|
|
189
187
|
* @param {Object} data
|
|
190
188
|
*/
|
|
191
189
|
createDragProxy(data) {
|
|
@@ -251,7 +249,6 @@ class DragZone extends Base {
|
|
|
251
249
|
}
|
|
252
250
|
|
|
253
251
|
/**
|
|
254
|
-
*
|
|
255
252
|
* @param {Object} data
|
|
256
253
|
*/
|
|
257
254
|
dragEnd(data) {
|
|
@@ -280,7 +277,6 @@ class DragZone extends Base {
|
|
|
280
277
|
}
|
|
281
278
|
|
|
282
279
|
/**
|
|
283
|
-
*
|
|
284
280
|
* @param {Object} data
|
|
285
281
|
*/
|
|
286
282
|
dragMove(data) {
|
|
@@ -305,7 +301,6 @@ class DragZone extends Base {
|
|
|
305
301
|
}
|
|
306
302
|
|
|
307
303
|
/**
|
|
308
|
-
*
|
|
309
304
|
* @param {Object} data
|
|
310
305
|
*/
|
|
311
306
|
dragStart(data) {
|
|
@@ -348,7 +343,6 @@ class DragZone extends Base {
|
|
|
348
343
|
}
|
|
349
344
|
|
|
350
345
|
/**
|
|
351
|
-
*
|
|
352
346
|
* @param {Object} data
|
|
353
347
|
* @returns {Object}
|
|
354
348
|
*/
|
|
@@ -23,7 +23,6 @@ class DropZone extends Base {
|
|
|
23
23
|
}}
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
26
|
* @param {Object} config
|
|
28
27
|
*/
|
|
29
28
|
constructor(config) {
|
|
@@ -43,7 +42,6 @@ class DropZone extends Base {
|
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
/**
|
|
46
|
-
*
|
|
47
45
|
* @param {String} name
|
|
48
46
|
* @param {Object} data
|
|
49
47
|
*/
|
|
@@ -52,7 +50,6 @@ class DropZone extends Base {
|
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
/**
|
|
55
|
-
*
|
|
56
53
|
* @param {String} dragZoneId
|
|
57
54
|
* @returns {Object|null}
|
|
58
55
|
*/
|
|
@@ -67,7 +64,6 @@ class DropZone extends Base {
|
|
|
67
64
|
}
|
|
68
65
|
|
|
69
66
|
/**
|
|
70
|
-
*
|
|
71
67
|
* @param {Object} data
|
|
72
68
|
*/
|
|
73
69
|
onDrop(data) {
|
|
@@ -75,7 +71,6 @@ class DropZone extends Base {
|
|
|
75
71
|
}
|
|
76
72
|
|
|
77
73
|
/**
|
|
78
|
-
*
|
|
79
74
|
* @param {Object} data
|
|
80
75
|
*/
|
|
81
76
|
onDropEnter(data) {
|
|
@@ -83,7 +78,6 @@ class DropZone extends Base {
|
|
|
83
78
|
}
|
|
84
79
|
|
|
85
80
|
/**
|
|
86
|
-
*
|
|
87
81
|
* @param {Object} data
|
|
88
82
|
*/
|
|
89
83
|
onDropLeave(data) {
|
|
@@ -93,4 +87,4 @@ class DropZone extends Base {
|
|
|
93
87
|
|
|
94
88
|
Neo.applyClassConfig(DropZone);
|
|
95
89
|
|
|
96
|
-
export {DropZone as default};
|
|
90
|
+
export {DropZone as default};
|
|
@@ -27,7 +27,6 @@ class DragZone extends BaseDragZone {
|
|
|
27
27
|
}}
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
30
|
* @param {Object} config
|
|
32
31
|
*/
|
|
33
32
|
constructor(config) {
|
|
@@ -58,7 +57,6 @@ class DragZone extends BaseDragZone {
|
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
/**
|
|
61
|
-
*
|
|
62
60
|
* @param {Boolean} draggable
|
|
63
61
|
*/
|
|
64
62
|
adjustListItemCls(draggable) {
|
|
@@ -81,7 +79,6 @@ class DragZone extends BaseDragZone {
|
|
|
81
79
|
}
|
|
82
80
|
|
|
83
81
|
/**
|
|
84
|
-
*
|
|
85
82
|
* @param {Object} record
|
|
86
83
|
* @param {Number} index
|
|
87
84
|
* @returns {Object|null} vdom
|
|
@@ -91,7 +88,6 @@ class DragZone extends BaseDragZone {
|
|
|
91
88
|
}
|
|
92
89
|
|
|
93
90
|
/**
|
|
94
|
-
*
|
|
95
91
|
* @param {Object} data
|
|
96
92
|
*/
|
|
97
93
|
onDragEnd(data) {
|
|
@@ -120,7 +116,6 @@ class DragZone extends BaseDragZone {
|
|
|
120
116
|
}
|
|
121
117
|
|
|
122
118
|
/**
|
|
123
|
-
*
|
|
124
119
|
* @param {Object} data
|
|
125
120
|
*/
|
|
126
121
|
onDragStart(data) {
|
|
@@ -140,7 +135,6 @@ class DragZone extends BaseDragZone {
|
|
|
140
135
|
}
|
|
141
136
|
|
|
142
137
|
/**
|
|
143
|
-
*
|
|
144
138
|
* @param {Object} data={}
|
|
145
139
|
*/
|
|
146
140
|
setData(data={}) {
|
|
@@ -156,4 +150,4 @@ class DragZone extends BaseDragZone {
|
|
|
156
150
|
|
|
157
151
|
Neo.applyClassConfig(DragZone);
|
|
158
152
|
|
|
159
|
-
export {DragZone as default};
|
|
153
|
+
export {DragZone as default};
|
|
@@ -35,7 +35,6 @@ class SortZone extends BaseSortZone {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
38
|
* @param {Object} data
|
|
40
39
|
*/
|
|
41
40
|
onDragEnd(data) {
|
|
@@ -52,7 +51,6 @@ class SortZone extends BaseSortZone {
|
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
/**
|
|
55
|
-
*
|
|
56
54
|
* @param {Object} data
|
|
57
55
|
*/
|
|
58
56
|
onDragStart(data) {
|
|
@@ -69,4 +67,4 @@ class SortZone extends BaseSortZone {
|
|
|
69
67
|
|
|
70
68
|
Neo.applyClassConfig(SortZone);
|
|
71
69
|
|
|
72
|
-
export {SortZone as default};
|
|
70
|
+
export {SortZone as default};
|
|
@@ -21,7 +21,6 @@ class DragZone extends BaseDragZone {
|
|
|
21
21
|
}}
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
24
|
* @param {Object} config
|
|
26
25
|
*/
|
|
27
26
|
constructor(config) {
|
|
@@ -46,7 +45,6 @@ class DragZone extends BaseDragZone {
|
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
/**
|
|
49
|
-
*
|
|
50
48
|
* @param {Boolean} draggable
|
|
51
49
|
*/
|
|
52
50
|
adjustToolbarItemCls(draggable) {
|
|
@@ -64,7 +62,6 @@ class DragZone extends BaseDragZone {
|
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
/**
|
|
67
|
-
*
|
|
68
65
|
* @param {Object} data
|
|
69
66
|
*/
|
|
70
67
|
onDragEnd(data) {
|
|
@@ -93,7 +90,6 @@ class DragZone extends BaseDragZone {
|
|
|
93
90
|
}
|
|
94
91
|
|
|
95
92
|
/**
|
|
96
|
-
*
|
|
97
93
|
* @param {Object} data
|
|
98
94
|
*/
|
|
99
95
|
onDragStart(data) {
|
|
@@ -121,4 +117,4 @@ class DragZone extends BaseDragZone {
|
|
|
121
117
|
|
|
122
118
|
Neo.applyClassConfig(DragZone);
|
|
123
119
|
|
|
124
|
-
export {DragZone as default};
|
|
120
|
+
export {DragZone as default};
|
|
@@ -79,7 +79,6 @@ class SortZone extends DragZone {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
83
82
|
* @param {Object} data
|
|
84
83
|
*/
|
|
85
84
|
onDragEnd(data) {
|
|
@@ -131,7 +130,6 @@ class SortZone extends DragZone {
|
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
/**
|
|
134
|
-
*
|
|
135
133
|
* @param {Object} data
|
|
136
134
|
*/
|
|
137
135
|
onDragMove(data) {
|
|
@@ -169,7 +167,6 @@ class SortZone extends DragZone {
|
|
|
169
167
|
}
|
|
170
168
|
|
|
171
169
|
/**
|
|
172
|
-
*
|
|
173
170
|
* @param {Object} data
|
|
174
171
|
*/
|
|
175
172
|
onDragStart(data) {
|
|
@@ -246,7 +243,6 @@ class SortZone extends DragZone {
|
|
|
246
243
|
}
|
|
247
244
|
|
|
248
245
|
/**
|
|
249
|
-
*
|
|
250
246
|
* @param {Number} index1
|
|
251
247
|
* @param {Number} index2
|
|
252
248
|
*/
|
|
@@ -287,7 +283,6 @@ class SortZone extends DragZone {
|
|
|
287
283
|
}
|
|
288
284
|
|
|
289
285
|
/**
|
|
290
|
-
*
|
|
291
286
|
* @param {Number} index
|
|
292
287
|
* @param {Object} rect
|
|
293
288
|
*/
|
|
@@ -58,7 +58,6 @@ class DragZone extends BaseDragZone {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
62
61
|
* @returns {Object}
|
|
63
62
|
*/
|
|
64
63
|
getDragElementRoot() {
|
|
@@ -66,7 +65,6 @@ class DragZone extends BaseDragZone {
|
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
/**
|
|
69
|
-
*
|
|
70
68
|
* @param {Object} record
|
|
71
69
|
* @param {Number} index
|
|
72
70
|
* @returns {Object|null} vdom
|
|
@@ -82,7 +80,6 @@ class DragZone extends BaseDragZone {
|
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
/**
|
|
85
|
-
*
|
|
86
83
|
* @param {Object} data
|
|
87
84
|
*/
|
|
88
85
|
onDragStart(data) {
|
|
@@ -102,4 +99,4 @@ class DragZone extends BaseDragZone {
|
|
|
102
99
|
|
|
103
100
|
Neo.applyClassConfig(DragZone);
|
|
104
101
|
|
|
105
|
-
export {DragZone as default};
|
|
102
|
+
export {DragZone as default};
|
|
@@ -104,7 +104,6 @@ class NumberContainer extends Container {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
108
107
|
* @param {Object} data
|
|
109
108
|
*/
|
|
110
109
|
onOperatorChange(data) {
|
|
@@ -112,7 +111,6 @@ class NumberContainer extends Container {
|
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
/**
|
|
115
|
-
*
|
|
116
114
|
* @param {Object} data
|
|
117
115
|
*/
|
|
118
116
|
onValueChange(data) {
|
|
@@ -28,7 +28,6 @@ class ToggleOperatorsButton extends Button {
|
|
|
28
28
|
}}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
31
|
* @param {Object} config
|
|
33
32
|
*/
|
|
34
33
|
constructor(config) {
|
|
@@ -82,7 +81,6 @@ class ToggleOperatorsButton extends Button {
|
|
|
82
81
|
}
|
|
83
82
|
|
|
84
83
|
/**
|
|
85
|
-
*
|
|
86
84
|
* @param {Object} data
|
|
87
85
|
*/
|
|
88
86
|
onButtonClick(data) {
|
|
@@ -95,4 +93,4 @@ class ToggleOperatorsButton extends Button {
|
|
|
95
93
|
|
|
96
94
|
Neo.applyClassConfig(ToggleOperatorsButton);
|
|
97
95
|
|
|
98
|
-
export {ToggleOperatorsButton as default};
|
|
96
|
+
export {ToggleOperatorsButton as default};
|
package/src/form/Container.mjs
CHANGED
|
@@ -50,7 +50,6 @@ class Container extends BaseContainer {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
54
53
|
* @returns {Neo.form.field.Base[]} fields
|
|
55
54
|
*/
|
|
56
55
|
getFields() {
|
|
@@ -67,7 +66,6 @@ class Container extends BaseContainer {
|
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
/**
|
|
70
|
-
*
|
|
71
69
|
* @returns {Object} values
|
|
72
70
|
*/
|
|
73
71
|
getValues() {
|
package/src/form/Fieldset.mjs
CHANGED
package/src/form/field/Base.mjs
CHANGED
|
@@ -70,7 +70,6 @@ class CheckBox extends Base {
|
|
|
70
70
|
}}
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
74
73
|
* @param {Object} config
|
|
75
74
|
*/
|
|
76
75
|
constructor(config) {
|
|
@@ -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,7 +45,6 @@ class Color extends Select {
|
|
|
45
45
|
}}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
48
|
* @param {Object} config
|
|
50
49
|
*/
|
|
51
50
|
constructor(config) {
|
|
@@ -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,7 +60,6 @@ class DateField extends Picker {
|
|
|
60
60
|
}}
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
64
63
|
* @param config
|
|
65
64
|
*/
|
|
66
65
|
constructor(config) {
|
|
@@ -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,7 +137,6 @@ class Picker extends Text {
|
|
|
139
137
|
}
|
|
140
138
|
|
|
141
139
|
/**
|
|
142
|
-
*
|
|
143
140
|
* @param {Function} [callback]
|
|
144
141
|
* @param {Function} [callbackScope]
|
|
145
142
|
*/
|
|
@@ -169,7 +166,6 @@ class Picker extends Text {
|
|
|
169
166
|
}
|
|
170
167
|
|
|
171
168
|
/**
|
|
172
|
-
*
|
|
173
169
|
* @returns {String}
|
|
174
170
|
*/
|
|
175
171
|
getPickerId() {
|
|
@@ -177,7 +173,6 @@ class Picker extends Text {
|
|
|
177
173
|
}
|
|
178
174
|
|
|
179
175
|
/**
|
|
180
|
-
*
|
|
181
176
|
* @param {Boolean} [silent=false]
|
|
182
177
|
*/
|
|
183
178
|
hidePicker(silent=false) {
|
|
@@ -200,7 +195,6 @@ class Picker extends Text {
|
|
|
200
195
|
}
|
|
201
196
|
|
|
202
197
|
/**
|
|
203
|
-
*
|
|
204
198
|
* @param {Object} data
|
|
205
199
|
* @protected
|
|
206
200
|
*/
|
|
@@ -218,7 +212,6 @@ class Picker extends Text {
|
|
|
218
212
|
}
|
|
219
213
|
|
|
220
214
|
/**
|
|
221
|
-
*
|
|
222
215
|
* @param {Object} data
|
|
223
216
|
* @param {Function} [callback]
|
|
224
217
|
* @param {Function} [callbackScope]
|
|
@@ -229,7 +222,6 @@ class Picker extends Text {
|
|
|
229
222
|
}
|
|
230
223
|
|
|
231
224
|
/**
|
|
232
|
-
*
|
|
233
225
|
* @param {Object} data
|
|
234
226
|
* @protected
|
|
235
227
|
*/
|
|
@@ -252,7 +244,6 @@ class Picker extends Text {
|
|
|
252
244
|
}
|
|
253
245
|
|
|
254
246
|
/**
|
|
255
|
-
*
|
|
256
247
|
* @param {Function} [callback]
|
|
257
248
|
* @param {Function} [callbackScope]
|
|
258
249
|
*/
|
package/src/form/field/Range.mjs
CHANGED
|
@@ -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
|
}
|