@avakhula/ui 0.0.320 → 0.0.322

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 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";
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";
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 Qe = /* @__PURE__ */ Ae(_a, [["render", wa]]);
38
+ const Xe = /* @__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: Qe
89
+ IbIcon: Xe
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] = Xe((...l) => i.onClick && i.onClick(...l), ["prevent"]))
103
+ onClick: n[0] || (n[0] = et((...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: Qe,
541
+ IbIcon: Xe,
542
542
  IbIconButton: Nt
543
543
  }
544
544
  }, Ua = {
@@ -629,7 +629,7 @@ const Ja = {
629
629
  }
630
630
  },
631
631
  components: {
632
- IbIcon: Qe
632
+ IbIcon: Xe
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: Qe }
732
+ components: { IbIcon: Xe }
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: Qe
808
+ IbIcon: Xe
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: Xe(i.close, ["prevent"])
823
+ onClick: et(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] = Xe((...l) => i.toggle && i.toggle(...l), ["prevent", "stop"]))
1001
+ onClick: n[1] || (n[1] = et((...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: Qe,
1267
+ IbIcon: Xe,
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: Qe
1462
+ IbIcon: Xe
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: Qe
1570
+ IbIcon: Xe
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: Qe,
1992
+ IbIcon: Xe,
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: Qe,
2094
+ IbIcon: Xe,
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: Qe,
2190
+ IbIcon: Xe,
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: Qe,
2377
+ IbIcon: Xe,
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: Xe(i.toggleShowPassword, ["prevent"])
2440
+ onClick: et(i.toggleShowPassword, ["prevent"])
2441
2441
  }, {
2442
2442
  default: ye(() => [
2443
2443
  ge(l, {
@@ -2500,7 +2500,7 @@ const Ps = {
2500
2500
  default: 1
2501
2501
  },
2502
2502
  modelValue: {
2503
- type: [Boolean, Array]
2503
+ type: Boolean
2504
2504
  },
2505
2505
  isChecked: {
2506
2506
  type: Boolean,
@@ -2510,6 +2510,9 @@ const Ps = {
2510
2510
  type: Boolean,
2511
2511
  default: !1
2512
2512
  },
2513
+ modelValueList: {
2514
+ type: Array
2515
+ },
2513
2516
  disabled: {
2514
2517
  type: Boolean,
2515
2518
  default: !1
@@ -2533,11 +2536,18 @@ const Ps = {
2533
2536
  },
2534
2537
  modelValue(t) {
2535
2538
  this.$emit("update:modelValue", this.modelValue), this.checked = t;
2539
+ },
2540
+ modelValueList(t) {
2541
+ this.selectedList = t;
2542
+ },
2543
+ selectedList() {
2544
+ console.log("updated model value"), this.$emit("update:modelValueList", this.modelValue);
2536
2545
  }
2537
2546
  },
2538
2547
  data() {
2539
2548
  return {
2540
- checked: this.modelValue ? this.modelValue : this.isChecked
2549
+ checked: this.modelValue ? this.modelValue : this.isChecked,
2550
+ selectedList: this.modelValueList ? this.modelValueList : []
2541
2551
  };
2542
2552
  },
2543
2553
  methods: {
@@ -2565,7 +2575,7 @@ const Ps = {
2565
2575
  }
2566
2576
  },
2567
2577
  components: {
2568
- IbIcon: Qe
2578
+ IbIcon: Xe
2569
2579
  },
2570
2580
  inheritAttrs: !1
2571
2581
  }, Ms = ["aria-checked"], Ds = ["for", "tabindex"], Ls = ["name", "id", "value", "checked", "disabled", "required"], Rs = { class: "ib-checkbox-body" }, Bs = {
@@ -2589,7 +2599,7 @@ function Hs(t, n, e, r, o, i) {
2589
2599
  ae("label", Tt(i.attrs, {
2590
2600
  for: e.id,
2591
2601
  tabindex: e.disabled | e.disableFocus ? -1 : 0,
2592
- onKeypress: n[2] || (n[2] = Xe((...c) => i.onChange && i.onChange(...c), ["prevent"]))
2602
+ onKeypress: n[2] || (n[2] = et((...c) => i.onChange && i.onChange(...c), ["prevent"]))
2593
2603
  }), [
2594
2604
  De(ae("input", {
2595
2605
  tabindex: "-1",
@@ -2600,10 +2610,10 @@ function Hs(t, n, e, r, o, i) {
2600
2610
  checked: o.checked,
2601
2611
  disabled: e.disabled,
2602
2612
  required: e.required,
2603
- "onUpdate:modelValue": n[0] || (n[0] = (c) => o.checked = c),
2604
- onClick: n[1] || (n[1] = Xe((...c) => i.onChange && i.onChange(...c), ["prevent"]))
2613
+ "onUpdate:modelValue": n[0] || (n[0] = (c) => o.selectedList = c),
2614
+ onClick: n[1] || (n[1] = (...c) => i.onChange && i.onChange(...c))
2605
2615
  }, null, 8, Ls), [
2606
- [pa, o.checked]
2616
+ [pa, o.selectedList]
2607
2617
  ]),
2608
2618
  ae("div", Rs, [
2609
2619
  e.labelPosition === "left" && e.label.length ? (G(), ne("span", {
@@ -2703,7 +2713,7 @@ const Vs = {
2703
2713
  };
2704
2714
  }
2705
2715
  },
2706
- components: { IbIcon: Qe, IbTooltip: kn }
2716
+ components: { IbIcon: Xe, IbTooltip: kn }
2707
2717
  }, Us = ["aria-checked", "tabindex"], zs = {
2708
2718
  class: "toggle-wrapper",
2709
2719
  ref: "wrapper"
@@ -2722,8 +2732,8 @@ function Zs(t, n, e, r, o, i) {
2722
2732
  tabindex: e.disabled ? -1 : 0,
2723
2733
  class: ve(i.classes),
2724
2734
  onKeypress: [
2725
- n[2] || (n[2] = _t(Xe((...c) => i.onChange && i.onChange(...c), ["prevent"]), ["space"])),
2726
- n[3] || (n[3] = _t(Xe((...c) => i.onChange && i.onChange(...c), ["prevent"]), ["enter"]))
2735
+ n[2] || (n[2] = _t(et((...c) => i.onChange && i.onChange(...c), ["prevent"]), ["space"])),
2736
+ n[3] || (n[3] = _t(et((...c) => i.onChange && i.onChange(...c), ["prevent"]), ["enter"]))
2727
2737
  ]
2728
2738
  }, [
2729
2739
  ae("div", zs, [
@@ -2737,7 +2747,7 @@ function Zs(t, n, e, r, o, i) {
2737
2747
  id: e.id,
2738
2748
  disabled: e.disabled,
2739
2749
  onClick: n[0] || (n[0] = (...c) => i.onChange && i.onChange(...c)),
2740
- onInput: n[1] || (n[1] = Xe(() => {
2750
+ onInput: n[1] || (n[1] = et(() => {
2741
2751
  }, ["stop"]))
2742
2752
  }, null, 40, Gs),
2743
2753
  Ys,
@@ -2896,7 +2906,7 @@ const Xs = {
2896
2906
  }
2897
2907
  },
2898
2908
  components: {
2899
- IbIcon: Qe,
2909
+ IbIcon: Xe,
2900
2910
  List: Er,
2901
2911
  IbIconButton: Nt
2902
2912
  },
@@ -2928,7 +2938,7 @@ function ou(t, n, e, r, o, i) {
2928
2938
  "aria-selected": i.isChecked(e.option),
2929
2939
  "aria-label": e.option.title,
2930
2940
  id: "option-" + i.id,
2931
- onKeydown: n[3] || (n[3] = Xe((...d) => i.onKeydown && i.onKeydown(...d), ["self"])),
2941
+ onKeydown: n[3] || (n[3] = et((...d) => i.onKeydown && i.onKeydown(...d), ["self"])),
2932
2942
  onFocus: n[4] || (n[4] = (d) => t.$emit("onFocus", `option-${i.id}`))
2933
2943
  }, [
2934
2944
  De(ge(l, {
@@ -2945,7 +2955,7 @@ function ou(t, n, e, r, o, i) {
2945
2955
  [Ke, i.hasVisibleChildren]
2946
2956
  ]),
2947
2957
  ae("div", {
2948
- onClick: n[1] || (n[1] = Xe((...d) => i.onChange && i.onChange(...d), ["prevent"])),
2958
+ onClick: n[1] || (n[1] = et((...d) => i.onChange && i.onChange(...d), ["prevent"])),
2949
2959
  class: ve({
2950
2960
  disabled: e.option.isDisabled,
2951
2961
  "tree-select-option-label": !0,
@@ -2982,7 +2992,7 @@ function ou(t, n, e, r, o, i) {
2982
2992
  Ge($e(e.option.title) + " ", 1),
2983
2993
  ge(s, {
2984
2994
  name: "star",
2985
- onClick: n[0] || (n[0] = Xe((d) => t.$emit("toggle-bookmark", e.option), ["stop", "prevent"]))
2995
+ onClick: n[0] || (n[0] = et((d) => t.$emit("toggle-bookmark", e.option), ["stop", "prevent"]))
2986
2996
  })
2987
2997
  ]))
2988
2998
  ], 2)) : e.htmlTitle ? (G(), ne(tt, { key: 1 }, [
@@ -3951,7 +3961,7 @@ const uu = {
3951
3961
  components: {
3952
3962
  IbAlert: cn,
3953
3963
  IbIconButton: Nt,
3954
- IbIcon: Qe,
3964
+ IbIcon: Xe,
3955
3965
  IbDropdown: Cr,
3956
3966
  IbInput: jo,
3957
3967
  List: Er,
@@ -4148,7 +4158,7 @@ function fu(t, n, e, r, o, i) {
4148
4158
  "tree-choice-error": e.errorMessage
4149
4159
  }]),
4150
4160
  ref: "combobox",
4151
- onClick: n[2] || (n[2] = Xe(() => {
4161
+ onClick: n[2] || (n[2] = et(() => {
4152
4162
  }, ["prevent"])),
4153
4163
  onBlur: n[3] || (n[3] = (...b) => i.onBlur && i.onBlur(...b)),
4154
4164
  onKeyup: [
@@ -4175,12 +4185,12 @@ function fu(t, n, e, r, o, i) {
4175
4185
  key: 2,
4176
4186
  kind: "ghost",
4177
4187
  class: "button-clear",
4178
- onClick: Xe(i.clearValue, ["prevent"]),
4179
- onKeypress: n[0] || (n[0] = _t(Xe(() => {
4188
+ onClick: et(i.clearValue, ["prevent"]),
4189
+ onKeypress: n[0] || (n[0] = _t(et(() => {
4180
4190
  }, ["stop", "prevent"]), ["enter"])),
4181
- onKeydown: n[1] || (n[1] = _t(Xe(() => {
4191
+ onKeydown: n[1] || (n[1] = _t(et(() => {
4182
4192
  }, ["stop", "prevent"]), ["enter"])),
4183
- onKeyup: _t(Xe(i.clearValue, ["prevent"]), ["enter"]),
4193
+ onKeyup: _t(et(i.clearValue, ["prevent"]), ["enter"]),
4184
4194
  "help-text": e.clearButtonMessage
4185
4195
  }, {
4186
4196
  default: ye(() => [
@@ -4362,7 +4372,7 @@ const yu = {
4362
4372
  },
4363
4373
  components: {
4364
4374
  IbIconButton: Nt,
4365
- IbIcon: Qe,
4375
+ IbIcon: Xe,
4366
4376
  IbInput: jo,
4367
4377
  IbLabel: Ci,
4368
4378
  IbLimitSelector: vu,
@@ -4476,7 +4486,7 @@ const Eu = {
4476
4486
  }
4477
4487
  },
4478
4488
  components: {
4479
- IbIcon: Qe
4489
+ IbIcon: Xe
4480
4490
  }
4481
4491
  }, 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 = [
4482
4492
  xu
@@ -4774,7 +4784,7 @@ function rd(t, n, e, r, o, i) {
4774
4784
  class: ve(i.classes),
4775
4785
  for: e.id,
4776
4786
  "aria-checked": o.checked,
4777
- onClick: n[2] || (n[2] = Xe((...c) => i.onClick && i.onClick(...c), ["prevent"]))
4787
+ onClick: n[2] || (n[2] = et((...c) => i.onClick && i.onClick(...c), ["prevent"]))
4778
4788
  }, [
4779
4789
  ae("input", {
4780
4790
  type: "radio",
@@ -4784,7 +4794,7 @@ function rd(t, n, e, r, o, i) {
4784
4794
  checked: o.checked,
4785
4795
  disabled: e.disabled,
4786
4796
  ref: "radio",
4787
- onInput: n[0] || (n[0] = Xe(() => {
4797
+ onInput: n[0] || (n[0] = et(() => {
4788
4798
  }, ["stop"])),
4789
4799
  onChange: n[1] || (n[1] = (...c) => i.onChange && i.onChange(...c))
4790
4800
  }, null, 40, td),
@@ -6565,7 +6575,7 @@ const Cd = "single", lr = "range", Ed = {
6565
6575
  document.removeEventListener("keyup", this.onDocumentKeyDown);
6566
6576
  },
6567
6577
  components: {
6568
- IbIcon: Qe,
6578
+ IbIcon: Xe,
6569
6579
  IbLabel: Ci,
6570
6580
  IbAlert: cn
6571
6581
  }
@@ -10225,7 +10235,7 @@ function Yf(t, n, e, r, o, i) {
10225
10235
  placeholder: i.sortedCountries.length ? i.sortedCountries[0].name : "",
10226
10236
  type: "text",
10227
10237
  "onUpdate:modelValue": n[0] || (n[0] = (l) => o.searchQuery = l),
10228
- onClick: n[1] || (n[1] = Xe(() => {
10238
+ onClick: n[1] || (n[1] = et(() => {
10229
10239
  }, ["stop"]))
10230
10240
  }, null, 8, Uf)), [
10231
10241
  [Ao, o.searchQuery]
@@ -10312,7 +10322,7 @@ const Zf = {
10312
10322
  components: {
10313
10323
  VueTelInput: Wf,
10314
10324
  IbAlert: cn,
10315
- IbIcon: Qe
10325
+ IbIcon: Xe
10316
10326
  },
10317
10327
  data() {
10318
10328
  return {
@@ -18253,9 +18263,9 @@ _i.exports;
18253
18263
  if (yt)
18254
18264
  return yt;
18255
18265
  if (Re.set(_, je), !Ze)
18256
- var et = F ? zi(_) : Bn(_);
18257
- return J(et || _, function(ct, at) {
18258
- et && (at = ct, ct = _[at]), Zn(je, at, Pn(ct, N, F, ee, at, _, Re));
18266
+ var Qe = F ? zi(_) : Bn(_);
18267
+ return J(Qe || _, function(ct, at) {
18268
+ Qe && (at = ct, ct = _[at]), Zn(je, at, Pn(ct, N, F, ee, at, _, Re));
18259
18269
  }), je;
18260
18270
  }
18261
18271
  function Di(_) {
@@ -18699,13 +18709,13 @@ $i.exports;
18699
18709
  function qi(_, N, F, ee, Ne, be) {
18700
18710
  var Re = mn(_), je = mn(N), Ze = Re ? c : Rt(_), Ve = je ? c : Rt(N);
18701
18711
  Ze = Ze == l ? m : Ze, Ve = Ve == l ? m : Ve;
18702
- var dt = Ze == m, yt = Ve == m, et = Ze == Ve;
18703
- if (et && vn(_)) {
18712
+ var dt = Ze == m, yt = Ve == m, Qe = Ze == Ve;
18713
+ if (Qe && vn(_)) {
18704
18714
  if (!vn(N))
18705
18715
  return !1;
18706
18716
  Re = !0, dt = !1;
18707
18717
  }
18708
- if (et && !dt)
18718
+ if (Qe && !dt)
18709
18719
  return be || (be = new Lt()), Re || ri(_) ? Dn(_, N, F, ee, Ne, be) : Ui(_, N, Ze, F, ee, Ne, be);
18710
18720
  if (!(F & o)) {
18711
18721
  var ct = dt && Le.call(_, "__wrapped__"), at = yt && Le.call(N, "__wrapped__");
@@ -18714,7 +18724,7 @@ $i.exports;
18714
18724
  return be || (be = new Lt()), Ne(Jt, Gt, F, ee, be);
18715
18725
  }
18716
18726
  }
18717
- return et ? (be || (be = new Lt()), zi(_, N, F, ee, Ne, be)) : !1;
18727
+ return Qe ? (be || (be = new Lt()), zi(_, N, F, ee, Ne, be)) : !1;
18718
18728
  }
18719
18729
  function Fi(_) {
18720
18730
  if (!ii(_) || Wi(_))
@@ -18740,7 +18750,7 @@ $i.exports;
18740
18750
  var Ve = be.get(_);
18741
18751
  if (Ve && be.get(N))
18742
18752
  return Ve == N;
18743
- var dt = -1, yt = !0, et = F & i ? new hn() : void 0;
18753
+ var dt = -1, yt = !0, Qe = F & i ? new hn() : void 0;
18744
18754
  for (be.set(_, N), be.set(N, _); ++dt < je; ) {
18745
18755
  var ct = _[dt], at = N[dt];
18746
18756
  if (ee)
@@ -18751,10 +18761,10 @@ $i.exports;
18751
18761
  yt = !1;
18752
18762
  break;
18753
18763
  }
18754
- if (et) {
18764
+ if (Qe) {
18755
18765
  if (!ze(N, function(Gt, ln) {
18756
- if (!se(et, ln) && (ct === Gt || Ne(ct, Gt, F, ee, be)))
18757
- return et.push(ln);
18766
+ if (!se(Qe, ln) && (ct === Gt || Ne(ct, Gt, F, ee, be)))
18767
+ return Qe.push(ln);
18758
18768
  })) {
18759
18769
  yt = !1;
18760
18770
  break;
@@ -18806,8 +18816,8 @@ $i.exports;
18806
18816
  if (Ze != dt && !Re)
18807
18817
  return !1;
18808
18818
  for (var yt = Ze; yt--; ) {
18809
- var et = je[yt];
18810
- if (!(Re ? et in N : Le.call(N, et)))
18819
+ var Qe = je[yt];
18820
+ if (!(Re ? Qe in N : Le.call(N, Qe)))
18811
18821
  return !1;
18812
18822
  }
18813
18823
  var ct = be.get(_);
@@ -18816,15 +18826,15 @@ $i.exports;
18816
18826
  var at = !0;
18817
18827
  be.set(_, N), be.set(N, _);
18818
18828
  for (var Jt = Re; ++yt < Ze; ) {
18819
- et = je[yt];
18820
- var Gt = _[et], ln = N[et];
18829
+ Qe = je[yt];
18830
+ var Gt = _[Qe], ln = N[Qe];
18821
18831
  if (ee)
18822
- var Rr = Re ? ee(ln, Gt, et, N, _, be) : ee(Gt, ln, et, _, N, be);
18832
+ var Rr = Re ? ee(ln, Gt, Qe, N, _, be) : ee(Gt, ln, Qe, _, N, be);
18823
18833
  if (!(Rr === void 0 ? Gt === ln || Ne(Gt, ln, F, ee, be) : Rr)) {
18824
18834
  at = !1;
18825
18835
  break;
18826
18836
  }
18827
- Jt || (Jt = et == "constructor");
18837
+ Jt || (Jt = Qe == "constructor");
18828
18838
  }
18829
18839
  if (at && !Jt) {
18830
18840
  var oi = _.constructor, ai = N.constructor;
@@ -19990,7 +20000,7 @@ export {
19990
20000
  Do as IbDropdownItem,
19991
20001
  Tr as IbDropdownList,
19992
20002
  g1 as IbFormGroup,
19993
- Qe as IbIcon,
20003
+ Xe as IbIcon,
19994
20004
  Nt as IbIconButton,
19995
20005
  jo as IbInput,
19996
20006
  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,Array]},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("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","checked","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,checked:a.checked,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:{}};/*!***************************************************
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},modelValueList:{type:Array},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},modelValueList(t){this.selectedList=t},selectedList(){console.log("updated model value"),this.$emit("update:modelValueList",this.modelValue)}},data(){return{checked:this.modelValue?this.modelValue:this.isChecked,selectedList:this.modelValueList?this.modelValueList:[]}},methods:{onChange(){this.readonly||(this.checked=!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","checked","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,checked:a.checked,disabled:e.disabled,required:e.required,"onUpdate:modelValue":n[0]||(n[0]=f=>a.selectedList=f),onClick:n[1]||(n[1]=(...f)=>r.onChange&&r.onChange(...f))},null,8,hs),[[i.vModelCheckbox,a.selectedList]]),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.320",
3
+ "version": "0.0.322",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -15,8 +15,10 @@
15
15
  :checked="checked"
16
16
  :disabled="disabled"
17
17
  :required="required"
18
- @click.prevent="onChange"
18
+ v-model="selectedList"
19
+ @click="onChange"
19
20
  />
21
+
20
22
  <div class="ib-checkbox-body">
21
23
  <span
22
24
  v-if="labelPosition === 'left' && label.length"
@@ -84,6 +86,9 @@ export default {
84
86
  type: Boolean,
85
87
  default: false,
86
88
  },
89
+ modelValueList: {
90
+ type: Array,
91
+ },
87
92
  disabled: {
88
93
  type: Boolean,
89
94
  default: false,
@@ -109,10 +114,18 @@ export default {
109
114
  this.$emit("update:modelValue", this.modelValue);
110
115
  this.checked = value;
111
116
  },
117
+ modelValueList(newVal) {
118
+ this.selectedList = newVal;
119
+ },
120
+ selectedList() {
121
+ console.log('updated model value')
122
+ this.$emit("update:modelValueList", this.modelValue);
123
+ },
112
124
  },
113
125
  data() {
114
126
  return {
115
127
  checked: this.modelValue ? this.modelValue : this.isChecked,
128
+ selectedList: this.modelValueList ? this.modelValueList : [],
116
129
  };
117
130
  },
118
131
  methods: {