@wikicasa-dev/components 2.0.54 → 2.1.0
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/UIKit/{AccessibleSelect.vue.d.ts → AccessibleSelect.d.ts} +5 -10
- package/dist/UIKit/AccessibleSelect.js +4 -0
- package/dist/UIKit/Accordion/{BaseAccordion.vue.d.ts → BaseAccordion.d.ts} +9 -12
- package/dist/UIKit/Accordion/BaseAccordion.js +4 -0
- package/dist/UIKit/Accordion/{BaseAccordionBtn.vue.d.ts → BaseAccordionBtn.d.ts} +12 -17
- package/dist/UIKit/Accordion/BaseAccordionBtn.js +4 -0
- package/dist/UIKit/Accordion/{BaseAccordionContent.vue.d.ts → BaseAccordionContent.d.ts} +10 -14
- package/dist/UIKit/Accordion/BaseAccordionContent.js +4 -0
- package/dist/UIKit/Accordion/{BaseAccordionItem.vue.d.ts → BaseAccordionItem.d.ts} +20 -33
- package/dist/UIKit/Accordion/BaseAccordionItem.js +4 -0
- package/dist/UIKit/{BaseAlert.vue.d.ts → BaseAlert.d.ts} +7 -7
- package/dist/UIKit/BaseAlert.js +4 -0
- package/dist/UIKit/{BaseAutocomplete.vue.d.ts → BaseAutocomplete.d.ts} +4 -8
- package/dist/UIKit/BaseAutocomplete.js +4 -0
- package/dist/UIKit/{BaseBadge.vue.d.ts → BaseBadge.d.ts} +6 -6
- package/dist/UIKit/BaseBadge.js +4 -0
- package/dist/UIKit/{BaseBreadcrumb.vue.d.ts → BaseBreadcrumb.d.ts} +8 -10
- package/dist/UIKit/BaseBreadcrumb.js +4 -0
- package/dist/UIKit/{BaseButton.vue.d.ts → BaseButton.d.ts} +17 -30
- package/dist/UIKit/BaseButton.js +4 -0
- package/dist/UIKit/{BaseCard.vue.d.ts → BaseCard.d.ts} +12 -15
- package/dist/{BaseCard.js → UIKit/BaseCard.js} +4 -4
- package/dist/UIKit/{BaseComplexToggle.vue.d.ts → BaseComplexToggle.d.ts} +7 -6
- package/dist/{BaseComplexToggle.js → UIKit/BaseComplexToggle.js} +6 -6
- package/dist/UIKit/{BaseDropDown.vue.d.ts → BaseDropDown.d.ts} +9 -6
- package/dist/UIKit/BaseDropDown.js +4 -0
- package/dist/UIKit/{BaseFloatingLabel.vue.d.ts → BaseFloatingLabel.d.ts} +5 -11
- package/dist/{BaseFloatingLabel.js → UIKit/BaseFloatingLabel.js} +5 -5
- package/dist/UIKit/BaseIcon.d.ts +11 -0
- package/dist/{BaseIcon.js → UIKit/BaseIcon.js} +6 -6
- package/dist/UIKit/{BaseInput.vue.d.ts → BaseInput.d.ts} +10 -7
- package/dist/{BaseInput.js → UIKit/BaseInput.js} +12 -12
- package/dist/UIKit/{BaseModal.vue.d.ts → BaseModal.d.ts} +25 -44
- package/dist/UIKit/BaseModal.js +4 -0
- package/dist/UIKit/{BasePagination.vue.d.ts → BasePagination.d.ts} +5 -5
- package/dist/UIKit/BasePagination.js +4 -0
- package/dist/{BasePaper.js → UIKit/BasePaper.js} +4 -4
- package/dist/UIKit/BaseSelect/{SelectItem.vue.d.ts → SelectItem.d.ts} +10 -12
- package/dist/UIKit/BaseSelect/SelectItem.js +4 -0
- package/dist/UIKit/{BaseSlider.vue.d.ts → BaseSlider.d.ts} +10 -7
- package/dist/{BaseSlider.js → UIKit/BaseSlider.js} +4 -4
- package/dist/UIKit/{BaseSnackbar.vue.d.ts → BaseSnackbar.d.ts} +7 -14
- package/dist/{BaseSnackbar.js → UIKit/BaseSnackbar.js} +5 -5
- package/dist/UIKit/{BaseTextarea.vue.d.ts → BaseTextarea.d.ts} +7 -5
- package/dist/{BaseTextarea.js → UIKit/BaseTextarea.js} +7 -7
- package/dist/UIKit/{BaseToggle.vue.d.ts → BaseToggle.d.ts} +6 -5
- package/dist/{BaseToggle.js → UIKit/BaseToggle.js} +6 -6
- package/dist/UIKit/{BaseTooltip.vue.d.ts → BaseTooltip.d.ts} +13 -20
- package/dist/{BaseTooltip.js → UIKit/BaseTooltip.js} +5 -5
- package/dist/UIKit/{BaseUploadFile.vue.d.ts → BaseUploadFile.d.ts} +13 -19
- package/dist/UIKit/BaseUploadFile.js +4 -0
- package/dist/UIKit/Checkbox/{CheckboxBtn.vue.d.ts → CheckboxBtn.d.ts} +18 -31
- package/dist/{CheckboxBtn.js → UIKit/Checkbox/CheckboxBtn.js} +7 -7
- package/dist/UIKit/Checkbox/{CheckboxGroup.vue.d.ts → CheckboxGroup.d.ts} +23 -43
- package/dist/UIKit/Checkbox/CheckboxGroup.js +4 -0
- package/dist/UIKit/Radio/{RadioButton.vue.d.ts → RadioButton.d.ts} +7 -11
- package/dist/UIKit/Radio/RadioButton.js +4 -0
- package/dist/UIKit/Radio/{RadioGroup.vue.d.ts → RadioGroup.d.ts} +8 -7
- package/dist/UIKit/Radio/RadioGroup.js +4 -0
- package/dist/UIKit/ShimmerLoader/{BaseShimmerLoader.vue.d.ts → BaseShimmerLoader.d.ts} +6 -6
- package/dist/{BaseShimmerLoader.js → UIKit/ShimmerLoader/BaseShimmerLoader.js} +4 -4
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +63 -0
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +4 -0
- package/dist/UIKit/Slider/{SimpleSlider.vue.d.ts → SimpleSlider.d.ts} +7 -5
- package/dist/{SimpleSlider.js → UIKit/Slider/SimpleSlider.js} +4 -4
- package/dist/UIKit/StaticSpinner.d.ts +6 -0
- package/dist/{StaticSpinner.js → UIKit/StaticSpinner.js} +4 -4
- package/dist/UIKit/Tab/{BaseTab.vue.d.ts → BaseTab.d.ts} +8 -10
- package/dist/UIKit/Tab/BaseTab.js +4 -0
- package/dist/UIKit/Tab/{BaseTabList.vue.d.ts → BaseTabList.d.ts} +5 -7
- package/dist/UIKit/Tab/BaseTabList.js +4 -0
- package/dist/UIKit/Tab/{BaseTabPanel.vue.d.ts → BaseTabPanel.d.ts} +9 -11
- package/dist/UIKit/Tab/BaseTabPanel.js +4 -0
- package/dist/UIKit/Tab/{BaseTabView.vue.d.ts → BaseTabView.d.ts} +7 -5
- package/dist/UIKit/Tab/BaseTabView.js +4 -0
- package/dist/UIKit/types.js +1 -0
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/chart/DoughnutChart.d.ts +7 -0
- package/dist/chart/DoughnutChart.js +4 -0
- package/dist/chart/{LineChart.vue.d.ts → LineChart.d.ts} +4 -6
- package/dist/chart/LineChart.js +4 -0
- package/dist/chart/composables/useChartjsModules.d.ts +1 -1
- package/dist/{useChartjsModules.js → chart/composables/useChartjsModules.js} +5 -5
- package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.tcyWuhKm.js → AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js} +4 -4
- package/dist/chunks/{ArrowIcon.CCFMdsq6.js → ArrowIcon.Bq6Xr3uH.js} +1 -1
- package/dist/chunks/{BaseAccordion.vue_vue_type_script_setup_true_lang.R7qkuKlw.js → BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js} +2 -2
- package/dist/chunks/{BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DsDqk9iP.js → BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js} +4 -4
- package/dist/chunks/{BaseAccordionContent.vue_vue_type_script_setup_true_lang.C0aiiljz.js → BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js} +2 -2
- package/dist/chunks/{BaseAccordionItem.vue_vue_type_script_setup_true_lang.Caagpb9M.js → BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js} +8 -8
- package/dist/chunks/{BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js → BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js} +2 -2
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.B31Vyyn6.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ol7Hmb-E.js} +10 -10
- package/dist/chunks/{BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js → BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js} +2 -2
- package/dist/chunks/{BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BAE3i6sW.js → BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js} +7 -7
- package/dist/chunks/{BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js → BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js} +5 -5
- package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.CpbjEyOl.js → BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js} +9 -9
- package/dist/chunks/{BaseModal.vue_vue_type_style_index_0_lang.CeKWAwpg.js → BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js} +4 -4
- package/dist/chunks/{BasePagination.vue_vue_type_script_setup_true_lang.Cb6fEMc-.js → BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js} +20 -19
- package/dist/chunks/{BaseTabList.vue_vue_type_script_setup_true_lang.CohlLou1.js → BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js} +2 -2
- package/dist/chunks/{BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js → BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js} +2 -2
- package/dist/chunks/{BaseTabView.vue_vue_type_script_setup_true_lang.DTPN9Rg-.js → BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js} +3 -3
- package/dist/chunks/{BaseUploadFile.vue_vue_type_script_setup_true_lang.2elmVcZt.js → BaseUploadFile.vue_vue_type_script_setup_true_lang.CdwKhQoc.js} +2 -2
- package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.BC3hlJfx.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.C9gKO-hI.js} +6 -6
- package/dist/chunks/{CloseIcon.DIkr4soH.js → CloseIcon.BZ4U3aiI.js} +1 -1
- package/dist/chunks/{DoughnutChart.vue_vue_type_script_setup_true_lang.C4QPaUsI.js → DoughnutChart.vue_vue_type_script_setup_true_lang.M0NEigw0.js} +4 -4
- package/dist/chunks/{IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js → IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js} +2 -2
- package/dist/chunks/{IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js → IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js} +2 -2
- package/dist/chunks/{LineChart.vue_vue_type_script_setup_true_lang.iRZ_Q6nK.js → LineChart.vue_vue_type_script_setup_true_lang.ByrHxeZr.js} +4 -4
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
- package/dist/chunks/{RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js → RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js} +2 -2
- package/dist/chunks/{RadioGroup.vue_vue_type_script_setup_true_lang.DdmSUyxZ.js → RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js} +2 -2
- package/dist/chunks/{SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js → SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js} +2 -2
- package/dist/chunks/{ShimmerMultiLine.vue_vue_type_script_setup_true_lang.DuLXZx8X.js → ShimmerMultiLine.vue_vue_type_script_setup_true_lang.BoEMYLem.js} +4 -4
- package/dist/chunks/polyline.tNTK3v2u.js +129 -0
- package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +41 -0
- package/dist/components/IntersectionObserver/{IntersectionObservable.vue.d.ts → IntersectionObservable.d.ts} +10 -9
- package/dist/components/IntersectionObserver/IntersectionObservable.js +4 -0
- package/dist/components/IntersectionObserver/{IntersectionObserver.vue.d.ts → IntersectionObserver.d.ts} +5 -2
- package/dist/components/IntersectionObserver/IntersectionObserver.js +4 -0
- package/dist/components/carousel/{SwiperCarousel.vue.d.ts → SwiperCarousel.d.ts} +6 -2
- package/dist/components/carousel/SwiperCarousel.js +1595 -0
- package/dist/components/carousel/{SwiperSlide.vue.d.ts → SwiperSlide.d.ts} +3 -2
- package/dist/{SwiperSlide.js → components/carousel/SwiperSlide.js} +3 -3
- package/dist/index.d.ts +42 -42
- package/dist/index.js +41 -41
- package/package.json +19 -6
- package/dist/AccessibleSelect.js +0 -4
- package/dist/BaseAccordion.js +0 -4
- package/dist/BaseAccordionBtn.js +0 -4
- package/dist/BaseAccordionContent.js +0 -4
- package/dist/BaseAccordionItem.js +0 -4
- package/dist/BaseAlert.js +0 -4
- package/dist/BaseAutocomplete.js +0 -4
- package/dist/BaseBadge.js +0 -4
- package/dist/BaseBreadcrumb.js +0 -4
- package/dist/BaseButton.js +0 -4
- package/dist/BaseDropDown.js +0 -4
- package/dist/BaseModal.js +0 -4
- package/dist/BasePagination.js +0 -4
- package/dist/BaseTab.js +0 -4
- package/dist/BaseTabList.js +0 -4
- package/dist/BaseTabPanel.js +0 -4
- package/dist/BaseTabView.js +0 -4
- package/dist/BaseUploadFile.js +0 -4
- package/dist/CheckboxGroup.js +0 -4
- package/dist/DoughnutChart.js +0 -4
- package/dist/IntersectionObservable.js +0 -4
- package/dist/IntersectionObserver.js +0 -4
- package/dist/LineChart.js +0 -4
- package/dist/RadioButton.js +0 -4
- package/dist/RadioGroup.js +0 -4
- package/dist/SelectItem.js +0 -4
- package/dist/ShimmerMultiLine.js +0 -4
- package/dist/SwiperCarousel.js +0 -1563
- package/dist/UIKit/BaseIcon.vue.d.ts +0 -17
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +0 -17
- package/dist/UIKit/StaticSpinner.vue.d.ts +0 -8
- package/dist/chart/DoughnutChart.vue.d.ts +0 -9
- package/dist/chunks/ObjectUtils.BOUbloeg.js +0 -10
- package/dist/chunks/PharmacyIcon.56ql_DYl.js +0 -19
- package/dist/chunks/types-B0dZ7OiV.D29wNgoj.js +0 -3209
- package/dist/chunks/useKeyboardController.CutKeclN.js +0 -41
- /package/dist/UIKit/{BasePaper.vue.d.ts → BasePaper.d.ts} +0 -0
- /package/dist/{useFloatingLabel.js → composables/useFloatingLabel.js} +0 -0
- /package/dist/{useValidator.js → composables/useValidator.js} +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
2
|
+
function h(t) {
|
|
3
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
4
|
+
var u = arguments[i];
|
|
5
|
+
for (var a in u)
|
|
6
|
+
t[a] = u[a];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
var w = {
|
|
11
|
+
read: function(t) {
|
|
12
|
+
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
13
|
+
},
|
|
14
|
+
write: function(t) {
|
|
15
|
+
return encodeURIComponent(t).replace(
|
|
16
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
17
|
+
decodeURIComponent
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
function C(t, i) {
|
|
22
|
+
function u(r, f, n) {
|
|
23
|
+
if (!(typeof document > "u")) {
|
|
24
|
+
n = h({}, i, n), typeof n.expires == "number" && (n.expires = new Date(Date.now() + n.expires * 864e5)), n.expires && (n.expires = n.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
25
|
+
var e = "";
|
|
26
|
+
for (var o in n)
|
|
27
|
+
n[o] && (e += "; " + o, n[o] !== !0 && (e += "=" + n[o].split(";")[0]));
|
|
28
|
+
return document.cookie = r + "=" + t.write(f, r) + e;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function a(r) {
|
|
32
|
+
if (!(typeof document > "u" || arguments.length && !r)) {
|
|
33
|
+
for (var f = document.cookie ? document.cookie.split("; ") : [], n = {}, e = 0; e < f.length; e++) {
|
|
34
|
+
var o = f[e].split("="), c = o.slice(1).join("=");
|
|
35
|
+
try {
|
|
36
|
+
var d = decodeURIComponent(o[0]);
|
|
37
|
+
if (n[d] = t.read(c, d), r === d)
|
|
38
|
+
break;
|
|
39
|
+
} catch {
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return r ? n[r] : n;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return Object.create(
|
|
46
|
+
{
|
|
47
|
+
set: u,
|
|
48
|
+
get: a,
|
|
49
|
+
remove: function(r, f) {
|
|
50
|
+
u(
|
|
51
|
+
r,
|
|
52
|
+
"",
|
|
53
|
+
h({}, f, {
|
|
54
|
+
expires: -1
|
|
55
|
+
})
|
|
56
|
+
);
|
|
57
|
+
},
|
|
58
|
+
withAttributes: function(r) {
|
|
59
|
+
return C(this.converter, h({}, this.attributes, r));
|
|
60
|
+
},
|
|
61
|
+
withConverter: function(r) {
|
|
62
|
+
return C(h({}, this.converter, r), this.attributes);
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
attributes: { value: Object.freeze(i) },
|
|
67
|
+
converter: { value: Object.freeze(t) }
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
C(w, { path: "/" });
|
|
72
|
+
var g, R;
|
|
73
|
+
function U() {
|
|
74
|
+
if (R) return g;
|
|
75
|
+
R = 1;
|
|
76
|
+
for (var t = {}, i = 32; i < 127; i++)
|
|
77
|
+
t[i] = String.fromCharCode(i);
|
|
78
|
+
function u(e) {
|
|
79
|
+
var o = 0, c = 0;
|
|
80
|
+
return a(e, function(d, s, p) {
|
|
81
|
+
var v = Math.round(s * 1e5), y = Math.round(p * 1e5);
|
|
82
|
+
return d += n(r(v - o)) + n(r(y - c)), o = v, c = y, d;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function a(e, o) {
|
|
86
|
+
for (var c = null, d = 0, s = 0, p = "", v = 0; v < e.length; v++)
|
|
87
|
+
c = e[v], d = c.lat || c.x || c[0], s = c.lng || c.y || c[1], p = o(p, d, s);
|
|
88
|
+
return p;
|
|
89
|
+
}
|
|
90
|
+
function r(e) {
|
|
91
|
+
return e < 0 ? ~(e << 1) : e << 1;
|
|
92
|
+
}
|
|
93
|
+
function f(e) {
|
|
94
|
+
return (e & 31 | 32) + 63;
|
|
95
|
+
}
|
|
96
|
+
function n(e) {
|
|
97
|
+
for (var o = ""; e >= 32; )
|
|
98
|
+
o += t[f(e)], e = e >> 5;
|
|
99
|
+
return o += t[e + 63], o;
|
|
100
|
+
}
|
|
101
|
+
return g = u, g;
|
|
102
|
+
}
|
|
103
|
+
var l, m;
|
|
104
|
+
function q() {
|
|
105
|
+
if (m) return l;
|
|
106
|
+
m = 1;
|
|
107
|
+
var t = 1e5;
|
|
108
|
+
function i(u) {
|
|
109
|
+
var a = [], r = 0, f = 0;
|
|
110
|
+
return i.integers(u, function(n, e) {
|
|
111
|
+
r += n, f += e, a.push([r / t, f / t]);
|
|
112
|
+
}), a;
|
|
113
|
+
}
|
|
114
|
+
return i.sign = function(u) {
|
|
115
|
+
return u & 1 ? ~(u >>> 1) : u >>> 1;
|
|
116
|
+
}, i.integers = function(u, a) {
|
|
117
|
+
for (var r = 0, f = 0, n = 0, e = 0, o = 0, c = 0, d = 0; d < u.length; d++)
|
|
118
|
+
e = u.charCodeAt(d) - 63, o = o | (e & 31) << c, c = c + 5, e < 32 && (++r & 1 ? f = i.sign(o) : (n = i.sign(o), a(f, n)), o = 0, c = 0);
|
|
119
|
+
return r;
|
|
120
|
+
}, l = i, l;
|
|
121
|
+
}
|
|
122
|
+
var x, I;
|
|
123
|
+
function A() {
|
|
124
|
+
return I || (I = 1, x = {
|
|
125
|
+
encode: U(),
|
|
126
|
+
decode: q()
|
|
127
|
+
}), x;
|
|
128
|
+
}
|
|
129
|
+
A();
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ref as p, onMounted as w, onUnmounted as E, unref as x } from "vue";
|
|
2
|
+
const D = (t) => {
|
|
3
|
+
const { isDropdownOpen: o, disableSpaceHandler: m } = t, n = p(-1), a = p(-1);
|
|
4
|
+
if (!(t.activate === void 0 || t.activate)) return { activeIdx: n, selectedIdx: a };
|
|
5
|
+
const l = (e) => {
|
|
6
|
+
const v = "ArrowUp", d = "ArrowDown", s = "Enter", i = "Escape", u = " ", c = "PageUp", y = "Home", f = "PageDown", k = "End";
|
|
7
|
+
if (!o.value || ![
|
|
8
|
+
v,
|
|
9
|
+
d,
|
|
10
|
+
s,
|
|
11
|
+
i,
|
|
12
|
+
u,
|
|
13
|
+
c,
|
|
14
|
+
y,
|
|
15
|
+
f,
|
|
16
|
+
k
|
|
17
|
+
].includes(e.key))
|
|
18
|
+
return;
|
|
19
|
+
const r = x(t.optionsLength);
|
|
20
|
+
if (e.key === v)
|
|
21
|
+
n.value = n.value === 0 ? r - 1 : n.value - 1;
|
|
22
|
+
else if (e.key === d)
|
|
23
|
+
n.value = (n.value + 1) % r;
|
|
24
|
+
else if (e.key === s || e.key === u) {
|
|
25
|
+
if (e.key === u && m) return;
|
|
26
|
+
a.value = n.value, o.value = !1;
|
|
27
|
+
} else e.key === i ? (n.value = a.value, o.value = !1) : e.key === c || e.key === y ? n.value = 0 : (e.key === f || e.key === k) && (n.value = r - 1);
|
|
28
|
+
e.stopPropagation(), e.preventDefault();
|
|
29
|
+
};
|
|
30
|
+
return w(() => {
|
|
31
|
+
document && document.addEventListener("keydown", l);
|
|
32
|
+
}), E(() => {
|
|
33
|
+
document && document.removeEventListener("keydown", l);
|
|
34
|
+
}), {
|
|
35
|
+
activeIdx: n,
|
|
36
|
+
selectedIdx: a
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
D as A
|
|
41
|
+
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
observer?: IntersectionObserver | null;
|
|
3
|
+
isVisible?: boolean;
|
|
4
|
+
};
|
|
1
5
|
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
2
7
|
slots: {
|
|
3
8
|
default?(_: {}): any;
|
|
4
9
|
default?(_: {}): any;
|
|
@@ -6,19 +11,15 @@ declare function __VLS_template(): {
|
|
|
6
11
|
refs: {
|
|
7
12
|
root: HTMLDivElement;
|
|
8
13
|
};
|
|
9
|
-
|
|
14
|
+
rootEl: any;
|
|
10
15
|
};
|
|
11
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
|
13
|
-
observer?: IntersectionObserver | null;
|
|
14
|
-
isVisible?: boolean;
|
|
15
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
16
|
-
observer?: IntersectionObserver | null;
|
|
17
|
-
isVisible?: boolean;
|
|
18
|
-
}> & Readonly<{}>, {
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
18
|
observer: IntersectionObserver | null;
|
|
20
19
|
isVisible: boolean;
|
|
21
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
root: HTMLDivElement;
|
|
22
|
+
}, any>;
|
|
22
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
24
|
export default _default;
|
|
24
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -4,6 +4,7 @@ interface IntersectionObserverProps {
|
|
|
4
4
|
threshold?: number;
|
|
5
5
|
}
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
7
8
|
slots: {
|
|
8
9
|
observer?(_: {
|
|
9
10
|
observer: {
|
|
@@ -33,7 +34,7 @@ declare function __VLS_template(): {
|
|
|
33
34
|
refs: {
|
|
34
35
|
root: HTMLDivElement;
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
+
rootEl: any;
|
|
37
38
|
};
|
|
38
39
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
39
40
|
declare const __VLS_component: import('vue').DefineComponent<IntersectionObserverProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -44,7 +45,9 @@ declare const __VLS_component: import('vue').DefineComponent<IntersectionObserve
|
|
|
44
45
|
threshold: number;
|
|
45
46
|
observeOnce: boolean;
|
|
46
47
|
skip: boolean;
|
|
47
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
48
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
49
|
+
root: HTMLDivElement;
|
|
50
|
+
}, any>;
|
|
48
51
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
49
52
|
export default _default;
|
|
50
53
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -14,6 +14,7 @@ type SwiperCarouselProps = {
|
|
|
14
14
|
shiftFirstImage?: boolean;
|
|
15
15
|
};
|
|
16
16
|
declare function __VLS_template(): {
|
|
17
|
+
attrs: Partial<{}>;
|
|
17
18
|
slots: {
|
|
18
19
|
default?(_: {}): any;
|
|
19
20
|
last_slide?(_: {}): any;
|
|
@@ -22,7 +23,7 @@ declare function __VLS_template(): {
|
|
|
22
23
|
root: HTMLDivElement;
|
|
23
24
|
swiperWrapper: HTMLDivElement;
|
|
24
25
|
};
|
|
25
|
-
|
|
26
|
+
rootEl: any;
|
|
26
27
|
};
|
|
27
28
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
29
|
declare const __VLS_component: import('vue').DefineComponent<SwiperCarouselProps, {
|
|
@@ -39,7 +40,10 @@ declare const __VLS_component: import('vue').DefineComponent<SwiperCarouselProps
|
|
|
39
40
|
activeIndex: number;
|
|
40
41
|
}) => any) | undefined;
|
|
41
42
|
onFirstSlideLoaded?: (() => any) | undefined;
|
|
42
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
43
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
44
|
+
root: HTMLDivElement;
|
|
45
|
+
swiperWrapper: HTMLDivElement;
|
|
46
|
+
}, any>;
|
|
43
47
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
48
|
export default _default;
|
|
45
49
|
type __VLS_WithTemplateSlots<T, S> = T & {
|