ninegrid2 6.1237.0 → 6.1239.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.
- package/dist/bundle.cjs.js +7 -6
- package/dist/bundle.esm.js +7 -6
- package/dist/etc/_ngCell.js +7 -6
- package/package.json +1 -1
- package/src/etc/_ngCell.js +7 -6
package/dist/bundle.cjs.js
CHANGED
|
@@ -12306,18 +12306,15 @@ class ngCellEx extends HTMLElement
|
|
|
12306
12306
|
|
|
12307
12307
|
$(button).on("click", e => {
|
|
12308
12308
|
let fn = this.getAttribute("onbuttonclick") || this.getAttribute("onButtonClick") || this.cell.getAttribute("onbuttonclick") || this.cell.getAttribute("onButtonClick");// || this.getAttribute("@onlinkclick");
|
|
12309
|
-
|
|
12309
|
+
|
|
12310
12310
|
if (fn) {
|
|
12311
12311
|
|
|
12312
12312
|
fn = fn.replace("()","");
|
|
12313
12313
|
|
|
12314
12314
|
const match = fn.match(/^(\w+)\s*\(/);
|
|
12315
|
-
|
|
12316
12315
|
// match가 null이면 undefined 반환, 아니면 [1] 반환
|
|
12317
12316
|
const methodName = match?.[1];
|
|
12318
12317
|
|
|
12319
|
-
console.log(methodName); // "onButtonClick" 또는 undefined
|
|
12320
|
-
|
|
12321
12318
|
if (this.owner[methodName]) {
|
|
12322
12319
|
this.owner[methodName].call(this.owner, this.cell.closest("tr").data, parseInt(this.cell.dataset.row), this.cell);
|
|
12323
12320
|
}
|
|
@@ -12345,9 +12342,13 @@ class ngCellEx extends HTMLElement
|
|
|
12345
12342
|
|
|
12346
12343
|
if (fn) {
|
|
12347
12344
|
fn = fn.replace("()","");
|
|
12345
|
+
|
|
12346
|
+
const match = fn.match(/^(\w+)\s*\(/);
|
|
12347
|
+
// match가 null이면 undefined 반환, 아니면 [1] 반환
|
|
12348
|
+
const methodName = match?.[1];
|
|
12348
12349
|
|
|
12349
|
-
if (this.owner[
|
|
12350
|
-
this.owner[
|
|
12350
|
+
if (this.owner[methodName]) {
|
|
12351
|
+
this.owner[methodName].call(this.owner, this.cell.closest("tr").data, parseInt(this.cell.dataset.row), this.cell);
|
|
12351
12352
|
}
|
|
12352
12353
|
else {
|
|
12353
12354
|
this.owner.exprFunction(fn).call(this, this.cell.closest("tr").data, parseInt(this.cell.dataset.row));
|
package/dist/bundle.esm.js
CHANGED
|
@@ -12302,18 +12302,15 @@ class ngCellEx extends HTMLElement
|
|
|
12302
12302
|
|
|
12303
12303
|
$(button).on("click", e => {
|
|
12304
12304
|
let fn = this.getAttribute("onbuttonclick") || this.getAttribute("onButtonClick") || this.cell.getAttribute("onbuttonclick") || this.cell.getAttribute("onButtonClick");// || this.getAttribute("@onlinkclick");
|
|
12305
|
-
|
|
12305
|
+
|
|
12306
12306
|
if (fn) {
|
|
12307
12307
|
|
|
12308
12308
|
fn = fn.replace("()","");
|
|
12309
12309
|
|
|
12310
12310
|
const match = fn.match(/^(\w+)\s*\(/);
|
|
12311
|
-
|
|
12312
12311
|
// match가 null이면 undefined 반환, 아니면 [1] 반환
|
|
12313
12312
|
const methodName = match?.[1];
|
|
12314
12313
|
|
|
12315
|
-
console.log(methodName); // "onButtonClick" 또는 undefined
|
|
12316
|
-
|
|
12317
12314
|
if (this.owner[methodName]) {
|
|
12318
12315
|
this.owner[methodName].call(this.owner, this.cell.closest("tr").data, parseInt(this.cell.dataset.row), this.cell);
|
|
12319
12316
|
}
|
|
@@ -12341,9 +12338,13 @@ class ngCellEx extends HTMLElement
|
|
|
12341
12338
|
|
|
12342
12339
|
if (fn) {
|
|
12343
12340
|
fn = fn.replace("()","");
|
|
12341
|
+
|
|
12342
|
+
const match = fn.match(/^(\w+)\s*\(/);
|
|
12343
|
+
// match가 null이면 undefined 반환, 아니면 [1] 반환
|
|
12344
|
+
const methodName = match?.[1];
|
|
12344
12345
|
|
|
12345
|
-
if (this.owner[
|
|
12346
|
-
this.owner[
|
|
12346
|
+
if (this.owner[methodName]) {
|
|
12347
|
+
this.owner[methodName].call(this.owner, this.cell.closest("tr").data, parseInt(this.cell.dataset.row), this.cell);
|
|
12347
12348
|
}
|
|
12348
12349
|
else {
|
|
12349
12350
|
this.owner.exprFunction(fn).call(this, this.cell.closest("tr").data, parseInt(this.cell.dataset.row));
|
package/dist/etc/_ngCell.js
CHANGED
|
@@ -189,18 +189,15 @@ export class ngCellEx extends HTMLElement
|
|
|
189
189
|
|
|
190
190
|
$(button).on("click", e => {
|
|
191
191
|
let fn = this.getAttribute("onbuttonclick") || this.getAttribute("onButtonClick") || this.cell.getAttribute("onbuttonclick") || this.cell.getAttribute("onButtonClick");// || this.getAttribute("@onlinkclick");
|
|
192
|
-
|
|
192
|
+
|
|
193
193
|
if (fn) {
|
|
194
194
|
|
|
195
195
|
fn = fn.replace("()","");
|
|
196
196
|
|
|
197
197
|
const match = fn.match(/^(\w+)\s*\(/);
|
|
198
|
-
|
|
199
198
|
// match가 null이면 undefined 반환, 아니면 [1] 반환
|
|
200
199
|
const methodName = match?.[1];
|
|
201
200
|
|
|
202
|
-
console.log(methodName); // "onButtonClick" 또는 undefined
|
|
203
|
-
|
|
204
201
|
if (this.owner[methodName]) {
|
|
205
202
|
this.owner[methodName].call(this.owner, this.cell.closest("tr").data, parseInt(this.cell.dataset.row), this.cell);
|
|
206
203
|
}
|
|
@@ -228,9 +225,13 @@ export class ngCellEx extends HTMLElement
|
|
|
228
225
|
|
|
229
226
|
if (fn) {
|
|
230
227
|
fn = fn.replace("()","");
|
|
228
|
+
|
|
229
|
+
const match = fn.match(/^(\w+)\s*\(/);
|
|
230
|
+
// match가 null이면 undefined 반환, 아니면 [1] 반환
|
|
231
|
+
const methodName = match?.[1];
|
|
231
232
|
|
|
232
|
-
if (this.owner[
|
|
233
|
-
this.owner[
|
|
233
|
+
if (this.owner[methodName]) {
|
|
234
|
+
this.owner[methodName].call(this.owner, this.cell.closest("tr").data, parseInt(this.cell.dataset.row), this.cell);
|
|
234
235
|
}
|
|
235
236
|
else {
|
|
236
237
|
this.owner.exprFunction(fn).call(this, this.cell.closest("tr").data, parseInt(this.cell.dataset.row));
|
package/package.json
CHANGED
package/src/etc/_ngCell.js
CHANGED
|
@@ -189,18 +189,15 @@ export class ngCellEx extends HTMLElement
|
|
|
189
189
|
|
|
190
190
|
$(button).on("click", e => {
|
|
191
191
|
let fn = this.getAttribute("onbuttonclick") || this.getAttribute("onButtonClick") || this.cell.getAttribute("onbuttonclick") || this.cell.getAttribute("onButtonClick");// || this.getAttribute("@onlinkclick");
|
|
192
|
-
|
|
192
|
+
|
|
193
193
|
if (fn) {
|
|
194
194
|
|
|
195
195
|
fn = fn.replace("()","");
|
|
196
196
|
|
|
197
197
|
const match = fn.match(/^(\w+)\s*\(/);
|
|
198
|
-
|
|
199
198
|
// match가 null이면 undefined 반환, 아니면 [1] 반환
|
|
200
199
|
const methodName = match?.[1];
|
|
201
200
|
|
|
202
|
-
console.log(methodName); // "onButtonClick" 또는 undefined
|
|
203
|
-
|
|
204
201
|
if (this.owner[methodName]) {
|
|
205
202
|
this.owner[methodName].call(this.owner, this.cell.closest("tr").data, parseInt(this.cell.dataset.row), this.cell);
|
|
206
203
|
}
|
|
@@ -228,9 +225,13 @@ export class ngCellEx extends HTMLElement
|
|
|
228
225
|
|
|
229
226
|
if (fn) {
|
|
230
227
|
fn = fn.replace("()","");
|
|
228
|
+
|
|
229
|
+
const match = fn.match(/^(\w+)\s*\(/);
|
|
230
|
+
// match가 null이면 undefined 반환, 아니면 [1] 반환
|
|
231
|
+
const methodName = match?.[1];
|
|
231
232
|
|
|
232
|
-
if (this.owner[
|
|
233
|
-
this.owner[
|
|
233
|
+
if (this.owner[methodName]) {
|
|
234
|
+
this.owner[methodName].call(this.owner, this.cell.closest("tr").data, parseInt(this.cell.dataset.row), this.cell);
|
|
234
235
|
}
|
|
235
236
|
else {
|
|
236
237
|
this.owner.exprFunction(fn).call(this, this.cell.closest("tr").data, parseInt(this.cell.dataset.row));
|