neo.mjs 2.3.14 → 2.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/apps/covid/Util.mjs +1 -3
- package/apps/covid/view/GalleryContainer.mjs +0 -1
- package/apps/covid/view/GalleryContainerController.mjs +1 -5
- package/apps/covid/view/HelixContainer.mjs +0 -1
- package/apps/covid/view/HelixContainerController.mjs +1 -4
- package/apps/covid/view/MainContainer.mjs +1 -1
- package/apps/covid/view/MainContainerController.mjs +0 -7
- package/apps/covid/view/MainContainerModel.mjs +0 -1
- package/apps/covid/view/TableContainer.mjs +0 -1
- package/apps/covid/view/TableContainerController.mjs +0 -3
- package/apps/covid/view/WorldMapComponent.mjs +1 -2
- package/apps/covid/view/WorldMapContainerController.mjs +0 -2
- package/apps/covid/view/country/Gallery.mjs +0 -2
- package/apps/covid/view/country/Helix.mjs +0 -3
- package/apps/covid/view/mapboxGl/Container.mjs +1 -1
- package/apps/covid/view/mapboxGl/ContainerController.mjs +1 -6
- package/apps/krausest/TableCollection.mjs +0 -1
- package/apps/krausest/view/MainComponent.mjs +0 -1
- package/apps/krausest/view/MainComponentController.mjs +0 -1
- package/apps/krausest/view/TableComponent.mjs +0 -2
- package/apps/realworld/api/Article.mjs +1 -4
- package/apps/realworld/api/Base.mjs +0 -5
- package/apps/realworld/api/Favorite.mjs +1 -3
- package/apps/realworld/api/Profile.mjs +1 -3
- package/apps/realworld/api/config.mjs +2 -2
- package/apps/realworld/view/HeaderComponent.mjs +1 -2
- package/apps/realworld/view/HomeComponent.mjs +0 -9
- package/apps/realworld/view/MainContainerController.mjs +0 -13
- package/apps/realworld/view/article/CommentComponent.mjs +1 -3
- package/apps/realworld/view/article/Component.mjs +0 -5
- package/apps/realworld/view/article/CreateCommentComponent.mjs +1 -5
- package/apps/realworld/view/article/PreviewComponent.mjs +1 -3
- package/apps/realworld/view/article/TagListComponent.mjs +1 -5
- package/apps/realworld/view/user/ProfileComponent.mjs +0 -6
- package/apps/realworld/view/user/SettingsComponent.mjs +1 -5
- package/apps/realworld/view/user/SignUpComponent.mjs +0 -1
- package/apps/realworld2/api/Article.mjs +1 -4
- package/apps/realworld2/api/Base.mjs +0 -5
- package/apps/realworld2/api/Favorite.mjs +1 -3
- package/apps/realworld2/api/Profile.mjs +1 -3
- package/apps/realworld2/view/HeaderToolbarController.mjs +1 -2
- package/apps/realworld2/view/HomeContainer.mjs +1 -2
- package/apps/realworld2/view/MainContainerController.mjs +1 -14
- package/apps/realworld2/view/article/Gallery.mjs +1 -3
- package/apps/realworld2/view/article/GalleryContainer.mjs +1 -2
- package/apps/realworld2/view/article/Helix.mjs +1 -3
- package/apps/realworld2/view/article/HelixContainer.mjs +1 -3
- package/apps/realworld2/view/article/PreviewComponent.mjs +1 -3
- package/apps/realworld2/view/article/TagListComponent.mjs +1 -5
- package/apps/realworld2/view/user/LoginFormContainer.mjs +1 -2
- package/apps/sharedcovid/Util.mjs +1 -3
- package/apps/sharedcovid/view/GalleryContainer.mjs +0 -1
- package/apps/sharedcovid/view/GalleryContainerController.mjs +1 -5
- package/apps/sharedcovid/view/HelixContainer.mjs +0 -1
- package/apps/sharedcovid/view/HelixContainerController.mjs +1 -4
- package/apps/sharedcovid/view/MainContainer.mjs +1 -1
- package/apps/sharedcovid/view/MainContainerModel.mjs +0 -1
- package/apps/sharedcovid/view/TableContainer.mjs +0 -1
- package/apps/sharedcovid/view/TableContainerController.mjs +0 -3
- package/apps/sharedcovid/view/WorldMapComponent.mjs +1 -2
- package/apps/sharedcovid/view/WorldMapContainerController.mjs +0 -2
- package/apps/sharedcovid/view/country/Gallery.mjs +0 -2
- package/apps/sharedcovid/view/country/Helix.mjs +0 -3
- package/apps/sharedcovid/view/mapboxGl/Container.mjs +0 -1
- package/apps/sharedcovid/view/mapboxGl/ContainerController.mjs +1 -5
- package/apps/shareddialog/view/MainContainerController.mjs +0 -18
- package/apps/shareddialog2/view/MainContainerController.mjs +1 -2
- package/apps/website/data/blog.json +16 -3
- package/apps/website/data/examples_devmode.json +18 -18
- package/apps/website/view/MainContainerController.mjs +0 -4
- package/buildScripts/webpack/development/webpack.config.main.js +2 -1
- package/buildScripts/webpack/production/webpack.config.main.js +2 -1
- package/examples/ConfigurationViewport.mjs +0 -4
- package/examples/calendar/basic/MainContainerController.mjs +0 -1
- package/examples/component/coronaGallery/CountryGallery.mjs +1 -4
- package/examples/component/coronaGallery/MainContainer.mjs +0 -2
- package/examples/component/coronaHelix/CountryHelix.mjs +0 -4
- package/examples/component/coronaHelix/MainContainer.mjs +0 -2
- package/examples/component/gallery/MainContainer.mjs +0 -2
- package/examples/component/helix/MainContainer.mjs +0 -2
- package/examples/component/splitter/MainContainer.mjs +0 -2
- package/examples/core/config/MainContainer.mjs +1 -3
- package/examples/dialog/MainContainer.mjs +1 -5
- package/examples/list/animate/List.mjs +50 -0
- package/examples/list/animate/MainContainer.mjs +79 -0
- package/examples/list/animate/MainModel.mjs +33 -0
- package/examples/list/animate/MainStore.mjs +31 -0
- package/examples/list/animate/app.mjs +8 -0
- package/examples/list/animate/index.html +11 -0
- package/examples/list/animate/neo-config.json +7 -0
- package/examples/list/base/neo-config.json +1 -1
- package/examples/model/advanced/MainContainerController.mjs +0 -12
- package/examples/model/dialog/EditUserDialogController.mjs +1 -3
- package/examples/model/dialog/MainContainerController.mjs +1 -2
- package/examples/model/extendedClass/MainContainerController.mjs +0 -7
- package/examples/model/inline/MainContainerController.mjs +0 -7
- package/examples/model/inlineNoModel/MainContainerController.mjs +1 -6
- package/examples/model/multiWindow/EditUserDialogController.mjs +1 -3
- package/examples/model/multiWindow/MainContainerController.mjs +1 -3
- package/examples/model/multiWindow/ViewportController.mjs +1 -3
- package/examples/model/nestedData/MainContainerController.mjs +1 -8
- package/examples/tab/container/MainContainer.mjs +1 -6
- package/examples/todoList/version2/TodoList.mjs +1 -1
- package/examples/tree/MainContainer.mjs +0 -2
- package/package.json +11 -11
- package/resources/scss/src/examples/list/animate/List.scss +30 -0
- package/src/Main.mjs +7 -16
- package/src/Neo.mjs +1 -4
- package/src/button/Menu.mjs +0 -1
- package/src/button/Split.mjs +0 -4
- package/src/calendar/store/Events.mjs +0 -1
- package/src/calendar/view/DayComponent.mjs +0 -1
- package/src/calendar/view/EditEventContainer.mjs +0 -7
- package/src/calendar/view/MainContainer.mjs +0 -15
- package/src/calendar/view/MainContainerModel.mjs +0 -2
- package/src/calendar/view/SettingsContainer.mjs +0 -4
- package/src/calendar/view/YearComponent.mjs +0 -9
- package/src/calendar/view/calendars/Container.mjs +0 -1
- package/src/calendar/view/calendars/EditContainer.mjs +0 -5
- package/src/calendar/view/calendars/List.mjs +0 -5
- package/src/calendar/view/month/Component.mjs +0 -12
- package/src/calendar/view/settings/GeneralContainer.mjs +0 -3
- package/src/calendar/view/settings/MonthContainer.mjs +0 -3
- package/src/calendar/view/settings/WeekContainer.mjs +0 -5
- package/src/calendar/view/settings/YearContainer.mjs +0 -3
- package/src/calendar/view/week/Component.mjs +0 -16
- package/src/calendar/view/week/EventDragZone.mjs +0 -3
- package/src/calendar/view/week/TimeAxisComponent.mjs +0 -1
- package/src/calendar/view/week/plugin/DragDrop.mjs +0 -10
- package/src/calendar/view/week/plugin/EventResizable.mjs +0 -3
- package/src/collection/Base.mjs +8 -24
- package/src/collection/Filter.mjs +0 -1
- package/src/collection/Sorter.mjs +0 -3
- package/src/component/Base.mjs +1 -3
- package/src/component/Chip.mjs +0 -2
- package/src/component/Circle.mjs +0 -18
- package/src/component/DateSelector.mjs +0 -13
- package/src/component/Gallery.mjs +0 -12
- package/src/component/Helix.mjs +0 -14
- package/src/component/Splitter.mjs +0 -3
- package/src/component/mwc/TextField.mjs +0 -1
- package/src/component/wrapper/AmChart.mjs +1 -1
- package/src/component/wrapper/MapboxGL.mjs +0 -5
- package/src/container/Base.mjs +1 -7
- package/src/container/Panel.mjs +0 -3
- package/src/controller/Application.mjs +0 -1
- package/src/controller/Base.mjs +0 -1
- package/src/controller/Component.mjs +1 -4
- package/src/core/Base.mjs +2 -3
- package/src/core/Compare.mjs +0 -1
- package/src/core/IdGenerator.mjs +1 -3
- package/src/core/Observable.mjs +0 -3
- package/src/core/Util.mjs +0 -1
- package/src/core/_export.mjs +1 -2
- package/src/data/RecordFactory.mjs +1 -6
- package/src/data/Store.mjs +0 -10
- package/src/data/connection/Xhr.mjs +0 -6
- package/src/dialog/Base.mjs +0 -10
- package/src/draggable/DragProxyComponent.mjs +1 -3
- package/src/draggable/DragZone.mjs +0 -6
- package/src/draggable/DropZone.mjs +1 -7
- package/src/draggable/list/DragZone.mjs +1 -7
- package/src/draggable/tab/header/toolbar/SortZone.mjs +1 -3
- package/src/draggable/toolbar/DragZone.mjs +1 -5
- package/src/draggable/toolbar/SortZone.mjs +0 -5
- package/src/draggable/tree/DragZone.mjs +1 -4
- package/src/filter/BooleanContainer.mjs +0 -1
- package/src/filter/NumberContainer.mjs +0 -2
- package/src/filter/ToggleOperatorsButton.mjs +1 -3
- package/src/form/Container.mjs +0 -2
- package/src/form/Fieldset.mjs +0 -1
- package/src/form/field/Base.mjs +0 -2
- package/src/form/field/CheckBox.mjs +0 -5
- package/src/form/field/Color.mjs +0 -3
- package/src/form/field/Date.mjs +0 -4
- package/src/form/field/Display.mjs +0 -1
- package/src/form/field/Picker.mjs +0 -9
- package/src/form/field/Range.mjs +0 -1
- package/src/form/field/Select.mjs +22 -20
- package/src/form/field/Text.mjs +0 -15
- package/src/form/field/Time.mjs +0 -7
- package/src/form/field/trigger/Base.mjs +0 -2
- package/src/form/field/trigger/Clear.mjs +0 -3
- package/src/form/field/trigger/CopyToClipboard.mjs +0 -3
- package/src/form/field/trigger/Picker.mjs +0 -1
- package/src/form/field/trigger/SpinDown.mjs +0 -1
- package/src/form/field/trigger/SpinUp.mjs +0 -1
- package/src/form/field/trigger/SpinUpDown.mjs +0 -1
- package/src/form/field/trigger/Time.mjs +0 -1
- package/src/grid/Container.mjs +1 -4
- package/src/grid/header/Toolbar.mjs +1 -5
- package/src/list/Base.mjs +39 -8
- package/src/list/Color.mjs +0 -3
- package/src/list/Component.mjs +0 -3
- package/src/list/plugin/Animate.mjs +176 -0
- package/src/main/DomAccess.mjs +7 -22
- package/src/main/DomEvents.mjs +42 -75
- package/src/main/addon/AmCharts.mjs +1 -10
- package/src/main/addon/AnalyticsByGoogle.mjs +1 -2
- package/src/main/addon/CloneNode.mjs +0 -2
- package/src/main/addon/Cookie.mjs +0 -3
- package/src/main/addon/DragDrop.mjs +0 -9
- package/src/main/addon/HighlightJS.mjs +1 -5
- package/src/main/addon/MapboxGL.mjs +1 -14
- package/src/main/addon/Mwc.mjs +0 -2
- package/src/main/addon/Siesta.mjs +0 -1
- package/src/main/addon/Stylesheet.mjs +0 -4
- package/src/main/addon/WindowPosition.mjs +1 -6
- package/src/main/draggable/sensor/Mouse.mjs +0 -4
- package/src/main/draggable/sensor/Touch.mjs +0 -4
- package/src/main/mixin/DeltaUpdates.mjs +0 -8
- package/src/main/mixin/TouchDomEvents.mjs +1 -7
- package/src/manager/Base.mjs +0 -2
- package/src/manager/Component.mjs +0 -3
- package/src/manager/DomEvent.mjs +1 -6
- package/src/manager/Focus.mjs +0 -7
- package/src/manager/Instance.mjs +0 -1
- package/src/manager/Store.mjs +0 -4
- package/src/menu/List.mjs +0 -6
- package/src/model/Component.mjs +3 -15
- package/src/plugin/Base.mjs +0 -1
- package/src/plugin/Resizable.mjs +0 -8
- package/src/selection/CircleModel.mjs +1 -5
- package/src/selection/DateSelectorModel.mjs +1 -9
- package/src/selection/GalleryModel.mjs +0 -9
- package/src/selection/HelixModel.mjs +0 -9
- package/src/selection/ListModel.mjs +0 -8
- package/src/selection/Model.mjs +0 -8
- package/src/selection/menu/ListModel.mjs +0 -2
- package/src/selection/table/CellColumnModel.mjs +0 -4
- package/src/selection/table/CellColumnRowModel.mjs +0 -4
- package/src/selection/table/CellModel.mjs +0 -8
- package/src/selection/table/CellRowModel.mjs +0 -6
- package/src/selection/table/ColumnModel.mjs +0 -6
- package/src/selection/table/RowModel.mjs +0 -5
- package/src/tab/Container.mjs +0 -6
- package/src/tab/header/Button.mjs +1 -2
- package/src/tab/header/Toolbar.mjs +0 -1
- package/src/table/Container.mjs +0 -8
- package/src/table/View.mjs +0 -4
- package/src/table/header/Button.mjs +0 -6
- package/src/table/header/Toolbar.mjs +1 -2
- package/src/tree/List.mjs +0 -4
- package/src/util/Css.mjs +0 -1
- package/src/util/Date.mjs +0 -2
- package/src/util/Function.mjs +0 -2
- package/src/util/HashHistory.mjs +0 -3
- package/src/util/KeyNavigation.mjs +0 -5
- package/src/{core → util}/Logger.mjs +5 -17
- package/src/util/Matrix.mjs +0 -3
- package/src/util/VDom.mjs +0 -5
- package/src/util/_export.mjs +2 -1
- package/src/vdom/Helper.mjs +0 -3
- package/src/vdom/VNode.mjs +0 -1
- package/src/worker/App.mjs +0 -7
- package/src/worker/Base.mjs +0 -6
- package/src/worker/Canvas.mjs +0 -2
- package/src/worker/Manager.mjs +1 -3
- package/src/worker/Message.mjs +0 -1
- package/src/worker/mixin/RemoteMethodAccess.mjs +0 -3
|
@@ -35,7 +35,6 @@ class MainContainerController extends ComponentController {
|
|
|
35
35
|
}}
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
38
|
* @param {Number} tabIndex
|
|
40
39
|
* @returns {Neo.component.Base}
|
|
41
40
|
*/
|
|
@@ -67,7 +66,6 @@ class MainContainerController extends ComponentController {
|
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
/**
|
|
70
|
-
*
|
|
71
69
|
* @param {Object} value
|
|
72
70
|
* @param {Object} oldValue
|
|
73
71
|
*/
|
|
@@ -145,7 +143,6 @@ class MainContainerController extends ComponentController {
|
|
|
145
143
|
}
|
|
146
144
|
|
|
147
145
|
/**
|
|
148
|
-
*
|
|
149
146
|
* @param {Object} data
|
|
150
147
|
*/
|
|
151
148
|
onNavLinkClick(data) {
|
|
@@ -175,7 +172,6 @@ class MainContainerController extends ComponentController {
|
|
|
175
172
|
}
|
|
176
173
|
|
|
177
174
|
/**
|
|
178
|
-
*
|
|
179
175
|
* @param {Object} data
|
|
180
176
|
*/
|
|
181
177
|
onSearchFieldChange(data) {
|
|
@@ -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) {
|
|
@@ -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,7 +331,6 @@ class MainContainer extends Viewport {
|
|
|
331
331
|
}}
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
|
-
*
|
|
335
334
|
* @param {Object} config
|
|
336
335
|
*/
|
|
337
336
|
constructor(config) {
|
|
@@ -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,7 +406,6 @@ class MainContainer extends Viewport {
|
|
|
406
406
|
}}
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
|
-
*
|
|
410
409
|
* @param {Object} config
|
|
411
410
|
*/
|
|
412
411
|
constructor(config) {
|
|
@@ -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,7 +218,6 @@ class MainContainer extends Viewport {
|
|
|
218
218
|
}}
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
|
-
*
|
|
222
221
|
* @param {Object} config
|
|
223
222
|
*/
|
|
224
223
|
constructor(config) {
|
|
@@ -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,7 +302,6 @@ class MainContainer extends Viewport {
|
|
|
302
302
|
}}
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
|
-
*
|
|
306
305
|
* @param {Object} config
|
|
307
306
|
*/
|
|
308
307
|
constructor(config) {
|
|
@@ -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,7 +33,6 @@ class MainContainer extends Viewport {
|
|
|
33
33
|
}}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
36
|
* @param {Object} config
|
|
38
37
|
*/
|
|
39
38
|
constructor(config) {
|
|
@@ -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,7 +29,6 @@ class MainContainer extends Viewport {
|
|
|
29
29
|
}}
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
32
|
* @param {Object} config
|
|
34
33
|
*/
|
|
35
34
|
constructor(config) {
|
|
@@ -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};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import BaseList from '../../../src/list/Base.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @class Neo.examples.list.animate.List
|
|
5
|
+
* @extends Neo.list.Base
|
|
6
|
+
*/
|
|
7
|
+
class List extends BaseList {
|
|
8
|
+
static getConfig() {return {
|
|
9
|
+
/**
|
|
10
|
+
* @member {String} className='Neo.examples.list.animate.List'
|
|
11
|
+
* @protected
|
|
12
|
+
*/
|
|
13
|
+
className: 'Neo.examples.list.animate.List',
|
|
14
|
+
/**
|
|
15
|
+
* @member {Boolean} animate=true
|
|
16
|
+
*/
|
|
17
|
+
animate: true,
|
|
18
|
+
/**
|
|
19
|
+
* @member {String[]} cls=['neo-examples-list-animate','neo-list-container','neo-list']
|
|
20
|
+
*/
|
|
21
|
+
cls: ['neo-examples-list-animate', 'neo-list-container', 'neo-list'],
|
|
22
|
+
/**
|
|
23
|
+
* @member {String} itemTagName='div'
|
|
24
|
+
*/
|
|
25
|
+
itemTagName: 'div'
|
|
26
|
+
}}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Override this method for custom renderers
|
|
30
|
+
* @param {Object} record
|
|
31
|
+
* @param {Number} index
|
|
32
|
+
* @returns {Object|Object[]|String} Either a config object to assign to the item, a vdom cn array or a html string
|
|
33
|
+
*/
|
|
34
|
+
createItemContent(record, index) {
|
|
35
|
+
return [
|
|
36
|
+
{cls: ['neo-list-item-content'], cn: [
|
|
37
|
+
{tag: 'img', src: `../../../resources/examples/${record.image}`},
|
|
38
|
+
{cls: ['neo-list-item-text'], cn: [
|
|
39
|
+
{html: record.firstname},
|
|
40
|
+
{cls: ['neo-lastname'], html: record.lastname},
|
|
41
|
+
{cls: ['neo-is-online'], removeDom: !record.isOnline}
|
|
42
|
+
]}
|
|
43
|
+
]}
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
Neo.applyClassConfig(List);
|
|
49
|
+
|
|
50
|
+
export {List as default};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import CheckBox from '../../../src/form/field/CheckBox.mjs';
|
|
2
|
+
import List from './List.mjs';
|
|
3
|
+
import MainStore from './MainStore.mjs';
|
|
4
|
+
import Toolbar from '../../../src/container/Toolbar.mjs';
|
|
5
|
+
import Viewport from '../../../src/container/Viewport.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @class Neo.examples.list.animate.MainContainer
|
|
9
|
+
* @extends Neo.container.Viewport
|
|
10
|
+
*/
|
|
11
|
+
class MainContainer extends Viewport {
|
|
12
|
+
static getConfig() {return {
|
|
13
|
+
className: 'Neo.examples.list.animate.MainContainer',
|
|
14
|
+
autoMount: true,
|
|
15
|
+
layout : {ntype: 'vbox', align: 'stretch'}
|
|
16
|
+
}}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @param {Object} config
|
|
20
|
+
*/
|
|
21
|
+
constructor(config) {
|
|
22
|
+
super(config);
|
|
23
|
+
|
|
24
|
+
let me = this;
|
|
25
|
+
|
|
26
|
+
me.items = [{
|
|
27
|
+
module: Toolbar,
|
|
28
|
+
flex : 'none',
|
|
29
|
+
|
|
30
|
+
itemDefaults: {
|
|
31
|
+
ntype: 'button',
|
|
32
|
+
style: {marginRight: '.5em'}
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
items : [{
|
|
36
|
+
ntype: 'label',
|
|
37
|
+
text : 'Sort by'
|
|
38
|
+
}, {
|
|
39
|
+
handler: me.changeSorting.bind(me, 'firstname'),
|
|
40
|
+
text : 'Firstname'
|
|
41
|
+
}, {
|
|
42
|
+
handler: me.changeSorting.bind(me, 'lastname'),
|
|
43
|
+
text : 'Lastname'
|
|
44
|
+
}, {
|
|
45
|
+
module : CheckBox,
|
|
46
|
+
labelText : 'Is online',
|
|
47
|
+
labelWidth: 70,
|
|
48
|
+
listeners : {change: me.changeIsOnlineFilter.bind(me)},
|
|
49
|
+
style : {marginLeft: '50px'}
|
|
50
|
+
}]
|
|
51
|
+
}, {
|
|
52
|
+
module: List,
|
|
53
|
+
store : MainStore
|
|
54
|
+
}];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @param {Object} data
|
|
59
|
+
*/
|
|
60
|
+
changeIsOnlineFilter(data) {
|
|
61
|
+
let store = this.down({module: List}).store;
|
|
62
|
+
|
|
63
|
+
store.getFilter('isOnline').disabled = !data.value;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @param {String} field
|
|
68
|
+
* @param {Object} data
|
|
69
|
+
*/
|
|
70
|
+
changeSorting(field, data) {
|
|
71
|
+
let store = this.down({module: List}).store;
|
|
72
|
+
|
|
73
|
+
store.sorters[0].property = field;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
Neo.applyClassConfig(MainContainer);
|
|
78
|
+
|
|
79
|
+
export {MainContainer as default};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import Model from '../../../src/data/Model.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @class Neo.examples.list.animate.MainModel
|
|
5
|
+
* @extends Neo.data.Model
|
|
6
|
+
*/
|
|
7
|
+
class MainModel extends Model {
|
|
8
|
+
static getConfig() {return {
|
|
9
|
+
className : 'Neo.examples.list.animate.MainModel',
|
|
10
|
+
keyProperty: 'id',
|
|
11
|
+
|
|
12
|
+
fields: [{
|
|
13
|
+
name: 'firstname',
|
|
14
|
+
type: 'String'
|
|
15
|
+
}, {
|
|
16
|
+
name: 'id',
|
|
17
|
+
type: 'Integer'
|
|
18
|
+
}, {
|
|
19
|
+
name: 'image',
|
|
20
|
+
type: 'String'
|
|
21
|
+
}, {
|
|
22
|
+
name: 'isOnline',
|
|
23
|
+
type: 'Boolean'
|
|
24
|
+
}, {
|
|
25
|
+
name: 'lastname',
|
|
26
|
+
type: 'String'
|
|
27
|
+
}]
|
|
28
|
+
}}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
Neo.applyClassConfig(MainModel);
|
|
32
|
+
|
|
33
|
+
export {MainModel as default};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import MainModel from './MainModel.mjs';
|
|
2
|
+
import Store from '../../../src/data/Store.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @class Neo.examples.list.animate.MainStore
|
|
6
|
+
* @extends Neo.data.Store
|
|
7
|
+
*/
|
|
8
|
+
class MainStore extends Store {
|
|
9
|
+
static getConfig() {return {
|
|
10
|
+
className : 'Neo.examples.list.animate.MainStore',
|
|
11
|
+
autoLoad : true,
|
|
12
|
+
keyProperty: 'id',
|
|
13
|
+
model : MainModel,
|
|
14
|
+
url : '../../resources/examples/data/circleContacts.json',
|
|
15
|
+
|
|
16
|
+
filters: [{
|
|
17
|
+
disabled : true,
|
|
18
|
+
property : 'isOnline',
|
|
19
|
+
value : true
|
|
20
|
+
}],
|
|
21
|
+
|
|
22
|
+
sorters: [{
|
|
23
|
+
property : 'firstname',
|
|
24
|
+
direction: 'ASC'
|
|
25
|
+
}]
|
|
26
|
+
}}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
Neo.applyClassConfig(MainStore);
|
|
30
|
+
|
|
31
|
+
export {MainStore as default};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!DOCTYPE HTML>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<title>Neo AnimatedList</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<script src="../../../src/MicroLoader.mjs" type="module"></script>
|
|
10
|
+
</body>
|
|
11
|
+
</html>
|
|
@@ -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};
|