@avakhula/ui 0.0.327 → 0.0.329

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openBlock as G, createElementBlock as ne, normalizeStyle as wn, normalizeClass as ve, resolveComponent as fe, createElementVNode as ae, withModifiers as et, renderSlot as Ee, createVNode as ge, Transition as wi, withCtx as ye, withDirectives as De, vShow as Ke, createBlock as ke, resolveDynamicComponent as Oi, mergeProps as Tt, Fragment as tt, renderList as Ft, createCommentVNode as he, toDisplayString as $e, resolveDirective as On, createSlots as So, Teleport as fa, createTextVNode as Ge, createApp as ha, vModelDynamic as xo, withKeys as _t, vModelCheckbox as pa, pushScopeId as $r, popScopeId as wr, vModelText as Ao, defineComponent as ga, onMounted as ma, onBeforeUnmount as va, ref as Br, watch as er, nextTick as jr, h as ya, createStaticVNode as ba } from "vue";
1
+ import { openBlock as G, createElementBlock as ne, normalizeStyle as wn, normalizeClass as ve, resolveComponent as fe, createElementVNode as ae, withModifiers as Xe, renderSlot as Ee, createVNode as ge, Transition as wi, withCtx as ye, withDirectives as De, vShow as Ke, createBlock as ke, resolveDynamicComponent as Oi, mergeProps as Tt, Fragment as tt, renderList as Ft, createCommentVNode as he, toDisplayString as $e, resolveDirective as On, createSlots as So, Teleport as fa, createTextVNode as Ge, createApp as ha, vModelDynamic as xo, withKeys as _t, vModelCheckbox as pa, pushScopeId as $r, popScopeId as wr, vModelText as Ao, defineComponent as ga, onMounted as ma, onBeforeUnmount as va, ref as Br, watch as er, nextTick as jr, h as ya, createStaticVNode as ba } from "vue";
2
2
  const Ae = (t, n) => {
3
3
  const e = t.__vccOpts || t;
4
4
  for (const [r, o] of n)
@@ -35,7 +35,7 @@ function wa(t, n, e, r, o, i) {
35
35
  ref: "icon"
36
36
  }, null, 14, $a);
37
37
  }
38
- const Xe = /* @__PURE__ */ Ae(_a, [["render", wa]]);
38
+ const Qe = /* @__PURE__ */ Ae(_a, [["render", wa]]);
39
39
  function At() {
40
40
  return "_" + Math.random().toString(36).substr(2, 9);
41
41
  }
@@ -86,7 +86,7 @@ const Oa = {
86
86
  }
87
87
  },
88
88
  components: {
89
- IbIcon: Xe
89
+ IbIcon: Qe
90
90
  }
91
91
  }, ka = ["id", "aria-controls", "aria-expanded"], Ca = ["id", "aria-labelledby"], Ea = { class: "accordion-content-wrapper" };
92
92
  function Ta(t, n, e, r, o, i) {
@@ -100,7 +100,7 @@ function Ta(t, n, e, r, o, i) {
100
100
  "aria-controls": "accordion-section-" + o.uuid,
101
101
  "aria-expanded": o.isActive,
102
102
  type: "button",
103
- onClick: n[0] || (n[0] = et((...l) => i.onClick && i.onClick(...l), ["prevent"]))
103
+ onClick: n[0] || (n[0] = Xe((...l) => i.onClick && i.onClick(...l), ["prevent"]))
104
104
  }, [
105
105
  Ee(t.$slots, "title", {}, void 0, !0),
106
106
  ge(s, {
@@ -538,7 +538,7 @@ const Va = {
538
538
  (t = this.contentObserver) == null || t.disconnect(), window.removeEventListener("resize", () => this.checkHeight());
539
539
  },
540
540
  components: {
541
- IbIcon: Xe,
541
+ IbIcon: Qe,
542
542
  IbIconButton: Nt
543
543
  }
544
544
  }, Ua = {
@@ -629,7 +629,7 @@ const Ja = {
629
629
  }
630
630
  },
631
631
  components: {
632
- IbIcon: Xe
632
+ IbIcon: Qe
633
633
  }
634
634
  }, Xa = ["src", "alt"];
635
635
  function Qa(t, n, e, r, o, i) {
@@ -729,7 +729,7 @@ const ol = {
729
729
  }
730
730
  }
731
731
  },
732
- components: { IbIcon: Xe }
732
+ components: { IbIcon: Qe }
733
733
  };
734
734
  function al(t, n, e, r, o, i) {
735
735
  const s = fe("ib-icon");
@@ -805,7 +805,7 @@ const sl = {
805
805
  },
806
806
  components: {
807
807
  IbIconButton: Nt,
808
- IbIcon: Xe
808
+ IbIcon: Qe
809
809
  }
810
810
  }, ul = { class: "ib-toggle-tip-head" }, dl = { class: "ib-toggle-tip-content" }, cl = { class: "ib-toggle-tip-button-set" };
