ninegrid2 6.928.0 → 6.930.0

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.
@@ -120516,15 +120516,22 @@ class nxSideMenuItem extends HTMLElement
120516
120516
  }
120517
120517
 
120518
120518
  connectedCallback() {
120519
- this.#caption = this.innerText.trim();
120520
120519
 
120521
- //console.log("nxSideMenuItem", this.#caption);
120522
- //this.data.caption = this.#caption;
120523
- this.setAttribute("data-caption", this.#caption);
120520
+ requestAnimationFrame(() => {
120521
+ this.#caption = this.innerText.trim();
120522
+
120523
+ console.log("nxSideMenuItem", this.#caption);
120524
+ //this.data.caption = this.#caption;
120525
+ this.setAttribute("data-caption", this.innerText.trim());
120526
+ this.#init();
120527
+
120528
+ /**
120529
+ ninegrid.waitForInnerHTML(this)
120530
+ .then(() => this.#init())
120531
+ .catch(error => console.error(error));
120532
+ */
120533
+ });
120524
120534
 
120525
- ninegrid.waitForInnerHTML(this)
120526
- .then(() => this.#init())
120527
- .catch(error => console.error(error));
120528
120535
  }
120529
120536
 
120530
120537
  get caption() {
@@ -120512,15 +120512,22 @@ class nxSideMenuItem extends HTMLElement
120512
120512
  }
120513
120513
 
120514
120514
  connectedCallback() {
120515
- this.#caption = this.innerText.trim();
120516
120515
 
120517
- //console.log("nxSideMenuItem", this.#caption);
120518
- //this.data.caption = this.#caption;
120519
- this.setAttribute("data-caption", this.#caption);
120516
+ requestAnimationFrame(() => {
120517
+ this.#caption = this.innerText.trim();
120518
+
120519
+ console.log("nxSideMenuItem", this.#caption);
120520
+ //this.data.caption = this.#caption;
120521
+ this.setAttribute("data-caption", this.innerText.trim());
120522
+ this.#init();
120523
+
120524
+ /**
120525
+ ninegrid.waitForInnerHTML(this)
120526
+ .then(() => this.#init())
120527
+ .catch(error => console.error(error));
120528
+ */
120529
+ });
120520
120530
 
120521
- ninegrid.waitForInnerHTML(this)
120522
- .then(() => this.#init())
120523
- .catch(error => console.error(error));
120524
120531
  }
120525
120532
 
120526
120533
  get caption() {
@@ -364,15 +364,22 @@ class nxSideMenuItem extends HTMLElement
364
364
  }
365
365
 
366
366
  connectedCallback() {
367
- this.#caption = this.innerText.trim();
368
367
 
369
- //console.log("nxSideMenuItem", this.#caption);
370
- //this.data.caption = this.#caption;
371
- this.setAttribute("data-caption", this.#caption);
368
+ requestAnimationFrame(() => {
369
+ this.#caption = this.innerText.trim();
370
+
371
+ console.log("nxSideMenuItem", this.#caption);
372
+ //this.data.caption = this.#caption;
373
+ this.setAttribute("data-caption", this.innerText.trim());
374
+ this.#init();
375
+
376
+ /**
377
+ ninegrid.waitForInnerHTML(this)
378
+ .then(() => this.#init())
379
+ .catch(error => console.error(error));
380
+ */
381
+ });
372
382
 
373
- ninegrid.waitForInnerHTML(this)
374
- .then(() => this.#init())
375
- .catch(error => console.error(error));
376
383
  }
377
384
 
378
385
  get caption() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.928.0",
4
+ "version": "6.930.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -364,15 +364,22 @@ class nxSideMenuItem extends HTMLElement
364
364
  }
365
365
 
366
366
  connectedCallback() {
367
- this.#caption = this.innerText.trim();
368
367
 
369
- //console.log("nxSideMenuItem", this.#caption);
370
- //this.data.caption = this.#caption;
371
- this.setAttribute("data-caption", this.#caption);
368
+ requestAnimationFrame(() => {
369
+ this.#caption = this.innerText.trim();
370
+
371
+ console.log("nxSideMenuItem", this.#caption);
372
+ //this.data.caption = this.#caption;
373
+ this.setAttribute("data-caption", this.innerText.trim());
374
+ this.#init();
375
+
376
+ /**
377
+ ninegrid.waitForInnerHTML(this)
378
+ .then(() => this.#init())
379
+ .catch(error => console.error(error));
380
+ */
381
+ });
372
382
 
373
- ninegrid.waitForInnerHTML(this)
374
- .then(() => this.#init())
375
- .catch(error => console.error(error));
376
383
  }
377
384
 
378
385
  get caption() {