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.
Files changed (265) hide show
  1. package/README.md +9 -0
  2. package/apps/covid/Util.mjs +1 -3
  3. package/apps/covid/view/GalleryContainer.mjs +2 -3
  4. package/apps/covid/view/GalleryContainerController.mjs +1 -5
  5. package/apps/covid/view/HelixContainer.mjs +2 -3
  6. package/apps/covid/view/HelixContainerController.mjs +1 -4
  7. package/apps/covid/view/MainContainerController.mjs +0 -7
  8. package/apps/covid/view/MainContainerModel.mjs +0 -1
  9. package/apps/covid/view/TableContainer.mjs +2 -3
  10. package/apps/covid/view/TableContainerController.mjs +0 -3
  11. package/apps/covid/view/WorldMapComponent.mjs +1 -2
  12. package/apps/covid/view/WorldMapContainerController.mjs +0 -2
  13. package/apps/covid/view/country/Gallery.mjs +0 -2
  14. package/apps/covid/view/country/Helix.mjs +0 -3
  15. package/apps/covid/view/mapboxGl/Container.mjs +1 -1
  16. package/apps/covid/view/mapboxGl/ContainerController.mjs +1 -6
  17. package/apps/krausest/TableCollection.mjs +0 -1
  18. package/apps/krausest/view/MainComponent.mjs +2 -3
  19. package/apps/krausest/view/MainComponentController.mjs +0 -1
  20. package/apps/krausest/view/TableComponent.mjs +2 -4
  21. package/apps/realworld/api/Article.mjs +1 -4
  22. package/apps/realworld/api/Base.mjs +0 -5
  23. package/apps/realworld/api/Favorite.mjs +1 -3
  24. package/apps/realworld/api/Profile.mjs +1 -3
  25. package/apps/realworld/view/HeaderComponent.mjs +1 -2
  26. package/apps/realworld/view/HomeComponent.mjs +2 -11
  27. package/apps/realworld/view/MainContainerController.mjs +0 -13
  28. package/apps/realworld/view/article/CommentComponent.mjs +3 -5
  29. package/apps/realworld/view/article/Component.mjs +2 -7
  30. package/apps/realworld/view/article/CreateCommentComponent.mjs +3 -7
  31. package/apps/realworld/view/article/CreateComponent.mjs +3 -3
  32. package/apps/realworld/view/article/PreviewComponent.mjs +3 -5
  33. package/apps/realworld/view/article/TagListComponent.mjs +3 -7
  34. package/apps/realworld/view/user/ProfileComponent.mjs +2 -8
  35. package/apps/realworld/view/user/SettingsComponent.mjs +3 -7
  36. package/apps/realworld/view/user/SignUpComponent.mjs +2 -3
  37. package/apps/realworld2/api/Article.mjs +1 -4
  38. package/apps/realworld2/api/Base.mjs +0 -5
  39. package/apps/realworld2/api/Favorite.mjs +1 -3
  40. package/apps/realworld2/api/Profile.mjs +1 -3
  41. package/apps/realworld2/view/HeaderToolbarController.mjs +1 -2
  42. package/apps/realworld2/view/HomeContainer.mjs +1 -2
  43. package/apps/realworld2/view/MainContainerController.mjs +1 -14
  44. package/apps/realworld2/view/article/Gallery.mjs +1 -3
  45. package/apps/realworld2/view/article/GalleryContainer.mjs +1 -2
  46. package/apps/realworld2/view/article/Helix.mjs +1 -3
  47. package/apps/realworld2/view/article/HelixContainer.mjs +3 -5
  48. package/apps/realworld2/view/article/PreviewComponent.mjs +3 -5
  49. package/apps/realworld2/view/article/TagListComponent.mjs +3 -7
  50. package/apps/realworld2/view/user/LoginFormContainer.mjs +3 -4
  51. package/apps/sharedcovid/Util.mjs +1 -3
  52. package/apps/sharedcovid/view/GalleryContainer.mjs +2 -3
  53. package/apps/sharedcovid/view/GalleryContainerController.mjs +1 -5
  54. package/apps/sharedcovid/view/HelixContainer.mjs +2 -3
  55. package/apps/sharedcovid/view/HelixContainerController.mjs +1 -4
  56. package/apps/sharedcovid/view/MainContainerController.mjs +12 -16
  57. package/apps/sharedcovid/view/MainContainerModel.mjs +0 -1
  58. package/apps/sharedcovid/view/TableContainer.mjs +2 -3
  59. package/apps/sharedcovid/view/TableContainerController.mjs +0 -3
  60. package/apps/sharedcovid/view/WorldMapComponent.mjs +1 -2
  61. package/apps/sharedcovid/view/WorldMapContainerController.mjs +0 -2
  62. package/apps/sharedcovid/view/country/Gallery.mjs +0 -2
  63. package/apps/sharedcovid/view/country/Helix.mjs +0 -3
  64. package/apps/sharedcovid/view/mapboxGl/Container.mjs +2 -3
  65. package/apps/sharedcovid/view/mapboxGl/ContainerController.mjs +1 -5
  66. package/apps/shareddialog/view/MainContainerController.mjs +0 -18
  67. package/apps/shareddialog2/view/MainContainerController.mjs +1 -2
  68. package/apps/website/data/blog.json +13 -0
  69. package/apps/website/view/MainContainerController.mjs +0 -4
  70. package/docs/app/view/ContentTabContainer.mjs +2 -2
  71. package/docs/app/view/MainContainer.mjs +2 -2
  72. package/docs/app/view/classdetails/SourceViewComponent.mjs +2 -2
  73. package/docs/app/view/classdetails/TutorialComponent.mjs +2 -2
  74. package/docs/tutorials/02_ClassSystem.html +3 -3
  75. package/docs/tutorials/02_ClassSystem.md +2 -2
  76. package/docs/tutorials/09_TodoList_version1.html +8 -8
  77. package/examples/ConfigurationViewport.mjs +0 -4
  78. package/examples/calendar/basic/MainContainerController.mjs +0 -1
  79. package/examples/calendar/weekview/MainContainer.mjs +2 -2
  80. package/examples/component/coronaGallery/CountryGallery.mjs +1 -4
  81. package/examples/component/coronaGallery/MainContainer.mjs +2 -4
  82. package/examples/component/coronaHelix/CountryHelix.mjs +0 -4
  83. package/examples/component/coronaHelix/MainContainer.mjs +2 -4
  84. package/examples/component/gallery/MainContainer.mjs +2 -4
  85. package/examples/component/helix/MainContainer.mjs +2 -4
  86. package/examples/component/splitter/MainContainer.mjs +0 -2
  87. package/examples/core/config/MainContainer.mjs +3 -5
  88. package/examples/dialog/MainContainer.mjs +3 -7
  89. package/examples/list/animate/MainContainer.mjs +2 -2
  90. package/examples/model/advanced/MainContainerController.mjs +0 -12
  91. package/examples/model/dialog/EditUserDialogController.mjs +1 -3
  92. package/examples/model/dialog/MainContainerController.mjs +1 -2
  93. package/examples/model/extendedClass/MainContainerController.mjs +0 -7
  94. package/examples/model/inline/MainContainerController.mjs +0 -7
  95. package/examples/model/inlineNoModel/MainContainerController.mjs +1 -6
  96. package/examples/model/multiWindow/EditUserDialogController.mjs +1 -3
  97. package/examples/model/multiWindow/MainContainerController.mjs +1 -3
  98. package/examples/model/multiWindow/ViewportController.mjs +3 -5
  99. package/examples/model/nestedData/MainContainerController.mjs +1 -8
  100. package/examples/tab/container/MainContainer.mjs +1 -6
  101. package/examples/todoList/version1/MainComponent.mjs +3 -3
  102. package/examples/todoList/version2/MainContainer.mjs +3 -3
  103. package/examples/todoList/version2/TodoList.mjs +1 -1
  104. package/examples/tree/MainContainer.mjs +0 -2
  105. package/package.json +7 -7
  106. package/src/Main.mjs +9 -18
  107. package/src/Neo.mjs +26 -26
  108. package/src/button/Menu.mjs +0 -1
  109. package/src/button/Split.mjs +2 -6
  110. package/src/calendar/store/Events.mjs +0 -1
  111. package/src/calendar/view/DayComponent.mjs +0 -1
  112. package/src/calendar/view/EditEventContainer.mjs +2 -9
  113. package/src/calendar/view/MainContainer.mjs +2 -17
  114. package/src/calendar/view/MainContainerModel.mjs +2 -4
  115. package/src/calendar/view/SettingsContainer.mjs +2 -6
  116. package/src/calendar/view/YearComponent.mjs +3 -14
  117. package/src/calendar/view/calendars/Container.mjs +0 -1
  118. package/src/calendar/view/calendars/EditContainer.mjs +2 -7
  119. package/src/calendar/view/calendars/List.mjs +0 -5
  120. package/src/calendar/view/month/Component.mjs +3 -17
  121. package/src/calendar/view/settings/GeneralContainer.mjs +0 -3
  122. package/src/calendar/view/settings/MonthContainer.mjs +0 -3
  123. package/src/calendar/view/settings/WeekContainer.mjs +0 -5
  124. package/src/calendar/view/settings/YearContainer.mjs +0 -3
  125. package/src/calendar/view/week/Component.mjs +3 -22
  126. package/src/calendar/view/week/EventDragZone.mjs +1 -6
  127. package/src/calendar/view/week/TimeAxisComponent.mjs +2 -3
  128. package/src/calendar/view/week/plugin/DragDrop.mjs +2 -12
  129. package/src/calendar/view/week/plugin/EventResizable.mjs +0 -3
  130. package/src/collection/Base.mjs +3 -22
  131. package/src/collection/Filter.mjs +0 -1
  132. package/src/collection/Sorter.mjs +0 -3
  133. package/src/component/Base.mjs +14 -3
  134. package/src/component/Chip.mjs +2 -4
  135. package/src/component/Circle.mjs +2 -20
  136. package/src/component/DateSelector.mjs +4 -21
  137. package/src/component/Gallery.mjs +2 -14
  138. package/src/component/Helix.mjs +2 -16
  139. package/src/component/Splitter.mjs +3 -8
  140. package/src/component/mwc/Button.mjs +2 -2
  141. package/src/component/mwc/TextField.mjs +2 -3
  142. package/src/component/wrapper/AmChart.mjs +1 -1
  143. package/src/component/wrapper/MapboxGL.mjs +0 -5
  144. package/src/container/Base.mjs +1 -7
  145. package/src/container/Panel.mjs +2 -5
  146. package/src/controller/Application.mjs +2 -3
  147. package/src/controller/Base.mjs +2 -3
  148. package/src/controller/Component.mjs +3 -6
  149. package/src/core/Base.mjs +26 -3
  150. package/src/core/Compare.mjs +0 -1
  151. package/src/core/IdGenerator.mjs +2 -4
  152. package/src/core/Observable.mjs +0 -3
  153. package/src/core/Util.mjs +0 -1
  154. package/src/core/_export.mjs +1 -2
  155. package/src/data/RecordFactory.mjs +1 -6
  156. package/src/data/Store.mjs +2 -12
  157. package/src/data/connection/Xhr.mjs +0 -6
  158. package/src/dialog/Base.mjs +5 -24
  159. package/src/draggable/DragProxyComponent.mjs +3 -5
  160. package/src/draggable/DragZone.mjs +2 -8
  161. package/src/draggable/DropZone.mjs +3 -9
  162. package/src/draggable/list/DragZone.mjs +3 -9
  163. package/src/draggable/tab/header/toolbar/SortZone.mjs +1 -3
  164. package/src/draggable/toolbar/DragZone.mjs +3 -7
  165. package/src/draggable/toolbar/SortZone.mjs +1 -8
  166. package/src/draggable/tree/DragZone.mjs +1 -4
  167. package/src/filter/BooleanContainer.mjs +0 -1
  168. package/src/filter/NumberContainer.mjs +0 -2
  169. package/src/filter/ToggleOperatorsButton.mjs +3 -5
  170. package/src/form/Container.mjs +0 -2
  171. package/src/form/Fieldset.mjs +0 -1
  172. package/src/form/field/Base.mjs +0 -2
  173. package/src/form/field/CheckBox.mjs +2 -7
  174. package/src/form/field/Color.mjs +2 -5
  175. package/src/form/field/Date.mjs +2 -6
  176. package/src/form/field/Display.mjs +2 -3
  177. package/src/form/field/Picker.mjs +1 -12
  178. package/src/form/field/Range.mjs +2 -3
  179. package/src/form/field/Select.mjs +24 -22
  180. package/src/form/field/Text.mjs +3 -20
  181. package/src/form/field/Time.mjs +2 -9
  182. package/src/form/field/trigger/Base.mjs +2 -4
  183. package/src/form/field/trigger/Clear.mjs +0 -3
  184. package/src/form/field/trigger/CopyToClipboard.mjs +0 -3
  185. package/src/form/field/trigger/Picker.mjs +0 -1
  186. package/src/form/field/trigger/SpinDown.mjs +0 -1
  187. package/src/form/field/trigger/SpinUp.mjs +0 -1
  188. package/src/form/field/trigger/SpinUpDown.mjs +0 -1
  189. package/src/form/field/trigger/Time.mjs +2 -3
  190. package/src/grid/Container.mjs +3 -6
  191. package/src/grid/header/Toolbar.mjs +1 -5
  192. package/src/list/Base.mjs +2 -2
  193. package/src/list/Color.mjs +0 -3
  194. package/src/list/Component.mjs +0 -3
  195. package/src/list/plugin/Animate.mjs +3 -6
  196. package/src/main/DomAccess.mjs +9 -24
  197. package/src/main/DomEvents.mjs +44 -77
  198. package/src/main/addon/AmCharts.mjs +3 -12
  199. package/src/main/addon/AnalyticsByGoogle.mjs +3 -4
  200. package/src/main/addon/CloneNode.mjs +0 -2
  201. package/src/main/addon/Cookie.mjs +0 -3
  202. package/src/main/addon/DragDrop.mjs +2 -11
  203. package/src/main/addon/HighlightJS.mjs +3 -7
  204. package/src/main/addon/MapboxGL.mjs +4 -16
  205. package/src/main/addon/Markdown.mjs +3 -3
  206. package/src/main/addon/Mwc.mjs +0 -2
  207. package/src/main/addon/Siesta.mjs +2 -3
  208. package/src/main/addon/Stylesheet.mjs +2 -6
  209. package/src/main/addon/WindowPosition.mjs +3 -8
  210. package/src/main/draggable/sensor/Mouse.mjs +2 -6
  211. package/src/main/draggable/sensor/Touch.mjs +2 -6
  212. package/src/main/mixin/DeltaUpdates.mjs +0 -8
  213. package/src/main/mixin/TouchDomEvents.mjs +1 -7
  214. package/src/manager/Base.mjs +0 -2
  215. package/src/manager/Component.mjs +2 -5
  216. package/src/manager/DomEvent.mjs +1 -6
  217. package/src/manager/Focus.mjs +0 -7
  218. package/src/manager/Instance.mjs +2 -3
  219. package/src/manager/Store.mjs +0 -4
  220. package/src/menu/List.mjs +4 -18
  221. package/src/model/Component.mjs +2 -3
  222. package/src/plugin/Base.mjs +2 -3
  223. package/src/plugin/Resizable.mjs +4 -15
  224. package/src/selection/CircleModel.mjs +1 -5
  225. package/src/selection/DateSelectorModel.mjs +1 -9
  226. package/src/selection/GalleryModel.mjs +0 -9
  227. package/src/selection/HelixModel.mjs +0 -9
  228. package/src/selection/ListModel.mjs +0 -8
  229. package/src/selection/Model.mjs +0 -8
  230. package/src/selection/menu/ListModel.mjs +0 -2
  231. package/src/selection/table/CellColumnModel.mjs +2 -6
  232. package/src/selection/table/CellColumnRowModel.mjs +2 -6
  233. package/src/selection/table/CellModel.mjs +0 -8
  234. package/src/selection/table/CellRowModel.mjs +2 -8
  235. package/src/selection/table/ColumnModel.mjs +0 -6
  236. package/src/selection/table/RowModel.mjs +0 -5
  237. package/src/tab/Container.mjs +0 -6
  238. package/src/tab/Strip.mjs +1 -3
  239. package/src/tab/header/Button.mjs +1 -2
  240. package/src/tab/header/Toolbar.mjs +0 -1
  241. package/src/table/Container.mjs +2 -10
  242. package/src/table/View.mjs +0 -4
  243. package/src/table/header/Button.mjs +2 -8
  244. package/src/table/header/Toolbar.mjs +1 -2
  245. package/src/tree/List.mjs +0 -4
  246. package/src/util/Css.mjs +0 -1
  247. package/src/util/Date.mjs +0 -2
  248. package/src/util/Function.mjs +0 -2
  249. package/src/util/HashHistory.mjs +0 -3
  250. package/src/util/KeyNavigation.mjs +0 -5
  251. package/src/{core → util}/Logger.mjs +7 -19
  252. package/src/util/Matrix.mjs +0 -3
  253. package/src/util/VDom.mjs +0 -5
  254. package/src/util/_export.mjs +2 -1
  255. package/src/vdom/Helper.mjs +0 -3
  256. package/src/vdom/VNode.mjs +0 -1
  257. package/src/worker/App.mjs +2 -9
  258. package/src/worker/Base.mjs +2 -8
  259. package/src/worker/Canvas.mjs +0 -2
  260. package/src/worker/Manager.mjs +3 -5
  261. package/src/worker/Message.mjs +0 -1
  262. package/src/worker/mixin/RemoteMethodAccess.mjs +0 -3
  263. package/test/siesta/siesta.js +2 -1
  264. package/test/siesta/tests/ClassConfigsAndFields.mjs +307 -0
  265. package/test/siesta/tests/ClassSystem.mjs +1 -1
