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
|
@@ -155,7 +155,6 @@ class EventDragZone extends DragZone {
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
|
-
*
|
|
159
158
|
* @param {Object} data
|
|
160
159
|
*/
|
|
161
160
|
createDragProxy(data) {
|
|
@@ -257,7 +256,6 @@ class EventDragZone extends DragZone {
|
|
|
257
256
|
}
|
|
258
257
|
|
|
259
258
|
/**
|
|
260
|
-
*
|
|
261
259
|
* @param {Object} data
|
|
262
260
|
*/
|
|
263
261
|
dragMove(data) {
|
|
@@ -497,16 +495,13 @@ class EventDragZone extends DragZone {
|
|
|
497
495
|
}
|
|
498
496
|
|
|
499
497
|
/**
|
|
500
|
-
*
|
|
501
498
|
* @param {Object} data
|
|
502
499
|
*/
|
|
503
500
|
dragStart(data) {
|
|
504
501
|
let me = this,
|
|
505
502
|
eventDuration, offsetX, offsetY;
|
|
506
503
|
|
|
507
|
-
|
|
508
|
-
id: [me.getDragElementRoot().id, data.path[1].id]
|
|
509
|
-
}).then(rects => {
|
|
504
|
+
me.owner.getDomRect([me.getDragElementRoot().id, data.path[1].id]).then(rects => {
|
|
510
505
|
eventDuration = (me.eventRecord.endDate - me.eventRecord.startDate) / 60 / 1000;
|
|
511
506
|
offsetX = data.clientX - rects[0].left;
|
|
512
507
|
offsetY = data.clientY - rects[0].top;
|
|
@@ -22,11 +22,10 @@ class DragDrop extends Base {
|
|
|
22
22
|
}}
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
25
|
* @param {Object} config
|
|
27
26
|
*/
|
|
28
|
-
|
|
29
|
-
super(config);
|
|
27
|
+
construct(config) {
|
|
28
|
+
super.construct(config);
|
|
30
29
|
|
|
31
30
|
let me = this,
|
|
32
31
|
columnOpts = {scope: me, delegate: '.neo-c-w-column'},
|
|
@@ -60,7 +59,6 @@ class DragDrop extends Base {
|
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
/**
|
|
63
|
-
*
|
|
64
62
|
* @param {Object} opts
|
|
65
63
|
* @param {Object} opts.dragElement
|
|
66
64
|
* @param {Boolean} opts.enableResizingAcrossOppositeEdge
|
|
@@ -106,7 +104,6 @@ class DragDrop extends Base {
|
|
|
106
104
|
}
|
|
107
105
|
|
|
108
106
|
/**
|
|
109
|
-
*
|
|
110
107
|
* @param {Object} path
|
|
111
108
|
* @returns {Boolean}
|
|
112
109
|
*/
|
|
@@ -115,7 +112,6 @@ class DragDrop extends Base {
|
|
|
115
112
|
}
|
|
116
113
|
|
|
117
114
|
/**
|
|
118
|
-
*
|
|
119
115
|
* @param {Object} eventData
|
|
120
116
|
* @returns {Boolean}
|
|
121
117
|
*/
|
|
@@ -124,7 +120,6 @@ class DragDrop extends Base {
|
|
|
124
120
|
}
|
|
125
121
|
|
|
126
122
|
/**
|
|
127
|
-
*
|
|
128
123
|
* @param {Object} data
|
|
129
124
|
*/
|
|
130
125
|
onColumnDragEnd(data) {
|
|
@@ -149,7 +144,6 @@ class DragDrop extends Base {
|
|
|
149
144
|
}
|
|
150
145
|
|
|
151
146
|
/**
|
|
152
|
-
*
|
|
153
147
|
* @param {Object} data
|
|
154
148
|
*/
|
|
155
149
|
onColumnDragMove(data) {
|
|
@@ -159,7 +153,6 @@ class DragDrop extends Base {
|
|
|
159
153
|
}
|
|
160
154
|
|
|
161
155
|
/**
|
|
162
|
-
*
|
|
163
156
|
* @param {Object} data
|
|
164
157
|
*/
|
|
165
158
|
onColumnDragStart(data) {
|
|
@@ -226,7 +219,6 @@ class DragDrop extends Base {
|
|
|
226
219
|
}
|
|
227
220
|
|
|
228
221
|
/**
|
|
229
|
-
*
|
|
230
222
|
* @param {Object} data
|
|
231
223
|
*/
|
|
232
224
|
onEventDragEnd(data) {
|
|
@@ -248,7 +240,6 @@ class DragDrop extends Base {
|
|
|
248
240
|
}
|
|
249
241
|
|
|
250
242
|
/**
|
|
251
|
-
*
|
|
252
243
|
* @param {Object} data
|
|
253
244
|
*/
|
|
254
245
|
onEventDragMove(data) {
|
|
@@ -265,7 +256,6 @@ class DragDrop extends Base {
|
|
|
265
256
|
}
|
|
266
257
|
|
|
267
258
|
/**
|
|
268
|
-
*
|
|
269
259
|
* @param {Object} data
|
|
270
260
|
*/
|
|
271
261
|
onEventDragStart(data) {
|
|
@@ -14,7 +14,6 @@ class EventResizable extends Resizable {
|
|
|
14
14
|
}}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
17
|
* @param {Object} data
|
|
19
18
|
*/
|
|
20
19
|
onDragEnd(data) {
|
|
@@ -26,7 +25,6 @@ class EventResizable extends Resizable {
|
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
/**
|
|
29
|
-
*
|
|
30
28
|
* @param {Object} data
|
|
31
29
|
*/
|
|
32
30
|
onDragMove(data) {
|
|
@@ -34,7 +32,6 @@ class EventResizable extends Resizable {
|
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
/**
|
|
37
|
-
*
|
|
38
35
|
* @param {Object} data
|
|
39
36
|
*/
|
|
40
37
|
onDragStart(data) {
|
package/src/collection/Base.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import CoreBase from '../core/Base.mjs';
|
|
2
2
|
import Filter from './Filter.mjs';
|
|
3
|
-
import Logger from '../
|
|
3
|
+
import Logger from '../util/Logger.mjs';
|
|
4
4
|
import Sorter from './Sorter.mjs';
|
|
5
5
|
import Observable from '../core/Observable.mjs';
|
|
6
6
|
import Util from '../core/Util.mjs';
|
|
@@ -106,11 +106,10 @@ class Base extends CoreBase {
|
|
|
106
106
|
}}
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
110
109
|
* @param config
|
|
111
110
|
*/
|
|
112
|
-
|
|
113
|
-
super(config);
|
|
111
|
+
construct(config) {
|
|
112
|
+
super.construct(config);
|
|
114
113
|
|
|
115
114
|
let me = this,
|
|
116
115
|
symbolConfig = {enumerable: false, writable: true};
|
|
@@ -142,7 +141,6 @@ class Base extends CoreBase {
|
|
|
142
141
|
}
|
|
143
142
|
|
|
144
143
|
/**
|
|
145
|
-
*
|
|
146
144
|
* @param {Array} value
|
|
147
145
|
* @param {Array} oldValue
|
|
148
146
|
* @protected
|
|
@@ -161,7 +159,6 @@ class Base extends CoreBase {
|
|
|
161
159
|
}
|
|
162
160
|
|
|
163
161
|
/**
|
|
164
|
-
*
|
|
165
162
|
* @param {Array} value
|
|
166
163
|
* @param {Array} oldValue
|
|
167
164
|
* @protected
|
|
@@ -182,7 +179,6 @@ class Base extends CoreBase {
|
|
|
182
179
|
}
|
|
183
180
|
|
|
184
181
|
/**
|
|
185
|
-
*
|
|
186
182
|
* @param {Array} value
|
|
187
183
|
* @param {Array} oldValue
|
|
188
184
|
* @protected
|
|
@@ -203,7 +199,6 @@ class Base extends CoreBase {
|
|
|
203
199
|
}
|
|
204
200
|
|
|
205
201
|
/**
|
|
206
|
-
*
|
|
207
202
|
* @param {Number|String} value
|
|
208
203
|
* @param {Number|String} oldValue
|
|
209
204
|
* @protected
|
|
@@ -249,7 +244,6 @@ class Base extends CoreBase {
|
|
|
249
244
|
}
|
|
250
245
|
|
|
251
246
|
/**
|
|
252
|
-
*
|
|
253
247
|
* @param {Array} value
|
|
254
248
|
* @param {Array} oldValue
|
|
255
249
|
* @protected
|
|
@@ -307,7 +301,6 @@ class Base extends CoreBase {
|
|
|
307
301
|
}
|
|
308
302
|
|
|
309
303
|
/**
|
|
310
|
-
*
|
|
311
304
|
* @param {Map|null} value
|
|
312
305
|
* @param {Map|null} oldValue
|
|
313
306
|
* @protected
|
|
@@ -317,7 +310,6 @@ class Base extends CoreBase {
|
|
|
317
310
|
}
|
|
318
311
|
|
|
319
312
|
/**
|
|
320
|
-
*
|
|
321
313
|
* @param {Array} value
|
|
322
314
|
* @param {Array} oldValue
|
|
323
315
|
* @protected
|
|
@@ -370,7 +362,6 @@ class Base extends CoreBase {
|
|
|
370
362
|
}
|
|
371
363
|
|
|
372
364
|
/**
|
|
373
|
-
*
|
|
374
365
|
* @param opts
|
|
375
366
|
* @protected
|
|
376
367
|
*/
|
|
@@ -432,7 +423,6 @@ class Base extends CoreBase {
|
|
|
432
423
|
}
|
|
433
424
|
|
|
434
425
|
/**
|
|
435
|
-
*
|
|
436
426
|
* @returns {Neo.collection.Base} The cloned collection
|
|
437
427
|
*/
|
|
438
428
|
clone() {
|
|
@@ -793,7 +783,6 @@ class Base extends CoreBase {
|
|
|
793
783
|
}
|
|
794
784
|
|
|
795
785
|
/**
|
|
796
|
-
*
|
|
797
786
|
* @returns {Number}
|
|
798
787
|
*/
|
|
799
788
|
getCountMutations() {
|
|
@@ -849,7 +838,6 @@ class Base extends CoreBase {
|
|
|
849
838
|
}
|
|
850
839
|
|
|
851
840
|
/**
|
|
852
|
-
*
|
|
853
841
|
* Returns a boolean asserting whether a value has been associated to the key in the Collection or not
|
|
854
842
|
* @param {Number|String} key
|
|
855
843
|
* @returns {Boolean}
|
|
@@ -905,7 +893,6 @@ class Base extends CoreBase {
|
|
|
905
893
|
}
|
|
906
894
|
|
|
907
895
|
/**
|
|
908
|
-
*
|
|
909
896
|
* @returns {Boolean} true in case the collection is filtered
|
|
910
897
|
*/
|
|
911
898
|
isFiltered() {
|
|
@@ -913,7 +900,6 @@ class Base extends CoreBase {
|
|
|
913
900
|
}
|
|
914
901
|
|
|
915
902
|
/**
|
|
916
|
-
*
|
|
917
903
|
* @param {Object} item
|
|
918
904
|
* @returns {boolean}
|
|
919
905
|
* @protected
|
|
@@ -936,7 +922,6 @@ class Base extends CoreBase {
|
|
|
936
922
|
}
|
|
937
923
|
|
|
938
924
|
/**
|
|
939
|
-
*
|
|
940
925
|
* @returns {Boolean} true in case the collection is sorted
|
|
941
926
|
*/
|
|
942
927
|
isSorted() {
|
|
@@ -952,7 +937,6 @@ class Base extends CoreBase {
|
|
|
952
937
|
}
|
|
953
938
|
|
|
954
939
|
/**
|
|
955
|
-
*
|
|
956
940
|
* @param {Object} opts
|
|
957
941
|
* @protected
|
|
958
942
|
*/
|
|
@@ -961,7 +945,6 @@ class Base extends CoreBase {
|
|
|
961
945
|
}
|
|
962
946
|
|
|
963
947
|
/**
|
|
964
|
-
*
|
|
965
948
|
* @param {Object} opts
|
|
966
949
|
* @protected
|
|
967
950
|
*/
|
|
@@ -976,7 +959,6 @@ class Base extends CoreBase {
|
|
|
976
959
|
}
|
|
977
960
|
|
|
978
961
|
/**
|
|
979
|
-
*
|
|
980
962
|
* @param {Object} opts
|
|
981
963
|
* @protected
|
|
982
964
|
*/
|
|
@@ -1042,7 +1024,6 @@ class Base extends CoreBase {
|
|
|
1042
1024
|
}
|
|
1043
1025
|
|
|
1044
1026
|
/**
|
|
1045
|
-
*
|
|
1046
1027
|
* @param {function} callback Function to test for each item, taking three parameters:
|
|
1047
1028
|
* @param {Object} callback.item The current collection item being processed
|
|
1048
1029
|
* @param {Number} [callback.index] The index of the current item being processed
|
|
@@ -63,7 +63,6 @@ class Sorter extends Base {
|
|
|
63
63
|
}}
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
66
|
* @param {String} value
|
|
68
67
|
* @param {String} oldValue
|
|
69
68
|
*/
|
|
@@ -81,7 +80,6 @@ class Sorter extends Base {
|
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
/**
|
|
84
|
-
*
|
|
85
83
|
* @param {String} value
|
|
86
84
|
* @param {String} oldValue
|
|
87
85
|
*/
|
|
@@ -124,7 +122,6 @@ class Sorter extends Base {
|
|
|
124
122
|
}
|
|
125
123
|
|
|
126
124
|
/**
|
|
127
|
-
*
|
|
128
125
|
* @param {*} value
|
|
129
126
|
* @returns {*} value
|
|
130
127
|
*/
|
package/src/component/Base.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import ComponentManager from '../manager/Component.mjs';
|
|
|
3
3
|
import CoreBase from '../core/Base.mjs';
|
|
4
4
|
import DomEventManager from '../manager/DomEvent.mjs';
|
|
5
5
|
import KeyNavigation from '../util/KeyNavigation.mjs';
|
|
6
|
-
import Logger from '../
|
|
6
|
+
import Logger from '../util/Logger.mjs';
|
|
7
7
|
import NeoArray from '../util/Array.mjs';
|
|
8
8
|
import Observable from '../core/Observable.mjs';
|
|
9
9
|
import Style from '../util/Style.mjs';
|
|
@@ -959,6 +959,19 @@ class Base extends CoreBase {
|
|
|
959
959
|
return this.getConfigInstanceByNtype('controller', ntype);
|
|
960
960
|
}
|
|
961
961
|
|
|
962
|
+
/**
|
|
963
|
+
* Convenience shortcut
|
|
964
|
+
* @param {String[]|String} id=this.id
|
|
965
|
+
* @param {String} appName=this.appName
|
|
966
|
+
* @returns {Promise<*>}
|
|
967
|
+
*/
|
|
968
|
+
getDomRect(id=this.id, appName=this.appName) {
|
|
969
|
+
return Neo.main.DomAccess.getBoundingClientRect({
|
|
970
|
+
appName,
|
|
971
|
+
id
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
|
|
962
975
|
/**
|
|
963
976
|
* Returns this.model or the closest parent model
|
|
964
977
|
* @param {String} [ntype]
|
|
@@ -973,7 +986,6 @@ class Base extends CoreBase {
|
|
|
973
986
|
}
|
|
974
987
|
|
|
975
988
|
/**
|
|
976
|
-
*
|
|
977
989
|
* @param {Object|String} opts
|
|
978
990
|
* @returns {Neo.plugin.Base|null}
|
|
979
991
|
*/
|
|
@@ -1290,7 +1302,6 @@ class Base extends CoreBase {
|
|
|
1290
1302
|
}
|
|
1291
1303
|
|
|
1292
1304
|
/**
|
|
1293
|
-
*
|
|
1294
1305
|
* @param {Array|Object} value
|
|
1295
1306
|
*/
|
|
1296
1307
|
removeDomListeners(value) {
|
package/src/component/Chip.mjs
CHANGED
|
@@ -58,11 +58,10 @@ class Chip extends Component {
|
|
|
58
58
|
}}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
62
61
|
* @param {Object} config
|
|
63
62
|
*/
|
|
64
|
-
|
|
65
|
-
super(config);
|
|
63
|
+
construct(config) {
|
|
64
|
+
super.construct(config);
|
|
66
65
|
|
|
67
66
|
let me = this,
|
|
68
67
|
domListeners;
|
|
@@ -151,7 +150,6 @@ class Chip extends Component {
|
|
|
151
150
|
}
|
|
152
151
|
|
|
153
152
|
/**
|
|
154
|
-
*
|
|
155
153
|
* @param {Object} data
|
|
156
154
|
*/
|
|
157
155
|
onCloseButtonClick(data) {
|
package/src/component/Circle.mjs
CHANGED
|
@@ -118,11 +118,10 @@ class Circle extends Component {
|
|
|
118
118
|
}}
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
122
121
|
* @param {Object} config
|
|
123
122
|
*/
|
|
124
|
-
|
|
125
|
-
super(config);
|
|
123
|
+
construct(config) {
|
|
124
|
+
super.construct(config);
|
|
126
125
|
|
|
127
126
|
Neo.main.DomEvents.registerPreventDefaultTargets({
|
|
128
127
|
name: 'contextmenu',
|
|
@@ -317,7 +316,6 @@ class Circle extends Component {
|
|
|
317
316
|
}
|
|
318
317
|
|
|
319
318
|
/**
|
|
320
|
-
*
|
|
321
319
|
* @returns {Object[]}
|
|
322
320
|
*/
|
|
323
321
|
calculateItemPositions() {
|
|
@@ -356,7 +354,6 @@ class Circle extends Component {
|
|
|
356
354
|
}
|
|
357
355
|
|
|
358
356
|
/**
|
|
359
|
-
*
|
|
360
357
|
* @param data
|
|
361
358
|
*/
|
|
362
359
|
collapseItem(data) {
|
|
@@ -376,7 +373,6 @@ class Circle extends Component {
|
|
|
376
373
|
}
|
|
377
374
|
|
|
378
375
|
/**
|
|
379
|
-
*
|
|
380
376
|
* @param {Boolean} [silent=false]
|
|
381
377
|
*/
|
|
382
378
|
createBacksideItems(silent=false) {
|
|
@@ -405,7 +401,6 @@ class Circle extends Component {
|
|
|
405
401
|
}
|
|
406
402
|
|
|
407
403
|
/**
|
|
408
|
-
*
|
|
409
404
|
* @param {Number} [startIndex=0]
|
|
410
405
|
* @param {Boolean} [silent=false]
|
|
411
406
|
*/
|
|
@@ -457,7 +452,6 @@ class Circle extends Component {
|
|
|
457
452
|
}
|
|
458
453
|
|
|
459
454
|
/**
|
|
460
|
-
*
|
|
461
455
|
* @param data
|
|
462
456
|
*/
|
|
463
457
|
expandItem(data) {
|
|
@@ -508,7 +502,6 @@ class Circle extends Component {
|
|
|
508
502
|
}
|
|
509
503
|
|
|
510
504
|
/**
|
|
511
|
-
*
|
|
512
505
|
* @param {String} itemId
|
|
513
506
|
* @returns {Object}
|
|
514
507
|
*/
|
|
@@ -519,7 +512,6 @@ class Circle extends Component {
|
|
|
519
512
|
}
|
|
520
513
|
|
|
521
514
|
/**
|
|
522
|
-
*
|
|
523
515
|
* @param {Number} index
|
|
524
516
|
* @returns {String}
|
|
525
517
|
*/
|
|
@@ -530,7 +522,6 @@ class Circle extends Component {
|
|
|
530
522
|
}
|
|
531
523
|
|
|
532
524
|
/**
|
|
533
|
-
*
|
|
534
525
|
* @param {String} vnodeId
|
|
535
526
|
* @returns {String|Number} itemId
|
|
536
527
|
*/
|
|
@@ -576,7 +567,6 @@ class Circle extends Component {
|
|
|
576
567
|
}
|
|
577
568
|
|
|
578
569
|
/**
|
|
579
|
-
*
|
|
580
570
|
* @param {Object} data
|
|
581
571
|
*/
|
|
582
572
|
onBacksideIconClick(data) {
|
|
@@ -604,7 +594,6 @@ class Circle extends Component {
|
|
|
604
594
|
}
|
|
605
595
|
|
|
606
596
|
/**
|
|
607
|
-
*
|
|
608
597
|
* @param {Object} data
|
|
609
598
|
*/
|
|
610
599
|
onContextMenu(data) {
|
|
@@ -612,7 +601,6 @@ class Circle extends Component {
|
|
|
612
601
|
}
|
|
613
602
|
|
|
614
603
|
/**
|
|
615
|
-
*
|
|
616
604
|
* @param {Object} data
|
|
617
605
|
*/
|
|
618
606
|
onMouseWheel(data) {
|
|
@@ -664,7 +652,6 @@ class Circle extends Component {
|
|
|
664
652
|
}
|
|
665
653
|
|
|
666
654
|
/**
|
|
667
|
-
*
|
|
668
655
|
* @param {Boolean} [silent=false]
|
|
669
656
|
*/
|
|
670
657
|
updateInnerCircle(silent=false) {
|
|
@@ -685,7 +672,6 @@ class Circle extends Component {
|
|
|
685
672
|
}
|
|
686
673
|
|
|
687
674
|
/**
|
|
688
|
-
*
|
|
689
675
|
* @param {Boolean} [silent=false]
|
|
690
676
|
*/
|
|
691
677
|
updateItemAngle(silent=false) {
|
|
@@ -703,7 +689,6 @@ class Circle extends Component {
|
|
|
703
689
|
}
|
|
704
690
|
|
|
705
691
|
/**
|
|
706
|
-
*
|
|
707
692
|
* @param {Number} value
|
|
708
693
|
* @param {Boolean} [silent=false]
|
|
709
694
|
* @param {Number} [startIndex=0]
|
|
@@ -723,7 +708,6 @@ class Circle extends Component {
|
|
|
723
708
|
}
|
|
724
709
|
|
|
725
710
|
/**
|
|
726
|
-
*
|
|
727
711
|
* @param {Boolean} [silent=false]
|
|
728
712
|
*/
|
|
729
713
|
updateItemPositions(silent=false) {
|
|
@@ -753,7 +737,6 @@ class Circle extends Component {
|
|
|
753
737
|
}
|
|
754
738
|
|
|
755
739
|
/**
|
|
756
|
-
*
|
|
757
740
|
* @param {Boolean} [silent=false]
|
|
758
741
|
*/
|
|
759
742
|
updateOuterCircle(silent=false) {
|
|
@@ -787,7 +770,6 @@ class Circle extends Component {
|
|
|
787
770
|
}
|
|
788
771
|
|
|
789
772
|
/**
|
|
790
|
-
*
|
|
791
773
|
* @param {Boolean} [silent=false]
|
|
792
774
|
*/
|
|
793
775
|
updateTitle(silent=false) {
|
|
@@ -138,11 +138,10 @@ class DateSelector extends Component {
|
|
|
138
138
|
}}
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
*
|
|
142
141
|
* @param {Object} config
|
|
143
142
|
*/
|
|
144
|
-
|
|
145
|
-
super(config);
|
|
143
|
+
construct(config) {
|
|
144
|
+
super.construct(config);
|
|
146
145
|
|
|
147
146
|
let me = this,
|
|
148
147
|
domListeners = me.domListeners;
|
|
@@ -387,7 +386,6 @@ class DateSelector extends Component {
|
|
|
387
386
|
}
|
|
388
387
|
|
|
389
388
|
/**
|
|
390
|
-
*
|
|
391
389
|
* @param {Number} increment
|
|
392
390
|
* @param {Number} yearIncrement
|
|
393
391
|
*/
|
|
@@ -402,9 +400,7 @@ class DateSelector extends Component {
|
|
|
402
400
|
if (!me.isUpdating) {
|
|
403
401
|
me.isUpdating = true;
|
|
404
402
|
|
|
405
|
-
|
|
406
|
-
id: [me.getCenterContentEl().id, me.getHeaderMonthEl().id]
|
|
407
|
-
}).then(data => {
|
|
403
|
+
me.getDomRect([me.getCenterContentEl().id, me.getHeaderMonthEl().id]).then(data => {
|
|
408
404
|
vdom = me.vdom;
|
|
409
405
|
x = slideDirection === 'right' ? 0 : -data[0].width;
|
|
410
406
|
|
|
@@ -476,7 +472,6 @@ class DateSelector extends Component {
|
|
|
476
472
|
}
|
|
477
473
|
|
|
478
474
|
/**
|
|
479
|
-
*
|
|
480
475
|
* @param {Number} increment
|
|
481
476
|
*/
|
|
482
477
|
changeYear(increment) {
|
|
@@ -489,9 +484,7 @@ class DateSelector extends Component {
|
|
|
489
484
|
if (!me.isUpdating) {
|
|
490
485
|
me.isUpdating = true;
|
|
491
486
|
|
|
492
|
-
|
|
493
|
-
id: me.getCenterContentEl().id
|
|
494
|
-
}).then(data => {
|
|
487
|
+
me.getDomRect(me.getCenterContentEl().id).then(data => {
|
|
495
488
|
scrollFromTop = me.scrollNewYearFromTop && increment < 0 || !me.scrollNewYearFromTop && increment > 0;
|
|
496
489
|
vdom = me.vdom;
|
|
497
490
|
y = scrollFromTop ? 0 : -data.height;
|
|
@@ -568,7 +561,6 @@ class DateSelector extends Component {
|
|
|
568
561
|
}
|
|
569
562
|
|
|
570
563
|
/**
|
|
571
|
-
*
|
|
572
564
|
* @param {Boolean} silent true to update the vdom silently
|
|
573
565
|
* @param {Object} [containerEl]
|
|
574
566
|
*/
|
|
@@ -678,7 +670,6 @@ class DateSelector extends Component {
|
|
|
678
670
|
}
|
|
679
671
|
|
|
680
672
|
/**
|
|
681
|
-
*
|
|
682
673
|
* @returns {Object}
|
|
683
674
|
*/
|
|
684
675
|
getCenterContentEl() {
|
|
@@ -686,7 +677,6 @@ class DateSelector extends Component {
|
|
|
686
677
|
}
|
|
687
678
|
|
|
688
679
|
/**
|
|
689
|
-
*
|
|
690
680
|
* @returns {Object}
|
|
691
681
|
*/
|
|
692
682
|
getHeaderMonthEl() {
|
|
@@ -694,7 +684,6 @@ class DateSelector extends Component {
|
|
|
694
684
|
}
|
|
695
685
|
|
|
696
686
|
/**
|
|
697
|
-
*
|
|
698
687
|
* @returns {Object}
|
|
699
688
|
*/
|
|
700
689
|
getHeaderYearEl() {
|
|
@@ -702,7 +691,6 @@ class DateSelector extends Component {
|
|
|
702
691
|
}
|
|
703
692
|
|
|
704
693
|
/**
|
|
705
|
-
*
|
|
706
694
|
* @param {Object} data
|
|
707
695
|
*/
|
|
708
696
|
onCellClick(data) {
|
|
@@ -715,7 +703,6 @@ class DateSelector extends Component {
|
|
|
715
703
|
}
|
|
716
704
|
|
|
717
705
|
/**
|
|
718
|
-
*
|
|
719
706
|
* @param {Object} data
|
|
720
707
|
*/
|
|
721
708
|
onComponentClick(data) {
|
|
@@ -735,7 +722,6 @@ class DateSelector extends Component {
|
|
|
735
722
|
}
|
|
736
723
|
|
|
737
724
|
/**
|
|
738
|
-
*
|
|
739
725
|
* @param {Object} data
|
|
740
726
|
*/
|
|
741
727
|
onComponentWheel(data) {
|
|
@@ -825,7 +811,6 @@ class DateSelector extends Component {
|
|
|
825
811
|
}
|
|
826
812
|
|
|
827
813
|
/**
|
|
828
|
-
*
|
|
829
814
|
* @param {String} value
|
|
830
815
|
* @param {String} oldValue
|
|
831
816
|
* @param {Boolean} [silent=false]
|
|
@@ -865,7 +850,6 @@ class DateSelector extends Component {
|
|
|
865
850
|
}
|
|
866
851
|
|
|
867
852
|
/**
|
|
868
|
-
*
|
|
869
853
|
* @param {Number} increment
|
|
870
854
|
* @param {Number} yearIncrement
|
|
871
855
|
* @param {Boolean} silent=false
|
|
@@ -966,7 +950,6 @@ class DateSelector extends Component {
|
|
|
966
950
|
}
|
|
967
951
|
|
|
968
952
|
/**
|
|
969
|
-
*
|
|
970
953
|
* @param {Number} increment
|
|
971
954
|
* @param {Boolean} [silent=false]
|
|
972
955
|
*/
|