golden-logic-ui 1.0.151 → 1.0.153

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 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";
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";
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 W(e, r) {
153
+ function K(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
- W(a, function(f, m) {
189
+ K(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
- z(function() {
322
+ H(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
- W(this._children, r);
564
+ K(this._children, r);
565
565
  };
566
566
  B.prototype.forEachGetter = function(r) {
567
- this._rawModule.getters && W(this._rawModule.getters, r);
567
+ this._rawModule.getters && K(this._rawModule.getters, r);
568
568
  };
569
569
  B.prototype.forEachAction = function(r) {
570
- this._rawModule.actions && W(this._rawModule.actions, r);
570
+ this._rawModule.actions && K(this._rawModule.actions, r);
571
571
  };
572
572
  B.prototype.forEachMutation = function(r) {
573
- this._rawModule.mutations && W(this._rawModule.mutations, r);
573
+ this._rawModule.mutations && K(this._rawModule.mutations, r);
574
574
  };
575
575
  Object.defineProperties(B.prototype, Ke);
576
- var Y = function(r) {
576
+ var W = function(r) {
577
577
  this.register([], r, !1);
578
578
  };
579
- Y.prototype.get = function(r) {
579
+ W.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
- Y.prototype.getNamespace = function(r) {
584
+ W.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
- Y.prototype.update = function(r) {
590
+ W.prototype.update = function(r) {
591
591
  We([], this.root, r);
592
592
  };
593
- Y.prototype.register = function(r, s, n) {
593
+ W.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 @@ Y.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 && W(s.modules, function(l, c) {
603
+ s.modules && K(s.modules, function(l, c) {
604
604
  o.register(r.concat(c), l, n);
605
605
  });
606
606
  };
607
- Y.prototype.unregister = function(r) {
607
+ W.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 @@ Y.prototype.unregister = function(r) {
614
614
  }
615
615
  o.runtime && s.removeChild(n);
616
616
  };
617
- Y.prototype.isRegistered = function(r) {
617
+ W.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
- W(r[s], function(o, a) {
656
+ K(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 Y(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 W(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."), z(function() {
769
+ return process.env.NODE_ENV !== "production" && V(typeof r == "function", "store.watch only accepts a function."), H(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 H(b) {
1446
+ function Y(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++, H(l.value)), b === "ArrowUp" && l.value > 1 && (l.value--, H(l.value)), b === "Enter" && me(l.value);
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);
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 z(f, () => {
1498
+ return H(f, () => {
1499
1499
  S.value.length === 0 && (a.value = []);
1500
- }), z(a, (b) => {
1500
+ }), H(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(), K(le("button"), {
1682
+ return s.is_loading ? (d(), Z(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(), K(le(s.tag), ae({
1692
+ }, 8, ["class"])) : (d(), Z(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 z(
2727
+ return H(
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 H() {
3054
+ function Y() {
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", ""), H());
3063
+ s.show || (a.value = {}, c.value = "", n("update:modelValue", ""), Y());
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 z(c, () => {
3068
+ return H(c, () => {
3069
3069
  v.value.length === 0 && (a.value = {});
3070
- }), z(a, (y) => {
3070
+ }), H(a, (y) => {
3071
3071
  ee(y) && n("update:modelValue", y.id);
3072
3072
  }), (y, P) => {
3073
3073
  var j, U, se;
@@ -3103,36 +3103,27 @@ 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("input", {
3107
- class: p([{
3108
- "gl-input-form": e.error_message == "",
3109
- "gl-input-form-invalid": e.error_message !== ""
3110
- }, "pl-8 pr-2 w-full opacity-0 absolute top-0 left-0 z-10"]),
3111
- ref: e.field_name,
3112
- onClick: P[0] || (P[0] = (b) => H()),
3113
- readonly: ""
3114
- }, null, 2),
3115
- t("div", {
3106
+ t("button", {
3116
3107
  class: p([{
3117
3108
  "gl-input-form": e.error_message == "",
3118
3109
  "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())
3110
+ }, "pl-8 pr-2 showOptions bg-white dark:bg-gray-700 border rounded-lg relative cursor-pointer"]),
3111
+ onClick: P[0] || (P[0] = (b) => Y())
3122
3112
  }, [
3123
- t("span", {
3124
- innerHTML: ((se = _.value) == null ? void 0 : se.name) || e.placeholder
3113
+ t("div", {
3114
+ innerHTML: ((se = _.value) == null ? void 0 : se.name) || e.placeholder,
3115
+ class: "h-full"
3125
3116
  }, null, 8, Nn)
3126
3117
  ], 2),
3127
3118
  A(t("i", {
3128
- onClick: P[2] || (P[2] = F((b) => me(), ["stop"])),
3119
+ onClick: P[1] || (P[1] = F((b) => me(), ["stop"])),
3129
3120
  class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
3130
3121
  style: { top: "13px" }
3131
3122
  }, null, 512), [
3132
3123
  [Q, ee(_.value) && e.has_cancel]
3133
3124
  ]),
3134
3125
  t("i", {
3135
- onClick: P[3] || (P[3] = (b) => !l.value && H()),
3126
+ onClick: P[2] || (P[2] = (b) => !l.value && Y()),
3136
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"]),
3137
3128
  style: { top: "11px" }
3138
3129
  }, null, 2)
@@ -3144,11 +3135,11 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
3144
3135
  Fn,
3145
3136
  A(t("input", {
3146
3137
  type: "search",
3147
- "onUpdate:modelValue": P[4] || (P[4] = (b) => c.value = b),
3138
+ "onUpdate:modelValue": P[3] || (P[3] = (b) => c.value = b),
3148
3139
  ref: o.value,
3149
3140
  id: `${e.field_name}search${f.value}`,
3150
3141
  onKeydown: S,
3151
- onBlur: P[5] || (P[5] = (b) => oe()),
3142
+ onBlur: P[4] || (P[4] = (b) => oe()),
3152
3143
  autocomplete: "off",
3153
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",
3154
3145
  placeholder: "Search ..."
@@ -3471,8 +3462,8 @@ const Oc = /* @__PURE__ */ O(sa, [["render", ln], ["__scopeId", "data-v-a94f16a9
3471
3462
  })
3472
3463
  ], -1);
3473
3464
  function xo(e, r, s, n, o, a) {
3474
- const i = Z("RenderlessPagination");
3475
- return d(), K(i, {
3465
+ const i = z("RenderlessPagination");
3466
+ return d(), Z(i, {
3476
3467
  data: s.data,
3477
3468
  limit: s.limit,
3478
3469
  onPaginationChangePage: a.onPaginationChangePage
@@ -3696,7 +3687,7 @@ const et = /* @__PURE__ */ O(lo, [["render", xo]]), wo = {
3696
3687
  Uo
3697
3688
  ], 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" };
3698
3689
  function zo(e, r, s, n, o, a) {
3699
- const i = Z("dropdown"), l = Z("TailwindPagination");
3690
+ const i = z("dropdown"), l = z("TailwindPagination");
3700
3691
  return d(), u("div", ko, [
3701
3692
  t("div", $o, [
3702
3693
  t("div", Co, [
@@ -3763,7 +3754,7 @@ function zo(e, r, s, n, o, a) {
3763
3754
  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"
3764
3755
  }, [
3765
3756
  t("div", qo, [
3766
- m.tdComp ? (d(), K(le(a.forDynCompIs(m.tdComp)), {
3757
+ m.tdComp ? (d(), Z(le(a.forDynCompIs(m.tdComp)), {
3767
3758
  key: 0,
3768
3759
  row: c,
3769
3760
  field: m.field_name,
@@ -3954,7 +3945,7 @@ const Lc = /* @__PURE__ */ O(wo, [["render", zo]]), Zo = {
3954
3945
  gl
3955
3946
  ], 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" };
3956
3947
  function _l(e, r, s, n, o, a) {
3957
- const i = Z("dropdown"), l = Z("TailwindPagination");
3948
+ const i = z("dropdown"), l = z("TailwindPagination");
3958
3949
  return d(), u("div", Ko, [
3959
3950
  t("div", Wo, [
3960
3951
  t("div", Yo, [
@@ -4028,7 +4019,7 @@ function _l(e, r, s, n, o, a) {
4028
4019
  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"
4029
4020
  }, [
4030
4021
  t("div", pl, [
4031
- v.tdComp ? (d(), K(le(a.forDynCompIs(v.tdComp)), {
4022
+ v.tdComp ? (d(), Z(le(a.forDynCompIs(v.tdComp)), {
4032
4023
  key: 0,
4033
4024
  row: m,
4034
4025
  field: v.field_name,
@@ -4203,7 +4194,7 @@ const Tc = /* @__PURE__ */ O(Zo, [["render", _l]]), vl = {
4203
4194
  ai
4204
4195
  ];
4205
4196
  function oi(e, r, s, n, o, a) {
4206
- const i = Z("dropdown");
4197
+ const i = z("dropdown");
4207
4198
  return d(), u("div", xl, [
4208
4199
  t("div", wl, [
4209
4200
  t("div", kl, [
@@ -4571,7 +4562,7 @@ const Nc = /* @__PURE__ */ O(di, [["render", pi]]), yi = {
4571
4562
  function r(s) {
4572
4563
  Ee.methods.remove(s);
4573
4564
  }
4574
- return (s, n) => (d(), K(dt, {
4565
+ return (s, n) => (d(), Z(dt, {
4575
4566
  tag: "div",
4576
4567
  "enter-from-class": "translate-x-full opacity-0",
4577
4568
  "enter-active-class": "duration-500",
@@ -4580,7 +4571,7 @@ const Nc = /* @__PURE__ */ O(di, [["render", pi]]), yi = {
4580
4571
  class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
4581
4572
  }, {
4582
4573
  default: ie(() => [
4583
- (d(!0), u(w, null, D(ut(Ee).state.items, (o, a) => (d(), K(Mi, {
4574
+ (d(!0), u(w, null, D(ut(Ee).state.items, (o, a) => (d(), Z(Mi, {
4584
4575
  key: o.key,
4585
4576
  message: o.message,
4586
4577
  type: o.type,