golden-logic-ui 1.0.76 → 1.0.77
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 +220 -200
- 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 Je, inject as Ce, watch as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, 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 h, withModifiers as N, withDirectives as O, vModelText as V, renderList as k, normalizeStyle as et, renderSlot as A, 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
|
+
const $ = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
4
|
for (const [n, o] of t)
|
|
5
5
|
r[n] = o;
|
|
@@ -50,7 +50,7 @@ function yt(e, t, r, n, o, a) {
|
|
|
50
50
|
])
|
|
51
51
|
])) : g("", !0);
|
|
52
52
|
}
|
|
53
|
-
const ue = /* @__PURE__ */
|
|
53
|
+
const ue = /* @__PURE__ */ $(ut, [["render", yt]]);
|
|
54
54
|
function _t() {
|
|
55
55
|
return Oe().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
56
56
|
}
|
|
@@ -170,13 +170,13 @@ function Ot(e, t) {
|
|
|
170
170
|
return e(t);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Te(e, t, r) {
|
|
174
174
|
return t.indexOf(e) < 0 && (r && r.prepend ? t.unshift(e) : t.push(e)), function() {
|
|
175
175
|
var n = t.indexOf(e);
|
|
176
176
|
n > -1 && t.splice(n, 1);
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Ae(e, t) {
|
|
180
180
|
e._actions = /* @__PURE__ */ Object.create(null), e._mutations = /* @__PURE__ */ Object.create(null), e._wrappedGetters = /* @__PURE__ */ Object.create(null), e._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
|
|
181
181
|
var r = e.state;
|
|
182
182
|
ee(e, r, [], e._modules.root, !0), ce(e, r, t);
|
|
@@ -199,7 +199,7 @@ function ce(e, t, r) {
|
|
|
199
199
|
});
|
|
200
200
|
}), e._state = Se({
|
|
201
201
|
data: t
|
|
202
|
-
}), e._scope = c, e.strict &&
|
|
202
|
+
}), e._scope = c, e.strict && At(e), n && r && e._withCommit(function() {
|
|
203
203
|
n.data = null;
|
|
204
204
|
}), o && o.stop();
|
|
205
205
|
}
|
|
@@ -218,11 +218,11 @@ function ee(e, t, r, n, o) {
|
|
|
218
218
|
var x = i + y;
|
|
219
219
|
Et(e, x, m, f);
|
|
220
220
|
}), n.forEachAction(function(m, y) {
|
|
221
|
-
var x = m.root ? y : i + y,
|
|
222
|
-
jt(e, x,
|
|
221
|
+
var x = m.root ? y : i + y, C = m.handler || m;
|
|
222
|
+
jt(e, x, C, f);
|
|
223
223
|
}), n.forEachGetter(function(m, y) {
|
|
224
224
|
var x = i + y;
|
|
225
|
-
|
|
225
|
+
Tt(e, x, m, f);
|
|
226
226
|
}), n.forEachChild(function(m, y) {
|
|
227
227
|
ee(e, t, r.concat(y), m, o);
|
|
228
228
|
});
|
|
@@ -300,7 +300,7 @@ function jt(e, t, r, n) {
|
|
|
300
300
|
}) : l;
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function Tt(e, t, r, n) {
|
|
304
304
|
if (e._wrappedGetters[t]) {
|
|
305
305
|
process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate getter key: " + t);
|
|
306
306
|
return;
|
|
@@ -318,8 +318,8 @@ function At(e, t, r, n) {
|
|
|
318
318
|
);
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
|
|
321
|
+
function At(e) {
|
|
322
|
+
Y(function() {
|
|
323
323
|
return e._state.data;
|
|
324
324
|
}, function() {
|
|
325
325
|
process.env.NODE_ENV !== "production" && I(e._committing, "do not mutate vuex store state outside mutation handlers.");
|
|
@@ -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, f = l.commit;
|
|
679
|
-
this.dispatch = function(x,
|
|
680
|
-
return c.call(i, x,
|
|
681
|
-
}, this.commit = function(x,
|
|
682
|
-
return f.call(i, x,
|
|
679
|
+
this.dispatch = function(x, C) {
|
|
680
|
+
return c.call(i, x, C);
|
|
681
|
+
}, this.commit = function(x, C, L) {
|
|
682
|
+
return f.call(i, x, C, L);
|
|
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) {
|
|
@@ -734,39 +734,39 @@ 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(l, 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(l, 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
|
});
|
|
758
758
|
});
|
|
759
759
|
};
|
|
760
760
|
j.prototype.subscribe = function(t, r) {
|
|
761
|
-
return
|
|
761
|
+
return Te(t, this._subscribers, r);
|
|
762
762
|
};
|
|
763
763
|
j.prototype.subscribeAction = function(t, r) {
|
|
764
764
|
var n = typeof t == "function" ? { before: t } : t;
|
|
765
|
-
return
|
|
765
|
+
return Te(n, this._actionSubscribers, r);
|
|
766
766
|
};
|
|
767
767
|
j.prototype.watch = function(t, r, n) {
|
|
768
768
|
var o = this;
|
|
769
|
-
return process.env.NODE_ENV !== "production" && I(typeof t == "function", "store.watch only accepts a function."),
|
|
769
|
+
return process.env.NODE_ENV !== "production" && I(typeof t == "function", "store.watch only accepts a function."), Y(function() {
|
|
770
770
|
return t(o.state, o.getters);
|
|
771
771
|
}, r, Object.assign({}, n));
|
|
772
772
|
};
|
|
@@ -784,13 +784,13 @@ j.prototype.unregisterModule = function(t) {
|
|
|
784
784
|
typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && I(Array.isArray(t), "module path must be a string or an Array."), this._modules.unregister(t), this._withCommit(function() {
|
|
785
785
|
var n = fe(r.state, t.slice(0, -1));
|
|
786
786
|
delete n[t[t.length - 1]];
|
|
787
|
-
}),
|
|
787
|
+
}), Ae(this);
|
|
788
788
|
};
|
|
789
789
|
j.prototype.hasModule = function(t) {
|
|
790
790
|
return typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && I(Array.isArray(t), "module path must be a string or an Array."), this._modules.isRegistered(t);
|
|
791
791
|
};
|
|
792
792
|
j.prototype.hotUpdate = function(t) {
|
|
793
|
-
this._modules.update(t),
|
|
793
|
+
this._modules.update(t), Ae(this, !0);
|
|
794
794
|
};
|
|
795
795
|
j.prototype._withCommit = function(t) {
|
|
796
796
|
var r = this._committing;
|
|
@@ -999,7 +999,7 @@ const Ht = {
|
|
|
999
999
|
mounted() {
|
|
1000
1000
|
console.log(this.model_value), this.model_value ? Array.isArray(this.model_value) ? this.uploadFileList = this.model_value : this.uploadFileList = [this.model_value] : this.uploadFileList = [], this.error_message_data = this.error_message;
|
|
1001
1001
|
}
|
|
1002
|
-
}, Zt = { class: "flex flex-col items-center justify-center pt-5 pb-6" }, Kt = ["multiple"], Wt = ["name"],
|
|
1002
|
+
}, Zt = { class: "flex flex-col items-center justify-center pt-5 pb-6" }, Kt = ["multiple"], Wt = ["name"], Yt = /* @__PURE__ */ s("svg", {
|
|
1003
1003
|
class: "w-8 h-8 mb-4 text-gray-500 dark:text-gray-400",
|
|
1004
1004
|
"aria-hidden": "true",
|
|
1005
1005
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1013,9 +1013,9 @@ const Ht = {
|
|
|
1013
1013
|
"stroke-width": "2",
|
|
1014
1014
|
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"
|
|
1015
1015
|
})
|
|
1016
|
-
], -1),
|
|
1017
|
-
|
|
1018
|
-
|
|
1016
|
+
], -1), Xt = /* @__PURE__ */ s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, " Drag & drop files or browse ", -1), Jt = [
|
|
1017
|
+
Yt,
|
|
1018
|
+
Xt
|
|
1019
1019
|
], Qt = { key: 1 }, er = /* @__PURE__ */ s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, "Drop files here", -1), tr = [
|
|
1020
1020
|
er
|
|
1021
1021
|
], rr = { class: "mt-2 gl-span-form-error" }, sr = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" }, ar = {
|
|
@@ -1026,7 +1026,7 @@ const Ht = {
|
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
1027
|
}, null, -1), br = { class: "flex flex-col ml-3" }, pr = { class: "text-xs" }, yr = { class: "text-xs" }, _r = { class: "flex gap-2" }, vr = ["href"], xr = ["onClick"];
|
|
1028
1028
|
function wr(e, t, r, n, o, a) {
|
|
1029
|
-
const i =
|
|
1029
|
+
const i = X("DeleteConfirmationModal");
|
|
1030
1030
|
return d(), u(v, null, [
|
|
1031
1031
|
Z(i, {
|
|
1032
1032
|
isOpen: o.open_delete_modal,
|
|
@@ -1121,7 +1121,7 @@ function wr(e, t, r, n, o, a) {
|
|
|
1121
1121
|
], 2)
|
|
1122
1122
|
], 64);
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const Sd = /* @__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)) : g("", !0);
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const Dd = /* @__PURE__ */ $(kr, [["render", Er]]), jr = {
|
|
1217
1217
|
components: {},
|
|
1218
1218
|
props: {
|
|
1219
1219
|
field_name: {
|
|
@@ -1248,9 +1248,9 @@ const $d = /* @__PURE__ */ S(kr, [["render", Er]]), jr = {
|
|
|
1248
1248
|
},
|
|
1249
1249
|
mounted() {
|
|
1250
1250
|
}
|
|
1251
|
-
},
|
|
1251
|
+
}, Tr = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, Ar = ["name", "value", "id", "checked"], Ir = ["for"];
|
|
1252
1252
|
function Mr(e, t, r, n, o, a) {
|
|
1253
|
-
return d(), u("ul",
|
|
1253
|
+
return d(), u("ul", Tr, [
|
|
1254
1254
|
(d(!0), u(v, null, k(o.locals, (i, l) => (d(), u("li", null, [
|
|
1255
1255
|
s("input", {
|
|
1256
1256
|
type: "radio",
|
|
@@ -1260,7 +1260,7 @@ function Mr(e, t, r, n, o, a) {
|
|
|
1260
1260
|
id: i + "_" + r.field_name,
|
|
1261
1261
|
autocomplete: "off",
|
|
1262
1262
|
checked: i === o.default_language
|
|
1263
|
-
}, null, 8,
|
|
1263
|
+
}, null, 8, Ar),
|
|
1264
1264
|
s("label", {
|
|
1265
1265
|
for: i + "_" + r.field_name,
|
|
1266
1266
|
class: b([{
|
|
@@ -1272,10 +1272,10 @@ function Mr(e, t, r, n, o, a) {
|
|
|
1272
1272
|
]))), 256))
|
|
1273
1273
|
]);
|
|
1274
1274
|
}
|
|
1275
|
-
const
|
|
1275
|
+
const Od = /* @__PURE__ */ $(jr, [["render", Mr]]), Nr = { class: "bg-white border rounded-lg border-stroke shadow-default dark:border-strokedark dark:bg-boxdark" }, Vr = { class: "px-3 py-4 border-b border-stroke dark:border-strokedark" }, Lr = { class: "font-semibold text-black dark:text-white" }, Br = {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
class: "p-6"
|
|
1278
|
-
},
|
|
1278
|
+
}, Pd = {
|
|
1279
1279
|
__name: "GlCard",
|
|
1280
1280
|
props: {
|
|
1281
1281
|
class: {
|
|
@@ -1291,11 +1291,11 @@ const Cd = /* @__PURE__ */ S(jr, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1291
1291
|
s("div", Nr, [
|
|
1292
1292
|
s("div", Vr, [
|
|
1293
1293
|
s("h3", Lr, [
|
|
1294
|
-
|
|
1294
|
+
A(n.$slots, "header")
|
|
1295
1295
|
])
|
|
1296
1296
|
]),
|
|
1297
1297
|
n.$slots.body ? (d(), u("div", Br, [
|
|
1298
|
-
|
|
1298
|
+
A(n.$slots, "body")
|
|
1299
1299
|
])) : g("", !0)
|
|
1300
1300
|
])
|
|
1301
1301
|
], 2));
|
|
@@ -1463,7 +1463,7 @@ const Cd = /* @__PURE__ */ S(jr, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1463
1463
|
}, Zr = {
|
|
1464
1464
|
class: "inline-flex ml-2 rounded-md shadow-sm",
|
|
1465
1465
|
role: "group"
|
|
1466
|
-
}, Kr = { 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" }, Wr = { class: "relative" },
|
|
1466
|
+
}, Kr = { 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" }, Wr = { class: "relative" }, Yr = ["onClick"], Xr = { 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" }, Jr = { class: "p-1" }, Qr = /* @__PURE__ */ s("label", {
|
|
1467
1467
|
for: "default-search",
|
|
1468
1468
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
1469
1469
|
}, "Search", -1), es = { class: "relative" }, ts = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
@@ -1539,7 +1539,7 @@ function ns(e, t, r, n, o, a) {
|
|
|
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"
|
|
1542
|
-
}, null, 8,
|
|
1542
|
+
}, null, 8, Yr)
|
|
1543
1543
|
]))), 128))
|
|
1544
1544
|
]),
|
|
1545
1545
|
s("i", {
|
|
@@ -1547,7 +1547,7 @@ function ns(e, t, r, n, o, a) {
|
|
|
1547
1547
|
style: { top: "11px" }
|
|
1548
1548
|
}, null, 2)
|
|
1549
1549
|
]),
|
|
1550
|
-
O(s("div",
|
|
1550
|
+
O(s("div", Xr, [
|
|
1551
1551
|
s("div", Jr, [
|
|
1552
1552
|
Qr,
|
|
1553
1553
|
s("div", es, [
|
|
@@ -1586,7 +1586,7 @@ function ns(e, t, r, n, o, a) {
|
|
|
1586
1586
|
], 2))
|
|
1587
1587
|
], 64);
|
|
1588
1588
|
}
|
|
1589
|
-
const
|
|
1589
|
+
const Ed = /* @__PURE__ */ $(Gr, [["render", ns]]), os = {
|
|
1590
1590
|
props: {
|
|
1591
1591
|
button_type: {
|
|
1592
1592
|
type: String,
|
|
@@ -1683,12 +1683,12 @@ function is(e, t, r, n, o, a) {
|
|
|
1683
1683
|
key: 0,
|
|
1684
1684
|
class: b([r.icon, "text-base"])
|
|
1685
1685
|
}, null, 2)) : g("", !0),
|
|
1686
|
-
|
|
1686
|
+
A(e.$slots, "default")
|
|
1687
1687
|
]),
|
|
1688
1688
|
_: 3
|
|
1689
1689
|
}, 16, ["type", "disabled", "href", "class"]));
|
|
1690
1690
|
}
|
|
1691
|
-
const
|
|
1691
|
+
const jd = /* @__PURE__ */ $(os, [["render", is]]), ds = { class: "font-bold ptext-lg dark:text-white" }, us = ["name", "id"], cs = ["id"], fs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), gs = ["for"], hs = /* @__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"], bs = ["required", "name", "id", "type"], ps = { class: "gl-span-form-error" }, ys = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Td = {
|
|
1692
1692
|
__name: "GlTextareaTranslate",
|
|
1693
1693
|
props: {
|
|
1694
1694
|
is_required: {
|
|
@@ -1746,7 +1746,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1746
1746
|
},
|
|
1747
1747
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1748
1748
|
setup(e, { expose: t, emit: r }) {
|
|
1749
|
-
const n = e, o = r, a =
|
|
1749
|
+
const n = e, o = r, a = S(null), i = S(null);
|
|
1750
1750
|
return R(() => {
|
|
1751
1751
|
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", {
|
|
1752
1752
|
model: n.translatable.model,
|
|
@@ -1824,7 +1824,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1824
1824
|
], 2))
|
|
1825
1825
|
], 64));
|
|
1826
1826
|
}
|
|
1827
|
-
}, _s = { class: "font-bold ptext-lg dark:text-white" }, vs = ["name", "id"], xs = ["id"], ws = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ks = ["for"], $s = /* @__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"], Ss = ["name", "id", "type"], Ds = { class: "gl-span-form-error" }, Os = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
1827
|
+
}, _s = { class: "font-bold ptext-lg dark:text-white" }, vs = ["name", "id"], xs = ["id"], ws = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ks = ["for"], $s = /* @__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"], Ss = ["name", "id", "type"], Ds = { class: "gl-span-form-error" }, Os = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Ad = {
|
|
1828
1828
|
__name: "GlTinymceTranslate",
|
|
1829
1829
|
props: {
|
|
1830
1830
|
is_required: {
|
|
@@ -1882,7 +1882,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1882
1882
|
},
|
|
1883
1883
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1884
1884
|
setup(e, { expose: t, emit: r }) {
|
|
1885
|
-
const n = e, o = r, a =
|
|
1885
|
+
const n = e, o = r, a = S(null), i = S(null);
|
|
1886
1886
|
return R(() => {
|
|
1887
1887
|
tinymce.init({
|
|
1888
1888
|
selector: "#" + n.field_name,
|
|
@@ -1963,7 +1963,7 @@ const Od = /* @__PURE__ */ S(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"],
|
|
1966
|
+
}, Ps = { class: "font-bold ptext-lg dark:text-white" }, Es = ["name", "id"], js = ["id"], Ts = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), As = ["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"], Vs = { class: "gl-span-form-error" }, Ls = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Id = {
|
|
1967
1967
|
__name: "GlTextTranslate",
|
|
1968
1968
|
props: {
|
|
1969
1969
|
is_required: {
|
|
@@ -2021,7 +2021,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2021
2021
|
},
|
|
2022
2022
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
2023
2023
|
setup(e, { expose: t, emit: r }) {
|
|
2024
|
-
const n = e, o = r, a =
|
|
2024
|
+
const n = e, o = r, a = S(null), i = S(null);
|
|
2025
2025
|
return R(() => {
|
|
2026
2026
|
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", {
|
|
2027
2027
|
model: n.translatable.model,
|
|
@@ -2052,7 +2052,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2052
2052
|
id: e.field_name,
|
|
2053
2053
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
2054
2054
|
}, h(e.model_value), 9, js),
|
|
2055
|
-
|
|
2055
|
+
Ts
|
|
2056
2056
|
], 2)) : g("", !0),
|
|
2057
2057
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2058
2058
|
key: 1,
|
|
@@ -2065,7 +2065,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2065
2065
|
required: e.is_required
|
|
2066
2066
|
}),
|
|
2067
2067
|
for: e.field_name
|
|
2068
|
-
}, h(e.label_name), 11,
|
|
2068
|
+
}, h(e.label_name), 11, As),
|
|
2069
2069
|
Is,
|
|
2070
2070
|
s("input", {
|
|
2071
2071
|
class: "mb-4",
|
|
@@ -2096,7 +2096,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2096
2096
|
], 2))
|
|
2097
2097
|
], 64));
|
|
2098
2098
|
}
|
|
2099
|
-
}, Bs = { class: "font-bold ptext-lg dark:text-white" }, Gs = { class: "mb-4 text-base text-gray-900 dark:text-white" }, Fs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Rs = ["for"], Us = ["required", "name", "id", "type"], qs = { class: "gl-span-form-error" }, zs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
2099
|
+
}, Bs = { class: "font-bold ptext-lg dark:text-white" }, Gs = { class: "mb-4 text-base text-gray-900 dark:text-white" }, Fs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Rs = ["for"], Us = ["required", "name", "id", "type"], qs = { class: "gl-span-form-error" }, zs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Md = {
|
|
2100
2100
|
__name: "GlTextInput",
|
|
2101
2101
|
props: {
|
|
2102
2102
|
is_required: {
|
|
@@ -2138,7 +2138,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2138
2138
|
},
|
|
2139
2139
|
emits: ["update:modelValue", "keydown"],
|
|
2140
2140
|
setup(e, { expose: t, emit: r }) {
|
|
2141
|
-
const n = e, o = r, a =
|
|
2141
|
+
const n = e, o = r, a = S(null);
|
|
2142
2142
|
R(() => {
|
|
2143
2143
|
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus();
|
|
2144
2144
|
});
|
|
@@ -2194,13 +2194,13 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2194
2194
|
}
|
|
2195
2195
|
}, Hs = {
|
|
2196
2196
|
setup(e, { slots: t }) {
|
|
2197
|
-
const r =
|
|
2197
|
+
const r = S(t.default().map((o) => o.props)), n = S(r.value[0].title);
|
|
2198
2198
|
return rt("selectedTitle", n), {
|
|
2199
2199
|
tabs: r,
|
|
2200
2200
|
selectedTitle: n
|
|
2201
2201
|
};
|
|
2202
2202
|
}
|
|
2203
|
-
}, Zs = { class: "flex flex-wrap" }, Ks = { class: "w-full" }, Ws = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" },
|
|
2203
|
+
}, Zs = { class: "flex flex-wrap" }, Ks = { class: "w-full" }, Ws = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" }, Ys = ["onClick"], Xs = { 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" }, Js = { class: "flex-auto px-4 py-5" }, Qs = { class: "tab-content tab-space" };
|
|
2204
2204
|
function ea(e, t, r, n, o, a) {
|
|
2205
2205
|
return d(), u(v, null, [
|
|
2206
2206
|
s("div", Zs, [
|
|
@@ -2219,20 +2219,20 @@ function ea(e, t, r, n, o, a) {
|
|
|
2219
2219
|
}, null, 2),
|
|
2220
2220
|
w(" " + h(i.title), 1)
|
|
2221
2221
|
], 2)
|
|
2222
|
-
], 8,
|
|
2222
|
+
], 8, Ys))), 128))
|
|
2223
2223
|
])
|
|
2224
2224
|
])
|
|
2225
2225
|
]),
|
|
2226
|
-
s("div",
|
|
2226
|
+
s("div", Xs, [
|
|
2227
2227
|
s("div", Js, [
|
|
2228
2228
|
s("div", Qs, [
|
|
2229
|
-
|
|
2229
|
+
A(e.$slots, "default")
|
|
2230
2230
|
])
|
|
2231
2231
|
])
|
|
2232
2232
|
])
|
|
2233
2233
|
], 64);
|
|
2234
2234
|
}
|
|
2235
|
-
const
|
|
2235
|
+
const Nd = /* @__PURE__ */ $(Hs, [["render", ea]]), ta = {
|
|
2236
2236
|
props: ["title"],
|
|
2237
2237
|
setup() {
|
|
2238
2238
|
return {
|
|
@@ -2242,12 +2242,12 @@ const Td = /* @__PURE__ */ S(Hs, [["render", ea]]), ta = {
|
|
|
2242
2242
|
}, ra = { class: "block" };
|
|
2243
2243
|
function sa(e, t, r, n, o, a) {
|
|
2244
2244
|
return O((d(), u("div", ra, [
|
|
2245
|
-
|
|
2245
|
+
A(e.$slots, "default")
|
|
2246
2246
|
], 512)), [
|
|
2247
2247
|
[F, r.title == n.selectedTitle]
|
|
2248
2248
|
]);
|
|
2249
2249
|
}
|
|
2250
|
-
const
|
|
2250
|
+
const Vd = /* @__PURE__ */ $(ta, [["render", sa]]), aa = {
|
|
2251
2251
|
props: {
|
|
2252
2252
|
elements_to_show_prop: {
|
|
2253
2253
|
type: Number,
|
|
@@ -2433,9 +2433,9 @@ const Id = /* @__PURE__ */ S(ta, [["render", sa]]), aa = {
|
|
|
2433
2433
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2434
2434
|
}, null, -1)), Pa = [
|
|
2435
2435
|
Oa
|
|
2436
|
-
], Ea = ["onClick"], ja = /* @__PURE__ */ P(() => /* @__PURE__ */ s("span", null, null, -1)),
|
|
2436
|
+
], Ea = ["onClick"], ja = /* @__PURE__ */ P(() => /* @__PURE__ */ s("span", null, null, -1)), Ta = [
|
|
2437
2437
|
ja
|
|
2438
|
-
],
|
|
2438
|
+
], Aa = {
|
|
2439
2439
|
key: 1,
|
|
2440
2440
|
class: "flex justify-between pl-5 pr-5"
|
|
2441
2441
|
}, Ia = ["onClick"], Ma = /* @__PURE__ */ P(() => /* @__PURE__ */ s("span", null, null, -1)), Na = [
|
|
@@ -2483,9 +2483,9 @@ const Id = /* @__PURE__ */ S(ta, [["render", sa]]), aa = {
|
|
|
2483
2483
|
"stroke-linecap": "round",
|
|
2484
2484
|
"stroke-linejoin": "round",
|
|
2485
2485
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2486
|
-
}, null, -1)),
|
|
2486
|
+
}, null, -1)), Ya = [
|
|
2487
2487
|
Wa
|
|
2488
|
-
],
|
|
2488
|
+
], Xa = {
|
|
2489
2489
|
key: 1,
|
|
2490
2490
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2491
2491
|
class: "w-6 h-6",
|
|
@@ -2570,7 +2570,7 @@ function dn(e, t, r, n, o, a) {
|
|
|
2570
2570
|
])
|
|
2571
2571
|
])
|
|
2572
2572
|
], 2)) : g("", !0),
|
|
2573
|
-
|
|
2573
|
+
A(e.$slots, "default", {}, void 0, !0),
|
|
2574
2574
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (d(), u("div", {
|
|
2575
2575
|
key: 1,
|
|
2576
2576
|
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"])
|
|
@@ -2595,9 +2595,9 @@ function dn(e, t, r, n, o, a) {
|
|
|
2595
2595
|
class: b(["gl-dot", { active: e.currentDot == i }]),
|
|
2596
2596
|
key: i,
|
|
2597
2597
|
onClick: (l) => a.setDot(i)
|
|
2598
|
-
},
|
|
2598
|
+
}, Ta, 10, Ea))), 128))
|
|
2599
2599
|
], 2)) : g("", !0),
|
|
2600
|
-
r.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div",
|
|
2600
|
+
r.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div", Aa, [
|
|
2601
2601
|
s("div", {
|
|
2602
2602
|
class: b(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2603
2603
|
}, [
|
|
@@ -2626,8 +2626,8 @@ function dn(e, t, r, n, o, a) {
|
|
|
2626
2626
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2627
2627
|
onClick: t[4] || (t[4] = (i) => a.next())
|
|
2628
2628
|
}, [
|
|
2629
|
-
r.direction_property == "ltr" ? (d(), u("svg", Ka,
|
|
2630
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2629
|
+
r.direction_property == "ltr" ? (d(), u("svg", Ka, Ya)) : g("", !0),
|
|
2630
|
+
r.direction_property == "rtl" ? (d(), u("svg", Xa, Qa)) : g("", !0)
|
|
2631
2631
|
])
|
|
2632
2632
|
])
|
|
2633
2633
|
])
|
|
@@ -2648,7 +2648,7 @@ function dn(e, t, r, n, o, a) {
|
|
|
2648
2648
|
], 10, na)
|
|
2649
2649
|
]);
|
|
2650
2650
|
}
|
|
2651
|
-
const
|
|
2651
|
+
const Ld = /* @__PURE__ */ $(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9"]]), un = {
|
|
2652
2652
|
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",
|
|
2653
2653
|
tabindex: "-1",
|
|
2654
2654
|
"aria-hidden": "true"
|
|
@@ -2668,7 +2668,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2668
2668
|
])
|
|
2669
2669
|
], -1), mn = [
|
|
2670
2670
|
hn
|
|
2671
|
-
], bn = { class: "flex flex-wrap items-center justify-end flex-shrink-0 p-4 border-t-2 rounded-b-md border-neutral-100 dark:border-gray-600" },
|
|
2671
|
+
], bn = { class: "flex flex-wrap items-center justify-end flex-shrink-0 p-4 border-t-2 rounded-b-md border-neutral-100 dark:border-gray-600" }, Bd = {
|
|
2672
2672
|
__name: "GlModal",
|
|
2673
2673
|
props: {
|
|
2674
2674
|
is_open: {
|
|
@@ -2697,7 +2697,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2697
2697
|
}, i = () => {
|
|
2698
2698
|
n("closeModal"), a();
|
|
2699
2699
|
};
|
|
2700
|
-
return
|
|
2700
|
+
return Y(
|
|
2701
2701
|
() => r.is_open,
|
|
2702
2702
|
(l, c) => {
|
|
2703
2703
|
l ? o() : a();
|
|
@@ -2720,10 +2720,10 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2720
2720
|
s("div", {
|
|
2721
2721
|
class: b(["relative overflow-y-auto", e.bodyClass])
|
|
2722
2722
|
}, [
|
|
2723
|
-
|
|
2723
|
+
A(l.$slots, "body")
|
|
2724
2724
|
], 2),
|
|
2725
2725
|
s("div", bn, [
|
|
2726
|
-
|
|
2726
|
+
A(l.$slots, "buttons"),
|
|
2727
2727
|
s("button", {
|
|
2728
2728
|
onClick: i,
|
|
2729
2729
|
type: "button",
|
|
@@ -2736,7 +2736,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2736
2736
|
[F, e.is_open]
|
|
2737
2737
|
]);
|
|
2738
2738
|
}
|
|
2739
|
-
}, pn = { class: "mb-4" }, yn = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin" }, _n = { class: "relative inline-flex items-center cursor-pointer" }, vn = ["name", "id", "checked"], xn = /* @__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), wn = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), kn = { 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" }, $n = { class: "relative inline-flex items-center cursor-pointer" }, Cn = ["name", "id"], Sn = /* @__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), Dn = { class: "gl-span-form-error" }, On = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
2739
|
+
}, pn = { class: "mb-4" }, yn = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin" }, _n = { class: "relative inline-flex items-center cursor-pointer" }, vn = ["name", "id", "checked"], xn = /* @__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), wn = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), kn = { 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" }, $n = { class: "relative inline-flex items-center cursor-pointer" }, Cn = ["name", "id"], Sn = /* @__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), Dn = { class: "gl-span-form-error" }, On = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Gd = {
|
|
2740
2740
|
__name: "GlToggleBox",
|
|
2741
2741
|
props: {
|
|
2742
2742
|
is_required: {
|
|
@@ -2778,7 +2778,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2778
2778
|
},
|
|
2779
2779
|
emits: ["update:modelValue"],
|
|
2780
2780
|
setup(e, { emit: t }) {
|
|
2781
|
-
const r = e, n = t, o =
|
|
2781
|
+
const r = e, n = t, o = S(null), a = G({
|
|
2782
2782
|
get() {
|
|
2783
2783
|
return r.modelValue;
|
|
2784
2784
|
},
|
|
@@ -2841,7 +2841,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2841
2841
|
], 2))
|
|
2842
2842
|
], 64));
|
|
2843
2843
|
}
|
|
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" },
|
|
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" }, Tn = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), An = ["name", "id", "value"], In = {
|
|
2845
2845
|
key: 0,
|
|
2846
2846
|
class: "dropdown"
|
|
2847
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" }, Vn = ["value", "placeholder"], Ln = { 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", {
|
|
@@ -2878,7 +2878,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2878
2878
|
d: "M1 5.917 5.724 10.5 15 1.5"
|
|
2879
2879
|
}, null, -1), Wn = [
|
|
2880
2880
|
Kn
|
|
2881
|
-
],
|
|
2881
|
+
], Yn = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, Xn = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Fd = {
|
|
2882
2882
|
__name: "GlDropdown",
|
|
2883
2883
|
props: {
|
|
2884
2884
|
modelValue: {
|
|
@@ -2938,7 +2938,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2938
2938
|
},
|
|
2939
2939
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
2940
2940
|
setup(e, { emit: t }) {
|
|
2941
|
-
const r = e, n = t, o =
|
|
2941
|
+
const r = e, n = t, o = S(null), a = S({}), i = S(0), l = S(!1), c = S(""), f = S("");
|
|
2942
2942
|
R(() => {
|
|
2943
2943
|
f.value = L(), r.show || (document.body.addEventListener("click", (p) => {
|
|
2944
2944
|
ze(p);
|
|
@@ -2954,7 +2954,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2954
2954
|
}
|
|
2955
2955
|
return p;
|
|
2956
2956
|
});
|
|
2957
|
-
function
|
|
2957
|
+
function C(p) {
|
|
2958
2958
|
if ([
|
|
2959
2959
|
"ArrowLeft",
|
|
2960
2960
|
"ArrowUp",
|
|
@@ -3022,15 +3022,15 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3022
3022
|
p && p.focus();
|
|
3023
3023
|
}));
|
|
3024
3024
|
}
|
|
3025
|
-
function
|
|
3025
|
+
function Ye() {
|
|
3026
3026
|
r.show || (a.value = {}, c.value = "", n("update:modelValue", ""), re());
|
|
3027
3027
|
}
|
|
3028
3028
|
function pe() {
|
|
3029
3029
|
a.value.id || (a.value = {}, c.value = ""), n("selected", a.value), l.value = !1;
|
|
3030
3030
|
}
|
|
3031
|
-
return
|
|
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) => {
|
|
3036
3036
|
var E, B, ye;
|
|
@@ -3043,7 +3043,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3043
3043
|
s("p", En, [
|
|
3044
3044
|
s("span", jn, h((E = y.value) == null ? void 0 : E.name), 1)
|
|
3045
3045
|
]),
|
|
3046
|
-
|
|
3046
|
+
Tn
|
|
3047
3047
|
], 2)) : g("", !0),
|
|
3048
3048
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3049
3049
|
key: 1,
|
|
@@ -3054,7 +3054,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3054
3054
|
name: e.field_name,
|
|
3055
3055
|
id: e.field_name,
|
|
3056
3056
|
value: (B = y.value) == null ? void 0 : B.id
|
|
3057
|
-
}, null, 8,
|
|
3057
|
+
}, null, 8, An),
|
|
3058
3058
|
e.options ? (d(), u("div", In, [
|
|
3059
3059
|
e.label_name ? (d(), u("label", {
|
|
3060
3060
|
key: 0,
|
|
@@ -3072,21 +3072,21 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3072
3072
|
"gl-input-form-invalid": e.error_message !== ""
|
|
3073
3073
|
}, "pl-8 pr-2 showOptions"]),
|
|
3074
3074
|
ref: e.field_name,
|
|
3075
|
-
onClick: D[0] || (D[0] = (
|
|
3075
|
+
onClick: D[0] || (D[0] = (T) => re()),
|
|
3076
3076
|
value: (ye = y.value) == null ? void 0 : ye.name,
|
|
3077
3077
|
placeholder: e.placeholder,
|
|
3078
3078
|
autocomplete: "off",
|
|
3079
3079
|
readonly: ""
|
|
3080
3080
|
}, null, 10, Vn),
|
|
3081
3081
|
O(s("i", {
|
|
3082
|
-
onClick: D[1] || (D[1] = N((
|
|
3082
|
+
onClick: D[1] || (D[1] = N((T) => 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",
|
|
3084
3084
|
style: { top: "13px" }
|
|
3085
3085
|
}, null, 512), [
|
|
3086
3086
|
[F, te(y.value) && e.has_cancel]
|
|
3087
3087
|
]),
|
|
3088
3088
|
s("i", {
|
|
3089
|
-
onClick: D[2] || (D[2] = (
|
|
3089
|
+
onClick: D[2] || (D[2] = (T) => !l.value && re()),
|
|
3090
3090
|
class: b([l.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"]),
|
|
3091
3091
|
style: { top: "11px" }
|
|
3092
3092
|
}, null, 2)
|
|
@@ -3098,11 +3098,11 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3098
3098
|
Rn,
|
|
3099
3099
|
O(s("input", {
|
|
3100
3100
|
type: "search",
|
|
3101
|
-
"onUpdate:modelValue": D[3] || (D[3] = (
|
|
3101
|
+
"onUpdate:modelValue": D[3] || (D[3] = (T) => c.value = T),
|
|
3102
3102
|
ref: o.value,
|
|
3103
3103
|
id: `${e.field_name}search${f.value}`,
|
|
3104
|
-
onKeydown:
|
|
3105
|
-
onBlur: D[4] || (D[4] = (
|
|
3104
|
+
onKeydown: C,
|
|
3105
|
+
onBlur: D[4] || (D[4] = (T) => pe()),
|
|
3106
3106
|
autocomplete: "off",
|
|
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 ..."
|
|
@@ -3112,18 +3112,18 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3112
3112
|
])
|
|
3113
3113
|
]),
|
|
3114
3114
|
s("div", qn, [
|
|
3115
|
-
(d(!0), u(v, null, k(x.value, (
|
|
3115
|
+
(d(!0), u(v, null, k(x.value, (T, 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" : ""]),
|
|
3119
|
-
onClick: (
|
|
3120
|
-
onMousedown: (
|
|
3119
|
+
onClick: (Xe) => be(T),
|
|
3120
|
+
onMousedown: (Xe) => be(T),
|
|
3121
3121
|
key: se,
|
|
3122
3122
|
id: `${se + 1}${f.value}`
|
|
3123
3123
|
}, [
|
|
3124
3124
|
s("div", Hn, [
|
|
3125
|
-
((_e = y.value) == null ? void 0 : _e.id) ===
|
|
3126
|
-
s("span", null, h(
|
|
3125
|
+
((_e = y.value) == null ? void 0 : _e.id) === T.id ? (d(), u("svg", Zn, Wn)) : g("", !0),
|
|
3126
|
+
s("span", null, h(T.name || T.id || "-"), 1)
|
|
3127
3127
|
])
|
|
3128
3128
|
], 42, zn);
|
|
3129
3129
|
}), 128))
|
|
@@ -3133,13 +3133,13 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3133
3133
|
])
|
|
3134
3134
|
])
|
|
3135
3135
|
])) : g("", !0),
|
|
3136
|
-
s("span",
|
|
3137
|
-
s("small",
|
|
3136
|
+
s("span", Yn, h(e.error_message), 1),
|
|
3137
|
+
s("small", Xn, h(e.description), 1)
|
|
3138
3138
|
], 2))
|
|
3139
3139
|
], 64);
|
|
3140
3140
|
};
|
|
3141
3141
|
}
|
|
3142
|
-
}, Jn = { class: "font-bold ptext-lg dark:text-white" }, Qn = ["id"], eo = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), to = ["for"], ro = ["required", "name", "id", "type", "placeholder"], so = { class: "gl-span-form-error" }, ao = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
3142
|
+
}, Jn = { class: "font-bold ptext-lg dark:text-white" }, Qn = ["id"], eo = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), to = ["for"], ro = ["required", "name", "id", "type", "placeholder"], so = { class: "gl-span-form-error" }, ao = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Rd = {
|
|
3143
3143
|
__name: "GlTextarea",
|
|
3144
3144
|
props: {
|
|
3145
3145
|
is_required: {
|
|
@@ -3185,7 +3185,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3185
3185
|
},
|
|
3186
3186
|
emits: ["update:modelValue", "keydown"],
|
|
3187
3187
|
setup(e, { expose: t, emit: r }) {
|
|
3188
|
-
const n = e, o = r, a =
|
|
3188
|
+
const n = e, o = r, a = S(null);
|
|
3189
3189
|
return R(() => {
|
|
3190
3190
|
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);
|
|
3191
3191
|
}), t({ focus: () => a.value.focus() }), (i, l) => (d(), u(v, null, [
|
|
@@ -3411,7 +3411,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3411
3411
|
})
|
|
3412
3412
|
], -1);
|
|
3413
3413
|
function vo(e, t, r, n, o, a) {
|
|
3414
|
-
const i =
|
|
3414
|
+
const i = X("RenderlessPagination");
|
|
3415
3415
|
return d(), K(i, {
|
|
3416
3416
|
data: r.data,
|
|
3417
3417
|
limit: r.limit,
|
|
@@ -3446,7 +3446,7 @@ function vo(e, t, r, n, o, a) {
|
|
|
3446
3446
|
"aria-label": "Previous",
|
|
3447
3447
|
tabindex: !l.computed.prevPageUrl && -1
|
|
3448
3448
|
}, ae(l.prevButtonEvents, !0)), [
|
|
3449
|
-
|
|
3449
|
+
A(e.$slots, "prev-nav", {}, () => [
|
|
3450
3450
|
ho,
|
|
3451
3451
|
mo
|
|
3452
3452
|
])
|
|
@@ -3474,7 +3474,7 @@ function vo(e, t, r, n, o, a) {
|
|
|
3474
3474
|
"aria-label": "Next",
|
|
3475
3475
|
tabindex: !l.computed.nextPageUrl && -1
|
|
3476
3476
|
}, ae(l.nextButtonEvents, !0)), [
|
|
3477
|
-
|
|
3477
|
+
A(e.$slots, "next-nav", {}, () => [
|
|
3478
3478
|
yo,
|
|
3479
3479
|
_o
|
|
3480
3480
|
])
|
|
@@ -3486,7 +3486,7 @@ function vo(e, t, r, n, o, a) {
|
|
|
3486
3486
|
_: 3
|
|
3487
3487
|
}, 8, ["data", "limit", "onPaginationChangePage"]);
|
|
3488
3488
|
}
|
|
3489
|
-
const xo = /* @__PURE__ */
|
|
3489
|
+
const xo = /* @__PURE__ */ $(oo, [["render", vo]]), wo = {
|
|
3490
3490
|
components: { TailwindPagination: xo },
|
|
3491
3491
|
props: {
|
|
3492
3492
|
data: Array,
|
|
@@ -3579,7 +3579,7 @@ const xo = /* @__PURE__ */ S(oo, [["render", vo]]), wo = {
|
|
|
3579
3579
|
"clip-rule": "evenodd"
|
|
3580
3580
|
})
|
|
3581
3581
|
])
|
|
3582
|
-
], -1),
|
|
3582
|
+
], -1), To = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Ao = { 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
3583
|
key: 0,
|
|
3584
3584
|
class: "ml-2"
|
|
3585
3585
|
}, Vo = {
|
|
@@ -3632,7 +3632,7 @@ const xo = /* @__PURE__ */ S(oo, [["render", vo]]), wo = {
|
|
|
3632
3632
|
Fo
|
|
3633
3633
|
], Uo = ["data-label"], qo = { class: "overflow-auto max-h-40" }, zo = { 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" };
|
|
3634
3634
|
function Ho(e, t, r, n, o, a) {
|
|
3635
|
-
const i =
|
|
3635
|
+
const i = X("dropdown"), l = X("TailwindPagination");
|
|
3636
3636
|
return d(), u("div", ko, [
|
|
3637
3637
|
s("div", $o, [
|
|
3638
3638
|
s("div", Co, [
|
|
@@ -3667,8 +3667,8 @@ function Ho(e, t, r, n, o, a) {
|
|
|
3667
3667
|
])
|
|
3668
3668
|
])
|
|
3669
3669
|
]),
|
|
3670
|
-
s("div",
|
|
3671
|
-
s("table",
|
|
3670
|
+
s("div", To, [
|
|
3671
|
+
s("table", Ao, [
|
|
3672
3672
|
s("thead", Io, [
|
|
3673
3673
|
s("tr", null, [
|
|
3674
3674
|
(d(!0), u(v, null, k(r.columns, (c, f) => (d(), u("th", {
|
|
@@ -3727,7 +3727,7 @@ function Ho(e, t, r, n, o, a) {
|
|
|
3727
3727
|
])
|
|
3728
3728
|
]);
|
|
3729
3729
|
}
|
|
3730
|
-
const
|
|
3730
|
+
const Ud = /* @__PURE__ */ $(wo, [["render", Ho]]), Zo = {
|
|
3731
3731
|
components: {},
|
|
3732
3732
|
props: {
|
|
3733
3733
|
data: Array,
|
|
@@ -3824,7 +3824,7 @@ const Gd = /* @__PURE__ */ S(wo, [["render", Ho]]), Zo = {
|
|
|
3824
3824
|
mounted() {
|
|
3825
3825
|
document.body.addEventListener("click", this.closeBoxOnbodyClick);
|
|
3826
3826
|
}
|
|
3827
|
-
}, Ko = { class: "p-2" }, Wo = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" },
|
|
3827
|
+
}, Ko = { class: "p-2" }, Wo = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" }, Yo = { class: "flex items-center gap-2" }, Xo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), Jo = { style: { "margin-top": "9px" } }, Qo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), el = /* @__PURE__ */ s("label", {
|
|
3828
3828
|
for: "table-search",
|
|
3829
3829
|
class: "sr-only"
|
|
3830
3830
|
}, "Search", -1), tl = { class: "relative" }, rl = /* @__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" }, [
|
|
@@ -3880,11 +3880,11 @@ const Gd = /* @__PURE__ */ S(wo, [["render", Ho]]), Zo = {
|
|
|
3880
3880
|
Pl
|
|
3881
3881
|
];
|
|
3882
3882
|
function jl(e, t, r, n, o, a) {
|
|
3883
|
-
const i =
|
|
3883
|
+
const i = X("dropdown");
|
|
3884
3884
|
return d(), u("div", Ko, [
|
|
3885
3885
|
s("div", Wo, [
|
|
3886
|
-
s("div",
|
|
3887
|
-
|
|
3886
|
+
s("div", Yo, [
|
|
3887
|
+
Xo,
|
|
3888
3888
|
s("div", Jo, [
|
|
3889
3889
|
Z(i, {
|
|
3890
3890
|
has_cancel: !1,
|
|
@@ -4019,10 +4019,10 @@ function jl(e, t, r, n, o, a) {
|
|
|
4019
4019
|
])
|
|
4020
4020
|
]);
|
|
4021
4021
|
}
|
|
4022
|
-
const
|
|
4022
|
+
const qd = /* @__PURE__ */ $(Zo, [["render", jl]]), Tl = {
|
|
4023
4023
|
class: "flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",
|
|
4024
4024
|
role: "alert"
|
|
4025
|
-
},
|
|
4025
|
+
}, Al = {
|
|
4026
4026
|
key: 0,
|
|
4027
4027
|
class: "inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"
|
|
4028
4028
|
}, Il = /* @__PURE__ */ s("svg", {
|
|
@@ -4099,8 +4099,8 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4099
4099
|
setTimeout(() => n("remove"), r.duration);
|
|
4100
4100
|
});
|
|
4101
4101
|
const n = t;
|
|
4102
|
-
return (o, a) => (d(), u("div",
|
|
4103
|
-
r.type === "success" ? (d(), u("div",
|
|
4102
|
+
return (o, a) => (d(), u("div", Tl, [
|
|
4103
|
+
r.type === "success" ? (d(), u("div", Al, Nl)) : g("", !0),
|
|
4104
4104
|
r.type === "error" ? (d(), u("div", Vl, Gl)) : g("", !0),
|
|
4105
4105
|
r.type === "warning" ? (d(), u("div", Fl, ql)) : g("", !0),
|
|
4106
4106
|
s("div", zl, h(r.message), 1),
|
|
@@ -4115,7 +4115,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4115
4115
|
}
|
|
4116
4116
|
}, de = Se({
|
|
4117
4117
|
items: []
|
|
4118
|
-
}),
|
|
4118
|
+
}), Yl = {
|
|
4119
4119
|
add(e) {
|
|
4120
4120
|
de.items.unshift({
|
|
4121
4121
|
key: Symbol(),
|
|
@@ -4129,8 +4129,8 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4129
4129
|
}
|
|
4130
4130
|
}, $e = {
|
|
4131
4131
|
state: de,
|
|
4132
|
-
methods:
|
|
4133
|
-
},
|
|
4132
|
+
methods: Yl
|
|
4133
|
+
}, zd = {
|
|
4134
4134
|
__name: "GlToastList",
|
|
4135
4135
|
setup(e) {
|
|
4136
4136
|
function t(r) {
|
|
@@ -4156,7 +4156,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4156
4156
|
_: 1
|
|
4157
4157
|
}));
|
|
4158
4158
|
}
|
|
4159
|
-
},
|
|
4159
|
+
}, Xl = {
|
|
4160
4160
|
key: 0,
|
|
4161
4161
|
class: "flex justify-center"
|
|
4162
4162
|
}, Jl = /* @__PURE__ */ s("svg", {
|
|
@@ -4172,7 +4172,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4172
4172
|
], ei = { class: "absolute right-0 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" }, ti = {
|
|
4173
4173
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4174
4174
|
"aria-labelledby": "dropdownDividerButton"
|
|
4175
|
-
}, ri = { key: 0 }, si = ["href"], ai = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), ni = { key: 1 }, oi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1),
|
|
4175
|
+
}, ri = { key: 0 }, si = ["href"], ai = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), ni = { key: 1 }, oi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Hd = {
|
|
4176
4176
|
__name: "DatatableAction",
|
|
4177
4177
|
props: {
|
|
4178
4178
|
field: {
|
|
@@ -4198,7 +4198,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4198
4198
|
},
|
|
4199
4199
|
emits: ["deleteAction"],
|
|
4200
4200
|
setup(e, { emit: t }) {
|
|
4201
|
-
const r = Ee(), n = e, o =
|
|
4201
|
+
const r = Ee(), n = e, o = S(!1), a = S(!1), i = () => {
|
|
4202
4202
|
o.value = !1;
|
|
4203
4203
|
}, l = () => {
|
|
4204
4204
|
o.value = !0;
|
|
@@ -4217,7 +4217,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4217
4217
|
console.log(x);
|
|
4218
4218
|
});
|
|
4219
4219
|
};
|
|
4220
|
-
return (x,
|
|
4220
|
+
return (x, C) => {
|
|
4221
4221
|
const L = De("click-outside");
|
|
4222
4222
|
return d(), u(v, null, [
|
|
4223
4223
|
Z(ue, {
|
|
@@ -4225,7 +4225,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4225
4225
|
onConfirmDelete: y,
|
|
4226
4226
|
onCancelDelete: c
|
|
4227
4227
|
}, null, 8, ["isOpen"]),
|
|
4228
|
-
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? O((d(), u("div",
|
|
4228
|
+
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? O((d(), u("div", Xl, [
|
|
4229
4229
|
s("button", {
|
|
4230
4230
|
onClick: l,
|
|
4231
4231
|
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",
|
|
@@ -4278,7 +4278,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4278
4278
|
], ui = { class: "absolute right-0 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" }, ci = {
|
|
4279
4279
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4280
4280
|
"aria-labelledby": "dropdownDividerButton"
|
|
4281
|
-
}, fi = { key: 0 }, gi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1),
|
|
4281
|
+
}, fi = { key: 0 }, gi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Zd = {
|
|
4282
4282
|
__name: "DatatableDeleteAction",
|
|
4283
4283
|
props: {
|
|
4284
4284
|
field: {
|
|
@@ -4304,7 +4304,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4304
4304
|
},
|
|
4305
4305
|
emits: ["deleteAction"],
|
|
4306
4306
|
setup(e, { emit: t }) {
|
|
4307
|
-
const r = Ee(), n = e, o =
|
|
4307
|
+
const r = Ee(), n = e, o = S(!1), a = S(!1), i = () => {
|
|
4308
4308
|
o.value = !1;
|
|
4309
4309
|
}, l = () => {
|
|
4310
4310
|
o.value = !0;
|
|
@@ -4323,7 +4323,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4323
4323
|
console.log(x);
|
|
4324
4324
|
});
|
|
4325
4325
|
};
|
|
4326
|
-
return (x,
|
|
4326
|
+
return (x, C) => {
|
|
4327
4327
|
const L = De("click-outside");
|
|
4328
4328
|
return d(), u(v, null, [
|
|
4329
4329
|
Z(ue, {
|
|
@@ -4441,7 +4441,7 @@ function vi(e, t, r, n, o, a) {
|
|
|
4441
4441
|
])) : g("", !0)
|
|
4442
4442
|
]);
|
|
4443
4443
|
}
|
|
4444
|
-
const
|
|
4444
|
+
const Kd = /* @__PURE__ */ $(hi, [["render", vi]]), xi = {
|
|
4445
4445
|
props: ["field", "row"],
|
|
4446
4446
|
computed: {
|
|
4447
4447
|
isArray() {
|
|
@@ -4517,7 +4517,7 @@ function Di(e, t, r, n, o, a) {
|
|
|
4517
4517
|
])) : g("", !0)
|
|
4518
4518
|
]);
|
|
4519
4519
|
}
|
|
4520
|
-
const
|
|
4520
|
+
const Wd = /* @__PURE__ */ $(xi, [["render", Di]]), Oi = {
|
|
4521
4521
|
props: ["field", "row", "tdProps"]
|
|
4522
4522
|
}, Pi = { key: 0 }, Ei = ["innerHTML"];
|
|
4523
4523
|
function ji(e, t, r, n, o, a) {
|
|
@@ -4528,7 +4528,7 @@ function ji(e, t, r, n, o, a) {
|
|
|
4528
4528
|
}, null, 8, Ei)
|
|
4529
4529
|
])) : g("", !0);
|
|
4530
4530
|
}
|
|
4531
|
-
const
|
|
4531
|
+
const Yd = /* @__PURE__ */ $(Oi, [["render", ji]]), Ti = {
|
|
4532
4532
|
props: ["field", "row", "tdProps"],
|
|
4533
4533
|
computed: {
|
|
4534
4534
|
entry() {
|
|
@@ -4542,19 +4542,19 @@ const Zd = /* @__PURE__ */ S(Oi, [["render", ji]]), Ai = {
|
|
|
4542
4542
|
return typeof this.row[this.entry.key] == "object";
|
|
4543
4543
|
}
|
|
4544
4544
|
}
|
|
4545
|
-
},
|
|
4545
|
+
}, Ai = { class: "flex flex-wrap gap-2" }, Ii = {
|
|
4546
4546
|
key: 1,
|
|
4547
4547
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4548
4548
|
};
|
|
4549
4549
|
function Mi(e, t, r, n, o, a) {
|
|
4550
|
-
return d(), u("div",
|
|
4550
|
+
return d(), u("div", Ai, [
|
|
4551
4551
|
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[a.entry.key], (i, l) => (d(), u("span", {
|
|
4552
4552
|
key: l,
|
|
4553
4553
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4554
4554
|
}, h(i[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span", Ii, h(r.row[a.entry.key][a.entry.field]), 1)) : g("", !0)
|
|
4555
4555
|
]);
|
|
4556
4556
|
}
|
|
4557
|
-
const
|
|
4557
|
+
const Xd = /* @__PURE__ */ $(Ti, [["render", Mi]]), Ni = {
|
|
4558
4558
|
props: ["field", "row", "tdProps"]
|
|
4559
4559
|
}, Vi = { key: 0 }, Li = { class: "m-1 d-inline-block" }, Bi = ["href", "title"], Gi = ["src", "alt", "title"];
|
|
4560
4560
|
function Fi(e, t, r, n, o, a) {
|
|
@@ -4574,7 +4574,7 @@ function Fi(e, t, r, n, o, a) {
|
|
|
4574
4574
|
])
|
|
4575
4575
|
])) : g("", !0);
|
|
4576
4576
|
}
|
|
4577
|
-
const
|
|
4577
|
+
const Jd = /* @__PURE__ */ $(Ni, [["render", Fi], ["__scopeId", "data-v-3a28c02c"]]), Ri = {
|
|
4578
4578
|
props: ["field", "row", "tdProps"],
|
|
4579
4579
|
computed: {
|
|
4580
4580
|
isActive() {
|
|
@@ -4599,7 +4599,7 @@ function Ki(e, t, r, n, o, a) {
|
|
|
4599
4599
|
]))
|
|
4600
4600
|
]);
|
|
4601
4601
|
}
|
|
4602
|
-
const
|
|
4602
|
+
const Qd = /* @__PURE__ */ $(Ri, [["render", Ki]]), Wi = {
|
|
4603
4603
|
props: ["field", "row", "tdProps"],
|
|
4604
4604
|
computed: {
|
|
4605
4605
|
hasLabelColor(e) {
|
|
@@ -4607,7 +4607,7 @@ const Xd = /* @__PURE__ */ S(Ri, [["render", Ki]]), Wi = {
|
|
|
4607
4607
|
return t ? t.class : "";
|
|
4608
4608
|
}
|
|
4609
4609
|
}
|
|
4610
|
-
},
|
|
4610
|
+
}, Yi = { class: "flex flex-wrap gap-2 text-nowrap" }, Xi = {
|
|
4611
4611
|
key: 0,
|
|
4612
4612
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
|
|
4613
4613
|
}, Ji = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Qi = {
|
|
@@ -4621,8 +4621,8 @@ const Xd = /* @__PURE__ */ S(Ri, [["render", Ki]]), Wi = {
|
|
|
4621
4621
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-full dark:bg-gray-700 dark:text-blue-400"
|
|
4622
4622
|
}, ad = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1);
|
|
4623
4623
|
function nd(e, t, r, n, o, a) {
|
|
4624
|
-
return d(), u("div",
|
|
4625
|
-
a.hasLabelColor == "green" ? (d(), u("span",
|
|
4624
|
+
return d(), u("div", Yi, [
|
|
4625
|
+
a.hasLabelColor == "green" ? (d(), u("span", Xi, [
|
|
4626
4626
|
Ji,
|
|
4627
4627
|
w(" " + h(this.row[this.field]), 1)
|
|
4628
4628
|
])) : g("", !0),
|
|
@@ -4640,7 +4640,7 @@ function nd(e, t, r, n, o, a) {
|
|
|
4640
4640
|
])) : g("", !0)
|
|
4641
4641
|
]);
|
|
4642
4642
|
}
|
|
4643
|
-
const
|
|
4643
|
+
const eu = /* @__PURE__ */ $(Wi, [["render", nd]]), od = {
|
|
4644
4644
|
props: ["field", "row", "tdProps"],
|
|
4645
4645
|
computed: {
|
|
4646
4646
|
hasLabelColor() {
|
|
@@ -4698,7 +4698,26 @@ function id(e, t, r, n, o, a) {
|
|
|
4698
4698
|
}, h(this.row[this.field]), 3)) : g("", !0)
|
|
4699
4699
|
]);
|
|
4700
4700
|
}
|
|
4701
|
-
const
|
|
4701
|
+
const tu = /* @__PURE__ */ $(od, [["render", id]]), dd = {
|
|
4702
|
+
props: ["field", "row", "tdProps"],
|
|
4703
|
+
computed: {
|
|
4704
|
+
formattedDate() {
|
|
4705
|
+
if (!this.row[this.field])
|
|
4706
|
+
return "";
|
|
4707
|
+
const e = new Date(this.row[this.field]), t = e.getFullYear(), r = e.toLocaleString("default", { month: "long" }), n = e.getDate();
|
|
4708
|
+
let o = e.getHours();
|
|
4709
|
+
const a = e.getMinutes(), i = e.getSeconds(), l = o >= 12 ? "pm" : "am";
|
|
4710
|
+
return o = o % 12, o = o || 12, `${r} ${n}, ${t}, ${o}:${a}:${i} ${l}`;
|
|
4711
|
+
},
|
|
4712
|
+
isActive() {
|
|
4713
|
+
return this.row[this.field] === 1;
|
|
4714
|
+
}
|
|
4715
|
+
}
|
|
4716
|
+
}, ud = { class: "w-full" };
|
|
4717
|
+
function cd(e, t, r, n, o, a) {
|
|
4718
|
+
return d(), u("div", ud, h(a.formattedDate), 1);
|
|
4719
|
+
}
|
|
4720
|
+
const ru = /* @__PURE__ */ $(dd, [["render", cd]]), fd = {
|
|
4702
4721
|
props: ["isOpen", "title", "button_text"],
|
|
4703
4722
|
methods: {
|
|
4704
4723
|
confirmAction() {
|
|
@@ -4708,35 +4727,35 @@ const Jd = /* @__PURE__ */ S(od, [["render", id]]), dd = {
|
|
|
4708
4727
|
this.$emit("cancel-action");
|
|
4709
4728
|
}
|
|
4710
4729
|
}
|
|
4711
|
-
},
|
|
4730
|
+
}, gd = {
|
|
4712
4731
|
key: 0,
|
|
4713
4732
|
class: "fixed inset-0 z-50 overflow-y-auto",
|
|
4714
4733
|
role: "dialog",
|
|
4715
4734
|
"aria-modal": "true"
|
|
4716
|
-
},
|
|
4735
|
+
}, hd = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, md = /* @__PURE__ */ s("div", {
|
|
4717
4736
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
4718
4737
|
"aria-hidden": "true"
|
|
4719
|
-
}, null, -1),
|
|
4738
|
+
}, null, -1), bd = /* @__PURE__ */ s("span", {
|
|
4720
4739
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4721
4740
|
"aria-hidden": "true"
|
|
4722
|
-
}, "", -1),
|
|
4723
|
-
function
|
|
4724
|
-
return r.isOpen ? (d(), u("div",
|
|
4725
|
-
s("div",
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
s("div",
|
|
4729
|
-
s("div",
|
|
4730
|
-
s("div",
|
|
4731
|
-
s("div",
|
|
4732
|
-
s("h3",
|
|
4733
|
-
s("div",
|
|
4734
|
-
|
|
4741
|
+
}, "", -1), pd = { 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" }, yd = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, _d = { class: "sm:flex sm:items-start" }, vd = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, xd = { class: "text-lg font-medium leading-6 text-gray-900" }, wd = { class: "mt-2" }, kd = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
4742
|
+
function $d(e, t, r, n, o, a) {
|
|
4743
|
+
return r.isOpen ? (d(), u("div", gd, [
|
|
4744
|
+
s("div", hd, [
|
|
4745
|
+
md,
|
|
4746
|
+
bd,
|
|
4747
|
+
s("div", pd, [
|
|
4748
|
+
s("div", yd, [
|
|
4749
|
+
s("div", _d, [
|
|
4750
|
+
s("div", vd, [
|
|
4751
|
+
s("h3", xd, h(r.title), 1),
|
|
4752
|
+
s("div", wd, [
|
|
4753
|
+
A(e.$slots, "default")
|
|
4735
4754
|
])
|
|
4736
4755
|
])
|
|
4737
4756
|
])
|
|
4738
4757
|
]),
|
|
4739
|
-
s("div",
|
|
4758
|
+
s("div", kd, [
|
|
4740
4759
|
s("button", {
|
|
4741
4760
|
onClick: t[0] || (t[0] = (...i) => a.confirmAction && a.confirmAction(...i)),
|
|
4742
4761
|
type: "button",
|
|
@@ -4752,40 +4771,41 @@ function xd(e, t, r, n, o, a) {
|
|
|
4752
4771
|
])
|
|
4753
4772
|
])) : g("", !0);
|
|
4754
4773
|
}
|
|
4755
|
-
const
|
|
4774
|
+
const su = /* @__PURE__ */ $(fd, [["render", $d]]);
|
|
4756
4775
|
export {
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
Ud as
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4776
|
+
ru as GLDatatableDateTime,
|
|
4777
|
+
jd as GlButton,
|
|
4778
|
+
Pd as GlCard,
|
|
4779
|
+
su as GlConfirmationModal,
|
|
4780
|
+
qd as GlDataTable,
|
|
4781
|
+
Ud as GlDataTableServerSide,
|
|
4782
|
+
Hd as GlDatatableAction,
|
|
4783
|
+
Zd as GlDatatableDeleteAction,
|
|
4784
|
+
Kd as GlDatatableFileDownload,
|
|
4785
|
+
Wd as GlDatatableFiles,
|
|
4786
|
+
Yd as GlDatatableHtml,
|
|
4787
|
+
Xd as GlDatatableList,
|
|
4788
|
+
Jd as GlDatatablePicture,
|
|
4789
|
+
Qd as GlDatatableStatus,
|
|
4790
|
+
eu as GlDatatableStatusGeneral,
|
|
4791
|
+
tu as GlDatatableStatusSpecficColor,
|
|
4772
4792
|
ue as GlDeleteConfirmationModal,
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4793
|
+
Fd as GlDropdown,
|
|
4794
|
+
Sd as GlFilesUpload,
|
|
4795
|
+
Od as GlLanguageSelector,
|
|
4796
|
+
Bd as GlModal,
|
|
4797
|
+
Ld as GlMultiItemSlide,
|
|
4798
|
+
Ed as GlMultiSelectDropdown,
|
|
4799
|
+
Dd as GlNotify,
|
|
4800
|
+
Vd as GlTab,
|
|
4801
|
+
Nd as GlTabsWrapper,
|
|
4782
4802
|
xo as GlTailwindPagination,
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4803
|
+
Md as GlTextInput,
|
|
4804
|
+
Id as GlTextTranslate,
|
|
4805
|
+
Rd as GlTextarea,
|
|
4806
|
+
Td as GlTextareaTranslate,
|
|
4807
|
+
Ad as GlTinymceTranslate,
|
|
4788
4808
|
$e as GlToast,
|
|
4789
|
-
|
|
4790
|
-
|
|
4809
|
+
zd as GlToastList,
|
|
4810
|
+
Gd as GlToggleBox
|
|
4791
4811
|
};
|