@wikicasa-dev/components 2.1.4-alpha.23 → 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/Accordion/BaseAccordionContent.d.ts +4 -4
- package/dist/UIKit/Accordion/BaseAccordionItem.d.ts +11 -11
- package/dist/UIKit/BaseAutocomplete.d.ts +12 -14
- 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/BaseInput.d.ts +5 -4
- package/dist/UIKit/BaseModal.d.ts +2 -2
- package/dist/UIKit/BasePagination.d.ts +1 -7
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -3
- package/dist/UIKit/NativeSelect.js +5 -0
- package/dist/UIKit/types.d.ts +3 -7
- 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 -94
- 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 +9 -10
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +35 -28
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +140 -106
- 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 +91 -75
- 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 +35 -35
- 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/BaseAutocomplete.css +0 -1
- 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_utilities@1.1.22-alpha.4 → @wikicasa-dev_utilities@1.1.21}/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.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,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as F, mergeModels as $, useModel as M, useId as A, computed as V, ref as L, watch as w, onMounted as E, onUnmounted as P, createElementBlock as s, openBlock as a, normalizeClass as l, createElementVNode as o, createCommentVNode as d, withModifiers as p, renderSlot as z, unref as b, createBlock as N, createVNode as O, Fragment as T, renderList as S } from "vue";
|
|
2
|
-
import { useKeyboardController as q } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.
|
|
3
|
-
import { ArrowIcon as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
4
|
-
import { WarningIconRounded as K } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
5
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
2
|
+
import { useKeyboardController as q } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
3
|
+
import { ArrowIcon as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import { WarningIconRounded as K } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js";
|
|
5
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
6
6
|
const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], W = ["innerHTML"], G = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, J = ["innerHTML"], Q = ["data-cy"], X = ["id", "aria-selected", "onClick", "onMouseover"], Y = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, Z = ["name", "checked", "onInput"], x = ["innerHTML"], _ = ["id", "arial-live", "innerHTML"], ee = ["id", "arial-live", "innerHTML"], se = /* @__PURE__ */ F({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "AccessibleSelect",
|
|
@@ -36,27 +36,27 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
36
36
|
toggleDropdownModifiers: {}
|
|
37
37
|
}),
|
|
38
38
|
emits: /* @__PURE__ */ $(["click", "update:dropdownState"], ["update:modelValue", "update:toggleDropdown"]),
|
|
39
|
-
setup(
|
|
40
|
-
const h = B, k = M(
|
|
41
|
-
optionsLength:
|
|
39
|
+
setup(u, { emit: B }) {
|
|
40
|
+
const h = B, k = M(u, "modelValue"), y = M(u, "toggleDropdown"), H = A(), t = V(() => u.namespace || H), i = L(!1), I = L(null), f = V(() => !!k.value.label), { activeIdx: v, selectedIdx: D } = q({
|
|
41
|
+
optionsLength: u.options.length,
|
|
42
42
|
isDropdownOpen: i
|
|
43
43
|
}), m = (e) => {
|
|
44
44
|
i.value = !1, k.value = e;
|
|
45
45
|
};
|
|
46
46
|
w(D, (e) => {
|
|
47
|
-
m(
|
|
48
|
-
}), w(
|
|
49
|
-
e && (i.value = !i.value,
|
|
47
|
+
m(u.options[e]), i.value = !1;
|
|
48
|
+
}), w(y, (e) => {
|
|
49
|
+
e && (i.value = !i.value, y.value = !1);
|
|
50
50
|
}), w(i, (e) => {
|
|
51
51
|
h("update:dropdownState", e);
|
|
52
52
|
});
|
|
53
|
-
const
|
|
53
|
+
const g = ({ target: e }) => {
|
|
54
54
|
`${t.value}_btn` !== e.id && (i.value = !1);
|
|
55
55
|
};
|
|
56
56
|
return E(() => {
|
|
57
|
-
|
|
57
|
+
u.closeOnBodyPressed && document.addEventListener("click", g);
|
|
58
58
|
}), P(() => {
|
|
59
|
-
|
|
59
|
+
u.closeOnBodyPressed && document.removeEventListener("click", g);
|
|
60
60
|
}), (e, n) => (a(), s("div", {
|
|
61
61
|
class: l(e.$attrs.class)
|
|
62
62
|
}, [
|
|
@@ -77,7 +77,7 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
77
77
|
e.$slots.lefticon ? (a(), s("span", {
|
|
78
78
|
key: 1,
|
|
79
79
|
class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
|
|
80
|
-
onClick: n[0] || (n[0] = p((
|
|
80
|
+
onClick: n[0] || (n[0] = p((r) => i.value = !i.value, ["stop"]))
|
|
81
81
|
}, [
|
|
82
82
|
z(e.$slots, "lefticon")
|
|
83
83
|
])) : d("", !0),
|
|
@@ -97,8 +97,8 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
97
97
|
"aria-activedescendant": b(v) >= 0 && i.value ? `${t.value}_element_${e.options[b(v)].label}` : "",
|
|
98
98
|
"aria-invalid": e.isValid === !1,
|
|
99
99
|
"aria-describedby": e.isValid === !1 ? `${t.value}_invalid_msg` : void 0,
|
|
100
|
-
onClick: n[1] || (n[1] = (
|
|
101
|
-
i.value = !i.value, h("click",
|
|
100
|
+
onClick: n[1] || (n[1] = (r) => {
|
|
101
|
+
i.value = !i.value, h("click", r);
|
|
102
102
|
})
|
|
103
103
|
}, [
|
|
104
104
|
o("span", {
|
|
@@ -128,9 +128,9 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
128
128
|
"aria-hidden": "true",
|
|
129
129
|
class: l(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-cursor-pointer uikit-rounded-xs uikit-bg-white uikit-px-2 uikit-py-0 peer-focus:uikit-border-2", [
|
|
130
130
|
e.fieldsetClasses,
|
|
131
|
-
e.isValid ? "uikit-border-w-
|
|
131
|
+
e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-lightgray",
|
|
132
132
|
{
|
|
133
|
-
"peer-aria-invalid:uikit-border-w-danger uikit-border uikit-border-solid peer-focus:uikit-border-w-
|
|
133
|
+
"peer-aria-invalid:uikit-border-w-danger uikit-border uikit-border-solid peer-focus:uikit-border-w-primary peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-primary": e.border
|
|
134
134
|
},
|
|
135
135
|
{ "uikit-border-0 peer-focus:uikit-border-0": !e.border }
|
|
136
136
|
]])
|
|
@@ -162,13 +162,13 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
162
162
|
onClick: n[3] || (n[3] = p(() => {
|
|
163
163
|
}, ["stop"]))
|
|
164
164
|
}, [
|
|
165
|
-
(a(!0), s(T, null, S(e.options, (
|
|
165
|
+
(a(!0), s(T, null, S(e.options, (r, c) => (a(), s("li", {
|
|
166
166
|
id: `${t.value}_element_${e.options[c].label}`,
|
|
167
|
-
key: `${
|
|
167
|
+
key: `${r.label}_${c}`,
|
|
168
168
|
role: "option",
|
|
169
169
|
"aria-selected": b(v) === c,
|
|
170
170
|
class: l(["uikit-px-20px uikit-m-1 uikit-cursor-pointer uikit-py-xs uikit-text aria-selected:uikit-rounded-xs aria-selected:uikit-bg-w-cultured", e.dropdownItemClasses]),
|
|
171
|
-
onClick: p((C) => m(
|
|
171
|
+
onClick: p((C) => m(r), ["stop"]),
|
|
172
172
|
onMouseover: p((C) => v.value = c, ["stop"]),
|
|
173
173
|
onBlur: n[2] || (n[2] = p(() => {
|
|
174
174
|
}, ["stop"]))
|
|
@@ -179,11 +179,11 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
|
|
|
179
179
|
class: "uikit-m-0 uikit-appearance-none",
|
|
180
180
|
name: `${t.value}_radio`,
|
|
181
181
|
type: "radio",
|
|
182
|
-
checked:
|
|
183
|
-
onInput: p((C) => m(
|
|
182
|
+
checked: r.label === k.value.label,
|
|
183
|
+
onInput: p((C) => m(r), ["stop"])
|
|
184
184
|
}, null, 40, Z),
|
|
185
185
|
o("span", {
|
|
186
|
-
innerHTML:
|
|
186
|
+
innerHTML: r.label
|
|
187
187
|
}, null, 8, x)
|
|
188
188
|
])
|
|
189
189
|
], 42, X))), 128))
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, ref as u, provide as c, renderSlot as d } from "vue";
|
|
2
2
|
import "../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
3
|
-
import { isEmptyObject as f } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.
|
|
4
|
-
import "date-fns";
|
|
3
|
+
import { isEmptyObject as f } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
|
|
5
4
|
import "../../../../../_virtual/polyline.js";
|
|
6
|
-
const
|
|
5
|
+
const k = /* @__PURE__ */ p({
|
|
7
6
|
__name: "BaseAccordion",
|
|
8
7
|
props: {
|
|
9
8
|
autoClose: { type: Boolean, default: !0 },
|
|
@@ -12,23 +11,23 @@ const y = /* @__PURE__ */ s({
|
|
|
12
11
|
setup(l) {
|
|
13
12
|
const n = u(null), o = u(
|
|
14
13
|
{}
|
|
15
|
-
),
|
|
14
|
+
), i = (e, t) => {
|
|
16
15
|
if (l.autoClose && t && !f(t))
|
|
17
16
|
for (const a in t)
|
|
18
17
|
a !== `${e}` && (t[a].active = !1);
|
|
19
|
-
},
|
|
18
|
+
}, s = (e, t) => {
|
|
20
19
|
t && (t[e].active = !(t[e].active ?? !1));
|
|
21
20
|
}, r = (e, t) => {
|
|
22
|
-
|
|
21
|
+
i(e.id, t ?? o.value), n.value = e, s(e.id, t ?? o.value);
|
|
23
22
|
};
|
|
24
|
-
return
|
|
23
|
+
return c("handleClick", (e) => {
|
|
25
24
|
l.autoUpdate && r(e);
|
|
26
|
-
}),
|
|
25
|
+
}), c("accordionItems", o), (e, t) => d(e.$slots, "default", {
|
|
27
26
|
updatePrev: r,
|
|
28
27
|
prev: n.value
|
|
29
28
|
});
|
|
30
29
|
}
|
|
31
30
|
});
|
|
32
31
|
export {
|
|
33
|
-
|
|
32
|
+
k as default
|
|
34
33
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, createElementBlock as l, openBlock as d, normalizeClass as e, renderSlot as n, createElementVNode as c, withModifiers as p, createVNode as u, unref as k } from "vue";
|
|
2
|
-
import { ArrowIcon as m } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
-
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
2
|
+
import { ArrowIcon as m } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.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 f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "BaseAccordionBtn",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as h, ref as $, inject as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { ArrowIcon as E } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
5
|
-
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
1
|
+
import { defineComponent as h, ref as $, inject as C, watch as l, unref as d, createElementBlock as v, openBlock as u, normalizeClass as m, createBlock as y, createCommentVNode as g, renderSlot as s, createElementVNode as f, withModifiers as O, createVNode as k, withCtx as c } from "vue";
|
|
2
|
+
import A from "./BaseAccordionBtn.vue.js";
|
|
3
|
+
import B from "./BaseAccordionContent.vue.js";
|
|
4
|
+
import { ArrowIcon as E } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
5
|
+
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
6
6
|
const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M = ["itemprop", "innerHTML"], P = /* @__PURE__ */ h({
|
|
7
|
+
inheritAttrs: !1,
|
|
7
8
|
__name: "BaseAccordionItem",
|
|
8
9
|
props: {
|
|
9
10
|
title: {},
|
|
@@ -12,9 +13,10 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
12
13
|
arrowColor: {},
|
|
13
14
|
arrowWidth: { default: 12 },
|
|
14
15
|
onContainerClickExpand: { type: Boolean, default: !1 },
|
|
16
|
+
rootClasses: {},
|
|
15
17
|
dataCy: {},
|
|
16
|
-
itemProp: {},
|
|
17
18
|
btnClasses: {},
|
|
19
|
+
itemProp: {},
|
|
18
20
|
arrowClasses: {},
|
|
19
21
|
btnWrapperClasses: {},
|
|
20
22
|
accordionContentClasses: {},
|
|
@@ -23,34 +25,34 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
23
25
|
accordionClasses: {}
|
|
24
26
|
},
|
|
25
27
|
emits: ["click", "accordionOpened", "accordionClosed", "update:accordionState"],
|
|
26
|
-
setup(
|
|
27
|
-
const a = w, o = $(!1), r =
|
|
28
|
+
setup(i, { emit: w }) {
|
|
29
|
+
const a = w, o = $(!1), r = C(
|
|
28
30
|
"accordionItems",
|
|
29
31
|
() => {
|
|
30
32
|
},
|
|
31
33
|
!0
|
|
32
|
-
), b =
|
|
34
|
+
), b = C(
|
|
33
35
|
"handleClick",
|
|
34
36
|
() => {
|
|
35
37
|
},
|
|
36
38
|
!0
|
|
37
|
-
),
|
|
38
|
-
a(
|
|
39
|
+
), p = (e, t = !1) => {
|
|
40
|
+
a(t ? "accordionOpened" : "accordionClosed", e), a("update:accordionState", t);
|
|
39
41
|
};
|
|
40
|
-
r && (r.value[
|
|
42
|
+
r && (r.value[i.id] = { id: i.id, title: i.title, active: i.active }), l(
|
|
41
43
|
() => d(r),
|
|
42
44
|
(e) => {
|
|
43
|
-
const
|
|
44
|
-
!
|
|
45
|
-
{ id:
|
|
46
|
-
|
|
45
|
+
const t = e?.[i.id];
|
|
46
|
+
!t || o.value === t.active || (o.value = t.active ?? !1, p(
|
|
47
|
+
{ id: i.id, title: i.title, active: t.active },
|
|
48
|
+
t.active
|
|
47
49
|
));
|
|
48
50
|
},
|
|
49
51
|
{ deep: !0, immediate: !0 }
|
|
50
52
|
), l(o, (e) => {
|
|
51
|
-
o.value = e,
|
|
53
|
+
o.value = e, p({ id: i.id, title: i.title, active: o.value }, e);
|
|
52
54
|
}), l(
|
|
53
|
-
() =>
|
|
55
|
+
() => i.active,
|
|
54
56
|
(e) => {
|
|
55
57
|
o.value = e;
|
|
56
58
|
},
|
|
@@ -59,31 +61,36 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
59
61
|
const n = () => {
|
|
60
62
|
o.value = !o.value;
|
|
61
63
|
};
|
|
62
|
-
return (e,
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
return (e, t) => (u(), v("div", {
|
|
65
|
+
class: m(e.rootClasses)
|
|
66
|
+
}, [
|
|
67
|
+
!e.$slots.custom_content && !e.$slots.custom_btn && !e.$slots.custom_accordion ? (u(), v("div", W, [
|
|
68
|
+
f("button", {
|
|
65
69
|
id: `accordion-title-${e.id}`,
|
|
66
70
|
type: "button",
|
|
67
|
-
class:
|
|
71
|
+
class: m(["uikit-flex uikit-w-full uikit-items-center uikit-justify-between uikit-border-0 uikit-bg-white uikit-px-[20px] uikit-py-md uikit-text-left uikit-font-semibold uikit-transition-colors active:max-sm:uikit-bg-w-cultured hover:sm:uikit-bg-w-cultured", e.btnClasses]),
|
|
68
72
|
"data-cy": e.dataCy,
|
|
69
73
|
"aria-expanded": o.value,
|
|
70
74
|
"aria-controls": `accordion-text-${e.id}`,
|
|
71
|
-
onClick:
|
|
75
|
+
onClick: t[0] || (t[0] = O((N) => {
|
|
72
76
|
n(), d(b)?.({ id: e.id, title: e.title, active: o.value }), a("click");
|
|
73
77
|
}, ["prevent", "stop"]))
|
|
74
78
|
}, [
|
|
75
|
-
|
|
79
|
+
f("span", {
|
|
76
80
|
itemprop: e.itemProp,
|
|
77
81
|
innerHTML: e.title
|
|
78
82
|
}, null, 8, M),
|
|
79
83
|
k(d(E), {
|
|
80
|
-
class:
|
|
84
|
+
class: m([
|
|
85
|
+
"uikit-flex-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none",
|
|
86
|
+
[o.value ? "uikit-rotate-180" : "", e.arrowClasses]
|
|
87
|
+
]),
|
|
81
88
|
"arrow-classes": e.arrowClasses,
|
|
82
89
|
width: e.arrowWidth,
|
|
83
90
|
height: e.arrowWidth
|
|
84
91
|
}, null, 8, ["class", "arrow-classes", "width", "height"])
|
|
85
92
|
], 10, I)
|
|
86
|
-
])) : (e.$slots.custom_content || e.$slots.custom_btn) && !e.$slots.custom_accordion ? (u(), y(
|
|
93
|
+
])) : (e.$slots.custom_content || e.$slots.custom_btn) && !e.$slots.custom_accordion ? (u(), y(A, {
|
|
87
94
|
key: 1,
|
|
88
95
|
id: e.id,
|
|
89
96
|
"btn-wrapper-classes": e.btnWrapperClasses,
|
|
@@ -111,7 +118,7 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
111
118
|
isOpen: o.value,
|
|
112
119
|
toggleAccordion: n
|
|
113
120
|
}, () => [
|
|
114
|
-
k(
|
|
121
|
+
k(B, {
|
|
115
122
|
id: e.id,
|
|
116
123
|
"accordion-open": o.value,
|
|
117
124
|
"accordion-open-classes": e.accordionOpenClasses,
|
|
@@ -128,7 +135,7 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
128
135
|
_: 3
|
|
129
136
|
}, 8, ["id", "accordion-open", "accordion-open-classes", "accordion-close-classes", "accordion-content-classes", "accordion-classes"])
|
|
130
137
|
])
|
|
131
|
-
]));
|
|
138
|
+
], 2));
|
|
132
139
|
}
|
|
133
140
|
});
|
|
134
141
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, mergeModels as T, useModel as h, ref as w, watch as x, nextTick as y, createBlock as f, openBlock as m, unref as e, withCtx as l, renderSlot as r, createVNode as i, normalizeClass as C, createCommentVNode as I, normalizeStyle as b } from "vue";
|
|
2
|
-
import { CloseIcon as V } 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 V } 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
|
import { ToastProvider as $, ToastRoot as z, ToastTitle as M, ToastDescription as P, ToastClose as B, ToastAction as D, ProgressRoot as j, ProgressIndicator as A, ToastViewport as N } from "reka-ui";
|
|
5
5
|
const X = /* @__PURE__ */ g({
|
|
6
6
|
__name: "BaseAlert",
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
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 "./BaseInput.vue.js";
|
|
3
3
|
import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
4
|
+
import q from "./BaseDropDown.vue.js";
|
|
5
|
+
import "../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
6
|
+
import { debounce as G } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js";
|
|
7
|
+
import "../../../../_virtual/polyline.js";
|
|
8
|
+
import J from "./BaseSelect/SelectItem.vue.js";
|
|
9
|
+
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";
|
|
10
|
+
const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
9
11
|
__name: "BaseAutocomplete",
|
|
10
|
-
props: /* @__PURE__ */
|
|
12
|
+
props: /* @__PURE__ */ y({
|
|
11
13
|
isValid: { default: null },
|
|
14
|
+
theme: { default: "" },
|
|
15
|
+
label: { default: "" },
|
|
12
16
|
disableCb: { type: Boolean, default: !1 },
|
|
13
17
|
onInputChangeCb: { type: Function },
|
|
14
18
|
onOptionSelectedCb: { default: null },
|
|
@@ -18,10 +22,7 @@ const _ = ["onClick"], ee = ["innerHTML"], se = /* @__PURE__ */ H({
|
|
|
18
22
|
closeDropdownOnBodyPressed: { type: Boolean, default: !0 },
|
|
19
23
|
inputClasses: {},
|
|
20
24
|
fieldsetClasses: {},
|
|
21
|
-
|
|
22
|
-
dataCy: { default: "" },
|
|
23
|
-
withBorder: { type: Boolean, default: !0 },
|
|
24
|
-
withCleanBtn: { type: Boolean, default: !0 }
|
|
25
|
+
dataCy: { default: "" }
|
|
25
26
|
}, {
|
|
26
27
|
modelValue: {
|
|
27
28
|
default() {
|
|
@@ -30,130 +31,163 @@ const _ = ["onClick"], ee = ["innerHTML"], se = /* @__PURE__ */ H({
|
|
|
30
31
|
},
|
|
31
32
|
modelModifiers: {}
|
|
32
33
|
}),
|
|
33
|
-
emits: /* @__PURE__ */
|
|
34
|
-
setup(o, { expose:
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
emits: /* @__PURE__ */ y(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
|
|
35
|
+
setup(o, { expose: S, emit: V }) {
|
|
36
|
+
const r = F(
|
|
37
|
+
o,
|
|
38
|
+
"modelValue"
|
|
39
|
+
), u = V, i = d(""), a = d([]), p = d(null), b = d(!1), l = d(!1), w = d(null), B = k(() => a.value.length);
|
|
40
|
+
H(() => {
|
|
41
|
+
p.value = G({ delay: 300 }, o.onInputChangeCb);
|
|
38
42
|
});
|
|
39
|
-
const { activeIdx: v, selectedIdx:
|
|
40
|
-
optionsLength:
|
|
41
|
-
isDropdownOpen:
|
|
43
|
+
const { activeIdx: v, selectedIdx: m } = Q({
|
|
44
|
+
optionsLength: B,
|
|
45
|
+
isDropdownOpen: l,
|
|
42
46
|
disableSpaceHandler: !0
|
|
43
|
-
}),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
}), O = k(() => {
|
|
48
|
+
switch (o.theme) {
|
|
49
|
+
case "bordered":
|
|
50
|
+
return "";
|
|
51
|
+
case "all-bordered":
|
|
52
|
+
return "!uikit-rounded " + (l.value && "!uikit-rounded-b-none");
|
|
53
|
+
case "all-bordered-thick":
|
|
54
|
+
return "!uikit-rounded-[30px] !uikit-h-[52px] " + (l.value && "!uikit-rounded-b-none");
|
|
55
|
+
default:
|
|
56
|
+
return "";
|
|
57
|
+
}
|
|
58
|
+
}), M = k(() => {
|
|
59
|
+
switch (o.theme) {
|
|
60
|
+
case "bordered":
|
|
61
|
+
return "";
|
|
62
|
+
case "all-bordered":
|
|
63
|
+
return "uikit-border uikit-border-w-lavender uikit-border-solid !uikit-rounded !uikit-border-w-lavender !uikit-border " + (l.value ? "!uikit-border-b-0 !uikit-rounded-b-none" : "");
|
|
64
|
+
case "all-bordered-thick":
|
|
65
|
+
return "!uikit-rounded-[30px] !uikit-h-[60px] !uikit-border-w-lavender !uikit-border-none " + (l.value ? "!uikit-rounded-b-none" : "");
|
|
66
|
+
default:
|
|
67
|
+
return "";
|
|
68
|
+
}
|
|
69
|
+
}), I = k(() => {
|
|
70
|
+
const e = "uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mb-0 !uikit-mt-0 uikit-text-w-black !uikit-rounded-b-xl !uikit-rounded-t-none";
|
|
71
|
+
switch (o.theme) {
|
|
72
|
+
case "bordered":
|
|
73
|
+
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";
|
|
74
|
+
case "all-bordered":
|
|
75
|
+
return e;
|
|
76
|
+
case "all-bordered-thick":
|
|
77
|
+
return e + " !uikit-border-0";
|
|
78
|
+
default:
|
|
79
|
+
return "";
|
|
80
|
+
}
|
|
81
|
+
}), D = async (e) => {
|
|
82
|
+
if (i.value !== e && (u("changedValue", e), i.value = e, !!o.onInputChangeCb)) {
|
|
83
|
+
if (!e || b.value) {
|
|
84
|
+
a.value = [], b.value = !1, m.value = -1, v.value = -1, r.value && (r.value.label = ""), l.value = !1, await p.value(null);
|
|
47
85
|
return;
|
|
48
86
|
}
|
|
49
|
-
o.disableCb ||
|
|
87
|
+
o.disableCb || (a.value = await p.value(e), l.value = !!a.value.length);
|
|
50
88
|
}
|
|
51
|
-
},
|
|
52
|
-
o.onOptionSelectedCb && o.onOptionSelectedCb(e), o.cleanupOnClose && (a.value = []), i.value = e.label,
|
|
89
|
+
}, C = (e, t) => {
|
|
90
|
+
o.onOptionSelectedCb && o.onOptionSelectedCb(e), o.cleanupOnClose && (a.value = []), b.value = !0, i.value = e.label, r.value = e, l.value = !1, m.value = t;
|
|
53
91
|
}, E = () => {
|
|
54
|
-
a.value.length && o.keepState !== "closed" && (
|
|
92
|
+
a.value.length && o.keepState !== "closed" && (l.value = !0);
|
|
55
93
|
};
|
|
56
|
-
|
|
57
|
-
|
|
94
|
+
return f(
|
|
95
|
+
r,
|
|
58
96
|
(e, t) => {
|
|
59
97
|
e === t || e?.label === i.value || (i.value = e?.label || "");
|
|
60
98
|
},
|
|
61
99
|
{ immediate: !0 }
|
|
62
|
-
),
|
|
100
|
+
), f(m, (e) => {
|
|
63
101
|
if (e === -1 || !a.value.length) return;
|
|
64
102
|
const t = a.value[e];
|
|
65
|
-
|
|
66
|
-
}),
|
|
67
|
-
|
|
103
|
+
b.value && t.label === r.value?.label || C(t, e);
|
|
104
|
+
}), f(
|
|
105
|
+
() => o.keepState,
|
|
68
106
|
(e) => {
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
select: P
|
|
80
|
-
}), (e, t) => (m(), b(R, {
|
|
81
|
-
open: n.value,
|
|
82
|
-
"onUpdate:open": t[3] || (t[3] = (l) => n.value = l),
|
|
83
|
-
class: U(e.$attrs.class),
|
|
107
|
+
e === "closed" ? (l.value = !1, o.cleanupOnClose && (a.value = [])) : e === "open" && a.value.length && (l.value = !0);
|
|
108
|
+
}
|
|
109
|
+
), f(l, (e) => {
|
|
110
|
+
u("update:dropdownState", e);
|
|
111
|
+
}), S({
|
|
112
|
+
select: () => {
|
|
113
|
+
w.value?.select();
|
|
114
|
+
}
|
|
115
|
+
}), (e, t) => (h(), g(q, {
|
|
116
|
+
class: K(e.$attrs["root-classes"]),
|
|
84
117
|
"data-cy": e.dataCy ? e.dataCy : `ac_${e.$attrs.id}`,
|
|
85
118
|
"dropdown-element": "ul",
|
|
86
|
-
"dropdown-classes": [
|
|
119
|
+
"dropdown-classes": [
|
|
120
|
+
{ "bordered-dropdown": e.theme === "bordered" },
|
|
121
|
+
{ "all-bordered-dropdown": e.theme === "all-bordered" },
|
|
122
|
+
{ "all-bordered-dropdown thick": e.theme === "all-bordered-thick" },
|
|
123
|
+
{
|
|
124
|
+
"uikit-mt-10px !uikit-border !uikit-border-w-lightgray !uikit-rounded-xs": !e.theme
|
|
125
|
+
},
|
|
126
|
+
I.value,
|
|
127
|
+
"!uikit-max-h-[210px] uikit-z-30",
|
|
128
|
+
e.dropdownClasses
|
|
129
|
+
],
|
|
130
|
+
"open-dropdown": l.value,
|
|
131
|
+
"keep-state": !a.value.length || e.keepState === "closed" ? "closed" : "opened",
|
|
87
132
|
"close-when-clicked-outside": e.closeDropdownOnBodyPressed,
|
|
88
133
|
"activate-keyboard-controller": !1,
|
|
89
|
-
"onUpdate:dropdownState": t[
|
|
90
|
-
onClick:
|
|
134
|
+
"onUpdate:dropdownState": t[3] || (t[3] = (n) => l.value = n),
|
|
135
|
+
onClick: t[4] || (t[4] = (n) => {
|
|
136
|
+
u("click"), E();
|
|
137
|
+
})
|
|
91
138
|
}, {
|
|
92
|
-
|
|
93
|
-
|
|
139
|
+
btn_slot: s(() => [
|
|
140
|
+
W(j, {
|
|
94
141
|
id: e.$attrs.id ? `ac_input_${e.$attrs.id}` : "",
|
|
95
142
|
ref_key: "baseInput",
|
|
96
143
|
ref: w,
|
|
97
|
-
class: "uikit-base-autocomplete",
|
|
98
144
|
"data-cy": e.dataCy ? `ac_input_${e.dataCy}` : `ac_input_${e.$attrs.id}`,
|
|
145
|
+
"label-text": e.label,
|
|
99
146
|
"model-value": i.value,
|
|
100
147
|
"is-valid": e.isValid,
|
|
101
148
|
disabled: e.$attrs.disabled,
|
|
102
|
-
placeholder: e.placeholder,
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
e
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}, "X", 8, _), [
|
|
124
|
-
[J, S(d) !== -1]
|
|
125
|
-
])
|
|
126
|
-
]),
|
|
127
|
-
key: "1"
|
|
128
|
-
} : void 0
|
|
129
|
-
]), 1032, ["id", "data-cy", "model-value", "is-valid", "disabled", "placeholder", "input-class", "fieldset-classes", "with-border"])
|
|
149
|
+
placeholder: e.$attrs.placeholder,
|
|
150
|
+
"with-left-icon": !!e.$slots.lefticon,
|
|
151
|
+
"with-right-icon": !!e.$slots.righticon,
|
|
152
|
+
"input-class": [
|
|
153
|
+
O.value,
|
|
154
|
+
e.inputClasses,
|
|
155
|
+
"!uikit-ml-0 !uikit-w-full"
|
|
156
|
+
],
|
|
157
|
+
"fieldset-classes": [M.value, e.fieldsetClasses],
|
|
158
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => D(n === void 0 ? "" : `${n}`)),
|
|
159
|
+
onKeydown: t[1] || (t[1] = (n) => u("keydown", n)),
|
|
160
|
+
onKeydownEnterPressed: t[2] || (t[2] = () => u("keydownEnterPressed"))
|
|
161
|
+
}, {
|
|
162
|
+
leftIcon: s(() => [
|
|
163
|
+
$(e.$slots, "lefticon")
|
|
164
|
+
]),
|
|
165
|
+
righticon: s(({ handleClean: n }) => [
|
|
166
|
+
$(e.$slots, "righticon", { handleClean: n })
|
|
167
|
+
]),
|
|
168
|
+
_: 3
|
|
169
|
+
}, 8, ["id", "data-cy", "label-text", "model-value", "is-valid", "disabled", "placeholder", "with-left-icon", "with-right-icon", "input-class", "fieldset-classes"])
|
|
130
170
|
]),
|
|
131
|
-
default:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
innerHTML: p.label
|
|
147
|
-
}, null, 8, ee)
|
|
148
|
-
]),
|
|
149
|
-
_: 2
|
|
150
|
-
}, 1032, ["active", "onClick", "onMouseover"]))), 128))
|
|
151
|
-
])
|
|
171
|
+
default: s(() => [
|
|
172
|
+
(h(!0), T(z, null, A(a.value, (n, c) => (h(), g(J, {
|
|
173
|
+
key: c,
|
|
174
|
+
active: N(v) === c,
|
|
175
|
+
class: "uikit-py-xs uikit-m-1 uikit-rounded-[5px] uikit-px-5 hover:uikit-cursor-pointer",
|
|
176
|
+
onClick: (P) => C(n, c),
|
|
177
|
+
onMouseover: (P) => v.value = c
|
|
178
|
+
}, {
|
|
179
|
+
default: s(() => [
|
|
180
|
+
U("span", {
|
|
181
|
+
innerHTML: n.label
|
|
182
|
+
}, null, 8, R)
|
|
183
|
+
]),
|
|
184
|
+
_: 2
|
|
185
|
+
}, 1032, ["active", "onClick", "onMouseover"]))), 128))
|
|
152
186
|
]),
|
|
153
187
|
_: 3
|
|
154
|
-
}, 8, ["
|
|
188
|
+
}, 8, ["class", "data-cy", "dropdown-classes", "open-dropdown", "keep-state", "close-when-clicked-outside"]));
|
|
155
189
|
}
|
|
156
190
|
});
|
|
157
191
|
export {
|
|
158
|
-
|
|
192
|
+
ne as default
|
|
159
193
|
};
|