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
|
@@ -16,7 +16,6 @@ class TouchDomEvents extends Base {
|
|
|
16
16
|
}}
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
19
|
* @param {Object} event
|
|
21
20
|
*/
|
|
22
21
|
onTouchCancel(event) {
|
|
@@ -24,7 +23,6 @@ class TouchDomEvents extends Base {
|
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
28
26
|
* @param {Object} event
|
|
29
27
|
*/
|
|
30
28
|
onTouchEnd(event) {
|
|
@@ -32,7 +30,6 @@ class TouchDomEvents extends Base {
|
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
/**
|
|
35
|
-
*
|
|
36
33
|
* @param {Object} event
|
|
37
34
|
*/
|
|
38
35
|
onTouchEnter(event) {
|
|
@@ -40,7 +37,6 @@ class TouchDomEvents extends Base {
|
|
|
40
37
|
}
|
|
41
38
|
|
|
42
39
|
/**
|
|
43
|
-
*
|
|
44
40
|
* @param {Object} event
|
|
45
41
|
*/
|
|
46
42
|
onTouchLeave(event) {
|
|
@@ -48,7 +44,6 @@ class TouchDomEvents extends Base {
|
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
/**
|
|
51
|
-
*
|
|
52
47
|
* @param {Object} event
|
|
53
48
|
*/
|
|
54
49
|
onTouchMove(event) {
|
|
@@ -56,7 +51,6 @@ class TouchDomEvents extends Base {
|
|
|
56
51
|
}
|
|
57
52
|
|
|
58
53
|
/**
|
|
59
|
-
*
|
|
60
54
|
* @param {Object} event
|
|
61
55
|
*/
|
|
62
56
|
onTouchStart(event) {
|
|
@@ -67,4 +61,4 @@ class TouchDomEvents extends Base {
|
|
|
67
61
|
|
|
68
62
|
Neo.applyClassConfig(TouchDomEvents);
|
|
69
63
|
|
|
70
|
-
export {TouchDomEvents as default};
|
|
64
|
+
export {TouchDomEvents as default};
|
package/src/manager/Base.mjs
CHANGED
|
@@ -21,11 +21,10 @@ class Component extends Base {
|
|
|
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
|
Neo.getComponent = this.getById.bind(this); // alias
|
|
30
29
|
}
|
|
31
30
|
|
|
@@ -94,7 +93,6 @@ class Component extends Base {
|
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
/**
|
|
97
|
-
*
|
|
98
96
|
* @param {Array} path
|
|
99
97
|
* @returns {String|null} the component id in case there is a match
|
|
100
98
|
*/
|
|
@@ -167,7 +165,6 @@ class Component extends Base {
|
|
|
167
165
|
}
|
|
168
166
|
|
|
169
167
|
/**
|
|
170
|
-
*
|
|
171
168
|
* @param {Array} path
|
|
172
169
|
* @returns {Array}
|
|
173
170
|
*/
|
package/src/manager/DomEvent.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Base from '../core/Base.mjs';
|
|
2
2
|
import ComponentManager from './Component.mjs';
|
|
3
3
|
import FocusManager from './Focus.mjs';
|
|
4
|
-
import Logger from '../
|
|
4
|
+
import Logger from '../util/Logger.mjs';
|
|
5
5
|
import NeoArray from '../util/Array.mjs';
|
|
6
6
|
import VDomUtil from '../util/VDom.mjs';
|
|
7
7
|
|
|
@@ -63,7 +63,6 @@ class DomEvent extends Base {
|
|
|
63
63
|
}}
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
66
|
* @param {Object} event
|
|
68
67
|
* @protected
|
|
69
68
|
*/
|
|
@@ -150,7 +149,6 @@ class DomEvent extends Base {
|
|
|
150
149
|
}
|
|
151
150
|
|
|
152
151
|
/**
|
|
153
|
-
*
|
|
154
152
|
* @param config
|
|
155
153
|
* @param scope
|
|
156
154
|
* @returns {Object}
|
|
@@ -351,7 +349,6 @@ class DomEvent extends Base {
|
|
|
351
349
|
}
|
|
352
350
|
|
|
353
351
|
/**
|
|
354
|
-
*
|
|
355
352
|
* @param {Neo.component.Base} component
|
|
356
353
|
* @param {Object[]} domListeners
|
|
357
354
|
* @param {Object[]} oldDomListeners
|
|
@@ -435,7 +432,6 @@ class DomEvent extends Base {
|
|
|
435
432
|
}
|
|
436
433
|
|
|
437
434
|
/**
|
|
438
|
-
*
|
|
439
435
|
* @param {Object} listener
|
|
440
436
|
* @param {Array} path
|
|
441
437
|
* @returns {Boolean|String} true in case the delegation string matches the event path
|
|
@@ -483,7 +479,6 @@ class DomEvent extends Base {
|
|
|
483
479
|
}
|
|
484
480
|
|
|
485
481
|
/**
|
|
486
|
-
*
|
|
487
482
|
* @param {Neo.component.Base} component
|
|
488
483
|
* @param {Object} data
|
|
489
484
|
* @param {String} delegationTargetId
|
package/src/manager/Focus.mjs
CHANGED
|
@@ -51,7 +51,6 @@ class Focus extends CoreBase {
|
|
|
51
51
|
}}
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
55
54
|
* @param {Object} opts
|
|
56
55
|
* @param {Array} opts.componentPath Component ids upwards
|
|
57
56
|
* @param {Object} opts.data dom event infos
|
|
@@ -65,7 +64,6 @@ class Focus extends CoreBase {
|
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
/**
|
|
68
|
-
*
|
|
69
67
|
* @param {Object} opts
|
|
70
68
|
* @param {Array} opts.componentPath Component ids upwards
|
|
71
69
|
* @param {Object} opts.data dom event infos
|
|
@@ -77,7 +75,6 @@ class Focus extends CoreBase {
|
|
|
77
75
|
}
|
|
78
76
|
|
|
79
77
|
/**
|
|
80
|
-
*
|
|
81
78
|
* @param {Object} opts
|
|
82
79
|
* @param {Array} opts.componentPath Component ids upwards
|
|
83
80
|
* @param {Object} opts.data dom event infos
|
|
@@ -88,7 +85,6 @@ class Focus extends CoreBase {
|
|
|
88
85
|
}
|
|
89
86
|
|
|
90
87
|
/**
|
|
91
|
-
*
|
|
92
88
|
* @param {Object} opts
|
|
93
89
|
* @param {Array} opts.componentPath Component ids upwards
|
|
94
90
|
* @param {Object} opts.data dom event infos
|
|
@@ -128,7 +124,6 @@ class Focus extends CoreBase {
|
|
|
128
124
|
}
|
|
129
125
|
|
|
130
126
|
/**
|
|
131
|
-
*
|
|
132
127
|
* @param {Object} opts
|
|
133
128
|
* @param {Array} opts.componentPath Component ids upwards
|
|
134
129
|
* @param {Object} opts.data dom event infos
|
|
@@ -147,7 +142,6 @@ class Focus extends CoreBase {
|
|
|
147
142
|
}
|
|
148
143
|
|
|
149
144
|
/**
|
|
150
|
-
*
|
|
151
145
|
* @param {Object} opts
|
|
152
146
|
* @param {Array} opts.componentPath Component ids upwards
|
|
153
147
|
* @param {Object} opts.data dom event infos
|
|
@@ -166,7 +160,6 @@ class Focus extends CoreBase {
|
|
|
166
160
|
}
|
|
167
161
|
|
|
168
162
|
/**
|
|
169
|
-
*
|
|
170
163
|
* @param {Object} opts
|
|
171
164
|
* @param {Array} opts.componentPath Component ids upwards
|
|
172
165
|
* @param {Object} opts.data dom event infos
|
package/src/manager/Instance.mjs
CHANGED
package/src/manager/Store.mjs
CHANGED
|
@@ -33,7 +33,6 @@ class Store extends Base {
|
|
|
33
33
|
}}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
36
|
* Dummy method until we have a data package in place
|
|
38
37
|
* @param {Number} amountColumns
|
|
39
38
|
* @param {Number} amountRows
|
|
@@ -58,7 +57,6 @@ class Store extends Base {
|
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
/**
|
|
61
|
-
*
|
|
62
60
|
* @param storeId
|
|
63
61
|
* @param fieldName
|
|
64
62
|
* @param value
|
|
@@ -68,7 +66,6 @@ class Store extends Base {
|
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
/**
|
|
71
|
-
*
|
|
72
69
|
* @param storeId
|
|
73
70
|
* @param params
|
|
74
71
|
*/
|
|
@@ -77,7 +74,6 @@ class Store extends Base {
|
|
|
77
74
|
}
|
|
78
75
|
|
|
79
76
|
/**
|
|
80
|
-
*
|
|
81
77
|
* @param storeId
|
|
82
78
|
* @param fieldName
|
|
83
79
|
* @param value
|
package/src/menu/List.mjs
CHANGED
|
@@ -193,9 +193,7 @@ class List extends BaseList {
|
|
|
193
193
|
|
|
194
194
|
me.store.destroy();
|
|
195
195
|
|
|
196
|
-
|
|
197
|
-
activeSubMenu.unmount();
|
|
198
|
-
}
|
|
196
|
+
activeSubMenu?.unmount();
|
|
199
197
|
|
|
200
198
|
Object.entries(subMenuMap).forEach(([key, value]) => {
|
|
201
199
|
value.destroy();
|
|
@@ -206,7 +204,6 @@ class List extends BaseList {
|
|
|
206
204
|
}
|
|
207
205
|
|
|
208
206
|
/**
|
|
209
|
-
*
|
|
210
207
|
* @param {Number|String} recordId
|
|
211
208
|
* @returns {String}
|
|
212
209
|
*/
|
|
@@ -215,7 +212,6 @@ class List extends BaseList {
|
|
|
215
212
|
}
|
|
216
213
|
|
|
217
214
|
/**
|
|
218
|
-
*
|
|
219
215
|
* @param {Number|String} recordId
|
|
220
216
|
* @returns {String}
|
|
221
217
|
*/
|
|
@@ -255,7 +251,6 @@ class List extends BaseList {
|
|
|
255
251
|
}
|
|
256
252
|
|
|
257
253
|
/**
|
|
258
|
-
*
|
|
259
254
|
* @param {Object} data
|
|
260
255
|
* @param {Object[]} data.path
|
|
261
256
|
*/
|
|
@@ -264,7 +259,6 @@ class List extends BaseList {
|
|
|
264
259
|
}
|
|
265
260
|
|
|
266
261
|
/**
|
|
267
|
-
*
|
|
268
262
|
* @param {Object} data
|
|
269
263
|
* @param {Object[]} data.oldPath
|
|
270
264
|
*/
|
|
@@ -273,7 +267,6 @@ class List extends BaseList {
|
|
|
273
267
|
}
|
|
274
268
|
|
|
275
269
|
/**
|
|
276
|
-
*
|
|
277
270
|
* @param {String[]} items
|
|
278
271
|
*/
|
|
279
272
|
onSelect(items) {
|
|
@@ -284,15 +277,11 @@ class List extends BaseList {
|
|
|
284
277
|
|
|
285
278
|
if (me.activeSubMenu !== me.subMenuMap?.[me.getMenuMapId(recordId)]) {
|
|
286
279
|
me.hideSubMenu();
|
|
287
|
-
|
|
288
|
-
if (me.hasChildren(record)) {
|
|
289
|
-
me.showSubMenu(nodeId, record);
|
|
290
|
-
}
|
|
280
|
+
me.hasChildren(record) && me.showSubMenu(nodeId, record);
|
|
291
281
|
}
|
|
292
282
|
}
|
|
293
283
|
|
|
294
284
|
/**
|
|
295
|
-
*
|
|
296
285
|
* @param {String} nodeId
|
|
297
286
|
* @param {Object} record
|
|
298
287
|
*/
|
|
@@ -305,10 +294,7 @@ class List extends BaseList {
|
|
|
305
294
|
subMenu = subMenuMap[subMenuMapId],
|
|
306
295
|
menuStyle, style;
|
|
307
296
|
|
|
308
|
-
|
|
309
|
-
appName: me.appName,
|
|
310
|
-
id : nodeId
|
|
311
|
-
}).then(rect => {
|
|
297
|
+
me.getDomRect(nodeId).then(rect => {
|
|
312
298
|
style = {
|
|
313
299
|
left: `${rect.right + me.subMenuGap}px`,
|
|
314
300
|
top : `${rect.top - 1}px` // minus the border
|
|
@@ -330,7 +316,7 @@ class List extends BaseList {
|
|
|
330
316
|
parentId : Neo.apps[me.appName].mainView.id,
|
|
331
317
|
parentIndex: store.indexOf(record),
|
|
332
318
|
parentMenu : me,
|
|
333
|
-
style
|
|
319
|
+
style,
|
|
334
320
|
zIndex : me.zIndex + 1
|
|
335
321
|
});
|
|
336
322
|
}
|
package/src/model/Component.mjs
CHANGED
|
@@ -59,9 +59,9 @@ class Component extends Base {
|
|
|
59
59
|
/**
|
|
60
60
|
* @param {Object} config
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
construct(config) {
|
|
63
63
|
Neo.currentWorker.isUsingViewModels = true;
|
|
64
|
-
super(config);
|
|
64
|
+
super.construct(config);
|
|
65
65
|
this.bindings = {};
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -594,7 +594,6 @@ class Component extends Base {
|
|
|
594
594
|
}
|
|
595
595
|
|
|
596
596
|
/**
|
|
597
|
-
*
|
|
598
597
|
* @param {Neo.component.Base} component
|
|
599
598
|
* @param {String} configName
|
|
600
599
|
* @param {String} storeName
|
package/src/plugin/Base.mjs
CHANGED
package/src/plugin/Resizable.mjs
CHANGED
|
@@ -170,11 +170,10 @@ class Resizable extends Base {
|
|
|
170
170
|
}}
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
|
-
*
|
|
174
173
|
* @param {Object} config
|
|
175
174
|
*/
|
|
176
|
-
|
|
177
|
-
super(config);
|
|
175
|
+
construct(config) {
|
|
176
|
+
super.construct(config);
|
|
178
177
|
|
|
179
178
|
let me = this,
|
|
180
179
|
domListeners = me.owner.domListeners;
|
|
@@ -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) {
|
|
@@ -401,7 +396,7 @@ class Resizable extends Base {
|
|
|
401
396
|
me.isDragging = true;
|
|
402
397
|
|
|
403
398
|
style.opacity = 0.3;
|
|
404
|
-
|
|
399
|
+
owner.wrapperStyle = style;
|
|
405
400
|
|
|
406
401
|
for (; i < len; i++) {
|
|
407
402
|
target = data.path[i];
|
|
@@ -419,10 +414,7 @@ class Resizable extends Base {
|
|
|
419
414
|
}
|
|
420
415
|
|
|
421
416
|
if (!me.boundaryContainerRect) {
|
|
422
|
-
|
|
423
|
-
appName: appName,
|
|
424
|
-
id : me.boundaryContainerRect
|
|
425
|
-
}).then(rect => {
|
|
417
|
+
owner.getDomRect(me.boundaryContainerRect).then(rect => {
|
|
426
418
|
me.boundaryContainerRect = rect;
|
|
427
419
|
});
|
|
428
420
|
}
|
|
@@ -455,7 +447,6 @@ class Resizable extends Base {
|
|
|
455
447
|
}
|
|
456
448
|
|
|
457
449
|
/**
|
|
458
|
-
*
|
|
459
450
|
* @param {Object} data
|
|
460
451
|
*/
|
|
461
452
|
onMouseMove(data) {
|
|
@@ -519,7 +510,6 @@ class Resizable extends Base {
|
|
|
519
510
|
}
|
|
520
511
|
|
|
521
512
|
/**
|
|
522
|
-
*
|
|
523
513
|
* @param {Object} data
|
|
524
514
|
*/
|
|
525
515
|
onMouseLeave(data) {
|
|
@@ -576,7 +566,6 @@ class Resizable extends Base {
|
|
|
576
566
|
}
|
|
577
567
|
|
|
578
568
|
/**
|
|
579
|
-
*
|
|
580
569
|
* @param {String} name
|
|
581
570
|
* @returns {Boolean} true in case the node existed
|
|
582
571
|
*/
|
|
@@ -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
|
*/
|