@wikicasa-dev/components 2.1.2-alpha.3 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UIKit/AccessibleSelect.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -1
- package/dist/UIKit/BaseAlert.js +2 -3
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.js +2 -3
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +36 -5
- package/dist/UIKit/BaseComplexToggle.js +105 -5
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +39 -5
- package/dist/UIKit/BaseIcon.js +25 -4
- package/dist/UIKit/BaseInput.js +210 -5
- package/dist/UIKit/BaseModal.js +2 -3
- 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 +206 -5
- package/dist/UIKit/BaseSnackbar.js +80 -5
- package/dist/UIKit/BaseTextarea.js +126 -5
- package/dist/UIKit/BaseToggle.js +41 -5
- package/dist/UIKit/BaseTooltip.js +40 -5
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +74 -5
- 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 +20 -5
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +81 -5
- package/dist/UIKit/StaticSpinner.js +26 -5
- 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/assets/SwiperCarousel.css +1 -0
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js +246 -0
- package/dist/{node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js → chunks/ArrowIcon.Bq6Xr3uH.js} +3 -3
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js +32 -0
- package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js → chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js} +8 -8
- package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js → chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js} +1 -1
- package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js → chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js} +21 -21
- package/dist/{packages/components/lib/UIKit/BaseAlert.vue.js → chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js} +2 -2
- package/dist/{packages/components/lib/UIKit/BaseAutocomplete.vue.js → chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ol7Hmb-E.js} +74 -64
- package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js +19 -0
- package/dist/{packages/components/lib/UIKit/BaseBreadcrumb.vue.js → chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js} +5 -5
- package/dist/{packages/components/lib/UIKit/BaseButton.vue.js → chunks/BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js} +6 -6
- package/dist/{packages/components/lib/UIKit/BaseDropDown.vue.js → chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js} +25 -25
- package/dist/{packages/components/lib/UIKit/BaseModal.vue.js → chunks/BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js} +61 -56
- package/dist/{packages/components/lib/UIKit/BasePagination.vue.js → chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js} +83 -71
- package/dist/{packages/components/lib/UIKit/Tab/BaseTab.vue.js → chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js} +3 -3
- package/dist/{packages/components/lib/UIKit/Tab/BaseTabList.vue.js → chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js} +1 -1
- package/dist/{packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js → chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js} +1 -1
- package/dist/{packages/components/lib/UIKit/Tab/BaseTabView.vue.js → chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js} +17 -17
- package/dist/{packages/components/lib/UIKit/BaseUploadFile.vue.js → chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.CdwKhQoc.js} +2 -2
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.C9gKO-hI.js +111 -0
- package/dist/{node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js → chunks/CloseIcon.BZ4U3aiI.js} +11 -11
- package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.M0NEigw0.js +27 -0
- package/dist/{packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js → chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js} +5 -5
- package/dist/{packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js → chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js} +4 -4
- package/dist/{packages/components/lib/chart/LineChart.vue.js → chunks/LineChart.vue_vue_type_script_setup_true_lang.ByrHxeZr.js} +2 -2
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
- package/dist/{packages/components/lib/UIKit/Radio/RadioButton.vue.js → chunks/RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js} +9 -9
- package/dist/{packages/components/lib/UIKit/Radio/RadioGroup.vue.js → chunks/RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js} +6 -6
- package/dist/{packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js → chunks/SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js} +1 -1
- package/dist/{packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js → chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.BoEMYLem.js} +8 -8
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +9 -0
- package/dist/chunks/polyline.tNTK3v2u.js +129 -0
- package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +41 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.js +1593 -6
- package/dist/components/carousel/SwiperSlide.js +1 -1
- package/dist/index.js +85 -89
- package/package.json +1 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/_virtual/polyline.js +0 -2
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css +0 -1
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel.css +0 -1
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel2.css +0 -1
- 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 +0 -9
- 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 +0 -2
- 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 +0 -40
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -4
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -4
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -15
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -12
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +0 -18
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -10
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -4
- 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 +0 -41
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/decode.js +0 -22
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/encode.js +0 -34
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/polyline.js +0 -12
- package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js +0 -71
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js +0 -129
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js +0 -101
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js +0 -125
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js +0 -67
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js +0 -127
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js +0 -227
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.js +0 -121
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js +0 -310
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/classes-to-selector.js +0 -6
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/create-element-if-not-defined.js +0 -12
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/ssr-window.esm.js +0 -135
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/utils.js +0 -85
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/controller.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/navigation.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/pagination.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +0 -5
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +0 -213
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +0 -33
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +0 -37
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +0 -106
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +0 -40
- package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +0 -27
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +0 -211
- package/dist/packages/components/lib/UIKit/BasePaper.vue.js +0 -7
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +0 -207
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +0 -81
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +0 -127
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +0 -42
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +0 -41
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +0 -75
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +0 -114
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +0 -21
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +0 -82
- package/dist/packages/components/lib/UIKit/StaticSpinner.vue.js +0 -27
- package/dist/packages/components/lib/chart/DoughnutChart.vue.js +0 -27
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +0 -242
- /package/dist/assets/{packages/components/lib/UIKit/BaseAlert.css → BaseAlert.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseBadge.css → BaseBadge.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseCard.css → BaseCard.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseComplexToggle.css → BaseComplexToggle.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseFloatingLabel.css → BaseFloatingLabel.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseIcon.css → BaseIcon.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseInput.css → BaseInput.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseModal.css → BaseModal.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BasePaper.css → BasePaper.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css → BaseShimmerLoader.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseSlider.css → BaseSlider.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseSnackbar.css → BaseSnackbar.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseTextarea.css → BaseTextarea.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseToggle.css → BaseToggle.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/BaseTooltip.css → BaseTooltip.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/Checkbox/CheckboxBtn.css → CheckboxBtn.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/Slider/SimpleSlider.css → SimpleSlider.css} +0 -0
- /package/dist/assets/{packages/components/lib/UIKit/StaticSpinner.css → StaticSpinner.css} +0 -0
- /package/dist/assets/{packages/components/src/tailwind.css → index.css} +0 -0
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, mergeModels as f, useModel as $, ref as x, watch as L, createElementBlock as k, openBlock as b, normalizeClass as s, createElementVNode as o, createCommentVNode as p, unref as a, createVNode as M, withModifiers as d, nextTick as C } from "vue";
|
|
2
|
-
import F from "../../../../UIKit/BaseFloatingLabel.js";
|
|
3
|
-
import { useFloatingLabel as z } from "../../../../composables/useFloatingLabel.js";
|
|
4
|
-
const B = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "value"], E = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "uikit-visible uikit-float-none 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-duration-[50s] uikit-ease-out"
|
|
7
|
-
}, H = ["innerHTML"], q = ["innerHTML"], S = /* @__PURE__ */ h({
|
|
8
|
-
inheritAttrs: !1,
|
|
9
|
-
__name: "BaseTextarea",
|
|
10
|
-
props: /* @__PURE__ */ f({
|
|
11
|
-
labelText: { default: "" },
|
|
12
|
-
feedback: {},
|
|
13
|
-
isValid: { default: null },
|
|
14
|
-
resize: { type: Boolean, default: !1 },
|
|
15
|
-
labelClasses: {}
|
|
16
|
-
}, {
|
|
17
|
-
modelValue: { default: "" },
|
|
18
|
-
modelModifiers: {}
|
|
19
|
-
}),
|
|
20
|
-
emits: /* @__PURE__ */ f(["focusin", "focusout", "click", "keydown"], ["update:modelValue"]),
|
|
21
|
-
setup(v, { expose: m, emit: w }) {
|
|
22
|
-
const r = $(v, "modelValue"), n = w, {
|
|
23
|
-
labelState: l,
|
|
24
|
-
handleFocusIn: c,
|
|
25
|
-
handleFocusOut: g,
|
|
26
|
-
setFloatingLabel: y,
|
|
27
|
-
setInlineLabel: V
|
|
28
|
-
} = z(n), i = x(null);
|
|
29
|
-
L(
|
|
30
|
-
r,
|
|
31
|
-
(e) => {
|
|
32
|
-
`${e}`.length && l.value !== "floating-label" ? y() : !e?.length && l.value !== "inline-label" && document.activeElement !== i.value && V();
|
|
33
|
-
},
|
|
34
|
-
{ immediate: !0 }
|
|
35
|
-
);
|
|
36
|
-
const T = ({ target: e }) => {
|
|
37
|
-
r.value = e.value;
|
|
38
|
-
};
|
|
39
|
-
return m({
|
|
40
|
-
disableTextarea: () => {
|
|
41
|
-
i.value && (i.value.setAttribute("readonly", "readonly"), i.value.classList.add("disabled"));
|
|
42
|
-
},
|
|
43
|
-
clearTextareaElem: () => {
|
|
44
|
-
i.value && (i.value.value = "");
|
|
45
|
-
},
|
|
46
|
-
focusDisabledTextarea: () => {
|
|
47
|
-
i.value && (i.value.removeAttribute("readonly"), i.value.classList.remove("disabled"), C(() => {
|
|
48
|
-
i.value && i.value.focus();
|
|
49
|
-
}));
|
|
50
|
-
}
|
|
51
|
-
}), (e, t) => (b(), k("div", {
|
|
52
|
-
class: s(e.$attrs["wrapper-classes"])
|
|
53
|
-
}, [
|
|
54
|
-
o("div", {
|
|
55
|
-
class: s(["input-wrapper uikit-relative uikit-rounded-xs uikit-px-0", [
|
|
56
|
-
a(l) === "floating-label" ? "floating-state" : "inline-state"
|
|
57
|
-
]])
|
|
58
|
-
}, [
|
|
59
|
-
o("textarea", {
|
|
60
|
-
id: e.$attrs.id,
|
|
61
|
-
ref_key: "textarea",
|
|
62
|
-
ref: i,
|
|
63
|
-
"data-cy": e.$attrs["data-cy"],
|
|
64
|
-
class: s(["textarea-scrollbar uikit-peer/fieldset uikit-relative uikit-z-20 uikit-mb-10px uikit-mt-15px uikit-w-[calc(100%-1px)] uikit-overflow-y-auto uikit-whitespace-pre-wrap uikit-rounded-xs uikit-border-0 uikit-bg-transparent uikit-bg-no-repeat uikit-px-15px uikit-pb-[8px] uikit-outline-none", [
|
|
65
|
-
{ "is-invalid invalid-bg !uikit-pr-10": e.isValid === !1 },
|
|
66
|
-
{ "is-valid valid-bg !uikit-pr-10": e.isValid },
|
|
67
|
-
{ "uikit-resize-none": !e.resize },
|
|
68
|
-
e.$attrs.class
|
|
69
|
-
]]),
|
|
70
|
-
rows: e.$attrs.rows,
|
|
71
|
-
disabled: e.$attrs.disabled,
|
|
72
|
-
"aria-labelledby": e.$attrs.id,
|
|
73
|
-
readonly: e.$attrs.readonly,
|
|
74
|
-
onFocusin: t[0] || (t[0] = d((u) => a(c)(), ["stop"])),
|
|
75
|
-
onFocusout: t[1] || (t[1] = d((u) => a(g)(`${r.value}`.trim()), ["stop"])),
|
|
76
|
-
onInput: d(T, ["stop"]),
|
|
77
|
-
onKeydown: t[2] || (t[2] = d((u) => n("keydown", u), ["stop"])),
|
|
78
|
-
onClick: t[3] || (t[3] = (u) => n("click", u)),
|
|
79
|
-
value: r.value
|
|
80
|
-
}, null, 42, B),
|
|
81
|
-
o("fieldset", {
|
|
82
|
-
class: s(["uikit-pointer-events-none uikit-absolute -uikit-top-0 uikit-bottom-[3px] uikit-left-0 uikit-right-0 uikit-m-0 uikit-min-w-0 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-bg-white uikit-p-0 uikit-px-2 uikit-text-start uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus/fieldset:uikit-border-2 peer-focus/fieldset:uikit-border-w-primary peer-disabled/fieldset:uikit-bg-w-cultured peer-[&.disabled]/fieldset:uikit-bg-w-cultured peer-focus/fieldset:[&.is-invalid]:uikit-border-w-danger", [
|
|
83
|
-
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid },
|
|
84
|
-
{ "uikit-border-w-danger": e.isValid === !1 },
|
|
85
|
-
{ "uikit-border-w-primary": e.isValid },
|
|
86
|
-
{ "uikit-border-w-secondary": e.isValid === null }
|
|
87
|
-
]])
|
|
88
|
-
}, [
|
|
89
|
-
e.labelText ? (b(), k("legend", E, [
|
|
90
|
-
o("span", {
|
|
91
|
-
class: s(["uikit-px-5px uikit-opacity-0", [
|
|
92
|
-
{
|
|
93
|
-
"uikit-visible uikit-inline-block": a(l) === "floating-label"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"uikit-invisible uikit-hidden": a(l) === "inline-label"
|
|
97
|
-
}
|
|
98
|
-
]]),
|
|
99
|
-
innerHTML: e.labelText
|
|
100
|
-
}, null, 10, H)
|
|
101
|
-
])) : p("", !0)
|
|
102
|
-
], 2),
|
|
103
|
-
M(F, {
|
|
104
|
-
for: e.$attrs.id,
|
|
105
|
-
"label-text": e.labelText,
|
|
106
|
-
"label-state": a(l),
|
|
107
|
-
required: e.$attrs.required,
|
|
108
|
-
"is-valid": e.isValid,
|
|
109
|
-
"label-classes": [
|
|
110
|
-
a(l) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
|
|
111
|
-
e.labelClasses
|
|
112
|
-
]
|
|
113
|
-
}, null, 8, ["for", "label-text", "label-state", "required", "is-valid", "label-classes"])
|
|
114
|
-
], 2),
|
|
115
|
-
(e.isValid || e.isValid === !1) && e.feedback ? (b(), k("div", {
|
|
116
|
-
key: 0,
|
|
117
|
-
class: s(
|
|
118
|
-
e.isValid === !1 ? "uikit-mt-1 uikit-text-12 uikit-text-w-danger" : "uikit-mt-1 uikit-text-12 uikit-text-w-primary"
|
|
119
|
-
),
|
|
120
|
-
innerHTML: e.isValid === !1 ? e.feedback.invalid : e.feedback.valid
|
|
121
|
-
}, null, 10, q)) : p("", !0)
|
|
122
|
-
], 2));
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
export {
|
|
126
|
-
S as default
|
|
127
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, mergeModels as n, useModel as d, createElementBlock as k, openBlock as b, normalizeClass as c, renderSlot as l, createElementVNode as t, createCommentVNode as f, withModifiers as p } from "vue";
|
|
2
|
-
const m = { class: "switch uikit-relative uikit-inline-block uikit-min-w-[40px] uikit-text-sm" }, h = ["data-cy", "checked"], g = ["innerHTML"], y = /* @__PURE__ */ a({
|
|
3
|
-
inheritAttrs: !1,
|
|
4
|
-
__name: "BaseToggle",
|
|
5
|
-
props: /* @__PURE__ */ n({
|
|
6
|
-
withRightLabel: { type: Boolean, default: !0 },
|
|
7
|
-
label: { default: "" }
|
|
8
|
-
}, {
|
|
9
|
-
modelValue: { type: Boolean, default: !1 },
|
|
10
|
-
modelModifiers: {}
|
|
11
|
-
}),
|
|
12
|
-
emits: ["update:modelValue"],
|
|
13
|
-
setup(r) {
|
|
14
|
-
const o = d(r, "modelValue"), u = ({ target: e }) => {
|
|
15
|
-
o.value = e.checked;
|
|
16
|
-
};
|
|
17
|
-
return (e, i) => (b(), k("div", {
|
|
18
|
-
class: c(["switch-container uikit-inline-block uikit-items-center", e.$attrs.class])
|
|
19
|
-
}, [
|
|
20
|
-
l(e.$slots, "leftLabel", {}, void 0, !0),
|
|
21
|
-
t("label", m, [
|
|
22
|
-
t("input", {
|
|
23
|
-
"data-cy": e.$attrs["data-cy"] ?? "",
|
|
24
|
-
class: "uikit-peer/toggle uikit-h-0 uikit-w-0 uikit-opacity-0",
|
|
25
|
-
type: "checkbox",
|
|
26
|
-
checked: o.value,
|
|
27
|
-
onInput: i[0] || (i[0] = p((s) => u(s), ["stop"]))
|
|
28
|
-
}, null, 40, h),
|
|
29
|
-
i[1] || (i[1] = t("span", { class: "slider round uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-cursor-pointer uikit-bg-w-lavender uikit-duration-300 before:uikit-absolute before:uikit-bottom-0 before:uikit-left-0 before:uikit-top-0 before:uikit-box-border before:uikit-h-[22px] before:uikit-w-[22px] before:uikit-rounded-circle before:uikit-border before:uikit-border-solid before:uikit-border-w-secondary before:uikit-bg-white before:uikit-shadow-sm before:uikit-duration-300 before:uikit-content-[''] peer-checked/toggle:uikit-bg-w-primary" }, null, -1))
|
|
30
|
-
]),
|
|
31
|
-
e.withRightLabel ? l(e.$slots, "rightLabel", { key: 0 }, () => [
|
|
32
|
-
t("span", {
|
|
33
|
-
class: "uikit-ml-10px",
|
|
34
|
-
innerHTML: e.label
|
|
35
|
-
}, null, 8, g)
|
|
36
|
-
], !0) : f("", !0)
|
|
37
|
-
], 2));
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
export {
|
|
41
|
-
y as default
|
|
42
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, createElementBlock as e, openBlock as t, renderSlot as s, createElementVNode as n, normalizeClass as l, createCommentVNode as i } from "vue";
|
|
2
|
-
const r = { class: "base-tooltip" }, m = /* @__PURE__ */ a({
|
|
3
|
-
__name: "BaseTooltip",
|
|
4
|
-
props: {
|
|
5
|
-
theme: { default: () => ({
|
|
6
|
-
color: "blue",
|
|
7
|
-
size: "sm"
|
|
8
|
-
}) },
|
|
9
|
-
direction: { default: "top" },
|
|
10
|
-
customTooltipClass: { default: "" },
|
|
11
|
-
showTooltipContentManually: { type: Boolean, default: !0 },
|
|
12
|
-
tooltipContentClasses: { default: "" }
|
|
13
|
-
},
|
|
14
|
-
setup(p) {
|
|
15
|
-
return (o, u) => (t(), e("div", r, [
|
|
16
|
-
s(o.$slots, "trigger", {}, void 0, !0),
|
|
17
|
-
n("div", {
|
|
18
|
-
class: l(["bg-transparent", [
|
|
19
|
-
o.theme.size,
|
|
20
|
-
`${o.customTooltipClass ? o.customTooltipClass : "tooltip-content-wrapper"}`
|
|
21
|
-
]])
|
|
22
|
-
}, [
|
|
23
|
-
o.showTooltipContentManually ? (t(), e("div", {
|
|
24
|
-
key: 0,
|
|
25
|
-
class: l(["tooltip-content uikit-shadow-lg uikit-shadow-w-primary/10", [
|
|
26
|
-
"base-tooltip-arrow",
|
|
27
|
-
o.direction,
|
|
28
|
-
o.theme.color,
|
|
29
|
-
o.theme.size,
|
|
30
|
-
o.tooltipContentClasses
|
|
31
|
-
]])
|
|
32
|
-
}, [
|
|
33
|
-
s(o.$slots, "content", {}, void 0, !0)
|
|
34
|
-
], 2)) : i("", !0)
|
|
35
|
-
], 2)
|
|
36
|
-
]));
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
m as default
|
|
41
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, useId as f, computed as h, createElementBlock as r, openBlock as s, withModifiers as d, normalizeClass as l, createElementVNode as u, renderSlot as m, createCommentVNode as C, toDisplayString as g } from "vue";
|
|
2
|
-
const y = ["id"], V = ["id", "data-cy", "checked", "disabled"], v = ["for"], w = /* @__PURE__ */ b({
|
|
3
|
-
__name: "CheckboxBtn",
|
|
4
|
-
props: {
|
|
5
|
-
id: {},
|
|
6
|
-
dataCy: {},
|
|
7
|
-
disabled: { type: Boolean },
|
|
8
|
-
checked: { type: Boolean, default: () => {
|
|
9
|
-
} },
|
|
10
|
-
required: { type: Boolean },
|
|
11
|
-
inputClass: {},
|
|
12
|
-
inline: { type: Boolean, default: !1 },
|
|
13
|
-
label: { default: "" },
|
|
14
|
-
labelClass: {},
|
|
15
|
-
isValid: { default: null },
|
|
16
|
-
containerId: {},
|
|
17
|
-
handleLabelClick: { type: Boolean, default: !0 },
|
|
18
|
-
modelValue: { type: Boolean, default: !1 }
|
|
19
|
-
},
|
|
20
|
-
emits: ["click", "change", "update:modelValue"],
|
|
21
|
-
setup(i, { emit: c }) {
|
|
22
|
-
const a = c, n = f(), o = h(() => `${i.id ?? n}`), k = () => {
|
|
23
|
-
const e = i.checked ?? i.modelValue;
|
|
24
|
-
a("change", {
|
|
25
|
-
id: i.id ?? n,
|
|
26
|
-
label: i.label,
|
|
27
|
-
checked: !e
|
|
28
|
-
}), a("update:modelValue", !e);
|
|
29
|
-
}, p = () => {
|
|
30
|
-
k(), i.handleLabelClick && a("click");
|
|
31
|
-
};
|
|
32
|
-
return (e, t) => (s(), r("div", {
|
|
33
|
-
id: e.containerId,
|
|
34
|
-
class: l(["uikit-group uikit-relative uikit-items-center uikit-pl-30px hover:uikit-cursor-pointer", [
|
|
35
|
-
{ "uikit-inline-flex": e.inline },
|
|
36
|
-
{ "uikit-flex": !e.inline },
|
|
37
|
-
e.$attrs["wrapper-classes"]
|
|
38
|
-
]]),
|
|
39
|
-
onClick: d(p, ["stop"])
|
|
40
|
-
}, [
|
|
41
|
-
u("input", {
|
|
42
|
-
id: o.value,
|
|
43
|
-
ref: "checkbox",
|
|
44
|
-
"data-cy": e.dataCy,
|
|
45
|
-
class: l(["uikit-pointer-events-none uikit-absolute uikit-left-0 uikit-size-4 uikit-appearance-none uikit-rounded-3xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white checked:uikit-bg-center checked:uikit-bg-no-repeat group-hover:uikit-cursor-pointer", [
|
|
46
|
-
{ "!uikit-border-w-danger": e.isValid === !1 },
|
|
47
|
-
e.inputClass,
|
|
48
|
-
e.isValid === !1 ? "checked-bg-invalid" : "checked-bg"
|
|
49
|
-
]]),
|
|
50
|
-
type: "checkbox",
|
|
51
|
-
checked: e.checked ?? e.modelValue,
|
|
52
|
-
disabled: e.disabled,
|
|
53
|
-
onChange: t[0] || (t[0] = d(() => {
|
|
54
|
-
}, ["prevent", "stop"])),
|
|
55
|
-
onClick: t[1] || (t[1] = d(() => {
|
|
56
|
-
}, ["prevent", "stop"]))
|
|
57
|
-
}, null, 42, V),
|
|
58
|
-
m(e.$slots, "label", {}, () => [
|
|
59
|
-
u("label", {
|
|
60
|
-
class: l(["uikit-text-sm group-hover:uikit-cursor-pointer", [e.labelClass, { "uikit-text-w-danger": e.isValid === !1 }]]),
|
|
61
|
-
for: o.value
|
|
62
|
-
}, g(e.label), 11, v),
|
|
63
|
-
e.required ? (s(), r("span", {
|
|
64
|
-
key: 0,
|
|
65
|
-
class: l(["required after:uikit-content-['*']", [
|
|
66
|
-
e.isValid !== !1 ? "after:uikit-text-w-primary" : "after:uikit-text-w-danger"
|
|
67
|
-
]])
|
|
68
|
-
}, null, 2)) : C("", !0)
|
|
69
|
-
], !0)
|
|
70
|
-
], 10, y));
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
export {
|
|
74
|
-
w as default
|
|
75
|
-
};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, ref as v, computed as h, watch as x, renderSlot as m, createElementVNode as D, normalizeClass as E, createElementBlock as $, createCommentVNode as B, openBlock as b, Fragment as A, renderList as I, createBlock as R, unref as K } from "vue";
|
|
2
|
-
import { isArrNullOrEmpty as V } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js";
|
|
3
|
-
import "../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
4
|
-
import { stringToHyphened as L } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js";
|
|
5
|
-
import "../../../../../_virtual/polyline.js";
|
|
6
|
-
import G from "../../../../../UIKit/Checkbox/CheckboxBtn.js";
|
|
7
|
-
const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
|
|
8
|
-
inheritAttrs: !1,
|
|
9
|
-
__name: "CheckboxGroup",
|
|
10
|
-
props: {
|
|
11
|
-
checkboxData: { default() {
|
|
12
|
-
return [];
|
|
13
|
-
} },
|
|
14
|
-
formCheckInline: { type: Boolean, default: !1 },
|
|
15
|
-
reset: { type: Boolean, default: !1 },
|
|
16
|
-
checkboxContainerClasses: { default: "" },
|
|
17
|
-
autoCheckResetAll: { type: Boolean, default: !1 },
|
|
18
|
-
autoCheckResetEmpty: { type: Boolean, default: !1 },
|
|
19
|
-
manualToggleResetButton: { type: Boolean, default: !1 },
|
|
20
|
-
getKey: { default() {
|
|
21
|
-
return (r) => typeof r == "string" || typeof r == "number" ? `${r}` : `${r.id}`;
|
|
22
|
-
} },
|
|
23
|
-
groupId: { default: "" },
|
|
24
|
-
dataCy: { default: "" }
|
|
25
|
-
},
|
|
26
|
-
emits: ["resetted", "update:modelValue", "checkedGroup"],
|
|
27
|
-
setup(r, { emit: g }) {
|
|
28
|
-
const o = r, n = g, c = v(/* @__PURE__ */ new Map()), s = h(() => {
|
|
29
|
-
for (const e of o.checkboxData)
|
|
30
|
-
if (e.reset) return e;
|
|
31
|
-
return null;
|
|
32
|
-
}), C = h(() => o.checkboxData.length), f = h(() => {
|
|
33
|
-
let e = 0;
|
|
34
|
-
return c.value.forEach((t) => {
|
|
35
|
-
t.checked && e++;
|
|
36
|
-
}), e;
|
|
37
|
-
});
|
|
38
|
-
(() => {
|
|
39
|
-
const e = [];
|
|
40
|
-
for (const t of o.checkboxData)
|
|
41
|
-
t.checked = !!t.checked, c.value.set(
|
|
42
|
-
`${t.id}`,
|
|
43
|
-
t
|
|
44
|
-
), t.checked && e.push(t);
|
|
45
|
-
n("update:modelValue", e);
|
|
46
|
-
})();
|
|
47
|
-
const u = (e, t) => {
|
|
48
|
-
const a = c.value.get(e);
|
|
49
|
-
if (a) {
|
|
50
|
-
if (t) {
|
|
51
|
-
c.value.set(e, { ...a, ...t });
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
c.value.set(e, { ...a, checked: !a.checked });
|
|
55
|
-
}
|
|
56
|
-
}, k = () => {
|
|
57
|
-
c.value.forEach((e) => {
|
|
58
|
-
e.checked = !1;
|
|
59
|
-
});
|
|
60
|
-
}, p = () => {
|
|
61
|
-
k(), n("update:modelValue", []), n("resetted");
|
|
62
|
-
}, d = (e) => c.value.get(o.getKey(e))?.checked ?? !1, i = (e) => {
|
|
63
|
-
if (V(o.checkboxData)) return;
|
|
64
|
-
const t = c.value.get(e.id);
|
|
65
|
-
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 === C.value - 1 && c.value.forEach((l) => {
|
|
66
|
-
l.checked = !!l.reset;
|
|
67
|
-
}), o.autoCheckResetEmpty && s.value && !f.value && (!o.manualToggleResetButton || !t?.reset) && u(o.getKey(s.value), { checked: !0 });
|
|
68
|
-
const a = [];
|
|
69
|
-
c.value.forEach((l) => {
|
|
70
|
-
l.checked && a.push(l);
|
|
71
|
-
}), n("update:modelValue", a), n("checkedGroup", o.groupId);
|
|
72
|
-
};
|
|
73
|
-
return x(
|
|
74
|
-
() => o.reset,
|
|
75
|
-
(e) => {
|
|
76
|
-
e && p();
|
|
77
|
-
}
|
|
78
|
-
), (e, t) => m(e.$slots, "default", {
|
|
79
|
-
isActive: d,
|
|
80
|
-
handleChange: i,
|
|
81
|
-
checkboxesData: e.checkboxData
|
|
82
|
-
}, () => [
|
|
83
|
-
D("div", {
|
|
84
|
-
id: e.groupId,
|
|
85
|
-
class: E(["checkbox-group-container", e.$attrs.class || ""]),
|
|
86
|
-
"data-cy": e.dataCy
|
|
87
|
-
}, [
|
|
88
|
-
m(e.$slots, "checkbox_elements", {
|
|
89
|
-
isActive: d,
|
|
90
|
-
handleChange: i,
|
|
91
|
-
checkboxesData: e.checkboxData,
|
|
92
|
-
reset: p
|
|
93
|
-
}, () => [
|
|
94
|
-
e.checkboxData ? (b(!0), $(A, { key: 0 }, I(e.checkboxData, (a, l) => (b(), R(G, {
|
|
95
|
-
id: e.getKey(a),
|
|
96
|
-
key: l,
|
|
97
|
-
"data-cy": a.dataCy ?? `checkbox_${K(L)(`${a.label}`)}`,
|
|
98
|
-
label: a.label,
|
|
99
|
-
inline: e.formCheckInline,
|
|
100
|
-
"model-value": d(a),
|
|
101
|
-
"container-class": [
|
|
102
|
-
e.formCheckInline ? "uikit-mr-10px" : "uikit-mb-10px",
|
|
103
|
-
e.checkboxContainerClasses
|
|
104
|
-
],
|
|
105
|
-
onChange: i
|
|
106
|
-
}, null, 8, ["id", "data-cy", "label", "inline", "model-value", "container-class"]))), 128)) : B("", !0)
|
|
107
|
-
])
|
|
108
|
-
], 10, N)
|
|
109
|
-
]);
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
export {
|
|
113
|
-
F as default
|
|
114
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, createElementBlock as s, openBlock as l, normalizeClass as t, createElementVNode as r, renderSlot as a } from "vue";
|
|
2
|
-
const m = /* @__PURE__ */ i({
|
|
3
|
-
inheritAttrs: !1,
|
|
4
|
-
__name: "BaseShimmerLoader",
|
|
5
|
-
props: {
|
|
6
|
-
shimmerClasses: { default: "" }
|
|
7
|
-
},
|
|
8
|
-
setup(o) {
|
|
9
|
-
return (e, u) => (l(), s("div", {
|
|
10
|
-
class: t(["uikit-relative uikit-overflow-hidden uikit-bg-w-lavender", e.$attrs.class])
|
|
11
|
-
}, [
|
|
12
|
-
r("div", {
|
|
13
|
-
class: t(["shimmer uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-h-full -uikit-translate-x-full", e.shimmerClasses])
|
|
14
|
-
}, null, 2),
|
|
15
|
-
a(e.$slots, "default", {}, void 0, !0)
|
|
16
|
-
], 2));
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
m as default
|
|
21
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { defineComponent as V, mergeModels as L, useCssVars as T, ref as m, useTemplateRef as y, useModel as E, watch as S, onMounted as C, createElementBlock as X, openBlock as $, createElementVNode as d, withModifiers as B } from "vue";
|
|
2
|
-
const D = ["aria-valuemin", "aria-valuemax", "aria-valuenow"], P = /* @__PURE__ */ V({
|
|
3
|
-
__name: "SimpleSlider",
|
|
4
|
-
props: /* @__PURE__ */ L({
|
|
5
|
-
min: { default: 0 },
|
|
6
|
-
max: { default: 100 },
|
|
7
|
-
step: { default: 1 },
|
|
8
|
-
dataCy: {},
|
|
9
|
-
logarithmic: { type: Boolean, default: !1 }
|
|
10
|
-
}, {
|
|
11
|
-
modelValue: { default: 0 },
|
|
12
|
-
modelModifiers: {}
|
|
13
|
-
}),
|
|
14
|
-
emits: ["update:modelValue"],
|
|
15
|
-
setup(t) {
|
|
16
|
-
T((i) => ({
|
|
17
|
-
"0f43c897": r.value,
|
|
18
|
-
ec9c737a: s.value
|
|
19
|
-
}));
|
|
20
|
-
const u = y("customSlider"), l = E(t, "modelValue"), o = m(!1), s = m("50%"), r = m("50%"), c = (i = 0) => {
|
|
21
|
-
const e = t.logarithmic ? b(i) : k(i), a = (e - t.min) / (t.max - t.min), f = t.logarithmic ? h(e) : a * 100;
|
|
22
|
-
l.value = Math.round(e), s.value = `${Math.round(f)}%`, r.value = t.logarithmic ? `${Math.round(h(e))}%` : `${a * 100}%`;
|
|
23
|
-
}, k = (i = 0) => {
|
|
24
|
-
const e = Math.round((i - t.min) / t.step) * t.step + t.min;
|
|
25
|
-
return Math.max(t.min, Math.min(t.max, e));
|
|
26
|
-
}, x = (i = 0) => {
|
|
27
|
-
const e = Math.log10(t.min), a = Math.log10(t.max);
|
|
28
|
-
return Math.pow(10, e + i / 100 * (a - e));
|
|
29
|
-
}, h = (i = 0) => {
|
|
30
|
-
const e = Math.log10(t.min), a = Math.log10(t.max);
|
|
31
|
-
return (Math.log10(i) - e) / (a - e) * 100;
|
|
32
|
-
}, b = (i = 0) => {
|
|
33
|
-
if (t.step === 1)
|
|
34
|
-
return Math.max(t.min, Math.min(t.max, i));
|
|
35
|
-
const e = Math.pow(
|
|
36
|
-
10,
|
|
37
|
-
Math.round(Math.log10(i) / Math.log10(t.step)) * Math.log10(t.step)
|
|
38
|
-
);
|
|
39
|
-
return Math.max(t.min, Math.min(t.max, e));
|
|
40
|
-
}, v = (i) => {
|
|
41
|
-
if (!o.value || !u.value) return;
|
|
42
|
-
const e = u.value.getBoundingClientRect(), a = u.value.offsetWidth;
|
|
43
|
-
let n = ("touches" in i ? i.touches[0].clientX : i.clientX) - e.left;
|
|
44
|
-
n = Math.max(0, Math.min(a, n));
|
|
45
|
-
const w = t.logarithmic ? x(n / a * 100) : n / a * (t.max - t.min) + t.min;
|
|
46
|
-
c(w);
|
|
47
|
-
}, M = () => {
|
|
48
|
-
o.value = !0;
|
|
49
|
-
}, g = () => {
|
|
50
|
-
o.value = !1;
|
|
51
|
-
};
|
|
52
|
-
return S(
|
|
53
|
-
l,
|
|
54
|
-
(i) => {
|
|
55
|
-
c(i);
|
|
56
|
-
},
|
|
57
|
-
{ immediate: !0 }
|
|
58
|
-
), C(() => {
|
|
59
|
-
document.addEventListener("mousemove", v), document.addEventListener("mouseup", g), document.addEventListener("touchmove", v, { passive: !0 }), document.addEventListener("touchend", g, { passive: !0 });
|
|
60
|
-
}), (i, e) => ($(), X("div", null, [
|
|
61
|
-
d("div", {
|
|
62
|
-
ref: "customSlider",
|
|
63
|
-
class: "uikit-relative uikit-my-20px uikit-h-1 uikit-rounded-2xs uikit-bg-w-secondary",
|
|
64
|
-
role: "slider",
|
|
65
|
-
"aria-valuemin": i.min,
|
|
66
|
-
"aria-valuemax": i.max,
|
|
67
|
-
"aria-valuenow": l.value,
|
|
68
|
-
tabindex: "0"
|
|
69
|
-
}, [
|
|
70
|
-
e[2] || (e[2] = d("div", { class: "slider-track uikit-absolute uikit-left-0 uikit-top-0 uikit-h-full uikit-rounded-2xs uikit-bg-w-primary" }, null, -1)),
|
|
71
|
-
d("div", {
|
|
72
|
-
class: "slider-thumb uikit-absolute -uikit-top-2 uikit-size-20px -uikit-translate-x-1/2 uikit-cursor-pointer uikit-rounded-full uikit-border-2 uikit-border-solid uikit-border-w-primary uikit-bg-white",
|
|
73
|
-
onMousedown: e[0] || (e[0] = (a) => M()),
|
|
74
|
-
onTouchstart: e[1] || (e[1] = B((a) => M(), ["prevent"]))
|
|
75
|
-
}, null, 32)
|
|
76
|
-
], 8, D)
|
|
77
|
-
]));
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
export {
|
|
81
|
-
P as default
|
|
82
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, createElementBlock as o, openBlock as s, createElementVNode as n } from "vue";
|
|
2
|
-
const r = {
|
|
3
|
-
viewBox: "0 0 128 128",
|
|
4
|
-
class: "icon-spin uikit-h-6 uikit-w-6"
|
|
5
|
-
}, i = ["stroke", "stroke-width"], k = /* @__PURE__ */ t({
|
|
6
|
-
__name: "StaticSpinner",
|
|
7
|
-
props: {
|
|
8
|
-
thickness: { default: 9 },
|
|
9
|
-
strokeColor: { default: "#fff" }
|
|
10
|
-
},
|
|
11
|
-
setup(c) {
|
|
12
|
-
return (e, l) => (s(), o("svg", r, [
|
|
13
|
-
n("circle", {
|
|
14
|
-
class: "path",
|
|
15
|
-
cx: "64",
|
|
16
|
-
cy: "64",
|
|
17
|
-
r: "42",
|
|
18
|
-
fill: "none",
|
|
19
|
-
stroke: e.strokeColor,
|
|
20
|
-
"stroke-width": e.thickness
|
|
21
|
-
}, null, 8, i)
|
|
22
|
-
]));
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
export {
|
|
26
|
-
k as default
|
|
27
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, onBeforeMount as i, createBlock as p, createCommentVNode as m, unref as t, openBlock as c } from "vue";
|
|
2
|
-
import { Doughnut as l } from "vue-chartjs";
|
|
3
|
-
import { Chart as d, DoughnutController as f, ArcElement as g } from "chart.js";
|
|
4
|
-
import { useChartJsModules as h } from "../../../../chart/composables/useChartjsModules.js";
|
|
5
|
-
const y = /* @__PURE__ */ u({
|
|
6
|
-
__name: "DoughnutChart",
|
|
7
|
-
props: {
|
|
8
|
-
options: {},
|
|
9
|
-
data: {}
|
|
10
|
-
},
|
|
11
|
-
setup(e) {
|
|
12
|
-
d.register(f, g);
|
|
13
|
-
const r = e, { registerPlugins: n, resolved: a, executeRegistration: s } = h(
|
|
14
|
-
r.options
|
|
15
|
-
);
|
|
16
|
-
return i(async () => {
|
|
17
|
-
await s(n);
|
|
18
|
-
}), (o, C) => t(a) ? (c(), p(t(l), {
|
|
19
|
-
key: 0,
|
|
20
|
-
options: o.options,
|
|
21
|
-
data: o.data
|
|
22
|
-
}, null, 8, ["options", "data"])) : m("", !0);
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
export {
|
|
26
|
-
y as default
|
|
27
|
-
};
|