golden-logic-ui 1.2.46 → 1.2.49
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/golden-logic-ui.js
CHANGED
|
@@ -91244,8 +91244,16 @@ const $Ae = {
|
|
|
91244
91244
|
Random_string: r,
|
|
91245
91245
|
printObj: {
|
|
91246
91246
|
id: "print_" + r,
|
|
91247
|
-
popTitle: ""
|
|
91247
|
+
popTitle: "",
|
|
91248
91248
|
// preview:true,
|
|
91249
|
+
beforeOpenCallback(t) {
|
|
91250
|
+
t.columnsHidden = ["Action"];
|
|
91251
|
+
},
|
|
91252
|
+
openCallback(t) {
|
|
91253
|
+
},
|
|
91254
|
+
closeCallback(t) {
|
|
91255
|
+
t.columnsHidden = [];
|
|
91256
|
+
}
|
|
91249
91257
|
},
|
|
91250
91258
|
checkedIds: [],
|
|
91251
91259
|
dynamicFilters: {},
|
|
@@ -91259,7 +91267,7 @@ const $Ae = {
|
|
|
91259
91267
|
search: "",
|
|
91260
91268
|
isDropdownOpen: !1,
|
|
91261
91269
|
itemLists: [],
|
|
91262
|
-
|
|
91270
|
+
columnsHidden: [],
|
|
91263
91271
|
tableData: [],
|
|
91264
91272
|
sortField: this.xprops.defaultSortField ? this.xprops.defaultSortField : this.columns && this.columns.length > 0 ? this.columns[0].field_name : "",
|
|
91265
91273
|
sortOrder: "desc",
|
|
@@ -91376,19 +91384,10 @@ const $Ae = {
|
|
|
91376
91384
|
exportToExcel() {
|
|
91377
91385
|
const r = document.querySelector("#table" + this.Random_string), t = Array.from(r.querySelectorAll("thead th")).map((R) => R.innerText), l = ["", ...["Action"]], c = t.map((R, M) => l.includes(R) ? M : -1).filter((R) => R !== -1), f = Array.from(r.querySelectorAll("tbody tr")).map((R) => Array.from(R.querySelectorAll("td")).map((V) => V.innerText).filter((V, G) => !c.includes(G))), b = [t.filter((R, M) => !c.includes(M)), ...f], x = pte.aoa_to_sheet(b), C = pte.book_new();
|
|
91378
91386
|
pte.book_append_sheet(C, x, "Sheet1"), vAe(C, "exported-file.xlsx");
|
|
91379
|
-
},
|
|
91380
|
-
handleBeforePrint() {
|
|
91381
|
-
console.log("User is about to print!"), this.cloumnsHidden = ["Action"];
|
|
91382
|
-
},
|
|
91383
|
-
handleAfterPrint() {
|
|
91384
|
-
console.log("User finished printing!"), this.cloumnsHidden = [];
|
|
91385
91387
|
}
|
|
91386
91388
|
},
|
|
91387
91389
|
mounted() {
|
|
91388
|
-
this.GetItemLists(), this.isMounted = !0
|
|
91389
|
-
},
|
|
91390
|
-
beforeDestroy() {
|
|
91391
|
-
window.removeEventListener("beforeprint", this.handleBeforePrint), window.removeEventListener("afterprint", this.handleAfterPrint);
|
|
91390
|
+
this.GetItemLists(), this.isMounted = !0;
|
|
91392
91391
|
},
|
|
91393
91392
|
watch: {
|
|
91394
91393
|
searchFilter() {
|
|
@@ -91761,7 +91760,7 @@ function t5e(r, t, s, l, c, f) {
|
|
|
91761
91760
|
])
|
|
91762
91761
|
], 64);
|
|
91763
91762
|
}
|
|
91764
|
-
const XRe = /* @__PURE__ */ Ii($Ae, [["render", t5e], ["__scopeId", "data-v-
|
|
91763
|
+
const XRe = /* @__PURE__ */ Ii($Ae, [["render", t5e], ["__scopeId", "data-v-97c7c29f"]]), n5e = {
|
|
91765
91764
|
components: {},
|
|
91766
91765
|
props: {
|
|
91767
91766
|
data: Array,
|