ninegrid2 6.1205.0 → 6.1207.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.
@@ -12311,8 +12311,12 @@ class ngCellEx extends HTMLElement
12311
12311
 
12312
12312
  fn = fn.replace("()","");
12313
12313
 
12314
- // 괄호 앞부분만 추출하는 정규식
12315
- const methodName = fn.match(/^(\w+)\s*\(/)[1];
12314
+ const match = fn.match(/^(\w+)\s*\(/);
12315
+
12316
+ // match가 null이면 undefined 반환, 아니면 [1] 반환
12317
+ const methodName = match?.[1];
12318
+
12319
+ console.log(methodName); // "onButtonClick" 또는 undefined
12316
12320
 
12317
12321
  if (this.owner[methodName]) {
12318
12322
  this.owner[methodName].call(this.owner, this.cell.closest("tr").data, parseInt(this.cell.dataset.row), this.cell);
@@ -119430,14 +119434,14 @@ class nxDialog extends HTMLElement
119430
119434
 
119431
119435
  const v = this.innerHTML;
119432
119436
  const cssFile = this.getAttribute("css-file");
119433
- const customFile1 = cssFile ? `@import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/${cssFile}";`: "";
119437
+ const customFile1 = cssFile ? `@import "https://cdn.jsdelivr.net/npm/ninegrid2@${ninegrid.version}/dist/css/${cssFile}";`: "";
119434
119438
  const customFile2 = cssFile ? ninegrid.getCustomPath(this, cssFile) : "";
119435
119439
 
119436
119440
  //console.log(ninegrid.getCustomPath(this,"nxDialog.css"));
119437
119441
 
119438
119442
  this.innerHTML = `
119439
119443
  <style>
119440
- @import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/nxDialog.css";
119444
+ @import "https://cdn.jsdelivr.net/npm/ninegrid2@${ninegrid.version}/dist/css/nxDialog.css";
119441
119445
  ${ninegrid.getCustomPath(this,"nxDialog.css") || ""}
119442
119446
  ${customFile1 || ""}
119443
119447
  ${customFile2 || ""}
@@ -12307,8 +12307,12 @@ class ngCellEx extends HTMLElement
12307
12307
 
12308
12308
  fn = fn.replace("()","");
12309
12309
 
12310
- // 괄호 앞부분만 추출하는 정규식
12311
- const methodName = fn.match(/^(\w+)\s*\(/)[1];
12310
+ const match = fn.match(/^(\w+)\s*\(/);
12311
+
12312
+ // match가 null이면 undefined 반환, 아니면 [1] 반환
12313
+ const methodName = match?.[1];
12314
+
12315
+ console.log(methodName); // "onButtonClick" 또는 undefined
12312
12316
 
12313
12317
  if (this.owner[methodName]) {
12314
12318
  this.owner[methodName].call(this.owner, this.cell.closest("tr").data, parseInt(this.cell.dataset.row), this.cell);
@@ -119426,14 +119430,14 @@ class nxDialog extends HTMLElement
119426
119430
 
119427
119431
  const v = this.innerHTML;
119428
119432
  const cssFile = this.getAttribute("css-file");
119429
- const customFile1 = cssFile ? `@import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/${cssFile}";`: "";
119433
+ const customFile1 = cssFile ? `@import "https://cdn.jsdelivr.net/npm/ninegrid2@${ninegrid.version}/dist/css/${cssFile}";`: "";
119430
119434
  const customFile2 = cssFile ? ninegrid.getCustomPath(this, cssFile) : "";
119431
119435
 
119432
119436
  //console.log(ninegrid.getCustomPath(this,"nxDialog.css"));
119433
119437
 
119434
119438
  this.innerHTML = `
119435
119439
  <style>
119436
- @import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/nxDialog.css";
119440
+ @import "https://cdn.jsdelivr.net/npm/ninegrid2@${ninegrid.version}/dist/css/nxDialog.css";
119437
119441
  ${ninegrid.getCustomPath(this,"nxDialog.css") || ""}
119438
119442
  ${customFile1 || ""}
119439
119443
  ${customFile2 || ""}
@@ -194,8 +194,12 @@ export class ngCellEx extends HTMLElement
194
194
 
195
195
  fn = fn.replace("()","");
196
196
 
197
- // 괄호 앞부분만 추출하는 정규식
198
- const methodName = fn.match(/^(\w+)\s*\(/)[1];
197
+ const match = fn.match(/^(\w+)\s*\(/);
198
+
199
+ // match가 null이면 undefined 반환, 아니면 [1] 반환
200
+ const methodName = match?.[1];
201
+
202
+ console.log(methodName); // "onButtonClick" 또는 undefined
199
203
 
200
204
  if (this.owner[methodName]) {
201
205
  this.owner[methodName].call(this.owner, this.cell.closest("tr").data, parseInt(this.cell.dataset.row), this.cell);
@@ -13,14 +13,14 @@ class nxDialog extends HTMLElement
13
13
 
14
14
  const v = this.innerHTML;
15
15
  const cssFile = this.getAttribute("css-file");
16
- const customFile1 = cssFile ? `@import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/${cssFile}";`: "";
16
+ const customFile1 = cssFile ? `@import "https://cdn.jsdelivr.net/npm/ninegrid2@${ninegrid.version}/dist/css/${cssFile}";`: "";
17
17
  const customFile2 = cssFile ? ninegrid.getCustomPath(this, cssFile) : "";
18
18
 
19
19
  //console.log(ninegrid.getCustomPath(this,"nxDialog.css"));
20
20
 
21
21
  this.innerHTML = `
22
22
  <style>
23
- @import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/nxDialog.css";
23
+ @import "https://cdn.jsdelivr.net/npm/ninegrid2@${ninegrid.version}/dist/css/nxDialog.css";
24
24
  ${ninegrid.getCustomPath(this,"nxDialog.css") || ""}
25
25
  ${customFile1 || ""}
26
26
  ${customFile2 || ""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1205.0",
4
+ "version": "6.1207.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -194,8 +194,12 @@ export class ngCellEx extends HTMLElement
194
194
 
195
195
  fn = fn.replace("()","");
196
196
 
197
- // 괄호 앞부분만 추출하는 정규식
198
- const methodName = fn.match(/^(\w+)\s*\(/)[1];
197
+ const match = fn.match(/^(\w+)\s*\(/);
198
+
199
+ // match가 null이면 undefined 반환, 아니면 [1] 반환
200
+ const methodName = match?.[1];
201
+
202
+ console.log(methodName); // "onButtonClick" 또는 undefined
199
203
 
200
204
  if (this.owner[methodName]) {
201
205
  this.owner[methodName].call(this.owner, this.cell.closest("tr").data, parseInt(this.cell.dataset.row), this.cell);
@@ -13,14 +13,14 @@ class nxDialog extends HTMLElement
13
13
 
14
14
  const v = this.innerHTML;
15
15
  const cssFile = this.getAttribute("css-file");
16
- const customFile1 = cssFile ? `@import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/${cssFile}";`: "";
16
+ const customFile1 = cssFile ? `@import "https://cdn.jsdelivr.net/npm/ninegrid2@${ninegrid.version}/dist/css/${cssFile}";`: "";
17
17
  const customFile2 = cssFile ? ninegrid.getCustomPath(this, cssFile) : "";
18
18
 
19
19
  //console.log(ninegrid.getCustomPath(this,"nxDialog.css"));
20
20
 
21
21
  this.innerHTML = `
22
22
  <style>
23
- @import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/nxDialog.css";
23
+ @import "https://cdn.jsdelivr.net/npm/ninegrid2@${ninegrid.version}/dist/css/nxDialog.css";
24
24
  ${ninegrid.getCustomPath(this,"nxDialog.css") || ""}
25
25
  ${customFile1 || ""}
26
26
  ${customFile2 || ""}