neo.mjs 2.3.14 → 2.3.18

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 (261) hide show
  1. package/README.md +2 -2
  2. package/apps/covid/Util.mjs +1 -3
  3. package/apps/covid/view/GalleryContainer.mjs +0 -1
  4. package/apps/covid/view/GalleryContainerController.mjs +1 -5
  5. package/apps/covid/view/HelixContainer.mjs +0 -1
  6. package/apps/covid/view/HelixContainerController.mjs +1 -4
  7. package/apps/covid/view/MainContainer.mjs +1 -1
  8. package/apps/covid/view/MainContainerController.mjs +0 -7
  9. package/apps/covid/view/MainContainerModel.mjs +0 -1
  10. package/apps/covid/view/TableContainer.mjs +0 -1
  11. package/apps/covid/view/TableContainerController.mjs +0 -3
  12. package/apps/covid/view/WorldMapComponent.mjs +1 -2
  13. package/apps/covid/view/WorldMapContainerController.mjs +0 -2
  14. package/apps/covid/view/country/Gallery.mjs +0 -2
  15. package/apps/covid/view/country/Helix.mjs +0 -3
  16. package/apps/covid/view/mapboxGl/Container.mjs +1 -1
  17. package/apps/covid/view/mapboxGl/ContainerController.mjs +1 -6
  18. package/apps/krausest/TableCollection.mjs +0 -1
  19. package/apps/krausest/view/MainComponent.mjs +0 -1
  20. package/apps/krausest/view/MainComponentController.mjs +0 -1
  21. package/apps/krausest/view/TableComponent.mjs +0 -2
  22. package/apps/realworld/api/Article.mjs +1 -4
  23. package/apps/realworld/api/Base.mjs +0 -5
  24. package/apps/realworld/api/Favorite.mjs +1 -3
  25. package/apps/realworld/api/Profile.mjs +1 -3
  26. package/apps/realworld/api/config.mjs +2 -2
  27. package/apps/realworld/view/HeaderComponent.mjs +1 -2
  28. package/apps/realworld/view/HomeComponent.mjs +0 -9
  29. package/apps/realworld/view/MainContainerController.mjs +0 -13
  30. package/apps/realworld/view/article/CommentComponent.mjs +1 -3
  31. package/apps/realworld/view/article/Component.mjs +0 -5
  32. package/apps/realworld/view/article/CreateCommentComponent.mjs +1 -5
  33. package/apps/realworld/view/article/PreviewComponent.mjs +1 -3
  34. package/apps/realworld/view/article/TagListComponent.mjs +1 -5
  35. package/apps/realworld/view/user/ProfileComponent.mjs +0 -6
  36. package/apps/realworld/view/user/SettingsComponent.mjs +1 -5
  37. package/apps/realworld/view/user/SignUpComponent.mjs +0 -1
  38. package/apps/realworld2/api/Article.mjs +1 -4
  39. package/apps/realworld2/api/Base.mjs +0 -5
  40. package/apps/realworld2/api/Favorite.mjs +1 -3
  41. package/apps/realworld2/api/Profile.mjs +1 -3
  42. package/apps/realworld2/view/HeaderToolbarController.mjs +1 -2
  43. package/apps/realworld2/view/HomeContainer.mjs +1 -2
  44. package/apps/realworld2/view/MainContainerController.mjs +1 -14
  45. package/apps/realworld2/view/article/Gallery.mjs +1 -3
  46. package/apps/realworld2/view/article/GalleryContainer.mjs +1 -2
  47. package/apps/realworld2/view/article/Helix.mjs +1 -3
  48. package/apps/realworld2/view/article/HelixContainer.mjs +1 -3
  49. package/apps/realworld2/view/article/PreviewComponent.mjs +1 -3
  50. package/apps/realworld2/view/article/TagListComponent.mjs +1 -5
  51. package/apps/realworld2/view/user/LoginFormContainer.mjs +1 -2
  52. package/apps/sharedcovid/Util.mjs +1 -3
  53. package/apps/sharedcovid/view/GalleryContainer.mjs +0 -1
  54. package/apps/sharedcovid/view/GalleryContainerController.mjs +1 -5
  55. package/apps/sharedcovid/view/HelixContainer.mjs +0 -1
  56. package/apps/sharedcovid/view/HelixContainerController.mjs +1 -4
  57. package/apps/sharedcovid/view/MainContainer.mjs +1 -1
  58. package/apps/sharedcovid/view/MainContainerModel.mjs +0 -1
  59. package/apps/sharedcovid/view/TableContainer.mjs +0 -1
  60. package/apps/sharedcovid/view/TableContainerController.mjs +0 -3
  61. package/apps/sharedcovid/view/WorldMapComponent.mjs +1 -2
  62. package/apps/sharedcovid/view/WorldMapContainerController.mjs +0 -2
  63. package/apps/sharedcovid/view/country/Gallery.mjs +0 -2
  64. package/apps/sharedcovid/view/country/Helix.mjs +0 -3
  65. package/apps/sharedcovid/view/mapboxGl/Container.mjs +0 -1
  66. package/apps/sharedcovid/view/mapboxGl/ContainerController.mjs +1 -5
  67. package/apps/shareddialog/view/MainContainerController.mjs +0 -18
  68. package/apps/shareddialog2/view/MainContainerController.mjs +1 -2
  69. package/apps/website/data/blog.json +16 -3
  70. package/apps/website/data/examples_devmode.json +18 -18
  71. package/apps/website/view/MainContainerController.mjs +0 -4
  72. package/buildScripts/webpack/development/webpack.config.main.js +2 -1
  73. package/buildScripts/webpack/production/webpack.config.main.js +2 -1
  74. package/examples/ConfigurationViewport.mjs +0 -4
  75. package/examples/calendar/basic/MainContainerController.mjs +0 -1
  76. package/examples/component/coronaGallery/CountryGallery.mjs +1 -4
  77. package/examples/component/coronaGallery/MainContainer.mjs +0 -2
  78. package/examples/component/coronaHelix/CountryHelix.mjs +0 -4
  79. package/examples/component/coronaHelix/MainContainer.mjs +0 -2
  80. package/examples/component/gallery/MainContainer.mjs +0 -2
  81. package/examples/component/helix/MainContainer.mjs +0 -2
  82. package/examples/component/splitter/MainContainer.mjs +0 -2
  83. package/examples/core/config/MainContainer.mjs +1 -3
  84. package/examples/dialog/MainContainer.mjs +1 -5
  85. package/examples/list/animate/List.mjs +50 -0
  86. package/examples/list/animate/MainContainer.mjs +79 -0
  87. package/examples/list/animate/MainModel.mjs +33 -0
  88. package/examples/list/animate/MainStore.mjs +31 -0
  89. package/examples/list/animate/app.mjs +8 -0
  90. package/examples/list/animate/index.html +11 -0
  91. package/examples/list/animate/neo-config.json +7 -0
  92. package/examples/list/base/neo-config.json +1 -1
  93. package/examples/model/advanced/MainContainerController.mjs +0 -12
  94. package/examples/model/dialog/EditUserDialogController.mjs +1 -3
  95. package/examples/model/dialog/MainContainerController.mjs +1 -2
  96. package/examples/model/extendedClass/MainContainerController.mjs +0 -7
  97. package/examples/model/inline/MainContainerController.mjs +0 -7
  98. package/examples/model/inlineNoModel/MainContainerController.mjs +1 -6
  99. package/examples/model/multiWindow/EditUserDialogController.mjs +1 -3
  100. package/examples/model/multiWindow/MainContainerController.mjs +1 -3
  101. package/examples/model/multiWindow/ViewportController.mjs +1 -3
  102. package/examples/model/nestedData/MainContainerController.mjs +1 -8
  103. package/examples/tab/container/MainContainer.mjs +1 -6
  104. package/examples/todoList/version2/TodoList.mjs +1 -1
  105. package/examples/tree/MainContainer.mjs +0 -2
  106. package/package.json +11 -11
  107. package/resources/scss/src/examples/list/animate/List.scss +30 -0
  108. package/src/Main.mjs +7 -16
  109. package/src/Neo.mjs +1 -4
  110. package/src/button/Menu.mjs +0 -1
  111. package/src/button/Split.mjs +0 -4
  112. package/src/calendar/store/Events.mjs +0 -1
  113. package/src/calendar/view/DayComponent.mjs +0 -1
  114. package/src/calendar/view/EditEventContainer.mjs +0 -7
  115. package/src/calendar/view/MainContainer.mjs +0 -15
  116. package/src/calendar/view/MainContainerModel.mjs +0 -2
  117. package/src/calendar/view/SettingsContainer.mjs +0 -4
  118. package/src/calendar/view/YearComponent.mjs +0 -9
  119. package/src/calendar/view/calendars/Container.mjs +0 -1
  120. package/src/calendar/view/calendars/EditContainer.mjs +0 -5
  121. package/src/calendar/view/calendars/List.mjs +0 -5
  122. package/src/calendar/view/month/Component.mjs +0 -12
  123. package/src/calendar/view/settings/GeneralContainer.mjs +0 -3
  124. package/src/calendar/view/settings/MonthContainer.mjs +0 -3
  125. package/src/calendar/view/settings/WeekContainer.mjs +0 -5
  126. package/src/calendar/view/settings/YearContainer.mjs +0 -3
  127. package/src/calendar/view/week/Component.mjs +0 -16
  128. package/src/calendar/view/week/EventDragZone.mjs +0 -3
  129. package/src/calendar/view/week/TimeAxisComponent.mjs +0 -1
  130. package/src/calendar/view/week/plugin/DragDrop.mjs +0 -10
  131. package/src/calendar/view/week/plugin/EventResizable.mjs +0 -3
  132. package/src/collection/Base.mjs +8 -24
  133. package/src/collection/Filter.mjs +0 -1
  134. package/src/collection/Sorter.mjs +0 -3
  135. package/src/component/Base.mjs +1 -3
  136. package/src/component/Chip.mjs +0 -2
  137. package/src/component/Circle.mjs +0 -18
  138. package/src/component/DateSelector.mjs +0 -13
  139. package/src/component/Gallery.mjs +0 -12
  140. package/src/component/Helix.mjs +0 -14
  141. package/src/component/Splitter.mjs +0 -3
  142. package/src/component/mwc/TextField.mjs +0 -1
  143. package/src/component/wrapper/AmChart.mjs +1 -1
  144. package/src/component/wrapper/MapboxGL.mjs +0 -5
  145. package/src/container/Base.mjs +1 -7
  146. package/src/container/Panel.mjs +0 -3
  147. package/src/controller/Application.mjs +0 -1
  148. package/src/controller/Base.mjs +0 -1
  149. package/src/controller/Component.mjs +1 -4
  150. package/src/core/Base.mjs +2 -3
  151. package/src/core/Compare.mjs +0 -1
  152. package/src/core/IdGenerator.mjs +1 -3
  153. package/src/core/Observable.mjs +0 -3
  154. package/src/core/Util.mjs +0 -1
  155. package/src/core/_export.mjs +1 -2
  156. package/src/data/RecordFactory.mjs +1 -6
  157. package/src/data/Store.mjs +0 -10
  158. package/src/data/connection/Xhr.mjs +0 -6
  159. package/src/dialog/Base.mjs +0 -10
  160. package/src/draggable/DragProxyComponent.mjs +1 -3
  161. package/src/draggable/DragZone.mjs +0 -6
  162. package/src/draggable/DropZone.mjs +1 -7
  163. package/src/draggable/list/DragZone.mjs +1 -7
  164. package/src/draggable/tab/header/toolbar/SortZone.mjs +1 -3
  165. package/src/draggable/toolbar/DragZone.mjs +1 -5
  166. package/src/draggable/toolbar/SortZone.mjs +0 -5
  167. package/src/draggable/tree/DragZone.mjs +1 -4
  168. package/src/filter/BooleanContainer.mjs +0 -1
  169. package/src/filter/NumberContainer.mjs +0 -2
  170. package/src/filter/ToggleOperatorsButton.mjs +1 -3
  171. package/src/form/Container.mjs +0 -2
  172. package/src/form/Fieldset.mjs +0 -1
  173. package/src/form/field/Base.mjs +0 -2
  174. package/src/form/field/CheckBox.mjs +0 -5
  175. package/src/form/field/Color.mjs +0 -3
  176. package/src/form/field/Date.mjs +0 -4
  177. package/src/form/field/Display.mjs +0 -1
  178. package/src/form/field/Picker.mjs +0 -9
  179. package/src/form/field/Range.mjs +0 -1
  180. package/src/form/field/Select.mjs +22 -20
  181. package/src/form/field/Text.mjs +0 -15
  182. package/src/form/field/Time.mjs +0 -7
  183. package/src/form/field/trigger/Base.mjs +0 -2
  184. package/src/form/field/trigger/Clear.mjs +0 -3
  185. package/src/form/field/trigger/CopyToClipboard.mjs +0 -3
  186. package/src/form/field/trigger/Picker.mjs +0 -1
  187. package/src/form/field/trigger/SpinDown.mjs +0 -1
  188. package/src/form/field/trigger/SpinUp.mjs +0 -1
  189. package/src/form/field/trigger/SpinUpDown.mjs +0 -1
  190. package/src/form/field/trigger/Time.mjs +0 -1
  191. package/src/grid/Container.mjs +1 -4
  192. package/src/grid/header/Toolbar.mjs +1 -5
  193. package/src/list/Base.mjs +39 -8
  194. package/src/list/Color.mjs +0 -3
  195. package/src/list/Component.mjs +0 -3
  196. package/src/list/plugin/Animate.mjs +176 -0
  197. package/src/main/DomAccess.mjs +7 -22
  198. package/src/main/DomEvents.mjs +42 -75
  199. package/src/main/addon/AmCharts.mjs +1 -10
  200. package/src/main/addon/AnalyticsByGoogle.mjs +1 -2
  201. package/src/main/addon/CloneNode.mjs +0 -2
  202. package/src/main/addon/Cookie.mjs +0 -3
  203. package/src/main/addon/DragDrop.mjs +0 -9
  204. package/src/main/addon/HighlightJS.mjs +1 -5
  205. package/src/main/addon/MapboxGL.mjs +1 -14
  206. package/src/main/addon/Mwc.mjs +0 -2
  207. package/src/main/addon/Siesta.mjs +0 -1
  208. package/src/main/addon/Stylesheet.mjs +0 -4
  209. package/src/main/addon/WindowPosition.mjs +1 -6
  210. package/src/main/draggable/sensor/Mouse.mjs +0 -4
  211. package/src/main/draggable/sensor/Touch.mjs +0 -4
  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 +0 -3
  216. package/src/manager/DomEvent.mjs +1 -6
  217. package/src/manager/Focus.mjs +0 -7
  218. package/src/manager/Instance.mjs +0 -1
  219. package/src/manager/Store.mjs +0 -4
  220. package/src/menu/List.mjs +0 -6
  221. package/src/model/Component.mjs +3 -15
  222. package/src/plugin/Base.mjs +0 -1
  223. package/src/plugin/Resizable.mjs +0 -8
  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 +0 -4
  232. package/src/selection/table/CellColumnRowModel.mjs +0 -4
  233. package/src/selection/table/CellModel.mjs +0 -8
  234. package/src/selection/table/CellRowModel.mjs +0 -6
  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/header/Button.mjs +1 -2
  239. package/src/tab/header/Toolbar.mjs +0 -1
  240. package/src/table/Container.mjs +0 -8
  241. package/src/table/View.mjs +0 -4
  242. package/src/table/header/Button.mjs +0 -6
  243. package/src/table/header/Toolbar.mjs +1 -2
  244. package/src/tree/List.mjs +0 -4
  245. package/src/util/Css.mjs +0 -1
  246. package/src/util/Date.mjs +0 -2
  247. package/src/util/Function.mjs +0 -2
  248. package/src/util/HashHistory.mjs +0 -3
  249. package/src/util/KeyNavigation.mjs +0 -5
  250. package/src/{core → util}/Logger.mjs +5 -17
  251. package/src/util/Matrix.mjs +0 -3
  252. package/src/util/VDom.mjs +0 -5
  253. package/src/util/_export.mjs +2 -1
  254. package/src/vdom/Helper.mjs +0 -3
  255. package/src/vdom/VNode.mjs +0 -1
  256. package/src/worker/App.mjs +0 -7
  257. package/src/worker/Base.mjs +0 -6
  258. package/src/worker/Canvas.mjs +0 -2
  259. package/src/worker/Manager.mjs +1 -3
  260. package/src/worker/Message.mjs +0 -1
  261. package/src/worker/mixin/RemoteMethodAccess.mjs +0 -3
