neo.mjs 6.17.2 → 6.18.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 (323) hide show
  1. package/apps/ServiceWorker.mjs +3 -5
  2. package/apps/colors/README.md +8 -0
  3. package/apps/colors/app.mjs +6 -0
  4. package/apps/colors/childapps/widget/app.mjs +7 -0
  5. package/apps/colors/childapps/widget/index.html +11 -0
  6. package/apps/colors/childapps/widget/neo-config.json +10 -0
  7. package/apps/colors/childapps/widget/view/Viewport.mjs +19 -0
  8. package/apps/colors/index.html +11 -0
  9. package/apps/colors/model/Color.mjs +43 -0
  10. package/apps/colors/neo-config.json +10 -0
  11. package/apps/colors/remotes-api.json +13 -0
  12. package/apps/colors/store/Colors.mjs +24 -0
  13. package/apps/colors/view/BarChartComponent.mjs +64 -0
  14. package/apps/colors/view/HeaderToolbar.mjs +95 -0
  15. package/apps/colors/view/PieChartComponent.mjs +58 -0
  16. package/apps/colors/view/TableContainer.mjs +91 -0
  17. package/apps/colors/view/Viewport.mjs +57 -0
  18. package/apps/colors/view/ViewportController.mjs +277 -0
  19. package/apps/colors/view/ViewportModel.mjs +53 -0
  20. package/apps/portal/Util.mjs +11 -0
  21. package/apps/portal/childapps/preview/neo-config.json +2 -2
  22. package/apps/portal/neo-config.json +2 -1
  23. package/apps/portal/remotes-api.json +13 -0
  24. package/apps/portal/view/HeaderToolbar.mjs +1 -1
  25. package/apps/portal/view/ViewportController.mjs +89 -1
  26. package/apps/portal/view/home/MainContainer.mjs +34 -6
  27. package/apps/portal/view/home/parts/AfterMath.mjs +1 -1
  28. package/apps/portal/view/home/parts/Colors.mjs +98 -0
  29. package/apps/portal/view/home/parts/Helix.mjs +114 -0
  30. package/apps/portal/view/home/parts/HelloWorld.mjs +6 -3
  31. package/apps/portal/view/home/parts/How.mjs +66 -0
  32. package/apps/portal/view/home/parts/MainNeo.mjs +4 -3
  33. package/apps/portal/view/learn/LivePreview.mjs +56 -15
  34. package/apps/portal/view/learn/MainContainerController.mjs +10 -90
  35. package/apps/realworld/api/Article.mjs +1 -3
  36. package/apps/realworld/api/Favorite.mjs +1 -3
  37. package/apps/realworld/api/Profile.mjs +1 -3
  38. package/apps/realworld/api/Tag.mjs +1 -3
  39. package/apps/realworld/api/User.mjs +1 -3
  40. package/apps/realworld2/api/Article.mjs +1 -3
  41. package/apps/realworld2/api/Favorite.mjs +1 -3
  42. package/apps/realworld2/api/Profile.mjs +1 -3
  43. package/apps/realworld2/api/Tag.mjs +1 -3
  44. package/apps/realworld2/api/User.mjs +1 -3
  45. package/apps/realworld2/view/article/HelixContainer.mjs +5 -5
  46. package/buildScripts/webpack/json/myApps.template.json +1 -0
  47. package/docs/app/view/MainContainer.mjs +5 -0
  48. package/docs/app/view/classdetails/MembersList.mjs +1 -1
  49. package/examples/ServiceWorker.mjs +3 -5
  50. package/examples/component/helix/Viewport.mjs +309 -0
  51. package/examples/component/helix/ViewportController.mjs +122 -0
  52. package/examples/component/helix/app.mjs +2 -2
  53. package/examples/component/helix/neo-config.json +0 -1
  54. package/examples/component/multiWindowHelix/Viewport.mjs +11 -3
  55. package/examples/component/multiWindowHelix/ViewportController.mjs +21 -9
  56. package/examples/component/multiWindowHelix/neo-config.json +0 -1
  57. package/examples/fieldWithPrefix/MainContainer.mjs +1 -6
  58. package/examples/list/animate/MainContainerController.mjs +1 -1
  59. package/examples/worker/task/MyTasks.mjs +1 -3
  60. package/package.json +2 -2
  61. package/resources/data/deck/learnneo/pages/Events.md +15 -9
  62. package/resources/data/deck/learnneo/pages/GuideEvents.md +254 -0
  63. package/resources/data/deck/learnneo/pages/WhyNeo-Speed.md +1 -1
  64. package/resources/images/logo/neo_logo_primary.svg +6 -0
  65. package/resources/images/logo/neo_logo_text_primary.svg +5 -0
  66. package/resources/scss/src/apps/colors/BarChartComponent.scss +3 -0
  67. package/resources/scss/src/apps/colors/HeaderToolbar.scss +11 -0
  68. package/resources/scss/src/apps/colors/PieChartComponent.scss +3 -0
  69. package/resources/scss/src/apps/colors/TableContainer.scss +64 -0
  70. package/resources/scss/src/apps/colors/Viewport.scss +9 -0
  71. package/resources/scss/src/apps/portal/HeaderToolbar.scss +142 -124
  72. package/resources/scss/src/apps/portal/home/MainContainer.scss +9 -22
  73. package/resources/scss/src/apps/portal/home/parts/MainNeo.scss +22 -0
  74. package/resources/scss/src/apps/portal/home/preview/PageCodeContainer.scss +1 -1
  75. package/resources/scss/src/examples/component/multiWindowHelix/Viewport.scss +3 -0
  76. package/resources/scss/src/form/field/CheckBox.scss +1 -0
  77. package/resources/scss/src/tab/header/Button.scss +2 -1
  78. package/resources/scss/theme-dark/Global.scss +8 -0
  79. package/resources/scss/theme-dark/button/Base.scss +1 -1
  80. package/resources/scss/theme-dark/tab/header/Button.scss +1 -0
  81. package/resources/scss/theme-light/Global.scss +8 -0
  82. package/resources/scss/theme-light/button/Base.scss +1 -1
  83. package/resources/scss/theme-light/tab/header/Button.scss +1 -0
  84. package/resources/scss/theme-neo-light/Global.scss +53 -53
  85. package/resources/scss/theme-neo-light/button/Base.scss +3 -4
  86. package/resources/scss/theme-neo-light/tab/header/Button.scss +6 -8
  87. package/src/DefaultConfig.mjs +2 -2
  88. package/src/Fetch.mjs +1 -3
  89. package/src/Main.mjs +13 -11
  90. package/src/MicroLoader.mjs +2 -2
  91. package/src/Neo.mjs +27 -26
  92. package/src/Xhr.mjs +1 -3
  93. package/src/button/Base.mjs +6 -4
  94. package/src/button/Split.mjs +10 -9
  95. package/src/calendar/view/EditEventContainer.mjs +13 -12
  96. package/src/calendar/view/MainContainer.mjs +40 -40
  97. package/src/calendar/view/MainContainerModel.mjs +5 -5
  98. package/src/calendar/view/SettingsContainer.mjs +11 -11
  99. package/src/calendar/view/YearComponent.mjs +73 -75
  100. package/src/calendar/view/calendars/ColorsList.mjs +2 -2
  101. package/src/calendar/view/calendars/EditContainer.mjs +2 -2
  102. package/src/calendar/view/calendars/List.mjs +12 -13
  103. package/src/calendar/view/month/Component.mjs +72 -73
  104. package/src/calendar/view/settings/GeneralContainer.mjs +5 -5
  105. package/src/calendar/view/settings/MonthContainer.mjs +5 -5
  106. package/src/calendar/view/settings/WeekContainer.mjs +6 -6
  107. package/src/calendar/view/settings/YearContainer.mjs +4 -4
  108. package/src/calendar/view/week/Component.mjs +47 -57
  109. package/src/calendar/view/week/EventDragZone.mjs +43 -50
  110. package/src/calendar/view/week/TimeAxisComponent.mjs +21 -21
  111. package/src/calendar/view/week/plugin/DragDrop.mjs +53 -45
  112. package/src/calendar/view/week/plugin/EventResizable.mjs +8 -3
  113. package/src/collection/Base.mjs +15 -22
  114. package/src/collection/Filter.mjs +4 -9
  115. package/src/collection/Sorter.mjs +6 -7
  116. package/src/component/Base.mjs +73 -41
  117. package/src/component/Canvas.mjs +9 -9
  118. package/src/component/Carousel.mjs +31 -33
  119. package/src/component/Chip.mjs +9 -9
  120. package/src/component/Circle.mjs +84 -91
  121. package/src/component/Clock.mjs +8 -8
  122. package/src/component/DateSelector.mjs +14 -15
  123. package/src/component/Gallery.mjs +82 -80
  124. package/src/component/Helix.mjs +131 -126
  125. package/src/component/Iframe.mjs +1 -1
  126. package/src/component/Label.mjs +1 -1
  127. package/src/component/Legend.mjs +3 -3
  128. package/src/component/Process.mjs +39 -37
  129. package/src/component/Splitter.mjs +9 -11
  130. package/src/component/StatusBadge.mjs +2 -3
  131. package/src/component/Timer.mjs +62 -68
  132. package/src/component/Toast.mjs +11 -11
  133. package/src/component/Video.mjs +7 -8
  134. package/src/component/mwc/Button.mjs +10 -10
  135. package/src/component/mwc/TextField.mjs +17 -17
  136. package/src/component/wrapper/AmChart.mjs +5 -5
  137. package/src/component/wrapper/CesiumJS.mjs +11 -17
  138. package/src/component/wrapper/GoogleMaps.mjs +58 -35
  139. package/src/component/wrapper/MapboxGL.mjs +112 -79
  140. package/src/container/Accordion.mjs +18 -20
  141. package/src/container/AccordionItem.mjs +12 -11
  142. package/src/container/Base.mjs +24 -23
  143. package/src/container/Panel.mjs +9 -9
  144. package/src/controller/Base.mjs +12 -14
  145. package/src/controller/Component.mjs +60 -66
  146. package/src/core/Base.mjs +5 -8
  147. package/src/core/IdGenerator.mjs +1 -3
  148. package/src/core/Observable.mjs +40 -24
  149. package/src/core/Util.mjs +5 -5
  150. package/src/data/Model.mjs +3 -3
  151. package/src/data/RecordFactory.mjs +3 -6
  152. package/src/data/Store.mjs +34 -34
  153. package/src/data/connection/Fetch.mjs +3 -3
  154. package/src/data/connection/WebSocket.mjs +21 -25
  155. package/src/data/connection/Xhr.mjs +31 -28
  156. package/src/date/DayViewComponent.mjs +1 -1
  157. package/src/date/SelectorContainer.mjs +2 -2
  158. package/src/dialog/Base.mjs +27 -25
  159. package/src/dialog/header/Toolbar.mjs +5 -4
  160. package/src/draggable/DragProxyComponent.mjs +7 -4
  161. package/src/draggable/DragZone.mjs +30 -30
  162. package/src/draggable/DropZone.mjs +7 -7
  163. package/src/draggable/list/DragZone.mjs +18 -18
  164. package/src/draggable/tab/header/toolbar/SortZone.mjs +7 -7
  165. package/src/draggable/toolbar/DragZone.mjs +15 -15
  166. package/src/draggable/toolbar/SortZone.mjs +30 -31
  167. package/src/draggable/tree/DragZone.mjs +9 -9
  168. package/src/filter/BooleanContainer.mjs +3 -3
  169. package/src/filter/NumberContainer.mjs +5 -5
  170. package/src/filter/ToggleOperatorsButton.mjs +5 -5
  171. package/src/form/Fieldset.mjs +26 -26
  172. package/src/form/field/Base.mjs +1 -1
  173. package/src/form/field/CheckBox.mjs +15 -16
  174. package/src/form/field/Color.mjs +13 -15
  175. package/src/form/field/ComboBox.mjs +16 -24
  176. package/src/form/field/Country.mjs +1 -1
  177. package/src/form/field/Date.mjs +3 -4
  178. package/src/form/field/Display.mjs +1 -1
  179. package/src/form/field/Email.mjs +2 -2
  180. package/src/form/field/Number.mjs +51 -56
  181. package/src/form/field/Picker.mjs +2 -2
  182. package/src/form/field/Radio.mjs +1 -1
  183. package/src/form/field/Range.mjs +7 -6
  184. package/src/form/field/Text.mjs +29 -36
  185. package/src/form/field/TextArea.mjs +9 -9
  186. package/src/form/field/Time.mjs +30 -30
  187. package/src/form/field/trigger/Base.mjs +19 -13
  188. package/src/form/field/trigger/Clear.mjs +13 -13
  189. package/src/form/field/trigger/CopyToClipboard.mjs +7 -7
  190. package/src/form/field/trigger/Picker.mjs +2 -2
  191. package/src/form/field/trigger/SpinDown.mjs +1 -1
  192. package/src/form/field/trigger/SpinUp.mjs +1 -1
  193. package/src/form/field/trigger/SpinUpDown.mjs +3 -3
  194. package/src/form/field/trigger/Time.mjs +3 -3
  195. package/src/grid/Container.mjs +33 -33
  196. package/src/grid/View.mjs +20 -22
  197. package/src/grid/header/Button.mjs +12 -12
  198. package/src/grid/header/Toolbar.mjs +4 -4
  199. package/src/layout/Base.mjs +5 -4
  200. package/src/layout/Card.mjs +15 -16
  201. package/src/layout/Fit.mjs +22 -8
  202. package/src/layout/Flexbox.mjs +30 -29
  203. package/src/layout/Form.mjs +15 -15
  204. package/src/layout/Grid.mjs +2 -2
  205. package/src/layout/HBox.mjs +3 -2
  206. package/src/layout/VBox.mjs +3 -2
  207. package/src/list/Base.mjs +45 -47
  208. package/src/list/Chip.mjs +4 -4
  209. package/src/list/Circle.mjs +3 -3
  210. package/src/list/Color.mjs +4 -4
  211. package/src/list/Component.mjs +10 -10
  212. package/src/list/plugin/Animate.mjs +18 -13
  213. package/src/main/DomAccess.mjs +92 -56
  214. package/src/main/DomEvents.mjs +38 -39
  215. package/src/main/addon/AmCharts.mjs +37 -37
  216. package/src/main/addon/AnalyticsByGoogle.mjs +4 -4
  217. package/src/main/addon/CesiumJS.mjs +8 -8
  218. package/src/main/addon/CloneNode.mjs +5 -5
  219. package/src/main/addon/Cookie.mjs +4 -4
  220. package/src/main/addon/DragDrop.mjs +35 -34
  221. package/src/main/addon/GoogleMaps.mjs +19 -19
  222. package/src/main/addon/IntersectionObserver.mjs +20 -1
  223. package/src/main/addon/LocalStorage.mjs +3 -3
  224. package/src/main/addon/MapboxGL.mjs +40 -41
  225. package/src/main/addon/MonacoEditor.mjs +5 -5
  226. package/src/main/addon/Mwc.mjs +6 -6
  227. package/src/main/addon/Navigator.mjs +35 -39
  228. package/src/main/addon/Popover.mjs +5 -6
  229. package/src/main/addon/PrefixField.mjs +1 -2
  230. package/src/main/addon/ServiceWorker.mjs +9 -9
  231. package/src/main/addon/Siesta.mjs +3 -2
  232. package/src/main/addon/Stylesheet.mjs +37 -37
  233. package/src/main/addon/WebComponent.mjs +2 -3
  234. package/src/main/addon/WindowPosition.mjs +18 -18
  235. package/src/main/draggable/sensor/Base.mjs +2 -2
  236. package/src/main/draggable/sensor/Mouse.mjs +15 -15
  237. package/src/main/draggable/sensor/Touch.mjs +24 -23
  238. package/src/main/mixin/DeltaUpdates.mjs +10 -12
  239. package/src/main/mixin/TouchDomEvents.mjs +6 -6
  240. package/src/manager/Base.mjs +4 -4
  241. package/src/manager/Component.mjs +41 -41
  242. package/src/manager/DomEvent.mjs +41 -44
  243. package/src/manager/Focus.mjs +14 -16
  244. package/src/manager/Instance.mjs +2 -4
  245. package/src/manager/Store.mjs +4 -8
  246. package/src/manager/Task.mjs +20 -22
  247. package/src/manager/Toast.mjs +14 -16
  248. package/src/manager/rpc/Api.mjs +1 -3
  249. package/src/manager/rpc/Message.mjs +16 -18
  250. package/src/menu/List.mjs +16 -16
  251. package/src/menu/Panel.mjs +4 -4
  252. package/src/model/Component.mjs +16 -14
  253. package/src/plugin/Base.mjs +2 -0
  254. package/src/plugin/Popover.mjs +1 -1
  255. package/src/plugin/PrefixField.mjs +35 -45
  256. package/src/plugin/Resizable.mjs +86 -101
  257. package/src/plugin/Responsive.mjs +1 -1
  258. package/src/remotes/Api.mjs +4 -6
  259. package/src/selection/CircleModel.mjs +12 -16
  260. package/src/selection/DateSelectorModel.mjs +21 -23
  261. package/src/selection/GalleryModel.mjs +49 -63
  262. package/src/selection/HelixModel.mjs +35 -41
  263. package/src/selection/ListModel.mjs +9 -14
  264. package/src/selection/Model.mjs +31 -31
  265. package/src/selection/TreeAccordionModel.mjs +74 -80
  266. package/src/selection/grid/CellColumnModel.mjs +10 -10
  267. package/src/selection/grid/CellColumnRowModel.mjs +10 -10
  268. package/src/selection/grid/CellModel.mjs +26 -28
  269. package/src/selection/grid/CellRowModel.mjs +24 -24
  270. package/src/selection/grid/ColumnModel.mjs +16 -20
  271. package/src/selection/grid/RowModel.mjs +27 -29
  272. package/src/selection/menu/ListModel.mjs +2 -2
  273. package/src/selection/table/CellColumnModel.mjs +12 -12
  274. package/src/selection/table/CellColumnRowModel.mjs +12 -12
  275. package/src/selection/table/CellModel.mjs +26 -29
  276. package/src/selection/table/CellRowModel.mjs +19 -19
  277. package/src/selection/table/ColumnModel.mjs +18 -22
  278. package/src/selection/table/RowModel.mjs +27 -29
  279. package/src/sitemap/Component.mjs +20 -20
  280. package/src/sitemap/Store.mjs +1 -1
  281. package/src/tab/Container.mjs +15 -15
  282. package/src/tab/Strip.mjs +1 -1
  283. package/src/tab/header/Toolbar.mjs +4 -4
  284. package/src/table/Container.mjs +8 -10
  285. package/src/table/View.mjs +29 -34
  286. package/src/table/header/Button.mjs +18 -18
  287. package/src/table/header/Toolbar.mjs +2 -2
  288. package/src/toolbar/Base.mjs +14 -14
  289. package/src/toolbar/Breadcrumb.mjs +11 -11
  290. package/src/toolbar/Paging.mjs +18 -18
  291. package/src/tooltip/Base.mjs +20 -22
  292. package/src/tree/Accordion.mjs +69 -75
  293. package/src/tree/List.mjs +22 -25
  294. package/src/util/Array.mjs +19 -18
  295. package/src/util/ClassSystem.mjs +9 -9
  296. package/src/util/Css.mjs +2 -2
  297. package/src/util/Date.mjs +9 -9
  298. package/src/util/Function.mjs +2 -2
  299. package/src/util/HashHistory.mjs +3 -5
  300. package/src/util/KeyNavigation.mjs +17 -17
  301. package/src/util/Logger.mjs +9 -9
  302. package/src/util/Matrix.mjs +19 -19
  303. package/src/util/String.mjs +9 -9
  304. package/src/util/Style.mjs +11 -11
  305. package/src/util/VDom.mjs +12 -14
  306. package/src/util/VNode.mjs +29 -29
  307. package/src/vdom/Helper.mjs +84 -93
  308. package/src/vdom/VNode.mjs +1 -1
  309. package/src/worker/App.mjs +19 -16
  310. package/src/worker/Base.mjs +14 -15
  311. package/src/worker/Canvas.mjs +1 -3
  312. package/src/worker/Data.mjs +4 -8
  313. package/src/worker/Manager.mjs +27 -32
  314. package/src/worker/Message.mjs +1 -1
  315. package/src/worker/ServiceBase.mjs +38 -42
  316. package/src/worker/Task.mjs +1 -3
  317. package/src/worker/VDom.mjs +2 -4
  318. package/src/worker/mixin/RemoteMethodAccess.mjs +5 -6
  319. package/apps/portal/view/home/parts/CoolStuff.mjs +0 -82
  320. package/examples/component/helix/MainContainer.mjs +0 -340
  321. /package/resources/images/{Neo_Logo_Blue.svg → logo/neo_logo_secondary.svg} +0 -0
  322. /package/resources/images/{Neo_Logo_Text.svg → logo/neo_logo_text_secondary.svg} +0 -0
  323. /package/resources/images/{Neo_Logo_White.svg → logo/neo_logo_white.svg} +0 -0
