neo.mjs 4.0.10 → 4.0.13

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.
@@ -24,10 +24,7 @@ class MainContainerController extends Component {
24
24
  let me = this;
25
25
 
26
26
  if (!me.dialog) {
27
- import(
28
- /* webpackChunkName: 'examples/model/dialog/EditUserDialog' */
29
- './EditUserDialog.mjs'
30
- ).then(module => {
27
+ import('./EditUserDialog.mjs').then(module => {
31
28
  me.dialog = Neo.create({
32
29
  module : module.default,
33
30
  animateTargetId: me.getReference('edit-user-button').id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "4.0.10",
3
+ "version": "4.0.13",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -501,7 +501,6 @@
501
501
  {"id" : 498, "firstname" : "John", "lastname" : "Doe", "isOnline" : false, "image" : "ai_images/000498.jpg"},
502
502
  {"id" : 499, "firstname" : "John", "lastname" : "Doe", "isOnline" : false, "image" : "ai_images/000499.jpg"},
503
503
  {"id" : 500, "firstname" : "John", "lastname" : "Doe", "isOnline" : false, "image" : "ai_images/000500.jpg"},
504
-
505
504
  {"id" : 501, "firstname" : "John", "lastname" : "Doe", "isOnline" : false, "image" : "ai_images/000501.jpg"},
506
505
  {"id" : 502, "firstname" : "John", "lastname" : "Doe", "isOnline" : false, "image" : "ai_images/000502.jpg"},
507
506
  {"id" : 503, "firstname" : "John", "lastname" : "Doe", "isOnline" : false, "image" : "ai_images/000503.jpg"},
@@ -602,4 +601,4 @@
602
601
  {"id" : 599, "firstname" : "John", "lastname" : "Doe", "isOnline" : false, "image" : "ai_images/000599.jpg"},
603
602
  {"id" : 600, "firstname" : "John", "lastname" : "Doe", "isOnline" : false, "image" : "ai_images/000600.jpg"}
604
603
  ]
605
- }
604
+ }
@@ -51,6 +51,11 @@
51
51
  position: relative;
52
52
 
53
53
  &.neo-panel {
54
+ .neo-footer-toolbar {
55
+ border : none;
56
+ border-top: 1px solid v(dialog-border-color);
57
+ }
58
+
54
59
  .neo-header-toolbar {
55
60
  border : none;
56
61
  border-bottom: 1px solid v(dialog-border-color);
@@ -84,4 +89,4 @@
84
89
  }
85
90
  }
86
91
  }
87
- }
92
+ }
@@ -30,6 +30,19 @@ class Store extends Base {
30
30
  */
31
31
  ntype: 'store',
32
32
  /**
33
+ * Instead of setting an url, you can define the RPC BE API methods.
34
+ * In case the 4 methods are using the same service and this service is using the CRUD based fn-names,
35
+ * you can switch to a string based shortcut.
36
+ * The following 2 examples are equivalent.
37
+ * @example
38
+ * api: {
39
+ * create : 'MyApp.backend.UserService.create',
40
+ * destroy: 'MyApp.backend.UserService.destroy',
41
+ * read : 'MyApp.backend.UserService.read',
42
+ * update : 'MyApp.backend.UserService.update'
43
+ * }
44
+ * @example
45
+ * api: 'MyApp.backend.UserService'
33
46
  * @member {Object|String|null} api_=null
34
47
  */
35
48
  api_: null,
@@ -147,6 +160,25 @@ class Store extends Base {
147
160
  }
148
161
  }
149
162
 
163
+ /**
164
+ * @param {Object|String|null} value
165
+ * @param {Object|String|null} oldValue
166
+ * @protected
167
+ * @returns {Object|null}
168
+ */
169
+ beforeSetApi(value, oldValue) {
170
+ if (Neo.typeOf(value) === 'String') {
171
+ value = {
172
+ create : value + '.create',
173
+ destroy: value + '.destroy',
174
+ read : value + '.read',
175
+ update : value + '.update'
176
+ };
177
+ }
178
+
179
+ return value;
180
+ }
181
+
150
182
  /**
151
183
  * @param value
152
184
  * @param oldValue
@@ -215,7 +247,7 @@ class Store extends Base {
215
247
  let me = this;
216
248
 
217
249
  if (me.api) {
218
- let apiArray = me.api.create.split('.'),
250
+ let apiArray = me.api.read.split('.'),
219
251
  fn = apiArray.pop(),
220
252
  service = Neo.ns(apiArray.join('.'));
221
253