golden-logic-ui 0.0.18 → 0.0.20
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 +109 -109
- package/dist/golden-logic-ui.umd.cjs +2 -2
- 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 g, createStaticVNode as De, watch as Q, inject as de, effectScope as Pe, reactive as Ee, computed as je, resolveComponent as U, Fragment as y, createVNode as B, normalizeClass as p, toDisplayString as f, withModifiers as
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as De, watch as Q, inject as de, effectScope as Pe, reactive as Ee, computed as je, resolveComponent as U, Fragment as y, createVNode as B, normalizeClass as p, toDisplayString as f, withModifiers as I, withDirectives as C, vModelText as A, renderList as w, normalizeStyle as Ie, renderSlot as P, createTextVNode as v, vShow as T, createBlock as q, resolveDynamicComponent as W, mergeProps as R, withCtx as X, ref as S, onMounted as G, provide as Ae, pushScopeId as Te, popScopeId as Ne, toHandlers as Z, resolveDirective as ue, markRaw as Me } from "vue";
|
|
2
2
|
const k = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
4
|
for (const [n, a] of t)
|
|
@@ -800,9 +800,9 @@ O.prototype._withCommit = function(t) {
|
|
|
800
800
|
this._committing = !0, t(), this._committing = r;
|
|
801
801
|
};
|
|
802
802
|
Object.defineProperties(O.prototype, se);
|
|
803
|
-
var bt =
|
|
803
|
+
var bt = Se(function(e, t) {
|
|
804
804
|
var r = {};
|
|
805
|
-
return process.env.NODE_ENV !== "production" && !ne(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),
|
|
805
|
+
return process.env.NODE_ENV !== "production" && !ne(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"), Ce(t).forEach(function(n) {
|
|
806
806
|
var a = n.key, o = n.val;
|
|
807
807
|
r[a] = function() {
|
|
808
808
|
var i = this.$store.state, c = this.$store.getters;
|
|
@@ -815,9 +815,9 @@ var bt = Ce(function(e, t) {
|
|
|
815
815
|
return typeof o == "function" ? o.call(this, i, c) : i[o];
|
|
816
816
|
}, r[a].vuex = !0;
|
|
817
817
|
}), r;
|
|
818
|
-
}), yt =
|
|
818
|
+
}), yt = Se(function(e, t) {
|
|
819
819
|
var r = {};
|
|
820
|
-
return process.env.NODE_ENV !== "production" && !ne(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),
|
|
820
|
+
return process.env.NODE_ENV !== "production" && !ne(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"), Ce(t).forEach(function(n) {
|
|
821
821
|
var a = n.key, o = n.val;
|
|
822
822
|
r[a] = function() {
|
|
823
823
|
for (var i = [], c = arguments.length; c--; )
|
|
@@ -833,7 +833,7 @@ var bt = Ce(function(e, t) {
|
|
|
833
833
|
};
|
|
834
834
|
}), r;
|
|
835
835
|
});
|
|
836
|
-
function
|
|
836
|
+
function Ce(e) {
|
|
837
837
|
return ne(e) ? Array.isArray(e) ? e.map(function(t) {
|
|
838
838
|
return { key: t, val: t };
|
|
839
839
|
}) : Object.keys(e).map(function(t) {
|
|
@@ -843,7 +843,7 @@ function Se(e) {
|
|
|
843
843
|
function ne(e) {
|
|
844
844
|
return Array.isArray(e) || ge(e);
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Se(e) {
|
|
847
847
|
return function(t, r) {
|
|
848
848
|
return typeof t != "string" ? (r = t, t = "") : t.charAt(t.length - 1) !== "/" && (t += "/"), e(t, r);
|
|
849
849
|
};
|
|
@@ -1016,15 +1016,15 @@ const vt = {
|
|
|
1016
1016
|
"stroke-width": "2",
|
|
1017
1017
|
d: "M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"
|
|
1018
1018
|
})
|
|
1019
|
-
], -1),
|
|
1019
|
+
], -1), Ct = /* @__PURE__ */ s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, " Drag & drop files or browse ", -1), St = [
|
|
1020
1020
|
$t,
|
|
1021
|
-
|
|
1021
|
+
Ct
|
|
1022
1022
|
], Ot = { key: 1 }, Dt = /* @__PURE__ */ s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, "Drop files here", -1), Pt = [
|
|
1023
1023
|
Dt
|
|
1024
|
-
], Et = { class: "mt-2 gl-span-form-error" }, jt = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" },
|
|
1024
|
+
], Et = { class: "mt-2 gl-span-form-error" }, jt = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" }, It = {
|
|
1025
1025
|
key: 0,
|
|
1026
1026
|
class: ""
|
|
1027
|
-
},
|
|
1027
|
+
}, At = { 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" }, Tt = /* @__PURE__ */ s("i", { class: "text-3xl fas fa-file-alt" }, null, -1), Nt = { class: "w-full ml-3" }, Mt = { class: "flex items-center justify-between mb-1" }, Vt = { class: "text-xs text-black dark:text-white" }, Lt = { class: "text-xs text-black dark:text-white" }, Bt = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, Gt = { class: "overflow-x-scroll max-h-56" }, Ft = { 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" }, Rt = { class: "flex items-center" }, Ut = /* @__PURE__ */ s("i", {
|
|
1028
1028
|
class: "text-3xl fas fa-file-alt",
|
|
1029
1029
|
"aria-hidden": "true"
|
|
1030
1030
|
}, null, -1), qt = { class: "flex flex-col ml-3" }, Ht = { class: "text-xs" }, zt = { class: "text-xs" }, Zt = { class: "flex gap-2" }, Kt = ["href"], Wt = ["onClick"];
|
|
@@ -1050,9 +1050,9 @@ function Xt(e, t, r, n, a, o) {
|
|
|
1050
1050
|
})
|
|
1051
1051
|
}, f(r.label_name), 3),
|
|
1052
1052
|
s("div", {
|
|
1053
|
-
onDragover: t[3] || (t[3] =
|
|
1054
|
-
onDragleave: t[4] || (t[4] =
|
|
1055
|
-
onDrop: t[5] || (t[5] =
|
|
1053
|
+
onDragover: t[3] || (t[3] = I((...i) => o.onDragOver && o.onDragOver(...i), ["prevent"])),
|
|
1054
|
+
onDragleave: t[4] || (t[4] = I((...i) => o.onDragLeave && o.onDragLeave(...i), ["prevent"])),
|
|
1055
|
+
onDrop: t[5] || (t[5] = I((...i) => o.onDrop && o.onDrop(...i), ["prevent"])),
|
|
1056
1056
|
class: "flex flex-col items-center justify-center w-full h-40 mt-3 mb-3 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600"
|
|
1057
1057
|
}, [
|
|
1058
1058
|
s("div", xt, [
|
|
@@ -1063,24 +1063,24 @@ function Xt(e, t, r, n, a, o) {
|
|
|
1063
1063
|
multiple: r.has_multiple_file,
|
|
1064
1064
|
onChange: t[0] || (t[0] = (...i) => o.uploadFiles && o.uploadFiles(...i))
|
|
1065
1065
|
}, null, 40, wt),
|
|
1066
|
-
|
|
1066
|
+
C(s("input", {
|
|
1067
1067
|
type: "hidden",
|
|
1068
1068
|
name: r.field_name,
|
|
1069
1069
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => o.uploadedFileIds = i)
|
|
1070
1070
|
}, null, 8, kt), [
|
|
1071
|
-
[
|
|
1071
|
+
[A, o.uploadedFileIds]
|
|
1072
1072
|
]),
|
|
1073
1073
|
a.isDragging ? (d(), u("div", Ot, Pt)) : (d(), u("div", {
|
|
1074
1074
|
key: 0,
|
|
1075
1075
|
class: "flex flex-col items-center justify-center",
|
|
1076
1076
|
onClick: t[2] || (t[2] = (i) => e.$refs["file_input" + this.field_name].click())
|
|
1077
|
-
},
|
|
1077
|
+
}, St))
|
|
1078
1078
|
])
|
|
1079
1079
|
], 32),
|
|
1080
1080
|
s("span", Et, f(a.error_message_data), 1),
|
|
1081
1081
|
s("small", jt, f(r.description), 1),
|
|
1082
|
-
a.files.length > 0 ? (d(), u("section",
|
|
1083
|
-
(d(!0), u(y, null, w(a.files, (i, c) => (d(), u("li",
|
|
1082
|
+
a.files.length > 0 ? (d(), u("section", It, [
|
|
1083
|
+
(d(!0), u(y, null, w(a.files, (i, c) => (d(), u("li", At, [
|
|
1084
1084
|
Tt,
|
|
1085
1085
|
s("div", Nt, [
|
|
1086
1086
|
s("div", Mt, [
|
|
@@ -1090,7 +1090,7 @@ function Xt(e, t, r, n, a, o) {
|
|
|
1090
1090
|
s("div", Bt, [
|
|
1091
1091
|
s("div", {
|
|
1092
1092
|
class: "h-full bg-gray-500 rounded-full dark:bg-gray-400",
|
|
1093
|
-
style:
|
|
1093
|
+
style: Ie({ width: i.loading + "%" })
|
|
1094
1094
|
}, null, 4)
|
|
1095
1095
|
])
|
|
1096
1096
|
])
|
|
@@ -1124,7 +1124,7 @@ function Xt(e, t, r, n, a, o) {
|
|
|
1124
1124
|
], 2)
|
|
1125
1125
|
], 64);
|
|
1126
1126
|
}
|
|
1127
|
-
const
|
|
1127
|
+
const Il = /* @__PURE__ */ k(vt, [["render", Xt]]), Yt = {
|
|
1128
1128
|
computed: {
|
|
1129
1129
|
...bt("notification", ["notification"]),
|
|
1130
1130
|
alertClasses() {
|
|
@@ -1216,7 +1216,7 @@ function nr(e, t, r, n, a, o) {
|
|
|
1216
1216
|
}, sr, 2)
|
|
1217
1217
|
], 2)) : g("", !0);
|
|
1218
1218
|
}
|
|
1219
|
-
const
|
|
1219
|
+
const Al = /* @__PURE__ */ k(Yt, [["render", nr]]), or = {
|
|
1220
1220
|
components: {},
|
|
1221
1221
|
props: {
|
|
1222
1222
|
field_name: {
|
|
@@ -1393,7 +1393,7 @@ const Nl = /* @__PURE__ */ k(ur, [["render", _r]]), pr = {
|
|
|
1393
1393
|
return e;
|
|
1394
1394
|
}
|
|
1395
1395
|
},
|
|
1396
|
-
emits: ["update:modelValue", "selected"],
|
|
1396
|
+
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
1397
1397
|
methods: {
|
|
1398
1398
|
selectAll() {
|
|
1399
1399
|
this.selected = this.convertedOptions();
|
|
@@ -1449,7 +1449,7 @@ const Nl = /* @__PURE__ */ k(ur, [["render", _r]]), pr = {
|
|
|
1449
1449
|
this.filteredOptions.length;
|
|
1450
1450
|
},
|
|
1451
1451
|
selected(e) {
|
|
1452
|
-
this.selectedIds = e.map((t) => t.id), this.$emit("update:modelValue", this.selectedIds), this.$emit("selected", this.selectedIds);
|
|
1452
|
+
this.selectedIds = e.map((t) => t.id), this.$emit("update:modelValue", this.selectedIds), this.$emit("selected", this.selectedIds), this.$emit("selectionChanged", this.selectedIds);
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
1455
|
}, br = { class: "font-bold ptext-lg dark:text-white" }, yr = { class: "mt-3 mb-4" }, vr = { 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" }, xr = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), wr = ["name", "value"], kr = {
|
|
@@ -1458,10 +1458,10 @@ const Nl = /* @__PURE__ */ k(ur, [["render", _r]]), pr = {
|
|
|
1458
1458
|
}, $r = {
|
|
1459
1459
|
class: "inline-flex ml-2 rounded-md shadow-sm",
|
|
1460
1460
|
role: "group"
|
|
1461
|
-
},
|
|
1461
|
+
}, Cr = { 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" }, Sr = { class: "relative" }, Or = ["onClick"], Dr = { 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] showOptions" }, Pr = { class: "p-1" }, Er = /* @__PURE__ */ s("label", {
|
|
1462
1462
|
for: "default-search",
|
|
1463
1463
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
1464
|
-
}, "Search", -1), jr = { class: "relative" },
|
|
1464
|
+
}, "Search", -1), jr = { class: "relative" }, Ir = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
1465
1465
|
/* @__PURE__ */ s("svg", {
|
|
1466
1466
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
1467
1467
|
"aria-hidden": "true",
|
|
@@ -1477,7 +1477,7 @@ const Nl = /* @__PURE__ */ k(ur, [["render", _r]]), pr = {
|
|
|
1477
1477
|
d: "m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
|
|
1478
1478
|
})
|
|
1479
1479
|
])
|
|
1480
|
-
], -1),
|
|
1480
|
+
], -1), Ar = ["id"], Tr = { class: "overflow-y-auto max-h-64" }, Nr = ["onClick", "onMousedown", "id"];
|
|
1481
1481
|
function Mr(e, t, r, n, a, o) {
|
|
1482
1482
|
return d(), u(y, null, [
|
|
1483
1483
|
r.show ? (d(), u("div", {
|
|
@@ -1520,8 +1520,8 @@ function Mr(e, t, r, n, a, o) {
|
|
|
1520
1520
|
class: "px-4 py-0 text-sm font-medium text-gray-900 bg-transparent border border-gray-900 rounded-e-md hover:bg-gray-900 hover:text-white focus:z-10 focus:bg-gray-900 focus:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700"
|
|
1521
1521
|
}, " Deselect all ")
|
|
1522
1522
|
]),
|
|
1523
|
-
s("div",
|
|
1524
|
-
s("div",
|
|
1523
|
+
s("div", Cr, [
|
|
1524
|
+
s("div", Sr, [
|
|
1525
1525
|
s("div", {
|
|
1526
1526
|
class: "flex flex-wrap gap-2 pl-8 pr-2 gl-multi-dropdown showOptions",
|
|
1527
1527
|
onClick: t[2] || (t[2] = (l) => o.showOptions())
|
|
@@ -1532,7 +1532,7 @@ function Mr(e, t, r, n, a, o) {
|
|
|
1532
1532
|
}, [
|
|
1533
1533
|
v(f(l.name) + " ", 1),
|
|
1534
1534
|
s("i", {
|
|
1535
|
-
onClick:
|
|
1535
|
+
onClick: I((c) => o.clearOption(l), ["stop"]),
|
|
1536
1536
|
class: "cursor-pointer pointer-events-auto hover:text-red-600 dark:hover:text-red-400 fas fa-times"
|
|
1537
1537
|
}, null, 8, Or)
|
|
1538
1538
|
]))), 128))
|
|
@@ -1542,12 +1542,12 @@ function Mr(e, t, r, n, a, o) {
|
|
|
1542
1542
|
style: { top: "11px" }
|
|
1543
1543
|
}, null, 2)
|
|
1544
1544
|
]),
|
|
1545
|
-
|
|
1545
|
+
C(s("div", Dr, [
|
|
1546
1546
|
s("div", Pr, [
|
|
1547
1547
|
Er,
|
|
1548
1548
|
s("div", jr, [
|
|
1549
|
-
|
|
1550
|
-
|
|
1549
|
+
Ir,
|
|
1550
|
+
C(s("input", {
|
|
1551
1551
|
type: "search",
|
|
1552
1552
|
"onUpdate:modelValue": t[3] || (t[3] = (l) => a.searchFilter = l),
|
|
1553
1553
|
id: r.field_name + "search",
|
|
@@ -1556,8 +1556,8 @@ function Mr(e, t, r, n, a, o) {
|
|
|
1556
1556
|
autocomplete: "off",
|
|
1557
1557
|
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",
|
|
1558
1558
|
placeholder: "Search ..."
|
|
1559
|
-
}, null, 40,
|
|
1560
|
-
[
|
|
1559
|
+
}, null, 40, Ar), [
|
|
1560
|
+
[A, a.searchFilter]
|
|
1561
1561
|
])
|
|
1562
1562
|
])
|
|
1563
1563
|
]),
|
|
@@ -1736,7 +1736,7 @@ const Vl = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1736
1736
|
},
|
|
1737
1737
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1738
1738
|
setup(e, { expose: t, emit: r }) {
|
|
1739
|
-
const n = e, a = r, o =
|
|
1739
|
+
const n = e, a = r, o = S(null), l = S(null);
|
|
1740
1740
|
return G(() => {
|
|
1741
1741
|
o.value !== null && o.value.hasAttribute("autofocus") && o.value.focus(), n.model_value && (a("update:modelValue", n.model_value), o.value.value = n.model_value), n.model_value_translate, n.translatable && axios.post("/admin/get_field_translations", {
|
|
1742
1742
|
model: n.translatable.model,
|
|
@@ -1753,7 +1753,7 @@ const Vl = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1753
1753
|
class: p(e.field_name)
|
|
1754
1754
|
}, [
|
|
1755
1755
|
s("h3", Gr, f(e.label_name), 1),
|
|
1756
|
-
|
|
1756
|
+
C(s("input", {
|
|
1757
1757
|
type: "hidden",
|
|
1758
1758
|
"data-i18n": "true",
|
|
1759
1759
|
name: e.field_name + "_i18n",
|
|
@@ -1762,7 +1762,7 @@ const Vl = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1762
1762
|
ref: l,
|
|
1763
1763
|
"onUpdate:modelValue": c[0] || (c[0] = (h) => i.inputTranslateValue = h)
|
|
1764
1764
|
}, null, 8, Fr), [
|
|
1765
|
-
[
|
|
1765
|
+
[A, i.inputTranslateValue]
|
|
1766
1766
|
]),
|
|
1767
1767
|
s("p", {
|
|
1768
1768
|
id: e.field_name,
|
|
@@ -1872,7 +1872,7 @@ const Vl = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1872
1872
|
},
|
|
1873
1873
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1874
1874
|
setup(e, { expose: t, emit: r }) {
|
|
1875
|
-
const n = e, a = r, o =
|
|
1875
|
+
const n = e, a = r, o = S(null), l = S(null);
|
|
1876
1876
|
return G(() => {
|
|
1877
1877
|
tinymce.init({
|
|
1878
1878
|
selector: "#" + n.field_name,
|
|
@@ -1893,7 +1893,7 @@ const Vl = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1893
1893
|
class: p(e.field_name)
|
|
1894
1894
|
}, [
|
|
1895
1895
|
s("h3", Xr, f(e.label_name), 1),
|
|
1896
|
-
|
|
1896
|
+
C(s("input", {
|
|
1897
1897
|
type: "hidden",
|
|
1898
1898
|
"data-i18n": "true",
|
|
1899
1899
|
name: e.field_name + "_i18n",
|
|
@@ -1902,7 +1902,7 @@ const Vl = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1902
1902
|
ref: l,
|
|
1903
1903
|
"onUpdate:modelValue": c[0] || (c[0] = (h) => i.inputTranslateValue = h)
|
|
1904
1904
|
}, null, 8, Yr), [
|
|
1905
|
-
[
|
|
1905
|
+
[A, i.inputTranslateValue]
|
|
1906
1906
|
]),
|
|
1907
1907
|
s("p", {
|
|
1908
1908
|
id: e.field_name,
|
|
@@ -2011,7 +2011,7 @@ const Vl = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
2011
2011
|
},
|
|
2012
2012
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
2013
2013
|
setup(e, { expose: t, emit: r }) {
|
|
2014
|
-
const n = e, a = r, o =
|
|
2014
|
+
const n = e, a = r, o = S(null), l = S(null);
|
|
2015
2015
|
return G(() => {
|
|
2016
2016
|
o.value !== null && o.value.hasAttribute("autofocus") && o.value.focus(), n.model_value && (a("update:modelValue", n.model_value), o.value.value = n.model_value), n.model_value_translate, n.translatable && axios.post("/admin/get_field_translations", {
|
|
2017
2017
|
model: n.translatable.model,
|
|
@@ -2028,7 +2028,7 @@ const Vl = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
2028
2028
|
class: p(e.field_name)
|
|
2029
2029
|
}, [
|
|
2030
2030
|
s("h3", as, f(e.label_name), 1),
|
|
2031
|
-
|
|
2031
|
+
C(s("input", {
|
|
2032
2032
|
type: "hidden",
|
|
2033
2033
|
"data-i18n": "true",
|
|
2034
2034
|
name: e.field_name + "_i18n",
|
|
@@ -2036,7 +2036,7 @@ const Vl = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
2036
2036
|
ref: "input_translate_s",
|
|
2037
2037
|
"onUpdate:modelValue": c[0] || (c[0] = (h) => i.inputTranslateValue = h)
|
|
2038
2038
|
}, null, 8, is), [
|
|
2039
|
-
[
|
|
2039
|
+
[A, i.inputTranslateValue]
|
|
2040
2040
|
]),
|
|
2041
2041
|
s("p", {
|
|
2042
2042
|
id: e.field_name,
|
|
@@ -2128,7 +2128,7 @@ const Vl = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
2128
2128
|
},
|
|
2129
2129
|
emits: ["update:modelValue", "keydown"],
|
|
2130
2130
|
setup(e, { expose: t, emit: r }) {
|
|
2131
|
-
const n = e, a = r, o =
|
|
2131
|
+
const n = e, a = r, o = S(null);
|
|
2132
2132
|
return G(() => {
|
|
2133
2133
|
o.value !== null && o.value.hasAttribute("autofocus") && o.value.focus(), n.model_value != "" && (a("update:modelValue", n.model_value), o.value.value = n.model_value), n.modelValue != "" && (a("update:modelValue", n.modelValue), o.value.value = n.modelValue);
|
|
2134
2134
|
}), t({ focus: () => o.value.focus() }), (l, i) => (d(), u(y, null, [
|
|
@@ -2173,18 +2173,18 @@ const Vl = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
2173
2173
|
}
|
|
2174
2174
|
}, ks = {
|
|
2175
2175
|
setup(e, { slots: t }) {
|
|
2176
|
-
const r =
|
|
2177
|
-
return
|
|
2176
|
+
const r = S(t.default().map((a) => a.props)), n = S(r.value[0].title);
|
|
2177
|
+
return Ae("selectedTitle", n), {
|
|
2178
2178
|
tabs: r,
|
|
2179
2179
|
selectedTitle: n
|
|
2180
2180
|
};
|
|
2181
2181
|
}
|
|
2182
|
-
}, $s = { class: "flex flex-wrap" },
|
|
2182
|
+
}, $s = { class: "flex flex-wrap" }, Cs = { class: "w-full" }, Ss = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" }, Os = ["onClick"], Ds = { class: "relative flex flex-col w-full min-w-0 mb-6 break-words bg-white rounded shadow-lg dark:border-strokedark dark:bg-boxdark" }, Ps = { class: "flex-auto px-4 py-5" }, Es = { class: "tab-content tab-space" };
|
|
2183
2183
|
function js(e, t, r, n, a, o) {
|
|
2184
2184
|
return d(), u(y, null, [
|
|
2185
2185
|
s("div", $s, [
|
|
2186
|
-
s("div",
|
|
2187
|
-
s("ul",
|
|
2186
|
+
s("div", Cs, [
|
|
2187
|
+
s("ul", Ss, [
|
|
2188
2188
|
(d(!0), u(y, null, w(n.tabs, (l) => (d(), u("li", {
|
|
2189
2189
|
key: l.title,
|
|
2190
2190
|
onClick: (i) => n.selectedTitle = l.title,
|
|
@@ -2211,22 +2211,22 @@ function js(e, t, r, n, a, o) {
|
|
|
2211
2211
|
])
|
|
2212
2212
|
], 64);
|
|
2213
2213
|
}
|
|
2214
|
-
const Rl = /* @__PURE__ */ k(ks, [["render", js]]),
|
|
2214
|
+
const Rl = /* @__PURE__ */ k(ks, [["render", js]]), Is = {
|
|
2215
2215
|
props: ["title"],
|
|
2216
2216
|
setup() {
|
|
2217
2217
|
return {
|
|
2218
2218
|
selectedTitle: de("selectedTitle")
|
|
2219
2219
|
};
|
|
2220
2220
|
}
|
|
2221
|
-
},
|
|
2221
|
+
}, As = { class: "block" };
|
|
2222
2222
|
function Ts(e, t, r, n, a, o) {
|
|
2223
|
-
return
|
|
2223
|
+
return C((d(), u("div", As, [
|
|
2224
2224
|
P(e.$slots, "default")
|
|
2225
2225
|
], 512)), [
|
|
2226
2226
|
[T, r.title == n.selectedTitle]
|
|
2227
2227
|
]);
|
|
2228
2228
|
}
|
|
2229
|
-
const Ul = /* @__PURE__ */ k(
|
|
2229
|
+
const Ul = /* @__PURE__ */ k(Is, [["render", Ts]]), Ns = {
|
|
2230
2230
|
props: {
|
|
2231
2231
|
elements_to_show_prop: {
|
|
2232
2232
|
type: Number,
|
|
@@ -2450,7 +2450,7 @@ const Ul = /* @__PURE__ */ k(As, [["render", Ts]]), Ns = {
|
|
|
2450
2450
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2451
2451
|
}, null, -1)), kn = [
|
|
2452
2452
|
wn
|
|
2453
|
-
], $n = { class: "flex items-center" },
|
|
2453
|
+
], $n = { class: "flex items-center" }, Cn = { class: "w-full" }, Sn = {
|
|
2454
2454
|
key: 0,
|
|
2455
2455
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2456
2456
|
class: "w-6 h-6",
|
|
@@ -2478,10 +2478,10 @@ const Ul = /* @__PURE__ */ k(As, [["render", Ts]]), Ns = {
|
|
|
2478
2478
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2479
2479
|
}, null, -1)), jn = [
|
|
2480
2480
|
En
|
|
2481
|
-
],
|
|
2481
|
+
], In = {
|
|
2482
2482
|
key: 1,
|
|
2483
2483
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2484
|
-
},
|
|
2484
|
+
}, An = { class: "w-full" }, Tn = {
|
|
2485
2485
|
key: 0,
|
|
2486
2486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2487
2487
|
class: "w-6 h-6",
|
|
@@ -2542,7 +2542,7 @@ function Gn(e, t, r, n, a, o) {
|
|
|
2542
2542
|
s("div", Zs, [
|
|
2543
2543
|
s("button", {
|
|
2544
2544
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2545
|
-
onClick: t[1] || (t[1] =
|
|
2545
|
+
onClick: t[1] || (t[1] = I((l) => o.prev(), ["stop"]))
|
|
2546
2546
|
}, [
|
|
2547
2547
|
r.direction_property == "ltr" ? (d(), u("svg", Ks, Xs)) : g("", !0),
|
|
2548
2548
|
r.direction_property == "rtl" ? (d(), u("svg", Ys, Qs)) : g("", !0)
|
|
@@ -2557,7 +2557,7 @@ function Gn(e, t, r, n, a, o) {
|
|
|
2557
2557
|
s("div", en, [
|
|
2558
2558
|
s("button", {
|
|
2559
2559
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2560
|
-
onClick: t[2] || (t[2] =
|
|
2560
|
+
onClick: t[2] || (t[2] = I((l) => o.next(), ["stop"]))
|
|
2561
2561
|
}, [
|
|
2562
2562
|
r.direction_property == "ltr" ? (d(), u("svg", tn, sn)) : g("", !0),
|
|
2563
2563
|
r.direction_property == "rtl" ? (d(), u("svg", nn, an)) : g("", !0)
|
|
@@ -2600,12 +2600,12 @@ function Gn(e, t, r, n, a, o) {
|
|
|
2600
2600
|
])
|
|
2601
2601
|
]),
|
|
2602
2602
|
s("div", $n, [
|
|
2603
|
-
s("div",
|
|
2603
|
+
s("div", Cn, [
|
|
2604
2604
|
s("button", {
|
|
2605
2605
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2606
2606
|
onClick: t[4] || (t[4] = (l) => o.next())
|
|
2607
2607
|
}, [
|
|
2608
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2608
|
+
r.direction_property == "ltr" ? (d(), u("svg", Sn, Dn)) : g("", !0),
|
|
2609
2609
|
r.direction_property == "rtl" ? (d(), u("svg", Pn, jn)) : g("", !0)
|
|
2610
2610
|
])
|
|
2611
2611
|
])
|
|
@@ -2613,8 +2613,8 @@ function Gn(e, t, r, n, a, o) {
|
|
|
2613
2613
|
])) : g("", !0)
|
|
2614
2614
|
])) : g("", !0)
|
|
2615
2615
|
], 10, Hs),
|
|
2616
|
-
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div",
|
|
2617
|
-
s("div",
|
|
2616
|
+
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", In, [
|
|
2617
|
+
s("div", An, [
|
|
2618
2618
|
s("button", {
|
|
2619
2619
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2620
2620
|
onClick: t[5] || (t[5] = (l) => o.next())
|
|
@@ -2678,7 +2678,7 @@ const ql = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
2678
2678
|
i ? a() : o();
|
|
2679
2679
|
},
|
|
2680
2680
|
{ immediate: !0, deep: !0 }
|
|
2681
|
-
), (i, c) =>
|
|
2681
|
+
), (i, c) => C((d(), u("div", Fn, [
|
|
2682
2682
|
s("div", {
|
|
2683
2683
|
class: p(["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])
|
|
2684
2684
|
}, [
|
|
@@ -2751,7 +2751,7 @@ const ql = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
2751
2751
|
},
|
|
2752
2752
|
emits: ["update:modelValue"],
|
|
2753
2753
|
setup(e, { emit: t }) {
|
|
2754
|
-
const r = e, n = t, a =
|
|
2754
|
+
const r = e, n = t, a = S(null);
|
|
2755
2755
|
G(() => {
|
|
2756
2756
|
r.model_value != "" && (n("update:modelValue", r.model_value), a.value.checked = r.model_value == 1), r.modelValue != "" && (n("update:modelValue", r.modelValue), a.value.checked = r.modelValue == 1);
|
|
2757
2757
|
});
|
|
@@ -2872,7 +2872,7 @@ const ql = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
2872
2872
|
default: ""
|
|
2873
2873
|
}
|
|
2874
2874
|
},
|
|
2875
|
-
emits: ["update:modelValue", "selected"],
|
|
2875
|
+
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
2876
2876
|
data() {
|
|
2877
2877
|
return {
|
|
2878
2878
|
selected: {},
|
|
@@ -2962,7 +2962,7 @@ const ql = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
2962
2962
|
this.$emit("update:modelValue", e.target.value);
|
|
2963
2963
|
},
|
|
2964
2964
|
selectOption(e) {
|
|
2965
|
-
this.selected = e, this.optionsShown = !1, this.$emit("selected", this.selected);
|
|
2965
|
+
this.selected = e, this.optionsShown = !1, this.$emit("selected", this.selected), this.$emit("selectionChanged", this.selected);
|
|
2966
2966
|
},
|
|
2967
2967
|
showOptions() {
|
|
2968
2968
|
this.show || (this.searchFilter = "", this.optionsShown = !0, this.$nextTick(() => {
|
|
@@ -3021,7 +3021,7 @@ const ql = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
3021
3021
|
d: "m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
|
|
3022
3022
|
})
|
|
3023
3023
|
])
|
|
3024
|
-
], -1), ko = ["id"], $o = { class: "overflow-y-auto max-h-64" },
|
|
3024
|
+
], -1), ko = ["id"], $o = { class: "overflow-y-auto max-h-64" }, Co = ["onClick", "onMousedown", "id"], So = { class: "flex items-center py-2 pl-10 pr-4" }, Oo = {
|
|
3025
3025
|
key: 0,
|
|
3026
3026
|
class: "absolute flex items-center flex-shrink-0 w-4 h-4 text-green-500 left-2 dark:text-green-400",
|
|
3027
3027
|
"aria-hidden": "true",
|
|
@@ -3037,7 +3037,7 @@ const ql = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
3037
3037
|
}, null, -1), Po = [
|
|
3038
3038
|
Do
|
|
3039
3039
|
], Eo = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, jo = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" };
|
|
3040
|
-
function
|
|
3040
|
+
function Io(e, t, r, n, a, o) {
|
|
3041
3041
|
return d(), u(y, null, [
|
|
3042
3042
|
r.show ? (d(), u("div", {
|
|
3043
3043
|
key: 0,
|
|
@@ -3079,8 +3079,8 @@ function Ao(e, t, r, n, a, o) {
|
|
|
3079
3079
|
autocomplete: "off",
|
|
3080
3080
|
readonly: ""
|
|
3081
3081
|
}, null, 8, po),
|
|
3082
|
-
|
|
3083
|
-
onClick: t[1] || (t[1] =
|
|
3082
|
+
C(s("i", {
|
|
3083
|
+
onClick: t[1] || (t[1] = I((l) => o.ClearInput(), ["stop"])),
|
|
3084
3084
|
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700",
|
|
3085
3085
|
style: { top: "13px" }
|
|
3086
3086
|
}, null, 512), [
|
|
@@ -3092,12 +3092,12 @@ function Ao(e, t, r, n, a, o) {
|
|
|
3092
3092
|
style: { top: "11px" }
|
|
3093
3093
|
}, null, 2)
|
|
3094
3094
|
]),
|
|
3095
|
-
|
|
3095
|
+
C(s("div", bo, [
|
|
3096
3096
|
s("div", yo, [
|
|
3097
3097
|
vo,
|
|
3098
3098
|
s("div", xo, [
|
|
3099
3099
|
wo,
|
|
3100
|
-
|
|
3100
|
+
C(s("input", {
|
|
3101
3101
|
type: "search",
|
|
3102
3102
|
"onUpdate:modelValue": t[3] || (t[3] = (l) => a.searchFilter = l),
|
|
3103
3103
|
ref: `${r.field_name}search${a.uuid}`,
|
|
@@ -3108,7 +3108,7 @@ function Ao(e, t, r, n, a, o) {
|
|
|
3108
3108
|
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",
|
|
3109
3109
|
placeholder: "Search ..."
|
|
3110
3110
|
}, null, 40, ko), [
|
|
3111
|
-
[
|
|
3111
|
+
[A, a.searchFilter]
|
|
3112
3112
|
])
|
|
3113
3113
|
])
|
|
3114
3114
|
]),
|
|
@@ -3123,11 +3123,11 @@ function Ao(e, t, r, n, a, o) {
|
|
|
3123
3123
|
key: i,
|
|
3124
3124
|
id: `${i + 1}${a.uuid}`
|
|
3125
3125
|
}, [
|
|
3126
|
-
s("div",
|
|
3126
|
+
s("div", So, [
|
|
3127
3127
|
a.selected.id === l.id ? (d(), u("svg", Oo, Po)) : g("", !0),
|
|
3128
3128
|
s("span", null, f(l.name || l.id || "-"), 1)
|
|
3129
3129
|
])
|
|
3130
|
-
], 42,
|
|
3130
|
+
], 42, Co))), 128))
|
|
3131
3131
|
])
|
|
3132
3132
|
], 512), [
|
|
3133
3133
|
[T, a.optionsShown]
|
|
@@ -3139,7 +3139,7 @@ function Ao(e, t, r, n, a, o) {
|
|
|
3139
3139
|
], 2))
|
|
3140
3140
|
], 64);
|
|
3141
3141
|
}
|
|
3142
|
-
const Zl = /* @__PURE__ */ k(io, [["render",
|
|
3142
|
+
const Zl = /* @__PURE__ */ k(io, [["render", Io]]), Ao = { class: "font-bold ptext-lg dark:text-white" }, To = ["id"], No = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Mo = ["for"], Vo = ["required", "name", "id", "type", "placeholder"], Lo = { class: "gl-span-form-error" }, Bo = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Kl = {
|
|
3143
3143
|
__name: "GlTextarea",
|
|
3144
3144
|
props: {
|
|
3145
3145
|
is_required: {
|
|
@@ -3185,7 +3185,7 @@ const Zl = /* @__PURE__ */ k(io, [["render", Ao]]), Io = { class: "font-bold pte
|
|
|
3185
3185
|
},
|
|
3186
3186
|
emits: ["update:modelValue", "keydown"],
|
|
3187
3187
|
setup(e, { expose: t, emit: r }) {
|
|
3188
|
-
const n = e, a = r, o =
|
|
3188
|
+
const n = e, a = r, o = S(null);
|
|
3189
3189
|
return G(() => {
|
|
3190
3190
|
o.value !== null && o.value.hasAttribute("autofocus") && o.value.focus(), n.model_value && (a("update:modelValue", n.model_value), o.value.value = n.model_value), n.modelValue != "" && (a("update:modelValue", n.modelValue), o.value.value = n.modelValue);
|
|
3191
3191
|
}), t({ focus: () => o.value.focus() }), (l, i) => (d(), u(y, null, [
|
|
@@ -3193,7 +3193,7 @@ const Zl = /* @__PURE__ */ k(io, [["render", Ao]]), Io = { class: "font-bold pte
|
|
|
3193
3193
|
key: 0,
|
|
3194
3194
|
class: p(e.field_name)
|
|
3195
3195
|
}, [
|
|
3196
|
-
s("h3",
|
|
3196
|
+
s("h3", Ao, f(e.label_name), 1),
|
|
3197
3197
|
s("p", {
|
|
3198
3198
|
id: e.field_name,
|
|
3199
3199
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
@@ -3615,14 +3615,14 @@ function wa(e, t, r, n, a, o) {
|
|
|
3615
3615
|
da,
|
|
3616
3616
|
s("div", ua, [
|
|
3617
3617
|
ca,
|
|
3618
|
-
|
|
3618
|
+
C(s("input", {
|
|
3619
3619
|
type: "text",
|
|
3620
3620
|
"onUpdate:modelValue": t[1] || (t[1] = (c) => a.search = c),
|
|
3621
3621
|
onInput: t[2] || (t[2] = (c) => o.handleSearch()),
|
|
3622
3622
|
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",
|
|
3623
3623
|
placeholder: "Search ..."
|
|
3624
3624
|
}, null, 544), [
|
|
3625
|
-
[
|
|
3625
|
+
[A, a.search]
|
|
3626
3626
|
])
|
|
3627
3627
|
])
|
|
3628
3628
|
]),
|
|
@@ -3778,10 +3778,10 @@ const Wl = /* @__PURE__ */ k(ra, [["render", wa]]), ka = {
|
|
|
3778
3778
|
mounted() {
|
|
3779
3779
|
document.body.addEventListener("click", this.closeBoxOnbodyClick);
|
|
3780
3780
|
}
|
|
3781
|
-
}, $a = { class: "p-2" },
|
|
3781
|
+
}, $a = { class: "p-2" }, Ca = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" }, Sa = { class: "flex items-center gap-2" }, Oa = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), Da = { style: { "margin-top": "9px" } }, Pa = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), Ea = /* @__PURE__ */ s("label", {
|
|
3782
3782
|
for: "table-search",
|
|
3783
3783
|
class: "sr-only"
|
|
3784
|
-
}, "Search", -1), ja = { class: "relative" },
|
|
3784
|
+
}, "Search", -1), ja = { class: "relative" }, Ia = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
|
|
3785
3785
|
/* @__PURE__ */ s("svg", {
|
|
3786
3786
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3787
3787
|
"aria-hidden": "true",
|
|
@@ -3795,7 +3795,7 @@ const Wl = /* @__PURE__ */ k(ra, [["render", wa]]), ka = {
|
|
|
3795
3795
|
"clip-rule": "evenodd"
|
|
3796
3796
|
})
|
|
3797
3797
|
])
|
|
3798
|
-
], -1),
|
|
3798
|
+
], -1), Aa = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Ta = { 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" }, Na = { 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" }, Ma = ["onClick"], Va = {
|
|
3799
3799
|
key: 0,
|
|
3800
3800
|
class: "ml-2"
|
|
3801
3801
|
}, La = ["data-label"], Ba = ["innerHTML"], Ga = { 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" }, Fa = { class: "flex justify-between flex-1 sm:hidden" }, Ra = ["disabled"], Ua = ["disabled"], qa = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, Ha = { class: "text-sm text-gray-700 dark:text-gray-400" }, za = { class: "font-medium" }, Za = { class: "font-medium" }, Ka = { class: "font-medium" }, Wa = { "aria-label": "Page navigation" }, Xa = { class: "flex items-center h-8 -space-x-px text-sm" }, Ya = ["disabled"], Ja = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), Qa = /* @__PURE__ */ s("svg", {
|
|
@@ -3836,8 +3836,8 @@ const Wl = /* @__PURE__ */ k(ra, [["render", wa]]), ka = {
|
|
|
3836
3836
|
function ii(e, t, r, n, a, o) {
|
|
3837
3837
|
const l = U("dropdown");
|
|
3838
3838
|
return d(), u("div", $a, [
|
|
3839
|
-
s("div",
|
|
3840
|
-
s("div",
|
|
3839
|
+
s("div", Ca, [
|
|
3840
|
+
s("div", Sa, [
|
|
3841
3841
|
Oa,
|
|
3842
3842
|
s("div", Da, [
|
|
3843
3843
|
B(l, {
|
|
@@ -3857,18 +3857,18 @@ function ii(e, t, r, n, a, o) {
|
|
|
3857
3857
|
]),
|
|
3858
3858
|
Ea,
|
|
3859
3859
|
s("div", ja, [
|
|
3860
|
-
|
|
3861
|
-
|
|
3860
|
+
Ia,
|
|
3861
|
+
C(s("input", {
|
|
3862
3862
|
type: "text",
|
|
3863
3863
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => a.search = i),
|
|
3864
3864
|
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",
|
|
3865
3865
|
placeholder: "Search ..."
|
|
3866
3866
|
}, null, 512), [
|
|
3867
|
-
[
|
|
3867
|
+
[A, a.search]
|
|
3868
3868
|
])
|
|
3869
3869
|
])
|
|
3870
3870
|
]),
|
|
3871
|
-
s("div",
|
|
3871
|
+
s("div", Aa, [
|
|
3872
3872
|
s("table", Ta, [
|
|
3873
3873
|
s("thead", Na, [
|
|
3874
3874
|
s("tr", null, [
|
|
@@ -4041,7 +4041,7 @@ const Xl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4041
4041
|
},
|
|
4042
4042
|
emits: ["deleteAction"],
|
|
4043
4043
|
setup(e, { emit: t }) {
|
|
4044
|
-
const r = he(), n = e, a =
|
|
4044
|
+
const r = he(), n = e, a = S(!1), o = S(!1), l = () => {
|
|
4045
4045
|
a.value = !1;
|
|
4046
4046
|
}, i = () => {
|
|
4047
4047
|
a.value = !0;
|
|
@@ -4068,13 +4068,13 @@ const Xl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4068
4068
|
onConfirmDelete: b,
|
|
4069
4069
|
onCancelDelete: c
|
|
4070
4070
|
}, null, 8, ["isOpen"]),
|
|
4071
|
-
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ?
|
|
4071
|
+
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? C((d(), u("div", di, [
|
|
4072
4072
|
s("button", {
|
|
4073
4073
|
onClick: i,
|
|
4074
4074
|
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",
|
|
4075
4075
|
type: "button"
|
|
4076
4076
|
}, ci),
|
|
4077
|
-
|
|
4077
|
+
C(s("div", fi, [
|
|
4078
4078
|
s("ul", hi, [
|
|
4079
4079
|
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li", gi, [
|
|
4080
4080
|
s("a", {
|
|
@@ -4088,7 +4088,7 @@ const Xl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4088
4088
|
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", pi, [
|
|
4089
4089
|
s("a", {
|
|
4090
4090
|
href: "#",
|
|
4091
|
-
onClick:
|
|
4091
|
+
onClick: I(h, ["prevent"]),
|
|
4092
4092
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4093
4093
|
}, [
|
|
4094
4094
|
bi,
|
|
@@ -4121,7 +4121,7 @@ const Xl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4121
4121
|
], wi = { class: "absolute z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600" }, ki = {
|
|
4122
4122
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4123
4123
|
"aria-labelledby": "dropdownDividerButton"
|
|
4124
|
-
}, $i = { key: 0 },
|
|
4124
|
+
}, $i = { key: 0 }, Ci = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Ql = {
|
|
4125
4125
|
__name: "DatatableDeleteAction",
|
|
4126
4126
|
props: {
|
|
4127
4127
|
field: {
|
|
@@ -4147,7 +4147,7 @@ const Xl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4147
4147
|
},
|
|
4148
4148
|
emits: ["deleteAction"],
|
|
4149
4149
|
setup(e, { emit: t }) {
|
|
4150
|
-
const r = he(), n = e, a =
|
|
4150
|
+
const r = he(), n = e, a = S(!1), o = S(!1), l = () => {
|
|
4151
4151
|
a.value = !1;
|
|
4152
4152
|
}, i = () => {
|
|
4153
4153
|
a.value = !0;
|
|
@@ -4174,21 +4174,21 @@ const Xl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4174
4174
|
onConfirmDelete: b,
|
|
4175
4175
|
onCancelDelete: c
|
|
4176
4176
|
}, null, 8, ["isOpen"]),
|
|
4177
|
-
e.row && x.can(`delete_${e.xprops.permission}`) ?
|
|
4177
|
+
e.row && x.can(`delete_${e.xprops.permission}`) ? C((d(), u("div", yi, [
|
|
4178
4178
|
s("button", {
|
|
4179
4179
|
onClick: i,
|
|
4180
4180
|
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",
|
|
4181
4181
|
type: "button"
|
|
4182
4182
|
}, xi),
|
|
4183
|
-
|
|
4183
|
+
C(s("div", wi, [
|
|
4184
4184
|
s("ul", ki, [
|
|
4185
4185
|
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", $i, [
|
|
4186
4186
|
s("a", {
|
|
4187
4187
|
href: "#",
|
|
4188
|
-
onClick:
|
|
4188
|
+
onClick: I(h, ["prevent"]),
|
|
4189
4189
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4190
4190
|
}, [
|
|
4191
|
-
|
|
4191
|
+
Ci,
|
|
4192
4192
|
v(" Remove")
|
|
4193
4193
|
])
|
|
4194
4194
|
])) : g("", !0)
|
|
@@ -4202,7 +4202,7 @@ const Xl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4202
4202
|
], 64);
|
|
4203
4203
|
};
|
|
4204
4204
|
}
|
|
4205
|
-
},
|
|
4205
|
+
}, Si = {
|
|
4206
4206
|
props: ["field", "row"],
|
|
4207
4207
|
computed: {
|
|
4208
4208
|
isArray() {
|
|
@@ -4256,7 +4256,7 @@ const Xl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4256
4256
|
"clip-rule": "evenodd"
|
|
4257
4257
|
})
|
|
4258
4258
|
], -1);
|
|
4259
|
-
function
|
|
4259
|
+
function Ii(e, t, r, n, a, o) {
|
|
4260
4260
|
return d(), u("div", null, [
|
|
4261
4261
|
o.isArray ? (d(!0), u(y, { key: 0 }, w(r.row, (l, i) => (d(), u("div", {
|
|
4262
4262
|
key: i,
|
|
@@ -4284,7 +4284,7 @@ function Ai(e, t, r, n, a, o) {
|
|
|
4284
4284
|
])) : g("", !0)
|
|
4285
4285
|
]);
|
|
4286
4286
|
}
|
|
4287
|
-
const ed = /* @__PURE__ */ k(
|
|
4287
|
+
const ed = /* @__PURE__ */ k(Si, [["render", Ii]]), Ai = {
|
|
4288
4288
|
props: ["field", "row"],
|
|
4289
4289
|
computed: {
|
|
4290
4290
|
isArray() {
|
|
@@ -4360,7 +4360,7 @@ function Bi(e, t, r, n, a, o) {
|
|
|
4360
4360
|
])) : g("", !0)
|
|
4361
4361
|
]);
|
|
4362
4362
|
}
|
|
4363
|
-
const td = /* @__PURE__ */ k(
|
|
4363
|
+
const td = /* @__PURE__ */ k(Ai, [["render", Bi]]), Gi = {
|
|
4364
4364
|
props: ["field", "row", "tdProps"]
|
|
4365
4365
|
}, Fi = { key: 0 }, Ri = ["innerHTML"];
|
|
4366
4366
|
function Ui(e, t, r, n, a, o) {
|
|
@@ -4504,7 +4504,7 @@ const ad = /* @__PURE__ */ k(il, [["render", pl]]), bl = {
|
|
|
4504
4504
|
}, null, -1), wl = /* @__PURE__ */ s("span", {
|
|
4505
4505
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4506
4506
|
"aria-hidden": "true"
|
|
4507
|
-
}, "", -1), kl = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, $l = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" },
|
|
4507
|
+
}, "", -1), kl = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, $l = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, Cl = { class: "sm:flex sm:items-start" }, Sl = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, Ol = { class: "text-lg font-medium leading-6 text-gray-900" }, Dl = { class: "mt-2" }, Pl = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
4508
4508
|
function El(e, t, r, n, a, o) {
|
|
4509
4509
|
return r.isOpen ? (d(), u("div", yl, [
|
|
4510
4510
|
s("div", vl, [
|
|
@@ -4512,8 +4512,8 @@ function El(e, t, r, n, a, o) {
|
|
|
4512
4512
|
wl,
|
|
4513
4513
|
s("div", kl, [
|
|
4514
4514
|
s("div", $l, [
|
|
4515
|
-
s("div",
|
|
4516
|
-
s("div",
|
|
4515
|
+
s("div", Cl, [
|
|
4516
|
+
s("div", Sl, [
|
|
4517
4517
|
s("h3", Ol, f(r.title), 1),
|
|
4518
4518
|
s("div", Dl, [
|
|
4519
4519
|
P(e.$slots, "default")
|
|
@@ -4555,12 +4555,12 @@ export {
|
|
|
4555
4555
|
ad as GlDatatableStatusGeneral,
|
|
4556
4556
|
ee as GlDeleteConfirmationModal,
|
|
4557
4557
|
Zl as GlDropdown,
|
|
4558
|
-
|
|
4558
|
+
Il as GlFilesUpload,
|
|
4559
4559
|
Tl as GlLanguageSelector,
|
|
4560
4560
|
Hl as GlModal,
|
|
4561
4561
|
ql as GlMultiItemSlide,
|
|
4562
4562
|
Ml as GlMultiSelectDropdown,
|
|
4563
|
-
|
|
4563
|
+
Al as GlNotify,
|
|
4564
4564
|
Ul as GlTab,
|
|
4565
4565
|
Rl as GlTabsWrapper,
|
|
4566
4566
|
ta as GlTailwindPagination,
|