@wikicasa-dev/components 2.1.4-alpha.8 → 2.1.4
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/BaseAlert.d.ts +9 -20
- package/dist/UIKit/BaseBadge.d.ts +5 -40
- package/dist/UIKit/BaseBreadcrumb.js +2 -3
- package/dist/UIKit/BaseButton.d.ts +8 -9
- package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
- package/dist/UIKit/BaseComplexToggle.js +2 -2
- package/dist/UIKit/BaseDropDown.d.ts +0 -5
- package/dist/UIKit/BaseFloatingLabel.js +3 -1
- package/dist/UIKit/BaseInput.d.ts +5 -4
- package/dist/UIKit/BaseInput.js +3 -1
- package/dist/UIKit/BasePagination.d.ts +3 -10
- package/dist/UIKit/BaseSlider.d.ts +10 -14
- package/dist/UIKit/BaseSlider.js +4 -1
- package/dist/UIKit/BaseSnackbar.js +4 -4
- package/dist/UIKit/BaseTextarea.d.ts +4 -4
- package/dist/UIKit/BaseTextarea.js +3 -3
- package/dist/UIKit/BaseToggle.d.ts +8 -5
- package/dist/UIKit/BaseToggle.js +4 -1
- package/dist/UIKit/BaseTooltip.d.ts +20 -10
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +16 -9
- package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -2
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +3 -1
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +5 -1
- package/dist/UIKit/Slider/SimpleSlider.d.ts +19 -0
- package/dist/UIKit/Slider/SimpleSlider.js +7 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +0 -1
- package/dist/UIKit/types.d.ts +6 -11
- package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseModal.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSlider.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseToggle.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/Checkbox/CheckboxBtn.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +1 -0
- package/dist/assets/packages/components/src/tailwind.css +1 -1
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/composables/useFloatingLabel.js +20 -20
- package/dist/index.d.ts +2 -6
- package/dist/index.js +85 -100
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +12 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +18 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +4 -0
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.js +9 -9
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.js +17 -17
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.js +13 -13
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/utils.js +26 -32
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +30 -30
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +13 -107
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +27 -28
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +11 -46
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +35 -32
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +36 -56
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +12 -12
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +45 -48
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +17 -14
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +119 -93
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +66 -70
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +134 -89
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +178 -107
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +7 -7
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +73 -55
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +31 -27
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +33 -48
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +40 -19
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +52 -55
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +26 -20
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +9 -10
- package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +9 -10
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +82 -0
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +27 -28
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +19 -21
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +6 -5
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +3 -5
- package/package.json +17 -20
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +0 -4
- package/dist/UIKit/BaseBanner.js +0 -4
- package/dist/UIKit/BaseChip.js +0 -4
- package/dist/UIKit/BaseCollapse.js +0 -7
- package/dist/UIKit/BaseNotificationBadge.js +0 -4
- package/dist/UIKit/BasePin.d.ts +0 -22
- package/dist/UIKit/BasePin.js +0 -5
- package/dist/UIKit/BaseSelect.d.ts +0 -26
- package/dist/UIKit/BaseSelect.js +0 -5
- package/dist/UIKit/DatePicker.js +0 -5
- package/dist/UIKit/InputDropdown.js +0 -4
- package/dist/UIKit/Navigation/NavigationBar.d.ts +0 -17
- package/dist/UIKit/Navigation/NavigationBar.js +0 -5
- package/dist/UIKit/Navigation/NavigationBarItem.d.ts +0 -34
- package/dist/UIKit/Navigation/NavigationBarItem.js +0 -4
- package/dist/UIKit/SegmentedControl/SegmentedControl.js +0 -4
- package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +0 -4
- package/dist/UIKit/Tab/BaseTabItem.d.ts +0 -27
- package/dist/UIKit/Tab/BaseTabItem.js +0 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/create-plugin.js +0 -4
- package/dist/_virtual/createPlugin.js +0 -4
- package/dist/_virtual/plugin.js +0 -7
- package/dist/assets/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BasePin.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSelect.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/DatePicker.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +0 -1
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +0 -19
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +0 -16
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +0 -29
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +0 -33
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/public/create-plugin.js +0 -25
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/util/createPlugin.js +0 -34
- package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/plugin.js +0 -11
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +0 -29
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +0 -75
- package/dist/packages/components/lib/UIKit/BaseChip.vue.js +0 -38
- package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +0 -54
- package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +0 -37
- package/dist/packages/components/lib/UIKit/BaseSelect.vue.js +0 -65
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +0 -143
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +0 -152
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +0 -21
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +0 -48
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +0 -93
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +0 -30
- package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +0 -39
- package/dist/plugins/buttonPlugin.d.ts +0 -4
- package/dist/plugins/buttonPlugin.js +0 -232
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/swiper.css +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/classes-to-selector.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/utils.js
RENAMED
|
@@ -2,7 +2,7 @@ import { a, g as c } from "./ssr-window.esm.js";
|
|
|
2
2
|
function u(t) {
|
|
3
3
|
return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function d(t, e) {
|
|
6
6
|
return e === void 0 && (e = 0), setTimeout(t, e);
|
|
7
7
|
}
|
|
8
8
|
function g() {
|
|
@@ -13,17 +13,17 @@ function m(t) {
|
|
|
13
13
|
let n;
|
|
14
14
|
return e.getComputedStyle && (n = e.getComputedStyle(t, null)), !n && t.currentStyle && (n = t.currentStyle), n || (n = t.style), n;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function y(t, e) {
|
|
17
17
|
e === void 0 && (e = "x");
|
|
18
18
|
const n = a();
|
|
19
|
-
let r, i,
|
|
19
|
+
let r, i, l;
|
|
20
20
|
const o = m(t);
|
|
21
|
-
return n.WebKitCSSMatrix ? (i = o.transform || o.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((
|
|
21
|
+
return n.WebKitCSSMatrix ? (i = o.transform || o.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((s) => s.replace(",", ".")).join(", ")), l = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (l = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = l.toString().split(",")), e === "x" && (n.WebKitCSSMatrix ? i = l.m41 : r.length === 16 ? i = parseFloat(r[12]) : i = parseFloat(r[4])), e === "y" && (n.WebKitCSSMatrix ? i = l.m42 : r.length === 16 ? i = parseFloat(r[13]) : i = parseFloat(r[5])), i || 0;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function S(t) {
|
|
24
24
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function h(t, e) {
|
|
27
27
|
e === void 0 && (e = "");
|
|
28
28
|
const n = a(), r = [...t.children];
|
|
29
29
|
return n.HTMLSlotElement && t instanceof HTMLSlotElement && r.push(...t.assignedElements()), e ? r.filter((i) => i.matches(e)) : r;
|
|
@@ -33,14 +33,14 @@ function w(t, e) {
|
|
|
33
33
|
const n = document.createElement(t);
|
|
34
34
|
return n.classList.add(...Array.isArray(e) ? e : u(e)), n;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const e = a(), n = c(), r = t.getBoundingClientRect(), i = n.body,
|
|
36
|
+
function T(t) {
|
|
37
|
+
const e = a(), n = c(), r = t.getBoundingClientRect(), i = n.body, l = t.clientTop || i.clientTop || 0, o = t.clientLeft || i.clientLeft || 0, s = t === e ? e.scrollY : t.scrollTop, f = t === e ? e.scrollX : t.scrollLeft;
|
|
38
38
|
return {
|
|
39
|
-
top: r.top +
|
|
39
|
+
top: r.top + s - l,
|
|
40
40
|
left: r.left + f - o
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function b(t) {
|
|
44
44
|
let e = t, n;
|
|
45
45
|
if (e) {
|
|
46
46
|
for (n = 0; (e = e.previousSibling) !== null; )
|
|
@@ -48,44 +48,38 @@ function L(t) {
|
|
|
48
48
|
return n;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function C(t, e) {
|
|
52
52
|
const n = [];
|
|
53
53
|
let r = t.parentElement;
|
|
54
54
|
for (; r; )
|
|
55
55
|
e ? r.matches(e) && n.push(r) : n.push(r), r = r.parentElement;
|
|
56
56
|
return n;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function E(t, e) {
|
|
59
59
|
function n(r) {
|
|
60
60
|
r.target === t && (e.call(t, r), t.removeEventListener("transitionend", n));
|
|
61
61
|
}
|
|
62
62
|
e && t.addEventListener("transitionend", n);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function x(t, e, n) {
|
|
65
65
|
const r = a();
|
|
66
66
|
return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function L(t) {
|
|
69
69
|
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
70
70
|
}
|
|
71
|
-
function v(t, e) {
|
|
72
|
-
e === void 0 && (e = ""), typeof trustedTypes < "u" ? t.innerHTML = trustedTypes.createPolicy("html", {
|
|
73
|
-
createHTML: (n) => n
|
|
74
|
-
}).createHTML(e) : t.innerHTML = e;
|
|
75
|
-
}
|
|
76
71
|
export {
|
|
77
|
-
|
|
72
|
+
C as a,
|
|
73
|
+
T as b,
|
|
78
74
|
w as c,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
y as o,
|
|
90
|
-
v as s
|
|
75
|
+
g as d,
|
|
76
|
+
h as e,
|
|
77
|
+
x as f,
|
|
78
|
+
b as h,
|
|
79
|
+
u as i,
|
|
80
|
+
y as j,
|
|
81
|
+
E as k,
|
|
82
|
+
S as l,
|
|
83
|
+
L as m,
|
|
84
|
+
d as n
|
|
91
85
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as p } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import "../../../../node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as p } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Autoplay
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import "../../../../node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js";
|
|
3
3
|
export {
|
|
4
4
|
e as Controller
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import '../../../../assets/node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js";
|
|
2
|
+
import '../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.css';/* empty css */
|
|
3
3
|
export {
|
|
4
4
|
t as FreeMode
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import "../../../../node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js";
|
|
3
3
|
export {
|
|
4
4
|
e as Keyboard
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import '../../../../assets/node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js";
|
|
2
|
+
import '../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css';/* empty css */
|
|
3
3
|
export {
|
|
4
4
|
i as Navigation
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import '../../../../assets/node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js";
|
|
2
|
+
import '../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.css';/* empty css */
|
|
3
3
|
export {
|
|
4
4
|
i as Pagination
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import "../../../../node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js";
|
|
3
3
|
export {
|
|
4
4
|
t as Thumbs
|
|
5
5
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as F, mergeModels as $, useModel as M, useId as A, computed as V, ref as L, watch as w, onMounted as E, onUnmounted as P, createElementBlock as s, openBlock as a, normalizeClass as l, createElementVNode as o, createCommentVNode as d, withModifiers as p, renderSlot as z, unref as b, createBlock as N, createVNode as O, Fragment as T, renderList as S } from "vue";
|
|
2
2
|
import { useKeyboardController as q } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
3
|
-
import { ArrowIcon as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
4
|
-
import { WarningIconRounded as K } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
5
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
+
import { ArrowIcon as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import { WarningIconRounded as K } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js";
|
|
5
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
6
6
|
const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], W = ["innerHTML"], G = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, J = ["innerHTML"], Q = ["data-cy"], X = ["id", "aria-selected", "onClick", "onMouseover"], Y = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, Z = ["name", "checked", "onInput"], x = ["innerHTML"], _ = ["id", "arial-live", "innerHTML"], ee = ["id", "arial-live", "innerHTML"], se = /* @__PURE__ */ F({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "AccessibleSelect",
|
|
@@ -36,27 +36,27 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
36
36
|
toggleDropdownModifiers: {}
|
|
37
37
|
}),
|
|
38
38
|
emits: /* @__PURE__ */ $(["click", "update:dropdownState"], ["update:modelValue", "update:toggleDropdown"]),
|
|
39
|
-
setup(
|
|
40
|
-
const h = B, k = M(
|
|
41
|
-
optionsLength:
|
|
39
|
+
setup(u, { emit: B }) {
|
|
40
|
+
const h = B, k = M(u, "modelValue"), y = M(u, "toggleDropdown"), H = A(), t = V(() => u.namespace || H), i = L(!1), I = L(null), f = V(() => !!k.value.label), { activeIdx: c, selectedIdx: D } = q({
|
|
41
|
+
optionsLength: u.options.length,
|
|
42
42
|
isDropdownOpen: i
|
|
43
43
|
}), m = (e) => {
|
|
44
44
|
i.value = !1, k.value = e;
|
|
45
45
|
};
|
|
46
46
|
w(D, (e) => {
|
|
47
|
-
m(
|
|
48
|
-
}), w(
|
|
49
|
-
e && (i.value = !i.value,
|
|
47
|
+
m(u.options[e]), i.value = !1;
|
|
48
|
+
}), w(y, (e) => {
|
|
49
|
+
e && (i.value = !i.value, y.value = !1);
|
|
50
50
|
}), w(i, (e) => {
|
|
51
51
|
h("update:dropdownState", e);
|
|
52
52
|
});
|
|
53
|
-
const
|
|
53
|
+
const g = ({ target: e }) => {
|
|
54
54
|
`${t.value}_btn` !== e.id && (i.value = !1);
|
|
55
55
|
};
|
|
56
56
|
return E(() => {
|
|
57
|
-
|
|
57
|
+
u.closeOnBodyPressed && document.addEventListener("click", g);
|
|
58
58
|
}), P(() => {
|
|
59
|
-
|
|
59
|
+
u.closeOnBodyPressed && document.removeEventListener("click", g);
|
|
60
60
|
}), (e, n) => (a(), s("div", {
|
|
61
61
|
class: l(e.$attrs.class)
|
|
62
62
|
}, [
|
|
@@ -77,7 +77,7 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
77
77
|
e.$slots.lefticon ? (a(), s("span", {
|
|
78
78
|
key: 1,
|
|
79
79
|
class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
|
|
80
|
-
onClick: n[0] || (n[0] = p((
|
|
80
|
+
onClick: n[0] || (n[0] = p((r) => i.value = !i.value, ["stop"]))
|
|
81
81
|
}, [
|
|
82
82
|
z(e.$slots, "lefticon")
|
|
83
83
|
])) : d("", !0),
|
|
@@ -94,11 +94,11 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
94
94
|
"aria-controls": `${t.value}_dropdown`,
|
|
95
95
|
"aria-labelledby": `${t.value}_label ${t.value}_btn`,
|
|
96
96
|
"aria-expanded": i.value,
|
|
97
|
-
"aria-activedescendant": b(
|
|
97
|
+
"aria-activedescendant": b(c) >= 0 && i.value ? `${t.value}_element_${e.options[b(c)].label}` : "",
|
|
98
98
|
"aria-invalid": e.isValid === !1,
|
|
99
99
|
"aria-describedby": e.isValid === !1 ? `${t.value}_invalid_msg` : void 0,
|
|
100
|
-
onClick: n[1] || (n[1] = (
|
|
101
|
-
i.value = !i.value, h("click",
|
|
100
|
+
onClick: n[1] || (n[1] = (r) => {
|
|
101
|
+
i.value = !i.value, h("click", r);
|
|
102
102
|
})
|
|
103
103
|
}, [
|
|
104
104
|
o("span", {
|
|
@@ -128,9 +128,9 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
128
128
|
"aria-hidden": "true",
|
|
129
129
|
class: l(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-cursor-pointer uikit-rounded-xs uikit-bg-white uikit-px-2 uikit-py-0 peer-focus:uikit-border-2", [
|
|
130
130
|
e.fieldsetClasses,
|
|
131
|
-
e.isValid ? "uikit-border-w-
|
|
131
|
+
e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary",
|
|
132
132
|
{
|
|
133
|
-
"
|
|
133
|
+
"uikit-border uikit-border-solid peer-focus:uikit-border-w-primary peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-primary peer-aria-invalid:uikit-border-w-danger": e.border
|
|
134
134
|
},
|
|
135
135
|
{ "uikit-border-0 peer-focus:uikit-border-0": !e.border }
|
|
136
136
|
]])
|
|
@@ -153,7 +153,7 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
153
153
|
class: l(["uikit-absolute uikit-z-30 uikit-m-0 uikit-max-h-[225px] uikit-w-full uikit-min-w-full uikit-list-none uikit-overflow-y-auto uikit-p-0 uikit-no-scrollbar", [
|
|
154
154
|
{ "uikit-h-0 uikit-w-0 uikit-overflow-hidden": !i.value },
|
|
155
155
|
{
|
|
156
|
-
"uikit-rounded-xs uikit-border uikit-border-solid uikit-border-w-
|
|
156
|
+
"uikit-rounded-xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white": i.value
|
|
157
157
|
},
|
|
158
158
|
{ "uikit-bottom-[55px]": e.dropdownPosition === "top" },
|
|
159
159
|
{ "uikit-top-[55px]": e.dropdownPosition === "bottom" },
|
|
@@ -162,14 +162,14 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
162
162
|
onClick: n[3] || (n[3] = p(() => {
|
|
163
163
|
}, ["stop"]))
|
|
164
164
|
}, [
|
|
165
|
-
(a(!0), s(T, null, S(e.options, (
|
|
166
|
-
id: `${t.value}_element_${e.options[
|
|
167
|
-
key: `${
|
|
165
|
+
(a(!0), s(T, null, S(e.options, (r, v) => (a(), s("li", {
|
|
166
|
+
id: `${t.value}_element_${e.options[v].label}`,
|
|
167
|
+
key: `${r.label}_${v}`,
|
|
168
168
|
role: "option",
|
|
169
|
-
"aria-selected": b(
|
|
170
|
-
class: l(["uikit-
|
|
171
|
-
onClick: p((C) => m(
|
|
172
|
-
onMouseover: p((C) =>
|
|
169
|
+
"aria-selected": b(c) === v,
|
|
170
|
+
class: l(["uikit-m-1 uikit-cursor-pointer uikit-px-20px uikit-py-10px uikit-text aria-selected:uikit-rounded-xs aria-selected:uikit-bg-w-cultured", e.dropdownItemClasses]),
|
|
171
|
+
onClick: p((C) => m(r), ["stop"]),
|
|
172
|
+
onMouseover: p((C) => c.value = v, ["stop"]),
|
|
173
173
|
onBlur: n[2] || (n[2] = p(() => {
|
|
174
174
|
}, ["stop"]))
|
|
175
175
|
}, [
|
|
@@ -179,11 +179,11 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
179
179
|
class: "uikit-m-0 uikit-appearance-none",
|
|
180
180
|
name: `${t.value}_radio`,
|
|
181
181
|
type: "radio",
|
|
182
|
-
checked:
|
|
183
|
-
onInput: p((C) => m(
|
|
182
|
+
checked: r.label === k.value.label,
|
|
183
|
+
onInput: p((C) => m(r), ["stop"])
|
|
184
184
|
}, null, 40, Z),
|
|
185
185
|
o("span", {
|
|
186
|
-
innerHTML:
|
|
186
|
+
innerHTML: r.label
|
|
187
187
|
}, null, 8, x)
|
|
188
188
|
])
|
|
189
189
|
], 42, X))), 128))
|
|
@@ -201,7 +201,7 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
201
201
|
key: 1,
|
|
202
202
|
id: `${t.value}_invalid_msg`,
|
|
203
203
|
"arial-live": e.$attrs["aria-live"],
|
|
204
|
-
class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-
|
|
204
|
+
class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-danger",
|
|
205
205
|
innerHTML: e.isValid === !1 ? e.feedback.invalid : ""
|
|
206
206
|
}, null, 8, ee)) : d("", !0)
|
|
207
207
|
], 64)) : d("", !0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, createElementBlock as l, openBlock as d, normalizeClass as e, renderSlot as n, createElementVNode as c, withModifiers as p, createVNode as u, unref as k } from "vue";
|
|
2
|
-
import { ArrowIcon as m } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
-
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
2
|
+
import { ArrowIcon as m } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
3
|
+
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
const f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "BaseAccordionBtn",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as h, ref as $, inject as
|
|
1
|
+
import { defineComponent as h, ref as $, inject as p, watch as l, unref as d, createElementBlock as v, openBlock as u, normalizeClass as m, createBlock as y, createCommentVNode as g, renderSlot as s, createElementVNode as f, withModifiers as O, createVNode as k, withCtx as c } from "vue";
|
|
2
2
|
import A from "./BaseAccordionBtn.vue.js";
|
|
3
3
|
import B from "./BaseAccordionContent.vue.js";
|
|
4
|
-
import { ArrowIcon as E } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
5
|
-
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
4
|
+
import { ArrowIcon as E } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
5
|
+
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
6
6
|
const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M = ["itemprop", "innerHTML"], P = /* @__PURE__ */ h({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseAccordionItem",
|
|
@@ -26,31 +26,31 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
26
26
|
},
|
|
27
27
|
emits: ["click", "accordionOpened", "accordionClosed", "update:accordionState"],
|
|
28
28
|
setup(i, { emit: w }) {
|
|
29
|
-
const a = w, o = $(!1), r =
|
|
29
|
+
const a = w, o = $(!1), r = p(
|
|
30
30
|
"accordionItems",
|
|
31
31
|
() => {
|
|
32
32
|
},
|
|
33
33
|
!0
|
|
34
|
-
), b =
|
|
34
|
+
), b = p(
|
|
35
35
|
"handleClick",
|
|
36
36
|
() => {
|
|
37
37
|
},
|
|
38
38
|
!0
|
|
39
|
-
),
|
|
39
|
+
), C = (e, t = !1) => {
|
|
40
40
|
a(t ? "accordionOpened" : "accordionClosed", e), a("update:accordionState", t);
|
|
41
41
|
};
|
|
42
42
|
r && (r.value[i.id] = { id: i.id, title: i.title, active: i.active }), l(
|
|
43
43
|
() => d(r),
|
|
44
44
|
(e) => {
|
|
45
45
|
const t = e?.[i.id];
|
|
46
|
-
!t || o.value === t.active || (o.value = t.active ?? !1,
|
|
46
|
+
!t || o.value === t.active || (o.value = t.active ?? !1, C(
|
|
47
47
|
{ id: i.id, title: i.title, active: t.active },
|
|
48
48
|
t.active
|
|
49
49
|
));
|
|
50
50
|
},
|
|
51
51
|
{ deep: !0, immediate: !0 }
|
|
52
52
|
), l(o, (e) => {
|
|
53
|
-
o.value = e,
|
|
53
|
+
o.value = e, C({ id: i.id, title: i.title, active: o.value }, e);
|
|
54
54
|
}), l(
|
|
55
55
|
() => i.active,
|
|
56
56
|
(e) => {
|
|
@@ -68,7 +68,7 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
68
68
|
f("button", {
|
|
69
69
|
id: `accordion-title-${e.id}`,
|
|
70
70
|
type: "button",
|
|
71
|
-
class: m(["uikit-flex uikit-w-full uikit-items-center uikit-justify-between uikit-border-0 uikit-bg-white uikit-px-
|
|
71
|
+
class: m(["uikit-flex uikit-w-full uikit-items-center uikit-justify-between uikit-border-0 uikit-bg-white uikit-px-5 uikit-py-4 uikit-text-left uikit-font-semibold uikit-transition-colors active:max-sm:uikit-bg-w-cultured hover:sm:uikit-bg-w-cultured", e.btnClasses]),
|
|
72
72
|
"data-cy": e.dataCy,
|
|
73
73
|
"aria-expanded": o.value,
|
|
74
74
|
"aria-controls": `accordion-text-${e.id}`,
|
|
@@ -1,113 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
|
-
import { ToastProvider as $, ToastRoot as z, ToastTitle as M, ToastDescription as P, ToastClose as B, ToastAction as D, ProgressRoot as j, ProgressIndicator as A, ToastViewport as N } from "reka-ui";
|
|
5
|
-
const X = /* @__PURE__ */ g({
|
|
1
|
+
import { defineComponent as t, createElementBlock as r, openBlock as s, normalizeClass as a, renderSlot as l } from "vue";
|
|
2
|
+
const o = ["id"], p = /* @__PURE__ */ t({
|
|
6
3
|
__name: "BaseAlert",
|
|
7
|
-
props:
|
|
8
|
-
alertClass: { default: "
|
|
9
|
-
|
|
10
|
-
}, {
|
|
11
|
-
open: { default: !1 },
|
|
12
|
-
openModifiers: {}
|
|
13
|
-
}),
|
|
14
|
-
emits: ["update:open"],
|
|
4
|
+
props: {
|
|
5
|
+
alertClass: { default: "" }
|
|
6
|
+
},
|
|
15
7
|
setup(n) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
o.value = Math.min(100, v / t * 100), o.value >= 100 && clearInterval(k);
|
|
24
|
-
}, 30);
|
|
25
|
-
}, p = () => {
|
|
26
|
-
clearTimeout(d), d = setTimeout(() => {
|
|
27
|
-
u.value = !1;
|
|
28
|
-
}, n.duration), c(n.duration);
|
|
29
|
-
};
|
|
30
|
-
return x(
|
|
31
|
-
u,
|
|
32
|
-
(t) => {
|
|
33
|
-
y(() => {
|
|
34
|
-
if (t) {
|
|
35
|
-
p();
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
clearInterval(k), clearTimeout(d), o.value = 0;
|
|
39
|
-
});
|
|
40
|
-
},
|
|
41
|
-
{ immediate: !0 }
|
|
42
|
-
), (t, a) => (m(), f(e($), null, {
|
|
43
|
-
default: l(() => [
|
|
44
|
-
r(t.$slots, "trigger", {
|
|
45
|
-
open: () => u.value = !0
|
|
46
|
-
}),
|
|
47
|
-
i(e(z), {
|
|
48
|
-
open: u.value,
|
|
49
|
-
"onUpdate:open": a[1] || (a[1] = (s) => u.value = s),
|
|
50
|
-
duration: t.duration,
|
|
51
|
-
class: C(["toast-root uikit-shadow-surface uikit-relative uikit-flex uikit-gap-x-xs uikit-overflow-hidden uikit-rounded-2xs uikit-p-md uikit-text-16 uikit-font-medium sm:uikit-max-w-[460px]", ["uikit-alert", `uikit-alert-w-${t.alertClass}`]])
|
|
52
|
-
}, {
|
|
53
|
-
default: l(() => [
|
|
54
|
-
t.$slots.title ? (m(), f(e(M), {
|
|
55
|
-
key: 0,
|
|
56
|
-
"as-child": ""
|
|
57
|
-
}, {
|
|
58
|
-
default: l(() => [
|
|
59
|
-
r(t.$slots, "title")
|
|
60
|
-
]),
|
|
61
|
-
_: 3
|
|
62
|
-
})) : I("", !0),
|
|
63
|
-
i(e(P), { "as-child": "" }, {
|
|
64
|
-
default: l(() => [
|
|
65
|
-
r(t.$slots, "default"),
|
|
66
|
-
i(e(B), { class: "uikit-ml-md uikit-flex uikit-size-lg uikit-shrink-0 uikit-cursor-pointer uikit-appearance-none uikit-items-center uikit-justify-center uikit-rounded-full uikit-bg-w-lightgray" }, {
|
|
67
|
-
default: l(() => [
|
|
68
|
-
i(e(V), {
|
|
69
|
-
width: 12,
|
|
70
|
-
height: 12,
|
|
71
|
-
"stroke-color": "#fff"
|
|
72
|
-
})
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
})
|
|
76
|
-
]),
|
|
77
|
-
_: 3
|
|
78
|
-
}),
|
|
79
|
-
i(e(D), {
|
|
80
|
-
class: "[grid-area:_action]",
|
|
81
|
-
"as-child": "",
|
|
82
|
-
"alt-text": "Goto schedule to undo"
|
|
83
|
-
}, {
|
|
84
|
-
default: l(() => [
|
|
85
|
-
r(t.$slots, "toast-action")
|
|
86
|
-
]),
|
|
87
|
-
_: 3
|
|
88
|
-
}),
|
|
89
|
-
i(e(j), {
|
|
90
|
-
modelValue: o.value,
|
|
91
|
-
"onUpdate:modelValue": a[0] || (a[0] = (s) => o.value = s),
|
|
92
|
-
class: "uikit-absolute uikit-bottom-0 uikit-left-0 uikit-h-2xs uikit-w-full uikit-overflow-hidden"
|
|
93
|
-
}, {
|
|
94
|
-
default: l(() => [
|
|
95
|
-
i(e(A), {
|
|
96
|
-
class: "uikit-relative uikit-block uikit-size-full uikit-bg-w-blue uikit-transition-transform uikit-duration-75 uikit-will-change-transform",
|
|
97
|
-
style: b(`transform: translateX(-${100 - o.value}%)`)
|
|
98
|
-
}, null, 8, ["style"])
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
}, 8, ["modelValue"])
|
|
102
|
-
]),
|
|
103
|
-
_: 3
|
|
104
|
-
}, 8, ["open", "duration", "class"]),
|
|
105
|
-
i(e(N), { class: "uikit-fixed uikit-bottom-0 uikit-right-0 uikit-flex uikit-size-full uikit-list-none uikit-flex-col uikit-items-end uikit-justify-end uikit-p-0" })
|
|
106
|
-
]),
|
|
107
|
-
_: 3
|
|
108
|
-
}));
|
|
8
|
+
return (e, i) => (s(), r("div", {
|
|
9
|
+
id: e.$attrs.id,
|
|
10
|
+
class: a(["uikit-alert", e.alertClass]),
|
|
11
|
+
role: "alert"
|
|
12
|
+
}, [
|
|
13
|
+
l(e.$slots, "default")
|
|
14
|
+
], 10, o));
|
|
109
15
|
}
|
|
110
16
|
});
|
|
111
17
|
export {
|
|
112
|
-
|
|
18
|
+
p as default
|
|
113
19
|
};
|