neo.mjs 2.3.15 → 2.3.19
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 +11 -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/view/MainContainerController.mjs +0 -4
- package/buildScripts/webpack/development/webpack.config.main.js +2 -1
- package/buildScripts/webpack/production/webpack.config.main.js +2 -1
- package/examples/ConfigurationViewport.mjs +0 -4
- package/examples/calendar/basic/MainContainerController.mjs +0 -1
- package/examples/component/coronaGallery/CountryGallery.mjs +1 -4
- package/examples/component/coronaGallery/MainContainer.mjs +0 -2
- package/examples/component/coronaHelix/CountryHelix.mjs +0 -4
- package/examples/component/coronaHelix/MainContainer.mjs +0 -2
- package/examples/component/gallery/MainContainer.mjs +0 -2
- package/examples/component/helix/MainContainer.mjs +0 -2
- package/examples/component/splitter/MainContainer.mjs +0 -2
- package/examples/core/config/MainContainer.mjs +1 -3
- package/examples/dialog/MainContainer.mjs +1 -5
- package/examples/list/animate/List.mjs +50 -0
- package/examples/list/animate/MainContainer.mjs +79 -0
- package/examples/list/animate/MainModel.mjs +33 -0
- package/examples/list/animate/MainStore.mjs +31 -0
- package/examples/list/animate/app.mjs +8 -0
- package/examples/list/animate/index.html +11 -0
- package/examples/list/animate/neo-config.json +7 -0
- package/examples/list/base/neo-config.json +1 -1
- package/examples/model/advanced/MainContainerController.mjs +0 -12
- package/examples/model/dialog/EditUserDialogController.mjs +1 -3
- package/examples/model/dialog/MainContainerController.mjs +1 -2
- package/examples/model/extendedClass/MainContainerController.mjs +0 -7
- package/examples/model/inline/MainContainerController.mjs +0 -7
- package/examples/model/inlineNoModel/MainContainerController.mjs +1 -6
- package/examples/model/multiWindow/EditUserDialogController.mjs +1 -3
- package/examples/model/multiWindow/MainContainerController.mjs +1 -3
- package/examples/model/multiWindow/ViewportController.mjs +1 -3
- package/examples/model/nestedData/MainContainerController.mjs +1 -8
- package/examples/tab/container/MainContainer.mjs +1 -6
- package/examples/todoList/version2/TodoList.mjs +1 -1
- package/examples/tree/MainContainer.mjs +0 -2
- package/package.json +11 -11
- package/resources/scss/src/examples/list/animate/List.scss +30 -0
- package/src/Main.mjs +7 -16
- package/src/Neo.mjs +1 -4
- package/src/button/Menu.mjs +0 -1
- package/src/button/Split.mjs +0 -4
- package/src/calendar/store/Events.mjs +0 -1
- package/src/calendar/view/DayComponent.mjs +0 -1
- package/src/calendar/view/EditEventContainer.mjs +0 -7
- package/src/calendar/view/MainContainer.mjs +0 -15
- package/src/calendar/view/MainContainerModel.mjs +0 -2
- package/src/calendar/view/SettingsContainer.mjs +0 -4
- package/src/calendar/view/YearComponent.mjs +0 -9
- package/src/calendar/view/calendars/Container.mjs +0 -1
- package/src/calendar/view/calendars/EditContainer.mjs +0 -5
- package/src/calendar/view/calendars/List.mjs +0 -5
- package/src/calendar/view/month/Component.mjs +0 -12
- package/src/calendar/view/settings/GeneralContainer.mjs +0 -3
- package/src/calendar/view/settings/MonthContainer.mjs +0 -3
- package/src/calendar/view/settings/WeekContainer.mjs +0 -5
- package/src/calendar/view/settings/YearContainer.mjs +0 -3
- package/src/calendar/view/week/Component.mjs +0 -16
- package/src/calendar/view/week/EventDragZone.mjs +0 -3
- package/src/calendar/view/week/TimeAxisComponent.mjs +0 -1
- package/src/calendar/view/week/plugin/DragDrop.mjs +0 -10
- package/src/calendar/view/week/plugin/EventResizable.mjs +0 -3
- package/src/collection/Base.mjs +8 -24
- package/src/collection/Filter.mjs +0 -1
- package/src/collection/Sorter.mjs +0 -3
- package/src/component/Base.mjs +1 -3
- package/src/component/Chip.mjs +0 -2
- package/src/component/Circle.mjs +0 -18
- package/src/component/DateSelector.mjs +0 -13
- package/src/component/Gallery.mjs +0 -12
- package/src/component/Helix.mjs +0 -14
- package/src/component/Splitter.mjs +0 -3
- package/src/component/mwc/TextField.mjs +0 -1
- package/src/component/wrapper/AmChart.mjs +1 -1
- package/src/component/wrapper/MapboxGL.mjs +0 -5
- package/src/container/Base.mjs +1 -7
- package/src/container/Panel.mjs +0 -3
- package/src/controller/Application.mjs +0 -1
- package/src/controller/Base.mjs +0 -1
- package/src/controller/Component.mjs +1 -4
- package/src/core/Base.mjs +2 -3
- package/src/core/Compare.mjs +0 -1
- package/src/core/IdGenerator.mjs +1 -3
- package/src/core/Observable.mjs +0 -3
- package/src/core/Util.mjs +0 -1
- package/src/core/_export.mjs +1 -2
- package/src/data/RecordFactory.mjs +1 -6
- package/src/data/Store.mjs +0 -10
- package/src/data/connection/Xhr.mjs +0 -6
- package/src/dialog/Base.mjs +0 -10
- package/src/draggable/DragProxyComponent.mjs +1 -3
- package/src/draggable/DragZone.mjs +0 -6
- package/src/draggable/DropZone.mjs +1 -7
- package/src/draggable/list/DragZone.mjs +1 -7
- package/src/draggable/tab/header/toolbar/SortZone.mjs +1 -3
- package/src/draggable/toolbar/DragZone.mjs +1 -5
- package/src/draggable/toolbar/SortZone.mjs +0 -5
- package/src/draggable/tree/DragZone.mjs +1 -4
- package/src/filter/BooleanContainer.mjs +0 -1
- package/src/filter/NumberContainer.mjs +0 -2
- package/src/filter/ToggleOperatorsButton.mjs +1 -3
- package/src/form/Container.mjs +0 -2
- package/src/form/Fieldset.mjs +0 -1
- package/src/form/field/Base.mjs +0 -2
- package/src/form/field/CheckBox.mjs +0 -5
- package/src/form/field/Color.mjs +0 -3
- package/src/form/field/Date.mjs +0 -4
- package/src/form/field/Display.mjs +0 -1
- package/src/form/field/Picker.mjs +0 -9
- package/src/form/field/Range.mjs +0 -1
- package/src/form/field/Select.mjs +22 -20
- package/src/form/field/Text.mjs +0 -15
- package/src/form/field/Time.mjs +0 -7
- package/src/form/field/trigger/Base.mjs +0 -2
- package/src/form/field/trigger/Clear.mjs +0 -3
- package/src/form/field/trigger/CopyToClipboard.mjs +0 -3
- package/src/form/field/trigger/Picker.mjs +0 -1
- package/src/form/field/trigger/SpinDown.mjs +0 -1
- package/src/form/field/trigger/SpinUp.mjs +0 -1
- package/src/form/field/trigger/SpinUpDown.mjs +0 -1
- package/src/form/field/trigger/Time.mjs +0 -1
- package/src/grid/Container.mjs +1 -4
- package/src/grid/header/Toolbar.mjs +1 -5
- package/src/list/Base.mjs +39 -8
- package/src/list/Color.mjs +0 -3
- package/src/list/Component.mjs +0 -3
- package/src/list/plugin/Animate.mjs +176 -0
- package/src/main/DomAccess.mjs +7 -22
- package/src/main/DomEvents.mjs +42 -75
- package/src/main/addon/AmCharts.mjs +1 -10
- package/src/main/addon/AnalyticsByGoogle.mjs +1 -2
- package/src/main/addon/CloneNode.mjs +0 -2
- package/src/main/addon/Cookie.mjs +0 -3
- package/src/main/addon/DragDrop.mjs +0 -9
- package/src/main/addon/HighlightJS.mjs +1 -5
- package/src/main/addon/MapboxGL.mjs +1 -14
- package/src/main/addon/Mwc.mjs +0 -2
- package/src/main/addon/Siesta.mjs +0 -1
- package/src/main/addon/Stylesheet.mjs +0 -4
- package/src/main/addon/WindowPosition.mjs +1 -6
- package/src/main/draggable/sensor/Mouse.mjs +0 -4
- package/src/main/draggable/sensor/Touch.mjs +0 -4
- package/src/main/mixin/DeltaUpdates.mjs +0 -8
- package/src/main/mixin/TouchDomEvents.mjs +1 -7
- package/src/manager/Base.mjs +0 -2
- package/src/manager/Component.mjs +0 -3
- package/src/manager/DomEvent.mjs +1 -6
- package/src/manager/Focus.mjs +0 -7
- package/src/manager/Instance.mjs +0 -1
- package/src/manager/Store.mjs +0 -4
- package/src/menu/List.mjs +0 -6
- package/src/model/Component.mjs +3 -15
- package/src/plugin/Base.mjs +0 -1
- package/src/plugin/Resizable.mjs +0 -8
- package/src/selection/CircleModel.mjs +1 -5
- package/src/selection/DateSelectorModel.mjs +1 -9
- package/src/selection/GalleryModel.mjs +0 -9
- package/src/selection/HelixModel.mjs +0 -9
- package/src/selection/ListModel.mjs +0 -8
- package/src/selection/Model.mjs +0 -8
- package/src/selection/menu/ListModel.mjs +0 -2
- package/src/selection/table/CellColumnModel.mjs +0 -4
- package/src/selection/table/CellColumnRowModel.mjs +0 -4
- package/src/selection/table/CellModel.mjs +0 -8
- package/src/selection/table/CellRowModel.mjs +0 -6
- package/src/selection/table/ColumnModel.mjs +0 -6
- package/src/selection/table/RowModel.mjs +0 -5
- package/src/tab/Container.mjs +0 -6
- package/src/tab/header/Button.mjs +1 -2
- package/src/tab/header/Toolbar.mjs +0 -1
- package/src/table/Container.mjs +0 -8
- package/src/table/View.mjs +0 -4
- package/src/table/header/Button.mjs +0 -6
- package/src/table/header/Toolbar.mjs +1 -2
- package/src/tree/List.mjs +0 -4
- package/src/util/Css.mjs +0 -1
- package/src/util/Date.mjs +0 -2
- package/src/util/Function.mjs +0 -2
- package/src/util/HashHistory.mjs +0 -3
- package/src/util/KeyNavigation.mjs +0 -5
- package/src/{core → util}/Logger.mjs +5 -17
- package/src/util/Matrix.mjs +0 -3
- package/src/util/VDom.mjs +0 -5
- package/src/util/_export.mjs +2 -1
- package/src/vdom/Helper.mjs +0 -3
- package/src/vdom/VNode.mjs +0 -1
- package/src/worker/App.mjs +0 -7
- package/src/worker/Base.mjs +0 -6
- package/src/worker/Canvas.mjs +0 -2
- package/src/worker/Manager.mjs +1 -3
- package/src/worker/Message.mjs +0 -1
- package/src/worker/mixin/RemoteMethodAccess.mjs +0 -3
- package/test/siesta/siesta.js +2 -1
- package/test/siesta/tests/ClassConfigsAndFields.mjs +69 -0
- package/test/siesta/tests/ClassSystem.mjs +1 -1
|
@@ -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};
|
|
@@ -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};
|
|
@@ -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};
|
|
@@ -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};
|