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
|
@@ -46,7 +46,6 @@ class MainContainerController extends Component {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
49
|
* @param {Object} data
|
|
51
50
|
*/
|
|
52
51
|
onButton1Click(data) {
|
|
@@ -54,7 +53,6 @@ class MainContainerController extends Component {
|
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
/**
|
|
57
|
-
*
|
|
58
56
|
* @param {Object} data
|
|
59
57
|
*/
|
|
60
58
|
onButton2Click(data) {
|
|
@@ -62,7 +60,6 @@ class MainContainerController extends Component {
|
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
/**
|
|
65
|
-
*
|
|
66
63
|
* @param {Object} data
|
|
67
64
|
*/
|
|
68
65
|
onTextField1Change(data) {
|
|
@@ -70,7 +67,6 @@ class MainContainerController extends Component {
|
|
|
70
67
|
}
|
|
71
68
|
|
|
72
69
|
/**
|
|
73
|
-
*
|
|
74
70
|
* @param {Object} data
|
|
75
71
|
*/
|
|
76
72
|
onTextField2Change(data) {
|
|
@@ -88,7 +84,6 @@ class MainContainerController extends Component {
|
|
|
88
84
|
}
|
|
89
85
|
|
|
90
86
|
/**
|
|
91
|
-
*
|
|
92
87
|
* @param {String} value
|
|
93
88
|
* @param {String} buttonReference
|
|
94
89
|
* @param {String} textfieldReference
|
|
@@ -101,4 +96,4 @@ class MainContainerController extends Component {
|
|
|
101
96
|
|
|
102
97
|
Neo.applyClassConfig(MainContainerController);
|
|
103
98
|
|
|
104
|
-
export {MainContainerController as default};
|
|
99
|
+
export {MainContainerController as default};
|
|
@@ -14,7 +14,6 @@ class EditUserDialogController extends Component {
|
|
|
14
14
|
}}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
17
|
* @param {Object} data
|
|
19
18
|
*/
|
|
20
19
|
onFirstnameTextFieldChange(data) {
|
|
@@ -24,7 +23,6 @@ class EditUserDialogController extends Component {
|
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
28
26
|
* @param {Object} data
|
|
29
27
|
*/
|
|
30
28
|
onLastnameTextFieldChange(data) {
|
|
@@ -36,4 +34,4 @@ class EditUserDialogController extends Component {
|
|
|
36
34
|
|
|
37
35
|
Neo.applyClassConfig(EditUserDialogController);
|
|
38
36
|
|
|
39
|
-
export {EditUserDialogController as default};
|
|
37
|
+
export {EditUserDialogController as default};
|
|
@@ -19,7 +19,6 @@ class MainContainerController extends Component {
|
|
|
19
19
|
}}
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
22
|
* @param {Boolean} enable
|
|
24
23
|
*/
|
|
25
24
|
enableEditUserButton(enable) {
|
|
@@ -27,7 +26,6 @@ class MainContainerController extends Component {
|
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
|
-
*
|
|
31
29
|
* @param {Object} data
|
|
32
30
|
*/
|
|
33
31
|
onEditUserButtonClick(data) {
|
|
@@ -60,4 +58,4 @@ class MainContainerController extends Component {
|
|
|
60
58
|
|
|
61
59
|
Neo.applyClassConfig(MainContainerController);
|
|
62
60
|
|
|
63
|
-
export {MainContainerController as default};
|
|
61
|
+
export {MainContainerController as default};
|
|
@@ -27,8 +27,8 @@ class MainContainerController extends ComponentController {
|
|
|
27
27
|
/**
|
|
28
28
|
* The App worker will receive connect & disconnect events inside the SharedWorkers context
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
super(config);
|
|
30
|
+
construct(config) {
|
|
31
|
+
super.construct(config);
|
|
32
32
|
|
|
33
33
|
let me = this;
|
|
34
34
|
|
|
@@ -40,7 +40,6 @@ class MainContainerController extends ComponentController {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
43
|
* @param {Object} data
|
|
45
44
|
* @param {String} data.appName
|
|
46
45
|
*/
|
|
@@ -81,7 +80,6 @@ class MainContainerController extends ComponentController {
|
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
/**
|
|
84
|
-
*
|
|
85
83
|
* @param {Object} data
|
|
86
84
|
* @param {String} data.appName
|
|
87
85
|
*/
|
|
@@ -97,4 +95,4 @@ class MainContainerController extends ComponentController {
|
|
|
97
95
|
|
|
98
96
|
Neo.applyClassConfig(MainContainerController);
|
|
99
97
|
|
|
100
|
-
export {MainContainerController as default};
|
|
98
|
+
export {MainContainerController as default};
|
|
@@ -14,7 +14,6 @@ class MainContainerController extends Component {
|
|
|
14
14
|
}}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
17
|
* @param {Object} data
|
|
19
18
|
*/
|
|
20
19
|
onButton1Click(data) {
|
|
@@ -22,7 +21,6 @@ class MainContainerController extends Component {
|
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
/**
|
|
25
|
-
*
|
|
26
24
|
* @param {Object} data
|
|
27
25
|
*/
|
|
28
26
|
onButton2Click(data) {
|
|
@@ -30,7 +28,6 @@ class MainContainerController extends Component {
|
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
/**
|
|
33
|
-
*
|
|
34
31
|
* @param {Object} data
|
|
35
32
|
*/
|
|
36
33
|
onLogModelIntoConsoleButtonClick(data) {
|
|
@@ -38,7 +35,6 @@ class MainContainerController extends Component {
|
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
/**
|
|
41
|
-
*
|
|
42
38
|
* @param {Object} data
|
|
43
39
|
*/
|
|
44
40
|
onTextField1Change(data) {
|
|
@@ -48,7 +44,6 @@ class MainContainerController extends Component {
|
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
/**
|
|
51
|
-
*
|
|
52
47
|
* @param {Object} data
|
|
53
48
|
*/
|
|
54
49
|
onTextField2Change(data) {
|
|
@@ -58,7 +53,6 @@ class MainContainerController extends Component {
|
|
|
58
53
|
}
|
|
59
54
|
|
|
60
55
|
/**
|
|
61
|
-
*
|
|
62
56
|
* @param {String} value
|
|
63
57
|
*/
|
|
64
58
|
updateButton1Text(value) {
|
|
@@ -66,7 +60,6 @@ class MainContainerController extends Component {
|
|
|
66
60
|
}
|
|
67
61
|
|
|
68
62
|
/**
|
|
69
|
-
*
|
|
70
63
|
* @param {String} value
|
|
71
64
|
*/
|
|
72
65
|
updateButton2Text(value) {
|
|
@@ -78,4 +71,4 @@ class MainContainerController extends Component {
|
|
|
78
71
|
|
|
79
72
|
Neo.applyClassConfig(MainContainerController);
|
|
80
73
|
|
|
81
|
-
export {MainContainerController as default};
|
|
74
|
+
export {MainContainerController as default};
|
|
@@ -158,7 +158,6 @@ class MainContainer extends ConfigurationViewport {
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
|
-
*
|
|
162
161
|
* @param {String} config
|
|
163
162
|
* @param {Object} opts
|
|
164
163
|
*/
|
|
@@ -167,7 +166,6 @@ class MainContainer extends ConfigurationViewport {
|
|
|
167
166
|
}
|
|
168
167
|
|
|
169
168
|
/**
|
|
170
|
-
*
|
|
171
169
|
* @returns {Neo.tab.header.Button}
|
|
172
170
|
*/
|
|
173
171
|
getFirstTabHeader() {
|
|
@@ -175,7 +173,6 @@ class MainContainer extends ConfigurationViewport {
|
|
|
175
173
|
}
|
|
176
174
|
|
|
177
175
|
/**
|
|
178
|
-
*
|
|
179
176
|
* @param {Object} data
|
|
180
177
|
* @param {Neo.component.Base} data.component
|
|
181
178
|
* @param {Boolean} data.oldValue
|
|
@@ -199,7 +196,6 @@ class MainContainer extends ConfigurationViewport {
|
|
|
199
196
|
}
|
|
200
197
|
|
|
201
198
|
/**
|
|
202
|
-
*
|
|
203
199
|
* @param {String} value
|
|
204
200
|
* @param {Object} opts
|
|
205
201
|
*/
|
|
@@ -212,7 +208,6 @@ class MainContainer extends ConfigurationViewport {
|
|
|
212
208
|
}
|
|
213
209
|
|
|
214
210
|
/**
|
|
215
|
-
*
|
|
216
211
|
* @param {Object} opts
|
|
217
212
|
*/
|
|
218
213
|
onUserActiveIndexChange(opts) {
|
|
@@ -222,4 +217,4 @@ class MainContainer extends ConfigurationViewport {
|
|
|
222
217
|
|
|
223
218
|
Neo.applyClassConfig(MainContainer);
|
|
224
219
|
|
|
225
|
-
export {MainContainer as default};
|
|
220
|
+
export {MainContainer as default};
|
|
@@ -40,8 +40,8 @@ class MainComponent extends Component {
|
|
|
40
40
|
]}
|
|
41
41
|
}}
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
super(config);
|
|
43
|
+
construct(config) {
|
|
44
|
+
super.construct(config);
|
|
45
45
|
|
|
46
46
|
let me = this,
|
|
47
47
|
domListeners = me.domListeners || [];
|
|
@@ -124,4 +124,4 @@ class MainComponent extends Component {
|
|
|
124
124
|
|
|
125
125
|
Neo.applyClassConfig(MainComponent);
|
|
126
126
|
|
|
127
|
-
export {MainComponent as default};
|
|
127
|
+
export {MainComponent as default};
|
|
@@ -30,8 +30,8 @@ class MainContainer extends Container {
|
|
|
30
30
|
store: null
|
|
31
31
|
}}
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
super(config);
|
|
33
|
+
construct(config) {
|
|
34
|
+
super.construct(config);
|
|
35
35
|
|
|
36
36
|
let me = this;
|
|
37
37
|
|
|
@@ -90,4 +90,4 @@ console.log(field.value);
|
|
|
90
90
|
|
|
91
91
|
Neo.applyClassConfig(MainContainer);
|
|
92
92
|
|
|
93
|
-
export {MainContainer as default};
|
|
93
|
+
export {MainContainer as default};
|
|
@@ -76,7 +76,6 @@ class MainContainer extends ConfigurationViewport {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
80
79
|
* @returns {*}
|
|
81
80
|
*/
|
|
82
81
|
createExampleComponent() {
|
|
@@ -119,7 +118,6 @@ class MainContainer extends ConfigurationViewport {
|
|
|
119
118
|
}
|
|
120
119
|
|
|
121
120
|
/**
|
|
122
|
-
*
|
|
123
121
|
* @param {Object} opts
|
|
124
122
|
*/
|
|
125
123
|
onLeafNodesOnlyChange(opts) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neo.mjs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "The webworkers driven UI framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
"@fortawesome/fontawesome-free": "^5.15.4",
|
|
37
37
|
"@material/mwc-button": "^0.25.3",
|
|
38
38
|
"@material/mwc-textfield": "^0.25.3",
|
|
39
|
-
"autoprefixer": "^10.4.
|
|
39
|
+
"autoprefixer": "^10.4.1",
|
|
40
40
|
"chalk": "^4.1.2",
|
|
41
41
|
"clean-webpack-plugin": "^4.0.0",
|
|
42
42
|
"commander": "^8.3.0",
|
|
43
|
-
"cssnano": "^5.0.
|
|
43
|
+
"cssnano": "^5.0.14",
|
|
44
44
|
"envinfo": "^7.8.1",
|
|
45
45
|
"fs-extra": "^10.0.0",
|
|
46
46
|
"highlightjs-line-numbers.js": "^2.8.0",
|
|
47
47
|
"inquirer": "^8.1.5",
|
|
48
48
|
"neo-jsdoc": "^1.0.1",
|
|
49
49
|
"neo-jsdoc-x": "^1.0.4",
|
|
50
|
-
"postcss": "^8.
|
|
51
|
-
"sass": "^1.
|
|
52
|
-
"webpack": "^5.
|
|
50
|
+
"postcss": "^8.4.5",
|
|
51
|
+
"sass": "^1.45.2",
|
|
52
|
+
"webpack": "^5.65.0",
|
|
53
53
|
"webpack-cli": "^4.9.1",
|
|
54
|
-
"webpack-dev-server": "4.
|
|
54
|
+
"webpack-dev-server": "4.7.2",
|
|
55
55
|
"webpack-hook-plugin": "^1.0.7",
|
|
56
56
|
"webpack-node-externals": "^3.0.0"
|
|
57
57
|
},
|
package/src/Main.mjs
CHANGED
|
@@ -96,11 +96,10 @@ class Main extends core.Base {
|
|
|
96
96
|
}}
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
100
99
|
* @param {Object} config
|
|
101
100
|
*/
|
|
102
|
-
|
|
103
|
-
super(config);
|
|
101
|
+
construct(config) {
|
|
102
|
+
super.construct(config);
|
|
104
103
|
|
|
105
104
|
let me = this;
|
|
106
105
|
|
|
@@ -229,7 +228,6 @@ class Main extends core.Base {
|
|
|
229
228
|
}
|
|
230
229
|
|
|
231
230
|
/**
|
|
232
|
-
*
|
|
233
231
|
* @param data
|
|
234
232
|
*/
|
|
235
233
|
onMountDom(data) {
|
|
@@ -243,7 +241,6 @@ class Main extends core.Base {
|
|
|
243
241
|
}
|
|
244
242
|
|
|
245
243
|
/**
|
|
246
|
-
*
|
|
247
244
|
* @param data
|
|
248
245
|
*/
|
|
249
246
|
onRender(data) {
|
|
@@ -252,7 +249,6 @@ class Main extends core.Base {
|
|
|
252
249
|
}
|
|
253
250
|
|
|
254
251
|
/**
|
|
255
|
-
*
|
|
256
252
|
* @param data
|
|
257
253
|
*/
|
|
258
254
|
onUpdateDom(data) {
|
|
@@ -260,7 +256,6 @@ class Main extends core.Base {
|
|
|
260
256
|
}
|
|
261
257
|
|
|
262
258
|
/**
|
|
263
|
-
*
|
|
264
259
|
* @param data
|
|
265
260
|
*/
|
|
266
261
|
onUpdateVdom(data) {
|
|
@@ -269,7 +264,6 @@ class Main extends core.Base {
|
|
|
269
264
|
}
|
|
270
265
|
|
|
271
266
|
/**
|
|
272
|
-
*
|
|
273
267
|
* @param {Object[]} queue
|
|
274
268
|
* @param {Date} start
|
|
275
269
|
* @returns {Number}
|
|
@@ -292,7 +286,6 @@ class Main extends core.Base {
|
|
|
292
286
|
}
|
|
293
287
|
|
|
294
288
|
/**
|
|
295
|
-
*
|
|
296
289
|
* @param {Object} data
|
|
297
290
|
* @protected
|
|
298
291
|
*/
|
|
@@ -307,7 +300,6 @@ class Main extends core.Base {
|
|
|
307
300
|
}
|
|
308
301
|
|
|
309
302
|
/**
|
|
310
|
-
*
|
|
311
303
|
* @param {Object} data
|
|
312
304
|
* @protected
|
|
313
305
|
*/
|
|
@@ -322,7 +314,6 @@ class Main extends core.Base {
|
|
|
322
314
|
}
|
|
323
315
|
|
|
324
316
|
/**
|
|
325
|
-
*
|
|
326
317
|
* @param data
|
|
327
318
|
* @protected
|
|
328
319
|
*/
|
|
@@ -380,20 +371,20 @@ class Main extends core.Base {
|
|
|
380
371
|
/**
|
|
381
372
|
* Change the location.hash value
|
|
382
373
|
* @param {Object} data
|
|
383
|
-
* @param {String} data.
|
|
374
|
+
* @param {String} data.key
|
|
375
|
+
* @param {*} data.value
|
|
384
376
|
*/
|
|
385
|
-
|
|
386
|
-
|
|
377
|
+
setNeoConfig(data) {
|
|
378
|
+
Neo.config[data.key] = data.value;
|
|
387
379
|
}
|
|
388
380
|
|
|
389
381
|
/**
|
|
390
382
|
* Change the location.hash value
|
|
391
383
|
* @param {Object} data
|
|
392
|
-
* @param {String} data.
|
|
393
|
-
* @param {*} data.value
|
|
384
|
+
* @param {String} data.value
|
|
394
385
|
*/
|
|
395
|
-
|
|
396
|
-
|
|
386
|
+
setRoute(data) {
|
|
387
|
+
window.location.hash = data.value;
|
|
397
388
|
}
|
|
398
389
|
|
|
399
390
|
/**
|
package/src/Neo.mjs
CHANGED
|
@@ -87,7 +87,7 @@ Neo = self.Neo = Object.assign({
|
|
|
87
87
|
|
|
88
88
|
// only apply properties which have no setters inside the prototype chain
|
|
89
89
|
// those will get applied on create (Neo.core.Base -> initConfig)
|
|
90
|
-
else if (!hasPropertySetter(element, key)) {
|
|
90
|
+
else if (!Neo.hasPropertySetter(element, key)) {
|
|
91
91
|
Object.defineProperty(element, key, {
|
|
92
92
|
enumerable: true,
|
|
93
93
|
value : value,
|
|
@@ -333,8 +333,9 @@ Neo = self.Neo = Object.assign({
|
|
|
333
333
|
cls = Neo.ns(className);
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
instance = new cls(
|
|
336
|
+
instance = new cls();
|
|
337
337
|
|
|
338
|
+
instance.construct(config);
|
|
338
339
|
instance.onConstructed();
|
|
339
340
|
instance.onAfterConstructed();
|
|
340
341
|
instance.init();
|
|
@@ -344,6 +345,28 @@ Neo = self.Neo = Object.assign({
|
|
|
344
345
|
|
|
345
346
|
emptyFn() {},
|
|
346
347
|
|
|
348
|
+
/**
|
|
349
|
+
* Checks if there is a set method for a given property key inside the prototype chain
|
|
350
|
+
* @memberOf module:Neo
|
|
351
|
+
* @param {Neo.core.Base} proto The top level prototype of a class
|
|
352
|
+
* @param {String} key the property key to test
|
|
353
|
+
* @returns {Boolean}
|
|
354
|
+
*/
|
|
355
|
+
hasPropertySetter(proto, key) {
|
|
356
|
+
let descriptor;
|
|
357
|
+
|
|
358
|
+
while (proto.__proto__) {
|
|
359
|
+
descriptor = Object.getOwnPropertyDescriptor(proto, key);
|
|
360
|
+
|
|
361
|
+
if (typeof descriptor === 'object' && typeof descriptor.set === 'function') {
|
|
362
|
+
return true;
|
|
363
|
+
}
|
|
364
|
+
proto = proto.__proto__;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
return false;
|
|
368
|
+
},
|
|
369
|
+
|
|
347
370
|
/**
|
|
348
371
|
* Deep-merges a source object into a target object
|
|
349
372
|
* @memberOf module:Neo
|
|
@@ -435,7 +458,6 @@ Neo = self.Neo = Object.assign({
|
|
|
435
458
|
},
|
|
436
459
|
|
|
437
460
|
/**
|
|
438
|
-
*
|
|
439
461
|
* @param {*} item
|
|
440
462
|
* @returns {String|null}
|
|
441
463
|
*/
|
|
@@ -527,7 +549,7 @@ function applyMixins(cls, mixins) {
|
|
|
527
549
|
* @tutorial 02_ClassSystem
|
|
528
550
|
*/
|
|
529
551
|
function autoGenerateGetSet(proto, key) {
|
|
530
|
-
if (hasPropertySetter(proto, key)) {
|
|
552
|
+
if (Neo.hasPropertySetter(proto, key)) {
|
|
531
553
|
throw('Config ' + key + '_ (' + proto.className + ') already has a set method, use beforeGet, beforeSet & afterSet instead');
|
|
532
554
|
}
|
|
533
555
|
|
|
@@ -623,28 +645,6 @@ function exists(className) {
|
|
|
623
645
|
}
|
|
624
646
|
}
|
|
625
647
|
|
|
626
|
-
/**
|
|
627
|
-
* Checks if there is a set method for a given property key inside the prototype chain
|
|
628
|
-
* @param {Neo.core.Base} proto The top level prototype of a class
|
|
629
|
-
* @param {String} key the property key to test
|
|
630
|
-
* @returns {Boolean}
|
|
631
|
-
* @private
|
|
632
|
-
*/
|
|
633
|
-
function hasPropertySetter(proto, key) {
|
|
634
|
-
let descriptor;
|
|
635
|
-
|
|
636
|
-
while (proto.__proto__) {
|
|
637
|
-
descriptor = Object.getOwnPropertyDescriptor(proto, key);
|
|
638
|
-
|
|
639
|
-
if (typeof descriptor === 'object' && typeof descriptor.set === 'function') {
|
|
640
|
-
return true;
|
|
641
|
-
}
|
|
642
|
-
proto = proto.__proto__;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
return false;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
648
|
/**
|
|
649
649
|
*
|
|
650
650
|
* @param {Neo.core.Base} proto
|
package/src/button/Menu.mjs
CHANGED
package/src/button/Split.mjs
CHANGED
|
@@ -49,11 +49,10 @@ class Split extends Button {
|
|
|
49
49
|
}}
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
53
52
|
* @param {Object} config
|
|
54
53
|
*/
|
|
55
|
-
|
|
56
|
-
super(config);
|
|
54
|
+
construct(config) {
|
|
55
|
+
super.construct(config);
|
|
57
56
|
|
|
58
57
|
let me = this,
|
|
59
58
|
vdom = me.vdom;
|
|
@@ -120,7 +119,6 @@ class Split extends Button {
|
|
|
120
119
|
}
|
|
121
120
|
|
|
122
121
|
/**
|
|
123
|
-
*
|
|
124
122
|
* @param {Boolean} [updateParentVdom=false]
|
|
125
123
|
* @param {Boolean} [silent=false]
|
|
126
124
|
*/
|
|
@@ -130,7 +128,6 @@ class Split extends Button {
|
|
|
130
128
|
}
|
|
131
129
|
|
|
132
130
|
/**
|
|
133
|
-
*
|
|
134
131
|
* @returns {Object} The new vdom root
|
|
135
132
|
*/
|
|
136
133
|
getVdomRoot() {
|
|
@@ -138,7 +135,6 @@ class Split extends Button {
|
|
|
138
135
|
}
|
|
139
136
|
|
|
140
137
|
/**
|
|
141
|
-
*
|
|
142
138
|
* @returns {Object} The new vnode root
|
|
143
139
|
*/
|
|
144
140
|
getVnodeRoot() {
|
|
@@ -75,11 +75,10 @@ class EditEventContainer extends FormContainer {
|
|
|
75
75
|
}}
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
79
78
|
* @param {Object} config
|
|
80
79
|
*/
|
|
81
|
-
|
|
82
|
-
super(config);
|
|
80
|
+
construct(config) {
|
|
81
|
+
super.construct(config);
|
|
83
82
|
|
|
84
83
|
// focus trap, see: https://github.com/neomjs/neo/issues/2306
|
|
85
84
|
this.vdom.tabIndex = -1;
|
|
@@ -214,7 +213,6 @@ class EditEventContainer extends FormContainer {
|
|
|
214
213
|
}
|
|
215
214
|
|
|
216
215
|
/**
|
|
217
|
-
*
|
|
218
216
|
* @param {Neo.calendar.model.Event} record
|
|
219
217
|
* @returns {String}
|
|
220
218
|
*/
|
|
@@ -227,7 +225,6 @@ class EditEventContainer extends FormContainer {
|
|
|
227
225
|
}
|
|
228
226
|
|
|
229
227
|
/**
|
|
230
|
-
*
|
|
231
228
|
* @param {Neo.calendar.model.Event} record
|
|
232
229
|
* @returns {String}
|
|
233
230
|
*/
|
|
@@ -240,7 +237,6 @@ class EditEventContainer extends FormContainer {
|
|
|
240
237
|
}
|
|
241
238
|
|
|
242
239
|
/**
|
|
243
|
-
*
|
|
244
240
|
* @param {Object} data
|
|
245
241
|
*/
|
|
246
242
|
onCalendarFieldChange(data) {
|
|
@@ -261,7 +257,6 @@ class EditEventContainer extends FormContainer {
|
|
|
261
257
|
}
|
|
262
258
|
|
|
263
259
|
/**
|
|
264
|
-
*
|
|
265
260
|
* @param {Object} data
|
|
266
261
|
*/
|
|
267
262
|
onFocusLeave(data) {
|
|
@@ -274,7 +269,6 @@ class EditEventContainer extends FormContainer {
|
|
|
274
269
|
}
|
|
275
270
|
|
|
276
271
|
/**
|
|
277
|
-
*
|
|
278
272
|
* @param {Object} data
|
|
279
273
|
*/
|
|
280
274
|
onTimeFieldChange(data) {
|
|
@@ -298,7 +292,6 @@ class EditEventContainer extends FormContainer {
|
|
|
298
292
|
}
|
|
299
293
|
|
|
300
294
|
/**
|
|
301
|
-
*
|
|
302
295
|
* @param {Object} data
|
|
303
296
|
*/
|
|
304
297
|
onTitleFieldChange(data) {
|