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
package/src/data/Store.mjs
CHANGED
|
@@ -77,11 +77,10 @@ class Store extends Base {
|
|
|
77
77
|
}}
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
81
80
|
* @param {Object} config
|
|
82
81
|
*/
|
|
83
|
-
|
|
84
|
-
super(config);
|
|
82
|
+
construct(config) {
|
|
83
|
+
super.construct(config);
|
|
85
84
|
|
|
86
85
|
let me = this;
|
|
87
86
|
|
|
@@ -103,7 +102,6 @@ class Store extends Base {
|
|
|
103
102
|
}
|
|
104
103
|
|
|
105
104
|
/**
|
|
106
|
-
*
|
|
107
105
|
* @param value
|
|
108
106
|
* @param oldValue
|
|
109
107
|
* @protected
|
|
@@ -125,7 +123,6 @@ class Store extends Base {
|
|
|
125
123
|
}
|
|
126
124
|
|
|
127
125
|
/**
|
|
128
|
-
*
|
|
129
126
|
* @param value
|
|
130
127
|
* @param oldValue
|
|
131
128
|
* @protected
|
|
@@ -135,7 +132,6 @@ class Store extends Base {
|
|
|
135
132
|
}
|
|
136
133
|
|
|
137
134
|
/**
|
|
138
|
-
*
|
|
139
135
|
* @param value
|
|
140
136
|
* @param oldValue
|
|
141
137
|
* @protected
|
|
@@ -148,7 +144,6 @@ class Store extends Base {
|
|
|
148
144
|
}
|
|
149
145
|
|
|
150
146
|
/**
|
|
151
|
-
*
|
|
152
147
|
* @param value
|
|
153
148
|
* @param oldValue
|
|
154
149
|
* @protected
|
|
@@ -178,7 +173,6 @@ class Store extends Base {
|
|
|
178
173
|
}
|
|
179
174
|
|
|
180
175
|
/**
|
|
181
|
-
*
|
|
182
176
|
* @param value
|
|
183
177
|
* @param oldValue
|
|
184
178
|
* @protected
|
|
@@ -193,7 +187,6 @@ class Store extends Base {
|
|
|
193
187
|
}
|
|
194
188
|
|
|
195
189
|
/**
|
|
196
|
-
*
|
|
197
190
|
* @param {Neo.data.Model} value
|
|
198
191
|
* @param {Neo.data.Model} oldValue
|
|
199
192
|
* @protected
|
|
@@ -208,7 +201,6 @@ class Store extends Base {
|
|
|
208
201
|
}
|
|
209
202
|
|
|
210
203
|
/**
|
|
211
|
-
*
|
|
212
204
|
* @param {Object} config
|
|
213
205
|
*/
|
|
214
206
|
createRecord(config) {
|
|
@@ -229,7 +221,6 @@ class Store extends Base {
|
|
|
229
221
|
}
|
|
230
222
|
|
|
231
223
|
/**
|
|
232
|
-
*
|
|
233
224
|
* @param {Object} opts
|
|
234
225
|
*/
|
|
235
226
|
onCollectionMutate(opts) {
|
|
@@ -288,7 +279,6 @@ class Store extends Base {
|
|
|
288
279
|
}
|
|
289
280
|
|
|
290
281
|
/**
|
|
291
|
-
*
|
|
292
282
|
* @param {Object} opts
|
|
293
283
|
* @param {String} opts.direction
|
|
294
284
|
* @param {String} opts.property
|
|
@@ -55,7 +55,6 @@ class Xhr extends Base {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
59
58
|
* @param {Object} e
|
|
60
59
|
*/
|
|
61
60
|
onError(e) {
|
|
@@ -74,7 +73,6 @@ class Xhr extends Base {
|
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
/**
|
|
77
|
-
*
|
|
78
76
|
* @param {Object} e
|
|
79
77
|
*/
|
|
80
78
|
onLoad(e) {
|
|
@@ -100,7 +98,6 @@ class Xhr extends Base {
|
|
|
100
98
|
}
|
|
101
99
|
|
|
102
100
|
/**
|
|
103
|
-
*
|
|
104
101
|
* @param {Object} opts
|
|
105
102
|
* @returns {Promise<any>}
|
|
106
103
|
*/
|
|
@@ -130,7 +127,6 @@ class Xhr extends Base {
|
|
|
130
127
|
}
|
|
131
128
|
|
|
132
129
|
/**
|
|
133
|
-
*
|
|
134
130
|
* @param {Object} opts
|
|
135
131
|
* @returns {Promise<any>}
|
|
136
132
|
*/
|
|
@@ -150,7 +146,6 @@ class Xhr extends Base {
|
|
|
150
146
|
}
|
|
151
147
|
|
|
152
148
|
/**
|
|
153
|
-
*
|
|
154
149
|
* @param {Object} opts
|
|
155
150
|
* @param {Function} opts.callback
|
|
156
151
|
* @param {Object} opts.data
|
|
@@ -213,7 +208,6 @@ class Xhr extends Base {
|
|
|
213
208
|
}
|
|
214
209
|
|
|
215
210
|
/**
|
|
216
|
-
*
|
|
217
211
|
* @param form
|
|
218
212
|
* @param {Object} opts
|
|
219
213
|
* @returns {XMLHttpRequest}
|
package/src/dialog/Base.mjs
CHANGED
|
@@ -123,11 +123,10 @@ class Base extends Panel {
|
|
|
123
123
|
}}
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
127
126
|
* @param {Object} config
|
|
128
127
|
*/
|
|
129
|
-
|
|
130
|
-
super(config);
|
|
128
|
+
construct(config) {
|
|
129
|
+
super.construct(config);
|
|
131
130
|
|
|
132
131
|
let me = this;
|
|
133
132
|
|
|
@@ -287,10 +286,7 @@ class Base extends Panel {
|
|
|
287
286
|
appName = me.appName,
|
|
288
287
|
id = me.getAnimateTargetId();
|
|
289
288
|
|
|
290
|
-
|
|
291
|
-
appName: appName,
|
|
292
|
-
id : [me.id, me.animateTargetId]
|
|
293
|
-
}).then(rects => {
|
|
289
|
+
me.getDomRect([me.id, me.animateTargetId]).then(rects => {
|
|
294
290
|
Neo.currentWorker.promiseMessage('main', {
|
|
295
291
|
action : 'mountDom',
|
|
296
292
|
appName : appName,
|
|
@@ -337,10 +333,7 @@ class Base extends Panel {
|
|
|
337
333
|
appName = me.appName,
|
|
338
334
|
id = me.getAnimateTargetId();
|
|
339
335
|
|
|
340
|
-
|
|
341
|
-
appName: appName,
|
|
342
|
-
id : me.animateTargetId
|
|
343
|
-
}).then(rect => {
|
|
336
|
+
me.getDomRect(me.animateTargetId).then(rect => {
|
|
344
337
|
Neo.currentWorker.promiseMessage('main', {
|
|
345
338
|
action : 'mountDom',
|
|
346
339
|
appName : appName,
|
|
@@ -383,7 +376,6 @@ class Base extends Panel {
|
|
|
383
376
|
}
|
|
384
377
|
|
|
385
378
|
/**
|
|
386
|
-
*
|
|
387
379
|
* @param {Boolean} [animate=!!this.animateTargetId]
|
|
388
380
|
*/
|
|
389
381
|
close(animate=!!this.animateTargetId) {
|
|
@@ -398,7 +390,6 @@ class Base extends Panel {
|
|
|
398
390
|
}
|
|
399
391
|
|
|
400
392
|
/**
|
|
401
|
-
*
|
|
402
393
|
* @param {Boolean} [animate=!!this.animateTargetId]
|
|
403
394
|
*/
|
|
404
395
|
closeOrHide(animate=!!this.animateTargetId) {
|
|
@@ -453,7 +444,6 @@ class Base extends Panel {
|
|
|
453
444
|
}
|
|
454
445
|
|
|
455
446
|
/**
|
|
456
|
-
*
|
|
457
447
|
* @returns {Object} vdom
|
|
458
448
|
*/
|
|
459
449
|
getProxyVdom() {
|
|
@@ -467,7 +457,6 @@ class Base extends Panel {
|
|
|
467
457
|
}
|
|
468
458
|
|
|
469
459
|
/**
|
|
470
|
-
*
|
|
471
460
|
* @returns {Object} The new vdom root
|
|
472
461
|
*/
|
|
473
462
|
getVdomRoot() {
|
|
@@ -475,7 +464,6 @@ class Base extends Panel {
|
|
|
475
464
|
}
|
|
476
465
|
|
|
477
466
|
/**
|
|
478
|
-
*
|
|
479
467
|
* @returns {Object} The new vnode root
|
|
480
468
|
*/
|
|
481
469
|
getVnodeRoot() {
|
|
@@ -491,7 +479,6 @@ class Base extends Panel {
|
|
|
491
479
|
}
|
|
492
480
|
|
|
493
481
|
/**
|
|
494
|
-
*
|
|
495
482
|
* @param {Boolean} [animate=!!this.animateTargetId]
|
|
496
483
|
*/
|
|
497
484
|
hide(animate=!!this.animateTargetId) {
|
|
@@ -530,7 +517,6 @@ class Base extends Panel {
|
|
|
530
517
|
}
|
|
531
518
|
|
|
532
519
|
/**
|
|
533
|
-
*
|
|
534
520
|
* @param data
|
|
535
521
|
*/
|
|
536
522
|
onDragEnd(data) {
|
|
@@ -538,10 +524,7 @@ class Base extends Panel {
|
|
|
538
524
|
initialTransitionProperty, wrapperStyle;
|
|
539
525
|
|
|
540
526
|
if (!me.maximized) {
|
|
541
|
-
|
|
542
|
-
appName: me.appName,
|
|
543
|
-
id : me.dragZone.dragProxy.id
|
|
544
|
-
}).then(rect => {
|
|
527
|
+
me.getDomRect(me.dragZone.dragProxy.id).then(rect => {
|
|
545
528
|
wrapperStyle = me.wrapperStyle;
|
|
546
529
|
|
|
547
530
|
Object.assign(wrapperStyle, {
|
|
@@ -587,7 +570,6 @@ class Base extends Panel {
|
|
|
587
570
|
}
|
|
588
571
|
|
|
589
572
|
/**
|
|
590
|
-
*
|
|
591
573
|
* @param data
|
|
592
574
|
*/
|
|
593
575
|
onDragStart(data) {
|
|
@@ -634,7 +616,6 @@ class Base extends Panel {
|
|
|
634
616
|
}
|
|
635
617
|
|
|
636
618
|
/**
|
|
637
|
-
*
|
|
638
619
|
* @param {Boolean} [animate=!!this.animateTargetId]
|
|
639
620
|
*/
|
|
640
621
|
show(animate=!!this.animateTargetId) {
|
|
@@ -35,11 +35,10 @@ class DragProxyComponent extends Base {
|
|
|
35
35
|
}}
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
38
|
* @param {Object} config
|
|
40
39
|
*/
|
|
41
|
-
|
|
42
|
-
super(config);
|
|
40
|
+
construct(config) {
|
|
41
|
+
super.construct(config);
|
|
43
42
|
|
|
44
43
|
let me = this;
|
|
45
44
|
|
|
@@ -47,7 +46,6 @@ class DragProxyComponent extends Base {
|
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
/**
|
|
50
|
-
*
|
|
51
49
|
* @param {String} id
|
|
52
50
|
*/
|
|
53
51
|
onMounted(id) {
|
|
@@ -62,4 +60,4 @@ class DragProxyComponent extends Base {
|
|
|
62
60
|
|
|
63
61
|
Neo.applyClassConfig(DragProxyComponent);
|
|
64
62
|
|
|
65
|
-
export {DragProxyComponent as default};
|
|
63
|
+
export {DragProxyComponent as default};
|
|
@@ -150,11 +150,10 @@ class DragZone extends Base {
|
|
|
150
150
|
}}
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
154
153
|
* @param {Object} config
|
|
155
154
|
*/
|
|
156
|
-
|
|
157
|
-
super(config);
|
|
155
|
+
construct(config) {
|
|
156
|
+
super.construct(config);
|
|
158
157
|
|
|
159
158
|
if (!Neo.main.addon.DragDrop) {
|
|
160
159
|
console.error('You can not use Neo.draggable.DragZone without adding Neo.main.addon.DragDrop to the main thread addons', this.id);
|
|
@@ -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,11 +23,10 @@ class DropZone extends Base {
|
|
|
23
23
|
}}
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
26
|
* @param {Object} config
|
|
28
27
|
*/
|
|
29
|
-
|
|
30
|
-
super(config);
|
|
28
|
+
construct(config) {
|
|
29
|
+
super.construct(config);
|
|
31
30
|
|
|
32
31
|
let me = this,
|
|
33
32
|
owner = me.owner,
|
|
@@ -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,11 +27,10 @@ class DragZone extends BaseDragZone {
|
|
|
27
27
|
}}
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
30
|
* @param {Object} config
|
|
32
31
|
*/
|
|
33
|
-
|
|
34
|
-
super(config);
|
|
32
|
+
construct(config) {
|
|
33
|
+
super.construct(config);
|
|
35
34
|
|
|
36
35
|
let me = this,
|
|
37
36
|
owner = me.owner,
|
|
@@ -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,11 +21,10 @@ class DragZone extends BaseDragZone {
|
|
|
21
21
|
}}
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
24
|
* @param {Object} config
|
|
26
25
|
*/
|
|
27
|
-
|
|
28
|
-
super(config);
|
|
26
|
+
construct(config) {
|
|
27
|
+
super.construct(config);
|
|
29
28
|
|
|
30
29
|
let me = this,
|
|
31
30
|
owner = me.owner,
|
|
@@ -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) {
|
|
@@ -207,9 +204,7 @@ class SortZone extends DragZone {
|
|
|
207
204
|
});
|
|
208
205
|
});
|
|
209
206
|
|
|
210
|
-
|
|
211
|
-
id: [owner.id].concat(owner.items.map(e => e.id))
|
|
212
|
-
}).then(itemRects => {
|
|
207
|
+
owner.getDomRect([owner.id].concat(owner.items.map(e => e.id))).then(itemRects => {
|
|
213
208
|
me.ownerRect = itemRects[0];
|
|
214
209
|
|
|
215
210
|
ownerStyle.height = `${itemRects[0].height}px`;
|
|
@@ -246,7 +241,6 @@ class SortZone extends DragZone {
|
|
|
246
241
|
}
|
|
247
242
|
|
|
248
243
|
/**
|
|
249
|
-
*
|
|
250
244
|
* @param {Number} index1
|
|
251
245
|
* @param {Number} index2
|
|
252
246
|
*/
|
|
@@ -287,7 +281,6 @@ class SortZone extends DragZone {
|
|
|
287
281
|
}
|
|
288
282
|
|
|
289
283
|
/**
|
|
290
|
-
*
|
|
291
284
|
* @param {Number} index
|
|
292
285
|
* @param {Object} rect
|
|
293
286
|
*/
|
|
@@ -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,11 +28,10 @@ class ToggleOperatorsButton extends Button {
|
|
|
28
28
|
}}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
31
|
* @param {Object} config
|
|
33
32
|
*/
|
|
34
|
-
|
|
35
|
-
super(config);
|
|
33
|
+
construct(config) {
|
|
34
|
+
super.construct(config);
|
|
36
35
|
|
|
37
36
|
let me = this;
|
|
38
37
|
|
|
@@ -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