@@ -92,7 +92,7 @@ class TextArea extends Text {
92
92
 
93
93
  // Restore any configured height if autoGrow turned off
94
94
  if (!value) {
95
- me.afterSetHeight(me._height);
95
+ me.afterSetHeight(me._height)
96
96
  }
97
97
  }
98
98
 
@@ -103,7 +103,7 @@ class TextArea extends Text {
103
103
  * @protected
104
104
  */
105
105
  afterSetCols(value, oldValue) {
106
- this.changeInputElKey('cols', value);
106
+ this.changeInputElKey('cols', value)
107
107
  }
108
108
 
109
109
  /**
@@ -113,7 +113,7 @@ class TextArea extends Text {
113
113
  * @protected
114
114
  */
115
115
  afterSetInputTag(value, oldValue) {
116
- this.changeInputElKey('tag', value);
116
+ this.changeInputElKey('tag', value)
117
117
  }
118
118
 
119
119
  /**
@@ -124,7 +124,7 @@ class TextArea extends Text {
124
124
  */
125
125
  afterSetMounted(value, oldValue) {
126
126
  super.afterSetMounted(value, oldValue);
127
- this.syncAutoGrowMonitor();
127
+ this.syncAutoGrowMonitor()
128
128
  }
129
129
 
130
130
  /**
@@ -138,7 +138,7 @@ class TextArea extends Text {
138
138
  style = this.getInputEl().style;
139
139
 
140
140
  style.resize = value ? null : 'none';
141
- me.update();
141
+ me.update()
142
142
  }
143
143
 
144
144
  /**
@@ -148,7 +148,7 @@ class TextArea extends Text {
148
148
  * @protected
149
149
  */
150
150
  afterSetRows(value, oldValue) {
151
- this.changeInputElKey('rows', value);
151
+ this.changeInputElKey('rows', value)
152
152
  }
153
153
 
154
154
  /**
@@ -162,7 +162,7 @@ class TextArea extends Text {
162
162
  inputEl = me.getInputEl();
163
163
 
164
164
  if (inputEl) {
165
- inputEl.html = StringUtil.escapeHtml(value);
165
+ inputEl.html = StringUtil.escapeHtml(value)
166
166
  }
167
167
 
168
168
  super.afterSetValue(value, oldValue);
@@ -185,7 +185,7 @@ class TextArea extends Text {
185
185
  * @protected
186
186
  */
187
187
  afterSetWrap(value, oldValue) {
188
- this.changeInputElKey('wrap', value);
188
+ this.changeInputElKey('wrap', value)
189
189
  }
190
190
 
191
191
  /**
@@ -196,7 +196,7 @@ class TextArea extends Text {
196
196
  * @protected
197
197
  */
198
198
  beforeSetWrap(value, oldValue) {
199
- return this.beforeSetEnumValue(value, oldValue, 'wrap', 'wrapValues');
199
+ return this.beforeSetEnumValue(value, oldValue, 'wrap', 'wrapValues')
200
200
  }
201
201
 
202
202
  /**
@@ -118,7 +118,7 @@ class Time extends Picker {
118
118
  itemClick : me.onListItemClick,
119
119
  itemNavigate: me.onListItemNavigate,
120
120
  scope : me
121
- });
121
+ })
122
122
  }
123
123
 
124
124
  /**
@@ -131,7 +131,7 @@ class Time extends Picker {
131
131
  this.changeInputElKey('max', value);
132
132
 
133
133
  if (oldValue !== undefined) {
134
- this.recreateListItems();
134
+ this.recreateListItems()
135
135
  }
136
136
  }
137
137
 
@@ -145,7 +145,7 @@ class Time extends Picker {
145
145
  this.changeInputElKey('min', value);
146
146
 
147
147
  if (oldValue !== undefined) {
148
- this.recreateListItems();
148
+ this.recreateListItems()
149
149
  }
150
150
  }
151
151
 
@@ -157,7 +157,7 @@ class Time extends Picker {
157
157
  */
158
158
  afterSetPickerIsMounted(value, oldValue) {
159
159
  if (value) {
160
- this.selectCurrentListItem();
160
+ this.selectCurrentListItem()
161
161
  }
162
162
  }
163
163
 
@@ -168,7 +168,7 @@ class Time extends Picker {
168
168
  * @protected
169
169
  */
170
170
  afterSetStepSize(value, oldValue) {
171
- this.changeInputElKey('step', value);
171
+ this.changeInputElKey('step', value)
172
172
 
173
173
  // todo: adjust min & max value => see: form.field.Number
174
174
  }
@@ -188,7 +188,7 @@ class Time extends Picker {
188
188
  me.getTrigger('time').value = value;
189
189
 
190
190
  if (me.pickerIsMounted && !preventListSelect) {
191
- me.selectCurrentListItem(true);
191
+ me.selectCurrentListItem(true)
192
192
  }
193
193
  }
194
194
 
@@ -206,10 +206,10 @@ class Time extends Picker {
206
206
  minute: '2-digit',
207
207
  second: this.stepSize < 60 ? '2-digit' : undefined,
208
208
  hour12: false
209
- });
209
+ })
210
210
  }
