neo.mjs 2.3.19 → 3.0.0

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.
Files changed (119) hide show
  1. package/apps/covid/view/GalleryContainer.mjs +2 -2
  2. package/apps/covid/view/HelixContainer.mjs +2 -2
  3. package/apps/covid/view/TableContainer.mjs +2 -2
  4. package/apps/krausest/view/MainComponent.mjs +2 -2
  5. package/apps/krausest/view/TableComponent.mjs +2 -2
  6. package/apps/realworld/view/HomeComponent.mjs +2 -2
  7. package/apps/realworld/view/article/CommentComponent.mjs +2 -2
  8. package/apps/realworld/view/article/Component.mjs +2 -2
  9. package/apps/realworld/view/article/CreateCommentComponent.mjs +2 -2
  10. package/apps/realworld/view/article/CreateComponent.mjs +3 -3
  11. package/apps/realworld/view/article/PreviewComponent.mjs +2 -2
  12. package/apps/realworld/view/article/TagListComponent.mjs +2 -2
  13. package/apps/realworld/view/user/ProfileComponent.mjs +2 -2
  14. package/apps/realworld/view/user/SettingsComponent.mjs +2 -2
  15. package/apps/realworld/view/user/SignUpComponent.mjs +2 -2
  16. package/apps/realworld2/view/article/HelixContainer.mjs +2 -2
  17. package/apps/realworld2/view/article/PreviewComponent.mjs +2 -2
  18. package/apps/realworld2/view/article/TagListComponent.mjs +2 -2
  19. package/apps/realworld2/view/user/LoginFormContainer.mjs +2 -2
  20. package/apps/sharedcovid/view/GalleryContainer.mjs +2 -2
  21. package/apps/sharedcovid/view/HelixContainer.mjs +2 -2
  22. package/apps/sharedcovid/view/TableContainer.mjs +2 -2
  23. package/apps/sharedcovid/view/mapboxGl/Container.mjs +2 -2
  24. package/docs/app/view/ContentTabContainer.mjs +2 -2
  25. package/docs/app/view/MainContainer.mjs +2 -2
  26. package/docs/app/view/classdetails/SourceViewComponent.mjs +2 -2
  27. package/docs/app/view/classdetails/TutorialComponent.mjs +2 -2
  28. package/docs/tutorials/02_ClassSystem.html +3 -3
  29. package/docs/tutorials/02_ClassSystem.md +2 -2
  30. package/docs/tutorials/09_TodoList_version1.html +8 -8
  31. package/examples/calendar/weekview/MainContainer.mjs +2 -2
  32. package/examples/component/coronaGallery/MainContainer.mjs +2 -2
  33. package/examples/component/coronaHelix/MainContainer.mjs +2 -2
  34. package/examples/component/gallery/MainContainer.mjs +2 -2
  35. package/examples/component/helix/MainContainer.mjs +2 -2
  36. package/examples/core/config/MainContainer.mjs +2 -2
  37. package/examples/dialog/MainContainer.mjs +2 -2
  38. package/examples/list/animate/MainContainer.mjs +2 -2
  39. package/examples/model/multiWindow/ViewportController.mjs +2 -2
  40. package/examples/todoList/version1/MainComponent.mjs +3 -3
  41. package/examples/todoList/version2/MainContainer.mjs +3 -3
  42. package/package.json +1 -1
  43. package/src/Main.mjs +2 -2
  44. package/src/Neo.mjs +26 -25
  45. package/src/button/Split.mjs +2 -2
  46. package/src/calendar/view/EditEventContainer.mjs +2 -2
  47. package/src/calendar/view/MainContainer.mjs +2 -2
  48. package/src/calendar/view/MainContainerModel.mjs +2 -2
  49. package/src/calendar/view/SettingsContainer.mjs +2 -2
  50. package/src/calendar/view/YearComponent.mjs +2 -2
  51. package/src/calendar/view/calendars/EditContainer.mjs +2 -2
  52. package/src/calendar/view/month/Component.mjs +2 -2
  53. package/src/calendar/view/week/Component.mjs +2 -2
  54. package/src/calendar/view/week/TimeAxisComponent.mjs +2 -2
  55. package/src/calendar/view/week/plugin/DragDrop.mjs +2 -2
  56. package/src/collection/Base.mjs +2 -2
  57. package/src/component/Chip.mjs +2 -2
  58. package/src/component/Circle.mjs +2 -2
  59. package/src/component/DateSelector.mjs +2 -2
  60. package/src/component/Gallery.mjs +2 -2
  61. package/src/component/Helix.mjs +2 -2
  62. package/src/component/Splitter.mjs +2 -2
  63. package/src/component/mwc/Button.mjs +2 -2
  64. package/src/component/mwc/TextField.mjs +2 -2
  65. package/src/container/Panel.mjs +2 -2
  66. package/src/controller/Application.mjs +2 -2
  67. package/src/controller/Base.mjs +2 -2
  68. package/src/controller/Component.mjs +2 -2
  69. package/src/core/Base.mjs +25 -1
  70. package/src/core/IdGenerator.mjs +1 -1
  71. package/src/data/Store.mjs +2 -2
  72. package/src/dialog/Base.mjs +2 -2
  73. package/src/draggable/DragProxyComponent.mjs +2 -2
  74. package/src/draggable/DragZone.mjs +2 -2
  75. package/src/draggable/DropZone.mjs +2 -2
  76. package/src/draggable/list/DragZone.mjs +2 -2
  77. package/src/draggable/toolbar/DragZone.mjs +2 -2
  78. package/src/filter/ToggleOperatorsButton.mjs +2 -2
  79. package/src/form/field/CheckBox.mjs +2 -2
  80. package/src/form/field/Color.mjs +2 -2
  81. package/src/form/field/Date.mjs +2 -2
  82. package/src/form/field/Display.mjs +2 -2
  83. package/src/form/field/Range.mjs +2 -2
  84. package/src/form/field/Select.mjs +2 -2
  85. package/src/form/field/Text.mjs +2 -2
  86. package/src/form/field/Time.mjs +2 -2
  87. package/src/form/field/trigger/Base.mjs +2 -2
  88. package/src/form/field/trigger/Time.mjs +2 -2
  89. package/src/grid/Container.mjs +2 -2
  90. package/src/list/Base.mjs +2 -2
  91. package/src/list/plugin/Animate.mjs +2 -2
  92. package/src/main/DomAccess.mjs +2 -2
  93. package/src/main/DomEvents.mjs +2 -2
  94. package/src/main/addon/AmCharts.mjs +2 -2
  95. package/src/main/addon/AnalyticsByGoogle.mjs +2 -2
  96. package/src/main/addon/DragDrop.mjs +2 -2
  97. package/src/main/addon/HighlightJS.mjs +2 -2
  98. package/src/main/addon/MapboxGL.mjs +3 -2
  99. package/src/main/addon/Markdown.mjs +3 -3
  100. package/src/main/addon/Siesta.mjs +2 -2
  101. package/src/main/addon/Stylesheet.mjs +2 -2
  102. package/src/main/addon/WindowPosition.mjs +2 -2
  103. package/src/main/draggable/sensor/Mouse.mjs +2 -2
  104. package/src/main/draggable/sensor/Touch.mjs +2 -2
  105. package/src/manager/Component.mjs +2 -2
  106. package/src/manager/Instance.mjs +2 -2
  107. package/src/model/Component.mjs +2 -2
  108. package/src/plugin/Base.mjs +2 -2
  109. package/src/plugin/Resizable.mjs +2 -2
  110. package/src/selection/table/CellColumnModel.mjs +2 -2
  111. package/src/selection/table/CellColumnRowModel.mjs +2 -2
  112. package/src/selection/table/CellRowModel.mjs +2 -2
  113. package/src/table/Container.mjs +2 -2
  114. package/src/table/header/Button.mjs +2 -2
  115. package/src/util/Logger.mjs +2 -2
  116. package/src/worker/App.mjs +2 -2
  117. package/src/worker/Base.mjs +2 -2
  118. package/src/worker/Manager.mjs +2 -2
  119. package/test/siesta/tests/ClassConfigsAndFields.mjs +257 -19
