@wikicasa-dev/components 2.1.2 → 2.1.4-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UIKit/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.d.ts +20 -9
- package/dist/UIKit/BaseAlert.js +3 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.d.ts +40 -5
- package/dist/UIKit/BaseBadge.js +3 -2
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +4 -0
- package/dist/UIKit/BaseBanner.js +4 -0
- package/dist/UIKit/BaseBreadcrumb.js +3 -2
- package/dist/UIKit/BaseButton.d.ts +9 -8
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +5 -36
- package/dist/UIKit/BaseChip.js +4 -0
- package/dist/UIKit/BaseCollapse.js +7 -0
- package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
- package/dist/UIKit/BaseComplexToggle.js +5 -105
- package/dist/UIKit/BaseDropDown.d.ts +5 -0
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +3 -39
- package/dist/UIKit/BaseIcon.js +4 -25
- package/dist/UIKit/BaseInput.d.ts +4 -5
- package/dist/UIKit/BaseInput.js +3 -210
- package/dist/UIKit/BaseModal.js +3 -2
- package/dist/UIKit/BaseNotificationBadge.js +4 -0
- package/dist/UIKit/BasePagination.d.ts +10 -3
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BasePaper.js +9 -9
- package/dist/UIKit/BasePin.js +5 -0
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.d.ts +14 -10
- package/dist/UIKit/BaseSlider.js +2 -206
- package/dist/UIKit/BaseSnackbar.js +5 -80
- package/dist/UIKit/BaseTextarea.d.ts +4 -4
- package/dist/UIKit/BaseTextarea.js +5 -126
- package/dist/UIKit/BaseToggle.d.ts +5 -8
- package/dist/UIKit/BaseToggle.js +2 -41
- package/dist/UIKit/BaseTooltip.d.ts +10 -20
- package/dist/UIKit/BaseTooltip.js +5 -40
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +9 -16
- package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -74
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -3
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/UIKit/DatePicker.js +5 -0
- package/dist/UIKit/InputDropdown.js +4 -0
- package/dist/UIKit/NativeSelect.js +5 -0
- package/dist/UIKit/Navigation/NavigationBar.d.ts +17 -0
- package/dist/UIKit/Navigation/NavigationBar.js +5 -0
- package/dist/UIKit/Navigation/NavigationBarItem.d.ts +34 -0
- package/dist/UIKit/Navigation/NavigationBarItem.js +4 -0
- package/dist/UIKit/Radio/RadioButton.js +1 -1
- package/dist/UIKit/Radio/RadioGroup.js +1 -1
- package/dist/UIKit/SegmentedControl/SegmentedControl.js +4 -0
- package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +4 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +3 -20
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +1 -5
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/StaticSpinner.js +5 -26
- package/dist/UIKit/Tab/BaseTab.js +1 -1
- package/dist/UIKit/Tab/BaseTabItem.d.ts +27 -0
- package/dist/UIKit/Tab/BaseTabItem.js +4 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +3 -3
- package/dist/UIKit/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 +11 -6
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/polyline.js +2 -0
- package/dist/assets/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/free-mode.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/navigation.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/pagination.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/zoom.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/swiper.css +1 -0
- 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/packages/components/lib/UIKit/BaseBreadcrumb.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -0
- package/dist/assets/{BaseModal.css → packages/components/lib/UIKit/BaseModal.css} +1 -1
- package/dist/assets/packages/components/lib/UIKit/BasePin.css +1 -0
- package/dist/assets/{BaseSnackbar.css → packages/components/lib/UIKit/BaseSnackbar.css} +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/DatePicker.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/NativeSelect.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -0
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel.css +1 -0
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel2.css +1 -0
- 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/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.js +6 -1593
- package/dist/components/carousel/SwiperSlide.js +1 -1
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/composables/useFloatingLabel.js +20 -20
- package/dist/index.d.ts +3 -2
- package/dist/index.js +96 -85
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +19 -0
- package/dist/{chunks/ArrowIcon.Bq6Xr3uH.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js} +3 -3
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +16 -0
- package/dist/{chunks/CloseIcon.BZ4U3aiI.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js} +11 -11
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +9 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +2 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +40 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +29 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +15 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +10 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +33 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +41 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/decode.js +22 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/encode.js +34 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/polyline.js +12 -0
- package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js +71 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/autoplay.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/autoplay.js +129 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/controller.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/controller.js +101 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/free-mode.js +125 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/keyboard.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/keyboard.js +67 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/navigation.js +127 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/pagination.js +227 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/thumbs.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/thumbs.js +121 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/zoom.js +310 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/shared/classes-to-selector.js +6 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/shared/create-element-if-not-defined.js +12 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/shared/ssr-window.esm.js +135 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/shared/utils.js +91 -0
- 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/packages/components/lib/UIKit/AccessibleSelect.vue.js +213 -0
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +33 -0
- package/dist/{chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js → packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js} +8 -8
- package/dist/{chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js → packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js} +1 -1
- package/dist/{chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js → packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js} +25 -25
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +113 -0
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +193 -0
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +54 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +29 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +75 -0
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +55 -0
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +86 -0
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseChip.vue.js +38 -0
- package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +54 -0
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +106 -0
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +140 -0
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +27 -0
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +185 -0
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +150 -0
- package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +19 -0
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +107 -0
- package/dist/packages/components/lib/UIKit/BasePaper.vue.js +7 -0
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +37 -0
- package/dist/{chunks/SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js → packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js} +1 -1
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +136 -0
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +81 -0
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +109 -0
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +38 -0
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +50 -0
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +78 -0
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +110 -0
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +143 -0
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +152 -0
- package/dist/packages/components/lib/UIKit/NativeSelect.vue.js +65 -0
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +21 -0
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +48 -0
- package/dist/{chunks/RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js → packages/components/lib/UIKit/Radio/RadioButton.vue.js} +12 -12
- package/dist/{chunks/RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js → packages/components/lib/UIKit/Radio/RadioGroup.vue.js} +6 -6
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +93 -0
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +30 -0
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +22 -0
- package/dist/{chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.BoEMYLem.js → packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js} +10 -9
- package/dist/packages/components/lib/UIKit/StaticSpinner.vue.js +27 -0
- package/dist/{chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js → packages/components/lib/UIKit/Tab/BaseTab.vue.js} +3 -3
- package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +39 -0
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +46 -0
- package/dist/{chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js → packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js} +1 -1
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +109 -0
- package/dist/packages/components/lib/chart/DoughnutChart.vue.js +27 -0
- package/dist/{chunks/LineChart.vue_vue_type_script_setup_true_lang.ByrHxeZr.js → packages/components/lib/chart/LineChart.vue.js} +2 -2
- package/dist/{chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js → packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js} +5 -5
- package/dist/{chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js → packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js} +4 -4
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +246 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +5 -3
- package/package.json +21 -18
- package/dist/UIKit/Slider/SimpleSlider.d.ts +0 -19
- package/dist/UIKit/Slider/SimpleSlider.js +0 -83
- package/dist/assets/BaseAlert.css +0 -1
- package/dist/assets/BaseBadge.css +0 -1
- package/dist/assets/BaseCard.css +0 -1
- package/dist/assets/BaseComplexToggle.css +0 -1
- package/dist/assets/BaseFloatingLabel.css +0 -1
- package/dist/assets/BaseInput.css +0 -1
- package/dist/assets/BaseShimmerLoader.css +0 -1
- package/dist/assets/BaseSlider.css +0 -1
- package/dist/assets/BaseTextarea.css +0 -1
- package/dist/assets/BaseToggle.css +0 -1
- package/dist/assets/BaseTooltip.css +0 -1
- package/dist/assets/CheckboxBtn.css +0 -1
- package/dist/assets/SimpleSlider.css +0 -1
- package/dist/assets/SwiperCarousel.css +0 -1
- package/dist/assets/index.css +0 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js +0 -246
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js +0 -32
- package/dist/chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js +0 -19
- package/dist/chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ol7Hmb-E.js +0 -202
- package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js +0 -19
- package/dist/chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js +0 -58
- package/dist/chunks/BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js +0 -66
- package/dist/chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js +0 -137
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js +0 -151
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js +0 -164
- package/dist/chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js +0 -43
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js +0 -105
- package/dist/chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.CdwKhQoc.js +0 -71
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.C9gKO-hI.js +0 -111
- package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.M0NEigw0.js +0 -27
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +0 -10
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +0 -11
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
- package/dist/chunks/polyline.tNTK3v2u.js +0 -129
- package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +0 -41
- /package/dist/assets/{BaseIcon.css → packages/components/lib/UIKit/BaseIcon.css} +0 -0
- /package/dist/assets/{BasePaper.css → packages/components/lib/UIKit/BasePaper.css} +0 -0
- /package/dist/assets/{StaticSpinner.css → packages/components/lib/UIKit/StaticSpinner.css} +0 -0
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
import { SliderRoot as z, SliderTrack as N, SliderRange as R, SliderThumb as y } from "reka-ui";
|
|
3
|
+
import V from "./BaseInput.vue.js";
|
|
4
|
+
import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';/* empty css */
|
|
5
|
+
const j = { class: "uikit-mt-[20px] uikit-flex uikit-justify-between uikit-gap-x-sm" }, J = /* @__PURE__ */ E({
|
|
6
|
+
__name: "BaseSlider",
|
|
7
|
+
props: /* @__PURE__ */ T({
|
|
8
|
+
type: { default: "linear" },
|
|
9
|
+
min: { default: 0 },
|
|
10
|
+
max: { default: 100 },
|
|
11
|
+
step: {},
|
|
12
|
+
dataCy: {}
|
|
13
|
+
}, {
|
|
14
|
+
rangeMin: { default: 0 },
|
|
15
|
+
rangeMinModifiers: {},
|
|
16
|
+
rangeMax: { default: 100 },
|
|
17
|
+
rangeMaxModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: ["update:rangeMin", "update:rangeMax"],
|
|
20
|
+
setup(a) {
|
|
21
|
+
const C = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, F = (e) => Math.exp(
|
|
22
|
+
(e.position - e.minPos) * e.scale + e.minlval
|
|
23
|
+
), o = p(a, "rangeMin"), s = p(a, "rangeMax"), n = l(0), f = l(100), S = l(10), $ = l(40), k = l(0), h = l(0), c = l(0), x = (e) => {
|
|
24
|
+
if (a.type === "logarithmic")
|
|
25
|
+
return e = e || 1, parseInt(
|
|
26
|
+
C({
|
|
27
|
+
value: e,
|
|
28
|
+
minPos: n.value,
|
|
29
|
+
minlval: k.value,
|
|
30
|
+
scale: c.value
|
|
31
|
+
}).toFixed(0),
|
|
32
|
+
10
|
|
33
|
+
);
|
|
34
|
+
if (a.type === "linear")
|
|
35
|
+
return e;
|
|
36
|
+
throw new Error("The slider type has not been implemented");
|
|
37
|
+
}, b = (e) => {
|
|
38
|
+
if (!e) return 0;
|
|
39
|
+
if (a.type === "logarithmic")
|
|
40
|
+
return parseInt(
|
|
41
|
+
F({
|
|
42
|
+
position: e,
|
|
43
|
+
scale: c.value,
|
|
44
|
+
minlval: k.value,
|
|
45
|
+
minPos: n.value
|
|
46
|
+
}).toFixed(0),
|
|
47
|
+
10
|
|
48
|
+
);
|
|
49
|
+
if (a.type === "linear")
|
|
50
|
+
return e;
|
|
51
|
+
throw new Error("The slider type has not been implemented");
|
|
52
|
+
}, r = l([]), d = l(!1), v = l(!1);
|
|
53
|
+
(() => {
|
|
54
|
+
n.value = parseInt(`${a.min || 0}`, 10), f.value = parseInt(`${a.max || 100}`, 10), S.value = n.value, $.value = f.value;
|
|
55
|
+
const e = n.value, t = f.value;
|
|
56
|
+
k.value = Math.log(e || 1), h.value = Math.log(t), c.value = (h.value - k.value) / (f.value - n.value), r.value = [
|
|
57
|
+
b(o.value),
|
|
58
|
+
b(s.value)
|
|
59
|
+
];
|
|
60
|
+
})();
|
|
61
|
+
const I = (e = []) => {
|
|
62
|
+
r.value = e, v.value = !0;
|
|
63
|
+
}, M = {
|
|
64
|
+
formatFn: (e = "") => typeof e == "number" ? `${e}` : e.replace(/\D/g, ""),
|
|
65
|
+
unFormatFn: (e) => e ? parseInt(e) : 0
|
|
66
|
+
};
|
|
67
|
+
return g(
|
|
68
|
+
r,
|
|
69
|
+
([e, t]) => {
|
|
70
|
+
const i = x(e), P = x(t);
|
|
71
|
+
a.type === "logarithmic" && d.value || (o.value = i, s.value = P);
|
|
72
|
+
},
|
|
73
|
+
{ deep: !0 }
|
|
74
|
+
), g(o, (e) => {
|
|
75
|
+
e === void 0 || v.value || (r.value[0] = b(e));
|
|
76
|
+
}), g(s, (e) => {
|
|
77
|
+
e === void 0 || v.value || (r.value[1] = b(e));
|
|
78
|
+
}), (e, t) => (L(), B("div", null, [
|
|
79
|
+
u(m(z), {
|
|
80
|
+
"model-value": r.value,
|
|
81
|
+
class: "uikit-relative uikit-flex uikit-h-5 uikit-touch-none uikit-select-none uikit-items-center",
|
|
82
|
+
min: e.min,
|
|
83
|
+
max: e.max,
|
|
84
|
+
step: e.step,
|
|
85
|
+
"onUpdate:modelValue": I
|
|
86
|
+
}, {
|
|
87
|
+
default: w(() => [
|
|
88
|
+
u(m(N), { class: "uikit-relative uikit-h-[2px] uikit-grow uikit-rounded-full uikit-bg-w-lightgray" }, {
|
|
89
|
+
default: w(() => [
|
|
90
|
+
u(m(R), { class: "uikit-absolute uikit-h-full uikit-rounded-full uikit-bg-w-blue" })
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
}),
|
|
94
|
+
u(m(y), {
|
|
95
|
+
class: "uikit-block uikit-size-[20px] uikit-rounded-full uikit-border-2 uikit-border-solid uikit-border-w-blue uikit-bg-w-blue uikit-shadow-[0_0_0_2px_#fff_inset] hover:uikit-border-w-blue-hover hover:uikit-bg-w-blue-hover focus:uikit-border-w-blue-hover focus:uikit-bg-w-blue-hover focus:uikit-outline-none",
|
|
96
|
+
"aria-label": "Min Value",
|
|
97
|
+
"data-cy": e.dataCy?.thumbMin
|
|
98
|
+
}, null, 8, ["data-cy"]),
|
|
99
|
+
u(m(y), {
|
|
100
|
+
class: "uikit-block uikit-size-[20px] uikit-rounded-full uikit-border-2 uikit-border-solid uikit-border-w-blue uikit-bg-w-blue uikit-shadow-[0_0_0_2px_#fff_inset] hover:uikit-border-w-blue-hover hover:uikit-bg-w-blue-hover focus:uikit-border-w-blue-hover focus:uikit-bg-w-blue-hover focus:uikit-outline-none",
|
|
101
|
+
"aria-label": "Max Value",
|
|
102
|
+
"data-cy": e.dataCy?.thumbMax
|
|
103
|
+
}, null, 8, ["data-cy"])
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["model-value", "min", "max", "step"]),
|
|
107
|
+
U("div", j, [
|
|
108
|
+
u(V, {
|
|
109
|
+
modelValue: o.value,
|
|
110
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => o.value = i),
|
|
111
|
+
"label-text": "Min",
|
|
112
|
+
"data-cy": e.dataCy?.rangeMinInput,
|
|
113
|
+
formatter: M,
|
|
114
|
+
onFocusin: t[1] || (t[1] = (i) => {
|
|
115
|
+
d.value = !0, v.value = !1;
|
|
116
|
+
}),
|
|
117
|
+
onFocusout: t[2] || (t[2] = (i) => d.value = !1)
|
|
118
|
+
}, null, 8, ["modelValue", "data-cy"]),
|
|
119
|
+
u(V, {
|
|
120
|
+
modelValue: s.value,
|
|
121
|
+
"onUpdate:modelValue": t[3] || (t[3] = (i) => s.value = i),
|
|
122
|
+
"label-text": "Max",
|
|
123
|
+
"data-cy": e.dataCy?.rangeMaxInput,
|
|
124
|
+
formatter: M,
|
|
125
|
+
onFocusin: t[4] || (t[4] = (i) => {
|
|
126
|
+
d.value = !0, v.value = !1;
|
|
127
|
+
}),
|
|
128
|
+
onFocusout: t[5] || (t[5] = (i) => d.value = !1)
|
|
129
|
+
}, null, 8, ["modelValue", "data-cy"])
|
|
130
|
+
])
|
|
131
|
+
]));
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
export {
|
|
135
|
+
J as default
|
|
136
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
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 "../../../../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
|
+
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
|
+
key: 1,
|
|
6
|
+
class: "snackbar-type-icon uikit-bg-contain uikit-bg-no-repeat"
|
|
7
|
+
}, M = { class: "snackbar-text uikit-px-4 uikit-py-0 uikit-text uikit-font-regular max-sm:uikit-max-w-[80%] max-sm:uikit-pr-0 sm:uikit-text-16" }, B = ["innerHTML"], H = ["innerHTML"], z = /* @__PURE__ */ p({
|
|
8
|
+
inheritAttrs: !1,
|
|
9
|
+
__name: "BaseSnackbar",
|
|
10
|
+
props: {
|
|
11
|
+
type: { default: "" },
|
|
12
|
+
title: {},
|
|
13
|
+
body: {},
|
|
14
|
+
icon: {},
|
|
15
|
+
timeout: { default: 55e4 },
|
|
16
|
+
cb: { default: null }
|
|
17
|
+
},
|
|
18
|
+
emits: ["snackbar-hidden"],
|
|
19
|
+
setup(k, { emit: m }) {
|
|
20
|
+
const n = k, d = m, o = u(null), r = u(null), b = () => {
|
|
21
|
+
o.value && o.value();
|
|
22
|
+
}, c = () => {
|
|
23
|
+
const t = r.value;
|
|
24
|
+
t && (t.classList.remove("snackbar-active"), t.classList.add("snackbar-hidden"), setTimeout(() => {
|
|
25
|
+
d("snackbar-hidden");
|
|
26
|
+
}, 300));
|
|
27
|
+
};
|
|
28
|
+
return f(() => {
|
|
29
|
+
n.cb && (o.value = n.cb), setTimeout(() => {
|
|
30
|
+
c();
|
|
31
|
+
}, n.timeout);
|
|
32
|
+
}), (t, S) => (i(), h(y, { to: "body" }, [
|
|
33
|
+
e("div", g, [
|
|
34
|
+
e("div", {
|
|
35
|
+
ref_key: "snackbar",
|
|
36
|
+
ref: r,
|
|
37
|
+
"data-cy": t.$attrs["data-cy"],
|
|
38
|
+
class: x(["snackbar snackbar-active uikit-py-xs uikit-flex uikit-items-center uikit-rounded-[5px] uikit-px-4 uikit-font-medium uikit-shadow hover:uikit-cursor-pointer max-sm:uikit-relative max-sm:uikit-mx-10px max-sm:uikit-my-0", t.type]),
|
|
39
|
+
onClick: l(b, ["stop"])
|
|
40
|
+
}, [
|
|
41
|
+
t.icon ? (i(), a("img", {
|
|
42
|
+
key: 0,
|
|
43
|
+
src: t.icon.src,
|
|
44
|
+
alt: `${t.icon.alt}`,
|
|
45
|
+
width: "20",
|
|
46
|
+
height: "20"
|
|
47
|
+
}, null, 8, w)) : s("", !0),
|
|
48
|
+
t.type && !t.icon ? (i(), a("span", L)) : s("", !0),
|
|
49
|
+
e("div", M, [
|
|
50
|
+
t.title ? (i(), a("p", {
|
|
51
|
+
key: 0,
|
|
52
|
+
class: "uikit-m-0",
|
|
53
|
+
innerHTML: t.title
|
|
54
|
+
}, null, 8, B)) : s("", !0),
|
|
55
|
+
t.body ? (i(), a("p", {
|
|
56
|
+
key: 1,
|
|
57
|
+
class: "uikit-m-0",
|
|
58
|
+
innerHTML: t.body
|
|
59
|
+
}, null, 8, H)) : s("", !0)
|
|
60
|
+
]),
|
|
61
|
+
e("button", {
|
|
62
|
+
type: "button",
|
|
63
|
+
"data-cy": "base-snackbar-close-btn",
|
|
64
|
+
class: "uikit-bg-transparent max-sm:uikit-absolute max-sm:uikit-right-5",
|
|
65
|
+
onClick: l(c, ["stop"])
|
|
66
|
+
}, [
|
|
67
|
+
v(_(C), {
|
|
68
|
+
class: "snackbar-close-icon",
|
|
69
|
+
width: 20,
|
|
70
|
+
height: 20,
|
|
71
|
+
"stroke-color": "#000"
|
|
72
|
+
})
|
|
73
|
+
])
|
|
74
|
+
], 10, T)
|
|
75
|
+
])
|
|
76
|
+
]));
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
export {
|
|
80
|
+
z as default
|
|
81
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
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
|
+
import M from "./BaseFloatingLabel.vue.js";
|
|
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
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BaseTextarea",
|
|
8
|
+
props: /* @__PURE__ */ n({
|
|
9
|
+
labelText: { default: "" },
|
|
10
|
+
feedback: {},
|
|
11
|
+
isValid: { default: null },
|
|
12
|
+
resize: { type: Boolean, default: !1 },
|
|
13
|
+
labelClasses: {}
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: { default: "" },
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: /* @__PURE__ */ n(["focusin", "focusout", "click", "keydown"], ["update:modelValue"]),
|
|
19
|
+
setup(k, { expose: m, emit: p }) {
|
|
20
|
+
const t = g(k, "modelValue"), s = p, {
|
|
21
|
+
labelState: d,
|
|
22
|
+
handleFocusIn: c,
|
|
23
|
+
handleFocusOut: w,
|
|
24
|
+
setFloatingLabel: y,
|
|
25
|
+
setInlineLabel: V
|
|
26
|
+
} = E(), a = C(null);
|
|
27
|
+
h(
|
|
28
|
+
t,
|
|
29
|
+
(e) => {
|
|
30
|
+
`${e}`.length && d.value !== "floating-label" ? y() : !e?.length && d.value !== "inline-label" && document.activeElement !== a.value && V();
|
|
31
|
+
},
|
|
32
|
+
{ immediate: !0 }
|
|
33
|
+
);
|
|
34
|
+
const $ = ({ target: e }) => {
|
|
35
|
+
t.value = e.value;
|
|
36
|
+
};
|
|
37
|
+
return m({
|
|
38
|
+
disableTextarea: () => {
|
|
39
|
+
a.value && (a.value.setAttribute("readonly", "readonly"), a.value.classList.add("disabled"));
|
|
40
|
+
},
|
|
41
|
+
clearTextareaElem: () => {
|
|
42
|
+
a.value && (a.value.value = "");
|
|
43
|
+
},
|
|
44
|
+
focusDisabledTextarea: () => {
|
|
45
|
+
a.value && (a.value.removeAttribute("readonly"), a.value.classList.remove("disabled"), F(() => {
|
|
46
|
+
a.value && a.value.focus();
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
}), (e, i) => (b(), f("div", {
|
|
50
|
+
class: r(e.$attrs["wrapper-classes"])
|
|
51
|
+
}, [
|
|
52
|
+
v("div", {
|
|
53
|
+
class: r(["input-wrapper uikit-relative uikit-rounded-xs uikit-px-0", [
|
|
54
|
+
o(d) === "floating-label" ? "floating-state" : "inline-state"
|
|
55
|
+
]])
|
|
56
|
+
}, [
|
|
57
|
+
v("textarea", {
|
|
58
|
+
id: e.$attrs.id,
|
|
59
|
+
ref_key: "textarea",
|
|
60
|
+
ref: a,
|
|
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-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
|
+
{ "is-invalid": e.isValid === !1 },
|
|
64
|
+
{ "is-valid": e.isValid },
|
|
65
|
+
{ "uikit-resize-none": !e.resize },
|
|
66
|
+
e.$attrs.class
|
|
67
|
+
]]),
|
|
68
|
+
"data-validation": e.isValid ? "valid" : e.isValid === !1 ? "invalid" : "",
|
|
69
|
+
rows: e.$attrs.rows,
|
|
70
|
+
disabled: e.$attrs.disabled,
|
|
71
|
+
"aria-labelledby": e.$attrs.id,
|
|
72
|
+
readonly: e.$attrs.readonly,
|
|
73
|
+
onFocusin: i[0] || (i[0] = u(
|
|
74
|
+
(l) => {
|
|
75
|
+
s("focusin", l), o(c)();
|
|
76
|
+
},
|
|
77
|
+
["stop"]
|
|
78
|
+
)),
|
|
79
|
+
onFocusout: i[1] || (i[1] = u(
|
|
80
|
+
(l) => {
|
|
81
|
+
s("focusout", l), o(w)(`${t.value}`.trim());
|
|
82
|
+
},
|
|
83
|
+
["stop"]
|
|
84
|
+
)),
|
|
85
|
+
onInput: u($, ["stop"]),
|
|
86
|
+
onKeydown: i[2] || (i[2] = u((l) => s("keydown", l), ["stop"])),
|
|
87
|
+
onClick: i[3] || (i[3] = (l) => s("click", l)),
|
|
88
|
+
value: t.value
|
|
89
|
+
}, null, 42, z),
|
|
90
|
+
x(M, {
|
|
91
|
+
for: e.$attrs.id,
|
|
92
|
+
"label-text": e.labelText,
|
|
93
|
+
"label-state": o(d),
|
|
94
|
+
required: e.$attrs.required,
|
|
95
|
+
"is-valid": e.isValid,
|
|
96
|
+
"label-classes": [e.labelClasses, q]
|
|
97
|
+
}, null, 8, ["for", "label-text", "label-state", "required", "is-valid", "label-classes"])
|
|
98
|
+
], 2),
|
|
99
|
+
(e.isValid || e.isValid === !1) && e.feedback ? (b(), f("div", {
|
|
100
|
+
key: 0,
|
|
101
|
+
class: r(["uikit-mt-1 uikit-text-12", e.isValid === !1 ? "uikit-text-w-red" : "uikit-text-w-blue"]),
|
|
102
|
+
innerHTML: e.isValid === !1 ? e.feedback.invalid : e.feedback.valid
|
|
103
|
+
}, null, 10, B)) : L("", !0)
|
|
104
|
+
], 2));
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
export {
|
|
108
|
+
S as default
|
|
109
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as r, mergeModels as d, useModel as n, createElementBlock as k, openBlock as m, renderSlot as l, createVNode as u, createCommentVNode as c, unref as a, withCtx as f, createElementVNode as p } from "vue";
|
|
2
|
+
import { SwitchRoot as h, SwitchThumb as b } from "reka-ui";
|
|
3
|
+
const g = { class: "uikit-flex uikit-items-center uikit-gap-xs" }, x = ["innerHTML"], L = /* @__PURE__ */ r({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BaseToggle",
|
|
6
|
+
props: /* @__PURE__ */ d({
|
|
7
|
+
label: {}
|
|
8
|
+
}, {
|
|
9
|
+
modelValue: { default: !1 },
|
|
10
|
+
modelModifiers: {}
|
|
11
|
+
}),
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(o) {
|
|
14
|
+
const t = n(o, "modelValue");
|
|
15
|
+
return (e, i) => (m(), k("div", g, [
|
|
16
|
+
l(e.$slots, "leftLabel"),
|
|
17
|
+
u(a(h), {
|
|
18
|
+
modelValue: t.value,
|
|
19
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
20
|
+
class: "uikit-flex uikit-h-[20px] uikit-w-2xl uikit-cursor-pointer uikit-rounded-full uikit-p-0 uikit-transition-[background] data-[state=checked]:uikit-bg-w-blue data-[state=unchecked]:uikit-bg-w-cultured"
|
|
21
|
+
}, {
|
|
22
|
+
default: f(() => [
|
|
23
|
+
u(a(b), { class: "uikit-text-xs uikit-shadow-surface uikit-my-auto uikit-flex uikit-size-[20px] uikit-translate-x-0 uikit-items-center uikit-justify-center uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-shadow-xl uikit-transition-transform uikit-will-change-transform data-[state=checked]:uikit-translate-x-full" })
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
}, 8, ["modelValue"]),
|
|
27
|
+
e.$slots.leftLabel ? c("", !0) : l(e.$slots, "rightLabel", { key: 0 }, () => [
|
|
28
|
+
p("span", {
|
|
29
|
+
class: "uikit-ml-[10px]",
|
|
30
|
+
innerHTML: e.label
|
|
31
|
+
}, null, 8, x)
|
|
32
|
+
])
|
|
33
|
+
]));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
L as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent as s, createBlock as n, openBlock as u, unref as e, withCtx as i, createVNode as o, normalizeClass as a, renderSlot as r, createElementVNode as d } from "vue";
|
|
2
|
+
import { TooltipProvider as p, TooltipRoot as f, TooltipTrigger as k, TooltipPortal as c, TooltipContent as g, TooltipArrow as m } from "reka-ui";
|
|
3
|
+
const _ = /* @__PURE__ */ s({
|
|
4
|
+
__name: "BaseTooltip",
|
|
5
|
+
props: {
|
|
6
|
+
direction: { default: "top" },
|
|
7
|
+
tooltipContentClasses: { default: "" },
|
|
8
|
+
triggerClasses: { default: "" },
|
|
9
|
+
delayDuration: { default: 0 }
|
|
10
|
+
},
|
|
11
|
+
setup(C) {
|
|
12
|
+
return (t, l) => (u(), n(e(p), { "delay-duration": t.delayDuration }, {
|
|
13
|
+
default: i(() => [
|
|
14
|
+
o(e(f), null, {
|
|
15
|
+
default: i(() => [
|
|
16
|
+
o(e(k), {
|
|
17
|
+
class: a(["uikit-inline-flex uikit-w-fit uikit-appearance-none uikit-bg-transparent uikit-p-0", t.triggerClasses])
|
|
18
|
+
}, {
|
|
19
|
+
default: i(() => [
|
|
20
|
+
r(t.$slots, "trigger", {}, void 0, !0)
|
|
21
|
+
]),
|
|
22
|
+
_: 3
|
|
23
|
+
}, 8, ["class"]),
|
|
24
|
+
o(e(c), null, {
|
|
25
|
+
default: i(() => [
|
|
26
|
+
o(e(g), {
|
|
27
|
+
class: a(["will-change-[transform,opacity] uikit-shadow-surface uikit-max-w-[250px] uikit-rounded-2xs uikit-bg-white uikit-p-xs uikit-text uikit-text-w-black", t.tooltipContentClasses]),
|
|
28
|
+
"side-offset": 8,
|
|
29
|
+
side: t.direction
|
|
30
|
+
}, {
|
|
31
|
+
default: i(() => [
|
|
32
|
+
r(t.$slots, "content", {}, void 0, !0),
|
|
33
|
+
o(e(m), { "as-child": "" }, {
|
|
34
|
+
default: i(() => l[0] || (l[0] = [
|
|
35
|
+
d("span", { class: "uikit-pin-arrow" }, null, -1)
|
|
36
|
+
])),
|
|
37
|
+
_: 1,
|
|
38
|
+
__: [0]
|
|
39
|
+
})
|
|
40
|
+
]),
|
|
41
|
+
_: 3
|
|
42
|
+
}, 8, ["class", "side"])
|
|
43
|
+
]),
|
|
44
|
+
_: 3
|
|
45
|
+
})
|
|
46
|
+
]),
|
|
47
|
+
_: 3
|
|
48
|
+
})
|
|
49
|
+
]),
|
|
50
|
+
_: 3
|
|
51
|
+
}, 8, ["delay-duration"]));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
_ as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as p, ref as f, watch as c, createElementBlock as m, openBlock as b, normalizeClass as s, createElementVNode as i, renderSlot as C } from "vue";
|
|
2
|
+
const h = ["for"], k = ["id", "multiple", "accept"], B = /* @__PURE__ */ p({
|
|
3
|
+
inheritAttrs: !1,
|
|
4
|
+
__name: "BaseUploadFile",
|
|
5
|
+
props: {
|
|
6
|
+
id: {},
|
|
7
|
+
labelText: { default: "" },
|
|
8
|
+
clear: { type: Boolean, default: !1 },
|
|
9
|
+
labelClasses: { default: "" },
|
|
10
|
+
floatingLabelClasses: { default: "" },
|
|
11
|
+
fieldsetClasses: { default: "" },
|
|
12
|
+
legendClasses: { default: "" }
|
|
13
|
+
},
|
|
14
|
+
emits: ["cleared", "uploaded"],
|
|
15
|
+
setup(n, { emit: r }) {
|
|
16
|
+
const o = n, a = r, t = f("");
|
|
17
|
+
c(
|
|
18
|
+
() => o.clear,
|
|
19
|
+
(e) => {
|
|
20
|
+
e && (t.value = "", a("cleared"));
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
const d = ({ target: e }) => {
|
|
24
|
+
if (!e) return;
|
|
25
|
+
const l = e.files;
|
|
26
|
+
l?.length && (t.value = l[0].name, a("uploaded", l[0]));
|
|
27
|
+
};
|
|
28
|
+
return (e, l) => (b(), m("div", {
|
|
29
|
+
class: s(["base-upload-file-wrapper uikit-relative", [e.$attrs.class]])
|
|
30
|
+
}, [
|
|
31
|
+
i("label", {
|
|
32
|
+
class: s(["uikit-btn uikit-btn-w-ternary", e.labelClasses]),
|
|
33
|
+
for: e.id
|
|
34
|
+
}, [
|
|
35
|
+
i("input", {
|
|
36
|
+
id: e.id,
|
|
37
|
+
multiple: e.$attrs.multiple,
|
|
38
|
+
type: "file",
|
|
39
|
+
class: "uikit-hidden",
|
|
40
|
+
accept: e.$attrs.accept,
|
|
41
|
+
onInput: l[0] || (l[0] = (u) => d(u))
|
|
42
|
+
}, null, 40, k),
|
|
43
|
+
C(e.$slots, "label", { filename: t.value })
|
|
44
|
+
], 10, h)
|
|
45
|
+
], 2));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
B as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
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 "../../../../../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
|
+
import { CheckboxRoot as v, CheckboxIndicator as x } from "reka-ui";
|
|
5
|
+
const N = ["for"], q = /* @__PURE__ */ m({
|
|
6
|
+
__name: "CheckboxBtn",
|
|
7
|
+
props: {
|
|
8
|
+
id: {},
|
|
9
|
+
dataCy: {},
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
checked: { type: Boolean, default: () => {
|
|
12
|
+
} },
|
|
13
|
+
required: { type: Boolean },
|
|
14
|
+
inputClass: {},
|
|
15
|
+
label: { default: "" },
|
|
16
|
+
labelClass: {},
|
|
17
|
+
containerId: {},
|
|
18
|
+
modelValue: { type: Boolean, default: !1 }
|
|
19
|
+
},
|
|
20
|
+
emits: ["click", "change", "update:modelValue"],
|
|
21
|
+
setup(t, { emit: r }) {
|
|
22
|
+
const i = f(), d = h(() => `${t.id || i}`), a = r;
|
|
23
|
+
b(
|
|
24
|
+
() => t.checked,
|
|
25
|
+
(e) => {
|
|
26
|
+
e !== void 0 && a("update:modelValue", e);
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
const c = (e) => {
|
|
30
|
+
e !== "indeterminate" && (a("change", {
|
|
31
|
+
id: t.id ?? i,
|
|
32
|
+
label: t.label,
|
|
33
|
+
checked: e
|
|
34
|
+
}), a("update:modelValue", e));
|
|
35
|
+
};
|
|
36
|
+
return (e, o) => (u(), p("label", {
|
|
37
|
+
class: "uikit-flex uikit-items-center uikit-gap-sm uikit-text-16",
|
|
38
|
+
for: d.value,
|
|
39
|
+
onClick: o[0] || (o[0] = (k) => a("click", k))
|
|
40
|
+
}, [
|
|
41
|
+
n(l(v), {
|
|
42
|
+
id: d.value,
|
|
43
|
+
"model-value": e.modelValue,
|
|
44
|
+
"data-cy": e.dataCy,
|
|
45
|
+
disabled: e.disabled,
|
|
46
|
+
class: y(["uikit-inline-flex uikit-size-[20px] uikit-items-center uikit-justify-center uikit-rounded-3xs uikit-p-0 data-[state='unchecked']:uikit-border data-[state='unchecked']:uikit-border-solid data-[state='unchecked']:uikit-border-w-lightgray", [
|
|
47
|
+
{
|
|
48
|
+
"uikit-bg-white": !e.modelValue,
|
|
49
|
+
"uikit-bg-w-blue": e.modelValue
|
|
50
|
+
},
|
|
51
|
+
e.inputClass
|
|
52
|
+
]]),
|
|
53
|
+
"onUpdate:modelValue": c
|
|
54
|
+
}, {
|
|
55
|
+
default: s(() => [
|
|
56
|
+
n(l(x), { class: "uikit-flex" }, {
|
|
57
|
+
default: s(() => [
|
|
58
|
+
e.modelValue === !0 ? (u(), V(l(I), {
|
|
59
|
+
key: 0,
|
|
60
|
+
"fill-color": "#fff",
|
|
61
|
+
width: 12,
|
|
62
|
+
height: 14
|
|
63
|
+
})) : g("", !0)
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
})
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}, 8, ["id", "model-value", "data-cy", "disabled", "class"]),
|
|
70
|
+
C(e.$slots, "label", {}, () => [
|
|
71
|
+
B(w(e.label), 1)
|
|
72
|
+
])
|
|
73
|
+
], 8, N));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
q as default
|
|
78
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { defineComponent as x, ref as D, computed as h, watch as E, renderSlot as m, createElementVNode as $, normalizeClass as B, createElementBlock as A, createCommentVNode as I, openBlock as b, Fragment as R, renderList as K, createBlock as L } from "vue";
|
|
2
|
+
import V from "./CheckboxBtn.vue.js";
|
|
3
|
+
const w = ["id", "data-cy"], F = /* @__PURE__ */ x({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "CheckboxGroup",
|
|
6
|
+
props: {
|
|
7
|
+
checkboxData: { default() {
|
|
8
|
+
return [];
|
|
9
|
+
} },
|
|
10
|
+
formCheckInline: { type: Boolean, default: !1 },
|
|
11
|
+
reset: { type: Boolean, default: !1 },
|
|
12
|
+
checkboxContainerClasses: { default: "" },
|
|
13
|
+
autoCheckResetAll: { type: Boolean, default: !1 },
|
|
14
|
+
autoCheckResetEmpty: { type: Boolean, default: !1 },
|
|
15
|
+
manualToggleResetButton: { type: Boolean, default: !1 },
|
|
16
|
+
getKey: { type: Function, default() {
|
|
17
|
+
return (n) => typeof n == "string" || typeof n == "number" ? `${n}` : `${n.id}`;
|
|
18
|
+
} },
|
|
19
|
+
groupId: { default: "" },
|
|
20
|
+
dataCy: { default: "" }
|
|
21
|
+
},
|
|
22
|
+
emits: ["resetted", "update:modelValue", "checkedGroup"],
|
|
23
|
+
setup(n, { emit: g }) {
|
|
24
|
+
const C = (e = "") => !e || !e.trim() ? "" : (e = e.trim(), e.replace(" ", "-").toLowerCase()), y = (e) => !e?.length, o = n, r = g, c = D(/* @__PURE__ */ new Map()), s = h(() => {
|
|
25
|
+
for (const e of o.checkboxData)
|
|
26
|
+
if (e.reset) return e;
|
|
27
|
+
return null;
|
|
28
|
+
}), v = h(() => o.checkboxData.length), f = h(() => {
|
|
29
|
+
let e = 0;
|
|
30
|
+
return c.value.forEach((t) => {
|
|
31
|
+
t.checked && e++;
|
|
32
|
+
}), e;
|
|
33
|
+
});
|
|
34
|
+
(() => {
|
|
35
|
+
const e = [];
|
|
36
|
+
for (const t of o.checkboxData)
|
|
37
|
+
t.checked = !!t.checked, c.value.set(
|
|
38
|
+
`${t.id}`,
|
|
39
|
+
t
|
|
40
|
+
), t.checked && e.push(t);
|
|
41
|
+
r("update:modelValue", e);
|
|
42
|
+
})();
|
|
43
|
+
const u = (e, t) => {
|
|
44
|
+
const a = c.value.get(e);
|
|
45
|
+
if (a) {
|
|
46
|
+
if (t) {
|
|
47
|
+
c.value.set(e, { ...a, ...t });
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
c.value.set(e, { ...a, checked: !a.checked });
|
|
51
|
+
}
|
|
52
|
+
}, k = () => {
|
|
53
|
+
c.value.forEach((e) => {
|
|
54
|
+
e.checked = !1;
|
|
55
|
+
});
|
|
56
|
+
}, p = () => {
|
|
57
|
+
k(), r("update:modelValue", []), r("resetted");
|
|
58
|
+
}, d = (e) => c.value.get(o.getKey(e))?.checked ?? !1, i = (e) => {
|
|
59
|
+
if (y(o.checkboxData)) return;
|
|
60
|
+
const t = c.value.get(e.id);
|
|
61
|
+
t?.reset && e.checked ? k() : s.value && !t?.reset && u(o.getKey(s.value), { checked: !1 }), u(`${e.id}`), o.autoCheckResetAll && s.value && f.value === v.value - 1 && c.value.forEach((l) => {
|
|
62
|
+
l.checked = !!l.reset;
|
|
63
|
+
}), o.autoCheckResetEmpty && s.value && !f.value && (!o.manualToggleResetButton || !t?.reset) && u(o.getKey(s.value), { checked: !0 });
|
|
64
|
+
const a = [];
|
|
65
|
+
c.value.forEach((l) => {
|
|
66
|
+
l.checked && a.push(l);
|
|
67
|
+
}), r("update:modelValue", a), r("checkedGroup", o.groupId);
|
|
68
|
+
};
|
|
69
|
+
return E(
|
|
70
|
+
() => o.reset,
|
|
71
|
+
(e) => {
|
|
72
|
+
e && p();
|
|
73
|
+
}
|
|
74
|
+
), (e, t) => m(e.$slots, "default", {
|
|
75
|
+
isActive: d,
|
|
76
|
+
handleChange: i,
|
|
77
|
+
checkboxesData: e.checkboxData
|
|
78
|
+
}, () => [
|
|
79
|
+
$("div", {
|
|
80
|
+
id: e.groupId,
|
|
81
|
+
class: B(["checkbox-group-container", e.$attrs.class || ""]),
|
|
82
|
+
"data-cy": e.dataCy
|
|
83
|
+
}, [
|
|
84
|
+
m(e.$slots, "checkbox_elements", {
|
|
85
|
+
isActive: d,
|
|
86
|
+
handleChange: i,
|
|
87
|
+
checkboxesData: e.checkboxData,
|
|
88
|
+
reset: p
|
|
89
|
+
}, () => [
|
|
90
|
+
e.checkboxData ? (b(!0), A(R, { key: 0 }, K(e.checkboxData, (a, l) => (b(), L(V, {
|
|
91
|
+
id: e.getKey(a),
|
|
92
|
+
key: l,
|
|
93
|
+
"data-cy": a.dataCy ?? `checkbox_${C(`${a.label}`)}`,
|
|
94
|
+
label: a.label,
|
|
95
|
+
inline: e.formCheckInline,
|
|
96
|
+
"model-value": d(a),
|
|
97
|
+
"container-class": [
|
|
98
|
+
e.formCheckInline ? "uikit-mr-10px" : "uikit-mb-10px",
|
|
99
|
+
e.checkboxContainerClasses
|
|
100
|
+
],
|
|
101
|
+
onChange: i
|
|
102
|
+
}, null, 8, ["id", "data-cy", "label", "inline", "model-value", "container-class"]))), 128)) : I("", !0)
|
|
103
|
+
])
|
|
104
|
+
], 10, w)
|
|
105
|
+
]);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
export {
|
|
109
|
+
F as default
|
|
110
|
+
};
|