golden-logic-ui 1.3.32 → 1.3.34

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,5 +1,5 @@
1
1
  import M from "../../../node_modules/vue3-print-nb/dist/vue3-print-nb.es.js";
2
- import { resolveComponent as D, resolveDirective as E, createElementBlock as g, openBlock as d, withDirectives as j, createElementVNode as e, createCommentVNode as v, createVNode as _, vModelText as S, withCtx as L, createTextVNode as y, Fragment as b, renderList as w, toDisplayString as h, normalizeClass as k, createBlock as I, resolveDynamicComponent as O, withModifiers as P } from "vue";
2
+ import { resolveComponent as D, resolveDirective as E, createElementBlock as g, openBlock as d, withDirectives as j, createElementVNode as e, createCommentVNode as v, toDisplayString as c, createVNode as k, vModelText as S, withCtx as L, createTextVNode as y, Fragment as b, renderList as w, normalizeClass as _, createBlock as I, resolveDynamicComponent as O, withModifiers as P } from "vue";
3
3
  /* empty css */
4
4
  import B from "../../../_virtual/_plugin-vue_export-helper.js";
5
5
  const H = {
@@ -61,8 +61,8 @@ const H = {
61
61
  },
62
62
  filteredData() {
63
63
  const t = this.search.toLowerCase(), r = this.sortData(this.itemLists);
64
- return t ? r.filter((l) => this.columns.some((c) => {
65
- const n = l[c.field_name];
64
+ return t ? r.filter((s) => this.columns.some((h) => {
65
+ const n = s[h.field_name];
66
66
  return n != null && String(n).toLowerCase().includes(t);
67
67
  })) : r;
68
68
  },
@@ -80,7 +80,7 @@ const H = {
80
80
  ), r = t + this.maxDisplayedPages - 1;
81
81
  return r > this.totalPages && (r = this.totalPages, t = Math.max(r - this.maxDisplayedPages + 1, 1)), Array.from(
82
82
  { length: r - t + 1 },
83
- (l, c) => t + c
83
+ (s, h) => t + h
84
84
  );
85
85
  },
86
86
  firstItemIndex() {
@@ -93,15 +93,15 @@ const H = {
93
93
  },
94
94
  methods: {
95
95
  async exportToExcel() {
96
- const t = await import("xlsx"), r = t.default || t, l = document.querySelector("#table" + this.Random_string), c = Array.from(l.querySelectorAll("thead th")).map((o) => o.innerText), s = ["", ...["action"]], p = c.map((o, f) => s.includes(o) ? f : -1).filter((o) => o !== -1), x = Array.from(l.querySelectorAll("tbody tr")).map((o) => Array.from(o.querySelectorAll("td")).map((C) => C.innerText).filter((C, T) => !p.includes(T))), a = [c.filter((o, f) => !p.includes(f)), ...x], u = r.utils.aoa_to_sheet(a), i = r.utils.book_new();
96
+ const t = await import("xlsx"), r = t.default || t, s = document.querySelector("#table" + this.Random_string), h = Array.from(s.querySelectorAll("thead th")).map((o) => o.innerText), l = ["", ...["action"]], x = h.map((o, f) => l.includes(o) ? f : -1).filter((o) => o !== -1), m = Array.from(s.querySelectorAll("tbody tr")).map((o) => Array.from(o.querySelectorAll("td")).map((C) => C.innerText).filter((C, T) => !x.includes(T))), a = [h.filter((o, f) => !x.includes(f)), ...m], u = r.utils.aoa_to_sheet(a), i = r.utils.book_new();
97
97
  r.utils.book_append_sheet(i, u, "Sheet1"), r.writeFile(i, "exported-file.xlsx");
98
98
  },
99
99
  generateRandomString(t) {
100
100
  let r = "";
101
- const l = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", c = l.length;
101
+ const s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", h = s.length;
102
102
  for (let n = 0; n < t; n++)
103
- r += l.charAt(
104
- Math.floor(Math.random() * c)
103
+ r += s.charAt(
104
+ Math.floor(Math.random() * h)
105
105
  );
106
106
  return r;
107
107
  },
@@ -121,8 +121,8 @@ const H = {
121
121
  },
122
122
  // Every cell event, with whatever the cell sent along. Cells can also emit
123
123
  // their own named actions: emit('cellAction', 'restart', payload).
124
- cellAction(t, r, l, c) {
125
- this.$emit("cell-action", { action: t, row: r, payload: l, field: c?.field_name });
124
+ cellAction(t, r, s, h) {
125
+ this.$emit("cell-action", { action: t, row: r, payload: s, field: h?.field_name });
126
126
  },
127
127
  isEscapedColumn(t) {
128
128
  return t?.html === !1 ? !0 : t?.html === !0 ? !1 : this.escape_html;
@@ -140,7 +140,7 @@ const H = {
140
140
  t === this.sortKey ? this.sortOrder *= -1 : (this.sortKey = t, this.sortOrder = 1);
141
141
  },
142
142
  sortData(t) {
143
- return this.sortKey ? t.slice().sort((r, l) => (r[this.sortKey] < l[this.sortKey] ? -1 : 1) * this.sortOrder) : t;
143
+ return this.sortKey ? t.slice().sort((r, s) => (r[this.sortKey] < s[this.sortKey] ? -1 : 1) * this.sortOrder) : t;
144
144
  },
145
145
  previousPage() {
146
146
  this.currentPage > 1 && this.currentPage--;
@@ -173,27 +173,28 @@ const H = {
173
173
  }, V = { class: "p-0" }, K = {
174
174
  ref: "hiddenPrintBtn",
175
175
  style: { display: "none" }
176
- }, q = { class: "flex flex-col flex-wrap gap-4 pb-4 xl:flex-row xl:items-center xl:justify-between" }, R = { class: "flex items-center gap-2" }, G = { class: "mt-[9px]" }, N = { class: "relative" }, F = { class: "flex flex-wrap mb-3" }, Z = ["id"], z = ["id"], U = { 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]!" }, X = ["onClick"], W = { class: "inline-flex items-center justify-center gap-1" }, J = {
176
+ }, q = { class: "flex flex-col flex-wrap gap-4 pb-4 xl:flex-row xl:items-center xl:justify-between" }, R = { class: "flex items-center gap-2" }, G = { class: "font-medium" }, N = { class: "mt-[9px]" }, F = { class: "font-medium" }, Z = { class: "relative" }, z = ["placeholder"], U = { class: "flex flex-wrap mb-3" }, X = ["id"], W = ["id"], J = { 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]!" }, Q = ["onClick"], Y = { class: "inline-flex items-center justify-center gap-1" }, $ = {
177
177
  key: 0,
178
178
  class: "print:hidden!"
179
- }, Q = { class: "bg-white dark:bg-gray-900" }, Y = { key: 0 }, $ = ["colspan"], ee = ["data-label"], te = {
179
+ }, ee = { class: "bg-white dark:bg-gray-900" }, te = { key: 0 }, re = ["colspan"], ae = ["data-label"], se = {
180
180
  key: 0,
181
181
  class: "text-pretty"
182
- }, re = ["innerHTML"], ae = {
182
+ }, le = ["innerHTML"], ne = {
183
183
  key: 0,
184
184
  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"
185
- }, se = { class: "flex flex-col items-center w-full gap-2" }, le = { class: "text-sm text-gray-700 dark:text-gray-400" }, ne = { class: "font-semibold text-gray-900 dark:text-white" }, ie = { class: "font-semibold text-gray-900 dark:text-white" }, oe = { class: "font-semibold text-gray-900 dark:text-white" }, de = { "aria-label": "Page navigation" }, ge = { class: "flex items-center h-8 -space-x-px text-sm" }, ce = ["onClick", "aria-current"];
186
- function he(t, r, l, c, n, s) {
187
- const p = D("dropdown"), x = D("gl-button"), A = E("print");
185
+ }, ie = { class: "flex flex-col items-center w-full gap-2" }, oe = { class: "text-sm text-gray-700 dark:text-gray-400" }, de = { class: "font-semibold text-gray-900 dark:text-white" }, ge = { class: "font-semibold text-gray-900 dark:text-white" }, ce = { class: "font-semibold text-gray-900 dark:text-white" }, he = { "aria-label": "Page navigation" }, ue = { class: "flex items-center h-8 -space-x-px text-sm" }, fe = ["onClick", "aria-current"];
186
+ function ye(t, r, s, h, n, l) {
187
+ const x = D("dropdown"), m = D("gl-button"), A = E("print");
188
188
  return d(), g("div", V, [
189
189
  j(e("button", K, null, 512), [
190
190
  [A, n.printObj]
191
191
  ]),
192
192
  e("div", q, [
193
193
  e("div", R, [
194
- r[4] || (r[4] = e("span", { class: "font-medium" }, " Show ", -1)),
195
- e("div", G, [
196
- _(p, {
194
+ e("span", G, c(s.language?.show ?? "Show"), 1),
195
+ e("div", N, [
196
+ k(x, {
197
+ language: s.language,
197
198
  has_cancel: !1,
198
199
  options: n.showNoOfEntries,
199
200
  modelValue: n.itemsPerPage,
@@ -203,30 +204,30 @@ function he(t, r, l, c, n, s) {
203
204
  label_name: "",
204
205
  default_value: 10,
205
206
  show: !1,
206
- placeholder: "Please select an option"
207
- }, null, 8, ["options", "modelValue"])
207
+ placeholder: s.language?.please_select_an_option ?? "Please select an option"
208
+ }, null, 8, ["language", "options", "modelValue", "placeholder"])
208
209
  ]),
209
- r[5] || (r[5] = e("span", { class: "font-medium" }, " Entries ", -1))
210
+ e("span", F, c(s.language?.entries ?? "Entries"), 1)
210
211
  ]),
211
- r[7] || (r[7] = e("label", {
212
+ r[5] || (r[5] = e("label", {
212
213
  for: "table-search",
213
214
  class: "sr-only"
214
215
  }, "Search", -1)),
215
- e("div", N, [
216
- r[6] || (r[6] = e("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)),
216
+ e("div", Z, [
217
+ r[4] || (r[4] = e("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)),
217
218
  j(e("input", {
218
219
  type: "text",
219
220
  "onUpdate:modelValue": r[1] || (r[1] = (a) => n.search = a),
220
221
  class: "gl-input-form",
221
- placeholder: "Search ..."
222
- }, null, 512), [
222
+ placeholder: s.language?.search ? s.language?.search + " ..." : "Search ..."
223
+ }, null, 8, z), [
223
224
  [S, n.search]
224
225
  ])
225
226
  ])
226
227
  ]),
227
- e("div", F, [
228
- _(x, {
229
- onClick: s.delayedPrint,
228
+ e("div", U, [
229
+ k(m, {
230
+ onClick: l.delayedPrint,
230
231
  tag: "button",
231
232
  is_loading: t.isLoadingPrint,
232
233
  button_type: "light",
@@ -236,13 +237,13 @@ function he(t, r, l, c, n, s) {
236
237
  <path stroke="currentColor" stroke-linejoin="round" stroke-width="2" d="M16.444 18H19a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h2.556M17 11V5a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v6h10ZM7 15h10v4a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4Z"/>
237
238
  </svg>`
238
239
  }, {
239
- default: L(() => r[8] || (r[8] = [
240
- y(" Print ")
241
- ])),
240
+ default: L(() => [
241
+ y(c(s.language?.print ?? "Print"), 1)
242
+ ]),
242
243
  _: 1
243
244
  }, 8, ["onClick", "is_loading"]),
244
- _(x, {
245
- onClick: s.exportToExcel,
245
+ k(m, {
246
+ onClick: l.exportToExcel,
246
247
  tag: "button",
247
248
  button_type: "light",
248
249
  has_border_reduced: !1,
@@ -252,9 +253,9 @@ function he(t, r, l, c, n, s) {
252
253
  </svg>
253
254
  `
254
255
  }, {
255
- default: L(() => r[9] || (r[9] = [
256
- y(" Excel ")
257
- ])),
256
+ default: L(() => [
257
+ y(c(s.language?.excel ?? "Excel"), 1)
258
+ ]),
258
259
  _: 1
259
260
  }, 8, ["onClick"])
260
261
  ]),
@@ -266,16 +267,16 @@ function he(t, r, l, c, n, s) {
266
267
  id: "table" + n.Random_string,
267
268
  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"
268
269
  }, [
269
- e("thead", U, [
270
+ e("thead", J, [
270
271
  e("tr", null, [
271
- (d(!0), g(b, null, w(l.columns, (a, u) => (d(), g("th", {
272
+ (d(!0), g(b, null, w(s.columns, (a, u) => (d(), g("th", {
272
273
  key: u,
273
- onClick: (i) => s.sort(a.field_name, a.sortable),
274
+ onClick: (i) => l.sort(a.field_name, a.sortable),
274
275
  class: "w-full px-4 py-2 lg:w-2/12 print:w-2/12! print:border!"
275
276
  }, [
276
- e("div", W, [
277
- e("span", null, h(a.field_label), 1),
278
- n.sortKey === a.field_name ? (d(), g("span", J, r[10] || (r[10] = [
277
+ e("div", Y, [
278
+ e("span", null, c(a.field_label), 1),
279
+ n.sortKey === a.field_name ? (d(), g("span", $, r[6] || (r[6] = [
279
280
  e("svg", {
280
281
  class: "w-4 h-4",
281
282
  "aria-hidden": "true",
@@ -293,14 +294,14 @@ function he(t, r, l, c, n, s) {
293
294
  ], -1)
294
295
  ]))) : v("", !0)
295
296
  ])
296
- ], 8, X))), 128))
297
+ ], 8, Q))), 128))
297
298
  ])
298
299
  ]),
299
- e("tbody", Q, [
300
- n.isLoading ? (d(), g("tr", Y, [
300
+ e("tbody", ee, [
301
+ n.isLoading ? (d(), g("tr", te, [
301
302
  e("td", {
302
- colspan: l.columns.length
303
- }, r[11] || (r[11] = [
303
+ colspan: s.columns.length
304
+ }, r[7] || (r[7] = [
304
305
  e("div", {
305
306
  role: "status",
306
307
  class: "p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded-sm shadow-sm animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700"
@@ -342,69 +343,69 @@ function he(t, r, l, c, n, s) {
342
343
  ]),
343
344
  e("span", { class: "sr-only" }, "Loading...")
344
345
  ], -1)
345
- ]), 8, $)
346
+ ]), 8, re)
346
347
  ])) : v("", !0),
347
- n.isLoading ? v("", !0) : (d(!0), g(b, { key: 1 }, w(s.paginatedData, (a, u) => (d(), g("tr", {
348
+ n.isLoading ? v("", !0) : (d(!0), g(b, { key: 1 }, w(l.paginatedData, (a, u) => (d(), g("tr", {
348
349
  key: u,
349
350
  class: "text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"
350
351
  }, [
351
- (d(!0), g(b, null, w(l.columns, (i, m) => (d(), g("td", {
352
- key: m,
352
+ (d(!0), g(b, null, w(s.columns, (i, p) => (d(), g("td", {
353
+ key: p,
353
354
  "data-label": i.field_label,
354
- class: k(["text-pretty before:content-[attr(data-label)] before:font-bold dark:before:text-gray-400 lg:before:content-[''] print:before:content-['']! flex flex-row flex-wrap items-center justify-between gap-x-4 gap-y-1 wrap-anywhere lg:wrap-normal lg:table-cell print:table-cell! py-2.5 px-4 lg:py-3 lg:px-4 print:py-3! print:px-4! border-[1px]! dark:border-gray-700", {
355
- "rounded-t-lg lg:rounded-t-none!": m === 0,
356
- "rounded-b-lg lg:rounded-b-none!": m === l.columns.length - 1
355
+ class: _(["text-pretty before:content-[attr(data-label)] before:font-bold dark:before:text-gray-400 lg:before:content-[''] print:before:content-['']! flex flex-row flex-wrap items-center justify-between gap-x-4 gap-y-1 wrap-anywhere lg:wrap-normal lg:table-cell print:table-cell! py-2.5 px-4 lg:py-3 lg:px-4 print:py-3! print:px-4! border-[1px]! dark:border-gray-700", {
356
+ "rounded-t-lg lg:rounded-t-none!": p === 0,
357
+ "rounded-b-lg lg:rounded-b-none!": p === s.columns.length - 1
357
358
  }])
358
359
  }, [
359
360
  e("div", {
360
- class: k([i.field_name === "action" ? "" : "overflow-auto", "td_overflow_auto max-h-40 max-w-100"])
361
+ class: _([i.field_name === "action" ? "" : "overflow-auto", "td_overflow_auto max-h-40 max-w-100"])
361
362
  }, [
362
- i.tdComp ? (d(), I(O(s.forDynCompIs(i.tdComp)), {
363
+ i.tdComp ? (d(), I(O(l.forDynCompIs(i.tdComp)), {
363
364
  key: 0,
364
365
  row: a,
365
366
  field: i.field_name,
366
- xprops: l.xprops,
367
+ xprops: s.xprops,
367
368
  tdProps: i.tdProps,
368
369
  onEditAction: (o) => {
369
- s.editAction(a), s.cellAction("editAction", a, o, i);
370
+ l.editAction(a), l.cellAction("editAction", a, o, i);
370
371
  },
371
372
  onGeneralAction: (o) => {
372
- s.generalAction(a), s.cellAction("generalAction", a, o, i);
373
+ l.generalAction(a), l.cellAction("generalAction", a, o, i);
373
374
  },
374
- onDeleteAction: (o) => s.cellAction("deleteAction", a, o, i),
375
- onCellAction: (o, f) => s.cellAction(o, a, f, i)
375
+ onDeleteAction: (o) => l.cellAction("deleteAction", a, o, i),
376
+ onCellAction: (o, f) => l.cellAction(o, a, f, i)
376
377
  }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction", "onDeleteAction", "onCellAction"])) : (d(), g(b, { key: 1 }, [
377
- s.isEscapedColumn(i) ? (d(), g("p", te, h(a[i.field_name]), 1)) : (d(), g("p", {
378
+ l.isEscapedColumn(i) ? (d(), g("p", se, c(a[i.field_name]), 1)) : (d(), g("p", {
378
379
  key: 1,
379
380
  class: "text-pretty",
380
381
  innerHTML: a[i.field_name]
381
- }, null, 8, re))
382
+ }, null, 8, le))
382
383
  ], 64))
383
384
  ], 2)
384
- ], 10, ee))), 128))
385
+ ], 10, ae))), 128))
385
386
  ]))), 128))
386
387
  ])
387
- ], 8, z)
388
- ], 8, Z),
389
- s.paginatedData.length > 0 ? (d(), g("div", ae, [
390
- e("div", se, [
391
- e("p", le, [
392
- y(h(l.language?.showing ?? "Showing") + " ", 1),
393
- e("span", ne, h(s.firstItemIndex), 1),
394
- y(" " + h(l.language?.to ?? "to") + " ", 1),
395
- e("span", ie, h(s.lastItemIndex), 1),
396
- y(" " + h(l.language?.of ?? "of") + " ", 1),
397
- e("span", oe, h(s.filteredData.length), 1),
398
- y(" " + h(l.language?.entries ?? "entries"), 1)
388
+ ], 8, W)
389
+ ], 8, X),
390
+ l.paginatedData.length > 0 ? (d(), g("div", ne, [
391
+ e("div", ie, [
392
+ e("p", oe, [
393
+ y(c(s.language?.showing ?? "Showing") + " ", 1),
394
+ e("span", de, c(l.firstItemIndex), 1),
395
+ y(" " + c(s.language?.to ?? "to") + " ", 1),
396
+ e("span", ge, c(l.lastItemIndex), 1),
397
+ y(" " + c(s.language?.of ?? "of") + " ", 1),
398
+ e("span", ce, c(l.filteredData.length), 1),
399
+ y(" " + c(s.language?.entries ?? "entries"), 1)
399
400
  ]),
400
- e("nav", de, [
401
- e("ul", ge, [
401
+ e("nav", he, [
402
+ e("ul", ue, [
402
403
  e("li", null, [
403
404
  e("a", {
404
405
  href: "#",
405
- onClick: r[2] || (r[2] = P((...a) => s.previousPage && s.previousPage(...a), ["prevent"])),
406
+ onClick: r[2] || (r[2] = P((...a) => l.previousPage && l.previousPage(...a), ["prevent"])),
406
407
  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"
407
- }, r[12] || (r[12] = [
408
+ }, r[8] || (r[8] = [
408
409
  e("span", { class: "sr-only" }, "Previous", -1),
409
410
  e("svg", {
410
411
  class: "w-2.5 h-2.5 rtl:rotate-180",
@@ -423,23 +424,23 @@ function he(t, r, l, c, n, s) {
423
424
  ], -1)
424
425
  ]))
425
426
  ]),
426
- (d(!0), g(b, null, w(s.displayedPageNumbers, (a) => (d(), g("li", {
427
+ (d(!0), g(b, null, w(l.displayedPageNumbers, (a) => (d(), g("li", {
427
428
  key: a,
428
- class: k(Math.abs(a - n.currentPage) > 2 ? "hidden sm:block" : "")
429
+ class: _(Math.abs(a - n.currentPage) > 2 ? "hidden sm:block" : "")
429
430
  }, [
430
431
  e("a", {
431
432
  href: "#",
432
- onClick: P((u) => s.goToPage(a), ["prevent"]),
433
- class: k(n.currentPage === a ? "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"),
433
+ onClick: P((u) => l.goToPage(a), ["prevent"]),
434
+ class: _(n.currentPage === a ? "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"),
434
435
  "aria-current": n.currentPage === a ? "page" : void 0
435
- }, h(a), 11, ce)
436
+ }, c(a), 11, fe)
436
437
  ], 2))), 128)),
437
438
  e("li", null, [
438
439
  e("a", {
439
440
  href: "#",
440
- onClick: r[3] || (r[3] = P((...a) => s.nextPage && s.nextPage(...a), ["prevent"])),
441
+ onClick: r[3] || (r[3] = P((...a) => l.nextPage && l.nextPage(...a), ["prevent"])),
441
442
  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"
442
- }, r[13] || (r[13] = [
443
+ }, r[9] || (r[9] = [
443
444
  e("span", { class: "sr-only" }, "Next", -1),
444
445
  e("svg", {
445
446
  class: "w-2.5 h-2.5 rtl:rotate-180",
@@ -464,7 +465,7 @@ function he(t, r, l, c, n, s) {
464
465
  ])) : v("", !0)
465
466
  ]);
466
467
  }
467
- const pe = /* @__PURE__ */ B(H, [["render", he], ["__scopeId", "data-v-79c3e2ab"]]);
468
+ const ve = /* @__PURE__ */ B(H, [["render", ye], ["__scopeId", "data-v-6d6a6ad9"]]);
468
469
  export {
469
- pe as default
470
+ ve as default
470
471
  };
@@ -1,5 +1,5 @@
1
1
  import L from "../../LaravelVuePagination/TailwindPagination.vue.js";
2
- import { resolveComponent as y, createElementBlock as i, openBlock as l, createElementVNode as e, toDisplayString as c, createVNode as m, withDirectives as P, vModelText as C, Fragment as u, renderList as p, createCommentVNode as b, normalizeClass as D, createBlock as I, resolveDynamicComponent as j, createTextVNode as S } from "vue";
2
+ import { resolveComponent as y, createElementBlock as i, openBlock as l, createElementVNode as e, toDisplayString as p, createVNode as m, withDirectives as P, vModelText as C, Fragment as u, renderList as c, createCommentVNode as b, normalizeClass as D, createBlock as I, resolveDynamicComponent as j, createTextVNode as S } from "vue";
3
3
  /* empty css */
4
4
  import O from "../../../_virtual/_plugin-vue_export-helper.js";
5
5
  const F = {
@@ -112,9 +112,10 @@ function ee(r, t, a, g, s, n) {
112
112
  return l(), i("div", G, [
113
113
  e("div", A, [
114
114
  e("div", T, [
115
- e("span", V, c(r.language?.show ?? "Show"), 1),
115
+ e("span", V, p(r.language?.show ?? "Show"), 1),
116
116
  e("div", B, [
117
117
  m(w, {
118
+ language: r.language,
118
119
  options_top_size: 0,
119
120
  has_cancel: !1,
120
121
  options: s.pageOptions,
@@ -125,10 +126,10 @@ function ee(r, t, a, g, s, n) {
125
126
  label_name: "",
126
127
  default_value: 5,
127
128
  show: !1,
128
- placeholder: "Please select an option"
129
- }, null, 8, ["options", "modelValue"])
129
+ placeholder: r.language?.please_select_an_option ?? "Please select an option"
130
+ }, null, 8, ["language", "options", "modelValue", "placeholder"])
130
131
  ]),
131
- e("span", z, c(r.language?.entries ?? "Entries"), 1)
132
+ e("span", z, p(r.language?.entries ?? "Entries"), 1)
132
133
  ]),
133
134
  t[5] || (t[5] = e("label", {
134
135
  for: "table-search",
@@ -151,13 +152,13 @@ function ee(r, t, a, g, s, n) {
151
152
  e("table", U, [
152
153
  e("thead", q, [
153
154
  e("tr", null, [
154
- (l(!0), i(u, null, p(a.columns, (o, f) => (l(), i("th", {
155
+ (l(!0), i(u, null, c(a.columns, (o, f) => (l(), i("th", {
155
156
  key: f,
156
157
  onClick: (h) => n.updateSortColumn(o.field_name, o.sortable),
157
158
  class: "w-full px-4 py-2 lg:w-2/12"
158
159
  }, [
159
160
  e("div", J, [
160
- e("span", null, c(o.field_label), 1),
161
+ e("span", null, p(o.field_label), 1),
161
162
  s.sortField === o.field_name ? (l(), i("span", K, t[6] || (t[6] = [
162
163
  e("svg", {
163
164
  class: "w-4 h-4",
@@ -227,19 +228,19 @@ function ee(r, t, a, g, s, n) {
227
228
  ], -1)
228
229
  ]), 8, W)
229
230
  ])) : b("", !0),
230
- s.isLoading ? b("", !0) : (l(!0), i(u, { key: 1 }, p(n.groupedItems, (o, f) => (l(), i(u, null, [
231
+ s.isLoading ? b("", !0) : (l(!0), i(u, { key: 1 }, c(n.groupedItems, (o, f) => (l(), i(u, null, [
231
232
  e("tr", X, [
232
233
  e("td", {
233
234
  colspan: a.columns.length,
234
235
  class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border dark:border-gray-700"
235
- }, c(f), 9, Y)
236
+ }, p(f), 9, Y)
236
237
  ]),
237
- (l(!0), i(u, null, p(o, (h, x) => (l(), i("tr", {
238
- key: x,
238
+ (l(!0), i(u, null, c(o, (h, _) => (l(), i("tr", {
239
+ key: _,
239
240
  class: "text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"
240
241
  }, [
241
- (l(!0), i(u, null, p(a.columns, (d, _) => (l(), i("td", {
242
- key: _,
242
+ (l(!0), i(u, null, c(a.columns, (d, x) => (l(), i("td", {
243
+ key: x,
243
244
  "data-label": d.field_label,
244
245
  class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border-[1px]! dark:border-gray-700"
245
246
  }, [
@@ -255,7 +256,7 @@ function ee(r, t, a, g, s, n) {
255
256
  onDeleteAction: t[3] || (t[3] = (k) => n.GetItemLists()),
256
257
  onEditAction: (k) => n.editAction(h)
257
258
  }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (l(), i(u, { key: 1 }, [
258
- S(c(h[d.field_name]), 1)
259
+ S(p(h[d.field_name]), 1)
259
260
  ], 64))
260
261
  ], 2)
261
262
  ], 8, Z))), 128))
@@ -277,7 +278,7 @@ function ee(r, t, a, g, s, n) {
277
278
  ])
278
279
  ]);
279
280
  }
280
- const le = /* @__PURE__ */ O(F, [["render", ee], ["__scopeId", "data-v-dd7a738c"]]);
281
+ const le = /* @__PURE__ */ O(F, [["render", ee], ["__scopeId", "data-v-b72ef021"]]);
281
282
  export {
282
283
  le as default
283
284
  };