neo.mjs 2.3.16 → 3.0.0
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/api/config.mjs +2 -2
- 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/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/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/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 +2 -11
- 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 +2 -14
- 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 +2 -18
- package/src/calendar/view/week/EventDragZone.mjs +0 -3
- 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 +1 -3
- package/src/component/Chip.mjs +2 -4
- package/src/component/Circle.mjs +2 -20
- package/src/component/DateSelector.mjs +2 -15
- package/src/component/Gallery.mjs +2 -14
- package/src/component/Helix.mjs +2 -16
- package/src/component/Splitter.mjs +2 -5
- 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 +2 -12
- 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 +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 +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 +0 -9
- package/src/form/field/Range.mjs +2 -3
- package/src/form/field/Select.mjs +24 -22
- package/src/form/field/Text.mjs +2 -17
- 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 +2 -3
- 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 +0 -6
- package/src/model/Component.mjs +2 -3
- package/src/plugin/Base.mjs +2 -3
- package/src/plugin/Resizable.mjs +2 -10
- 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/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
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
<p>(1.1.) This might not sound like a big deal at first, but it does prevent any pre-processing inside the
|
|
31
31
|
constructor chain.</p>
|
|
32
32
|
<pre><code>class TabContainer extends Container {
|
|
33
|
-
|
|
33
|
+
construct(config) {
|
|
34
34
|
//let me = this; // breaks!
|
|
35
|
-
super(config);
|
|
35
|
+
super.construct(config);
|
|
36
36
|
let me = this; //ok
|
|
37
37
|
}
|
|
38
38
|
}</code></pre>
|
|
@@ -168,4 +168,4 @@
|
|
|
168
168
|
}
|
|
169
169
|
}</code></pre>
|
|
170
170
|
<p><a href="module-Neo.html#~autoGenerateGetSet">Details here</a></p>
|
|
171
|
-
</article>
|
|
171
|
+
</article>
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
(1.1.) This might not sound like a big deal at first, but it does prevent any pre-processing inside the constructor chain.
|
|
18
18
|
```
|
|
19
19
|
class TabContainer extends Container {
|
|
20
|
-
|
|
20
|
+
construct(config) {
|
|
21
21
|
//let me = this; // breaks!
|
|
22
|
-
super(config);
|
|
22
|
+
super.construct(config);
|
|
23
23
|
let me = this; //ok
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -149,8 +149,8 @@ class MainComponent extends Component {
|
|
|
149
149
|
}
|
|
150
150
|
}}
|
|
151
151
|
|
|
152
|
-
|
|
153
|
-
super(config);
|
|
152
|
+
construct(config) {
|
|
153
|
+
super.construct(config);
|
|
154
154
|
this.createItems(this.data || []);
|
|
155
155
|
}
|
|
156
156
|
|
|
@@ -226,7 +226,7 @@ export {MainComponent as default};</code></pre>
|
|
|
226
226
|
<button style="margin-left:10px;" class="todo-add-button" id="neo-vnode-9">Add Item</button>
|
|
227
227
|
</div>
|
|
228
228
|
</div>
|
|
229
|
-
|
|
229
|
+
|
|
230
230
|
<p>The generated DOM will be:</p>
|
|
231
231
|
<pre><code><div style="border:1px solid #000;margin:20px;overflow:scroll;height:200px;width:300px;max-width:300px;" id="neo-todolistapp1-maincomponent-1">
|
|
232
232
|
<ol id="neo-vnode-7">
|
|
@@ -244,8 +244,8 @@ export {MainComponent as default};</code></pre>
|
|
|
244
244
|
Engine to detect moved nodes.</br>
|
|
245
245
|
Since a todoList without any logic is no fun, let's change this!
|
|
246
246
|
</p>
|
|
247
|
-
<pre><code>
|
|
248
|
-
super(config);
|
|
247
|
+
<pre><code>construct(config) {
|
|
248
|
+
super.construct(config);
|
|
249
249
|
|
|
250
250
|
let me = this,
|
|
251
251
|
domListeners = me.domListeners || [];
|
|
@@ -409,8 +409,8 @@ class MainComponent extends Component {
|
|
|
409
409
|
}
|
|
410
410
|
}}
|
|
411
411
|
|
|
412
|
-
|
|
413
|
-
super(config);
|
|
412
|
+
construct(config) {
|
|
413
|
+
super.construct(config);
|
|
414
414
|
|
|
415
415
|
let me = this,
|
|
416
416
|
domListeners = me.domListeners || [];
|
|
@@ -500,4 +500,4 @@ export {MainComponent as default};</code></pre>
|
|
|
500
500
|
<p>
|
|
501
501
|
We hope this tutorial helped you to get a basic understanding on how to create a first custom component and on how to work with dom listeners!
|
|
502
502
|
</p>
|
|
503
|
-
</article>
|
|
503
|
+
</article>
|
|
@@ -144,7 +144,6 @@ class ConfigurationViewport extends Viewport {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
*
|
|
148
147
|
* @param {Object} data
|
|
149
148
|
*/
|
|
150
149
|
logInstance(data) {
|
|
@@ -152,7 +151,6 @@ class ConfigurationViewport extends Viewport {
|
|
|
152
151
|
}
|
|
153
152
|
|
|
154
153
|
/**
|
|
155
|
-
*
|
|
156
154
|
* @param {String} config
|
|
157
155
|
* @param {Object} opts
|
|
158
156
|
*/
|
|
@@ -161,7 +159,6 @@ class ConfigurationViewport extends Viewport {
|
|
|
161
159
|
}
|
|
162
160
|
|
|
163
161
|
/**
|
|
164
|
-
*
|
|
165
162
|
* @param {String} config
|
|
166
163
|
* @param {String} value
|
|
167
164
|
* @param {Object} opts
|
|
@@ -173,7 +170,6 @@ class ConfigurationViewport extends Viewport {
|
|
|
173
170
|
}
|
|
174
171
|
|
|
175
172
|
/**
|
|
176
|
-
*
|
|
177
173
|
* @param {String} target
|
|
178
174
|
*/
|
|
179
175
|
onSwitchTheme(target) {
|
|
@@ -69,8 +69,8 @@ class MainContainer extends Viewport {
|
|
|
69
69
|
* We want to fetch the CSS without requiring to load the related JS module.
|
|
70
70
|
* @param {Object} config
|
|
71
71
|
*/
|
|
72
|
-
|
|
73
|
-
super(config);
|
|
72
|
+
construct(config) {
|
|
73
|
+
super.construct(config);
|
|
74
74
|
Neo.worker.App.insertThemeFiles(this.appName, null, 'Neo.calendar.view.MainContainer');
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -123,7 +123,6 @@ class CountryGallery extends Gallery {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
127
126
|
* @param {String} name
|
|
128
127
|
* @returns {String} url
|
|
129
128
|
*/
|
|
@@ -189,7 +188,6 @@ class CountryGallery extends Gallery {
|
|
|
189
188
|
}
|
|
190
189
|
|
|
191
190
|
/**
|
|
192
|
-
*
|
|
193
191
|
* @param {String} vnodeId
|
|
194
192
|
* @returns {String} itemId
|
|
195
193
|
*/
|
|
@@ -198,7 +196,6 @@ class CountryGallery extends Gallery {
|
|
|
198
196
|
}
|
|
199
197
|
|
|
200
198
|
/**
|
|
201
|
-
*
|
|
202
199
|
* @param {Array} items
|
|
203
200
|
*/
|
|
204
201
|
onStoreLoad(items) {
|
|
@@ -213,4 +210,4 @@ class CountryGallery extends Gallery {
|
|
|
213
210
|
|
|
214
211
|
Neo.applyClassConfig(CountryGallery);
|
|
215
212
|
|
|
216
|
-
export {CountryGallery as default};
|
|
213
|
+
export {CountryGallery as default};
|
|
@@ -331,11 +331,10 @@ class MainContainer extends Viewport {
|
|
|
331
331
|
}}
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
|
-
*
|
|
335
334
|
* @param {Object} config
|
|
336
335
|
*/
|
|
337
|
-
|
|
338
|
-
super(config);
|
|
336
|
+
construct(config) {
|
|
337
|
+
super.construct(config);
|
|
339
338
|
|
|
340
339
|
const me = this,
|
|
341
340
|
url = 'https://corona.lmao.ninja/v3/covid-19/countries';
|
|
@@ -375,7 +374,6 @@ class MainContainer extends Viewport {
|
|
|
375
374
|
}
|
|
376
375
|
|
|
377
376
|
/**
|
|
378
|
-
*
|
|
379
377
|
* @returns {Neo.data.Store}
|
|
380
378
|
*/
|
|
381
379
|
getStore() {
|
|
@@ -105,7 +105,6 @@ class CountryHelix extends Helix {
|
|
|
105
105
|
}}
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
109
108
|
* @param {Object} vdomItem
|
|
110
109
|
* @param {Object} record
|
|
111
110
|
* @param {Number} index
|
|
@@ -133,7 +132,6 @@ class CountryHelix extends Helix {
|
|
|
133
132
|
}
|
|
134
133
|
|
|
135
134
|
/**
|
|
136
|
-
*
|
|
137
135
|
* @param {String} name
|
|
138
136
|
* @returns {String} url
|
|
139
137
|
*/
|
|
@@ -198,7 +196,6 @@ class CountryHelix extends Helix {
|
|
|
198
196
|
return 'https://raw.githubusercontent.com/neomjs/pages/master/resources/images/flaticon/country_flags/png/' + imageName + '.png'
|
|
199
197
|
}
|
|
200
198
|
/**
|
|
201
|
-
*
|
|
202
199
|
* @returns {String}
|
|
203
200
|
*/
|
|
204
201
|
getCloneTransform() {
|
|
@@ -211,7 +208,6 @@ class CountryHelix extends Helix {
|
|
|
211
208
|
}
|
|
212
209
|
|
|
213
210
|
/**
|
|
214
|
-
*
|
|
215
211
|
* @param {String} vnodeId
|
|
216
212
|
* @returns {String}
|
|
217
213
|
*/
|
|
@@ -406,11 +406,10 @@ class MainContainer extends Viewport {
|
|
|
406
406
|
}}
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
|
-
*
|
|
410
409
|
* @param {Object} config
|
|
411
410
|
*/
|
|
412
|
-
|
|
413
|
-
super(config);
|
|
411
|
+
construct(config) {
|
|
412
|
+
super.construct(config);
|
|
414
413
|
|
|
415
414
|
const me = this,
|
|
416
415
|
url = 'https://corona.lmao.ninja/v3/covid-19/countries';
|
|
@@ -444,7 +443,6 @@ class MainContainer extends Viewport {
|
|
|
444
443
|
}
|
|
445
444
|
|
|
446
445
|
/**
|
|
447
|
-
*
|
|
448
446
|
* @returns {Neo.data.Store}
|
|
449
447
|
*/
|
|
450
448
|
getStore() {
|
|
@@ -218,11 +218,10 @@ class MainContainer extends Viewport {
|
|
|
218
218
|
}}
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
|
-
*
|
|
222
221
|
* @param {Object} config
|
|
223
222
|
*/
|
|
224
|
-
|
|
225
|
-
super(config);
|
|
223
|
+
construct(config) {
|
|
224
|
+
super.construct(config);
|
|
226
225
|
|
|
227
226
|
let me = this;
|
|
228
227
|
|
|
@@ -246,7 +245,6 @@ class MainContainer extends Viewport {
|
|
|
246
245
|
}
|
|
247
246
|
|
|
248
247
|
/**
|
|
249
|
-
*
|
|
250
248
|
* @returns {Neo.data.Store}
|
|
251
249
|
*/
|
|
252
250
|
getStore() {
|
|
@@ -302,11 +302,10 @@ class MainContainer extends Viewport {
|
|
|
302
302
|
}}
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
|
-
*
|
|
306
305
|
* @param {Object} config
|
|
307
306
|
*/
|
|
308
|
-
|
|
309
|
-
super(config);
|
|
307
|
+
construct(config) {
|
|
308
|
+
super.construct(config);
|
|
310
309
|
|
|
311
310
|
let me = this;
|
|
312
311
|
|
|
@@ -330,7 +329,6 @@ class MainContainer extends Viewport {
|
|
|
330
329
|
}
|
|
331
330
|
|
|
332
331
|
/**
|
|
333
|
-
*
|
|
334
332
|
* @returns {Neo.data.Store}
|
|
335
333
|
*/
|
|
336
334
|
getStore() {
|
|
@@ -65,7 +65,6 @@ class MainContainer extends ConfigurationViewport {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
68
|
* @param {Object} data
|
|
70
69
|
*/
|
|
71
70
|
logInstance(data) {
|
|
@@ -73,7 +72,6 @@ class MainContainer extends ConfigurationViewport {
|
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
/**
|
|
76
|
-
*
|
|
77
75
|
* @param {Object} data
|
|
78
76
|
*/
|
|
79
77
|
switchDirection(data) {
|
|
@@ -33,11 +33,10 @@ class MainContainer extends Viewport {
|
|
|
33
33
|
}}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
36
|
* @param {Object} config
|
|
38
37
|
*/
|
|
39
|
-
|
|
40
|
-
super(config);
|
|
38
|
+
construct(config) {
|
|
39
|
+
super.construct(config);
|
|
41
40
|
|
|
42
41
|
let me = this;
|
|
43
42
|
|
|
@@ -75,7 +74,6 @@ class MainContainer extends Viewport {
|
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
/**
|
|
78
|
-
*
|
|
79
77
|
* @param {Object} data
|
|
80
78
|
*/
|
|
81
79
|
changeConfig(data) {
|
|
@@ -124,4 +122,4 @@ class MainContainer extends Viewport {
|
|
|
124
122
|
|
|
125
123
|
Neo.applyClassConfig(MainContainer);
|
|
126
124
|
|
|
127
|
-
export {MainContainer as default};
|
|
125
|
+
export {MainContainer as default};
|
|
@@ -29,11 +29,10 @@ class MainContainer extends Viewport {
|
|
|
29
29
|
}}
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
32
|
* @param {Object} config
|
|
34
33
|
*/
|
|
35
|
-
|
|
36
|
-
super(config);
|
|
34
|
+
construct(config) {
|
|
35
|
+
super.construct(config);
|
|
37
36
|
|
|
38
37
|
let me = this;
|
|
39
38
|
|
|
@@ -62,7 +61,6 @@ class MainContainer extends Viewport {
|
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
/**
|
|
65
|
-
*
|
|
66
64
|
* @param {Object} data
|
|
67
65
|
*/
|
|
68
66
|
createDialog(data) {
|
|
@@ -79,7 +77,6 @@ class MainContainer extends Viewport {
|
|
|
79
77
|
}
|
|
80
78
|
|
|
81
79
|
/**
|
|
82
|
-
*
|
|
83
80
|
* @param {Object} data
|
|
84
81
|
*/
|
|
85
82
|
onDragLimitChange(data) {
|
|
@@ -98,7 +95,6 @@ class MainContainer extends Viewport {
|
|
|
98
95
|
}
|
|
99
96
|
|
|
100
97
|
/**
|
|
101
|
-
*
|
|
102
98
|
* @param {Object} data
|
|
103
99
|
*/
|
|
104
100
|
switchTheme(data) {
|
|
@@ -137,4 +133,4 @@ class MainContainer extends Viewport {
|
|
|
137
133
|
|
|
138
134
|
Neo.applyClassConfig(MainContainer);
|
|
139
135
|
|
|
140
|
-
export {MainContainer as default};
|
|
136
|
+
export {MainContainer 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
|
onAddButtonTextfieldButtonClick(data) {
|
|
@@ -59,7 +58,6 @@ class MainContainerController extends Component {
|
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
/**
|
|
62
|
-
*
|
|
63
61
|
* @param {Object} data
|
|
64
62
|
*/
|
|
65
63
|
onButton1Click(data) {
|
|
@@ -67,7 +65,6 @@ class MainContainerController extends Component {
|
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
/**
|
|
70
|
-
*
|
|
71
68
|
* @param {Object} data
|
|
72
69
|
*/
|
|
73
70
|
onButton2Click(data) {
|
|
@@ -75,7 +72,6 @@ class MainContainerController extends Component {
|
|
|
75
72
|
}
|
|
76
73
|
|
|
77
74
|
/**
|
|
78
|
-
*
|
|
79
75
|
* @param {Object} data
|
|
80
76
|
*/
|
|
81
77
|
onButton3Click(data) {
|
|
@@ -83,7 +79,6 @@ class MainContainerController extends Component {
|
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
/**
|
|
86
|
-
*
|
|
87
82
|
* @param {Object} data
|
|
88
83
|
*/
|
|
89
84
|
onLogChildModelIntoConsoleButtonClick(data) {
|
|
@@ -91,7 +86,6 @@ class MainContainerController extends Component {
|
|
|
91
86
|
}
|
|
92
87
|
|
|
93
88
|
/**
|
|
94
|
-
*
|
|
95
89
|
* @param {Object} data
|
|
96
90
|
*/
|
|
97
91
|
onLogMainModelIntoConsoleButtonClick(data) {
|
|
@@ -99,7 +93,6 @@ class MainContainerController extends Component {
|
|
|
99
93
|
}
|
|
100
94
|
|
|
101
95
|
/**
|
|
102
|
-
*
|
|
103
96
|
* @param {Object} data
|
|
104
97
|
*/
|
|
105
98
|
onTextField1Change(data) {
|
|
@@ -109,7 +102,6 @@ class MainContainerController extends Component {
|
|
|
109
102
|
}
|
|
110
103
|
|
|
111
104
|
/**
|
|
112
|
-
*
|
|
113
105
|
* @param {Object} data
|
|
114
106
|
*/
|
|
115
107
|
onTextField2Change(data) {
|
|
@@ -119,7 +111,6 @@ class MainContainerController extends Component {
|
|
|
119
111
|
}
|
|
120
112
|
|
|
121
113
|
/**
|
|
122
|
-
*
|
|
123
114
|
* @param {Object} data
|
|
124
115
|
*/
|
|
125
116
|
onTextField3Change(data) {
|
|
@@ -129,7 +120,6 @@ class MainContainerController extends Component {
|
|
|
129
120
|
}
|
|
130
121
|
|
|
131
122
|
/**
|
|
132
|
-
*
|
|
133
123
|
* @param {String} value
|
|
134
124
|
*/
|
|
135
125
|
updateButton1Text(value) {
|
|
@@ -138,7 +128,6 @@ class MainContainerController extends Component {
|
|
|
138
128
|
}
|
|
139
129
|
|
|
140
130
|
/**
|
|
141
|
-
*
|
|
142
131
|
* @param {String} value
|
|
143
132
|
*/
|
|
144
133
|
updateButton2Text(value) {
|
|
@@ -148,7 +137,6 @@ class MainContainerController extends Component {
|
|
|
148
137
|
}
|
|
149
138
|
|
|
150
139
|
/**
|
|
151
|
-
*
|
|
152
140
|
* @param {String} value
|
|
153
141
|
*/
|
|
154
142
|
updateButton3Text(value) {
|
|
@@ -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};
|
|
@@ -18,7 +18,6 @@ class MainContainerController extends Component {
|
|
|
18
18
|
}}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
21
|
* @param {Object} data
|
|
23
22
|
*/
|
|
24
23
|
onEditUserButtonClick(data) {
|
|
@@ -48,4 +47,4 @@ class MainContainerController extends Component {
|
|
|
48
47
|
|
|
49
48
|
Neo.applyClassConfig(MainContainerController);
|
|
50
49
|
|
|
51
|
-
export {MainContainerController as default};
|
|
50
|
+
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) {
|
|
@@ -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) {
|
|
@@ -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};
|