ninegrid2 6.370.0 → 6.372.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 +4 -3
- package/dist/bundle.cjs.js +26 -7
- package/dist/bundle.esm.js +26 -7
- package/dist/etc/ngExport.js +2 -0
- package/dist/etc/ninegridContainer.js +16 -0
- package/dist/utils/ninegrid.js +3 -3
- package/package.json +1 -1
- package/src/ai/aiMessage.js +4 -3
- package/src/etc/ngExport.js +2 -0
- package/src/etc/ninegridContainer.js +16 -0
- package/src/utils/ninegrid.js +3 -3
package/dist/ai/aiMessage.js
CHANGED
|
@@ -48,8 +48,8 @@ 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
|
-
const
|
|
52
|
-
|
|
51
|
+
const grd = document.querySelector("nine-grid");
|
|
52
|
+
grd.filtering.set(this.#data);
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
this.shadowRoot.querySelector(".maximize").addEventListener("click", e => {
|
|
@@ -57,7 +57,8 @@ class aiMessage extends HTMLElement
|
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
this.shadowRoot.querySelector(".excel").addEventListener("click", e => {
|
|
60
|
-
|
|
60
|
+
const grd = document.querySelector("nine-grid");
|
|
61
|
+
grd.export();
|
|
61
62
|
});
|
|
62
63
|
|
|
63
64
|
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
|
}
|
|
@@ -11048,11 +11050,11 @@ class ninegrid {
|
|
|
11048
11050
|
//clone.style.visibility = "hidden";
|
|
11049
11051
|
document.body.appendChild(clone);
|
|
11050
11052
|
|
|
11051
|
-
console.log(clone, element);
|
|
11052
|
-
console.log(clone.scrollWidth, element.clientWidth);
|
|
11053
|
+
//console.log(clone, element);
|
|
11054
|
+
//console.log(clone.scrollWidth, element.clientWidth);
|
|
11053
11055
|
|
|
11054
11056
|
const isTruncated = clone.scrollWidth > element.clientWidth || clone.scrollHeight > element.clientHeight;
|
|
11055
|
-
|
|
11057
|
+
document.body.removeChild(clone);
|
|
11056
11058
|
|
|
11057
11059
|
return isTruncated;
|
|
11058
11060
|
}
|
|
@@ -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;
|
|
@@ -24286,6 +24288,22 @@ class ninegridContainer extends HTMLElement
|
|
|
24286
24288
|
|
|
24287
24289
|
}
|
|
24288
24290
|
|
|
24291
|
+
export = (v) => {
|
|
24292
|
+
const existingExport = this.shadowRoot.querySelector("ng-export");
|
|
24293
|
+
|
|
24294
|
+
if (existingExport) {
|
|
24295
|
+
existingExport.remove();
|
|
24296
|
+
}
|
|
24297
|
+
|
|
24298
|
+
const newExport = document.createElement("ng-export");
|
|
24299
|
+
this.shadowRoot.appendChild(newExport);
|
|
24300
|
+
|
|
24301
|
+
setTimeout(() => { // DOM에 추가된 후 실행 보장
|
|
24302
|
+
newExport.exportExcel();
|
|
24303
|
+
});
|
|
24304
|
+
};
|
|
24305
|
+
|
|
24306
|
+
|
|
24289
24307
|
refreshData = (v) => {
|
|
24290
24308
|
if (v == null) {
|
|
24291
24309
|
var rows = [];
|
|
@@ -27354,8 +27372,8 @@ class aiMessage extends HTMLElement
|
|
|
27354
27372
|
elMessage.innerHTML = this.#message.replaceAll("\n\n", "<br/>").replaceAll("\n", "<br/>");
|
|
27355
27373
|
|
|
27356
27374
|
this.shadowRoot.querySelector(".filter").addEventListener("click", e => {
|
|
27357
|
-
const
|
|
27358
|
-
|
|
27375
|
+
const grd = document.querySelector("nine-grid");
|
|
27376
|
+
grd.filtering.set(this.#data);
|
|
27359
27377
|
});
|
|
27360
27378
|
|
|
27361
27379
|
this.shadowRoot.querySelector(".maximize").addEventListener("click", e => {
|
|
@@ -27363,7 +27381,8 @@ class aiMessage extends HTMLElement
|
|
|
27363
27381
|
});
|
|
27364
27382
|
|
|
27365
27383
|
this.shadowRoot.querySelector(".excel").addEventListener("click", e => {
|
|
27366
|
-
|
|
27384
|
+
const grd = document.querySelector("nine-grid");
|
|
27385
|
+
grd.export();
|
|
27367
27386
|
});
|
|
27368
27387
|
|
|
27369
27388
|
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
|
}
|
|
@@ -11046,11 +11048,11 @@ class ninegrid {
|
|
|
11046
11048
|
//clone.style.visibility = "hidden";
|
|
11047
11049
|
document.body.appendChild(clone);
|
|
11048
11050
|
|
|
11049
|
-
console.log(clone, element);
|
|
11050
|
-
console.log(clone.scrollWidth, element.clientWidth);
|
|
11051
|
+
//console.log(clone, element);
|
|
11052
|
+
//console.log(clone.scrollWidth, element.clientWidth);
|
|
11051
11053
|
|
|
11052
11054
|
const isTruncated = clone.scrollWidth > element.clientWidth || clone.scrollHeight > element.clientHeight;
|
|
11053
|
-
|
|
11055
|
+
document.body.removeChild(clone);
|
|
11054
11056
|
|
|
11055
11057
|
return isTruncated;
|
|
11056
11058
|
}
|
|
@@ -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;
|
|
@@ -24284,6 +24286,22 @@ class ninegridContainer extends HTMLElement
|
|
|
24284
24286
|
|
|
24285
24287
|
}
|
|
24286
24288
|
|
|
24289
|
+
export = (v) => {
|
|
24290
|
+
const existingExport = this.shadowRoot.querySelector("ng-export");
|
|
24291
|
+
|
|
24292
|
+
if (existingExport) {
|
|
24293
|
+
existingExport.remove();
|
|
24294
|
+
}
|
|
24295
|
+
|
|
24296
|
+
const newExport = document.createElement("ng-export");
|
|
24297
|
+
this.shadowRoot.appendChild(newExport);
|
|
24298
|
+
|
|
24299
|
+
setTimeout(() => { // DOM에 추가된 후 실행 보장
|
|
24300
|
+
newExport.exportExcel();
|
|
24301
|
+
});
|
|
24302
|
+
};
|
|
24303
|
+
|
|
24304
|
+
|
|
24287
24305
|
refreshData = (v) => {
|
|
24288
24306
|
if (v == null) {
|
|
24289
24307
|
var rows = [];
|
|
@@ -27352,8 +27370,8 @@ class aiMessage extends HTMLElement
|
|
|
27352
27370
|
elMessage.innerHTML = this.#message.replaceAll("\n\n", "<br/>").replaceAll("\n", "<br/>");
|
|
27353
27371
|
|
|
27354
27372
|
this.shadowRoot.querySelector(".filter").addEventListener("click", e => {
|
|
27355
|
-
const
|
|
27356
|
-
|
|
27373
|
+
const grd = document.querySelector("nine-grid");
|
|
27374
|
+
grd.filtering.set(this.#data);
|
|
27357
27375
|
});
|
|
27358
27376
|
|
|
27359
27377
|
this.shadowRoot.querySelector(".maximize").addEventListener("click", e => {
|
|
@@ -27361,7 +27379,8 @@ class aiMessage extends HTMLElement
|
|
|
27361
27379
|
});
|
|
27362
27380
|
|
|
27363
27381
|
this.shadowRoot.querySelector(".excel").addEventListener("click", e => {
|
|
27364
|
-
|
|
27382
|
+
const grd = document.querySelector("nine-grid");
|
|
27383
|
+
grd.export();
|
|
27365
27384
|
});
|
|
27366
27385
|
|
|
27367
27386
|
this.shadowRoot.querySelector(".more a").addEventListener("click", () => {
|
package/dist/etc/ngExport.js
CHANGED
|
@@ -235,6 +235,22 @@ class ninegridContainer extends HTMLElement
|
|
|
235
235
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
+
export = (v) => {
|
|
239
|
+
const existingExport = this.shadowRoot.querySelector("ng-export");
|
|
240
|
+
|
|
241
|
+
if (existingExport) {
|
|
242
|
+
existingExport.remove();
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
const newExport = document.createElement("ng-export");
|
|
246
|
+
this.shadowRoot.appendChild(newExport);
|
|
247
|
+
|
|
248
|
+
setTimeout(() => { // DOM에 추가된 후 실행 보장
|
|
249
|
+
newExport.exportExcel();
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
|
|
238
254
|
refreshData = (v) => {
|
|
239
255
|
if (v == null) {
|
|
240
256
|
var rows = [];
|
package/dist/utils/ninegrid.js
CHANGED
|
@@ -345,11 +345,11 @@ export class ninegrid {
|
|
|
345
345
|
//clone.style.visibility = "hidden";
|
|
346
346
|
document.body.appendChild(clone);
|
|
347
347
|
|
|
348
|
-
console.log(clone, element);
|
|
349
|
-
console.log(clone.scrollWidth, element.clientWidth);
|
|
348
|
+
//console.log(clone, element);
|
|
349
|
+
//console.log(clone.scrollWidth, element.clientWidth);
|
|
350
350
|
|
|
351
351
|
const isTruncated = clone.scrollWidth > element.clientWidth || clone.scrollHeight > element.clientHeight;
|
|
352
|
-
|
|
352
|
+
document.body.removeChild(clone);
|
|
353
353
|
|
|
354
354
|
return isTruncated;
|
|
355
355
|
}
|
package/package.json
CHANGED
package/src/ai/aiMessage.js
CHANGED
|
@@ -48,8 +48,8 @@ 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
|
-
const
|
|
52
|
-
|
|
51
|
+
const grd = document.querySelector("nine-grid");
|
|
52
|
+
grd.filtering.set(this.#data);
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
this.shadowRoot.querySelector(".maximize").addEventListener("click", e => {
|
|
@@ -57,7 +57,8 @@ class aiMessage extends HTMLElement
|
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
this.shadowRoot.querySelector(".excel").addEventListener("click", e => {
|
|
60
|
-
|
|
60
|
+
const grd = document.querySelector("nine-grid");
|
|
61
|
+
grd.export();
|
|
61
62
|
});
|
|
62
63
|
|
|
63
64
|
this.shadowRoot.querySelector(".more a").addEventListener("click", () => {
|
package/src/etc/ngExport.js
CHANGED
|
@@ -235,6 +235,22 @@ class ninegridContainer extends HTMLElement
|
|
|
235
235
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
+
export = (v) => {
|
|
239
|
+
const existingExport = this.shadowRoot.querySelector("ng-export");
|
|
240
|
+
|
|
241
|
+
if (existingExport) {
|
|
242
|
+
existingExport.remove();
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
const newExport = document.createElement("ng-export");
|
|
246
|
+
this.shadowRoot.appendChild(newExport);
|
|
247
|
+
|
|
248
|
+
setTimeout(() => { // DOM에 추가된 후 실행 보장
|
|
249
|
+
newExport.exportExcel();
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
|
|
238
254
|
refreshData = (v) => {
|
|
239
255
|
if (v == null) {
|
|
240
256
|
var rows = [];
|
package/src/utils/ninegrid.js
CHANGED
|
@@ -345,11 +345,11 @@ export class ninegrid {
|
|
|
345
345
|
//clone.style.visibility = "hidden";
|
|
346
346
|
document.body.appendChild(clone);
|
|
347
347
|
|
|
348
|
-
console.log(clone, element);
|
|
349
|
-
console.log(clone.scrollWidth, element.clientWidth);
|
|
348
|
+
//console.log(clone, element);
|
|
349
|
+
//console.log(clone.scrollWidth, element.clientWidth);
|
|
350
350
|
|
|
351
351
|
const isTruncated = clone.scrollWidth > element.clientWidth || clone.scrollHeight > element.clientHeight;
|
|
352
|
-
|
|
352
|
+
document.body.removeChild(clone);
|
|
353
353
|
|
|
354
354
|
return isTruncated;
|
|
355
355
|
}
|