@@ -35,7 +35,6 @@ class MainContainerController extends ComponentController {
35
35
  }}
36
36
 
37
37
  /**
38
- *
39
38
  * @param {Number} tabIndex
40
39
  * @returns {Neo.component.Base}
41
40
  */
@@ -67,7 +66,6 @@ class MainContainerController extends ComponentController {
67
66
  }
68
67
 
69
68
  /**
70
- *
71
69
  * @param {Object} value
72
70
  * @param {Object} oldValue
73
71
  */
@@ -145,7 +143,6 @@ class MainContainerController extends ComponentController {
145
143
  }
146
144
 
147
145
  /**
148
- *
149
146
  * @param {Object} data
150
147
  */
151
148
  onNavLinkClick(data) {
@@ -175,7 +172,6 @@ class MainContainerController extends ComponentController {
175
172
  }
176
173
 
177
174
  /**
178
- *
179
175
  * @param {Object} data
180
176
  */
181
177
  onSearchFieldChange(data) {
@@ -15,6 +15,7 @@ module.exports = {
15
15
  output: {
16
16
  chunkFilename: 'chunks/main/[id].js',
17
17
  filename : filenameConfig.mainOutput,
18
- path : path.resolve(processRoot, buildTarget.folder)
18
+ path : path.resolve(processRoot, buildTarget.folder),
19
+ publicPath : ''
19
20
  }
20
21
  };
@@ -14,6 +14,7 @@ module.exports = {
14
14
  output: {
15
15
  chunkFilename: 'chunks/main/[id].js',
16
16
  filename : filenameConfig.mainOutput,
17
- path : path.resolve(processRoot, buildTarget.folder)
17
+ path : path.resolve(processRoot, buildTarget.folder),
18
+ publicPath : ''
18
19
  }
19
20
  };
@@ -144,7 +144,6 @@ class ConfigurationViewport extends Viewport {
144
144
  }
145
145
 
146
146
  /**
147
- *
148
147
  * @param {Object} data
149
148
  */
150
149
  logInstance(data) {
@@ -152,7 +151,6 @@ class ConfigurationViewport extends Viewport {
152
151
  }
153
152
 
154
153
  /**
155
- *
156
154
  * @param {String} config
157
155
  * @param {Object} opts
158
156
  */
@@ -161,7 +159,6 @@ class ConfigurationViewport extends Viewport {
161
159
  }
162
160
 
163
161
  /**
164
- *
165
162
  * @param {String} config
166
163
  * @param {String} value
167
164
  * @param {Object} opts
@@ -173,7 +170,6 @@ class ConfigurationViewport extends Viewport {
173
170
  }
174
171
 
175
172
  /**
176
- *
177
173
  * @param {String} target
178
174
  */
179
175
  onSwitchTheme(target) {
@@ -15,7 +15,6 @@ class MainContainerController extends ComponentController {
15
15
  }}
16
16
 
17
17
  /**
18
- *
19
18
  * @param {Object} data
20
19
  */
21
20
  onSwitchThemeButtonClick(data) {
@@ -123,7 +123,6 @@ class CountryGallery extends Gallery {
123
123
  }
124
124
 
125
125
  /**
126
- *
127
126
  * @param {String} name
128
127
  * @returns {String} url
129
128
  */
@@ -189,7 +188,6 @@ class CountryGallery extends Gallery {
189
188
  }
190
189
 
191
190
  /**
192
- *
193
191
  * @param {String} vnodeId
194
192
  * @returns {String} itemId
195
193
  */
@@ -198,7 +196,6 @@ class CountryGallery extends Gallery {
198
196
  }
199
197
 
200
198
  /**
201
- *
202
199
  * @param {Array} items
203
200
  */
204
201
  onStoreLoad(items) {
@@ -213,4 +210,4 @@ class CountryGallery extends Gallery {
213
210
 
214
211
  Neo.applyClassConfig(CountryGallery);
215
212
 
216
- export {CountryGallery as default};
213
+ export {CountryGallery as default};
@@ -331,7 +331,6 @@ class MainContainer extends Viewport {
331
331
  }}
332
332
 
333
333
  /**
334
- *
335
334
  * @param {Object} config
336
335
  */
337
336
  constructor(config) {
@@ -375,7 +374,6 @@ class MainContainer extends Viewport {
375
374
  }
376
375
 
377
376
  /**
378
- *
379
377
  * @returns {Neo.data.Store}
380
378
  */
381
379
  getStore() {
@@ -105,7 +105,6 @@ class CountryHelix extends Helix {
105
105
  }}
106
106
 
107
107
  /**
108
- *
109
108
  * @param {Object} vdomItem
110
109
  * @param {Object} record
111
110
  * @param {Number} index
@@ -133,7 +132,6 @@ class CountryHelix extends Helix {
133
132
  }
134
133
 
135
134
  /**
136
- *
137
135
  * @param {String} name
138
136
  * @returns {String} url
139
137
  */
@@ -198,7 +196,6 @@ class CountryHelix extends Helix {
198
196
  return 'https://raw.githubusercontent.com/neomjs/pages/master/resources/images/flaticon/country_flags/png/' + imageName + '.png'
199
197
  }
200
198
  /**
201
- *
202
199
  * @returns {String}
203
200
  */
204
201
  getCloneTransform() {
@@ -211,7 +208,6 @@ class CountryHelix extends Helix {
211
208
  }
212
209
 
213
210
  /**
214
- *
215
211
  * @param {String} vnodeId
216
212
  * @returns {String}
217
213
  */
@@ -406,7 +406,6 @@ class MainContainer extends Viewport {
406
406
  }}
407
407
 
408
408
  /**
409
- *
410
409
  * @param {Object} config
411
410
  */
412
411
  constructor(config) {
@@ -444,7 +443,6 @@ class MainContainer extends Viewport {
444
443
  }
445
444
 
446
445
  /**
447
- *
448
446
  * @returns {Neo.data.Store}
449
447
  */
450
448
  getStore() {
@@ -218,7 +218,6 @@ class MainContainer extends Viewport {
218
218
  }}
219
219
 
220
220
  /**
221
- *
222
221
  * @param {Object} config
223
222
  */
224
223
  constructor(config) {
@@ -246,7 +245,6 @@ class MainContainer extends Viewport {
246
245
  }
247
246
 
248
247
  /**
249
- *
250
248
  * @returns {Neo.data.Store}
251
249
  */
252
250
  getStore() {
@@ -302,7 +302,6 @@ class MainContainer extends Viewport {
302
302
  }}
303
303
 
304
304
  /**
305
- *
306
305
  * @param {Object} config
307
306
  */
308
307
  constructor(config) {
@@ -330,7 +329,6 @@ class MainContainer extends Viewport {
330
329
  }
331
330
 
332
331
  /**
333
- *
334
332
  * @returns {Neo.data.Store}
335
333
  */
336
334
  getStore() {
@@ -65,7 +65,6 @@ class MainContainer extends ConfigurationViewport {
65
65
  }
66
66
 
67
67
  /**
68
- *
69
68
  * @param {Object} data
70
69
  */
71
70
  logInstance(data) {
@@ -73,7 +72,6 @@ class MainContainer extends ConfigurationViewport {
73
72
  }
74
73
 
75
74
  /**
76
- *
77
75
  * @param {Object} data
78
76
  */
79
77
  switchDirection(data) {
@@ -33,7 +33,6 @@ class MainContainer extends Viewport {
33
33
  }}
34
34
 
35
35
  /**
36
- *
37
36
  * @param {Object} config
38
37
  */
39
38
  constructor(config) {
@@ -75,7 +74,6 @@ class MainContainer extends Viewport {
75
74
  }
76
75
 
77
76
  /**
78
- *
79
77
  * @param {Object} data
80
78
  */
81
79
  changeConfig(data) {
@@ -124,4 +122,4 @@ class MainContainer extends Viewport {
124
122
 
125
123
  Neo.applyClassConfig(MainContainer);
126
124
 
127
- export {MainContainer as default};
125
+ export {MainContainer as default};
@@ -29,7 +29,6 @@ class MainContainer extends Viewport {
29
29
  }}
30
30
 
31
31
  /**
32
- *
33
32
  * @param {Object} config
34
33
  */
35
34
  constructor(config) {
@@ -62,7 +61,6 @@ class MainContainer extends Viewport {
62
61
  }
63
62
 
64
63
  /**
65
- *
66
64
  * @param {Object} data
67
65
  */
68
66
  createDialog(data) {
@@ -79,7 +77,6 @@ class MainContainer extends Viewport {
79
77
  }
80
78
 
81
79
  /**
82
- *
83
80
  * @param {Object} data
84
81
  */
85
82
  onDragLimitChange(data) {
@@ -98,7 +95,6 @@ class MainContainer extends Viewport {
98
95
  }
99
96
 
100
97
  /**
101
- *
102
98
  * @param {Object} data
103
99
  */
104
100
  switchTheme(data) {
@@ -137,4 +133,4 @@ class MainContainer extends Viewport {
137
133
 
138
134
  Neo.applyClassConfig(MainContainer);
139
135
 
140
- export {MainContainer as default};
136
+ export {MainContainer as default};
@@ -0,0 +1,50 @@
1
+ import BaseList from '../../../src/list/Base.mjs';
2
+
3
+ /**
4
+ * @class Neo.examples.list.animate.List
5
+ * @extends Neo.list.Base
6
+ */
7
+ class List extends BaseList {
8
+ static getConfig() {return {
9
+ /**
10
+ * @member {String} className='Neo.examples.list.animate.List'
11
+ * @protected
12
+ */
13
+ className: 'Neo.examples.list.animate.List',
14
+ /**
15
+ * @member {Boolean} animate=true
16
+ */
17
+ animate: true,
18
+ /**
19
+ * @member {String[]} cls=['neo-examples-list-animate','neo-list-container','neo-list']
20
+ */
21
+ cls: ['neo-examples-list-animate', 'neo-list-container', 'neo-list'],
22
+ /**
23
+ * @member {String} itemTagName='div'
24
+ */
25
+ itemTagName: 'div'
26
+ }}
27
+
28
+ /**
29
+ * Override this method for custom renderers
30
+ * @param {Object} record
31
+ * @param {Number} index
32
+ * @returns {Object|Object[]|String} Either a config object to assign to the item, a vdom cn array or a html string
33
+ */
34
+ createItemContent(record, index) {
35
+ return [
36
+ {cls: ['neo-list-item-content'], cn: [
37
+ {tag: 'img', src: `../../../resources/examples/${record.image}`},
38
+ {cls: ['neo-list-item-text'], cn: [
39
+ {html: record.firstname},
40
+ {cls: ['neo-lastname'], html: record.lastname},
41
+ {cls: ['neo-is-online'], removeDom: !record.isOnline}
42
+ ]}
43
+ ]}
44
+ ];
45
+ }
46
+ }
47
+
48
+ Neo.applyClassConfig(List);
49
+
50
+ export {List as default};
@@ -0,0 +1,79 @@
1
+ import CheckBox from '../../../src/form/field/CheckBox.mjs';
2
+ import List from './List.mjs';
3
+ import MainStore from './MainStore.mjs';
4
+ import Toolbar from '../../../src/container/Toolbar.mjs';
5
+ import Viewport from '../../../src/container/Viewport.mjs';
6
+
7
+ /**
8
+ * @class Neo.examples.list.animate.MainContainer
9
+ * @extends Neo.container.Viewport
10
+ */
11
+ class MainContainer extends Viewport {
12
+ static getConfig() {return {
13
+ className: 'Neo.examples.list.animate.MainContainer',
14
+ autoMount: true,
15
+ layout : {ntype: 'vbox', align: 'stretch'}
16
+ }}
17
+
18
+ /**
19
+ * @param {Object} config
20
+ */
21
+ constructor(config) {
22
+ super(config);
23
+
24
+ let me = this;
25
+
26
+ me.items = [{
27
+ module: Toolbar,
28
+ flex : 'none',
29
+
30
+ itemDefaults: {
31
+ ntype: 'button',
32
+ style: {marginRight: '.5em'}
33
+ },
34
+
35
+ items : [{
36
+ ntype: 'label',
37
+ text : 'Sort by'
38
+ }, {
39
+ handler: me.changeSorting.bind(me, 'firstname'),
40
+ text : 'Firstname'
41
+ }, {
42
+ handler: me.changeSorting.bind(me, 'lastname'),
43
+ text : 'Lastname'
44
+ }, {
45
+ module : CheckBox,
46
+ labelText : 'Is online',
47
+ labelWidth: 70,
48
+ listeners : {change: me.changeIsOnlineFilter.bind(me)},
49
+ style : {marginLeft: '50px'}
50
+ }]
51
+ }, {
52
+ module: List,
53
+ store : MainStore
54
+ }];
55
+ }
56
+
57
+ /**
58
+ * @param {Object} data
59
+ */
60
+ changeIsOnlineFilter(data) {
61
+ let store = this.down({module: List}).store;
62
+
63
+ store.getFilter('isOnline').disabled = !data.value;
64
+ }
65
+
66
+ /**
67
+ * @param {String} field
68
+ * @param {Object} data
69
+ */
70
+ changeSorting(field, data) {
71
+ let store = this.down({module: List}).store;
72
+
73
+ store.sorters[0].property = field;
74
+ }
75
+ }
76
+
77
+ Neo.applyClassConfig(MainContainer);
78
+
79
+ export {MainContainer as default};
@@ -0,0 +1,33 @@
1
+ import Model from '../../../src/data/Model.mjs';
2
+
3
+ /**
4
+ * @class Neo.examples.list.animate.MainModel
5
+ * @extends Neo.data.Model
6
+ */
7
+ class MainModel extends Model {
8
+ static getConfig() {return {
9
+ className : 'Neo.examples.list.animate.MainModel',
10
+ keyProperty: 'id',
11
+
12
+ fields: [{
13
+ name: 'firstname',
14
+ type: 'String'
15
+ }, {
16
+ name: 'id',
17
+ type: 'Integer'
18
+ }, {
19
+ name: 'image',
20
+ type: 'String'
21
+ }, {
22
+ name: 'isOnline',
23
+ type: 'Boolean'
24
+ }, {
25
+ name: 'lastname',
26
+ type: 'String'
27
+ }]
28
+ }}
29
+ }
30
+
31
+ Neo.applyClassConfig(MainModel);
32
+
33
+ export {MainModel as default};
@@ -0,0 +1,31 @@
1
+ import MainModel from './MainModel.mjs';
2
+ import Store from '../../../src/data/Store.mjs';
3
+
4
+ /**
5
+ * @class Neo.examples.list.animate.MainStore
6
+ * @extends Neo.data.Store
7
+ */
8
+ class MainStore extends Store {
9
+ static getConfig() {return {
10
+ className : 'Neo.examples.list.animate.MainStore',
11
+ autoLoad : true,
12
+ keyProperty: 'id',
13
+ model : MainModel,
14
+ url : '../../resources/examples/data/circleContacts.json',
15
+
16
+ filters: [{
17
+ disabled : true,
18
+ property : 'isOnline',
19
+ value : true
20
+ }],
21
+
22
+ sorters: [{
23
+ property : 'firstname',
24
+ direction: 'ASC'
25
+ }]
26
+ }}
27
+ }
28
+
29
+ Neo.applyClassConfig(MainStore);
30
+
31
+ export {MainStore as default};
@@ -0,0 +1,8 @@
1
+ import MainContainer from './MainContainer.mjs';
2
+
3
+ const onStart = () => Neo.app({
4
+ mainView: MainContainer,
5
+ name : 'Neo.examples.list.animate'
6
+ });
7
+
8
+ export {onStart as onStart};
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+ <meta charset="UTF-8">
6
+ <title>Neo AnimatedList</title>
7
+ </head>
8
+ <body>
9
+ <script src="../../../src/MicroLoader.mjs" type="module"></script>
10
+ </body>
11
+ </html>
@@ -0,0 +1,7 @@
1
+ {
2
+ "appPath" : "examples/list/animate/app.mjs",
3
+ "basePath" : "../../../",
4
+ "environment" : "development",
5
+ "mainPath" : "./Main.mjs",
6
+ "mainThreadAddons": ["Stylesheet"]
7
+ }
@@ -3,5 +3,5 @@
3
3
  "basePath" : "../../../",
4
4
  "environment" : "development",
5
5
  "mainPath" : "./Main.mjs",
6
- "mainThreadAddons": ["Stylesheet"]
6
+ "mainThreadAddons": ["DragDrop", "Stylesheet"]
7
7
  }
@@ -14,7 +14,6 @@ class MainContainerController extends Component {
14
14
  }}
15
15
 
16
16
  /**
17
- *
18
17
  * @param {Object} data
19
18
  */
20
19
  onAddButtonTextfieldButtonClick(data) {
@@ -59,7 +58,6 @@ class MainContainerController extends Component {
59
58
  }
60
59
 
61
60
  /**
62
- *
63
61
  * @param {Object} data
64
62
  */
65
63
  onButton1Click(data) {
@@ -67,7 +65,6 @@ class MainContainerController extends Component {
67
65
  }
68
66
 
69
67
  /**
70
- *
71
68
  * @param {Object} data
72
69
  */
73
70
  onButton2Click(data) {
@@ -75,7 +72,6 @@ class MainContainerController extends Component {
75
72
  }
76
73
 
77
74
  /**
78
- *
79
75
  * @param {Object} data
80
76
  */
81
77
  onButton3Click(data) {
@@ -83,7 +79,6 @@ class MainContainerController extends Component {
83
79
  }
84
80
 
85
81
  /**
86
- *
87
82
  * @param {Object} data
88
83
  */
89
84
  onLogChildModelIntoConsoleButtonClick(data) {
@@ -91,7 +86,6 @@ class MainContainerController extends Component {
91
86
  }
92
87
 
93
88
  /**
94
- *
95
89
  * @param {Object} data
96
90
  */
97
91
  onLogMainModelIntoConsoleButtonClick(data) {
@@ -99,7 +93,6 @@ class MainContainerController extends Component {
99
93
  }
100
94
 
101
95
  /**
102
- *
103
96
  * @param {Object} data
104
97
  */
105
98
  onTextField1Change(data) {
@@ -109,7 +102,6 @@ class MainContainerController extends Component {
109
102
  }
110
103
 
111
104
  /**
112
- *
113
105
  * @param {Object} data
114
106
  */
115
107
  onTextField2Change(data) {
@@ -119,7 +111,6 @@ class MainContainerController extends Component {
119
111
  }
120
112
 
121
113
  /**
122
- *
123
114
  * @param {Object} data
124
115
  */
125
116
  onTextField3Change(data) {
@@ -129,7 +120,6 @@ class MainContainerController extends Component {
129
120
  }
130
121
 
131
122
  /**
132
- *
133
123
  * @param {String} value
134
124
  */
135
125
  updateButton1Text(value) {
@@ -138,7 +128,6 @@ class MainContainerController extends Component {
138
128
  }
139
129
 
140
130
  /**
141
- *
142
131
  * @param {String} value
143
132
  */
144
133
  updateButton2Text(value) {
@@ -148,7 +137,6 @@ class MainContainerController extends Component {
148
137
  }
149
138
 
150
139
  /**
151
- *
152
140
  * @param {String} value
153
141
  */
154
142
  updateButton3Text(value) {
@@ -14,7 +14,6 @@ class EditUserDialogController extends Component {
14
14
  }}
15
15
 
16
16
  /**
17
- *
18
17
  * @param {Object} data
19
18
  */
20
19
  onFirstnameTextFieldChange(data) {
@@ -24,7 +23,6 @@ class EditUserDialogController extends Component {
24
23
  }
25
24
 
26
25
  /**
27
- *
28
26
  * @param {Object} data
29
27
  */
30
28
  onLastnameTextFieldChange(data) {
@@ -36,4 +34,4 @@ class EditUserDialogController extends Component {
36
34
 
37
35
  Neo.applyClassConfig(EditUserDialogController);
38
36
 
39
- export {EditUserDialogController as default};
37
+ export {EditUserDialogController as default};
@@ -18,7 +18,6 @@ class MainContainerController extends Component {
18
18
  }}
19
19
 
20
20
  /**
21
- *
22
21
  * @param {Object} data
23
22
  */
24
23
  onEditUserButtonClick(data) {
@@ -48,4 +47,4 @@ class MainContainerController extends Component {
48
47
 
49
48
  Neo.applyClassConfig(MainContainerController);
50
49
 
51
- export {MainContainerController as default};
50
+ export {MainContainerController as default};