neo.mjs 9.0.0 → 9.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.
- package/apps/ServiceWorker.mjs +2 -2
- package/apps/portal/index.html +1 -1
- package/apps/portal/view/ViewportController.mjs +2 -3
- package/apps/portal/view/home/FooterContainer.mjs +1 -1
- package/examples/ServiceWorker.mjs +2 -2
- package/package.json +1 -1
- package/src/DefaultConfig.mjs +2 -2
- package/src/layout/Base.mjs +3 -2
- package/src/layout/Cube.mjs +41 -37
- package/src/table/Container.mjs +4 -24
package/apps/ServiceWorker.mjs
CHANGED
package/apps/portal/index.html
CHANGED
@@ -316,11 +316,10 @@ class ViewportController extends Controller {
|
|
316
316
|
|
317
317
|
// enable "fast clicking" on main nav items => do not replace a cube layout with a new instance of cube
|
318
318
|
if (container.layout.ntype !== 'layout-cube') {
|
319
|
-
container.layout = {ntype: 'cube', activeIndex, fitContainer: true, hideInactiveCardsOnDestroy: true}
|
319
|
+
container.layout = {ntype: 'cube', activeIndex, fitContainer: true, hideInactiveCardsOnDestroy: true};
|
320
|
+
await me.timeout(200);
|
320
321
|
}
|
321
322
|
|
322
|
-
await me.timeout(200);
|
323
|
-
|
324
323
|
container.layout.activeIndex = index;
|
325
324
|
|
326
325
|
await me.timeout(1100);
|
package/package.json
CHANGED
package/src/DefaultConfig.mjs
CHANGED
@@ -263,12 +263,12 @@ const DefaultConfig = {
|
|
263
263
|
useVdomWorker: true,
|
264
264
|
/**
|
265
265
|
* buildScripts/injectPackageVersion.mjs will update this value
|
266
|
-
* @default '9.0.
|
266
|
+
* @default '9.0.1'
|
267
267
|
* @memberOf! module:Neo
|
268
268
|
* @name config.version
|
269
269
|
* @type String
|
270
270
|
*/
|
271
|
-
version: '9.0.
|
271
|
+
version: '9.0.1'
|
272
272
|
};
|
273
273
|
|
274
274
|
Object.assign(DefaultConfig, {
|
package/src/layout/Base.mjs
CHANGED
@@ -77,9 +77,10 @@ class Layout extends Base {
|
|
77
77
|
applyChildAttributes(item, index) {}
|
78
78
|
|
79
79
|
/**
|
80
|
+
* @param {Boolean} silent=false
|
80
81
|
* @protected
|
81
82
|
*/
|
82
|
-
applyRenderAttributes() {
|
83
|
+
applyRenderAttributes(silent=false) {
|
83
84
|
let me = this,
|
84
85
|
{container, containerCls} = me,
|
85
86
|
{wrapperCls} = container;
|
@@ -91,7 +92,7 @@ class Layout extends Base {
|
|
91
92
|
|
92
93
|
NeoArray.add(wrapperCls, containerCls);
|
93
94
|
|
94
|
-
container
|
95
|
+
container[silent ? 'setSilent' : 'set']({wrapperCls})
|
95
96
|
}
|
96
97
|
}
|
97
98
|
|
package/src/layout/Cube.mjs
CHANGED
@@ -286,44 +286,15 @@ class Cube extends Card {
|
|
286
286
|
}
|
287
287
|
|
288
288
|
/**
|
289
|
-
*
|
289
|
+
* @returns {String}
|
290
290
|
*/
|
291
|
-
|
292
|
-
|
293
|
-
{container} = me,
|
294
|
-
{style, vdom} = container;
|
295
|
-
|
296
|
-
Object.assign(style, {
|
297
|
-
'--perspective': null,
|
298
|
-
'--rot-x' : null,
|
299
|
-
'--rot-y' : null,
|
300
|
-
'--rot-z' : null,
|
301
|
-
'--side-x' : null,
|
302
|
-
'--side-y' : null,
|
303
|
-
'--side-z' : null
|
304
|
-
});
|
305
|
-
|
306
|
-
container.style = style;
|
307
|
-
|
308
|
-
vdom.cn = container.getVdomItemsRoot().cn;
|
309
|
-
|
310
|
-
if (me.hideInactiveCardsOnDestroy) {
|
311
|
-
container.items.forEach((item, index) => {
|
312
|
-
if (index < 6 && index !== me.activeIndex) {
|
313
|
-
item.vdom.removeDom = true
|
314
|
-
}
|
315
|
-
})
|
316
|
-
}
|
317
|
-
|
318
|
-
// override
|
319
|
-
container.getVdomItemsRoot = me.#cachedVdomItemsRoot;
|
320
|
-
|
321
|
-
container.updateDepth = -1;
|
322
|
-
container.update();
|
323
|
-
|
324
|
-
super.destroy(...args)
|
291
|
+
getPlaneId() {
|
292
|
+
return this.id + '__plane'
|
325
293
|
}
|
326
294
|
|
295
|
+
/**
|
296
|
+
*
|
297
|
+
*/
|
327
298
|
nestVdom() {
|
328
299
|
let me = this,
|
329
300
|
{container} = me,
|
@@ -331,7 +302,7 @@ class Cube extends Card {
|
|
331
302
|
{cn} = vdom;
|
332
303
|
|
333
304
|
vdom.cn = [
|
334
|
-
{cls: ['neo-plane'], cn: [
|
305
|
+
{cls: ['neo-plane'], id: me.getPlaneId(), cn: [
|
335
306
|
{cls: ['neo-box'], cn}
|
336
307
|
]}
|
337
308
|
];
|
@@ -394,7 +365,40 @@ class Cube extends Card {
|
|
394
365
|
*/
|
395
366
|
removeRenderAttributes() {
|
396
367
|
super.removeRenderAttributes();
|
397
|
-
|
368
|
+
|
369
|
+
let me = this,
|
370
|
+
{container} = me,
|
371
|
+
{cls, style, vdom} = container;
|
372
|
+
|
373
|
+
NeoArray.remove(cls, 'neo-animate');
|
374
|
+
|
375
|
+
Object.assign(style, {
|
376
|
+
'--perspective': null,
|
377
|
+
'--rot-x' : null,
|
378
|
+
'--rot-y' : null,
|
379
|
+
'--rot-z' : null,
|
380
|
+
'--side-x' : null,
|
381
|
+
'--side-y' : null,
|
382
|
+
'--side-z' : null
|
383
|
+
});
|
384
|
+
|
385
|
+
container.set({cls, style});
|
386
|
+
|
387
|
+
vdom.cn = container.getVdomItemsRoot().cn;
|
388
|
+
|
389
|
+
if (me.hideInactiveCardsOnDestroy) {
|
390
|
+
container.items.forEach((item, index) => {
|
391
|
+
if (index < 6 && index !== me.activeIndex) {
|
392
|
+
item.vdom.removeDom = true
|
393
|
+
}
|
394
|
+
})
|
395
|
+
}
|
396
|
+
|
397
|
+
// override
|
398
|
+
container.getVdomItemsRoot = me.#cachedVdomItemsRoot;
|
399
|
+
|
400
|
+
container.updateDepth = -1;
|
401
|
+
container.update();
|
398
402
|
}
|
399
403
|
|
400
404
|
/**
|
package/src/table/Container.mjs
CHANGED
@@ -58,12 +58,6 @@ class Container extends BaseContainer {
|
|
58
58
|
* @protected
|
59
59
|
*/
|
60
60
|
scrollbarsCssApplied: false,
|
61
|
-
/**
|
62
|
-
* Will get removed in neo v9, assign selection models to table.View instead
|
63
|
-
* @member {Neo.selection.Model} selectionModel_=null
|
64
|
-
* @deprecated
|
65
|
-
*/
|
66
|
-
selectionModel_: null,
|
67
61
|
/**
|
68
62
|
* @member {Boolean} showHeaderFilters_=false
|
69
63
|
*/
|
@@ -139,11 +133,10 @@ class Container extends BaseContainer {
|
|
139
133
|
sortable : me.sortable,
|
140
134
|
...me.headerToolbarConfig
|
141
135
|
}, {
|
142
|
-
module
|
143
|
-
containerId
|
144
|
-
id
|
145
|
-
|
146
|
-
store : me.store,
|
136
|
+
module : View,
|
137
|
+
containerId: me.id,
|
138
|
+
id : me.viewId,
|
139
|
+
store : me.store,
|
147
140
|
...me.viewConfig
|
148
141
|
}];
|
149
142
|
|
@@ -195,19 +188,6 @@ class Container extends BaseContainer {
|
|
195
188
|
}
|
196
189
|
}
|
197
190
|
|
198
|
-
/**
|
199
|
-
* Triggered after the selectionModel config got changed
|
200
|
-
* @param {Neo.selection.Model} value
|
201
|
-
* @param {Neo.selection.Model} oldValue
|
202
|
-
* @protected
|
203
|
-
* @deprecated
|
204
|
-
*/
|
205
|
-
afterSetSelectionModel(value, oldValue) {
|
206
|
-
if (value && this.view) {
|
207
|
-
this.view.selectionModel = value
|
208
|
-
}
|
209
|
-
}
|
210
|
-
|
211
191
|
/**
|
212
192
|
* Triggered after the showHeaderFilters config got changed
|
213
193
|
* @param {Boolean} value
|