@@ -50,8 +50,8 @@ class Time extends Picker {
50
50
  /**
51
51
  * @param {Object} config
52
52
  */
53
- constructor(config) {
54
- super(config);
53
+ construct(config) {
54
+ super.construct(config);
55
55
 
56
56
  let me = this,
57
57
  vdom = me.vdom;
@@ -76,8 +76,8 @@ class Container extends BaseContainer {
76
76
  /**
77
77
  * @param {Object} config
78
78
  */
79
- constructor(config) {
80
- super(config);
79
+ construct(config) {
80
+ super.construct(config);
81
81
 
82
82
  this.createRandomViewData(this.amountRows);
83
83
  }
package/src/list/Base.mjs CHANGED
@@ -105,8 +105,8 @@ class Base extends Component {
105
105
  /**
106
106
  * @param {Object} config
107
107
  */
108
- constructor(config) {
109
- super(config);
108
+ construct(config) {
109
+ super.construct(config);
110
110
 
111
111
  let me = this,
112
112
  domListeners = me.domListeners;
@@ -45,8 +45,8 @@ class Animate extends Base {
45
45
  /**
46
46
  * @param {Object} config
47
47
  */
48
- constructor(config) {
49
- super(config);
48
+ construct(config) {
49
+ super.construct(config);
50
50
 
51
51
  let me = this;
52
52
 
@@ -78,8 +78,8 @@ class DomAccess extends Base {
78
78
  /**
79
79
  * @param {Object} config
80
80
  */
81
- constructor(config) {
82
- super(config);
81
+ construct(config) {
82
+ super.construct(config);
83
83
 
84
84
  let me = this,
85
85
  node;
@@ -110,8 +110,8 @@ class DomEvents extends Base {
110
110
  /**
111
111
  * @param {Object} config
112
112
  */
113
- constructor(config) {
114
- super(config);
113
+ construct(config) {
114
+ super.construct(config);
115
115
 
116
116
  let me = this;
117
117
 
@@ -74,8 +74,8 @@ class AmCharts extends Base {
74
74
  /**
75
75
  * @param {Object} config
76
76
  */
77
- constructor(config) {
78
- super(config);
77
+ construct(config) {
78
+ super.construct(config);
79
79
 
80
80
  this.insertAmChartsScripts();
81
81
  }
@@ -25,8 +25,8 @@ class AnalyticsByGoogle extends Base {
25
25
  /**
26
26
  * @param {Object} config
27
27
  */
28
- constructor(config) {
29
- super(config);
28
+ construct(config) {
29
+ super.construct(config);
30
30
  this.insertGoogleAnalyticsScript();
31
31
  }
32
32
 
@@ -135,8 +135,8 @@ class DragDrop extends Base {
135
135
  /**
136
136
  * @param {Object} config
137
137
  */
138
- constructor(config) {
139
- super(config);
138
+ construct(config) {
139
+ super.construct(config);
140
140
 
141
141
  let me = this,
142
142
  imports = [];
@@ -53,8 +53,8 @@ class HighlightJS extends Base {
53
53
  /**
54
54
  * @param {Object} config
55
55
  */
56
- constructor(config) {
57
- super(config);
56
+ construct(config) {
57
+ super.construct(config);
58
58
 
59
59
  let me = this;
60
60
 
@@ -110,8 +110,9 @@ class MapboxGL extends Base {
110
110
  /**
111
111
  * @param {Object} config
112
112
  */
113
- constructor(config) {
114
- super(config);
113
+ construct(config) {
114
+ super.construct(config);
115
+
115
116
  this.insertMapboxGLScripts();
116
117
  }
117
118
 
@@ -42,8 +42,8 @@ class Markdown extends Base {
42
42
  /**
43
43
  * @param {Object} config
44
44
  */
45
- constructor(config) {
46
- super(config);
45
+ construct(config) {
46
+ super.construct(config);
47
47
  DomAccess.addScript({src: this.showdownPath});
48
48
  }
49
49
 
@@ -65,4 +65,4 @@ let instance = Neo.create(Markdown);
65
65
 
66
66
  Neo.applyToGlobalNs(instance);
67
67
 
68
- export default instance;
68
+ export default instance;
@@ -23,8 +23,8 @@ class Siesta extends Base {
23
23
  /**
24
24
  * @param {Object} config
25
25
  */
26
- constructor(config) {
27
- super(config);
26
+ construct(config) {
27
+ super.construct(config);
28
28
  this.adjustSiestaEnvironment();
29
29
  }
30
30
 
@@ -37,8 +37,8 @@ class Stylesheet extends Base {
37
37
  /**
38
38
  * @param {Object} config
39
39
  */
40
- constructor(config) {
41
- super(config);
40
+ construct(config) {
41
+ super.construct(config);
42
42
 
43
43
  if (Neo.config.useFontAwesome) {
44
44
  this.createStyleSheet(null, null, Neo.config.basePath + 'node_modules/@fortawesome/fontawesome-free/css/all.min.css');
@@ -56,8 +56,8 @@ class WindowPosition extends Base {
56
56
  /**
57
57
  * @param {Object} config
58
58
  */
59
- constructor(config) {
60
- super(config);
59
+ construct(config) {
60
+ super.construct(config);
61
61
 
62
62
  let me = this,
63
63
  win = window;
@@ -43,8 +43,8 @@ class Mouse extends Base {
43
43
  /**
44
44
  * @param config
45
45
  */
46
- constructor(config) {
47
- super(config);
46
+ construct(config) {
47
+ super.construct(config);
48
48
  Neo.bindMethods(this, ['onDistanceChange', 'onMouseDown', 'onMouseMove', 'onMouseUp']);
49
49
  }
50
50
 
@@ -57,8 +57,8 @@ class Touch extends Base {
57
57
  /**
58
58
  * @param config
59
59
  */
60
- constructor(config) {
61
- super(config);
60
+ construct(config) {
61
+ super.construct(config);
62
62
  Neo.bindMethods(this, ['onDistanceChange', 'onTouchEnd', 'onTouchMove', 'onTouchStart', 'startDrag']);
63
63
  }
64
64
 
@@ -23,8 +23,8 @@ class Component extends Base {
23
23
  /**
24
24
  * @param {Object} config
25
25
  */
26
- constructor(config) {
27
- super(config);
26
+ construct(config) {
27
+ super.construct(config);
28
28
  Neo.getComponent = this.getById.bind(this); // alias
29
29
  }
30
30
 
@@ -23,8 +23,8 @@ class Instance extends Base {
23
23
  /**
24
24
  * @param {Object} config
25
25
  */
26
- constructor(config) {
27
- super(config);
26
+ construct(config) {
27
+ super.construct(config);
28
28
 
29
29
  let me = this;
30
30
 
@@ -59,9 +59,9 @@ class Component extends Base {
59
59
  /**
60
60
  * @param {Object} config
61
61
  */
62
- constructor(config) {
62
+ construct(config) {
63
63
  Neo.currentWorker.isUsingViewModels = true;
64
- super(config);
64
+ super.construct(config);
65
65
  this.bindings = {};
66
66
  }
67
67
 
@@ -28,8 +28,8 @@ class Base extends CoreBase {
28
28
  /**
29
29
  * @param {Object} config
30
30
  */
31
- constructor(config) {
32
- super(config);
31
+ construct(config) {
32
+ super.construct(config);
33
33
 
34
34
  let me = this;
35
35
 
@@ -172,8 +172,8 @@ class Resizable extends Base {
172
172
  /**
173
173
  * @param {Object} config
174
174
  */
175
- constructor(config) {
176
- super(config);
175
+ construct(config) {
176
+ super.construct(config);
177
177
 
178
178
  let me = this,
179
179
  domListeners = me.owner.domListeners;
@@ -38,8 +38,8 @@ class CellColumnModel extends CellModel {
38
38
  /**
39
39
  * @param {Object} config
40
40
  */
41
- constructor(config) {
42
- super(config);
41
+ construct(config) {
42
+ super.construct(config);
43
43
 
44
44
  this.selectedColumnCellIds = [];
45
45
  }
@@ -38,8 +38,8 @@ class CellColumnRowModel extends CellRowModel {
38
38
  /**
39
39
  * @param {Object} config
40
40
  */
41
- constructor(config) {
42
- super(config);
41
+ construct(config) {
42
+ super.construct(config);
43
43
 
44
44
  this.selectedColumnCellIds = [];
45
45
  }
@@ -34,8 +34,8 @@ class CellRowModel extends CellModel {
34
34
  /**
35
35
  * @param {Object} config
36
36
  */
37
- constructor(config) {
38
- super(config);
37
+ construct(config) {
38
+ super.construct(config);
39
39
 
40
40
  this.selectedRowIds = [];
41
41
  }
@@ -113,8 +113,8 @@ class Container extends BaseContainer {
113
113
  /**
114
114
  * @param {Object} config
115
115
  */
116
- constructor(config) {
117
- super(config);
116
+ construct(config) {
117
+ super.construct(config);
118
118
 
119
119
  let me = this;
120
120
 
@@ -102,8 +102,8 @@ class Button extends BaseButton {
102
102
  /**
103
103
  * @param {Object} config
104
104
  */
105
- constructor(config) {
106
- super(config);
105
+ construct(config) {
106
+ super.construct(config);
107
107
 
108
108
  let me = this,
109
109
  listeners = {
@@ -32,8 +32,8 @@ class Logger extends Base {
32
32
  /**
33
33
  * @param config
34
34
  */
35
- constructor(config) {
36
- super(config);
35
+ construct(config) {
36
+ super.construct(config);
37
37
 
38
38
  // aliases
39
39
  Neo.applyFromNs(Neo, this, {
@@ -53,8 +53,8 @@ class App extends Base {
53
53
  /**
54
54
  * @param {Object} config
55
55
  */
56
- constructor(config) {
57
- super(config);
56
+ construct(config) {
57
+ super.construct(config);
58
58
  Neo.applyDeltas = this.applyDeltas.bind(this); // convenience shortcut
59
59
  }
60
60
 
@@ -52,8 +52,8 @@ class Base extends CoreBase {
52
52
  /**
53
53
  * @param {Object} config
54
54
  */
55
- constructor(config) {
56
- super(config);
55
+ construct(config) {
56
+ super.construct(config);
57
57
 
58
58
  let me = this;
59
59
 
@@ -95,8 +95,8 @@ class Manager extends Base {
95
95
  /**
96
96
  * @param {Object} config
97
97
  */
98
- constructor(config) {
99
- super(config);
98
+ construct(config) {
99
+ super.construct(config);
100
100
 
101
101
  let me = this;
102
102