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.
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='9.0.0'
23
+ * @member {String} version='9.0.1'
24
24
  */
25
- version: '9.0.0'
25
+ version: '9.0.1'
26
26
  }
27
27
 
28
28
  /**
@@ -16,7 +16,7 @@
16
16
  "@type": "Organization",
17
17
  "name": "Neo.mjs"
18
18
  },
19
- "datePublished": "2025-05-03",
19
+ "datePublished": "2025-05-05",
20
20
  "publisher": {
21
21
  "@type": "Organization",
22
22
  "name": "Neo.mjs"
@@ -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);
@@ -107,7 +107,7 @@ class FooterContainer extends Container {
107
107
  }, {
108
108
  module: Component,
109
109
  cls : ['neo-version'],
110
- html : 'v9.0.0'
110
+ html : 'v9.0.1'
111
111
  }]
112
112
  }],
113
113
  /**
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='9.0.0'
23
+ * @member {String} version='9.0.1'
24
24
  */
25
- version: '9.0.0'
25
+ version: '9.0.1'
26
26
  }
27
27
 
28
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -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.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.0'
271
+ version: '9.0.1'
272
272
  };
273
273
 
274
274
  Object.assign(DefaultConfig, {
@@ -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.wrapperCls = wrapperCls
95
+ container[silent ? 'setSilent' : 'set']({wrapperCls})
95
96
  }
96
97
  }
97
98
 
@@ -286,44 +286,15 @@ class Cube extends Card {
286
286
  }
287
287
 
288
288
  /**
289
- *
289
+ * @returns {String}
290
290
  */
291
- destroy(...args) {
292
- let me = this,
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
- this.container.removeCls('neo-animate')
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
  /**
@@ -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 : View,
143
- containerId : me.id,
144
- id : me.viewId,
145
- selectionModel: me.selectionModel, // todo: remove this line in neo v9
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