golden-logic-ui 1.0.80 → 1.0.82
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 +125 -121
- package/dist/golden-logic-ui.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as f, createStaticVNode as Je, inject as Ce, watch as Y, effectScope as Qe, computed as G, reactive as Se, resolveComponent as X, Fragment as v, createVNode as Z, normalizeClass as b, toDisplayString as g, withModifiers as N, withDirectives as O, vModelText as
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as f, createStaticVNode as Je, inject as Ce, watch as Y, effectScope as Qe, computed as G, reactive as Se, resolveComponent as X, Fragment as v, createVNode as Z, normalizeClass as b, toDisplayString as g, withModifiers as N, withDirectives as O, vModelText as L, renderList as k, normalizeStyle as et, renderSlot as T, createTextVNode as w, vShow as F, createBlock as K, resolveDynamicComponent as oe, mergeProps as W, withCtx as J, ref as S, onMounted as R, vModelDynamic as tt, provide as rt, pushScopeId as st, popScopeId as at, vModelCheckbox as nt, nextTick as ot, toHandlers as ae, TransitionGroup as lt, unref as it, resolveDirective as De, markRaw as dt } from "vue";
|
|
2
2
|
const $ = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
4
|
for (const [n, o] of t)
|
|
@@ -215,14 +215,14 @@ function ee(e, t, r, n, o) {
|
|
|
215
215
|
}
|
|
216
216
|
var h = n.context = Pt(e, i, r);
|
|
217
217
|
n.forEachMutation(function(m, y) {
|
|
218
|
-
var
|
|
219
|
-
Et(e,
|
|
218
|
+
var x = i + y;
|
|
219
|
+
Et(e, x, m, h);
|
|
220
220
|
}), n.forEachAction(function(m, y) {
|
|
221
|
-
var
|
|
222
|
-
jt(e,
|
|
221
|
+
var x = m.root ? y : i + y, C = m.handler || m;
|
|
222
|
+
jt(e, x, C, h);
|
|
223
223
|
}), n.forEachGetter(function(m, y) {
|
|
224
|
-
var
|
|
225
|
-
At(e,
|
|
224
|
+
var x = i + y;
|
|
225
|
+
At(e, x, m, h);
|
|
226
226
|
}), n.forEachChild(function(m, y) {
|
|
227
227
|
ee(e, t, r.concat(y), m, o);
|
|
228
228
|
});
|
|
@@ -363,10 +363,10 @@ function Nt(e, t) {
|
|
|
363
363
|
if (n.app === e && n.inspectorId === H)
|
|
364
364
|
if (n.filter) {
|
|
365
365
|
var o = [];
|
|
366
|
-
|
|
366
|
+
Ve(o, t._modules.root, n.filter, ""), n.rootNodes = o;
|
|
367
367
|
} else
|
|
368
368
|
n.rootNodes = [
|
|
369
|
-
|
|
369
|
+
Le(t._modules.root, "")
|
|
370
370
|
];
|
|
371
371
|
}), r.on.getInspectorState(function(n) {
|
|
372
372
|
if (n.app === e && n.inspectorId === H) {
|
|
@@ -432,15 +432,15 @@ function Nt(e, t) {
|
|
|
432
432
|
}
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
|
-
var xe = 8702998,
|
|
435
|
+
var xe = 8702998, Lt = 6710886, Vt = 16777215, Me = {
|
|
436
436
|
label: "namespaced",
|
|
437
|
-
textColor:
|
|
438
|
-
backgroundColor:
|
|
437
|
+
textColor: Vt,
|
|
438
|
+
backgroundColor: Lt
|
|
439
439
|
};
|
|
440
440
|
function Ne(e) {
|
|
441
441
|
return e && e !== "root" ? e.split("/").slice(-2, -1)[0] : "Root";
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Le(e, t) {
|
|
444
444
|
return {
|
|
445
445
|
id: t || "root",
|
|
446
446
|
// all modules end with a `/`, we want the last segment only
|
|
@@ -450,7 +450,7 @@ function Ve(e, t) {
|
|
|
450
450
|
tags: e.namespaced ? [Me] : [],
|
|
451
451
|
children: Object.keys(e._children).map(
|
|
452
452
|
function(r) {
|
|
453
|
-
return
|
|
453
|
+
return Le(
|
|
454
454
|
e._children[r],
|
|
455
455
|
t + r + "/"
|
|
456
456
|
);
|
|
@@ -458,13 +458,13 @@ function Ve(e, t) {
|
|
|
458
458
|
)
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Ve(e, t, r, n) {
|
|
462
462
|
n.includes(r) && e.push({
|
|
463
463
|
id: n || "root",
|
|
464
464
|
label: n.endsWith("/") ? n.slice(0, n.length - 1) : n || "Root",
|
|
465
465
|
tags: t.namespaced ? [Me] : []
|
|
466
466
|
}), Object.keys(t._children).forEach(function(o) {
|
|
467
|
-
|
|
467
|
+
Ve(e, t._children[o], r, n + o + "/");
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
470
|
function Bt(e, t, r) {
|
|
@@ -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 q(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = a;
|
|
678
678
|
var i = this, l = this, c = l.dispatch, h = l.commit;
|
|
679
|
-
this.dispatch = function(
|
|
680
|
-
return c.call(i,
|
|
681
|
-
}, this.commit = function(
|
|
682
|
-
return h.call(i,
|
|
679
|
+
this.dispatch = function(x, C) {
|
|
680
|
+
return c.call(i, x, C);
|
|
681
|
+
}, this.commit = function(x, C, V) {
|
|
682
|
+
return h.call(i, x, C, V);
|
|
683
683
|
}, this.strict = o;
|
|
684
684
|
var m = this._modules.root.state;
|
|
685
685
|
ee(this, m, [], this._modules.root), ce(this, m), n.forEach(function(y) {
|
|
@@ -704,8 +704,8 @@ j.prototype.commit = function(t, r, n) {
|
|
|
704
704
|
return;
|
|
705
705
|
}
|
|
706
706
|
this._withCommit(function() {
|
|
707
|
-
m.forEach(function(
|
|
708
|
-
|
|
707
|
+
m.forEach(function(x) {
|
|
708
|
+
x(l);
|
|
709
709
|
});
|
|
710
710
|
}), this._subscribers.slice().forEach(function(y) {
|
|
711
711
|
return y(h, o.state);
|
|
@@ -732,7 +732,7 @@ j.prototype.dispatch = function(t, r) {
|
|
|
732
732
|
return m(i);
|
|
733
733
|
})) : c[0](i);
|
|
734
734
|
return new Promise(function(m, y) {
|
|
735
|
-
h.then(function(
|
|
735
|
+
h.then(function(x) {
|
|
736
736
|
try {
|
|
737
737
|
n._actionSubscribers.filter(function(C) {
|
|
738
738
|
return C.after;
|
|
@@ -742,18 +742,18 @@ j.prototype.dispatch = function(t, r) {
|
|
|
742
742
|
} catch (C) {
|
|
743
743
|
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(C));
|
|
744
744
|
}
|
|
745
|
-
m(
|
|
746
|
-
}, function(
|
|
745
|
+
m(x);
|
|
746
|
+
}, function(x) {
|
|
747
747
|
try {
|
|
748
748
|
n._actionSubscribers.filter(function(C) {
|
|
749
749
|
return C.error;
|
|
750
750
|
}).forEach(function(C) {
|
|
751
|
-
return C.error(l, n.state,
|
|
751
|
+
return C.error(l, n.state, x);
|
|
752
752
|
});
|
|
753
753
|
} catch (C) {
|
|
754
754
|
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(C));
|
|
755
755
|
}
|
|
756
|
-
y(
|
|
756
|
+
y(x);
|
|
757
757
|
});
|
|
758
758
|
});
|
|
759
759
|
};
|
|
@@ -1065,7 +1065,7 @@ function wr(e, t, r, n, o, a) {
|
|
|
1065
1065
|
name: r.field_name,
|
|
1066
1066
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => a.uploadedFileIds = l)
|
|
1067
1067
|
}, null, 8, Wt), [
|
|
1068
|
-
[
|
|
1068
|
+
[L, a.uploadedFileIds]
|
|
1069
1069
|
]),
|
|
1070
1070
|
o.isDragging ? (d(), u("div", Qt, tr)) : (d(), u("div", {
|
|
1071
1071
|
key: 0,
|
|
@@ -1121,7 +1121,7 @@ function wr(e, t, r, n, o, a) {
|
|
|
1121
1121
|
], 2)
|
|
1122
1122
|
], 64);
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const Ld = /* @__PURE__ */ $(Ht, [["render", wr]]), kr = {
|
|
1125
1125
|
computed: {
|
|
1126
1126
|
...qt("notification", ["notification"]),
|
|
1127
1127
|
alertClasses() {
|
|
@@ -1213,7 +1213,7 @@ function Er(e, t, r, n, o, a) {
|
|
|
1213
1213
|
}, Pr, 2)
|
|
1214
1214
|
], 2)) : f("", !0);
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const Vd = /* @__PURE__ */ $(kr, [["render", Er]]), jr = {
|
|
1217
1217
|
components: {},
|
|
1218
1218
|
props: {
|
|
1219
1219
|
field_name: {
|
|
@@ -1272,7 +1272,7 @@ function Mr(e, t, r, n, o, a) {
|
|
|
1272
1272
|
]))), 256))
|
|
1273
1273
|
]);
|
|
1274
1274
|
}
|
|
1275
|
-
const Bd = /* @__PURE__ */ $(jr, [["render", Mr]]), Nr = { class: "bg-white border rounded-lg border-stroke shadow-default dark:border-strokedark dark:bg-boxdark" },
|
|
1275
|
+
const Bd = /* @__PURE__ */ $(jr, [["render", Mr]]), Nr = { class: "bg-white border rounded-lg border-stroke shadow-default dark:border-strokedark dark:bg-boxdark" }, Lr = { class: "px-3 py-4 border-b border-stroke dark:border-strokedark" }, Vr = { class: "font-semibold text-black dark:text-white" }, Br = {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
class: "p-6"
|
|
1278
1278
|
}, Gd = {
|
|
@@ -1289,8 +1289,8 @@ const Bd = /* @__PURE__ */ $(jr, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1289
1289
|
class: b(["flex flex-col gap-9", r.value])
|
|
1290
1290
|
}, [
|
|
1291
1291
|
s("div", Nr, [
|
|
1292
|
-
s("div",
|
|
1293
|
-
s("h3",
|
|
1292
|
+
s("div", Lr, [
|
|
1293
|
+
s("h3", Vr, [
|
|
1294
1294
|
T(n.$slots, "header")
|
|
1295
1295
|
])
|
|
1296
1296
|
]),
|
|
@@ -1535,7 +1535,7 @@ function ns(e, t, r, n, o, a) {
|
|
|
1535
1535
|
key: l,
|
|
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
|
}, [
|
|
1538
|
-
|
|
1538
|
+
w(g(i.name) + " ", 1),
|
|
1539
1539
|
s("i", {
|
|
1540
1540
|
onClick: N((c) => a.clearOption(i), ["stop"]),
|
|
1541
1541
|
class: "cursor-pointer pointer-events-auto hover:text-red-600 dark:hover:text-red-400 fas fa-times"
|
|
@@ -1562,7 +1562,7 @@ function ns(e, t, r, n, o, a) {
|
|
|
1562
1562
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
1563
1563
|
placeholder: "Search ..."
|
|
1564
1564
|
}, null, 40, rs), [
|
|
1565
|
-
[
|
|
1565
|
+
[L, o.searchFilter]
|
|
1566
1566
|
])
|
|
1567
1567
|
])
|
|
1568
1568
|
]),
|
|
@@ -1667,7 +1667,7 @@ function is(e, t, r, n, o, a) {
|
|
|
1667
1667
|
}, {
|
|
1668
1668
|
default: J(() => [
|
|
1669
1669
|
ls,
|
|
1670
|
-
|
|
1670
|
+
w(" Loading... ")
|
|
1671
1671
|
]),
|
|
1672
1672
|
_: 1
|
|
1673
1673
|
}, 8, ["class"])) : (d(), K(oe(r.tag), W({
|
|
@@ -1772,7 +1772,7 @@ const Rd = /* @__PURE__ */ $(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1772
1772
|
ref: i,
|
|
1773
1773
|
"onUpdate:modelValue": c[0] || (c[0] = (h) => l.inputTranslateValue = h)
|
|
1774
1774
|
}, null, 8, us), [
|
|
1775
|
-
[
|
|
1775
|
+
[L, l.inputTranslateValue]
|
|
1776
1776
|
]),
|
|
1777
1777
|
s("p", {
|
|
1778
1778
|
id: e.field_name,
|
|
@@ -1912,7 +1912,7 @@ const Rd = /* @__PURE__ */ $(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1912
1912
|
ref: i,
|
|
1913
1913
|
"onUpdate:modelValue": c[0] || (c[0] = (h) => l.inputTranslateValue = h)
|
|
1914
1914
|
}, null, 8, vs), [
|
|
1915
|
-
[
|
|
1915
|
+
[L, l.inputTranslateValue]
|
|
1916
1916
|
]),
|
|
1917
1917
|
s("p", {
|
|
1918
1918
|
id: e.field_name,
|
|
@@ -1963,7 +1963,7 @@ const Rd = /* @__PURE__ */ $(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1963
1963
|
], 2))
|
|
1964
1964
|
], 64));
|
|
1965
1965
|
}
|
|
1966
|
-
}, Ps = { class: "font-bold ptext-lg dark:text-white" }, Es = ["name", "id"], js = ["id"], As = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Ts = ["for"], Is = /* @__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), Ms = ["name", "id"], Ns = ["required", "name", "id", "type"],
|
|
1966
|
+
}, Ps = { class: "font-bold ptext-lg dark:text-white" }, Es = ["name", "id"], js = ["id"], As = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Ts = ["for"], Is = /* @__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), Ms = ["name", "id"], Ns = ["required", "name", "id", "type"], Ls = { class: "gl-span-form-error" }, Vs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, zd = {
|
|
1967
1967
|
__name: "GlTextTranslate",
|
|
1968
1968
|
props: {
|
|
1969
1969
|
is_required: {
|
|
@@ -2046,7 +2046,7 @@ const Rd = /* @__PURE__ */ $(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2046
2046
|
ref: "input_translate_s",
|
|
2047
2047
|
"onUpdate:modelValue": c[0] || (c[0] = (h) => l.inputTranslateValue = h)
|
|
2048
2048
|
}, null, 8, Es), [
|
|
2049
|
-
[
|
|
2049
|
+
[L, l.inputTranslateValue]
|
|
2050
2050
|
]),
|
|
2051
2051
|
s("p", {
|
|
2052
2052
|
id: e.field_name,
|
|
@@ -2091,8 +2091,8 @@ const Rd = /* @__PURE__ */ $(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2091
2091
|
ref_key: "input",
|
|
2092
2092
|
ref: a
|
|
2093
2093
|
}, null, 42, Ns),
|
|
2094
|
-
s("span",
|
|
2095
|
-
s("small",
|
|
2094
|
+
s("span", Ls, g(e.error_message), 1),
|
|
2095
|
+
s("small", Vs, g(e.description), 1)
|
|
2096
2096
|
], 2))
|
|
2097
2097
|
], 64));
|
|
2098
2098
|
}
|
|
@@ -2217,7 +2217,7 @@ function ea(e, t, r, n, o, a) {
|
|
|
2217
2217
|
s("i", {
|
|
2218
2218
|
class: b([i.icon, "mr-1 text-base"])
|
|
2219
2219
|
}, null, 2),
|
|
2220
|
-
|
|
2220
|
+
w(" " + g(i.title), 1)
|
|
2221
2221
|
], 2)
|
|
2222
2222
|
], 8, Ys))), 128))
|
|
2223
2223
|
])
|
|
@@ -2440,10 +2440,10 @@ const Kd = /* @__PURE__ */ $(ta, [["render", sa]]), aa = {
|
|
|
2440
2440
|
class: "flex justify-between pl-5 pr-5"
|
|
2441
2441
|
}, Ia = ["onClick"], Ma = /* @__PURE__ */ P(() => /* @__PURE__ */ s("span", null, null, -1)), Na = [
|
|
2442
2442
|
Ma
|
|
2443
|
-
],
|
|
2443
|
+
], La = {
|
|
2444
2444
|
key: 0,
|
|
2445
2445
|
class: "flex"
|
|
2446
|
-
},
|
|
2446
|
+
}, Va = { class: "flex items-center" }, Ba = { class: "w-full" }, Ga = {
|
|
2447
2447
|
key: 0,
|
|
2448
2448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2449
2449
|
class: "w-6 h-6",
|
|
@@ -2608,8 +2608,8 @@ function dn(e, t, r, n, o, a) {
|
|
|
2608
2608
|
onClick: (l) => a.setDot(i)
|
|
2609
2609
|
}, Na, 10, Ia))), 128))
|
|
2610
2610
|
], 2),
|
|
2611
|
-
e.dotsNum > 0 ? (d(), u("div",
|
|
2612
|
-
s("div",
|
|
2611
|
+
e.dotsNum > 0 ? (d(), u("div", La, [
|
|
2612
|
+
s("div", Va, [
|
|
2613
2613
|
s("div", Ba, [
|
|
2614
2614
|
s("button", {
|
|
2615
2615
|
class: b(["p-3 rounded-full arrow_button_styles", r.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
@@ -2793,7 +2793,7 @@ const Wd = /* @__PURE__ */ $(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2793
2793
|
}, [
|
|
2794
2794
|
s("div", pn, [
|
|
2795
2795
|
s("li", yn, [
|
|
2796
|
-
|
|
2796
|
+
w(g(e.label_name) + " ", 1),
|
|
2797
2797
|
s("label", _n, [
|
|
2798
2798
|
s("input", {
|
|
2799
2799
|
type: "checkbox",
|
|
@@ -2818,7 +2818,7 @@ const Wd = /* @__PURE__ */ $(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2818
2818
|
class: b(["mb-4", e.field_name])
|
|
2819
2819
|
}, [
|
|
2820
2820
|
s("li", kn, [
|
|
2821
|
-
|
|
2821
|
+
w(g(e.label_name) + " ", 1),
|
|
2822
2822
|
s("label", $n, [
|
|
2823
2823
|
O(s("input", {
|
|
2824
2824
|
type: "checkbox",
|
|
@@ -2844,7 +2844,7 @@ const Wd = /* @__PURE__ */ $(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2844
2844
|
}, Pn = { class: "font-bold ptext-lg dark:text-white" }, En = { class: "mt-3 mb-4" }, jn = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, An = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Tn = ["name", "id", "value"], In = {
|
|
2845
2845
|
key: 0,
|
|
2846
2846
|
class: "dropdown"
|
|
2847
|
-
}, Mn = { class: "border border-gray-200 rounded-lg focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, Nn = { class: "relative showOptions" },
|
|
2847
|
+
}, Mn = { class: "border border-gray-200 rounded-lg focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, Nn = { class: "relative showOptions" }, Ln = ["value", "placeholder"], Vn = { class: "text-gray-700 bg-white dark:border-strokedark dark:bg-boxdark dark:text-gray-200 !border-b !border-t-0 !border-r !border-l absolute w-full z-[999999999]" }, Bn = { class: "p-1" }, Gn = /* @__PURE__ */ s("label", {
|
|
2848
2848
|
for: "default-search",
|
|
2849
2849
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
2850
2850
|
}, "Search", -1), Fn = { class: "relative" }, Rn = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
@@ -2940,13 +2940,13 @@ const Wd = /* @__PURE__ */ $(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2940
2940
|
setup(e, { emit: t }) {
|
|
2941
2941
|
const r = e, n = t, o = S(null), a = S({}), i = S(0), l = S(!1), c = S(""), h = S("");
|
|
2942
2942
|
R(() => {
|
|
2943
|
-
h.value =
|
|
2943
|
+
h.value = V(), r.show || (document.body.addEventListener("click", (p) => {
|
|
2944
2944
|
ze(p);
|
|
2945
2945
|
}), document.addEventListener("keypress", (p) => {
|
|
2946
2946
|
p.key === "Enter" && p.target.form && p.preventDefault();
|
|
2947
2947
|
}));
|
|
2948
2948
|
});
|
|
2949
|
-
const m = G(() => Ke()), y = G(() => We()),
|
|
2949
|
+
const m = G(() => Ke()), y = G(() => We()), x = G(() => {
|
|
2950
2950
|
const p = [], D = new RegExp(c.value, "ig");
|
|
2951
2951
|
for (const E of m.value) {
|
|
2952
2952
|
const B = String(E.name);
|
|
@@ -2967,7 +2967,7 @@ const Wd = /* @__PURE__ */ $(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2967
2967
|
Ze(p.key);
|
|
2968
2968
|
}
|
|
2969
2969
|
}
|
|
2970
|
-
function
|
|
2970
|
+
function V() {
|
|
2971
2971
|
let p = (/* @__PURE__ */ new Date()).getTime();
|
|
2972
2972
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
2973
2973
|
/[xy]/g,
|
|
@@ -2992,20 +2992,20 @@ const Wd = /* @__PURE__ */ $(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2992
2992
|
E && E.click();
|
|
2993
2993
|
}
|
|
2994
2994
|
function Ze(p) {
|
|
2995
|
-
p === "ArrowDown" && i.value <
|
|
2995
|
+
p === "ArrowDown" && i.value < x.value.length && (i.value++, me(i.value)), p === "ArrowUp" && i.value > 1 && (i.value--, me(i.value)), p === "Enter" && He(i.value);
|
|
2996
2996
|
}
|
|
2997
2997
|
function Ke() {
|
|
2998
2998
|
return r.options.map((p, D) => typeof p == "object" ? p : { id: p, name: p });
|
|
2999
2999
|
}
|
|
3000
3000
|
function We() {
|
|
3001
3001
|
if (te(a.value))
|
|
3002
|
-
return
|
|
3002
|
+
return typeof a.value == "object" ? m.value.find(
|
|
3003
3003
|
(p) => String(p.id) === String(a.value.id)
|
|
3004
3004
|
) || {} : m.value.find(
|
|
3005
3005
|
(p) => String(p.id) === String(a.value)
|
|
3006
3006
|
) || {};
|
|
3007
3007
|
if (r.modelValue)
|
|
3008
|
-
return
|
|
3008
|
+
return typeof r.modelValue == "object" ? m.value.find(
|
|
3009
3009
|
(p) => String(p.id) === String(r.modelValue.id)
|
|
3010
3010
|
) || {} : m.value.find(
|
|
3011
3011
|
(p) => String(p.id) === String(r.modelValue)
|
|
@@ -3029,7 +3029,7 @@ const Wd = /* @__PURE__ */ $(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3029
3029
|
a.value.id || (a.value = {}, c.value = ""), n("selected", a.value), l.value = !1;
|
|
3030
3030
|
}
|
|
3031
3031
|
return Y(c, () => {
|
|
3032
|
-
|
|
3032
|
+
x.value.length === 0 && (a.value = {});
|
|
3033
3033
|
}), Y(a, (p) => {
|
|
3034
3034
|
te(p) && n("update:modelValue", p.id);
|
|
3035
3035
|
}), (p, D) => {
|
|
@@ -3077,7 +3077,7 @@ const Wd = /* @__PURE__ */ $(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3077
3077
|
placeholder: e.placeholder,
|
|
3078
3078
|
autocomplete: "off",
|
|
3079
3079
|
readonly: ""
|
|
3080
|
-
}, null, 10,
|
|
3080
|
+
}, null, 10, Ln),
|
|
3081
3081
|
O(s("i", {
|
|
3082
3082
|
onClick: D[1] || (D[1] = N((A) => Ye(), ["stop"])),
|
|
3083
3083
|
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
|
|
@@ -3091,7 +3091,7 @@ const Wd = /* @__PURE__ */ $(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3091
3091
|
style: { top: "11px" }
|
|
3092
3092
|
}, null, 2)
|
|
3093
3093
|
]),
|
|
3094
|
-
O(s("div",
|
|
3094
|
+
O(s("div", Vn, [
|
|
3095
3095
|
s("div", Bn, [
|
|
3096
3096
|
Gn,
|
|
3097
3097
|
s("div", Fn, [
|
|
@@ -3107,12 +3107,12 @@ const Wd = /* @__PURE__ */ $(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3107
3107
|
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",
|
|
3108
3108
|
placeholder: "Search ..."
|
|
3109
3109
|
}, null, 40, Un), [
|
|
3110
|
-
[
|
|
3110
|
+
[L, c.value]
|
|
3111
3111
|
])
|
|
3112
3112
|
])
|
|
3113
3113
|
]),
|
|
3114
3114
|
s("div", qn, [
|
|
3115
|
-
(d(!0), u(v, null, k(
|
|
3115
|
+
(d(!0), u(v, null, k(x.value, (A, se) => {
|
|
3116
3116
|
var _e;
|
|
3117
3117
|
return d(), u("div", {
|
|
3118
3118
|
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", se + 1 == i.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
@@ -3420,13 +3420,13 @@ function vo(e, t, r, n, o, a) {
|
|
|
3420
3420
|
default: J((l) => [
|
|
3421
3421
|
s("div", lo, [
|
|
3422
3422
|
l.computed.total > l.computed.perPage ? (d(), u("span", io, [
|
|
3423
|
-
|
|
3423
|
+
w(" Showing "),
|
|
3424
3424
|
s("span", uo, g(l.computed.from), 1),
|
|
3425
|
-
|
|
3425
|
+
w(" to "),
|
|
3426
3426
|
s("span", co, g(l.computed.to), 1),
|
|
3427
|
-
|
|
3427
|
+
w(" of "),
|
|
3428
3428
|
s("span", fo, g(l.computed.total), 1),
|
|
3429
|
-
|
|
3429
|
+
w(" Entries ")
|
|
3430
3430
|
])) : f("", !0),
|
|
3431
3431
|
l.computed.total > l.computed.perPage ? (d(), u("ul", W({ key: 1 }, e.$attrs, {
|
|
3432
3432
|
class: ["flex items-center h-8 -space-x-px text-sm", {
|
|
@@ -3514,6 +3514,7 @@ const xo = /* @__PURE__ */ $(oo, [["render", vo]]), wo = {
|
|
|
3514
3514
|
page: 1
|
|
3515
3515
|
};
|
|
3516
3516
|
},
|
|
3517
|
+
emits: ["editAction"],
|
|
3517
3518
|
computed: {
|
|
3518
3519
|
filteredData() {
|
|
3519
3520
|
const e = this.search.toLowerCase();
|
|
@@ -3523,6 +3524,9 @@ const xo = /* @__PURE__ */ $(oo, [["render", vo]]), wo = {
|
|
|
3523
3524
|
}
|
|
3524
3525
|
},
|
|
3525
3526
|
methods: {
|
|
3527
|
+
editAction(e) {
|
|
3528
|
+
console.log("editAction: ", e), this.$emit("editAction", e);
|
|
3529
|
+
},
|
|
3526
3530
|
forDynCompIs(e) {
|
|
3527
3531
|
return typeof e == "object" ? e : null;
|
|
3528
3532
|
},
|
|
@@ -3582,10 +3586,10 @@ const xo = /* @__PURE__ */ $(oo, [["render", vo]]), wo = {
|
|
|
3582
3586
|
], -1), Ao = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, To = { 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" }, Io = { class: "hidden text-sm font-normal text-center text-gray-500 lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-200" }, Mo = ["onClick"], No = {
|
|
3583
3587
|
key: 0,
|
|
3584
3588
|
class: "ml-2"
|
|
3585
|
-
},
|
|
3589
|
+
}, Lo = {
|
|
3586
3590
|
key: 0,
|
|
3587
3591
|
class: "fa fa-arrow-up"
|
|
3588
|
-
},
|
|
3592
|
+
}, Vo = {
|
|
3589
3593
|
key: 1,
|
|
3590
3594
|
class: "fa fa-arrow-down"
|
|
3591
3595
|
}, Bo = { key: 0 }, Go = ["colspan"], Fo = /* @__PURE__ */ s("div", {
|
|
@@ -3663,7 +3667,7 @@ function Ho(e, t, r, n, o, a) {
|
|
|
3663
3667
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
3664
3668
|
placeholder: "Search ..."
|
|
3665
3669
|
}, null, 544), [
|
|
3666
|
-
[
|
|
3670
|
+
[L, o.search]
|
|
3667
3671
|
])
|
|
3668
3672
|
])
|
|
3669
3673
|
]),
|
|
@@ -3676,9 +3680,9 @@ function Ho(e, t, r, n, o, a) {
|
|
|
3676
3680
|
onClick: (m) => a.updateSortColumn(c.field_name, c.sortable),
|
|
3677
3681
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3678
3682
|
}, [
|
|
3679
|
-
|
|
3683
|
+
w(g(c.field_label) + " ", 1),
|
|
3680
3684
|
o.sortField === c.field_name ? (d(), u("span", No, [
|
|
3681
|
-
o.sortOrder === "asc" ? (d(), u("i",
|
|
3685
|
+
o.sortOrder === "asc" ? (d(), u("i", Lo)) : (d(), u("i", Vo))
|
|
3682
3686
|
])) : f("", !0)
|
|
3683
3687
|
], 8, Mo))), 128))
|
|
3684
3688
|
])
|
|
@@ -3705,9 +3709,10 @@ function Ho(e, t, r, n, o, a) {
|
|
|
3705
3709
|
field: m.field_name,
|
|
3706
3710
|
xprops: r.xprops,
|
|
3707
3711
|
tdProps: m.tdProps,
|
|
3708
|
-
onDeleteAction: t[3] || (t[3] = (
|
|
3709
|
-
|
|
3710
|
-
|
|
3712
|
+
onDeleteAction: t[3] || (t[3] = (x) => a.GetItemLists()),
|
|
3713
|
+
onEditAction: (x) => a.editAction(c)
|
|
3714
|
+
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (d(), u(v, { key: 1 }, [
|
|
3715
|
+
w(g(c[m.field_name]), 1)
|
|
3711
3716
|
], 64))
|
|
3712
3717
|
])
|
|
3713
3718
|
], 8, Uo))), 128))
|
|
@@ -3910,7 +3915,7 @@ function jl(e, t, r, n, o, a) {
|
|
|
3910
3915
|
class: "block p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 w-80 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
3911
3916
|
placeholder: "Search ..."
|
|
3912
3917
|
}, null, 512), [
|
|
3913
|
-
[
|
|
3918
|
+
[L, o.search]
|
|
3914
3919
|
])
|
|
3915
3920
|
])
|
|
3916
3921
|
]),
|
|
@@ -3923,7 +3928,7 @@ function jl(e, t, r, n, o, a) {
|
|
|
3923
3928
|
onClick: (h) => a.sort(l),
|
|
3924
3929
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3925
3930
|
}, [
|
|
3926
|
-
|
|
3931
|
+
w(g(l) + " ", 1),
|
|
3927
3932
|
o.sortKey === l ? (d(), u("span", ll, g(o.sortOrder === 1 ? "▲" : "▼"), 1)) : f("", !0)
|
|
3928
3933
|
], 8, ol))), 128))
|
|
3929
3934
|
])
|
|
@@ -3965,13 +3970,13 @@ function jl(e, t, r, n, o, a) {
|
|
|
3965
3970
|
s("div", hl, [
|
|
3966
3971
|
s("div", null, [
|
|
3967
3972
|
s("p", ml, [
|
|
3968
|
-
|
|
3973
|
+
w(" Showing "),
|
|
3969
3974
|
s("span", bl, g(a.firstItemIndex), 1),
|
|
3970
|
-
|
|
3975
|
+
w(" to "),
|
|
3971
3976
|
s("span", pl, g(a.lastItemIndex), 1),
|
|
3972
|
-
|
|
3977
|
+
w(" of "),
|
|
3973
3978
|
s("span", yl, g(a.filteredData.length), 1),
|
|
3974
|
-
|
|
3979
|
+
w(" entries ")
|
|
3975
3980
|
])
|
|
3976
3981
|
]),
|
|
3977
3982
|
s("div", null, [
|
|
@@ -4036,10 +4041,10 @@ const tu = /* @__PURE__ */ $(Zo, [["render", jl]]), Al = {
|
|
|
4036
4041
|
], -1), Ml = /* @__PURE__ */ s("span", { class: "sr-only" }, "Check icon", -1), Nl = [
|
|
4037
4042
|
Il,
|
|
4038
4043
|
Ml
|
|
4039
|
-
],
|
|
4044
|
+
], Ll = {
|
|
4040
4045
|
key: 1,
|
|
4041
4046
|
class: "inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"
|
|
4042
|
-
},
|
|
4047
|
+
}, Vl = /* @__PURE__ */ s("svg", {
|
|
4043
4048
|
class: "w-5 h-5",
|
|
4044
4049
|
"aria-hidden": "true",
|
|
4045
4050
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4048,7 +4053,7 @@ const tu = /* @__PURE__ */ $(Zo, [["render", jl]]), Al = {
|
|
|
4048
4053
|
}, [
|
|
4049
4054
|
/* @__PURE__ */ s("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 11.793a1 1 0 1 1-1.414 1.414L10 11.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L8.586 10 6.293 7.707a1 1 0 0 1 1.414-1.414L10 8.586l2.293-2.293a1 1 0 0 1 1.414 1.414L11.414 10l2.293 2.293Z" })
|
|
4050
4055
|
], -1), Bl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Error icon", -1), Gl = [
|
|
4051
|
-
|
|
4056
|
+
Vl,
|
|
4052
4057
|
Bl
|
|
4053
4058
|
], Fl = {
|
|
4054
4059
|
key: 2,
|
|
@@ -4101,7 +4106,7 @@ const tu = /* @__PURE__ */ $(Zo, [["render", jl]]), Al = {
|
|
|
4101
4106
|
const n = t;
|
|
4102
4107
|
return (o, a) => (d(), u("div", Al, [
|
|
4103
4108
|
r.type === "success" ? (d(), u("div", Tl, Nl)) : f("", !0),
|
|
4104
|
-
r.type === "error" ? (d(), u("div",
|
|
4109
|
+
r.type === "error" ? (d(), u("div", Ll, Gl)) : f("", !0),
|
|
4105
4110
|
r.type === "warning" ? (d(), u("div", Fl, ql)) : f("", !0),
|
|
4106
4111
|
s("div", zl, g(r.message), 1),
|
|
4107
4112
|
s("button", {
|
|
@@ -4213,19 +4218,19 @@ const tu = /* @__PURE__ */ $(Zo, [["render", jl]]), Al = {
|
|
|
4213
4218
|
type: "success",
|
|
4214
4219
|
duration: 5e3
|
|
4215
4220
|
});
|
|
4216
|
-
}).catch((
|
|
4217
|
-
console.log(
|
|
4221
|
+
}).catch((x) => {
|
|
4222
|
+
console.log(x);
|
|
4218
4223
|
});
|
|
4219
4224
|
};
|
|
4220
|
-
return (
|
|
4221
|
-
const
|
|
4225
|
+
return (x, C) => {
|
|
4226
|
+
const V = De("click-outside");
|
|
4222
4227
|
return d(), u(v, null, [
|
|
4223
4228
|
Z(ue, {
|
|
4224
4229
|
isOpen: a.value,
|
|
4225
4230
|
onConfirmDelete: y,
|
|
4226
4231
|
onCancelDelete: c
|
|
4227
4232
|
}, null, 8, ["isOpen"]),
|
|
4228
|
-
e.row &&
|
|
4233
|
+
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? O((d(), u("div", Xl, [
|
|
4229
4234
|
s("button", {
|
|
4230
4235
|
onClick: l,
|
|
4231
4236
|
class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
@@ -4233,23 +4238,23 @@ const tu = /* @__PURE__ */ $(Zo, [["render", jl]]), Al = {
|
|
|
4233
4238
|
}, Ql),
|
|
4234
4239
|
O(s("div", ei, [
|
|
4235
4240
|
s("ul", ti, [
|
|
4236
|
-
|
|
4241
|
+
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li", ri, [
|
|
4237
4242
|
s("a", {
|
|
4238
4243
|
href: e.xprops.route + "/" + e.row.id + "/edit",
|
|
4239
4244
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4240
4245
|
}, [
|
|
4241
4246
|
ai,
|
|
4242
|
-
|
|
4247
|
+
w(" Edit")
|
|
4243
4248
|
], 8, si)
|
|
4244
4249
|
])) : f("", !0),
|
|
4245
|
-
|
|
4250
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", ni, [
|
|
4246
4251
|
s("a", {
|
|
4247
4252
|
href: "#",
|
|
4248
4253
|
onClick: N(h, ["prevent"]),
|
|
4249
4254
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4250
4255
|
}, [
|
|
4251
4256
|
oi,
|
|
4252
|
-
|
|
4257
|
+
w(" Remove")
|
|
4253
4258
|
])
|
|
4254
4259
|
])) : f("", !0)
|
|
4255
4260
|
])
|
|
@@ -4257,7 +4262,7 @@ const tu = /* @__PURE__ */ $(Zo, [["render", jl]]), Al = {
|
|
|
4257
4262
|
[F, o.value]
|
|
4258
4263
|
])
|
|
4259
4264
|
])), [
|
|
4260
|
-
[
|
|
4265
|
+
[V, i]
|
|
4261
4266
|
]) : f("", !0)
|
|
4262
4267
|
], 64);
|
|
4263
4268
|
};
|
|
@@ -4319,19 +4324,19 @@ const tu = /* @__PURE__ */ $(Zo, [["render", jl]]), Al = {
|
|
|
4319
4324
|
type: "success",
|
|
4320
4325
|
duration: 5e3
|
|
4321
4326
|
});
|
|
4322
|
-
}).catch((
|
|
4323
|
-
console.log(
|
|
4327
|
+
}).catch((x) => {
|
|
4328
|
+
console.log(x);
|
|
4324
4329
|
});
|
|
4325
4330
|
};
|
|
4326
|
-
return (
|
|
4327
|
-
const
|
|
4331
|
+
return (x, C) => {
|
|
4332
|
+
const V = De("click-outside");
|
|
4328
4333
|
return d(), u(v, null, [
|
|
4329
4334
|
Z(ue, {
|
|
4330
4335
|
isOpen: a.value,
|
|
4331
4336
|
onConfirmDelete: y,
|
|
4332
4337
|
onCancelDelete: c
|
|
4333
4338
|
}, null, 8, ["isOpen"]),
|
|
4334
|
-
e.row &&
|
|
4339
|
+
e.row && x.can(`delete_${e.xprops.permission}`) ? O((d(), u("div", li, [
|
|
4335
4340
|
s("button", {
|
|
4336
4341
|
onClick: l,
|
|
4337
4342
|
class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
@@ -4339,14 +4344,14 @@ const tu = /* @__PURE__ */ $(Zo, [["render", jl]]), Al = {
|
|
|
4339
4344
|
}, di),
|
|
4340
4345
|
O(s("div", ui, [
|
|
4341
4346
|
s("ul", ci, [
|
|
4342
|
-
|
|
4347
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", fi, [
|
|
4343
4348
|
s("a", {
|
|
4344
4349
|
href: "#",
|
|
4345
4350
|
onClick: N(h, ["prevent"]),
|
|
4346
4351
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4347
4352
|
}, [
|
|
4348
4353
|
gi,
|
|
4349
|
-
|
|
4354
|
+
w(" Remove")
|
|
4350
4355
|
])
|
|
4351
4356
|
])) : f("", !0)
|
|
4352
4357
|
])
|
|
@@ -4354,7 +4359,7 @@ const tu = /* @__PURE__ */ $(Zo, [["render", jl]]), Al = {
|
|
|
4354
4359
|
[F, o.value]
|
|
4355
4360
|
])
|
|
4356
4361
|
])), [
|
|
4357
|
-
[
|
|
4362
|
+
[V, i]
|
|
4358
4363
|
]) : f("", !0)
|
|
4359
4364
|
], 64);
|
|
4360
4365
|
};
|
|
@@ -4373,7 +4378,6 @@ const tu = /* @__PURE__ */ $(Zo, [["render", jl]]), Al = {
|
|
|
4373
4378
|
}
|
|
4374
4379
|
},
|
|
4375
4380
|
mounted() {
|
|
4376
|
-
console.log("row : ", this.row);
|
|
4377
4381
|
}
|
|
4378
4382
|
}, mi = ["href", "title"], bi = /* @__PURE__ */ s("svg", {
|
|
4379
4383
|
class: "w-3 h-3 text-white me-2",
|
|
@@ -4426,7 +4430,7 @@ function vi(e, t, r, n, o, a) {
|
|
|
4426
4430
|
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"
|
|
4427
4431
|
}, [
|
|
4428
4432
|
bi,
|
|
4429
|
-
|
|
4433
|
+
w(" Download ")
|
|
4430
4434
|
], 8, mi)
|
|
4431
4435
|
]))), 128)) : a.isString ? (d(), u("div", pi, [
|
|
4432
4436
|
s("a", {
|
|
@@ -4436,7 +4440,7 @@ function vi(e, t, r, n, o, a) {
|
|
|
4436
4440
|
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"
|
|
4437
4441
|
}, [
|
|
4438
4442
|
_i,
|
|
4439
|
-
|
|
4443
|
+
w(" Download ")
|
|
4440
4444
|
], 8, yi)
|
|
4441
4445
|
])) : f("", !0)
|
|
4442
4446
|
]);
|
|
@@ -4502,7 +4506,7 @@ function Di(e, t, r, n, o, a) {
|
|
|
4502
4506
|
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"
|
|
4503
4507
|
}, [
|
|
4504
4508
|
ki,
|
|
4505
|
-
|
|
4509
|
+
w(" Download ")
|
|
4506
4510
|
], 8, wi)
|
|
4507
4511
|
]))), 128)) : a.isObject ? (d(), u("div", $i, [
|
|
4508
4512
|
s("a", {
|
|
@@ -4512,7 +4516,7 @@ function Di(e, t, r, n, o, a) {
|
|
|
4512
4516
|
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"
|
|
4513
4517
|
}, [
|
|
4514
4518
|
Si,
|
|
4515
|
-
|
|
4519
|
+
w(" Download ")
|
|
4516
4520
|
], 8, Ci)
|
|
4517
4521
|
])) : f("", !0)
|
|
4518
4522
|
]);
|
|
@@ -4556,10 +4560,10 @@ function Mi(e, t, r, n, o, a) {
|
|
|
4556
4560
|
}
|
|
4557
4561
|
const iu = /* @__PURE__ */ $(Ai, [["render", Mi]]), Ni = {
|
|
4558
4562
|
props: ["field", "row", "tdProps"]
|
|
4559
|
-
},
|
|
4563
|
+
}, Li = { key: 0 }, Vi = { class: "m-1 d-inline-block" }, Bi = ["href", "title"], Gi = ["src", "alt", "title"];
|
|
4560
4564
|
function Fi(e, t, r, n, o, a) {
|
|
4561
|
-
return r.row[r.field] ? (d(), u("div",
|
|
4562
|
-
s("div",
|
|
4565
|
+
return r.row[r.field] ? (d(), u("div", Li, [
|
|
4566
|
+
s("div", Vi, [
|
|
4563
4567
|
s("a", {
|
|
4564
4568
|
href: r.row[r.field].url,
|
|
4565
4569
|
title: r.row[r.field].name,
|
|
@@ -4592,10 +4596,10 @@ function Ki(e, t, r, n, o, a) {
|
|
|
4592
4596
|
return d(), u("div", Ui, [
|
|
4593
4597
|
a.isActive ? (d(), u("span", qi, [
|
|
4594
4598
|
zi,
|
|
4595
|
-
|
|
4599
|
+
w(" Active ")
|
|
4596
4600
|
])) : a.isActive ? f("", !0) : (d(), u("span", Hi, [
|
|
4597
4601
|
Zi,
|
|
4598
|
-
|
|
4602
|
+
w(" Inactive ")
|
|
4599
4603
|
]))
|
|
4600
4604
|
]);
|
|
4601
4605
|
}
|
|
@@ -4632,23 +4636,23 @@ function ld(e, t, r, n, o, a) {
|
|
|
4632
4636
|
return d(), u("div", Yi, [
|
|
4633
4637
|
a.hasLabelColor == "green" ? (d(), u("span", Xi, [
|
|
4634
4638
|
Ji,
|
|
4635
|
-
|
|
4639
|
+
w(" " + g(this.row[this.field]), 1)
|
|
4636
4640
|
])) : f("", !0),
|
|
4637
4641
|
a.hasLabelColor == "red" ? (d(), u("span", Qi, [
|
|
4638
4642
|
ed,
|
|
4639
|
-
|
|
4643
|
+
w(" " + g(this.row[this.field]), 1)
|
|
4640
4644
|
])) : f("", !0),
|
|
4641
4645
|
a.hasLabelColor == "yellow" ? (d(), u("span", td, [
|
|
4642
4646
|
rd,
|
|
4643
|
-
|
|
4647
|
+
w(" " + g(this.row[this.field]), 1)
|
|
4644
4648
|
])) : f("", !0),
|
|
4645
4649
|
a.hasLabelColor == "default" ? (d(), u("span", sd, [
|
|
4646
4650
|
ad,
|
|
4647
|
-
|
|
4651
|
+
w(" " + g(this.row[this.field]), 1)
|
|
4648
4652
|
])) : f("", !0),
|
|
4649
4653
|
a.hasLabelColor == "animate" ? (d(), u("span", nd, [
|
|
4650
4654
|
od,
|
|
4651
|
-
|
|
4655
|
+
w(" " + g(this.row[this.field]), 1)
|
|
4652
4656
|
])) : f("", !0)
|
|
4653
4657
|
]);
|
|
4654
4658
|
}
|
|
@@ -4748,15 +4752,15 @@ function wd(e, t, r, n, o, a) {
|
|
|
4748
4752
|
return d(), u("div", md, [
|
|
4749
4753
|
r.row[r.field] === 0 ? (d(), u("span", bd, [
|
|
4750
4754
|
pd,
|
|
4751
|
-
|
|
4755
|
+
w(" Connecting")
|
|
4752
4756
|
])) : f("", !0),
|
|
4753
4757
|
r.row[r.field] === 2 ? (d(), u("span", yd, [
|
|
4754
4758
|
_d,
|
|
4755
|
-
|
|
4759
|
+
w(" Paused ")
|
|
4756
4760
|
])) : f("", !0),
|
|
4757
4761
|
r.row[r.field] === 1 ? (d(), u("span", vd, [
|
|
4758
4762
|
xd,
|
|
4759
|
-
|
|
4763
|
+
w(" Active ")
|
|
4760
4764
|
])) : f("", !0)
|
|
4761
4765
|
]);
|
|
4762
4766
|
}
|
|
@@ -4835,12 +4839,12 @@ export {
|
|
|
4835
4839
|
fu as GlDatatableStatusSpecficColor,
|
|
4836
4840
|
ue as GlDeleteConfirmationModal,
|
|
4837
4841
|
Jd as GlDropdown,
|
|
4838
|
-
|
|
4842
|
+
Ld as GlFilesUpload,
|
|
4839
4843
|
Bd as GlLanguageSelector,
|
|
4840
4844
|
Yd as GlModal,
|
|
4841
4845
|
Wd as GlMultiItemSlide,
|
|
4842
4846
|
Fd as GlMultiSelectDropdown,
|
|
4843
|
-
|
|
4847
|
+
Vd as GlNotify,
|
|
4844
4848
|
Kd as GlTab,
|
|
4845
4849
|
Zd as GlTabsWrapper,
|
|
4846
4850
|
xo as GlTailwindPagination,
|