golden-logic-ui 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/golden-logic-ui.js +64 -64
- package/dist/golden-logic-ui.umd.cjs +2 -2
- package/dist/style.css +1 -1
- 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 I, withDirectives 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,9 +1016,9 @@ 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
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 = {
|
|
@@ -1063,7 +1063,7 @@ 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)
|
|
@@ -1074,7 +1074,7 @@ function Xt(e, t, r, n, a, o) {
|
|
|
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),
|
|
@@ -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), this.$emit("
|
|
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,7 +1458,7 @@ 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
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" }, [
|
|
@@ -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())
|
|
@@ -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
1549
|
Ir,
|
|
1550
|
-
|
|
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",
|
|
@@ -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",
|
|
@@ -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",
|
|
@@ -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",
|
|
@@ -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 =
|
|
2176
|
+
const r = S(t.default().map((a) => a.props)), n = S(r.value[0].title);
|
|
2177
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,
|
|
@@ -2220,7 +2220,7 @@ const Rl = /* @__PURE__ */ k(ks, [["render", js]]), Is = {
|
|
|
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]
|
|
@@ -2450,7 +2450,7 @@ const Ul = /* @__PURE__ */ k(Is, [["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",
|
|
@@ -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
|
])
|
|
@@ -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), this.$emit("
|
|
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",
|
|
@@ -3079,25 +3079,25 @@ function Io(e, t, r, n, a, o) {
|
|
|
3079
3079
|
autocomplete: "off",
|
|
3080
3080
|
readonly: ""
|
|
3081
3081
|
}, null, 8, po),
|
|
3082
|
-
|
|
3082
|
+
C(s("i", {
|
|
3083
3083
|
onClick: t[1] || (t[1] = I((l) => o.ClearInput(), ["stop"])),
|
|
3084
|
-
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700",
|
|
3084
|
+
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
|
|
3085
3085
|
style: { top: "13px" }
|
|
3086
3086
|
}, null, 512), [
|
|
3087
3087
|
[T, o.isObjectNotEmpty(a.selected) && r.has_cancel]
|
|
3088
3088
|
]),
|
|
3089
3089
|
s("i", {
|
|
3090
3090
|
onClick: t[2] || (t[2] = (l) => !a.optionsShown && o.showOptions()),
|
|
3091
|
-
class: p([a.optionsShown ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 showOptions"]),
|
|
3091
|
+
class: p([a.optionsShown ? "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"]),
|
|
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}`,
|
|
@@ -3123,11 +3123,11 @@ function Io(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]
|
|
@@ -3185,7 +3185,7 @@ const Zl = /* @__PURE__ */ k(io, [["render", Io]]), Ao = { 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, [
|
|
@@ -3615,7 +3615,7 @@ 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()),
|
|
@@ -3778,7 +3778,7 @@ 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
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" }, [
|
|
@@ -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, {
|
|
@@ -3858,7 +3858,7 @@ function ii(e, t, r, n, a, o) {
|
|
|
3858
3858
|
Ea,
|
|
3859
3859
|
s("div", ja, [
|
|
3860
3860
|
Ia,
|
|
3861
|
-
|
|
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",
|
|
@@ -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", {
|
|
@@ -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,13 +4174,13 @@ 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", {
|
|
@@ -4188,7 +4188,7 @@ const Xl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4188
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() {
|
|
@@ -4284,7 +4284,7 @@ function Ii(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() {
|
|
@@ -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")
|