@wikicasa-dev/components 2.1.3 → 2.1.4-alpha.1
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 +20 -9
- package/dist/UIKit/BaseBadge.d.ts +40 -5
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +4 -0
- package/dist/UIKit/BaseBanner.js +4 -0
- package/dist/UIKit/BaseBreadcrumb.js +3 -2
- package/dist/UIKit/BaseButton.d.ts +9 -8
- package/dist/UIKit/BaseChip.js +4 -0
- package/dist/UIKit/BaseCollapse.js +7 -0
- package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
- package/dist/UIKit/BaseComplexToggle.js +2 -2
- package/dist/UIKit/BaseDropDown.d.ts +5 -0
- package/dist/UIKit/BaseFloatingLabel.js +1 -3
- package/dist/UIKit/BaseInput.d.ts +4 -5
- package/dist/UIKit/BaseInput.js +1 -3
- package/dist/UIKit/BaseNotificationBadge.js +4 -0
- package/dist/UIKit/BasePagination.d.ts +10 -3
- package/dist/UIKit/BasePin.js +5 -0
- package/dist/UIKit/BaseSlider.d.ts +14 -10
- package/dist/UIKit/BaseSlider.js +1 -4
- package/dist/UIKit/BaseSnackbar.js +4 -4
- package/dist/UIKit/BaseTextarea.d.ts +4 -4
- package/dist/UIKit/BaseTextarea.js +4 -4
- package/dist/UIKit/BaseToggle.d.ts +5 -8
- package/dist/UIKit/BaseToggle.js +1 -4
- package/dist/UIKit/BaseTooltip.d.ts +10 -20
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +9 -16
- package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -5
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -3
- package/dist/UIKit/DatePicker.js +5 -0
- package/dist/UIKit/InputDropdown.js +4 -0
- package/dist/UIKit/NativeSelect.js +5 -0
- package/dist/UIKit/Navigation/NavigationBar.d.ts +17 -0
- package/dist/UIKit/Navigation/NavigationBar.js +5 -0
- package/dist/UIKit/Navigation/NavigationBarItem.d.ts +34 -0
- package/dist/UIKit/Navigation/NavigationBarItem.js +4 -0
- package/dist/UIKit/SegmentedControl/SegmentedControl.js +4 -0
- package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +4 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +1 -3
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +1 -5
- package/dist/UIKit/Tab/BaseTabItem.d.ts +27 -0
- package/dist/UIKit/Tab/BaseTabItem.js +4 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +3 -3
- package/dist/UIKit/types.d.ts +11 -6
- 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 +1 -0
- 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/BaseBreadcrumb.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +1 -0
- 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/BasePin.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/BaseTooltip.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/DatePicker.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/NativeSelect.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -1
- 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 +3 -2
- package/dist/index.js +92 -85
- 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 +19 -0
- 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 +16 -0
- 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 +29 -0
- 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 +33 -0
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.js +9 -9
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.js +17 -17
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.js +13 -13
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/utils.js +32 -26
- 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 +15 -15
- 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 +107 -13
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +28 -27
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +46 -11
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +29 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +75 -0
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +32 -35
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +57 -37
- package/dist/packages/components/lib/UIKit/BaseChip.vue.js +38 -0
- package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +54 -0
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +12 -12
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +48 -45
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +12 -15
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +93 -119
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +70 -66
- package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +19 -0
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +89 -134
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +107 -178
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +7 -7
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +55 -73
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +27 -31
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +48 -33
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +19 -40
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +55 -52
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +20 -24
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +143 -0
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +152 -0
- package/dist/packages/components/lib/UIKit/NativeSelect.vue.js +65 -0
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +21 -0
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +48 -0
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +93 -0
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +30 -0
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +10 -9
- package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +10 -9
- package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +39 -0
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +30 -27
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +40 -36
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +5 -6
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +5 -3
- package/package.json +21 -18
- package/dist/UIKit/Slider/SimpleSlider.d.ts +0 -19
- package/dist/UIKit/Slider/SimpleSlider.js +0 -7
- package/dist/assets/packages/components/lib/UIKit/BaseSlider.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseToggle.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Checkbox/CheckboxBtn.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +0 -1
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -4
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -4
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -12
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +0 -18
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -4
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +0 -82
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/swiper.css +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_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.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_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.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_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.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_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.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/classes-to-selector.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
|
@@ -1,51 +1,48 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { defineComponent as m, computed as k, createElementBlock as i, openBlock as l, createElementVNode as o, normalizeClass as r, Fragment as u, renderList as p, renderSlot as d, toDisplayString as b, createTextVNode as h } from "vue";
|
|
2
|
+
const f = {
|
|
3
|
+
"aria-label": "Breadcrumb",
|
|
4
|
+
class: "uikit-text"
|
|
5
|
+
}, C = ["data-tooltip", "data-active"], g = ["href"], B = /* @__PURE__ */ m({
|
|
5
6
|
__name: "BaseBreadcrumb",
|
|
6
7
|
props: {
|
|
7
8
|
items: {},
|
|
8
9
|
listClasses: {},
|
|
9
10
|
listItemClasses: {}
|
|
10
11
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
12
|
+
setup(a) {
|
|
13
|
+
const c = k(() => {
|
|
13
14
|
let e = 0;
|
|
14
|
-
const
|
|
15
|
-
for (; e <
|
|
16
|
-
|
|
17
|
-
return
|
|
15
|
+
const t = [];
|
|
16
|
+
for (; e < a.items.length; )
|
|
17
|
+
t.push({ ...a.items[e], idx: e }), e < a.items.length - 1 && t.push({ arrowIcon: !0 }), e++;
|
|
18
|
+
return t;
|
|
18
19
|
});
|
|
19
|
-
return (e,
|
|
20
|
-
|
|
21
|
-
class:
|
|
20
|
+
return (e, t) => (l(), i("nav", f, [
|
|
21
|
+
o("ol", {
|
|
22
|
+
class: r(["uikit-gap-10px uikit-flex uikit-items-center uikit-p-0", e.listClasses])
|
|
22
23
|
}, [
|
|
23
|
-
(
|
|
24
|
-
|
|
25
|
-
key: `breadcrumb-li-${
|
|
26
|
-
class:
|
|
27
|
-
"data-tooltip":
|
|
24
|
+
(l(!0), i(u, null, p(c.value, (s, n) => (l(), i(u, null, [
|
|
25
|
+
s?.label ? (l(), i("li", {
|
|
26
|
+
key: `breadcrumb-li-${n}`,
|
|
27
|
+
class: r(["uikit-breadcrumb-item uikit-list-none", e.listItemClasses]),
|
|
28
|
+
"data-tooltip": s.dataTooltip,
|
|
29
|
+
"data-active": s.active
|
|
28
30
|
}, [
|
|
29
|
-
|
|
30
|
-
item:
|
|
31
|
+
d(e.$slots, "item", {
|
|
32
|
+
item: s
|
|
31
33
|
}, () => [
|
|
32
|
-
|
|
33
|
-
class:
|
|
34
|
-
href:
|
|
35
|
-
},
|
|
34
|
+
o("a", {
|
|
35
|
+
class: "uikit-no-underline [font-size:inherit]",
|
|
36
|
+
href: s.link
|
|
37
|
+
}, b(s.label), 9, g)
|
|
36
38
|
])
|
|
37
|
-
], 10,
|
|
38
|
-
key: `breadcrumb-li-no-label-${
|
|
39
|
-
class:
|
|
39
|
+
], 10, C)) : (l(), i("li", {
|
|
40
|
+
key: `breadcrumb-li-no-label-${n}`,
|
|
41
|
+
class: r(["uikit-list-none uikit-px-sm", e.listItemClasses]),
|
|
40
42
|
"aria-hidden": "true"
|
|
41
43
|
}, [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class: "-uikit-rotate-90",
|
|
45
|
-
"stroke-color": "#222",
|
|
46
|
-
width: 10,
|
|
47
|
-
height: 10
|
|
48
|
-
})
|
|
44
|
+
d(e.$slots, "separator", {}, () => [
|
|
45
|
+
t[0] || (t[0] = h(" / "))
|
|
49
46
|
])
|
|
50
47
|
], 2))
|
|
51
48
|
], 64))), 256))
|
|
@@ -54,5 +51,5 @@ const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], I = ["href"], v
|
|
|
54
51
|
}
|
|
55
52
|
});
|
|
56
53
|
export {
|
|
57
|
-
|
|
54
|
+
B as default
|
|
58
55
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as f, ref as c, computed as s, createElementBlock as v, openBlock as g, withModifiers as l, normalizeStyle as w, normalizeClass as B, renderSlot as r, createVNode as h } from "vue";
|
|
2
|
+
import C from "../../../../UIKit/StaticSpinner.js";
|
|
3
|
+
const M = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], S = /* @__PURE__ */ f({
|
|
4
4
|
__name: "BaseButton",
|
|
5
5
|
props: {
|
|
6
|
-
btnClass: { default: "
|
|
6
|
+
btnClass: { default: "primary" },
|
|
7
7
|
outlined: { type: Boolean },
|
|
8
|
+
rounded: { type: Boolean },
|
|
8
9
|
size: {},
|
|
9
10
|
withMinWidth: { type: Boolean, default: !0 },
|
|
10
11
|
keepActive: { type: Boolean },
|
|
@@ -16,49 +17,68 @@ const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
16
17
|
type: {}
|
|
17
18
|
},
|
|
18
19
|
emits: ["mouseover", "mouseout", "click"],
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
setup(a, { emit: u }) {
|
|
21
|
+
const n = u, d = {
|
|
22
|
+
primary: "uikit-btn-w-primary",
|
|
23
|
+
secondary: "uikit-btn-w-secondary",
|
|
24
|
+
ternary: "uikit-btn-w-ternary",
|
|
25
|
+
quaternary: "uikit-btn-w-quaternary",
|
|
26
|
+
warning: "uikit-btn-w-warning",
|
|
27
|
+
danger: "uikit-btn-w-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 = c(!1), b = s(
|
|
38
|
+
() => k[a.size] || "uikit-btn-md"
|
|
39
|
+
), m = s(() => a.outlined ? "uikit-btn-outline" : ""), p = () => {
|
|
40
|
+
o.value = !0;
|
|
41
|
+
}, y = () => {
|
|
42
|
+
o.value = !1;
|
|
24
43
|
};
|
|
25
|
-
return (
|
|
26
|
-
id:
|
|
27
|
-
"data-cy":
|
|
28
|
-
type:
|
|
29
|
-
class:
|
|
30
|
-
"uikit-btn",
|
|
44
|
+
return (t, e) => (g(), v("button", {
|
|
45
|
+
id: t.$attrs.id,
|
|
46
|
+
"data-cy": t.dataCy,
|
|
47
|
+
type: t.type,
|
|
48
|
+
class: B([
|
|
49
|
+
"uikit-shadow-surface uikit-btn",
|
|
31
50
|
{
|
|
32
|
-
"uikit-btn-empty": !
|
|
33
|
-
"active uikit-font-medium":
|
|
34
|
-
"uikit-flex uikit-items-center uikit-justify-center":
|
|
51
|
+
"uikit-btn-empty": !t.withMinWidth,
|
|
52
|
+
"active uikit-font-medium": t.keepActive,
|
|
53
|
+
"uikit-flex uikit-items-center uikit-justify-center": t.isLoading
|
|
35
54
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
m.value
|
|
55
|
+
d[t.btnClass],
|
|
56
|
+
b.value,
|
|
57
|
+
m.value,
|
|
58
|
+
{ "uikit-btn-rounded": t.rounded }
|
|
39
59
|
]),
|
|
40
|
-
style:
|
|
41
|
-
"data-active":
|
|
42
|
-
disabled:
|
|
43
|
-
"aria-label":
|
|
44
|
-
title:
|
|
45
|
-
onMouseover:
|
|
46
|
-
p(),
|
|
60
|
+
style: w(t.$attrs.style),
|
|
61
|
+
"data-active": t.keepActive,
|
|
62
|
+
disabled: t.isLoading || t.disabled,
|
|
63
|
+
"aria-label": t.ariaLabel,
|
|
64
|
+
title: t.title,
|
|
65
|
+
onMouseover: e[0] || (e[0] = l((i) => {
|
|
66
|
+
p(), n("mouseover", i);
|
|
47
67
|
}, ["stop"])),
|
|
48
|
-
onMouseout:
|
|
49
|
-
|
|
68
|
+
onMouseout: e[1] || (e[1] = l((i) => {
|
|
69
|
+
y(), n("mouseout", i);
|
|
50
70
|
}, ["stop"])),
|
|
51
|
-
onClick:
|
|
71
|
+
onClick: e[2] || (e[2] = (i) => n("click", i))
|
|
52
72
|
}, [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"stroke-color":
|
|
73
|
+
t.isLoading ? r(t.$slots, "spinner", { key: 1 }, () => [
|
|
74
|
+
h(C, {
|
|
75
|
+
"stroke-color": t.outlined ? "#ACB4C3" : "#fff"
|
|
56
76
|
}, null, 8, ["stroke-color"])
|
|
57
|
-
]) :
|
|
77
|
+
]) : r(t.$slots, "default", {
|
|
58
78
|
key: 0,
|
|
59
|
-
hover:
|
|
79
|
+
hover: o.value
|
|
60
80
|
})
|
|
61
|
-
], 46,
|
|
81
|
+
], 46, M));
|
|
62
82
|
}
|
|
63
83
|
});
|
|
64
84
|
export {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as a, useModel as d, createBlock as s, openBlock as i, unref as o, withCtx as k, renderSlot as m, createElementBlock as n, createCommentVNode as f, createVNode as c } from "vue";
|
|
2
|
+
import { Toggle as p } from "reka-ui";
|
|
3
|
+
import { CloseIcon as x } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
4
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
|
+
const b = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "uikit-box-border uikit-flex uikit-size-sm uikit-items-center uikit-justify-center uikit-rounded-full uikit-bg-w-blue uikit-text-10 uikit-text-white"
|
|
8
|
+
}, C = /* @__PURE__ */ a({
|
|
9
|
+
__name: "BaseChip",
|
|
10
|
+
props: {
|
|
11
|
+
modelValue: { default: !1 },
|
|
12
|
+
modelModifiers: {}
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue"],
|
|
15
|
+
setup(u) {
|
|
16
|
+
const e = d(u, "modelValue");
|
|
17
|
+
return (l, t) => (i(), s(o(p), {
|
|
18
|
+
modelValue: e.value,
|
|
19
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => e.value = r),
|
|
20
|
+
class: "uikit-flex uikit-h-xl uikit-items-center uikit-gap-x-2xs uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-px-sm uikit-py-xs uikit-text-12 hover:uikit-border-[#385CF6] data-[state=on]:uikit-border-[#385CF6] data-[state=on]:uikit-bg-w-cultured data-[state=on]:uikit-font-medium data-[state=on]:uikit-text-w-blue"
|
|
21
|
+
}, {
|
|
22
|
+
default: k(() => [
|
|
23
|
+
m(l.$slots, "default"),
|
|
24
|
+
e.value ? (i(), n("span", b, [
|
|
25
|
+
c(o(x), {
|
|
26
|
+
width: 6,
|
|
27
|
+
height: 6,
|
|
28
|
+
"stroke-color": "#fff"
|
|
29
|
+
})
|
|
30
|
+
])) : f("", !0)
|
|
31
|
+
]),
|
|
32
|
+
_: 3
|
|
33
|
+
}, 8, ["modelValue"]));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
C as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineComponent as s, mergeModels as p, useModel as d, createBlock as f, openBlock as m, unref as t, withCtx as i, createVNode as n, renderSlot as l, normalizeClass as k } from "vue";
|
|
2
|
+
import { ArrowFilledIcon as c } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js";
|
|
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 { CollapsibleRoot as b, CollapsibleTrigger as g, CollapsibleContent as C } from "reka-ui";
|
|
5
|
+
const M = /* @__PURE__ */ s({
|
|
6
|
+
__name: "BaseCollapse",
|
|
7
|
+
props: /* @__PURE__ */ p({
|
|
8
|
+
unmountOnHide: { type: Boolean, default: !0 }
|
|
9
|
+
}, {
|
|
10
|
+
open: { default: !1 },
|
|
11
|
+
openModifiers: {}
|
|
12
|
+
}),
|
|
13
|
+
emits: ["update:open"],
|
|
14
|
+
setup(a) {
|
|
15
|
+
const o = d(a, "open");
|
|
16
|
+
return (e, r) => (m(), f(t(b), {
|
|
17
|
+
open: o.value,
|
|
18
|
+
"onUpdate:open": r[0] || (r[0] = (u) => o.value = u),
|
|
19
|
+
"unmount-on-hide": e.unmountOnHide
|
|
20
|
+
}, {
|
|
21
|
+
default: i(() => [
|
|
22
|
+
n(t(g), { class: "uikit-inline-flex uikit-cursor-pointer uikit-appearance-none uikit-items-center uikit-gap-xs uikit-bg-transparent uikit-p-0 uikit-font-semibold uikit-text-w-blue" }, {
|
|
23
|
+
default: i(() => [
|
|
24
|
+
l(e.$slots, "label", {}, void 0, !0),
|
|
25
|
+
l(e.$slots, "trigger", {}, () => [
|
|
26
|
+
n(t(c), {
|
|
27
|
+
"fill-color": "#2b5dff",
|
|
28
|
+
width: 14,
|
|
29
|
+
height: 16,
|
|
30
|
+
class: k([
|
|
31
|
+
"uikit-pointer-events-none uikit-transition-transform uikit-will-change-transform",
|
|
32
|
+
{
|
|
33
|
+
"uikit-rotate-180": o.value
|
|
34
|
+
}
|
|
35
|
+
])
|
|
36
|
+
}, null, 8, ["class"])
|
|
37
|
+
], !0)
|
|
38
|
+
]),
|
|
39
|
+
_: 3
|
|
40
|
+
}),
|
|
41
|
+
n(t(C), { class: "collapsible-content" }, {
|
|
42
|
+
default: i(() => [
|
|
43
|
+
l(e.$slots, "default", {}, void 0, !0)
|
|
44
|
+
]),
|
|
45
|
+
_: 3
|
|
46
|
+
})
|
|
47
|
+
]),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 8, ["open", "unmount-on-hide"]));
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
M as default
|
|
54
|
+
};
|
|
@@ -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 y, computed as c, createElementBlock as r, openBlock as g, normalizeClass as o, createElementVNode as t, withModifiers as f, renderSlot as m, createCommentVNode as k } from "vue";
|
|
2
|
+
const C = ["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-gray" },
|
|
9
9
|
btnClasses: {},
|
|
10
|
-
borderContainerColor: { default: "uikit-border-w-
|
|
10
|
+
borderContainerColor: { default: "uikit-border-w-gray" },
|
|
11
11
|
size: { default: "" }
|
|
12
12
|
}, {
|
|
13
13
|
modelValue: {
|
|
@@ -16,8 +16,8 @@ const y = ["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(n) {
|
|
20
|
+
const l = n, a = y(n, "modelValue"), s = () => {
|
|
21
21
|
a.value = l.labels.leftToggle;
|
|
22
22
|
}, u = () => {
|
|
23
23
|
a.value = l.labels.rightToggle;
|
|
@@ -34,7 +34,7 @@ const y = ["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) => (g(), r("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 y = ["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 ? (g(), r("img", {
|
|
54
54
|
key: 0,
|
|
55
|
-
class: "base-complex-toggle-icon uikit-relative uikit-z-10
|
|
55
|
+
class: "base-complex-toggle-icon uikit-mr-10px uikit-relative uikit-z-10",
|
|
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 y = ["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 ? (g(), r("img", {
|
|
79
79
|
key: 0,
|
|
80
|
-
class: "base-complex-toggle-icon uikit-relative uikit-z-10
|
|
80
|
+
class: "base-complex-toggle-icon uikit-mr-10px uikit-relative uikit-z-10",
|
|
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 y = ["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, C));
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as L, mergeModels as
|
|
1
|
+
import { defineComponent as L, mergeModels as h, useId as M, useModel as E, ref as y, computed as H, useTemplateRef as O, watch as d, onBeforeMount as W, onMounted as $, onUnmounted as K, createElementBlock as N, openBlock as p, withModifiers as C, normalizeClass as l, renderSlot as g, createBlock as D, createVNode as T, unref as i, withCtx as S, createElementVNode as V, createCommentVNode as q, resolveDynamicComponent as z } from "vue";
|
|
2
2
|
import R from "./BaseButton.vue.js";
|
|
3
|
-
import { ArrowIcon as U } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
4
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
+
import { ArrowIcon as U } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
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
|
|
6
|
+
const x = ["innerHTML"], Y = /* @__PURE__ */ L({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseDropDown",
|
|
9
|
-
props: /* @__PURE__ */
|
|
9
|
+
props: /* @__PURE__ */ h({
|
|
10
10
|
dropdownClasses: { default: "" },
|
|
11
11
|
btnClasses: { default: "" },
|
|
12
12
|
withArrowIcon: { type: Boolean, default: !1 },
|
|
@@ -21,6 +21,7 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
|
21
21
|
dropdownElement: { default: "div" },
|
|
22
22
|
keepState: { default: "" },
|
|
23
23
|
activateKeyboardController: { type: Boolean, default: !0 },
|
|
24
|
+
disableSpaceHandler: { type: Boolean, default: !1 },
|
|
24
25
|
dataCy: { default: "" }
|
|
25
26
|
}, {
|
|
26
27
|
toggleDropdown: {
|
|
@@ -28,14 +29,15 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
|
28
29
|
},
|
|
29
30
|
toggleDropdownModifiers: {}
|
|
30
31
|
}),
|
|
31
|
-
emits: /* @__PURE__ */
|
|
32
|
-
setup(
|
|
33
|
-
const o =
|
|
34
|
-
optionsLength:
|
|
32
|
+
emits: /* @__PURE__ */ h(["click", "update:dropdownState", "update:selectedIdx"], ["update:toggleDropdown"]),
|
|
33
|
+
setup(c, { emit: I }) {
|
|
34
|
+
const o = c, f = M(), n = I, k = E(c, "toggleDropdown"), t = y(!1), r = y([]), B = H(() => r.value.length), w = O("dropdown"), { activeIdx: m, selectedIdx: s } = j({
|
|
35
|
+
optionsLength: B,
|
|
35
36
|
isDropdownOpen: t,
|
|
36
|
-
activate: o.activateKeyboardController
|
|
37
|
+
activate: o.activateKeyboardController,
|
|
38
|
+
disableSpaceHandler: o.disableSpaceHandler
|
|
37
39
|
});
|
|
38
|
-
|
|
40
|
+
d(
|
|
39
41
|
() => o.openDropdown,
|
|
40
42
|
(e) => {
|
|
41
43
|
t.value = e;
|
|
@@ -43,57 +45,58 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
|
43
45
|
{
|
|
44
46
|
immediate: !0
|
|
45
47
|
}
|
|
46
|
-
),
|
|
47
|
-
|
|
48
|
-
}),
|
|
48
|
+
), d(t, (e) => {
|
|
49
|
+
n("update:dropdownState", e);
|
|
50
|
+
}), d(k, (e) => {
|
|
49
51
|
e && (t.value = !t.value, k.value = !1);
|
|
50
|
-
}),
|
|
51
|
-
e !== -1 &&
|
|
52
|
+
}), d(s, (e) => {
|
|
53
|
+
e !== -1 && (r.value[e].querySelector("a")?.click(), n("update:selectedIdx", e));
|
|
52
54
|
});
|
|
53
55
|
const v = () => {
|
|
54
56
|
t.value = !1;
|
|
55
|
-
},
|
|
57
|
+
}, u = () => {
|
|
56
58
|
o.keepState === "closed" && !t.value || o.keepState === "opened" && t.value || (t.value = !t.value);
|
|
57
|
-
},
|
|
59
|
+
}, b = (e) => {
|
|
58
60
|
e != null && (m.value = e);
|
|
59
61
|
}, A = (e) => {
|
|
60
|
-
e != null && (
|
|
62
|
+
e != null && (s.value = e);
|
|
61
63
|
};
|
|
62
|
-
return
|
|
64
|
+
return W(() => {
|
|
63
65
|
o.closeWhenClickedOutside && document.body.addEventListener("click", v);
|
|
64
|
-
}),
|
|
65
|
-
w.value && (
|
|
66
|
+
}), $(() => {
|
|
67
|
+
w.value && (r.value = w.value.children || []);
|
|
66
68
|
}), K(() => {
|
|
67
69
|
o.closeWhenClickedOutside && document.body.removeEventListener("click", v);
|
|
68
|
-
}), (e, a) => (
|
|
69
|
-
class:
|
|
70
|
-
onClick: a[1] || (a[1] = C((
|
|
71
|
-
|
|
70
|
+
}), (e, a) => (p(), N("div", {
|
|
71
|
+
class: l(["uikit-relative uikit-block", e.$attrs.class]),
|
|
72
|
+
onClick: a[1] || (a[1] = C((F) => {
|
|
73
|
+
n("click"), u();
|
|
72
74
|
}, ["stop"]))
|
|
73
75
|
}, [
|
|
74
76
|
g(e.$slots, "btn_slot", {
|
|
75
|
-
toggleDropdown:
|
|
76
|
-
isOpen: t.value
|
|
77
|
+
toggleDropdown: u,
|
|
78
|
+
isOpen: t.value,
|
|
79
|
+
setActiveIdx: b
|
|
77
80
|
}, () => [
|
|
78
81
|
T(R, {
|
|
79
|
-
id:
|
|
82
|
+
id: i(f),
|
|
80
83
|
type: "button",
|
|
81
84
|
"data-cy": e.dataCy,
|
|
82
|
-
class:
|
|
85
|
+
class: l([
|
|
83
86
|
"!uikit-flex uikit-w-full uikit-items-center uikit-truncate",
|
|
84
87
|
e.btnClasses
|
|
85
88
|
]),
|
|
86
89
|
"aria-expanded": t.value,
|
|
87
|
-
"btn-class": "
|
|
90
|
+
"btn-class": "single-selection"
|
|
88
91
|
}, {
|
|
89
|
-
default:
|
|
92
|
+
default: S(() => [
|
|
90
93
|
V("span", {
|
|
91
|
-
class:
|
|
94
|
+
class: l(["uikit-mr-5px", e.labelClasses]),
|
|
92
95
|
innerHTML: e.btnLabel
|
|
93
|
-
}, null, 10,
|
|
94
|
-
e.withArrowIcon ? (
|
|
96
|
+
}, null, 10, x),
|
|
97
|
+
e.withArrowIcon ? (p(), D(i(U), {
|
|
95
98
|
key: 0,
|
|
96
|
-
class:
|
|
99
|
+
class: l(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value ? "uikit-rotate-180" : ""]),
|
|
97
100
|
width: e.arrowWidth,
|
|
98
101
|
height: e.arrowWidth,
|
|
99
102
|
"stroke-color": e.arrowStrokeColor
|
|
@@ -102,11 +105,11 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
|
102
105
|
_: 1
|
|
103
106
|
}, 8, ["id", "data-cy", "class", "aria-expanded"])
|
|
104
107
|
]),
|
|
105
|
-
(
|
|
106
|
-
id: "dropdown_" +
|
|
108
|
+
(p(), D(z(e.dropdownElement), {
|
|
109
|
+
id: "dropdown_" + i(f),
|
|
107
110
|
ref: "dropdown",
|
|
108
111
|
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
109
|
-
class:
|
|
112
|
+
class: l(["uikit-border-w-lavender uikit-max-h-[220px] uikit-w-full uikit-min-w-[90px] uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-shadow uikit-no-scrollbar", [
|
|
110
113
|
e.dropdownClasses,
|
|
111
114
|
t.value ? "uikit-flex" : "uikit-hidden",
|
|
112
115
|
{ "uikit-bottom-[55px] uikit-rounded-xs": e.direction === "up" },
|
|
@@ -117,13 +120,13 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
|
117
120
|
onClick: a[0] || (a[0] = C(() => {
|
|
118
121
|
}, ["stop"]))
|
|
119
122
|
}, {
|
|
120
|
-
default:
|
|
123
|
+
default: S(() => [
|
|
121
124
|
g(e.$slots, "default", {
|
|
122
125
|
isOpen: t.value,
|
|
123
|
-
toggleDropdown:
|
|
124
|
-
activeIdx:
|
|
125
|
-
selectedIdx:
|
|
126
|
-
setActiveIdx:
|
|
126
|
+
toggleDropdown: u,
|
|
127
|
+
activeIdx: i(m),
|
|
128
|
+
selectedIdx: i(s),
|
|
129
|
+
setActiveIdx: b,
|
|
127
130
|
setSelectedIdx: A
|
|
128
131
|
})
|
|
129
132
|
]),
|
|
@@ -133,5 +136,5 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
|
133
136
|
}
|
|
134
137
|
});
|
|
135
138
|
export {
|
|
136
|
-
|
|
139
|
+
Y as default
|
|
137
140
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as o, createElementBlock as
|
|
2
|
-
const k = ["for"], b = ["innerHTML"],
|
|
1
|
+
import { defineComponent as o, createElementBlock as i, openBlock as s, withModifiers as r, normalizeClass as l, createElementVNode as d, createCommentVNode as u } from "vue";
|
|
2
|
+
const k = ["for"], b = ["innerHTML"], C = /* @__PURE__ */ o({
|
|
3
3
|
__name: "BaseFloatingLabel",
|
|
4
4
|
props: {
|
|
5
5
|
labelState: { default: "inline-label" },
|
|
@@ -12,29 +12,26 @@ const k = ["for"], b = ["innerHTML"], c = /* @__PURE__ */ o({
|
|
|
12
12
|
emits: ["click"],
|
|
13
13
|
setup(m, { emit: a }) {
|
|
14
14
|
const n = a;
|
|
15
|
-
return (e,
|
|
15
|
+
return (e, t) => (s(), i("label", {
|
|
16
16
|
for: e.$attrs.for,
|
|
17
|
-
class:
|
|
18
|
-
onClick:
|
|
17
|
+
class: l(["uikit-floating-label uikit-h-5 uikit-pointer-events-none uikit-absolute uikit-left-sm uikit-text-16 uikit-text-w-gray", [e.labelState, { "uikit-text-w-secondary": e.disabled }, e.labelClasses]]),
|
|
18
|
+
onClick: t[0] || (t[0] = r((p) => n("click"), ["stop"]))
|
|
19
19
|
}, [
|
|
20
|
-
|
|
21
|
-
class:
|
|
22
|
-
e.disabled ? "uikit-text-w-secondary" : "uikit-text-w-black",
|
|
23
|
-
e.labelTextClasses
|
|
24
|
-
]]),
|
|
20
|
+
d("span", {
|
|
21
|
+
class: l([{ "uikit-text-w-secondary": e.disabled }, e.labelTextClasses]),
|
|
25
22
|
innerHTML: e.labelText
|
|
26
23
|
}, null, 10, b),
|
|
27
|
-
e.$attrs.required ? (s(),
|
|
24
|
+
e.$attrs.required ? (s(), i("sup", {
|
|
28
25
|
key: 0,
|
|
29
|
-
class:
|
|
26
|
+
class: l(["uikit-absolute -uikit-top-[0.3rem]", [
|
|
30
27
|
{ "uikit-text-w-secondary": e.disabled },
|
|
31
|
-
{ "uikit-text-w-
|
|
28
|
+
{ "uikit-text-w-red": e.isValid === !1 },
|
|
32
29
|
{ "uikit-text-w-primary": (e.isValid || e.isValid === null) && !e.disabled }
|
|
33
30
|
]])
|
|
34
|
-
}, " *", 2)) :
|
|
31
|
+
}, " *", 2)) : u("", !0)
|
|
35
32
|
], 10, k));
|
|
36
33
|
}
|
|
37
34
|
});
|
|
38
35
|
export {
|
|
39
|
-
|
|
36
|
+
C as default
|
|
40
37
|
};
|