@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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent as L, mergeModels as y, useModel as F, ref as d, computed as k, onBeforeMount as H, watch as f, createBlock as g, openBlock as h, normalizeClass as K, withCtx as s, createElementBlock as T, Fragment as z, renderList as A, unref as N, createElementVNode as U, createVNode as W, renderSlot as $ } from "vue";
|
|
2
|
-
import j from "
|
|
3
|
-
import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';/* empty css */
|
|
2
|
+
import j from "../../../../UIKit/BaseInput.js";
|
|
4
3
|
import q from "./BaseDropDown.vue.js";
|
|
5
4
|
import "../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
6
5
|
import { debounce as G } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js";
|
|
@@ -36,7 +35,7 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
|
36
35
|
const r = F(
|
|
37
36
|
o,
|
|
38
37
|
"modelValue"
|
|
39
|
-
), u = V, i = d(""),
|
|
38
|
+
), u = V, i = d(""), n = d([]), p = d(null), b = d(!1), l = d(!1), w = d(null), B = k(() => n.value.length);
|
|
40
39
|
H(() => {
|
|
41
40
|
p.value = G({ delay: 300 }, o.onInputChangeCb);
|
|
42
41
|
});
|
|
@@ -51,22 +50,22 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
|
51
50
|
case "all-bordered":
|
|
52
51
|
return "!uikit-rounded " + (l.value && "!uikit-rounded-b-none");
|
|
53
52
|
case "all-bordered-thick":
|
|
54
|
-
return "!uikit-rounded-
|
|
53
|
+
return "!uikit-rounded-xl !uikit-h-[52px] " + (l.value && "!uikit-rounded-b-none");
|
|
55
54
|
default:
|
|
56
55
|
return "";
|
|
57
56
|
}
|
|
58
|
-
}),
|
|
57
|
+
}), I = k(() => {
|
|
59
58
|
switch (o.theme) {
|
|
60
59
|
case "bordered":
|
|
61
60
|
return "";
|
|
62
61
|
case "all-bordered":
|
|
63
62
|
return "uikit-border uikit-border-w-lavender uikit-border-solid !uikit-rounded !uikit-border-w-lavender !uikit-border " + (l.value ? "!uikit-border-b-0 !uikit-rounded-b-none" : "");
|
|
64
63
|
case "all-bordered-thick":
|
|
65
|
-
return "!uikit-rounded-
|
|
64
|
+
return "!uikit-rounded-xl !uikit-h-[60px] !uikit-border-w-lavender !uikit-border-none " + (l.value ? "!uikit-rounded-b-none" : "");
|
|
66
65
|
default:
|
|
67
66
|
return "";
|
|
68
67
|
}
|
|
69
|
-
}),
|
|
68
|
+
}), M = k(() => {
|
|
70
69
|
const e = "uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mb-0 !uikit-mt-0 uikit-text-w-black !uikit-rounded-b-xl !uikit-rounded-t-none";
|
|
71
70
|
switch (o.theme) {
|
|
72
71
|
case "bordered":
|
|
@@ -81,15 +80,15 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
|
81
80
|
}), D = async (e) => {
|
|
82
81
|
if (i.value !== e && (u("changedValue", e), i.value = e, !!o.onInputChangeCb)) {
|
|
83
82
|
if (!e || b.value) {
|
|
84
|
-
|
|
83
|
+
n.value = [], b.value = !1, m.value = -1, v.value = -1, r.value && (r.value.label = ""), l.value = !1, await p.value(null);
|
|
85
84
|
return;
|
|
86
85
|
}
|
|
87
|
-
o.disableCb || (
|
|
86
|
+
o.disableCb || (n.value = await p.value(e), l.value = !!n.value.length);
|
|
88
87
|
}
|
|
89
88
|
}, C = (e, t) => {
|
|
90
|
-
o.onOptionSelectedCb && o.onOptionSelectedCb(e), o.cleanupOnClose && (
|
|
89
|
+
o.onOptionSelectedCb && o.onOptionSelectedCb(e), o.cleanupOnClose && (n.value = []), b.value = !0, i.value = e.label, r.value = e, l.value = !1, m.value = t;
|
|
91
90
|
}, E = () => {
|
|
92
|
-
|
|
91
|
+
n.value.length && o.keepState !== "closed" && (l.value = !0);
|
|
93
92
|
};
|
|
94
93
|
return f(
|
|
95
94
|
r,
|
|
@@ -98,13 +97,13 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
|
98
97
|
},
|
|
99
98
|
{ immediate: !0 }
|
|
100
99
|
), f(m, (e) => {
|
|
101
|
-
if (e === -1 || !
|
|
102
|
-
const t =
|
|
100
|
+
if (e === -1 || !n.value.length) return;
|
|
101
|
+
const t = n.value[e];
|
|
103
102
|
b.value && t.label === r.value?.label || C(t, e);
|
|
104
103
|
}), f(
|
|
105
104
|
() => o.keepState,
|
|
106
105
|
(e) => {
|
|
107
|
-
e === "closed" ? (l.value = !1, o.cleanupOnClose && (
|
|
106
|
+
e === "closed" ? (l.value = !1, o.cleanupOnClose && (n.value = [])) : e === "open" && n.value.length && (l.value = !0);
|
|
108
107
|
}
|
|
109
108
|
), f(l, (e) => {
|
|
110
109
|
u("update:dropdownState", e);
|
|
@@ -121,18 +120,18 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
|
121
120
|
{ "all-bordered-dropdown": e.theme === "all-bordered" },
|
|
122
121
|
{ "all-bordered-dropdown thick": e.theme === "all-bordered-thick" },
|
|
123
122
|
{
|
|
124
|
-
"uikit-mt-10px !uikit-border !uikit-border-w-
|
|
123
|
+
"uikit-mt-10px !uikit-border !uikit-border-w-secondary !uikit-rounded-xs": !e.theme
|
|
125
124
|
},
|
|
126
|
-
|
|
125
|
+
M.value,
|
|
127
126
|
"!uikit-max-h-[210px] uikit-z-30",
|
|
128
127
|
e.dropdownClasses
|
|
129
128
|
],
|
|
130
129
|
"open-dropdown": l.value,
|
|
131
|
-
"keep-state": !
|
|
130
|
+
"keep-state": !n.value.length || e.keepState === "closed" ? "closed" : "opened",
|
|
132
131
|
"close-when-clicked-outside": e.closeDropdownOnBodyPressed,
|
|
133
132
|
"activate-keyboard-controller": !1,
|
|
134
|
-
"onUpdate:dropdownState": t[3] || (t[3] = (
|
|
135
|
-
onClick: t[4] || (t[4] = (
|
|
133
|
+
"onUpdate:dropdownState": t[3] || (t[3] = (a) => l.value = a),
|
|
134
|
+
onClick: t[4] || (t[4] = (a) => {
|
|
136
135
|
u("click"), E();
|
|
137
136
|
})
|
|
138
137
|
}, {
|
|
@@ -154,31 +153,31 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
|
154
153
|
e.inputClasses,
|
|
155
154
|
"!uikit-ml-0 !uikit-w-full"
|
|
156
155
|
],
|
|
157
|
-
"fieldset-classes": [
|
|
158
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
159
|
-
onKeydown: t[1] || (t[1] = (
|
|
156
|
+
"fieldset-classes": [I.value, e.fieldsetClasses],
|
|
157
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => D(a === void 0 ? "" : `${a}`)),
|
|
158
|
+
onKeydown: t[1] || (t[1] = (a) => u("keydown", a)),
|
|
160
159
|
onKeydownEnterPressed: t[2] || (t[2] = () => u("keydownEnterPressed"))
|
|
161
160
|
}, {
|
|
162
161
|
leftIcon: s(() => [
|
|
163
162
|
$(e.$slots, "lefticon")
|
|
164
163
|
]),
|
|
165
|
-
righticon: s(({ handleClean:
|
|
166
|
-
$(e.$slots, "righticon", { handleClean:
|
|
164
|
+
righticon: s(({ handleClean: a }) => [
|
|
165
|
+
$(e.$slots, "righticon", { handleClean: a })
|
|
167
166
|
]),
|
|
168
167
|
_: 3
|
|
169
168
|
}, 8, ["id", "data-cy", "label-text", "model-value", "is-valid", "disabled", "placeholder", "with-left-icon", "with-right-icon", "input-class", "fieldset-classes"])
|
|
170
169
|
]),
|
|
171
170
|
default: s(() => [
|
|
172
|
-
(h(!0), T(z, null, A(
|
|
171
|
+
(h(!0), T(z, null, A(n.value, (a, c) => (h(), g(J, {
|
|
173
172
|
key: c,
|
|
174
173
|
active: N(v) === c,
|
|
175
|
-
class: "uikit-
|
|
176
|
-
onClick: (P) => C(
|
|
174
|
+
class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
|
|
175
|
+
onClick: (P) => C(a, c),
|
|
177
176
|
onMouseover: (P) => v.value = c
|
|
178
177
|
}, {
|
|
179
178
|
default: s(() => [
|
|
180
179
|
U("span", {
|
|
181
|
-
innerHTML:
|
|
180
|
+
innerHTML: a.label
|
|
182
181
|
}, null, 8, R)
|
|
183
182
|
]),
|
|
184
183
|
_: 2
|
|
@@ -1,54 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as s, createElementBlock as a, openBlock as t, normalizeClass as r, renderSlot as i } from "vue";
|
|
2
|
+
const o = ["id"], p = /* @__PURE__ */ s({
|
|
3
|
+
inheritAttrs: !1,
|
|
3
4
|
__name: "BaseBadge",
|
|
4
5
|
props: {
|
|
5
|
-
badgeClass: { default: "primary-sm" }
|
|
6
|
+
badgeClass: { default: "uikit-badge-w-primary-sm" }
|
|
6
7
|
},
|
|
7
|
-
setup(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
warning: "uikit-badge-w-warning",
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Old style
|
|
15
|
-
*/
|
|
16
|
-
lavender: "uikit-badge-w-lavender",
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Old style
|
|
19
|
-
*/
|
|
20
|
-
danger: "uikit-badge-w-danger",
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Old style
|
|
23
|
-
*/
|
|
24
|
-
"outline-tag": "uikit-badge-outline-tag",
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated Old style
|
|
27
|
-
*/
|
|
28
|
-
"primary-sm": "uikit-badge-w-pink-sm",
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated Old style
|
|
31
|
-
*/
|
|
32
|
-
"dark-primary": "uikit-badge-w-darkblue",
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Old style
|
|
35
|
-
*/
|
|
36
|
-
"outline-tag-listing": "uikit-badge-outline-tag-listing",
|
|
37
|
-
gold: "uikit-badge-gold",
|
|
38
|
-
silver: "uikit-badge-silver",
|
|
39
|
-
premium: "uikit-badge-premium",
|
|
40
|
-
luxury: "uikit-badge-luxury",
|
|
41
|
-
alert: "uikit-badge-alert",
|
|
42
|
-
new: "uikit-badge-new",
|
|
43
|
-
discount: "uikit-badge-discount"
|
|
44
|
-
};
|
|
45
|
-
return (i, s) => (u(), t("span", {
|
|
46
|
-
class: d(["uikit-badge uikit-rounded-2xs uikit-px-xs uikit-py-2xs uikit-text uikit-font-medium uikit-shadow-sm", e[i.badgeClass]])
|
|
8
|
+
setup(d) {
|
|
9
|
+
return (e, l) => (t(), a("span", {
|
|
10
|
+
id: e.$attrs.id,
|
|
11
|
+
class: r(["uikit-badge uikit-shadow-sm", e.badgeClass, e.$attrs.class])
|
|
47
12
|
}, [
|
|
48
|
-
|
|
49
|
-
],
|
|
13
|
+
i(e.$slots, "default")
|
|
14
|
+
], 10, o));
|
|
50
15
|
}
|
|
51
16
|
});
|
|
52
17
|
export {
|
|
53
|
-
|
|
18
|
+
p as default
|
|
54
19
|
};
|
|
@@ -1,48 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}, C = ["data-tooltip", "data-active"], g = ["href"], B = /* @__PURE__ */ m({
|
|
1
|
+
import { defineComponent as d, computed as k, createElementBlock as s, openBlock as i, createElementVNode as n, normalizeClass as a, Fragment as u, renderList as p, renderSlot as c, toDisplayString as h, createVNode as b, unref as f } from "vue";
|
|
2
|
+
import { ArrowIcon as C } 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
|
+
const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], I = ["href"], v = /* @__PURE__ */ d({
|
|
6
5
|
__name: "BaseBreadcrumb",
|
|
7
6
|
props: {
|
|
8
7
|
items: {},
|
|
9
8
|
listClasses: {},
|
|
10
9
|
listItemClasses: {}
|
|
11
10
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
11
|
+
setup(r) {
|
|
12
|
+
const m = k(() => {
|
|
14
13
|
let e = 0;
|
|
15
|
-
const
|
|
16
|
-
for (; e <
|
|
17
|
-
|
|
18
|
-
return
|
|
14
|
+
const l = [];
|
|
15
|
+
for (; e < r.items.length; )
|
|
16
|
+
l.push({ ...r.items[e], idx: e }), e < r.items.length - 1 && l.push({ arrowIcon: !0 }), e++;
|
|
17
|
+
return l;
|
|
19
18
|
});
|
|
20
|
-
return (e,
|
|
21
|
-
|
|
22
|
-
class:
|
|
19
|
+
return (e, l) => (i(), s("nav", g, [
|
|
20
|
+
n("ol", {
|
|
21
|
+
class: a(["uikit-flex uikit-items-center uikit-gap-10px uikit-p-0", e.listClasses])
|
|
23
22
|
}, [
|
|
24
|
-
(
|
|
25
|
-
|
|
26
|
-
key: `breadcrumb-li-${
|
|
27
|
-
class:
|
|
28
|
-
"data-tooltip":
|
|
29
|
-
"data-active": s.active
|
|
23
|
+
(i(!0), s(u, null, p(m.value, (t, o) => (i(), s(u, null, [
|
|
24
|
+
t?.label ? (i(), s("li", {
|
|
25
|
+
key: `breadcrumb-li-${o}`,
|
|
26
|
+
class: a(["uikit-list-none", e.listItemClasses]),
|
|
27
|
+
"data-tooltip": t.dataTooltip
|
|
30
28
|
}, [
|
|
31
|
-
|
|
32
|
-
item:
|
|
29
|
+
c(e.$slots, "item", {
|
|
30
|
+
item: t
|
|
33
31
|
}, () => [
|
|
34
|
-
|
|
35
|
-
class: "uikit-no-underline
|
|
36
|
-
href:
|
|
37
|
-
},
|
|
32
|
+
n("a", {
|
|
33
|
+
class: a(["uikit-text-w-black uikit-no-underline", { "uikit-text-w-primary": t.active }]),
|
|
34
|
+
href: t.link
|
|
35
|
+
}, h(t.label), 11, I)
|
|
38
36
|
])
|
|
39
|
-
], 10,
|
|
40
|
-
key: `breadcrumb-li-no-label-${
|
|
41
|
-
class:
|
|
37
|
+
], 10, w)) : (i(), s("li", {
|
|
38
|
+
key: `breadcrumb-li-no-label-${o}`,
|
|
39
|
+
class: a(["uikit-list-none", e.listItemClasses]),
|
|
42
40
|
"aria-hidden": "true"
|
|
43
41
|
}, [
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
c(e.$slots, "separator", {}, () => [
|
|
43
|
+
b(f(C), {
|
|
44
|
+
class: "-uikit-rotate-90",
|
|
45
|
+
"stroke-color": "#222",
|
|
46
|
+
width: 10,
|
|
47
|
+
height: 10
|
|
48
|
+
})
|
|
46
49
|
])
|
|
47
50
|
], 2))
|
|
48
51
|
], 64))), 256))
|
|
@@ -51,5 +54,5 @@ const f = {
|
|
|
51
54
|
}
|
|
52
55
|
});
|
|
53
56
|
export {
|
|
54
|
-
|
|
57
|
+
v as default
|
|
55
58
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as y, ref as b, computed as l, createElementBlock as f, openBlock as v, withModifiers as s, normalizeStyle as B, normalizeClass as C, renderSlot as u, createVNode as c } from "vue";
|
|
2
|
+
import M from "../../../../UIKit/StaticSpinner.js";
|
|
3
|
+
const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], S = /* @__PURE__ */ y({
|
|
4
4
|
__name: "BaseButton",
|
|
5
5
|
props: {
|
|
6
|
-
btnClass: { default: "primary" },
|
|
6
|
+
btnClass: { default: "uikit-btn-w-primary" },
|
|
7
7
|
outlined: { type: Boolean },
|
|
8
|
-
rounded: { type: Boolean },
|
|
9
8
|
size: {},
|
|
10
9
|
withMinWidth: { type: Boolean, default: !0 },
|
|
11
10
|
keepActive: { type: Boolean },
|
|
@@ -17,68 +16,49 @@ const M = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
17
16
|
type: {}
|
|
18
17
|
},
|
|
19
18
|
emits: ["mouseover", "mouseout", "click"],
|
|
20
|
-
setup(
|
|
21
|
-
const n =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
quaternary: "uikit-btn-quaternary",
|
|
26
|
-
warning: "uikit-btn-warning",
|
|
27
|
-
danger: "uikit-btn-danger",
|
|
28
|
-
transparent: "uikit-btn-transparent",
|
|
29
|
-
light: "uikit-btn-light",
|
|
30
|
-
"show-more": "uikit-btn-show-more",
|
|
31
|
-
"multi-selection": "uikit-btn-multi-selection",
|
|
32
|
-
"single-selection": "uikit-btn-single-selection",
|
|
33
|
-
facile: "uikit-btn-facile"
|
|
34
|
-
}, k = {
|
|
35
|
-
sm: "uikit-btn-sm",
|
|
36
|
-
lg: "uikit-btn-lg"
|
|
37
|
-
}, o = v(!1), b = s(
|
|
38
|
-
() => k[a.size]
|
|
39
|
-
), m = s(() => a.outlined ? "uikit-btn-outline" : ""), p = () => {
|
|
40
|
-
o.value = !0;
|
|
41
|
-
}, y = () => {
|
|
42
|
-
o.value = !1;
|
|
19
|
+
setup(o, { emit: r }) {
|
|
20
|
+
const a = r, n = b(!1), d = l(() => o.size ? `uikit-btn-${o.size}` : ""), m = l(() => o.outlined ? "uikit-btn-outline" : ""), p = () => {
|
|
21
|
+
n.value = !0;
|
|
22
|
+
}, k = () => {
|
|
23
|
+
n.value = !1;
|
|
43
24
|
};
|
|
44
|
-
return (
|
|
45
|
-
id:
|
|
46
|
-
"data-cy":
|
|
47
|
-
type:
|
|
48
|
-
class:
|
|
25
|
+
return (e, t) => (v(), f("button", {
|
|
26
|
+
id: e.$attrs.id,
|
|
27
|
+
"data-cy": e.dataCy,
|
|
28
|
+
type: e.type,
|
|
29
|
+
class: C([
|
|
49
30
|
"uikit-btn",
|
|
50
31
|
{
|
|
51
|
-
"uikit-btn-empty": !
|
|
52
|
-
"active uikit-font-medium":
|
|
53
|
-
"uikit-flex uikit-items-center uikit-justify-center":
|
|
32
|
+
"uikit-btn-empty": !e.withMinWidth,
|
|
33
|
+
"active uikit-font-medium": e.keepActive,
|
|
34
|
+
"uikit-flex uikit-items-center uikit-justify-center": e.isLoading
|
|
54
35
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
m.value
|
|
58
|
-
{ "uikit-btn-rounded": t.rounded }
|
|
36
|
+
e.btnClass,
|
|
37
|
+
d.value,
|
|
38
|
+
m.value
|
|
59
39
|
]),
|
|
60
|
-
style: B(
|
|
61
|
-
"data-active":
|
|
62
|
-
disabled:
|
|
63
|
-
"aria-label":
|
|
64
|
-
title:
|
|
65
|
-
onMouseover:
|
|
66
|
-
p(),
|
|
40
|
+
style: B(e.$attrs.style),
|
|
41
|
+
"data-active": e.keepActive,
|
|
42
|
+
disabled: e.isLoading || e.disabled,
|
|
43
|
+
"aria-label": e.ariaLabel,
|
|
44
|
+
title: e.title,
|
|
45
|
+
onMouseover: t[0] || (t[0] = s((i) => {
|
|
46
|
+
p(), a("mouseover", i);
|
|
67
47
|
}, ["stop"])),
|
|
68
|
-
onMouseout:
|
|
69
|
-
|
|
48
|
+
onMouseout: t[1] || (t[1] = s((i) => {
|
|
49
|
+
k(), a("mouseout", i);
|
|
70
50
|
}, ["stop"])),
|
|
71
|
-
onClick:
|
|
51
|
+
onClick: t[2] || (t[2] = (i) => a("click", i))
|
|
72
52
|
}, [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"stroke-color":
|
|
53
|
+
e.isLoading ? u(e.$slots, "spinner", { key: 1 }, () => [
|
|
54
|
+
c(M, {
|
|
55
|
+
"stroke-color": e.outlined ? "#ACB4C3" : "#fff"
|
|
76
56
|
}, null, 8, ["stroke-color"])
|
|
77
|
-
]) :
|
|
57
|
+
]) : u(e.$slots, "default", {
|
|
78
58
|
key: 0,
|
|
79
|
-
hover:
|
|
59
|
+
hover: n.value
|
|
80
60
|
})
|
|
81
|
-
], 46,
|
|
61
|
+
], 46, z));
|
|
82
62
|
}
|
|
83
63
|
});
|
|
84
64
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as v, mergeModels as T, useModel as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as v, mergeModels as T, useModel as C, computed as c, createElementBlock as n, openBlock as r, normalizeClass as o, createElementVNode as t, withModifiers as f, renderSlot as m, createCommentVNode as k } from "vue";
|
|
2
|
+
const y = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "alt"], M = ["innerHTML"], z = ["data-btn-bg-color", "data-cy"], B = ["src", "alt"], V = ["innerHTML"], j = /* @__PURE__ */ v({
|
|
3
3
|
__name: "BaseComplexToggle",
|
|
4
4
|
props: /* @__PURE__ */ T({
|
|
5
5
|
labels: {},
|
|
6
6
|
type: { default: "full" },
|
|
7
7
|
mode: { default: "" },
|
|
8
|
-
btnBgColor: { default: "uikit-bg-w-
|
|
8
|
+
btnBgColor: { default: "uikit-bg-w-lavender" },
|
|
9
9
|
btnClasses: {},
|
|
10
|
-
borderContainerColor: { default: "uikit-border-w-
|
|
10
|
+
borderContainerColor: { default: "uikit-border-w-secondary" },
|
|
11
11
|
size: { default: "" }
|
|
12
12
|
}, {
|
|
13
13
|
modelValue: {
|
|
@@ -16,8 +16,8 @@ const C = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "
|
|
|
16
16
|
modelModifiers: {}
|
|
17
17
|
}),
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
|
-
setup(
|
|
20
|
-
const l =
|
|
19
|
+
setup(g) {
|
|
20
|
+
const l = g, a = C(g, "modelValue"), s = () => {
|
|
21
21
|
a.value = l.labels.leftToggle;
|
|
22
22
|
}, u = () => {
|
|
23
23
|
a.value = l.labels.rightToggle;
|
|
@@ -34,7 +34,7 @@ const C = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "
|
|
|
34
34
|
s();
|
|
35
35
|
})();
|
|
36
36
|
const b = (e) => a.value?.label === e.label, d = c(() => b(l.labels.leftToggle)), p = c(() => b(l.labels.rightToggle));
|
|
37
|
-
return (e, i) => (
|
|
37
|
+
return (e, i) => (r(), n("div", {
|
|
38
38
|
id: e.$attrs.id || "",
|
|
39
39
|
"data-cy": e.$attrs["data-cy"] || "",
|
|
40
40
|
class: o(["base-complex-toggle uikit-relative uikit-flex uikit-justify-center uikit-p-0", [e.mode, e.borderContainerColor, e.size]])
|
|
@@ -50,9 +50,9 @@ const C = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "
|
|
|
50
50
|
onClick: i[0] || (i[0] = f((h) => s(), ["stop"]))
|
|
51
51
|
}, [
|
|
52
52
|
m(e.$slots, "left_icon", {}, () => [
|
|
53
|
-
e.labels.leftToggle.icon ? (
|
|
53
|
+
e.labels.leftToggle.icon ? (r(), n("img", {
|
|
54
54
|
key: 0,
|
|
55
|
-
class: "base-complex-toggle-icon uikit-
|
|
55
|
+
class: "base-complex-toggle-icon uikit-relative uikit-z-10 uikit-mr-10px",
|
|
56
56
|
src: e.labels.leftToggle.icon.src,
|
|
57
57
|
alt: e.labels.leftToggle.icon.alt,
|
|
58
58
|
width: "15",
|
|
@@ -75,9 +75,9 @@ const C = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "
|
|
|
75
75
|
onClick: i[1] || (i[1] = f((h) => u(), ["stop"]))
|
|
76
76
|
}, [
|
|
77
77
|
m(e.$slots, "right_icon", {}, () => [
|
|
78
|
-
e.labels.rightToggle.icon ? (
|
|
78
|
+
e.labels.rightToggle.icon ? (r(), n("img", {
|
|
79
79
|
key: 0,
|
|
80
|
-
class: "base-complex-toggle-icon uikit-
|
|
80
|
+
class: "base-complex-toggle-icon uikit-relative uikit-z-10 uikit-mr-10px",
|
|
81
81
|
src: e.labels.rightToggle.icon.src,
|
|
82
82
|
alt: e.labels.rightToggle.icon.alt,
|
|
83
83
|
width: "15",
|
|
@@ -98,7 +98,7 @@ const C = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "
|
|
|
98
98
|
e.btnClasses
|
|
99
99
|
]])
|
|
100
100
|
}, null, 2)
|
|
101
|
-
], 10,
|
|
101
|
+
], 10, y));
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
export {
|