211
211
 
212
- return value;
212
+ return value
213
213
  }
214
214
 
215
215
  /**
@@ -222,11 +222,11 @@ class Time extends Picker {
222
222
  beforeSetMaxValue(value, oldValue) {
223
223
  if (value) {
224
224
  if (value.includes('24') || (value.startsWith('12') && value.includes('AM'))) {
225
- return '23:59:00';
225
+ return '23:59:00'
226
226
  }
227
227
  }
228
228
 
229
- return this.formatTime(value);
229
+ return this.formatTime(value)
230
230
  }
231
231
 
232
232
  /**
@@ -237,7 +237,7 @@ class Time extends Picker {
237
237
  * @returns {String}
238
238
  */
239
239
  beforeSetMinValue(value, oldValue) {
240
- return this.formatTime(value);
240
+ return this.formatTime(value)
241
241
  }
242
242
 
243
243
  /**
@@ -248,7 +248,7 @@ class Time extends Picker {
248
248
  * @returns {String}
249
249
  */
250
250
  beforeSetValue(value, oldValue) {
251
- return this.formatTime(value);
251
+ return this.formatTime(value)
252
252
  }
253
253
 
254
254
  /**
@@ -276,17 +276,17 @@ class Time extends Picker {
276
276
  value: dt.format(currentDate)
277
277
  });
278
278
 
279
- currentDate.setSeconds(currentDate.getSeconds() + me.stepSize);
279
+ currentDate.setSeconds(currentDate.getSeconds() + me.stepSize)
280
280
  }
281
281
 
282
- return listItems;
282
+ return listItems
283
283
  }
284
284
 
285
285
  /**
286
286
  * @returns {Neo.component.DateSelector}
287
287
  */
