golden-logic-ui 1.0.58 → 1.0.60
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 +132 -127
- package/dist/golden-logic-ui.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as Je, inject as Ce, watch as X, effectScope as Qe, computed as G, reactive as Se, resolveComponent as Y, Fragment as v, createVNode as Z, normalizeClass as
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as Je, inject as Ce, watch as X, effectScope as Qe, computed as G, reactive as Se, resolveComponent as Y, Fragment as v, createVNode as Z, normalizeClass as b, toDisplayString as h, withModifiers as N, withDirectives as D, vModelText as V, renderList as k, normalizeStyle as et, renderSlot as I, createTextVNode as w, vShow as F, createBlock as K, resolveDynamicComponent as oe, mergeProps as W, withCtx as J, ref as C, onMounted as R, vModelDynamic as tt, provide as rt, pushScopeId as st, popScopeId as nt, vModelCheckbox as at, nextTick as ot, toHandlers as ne, TransitionGroup as it, unref as lt, resolveDirective as Oe, markRaw as dt } from "vue";
|
|
2
2
|
const S = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
4
|
for (const [n, o] of t)
|
|
@@ -26,15 +26,15 @@ const S = (e, t) => {
|
|
|
26
26
|
}, null, -1), gt = /* @__PURE__ */ s("span", {
|
|
27
27
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
28
28
|
"aria-hidden": "true"
|
|
29
|
-
}, "", -1), mt = { 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" },
|
|
29
|
+
}, "", -1), mt = { 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" }, _t = /* @__PURE__ */ Je('<div class="px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4"><div class="sm:flex sm:items-start"><div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"><h3 class="text-lg font-medium leading-6 text-gray-900" id="modal-title"> Confirm Deletion </h3><div class="mt-2"><p class="text-sm text-gray-500"> Are you sure you want to delete this item? This action cannot be undone. </p></div></div></div></div>', 1), pt = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
30
30
|
function bt(e, t, r, n, o, a) {
|
|
31
31
|
return r.isOpen ? (d(), u("div", ct, [
|
|
32
32
|
s("div", ft, [
|
|
33
33
|
ht,
|
|
34
34
|
gt,
|
|
35
35
|
s("div", mt, [
|
|
36
|
-
|
|
37
|
-
s("div",
|
|
36
|
+
_t,
|
|
37
|
+
s("div", pt, [
|
|
38
38
|
s("button", {
|
|
39
39
|
onClick: t[0] || (t[0] = (...l) => a.confirmDeletion && a.confirmDeletion(...l)),
|
|
40
40
|
type: "button",
|
|
@@ -1024,7 +1024,7 @@ const Ht = {
|
|
|
1024
1024
|
}, ar = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, or = /* @__PURE__ */ s("i", { class: "text-3xl fas fa-file-alt" }, null, -1), ir = { class: "w-full ml-3" }, lr = { class: "flex items-center justify-between mb-1" }, dr = { class: "text-xs text-black dark:text-white" }, ur = { class: "text-xs text-black dark:text-white" }, cr = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, fr = { class: "overflow-x-scroll max-h-56" }, hr = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, gr = { class: "flex items-center" }, mr = /* @__PURE__ */ s("i", {
|
|
1025
1025
|
class: "text-3xl fas fa-file-alt",
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
|
-
}, null, -1),
|
|
1027
|
+
}, null, -1), _r = { class: "flex flex-col ml-3" }, pr = { class: "text-xs" }, br = { class: "text-xs" }, yr = { class: "flex gap-2" }, vr = ["href"], xr = ["onClick"];
|
|
1028
1028
|
function wr(e, t, r, n, o, a) {
|
|
1029
1029
|
const l = Y("DeleteConfirmationModal");
|
|
1030
1030
|
return d(), u(v, null, [
|
|
@@ -1034,13 +1034,13 @@ function wr(e, t, r, n, o, a) {
|
|
|
1034
1034
|
onCancelDelete: a.closeDeleteModal
|
|
1035
1035
|
}, null, 8, ["isOpen", "onConfirmDelete", "onCancelDelete"]),
|
|
1036
1036
|
s("div", {
|
|
1037
|
-
class:
|
|
1037
|
+
class: b([{
|
|
1038
1038
|
"border-red-500 dark:border-red-500": o.error_message_data !== "",
|
|
1039
1039
|
"border-gray-200 dark:border-gray-700": o.error_message_data == ""
|
|
1040
1040
|
}, "w-full p-4 bg-white border rounded-lg shadow dark:bg-gray-800"])
|
|
1041
1041
|
}, [
|
|
1042
1042
|
s("label", {
|
|
1043
|
-
class:
|
|
1043
|
+
class: b({
|
|
1044
1044
|
"gl-label-form": o.error_message_data == "",
|
|
1045
1045
|
"gl-label-form-invalid": o.error_message_data !== "",
|
|
1046
1046
|
required: r.is_required
|
|
@@ -1097,8 +1097,8 @@ function wr(e, t, r, n, o, a) {
|
|
|
1097
1097
|
(d(!0), u(v, null, k(o.uploadFileList, (i, c) => (d(), u("li", hr, [
|
|
1098
1098
|
s("div", gr, [
|
|
1099
1099
|
mr,
|
|
1100
|
-
s("div",
|
|
1101
|
-
s("span",
|
|
1100
|
+
s("div", _r, [
|
|
1101
|
+
s("span", pr, h(a.getFileName(i.file_name)), 1),
|
|
1102
1102
|
s("span", br, h(a.formatFileSize(i.size)), 1)
|
|
1103
1103
|
])
|
|
1104
1104
|
]),
|
|
@@ -1121,7 +1121,7 @@ function wr(e, t, r, n, o, a) {
|
|
|
1121
1121
|
], 2)
|
|
1122
1122
|
], 64);
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const pd = /* @__PURE__ */ S(Ht, [["render", wr]]), kr = {
|
|
1125
1125
|
computed: {
|
|
1126
1126
|
...qt("notification", ["notification"]),
|
|
1127
1127
|
alertClasses() {
|
|
@@ -1199,7 +1199,7 @@ const _d = /* @__PURE__ */ S(Ht, [["render", wr]]), kr = {
|
|
|
1199
1199
|
function Er(e, t, r, n, o, a) {
|
|
1200
1200
|
return e.notification.show ? (d(), u("div", {
|
|
1201
1201
|
key: 0,
|
|
1202
|
-
class:
|
|
1202
|
+
class: b(["fixed right-0 z-50 flex items-center p-4 m-5 mb-4 rounded-lg shadow-lg", a.alertClasses]),
|
|
1203
1203
|
role: "alert"
|
|
1204
1204
|
}, [
|
|
1205
1205
|
$r,
|
|
@@ -1208,7 +1208,7 @@ function Er(e, t, r, n, o, a) {
|
|
|
1208
1208
|
s("button", {
|
|
1209
1209
|
type: "button",
|
|
1210
1210
|
onClick: t[0] || (t[0] = (...l) => a.dismiss && a.dismiss(...l)),
|
|
1211
|
-
class:
|
|
1211
|
+
class: b(["inline-flex items-center justify-center w-6 h-6 p-1 -mx-1 -my-1 rounded-lg ms-auto focus:ring-2 hover:bg-opacity-50", a.buttonClasses]),
|
|
1212
1212
|
"aria-label": "Close"
|
|
1213
1213
|
}, Pr, 2)
|
|
1214
1214
|
], 2)) : g("", !0);
|
|
@@ -1263,7 +1263,7 @@ function Mr(e, t, r, n, o, a) {
|
|
|
1263
1263
|
}, null, 8, Ir),
|
|
1264
1264
|
s("label", {
|
|
1265
1265
|
for: l + "_" + r.field_name,
|
|
1266
|
-
class:
|
|
1266
|
+
class: b([{
|
|
1267
1267
|
"border md:!rounded-s-lg": i === 0,
|
|
1268
1268
|
"border md:!rounded-e-lg": i === o.locals.length - 1,
|
|
1269
1269
|
"border-t border-b": i !== 0 && i !== o.locals.length - 1
|
|
@@ -1286,7 +1286,7 @@ const yd = /* @__PURE__ */ S(jr, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1286
1286
|
setup(e) {
|
|
1287
1287
|
const t = e, r = G(() => t.class);
|
|
1288
1288
|
return (n, o) => (d(), u("div", {
|
|
1289
|
-
class:
|
|
1289
|
+
class: b(["flex flex-col gap-9", r.value])
|
|
1290
1290
|
}, [
|
|
1291
1291
|
s("div", Nr, [
|
|
1292
1292
|
s("div", Vr, [
|
|
@@ -1487,7 +1487,7 @@ function as(e, t, r, n, o, a) {
|
|
|
1487
1487
|
return d(), u(v, null, [
|
|
1488
1488
|
r.show ? (d(), u("div", {
|
|
1489
1489
|
key: 0,
|
|
1490
|
-
class:
|
|
1490
|
+
class: b(r.field_name)
|
|
1491
1491
|
}, [
|
|
1492
1492
|
s("h3", Fr, h(r.label_name), 1),
|
|
1493
1493
|
s("p", Rr, [
|
|
@@ -1497,7 +1497,7 @@ function as(e, t, r, n, o, a) {
|
|
|
1497
1497
|
], 2)) : g("", !0),
|
|
1498
1498
|
r.show ? g("", !0) : (d(), u("div", {
|
|
1499
1499
|
key: 1,
|
|
1500
|
-
class:
|
|
1500
|
+
class: b(["mb-4", r.field_name])
|
|
1501
1501
|
}, [
|
|
1502
1502
|
(d(!0), u(v, null, k(o.selectedIds, (l, i) => (d(), u("input", {
|
|
1503
1503
|
type: "hidden",
|
|
@@ -1507,7 +1507,7 @@ function as(e, t, r, n, o, a) {
|
|
|
1507
1507
|
}, null, 8, zr))), 128)),
|
|
1508
1508
|
r.options ? (d(), u("div", Hr, [
|
|
1509
1509
|
s("label", {
|
|
1510
|
-
class:
|
|
1510
|
+
class: b({
|
|
1511
1511
|
"gl-label-form": r.error_message == "",
|
|
1512
1512
|
"gl-label-form-invalid": r.error_message !== "",
|
|
1513
1513
|
required: r.is_required
|
|
@@ -1543,7 +1543,7 @@ function as(e, t, r, n, o, a) {
|
|
|
1543
1543
|
]))), 128))
|
|
1544
1544
|
]),
|
|
1545
1545
|
s("i", {
|
|
1546
|
-
class:
|
|
1546
|
+
class: b([o.optionsShown ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700"]),
|
|
1547
1547
|
style: { top: "11px" }
|
|
1548
1548
|
}, null, 2)
|
|
1549
1549
|
]),
|
|
@@ -1568,7 +1568,7 @@ function as(e, t, r, n, o, a) {
|
|
|
1568
1568
|
]),
|
|
1569
1569
|
s("div", ss, [
|
|
1570
1570
|
(d(!0), u(v, null, k(a.filteredOptions, (l, i) => (d(), u("div", {
|
|
1571
|
-
class:
|
|
1571
|
+
class: b([
|
|
1572
1572
|
"block px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",
|
|
1573
1573
|
i + 1 == o.count || a.isOptionSelected(l.id) ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
1574
1574
|
]),
|
|
@@ -1604,6 +1604,10 @@ const xd = /* @__PURE__ */ S(Gr, [["render", as]]), os = {
|
|
|
1604
1604
|
type: Boolean,
|
|
1605
1605
|
default: !1
|
|
1606
1606
|
},
|
|
1607
|
+
is_disabled: {
|
|
1608
|
+
type: Boolean,
|
|
1609
|
+
default: !1
|
|
1610
|
+
},
|
|
1607
1611
|
tag: {
|
|
1608
1612
|
type: String,
|
|
1609
1613
|
default: "button"
|
|
@@ -1659,7 +1663,7 @@ function ls(e, t, r, n, o, a) {
|
|
|
1659
1663
|
return r.is_loading ? (d(), K(oe("button"), {
|
|
1660
1664
|
key: 1,
|
|
1661
1665
|
disabled: "",
|
|
1662
|
-
class:
|
|
1666
|
+
class: b(`flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${a.buttonTypeClass}`)
|
|
1663
1667
|
}, {
|
|
1664
1668
|
default: J(() => [
|
|
1665
1669
|
is,
|
|
@@ -1668,7 +1672,8 @@ function ls(e, t, r, n, o, a) {
|
|
|
1668
1672
|
_: 1
|
|
1669
1673
|
}, 8, ["class"])) : (d(), K(oe(r.tag), W({
|
|
1670
1674
|
key: 0,
|
|
1671
|
-
type: r.is_submit
|
|
1675
|
+
type: r.is_submit,
|
|
1676
|
+
disabled: r.is_disabled
|
|
1672
1677
|
}, { type: r.is_submit ? "submit" : void 0 }, {
|
|
1673
1678
|
href: r.tag === "a" ? r.href : void 0,
|
|
1674
1679
|
class: `flex items-center gap-2 focus:outline-none text-sm px-5 py-2 me-2 font-medium rounded-lg ${a.buttonTypeClass}`
|
|
@@ -1676,14 +1681,14 @@ function ls(e, t, r, n, o, a) {
|
|
|
1676
1681
|
default: J(() => [
|
|
1677
1682
|
r.icon ? (d(), u("i", {
|
|
1678
1683
|
key: 0,
|
|
1679
|
-
class:
|
|
1684
|
+
class: b([r.icon, "text-base"])
|
|
1680
1685
|
}, null, 2)) : g("", !0),
|
|
1681
1686
|
I(e.$slots, "default")
|
|
1682
1687
|
]),
|
|
1683
1688
|
_: 3
|
|
1684
|
-
}, 16, ["type", "href", "class"]));
|
|
1689
|
+
}, 16, ["type", "disabled", "href", "class"]));
|
|
1685
1690
|
}
|
|
1686
|
-
const wd = /* @__PURE__ */ S(os, [["render", ls]]), 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), hs = ["for"], gs = /* @__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"],
|
|
1691
|
+
const wd = /* @__PURE__ */ S(os, [["render", ls]]), 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), hs = ["for"], gs = /* @__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"], _s = ["required", "name", "id", "type"], ps = { class: "gl-span-form-error" }, bs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, kd = {
|
|
1687
1692
|
__name: "GlTextareaTranslate",
|
|
1688
1693
|
props: {
|
|
1689
1694
|
is_required: {
|
|
@@ -1755,7 +1760,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1755
1760
|
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
1756
1761
|
e.show ? (d(), u("div", {
|
|
1757
1762
|
key: 0,
|
|
1758
|
-
class:
|
|
1763
|
+
class: b(e.field_name)
|
|
1759
1764
|
}, [
|
|
1760
1765
|
s("h3", ds, h(e.label_name), 1),
|
|
1761
1766
|
D(s("input", {
|
|
@@ -1777,10 +1782,10 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1777
1782
|
], 2)) : g("", !0),
|
|
1778
1783
|
e.show ? g("", !0) : (d(), u("div", {
|
|
1779
1784
|
key: 1,
|
|
1780
|
-
class:
|
|
1785
|
+
class: b(["mb-4", e.field_name])
|
|
1781
1786
|
}, [
|
|
1782
1787
|
s("label", {
|
|
1783
|
-
class:
|
|
1788
|
+
class: b({
|
|
1784
1789
|
"gl-label-translation-form": e.error_message == "",
|
|
1785
1790
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
1786
1791
|
required: e.is_required
|
|
@@ -1802,7 +1807,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1802
1807
|
required: e.is_required,
|
|
1803
1808
|
name: e.field_name,
|
|
1804
1809
|
id: e.field_name,
|
|
1805
|
-
class:
|
|
1810
|
+
class: b({
|
|
1806
1811
|
" gl-textarea-form form-input-translation mt-4 ": e.error_message == "",
|
|
1807
1812
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1808
1813
|
}),
|
|
@@ -1813,8 +1818,8 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1813
1818
|
ref: a,
|
|
1814
1819
|
rows: "4"
|
|
1815
1820
|
}, `
|
|
1816
|
-
`, 42,
|
|
1817
|
-
s("span",
|
|
1821
|
+
`, 42, _s),
|
|
1822
|
+
s("span", ps, h(e.error_message), 1),
|
|
1818
1823
|
s("small", bs, h(e.description), 1)
|
|
1819
1824
|
], 2))
|
|
1820
1825
|
], 64));
|
|
@@ -1895,7 +1900,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1895
1900
|
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
1896
1901
|
e.show ? (d(), u("div", {
|
|
1897
1902
|
key: 0,
|
|
1898
|
-
class:
|
|
1903
|
+
class: b(e.field_name)
|
|
1899
1904
|
}, [
|
|
1900
1905
|
s("h3", ys, h(e.label_name), 1),
|
|
1901
1906
|
D(s("input", {
|
|
@@ -1917,10 +1922,10 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1917
1922
|
], 2)) : g("", !0),
|
|
1918
1923
|
e.show ? g("", !0) : (d(), u("div", {
|
|
1919
1924
|
key: 1,
|
|
1920
|
-
class:
|
|
1925
|
+
class: b(["mb-4", e.field_name])
|
|
1921
1926
|
}, [
|
|
1922
1927
|
s("label", {
|
|
1923
|
-
class:
|
|
1928
|
+
class: b({
|
|
1924
1929
|
"gl-label-translation-form": e.error_message == "",
|
|
1925
1930
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
1926
1931
|
required: e.is_required
|
|
@@ -1941,7 +1946,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1941
1946
|
s("textarea", {
|
|
1942
1947
|
name: e.field_name,
|
|
1943
1948
|
id: e.field_name,
|
|
1944
|
-
class:
|
|
1949
|
+
class: b(["tiny", {
|
|
1945
1950
|
" gl-textarea-form form-input-translation mt-4 ": e.error_message == "",
|
|
1946
1951
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1947
1952
|
}]),
|
|
@@ -2030,7 +2035,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2030
2035
|
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
2031
2036
|
e.show ? (d(), u("div", {
|
|
2032
2037
|
key: 0,
|
|
2033
|
-
class:
|
|
2038
|
+
class: b(e.field_name)
|
|
2034
2039
|
}, [
|
|
2035
2040
|
s("h3", Ps, h(e.label_name), 1),
|
|
2036
2041
|
D(s("input", {
|
|
@@ -2051,10 +2056,10 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2051
2056
|
], 2)) : g("", !0),
|
|
2052
2057
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2053
2058
|
key: 1,
|
|
2054
|
-
class:
|
|
2059
|
+
class: b(["mb-4", e.field_name])
|
|
2055
2060
|
}, [
|
|
2056
2061
|
s("label", {
|
|
2057
|
-
class:
|
|
2062
|
+
class: b({
|
|
2058
2063
|
"gl-label-translation-form": e.error_message == "",
|
|
2059
2064
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
2060
2065
|
required: e.is_required
|
|
@@ -2076,7 +2081,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2076
2081
|
required: e.is_required,
|
|
2077
2082
|
name: e.field_name,
|
|
2078
2083
|
id: e.field_name,
|
|
2079
|
-
class:
|
|
2084
|
+
class: b({
|
|
2080
2085
|
" gl-input-form form-input-translation mt-2 ": e.error_message == "",
|
|
2081
2086
|
" gl-input-form-invalid form-input-translation mt-2 ": e.error_message !== ""
|
|
2082
2087
|
}),
|
|
@@ -2148,7 +2153,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2148
2153
|
return t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
2149
2154
|
e.show ? (d(), u("div", {
|
|
2150
2155
|
key: 0,
|
|
2151
|
-
class:
|
|
2156
|
+
class: b(e.field_name)
|
|
2152
2157
|
}, [
|
|
2153
2158
|
s("h3", Bs, h(e.label_name), 1),
|
|
2154
2159
|
s("p", Gs, h(e.type == "password" ? e.modelValue.replace(/./g, "*") : e.modelValue), 1),
|
|
@@ -2156,10 +2161,10 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2156
2161
|
], 2)) : g("", !0),
|
|
2157
2162
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2158
2163
|
key: 1,
|
|
2159
|
-
class:
|
|
2164
|
+
class: b(["mb-4", e.field_name])
|
|
2160
2165
|
}, [
|
|
2161
2166
|
s("label", {
|
|
2162
|
-
class:
|
|
2167
|
+
class: b({
|
|
2163
2168
|
"gl-label-form": e.error_message == "",
|
|
2164
2169
|
"gl-label-form-invalid": e.error_message !== "",
|
|
2165
2170
|
required: e.is_required
|
|
@@ -2170,7 +2175,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2170
2175
|
required: e.is_required,
|
|
2171
2176
|
name: e.field_name,
|
|
2172
2177
|
id: e.field_name,
|
|
2173
|
-
class:
|
|
2178
|
+
class: b({
|
|
2174
2179
|
"gl-input-form": e.error_message == "",
|
|
2175
2180
|
"gl-input-form-invalid": e.error_message !== ""
|
|
2176
2181
|
}),
|
|
@@ -2207,10 +2212,10 @@ function en(e, t, r, n, o, a) {
|
|
|
2207
2212
|
class: "flex-auto -mb-px text-center"
|
|
2208
2213
|
}, [
|
|
2209
2214
|
s("a", {
|
|
2210
|
-
class:
|
|
2215
|
+
class: b([{ "text-slate-600 bg-white dark:bg-meta-4": n.selectedTitle != l.title, "text-white bg-slate-600 dark:bg-primary": n.selectedTitle === l.title }, "block px-5 py-3 text-xs font-bold leading-normal uppercase rounded shadow-lg hover:text-white tex hover:bg-slate-600 dark:hover:bg-primary dark:text-white tabs_buttons"])
|
|
2211
2216
|
}, [
|
|
2212
2217
|
s("i", {
|
|
2213
|
-
class:
|
|
2218
|
+
class: b([l.icon, "mr-1 text-base"])
|
|
2214
2219
|
}, null, 2),
|
|
2215
2220
|
w(" " + h(l.title), 1)
|
|
2216
2221
|
], 2)
|
|
@@ -2372,7 +2377,7 @@ const Dd = /* @__PURE__ */ S(tn, [["render", sn]]), nn = {
|
|
|
2372
2377
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2373
2378
|
}, null, -1)), gn = [
|
|
2374
2379
|
hn
|
|
2375
|
-
], mn = ["id"],
|
|
2380
|
+
], mn = ["id"], _n = ["id"], pn = { class: "w-full" }, bn = {
|
|
2376
2381
|
key: 0,
|
|
2377
2382
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2378
2383
|
class: "w-6 h-6",
|
|
@@ -2529,7 +2534,7 @@ const Dd = /* @__PURE__ */ S(tn, [["render", sn]]), nn = {
|
|
|
2529
2534
|
function da(e, t, r, n, o, a) {
|
|
2530
2535
|
return d(), u("div", null, [
|
|
2531
2536
|
s("div", {
|
|
2532
|
-
class:
|
|
2537
|
+
class: b(["", !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slide" ? "flex" : "relative block"]),
|
|
2533
2538
|
id: "mainSliderContainer_" + e.Random_string
|
|
2534
2539
|
}, [
|
|
2535
2540
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", on, [
|
|
@@ -2544,7 +2549,7 @@ function da(e, t, r, n, o, a) {
|
|
|
2544
2549
|
])
|
|
2545
2550
|
])) : g("", !0),
|
|
2546
2551
|
s("div", {
|
|
2547
|
-
class:
|
|
2552
|
+
class: b(["overflow-hidden", a.sliderContainerAction()]),
|
|
2548
2553
|
id: "sliderContainer_" + e.Random_string
|
|
2549
2554
|
}, [
|
|
2550
2555
|
s("ul", {
|
|
@@ -2553,9 +2558,9 @@ function da(e, t, r, n, o, a) {
|
|
|
2553
2558
|
}, [
|
|
2554
2559
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (d(), u("div", {
|
|
2555
2560
|
key: 0,
|
|
2556
|
-
class:
|
|
2561
|
+
class: b(["items-center justify-center hidden arrow_button xl:flex xxl:flex md:flex sm:flex", r.direction_property == "rtl" ? "arrow_button_next" : "arrow_button_prev"])
|
|
2557
2562
|
}, [
|
|
2558
|
-
s("div",
|
|
2563
|
+
s("div", pn, [
|
|
2559
2564
|
s("button", {
|
|
2560
2565
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2561
2566
|
onClick: t[1] || (t[1] = N((l) => a.prev(), ["stop"]))
|
|
@@ -2568,7 +2573,7 @@ function da(e, t, r, n, o, a) {
|
|
|
2568
2573
|
I(e.$slots, "default", {}, void 0, !0),
|
|
2569
2574
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (d(), u("div", {
|
|
2570
2575
|
key: 1,
|
|
2571
|
-
class:
|
|
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"])
|
|
2572
2577
|
}, [
|
|
2573
2578
|
s("div", $n, [
|
|
2574
2579
|
s("button", {
|
|
@@ -2580,25 +2585,25 @@ function da(e, t, r, n, o, a) {
|
|
|
2580
2585
|
])
|
|
2581
2586
|
])
|
|
2582
2587
|
], 2)) : g("", !0)
|
|
2583
|
-
], 8,
|
|
2588
|
+
], 8, _n),
|
|
2584
2589
|
r.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (d(), u("div", {
|
|
2585
2590
|
key: 0,
|
|
2586
|
-
class:
|
|
2591
|
+
class: b(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2587
2592
|
}, [
|
|
2588
2593
|
(d(!0), u(v, null, k(e.dotsNum, (l) => (d(), u("button", {
|
|
2589
2594
|
role: "button",
|
|
2590
|
-
class:
|
|
2595
|
+
class: b(["gl-dot", { active: e.currentDot == l }]),
|
|
2591
2596
|
key: l,
|
|
2592
2597
|
onClick: (i) => a.setDot(l)
|
|
2593
2598
|
}, In, 10, jn))), 128))
|
|
2594
2599
|
], 2)) : g("", !0),
|
|
2595
2600
|
r.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div", Tn, [
|
|
2596
2601
|
s("div", {
|
|
2597
|
-
class:
|
|
2602
|
+
class: b(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2598
2603
|
}, [
|
|
2599
2604
|
(d(!0), u(v, null, k(e.dotsNum, (l) => (d(), u("button", {
|
|
2600
2605
|
role: "button",
|
|
2601
|
-
class:
|
|
2606
|
+
class: b(["gl-dot", { active: e.currentDot == l }]),
|
|
2602
2607
|
key: l,
|
|
2603
2608
|
onClick: (i) => a.setDot(l)
|
|
2604
2609
|
}, Vn, 10, Mn))), 128))
|
|
@@ -2607,7 +2612,7 @@ function da(e, t, r, n, o, a) {
|
|
|
2607
2612
|
s("div", Bn, [
|
|
2608
2613
|
s("div", Gn, [
|
|
2609
2614
|
s("button", {
|
|
2610
|
-
class:
|
|
2615
|
+
class: b(["p-3 rounded-full arrow_button_styles", r.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2611
2616
|
onClick: t[3] || (t[3] = (l) => a.prev())
|
|
2612
2617
|
}, [
|
|
2613
2618
|
r.direction_property == "ltr" ? (d(), u("svg", Fn, Un)) : g("", !0),
|
|
@@ -2663,7 +2668,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
2663
2668
|
])
|
|
2664
2669
|
], -1), ma = [
|
|
2665
2670
|
ga
|
|
2666
|
-
],
|
|
2671
|
+
], _a = { class: "relative p-4 overflow-y-auto" }, pa = { 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" }, Ed = {
|
|
2667
2672
|
__name: "GlModal",
|
|
2668
2673
|
props: {
|
|
2669
2674
|
is_open: {
|
|
@@ -2696,7 +2701,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
2696
2701
|
{ immediate: !0, deep: !0 }
|
|
2697
2702
|
), (i, c) => D((d(), u("div", ua, [
|
|
2698
2703
|
s("div", {
|
|
2699
|
-
class:
|
|
2704
|
+
class: b(["pointer-events-none relative h-[calc(100%-1rem)] w-auto translate-y-[-50px] transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:h-[calc(100%-3.5rem)]", e.max_width])
|
|
2700
2705
|
}, [
|
|
2701
2706
|
s("div", ca, [
|
|
2702
2707
|
s("div", fa, [
|
|
@@ -2708,10 +2713,10 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
2708
2713
|
"aria-label": "Close"
|
|
2709
2714
|
}, ma)
|
|
2710
2715
|
]),
|
|
2711
|
-
s("div",
|
|
2716
|
+
s("div", _a, [
|
|
2712
2717
|
I(i.$slots, "body")
|
|
2713
2718
|
]),
|
|
2714
|
-
s("div",
|
|
2719
|
+
s("div", pa, [
|
|
2715
2720
|
I(i.$slots, "buttons"),
|
|
2716
2721
|
s("button", {
|
|
2717
2722
|
onClick: l,
|
|
@@ -2778,7 +2783,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
2778
2783
|
return (l, i) => (d(), u(v, null, [
|
|
2779
2784
|
e.show ? (d(), u("div", {
|
|
2780
2785
|
key: 0,
|
|
2781
|
-
class:
|
|
2786
|
+
class: b(e.field_name)
|
|
2782
2787
|
}, [
|
|
2783
2788
|
s("div", ba, [
|
|
2784
2789
|
s("li", ya, [
|
|
@@ -2804,7 +2809,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
2804
2809
|
], 2)) : g("", !0),
|
|
2805
2810
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2806
2811
|
key: 1,
|
|
2807
|
-
class:
|
|
2812
|
+
class: b(["mb-4", e.field_name])
|
|
2808
2813
|
}, [
|
|
2809
2814
|
s("li", $a, [
|
|
2810
2815
|
w(h(e.label_name) + " ", 1),
|
|
@@ -2929,104 +2934,104 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
2929
2934
|
setup(e, { emit: t }) {
|
|
2930
2935
|
const r = e, n = t, o = C(null), a = C({}), l = C(0), i = C(!1), c = C(""), f = C("");
|
|
2931
2936
|
R(() => {
|
|
2932
|
-
f.value = L(), r.show || (document.body.addEventListener("click", (
|
|
2933
|
-
ze(
|
|
2934
|
-
}), document.addEventListener("keypress", (
|
|
2935
|
-
|
|
2937
|
+
f.value = L(), r.show || (document.body.addEventListener("click", (p) => {
|
|
2938
|
+
ze(p);
|
|
2939
|
+
}), document.addEventListener("keypress", (p) => {
|
|
2940
|
+
p.key === "Enter" && p.target.form && p.preventDefault();
|
|
2936
2941
|
}));
|
|
2937
2942
|
});
|
|
2938
2943
|
const m = G(() => Ke()), y = G(() => We()), x = G(() => {
|
|
2939
|
-
const
|
|
2944
|
+
const p = [], O = new RegExp(c.value, "ig");
|
|
2940
2945
|
for (const E of m.value) {
|
|
2941
2946
|
const B = String(E.name);
|
|
2942
|
-
(c.value.length < 1 || B.match(O)) &&
|
|
2947
|
+
(c.value.length < 1 || B.match(O)) && p.length < r.maxItem && p.push(E);
|
|
2943
2948
|
}
|
|
2944
|
-
return
|
|
2949
|
+
return p;
|
|
2945
2950
|
});
|
|
2946
|
-
function $(
|
|
2951
|
+
function $(p) {
|
|
2947
2952
|
if ([
|
|
2948
2953
|
"ArrowLeft",
|
|
2949
2954
|
"ArrowUp",
|
|
2950
2955
|
"ArrowRight",
|
|
2951
2956
|
"ArrowDown",
|
|
2952
2957
|
"Enter"
|
|
2953
|
-
].includes(
|
|
2954
|
-
if (["ArrowUp", "ArrowDown"].includes(
|
|
2958
|
+
].includes(p.key)) {
|
|
2959
|
+
if (["ArrowUp", "ArrowDown"].includes(p.key) && p.preventDefault(), p.key === "ArrowDown" && r.posts === "")
|
|
2955
2960
|
return;
|
|
2956
|
-
Ze(
|
|
2961
|
+
Ze(p.key);
|
|
2957
2962
|
}
|
|
2958
2963
|
}
|
|
2959
2964
|
function L() {
|
|
2960
|
-
let
|
|
2965
|
+
let p = (/* @__PURE__ */ new Date()).getTime();
|
|
2961
2966
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
2962
2967
|
/[xy]/g,
|
|
2963
2968
|
function(E) {
|
|
2964
|
-
const B = (
|
|
2965
|
-
return
|
|
2969
|
+
const B = (p + Math.random() * 16) % 16 | 0;
|
|
2970
|
+
return p = Math.floor(p / 16), (E === "x" ? B : B & 3 | 8).toString(16);
|
|
2966
2971
|
}
|
|
2967
2972
|
);
|
|
2968
2973
|
}
|
|
2969
|
-
function te(
|
|
2970
|
-
return Object.keys(
|
|
2974
|
+
function te(p) {
|
|
2975
|
+
return p !== null && typeof p == "object" && Object.keys(p).length > 0;
|
|
2971
2976
|
}
|
|
2972
|
-
function ze(
|
|
2973
|
-
|
|
2977
|
+
function ze(p) {
|
|
2978
|
+
p.target.id != r.field_name + "search" + f.value && p.target.id != r.field_name && !p.target.classList.contains("showOptions") && (pe(), l.value = 0);
|
|
2974
2979
|
}
|
|
2975
|
-
function me(
|
|
2976
|
-
const O = `${
|
|
2980
|
+
function me(p) {
|
|
2981
|
+
const O = `${p}${f.value}`, E = document.getElementById(O);
|
|
2977
2982
|
E && E.scrollIntoView();
|
|
2978
2983
|
}
|
|
2979
|
-
function He(
|
|
2980
|
-
const O = `${
|
|
2984
|
+
function He(p) {
|
|
2985
|
+
const O = `${p}${f.value}`, E = document.getElementById(O);
|
|
2981
2986
|
E && E.click();
|
|
2982
2987
|
}
|
|
2983
|
-
function Ze(
|
|
2984
|
-
|
|
2988
|
+
function Ze(p) {
|
|
2989
|
+
p === "ArrowDown" && l.value < x.value.length && (l.value++, me(l.value)), p === "ArrowUp" && l.value > 1 && (l.value--, me(l.value)), p === "Enter" && He(l.value);
|
|
2985
2990
|
}
|
|
2986
2991
|
function Ke() {
|
|
2987
|
-
return r.options.map((
|
|
2992
|
+
return r.options.map((p, O) => typeof p == "object" ? p : { id: p, name: p });
|
|
2988
2993
|
}
|
|
2989
2994
|
function We() {
|
|
2990
2995
|
if (te(a.value))
|
|
2991
2996
|
return console.log("selected.value: ", a.value), typeof a.value == "object" ? m.value.find(
|
|
2992
|
-
(
|
|
2997
|
+
(p) => String(p.id) === String(a.value.id)
|
|
2993
2998
|
) || {} : m.value.find(
|
|
2994
|
-
(
|
|
2999
|
+
(p) => String(p.id) === String(a.value)
|
|
2995
3000
|
) || {};
|
|
2996
3001
|
if (r.modelValue)
|
|
2997
3002
|
return console.log("props.modelValue :", r.modelValue), typeof r.modelValue == "object" ? m.value.find(
|
|
2998
|
-
(
|
|
3003
|
+
(p) => String(p.id) === String(r.modelValue.id)
|
|
2999
3004
|
) || {} : m.value.find(
|
|
3000
|
-
(
|
|
3005
|
+
(p) => String(p.id) === String(r.modelValue)
|
|
3001
3006
|
) || {};
|
|
3002
3007
|
}
|
|
3003
|
-
function
|
|
3004
|
-
a.value =
|
|
3008
|
+
function _e(p) {
|
|
3009
|
+
a.value = p, i.value = !1, n("selected", a.value), n("selectionChanged", a.value);
|
|
3005
3010
|
}
|
|
3006
3011
|
function re() {
|
|
3007
3012
|
r.show || (c.value = "", i.value = !0, ot(() => {
|
|
3008
|
-
var
|
|
3013
|
+
var p = document.getElementById(
|
|
3009
3014
|
`${r.field_name}search${f.value}`
|
|
3010
3015
|
);
|
|
3011
|
-
|
|
3016
|
+
p && p.focus();
|
|
3012
3017
|
}));
|
|
3013
3018
|
}
|
|
3014
3019
|
function Xe() {
|
|
3015
3020
|
r.show || (a.value = {}, c.value = "", n("update:modelValue", ""), re());
|
|
3016
3021
|
}
|
|
3017
|
-
function
|
|
3022
|
+
function pe() {
|
|
3018
3023
|
a.value.id || (a.value = {}, c.value = ""), n("selected", a.value), i.value = !1;
|
|
3019
3024
|
}
|
|
3020
3025
|
return X(c, () => {
|
|
3021
3026
|
x.value.length === 0 && (a.value = {});
|
|
3022
|
-
}), X(a, (
|
|
3023
|
-
te(
|
|
3024
|
-
}), (
|
|
3027
|
+
}), X(a, (p) => {
|
|
3028
|
+
te(p) && n("update:modelValue", p.id);
|
|
3029
|
+
}), (p, O) => {
|
|
3025
3030
|
var E, B, be;
|
|
3026
3031
|
return d(), u(v, null, [
|
|
3027
3032
|
e.show ? (d(), u("div", {
|
|
3028
3033
|
key: 0,
|
|
3029
|
-
class:
|
|
3034
|
+
class: b(e.field_name)
|
|
3030
3035
|
}, [
|
|
3031
3036
|
s("h3", Ea, h(e.label_name), 1),
|
|
3032
3037
|
s("p", ja, [
|
|
@@ -3036,7 +3041,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3036
3041
|
], 2)) : g("", !0),
|
|
3037
3042
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3038
3043
|
key: 1,
|
|
3039
|
-
class:
|
|
3044
|
+
class: b(["mb-4", e.field_name])
|
|
3040
3045
|
}, [
|
|
3041
3046
|
s("input", {
|
|
3042
3047
|
type: "hidden",
|
|
@@ -3047,7 +3052,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3047
3052
|
e.options ? (d(), u("div", Ma, [
|
|
3048
3053
|
e.label_name ? (d(), u("label", {
|
|
3049
3054
|
key: 0,
|
|
3050
|
-
class:
|
|
3055
|
+
class: b({
|
|
3051
3056
|
"gl-label-form": e.error_message == "",
|
|
3052
3057
|
"gl-label-form-invalid": e.error_message !== "",
|
|
3053
3058
|
required: e.is_required
|
|
@@ -3056,7 +3061,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3056
3061
|
s("div", Na, [
|
|
3057
3062
|
s("div", Va, [
|
|
3058
3063
|
s("input", {
|
|
3059
|
-
class:
|
|
3064
|
+
class: b([{
|
|
3060
3065
|
"gl-input-form": e.error_message == "",
|
|
3061
3066
|
"gl-input-form-invalid": e.error_message !== ""
|
|
3062
3067
|
}, "pl-8 pr-2 showOptions"]),
|
|
@@ -3076,7 +3081,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3076
3081
|
]),
|
|
3077
3082
|
s("i", {
|
|
3078
3083
|
onClick: O[2] || (O[2] = (A) => !i.value && re()),
|
|
3079
|
-
class:
|
|
3084
|
+
class: b([i.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),
|
|
3080
3085
|
style: { top: "11px" }
|
|
3081
3086
|
}, null, 2)
|
|
3082
3087
|
]),
|
|
@@ -3091,7 +3096,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3091
3096
|
ref: o.value,
|
|
3092
3097
|
id: `${e.field_name}search${f.value}`,
|
|
3093
3098
|
onKeydown: $,
|
|
3094
|
-
onBlur: O[4] || (O[4] = (A) =>
|
|
3099
|
+
onBlur: O[4] || (O[4] = (A) => pe()),
|
|
3095
3100
|
autocomplete: "off",
|
|
3096
3101
|
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",
|
|
3097
3102
|
placeholder: "Search ..."
|
|
@@ -3104,9 +3109,9 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3104
3109
|
(d(!0), u(v, null, k(x.value, (A, se) => {
|
|
3105
3110
|
var ye;
|
|
3106
3111
|
return d(), u("div", {
|
|
3107
|
-
class:
|
|
3108
|
-
onClick: (Ye) =>
|
|
3109
|
-
onMousedown: (Ye) =>
|
|
3112
|
+
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 == l.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
3113
|
+
onClick: (Ye) => _e(A),
|
|
3114
|
+
onMousedown: (Ye) => _e(A),
|
|
3110
3115
|
key: se,
|
|
3111
3116
|
id: `${se + 1}${f.value}`
|
|
3112
3117
|
}, [
|
|
@@ -3180,7 +3185,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3180
3185
|
}), t({ focus: () => a.value.focus() }), (l, i) => (d(), u(v, null, [
|
|
3181
3186
|
e.show ? (d(), u("div", {
|
|
3182
3187
|
key: 0,
|
|
3183
|
-
class:
|
|
3188
|
+
class: b(e.field_name)
|
|
3184
3189
|
}, [
|
|
3185
3190
|
s("h3", Qa, h(e.label_name), 1),
|
|
3186
3191
|
s("p", {
|
|
@@ -3191,10 +3196,10 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3191
3196
|
], 2)) : g("", !0),
|
|
3192
3197
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3193
3198
|
key: 1,
|
|
3194
|
-
class:
|
|
3199
|
+
class: b(["mb-4", e.field_name])
|
|
3195
3200
|
}, [
|
|
3196
3201
|
s("label", {
|
|
3197
|
-
class:
|
|
3202
|
+
class: b({
|
|
3198
3203
|
"gl-label-form": e.error_message == "",
|
|
3199
3204
|
"gl-label-form-invalid": e.error_message !== "",
|
|
3200
3205
|
required: e.is_required
|
|
@@ -3205,7 +3210,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3205
3210
|
required: e.is_required,
|
|
3206
3211
|
name: e.field_name,
|
|
3207
3212
|
id: e.field_name,
|
|
3208
|
-
class:
|
|
3213
|
+
class: b({
|
|
3209
3214
|
" gl-textarea-form mt-4 ": e.error_message == "",
|
|
3210
3215
|
" gl-textarea-form-invalid mt-4 ": e.error_message !== ""
|
|
3211
3216
|
}),
|
|
@@ -3370,7 +3375,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3370
3375
|
}, lo = { class: "flex flex-col items-center" }, uo = {
|
|
3371
3376
|
key: 0,
|
|
3372
3377
|
class: "text-sm text-gray-700 dark:text-gray-400"
|
|
3373
|
-
}, co = { class: "font-semibold text-gray-900 dark:text-white" }, fo = { class: "font-semibold text-gray-900 dark:text-white" }, ho = { class: "font-semibold text-gray-900 dark:text-white" }, go = ["tabindex"], mo = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1),
|
|
3378
|
+
}, co = { class: "font-semibold text-gray-900 dark:text-white" }, fo = { class: "font-semibold text-gray-900 dark:text-white" }, ho = { class: "font-semibold text-gray-900 dark:text-white" }, go = ["tabindex"], mo = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), _o = /* @__PURE__ */ s("svg", {
|
|
3374
3379
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3375
3380
|
"aria-hidden": "true",
|
|
3376
3381
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3384,7 +3389,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3384
3389
|
"stroke-width": "2",
|
|
3385
3390
|
d: "M5 1 1 5l4 4"
|
|
3386
3391
|
})
|
|
3387
|
-
], -1),
|
|
3392
|
+
], -1), po = ["aria-current"], bo = ["tabindex"], yo = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), vo = /* @__PURE__ */ s("svg", {
|
|
3388
3393
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3389
3394
|
"aria-hidden": "true",
|
|
3390
3395
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3427,7 +3432,7 @@ function xo(e, t, r, n, o, a) {
|
|
|
3427
3432
|
}), [
|
|
3428
3433
|
i.computed.prevPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3429
3434
|
key: 0,
|
|
3430
|
-
class:
|
|
3435
|
+
class: b(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white", { disabled: !i.computed.prevPageUrl }])
|
|
3431
3436
|
}, [
|
|
3432
3437
|
s("a", W({
|
|
3433
3438
|
class: "page-link",
|
|
@@ -3437,12 +3442,12 @@ function xo(e, t, r, n, o, a) {
|
|
|
3437
3442
|
}, ne(i.prevButtonEvents, !0)), [
|
|
3438
3443
|
I(e.$slots, "prev-nav", {}, () => [
|
|
3439
3444
|
mo,
|
|
3440
|
-
|
|
3445
|
+
_o
|
|
3441
3446
|
])
|
|
3442
3447
|
], 16, go)
|
|
3443
3448
|
], 2)) : g("", !0),
|
|
3444
3449
|
(d(!0), u(v, null, k(i.computed.pageRange, (c, f) => (d(), u("li", {
|
|
3445
|
-
class:
|
|
3450
|
+
class: b(["", { active: c == i.computed.currentPage }]),
|
|
3446
3451
|
key: f
|
|
3447
3452
|
}, [
|
|
3448
3453
|
s("a", W({
|
|
@@ -3451,11 +3456,11 @@ function xo(e, t, r, n, o, a) {
|
|
|
3451
3456
|
}, ne(i.pageButtonEvents(c), !0), {
|
|
3452
3457
|
"aria-current": c == i.computed.currentPage ? "page" : null,
|
|
3453
3458
|
class: c == i.computed.currentPage ? "z-10 flex items-center justify-center px-3 h-8 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white" : "flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
3454
|
-
}), h(c), 17,
|
|
3459
|
+
}), h(c), 17, po)
|
|
3455
3460
|
], 2))), 128)),
|
|
3456
3461
|
i.computed.nextPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3457
3462
|
key: 1,
|
|
3458
|
-
class:
|
|
3463
|
+
class: b(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white", { disabled: !i.computed.nextPageUrl }])
|
|
3459
3464
|
}, [
|
|
3460
3465
|
s("a", W({
|
|
3461
3466
|
class: "",
|
|
@@ -3787,7 +3792,7 @@ const Td = /* @__PURE__ */ S(ko, [["render", Uo]]), qo = {
|
|
|
3787
3792
|
], -1), ei = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, ti = { 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" }, ri = { class: "hidden text-sm font-normal text-center text-gray-700 uppercase lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, si = ["onClick"], ni = {
|
|
3788
3793
|
key: 0,
|
|
3789
3794
|
class: "ml-2"
|
|
3790
|
-
}, ai = ["data-label"], oi = ["innerHTML"], ii = { 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" }, li = { class: "flex justify-between flex-1 sm:hidden" }, di = ["disabled"], ui = ["disabled"], ci = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, fi = { class: "text-sm text-gray-700 dark:text-gray-400" }, hi = { class: "font-medium" }, gi = { class: "font-medium" }, mi = { class: "font-medium" },
|
|
3795
|
+
}, ai = ["data-label"], oi = ["innerHTML"], ii = { 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" }, li = { class: "flex justify-between flex-1 sm:hidden" }, di = ["disabled"], ui = ["disabled"], ci = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, fi = { class: "text-sm text-gray-700 dark:text-gray-400" }, hi = { class: "font-medium" }, gi = { class: "font-medium" }, mi = { class: "font-medium" }, _i = { "aria-label": "Page navigation" }, pi = { class: "flex items-center h-8 -space-x-px text-sm" }, bi = ["disabled"], yi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), vi = /* @__PURE__ */ s("svg", {
|
|
3791
3796
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3792
3797
|
"aria-hidden": "true",
|
|
3793
3798
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3918,8 +3923,8 @@ function Di(e, t, r, n, o, a) {
|
|
|
3918
3923
|
])
|
|
3919
3924
|
]),
|
|
3920
3925
|
s("div", null, [
|
|
3921
|
-
s("nav",
|
|
3922
|
-
s("ul",
|
|
3926
|
+
s("nav", _i, [
|
|
3927
|
+
s("ul", pi, [
|
|
3923
3928
|
s("li", null, [
|
|
3924
3929
|
s("a", {
|
|
3925
3930
|
href: "#",
|
|
@@ -4338,7 +4343,7 @@ const Md = /* @__PURE__ */ S(qo, [["render", Di]]), Pi = {
|
|
|
4338
4343
|
], -1), gl = {
|
|
4339
4344
|
key: 1,
|
|
4340
4345
|
class: "m-1 d-inline-block"
|
|
4341
|
-
}, ml = ["href", "title"],
|
|
4346
|
+
}, ml = ["href", "title"], _l = /* @__PURE__ */ s("svg", {
|
|
4342
4347
|
class: "w-3 h-3 text-white me-2",
|
|
4343
4348
|
"aria-hidden": "true",
|
|
4344
4349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4356,7 +4361,7 @@ const Md = /* @__PURE__ */ S(qo, [["render", Di]]), Pi = {
|
|
|
4356
4361
|
"clip-rule": "evenodd"
|
|
4357
4362
|
})
|
|
4358
4363
|
], -1);
|
|
4359
|
-
function
|
|
4364
|
+
function pl(e, t, r, n, o, a) {
|
|
4360
4365
|
return d(), u("div", null, [
|
|
4361
4366
|
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row, (l, i) => (d(), u("div", {
|
|
4362
4367
|
key: i,
|
|
@@ -4378,13 +4383,13 @@ function _l(e, t, r, n, o, a) {
|
|
|
4378
4383
|
target: "_blank",
|
|
4379
4384
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
4380
4385
|
}, [
|
|
4381
|
-
|
|
4386
|
+
_l,
|
|
4382
4387
|
w(" Download ")
|
|
4383
4388
|
], 8, ml)
|
|
4384
4389
|
])) : g("", !0)
|
|
4385
4390
|
]);
|
|
4386
4391
|
}
|
|
4387
|
-
const Bd = /* @__PURE__ */ S(cl, [["render",
|
|
4392
|
+
const Bd = /* @__PURE__ */ S(cl, [["render", pl]]), bl = {
|
|
4388
4393
|
props: ["field", "row"],
|
|
4389
4394
|
computed: {
|
|
4390
4395
|
isArray() {
|
|
@@ -4655,7 +4660,7 @@ export {
|
|
|
4655
4660
|
zd as GlDatatableStatusGeneral,
|
|
4656
4661
|
ue as GlDeleteConfirmationModal,
|
|
4657
4662
|
Ad as GlDropdown,
|
|
4658
|
-
|
|
4663
|
+
pd as GlFilesUpload,
|
|
4659
4664
|
yd as GlLanguageSelector,
|
|
4660
4665
|
Ed as GlModal,
|
|
4661
4666
|
Pd as GlMultiItemSlide,
|