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
package/src/model/Component.mjs
CHANGED
|
@@ -57,7 +57,6 @@ class Component extends Base {
|
|
|
57
57
|
}}
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
61
60
|
* @param {Object} config
|
|
62
61
|
*/
|
|
63
62
|
constructor(config) {
|
|
@@ -135,7 +134,6 @@ class Component extends Base {
|
|
|
135
134
|
}
|
|
136
135
|
|
|
137
136
|
/**
|
|
138
|
-
*
|
|
139
137
|
* @param {Function} formatter
|
|
140
138
|
* @param {Object} [data=null] optionally pass this.getHierarchyData() for performance reasons
|
|
141
139
|
* @returns {String}
|
|
@@ -194,7 +192,6 @@ class Component extends Base {
|
|
|
194
192
|
}
|
|
195
193
|
|
|
196
194
|
/**
|
|
197
|
-
*
|
|
198
195
|
* @param {Neo.component.Base} component
|
|
199
196
|
*/
|
|
200
197
|
createBindings(component) {
|
|
@@ -210,7 +207,6 @@ class Component extends Base {
|
|
|
210
207
|
}
|
|
211
208
|
|
|
212
209
|
/**
|
|
213
|
-
*
|
|
214
210
|
* @param {Object} config
|
|
215
211
|
* @param {String} path
|
|
216
212
|
*/
|
|
@@ -238,7 +234,6 @@ class Component extends Base {
|
|
|
238
234
|
}
|
|
239
235
|
|
|
240
236
|
/**
|
|
241
|
-
*
|
|
242
237
|
* @param {String} key
|
|
243
238
|
* @param {String} path
|
|
244
239
|
* @param {Object} [root=this.data]
|
|
@@ -515,7 +510,6 @@ class Component extends Base {
|
|
|
515
510
|
}
|
|
516
511
|
|
|
517
512
|
/**
|
|
518
|
-
*
|
|
519
513
|
* @param {String} key
|
|
520
514
|
* @param {*} value
|
|
521
515
|
* @param {*} oldValue
|
|
@@ -543,9 +537,7 @@ class Component extends Base {
|
|
|
543
537
|
config[configField] = model.callFormatter(formatter, hierarchyData[model.id]);
|
|
544
538
|
});
|
|
545
539
|
|
|
546
|
-
|
|
547
|
-
component.set(config);
|
|
548
|
-
}
|
|
540
|
+
component?.set(config);
|
|
549
541
|
});
|
|
550
542
|
}
|
|
551
543
|
|
|
@@ -598,19 +590,15 @@ class Component extends Base {
|
|
|
598
590
|
delete binding[componentId];
|
|
599
591
|
});
|
|
600
592
|
|
|
601
|
-
|
|
602
|
-
parentModel.removeBindings(componentId);
|
|
603
|
-
}
|
|
593
|
+
parentModel?.removeBindings(componentId);
|
|
604
594
|
}
|
|
605
595
|
|
|
606
596
|
/**
|
|
607
|
-
*
|
|
608
597
|
* @param {Neo.component.Base} component
|
|
609
598
|
* @param {String} configName
|
|
610
599
|
* @param {String} storeName
|
|
611
|
-
* @param {Neo.model.Component} [originModel=this] for internal usage only
|
|
612
600
|
*/
|
|
613
|
-
resolveStore(component, configName, storeName
|
|
601
|
+
resolveStore(component, configName, storeName) {
|
|
614
602
|
component[configName] = this.getStore(storeName);
|
|
615
603
|
}
|
|
616
604
|
|
package/src/plugin/Base.mjs
CHANGED
package/src/plugin/Resizable.mjs
CHANGED
|
@@ -170,7 +170,6 @@ class Resizable extends Base {
|
|
|
170
170
|
}}
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
|
-
*
|
|
174
173
|
* @param {Object} config
|
|
175
174
|
*/
|
|
176
175
|
constructor(config) {
|
|
@@ -210,7 +209,6 @@ class Resizable extends Base {
|
|
|
210
209
|
}
|
|
211
210
|
|
|
212
211
|
/**
|
|
213
|
-
*
|
|
214
212
|
* @param {String} name
|
|
215
213
|
* @returns {Boolean} true
|
|
216
214
|
*/
|
|
@@ -273,7 +271,6 @@ class Resizable extends Base {
|
|
|
273
271
|
}
|
|
274
272
|
|
|
275
273
|
/**
|
|
276
|
-
*
|
|
277
274
|
* @param {Object} data
|
|
278
275
|
*/
|
|
279
276
|
onDragEnd(data) {
|
|
@@ -301,7 +298,6 @@ class Resizable extends Base {
|
|
|
301
298
|
}
|
|
302
299
|
|
|
303
300
|
/**
|
|
304
|
-
*
|
|
305
301
|
* @param {Object} data
|
|
306
302
|
*/
|
|
307
303
|
onDragMove(data) {
|
|
@@ -385,7 +381,6 @@ class Resizable extends Base {
|
|
|
385
381
|
}
|
|
386
382
|
|
|
387
383
|
/**
|
|
388
|
-
*
|
|
389
384
|
* @param {Object} data
|
|
390
385
|
*/
|
|
391
386
|
onDragStart(data) {
|
|
@@ -455,7 +450,6 @@ class Resizable extends Base {
|
|
|
455
450
|
}
|
|
456
451
|
|
|
457
452
|
/**
|
|
458
|
-
*
|
|
459
453
|
* @param {Object} data
|
|
460
454
|
*/
|
|
461
455
|
onMouseMove(data) {
|
|
@@ -519,7 +513,6 @@ class Resizable extends Base {
|
|
|
519
513
|
}
|
|
520
514
|
|
|
521
515
|
/**
|
|
522
|
-
*
|
|
523
516
|
* @param {Object} data
|
|
524
517
|
*/
|
|
525
518
|
onMouseLeave(data) {
|
|
@@ -576,7 +569,6 @@ class Resizable extends Base {
|
|
|
576
569
|
}
|
|
577
570
|
|
|
578
571
|
/**
|
|
579
|
-
*
|
|
580
572
|
* @param {String} name
|
|
581
573
|
* @returns {Boolean} true in case the node existed
|
|
582
574
|
*/
|
|
@@ -19,7 +19,6 @@ class CircleModel extends Model {
|
|
|
19
19
|
}}
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
22
|
* @param {Object} data
|
|
24
23
|
*/
|
|
25
24
|
onKeyDownLeft(data) {
|
|
@@ -27,7 +26,6 @@ class CircleModel extends Model {
|
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
|
-
*
|
|
31
29
|
* @param {Object} data
|
|
32
30
|
*/
|
|
33
31
|
onKeyDownRight(data) {
|
|
@@ -35,7 +33,6 @@ class CircleModel extends Model {
|
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
/**
|
|
38
|
-
*
|
|
39
36
|
* @param {Object} data
|
|
40
37
|
* @param {Number} step
|
|
41
38
|
*/
|
|
@@ -64,7 +61,6 @@ class CircleModel extends Model {
|
|
|
64
61
|
}
|
|
65
62
|
|
|
66
63
|
/**
|
|
67
|
-
*
|
|
68
64
|
* @param {Neo.component.Base} component
|
|
69
65
|
*/
|
|
70
66
|
register(component) {
|
|
@@ -107,4 +103,4 @@ class CircleModel extends Model {
|
|
|
107
103
|
|
|
108
104
|
Neo.applyClassConfig(CircleModel);
|
|
109
105
|
|
|
110
|
-
export {CircleModel as default};
|
|
106
|
+
export {CircleModel as default};
|
|
@@ -25,7 +25,6 @@ class DateSelectorModel extends Model {
|
|
|
25
25
|
}}
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
28
|
* @param {Object} data
|
|
30
29
|
* @returns {Date}
|
|
31
30
|
*/
|
|
@@ -47,7 +46,6 @@ class DateSelectorModel extends Model {
|
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
/**
|
|
50
|
-
*
|
|
51
49
|
* @param {Object} data
|
|
52
50
|
*/
|
|
53
51
|
onKeyDownDown(data) {
|
|
@@ -55,7 +53,6 @@ class DateSelectorModel extends Model {
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
/**
|
|
58
|
-
*
|
|
59
56
|
* @param {Object} data
|
|
60
57
|
*/
|
|
61
58
|
onKeyDownLeft(data) {
|
|
@@ -63,7 +60,6 @@ class DateSelectorModel extends Model {
|
|
|
63
60
|
}
|
|
64
61
|
|
|
65
62
|
/**
|
|
66
|
-
*
|
|
67
63
|
* @param {Object} data
|
|
68
64
|
*/
|
|
69
65
|
onKeyDownRight(data) {
|
|
@@ -71,7 +67,6 @@ class DateSelectorModel extends Model {
|
|
|
71
67
|
}
|
|
72
68
|
|
|
73
69
|
/**
|
|
74
|
-
*
|
|
75
70
|
* @param {Object} data
|
|
76
71
|
*/
|
|
77
72
|
onKeyDownUp(data) {
|
|
@@ -79,7 +74,6 @@ class DateSelectorModel extends Model {
|
|
|
79
74
|
}
|
|
80
75
|
|
|
81
76
|
/**
|
|
82
|
-
*
|
|
83
77
|
* @param {Object} data
|
|
84
78
|
* @param {Number} step
|
|
85
79
|
*/
|
|
@@ -101,7 +95,6 @@ class DateSelectorModel extends Model {
|
|
|
101
95
|
}
|
|
102
96
|
|
|
103
97
|
/**
|
|
104
|
-
*
|
|
105
98
|
* @param {Object} data
|
|
106
99
|
* @param {Number} step
|
|
107
100
|
*/
|
|
@@ -139,7 +132,6 @@ class DateSelectorModel extends Model {
|
|
|
139
132
|
}
|
|
140
133
|
|
|
141
134
|
/**
|
|
142
|
-
*
|
|
143
135
|
* @param {Neo.component.Base} component
|
|
144
136
|
*/
|
|
145
137
|
register(component) {
|
|
@@ -182,4 +174,4 @@ class DateSelectorModel extends Model {
|
|
|
182
174
|
|
|
183
175
|
Neo.applyClassConfig(DateSelectorModel);
|
|
184
176
|
|
|
185
|
-
export {DateSelectorModel as default};
|
|
177
|
+
export {DateSelectorModel as default};
|
|
@@ -62,7 +62,6 @@ class GalleryModel extends Model {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
66
65
|
* @param {Object} data
|
|
67
66
|
*/
|
|
68
67
|
onItemClick(data) {
|
|
@@ -86,7 +85,6 @@ class GalleryModel extends Model {
|
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
/**
|
|
89
|
-
*
|
|
90
88
|
* @param {Object} data
|
|
91
89
|
*/
|
|
92
90
|
onKeyDownDown(data) {
|
|
@@ -94,7 +92,6 @@ class GalleryModel 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 GalleryModel 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 GalleryModel extends Model {
|
|
|
110
106
|
}
|
|
111
107
|
|
|
112
108
|
/**
|
|
113
|
-
*
|
|
114
109
|
* @param {Object} data
|
|
115
110
|
*/
|
|
116
111
|
onKeyDownUp(data) {
|
|
@@ -118,7 +113,6 @@ class GalleryModel extends Model {
|
|
|
118
113
|
}
|
|
119
114
|
|
|
120
115
|
/**
|
|
121
|
-
*
|
|
122
116
|
* @param {Number} step=1
|
|
123
117
|
*/
|
|
124
118
|
onNavKeyColumn(step=1) {
|
|
@@ -151,7 +145,6 @@ class GalleryModel extends Model {
|
|
|
151
145
|
}
|
|
152
146
|
|
|
153
147
|
/**
|
|
154
|
-
*
|
|
155
148
|
* @param {Number} step=1
|
|
156
149
|
*/
|
|
157
150
|
onNavKeyRow(step=1) {
|
|
@@ -202,7 +195,6 @@ class GalleryModel extends Model {
|
|
|
202
195
|
}
|
|
203
196
|
|
|
204
197
|
/**
|
|
205
|
-
*
|
|
206
198
|
* @param {Neo.component.Base} component
|
|
207
199
|
*/
|
|
208
200
|
register(component) {
|
|
@@ -229,7 +221,6 @@ class GalleryModel extends Model {
|
|
|
229
221
|
}
|
|
230
222
|
|
|
231
223
|
/**
|
|
232
|
-
*
|
|
233
224
|
* @param {String} itemId
|
|
234
225
|
*/
|
|
235
226
|
select(itemId) {
|
|
@@ -62,7 +62,6 @@ class HelixModel extends Model {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
66
65
|
* @param {Object} data
|
|
67
66
|
*/
|
|
68
67
|
onItemClick(data) {
|
|
@@ -86,7 +85,6 @@ class HelixModel extends Model {
|
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
/**
|
|
89
|
-
*
|
|
90
88
|
* @param {Object} data
|
|
91
89
|
*/
|
|
92
90
|
onKeyDownDown(data) {
|
|
@@ -94,7 +92,6 @@ class HelixModel 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 HelixModel 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 HelixModel extends Model {
|
|
|
110
106
|
}
|
|
111
107
|
|
|
112
108
|
/**
|
|
113
|
-
*
|
|
114
109
|
* @param {Object} data
|
|
115
110
|
*/
|
|
116
111
|
onKeyDownUp(data) {
|
|
@@ -118,7 +113,6 @@ class HelixModel extends Model {
|
|
|
118
113
|
}
|
|
119
114
|
|
|
120
115
|
/**
|
|
121
|
-
*
|
|
122
116
|
* @param {Number} step=1
|
|
123
117
|
*/
|
|
124
118
|
onNavKeyColumn(step=1) {
|
|
@@ -165,7 +159,6 @@ class HelixModel extends Model {
|
|
|
165
159
|
}
|
|
166
160
|
|
|
167
161
|
/**
|
|
168
|
-
*
|
|
169
162
|
* @param {Number} step=1
|
|
170
163
|
*/
|
|
171
164
|
onNavKeyRow(step=1) {
|
|
@@ -198,7 +191,6 @@ class HelixModel extends Model {
|
|
|
198
191
|
}
|
|
199
192
|
|
|
200
193
|
/**
|
|
201
|
-
*
|
|
202
194
|
* @param {Neo.component.Base} component
|
|
203
195
|
*/
|
|
204
196
|
register(component) {
|
|
@@ -225,7 +217,6 @@ class HelixModel extends Model {
|
|
|
225
217
|
}
|
|
226
218
|
|
|
227
219
|
/**
|
|
228
|
-
*
|
|
229
220
|
* @param {String} itemId
|
|
230
221
|
* @param {Boolean} [toggleSelection=true]
|
|
231
222
|
*/
|
|
@@ -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,7 +36,6 @@ class CellColumnModel extends CellModel {
|
|
|
36
36
|
}}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
39
|
* @param {Object} config
|
|
41
40
|
*/
|
|
42
41
|
constructor(config) {
|
|
@@ -46,7 +45,6 @@ class CellColumnModel extends CellModel {
|
|
|
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,7 +36,6 @@ class CellColumnRowModel extends CellRowModel {
|
|
|
36
36
|
}}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
39
|
* @param {Object} config
|
|
41
40
|
*/
|
|
42
41
|
constructor(config) {
|
|
@@ -46,7 +45,6 @@ class CellColumnRowModel extends CellRowModel {
|
|
|
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,7 +32,6 @@ class CellRowModel extends CellModel {
|
|
|
32
32
|
}}
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
35
|
* @param {Object} config
|
|
37
36
|
*/
|
|
38
37
|
constructor(config) {
|
|
@@ -42,7 +41,6 @@ class CellRowModel extends CellModel {
|
|
|
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
|
*/
|