@wikicasa-dev/components 2.1.4-alpha.24 → 2.1.4-alpha.3
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.d.ts +2 -2
- package/dist/UIKit/Accordion/BaseAccordion.d.ts +28 -26
- package/dist/UIKit/Accordion/BaseAccordionContent.d.ts +4 -4
- package/dist/UIKit/Accordion/BaseAccordionItem.d.ts +40 -14
- package/dist/UIKit/Accordion/BaseAccordionItem.js +2 -3
- package/dist/UIKit/BaseAutocomplete.d.ts +13 -15
- package/dist/UIKit/BaseAutocomplete.js +2 -3
- package/dist/UIKit/BaseBadge.d.ts +38 -2
- package/dist/UIKit/BaseDropDown.d.ts +36 -21
- package/dist/UIKit/BaseDropDown.js +2 -3
- package/dist/UIKit/BaseInput.d.ts +7 -6
- package/dist/UIKit/BaseModal.d.ts +2 -2
- package/dist/UIKit/BasePagination.d.ts +1 -7
- package/dist/UIKit/BaseTextarea.d.ts +2 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +2 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -3
- package/dist/UIKit/NativeSelect.js +5 -0
- package/dist/UIKit/Radio/RadioButton.d.ts +2 -2
- package/dist/UIKit/types.d.ts +5 -8
- 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/BaseComplexToggle.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BasePin.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/{BaseSelect.css → NativeSelect.css} +1 -1
- package/dist/assets/packages/components/src/tailwind.css +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +87 -96
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +10 -0
- package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.js +13 -13
- package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/shared/classes-to-selector.js +1 -1
- 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 +24 -24
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +28 -25
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +128 -59
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +143 -110
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +45 -16
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +26 -23
- package/dist/packages/components/lib/UIKit/BaseChip.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +99 -83
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +4 -4
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +51 -52
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +1 -1
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +40 -63
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +1 -1
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +1 -1
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +3 -3
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +4 -4
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +38 -39
- package/dist/packages/components/lib/UIKit/{BaseSelect.vue.js → NativeSelect.vue.js} +12 -12
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +1 -1
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +6 -7
- package/package.json +31 -24
- package/dist/UIKit/BasePin.d.ts +0 -22
- package/dist/UIKit/BaseSelect.d.ts +0 -26
- package/dist/UIKit/BaseSelect.js +0 -5
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/cloneDeep.js +0 -4
- package/dist/_virtual/create-plugin.js +0 -4
- package/dist/_virtual/createPlugin.js +0 -4
- package/dist/_virtual/default-theme.js +0 -4
- package/dist/_virtual/defaultTheme.js +0 -7
- package/dist/_virtual/plugin.js +0 -7
- package/dist/assets/packages/components/lib/UIKit/Accordion/BaseAccordionItem.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseAutocomplete.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseDropDown.css +0 -1
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.4/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -8
- 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/defaultTheme.js +0 -11
- 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/public/default-theme.js +0 -26
- 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/cloneDeep.js +0 -23
- 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/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/stubs/config.full.js +0 -1068
- package/dist/packages/components/plugins/buttonPlugin.js +0 -232
- package/dist/tailwind.config.js +0 -147
- package/plugins/buttonPlugin.ts +0 -290
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/swiper.css +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.15-alpha.1_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.15-alpha.1_vue@3.5.16_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.15-alpha.1_vue@3.5.16_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.15-alpha.1_vue@3.5.16_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/{@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.22-alpha.4 → @wikicasa-dev_utilities@1.1.21}/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3}/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_ → @wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3}/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/controller.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/controller.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/pagination.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/modules/zoom.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.10 → swiper@11.2.8}/node_modules/swiper/shared/utils.js +0 -0
|
@@ -1,124 +1,140 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { ArrowIcon as
|
|
4
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
5
|
-
import { useKeyboardController as
|
|
6
|
-
const
|
|
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
|
+
import R from "./BaseButton.vue.js";
|
|
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
|
+
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 x = ["innerHTML"], Y = /* @__PURE__ */ L({
|
|
7
|
+
inheritAttrs: !1,
|
|
7
8
|
__name: "BaseDropDown",
|
|
8
|
-
props: /* @__PURE__ */
|
|
9
|
+
props: /* @__PURE__ */ h({
|
|
10
|
+
dropdownClasses: { default: "" },
|
|
11
|
+
btnClasses: { default: "" },
|
|
9
12
|
withArrowIcon: { type: Boolean, default: !1 },
|
|
13
|
+
btnLabel: { default: "" },
|
|
14
|
+
labelClasses: { default: "" },
|
|
10
15
|
direction: { default: "down" },
|
|
16
|
+
arrowWidth: { default: 12 },
|
|
17
|
+
arrowStrokeColor: { default: void 0 },
|
|
11
18
|
isAbsolute: { type: Boolean, default: !0 },
|
|
19
|
+
openDropdown: { type: Boolean, default: !1 },
|
|
12
20
|
closeWhenClickedOutside: { type: Boolean, default: !0 },
|
|
13
21
|
dropdownElement: { default: "div" },
|
|
22
|
+
keepState: { default: "" },
|
|
14
23
|
activateKeyboardController: { type: Boolean, default: !0 },
|
|
15
24
|
disableSpaceHandler: { type: Boolean, default: !1 },
|
|
16
|
-
|
|
17
|
-
btnProps: {},
|
|
18
|
-
arrowProps: {},
|
|
19
|
-
labelClasses: {},
|
|
20
|
-
dataCy: {}
|
|
25
|
+
dataCy: { default: "" }
|
|
21
26
|
}, {
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
toggleDropdown: {
|
|
28
|
+
default: void 0
|
|
29
|
+
},
|
|
30
|
+
toggleDropdownModifiers: {}
|
|
24
31
|
}),
|
|
25
|
-
emits: /* @__PURE__ */
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
optionsLength:
|
|
29
|
-
isDropdownOpen:
|
|
30
|
-
activate:
|
|
31
|
-
disableSpaceHandler:
|
|
32
|
-
})
|
|
33
|
-
|
|
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,
|
|
36
|
+
isDropdownOpen: t,
|
|
37
|
+
activate: o.activateKeyboardController,
|
|
38
|
+
disableSpaceHandler: o.disableSpaceHandler
|
|
39
|
+
});
|
|
40
|
+
d(
|
|
41
|
+
() => o.openDropdown,
|
|
42
|
+
(e) => {
|
|
43
|
+
t.value = e;
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
immediate: !0
|
|
47
|
+
}
|
|
48
|
+
), d(t, (e) => {
|
|
49
|
+
n("update:dropdownState", e);
|
|
50
|
+
}), d(k, (e) => {
|
|
51
|
+
e && (t.value = !t.value, k.value = !1);
|
|
52
|
+
}), d(s, (e) => {
|
|
53
|
+
e !== -1 && (r.value[e].querySelector("a")?.click(), n("update:selectedIdx", e));
|
|
54
|
+
});
|
|
55
|
+
const v = () => {
|
|
56
|
+
t.value = !1;
|
|
34
57
|
}, u = () => {
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
e != null && (
|
|
38
|
-
},
|
|
39
|
-
e != null && (
|
|
58
|
+
o.keepState === "closed" && !t.value || o.keepState === "opened" && t.value || (t.value = !t.value);
|
|
59
|
+
}, b = (e) => {
|
|
60
|
+
e != null && (m.value = e);
|
|
61
|
+
}, A = (e) => {
|
|
62
|
+
e != null && (s.value = e);
|
|
40
63
|
};
|
|
41
|
-
return
|
|
42
|
-
|
|
64
|
+
return W(() => {
|
|
65
|
+
o.closeWhenClickedOutside && document.body.addEventListener("click", v);
|
|
66
|
+
}), $(() => {
|
|
67
|
+
w.value && (r.value = w.value.children || []);
|
|
43
68
|
}), K(() => {
|
|
44
|
-
|
|
45
|
-
}),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}), b(
|
|
50
|
-
i,
|
|
51
|
-
(e) => {
|
|
52
|
-
e !== void 0 && (o.value = e);
|
|
53
|
-
},
|
|
54
|
-
{ immediate: !0 }
|
|
55
|
-
), (e, l) => (a(), y("div", {
|
|
56
|
-
class: "uikit-base-dropdown uikit-relative uikit-block",
|
|
57
|
-
onClick: l[1] || (l[1] = h((U) => {
|
|
58
|
-
c("click"), u();
|
|
69
|
+
o.closeWhenClickedOutside && document.body.removeEventListener("click", v);
|
|
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();
|
|
59
74
|
}, ["stop"]))
|
|
60
75
|
}, [
|
|
61
|
-
|
|
76
|
+
g(e.$slots, "btn_slot", {
|
|
62
77
|
toggleDropdown: u,
|
|
63
|
-
isOpen:
|
|
64
|
-
setActiveIdx:
|
|
78
|
+
isOpen: t.value,
|
|
79
|
+
setActiveIdx: b
|
|
65
80
|
}, () => [
|
|
66
|
-
|
|
81
|
+
T(R, {
|
|
82
|
+
id: i(f),
|
|
67
83
|
type: "button",
|
|
68
84
|
"data-cy": e.dataCy,
|
|
69
|
-
class:
|
|
70
|
-
"uikit-w-full uikit-
|
|
71
|
-
e.
|
|
85
|
+
class: l([
|
|
86
|
+
"!uikit-flex uikit-w-full uikit-items-center uikit-truncate",
|
|
87
|
+
e.btnClasses
|
|
72
88
|
]),
|
|
73
|
-
"aria-expanded":
|
|
74
|
-
"btn-class":
|
|
89
|
+
"aria-expanded": t.value,
|
|
90
|
+
"btn-class": "single-selection"
|
|
75
91
|
}, {
|
|
76
|
-
default:
|
|
77
|
-
|
|
92
|
+
default: S(() => [
|
|
93
|
+
V("span", {
|
|
94
|
+
class: l(["uikit-mr-5px", e.labelClasses]),
|
|
95
|
+
innerHTML: e.btnLabel
|
|
96
|
+
}, null, 10, x),
|
|
97
|
+
e.withArrowIcon ? (p(), D(i(U), {
|
|
78
98
|
key: 0,
|
|
79
|
-
class:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
class: n(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", [o.value ? "uikit-rotate-180" : "", e.arrowProps?.classes]]),
|
|
85
|
-
width: e.arrowProps?.width ?? 12,
|
|
86
|
-
height: e.arrowProps?.height ?? 12,
|
|
87
|
-
"stroke-color": e.arrowProps?.strokeColor ?? "#222"
|
|
88
|
-
}, null, 8, ["class", "width", "height", "stroke-color"])) : B("", !0)
|
|
99
|
+
class: l(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value ? "uikit-rotate-180" : ""]),
|
|
100
|
+
width: e.arrowWidth,
|
|
101
|
+
height: e.arrowWidth,
|
|
102
|
+
"stroke-color": e.arrowStrokeColor
|
|
103
|
+
}, null, 8, ["class", "width", "height", "stroke-color"])) : q("", !0)
|
|
89
104
|
]),
|
|
90
105
|
_: 1
|
|
91
|
-
}, 8, ["data-cy", "class", "aria-expanded"
|
|
106
|
+
}, 8, ["id", "data-cy", "class", "aria-expanded"])
|
|
92
107
|
]),
|
|
93
|
-
(
|
|
94
|
-
id: "dropdown_" +
|
|
108
|
+
(p(), D(z(e.dropdownElement), {
|
|
109
|
+
id: "dropdown_" + i(f),
|
|
95
110
|
ref: "dropdown",
|
|
96
111
|
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
97
|
-
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", [
|
|
98
113
|
e.dropdownClasses,
|
|
99
|
-
|
|
100
|
-
{ "uikit-bottom-[55px]": e.direction === "up" },
|
|
114
|
+
t.value ? "uikit-flex" : "uikit-hidden",
|
|
115
|
+
{ "uikit-bottom-[55px] uikit-rounded-xs": e.direction === "up" },
|
|
116
|
+
{ "uikit-rounded-b uikit-border-t-0": e.direction === "down" },
|
|
101
117
|
{ "uikit-absolute": e.isAbsolute }
|
|
102
118
|
]]),
|
|
103
|
-
"aria-hidden": !
|
|
104
|
-
onClick:
|
|
119
|
+
"aria-hidden": !t.value,
|
|
120
|
+
onClick: a[0] || (a[0] = C(() => {
|
|
105
121
|
}, ["stop"]))
|
|
106
122
|
}, {
|
|
107
|
-
default:
|
|
108
|
-
|
|
109
|
-
isOpen:
|
|
123
|
+
default: S(() => [
|
|
124
|
+
g(e.$slots, "default", {
|
|
125
|
+
isOpen: t.value,
|
|
110
126
|
toggleDropdown: u,
|
|
111
|
-
activeIdx:
|
|
112
|
-
selectedIdx:
|
|
113
|
-
setActiveIdx:
|
|
114
|
-
setSelectedIdx:
|
|
127
|
+
activeIdx: i(m),
|
|
128
|
+
selectedIdx: i(s),
|
|
129
|
+
setActiveIdx: b,
|
|
130
|
+
setSelectedIdx: A
|
|
115
131
|
})
|
|
116
132
|
]),
|
|
117
133
|
_: 3
|
|
118
134
|
}, 8, ["id", "data-cy", "class", "aria-hidden"]))
|
|
119
|
-
]));
|
|
135
|
+
], 2));
|
|
120
136
|
}
|
|
121
137
|
});
|
|
122
138
|
export {
|
|
123
|
-
|
|
139
|
+
Y as default
|
|
124
140
|
};
|
|
@@ -10,23 +10,23 @@ const k = ["for"], b = ["innerHTML"], C = /* @__PURE__ */ o({
|
|
|
10
10
|
labelTextClasses: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["click"],
|
|
13
|
-
setup(
|
|
13
|
+
setup(m, { emit: a }) {
|
|
14
14
|
const n = a;
|
|
15
15
|
return (e, t) => (s(), i("label", {
|
|
16
16
|
for: e.$attrs.for,
|
|
17
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((
|
|
18
|
+
onClick: t[0] || (t[0] = r((p) => n("click"), ["stop"]))
|
|
19
19
|
}, [
|
|
20
20
|
d("span", {
|
|
21
21
|
class: l([{ "uikit-text-w-secondary": e.disabled }, e.labelTextClasses]),
|
|
22
22
|
innerHTML: e.labelText
|
|
23
23
|
}, null, 10, b),
|
|
24
|
-
e.$attrs.required ? (s(), i("
|
|
24
|
+
e.$attrs.required ? (s(), i("sup", {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: l(["uikit-absolute -uikit-top-[0.3rem]", [
|
|
27
27
|
{ "uikit-text-w-secondary": e.disabled },
|
|
28
28
|
{ "uikit-text-w-red": e.isValid === !1 },
|
|
29
|
-
{ "uikit-text-w-
|
|
29
|
+
{ "uikit-text-w-primary": (e.isValid || e.isValid === null) && !e.disabled }
|
|
30
30
|
]])
|
|
31
31
|
}, " *", 2)) : u("", !0)
|
|
32
32
|
], 10, k));
|
|
@@ -1,58 +1,61 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as A, mergeModels as L, useModel as N, ref as v, useAttrs as O, useId as j, computed as D, watch as p, createElementBlock as o, openBlock as s, normalizeClass as T, unref as k, renderSlot as m, createElementVNode as G, createBlock as J, createCommentVNode as h, withKeys as Q, withModifiers as g, Fragment as B, renderList as E } from "vue";
|
|
2
|
+
import W from "./BaseFloatingLabel.vue.js";
|
|
3
3
|
import '../../../../assets/packages/components/lib/UIKit/BaseFloatingLabel.css';/* empty css */
|
|
4
|
-
import { useFloatingLabel as
|
|
5
|
-
const
|
|
4
|
+
import { useFloatingLabel as X } from "../../../../composables/useFloatingLabel.js";
|
|
5
|
+
const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], Z = ["innerHTML"], x = ["innerHTML"], U = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "under-label uikit-absolute uikit-text-12"
|
|
8
|
-
}, _ = "peer-data-[validation='invalid']:uikit-text-w-red peer-data-[validation='valid']:uikit-text-w-blue", ne = /* @__PURE__ */
|
|
8
|
+
}, _ = "peer-data-[validation='invalid']:uikit-text-w-red peer-data-[validation='valid']:uikit-text-w-blue", ne = /* @__PURE__ */ A({
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
__name: "BaseInput",
|
|
11
11
|
props: /* @__PURE__ */ L({
|
|
12
|
+
inputClass: {},
|
|
12
13
|
labelText: { default: "" },
|
|
13
14
|
feedback: {},
|
|
14
15
|
isValid: { default: null },
|
|
15
16
|
keepFloatingLabel: { type: Boolean, default: !1 },
|
|
16
17
|
formatter: { default: null },
|
|
17
|
-
inputClass: {},
|
|
18
18
|
labelClasses: {},
|
|
19
19
|
labelTextClasses: {},
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
withLeftIcon: { type: Boolean, default: () => {
|
|
21
|
+
} },
|
|
22
|
+
withRightIcon: { type: Boolean, default: () => {
|
|
23
|
+
} },
|
|
24
|
+
dataCy: {}
|
|
22
25
|
}, {
|
|
23
26
|
modelValue: { default: "" },
|
|
24
27
|
modelModifiers: {}
|
|
25
28
|
}),
|
|
26
29
|
emits: /* @__PURE__ */ L(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
|
|
27
30
|
setup(l, { expose: M, emit: H }) {
|
|
28
|
-
const u =
|
|
31
|
+
const u = N(l, "modelValue"), i = v(""), d = H, {
|
|
29
32
|
labelState: c,
|
|
30
33
|
handleFocusIn: P,
|
|
31
|
-
handleFocusOut:
|
|
32
|
-
setInlineLabel:
|
|
34
|
+
handleFocusOut: w,
|
|
35
|
+
setInlineLabel: $,
|
|
33
36
|
setFloatingLabel: V
|
|
34
|
-
} =
|
|
37
|
+
} = X(), I = O(), q = j(), r = D(() => I.id || q), n = v("text"), f = v({}), b = v(null), K = () => {
|
|
35
38
|
l.feedback && (f.value = l.feedback, l.feedback.valid && typeof l.feedback.valid == "string" && (f.value.valid = [l.feedback.valid]), l.feedback.invalid && typeof l.feedback.invalid == "string" && (f.value.invalid = [l.feedback.invalid]));
|
|
36
|
-
},
|
|
39
|
+
}, F = (e, a) => {
|
|
37
40
|
if (!l.formatter || !l.formatter.formatFn)
|
|
38
41
|
return i.value = e, "";
|
|
39
42
|
const t = e.length ? l.formatter.formatFn(e) : e;
|
|
40
43
|
return a && (a.value = t), i.value = t, t;
|
|
41
|
-
},
|
|
44
|
+
}, C = (e, a = !0) => {
|
|
42
45
|
if (a && (!l.formatter || !l.formatter.unFormatFn))
|
|
43
46
|
return u.value = e, e;
|
|
44
47
|
if (!a || !l.formatter || !l.formatter.unFormatFn) return;
|
|
45
48
|
const t = l.formatter.unFormatFn(e);
|
|
46
49
|
return u.value = t ?? "", t;
|
|
47
|
-
},
|
|
48
|
-
const a = e, t =
|
|
49
|
-
|
|
50
|
+
}, R = ({ target: e }) => {
|
|
51
|
+
const a = e, t = C(a.value);
|
|
52
|
+
F(
|
|
50
53
|
`${t}`,
|
|
51
54
|
t === u.value ? a : void 0
|
|
52
55
|
);
|
|
56
|
+
}, S = () => {
|
|
57
|
+
u.value = "", $();
|
|
53
58
|
}, z = () => {
|
|
54
|
-
u.value = "", h();
|
|
55
|
-
}, A = () => {
|
|
56
59
|
n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
|
|
57
60
|
};
|
|
58
61
|
return p(
|
|
@@ -66,10 +69,10 @@ const X = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
66
69
|
), p(
|
|
67
70
|
u,
|
|
68
71
|
(e) => {
|
|
69
|
-
|
|
72
|
+
F(
|
|
70
73
|
`${e}`,
|
|
71
|
-
|
|
72
|
-
), i.value != null && i.value.length > 0 && c.value !== "floating-label" ? V() : !i.value && document && document.activeElement !== b.value &&
|
|
74
|
+
C(`${e}`, !1) === e ? b.value : void 0
|
|
75
|
+
), i.value != null && i.value.length > 0 && c.value !== "floating-label" ? V() : !i.value && document && document.activeElement !== b.value && $();
|
|
73
76
|
},
|
|
74
77
|
{
|
|
75
78
|
immediate: !0
|
|
@@ -77,9 +80,9 @@ const X = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
77
80
|
), p(
|
|
78
81
|
() => l.keepFloatingLabel,
|
|
79
82
|
(e) => {
|
|
80
|
-
e ? V() :
|
|
83
|
+
e ? V() : w(u.value);
|
|
81
84
|
}
|
|
82
|
-
), n.value =
|
|
85
|
+
), n.value = I.type || "text", M({
|
|
83
86
|
select: () => {
|
|
84
87
|
b.value?.select();
|
|
85
88
|
}
|
|
@@ -87,20 +90,20 @@ const X = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
87
90
|
class: T(["uikit-input-wrapper [&.has-right-icon.is-invalid_.text-input-icon]:uikit-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:uikit-mr-25px uikit-relative uikit-inline-block uikit-w-full", [
|
|
88
91
|
e.$attrs.class,
|
|
89
92
|
{ "floating-label": e.labelText },
|
|
90
|
-
|
|
93
|
+
k(c) === "floating-label" ? "floating-state" : "inline-state",
|
|
91
94
|
{
|
|
92
|
-
"has-right-icon": !!e.$slots.
|
|
95
|
+
"has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
|
|
93
96
|
},
|
|
94
97
|
{
|
|
95
|
-
"has-left-icon": !!e.$slots.leftIcon
|
|
98
|
+
"has-left-icon": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
|
|
96
99
|
},
|
|
97
100
|
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid }
|
|
98
101
|
]])
|
|
99
102
|
}, [
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
handleClean:
|
|
103
|
-
handleShowPasswd:
|
|
103
|
+
m(e.$slots, "leftIcon"),
|
|
104
|
+
m(e.$slots, "righticon", {
|
|
105
|
+
handleClean: S,
|
|
106
|
+
handleShowPasswd: z,
|
|
104
107
|
curType: n.value
|
|
105
108
|
}),
|
|
106
109
|
G("input", {
|
|
@@ -109,16 +112,12 @@ const X = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
109
112
|
ref: b,
|
|
110
113
|
"data-cy": e.dataCy,
|
|
111
114
|
name: e.$attrs.name,
|
|
112
|
-
class: T(["input-element disabled:uikit-text-w-secondary uikit-peer uikit-relative uikit-box-border uikit-block uikit-w-full uikit-appearance-none uikit-truncate uikit-rounded-2xs uikit-bg-white uikit-px-sm uikit-pb-0 uikit-text-16 uikit-outline-none disabled:uikit-bg-w-cultured", [
|
|
115
|
+
class: T(["input-element disabled:uikit-text-w-secondary uikit-peer uikit-relative uikit-box-border uikit-block uikit-h-[56px] uikit-w-full uikit-appearance-none uikit-truncate uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-px-sm uikit-pb-0 uikit-pt-md uikit-text-16 uikit-outline-none focus-visible:uikit-border-w-blue disabled:uikit-bg-w-cultured data-[validation='invalid']:uikit-border-w-red data-[validation='valid']:uikit-border-w-blue", [
|
|
113
116
|
{
|
|
114
117
|
"is-invalid": e.isValid === !1,
|
|
115
|
-
"is-valid": e.isValid
|
|
116
|
-
"uikit-pt-md": e.labelText
|
|
118
|
+
"is-valid": e.isValid
|
|
117
119
|
},
|
|
118
|
-
e.inputClass
|
|
119
|
-
{
|
|
120
|
-
"uikit-border uikit-border-solid uikit-border-w-lightgray focus-visible:uikit-border-w-blue data-[validation='invalid']:uikit-border-w-red data-[validation='valid']:uikit-border-w-blue": e.withBorder
|
|
121
|
-
}
|
|
120
|
+
e.inputClass
|
|
122
121
|
]]),
|
|
123
122
|
"data-validation": e.isValid ? "valid" : e.isValid === !1 ? "invalid" : "",
|
|
124
123
|
autocomplete: e.$attrs.autocomplete === "on" ? "on" : "off",
|
|
@@ -134,50 +133,50 @@ const X = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
134
133
|
placeholder: e.$attrs.placeholder,
|
|
135
134
|
value: i.value,
|
|
136
135
|
onClick: a[0] || (a[0] = (t) => d("click", t)),
|
|
137
|
-
onFocusin: a[1] || (a[1] =
|
|
136
|
+
onFocusin: a[1] || (a[1] = g(
|
|
138
137
|
(t) => {
|
|
139
|
-
d("focusin", t), e.labelText &&
|
|
138
|
+
d("focusin", t), e.labelText && k(P)();
|
|
140
139
|
},
|
|
141
140
|
["stop"]
|
|
142
141
|
)),
|
|
143
|
-
onFocusout: a[2] || (a[2] =
|
|
142
|
+
onFocusout: a[2] || (a[2] = g(
|
|
144
143
|
(t) => {
|
|
145
|
-
d("focusout", t), e.labelText && !e.keepFloatingLabel &&
|
|
144
|
+
d("focusout", t), e.labelText && !e.keepFloatingLabel && k(w)(i.value);
|
|
146
145
|
},
|
|
147
146
|
["stop"]
|
|
148
147
|
)),
|
|
149
|
-
onInput:
|
|
148
|
+
onInput: g(R, ["stop"]),
|
|
150
149
|
onKeydown: [
|
|
151
150
|
a[3] || (a[3] = Q(() => d("keydownEnterPressed"), ["enter"])),
|
|
152
151
|
a[4] || (a[4] = (t) => d("keydown", t))
|
|
153
152
|
],
|
|
154
153
|
onKeyup: a[5] || (a[5] = (t) => d("keyup", t))
|
|
155
|
-
}, null, 42,
|
|
156
|
-
e.labelText ? (s(), J(
|
|
154
|
+
}, null, 42, Y),
|
|
155
|
+
e.labelText ? (s(), J(W, {
|
|
157
156
|
key: 0,
|
|
158
157
|
for: r.value,
|
|
159
158
|
"label-text": e.labelText,
|
|
160
|
-
"label-state":
|
|
159
|
+
"label-state": k(c),
|
|
161
160
|
"is-valid": e.isValid,
|
|
162
161
|
required: e.$attrs.required,
|
|
163
162
|
disabled: e.$attrs.disabled,
|
|
164
163
|
"label-classes": [e.labelClasses, _],
|
|
165
164
|
"label-text-classes": e.labelTextClasses
|
|
166
|
-
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) :
|
|
167
|
-
|
|
165
|
+
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : h("", !0),
|
|
166
|
+
m(e.$slots, "feedback", {}, () => [
|
|
168
167
|
e.isValid === !1 ? (s(!0), o(B, { key: 0 }, E(f.value.invalid, (t, y) => (s(), o("div", {
|
|
169
168
|
key: `${r.value}_invalid_${y}`,
|
|
170
169
|
class: "uikit-mt-1 uikit-text-12 uikit-text-w-red",
|
|
171
170
|
innerHTML: t
|
|
172
|
-
}, null, 8,
|
|
171
|
+
}, null, 8, Z))), 128)) : e.isValid === !0 ? (s(!0), o(B, { key: 1 }, E(f.value.valid, (t, y) => (s(), o("div", {
|
|
173
172
|
key: `${r.value}_valid_${y}`,
|
|
174
173
|
class: "uikit-mt-1 uikit-text-12 uikit-text-w-blue",
|
|
175
174
|
innerHTML: t
|
|
176
|
-
}, null, 8,
|
|
175
|
+
}, null, 8, x))), 128)) : h("", !0)
|
|
177
176
|
]),
|
|
178
177
|
e.$slots["under-label"] ? (s(), o("div", U, [
|
|
179
|
-
|
|
180
|
-
])) :
|
|
178
|
+
m(e.$slots, "under-label")
|
|
179
|
+
])) : h("", !0)
|
|
181
180
|
], 2));
|
|
182
181
|
}
|
|
183
182
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as z, ref as d, useTemplateRef as D, useId as K, computed as N, onUnmounted as S, watch as V, createBlock as W, openBlock as f, Teleport as A, createElementVNode as l, normalizeClass as o, withModifiers as g, createElementBlock as w, createCommentVNode as h, renderSlot as r, createVNode as F, unref as P, nextTick as U } from "vue";
|
|
2
|
-
import { CloseIcon as R } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
2
|
+
import { CloseIcon as R } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.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
4
|
const j = ["id", "data-cy"], q = ["innerHTML"], X = /* @__PURE__ */ z({
|
|
5
5
|
__name: "BaseModal",
|
|
6
6
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as o, createElementBlock as e, openBlock as i, renderSlot as n, createCommentVNode as u, toDisplayString as s } from "vue";
|
|
2
2
|
const r = { class: "uikit-relative uikit-inline-block" }, a = {
|
|
3
3
|
key: 0,
|
|
4
|
-
class: "uikit-pointer-events-none uikit-absolute -uikit-right-sm -uikit-top-sm uikit-rounded-
|
|
4
|
+
class: "uikit-pointer-events-none uikit-absolute -uikit-right-sm -uikit-top-sm uikit-rounded-3xs uikit-bg-w-cultured uikit-px-2xs uikit-text-12 uikit-font-medium uikit-text-w-blue"
|
|
5
5
|
}, p = /* @__PURE__ */ o({
|
|
6
6
|
__name: "BaseNotificationBadge",
|
|
7
7
|
props: {
|