golden-logic-ui 1.0.51 → 1.0.53
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 +239 -219
- package/dist/golden-logic-ui.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as Ke, inject as xe, watch as W, effectScope as We, computed as B, reactive as we, resolveComponent as X, Fragment as v, createVNode as H, normalizeClass as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as Ke, inject as xe, watch as W, effectScope as We, computed as B, reactive as we, resolveComponent as X, Fragment as v, createVNode as H, normalizeClass as b, toDisplayString as h, withModifiers as M, withDirectives as P, vModelText as V, renderList as k, normalizeStyle as Xe, renderSlot as A, createTextVNode as w, vShow as G, createBlock as Z, resolveDynamicComponent as se, mergeProps as K, withCtx as Y, ref as S, onMounted as F, vModelDynamic as Ye, provide as Je, pushScopeId as Qe, popScopeId as et, vModelCheckbox as tt, nextTick as rt, toHandlers as te, TransitionGroup as st, unref as nt, resolveDirective as ke, markRaw as at } from "vue";
|
|
2
|
+
const O = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
4
|
for (const [n, o] of t)
|
|
5
5
|
r[n] = o;
|
|
@@ -50,14 +50,14 @@ function gt(e, t, r, n, o, a) {
|
|
|
50
50
|
])
|
|
51
51
|
])) : g("", !0);
|
|
52
52
|
}
|
|
53
|
-
const ie = /* @__PURE__ */
|
|
53
|
+
const ie = /* @__PURE__ */ O(ot, [["render", gt]]);
|
|
54
54
|
function mt() {
|
|
55
55
|
return $e().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
56
56
|
}
|
|
57
57
|
function $e() {
|
|
58
58
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const pt = typeof Proxy == "function", _t = "devtools-plugin:setup", bt = "plugin:settings:set";
|
|
61
61
|
let q, ne;
|
|
62
62
|
function yt() {
|
|
63
63
|
var e;
|
|
@@ -129,9 +129,9 @@ class xt {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function wt(e, t) {
|
|
132
|
-
const r = e, n = $e(), o = mt(), a =
|
|
132
|
+
const r = e, n = $e(), o = mt(), a = pt && r.enableEarlyProxy;
|
|
133
133
|
if (o && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
134
|
-
o.emit(
|
|
134
|
+
o.emit(_t, e, t);
|
|
135
135
|
else {
|
|
136
136
|
const l = a ? new xt(r, o) : null;
|
|
137
137
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
@@ -218,8 +218,8 @@ function Q(e, t, r, n, o) {
|
|
|
218
218
|
var x = l + y;
|
|
219
219
|
St(e, x, m, f);
|
|
220
220
|
}), n.forEachAction(function(m, y) {
|
|
221
|
-
var x = m.root ? y : l + y,
|
|
222
|
-
Ot(e, x,
|
|
221
|
+
var x = m.root ? y : l + y, C = m.handler || m;
|
|
222
|
+
Ot(e, x, C, f);
|
|
223
223
|
}), n.forEachGetter(function(m, y) {
|
|
224
224
|
var x = l + y;
|
|
225
225
|
Dt(e, x, m, f);
|
|
@@ -333,7 +333,7 @@ function de(e, t) {
|
|
|
333
333
|
function J(e, t, r) {
|
|
334
334
|
return Oe(e) && e.type && (r = t, t = e, e = e.type), process.env.NODE_ENV !== "production" && I(typeof e == "string", "expects string as the type, but found " + typeof e + "."), { type: e, payload: t, options: r };
|
|
335
335
|
}
|
|
336
|
-
var Et = "vuex bindings",
|
|
336
|
+
var Et = "vuex bindings", pe = "vuex:mutations", re = "vuex:actions", z = "vuex", jt = 0;
|
|
337
337
|
function At(e, t) {
|
|
338
338
|
wt(
|
|
339
339
|
{
|
|
@@ -347,13 +347,13 @@ function At(e, t) {
|
|
|
347
347
|
},
|
|
348
348
|
function(r) {
|
|
349
349
|
r.addTimelineLayer({
|
|
350
|
-
id:
|
|
350
|
+
id: pe,
|
|
351
351
|
label: "Vuex Mutations",
|
|
352
|
-
color:
|
|
352
|
+
color: _e
|
|
353
353
|
}), r.addTimelineLayer({
|
|
354
354
|
id: re,
|
|
355
355
|
label: "Vuex Actions",
|
|
356
|
-
color:
|
|
356
|
+
color: _e
|
|
357
357
|
}), r.addInspector({
|
|
358
358
|
id: z,
|
|
359
359
|
label: "Vuex",
|
|
@@ -387,7 +387,7 @@ function At(e, t) {
|
|
|
387
387
|
}), t.subscribe(function(n, o) {
|
|
388
388
|
var a = {};
|
|
389
389
|
n.payload && (a.payload = n.payload), a.state = o, r.notifyComponentUpdate(), r.sendInspectorTree(z), r.sendInspectorState(z), r.addTimelineEvent({
|
|
390
|
-
layerId:
|
|
390
|
+
layerId: pe,
|
|
391
391
|
event: {
|
|
392
392
|
time: Date.now(),
|
|
393
393
|
title: n.type,
|
|
@@ -432,7 +432,7 @@ function At(e, t) {
|
|
|
432
432
|
}
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
|
-
var
|
|
435
|
+
var _e = 8702998, It = 6710886, Tt = 16777215, je = {
|
|
436
436
|
label: "namespaced",
|
|
437
437
|
textColor: Tt,
|
|
438
438
|
backgroundColor: It
|
|
@@ -676,10 +676,10 @@ var j = function e(t) {
|
|
|
676
676
|
var a = t.devtools;
|
|
677
677
|
this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new U(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = a;
|
|
678
678
|
var l = this, i = this, c = i.dispatch, f = i.commit;
|
|
679
|
-
this.dispatch = function(x,
|
|
680
|
-
return c.call(l, x,
|
|
681
|
-
}, this.commit = function(x,
|
|
682
|
-
return f.call(l, x,
|
|
679
|
+
this.dispatch = function(x, C) {
|
|
680
|
+
return c.call(l, x, C);
|
|
681
|
+
}, this.commit = function(x, C, L) {
|
|
682
|
+
return f.call(l, x, C, L);
|
|
683
683
|
}, this.strict = o;
|
|
684
684
|
var m = this._modules.root.state;
|
|
685
685
|
Q(this, m, [], this._modules.root), le(this, m), n.forEach(function(y) {
|
|
@@ -734,24 +734,24 @@ j.prototype.dispatch = function(t, r) {
|
|
|
734
734
|
return new Promise(function(m, y) {
|
|
735
735
|
f.then(function(x) {
|
|
736
736
|
try {
|
|
737
|
-
n._actionSubscribers.filter(function(
|
|
738
|
-
return
|
|
739
|
-
}).forEach(function(
|
|
740
|
-
return
|
|
737
|
+
n._actionSubscribers.filter(function(C) {
|
|
738
|
+
return C.after;
|
|
739
|
+
}).forEach(function(C) {
|
|
740
|
+
return C.after(i, n.state);
|
|
741
741
|
});
|
|
742
|
-
} catch (
|
|
743
|
-
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(
|
|
742
|
+
} catch (C) {
|
|
743
|
+
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(C));
|
|
744
744
|
}
|
|
745
745
|
m(x);
|
|
746
746
|
}, function(x) {
|
|
747
747
|
try {
|
|
748
|
-
n._actionSubscribers.filter(function(
|
|
749
|
-
return
|
|
750
|
-
}).forEach(function(
|
|
751
|
-
return
|
|
748
|
+
n._actionSubscribers.filter(function(C) {
|
|
749
|
+
return C.error;
|
|
750
|
+
}).forEach(function(C) {
|
|
751
|
+
return C.error(i, n.state, x);
|
|
752
752
|
});
|
|
753
|
-
} catch (
|
|
754
|
-
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(
|
|
753
|
+
} catch (C) {
|
|
754
|
+
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(C));
|
|
755
755
|
}
|
|
756
756
|
y(x);
|
|
757
757
|
});
|
|
@@ -1024,7 +1024,7 @@ const Rt = {
|
|
|
1024
1024
|
}, tr = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, rr = /* @__PURE__ */ s("i", { class: "text-3xl fas fa-file-alt" }, null, -1), sr = { class: "w-full ml-3" }, nr = { class: "flex items-center justify-between mb-1" }, ar = { class: "text-xs text-black dark:text-white" }, or = { class: "text-xs text-black dark:text-white" }, ir = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, lr = { class: "overflow-x-scroll max-h-56" }, dr = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, ur = { class: "flex items-center" }, cr = /* @__PURE__ */ s("i", {
|
|
1025
1025
|
class: "text-3xl fas fa-file-alt",
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
|
-
}, null, -1), fr = { class: "flex flex-col ml-3" }, hr = { class: "text-xs" }, gr = { class: "text-xs" }, mr = { class: "flex gap-2" },
|
|
1027
|
+
}, null, -1), fr = { class: "flex flex-col ml-3" }, hr = { class: "text-xs" }, gr = { class: "text-xs" }, mr = { class: "flex gap-2" }, pr = ["href"], _r = ["onClick"];
|
|
1028
1028
|
function br(e, t, r, n, o, a) {
|
|
1029
1029
|
const l = X("DeleteConfirmationModal");
|
|
1030
1030
|
return d(), u(v, null, [
|
|
@@ -1034,13 +1034,13 @@ function br(e, t, r, n, o, a) {
|
|
|
1034
1034
|
onCancelDelete: a.closeDeleteModal
|
|
1035
1035
|
}, null, 8, ["isOpen", "onConfirmDelete", "onCancelDelete"]),
|
|
1036
1036
|
s("div", {
|
|
1037
|
-
class:
|
|
1037
|
+
class: b([{
|
|
1038
1038
|
"border-red-500 dark:border-red-500": o.error_message_data !== "",
|
|
1039
1039
|
"border-gray-200 dark:border-gray-700": o.error_message_data == ""
|
|
1040
1040
|
}, "w-full p-4 bg-white border rounded-lg shadow dark:bg-gray-800"])
|
|
1041
1041
|
}, [
|
|
1042
1042
|
s("label", {
|
|
1043
|
-
class:
|
|
1043
|
+
class: b({
|
|
1044
1044
|
"gl-label-form": o.error_message_data == "",
|
|
1045
1045
|
"gl-label-form-invalid": o.error_message_data !== "",
|
|
1046
1046
|
required: r.is_required
|
|
@@ -1077,7 +1077,7 @@ function br(e, t, r, n, o, a) {
|
|
|
1077
1077
|
s("span", Jt, h(o.error_message_data), 1),
|
|
1078
1078
|
s("small", Qt, h(r.description), 1),
|
|
1079
1079
|
o.files.length > 0 ? (d(), u("section", er, [
|
|
1080
|
-
(d(!0), u(v, null,
|
|
1080
|
+
(d(!0), u(v, null, k(o.files, (i, c) => (d(), u("li", tr, [
|
|
1081
1081
|
rr,
|
|
1082
1082
|
s("div", sr, [
|
|
1083
1083
|
s("div", nr, [
|
|
@@ -1094,7 +1094,7 @@ function br(e, t, r, n, o, a) {
|
|
|
1094
1094
|
]))), 256))
|
|
1095
1095
|
])) : g("", !0),
|
|
1096
1096
|
s("section", lr, [
|
|
1097
|
-
(d(!0), u(v, null,
|
|
1097
|
+
(d(!0), u(v, null, k(o.uploadFileList, (i, c) => (d(), u("li", dr, [
|
|
1098
1098
|
s("div", ur, [
|
|
1099
1099
|
cr,
|
|
1100
1100
|
s("div", fr, [
|
|
@@ -1107,21 +1107,21 @@ function br(e, t, r, n, o, a) {
|
|
|
1107
1107
|
href: i.url,
|
|
1108
1108
|
target: "_blank",
|
|
1109
1109
|
class: "text-lg text-blue-600 cursor-pointer dark:text-blue-400 fas fa-download"
|
|
1110
|
-
}, null, 8,
|
|
1110
|
+
}, null, 8, pr),
|
|
1111
1111
|
r.is_enable_delete ? (d(), u("i", {
|
|
1112
1112
|
key: 0,
|
|
1113
1113
|
onClick: (f) => {
|
|
1114
1114
|
o.media_id = i.id, o.open_delete_modal = !0;
|
|
1115
1115
|
},
|
|
1116
1116
|
class: "text-lg text-red-600 cursor-pointer dark:text-red-400 fas fa-x"
|
|
1117
|
-
}, null, 8,
|
|
1117
|
+
}, null, 8, _r)) : g("", !0)
|
|
1118
1118
|
])
|
|
1119
1119
|
]))), 256))
|
|
1120
1120
|
])
|
|
1121
1121
|
], 2)
|
|
1122
1122
|
], 64);
|
|
1123
1123
|
}
|
|
1124
|
-
const hd = /* @__PURE__ */
|
|
1124
|
+
const hd = /* @__PURE__ */ O(Rt, [["render", br]]), yr = {
|
|
1125
1125
|
computed: {
|
|
1126
1126
|
...Gt("notification", ["notification"]),
|
|
1127
1127
|
alertClasses() {
|
|
@@ -1199,7 +1199,7 @@ const hd = /* @__PURE__ */ D(Rt, [["render", br]]), yr = {
|
|
|
1199
1199
|
function Sr(e, t, r, n, o, a) {
|
|
1200
1200
|
return e.notification.show ? (d(), u("div", {
|
|
1201
1201
|
key: 0,
|
|
1202
|
-
class:
|
|
1202
|
+
class: b(["fixed right-0 z-50 flex items-center p-4 m-5 mb-4 rounded-lg shadow-lg", a.alertClasses]),
|
|
1203
1203
|
role: "alert"
|
|
1204
1204
|
}, [
|
|
1205
1205
|
vr,
|
|
@@ -1208,12 +1208,12 @@ function Sr(e, t, r, n, o, a) {
|
|
|
1208
1208
|
s("button", {
|
|
1209
1209
|
type: "button",
|
|
1210
1210
|
onClick: t[0] || (t[0] = (...l) => a.dismiss && a.dismiss(...l)),
|
|
1211
|
-
class:
|
|
1211
|
+
class: b(["inline-flex items-center justify-center w-6 h-6 p-1 -mx-1 -my-1 rounded-lg ms-auto focus:ring-2 hover:bg-opacity-50", a.buttonClasses]),
|
|
1212
1212
|
"aria-label": "Close"
|
|
1213
1213
|
}, Cr, 2)
|
|
1214
1214
|
], 2)) : g("", !0);
|
|
1215
1215
|
}
|
|
1216
|
-
const gd = /* @__PURE__ */
|
|
1216
|
+
const gd = /* @__PURE__ */ O(yr, [["render", Sr]]), Or = {
|
|
1217
1217
|
components: {},
|
|
1218
1218
|
props: {
|
|
1219
1219
|
field_name: {
|
|
@@ -1251,7 +1251,7 @@ const gd = /* @__PURE__ */ D(yr, [["render", Sr]]), Or = {
|
|
|
1251
1251
|
}, Dr = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, Pr = ["name", "value", "id", "checked"], Er = ["for"];
|
|
1252
1252
|
function jr(e, t, r, n, o, a) {
|
|
1253
1253
|
return d(), u("ul", Dr, [
|
|
1254
|
-
(d(!0), u(v, null,
|
|
1254
|
+
(d(!0), u(v, null, k(o.locals, (l, i) => (d(), u("li", null, [
|
|
1255
1255
|
s("input", {
|
|
1256
1256
|
type: "radio",
|
|
1257
1257
|
name: r.trans_selector_name,
|
|
@@ -1263,7 +1263,7 @@ function jr(e, t, r, n, o, a) {
|
|
|
1263
1263
|
}, null, 8, Pr),
|
|
1264
1264
|
s("label", {
|
|
1265
1265
|
for: l + "_" + r.field_name,
|
|
1266
|
-
class:
|
|
1266
|
+
class: b([{
|
|
1267
1267
|
"border md:!rounded-s-lg": i === 0,
|
|
1268
1268
|
"border md:!rounded-e-lg": i === o.locals.length - 1,
|
|
1269
1269
|
"border-t border-b": i !== 0 && i !== o.locals.length - 1
|
|
@@ -1272,10 +1272,10 @@ function jr(e, t, r, n, o, a) {
|
|
|
1272
1272
|
]))), 256))
|
|
1273
1273
|
]);
|
|
1274
1274
|
}
|
|
1275
|
-
const md = /* @__PURE__ */
|
|
1275
|
+
const md = /* @__PURE__ */ O(Or, [["render", jr]]), Ar = { class: "bg-white border rounded-lg border-stroke shadow-default dark:border-strokedark dark:bg-boxdark" }, Ir = { class: "px-3 py-4 border-b border-stroke dark:border-strokedark" }, Tr = { class: "font-semibold text-black dark:text-white" }, Mr = {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
class: "p-6"
|
|
1278
|
-
},
|
|
1278
|
+
}, pd = {
|
|
1279
1279
|
__name: "GlCard",
|
|
1280
1280
|
props: {
|
|
1281
1281
|
class: {
|
|
@@ -1286,7 +1286,7 @@ const md = /* @__PURE__ */ D(Or, [["render", jr]]), Ar = { class: "bg-white bord
|
|
|
1286
1286
|
setup(e) {
|
|
1287
1287
|
const t = e, r = B(() => t.class);
|
|
1288
1288
|
return (n, o) => (d(), u("div", {
|
|
1289
|
-
class:
|
|
1289
|
+
class: b(["flex flex-col gap-9", r.value])
|
|
1290
1290
|
}, [
|
|
1291
1291
|
s("div", Ar, [
|
|
1292
1292
|
s("div", Ir, [
|
|
@@ -1487,19 +1487,19 @@ function ts(e, t, r, n, o, a) {
|
|
|
1487
1487
|
return d(), u(v, null, [
|
|
1488
1488
|
r.show ? (d(), u("div", {
|
|
1489
1489
|
key: 0,
|
|
1490
|
-
class:
|
|
1490
|
+
class: b(r.field_name)
|
|
1491
1491
|
}, [
|
|
1492
1492
|
s("h3", Vr, h(r.label_name), 1),
|
|
1493
1493
|
s("p", Lr, [
|
|
1494
|
-
(d(!0), u(v, null,
|
|
1494
|
+
(d(!0), u(v, null, k(o.selected, (l, i) => (d(), u("span", Br, h(l.name), 1))), 256))
|
|
1495
1495
|
]),
|
|
1496
1496
|
Gr
|
|
1497
1497
|
], 2)) : g("", !0),
|
|
1498
1498
|
r.show ? g("", !0) : (d(), u("div", {
|
|
1499
1499
|
key: 1,
|
|
1500
|
-
class:
|
|
1500
|
+
class: b(["mb-4", r.field_name])
|
|
1501
1501
|
}, [
|
|
1502
|
-
(d(!0), u(v, null,
|
|
1502
|
+
(d(!0), u(v, null, k(o.selectedIds, (l, i) => (d(), u("input", {
|
|
1503
1503
|
type: "hidden",
|
|
1504
1504
|
name: r.field_name + "[]",
|
|
1505
1505
|
key: i,
|
|
@@ -1507,7 +1507,7 @@ function ts(e, t, r, n, o, a) {
|
|
|
1507
1507
|
}, null, 8, Fr))), 128)),
|
|
1508
1508
|
r.options ? (d(), u("div", Rr, [
|
|
1509
1509
|
s("label", {
|
|
1510
|
-
class:
|
|
1510
|
+
class: b({
|
|
1511
1511
|
"gl-label-form": r.error_message == "",
|
|
1512
1512
|
"gl-label-form-invalid": r.error_message !== "",
|
|
1513
1513
|
required: r.is_required
|
|
@@ -1531,7 +1531,7 @@ function ts(e, t, r, n, o, a) {
|
|
|
1531
1531
|
class: "flex flex-wrap gap-2 pl-8 pr-2 gl-multi-dropdown showOptions",
|
|
1532
1532
|
onClick: t[2] || (t[2] = (l) => a.showOptions())
|
|
1533
1533
|
}, [
|
|
1534
|
-
(d(!0), u(v, null,
|
|
1534
|
+
(d(!0), u(v, null, k(o.selected, (l, i) => (d(), u("span", {
|
|
1535
1535
|
key: i,
|
|
1536
1536
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded pointer-events-none dark:bg-blue-900 dark:text-blue-300"
|
|
1537
1537
|
}, [
|
|
@@ -1543,7 +1543,7 @@ function ts(e, t, r, n, o, a) {
|
|
|
1543
1543
|
]))), 128))
|
|
1544
1544
|
]),
|
|
1545
1545
|
s("i", {
|
|
1546
|
-
class:
|
|
1546
|
+
class: b([o.optionsShown ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700"]),
|
|
1547
1547
|
style: { top: "11px" }
|
|
1548
1548
|
}, null, 2)
|
|
1549
1549
|
]),
|
|
@@ -1567,8 +1567,8 @@ function ts(e, t, r, n, o, a) {
|
|
|
1567
1567
|
])
|
|
1568
1568
|
]),
|
|
1569
1569
|
s("div", Qr, [
|
|
1570
|
-
(d(!0), u(v, null,
|
|
1571
|
-
class:
|
|
1570
|
+
(d(!0), u(v, null, k(a.filteredOptions, (l, i) => (d(), u("div", {
|
|
1571
|
+
class: b([
|
|
1572
1572
|
"block px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",
|
|
1573
1573
|
i + 1 == o.count || a.isOptionSelected(l.id) ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
1574
1574
|
]),
|
|
@@ -1586,7 +1586,7 @@ function ts(e, t, r, n, o, a) {
|
|
|
1586
1586
|
], 2))
|
|
1587
1587
|
], 64);
|
|
1588
1588
|
}
|
|
1589
|
-
const
|
|
1589
|
+
const _d = /* @__PURE__ */ O(Nr, [["render", ts]]), rs = {
|
|
1590
1590
|
props: {
|
|
1591
1591
|
button_type: {
|
|
1592
1592
|
type: String,
|
|
@@ -1659,7 +1659,7 @@ function ns(e, t, r, n, o, a) {
|
|
|
1659
1659
|
return r.is_loading ? (d(), Z(se("button"), {
|
|
1660
1660
|
key: 1,
|
|
1661
1661
|
disabled: "",
|
|
1662
|
-
class:
|
|
1662
|
+
class: b(`flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${a.buttonTypeClass}`)
|
|
1663
1663
|
}, {
|
|
1664
1664
|
default: Y(() => [
|
|
1665
1665
|
ss,
|
|
@@ -1676,14 +1676,14 @@ function ns(e, t, r, n, o, a) {
|
|
|
1676
1676
|
default: Y(() => [
|
|
1677
1677
|
r.icon ? (d(), u("i", {
|
|
1678
1678
|
key: 0,
|
|
1679
|
-
class:
|
|
1679
|
+
class: b([r.icon, "text-base"])
|
|
1680
1680
|
}, null, 2)) : g("", !0),
|
|
1681
1681
|
A(e.$slots, "default")
|
|
1682
1682
|
]),
|
|
1683
1683
|
_: 3
|
|
1684
1684
|
}, 16, ["type", "href", "class"]));
|
|
1685
1685
|
}
|
|
1686
|
-
const bd = /* @__PURE__ */
|
|
1686
|
+
const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold ptext-lg dark:text-white" }, os = ["name", "id"], is = ["id"], ls = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ds = ["for"], us = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), cs = ["name", "id"], fs = ["required", "name", "id", "type"], hs = { class: "gl-span-form-error" }, gs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, yd = {
|
|
1687
1687
|
__name: "GlTextareaTranslate",
|
|
1688
1688
|
props: {
|
|
1689
1689
|
is_required: {
|
|
@@ -1741,7 +1741,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
1741
1741
|
},
|
|
1742
1742
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1743
1743
|
setup(e, { expose: t, emit: r }) {
|
|
1744
|
-
const n = e, o = r, a =
|
|
1744
|
+
const n = e, o = r, a = S(null), l = S(null);
|
|
1745
1745
|
return F(() => {
|
|
1746
1746
|
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus(), n.model_value && (o("update:modelValue", n.model_value), a.value.value = n.model_value), n.model_value_translate, n.translatable && axios.post("/admin/get_field_translations", {
|
|
1747
1747
|
model: n.translatable.model,
|
|
@@ -1755,7 +1755,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
1755
1755
|
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
1756
1756
|
e.show ? (d(), u("div", {
|
|
1757
1757
|
key: 0,
|
|
1758
|
-
class:
|
|
1758
|
+
class: b(e.field_name)
|
|
1759
1759
|
}, [
|
|
1760
1760
|
s("h3", as, h(e.label_name), 1),
|
|
1761
1761
|
P(s("input", {
|
|
@@ -1777,10 +1777,10 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
1777
1777
|
], 2)) : g("", !0),
|
|
1778
1778
|
e.show ? g("", !0) : (d(), u("div", {
|
|
1779
1779
|
key: 1,
|
|
1780
|
-
class:
|
|
1780
|
+
class: b(["mb-4", e.field_name])
|
|
1781
1781
|
}, [
|
|
1782
1782
|
s("label", {
|
|
1783
|
-
class:
|
|
1783
|
+
class: b({
|
|
1784
1784
|
"gl-label-translation-form": e.error_message == "",
|
|
1785
1785
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
1786
1786
|
required: e.is_required
|
|
@@ -1802,7 +1802,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
1802
1802
|
required: e.is_required,
|
|
1803
1803
|
name: e.field_name,
|
|
1804
1804
|
id: e.field_name,
|
|
1805
|
-
class:
|
|
1805
|
+
class: b({
|
|
1806
1806
|
" gl-textarea-form form-input-translation mt-4 ": e.error_message == "",
|
|
1807
1807
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1808
1808
|
}),
|
|
@@ -1819,7 +1819,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
1819
1819
|
], 2))
|
|
1820
1820
|
], 64));
|
|
1821
1821
|
}
|
|
1822
|
-
}, ms = { class: "font-bold ptext-lg dark:text-white" },
|
|
1822
|
+
}, ms = { class: "font-bold ptext-lg dark:text-white" }, ps = ["name", "id"], _s = ["id"], bs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ys = ["for"], vs = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), xs = ["name", "id"], ws = ["name", "id", "type"], ks = { class: "gl-span-form-error" }, $s = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, vd = {
|
|
1823
1823
|
__name: "GlTinymceTranslate",
|
|
1824
1824
|
props: {
|
|
1825
1825
|
is_required: {
|
|
@@ -1877,7 +1877,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
1877
1877
|
},
|
|
1878
1878
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1879
1879
|
setup(e, { expose: t, emit: r }) {
|
|
1880
|
-
const n = e, o = r, a =
|
|
1880
|
+
const n = e, o = r, a = S(null), l = S(null);
|
|
1881
1881
|
return F(() => {
|
|
1882
1882
|
tinymce.init({
|
|
1883
1883
|
selector: "#" + n.field_name,
|
|
@@ -1895,7 +1895,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
1895
1895
|
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
1896
1896
|
e.show ? (d(), u("div", {
|
|
1897
1897
|
key: 0,
|
|
1898
|
-
class:
|
|
1898
|
+
class: b(e.field_name)
|
|
1899
1899
|
}, [
|
|
1900
1900
|
s("h3", ms, h(e.label_name), 1),
|
|
1901
1901
|
P(s("input", {
|
|
@@ -1906,21 +1906,21 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
1906
1906
|
ref_key: "input_translate",
|
|
1907
1907
|
ref: l,
|
|
1908
1908
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.inputTranslateValue = f)
|
|
1909
|
-
}, null, 8,
|
|
1909
|
+
}, null, 8, ps), [
|
|
1910
1910
|
[V, i.inputTranslateValue]
|
|
1911
1911
|
]),
|
|
1912
1912
|
s("p", {
|
|
1913
1913
|
id: e.field_name,
|
|
1914
1914
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1915
|
-
}, h(e.model_value), 9,
|
|
1915
|
+
}, h(e.model_value), 9, _s),
|
|
1916
1916
|
bs
|
|
1917
1917
|
], 2)) : g("", !0),
|
|
1918
1918
|
e.show ? g("", !0) : (d(), u("div", {
|
|
1919
1919
|
key: 1,
|
|
1920
|
-
class:
|
|
1920
|
+
class: b(["mb-4", e.field_name])
|
|
1921
1921
|
}, [
|
|
1922
1922
|
s("label", {
|
|
1923
|
-
class:
|
|
1923
|
+
class: b({
|
|
1924
1924
|
"gl-label-translation-form": e.error_message == "",
|
|
1925
1925
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
1926
1926
|
required: e.is_required
|
|
@@ -1941,7 +1941,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
1941
1941
|
s("textarea", {
|
|
1942
1942
|
name: e.field_name,
|
|
1943
1943
|
id: e.field_name,
|
|
1944
|
-
class:
|
|
1944
|
+
class: b(["tiny", {
|
|
1945
1945
|
" gl-textarea-form form-input-translation mt-4 ": e.error_message == "",
|
|
1946
1946
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1947
1947
|
}]),
|
|
@@ -2016,7 +2016,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2016
2016
|
},
|
|
2017
2017
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
2018
2018
|
setup(e, { expose: t, emit: r }) {
|
|
2019
|
-
const n = e, o = r, a =
|
|
2019
|
+
const n = e, o = r, a = S(null), l = S(null);
|
|
2020
2020
|
return F(() => {
|
|
2021
2021
|
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus(), n.model_value && (o("update:modelValue", n.model_value), a.value.value = n.model_value), n.model_value_translate, n.translatable && axios.post("/admin/get_field_translations", {
|
|
2022
2022
|
model: n.translatable.model,
|
|
@@ -2030,7 +2030,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2030
2030
|
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
2031
2031
|
e.show ? (d(), u("div", {
|
|
2032
2032
|
key: 0,
|
|
2033
|
-
class:
|
|
2033
|
+
class: b(e.field_name)
|
|
2034
2034
|
}, [
|
|
2035
2035
|
s("h3", Cs, h(e.label_name), 1),
|
|
2036
2036
|
P(s("input", {
|
|
@@ -2051,10 +2051,10 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2051
2051
|
], 2)) : g("", !0),
|
|
2052
2052
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2053
2053
|
key: 1,
|
|
2054
|
-
class:
|
|
2054
|
+
class: b(["mb-4", e.field_name])
|
|
2055
2055
|
}, [
|
|
2056
2056
|
s("label", {
|
|
2057
|
-
class:
|
|
2057
|
+
class: b({
|
|
2058
2058
|
"gl-label-translation-form": e.error_message == "",
|
|
2059
2059
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
2060
2060
|
required: e.is_required
|
|
@@ -2076,7 +2076,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2076
2076
|
required: e.is_required,
|
|
2077
2077
|
name: e.field_name,
|
|
2078
2078
|
id: e.field_name,
|
|
2079
|
-
class:
|
|
2079
|
+
class: b({
|
|
2080
2080
|
" gl-input-form form-input-translation mt-2 ": e.error_message == "",
|
|
2081
2081
|
" gl-input-form-invalid form-input-translation mt-2 ": e.error_message !== ""
|
|
2082
2082
|
}),
|
|
@@ -2133,7 +2133,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2133
2133
|
},
|
|
2134
2134
|
emits: ["update:modelValue", "keydown"],
|
|
2135
2135
|
setup(e, { expose: t, emit: r }) {
|
|
2136
|
-
const n = e, o = r, a =
|
|
2136
|
+
const n = e, o = r, a = S(null);
|
|
2137
2137
|
F(() => {
|
|
2138
2138
|
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus();
|
|
2139
2139
|
});
|
|
@@ -2148,7 +2148,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2148
2148
|
return t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
2149
2149
|
e.show ? (d(), u("div", {
|
|
2150
2150
|
key: 0,
|
|
2151
|
-
class:
|
|
2151
|
+
class: b(e.field_name)
|
|
2152
2152
|
}, [
|
|
2153
2153
|
s("h3", Ms, h(e.label_name), 1),
|
|
2154
2154
|
s("p", Ns, h(e.type == "password" ? e.modelValue.replace(/./g, "*") : e.modelValue), 1),
|
|
@@ -2156,10 +2156,10 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2156
2156
|
], 2)) : g("", !0),
|
|
2157
2157
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2158
2158
|
key: 1,
|
|
2159
|
-
class:
|
|
2159
|
+
class: b(["mb-4", e.field_name])
|
|
2160
2160
|
}, [
|
|
2161
2161
|
s("label", {
|
|
2162
|
-
class:
|
|
2162
|
+
class: b({
|
|
2163
2163
|
"gl-label-form": e.error_message == "",
|
|
2164
2164
|
"gl-label-form-invalid": e.error_message !== "",
|
|
2165
2165
|
required: e.is_required
|
|
@@ -2170,7 +2170,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2170
2170
|
required: e.is_required,
|
|
2171
2171
|
name: e.field_name,
|
|
2172
2172
|
id: e.field_name,
|
|
2173
|
-
class:
|
|
2173
|
+
class: b({
|
|
2174
2174
|
"gl-input-form": e.error_message == "",
|
|
2175
2175
|
"gl-input-form-invalid": e.error_message !== ""
|
|
2176
2176
|
}),
|
|
@@ -2189,7 +2189,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2189
2189
|
}
|
|
2190
2190
|
}, Rs = {
|
|
2191
2191
|
setup(e, { slots: t }) {
|
|
2192
|
-
const r =
|
|
2192
|
+
const r = S(t.default().map((o) => o.props)), n = S(r.value[0].title);
|
|
2193
2193
|
return Je("selectedTitle", n), {
|
|
2194
2194
|
tabs: r,
|
|
2195
2195
|
selectedTitle: n
|
|
@@ -2201,16 +2201,16 @@ function Xs(e, t, r, n, o, a) {
|
|
|
2201
2201
|
s("div", Us, [
|
|
2202
2202
|
s("div", qs, [
|
|
2203
2203
|
s("ul", zs, [
|
|
2204
|
-
(d(!0), u(v, null,
|
|
2204
|
+
(d(!0), u(v, null, k(n.tabs, (l) => (d(), u("li", {
|
|
2205
2205
|
key: l.title,
|
|
2206
2206
|
onClick: (i) => n.selectedTitle = l.title,
|
|
2207
2207
|
class: "flex-auto -mb-px text-center"
|
|
2208
2208
|
}, [
|
|
2209
2209
|
s("a", {
|
|
2210
|
-
class:
|
|
2210
|
+
class: b([{ "text-slate-600 bg-white dark:bg-meta-4": n.selectedTitle != l.title, "text-white bg-slate-600 dark:bg-primary": n.selectedTitle === l.title }, "block px-5 py-3 text-xs font-bold leading-normal uppercase rounded shadow-lg hover:text-white tex hover:bg-slate-600 dark:hover:bg-primary dark:text-white tabs_buttons"])
|
|
2211
2211
|
}, [
|
|
2212
2212
|
s("i", {
|
|
2213
|
-
class:
|
|
2213
|
+
class: b([l.icon, "mr-1 text-base"])
|
|
2214
2214
|
}, null, 2),
|
|
2215
2215
|
w(" " + h(l.title), 1)
|
|
2216
2216
|
], 2)
|
|
@@ -2227,7 +2227,7 @@ function Xs(e, t, r, n, o, a) {
|
|
|
2227
2227
|
])
|
|
2228
2228
|
], 64);
|
|
2229
2229
|
}
|
|
2230
|
-
const kd = /* @__PURE__ */
|
|
2230
|
+
const kd = /* @__PURE__ */ O(Rs, [["render", Xs]]), Ys = {
|
|
2231
2231
|
props: ["title"],
|
|
2232
2232
|
setup() {
|
|
2233
2233
|
return {
|
|
@@ -2242,7 +2242,7 @@ function Qs(e, t, r, n, o, a) {
|
|
|
2242
2242
|
[G, r.title == n.selectedTitle]
|
|
2243
2243
|
]);
|
|
2244
2244
|
}
|
|
2245
|
-
const $d = /* @__PURE__ */
|
|
2245
|
+
const $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
2246
2246
|
props: {
|
|
2247
2247
|
elements_to_show_prop: {
|
|
2248
2248
|
type: Number,
|
|
@@ -2384,9 +2384,9 @@ const $d = /* @__PURE__ */ D(Ys, [["render", Qs]]), en = {
|
|
|
2384
2384
|
"stroke-linecap": "round",
|
|
2385
2385
|
"stroke-linejoin": "round",
|
|
2386
2386
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2387
|
-
}, null, -1)),
|
|
2387
|
+
}, null, -1)), pn = [
|
|
2388
2388
|
mn
|
|
2389
|
-
],
|
|
2389
|
+
], _n = {
|
|
2390
2390
|
key: 1,
|
|
2391
2391
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2392
2392
|
class: "w-6 h-6",
|
|
@@ -2529,7 +2529,7 @@ const $d = /* @__PURE__ */ D(Ys, [["render", Qs]]), en = {
|
|
|
2529
2529
|
function aa(e, t, r, n, o, a) {
|
|
2530
2530
|
return d(), u("div", null, [
|
|
2531
2531
|
s("div", {
|
|
2532
|
-
class:
|
|
2532
|
+
class: b(["", !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slide" ? "flex" : "relative block"]),
|
|
2533
2533
|
id: "mainSliderContainer_" + e.Random_string
|
|
2534
2534
|
}, [
|
|
2535
2535
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", rn, [
|
|
@@ -2544,7 +2544,7 @@ function aa(e, t, r, n, o, a) {
|
|
|
2544
2544
|
])
|
|
2545
2545
|
])) : g("", !0),
|
|
2546
2546
|
s("div", {
|
|
2547
|
-
class:
|
|
2547
|
+
class: b(["overflow-hidden", a.sliderContainerAction()]),
|
|
2548
2548
|
id: "sliderContainer_" + e.Random_string
|
|
2549
2549
|
}, [
|
|
2550
2550
|
s("ul", {
|
|
@@ -2553,22 +2553,22 @@ function aa(e, t, r, n, o, a) {
|
|
|
2553
2553
|
}, [
|
|
2554
2554
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (d(), u("div", {
|
|
2555
2555
|
key: 0,
|
|
2556
|
-
class:
|
|
2556
|
+
class: b(["items-center justify-center hidden arrow_button xl:flex xxl:flex md:flex sm:flex", r.direction_property == "rtl" ? "arrow_button_next" : "arrow_button_prev"])
|
|
2557
2557
|
}, [
|
|
2558
2558
|
s("div", hn, [
|
|
2559
2559
|
s("button", {
|
|
2560
2560
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2561
2561
|
onClick: t[1] || (t[1] = M((l) => a.prev(), ["stop"]))
|
|
2562
2562
|
}, [
|
|
2563
|
-
r.direction_property == "ltr" ? (d(), u("svg", gn,
|
|
2564
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2563
|
+
r.direction_property == "ltr" ? (d(), u("svg", gn, pn)) : g("", !0),
|
|
2564
|
+
r.direction_property == "rtl" ? (d(), u("svg", _n, yn)) : g("", !0)
|
|
2565
2565
|
])
|
|
2566
2566
|
])
|
|
2567
2567
|
], 2)) : g("", !0),
|
|
2568
2568
|
A(e.$slots, "default", {}, void 0, !0),
|
|
2569
2569
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (d(), u("div", {
|
|
2570
2570
|
key: 1,
|
|
2571
|
-
class:
|
|
2571
|
+
class: b(["items-center justify-center hidden xl:flex xxl:flex md:flex sm:flex arrow_button", r.direction_property == "rtl" ? "arrow_button_prev" : "arrow_button_next"])
|
|
2572
2572
|
}, [
|
|
2573
2573
|
s("div", vn, [
|
|
2574
2574
|
s("button", {
|
|
@@ -2583,22 +2583,22 @@ function aa(e, t, r, n, o, a) {
|
|
|
2583
2583
|
], 8, fn),
|
|
2584
2584
|
r.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (d(), u("div", {
|
|
2585
2585
|
key: 0,
|
|
2586
|
-
class:
|
|
2586
|
+
class: b(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2587
2587
|
}, [
|
|
2588
|
-
(d(!0), u(v, null,
|
|
2588
|
+
(d(!0), u(v, null, k(e.dotsNum, (l) => (d(), u("button", {
|
|
2589
2589
|
role: "button",
|
|
2590
|
-
class:
|
|
2590
|
+
class: b(["gl-dot", { active: e.currentDot == l }]),
|
|
2591
2591
|
key: l,
|
|
2592
2592
|
onClick: (i) => a.setDot(l)
|
|
2593
2593
|
}, Pn, 10, On))), 128))
|
|
2594
2594
|
], 2)) : g("", !0),
|
|
2595
2595
|
r.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div", En, [
|
|
2596
2596
|
s("div", {
|
|
2597
|
-
class:
|
|
2597
|
+
class: b(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2598
2598
|
}, [
|
|
2599
|
-
(d(!0), u(v, null,
|
|
2599
|
+
(d(!0), u(v, null, k(e.dotsNum, (l) => (d(), u("button", {
|
|
2600
2600
|
role: "button",
|
|
2601
|
-
class:
|
|
2601
|
+
class: b(["gl-dot", { active: e.currentDot == l }]),
|
|
2602
2602
|
key: l,
|
|
2603
2603
|
onClick: (i) => a.setDot(l)
|
|
2604
2604
|
}, In, 10, jn))), 128))
|
|
@@ -2607,7 +2607,7 @@ function aa(e, t, r, n, o, a) {
|
|
|
2607
2607
|
s("div", Mn, [
|
|
2608
2608
|
s("div", Nn, [
|
|
2609
2609
|
s("button", {
|
|
2610
|
-
class:
|
|
2610
|
+
class: b(["p-3 rounded-full arrow_button_styles", r.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2611
2611
|
onClick: t[3] || (t[3] = (l) => a.prev())
|
|
2612
2612
|
}, [
|
|
2613
2613
|
r.direction_property == "ltr" ? (d(), u("svg", Vn, Bn)) : g("", !0),
|
|
@@ -2643,7 +2643,7 @@ function aa(e, t, r, n, o, a) {
|
|
|
2643
2643
|
], 10, tn)
|
|
2644
2644
|
]);
|
|
2645
2645
|
}
|
|
2646
|
-
const Cd = /* @__PURE__ */
|
|
2646
|
+
const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9"]]), oa = {
|
|
2647
2647
|
class: "fixed left-0 top-13 z-[1055] h-full w-full overflow-y-auto overflow-x-hidden outline-none inset-0 bg-black bg-opacity-80",
|
|
2648
2648
|
tabindex: "-1",
|
|
2649
2649
|
"aria-hidden": "true"
|
|
@@ -2696,7 +2696,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2696
2696
|
{ immediate: !0, deep: !0 }
|
|
2697
2697
|
), (i, c) => P((d(), u("div", oa, [
|
|
2698
2698
|
s("div", {
|
|
2699
|
-
class:
|
|
2699
|
+
class: b(["pointer-events-none relative h-[calc(100%-1rem)] w-auto translate-y-[-50px] transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:h-[calc(100%-3.5rem)]", e.max_width])
|
|
2700
2700
|
}, [
|
|
2701
2701
|
s("div", ia, [
|
|
2702
2702
|
s("div", la, [
|
|
@@ -2725,7 +2725,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2725
2725
|
[G, e.is_open]
|
|
2726
2726
|
]);
|
|
2727
2727
|
}
|
|
2728
|
-
}, ga = { class: "mb-4" }, ma = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin" },
|
|
2728
|
+
}, ga = { class: "mb-4" }, ma = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin" }, pa = { class: "relative inline-flex items-center cursor-pointer" }, _a = ["name", "id", "checked"], ba = /* @__PURE__ */ s("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), ya = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), va = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-200 rounded-lg no-underlin dark:border-gray-600 dark:focus:border-frontenddark" }, xa = { class: "relative inline-flex items-center cursor-pointer" }, wa = ["name", "id"], ka = /* @__PURE__ */ s("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), $a = { class: "gl-span-form-error" }, Ca = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Od = {
|
|
2729
2729
|
__name: "GlToggleBox",
|
|
2730
2730
|
props: {
|
|
2731
2731
|
is_required: {
|
|
@@ -2767,7 +2767,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2767
2767
|
},
|
|
2768
2768
|
emits: ["update:modelValue"],
|
|
2769
2769
|
setup(e, { emit: t }) {
|
|
2770
|
-
const r = e, n = t, o =
|
|
2770
|
+
const r = e, n = t, o = S(null), a = B({
|
|
2771
2771
|
get() {
|
|
2772
2772
|
return r.modelValue;
|
|
2773
2773
|
},
|
|
@@ -2778,12 +2778,12 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2778
2778
|
return (l, i) => (d(), u(v, null, [
|
|
2779
2779
|
e.show ? (d(), u("div", {
|
|
2780
2780
|
key: 0,
|
|
2781
|
-
class:
|
|
2781
|
+
class: b(e.field_name)
|
|
2782
2782
|
}, [
|
|
2783
2783
|
s("div", ga, [
|
|
2784
2784
|
s("li", ma, [
|
|
2785
2785
|
w(h(e.label_name) + " ", 1),
|
|
2786
|
-
s("label",
|
|
2786
|
+
s("label", pa, [
|
|
2787
2787
|
s("input", {
|
|
2788
2788
|
type: "checkbox",
|
|
2789
2789
|
class: "sr-only peer",
|
|
@@ -2795,7 +2795,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2795
2795
|
ref_key: "input",
|
|
2796
2796
|
ref: o,
|
|
2797
2797
|
disabled: ""
|
|
2798
|
-
}, null, 8,
|
|
2798
|
+
}, null, 8, _a),
|
|
2799
2799
|
ba
|
|
2800
2800
|
])
|
|
2801
2801
|
])
|
|
@@ -2804,7 +2804,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2804
2804
|
], 2)) : g("", !0),
|
|
2805
2805
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2806
2806
|
key: 1,
|
|
2807
|
-
class:
|
|
2807
|
+
class: b(["mb-4", e.field_name])
|
|
2808
2808
|
}, [
|
|
2809
2809
|
s("li", va, [
|
|
2810
2810
|
w(h(e.label_name) + " ", 1),
|
|
@@ -2927,68 +2927,88 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2927
2927
|
},
|
|
2928
2928
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
2929
2929
|
setup(e, { emit: t }) {
|
|
2930
|
-
const r = e, n = t, o =
|
|
2930
|
+
const r = e, n = t, o = S(null), a = S({}), l = S(0), i = S(!1), c = S(""), f = S("");
|
|
2931
2931
|
F(() => {
|
|
2932
|
-
n("selected", a.value), f.value = L(), r.show || (document.body.addEventListener("click", (
|
|
2933
|
-
Fe(
|
|
2934
|
-
}), document.addEventListener("keypress", (
|
|
2935
|
-
|
|
2932
|
+
n("selected", a.value), f.value = L(), r.show || (document.body.addEventListener("click", (p) => {
|
|
2933
|
+
Fe(p);
|
|
2934
|
+
}), document.addEventListener("keypress", (p) => {
|
|
2935
|
+
p.key === "Enter" && p.target.form && p.preventDefault();
|
|
2936
2936
|
}));
|
|
2937
2937
|
});
|
|
2938
2938
|
const m = B(() => qe()), y = B(() => ze()), x = B(() => {
|
|
2939
|
-
const
|
|
2940
|
-
for (const
|
|
2941
|
-
const N = String(
|
|
2942
|
-
(c.value.length < 1 || N.match(
|
|
2939
|
+
const p = [], D = new RegExp(c.value, "ig");
|
|
2940
|
+
for (const $ of m.value) {
|
|
2941
|
+
const N = String($.name);
|
|
2942
|
+
(c.value.length < 1 || N.match(D)) && p.length < r.maxItem && p.push($);
|
|
2943
2943
|
}
|
|
2944
|
-
return
|
|
2944
|
+
return p;
|
|
2945
2945
|
});
|
|
2946
|
-
function
|
|
2947
|
-
if ([
|
|
2948
|
-
|
|
2946
|
+
function C(p) {
|
|
2947
|
+
if ([
|
|
2948
|
+
"ArrowLeft",
|
|
2949
|
+
"ArrowUp",
|
|
2950
|
+
"ArrowRight",
|
|
2951
|
+
"ArrowDown",
|
|
2952
|
+
"Enter"
|
|
2953
|
+
].includes(p.key)) {
|
|
2954
|
+
if (["ArrowUp", "ArrowDown"].includes(p.key) && p.preventDefault(), p.key === "ArrowDown" && r.posts === "")
|
|
2949
2955
|
return;
|
|
2950
|
-
Ue(
|
|
2956
|
+
Ue(p.key);
|
|
2951
2957
|
}
|
|
2952
2958
|
}
|
|
2953
2959
|
function L() {
|
|
2954
|
-
let
|
|
2955
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2960
|
+
let p = (/* @__PURE__ */ new Date()).getTime();
|
|
2961
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
2962
|
+
/[xy]/g,
|
|
2963
|
+
function($) {
|
|
2964
|
+
const N = (p + Math.random() * 16) % 16 | 0;
|
|
2965
|
+
return p = Math.floor(p / 16), ($ === "x" ? N : N & 3 | 8).toString(16);
|
|
2966
|
+
}
|
|
2967
|
+
);
|
|
2959
2968
|
}
|
|
2960
|
-
function fe(
|
|
2961
|
-
return Object.keys(
|
|
2969
|
+
function fe(p) {
|
|
2970
|
+
return Object.keys(p).length > 0;
|
|
2962
2971
|
}
|
|
2963
|
-
function Fe(
|
|
2964
|
-
|
|
2972
|
+
function Fe(p) {
|
|
2973
|
+
p.target.id != r.field_name + "search" + f.value && p.target.id != r.field_name && !p.target.classList.contains("showOptions") && (me(), l.value = 0);
|
|
2965
2974
|
}
|
|
2966
|
-
function he(
|
|
2967
|
-
const
|
|
2968
|
-
|
|
2975
|
+
function he(p) {
|
|
2976
|
+
const D = `${p}${f.value}`, $ = document.getElementById(D);
|
|
2977
|
+
$ && $.scrollIntoView();
|
|
2969
2978
|
}
|
|
2970
|
-
function Re(
|
|
2971
|
-
const
|
|
2972
|
-
|
|
2979
|
+
function Re(p) {
|
|
2980
|
+
const D = `${p}${f.value}`, $ = document.getElementById(D);
|
|
2981
|
+
$ && $.click();
|
|
2973
2982
|
}
|
|
2974
|
-
function Ue(
|
|
2975
|
-
|
|
2983
|
+
function Ue(p) {
|
|
2984
|
+
p === "ArrowDown" && l.value < x.value.length && (l.value++, he(l.value)), p === "ArrowUp" && l.value > 1 && (l.value--, he(l.value)), p === "Enter" && Re(l.value);
|
|
2976
2985
|
}
|
|
2977
2986
|
function qe() {
|
|
2978
|
-
return r.options.map((
|
|
2987
|
+
return r.options.map((p, D) => typeof p == "object" ? p : { id: p, name: p });
|
|
2979
2988
|
}
|
|
2980
2989
|
function ze() {
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2990
|
+
if (a.value)
|
|
2991
|
+
return console.log("selected.value: ", a.value), typeof a.value == "object" ? m.value.find(
|
|
2992
|
+
(p) => String(p.id) === String(a.value.id)
|
|
2993
|
+
) || {} : m.value.find(
|
|
2994
|
+
(p) => String(p.id) === String(a.value)
|
|
2995
|
+
) || {};
|
|
2996
|
+
if (r.modelValue)
|
|
2997
|
+
return console.log("props.modelValue :", r.modelValue), typeof r.modelValue == "object" ? m.value.find(
|
|
2998
|
+
(p) => String(p.id) === String(r.modelValue.id)
|
|
2999
|
+
) || {} : m.value.find(
|
|
3000
|
+
(p) => String(p.id) === String(sprops.modelValue)
|
|
3001
|
+
) || {};
|
|
2984
3002
|
}
|
|
2985
|
-
function ge(
|
|
2986
|
-
a.value =
|
|
3003
|
+
function ge(p) {
|
|
3004
|
+
a.value = p, i.value = !1, n("selected", a.value), n("selectionChanged", a.value);
|
|
2987
3005
|
}
|
|
2988
3006
|
function ee() {
|
|
2989
3007
|
r.show || (c.value = "", i.value = !0, rt(() => {
|
|
2990
|
-
var
|
|
2991
|
-
|
|
3008
|
+
var p = document.getElementById(
|
|
3009
|
+
`${r.field_name}search${f.value}`
|
|
3010
|
+
);
|
|
3011
|
+
p && p.focus();
|
|
2992
3012
|
}));
|
|
2993
3013
|
}
|
|
2994
3014
|
function He() {
|
|
@@ -2999,22 +3019,22 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2999
3019
|
}
|
|
3000
3020
|
return W(c, () => {
|
|
3001
3021
|
x.value.length === 0 && (a.value = {});
|
|
3002
|
-
}), W(a, (
|
|
3003
|
-
fe(
|
|
3004
|
-
}), (
|
|
3022
|
+
}), W(a, (p) => {
|
|
3023
|
+
fe(p) && n("update:modelValue", p.id);
|
|
3024
|
+
}), (p, D) => (d(), u(v, null, [
|
|
3005
3025
|
e.show ? (d(), u("div", {
|
|
3006
3026
|
key: 0,
|
|
3007
|
-
class:
|
|
3027
|
+
class: b(e.field_name)
|
|
3008
3028
|
}, [
|
|
3009
3029
|
s("h3", Sa, h(e.label_name), 1),
|
|
3010
3030
|
s("p", Oa, [
|
|
3011
|
-
s("span", Da, h(
|
|
3031
|
+
s("span", Da, h(p.selectedValue.name), 1)
|
|
3012
3032
|
]),
|
|
3013
3033
|
Pa
|
|
3014
3034
|
], 2)) : g("", !0),
|
|
3015
3035
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3016
3036
|
key: 1,
|
|
3017
|
-
class:
|
|
3037
|
+
class: b(["mb-4", e.field_name])
|
|
3018
3038
|
}, [
|
|
3019
3039
|
s("input", {
|
|
3020
3040
|
type: "hidden",
|
|
@@ -3025,7 +3045,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3025
3045
|
e.options ? (d(), u("div", ja, [
|
|
3026
3046
|
e.label_name ? (d(), u("label", {
|
|
3027
3047
|
key: 0,
|
|
3028
|
-
class:
|
|
3048
|
+
class: b({
|
|
3029
3049
|
"gl-label-form": e.error_message == "",
|
|
3030
3050
|
"gl-label-form-invalid": e.error_message !== "",
|
|
3031
3051
|
required: e.is_required
|
|
@@ -3034,27 +3054,27 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3034
3054
|
s("div", Aa, [
|
|
3035
3055
|
s("div", Ia, [
|
|
3036
3056
|
s("input", {
|
|
3037
|
-
class:
|
|
3057
|
+
class: b([{
|
|
3038
3058
|
"gl-input-form": e.error_message == "",
|
|
3039
3059
|
"gl-input-form-invalid": e.error_message !== ""
|
|
3040
3060
|
}, "pl-8 pr-2 showOptions"]),
|
|
3041
3061
|
ref: e.field_name,
|
|
3042
|
-
onClick:
|
|
3062
|
+
onClick: D[0] || (D[0] = ($) => ee()),
|
|
3043
3063
|
value: y.value.name,
|
|
3044
3064
|
placeholder: e.placeholder,
|
|
3045
3065
|
autocomplete: "off",
|
|
3046
3066
|
readonly: ""
|
|
3047
3067
|
}, null, 10, Ta),
|
|
3048
3068
|
P(s("i", {
|
|
3049
|
-
onClick:
|
|
3069
|
+
onClick: D[1] || (D[1] = M(($) => He(), ["stop"])),
|
|
3050
3070
|
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
|
|
3051
3071
|
style: { top: "13px" }
|
|
3052
3072
|
}, null, 512), [
|
|
3053
3073
|
[G, fe(y.value) && e.has_cancel]
|
|
3054
3074
|
]),
|
|
3055
3075
|
s("i", {
|
|
3056
|
-
onClick:
|
|
3057
|
-
class:
|
|
3076
|
+
onClick: D[2] || (D[2] = ($) => !i.value && ee()),
|
|
3077
|
+
class: b([i.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),
|
|
3058
3078
|
style: { top: "11px" }
|
|
3059
3079
|
}, null, 2)
|
|
3060
3080
|
]),
|
|
@@ -3065,11 +3085,11 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3065
3085
|
Ba,
|
|
3066
3086
|
P(s("input", {
|
|
3067
3087
|
type: "search",
|
|
3068
|
-
"onUpdate:modelValue":
|
|
3088
|
+
"onUpdate:modelValue": D[3] || (D[3] = ($) => c.value = $),
|
|
3069
3089
|
ref: o.value,
|
|
3070
3090
|
id: `${e.field_name}search${f.value}`,
|
|
3071
|
-
onKeydown:
|
|
3072
|
-
onBlur:
|
|
3091
|
+
onKeydown: C,
|
|
3092
|
+
onBlur: D[4] || (D[4] = ($) => me()),
|
|
3073
3093
|
autocomplete: "off",
|
|
3074
3094
|
class: "block w-full p-2 text-sm text-gray-900 border rounded-lg outline-none border-frontend ps-10 bg-gray-50 focus:border-frontend dark:bg-gray-700 dark:border-frontenddark dark:placeholder-frontenddark dark:text-white dark:focus:border-frontenddark",
|
|
3075
3095
|
placeholder: "Search ..."
|
|
@@ -3079,16 +3099,16 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3079
3099
|
])
|
|
3080
3100
|
]),
|
|
3081
3101
|
s("div", Fa, [
|
|
3082
|
-
(d(!0), u(v, null,
|
|
3083
|
-
class:
|
|
3084
|
-
onClick: (Ze) => ge(
|
|
3085
|
-
onMousedown: (Ze) => ge(
|
|
3102
|
+
(d(!0), u(v, null, k(x.value, ($, N) => (d(), u("div", {
|
|
3103
|
+
class: b(["relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white", N + 1 == l.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
3104
|
+
onClick: (Ze) => ge($),
|
|
3105
|
+
onMousedown: (Ze) => ge($),
|
|
3086
3106
|
key: N,
|
|
3087
3107
|
id: `${N + 1}${f.value}`
|
|
3088
3108
|
}, [
|
|
3089
3109
|
s("div", Ua, [
|
|
3090
|
-
y.value.id ===
|
|
3091
|
-
s("span", null, h(
|
|
3110
|
+
y.value.id === $.id ? (d(), u("svg", qa, Ha)) : g("", !0),
|
|
3111
|
+
s("span", null, h($.name || $.id || "-"), 1)
|
|
3092
3112
|
])
|
|
3093
3113
|
], 42, Ra))), 128))
|
|
3094
3114
|
])
|
|
@@ -3148,13 +3168,13 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3148
3168
|
},
|
|
3149
3169
|
emits: ["update:modelValue", "keydown"],
|
|
3150
3170
|
setup(e, { expose: t, emit: r }) {
|
|
3151
|
-
const n = e, o = r, a =
|
|
3171
|
+
const n = e, o = r, a = S(null);
|
|
3152
3172
|
return F(() => {
|
|
3153
3173
|
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus(), n.model_value && (o("update:modelValue", n.model_value), a.value.value = n.model_value), n.modelValue != "" && (o("update:modelValue", n.modelValue), a.value.value = n.modelValue);
|
|
3154
3174
|
}), t({ focus: () => a.value.focus() }), (l, i) => (d(), u(v, null, [
|
|
3155
3175
|
e.show ? (d(), u("div", {
|
|
3156
3176
|
key: 0,
|
|
3157
|
-
class:
|
|
3177
|
+
class: b(e.field_name)
|
|
3158
3178
|
}, [
|
|
3159
3179
|
s("h3", Wa, h(e.label_name), 1),
|
|
3160
3180
|
s("p", {
|
|
@@ -3165,10 +3185,10 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3165
3185
|
], 2)) : g("", !0),
|
|
3166
3186
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3167
3187
|
key: 1,
|
|
3168
|
-
class:
|
|
3188
|
+
class: b(["mb-4", e.field_name])
|
|
3169
3189
|
}, [
|
|
3170
3190
|
s("label", {
|
|
3171
|
-
class:
|
|
3191
|
+
class: b({
|
|
3172
3192
|
"gl-label-form": e.error_message == "",
|
|
3173
3193
|
"gl-label-form-invalid": e.error_message !== "",
|
|
3174
3194
|
required: e.is_required
|
|
@@ -3179,7 +3199,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3179
3199
|
required: e.is_required,
|
|
3180
3200
|
name: e.field_name,
|
|
3181
3201
|
id: e.field_name,
|
|
3182
|
-
class:
|
|
3202
|
+
class: b({
|
|
3183
3203
|
" gl-textarea-form mt-4 ": e.error_message == "",
|
|
3184
3204
|
" gl-textarea-form-invalid mt-4 ": e.error_message !== ""
|
|
3185
3205
|
}),
|
|
@@ -3358,7 +3378,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3358
3378
|
"stroke-width": "2",
|
|
3359
3379
|
d: "M5 1 1 5l4 4"
|
|
3360
3380
|
})
|
|
3361
|
-
], -1), ho = ["aria-current"], go = ["tabindex"], mo = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1),
|
|
3381
|
+
], -1), ho = ["aria-current"], go = ["tabindex"], mo = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), po = /* @__PURE__ */ s("svg", {
|
|
3362
3382
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3363
3383
|
"aria-hidden": "true",
|
|
3364
3384
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3373,7 +3393,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3373
3393
|
d: "m1 9 4-4-4-4"
|
|
3374
3394
|
})
|
|
3375
3395
|
], -1);
|
|
3376
|
-
function
|
|
3396
|
+
function _o(e, t, r, n, o, a) {
|
|
3377
3397
|
const l = X("RenderlessPagination");
|
|
3378
3398
|
return d(), Z(l, {
|
|
3379
3399
|
data: r.data,
|
|
@@ -3401,7 +3421,7 @@ function po(e, t, r, n, o, a) {
|
|
|
3401
3421
|
}), [
|
|
3402
3422
|
i.computed.prevPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3403
3423
|
key: 0,
|
|
3404
|
-
class:
|
|
3424
|
+
class: b(["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", { disabled: !i.computed.prevPageUrl }])
|
|
3405
3425
|
}, [
|
|
3406
3426
|
s("a", K({
|
|
3407
3427
|
class: "page-link",
|
|
@@ -3415,8 +3435,8 @@ function po(e, t, r, n, o, a) {
|
|
|
3415
3435
|
])
|
|
3416
3436
|
], 16, uo)
|
|
3417
3437
|
], 2)) : g("", !0),
|
|
3418
|
-
(d(!0), u(v, null,
|
|
3419
|
-
class:
|
|
3438
|
+
(d(!0), u(v, null, k(i.computed.pageRange, (c, f) => (d(), u("li", {
|
|
3439
|
+
class: b(["", { active: c == i.computed.currentPage }]),
|
|
3420
3440
|
key: f
|
|
3421
3441
|
}, [
|
|
3422
3442
|
s("a", K({
|
|
@@ -3429,7 +3449,7 @@ function po(e, t, r, n, o, a) {
|
|
|
3429
3449
|
], 2))), 128)),
|
|
3430
3450
|
i.computed.nextPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3431
3451
|
key: 1,
|
|
3432
|
-
class:
|
|
3452
|
+
class: b(["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", { disabled: !i.computed.nextPageUrl }])
|
|
3433
3453
|
}, [
|
|
3434
3454
|
s("a", K({
|
|
3435
3455
|
class: "",
|
|
@@ -3439,7 +3459,7 @@ function po(e, t, r, n, o, a) {
|
|
|
3439
3459
|
}, te(i.nextButtonEvents, !0)), [
|
|
3440
3460
|
A(e.$slots, "next-nav", {}, () => [
|
|
3441
3461
|
mo,
|
|
3442
|
-
|
|
3462
|
+
po
|
|
3443
3463
|
])
|
|
3444
3464
|
], 16, go)
|
|
3445
3465
|
], 2)) : g("", !0)
|
|
@@ -3449,7 +3469,7 @@ function po(e, t, r, n, o, a) {
|
|
|
3449
3469
|
_: 3
|
|
3450
3470
|
}, 8, ["data", "limit", "onPaginationChangePage"]);
|
|
3451
3471
|
}
|
|
3452
|
-
const bo = /* @__PURE__ */
|
|
3472
|
+
const bo = /* @__PURE__ */ O(so, [["render", _o]]), yo = {
|
|
3453
3473
|
components: { TailwindPagination: bo },
|
|
3454
3474
|
props: {
|
|
3455
3475
|
data: Array,
|
|
@@ -3593,7 +3613,7 @@ function Bo(e, t, r, n, o, a) {
|
|
|
3593
3613
|
s("table", Eo, [
|
|
3594
3614
|
s("thead", jo, [
|
|
3595
3615
|
s("tr", null, [
|
|
3596
|
-
(d(!0), u(v, null,
|
|
3616
|
+
(d(!0), u(v, null, k(r.columns, (c, f) => (d(), u("th", {
|
|
3597
3617
|
key: f,
|
|
3598
3618
|
onClick: (m) => a.updateSortColumn(c.field_name, c.sortable),
|
|
3599
3619
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
@@ -3606,11 +3626,11 @@ function Bo(e, t, r, n, o, a) {
|
|
|
3606
3626
|
])
|
|
3607
3627
|
]),
|
|
3608
3628
|
s("tbody", null, [
|
|
3609
|
-
(d(!0), u(v, null,
|
|
3629
|
+
(d(!0), u(v, null, k(o.itemLists.data, (c, f) => (d(), u("tr", {
|
|
3610
3630
|
key: f,
|
|
3611
3631
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"
|
|
3612
3632
|
}, [
|
|
3613
|
-
(d(!0), u(v, null,
|
|
3633
|
+
(d(!0), u(v, null, k(r.columns, (m, y) => (d(), u("td", {
|
|
3614
3634
|
key: y,
|
|
3615
3635
|
"data-label": m.field_label,
|
|
3616
3636
|
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-2.5 lg:px-4 border dark:border-gray-700"
|
|
@@ -3644,7 +3664,7 @@ function Bo(e, t, r, n, o, a) {
|
|
|
3644
3664
|
])
|
|
3645
3665
|
]);
|
|
3646
3666
|
}
|
|
3647
|
-
const Ed = /* @__PURE__ */
|
|
3667
|
+
const Ed = /* @__PURE__ */ O(yo, [["render", Bo]]), Go = {
|
|
3648
3668
|
components: {},
|
|
3649
3669
|
props: {
|
|
3650
3670
|
data: Array,
|
|
@@ -3761,7 +3781,7 @@ const Ed = /* @__PURE__ */ D(yo, [["render", Bo]]), Go = {
|
|
|
3761
3781
|
], -1), Xo = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Yo = { class: "w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse border-spacing-y-3 lg:border-spacing-y-0 dark:border-strokedark dark:bg-boxdark" }, Jo = { class: "hidden text-sm font-normal text-center text-gray-700 uppercase lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, Qo = ["onClick"], ei = {
|
|
3762
3782
|
key: 0,
|
|
3763
3783
|
class: "ml-2"
|
|
3764
|
-
}, ti = ["data-label"], ri = ["innerHTML"], si = { 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" }, ni = { class: "flex justify-between flex-1 sm:hidden" }, ai = ["disabled"], oi = ["disabled"], ii = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, li = { class: "text-sm text-gray-700 dark:text-gray-400" }, di = { class: "font-medium" }, ui = { class: "font-medium" }, ci = { class: "font-medium" }, fi = { "aria-label": "Page navigation" }, hi = { class: "flex items-center h-8 -space-x-px text-sm" }, gi = ["disabled"], mi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1),
|
|
3784
|
+
}, ti = ["data-label"], ri = ["innerHTML"], si = { 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" }, ni = { class: "flex justify-between flex-1 sm:hidden" }, ai = ["disabled"], oi = ["disabled"], ii = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, li = { class: "text-sm text-gray-700 dark:text-gray-400" }, di = { class: "font-medium" }, ui = { class: "font-medium" }, ci = { class: "font-medium" }, fi = { "aria-label": "Page navigation" }, hi = { class: "flex items-center h-8 -space-x-px text-sm" }, gi = ["disabled"], mi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), pi = /* @__PURE__ */ s("svg", {
|
|
3765
3785
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3766
3786
|
"aria-hidden": "true",
|
|
3767
3787
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3775,9 +3795,9 @@ const Ed = /* @__PURE__ */ D(yo, [["render", Bo]]), Go = {
|
|
|
3775
3795
|
"stroke-width": "2",
|
|
3776
3796
|
d: "M5 1 1 5l4 4"
|
|
3777
3797
|
})
|
|
3778
|
-
], -1),
|
|
3798
|
+
], -1), _i = [
|
|
3779
3799
|
mi,
|
|
3780
|
-
|
|
3800
|
+
pi
|
|
3781
3801
|
], bi = ["onClick"], yi = ["onClick"], vi = ["disabled"], xi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), wi = /* @__PURE__ */ s("svg", {
|
|
3782
3802
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3783
3803
|
"aria-hidden": "true",
|
|
@@ -3835,7 +3855,7 @@ function $i(e, t, r, n, o, a) {
|
|
|
3835
3855
|
s("table", Yo, [
|
|
3836
3856
|
s("thead", Jo, [
|
|
3837
3857
|
s("tr", null, [
|
|
3838
|
-
(d(!0), u(v, null,
|
|
3858
|
+
(d(!0), u(v, null, k(r.columns, (i, c) => (d(), u("th", {
|
|
3839
3859
|
key: c,
|
|
3840
3860
|
onClick: (f) => a.sort(i),
|
|
3841
3861
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
@@ -3846,11 +3866,11 @@ function $i(e, t, r, n, o, a) {
|
|
|
3846
3866
|
])
|
|
3847
3867
|
]),
|
|
3848
3868
|
s("tbody", null, [
|
|
3849
|
-
(d(!0), u(v, null,
|
|
3869
|
+
(d(!0), u(v, null, k(a.paginatedData, (i, c) => (d(), u("tr", {
|
|
3850
3870
|
key: c,
|
|
3851
3871
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"
|
|
3852
3872
|
}, [
|
|
3853
|
-
(d(!0), u(v, null,
|
|
3873
|
+
(d(!0), u(v, null, k(r.columns, (f, m) => (d(), u("td", {
|
|
3854
3874
|
key: m,
|
|
3855
3875
|
"data-label": f,
|
|
3856
3876
|
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-2.5 lg:px-4 border dark:border-gray-700"
|
|
@@ -3900,9 +3920,9 @@ function $i(e, t, r, n, o, a) {
|
|
|
3900
3920
|
onClick: t[4] || (t[4] = (...i) => a.previousPage && a.previousPage(...i)),
|
|
3901
3921
|
disabled: o.currentPage === 1,
|
|
3902
3922
|
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"
|
|
3903
|
-
},
|
|
3923
|
+
}, _i, 8, gi)
|
|
3904
3924
|
]),
|
|
3905
|
-
(d(!0), u(v, null,
|
|
3925
|
+
(d(!0), u(v, null, k(a.displayedPageNumbers, (i) => (d(), u(v, { key: i }, [
|
|
3906
3926
|
s("li", null, [
|
|
3907
3927
|
o.currentPage !== i ? (d(), u("a", {
|
|
3908
3928
|
key: 0,
|
|
@@ -3936,7 +3956,7 @@ function $i(e, t, r, n, o, a) {
|
|
|
3936
3956
|
])
|
|
3937
3957
|
]);
|
|
3938
3958
|
}
|
|
3939
|
-
const jd = /* @__PURE__ */
|
|
3959
|
+
const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
3940
3960
|
class: "flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",
|
|
3941
3961
|
role: "alert"
|
|
3942
3962
|
}, Si = {
|
|
@@ -4062,7 +4082,7 @@ const jd = /* @__PURE__ */ D(Go, [["render", $i]]), Ci = {
|
|
|
4062
4082
|
class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
|
|
4063
4083
|
}, {
|
|
4064
4084
|
default: Y(() => [
|
|
4065
|
-
(d(!0), u(v, null,
|
|
4085
|
+
(d(!0), u(v, null, k(nt(ve).state.items, (o, a) => (d(), Z(Ri, {
|
|
4066
4086
|
key: o.key,
|
|
4067
4087
|
message: o.message,
|
|
4068
4088
|
type: o.type,
|
|
@@ -4115,7 +4135,7 @@ const jd = /* @__PURE__ */ D(Go, [["render", $i]]), Ci = {
|
|
|
4115
4135
|
},
|
|
4116
4136
|
emits: ["deleteAction"],
|
|
4117
4137
|
setup(e, { emit: t }) {
|
|
4118
|
-
const r = Se(), n = e, o =
|
|
4138
|
+
const r = Se(), n = e, o = S(!1), a = S(!1), l = () => {
|
|
4119
4139
|
o.value = !1;
|
|
4120
4140
|
}, i = () => {
|
|
4121
4141
|
o.value = !0;
|
|
@@ -4134,7 +4154,7 @@ const jd = /* @__PURE__ */ D(Go, [["render", $i]]), Ci = {
|
|
|
4134
4154
|
console.log(x);
|
|
4135
4155
|
});
|
|
4136
4156
|
};
|
|
4137
|
-
return (x,
|
|
4157
|
+
return (x, C) => {
|
|
4138
4158
|
const L = ke("click-outside");
|
|
4139
4159
|
return d(), u(v, null, [
|
|
4140
4160
|
H(ie, {
|
|
@@ -4221,7 +4241,7 @@ const jd = /* @__PURE__ */ D(Go, [["render", $i]]), Ci = {
|
|
|
4221
4241
|
},
|
|
4222
4242
|
emits: ["deleteAction"],
|
|
4223
4243
|
setup(e, { emit: t }) {
|
|
4224
|
-
const r = Se(), n = e, o =
|
|
4244
|
+
const r = Se(), n = e, o = S(!1), a = S(!1), l = () => {
|
|
4225
4245
|
o.value = !1;
|
|
4226
4246
|
}, i = () => {
|
|
4227
4247
|
o.value = !0;
|
|
@@ -4240,7 +4260,7 @@ const jd = /* @__PURE__ */ D(Go, [["render", $i]]), Ci = {
|
|
|
4240
4260
|
console.log(x);
|
|
4241
4261
|
});
|
|
4242
4262
|
};
|
|
4243
|
-
return (x,
|
|
4263
|
+
return (x, C) => {
|
|
4244
4264
|
const L = ke("click-outside");
|
|
4245
4265
|
return d(), u(v, null, [
|
|
4246
4266
|
H(ie, {
|
|
@@ -4332,7 +4352,7 @@ const jd = /* @__PURE__ */ D(Go, [["render", $i]]), Ci = {
|
|
|
4332
4352
|
], -1);
|
|
4333
4353
|
function hl(e, t, r, n, o, a) {
|
|
4334
4354
|
return d(), u("div", null, [
|
|
4335
|
-
a.isArray ? (d(!0), u(v, { key: 0 },
|
|
4355
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row, (l, i) => (d(), u("div", {
|
|
4336
4356
|
key: i,
|
|
4337
4357
|
class: "m-1 d-inline-block"
|
|
4338
4358
|
}, [
|
|
@@ -4358,7 +4378,7 @@ function hl(e, t, r, n, o, a) {
|
|
|
4358
4378
|
])) : g("", !0)
|
|
4359
4379
|
]);
|
|
4360
4380
|
}
|
|
4361
|
-
const Md = /* @__PURE__ */
|
|
4381
|
+
const Md = /* @__PURE__ */ O(il, [["render", hl]]), gl = {
|
|
4362
4382
|
props: ["field", "row"],
|
|
4363
4383
|
computed: {
|
|
4364
4384
|
isArray() {
|
|
@@ -4368,7 +4388,7 @@ const Md = /* @__PURE__ */ D(il, [["render", hl]]), gl = {
|
|
|
4368
4388
|
return typeof this.row[this.field] == "object";
|
|
4369
4389
|
}
|
|
4370
4390
|
}
|
|
4371
|
-
}, ml = ["href", "title"],
|
|
4391
|
+
}, ml = ["href", "title"], pl = /* @__PURE__ */ s("svg", {
|
|
4372
4392
|
class: "w-3 h-3 text-white me-2",
|
|
4373
4393
|
"aria-hidden": "true",
|
|
4374
4394
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4385,7 +4405,7 @@ const Md = /* @__PURE__ */ D(il, [["render", hl]]), gl = {
|
|
|
4385
4405
|
d: "M9.657 15.874 7.358 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2.358l-2.3 2.874a3 3 0 0 1-4.685 0ZM17 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H17Z",
|
|
4386
4406
|
"clip-rule": "evenodd"
|
|
4387
4407
|
})
|
|
4388
|
-
], -1),
|
|
4408
|
+
], -1), _l = {
|
|
4389
4409
|
key: 1,
|
|
4390
4410
|
class: "m-1 d-inline-block"
|
|
4391
4411
|
}, bl = ["href", "title"], yl = /* @__PURE__ */ s("svg", {
|
|
@@ -4408,7 +4428,7 @@ const Md = /* @__PURE__ */ D(il, [["render", hl]]), gl = {
|
|
|
4408
4428
|
], -1);
|
|
4409
4429
|
function vl(e, t, r, n, o, a) {
|
|
4410
4430
|
return d(), u("div", null, [
|
|
4411
|
-
a.isArray ? (d(!0), u(v, { key: 0 },
|
|
4431
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[r.field], (l) => (d(), u("div", {
|
|
4412
4432
|
key: l.id,
|
|
4413
4433
|
class: "m-1 d-inline-block"
|
|
4414
4434
|
}, [
|
|
@@ -4418,10 +4438,10 @@ function vl(e, t, r, n, o, a) {
|
|
|
4418
4438
|
target: "_blank",
|
|
4419
4439
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
4420
4440
|
}, [
|
|
4421
|
-
|
|
4441
|
+
pl,
|
|
4422
4442
|
w(" Download ")
|
|
4423
4443
|
], 8, ml)
|
|
4424
|
-
]))), 128)) : a.isObject ? (d(), u("div",
|
|
4444
|
+
]))), 128)) : a.isObject ? (d(), u("div", _l, [
|
|
4425
4445
|
s("a", {
|
|
4426
4446
|
href: r.row[r.field].url,
|
|
4427
4447
|
title: r.row[r.field].name,
|
|
@@ -4434,7 +4454,7 @@ function vl(e, t, r, n, o, a) {
|
|
|
4434
4454
|
])) : g("", !0)
|
|
4435
4455
|
]);
|
|
4436
4456
|
}
|
|
4437
|
-
const Nd = /* @__PURE__ */
|
|
4457
|
+
const Nd = /* @__PURE__ */ O(gl, [["render", vl]]), xl = {
|
|
4438
4458
|
props: ["field", "row", "tdProps"]
|
|
4439
4459
|
}, wl = { key: 0 }, kl = ["innerHTML"];
|
|
4440
4460
|
function $l(e, t, r, n, o, a) {
|
|
@@ -4445,7 +4465,7 @@ function $l(e, t, r, n, o, a) {
|
|
|
4445
4465
|
}, null, 8, kl)
|
|
4446
4466
|
])) : g("", !0);
|
|
4447
4467
|
}
|
|
4448
|
-
const Vd = /* @__PURE__ */
|
|
4468
|
+
const Vd = /* @__PURE__ */ O(xl, [["render", $l]]), Cl = {
|
|
4449
4469
|
props: ["field", "row", "tdProps"],
|
|
4450
4470
|
computed: {
|
|
4451
4471
|
entry() {
|
|
@@ -4465,13 +4485,13 @@ const Vd = /* @__PURE__ */ D(xl, [["render", $l]]), Cl = {
|
|
|
4465
4485
|
};
|
|
4466
4486
|
function Dl(e, t, r, n, o, a) {
|
|
4467
4487
|
return d(), u("div", Sl, [
|
|
4468
|
-
a.isArray ? (d(!0), u(v, { key: 0 },
|
|
4488
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[a.entry.key], (l, i) => (d(), u("span", {
|
|
4469
4489
|
key: i,
|
|
4470
4490
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4471
4491
|
}, h(l[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span", Ol, h(r.row[a.entry.key][a.entry.field]), 1)) : g("", !0)
|
|
4472
4492
|
]);
|
|
4473
4493
|
}
|
|
4474
|
-
const Ld = /* @__PURE__ */
|
|
4494
|
+
const Ld = /* @__PURE__ */ O(Cl, [["render", Dl]]), Pl = {
|
|
4475
4495
|
props: ["field", "row", "tdProps"]
|
|
4476
4496
|
}, El = { key: 0 }, jl = { class: "m-1 d-inline-block" }, Al = ["href", "title"], Il = ["src", "alt", "title"];
|
|
4477
4497
|
function Tl(e, t, r, n, o, a) {
|
|
@@ -4491,7 +4511,7 @@ function Tl(e, t, r, n, o, a) {
|
|
|
4491
4511
|
])
|
|
4492
4512
|
])) : g("", !0);
|
|
4493
4513
|
}
|
|
4494
|
-
const Bd = /* @__PURE__ */
|
|
4514
|
+
const Bd = /* @__PURE__ */ O(Pl, [["render", Tl], ["__scopeId", "data-v-3a28c02c"]]), Ml = {
|
|
4495
4515
|
props: ["field", "row", "tdProps"],
|
|
4496
4516
|
computed: {
|
|
4497
4517
|
isActive() {
|
|
@@ -4516,7 +4536,7 @@ function Fl(e, t, r, n, o, a) {
|
|
|
4516
4536
|
]))
|
|
4517
4537
|
]);
|
|
4518
4538
|
}
|
|
4519
|
-
const Gd = /* @__PURE__ */
|
|
4539
|
+
const Gd = /* @__PURE__ */ O(Ml, [["render", Fl]]), Rl = {
|
|
4520
4540
|
props: ["field", "row", "tdProps"],
|
|
4521
4541
|
computed: {
|
|
4522
4542
|
hasLabelColor(e) {
|
|
@@ -4557,7 +4577,7 @@ function Jl(e, t, r, n, o, a) {
|
|
|
4557
4577
|
])) : g("", !0)
|
|
4558
4578
|
]);
|
|
4559
4579
|
}
|
|
4560
|
-
const Fd = /* @__PURE__ */
|
|
4580
|
+
const Fd = /* @__PURE__ */ O(Rl, [["render", Jl]]), Ql = {
|
|
4561
4581
|
props: ["isOpen", "title", "button_text"],
|
|
4562
4582
|
methods: {
|
|
4563
4583
|
confirmAction() {
|
|
@@ -4611,10 +4631,10 @@ function cd(e, t, r, n, o, a) {
|
|
|
4611
4631
|
])
|
|
4612
4632
|
])) : g("", !0);
|
|
4613
4633
|
}
|
|
4614
|
-
const Rd = /* @__PURE__ */
|
|
4634
|
+
const Rd = /* @__PURE__ */ O(Ql, [["render", cd]]);
|
|
4615
4635
|
export {
|
|
4616
4636
|
bd as GlButton,
|
|
4617
|
-
|
|
4637
|
+
pd as GlCard,
|
|
4618
4638
|
Rd as GlConfirmationModal,
|
|
4619
4639
|
jd as GlDataTable,
|
|
4620
4640
|
Ed as GlDataTableServerSide,
|
|
@@ -4633,7 +4653,7 @@ export {
|
|
|
4633
4653
|
md as GlLanguageSelector,
|
|
4634
4654
|
Sd as GlModal,
|
|
4635
4655
|
Cd as GlMultiItemSlide,
|
|
4636
|
-
|
|
4656
|
+
_d as GlMultiSelectDropdown,
|
|
4637
4657
|
gd as GlNotify,
|
|
4638
4658
|
$d as GlTab,
|
|
4639
4659
|
kd as GlTabsWrapper,
|