811
811
  function fl(t, n, e, r, o, i) {
@@ -820,7 +820,7 @@ function fl(t, n, e, r, o, i) {
820
820
  ge(l, {
821
821
  class: "close-button",
822
822
  kind: "ghost",
823
- onClick: et(i.close, ["prevent"])
823
+ onClick: Xe(i.close, ["prevent"])
824
824
  }, {
825
825
  default: ye(() => [
826
826
  ge(s, { name: "close-outline" })
@@ -998,7 +998,7 @@ function Tl(t, n, e, r, o, i) {
998
998
  class: ve(["dropdown-trigger", i.triggerClasses]),
999
999
  ref: "dropdown",
1000
1000
  onKeydown: n[0] || (n[0] = (...l) => i.onKeydown && i.onKeydown(...l)),
1001
- onClick: n[1] || (n[1] = et((...l) => i.toggle && i.toggle(...l), ["prevent", "stop"]))
1001
+ onClick: n[1] || (n[1] = Xe((...l) => i.toggle && i.toggle(...l), ["prevent", "stop"]))
1002
1002
  }, [
1003
1003
  Ee(t.$slots, "trigger", { isOpened: o.isOpenedState }, void 0, !0)
1004
1004
  ], 34)) : he("", !0),
@@ -1264,7 +1264,7 @@ const Rl = {
1264
1264
  };
1265
1265
  },
1266
1266
  components: {
1267
- IbIcon: Xe,
1267
+ IbIcon: Qe,
1268
1268
  IbDropdownList: Tr
1269
1269
  },
1270
1270
  methods: {
@@ -1459,7 +1459,7 @@ const zl = {
1459
1459
  },
1460
1460
  components: {
1461
1461
  IbIconButton: Nt,
1462
- IbIcon: Xe
1462
+ IbIcon: Qe
1463
1463
  },
1464
1464
  beforeUnmount() {
1465
1465
  this.isActive && this.close(), document.removeEventListener("keydown", this.onKeydown), document.removeEventListener("blur", this.setFocusOnModal, !0);
@@ -1567,7 +1567,7 @@ const Wl = {
1567
1567
  components: {
1568
1568
  IbDropdownList: Tr,
1569
1569
  IbDropdownItem: Do,
1570
- IbIcon: Xe
1570
+ IbIcon: Qe
1571
1571
  }
1572
1572
  }, Zl = { class: "wrapper-tab-link dropdown-tab" }, Jl = ["tabindex"];
1573
1573
  function Xl(t, n, e, r, o, i) {
@@ -1989,7 +1989,7 @@ const hs = {
1989
1989
  },
1990
1990
  directives: { Tooltip: Bo },
1991
1991
  components: {
1992
- IbIcon: Xe,
1992
+ IbIcon: Qe,
1993
1993
  IbIconButton: Nt,
1994
1994
  IbToggleTip: hl
1995
1995
  }
@@ -2091,7 +2091,7 @@ const ys = {
2091
2091
  }
2092
2092
  },
2093
2093
  components: {
2094
- IbIcon: Xe,
2094
+ IbIcon: Qe,
2095
2095
  IbIconButton: Nt,
2096
2096
  IbDropdownItem: Do,
2097
2097
  IbDropdownList: Tr,
@@ -2187,7 +2187,7 @@ const Cs = {
2187
2187
  },
2188
2188
  components: {
2189
2189
  IbIconButton: Nt,
2190
- IbIcon: Xe,
2190
+ IbIcon: Qe,
2191
2191
  IbTooltip: kn
2192
2192
  }
2193
2193
  }, Es = ["for"], Ts = {
@@ -2374,7 +2374,7 @@ const xs = {
2374
2374
  components: {
2375
2375
  IbAlert: cn,
2376
2376
  IbIconButton: Nt,
2377
- IbIcon: Xe,
2377
+ IbIcon: Qe,
2378
2378
  IbDropdown: Cr
2379
2379
  },
2380
2380
  inheritAttrs: !1
@@ -2437,7 +2437,7 @@ function Is(t, n, e, r, o, i) {
2437
2437
  type: "button",
2438
2438
  disabled: e.readonly || e.disabled,
2439
2439
  "help-text": o.showPassword ? e.hidePasswordMessage : e.showPasswordMessage,
2440
- onClick: et(i.toggleShowPassword, ["prevent"])
2440
+ onClick: Xe(i.toggleShowPassword, ["prevent"])
2441
2441
  }, {
2442
2442
  default: ye(() => [
2443
2443
  ge(l, {
@@ -2565,7 +2565,7 @@ const Ps = {
2565
2565
  }
2566
2566
  },
2567
2567
  components: {
2568
- IbIcon: Xe
2568
+ IbIcon: Qe
2569
2569
  },
2570
2570
  inheritAttrs: !1
2571
2571
  }, Ms = ["aria-checked"], Ds = ["for", "tabindex"], Ls = ["name", "id", "value", "disabled", "required"], Rs = { class: "ib-checkbox-body" }, Bs = {
@@ -2589,7 +2589,7 @@ function Hs(t, n, e, r, o, i) {
2589
2589
  ae("label", Tt(i.attrs, {
2590
2590
  for: e.id,
2591
2591
  tabindex: e.disabled | e.disableFocus ? -1 : 0,
2592
- onKeypress: n[2] || (n[2] = et((...c) => i.onChange && i.onChange(...c), ["prevent"]))
2592
+ onKeypress: n[2] || (n[2] = Xe((...c) => i.onChange && i.onChange(...c), ["prevent"]))
2593
2593
  }), [
2594
2594
  De(ae("input", {
2595
2595
  tabindex: "-1",
@@ -2600,7 +2600,7 @@ function Hs(t, n, e, r, o, i) {
2600
2600
  disabled: e.disabled,
2601
2601
  required: e.required,
2602
2602
  "onUpdate:modelValue": n[0] || (n[0] = (c) => o.checked = c),
2603
- onClick: n[1] || (n[1] = (...c) => i.onChange && i.onChange(...c))
2603
+ onClick: n[1] || (n[1] = Xe((...c) => i.onChange && i.onChange(...c), ["prevent"]))
2604
2604
  }, null, 8, Ls), [
2605
2605
  [pa, o.checked]
2606
2606
  ]),
@@ -2702,7 +2702,7 @@ const Vs = {
2702
2702
  };
2703
2703
  }
2704
2704
  },
2705
- components: { IbIcon: Xe, IbTooltip: kn }
2705
+ components: { IbIcon: Qe, IbTooltip: kn }
2706
2706
  }, Us = ["aria-checked", "tabindex"], zs = {
2707
2707
  class: "toggle-wrapper",
2708
2708
  ref: "wrapper"
@@ -2721,8 +2721,8 @@ function Zs(t, n, e, r, o, i) {
2721
2721
  tabindex: e.disabled ? -1 : 0,
2722
2722
  class: ve(i.classes),
2723
2723
  onKeypress: [
2724
- n[2] || (n[2] = _t(et((...c) => i.onChange && i.onChange(...c), ["prevent"]), ["space"])),
2725
- n[3] || (n[3] = _t(et((...c) => i.onChange && i.onChange(...c), ["prevent"]), ["enter"]))
2724
+ n[2] || (n[2] = _t(Xe((...c) => i.onChange && i.onChange(...c), ["prevent"]), ["space"])),
2725
+ n[3] || (n[3] = _t(Xe((...c) => i.onChange && i.onChange(...c), ["prevent"]), ["enter"]))
2726
2726
  ]
2727
2727
  }, [
2728
2728
  ae("div", zs, [
@@ -2736,7 +2736,7 @@ function Zs(t, n, e, r, o, i) {
2736
2736
  id: e.id,
2737
2737
  disabled: e.disabled,
2738
2738
  onClick: n[0] || (n[0] = (...c) => i.onChange && i.onChange(...c)),
2739
- onInput: n[1] || (n[1] = et(() => {
2739
+ onInput: n[1] || (n[1] = Xe(() => {
2740
2740
  }, ["stop"]))
2741
2741
  }, null, 40, Gs),
2742
2742
  Ys,
@@ -2895,7 +2895,7 @@ const Xs = {
2895
2895
  }
2896
2896
  },
2897
2897
  components: {
2898
- IbIcon: Xe,
2898
+ IbIcon: Qe,
2899
2899
  List: Er,
2900
2900
  IbIconButton: Nt
2901
2901
  },
@@ -2927,7 +2927,7 @@ function ou(t, n, e, r, o, i) {
2927
2927
  "aria-selected": i.isChecked(e.option),
2928
2928
  "aria-label": e.option.title,
2929
2929
  id: "option-" + i.id,
2930
- onKeydown: n[3] || (n[3] = et((...d) => i.onKeydown && i.onKeydown(...d), ["self"])),
2930
+ onKeydown: n[3] || (n[3] = Xe((...d) => i.onKeydown && i.onKeydown(...d), ["self"])),
2931
2931
  onFocus: n[4] || (n[4] = (d) => t.$emit("onFocus", `option-${i.id}`))
2932
2932
  }, [
2933
2933
  De(ge(l, {
@@ -2944,7 +2944,7 @@ function ou(t, n, e, r, o, i) {
2944
2944
  [Ke, i.hasVisibleChildren]
2945
2945
  ]),
2946
2946
  ae("div", {
2947
- onClick: n[1] || (n[1] = et((...d) => i.onChange && i.onChange(...d), ["prevent"])),
2947
+ onClick: n[1] || (n[1] = Xe((...d) => i.onChange && i.onChange(...d), ["prevent"])),
2948
2948
  class: ve({
2949
2949
  disabled: e.option.isDisabled,
2950
2950
  "tree-select-option-label": !0,
@@ -2981,7 +2981,7 @@ function ou(t, n, e, r, o, i) {
2981
2981
  Ge($e(e.option.title) + " ", 1),
2982
2982
  ge(s, {
2983
2983
  name: "star",
2984
- onClick: n[0] || (n[0] = et((d) => t.$emit("toggle-bookmark", e.option), ["stop", "prevent"]))
2984
+ onClick: n[0] || (n[0] = Xe((d) => t.$emit("toggle-bookmark", e.option), ["stop", "prevent"]))
2985
2985
  })
2986
2986
  ]))
2987
2987
  ], 2)) : e.htmlTitle ? (G(), ne(tt, { key: 1 }, [
@@ -3950,7 +3950,7 @@ const uu = {
3950
3950
  components: {
3951
3951
  IbAlert: cn,
3952
3952
  IbIconButton: Nt,
3953
- IbIcon: Xe,
3953
+ IbIcon: Qe,
3954
3954
  IbDropdown: Cr,
3955
3955
  IbInput: jo,
3956
3956
  List: Er,
@@ -4147,7 +4147,7 @@ function fu(t, n, e, r, o, i) {
4147
4147
  "tree-choice-error": e.errorMessage
4148
4148
  }]),
4149
4149
  ref: "combobox",
4150
- onClick: n[2] || (n[2] = et(() => {
4150
+ onClick: n[2] || (n[2] = Xe(() => {
4151
4151
  }, ["prevent"])),
4152
4152
  onBlur: n[3] || (n[3] = (...b) => i.onBlur && i.onBlur(...b)),
4153
4153
  onKeyup: [
@@ -4174,12 +4174,12 @@ function fu(t, n, e, r, o, i) {
4174
4174
  key: 2,
4175
4175
  kind: "ghost",
4176
4176
  class: "button-clear",
4177
- onClick: et(i.clearValue, ["prevent"]),
4178
- onKeypress: n[0] || (n[0] = _t(et(() => {
4177
+ onClick: Xe(i.clearValue, ["prevent"]),
4178
+ onKeypress: n[0] || (n[0] = _t(Xe(() => {
4179
4179
  }, ["stop", "prevent"]), ["enter"])),
4180
- onKeydown: n[1] || (n[1] = _t(et(() => {
4180
+ onKeydown: n[1] || (n[1] = _t(Xe(() => {
4181
4181
  }, ["stop", "prevent"]), ["enter"])),
4182
- onKeyup: _t(et(i.clearValue, ["prevent"]), ["enter"]),
4182
+ onKeyup: _t(Xe(i.clearValue, ["prevent"]), ["enter"]),
4183
4183
  "help-text": e.clearButtonMessage
4184
4184
  }, {
4185
4185
  default: ye(() => [
@@ -4361,7 +4361,7 @@ const yu = {
4361
4361
  },
4362
4362
  components: {
4363
4363
  IbIconButton: Nt,
4364
- IbIcon: Xe,
4364
+ IbIcon: Qe,
4365
4365
  IbInput: jo,
4366
4366
  IbLabel: Ci,
4367
4367
  IbLimitSelector: vu,
@@ -4475,7 +4475,7 @@ const Eu = {
4475
4475
  }
4476
4476
  },
4477
4477
  components: {
4478
- IbIcon: Xe
4478
+ IbIcon: Qe
4479
4479
  }
4480
4480
  }, Vo = (t) => ($r("data-v-a0217859"), t = t(), wr(), t), Tu = { class: "ib-progress-bar-wrapper" }, Su = ["aria-label", "aria-valuenow"], xu = /* @__PURE__ */ Vo(() => /* @__PURE__ */ ae("div", { class: "gradient" }, null, -1)), Au = [
4481
4481
  xu
@@ -4773,7 +4773,7 @@ function rd(t, n, e, r, o, i) {
4773
4773
  class: ve(i.classes),
4774
4774
  for: e.id,
4775
4775
  "aria-checked": o.checked,
4776
- onClick: n[2] || (n[2] = et((...c) => i.onClick && i.onClick(...c), ["prevent"]))
4776
+ onClick: n[2] || (n[2] = Xe((...c) => i.onClick && i.onClick(...c), ["prevent"]))
4777
4777
  }, [
4778
4778
  ae("input", {
4779
4779
  type: "radio",
@@ -4783,7 +4783,7 @@ function rd(t, n, e, r, o, i) {
4783
4783
  checked: o.checked,
4784
4784
  disabled: e.disabled,
4785
4785
  ref: "radio",
4786
- onInput: n[0] || (n[0] = et(() => {
4786
+ onInput: n[0] || (n[0] = Xe(() => {
4787
4787
  }, ["stop"])),
4788
4788
  onChange: n[1] || (n[1] = (...c) => i.onChange && i.onChange(...c))
4789
4789
  }, null, 40, td),
@@ -6564,7 +6564,7 @@ const Cd = "single", lr = "range", Ed = {
6564
6564
  document.removeEventListener("keyup", this.onDocumentKeyDown);
6565
6565
  },
6566
6566
  components: {
6567
- IbIcon: Xe,
6567
+ IbIcon: Qe,
6568
6568
  IbLabel: Ci,
6569
6569
  IbAlert: cn
6570
6570
  }
@@ -10224,7 +10224,7 @@ function Yf(t, n, e, r, o, i) {
10224
10224
  placeholder: i.sortedCountries.length ? i.sortedCountries[0].name : "",
10225
10225
  type: "text",
10226
10226
  "onUpdate:modelValue": n[0] || (n[0] = (l) => o.searchQuery = l),
10227
- onClick: n[1] || (n[1] = et(() => {
10227
+ onClick: n[1] || (n[1] = Xe(() => {
10228
10228
  }, ["stop"]))
10229
10229
  }, null, 8, Uf)), [
10230
10230
  [Ao, o.searchQuery]
@@ -10311,7 +10311,7 @@ const Zf = {
10311
10311
  components: {
10312
10312
  VueTelInput: Wf,
10313
10313
  IbAlert: cn,
10314
- IbIcon: Xe
10314
+ IbIcon: Qe
10315
10315
  },
10316
10316
  data() {
10317
10317
  return {
@@ -18252,9 +18252,9 @@ _i.exports;
18252
18252
  if (yt)
18253
18253
  return yt;
18254
18254
  if (Re.set(_, je), !Ze)
18255
- var Qe = F ? zi(_) : Bn(_);
18256
- return J(Qe || _, function(ct, at) {
18257
- Qe && (at = ct, ct = _[at]), Zn(je, at, Pn(ct, N, F, ee, at, _, Re));
18255
+ var et = F ? zi(_) : Bn(_);
18256
+ return J(et || _, function(ct, at) {
18257
+ et && (at = ct, ct = _[at]), Zn(je, at, Pn(ct, N, F, ee, at, _, Re));
18258
18258
  }), je;
18259
18259
  }
18260
18260
  function Di(_) {
@@ -18698,13 +18698,13 @@ $i.exports;
18698
18698
  function qi(_, N, F, ee, Ne, be) {
18699
18699
  var Re = mn(_), je = mn(N), Ze = Re ? c : Rt(_), Ve = je ? c : Rt(N);
18700
18700
  Ze = Ze == l ? m : Ze, Ve = Ve == l ? m : Ve;
18701
- var dt = Ze == m, yt = Ve == m, Qe = Ze == Ve;
18702
- if (Qe && vn(_)) {
18701
+ var dt = Ze == m, yt = Ve == m, et = Ze == Ve;
18702
+ if (et && vn(_)) {
18703
18703
  if (!vn(N))
18704
18704
  return !1;
18705
18705
  Re = !0, dt = !1;
18706
18706
  }
18707
- if (Qe && !dt)
18707
+ if (et && !dt)
18708
18708
  return be || (be = new Lt()), Re || ri(_) ? Dn(_, N, F, ee, Ne, be) : Ui(_, N, Ze, F, ee, Ne, be);
18709
18709
  if (!(F & o)) {
18710
18710
  var ct = dt && Le.call(_, "__wrapped__"), at = yt && Le.call(N, "__wrapped__");
@@ -18713,7 +18713,7 @@ $i.exports;
18713
18713
  return be || (be = new Lt()), Ne(Jt, Gt, F, ee, be);
18714
18714
  }
18715
18715
  }
18716
- return Qe ? (be || (be = new Lt()), zi(_, N, F, ee, Ne, be)) : !1;
18716
+ return et ? (be || (be = new Lt()), zi(_, N, F, ee, Ne, be)) : !1;
18717
18717
  }
18718
18718
  function Fi(_) {
18719
18719
  if (!ii(_) || Wi(_))
@@ -18739,7 +18739,7 @@ $i.exports;
18739
18739
  var Ve = be.get(_);
18740
18740
  if (Ve && be.get(N))
18741
18741
  return Ve == N;
18742
- var dt = -1, yt = !0, Qe = F & i ? new hn() : void 0;
18742
+ var dt = -1, yt = !0, et = F & i ? new hn() : void 0;
18743
18743
  for (be.set(_, N), be.set(N, _); ++dt < je; ) {
18744
18744
  var ct = _[dt], at = N[dt];
18745
18745
  if (ee)
@@ -18750,10 +18750,10 @@ $i.exports;
18750
18750
  yt = !1;
18751
18751
  break;
18752
18752
  }
18753
- if (Qe) {
18753
+ if (et) {
18754
18754
  if (!ze(N, function(Gt, ln) {
18755
- if (!se(Qe, ln) && (ct === Gt || Ne(ct, Gt, F, ee, be)))
18756
- return Qe.push(ln);
18755
+ if (!se(et, ln) && (ct === Gt || Ne(ct, Gt, F, ee, be)))
18756
+ return et.push(ln);
18757
18757
  })) {
18758
18758
  yt = !1;
18759
18759
  break;
@@ -18805,8 +18805,8 @@ $i.exports;
18805
18805
  if (Ze != dt && !Re)
18806
18806
  return !1;
18807
18807
  for (var yt = Ze; yt--; ) {
18808
- var Qe = je[yt];
18809
- if (!(Re ? Qe in N : Le.call(N, Qe)))
18808
+ var et = je[yt];
18809
+ if (!(Re ? et in N : Le.call(N, et)))
18810
18810
  return !1;
18811
18811
  }
18812
18812
  var ct = be.get(_);
@@ -18815,15 +18815,15 @@ $i.exports;
18815
18815
  var at = !0;
18816
18816
  be.set(_, N), be.set(N, _);
18817
18817
  for (var Jt = Re; ++yt < Ze; ) {
18818
- Qe = je[yt];
18819
- var Gt = _[Qe], ln = N[Qe];
18818
+ et = je[yt];
18819
+ var Gt = _[et], ln = N[et];
18820
18820
  if (ee)
18821
- var Rr = Re ? ee(ln, Gt, Qe, N, _, be) : ee(Gt, ln, Qe, _, N, be);
18821
+ var Rr = Re ? ee(ln, Gt, et, N, _, be) : ee(Gt, ln, et, _, N, be);
18822
18822
  if (!(Rr === void 0 ? Gt === ln || Ne(Gt, ln, F, ee, be) : Rr)) {
18823
18823
  at = !1;
18824
18824
  break;
18825
18825
  }
18826
- Jt || (Jt = Qe == "constructor");
18826
+ Jt || (Jt = et == "constructor");
18827
18827
  }
18828
18828
  if (at && !Jt) {
18829
18829
  var oi = _.constructor, ai = N.constructor;
@@ -19989,7 +19989,7 @@ export {
19989
19989
  Do as IbDropdownItem,
19990
19990
  Tr as IbDropdownList,
19991
19991
  g1 as IbFormGroup,
19992
- Xe as IbIcon,
19992
+ Qe as IbIcon,
19993
19993
  Nt as IbIconButton,
19994
19994
  jo as IbInput,
19995
19995
  Ci as IbLabel,
@@ -18,7 +18,7 @@
18
18
  top: ${a-p-f/2+u+12}px!important`;break;case"rightCenter":l=l+`left: ${d+5}px!important;
19
19
  top: ${a+u-p/2-f/2}px!important;`;break;case"rightBottom":l=l+`left: ${d+5}px!important;
20
20
  top: ${a+u-f/2-12}px!important`;break;default:l=l+`left: ${r+s/2-h/2}px!important;
21
- top: ${o-p+u-5}px!important`;break}return l}getClassList(n){return n?hr[n]:hr.topCenter}}const Vt=new Ni,Vl=(t,n)=>{var a;Vt.getTooltipContainer()&&Vt.destroyTooltip();const e=Object.keys(n.modifiers)[0]||n.arg,o={title:((a=n.value)==null?void 0:a.title)||"",text:typeof n.value=="object"?n.value.text:n.value};Vt.createTooltip(t,o,e)},ql=(t,n)=>{const e=Vt.getId();if(n.getAttribute("aria-describedby")!==e)return;const o=Vt.getTooltipContainer(),a=n!==t.target&&!n.contains(t.target),r=o!==t.target&&!(o!=null&&o.contains(t.target));a&&r&&Vt.destroyTooltip(n)},xi=(t,n)=>{t.__tooltip_create=()=>Vl(t,n),t.__tooltip_destroy=e=>ql(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy)},Ai=t=>{Vt.destroyTooltip(t),t.removeEventListener("mouseenter",t.__tooltip_create),document.removeEventListener("mousemove",t.__tooltip_destroy)},yr={mounted(t,n){xi(t,n)},updated(t,n){Ai(t),xi(t,n)},beforeUnmount(t){Ai(t)}},c1="",Fl={name:"IbSorting",props:{tooltipTitle:{type:String,default:""},hideSortingButton:{type:Boolean,default:!1},tooltipText:{type:String},tooltipPosition:{type:String},tooltipIconPosition:{type:String},tooltipIconSorting:{type:String},toggleTipTitle:{type:String},title:{type:String,default:""},sort:{type:String,default:null},view:{type:String,required:!0},disable:{type:Boolean,default:!1},tableName:{type:String,required:!0}},mounted(){this.$globalEvents.$on(`sorting:update:${this.tableName}`,t=>{this.$el.contains(t.$el)||(this.currentTypeSort=null)})},data(){return{isOpenToggleTip:!1,sortingTypes:jl,sortingTypesView:Rl,currentTypeSort:this.sort}},methods:{clickHandler(){this.currentTypeSort?this.currentTypeSort===this.sortingTypes.TYPE_ASC?this.currentTypeSort=this.sortingTypes.TYPE_DESC:this.currentTypeSort=null:this.currentTypeSort=this.sortingTypes.TYPE_ASC,this.updateTypeSorting()},updateTypeSorting(){this.$globalEvents.$emit(`sorting:update:${this.tableName}`,this),this.$emit("update-sorting",this.currentTypeSort)}},computed:{iconType(){return this.currentTypeSort===this.sortingTypes.TYPE_ASC?"arrow-up":this.currentTypeSort===this.sortingTypes.TYPE_DESC?"arrow-down":this.view!==this.sortingTypesView.GRID_VIEW?"swap-vertical":null},sortingTooltipPosition(){return this.hasToggleTip?"bottomCenter":this.tooltipPosition},sortingTooltipContent(){var t;return this.hasToggleTip?lang("click_to_view_details",(t=this.langComponents)==null?void 0:t.COMPONENT_SYSTEM):this.tooltipContent},tooltipIconText(){var t,n,e;return this.currentTypeSort===this.sortingTypes.TYPE_ASC?lang("sort_descending",(t=this.langComponents)==null?void 0:t.COMPONENT_SELECT):this.currentTypeSort===this.sortingTypes.TYPE_DESC?lang("reset_sorting",(n=this.langComponents)==null?void 0:n.COMPONENT_SELECT):this.view!==this.sortingTypesView.GRID_VIEW?lang("sort_ascending",(e=this.langComponents)==null?void 0:e.COMPONENT_SELECT):""},tooltipContent(){return this.tooltipTitle.length?{title:this.tooltipTitle,text:this.tooltipText}:this.tooltipText},hasToggleTip(){return this.toggleTipTitle&&this.$slots.toggleTipBody&&this.$slots.toggleTipButtons}},directives:{Tooltip:yr},components:{IbIcon:Le,IbIconButton:ut,IbToggleTip:wi}},Hl={class:"sorting-wrapper"},zl=["name"],Ul=["aria-label"];function Kl(t,n,e,o,a,r){var p;const d=i.resolveComponent("ib-toggle-tip"),s=i.resolveComponent("ib-icon-button"),f=i.resolveComponent("ib-icon"),h=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("div",Hl,[e.view===a.sortingTypesView.TABLE_VIEW?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["table-sorting-wrapper",{active:a.currentTypeSort,disabled:e.disable}])},[i.createElementVNode("div",null,[i.withDirectives((i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(["sorting-label",{"sorting-label-active":a.isOpenToggleTip&&r.hasToggleTip,"has-action":((p=e.tooltipText)==null?void 0:p.length)||r.hasToggleTip}]),type:"button",onClick:n[0]||(n[0]=u=>a.isOpenToggleTip=!a.isOpenToggleTip)},[i.createTextVNode(i.toDisplayString(e.title),1)],2)),[[h,r.sortingTooltipContent,r.sortingTooltipPosition]]),r.hasToggleTip?(i.openBlock(),i.createBlock(d,{key:0,position:"bottom-center","is-open":a.isOpenToggleTip,title:e.toggleTipTitle,onClose:n[1]||(n[1]=u=>a.isOpenToggleTip=!1)},{buttons:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipButtons",{},void 0,!0)]),default:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipBody",{},void 0,!0)]),_:3},8,["is-open","title"])):i.createCommentVNode("",!0)]),e.hideSortingButton?i.createCommentVNode("",!0):i.withDirectives((i.openBlock(),i.createBlock(s,{key:0,kind:"white",size:"s",onClick:r.clickHandler},{default:i.withCtx(()=>[i.createElementVNode("ion-icon",{name:r.iconType},null,8,zl)]),_:1},8,["onClick"])),[[h,r.tooltipIconText,e.tooltipIconPosition]])],2)):i.withDirectives((i.openBlock(),i.createElementBlock("button",{key:1,class:i.normalizeClass(["sorting-button",{active:a.currentTypeSort,disabled:e.disable}]),type:"button",onClick:n[2]||(n[2]=(...u)=>r.clickHandler&&r.clickHandler(...u)),"aria-label":e.sort},[i.createTextVNode(i.toDisplayString(e.title)+" ",1),r.iconType?(i.openBlock(),i.createBlock(f,{key:0,name:r.iconType},null,8,["name"])):i.createCommentVNode("",!0)],10,Ul)),[[h,e.tooltipText,e.tooltipPosition]])])}const Gl=_e(Fl,[["render",Kl],["__scopeId","data-v-a4394881"]]),u1="",Yl={name:"IbBreadcrumbs",props:{items:{type:Array,default:()=>[]},tooltipTextContext:{type:String}},computed:{last(){return this.items.length?this.items.length-1:null},initContextMenu(){return this.items.length>4},setItemsContextMenu(){return this.items.slice(0,-3)}},components:{IbIcon:Le,IbIconButton:ut,IbDropdownItem:gr,IbDropdownList:Rn,IbTooltip:jt}},Wl={"aria-label":"breadcrumb"},Zl={class:"breadcrumb"},Jl=["href"],Xl={key:1},Ql=["href"];function es(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown-item"),p=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("nav",Wl,[i.createElementVNode("ul",Zl,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(u,l)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(["breadcrumb-item",l===r.last?"active":""]),"aria-current":"page",key:l},[l!==r.last&&l>e.items.length-4||l===0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ib-link",href:u.url},i.toDisplayString(u.title),9,Jl)):i.createCommentVNode("",!0),l===r.last?(i.openBlock(),i.createElementBlock("p",Xl,i.toDisplayString(u.title),1)):i.createCommentVNode("",!0),r.initContextMenu&&l===e.items.length-4?(i.openBlock(),i.createBlock(p,{key:2,horizontal:"center"},{trigger:i.withCtx(()=>[i.createVNode(f,{kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(d,{name:"ellipsis-horizontal-sharp"}),e.tooltipTextContext?(i.openBlock(),i.createBlock(s,{key:0,text:e.tooltipTextContext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1})]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.setItemsContextMenu,(c,_)=>(i.openBlock(),i.createBlock(h,{key:_},{default:i.withCtx(()=>[i.createElementVNode("a",{class:"context-breadcrums",href:c.url},i.toDisplayString(c.title),9,Ql)]),_:2},1024))),128))]),_:2},1024)):i.createCommentVNode("",!0),l!==r.last&&l>e.items.length-5||l===0?(i.openBlock(),i.createBlock(d,{key:3,name:"chevron-forward-outline"})):i.createCommentVNode("",!0)],2))),128))])])}const ts=_e(Yl,[["render",es],["__scopeId","data-v-5ef772a9"]]),f1="",ns={name:"IbLabel",props:{for:{type:String},required:{type:Boolean,default:!1},infoText:{type:String,default:""},tooltipPosition:{type:String}},mounted(){this.$globalEvents.$on(`label:disabled:${this.for}`,t=>{this.disabled=t})},data(){return{disabled:!1}},computed:{classes(){const t=["ib-label"];return this.infoText.length&&t.push("has-info-text"),this.disabled&&t.push("label-disabled"),t}},components:{IbIconButton:ut,IbIcon:Le,IbTooltip:jt}},rs=["for"],is={key:0,class:"required"};function os(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(r.classes),for:e.for},[e.required?(i.openBlock(),i.createElementBlock("span",is,"* ")):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length?(i.openBlock(),i.createBlock(f,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:i.withCtx(()=>[i.createVNode(d,{name:"information-circle-outline"}),i.createVNode(s,{text:e.infoText,position:e.tooltipPosition},null,8,["text","position"])]),_:1})):i.createCommentVNode("",!0)],10,rs)}const dn=_e(ns,[["render",os],["__scopeId","data-v-3e867259"]]),vr={text:"text",password:"password",email:"email",number:"number"},h1="",as={name:"IbInput",props:{type:{type:String,default:vr.text,validator:t=>Object.keys(vr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return ht()}},debounce:{type:[Number,String]},showIcon:{type:Boolean,default:!1},showClearButton:{type:Boolean,default:!0},clearButtonMessage:{type:String,default:""},settingsButtonMessage:{type:String,default:""},showPasswordMessage:{type:String,default:""},hidePasswordMessage:{type:String,default:""},value:{type:[String,Number],default:""},modelValue:{type:[String,Number]},settingsVerticalPosition:{type:String,default:Bn.bottom},settingsHorizontalPosition:{type:String,default:sn.right},readonly:{type:Boolean,default:!1}},data(){return{actualValue:this.modelValue||this.value,showPassword:!1}},mounted(){setTimeout(()=>{this.$globalEvents.$emit(`label:disabled:${this.id}`,this.disabled)},10)},methods:{toggleShowPassword(){this.showPassword=!this.showPassword},clearInput(){this.actualValue="",this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue),this.$emit("clear")},onBlur(){this.$emit("blur",this.actualValue)},onFocus(){this.$emit("focus",this.actualValue)},onInput(){this.debounce?this.delayedInput(this.actualValue):(this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue))},delayedInput(t){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.$emit("update:modelValue",t),this.$emit("input",t)},this.debounce)},focus(){this.$refs.field.focus()}},computed:{hasSettings(){return!!this.$slots.settings},classes(){const t=["ib-input"];return this.hasErrorState&&t.push("ib-error"),this.showIcon&&t.push("ib-input-has-icon"),t},attrs(){let t=Dn({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===vr.password?this.showPassword?"text":"password":this.type,t},hasErrorState(){return this.error||this.errorMessage.length}},watch:{value(t){this.actualValue=t},modelValue(t){this.actualValue=t},disabled(t){this.$globalEvents.$emit(`label:disabled:${this.id}`,t)}},emits:["input","blur","focus","clear","update:modelValue",`label:disabled:${globalThis==null?void 0:globalThis.id}`],components:{IbAlert:It,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln},inheritAttrs:!1},ls=["aria-invalid","readonly","disabled","id"],ss={class:"settings-wrapper"};function ds(t,n,e,o,a,r){var p,u;const d=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),f=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",null,[e.errorMessage?(i.openBlock(),i.createBlock(d,{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ib-input-wrapper",{"has-settings":r.hasSettings}])},[e.showIcon?(i.openBlock(),i.createBlock(s,{key:0,class:"icon-search",name:"search-outline"})):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("input",i.mergeProps(r.attrs,{"onUpdate:modelValue":n[0]||(n[0]=l=>a.actualValue=l),ref:"field","aria-invalid":!!r.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,class:r.classes,onInput:n[1]||(n[1]=l=>r.onInput(l)),onBlur:n[2]||(n[2]=l=>r.onBlur(l)),onFocus:n[3]||(n[3]=l=>r.onFocus(l))}),null,16,ls),[[i.vModelDynamic,a.actualValue]]),e.type!=="password"&&e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(f,{key:1,kind:"ghost",class:"button-clear",disabled:e.readonly||e.disabled,"help-text":e.clearButtonMessage,"prevent-default":"",type:"button",onClick:r.clearInput,onKeypress:i.withKeys(r.clearInput,["enter"])},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["disabled","help-text","onClick","onKeypress"])),[[i.vShow,(p=a.actualValue)==null?void 0:p.length]]):i.createCommentVNode("",!0),e.type==="password"?i.withDirectives((i.openBlock(),i.createBlock(f,{key:2,kind:"ghost",class:"toggle-password","prevent-default":"",type:"button",disabled:e.readonly||e.disabled,"help-text":a.showPassword?e.hidePasswordMessage:e.showPasswordMessage,onClick:i.withModifiers(r.toggleShowPassword,["prevent"])},{default:i.withCtx(()=>[i.createVNode(s,{name:a.showPassword?"eye-off-outline":"eye-outline"},null,8,["name"])]),_:1},8,["disabled","help-text","onClick"])),[[i.vShow,(u=a.actualValue)==null?void 0:u.length]]):i.createCommentVNode("",!0),r.hasSettings?(i.openBlock(),i.createBlock(h,{key:3,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:i.withCtx(()=>[i.createVNode(f,{"prevent-default":"","help-text":e.settingsButtonMessage,class:"options-trigger",kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(s,{name:"options"})]),_:1},8,["help-text"])]),body:i.withCtx(()=>[i.createElementVNode("div",ss,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const br=_e(as,[["render",ds],["__scopeId","data-v-ea1e952e"]]),p1="",cs={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return ht()}},value:{default:1},modelValue:{type:Boolean},isChecked:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFocus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"}},watch:{isChecked(t){this.checked=t},modelValue(t){this.$emit("update:modelValue",this.modelValue),this.checked=t}},data(){return{checked:this.modelValue?this.modelValue:this.isChecked}},methods:{onChange(){this.readonly||(this.checked=!this.checked,this.$emit("update:modelValue",this.checked),this.$emit("input",this.checked))}},computed:{classes(){return{"ib-checkbox":!0,"ib-has-error":this.error,"ib-checkbox-filled":this.checked,"ib-checkbox-disabled":this.disabled,"ib-checkbox-readonly":this.readonly,"ib-checkbox-indeterminate":this.indeterminate}},indeterminate(){return this.isChecked===null},attrs(){const t={...Dn({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Le},inheritAttrs:!1},us=["aria-checked"],fs=["for","tabindex"],hs=["name","id","value","disabled","required"],ps={class:"ib-checkbox-body"},ms={key:0,class:"required"},gs={class:"ib-checkbox-input"},ys={key:1,class:"ib-checkbox-label"},vs={key:0,class:"required"};function bs(t,n,e,o,a,r){var s;const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{role:"checkbox",class:i.normalizeClass(["ib-checkbox-wrapper",this.$attrs.class]),"aria-checked":!!a.checked},[i.createElementVNode("label",i.mergeProps(r.attrs,{for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,onKeypress:n[2]||(n[2]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]))}),[i.withDirectives(i.createElementVNode("input",{tabindex:"-1",type:"checkbox",name:e.name,id:e.id,value:e.value,disabled:e.disabled,required:e.required,"onUpdate:modelValue":n[0]||(n[0]=f=>a.checked=f),onClick:n[1]||(n[1]=(...f)=>r.onChange&&r.onChange(...f))},null,8,hs),[[i.vModelCheckbox,a.checked]]),i.createElementVNode("div",ps,[e.labelPosition==="left"&&e.label.length?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["ib-checkbox-label",{"ib-checkbox-label-left":e.labelPosition==="left"}])},[e.required?(i.openBlock(),i.createElementBlock("span",ms,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",gs,[i.withDirectives(i.createVNode(d,{name:"checkmark-sharp"},null,512),[[i.vShow,a.checked&&!r.indeterminate]]),i.withDirectives(i.createVNode(d,{class:i.normalizeClass("checkbox-undeterminate-icon"),name:"remove-sharp"},null,512),[[i.vShow,r.indeterminate]])]),e.labelPosition==="right"&&((s=e.label)!=null&&s.length)?(i.openBlock(),i.createElementBlock("span",ys,[e.required?(i.openBlock(),i.createElementBlock("span",vs,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,fs)],10,us)}const _r=_e(cs,[["render",bs]]),m1="",_s={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>ht()},disabled:{type:Boolean,default:!1},name:{type:String,default:"active"},label:{type:String,default:""},error:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},helpMessage:{type:String,default:""},helpMessageOff:{type:String,default:""}},watch:{isChecked(t){this.checked=t}},data(){return{checked:this.isChecked}},methods:{onChange(){this.disabled||(this.checked=!this.checked,this.$emit("input",this.checked))}},computed:{classes(){return{"ib-toggle-container":!0,"has-error":this.error,"toggle-on":this.checked,"toggle-disabled":this.disabled,"label-position-left":this.labelPosition==="left"}}},components:{IbIcon:Le,IbTooltip:jt}},$s=["aria-checked","tabindex"],ws={class:"toggle-wrapper",ref:"wrapper"},ks={class:"toggle",ref:"toggle"},Cs=["name","checked","id","disabled"],Os=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),Es={key:0,class:"toggle-label"};function Ss(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip");return i.openBlock(),i.createElementBlock("label",{role:"switch","aria-checked":a.checked,tabindex:e.disabled?-1:0,class:i.normalizeClass(r.classes),onKeypress:[n[2]||(n[2]=i.withKeys(i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]),["space"])),n[3]||(n[3]=i.withKeys(i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]),["enter"]))]},[i.createElementVNode("div",ws,[i.createElementVNode("div",ks,[i.createElementVNode("input",{tabindex:"-1",type:"checkbox",value:"1",name:e.name,checked:a.checked,id:e.id,disabled:e.disabled,onClick:n[0]||(n[0]=(...f)=>r.onChange&&r.onChange(...f)),onInput:n[1]||(n[1]=i.withModifiers(()=>{},["stop"]))},null,40,Cs),Os,i.createVNode(d,{class:"checked-icon",name:"checkmark"}),i.createVNode(d,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(i.openBlock(),i.createElementBlock("span",Es,i.toDisplayString(e.label),1)):i.createCommentVNode("",!0),e.helpMessage.length?(i.openBlock(),i.createBlock(s,{key:1,text:a.checked?e.helpMessage:e.helpMessageOff.length?e.helpMessageOff:e.helpMessage},null,8,["text"])):i.createCommentVNode("",!0)],42,$s)}const Di=_e(_s,[["render",Ss]]);function Ii(t){return t.scrollHeight>t.clientHeight}const g1="",Ts={name:"select-option",props:{option:{type:Object},name:String,parentAutoCheck:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:!0},uid:{type:String,default:""},onlyEndNodes:{type:Boolean,default:!1},htmlTitle:{type:Boolean,default:!1},showInput:{type:Boolean,default:!0},isBookmarkable:{type:Boolean,default:!1},isBookmarked:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1}},mounted(){this.option.hasOwnProperty("children")&&this.option.children&&this.checkParent()},updated(){this.$nextTick(()=>{Ii(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1}},methods:{onKeydown(t){t.keyCode===ki&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===za&&(this.option.isChildrenVisible=!0),t.keyCode===Ha&&(this.option.isChildrenVisible=!1))},onChange(){var t,n;!this.isMultiple&&!this.isChecked(this.option)&&((t=this.$refs.component)==null||t.onChange()),this.isMultiple&&((n=this.$refs.component)==null||n.onChange())},toggle(t,n=!0){this.check(this.option,t,!0,n)},check(t,n,e,o){this.$emit("check",t,n,e),o&&t.children&&t.children.forEach(a=>{this.check(a,n,!1,!0)})},toggleChildrenVisibility(){this.option.isChildrenVisible=!this.option.isChildrenVisible},checkChildren(t,n,e){e&&this.isMultiple&&this.$nextTick(()=>{this.checkParent()}),this.$emit("check",t,n,!1)},checkParent(){const t=this.option.children.filter(e=>e.checked).length,n=t>=this.option.children.length;(!this.option.checked&&n&&this.parentAutoCheck||this.option.checked&&!n)&&this.toggle(!this.option.checked,!1)},calculateChildren(t,n,e=!1){let o=0;return t.children&&t.children.forEach(a=>{(!n||n(a))&&o++,e&&(o+=this.calculateChildren(a,n,e))}),o},isChecked(t){if(this.hasChildren)if(this.childrenSelectedCount){if(this.childrenSelectedCount>0&&this.countOfAllChildren>this.childrenSelectedCount)return null}else return!1;return t.checked?!0:t.isIndeterminate?null:!1}},computed:{component(){return this.isMultiple&&this.isToggle?Di:_r},hasChildren(){return!!(this.option.children&&this.option.children.length)},hasVisibleChildren(){return this.calculateChildren(this.option,t=>t.visible)},iconName(){return this.option.isChildrenVisible?"chevron-down":"chevron-forward"},id(){return this.uid+"_"+this.option.id},actualName(){return this.onlyEndNodes&&this.option.children&&this.option.children.length?"":this.name},childrenSelectedCount(){return this.calculateChildren(this.option,t=>t.checked,!0)},countOfAllChildren(){return this.calculateChildren(this.option,()=>!0,!0)}},components:{IbIcon:Le,List:mr,IbIconButton:ut},directives:{Tooltip:yr}},Ns=["aria-selected","aria-label","id"],xs={key:0,class:"option-label"},As={key:1,class:"option-label"},Ds=["innerHTML"],Is=["innerHTML"],Ms={key:2,class:"option-label"};function Ps(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),f=i.resolveComponent("select-option"),h=i.resolveComponent("list"),p=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("li",null,[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tree-select-option",{"tree-select-option-checked":r.isChecked(e.option),"tree-select-option-margin":r.hasVisibleChildren,active:e.option.isChildrenVisible,"is-multiple":e.isMultiple,"is-not-multiple":!e.isMultiple,"tree-select-option-toggle":this.isToggle&&this.isMultiple}]),tabindex:"0",role:"option","aria-selected":r.isChecked(e.option),"aria-label":e.option.title,id:"option-"+r.id,onKeydown:n[3]||(n[3]=i.withModifiers((...u)=>r.onKeydown&&r.onKeydown(...u),["self"])),onFocus:n[4]||(n[4]=u=>t.$emit("onFocus",`option-${r.id}`))},[i.withDirectives(i.createVNode(s,{"disabled-focus":!0,kind:"ghost",class:"toggle-children",onClick:r.toggleChildrenVisibility},{default:i.withCtx(()=>[i.createVNode(d,{name:r.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[i.vShow,r.hasVisibleChildren]]),i.createElementVNode("div",{onClick:n[1]||(n[1]=i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent"])),class:i.normalizeClass({disabled:e.option.isDisabled,"tree-select-option-label":!0,"tree-select-option-has-children":r.hasVisibleChildren,active:!e.showInput&&e.option.checked})},[i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),{ref:"component",tabindex:"-1","disable-focus":"","aria-label":e.option.title,name:r.actualName,value:e.option.id,id:"input"+r.id,"is-checked":r.isChecked(e.option),disabled:e.option.isDisabled,readonly:e.option.readonly,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:r.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","readonly","onInput"])),[[i.vShow,e.showInput]]),e.isBookmarkable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass("bookmarkable-option-title "+(e.isBookmarked?"bookmarked":""))},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",As,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",xs,[i.createTextVNode(i.toDisplayString(e.option.title)+" ",1),i.createVNode(d,{name:"star",onClick:n[0]||(n[0]=i.withModifiers(u=>t.$emit("toggle-bookmark",e.option),["stop","prevent"]))})]))],2)):e.htmlTitle?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",{key:1,class:"option-label",innerHTML:e.option.title},null,8,Is)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,Ds))],64)):(i.openBlock(),i.createElementBlock("span",Ms,i.toDisplayString(e.option.title),1))],2),r.hasChildren?i.withDirectives((i.openBlock(),i.createBlock(h,{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.option.children,u=>i.withDirectives((i.openBlock(),i.createBlock(f,{key:u.value,option:u,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:r.checkChildren,onToggleBookmark:n[2]||(n[2]=l=>t.$emit("toggle-bookmark",l)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[i.vShow,u.visible]])),128))]),_:1},512)),[[i.vShow,r.hasVisibleChildren&&e.option.isChildrenVisible]]):i.createCommentVNode("",!0)],42,Ns)),[[p,a.showTooltip?e.option.title:""]])])}const Bs=_e(Ts,[["render",Ps]]);var qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Mi={exports:{}};/*!***************************************************
21
+ top: ${o-p+u-5}px!important`;break}return l}getClassList(n){return n?hr[n]:hr.topCenter}}const Vt=new Ni,Vl=(t,n)=>{var a;Vt.getTooltipContainer()&&Vt.destroyTooltip();const e=Object.keys(n.modifiers)[0]||n.arg,o={title:((a=n.value)==null?void 0:a.title)||"",text:typeof n.value=="object"?n.value.text:n.value};Vt.createTooltip(t,o,e)},ql=(t,n)=>{const e=Vt.getId();if(n.getAttribute("aria-describedby")!==e)return;const o=Vt.getTooltipContainer(),a=n!==t.target&&!n.contains(t.target),r=o!==t.target&&!(o!=null&&o.contains(t.target));a&&r&&Vt.destroyTooltip(n)},xi=(t,n)=>{t.__tooltip_create=()=>Vl(t,n),t.__tooltip_destroy=e=>ql(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy)},Ai=t=>{Vt.destroyTooltip(t),t.removeEventListener("mouseenter",t.__tooltip_create),document.removeEventListener("mousemove",t.__tooltip_destroy)},yr={mounted(t,n){xi(t,n)},updated(t,n){Ai(t),xi(t,n)},beforeUnmount(t){Ai(t)}},c1="",Fl={name:"IbSorting",props:{tooltipTitle:{type:String,default:""},hideSortingButton:{type:Boolean,default:!1},tooltipText:{type:String},tooltipPosition:{type:String},tooltipIconPosition:{type:String},tooltipIconSorting:{type:String},toggleTipTitle:{type:String},title:{type:String,default:""},sort:{type:String,default:null},view:{type:String,required:!0},disable:{type:Boolean,default:!1},tableName:{type:String,required:!0}},mounted(){this.$globalEvents.$on(`sorting:update:${this.tableName}`,t=>{this.$el.contains(t.$el)||(this.currentTypeSort=null)})},data(){return{isOpenToggleTip:!1,sortingTypes:jl,sortingTypesView:Rl,currentTypeSort:this.sort}},methods:{clickHandler(){this.currentTypeSort?this.currentTypeSort===this.sortingTypes.TYPE_ASC?this.currentTypeSort=this.sortingTypes.TYPE_DESC:this.currentTypeSort=null:this.currentTypeSort=this.sortingTypes.TYPE_ASC,this.updateTypeSorting()},updateTypeSorting(){this.$globalEvents.$emit(`sorting:update:${this.tableName}`,this),this.$emit("update-sorting",this.currentTypeSort)}},computed:{iconType(){return this.currentTypeSort===this.sortingTypes.TYPE_ASC?"arrow-up":this.currentTypeSort===this.sortingTypes.TYPE_DESC?"arrow-down":this.view!==this.sortingTypesView.GRID_VIEW?"swap-vertical":null},sortingTooltipPosition(){return this.hasToggleTip?"bottomCenter":this.tooltipPosition},sortingTooltipContent(){var t;return this.hasToggleTip?lang("click_to_view_details",(t=this.langComponents)==null?void 0:t.COMPONENT_SYSTEM):this.tooltipContent},tooltipIconText(){var t,n,e;return this.currentTypeSort===this.sortingTypes.TYPE_ASC?lang("sort_descending",(t=this.langComponents)==null?void 0:t.COMPONENT_SELECT):this.currentTypeSort===this.sortingTypes.TYPE_DESC?lang("reset_sorting",(n=this.langComponents)==null?void 0:n.COMPONENT_SELECT):this.view!==this.sortingTypesView.GRID_VIEW?lang("sort_ascending",(e=this.langComponents)==null?void 0:e.COMPONENT_SELECT):""},tooltipContent(){return this.tooltipTitle.length?{title:this.tooltipTitle,text:this.tooltipText}:this.tooltipText},hasToggleTip(){return this.toggleTipTitle&&this.$slots.toggleTipBody&&this.$slots.toggleTipButtons}},directives:{Tooltip:yr},components:{IbIcon:Le,IbIconButton:ut,IbToggleTip:wi}},Hl={class:"sorting-wrapper"},zl=["name"],Ul=["aria-label"];function Kl(t,n,e,o,a,r){var p;const d=i.resolveComponent("ib-toggle-tip"),s=i.resolveComponent("ib-icon-button"),f=i.resolveComponent("ib-icon"),h=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("div",Hl,[e.view===a.sortingTypesView.TABLE_VIEW?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["table-sorting-wrapper",{active:a.currentTypeSort,disabled:e.disable}])},[i.createElementVNode("div",null,[i.withDirectives((i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(["sorting-label",{"sorting-label-active":a.isOpenToggleTip&&r.hasToggleTip,"has-action":((p=e.tooltipText)==null?void 0:p.length)||r.hasToggleTip}]),type:"button",onClick:n[0]||(n[0]=u=>a.isOpenToggleTip=!a.isOpenToggleTip)},[i.createTextVNode(i.toDisplayString(e.title),1)],2)),[[h,r.sortingTooltipContent,r.sortingTooltipPosition]]),r.hasToggleTip?(i.openBlock(),i.createBlock(d,{key:0,position:"bottom-center","is-open":a.isOpenToggleTip,title:e.toggleTipTitle,onClose:n[1]||(n[1]=u=>a.isOpenToggleTip=!1)},{buttons:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipButtons",{},void 0,!0)]),default:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipBody",{},void 0,!0)]),_:3},8,["is-open","title"])):i.createCommentVNode("",!0)]),e.hideSortingButton?i.createCommentVNode("",!0):i.withDirectives((i.openBlock(),i.createBlock(s,{key:0,kind:"white",size:"s",onClick:r.clickHandler},{default:i.withCtx(()=>[i.createElementVNode("ion-icon",{name:r.iconType},null,8,zl)]),_:1},8,["onClick"])),[[h,r.tooltipIconText,e.tooltipIconPosition]])],2)):i.withDirectives((i.openBlock(),i.createElementBlock("button",{key:1,class:i.normalizeClass(["sorting-button",{active:a.currentTypeSort,disabled:e.disable}]),type:"button",onClick:n[2]||(n[2]=(...u)=>r.clickHandler&&r.clickHandler(...u)),"aria-label":e.sort},[i.createTextVNode(i.toDisplayString(e.title)+" ",1),r.iconType?(i.openBlock(),i.createBlock(f,{key:0,name:r.iconType},null,8,["name"])):i.createCommentVNode("",!0)],10,Ul)),[[h,e.tooltipText,e.tooltipPosition]])])}const Gl=_e(Fl,[["render",Kl],["__scopeId","data-v-a4394881"]]),u1="",Yl={name:"IbBreadcrumbs",props:{items:{type:Array,default:()=>[]},tooltipTextContext:{type:String}},computed:{last(){return this.items.length?this.items.length-1:null},initContextMenu(){return this.items.length>4},setItemsContextMenu(){return this.items.slice(0,-3)}},components:{IbIcon:Le,IbIconButton:ut,IbDropdownItem:gr,IbDropdownList:Rn,IbTooltip:jt}},Wl={"aria-label":"breadcrumb"},Zl={class:"breadcrumb"},Jl=["href"],Xl={key:1},Ql=["href"];function es(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown-item"),p=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("nav",Wl,[i.createElementVNode("ul",Zl,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(u,l)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(["breadcrumb-item",l===r.last?"active":""]),"aria-current":"page",key:l},[l!==r.last&&l>e.items.length-4||l===0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ib-link",href:u.url},i.toDisplayString(u.title),9,Jl)):i.createCommentVNode("",!0),l===r.last?(i.openBlock(),i.createElementBlock("p",Xl,i.toDisplayString(u.title),1)):i.createCommentVNode("",!0),r.initContextMenu&&l===e.items.length-4?(i.openBlock(),i.createBlock(p,{key:2,horizontal:"center"},{trigger:i.withCtx(()=>[i.createVNode(f,{kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(d,{name:"ellipsis-horizontal-sharp"}),e.tooltipTextContext?(i.openBlock(),i.createBlock(s,{key:0,text:e.tooltipTextContext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1})]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.setItemsContextMenu,(c,_)=>(i.openBlock(),i.createBlock(h,{key:_},{default:i.withCtx(()=>[i.createElementVNode("a",{class:"context-breadcrums",href:c.url},i.toDisplayString(c.title),9,Ql)]),_:2},1024))),128))]),_:2},1024)):i.createCommentVNode("",!0),l!==r.last&&l>e.items.length-5||l===0?(i.openBlock(),i.createBlock(d,{key:3,name:"chevron-forward-outline"})):i.createCommentVNode("",!0)],2))),128))])])}const ts=_e(Yl,[["render",es],["__scopeId","data-v-5ef772a9"]]),f1="",ns={name:"IbLabel",props:{for:{type:String},required:{type:Boolean,default:!1},infoText:{type:String,default:""},tooltipPosition:{type:String}},mounted(){this.$globalEvents.$on(`label:disabled:${this.for}`,t=>{this.disabled=t})},data(){return{disabled:!1}},computed:{classes(){const t=["ib-label"];return this.infoText.length&&t.push("has-info-text"),this.disabled&&t.push("label-disabled"),t}},components:{IbIconButton:ut,IbIcon:Le,IbTooltip:jt}},rs=["for"],is={key:0,class:"required"};function os(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(r.classes),for:e.for},[e.required?(i.openBlock(),i.createElementBlock("span",is,"* ")):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length?(i.openBlock(),i.createBlock(f,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:i.withCtx(()=>[i.createVNode(d,{name:"information-circle-outline"}),i.createVNode(s,{text:e.infoText,position:e.tooltipPosition},null,8,["text","position"])]),_:1})):i.createCommentVNode("",!0)],10,rs)}const dn=_e(ns,[["render",os],["__scopeId","data-v-3e867259"]]),vr={text:"text",password:"password",email:"email",number:"number"},h1="",as={name:"IbInput",props:{type:{type:String,default:vr.text,validator:t=>Object.keys(vr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return ht()}},debounce:{type:[Number,String]},showIcon:{type:Boolean,default:!1},showClearButton:{type:Boolean,default:!0},clearButtonMessage:{type:String,default:""},settingsButtonMessage:{type:String,default:""},showPasswordMessage:{type:String,default:""},hidePasswordMessage:{type:String,default:""},value:{type:[String,Number],default:""},modelValue:{type:[String,Number]},settingsVerticalPosition:{type:String,default:Bn.bottom},settingsHorizontalPosition:{type:String,default:sn.right},readonly:{type:Boolean,default:!1}},data(){return{actualValue:this.modelValue||this.value,showPassword:!1}},mounted(){setTimeout(()=>{this.$globalEvents.$emit(`label:disabled:${this.id}`,this.disabled)},10)},methods:{toggleShowPassword(){this.showPassword=!this.showPassword},clearInput(){this.actualValue="",this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue),this.$emit("clear")},onBlur(){this.$emit("blur",this.actualValue)},onFocus(){this.$emit("focus",this.actualValue)},onInput(){this.debounce?this.delayedInput(this.actualValue):(this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue))},delayedInput(t){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.$emit("update:modelValue",t),this.$emit("input",t)},this.debounce)},focus(){this.$refs.field.focus()}},computed:{hasSettings(){return!!this.$slots.settings},classes(){const t=["ib-input"];return this.hasErrorState&&t.push("ib-error"),this.showIcon&&t.push("ib-input-has-icon"),t},attrs(){let t=Dn({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===vr.password?this.showPassword?"text":"password":this.type,t},hasErrorState(){return this.error||this.errorMessage.length}},watch:{value(t){this.actualValue=t},modelValue(t){this.actualValue=t},disabled(t){this.$globalEvents.$emit(`label:disabled:${this.id}`,t)}},emits:["input","blur","focus","clear","update:modelValue",`label:disabled:${globalThis==null?void 0:globalThis.id}`],components:{IbAlert:It,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln},inheritAttrs:!1},ls=["aria-invalid","readonly","disabled","id"],ss={class:"settings-wrapper"};function ds(t,n,e,o,a,r){var p,u;const d=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),f=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",null,[e.errorMessage?(i.openBlock(),i.createBlock(d,{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ib-input-wrapper",{"has-settings":r.hasSettings}])},[e.showIcon?(i.openBlock(),i.createBlock(s,{key:0,class:"icon-search",name:"search-outline"})):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("input",i.mergeProps(r.attrs,{"onUpdate:modelValue":n[0]||(n[0]=l=>a.actualValue=l),ref:"field","aria-invalid":!!r.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,class:r.classes,onInput:n[1]||(n[1]=l=>r.onInput(l)),onBlur:n[2]||(n[2]=l=>r.onBlur(l)),onFocus:n[3]||(n[3]=l=>r.onFocus(l))}),null,16,ls),[[i.vModelDynamic,a.actualValue]]),e.type!=="password"&&e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(f,{key:1,kind:"ghost",class:"button-clear",disabled:e.readonly||e.disabled,"help-text":e.clearButtonMessage,"prevent-default":"",type:"button",onClick:r.clearInput,onKeypress:i.withKeys(r.clearInput,["enter"])},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["disabled","help-text","onClick","onKeypress"])),[[i.vShow,(p=a.actualValue)==null?void 0:p.length]]):i.createCommentVNode("",!0),e.type==="password"?i.withDirectives((i.openBlock(),i.createBlock(f,{key:2,kind:"ghost",class:"toggle-password","prevent-default":"",type:"button",disabled:e.readonly||e.disabled,"help-text":a.showPassword?e.hidePasswordMessage:e.showPasswordMessage,onClick:i.withModifiers(r.toggleShowPassword,["prevent"])},{default:i.withCtx(()=>[i.createVNode(s,{name:a.showPassword?"eye-off-outline":"eye-outline"},null,8,["name"])]),_:1},8,["disabled","help-text","onClick"])),[[i.vShow,(u=a.actualValue)==null?void 0:u.length]]):i.createCommentVNode("",!0),r.hasSettings?(i.openBlock(),i.createBlock(h,{key:3,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:i.withCtx(()=>[i.createVNode(f,{"prevent-default":"","help-text":e.settingsButtonMessage,class:"options-trigger",kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(s,{name:"options"})]),_:1},8,["help-text"])]),body:i.withCtx(()=>[i.createElementVNode("div",ss,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const br=_e(as,[["render",ds],["__scopeId","data-v-ea1e952e"]]),p1="",cs={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return ht()}},value:{default:1},modelValue:{type:Boolean},isChecked:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFocus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"}},watch:{isChecked(t){this.checked=t},modelValue(t){this.$emit("update:modelValue",this.modelValue),this.checked=t}},data(){return{checked:this.modelValue?this.modelValue:this.isChecked}},methods:{onChange(){this.readonly||(this.checked=!this.checked,this.$emit("update:modelValue",this.checked),this.$emit("input",this.checked))}},computed:{classes(){return{"ib-checkbox":!0,"ib-has-error":this.error,"ib-checkbox-filled":this.checked,"ib-checkbox-disabled":this.disabled,"ib-checkbox-readonly":this.readonly,"ib-checkbox-indeterminate":this.indeterminate}},indeterminate(){return this.isChecked===null},attrs(){const t={...Dn({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Le},inheritAttrs:!1},us=["aria-checked"],fs=["for","tabindex"],hs=["name","id","value","disabled","required"],ps={class:"ib-checkbox-body"},ms={key:0,class:"required"},gs={class:"ib-checkbox-input"},ys={key:1,class:"ib-checkbox-label"},vs={key:0,class:"required"};function bs(t,n,e,o,a,r){var s;const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{role:"checkbox",class:i.normalizeClass(["ib-checkbox-wrapper",this.$attrs.class]),"aria-checked":!!a.checked},[i.createElementVNode("label",i.mergeProps(r.attrs,{for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,onKeypress:n[2]||(n[2]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]))}),[i.withDirectives(i.createElementVNode("input",{tabindex:"-1",type:"checkbox",name:e.name,id:e.id,value:e.value,disabled:e.disabled,required:e.required,"onUpdate:modelValue":n[0]||(n[0]=f=>a.checked=f),onClick:n[1]||(n[1]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]))},null,8,hs),[[i.vModelCheckbox,a.checked]]),i.createElementVNode("div",ps,[e.labelPosition==="left"&&e.label.length?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["ib-checkbox-label",{"ib-checkbox-label-left":e.labelPosition==="left"}])},[e.required?(i.openBlock(),i.createElementBlock("span",ms,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",gs,[i.withDirectives(i.createVNode(d,{name:"checkmark-sharp"},null,512),[[i.vShow,a.checked&&!r.indeterminate]]),i.withDirectives(i.createVNode(d,{class:i.normalizeClass("checkbox-undeterminate-icon"),name:"remove-sharp"},null,512),[[i.vShow,r.indeterminate]])]),e.labelPosition==="right"&&((s=e.label)!=null&&s.length)?(i.openBlock(),i.createElementBlock("span",ys,[e.required?(i.openBlock(),i.createElementBlock("span",vs,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,fs)],10,us)}const _r=_e(cs,[["render",bs]]),m1="",_s={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>ht()},disabled:{type:Boolean,default:!1},name:{type:String,default:"active"},label:{type:String,default:""},error:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},helpMessage:{type:String,default:""},helpMessageOff:{type:String,default:""}},watch:{isChecked(t){this.checked=t}},data(){return{checked:this.isChecked}},methods:{onChange(){this.disabled||(this.checked=!this.checked,this.$emit("input",this.checked))}},computed:{classes(){return{"ib-toggle-container":!0,"has-error":this.error,"toggle-on":this.checked,"toggle-disabled":this.disabled,"label-position-left":this.labelPosition==="left"}}},components:{IbIcon:Le,IbTooltip:jt}},$s=["aria-checked","tabindex"],ws={class:"toggle-wrapper",ref:"wrapper"},ks={class:"toggle",ref:"toggle"},Cs=["name","checked","id","disabled"],Os=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),Es={key:0,class:"toggle-label"};function Ss(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip");return i.openBlock(),i.createElementBlock("label",{role:"switch","aria-checked":a.checked,tabindex:e.disabled?-1:0,class:i.normalizeClass(r.classes),onKeypress:[n[2]||(n[2]=i.withKeys(i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]),["space"])),n[3]||(n[3]=i.withKeys(i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]),["enter"]))]},[i.createElementVNode("div",ws,[i.createElementVNode("div",ks,[i.createElementVNode("input",{tabindex:"-1",type:"checkbox",value:"1",name:e.name,checked:a.checked,id:e.id,disabled:e.disabled,onClick:n[0]||(n[0]=(...f)=>r.onChange&&r.onChange(...f)),onInput:n[1]||(n[1]=i.withModifiers(()=>{},["stop"]))},null,40,Cs),Os,i.createVNode(d,{class:"checked-icon",name:"checkmark"}),i.createVNode(d,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(i.openBlock(),i.createElementBlock("span",Es,i.toDisplayString(e.label),1)):i.createCommentVNode("",!0),e.helpMessage.length?(i.openBlock(),i.createBlock(s,{key:1,text:a.checked?e.helpMessage:e.helpMessageOff.length?e.helpMessageOff:e.helpMessage},null,8,["text"])):i.createCommentVNode("",!0)],42,$s)}const Di=_e(_s,[["render",Ss]]);function Ii(t){return t.scrollHeight>t.clientHeight}const g1="",Ts={name:"select-option",props:{option:{type:Object},name:String,parentAutoCheck:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:!0},uid:{type:String,default:""},onlyEndNodes:{type:Boolean,default:!1},htmlTitle:{type:Boolean,default:!1},showInput:{type:Boolean,default:!0},isBookmarkable:{type:Boolean,default:!1},isBookmarked:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1}},mounted(){this.option.hasOwnProperty("children")&&this.option.children&&this.checkParent()},updated(){this.$nextTick(()=>{Ii(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1}},methods:{onKeydown(t){t.keyCode===ki&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===za&&(this.option.isChildrenVisible=!0),t.keyCode===Ha&&(this.option.isChildrenVisible=!1))},onChange(){var t,n;!this.isMultiple&&!this.isChecked(this.option)&&((t=this.$refs.component)==null||t.onChange()),this.isMultiple&&((n=this.$refs.component)==null||n.onChange())},toggle(t,n=!0){this.check(this.option,t,!0,n)},check(t,n,e,o){this.$emit("check",t,n,e),o&&t.children&&t.children.forEach(a=>{this.check(a,n,!1,!0)})},toggleChildrenVisibility(){this.option.isChildrenVisible=!this.option.isChildrenVisible},checkChildren(t,n,e){e&&this.isMultiple&&this.$nextTick(()=>{this.checkParent()}),this.$emit("check",t,n,!1)},checkParent(){const t=this.option.children.filter(e=>e.checked).length,n=t>=this.option.children.length;(!this.option.checked&&n&&this.parentAutoCheck||this.option.checked&&!n)&&this.toggle(!this.option.checked,!1)},calculateChildren(t,n,e=!1){let o=0;return t.children&&t.children.forEach(a=>{(!n||n(a))&&o++,e&&(o+=this.calculateChildren(a,n,e))}),o},isChecked(t){if(this.hasChildren)if(this.childrenSelectedCount){if(this.childrenSelectedCount>0&&this.countOfAllChildren>this.childrenSelectedCount)return null}else return!1;return t.checked?!0:t.isIndeterminate?null:!1}},computed:{component(){return this.isMultiple&&this.isToggle?Di:_r},hasChildren(){return!!(this.option.children&&this.option.children.length)},hasVisibleChildren(){return this.calculateChildren(this.option,t=>t.visible)},iconName(){return this.option.isChildrenVisible?"chevron-down":"chevron-forward"},id(){return this.uid+"_"+this.option.id},actualName(){return this.onlyEndNodes&&this.option.children&&this.option.children.length?"":this.name},childrenSelectedCount(){return this.calculateChildren(this.option,t=>t.checked,!0)},countOfAllChildren(){return this.calculateChildren(this.option,()=>!0,!0)}},components:{IbIcon:Le,List:mr,IbIconButton:ut},directives:{Tooltip:yr}},Ns=["aria-selected","aria-label","id"],xs={key:0,class:"option-label"},As={key:1,class:"option-label"},Ds=["innerHTML"],Is=["innerHTML"],Ms={key:2,class:"option-label"};function Ps(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),f=i.resolveComponent("select-option"),h=i.resolveComponent("list"),p=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("li",null,[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tree-select-option",{"tree-select-option-checked":r.isChecked(e.option),"tree-select-option-margin":r.hasVisibleChildren,active:e.option.isChildrenVisible,"is-multiple":e.isMultiple,"is-not-multiple":!e.isMultiple,"tree-select-option-toggle":this.isToggle&&this.isMultiple}]),tabindex:"0",role:"option","aria-selected":r.isChecked(e.option),"aria-label":e.option.title,id:"option-"+r.id,onKeydown:n[3]||(n[3]=i.withModifiers((...u)=>r.onKeydown&&r.onKeydown(...u),["self"])),onFocus:n[4]||(n[4]=u=>t.$emit("onFocus",`option-${r.id}`))},[i.withDirectives(i.createVNode(s,{"disabled-focus":!0,kind:"ghost",class:"toggle-children",onClick:r.toggleChildrenVisibility},{default:i.withCtx(()=>[i.createVNode(d,{name:r.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[i.vShow,r.hasVisibleChildren]]),i.createElementVNode("div",{onClick:n[1]||(n[1]=i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent"])),class:i.normalizeClass({disabled:e.option.isDisabled,"tree-select-option-label":!0,"tree-select-option-has-children":r.hasVisibleChildren,active:!e.showInput&&e.option.checked})},[i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),{ref:"component",tabindex:"-1","disable-focus":"","aria-label":e.option.title,name:r.actualName,value:e.option.id,id:"input"+r.id,"is-checked":r.isChecked(e.option),disabled:e.option.isDisabled,readonly:e.option.readonly,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:r.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","readonly","onInput"])),[[i.vShow,e.showInput]]),e.isBookmarkable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass("bookmarkable-option-title "+(e.isBookmarked?"bookmarked":""))},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",As,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",xs,[i.createTextVNode(i.toDisplayString(e.option.title)+" ",1),i.createVNode(d,{name:"star",onClick:n[0]||(n[0]=i.withModifiers(u=>t.$emit("toggle-bookmark",e.option),["stop","prevent"]))})]))],2)):e.htmlTitle?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",{key:1,class:"option-label",innerHTML:e.option.title},null,8,Is)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,Ds))],64)):(i.openBlock(),i.createElementBlock("span",Ms,i.toDisplayString(e.option.title),1))],2),r.hasChildren?i.withDirectives((i.openBlock(),i.createBlock(h,{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.option.children,u=>i.withDirectives((i.openBlock(),i.createBlock(f,{key:u.value,option:u,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:r.checkChildren,onToggleBookmark:n[2]||(n[2]=l=>t.$emit("toggle-bookmark",l)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[i.vShow,u.visible]])),128))]),_:1},512)),[[i.vShow,r.hasVisibleChildren&&e.option.isChildrenVisible]]):i.createCommentVNode("",!0)],42,Ns)),[[p,a.showTooltip?e.option.title:""]])])}const Bs=_e(Ts,[["render",Ps]]);var qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Mi={exports:{}};/*!***************************************************
22
22
  * mark.js v8.11.1
23
23
  * https://markjs.io/
24
24
  * Copyright (c) 2014–2018, Julian Kühnel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avakhula/ui",
3
- "version": "0.0.327",
3
+ "version": "0.0.329",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -6,6 +6,7 @@
6
6
  :tabindex="disabled | disableFocus ? -1 : 0"
7
7
  @keypress.prevent="onChange"
8
8
  >
9
+
9
10
  <input
10
11
  tabindex="-1"
11
12
  type="checkbox"
@@ -15,9 +16,8 @@
15
16
  :disabled="disabled"
16
17
  :required="required"
17
18
  v-model="checked"
18
- @click="onChange"
19
+ @click.prevent="onChange"
19
20
  />
20
- <!-- :checked="checked" -->
21
21
  <div class="ib-checkbox-body">
22
22
  <span
23
23
  v-if="labelPosition === 'left' && label.length"