ninegrid2 6.371.0 → 6.373.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/ai/aiMessage.js +3 -5
- package/dist/bundle.cjs.js +31 -13
- package/dist/bundle.esm.js +31 -13
- package/dist/etc/ngExport.js +2 -0
- package/dist/etc/ngMenu.js +3 -0
- package/dist/etc/ninegridContainer.js +22 -7
- package/package.json +1 -1
- package/src/ai/aiMessage.js +3 -5
- package/src/etc/ngExport.js +2 -0
- package/src/etc/ngMenu.js +3 -0
- package/src/etc/ninegridContainer.js +22 -7
package/dist/ai/aiMessage.js
CHANGED
|
@@ -48,17 +48,15 @@ class aiMessage extends HTMLElement
|
|
|
48
48
|
elMessage.innerHTML = this.#message.replaceAll("\n\n", "<br/>").replaceAll("\n", "<br/>");
|
|
49
49
|
|
|
50
50
|
this.shadowRoot.querySelector(".filter").addEventListener("click", e => {
|
|
51
|
-
|
|
52
|
-
grd.filtering.set(this.#data);
|
|
51
|
+
this.shadowRoot.querySelector("nine-grid").filtering.set(this.#data);
|
|
53
52
|
});
|
|
54
53
|
|
|
55
54
|
this.shadowRoot.querySelector(".maximize").addEventListener("click", e => {
|
|
56
|
-
|
|
55
|
+
this.shadowRoot.querySelector("nine-grid").maximize();
|
|
57
56
|
});
|
|
58
57
|
|
|
59
58
|
this.shadowRoot.querySelector(".excel").addEventListener("click", e => {
|
|
60
|
-
|
|
61
|
-
grd.export();
|
|
59
|
+
this.shadowRoot.querySelector("nine-grid").export();
|
|
62
60
|
});
|
|
63
61
|
|
|
64
62
|
this.shadowRoot.querySelector(".more a").addEventListener("click", () => {
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var ExcelJS$1 = require('exceljs');
|
|
4
|
+
|
|
3
5
|
function getDefaultExportFromCjs (x) {
|
|
4
6
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
7
|
}
|
|
@@ -17520,7 +17522,7 @@ class ngExportExcel
|
|
|
17520
17522
|
this.#progressBar.setAttribute("max", this.#owner.data.count());
|
|
17521
17523
|
this.#progressBar.setAttribute("value", 0);
|
|
17522
17524
|
|
|
17523
|
-
const workbook = new ExcelJS.Workbook();
|
|
17525
|
+
const workbook = new ExcelJS$1.Workbook();
|
|
17524
17526
|
const sheet = workbook.addWorksheet('Sheet1');
|
|
17525
17527
|
|
|
17526
17528
|
var index = 0;
|
|
@@ -19317,9 +19319,12 @@ class ngMenu extends HTMLElement
|
|
|
19317
19319
|
this.#importer.importExcel();
|
|
19318
19320
|
break;
|
|
19319
19321
|
case "export-excel":
|
|
19322
|
+
/*
|
|
19320
19323
|
$('ng-export', this.#owner.shadowRoot).remove();
|
|
19321
19324
|
$(this.#owner.shadowRoot).append($('<ng-export></ng-export>'));
|
|
19322
19325
|
this.#owner.shadowRoot.querySelector("ng-export").exportExcel();
|
|
19326
|
+
*/
|
|
19327
|
+
this.#owner.export();
|
|
19323
19328
|
break;
|
|
19324
19329
|
case "export-pdf":
|
|
19325
19330
|
$('ng-export', this.#owner.shadowRoot).remove();
|
|
@@ -24286,18 +24291,33 @@ class ninegridContainer extends HTMLElement
|
|
|
24286
24291
|
|
|
24287
24292
|
}
|
|
24288
24293
|
|
|
24289
|
-
export = (
|
|
24290
|
-
const
|
|
24294
|
+
export = () => {
|
|
24295
|
+
const el = this.shadowRoot.querySelector("ng-export");
|
|
24296
|
+
|
|
24297
|
+
if (el) {
|
|
24298
|
+
el.remove();
|
|
24299
|
+
}
|
|
24300
|
+
|
|
24301
|
+
const newEl = document.createElement("ng-export");
|
|
24302
|
+
this.shadowRoot.appendChild(newEl);
|
|
24303
|
+
|
|
24304
|
+
setTimeout(() => { // DOM에 추가된 후 실행 보장
|
|
24305
|
+
newEl.exportExcel();
|
|
24306
|
+
});
|
|
24307
|
+
};
|
|
24308
|
+
|
|
24309
|
+
maximize = () => {
|
|
24310
|
+
const el = this.shadowRoot.querySelector("ng-max-popup");
|
|
24291
24311
|
|
|
24292
|
-
if (
|
|
24293
|
-
|
|
24312
|
+
if (el) {
|
|
24313
|
+
el.remove();
|
|
24294
24314
|
}
|
|
24295
24315
|
|
|
24296
|
-
const
|
|
24297
|
-
this.shadowRoot.appendChild(
|
|
24316
|
+
const newEl = document.createElement("ng-max-popup");
|
|
24317
|
+
this.shadowRoot.appendChild(newEl);
|
|
24298
24318
|
|
|
24299
24319
|
setTimeout(() => { // DOM에 추가된 후 실행 보장
|
|
24300
|
-
|
|
24320
|
+
newEl.popup();
|
|
24301
24321
|
});
|
|
24302
24322
|
};
|
|
24303
24323
|
|
|
@@ -27370,17 +27390,15 @@ class aiMessage extends HTMLElement
|
|
|
27370
27390
|
elMessage.innerHTML = this.#message.replaceAll("\n\n", "<br/>").replaceAll("\n", "<br/>");
|
|
27371
27391
|
|
|
27372
27392
|
this.shadowRoot.querySelector(".filter").addEventListener("click", e => {
|
|
27373
|
-
|
|
27374
|
-
grd.filtering.set(this.#data);
|
|
27393
|
+
this.shadowRoot.querySelector("nine-grid").filtering.set(this.#data);
|
|
27375
27394
|
});
|
|
27376
27395
|
|
|
27377
27396
|
this.shadowRoot.querySelector(".maximize").addEventListener("click", e => {
|
|
27378
|
-
|
|
27397
|
+
this.shadowRoot.querySelector("nine-grid").maximize();
|
|
27379
27398
|
});
|
|
27380
27399
|
|
|
27381
27400
|
this.shadowRoot.querySelector(".excel").addEventListener("click", e => {
|
|
27382
|
-
|
|
27383
|
-
grd.export();
|
|
27401
|
+
this.shadowRoot.querySelector("nine-grid").export();
|
|
27384
27402
|
});
|
|
27385
27403
|
|
|
27386
27404
|
this.shadowRoot.querySelector(".more a").addEventListener("click", () => {
|
package/dist/bundle.esm.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import ExcelJS$1 from 'exceljs';
|
|
2
|
+
|
|
1
3
|
function getDefaultExportFromCjs (x) {
|
|
2
4
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
3
5
|
}
|
|
@@ -17518,7 +17520,7 @@ class ngExportExcel
|
|
|
17518
17520
|
this.#progressBar.setAttribute("max", this.#owner.data.count());
|
|
17519
17521
|
this.#progressBar.setAttribute("value", 0);
|
|
17520
17522
|
|
|
17521
|
-
const workbook = new ExcelJS.Workbook();
|
|
17523
|
+
const workbook = new ExcelJS$1.Workbook();
|
|
17522
17524
|
const sheet = workbook.addWorksheet('Sheet1');
|
|
17523
17525
|
|
|
17524
17526
|
var index = 0;
|
|
@@ -19315,9 +19317,12 @@ class ngMenu extends HTMLElement
|
|
|
19315
19317
|
this.#importer.importExcel();
|
|
19316
19318
|
break;
|
|
19317
19319
|
case "export-excel":
|
|
19320
|
+
/*
|
|
19318
19321
|
$('ng-export', this.#owner.shadowRoot).remove();
|
|
19319
19322
|
$(this.#owner.shadowRoot).append($('<ng-export></ng-export>'));
|
|
19320
19323
|
this.#owner.shadowRoot.querySelector("ng-export").exportExcel();
|
|
19324
|
+
*/
|
|
19325
|
+
this.#owner.export();
|
|
19321
19326
|
break;
|
|
19322
19327
|
case "export-pdf":
|
|
19323
19328
|
$('ng-export', this.#owner.shadowRoot).remove();
|
|
@@ -24284,18 +24289,33 @@ class ninegridContainer extends HTMLElement
|
|
|
24284
24289
|
|
|
24285
24290
|
}
|
|
24286
24291
|
|
|
24287
|
-
export = (
|
|
24288
|
-
const
|
|
24292
|
+
export = () => {
|
|
24293
|
+
const el = this.shadowRoot.querySelector("ng-export");
|
|
24294
|
+
|
|
24295
|
+
if (el) {
|
|
24296
|
+
el.remove();
|
|
24297
|
+
}
|
|
24298
|
+
|
|
24299
|
+
const newEl = document.createElement("ng-export");
|
|
24300
|
+
this.shadowRoot.appendChild(newEl);
|
|
24301
|
+
|
|
24302
|
+
setTimeout(() => { // DOM에 추가된 후 실행 보장
|
|
24303
|
+
newEl.exportExcel();
|
|
24304
|
+
});
|
|
24305
|
+
};
|
|
24306
|
+
|
|
24307
|
+
maximize = () => {
|
|
24308
|
+
const el = this.shadowRoot.querySelector("ng-max-popup");
|
|
24289
24309
|
|
|
24290
|
-
if (
|
|
24291
|
-
|
|
24310
|
+
if (el) {
|
|
24311
|
+
el.remove();
|
|
24292
24312
|
}
|
|
24293
24313
|
|
|
24294
|
-
const
|
|
24295
|
-
this.shadowRoot.appendChild(
|
|
24314
|
+
const newEl = document.createElement("ng-max-popup");
|
|
24315
|
+
this.shadowRoot.appendChild(newEl);
|
|
24296
24316
|
|
|
24297
24317
|
setTimeout(() => { // DOM에 추가된 후 실행 보장
|
|
24298
|
-
|
|
24318
|
+
newEl.popup();
|
|
24299
24319
|
});
|
|
24300
24320
|
};
|
|
24301
24321
|
|
|
@@ -27368,17 +27388,15 @@ class aiMessage extends HTMLElement
|
|
|
27368
27388
|
elMessage.innerHTML = this.#message.replaceAll("\n\n", "<br/>").replaceAll("\n", "<br/>");
|
|
27369
27389
|
|
|
27370
27390
|
this.shadowRoot.querySelector(".filter").addEventListener("click", e => {
|
|
27371
|
-
|
|
27372
|
-
grd.filtering.set(this.#data);
|
|
27391
|
+
this.shadowRoot.querySelector("nine-grid").filtering.set(this.#data);
|
|
27373
27392
|
});
|
|
27374
27393
|
|
|
27375
27394
|
this.shadowRoot.querySelector(".maximize").addEventListener("click", e => {
|
|
27376
|
-
|
|
27395
|
+
this.shadowRoot.querySelector("nine-grid").maximize();
|
|
27377
27396
|
});
|
|
27378
27397
|
|
|
27379
27398
|
this.shadowRoot.querySelector(".excel").addEventListener("click", e => {
|
|
27380
|
-
|
|
27381
|
-
grd.export();
|
|
27399
|
+
this.shadowRoot.querySelector("nine-grid").export();
|
|
27382
27400
|
});
|
|
27383
27401
|
|
|
27384
27402
|
this.shadowRoot.querySelector(".more a").addEventListener("click", () => {
|
package/dist/etc/ngExport.js
CHANGED
package/dist/etc/ngMenu.js
CHANGED
|
@@ -143,9 +143,12 @@ class ngMenu extends HTMLElement
|
|
|
143
143
|
this.#importer.importExcel();
|
|
144
144
|
break;
|
|
145
145
|
case "export-excel":
|
|
146
|
+
/*
|
|
146
147
|
$('ng-export', this.#owner.shadowRoot).remove();
|
|
147
148
|
$(this.#owner.shadowRoot).append($('<ng-export></ng-export>'));
|
|
148
149
|
this.#owner.shadowRoot.querySelector("ng-export").exportExcel();
|
|
150
|
+
*/
|
|
151
|
+
this.#owner.export();
|
|
149
152
|
break;
|
|
150
153
|
case "export-pdf":
|
|
151
154
|
$('ng-export', this.#owner.shadowRoot).remove();
|
|
@@ -235,18 +235,33 @@ class ninegridContainer extends HTMLElement
|
|
|
235
235
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
export = (
|
|
239
|
-
const
|
|
238
|
+
export = () => {
|
|
239
|
+
const el = this.shadowRoot.querySelector("ng-export");
|
|
240
240
|
|
|
241
|
-
if (
|
|
242
|
-
|
|
241
|
+
if (el) {
|
|
242
|
+
el.remove();
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
const
|
|
246
|
-
this.shadowRoot.appendChild(
|
|
245
|
+
const newEl = document.createElement("ng-export");
|
|
246
|
+
this.shadowRoot.appendChild(newEl);
|
|
247
247
|
|
|
248
248
|
setTimeout(() => { // DOM에 추가된 후 실행 보장
|
|
249
|
-
|
|
249
|
+
newEl.exportExcel();
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
maximize = () => {
|
|
254
|
+
const el = this.shadowRoot.querySelector("ng-max-popup");
|
|
255
|
+
|
|
256
|
+
if (el) {
|
|
257
|
+
el.remove();
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
const newEl = document.createElement("ng-max-popup");
|
|
261
|
+
this.shadowRoot.appendChild(newEl);
|
|
262
|
+
|
|
263
|
+
setTimeout(() => { // DOM에 추가된 후 실행 보장
|
|
264
|
+
newEl.popup();
|
|
250
265
|
});
|
|
251
266
|
};
|
|
252
267
|
|
package/package.json
CHANGED
package/src/ai/aiMessage.js
CHANGED
|
@@ -48,17 +48,15 @@ class aiMessage extends HTMLElement
|
|
|
48
48
|
elMessage.innerHTML = this.#message.replaceAll("\n\n", "<br/>").replaceAll("\n", "<br/>");
|
|
49
49
|
|
|
50
50
|
this.shadowRoot.querySelector(".filter").addEventListener("click", e => {
|
|
51
|
-
|
|
52
|
-
grd.filtering.set(this.#data);
|
|
51
|
+
this.shadowRoot.querySelector("nine-grid").filtering.set(this.#data);
|
|
53
52
|
});
|
|
54
53
|
|
|
55
54
|
this.shadowRoot.querySelector(".maximize").addEventListener("click", e => {
|
|
56
|
-
|
|
55
|
+
this.shadowRoot.querySelector("nine-grid").maximize();
|
|
57
56
|
});
|
|
58
57
|
|
|
59
58
|
this.shadowRoot.querySelector(".excel").addEventListener("click", e => {
|
|
60
|
-
|
|
61
|
-
grd.export();
|
|
59
|
+
this.shadowRoot.querySelector("nine-grid").export();
|
|
62
60
|
});
|
|
63
61
|
|
|
64
62
|
this.shadowRoot.querySelector(".more a").addEventListener("click", () => {
|
package/src/etc/ngExport.js
CHANGED
package/src/etc/ngMenu.js
CHANGED
|
@@ -143,9 +143,12 @@ class ngMenu extends HTMLElement
|
|
|
143
143
|
this.#importer.importExcel();
|
|
144
144
|
break;
|
|
145
145
|
case "export-excel":
|
|
146
|
+
/*
|
|
146
147
|
$('ng-export', this.#owner.shadowRoot).remove();
|
|
147
148
|
$(this.#owner.shadowRoot).append($('<ng-export></ng-export>'));
|
|
148
149
|
this.#owner.shadowRoot.querySelector("ng-export").exportExcel();
|
|
150
|
+
*/
|
|
151
|
+
this.#owner.export();
|
|
149
152
|
break;
|
|
150
153
|
case "export-pdf":
|
|
151
154
|
$('ng-export', this.#owner.shadowRoot).remove();
|
|
@@ -235,18 +235,33 @@ class ninegridContainer extends HTMLElement
|
|
|
235
235
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
export = (
|
|
239
|
-
const
|
|
238
|
+
export = () => {
|
|
239
|
+
const el = this.shadowRoot.querySelector("ng-export");
|
|
240
240
|
|
|
241
|
-
if (
|
|
242
|
-
|
|
241
|
+
if (el) {
|
|
242
|
+
el.remove();
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
const
|
|
246
|
-
this.shadowRoot.appendChild(
|
|
245
|
+
const newEl = document.createElement("ng-export");
|
|
246
|
+
this.shadowRoot.appendChild(newEl);
|
|
247
247
|
|
|
248
248
|
setTimeout(() => { // DOM에 추가된 후 실행 보장
|
|
249
|
-
|
|
249
|
+
newEl.exportExcel();
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
maximize = () => {
|
|
254
|
+
const el = this.shadowRoot.querySelector("ng-max-popup");
|
|
255
|
+
|
|
256
|
+
if (el) {
|
|
257
|
+
el.remove();
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
const newEl = document.createElement("ng-max-popup");
|
|
261
|
+
this.shadowRoot.appendChild(newEl);
|
|
262
|
+
|
|
263
|
+
setTimeout(() => { // DOM에 추가된 후 실행 보장
|
|
264
|
+
newEl.popup();
|
|
250
265
|
});
|
|
251
266
|
};
|
|
252
267
|
|