@wikicasa-dev/components 2.0.5-0.alpha-6 → 2.0.5
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/AccessibleSelect.js +1 -1
- package/dist/BaseAccordion.js +1 -1
- package/dist/BaseAccordionBtn.js +1 -1
- package/dist/BaseAccordionContent.js +1 -1
- package/dist/BaseAccordionItem.js +1 -1
- package/dist/BaseAlert.js +1 -1
- package/dist/BaseAutocomplete.js +1 -1
- package/dist/BaseBadge.js +1 -1
- package/dist/BaseBreadcrumb.js +1 -1
- package/dist/BaseButton.js +1 -1
- package/dist/BaseCard.js +16 -16
- package/dist/BaseComplexToggle.js +4 -4
- package/dist/BaseDropDown.js +1 -1
- package/dist/BaseFloatingLabel.js +19 -21
- package/dist/BaseIcon.js +4 -4
- package/dist/BaseInput.js +100 -106
- package/dist/BaseModal.js +1 -1
- package/dist/BasePagination.js +1 -1
- package/dist/BasePaper.js +2 -2
- package/dist/BaseShimmerLoader.js +2 -2
- package/dist/BaseSlider.js +222 -173
- package/dist/BaseSnackbar.js +3 -3
- package/dist/BaseTabList.js +1 -1
- package/dist/BaseTabPanel.js +1 -1
- package/dist/BaseTabView.js +1 -1
- package/dist/BaseTextarea.js +15 -16
- package/dist/BaseToggle.js +4 -4
- package/dist/BaseTooltip.js +3 -3
- package/dist/BaseUploadFile.js +1 -1
- package/dist/CheckboxBtn.js +6 -10
- package/dist/CheckboxGroup.js +1 -1
- package/dist/DoughnutChart.js +1 -1
- package/dist/IntersectionObservable.js +1 -1
- package/dist/IntersectionObserver.js +1 -1
- package/dist/LineChart.js +1 -1
- package/dist/RadioButton.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/SelectItem.js +1 -1
- package/dist/ShimmerMultiLine.js +1 -1
- package/dist/StaticSpinner.js +2 -2
- package/dist/SwiperCarousel.js +1 -1
- package/dist/SwiperSlide.js +2 -2
- package/dist/UIKit/AccessibleSelect.vue.d.ts +103 -49
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +12 -9
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +17 -12
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +14 -10
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +33 -20
- package/dist/UIKit/BaseAlert.vue.d.ts +8 -8
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +198 -39
- package/dist/UIKit/BaseBadge.vue.d.ts +7 -7
- package/dist/UIKit/BaseBreadcrumb.vue.d.ts +10 -8
- package/dist/UIKit/BaseButton.vue.d.ts +30 -17
- package/dist/UIKit/BaseCard.vue.d.ts +23 -14
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +6 -7
- package/dist/UIKit/BaseDropDown.vue.d.ts +40 -39
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +13 -8
- package/dist/UIKit/BaseIcon.vue.d.ts +9 -3
- package/dist/UIKit/BaseInput.vue.d.ts +20 -20
- package/dist/UIKit/BaseModal.vue.d.ts +60 -35
- package/dist/UIKit/BasePagination.vue.d.ts +14 -7
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +12 -10
- package/dist/UIKit/BaseSlider.vue.d.ts +175 -20
- package/dist/UIKit/BaseSnackbar.vue.d.ts +14 -7
- package/dist/UIKit/BaseTextarea.vue.d.ts +10 -9
- package/dist/UIKit/BaseToggle.vue.d.ts +5 -6
- package/dist/UIKit/BaseTooltip.vue.d.ts +20 -13
- package/dist/UIKit/BaseUploadFile.vue.d.ts +19 -13
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +31 -18
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +43 -23
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +11 -7
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +7 -8
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +6 -6
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +8 -54
- package/dist/UIKit/StaticSpinner.vue.d.ts +5 -3
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +10 -8
- package/dist/UIKit/Tab/BaseTabList.vue.d.ts +7 -5
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +11 -9
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +8 -8
- package/dist/UIKit/types.d.ts +1 -4
- package/dist/assets/BaseAlert.css +1 -1
- package/dist/assets/BaseBadge.css +1 -1
- package/dist/assets/BaseCard.css +1 -1
- package/dist/assets/BaseFloatingLabel.css +1 -1
- package/dist/assets/BaseInput.css +1 -1
- package/dist/assets/BaseSlider.css +1 -1
- package/dist/assets/BaseTextarea.css +1 -1
- package/dist/assets/BaseTooltip.css +1 -1
- package/dist/assets/CheckboxBtn.css +1 -1
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/chart/DoughnutChart.vue.d.ts +5 -3
- package/dist/chart/LineChart.vue.d.ts +6 -16
- package/dist/chart/composables/useChartjsModules.d.ts +1 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.YIp2u7gd.js +231 -0
- package/dist/chunks/{ArrowIcon.Bq6Xr3uH.js → ArrowIcon.CCFMdsq6.js} +1 -1
- package/dist/chunks/{BaseAccordion.vue_vue_type_script_setup_true_lang.C34SZThb.js → BaseAccordion.vue_vue_type_script_setup_true_lang.R7qkuKlw.js} +2 -2
- package/dist/chunks/{BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js → BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DsDqk9iP.js} +4 -4
- package/dist/chunks/{BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js → BaseAccordionContent.vue_vue_type_script_setup_true_lang.C0aiiljz.js} +2 -2
- package/dist/chunks/{BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js → BaseAccordionItem.vue_vue_type_script_setup_true_lang.Caagpb9M.js} +8 -8
- package/dist/chunks/{BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js → BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js} +2 -2
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.C64T2OK4.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.m5rScY4N.js} +84 -89
- package/dist/chunks/{BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js → BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js} +2 -2
- package/dist/chunks/{BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js → BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BH2c3gOe.js} +18 -18
- package/dist/chunks/{BaseButton.vue_vue_type_script_setup_true_lang.ChUdDzP1.js → BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js} +4 -4
- package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.DoEvtblv.js → BaseDropDown.vue_vue_type_script_setup_true_lang.BscSQ5bW.js} +46 -59
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.CautEumd.js +142 -0
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.DxPb8OYe.js +163 -0
- package/dist/chunks/{BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js → BaseTabList.vue_vue_type_script_setup_true_lang.CohlLou1.js} +2 -2
- package/dist/chunks/{BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js → BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js} +2 -2
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.Ar2KNVYH.js +95 -0
- package/dist/chunks/{BaseUploadFile.vue_vue_type_script_setup_true_lang.Cgu0FMFv.js → BaseUploadFile.vue_vue_type_script_setup_true_lang.2elmVcZt.js} +1 -1
- package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.CAO5UUO3.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.JlHKkjHJ.js} +37 -37
- package/dist/chunks/{CloseIcon.BZ4U3aiI.js → CloseIcon.DIkr4soH.js} +1 -1
- package/dist/chunks/{DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js → DoughnutChart.vue_vue_type_script_setup_true_lang.C4QPaUsI.js} +3 -3
- package/dist/chunks/{IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js → IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js} +2 -2
- package/dist/chunks/{IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js → IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js} +2 -2
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CNkvmtfq.js +37 -0
- package/dist/chunks/ObjectUtils.BOUbloeg.js +10 -0
- package/dist/chunks/PharmacyIcon.56ql_DYl.js +19 -0
- package/dist/chunks/{RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js → RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js} +2 -2
- package/dist/chunks/{RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js → RadioGroup.vue_vue_type_script_setup_true_lang.BalzO73O.js} +6 -6
- package/dist/chunks/{SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js → SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js} +2 -2
- package/dist/chunks/{ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CF7CkxXk.js → ShimmerMultiLine.vue_vue_type_script_setup_true_lang.DuLXZx8X.js} +3 -3
- package/dist/chunks/SwiperCarousel.DWUl3bgn.js +718 -0
- package/dist/chunks/{index.D_1s8S8L.js → index.D6IWh9UY.js} +7 -9
- package/dist/chunks/{useBreakpoints.BXk8Xcw3.js → types-B0dZ7OiV.D29wNgoj.js} +832 -2812
- package/dist/chunks/useKeyboardController.CutKeclN.js +41 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +9 -10
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +2 -5
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +9 -9
- package/dist/components/carousel/SwiperSlide.vue.d.ts +2 -3
- package/dist/index.d.ts +1 -2
- package/dist/index.js +33 -35
- package/dist/useChartjsModules.js +1 -1
- package/package.json +28 -30
- package/dist/SimpleSlider.js +0 -83
- package/dist/UIKit/Slider/SimpleSlider.vue.d.ts +0 -19
- package/dist/assets/SimpleSlider.css +0 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.aBS46udY.js +0 -246
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.Cy2ThBHM.js +0 -151
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.D_X7MS6X.js +0 -164
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js +0 -105
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js +0 -42
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +0 -10
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +0 -11
- package/dist/chunks/SwiperCarousel.C8hJ7R2K.js +0 -749
- package/dist/chunks/polyline.DjpLdMaW.js +0 -5256
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as s,
|
|
2
|
-
import { a as m } from "./ArrowIcon.
|
|
3
|
-
import "./PharmacyIcon.
|
|
1
|
+
import { defineComponent as s, openBlock as l, createElementBlock as d, normalizeClass as e, renderSlot as i, createElementVNode as c, withModifiers as p, createVNode as u, unref as k } from "vue";
|
|
2
|
+
import { a as m } from "./ArrowIcon.CCFMdsq6.js";
|
|
3
|
+
import "./PharmacyIcon.56ql_DYl.js";
|
|
4
4
|
const f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "BaseAccordionBtn",
|
|
@@ -15,7 +15,7 @@ const f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s(
|
|
|
15
15
|
emits: ["click"],
|
|
16
16
|
setup(C, { emit: n }) {
|
|
17
17
|
const r = n;
|
|
18
|
-
return (o, t) => (
|
|
18
|
+
return (o, t) => (l(), d("div", {
|
|
19
19
|
id: `${o.id}`,
|
|
20
20
|
class: e(["uikit-flex uikit-items-center uikit-justify-around", [
|
|
21
21
|
o.$attrs["btn-wrapper-classes"],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
1
|
+
import { defineComponent as n, openBlock as a, createElementBlock as s, normalizeClass as o, renderSlot as e, createElementVNode as r } from "vue";
|
|
2
2
|
const t = ["id", "aria-labelledby"], p = /* @__PURE__ */ n({
|
|
3
3
|
__name: "BaseAccordionContent",
|
|
4
4
|
props: {
|
|
@@ -9,7 +9,7 @@ const t = ["id", "aria-labelledby"], p = /* @__PURE__ */ n({
|
|
|
9
9
|
accordionContentClasses: {}
|
|
10
10
|
},
|
|
11
11
|
setup(d) {
|
|
12
|
-
return (i, c) => (
|
|
12
|
+
return (i, c) => (a(), s("div", {
|
|
13
13
|
id: `accordion-text-${i.id}`,
|
|
14
14
|
role: "region",
|
|
15
15
|
"aria-labelledby": `accordion-title-${i.id}`,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as h, ref as $, inject as p, watch as l, unref as d,
|
|
2
|
-
import { _ as B } from "./BaseAccordionBtn.vue_vue_type_script_setup_true_lang.
|
|
3
|
-
import { _ as A } from "./BaseAccordionContent.vue_vue_type_script_setup_true_lang.
|
|
4
|
-
import { a as E } from "./ArrowIcon.
|
|
5
|
-
import "./PharmacyIcon.
|
|
1
|
+
import { defineComponent as h, ref as $, inject as p, watch as l, unref as d, openBlock as u, createElementBlock as v, normalizeClass as m, createElementVNode as f, withModifiers as y, createVNode as k, createBlock as g, withCtx as c, renderSlot as t, createCommentVNode as O } from "vue";
|
|
2
|
+
import { _ as B } from "./BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DsDqk9iP.js";
|
|
3
|
+
import { _ as A } from "./BaseAccordionContent.vue_vue_type_script_setup_true_lang.C0aiiljz.js";
|
|
4
|
+
import { a as E } from "./ArrowIcon.CCFMdsq6.js";
|
|
5
|
+
import "./PharmacyIcon.56ql_DYl.js";
|
|
6
6
|
const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M = ["itemprop", "innerHTML"], P = /* @__PURE__ */ h({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseAccordionItem",
|
|
@@ -72,7 +72,7 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
72
72
|
"data-cy": e.dataCy,
|
|
73
73
|
"aria-expanded": o.value,
|
|
74
74
|
"aria-controls": `accordion-text-${e.id}`,
|
|
75
|
-
onClick: s[0] || (s[0] =
|
|
75
|
+
onClick: s[0] || (s[0] = y((N) => {
|
|
76
76
|
n(), d(b)?.({ id: e.id, title: e.title, active: o.value }), a("click");
|
|
77
77
|
}, ["prevent", "stop"]))
|
|
78
78
|
}, [
|
|
@@ -90,7 +90,7 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
90
90
|
height: e.arrowWidth
|
|
91
91
|
}, null, 8, ["class", "arrow-classes", "width", "height"])
|
|
92
92
|
], 10, I)
|
|
93
|
-
])) : (e.$slots.custom_content || e.$slots.custom_btn) && !e.$slots.custom_accordion ? (u(),
|
|
93
|
+
])) : (e.$slots.custom_content || e.$slots.custom_btn) && !e.$slots.custom_accordion ? (u(), g(B, {
|
|
94
94
|
key: 1,
|
|
95
95
|
id: e.id,
|
|
96
96
|
"btn-wrapper-classes": e.btnWrapperClasses,
|
|
@@ -112,7 +112,7 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
|
|
|
112
112
|
})
|
|
113
113
|
]),
|
|
114
114
|
_: 3
|
|
115
|
-
}, 8, ["id", "btn-wrapper-classes", "btn-classes", "arrow-color", "arrow-classes", "on-container-click-expand", "accordion-open"])) :
|
|
115
|
+
}, 8, ["id", "btn-wrapper-classes", "btn-classes", "arrow-color", "arrow-classes", "on-container-click-expand", "accordion-open"])) : O("", !0),
|
|
116
116
|
t(e.$slots, "custom_accordion", {
|
|
117
117
|
id: e.id,
|
|
118
118
|
isOpen: o.value,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
1
|
+
import { defineComponent as t, openBlock as r, createElementBlock as s, normalizeClass as a, renderSlot as l } from "vue";
|
|
2
2
|
import '../assets/BaseAlert.css';const o = ["id"], p = /* @__PURE__ */ t({
|
|
3
3
|
__name: "BaseAlert",
|
|
4
4
|
props: {
|
|
5
5
|
alertClass: { default: "" }
|
|
6
6
|
},
|
|
7
7
|
setup(n) {
|
|
8
|
-
return (e, i) => (
|
|
8
|
+
return (e, i) => (r(), s("div", {
|
|
9
9
|
id: e.$attrs.id,
|
|
10
10
|
class: a(["uikit-alert", e.alertClass]),
|
|
11
11
|
role: "alert"
|
|
@@ -1,37 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { _ as
|
|
4
|
-
import "./
|
|
5
|
-
import { _ as
|
|
6
|
-
import { A as
|
|
7
|
-
function
|
|
8
|
-
return (...
|
|
9
|
-
|
|
1
|
+
import { defineComponent as L, mergeModels as S, useModel as H, ref as s, computed as k, onBeforeMount as z, watch as f, openBlock as y, createBlock as V, normalizeClass as A, withCtx as c, createVNode as K, renderSlot as B, createElementBlock as N, Fragment as U, renderList as F, unref as W, createElementVNode as j } from "vue";
|
|
2
|
+
import q from "../BaseInput.js";
|
|
3
|
+
import { _ as G } from "./BaseDropDown.vue_vue_type_script_setup_true_lang.BscSQ5bW.js";
|
|
4
|
+
import "./types-B0dZ7OiV.D29wNgoj.js";
|
|
5
|
+
import { _ as J } from "./SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js";
|
|
6
|
+
import { A as Q } from "./useKeyboardController.CutKeclN.js";
|
|
7
|
+
function R(r, v) {
|
|
8
|
+
return (...m) => new Promise((l, d) => {
|
|
9
|
+
r.id && clearTimeout(r.id), r.id = setTimeout(() => {
|
|
10
10
|
try {
|
|
11
|
-
const i =
|
|
12
|
-
|
|
11
|
+
const i = v(...m);
|
|
12
|
+
l(i);
|
|
13
13
|
} catch (i) {
|
|
14
|
-
|
|
14
|
+
d(i);
|
|
15
15
|
}
|
|
16
|
-
},
|
|
16
|
+
}, r.delay);
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const X = ["innerHTML"], oe = /* @__PURE__ */ L({
|
|
20
20
|
__name: "BaseAutocomplete",
|
|
21
|
-
props: /* @__PURE__ */
|
|
21
|
+
props: /* @__PURE__ */ S({
|
|
22
|
+
border: { type: Boolean, default: !0 },
|
|
22
23
|
isValid: { default: null },
|
|
23
24
|
theme: { default: "" },
|
|
24
25
|
label: { default: "" },
|
|
25
26
|
disableCb: { type: Boolean, default: !1 },
|
|
26
|
-
onInputChangeCb: {
|
|
27
|
+
onInputChangeCb: {},
|
|
27
28
|
onOptionSelectedCb: { default: null },
|
|
28
29
|
keepState: { default: null },
|
|
29
30
|
cleanupOnClose: { type: Boolean, default: !0 },
|
|
30
31
|
dropdownClasses: { default: "" },
|
|
31
|
-
closeDropdownOnBodyPressed: { type: Boolean, default: !0 }
|
|
32
|
-
inputClasses: {},
|
|
33
|
-
fieldsetClasses: {},
|
|
34
|
-
dataCy: { default: "" }
|
|
32
|
+
closeDropdownOnBodyPressed: { type: Boolean, default: !0 }
|
|
35
33
|
}, {
|
|
36
34
|
modelValue: {
|
|
37
35
|
default() {
|
|
@@ -40,21 +38,18 @@ const R = ["innerHTML"], le = /* @__PURE__ */ T({
|
|
|
40
38
|
},
|
|
41
39
|
modelModifiers: {}
|
|
42
40
|
}),
|
|
43
|
-
emits: /* @__PURE__ */
|
|
44
|
-
setup(
|
|
45
|
-
const d =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
), u = v, i = r(""), n = r([]), m = r(null), c = r(!1), o = r(!1), y = r(null), B = k(() => n.value.length);
|
|
49
|
-
F(() => {
|
|
50
|
-
m.value = Q({ delay: 300 }, t.onInputChangeCb);
|
|
41
|
+
emits: /* @__PURE__ */ S(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
|
|
42
|
+
setup(r, { expose: v, emit: m }) {
|
|
43
|
+
const l = r, d = H(r, "modelValue"), i = m, u = s(""), n = s([]), h = s(null), p = s(!1), o = s(!1), g = s(null), O = k(() => n.value.length);
|
|
44
|
+
z(() => {
|
|
45
|
+
h.value = R({ delay: 300 }, l.onInputChangeCb);
|
|
51
46
|
});
|
|
52
|
-
const { activeIdx:
|
|
53
|
-
optionsLength:
|
|
47
|
+
const { activeIdx: w, selectedIdx: C } = Q({
|
|
48
|
+
optionsLength: O,
|
|
54
49
|
isDropdownOpen: o,
|
|
55
50
|
disableSpaceHandler: !0
|
|
56
|
-
}),
|
|
57
|
-
switch (
|
|
51
|
+
}), M = k(() => {
|
|
52
|
+
switch (l.theme) {
|
|
58
53
|
case "bordered":
|
|
59
54
|
return "";
|
|
60
55
|
case "all-bordered":
|
|
@@ -65,7 +60,7 @@ const R = ["innerHTML"], le = /* @__PURE__ */ T({
|
|
|
65
60
|
return "";
|
|
66
61
|
}
|
|
67
62
|
}), I = k(() => {
|
|
68
|
-
switch (
|
|
63
|
+
switch (l.theme) {
|
|
69
64
|
case "bordered":
|
|
70
65
|
return "";
|
|
71
66
|
case "all-bordered":
|
|
@@ -75,9 +70,9 @@ const R = ["innerHTML"], le = /* @__PURE__ */ T({
|
|
|
75
70
|
default:
|
|
76
71
|
return "";
|
|
77
72
|
}
|
|
78
|
-
}),
|
|
73
|
+
}), P = k(() => {
|
|
79
74
|
const e = "uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mb-0 !uikit-mt-0 uikit-text-w-black !uikit-rounded-b-xl !uikit-rounded-t-none";
|
|
80
|
-
switch (
|
|
75
|
+
switch (l.theme) {
|
|
81
76
|
case "bordered":
|
|
82
77
|
return "before:uikit-content-[''] before:uikit-absolute before:uikit-w-1/2 before:uikit-border-b before:uikit-border-b-w-lavender before:[border-bottom-style:solid] before:uikit-right-1/4 uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mt-5px uikit-mb-0";
|
|
83
78
|
case "all-bordered":
|
|
@@ -87,43 +82,43 @@ const R = ["innerHTML"], le = /* @__PURE__ */ T({
|
|
|
87
82
|
default:
|
|
88
83
|
return "";
|
|
89
84
|
}
|
|
90
|
-
}),
|
|
91
|
-
if (
|
|
92
|
-
if (!e ||
|
|
93
|
-
n.value = [],
|
|
85
|
+
}), D = async (e) => {
|
|
86
|
+
if (u.value !== e && (i("changedValue", e), u.value = e, !!l.onInputChangeCb)) {
|
|
87
|
+
if (!e || p.value) {
|
|
88
|
+
n.value = [], p.value = !1, C.value = -1, w.value = -1, d.value && (d.value.label = ""), o.value = !1, await h.value(null);
|
|
94
89
|
return;
|
|
95
90
|
}
|
|
96
|
-
|
|
91
|
+
l.disableCb || (n.value = await h.value(e), o.value = !!n.value.length);
|
|
97
92
|
}
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
n.value.length &&
|
|
93
|
+
}, $ = (e, t) => {
|
|
94
|
+
l.onOptionSelectedCb && l.onOptionSelectedCb(e), l.cleanupOnClose && (n.value = []), p.value = !0, u.value = e.label, d.value = e, o.value = !1, C.value = t;
|
|
95
|
+
}, E = () => {
|
|
96
|
+
n.value.length && l.keepState !== "closed" && (o.value = !0);
|
|
102
97
|
};
|
|
103
98
|
return f(
|
|
104
99
|
d,
|
|
105
|
-
(e,
|
|
106
|
-
e ===
|
|
100
|
+
(e, t) => {
|
|
101
|
+
e === t || e?.label === u.value || (u.value = e?.label || "");
|
|
107
102
|
},
|
|
108
103
|
{ immediate: !0 }
|
|
109
|
-
), f(
|
|
104
|
+
), f(C, (e) => {
|
|
110
105
|
if (e === -1 || !n.value.length) return;
|
|
111
|
-
const
|
|
112
|
-
|
|
106
|
+
const t = n.value[e];
|
|
107
|
+
p.value && t.label === d.value?.label || $(t, e);
|
|
113
108
|
}), f(
|
|
114
|
-
() =>
|
|
109
|
+
() => l.keepState,
|
|
115
110
|
(e) => {
|
|
116
|
-
e === "closed" ? (o.value = !1,
|
|
111
|
+
e === "closed" ? (o.value = !1, l.cleanupOnClose && (n.value = [])) : e === "open" && n.value.length && (o.value = !0);
|
|
117
112
|
}
|
|
118
113
|
), f(o, (e) => {
|
|
119
|
-
|
|
120
|
-
}),
|
|
114
|
+
i("update:dropdownState", e);
|
|
115
|
+
}), v({
|
|
121
116
|
select: () => {
|
|
122
|
-
|
|
117
|
+
g.value?.select();
|
|
123
118
|
}
|
|
124
|
-
}), (e,
|
|
125
|
-
class:
|
|
126
|
-
"data-cy":
|
|
119
|
+
}), (e, t) => (y(), V(G, {
|
|
120
|
+
class: A(e.$attrs["root-classes"]),
|
|
121
|
+
"data-cy": `ac_${e.$attrs.id}`,
|
|
127
122
|
"dropdown-element": "ul",
|
|
128
123
|
"dropdown-classes": [
|
|
129
124
|
{ "bordered-dropdown": e.theme === "bordered" },
|
|
@@ -132,63 +127,63 @@ const R = ["innerHTML"], le = /* @__PURE__ */ T({
|
|
|
132
127
|
{
|
|
133
128
|
"uikit-mt-10px !uikit-border !uikit-border-w-secondary !uikit-rounded-xs": !e.theme
|
|
134
129
|
},
|
|
135
|
-
|
|
130
|
+
P.value,
|
|
136
131
|
"!uikit-max-h-[210px] uikit-z-30",
|
|
137
132
|
e.dropdownClasses
|
|
138
133
|
],
|
|
139
134
|
"open-dropdown": o.value,
|
|
140
|
-
"keep-state": !n.value.length ||
|
|
135
|
+
"keep-state": !n.value.length || l.keepState === "closed" ? "closed" : "opened",
|
|
136
|
+
"onUpdate:dropdownState": t[3] || (t[3] = (a) => o.value = a),
|
|
137
|
+
onClick: t[4] || (t[4] = (a) => {
|
|
138
|
+
i("click"), E();
|
|
139
|
+
}),
|
|
141
140
|
"close-when-clicked-outside": e.closeDropdownOnBodyPressed,
|
|
142
|
-
"activate-keyboard-controller": !1
|
|
143
|
-
"onUpdate:dropdownState": l[3] || (l[3] = (a) => o.value = a),
|
|
144
|
-
onClick: l[4] || (l[4] = (a) => {
|
|
145
|
-
u("click"), D();
|
|
146
|
-
})
|
|
141
|
+
"activate-keyboard-controller": !1
|
|
147
142
|
}, {
|
|
148
|
-
btn_slot:
|
|
149
|
-
|
|
150
|
-
id:
|
|
143
|
+
btn_slot: c(() => [
|
|
144
|
+
K(q, {
|
|
145
|
+
id: `ac_input_${e.$attrs.id}`,
|
|
151
146
|
ref_key: "baseInput",
|
|
152
|
-
ref:
|
|
153
|
-
"data-cy":
|
|
147
|
+
ref: g,
|
|
148
|
+
"data-cy": `ac_input_${e.$attrs.id}`,
|
|
154
149
|
"label-text": e.label,
|
|
155
|
-
"model-value":
|
|
150
|
+
"model-value": u.value,
|
|
156
151
|
"is-valid": e.isValid,
|
|
157
152
|
disabled: e.$attrs.disabled,
|
|
158
153
|
placeholder: e.$attrs.placeholder,
|
|
159
154
|
"with-left-icon": !!e.$slots.lefticon,
|
|
160
155
|
"with-right-icon": !!e.$slots.righticon,
|
|
161
156
|
"input-class": [
|
|
162
|
-
|
|
163
|
-
e
|
|
157
|
+
M.value,
|
|
158
|
+
e.$attrs["input-classes"],
|
|
164
159
|
"!uikit-ml-0 !uikit-w-full"
|
|
165
160
|
],
|
|
166
|
-
"fieldset-classes": [I.value, e
|
|
167
|
-
"onUpdate:modelValue":
|
|
168
|
-
onKeydown:
|
|
169
|
-
onKeydownEnterPressed:
|
|
161
|
+
"fieldset-classes": [I.value, e.$attrs["fieldset-classes"]],
|
|
162
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => D(a === void 0 ? "" : `${a}`)),
|
|
163
|
+
onKeydown: t[1] || (t[1] = (a) => i("keydown", a)),
|
|
164
|
+
onKeydownEnterPressed: t[2] || (t[2] = () => i("keydownEnterPressed"))
|
|
170
165
|
}, {
|
|
171
|
-
leftIcon:
|
|
172
|
-
|
|
166
|
+
leftIcon: c(() => [
|
|
167
|
+
B(e.$slots, "lefticon")
|
|
173
168
|
]),
|
|
174
|
-
righticon:
|
|
175
|
-
|
|
169
|
+
righticon: c(({ handleClean: a }) => [
|
|
170
|
+
B(e.$slots, "righticon", { handleClean: a })
|
|
176
171
|
]),
|
|
177
172
|
_: 3
|
|
178
173
|
}, 8, ["id", "data-cy", "label-text", "model-value", "is-valid", "disabled", "placeholder", "with-left-icon", "with-right-icon", "input-class", "fieldset-classes"])
|
|
179
174
|
]),
|
|
180
|
-
default:
|
|
181
|
-
(
|
|
175
|
+
default: c(() => [
|
|
176
|
+
(y(!0), N(U, null, F(n.value, (a, b) => (y(), V(J, {
|
|
182
177
|
key: b,
|
|
183
|
-
active:
|
|
178
|
+
active: W(w) === b,
|
|
184
179
|
class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
|
|
185
|
-
onClick: (
|
|
186
|
-
onMouseover: (
|
|
180
|
+
onClick: (T) => $(a, b),
|
|
181
|
+
onMouseover: (T) => w.value = b
|
|
187
182
|
}, {
|
|
188
|
-
default:
|
|
189
|
-
|
|
183
|
+
default: c(() => [
|
|
184
|
+
j("span", {
|
|
190
185
|
innerHTML: a.label
|
|
191
|
-
}, null, 8,
|
|
186
|
+
}, null, 8, X)
|
|
192
187
|
]),
|
|
193
188
|
_: 2
|
|
194
189
|
}, 1032, ["active", "onClick", "onMouseover"]))), 128))
|
|
@@ -198,5 +193,5 @@ const R = ["innerHTML"], le = /* @__PURE__ */ T({
|
|
|
198
193
|
}
|
|
199
194
|
});
|
|
200
195
|
export {
|
|
201
|
-
|
|
196
|
+
oe as _
|
|
202
197
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
1
|
+
import { defineComponent as e, openBlock as a, createElementBlock as t, normalizeClass as r, renderSlot as i } from "vue";
|
|
2
2
|
import '../assets/BaseBadge.css';const o = ["id"], p = /* @__PURE__ */ e({
|
|
3
3
|
inheritAttrs: !1,
|
|
4
4
|
__name: "BaseBadge",
|
|
@@ -6,7 +6,7 @@ import '../assets/BaseBadge.css';const o = ["id"], p = /* @__PURE__ */ e({
|
|
|
6
6
|
badgeClass: { default: "uikit-badge-w-primary-sm" }
|
|
7
7
|
},
|
|
8
8
|
setup(n) {
|
|
9
|
-
return (s, d) => (
|
|
9
|
+
return (s, d) => (a(), t("span", {
|
|
10
10
|
id: s.$attrs.id,
|
|
11
11
|
class: r(["uikit-badge uikit-shadow-sm", s.badgeClass, s.$attrs.class])
|
|
12
12
|
}, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as
|
|
3
|
-
import "./PharmacyIcon.
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as m, computed as d, openBlock as s, createElementBlock as i, createElementVNode as o, normalizeClass as a, Fragment as n, renderList as k, renderSlot as u, toDisplayString as p, createVNode as h, unref as f } from "vue";
|
|
2
|
+
import { a as b } from "./ArrowIcon.CCFMdsq6.js";
|
|
3
|
+
import "./PharmacyIcon.56ql_DYl.js";
|
|
4
|
+
const C = { "aria-label": "Breadcrumb" }, g = ["data-tooltip"], w = ["href"], _ = /* @__PURE__ */ m({
|
|
5
5
|
__name: "BaseBreadcrumb",
|
|
6
6
|
props: {
|
|
7
7
|
items: {},
|
|
@@ -9,38 +9,38 @@ const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], B = ["href"], $
|
|
|
9
9
|
listItemClasses: {}
|
|
10
10
|
},
|
|
11
11
|
setup(r) {
|
|
12
|
-
const
|
|
12
|
+
const c = d(() => {
|
|
13
13
|
let e = 0;
|
|
14
14
|
const l = [];
|
|
15
15
|
for (; e < r.items.length; )
|
|
16
16
|
l.push({ ...r.items[e], idx: e }), e < r.items.length - 1 && l.push({ arrowIcon: !0 }), e++;
|
|
17
17
|
return l;
|
|
18
18
|
});
|
|
19
|
-
return (e, l) => (
|
|
20
|
-
|
|
19
|
+
return (e, l) => (s(), i("nav", C, [
|
|
20
|
+
o("ol", {
|
|
21
21
|
class: a(["uikit-flex uikit-items-center uikit-gap-10px uikit-p-0", e.listClasses])
|
|
22
22
|
}, [
|
|
23
|
-
(
|
|
24
|
-
t?.label ? (
|
|
25
|
-
key:
|
|
23
|
+
(s(!0), i(n, null, k(c.value, (t) => (s(), i(n, null, [
|
|
24
|
+
t?.label ? (s(), i("li", {
|
|
25
|
+
key: 0,
|
|
26
26
|
class: a(["uikit-list-none", e.listItemClasses]),
|
|
27
27
|
"data-tooltip": t.dataTooltip
|
|
28
28
|
}, [
|
|
29
|
-
|
|
29
|
+
u(e.$slots, "item", {
|
|
30
30
|
item: t
|
|
31
31
|
}, () => [
|
|
32
|
-
|
|
32
|
+
o("a", {
|
|
33
33
|
class: a(["uikit-text-w-black uikit-no-underline", { "uikit-text-w-primary": t.active }]),
|
|
34
34
|
href: t.link
|
|
35
|
-
},
|
|
35
|
+
}, p(t.label), 11, w)
|
|
36
36
|
])
|
|
37
|
-
], 10,
|
|
38
|
-
key:
|
|
37
|
+
], 10, g)) : (s(), i("li", {
|
|
38
|
+
key: 1,
|
|
39
39
|
class: a(["uikit-list-none", e.listItemClasses]),
|
|
40
40
|
"aria-hidden": "true"
|
|
41
41
|
}, [
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
u(e.$slots, "separator", {}, () => [
|
|
43
|
+
h(f(b), {
|
|
44
44
|
class: "-uikit-rotate-90",
|
|
45
45
|
"stroke-color": "#222",
|
|
46
46
|
width: 10,
|
|
@@ -54,5 +54,5 @@ const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], B = ["href"], $
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
export {
|
|
57
|
-
|
|
57
|
+
_
|
|
58
58
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, ref as b, computed as s,
|
|
1
|
+
import { defineComponent as y, ref as b, computed as s, openBlock as f, createElementBlock as v, normalizeClass as B, normalizeStyle as C, withModifiers as l, renderSlot as u, createVNode as c } from "vue";
|
|
2
2
|
import M from "../StaticSpinner.js";
|
|
3
3
|
const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], S = /* @__PURE__ */ y({
|
|
4
4
|
__name: "BaseButton",
|
|
@@ -22,11 +22,11 @@ const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
22
22
|
}, k = () => {
|
|
23
23
|
n.value = !1;
|
|
24
24
|
};
|
|
25
|
-
return (e, t) => (
|
|
25
|
+
return (e, t) => (f(), v("button", {
|
|
26
26
|
id: e.$attrs.id,
|
|
27
27
|
"data-cy": e.dataCy,
|
|
28
28
|
type: e.type,
|
|
29
|
-
class:
|
|
29
|
+
class: B([
|
|
30
30
|
"uikit-btn",
|
|
31
31
|
{
|
|
32
32
|
"uikit-btn-empty": !e.withMinWidth,
|
|
@@ -37,7 +37,7 @@ const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
37
37
|
d.value,
|
|
38
38
|
m.value
|
|
39
39
|
]),
|
|
40
|
-
style:
|
|
40
|
+
style: C(e.$attrs.style),
|
|
41
41
|
"data-active": e.keepActive,
|
|
42
42
|
disabled: e.isLoading || e.disabled,
|
|
43
43
|
"aria-label": e.ariaLabel,
|