288
288
  createPickerComponent() {
289
- return this.list;
289
+ return this.list
290
290
  }
291
291
 
292
292
  /**
@@ -312,10 +312,10 @@ class Time extends Picker {
312
312
  */
313
313
  formatTime(value) {
314
314
  if (value) {
315
- return this.valueFormat.format(new Date(`November 23, 2019 ${value}`));
315
+ return this.valueFormat.format(new Date(`November 23, 2019 ${value}`))
316
316
  }
317
317
 
318
- return value;
318
+ return value
319
319
  }
320
320
 
321
321
  /**
@@ -323,7 +323,7 @@ class Time extends Picker {
323
323
  * @protected
324
324
  */
325
325
  onContainerKeyDownEnter(data) {
326
- this.hidePicker();
326
+ this.hidePicker()
327
327
  }
328
328
 
329
329
  /**
@@ -331,7 +331,7 @@ class Time extends Picker {
331
331
  * @protected
332
332
  */
333
333
  onContainerKeyDownEscape(data) {
334
- this.focusInputEl(this.hidePicker);
334
+ this.focusInputEl(this.hidePicker)
335
335
  }
336
336
 
337
337
  /**
@@ -343,9 +343,9 @@ class Time extends Picker {
343
343
 
344
344
  if (me.pickerIsMounted) {
345
345
  super.onKeyDownEnter(data);
346
- me.selectCurrentListItem();
346
+ me.selectCurrentListItem()
347
347
  } else {
348
- super.onKeyDownEnter(data, me.selectCurrentListItem);
348
+ super.onKeyDownEnter(data, me.selectCurrentListItem)
349
349
  }
350
350
  }
351
351
 
@@ -355,13 +355,13 @@ class Time extends Picker {
355
355
  onListItemClick(record) {
356
356
  let me = this,
357
357
  oldValue = me.value,
358
- value = record.value;
358
+ {value} = record;
359
359
 
360
360
  if (me.value !== value) {
361
361
  value = me.formatTime(value);
362
362
 
363
363
  me._value = value;
364
- me.afterSetValue(value, oldValue, true); // prevent the list from getting selected / focused
364
+ me.afterSetValue(value, oldValue, true) // prevent the list from getting selected / focused
365
365
  }
366
366
  }
367
367
 
@@ -369,7 +369,7 @@ class Time extends Picker {
369
369
  * @param {Object} record
370
370
  */
