@avakhula/ui 0.0.235 → 0.0.236
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 +109 -112
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/components/Form/Toggle/Toggle.vue +0 -1
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, renderSlot as Te, createVNode as ge, Transition as wr, withCtx as ye, withDirectives as Re, vShow as Ke, createBlock as ke, resolveDynamicComponent as Or, mergeProps as St, Fragment as
|
|
1
|
+
import { openBlock as G, createElementBlock as ne, normalizeStyle as wn, normalizeClass as ve, resolveComponent as fe, createElementVNode as ae, renderSlot as Te, createVNode as ge, Transition as wr, withCtx as ye, withDirectives as Re, vShow as Ke, createBlock as ke, resolveDynamicComponent as Or, mergeProps as St, Fragment as it, renderList as Ft, createCommentVNode as he, toDisplayString as $e, withModifiers as rt, resolveDirective as On, createSlots as So, Teleport as ca, createTextVNode as Ge, createApp as fa, vModelDynamic as To, withKeys as _t, pushScopeId as $i, popScopeId as wi, vModelText as xo, defineComponent as ha, onMounted as pa, onBeforeUnmount as ga, ref as Bi, watch as ei, nextTick as ji, h as ma, createStaticVNode as va } from "vue";
|
|
2
2
|
const Ae = (t, n) => {
|
|
3
3
|
const e = t.__vccOpts || t;
|
|
4
4
|
for (const [i, o] of n)
|
|
@@ -257,7 +257,7 @@ function Na(t, n, e, i, o, r) {
|
|
|
257
257
|
name: "_token",
|
|
258
258
|
value: r.token
|
|
259
259
|
}, null, 8, xa),
|
|
260
|
-
(G(!0), ne(
|
|
260
|
+
(G(!0), ne(it, null, Ft(Object.keys(e.postOptions), (s, l) => (G(), ne("input", {
|
|
261
261
|
key: l,
|
|
262
262
|
type: "hidden",
|
|
263
263
|
name: s,
|
|
@@ -819,7 +819,7 @@ function dl(t, n, e, i, o, r) {
|
|
|
819
819
|
ge(l, {
|
|
820
820
|
class: "close-button",
|
|
821
821
|
kind: "ghost",
|
|
822
|
-
onClick:
|
|
822
|
+
onClick: rt(r.close, ["prevent"])
|
|
823
823
|
}, {
|
|
824
824
|
default: ye(() => [
|
|
825
825
|
ge(s, { name: "close-outline" })
|
|
@@ -997,7 +997,7 @@ function Cl(t, n, e, i, o, r) {
|
|
|
997
997
|
class: ve(["dropdown-trigger", r.triggerClasses]),
|
|
998
998
|
ref: "dropdown",
|
|
999
999
|
onKeydown: n[0] || (n[0] = (...l) => r.onKeydown && r.onKeydown(...l)),
|
|
1000
|
-
onClick: n[1] || (n[1] =
|
|
1000
|
+
onClick: n[1] || (n[1] = rt((...l) => r.toggle && r.toggle(...l), ["prevent", "stop"]))
|
|
1001
1001
|
}, [
|
|
1002
1002
|
Te(t.$slots, "trigger", { isOpened: o.isOpenedState }, void 0, !0)
|
|
1003
1003
|
], 34)) : he("", !0),
|
|
@@ -1466,7 +1466,7 @@ const Vl = {
|
|
|
1466
1466
|
};
|
|
1467
1467
|
function Kl(t, n, e, i, o, r) {
|
|
1468
1468
|
const s = fe("ib-icon"), l = fe("ib-icon-button"), c = On("outside");
|
|
1469
|
-
return G(), ne(
|
|
1469
|
+
return G(), ne(it, null, [
|
|
1470
1470
|
r.hasTrigger ? (G(), ne("div", {
|
|
1471
1471
|
key: 0,
|
|
1472
1472
|
class: "modal-trigger",
|
|
@@ -1583,7 +1583,7 @@ function Zl(t, n, e, i, o, r) {
|
|
|
1583
1583
|
], 10, Wl)
|
|
1584
1584
|
]),
|
|
1585
1585
|
body: ye(() => [
|
|
1586
|
-
(G(!0), ne(
|
|
1586
|
+
(G(!0), ne(it, null, Ft(e.tabs.tabs, (f, h) => (G(), ke(l, {
|
|
1587
1587
|
key: h,
|
|
1588
1588
|
checked: f.id === e.selectedTab,
|
|
1589
1589
|
href: r.createHref(f.id),
|
|
@@ -1665,7 +1665,7 @@ function is(t, n, e, i, o, r) {
|
|
|
1665
1665
|
const s = fe("ib-tab-dropdown");
|
|
1666
1666
|
return G(), ne("div", Ql, [
|
|
1667
1667
|
ae("ul", es, [
|
|
1668
|
-
(G(!0), ne(
|
|
1668
|
+
(G(!0), ne(it, null, Ft(o.tabs, (l, c) => (G(), ne("li", {
|
|
1669
1669
|
class: "tab-item",
|
|
1670
1670
|
key: c
|
|
1671
1671
|
}, [
|
|
@@ -2071,7 +2071,7 @@ function ws(t, n, e, i, o, r) {
|
|
|
2071
2071
|
const s = fe("ib-icon"), l = fe("ib-tooltip"), c = fe("ib-icon-button"), f = fe("ib-dropdown-item"), h = fe("ib-dropdown-list");
|
|
2072
2072
|
return G(), ne("nav", vs, [
|
|
2073
2073
|
ae("ul", ys, [
|
|
2074
|
-
(G(!0), ne(
|
|
2074
|
+
(G(!0), ne(it, null, Ft(e.items, (d, a) => (G(), ne("li", {
|
|
2075
2075
|
class: ve(["breadcrumb-item", a === r.last ? "active" : ""]),
|
|
2076
2076
|
"aria-current": "page",
|
|
2077
2077
|
key: a
|
|
@@ -2099,7 +2099,7 @@ function ws(t, n, e, i, o, r) {
|
|
|
2099
2099
|
})
|
|
2100
2100
|
]),
|
|
2101
2101
|
body: ye(() => [
|
|
2102
|
-
(G(!0), ne(
|
|
2102
|
+
(G(!0), ne(it, null, Ft(r.setItemsContextMenu, (u, b) => (G(), ke(f, { key: b }, {
|
|
2103
2103
|
default: ye(() => [
|
|
2104
2104
|
ae("a", {
|
|
2105
2105
|
class: "context-breadcrums",
|
|
@@ -2405,7 +2405,7 @@ function As(t, n, e, i, o, r) {
|
|
|
2405
2405
|
type: "button",
|
|
2406
2406
|
disabled: e.readonly || e.disabled,
|
|
2407
2407
|
"help-text": o.showPassword ? e.hidePasswordMessage : e.showPasswordMessage,
|
|
2408
|
-
onClick:
|
|
2408
|
+
onClick: rt(r.toggleShowPassword, ["prevent"])
|
|
2409
2409
|
}, {
|
|
2410
2410
|
default: ye(() => [
|
|
2411
2411
|
ge(l, {
|
|
@@ -2552,7 +2552,7 @@ function qs(t, n, e, i, o, r) {
|
|
|
2552
2552
|
ae("label", St(r.attrs, {
|
|
2553
2553
|
for: e.id,
|
|
2554
2554
|
tabindex: e.disabled | e.disableFocus ? -1 : 0,
|
|
2555
|
-
onKeypress: n[1] || (n[1] =
|
|
2555
|
+
onKeypress: n[1] || (n[1] = rt((...c) => r.onChange && r.onChange(...c), ["prevent"]))
|
|
2556
2556
|
}), [
|
|
2557
2557
|
ae("input", {
|
|
2558
2558
|
tabindex: "-1",
|
|
@@ -2676,50 +2676,47 @@ const Fs = {
|
|
|
2676
2676
|
};
|
|
2677
2677
|
function Ys(t, n, e, i, o, r) {
|
|
2678
2678
|
const s = fe("ib-icon"), l = fe("ib-tooltip");
|
|
2679
|
-
return G(), ne(
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
e.helpMessage.length ?
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
}, null, 8, ["text"])) : he("", !0)
|
|
2721
|
-
], 42, Hs)
|
|
2722
|
-
], 64);
|
|
2679
|
+
return G(), ne("label", {
|
|
2680
|
+
role: "switch",
|
|
2681
|
+
"aria-checked": o.checked,
|
|
2682
|
+
tabindex: e.disabled ? -1 : 0,
|
|
2683
|
+
class: ve(r.classes),
|
|
2684
|
+
onKeypress: [
|
|
2685
|
+
n[2] || (n[2] = _t(rt((...c) => r.onChange && r.onChange(...c), ["prevent"]), ["space"])),
|
|
2686
|
+
n[3] || (n[3] = _t(rt((...c) => r.onChange && r.onChange(...c), ["prevent"]), ["enter"]))
|
|
2687
|
+
]
|
|
2688
|
+
}, [
|
|
2689
|
+
ae("div", Vs, [
|
|
2690
|
+
ae("div", Us, [
|
|
2691
|
+
ae("input", {
|
|
2692
|
+
tabindex: "-1",
|
|
2693
|
+
type: "checkbox",
|
|
2694
|
+
value: "1",
|
|
2695
|
+
name: e.name,
|
|
2696
|
+
checked: o.checked,
|
|
2697
|
+
id: e.id,
|
|
2698
|
+
disabled: e.disabled,
|
|
2699
|
+
onClick: n[0] || (n[0] = (...c) => r.onChange && r.onChange(...c)),
|
|
2700
|
+
onInput: n[1] || (n[1] = rt(() => {
|
|
2701
|
+
}, ["stop"]))
|
|
2702
|
+
}, null, 40, zs),
|
|
2703
|
+
Ks,
|
|
2704
|
+
ge(s, {
|
|
2705
|
+
class: "checked-icon",
|
|
2706
|
+
name: "checkmark"
|
|
2707
|
+
}),
|
|
2708
|
+
ge(s, {
|
|
2709
|
+
class: "unchecked-icon",
|
|
2710
|
+
name: "close"
|
|
2711
|
+
})
|
|
2712
|
+
], 512)
|
|
2713
|
+
], 512),
|
|
2714
|
+
e.label.length ? (G(), ne("span", Gs, $e(e.label), 1)) : he("", !0),
|
|
2715
|
+
e.helpMessage.length ? (G(), ke(l, {
|
|
2716
|
+
key: 1,
|
|
2717
|
+
text: o.checked ? e.helpMessage : e.helpMessageOff.length ? e.helpMessageOff : e.helpMessage
|
|
2718
|
+
}, null, 8, ["text"])) : he("", !0)
|
|
2719
|
+
], 42, Hs);
|
|
2723
2720
|
}
|
|
2724
2721
|
const Ws = /* @__PURE__ */ Ae(Fs, [["render", Ys]]);
|
|
2725
2722
|
function qo(t) {
|
|
@@ -2891,7 +2888,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
2891
2888
|
"aria-selected": r.isChecked(e.option),
|
|
2892
2889
|
"aria-label": e.option.title,
|
|
2893
2890
|
id: "option-" + r.id,
|
|
2894
|
-
onKeydown: n[3] || (n[3] =
|
|
2891
|
+
onKeydown: n[3] || (n[3] = rt((...d) => r.onKeydown && r.onKeydown(...d), ["self"])),
|
|
2895
2892
|
onFocus: n[4] || (n[4] = (d) => t.$emit("onFocus", `option-${r.id}`))
|
|
2896
2893
|
}, [
|
|
2897
2894
|
Re(ge(l, {
|
|
@@ -2908,7 +2905,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
2908
2905
|
[Ke, r.hasVisibleChildren]
|
|
2909
2906
|
]),
|
|
2910
2907
|
ae("div", {
|
|
2911
|
-
onClick: n[1] || (n[1] =
|
|
2908
|
+
onClick: n[1] || (n[1] = rt((...d) => r.onChange && r.onChange(...d), ["prevent"])),
|
|
2912
2909
|
class: ve({
|
|
2913
2910
|
disabled: e.option.isDisabled,
|
|
2914
2911
|
"tree-select-option-label": !0,
|
|
@@ -2944,10 +2941,10 @@ function ru(t, n, e, i, o, r) {
|
|
|
2944
2941
|
Ge($e(e.option.title) + " ", 1),
|
|
2945
2942
|
ge(s, {
|
|
2946
2943
|
name: "star",
|
|
2947
|
-
onClick: n[0] || (n[0] =
|
|
2944
|
+
onClick: n[0] || (n[0] = rt((d) => t.$emit("toggle-bookmark", e.option), ["stop", "prevent"]))
|
|
2948
2945
|
})
|
|
2949
2946
|
]))
|
|
2950
|
-
], 2)) : e.htmlTitle ? (G(), ne(
|
|
2947
|
+
], 2)) : e.htmlTitle ? (G(), ne(it, { key: 1 }, [
|
|
2951
2948
|
r.hasChildren ? (G(), ne("span", {
|
|
2952
2949
|
key: 1,
|
|
2953
2950
|
class: "option-label",
|
|
@@ -2961,7 +2958,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
2961
2958
|
], 2),
|
|
2962
2959
|
r.hasChildren ? Re((G(), ke(f, { key: 0 }, {
|
|
2963
2960
|
default: ye(() => [
|
|
2964
|
-
(G(!0), ne(
|
|
2961
|
+
(G(!0), ne(it, null, Ft(e.option.children, (d) => Re((G(), ke(c, {
|
|
2965
2962
|
key: d.value,
|
|
2966
2963
|
option: d,
|
|
2967
2964
|
name: e.name,
|
|
@@ -2986,7 +2983,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
2986
2983
|
]);
|
|
2987
2984
|
}
|
|
2988
2985
|
const iu = /* @__PURE__ */ Ae(Zs, [["render", ru]]);
|
|
2989
|
-
var
|
|
2986
|
+
var et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2990
2987
|
function Er(t) {
|
|
2991
2988
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
2992
2989
|
}
|
|
@@ -3000,7 +2997,7 @@ var Fo = { exports: {} };
|
|
|
3000
2997
|
(function(t, n) {
|
|
3001
2998
|
(function(e, i) {
|
|
3002
2999
|
t.exports = i();
|
|
3003
|
-
})(
|
|
3000
|
+
})(et, function() {
|
|
3004
3001
|
class e {
|
|
3005
3002
|
constructor(r, s = !0, l = [], c = 5e3) {
|
|
3006
3003
|
this.ctx = r, this.iframes = s, this.exclude = l, this.iframesTimeout = c;
|
|
@@ -3906,7 +3903,7 @@ const lu = {
|
|
|
3906
3903
|
};
|
|
3907
3904
|
function du(t, n, e, i, o, r) {
|
|
3908
3905
|
const s = fe("ib-alert"), l = fe("ib-icon"), c = fe("ib-icon-button"), f = fe("select-option"), h = fe("list"), d = fe("ib-input"), a = fe("ib-dropdown");
|
|
3909
|
-
return G(), ne(
|
|
3906
|
+
return G(), ne(it, null, [
|
|
3910
3907
|
e.errorMessage ? (G(), ke(s, {
|
|
3911
3908
|
key: 0,
|
|
3912
3909
|
class: "tree-select-error"
|
|
@@ -3947,7 +3944,7 @@ function du(t, n, e, i, o, r) {
|
|
|
3947
3944
|
class: ve({ "has-hierarchy": r.hasHierarchy })
|
|
3948
3945
|
}, {
|
|
3949
3946
|
default: ye(() => [
|
|
3950
|
-
(G(!0), ne(
|
|
3947
|
+
(G(!0), ne(it, null, Ft(o.actualBookmarkedOptions, (u) => (G(), ke(f, {
|
|
3951
3948
|
key: "bookmark" + u.id,
|
|
3952
3949
|
option: u,
|
|
3953
3950
|
"parent-auto-check": !1,
|
|
@@ -4003,7 +4000,7 @@ function du(t, n, e, i, o, r) {
|
|
|
4003
4000
|
"only-end-nodes": e.onlyEndNodes,
|
|
4004
4001
|
"show-input": e.showInputs
|
|
4005
4002
|
}, null, 8, ["option", "name", "parent-auto-check", "is-multiple", "onCheck", "onToggleBookmark", "uid", "only-end-nodes", "show-input"])) : he("", !0),
|
|
4006
|
-
r.requiredDependencyNotFilled ? he("", !0) : (G(), ne(
|
|
4003
|
+
r.requiredDependencyNotFilled ? he("", !0) : (G(), ne(it, { key: 3 }, [
|
|
4007
4004
|
e.allOptions && e.isMultiple && r.visibleOptionsCount && !r.requiredDependencyNotFilled ? (G(), ke(f, {
|
|
4008
4005
|
key: 0,
|
|
4009
4006
|
option: {
|
|
@@ -4026,7 +4023,7 @@ function du(t, n, e, i, o, r) {
|
|
|
4026
4023
|
onCheck: r.manageAll,
|
|
4027
4024
|
onOnFocus: n[9] || (n[9] = (u) => o.focusedOptionId = u)
|
|
4028
4025
|
}, null, 8, ["option", "is-toggle", "name", "is-multiple", "uid", "only-end-nodes", "show-input", "onCheck"])) : he("", !0),
|
|
4029
|
-
(G(!0), ne(
|
|
4026
|
+
(G(!0), ne(it, null, Ft(o.actualOptions, (u) => Te(t.$slots, o.actualName, {
|
|
4030
4027
|
key: e.name + u.value,
|
|
4031
4028
|
option: u,
|
|
4032
4029
|
parentAutoCheck: e.parentAutoCheck,
|
|
@@ -4082,7 +4079,7 @@ function du(t, n, e, i, o, r) {
|
|
|
4082
4079
|
"tree-choice-error": e.errorMessage
|
|
4083
4080
|
}]),
|
|
4084
4081
|
ref: "combobox",
|
|
4085
|
-
onClick: n[0] || (n[0] =
|
|
4082
|
+
onClick: n[0] || (n[0] = rt(() => {
|
|
4086
4083
|
}, ["prevent"])),
|
|
4087
4084
|
onBlur: n[1] || (n[1] = (...b) => r.onBlur && r.onBlur(...b)),
|
|
4088
4085
|
onKeyup: [
|
|
@@ -4105,12 +4102,12 @@ function du(t, n, e, i, o, r) {
|
|
|
4105
4102
|
key: 0,
|
|
4106
4103
|
kind: "ghost",
|
|
4107
4104
|
class: "button-clear",
|
|
4108
|
-
onClick:
|
|
4109
|
-
onKeypress: n[4] || (n[4] = _t(
|
|
4105
|
+
onClick: rt(r.clearValue, ["prevent"]),
|
|
4106
|
+
onKeypress: n[4] || (n[4] = _t(rt(() => {
|
|
4110
4107
|
}, ["stop", "prevent"]), ["enter"])),
|
|
4111
|
-
onKeydown: n[5] || (n[5] = _t(
|
|
4108
|
+
onKeydown: n[5] || (n[5] = _t(rt(() => {
|
|
4112
4109
|
}, ["stop", "prevent"]), ["enter"])),
|
|
4113
|
-
onKeyup: _t(
|
|
4110
|
+
onKeyup: _t(rt(r.clearValue, ["prevent"]), ["enter"]),
|
|
4114
4111
|
"help-text": e.clearButtonMessage
|
|
4115
4112
|
}, {
|
|
4116
4113
|
default: ye(() => [
|
|
@@ -4307,7 +4304,7 @@ function Ou(t, n, e, i, o, r) {
|
|
|
4307
4304
|
"label-select": e.labelSelect
|
|
4308
4305
|
}, null, 8, ["onSelect", "value", "label-select"]),
|
|
4309
4306
|
ae("div", yu, [
|
|
4310
|
-
e.showPaginationInput ? (G(), ne(
|
|
4307
|
+
e.showPaginationInput ? (G(), ne(it, { key: 0 }, [
|
|
4311
4308
|
ge(l, null, {
|
|
4312
4309
|
default: ye(() => [
|
|
4313
4310
|
Ge($e(e.labelInput), 1)
|
|
@@ -4340,7 +4337,7 @@ function Ou(t, n, e, i, o, r) {
|
|
|
4340
4337
|
_: 1
|
|
4341
4338
|
}, 8, ["disabled"]),
|
|
4342
4339
|
ae("ul", $u, [
|
|
4343
|
-
(G(!0), ne(
|
|
4340
|
+
(G(!0), ne(it, null, Ft(r.countPagePagination, (a, u) => Re((G(), ne("li", {
|
|
4344
4341
|
key: u,
|
|
4345
4342
|
class: ve(["pagination-item", {
|
|
4346
4343
|
active: u + 1 === o.currentPage,
|
|
@@ -4698,7 +4695,7 @@ function nd(t, n, e, i, o, r) {
|
|
|
4698
4695
|
class: ve(r.classes),
|
|
4699
4696
|
for: e.id,
|
|
4700
4697
|
"aria-checked": o.checked,
|
|
4701
|
-
onClick: n[2] || (n[2] =
|
|
4698
|
+
onClick: n[2] || (n[2] = rt((...c) => r.onClick && r.onClick(...c), ["prevent"]))
|
|
4702
4699
|
}, [
|
|
4703
4700
|
ae("input", {
|
|
4704
4701
|
type: "radio",
|
|
@@ -4708,7 +4705,7 @@ function nd(t, n, e, i, o, r) {
|
|
|
4708
4705
|
checked: o.checked,
|
|
4709
4706
|
disabled: e.disabled,
|
|
4710
4707
|
ref: "radio",
|
|
4711
|
-
onInput: n[0] || (n[0] =
|
|
4708
|
+
onInput: n[0] || (n[0] = rt(() => {
|
|
4712
4709
|
}, ["stop"])),
|
|
4713
4710
|
onChange: n[1] || (n[1] = (...c) => r.onChange && r.onChange(...c))
|
|
4714
4711
|
}, null, 40, Qu),
|
|
@@ -4741,11 +4738,11 @@ const rd = {
|
|
|
4741
4738
|
};
|
|
4742
4739
|
function ud(t, n, e, i, o, r) {
|
|
4743
4740
|
return G(), ne("div", id, [
|
|
4744
|
-
e.characterLength ? e.characterLimit > e.characterLength ? (G(), ne(
|
|
4741
|
+
e.characterLength ? e.characterLimit > e.characterLength ? (G(), ne(it, { key: 1 }, [
|
|
4745
4742
|
ae("p", ad, $e(e.characterLimit - e.characterLength), 1),
|
|
4746
4743
|
Ge(" / "),
|
|
4747
4744
|
ae("p", ld, $e(e.characterLimit), 1)
|
|
4748
|
-
], 64)) : e.characterLimit === e.characterLength ? (G(), ne(
|
|
4745
|
+
], 64)) : e.characterLimit === e.characterLength ? (G(), ne(it, { key: 2 }, [
|
|
4749
4746
|
Ge("0")
|
|
4750
4747
|
], 64)) : (G(), ne("p", sd, $e(e.characterLimit - e.characterLength), 1)) : (G(), ne("p", od, "Max " + $e(e.characterLimit), 1))
|
|
4751
4748
|
]);
|
|
@@ -5322,7 +5319,7 @@ function yd(t, n) {
|
|
|
5322
5319
|
config: ft(ft({}, _n), Je.defaultConfig),
|
|
5323
5320
|
l10n: zn
|
|
5324
5321
|
};
|
|
5325
|
-
e.parseDate = gi({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = v, e._setHoursFromDate = a, e._positionCalendar = te, e.changeMonth = A, e.changeYear = V, e.clear = B, e.close = j, e.onMouseOver = _e, e._createElement = Fe, e.createDay = T, e.destroy = Y, e.isEnabled = Z, e.jumpToDate = m, e.updateValue = pt, e.open = Ie, e.redraw = ie, e.set =
|
|
5322
|
+
e.parseDate = gi({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = v, e._setHoursFromDate = a, e._positionCalendar = te, e.changeMonth = A, e.changeYear = V, e.clear = B, e.close = j, e.onMouseOver = _e, e._createElement = Fe, e.createDay = T, e.destroy = Y, e.isEnabled = Z, e.jumpToDate = m, e.updateValue = pt, e.open = Ie, e.redraw = ie, e.set = tt, e.setDate = qe, e.toggle = tn;
|
|
5326
5323
|
function i() {
|
|
5327
5324
|
e.utils = {
|
|
5328
5325
|
getDaysInMonth: function(I, L) {
|
|
@@ -5974,7 +5971,7 @@ function yd(t, n) {
|
|
|
5974
5971
|
var rn = se();
|
|
5975
5972
|
if (rn === void 0)
|
|
5976
5973
|
return;
|
|
5977
|
-
var
|
|
5974
|
+
var nt = window.document.body.offsetWidth, Sn = Math.max(0, nt / 2 - X / 2), Tn = ".flatpickr-calendar.centerMost:before", xn = ".flatpickr-calendar.centerMost:after", An = rn.cssRules.length, Nn = "{left:" + me.left + "px;right:auto;}";
|
|
5978
5975
|
mt(e.calendarContainer, "rightMost", !1), mt(e.calendarContainer, "centerMost", !0), rn.insertRule(Tn + "," + xn + Nn, An), e.calendarContainer.style.left = Sn + "px", e.calendarContainer.style.right = "auto";
|
|
5979
5976
|
}
|
|
5980
5977
|
}
|
|
@@ -6044,7 +6041,7 @@ function yd(t, n) {
|
|
|
6044
6041
|
}
|
|
6045
6042
|
]
|
|
6046
6043
|
};
|
|
6047
|
-
function
|
|
6044
|
+
function tt(I, L) {
|
|
6048
6045
|
if (I !== null && typeof I == "object") {
|
|
6049
6046
|
Object.assign(e.config, I);
|
|
6050
6047
|
for (var z in I)
|
|
@@ -6241,7 +6238,7 @@ var Ko = { exports: {} };
|
|
|
6241
6238
|
(function(t, n) {
|
|
6242
6239
|
(function(e, i) {
|
|
6243
6240
|
t.exports = i();
|
|
6244
|
-
})(
|
|
6241
|
+
})(et, function() {
|
|
6245
6242
|
/*! *****************************************************************************
|
|
6246
6243
|
Copyright (c) Microsoft Corporation.
|
|
6247
6244
|
|
|
@@ -10149,12 +10146,12 @@ function Kf(t, n, e, i, o, r) {
|
|
|
10149
10146
|
placeholder: r.sortedCountries.length ? r.sortedCountries[0].name : "",
|
|
10150
10147
|
type: "text",
|
|
10151
10148
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => o.searchQuery = l),
|
|
10152
|
-
onClick: n[1] || (n[1] =
|
|
10149
|
+
onClick: n[1] || (n[1] = rt(() => {
|
|
10153
10150
|
}, ["stop"]))
|
|
10154
10151
|
}, null, 8, Hf)), [
|
|
10155
10152
|
[xo, o.searchQuery]
|
|
10156
10153
|
]) : he("", !0),
|
|
10157
|
-
(G(!0), ne(
|
|
10154
|
+
(G(!0), ne(it, null, Ft(r.sortedCountries, (l, c) => (G(), ne("li", {
|
|
10158
10155
|
role: "option",
|
|
10159
10156
|
class: ve(["vti__dropdown-item", r.getItemClass(c, l.iso2)]),
|
|
10160
10157
|
key: l.iso2 + (l.preferred ? "-preferred" : ""),
|
|
@@ -10262,7 +10259,7 @@ const Yf = {
|
|
|
10262
10259
|
};
|
|
10263
10260
|
function Wf(t, n, e, i, o, r) {
|
|
10264
10261
|
const s = fe("ib-alert"), l = fe("ib-icon"), c = fe("vue-tel-input"), f = On("outside");
|
|
10265
|
-
return G(), ne(
|
|
10262
|
+
return G(), ne(it, null, [
|
|
10266
10263
|
e.errorMessage.length ? (G(), ke(s, {
|
|
10267
10264
|
key: 0,
|
|
10268
10265
|
class: "ib-phone-error-message"
|
|
@@ -10306,7 +10303,7 @@ var ta = { exports: {} };
|
|
|
10306
10303
|
(function(t, n) {
|
|
10307
10304
|
(function(i, o) {
|
|
10308
10305
|
t.exports = o();
|
|
10309
|
-
})(typeof self < "u" ? self :
|
|
10306
|
+
})(typeof self < "u" ? self : et, function() {
|
|
10310
10307
|
return (
|
|
10311
10308
|
/******/
|
|
10312
10309
|
function(e) {
|
|
@@ -13189,12 +13186,12 @@ var ta = { exports: {} };
|
|
|
13189
13186
|
if (_e.length !== 0) {
|
|
13190
13187
|
var Ee = J.quill.getSelection();
|
|
13191
13188
|
if (!(Ee == null || !J.quill.hasFocus())) {
|
|
13192
|
-
var Ie = J.quill.getLine(Ee.index), Me = s(Ie, 2), Ye = Me[0], ze = Me[1], Q = J.quill.getLeaf(Ee.index), te = s(Q, 2), se = te[0], ue = te[1], ie = Ee.length === 0 ? [se, ue] : J.quill.getLeaf(Ee.index + Ee.length), xe = s(ie, 2), we = xe[0], Se = xe[1],
|
|
13189
|
+
var Ie = J.quill.getLine(Ee.index), Me = s(Ie, 2), Ye = Me[0], ze = Me[1], Q = J.quill.getLeaf(Ee.index), te = s(Q, 2), se = te[0], ue = te[1], ie = Ee.length === 0 ? [se, ue] : J.quill.getLeaf(Ee.index + Ee.length), xe = s(ie, 2), we = xe[0], Se = xe[1], tt = se instanceof $.default.Text ? se.value().slice(0, ue) : "", We = we instanceof $.default.Text ? we.value().slice(Se) : "", qe = {
|
|
13193
13190
|
collapsed: Ee.length === 0,
|
|
13194
13191
|
empty: Ee.length === 0 && Ye.length() <= 1,
|
|
13195
13192
|
format: J.quill.getFormat(Ee),
|
|
13196
13193
|
offset: ze,
|
|
13197
|
-
prefix:
|
|
13194
|
+
prefix: tt,
|
|
13198
13195
|
suffix: We
|
|
13199
13196
|
}, It = _e.some(function(De) {
|
|
13200
13197
|
if (De.collapsed != null && De.collapsed !== qe.collapsed || De.empty != null && De.empty !== qe.empty || De.offset != null && De.offset !== qe.offset)
|
|
@@ -15618,7 +15615,7 @@ var ta = { exports: {} };
|
|
|
15618
15615
|
function Q(te, se) {
|
|
15619
15616
|
var ue = [], ie = !0, xe = !1, we = void 0;
|
|
15620
15617
|
try {
|
|
15621
|
-
for (var Se = te[Symbol.iterator](),
|
|
15618
|
+
for (var Se = te[Symbol.iterator](), tt; !(ie = (tt = Se.next()).done) && (ue.push(tt.value), !(se && ue.length === se)); ie = !0)
|
|
15622
15619
|
;
|
|
15623
15620
|
} catch (We) {
|
|
15624
15621
|
xe = !0, we = We;
|
|
@@ -15680,8 +15677,8 @@ var ta = { exports: {} };
|
|
|
15680
15677
|
M(this, te);
|
|
15681
15678
|
var ie = q(this, (te.__proto__ || Object.getPrototypeOf(te)).call(this, se, ue));
|
|
15682
15679
|
return ie.quill.root.addEventListener("paste", ie.onPaste.bind(ie)), ie.container = ie.quill.addContainer("ql-clipboard"), ie.container.setAttribute("contenteditable", !0), ie.container.setAttribute("tabindex", -1), ie.matchers = [], U.concat(ie.options.matchers).forEach(function(xe) {
|
|
15683
|
-
var we = s(xe, 2), Se = we[0],
|
|
15684
|
-
!ue.matchVisual &&
|
|
15680
|
+
var we = s(xe, 2), Se = we[0], tt = we[1];
|
|
15681
|
+
!ue.matchVisual && tt === Me || ie.addMatcher(Se, tt);
|
|
15685
15682
|
}), ie;
|
|
15686
15683
|
}
|
|
15687
15684
|
return l(te, [{
|
|
@@ -15699,7 +15696,7 @@ var ta = { exports: {} };
|
|
|
15699
15696
|
var xe = this.container.innerText;
|
|
15700
15697
|
return this.container.innerHTML = "", new d.default().insert(xe, x({}, E.default.blotName, ie[E.default.blotName]));
|
|
15701
15698
|
}
|
|
15702
|
-
var we = this.prepareMatching(), Se = s(we, 2),
|
|
15699
|
+
var we = this.prepareMatching(), Se = s(we, 2), tt = Se[0], We = Se[1], qe = V(this.container, tt, We);
|
|
15703
15700
|
return H(qe, `
|
|
15704
15701
|
`) && qe.ops[qe.ops.length - 1].attributes == null && (qe = qe.compose(new d.default().retain(qe.length() - 1).delete(1))), W.log("convert", this.container.innerHTML, qe), this.container.innerHTML = "", qe;
|
|
15705
15702
|
}
|
|
@@ -15730,8 +15727,8 @@ var ta = { exports: {} };
|
|
|
15730
15727
|
value: function() {
|
|
15731
15728
|
var ue = this, ie = [], xe = [];
|
|
15732
15729
|
return this.matchers.forEach(function(we) {
|
|
15733
|
-
var Se = s(we, 2),
|
|
15734
|
-
switch (
|
|
15730
|
+
var Se = s(we, 2), tt = Se[0], We = Se[1];
|
|
15731
|
+
switch (tt) {
|
|
15735
15732
|
case Node.TEXT_NODE:
|
|
15736
15733
|
xe.push(We);
|
|
15737
15734
|
break;
|
|
@@ -15739,7 +15736,7 @@ var ta = { exports: {} };
|
|
|
15739
15736
|
ie.push(We);
|
|
15740
15737
|
break;
|
|
15741
15738
|
default:
|
|
15742
|
-
[].forEach.call(ue.container.querySelectorAll(
|
|
15739
|
+
[].forEach.call(ue.container.querySelectorAll(tt), function(qe) {
|
|
15743
15740
|
qe[oe] = qe[oe] || [], qe[oe].push(We);
|
|
15744
15741
|
});
|
|
15745
15742
|
break;
|
|
@@ -17953,7 +17950,7 @@ _r.exports;
|
|
|
17953
17950
|
(function(t, n) {
|
|
17954
17951
|
var e = 200, i = "__lodash_hash_undefined__", o = 9007199254740991, r = "[object Arguments]", s = "[object Array]", l = "[object Boolean]", c = "[object Date]", f = "[object Error]", h = "[object Function]", d = "[object GeneratorFunction]", a = "[object Map]", u = "[object Number]", b = "[object Object]", v = "[object Promise]", y = "[object RegExp]", g = "[object Set]", m = "[object String]", $ = "[object Symbol]", p = "[object WeakMap]", w = "[object ArrayBuffer]", T = "[object DataView]", E = "[object Float32Array]", S = "[object Float64Array]", P = "[object Int8Array]", C = "[object Int16Array]", O = "[object Int32Array]", k = "[object Uint8Array]", x = "[object Uint8ClampedArray]", M = "[object Uint16Array]", q = "[object Uint32Array]", K = /[\\^$.*+?()[\]{}|]/g, W = /\w*$/, oe = /^\[object .+?Constructor\]$/, U = /^(?:0|[1-9]\d*)$/, R = {};
|
|
17955
17952
|
R[r] = R[s] = R[w] = R[T] = R[l] = R[c] = R[E] = R[S] = R[P] = R[C] = R[O] = R[a] = R[u] = R[b] = R[y] = R[g] = R[m] = R[$] = R[k] = R[x] = R[M] = R[q] = !0, R[f] = R[h] = R[p] = !1;
|
|
17956
|
-
var A = typeof
|
|
17953
|
+
var A = typeof et == "object" && et && et.Object === Object && et, B = typeof self == "object" && self && self.Object === Object && self, j = A || B || Function("return this")(), Y = n && !n.nodeType && n, H = Y && !0 && t && !t.nodeType && t, D = H && H.exports === Y;
|
|
17957
17954
|
function V(_, N) {
|
|
17958
17955
|
return _.set(N[0], N[1]), _;
|
|
17959
17956
|
}
|
|
@@ -18013,7 +18010,7 @@ _r.exports;
|
|
|
18013
18010
|
var Q = Array.prototype, te = Function.prototype, se = Object.prototype, ue = j["__core-js_shared__"], ie = function() {
|
|
18014
18011
|
var _ = /[^.]+$/.exec(ue && ue.keys && ue.keys.IE_PROTO || "");
|
|
18015
18012
|
return _ ? "Symbol(src)_1." + _ : "";
|
|
18016
|
-
}(), xe = te.toString, we = se.hasOwnProperty, Se = se.toString,
|
|
18013
|
+
}(), xe = te.toString, we = se.hasOwnProperty, Se = se.toString, tt = RegExp(
|
|
18017
18014
|
"^" + xe.call(we).replace(K, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
18018
18015
|
), We = D ? j.Buffer : void 0, qe = j.Symbol, It = j.Uint8Array, De = Ye(Object.getPrototypeOf, Object), ht = Object.create, en = se.propertyIsEnumerable, Cn = Q.splice, tn = Object.getOwnPropertySymbols, He = We ? We.isBuffer : void 0, Zt = Ye(Object.keys, Object), Pt = Tt(j, "DataView"), Ht = Tt(j, "Map"), st = Tt(j, "Promise"), Mt = Tt(j, "Set"), pt = Tt(j, "WeakMap"), Vt = Tt(Object, "create"), nn = gt(Pt), I = gt(Ht), L = gt(st), z = gt(Mt), X = gt(pt), le = qe ? qe.prototype : void 0, de = le ? le.valueOf : void 0;
|
|
18019
18016
|
function Ce(_) {
|
|
@@ -18075,7 +18072,7 @@ _r.exports;
|
|
|
18075
18072
|
return ee < 0 ? F.push([_, N]) : F[ee][1] = N, this;
|
|
18076
18073
|
}
|
|
18077
18074
|
Ue.prototype.clear = ot, Ue.prototype.delete = Ut, Ue.prototype.get = Dt, Ue.prototype.has = En, Ue.prototype.set = rn;
|
|
18078
|
-
function
|
|
18075
|
+
function nt(_) {
|
|
18079
18076
|
var N = -1, F = _ ? _.length : 0;
|
|
18080
18077
|
for (this.clear(); ++N < F; ) {
|
|
18081
18078
|
var ee = _[N];
|
|
@@ -18101,7 +18098,7 @@ _r.exports;
|
|
|
18101
18098
|
function Nn(_, N) {
|
|
18102
18099
|
return an(this, _).set(_, N), this;
|
|
18103
18100
|
}
|
|
18104
|
-
|
|
18101
|
+
nt.prototype.clear = Sn, nt.prototype.delete = Tn, nt.prototype.get = xn, nt.prototype.has = An, nt.prototype.set = Nn;
|
|
18105
18102
|
function ut(_) {
|
|
18106
18103
|
this.__data__ = new Ue(_);
|
|
18107
18104
|
}
|
|
@@ -18123,7 +18120,7 @@ _r.exports;
|
|
|
18123
18120
|
var ee = F.__data__;
|
|
18124
18121
|
if (!Ht || ee.length < e - 1)
|
|
18125
18122
|
return ee.push([_, N]), this;
|
|
18126
|
-
F = this.__data__ = new
|
|
18123
|
+
F = this.__data__ = new nt(ee);
|
|
18127
18124
|
}
|
|
18128
18125
|
return F.set(_, N), this;
|
|
18129
18126
|
}
|
|
@@ -18195,7 +18192,7 @@ _r.exports;
|
|
|
18195
18192
|
function Br(_) {
|
|
18196
18193
|
if (!Bt(_) || Zr(_))
|
|
18197
18194
|
return !1;
|
|
18198
|
-
var N = Rn(_) || Ie(_) ?
|
|
18195
|
+
var N = Rn(_) || Ie(_) ? tt : oe;
|
|
18199
18196
|
return N.test(gt(_));
|
|
18200
18197
|
}
|
|
18201
18198
|
function jr(_) {
|
|
@@ -18399,7 +18396,7 @@ $r.exports;
|
|
|
18399
18396
|
(function(t, n) {
|
|
18400
18397
|
var e = 200, i = "__lodash_hash_undefined__", o = 1, r = 2, s = 9007199254740991, l = "[object Arguments]", c = "[object Array]", f = "[object AsyncFunction]", h = "[object Boolean]", d = "[object Date]", a = "[object Error]", u = "[object Function]", b = "[object GeneratorFunction]", v = "[object Map]", y = "[object Number]", g = "[object Null]", m = "[object Object]", $ = "[object Promise]", p = "[object Proxy]", w = "[object RegExp]", T = "[object Set]", E = "[object String]", S = "[object Symbol]", P = "[object Undefined]", C = "[object WeakMap]", O = "[object ArrayBuffer]", k = "[object DataView]", x = "[object Float32Array]", M = "[object Float64Array]", q = "[object Int8Array]", K = "[object Int16Array]", W = "[object Int32Array]", oe = "[object Uint8Array]", U = "[object Uint8ClampedArray]", R = "[object Uint16Array]", A = "[object Uint32Array]", B = /[\\^$.*+?()[\]{}|]/g, j = /^\[object .+?Constructor\]$/, Y = /^(?:0|[1-9]\d*)$/, H = {};
|
|
18401
18398
|
H[x] = H[M] = H[q] = H[K] = H[W] = H[oe] = H[U] = H[R] = H[A] = !0, H[l] = H[c] = H[O] = H[h] = H[k] = H[d] = H[a] = H[u] = H[v] = H[y] = H[m] = H[w] = H[T] = H[E] = H[C] = !1;
|
|
18402
|
-
var D = typeof
|
|
18399
|
+
var D = typeof et == "object" && et && et.Object === Object && et, V = typeof self == "object" && self && self.Object === Object && self, Z = D || V || Function("return this")(), J = n && !n.nodeType && n, re = J && !0 && t && !t.nodeType && t, ce = re && re.exports === J, _e = ce && D.process, Ee = function() {
|
|
18403
18400
|
try {
|
|
18404
18401
|
return _e && _e.binding && _e.binding("util");
|
|
18405
18402
|
} catch {
|
|
@@ -18456,7 +18453,7 @@ $r.exports;
|
|
|
18456
18453
|
F[++N] = ee;
|
|
18457
18454
|
}), F;
|
|
18458
18455
|
}
|
|
18459
|
-
var Se = Array.prototype,
|
|
18456
|
+
var Se = Array.prototype, tt = Function.prototype, We = Object.prototype, qe = Z["__core-js_shared__"], It = tt.toString, De = We.hasOwnProperty, ht = function() {
|
|
18460
18457
|
var _ = /[^.]+$/.exec(qe && qe.keys && qe.keys.IE_PROTO || "");
|
|
18461
18458
|
return _ ? "Symbol(src)_1." + _ : "";
|
|
18462
18459
|
}(), en = We.toString, Cn = RegExp(
|
|
@@ -18493,7 +18490,7 @@ $r.exports;
|
|
|
18493
18490
|
return this.size += this.has(_) ? 0 : 1, F[_] = le && N === void 0 ? i : N, this;
|
|
18494
18491
|
}
|
|
18495
18492
|
Ue.prototype.clear = ot, Ue.prototype.delete = Ut, Ue.prototype.get = Dt, Ue.prototype.has = En, Ue.prototype.set = rn;
|
|
18496
|
-
function
|
|
18493
|
+
function nt(_) {
|
|
18497
18494
|
var N = -1, F = _ == null ? 0 : _.length;
|
|
18498
18495
|
for (this.clear(); ++N < F; ) {
|
|
18499
18496
|
var ee = _[N];
|
|
@@ -18521,7 +18518,7 @@ $r.exports;
|
|
|
18521
18518
|
var F = this.__data__, ee = gn(F, _);
|
|
18522
18519
|
return ee < 0 ? (++this.size, F.push([_, N])) : F[ee][1] = N, this;
|
|
18523
18520
|
}
|
|
18524
|
-
|
|
18521
|
+
nt.prototype.clear = Sn, nt.prototype.delete = Tn, nt.prototype.get = xn, nt.prototype.has = An, nt.prototype.set = Nn;
|
|
18525
18522
|
function ut(_) {
|
|
18526
18523
|
var N = -1, F = _ == null ? 0 : _.length;
|
|
18527
18524
|
for (this.clear(); ++N < F; ) {
|
|
@@ -18532,7 +18529,7 @@ $r.exports;
|
|
|
18532
18529
|
function In() {
|
|
18533
18530
|
this.size = 0, this.__data__ = {
|
|
18534
18531
|
hash: new Ue(),
|
|
18535
|
-
map: new (I ||
|
|
18532
|
+
map: new (I || nt)(),
|
|
18536
18533
|
string: new Ue()
|
|
18537
18534
|
};
|
|
18538
18535
|
}
|
|
@@ -18564,11 +18561,11 @@ $r.exports;
|
|
|
18564
18561
|
}
|
|
18565
18562
|
hn.prototype.add = hn.prototype.push = Zn, hn.prototype.has = pn;
|
|
18566
18563
|
function Lt(_) {
|
|
18567
|
-
var N = this.__data__ = new
|
|
18564
|
+
var N = this.__data__ = new nt(_);
|
|
18568
18565
|
this.size = N.size;
|
|
18569
18566
|
}
|
|
18570
18567
|
function Pn() {
|
|
18571
|
-
this.__data__ = new
|
|
18568
|
+
this.__data__ = new nt(), this.size = 0;
|
|
18572
18569
|
}
|
|
18573
18570
|
function Dr(_) {
|
|
18574
18571
|
var N = this.__data__, F = N.delete(_);
|
|
@@ -18582,7 +18579,7 @@ $r.exports;
|
|
|
18582
18579
|
}
|
|
18583
18580
|
function Br(_, N) {
|
|
18584
18581
|
var F = this.__data__;
|
|
18585
|
-
if (F instanceof
|
|
18582
|
+
if (F instanceof nt) {
|
|
18586
18583
|
var ee = F.__data__;
|
|
18587
18584
|
if (!I || ee.length < e - 1)
|
|
18588
18585
|
return ee.push([_, N]), this.size = ++F.size, this;
|
|
@@ -18872,7 +18869,7 @@ $r.exports;
|
|
|
18872
18869
|
}
|
|
18873
18870
|
t.exports = Jr;
|
|
18874
18871
|
})($r, $r.exports);
|
|
18875
|
-
var sa = $r.exports, Di = {}, ua =
|
|
18872
|
+
var sa = $r.exports, Di = {}, ua = et && et.__importDefault || function(t) {
|
|
18876
18873
|
return t && t.__esModule ? t : { default: t };
|
|
18877
18874
|
};
|
|
18878
18875
|
Object.defineProperty(Di, "__esModule", { value: !0 });
|
|
@@ -18927,7 +18924,7 @@ function oh() {
|
|
|
18927
18924
|
if (wo)
|
|
18928
18925
|
return fr;
|
|
18929
18926
|
wo = 1;
|
|
18930
|
-
var t =
|
|
18927
|
+
var t = et && et.__importDefault || function(i) {
|
|
18931
18928
|
return i && i.__esModule ? i : { default: i };
|
|
18932
18929
|
};
|
|
18933
18930
|
Object.defineProperty(fr, "__esModule", { value: !0 });
|
|
@@ -18974,7 +18971,7 @@ function da() {
|
|
|
18974
18971
|
if (Oo)
|
|
18975
18972
|
return cr;
|
|
18976
18973
|
Oo = 1;
|
|
18977
|
-
var t =
|
|
18974
|
+
var t = et && et.__importDefault || function(i) {
|
|
18978
18975
|
return i && i.__esModule ? i : { default: i };
|
|
18979
18976
|
};
|
|
18980
18977
|
Object.defineProperty(cr, "__esModule", { value: !0 });
|
|
@@ -18990,7 +18987,7 @@ function da() {
|
|
|
18990
18987
|
i.length = r;
|
|
18991
18988
|
}(e || (e = {})), cr.default = e, cr;
|
|
18992
18989
|
}
|
|
18993
|
-
var Wn =
|
|
18990
|
+
var Wn = et && et.__importDefault || function(t) {
|
|
18994
18991
|
return t && t.__esModule ? t : { default: t };
|
|
18995
18992
|
}, hr = Wn(nh), ah = Wn(la), hi = Wn(sa), qn = Wn(Di), lt = Wn(da()), lh = String.fromCharCode(0), sh = (
|
|
18996
18993
|
/** @class */
|
package/dist/index.umd.cjs
CHANGED
|
@@ -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,jl=(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)},Vl=(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=()=>jl(t,n),t.__tooltip_destroy=e=>Vl(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy)},Ai=t=>{Vt.destroyTooltip(),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)}},d1="",ql={name:"IbSorting",props:{tooltipTitle:{type:String,default:""},hideSortingButton:{type:Boolean,default:!1},tooltipText:{type:String},tooltipPosition:{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:Rl,sortingTypesView:Ll,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},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}},Fl={class:"sorting-wrapper"},Hl=["name"],zl=["aria-label"];function Ul(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",Fl,[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,"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.tooltipContent,e.tooltipPosition]]),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.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,Hl)]),_:1},8,["onClick"]))],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,zl)),[[h,e.tooltipText,e.tooltipPosition]])])}const Kl=_e(ql,[["render",Ul],["__scopeId","data-v-fa3095d2"]]),c1="",Gl={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}},Yl={"aria-label":"breadcrumb"},Wl={class:"breadcrumb"},Zl=["href"],Jl={key:1},Xl=["href"];function Ql(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",Yl,[i.createElementVNode("ul",Wl,[(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,Zl)):i.createCommentVNode("",!0),l===r.last?(i.openBlock(),i.createElementBlock("p",Jl,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,Xl)]),_: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 es=_e(Gl,[["render",Ql],["__scopeId","data-v-5ef772a9"]]),u1="",ts={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}},ns=["for"],rs={key:0,class:"required"};function is(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",rs,"* ")):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,ns)}const dn=_e(ts,[["render",is],["__scopeId","data-v-3e867259"]]),vr={text:"text",password:"password",email:"email",number:"number"},f1="",os={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)},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","update:modelValue",`label:disabled:${globalThis==null?void 0:globalThis.id}`],components:{IbAlert:It,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln},inheritAttrs:!1},as=["aria-invalid","readonly","disabled","id"],ls={class:"settings-wrapper"};function ss(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,as),[[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",ls,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const br=_e(os,[["render",ss],["__scopeId","data-v-7d710724"]]),h1="",ds={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},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.checked=t}},data(){return{checked:this.modelValue?this.modelValue:this.isChecked}},methods:{onChange(){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-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},cs=["aria-checked"],us=["for","tabindex"],fs=["name","id","value","checked","disabled","required"],hs={class:"ib-checkbox-body"},ps={key:0,class:"required"},ms={class:"ib-checkbox-input"},gs={key:1,class:"ib-checkbox-label"},ys={key:0,class:"required"};function vs(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(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[1]||(n[1]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]))}),[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,onClick:n[0]||(n[0]=(...f)=>r.onChange&&r.onChange(...f))},null,8,fs),i.createElementVNode("div",hs,[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",ps,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",ms,[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",gs,[e.required?(i.openBlock(),i.createElementBlock("span",ys,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,us)],10,cs)}const _r=_e(ds,[["render",vs]]),p1="",bs={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.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"],$s={class:"toggle-wrapper",ref:"wrapper"},ws={class:"toggle",ref:"toggle"},ks=["name","checked","id","disabled"],Cs=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),Os={key:0,class:"toggle-label"};function Es(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createTextVNode(" {} "),i.createElementVNode("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",$s,[i.createElementVNode("div",ws,[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,ks),Cs,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",Os,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)],64)}const Di=_e(bs,[["render",Es]]);function Ii(t){return t.scrollHeight>t.clientHeight}const m1="",Ss={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===Ha&&(this.option.isChildrenVisible=!0),t.keyCode===Fa&&(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}},Ts=["aria-selected","aria-label","id"],Ns={key:0,class:"option-label"},xs={key:1,class:"option-label"},As=["innerHTML"],Ds=["innerHTML"],Is={key:2,class:"option-label"};function Ms(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,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:r.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","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",xs,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",Ns,[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,Ds)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,As))],64)):(i.openBlock(),i.createElementBlock("span",Is,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,Ts)),[[p,a.showTooltip?e.option.title:""]])])}const Ps=_e(Ss,[["render",Ms]]);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,jl=(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)},Vl=(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=()=>jl(t,n),t.__tooltip_destroy=e=>Vl(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy)},Ai=t=>{Vt.destroyTooltip(),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)}},d1="",ql={name:"IbSorting",props:{tooltipTitle:{type:String,default:""},hideSortingButton:{type:Boolean,default:!1},tooltipText:{type:String},tooltipPosition:{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:Rl,sortingTypesView:Ll,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},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}},Fl={class:"sorting-wrapper"},Hl=["name"],zl=["aria-label"];function Ul(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",Fl,[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,"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.tooltipContent,e.tooltipPosition]]),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.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,Hl)]),_:1},8,["onClick"]))],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,zl)),[[h,e.tooltipText,e.tooltipPosition]])])}const Kl=_e(ql,[["render",Ul],["__scopeId","data-v-fa3095d2"]]),c1="",Gl={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}},Yl={"aria-label":"breadcrumb"},Wl={class:"breadcrumb"},Zl=["href"],Jl={key:1},Xl=["href"];function Ql(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",Yl,[i.createElementVNode("ul",Wl,[(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,Zl)):i.createCommentVNode("",!0),l===r.last?(i.openBlock(),i.createElementBlock("p",Jl,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,Xl)]),_: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 es=_e(Gl,[["render",Ql],["__scopeId","data-v-5ef772a9"]]),u1="",ts={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}},ns=["for"],rs={key:0,class:"required"};function is(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",rs,"* ")):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,ns)}const dn=_e(ts,[["render",is],["__scopeId","data-v-3e867259"]]),vr={text:"text",password:"password",email:"email",number:"number"},f1="",os={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)},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","update:modelValue",`label:disabled:${globalThis==null?void 0:globalThis.id}`],components:{IbAlert:It,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln},inheritAttrs:!1},as=["aria-invalid","readonly","disabled","id"],ls={class:"settings-wrapper"};function ss(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,as),[[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",ls,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const br=_e(os,[["render",ss],["__scopeId","data-v-7d710724"]]),h1="",ds={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},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.checked=t}},data(){return{checked:this.modelValue?this.modelValue:this.isChecked}},methods:{onChange(){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-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},cs=["aria-checked"],us=["for","tabindex"],fs=["name","id","value","checked","disabled","required"],hs={class:"ib-checkbox-body"},ps={key:0,class:"required"},ms={class:"ib-checkbox-input"},gs={key:1,class:"ib-checkbox-label"},ys={key:0,class:"required"};function vs(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(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[1]||(n[1]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]))}),[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,onClick:n[0]||(n[0]=(...f)=>r.onChange&&r.onChange(...f))},null,8,fs),i.createElementVNode("div",hs,[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",ps,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",ms,[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",gs,[e.required?(i.openBlock(),i.createElementBlock("span",ys,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,us)],10,cs)}const _r=_e(ds,[["render",vs]]),p1="",bs={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.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"],$s={class:"toggle-wrapper",ref:"wrapper"},ws={class:"toggle",ref:"toggle"},ks=["name","checked","id","disabled"],Cs=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),Os={key:0,class:"toggle-label"};function Es(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",$s,[i.createElementVNode("div",ws,[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,ks),Cs,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",Os,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(bs,[["render",Es]]);function Ii(t){return t.scrollHeight>t.clientHeight}const m1="",Ss={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===Ha&&(this.option.isChildrenVisible=!0),t.keyCode===Fa&&(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}},Ts=["aria-selected","aria-label","id"],Ns={key:0,class:"option-label"},xs={key:1,class:"option-label"},As=["innerHTML"],Ds=["innerHTML"],Is={key:2,class:"option-label"};function Ms(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,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:r.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","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",xs,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",Ns,[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,Ds)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,As))],64)):(i.openBlock(),i.createElementBlock("span",Is,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,Ts)),[[p,a.showTooltip?e.option.title:""]])])}const Ps=_e(Ss,[["render",Ms]]);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