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
package/src/main/DomEvents.mjs
CHANGED
|
@@ -108,7 +108,6 @@ class DomEvents extends Base {
|
|
|
108
108
|
}}
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
112
111
|
* @param {Object} config
|
|
113
112
|
*/
|
|
114
113
|
constructor(config) {
|
|
@@ -125,7 +124,6 @@ class DomEvents extends Base {
|
|
|
125
124
|
}
|
|
126
125
|
|
|
127
126
|
/**
|
|
128
|
-
*
|
|
129
127
|
* @param {Object} data
|
|
130
128
|
*/
|
|
131
129
|
addDomListener(data) {
|
|
@@ -156,7 +154,7 @@ class DomEvents extends Base {
|
|
|
156
154
|
|
|
157
155
|
Neo.worker.Manager.sendMessage(data.origin, {
|
|
158
156
|
action : 'reply',
|
|
159
|
-
data
|
|
157
|
+
data,
|
|
160
158
|
replyId: data.id,
|
|
161
159
|
success: true
|
|
162
160
|
});
|
|
@@ -249,7 +247,6 @@ class DomEvents extends Base {
|
|
|
249
247
|
}
|
|
250
248
|
|
|
251
249
|
/**
|
|
252
|
-
*
|
|
253
250
|
* @param {Object} event
|
|
254
251
|
* @returns {Object}
|
|
255
252
|
*/
|
|
@@ -265,52 +262,49 @@ class DomEvents extends Base {
|
|
|
265
262
|
}
|
|
266
263
|
|
|
267
264
|
/**
|
|
268
|
-
*
|
|
269
265
|
* @param {Object} event
|
|
270
266
|
* @returns {Object}
|
|
271
267
|
*/
|
|
272
268
|
getKeyboardEventData(event) {
|
|
273
|
-
|
|
269
|
+
let {altKey, code, ctrlKey, key, keyCode, metaKey, shiftKey} = event;
|
|
274
270
|
|
|
275
271
|
return {
|
|
276
272
|
...this.getEventData(event),
|
|
277
|
-
altKey
|
|
278
|
-
code
|
|
279
|
-
ctrlKey
|
|
280
|
-
key
|
|
281
|
-
keyCode
|
|
282
|
-
metaKey
|
|
283
|
-
shiftKey
|
|
273
|
+
altKey,
|
|
274
|
+
code,
|
|
275
|
+
ctrlKey,
|
|
276
|
+
key,
|
|
277
|
+
keyCode,
|
|
278
|
+
metaKey,
|
|
279
|
+
shiftKey
|
|
284
280
|
};
|
|
285
281
|
}
|
|
286
282
|
|
|
287
283
|
/**
|
|
288
|
-
*
|
|
289
284
|
* @param {Object} event
|
|
290
285
|
* @returns {Object}
|
|
291
286
|
*/
|
|
292
287
|
getMouseEventData(event) {
|
|
293
|
-
|
|
288
|
+
let {altKey, clientX, clientY, ctrlKey, metaKey, offsetX, offsetY, pageX, pageY, screenX, screenY, shiftKey} = event;
|
|
294
289
|
|
|
295
290
|
return {
|
|
296
291
|
...this.getEventData(event),
|
|
297
|
-
altKey
|
|
298
|
-
clientX
|
|
299
|
-
clientY
|
|
300
|
-
ctrlKey
|
|
301
|
-
metaKey
|
|
302
|
-
offsetX
|
|
303
|
-
offsetY
|
|
304
|
-
pageX
|
|
305
|
-
pageY
|
|
306
|
-
screenX
|
|
307
|
-
screenY
|
|
308
|
-
shiftKey
|
|
292
|
+
altKey,
|
|
293
|
+
clientX,
|
|
294
|
+
clientY,
|
|
295
|
+
ctrlKey,
|
|
296
|
+
metaKey,
|
|
297
|
+
offsetX,
|
|
298
|
+
offsetY,
|
|
299
|
+
pageX,
|
|
300
|
+
pageY,
|
|
301
|
+
screenX,
|
|
302
|
+
screenY,
|
|
303
|
+
shiftKey
|
|
309
304
|
};
|
|
310
305
|
}
|
|
311
306
|
|
|
312
307
|
/**
|
|
313
|
-
*
|
|
314
308
|
* @param {Element} element
|
|
315
309
|
* @returns {Element[]}
|
|
316
310
|
*/
|
|
@@ -330,7 +324,6 @@ class DomEvents extends Base {
|
|
|
330
324
|
}
|
|
331
325
|
|
|
332
326
|
/**
|
|
333
|
-
*
|
|
334
327
|
* @param {Object} node
|
|
335
328
|
* @returns {Object}
|
|
336
329
|
*/
|
|
@@ -397,18 +390,17 @@ class DomEvents extends Base {
|
|
|
397
390
|
* @param {Object} event
|
|
398
391
|
*/
|
|
399
392
|
onBeforeUnload(event) {
|
|
400
|
-
let
|
|
393
|
+
let manager = Neo.worker.Manager;
|
|
401
394
|
|
|
402
|
-
|
|
403
|
-
|
|
395
|
+
manager.appNames.forEach(appName => {
|
|
396
|
+
manager.broadcast({
|
|
404
397
|
action : 'disconnect',
|
|
405
|
-
appName
|
|
398
|
+
appName
|
|
406
399
|
});
|
|
407
400
|
})
|
|
408
401
|
}
|
|
409
402
|
|
|
410
403
|
/**
|
|
411
|
-
*
|
|
412
404
|
* @param {Object} event
|
|
413
405
|
*/
|
|
414
406
|
onChange(event) {
|
|
@@ -420,7 +412,6 @@ class DomEvents extends Base {
|
|
|
420
412
|
}
|
|
421
413
|
|
|
422
414
|
/**
|
|
423
|
-
*
|
|
424
415
|
* @param {Object} event
|
|
425
416
|
*/
|
|
426
417
|
onClick(event) {
|
|
@@ -428,13 +419,10 @@ class DomEvents extends Base {
|
|
|
428
419
|
|
|
429
420
|
me.sendMessageToApp(me.getMouseEventData(event));
|
|
430
421
|
|
|
431
|
-
|
|
432
|
-
event.preventDefault();
|
|
433
|
-
}
|
|
422
|
+
me.testPathInclusion(event, preventClickTargets) && event.preventDefault();
|
|
434
423
|
}
|
|
435
424
|
|
|
436
425
|
/**
|
|
437
|
-
*
|
|
438
426
|
* @param {Object} event
|
|
439
427
|
*/
|
|
440
428
|
onContextMenu(event) {
|
|
@@ -442,9 +430,7 @@ class DomEvents extends Base {
|
|
|
442
430
|
|
|
443
431
|
me.sendMessageToApp(me.getMouseEventData(event));
|
|
444
432
|
|
|
445
|
-
|
|
446
|
-
event.preventDefault();
|
|
447
|
-
}
|
|
433
|
+
me.testPathInclusion(event, preventContextmenuTargets) && event.preventDefault();
|
|
448
434
|
}
|
|
449
435
|
|
|
450
436
|
/**
|
|
@@ -456,7 +442,6 @@ class DomEvents extends Base {
|
|
|
456
442
|
}
|
|
457
443
|
|
|
458
444
|
/**
|
|
459
|
-
*
|
|
460
445
|
* @param {Object} event
|
|
461
446
|
*/
|
|
462
447
|
onDoubleClick(event) {
|
|
@@ -464,13 +449,10 @@ class DomEvents extends Base {
|
|
|
464
449
|
|
|
465
450
|
me.sendMessageToApp(me.getMouseEventData(event));
|
|
466
451
|
|
|
467
|
-
|
|
468
|
-
event.preventDefault();
|
|
469
|
-
}
|
|
452
|
+
me.testPathInclusion(event, preventClickTargets) && event.preventDefault();
|
|
470
453
|
}
|
|
471
454
|
|
|
472
455
|
/**
|
|
473
|
-
*
|
|
474
456
|
* @param {Object} event
|
|
475
457
|
*/
|
|
476
458
|
onDragOver(event) {
|
|
@@ -479,7 +461,6 @@ class DomEvents extends Base {
|
|
|
479
461
|
}
|
|
480
462
|
|
|
481
463
|
/**
|
|
482
|
-
*
|
|
483
464
|
* @param {Object} event
|
|
484
465
|
*/
|
|
485
466
|
onFocusIn(event) {
|
|
@@ -487,7 +468,6 @@ class DomEvents extends Base {
|
|
|
487
468
|
}
|
|
488
469
|
|
|
489
470
|
/**
|
|
490
|
-
*
|
|
491
471
|
* @param {Object} event
|
|
492
472
|
*/
|
|
493
473
|
onFocusOut(event) {
|
|
@@ -498,21 +478,20 @@ class DomEvents extends Base {
|
|
|
498
478
|
*
|
|
499
479
|
*/
|
|
500
480
|
onHashChange() {
|
|
501
|
-
|
|
502
|
-
|
|
481
|
+
let manager = Neo.worker.Manager,
|
|
482
|
+
hashString = location.hash.substr(1);
|
|
503
483
|
|
|
504
|
-
|
|
484
|
+
manager.sendMessage('app', {
|
|
505
485
|
action: 'hashChange',
|
|
506
486
|
data : {
|
|
507
|
-
appNames :
|
|
487
|
+
appNames : manager.appNames,
|
|
508
488
|
hash : this.parseHash(hashString),
|
|
509
|
-
hashString
|
|
489
|
+
hashString
|
|
510
490
|
}
|
|
511
491
|
});
|
|
512
492
|
}
|
|
513
493
|
|
|
514
494
|
/**
|
|
515
|
-
*
|
|
516
495
|
* @param {Object} event
|
|
517
496
|
*/
|
|
518
497
|
onKeyDown(event) {
|
|
@@ -526,7 +505,6 @@ class DomEvents extends Base {
|
|
|
526
505
|
}
|
|
527
506
|
|
|
528
507
|
/**
|
|
529
|
-
*
|
|
530
508
|
* @param {Object} event
|
|
531
509
|
*/
|
|
532
510
|
onKeyUp(event) {
|
|
@@ -534,7 +512,6 @@ class DomEvents extends Base {
|
|
|
534
512
|
}
|
|
535
513
|
|
|
536
514
|
/**
|
|
537
|
-
*
|
|
538
515
|
* @param {Object} event
|
|
539
516
|
*/
|
|
540
517
|
onMouseDown(event) {
|
|
@@ -542,7 +519,6 @@ class DomEvents extends Base {
|
|
|
542
519
|
}
|
|
543
520
|
|
|
544
521
|
/**
|
|
545
|
-
*
|
|
546
522
|
* @param {Object} event
|
|
547
523
|
*/
|
|
548
524
|
onMouseEnter(event) {
|
|
@@ -554,7 +530,6 @@ class DomEvents extends Base {
|
|
|
554
530
|
}
|
|
555
531
|
|
|
556
532
|
/**
|
|
557
|
-
*
|
|
558
533
|
* @param {Object} event
|
|
559
534
|
*/
|
|
560
535
|
onMouseLeave(event) {
|
|
@@ -566,7 +541,6 @@ class DomEvents extends Base {
|
|
|
566
541
|
}
|
|
567
542
|
|
|
568
543
|
/**
|
|
569
|
-
*
|
|
570
544
|
* @param {Object} event
|
|
571
545
|
*/
|
|
572
546
|
onMouseUp(event) {
|
|
@@ -574,7 +548,6 @@ class DomEvents extends Base {
|
|
|
574
548
|
}
|
|
575
549
|
|
|
576
550
|
/**
|
|
577
|
-
*
|
|
578
551
|
* @param {Object} event
|
|
579
552
|
*/
|
|
580
553
|
onWheel(event) {
|
|
@@ -592,22 +565,22 @@ class DomEvents extends Base {
|
|
|
592
565
|
preventUpdate = true;
|
|
593
566
|
} else {
|
|
594
567
|
Object.assign(lastWheelEvent, {
|
|
595
|
-
date
|
|
568
|
+
date,
|
|
596
569
|
target: targetCls
|
|
597
570
|
});
|
|
598
571
|
}
|
|
599
572
|
}
|
|
600
573
|
|
|
601
574
|
if (!preventUpdate) {
|
|
602
|
-
|
|
575
|
+
let {deltaX, deltaY, deltaZ} = event;
|
|
603
576
|
|
|
604
577
|
this.sendMessageToApp({
|
|
605
578
|
...this.getEventData(event),
|
|
606
579
|
clientHeight: target.node.clientHeight,
|
|
607
580
|
clientWidth : target.node.clientWidth,
|
|
608
|
-
deltaX
|
|
609
|
-
deltaY
|
|
610
|
-
deltaZ
|
|
581
|
+
deltaX,
|
|
582
|
+
deltaY,
|
|
583
|
+
deltaZ,
|
|
611
584
|
scrollLeft : target.node.scrollLeft,
|
|
612
585
|
scrollTop : target.node.scrollTop
|
|
613
586
|
});
|
|
@@ -678,7 +651,6 @@ class DomEvents extends Base {
|
|
|
678
651
|
}
|
|
679
652
|
|
|
680
653
|
/**
|
|
681
|
-
*
|
|
682
654
|
* @param {Object} data
|
|
683
655
|
* @param {Array|String} data.cls
|
|
684
656
|
* @param {String} data.name
|
|
@@ -700,9 +672,7 @@ class DomEvents extends Base {
|
|
|
700
672
|
}
|
|
701
673
|
|
|
702
674
|
data.cls.forEach(cls => {
|
|
703
|
-
|
|
704
|
-
preventArray.push(cls);
|
|
705
|
-
}
|
|
675
|
+
!preventArray.includes(cls) && preventArray.push(cls);
|
|
706
676
|
});
|
|
707
677
|
}
|
|
708
678
|
|
|
@@ -715,14 +685,11 @@ class DomEvents extends Base {
|
|
|
715
685
|
Neo.worker.Manager.sendMessage('app', {
|
|
716
686
|
action : 'domEvent',
|
|
717
687
|
eventName: data.type,
|
|
718
|
-
data
|
|
688
|
+
data
|
|
719
689
|
});
|
|
720
690
|
}
|
|
721
691
|
|
|
722
|
-
|
|
723
|
-
|
|
724
692
|
/**
|
|
725
|
-
*
|
|
726
693
|
* @param {Object} event
|
|
727
694
|
* @param {Object} targetArray
|
|
728
695
|
* @returns {Object|Boolean} target cls & node if found, false otherwise
|
|
@@ -741,7 +708,7 @@ class DomEvents extends Base {
|
|
|
741
708
|
if (node.classList?.contains(targetArray[j])) {
|
|
742
709
|
return {
|
|
743
710
|
cls : targetArray[j],
|
|
744
|
-
node
|
|
711
|
+
node
|
|
745
712
|
};
|
|
746
713
|
}
|
|
747
714
|
}
|
|
@@ -72,7 +72,6 @@ class AmCharts extends Base {
|
|
|
72
72
|
}}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
76
75
|
* @param {Object} config
|
|
77
76
|
*/
|
|
78
77
|
constructor(config) {
|
|
@@ -108,7 +107,6 @@ class AmCharts extends Base {
|
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
/**
|
|
111
|
-
*
|
|
112
110
|
* @param {Object} data
|
|
113
111
|
* @param {String} data.id
|
|
114
112
|
* @param {String} data.path
|
|
@@ -128,7 +126,6 @@ class AmCharts extends Base {
|
|
|
128
126
|
}
|
|
129
127
|
|
|
130
128
|
/**
|
|
131
|
-
*
|
|
132
129
|
* @param {Object} chart
|
|
133
130
|
*/
|
|
134
131
|
combineSeriesTooltip(chart) {
|
|
@@ -146,7 +143,6 @@ class AmCharts extends Base {
|
|
|
146
143
|
}
|
|
147
144
|
|
|
148
145
|
/**
|
|
149
|
-
*
|
|
150
146
|
* @param {Object} data
|
|
151
147
|
* @param {Boolean} data.combineSeriesTooltip
|
|
152
148
|
* @param {Object} data.config
|
|
@@ -185,7 +181,6 @@ class AmCharts extends Base {
|
|
|
185
181
|
}
|
|
186
182
|
|
|
187
183
|
/**
|
|
188
|
-
*
|
|
189
184
|
* @param {Object} data
|
|
190
185
|
* @param {String} data.id
|
|
191
186
|
*/
|
|
@@ -195,7 +190,6 @@ class AmCharts extends Base {
|
|
|
195
190
|
}
|
|
196
191
|
|
|
197
192
|
/**
|
|
198
|
-
*
|
|
199
193
|
* @param {String} id
|
|
200
194
|
* @returns {Boolean}
|
|
201
195
|
*/
|
|
@@ -227,7 +221,6 @@ class AmCharts extends Base {
|
|
|
227
221
|
}
|
|
228
222
|
|
|
229
223
|
/**
|
|
230
|
-
*
|
|
231
224
|
* @param {Object} data
|
|
232
225
|
* @param {String} data.id
|
|
233
226
|
* @param {Object} data.properties
|
|
@@ -243,7 +236,6 @@ class AmCharts extends Base {
|
|
|
243
236
|
}
|
|
244
237
|
|
|
245
238
|
/**
|
|
246
|
-
*
|
|
247
239
|
* @param {Object} data
|
|
248
240
|
* @param {String} data.id
|
|
249
241
|
* @param {Boolean} [data.isColor=false] true will wrap the value into am4core.color()
|
|
@@ -264,7 +256,6 @@ class AmCharts extends Base {
|
|
|
264
256
|
}
|
|
265
257
|
|
|
266
258
|
/**
|
|
267
|
-
*
|
|
268
259
|
* @param {Object} data
|
|
269
260
|
* @param {Object} data.data
|
|
270
261
|
* @param {String} data.dataPath
|
|
@@ -293,4 +284,4 @@ let instance = Neo.create(AmCharts);
|
|
|
293
284
|
|
|
294
285
|
Neo.applyToGlobalNs(instance);
|
|
295
286
|
|
|
296
|
-
export default instance;
|
|
287
|
+
export default instance;
|
|
@@ -31,7 +31,6 @@ class AnalyticsByGoogle extends Base {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
34
|
* @protected
|
|
36
35
|
*/
|
|
37
36
|
insertGoogleAnalyticsScript() {
|
|
@@ -61,4 +60,4 @@ let instance = Neo.create(AnalyticsByGoogle);
|
|
|
61
60
|
|
|
62
61
|
Neo.applyToGlobalNs(instance);
|
|
63
62
|
|
|
64
|
-
export default instance;
|
|
63
|
+
export default instance;
|
|
@@ -39,7 +39,6 @@ class CloneNode extends Base {
|
|
|
39
39
|
}}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
43
42
|
* @param {Object} data
|
|
44
43
|
* @param {Array} data.data
|
|
45
44
|
* @param {String} data.id The reference id, not DOM id
|
|
@@ -86,7 +85,6 @@ class CloneNode extends Base {
|
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
/**
|
|
89
|
-
*
|
|
90
88
|
* @param {Object} data
|
|
91
89
|
* @param {String} data.html
|
|
92
90
|
* @param {String} data.id The reference id, not DOM id
|
|
@@ -33,7 +33,6 @@ class Cookie extends Base {
|
|
|
33
33
|
}}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
36
|
* @param {String} name
|
|
38
37
|
* @returns {String}
|
|
39
38
|
*/
|
|
@@ -45,7 +44,6 @@ class Cookie extends Base {
|
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
/**
|
|
48
|
-
*
|
|
49
47
|
* @returns {String}
|
|
50
48
|
*/
|
|
51
49
|
getCookies() {
|
|
@@ -53,7 +51,6 @@ class Cookie extends Base {
|
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
/**
|
|
56
|
-
*
|
|
57
54
|
* @param {String} value
|
|
58
55
|
*/
|
|
59
56
|
setCookie(value) {
|
|
@@ -175,7 +175,6 @@ class DragDrop extends Base {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
|
-
*
|
|
179
178
|
* @param {Event} event
|
|
180
179
|
* @returns {Object}
|
|
181
180
|
*/
|
|
@@ -200,7 +199,6 @@ class DragDrop extends Base {
|
|
|
200
199
|
}
|
|
201
200
|
|
|
202
201
|
/**
|
|
203
|
-
*
|
|
204
202
|
* @param {Object} event
|
|
205
203
|
*/
|
|
206
204
|
onDragEnd(event) {
|
|
@@ -259,7 +257,6 @@ class DragDrop extends Base {
|
|
|
259
257
|
}
|
|
260
258
|
|
|
261
259
|
/**
|
|
262
|
-
*
|
|
263
260
|
* @param {Object} event
|
|
264
261
|
*/
|
|
265
262
|
onDragMove(event) {
|
|
@@ -320,7 +317,6 @@ class DragDrop extends Base {
|
|
|
320
317
|
}
|
|
321
318
|
|
|
322
319
|
/**
|
|
323
|
-
*
|
|
324
320
|
* @param {Object} event
|
|
325
321
|
*/
|
|
326
322
|
onDragStart(event) {
|
|
@@ -344,7 +340,6 @@ class DragDrop extends Base {
|
|
|
344
340
|
}
|
|
345
341
|
|
|
346
342
|
/**
|
|
347
|
-
*
|
|
348
343
|
* @param {Object} event
|
|
349
344
|
*/
|
|
350
345
|
onMouseEnter(event) {
|
|
@@ -360,7 +355,6 @@ class DragDrop extends Base {
|
|
|
360
355
|
}
|
|
361
356
|
|
|
362
357
|
/**
|
|
363
|
-
*
|
|
364
358
|
* @param {Object} event
|
|
365
359
|
*/
|
|
366
360
|
onMouseLeave(event) {
|
|
@@ -376,7 +370,6 @@ class DragDrop extends Base {
|
|
|
376
370
|
}
|
|
377
371
|
|
|
378
372
|
/**
|
|
379
|
-
*
|
|
380
373
|
* @param {Array} path
|
|
381
374
|
* @returns {Boolean}
|
|
382
375
|
*/
|
|
@@ -416,7 +409,6 @@ class DragDrop extends Base {
|
|
|
416
409
|
}
|
|
417
410
|
|
|
418
411
|
/**
|
|
419
|
-
*
|
|
420
412
|
* @param {Object} data
|
|
421
413
|
* @param {Number} data.clientX
|
|
422
414
|
* @param {Number} data.clientY
|
|
@@ -509,7 +501,6 @@ class DragDrop extends Base {
|
|
|
509
501
|
}
|
|
510
502
|
|
|
511
503
|
/**
|
|
512
|
-
*
|
|
513
504
|
* @param {Object} data
|
|
514
505
|
* @param {String} data.id
|
|
515
506
|
*/
|
|
@@ -66,7 +66,6 @@ class HighlightJS extends Base {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
69
|
* @param {Object} data
|
|
71
70
|
* @param {String} data.text
|
|
72
71
|
* @param {String} data.vnodeId
|
|
@@ -86,7 +85,6 @@ class HighlightJS extends Base {
|
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
/**
|
|
89
|
-
*
|
|
90
88
|
* @param {Object} data
|
|
91
89
|
* @param {String} data.vnodeId
|
|
92
90
|
*/
|
|
@@ -102,7 +100,6 @@ class HighlightJS extends Base {
|
|
|
102
100
|
}
|
|
103
101
|
|
|
104
102
|
/**
|
|
105
|
-
*
|
|
106
103
|
* @param {Object} data
|
|
107
104
|
*/
|
|
108
105
|
syntaxHighlightInit(data) {
|
|
@@ -115,7 +112,6 @@ class HighlightJS extends Base {
|
|
|
115
112
|
}
|
|
116
113
|
|
|
117
114
|
/**
|
|
118
|
-
*
|
|
119
115
|
* @param {Object} data
|
|
120
116
|
* @param {Number} data.addLine
|
|
121
117
|
* @param {String} data.vnodeId
|
|
@@ -156,4 +152,4 @@ let instance = Neo.create(HighlightJS);
|
|
|
156
152
|
|
|
157
153
|
Neo.applyToGlobalNs(instance);
|
|
158
154
|
|
|
159
|
-
export default instance;
|
|
155
|
+
export default instance;
|
|
@@ -108,7 +108,6 @@ class MapboxGL extends Base {
|
|
|
108
108
|
}}
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
112
111
|
* @param {Object} config
|
|
113
112
|
*/
|
|
114
113
|
constructor(config) {
|
|
@@ -117,7 +116,6 @@ class MapboxGL extends Base {
|
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
/**
|
|
120
|
-
*
|
|
121
119
|
* @param {Object} data
|
|
122
120
|
* @param {String} data.id
|
|
123
121
|
* @param {Object[]} data.layers
|
|
@@ -141,7 +139,6 @@ class MapboxGL extends Base {
|
|
|
141
139
|
}
|
|
142
140
|
|
|
143
141
|
/**
|
|
144
|
-
*
|
|
145
142
|
* @param {Object} data
|
|
146
143
|
* @param {String} data.id
|
|
147
144
|
* @param {Object[]} data.sources
|
|
@@ -183,7 +180,6 @@ class MapboxGL extends Base {
|
|
|
183
180
|
}
|
|
184
181
|
|
|
185
182
|
/**
|
|
186
|
-
*
|
|
187
183
|
* @param {Object} map
|
|
188
184
|
* @param {Object} styleJson
|
|
189
185
|
* @param {String} [name]
|
|
@@ -216,7 +212,6 @@ class MapboxGL extends Base {
|
|
|
216
212
|
}
|
|
217
213
|
|
|
218
214
|
/**
|
|
219
|
-
*
|
|
220
215
|
* @param {Object} data
|
|
221
216
|
* @param {Boolean} [data.animate=false]
|
|
222
217
|
* @param {String} data.id
|
|
@@ -239,7 +234,6 @@ class MapboxGL extends Base {
|
|
|
239
234
|
}
|
|
240
235
|
|
|
241
236
|
/**
|
|
242
|
-
*
|
|
243
237
|
* @param {Object} data
|
|
244
238
|
* @param {String} data.accessToken
|
|
245
239
|
* @param {Object} data.center
|
|
@@ -278,7 +272,6 @@ class MapboxGL extends Base {
|
|
|
278
272
|
}
|
|
279
273
|
|
|
280
274
|
/**
|
|
281
|
-
*
|
|
282
275
|
* @param {Object} data
|
|
283
276
|
* @param {String} data.id
|
|
284
277
|
*/
|
|
@@ -288,7 +281,6 @@ class MapboxGL extends Base {
|
|
|
288
281
|
}
|
|
289
282
|
|
|
290
283
|
/**
|
|
291
|
-
*
|
|
292
284
|
* @param {String} id
|
|
293
285
|
* @returns {Boolean}
|
|
294
286
|
*/
|
|
@@ -309,7 +301,6 @@ class MapboxGL extends Base {
|
|
|
309
301
|
}
|
|
310
302
|
|
|
311
303
|
/**
|
|
312
|
-
*
|
|
313
304
|
* @param {Object} data
|
|
314
305
|
* @param {Object} event
|
|
315
306
|
* @param {Object} event.target map instance
|
|
@@ -349,7 +340,6 @@ class MapboxGL extends Base {
|
|
|
349
340
|
}
|
|
350
341
|
|
|
351
342
|
/**
|
|
352
|
-
*
|
|
353
343
|
* @param {Object} data
|
|
354
344
|
* @param {Object} event
|
|
355
345
|
* @param {Object} event.target map instance
|
|
@@ -430,7 +420,6 @@ class MapboxGL extends Base {
|
|
|
430
420
|
}
|
|
431
421
|
|
|
432
422
|
/**
|
|
433
|
-
*
|
|
434
423
|
* @param {Object} data
|
|
435
424
|
* @param {String} data.accessToken
|
|
436
425
|
* @param {String} data.id
|
|
@@ -463,7 +452,6 @@ class MapboxGL extends Base {
|
|
|
463
452
|
}
|
|
464
453
|
|
|
465
454
|
/**
|
|
466
|
-
*
|
|
467
455
|
* @param {Object} data
|
|
468
456
|
* @param {Object} data.data
|
|
469
457
|
* @param {String} data.dataSourceId
|
|
@@ -488,7 +476,6 @@ class MapboxGL extends Base {
|
|
|
488
476
|
}
|
|
489
477
|
|
|
490
478
|
/**
|
|
491
|
-
*
|
|
492
479
|
* @param {Object} data
|
|
493
480
|
* @param {String} data.id
|
|
494
481
|
* @param {Number} data.zoom
|
|
@@ -510,4 +497,4 @@ let instance = Neo.create(MapboxGL);
|
|
|
510
497
|
|
|
511
498
|
Neo.applyToGlobalNs(instance);
|
|
512
499
|
|
|
513
|
-
export default instance;
|
|
500
|
+
export default instance;
|
package/src/main/addon/Mwc.mjs
CHANGED