@@ -70,11 +70,10 @@ class CheckBox extends Base {
70
70
  }}
71
71
 
72
72
  /**
73
- *
74
73
  * @param {Object} config
75
74
  */
76
- constructor(config) {
77
- super(config);
75
+ construct(config) {
76
+ super.construct(config);
78
77
 
79
78
  let me = this,
80
79
  domListeners = me.domListeners;
@@ -87,7 +86,6 @@ class CheckBox extends Base {
87
86
  }
88
87
 
89
88
  /**
90
- *
91
89
  * @param {Boolean} value
92
90
  * @param {Boolean} oldValue
93
91
  * @protected
@@ -261,7 +259,6 @@ class CheckBox extends Base {
261
259
  }
262
260
 
263
261
  /**
264
- *
265
262
  * @returns {String}
266
263
  */
267
264
  getInputElId() {
@@ -269,7 +266,6 @@ class CheckBox extends Base {
269
266
  }
270
267
 
271
268
  /**
272
- *
273
269
  * @returns {String}
274
270
  */
275
271
  getLabelId() {
@@ -277,7 +273,6 @@ class CheckBox extends Base {
277
273
  }
278
274
 
279
275
  /**
280
- *
281
276
  * @returns {String}
282
277
  */
283
278
  getValueLabelId() {
@@ -45,11 +45,10 @@ class Color extends Select {
45
45
  }}
46
46
 
47
47
  /**
48
- *
49
48
  * @param {Object} config
50
49
  */
51
- constructor(config) {
52
- super(config);
50
+ construct(config) {
51
+ super.construct(config);
53
52
 
54
53
  let me = this,
55
54
  vdom = me.vdom,
@@ -95,7 +94,6 @@ class Color extends Select {
95
94
  }
96
95
 
97
96
  /**
98
- *
99
97
  * @returns {String}
100
98
  */
101
99
  getColor() {
@@ -107,7 +105,6 @@ class Color extends Select {
107
105
  }
108
106
 
109
107
  /**
110
- *
111
108
  * @returns {String}
112
109
  */
113
110
  getColorIndicatorId() {
@@ -60,11 +60,10 @@ class DateField extends Picker {
60
60
  }}
61
61
 
62
62
  /**
63
- *
64
63
  * @param config
65
64
  */
66
- constructor(config) {
67
- super(config);
65
+ construct(config) {
66
+ super.construct(config);
68
67
 
69
68
  let me = this;
70
69
 
@@ -85,7 +84,6 @@ class DateField extends Picker {
85
84
  }
86
85
 
87
86
  /**
88
- *
89
87
  * @returns {Neo.component.DateSelector}
90
88
  */
91
89
  createPickerComponent() {
@@ -104,7 +102,6 @@ class DateField extends Picker {
104
102
  }
105
103
 
106
104
  /**
107
- *
108
105
  * @param {Object} opts
109
106
  */
110
107
  onDatePickerChange(opts) {
@@ -141,7 +138,6 @@ class DateField extends Picker {
141
138
  }
142
139
 
143
140
  /**
144
- *
145
141
  * @param {Object} data
146
142
  * @protected
147
143
  */
@@ -29,11 +29,10 @@ class Display extends Text {
29
29
  }}
30
30
 
31
31
  /**
32
- *
33
32
  * @param {Object} config
34
33
  */
35
- constructor(config) {
36
- super(config);
34
+ construct(config) {
35
+ super.construct(config);
37
36
 
38
37
  let me = this,
39
38
  vdom = me.vdom,
@@ -84,7 +84,6 @@ class Picker extends Text {
84
84
  }}
85
85
 
86
86
  /**
87
- *
88
87
  * @param {Boolean} silent
89
88
  */
90
89
  applyClientRects(silent) {
@@ -110,7 +109,6 @@ class Picker extends Text {
110
109
  }
111
110
 
112
111
  /**
113
- *
114
112
  * @returns {Neo.container.Base}
115
113
  */
116
114
  createPicker() {
@@ -139,16 +137,13 @@ class Picker extends Text {
139
137
  }
140
138
 
141
139
  /**
142
- *
143
140
  * @param {Function} [callback]
144
141
  * @param {Function} [callbackScope]
145
142
  */
146
143
  getClientRectsThenShow(callback, callbackScope) {
147
144
  let me = this;
148
145
 
149
- Neo.main.DomAccess.getBoundingClientRect({
150
- id: [me.id, me.getInputWrapperId(), 'body']
151
- }).then(data => {
146
+ me.getDomRect([me.id, me.getInputWrapperId(), 'body']).then(data => {
152
147
  me.clientRects = data;
153
148
  me.showPicker(callback, callbackScope);
154
149
  });
@@ -169,7 +164,6 @@ class Picker extends Text {
169
164
  }
170
165
 
171
166
  /**
172
- *
173
167
  * @returns {String}
174
168
  */
175
169
  getPickerId() {
@@ -177,7 +171,6 @@ class Picker extends Text {
177
171
  }
178
172
 
179
173
  /**
180
- *
181
174
  * @param {Boolean} [silent=false]
182
175
  */
183
176
  hidePicker(silent=false) {
@@ -200,7 +193,6 @@ class Picker extends Text {
200
193
  }
201
194
 
202
195
  /**
203
- *
204
196
  * @param {Object} data
205
197
  * @protected
206
198
  */
@@ -218,7 +210,6 @@ class Picker extends Text {
218
210
  }
219
211
 
220
212
  /**
221
- *
222
213
  * @param {Object} data
223
214
  * @param {Function} [callback]
224
215
  * @param {Function} [callbackScope]
@@ -229,7 +220,6 @@ class Picker extends Text {
229
220
  }
230
221
 
231
222
  /**
232
- *
233
223
  * @param {Object} data
234
224
  * @protected
235
225
  */
@@ -252,7 +242,6 @@ class Picker extends Text {
252
242
  }
253
243
 
254
244
  /**
255
- *
256
245
  * @param {Function} [callback]
257
246
  * @param {Function} [callbackScope]
258
247
  */
@@ -46,11 +46,10 @@ class Range extends Number {
46
46
  }}
47
47
 
48
48
  /**
49
- *
50
49
  * @param {Object} config
51
50
  */
52
- constructor(config) {
53
- super(config);
51
+ construct(config) {
52
+ super.construct(config);
54
53
 
55
54
  let me = this,
56
55
  domListeners = me.domListeners,
@@ -105,8 +105,8 @@ class Select extends Picker {
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
 
@@ -189,15 +189,6 @@ class Select extends Picker {
189
189
  super.afterSetValue(value, oldValue);
190
190
  }
191
191
 
192
- /**
193
- * Gets triggered before getting the value of the value config
194
- * @param {Number|String|null} value
195
- * @returns {Number|Object|String}
196
- */
197
- beforeGetValue(value) {
198
- return this.record || value;
199
- }
200
-
201
192
  /**
202
193
  * Triggered before the listConfig config gets changed.
203
194
  * @param {Object} value
@@ -278,13 +269,18 @@ class Select extends Picker {
278
269
  */
279
270
  fireChangeEvent(value, oldValue) {
280
271
  let me = this,
281
- record = me.record;
272
+ record = me.record,
273
+ oldRecord;
282
274
 
283
275
  if (!(me.forceSelection && !record)) {
276
+ oldRecord = me.store.get(oldValue) || null;
277
+
284
278
  me.fire('change', {
285
279
  component: me,
286
- oldValue : me.store.get(oldValue) ? oldValue : null,
287
- value : record || value
280
+ oldRecord,
281
+ oldValue,
282
+ record,
283
+ value
288
284
  });
289
285
  }
290
286
  }
@@ -307,7 +303,6 @@ class Select extends Picker {
307
303
  }
308
304
 
309
305
  /**
310
- *
311
306
  * @returns {Object}
312
307
  */
313
308
  getInputHintEl() {
@@ -350,7 +345,6 @@ class Select extends Picker {
350
345
  }
351
346
 
352
347
  /**
353
- *
354
348
  * @param {Object} data
355
349
  * @param {Object[]} data.oldPath
356
350
  * @protected
@@ -402,10 +396,17 @@ class Select extends Picker {
402
396
  * @protected
403
397
  */
404
398
  onKeyDownRight(data) {
405
- let me = this;
399
+ let me = this,
400
+ oldValue, record;
406
401
 
407
402
  if (me.hintRecordId) {
408
- me.value = me.store.get(me.hintRecordId)[me.displayField];
403
+ oldValue = me.value;
404
+ record = me.store.get(me.hintRecordId);
405
+
406
+ me.record = record;
407
+ me._value = record[me.displayField];
408
+
409
+ me.afterSetValue(me._value, oldValue);
409
410
  }
410
411
  }
411
412
 
@@ -437,9 +438,10 @@ class Select extends Picker {
437
438
  * @protected
438
439
  */
439
440
  onListItemClick(record) {
440
- let me = this,
441
- oldValue = me.value,
442
- value = record[me.displayField];
441
+ let me = this,
442
+ displayField = me.displayField,
443
+ oldValue = me.value,
444
+ value = record[displayField];
443
445
 
444
446
  if (me.value !== value) {
445
447
  me.hintRecordId = null;
@@ -451,7 +453,7 @@ class Select extends Picker {
451
453
 
452
454
  me.fire('select', {
453
455
  record: record,
454
- value : record[me.store.keyProperty]
456
+ value : record[displayField]
455
457
  });
456
458
  }
457
459
  }
@@ -121,11 +121,10 @@ class Text extends Base {
121
121
  }}
122
122
 
123
123
  /**
124
- *
125
124
  * @param {Object} config
126
125
  */
127
- constructor(config) {
128
- super(config);
126
+ construct(config) {
127
+ super.construct(config);
129
128
 
130
129
  let me = this,
131
130
  domListeners = me.domListeners;
@@ -638,7 +637,6 @@ class Text extends Base {
638
637
  }
639
638
 
640
639
  /**
641
- *
642
640
  * @returns {Object|null}
643
641
  */
644
642
  getCenterBorderEl() {
@@ -647,7 +645,6 @@ class Text extends Base {
647
645
  }
648
646
 
649
647
  /**
650
- *
651
648
  * @returns {Object|null}
652
649
  */
653
650
  getInputEl() {
@@ -655,7 +652,6 @@ class Text extends Base {
655
652
  return el?.vdom;
656
653
  }
657
654
  /**
658
- *
659
655
  * @returns {String}
660
656
  */
661
657
  getInputElId() {
@@ -682,7 +678,6 @@ class Text extends Base {
682
678
  }
683
679
 
684
680
  /**
685
- *
686
681
  * @returns {String}
687
682
  */
688
683
  getInputWrapperId() {
@@ -690,7 +685,6 @@ class Text extends Base {
690
685
  }
691
686
 
692
687
  /**
693
- *
694
688
  * @returns {Object|null}
695
689
  */
696
690
  getLabelEl() {
@@ -699,7 +693,6 @@ class Text extends Base {
699
693
  }
700
694
 
701
695
  /**
702
- *
703
696
  * @returns {String}
704
697
  */
705
698
  getLabelId() {
@@ -707,7 +700,6 @@ class Text extends Base {
707
700
  }
708
701
 
709
702
  /**
710
- *
711
703
  * @param {String} type
712
704
  * @returns {Neo.form.field.trigger.Base|null}
713
705
  */
@@ -727,7 +719,6 @@ class Text extends Base {
727
719
  }
728
720
 
729
721
  /**
730
- *
731
722
  * @param {String} id
732
723
  * @returns {Neo.form.field.trigger.Base|null}
733
724
  */
@@ -747,7 +738,6 @@ class Text extends Base {
747
738
  }
748
739
 
749
740
  /**
750
- *
751
741
  * @param {String} type
752
742
  * @protected
753
743
  * @returns {String} The trigger node id
@@ -776,7 +766,6 @@ class Text extends Base {
776
766
  }
777
767
 
778
768
  /**
779
- *
780
769
  * @returns {Boolean}
781
770
  */
782
771
  isEmpty() {
@@ -784,7 +773,6 @@ class Text extends Base {
784
773
  }
785
774
 
786
775
  /**
787
- *
788
776
  * @returns {Boolean}
789
777
  */
790
778
  isValid() {
@@ -798,7 +786,6 @@ class Text extends Base {
798
786
  }
799
787
 
800
788
  /**
801
- *
802
789
  * @param {Object} config
803
790
  * @param {Boolean} [preventOriginalConfig] True prevents the instance from getting an originalConfig property
804
791
  * @returns {Object} config
@@ -815,7 +802,6 @@ class Text extends Base {
815
802
  }
816
803
 
817
804
  /**
818
- *
819
805
  * @param {Object} data
820
806
  * @param {Object[]} data.path
821
807
  * @protected
@@ -840,7 +826,6 @@ class Text extends Base {
840
826
  }
841
827
 
842
828
  /**
843
- *
844
829
  * @param {Object} data
845
830
  * @param {Object[]} data.oldPath
846
831
  * @protected
@@ -936,9 +921,7 @@ class Text extends Base {
936
921
  updateCenterBorderElWidth(silent=false) {
937
922
  let me = this;
938
923
 
939
- me.mounted && Neo.main.DomAccess.getBoundingClientRect({
940
- id: me.getCenterBorderEl().id
941
- }).then(data => {
924
+ me.mounted && me.getDomRect(me.getCenterBorderEl().id).then(data => {
942
925
  me.centerBorderElWidth = Math.round(data.width * .7) + 8;
943
926
 
944
927
  if (!silent) {
@@ -82,11 +82,10 @@ class Time extends Picker {
82
82
  }}
83
83
 
84
84
  /**
85
- *
86
85
  * @param {Object} config
87
86
  */
88
- constructor(config) {
89
- super(config);
87
+ construct(config) {
88
+ super.construct(config);
90
89
 
91
90
  let me = this,
92
91
  clearTrigger = me.getTrigger('clear');
@@ -253,7 +252,6 @@ class Time extends Picker {
253
252
  }
254
253
 
255
254
  /**
256
- *
257
255
  * @returns {String[]}
258
256
  */
259
257
  createCollectionItems() {
@@ -285,7 +283,6 @@ class Time extends Picker {
285
283
  }
286
284
 
287
285
  /**
288
- *
289
286
  * @returns {Neo.component.DateSelector}
290
287
  */
291
288
  createPickerComponent() {
@@ -293,7 +290,6 @@ class Time extends Picker {
293
290
  }
294
291
 
295
292
  /**
296
- *
297
293
  * @param {Function} [callback]
298
294
  */
299
295
  focusInputEl(callback) {
@@ -340,7 +336,6 @@ class Time extends Picker {
340
336
  }
341
337
 
342
338
  /**
343
- *
344
339
  * @param {Object} data
345
340
  * @protected
346
341
  */
@@ -356,7 +351,6 @@ class Time extends Picker {
356
351
  }
357
352
 
358
353
  /**
359
- *
360
354
  * @param {Object} record
361
355
  */
362
356
  onListItemClick(record) {
@@ -373,7 +367,6 @@ class Time extends Picker {
373
367
  }
374
368
 
375
369
  /**
376
- *
377
370
  * @param {Object} record
378
371
  */
379
372
  onListItemNavigate(record) {
@@ -80,11 +80,10 @@ class Base extends Component {
80
80
  }}
81
81
 
82
82
  /**
83
- *
84
83
  * @param {Object} config
85
84
  */
86
- constructor(config) {
87
- super(config);
85
+ construct(config) {
86
+ super.construct(config);
88
87
 
89
88
  let me = this,
90
89
  domListeners = me.domListeners || [],
@@ -168,7 +167,6 @@ class Base extends Component {
168
167
  }
169
168
 
170
169
  /**
171
- *
172
170
  * @param {Boolean} updateParentVdom
173
171
  * @param {Boolean} silent
174
172
  */
@@ -81,7 +81,6 @@ class Clear extends Base {
81
81
  }
82
82
 
83
83
  /**
84
- *
85
84
  * @returns {Boolean} true in case the trigger should be hidden
86
85
  */
87
86
  getHiddenState() {
@@ -101,7 +100,6 @@ class Clear extends Base {
101
100
  }
102
101
 
103
102
  /**
104
- *
105
103
  * @param {Object} opts
106
104
  */
107
105
  onFieldChange(opts) {
@@ -136,7 +134,6 @@ class Clear extends Base {
136
134
  }
137
135
 
138
136
  /**
139
- *
140
137
  * @param {Object} data
141
138
  */
142
139
  onTriggerClick(data) {
@@ -55,7 +55,6 @@ class CopyToClipboard extends Base {
55
55
  }
56
56
 
57
57
  /**
58
- *
59
58
  * @returns {Boolean} true in case the trigger should be hidden
60
59
  */
61
60
  getHiddenState() {
@@ -80,7 +79,6 @@ class CopyToClipboard extends Base {
80
79
  }
81
80
 
82
81
  /**
83
- *
84
82
  * @param {Object} opts
85
83
  */
86
84
  onFieldChange(opts) {
@@ -88,7 +86,6 @@ class CopyToClipboard extends Base {
88
86
  }
89
87
 
90
88
  /**
91
- *
92
89
  * @param {Object} data
93
90
  */
94
91
  onTriggerClick(data) {
@@ -30,7 +30,6 @@ class Picker extends Base {
30
30
  }}
31
31
 
32
32
  /**
33
- *
34
33
  * @param {Object} data
35
34
  */
36
35
  onTriggerClick(data) {
@@ -34,7 +34,6 @@ class SpinDown extends Base {
34
34
  }}
35
35
 
36
36
  /**
37
- *
38
37
  * @param {Object} data
39
38
  */
40
39
  onTriggerClick(data) {
@@ -30,7 +30,6 @@ class SpinUp extends Base {
30
30
  }}
31
31
 
32
32
  /**
33
- *
34
33
  * @param {Object} data
35
34
  */
36
35
  onTriggerClick(data) {
@@ -55,7 +55,6 @@ class SpinUpDown extends Base {
55
55
  }
56
56
 
57
57
  /**
58
- *
59
58
  * @param {Object} data
60
59
  */
61
60
  onTriggerClick(data) {
@@ -48,11 +48,10 @@ class Time extends Picker {
48
48
  }}
49
49
 
50
50
  /**
51
- *
52
51
  * @param {Object} config
53
52
  */
54
- constructor(config) {
55
- super(config);
53
+ construct(config) {
54
+ super.construct(config);
56
55
 
57
56
  let me = this,
58
57
  vdom = me.vdom;
@@ -74,17 +74,15 @@ class Container extends BaseContainer {
74
74
  }
75
75
 
76
76
  /**
77
- *
78
77
  * @param {Object} config
79
78
  */
80
- constructor(config) {
81
- super(config);
79
+ construct(config) {
80
+ super.construct(config);
82
81
 
83
82
  this.createRandomViewData(this.amountRows);
84
83
  }
85
84
 
86
85
  /**
87
- *
88
86
  * @param columns
89
87
  * @returns {*}
90
88
  */
@@ -108,7 +106,6 @@ class Container extends BaseContainer {
108
106
  }
109
107
 
110
108
  /**
111
- *
112
109
  * Dummy method until we have a data package in place
113
110
  * @param {Number} amountRows
114
111
  */
@@ -165,4 +162,4 @@ class Container extends BaseContainer {
165
162
 
166
163
  Neo.applyClassConfig(Container);
167
164
 
168
- export {Container as default};
165
+ export {Container as default};