@wikicasa-dev/components 2.1.23 → 2.1.24-alpha.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.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -1
- package/dist/UIKit/BaseAlert.js +2 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.js +2 -2
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +2 -2
- package/dist/UIKit/BaseComplexToggle.js +2 -2
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +2 -2
- package/dist/UIKit/BaseIcon.js +2 -2
- package/dist/UIKit/BaseInput.js +2 -2
- package/dist/UIKit/BaseModal.js +2 -2
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BasePaper.js +2 -2
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.js +2 -2
- package/dist/UIKit/BaseSnackbar.d.ts +39 -20
- package/dist/UIKit/BaseSnackbar.js +3 -5
- package/dist/UIKit/BaseTextarea.js +2 -2
- package/dist/UIKit/BaseToggle.js +2 -2
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/UIKit/Radio/RadioButton.js +1 -1
- package/dist/UIKit/Radio/RadioGroup.js +1 -1
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +2 -2
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +2 -2
- package/dist/UIKit/StaticSpinner.js +2 -2
- package/dist/UIKit/Tab/BaseTab.js +1 -1
- package/dist/UIKit/Tab/BaseTabList.js +1 -1
- package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
- package/dist/UIKit/Tab/BaseTabView.js +1 -1
- package/dist/_virtual/polyline.js +1 -1
- package/dist/assets/{packages/components/lib → lib}/UIKit/BaseBadge.css +1 -1
- package/dist/assets/lib/UIKit/BaseCard.css +1 -0
- package/dist/assets/lib/UIKit/BaseComplexToggle.css +1 -0
- package/dist/assets/lib/UIKit/BaseModal.css +1 -0
- package/dist/assets/lib/UIKit/BaseSnackbar.css +1 -0
- package/dist/assets/lib/UIKit/Slider/SimpleSlider.css +1 -0
- package/dist/assets/node_modules/swiper/modules/keyboard.css +0 -0
- package/dist/assets/node_modules/swiper/modules/navigation.css +1 -0
- package/dist/assets/node_modules/swiper/swiper.css +1 -0
- package/dist/assets/src/tailwind.css +1 -0
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.d.ts +11 -4
- package/dist/components/carousel/SwiperCarousel.js +3 -3
- package/dist/index.js +89 -88
- package/dist/lazyModules/Swiper/autoplay.js +5 -0
- package/dist/lazyModules/Swiper/controller.js +5 -0
- package/dist/lazyModules/Swiper/free-mode.js +5 -0
- package/dist/lazyModules/Swiper/keyboard.js +5 -0
- package/dist/lazyModules/Swiper/navigation.js +5 -0
- package/dist/lazyModules/Swiper/pagination.js +5 -0
- package/dist/lazyModules/Swiper/thumbs.js +5 -0
- package/dist/lib/UIKit/AccessibleSelect.vue.js +211 -0
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordion.vue.js +3 -3
- package/dist/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +60 -0
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionContent.vue.js +10 -10
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionItem.vue.js +54 -54
- package/dist/lib/UIKit/BaseAlert.vue.js +19 -0
- package/dist/lib/UIKit/BaseAutocomplete.vue.js +192 -0
- package/dist/lib/UIKit/BaseBadge.vue.js +19 -0
- package/dist/lib/UIKit/BaseBreadcrumb.vue.js +58 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseButton.vue.js +18 -18
- package/dist/lib/UIKit/BaseCard.vue.js +37 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseComplexToggle.vue.js +29 -29
- package/dist/lib/UIKit/BaseDropDown.vue.js +135 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.vue.js +14 -14
- package/dist/lib/UIKit/BaseIcon.vue.js +27 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseInput.vue.js +86 -86
- package/dist/{packages/components/lib → lib}/UIKit/BaseModal.vue.js +61 -61
- package/dist/{packages/components/lib → lib}/UIKit/BasePagination.vue.js +93 -95
- package/dist/lib/UIKit/BaseSelect/SelectItem.vue.js +41 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseSlider.vue.js +45 -45
- package/dist/lib/UIKit/BaseSnackbar.vue.js +119 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseTextarea.vue.js +57 -57
- package/dist/{packages/components/lib → lib}/UIKit/BaseToggle.vue.js +15 -15
- package/dist/lib/UIKit/BaseTooltip.vue.js +41 -0
- package/dist/lib/UIKit/BaseUploadFile.vue.js +71 -0
- package/dist/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.vue.js +26 -26
- package/dist/lib/UIKit/Checkbox/CheckboxGroup.vue.js +112 -0
- package/dist/lib/UIKit/Radio/RadioButton.vue.js +58 -0
- package/dist/lib/UIKit/Radio/RadioGroup.vue.js +60 -0
- package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +7 -7
- package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +8 -8
- package/dist/{packages/components/lib → lib}/UIKit/Slider/SimpleSlider.vue.js +7 -7
- package/dist/{packages/components/lib → lib}/UIKit/StaticSpinner.vue.js +3 -3
- package/dist/lib/UIKit/Tab/BaseTabList.vue.js +45 -0
- package/dist/lib/UIKit/Tab/BaseTabPanel.vue.js +25 -0
- package/dist/lib/UIKit/Tab/BaseTabView.vue.js +107 -0
- package/dist/lib/chart/DoughnutChart.vue.js +27 -0
- package/dist/lib/chart/LineChart.vue.js +42 -0
- package/dist/lib/components/IntersectionObserver/IntersectionObservable.vue.js +24 -0
- package/dist/{packages/components/lib → lib}/components/carousel/SwiperCarousel.vue.js +26 -27
- package/dist/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +41 -0
- package/dist/node_modules/{.pnpm/js-cookie@3.0.5/node_modules/js-cookie → js-cookie}/dist/js.cookie.js +0 -1
- package/dist/node_modules/swiper/modules/autoplay.js +128 -0
- package/dist/node_modules/swiper/modules/controller.js +100 -0
- package/dist/node_modules/swiper/modules/free-mode.js +123 -0
- package/dist/node_modules/swiper/modules/keyboard.js +66 -0
- package/dist/node_modules/swiper/modules/navigation.js +136 -0
- package/dist/node_modules/swiper/modules/pagination.js +226 -0
- package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/thumbs.js +33 -34
- package/dist/node_modules/swiper/modules/zoom.js +309 -0
- package/dist/node_modules/swiper/shared/classes-to-selector.js +6 -0
- package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/ssr-window.esm.js +9 -10
- package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/utils.js +42 -39
- package/package.json +34 -30
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseModal.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +0 -1
- package/dist/assets/packages/components/src/tailwind.css +0 -1
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -41
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js +0 -129
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js +0 -101
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js +0 -125
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js +0 -67
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js +0 -127
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js +0 -227
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js +0 -310
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/classes-to-selector.js +0 -6
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/controller.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/navigation.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/pagination.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +0 -5
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +0 -213
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +0 -60
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +0 -192
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +0 -58
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +0 -37
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +0 -137
- package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +0 -27
- package/dist/packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js +0 -41
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +0 -81
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +0 -41
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +0 -71
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +0 -114
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +0 -58
- package/dist/packages/components/lib/UIKit/Radio/RadioGroup.vue.js +0 -62
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +0 -45
- package/dist/packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js +0 -25
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +0 -107
- package/dist/packages/components/lib/chart/DoughnutChart.vue.js +0 -27
- package/dist/packages/components/lib/chart/LineChart.vue.js +0 -42
- package/dist/packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js +0 -24
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseAlert.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseIcon.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseInput.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BasePaper.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseSlider.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTextarea.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseToggle.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTooltip.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/StaticSpinner.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel2.css +0 -0
- /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/zoom.css +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BasePaper.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTab.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/components/IntersectionObserver/IntersectionObserver.vue.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/ArrayUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/DeviceDetectionUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/FunctionUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/GenericUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/ObjectUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/StringUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/decode.js +0 -0
- /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/encode.js +0 -0
- /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/polyline.js +0 -0
- /package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/create-element-if-not-defined.js +0 -0
|
@@ -1,192 +0,0 @@
|
|
|
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 "../../../../UIKit/BaseInput.js";
|
|
3
|
-
import q from "./BaseDropDown.vue.js";
|
|
4
|
-
import "../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
5
|
-
import { debounce as G } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js";
|
|
6
|
-
import "../../../../_virtual/polyline.js";
|
|
7
|
-
import J from "./BaseSelect/SelectItem.vue.js";
|
|
8
|
-
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";
|
|
9
|
-
const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
10
|
-
__name: "BaseAutocomplete",
|
|
11
|
-
props: /* @__PURE__ */ y({
|
|
12
|
-
isValid: { default: null },
|
|
13
|
-
theme: { default: "" },
|
|
14
|
-
label: { default: "" },
|
|
15
|
-
disableCb: { type: Boolean, default: !1 },
|
|
16
|
-
onInputChangeCb: { type: Function },
|
|
17
|
-
onOptionSelectedCb: { default: null },
|
|
18
|
-
keepState: { default: null },
|
|
19
|
-
cleanupOnClose: { type: Boolean, default: !0 },
|
|
20
|
-
dropdownClasses: { default: "" },
|
|
21
|
-
closeDropdownOnBodyPressed: { type: Boolean, default: !0 },
|
|
22
|
-
inputClasses: {},
|
|
23
|
-
fieldsetClasses: {},
|
|
24
|
-
dataCy: { default: "" }
|
|
25
|
-
}, {
|
|
26
|
-
modelValue: {
|
|
27
|
-
default() {
|
|
28
|
-
return { id: "", label: "" };
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
modelModifiers: {}
|
|
32
|
-
}),
|
|
33
|
-
emits: /* @__PURE__ */ y(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
|
|
34
|
-
setup(o, { expose: S, emit: V }) {
|
|
35
|
-
const r = F(
|
|
36
|
-
o,
|
|
37
|
-
"modelValue"
|
|
38
|
-
), u = V, i = d(""), n = d([]), p = d(null), b = d(!1), l = d(!1), w = d(null), B = k(() => n.value.length);
|
|
39
|
-
H(() => {
|
|
40
|
-
p.value = G({ delay: 300 }, o.onInputChangeCb);
|
|
41
|
-
});
|
|
42
|
-
const { activeIdx: v, selectedIdx: m } = Q({
|
|
43
|
-
optionsLength: B,
|
|
44
|
-
isDropdownOpen: l,
|
|
45
|
-
disableSpaceHandler: !0
|
|
46
|
-
}), O = k(() => {
|
|
47
|
-
switch (o.theme) {
|
|
48
|
-
case "bordered":
|
|
49
|
-
return "";
|
|
50
|
-
case "all-bordered":
|
|
51
|
-
return "!uikit-rounded " + (l.value && "!uikit-rounded-b-none");
|
|
52
|
-
case "all-bordered-thick":
|
|
53
|
-
return "!uikit-rounded-xl !uikit-h-[52px] " + (l.value && "!uikit-rounded-b-none");
|
|
54
|
-
default:
|
|
55
|
-
return "";
|
|
56
|
-
}
|
|
57
|
-
}), I = k(() => {
|
|
58
|
-
switch (o.theme) {
|
|
59
|
-
case "bordered":
|
|
60
|
-
return "";
|
|
61
|
-
case "all-bordered":
|
|
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" : "");
|
|
63
|
-
case "all-bordered-thick":
|
|
64
|
-
return "!uikit-rounded-xl !uikit-h-[60px] !uikit-border-w-lavender !uikit-border-none " + (l.value ? "!uikit-rounded-b-none" : "");
|
|
65
|
-
default:
|
|
66
|
-
return "";
|
|
67
|
-
}
|
|
68
|
-
}), M = k(() => {
|
|
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";
|
|
70
|
-
switch (o.theme) {
|
|
71
|
-
case "bordered":
|
|
72
|
-
return "before:uikit-content-[''] before:uikit-absolute before:uikit-w-1/2 before:uikit-border-b before:uikit-border-b-w-lavender before:[border-bottom-style:solid] before:uikit-right-1/4 uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mt-5px uikit-mb-0";
|
|
73
|
-
case "all-bordered":
|
|
74
|
-
return e;
|
|
75
|
-
case "all-bordered-thick":
|
|
76
|
-
return e + " !uikit-border-0";
|
|
77
|
-
default:
|
|
78
|
-
return "";
|
|
79
|
-
}
|
|
80
|
-
}), D = async (e) => {
|
|
81
|
-
if (i.value !== e && (u("changedValue", e), i.value = e, !!o.onInputChangeCb)) {
|
|
82
|
-
if (!e || b.value) {
|
|
83
|
-
n.value = [], b.value = !1, m.value = -1, v.value = -1, r.value && (r.value.label = ""), l.value = !1, await p.value(null);
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
o.disableCb || (n.value = await p.value(e), l.value = !!n.value.length);
|
|
87
|
-
}
|
|
88
|
-
}, C = (e, t) => {
|
|
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;
|
|
90
|
-
}, E = () => {
|
|
91
|
-
n.value.length && o.keepState !== "closed" && (l.value = !0);
|
|
92
|
-
};
|
|
93
|
-
return f(
|
|
94
|
-
r,
|
|
95
|
-
(e, t) => {
|
|
96
|
-
e === t || e?.label === i.value || (i.value = e?.label || "");
|
|
97
|
-
},
|
|
98
|
-
{ immediate: !0 }
|
|
99
|
-
), f(m, (e) => {
|
|
100
|
-
if (e === -1 || !n.value.length) return;
|
|
101
|
-
const t = n.value[e];
|
|
102
|
-
b.value && t.label === r.value?.label || C(t, e);
|
|
103
|
-
}), f(
|
|
104
|
-
() => o.keepState,
|
|
105
|
-
(e) => {
|
|
106
|
-
e === "closed" ? (l.value = !1, o.cleanupOnClose && (n.value = [])) : e === "open" && n.value.length && (l.value = !0);
|
|
107
|
-
}
|
|
108
|
-
), f(l, (e) => {
|
|
109
|
-
u("update:dropdownState", e);
|
|
110
|
-
}), S({
|
|
111
|
-
select: () => {
|
|
112
|
-
w.value?.select();
|
|
113
|
-
}
|
|
114
|
-
}), (e, t) => (h(), g(q, {
|
|
115
|
-
class: K(e.$attrs["root-classes"]),
|
|
116
|
-
"data-cy": e.dataCy ? e.dataCy : `ac_${e.$attrs.id}`,
|
|
117
|
-
"dropdown-element": "ul",
|
|
118
|
-
"dropdown-classes": [
|
|
119
|
-
{ "bordered-dropdown": e.theme === "bordered" },
|
|
120
|
-
{ "all-bordered-dropdown": e.theme === "all-bordered" },
|
|
121
|
-
{ "all-bordered-dropdown thick": e.theme === "all-bordered-thick" },
|
|
122
|
-
{
|
|
123
|
-
"uikit-mt-10px !uikit-border !uikit-border-w-secondary !uikit-rounded-xs": !e.theme
|
|
124
|
-
},
|
|
125
|
-
M.value,
|
|
126
|
-
"!uikit-max-h-[210px] uikit-z-30",
|
|
127
|
-
e.dropdownClasses
|
|
128
|
-
],
|
|
129
|
-
"open-dropdown": l.value,
|
|
130
|
-
"keep-state": !n.value.length || e.keepState === "closed" ? "closed" : "opened",
|
|
131
|
-
"close-when-clicked-outside": e.closeDropdownOnBodyPressed,
|
|
132
|
-
"activate-keyboard-controller": !1,
|
|
133
|
-
"onUpdate:dropdownState": t[3] || (t[3] = (a) => l.value = a),
|
|
134
|
-
onClick: t[4] || (t[4] = (a) => {
|
|
135
|
-
u("click"), E();
|
|
136
|
-
})
|
|
137
|
-
}, {
|
|
138
|
-
btn_slot: s(() => [
|
|
139
|
-
W(j, {
|
|
140
|
-
id: e.$attrs.id ? `ac_input_${e.$attrs.id}` : "",
|
|
141
|
-
ref_key: "baseInput",
|
|
142
|
-
ref: w,
|
|
143
|
-
"data-cy": e.dataCy ? `ac_input_${e.dataCy}` : `ac_input_${e.$attrs.id}`,
|
|
144
|
-
"label-text": e.label,
|
|
145
|
-
"model-value": i.value,
|
|
146
|
-
"is-valid": e.isValid,
|
|
147
|
-
disabled: e.$attrs.disabled,
|
|
148
|
-
placeholder: e.$attrs.placeholder,
|
|
149
|
-
"with-left-icon": !!e.$slots.lefticon,
|
|
150
|
-
"with-right-icon": !!e.$slots.righticon,
|
|
151
|
-
"input-class": [
|
|
152
|
-
O.value,
|
|
153
|
-
e.inputClasses,
|
|
154
|
-
"!uikit-ml-0 !uikit-w-full"
|
|
155
|
-
],
|
|
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)),
|
|
159
|
-
onKeydownEnterPressed: t[2] || (t[2] = () => u("keydownEnterPressed"))
|
|
160
|
-
}, {
|
|
161
|
-
leftIcon: s(() => [
|
|
162
|
-
$(e.$slots, "lefticon")
|
|
163
|
-
]),
|
|
164
|
-
righticon: s(({ handleClean: a }) => [
|
|
165
|
-
$(e.$slots, "righticon", { handleClean: a })
|
|
166
|
-
]),
|
|
167
|
-
_: 3
|
|
168
|
-
}, 8, ["id", "data-cy", "label-text", "model-value", "is-valid", "disabled", "placeholder", "with-left-icon", "with-right-icon", "input-class", "fieldset-classes"])
|
|
169
|
-
]),
|
|
170
|
-
default: s(() => [
|
|
171
|
-
(h(!0), T(z, null, A(n.value, (a, c) => (h(), g(J, {
|
|
172
|
-
key: c,
|
|
173
|
-
active: N(v) === 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),
|
|
176
|
-
onMouseover: (P) => v.value = c
|
|
177
|
-
}, {
|
|
178
|
-
default: s(() => [
|
|
179
|
-
U("span", {
|
|
180
|
-
innerHTML: a.label
|
|
181
|
-
}, null, 8, R)
|
|
182
|
-
]),
|
|
183
|
-
_: 2
|
|
184
|
-
}, 1032, ["active", "onClick", "onMouseover"]))), 128))
|
|
185
|
-
]),
|
|
186
|
-
_: 3
|
|
187
|
-
}, 8, ["class", "data-cy", "dropdown-classes", "open-dropdown", "keep-state", "close-when-clicked-outside"]));
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
export {
|
|
191
|
-
ne as default
|
|
192
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
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,
|
|
4
|
-
__name: "BaseBadge",
|
|
5
|
-
props: {
|
|
6
|
-
badgeClass: { default: "uikit-badge-w-primary-sm" }
|
|
7
|
-
},
|
|
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])
|
|
12
|
-
}, [
|
|
13
|
-
i(e.$slots, "default")
|
|
14
|
-
], 10, o));
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
p as default
|
|
19
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
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({
|
|
5
|
-
__name: "BaseBreadcrumb",
|
|
6
|
-
props: {
|
|
7
|
-
items: {},
|
|
8
|
-
listClasses: {},
|
|
9
|
-
listItemClasses: {}
|
|
10
|
-
},
|
|
11
|
-
setup(r) {
|
|
12
|
-
const m = k(() => {
|
|
13
|
-
let e = 0;
|
|
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;
|
|
18
|
-
});
|
|
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])
|
|
22
|
-
}, [
|
|
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
|
|
28
|
-
}, [
|
|
29
|
-
c(e.$slots, "item", {
|
|
30
|
-
item: t
|
|
31
|
-
}, () => [
|
|
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)
|
|
36
|
-
])
|
|
37
|
-
], 10, w)) : (i(), s("li", {
|
|
38
|
-
key: `breadcrumb-li-no-label-${o}`,
|
|
39
|
-
class: a(["uikit-list-none", e.listItemClasses]),
|
|
40
|
-
"aria-hidden": "true"
|
|
41
|
-
}, [
|
|
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
|
-
})
|
|
49
|
-
])
|
|
50
|
-
], 2))
|
|
51
|
-
], 64))), 256))
|
|
52
|
-
], 2)
|
|
53
|
-
]));
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
export {
|
|
57
|
-
v as default
|
|
58
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, computed as o, createBlock as u, openBlock as C, resolveDynamicComponent as p, normalizeClass as a, withCtx as y, createElementVNode as d, renderSlot as l } from "vue";
|
|
2
|
-
const g = /* @__PURE__ */ m({
|
|
3
|
-
__name: "BaseCard",
|
|
4
|
-
props: {
|
|
5
|
-
type: { default: "" },
|
|
6
|
-
rootComponent: { default: "div" },
|
|
7
|
-
cardImgClasses: { default: "" },
|
|
8
|
-
cardBodyClasses: { default: "" }
|
|
9
|
-
},
|
|
10
|
-
emits: ["click"],
|
|
11
|
-
setup(s, { emit: r }) {
|
|
12
|
-
const c = r, n = o(
|
|
13
|
-
() => s.type === "news" ? "news-card" : s.type
|
|
14
|
-
), i = o(() => s.type ? `${s.type}-img` : "");
|
|
15
|
-
return (e, t) => (C(), u(p(e.rootComponent), {
|
|
16
|
-
class: a(["card", [n.value]]),
|
|
17
|
-
onClick: t[0] || (t[0] = (f) => c("click"))
|
|
18
|
-
}, {
|
|
19
|
-
default: y(() => [
|
|
20
|
-
d("div", {
|
|
21
|
-
class: a(["card-img", [i.value, e.cardImgClasses]])
|
|
22
|
-
}, [
|
|
23
|
-
l(e.$slots, "card-image", {}, void 0, !0)
|
|
24
|
-
], 2),
|
|
25
|
-
d("div", {
|
|
26
|
-
class: a(["card-body", [e.cardBodyClasses]])
|
|
27
|
-
}, [
|
|
28
|
-
l(e.$slots, "card-description", {}, void 0, !0)
|
|
29
|
-
], 2)
|
|
30
|
-
]),
|
|
31
|
-
_: 3
|
|
32
|
-
}, 8, ["class"]));
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
export {
|
|
36
|
-
g as default
|
|
37
|
-
};
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { defineComponent as L, mergeModels as b, useId as M, useModel as E, ref as h, computed as O, useTemplateRef as W, watch as n, onBeforeMount as $, onMounted as H, onUnmounted as K, createElementBlock as N, openBlock as u, withModifiers as C, normalizeClass as i, renderSlot as g, createBlock as y, createVNode as T, unref as l, withCtx as D, createElementVNode as V, createCommentVNode as q, resolveDynamicComponent as z } from "vue";
|
|
2
|
-
import R from "./BaseButton.vue.js";
|
|
3
|
-
import { ArrowIcon as U } 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 "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
|
-
import { useKeyboardController as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
6
|
-
const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
7
|
-
inheritAttrs: !1,
|
|
8
|
-
__name: "BaseDropDown",
|
|
9
|
-
props: /* @__PURE__ */ b({
|
|
10
|
-
dropdownClasses: { default: "" },
|
|
11
|
-
btnClasses: { default: "" },
|
|
12
|
-
withArrowIcon: { type: Boolean, default: !1 },
|
|
13
|
-
btnLabel: { default: "" },
|
|
14
|
-
labelClasses: { default: "" },
|
|
15
|
-
direction: { default: "down" },
|
|
16
|
-
arrowWidth: { default: 12 },
|
|
17
|
-
arrowStrokeColor: { default: void 0 },
|
|
18
|
-
isAbsolute: { type: Boolean, default: !0 },
|
|
19
|
-
openDropdown: { type: Boolean, default: !1 },
|
|
20
|
-
closeWhenClickedOutside: { type: Boolean, default: !0 },
|
|
21
|
-
dropdownElement: { default: "div" },
|
|
22
|
-
keepState: { default: "" },
|
|
23
|
-
activateKeyboardController: { type: Boolean, default: !0 },
|
|
24
|
-
dataCy: { default: "" }
|
|
25
|
-
}, {
|
|
26
|
-
toggleDropdown: {
|
|
27
|
-
default: void 0
|
|
28
|
-
},
|
|
29
|
-
toggleDropdownModifiers: {}
|
|
30
|
-
}),
|
|
31
|
-
emits: /* @__PURE__ */ b(["click", "update:dropdownState"], ["update:toggleDropdown"]),
|
|
32
|
-
setup(p, { emit: B }) {
|
|
33
|
-
const o = p, c = M(), f = B, k = E(p, "toggleDropdown"), t = h(!1), d = h([]), I = O(() => d.value.length), w = W("dropdown"), { activeIdx: m, selectedIdx: r } = j({
|
|
34
|
-
optionsLength: I,
|
|
35
|
-
isDropdownOpen: t,
|
|
36
|
-
activate: o.activateKeyboardController
|
|
37
|
-
});
|
|
38
|
-
n(
|
|
39
|
-
() => o.openDropdown,
|
|
40
|
-
(e) => {
|
|
41
|
-
t.value = e;
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
immediate: !0
|
|
45
|
-
}
|
|
46
|
-
), n(t, (e) => {
|
|
47
|
-
f("update:dropdownState", e);
|
|
48
|
-
}), n(k, (e) => {
|
|
49
|
-
e && (t.value = !t.value, k.value = !1);
|
|
50
|
-
}), n(r, (e) => {
|
|
51
|
-
e !== -1 && d.value[e].querySelector("a")?.click();
|
|
52
|
-
});
|
|
53
|
-
const v = () => {
|
|
54
|
-
t.value = !1;
|
|
55
|
-
}, s = () => {
|
|
56
|
-
o.keepState === "closed" && !t.value || o.keepState === "opened" && t.value || (t.value = !t.value);
|
|
57
|
-
}, S = (e) => {
|
|
58
|
-
e != null && (m.value = e);
|
|
59
|
-
}, A = (e) => {
|
|
60
|
-
e != null && (r.value = e);
|
|
61
|
-
};
|
|
62
|
-
return $(() => {
|
|
63
|
-
o.closeWhenClickedOutside && document.body.addEventListener("click", v);
|
|
64
|
-
}), H(() => {
|
|
65
|
-
w.value && (d.value = w.value.children || []);
|
|
66
|
-
}), K(() => {
|
|
67
|
-
o.closeWhenClickedOutside && document.body.removeEventListener("click", v);
|
|
68
|
-
}), (e, a) => (u(), N("div", {
|
|
69
|
-
class: i(["uikit-relative uikit-block", e.$attrs.class]),
|
|
70
|
-
onClick: a[1] || (a[1] = C((G) => {
|
|
71
|
-
f("click"), s();
|
|
72
|
-
}, ["stop"]))
|
|
73
|
-
}, [
|
|
74
|
-
g(e.$slots, "btn_slot", {
|
|
75
|
-
toggleDropdown: s,
|
|
76
|
-
isOpen: t.value
|
|
77
|
-
}, () => [
|
|
78
|
-
T(R, {
|
|
79
|
-
id: l(c),
|
|
80
|
-
type: "button",
|
|
81
|
-
"data-cy": e.dataCy,
|
|
82
|
-
class: i([
|
|
83
|
-
"!uikit-flex uikit-w-full uikit-items-center uikit-truncate",
|
|
84
|
-
e.btnClasses
|
|
85
|
-
]),
|
|
86
|
-
"aria-expanded": t.value,
|
|
87
|
-
"btn-class": "uikit-btn-single-selection"
|
|
88
|
-
}, {
|
|
89
|
-
default: D(() => [
|
|
90
|
-
V("span", {
|
|
91
|
-
class: i(["uikit-mr-5px", e.labelClasses]),
|
|
92
|
-
innerHTML: e.btnLabel
|
|
93
|
-
}, null, 10, F),
|
|
94
|
-
e.withArrowIcon ? (u(), y(l(U), {
|
|
95
|
-
key: 0,
|
|
96
|
-
class: i(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value ? "uikit-rotate-180" : ""]),
|
|
97
|
-
width: e.arrowWidth,
|
|
98
|
-
height: e.arrowWidth,
|
|
99
|
-
"stroke-color": e.arrowStrokeColor
|
|
100
|
-
}, null, 8, ["class", "width", "height", "stroke-color"])) : q("", !0)
|
|
101
|
-
]),
|
|
102
|
-
_: 1
|
|
103
|
-
}, 8, ["id", "data-cy", "class", "aria-expanded"])
|
|
104
|
-
]),
|
|
105
|
-
(u(), y(z(e.dropdownElement), {
|
|
106
|
-
id: "dropdown_" + l(c),
|
|
107
|
-
ref: "dropdown",
|
|
108
|
-
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
109
|
-
class: i(["uikit-max-h-[220px] uikit-w-full uikit-min-w-[90px] uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-border-w-lavender uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-shadow uikit-no-scrollbar", [
|
|
110
|
-
e.dropdownClasses,
|
|
111
|
-
t.value ? "uikit-flex" : "uikit-hidden",
|
|
112
|
-
{ "uikit-bottom-[55px] uikit-rounded-xs": e.direction === "up" },
|
|
113
|
-
{ "uikit-rounded-b uikit-border-t-0": e.direction === "down" },
|
|
114
|
-
{ "uikit-absolute": e.isAbsolute }
|
|
115
|
-
]]),
|
|
116
|
-
"aria-hidden": !t.value,
|
|
117
|
-
onClick: a[0] || (a[0] = C(() => {
|
|
118
|
-
}, ["stop"]))
|
|
119
|
-
}, {
|
|
120
|
-
default: D(() => [
|
|
121
|
-
g(e.$slots, "default", {
|
|
122
|
-
isOpen: t.value,
|
|
123
|
-
toggleDropdown: s,
|
|
124
|
-
activeIdx: l(m),
|
|
125
|
-
selectedIdx: l(r),
|
|
126
|
-
setActiveIdx: S,
|
|
127
|
-
setSelectedIdx: A
|
|
128
|
-
})
|
|
129
|
-
]),
|
|
130
|
-
_: 3
|
|
131
|
-
}, 8, ["id", "data-cy", "class", "aria-hidden"]))
|
|
132
|
-
], 2));
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
export {
|
|
136
|
-
Z as default
|
|
137
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, createElementBlock as i, openBlock as a, normalizeStyle as l, normalizeClass as o } from "vue";
|
|
2
|
-
const s = ["id", "alt", "src", "width", "height", "loading"], h = /* @__PURE__ */ e({
|
|
3
|
-
__name: "BaseIcon",
|
|
4
|
-
props: {
|
|
5
|
-
lazyLoading: { type: Boolean },
|
|
6
|
-
altAttribute: {},
|
|
7
|
-
iconType: { default: "icon-md" },
|
|
8
|
-
iconClass: { default: "uikit-mr-5px" },
|
|
9
|
-
width: {},
|
|
10
|
-
height: {}
|
|
11
|
-
},
|
|
12
|
-
setup(n) {
|
|
13
|
-
return (t, r) => (a(), i("img", {
|
|
14
|
-
id: t.$attrs.id,
|
|
15
|
-
class: o(["uikit-inline-block", t.iconType, t.iconClass]),
|
|
16
|
-
alt: t.altAttribute || t.$attrs.alt,
|
|
17
|
-
style: l(t.$attrs.style),
|
|
18
|
-
src: t.$attrs.src ? t.$attrs.src : "",
|
|
19
|
-
width: t.width,
|
|
20
|
-
height: t.height,
|
|
21
|
-
loading: t.lazyLoading ? "lazy" : "eager"
|
|
22
|
-
}, null, 14, s));
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
export {
|
|
26
|
-
h as default
|
|
27
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, useTemplateRef as u, watch as m, nextTick as d, createElementBlock as c, openBlock as f, normalizeClass as p, renderSlot as k, createElementVNode as v } from "vue";
|
|
2
|
-
const b = ["tabindex"], x = ["innerHTML"], $ = /* @__PURE__ */ r({
|
|
3
|
-
__name: "SelectItem",
|
|
4
|
-
props: {
|
|
5
|
-
label: { default: "" },
|
|
6
|
-
active: { type: Boolean, default: !1 },
|
|
7
|
-
idx: { default: -1 }
|
|
8
|
-
},
|
|
9
|
-
emits: ["click", "mouseover"],
|
|
10
|
-
setup(o, { emit: s }) {
|
|
11
|
-
const l = s, t = o, n = u("liItem");
|
|
12
|
-
return m(
|
|
13
|
-
() => t.active,
|
|
14
|
-
(e) => {
|
|
15
|
-
e && d(() => {
|
|
16
|
-
n.value && n.value.focus();
|
|
17
|
-
});
|
|
18
|
-
},
|
|
19
|
-
{ immediate: !0 }
|
|
20
|
-
), (e, i) => (f(), c("li", {
|
|
21
|
-
ref: "liItem",
|
|
22
|
-
class: p(["uikit-list-none uikit-text-w-black", [
|
|
23
|
-
{ "active uikit-bg-w-cultured": e.active },
|
|
24
|
-
"uikit-outline-none",
|
|
25
|
-
e.$attrs.class
|
|
26
|
-
]]),
|
|
27
|
-
tabindex: e.$attrs.tabindex ?? -1,
|
|
28
|
-
onClick: i[0] || (i[0] = (a) => l("click", t.idx)),
|
|
29
|
-
onMouseover: i[1] || (i[1] = (a) => l("mouseover", t.idx))
|
|
30
|
-
}, [
|
|
31
|
-
k(e.$slots, "default", { itemIdx: e.idx }, () => [
|
|
32
|
-
v("span", {
|
|
33
|
-
innerHTML: t.label
|
|
34
|
-
}, null, 8, x)
|
|
35
|
-
])
|
|
36
|
-
], 42, b));
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
$ as default
|
|
41
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, ref as u, onBeforeMount as f, createBlock as h, openBlock as i, Teleport as y, createElementVNode as e, withModifiers as l, normalizeClass as x, createElementBlock as a, createCommentVNode as s, createVNode as v, unref as _ } from "vue";
|
|
2
|
-
import { CloseIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.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 = { class: "snackbar-container uikit-fixed uikit-bottom-10px uikit-left-10px uikit-z-[2000] max-sm:uikit-left-0 max-sm:uikit-w-full" }, T = ["data-cy"], w = ["src", "alt"], L = {
|
|
5
|
-
key: 1,
|
|
6
|
-
class: "snackbar-type-icon uikit-bg-contain uikit-bg-no-repeat"
|
|
7
|
-
}, M = { class: "snackbar-text uikit-px-4 uikit-py-0 uikit-text uikit-font-regular max-sm:uikit-max-w-[80%] max-sm:uikit-pr-0 sm:uikit-text-16" }, B = ["innerHTML"], H = ["innerHTML"], z = /* @__PURE__ */ b({
|
|
8
|
-
inheritAttrs: !1,
|
|
9
|
-
__name: "BaseSnackbar",
|
|
10
|
-
props: {
|
|
11
|
-
type: { default: "" },
|
|
12
|
-
title: {},
|
|
13
|
-
body: {},
|
|
14
|
-
icon: {},
|
|
15
|
-
timeout: { default: 55e4 },
|
|
16
|
-
cb: { default: null }
|
|
17
|
-
},
|
|
18
|
-
emits: ["snackbar-hidden"],
|
|
19
|
-
setup(k, { emit: m }) {
|
|
20
|
-
const n = k, d = m, o = u(null), r = u(null), p = () => {
|
|
21
|
-
o.value && o.value();
|
|
22
|
-
}, c = () => {
|
|
23
|
-
const t = r.value;
|
|
24
|
-
t && (t.classList.remove("snackbar-active"), t.classList.add("snackbar-hidden"), setTimeout(() => {
|
|
25
|
-
d("snackbar-hidden");
|
|
26
|
-
}, 300));
|
|
27
|
-
};
|
|
28
|
-
return f(() => {
|
|
29
|
-
n.cb && (o.value = n.cb), setTimeout(() => {
|
|
30
|
-
c();
|
|
31
|
-
}, n.timeout);
|
|
32
|
-
}), (t, S) => (i(), h(y, { to: "body" }, [
|
|
33
|
-
e("div", g, [
|
|
34
|
-
e("div", {
|
|
35
|
-
ref_key: "snackbar",
|
|
36
|
-
ref: r,
|
|
37
|
-
"data-cy": t.$attrs["data-cy"],
|
|
38
|
-
class: x(["snackbar snackbar-active uikit-flex uikit-items-center uikit-rounded-[5px] uikit-px-4 uikit-py-10px uikit-font-medium uikit-shadow hover:uikit-cursor-pointer max-sm:uikit-relative max-sm:uikit-mx-10px max-sm:uikit-my-0", t.type]),
|
|
39
|
-
onClick: l(p, ["stop"])
|
|
40
|
-
}, [
|
|
41
|
-
t.icon ? (i(), a("img", {
|
|
42
|
-
key: 0,
|
|
43
|
-
src: t.icon.src,
|
|
44
|
-
alt: `${t.icon.alt}`,
|
|
45
|
-
width: "20",
|
|
46
|
-
height: "20"
|
|
47
|
-
}, null, 8, w)) : s("", !0),
|
|
48
|
-
t.type && !t.icon ? (i(), a("span", L)) : s("", !0),
|
|
49
|
-
e("div", M, [
|
|
50
|
-
t.title ? (i(), a("p", {
|
|
51
|
-
key: 0,
|
|
52
|
-
class: "uikit-m-0",
|
|
53
|
-
innerHTML: t.title
|
|
54
|
-
}, null, 8, B)) : s("", !0),
|
|
55
|
-
t.body ? (i(), a("p", {
|
|
56
|
-
key: 1,
|
|
57
|
-
class: "uikit-m-0",
|
|
58
|
-
innerHTML: t.body
|
|
59
|
-
}, null, 8, H)) : s("", !0)
|
|
60
|
-
]),
|
|
61
|
-
e("button", {
|
|
62
|
-
type: "button",
|
|
63
|
-
"data-cy": "base-snackbar-close-btn",
|
|
64
|
-
class: "uikit-bg-transparent max-sm:uikit-absolute max-sm:uikit-right-5",
|
|
65
|
-
onClick: l(c, ["stop"])
|
|
66
|
-
}, [
|
|
67
|
-
v(_(C), {
|
|
68
|
-
class: "snackbar-close-icon",
|
|
69
|
-
width: 20,
|
|
70
|
-
height: 20,
|
|
71
|
-
"stroke-color": "#000"
|
|
72
|
-
})
|
|
73
|
-
])
|
|
74
|
-
], 10, T)
|
|
75
|
-
])
|
|
76
|
-
]));
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
export {
|
|
80
|
-
z as default
|
|
81
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, createElementBlock as e, openBlock as t, renderSlot as s, createElementVNode as n, normalizeClass as l, createCommentVNode as i } from "vue";
|
|
2
|
-
const r = { class: "base-tooltip" }, m = /* @__PURE__ */ a({
|
|
3
|
-
__name: "BaseTooltip",
|
|
4
|
-
props: {
|
|
5
|
-
theme: { default: () => ({
|
|
6
|
-
color: "blue",
|
|
7
|
-
size: "sm"
|
|
8
|
-
}) },
|
|
9
|
-
direction: { default: "top" },
|
|
10
|
-
customTooltipClass: { default: "" },
|
|
11
|
-
showTooltipContentManually: { type: Boolean, default: !0 },
|
|
12
|
-
tooltipContentClasses: { default: "" }
|
|
13
|
-
},
|
|
14
|
-
setup(p) {
|
|
15
|
-
return (o, u) => (t(), e("div", r, [
|
|
16
|
-
s(o.$slots, "trigger", {}, void 0, !0),
|
|
17
|
-
n("div", {
|
|
18
|
-
class: l(["bg-transparent", [
|
|
19
|
-
o.theme.size,
|
|
20
|
-
`${o.customTooltipClass ? o.customTooltipClass : "tooltip-content-wrapper"}`
|
|
21
|
-
]])
|
|
22
|
-
}, [
|
|
23
|
-
o.showTooltipContentManually ? (t(), e("div", {
|
|
24
|
-
key: 0,
|
|
25
|
-
class: l(["tooltip-content uikit-shadow-lg uikit-shadow-w-primary/10", [
|
|
26
|
-
"base-tooltip-arrow",
|
|
27
|
-
o.direction,
|
|
28
|
-
o.theme.color,
|
|
29
|
-
o.theme.size,
|
|
30
|
-
o.tooltipContentClasses
|
|
31
|
-
]])
|
|
32
|
-
}, [
|
|
33
|
-
s(o.$slots, "content", {}, void 0, !0)
|
|
34
|
-
], 2)) : i("", !0)
|
|
35
|
-
], 2)
|
|
36
|
-
]));
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
m as default
|
|
41
|
-
};
|