golden-logic-ui 1.0.150 → 1.0.151

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 z, 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 K, 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)
@@ -150,7 +150,7 @@ var Ve = "store";
150
150
  function Be(e) {
151
151
  return e === void 0 && (e = null), xe(e !== null ? e : Ve);
152
152
  }
153
- function K(e, r) {
153
+ function W(e, r) {
154
154
  Object.keys(e).forEach(function(s) {
155
155
  return r(e[s], s);
156
156
  });
@@ -186,7 +186,7 @@ function ke(e, r, s) {
186
186
  e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
187
187
  var a = e._wrappedGetters, i = {}, l = {}, c = rt(!0);
188
188
  c.run(function() {
189
- K(a, function(f, m) {
189
+ W(a, function(f, m) {
190
190
  i[m] = At(f, e), l[m] = E(function() {
191
191
  return i[m]();
192
192
  }), Object.defineProperty(e.getters, m, {
@@ -319,7 +319,7 @@ function Tt(e, r, s, n) {
319
319
  };
320
320
  }
321
321
  function Mt(e) {
322
- H(function() {
322
+ z(function() {
323
323
  return e._state.data;
324
324
  }, function() {
325
325
  process.env.NODE_ENV !== "production" && V(e._committing, "do not mutate vuex store state outside mutation handlers.");
@@ -561,36 +561,36 @@ B.prototype.update = function(r) {
561
561
  this._rawModule.namespaced = r.namespaced, r.actions && (this._rawModule.actions = r.actions), r.mutations && (this._rawModule.mutations = r.mutations), r.getters && (this._rawModule.getters = r.getters);
562
562
  };
563
563
  B.prototype.forEachChild = function(r) {
564
- K(this._children, r);
564
+ W(this._children, r);
565
565
  };
566
566
  B.prototype.forEachGetter = function(r) {
567
- this._rawModule.getters && K(this._rawModule.getters, r);
567
+ this._rawModule.getters && W(this._rawModule.getters, r);
568
568
  };
569
569
  B.prototype.forEachAction = function(r) {
570
- this._rawModule.actions && K(this._rawModule.actions, r);
570
+ this._rawModule.actions && W(this._rawModule.actions, r);
571
571
  };
572
572
  B.prototype.forEachMutation = function(r) {
573
- this._rawModule.mutations && K(this._rawModule.mutations, r);
573
+ this._rawModule.mutations && W(this._rawModule.mutations, r);
574
574
  };
575
575
  Object.defineProperties(B.prototype, Ke);
576
- var W = function(r) {
576
+ var Y = function(r) {
577
577
  this.register([], r, !1);
578
578
  };
579
- W.prototype.get = function(r) {
579
+ Y.prototype.get = function(r) {
580
580
  return r.reduce(function(s, n) {
581
581
  return s.getChild(n);
582
582
  }, this.root);
583
583
  };
584
- W.prototype.getNamespace = function(r) {
584
+ Y.prototype.getNamespace = function(r) {
585
585
  var s = this.root;
586
586
  return r.reduce(function(n, o) {
587
587
  return s = s.getChild(o), n + (s.namespaced ? o + "/" : "");
588
588
  }, "");
589
589
  };
590
- W.prototype.update = function(r) {
590
+ Y.prototype.update = function(r) {
591
591
  We([], this.root, r);
592
592
  };
593
- W.prototype.register = function(r, s, n) {
593
+ Y.prototype.register = function(r, s, n) {
594
594
  var o = this;
595
595
  n === void 0 && (n = !0), process.env.NODE_ENV !== "production" && Ye(r, s);
596
596
  var a = new B(s, n);
@@ -600,11 +600,11 @@ W.prototype.register = function(r, s, n) {
600
600
  var i = this.get(r.slice(0, -1));
601
601
  i.addChild(r[r.length - 1], a);
602
602
  }
603
- s.modules && K(s.modules, function(l, c) {
603
+ s.modules && W(s.modules, function(l, c) {
604
604
  o.register(r.concat(c), l, n);
605
605
  });
606
606
  };
607
- W.prototype.unregister = function(r) {
607
+ Y.prototype.unregister = function(r) {
608
608
  var s = this.get(r.slice(0, -1)), n = r[r.length - 1], o = s.getChild(n);
609
609
  if (!o) {
610
610
  process.env.NODE_ENV !== "production" && console.warn(
@@ -614,7 +614,7 @@ W.prototype.unregister = function(r) {
614
614
  }
615
615
  o.runtime && s.removeChild(n);
616
616
  };
617
- W.prototype.isRegistered = function(r) {
617
+ Y.prototype.isRegistered = function(r) {
618
618
  var s = this.get(r.slice(0, -1)), n = r[r.length - 1];
619
619
  return s ? s.hasChild(n) : !1;
620
620
  };
@@ -653,7 +653,7 @@ function Ye(e, r) {
653
653
  Object.keys(je).forEach(function(s) {
654
654
  if (r[s]) {
655
655
  var n = je[s];
656
- K(r[s], function(o, a) {
656
+ W(r[s], function(o, a) {
657
657
  V(
658
658
  n.assert(o),
659
659
  Ht(e, s, a, o, n.expected)
@@ -674,7 +674,7 @@ var I = function e(r) {
674
674
  var o = r.strict;
675
675
  o === void 0 && (o = !1);
676
676
  var a = r.devtools;
677
- this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new W(r), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = a;
677
+ this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new Y(r), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = a;
678
678
  var i = this, l = this, c = l.dispatch, f = l.commit;
679
679
  this.dispatch = function(v, S) {
680
680
  return c.call(i, v, S);
@@ -766,7 +766,7 @@ I.prototype.subscribeAction = function(r, s) {
766
766
  };
767
767
  I.prototype.watch = function(r, s, n) {
768
768
  var o = this;
769
- return process.env.NODE_ENV !== "production" && V(typeof r == "function", "store.watch only accepts a function."), H(function() {
769
+ return process.env.NODE_ENV !== "production" && V(typeof r == "function", "store.watch only accepts a function."), z(function() {
770
770
  return r(o.state, o.getters);
771
771
  }, s, Object.assign({}, n));
772
772
  };
@@ -1026,7 +1026,7 @@ const Kt = {
1026
1026
  "aria-hidden": "true"
1027
1027
  }, null, -1), yr = { class: "flex flex-col ml-3" }, _r = { class: "text-xs" }, vr = { class: "text-xs" }, xr = { class: "flex gap-2" }, wr = ["href"], kr = ["onClick"];
1028
1028
  function $r(e, r, s, n, o, a) {
1029
- const i = z("DeleteConfirmationModal");
1029
+ const i = Z("DeleteConfirmationModal");
1030
1030
  return d(), u(w, null, [
1031
1031
  q(i, {
1032
1032
  isOpen: o.open_delete_modal,
@@ -1443,7 +1443,7 @@ const yc = /* @__PURE__ */ O(Lr, [["render", Nr]]), Vr = { class: "bg-white bord
1443
1443
  function ne(b) {
1444
1444
  b.target.id != s.field_name + "search" + m.value && b.target.id != s.field_name && !b.target.classList.contains("showOptions") && (se(), l.value = 0);
1445
1445
  }
1446
- function Y(b) {
1446
+ function H(b) {
1447
1447
  const x = `${b}${m.value}`, k = document.getElementById(x);
1448
1448
  k && k.scrollIntoView();
1449
1449
  }
@@ -1452,7 +1452,7 @@ const yc = /* @__PURE__ */ O(Lr, [["render", Nr]]), Vr = { class: "bg-white bord
1452
1452
  k && k.click();
1453
1453
  }
1454
1454
  function oe(b) {
1455
- b === "ArrowDown" && l.value < S.value.length && (l.value++, Y(l.value)), b === "ArrowUp" && l.value > 1 && (l.value--, Y(l.value)), b === "Enter" && me(l.value);
1455
+ b === "ArrowDown" && l.value < S.value.length && (l.value++, H(l.value)), b === "ArrowUp" && l.value > 1 && (l.value--, H(l.value)), b === "Enter" && me(l.value);
1456
1456
  }
1457
1457
  function y() {
1458
1458
  return s.options.map((b, x) => typeof b == "object" ? b : { id: b, name: b });
@@ -1495,9 +1495,9 @@ const yc = /* @__PURE__ */ O(Lr, [["render", Nr]]), Vr = { class: "bg-white bord
1495
1495
  function se() {
1496
1496
  f.value = "", n("selected", a.value), c.value = !1;
1497
1497
  }
1498
- return H(f, () => {
1498
+ return z(f, () => {
1499
1499
  S.value.length === 0 && (a.value = []);
1500
- }), H(a, (b) => {
1500
+ }), z(a, (b) => {
1501
1501
  te(a.value) && (i.value = a.value.map((x) => x.id), n("update:modelValue", i.value));
1502
1502
  }), (b, x) => (d(), u(w, null, [
1503
1503
  e.show ? (d(), u("div", {
@@ -1679,7 +1679,7 @@ const yc = /* @__PURE__ */ O(Lr, [["render", Nr]]), Vr = { class: "bg-white bord
1679
1679
  })
1680
1680
  ], -1);
1681
1681
  function ls(e, r, s, n, o, a) {
1682
- return s.is_loading ? (d(), Z(le("button"), {
1682
+ return s.is_loading ? (d(), K(le("button"), {
1683
1683
  key: 1,
1684
1684
  disabled: "",
1685
1685
  class: p(`flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${a.buttonTypeClass}`)
@@ -1689,7 +1689,7 @@ function ls(e, r, s, n, o, a) {
1689
1689
  $(" Loading... ")
1690
1690
  ]),
1691
1691
  _: 1
1692
- }, 8, ["class"])) : (d(), Z(le(s.tag), ae({
1692
+ }, 8, ["class"])) : (d(), K(le(s.tag), ae({
1693
1693
  key: 0,
1694
1694
  type: s.is_submit,
1695
1695
  disabled: s.is_disabled
@@ -2724,7 +2724,7 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
2724
2724
  }, i = () => {
2725
2725
  n("closeModal"), a();
2726
2726
  };
2727
- return H(
2727
+ return z(
2728
2728
  () => s.is_open,
2729
2729
  (l, c) => {
2730
2730
  l ? o() : a();
@@ -3051,7 +3051,7 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
3051
3051
  function ne(y) {
3052
3052
  a.value = y, l.value = !1, n("update:modelValue", a.value.id), n("selected", a.value), n("selectionChanged", a.value);
3053
3053
  }
3054
- function Y() {
3054
+ function H() {
3055
3055
  s.show || (c.value = "", l.value = !0, Te(() => {
3056
3056
  var y = document.getElementById(
3057
3057
  `${s.field_name}search${f.value}`
@@ -3060,14 +3060,14 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
3060
3060
  }));
3061
3061
  }
3062
3062
  function me() {
3063
- s.show || (a.value = {}, c.value = "", n("update:modelValue", ""), Y());
3063
+ s.show || (a.value = {}, c.value = "", n("update:modelValue", ""), H());
3064
3064
  }
3065
3065
  function oe() {
3066
3066
  a.value.id || (a.value = {}, c.value = ""), n("selected", a.value), l.value = !1;
3067
3067
  }
3068
- return H(c, () => {
3068
+ return z(c, () => {
3069
3069
  v.value.length === 0 && (a.value = {});
3070
- }), H(a, (y) => {
3070
+ }), z(a, (y) => {
3071
3071
  ee(y) && n("update:modelValue", y.id);
3072
3072
  }), (y, P) => {
3073
3073
  var j, U, se;
@@ -3103,27 +3103,36 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
3103
3103
  }, h(e.label_name), 3)) : g("", !0),
3104
3104
  t("div", Mn, [
3105
3105
  t("div", In, [
3106
- t("div", {
3106
+ t("input", {
3107
3107
  class: p([{
3108
3108
  "gl-input-form": e.error_message == "",
3109
3109
  "gl-input-form-invalid": e.error_message !== ""
3110
- }, "pl-8 pr-2 showOptions bg-white dark:bg-gray-700 border rounded-lg"]),
3110
+ }, "pl-8 pr-2 w-full opacity-0 absolute top-0 left-0 z-10"]),
3111
3111
  ref: e.field_name,
3112
- onClick: P[0] || (P[0] = (b) => Y())
3112
+ onClick: P[0] || (P[0] = (b) => H()),
3113
+ readonly: ""
3114
+ }, null, 2),
3115
+ t("div", {
3116
+ class: p([{
3117
+ "gl-input-form": e.error_message == "",
3118
+ "gl-input-form-invalid": e.error_message !== ""
3119
+ }, "pl-8 pr-2 w-full cursor-pointer bg-white dark:bg-gray-700 border rounded-lg z-0"]),
3120
+ style: { padding: "0.3rem !important" },
3121
+ onClick: P[1] || (P[1] = (b) => H())
3113
3122
  }, [
3114
3123
  t("span", {
3115
3124
  innerHTML: ((se = _.value) == null ? void 0 : se.name) || e.placeholder
3116
3125
  }, null, 8, Nn)
3117
3126
  ], 2),
3118
3127
  A(t("i", {
3119
- onClick: P[1] || (P[1] = F((b) => me(), ["stop"])),
3128
+ onClick: P[2] || (P[2] = F((b) => me(), ["stop"])),
3120
3129
  class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
3121
3130
  style: { top: "13px" }
3122
3131
  }, null, 512), [
3123
3132
  [Q, ee(_.value) && e.has_cancel]
3124
3133
  ]),
3125
3134
  t("i", {
3126
- onClick: P[2] || (P[2] = (b) => !l.value && Y()),
3135
+ onClick: P[3] || (P[3] = (b) => !l.value && H()),
3127
3136
  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
3137
  style: { top: "11px" }
3129
3138
  }, null, 2)
@@ -3135,11 +3144,11 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
3135
3144
  Fn,
3136
3145
  A(t("input", {
3137
3146
  type: "search",
3138
- "onUpdate:modelValue": P[3] || (P[3] = (b) => c.value = b),
3147
+ "onUpdate:modelValue": P[4] || (P[4] = (b) => c.value = b),
3139
3148
  ref: o.value,
3140
3149
  id: `${e.field_name}search${f.value}`,
3141
3150
  onKeydown: S,
3142
- onBlur: P[4] || (P[4] = (b) => oe()),
3151
+ onBlur: P[5] || (P[5] = (b) => oe()),
3143
3152
  autocomplete: "off",
3144
3153
  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
3154
  placeholder: "Search ..."
@@ -3462,8 +3471,8 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
3462
3471
  })
3463
3472
  ], -1);
3464
3473
  function xo(e, r, s, n, o, a) {
3465
- const i = z("RenderlessPagination");
3466
- return d(), Z(i, {
3474
+ const i = Z("RenderlessPagination");
3475
+ return d(), K(i, {
3467
3476
  data: s.data,
3468
3477
  limit: s.limit,
3469
3478
  onPaginationChangePage: a.onPaginationChangePage
@@ -3687,7 +3696,7 @@ const et = /* @__PURE__ */ O(lo, [["render", xo]]), wo = {
3687
3696
  Uo
3688
3697
  ], Ro = ["data-label"], qo = { class: "overflow-auto max-h-40" }, Ho = { 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" };
3689
3698
  function zo(e, r, s, n, o, a) {
3690
- const i = z("dropdown"), l = z("TailwindPagination");
3699
+ const i = Z("dropdown"), l = Z("TailwindPagination");
3691
3700
  return d(), u("div", ko, [
3692
3701
  t("div", $o, [
3693
3702
  t("div", Co, [
@@ -3754,7 +3763,7 @@ function zo(e, r, s, n, o, a) {
3754
3763
  class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-2.5 lg:px-4 border dark:border-gray-700"
3755
3764
  }, [
3756
3765
  t("div", qo, [
3757
- m.tdComp ? (d(), Z(le(a.forDynCompIs(m.tdComp)), {
3766
+ m.tdComp ? (d(), K(le(a.forDynCompIs(m.tdComp)), {
3758
3767
  key: 0,
3759
3768
  row: c,
3760
3769
  field: m.field_name,
@@ -3945,7 +3954,7 @@ const Lc = /* @__PURE__ */ O(wo, [["render", zo]]), Zo = {
3945
3954
  gl
3946
3955
  ], hl = { class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500" }, ml = ["colspan"], bl = ["data-label"], pl = { class: "overflow-auto max-h-40" }, yl = { 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" };
3947
3956
  function _l(e, r, s, n, o, a) {
3948
- const i = z("dropdown"), l = z("TailwindPagination");
3957
+ const i = Z("dropdown"), l = Z("TailwindPagination");
3949
3958
  return d(), u("div", Ko, [
3950
3959
  t("div", Wo, [
3951
3960
  t("div", Yo, [
@@ -4019,7 +4028,7 @@ function _l(e, r, s, n, o, a) {
4019
4028
  class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border dark:border-gray-700"
4020
4029
  }, [
4021
4030
  t("div", pl, [
4022
- v.tdComp ? (d(), Z(le(a.forDynCompIs(v.tdComp)), {
4031
+ v.tdComp ? (d(), K(le(a.forDynCompIs(v.tdComp)), {
4023
4032
  key: 0,
4024
4033
  row: m,
4025
4034
  field: v.field_name,
@@ -4194,7 +4203,7 @@ const Tc = /* @__PURE__ */ O(Zo, [["render", _l]]), vl = {
4194
4203
  ai
4195
4204
  ];
4196
4205
  function oi(e, r, s, n, o, a) {
4197
- const i = z("dropdown");
4206
+ const i = Z("dropdown");
4198
4207
  return d(), u("div", xl, [
4199
4208
  t("div", wl, [
4200
4209
  t("div", kl, [
@@ -4562,7 +4571,7 @@ const Nc = /* @__PURE__ */ O(di, [["render", pi]]), yi = {
4562
4571
  function r(s) {
4563
4572
  Ee.methods.remove(s);
4564
4573
  }
4565
- return (s, n) => (d(), Z(dt, {
4574
+ return (s, n) => (d(), K(dt, {
4566
4575
  tag: "div",
4567
4576
  "enter-from-class": "translate-x-full opacity-0",
4568
4577
  "enter-active-class": "duration-500",
@@ -4571,7 +4580,7 @@ const Nc = /* @__PURE__ */ O(di, [["render", pi]]), yi = {
4571
4580
  class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
4572
4581
  }, {
4573
4582
  default: ie(() => [
4574
- (d(!0), u(w, null, D(ut(Ee).state.items, (o, a) => (d(), Z(Mi, {
4583
+ (d(!0), u(w, null, D(ut(Ee).state.items, (o, a) => (d(), K(Mi, {
4575
4584
  key: o.key,
4576
4585
  message: o.message,
4577
4586
  type: o.type,