@wikicasa-dev/components 2.1.2-alpha.2 → 2.1.2-alpha.4
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 +3 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.js +3 -2
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +5 -36
- package/dist/UIKit/BaseComplexToggle.js +5 -105
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +5 -39
- package/dist/UIKit/BaseIcon.js +4 -25
- package/dist/UIKit/BaseInput.js +5 -210
- package/dist/UIKit/BaseModal.js +3 -2
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BasePaper.js +9 -9
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.js +5 -206
- package/dist/UIKit/BaseSnackbar.js +5 -80
- package/dist/UIKit/BaseTextarea.js +5 -126
- package/dist/UIKit/BaseToggle.js +5 -41
- package/dist/UIKit/BaseTooltip.js +5 -40
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -74
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/UIKit/Radio/RadioButton.js +1 -1
- package/dist/UIKit/Radio/RadioGroup.js +1 -1
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +5 -20
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +5 -81
- package/dist/UIKit/StaticSpinner.js +5 -26
- package/dist/UIKit/Tab/BaseTab.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/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/polyline.js +2 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.css +1 -0
- package/dist/assets/{SwiperCarousel.css → node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css} +1 -1
- 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/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 -3
- package/dist/components/carousel/SwiperSlide.js +1 -1
- package/dist/index.js +89 -85
- package/dist/{chunks/ArrowIcon.Bq6Xr3uH.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js} +3 -3
- package/dist/{chunks/CloseIcon.BZ4U3aiI.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_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.11_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.11_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.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +40 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +4 -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/GenericUtils.js +12 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +18 -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_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +4 -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.6/node_modules/swiper/modules/autoplay.css.js +1 -0
- package/dist/{chunks/autoplay.BGHgUDoY.js → node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js} +2 -2
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js +1 -0
- package/dist/{chunks/controller.0x6YWuUP.js → node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js} +2 -2
- package/dist/{chunks/free-mode.DuU7N2XQ.js → node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js} +3 -3
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js +1 -0
- package/dist/{chunks/keyboard.DRVbxSum.js → node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js} +14 -13
- package/dist/{chunks/navigation.DN21unMg.js → node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js} +4 -4
- package/dist/{chunks/pagination.DiUF6O5_.js → node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js} +46 -48
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js +1 -0
- package/dist/{chunks/thumbs.0ifInQuA.js → node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.js} +7 -6
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js +310 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/classes-to-selector.js +6 -0
- package/dist/{chunks/create-element-if-not-defined.42NcLnr9.js → node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/create-element-if-not-defined.js} +1 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/ssr-window.esm.js +135 -0
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/utils.js +85 -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} +21 -21
- package/dist/{chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js → packages/components/lib/UIKit/BaseAlert.vue.js} +2 -2
- package/dist/{chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ol7Hmb-E.js → packages/components/lib/UIKit/BaseAutocomplete.vue.js} +64 -74
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +19 -0
- package/dist/{chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js → packages/components/lib/UIKit/BaseBreadcrumb.vue.js} +5 -5
- package/dist/{chunks/BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js → packages/components/lib/UIKit/BaseButton.vue.js} +6 -6
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +106 -0
- package/dist/{chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js → packages/components/lib/UIKit/BaseDropDown.vue.js} +25 -25
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +40 -0
- package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +27 -0
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +211 -0
- package/dist/{chunks/BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js → packages/components/lib/UIKit/BaseModal.vue.js} +56 -61
- package/dist/{chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js → packages/components/lib/UIKit/BasePagination.vue.js} +71 -83
- package/dist/packages/components/lib/UIKit/BasePaper.vue.js +7 -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 +207 -0
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +81 -0
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +127 -0
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +42 -0
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +41 -0
- package/dist/{chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.CdwKhQoc.js → packages/components/lib/UIKit/BaseUploadFile.vue.js} +2 -2
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +75 -0
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +114 -0
- package/dist/{chunks/RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js → packages/components/lib/UIKit/Radio/RadioButton.vue.js} +9 -9
- 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/ShimmerLoader/BaseShimmerLoader.vue.js +21 -0
- package/dist/{chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.BoEMYLem.js → packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js} +8 -8
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +82 -0
- 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/{chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js → packages/components/lib/UIKit/Tab/BaseTabList.vue.js} +1 -1
- 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/{chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js → packages/components/lib/UIKit/Tab/BaseTabView.vue.js} +17 -17
- 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 +247 -0
- package/package.json +1 -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/BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js +0 -19
- 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/SwiperCarousel.BG9WKjrJ.js +0 -757
- 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/{lib/UIKit → UIKit}/AccessibleSelect.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/Accordion/BaseAccordion.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/Accordion/BaseAccordionBtn.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/Accordion/BaseAccordionContent.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/Accordion/BaseAccordionItem.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseAlert.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseAutocomplete.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseBadge.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseBreadcrumb.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseButton.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseCard.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseComplexToggle.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseDropDown.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseFloatingLabel.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseIcon.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseInput.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseModal.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BasePagination.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BasePaper.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseSelect/SelectItem.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseSlider.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseSnackbar.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseTextarea.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseToggle.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseTooltip.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/BaseUploadFile.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/Checkbox/CheckboxBtn.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/Checkbox/CheckboxGroup.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/Radio/RadioButton.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/Radio/RadioGroup.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/ShimmerLoader/BaseShimmerLoader.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/ShimmerLoader/ShimmerMultiLine.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/Slider/SimpleSlider.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/StaticSpinner.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/Tab/BaseTab.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/Tab/BaseTabList.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/Tab/BaseTabPanel.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/Tab/BaseTabView.d.ts +0 -0
- /package/dist/{lib/UIKit → UIKit}/types.d.ts +0 -0
- /package/dist/assets/{free-mode.css → node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.css} +0 -0
- /package/dist/assets/{navigation.css → node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css} +0 -0
- /package/dist/assets/{pagination.css → node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.css} +0 -0
- /package/dist/assets/{BaseAlert.css → packages/components/lib/UIKit/BaseAlert.css} +0 -0
- /package/dist/assets/{BaseBadge.css → packages/components/lib/UIKit/BaseBadge.css} +0 -0
- /package/dist/assets/{BaseCard.css → packages/components/lib/UIKit/BaseCard.css} +0 -0
- /package/dist/assets/{BaseComplexToggle.css → packages/components/lib/UIKit/BaseComplexToggle.css} +0 -0
- /package/dist/assets/{BaseFloatingLabel.css → packages/components/lib/UIKit/BaseFloatingLabel.css} +0 -0
- /package/dist/assets/{BaseIcon.css → packages/components/lib/UIKit/BaseIcon.css} +0 -0
- /package/dist/assets/{BaseInput.css → packages/components/lib/UIKit/BaseInput.css} +0 -0
- /package/dist/assets/{BaseModal.css → packages/components/lib/UIKit/BaseModal.css} +0 -0
- /package/dist/assets/{BasePaper.css → packages/components/lib/UIKit/BasePaper.css} +0 -0
- /package/dist/assets/{BaseSlider.css → packages/components/lib/UIKit/BaseSlider.css} +0 -0
- /package/dist/assets/{BaseSnackbar.css → packages/components/lib/UIKit/BaseSnackbar.css} +0 -0
- /package/dist/assets/{BaseTextarea.css → packages/components/lib/UIKit/BaseTextarea.css} +0 -0
- /package/dist/assets/{BaseToggle.css → packages/components/lib/UIKit/BaseToggle.css} +0 -0
- /package/dist/assets/{BaseTooltip.css → packages/components/lib/UIKit/BaseTooltip.css} +0 -0
- /package/dist/assets/{CheckboxBtn.css → packages/components/lib/UIKit/Checkbox/CheckboxBtn.css} +0 -0
- /package/dist/assets/{BaseShimmerLoader.css → packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css} +0 -0
- /package/dist/assets/{SimpleSlider.css → packages/components/lib/UIKit/Slider/SimpleSlider.css} +0 -0
- /package/dist/assets/{StaticSpinner.css → packages/components/lib/UIKit/StaticSpinner.css} +0 -0
- /package/dist/assets/{index.css → packages/components/src/tailwind.css} +0 -0
- /package/dist/{lib/chart → chart}/DoughnutChart.d.ts +0 -0
- /package/dist/{lib/chart → chart}/LineChart.d.ts +0 -0
- /package/dist/{lib/chart → chart}/composables/useChartjsModules.d.ts +0 -0
- /package/dist/{lib/components → components}/IntersectionObserver/IntersectionObservable.d.ts +0 -0
- /package/dist/{lib/components → components}/IntersectionObserver/IntersectionObserver.d.ts +0 -0
- /package/dist/{lib/components → components}/carousel/SwiperCarousel.d.ts +0 -0
- /package/dist/{lib/components → components}/carousel/SwiperSlide.d.ts +0 -0
- /package/dist/{lib/composables → composables}/useFloatingLabel.d.ts +0 -0
- /package/dist/{lib/composables → composables}/useValidator.d.ts +0 -0
- /package/dist/{lib/index.d.ts → index.d.ts} +0 -0
- /package/dist/{lib/types.d.ts → types.d.ts} +0 -0
- /package/dist/{lib/utils.d.ts → utils.d.ts} +0 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { defineComponent as z, mergeModels as C, useModel as A, ref as m, watch as g, useAttrs as N, createElementBlock as r, openBlock as u, normalizeClass as v, unref as s, renderSlot as p, createElementVNode as h, createBlock as O, createCommentVNode as w, withKeys as j, withModifiers as y, Fragment as T, renderList as M } from "vue";
|
|
2
|
+
import D from "../../../../UIKit/BaseFloatingLabel.js";
|
|
3
|
+
import { useFloatingLabel as G } from "../../../../composables/useFloatingLabel.js";
|
|
4
|
+
const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], Q = { class: "uikit-invisible uikit-float-none uikit-mb-2 uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-transition-[max-width] uikit-duration-[50ms] uikit-ease-out" }, W = ["innerHTML"], X = ["innerHTML"], Y = ["innerHTML"], Z = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "under-label uikit-absolute uikit-text-12"
|
|
7
|
+
}, ie = /* @__PURE__ */ z({
|
|
8
|
+
inheritAttrs: !1,
|
|
9
|
+
__name: "BaseInput",
|
|
10
|
+
props: /* @__PURE__ */ C({
|
|
11
|
+
inputClass: {},
|
|
12
|
+
labelText: { default: "" },
|
|
13
|
+
feedback: {},
|
|
14
|
+
isValid: { default: null },
|
|
15
|
+
keepFloatingLabel: { type: Boolean, default: !1 },
|
|
16
|
+
formatter: { default: null },
|
|
17
|
+
labelClasses: {},
|
|
18
|
+
fieldsetClasses: {},
|
|
19
|
+
labelTextClasses: {},
|
|
20
|
+
withLeftIcon: { type: Boolean, default: () => {
|
|
21
|
+
} },
|
|
22
|
+
withRightIcon: { type: Boolean, default: () => {
|
|
23
|
+
} },
|
|
24
|
+
dataCy: {}
|
|
25
|
+
}, {
|
|
26
|
+
modelValue: { default: "" },
|
|
27
|
+
modelModifiers: {}
|
|
28
|
+
}),
|
|
29
|
+
emits: /* @__PURE__ */ C(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
|
|
30
|
+
setup(l, { expose: B, emit: E }) {
|
|
31
|
+
const o = A(l, "modelValue"), a = m(""), k = E, {
|
|
32
|
+
labelState: d,
|
|
33
|
+
handleFocusIn: H,
|
|
34
|
+
handleFocusOut: $,
|
|
35
|
+
setInlineLabel: V,
|
|
36
|
+
setFloatingLabel: I
|
|
37
|
+
} = G(k), n = m("text"), f = m({}), b = m(null), R = () => {
|
|
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]));
|
|
39
|
+
}, L = (e, i) => {
|
|
40
|
+
if (!l.formatter || !l.formatter.formatFn)
|
|
41
|
+
return a.value = e, "";
|
|
42
|
+
const t = e.length ? l.formatter.formatFn(e) : e;
|
|
43
|
+
return i && (i.value = t), a.value = t, t;
|
|
44
|
+
}, F = (e, i = !0) => {
|
|
45
|
+
if (i && (!l.formatter || !l.formatter.unFormatFn))
|
|
46
|
+
return o.value = e, e;
|
|
47
|
+
if (!i || !l.formatter || !l.formatter.unFormatFn) return;
|
|
48
|
+
const t = l.formatter.unFormatFn(e);
|
|
49
|
+
return o.value = t ?? "", t;
|
|
50
|
+
}, P = ({ target: e }) => {
|
|
51
|
+
const i = e, t = F(i.value);
|
|
52
|
+
L(
|
|
53
|
+
`${t}`,
|
|
54
|
+
t === o.value ? i : void 0
|
|
55
|
+
);
|
|
56
|
+
}, q = () => {
|
|
57
|
+
o.value = "", V();
|
|
58
|
+
}, K = () => {
|
|
59
|
+
n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
|
|
60
|
+
};
|
|
61
|
+
g(
|
|
62
|
+
() => l.feedback,
|
|
63
|
+
() => {
|
|
64
|
+
R();
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
immediate: !0
|
|
68
|
+
}
|
|
69
|
+
), g(
|
|
70
|
+
o,
|
|
71
|
+
(e) => {
|
|
72
|
+
L(
|
|
73
|
+
`${e}`,
|
|
74
|
+
F(`${e}`, !1) === e ? b.value : void 0
|
|
75
|
+
), a.value != null && a.value.length > 0 && d.value !== "floating-label" ? I() : !a.value && document && document.activeElement !== b.value && V();
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
immediate: !0
|
|
79
|
+
}
|
|
80
|
+
), g(
|
|
81
|
+
() => l.keepFloatingLabel,
|
|
82
|
+
(e) => {
|
|
83
|
+
e ? I() : $(o.value);
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
const S = N();
|
|
87
|
+
return n.value = S.type || "text", B({
|
|
88
|
+
select: () => {
|
|
89
|
+
b.value?.select();
|
|
90
|
+
}
|
|
91
|
+
}), (e, i) => (u(), r("div", {
|
|
92
|
+
class: v(["input-wrapper uikit-relative uikit-inline-block uikit-w-full [&.has-right-icon.is-invalid_.text-input-icon]:uikit-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:uikit-mr-25px", [
|
|
93
|
+
e.$attrs.class,
|
|
94
|
+
{ "floating-label": e.labelText },
|
|
95
|
+
s(d) === "floating-label" ? "floating-state" : "inline-state",
|
|
96
|
+
{
|
|
97
|
+
"has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"has-left-icon": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
|
|
101
|
+
},
|
|
102
|
+
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid }
|
|
103
|
+
]])
|
|
104
|
+
}, [
|
|
105
|
+
p(e.$slots, "leftIcon", {}, void 0, !0),
|
|
106
|
+
p(e.$slots, "righticon", {
|
|
107
|
+
handleClean: q,
|
|
108
|
+
handleShowPasswd: K,
|
|
109
|
+
curType: n.value
|
|
110
|
+
}, void 0, !0),
|
|
111
|
+
h("input", {
|
|
112
|
+
id: e.$attrs.id,
|
|
113
|
+
ref_key: "baseInputEl",
|
|
114
|
+
ref: b,
|
|
115
|
+
"data-cy": e.dataCy,
|
|
116
|
+
name: e.$attrs.name,
|
|
117
|
+
class: v(["input-element uikit-peer uikit-relative uikit-ml-[1px] uikit-mt-[6px] uikit-box-border uikit-block uikit-h-[42px] uikit-w-[calc(100%-2px)] uikit-appearance-none uikit-truncate uikit-rounded-[11px] !uikit-border-none uikit-bg-white uikit-bg-no-repeat uikit-px-4 uikit-outline-0 focus:uikit-shadow-none focus:uikit-outline-none disabled:uikit-bg-w-cultured disabled:uikit-text-w-secondary", [
|
|
118
|
+
{
|
|
119
|
+
"is-invalid invalid-bg !uikit-pr-9": e.isValid === !1,
|
|
120
|
+
"is-valid valid-bg !uikit-pr-9": e.isValid
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"uikit-pr-[42px]": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"uikit-pl-[42px]": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
|
|
127
|
+
},
|
|
128
|
+
e.inputClass
|
|
129
|
+
]]),
|
|
130
|
+
autocomplete: e.$attrs.autocomplete === "on" ? "on" : "off",
|
|
131
|
+
disabled: e.$attrs.disabled,
|
|
132
|
+
"aria-labelledby": e.$attrs.id,
|
|
133
|
+
readonly: e.$attrs.readonly,
|
|
134
|
+
type: n.value,
|
|
135
|
+
pattern: e.$attrs.pattern,
|
|
136
|
+
min: e.$attrs.min,
|
|
137
|
+
max: e.$attrs.max,
|
|
138
|
+
maxlength: e.$attrs.maxlength,
|
|
139
|
+
inputmode: e.$attrs.inputmode,
|
|
140
|
+
placeholder: e.$attrs.placeholder,
|
|
141
|
+
value: a.value,
|
|
142
|
+
onClick: i[0] || (i[0] = (t) => k("click", t)),
|
|
143
|
+
onFocusin: i[1] || (i[1] = y(() => e.labelText && s(H)(), ["stop"])),
|
|
144
|
+
onFocusout: i[2] || (i[2] = y((t) => e.labelText && !e.keepFloatingLabel && s($)(a.value), ["stop"])),
|
|
145
|
+
onInput: y(P, ["stop"]),
|
|
146
|
+
onKeydown: [
|
|
147
|
+
i[3] || (i[3] = j(() => k("keydownEnterPressed"), ["enter"])),
|
|
148
|
+
i[4] || (i[4] = (t) => k("keydown", t))
|
|
149
|
+
],
|
|
150
|
+
onKeyup: i[5] || (i[5] = (t) => k("keyup", t))
|
|
151
|
+
}, null, 42, J),
|
|
152
|
+
h("fieldset", {
|
|
153
|
+
class: v(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 uikit-py-0 uikit-text-left uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus:uikit-border-2 peer-focus:uikit-border-w-primary peer-focus:[&.is-invalid]:uikit-border-w-danger", [
|
|
154
|
+
{
|
|
155
|
+
"is-invalid uikit-border-w-danger": e.isValid === !1,
|
|
156
|
+
"is-valid uikit-border-w-primary": e.isValid,
|
|
157
|
+
"uikit-border-w-secondary": e.isValid === null
|
|
158
|
+
},
|
|
159
|
+
{ "uikit-top-0": !e.labelText },
|
|
160
|
+
e.fieldsetClasses
|
|
161
|
+
]])
|
|
162
|
+
}, [
|
|
163
|
+
h("legend", Q, [
|
|
164
|
+
h("span", {
|
|
165
|
+
class: v(["visible-label uikit-opacity-0", [
|
|
166
|
+
{ "uikit-mx-5px": e.labelText },
|
|
167
|
+
{
|
|
168
|
+
"uikit-visible uikit-inline-block": s(d) === "floating-label"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"uikit-invisible uikit-hidden": s(d) === "inline-label"
|
|
172
|
+
}
|
|
173
|
+
]]),
|
|
174
|
+
innerHTML: e.labelText
|
|
175
|
+
}, null, 10, W)
|
|
176
|
+
])
|
|
177
|
+
], 2),
|
|
178
|
+
e.labelText ? (u(), O(D, {
|
|
179
|
+
key: 0,
|
|
180
|
+
for: e.$attrs.id,
|
|
181
|
+
"label-text": e.labelText,
|
|
182
|
+
"label-state": s(d),
|
|
183
|
+
"is-valid": e.isValid,
|
|
184
|
+
required: e.$attrs.required,
|
|
185
|
+
disabled: e.$attrs.disabled,
|
|
186
|
+
"label-classes": [
|
|
187
|
+
s(d) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
|
|
188
|
+
e.labelClasses
|
|
189
|
+
],
|
|
190
|
+
"label-text-classes": e.labelTextClasses
|
|
191
|
+
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : w("", !0),
|
|
192
|
+
p(e.$slots, "feedback", {}, () => [
|
|
193
|
+
e.isValid === !1 ? (u(!0), r(T, { key: 0 }, M(f.value.invalid, (t, c) => (u(), r("div", {
|
|
194
|
+
key: `${e.$attrs.id}_invalid_${c}`,
|
|
195
|
+
class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
|
|
196
|
+
innerHTML: t
|
|
197
|
+
}, null, 8, X))), 128)) : e.isValid === !0 ? (u(!0), r(T, { key: 1 }, M(f.value.valid, (t, c) => (u(), r("div", {
|
|
198
|
+
key: `${e.$attrs.id}_valid_${c}`,
|
|
199
|
+
class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
|
|
200
|
+
innerHTML: t
|
|
201
|
+
}, null, 8, Y))), 128)) : w("", !0)
|
|
202
|
+
], !0),
|
|
203
|
+
e.$slots["under-label"] ? (u(), r("div", Z, [
|
|
204
|
+
p(e.$slots, "under-label", {}, void 0, !0)
|
|
205
|
+
])) : w("", !0)
|
|
206
|
+
], 2));
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
export {
|
|
210
|
+
ie as default
|
|
211
|
+
};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { defineComponent as T, ref as
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} catch {
|
|
10
|
-
t();
|
|
11
|
-
}
|
|
12
|
-
}, c);
|
|
13
|
-
}), F = ["id", "data-cy"], P = ["innerHTML"], j = /* @__PURE__ */ T({
|
|
1
|
+
import { defineComponent as T, ref as n, useTemplateRef as z, onUnmounted as H, watch as I, createBlock as O, openBlock as k, Teleport as $, createElementVNode as s, normalizeClass as o, withModifiers as v, createElementBlock as y, createCommentVNode as h, renderSlot as d, createVNode as D, unref as K, nextTick as N } from "vue";
|
|
2
|
+
import "../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
3
|
+
import { isWindows as w } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js";
|
|
4
|
+
import { awaitableSetTimeout as S } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js";
|
|
5
|
+
import "../../../../_virtual/polyline.js";
|
|
6
|
+
import { CloseIcon as V } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
7
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
8
|
+
const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
14
9
|
__name: "BaseModal",
|
|
15
10
|
props: {
|
|
16
11
|
id: { default: "base-bt-modal" },
|
|
@@ -32,67 +27,67 @@ import '../assets/BaseModal.css';const g = () => navigator?.userAgent.includes("
|
|
|
32
27
|
titleClasses: {}
|
|
33
28
|
},
|
|
34
29
|
emits: ["closed", "opened", "dialogClick"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
30
|
+
setup(l, { emit: C }) {
|
|
31
|
+
const r = C, t = n(!1), m = n(null), a = z("modalDialog"), c = n(!1), u = n(!1), f = ({ key: e }) => {
|
|
37
32
|
e === "Escape" && i();
|
|
38
|
-
},
|
|
39
|
-
document?.body.addEventListener("keydown",
|
|
40
|
-
},
|
|
41
|
-
document?.body.removeEventListener("keydown",
|
|
33
|
+
}, g = () => {
|
|
34
|
+
document?.body.addEventListener("keydown", f);
|
|
35
|
+
}, p = () => {
|
|
36
|
+
document?.body.removeEventListener("keydown", f);
|
|
42
37
|
}, M = async () => {
|
|
43
38
|
t.value = !0, N(() => {
|
|
44
|
-
|
|
45
|
-
}),
|
|
39
|
+
g(), w() ? document?.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.add("uikit-no-scrolling");
|
|
40
|
+
}), r("opened"), l.autoClose !== void 0 && setTimeout(() => {
|
|
46
41
|
i();
|
|
47
|
-
},
|
|
42
|
+
}, l.autoClose);
|
|
48
43
|
}, B = (e) => {
|
|
49
|
-
|
|
44
|
+
a.value && a.value.contains(e.target) && (u.value = !0);
|
|
50
45
|
}, x = (e) => {
|
|
51
|
-
|
|
46
|
+
a.value && a.value.contains(e.target) && (u.value = !1);
|
|
52
47
|
}, L = async () => {
|
|
53
|
-
if (
|
|
54
|
-
if (
|
|
55
|
-
|
|
48
|
+
if (l.closeOnClickOut) {
|
|
49
|
+
if (u.value) {
|
|
50
|
+
u.value = !1;
|
|
56
51
|
return;
|
|
57
52
|
}
|
|
58
53
|
await i();
|
|
59
54
|
}
|
|
60
55
|
}, i = async () => {
|
|
61
|
-
t.value = !1,
|
|
62
|
-
|
|
56
|
+
t.value = !1, p(), document?.documentElement.classList.remove("uikit-no-scrolling"), navigator.userAgent.includes("Windows") ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling"), await S(() => {
|
|
57
|
+
m.value?.classList.add("uikit-hidden"), r("closed");
|
|
63
58
|
}, 250);
|
|
64
59
|
};
|
|
65
60
|
return H(() => {
|
|
66
|
-
|
|
67
|
-
}),
|
|
68
|
-
() =>
|
|
61
|
+
p(), document?.documentElement.classList.remove("uikit-no-scrolling"), w() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
|
|
62
|
+
}), I(
|
|
63
|
+
() => l.showModal,
|
|
69
64
|
async (e) => {
|
|
70
|
-
!e && !t.value ?
|
|
65
|
+
!e && !t.value ? c.value = !0 : c.value = !1, e && !t.value && await M(), !e && t.value && await i(), t.value = e;
|
|
71
66
|
},
|
|
72
67
|
{ immediate: !0 }
|
|
73
|
-
), (e,
|
|
74
|
-
|
|
68
|
+
), (e, b) => (k(), O($, { to: "body" }, [
|
|
69
|
+
s("div", {
|
|
75
70
|
ref_key: "backdropEl",
|
|
76
|
-
ref:
|
|
77
|
-
class:
|
|
71
|
+
ref: m,
|
|
72
|
+
class: o(["bbt-backdrop uikit-fixed uikit-left-0 uikit-top-0 uikit-h-full uikit-w-full", [
|
|
78
73
|
e.customBackdropClasses,
|
|
79
74
|
{
|
|
80
75
|
"uikit-animate-[backdrop-opacity_0.3s_ease-out_0s_backwards] uikit-bg-w-secondary/70": t.value
|
|
81
76
|
},
|
|
82
77
|
{ "uikit-bg-transparent": !t.value },
|
|
83
78
|
{ "sm:uikit-pt-[30px]": !e.centered },
|
|
84
|
-
{ hide:
|
|
79
|
+
{ hide: c.value }
|
|
85
80
|
]]),
|
|
86
81
|
style: { "z-index": "1062" },
|
|
87
82
|
onClick: L,
|
|
88
83
|
onMousedown: B,
|
|
89
84
|
onMouseup: x
|
|
90
85
|
}, [
|
|
91
|
-
|
|
86
|
+
s("dialog", {
|
|
92
87
|
id: e.id,
|
|
93
88
|
ref: "modalDialog",
|
|
94
89
|
"data-cy": e.dataCy,
|
|
95
|
-
class:
|
|
90
|
+
class: o(["uikit-modal-dialog transition-y uikit-mx-auto uikit-block uikit-w-full uikit-overflow-y-auto uikit-overflow-x-hidden uikit-rounded uikit-border-none uikit-bg-transparent uikit-bg-white uikit-p-0 uikit-shadow-lg uikit-no-scrollbar uikit-safe-bottom max-sm:uikit-fixed max-sm:uikit-bottom-0 max-sm:uikit-max-h-[95%] max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none sm:uikit-h-auto", [
|
|
96
91
|
e.customModalDialogClasses,
|
|
97
92
|
{ show: t.value },
|
|
98
93
|
{ "closed uikit-overflow-hidden": !t.value },
|
|
@@ -102,50 +97,50 @@ import '../assets/BaseModal.css';const g = () => navigator?.userAgent.includes("
|
|
|
102
97
|
`base-${e.size}`,
|
|
103
98
|
e.fullHeight ? "uikit-h-[95%]" : "uikit-h-auto"
|
|
104
99
|
]]),
|
|
105
|
-
onClick:
|
|
100
|
+
onClick: b[0] || (b[0] = v((E) => r("dialogClick", E), ["stop"]))
|
|
106
101
|
}, [
|
|
107
|
-
|
|
108
|
-
class:
|
|
102
|
+
s("div", {
|
|
103
|
+
class: o(["default-header uikit-sticky uikit-top-0 uikit-z-10 uikit-rounded-t uikit-border-0 uikit-bg-white uikit-px-4 uikit-pb-10px uikit-pt-20px sm:uikit-px-6", [e.customModalHeaderClasses]])
|
|
109
104
|
}, [
|
|
110
|
-
e.withCloseIcon ? (
|
|
105
|
+
e.withCloseIcon ? (k(), y("button", {
|
|
111
106
|
key: 0,
|
|
112
107
|
id: "close-icon-btn",
|
|
113
108
|
"data-cy": "bbt-default-close-icon-btn",
|
|
114
|
-
class:
|
|
109
|
+
class: o(["uikit-absolute uikit-right-15px uikit-top-15px uikit-z-10 uikit-bg-transparent", e.closeIconBtnClasses]),
|
|
115
110
|
type: "button",
|
|
116
111
|
"aria-label": "Close",
|
|
117
|
-
onClick:
|
|
112
|
+
onClick: v(i, ["prevent", "stop"])
|
|
118
113
|
}, [
|
|
119
|
-
|
|
114
|
+
D(K(V), {
|
|
120
115
|
class: "bbt-close-icon uikit-box-border uikit-p-5px",
|
|
121
116
|
width: 30,
|
|
122
117
|
height: 30
|
|
123
118
|
})
|
|
124
|
-
], 2)) :
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
class:
|
|
119
|
+
], 2)) : h("", !0),
|
|
120
|
+
d(e.$slots, "header", { closeModal: i }, () => [
|
|
121
|
+
s("span", {
|
|
122
|
+
class: o(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", e.titleClasses]),
|
|
128
123
|
innerHTML: e.headerTitle
|
|
129
|
-
}, null, 10,
|
|
124
|
+
}, null, 10, U)
|
|
130
125
|
])
|
|
131
126
|
], 2),
|
|
132
|
-
|
|
133
|
-
class:
|
|
127
|
+
s("div", {
|
|
128
|
+
class: o(["uikit-bbt-body uikit-flex-auto uikit-overflow-y-auto uikit-overflow-x-hidden uikit-px-4 uikit-pb-0 uikit-no-scrollbar sm:uikit-px-6 sm:uikit-pb-25px", [e.customModalBodyClasses]])
|
|
134
129
|
}, [
|
|
135
|
-
|
|
130
|
+
d(e.$slots, "body", { closeModal: i })
|
|
136
131
|
], 2),
|
|
137
|
-
e.$slots.footer ? (
|
|
132
|
+
e.$slots.footer ? (k(), y("div", {
|
|
138
133
|
key: 0,
|
|
139
|
-
class:
|
|
134
|
+
class: o(["uikit-bbt-footer uikit-sticky uikit-bottom-0 uikit-border-0 uikit-bg-white uikit-px-4 uikit-py-15px sm:uikit-px-6", e.customModalFooterClasses])
|
|
140
135
|
}, [
|
|
141
|
-
|
|
142
|
-
], 2)) :
|
|
143
|
-
|
|
136
|
+
d(e.$slots, "footer", { closeModal: i })
|
|
137
|
+
], 2)) : h("", !0),
|
|
138
|
+
d(e.$slots, "fixed-bottom")
|
|
144
139
|
], 10, F)
|
|
145
140
|
], 34)
|
|
146
141
|
]));
|
|
147
142
|
}
|
|
148
143
|
});
|
|
149
144
|
export {
|
|
150
|
-
|
|
145
|
+
J as default
|
|
151
146
|
};
|
|
@@ -1,40 +1,28 @@
|
|
|
1
|
-
import { defineComponent as j, mergeModels as P, useModel as
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function S(l, t) {
|
|
9
|
-
return !l && l !== 0 ? "" : l.toLocaleString(
|
|
10
|
-
"it-IT",
|
|
11
|
-
// usare una stringa tipo 'en-US' per sovrascrivere la lingua del browser
|
|
12
|
-
{
|
|
13
|
-
minimumFractionDigits: t,
|
|
14
|
-
maximumFractionDigits: t,
|
|
15
|
-
useGrouping: "always"
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
const $ = {
|
|
1
|
+
import { defineComponent as j, mergeModels as P, useModel as S, computed as s, createElementBlock as l, openBlock as r, createCommentVNode as o, createElementVNode as p, normalizeClass as h, createVNode as y, unref as v, toDisplayString as c, Fragment as m, renderList as x } from "vue";
|
|
2
|
+
import "../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
3
|
+
import { formatInteger as d } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js";
|
|
4
|
+
import "../../../../_virtual/polyline.js";
|
|
5
|
+
import { ArrowIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
6
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
7
|
+
const D = {
|
|
20
8
|
"aria-label": "Page navigation",
|
|
21
9
|
class: "uikit-overflow-auto"
|
|
22
|
-
},
|
|
10
|
+
}, $ = {
|
|
23
11
|
key: 0,
|
|
24
12
|
class: "uikit-text-14 uikit-m-0 uikit-flex uikit-list-none uikit-content-center uikit-gap-4 uikit-p-0 uikit-pl-0 uikit-font-semibold sm:uikit-gap-5"
|
|
25
|
-
},
|
|
13
|
+
}, B = ["data-cy"], O = {
|
|
26
14
|
key: 0,
|
|
27
15
|
class: "uikit-mx-10px uikit-select-none"
|
|
28
|
-
},
|
|
16
|
+
}, A = {
|
|
29
17
|
key: 1,
|
|
30
18
|
class: "font-weight-bold uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
31
|
-
},
|
|
19
|
+
}, F = ["onClick"], V = ["onClick"], E = {
|
|
32
20
|
key: 0,
|
|
33
21
|
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
34
|
-
},
|
|
22
|
+
}, z = ["data-cy"], q = {
|
|
35
23
|
key: 0,
|
|
36
24
|
class: "uikit-mx-10px uikit-select-none"
|
|
37
|
-
},
|
|
25
|
+
}, T = /* @__PURE__ */ j({
|
|
38
26
|
__name: "BasePagination",
|
|
39
27
|
props: /* @__PURE__ */ P({
|
|
40
28
|
count: { default: 0 },
|
|
@@ -52,113 +40,113 @@ const $ = {
|
|
|
52
40
|
pageNumberModifiers: {}
|
|
53
41
|
}),
|
|
54
42
|
emits: ["update:pageNumber"],
|
|
55
|
-
setup(
|
|
56
|
-
const
|
|
57
|
-
() => (
|
|
43
|
+
setup(a) {
|
|
44
|
+
const u = S(a, "pageNumber"), n = s(() => Math.ceil((a.count + a.additionalCount) / a.limit)), g = s(() => (u.value || 0) > a.siblings + 2), f = s(
|
|
45
|
+
() => (u.value || 0) < n.value - a.siblings - 1
|
|
58
46
|
), b = s(() => {
|
|
59
|
-
let e =
|
|
60
|
-
for (; e > 2 &&
|
|
61
|
-
e--,
|
|
62
|
-
return
|
|
47
|
+
let e = u.value || 0, t = 0;
|
|
48
|
+
for (; e > 2 && t < a.siblings; )
|
|
49
|
+
e--, t++;
|
|
50
|
+
return t;
|
|
63
51
|
}), w = s(() => {
|
|
64
|
-
let e =
|
|
65
|
-
for (; e <
|
|
66
|
-
e++,
|
|
67
|
-
return
|
|
52
|
+
let e = u.value || 0, t = 0;
|
|
53
|
+
for (; e < n.value - 1 && t < a.siblings; )
|
|
54
|
+
e++, t++;
|
|
55
|
+
return t;
|
|
68
56
|
}), N = s(() => {
|
|
69
57
|
const i = b.value + /* Filling with the remaining right siblings */
|
|
70
|
-
Math.abs(w.value -
|
|
58
|
+
Math.abs(w.value - a.siblings) + /* If there is no suspension points on the right, let's fill it */
|
|
71
59
|
new Number(!f.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
|
|
72
|
-
new Number(
|
|
73
|
-
let e = Math.max((
|
|
74
|
-
const
|
|
75
|
-
for (e; e < (
|
|
76
|
-
return
|
|
60
|
+
new Number(u.value === n.value).valueOf();
|
|
61
|
+
let e = Math.max((u.value || 0) - i, 2);
|
|
62
|
+
const t = [];
|
|
63
|
+
for (e; e < (u.value || 0); e++) t.push(e);
|
|
64
|
+
return t;
|
|
77
65
|
}), M = s(() => {
|
|
78
66
|
const i = w.value + /* Filling with the remaining left siblings */
|
|
79
|
-
Math.abs(b.value -
|
|
67
|
+
Math.abs(b.value - a.siblings) + /* If there is no suspension points on the left, let's fill it */
|
|
80
68
|
new Number(!g.value).valueOf() + /* If the pageNumber is the same of the firstPage, let's fill it */
|
|
81
|
-
new Number(
|
|
82
|
-
let e = Math.min(
|
|
83
|
-
const
|
|
84
|
-
for (e; e < Math.min((
|
|
85
|
-
|
|
86
|
-
return
|
|
69
|
+
new Number(u.value === 1).valueOf();
|
|
70
|
+
let e = Math.min(u.value || 0, n.value - 1);
|
|
71
|
+
const t = [];
|
|
72
|
+
for (e; e < Math.min((u.value || 0) + i, n.value - 1); e++)
|
|
73
|
+
t.push(e + 1);
|
|
74
|
+
return t;
|
|
87
75
|
}), k = (i) => {
|
|
88
76
|
let e = i;
|
|
89
|
-
i < 1 ? e = 1 : i >
|
|
77
|
+
i < 1 ? e = 1 : i > n.value && (e = n.value), u.value = e;
|
|
90
78
|
};
|
|
91
|
-
return (i, e) => (r(),
|
|
92
|
-
i.count > 0 ? (r(),
|
|
79
|
+
return (i, e) => (r(), l("nav", D, [
|
|
80
|
+
i.count > 0 ? (r(), l("ul", $, [
|
|
93
81
|
p("li", {
|
|
94
82
|
class: h(["arrow-button prev-page uikit-h-30x uikit-flex uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
95
|
-
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert":
|
|
96
|
-
"hover:uikit-text-white": i.small &&
|
|
83
|
+
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": u.value !== 1,
|
|
84
|
+
"hover:uikit-text-white": i.small && u.value !== 1,
|
|
97
85
|
"uikit-rounded-xs": i.small && i.prevLabel
|
|
98
86
|
}]),
|
|
99
87
|
"data-cy": i.prevDataCy,
|
|
100
|
-
onClick: e[0] || (e[0] = (
|
|
88
|
+
onClick: e[0] || (e[0] = (t) => k((u.value || 0) - 1))
|
|
101
89
|
}, [
|
|
102
90
|
y(v(C), {
|
|
103
91
|
width: 20,
|
|
104
92
|
height: 11,
|
|
105
|
-
"stroke-color":
|
|
93
|
+
"stroke-color": u.value === 1 ? "#8996A9" : i.arrowColor,
|
|
106
94
|
class: "uikit-inline-block uikit-rotate-90"
|
|
107
95
|
}, null, 8, ["stroke-color"]),
|
|
108
|
-
i.small && i.prevLabel ? (r(),
|
|
109
|
-
], 10,
|
|
110
|
-
i.small ? o("", !0) : (r(),
|
|
111
|
-
(
|
|
96
|
+
i.small && i.prevLabel ? (r(), l("span", O, c(i.prevLabel), 1)) : o("", !0)
|
|
97
|
+
], 10, B),
|
|
98
|
+
i.small ? o("", !0) : (r(), l(m, { key: 0 }, [
|
|
99
|
+
(u.value || 0) > 1 ? (r(), l("li", {
|
|
112
100
|
key: 0,
|
|
113
101
|
class: "page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
114
|
-
onClick: e[1] || (e[1] = (
|
|
102
|
+
onClick: e[1] || (e[1] = (t) => k(0))
|
|
115
103
|
}, " 1 ")) : o("", !0),
|
|
116
|
-
g.value ? (r(),
|
|
117
|
-
(r(!0),
|
|
118
|
-
key:
|
|
104
|
+
g.value ? (r(), l("li", A, " ... ")) : o("", !0),
|
|
105
|
+
(r(!0), l(m, null, x(N.value, (t) => (r(), l("li", {
|
|
106
|
+
key: t,
|
|
119
107
|
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
120
|
-
onClick: (L) => k(
|
|
121
|
-
}, c(v(d)(
|
|
108
|
+
onClick: (L) => k(t)
|
|
109
|
+
}, c(v(d)(t)), 9, F))), 128))
|
|
122
110
|
], 64)),
|
|
123
111
|
p("li", {
|
|
124
112
|
class: h(["selected uikit-pointer-events-none uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
125
113
|
"uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !i.small
|
|
126
114
|
}])
|
|
127
|
-
}, c(
|
|
128
|
-
i.small ? o("", !0) : (r(),
|
|
129
|
-
(r(!0),
|
|
130
|
-
key:
|
|
115
|
+
}, c(u.value || 0), 3),
|
|
116
|
+
i.small ? o("", !0) : (r(), l(m, { key: 1 }, [
|
|
117
|
+
(r(!0), l(m, null, x(M.value, (t) => (r(), l("li", {
|
|
118
|
+
key: t,
|
|
131
119
|
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
132
|
-
onClick: (L) => k(
|
|
133
|
-
}, c(v(d)(
|
|
134
|
-
f.value ? (r(),
|
|
135
|
-
(
|
|
120
|
+
onClick: (L) => k(t)
|
|
121
|
+
}, c(v(d)(t)), 9, V))), 128)),
|
|
122
|
+
f.value ? (r(), l("li", E, " ... ")) : o("", !0),
|
|
123
|
+
(u.value || 0) < n.value ? (r(), l("li", {
|
|
136
124
|
key: 1,
|
|
137
125
|
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
138
|
-
onClick: e[2] || (e[2] = (
|
|
139
|
-
}, c(v(d)(
|
|
126
|
+
onClick: e[2] || (e[2] = (t) => k(n.value))
|
|
127
|
+
}, c(v(d)(n.value)), 1)) : o("", !0)
|
|
140
128
|
], 64)),
|
|
141
129
|
p("li", {
|
|
142
130
|
class: h(["arrow-button next-page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
143
|
-
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (
|
|
144
|
-
"hover:uikit-text-white": i.small && (
|
|
131
|
+
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (u.value || 0) < n.value,
|
|
132
|
+
"hover:uikit-text-white": i.small && (u.value || 0) < n.value,
|
|
145
133
|
"uikit-rounded-xs": i.small && i.nextLabel
|
|
146
134
|
}]),
|
|
147
135
|
"data-cy": i.nextDataCy,
|
|
148
|
-
onClick: e[3] || (e[3] = (
|
|
136
|
+
onClick: e[3] || (e[3] = (t) => k((u.value || 0) + 1))
|
|
149
137
|
}, [
|
|
150
|
-
i.small && i.nextLabel ? (r(),
|
|
138
|
+
i.small && i.nextLabel ? (r(), l("span", q, c(i.nextLabel), 1)) : o("", !0),
|
|
151
139
|
y(v(C), {
|
|
152
|
-
"stroke-color": (
|
|
140
|
+
"stroke-color": (u.value || 0) === n.value ? "#8996A9" : i.arrowColor,
|
|
153
141
|
width: 20,
|
|
154
142
|
height: 11,
|
|
155
143
|
class: "uikit-inline-block -uikit-rotate-90"
|
|
156
144
|
}, null, 8, ["stroke-color"])
|
|
157
|
-
], 10,
|
|
145
|
+
], 10, z)
|
|
158
146
|
])) : o("", !0)
|
|
159
147
|
]));
|
|
160
148
|
}
|
|
161
149
|
});
|
|
162
150
|
export {
|
|
163
|
-
|
|
151
|
+
T as default
|
|
164
152
|
};
|