@wikicasa-dev/components 2.1.4-alpha.18 → 2.1.4-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UIKit/AccessibleSelect.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -1
- package/dist/UIKit/BaseAlert.js +2 -2
- package/dist/UIKit/BaseAutocomplete.d.ts +12 -14
- package/dist/UIKit/BaseAutocomplete.js +2 -3
- package/dist/UIKit/BaseBadge.d.ts +2 -2
- package/dist/UIKit/BaseBadge.js +2 -2
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +1 -1
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +1 -1
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +1 -1
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +1 -1
- package/dist/UIKit/BaseBanner.js +1 -1
- package/dist/UIKit/BaseBreadcrumb.js +2 -2
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +2 -2
- package/dist/UIKit/BaseChip.js +1 -1
- package/dist/UIKit/BaseCollapse.js +2 -2
- package/dist/UIKit/BaseComplexToggle.js +2 -2
- package/dist/UIKit/BaseDropDown.d.ts +13 -8
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +2 -2
- package/dist/UIKit/BaseIcon.js +2 -2
- package/dist/UIKit/BaseInput.d.ts +5 -4
- package/dist/UIKit/BaseInput.js +2 -2
- package/dist/UIKit/BaseModal.js +2 -2
- package/dist/UIKit/BaseNotificationBadge.js +1 -1
- package/dist/UIKit/BasePagination.d.ts +1 -7
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BasePaper.js +2 -2
- package/dist/UIKit/BasePin.js +2 -2
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.js +1 -1
- package/dist/UIKit/BaseSnackbar.js +2 -2
- package/dist/UIKit/BaseTextarea.js +4 -4
- package/dist/UIKit/BaseToggle.js +1 -1
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -3
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/UIKit/DatePicker.js +2 -2
- package/dist/UIKit/InputDropdown.js +1 -1
- package/dist/UIKit/NativeSelect.js +5 -0
- package/dist/UIKit/Navigation/NavigationBar.js +2 -2
- package/dist/UIKit/Navigation/NavigationBarItem.js +1 -1
- package/dist/UIKit/Radio/RadioButton.js +1 -1
- package/dist/UIKit/Radio/RadioGroup.js +1 -1
- package/dist/UIKit/SegmentedControl/SegmentedControl.js +1 -1
- package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +1 -1
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +2 -2
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/StaticSpinner.js +2 -2
- package/dist/UIKit/Tab/BaseTab.js +1 -1
- package/dist/UIKit/Tab/BaseTabItem.js +1 -1
- package/dist/UIKit/Tab/BaseTabList.js +1 -1
- package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
- package/dist/UIKit/Tab/BaseTabView.js +1 -1
- package/dist/UIKit/types.d.ts +3 -7
- package/dist/_virtual/polyline.js +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -0
- package/dist/assets/{lib → packages/components/lib}/UIKit/BaseComplexToggle.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -0
- package/dist/assets/{lib/UIKit/BaseSelect.css → packages/components/lib/UIKit/NativeSelect.css} +1 -1
- package/dist/assets/packages/components/src/tailwind.css +1 -0
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/chart/composables/useChartjsModules.d.ts +1 -1
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.js +3 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +95 -102
- package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/keyboard.js +13 -13
- package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/shared/classes-to-selector.js +1 -1
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/controller.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/navigation.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/pagination.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +5 -0
- package/dist/{lib → packages/components/lib}/UIKit/AccessibleSelect.vue.js +24 -24
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +33 -0
- package/dist/{lib → packages/components/lib}/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/{lib → packages/components/lib}/UIKit/Accordion/BaseAccordionItem.vue.js +2 -2
- package/dist/{lib → packages/components/lib}/UIKit/BaseAlert.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +193 -0
- package/dist/{lib → packages/components/lib}/UIKit/BaseBadge.vue.js +5 -5
- package/dist/{lib → packages/components/lib}/UIKit/BaseBanner.vue.js +9 -9
- package/dist/{lib → packages/components/lib}/UIKit/BaseButton.vue.js +15 -15
- package/dist/{lib → packages/components/lib}/UIKit/BaseChip.vue.js +2 -2
- package/dist/{lib → packages/components/lib}/UIKit/BaseCollapse.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +140 -0
- package/dist/{lib → packages/components/lib}/UIKit/BaseFloatingLabel.vue.js +4 -4
- package/dist/{lib → packages/components/lib}/UIKit/BaseInput.vue.js +52 -53
- package/dist/{lib → packages/components/lib}/UIKit/BaseModal.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +107 -0
- package/dist/{lib → packages/components/lib}/UIKit/BaseSlider.vue.js +1 -1
- package/dist/{lib → packages/components/lib}/UIKit/BaseSnackbar.vue.js +2 -2
- package/dist/{lib → packages/components/lib}/UIKit/BaseTextarea.vue.js +10 -10
- package/dist/{lib → packages/components/lib}/UIKit/BaseUploadFile.vue.js +1 -1
- package/dist/{lib → packages/components/lib}/UIKit/Checkbox/CheckboxBtn.vue.js +3 -3
- package/dist/{lib → packages/components/lib}/UIKit/Checkbox/CheckboxGroup.vue.js +9 -7
- package/dist/{lib → packages/components/lib}/UIKit/DatePicker.vue.js +5 -5
- package/dist/{lib → packages/components/lib}/UIKit/InputDropdown.vue.js +1 -1
- package/dist/{lib/UIKit/BaseSelect.vue.js → packages/components/lib/UIKit/NativeSelect.vue.js} +12 -12
- package/dist/{lib → packages/components/lib}/UIKit/Navigation/NavigationBarItem.vue.js +18 -18
- package/dist/{lib → packages/components/lib}/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +1 -1
- package/dist/{lib → packages/components/lib}/UIKit/Tab/BaseTabItem.vue.js +3 -3
- package/dist/{lib → packages/components/lib}/chart/DoughnutChart.vue.js +1 -1
- package/dist/{lib → packages/components/lib}/chart/LineChart.vue.js +1 -1
- package/dist/{lib → packages/components/lib}/components/carousel/SwiperCarousel.vue.js +8 -9
- 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/lib/UIKit/BaseAlert.css +0 -1
- package/dist/assets/lib/UIKit/BaseAutocomplete.css +0 -1
- package/dist/assets/lib/UIKit/BaseBadge.css +0 -1
- package/dist/assets/lib/UIKit/BaseInput.css +0 -1
- package/dist/assets/lib/UIKit/BaseTextarea.css +0 -1
- package/dist/assets/src/tailwind.css +0 -1
- package/dist/lazyModules/Swiper/autoplay.js +0 -5
- package/dist/lazyModules/Swiper/controller.js +0 -5
- package/dist/lazyModules/Swiper/free-mode.js +0 -5
- package/dist/lazyModules/Swiper/keyboard.js +0 -5
- package/dist/lazyModules/Swiper/navigation.js +0 -5
- package/dist/lazyModules/Swiper/pagination.js +0 -5
- package/dist/lazyModules/Swiper/thumbs.js +0 -5
- package/dist/lib/UIKit/Accordion/BaseAccordion.vue.js +0 -34
- package/dist/lib/UIKit/BaseAutocomplete.vue.js +0 -158
- package/dist/lib/UIKit/BaseDropDown.vue.js +0 -128
- package/dist/lib/UIKit/BasePagination.vue.js +0 -130
- package/dist/node_modules/tailwindcss/defaultTheme.js +0 -11
- package/dist/node_modules/tailwindcss/lib/public/create-plugin.js +0 -25
- package/dist/node_modules/tailwindcss/lib/public/default-theme.js +0 -26
- package/dist/node_modules/tailwindcss/lib/util/cloneDeep.js +0 -23
- package/dist/node_modules/tailwindcss/lib/util/createPlugin.js +0 -34
- package/dist/node_modules/tailwindcss/plugin.js +0 -11
- package/dist/node_modules/tailwindcss/stubs/config.full.js +0 -1068
- package/dist/plugins/buttonPlugin.js +0 -232
- package/dist/tailwind.config.js +0 -143
- package/plugins/buttonPlugin.ts +0 -290
- /package/dist/assets/node_modules/{@vuepic → .pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic}/vue-datepicker/dist/main.css +0 -0
- /package/dist/assets/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/swiper.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/BaseBreadcrumb.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/BaseCard.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/BaseCollapse.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/BaseFloatingLabel.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/BaseIcon.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/BaseModal.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/BasePaper.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/BasePin.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/BaseSnackbar.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/BaseTooltip.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/DatePicker.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/Navigation/NavigationBar.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/ShimmerLoader/BaseShimmerLoader.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/UIKit/StaticSpinner.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/components/carousel/SwiperCarousel.css +0 -0
- /package/dist/assets/{lib → packages/components/lib}/components/carousel/SwiperCarousel2.css +0 -0
- /package/dist/node_modules/{@wikicasa-dev → .pnpm/@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/{@wikicasa-dev → .pnpm/@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/{@wikicasa-dev → .pnpm/@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/{@wikicasa-dev → .pnpm/@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/{@wikicasa-dev → .pnpm/@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/{@wikicasa-dev → .pnpm/@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/{@wikicasa-dev → .pnpm/@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/{@wikicasa-dev → .pnpm/@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/{@wikicasa-dev → .pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev}/utilities/dist/utils/FunctionUtils.js +0 -0
- /package/dist/node_modules/{@wikicasa-dev → .pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev}/utilities/dist/utils/ObjectUtils.js +0 -0
- /package/dist/node_modules/{@wikicasa-dev → .pnpm/@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/{@wikicasa-dev → .pnpm/@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/{google-polyline → .pnpm/google-polyline@1.0.3/node_modules/google-polyline}/lib/decode.js +0 -0
- /package/dist/node_modules/{google-polyline → .pnpm/google-polyline@1.0.3/node_modules/google-polyline}/lib/encode.js +0 -0
- /package/dist/node_modules/{google-polyline → .pnpm/google-polyline@1.0.3/node_modules/google-polyline}/lib/polyline.js +0 -0
- /package/dist/node_modules/{js-cookie → .pnpm/js-cookie@3.0.5/node_modules/js-cookie}/dist/js.cookie.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/autoplay.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/controller.css.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/controller.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/free-mode.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/navigation.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/pagination.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/thumbs.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/modules/zoom.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/shared/ssr-window.esm.js +0 -0
- /package/dist/node_modules/{swiper → .pnpm/swiper@11.2.8/node_modules/swiper}/shared/utils.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/Accordion/BaseAccordionContent.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BaseBreadcrumb.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BaseCard.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BaseComplexToggle.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BaseIcon.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BaseNotificationBadge.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BasePaper.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BasePin.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BaseSelect/SelectItem.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BaseToggle.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/BaseTooltip.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/Navigation/NavigationBar.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/Radio/RadioButton.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/Radio/RadioGroup.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/SegmentedControl/SegmentedControl.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/SegmentedControl/SegmentedControlItem.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/StaticSpinner.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/Tab/BaseTab.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/Tab/BaseTabList.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/Tab/BaseTabPanel.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/UIKit/Tab/BaseTabView.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/components/IntersectionObserver/IntersectionObservable.vue.js +0 -0
- /package/dist/{lib → packages/components/lib}/components/IntersectionObserver/IntersectionObserver.vue.js +0 -0
|
@@ -0,0 +1,140 @@
|
|
|
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,
|
|
8
|
+
__name: "BaseDropDown",
|
|
9
|
+
props: /* @__PURE__ */ h({
|
|
10
|
+
dropdownClasses: { default: "" },
|
|
11
|
+
btnClasses: { default: "" },
|
|
12
|
+
withArrowIcon: { type: Boolean, default: !1 },
|
|
13
|
+
btnLabel: { default: "" },
|
|
14
|
+
labelClasses: { default: "" },
|
|
15
|
+
direction: { default: "down" },
|
|
16
|
+
arrowWidth: { default: 12 },
|
|
17
|
+
arrowStrokeColor: { default: void 0 },
|
|
18
|
+
isAbsolute: { type: Boolean, default: !0 },
|
|
19
|
+
openDropdown: { type: Boolean, default: !1 },
|
|
20
|
+
closeWhenClickedOutside: { type: Boolean, default: !0 },
|
|
21
|
+
dropdownElement: { default: "div" },
|
|
22
|
+
keepState: { default: "" },
|
|
23
|
+
activateKeyboardController: { type: Boolean, default: !0 },
|
|
24
|
+
disableSpaceHandler: { type: Boolean, default: !1 },
|
|
25
|
+
dataCy: { default: "" }
|
|
26
|
+
}, {
|
|
27
|
+
toggleDropdown: {
|
|
28
|
+
default: void 0
|
|
29
|
+
},
|
|
30
|
+
toggleDropdownModifiers: {}
|
|
31
|
+
}),
|
|
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;
|
|
57
|
+
}, u = () => {
|
|
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);
|
|
63
|
+
};
|
|
64
|
+
return W(() => {
|
|
65
|
+
o.closeWhenClickedOutside && document.body.addEventListener("click", v);
|
|
66
|
+
}), $(() => {
|
|
67
|
+
w.value && (r.value = w.value.children || []);
|
|
68
|
+
}), K(() => {
|
|
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();
|
|
74
|
+
}, ["stop"]))
|
|
75
|
+
}, [
|
|
76
|
+
g(e.$slots, "btn_slot", {
|
|
77
|
+
toggleDropdown: u,
|
|
78
|
+
isOpen: t.value,
|
|
79
|
+
setActiveIdx: b
|
|
80
|
+
}, () => [
|
|
81
|
+
T(R, {
|
|
82
|
+
id: i(f),
|
|
83
|
+
type: "button",
|
|
84
|
+
"data-cy": e.dataCy,
|
|
85
|
+
class: l([
|
|
86
|
+
"!uikit-flex uikit-w-full uikit-items-center uikit-truncate",
|
|
87
|
+
e.btnClasses
|
|
88
|
+
]),
|
|
89
|
+
"aria-expanded": t.value,
|
|
90
|
+
"btn-class": "single-selection"
|
|
91
|
+
}, {
|
|
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), {
|
|
98
|
+
key: 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)
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["id", "data-cy", "class", "aria-expanded"])
|
|
107
|
+
]),
|
|
108
|
+
(p(), D(z(e.dropdownElement), {
|
|
109
|
+
id: "dropdown_" + i(f),
|
|
110
|
+
ref: "dropdown",
|
|
111
|
+
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
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", [
|
|
113
|
+
e.dropdownClasses,
|
|
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" },
|
|
117
|
+
{ "uikit-absolute": e.isAbsolute }
|
|
118
|
+
]]),
|
|
119
|
+
"aria-hidden": !t.value,
|
|
120
|
+
onClick: a[0] || (a[0] = C(() => {
|
|
121
|
+
}, ["stop"]))
|
|
122
|
+
}, {
|
|
123
|
+
default: S(() => [
|
|
124
|
+
g(e.$slots, "default", {
|
|
125
|
+
isOpen: t.value,
|
|
126
|
+
toggleDropdown: u,
|
|
127
|
+
activeIdx: i(m),
|
|
128
|
+
selectedIdx: i(s),
|
|
129
|
+
setActiveIdx: b,
|
|
130
|
+
setSelectedIdx: A
|
|
131
|
+
})
|
|
132
|
+
]),
|
|
133
|
+
_: 3
|
|
134
|
+
}, 8, ["id", "data-cy", "class", "aria-hidden"]))
|
|
135
|
+
], 2));
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
export {
|
|
139
|
+
Y as default
|
|
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
|
|
3
|
-
import '
|
|
4
|
-
import { useFloatingLabel as
|
|
5
|
-
const
|
|
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
|
+
import '../../../../assets/packages/components/lib/UIKit/BaseFloatingLabel.css';/* empty css */
|
|
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 "
|
|
3
|
-
import "
|
|
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: {
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { defineComponent as v, mergeModels as P, useModel as C, computed as N, createBlock as n, openBlock as a, unref as i, withCtx as e, createVNode as l, createElementBlock as c, createElementVNode as p, toDisplayString as k, Fragment as b, renderList as L, createTextVNode as m } from "vue";
|
|
2
|
+
import { PaginationRoot as B, PaginationList as D, PaginationPrev as F, PaginationListItem as M, PaginationEllipsis as E, PaginationNext as V } from "reka-ui";
|
|
3
|
+
import { ArrowIcon as f } 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 { useBreakpoints as _ } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js";
|
|
6
|
+
const z = { class: "max-sm:uikit-hidden" }, I = { class: "max-sm:uikit-hidden" }, j = /* @__PURE__ */ v({
|
|
7
|
+
__name: "BasePagination",
|
|
8
|
+
props: /* @__PURE__ */ P({
|
|
9
|
+
count: { default: 0 },
|
|
10
|
+
limit: { default: 25 },
|
|
11
|
+
siblings: {},
|
|
12
|
+
arrowColor: { default: "#2B5DFF" },
|
|
13
|
+
prevLabel: { default: "" },
|
|
14
|
+
nextLabel: { default: "" },
|
|
15
|
+
prevDataCy: {},
|
|
16
|
+
nextDataCy: {}
|
|
17
|
+
}, {
|
|
18
|
+
pageNumber: { default: 1 },
|
|
19
|
+
pageNumberModifiers: {}
|
|
20
|
+
}),
|
|
21
|
+
emits: ["update:pageNumber"],
|
|
22
|
+
setup(s) {
|
|
23
|
+
const { isSmall: w } = _({
|
|
24
|
+
breakpoints: {
|
|
25
|
+
sm: 640,
|
|
26
|
+
md: 768,
|
|
27
|
+
lg: 1024,
|
|
28
|
+
xl: 1280
|
|
29
|
+
}
|
|
30
|
+
}), r = C(s, "pageNumber"), h = N(() => Math.ceil(s.count / s.limit)), x = (t = 1) => t === 1, y = (t = 1) => t === h.value;
|
|
31
|
+
return (t, u) => (a(), n(i(B), {
|
|
32
|
+
page: r.value,
|
|
33
|
+
"onUpdate:page": u[0] || (u[0] = (d) => r.value = d),
|
|
34
|
+
total: t.count,
|
|
35
|
+
"sibling-count": t.siblings ?? (i(w) ? 0 : 1),
|
|
36
|
+
"items-per-page": t.limit,
|
|
37
|
+
"show-edges": "",
|
|
38
|
+
class: "uikit-text-16"
|
|
39
|
+
}, {
|
|
40
|
+
default: e(() => [
|
|
41
|
+
l(i(D), { class: "uikit-flex uikit-gap-x-md" }, {
|
|
42
|
+
default: e(({ items: d }) => [
|
|
43
|
+
l(i(F), {
|
|
44
|
+
class: "uikit-flex uikit-cursor-pointer uikit-items-center uikit-gap-x-xs uikit-bg-transparent uikit-text-w-blue disabled:uikit-cursor-default disabled:uikit-text-w-lightgray [&:disabled_path]:uikit-stroke-w-lightgray",
|
|
45
|
+
"data-cy": t.prevDataCy,
|
|
46
|
+
disabled: x(r.value)
|
|
47
|
+
}, {
|
|
48
|
+
default: e(() => [
|
|
49
|
+
l(i(f), {
|
|
50
|
+
width: 20,
|
|
51
|
+
height: 11,
|
|
52
|
+
"stroke-color": t.arrowColor,
|
|
53
|
+
class: "uikit-inline-block uikit-rotate-90"
|
|
54
|
+
}, null, 8, ["stroke-color"]),
|
|
55
|
+
p("span", z, k(t.prevLabel), 1)
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["data-cy", "disabled"]),
|
|
59
|
+
(a(!0), c(b, null, L(d, (o, g) => (a(), c(b, null, [
|
|
60
|
+
o.type === "page" ? (a(), n(i(M), {
|
|
61
|
+
key: g,
|
|
62
|
+
value: o.value,
|
|
63
|
+
class: "uikit-size-xl uikit-cursor-pointer uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-text-w-blue data-[selected]:uikit-border-w-blue data-[selected]:uikit-bg-w-cultured"
|
|
64
|
+
}, {
|
|
65
|
+
default: e(() => [
|
|
66
|
+
m(k(o.value), 1)
|
|
67
|
+
]),
|
|
68
|
+
_: 2
|
|
69
|
+
}, 1032, ["value"])) : (a(), n(i(E), {
|
|
70
|
+
key: o.type,
|
|
71
|
+
class: "uikit-size-xl uikit-cursor-pointer uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-text-center uikit-text-w-lightgray",
|
|
72
|
+
index: g
|
|
73
|
+
}, {
|
|
74
|
+
default: e(() => u[1] || (u[1] = [
|
|
75
|
+
m(" … ")
|
|
76
|
+
])),
|
|
77
|
+
_: 2,
|
|
78
|
+
__: [1]
|
|
79
|
+
}, 1032, ["index"]))
|
|
80
|
+
], 64))), 256)),
|
|
81
|
+
l(i(V), {
|
|
82
|
+
class: "uikit-flex uikit-cursor-pointer uikit-items-center uikit-gap-x-xs uikit-bg-transparent uikit-text-w-blue disabled:uikit-cursor-default disabled:uikit-text-w-lightgray [&:disabled_path]:uikit-stroke-w-lightgray",
|
|
83
|
+
"data-cy": t.nextDataCy,
|
|
84
|
+
disabled: y(r.value)
|
|
85
|
+
}, {
|
|
86
|
+
default: e(() => [
|
|
87
|
+
p("span", I, k(t.nextLabel), 1),
|
|
88
|
+
l(i(f), {
|
|
89
|
+
"stroke-color": t.arrowColor,
|
|
90
|
+
width: 20,
|
|
91
|
+
height: 11,
|
|
92
|
+
class: "uikit-inline-block -uikit-rotate-90"
|
|
93
|
+
}, null, 8, ["stroke-color"])
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 8, ["data-cy", "disabled"])
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
})
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 8, ["page", "total", "sibling-count", "items-per-page"]));
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
export {
|
|
106
|
+
j as default
|
|
107
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as E, mergeModels as T, useModel as p, ref as l, watch as g, createElementBlock as B, openBlock as L, createVNode as u, createElementVNode as U, unref as m, withCtx as w } from "vue";
|
|
2
2
|
import { SliderRoot as z, SliderTrack as N, SliderRange as R, SliderThumb as y } from "reka-ui";
|
|
3
3
|
import V from "./BaseInput.vue.js";
|
|
4
|
-
import '
|
|
4
|
+
import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';/* empty css */
|
|
5
5
|
const j = { class: "uikit-mt-[20px] uikit-flex uikit-justify-between uikit-gap-x-sm" }, J = /* @__PURE__ */ E({
|
|
6
6
|
__name: "BaseSlider",
|
|
7
7
|
props: /* @__PURE__ */ T({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, ref as u, onBeforeMount as f, createBlock as h, openBlock as i, Teleport as y, createElementVNode as e, withModifiers as l, normalizeClass as x, createElementBlock as a, createCommentVNode as s, createVNode as v, unref as _ } from "vue";
|
|
2
|
-
import { CloseIcon as C } from "
|
|
3
|
-
import "
|
|
2
|
+
import { CloseIcon as C } 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 g = { class: "snackbar-container uikit-fixed uikit-bottom-10px uikit-left-10px uikit-z-[2000] max-sm:uikit-left-0 max-sm:uikit-w-full" }, T = ["data-cy"], w = ["src", "alt"], L = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "snackbar-type-icon uikit-bg-contain uikit-bg-no-repeat"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as T, mergeModels as n, useModel as g, ref as C, watch as h, createElementBlock as f, openBlock as b, normalizeClass as r, createElementVNode as v, createCommentVNode as L, unref as o, createVNode as x, withModifiers as u, nextTick as F } from "vue";
|
|
2
2
|
import M from "./BaseFloatingLabel.vue.js";
|
|
3
|
-
import '
|
|
4
|
-
import { useFloatingLabel as E } from "
|
|
5
|
-
const z = ["id", "data-cy", "data-validation", "rows", "disabled", "aria-labelledby", "readonly", "value"], B = ["innerHTML"], q = "peer-data-[validation='invalid']/fieldset:uikit-text-w-red peer-data-[validation='valid']/fieldset:uikit-text-w-blue", S = /* @__PURE__ */
|
|
3
|
+
import '../../../../assets/packages/components/lib/UIKit/BaseFloatingLabel.css';/* empty css */
|
|
4
|
+
import { useFloatingLabel as E } from "../../../../composables/useFloatingLabel.js";
|
|
5
|
+
const z = ["id", "data-cy", "data-validation", "rows", "disabled", "aria-labelledby", "readonly", "value"], B = ["innerHTML"], q = "peer-data-[validation='invalid']/fieldset:uikit-text-w-red peer-data-[validation='valid']/fieldset:uikit-text-w-blue", S = /* @__PURE__ */ T({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "BaseTextarea",
|
|
8
8
|
props: /* @__PURE__ */ n({
|
|
@@ -17,21 +17,21 @@ const z = ["id", "data-cy", "data-validation", "rows", "disabled", "aria-labelle
|
|
|
17
17
|
}),
|
|
18
18
|
emits: /* @__PURE__ */ n(["focusin", "focusout", "click", "keydown"], ["update:modelValue"]),
|
|
19
19
|
setup(k, { expose: m, emit: p }) {
|
|
20
|
-
const t =
|
|
20
|
+
const t = g(k, "modelValue"), s = p, {
|
|
21
21
|
labelState: d,
|
|
22
22
|
handleFocusIn: c,
|
|
23
23
|
handleFocusOut: w,
|
|
24
24
|
setFloatingLabel: y,
|
|
25
25
|
setInlineLabel: V
|
|
26
|
-
} = E(), a =
|
|
27
|
-
|
|
26
|
+
} = E(), a = C(null);
|
|
27
|
+
h(
|
|
28
28
|
t,
|
|
29
29
|
(e) => {
|
|
30
30
|
`${e}`.length && d.value !== "floating-label" ? y() : !e?.length && d.value !== "inline-label" && document.activeElement !== a.value && V();
|
|
31
31
|
},
|
|
32
32
|
{ immediate: !0 }
|
|
33
33
|
);
|
|
34
|
-
const
|
|
34
|
+
const $ = ({ target: e }) => {
|
|
35
35
|
t.value = e.value;
|
|
36
36
|
};
|
|
37
37
|
return m({
|
|
@@ -59,7 +59,7 @@ const z = ["id", "data-cy", "data-validation", "rows", "disabled", "aria-labelle
|
|
|
59
59
|
ref_key: "textarea",
|
|
60
60
|
ref: a,
|
|
61
61
|
"data-cy": e.$attrs["data-cy"],
|
|
62
|
-
class: r(["textarea-scrollbar uikit-peer/fieldset uikit-relative uikit-min-h-[130px] uikit-min-w-[343px] uikit-overflow-y-auto uikit-whitespace-pre-wrap uikit-rounded-2xs uikit-border uikit-border-solid uikit-
|
|
62
|
+
class: r(["textarea-scrollbar uikit-peer/fieldset uikit-relative uikit-min-h-[130px] uikit-min-w-[343px] uikit-overflow-y-auto uikit-whitespace-pre-wrap uikit-rounded-2xs uikit-border uikit-border-solid uikit-bg-white uikit-px-sm uikit-py-lg uikit-text-16 uikit-outline-none focus-visible:uikit-border-w-blue data-[validation='invalid']:uikit-border-w-red data-[validation='valid']:uikit-border-w-blue", [
|
|
63
63
|
{ "is-invalid": e.isValid === !1 },
|
|
64
64
|
{ "is-valid": e.isValid },
|
|
65
65
|
{ "uikit-resize-none": !e.resize },
|
|
@@ -82,7 +82,7 @@ const z = ["id", "data-cy", "data-validation", "rows", "disabled", "aria-labelle
|
|
|
82
82
|
},
|
|
83
83
|
["stop"]
|
|
84
84
|
)),
|
|
85
|
-
onInput: u(
|
|
85
|
+
onInput: u($, ["stop"]),
|
|
86
86
|
onKeydown: i[2] || (i[2] = u((l) => s("keydown", l), ["stop"])),
|
|
87
87
|
onClick: i[3] || (i[3] = (l) => s("click", l)),
|
|
88
88
|
value: t.value
|
|
@@ -29,7 +29,7 @@ const h = ["for"], k = ["id", "multiple", "accept"], B = /* @__PURE__ */ p({
|
|
|
29
29
|
class: s(["base-upload-file-wrapper uikit-relative", [e.$attrs.class]])
|
|
30
30
|
}, [
|
|
31
31
|
i("label", {
|
|
32
|
-
class: s(["uikit-btn uikit-btn-ternary", e.labelClasses]),
|
|
32
|
+
class: s(["uikit-btn uikit-btn-w-ternary", e.labelClasses]),
|
|
33
33
|
for: e.id
|
|
34
34
|
}, [
|
|
35
35
|
i("input", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, useId as f, computed as h, watch as b, createElementBlock as p, openBlock as u, createVNode as n, renderSlot as C, unref as l, normalizeClass as y, withCtx as s, createBlock as V, createCommentVNode as g, createTextVNode as B, toDisplayString as w } from "vue";
|
|
2
|
-
import { CheckIcon as I } from "
|
|
3
|
-
import "
|
|
2
|
+
import { CheckIcon as I } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.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 { CheckboxRoot as v, CheckboxIndicator as x } from "reka-ui";
|
|
5
5
|
const N = ["for"], q = /* @__PURE__ */ m({
|
|
6
6
|
__name: "CheckboxBtn",
|
|
@@ -19,7 +19,7 @@ const N = ["for"], q = /* @__PURE__ */ m({
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["click", "change", "update:modelValue"],
|
|
21
21
|
setup(t, { emit: r }) {
|
|
22
|
-
const i = f(), d = h(() => `${t.id
|
|
22
|
+
const i = f(), d = h(() => `${t.id || i}`), a = r;
|
|
23
23
|
b(
|
|
24
24
|
() => t.checked,
|
|
25
25
|
(e) => {
|