neo.mjs 2.3.17 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/apps/covid/Util.mjs +1 -3
- package/apps/covid/view/GalleryContainer.mjs +2 -3
- package/apps/covid/view/GalleryContainerController.mjs +1 -5
- package/apps/covid/view/HelixContainer.mjs +2 -3
- package/apps/covid/view/HelixContainerController.mjs +1 -4
- package/apps/covid/view/MainContainerController.mjs +0 -7
- package/apps/covid/view/MainContainerModel.mjs +0 -1
- package/apps/covid/view/TableContainer.mjs +2 -3
- package/apps/covid/view/TableContainerController.mjs +0 -3
- package/apps/covid/view/WorldMapComponent.mjs +1 -2
- package/apps/covid/view/WorldMapContainerController.mjs +0 -2
- package/apps/covid/view/country/Gallery.mjs +0 -2
- package/apps/covid/view/country/Helix.mjs +0 -3
- package/apps/covid/view/mapboxGl/Container.mjs +1 -1
- package/apps/covid/view/mapboxGl/ContainerController.mjs +1 -6
- package/apps/krausest/TableCollection.mjs +0 -1
- package/apps/krausest/view/MainComponent.mjs +2 -3
- package/apps/krausest/view/MainComponentController.mjs +0 -1
- package/apps/krausest/view/TableComponent.mjs +2 -4
- package/apps/realworld/api/Article.mjs +1 -4
- package/apps/realworld/api/Base.mjs +0 -5
- package/apps/realworld/api/Favorite.mjs +1 -3
- package/apps/realworld/api/Profile.mjs +1 -3
- package/apps/realworld/view/HeaderComponent.mjs +1 -2
- package/apps/realworld/view/HomeComponent.mjs +2 -11
- package/apps/realworld/view/MainContainerController.mjs +0 -13
- package/apps/realworld/view/article/CommentComponent.mjs +3 -5
- package/apps/realworld/view/article/Component.mjs +2 -7
- package/apps/realworld/view/article/CreateCommentComponent.mjs +3 -7
- package/apps/realworld/view/article/CreateComponent.mjs +3 -3
- package/apps/realworld/view/article/PreviewComponent.mjs +3 -5
- package/apps/realworld/view/article/TagListComponent.mjs +3 -7
- package/apps/realworld/view/user/ProfileComponent.mjs +2 -8
- package/apps/realworld/view/user/SettingsComponent.mjs +3 -7
- package/apps/realworld/view/user/SignUpComponent.mjs +2 -3
- package/apps/realworld2/api/Article.mjs +1 -4
- package/apps/realworld2/api/Base.mjs +0 -5
- package/apps/realworld2/api/Favorite.mjs +1 -3
- package/apps/realworld2/api/Profile.mjs +1 -3
- package/apps/realworld2/view/HeaderToolbarController.mjs +1 -2
- package/apps/realworld2/view/HomeContainer.mjs +1 -2
- package/apps/realworld2/view/MainContainerController.mjs +1 -14
- package/apps/realworld2/view/article/Gallery.mjs +1 -3
- package/apps/realworld2/view/article/GalleryContainer.mjs +1 -2
- package/apps/realworld2/view/article/Helix.mjs +1 -3
- package/apps/realworld2/view/article/HelixContainer.mjs +3 -5
- package/apps/realworld2/view/article/PreviewComponent.mjs +3 -5
- package/apps/realworld2/view/article/TagListComponent.mjs +3 -7
- package/apps/realworld2/view/user/LoginFormContainer.mjs +3 -4
- package/apps/sharedcovid/Util.mjs +1 -3
- package/apps/sharedcovid/view/GalleryContainer.mjs +2 -3
- package/apps/sharedcovid/view/GalleryContainerController.mjs +1 -5
- package/apps/sharedcovid/view/HelixContainer.mjs +2 -3
- package/apps/sharedcovid/view/HelixContainerController.mjs +1 -4
- package/apps/sharedcovid/view/MainContainerController.mjs +12 -16
- package/apps/sharedcovid/view/MainContainerModel.mjs +0 -1
- package/apps/sharedcovid/view/TableContainer.mjs +2 -3
- package/apps/sharedcovid/view/TableContainerController.mjs +0 -3
- package/apps/sharedcovid/view/WorldMapComponent.mjs +1 -2
- package/apps/sharedcovid/view/WorldMapContainerController.mjs +0 -2
- package/apps/sharedcovid/view/country/Gallery.mjs +0 -2
- package/apps/sharedcovid/view/country/Helix.mjs +0 -3
- package/apps/sharedcovid/view/mapboxGl/Container.mjs +2 -3
- package/apps/sharedcovid/view/mapboxGl/ContainerController.mjs +1 -5
- package/apps/shareddialog/view/MainContainerController.mjs +0 -18
- package/apps/shareddialog2/view/MainContainerController.mjs +1 -2
- package/apps/website/data/blog.json +13 -0
- package/apps/website/view/MainContainerController.mjs +0 -4
- package/docs/app/view/ContentTabContainer.mjs +2 -2
- package/docs/app/view/MainContainer.mjs +2 -2
- package/docs/app/view/classdetails/SourceViewComponent.mjs +2 -2
- package/docs/app/view/classdetails/TutorialComponent.mjs +2 -2
- package/docs/tutorials/02_ClassSystem.html +3 -3
- package/docs/tutorials/02_ClassSystem.md +2 -2
- package/docs/tutorials/09_TodoList_version1.html +8 -8
- package/examples/ConfigurationViewport.mjs +0 -4
- package/examples/calendar/basic/MainContainerController.mjs +0 -1
- package/examples/calendar/weekview/MainContainer.mjs +2 -2
- package/examples/component/coronaGallery/CountryGallery.mjs +1 -4
- package/examples/component/coronaGallery/MainContainer.mjs +2 -4
- package/examples/component/coronaHelix/CountryHelix.mjs +0 -4
- package/examples/component/coronaHelix/MainContainer.mjs +2 -4
- package/examples/component/gallery/MainContainer.mjs +2 -4
- package/examples/component/helix/MainContainer.mjs +2 -4
- package/examples/component/splitter/MainContainer.mjs +0 -2
- package/examples/core/config/MainContainer.mjs +3 -5
- package/examples/dialog/MainContainer.mjs +3 -7
- package/examples/list/animate/MainContainer.mjs +2 -2
- package/examples/model/advanced/MainContainerController.mjs +0 -12
- package/examples/model/dialog/EditUserDialogController.mjs +1 -3
- package/examples/model/dialog/MainContainerController.mjs +1 -2
- package/examples/model/extendedClass/MainContainerController.mjs +0 -7
- package/examples/model/inline/MainContainerController.mjs +0 -7
- package/examples/model/inlineNoModel/MainContainerController.mjs +1 -6
- package/examples/model/multiWindow/EditUserDialogController.mjs +1 -3
- package/examples/model/multiWindow/MainContainerController.mjs +1 -3
- package/examples/model/multiWindow/ViewportController.mjs +3 -5
- package/examples/model/nestedData/MainContainerController.mjs +1 -8
- package/examples/tab/container/MainContainer.mjs +1 -6
- package/examples/todoList/version1/MainComponent.mjs +3 -3
- package/examples/todoList/version2/MainContainer.mjs +3 -3
- package/examples/todoList/version2/TodoList.mjs +1 -1
- package/examples/tree/MainContainer.mjs +0 -2
- package/package.json +7 -7
- package/src/Main.mjs +9 -18
- package/src/Neo.mjs +26 -26
- package/src/button/Menu.mjs +0 -1
- package/src/button/Split.mjs +2 -6
- package/src/calendar/store/Events.mjs +0 -1
- package/src/calendar/view/DayComponent.mjs +0 -1
- package/src/calendar/view/EditEventContainer.mjs +2 -9
- package/src/calendar/view/MainContainer.mjs +2 -17
- package/src/calendar/view/MainContainerModel.mjs +2 -4
- package/src/calendar/view/SettingsContainer.mjs +2 -6
- package/src/calendar/view/YearComponent.mjs +3 -14
- package/src/calendar/view/calendars/Container.mjs +0 -1
- package/src/calendar/view/calendars/EditContainer.mjs +2 -7
- package/src/calendar/view/calendars/List.mjs +0 -5
- package/src/calendar/view/month/Component.mjs +3 -17
- package/src/calendar/view/settings/GeneralContainer.mjs +0 -3
- package/src/calendar/view/settings/MonthContainer.mjs +0 -3
- package/src/calendar/view/settings/WeekContainer.mjs +0 -5
- package/src/calendar/view/settings/YearContainer.mjs +0 -3
- package/src/calendar/view/week/Component.mjs +3 -22
- package/src/calendar/view/week/EventDragZone.mjs +1 -6
- package/src/calendar/view/week/TimeAxisComponent.mjs +2 -3
- package/src/calendar/view/week/plugin/DragDrop.mjs +2 -12
- package/src/calendar/view/week/plugin/EventResizable.mjs +0 -3
- package/src/collection/Base.mjs +3 -22
- package/src/collection/Filter.mjs +0 -1
- package/src/collection/Sorter.mjs +0 -3
- package/src/component/Base.mjs +14 -3
- package/src/component/Chip.mjs +2 -4
- package/src/component/Circle.mjs +2 -20
- package/src/component/DateSelector.mjs +4 -21
- package/src/component/Gallery.mjs +2 -14
- package/src/component/Helix.mjs +2 -16
- package/src/component/Splitter.mjs +3 -8
- package/src/component/mwc/Button.mjs +2 -2
- package/src/component/mwc/TextField.mjs +2 -3
- package/src/component/wrapper/AmChart.mjs +1 -1
- package/src/component/wrapper/MapboxGL.mjs +0 -5
- package/src/container/Base.mjs +1 -7
- package/src/container/Panel.mjs +2 -5
- package/src/controller/Application.mjs +2 -3
- package/src/controller/Base.mjs +2 -3
- package/src/controller/Component.mjs +3 -6
- package/src/core/Base.mjs +26 -3
- package/src/core/Compare.mjs +0 -1
- package/src/core/IdGenerator.mjs +2 -4
- package/src/core/Observable.mjs +0 -3
- package/src/core/Util.mjs +0 -1
- package/src/core/_export.mjs +1 -2
- package/src/data/RecordFactory.mjs +1 -6
- package/src/data/Store.mjs +2 -12
- package/src/data/connection/Xhr.mjs +0 -6
- package/src/dialog/Base.mjs +5 -24
- package/src/draggable/DragProxyComponent.mjs +3 -5
- package/src/draggable/DragZone.mjs +2 -8
- package/src/draggable/DropZone.mjs +3 -9
- package/src/draggable/list/DragZone.mjs +3 -9
- package/src/draggable/tab/header/toolbar/SortZone.mjs +1 -3
- package/src/draggable/toolbar/DragZone.mjs +3 -7
- package/src/draggable/toolbar/SortZone.mjs +1 -8
- package/src/draggable/tree/DragZone.mjs +1 -4
- package/src/filter/BooleanContainer.mjs +0 -1
- package/src/filter/NumberContainer.mjs +0 -2
- package/src/filter/ToggleOperatorsButton.mjs +3 -5
- package/src/form/Container.mjs +0 -2
- package/src/form/Fieldset.mjs +0 -1
- package/src/form/field/Base.mjs +0 -2
- package/src/form/field/CheckBox.mjs +2 -7
- package/src/form/field/Color.mjs +2 -5
- package/src/form/field/Date.mjs +2 -6
- package/src/form/field/Display.mjs +2 -3
- package/src/form/field/Picker.mjs +1 -12
- package/src/form/field/Range.mjs +2 -3
- package/src/form/field/Select.mjs +24 -22
- package/src/form/field/Text.mjs +3 -20
- package/src/form/field/Time.mjs +2 -9
- package/src/form/field/trigger/Base.mjs +2 -4
- package/src/form/field/trigger/Clear.mjs +0 -3
- package/src/form/field/trigger/CopyToClipboard.mjs +0 -3
- package/src/form/field/trigger/Picker.mjs +0 -1
- package/src/form/field/trigger/SpinDown.mjs +0 -1
- package/src/form/field/trigger/SpinUp.mjs +0 -1
- package/src/form/field/trigger/SpinUpDown.mjs +0 -1
- package/src/form/field/trigger/Time.mjs +2 -3
- package/src/grid/Container.mjs +3 -6
- package/src/grid/header/Toolbar.mjs +1 -5
- package/src/list/Base.mjs +2 -2
- package/src/list/Color.mjs +0 -3
- package/src/list/Component.mjs +0 -3
- package/src/list/plugin/Animate.mjs +3 -6
- package/src/main/DomAccess.mjs +9 -24
- package/src/main/DomEvents.mjs +44 -77
- package/src/main/addon/AmCharts.mjs +3 -12
- package/src/main/addon/AnalyticsByGoogle.mjs +3 -4
- package/src/main/addon/CloneNode.mjs +0 -2
- package/src/main/addon/Cookie.mjs +0 -3
- package/src/main/addon/DragDrop.mjs +2 -11
- package/src/main/addon/HighlightJS.mjs +3 -7
- package/src/main/addon/MapboxGL.mjs +4 -16
- package/src/main/addon/Markdown.mjs +3 -3
- package/src/main/addon/Mwc.mjs +0 -2
- package/src/main/addon/Siesta.mjs +2 -3
- package/src/main/addon/Stylesheet.mjs +2 -6
- package/src/main/addon/WindowPosition.mjs +3 -8
- package/src/main/draggable/sensor/Mouse.mjs +2 -6
- package/src/main/draggable/sensor/Touch.mjs +2 -6
- package/src/main/mixin/DeltaUpdates.mjs +0 -8
- package/src/main/mixin/TouchDomEvents.mjs +1 -7
- package/src/manager/Base.mjs +0 -2
- package/src/manager/Component.mjs +2 -5
- package/src/manager/DomEvent.mjs +1 -6
- package/src/manager/Focus.mjs +0 -7
- package/src/manager/Instance.mjs +2 -3
- package/src/manager/Store.mjs +0 -4
- package/src/menu/List.mjs +4 -18
- package/src/model/Component.mjs +2 -3
- package/src/plugin/Base.mjs +2 -3
- package/src/plugin/Resizable.mjs +4 -15
- package/src/selection/CircleModel.mjs +1 -5
- package/src/selection/DateSelectorModel.mjs +1 -9
- package/src/selection/GalleryModel.mjs +0 -9
- package/src/selection/HelixModel.mjs +0 -9
- package/src/selection/ListModel.mjs +0 -8
- package/src/selection/Model.mjs +0 -8
- package/src/selection/menu/ListModel.mjs +0 -2
- package/src/selection/table/CellColumnModel.mjs +2 -6
- package/src/selection/table/CellColumnRowModel.mjs +2 -6
- package/src/selection/table/CellModel.mjs +0 -8
- package/src/selection/table/CellRowModel.mjs +2 -8
- package/src/selection/table/ColumnModel.mjs +0 -6
- package/src/selection/table/RowModel.mjs +0 -5
- package/src/tab/Container.mjs +0 -6
- package/src/tab/Strip.mjs +1 -3
- package/src/tab/header/Button.mjs +1 -2
- package/src/tab/header/Toolbar.mjs +0 -1
- package/src/table/Container.mjs +2 -10
- package/src/table/View.mjs +0 -4
- package/src/table/header/Button.mjs +2 -8
- package/src/table/header/Toolbar.mjs +1 -2
- package/src/tree/List.mjs +0 -4
- package/src/util/Css.mjs +0 -1
- package/src/util/Date.mjs +0 -2
- package/src/util/Function.mjs +0 -2
- package/src/util/HashHistory.mjs +0 -3
- package/src/util/KeyNavigation.mjs +0 -5
- package/src/{core → util}/Logger.mjs +7 -19
- package/src/util/Matrix.mjs +0 -3
- package/src/util/VDom.mjs +0 -5
- package/src/util/_export.mjs +2 -1
- package/src/vdom/Helper.mjs +0 -3
- package/src/vdom/VNode.mjs +0 -1
- package/src/worker/App.mjs +2 -9
- package/src/worker/Base.mjs +2 -8
- package/src/worker/Canvas.mjs +0 -2
- package/src/worker/Manager.mjs +3 -5
- package/src/worker/Message.mjs +0 -1
- package/src/worker/mixin/RemoteMethodAccess.mjs +0 -3
- package/test/siesta/siesta.js +2 -1
- package/test/siesta/tests/ClassConfigsAndFields.mjs +307 -0
- package/test/siesta/tests/ClassSystem.mjs +1 -1
|
@@ -169,11 +169,10 @@ class MainContainer extends Container {
|
|
|
169
169
|
}}
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
|
-
*
|
|
173
172
|
* @param {Object} config
|
|
174
173
|
*/
|
|
175
|
-
|
|
176
|
-
super(config);
|
|
174
|
+
construct(config) {
|
|
175
|
+
super.construct(config);
|
|
177
176
|
|
|
178
177
|
let me = this;
|
|
179
178
|
|
|
@@ -392,7 +391,6 @@ class MainContainer extends Container {
|
|
|
392
391
|
}
|
|
393
392
|
|
|
394
393
|
/**
|
|
395
|
-
*
|
|
396
394
|
* @param {String} view
|
|
397
395
|
* @protected
|
|
398
396
|
*/
|
|
@@ -401,7 +399,6 @@ class MainContainer extends Container {
|
|
|
401
399
|
}
|
|
402
400
|
|
|
403
401
|
/**
|
|
404
|
-
*
|
|
405
402
|
* @returns {Object[]}
|
|
406
403
|
*/
|
|
407
404
|
createHeaderItems() {
|
|
@@ -433,7 +430,6 @@ class MainContainer extends Container {
|
|
|
433
430
|
}
|
|
434
431
|
|
|
435
432
|
/**
|
|
436
|
-
*
|
|
437
433
|
* @protected
|
|
438
434
|
*/
|
|
439
435
|
createItemsContent() {
|
|
@@ -495,7 +491,6 @@ class MainContainer extends Container {
|
|
|
495
491
|
}
|
|
496
492
|
|
|
497
493
|
/**
|
|
498
|
-
*
|
|
499
494
|
* @param {Boolean} collapsed
|
|
500
495
|
* @returns {Promise<*>}
|
|
501
496
|
*/
|
|
@@ -515,7 +510,6 @@ class MainContainer extends Container {
|
|
|
515
510
|
}
|
|
516
511
|
|
|
517
512
|
/**
|
|
518
|
-
*
|
|
519
513
|
* @returns {Object[]}
|
|
520
514
|
*/
|
|
521
515
|
createViewHeaderButtons() {
|
|
@@ -538,7 +532,6 @@ class MainContainer extends Container {
|
|
|
538
532
|
}
|
|
539
533
|
|
|
540
534
|
/**
|
|
541
|
-
*
|
|
542
535
|
* @returns {Neo.component.Base[]}
|
|
543
536
|
*/
|
|
544
537
|
createViews() {
|
|
@@ -588,7 +581,6 @@ class MainContainer extends Container {
|
|
|
588
581
|
}
|
|
589
582
|
|
|
590
583
|
/**
|
|
591
|
-
*
|
|
592
584
|
* @param data
|
|
593
585
|
*/
|
|
594
586
|
onCardLoaded(data) {
|
|
@@ -599,7 +591,6 @@ class MainContainer extends Container {
|
|
|
599
591
|
}
|
|
600
592
|
|
|
601
593
|
/**
|
|
602
|
-
*
|
|
603
594
|
* @param {Object} data
|
|
604
595
|
* @param {String} data.oldValue
|
|
605
596
|
* @param {String} data.value
|
|
@@ -609,7 +600,6 @@ class MainContainer extends Container {
|
|
|
609
600
|
}
|
|
610
601
|
|
|
611
602
|
/**
|
|
612
|
-
*
|
|
613
603
|
* @param data
|
|
614
604
|
*/
|
|
615
605
|
onNextIntervalButtonClick(data) {
|
|
@@ -617,7 +607,6 @@ class MainContainer extends Container {
|
|
|
617
607
|
}
|
|
618
608
|
|
|
619
609
|
/**
|
|
620
|
-
*
|
|
621
610
|
* @param data
|
|
622
611
|
*/
|
|
623
612
|
onPreviousIntervalButtonClick(data) {
|
|
@@ -625,7 +614,6 @@ class MainContainer extends Container {
|
|
|
625
614
|
}
|
|
626
615
|
|
|
627
616
|
/**
|
|
628
|
-
*
|
|
629
617
|
* @param data
|
|
630
618
|
*/
|
|
631
619
|
onTodayButtonClick(data) {
|
|
@@ -635,7 +623,6 @@ class MainContainer extends Container {
|
|
|
635
623
|
}
|
|
636
624
|
|
|
637
625
|
/**
|
|
638
|
-
*
|
|
639
626
|
* @protected
|
|
640
627
|
*/
|
|
641
628
|
toggleSettings() {
|
|
@@ -643,7 +630,6 @@ class MainContainer extends Container {
|
|
|
643
630
|
}
|
|
644
631
|
|
|
645
632
|
/**
|
|
646
|
-
*
|
|
647
633
|
* @protected
|
|
648
634
|
*/
|
|
649
635
|
toggleSidebar() {
|
|
@@ -651,7 +637,6 @@ class MainContainer extends Container {
|
|
|
651
637
|
}
|
|
652
638
|
|
|
653
639
|
/**
|
|
654
|
-
*
|
|
655
640
|
* @param {Number} multiplier
|
|
656
641
|
*/
|
|
657
642
|
switchInterval(multiplier) {
|
|
@@ -105,11 +105,10 @@ class MainContainerModel extends Component {
|
|
|
105
105
|
}}
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
109
108
|
* @param {Object} config
|
|
110
109
|
*/
|
|
111
|
-
|
|
112
|
-
super(config);
|
|
110
|
+
construct(config) {
|
|
111
|
+
super.construct(config);
|
|
113
112
|
|
|
114
113
|
let me = this,
|
|
115
114
|
component = me.component;
|
|
@@ -146,7 +145,6 @@ class MainContainerModel extends Component {
|
|
|
146
145
|
}
|
|
147
146
|
|
|
148
147
|
/**
|
|
149
|
-
*
|
|
150
148
|
* @param {String} key
|
|
151
149
|
* @param {*} value
|
|
152
150
|
* @param {*} oldValue
|
|
@@ -34,11 +34,10 @@ class SettingsContainer extends Container {
|
|
|
34
34
|
}}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
37
|
* @param {Object} config
|
|
39
38
|
*/
|
|
40
|
-
|
|
41
|
-
super(config);
|
|
39
|
+
construct(config) {
|
|
40
|
+
super.construct(config);
|
|
42
41
|
|
|
43
42
|
let me = this;
|
|
44
43
|
|
|
@@ -48,7 +47,6 @@ class SettingsContainer extends Container {
|
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
/**
|
|
51
|
-
*
|
|
52
50
|
* @param {Number} width
|
|
53
51
|
*/
|
|
54
52
|
collapse(width) {
|
|
@@ -162,7 +160,6 @@ class SettingsContainer extends Container {
|
|
|
162
160
|
}
|
|
163
161
|
|
|
164
162
|
/**
|
|
165
|
-
*
|
|
166
163
|
* @returns {Neo.calendar.view.MainContainer}
|
|
167
164
|
*/
|
|
168
165
|
getMainContainer() {
|
|
@@ -170,7 +167,6 @@ class SettingsContainer extends Container {
|
|
|
170
167
|
}
|
|
171
168
|
|
|
172
169
|
/**
|
|
173
|
-
*
|
|
174
170
|
* @param {Object} data
|
|
175
171
|
*/
|
|
176
172
|
onCardIndexChange(data) {
|
|
@@ -173,11 +173,10 @@ class YearComponent extends Component {
|
|
|
173
173
|
}}
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
*
|
|
177
176
|
* @param config
|
|
178
177
|
*/
|
|
179
|
-
|
|
180
|
-
super(config);
|
|
178
|
+
construct(config) {
|
|
179
|
+
super.construct(config);
|
|
181
180
|
|
|
182
181
|
let me = this,
|
|
183
182
|
domListeners = me.domListeners;
|
|
@@ -477,7 +476,6 @@ class YearComponent extends Component {
|
|
|
477
476
|
}
|
|
478
477
|
|
|
479
478
|
/**
|
|
480
|
-
*
|
|
481
479
|
* @param {Number} increment
|
|
482
480
|
*/
|
|
483
481
|
changeYear(increment) {
|
|
@@ -490,9 +488,7 @@ class YearComponent extends Component {
|
|
|
490
488
|
if (!me.isUpdating) {
|
|
491
489
|
me.isUpdating = true;
|
|
492
490
|
|
|
493
|
-
|
|
494
|
-
id: me.id
|
|
495
|
-
}).then(data => {
|
|
491
|
+
me.getDomRect().then(data => {
|
|
496
492
|
scrollFromTop = me.scrollNewYearFromTop && increment < 0 || !me.scrollNewYearFromTop && increment > 0;
|
|
497
493
|
vdom = me.vdom;
|
|
498
494
|
y = scrollFromTop ? 0 : -data.height;
|
|
@@ -569,7 +565,6 @@ class YearComponent extends Component {
|
|
|
569
565
|
}
|
|
570
566
|
|
|
571
567
|
/**
|
|
572
|
-
*
|
|
573
568
|
* @param {Object} containerEl
|
|
574
569
|
* @param {Date} currentDate
|
|
575
570
|
* @returns {Object} vdom
|
|
@@ -729,7 +724,6 @@ class YearComponent extends Component {
|
|
|
729
724
|
}
|
|
730
725
|
|
|
731
726
|
/**
|
|
732
|
-
*
|
|
733
727
|
* @param {Object[]} data
|
|
734
728
|
*/
|
|
735
729
|
onCalendarStoreLoad(data) {
|
|
@@ -737,7 +731,6 @@ class YearComponent extends Component {
|
|
|
737
731
|
}
|
|
738
732
|
|
|
739
733
|
/**
|
|
740
|
-
*
|
|
741
734
|
* @param {Object} data
|
|
742
735
|
*/
|
|
743
736
|
onCalendarStoreRecordChange(data) {
|
|
@@ -745,7 +738,6 @@ class YearComponent extends Component {
|
|
|
745
738
|
}
|
|
746
739
|
|
|
747
740
|
/**
|
|
748
|
-
*
|
|
749
741
|
* @param {Object[]} data
|
|
750
742
|
*/
|
|
751
743
|
onEventStoreLoad(data) {
|
|
@@ -753,7 +745,6 @@ class YearComponent extends Component {
|
|
|
753
745
|
}
|
|
754
746
|
|
|
755
747
|
/**
|
|
756
|
-
*
|
|
757
748
|
* @param {Object[]} data
|
|
758
749
|
*/
|
|
759
750
|
onEventStoreRecordChange(data) {
|
|
@@ -761,7 +752,6 @@ class YearComponent extends Component {
|
|
|
761
752
|
}
|
|
762
753
|
|
|
763
754
|
/**
|
|
764
|
-
*
|
|
765
755
|
* @param {Object} data
|
|
766
756
|
*/
|
|
767
757
|
onNavButtonClick(data) {
|
|
@@ -774,7 +764,6 @@ class YearComponent extends Component {
|
|
|
774
764
|
}
|
|
775
765
|
|
|
776
766
|
/**
|
|
777
|
-
*
|
|
778
767
|
* @param {Object} data
|
|
779
768
|
*/
|
|
780
769
|
onWheel(data) {
|
|
@@ -46,11 +46,10 @@ class EditContainer extends FormContainer {
|
|
|
46
46
|
}}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
49
|
* @param {Object} config
|
|
51
50
|
*/
|
|
52
|
-
|
|
53
|
-
super(config);
|
|
51
|
+
construct(config) {
|
|
52
|
+
super.construct(config);
|
|
54
53
|
|
|
55
54
|
// focus trap, see: https://github.com/neomjs/neo/issues/2306
|
|
56
55
|
this.vdom.tabIndex = -1;
|
|
@@ -153,7 +152,6 @@ class EditContainer extends FormContainer {
|
|
|
153
152
|
}
|
|
154
153
|
|
|
155
154
|
/**
|
|
156
|
-
*
|
|
157
155
|
* @param {Object} data
|
|
158
156
|
* @param {Object} data.record
|
|
159
157
|
*/
|
|
@@ -162,7 +160,6 @@ class EditContainer extends FormContainer {
|
|
|
162
160
|
}
|
|
163
161
|
|
|
164
162
|
/**
|
|
165
|
-
*
|
|
166
163
|
* @param {Object} data
|
|
167
164
|
*/
|
|
168
165
|
onDeleteButtonClick(data) {
|
|
@@ -175,7 +172,6 @@ class EditContainer extends FormContainer {
|
|
|
175
172
|
}
|
|
176
173
|
|
|
177
174
|
/**
|
|
178
|
-
*
|
|
179
175
|
* @param {Object} [data]
|
|
180
176
|
*/
|
|
181
177
|
onFocusLeave(data) {
|
|
@@ -189,7 +185,6 @@ class EditContainer extends FormContainer {
|
|
|
189
185
|
}
|
|
190
186
|
|
|
191
187
|
/**
|
|
192
|
-
*
|
|
193
188
|
* @param {Object} data
|
|
194
189
|
*/
|
|
195
190
|
onNameFieldChange(data) {
|
|
@@ -77,7 +77,6 @@ class List extends ComponentList {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
81
80
|
* @param {Number} index
|
|
82
81
|
* @returns {String}
|
|
83
82
|
*/
|
|
@@ -86,7 +85,6 @@ class List extends ComponentList {
|
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
/**
|
|
89
|
-
*
|
|
90
88
|
* @param {Object} data
|
|
91
89
|
*/
|
|
92
90
|
onCheckboxChange(data) {
|
|
@@ -94,7 +92,6 @@ class List extends ComponentList {
|
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
/**
|
|
97
|
-
*
|
|
98
95
|
* @param {Object} data
|
|
99
96
|
*/
|
|
100
97
|
onClick(data) {
|
|
@@ -133,7 +130,6 @@ class List extends ComponentList {
|
|
|
133
130
|
}
|
|
134
131
|
|
|
135
132
|
/**
|
|
136
|
-
*
|
|
137
133
|
* @param {String} itemId
|
|
138
134
|
*/
|
|
139
135
|
onKeyDownEnter(itemId) {
|
|
@@ -145,7 +141,6 @@ class List extends ComponentList {
|
|
|
145
141
|
}
|
|
146
142
|
|
|
147
143
|
/**
|
|
148
|
-
*
|
|
149
144
|
* @param {String[]} items
|
|
150
145
|
*/
|
|
151
146
|
onSelect(items) {
|
|
@@ -155,11 +155,10 @@ class Component extends BaseComponent {
|
|
|
155
155
|
}}
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
|
-
*
|
|
159
158
|
* @param {Object} config
|
|
160
159
|
*/
|
|
161
|
-
|
|
162
|
-
super(config);
|
|
160
|
+
construct(config) {
|
|
161
|
+
super.construct(config);
|
|
163
162
|
|
|
164
163
|
let me = this,
|
|
165
164
|
domListeners = me.domListeners;
|
|
@@ -317,9 +316,7 @@ class Component extends BaseComponent {
|
|
|
317
316
|
}
|
|
318
317
|
|
|
319
318
|
setTimeout(() => {
|
|
320
|
-
|
|
321
|
-
id: [me.vdom.cn[1].id, me.vdom.cn[0].id]
|
|
322
|
-
}).then(data => {
|
|
319
|
+
me.getDomRect([me.vdom.cn[1].id, me.vdom.cn[0].id]).then(data => {
|
|
323
320
|
me.headerHeight = data[1].height;
|
|
324
321
|
|
|
325
322
|
Neo.main.DomAccess.scrollTo({
|
|
@@ -423,7 +420,6 @@ class Component extends BaseComponent {
|
|
|
423
420
|
}
|
|
424
421
|
|
|
425
422
|
/**
|
|
426
|
-
*
|
|
427
423
|
* @param {Boolean} [silent=false]
|
|
428
424
|
*/
|
|
429
425
|
createContent(silent=false) {
|
|
@@ -462,7 +458,6 @@ class Component extends BaseComponent {
|
|
|
462
458
|
}
|
|
463
459
|
|
|
464
460
|
/**
|
|
465
|
-
*
|
|
466
461
|
* @param {Date} date
|
|
467
462
|
* @returns {Object}
|
|
468
463
|
*/
|
|
@@ -566,7 +561,6 @@ class Component extends BaseComponent {
|
|
|
566
561
|
}
|
|
567
562
|
|
|
568
563
|
/**
|
|
569
|
-
*
|
|
570
564
|
* @param {Object[]} data
|
|
571
565
|
*/
|
|
572
566
|
onCalendarStoreLoad(data) {
|
|
@@ -574,7 +568,6 @@ class Component extends BaseComponent {
|
|
|
574
568
|
}
|
|
575
569
|
|
|
576
570
|
/**
|
|
577
|
-
*
|
|
578
571
|
* @param {Object} data
|
|
579
572
|
*/
|
|
580
573
|
onCalendarStoreRecordChange(data) {
|
|
@@ -582,7 +575,6 @@ class Component extends BaseComponent {
|
|
|
582
575
|
}
|
|
583
576
|
|
|
584
577
|
/**
|
|
585
|
-
*
|
|
586
578
|
* @param {Object} data
|
|
587
579
|
*/
|
|
588
580
|
onEventDoubleClick(data) {
|
|
@@ -612,7 +604,6 @@ class Component extends BaseComponent {
|
|
|
612
604
|
}
|
|
613
605
|
|
|
614
606
|
/**
|
|
615
|
-
*
|
|
616
607
|
* @param {Object[]} data
|
|
617
608
|
*/
|
|
618
609
|
onEventStoreLoad(data) {
|
|
@@ -620,7 +611,6 @@ class Component extends BaseComponent {
|
|
|
620
611
|
}
|
|
621
612
|
|
|
622
613
|
/**
|
|
623
|
-
*
|
|
624
614
|
* @param {Object[]} data
|
|
625
615
|
*/
|
|
626
616
|
onEventStoreRecordChange(data) {
|
|
@@ -628,7 +618,6 @@ class Component extends BaseComponent {
|
|
|
628
618
|
}
|
|
629
619
|
|
|
630
620
|
/**
|
|
631
|
-
*
|
|
632
621
|
* @param {Object} data
|
|
633
622
|
* @param {Object[]} data.oldPath
|
|
634
623
|
* @param {Object[]} data.path
|
|
@@ -651,7 +640,6 @@ class Component extends BaseComponent {
|
|
|
651
640
|
}
|
|
652
641
|
|
|
653
642
|
/**
|
|
654
|
-
*
|
|
655
643
|
* @param {Object} data
|
|
656
644
|
*/
|
|
657
645
|
onWheel(data) {
|
|
@@ -776,7 +764,6 @@ class Component extends BaseComponent {
|
|
|
776
764
|
}
|
|
777
765
|
|
|
778
766
|
/**
|
|
779
|
-
*
|
|
780
767
|
* @param {Boolean} [create=false]
|
|
781
768
|
*/
|
|
782
769
|
updateHeader(create=false) {
|
|
@@ -825,7 +812,6 @@ class Component extends BaseComponent {
|
|
|
825
812
|
}
|
|
826
813
|
|
|
827
814
|
/**
|
|
828
|
-
*
|
|
829
815
|
* @param {Boolean} [silent=false]
|
|
830
816
|
*/
|
|
831
817
|
updateMonthNames(silent=false) {
|
|
@@ -263,7 +263,6 @@ class GeneralContainer extends Container {
|
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
/**
|
|
266
|
-
*
|
|
267
266
|
* @param {Object} data
|
|
268
267
|
*/
|
|
269
268
|
onConfigChange(data) {
|
|
@@ -271,7 +270,6 @@ class GeneralContainer extends Container {
|
|
|
271
270
|
}
|
|
272
271
|
|
|
273
272
|
/**
|
|
274
|
-
*
|
|
275
273
|
* @param {Object} data
|
|
276
274
|
*/
|
|
277
275
|
onDataChange(data) {
|
|
@@ -279,7 +277,6 @@ class GeneralContainer extends Container {
|
|
|
279
277
|
}
|
|
280
278
|
|
|
281
279
|
/**
|
|
282
|
-
*
|
|
283
280
|
* @param {Object} data
|
|
284
281
|
*/
|
|
285
282
|
onRadioDataChange(data) {
|
|
@@ -100,7 +100,6 @@ class MonthContainer extends Container {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
104
103
|
* @returns {Neo.calendar.view.month.Component}
|
|
105
104
|
*/
|
|
106
105
|
getMonthComponent() {
|
|
@@ -108,7 +107,6 @@ class MonthContainer extends Container {
|
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
/**
|
|
111
|
-
*
|
|
112
110
|
* @param {Object} data
|
|
113
111
|
*/
|
|
114
112
|
onConfigChange(data) {
|
|
@@ -116,7 +114,6 @@ class MonthContainer extends Container {
|
|
|
116
114
|
}
|
|
117
115
|
|
|
118
116
|
/**
|
|
119
|
-
*
|
|
120
117
|
* @param {Object} data
|
|
121
118
|
*/
|
|
122
119
|
onRadioChange(data) {
|
|
@@ -92,7 +92,6 @@ class WeekContainer extends Container {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
|
-
*
|
|
96
95
|
* @returns {Neo.calendar.view.TimeAxisComponent}
|
|
97
96
|
*/
|
|
98
97
|
getTimeAxis() {
|
|
@@ -100,7 +99,6 @@ class WeekContainer extends Container {
|
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
/**
|
|
103
|
-
*
|
|
104
102
|
* @returns {Neo.calendar.view.Component}
|
|
105
103
|
*/
|
|
106
104
|
getWeekComponent() {
|
|
@@ -108,7 +106,6 @@ class WeekContainer extends Container {
|
|
|
108
106
|
}
|
|
109
107
|
|
|
110
108
|
/**
|
|
111
|
-
*
|
|
112
109
|
* @param {Object} data
|
|
113
110
|
*/
|
|
114
111
|
onConfigChange(data) {
|
|
@@ -116,7 +113,6 @@ class WeekContainer extends Container {
|
|
|
116
113
|
}
|
|
117
114
|
|
|
118
115
|
/**
|
|
119
|
-
*
|
|
120
116
|
* @param {Object} data
|
|
121
117
|
*/
|
|
122
118
|
onTimeAxisConfigChange(data) {
|
|
@@ -124,7 +120,6 @@ class WeekContainer extends Container {
|
|
|
124
120
|
}
|
|
125
121
|
|
|
126
122
|
/**
|
|
127
|
-
*
|
|
128
123
|
* @param {Object} data
|
|
129
124
|
*/
|
|
130
125
|
onTimeAxisPositionChange(data) {
|
|
@@ -121,7 +121,6 @@ class YearContainer extends Container {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
125
124
|
* @returns {Neo.calendar.view.YearComponent}
|
|
126
125
|
*/
|
|
127
126
|
getYearComponent() {
|
|
@@ -129,7 +128,6 @@ class YearContainer extends Container {
|
|
|
129
128
|
}
|
|
130
129
|
|
|
131
130
|
/**
|
|
132
|
-
*
|
|
133
131
|
* @param {Object} data
|
|
134
132
|
*/
|
|
135
133
|
onRadioChange(data) {
|
|
@@ -139,7 +137,6 @@ class YearContainer extends Container {
|
|
|
139
137
|
}
|
|
140
138
|
|
|
141
139
|
/**
|
|
142
|
-
*
|
|
143
140
|
* @param {Object} data
|
|
144
141
|
*/
|
|
145
142
|
onConfigChange(data) {
|
|
@@ -214,11 +214,10 @@ class Component extends BaseComponent {
|
|
|
214
214
|
}}
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
|
-
*
|
|
218
217
|
* @param {Object} config
|
|
219
218
|
*/
|
|
220
|
-
|
|
221
|
-
super(config);
|
|
219
|
+
construct(config) {
|
|
220
|
+
super.construct(config);
|
|
222
221
|
|
|
223
222
|
let me = this,
|
|
224
223
|
domListeners = me.domListeners;
|
|
@@ -254,7 +253,6 @@ class Component extends BaseComponent {
|
|
|
254
253
|
}
|
|
255
254
|
|
|
256
255
|
/**
|
|
257
|
-
*
|
|
258
256
|
* @param {Object} data
|
|
259
257
|
* @param {Neo.component.Base} data.component
|
|
260
258
|
* @param {Number} data.rowHeight
|
|
@@ -460,10 +458,7 @@ class Component extends BaseComponent {
|
|
|
460
458
|
}
|
|
461
459
|
|
|
462
460
|
setTimeout(() => {
|
|
463
|
-
|
|
464
|
-
appName: me.appName,
|
|
465
|
-
id : me.getColumnContainer().id
|
|
466
|
-
}).then(data => {
|
|
461
|
+
me.getDomRect(me.getColumnContainer().id).then(data => {
|
|
467
462
|
Neo.main.DomAccess.scrollBy({
|
|
468
463
|
appName : me.appName,
|
|
469
464
|
direction: 'left',
|
|
@@ -571,7 +566,6 @@ class Component extends BaseComponent {
|
|
|
571
566
|
}
|
|
572
567
|
|
|
573
568
|
/**
|
|
574
|
-
*
|
|
575
569
|
* @param {Date} date
|
|
576
570
|
* @returns {Object}
|
|
577
571
|
*/
|
|
@@ -621,7 +615,6 @@ class Component extends BaseComponent {
|
|
|
621
615
|
}
|
|
622
616
|
|
|
623
617
|
/**
|
|
624
|
-
*
|
|
625
618
|
* @param {Date} date
|
|
626
619
|
* @returns {String}
|
|
627
620
|
*/
|
|
@@ -630,7 +623,6 @@ class Component extends BaseComponent {
|
|
|
630
623
|
}
|
|
631
624
|
|
|
632
625
|
/**
|
|
633
|
-
*
|
|
634
626
|
* @param {Date} date
|
|
635
627
|
* @returns {String}
|
|
636
628
|
*/
|
|
@@ -646,7 +638,6 @@ class Component extends BaseComponent {
|
|
|
646
638
|
}
|
|
647
639
|
|
|
648
640
|
/**
|
|
649
|
-
*
|
|
650
641
|
* @param {Number|String} recordId
|
|
651
642
|
* @returns {String}
|
|
652
643
|
*/
|
|
@@ -677,7 +668,6 @@ class Component extends BaseComponent {
|
|
|
677
668
|
}
|
|
678
669
|
|
|
679
670
|
/**
|
|
680
|
-
*
|
|
681
671
|
* @param {Object[]} data
|
|
682
672
|
*/
|
|
683
673
|
onCalendarStoreLoad(data) {
|
|
@@ -685,7 +675,6 @@ class Component extends BaseComponent {
|
|
|
685
675
|
}
|
|
686
676
|
|
|
687
677
|
/**
|
|
688
|
-
*
|
|
689
678
|
* @param {Object} data
|
|
690
679
|
*/
|
|
691
680
|
onCalendarStoreRecordChange(data) {
|
|
@@ -693,7 +682,6 @@ class Component extends BaseComponent {
|
|
|
693
682
|
}
|
|
694
683
|
|
|
695
684
|
/**
|
|
696
|
-
*
|
|
697
685
|
* @param {Object} data
|
|
698
686
|
*/
|
|
699
687
|
onEventDoubleClick(data) {
|
|
@@ -714,7 +702,6 @@ class Component extends BaseComponent {
|
|
|
714
702
|
}
|
|
715
703
|
|
|
716
704
|
/**
|
|
717
|
-
*
|
|
718
705
|
* @param {Object[]} data
|
|
719
706
|
*/
|
|
720
707
|
onEventStoreLoad(data) {
|
|
@@ -722,7 +709,6 @@ class Component extends BaseComponent {
|
|
|
722
709
|
}
|
|
723
710
|
|
|
724
711
|
/**
|
|
725
|
-
*
|
|
726
712
|
* @param {Object[]} data
|
|
727
713
|
*/
|
|
728
714
|
onEventStoreRecordChange(data) {
|
|
@@ -730,7 +716,6 @@ class Component extends BaseComponent {
|
|
|
730
716
|
}
|
|
731
717
|
|
|
732
718
|
/**
|
|
733
|
-
*
|
|
734
719
|
* @param {Object} data
|
|
735
720
|
* @param {Object[]} data.oldPath
|
|
736
721
|
* @param {Object[]} data.path
|
|
@@ -744,7 +729,6 @@ class Component extends BaseComponent {
|
|
|
744
729
|
}
|
|
745
730
|
|
|
746
731
|
/**
|
|
747
|
-
*
|
|
748
732
|
* @param {Object} data
|
|
749
733
|
* @param {Neo.component.Base} data.component
|
|
750
734
|
* @param {Number} data.rowHeight
|
|
@@ -759,7 +743,6 @@ class Component extends BaseComponent {
|
|
|
759
743
|
}
|
|
760
744
|
|
|
761
745
|
/**
|
|
762
|
-
*
|
|
763
746
|
* @param {Object} data
|
|
764
747
|
*/
|
|
765
748
|
onWheel(data) {
|
|
@@ -842,7 +825,6 @@ class Component extends BaseComponent {
|
|
|
842
825
|
}
|
|
843
826
|
|
|
844
827
|
/**
|
|
845
|
-
*
|
|
846
828
|
* @param {Date} date
|
|
847
829
|
*/
|
|
848
830
|
setFirstColumnDate(date) {
|
|
@@ -968,7 +950,6 @@ class Component extends BaseComponent {
|
|
|
968
950
|
}
|
|
969
951
|
|
|
970
952
|
/**
|
|
971
|
-
*
|
|
972
953
|
* @param {Boolean} [create=false]
|
|
973
954
|
* @param {Boolean} [silent=false]
|
|
974
955
|
*/
|