golden-logic-ui 1.3.19 → 1.3.21
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/components/GeneralComponents/DataTable/GLDataTableServerSide.vue.js +82 -72
- package/dist/components/GeneralComponents/GlCodeMirror.vue.js +137 -90
- package/dist/golden-logic-ui.css +1 -1
- package/dist/node_modules/@codemirror/lang-sql/dist/index.js +518 -0
- package/dist/node_modules/@codemirror/view/dist/index.js +434 -404
- package/package.json +2 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import M from "../../LaravelVuePagination/TailwindPagination.vue.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import j from "../GlTextInput.vue.js";
|
|
3
|
+
import q from "../GlDropdown.vue.js";
|
|
4
4
|
import T from "../GlDateRangePicker.vue.js";
|
|
5
5
|
import U from "../GLButton.vue.js";
|
|
6
6
|
import N from "../DynamicConfirmation.vue.js";
|
|
7
|
-
import
|
|
7
|
+
import L from "../../../Stores/toast.js";
|
|
8
8
|
import B, { triggerPrint as E } from "../../../print/print.js";
|
|
9
|
-
import { resolveComponent as k, resolveDirective as H, createElementBlock as
|
|
9
|
+
import { resolveComponent as k, resolveDirective as H, createElementBlock as c, openBlock as n, Fragment as f, createVNode as x, createElementVNode as l, toDisplayString as u, withDirectives as V, vModelText as R, normalizeClass as S, renderList as v, createBlock as _, createCommentVNode as g, withCtx as C, createTextVNode as b, vModelCheckbox as z, vShow as Z, normalizeStyle as Y, resolveDynamicComponent as Q } from "vue";
|
|
10
10
|
/* empty css */
|
|
11
11
|
import J from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
12
12
|
const X = {
|
|
13
13
|
components: {
|
|
14
14
|
TailwindPagination: M,
|
|
15
|
-
GlTextInput:
|
|
16
|
-
GlDropdown:
|
|
15
|
+
GlTextInput: j,
|
|
16
|
+
GlDropdown: q,
|
|
17
17
|
GlDateRangePicker: T,
|
|
18
18
|
GlButton: U,
|
|
19
19
|
DynamicConfirmation: N
|
|
@@ -99,7 +99,7 @@ const X = {
|
|
|
99
99
|
filteredData() {
|
|
100
100
|
const t = this.search.toLowerCase();
|
|
101
101
|
return this.sortData(this.data).filter((i) => Object.values(i).some(
|
|
102
|
-
(
|
|
102
|
+
(o) => o.toString().toLowerCase().includes(t)
|
|
103
103
|
));
|
|
104
104
|
},
|
|
105
105
|
customFilters() {
|
|
@@ -129,16 +129,16 @@ const X = {
|
|
|
129
129
|
},
|
|
130
130
|
generateRandomString(t) {
|
|
131
131
|
let s = "";
|
|
132
|
-
const i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
|
|
132
|
+
const i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", o = i.length;
|
|
133
133
|
for (let r = 0; r < t; r++)
|
|
134
134
|
s += i.charAt(
|
|
135
|
-
Math.floor(Math.random() *
|
|
135
|
+
Math.floor(Math.random() * o)
|
|
136
136
|
);
|
|
137
137
|
return s;
|
|
138
138
|
},
|
|
139
139
|
async deleteSelected() {
|
|
140
140
|
if (this.checkedIds.length <= 0) {
|
|
141
|
-
|
|
141
|
+
L.methods.add({
|
|
142
142
|
message: this.language?.please_select_at_least_one_item_to_delete ?? "Please select at least one item to delete",
|
|
143
143
|
type: "error",
|
|
144
144
|
duration: 5e3
|
|
@@ -151,17 +151,27 @@ const X = {
|
|
|
151
151
|
okButton: this.language?.okbutton_delete_confirmation ?? "Yes, delete it",
|
|
152
152
|
cancelButton: this.language?.cancelbutton_delete_confirmation ?? "Cancel",
|
|
153
153
|
hasLoading: !0
|
|
154
|
-
}))
|
|
155
|
-
this.$refs.ConfirmationDelete.showLoading(), this.isLoading = !0
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
154
|
+
})) {
|
|
155
|
+
this.$refs.ConfirmationDelete.showLoading(), this.isLoading = !0;
|
|
156
|
+
const s = await Promise.allSettled(
|
|
157
|
+
this.checkedIds.map((o) => axios.delete(`${this.xprops.route}/${o}`))
|
|
158
|
+
), i = s.map((o, r) => ({ result: o, id: this.checkedIds[r] })).filter(({ result: o }) => o.status === "rejected");
|
|
159
|
+
if (this.checkedIds = [], this.$refs.ConfirmationDelete.hideLoading(), i.length === 0)
|
|
160
|
+
L.methods.add({
|
|
161
|
+
message: this.language?.selected_items_deleted_successfully ?? "Selected items deleted successfully.",
|
|
162
|
+
type: "success",
|
|
163
|
+
duration: 5e3
|
|
164
|
+
});
|
|
165
|
+
else {
|
|
166
|
+
const o = i[0].result.reason?.response?.data?.message, r = s.length - i.length;
|
|
167
|
+
L.methods.add({
|
|
168
|
+
message: `${r} of ${s.length} deleted. Not deleted: #${i.map(({ id: d }) => d).join(", #")}.` + (o ? ` ${o}` : ""),
|
|
169
|
+
type: "error",
|
|
170
|
+
duration: 1e4
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
this.GetItemLists();
|
|
174
|
+
} else
|
|
165
175
|
return;
|
|
166
176
|
},
|
|
167
177
|
toggleSelectAll() {
|
|
@@ -201,10 +211,10 @@ const X = {
|
|
|
201
211
|
};
|
|
202
212
|
this.emitStateChange();
|
|
203
213
|
const i = ++this.requestSequence;
|
|
204
|
-
axios.get(this.xprops.route_get_data, { params: s }).then((
|
|
205
|
-
i === this.requestSequence && (this.itemLists =
|
|
206
|
-
}).catch((
|
|
207
|
-
i === this.requestSequence && (this.error = !0, this.errorMessage =
|
|
214
|
+
axios.get(this.xprops.route_get_data, { params: s }).then((o) => {
|
|
215
|
+
i === this.requestSequence && (this.itemLists = o.data, this.error = !1, this.errorMessage = "", this.isLoading = !1);
|
|
216
|
+
}).catch((o) => {
|
|
217
|
+
i === this.requestSequence && (this.error = !0, this.errorMessage = o?.response?.data?.message || o?.message || "", this.isLoading = !1, this.$emit("error", o));
|
|
208
218
|
});
|
|
209
219
|
},
|
|
210
220
|
retry() {
|
|
@@ -212,8 +222,8 @@ const X = {
|
|
|
212
222
|
},
|
|
213
223
|
// Every cell event, with whatever the cell sent along. Cells can also emit
|
|
214
224
|
// their own named actions: emit('cellAction', 'restart', payload).
|
|
215
|
-
cellAction(t, s, i,
|
|
216
|
-
this.$emit("cell-action", { action: t, row: s, payload: i, field:
|
|
225
|
+
cellAction(t, s, i, o) {
|
|
226
|
+
this.$emit("cell-action", { action: t, row: s, payload: i, field: o?.field_name });
|
|
217
227
|
},
|
|
218
228
|
/**
|
|
219
229
|
* The table's current view, for saved views or URL sync:
|
|
@@ -258,7 +268,7 @@ const X = {
|
|
|
258
268
|
this.sortField = this.columns && this.columns.length > 0 ? this.columns[0].field_name : "", this.sortOrder = "asc", this.page = 1, this.GetItemLists(this.page);
|
|
259
269
|
},
|
|
260
270
|
async exportToExcel() {
|
|
261
|
-
const t = await import("xlsx"), s = t.default || t, i = document.querySelector("#table" + this.Random_string),
|
|
271
|
+
const t = await import("xlsx"), s = t.default || t, i = document.querySelector("#table" + this.Random_string), o = Array.from(i.querySelectorAll("thead th")).map((p) => p.innerText), d = ["", ...["action"]], A = o.map((p, e) => d.includes(p) ? e : -1).filter((p) => p !== -1), F = Array.from(i.querySelectorAll("tbody tr")).map((p) => Array.from(p.querySelectorAll("td")).map((h) => h.innerText).filter((h, a) => !A.includes(a))), w = [o.filter((p, e) => !A.includes(e)), ...F], I = s.utils.aoa_to_sheet(w), y = s.utils.book_new();
|
|
262
272
|
s.utils.book_append_sheet(y, I, "Sheet1"), s.writeFile(y, "exported-file.xlsx");
|
|
263
273
|
}
|
|
264
274
|
},
|
|
@@ -306,17 +316,17 @@ const X = {
|
|
|
306
316
|
key: 0,
|
|
307
317
|
class: "print:hidden! text-center rounded-t-lg lg:rounded-t-none! print:rounded-t-none! 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 py-4 px-5 lg:py-3 lg:px-4 print:py-3! print:px-4! border! dark:border-gray-700",
|
|
308
318
|
"data-label": ""
|
|
309
|
-
}, Se = ["checked", "onChange"],
|
|
310
|
-
function Ie(t, s, i,
|
|
311
|
-
const A = k("DynamicConfirmation"),
|
|
312
|
-
return n(),
|
|
319
|
+
}, Se = ["checked", "onChange"], Fe = ["data-label"], De = { class: "flex items-center justify-between bg-white border-gray-200 dark:text-gray-400 dark:bg-gray-800" };
|
|
320
|
+
function Ie(t, s, i, o, r, d) {
|
|
321
|
+
const A = k("DynamicConfirmation"), F = k("dropdown"), D = k("GlDropdown"), w = k("GlTextInput"), I = k("GlDateRangePicker"), y = k("gl-button"), P = k("TailwindPagination"), p = H("click-outside");
|
|
322
|
+
return n(), c(f, null, [
|
|
313
323
|
x(A, { ref: "ConfirmationDelete" }, null, 512),
|
|
314
324
|
l("div", W, [
|
|
315
325
|
l("div", K, [
|
|
316
326
|
l("div", $, [
|
|
317
327
|
l("span", ee, u(i.language?.show ?? "Show"), 1),
|
|
318
328
|
l("div", te, [
|
|
319
|
-
x(
|
|
329
|
+
x(F, {
|
|
320
330
|
options_top_size: 0,
|
|
321
331
|
has_cancel: !1,
|
|
322
332
|
options: r.pageOptions,
|
|
@@ -352,8 +362,8 @@ function Ie(t, s, i, g, r, d) {
|
|
|
352
362
|
l("div", {
|
|
353
363
|
class: S(["grid gap-4 mb-3 xs:grid-cols-1 xl:grid-cols-2", i.xprops?.customFiltersMainClass])
|
|
354
364
|
}, [
|
|
355
|
-
(n(!0),
|
|
356
|
-
e.type == "dropdown" ? (n(), _(
|
|
365
|
+
(n(!0), c(f, null, v(d.customFilters, (e, h) => (n(), c(f, { key: h }, [
|
|
366
|
+
e.type == "dropdown" ? (n(), _(D, {
|
|
357
367
|
key: 0,
|
|
358
368
|
has_cancel: !0,
|
|
359
369
|
options: e.options,
|
|
@@ -364,7 +374,7 @@ function Ie(t, s, i, g, r, d) {
|
|
|
364
374
|
label_name: e.field_label,
|
|
365
375
|
show: !1,
|
|
366
376
|
placeholder: i.language?.please_select_an_option ?? "Please select an option"
|
|
367
|
-
}, null, 8, ["options", "modelValue", "onUpdate:modelValue", "field_name", "label_name", "placeholder"])) :
|
|
377
|
+
}, null, 8, ["options", "modelValue", "onUpdate:modelValue", "field_name", "label_name", "placeholder"])) : g("", !0),
|
|
368
378
|
e.type == "text" ? (n(), _(w, {
|
|
369
379
|
key: 1,
|
|
370
380
|
type: "text",
|
|
@@ -374,7 +384,7 @@ function Ie(t, s, i, g, r, d) {
|
|
|
374
384
|
"onUpdate:modelValue": (a) => r.dynamicFilters[e.field_name] = a,
|
|
375
385
|
field_name: e.field_name,
|
|
376
386
|
label_name: e.field_label
|
|
377
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "field_name", "label_name"])) :
|
|
387
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "field_name", "label_name"])) : g("", !0),
|
|
378
388
|
e.type == "date" ? (n(), _(w, {
|
|
379
389
|
key: 2,
|
|
380
390
|
type: "date",
|
|
@@ -384,7 +394,7 @@ function Ie(t, s, i, g, r, d) {
|
|
|
384
394
|
"onUpdate:modelValue": (a) => r.dynamicFilters[e.field_name] = a,
|
|
385
395
|
field_name: e.field_name,
|
|
386
396
|
label_name: e.field_label
|
|
387
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "field_name", "label_name"])) :
|
|
397
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "field_name", "label_name"])) : g("", !0),
|
|
388
398
|
e.type == "date_range" ? (n(), _(I, {
|
|
389
399
|
key: 3,
|
|
390
400
|
is_required: !1,
|
|
@@ -394,11 +404,11 @@ function Ie(t, s, i, g, r, d) {
|
|
|
394
404
|
field_name: e.field_name,
|
|
395
405
|
label_name: e.field_label,
|
|
396
406
|
date_format: e.date_format || "YYYY-MM-DD"
|
|
397
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "field_name", "label_name", "date_format"])) :
|
|
407
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "field_name", "label_name", "date_format"])) : g("", !0)
|
|
398
408
|
], 64))), 128)),
|
|
399
|
-
(n(!0),
|
|
400
|
-
e.hasOwnFilter && Object.keys(e.hasOwnFilter).length > 0 ? (n(),
|
|
401
|
-
e.hasOwnFilter.type == "dropdown" ? (n(), _(
|
|
409
|
+
(n(!0), c(f, null, v(i.columns, (e, h) => (n(), c(f, { key: h }, [
|
|
410
|
+
e.hasOwnFilter && Object.keys(e.hasOwnFilter).length > 0 ? (n(), c(f, { key: 0 }, [
|
|
411
|
+
e.hasOwnFilter.type == "dropdown" ? (n(), _(D, {
|
|
402
412
|
key: 0,
|
|
403
413
|
has_cancel: !0,
|
|
404
414
|
options: e.hasOwnFilter.options,
|
|
@@ -409,7 +419,7 @@ function Ie(t, s, i, g, r, d) {
|
|
|
409
419
|
label_name: e.field_label,
|
|
410
420
|
show: !1,
|
|
411
421
|
placeholder: i.language?.please_select_an_option ?? "Please select an option"
|
|
412
|
-
}, null, 8, ["options", "modelValue", "onUpdate:modelValue", "field_name", "label_name", "placeholder"])) :
|
|
422
|
+
}, null, 8, ["options", "modelValue", "onUpdate:modelValue", "field_name", "label_name", "placeholder"])) : g("", !0),
|
|
413
423
|
e.hasOwnFilter.type == "text" ? (n(), _(w, {
|
|
414
424
|
key: 1,
|
|
415
425
|
type: "text",
|
|
@@ -419,7 +429,7 @@ function Ie(t, s, i, g, r, d) {
|
|
|
419
429
|
"onUpdate:modelValue": (a) => r.dynamicFilters[e.field_name] = a,
|
|
420
430
|
field_name: e.field_name,
|
|
421
431
|
label_name: e.field_label
|
|
422
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "field_name", "label_name"])) :
|
|
432
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "field_name", "label_name"])) : g("", !0),
|
|
423
433
|
e.hasOwnFilter.type == "date" ? (n(), _(w, {
|
|
424
434
|
key: 2,
|
|
425
435
|
type: "date",
|
|
@@ -429,8 +439,8 @@ function Ie(t, s, i, g, r, d) {
|
|
|
429
439
|
"onUpdate:modelValue": (a) => r.dynamicFilters[e.field_name] = a,
|
|
430
440
|
field_name: e.field_name,
|
|
431
441
|
label_name: e.field_label
|
|
432
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "field_name", "label_name"])) :
|
|
433
|
-
], 64)) :
|
|
442
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "field_name", "label_name"])) : g("", !0)
|
|
443
|
+
], 64)) : g("", !0)
|
|
434
444
|
], 64))), 128))
|
|
435
445
|
], 2),
|
|
436
446
|
l("div", re, [
|
|
@@ -446,7 +456,7 @@ function Ie(t, s, i, g, r, d) {
|
|
|
446
456
|
b(u(i.language?.select_all ?? "Select all"), 1)
|
|
447
457
|
]),
|
|
448
458
|
_: 1
|
|
449
|
-
}, 8, ["onClick"])) :
|
|
459
|
+
}, 8, ["onClick"])) : g("", !0),
|
|
450
460
|
i.enable_select_deselect_delete ? (n(), _(y, {
|
|
451
461
|
key: 1,
|
|
452
462
|
onClick: d.toggleDeselectAll,
|
|
@@ -459,7 +469,7 @@ function Ie(t, s, i, g, r, d) {
|
|
|
459
469
|
b(u(i.language?.deselect_all ?? "Deselect all"), 1)
|
|
460
470
|
]),
|
|
461
471
|
_: 1
|
|
462
|
-
}, 8, ["onClick"])) :
|
|
472
|
+
}, 8, ["onClick"])) : g("", !0),
|
|
463
473
|
x(y, {
|
|
464
474
|
onClick: d.delayedPrint,
|
|
465
475
|
tag: "button",
|
|
@@ -492,7 +502,7 @@ function Ie(t, s, i, g, r, d) {
|
|
|
492
502
|
]),
|
|
493
503
|
_: 1
|
|
494
504
|
}, 8, ["onClick"]),
|
|
495
|
-
V((n(),
|
|
505
|
+
V((n(), c("div", null, [
|
|
496
506
|
l("button", {
|
|
497
507
|
class: S([!i.enable_select_deselect_delete || !i.enable_delete || !t.can(`delete_${i.xprops?.permission}`) ? "rounded-lg lg:rounded-e-lg!" : "rounded-lg lg:rounded-none!", "h-10 text-gray-900 bg-white border border-gray-300 hover:bg-gray-100 dark:bg-gray-800 dark:text-white dark:border-gray-600 dark:hover:bg-gray-700 dark:hover:border-gray-600 font-medium text-sm px-3 py-2 text-center inline-flex items-center rounded-lg lg:rounded-none!"]),
|
|
498
508
|
onClick: s[3] || (s[3] = (...e) => d.toggleColumnVisibilityDropdown && d.toggleColumnVisibilityDropdown(...e)),
|
|
@@ -541,7 +551,7 @@ function Ie(t, s, i, g, r, d) {
|
|
|
541
551
|
class: "p-3 space-y-1 text-sm text-gray-700 dark:text-gray-200",
|
|
542
552
|
"aria-labelledby": "db_" + r.Random_string
|
|
543
553
|
}, [
|
|
544
|
-
(n(!0),
|
|
554
|
+
(n(!0), c(f, null, v(i.columns, (e, h) => (n(), c("li", null, [
|
|
545
555
|
l("div", de, [
|
|
546
556
|
V(l("input", {
|
|
547
557
|
id: "cb_" + e.field_name,
|
|
@@ -580,7 +590,7 @@ function Ie(t, s, i, g, r, d) {
|
|
|
580
590
|
b(u(i.language?.delete_selected ?? "Delete selected") + " " + u(r.checkedIds.length > 0 ? `(${r.checkedIds.length})` : ""), 1)
|
|
581
591
|
]),
|
|
582
592
|
_: 1
|
|
583
|
-
}, 8, ["onClick", "is_disabled"])) :
|
|
593
|
+
}, 8, ["onClick", "is_disabled"])) : g("", !0)
|
|
584
594
|
]),
|
|
585
595
|
l("div", {
|
|
586
596
|
id: "print_" + r.Random_string,
|
|
@@ -592,15 +602,15 @@ function Ie(t, s, i, g, r, d) {
|
|
|
592
602
|
}, [
|
|
593
603
|
l("thead", he, [
|
|
594
604
|
l("tr", null, [
|
|
595
|
-
i.enable_select_deselect_delete ? (n(),
|
|
596
|
-
(n(!0),
|
|
605
|
+
i.enable_select_deselect_delete ? (n(), c("th", me)) : g("", !0),
|
|
606
|
+
(n(!0), c(f, null, v(d.visibleColumns, (e, h) => (n(), c("th", {
|
|
597
607
|
key: h,
|
|
598
608
|
onClick: (a) => d.updateSortColumn(e.field_name, e.sortable),
|
|
599
609
|
class: "w-full px-4 py-2 lg:w-2/12 print:w-2/12! print:border!"
|
|
600
610
|
}, [
|
|
601
611
|
l("div", _e, [
|
|
602
612
|
l("span", null, u(e.field_label), 1),
|
|
603
|
-
r.sortField === e.field_name ? (n(),
|
|
613
|
+
r.sortField === e.field_name ? (n(), c("span", pe, s[8] || (s[8] = [
|
|
604
614
|
l("svg", {
|
|
605
615
|
class: "w-4 h-4",
|
|
606
616
|
"aria-hidden": "true",
|
|
@@ -616,13 +626,13 @@ function Ie(t, s, i, g, r, d) {
|
|
|
616
626
|
d: "M8 20V7m0 13-4-4m4 4 4-4m4-12v13m0-13 4 4m-4-4-4 4"
|
|
617
627
|
})
|
|
618
628
|
], -1)
|
|
619
|
-
]))) :
|
|
629
|
+
]))) : g("", !0)
|
|
620
630
|
])
|
|
621
631
|
], 8, fe))), 128))
|
|
622
632
|
])
|
|
623
633
|
]),
|
|
624
634
|
l("tbody", ye, [
|
|
625
|
-
r.isLoading ? (n(),
|
|
635
|
+
r.isLoading ? (n(), c("tr", be, [
|
|
626
636
|
l("td", {
|
|
627
637
|
colspan: i.columns.length + (i.enable_select_deselect_delete ? 1 : 0)
|
|
628
638
|
}, s[9] || (s[9] = [
|
|
@@ -668,15 +678,15 @@ function Ie(t, s, i, g, r, d) {
|
|
|
668
678
|
l("span", { class: "sr-only" }, "Loading...")
|
|
669
679
|
], -1)
|
|
670
680
|
]), 8, ke)
|
|
671
|
-
])) :
|
|
672
|
-
!r.isLoading && r.error ? (n(),
|
|
681
|
+
])) : g("", !0),
|
|
682
|
+
!r.isLoading && r.error ? (n(), c("tr", we, [
|
|
673
683
|
l("td", {
|
|
674
684
|
colspan: i.columns.length + (i.enable_select_deselect_delete ? 1 : 0),
|
|
675
685
|
class: "px-5 py-6 border! dark:border-gray-700"
|
|
676
686
|
}, [
|
|
677
687
|
l("div", ve, [
|
|
678
688
|
l("p", Ce, u(i.language?.failed_to_load_data ?? "Could not load the data."), 1),
|
|
679
|
-
r.errorMessage ? (n(),
|
|
689
|
+
r.errorMessage ? (n(), c("p", Ae, u(r.errorMessage), 1)) : g("", !0),
|
|
680
690
|
x(y, {
|
|
681
691
|
tag: "button",
|
|
682
692
|
button_type: "light",
|
|
@@ -689,12 +699,12 @@ function Ie(t, s, i, g, r, d) {
|
|
|
689
699
|
}, 8, ["onClick"])
|
|
690
700
|
])
|
|
691
701
|
], 8, xe)
|
|
692
|
-
])) :
|
|
693
|
-
!r.isLoading && !r.error ? (n(!0),
|
|
702
|
+
])) : g("", !0),
|
|
703
|
+
!r.isLoading && !r.error ? (n(!0), c(f, { key: 2 }, v(r.itemLists.data, (e, h) => (n(), c("tr", {
|
|
694
704
|
key: h,
|
|
695
705
|
class: "text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
|
696
706
|
}, [
|
|
697
|
-
i.enable_select_deselect_delete ? (n(),
|
|
707
|
+
i.enable_select_deselect_delete ? (n(), c("td", Ve, [
|
|
698
708
|
l("input", {
|
|
699
709
|
checked: r.checkedIds.includes(e.id),
|
|
700
710
|
onChange: (a) => d.toggleCheck(e.id),
|
|
@@ -702,14 +712,14 @@ function Ie(t, s, i, g, r, d) {
|
|
|
702
712
|
value: "",
|
|
703
713
|
class: "w-4 h-4 rounded-sm"
|
|
704
714
|
}, null, 40, Se)
|
|
705
|
-
])) :
|
|
706
|
-
(n(!0),
|
|
715
|
+
])) : g("", !0),
|
|
716
|
+
(n(!0), c(f, null, v(d.visibleColumns, (a, O) => (n(), c("td", {
|
|
707
717
|
style: Y(a?.style),
|
|
708
|
-
key:
|
|
718
|
+
key: O,
|
|
709
719
|
"data-label": a.field_label,
|
|
710
720
|
class: S(["text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none print:before:content-none! 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! dark:border-gray-700", {
|
|
711
721
|
/* 'rounded-t-lg lg:rounded-t-none': colIndex === 0,*/
|
|
712
|
-
"rounded-b-lg lg:rounded-b-none!":
|
|
722
|
+
"rounded-b-lg lg:rounded-b-none!": O === i.columns.length - 1
|
|
713
723
|
}])
|
|
714
724
|
}, [
|
|
715
725
|
l("div", {
|
|
@@ -738,17 +748,17 @@ function Ie(t, s, i, g, r, d) {
|
|
|
738
748
|
d.generalAction2(e), d.cellAction("generalAction2", e, m, a);
|
|
739
749
|
},
|
|
740
750
|
onCellAction: (m, G) => d.cellAction(m, e, G, a)
|
|
741
|
-
}, null, 40, ["language", "row", "field", "xprops", "tdProps", "onDeleteAction", "onEditAction", "onGeneralAction", "onGeneralAction1", "onGeneralAction2", "onCellAction"])) : (n(),
|
|
751
|
+
}, null, 40, ["language", "row", "field", "xprops", "tdProps", "onDeleteAction", "onEditAction", "onGeneralAction", "onGeneralAction1", "onGeneralAction2", "onCellAction"])) : (n(), c(f, { key: 1 }, [
|
|
742
752
|
b(u(e[a.field_name]), 1)
|
|
743
753
|
], 64))
|
|
744
754
|
], 2)
|
|
745
|
-
], 14,
|
|
746
|
-
]))), 128)) :
|
|
755
|
+
], 14, Fe))), 128))
|
|
756
|
+
]))), 128)) : g("", !0)
|
|
747
757
|
])
|
|
748
758
|
], 8, ue)
|
|
749
759
|
], 8, ge),
|
|
750
|
-
l("div",
|
|
751
|
-
x(
|
|
760
|
+
l("div", De, [
|
|
761
|
+
x(P, {
|
|
752
762
|
class: "mt-3 mb-0",
|
|
753
763
|
classes: "px-4 py-3 sm:px-6",
|
|
754
764
|
data: r.itemLists,
|
|
@@ -761,7 +771,7 @@ function Ie(t, s, i, g, r, d) {
|
|
|
761
771
|
])
|
|
762
772
|
], 64);
|
|
763
773
|
}
|
|
764
|
-
const Ee = /* @__PURE__ */ J(X, [["render", Ie], ["__scopeId", "data-v-
|
|
774
|
+
const Ee = /* @__PURE__ */ J(X, [["render", Ie], ["__scopeId", "data-v-2547d2e1"]]);
|
|
765
775
|
export {
|
|
766
776
|
Ee as default
|
|
767
777
|
};
|