@avakhula/ui 0.0.500 → 0.0.502
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 +60 -59
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/assets/scss/mixins/dropdown-list-item.scss +0 -0
- package/src/components/Form/Checkbox/Checkbox.vue +1 -0
- package/src/components/Form/Radio/Radio.vue +0 -0
- package/src/components/IconButton/IconButton.vue +0 -0
- package/src/components/Popover/Popover.vue +0 -0
- package/src/components/Popover/popover.scss +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as G, createElementBlock as ne, normalizeStyle as In, normalizeClass as ve, resolveComponent as fe, createElementVNode as ae, withModifiers as
|
|
1
|
+
import { openBlock as G, createElementBlock as ne, normalizeStyle as In, normalizeClass as ve, resolveComponent as fe, createElementVNode as ae, withModifiers as Xe, renderSlot as Ee, createVNode as ge, Transition as Ri, withCtx as ye, withDirectives as De, vShow as Ke, createBlock as Ce, resolveDynamicComponent as Bi, mergeProps as Tt, Fragment as tt, renderList as Ut, createCommentVNode as he, toDisplayString as $e, resolveDirective as Pn, createSlots as oa, Teleport as el, createTextVNode as Ge, createApp as tl, vModelDynamic as aa, withKeys as $t, vModelCheckbox as nl, pushScopeId as jr, popScopeId as qr, vModelText as la, defineComponent as il, onMounted as rl, onBeforeUnmount as ol, ref as oo, watch as vr, nextTick as ao, h as al, createStaticVNode as ll } 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 dl(t, n, e, r, o, i) {
|
|
|
35
35
|
ref: "icon"
|
|
36
36
|
}, null, 14, ul);
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const Qe = /* @__PURE__ */ Ae(sl, [["render", dl]]);
|
|
39
39
|
function It() {
|
|
40
40
|
return "_" + Math.random().toString(36).substr(2, 9);
|
|
41
41
|
}
|
|
@@ -86,7 +86,7 @@ const cl = {
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
components: {
|
|
89
|
-
IbIcon:
|
|
89
|
+
IbIcon: Qe
|
|
90
90
|
}
|
|
91
91
|
}, fl = ["id", "aria-controls", "aria-expanded"], hl = ["id", "aria-labelledby"], pl = { class: "accordion-content-wrapper" };
|
|
92
92
|
function gl(t, n, e, r, o, i) {
|
|
@@ -100,7 +100,7 @@ function gl(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] =
|
|
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(a, {
|
|
@@ -1187,7 +1187,7 @@ const ls = {
|
|
|
1187
1187
|
(t = this.contentObserver) == null || t.disconnect(), window.removeEventListener("resize", () => this.checkHeight());
|
|
1188
1188
|
},
|
|
1189
1189
|
components: {
|
|
1190
|
-
IbIcon:
|
|
1190
|
+
IbIcon: Qe,
|
|
1191
1191
|
IbIconButton: Mt
|
|
1192
1192
|
}
|
|
1193
1193
|
}, ss = {
|
|
@@ -1278,7 +1278,7 @@ const gs = {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
},
|
|
1280
1280
|
components: {
|
|
1281
|
-
IbIcon:
|
|
1281
|
+
IbIcon: Qe
|
|
1282
1282
|
}
|
|
1283
1283
|
}, ms = ["src", "alt"];
|
|
1284
1284
|
function vs(t, n, e, r, o, i) {
|
|
@@ -1378,7 +1378,7 @@ const Os = {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
1380
|
},
|
|
1381
|
-
components: { IbIcon:
|
|
1381
|
+
components: { IbIcon: Qe }
|
|
1382
1382
|
};
|
|
1383
1383
|
function Cs(t, n, e, r, o, i) {
|
|
1384
1384
|
const a = fe("ib-icon");
|
|
@@ -1454,7 +1454,7 @@ const Es = {
|
|
|
1454
1454
|
},
|
|
1455
1455
|
components: {
|
|
1456
1456
|
IbIconButton: Mt,
|
|
1457
|
-
IbIcon:
|
|
1457
|
+
IbIcon: Qe
|
|
1458
1458
|
}
|
|
1459
1459
|
}, xs = { class: "ib-toggle-tip-head" }, Ts = { class: "ib-toggle-tip-content" }, Ss = { class: "ib-toggle-tip-button-set" };
|
|
1460
1460
|
function As(t, n, e, r, o, i) {
|
|
@@ -1469,7 +1469,7 @@ function As(t, n, e, r, o, i) {
|
|
|
1469
1469
|
ge(l, {
|
|
1470
1470
|
class: "close-button",
|
|
1471
1471
|
kind: "ghost",
|
|
1472
|
-
onClick:
|
|
1472
|
+
onClick: Xe(i.close, ["prevent"])
|
|
1473
1473
|
}, {
|
|
1474
1474
|
default: ye(() => [
|
|
1475
1475
|
ge(a, { name: "close-outline" })
|
|
@@ -1647,7 +1647,7 @@ function zs(t, n, e, r, o, i) {
|
|
|
1647
1647
|
class: ve(["dropdown-trigger", i.triggerClasses]),
|
|
1648
1648
|
ref: "dropdown",
|
|
1649
1649
|
onKeydown: n[0] || (n[0] = (...l) => i.onKeydown && i.onKeydown(...l)),
|
|
1650
|
-
onClick: n[1] || (n[1] =
|
|
1650
|
+
onClick: n[1] || (n[1] = Xe((...l) => i.toggle && i.toggle(...l), ["prevent", "stop"]))
|
|
1651
1651
|
}, [
|
|
1652
1652
|
Ee(t.$slots, "trigger", { isOpened: o.isOpenedState }, void 0, !0)
|
|
1653
1653
|
], 34)) : he("", !0),
|
|
@@ -1913,7 +1913,7 @@ const tu = {
|
|
|
1913
1913
|
};
|
|
1914
1914
|
},
|
|
1915
1915
|
components: {
|
|
1916
|
-
IbIcon:
|
|
1916
|
+
IbIcon: Qe,
|
|
1917
1917
|
IbDropdownList: Wr
|
|
1918
1918
|
},
|
|
1919
1919
|
methods: {
|
|
@@ -2108,7 +2108,7 @@ const uu = {
|
|
|
2108
2108
|
},
|
|
2109
2109
|
components: {
|
|
2110
2110
|
IbIconButton: Mt,
|
|
2111
|
-
IbIcon:
|
|
2111
|
+
IbIcon: Qe
|
|
2112
2112
|
},
|
|
2113
2113
|
beforeUnmount() {
|
|
2114
2114
|
this.isActive && this.close(), document.removeEventListener("keydown", this.onKeydown), document.removeEventListener("blur", this.setFocusOnModal, !0);
|
|
@@ -2216,7 +2216,7 @@ const hu = {
|
|
|
2216
2216
|
components: {
|
|
2217
2217
|
IbDropdownList: Wr,
|
|
2218
2218
|
IbDropdownItem: Ca,
|
|
2219
|
-
IbIcon:
|
|
2219
|
+
IbIcon: Qe
|
|
2220
2220
|
}
|
|
2221
2221
|
}, pu = { class: "wrapper-tab-link dropdown-tab" }, gu = ["tabindex"];
|
|
2222
2222
|
function mu(t, n, e, r, o, i) {
|
|
@@ -2651,7 +2651,7 @@ const Nu = {
|
|
|
2651
2651
|
},
|
|
2652
2652
|
directives: { Tooltip: xa },
|
|
2653
2653
|
components: {
|
|
2654
|
-
IbIcon:
|
|
2654
|
+
IbIcon: Qe,
|
|
2655
2655
|
IbIconButton: Mt,
|
|
2656
2656
|
IbToggleTip: Ns
|
|
2657
2657
|
}
|
|
@@ -2753,7 +2753,7 @@ const Lu = {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
},
|
|
2755
2755
|
components: {
|
|
2756
|
-
IbIcon:
|
|
2756
|
+
IbIcon: Qe,
|
|
2757
2757
|
IbIconButton: Mt,
|
|
2758
2758
|
IbDropdownItem: Ca,
|
|
2759
2759
|
IbDropdownList: Wr,
|
|
@@ -2849,7 +2849,7 @@ const Vu = {
|
|
|
2849
2849
|
},
|
|
2850
2850
|
components: {
|
|
2851
2851
|
IbIconButton: Mt,
|
|
2852
|
-
IbIcon:
|
|
2852
|
+
IbIcon: Qe,
|
|
2853
2853
|
IbTooltip: Mn
|
|
2854
2854
|
}
|
|
2855
2855
|
}, Uu = ["for"], zu = {
|
|
@@ -3036,7 +3036,7 @@ const Gu = {
|
|
|
3036
3036
|
components: {
|
|
3037
3037
|
IbAlert: bn,
|
|
3038
3038
|
IbIconButton: Mt,
|
|
3039
|
-
IbIcon:
|
|
3039
|
+
IbIcon: Qe,
|
|
3040
3040
|
IbDropdown: Kr
|
|
3041
3041
|
},
|
|
3042
3042
|
inheritAttrs: !1
|
|
@@ -3099,7 +3099,7 @@ function Zu(t, n, e, r, o, i) {
|
|
|
3099
3099
|
type: "button",
|
|
3100
3100
|
disabled: e.readonly || e.disabled,
|
|
3101
3101
|
"help-text": o.showPassword ? e.hidePasswordMessage : e.showPasswordMessage,
|
|
3102
|
-
onClick:
|
|
3102
|
+
onClick: Xe(i.toggleShowPassword, ["prevent"])
|
|
3103
3103
|
}, {
|
|
3104
3104
|
default: ye(() => [
|
|
3105
3105
|
ge(l, {
|
|
@@ -3231,7 +3231,7 @@ const Ju = {
|
|
|
3231
3231
|
}
|
|
3232
3232
|
},
|
|
3233
3233
|
components: {
|
|
3234
|
-
IbIcon:
|
|
3234
|
+
IbIcon: Qe
|
|
3235
3235
|
},
|
|
3236
3236
|
inheritAttrs: !1
|
|
3237
3237
|
}, Xu = ["aria-checked"], Qu = ["for", "tabindex"], ed = ["name", "id", "value", "disabled", "required"], td = { class: "ib-checkbox-body" }, nd = {
|
|
@@ -3255,7 +3255,8 @@ function ad(t, n, e, r, o, i) {
|
|
|
3255
3255
|
ae("label", Tt(i.attrs, {
|
|
3256
3256
|
for: e.id,
|
|
3257
3257
|
tabindex: e.disabled | e.disableFocus ? -1 : 0,
|
|
3258
|
-
|
|
3258
|
+
onClick: n[2] || (n[2] = Xe((...u) => i.onChange && i.onChange(...u), ["prevent", "stop"])),
|
|
3259
|
+
onKeypress: n[3] || (n[3] = Xe((...u) => i.onChange && i.onChange(...u), ["prevent"]))
|
|
3259
3260
|
}), [
|
|
3260
3261
|
De(ae("input", {
|
|
3261
3262
|
tabindex: "-1",
|
|
@@ -3368,7 +3369,7 @@ const ld = {
|
|
|
3368
3369
|
};
|
|
3369
3370
|
}
|
|
3370
3371
|
},
|
|
3371
|
-
components: { IbIcon:
|
|
3372
|
+
components: { IbIcon: Qe, IbTooltip: Mn }
|
|
3372
3373
|
}, sd = ["aria-checked", "tabindex"], ud = {
|
|
3373
3374
|
class: "toggle-wrapper",
|
|
3374
3375
|
ref: "wrapper"
|
|
@@ -3387,8 +3388,8 @@ function pd(t, n, e, r, o, i) {
|
|
|
3387
3388
|
tabindex: e.disabled ? -1 : 0,
|
|
3388
3389
|
class: ve(i.classes),
|
|
3389
3390
|
onKeypress: [
|
|
3390
|
-
n[2] || (n[2] = $t(
|
|
3391
|
-
n[3] || (n[3] = $t(
|
|
3391
|
+
n[2] || (n[2] = $t(Xe((...u) => i.onChange && i.onChange(...u), ["prevent"]), ["space"])),
|
|
3392
|
+
n[3] || (n[3] = $t(Xe((...u) => i.onChange && i.onChange(...u), ["prevent"]), ["enter"]))
|
|
3392
3393
|
]
|
|
3393
3394
|
}, [
|
|
3394
3395
|
ae("div", ud, [
|
|
@@ -3402,7 +3403,7 @@ function pd(t, n, e, r, o, i) {
|
|
|
3402
3403
|
id: e.id,
|
|
3403
3404
|
disabled: e.disabled,
|
|
3404
3405
|
onClick: n[0] || (n[0] = (...u) => i.onChange && i.onChange(...u)),
|
|
3405
|
-
onInput: n[1] || (n[1] =
|
|
3406
|
+
onInput: n[1] || (n[1] = Xe(() => {
|
|
3406
3407
|
}, ["stop"]))
|
|
3407
3408
|
}, null, 40, cd),
|
|
3408
3409
|
fd,
|
|
@@ -3561,7 +3562,7 @@ const md = {
|
|
|
3561
3562
|
}
|
|
3562
3563
|
},
|
|
3563
3564
|
components: {
|
|
3564
|
-
IbIcon:
|
|
3565
|
+
IbIcon: Qe,
|
|
3565
3566
|
List: Gr,
|
|
3566
3567
|
IbIconButton: Mt
|
|
3567
3568
|
},
|
|
@@ -3593,7 +3594,7 @@ function Od(t, n, e, r, o, i) {
|
|
|
3593
3594
|
"aria-selected": i.isChecked(e.option),
|
|
3594
3595
|
"aria-label": e.option.title,
|
|
3595
3596
|
id: "option-" + i.id,
|
|
3596
|
-
onKeydown: n[3] || (n[3] =
|
|
3597
|
+
onKeydown: n[3] || (n[3] = Xe((...c) => i.onKeydown && i.onKeydown(...c), ["self"])),
|
|
3597
3598
|
onFocus: n[4] || (n[4] = (c) => t.$emit("onFocus", `option-${i.id}`))
|
|
3598
3599
|
}, [
|
|
3599
3600
|
De(ge(l, {
|
|
@@ -3610,7 +3611,7 @@ function Od(t, n, e, r, o, i) {
|
|
|
3610
3611
|
[Ke, i.hasVisibleChildren]
|
|
3611
3612
|
]),
|
|
3612
3613
|
ae("div", {
|
|
3613
|
-
onClick: n[1] || (n[1] =
|
|
3614
|
+
onClick: n[1] || (n[1] = Xe((...c) => i.onChange && i.onChange(...c), ["prevent"])),
|
|
3614
3615
|
class: ve({
|
|
3615
3616
|
disabled: e.option.isDisabled,
|
|
3616
3617
|
"tree-select-option-label": !0,
|
|
@@ -3647,7 +3648,7 @@ function Od(t, n, e, r, o, i) {
|
|
|
3647
3648
|
Ge($e(e.option.title) + " ", 1),
|
|
3648
3649
|
ge(a, {
|
|
3649
3650
|
name: "star",
|
|
3650
|
-
onClick: n[0] || (n[0] =
|
|
3651
|
+
onClick: n[0] || (n[0] = Xe((c) => t.$emit("toggle-bookmark", e.option), ["stop", "prevent"]))
|
|
3651
3652
|
})
|
|
3652
3653
|
]))
|
|
3653
3654
|
], 2)) : e.htmlTitle ? (G(), ne(tt, { key: 1 }, [
|
|
@@ -4615,7 +4616,7 @@ const xd = {
|
|
|
4615
4616
|
components: {
|
|
4616
4617
|
IbAlert: bn,
|
|
4617
4618
|
IbIconButton: Mt,
|
|
4618
|
-
IbIcon:
|
|
4619
|
+
IbIcon: Qe,
|
|
4619
4620
|
IbDropdown: Kr,
|
|
4620
4621
|
IbInput: Ta,
|
|
4621
4622
|
List: Gr,
|
|
@@ -4812,7 +4813,7 @@ function Ad(t, n, e, r, o, i) {
|
|
|
4812
4813
|
"tree-choice-error": e.errorMessage
|
|
4813
4814
|
}]),
|
|
4814
4815
|
ref: "combobox",
|
|
4815
|
-
onClick: n[2] || (n[2] =
|
|
4816
|
+
onClick: n[2] || (n[2] = Xe(() => {
|
|
4816
4817
|
}, ["prevent"])),
|
|
4817
4818
|
onBlur: n[3] || (n[3] = (...b) => i.onBlur && i.onBlur(...b)),
|
|
4818
4819
|
onKeyup: [
|
|
@@ -4839,12 +4840,12 @@ function Ad(t, n, e, r, o, i) {
|
|
|
4839
4840
|
key: 2,
|
|
4840
4841
|
kind: "ghost",
|
|
4841
4842
|
class: "button-clear",
|
|
4842
|
-
onClick:
|
|
4843
|
-
onKeypress: n[0] || (n[0] = $t(
|
|
4843
|
+
onClick: Xe(i.clearValue, ["prevent"]),
|
|
4844
|
+
onKeypress: n[0] || (n[0] = $t(Xe(() => {
|
|
4844
4845
|
}, ["stop", "prevent"]), ["enter"])),
|
|
4845
|
-
onKeydown: n[1] || (n[1] = $t(
|
|
4846
|
+
onKeydown: n[1] || (n[1] = $t(Xe(() => {
|
|
4846
4847
|
}, ["stop", "prevent"]), ["enter"])),
|
|
4847
|
-
onKeyup: $t(
|
|
4848
|
+
onKeyup: $t(Xe(i.clearValue, ["prevent"]), ["enter"]),
|
|
4848
4849
|
"help-text": e.clearButtonMessage
|
|
4849
4850
|
}, {
|
|
4850
4851
|
default: ye(() => [
|
|
@@ -5026,7 +5027,7 @@ const Ld = {
|
|
|
5026
5027
|
},
|
|
5027
5028
|
components: {
|
|
5028
5029
|
IbIconButton: Mt,
|
|
5029
|
-
IbIcon:
|
|
5030
|
+
IbIcon: Qe,
|
|
5030
5031
|
IbInput: Ta,
|
|
5031
5032
|
IbLabel: Hi,
|
|
5032
5033
|
IbLimitSelector: Dd,
|
|
@@ -5140,7 +5141,7 @@ const Ud = {
|
|
|
5140
5141
|
}
|
|
5141
5142
|
},
|
|
5142
5143
|
components: {
|
|
5143
|
-
IbIcon:
|
|
5144
|
+
IbIcon: Qe
|
|
5144
5145
|
}
|
|
5145
5146
|
}, Ia = (t) => (jr("data-v-a0217859"), t = t(), qr(), t), zd = { class: "ib-progress-bar-wrapper" }, Kd = ["aria-label", "aria-valuenow"], Gd = /* @__PURE__ */ Ia(() => /* @__PURE__ */ ae("div", { class: "gradient" }, null, -1)), Wd = [
|
|
5146
5147
|
Gd
|
|
@@ -5438,7 +5439,7 @@ function wc(t, n, e, r, o, i) {
|
|
|
5438
5439
|
class: ve(i.classes),
|
|
5439
5440
|
for: e.id,
|
|
5440
5441
|
"aria-checked": o.checked,
|
|
5441
|
-
onClick: n[2] || (n[2] =
|
|
5442
|
+
onClick: n[2] || (n[2] = Xe((...u) => i.onClick && i.onClick(...u), ["prevent"]))
|
|
5442
5443
|
}, [
|
|
5443
5444
|
ae("input", {
|
|
5444
5445
|
type: "radio",
|
|
@@ -5448,7 +5449,7 @@ function wc(t, n, e, r, o, i) {
|
|
|
5448
5449
|
checked: o.checked,
|
|
5449
5450
|
disabled: e.disabled,
|
|
5450
5451
|
ref: "radio",
|
|
5451
|
-
onInput: n[0] || (n[0] =
|
|
5452
|
+
onInput: n[0] || (n[0] = Xe(() => {
|
|
5452
5453
|
}, ["stop"])),
|
|
5453
5454
|
onChange: n[1] || (n[1] = (...u) => i.onChange && i.onChange(...u))
|
|
5454
5455
|
}, null, 40, bc),
|
|
@@ -7229,7 +7230,7 @@ const Vc = "single", Cr = "range", Uc = {
|
|
|
7229
7230
|
document.removeEventListener("keyup", this.onDocumentKeyDown);
|
|
7230
7231
|
},
|
|
7231
7232
|
components: {
|
|
7232
|
-
IbIcon:
|
|
7233
|
+
IbIcon: Qe,
|
|
7233
7234
|
IbLabel: Hi,
|
|
7234
7235
|
IbAlert: bn
|
|
7235
7236
|
}
|
|
@@ -10981,7 +10982,7 @@ function w1(t, n, e, r, o, i) {
|
|
|
10981
10982
|
placeholder: i.sortedCountries.length ? i.sortedCountries[0].name : "",
|
|
10982
10983
|
type: "text",
|
|
10983
10984
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => o.searchQuery = l),
|
|
10984
|
-
onClick: n[1] || (n[1] =
|
|
10985
|
+
onClick: n[1] || (n[1] = Xe(() => {
|
|
10985
10986
|
}, ["stop"]))
|
|
10986
10987
|
}, null, 8, y1)), [
|
|
10987
10988
|
[la, o.searchQuery]
|
|
@@ -11068,7 +11069,7 @@ const C1 = {
|
|
|
11068
11069
|
components: {
|
|
11069
11070
|
VueTelInput: O1,
|
|
11070
11071
|
IbAlert: bn,
|
|
11071
|
-
IbIcon:
|
|
11072
|
+
IbIcon: Qe
|
|
11072
11073
|
},
|
|
11073
11074
|
data() {
|
|
11074
11075
|
return {
|
|
@@ -19009,9 +19010,9 @@ Di.exports;
|
|
|
19009
19010
|
if (bt)
|
|
19010
19011
|
return bt;
|
|
19011
19012
|
if (Re.set(_, je), !Ze)
|
|
19012
|
-
var
|
|
19013
|
-
return J(
|
|
19014
|
-
|
|
19013
|
+
var et = F ? sr(_) : Wn(_);
|
|
19014
|
+
return J(et || _, function(ct, at) {
|
|
19015
|
+
et && (at = ct, ct = _[at]), ui(je, at, Vn(ct, N, F, ee, at, _, Re));
|
|
19015
19016
|
}), je;
|
|
19016
19017
|
}
|
|
19017
19018
|
function Xi(_) {
|
|
@@ -19455,13 +19456,13 @@ Li.exports;
|
|
|
19455
19456
|
function ir(_, N, F, ee, Ne, be) {
|
|
19456
19457
|
var Re = Cn(_), je = Cn(N), Ze = Re ? u : qt(_), Ve = je ? u : qt(N);
|
|
19457
19458
|
Ze = Ze == l ? m : Ze, Ve = Ve == l ? m : Ve;
|
|
19458
|
-
var dt = Ze == m, bt = Ve == m,
|
|
19459
|
-
if (
|
|
19459
|
+
var dt = Ze == m, bt = Ve == m, et = Ze == Ve;
|
|
19460
|
+
if (et && kn(_)) {
|
|
19460
19461
|
if (!kn(N))
|
|
19461
19462
|
return !1;
|
|
19462
19463
|
Re = !0, dt = !1;
|
|
19463
19464
|
}
|
|
19464
|
-
if (
|
|
19465
|
+
if (et && !dt)
|
|
19465
19466
|
return be || (be = new jt()), Re || vi(_) ? zn(_, N, F, ee, Ne, be) : lr(_, N, Ze, F, ee, Ne, be);
|
|
19466
19467
|
if (!(F & o)) {
|
|
19467
19468
|
var ct = dt && Le.call(_, "__wrapped__"), at = bt && Le.call(N, "__wrapped__");
|
|
@@ -19470,7 +19471,7 @@ Li.exports;
|
|
|
19470
19471
|
return be || (be = new jt()), Ne(rn, Jt, F, ee, be);
|
|
19471
19472
|
}
|
|
19472
19473
|
}
|
|
19473
|
-
return
|
|
19474
|
+
return et ? (be || (be = new jt()), sr(_, N, F, ee, Ne, be)) : !1;
|
|
19474
19475
|
}
|
|
19475
19476
|
function rr(_) {
|
|
19476
19477
|
if (!mi(_) || fr(_))
|
|
@@ -19496,7 +19497,7 @@ Li.exports;
|
|
|
19496
19497
|
var Ve = be.get(_);
|
|
19497
19498
|
if (Ve && be.get(N))
|
|
19498
19499
|
return Ve == N;
|
|
19499
|
-
var dt = -1, bt = !0,
|
|
19500
|
+
var dt = -1, bt = !0, et = F & i ? new $n() : void 0;
|
|
19500
19501
|
for (be.set(_, N), be.set(N, _); ++dt < je; ) {
|
|
19501
19502
|
var ct = _[dt], at = N[dt];
|
|
19502
19503
|
if (ee)
|
|
@@ -19507,10 +19508,10 @@ Li.exports;
|
|
|
19507
19508
|
bt = !1;
|
|
19508
19509
|
break;
|
|
19509
19510
|
}
|
|
19510
|
-
if (
|
|
19511
|
+
if (et) {
|
|
19511
19512
|
if (!ze(N, function(Jt, pn) {
|
|
19512
|
-
if (!se(
|
|
19513
|
-
return
|
|
19513
|
+
if (!se(et, pn) && (ct === Jt || Ne(ct, Jt, F, ee, be)))
|
|
19514
|
+
return et.push(pn);
|
|
19514
19515
|
})) {
|
|
19515
19516
|
bt = !1;
|
|
19516
19517
|
break;
|
|
@@ -19562,8 +19563,8 @@ Li.exports;
|
|
|
19562
19563
|
if (Ze != dt && !Re)
|
|
19563
19564
|
return !1;
|
|
19564
19565
|
for (var bt = Ze; bt--; ) {
|
|
19565
|
-
var
|
|
19566
|
-
if (!(Re ?
|
|
19566
|
+
var et = je[bt];
|
|
19567
|
+
if (!(Re ? et in N : Le.call(N, et)))
|
|
19567
19568
|
return !1;
|
|
19568
19569
|
}
|
|
19569
19570
|
var ct = be.get(_);
|
|
@@ -19572,15 +19573,15 @@ Li.exports;
|
|
|
19572
19573
|
var at = !0;
|
|
19573
19574
|
be.set(_, N), be.set(N, _);
|
|
19574
19575
|
for (var rn = Re; ++bt < Ze; ) {
|
|
19575
|
-
|
|
19576
|
-
var Jt = _[
|
|
19576
|
+
et = je[bt];
|
|
19577
|
+
var Jt = _[et], pn = N[et];
|
|
19577
19578
|
if (ee)
|
|
19578
|
-
var ro = Re ? ee(pn, Jt,
|
|
19579
|
+
var ro = Re ? ee(pn, Jt, et, N, _, be) : ee(Jt, pn, et, _, N, be);
|
|
19579
19580
|
if (!(ro === void 0 ? Jt === pn || Ne(Jt, pn, F, ee, be) : ro)) {
|
|
19580
19581
|
at = !1;
|
|
19581
19582
|
break;
|
|
19582
19583
|
}
|
|
19583
|
-
rn || (rn =
|
|
19584
|
+
rn || (rn = et == "constructor");
|
|
19584
19585
|
}
|
|
19585
19586
|
if (at && !rn) {
|
|
19586
19587
|
var yi = _.constructor, bi = N.constructor;
|
|
@@ -20746,7 +20747,7 @@ export {
|
|
|
20746
20747
|
Ca as IbDropdownItem,
|
|
20747
20748
|
Wr as IbDropdownList,
|
|
20748
20749
|
V0 as IbFormGroup,
|
|
20749
|
-
|
|
20750
|
+
Qe as IbIcon,
|
|
20750
20751
|
Mt as IbIconButton,
|
|
20751
20752
|
Ta as IbInput,
|
|
20752
20753
|
Hi as IbLabel,
|
package/dist/index.umd.cjs
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
top: ${a-p-c/2+f+12}px!important`;break;case"rightCenter":d=d+`left: ${l+5}px!important;
|
|
19
19
|
top: ${a+f-p/2-c/2}px!important;`;break;case"rightBottom":d=d+`left: ${l+5}px!important;
|
|
20
20
|
top: ${a+f-c/2-12}px!important`;break;default:d=d+`left: ${r+s/2-h/2}px!important;
|
|
21
|
-
top: ${o-p+f-5}px!important`;break}return d}getClassList(n){return n?yo[n]:yo.topCenter}}const Wt=new vo,id=(t,n)=>{var a;Wt.getTooltipContainer()&&Wt.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};Wt.createTooltip(t,o,e)},od=(t,n)=>{const e=Wt.getId();if(n.getAttribute("aria-describedby")!==e)return;const o=Wt.getTooltipContainer(),a=n!==t.target&&!n.contains(t.target),r=o!==t.target&&!(o!=null&&o.contains(t.target));a&&r&&Wt.destroyTooltip(n)},bo=(t,n)=>{t.__tooltip_create=()=>id(t,n),t.__tooltip_destroy=e=>od(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy)},_o=t=>{Wt.destroyTooltip(t),t.removeEventListener("mouseenter",t.__tooltip_create),document.removeEventListener("mousemove",t.__tooltip_destroy)},Lr={mounted(t,n){bo(t,n)},updated(t,n){_o(t),bo(t,n)},beforeUnmount(t){_o(t)}},R0="",ad={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:rd,sortingTypesView:nd,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:Lr},components:{IbIcon:Le,IbIconButton:ht,IbToggleTip:co}},ld={class:"sorting-wrapper"},sd=["name"],dd=["aria-label"];function cd(t,n,e,o,a,r){var p;const l=i.resolveComponent("ib-toggle-tip"),s=i.resolveComponent("ib-icon-button"),c=i.resolveComponent("ib-icon"),h=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("div",ld,[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]=f=>a.isOpenToggleTip=!a.isOpenToggleTip)},[i.createTextVNode(i.toDisplayString(e.title),1)],2)),[[h,r.sortingTooltipContent,r.sortingTooltipPosition]]),r.hasToggleTip?(i.openBlock(),i.createBlock(l,{key:0,position:"bottom-center","is-open":a.isOpenToggleTip,title:e.toggleTipTitle,onClose:n[1]||(n[1]=f=>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,sd)]),_: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]=(...f)=>r.clickHandler&&r.clickHandler(...f)),"aria-label":e.sort},[i.createTextVNode(i.toDisplayString(e.title)+" ",1),r.iconType?(i.openBlock(),i.createBlock(c,{key:0,name:r.iconType},null,8,["name"])):i.createCommentVNode("",!0)],10,dd)),[[h,e.tooltipText,e.tooltipPosition]])])}const ud=_e(ad,[["render",cd],["__scopeId","data-v-a4394881"]]),j0="",fd={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:ht,IbDropdownItem:Br,IbDropdownList:tr,IbTooltip:Gt}},hd={"aria-label":"breadcrumb"},pd={class:"breadcrumb"},md=["href"],gd={key:1},yd=["href"];function vd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),c=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown-item"),p=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("nav",hd,[i.createElementVNode("ul",pd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(f,d)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(["breadcrumb-item",d===r.last?"active":""]),"aria-current":"page",key:d},[d!==r.last&&d>e.items.length-4||d===0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ib-link",href:f.url},i.toDisplayString(f.title),9,md)):i.createCommentVNode("",!0),d===r.last?(i.openBlock(),i.createElementBlock("p",gd,i.toDisplayString(f.title),1)):i.createCommentVNode("",!0),r.initContextMenu&&d===e.items.length-4?(i.openBlock(),i.createBlock(p,{key:2,horizontal:"center"},{trigger:i.withCtx(()=>[i.createVNode(c,{kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(l,{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,(u,_)=>(i.openBlock(),i.createBlock(h,{key:_},{default:i.withCtx(()=>[i.createElementVNode("a",{class:"context-breadcrums",href:u.url},i.toDisplayString(u.title),9,yd)]),_:2},1024))),128))]),_:2},1024)):i.createCommentVNode("",!0),d!==r.last&&d>e.items.length-5||d===0?(i.openBlock(),i.createBlock(l,{key:3,name:"chevron-forward-outline"})):i.createCommentVNode("",!0)],2))),128))])])}const bd=_e(fd,[["render",vd],["__scopeId","data-v-5ef772a9"]]),V0="",_d={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:ht,IbIcon:Le,IbTooltip:Gt}},$d=["for"],wd={key:0,class:"required"};function kd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),c=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",wd,"* ")):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length?(i.openBlock(),i.createBlock(c,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:i.withCtx(()=>[i.createVNode(l,{name:"information-circle-outline"}),i.createVNode(s,{text:e.infoText,position:e.tooltipPosition},null,8,["text","position"])]),_:1})):i.createCommentVNode("",!0)],10,$d)}const wn=_e(_d,[["render",kd],["__scopeId","data-v-3e867259"]]),Rr={text:"text",password:"password",email:"email",number:"number"},F0="",Cd={name:"IbInput",props:{type:{type:String,default:Rr.text,validator:t=>Object.keys(Rr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return mt()}},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:Qn.bottom},settingsHorizontalPosition:{type:String,default:$n.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=Nr({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===Rr.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:qt,IbIconButton:ht,IbIcon:Le,IbDropdown:er},inheritAttrs:!1},Od=["aria-invalid","readonly","disabled","id"],Ed={class:"settings-wrapper"};function Sd(t,n,e,o,a,r){var p,f;const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),c=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",null,[e.errorMessage?(i.openBlock(),i.createBlock(l,{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]=d=>a.actualValue=d),ref:"field","aria-invalid":!!r.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,class:r.classes,onInput:n[1]||(n[1]=d=>r.onInput(d)),onBlur:n[2]||(n[2]=d=>r.onBlur(d)),onFocus:n[3]||(n[3]=d=>r.onFocus(d))}),null,16,Od),[[i.vModelDynamic,a.actualValue]]),e.type!=="password"&&e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(c,{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(c,{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,(f=a.actualValue)==null?void 0:f.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(c,{"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",Ed,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const jr=_e(Cd,[["render",Sd],["__scopeId","data-v-ea1e952e"]]),q0="",xd={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return mt()}},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(t){if(this.readonly){t.preventDefault();return}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={...Nr({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Le},inheritAttrs:!1},Td=["aria-checked"],Nd=["for","tabindex"],Ad=["name","id","value","disabled","required"],Dd={class:"ib-checkbox-body"},Id={key:0,class:"required"},Pd={class:"ib-checkbox-input"},Md={key:1,class:"ib-checkbox-label"},Bd={key:0,class:"required"};function Ld(t,n,e,o,a,r){var s;const l=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((...c)=>r.onChange&&r.onChange(...c),["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]=c=>a.checked=c),onClick:n[1]||(n[1]=(...c)=>r.onChange&&r.onChange(...c))},null,8,Ad),[[i.vModelCheckbox,a.checked]]),i.createElementVNode("div",Dd,[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",Id,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",Pd,[i.withDirectives(i.createVNode(l,{name:"checkmark-sharp"},null,512),[[i.vShow,a.checked&&!r.indeterminate]]),i.withDirectives(i.createVNode(l,{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",Md,[e.required?(i.openBlock(),i.createElementBlock("span",Bd,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,Nd)],10,Td)}const Vr=_e(xd,[["render",Ld]]),H0="",Rd={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>mt()},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:Gt}},jd=["aria-checked","tabindex"],Vd={class:"toggle-wrapper",ref:"wrapper"},Fd={class:"toggle",ref:"toggle"},qd=["name","checked","id","disabled"],Hd=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),zd={key:0,class:"toggle-label"};function Ud(t,n,e,o,a,r){const l=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((...c)=>r.onChange&&r.onChange(...c),["prevent"]),["space"])),n[3]||(n[3]=i.withKeys(i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["prevent"]),["enter"]))]},[i.createElementVNode("div",Vd,[i.createElementVNode("div",Fd,[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]=(...c)=>r.onChange&&r.onChange(...c)),onInput:n[1]||(n[1]=i.withModifiers(()=>{},["stop"]))},null,40,qd),Hd,i.createVNode(l,{class:"checked-icon",name:"checkmark"}),i.createVNode(l,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(i.openBlock(),i.createElementBlock("span",zd,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,jd)}const $o=_e(Rd,[["render",Ud]]);function wo(t){return t.scrollHeight>t.clientHeight}const z0="",Kd={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(()=>{wo(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1}},methods:{onKeydown(t){t.keyCode===uo&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===ss&&(this.option.isChildrenVisible=!0),t.keyCode===ls&&(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?$o:Vr},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:ht},directives:{Tooltip:Lr}},Gd=["aria-selected","aria-label","id"],Wd={key:0,class:"option-label"},Yd={key:1,class:"option-label"},Zd=["innerHTML"],Jd=["innerHTML"],Xd={key:2,class:"option-label"};function Qd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),c=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((...f)=>r.onKeydown&&r.onKeydown(...f),["self"])),onFocus:n[4]||(n[4]=f=>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(l,{name:r.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[i.vShow,r.hasVisibleChildren]]),i.createElementVNode("div",{onClick:n[1]||(n[1]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["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",Yd,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",Wd,[i.createTextVNode(i.toDisplayString(e.option.title)+" ",1),i.createVNode(l,{name:"star",onClick:n[0]||(n[0]=i.withModifiers(f=>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,Jd)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,Zd))],64)):(i.openBlock(),i.createElementBlock("span",Xd,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,f=>i.withDirectives((i.openBlock(),i.createBlock(c,{key:f.value,option:f,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:r.checkChildren,onToggleBookmark:n[2]||(n[2]=d=>t.$emit("toggle-bookmark",d)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[i.vShow,f.visible]])),128))]),_:1},512)),[[i.vShow,r.hasVisibleChildren&&e.option.isChildrenVisible]]):i.createCommentVNode("",!0)],42,Gd)),[[p,a.showTooltip?e.option.title:""]])])}const ec=_e(Kd,[["render",Qd]]);var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ko={exports:{}};/*!***************************************************
|
|
21
|
+
top: ${o-p+f-5}px!important`;break}return d}getClassList(n){return n?yo[n]:yo.topCenter}}const Wt=new vo,id=(t,n)=>{var a;Wt.getTooltipContainer()&&Wt.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};Wt.createTooltip(t,o,e)},od=(t,n)=>{const e=Wt.getId();if(n.getAttribute("aria-describedby")!==e)return;const o=Wt.getTooltipContainer(),a=n!==t.target&&!n.contains(t.target),r=o!==t.target&&!(o!=null&&o.contains(t.target));a&&r&&Wt.destroyTooltip(n)},bo=(t,n)=>{t.__tooltip_create=()=>id(t,n),t.__tooltip_destroy=e=>od(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy)},_o=t=>{Wt.destroyTooltip(t),t.removeEventListener("mouseenter",t.__tooltip_create),document.removeEventListener("mousemove",t.__tooltip_destroy)},Lr={mounted(t,n){bo(t,n)},updated(t,n){_o(t),bo(t,n)},beforeUnmount(t){_o(t)}},R0="",ad={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:rd,sortingTypesView:nd,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:Lr},components:{IbIcon:Le,IbIconButton:ht,IbToggleTip:co}},ld={class:"sorting-wrapper"},sd=["name"],dd=["aria-label"];function cd(t,n,e,o,a,r){var p;const l=i.resolveComponent("ib-toggle-tip"),s=i.resolveComponent("ib-icon-button"),c=i.resolveComponent("ib-icon"),h=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("div",ld,[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]=f=>a.isOpenToggleTip=!a.isOpenToggleTip)},[i.createTextVNode(i.toDisplayString(e.title),1)],2)),[[h,r.sortingTooltipContent,r.sortingTooltipPosition]]),r.hasToggleTip?(i.openBlock(),i.createBlock(l,{key:0,position:"bottom-center","is-open":a.isOpenToggleTip,title:e.toggleTipTitle,onClose:n[1]||(n[1]=f=>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,sd)]),_: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]=(...f)=>r.clickHandler&&r.clickHandler(...f)),"aria-label":e.sort},[i.createTextVNode(i.toDisplayString(e.title)+" ",1),r.iconType?(i.openBlock(),i.createBlock(c,{key:0,name:r.iconType},null,8,["name"])):i.createCommentVNode("",!0)],10,dd)),[[h,e.tooltipText,e.tooltipPosition]])])}const ud=_e(ad,[["render",cd],["__scopeId","data-v-a4394881"]]),j0="",fd={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:ht,IbDropdownItem:Br,IbDropdownList:tr,IbTooltip:Gt}},hd={"aria-label":"breadcrumb"},pd={class:"breadcrumb"},md=["href"],gd={key:1},yd=["href"];function vd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),c=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown-item"),p=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("nav",hd,[i.createElementVNode("ul",pd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(f,d)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(["breadcrumb-item",d===r.last?"active":""]),"aria-current":"page",key:d},[d!==r.last&&d>e.items.length-4||d===0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ib-link",href:f.url},i.toDisplayString(f.title),9,md)):i.createCommentVNode("",!0),d===r.last?(i.openBlock(),i.createElementBlock("p",gd,i.toDisplayString(f.title),1)):i.createCommentVNode("",!0),r.initContextMenu&&d===e.items.length-4?(i.openBlock(),i.createBlock(p,{key:2,horizontal:"center"},{trigger:i.withCtx(()=>[i.createVNode(c,{kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(l,{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,(u,_)=>(i.openBlock(),i.createBlock(h,{key:_},{default:i.withCtx(()=>[i.createElementVNode("a",{class:"context-breadcrums",href:u.url},i.toDisplayString(u.title),9,yd)]),_:2},1024))),128))]),_:2},1024)):i.createCommentVNode("",!0),d!==r.last&&d>e.items.length-5||d===0?(i.openBlock(),i.createBlock(l,{key:3,name:"chevron-forward-outline"})):i.createCommentVNode("",!0)],2))),128))])])}const bd=_e(fd,[["render",vd],["__scopeId","data-v-5ef772a9"]]),V0="",_d={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:ht,IbIcon:Le,IbTooltip:Gt}},$d=["for"],wd={key:0,class:"required"};function kd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),c=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",wd,"* ")):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length?(i.openBlock(),i.createBlock(c,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:i.withCtx(()=>[i.createVNode(l,{name:"information-circle-outline"}),i.createVNode(s,{text:e.infoText,position:e.tooltipPosition},null,8,["text","position"])]),_:1})):i.createCommentVNode("",!0)],10,$d)}const wn=_e(_d,[["render",kd],["__scopeId","data-v-3e867259"]]),Rr={text:"text",password:"password",email:"email",number:"number"},F0="",Cd={name:"IbInput",props:{type:{type:String,default:Rr.text,validator:t=>Object.keys(Rr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return mt()}},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:Qn.bottom},settingsHorizontalPosition:{type:String,default:$n.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=Nr({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===Rr.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:qt,IbIconButton:ht,IbIcon:Le,IbDropdown:er},inheritAttrs:!1},Od=["aria-invalid","readonly","disabled","id"],Ed={class:"settings-wrapper"};function Sd(t,n,e,o,a,r){var p,f;const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),c=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",null,[e.errorMessage?(i.openBlock(),i.createBlock(l,{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]=d=>a.actualValue=d),ref:"field","aria-invalid":!!r.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,class:r.classes,onInput:n[1]||(n[1]=d=>r.onInput(d)),onBlur:n[2]||(n[2]=d=>r.onBlur(d)),onFocus:n[3]||(n[3]=d=>r.onFocus(d))}),null,16,Od),[[i.vModelDynamic,a.actualValue]]),e.type!=="password"&&e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(c,{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(c,{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,(f=a.actualValue)==null?void 0:f.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(c,{"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",Ed,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const jr=_e(Cd,[["render",Sd],["__scopeId","data-v-ea1e952e"]]),q0="",xd={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return mt()}},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(t){if(this.readonly){t.preventDefault();return}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={...Nr({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Le},inheritAttrs:!1},Td=["aria-checked"],Nd=["for","tabindex"],Ad=["name","id","value","disabled","required"],Dd={class:"ib-checkbox-body"},Id={key:0,class:"required"},Pd={class:"ib-checkbox-input"},Md={key:1,class:"ib-checkbox-label"},Bd={key:0,class:"required"};function Ld(t,n,e,o,a,r){var s;const l=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,onClick:n[2]||(n[2]=i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["prevent","stop"])),onKeypress:n[3]||(n[3]=i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["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]=c=>a.checked=c),onClick:n[1]||(n[1]=(...c)=>r.onChange&&r.onChange(...c))},null,8,Ad),[[i.vModelCheckbox,a.checked]]),i.createElementVNode("div",Dd,[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",Id,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",Pd,[i.withDirectives(i.createVNode(l,{name:"checkmark-sharp"},null,512),[[i.vShow,a.checked&&!r.indeterminate]]),i.withDirectives(i.createVNode(l,{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",Md,[e.required?(i.openBlock(),i.createElementBlock("span",Bd,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,Nd)],10,Td)}const Vr=_e(xd,[["render",Ld]]),H0="",Rd={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>mt()},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:Gt}},jd=["aria-checked","tabindex"],Vd={class:"toggle-wrapper",ref:"wrapper"},Fd={class:"toggle",ref:"toggle"},qd=["name","checked","id","disabled"],Hd=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),zd={key:0,class:"toggle-label"};function Ud(t,n,e,o,a,r){const l=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((...c)=>r.onChange&&r.onChange(...c),["prevent"]),["space"])),n[3]||(n[3]=i.withKeys(i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["prevent"]),["enter"]))]},[i.createElementVNode("div",Vd,[i.createElementVNode("div",Fd,[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]=(...c)=>r.onChange&&r.onChange(...c)),onInput:n[1]||(n[1]=i.withModifiers(()=>{},["stop"]))},null,40,qd),Hd,i.createVNode(l,{class:"checked-icon",name:"checkmark"}),i.createVNode(l,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(i.openBlock(),i.createElementBlock("span",zd,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,jd)}const $o=_e(Rd,[["render",Ud]]);function wo(t){return t.scrollHeight>t.clientHeight}const z0="",Kd={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(()=>{wo(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1}},methods:{onKeydown(t){t.keyCode===uo&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===ss&&(this.option.isChildrenVisible=!0),t.keyCode===ls&&(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?$o:Vr},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:ht},directives:{Tooltip:Lr}},Gd=["aria-selected","aria-label","id"],Wd={key:0,class:"option-label"},Yd={key:1,class:"option-label"},Zd=["innerHTML"],Jd=["innerHTML"],Xd={key:2,class:"option-label"};function Qd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),c=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((...f)=>r.onKeydown&&r.onKeydown(...f),["self"])),onFocus:n[4]||(n[4]=f=>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(l,{name:r.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[i.vShow,r.hasVisibleChildren]]),i.createElementVNode("div",{onClick:n[1]||(n[1]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["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",Yd,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",Wd,[i.createTextVNode(i.toDisplayString(e.option.title)+" ",1),i.createVNode(l,{name:"star",onClick:n[0]||(n[0]=i.withModifiers(f=>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,Jd)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,Zd))],64)):(i.openBlock(),i.createElementBlock("span",Xd,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,f=>i.withDirectives((i.openBlock(),i.createBlock(c,{key:f.value,option:f,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:r.checkChildren,onToggleBookmark:n[2]||(n[2]=d=>t.$emit("toggle-bookmark",d)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[i.vShow,f.visible]])),128))]),_:1},512)),[[i.vShow,r.hasVisibleChildren&&e.option.isChildrenVisible]]):i.createCommentVNode("",!0)],42,Gd)),[[p,a.showTooltip?e.option.title:""]])])}const ec=_e(Kd,[["render",Qd]]);var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ko={exports:{}};/*!***************************************************
|
|
22
22
|
* mark.js v8.11.1
|
|
23
23
|
* https://markjs.io/
|
|
24
24
|
* Copyright (c) 2014–2018, Julian Kühnel
|