371
371
  onListItemNavigate(record) {
372
- this.onListItemClick(record);
372
+ this.onListItemClick(record)
373
373
  }
374
374
 
375
375
  /**
@@ -380,7 +380,7 @@ class Time extends Picker {
380
380
 
381
381
  me.collection.clear();
382
382
  me.collection.add(me.createCollectionItems());
383
- me.list.createItems();
383
+ me.list.createItems()
384
384
  }
385
385
 
386
386
  /**
@@ -392,19 +392,19 @@ class Time extends Picker {
392
392
  let me = this;
393
393
 
394
394
  if (value && me.clearToOriginalValue) {
395
- me.originalConfig.value = me.formatTime(value);
395
+ me.originalConfig.value = me.formatTime(value)
396
396
  }
397
397
 
398
- me.value = me.clearToOriginalValue ? me.originalConfig.value : null;
398
+ me.value = me.clearToOriginalValue ? me.originalConfig.value : null
399
399
  }
400
400
 
401
401
  /**
402
402
  * @param {Boolean} [preventFocus=false]
403
403
  */
404
404
  selectCurrentListItem(preventFocus=false) {
405
- let me = this,
406
- list = me.list,
407
- id = list.getItemId(me.value);
405
+ let me = this,
406
+ {list} = me,
407
+ id = list.getItemId(me.value);
408
408
 
409
409
  list.selectionModel.select(id);
410
410
 
@@ -87,8 +87,8 @@ class Base extends Component {
87
87
  me.field.addDomListeners([
88
88
  {mouseenter: me.onMouseEnter, scope: me},
89
89
  {mouseleave: me.onMouseLeave, scope: me}
90
- ]);
91
- }, me);
90
+ ])
91
+ }, me)
92
92
  }
