@wikicasa-dev/components 2.1.4-alpha.2 → 2.1.4-alpha.21
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/BaseAutocomplete.d.ts +14 -12
- package/dist/UIKit/BaseAutocomplete.js +3 -2
- package/dist/UIKit/BaseBadge.d.ts +2 -38
- package/dist/UIKit/BaseDropDown.d.ts +8 -13
- package/dist/UIKit/BaseInput.d.ts +4 -5
- package/dist/UIKit/BasePagination.d.ts +7 -1
- package/dist/UIKit/BasePin.d.ts +22 -0
- package/dist/UIKit/BaseSelect.d.ts +26 -0
- package/dist/UIKit/BaseSelect.js +5 -0
- package/dist/UIKit/BaseTextarea.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -3
- package/dist/UIKit/types.d.ts +7 -3
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/cloneDeep.js +4 -0
- package/dist/_virtual/create-plugin.js +4 -0
- package/dist/_virtual/createPlugin.js +4 -0
- package/dist/_virtual/default-theme.js +4 -0
- package/dist/_virtual/defaultTheme.js +7 -0
- package/dist/_virtual/plugin.js +7 -0
- package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseAutocomplete.css +1 -0
- 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/{NativeSelect.css → BaseSelect.css} +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
- package/dist/assets/packages/components/src/tailwind.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +94 -87
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/keyboard.js +13 -13
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/classes-to-selector.js +1 -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 +11 -0
- 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 +25 -0
- 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 +26 -0
- 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 +23 -0
- 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 +34 -0
- 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 +11 -0
- 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 +1068 -0
- 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 +10 -9
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +106 -140
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +16 -45
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +15 -15
- 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 +53 -65
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +4 -4
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +52 -51
- 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 +63 -40
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +1 -1
- package/dist/packages/components/lib/UIKit/{NativeSelect.vue.js → BaseSelect.vue.js} +12 -12
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +8 -8
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +1 -1
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +4 -4
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +7 -9
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +4 -4
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +30 -30
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +1 -1
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +7 -6
- package/dist/packages/components/plugins/buttonPlugin.js +232 -0
- package/dist/tailwind.config.js +147 -0
- package/package.json +24 -31
- package/plugins/buttonPlugin.ts +290 -0
- package/dist/UIKit/NativeSelect.js +0 -5
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/swiper.css +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3 → @wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_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.23_typescript@5.8.3 → @wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/autoplay.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/controller.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/controller.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/free-mode.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/pagination.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/thumbs.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/zoom.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/utils.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as p } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import "../../../../node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as p } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/autoplay.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/autoplay.css.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Autoplay
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import "../../../../node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/controller.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/controller.css.js";
|
|
3
3
|
export {
|
|
4
4
|
e as Controller
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import '../../../../assets/node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/free-mode.js";
|
|
2
|
+
import '../../../../assets/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/free-mode.css';/* empty css */
|
|
3
3
|
export {
|
|
4
4
|
t as FreeMode
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import "../../../../node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/keyboard.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/keyboard.css.js";
|
|
3
3
|
export {
|
|
4
4
|
e as Keyboard
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import '../../../../assets/node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/navigation.js";
|
|
2
|
+
import '../../../../assets/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/navigation.css';/* empty css */
|
|
3
3
|
export {
|
|
4
4
|
i as Navigation
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import '../../../../assets/node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/pagination.js";
|
|
2
|
+
import '../../../../assets/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/pagination.css';/* empty css */
|
|
3
3
|
export {
|
|
4
4
|
i as Pagination
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.
|
|
2
|
-
import "../../../../node_modules/.pnpm/swiper@11.2.
|
|
1
|
+
import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/thumbs.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/thumbs.css.js";
|
|
3
3
|
export {
|
|
4
4
|
t as Thumbs
|
|
5
5
|
};
|
|
@@ -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.24-alpha.5_vue@3.5.16_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.15-alpha.1_vue@3.5.16_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.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js";
|
|
5
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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(r, { emit: B }) {
|
|
40
|
+
const h = B, k = M(r, "modelValue"), g = M(r, "toggleDropdown"), H = A(), t = V(() => r.namespace || H), i = L(!1), I = L(null), f = V(() => !!k.value.label), { activeIdx: v, selectedIdx: D } = q({
|
|
41
|
+
optionsLength: r.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(r.options[e]), i.value = !1;
|
|
48
|
+
}), w(g, (e) => {
|
|
49
|
+
e && (i.value = !i.value, g.value = !1);
|
|
50
50
|
}), w(i, (e) => {
|
|
51
51
|
h("update:dropdownState", e);
|
|
52
52
|
});
|
|
53
|
-
const
|
|
53
|
+
const y = ({ target: e }) => {
|
|
54
54
|
`${t.value}_btn` !== e.id && (i.value = !1);
|
|
55
55
|
};
|
|
56
56
|
return E(() => {
|
|
57
|
-
|
|
57
|
+
r.closeOnBodyPressed && document.addEventListener("click", y);
|
|
58
58
|
}), P(() => {
|
|
59
|
-
|
|
59
|
+
r.closeOnBodyPressed && document.removeEventListener("click", y);
|
|
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((u) => 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] = (u) => {
|
|
101
|
+
i.value = !i.value, h("click", u);
|
|
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-pink" : 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-pink peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-pink": 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, (u, c) => (a(), s("li", {
|
|
166
166
|
id: `${t.value}_element_${e.options[c].label}`,
|
|
167
|
-
key: `${
|
|
167
|
+
key: `${u.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(u), ["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: u.label === k.value.label,
|
|
183
|
+
onInput: p((C) => m(u), ["stop"])
|
|
184
184
|
}, null, 40, Z),
|
|
185
185
|
o("span", {
|
|
186
|
-
innerHTML:
|
|
186
|
+
innerHTML: u.label
|
|
187
187
|
}, null, 8, x)
|
|
188
188
|
])
|
|
189
189
|
], 42, X))), 128))
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as s, ref as u, provide as i, 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.
|
|
3
|
+
import { isEmptyObject as f } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.4/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
|
|
4
|
+
import "date-fns";
|
|
4
5
|
import "../../../../../_virtual/polyline.js";
|
|
5
|
-
const
|
|
6
|
+
const y = /* @__PURE__ */ s({
|
|
6
7
|
__name: "BaseAccordion",
|
|
7
8
|
props: {
|
|
8
9
|
autoClose: { type: Boolean, default: !0 },
|
|
@@ -11,23 +12,23 @@ const k = /* @__PURE__ */ p({
|
|
|
11
12
|
setup(l) {
|
|
12
13
|
const n = u(null), o = u(
|
|
13
14
|
{}
|
|
14
|
-
),
|
|
15
|
+
), c = (e, t) => {
|
|
15
16
|
if (l.autoClose && t && !f(t))
|
|
16
17
|
for (const a in t)
|
|
17
18
|
a !== `${e}` && (t[a].active = !1);
|
|
18
|
-
},
|
|
19
|
+
}, p = (e, t) => {
|
|
19
20
|
t && (t[e].active = !(t[e].active ?? !1));
|
|
20
21
|
}, r = (e, t) => {
|
|
21
|
-
|
|
22
|
+
c(e.id, t ?? o.value), n.value = e, p(e.id, t ?? o.value);
|
|
22
23
|
};
|
|
23
|
-
return
|
|
24
|
+
return i("handleClick", (e) => {
|
|
24
25
|
l.autoUpdate && r(e);
|
|
25
|
-
}),
|
|
26
|
+
}), i("accordionItems", o), (e, t) => d(e.$slots, "default", {
|
|
26
27
|
updatePrev: r,
|
|
27
28
|
prev: n.value
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
31
|
});
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
y as default
|
|
33
34
|
};
|
|
@@ -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.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
3
|
+
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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,8 +1,8 @@
|
|
|
1
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
2
|
import A from "./BaseAccordionBtn.vue.js";
|
|
3
3
|
import B from "./BaseAccordionContent.vue.js";
|
|
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.
|
|
4
|
+
import { ArrowIcon as E } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
5
|
+
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseAccordionItem",
|
|
@@ -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.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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,18 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as H, mergeModels as g, useModel as K, ref as r, computed as $, onBeforeMount as N, watch as C, createBlock as b, openBlock as m, normalizeClass as U, withCtx as c, renderSlot as B, createElementBlock as A, Fragment as F, renderList as T, unref as S, createCommentVNode as j, createElementVNode as V, resolveDynamicComponent as W, createVNode as X, createSlots as q, withDirectives as G, vShow as J } from "vue";
|
|
2
|
+
import Q from "./BaseInput.vue.js";
|
|
3
3
|
import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
import "../../../../node_modules/.pnpm
|
|
6
|
-
import
|
|
7
|
-
import "../../../../
|
|
8
|
-
|
|
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({
|
|
4
|
+
import R from "./BaseDropDown.vue.js";
|
|
5
|
+
import { debounce as Y } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.4/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js";
|
|
6
|
+
import Z from "./BaseSelect/SelectItem.vue.js";
|
|
7
|
+
import { useKeyboardController as x } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
8
|
+
const _ = ["onClick"], ee = ["innerHTML"], se = /* @__PURE__ */ H({
|
|
11
9
|
__name: "BaseAutocomplete",
|
|
12
|
-
props: /* @__PURE__ */
|
|
10
|
+
props: /* @__PURE__ */ g({
|
|
13
11
|
isValid: { default: null },
|
|
14
|
-
theme: { default: "" },
|
|
15
|
-
label: { default: "" },
|
|
16
12
|
disableCb: { type: Boolean, default: !1 },
|
|
17
13
|
onInputChangeCb: { type: Function },
|
|
18
14
|
onOptionSelectedCb: { default: null },
|
|
@@ -22,7 +18,10 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
|
22
18
|
closeDropdownOnBodyPressed: { type: Boolean, default: !0 },
|
|
23
19
|
inputClasses: {},
|
|
24
20
|
fieldsetClasses: {},
|
|
25
|
-
|
|
21
|
+
placeholder: { default: "" },
|
|
22
|
+
dataCy: { default: "" },
|
|
23
|
+
withBorder: { type: Boolean, default: !0 },
|
|
24
|
+
withCleanBtn: { type: Boolean, default: !0 }
|
|
26
25
|
}, {
|
|
27
26
|
modelValue: {
|
|
28
27
|
default() {
|
|
@@ -31,163 +30,130 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
|
31
30
|
},
|
|
32
31
|
modelModifiers: {}
|
|
33
32
|
}),
|
|
34
|
-
emits: /* @__PURE__ */
|
|
35
|
-
setup(o, { expose:
|
|
36
|
-
const r =
|
|
37
|
-
|
|
38
|
-
|
|
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);
|
|
33
|
+
emits: /* @__PURE__ */ g(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
|
|
34
|
+
setup(o, { expose: D, emit: I }) {
|
|
35
|
+
const u = K(o, "modelValue"), s = I, i = r(""), a = r([]), f = r(null), n = r(!1), w = r(null), O = $(() => a.value.length);
|
|
36
|
+
N(() => {
|
|
37
|
+
f.value = Y({ delay: 300 }, o.onInputChangeCb);
|
|
42
38
|
});
|
|
43
|
-
const { activeIdx: v, selectedIdx:
|
|
44
|
-
optionsLength:
|
|
45
|
-
isDropdownOpen:
|
|
39
|
+
const { activeIdx: v, selectedIdx: d } = x({
|
|
40
|
+
optionsLength: O,
|
|
41
|
+
isDropdownOpen: n,
|
|
46
42
|
disableSpaceHandler: !0
|
|
47
|
-
}),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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);
|
|
43
|
+
}), y = $(() => d.value !== -1), M = async (e) => {
|
|
44
|
+
if (i.value !== e && (s("changedValue", e), i.value = e, !!o.onInputChangeCb)) {
|
|
45
|
+
if (!e || y.value) {
|
|
46
|
+
a.value = [], d.value = -1, v.value = -1, u.value && (u.value.label = ""), n.value = !1, await f.value?.("");
|
|
85
47
|
return;
|
|
86
48
|
}
|
|
87
|
-
o.disableCb || (a.value = await
|
|
49
|
+
o.disableCb || !f.value || (a.value = await f.value(e), n.value = !!a.value.length);
|
|
88
50
|
}
|
|
89
|
-
},
|
|
90
|
-
o.onOptionSelectedCb && o.onOptionSelectedCb(e), o.cleanupOnClose && (a.value = []),
|
|
51
|
+
}, h = (e, t) => {
|
|
52
|
+
o.onOptionSelectedCb && o.onOptionSelectedCb(e), o.cleanupOnClose && (a.value = []), i.value = e.label, u.value = e, n.value = !1, d.value = t;
|
|
91
53
|
}, E = () => {
|
|
92
|
-
a.value.length && o.keepState !== "closed" && (
|
|
54
|
+
a.value.length && o.keepState !== "closed" && (n.value = !0);
|
|
93
55
|
};
|
|
94
|
-
|
|
95
|
-
|
|
56
|
+
C(
|
|
57
|
+
u,
|
|
96
58
|
(e, t) => {
|
|
97
59
|
e === t || e?.label === i.value || (i.value = e?.label || "");
|
|
98
60
|
},
|
|
99
61
|
{ immediate: !0 }
|
|
100
|
-
),
|
|
62
|
+
), C(d, (e) => {
|
|
101
63
|
if (e === -1 || !a.value.length) return;
|
|
102
64
|
const t = a.value[e];
|
|
103
|
-
|
|
104
|
-
}),
|
|
105
|
-
|
|
65
|
+
y.value && t.label === u.value?.label || h(t, e);
|
|
66
|
+
}), C(
|
|
67
|
+
n,
|
|
106
68
|
(e) => {
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
select
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
69
|
+
s("update:dropdownState", e);
|
|
70
|
+
},
|
|
71
|
+
{ immediate: !0 }
|
|
72
|
+
);
|
|
73
|
+
const P = () => {
|
|
74
|
+
w.value?.select();
|
|
75
|
+
}, L = () => {
|
|
76
|
+
s("click"), E(), a.value.length && (n.value = !0);
|
|
77
|
+
};
|
|
78
|
+
return D({
|
|
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["root-classes"]),
|
|
117
84
|
"data-cy": e.dataCy ? e.dataCy : `ac_${e.$attrs.id}`,
|
|
118
85
|
"dropdown-element": "ul",
|
|
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",
|
|
86
|
+
"dropdown-classes": ["!uikit-max-h-[210px] uikit-z-30", e.dropdownClasses],
|
|
132
87
|
"close-when-clicked-outside": e.closeDropdownOnBodyPressed,
|
|
133
88
|
"activate-keyboard-controller": !1,
|
|
134
|
-
"onUpdate:dropdownState": t[
|
|
135
|
-
onClick:
|
|
136
|
-
u("click"), E();
|
|
137
|
-
})
|
|
89
|
+
"onUpdate:dropdownState": t[4] || (t[4] = (l) => n.value = l),
|
|
90
|
+
onClick: L
|
|
138
91
|
}, {
|
|
139
|
-
btn_slot:
|
|
140
|
-
|
|
92
|
+
btn_slot: c(() => [
|
|
93
|
+
X(Q, {
|
|
141
94
|
id: e.$attrs.id ? `ac_input_${e.$attrs.id}` : "",
|
|
142
95
|
ref_key: "baseInput",
|
|
143
96
|
ref: w,
|
|
97
|
+
class: "uikit-base-autocomplete",
|
|
144
98
|
"data-cy": e.dataCy ? `ac_input_${e.dataCy}` : `ac_input_${e.$attrs.id}`,
|
|
145
|
-
"label-text": e.label,
|
|
146
99
|
"model-value": i.value,
|
|
147
100
|
"is-valid": e.isValid,
|
|
148
101
|
disabled: e.$attrs.disabled,
|
|
149
|
-
placeholder: e
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
102
|
+
placeholder: e.placeholder,
|
|
103
|
+
"input-class": [e.inputClasses, "base-autocomplete-input !uikit-text"],
|
|
104
|
+
"fieldset-classes": [e.fieldsetClasses],
|
|
105
|
+
"with-border": e.withBorder,
|
|
106
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => M(l === void 0 ? "" : `${l}`)),
|
|
107
|
+
onKeydown: t[1] || (t[1] = (l) => s("keydown", l)),
|
|
108
|
+
onKeydownEnterPressed: t[2] || (t[2] = () => s("keydownEnterPressed"))
|
|
109
|
+
}, q({ _: 2 }, [
|
|
110
|
+
e.$slots.leftIcon ? {
|
|
111
|
+
name: "leftIcon",
|
|
112
|
+
fn: c(() => [
|
|
113
|
+
B(e.$slots, "leftIcon")
|
|
114
|
+
]),
|
|
115
|
+
key: "0"
|
|
116
|
+
} : void 0,
|
|
117
|
+
e.withCleanBtn ? {
|
|
118
|
+
name: "rightIcon",
|
|
119
|
+
fn: c(({ handleClean: l }) => [
|
|
120
|
+
G(V("span", {
|
|
121
|
+
class: "text-input-icon right uikit-flex uikit-size-md uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-full uikit-bg-w-lightgray uikit-text uikit-font-semibold uikit-text-white",
|
|
122
|
+
onClick: l
|
|
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"])
|
|
170
130
|
]),
|
|
171
|
-
default:
|
|
172
|
-
(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
131
|
+
default: c(({ toggleDropdown: l }) => [
|
|
132
|
+
B(e.$slots, "dropdown", {
|
|
133
|
+
options: a.value,
|
|
134
|
+
toggleDropdown: l
|
|
135
|
+
}, () => [
|
|
136
|
+
(m(!0), A(F, null, T(a.value, (p, k) => (m(), b(Z, {
|
|
137
|
+
key: k,
|
|
138
|
+
active: S(v) === k,
|
|
139
|
+
class: "uikit-relative uikit-flex uikit-gap-x-xs uikit-rounded-[5px] uikit-p-md uikit-py-xs uikit-text after:uikit-absolute after:uikit-bottom-0 after:uikit-left-1/2 after:uikit-h-[1px] after:uikit-w-[95%] after:-uikit-translate-x-1/2 after:uikit-bg-w-lightgray after:uikit-content-[''] after:last:uikit-hidden hover:uikit-cursor-pointer",
|
|
140
|
+
onClick: (z) => h(p, k),
|
|
141
|
+
onMouseover: (z) => v.value = k
|
|
142
|
+
}, {
|
|
143
|
+
default: c(() => [
|
|
144
|
+
p.icon ? (m(), b(W(p.icon), { key: 0 })) : j("", !0),
|
|
145
|
+
V("span", {
|
|
146
|
+
innerHTML: p.label
|
|
147
|
+
}, null, 8, ee)
|
|
148
|
+
]),
|
|
149
|
+
_: 2
|
|
150
|
+
}, 1032, ["active", "onClick", "onMouseover"]))), 128))
|
|
151
|
+
])
|
|
186
152
|
]),
|
|
187
153
|
_: 3
|
|
188
|
-
}, 8, ["class", "data-cy", "dropdown-classes", "
|
|
154
|
+
}, 8, ["open", "class", "data-cy", "dropdown-classes", "close-when-clicked-outside"]));
|
|
189
155
|
}
|
|
190
156
|
});
|
|
191
157
|
export {
|
|
192
|
-
|
|
158
|
+
se as default
|
|
193
159
|
};
|