@rezkit/toursui 0.2.54 → 0.2.55
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/toursui.cjs +1 -1
- package/dist/toursui.cjs.map +1 -1
- package/dist/toursui.js +81 -79
- package/dist/toursui.js.map +1 -1
- package/package.json +1 -1
package/dist/toursui.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
var Hu = Object.defineProperty;
|
2
2
|
var Fu = (e, t, r) => t in e ? Hu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
3
|
var mi = (e, t, r) => (Fu(e, typeof t != "symbol" ? t + "" : t, r), r);
|
4
|
-
import { defineComponent as He, toRef as
|
4
|
+
import { defineComponent as He, toRef as pe, openBlock as T, createElementBlock as F, normalizeClass as Pe, renderSlot as xe, computed as Q, pushScopeId as to, popScopeId as ro, createBlock as $e, resolveComponent as ca, createVNode as et, toDisplayString as Ze, createCommentVNode as ae, Fragment as je, renderList as vt, withScopeId as tl, ref as te, unref as D, createElementVNode as ce, withModifiers as it, withDirectives as Ar, vModelCheckbox as zu, createTextVNode as qt, inject as Wu, watch as bt, withKeys as Ee, vModelText as rl, vModelSelect as Zu, withCtx as Be, toRefs as bn, onMounted as Wt, onUnmounted as Wn, mergeProps as At, reactive as un, useSlots as cn, nextTick as Rr, isRef as Qo, createSlots as zt, normalizeProps as Ot, guardReactiveProps as Zt, Transition as Da, resolveDynamicComponent as ao, Teleport as qu, h as Gu, render as Xo, normalizeStyle as lr, onBeforeUpdate as Ku, vShow as Cn, getCurrentScope as Qu, onScopeDispose as Xu } from "vue";
|
5
5
|
var Qe;
|
6
6
|
(function(e) {
|
7
7
|
e.assertEqual = (n) => n;
|
@@ -2734,7 +2734,7 @@ const Qc = /* @__PURE__ */ He({
|
|
2734
2734
|
layout: {}
|
2735
2735
|
},
|
2736
2736
|
setup(e) {
|
2737
|
-
const r =
|
2737
|
+
const r = pe(e, "layout");
|
2738
2738
|
return (a, n) => (T(), F("div", {
|
2739
2739
|
class: Pe(["rk-filters", { "rk-filters--horizontal": r.value === "horizontal" }])
|
2740
2740
|
}, [
|
@@ -2747,7 +2747,7 @@ const Qc = /* @__PURE__ */ He({
|
|
2747
2747
|
layout: {}
|
2748
2748
|
},
|
2749
2749
|
setup(e) {
|
2750
|
-
const r =
|
2750
|
+
const r = pe(e, "layout");
|
2751
2751
|
return (a, n) => (T(), F("div", {
|
2752
2752
|
class: Pe(["rk-results", { "rk-results--fluid": r.value === "fluid" }])
|
2753
2753
|
}, [
|
@@ -2760,7 +2760,7 @@ const Qc = /* @__PURE__ */ He({
|
|
2760
2760
|
layout: {}
|
2761
2761
|
},
|
2762
2762
|
setup(e) {
|
2763
|
-
const r =
|
2763
|
+
const r = pe(e, "layout");
|
2764
2764
|
return (a, n) => (T(), F("div", {
|
2765
2765
|
class: Pe(["rk-tags", { "rk-tags--vertical": r.value === "vertical" }])
|
2766
2766
|
}, [
|
@@ -3045,7 +3045,7 @@ const Dd = /* @__PURE__ */ He({
|
|
3045
3045
|
},
|
3046
3046
|
emits: ["update"],
|
3047
3047
|
setup(e, { emit: t }) {
|
3048
|
-
const r = e, a =
|
3048
|
+
const r = e, a = pe(r, "activeColour"), n = pe(r, "styleOpts"), i = pe(r, "pages"), o = te(1);
|
3049
3049
|
function s() {
|
3050
3050
|
t("update", o.value);
|
3051
3051
|
}
|
@@ -3074,7 +3074,7 @@ const Sd = { class: "rkts-results-count__label" }, Cd = { class: "rkts-results-c
|
|
3074
3074
|
styleOpts: {}
|
3075
3075
|
},
|
3076
3076
|
setup(e) {
|
3077
|
-
const t = e, r =
|
3077
|
+
const t = e, r = pe(t, "label"), a = pe(t, "count"), n = pe(t, "message"), i = pe(t, "styleOpts");
|
3078
3078
|
return (o, s) => (T(), F("div", {
|
3079
3079
|
class: Pe(["rkts-results-count", [i.value]])
|
3080
3080
|
}, [
|
@@ -3090,7 +3090,7 @@ const Sd = { class: "rkts-results-count__label" }, Cd = { class: "rkts-results-c
|
|
3090
3090
|
level: {}
|
3091
3091
|
},
|
3092
3092
|
setup(e) {
|
3093
|
-
const t = e, r =
|
3093
|
+
const t = e, r = pe(t, "styleOpts"), a = pe(t, "level");
|
3094
3094
|
return (n, i) => (T(), F("div", {
|
3095
3095
|
class: Pe(["rkts-list-container", { "rkts-list-container--deeper": a.value }])
|
3096
3096
|
}, [
|
@@ -3143,7 +3143,7 @@ const fl = /* @__PURE__ */ $d(Od, [["render", Id], ["__scopeId", "data-v-c43d1c2
|
|
3143
3143
|
},
|
3144
3144
|
emits: ["update:modelValue"],
|
3145
3145
|
setup(e, { emit: t }) {
|
3146
|
-
const r = e, a =
|
3146
|
+
const r = e, a = pe(r, "term"), n = pe(r, "title"), i = pe(r, "count"), o = pe(r, "prefix"), s = pe(r, "loading"), u = pe(r, "activeSection"), c = Q({
|
3147
3147
|
get() {
|
3148
3148
|
return r.modelValue || [];
|
3149
3149
|
},
|
@@ -3207,7 +3207,7 @@ const fl = /* @__PURE__ */ $d(Od, [["render", Id], ["__scopeId", "data-v-c43d1c2
|
|
3207
3207
|
data: {}
|
3208
3208
|
},
|
3209
3209
|
setup(e) {
|
3210
|
-
const t = e, r =
|
3210
|
+
const t = e, r = pe(t, "customCard"), a = pe(t, "data");
|
3211
3211
|
return (n, i) => (T(), F("div", Fd, [
|
3212
3212
|
r.value ? xe(n.$slots, "default", {
|
3213
3213
|
key: 0,
|
@@ -3352,7 +3352,7 @@ const xf = {
|
|
3352
3352
|
},
|
3353
3353
|
emits: ["process:chosen-suggestion", "process:more-items"],
|
3354
3354
|
setup(e, { emit: t }) {
|
3355
|
-
const r = e, a =
|
3355
|
+
const r = e, a = pe(r, "type"), n = pe(r, "title"), i = pe(r, "suggestions"), o = pe(r, "moreCount"), s = pe(r, "moreText"), u = function(v, h, k) {
|
3356
3356
|
t("process:chosen-suggestion", {
|
3357
3357
|
option: v,
|
3358
3358
|
type: h,
|
@@ -3564,7 +3564,7 @@ const xf = {
|
|
3564
3564
|
},
|
3565
3565
|
emits: ["process:clearFilter"],
|
3566
3566
|
setup(e, { emit: t }) {
|
3567
|
-
const r = e, a =
|
3567
|
+
const r = e, a = pe(r, "filterCount"), n = pe(r, "filterValue"), i = pe(r, "filterText"), o = r.eventType ? pe(r, "eventType") : te("emit"), s = Q(
|
3568
3568
|
() => a.value !== void 0 && a.value !== null && a.value >= 0
|
3569
3569
|
), u = function() {
|
3570
3570
|
o.value === "window" ? window.postMessage({
|
@@ -3588,7 +3588,7 @@ const xf = {
|
|
3588
3588
|
},
|
3589
3589
|
emits: ["process:clearFilters"],
|
3590
3590
|
setup(e, { emit: t }) {
|
3591
|
-
const r = e, a =
|
3591
|
+
const r = e, a = pe(r, "styleOpts"), n = r.text ? pe(r, "text") : te("Clear"), i = function() {
|
3592
3592
|
t("process:clearFilters");
|
3593
3593
|
};
|
3594
3594
|
return (o, s) => (T(), F("button", {
|
@@ -3608,7 +3608,7 @@ const xf = {
|
|
3608
3608
|
},
|
3609
3609
|
emits: ["process:applyFilters"],
|
3610
3610
|
setup(e, { emit: t }) {
|
3611
|
-
const r = e, a =
|
3611
|
+
const r = e, a = pe(r, "styleOpts"), n = r.text ? pe(r, "text") : te("Apply"), i = function() {
|
3612
3612
|
t("process:applyFilters");
|
3613
3613
|
};
|
3614
3614
|
return (o, s) => (T(), F("button", {
|
@@ -3643,7 +3643,7 @@ const xf = {
|
|
3643
3643
|
},
|
3644
3644
|
emits: ["update:modelValue"],
|
3645
3645
|
setup(e, { emit: t }) {
|
3646
|
-
const r = e, a =
|
3646
|
+
const r = e, a = pe(r, "loading"), n = pe(r, "disabled"), i = pe(r, "readonly"), o = pe(r, "selectMessage"), s = pe(r, "customOptions"), u = pe(r, "groupLabel"), c = i.value ? te(!0) : te(!1), d = n.value ? te(!0) : te(!1), v = o.value ? te(o.value) : te("Please Select"), h = Q({
|
3647
3647
|
get() {
|
3648
3648
|
const k = r.modelValue || "default-option";
|
3649
3649
|
return a.value ? "loading-options" : k;
|
@@ -4420,7 +4420,7 @@ const Ph = { key: 0 }, Mh = /* @__PURE__ */ He({
|
|
4420
4420
|
},
|
4421
4421
|
emits: ["update:modelValue"],
|
4422
4422
|
setup(e, { emit: t }) {
|
4423
|
-
const r = e, a =
|
4423
|
+
const r = e, a = pe(r, "headingOnly"), n = pe(r, "term"), i = pe(r, "prefix"), o = pe(r, "styleOpts"), s = pe(r, "subOptions"), u = pe(r, "activeSection"), c = r.count ? pe(r, "count") : te(0), d = pe(r, "title"), v = pe(r, "open"), h = te(), k = te(), g = te(), M = typeof s.value == "boolean" ? te(!0) : te(Ch(s.value)), $ = Q(() => typeof s.value == "boolean" ? M.value : M.value && M.value.length > 0), x = Q({
|
4424
4424
|
get() {
|
4425
4425
|
return r.modelValue || [];
|
4426
4426
|
},
|
@@ -4483,31 +4483,33 @@ const Ph = { key: 0 }, Mh = /* @__PURE__ */ He({
|
|
4483
4483
|
text: {},
|
4484
4484
|
count: {},
|
4485
4485
|
prefix: {},
|
4486
|
-
term: {}
|
4486
|
+
term: {},
|
4487
|
+
activeSection: { type: Boolean }
|
4487
4488
|
},
|
4488
4489
|
emits: ["update:modelValue"],
|
4489
4490
|
setup(e, { emit: t }) {
|
4490
|
-
const r = e, a =
|
4491
|
+
const r = e, a = pe(r, "term"), n = pe(r, "prefix"), i = pe(r, "styleOpts"), o = r.count ? pe(r, "count") : te(0), s = pe(r, "title"), u = pe(r, "text"), c = pe(r, "activeSection"), d = Q({
|
4491
4492
|
get() {
|
4492
4493
|
return r.modelValue || [];
|
4493
4494
|
},
|
4494
|
-
set(
|
4495
|
-
t("update:modelValue",
|
4495
|
+
set(v) {
|
4496
|
+
t("update:modelValue", v);
|
4496
4497
|
}
|
4497
4498
|
});
|
4498
|
-
return (
|
4499
|
+
return (v, h) => (T(), F("div", {
|
4499
4500
|
class: Pe(["rkts-descriptive-list", [i.value]])
|
4500
4501
|
}, [
|
4501
4502
|
ce("div", $h, [
|
4502
4503
|
ce("ul", Oh, [
|
4503
4504
|
et(no, {
|
4504
|
-
modelValue:
|
4505
|
-
"onUpdate:modelValue":
|
4505
|
+
modelValue: d.value,
|
4506
|
+
"onUpdate:modelValue": h[0] || (h[0] = (k) => d.value = k),
|
4506
4507
|
title: s.value,
|
4507
4508
|
count: D(o),
|
4508
4509
|
term: a.value,
|
4509
|
-
prefix: n.value
|
4510
|
-
|
4510
|
+
prefix: n.value,
|
4511
|
+
"active-section": c.value
|
4512
|
+
}, null, 8, ["modelValue", "title", "count", "term", "prefix", "active-section"])
|
4511
4513
|
])
|
4512
4514
|
]),
|
4513
4515
|
ce("div", Ah, [
|
@@ -4973,9 +4975,9 @@ var Ss = Ol(function(e, t) {
|
|
4973
4975
|
if (br(J, l.cssClasses.touchArea), J.setAttribute("data-handle", String(S)), l.keyboardSupport && (J.setAttribute("tabindex", "0"), J.addEventListener("keydown", function(ue) {
|
4974
4976
|
return Eu(ue, S);
|
4975
4977
|
})), l.handleAttributes !== void 0) {
|
4976
|
-
var
|
4977
|
-
Object.keys(
|
4978
|
-
J.setAttribute(ue,
|
4978
|
+
var ve = l.handleAttributes[S];
|
4979
|
+
Object.keys(ve).forEach(function(ue) {
|
4980
|
+
J.setAttribute(ue, ve[ue]);
|
4979
4981
|
});
|
4980
4982
|
}
|
4981
4983
|
return J.setAttribute("role", "slider"), J.setAttribute("aria-orientation", l.ort ? "vertical" : "horizontal"), S === 0 ? $(J, l.cssClasses.handleLower) : S === l.handles - 1 && $(J, l.cssClasses.handleUpper), U;
|
@@ -5015,9 +5017,9 @@ var Ss = Ol(function(e, t) {
|
|
5015
5017
|
});
|
5016
5018
|
}
|
5017
5019
|
function xu() {
|
5018
|
-
Ra("update" + m.aria), ci("update" + m.aria, function(y, S, U, J,
|
5020
|
+
Ra("update" + m.aria), ci("update" + m.aria, function(y, S, U, J, ve) {
|
5019
5021
|
Bt.forEach(function(ue) {
|
5020
|
-
var Ie = se[ue], ke = gn(mt, ue, 0, !0, !0, !0), _t = gn(mt, ue, 100, !0, !0, !0), ht =
|
5022
|
+
var Ie = se[ue], ke = gn(mt, ue, 0, !0, !0, !0), _t = gn(mt, ue, 100, !0, !0, !0), ht = ve[ue], st = String(l.ariaFormat.to(U[ue]));
|
5021
5023
|
ke = Re.fromStepping(ke).toFixed(1), _t = Re.fromStepping(_t).toFixed(1), ht = Re.fromStepping(ht).toFixed(1), Ie.children[0].setAttribute("aria-valuemin", ke), Ie.children[0].setAttribute("aria-valuemax", _t), Ie.children[0].setAttribute("aria-valuenow", ht), Ie.children[0].setAttribute("aria-valuetext", st);
|
5022
5024
|
});
|
5023
5025
|
});
|
@@ -5032,8 +5034,8 @@ var Ss = Ol(function(e, t) {
|
|
5032
5034
|
J[S] = S * U;
|
5033
5035
|
return J.push(100), Uo(J, y.stepped);
|
5034
5036
|
}
|
5035
|
-
return y.mode === r.PipsMode.Positions ? Uo(y.values, y.stepped) : y.mode === r.PipsMode.Values ? y.stepped ? y.values.map(function(
|
5036
|
-
return Re.fromStepping(Re.getStep(Re.toStepping(
|
5037
|
+
return y.mode === r.PipsMode.Positions ? Uo(y.values, y.stepped) : y.mode === r.PipsMode.Values ? y.stepped ? y.values.map(function(ve) {
|
5038
|
+
return Re.fromStepping(Re.getStep(Re.toStepping(ve)));
|
5037
5039
|
}) : y.values : [];
|
5038
5040
|
}
|
5039
5041
|
function Uo(y, S) {
|
@@ -5045,10 +5047,10 @@ var Ss = Ol(function(e, t) {
|
|
5045
5047
|
function S(ht, st) {
|
5046
5048
|
return Number((ht + st).toFixed(7));
|
5047
5049
|
}
|
5048
|
-
var U = Tu(y), J = {},
|
5050
|
+
var U = Tu(y), J = {}, ve = Re.xVal[0], ue = Re.xVal[Re.xVal.length - 1], Ie = !1, ke = !1, _t = 0;
|
5049
5051
|
return (U = u(U.slice().sort(function(ht, st) {
|
5050
5052
|
return ht - st;
|
5051
|
-
})))[0] !==
|
5053
|
+
})))[0] !== ve && (U.unshift(ve), Ie = !0), U[U.length - 1] !== ue && (U.push(ue), ke = !0), U.forEach(function(ht, st) {
|
5052
5054
|
var ct, rt, St, It, Tt, Wo, pi, Zo, qo, Go, vi = ht, sa = U[st + 1], Ko = y.mode === r.PipsMode.Steps;
|
5053
5055
|
for (Ko && (ct = Re.xNumSteps[st]), ct || (ct = sa - vi), sa === void 0 && (sa = vi), ct = Math.max(ct, 1e-7), rt = vi; rt <= sa; rt = S(rt, ct)) {
|
5054
5056
|
for (Zo = (Tt = (It = Re.toStepping(rt)) - _t) / (y.density || 1), Go = Tt / (qo = Math.round(Zo)), St = 1; St <= qo; St += 1)
|
@@ -5058,7 +5060,7 @@ var Ss = Ol(function(e, t) {
|
|
5058
5060
|
}), J;
|
5059
5061
|
}
|
5060
5062
|
function Su(y, S, U) {
|
5061
|
-
var J,
|
5063
|
+
var J, ve, ue = oa.createElement("div"), Ie = ((J = {})[r.PipsType.None] = "", J[r.PipsType.NoValue] = l.cssClasses.valueNormal, J[r.PipsType.LargeValue] = l.cssClasses.valueLarge, J[r.PipsType.SmallValue] = l.cssClasses.valueSub, J), ke = ((ve = {})[r.PipsType.None] = "", ve[r.PipsType.NoValue] = l.cssClasses.markerNormal, ve[r.PipsType.LargeValue] = l.cssClasses.markerLarge, ve[r.PipsType.SmallValue] = l.cssClasses.markerSub, ve), _t = [l.cssClasses.valueHorizontal, l.cssClasses.valueVertical], ht = [l.cssClasses.markerHorizontal, l.cssClasses.markerVertical];
|
5062
5064
|
function st(rt, St) {
|
5063
5065
|
var It = St === l.cssClasses.value, Tt = It ? Ie : ke;
|
5064
5066
|
return St + " " + (It ? _t : ht)[l.ort] + " " + Tt[rt];
|
@@ -5078,8 +5080,8 @@ var Ss = Ol(function(e, t) {
|
|
5078
5080
|
}
|
5079
5081
|
function si(y) {
|
5080
5082
|
oi();
|
5081
|
-
var S = Du(y), U = y.filter, J = y.format || { to: function(
|
5082
|
-
return String(Math.round(
|
5083
|
+
var S = Du(y), U = y.filter, J = y.format || { to: function(ve) {
|
5084
|
+
return String(Math.round(ve));
|
5083
5085
|
} };
|
5084
5086
|
return We = xt.appendChild(Su(S, U, J));
|
5085
5087
|
}
|
@@ -5088,16 +5090,16 @@ var Ss = Ol(function(e, t) {
|
|
5088
5090
|
return l.ort === 0 ? y.width || fe[S] : y.height || fe[S];
|
5089
5091
|
}
|
5090
5092
|
function jr(y, S, U, J) {
|
5091
|
-
var
|
5093
|
+
var ve = function(Ie) {
|
5092
5094
|
var ke = Cu(Ie, J.pageOffset, J.target || S);
|
5093
5095
|
return !!ke && !(Ro() && !J.doNotReject) && !(V(xt, l.cssClasses.tap) && !J.doNotReject) && !(y === Xe.start && ke.buttons !== void 0 && ke.buttons > 1) && (!J.hover || !ke.buttons) && (Ft || ke.preventDefault(), ke.calcPoint = ke.points[l.ort], void U(ke, J));
|
5094
5096
|
}, ue = [];
|
5095
5097
|
return y.split(" ").forEach(function(Ie) {
|
5096
|
-
S.addEventListener(Ie,
|
5098
|
+
S.addEventListener(Ie, ve, !!Ft && { passive: !0 }), ue.push([Ie, ve]);
|
5097
5099
|
}), ue;
|
5098
5100
|
}
|
5099
5101
|
function Cu(y, S, U) {
|
5100
|
-
var J = y.type.indexOf("touch") === 0,
|
5102
|
+
var J = y.type.indexOf("touch") === 0, ve = y.type.indexOf("mouse") === 0, ue = y.type.indexOf("pointer") === 0, Ie = 0, ke = 0;
|
5101
5103
|
if (y.type.indexOf("MSPointer") === 0 && (ue = !0), y.type === "mousedown" && !y.buttons && !y.touches)
|
5102
5104
|
return !1;
|
5103
5105
|
if (J) {
|
@@ -5117,7 +5119,7 @@ var Ss = Ol(function(e, t) {
|
|
5117
5119
|
Ie = st.pageX, ke = st.pageY;
|
5118
5120
|
}
|
5119
5121
|
}
|
5120
|
-
return S = S || K(oa), (
|
5122
|
+
return S = S || K(oa), (ve || ue) && (Ie = y.clientX + S.x, ke = y.clientY + S.y), y.pageOffset = S, y.points = [Ie, ke], y.cursor = ve || ue, y;
|
5121
5123
|
}
|
5122
5124
|
function Vo(y) {
|
5123
5125
|
var S = 100 * (y - d(fe, l.ort)) / Yo();
|
@@ -5125,10 +5127,10 @@ var Ss = Ol(function(e, t) {
|
|
5125
5127
|
}
|
5126
5128
|
function Pu(y) {
|
5127
5129
|
var S = 100, U = !1;
|
5128
|
-
return se.forEach(function(J,
|
5129
|
-
if (!ni(
|
5130
|
-
var ue = mt[
|
5131
|
-
(Ie < S || Ie <= S && y > ue || Ie === 100 && S === 100) && (U =
|
5130
|
+
return se.forEach(function(J, ve) {
|
5131
|
+
if (!ni(ve)) {
|
5132
|
+
var ue = mt[ve], Ie = Math.abs(ue - y);
|
5133
|
+
(Ie < S || Ie <= S && y > ue || Ie === 100 && S === 100) && (U = ve, S = Ie);
|
5132
5134
|
}
|
5133
5135
|
}), U;
|
5134
5136
|
}
|
@@ -5156,8 +5158,8 @@ var Ss = Ol(function(e, t) {
|
|
5156
5158
|
if (!S.handleNumbers.some(ni)) {
|
5157
5159
|
var U;
|
5158
5160
|
S.handleNumbers.length === 1 && (U = se[S.handleNumbers[0]].children[0], ai += 1, $(U, l.cssClasses.active)), y.stopPropagation();
|
5159
|
-
var J = [],
|
5160
|
-
J.push.apply(J,
|
5161
|
+
var J = [], ve = jr(Xe.move, mn, $u, { target: y.target, handle: U, connect: S.connect, listeners: J, startCalcPoint: y.calcPoint, baseSize: Yo(), pageOffset: y.pageOffset, handleNumbers: S.handleNumbers, buttonsProperty: y.buttons, locations: mt.slice() }), ue = jr(Xe.end, mn, li, { target: y.target, handle: U, listeners: J, doNotReject: !0, handleNumbers: S.handleNumbers }), Ie = jr("mouseout", mn, Mu, { target: y.target, handle: U, listeners: J, doNotReject: !0, handleNumbers: S.handleNumbers });
|
5162
|
+
J.push.apply(J, ve.concat(ue, Ie)), y.cursor && (hn.style.cursor = getComputedStyle(y.target).cursor, se.length > 1 && $(xt, l.cssClasses.drag), hn.addEventListener("selectstart", s, !1)), S.handleNumbers.forEach(function(ke) {
|
5161
5163
|
yt("start", ke);
|
5162
5164
|
});
|
5163
5165
|
}
|
@@ -5169,8 +5171,8 @@ var Ss = Ol(function(e, t) {
|
|
5169
5171
|
}
|
5170
5172
|
function Au(y) {
|
5171
5173
|
var S = Vo(y.calcPoint), U = Re.getStep(S), J = Re.fromStepping(U);
|
5172
|
-
Object.keys(_r).forEach(function(
|
5173
|
-
|
5174
|
+
Object.keys(_r).forEach(function(ve) {
|
5175
|
+
ve.split(".")[0] === "hover" && _r[ve].forEach(function(ue) {
|
5174
5176
|
ue.call(_n, J);
|
5175
5177
|
});
|
5176
5178
|
});
|
@@ -5178,9 +5180,9 @@ var Ss = Ol(function(e, t) {
|
|
5178
5180
|
function Eu(y, S) {
|
5179
5181
|
if (Ro() || ni(S))
|
5180
5182
|
return !1;
|
5181
|
-
var U = ["Left", "Right"], J = ["Down", "Up"],
|
5182
|
-
l.dir && !l.ort ? U.reverse() : l.ort && !l.dir && (J.reverse(),
|
5183
|
-
var Ie, ke = y.key.replace("Arrow", ""), _t = ke ===
|
5183
|
+
var U = ["Left", "Right"], J = ["Down", "Up"], ve = ["PageDown", "PageUp"], ue = ["Home", "End"];
|
5184
|
+
l.dir && !l.ort ? U.reverse() : l.ort && !l.dir && (J.reverse(), ve.reverse());
|
5185
|
+
var Ie, ke = y.key.replace("Arrow", ""), _t = ke === ve[0], ht = ke === ve[1], st = ke === J[0] || ke === U[0] || _t, ct = ke === J[1] || ke === U[1] || ht, rt = ke === ue[0], St = ke === ue[1];
|
5184
5186
|
if (!(st || ct || rt || St))
|
5185
5187
|
return !0;
|
5186
5188
|
if (y.preventDefault(), ct || st) {
|
@@ -5197,8 +5199,8 @@ var Ss = Ol(function(e, t) {
|
|
5197
5199
|
jr(Xe.start, S.children[0], ui, { handleNumbers: [U] });
|
5198
5200
|
}), y.tap && jr(Xe.start, fe, Ou, {}), y.hover && jr(Xe.move, fe, Au, { hover: !0 }), y.drag && Se.forEach(function(S, U) {
|
5199
5201
|
if (S !== !1 && U !== 0 && U !== Se.length - 1) {
|
5200
|
-
var J = se[U - 1],
|
5201
|
-
$(S, l.cssClasses.draggable), y.fixed && (ue.push(J.children[0]), ue.push(
|
5202
|
+
var J = se[U - 1], ve = se[U], ue = [S], Ie = [J, ve], ke = [U - 1, U];
|
5203
|
+
$(S, l.cssClasses.draggable), y.fixed && (ue.push(J.children[0]), ue.push(ve.children[0])), y.dragAll && (Ie = se, ke = Bt), ue.forEach(function(_t) {
|
5202
5204
|
jr(Xe.start, _t, ui, { handles: Ie, handleNumbers: ke, connect: S });
|
5203
5205
|
});
|
5204
5206
|
}
|
@@ -5215,27 +5217,27 @@ var Ss = Ol(function(e, t) {
|
|
5215
5217
|
function Ra(y) {
|
5216
5218
|
var S = y && y.split(".")[0], U = S ? y.substring(S.length) : y;
|
5217
5219
|
Object.keys(_r).forEach(function(J) {
|
5218
|
-
var
|
5219
|
-
S && S !==
|
5220
|
+
var ve = J.split(".")[0], ue = J.substring(ve.length);
|
5221
|
+
S && S !== ve || U && U !== ue || Ru(ue) && U !== ue || delete _r[J];
|
5220
5222
|
});
|
5221
5223
|
}
|
5222
5224
|
function yt(y, S, U) {
|
5223
5225
|
Object.keys(_r).forEach(function(J) {
|
5224
|
-
var
|
5225
|
-
y ===
|
5226
|
+
var ve = J.split(".")[0];
|
5227
|
+
y === ve && _r[J].forEach(function(ue) {
|
5226
5228
|
ue.call(_n, yr.map(l.format.to), S, yr.slice(), U || !1, mt.slice(), _n);
|
5227
5229
|
});
|
5228
5230
|
});
|
5229
5231
|
}
|
5230
|
-
function gn(y, S, U, J,
|
5232
|
+
function gn(y, S, U, J, ve, ue, Ie) {
|
5231
5233
|
var ke;
|
5232
|
-
return se.length > 1 && !l.events.unconstrained && (J && S > 0 && (ke = Re.getAbsoluteDistance(y[S - 1], l.margin, !1), U = Math.max(U, ke)),
|
5234
|
+
return se.length > 1 && !l.events.unconstrained && (J && S > 0 && (ke = Re.getAbsoluteDistance(y[S - 1], l.margin, !1), U = Math.max(U, ke)), ve && S < se.length - 1 && (ke = Re.getAbsoluteDistance(y[S + 1], l.margin, !0), U = Math.min(U, ke))), se.length > 1 && l.limit && (J && S > 0 && (ke = Re.getAbsoluteDistance(y[S - 1], l.limit, !1), U = Math.min(U, ke)), ve && S < se.length - 1 && (ke = Re.getAbsoluteDistance(y[S + 1], l.limit, !0), U = Math.max(U, ke))), l.padding && (S === 0 && (ke = Re.getAbsoluteDistance(0, l.padding[0], !1), U = Math.max(U, ke)), S === se.length - 1 && (ke = Re.getAbsoluteDistance(100, l.padding[1], !0), U = Math.min(U, ke))), Ie || (U = Re.getStep(U)), !((U = k(U)) === y[S] && !ue) && U;
|
5233
5235
|
}
|
5234
5236
|
function di(y, S) {
|
5235
5237
|
var U = l.ort;
|
5236
5238
|
return (U ? S : y) + ", " + (U ? y : S);
|
5237
5239
|
}
|
5238
|
-
function Lo(y, S, U, J,
|
5240
|
+
function Lo(y, S, U, J, ve) {
|
5239
5241
|
var ue = U.slice(), Ie = J[0], ke = l.events.smoothSteps, _t = [!y, y], ht = [y, !y];
|
5240
5242
|
J = J.slice(), y && J.reverse(), J.length > 1 ? J.forEach(function(ct, rt) {
|
5241
5243
|
var St = gn(ue, ct, ue[ct] + S, _t[rt], ht[rt], !1, ke);
|
@@ -5246,7 +5248,7 @@ var Ss = Ol(function(e, t) {
|
|
5246
5248
|
st = Br(ct, U[ct] + S, _t[rt], ht[rt], !1, ke) || st;
|
5247
5249
|
}), st && (J.forEach(function(ct) {
|
5248
5250
|
yt("update", ct), yt("slide", ct);
|
5249
|
-
}),
|
5251
|
+
}), ve != null && yt("drag", Ie));
|
5250
5252
|
}
|
5251
5253
|
function jo(y, S) {
|
5252
5254
|
return l.dir ? 100 - y - S : y;
|
@@ -5262,27 +5264,27 @@ var Ss = Ol(function(e, t) {
|
|
5262
5264
|
se[y].style.zIndex = String(U);
|
5263
5265
|
});
|
5264
5266
|
}
|
5265
|
-
function Br(y, S, U, J,
|
5266
|
-
return
|
5267
|
+
function Br(y, S, U, J, ve, ue) {
|
5268
|
+
return ve || (S = gn(mt, y, S, U, J, !1, ue)), S !== !1 && (Iu(y, S), !0);
|
5267
5269
|
}
|
5268
5270
|
function Bo(y) {
|
5269
5271
|
if (Se[y]) {
|
5270
5272
|
var S = 0, U = 100;
|
5271
5273
|
y !== 0 && (S = mt[y - 1]), y !== Se.length - 1 && (U = mt[y]);
|
5272
|
-
var J = U - S,
|
5273
|
-
Se[y].style[l.transformRule] =
|
5274
|
+
var J = U - S, ve = "translate(" + di(jo(S, J) + "%", "0") + ")", ue = "scale(" + di(J / 100, "1") + ")";
|
5275
|
+
Se[y].style[l.transformRule] = ve + " " + ue;
|
5274
5276
|
}
|
5275
5277
|
}
|
5276
5278
|
function Ho(y, S) {
|
5277
5279
|
return y === null || y === !1 || y === void 0 ? mt[S] : (typeof y == "number" && (y = String(y)), (y = l.format.from(y)) !== !1 && (y = Re.toStepping(y)), y === !1 || isNaN(y) ? mt[S] : y);
|
5278
5280
|
}
|
5279
5281
|
function yn(y, S, U) {
|
5280
|
-
var J = g(y),
|
5281
|
-
S = S === void 0 || S, l.animate && !
|
5282
|
+
var J = g(y), ve = mt[0] === void 0;
|
5283
|
+
S = S === void 0 || S, l.animate && !ve && h(xt, l.cssClasses.tap, l.animationDuration), Bt.forEach(function(ke) {
|
5282
5284
|
Br(ke, Ho(J[ke], ke), !0, !1, U);
|
5283
5285
|
});
|
5284
5286
|
var ue = Bt.length === 1 ? 0 : 1;
|
5285
|
-
if (
|
5287
|
+
if (ve && Re.hasNoSize() && (U = !0, mt[0] = 0, Bt.length > 1)) {
|
5286
5288
|
var Ie = 100 / (Bt.length - 1);
|
5287
5289
|
Bt.forEach(function(ke) {
|
5288
5290
|
mt[ke] = ke * Ie;
|
@@ -5318,12 +5320,12 @@ var Ss = Ol(function(e, t) {
|
|
5318
5320
|
delete xt.noUiSlider;
|
5319
5321
|
}
|
5320
5322
|
function zo(y) {
|
5321
|
-
var S = mt[y], U = Re.getNearbySteps(S), J = yr[y],
|
5323
|
+
var S = mt[y], U = Re.getNearbySteps(S), J = yr[y], ve = U.thisStep.step, ue = null;
|
5322
5324
|
if (l.snap)
|
5323
5325
|
return [J - U.stepBefore.startValue || null, U.stepAfter.startValue - J || null];
|
5324
|
-
|
5326
|
+
ve !== !1 && J + ve > U.stepAfter.startValue && (ve = U.stepAfter.startValue - J), ue = J > U.thisStep.startValue ? U.thisStep.step : U.stepBefore.step !== !1 && J - U.stepBefore.highestStep, S === 100 ? ve = null : S === 0 && (ue = null);
|
5325
5327
|
var Ie = Re.countStepDecimals();
|
5326
|
-
return
|
5328
|
+
return ve !== null && ve !== !1 && (ve = Number(ve.toFixed(Ie))), ue !== null && ue !== !1 && (ue = Number(ue.toFixed(Ie))), [ue, ve];
|
5327
5329
|
}
|
5328
5330
|
function Lu() {
|
5329
5331
|
return Bt.map(zo);
|
@@ -5333,10 +5335,10 @@ var Ss = Ol(function(e, t) {
|
|
5333
5335
|
J.forEach(function(ue) {
|
5334
5336
|
y[ue] !== void 0 && (G[ue] = y[ue]);
|
5335
5337
|
});
|
5336
|
-
var
|
5338
|
+
var ve = ia(G);
|
5337
5339
|
J.forEach(function(ue) {
|
5338
|
-
y[ue] !== void 0 && (l[ue] =
|
5339
|
-
}), Re =
|
5340
|
+
y[ue] !== void 0 && (l[ue] = ve[ue]);
|
5341
|
+
}), Re = ve.spectrum, l.margin = ve.margin, l.limit = ve.limit, l.padding = ve.padding, l.pips ? si(l.pips) : oi(), l.tooltips ? Io() : ii(), mt = [], yn(o(y.start) ? y.start : U, S);
|
5340
5342
|
}
|
5341
5343
|
function Bu() {
|
5342
5344
|
fe = wu(xt), bu(l.connect, fe), Nu(l.events), yn(l.start), l.pips && si(l.pips), l.tooltips && Io(), xu();
|
@@ -5506,7 +5508,7 @@ const Uh = { class: "rkts-range-slider" }, Yh = /* @__PURE__ */ He({
|
|
5506
5508
|
},
|
5507
5509
|
emits: ["update:modelValue"],
|
5508
5510
|
setup(e, { emit: t }) {
|
5509
|
-
const r = e, a =
|
5511
|
+
const r = e, a = pe(r, "styleOpts"), n = pe(r, "typeOf"), i = pe(r, "format"), o = pe(r, "step"), s = pe(r, "min"), u = pe(r, "max"), c = pe(r, "spacing"), d = Q({
|
5510
5512
|
get() {
|
5511
5513
|
return v(n.value);
|
5512
5514
|
},
|
@@ -9990,7 +9992,7 @@ const Z0 = (e, t, r) => {
|
|
9990
9992
|
getDefaultStartTime: n
|
9991
9993
|
};
|
9992
9994
|
}, v1 = (e, t, r) => {
|
9993
|
-
const a = te(), { defaultedTextInput: n, getDefaultPattern: i } = Pt(t), o = te(""), s =
|
9995
|
+
const a = te(), { defaultedTextInput: n, getDefaultPattern: i } = Pt(t), o = te(""), s = pe(t, "format");
|
9994
9996
|
bt(a, () => {
|
9995
9997
|
e("internal-model-change", a.value);
|
9996
9998
|
}), bt(s, () => {
|
@@ -10125,7 +10127,7 @@ const h1 = ({
|
|
10125
10127
|
const u = te({}), c = te(!1), d = te({
|
10126
10128
|
top: "0",
|
10127
10129
|
left: "0"
|
10128
|
-
}), v = te(!1), h =
|
10130
|
+
}), v = te(!1), h = pe(o, "teleportCenter");
|
10129
10131
|
bt(h, () => {
|
10130
10132
|
d.value = JSON.parse(JSON.stringify({})), q();
|
10131
10133
|
});
|
@@ -13289,7 +13291,7 @@ const h1 = ({
|
|
13289
13291
|
"range-end"
|
13290
13292
|
],
|
13291
13293
|
setup(e, { expose: t, emit: r }) {
|
13292
|
-
const a = e, n = cn(), i = te(!1), o =
|
13294
|
+
const a = e, n = cn(), i = te(!1), o = pe(a, "modelValue"), s = pe(a, "timezone"), u = te(null), c = te(null), d = te(null), v = te(!1), h = te(null), { setMenuFocused: k, setShiftKey: g } = pu(), { clearArrowNav: M } = Vr(), { mapDatesArrToMap: $, validateDate: x, isValidTime: V } = vn(a), { defaultedTransitions: K, defaultedTextInput: q, defaultedInline: W, defaultedConfig: N } = Pt(a), { menuTransition: ne, showTransition: X } = pn(K);
|
13293
13295
|
Wt(() => {
|
13294
13296
|
m(a.modelValue), Rr().then(() => {
|
13295
13297
|
W.value.enabled || (B(h.value).addEventListener("scroll", ge), window.addEventListener("resize", le));
|
@@ -13512,7 +13514,7 @@ const M_ = { class: "rkts-chosen-date" }, $_ = /* @__PURE__ */ He({
|
|
13512
13514
|
},
|
13513
13515
|
emits: ["update:modelValue"],
|
13514
13516
|
setup(e, { emit: t }) {
|
13515
|
-
const r = e, a =
|
13517
|
+
const r = e, a = pe(r, "placeholderText"), n = pe(r, "styleOpts"), i = r.format ? pe(r, "format") : te("dd MMM yyyy"), o = r.allowTimePicker ? pe(r, "allowTimePicker") : te(!1), s = r.fieldMinDate ? pe(r, "fieldMinDate") : te(null), u = r.fieldMaxDate ? pe(r, "fieldMaxDate") : te(null), c = pe(r, "type"), d = Q({
|
13516
13518
|
get() {
|
13517
13519
|
return r.modelValue;
|
13518
13520
|
},
|