golden-logic-ui 1.0.158 → 1.0.159

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.
@@ -1,4 +1,4 @@
1
- import { openBlock as d, createElementBlock as u, createElementVNode as t, createCommentVNode as g, createStaticVNode as tt, inject as xe, watch as H, effectScope as rt, computed as E, reactive as Le, resolveComponent as z, Fragment as w, createVNode as q, normalizeClass as p, toDisplayString as h, withModifiers as F, withDirectives as A, vModelText as G, renderList as D, normalizeStyle as st, renderSlot as M, ref as C, onMounted as R, createTextVNode as $, vShow as Q, nextTick as Te, createBlock as Z, resolveDynamicComponent as le, mergeProps as ae, withCtx as ie, vModelDynamic as at, provide as Me, pushScopeId as nt, popScopeId as ot, vModelCheckbox as lt, toHandlers as be, onUnmounted as it, TransitionGroup as dt, unref as ut, resolveDirective as Ie, markRaw as ct } from "vue";
1
+ import { openBlock as d, createElementBlock as u, createElementVNode as t, createCommentVNode as g, createStaticVNode as tt, inject as xe, watch as H, effectScope as rt, computed as E, reactive as Le, resolveComponent as z, Fragment as w, createVNode as q, normalizeClass as p, toDisplayString as h, withModifiers as F, withDirectives as P, vModelText as G, renderList as D, normalizeStyle as st, renderSlot as M, ref as C, onMounted as R, createTextVNode as $, vShow as Q, nextTick as Te, createBlock as Z, resolveDynamicComponent as le, mergeProps as ae, withCtx as ie, vModelDynamic as at, provide as Me, pushScopeId as nt, popScopeId as ot, vModelCheckbox as lt, toHandlers as be, onUnmounted as it, TransitionGroup as dt, unref as ut, resolveDirective as Ie, markRaw as ct } from "vue";
2
2
  const O = (e, r) => {
3
3
  const s = e.__vccOpts || e;
4
4
  for (const [n, o] of r)
@@ -158,14 +158,14 @@ function K(e, r) {
158
158
  function Ge(e) {
159
159
  return e !== null && typeof e == "object";
160
160
  }
161
- function Pt(e) {
161
+ function At(e) {
162
162
  return e && typeof e.then == "function";
163
163
  }
164
164
  function V(e, r) {
165
165
  if (!e)
166
166
  throw new Error("[vuex] " + r);
167
167
  }
168
- function At(e, r) {
168
+ function Pt(e, r) {
169
169
  return function() {
170
170
  return e(r);
171
171
  };
@@ -187,7 +187,7 @@ function ke(e, r, s) {
187
187
  var a = e._wrappedGetters, i = {}, l = {}, c = rt(!0);
188
188
  c.run(function() {
189
189
  K(a, function(f, m) {
190
- i[m] = At(f, e), l[m] = E(function() {
190
+ i[m] = Pt(f, e), l[m] = E(function() {
191
191
  return i[m]();
192
192
  }), Object.defineProperty(e.getters, m, {
193
193
  get: function() {
@@ -295,7 +295,7 @@ function Lt(e, r, s, n) {
295
295
  rootGetters: e.getters,
296
296
  rootState: e.state
297
297
  }, i);
298
- return Pt(l) || (l = Promise.resolve(l)), e._devtoolHook ? l.catch(function(c) {
298
+ return At(l) || (l = Promise.resolve(l)), e._devtoolHook ? l.catch(function(c) {
299
299
  throw e._devtoolHook.emit("vuex:error", c), c;
300
300
  }) : l;
301
301
  });
@@ -349,11 +349,11 @@ function Vt(e, r) {
349
349
  s.addTimelineLayer({
350
350
  id: Oe,
351
351
  label: "Vuex Mutations",
352
- color: Pe
352
+ color: Ae
353
353
  }), s.addTimelineLayer({
354
354
  id: pe,
355
355
  label: "Vuex Actions",
356
- color: Pe
356
+ color: Ae
357
357
  }), s.addInspector({
358
358
  id: J,
359
359
  label: "Vuex",
@@ -432,7 +432,7 @@ function Vt(e, r) {
432
432
  }
433
433
  );
434
434
  }
435
- var Pe = 8702998, Bt = 6710886, Gt = 16777215, qe = {
435
+ var Ae = 8702998, Bt = 6710886, Gt = 16777215, qe = {
436
436
  label: "namespaced",
437
437
  textColor: Gt,
438
438
  backgroundColor: Bt
@@ -634,7 +634,7 @@ function We(e, r, s) {
634
634
  );
635
635
  }
636
636
  }
637
- var Ae = {
637
+ var Pe = {
638
638
  assert: function(e) {
639
639
  return typeof e == "function";
640
640
  },
@@ -645,8 +645,8 @@ var Ae = {
645
645
  },
646
646
  expected: 'function or object with "handler" function'
647
647
  }, je = {
648
- getters: Ae,
649
- mutations: Ae,
648
+ getters: Pe,
649
+ mutations: Pe,
650
650
  actions: qt
651
651
  };
652
652
  function Ye(e, r) {
@@ -1060,7 +1060,7 @@ function $r(e, r, s, n, o, a) {
1060
1060
  multiple: s.has_multiple_file,
1061
1061
  onChange: r[0] || (r[0] = (...l) => a.uploadFiles && a.uploadFiles(...l))
1062
1062
  }, null, 40, Yt),
1063
- A(t("input", {
1063
+ P(t("input", {
1064
1064
  type: "hidden",
1065
1065
  name: s.field_name,
1066
1066
  "onUpdate:modelValue": r[1] || (r[1] = (l) => a.uploadedFileIds = l)
@@ -1178,7 +1178,7 @@ const bc = /* @__PURE__ */ O(Kt, [["render", $r]]), Cr = {
1178
1178
  viewBox: "0 0 20 20"
1179
1179
  }, [
1180
1180
  /* @__PURE__ */ t("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z" })
1181
- ], -1), Dr = /* @__PURE__ */ t("span", { class: "sr-only" }, "Info", -1), Or = { class: "mr-3 text-sm font-medium ms-3" }, Pr = /* @__PURE__ */ t("span", { class: "sr-only" }, "Close", -1), Ar = /* @__PURE__ */ t("svg", {
1181
+ ], -1), Dr = /* @__PURE__ */ t("span", { class: "sr-only" }, "Info", -1), Or = { class: "mr-3 text-sm font-medium ms-3" }, Ar = /* @__PURE__ */ t("span", { class: "sr-only" }, "Close", -1), Pr = /* @__PURE__ */ t("svg", {
1182
1182
  class: "w-3 h-3",
1183
1183
  "aria-hidden": "true",
1184
1184
  xmlns: "http://www.w3.org/2000/svg",
@@ -1193,8 +1193,8 @@ const bc = /* @__PURE__ */ O(Kt, [["render", $r]]), Cr = {
1193
1193
  d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
1194
1194
  })
1195
1195
  ], -1), jr = [
1196
- Pr,
1197
- Ar
1196
+ Ar,
1197
+ Pr
1198
1198
  ];
1199
1199
  function Er(e, r, s, n, o, a) {
1200
1200
  return e.notification.show ? (d(), u("div", {
@@ -1390,7 +1390,7 @@ const yc = /* @__PURE__ */ O(Lr, [["render", Nr]]), Vr = { class: "bg-white bord
1390
1390
  b.key === "Enter" && b.target.form && b.preventDefault();
1391
1391
  }));
1392
1392
  });
1393
- const _ = E(() => y()), v = E(() => P()), S = E(() => {
1393
+ const _ = E(() => y()), v = E(() => A()), S = E(() => {
1394
1394
  const b = [], x = new RegExp(f.value, "ig");
1395
1395
  for (const k of _.value) {
1396
1396
  const L = String(k.name);
@@ -1457,7 +1457,7 @@ const yc = /* @__PURE__ */ O(Lr, [["render", Nr]]), Vr = { class: "bg-white bord
1457
1457
  function y() {
1458
1458
  return s.options.map((b, x) => typeof b == "object" ? b : { id: b, name: b });
1459
1459
  }
1460
- function P() {
1460
+ function A() {
1461
1461
  if (console.log("selected.value", a.value), console.log("isArrayObjectNotEmpty", te(a.value)), te(a.value))
1462
1462
  return re(a.value) ? _.value.filter(
1463
1463
  (b) => a.value.some(
@@ -1565,12 +1565,12 @@ const yc = /* @__PURE__ */ O(Lr, [["render", Nr]]), Vr = { class: "bg-white bord
1565
1565
  style: { top: "11px" }
1566
1566
  }, null, 2)
1567
1567
  ]),
1568
- A(t("div", Xr, [
1568
+ P(t("div", Xr, [
1569
1569
  t("div", Jr, [
1570
1570
  Qr,
1571
1571
  t("div", es, [
1572
1572
  ts,
1573
- A(t("input", {
1573
+ P(t("input", {
1574
1574
  type: "search",
1575
1575
  "onUpdate:modelValue": x[1] || (x[1] = (k) => f.value = k),
1576
1576
  ref: o.value,
@@ -1782,7 +1782,7 @@ const xc = /* @__PURE__ */ O(ns, [["render", ls]]), is = { class: "font-bold pte
1782
1782
  class: p(e.field_name)
1783
1783
  }, [
1784
1784
  t("h3", is, h(e.label_name), 1),
1785
- A(t("input", {
1785
+ P(t("input", {
1786
1786
  type: "hidden",
1787
1787
  "data-i18n": "true",
1788
1788
  name: e.field_name + "_i18n",
@@ -1922,7 +1922,7 @@ const xc = /* @__PURE__ */ O(ns, [["render", ls]]), is = { class: "font-bold pte
1922
1922
  class: p(e.field_name)
1923
1923
  }, [
1924
1924
  t("h3", ys, h(e.label_name), 1),
1925
- A(t("input", {
1925
+ P(t("input", {
1926
1926
  type: "hidden",
1927
1927
  "data-i18n": "true",
1928
1928
  name: e.field_name + "_i18n",
@@ -1982,7 +1982,7 @@ const xc = /* @__PURE__ */ O(ns, [["render", ls]]), is = { class: "font-bold pte
1982
1982
  ], 2))
1983
1983
  ], 64));
1984
1984
  }
1985
- }, Os = { class: "font-bold ptext-lg dark:text-white" }, Ps = ["name", "id"], As = ["id"], js = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Es = ["for"], Ls = /* @__PURE__ */ t("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), Ts = ["name", "id"], Ms = ["required", "name", "id", "type"], Is = { class: "gl-span-form-error" }, Ns = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, $c = {
1985
+ }, Os = { class: "font-bold ptext-lg dark:text-white" }, As = ["name", "id"], Ps = ["id"], js = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Es = ["for"], Ls = /* @__PURE__ */ t("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), Ts = ["name", "id"], Ms = ["required", "name", "id", "type"], Is = { class: "gl-span-form-error" }, Ns = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, $c = {
1986
1986
  __name: "GlTextTranslate",
1987
1987
  props: {
1988
1988
  is_required: {
@@ -2057,20 +2057,20 @@ const xc = /* @__PURE__ */ O(ns, [["render", ls]]), is = { class: "font-bold pte
2057
2057
  class: p(e.field_name)
2058
2058
  }, [
2059
2059
  t("h3", Os, h(e.label_name), 1),
2060
- A(t("input", {
2060
+ P(t("input", {
2061
2061
  type: "hidden",
2062
2062
  "data-i18n": "true",
2063
2063
  name: e.field_name + "_i18n",
2064
2064
  id: e.field_name + "_i18n",
2065
2065
  ref: "input_translate_s",
2066
2066
  "onUpdate:modelValue": c[0] || (c[0] = (f) => l.inputTranslateValue = f)
2067
- }, null, 8, Ps), [
2067
+ }, null, 8, As), [
2068
2068
  [G, l.inputTranslateValue]
2069
2069
  ]),
2070
2070
  t("p", {
2071
2071
  id: e.field_name,
2072
2072
  class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
2073
- }, h(e.model_value), 9, As),
2073
+ }, h(e.model_value), 9, Ps),
2074
2074
  js
2075
2075
  ], 2)) : g("", !0),
2076
2076
  e.show ? g("", !0) : (d(), u("div", {
@@ -2194,7 +2194,7 @@ const xc = /* @__PURE__ */ O(ns, [["render", ls]]), is = { class: "font-bold pte
2194
2194
  }),
2195
2195
  for: e.field_name
2196
2196
  }, h(e.label_name), 11, Us),
2197
- A(t("input", {
2197
+ P(t("input", {
2198
2198
  required: e.is_required,
2199
2199
  name: e.field_name,
2200
2200
  id: e.field_name,
@@ -2460,8 +2460,8 @@ const Dc = /* @__PURE__ */ O(ea, [["render", ra]]), sa = {
2460
2460
  d: "M11 17l-5-5m0 0l5-5m-5 5h12"
2461
2461
  }, null, -1)), Oa = [
2462
2462
  Da
2463
- ], Pa = ["onClick"], Aa = /* @__PURE__ */ T(() => /* @__PURE__ */ t("span", null, null, -1)), ja = [
2464
- Aa
2463
+ ], Aa = ["onClick"], Pa = /* @__PURE__ */ T(() => /* @__PURE__ */ t("span", null, null, -1)), ja = [
2464
+ Pa
2465
2465
  ], Ea = {
2466
2466
  key: 1,
2467
2467
  class: "flex justify-between pl-5 pr-5"
@@ -2622,7 +2622,7 @@ function ln(e, r, s, n, o, a) {
2622
2622
  class: p(["gl-dot", { active: e.currentDot == i }]),
2623
2623
  key: i,
2624
2624
  onClick: (l) => a.setDot(i)
2625
- }, ja, 10, Pa))), 128))
2625
+ }, ja, 10, Aa))), 128))
2626
2626
  ], 2)) : g("", !0),
2627
2627
  s.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div", Ea, [
2628
2628
  t("div", {
@@ -2695,7 +2695,7 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
2695
2695
  ])
2696
2696
  ], -1), hn = [
2697
2697
  fn
2698
- ], mn = { 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" }, Pc = {
2698
+ ], mn = { 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" }, Ac = {
2699
2699
  __name: "GlModal",
2700
2700
  props: {
2701
2701
  is_open: {
@@ -2730,7 +2730,7 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
2730
2730
  l ? o() : a();
2731
2731
  },
2732
2732
  { immediate: !0, deep: !0 }
2733
- ), (l, c) => A((d(), u("div", dn, [
2733
+ ), (l, c) => P((d(), u("div", dn, [
2734
2734
  t("div", {
2735
2735
  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])
2736
2736
  }, [
@@ -2766,7 +2766,7 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
2766
2766
  }, bn = { class: "flex justify-between p-2 -mb-px border border-gray-300 no-underlin" }, pn = { class: "relative inline-flex items-center cursor-pointer" }, yn = ["name", "id", "checked"], _n = /* @__PURE__ */ t("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), vn = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), xn = {
2767
2767
  key: 0,
2768
2768
  class: "flex justify-between items-center"
2769
- }, wn = { class: "gl-label-form" }, kn = { class: "flex justify-between p-2 -mb-px border border-gray-200 rounded-lg no-underlin dark:border-gray-600 dark:focus:border-frontenddark" }, $n = { class: "relative inline-flex items-center cursor-pointer" }, Cn = ["name", "id"], Sn = /* @__PURE__ */ t("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), Dn = { class: "gl-span-form-error" }, On = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Ac = {
2769
+ }, wn = { class: "gl-label-form" }, kn = { class: "flex justify-between p-2 -mb-px border border-gray-200 rounded-lg no-underlin dark:border-gray-600 dark:focus:border-frontenddark" }, $n = { class: "relative inline-flex items-center cursor-pointer" }, Cn = ["name", "id"], Sn = /* @__PURE__ */ t("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), Dn = { class: "gl-span-form-error" }, On = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Pc = {
2770
2770
  __name: "GlToggleBox",
2771
2771
  props: {
2772
2772
  is_required: {
@@ -2857,7 +2857,7 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
2857
2857
  t("li", kn, [
2858
2858
  $(h(e.label_name) + " ", 1),
2859
2859
  t("label", $n, [
2860
- A(t("input", {
2860
+ P(t("input", {
2861
2861
  type: "checkbox",
2862
2862
  class: "sr-only peer",
2863
2863
  name: e.field_name,
@@ -2878,7 +2878,7 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
2878
2878
  ], 2))
2879
2879
  ], 64));
2880
2880
  }
2881
- }, Pn = { class: "font-bold ptext-lg dark:text-white" }, An = { class: "mt-3 mb-4" }, jn = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, En = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Ln = ["name", "id", "value"], Tn = {
2881
+ }, An = { class: "font-bold ptext-lg dark:text-white" }, Pn = { class: "mt-3 mb-4" }, jn = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, En = /* @__PURE__ */ t("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Ln = ["name", "id", "value"], Tn = {
2882
2882
  key: 0,
2883
2883
  class: "dropdown"
2884
2884
  }, Mn = { class: "focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, In = { class: "relative showOptions" }, Nn = ["value", "placeholder"], Vn = { class: "text-gray-700 bg-white dark:border-strokedark dark:bg-boxdark dark:text-gray-200 !border-b !border-t-0 !border-r !border-l absolute w-full z-[999999999]" }, Bn = { class: "p-1" }, Gn = /* @__PURE__ */ t("label", {
@@ -2984,10 +2984,10 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
2984
2984
  }));
2985
2985
  });
2986
2986
  const m = E(() => fe()), _ = E(() => he()), v = E(() => {
2987
- const y = [], P = new RegExp(c.value, "ig");
2987
+ const y = [], A = new RegExp(c.value, "ig");
2988
2988
  for (const j of m.value) {
2989
2989
  const U = String(j.name);
2990
- (c.value.length < 1 || U.match(P)) && y.length < s.maxItem && y.push(j);
2990
+ (c.value.length < 1 || U.match(A)) && y.length < s.maxItem && y.push(j);
2991
2991
  }
2992
2992
  return y;
2993
2993
  });
@@ -3021,18 +3021,18 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
3021
3021
  y.target.id != s.field_name + "search" + f.value && y.target.id != s.field_name && !y.target.classList.contains("showOptions") && (oe(), i.value = 0);
3022
3022
  }
3023
3023
  function re(y) {
3024
- const P = `${y}${f.value}`, j = document.getElementById(P);
3024
+ const A = `${y}${f.value}`, j = document.getElementById(A);
3025
3025
  j && j.scrollIntoView();
3026
3026
  }
3027
3027
  function ce(y) {
3028
- const P = `${y}${f.value}`, j = document.getElementById(P);
3028
+ const A = `${y}${f.value}`, j = document.getElementById(A);
3029
3029
  j && j.click();
3030
3030
  }
3031
3031
  function ge(y) {
3032
3032
  y === "ArrowDown" && i.value < v.value.length && (i.value++, re(i.value)), y === "ArrowUp" && i.value > 1 && (i.value--, re(i.value)), y === "Enter" && ce(i.value);
3033
3033
  }
3034
3034
  function fe() {
3035
- return s.options.map((y, P) => typeof y == "object" ? y : { id: y, name: y });
3035
+ return s.options.map((y, A) => typeof y == "object" ? y : { id: y, name: y });
3036
3036
  }
3037
3037
  function he() {
3038
3038
  if (ee(a.value))
@@ -3069,15 +3069,15 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
3069
3069
  v.value.length === 0 && (a.value = {});
3070
3070
  }), H(a, (y) => {
3071
3071
  ee(y) && n("update:modelValue", y.id);
3072
- }), (y, P) => {
3072
+ }), (y, A) => {
3073
3073
  var j, U, se;
3074
3074
  return d(), u(w, null, [
3075
3075
  e.show ? (d(), u("div", {
3076
3076
  key: 0,
3077
3077
  class: p(e.field_name)
3078
3078
  }, [
3079
- t("h3", Pn, h(e.label_name), 1),
3080
- t("p", An, [
3079
+ t("h3", An, h(e.label_name), 1),
3080
+ t("p", Pn, [
3081
3081
  t("span", jn, h((j = _.value) == null ? void 0 : j.name), 1)
3082
3082
  ]),
3083
3083
  En
@@ -3109,37 +3109,37 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
3109
3109
  "gl-input-form-invalid": e.error_message !== ""
3110
3110
  }, "pl-8 pr-2 showOptions"]),
3111
3111
  ref: e.field_name,
3112
- onClick: P[0] || (P[0] = (b) => Y()),
3112
+ onClick: A[0] || (A[0] = (b) => Y()),
3113
3113
  value: (se = _.value) == null ? void 0 : se.name,
3114
3114
  placeholder: e.placeholder,
3115
3115
  autocomplete: "off",
3116
3116
  readonly: ""
3117
3117
  }, null, 10, Nn),
3118
- A(t("i", {
3119
- onClick: P[1] || (P[1] = F((b) => me(), ["stop"])),
3118
+ P(t("i", {
3119
+ onClick: A[1] || (A[1] = F((b) => me(), ["stop"])),
3120
3120
  class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
3121
3121
  style: { top: "13px" }
3122
3122
  }, null, 512), [
3123
3123
  [Q, ee(_.value) && e.has_cancel]
3124
3124
  ]),
3125
3125
  t("i", {
3126
- onClick: P[2] || (P[2] = (b) => !l.value && Y()),
3126
+ onClick: A[2] || (A[2] = (b) => !l.value && Y()),
3127
3127
  class: p([l.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),
3128
3128
  style: { top: "11px" }
3129
3129
  }, null, 2)
3130
3130
  ]),
3131
- A(t("div", Vn, [
3131
+ P(t("div", Vn, [
3132
3132
  t("div", Bn, [
3133
3133
  Gn,
3134
3134
  t("div", Un, [
3135
3135
  Fn,
3136
- A(t("input", {
3136
+ P(t("input", {
3137
3137
  type: "search",
3138
- "onUpdate:modelValue": P[3] || (P[3] = (b) => c.value = b),
3138
+ "onUpdate:modelValue": A[3] || (A[3] = (b) => c.value = b),
3139
3139
  ref: o.value,
3140
3140
  id: `${e.field_name}search${f.value}`,
3141
3141
  onKeydown: S,
3142
- onBlur: P[4] || (P[4] = (b) => oe()),
3142
+ onBlur: A[4] || (A[4] = (b) => oe()),
3143
3143
  autocomplete: "off",
3144
3144
  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",
3145
3145
  placeholder: "Search ..."
@@ -3260,7 +3260,7 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
3260
3260
  }),
3261
3261
  for: e.field_name
3262
3262
  }, h(e.label_name), 11, ro),
3263
- A(t("textarea", {
3263
+ P(t("textarea", {
3264
3264
  required: e.is_required,
3265
3265
  name: e.field_name,
3266
3266
  id: e.field_name,
@@ -3565,7 +3565,7 @@ const et = /* @__PURE__ */ O(lo, [["render", xo]]), wo = {
3565
3565
  page: 1
3566
3566
  };
3567
3567
  },
3568
- emits: ["editAction"],
3568
+ emits: ["editAction", "generalAction"],
3569
3569
  computed: {
3570
3570
  filteredData() {
3571
3571
  const e = this.search.toLowerCase();
@@ -3578,6 +3578,9 @@ const et = /* @__PURE__ */ O(lo, [["render", xo]]), wo = {
3578
3578
  editAction(e) {
3579
3579
  this.$emit("editAction", e);
3580
3580
  },
3581
+ generalAction(e) {
3582
+ this.$emit("generalAction", e);
3583
+ },
3581
3584
  forDynCompIs(e) {
3582
3585
  return typeof e == "object" ? e : null;
3583
3586
  },
@@ -3617,10 +3620,10 @@ const et = /* @__PURE__ */ O(lo, [["render", xo]]), wo = {
3617
3620
  this.isMounted && e !== r && this.GetItemLists();
3618
3621
  }
3619
3622
  }
3620
- }, ko = { class: "p-2" }, $o = { class: "flex flex-col flex-wrap pb-4 space-y-4 xl:flex-row xl:items-center xl:justify-between flex-column sm:space-y-0" }, Co = { class: "flex items-center gap-2" }, So = /* @__PURE__ */ t("span", { class: "font-medium" }, " Show ", -1), Do = { style: { "margin-top": "9px" } }, Oo = /* @__PURE__ */ t("span", { class: "font-medium" }, " Entries ", -1), Po = /* @__PURE__ */ t("label", {
3623
+ }, ko = { class: "p-2" }, $o = { class: "flex flex-col flex-wrap pb-4 space-y-4 xl:flex-row xl:items-center xl:justify-between flex-column sm:space-y-0" }, Co = { class: "flex items-center gap-2" }, So = /* @__PURE__ */ t("span", { class: "font-medium" }, " Show ", -1), Do = { style: { "margin-top": "9px" } }, Oo = /* @__PURE__ */ t("span", { class: "font-medium" }, " Entries ", -1), Ao = /* @__PURE__ */ t("label", {
3621
3624
  for: "table-search",
3622
3625
  class: "sr-only"
3623
- }, "Search", -1), Ao = { class: "relative" }, jo = /* @__PURE__ */ t("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
3626
+ }, "Search", -1), Po = { class: "relative" }, jo = /* @__PURE__ */ t("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
3624
3627
  /* @__PURE__ */ t("svg", {
3625
3628
  class: "w-5 h-5 text-gray-500 dark:text-gray-400",
3626
3629
  "aria-hidden": "true",
@@ -3708,10 +3711,10 @@ function zo(e, r, s, n, o, a) {
3708
3711
  ]),
3709
3712
  Oo
3710
3713
  ]),
3711
- Po,
3712
- t("div", Ao, [
3714
+ Ao,
3715
+ t("div", Po, [
3713
3716
  jo,
3714
- A(t("input", {
3717
+ P(t("input", {
3715
3718
  type: "text",
3716
3719
  "onUpdate:modelValue": r[1] || (r[1] = (c) => o.search = c),
3717
3720
  onInput: r[2] || (r[2] = (c) => a.handleSearch()),
@@ -3761,8 +3764,9 @@ function zo(e, r, s, n, o, a) {
3761
3764
  xprops: s.xprops,
3762
3765
  tdProps: m.tdProps,
3763
3766
  onDeleteAction: r[3] || (r[3] = (v) => a.GetItemLists()),
3764
- onEditAction: (v) => a.editAction(c)
3765
- }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (d(), u(w, { key: 1 }, [
3767
+ onEditAction: (v) => a.editAction(c),
3768
+ onGeneralAction: (v) => a.generalAction(c)
3769
+ }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (d(), u(w, { key: 1 }, [
3766
3770
  $(h(c[m.field_name]), 1)
3767
3771
  ], 64))
3768
3772
  ])
@@ -3969,7 +3973,7 @@ function _l(e, r, s, n, o, a) {
3969
3973
  el,
3970
3974
  t("div", tl, [
3971
3975
  rl,
3972
- A(t("input", {
3976
+ P(t("input", {
3973
3977
  type: "text",
3974
3978
  "onUpdate:modelValue": r[1] || (r[1] = (c) => o.search = c),
3975
3979
  onInput: r[2] || (r[2] = (c) => a.handleSearch()),
@@ -4132,7 +4136,7 @@ const Tc = /* @__PURE__ */ O(Zo, [["render", _l]]), vl = {
4132
4136
  }, xl = { class: "p-2" }, wl = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" }, kl = { class: "flex items-center gap-2" }, $l = /* @__PURE__ */ t("span", { class: "font-medium" }, " Show ", -1), Cl = { style: { "margin-top": "9px" } }, Sl = /* @__PURE__ */ t("span", { class: "font-medium" }, " Entries ", -1), Dl = /* @__PURE__ */ t("label", {
4133
4137
  for: "table-search",
4134
4138
  class: "sr-only"
4135
- }, "Search", -1), Ol = { class: "relative" }, Pl = /* @__PURE__ */ t("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
4139
+ }, "Search", -1), Ol = { class: "relative" }, Al = /* @__PURE__ */ t("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
4136
4140
  /* @__PURE__ */ t("svg", {
4137
4141
  class: "w-5 h-5 text-gray-500 dark:text-gray-400",
4138
4142
  "aria-hidden": "true",
@@ -4146,7 +4150,7 @@ const Tc = /* @__PURE__ */ O(Zo, [["render", _l]]), vl = {
4146
4150
  "clip-rule": "evenodd"
4147
4151
  })
4148
4152
  ])
4149
- ], -1), Al = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, jl = { 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" }, El = { class: "hidden text-sm font-normal text-center text-gray-700 lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, Ll = ["onClick"], Tl = {
4153
+ ], -1), Pl = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, jl = { 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" }, El = { class: "hidden text-sm font-normal text-center text-gray-700 lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, Ll = ["onClick"], Tl = {
4150
4154
  key: 0,
4151
4155
  class: "ml-2"
4152
4156
  }, Ml = {
@@ -4217,8 +4221,8 @@ function oi(e, r, s, n, o, a) {
4217
4221
  ]),
4218
4222
  Dl,
4219
4223
  t("div", Ol, [
4220
- Pl,
4221
- A(t("input", {
4224
+ Al,
4225
+ P(t("input", {
4222
4226
  type: "text",
4223
4227
  "onUpdate:modelValue": r[1] || (r[1] = (l) => o.search = l),
4224
4228
  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",
@@ -4228,7 +4232,7 @@ function oi(e, r, s, n, o, a) {
4228
4232
  ])
4229
4233
  ])
4230
4234
  ]),
4231
- t("div", Al, [
4235
+ t("div", Pl, [
4232
4236
  t("table", jl, [
4233
4237
  t("thead", El, [
4234
4238
  t("tr", null, [
@@ -4487,9 +4491,9 @@ const Nc = /* @__PURE__ */ O(di, [["render", pi]]), yi = {
4487
4491
  viewBox: "0 0 20 20"
4488
4492
  }, [
4489
4493
  /* @__PURE__ */ t("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM10 15a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-4a1 1 0 0 1-2 0V6a1 1 0 0 1 2 0v5Z" })
4490
- ], -1), Pi = /* @__PURE__ */ t("span", { class: "sr-only" }, "Warning icon", -1), Ai = [
4494
+ ], -1), Ai = /* @__PURE__ */ t("span", { class: "sr-only" }, "Warning icon", -1), Pi = [
4491
4495
  Oi,
4492
- Pi
4496
+ Ai
4493
4497
  ], ji = { class: "ml-3 text-sm font-normal" }, Ei = /* @__PURE__ */ t("span", { class: "sr-only" }, "Close", -1), Li = /* @__PURE__ */ t("svg", {
4494
4498
  "aria-hidden": "true",
4495
4499
  class: "w-5 h-5",
@@ -4528,7 +4532,7 @@ const Nc = /* @__PURE__ */ O(di, [["render", pi]]), yi = {
4528
4532
  return (o, a) => (d(), u("div", yi, [
4529
4533
  s.type === "success" ? (d(), u("div", _i, wi)) : g("", !0),
4530
4534
  s.type === "error" ? (d(), u("div", ki, Si)) : g("", !0),
4531
- s.type === "warning" ? (d(), u("div", Di, Ai)) : g("", !0),
4535
+ s.type === "warning" ? (d(), u("div", Di, Pi)) : g("", !0),
4532
4536
  t("div", ji, h(s.message), 1),
4533
4537
  t("button", {
4534
4538
  onClick: a[0] || (a[0] = (i) => n("remove")),
@@ -4651,13 +4655,13 @@ const Nc = /* @__PURE__ */ O(di, [["render", pi]]), yi = {
4651
4655
  onConfirmDelete: _,
4652
4656
  onCancelDelete: c
4653
4657
  }, null, 8, ["isOpen"]),
4654
- e.row && v.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? A((d(), u("div", Ni, [
4658
+ e.row && v.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? P((d(), u("div", Ni, [
4655
4659
  t("button", {
4656
4660
  onClick: l,
4657
4661
  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",
4658
4662
  type: "button"
4659
4663
  }, Bi),
4660
- A(t("div", Gi, [
4664
+ P(t("div", Gi, [
4661
4665
  t("ul", Ui, [
4662
4666
  v.can(`edit_${e.xprops.permission}`) ? (d(), u("li", Fi, [
4663
4667
  t("a", {
@@ -4757,13 +4761,13 @@ const Nc = /* @__PURE__ */ O(di, [["render", pi]]), yi = {
4757
4761
  onConfirmDelete: _,
4758
4762
  onCancelDelete: c
4759
4763
  }, null, 8, ["isOpen"]),
4760
- e.row && v.can(`delete_${e.xprops.permission}`) ? A((d(), u("div", Zi, [
4764
+ e.row && v.can(`delete_${e.xprops.permission}`) ? P((d(), u("div", Zi, [
4761
4765
  t("button", {
4762
4766
  onClick: l,
4763
4767
  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",
4764
4768
  type: "button"
4765
4769
  }, Wi),
4766
- A(t("div", Yi, [
4770
+ P(t("div", Yi, [
4767
4771
  t("ul", Xi, [
4768
4772
  v.can(`delete_${e.xprops.permission}`) ? (d(), u("li", Ji, [
4769
4773
  t("a", {
@@ -5006,7 +5010,7 @@ const Hc = /* @__PURE__ */ O(wd, [["render", Dd], ["__scopeId", "data-v-3a28c02c
5006
5010
  return this.row[this.field] === 1;
5007
5011
  }
5008
5012
  }
5009
- }, Pd = { class: "flex flex-wrap gap-2 text-nowrap" }, Ad = {
5013
+ }, Ad = { class: "flex flex-wrap gap-2 text-nowrap" }, Pd = {
5010
5014
  key: 0,
5011
5015
  class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
5012
5016
  }, jd = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Ed = {
@@ -5014,8 +5018,8 @@ const Hc = /* @__PURE__ */ O(wd, [["render", Dd], ["__scopeId", "data-v-3a28c02c
5014
5018
  class: "inline-flex items-center bg-red-100 text-red-800 text-xs font-medium px-2.5 py-0.5 rounded-full dark:bg-red-900 dark:text-red-300"
5015
5019
  }, Ld = /* @__PURE__ */ t("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
5016
5020
  function Td(e, r, s, n, o, a) {
5017
- return d(), u("div", Pd, [
5018
- a.isActive ? (d(), u("span", Ad, [
5021
+ return d(), u("div", Ad, [
5022
+ a.isActive ? (d(), u("span", Pd, [
5019
5023
  jd,
5020
5024
  $(" Active ")
5021
5025
  ])) : a.isActive ? g("", !0) : (d(), u("span", Ed, [
@@ -5271,18 +5275,18 @@ const Jc = /* @__PURE__ */ O(wu, [["render", Cu]]), Su = {
5271
5275
  class: "fixed inset-0 z-50 overflow-y-auto",
5272
5276
  role: "dialog",
5273
5277
  "aria-modal": "true"
5274
- }, Ou = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, Pu = /* @__PURE__ */ t("div", {
5278
+ }, Ou = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, Au = /* @__PURE__ */ t("div", {
5275
5279
  class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
5276
5280
  "aria-hidden": "true"
5277
- }, null, -1), Au = /* @__PURE__ */ t("span", {
5281
+ }, null, -1), Pu = /* @__PURE__ */ t("span", {
5278
5282
  class: "hidden sm:inline-block sm:align-middle sm:h-screen",
5279
5283
  "aria-hidden": "true"
5280
5284
  }, "​", -1), ju = { 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" }, Eu = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, Lu = { class: "sm:flex sm:items-start" }, Tu = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, Mu = { class: "text-lg font-medium leading-6 text-gray-900" }, Iu = { class: "mt-2" }, Nu = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
5281
5285
  function Vu(e, r, s, n, o, a) {
5282
5286
  return s.isOpen ? (d(), u("div", Du, [
5283
5287
  t("div", Ou, [
5284
- Pu,
5285
5288
  Au,
5289
+ Pu,
5286
5290
  t("div", ju, [
5287
5291
  t("div", Eu, [
5288
5292
  t("div", Lu, [
@@ -5508,7 +5512,7 @@ export {
5508
5512
  jc as GlDropdown,
5509
5513
  bc as GlFilesUpload,
5510
5514
  yc as GlLanguageSelector,
5511
- Pc as GlModal,
5515
+ Ac as GlModal,
5512
5516
  Oc as GlMultiItemSlide,
5513
5517
  vc as GlMultiSelectDropdown,
5514
5518
  pc as GlNotify,
@@ -5523,5 +5527,5 @@ export {
5523
5527
  kc as GlTinymceTranslate,
5524
5528
  Ee as GlToast,
5525
5529
  Vc as GlToastList,
5526
- Ac as GlToggleBox
5530
+ Pc as GlToggleBox
5527
5531
  };