@avakhula/ui 0.0.151 → 0.0.153
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as G, createElementBlock as ne, normalizeStyle as On, normalizeClass as ve, resolveComponent as ce, createElementVNode as ae, renderSlot as Te, createVNode as ge, Transition as $r, withCtx as be, withDirectives as Ve, vShow as Ye, createBlock as $e, resolveDynamicComponent as wr, mergeProps as Et, Fragment as rt, renderList as jt, createCommentVNode as he, toDisplayString as we, withModifiers as
|
|
1
|
+
import { openBlock as G, createElementBlock as ne, normalizeStyle as On, normalizeClass as ve, resolveComponent as ce, createElementVNode as ae, renderSlot as Te, createVNode as ge, Transition as $r, withCtx as be, withDirectives as Ve, vShow as Ye, createBlock as $e, resolveDynamicComponent as wr, mergeProps as Et, Fragment as rt, renderList as jt, createCommentVNode as he, toDisplayString as we, withModifiers as ft, resolveDirective as Or, createSlots as Eo, Teleport as ua, createTextVNode as Ke, vModelDynamic as So, withKeys as bn, pushScopeId as _i, popScopeId as $i, vModelText as xo, defineComponent as da, onMounted as ca, onBeforeUnmount as fa, ref as Ri, watch as ei, nextTick as Bi, h as ha, createStaticVNode as pa, createApp as ga } from "vue";
|
|
2
2
|
const Ae = (t, n) => {
|
|
3
3
|
const e = t.__vccOpts || t;
|
|
4
4
|
for (const [i, o] of n)
|
|
@@ -796,7 +796,7 @@ function ll(t, n, e, i, o, r) {
|
|
|
796
796
|
ge(a, {
|
|
797
797
|
class: "close-button",
|
|
798
798
|
kind: "ghost",
|
|
799
|
-
onClick:
|
|
799
|
+
onClick: ft(r.close, ["prevent"])
|
|
800
800
|
}, {
|
|
801
801
|
default: be(() => [
|
|
802
802
|
ge(l, { name: "close-outline" })
|
|
@@ -974,7 +974,7 @@ function $l(t, n, e, i, o, r) {
|
|
|
974
974
|
class: ve(["dropdown-trigger", r.triggerClasses]),
|
|
975
975
|
ref: "dropdown",
|
|
976
976
|
onKeydown: n[0] || (n[0] = (...a) => r.onKeydown && r.onKeydown(...a)),
|
|
977
|
-
onClick: n[1] || (n[1] =
|
|
977
|
+
onClick: n[1] || (n[1] = ft((...a) => r.toggle && r.toggle(...a), ["prevent", "stop"]))
|
|
978
978
|
}, [
|
|
979
979
|
Te(t.$slots, "trigger", { isOpened: o.isOpenedState }, void 0, !0)
|
|
980
980
|
], 34)) : he("", !0),
|
|
@@ -1934,9 +1934,6 @@ const ys = {
|
|
|
1934
1934
|
}
|
|
1935
1935
|
},
|
|
1936
1936
|
mounted() {
|
|
1937
|
-
this.$globalEvents.$on(`label:disabled:${this.for}`, (t) => {
|
|
1938
|
-
this.disabled = t;
|
|
1939
|
-
});
|
|
1940
1937
|
},
|
|
1941
1938
|
data() {
|
|
1942
1939
|
return {
|
|
@@ -1983,7 +1980,7 @@ function $s(t, n, e, i, o, r) {
|
|
|
1983
1980
|
})) : he("", !0)
|
|
1984
1981
|
], 10, bs);
|
|
1985
1982
|
}
|
|
1986
|
-
const Cr = /* @__PURE__ */ Ae(ys, [["render", $s], ["__scopeId", "data-v-
|
|
1983
|
+
const Cr = /* @__PURE__ */ Ae(ys, [["render", $s], ["__scopeId", "data-v-7e58bcd5"]]), ti = {
|
|
1987
1984
|
text: "text",
|
|
1988
1985
|
password: "password",
|
|
1989
1986
|
email: "email",
|
|
@@ -2141,7 +2138,9 @@ function Cs(t, n, e, i, o, r) {
|
|
|
2141
2138
|
class: r.classes,
|
|
2142
2139
|
onInput: n[1] || (n[1] = (s) => r.onInput(s)),
|
|
2143
2140
|
onBlur: n[2] || (n[2] = (s) => r.onBlur(s)),
|
|
2144
|
-
onFocus: n[3] || (n[3] = (s) => r.onFocus(s))
|
|
2141
|
+
onFocus: n[3] || (n[3] = (s) => r.onFocus(s)),
|
|
2142
|
+
onKeypress: n[4] || (n[4] = ft(() => {
|
|
2143
|
+
}, ["stop"]))
|
|
2145
2144
|
}), null, 16, Os), [
|
|
2146
2145
|
[So, o.actualValue]
|
|
2147
2146
|
]),
|
|
@@ -2157,7 +2156,7 @@ function Cs(t, n, e, i, o, r) {
|
|
|
2157
2156
|
"prevent-default": "",
|
|
2158
2157
|
disabled: e.readonly,
|
|
2159
2158
|
"help-text": e.clearButtonMessage,
|
|
2160
|
-
onClick:
|
|
2159
|
+
onClick: ft(r.clearInput, ["prevent"])
|
|
2161
2160
|
}, {
|
|
2162
2161
|
default: be(() => [
|
|
2163
2162
|
ge(a, { name: "close-outline" })
|
|
@@ -2168,9 +2167,10 @@ function Cs(t, n, e, i, o, r) {
|
|
|
2168
2167
|
key: 2,
|
|
2169
2168
|
kind: "ghost",
|
|
2170
2169
|
class: "toggle-password",
|
|
2170
|
+
"prevent-default": "",
|
|
2171
2171
|
disabled: e.readonly,
|
|
2172
2172
|
"help-text": o.showPassword ? e.hidePasswordMessage : e.showPasswordMessage,
|
|
2173
|
-
onClick:
|
|
2173
|
+
onClick: ft(r.toggleShowPassword, ["prevent"])
|
|
2174
2174
|
}, {
|
|
2175
2175
|
default: be(() => [
|
|
2176
2176
|
ge(a, {
|
|
@@ -2187,6 +2187,7 @@ function Cs(t, n, e, i, o, r) {
|
|
|
2187
2187
|
}, {
|
|
2188
2188
|
trigger: be(() => [
|
|
2189
2189
|
ge(d, {
|
|
2190
|
+
"prevent-default": "",
|
|
2190
2191
|
"help-text": e.settingsButtonMessage,
|
|
2191
2192
|
class: "options-trigger",
|
|
2192
2193
|
kind: "ghost"
|
|
@@ -2207,7 +2208,7 @@ function Cs(t, n, e, i, o, r) {
|
|
|
2207
2208
|
], 2)
|
|
2208
2209
|
]);
|
|
2209
2210
|
}
|
|
2210
|
-
const Do = /* @__PURE__ */ Ae(ws, [["render", Cs], ["__scopeId", "data-v-
|
|
2211
|
+
const Do = /* @__PURE__ */ Ae(ws, [["render", Cs], ["__scopeId", "data-v-eb4fcb3b"]]);
|
|
2211
2212
|
const Es = {
|
|
2212
2213
|
name: "IbCheckbox",
|
|
2213
2214
|
model: {
|
|
@@ -2305,7 +2306,7 @@ function Ps(t, n, e, i, o, r) {
|
|
|
2305
2306
|
return G(), ne("label", Et(r.attrs, {
|
|
2306
2307
|
for: e.id,
|
|
2307
2308
|
tabindex: e.disabled ? -1 : 0,
|
|
2308
|
-
onKeypress: n[1] || (n[1] =
|
|
2309
|
+
onKeypress: n[1] || (n[1] = ft((...d) => r.onChange && r.onChange(...d), ["prevent"]))
|
|
2309
2310
|
}), [
|
|
2310
2311
|
ae("input", {
|
|
2311
2312
|
tabindex: "-1",
|
|
@@ -2430,7 +2431,7 @@ function Hs(t, n, e, i, o, r) {
|
|
|
2430
2431
|
const l = ce("ib-icon"), a = ce("ib-tooltip");
|
|
2431
2432
|
return G(), ne("label", {
|
|
2432
2433
|
class: ve(r.classes),
|
|
2433
|
-
onKeypress: n[2] || (n[2] = bn(
|
|
2434
|
+
onKeypress: n[2] || (n[2] = bn(ft((...d) => r.onChange && r.onChange(...d), ["prevent"]), ["space"])),
|
|
2434
2435
|
tabindex: e.disabled ? -1 : 0
|
|
2435
2436
|
}, [
|
|
2436
2437
|
ae("div", Rs, [
|
|
@@ -2444,7 +2445,7 @@ function Hs(t, n, e, i, o, r) {
|
|
|
2444
2445
|
id: e.id,
|
|
2445
2446
|
disabled: e.disabled,
|
|
2446
2447
|
onClick: n[0] || (n[0] = (...d) => r.onChange && r.onChange(...d)),
|
|
2447
|
-
onInput: n[1] || (n[1] =
|
|
2448
|
+
onInput: n[1] || (n[1] = ft(() => {
|
|
2448
2449
|
}, ["stop"]))
|
|
2449
2450
|
}, null, 40, js),
|
|
2450
2451
|
qs,
|
|
@@ -2634,7 +2635,7 @@ function Zs(t, n, e, i, o, r) {
|
|
|
2634
2635
|
"tree-select-option-toggle": this.isToggle && this.isMultiple
|
|
2635
2636
|
}]),
|
|
2636
2637
|
tabindex: "0",
|
|
2637
|
-
onKeydown: n[3] || (n[3] =
|
|
2638
|
+
onKeydown: n[3] || (n[3] = ft((...c) => r.onKeydown && r.onKeydown(...c), ["self"]))
|
|
2638
2639
|
}, [
|
|
2639
2640
|
o.showTooltip ? (G(), $e(l, {
|
|
2640
2641
|
key: 0,
|
|
@@ -2654,7 +2655,7 @@ function Zs(t, n, e, i, o, r) {
|
|
|
2654
2655
|
[Ye, r.hasVisibleChildren]
|
|
2655
2656
|
]),
|
|
2656
2657
|
ae("div", {
|
|
2657
|
-
onClick: n[1] || (n[1] =
|
|
2658
|
+
onClick: n[1] || (n[1] = ft((...c) => r.onChange && r.onChange(...c), ["prevent"])),
|
|
2658
2659
|
class: ve({
|
|
2659
2660
|
disabled: e.option.isDisabled,
|
|
2660
2661
|
"tree-select-option-label": !0,
|
|
@@ -2688,7 +2689,7 @@ function Zs(t, n, e, i, o, r) {
|
|
|
2688
2689
|
Ke(we(e.option.title) + " ", 1),
|
|
2689
2690
|
ge(a, {
|
|
2690
2691
|
name: "star",
|
|
2691
|
-
onClick: n[0] || (n[0] =
|
|
2692
|
+
onClick: n[0] || (n[0] = ft((c) => t.$emit("toggle-bookmark", e.option), ["stop", "prevent"]))
|
|
2692
2693
|
})
|
|
2693
2694
|
]))
|
|
2694
2695
|
], 2)) : e.htmlTitle ? (G(), ne(rt, { key: 1 }, [
|
|
@@ -3783,7 +3784,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
3783
3784
|
"has-clear-button": !e.showClearButton,
|
|
3784
3785
|
"tree-choice-error": e.errorMessage
|
|
3785
3786
|
}]),
|
|
3786
|
-
onClick: n[0] || (n[0] =
|
|
3787
|
+
onClick: n[0] || (n[0] = ft(() => {
|
|
3787
3788
|
}, ["prevent"])),
|
|
3788
3789
|
"aria-label": e.ariaLabel,
|
|
3789
3790
|
"aria-expanded": u
|
|
@@ -3801,7 +3802,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
3801
3802
|
key: 0,
|
|
3802
3803
|
kind: "ghost",
|
|
3803
3804
|
class: "button-clear",
|
|
3804
|
-
onClick:
|
|
3805
|
+
onClick: ft(r.clearValue, ["prevent"]),
|
|
3805
3806
|
"help-text": e.clearButtonMessage
|
|
3806
3807
|
}, {
|
|
3807
3808
|
default: be(() => [
|
|
@@ -4383,7 +4384,7 @@ function Yu(t, n, e, i, o, r) {
|
|
|
4383
4384
|
return G(), ne("label", {
|
|
4384
4385
|
class: ve(r.classes),
|
|
4385
4386
|
for: e.id,
|
|
4386
|
-
onClick: n[2] || (n[2] =
|
|
4387
|
+
onClick: n[2] || (n[2] = ft((...d) => r.onClick && r.onClick(...d), ["prevent"]))
|
|
4387
4388
|
}, [
|
|
4388
4389
|
ae("input", {
|
|
4389
4390
|
type: "radio",
|
|
@@ -4393,7 +4394,7 @@ function Yu(t, n, e, i, o, r) {
|
|
|
4393
4394
|
checked: o.checked,
|
|
4394
4395
|
disabled: e.disabled,
|
|
4395
4396
|
ref: "radio",
|
|
4396
|
-
onInput: n[0] || (n[0] =
|
|
4397
|
+
onInput: n[0] || (n[0] = ft(() => {
|
|
4397
4398
|
}, ["stop"])),
|
|
4398
4399
|
onChange: n[1] || (n[1] = (...d) => r.onChange && r.onChange(...d))
|
|
4399
4400
|
}, null, 40, zu),
|
|
@@ -4694,7 +4695,7 @@ function Hi(t, n) {
|
|
|
4694
4695
|
var ri = function(t) {
|
|
4695
4696
|
return t instanceof Array ? t : [t];
|
|
4696
4697
|
};
|
|
4697
|
-
function
|
|
4698
|
+
function mt(t, n, e) {
|
|
4698
4699
|
if (e === !0)
|
|
4699
4700
|
return t.classList.add(n);
|
|
4700
4701
|
t.classList.remove(n);
|
|
@@ -5007,7 +5008,7 @@ function dd(t, n) {
|
|
|
5007
5008
|
config: ct(ct({}, _n), Je.defaultConfig),
|
|
5008
5009
|
l10n: Un
|
|
5009
5010
|
};
|
|
5010
|
-
e.parseDate = pi({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = v, e._setHoursFromDate = s, e._positionCalendar = te, e.changeMonth = A, e.changeYear = V, e.clear = B, e.close = j, e.onMouseOver = _e, e._createElement = qe, e.createDay = x, e.destroy = Y, e.isEnabled = Z, e.jumpToDate = m, e.updateValue =
|
|
5011
|
+
e.parseDate = pi({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = v, e._setHoursFromDate = s, e._positionCalendar = te, e.changeMonth = A, e.changeYear = V, e.clear = B, e.close = j, e.onMouseOver = _e, e._createElement = qe, e.createDay = x, e.destroy = Y, e.isEnabled = Z, e.jumpToDate = m, e.updateValue = pt, e.open = Ie, e.redraw = ie, e.set = tt, e.setDate = je, e.toggle = tn;
|
|
5011
5012
|
function i() {
|
|
5012
5013
|
e.utils = {
|
|
5013
5014
|
getDaysInMonth: function(I, L) {
|
|
@@ -5016,7 +5017,7 @@ function dd(t, n) {
|
|
|
5016
5017
|
};
|
|
5017
5018
|
}
|
|
5018
5019
|
function o() {
|
|
5019
|
-
e.element = e.input = t, e.isOpen = !1, Ge(), Q(),
|
|
5020
|
+
e.element = e.input = t, e.isOpen = !1, Ge(), Q(), ht(), De(), i(), e.isMobile || w(), g(), (e.selectedDates.length || e.config.noCalendar) && (e.config.enableTime && s(e.config.noCalendar ? e.latestSelectedDateObj : void 0), pt(!1)), a();
|
|
5020
5021
|
var I = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
5021
5022
|
!e.isMobile && I && te(), Fe("onReady");
|
|
5022
5023
|
}
|
|
@@ -5043,7 +5044,7 @@ function dd(t, n) {
|
|
|
5043
5044
|
}
|
|
5044
5045
|
I !== void 0 && I.type !== "blur" && nn(I);
|
|
5045
5046
|
var X = e._input.value;
|
|
5046
|
-
c(),
|
|
5047
|
+
c(), pt(), e._input.value !== X && e._debouncedChange();
|
|
5047
5048
|
}
|
|
5048
5049
|
function f(I, L) {
|
|
5049
5050
|
return I % 12 + 12 * Ct(L === e.l10n.amPM[1]);
|
|
@@ -5160,7 +5161,7 @@ function dd(t, n) {
|
|
|
5160
5161
|
}
|
|
5161
5162
|
e.rContainer = qe("div", "flatpickr-rContainer"), e.rContainer.appendChild(oe()), e.daysContainer || (e.daysContainer = qe("div", "flatpickr-days"), e.daysContainer.tabIndex = -1), k(), e.rContainer.appendChild(e.daysContainer), e.innerContainer.appendChild(e.rContainer), I.appendChild(e.innerContainer);
|
|
5162
5163
|
}
|
|
5163
|
-
e.config.enableTime && I.appendChild(W()),
|
|
5164
|
+
e.config.enableTime && I.appendChild(W()), mt(e.calendarContainer, "rangeMode", e.config.mode === "range"), mt(e.calendarContainer, "animate", e.config.animate === !0), mt(e.calendarContainer, "multiMonth", e.config.showMonths > 1), e.calendarContainer.appendChild(I);
|
|
5164
5165
|
var le = e.config.appendTo !== void 0 && e.config.appendTo.nodeType !== void 0;
|
|
5165
5166
|
if ((e.config.inline || e.config.static) && (e.calendarContainer.classList.add(e.config.inline ? "inline" : "static"), e.config.inline && (!le && e.element.parentNode ? e.element.parentNode.insertBefore(e.calendarContainer, e._input.nextSibling) : e.config.appendTo !== void 0 && e.config.appendTo.appendChild(e.calendarContainer)), e.config.static)) {
|
|
5166
5167
|
var de = qe("div", "flatpickr-wrapper");
|
|
@@ -5170,7 +5171,7 @@ function dd(t, n) {
|
|
|
5170
5171
|
}
|
|
5171
5172
|
function x(I, L, z, X) {
|
|
5172
5173
|
var le = Z(L, !0), de = qe("span", I, L.getDate().toString());
|
|
5173
|
-
return de.dateObj = L, de.$i = X, de.setAttribute("aria-label", e.formatDate(L, e.config.ariaDateFormat)), I.indexOf("hidden") === -1 && Ot(L, e.now) === 0 && (e.todayDateElem = de, de.classList.add("today"), de.setAttribute("aria-current", "date")), le ? (de.tabIndex = -1, Nt(L) && (de.classList.add("selected"), e.selectedDateElem = de, e.config.mode === "range" && (
|
|
5174
|
+
return de.dateObj = L, de.$i = X, de.setAttribute("aria-label", e.formatDate(L, e.config.ariaDateFormat)), I.indexOf("hidden") === -1 && Ot(L, e.now) === 0 && (e.todayDateElem = de, de.classList.add("today"), de.setAttribute("aria-current", "date")), le ? (de.tabIndex = -1, Nt(L) && (de.classList.add("selected"), e.selectedDateElem = de, e.config.mode === "range" && (mt(de, "startRange", e.selectedDates[0] && Ot(L, e.selectedDates[0], !0) === 0), mt(de, "endRange", e.selectedDates[1] && Ot(L, e.selectedDates[1], !0) === 0), I === "nextMonthDay" && de.classList.add("inRange")))) : de.classList.add("flatpickr-disabled"), e.config.mode === "range" && Ft(L) && !Nt(L) && de.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && I !== "prevMonthDay" && X % 7 === 6 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(L) + "</span>"), Fe("onDayCreate", de), de;
|
|
5174
5175
|
}
|
|
5175
5176
|
function E(I) {
|
|
5176
5177
|
I.focus(), e.config.mode === "range" && _e(I);
|
|
@@ -5258,14 +5259,14 @@ function dd(t, n) {
|
|
|
5258
5259
|
return e.__hidePrevMonthArrow;
|
|
5259
5260
|
},
|
|
5260
5261
|
set: function(I) {
|
|
5261
|
-
e.__hidePrevMonthArrow !== I && (
|
|
5262
|
+
e.__hidePrevMonthArrow !== I && (mt(e.prevMonthNav, "flatpickr-disabled", I), e.__hidePrevMonthArrow = I);
|
|
5262
5263
|
}
|
|
5263
5264
|
}), Object.defineProperty(e, "_hideNextMonthArrow", {
|
|
5264
5265
|
get: function() {
|
|
5265
5266
|
return e.__hideNextMonthArrow;
|
|
5266
5267
|
},
|
|
5267
5268
|
set: function(I) {
|
|
5268
|
-
e.__hideNextMonthArrow !== I && (
|
|
5269
|
+
e.__hideNextMonthArrow !== I && (mt(e.nextMonthNav, "flatpickr-disabled", I), e.__hideNextMonthArrow = I);
|
|
5269
5270
|
}
|
|
5270
5271
|
}), e.currentYearElement = e.yearElements[0], lt(), e.monthNav;
|
|
5271
5272
|
}
|
|
@@ -5492,11 +5493,11 @@ function dd(t, n) {
|
|
|
5492
5493
|
switch (I.key) {
|
|
5493
5494
|
case e.l10n.amPM[0].charAt(0):
|
|
5494
5495
|
case e.l10n.amPM[0].charAt(0).toLowerCase():
|
|
5495
|
-
e.amPM.textContent = e.l10n.amPM[0], c(),
|
|
5496
|
+
e.amPM.textContent = e.l10n.amPM[0], c(), pt();
|
|
5496
5497
|
break;
|
|
5497
5498
|
case e.l10n.amPM[1].charAt(0):
|
|
5498
5499
|
case e.l10n.amPM[1].charAt(0).toLowerCase():
|
|
5499
|
-
e.amPM.textContent = e.l10n.amPM[1], c(),
|
|
5500
|
+
e.amPM.textContent = e.l10n.amPM[1], c(), pt();
|
|
5500
5501
|
break;
|
|
5501
5502
|
}
|
|
5502
5503
|
(z || H(L)) && Fe("onKeyDown", I);
|
|
@@ -5545,7 +5546,7 @@ function dd(t, n) {
|
|
|
5545
5546
|
var z = e.config["_" + I + "Date"] = e.parseDate(L, e.config.dateFormat), X = e.config["_" + (I === "min" ? "max" : "min") + "Date"];
|
|
5546
5547
|
z !== void 0 && (e[I === "min" ? "minDateHasTime" : "maxDateHasTime"] = z.getHours() > 0 || z.getMinutes() > 0 || z.getSeconds() > 0), e.selectedDates && (e.selectedDates = e.selectedDates.filter(function(le) {
|
|
5547
5548
|
return Z(le);
|
|
5548
|
-
}), !e.selectedDates.length && I === "min" && s(z),
|
|
5549
|
+
}), !e.selectedDates.length && I === "min" && s(z), pt()), e.daysContainer && (ie(), z !== void 0 ? e.currentYearElement[I] = z.getFullYear().toString() : e.currentYearElement.removeAttribute(I), e.currentYearElement.disabled = !!X && z !== void 0 && X.getFullYear() === z.getFullYear());
|
|
5549
5550
|
};
|
|
5550
5551
|
}
|
|
5551
5552
|
function Ge() {
|
|
@@ -5646,11 +5647,11 @@ function dd(t, n) {
|
|
|
5646
5647
|
var L = I || e._positionElement, z = Array.prototype.reduce.call(e.calendarContainer.children, function(st, Nn) {
|
|
5647
5648
|
return st + Nn.offsetHeight;
|
|
5648
5649
|
}, 0), X = e.calendarContainer.offsetWidth, le = e.config.position.split(" "), de = le[0], Ce = le.length > 1 ? le[1] : null, me = L.getBoundingClientRect(), Me = window.innerHeight - me.bottom, pe = de === "above" || de !== "below" && Me < z && me.top > z, ke = window.pageYOffset + me.top + (pe ? -z - 2 : L.offsetHeight + 2);
|
|
5649
|
-
if (
|
|
5650
|
+
if (mt(e.calendarContainer, "arrowTop", !pe), mt(e.calendarContainer, "arrowBottom", pe), !e.config.inline) {
|
|
5650
5651
|
var Re = window.pageXOffset + me.left, Ue = !1, it = !1;
|
|
5651
|
-
Ce === "center" ? (Re -= (X - me.width) / 2, Ue = !0) : Ce === "right" && (Re -= X - me.width, it = !0),
|
|
5652
|
+
Ce === "center" ? (Re -= (X - me.width) / 2, Ue = !0) : Ce === "right" && (Re -= X - me.width, it = !0), mt(e.calendarContainer, "arrowLeft", !Ue && !it), mt(e.calendarContainer, "arrowCenter", Ue), mt(e.calendarContainer, "arrowRight", it);
|
|
5652
5653
|
var Vt = window.document.body.offsetWidth - (window.pageXOffset + me.right), Mt = Re + X > window.document.body.offsetWidth, Cn = Vt + X > window.document.body.offsetWidth;
|
|
5653
|
-
if (
|
|
5654
|
+
if (mt(e.calendarContainer, "rightMost", Mt), !e.config.static)
|
|
5654
5655
|
if (e.calendarContainer.style.top = ke + "px", !Mt)
|
|
5655
5656
|
e.calendarContainer.style.left = Re + "px", e.calendarContainer.style.right = "auto";
|
|
5656
5657
|
else if (!Cn)
|
|
@@ -5660,7 +5661,7 @@ function dd(t, n) {
|
|
|
5660
5661
|
if (rn === void 0)
|
|
5661
5662
|
return;
|
|
5662
5663
|
var nt = window.document.body.offsetWidth, En = Math.max(0, nt / 2 - X / 2), Sn = ".flatpickr-calendar.centerMost:before", xn = ".flatpickr-calendar.centerMost:after", Tn = rn.cssRules.length, An = "{left:" + me.left + "px;right:auto;}";
|
|
5663
|
-
|
|
5664
|
+
mt(e.calendarContainer, "rightMost", !1), mt(e.calendarContainer, "centerMost", !0), rn.insertRule(Sn + "," + xn + An, Tn), e.calendarContainer.style.left = En + "px", e.calendarContainer.style.right = "auto";
|
|
5664
5665
|
}
|
|
5665
5666
|
}
|
|
5666
5667
|
}
|
|
@@ -5710,7 +5711,7 @@ function dd(t, n) {
|
|
|
5710
5711
|
var me = e.currentYear !== le.getFullYear();
|
|
5711
5712
|
e.currentYear = le.getFullYear(), e.currentMonth = le.getMonth(), me && (Fe("onYearChange"), T()), Fe("onMonthChange");
|
|
5712
5713
|
}
|
|
5713
|
-
if (lt(), k(),
|
|
5714
|
+
if (lt(), k(), pt(), !de && e.config.mode !== "range" && e.config.showMonths === 1 ? E(X) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
|
|
5714
5715
|
var Me = e.config.mode === "single" && !e.config.enableTime, pe = e.config.mode === "range" && e.selectedDates.length === 2 && !e.config.enableTime;
|
|
5715
5716
|
(Me || pe) && xe();
|
|
5716
5717
|
}
|
|
@@ -5740,7 +5741,7 @@ function dd(t, n) {
|
|
|
5740
5741
|
e.config[I] = L, Se[I] !== void 0 ? Se[I].forEach(function(X) {
|
|
5741
5742
|
return X();
|
|
5742
5743
|
}) : ni.indexOf(I) > -1 && (e.config[I] = ri(L));
|
|
5743
|
-
e.redraw(),
|
|
5744
|
+
e.redraw(), pt(!0);
|
|
5744
5745
|
}
|
|
5745
5746
|
function We(I, L) {
|
|
5746
5747
|
var z = [];
|
|
@@ -5778,7 +5779,7 @@ function dd(t, n) {
|
|
|
5778
5779
|
function je(I, L, z) {
|
|
5779
5780
|
if (L === void 0 && (L = !1), z === void 0 && (z = e.config.dateFormat), I !== 0 && !I || I instanceof Array && I.length === 0)
|
|
5780
5781
|
return e.clear(L);
|
|
5781
|
-
We(I, z), e.latestSelectedDateObj = e.selectedDates[e.selectedDates.length - 1], e.redraw(), m(void 0, L), s(), e.selectedDates.length === 0 && e.clear(!1),
|
|
5782
|
+
We(I, z), e.latestSelectedDateObj = e.selectedDates[e.selectedDates.length - 1], e.redraw(), m(void 0, L), s(), e.selectedDates.length === 0 && e.clear(!1), pt(L), L && Fe("onChange");
|
|
5782
5783
|
}
|
|
5783
5784
|
function At(I) {
|
|
5784
5785
|
return I.slice().map(function(L) {
|
|
@@ -5795,7 +5796,7 @@ function dd(t, n) {
|
|
|
5795
5796
|
var I = e.config.defaultDate || ((e.input.nodeName === "INPUT" || e.input.nodeName === "TEXTAREA") && e.input.placeholder && e.input.value === e.input.placeholder ? null : e.input.value);
|
|
5796
5797
|
I && We(I, e.config.dateFormat), e._initialDate = e.selectedDates.length > 0 ? e.selectedDates[0] : e.config.minDate && e.config.minDate.getTime() > e.now.getTime() ? e.config.minDate : e.config.maxDate && e.config.maxDate.getTime() < e.now.getTime() ? e.config.maxDate : e.now, e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth(), e.selectedDates.length > 0 && (e.latestSelectedDateObj = e.selectedDates[0]), e.config.minTime !== void 0 && (e.config.minTime = e.parseDate(e.config.minTime, "H:i")), e.config.maxTime !== void 0 && (e.config.maxTime = e.parseDate(e.config.maxTime, "H:i")), e.minDateHasTime = !!e.config.minDate && (e.config.minDate.getHours() > 0 || e.config.minDate.getMinutes() > 0 || e.config.minDate.getSeconds() > 0), e.maxDateHasTime = !!e.config.maxDate && (e.config.maxDate.getHours() > 0 || e.config.maxDate.getMinutes() > 0 || e.config.maxDate.getSeconds() > 0);
|
|
5797
5798
|
}
|
|
5798
|
-
function
|
|
5799
|
+
function ht() {
|
|
5799
5800
|
if (e.input = ze(), !e.input) {
|
|
5800
5801
|
e.config.errorHandler(new Error("Invalid input element specified"));
|
|
5801
5802
|
return;
|
|
@@ -5859,7 +5860,7 @@ function dd(t, n) {
|
|
|
5859
5860
|
return e.config.mode !== "range" || e.config.enableTime || le.indexOf(z) === X;
|
|
5860
5861
|
}).join(e.config.mode !== "range" ? e.config.conjunction : e.l10n.rangeSeparator);
|
|
5861
5862
|
}
|
|
5862
|
-
function
|
|
5863
|
+
function pt(I) {
|
|
5863
5864
|
I === void 0 && (I = !0), e.mobileInput !== void 0 && e.mobileFormatStr && (e.mobileInput.value = e.latestSelectedDateObj !== void 0 ? e.formatDate(e.latestSelectedDateObj, e.mobileFormatStr) : ""), e.input.value = It(e.config.dateFormat), e.altInput !== void 0 && (e.altInput.value = It(e.config.altFormat)), I !== !1 && Fe("onValueUpdate");
|
|
5864
5865
|
}
|
|
5865
5866
|
function Ht(I) {
|
|
@@ -9472,7 +9473,7 @@ const Sf = {
|
|
|
9472
9473
|
e[i] = o;
|
|
9473
9474
|
return e;
|
|
9474
9475
|
};
|
|
9475
|
-
function
|
|
9476
|
+
function vt(t) {
|
|
9476
9477
|
const n = Ui.options[t];
|
|
9477
9478
|
return typeof n > "u" ? Ui.options[t] : n;
|
|
9478
9479
|
}
|
|
@@ -9488,65 +9489,65 @@ const Tf = {
|
|
|
9488
9489
|
},
|
|
9489
9490
|
allCountries: {
|
|
9490
9491
|
type: Array,
|
|
9491
|
-
default: () =>
|
|
9492
|
+
default: () => vt("allCountries")
|
|
9492
9493
|
},
|
|
9493
9494
|
autoFormat: {
|
|
9494
9495
|
type: Boolean,
|
|
9495
|
-
default: () =>
|
|
9496
|
+
default: () => vt("autoFormat")
|
|
9496
9497
|
},
|
|
9497
9498
|
customValidate: {
|
|
9498
9499
|
type: [Boolean, RegExp],
|
|
9499
|
-
default: () =>
|
|
9500
|
+
default: () => vt("customValidate")
|
|
9500
9501
|
},
|
|
9501
9502
|
defaultCountry: {
|
|
9502
9503
|
// Default country code, ie: 'AU'
|
|
9503
9504
|
// Will override the current country of user
|
|
9504
9505
|
type: [String, Number],
|
|
9505
|
-
default: () =>
|
|
9506
|
+
default: () => vt("defaultCountry")
|
|
9506
9507
|
},
|
|
9507
9508
|
disabled: {
|
|
9508
9509
|
type: Boolean,
|
|
9509
|
-
default: () =>
|
|
9510
|
+
default: () => vt("disabled")
|
|
9510
9511
|
},
|
|
9511
9512
|
autoDefaultCountry: {
|
|
9512
9513
|
type: Boolean,
|
|
9513
|
-
default: () =>
|
|
9514
|
+
default: () => vt("autoDefaultCountry")
|
|
9514
9515
|
},
|
|
9515
9516
|
dropdownOptions: {
|
|
9516
9517
|
type: Object,
|
|
9517
|
-
default: () =>
|
|
9518
|
+
default: () => vt("dropdownOptions")
|
|
9518
9519
|
},
|
|
9519
9520
|
ignoredCountries: {
|
|
9520
9521
|
type: Array,
|
|
9521
|
-
default: () =>
|
|
9522
|
+
default: () => vt("ignoredCountries")
|
|
9522
9523
|
},
|
|
9523
9524
|
inputOptions: {
|
|
9524
9525
|
type: Object,
|
|
9525
|
-
default: () =>
|
|
9526
|
+
default: () => vt("inputOptions")
|
|
9526
9527
|
},
|
|
9527
9528
|
invalidMsg: {
|
|
9528
9529
|
type: String,
|
|
9529
|
-
default: () =>
|
|
9530
|
+
default: () => vt("invalidMsg")
|
|
9530
9531
|
},
|
|
9531
9532
|
mode: {
|
|
9532
9533
|
type: String,
|
|
9533
|
-
default: () =>
|
|
9534
|
+
default: () => vt("mode")
|
|
9534
9535
|
},
|
|
9535
9536
|
onlyCountries: {
|
|
9536
9537
|
type: Array,
|
|
9537
|
-
default: () =>
|
|
9538
|
+
default: () => vt("onlyCountries")
|
|
9538
9539
|
},
|
|
9539
9540
|
preferredCountries: {
|
|
9540
9541
|
type: Array,
|
|
9541
|
-
default: () =>
|
|
9542
|
+
default: () => vt("preferredCountries")
|
|
9542
9543
|
},
|
|
9543
9544
|
validCharactersOnly: {
|
|
9544
9545
|
type: Boolean,
|
|
9545
|
-
default: () =>
|
|
9546
|
+
default: () => vt("validCharactersOnly")
|
|
9546
9547
|
},
|
|
9547
9548
|
styleClasses: {
|
|
9548
9549
|
type: [String, Array, Object],
|
|
9549
|
-
default: () =>
|
|
9550
|
+
default: () => vt("styleClasses")
|
|
9550
9551
|
}
|
|
9551
9552
|
},
|
|
9552
9553
|
data() {
|
|
@@ -9834,7 +9835,7 @@ function Bf(t, n, e, i, o, r) {
|
|
|
9834
9835
|
placeholder: r.sortedCountries.length ? r.sortedCountries[0].name : "",
|
|
9835
9836
|
type: "text",
|
|
9836
9837
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => o.searchQuery = a),
|
|
9837
|
-
onClick: n[1] || (n[1] =
|
|
9838
|
+
onClick: n[1] || (n[1] = ft(() => {
|
|
9838
9839
|
}, ["stop"]))
|
|
9839
9840
|
}, null, 8, Pf)), [
|
|
9840
9841
|
[xo, o.searchQuery]
|
|
@@ -12885,12 +12886,12 @@ var Xo = { exports: {} };
|
|
|
12885
12886
|
if (De.collapsed != null && De.collapsed !== je.collapsed || De.empty != null && De.empty !== je.empty || De.offset != null && De.offset !== je.offset)
|
|
12886
12887
|
return !1;
|
|
12887
12888
|
if (Array.isArray(De.format)) {
|
|
12888
|
-
if (De.format.every(function(
|
|
12889
|
-
return je.format[
|
|
12889
|
+
if (De.format.every(function(ht) {
|
|
12890
|
+
return je.format[ht] == null;
|
|
12890
12891
|
}))
|
|
12891
12892
|
return !1;
|
|
12892
|
-
} else if (r(De.format) === "object" && !Object.keys(De.format).every(function(
|
|
12893
|
-
return De.format[
|
|
12893
|
+
} else if (r(De.format) === "object" && !Object.keys(De.format).every(function(ht) {
|
|
12894
|
+
return De.format[ht] === !0 ? je.format[ht] != null : De.format[ht] === !1 ? je.format[ht] == null : (0, c.default)(De.format[ht], je.format[ht]);
|
|
12894
12895
|
}))
|
|
12895
12896
|
return !1;
|
|
12896
12897
|
return De.prefix != null && !De.prefix.test(je.prefix) || De.suffix != null && !De.suffix.test(je.suffix) ? !1 : De.handler.call(J, Ee, je) !== !0;
|
|
@@ -17700,7 +17701,7 @@ br.exports;
|
|
|
17700
17701
|
return b ? "Symbol(src)_1." + b : "";
|
|
17701
17702
|
}(), xe = te.toString, Oe = se.hasOwnProperty, Se = se.toString, tt = RegExp(
|
|
17702
17703
|
"^" + xe.call(Oe).replace(K, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
17703
|
-
), We = D ? j.Buffer : void 0, je = j.Symbol, At = j.Uint8Array, De = Ge(Object.getPrototypeOf, Object),
|
|
17704
|
+
), We = D ? j.Buffer : void 0, je = j.Symbol, At = j.Uint8Array, De = Ge(Object.getPrototypeOf, Object), ht = Object.create, en = se.propertyIsEnumerable, kn = Q.splice, tn = Object.getOwnPropertySymbols, Fe = We ? We.isBuffer : void 0, Wt = Ge(Object.keys, Object), Nt = St(j, "DataView"), Ft = St(j, "Map"), lt = St(j, "Promise"), It = St(j, "Set"), pt = St(j, "WeakMap"), Ht = St(Object, "create"), nn = gt(Nt), I = gt(Ft), L = gt(lt), z = gt(It), X = gt(pt), le = je ? je.prototype : void 0, de = le ? le.valueOf : void 0;
|
|
17704
17705
|
function Ce(b) {
|
|
17705
17706
|
var N = -1, F = b ? b.length : 0;
|
|
17706
17707
|
for (this.clear(); ++N < F; ) {
|
|
@@ -17868,7 +17869,7 @@ br.exports;
|
|
|
17868
17869
|
}), Be;
|
|
17869
17870
|
}
|
|
17870
17871
|
function Dr(b) {
|
|
17871
|
-
return Lt(b) ?
|
|
17872
|
+
return Lt(b) ? ht(b) : {};
|
|
17872
17873
|
}
|
|
17873
17874
|
function Lr(b, N, F) {
|
|
17874
17875
|
var ee = N(b);
|
|
@@ -17881,7 +17882,7 @@ br.exports;
|
|
|
17881
17882
|
if (!Lt(b) || Zr(b))
|
|
17882
17883
|
return !1;
|
|
17883
17884
|
var N = Ln(b) || Ie(b) ? tt : oe;
|
|
17884
|
-
return N.test(
|
|
17885
|
+
return N.test(gt(b));
|
|
17885
17886
|
}
|
|
17886
17887
|
function jr(b) {
|
|
17887
17888
|
if (!Xn(b))
|
|
@@ -17953,8 +17954,8 @@ br.exports;
|
|
|
17953
17954
|
return Br(F) ? F : void 0;
|
|
17954
17955
|
}
|
|
17955
17956
|
var Ut = tn ? Ge(tn, Object) : Xr, zt = Rr;
|
|
17956
|
-
(Nt && zt(new Nt(new ArrayBuffer(1))) != x || Ft && zt(new Ft()) != s || lt && zt(lt.resolve()) != v || It && zt(new It()) != g ||
|
|
17957
|
-
var N = Se.call(b), F = N == _ ? b.constructor : void 0, ee = F ?
|
|
17957
|
+
(Nt && zt(new Nt(new ArrayBuffer(1))) != x || Ft && zt(new Ft()) != s || lt && zt(lt.resolve()) != v || It && zt(new It()) != g || pt && zt(new pt()) != p) && (zt = function(b) {
|
|
17958
|
+
var N = Se.call(b), F = N == _ ? b.constructor : void 0, ee = F ? gt(F) : void 0;
|
|
17958
17959
|
if (ee)
|
|
17959
17960
|
switch (ee) {
|
|
17960
17961
|
case nn:
|
|
@@ -18024,7 +18025,7 @@ br.exports;
|
|
|
18024
18025
|
var N = b && b.constructor, F = typeof N == "function" && N.prototype || se;
|
|
18025
18026
|
return b === F;
|
|
18026
18027
|
}
|
|
18027
|
-
function
|
|
18028
|
+
function gt(b) {
|
|
18028
18029
|
if (b != null) {
|
|
18029
18030
|
try {
|
|
18030
18031
|
return xe.call(b);
|
|
@@ -18141,12 +18142,12 @@ _r.exports;
|
|
|
18141
18142
|
F[++N] = ee;
|
|
18142
18143
|
}), F;
|
|
18143
18144
|
}
|
|
18144
|
-
var Se = Array.prototype, tt = Function.prototype, We = Object.prototype, je = Z["__core-js_shared__"], At = tt.toString, De = We.hasOwnProperty,
|
|
18145
|
+
var Se = Array.prototype, tt = Function.prototype, We = Object.prototype, je = Z["__core-js_shared__"], At = tt.toString, De = We.hasOwnProperty, ht = function() {
|
|
18145
18146
|
var b = /[^.]+$/.exec(je && je.keys && je.keys.IE_PROTO || "");
|
|
18146
18147
|
return b ? "Symbol(src)_1." + b : "";
|
|
18147
18148
|
}(), en = We.toString, kn = RegExp(
|
|
18148
18149
|
"^" + At.call(De).replace(B, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
18149
|
-
), tn = fe ? Z.Buffer : void 0, Fe = Z.Symbol, Wt = Z.Uint8Array, Nt = We.propertyIsEnumerable, Ft = Se.splice, lt = Fe ? Fe.toStringTag : void 0, It = Object.getOwnPropertySymbols,
|
|
18150
|
+
), tn = fe ? Z.Buffer : void 0, Fe = Z.Symbol, Wt = Z.Uint8Array, Nt = We.propertyIsEnumerable, Ft = Se.splice, lt = Fe ? Fe.toStringTag : void 0, It = Object.getOwnPropertySymbols, pt = tn ? tn.isBuffer : void 0, Ht = xe(Object.keys, Object), nn = Ut(Z, "DataView"), I = Ut(Z, "Map"), L = Ut(Z, "Promise"), z = Ut(Z, "Set"), X = Ut(Z, "WeakMap"), le = Ut(Object, "create"), de = gt(nn), Ce = gt(I), me = gt(L), Me = gt(z), pe = gt(X), ke = Fe ? Fe.prototype : void 0, Re = ke ? ke.valueOf : void 0;
|
|
18150
18151
|
function Ue(b) {
|
|
18151
18152
|
var N = -1, F = b == null ? 0 : b.length;
|
|
18152
18153
|
for (this.clear(); ++N < F; ) {
|
|
@@ -18329,7 +18330,7 @@ _r.exports;
|
|
|
18329
18330
|
if (!nr(b) || Wr(b))
|
|
18330
18331
|
return !1;
|
|
18331
18332
|
var N = tr(b) ? kn : j;
|
|
18332
|
-
return N.test(
|
|
18333
|
+
return N.test(gt(b));
|
|
18333
18334
|
}
|
|
18334
18335
|
function Hr(b) {
|
|
18335
18336
|
return Lt(b) && Ln(b.length) && !!H[on(b)];
|
|
@@ -18468,7 +18469,7 @@ _r.exports;
|
|
|
18468
18469
|
}));
|
|
18469
18470
|
} : Xr, Dt = on;
|
|
18470
18471
|
(nn && Dt(new nn(new ArrayBuffer(1))) != k || I && Dt(new I()) != v || L && Dt(L.resolve()) != $ || z && Dt(new z()) != x || X && Dt(new X()) != C) && (Dt = function(b) {
|
|
18471
|
-
var N = on(b), F = N == m ? b.constructor : void 0, ee = F ?
|
|
18472
|
+
var N = on(b), F = N == m ? b.constructor : void 0, ee = F ? gt(F) : "";
|
|
18472
18473
|
if (ee)
|
|
18473
18474
|
switch (ee) {
|
|
18474
18475
|
case de:
|
|
@@ -18492,7 +18493,7 @@ _r.exports;
|
|
|
18492
18493
|
return N == "string" || N == "number" || N == "symbol" || N == "boolean" ? b !== "__proto__" : b === null;
|
|
18493
18494
|
}
|
|
18494
18495
|
function Wr(b) {
|
|
18495
|
-
return !!
|
|
18496
|
+
return !!ht && ht in b;
|
|
18496
18497
|
}
|
|
18497
18498
|
function Zr(b) {
|
|
18498
18499
|
var N = b && b.constructor, F = typeof N == "function" && N.prototype || We;
|
|
@@ -18501,7 +18502,7 @@ _r.exports;
|
|
|
18501
18502
|
function Xn(b) {
|
|
18502
18503
|
return en.call(b);
|
|
18503
18504
|
}
|
|
18504
|
-
function
|
|
18505
|
+
function gt(b) {
|
|
18505
18506
|
if (b != null) {
|
|
18506
18507
|
try {
|
|
18507
18508
|
return At.call(b);
|
|
@@ -18525,7 +18526,7 @@ _r.exports;
|
|
|
18525
18526
|
function Dn(b) {
|
|
18526
18527
|
return b != null && Ln(b.length) && !tr(b);
|
|
18527
18528
|
}
|
|
18528
|
-
var mn =
|
|
18529
|
+
var mn = pt || Qr;
|
|
18529
18530
|
function Jr(b, N) {
|
|
18530
18531
|
return Jn(b, N);
|
|
18531
18532
|
}
|