golden-logic-ui 1.0.58 → 1.0.59
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 +93 -93
- 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)
|
|
@@ -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
|
|
@@ -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
|
]),
|
|
@@ -1659,7 +1659,7 @@ function ls(e, t, r, n, o, a) {
|
|
|
1659
1659
|
return r.is_loading ? (d(), K(oe("button"), {
|
|
1660
1660
|
key: 1,
|
|
1661
1661
|
disabled: "",
|
|
1662
|
-
class:
|
|
1662
|
+
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
1663
|
}, {
|
|
1664
1664
|
default: J(() => [
|
|
1665
1665
|
is,
|
|
@@ -1676,7 +1676,7 @@ function ls(e, t, r, n, o, a) {
|
|
|
1676
1676
|
default: J(() => [
|
|
1677
1677
|
r.icon ? (d(), u("i", {
|
|
1678
1678
|
key: 0,
|
|
1679
|
-
class:
|
|
1679
|
+
class: b([r.icon, "text-base"])
|
|
1680
1680
|
}, null, 2)) : g("", !0),
|
|
1681
1681
|
I(e.$slots, "default")
|
|
1682
1682
|
]),
|
|
@@ -1755,7 +1755,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1755
1755
|
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
1756
1756
|
e.show ? (d(), u("div", {
|
|
1757
1757
|
key: 0,
|
|
1758
|
-
class:
|
|
1758
|
+
class: b(e.field_name)
|
|
1759
1759
|
}, [
|
|
1760
1760
|
s("h3", ds, h(e.label_name), 1),
|
|
1761
1761
|
D(s("input", {
|
|
@@ -1777,10 +1777,10 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1777
1777
|
], 2)) : g("", !0),
|
|
1778
1778
|
e.show ? g("", !0) : (d(), u("div", {
|
|
1779
1779
|
key: 1,
|
|
1780
|
-
class:
|
|
1780
|
+
class: b(["mb-4", e.field_name])
|
|
1781
1781
|
}, [
|
|
1782
1782
|
s("label", {
|
|
1783
|
-
class:
|
|
1783
|
+
class: b({
|
|
1784
1784
|
"gl-label-translation-form": e.error_message == "",
|
|
1785
1785
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
1786
1786
|
required: e.is_required
|
|
@@ -1802,7 +1802,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1802
1802
|
required: e.is_required,
|
|
1803
1803
|
name: e.field_name,
|
|
1804
1804
|
id: e.field_name,
|
|
1805
|
-
class:
|
|
1805
|
+
class: b({
|
|
1806
1806
|
" gl-textarea-form form-input-translation mt-4 ": e.error_message == "",
|
|
1807
1807
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1808
1808
|
}),
|
|
@@ -1895,7 +1895,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1895
1895
|
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
1896
1896
|
e.show ? (d(), u("div", {
|
|
1897
1897
|
key: 0,
|
|
1898
|
-
class:
|
|
1898
|
+
class: b(e.field_name)
|
|
1899
1899
|
}, [
|
|
1900
1900
|
s("h3", ys, h(e.label_name), 1),
|
|
1901
1901
|
D(s("input", {
|
|
@@ -1917,10 +1917,10 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1917
1917
|
], 2)) : g("", !0),
|
|
1918
1918
|
e.show ? g("", !0) : (d(), u("div", {
|
|
1919
1919
|
key: 1,
|
|
1920
|
-
class:
|
|
1920
|
+
class: b(["mb-4", e.field_name])
|
|
1921
1921
|
}, [
|
|
1922
1922
|
s("label", {
|
|
1923
|
-
class:
|
|
1923
|
+
class: b({
|
|
1924
1924
|
"gl-label-translation-form": e.error_message == "",
|
|
1925
1925
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
1926
1926
|
required: e.is_required
|
|
@@ -1941,7 +1941,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1941
1941
|
s("textarea", {
|
|
1942
1942
|
name: e.field_name,
|
|
1943
1943
|
id: e.field_name,
|
|
1944
|
-
class:
|
|
1944
|
+
class: b(["tiny", {
|
|
1945
1945
|
" gl-textarea-form form-input-translation mt-4 ": e.error_message == "",
|
|
1946
1946
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1947
1947
|
}]),
|
|
@@ -2030,7 +2030,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2030
2030
|
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
2031
2031
|
e.show ? (d(), u("div", {
|
|
2032
2032
|
key: 0,
|
|
2033
|
-
class:
|
|
2033
|
+
class: b(e.field_name)
|
|
2034
2034
|
}, [
|
|
2035
2035
|
s("h3", Ps, h(e.label_name), 1),
|
|
2036
2036
|
D(s("input", {
|
|
@@ -2051,10 +2051,10 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2051
2051
|
], 2)) : g("", !0),
|
|
2052
2052
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2053
2053
|
key: 1,
|
|
2054
|
-
class:
|
|
2054
|
+
class: b(["mb-4", e.field_name])
|
|
2055
2055
|
}, [
|
|
2056
2056
|
s("label", {
|
|
2057
|
-
class:
|
|
2057
|
+
class: b({
|
|
2058
2058
|
"gl-label-translation-form": e.error_message == "",
|
|
2059
2059
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
2060
2060
|
required: e.is_required
|
|
@@ -2076,7 +2076,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2076
2076
|
required: e.is_required,
|
|
2077
2077
|
name: e.field_name,
|
|
2078
2078
|
id: e.field_name,
|
|
2079
|
-
class:
|
|
2079
|
+
class: b({
|
|
2080
2080
|
" gl-input-form form-input-translation mt-2 ": e.error_message == "",
|
|
2081
2081
|
" gl-input-form-invalid form-input-translation mt-2 ": e.error_message !== ""
|
|
2082
2082
|
}),
|
|
@@ -2148,7 +2148,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2148
2148
|
return t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
2149
2149
|
e.show ? (d(), u("div", {
|
|
2150
2150
|
key: 0,
|
|
2151
|
-
class:
|
|
2151
|
+
class: b(e.field_name)
|
|
2152
2152
|
}, [
|
|
2153
2153
|
s("h3", Bs, h(e.label_name), 1),
|
|
2154
2154
|
s("p", Gs, h(e.type == "password" ? e.modelValue.replace(/./g, "*") : e.modelValue), 1),
|
|
@@ -2156,10 +2156,10 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2156
2156
|
], 2)) : g("", !0),
|
|
2157
2157
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2158
2158
|
key: 1,
|
|
2159
|
-
class:
|
|
2159
|
+
class: b(["mb-4", e.field_name])
|
|
2160
2160
|
}, [
|
|
2161
2161
|
s("label", {
|
|
2162
|
-
class:
|
|
2162
|
+
class: b({
|
|
2163
2163
|
"gl-label-form": e.error_message == "",
|
|
2164
2164
|
"gl-label-form-invalid": e.error_message !== "",
|
|
2165
2165
|
required: e.is_required
|
|
@@ -2170,7 +2170,7 @@ const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2170
2170
|
required: e.is_required,
|
|
2171
2171
|
name: e.field_name,
|
|
2172
2172
|
id: e.field_name,
|
|
2173
|
-
class:
|
|
2173
|
+
class: b({
|
|
2174
2174
|
"gl-input-form": e.error_message == "",
|
|
2175
2175
|
"gl-input-form-invalid": e.error_message !== ""
|
|
2176
2176
|
}),
|
|
@@ -2207,10 +2207,10 @@ function en(e, t, r, n, o, a) {
|
|
|
2207
2207
|
class: "flex-auto -mb-px text-center"
|
|
2208
2208
|
}, [
|
|
2209
2209
|
s("a", {
|
|
2210
|
-
class:
|
|
2210
|
+
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
2211
|
}, [
|
|
2212
2212
|
s("i", {
|
|
2213
|
-
class:
|
|
2213
|
+
class: b([l.icon, "mr-1 text-base"])
|
|
2214
2214
|
}, null, 2),
|
|
2215
2215
|
w(" " + h(l.title), 1)
|
|
2216
2216
|
], 2)
|
|
@@ -2529,7 +2529,7 @@ const Dd = /* @__PURE__ */ S(tn, [["render", sn]]), nn = {
|
|
|
2529
2529
|
function da(e, t, r, n, o, a) {
|
|
2530
2530
|
return d(), u("div", null, [
|
|
2531
2531
|
s("div", {
|
|
2532
|
-
class:
|
|
2532
|
+
class: b(["", !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slide" ? "flex" : "relative block"]),
|
|
2533
2533
|
id: "mainSliderContainer_" + e.Random_string
|
|
2534
2534
|
}, [
|
|
2535
2535
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", on, [
|
|
@@ -2544,7 +2544,7 @@ function da(e, t, r, n, o, a) {
|
|
|
2544
2544
|
])
|
|
2545
2545
|
])) : g("", !0),
|
|
2546
2546
|
s("div", {
|
|
2547
|
-
class:
|
|
2547
|
+
class: b(["overflow-hidden", a.sliderContainerAction()]),
|
|
2548
2548
|
id: "sliderContainer_" + e.Random_string
|
|
2549
2549
|
}, [
|
|
2550
2550
|
s("ul", {
|
|
@@ -2553,7 +2553,7 @@ function da(e, t, r, n, o, a) {
|
|
|
2553
2553
|
}, [
|
|
2554
2554
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (d(), u("div", {
|
|
2555
2555
|
key: 0,
|
|
2556
|
-
class:
|
|
2556
|
+
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
2557
|
}, [
|
|
2558
2558
|
s("div", _n, [
|
|
2559
2559
|
s("button", {
|
|
@@ -2568,7 +2568,7 @@ function da(e, t, r, n, o, a) {
|
|
|
2568
2568
|
I(e.$slots, "default", {}, void 0, !0),
|
|
2569
2569
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (d(), u("div", {
|
|
2570
2570
|
key: 1,
|
|
2571
|
-
class:
|
|
2571
|
+
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
2572
|
}, [
|
|
2573
2573
|
s("div", $n, [
|
|
2574
2574
|
s("button", {
|
|
@@ -2583,22 +2583,22 @@ function da(e, t, r, n, o, a) {
|
|
|
2583
2583
|
], 8, pn),
|
|
2584
2584
|
r.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (d(), u("div", {
|
|
2585
2585
|
key: 0,
|
|
2586
|
-
class:
|
|
2586
|
+
class: b(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2587
2587
|
}, [
|
|
2588
2588
|
(d(!0), u(v, null, k(e.dotsNum, (l) => (d(), u("button", {
|
|
2589
2589
|
role: "button",
|
|
2590
|
-
class:
|
|
2590
|
+
class: b(["gl-dot", { active: e.currentDot == l }]),
|
|
2591
2591
|
key: l,
|
|
2592
2592
|
onClick: (i) => a.setDot(l)
|
|
2593
2593
|
}, In, 10, jn))), 128))
|
|
2594
2594
|
], 2)) : g("", !0),
|
|
2595
2595
|
r.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div", Tn, [
|
|
2596
2596
|
s("div", {
|
|
2597
|
-
class:
|
|
2597
|
+
class: b(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2598
2598
|
}, [
|
|
2599
2599
|
(d(!0), u(v, null, k(e.dotsNum, (l) => (d(), u("button", {
|
|
2600
2600
|
role: "button",
|
|
2601
|
-
class:
|
|
2601
|
+
class: b(["gl-dot", { active: e.currentDot == l }]),
|
|
2602
2602
|
key: l,
|
|
2603
2603
|
onClick: (i) => a.setDot(l)
|
|
2604
2604
|
}, Vn, 10, Mn))), 128))
|
|
@@ -2607,7 +2607,7 @@ function da(e, t, r, n, o, a) {
|
|
|
2607
2607
|
s("div", Bn, [
|
|
2608
2608
|
s("div", Gn, [
|
|
2609
2609
|
s("button", {
|
|
2610
|
-
class:
|
|
2610
|
+
class: b(["p-3 rounded-full arrow_button_styles", r.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2611
2611
|
onClick: t[3] || (t[3] = (l) => a.prev())
|
|
2612
2612
|
}, [
|
|
2613
2613
|
r.direction_property == "ltr" ? (d(), u("svg", Fn, Un)) : g("", !0),
|
|
@@ -2696,7 +2696,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
2696
2696
|
{ immediate: !0, deep: !0 }
|
|
2697
2697
|
), (i, c) => D((d(), u("div", ua, [
|
|
2698
2698
|
s("div", {
|
|
2699
|
-
class:
|
|
2699
|
+
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
2700
|
}, [
|
|
2701
2701
|
s("div", ca, [
|
|
2702
2702
|
s("div", fa, [
|
|
@@ -2778,7 +2778,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
2778
2778
|
return (l, i) => (d(), u(v, null, [
|
|
2779
2779
|
e.show ? (d(), u("div", {
|
|
2780
2780
|
key: 0,
|
|
2781
|
-
class:
|
|
2781
|
+
class: b(e.field_name)
|
|
2782
2782
|
}, [
|
|
2783
2783
|
s("div", ba, [
|
|
2784
2784
|
s("li", ya, [
|
|
@@ -2804,7 +2804,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
2804
2804
|
], 2)) : g("", !0),
|
|
2805
2805
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2806
2806
|
key: 1,
|
|
2807
|
-
class:
|
|
2807
|
+
class: b(["mb-4", e.field_name])
|
|
2808
2808
|
}, [
|
|
2809
2809
|
s("li", $a, [
|
|
2810
2810
|
w(h(e.label_name) + " ", 1),
|
|
@@ -2929,86 +2929,86 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
2929
2929
|
setup(e, { emit: t }) {
|
|
2930
2930
|
const r = e, n = t, o = C(null), a = C({}), l = C(0), i = C(!1), c = C(""), f = C("");
|
|
2931
2931
|
R(() => {
|
|
2932
|
-
f.value = L(), r.show || (document.body.addEventListener("click", (
|
|
2933
|
-
ze(
|
|
2934
|
-
}), document.addEventListener("keypress", (
|
|
2935
|
-
|
|
2932
|
+
f.value = L(), r.show || (document.body.addEventListener("click", (p) => {
|
|
2933
|
+
ze(p);
|
|
2934
|
+
}), document.addEventListener("keypress", (p) => {
|
|
2935
|
+
p.key === "Enter" && p.target.form && p.preventDefault();
|
|
2936
2936
|
}));
|
|
2937
2937
|
});
|
|
2938
2938
|
const m = G(() => Ke()), y = G(() => We()), x = G(() => {
|
|
2939
|
-
const
|
|
2939
|
+
const p = [], O = new RegExp(c.value, "ig");
|
|
2940
2940
|
for (const E of m.value) {
|
|
2941
2941
|
const B = String(E.name);
|
|
2942
|
-
(c.value.length < 1 || B.match(O)) &&
|
|
2942
|
+
(c.value.length < 1 || B.match(O)) && p.length < r.maxItem && p.push(E);
|
|
2943
2943
|
}
|
|
2944
|
-
return
|
|
2944
|
+
return p;
|
|
2945
2945
|
});
|
|
2946
|
-
function $(
|
|
2946
|
+
function $(p) {
|
|
2947
2947
|
if ([
|
|
2948
2948
|
"ArrowLeft",
|
|
2949
2949
|
"ArrowUp",
|
|
2950
2950
|
"ArrowRight",
|
|
2951
2951
|
"ArrowDown",
|
|
2952
2952
|
"Enter"
|
|
2953
|
-
].includes(
|
|
2954
|
-
if (["ArrowUp", "ArrowDown"].includes(
|
|
2953
|
+
].includes(p.key)) {
|
|
2954
|
+
if (["ArrowUp", "ArrowDown"].includes(p.key) && p.preventDefault(), p.key === "ArrowDown" && r.posts === "")
|
|
2955
2955
|
return;
|
|
2956
|
-
Ze(
|
|
2956
|
+
Ze(p.key);
|
|
2957
2957
|
}
|
|
2958
2958
|
}
|
|
2959
2959
|
function L() {
|
|
2960
|
-
let
|
|
2960
|
+
let p = (/* @__PURE__ */ new Date()).getTime();
|
|
2961
2961
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
2962
2962
|
/[xy]/g,
|
|
2963
2963
|
function(E) {
|
|
2964
|
-
const B = (
|
|
2965
|
-
return
|
|
2964
|
+
const B = (p + Math.random() * 16) % 16 | 0;
|
|
2965
|
+
return p = Math.floor(p / 16), (E === "x" ? B : B & 3 | 8).toString(16);
|
|
2966
2966
|
}
|
|
2967
2967
|
);
|
|
2968
2968
|
}
|
|
2969
|
-
function te(
|
|
2970
|
-
return Object.keys(
|
|
2969
|
+
function te(p) {
|
|
2970
|
+
return p !== null && typeof p == "object" && Object.keys(p).length > 0;
|
|
2971
2971
|
}
|
|
2972
|
-
function ze(
|
|
2973
|
-
|
|
2972
|
+
function ze(p) {
|
|
2973
|
+
p.target.id != r.field_name + "search" + f.value && p.target.id != r.field_name && !p.target.classList.contains("showOptions") && (_e(), l.value = 0);
|
|
2974
2974
|
}
|
|
2975
|
-
function me(
|
|
2976
|
-
const O = `${
|
|
2975
|
+
function me(p) {
|
|
2976
|
+
const O = `${p}${f.value}`, E = document.getElementById(O);
|
|
2977
2977
|
E && E.scrollIntoView();
|
|
2978
2978
|
}
|
|
2979
|
-
function He(
|
|
2980
|
-
const O = `${
|
|
2979
|
+
function He(p) {
|
|
2980
|
+
const O = `${p}${f.value}`, E = document.getElementById(O);
|
|
2981
2981
|
E && E.click();
|
|
2982
2982
|
}
|
|
2983
|
-
function Ze(
|
|
2984
|
-
|
|
2983
|
+
function Ze(p) {
|
|
2984
|
+
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
2985
|
}
|
|
2986
2986
|
function Ke() {
|
|
2987
|
-
return r.options.map((
|
|
2987
|
+
return r.options.map((p, O) => typeof p == "object" ? p : { id: p, name: p });
|
|
2988
2988
|
}
|
|
2989
2989
|
function We() {
|
|
2990
2990
|
if (te(a.value))
|
|
2991
2991
|
return console.log("selected.value: ", a.value), typeof a.value == "object" ? m.value.find(
|
|
2992
|
-
(
|
|
2992
|
+
(p) => String(p.id) === String(a.value.id)
|
|
2993
2993
|
) || {} : m.value.find(
|
|
2994
|
-
(
|
|
2994
|
+
(p) => String(p.id) === String(a.value)
|
|
2995
2995
|
) || {};
|
|
2996
2996
|
if (r.modelValue)
|
|
2997
2997
|
return console.log("props.modelValue :", r.modelValue), typeof r.modelValue == "object" ? m.value.find(
|
|
2998
|
-
(
|
|
2998
|
+
(p) => String(p.id) === String(r.modelValue.id)
|
|
2999
2999
|
) || {} : m.value.find(
|
|
3000
|
-
(
|
|
3000
|
+
(p) => String(p.id) === String(r.modelValue)
|
|
3001
3001
|
) || {};
|
|
3002
3002
|
}
|
|
3003
|
-
function pe(
|
|
3004
|
-
a.value =
|
|
3003
|
+
function pe(p) {
|
|
3004
|
+
a.value = p, i.value = !1, n("selected", a.value), n("selectionChanged", a.value);
|
|
3005
3005
|
}
|
|
3006
3006
|
function re() {
|
|
3007
3007
|
r.show || (c.value = "", i.value = !0, ot(() => {
|
|
3008
|
-
var
|
|
3008
|
+
var p = document.getElementById(
|
|
3009
3009
|
`${r.field_name}search${f.value}`
|
|
3010
3010
|
);
|
|
3011
|
-
|
|
3011
|
+
p && p.focus();
|
|
3012
3012
|
}));
|
|
3013
3013
|
}
|
|
3014
3014
|
function Xe() {
|
|
@@ -3019,14 +3019,14 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3019
3019
|
}
|
|
3020
3020
|
return X(c, () => {
|
|
3021
3021
|
x.value.length === 0 && (a.value = {});
|
|
3022
|
-
}), X(a, (
|
|
3023
|
-
te(
|
|
3024
|
-
}), (
|
|
3022
|
+
}), X(a, (p) => {
|
|
3023
|
+
te(p) && n("update:modelValue", p.id);
|
|
3024
|
+
}), (p, O) => {
|
|
3025
3025
|
var E, B, be;
|
|
3026
3026
|
return d(), u(v, null, [
|
|
3027
3027
|
e.show ? (d(), u("div", {
|
|
3028
3028
|
key: 0,
|
|
3029
|
-
class:
|
|
3029
|
+
class: b(e.field_name)
|
|
3030
3030
|
}, [
|
|
3031
3031
|
s("h3", Ea, h(e.label_name), 1),
|
|
3032
3032
|
s("p", ja, [
|
|
@@ -3036,7 +3036,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3036
3036
|
], 2)) : g("", !0),
|
|
3037
3037
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3038
3038
|
key: 1,
|
|
3039
|
-
class:
|
|
3039
|
+
class: b(["mb-4", e.field_name])
|
|
3040
3040
|
}, [
|
|
3041
3041
|
s("input", {
|
|
3042
3042
|
type: "hidden",
|
|
@@ -3047,7 +3047,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3047
3047
|
e.options ? (d(), u("div", Ma, [
|
|
3048
3048
|
e.label_name ? (d(), u("label", {
|
|
3049
3049
|
key: 0,
|
|
3050
|
-
class:
|
|
3050
|
+
class: b({
|
|
3051
3051
|
"gl-label-form": e.error_message == "",
|
|
3052
3052
|
"gl-label-form-invalid": e.error_message !== "",
|
|
3053
3053
|
required: e.is_required
|
|
@@ -3056,7 +3056,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3056
3056
|
s("div", Na, [
|
|
3057
3057
|
s("div", Va, [
|
|
3058
3058
|
s("input", {
|
|
3059
|
-
class:
|
|
3059
|
+
class: b([{
|
|
3060
3060
|
"gl-input-form": e.error_message == "",
|
|
3061
3061
|
"gl-input-form-invalid": e.error_message !== ""
|
|
3062
3062
|
}, "pl-8 pr-2 showOptions"]),
|
|
@@ -3076,7 +3076,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3076
3076
|
]),
|
|
3077
3077
|
s("i", {
|
|
3078
3078
|
onClick: O[2] || (O[2] = (A) => !i.value && re()),
|
|
3079
|
-
class:
|
|
3079
|
+
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
3080
|
style: { top: "11px" }
|
|
3081
3081
|
}, null, 2)
|
|
3082
3082
|
]),
|
|
@@ -3104,7 +3104,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3104
3104
|
(d(!0), u(v, null, k(x.value, (A, se) => {
|
|
3105
3105
|
var ye;
|
|
3106
3106
|
return d(), u("div", {
|
|
3107
|
-
class:
|
|
3107
|
+
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" : ""]),
|
|
3108
3108
|
onClick: (Ye) => pe(A),
|
|
3109
3109
|
onMousedown: (Ye) => pe(A),
|
|
3110
3110
|
key: se,
|
|
@@ -3180,7 +3180,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3180
3180
|
}), t({ focus: () => a.value.focus() }), (l, i) => (d(), u(v, null, [
|
|
3181
3181
|
e.show ? (d(), u("div", {
|
|
3182
3182
|
key: 0,
|
|
3183
|
-
class:
|
|
3183
|
+
class: b(e.field_name)
|
|
3184
3184
|
}, [
|
|
3185
3185
|
s("h3", Qa, h(e.label_name), 1),
|
|
3186
3186
|
s("p", {
|
|
@@ -3191,10 +3191,10 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3191
3191
|
], 2)) : g("", !0),
|
|
3192
3192
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3193
3193
|
key: 1,
|
|
3194
|
-
class:
|
|
3194
|
+
class: b(["mb-4", e.field_name])
|
|
3195
3195
|
}, [
|
|
3196
3196
|
s("label", {
|
|
3197
|
-
class:
|
|
3197
|
+
class: b({
|
|
3198
3198
|
"gl-label-form": e.error_message == "",
|
|
3199
3199
|
"gl-label-form-invalid": e.error_message !== "",
|
|
3200
3200
|
required: e.is_required
|
|
@@ -3205,7 +3205,7 @@ const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9
|
|
|
3205
3205
|
required: e.is_required,
|
|
3206
3206
|
name: e.field_name,
|
|
3207
3207
|
id: e.field_name,
|
|
3208
|
-
class:
|
|
3208
|
+
class: b({
|
|
3209
3209
|
" gl-textarea-form mt-4 ": e.error_message == "",
|
|
3210
3210
|
" gl-textarea-form-invalid mt-4 ": e.error_message !== ""
|
|
3211
3211
|
}),
|
|
@@ -3427,7 +3427,7 @@ function xo(e, t, r, n, o, a) {
|
|
|
3427
3427
|
}), [
|
|
3428
3428
|
i.computed.prevPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3429
3429
|
key: 0,
|
|
3430
|
-
class:
|
|
3430
|
+
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
3431
|
}, [
|
|
3432
3432
|
s("a", W({
|
|
3433
3433
|
class: "page-link",
|
|
@@ -3442,7 +3442,7 @@ function xo(e, t, r, n, o, a) {
|
|
|
3442
3442
|
], 16, go)
|
|
3443
3443
|
], 2)) : g("", !0),
|
|
3444
3444
|
(d(!0), u(v, null, k(i.computed.pageRange, (c, f) => (d(), u("li", {
|
|
3445
|
-
class:
|
|
3445
|
+
class: b(["", { active: c == i.computed.currentPage }]),
|
|
3446
3446
|
key: f
|
|
3447
3447
|
}, [
|
|
3448
3448
|
s("a", W({
|
|
@@ -3455,7 +3455,7 @@ function xo(e, t, r, n, o, a) {
|
|
|
3455
3455
|
], 2))), 128)),
|
|
3456
3456
|
i.computed.nextPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3457
3457
|
key: 1,
|
|
3458
|
-
class:
|
|
3458
|
+
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
3459
|
}, [
|
|
3460
3460
|
s("a", W({
|
|
3461
3461
|
class: "",
|