neo.mjs 4.0.11 → 4.0.14
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
|
@@ -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
|
+
}
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
position : absolute;
|
|
24
24
|
top : 50%;
|
|
25
25
|
transform: translate(-50%, -50%);
|
|
26
|
+
z-index : 20; // ensure to be on top of table headers
|
|
26
27
|
|
|
27
28
|
transition-duration : 200ms;
|
|
28
29
|
transition-property : height, left, top, transform, width;
|
|
@@ -51,6 +52,11 @@
|
|
|
51
52
|
position: relative;
|
|
52
53
|
|
|
53
54
|
&.neo-panel {
|
|
55
|
+
.neo-footer-toolbar {
|
|
56
|
+
border : none;
|
|
57
|
+
border-top: 1px solid v(dialog-border-color);
|
|
58
|
+
}
|
|
59
|
+
|
|
54
60
|
.neo-header-toolbar {
|
|
55
61
|
border : none;
|
|
56
62
|
border-bottom: 1px solid v(dialog-border-color);
|
|
@@ -84,4 +90,4 @@
|
|
|
84
90
|
}
|
|
85
91
|
}
|
|
86
92
|
}
|
|
87
|
-
}
|
|
93
|
+
}
|
package/src/data/Store.mjs
CHANGED
|
@@ -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
|