ninegrid2 6.347.0 → 6.349.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.
@@ -36,26 +36,31 @@ class aiMessage extends HTMLElement
36
36
  </div>
37
37
  `;
38
38
 
39
- console.log(new Date());
39
+
40
+ //console.log("1", new Date());
40
41
  //this.#init();
42
+ requestAnimationFrame(() => {
43
+ console.log("requestAnimationFrame")
44
+ //this.#init(); // DOM이 완전히 그려진 후 실행
45
+ });
41
46
  };
42
47
 
43
- requestAnimationFrame = () => {
44
- console.log(new Date());
45
- this.#init(); // DOM이 완전히 그려진 후 실행
46
- };
47
48
 
48
49
  initialize = (data) => {
50
+ console.log("initialize")
49
51
  this.#data = data;
50
52
 
51
- //this.#init();
53
+ setTimeout(() => {
54
+ this.#init();
55
+ });
56
+
52
57
  }
53
58
 
54
59
  #init = () => {
55
60
 
56
- const rowCount = this.#data.length > 5 ? 5 : this.#data.length;
61
+ const rowCount = Number(this.getAttribute("row-count"));
57
62
  const html = `
58
- <nine-grid display-row-count="${rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
63
+ <nine-grid display-row-count="${rowCount > 5 ? 5 : rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
59
64
  <table>
60
65
  <caption>Sheet1</caption>
61
66
  <thead>
@@ -227,6 +232,7 @@ class aiChat extends HTMLElement
227
232
 
228
233
  el = document.createElement("nx-ai-message");
229
234
  el.setAttribute("message", message);
235
+ el.setAttribute("row-count", data.length);
230
236
  //el.data = data;
231
237
  el.initialize(data);
232
238
  target.appendChild(el);
@@ -27342,26 +27342,31 @@ class aiMessage extends HTMLElement
27342
27342
  </div>
27343
27343
  `;
27344
27344
 
27345
- console.log(new Date());
27345
+
27346
+ //console.log("1", new Date());
27346
27347
  //this.#init();
27348
+ requestAnimationFrame(() => {
27349
+ console.log("requestAnimationFrame");
27350
+ //this.#init(); // DOM이 완전히 그려진 후 실행
27351
+ });
27347
27352
  };
27348
27353
 
27349
- requestAnimationFrame = () => {
27350
- console.log(new Date());
27351
- this.#init(); // DOM이 완전히 그려진 후 실행
27352
- };
27353
27354
 
27354
27355
  initialize = (data) => {
27356
+ console.log("initialize");
27355
27357
  this.#data = data;
27356
27358
 
27357
- //this.#init();
27359
+ setTimeout(() => {
27360
+ this.#init();
27361
+ });
27362
+
27358
27363
  }
27359
27364
 
27360
27365
  #init = () => {
27361
27366
 
27362
- const rowCount = this.#data.length > 5 ? 5 : this.#data.length;
27367
+ const rowCount = Number(this.getAttribute("row-count"));
27363
27368
  const html = `
27364
- <nine-grid display-row-count="${rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
27369
+ <nine-grid display-row-count="${rowCount > 5 ? 5 : rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
27365
27370
  <table>
27366
27371
  <caption>Sheet1</caption>
27367
27372
  <thead>
@@ -27533,6 +27538,7 @@ class aiChat extends HTMLElement
27533
27538
 
27534
27539
  el = document.createElement("nx-ai-message");
27535
27540
  el.setAttribute("message", message);
27541
+ el.setAttribute("row-count", data.length);
27536
27542
  //el.data = data;
27537
27543
  el.initialize(data);
27538
27544
  target.appendChild(el);
@@ -27340,26 +27340,31 @@ class aiMessage extends HTMLElement
27340
27340
  </div>
27341
27341
  `;
27342
27342
 
27343
- console.log(new Date());
27343
+
27344
+ //console.log("1", new Date());
27344
27345
  //this.#init();
27346
+ requestAnimationFrame(() => {
27347
+ console.log("requestAnimationFrame");
27348
+ //this.#init(); // DOM이 완전히 그려진 후 실행
27349
+ });
27345
27350
  };
27346
27351
 
27347
- requestAnimationFrame = () => {
27348
- console.log(new Date());
27349
- this.#init(); // DOM이 완전히 그려진 후 실행
27350
- };
27351
27352
 
27352
27353
  initialize = (data) => {
27354
+ console.log("initialize");
27353
27355
  this.#data = data;
27354
27356
 
27355
- //this.#init();
27357
+ setTimeout(() => {
27358
+ this.#init();
27359
+ });
27360
+
27356
27361
  }
27357
27362
 
27358
27363
  #init = () => {
27359
27364
 
27360
- const rowCount = this.#data.length > 5 ? 5 : this.#data.length;
27365
+ const rowCount = Number(this.getAttribute("row-count"));
27361
27366
  const html = `
27362
- <nine-grid display-row-count="${rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
27367
+ <nine-grid display-row-count="${rowCount > 5 ? 5 : rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
27363
27368
  <table>
27364
27369
  <caption>Sheet1</caption>
27365
27370
  <thead>
@@ -27531,6 +27536,7 @@ class aiChat extends HTMLElement
27531
27536
 
27532
27537
  el = document.createElement("nx-ai-message");
27533
27538
  el.setAttribute("message", message);
27539
+ el.setAttribute("row-count", data.length);
27534
27540
  //el.data = data;
27535
27541
  el.initialize(data);
27536
27542
  target.appendChild(el);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.347.0",
4
+ "version": "6.349.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -36,26 +36,31 @@ class aiMessage extends HTMLElement
36
36
  </div>
37
37
  `;
38
38
 
39
- console.log(new Date());
39
+
40
+ //console.log("1", new Date());
40
41
  //this.#init();
42
+ requestAnimationFrame(() => {
43
+ console.log("requestAnimationFrame")
44
+ //this.#init(); // DOM이 완전히 그려진 후 실행
45
+ });
41
46
  };
42
47
 
43
- requestAnimationFrame = () => {
44
- console.log(new Date());
45
- this.#init(); // DOM이 완전히 그려진 후 실행
46
- };
47
48
 
48
49
  initialize = (data) => {
50
+ console.log("initialize")
49
51
  this.#data = data;
50
52
 
51
- //this.#init();
53
+ setTimeout(() => {
54
+ this.#init();
55
+ });
56
+
52
57
  }
53
58
 
54
59
  #init = () => {
55
60
 
56
- const rowCount = this.#data.length > 5 ? 5 : this.#data.length;
61
+ const rowCount = Number(this.getAttribute("row-count"));
57
62
  const html = `
58
- <nine-grid display-row-count="${rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
63
+ <nine-grid display-row-count="${rowCount > 5 ? 5 : rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
59
64
  <table>
60
65
  <caption>Sheet1</caption>
61
66
  <thead>
@@ -227,6 +232,7 @@ class aiChat extends HTMLElement
227
232
 
228
233
  el = document.createElement("nx-ai-message");
229
234
  el.setAttribute("message", message);
235
+ el.setAttribute("row-count", data.length);
230
236
  //el.data = data;
231
237
  el.initialize(data);
232
238
  target.appendChild(el);