golden-logic-ui 1.3.11 → 1.3.13

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.
@@ -1,75 +1,152 @@
1
- import c from "./GLButton.vue.js";
2
- import { resolveComponent as m, createElementBlock as f, createCommentVNode as _, openBlock as p, createElementVNode as t, toDisplayString as i, renderSlot as u, createVNode as l, withCtx as r, createTextVNode as d } from "vue";
3
- import g from "../../_virtual/_plugin-vue_export-helper.js";
4
- const x = {
1
+ import { resolveComponent as b, createElementBlock as f, createCommentVNode as u, openBlock as _, createElementVNode as t, toDisplayString as s, renderSlot as y, withDirectives as h, createTextVNode as r, withKeys as v, withModifiers as k, vModelText as w, createVNode as x, withCtx as p, ref as c, watch as C } from "vue";
2
+ import I from "./GLButton.vue.js";
3
+ import { useGlFocusTrap as T, nextGlId as g } from "./useGlFocusTrap.js";
4
+ import A from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const B = {
5
6
  components: {
6
- GlButton: c
7
+ GlButton: I
8
+ },
9
+ props: {
10
+ isOpen: null,
11
+ title: null,
12
+ button_text: null,
13
+ // When set, the confirm button stays disabled until exactly this text is typed.
14
+ confirm_text: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ // Escape emits cancel-action. Set false to only close through the buttons.
19
+ close_on_escape: {
20
+ type: Boolean,
21
+ default: !0
22
+ },
23
+ language: {
24
+ type: Object,
25
+ default: () => ({})
26
+ }
27
+ },
28
+ emits: ["confirm-action", "cancel-action"],
29
+ setup(l, { emit: e }) {
30
+ const n = c(null), o = c(null), d = c(null), i = c("");
31
+ return C(() => l.isOpen, (a) => {
32
+ a && (i.value = "");
33
+ }), T(n, () => !!l.isOpen, {
34
+ closeOnEscape: () => l.close_on_escape,
35
+ onEscape: () => e("cancel-action"),
36
+ initialFocus: () => o.value || d.value?.$el || null
37
+ }), {
38
+ panel: n,
39
+ confirmInput: o,
40
+ cancelButton: d,
41
+ typedText: i,
42
+ titleId: g("gl-confirmation-title"),
43
+ inputId: g("gl-confirmation-input")
44
+ };
45
+ },
46
+ computed: {
47
+ canConfirm() {
48
+ return !this.confirm_text || this.typedText === this.confirm_text;
49
+ }
7
50
  },
8
- props: ["isOpen", "title", "button_text"],
9
51
  methods: {
10
52
  confirmAction() {
11
- this.$emit("confirm-action");
53
+ this.canConfirm && this.$emit("confirm-action");
12
54
  },
13
55
  cancelAction() {
14
56
  this.$emit("cancel-action");
15
57
  }
16
58
  }
17
- }, b = {
59
+ }, O = ["aria-labelledby"], V = { class: "flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:p-0" }, E = {
60
+ ref: "panel",
61
+ tabindex: "-1",
62
+ class: "inline-block relative overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full focus:outline-hidden"
63
+ }, N = { class: "px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, G = { class: "sm:flex sm:items-start" }, M = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, S = ["id"], j = { class: "mt-2" }, D = {
18
64
  key: 0,
19
- class: "fixed inset-0 z-99999 overflow-y-auto",
20
- role: "dialog",
21
- "aria-modal": "true"
22
- }, h = { class: "flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:p-0" }, v = { class: "inline-block relative overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, y = { class: "px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, k = { class: "sm:flex sm:items-start" }, C = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, w = { class: "text-lg font-medium leading-6" }, A = { class: "mt-2" }, N = { class: "border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 flex gap-2" };
23
- function V(a, e, o, B, E, n) {
24
- const s = m("gl-button");
25
- return o.isOpen ? (p(), f("div", b, [
26
- t("div", h, [
27
- e[1] || (e[1] = t("div", {
65
+ class: "mt-4 text-left"
66
+ }, F = ["for"], K = { class: "px-1 py-0.5 font-mono text-red-600 bg-gray-100 rounded-sm dark:bg-gray-900 dark:text-red-300" }, z = ["id"], U = { class: "border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 flex gap-2" };
67
+ function q(l, e, n, o, d, i) {
68
+ const a = b("gl-button");
69
+ return n.isOpen ? (_(), f("div", {
70
+ key: 0,
71
+ class: "fixed inset-0 z-99999 overflow-y-auto",
72
+ role: "dialog",
73
+ "aria-modal": "true",
74
+ "aria-labelledby": o.titleId
75
+ }, [
76
+ t("div", V, [
77
+ e[3] || (e[3] = t("div", {
28
78
  class: "fixed inset-0 transition-opacity bg-gray-500/75",
29
79
  "aria-hidden": "true"
30
80
  }, null, -1)),
31
- e[2] || (e[2] = t("span", {
81
+ e[4] || (e[4] = t("span", {
32
82
  class: "hidden sm:inline-block sm:align-middle sm:h-screen",
33
83
  "aria-hidden": "true"
34
84
  }, "​", -1)),
35
- t("div", v, [
36
- t("div", y, [
37
- t("div", k, [
38
- t("div", C, [
39
- t("h3", w, i(o.title), 1),
40
- t("div", A, [
41
- u(a.$slots, "default")
42
- ])
85
+ t("div", E, [
86
+ t("div", N, [
87
+ t("div", G, [
88
+ t("div", M, [
89
+ t("h3", {
90
+ id: o.titleId,
91
+ class: "text-lg font-medium leading-6"
92
+ }, s(n.title), 9, S),
93
+ t("div", j, [
94
+ y(l.$slots, "default")
95
+ ]),
96
+ n.confirm_text ? (_(), f("div", D, [
97
+ t("label", {
98
+ for: o.inputId,
99
+ class: "block mb-1 text-xs font-medium text-gray-600 dark:text-gray-300"
100
+ }, [
101
+ r(s(n.language?.type_to_confirm ?? "Type") + " ", 1),
102
+ t("code", K, s(n.confirm_text), 1),
103
+ r(" " + s(n.language?.to_confirm ?? "to confirm"), 1)
104
+ ], 8, F),
105
+ h(t("input", {
106
+ id: o.inputId,
107
+ ref: "confirmInput",
108
+ "onUpdate:modelValue": e[0] || (e[0] = (m) => o.typedText = m),
109
+ type: "text",
110
+ autocomplete: "off",
111
+ spellcheck: "false",
112
+ class: "gl-input-form",
113
+ onKeydown: e[1] || (e[1] = v(k((...m) => i.confirmAction && i.confirmAction(...m), ["prevent"]), ["enter"]))
114
+ }, null, 40, z), [
115
+ [w, o.typedText]
116
+ ])
117
+ ])) : u("", !0)
43
118
  ])
44
119
  ])
45
120
  ]),
46
- t("div", N, [
47
- l(s, {
48
- onClick: n.confirmAction,
121
+ t("div", U, [
122
+ x(a, {
123
+ onClick: i.confirmAction,
49
124
  tag: "button",
50
- button_type: "red"
125
+ button_type: "red",
126
+ is_disabled: !i.canConfirm
51
127
  }, {
52
- default: r(() => [
53
- d(i(o.button_text), 1)
128
+ default: p(() => [
129
+ r(s(n.button_text), 1)
54
130
  ]),
55
131
  _: 1
56
- }, 8, ["onClick"]),
57
- l(s, {
58
- onClick: n.cancelAction,
132
+ }, 8, ["onClick", "is_disabled"]),
133
+ x(a, {
134
+ ref: "cancelButton",
135
+ onClick: i.cancelAction,
59
136
  tag: "button",
60
137
  button_type: "light"
61
138
  }, {
62
- default: r(() => e[0] || (e[0] = [
63
- d(" Cancel ")
139
+ default: p(() => e[2] || (e[2] = [
140
+ r(" Cancel ")
64
141
  ])),
65
142
  _: 1
66
143
  }, 8, ["onClick"])
67
144
  ])
68
- ])
145
+ ], 512)
69
146
  ])
70
- ])) : _("", !0);
147
+ ], 8, O)) : u("", !0);
71
148
  }
72
- const j = /* @__PURE__ */ g(x, [["render", V]]);
149
+ const Q = /* @__PURE__ */ A(B, [["render", q]]);
73
150
  export {
74
- j as default
151
+ Q as default
75
152
  };
@@ -1,5 +1,5 @@
1
1
  import L from "../../../node_modules/vue3-print-nb/dist/vue3-print-nb.es.js";
2
- import { resolveComponent as C, resolveDirective as E, createElementBlock as i, openBlock as d, withDirectives as D, createElementVNode as t, createCommentVNode as T, createVNode as w, vModelText as O, withCtx as j, createTextVNode as c, Fragment as m, renderList as v, withModifiers as k, toDisplayString as f, normalizeClass as M } from "vue";
2
+ import { resolveComponent as C, resolveDirective as E, createElementBlock as l, openBlock as i, withDirectives as D, createElementVNode as r, createCommentVNode as T, createVNode as w, vModelText as O, withCtx as j, createTextVNode as u, Fragment as m, renderList as k, withModifiers as v, toDisplayString as p, normalizeClass as M } from "vue";
3
3
  /* empty css */
4
4
  import A from "../../../_virtual/_plugin-vue_export-helper.js";
5
5
  const H = {
@@ -12,15 +12,21 @@ const H = {
12
12
  required: !1,
13
13
  default: () => {
14
14
  }
15
+ },
16
+ // Render cell values as plain text instead of HTML. Off by default for
17
+ // backward compatibility; turn it on for any table showing untrusted text.
18
+ escape_html: {
19
+ type: Boolean,
20
+ default: !1
15
21
  }
16
22
  },
17
23
  data() {
18
- const r = this.generateRandomString(6);
24
+ const t = this.generateRandomString(6);
19
25
  return {
20
26
  isLoadinPrint: !1,
21
- Random_string: r,
27
+ Random_string: t,
22
28
  printObj: {
23
- id: "print_" + r,
29
+ id: "print_" + t,
24
30
  popTitle: "",
25
31
  // preview:true,
26
32
  beforeOpenCallback(e) {
@@ -45,47 +51,47 @@ const H = {
45
51
  },
46
52
  computed: {
47
53
  filteredData() {
48
- const r = this.search.toLowerCase();
49
- return this.sortData(this.data).filter((o) => Object.values(o).some(
50
- (l) => l != null && l.toString().toLowerCase().includes(r)
54
+ const t = this.search.toLowerCase();
55
+ return this.sortData(this.data).filter((n) => Object.values(n).some(
56
+ (d) => d != null && d.toString().toLowerCase().includes(t)
51
57
  ));
52
58
  },
53
59
  totalPages() {
54
60
  return Math.ceil(this.filteredData.length / this.itemsPerPage);
55
61
  },
56
62
  paginatedData() {
57
- const r = (this.currentPage - 1) * this.itemsPerPage, e = r + this.itemsPerPage;
58
- return this.filteredData.slice(r, e);
63
+ const t = (this.currentPage - 1) * this.itemsPerPage, e = t + this.itemsPerPage;
64
+ return this.filteredData.slice(t, e);
59
65
  },
60
66
  displayedPageNumbers() {
61
- let r = Math.max(
67
+ let t = Math.max(
62
68
  this.currentPage - Math.floor(this.maxDisplayedPages / 2),
63
69
  1
64
- ), e = r + this.maxDisplayedPages - 1;
65
- return e > this.totalPages && (e = this.totalPages, r = Math.max(e - this.maxDisplayedPages + 1, 1)), Array.from(
66
- { length: e - r + 1 },
67
- (o, l) => r + l
70
+ ), e = t + this.maxDisplayedPages - 1;
71
+ return e > this.totalPages && (e = this.totalPages, t = Math.max(e - this.maxDisplayedPages + 1, 1)), Array.from(
72
+ { length: e - t + 1 },
73
+ (n, d) => t + d
68
74
  );
69
75
  },
70
76
  firstItemIndex() {
71
77
  return this.itemsPerPage * (this.currentPage - 1) + 1;
72
78
  },
73
79
  lastItemIndex() {
74
- const r = this.itemsPerPage * this.currentPage;
75
- return r > this.filteredData.length ? this.filteredData.length : r;
80
+ const t = this.itemsPerPage * this.currentPage;
81
+ return t > this.filteredData.length ? this.filteredData.length : t;
76
82
  }
77
83
  },
78
84
  methods: {
79
85
  async exportToExcel() {
80
- const r = await import("xlsx"), e = r.default || r, o = document.querySelector("#table" + this.Random_string), l = Array.from(o.querySelectorAll("thead th")).map((g) => g.innerText), a = ["", ...["action"]], x = l.map((g, b) => a.includes(g) ? b : -1).filter((g) => g !== -1), y = Array.from(o.querySelectorAll("tbody tr")).map((g) => Array.from(g.querySelectorAll("td")).map((_) => _.innerText).filter((_, S) => !x.includes(S))), s = [l.filter((g, b) => !x.includes(b)), ...y], h = e.utils.aoa_to_sheet(s), u = e.utils.book_new();
81
- e.utils.book_append_sheet(u, h, "Sheet1"), e.writeFile(u, "exported-file.xlsx");
86
+ const t = await import("xlsx"), e = t.default || t, n = document.querySelector("#table" + this.Random_string), d = Array.from(n.querySelectorAll("thead th")).map((g) => g.innerText), a = ["", ...["action"]], x = d.map((g, b) => a.includes(g) ? b : -1).filter((g) => g !== -1), y = Array.from(n.querySelectorAll("tbody tr")).map((g) => Array.from(g.querySelectorAll("td")).map((_) => _.innerText).filter((_, S) => !x.includes(S))), s = [d.filter((g, b) => !x.includes(b)), ...y], h = e.utils.aoa_to_sheet(s), f = e.utils.book_new();
87
+ e.utils.book_append_sheet(f, h, "Sheet1"), e.writeFile(f, "exported-file.xlsx");
82
88
  },
83
- generateRandomString(r) {
89
+ generateRandomString(t) {
84
90
  let e = "";
85
- const o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", l = o.length;
86
- for (let n = 0; n < r; n++)
87
- e += o.charAt(
88
- Math.floor(Math.random() * l)
91
+ const n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", d = n.length;
92
+ for (let o = 0; o < t; o++)
93
+ e += n.charAt(
94
+ Math.floor(Math.random() * d)
89
95
  );
90
96
  return e;
91
97
  },
@@ -94,17 +100,17 @@ const H = {
94
100
  this.$refs.hiddenPrintBtn?.click(), this.isLoadinPrint = !1;
95
101
  });
96
102
  },
97
- handleItemsPerPageChange(r) {
98
- this.itemsPerPage = r;
103
+ handleItemsPerPageChange(t) {
104
+ this.itemsPerPage = t;
99
105
  },
100
- goToPage(r) {
101
- r >= 1 && r <= this.totalPages && (this.currentPage = r);
106
+ goToPage(t) {
107
+ t >= 1 && t <= this.totalPages && (this.currentPage = t);
102
108
  },
103
- sort(r) {
104
- r === this.sortKey ? this.sortOrder *= -1 : (this.sortKey = r, this.sortOrder = 1);
109
+ sort(t) {
110
+ t === this.sortKey ? this.sortOrder *= -1 : (this.sortKey = t, this.sortOrder = 1);
105
111
  },
106
- sortData(r) {
107
- return this.sortKey ? r.slice().sort((e, o) => (e[this.sortKey] < o[this.sortKey] ? -1 : 1) * this.sortOrder) : r;
112
+ sortData(t) {
113
+ return this.sortKey ? t.slice().sort((e, n) => (e[this.sortKey] < n[this.sortKey] ? -1 : 1) * this.sortOrder) : t;
108
114
  },
109
115
  previousPage() {
110
116
  this.currentPage > 1 && this.currentPage--;
@@ -118,38 +124,41 @@ const H = {
118
124
  lastPage() {
119
125
  this.currentPage = this.totalPages;
120
126
  },
121
- goToPage(r) {
122
- r >= 1 && r <= this.totalPages && (this.currentPage = r);
127
+ goToPage(t) {
128
+ t >= 1 && t <= this.totalPages && (this.currentPage = t);
123
129
  }
124
130
  },
125
131
  directives: {
126
132
  print: L
127
133
  }
128
- }, I = { class: "p-0" }, V = {
134
+ }, V = { class: "p-0" }, B = {
129
135
  ref: "hiddenPrintBtn",
130
136
  style: { display: "none" }
131
- }, B = { class: "flex flex-col flex-wrap gap-4 pb-4 xl:flex-row xl:items-center xl:justify-between" }, K = { class: "flex items-center gap-2" }, q = { class: "mt-[9px]" }, R = { class: "relative" }, N = { class: "flex flex-wrap mb-3" }, F = ["id"], Z = ["id"], z = { class: "hidden text-sm font-normal text-center text-gray-600 print:table-header-group! lg:table-header-group dark:border-gray-600 bg-gray-50 dark:bg-gray-800 dark:text-gray-400 print:border-[1px]!" }, U = ["onClick"], X = { class: "inline-flex items-center justify-center gap-1" }, G = {
137
+ }, I = { class: "flex flex-col flex-wrap gap-4 pb-4 xl:flex-row xl:items-center xl:justify-between" }, K = { class: "flex items-center gap-2" }, q = { class: "mt-[9px]" }, R = { class: "relative" }, N = { class: "flex flex-wrap mb-3" }, F = ["id"], Z = ["id"], z = { class: "hidden text-sm font-normal text-center text-gray-600 print:table-header-group! lg:table-header-group dark:border-gray-600 bg-gray-50 dark:bg-gray-800 dark:text-gray-400 print:border-[1px]!" }, U = ["onClick"], X = { class: "inline-flex items-center justify-center gap-1" }, G = {
132
138
  key: 0,
133
139
  class: "print:hidden!"
134
- }, W = { class: "bg-white dark:bg-gray-900" }, J = ["data-label"], Q = ["innerHTML"], Y = {
140
+ }, W = { class: "bg-white dark:bg-gray-900" }, J = ["data-label"], Q = {
141
+ key: 0,
142
+ class: "text-pretty"
143
+ }, Y = ["innerHTML"], $ = {
135
144
  key: 0,
136
145
  class: "flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800"
137
- }, $ = { class: "flex flex-col items-center w-full gap-2" }, ee = { class: "text-sm text-gray-700 dark:text-gray-400" }, te = { class: "font-semibold text-gray-900 dark:text-white" }, re = { class: "font-semibold text-gray-900 dark:text-white" }, se = { class: "font-semibold text-gray-900 dark:text-white" }, ae = { "aria-label": "Page navigation" }, ne = { class: "flex items-center h-8 -space-x-px text-sm" }, oe = ["onClick", "aria-current"];
138
- function le(r, e, o, l, n, a) {
146
+ }, ee = { class: "flex flex-col items-center w-full gap-2" }, te = { class: "text-sm text-gray-700 dark:text-gray-400" }, re = { class: "font-semibold text-gray-900 dark:text-white" }, se = { class: "font-semibold text-gray-900 dark:text-white" }, ae = { class: "font-semibold text-gray-900 dark:text-white" }, ne = { "aria-label": "Page navigation" }, oe = { class: "flex items-center h-8 -space-x-px text-sm" }, le = ["onClick", "aria-current"];
147
+ function ie(t, e, n, d, o, a) {
139
148
  const x = C("dropdown"), y = C("gl-button"), P = E("print");
140
- return d(), i("div", I, [
141
- D(t("button", V, null, 512), [
142
- [P, n.printObj]
149
+ return i(), l("div", V, [
150
+ D(r("button", B, null, 512), [
151
+ [P, o.printObj]
143
152
  ]),
144
- t("div", B, [
145
- t("div", K, [
146
- e[4] || (e[4] = t("span", { class: "font-medium" }, " Show ", -1)),
147
- t("div", q, [
153
+ r("div", I, [
154
+ r("div", K, [
155
+ e[4] || (e[4] = r("span", { class: "font-medium" }, " Show ", -1)),
156
+ r("div", q, [
148
157
  w(x, {
149
158
  has_cancel: !1,
150
- options: n.showNoOfEntries,
151
- modelValue: n.itemsPerPage,
152
- "onUpdate:modelValue": e[0] || (e[0] = (s) => n.itemsPerPage = s),
159
+ options: o.showNoOfEntries,
160
+ modelValue: o.itemsPerPage,
161
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => o.itemsPerPage = s),
153
162
  is_required: !1,
154
163
  field_name: "NoOfEntries",
155
164
  label_name: "",
@@ -158,29 +167,29 @@ function le(r, e, o, l, n, a) {
158
167
  placeholder: "Please select an option"
159
168
  }, null, 8, ["options", "modelValue"])
160
169
  ]),
161
- e[5] || (e[5] = t("span", { class: "font-medium" }, " Entries ", -1))
170
+ e[5] || (e[5] = r("span", { class: "font-medium" }, " Entries ", -1))
162
171
  ]),
163
- e[7] || (e[7] = t("label", {
172
+ e[7] || (e[7] = r("label", {
164
173
  for: "table-search",
165
174
  class: "sr-only"
166
175
  }, "Search", -1)),
167
- t("div", R, [
168
- e[6] || (e[6] = t("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, null, -1)),
169
- D(t("input", {
176
+ r("div", R, [
177
+ e[6] || (e[6] = r("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, null, -1)),
178
+ D(r("input", {
170
179
  type: "text",
171
- "onUpdate:modelValue": e[1] || (e[1] = (s) => n.search = s),
180
+ "onUpdate:modelValue": e[1] || (e[1] = (s) => o.search = s),
172
181
  class: "gl-input-form",
173
182
  placeholder: "Search ..."
174
183
  }, null, 512), [
175
- [O, n.search]
184
+ [O, o.search]
176
185
  ])
177
186
  ])
178
187
  ]),
179
- t("div", N, [
188
+ r("div", N, [
180
189
  w(y, {
181
190
  onClick: a.delayedPrint,
182
191
  tag: "button",
183
- is_loading: r.isLoadingPrint,
192
+ is_loading: t.isLoadingPrint,
184
193
  button_type: "light",
185
194
  has_border_reduced: !1,
186
195
  classes: "rounded-s-lg",
@@ -189,7 +198,7 @@ function le(r, e, o, l, n, a) {
189
198
  </svg>`
190
199
  }, {
191
200
  default: j(() => e[8] || (e[8] = [
192
- c(" Print ")
201
+ u(" Print ")
193
202
  ])),
194
203
  _: 1
195
204
  }, 8, ["onClick", "is_loading"]),
@@ -205,37 +214,37 @@ function le(r, e, o, l, n, a) {
205
214
  `
206
215
  }, {
207
216
  default: j(() => e[9] || (e[9] = [
208
- c(" Excel ")
217
+ u(" Excel ")
209
218
  ])),
210
219
  _: 1
211
220
  }, 8, ["onClick"])
212
221
  ]),
213
- t("div", {
214
- id: "print_" + n.Random_string,
222
+ r("div", {
223
+ id: "print_" + o.Random_string,
215
224
  class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"
216
225
  }, [
217
- t("table", {
218
- id: "table" + n.Random_string,
226
+ r("table", {
227
+ id: "table" + o.Random_string,
219
228
  class: "w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse print:border-collapse! border-spacing-y-5 lg:border-spacing-y-0 print:border-spacing-y-0! dark:border-gray-800 dark:bg-gray-900"
220
229
  }, [
221
- t("thead", z, [
222
- t("tr", null, [
223
- (d(!0), i(m, null, v(o.columns, (s, h) => (d(), i("th", {
230
+ r("thead", z, [
231
+ r("tr", null, [
232
+ (i(!0), l(m, null, k(n.columns, (s, h) => (i(), l("th", {
224
233
  key: h,
225
- onClick: k((u) => a.sort(s), ["prevent"]),
234
+ onClick: v((f) => a.sort(s), ["prevent"]),
226
235
  class: "w-full px-4 py-2 lg:w-2/12 print:w-2/12! print:border!"
227
236
  }, [
228
- t("div", X, [
229
- t("span", null, f(s), 1),
230
- n.sortKey === s ? (d(), i("span", G, e[10] || (e[10] = [
231
- t("svg", {
237
+ r("div", X, [
238
+ r("span", null, p(s), 1),
239
+ o.sortKey === s ? (i(), l("span", G, e[10] || (e[10] = [
240
+ r("svg", {
232
241
  class: "w-4 h-4",
233
242
  "aria-hidden": "true",
234
243
  xmlns: "http://www.w3.org/2000/svg",
235
244
  fill: "none",
236
245
  viewBox: "0 0 24 24"
237
246
  }, [
238
- t("path", {
247
+ r("path", {
239
248
  stroke: "currentColor",
240
249
  "stroke-linecap": "round",
241
250
  "stroke-linejoin": "round",
@@ -248,56 +257,57 @@ function le(r, e, o, l, n, a) {
248
257
  ], 8, U))), 128))
249
258
  ])
250
259
  ]),
251
- t("tbody", W, [
252
- (d(!0), i(m, null, v(a.paginatedData, (s, h) => (d(), i("tr", {
260
+ r("tbody", W, [
261
+ (i(!0), l(m, null, k(a.paginatedData, (s, h) => (i(), l("tr", {
253
262
  key: h,
254
263
  class: "text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"
255
264
  }, [
256
- (d(!0), i(m, null, v(o.columns, (u, p) => (d(), i("td", {
257
- key: p,
258
- "data-label": u,
265
+ (i(!0), l(m, null, k(n.columns, (f, c) => (i(), l("td", {
266
+ key: c,
267
+ "data-label": f,
259
268
  class: M(["text-pretty before:content-[attr(data-label)] before:font-bold dark:before:text-gray-400 lg:before:content-[''] print:before:content-['']! flex flex-col justify-between gap-2 lg:table-cell print:table-cell! py-4 px-5 lg:py-3 lg:px-4 print:py-3! print:px-4! border-[1px]! dark:border-gray-700", {
260
- "rounded-t-lg lg:rounded-t-none!": p === 0,
261
- "rounded-b-lg lg:rounded-b-none!": p === o.columns.length - 1
269
+ "rounded-t-lg lg:rounded-t-none!": c === 0,
270
+ "rounded-b-lg lg:rounded-b-none!": c === n.columns.length - 1
262
271
  }])
263
272
  }, [
264
- t("p", {
273
+ n.escape_html ? (i(), l("p", Q, p(s[c]), 1)) : (i(), l("p", {
274
+ key: 1,
265
275
  class: "text-pretty",
266
- innerHTML: s[p]
267
- }, null, 8, Q)
276
+ innerHTML: s[c]
277
+ }, null, 8, Y))
268
278
  ], 10, J))), 128))
269
279
  ]))), 128))
270
280
  ])
271
281
  ], 8, Z)
272
282
  ], 8, F),
273
- a.paginatedData.length > 0 ? (d(), i("div", Y, [
274
- t("div", $, [
275
- t("p", ee, [
276
- e[11] || (e[11] = c(" Showing ")),
277
- t("span", te, f(a.firstItemIndex), 1),
278
- e[12] || (e[12] = c(" to ")),
279
- t("span", re, f(a.lastItemIndex), 1),
280
- e[13] || (e[13] = c(" of ")),
281
- t("span", se, f(a.filteredData.length), 1),
282
- e[14] || (e[14] = c(" entries "))
283
+ a.paginatedData.length > 0 ? (i(), l("div", $, [
284
+ r("div", ee, [
285
+ r("p", te, [
286
+ e[11] || (e[11] = u(" Showing ")),
287
+ r("span", re, p(a.firstItemIndex), 1),
288
+ e[12] || (e[12] = u(" to ")),
289
+ r("span", se, p(a.lastItemIndex), 1),
290
+ e[13] || (e[13] = u(" of ")),
291
+ r("span", ae, p(a.filteredData.length), 1),
292
+ e[14] || (e[14] = u(" entries "))
283
293
  ]),
284
- t("nav", ae, [
285
- t("ul", ne, [
286
- t("li", null, [
287
- t("a", {
294
+ r("nav", ne, [
295
+ r("ul", oe, [
296
+ r("li", null, [
297
+ r("a", {
288
298
  href: "#",
289
- onClick: e[2] || (e[2] = k((...s) => a.previousPage && a.previousPage(...s), ["prevent"])),
299
+ onClick: e[2] || (e[2] = v((...s) => a.previousPage && a.previousPage(...s), ["prevent"])),
290
300
  class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
291
301
  }, e[15] || (e[15] = [
292
- t("span", { class: "sr-only" }, "Previous", -1),
293
- t("svg", {
302
+ r("span", { class: "sr-only" }, "Previous", -1),
303
+ r("svg", {
294
304
  class: "w-2.5 h-2.5 rtl:rotate-180",
295
305
  "aria-hidden": "true",
296
306
  xmlns: "http://www.w3.org/2000/svg",
297
307
  fill: "none",
298
308
  viewBox: "0 0 6 10"
299
309
  }, [
300
- t("path", {
310
+ r("path", {
301
311
  stroke: "currentColor",
302
312
  "stroke-linecap": "round",
303
313
  "stroke-linejoin": "round",
@@ -307,29 +317,29 @@ function le(r, e, o, l, n, a) {
307
317
  ], -1)
308
318
  ]))
309
319
  ]),
310
- (d(!0), i(m, null, v(a.displayedPageNumbers, (s) => (d(), i("li", { key: s }, [
311
- t("a", {
320
+ (i(!0), l(m, null, k(a.displayedPageNumbers, (s) => (i(), l("li", { key: s }, [
321
+ r("a", {
312
322
  href: "#",
313
- onClick: k((h) => a.goToPage(s), ["prevent"]),
314
- class: M(n.currentPage === s ? "z-10 flex items-center justify-center h-8 px-3 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white" : "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"),
315
- "aria-current": n.currentPage === s ? "page" : void 0
316
- }, f(s), 11, oe)
323
+ onClick: v((h) => a.goToPage(s), ["prevent"]),
324
+ class: M(o.currentPage === s ? "z-10 flex items-center justify-center h-8 px-3 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white" : "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"),
325
+ "aria-current": o.currentPage === s ? "page" : void 0
326
+ }, p(s), 11, le)
317
327
  ]))), 128)),
318
- t("li", null, [
319
- t("a", {
328
+ r("li", null, [
329
+ r("a", {
320
330
  href: "#",
321
- onClick: e[3] || (e[3] = k((...s) => a.nextPage && a.nextPage(...s), ["prevent"])),
331
+ onClick: e[3] || (e[3] = v((...s) => a.nextPage && a.nextPage(...s), ["prevent"])),
322
332
  class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
323
333
  }, e[16] || (e[16] = [
324
- t("span", { class: "sr-only" }, "Next", -1),
325
- t("svg", {
334
+ r("span", { class: "sr-only" }, "Next", -1),
335
+ r("svg", {
326
336
  class: "w-2.5 h-2.5 rtl:rotate-180",
327
337
  "aria-hidden": "true",
328
338
  xmlns: "http://www.w3.org/2000/svg",
329
339
  fill: "none",
330
340
  viewBox: "0 0 6 10"
331
341
  }, [
332
- t("path", {
342
+ r("path", {
333
343
  stroke: "currentColor",
334
344
  "stroke-linecap": "round",
335
345
  "stroke-linejoin": "round",
@@ -345,7 +355,7 @@ function le(r, e, o, l, n, a) {
345
355
  ])) : T("", !0)
346
356
  ]);
347
357
  }
348
- const ce = /* @__PURE__ */ A(H, [["render", le], ["__scopeId", "data-v-d5889149"]]);
358
+ const ue = /* @__PURE__ */ A(H, [["render", ie], ["__scopeId", "data-v-fe0a5c64"]]);
349
359
  export {
350
- ce as default
360
+ ue as default
351
361
  };