93
93
  }
94
94
 
@@ -102,11 +102,17 @@ class Base extends Component {
102
102
  let cls = this.cls;
103
103
 
104
104
  NeoArray[value === 'start' ? 'add' : 'remove'](cls, 'neo-align-start');
105
- this.cls = cls;
105
+ this.cls = cls
106
106
  }
107
107
 
108
- afterSetField(field) {
109
- (this.vdom.data || (this.vdom.data = {})).focus = field && field.getInputElId();
108
+ /**
109
+ * Triggered after the field config got changed
110
+ * @param {String} value
111
+ * @param {String} oldValue
112
+ * @protected
113
+ */
114
+ afterSetField(value, oldValue) {
115
+ (this.vdom.data || (this.vdom.data = {})).focus = value?.getInputElId()
110
116
  }
111
117
 
112
118
  /**
@@ -116,10 +122,10 @@ class Base extends Component {
116
122
  * @protected
117
123
  */
118
124
  afterSetHidden(value, oldValue) {
119
- let style = this.style;
125
+ let {style} = this;
120
126
 
121
127
  style.display = value ? 'none' : 'inherit';
122
- this.style = style;
128
+ this.style = style
123
129
  }
124
130
 
125
131
  /**
@@ -129,15 +135,15 @@ class Base extends Component {
129
135
  * @protected
130
136
  */
131
137
  afterSetIconCls(value, oldValue) {
132
- let cls = this.cls;
138
+ let {cls} = this;
133
139
 
134
140
  NeoArray.remove(cls, oldValue);
135
141
 
136
142
  if (value && value !== '') {
137
- NeoArray.add(cls, value);
143
+ NeoArray.add(cls, value)
138
144
  }
139
145
 
140
- this.cls = cls;
146
+ this.cls = cls
141
147
  }
142
148
 
143
149
  /**
@@ -147,7 +153,7 @@ class Base extends Component {
147
153
  * @protected
148
154
  */
149
155
  beforeSetAlign(value, oldValue) {
150
- return this.beforeSetEnumValue(value, oldValue, 'align', 'alignValues');
156
+ return this.beforeSetEnumValue(value, oldValue, 'align', 'alignValues')
151
157
  }
152
158
 
153
159
  /**
@@ -163,7 +169,7 @@ class Base extends Component {
163
169
 
164
170
  delete me.field;
165
171
 
166
- super.destroy(updateParentVdom, silent);
172
+ super.destroy(updateParentVdom, silent)
167
173
  }
168
174
 
169
175
  /**
@@ -192,7 +198,7 @@ class Base extends Component {
192
198
  scope = me.scope || me;
193
199
 
194
200
  if (me.handler) {
195
- scope[me.handler].call(scope);
201
+ scope[me.handler].call(scope)
196
202
  }
197
203
  }
198
204
  }
@@ -45,7 +45,7 @@ class Clear extends Base {
45
45
  * @protected
46
46
  */
47
47
  afterSetHidden(value, oldValue) {
48
- let cls = this.cls;
48
+ let {cls} = this;
49
49
 
50
50
  NeoArray[value ? 'add' : 'remove'](cls, 'neo-is-hidden');
51
51
  this.cls = cls;
@@ -59,10 +59,10 @@ class Clear extends Base {
59
59
  */
60
60
  beforeSetHidden(value, oldValue) {
61
61
  if (this.showOnHover && !this.isHovered) {
62
- return true;
62
+ return true
63
63
  }
64
64
 
65
- return value;
65
+ return value
66
66
  }
67
67
 
68
68
  /**
@@ -77,25 +77,25 @@ class Clear extends Base {
77
77
  scope : me
78
78
  });
79
79
 
80
- super.destroy(...args);
80
+ super.destroy(...args)
81
81
  }
82
82
 
83
83
  /**
84
84
  * @returns {Boolean} true in case the trigger should be hidden
85
85
  */
86
86
  getHiddenState() {
87
- let me = this,
88
- field = me.field,
89
- value = field.value;
87
+ let me = this,
88
+ {field} = me,
89
+ {value} = field;
90
90
 
91
91
  if (field.clearToOriginalValue) {
92
92
  return value === field.originalConfig.value;
93
93
  } else {
94
94
  if (value === 0) {
95
- value = '0';
95
+ value = '0'
96
96
  }
97
97
 
98
- return !field.value || value.toString().length < 1;
98
+ return !field.value || value.toString().length < 1
99
99
  }
100
100
  }
101
101
 
@@ -103,7 +103,7 @@ class Clear extends Base {
103
103
  * @param {Object} opts
104
104
  */
105
105
  onFieldChange(opts) {
106
- this.hidden = this.getHiddenState();
106
+ this.hidden = this.getHiddenState()
107
107
  }
108
108
 
109
109
  /**
@@ -120,7 +120,7 @@ class Clear extends Base {
120
120
  scope : me
121
121
  });
122
122
 
123
- me.hidden = me.getHiddenState();
123
+ me.hidden = me.getHiddenState()
124
124
  }
125
125
 
126
126
  /**
@@ -130,14 +130,14 @@ class Clear extends Base {
130
130
  let me = this;
131
131
 
132
132
  me.isHovered = true;
133
- me.hidden = me.getHiddenState();
133
+ me.hidden = me.getHiddenState()
134
134
  }
135
135
 
136
136
  /**
137
137
  * @param {Object} data
138
138
  */
139
139
  onTriggerClick(data) {
140
- this.field.clear();
140
+ this.field.clear()
141
141
  }
142
142
  }
143
143
 
@@ -49,16 +49,16 @@ class CopyToClipboard extends Base {
49
49
  * @protected
50
50
  */
51
51
  afterSetHidden(value, oldValue) {
52
- let cls = this.cls;
52
+ let {cls} = this;
53
53
  NeoArray[value? 'add' : 'remove'](cls, 'neo-is-hidden');
54
- this.cls = cls;
54
+ this.cls = cls
55
55
  }
56
56
 
57
57
  /**
58
58
  * @returns {Boolean} true in case the trigger should be hidden
59
59
  */
60
60
  getHiddenState() {
61
- return !this.field.value || this.field.value.length === 0;
61
+ return !this.field.value || this.field.value.length === 0
62
62
  }
63
63
 
64
64
  /**
@@ -75,14 +75,14 @@ class CopyToClipboard extends Base {
75
75
  scope : me
76
76
  });
77
77
 
78
- me.hidden = me.getHiddenState();
78
+ me.hidden = me.getHiddenState()
79
79
  }
80
80
 
81
81
  /**
82
82
  * @param {Object} opts
83
83
  */
84
84
  onFieldChange(opts) {
85
- this.hidden = this.getHiddenState();
85
+ this.hidden = this.getHiddenState()
86
86
  }
87
87
 
88
88
  /**
@@ -98,8 +98,8 @@ class CopyToClipboard extends Base {
98
98
  Neo.main.DomAccess.execCommand({
99
99
  appName: me.appName,
100
100
  command: 'copy'
101
- });
102
- });
101
+ })
102
+ })
103
103
  }
104
104
  }
105
105
 
@@ -33,8 +33,8 @@ class Picker extends Base {
33
33
  * @param {Object} data
34
34
  */
35
35
  onTriggerClick(data) {
36
- this.field.onPickerTriggerClick();
37
- }
36
+ this.field.onPickerTriggerClick()
37
+ }
38
38
  }
39
39
 
40
40
  Neo.setupClass(Picker);
@@ -37,7 +37,7 @@ class SpinDown extends Base {
37
37
  * @param {Object} data
38
38
  */
39
39
  onTriggerClick(data) {
40
- this.field.onSpinButtonDownClick();
40
+ this.field.onSpinButtonDownClick()
41
41
  }
42
42
  }
43
43
 
@@ -33,7 +33,7 @@ class SpinUp extends Base {
33
33
  * @param {Object} data
34
34
  */
35
35
  onTriggerClick(data) {
36
- this.field.onSpinButtonUpClick();
36
+ this.field.onSpinButtonUpClick()
37
37
  }
38
38
  }
39
39
 
@@ -50,7 +50,7 @@ class SpinUpDown extends Base {
50
50
 
51
51
  me.update();
52
52
 
53
- super.onConstructed();
53
+ super.onConstructed()
54
54
  }
55
55
 
56
56
  /**
@@ -62,9 +62,9 @@ class SpinUpDown extends Base {
62
62
  cls = target.cls.join(' ');
63
63
 
64
64
  if (cls.includes('neo-down')) {
65
- me.field.onSpinButtonDownClick();
65
+ me.field.onSpinButtonDownClick()
66
66
  } else if (cls.includes('neo-up')) {
67
- me.field.onSpinButtonUpClick();
67
+ me.field.onSpinButtonUpClick()
68
68
  }
69
69
  }
70
70
  }
@@ -66,7 +66,7 @@ class Time extends Picker {
66
66
  });
67
67
 
68
68
  me.vdom.cn = [me.clock.vdom];
69
- me.update();
69
+ me.update()
70
70
  }
71
71
 
72
72
  /**
@@ -79,7 +79,7 @@ class Time extends Picker {
79
79
  super.afterSetAppName(value, oldValue);
80
80
 
81
81
  if (value) {
82
- this.clock.appName = value;
82
+ this.clock.appName = value
83
83
  }
84
84
  }
85
85
 
@@ -91,7 +91,7 @@ class Time extends Picker {
91
91
  */
92
92
  afterSetValue(value, oldValue) {
93
93
  if (value) {
94
- this.clock.time = value;
94
+ this.clock.time = value
95
95
  }
96
96
  }
97
97
  }