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
|
@@ -23,7 +23,6 @@ class ListModel extends Model {
|
|
|
23
23
|
}}
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
26
|
* @param {Object} data
|
|
28
27
|
*/
|
|
29
28
|
onKeyDownDown(data) {
|
|
@@ -31,7 +30,6 @@ class ListModel extends Model {
|
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
/**
|
|
34
|
-
*
|
|
35
33
|
* @param {Object} data
|
|
36
34
|
*/
|
|
37
35
|
onKeyDownEnter(data) {
|
|
@@ -41,7 +39,6 @@ class ListModel extends Model {
|
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
/**
|
|
44
|
-
*
|
|
45
42
|
* @param {Object} data
|
|
46
43
|
*/
|
|
47
44
|
onKeyDownLeft(data) {
|
|
@@ -49,7 +46,6 @@ class ListModel extends Model {
|
|
|
49
46
|
}
|
|
50
47
|
|
|
51
48
|
/**
|
|
52
|
-
*
|
|
53
49
|
* @param {Object} data
|
|
54
50
|
*/
|
|
55
51
|
onKeyDownRight(data) {
|
|
@@ -57,7 +53,6 @@ class ListModel extends Model {
|
|
|
57
53
|
}
|
|
58
54
|
|
|
59
55
|
/**
|
|
60
|
-
*
|
|
61
56
|
* @param {Object} data
|
|
62
57
|
*/
|
|
63
58
|
onKeyDownUp(data) {
|
|
@@ -65,7 +60,6 @@ class ListModel extends Model {
|
|
|
65
60
|
}
|
|
66
61
|
|
|
67
62
|
/**
|
|
68
|
-
*
|
|
69
63
|
* @param {Object} data
|
|
70
64
|
* @param {Number} step
|
|
71
65
|
*/
|
|
@@ -122,7 +116,6 @@ class ListModel extends Model {
|
|
|
122
116
|
}
|
|
123
117
|
|
|
124
118
|
/**
|
|
125
|
-
*
|
|
126
119
|
* @param {Neo.component.Base} component
|
|
127
120
|
*/
|
|
128
121
|
register(component) {
|
|
@@ -142,7 +135,6 @@ class ListModel extends Model {
|
|
|
142
135
|
}
|
|
143
136
|
|
|
144
137
|
/**
|
|
145
|
-
*
|
|
146
138
|
* @param {Number} index
|
|
147
139
|
*/
|
|
148
140
|
selectAt(index) {
|
package/src/selection/Model.mjs
CHANGED
|
@@ -90,7 +90,6 @@ class Model extends Base {
|
|
|
90
90
|
addDomListener() {}
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
94
93
|
* @param {Object} item
|
|
95
94
|
* @param {Boolean} [silent] true to prevent a vdom update
|
|
96
95
|
* @param {Array} [itemCollection]
|
|
@@ -117,7 +116,6 @@ class Model extends Base {
|
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
/**
|
|
120
|
-
*
|
|
121
119
|
* @param {Boolean} [silent] true to prevent a vdom update
|
|
122
120
|
*/
|
|
123
121
|
deselectAll(silent) {
|
|
@@ -144,7 +142,6 @@ class Model extends Base {
|
|
|
144
142
|
}
|
|
145
143
|
|
|
146
144
|
/**
|
|
147
|
-
*
|
|
148
145
|
* @returns {Array} this.items
|
|
149
146
|
*/
|
|
150
147
|
getSelection() {
|
|
@@ -152,7 +149,6 @@ class Model extends Base {
|
|
|
152
149
|
}
|
|
153
150
|
|
|
154
151
|
/**
|
|
155
|
-
*
|
|
156
152
|
* @returns {Boolean} true in case there is a selection
|
|
157
153
|
*/
|
|
158
154
|
hasSelection() {
|
|
@@ -160,7 +156,6 @@ class Model extends Base {
|
|
|
160
156
|
}
|
|
161
157
|
|
|
162
158
|
/**
|
|
163
|
-
*
|
|
164
159
|
* @param {String} id
|
|
165
160
|
* @returns {Boolean} true in case the item is selected
|
|
166
161
|
*/
|
|
@@ -169,7 +164,6 @@ class Model extends Base {
|
|
|
169
164
|
}
|
|
170
165
|
|
|
171
166
|
/**
|
|
172
|
-
*
|
|
173
167
|
* @param {Neo.component.Base} component
|
|
174
168
|
*/
|
|
175
169
|
register(component) {
|
|
@@ -203,7 +197,6 @@ class Model extends Base {
|
|
|
203
197
|
}
|
|
204
198
|
|
|
205
199
|
/**
|
|
206
|
-
*
|
|
207
200
|
* @param {Object|Object[]|String[]} items
|
|
208
201
|
* @param {Array} [itemCollection]
|
|
209
202
|
* @param {String} [selectedCls]
|
|
@@ -244,7 +237,6 @@ class Model extends Base {
|
|
|
244
237
|
}
|
|
245
238
|
|
|
246
239
|
/**
|
|
247
|
-
*
|
|
248
240
|
* @param {Object} item
|
|
249
241
|
*/
|
|
250
242
|
toggleSelection(item) {
|
|
@@ -19,7 +19,6 @@ class ListModel extends BaseListModel {
|
|
|
19
19
|
}}
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
22
|
* @param {Object} data
|
|
24
23
|
*/
|
|
25
24
|
onKeyDownLeft(data) {
|
|
@@ -34,7 +33,6 @@ class ListModel extends BaseListModel {
|
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
/**
|
|
37
|
-
*
|
|
38
36
|
* @param {Object} data
|
|
39
37
|
*/
|
|
40
38
|
onKeyDownRight(data) {
|
|
@@ -36,17 +36,15 @@ class CellColumnModel extends CellModel {
|
|
|
36
36
|
}}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
39
|
* @param {Object} config
|
|
41
40
|
*/
|
|
42
|
-
|
|
43
|
-
super(config);
|
|
41
|
+
construct(config) {
|
|
42
|
+
super.construct(config);
|
|
44
43
|
|
|
45
44
|
this.selectedColumnCellIds = [];
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
/**
|
|
49
|
-
*
|
|
50
48
|
* @param {Boolean} [silent] true to prevent a vdom update
|
|
51
49
|
*/
|
|
52
50
|
deselectAllCells(silent) {
|
|
@@ -65,7 +63,6 @@ class CellColumnModel extends CellModel {
|
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
/**
|
|
68
|
-
*
|
|
69
66
|
* @param {Object} data
|
|
70
67
|
*/
|
|
71
68
|
onCellClick(data) {
|
|
@@ -86,7 +83,6 @@ class CellColumnModel extends CellModel {
|
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
/**
|
|
89
|
-
*
|
|
90
86
|
* @param {Object} data
|
|
91
87
|
* @param {Number} step
|
|
92
88
|
*/
|
|
@@ -36,17 +36,15 @@ class CellColumnRowModel extends CellRowModel {
|
|
|
36
36
|
}}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
39
|
* @param {Object} config
|
|
41
40
|
*/
|
|
42
|
-
|
|
43
|
-
super(config);
|
|
41
|
+
construct(config) {
|
|
42
|
+
super.construct(config);
|
|
44
43
|
|
|
45
44
|
this.selectedColumnCellIds = [];
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
/**
|
|
49
|
-
*
|
|
50
48
|
* @param {Boolean} [silent] true to prevent a vdom update
|
|
51
49
|
*/
|
|
52
50
|
deselectAllCells(silent) {
|
|
@@ -65,7 +63,6 @@ class CellColumnRowModel extends CellRowModel {
|
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
/**
|
|
68
|
-
*
|
|
69
66
|
* @param {Object} data
|
|
70
67
|
*/
|
|
71
68
|
onCellClick(data) {
|
|
@@ -86,7 +83,6 @@ class CellColumnRowModel extends CellRowModel {
|
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
/**
|
|
89
|
-
*
|
|
90
86
|
* @param {Object} data
|
|
91
87
|
* @param {Number} step
|
|
92
88
|
*/
|
|
@@ -41,7 +41,6 @@ class CellModel extends Model {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
44
|
* @param {Object} data
|
|
46
45
|
*/
|
|
47
46
|
onCellClick(data) {
|
|
@@ -64,7 +63,6 @@ class CellModel extends Model {
|
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
/**
|
|
67
|
-
*
|
|
68
66
|
* @param {Object} data
|
|
69
67
|
*/
|
|
70
68
|
onKeyDownDown(data) {
|
|
@@ -72,7 +70,6 @@ class CellModel extends Model {
|
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
/**
|
|
75
|
-
*
|
|
76
73
|
* @param {Object} data
|
|
77
74
|
*/
|
|
78
75
|
onKeyDownLeft(data) {
|
|
@@ -80,7 +77,6 @@ class CellModel extends Model {
|
|
|
80
77
|
}
|
|
81
78
|
|
|
82
79
|
/**
|
|
83
|
-
*
|
|
84
80
|
* @param {Object} data
|
|
85
81
|
*/
|
|
86
82
|
onKeyDownRight(data) {
|
|
@@ -88,7 +84,6 @@ class CellModel extends Model {
|
|
|
88
84
|
}
|
|
89
85
|
|
|
90
86
|
/**
|
|
91
|
-
*
|
|
92
87
|
* @param {Object} data
|
|
93
88
|
*/
|
|
94
89
|
onKeyDownUp(data) {
|
|
@@ -96,7 +91,6 @@ class CellModel extends Model {
|
|
|
96
91
|
}
|
|
97
92
|
|
|
98
93
|
/**
|
|
99
|
-
*
|
|
100
94
|
* @param {Object} data
|
|
101
95
|
* @param {Number} step
|
|
102
96
|
*/
|
|
@@ -121,7 +115,6 @@ class CellModel extends Model {
|
|
|
121
115
|
}
|
|
122
116
|
|
|
123
117
|
/**
|
|
124
|
-
*
|
|
125
118
|
* @param {Object} data
|
|
126
119
|
* @param {Number} step
|
|
127
120
|
*/
|
|
@@ -146,7 +139,6 @@ class CellModel extends Model {
|
|
|
146
139
|
}
|
|
147
140
|
|
|
148
141
|
/**
|
|
149
|
-
*
|
|
150
142
|
* @param {Neo.component.Base} component
|
|
151
143
|
*/
|
|
152
144
|
register(component) {
|
|
@@ -32,17 +32,15 @@ class CellRowModel extends CellModel {
|
|
|
32
32
|
}}
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
35
|
* @param {Object} config
|
|
37
36
|
*/
|
|
38
|
-
|
|
39
|
-
super(config);
|
|
37
|
+
construct(config) {
|
|
38
|
+
super.construct(config);
|
|
40
39
|
|
|
41
40
|
this.selectedRowIds = [];
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/**
|
|
45
|
-
*
|
|
46
44
|
* @param {Boolean} [silent] true to prevent a vdom update
|
|
47
45
|
*/
|
|
48
46
|
deselectAllRows(silent) {
|
|
@@ -61,7 +59,6 @@ class CellRowModel extends CellModel {
|
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
/**
|
|
64
|
-
*
|
|
65
62
|
* @param {String} rowId
|
|
66
63
|
* @param {Boolean} [silent] true to prevent a vdom update
|
|
67
64
|
*/
|
|
@@ -86,7 +83,6 @@ class CellRowModel extends CellModel {
|
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
/**
|
|
89
|
-
*
|
|
90
86
|
* @param {Object} data
|
|
91
87
|
*/
|
|
92
88
|
onCellClick(data) {
|
|
@@ -103,7 +99,6 @@ class CellRowModel extends CellModel {
|
|
|
103
99
|
}
|
|
104
100
|
|
|
105
101
|
/**
|
|
106
|
-
*
|
|
107
102
|
* @param {Object} data
|
|
108
103
|
* @param {Number} step
|
|
109
104
|
*/
|
|
@@ -132,7 +127,6 @@ class CellRowModel extends CellModel {
|
|
|
132
127
|
}
|
|
133
128
|
|
|
134
129
|
/**
|
|
135
|
-
*
|
|
136
130
|
* @param {String} id
|
|
137
131
|
* @param {Boolean} [silent]
|
|
138
132
|
*/
|
|
@@ -42,7 +42,6 @@ class ColumnModel extends Model {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
46
45
|
* @param {Object} eventPath
|
|
47
46
|
* @returns {String|null} cellId
|
|
48
47
|
*/
|
|
@@ -76,7 +75,6 @@ class ColumnModel extends Model {
|
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
/**
|
|
79
|
-
*
|
|
80
78
|
* @param {Object} data
|
|
81
79
|
*/
|
|
82
80
|
onCellClick(data) {
|
|
@@ -94,7 +92,6 @@ class ColumnModel extends Model {
|
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
/**
|
|
97
|
-
*
|
|
98
95
|
* @param {Object} data
|
|
99
96
|
*/
|
|
100
97
|
onKeyDownLeft(data) {
|
|
@@ -102,7 +99,6 @@ class ColumnModel extends Model {
|
|
|
102
99
|
}
|
|
103
100
|
|
|
104
101
|
/**
|
|
105
|
-
*
|
|
106
102
|
* @param {Object} data
|
|
107
103
|
*/
|
|
108
104
|
onKeyDownRight(data) {
|
|
@@ -110,7 +106,6 @@ class ColumnModel extends Model {
|
|
|
110
106
|
}
|
|
111
107
|
|
|
112
108
|
/**
|
|
113
|
-
*
|
|
114
109
|
* @param {Object} data
|
|
115
110
|
* @param {Number} step
|
|
116
111
|
*/
|
|
@@ -138,7 +133,6 @@ class ColumnModel extends Model {
|
|
|
138
133
|
}
|
|
139
134
|
|
|
140
135
|
/**
|
|
141
|
-
*
|
|
142
136
|
* @param {Neo.component.Base} component
|
|
143
137
|
*/
|
|
144
138
|
register(component) {
|
|
@@ -75,7 +75,6 @@ class RowModel extends Model {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
79
78
|
* @param {Object} data
|
|
80
79
|
*/
|
|
81
80
|
onKeyDownDown(data) {
|
|
@@ -83,7 +82,6 @@ class RowModel extends Model {
|
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
/**
|
|
86
|
-
*
|
|
87
85
|
* @param {Object} data
|
|
88
86
|
*/
|
|
89
87
|
onKeyDownUp(data) {
|
|
@@ -91,7 +89,6 @@ class RowModel extends Model {
|
|
|
91
89
|
}
|
|
92
90
|
|
|
93
91
|
/**
|
|
94
|
-
*
|
|
95
92
|
* @param {Object} data
|
|
96
93
|
* @param {Number} step
|
|
97
94
|
*/
|
|
@@ -122,7 +119,6 @@ class RowModel extends Model {
|
|
|
122
119
|
}
|
|
123
120
|
|
|
124
121
|
/**
|
|
125
|
-
*
|
|
126
122
|
* @param {Object} data
|
|
127
123
|
*/
|
|
128
124
|
onRowClick(data) {
|
|
@@ -147,7 +143,6 @@ class RowModel extends Model {
|
|
|
147
143
|
}
|
|
148
144
|
|
|
149
145
|
/**
|
|
150
|
-
*
|
|
151
146
|
* @param {Neo.component.Base} component
|
|
152
147
|
*/
|
|
153
148
|
register(component) {
|
package/src/tab/Container.mjs
CHANGED
|
@@ -227,7 +227,6 @@ class Container extends BaseContainer {
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
*
|
|
231
230
|
* @protected
|
|
232
231
|
*/
|
|
233
232
|
createItems() {
|
|
@@ -318,7 +317,6 @@ class Container extends BaseContainer {
|
|
|
318
317
|
}
|
|
319
318
|
|
|
320
319
|
/**
|
|
321
|
-
*
|
|
322
320
|
* @returns {Object} layoutConfig
|
|
323
321
|
* @protected
|
|
324
322
|
*/
|
|
@@ -363,7 +361,6 @@ class Container extends BaseContainer {
|
|
|
363
361
|
}
|
|
364
362
|
|
|
365
363
|
/**
|
|
366
|
-
*
|
|
367
364
|
* @param {Number} index
|
|
368
365
|
* @returns {Neo.tab.header.Button|null}
|
|
369
366
|
*/
|
|
@@ -379,7 +376,6 @@ class Container extends BaseContainer {
|
|
|
379
376
|
}
|
|
380
377
|
|
|
381
378
|
/**
|
|
382
|
-
*
|
|
383
379
|
* @param {Object} config
|
|
384
380
|
* @param {Number} index
|
|
385
381
|
* @returns {Object} The merged config
|
|
@@ -572,7 +568,6 @@ class Container extends BaseContainer {
|
|
|
572
568
|
}
|
|
573
569
|
|
|
574
570
|
/**
|
|
575
|
-
*
|
|
576
571
|
* @param {Number} index
|
|
577
572
|
* @param {Boolean} [destroyItem=true]
|
|
578
573
|
* @param {Boolean} [silent=false]
|
|
@@ -605,7 +600,6 @@ class Container extends BaseContainer {
|
|
|
605
600
|
}
|
|
606
601
|
|
|
607
602
|
/**
|
|
608
|
-
*
|
|
609
603
|
* @protected
|
|
610
604
|
*/
|
|
611
605
|
updateTabButtons() {
|
package/src/tab/Strip.mjs
CHANGED
|
@@ -80,9 +80,7 @@ class Strip extends Component {
|
|
|
80
80
|
ids = ids.map(e => e?.id).filter(Boolean);
|
|
81
81
|
|
|
82
82
|
if (me.useActiveTabIndicator) {
|
|
83
|
-
|
|
84
|
-
id: ids
|
|
85
|
-
}).then(data => {
|
|
83
|
+
me.getDomRect(ids).then(data => {
|
|
86
84
|
me.moveActiveIndicator(data);
|
|
87
85
|
});
|
|
88
86
|
}
|
|
@@ -46,7 +46,6 @@ class Button extends BaseButton {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
49
|
* @param {Boolean} [silent=false]
|
|
51
50
|
*/
|
|
52
51
|
updateUseActiveTabIndicator(silent=false) {
|
|
@@ -61,4 +60,4 @@ class Button extends BaseButton {
|
|
|
61
60
|
|
|
62
61
|
Neo.applyClassConfig(Button);
|
|
63
62
|
|
|
64
|
-
export {Button as default};
|
|
63
|
+
export {Button as default};
|
package/src/table/Container.mjs
CHANGED
|
@@ -111,11 +111,10 @@ class Container extends BaseContainer {
|
|
|
111
111
|
}}
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
115
114
|
* @param {Object} config
|
|
116
115
|
*/
|
|
117
|
-
|
|
118
|
-
super(config);
|
|
116
|
+
construct(config) {
|
|
117
|
+
super.construct(config);
|
|
119
118
|
|
|
120
119
|
let me = this;
|
|
121
120
|
|
|
@@ -289,7 +288,6 @@ class Container extends BaseContainer {
|
|
|
289
288
|
}
|
|
290
289
|
|
|
291
290
|
/**
|
|
292
|
-
*
|
|
293
291
|
* @param columns
|
|
294
292
|
* @returns {*}
|
|
295
293
|
*/
|
|
@@ -329,7 +327,6 @@ class Container extends BaseContainer {
|
|
|
329
327
|
}
|
|
330
328
|
|
|
331
329
|
/**
|
|
332
|
-
*
|
|
333
330
|
* @param {Number} countRows
|
|
334
331
|
*/
|
|
335
332
|
createRandomViewData(countRows) {
|
|
@@ -361,7 +358,6 @@ class Container extends BaseContainer {
|
|
|
361
358
|
}
|
|
362
359
|
|
|
363
360
|
/**
|
|
364
|
-
*
|
|
365
361
|
* @returns {Neo.table.View}
|
|
366
362
|
*/
|
|
367
363
|
getView() {
|
|
@@ -377,7 +373,6 @@ class Container extends BaseContainer {
|
|
|
377
373
|
}
|
|
378
374
|
|
|
379
375
|
/**
|
|
380
|
-
*
|
|
381
376
|
* @param {Number} countRows
|
|
382
377
|
*/
|
|
383
378
|
loadData(countRows) {
|
|
@@ -411,7 +406,6 @@ class Container extends BaseContainer {
|
|
|
411
406
|
}
|
|
412
407
|
|
|
413
408
|
/**
|
|
414
|
-
*
|
|
415
409
|
* @param {Object} opts
|
|
416
410
|
* @param {String} opts.direction
|
|
417
411
|
* @param {String} opts.property
|
|
@@ -433,7 +427,6 @@ class Container extends BaseContainer {
|
|
|
433
427
|
}
|
|
434
428
|
|
|
435
429
|
/**
|
|
436
|
-
*
|
|
437
430
|
* @param {Array} data
|
|
438
431
|
* @protected
|
|
439
432
|
*/
|
|
@@ -472,7 +465,6 @@ class Container extends BaseContainer {
|
|
|
472
465
|
}
|
|
473
466
|
|
|
474
467
|
/**
|
|
475
|
-
*
|
|
476
468
|
* @param {String} dataField
|
|
477
469
|
* @protected
|
|
478
470
|
*/
|
package/src/table/View.mjs
CHANGED
|
@@ -180,7 +180,6 @@ class View extends Component {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
184
183
|
* @param {Boolean} updateParentVdom
|
|
185
184
|
* @param {Boolean} silent
|
|
186
185
|
*/
|
|
@@ -190,7 +189,6 @@ class View extends Component {
|
|
|
190
189
|
}
|
|
191
190
|
|
|
192
191
|
/**
|
|
193
|
-
*
|
|
194
192
|
* @param {Object} record
|
|
195
193
|
* @param {String} dataField
|
|
196
194
|
* @returns {String}
|
|
@@ -200,7 +198,6 @@ class View extends Component {
|
|
|
200
198
|
}
|
|
201
199
|
|
|
202
200
|
/**
|
|
203
|
-
*
|
|
204
201
|
* @param {String} rowId
|
|
205
202
|
* @returns {Object}
|
|
206
203
|
*/
|
|
@@ -209,7 +206,6 @@ class View extends Component {
|
|
|
209
206
|
}
|
|
210
207
|
|
|
211
208
|
/**
|
|
212
|
-
*
|
|
213
209
|
* @param {Object} record
|
|
214
210
|
* @param {Number} [index]
|
|
215
211
|
* @returns {String}
|
|
@@ -100,11 +100,10 @@ class Button extends BaseButton {
|
|
|
100
100
|
}}
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
104
103
|
* @param {Object} config
|
|
105
104
|
*/
|
|
106
|
-
|
|
107
|
-
super(config);
|
|
105
|
+
construct(config) {
|
|
106
|
+
super.construct(config);
|
|
108
107
|
|
|
109
108
|
let me = this,
|
|
110
109
|
listeners = {
|
|
@@ -327,7 +326,6 @@ class Button extends BaseButton {
|
|
|
327
326
|
}
|
|
328
327
|
|
|
329
328
|
/**
|
|
330
|
-
*
|
|
331
329
|
* @param {Object} event
|
|
332
330
|
*/
|
|
333
331
|
onDragOver(event) {
|
|
@@ -346,7 +344,6 @@ class Button extends BaseButton {
|
|
|
346
344
|
}
|
|
347
345
|
|
|
348
346
|
/**
|
|
349
|
-
*
|
|
350
347
|
* @param {Object} data
|
|
351
348
|
*/
|
|
352
349
|
onDrop(data) {
|
|
@@ -364,7 +361,6 @@ class Button extends BaseButton {
|
|
|
364
361
|
}
|
|
365
362
|
|
|
366
363
|
/**
|
|
367
|
-
*
|
|
368
364
|
* @param {Object} data
|
|
369
365
|
*/
|
|
370
366
|
changeFilterOperator(data) {
|
|
@@ -395,7 +391,6 @@ class Button extends BaseButton {
|
|
|
395
391
|
}
|
|
396
392
|
|
|
397
393
|
/**
|
|
398
|
-
*
|
|
399
394
|
* @param {Object} data
|
|
400
395
|
*/
|
|
401
396
|
changeFilterValue(data) {
|
|
@@ -445,7 +440,6 @@ class Button extends BaseButton {
|
|
|
445
440
|
}
|
|
446
441
|
|
|
447
442
|
/**
|
|
448
|
-
*
|
|
449
443
|
* @param {Object} data
|
|
450
444
|
* @param {String} data.dataField
|
|
451
445
|
* @param {Number} data.index
|
|
@@ -120,7 +120,6 @@ class Toolbar extends BaseToolbar {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
124
123
|
* @param {String} dock
|
|
125
124
|
* @returns {String} layoutConfig
|
|
126
125
|
* @override
|
|
@@ -158,4 +157,4 @@ class Toolbar extends BaseToolbar {
|
|
|
158
157
|
|
|
159
158
|
Neo.applyClassConfig(Toolbar);
|
|
160
159
|
|
|
161
|
-
export {Toolbar as default};
|
|
160
|
+
export {Toolbar as default};
|
package/src/tree/List.mjs
CHANGED
|
@@ -152,7 +152,6 @@ class Tree extends Base {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
156
155
|
* @param {String} [parentId] The parent node
|
|
157
156
|
* @param {Object} [vdomRoot] The vdom template root for the current sub tree
|
|
158
157
|
* @param {Number} level The hierarchy level of the tree
|
|
@@ -302,7 +301,6 @@ class Tree extends Base {
|
|
|
302
301
|
}
|
|
303
302
|
|
|
304
303
|
/**
|
|
305
|
-
*
|
|
306
304
|
* @returns {Object}
|
|
307
305
|
*/
|
|
308
306
|
getListItemsRoot() {
|
|
@@ -310,7 +308,6 @@ class Tree extends Base {
|
|
|
310
308
|
}
|
|
311
309
|
|
|
312
310
|
/**
|
|
313
|
-
*
|
|
314
311
|
* @param {Object} data
|
|
315
312
|
*/
|
|
316
313
|
onClick(data) {
|
|
@@ -350,7 +347,6 @@ class Tree extends Base {
|
|
|
350
347
|
}
|
|
351
348
|
|
|
352
349
|
/**
|
|
353
|
-
*
|
|
354
350
|
* @param {Object} node
|
|
355
351
|
* @param {Object} data
|
|
356
352
|
*/
|