@wikicasa-dev/components 2.0.4 → 2.0.5-0.alpha-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +21 -19
- package/dist/BaseIcon.js +4 -4
- package/dist/BaseInput.js +106 -100
- 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 +173 -222
- 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 +16 -15
- package/dist/BaseToggle.js +4 -4
- package/dist/BaseTooltip.js +3 -3
- package/dist/BaseUploadFile.js +1 -1
- package/dist/CheckboxBtn.js +10 -6
- 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/SimpleSlider.js +83 -0
- 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 +49 -103
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +9 -12
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +12 -17
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +10 -14
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +20 -33
- package/dist/UIKit/BaseAlert.vue.d.ts +8 -8
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +39 -198
- package/dist/UIKit/BaseBadge.vue.d.ts +7 -7
- package/dist/UIKit/BaseBreadcrumb.vue.d.ts +8 -10
- package/dist/UIKit/BaseButton.vue.d.ts +17 -30
- package/dist/UIKit/BaseCard.vue.d.ts +14 -23
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +7 -6
- package/dist/UIKit/BaseDropDown.vue.d.ts +39 -40
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +8 -13
- package/dist/UIKit/BaseIcon.vue.d.ts +3 -9
- package/dist/UIKit/BaseInput.vue.d.ts +20 -20
- package/dist/UIKit/BaseModal.vue.d.ts +35 -60
- package/dist/UIKit/BasePagination.vue.d.ts +7 -14
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +10 -12
- package/dist/UIKit/BaseSlider.vue.d.ts +20 -175
- package/dist/UIKit/BaseSnackbar.vue.d.ts +7 -14
- package/dist/UIKit/BaseTextarea.vue.d.ts +9 -10
- package/dist/UIKit/BaseToggle.vue.d.ts +6 -5
- package/dist/UIKit/BaseTooltip.vue.d.ts +13 -20
- package/dist/UIKit/BaseUploadFile.vue.d.ts +13 -19
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +18 -31
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +23 -43
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +7 -11
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +8 -7
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +6 -6
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +54 -8
- package/dist/UIKit/Slider/SimpleSlider.vue.d.ts +19 -0
- package/dist/UIKit/StaticSpinner.vue.d.ts +3 -5
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +8 -10
- package/dist/UIKit/Tab/BaseTabList.vue.d.ts +8 -9
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +9 -11
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +11 -8
- package/dist/UIKit/types.d.ts +4 -1
- 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/SimpleSlider.css +1 -0
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/chart/DoughnutChart.vue.d.ts +3 -5
- package/dist/chart/LineChart.vue.d.ts +16 -6
- package/dist/chart/composables/useChartjsModules.d.ts +1 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.aBS46udY.js +246 -0
- package/dist/chunks/{ArrowIcon.CCFMdsq6.js → ArrowIcon.Bq6Xr3uH.js} +1 -1
- package/dist/chunks/{BaseAccordion.vue_vue_type_script_setup_true_lang.R7qkuKlw.js → BaseAccordion.vue_vue_type_script_setup_true_lang.C34SZThb.js} +2 -2
- package/dist/chunks/{BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DsDqk9iP.js → BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js} +4 -4
- package/dist/chunks/{BaseAccordionContent.vue_vue_type_script_setup_true_lang.C0aiiljz.js → BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js} +2 -2
- package/dist/chunks/{BaseAccordionItem.vue_vue_type_script_setup_true_lang.Caagpb9M.js → BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js} +8 -8
- package/dist/chunks/{BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js → BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js} +2 -2
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.m5rScY4N.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.C64T2OK4.js} +89 -84
- package/dist/chunks/{BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js → BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js} +2 -2
- package/dist/chunks/{BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BH2c3gOe.js → BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js} +18 -18
- package/dist/chunks/{BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js → BaseButton.vue_vue_type_script_setup_true_lang.ChUdDzP1.js} +4 -4
- package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.BscSQ5bW.js → BaseDropDown.vue_vue_type_script_setup_true_lang.DoEvtblv.js} +59 -46
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.Cy2ThBHM.js +151 -0
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.D_X7MS6X.js +164 -0
- package/dist/chunks/{BaseTabList.vue_vue_type_script_setup_true_lang.CpIiJy6I.js → BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js} +3 -3
- package/dist/chunks/{BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js → BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js} +2 -2
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js +105 -0
- package/dist/chunks/{BaseUploadFile.vue_vue_type_script_setup_true_lang.2elmVcZt.js → BaseUploadFile.vue_vue_type_script_setup_true_lang.Cgu0FMFv.js} +1 -1
- package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.JlHKkjHJ.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.CAO5UUO3.js} +37 -37
- package/dist/chunks/{CloseIcon.DIkr4soH.js → CloseIcon.BZ4U3aiI.js} +1 -1
- package/dist/chunks/{DoughnutChart.vue_vue_type_script_setup_true_lang.C4QPaUsI.js → DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js} +3 -3
- package/dist/chunks/{IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js → IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js} +2 -2
- package/dist/chunks/{IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js → IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js} +2 -2
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js +42 -0
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
- package/dist/chunks/{RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js → RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js} +2 -2
- package/dist/chunks/{RadioGroup.vue_vue_type_script_setup_true_lang.BalzO73O.js → RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js} +6 -6
- package/dist/chunks/{SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js → SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js} +2 -2
- package/dist/chunks/{ShimmerMultiLine.vue_vue_type_script_setup_true_lang.DuLXZx8X.js → ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CF7CkxXk.js} +3 -3
- package/dist/chunks/SwiperCarousel.B1KHp8AU.js +744 -0
- package/dist/chunks/{index.D6IWh9UY.js → index.D6tiuZ4-.js} +9 -7
- package/dist/chunks/polyline.DjpLdMaW.js +5256 -0
- package/dist/chunks/{types-B0dZ7OiV.D29wNgoj.js → useBreakpoints.BXk8Xcw3.js} +2854 -874
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +10 -9
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +5 -2
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +9 -9
- package/dist/components/carousel/SwiperSlide.vue.d.ts +3 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +35 -33
- package/dist/useChartjsModules.js +1 -1
- package/package.json +30 -28
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.YIp2u7gd.js +0 -231
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.CautEumd.js +0 -142
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.DxPb8OYe.js +0 -163
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.DGeL_YSc.js +0 -95
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CNkvmtfq.js +0 -37
- package/dist/chunks/ObjectUtils.BOUbloeg.js +0 -10
- package/dist/chunks/PharmacyIcon.56ql_DYl.js +0 -19
- package/dist/chunks/SwiperCarousel.DWUl3bgn.js +0 -718
- package/dist/chunks/useKeyboardController.CutKeclN.js +0 -41
package/dist/BaseSlider.js
CHANGED
|
@@ -1,257 +1,208 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { _ as
|
|
4
|
-
import './assets/BaseSlider.css';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
function u(t, i) {
|
|
23
|
-
t <= 0 ? i.style.zIndex = "2" : i.style.zIndex = "0";
|
|
24
|
-
}
|
|
25
|
-
const I = c({
|
|
26
|
-
name: "BaseSlider",
|
|
27
|
-
components: { BaseInput: f },
|
|
28
|
-
props: {
|
|
29
|
-
type: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: "linear"
|
|
1
|
+
import { defineComponent as R, mergeModels as j, useModel as D, ref as p, useTemplateRef as T, useAttrs as q, onMounted as G, createElementBlock as H, openBlock as J, createElementVNode as x, withModifiers as _, unref as h, createVNode as k } from "vue";
|
|
2
|
+
import C from "./BaseInput.js";
|
|
3
|
+
import { _ as K } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
|
+
import './assets/BaseSlider.css';const O = { class: "range_container" }, Q = { class: "sliders_control" }, W = ["value", "min", "max", "step"], X = ["value", "min", "max", "step"], Y = { class: "form_control row" }, Z = { class: "pb-15 pb-sm-0 col-sm-6 col-xl-4" }, ee = { class: "col-sm-6 col-xl-4" }, le = /* @__PURE__ */ R({
|
|
5
|
+
__name: "BaseSlider",
|
|
6
|
+
props: /* @__PURE__ */ j({
|
|
7
|
+
type: { default: "linear" },
|
|
8
|
+
min: { default: 0 },
|
|
9
|
+
max: { default: 100 }
|
|
10
|
+
}, {
|
|
11
|
+
minValue: { default: 0 },
|
|
12
|
+
minValueModifiers: {},
|
|
13
|
+
maxValue: { default: 0 },
|
|
14
|
+
maxValueModifiers: {}
|
|
15
|
+
}),
|
|
16
|
+
emits: ["update:minValue", "update:maxValue"],
|
|
17
|
+
setup(m) {
|
|
18
|
+
function M(e, l) {
|
|
19
|
+
const a = parseInt(e.value, 10), t = parseInt(l.value, 10);
|
|
20
|
+
return [a, t];
|
|
32
21
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
scale: 0
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
computed: {
|
|
50
|
-
fromSlider() {
|
|
51
|
-
return this.$refs.fromSlider;
|
|
52
|
-
},
|
|
53
|
-
toSlider() {
|
|
54
|
-
return this.$refs.toSlider;
|
|
55
|
-
},
|
|
56
|
-
fromInput() {
|
|
57
|
-
return this.$refs.fromInput;
|
|
58
|
-
},
|
|
59
|
-
toInput() {
|
|
60
|
-
return this.$refs.toInput;
|
|
22
|
+
const E = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, L = (e) => Math.exp(
|
|
23
|
+
(e.position - e.minPos) * e.scale + e.minlval
|
|
24
|
+
);
|
|
25
|
+
function V(e, l, a, t, v) {
|
|
26
|
+
const i = l.max - l.min, f = e - l.min, $ = l.value - l.min;
|
|
27
|
+
v.style.background = `linear-gradient(
|
|
28
|
+
to right,
|
|
29
|
+
${a} 0%,
|
|
30
|
+
${a} ${f / i * 100}%,
|
|
31
|
+
${t} ${f / i * 100}%,
|
|
32
|
+
${t} ${$ / i * 100}%,
|
|
33
|
+
${a} ${$ / i * 100}%,
|
|
34
|
+
${a} 100%)`;
|
|
61
35
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
minValue(t) {
|
|
65
|
-
this.$emit("minChanged", t);
|
|
66
|
-
},
|
|
67
|
-
maxValue(t) {
|
|
68
|
-
this.$emit("maxChanged", t);
|
|
36
|
+
function y(e, l) {
|
|
37
|
+
e <= 0 ? l.style.zIndex = "2" : l.style.zIndex = "0";
|
|
69
38
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
10
|
|
78
|
-
), this.minlval = Math.log(this.minValue || 1), this.maxlval = Math.log(this.maxValue), this.scale = (this.maxlval - this.minlval) / (this.rightSliderLimit - this.leftSliderLimit);
|
|
79
|
-
},
|
|
80
|
-
mounted() {
|
|
81
|
-
!this.fromSlider || !this.toSlider || (m(
|
|
82
|
-
this.sliderMinValue,
|
|
83
|
-
{
|
|
84
|
-
min: this.leftSliderLimit,
|
|
85
|
-
max: this.rightSliderLimit,
|
|
86
|
-
value: this.sliderMaxValue
|
|
87
|
-
},
|
|
88
|
-
"#B4C2F0",
|
|
89
|
-
"#2B5DFF",
|
|
90
|
-
this.toSlider
|
|
91
|
-
), u(this.sliderMaxValue, this.toSlider));
|
|
92
|
-
},
|
|
93
|
-
methods: {
|
|
94
|
-
handleInputChange(t, i) {
|
|
95
|
-
if (!this.fromSlider || !this.toSlider) return;
|
|
96
|
-
i || (i = "0");
|
|
97
|
-
const e = parseInt(i, 10);
|
|
98
|
-
if (t == "min-input") {
|
|
99
|
-
if (e >= this.maxValue) return;
|
|
100
|
-
this.minValue = e, this.controlFromInput(this.toSlider);
|
|
39
|
+
const r = D(m, "minValue"), o = D(m, "maxValue"), n = p(0), u = p(100), c = p(10), d = p(40), F = p(0), P = p(0), B = p(0), g = T("fromSlider"), s = T("toSlider"), S = (e, l) => {
|
|
40
|
+
if (!g.value || !s.value) return;
|
|
41
|
+
l || (l = "0");
|
|
42
|
+
const a = parseInt(l, 10);
|
|
43
|
+
if (e == "min-input") {
|
|
44
|
+
if (a >= o.value) return;
|
|
45
|
+
r.value = a, z(s.value, a, o.value);
|
|
101
46
|
return;
|
|
102
47
|
}
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
scale: this.scale
|
|
48
|
+
a < r.value || (o.value = a, A(s.value, s.value, r.value, a));
|
|
49
|
+
}, I = (e) => {
|
|
50
|
+
if (m.type === "logarithmic")
|
|
51
|
+
return e = e || 1, parseInt(
|
|
52
|
+
E({
|
|
53
|
+
value: e,
|
|
54
|
+
minPos: n.value,
|
|
55
|
+
minlval: F.value,
|
|
56
|
+
scale: B.value
|
|
113
57
|
}).toFixed(0),
|
|
114
58
|
10
|
|
115
59
|
);
|
|
116
|
-
if (
|
|
117
|
-
return
|
|
60
|
+
if (m.type === "linear")
|
|
61
|
+
return e;
|
|
118
62
|
throw new Error("The slider type has not been implemented");
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
minPos: this.leftSliderLimit
|
|
63
|
+
}, b = (e) => {
|
|
64
|
+
if (m.type === "logarithmic")
|
|
65
|
+
return e = e || 1, parseInt(
|
|
66
|
+
L({
|
|
67
|
+
position: e,
|
|
68
|
+
scale: B.value,
|
|
69
|
+
minlval: F.value,
|
|
70
|
+
minPos: n.value
|
|
128
71
|
}).toFixed(0),
|
|
129
72
|
10
|
|
130
73
|
);
|
|
131
|
-
if (
|
|
132
|
-
return
|
|
74
|
+
if (m.type === "linear")
|
|
75
|
+
return e;
|
|
133
76
|
throw new Error("The slider type has not been implemented");
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
i,
|
|
77
|
+
}, z = (e, l, a) => {
|
|
78
|
+
const t = I(l), v = I(a);
|
|
79
|
+
V(
|
|
80
|
+
t,
|
|
139
81
|
{
|
|
140
|
-
min:
|
|
141
|
-
max:
|
|
142
|
-
value:
|
|
82
|
+
min: n.value,
|
|
83
|
+
max: u.value,
|
|
84
|
+
value: v
|
|
143
85
|
},
|
|
144
86
|
"#B4C2F0",
|
|
145
87
|
"#2B5DFF",
|
|
146
|
-
|
|
88
|
+
e
|
|
147
89
|
);
|
|
148
|
-
const
|
|
149
|
-
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
e,
|
|
90
|
+
const i = t, f = o.value;
|
|
91
|
+
i > f ? c.value = f : c.value = i;
|
|
92
|
+
}, A = (e, l, a, t) => {
|
|
93
|
+
const v = I(a), i = I(t);
|
|
94
|
+
V(
|
|
95
|
+
v,
|
|
155
96
|
{
|
|
156
|
-
min:
|
|
157
|
-
max:
|
|
158
|
-
value:
|
|
97
|
+
min: n.value,
|
|
98
|
+
max: u.value,
|
|
99
|
+
value: i
|
|
159
100
|
},
|
|
160
101
|
"#B4C2F0",
|
|
161
102
|
"#2B5DFF",
|
|
162
|
-
|
|
103
|
+
l
|
|
163
104
|
);
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
e,
|
|
105
|
+
const f = r.value, $ = i;
|
|
106
|
+
y(o.value, e), f <= $ ? d.value = $ : d.value = f;
|
|
107
|
+
}, N = (e, l) => {
|
|
108
|
+
if (!l.value) return;
|
|
109
|
+
const [a, t] = M(e, l), v = b(a);
|
|
110
|
+
V(
|
|
111
|
+
a,
|
|
172
112
|
{
|
|
173
|
-
min:
|
|
174
|
-
max:
|
|
175
|
-
value:
|
|
113
|
+
min: n.value,
|
|
114
|
+
max: u.value,
|
|
115
|
+
value: t
|
|
176
116
|
},
|
|
177
117
|
"#B4C2F0",
|
|
178
118
|
"#2B5DFF",
|
|
179
|
-
|
|
180
|
-
),
|
|
181
|
-
},
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
this.sliderMinValue,
|
|
119
|
+
l
|
|
120
|
+
), a > t ? (e.value = `${t}`, c.value = t, r.value = t) : (c.value = a, r.value = v);
|
|
121
|
+
}, U = (e, l) => {
|
|
122
|
+
if (!l.value) return;
|
|
123
|
+
const [a, t] = M(e, l), v = b(t);
|
|
124
|
+
V(
|
|
125
|
+
c.value,
|
|
187
126
|
{
|
|
188
|
-
min:
|
|
189
|
-
max:
|
|
190
|
-
value:
|
|
127
|
+
min: n.value,
|
|
128
|
+
max: u.value,
|
|
129
|
+
value: t
|
|
191
130
|
},
|
|
192
131
|
"#B4C2F0",
|
|
193
132
|
"#2B5DFF",
|
|
194
|
-
|
|
195
|
-
),
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
133
|
+
l
|
|
134
|
+
), y(parseInt(l.value, 10), l), a <= t ? (d.value = t, o.value = v) : (l.value = `${a}`, d.value = a, o.value = a);
|
|
135
|
+
}, w = q();
|
|
136
|
+
return (() => {
|
|
137
|
+
n.value = parseInt(`${m.min || 0}`, 10), u.value = parseInt(`${m.max || 100}`, 10), c.value = n.value, d.value = u.value, r.value = parseInt(`${w.minValue || n.value}`, 10), o.value = parseInt(`${w.maxValue || u.value}`, 10), F.value = Math.log(r.value || 1), P.value = Math.log(o.value), B.value = (P.value - F.value) / (u.value - n.value);
|
|
138
|
+
})(), G(() => {
|
|
139
|
+
!g.value || !s.value || (V(
|
|
140
|
+
c.value,
|
|
141
|
+
{
|
|
142
|
+
min: n.value,
|
|
143
|
+
max: u.value,
|
|
144
|
+
value: d.value
|
|
145
|
+
},
|
|
146
|
+
"#B4C2F0",
|
|
147
|
+
"#2B5DFF",
|
|
148
|
+
s.value
|
|
149
|
+
), y(d.value, s.value));
|
|
150
|
+
}), (e, l) => (J(), H("div", O, [
|
|
151
|
+
x("div", Q, [
|
|
152
|
+
x("input", {
|
|
153
|
+
ref_key: "fromSlider",
|
|
154
|
+
ref: g,
|
|
155
|
+
class: "fromSlider",
|
|
156
|
+
type: "range",
|
|
157
|
+
value: c.value,
|
|
158
|
+
min: n.value,
|
|
159
|
+
max: u.value,
|
|
160
|
+
step: e.$attrs.step,
|
|
161
|
+
onInput: l[0] || (l[0] = _((a) => N(
|
|
162
|
+
h(g),
|
|
163
|
+
h(s)
|
|
164
|
+
), ["stop"]))
|
|
165
|
+
}, null, 40, W),
|
|
166
|
+
x("input", {
|
|
167
|
+
ref_key: "toSlider",
|
|
168
|
+
ref: s,
|
|
169
|
+
class: "toSlider",
|
|
170
|
+
type: "range",
|
|
171
|
+
value: d.value,
|
|
172
|
+
min: n.value,
|
|
173
|
+
max: u.value,
|
|
174
|
+
step: e.$attrs.step,
|
|
175
|
+
onInput: l[1] || (l[1] = _((a) => U(
|
|
176
|
+
h(g),
|
|
177
|
+
h(s)
|
|
178
|
+
), ["stop"]))
|
|
179
|
+
}, null, 40, X)
|
|
240
180
|
]),
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
181
|
+
x("div", Y, [
|
|
182
|
+
x("div", Z, [
|
|
183
|
+
k(C, {
|
|
184
|
+
"label-text": "Min",
|
|
185
|
+
type: "text",
|
|
186
|
+
pattern: "[0-9]*",
|
|
187
|
+
inputmode: "numeric",
|
|
188
|
+
"model-value": r.value,
|
|
189
|
+
"onUpdate:modelValue": l[2] || (l[2] = (a) => S("min-input", `${a || ""}`))
|
|
190
|
+
}, null, 8, ["model-value"])
|
|
191
|
+
]),
|
|
192
|
+
x("div", ee, [
|
|
193
|
+
k(C, {
|
|
194
|
+
"label-text": "Max",
|
|
195
|
+
type: "text",
|
|
196
|
+
pattern: "[0-9]*",
|
|
197
|
+
inputmode: "numeric",
|
|
198
|
+
"model-value": o.value,
|
|
199
|
+
"onUpdate:modelValue": l[3] || (l[3] = (a) => S("max-input", `${a || ""}`))
|
|
200
|
+
}, null, 8, ["model-value"])
|
|
201
|
+
])
|
|
250
202
|
])
|
|
251
|
-
])
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
const _ = /* @__PURE__ */ x(I, [["render", b], ["__scopeId", "data-v-c87c86da"]]);
|
|
203
|
+
]));
|
|
204
|
+
}
|
|
205
|
+
}), oe = /* @__PURE__ */ K(le, [["__scopeId", "data-v-581ec7f4"]]);
|
|
255
206
|
export {
|
|
256
|
-
|
|
207
|
+
oe as default
|
|
257
208
|
};
|
package/dist/BaseSnackbar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as b, ref as u, onBeforeMount as f,
|
|
2
|
-
import { l as g } from "./chunks/CloseIcon.
|
|
3
|
-
import "./chunks/PharmacyIcon.
|
|
1
|
+
import { defineComponent as b, ref as u, onBeforeMount as f, createBlock as h, openBlock as i, Teleport as y, createElementVNode as e, withModifiers as l, normalizeClass as x, createElementBlock as a, createCommentVNode as s, createVNode as _, unref as v } from "vue";
|
|
2
|
+
import { l as g } from "./chunks/CloseIcon.BZ4U3aiI.js";
|
|
3
|
+
import "./chunks/PharmacyIcon.DEQ8mOEJ.js";
|
|
4
4
|
import { _ as C } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
5
|
import './assets/BaseSnackbar.css';const T = { class: "snackbar-container uikit-fixed uikit-bottom-10px uikit-left-10px uikit-z-[2000] max-sm:uikit-left-0 max-sm:uikit-w-full" }, w = ["data-cy"], B = ["src", "alt"], L = {
|
|
6
6
|
key: 1,
|
package/dist/BaseTabList.js
CHANGED
package/dist/BaseTabPanel.js
CHANGED
package/dist/BaseTabView.js
CHANGED
package/dist/BaseTextarea.js
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useFloatingLabel as
|
|
4
|
-
import { _ as
|
|
1
|
+
import { defineComponent as h, mergeModels as f, useModel as x, ref as $, watch as L, createElementBlock as k, openBlock as b, normalizeClass as s, createElementVNode as o, createCommentVNode as p, unref as l, createVNode as M, withModifiers as d, nextTick as C } from "vue";
|
|
2
|
+
import F from "./BaseFloatingLabel.js";
|
|
3
|
+
import { useFloatingLabel as B } from "./useFloatingLabel.js";
|
|
4
|
+
import { _ as z } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
5
|
import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "value"], H = {
|
|
6
6
|
key: 0,
|
|
7
7
|
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"
|
|
8
|
-
}, I = ["innerHTML"], q = ["innerHTML"], A = /* @__PURE__ */
|
|
8
|
+
}, I = ["innerHTML"], q = ["innerHTML"], A = /* @__PURE__ */ h({
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
__name: "BaseTextarea",
|
|
11
11
|
props: /* @__PURE__ */ f({
|
|
12
12
|
labelText: { default: "" },
|
|
13
13
|
feedback: {},
|
|
14
14
|
isValid: { default: null },
|
|
15
|
-
resize: { type: Boolean, default: !1 }
|
|
15
|
+
resize: { type: Boolean, default: !1 },
|
|
16
|
+
labelClasses: {}
|
|
16
17
|
}, {
|
|
17
18
|
modelValue: { default: "" },
|
|
18
19
|
modelModifiers: {}
|
|
19
20
|
}),
|
|
20
21
|
emits: /* @__PURE__ */ f(["focusin", "focusout", "click", "keydown"], ["update:modelValue"]),
|
|
21
22
|
setup(v, { expose: m, emit: c }) {
|
|
22
|
-
const r =
|
|
23
|
+
const r = x(v, "modelValue"), n = c, {
|
|
23
24
|
labelState: a,
|
|
24
25
|
handleFocusIn: w,
|
|
25
26
|
handleFocusOut: g,
|
|
26
27
|
setFloatingLabel: y,
|
|
27
28
|
setInlineLabel: V
|
|
28
|
-
} =
|
|
29
|
+
} = B(n), i = $(null);
|
|
29
30
|
L(
|
|
30
31
|
r,
|
|
31
32
|
(e) => {
|
|
@@ -44,11 +45,11 @@ import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled
|
|
|
44
45
|
i.value && (i.value.value = "");
|
|
45
46
|
},
|
|
46
47
|
focusDisabledTextarea: () => {
|
|
47
|
-
i.value && (i.value.removeAttribute("readonly"), i.value.classList.remove("disabled"),
|
|
48
|
+
i.value && (i.value.removeAttribute("readonly"), i.value.classList.remove("disabled"), C(() => {
|
|
48
49
|
i.value && i.value.focus();
|
|
49
50
|
}));
|
|
50
51
|
}
|
|
51
|
-
}), (e, t) => (
|
|
52
|
+
}), (e, t) => (b(), k("div", {
|
|
52
53
|
class: s(e.$attrs["wrapper-classes"])
|
|
53
54
|
}, [
|
|
54
55
|
o("div", {
|
|
@@ -86,7 +87,7 @@ import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled
|
|
|
86
87
|
{ "uikit-border-w-secondary": e.isValid === null }
|
|
87
88
|
]])
|
|
88
89
|
}, [
|
|
89
|
-
e.labelText ? (
|
|
90
|
+
e.labelText ? (b(), k("legend", H, [
|
|
90
91
|
o("span", {
|
|
91
92
|
class: s(["uikit-px-5px uikit-opacity-0", [
|
|
92
93
|
{
|
|
@@ -100,7 +101,7 @@ import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled
|
|
|
100
101
|
}, null, 10, I)
|
|
101
102
|
])) : p("", !0)
|
|
102
103
|
], 2),
|
|
103
|
-
M(
|
|
104
|
+
M(F, {
|
|
104
105
|
for: e.$attrs.id,
|
|
105
106
|
"label-text": e.labelText,
|
|
106
107
|
"label-state": l(a),
|
|
@@ -108,11 +109,11 @@ import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled
|
|
|
108
109
|
"is-valid": e.isValid,
|
|
109
110
|
"label-classes": [
|
|
110
111
|
l(a) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
|
|
111
|
-
e
|
|
112
|
+
e.labelClasses
|
|
112
113
|
]
|
|
113
114
|
}, null, 8, ["for", "label-text", "label-state", "required", "is-valid", "label-classes"])
|
|
114
115
|
], 2),
|
|
115
|
-
(e.isValid || e.isValid === !1) && e.feedback ? (
|
|
116
|
+
(e.isValid || e.isValid === !1) && e.feedback ? (b(), k("div", {
|
|
116
117
|
key: 0,
|
|
117
118
|
class: s(
|
|
118
119
|
e.isValid === !1 ? "uikit-mt-1 uikit-text-12 uikit-text-w-danger" : "uikit-mt-1 uikit-text-12 uikit-text-w-primary"
|
|
@@ -121,7 +122,7 @@ import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled
|
|
|
121
122
|
}, null, 10, q)) : p("", !0)
|
|
122
123
|
], 2));
|
|
123
124
|
}
|
|
124
|
-
}), J = /* @__PURE__ */
|
|
125
|
+
}), J = /* @__PURE__ */ z(A, [["__scopeId", "data-v-4c1a3e1d"]]);
|
|
125
126
|
export {
|
|
126
127
|
J as default
|
|
127
128
|
};
|
package/dist/BaseToggle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a, mergeModels as n, useModel as d,
|
|
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 i, createCommentVNode as f, withModifiers as p } from "vue";
|
|
2
2
|
import { _ as m } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
3
3
|
import './assets/BaseToggle.css';const h = { class: "switch uikit-relative uikit-inline-block uikit-min-w-[40px] uikit-text-sm" }, g = ["data-cy", "checked"], w = ["innerHTML"], y = /* @__PURE__ */ a({
|
|
4
4
|
inheritAttrs: !1,
|
|
@@ -15,7 +15,7 @@ import './assets/BaseToggle.css';const h = { class: "switch uikit-relative uikit
|
|
|
15
15
|
const o = d(r, "modelValue"), u = ({ target: e }) => {
|
|
16
16
|
o.value = e.checked;
|
|
17
17
|
};
|
|
18
|
-
return (e, t) => (
|
|
18
|
+
return (e, t) => (b(), k("div", {
|
|
19
19
|
class: c(["switch-container uikit-inline-block uikit-items-center", e.$attrs.class])
|
|
20
20
|
}, [
|
|
21
21
|
l(e.$slots, "leftLabel", {}, void 0, !0),
|
|
@@ -25,7 +25,7 @@ import './assets/BaseToggle.css';const h = { class: "switch uikit-relative uikit
|
|
|
25
25
|
class: "uikit-peer/toggle uikit-h-0 uikit-w-0 uikit-opacity-0",
|
|
26
26
|
type: "checkbox",
|
|
27
27
|
checked: o.value,
|
|
28
|
-
onInput: t[0] || (t[0] =
|
|
28
|
+
onInput: t[0] || (t[0] = p((s) => u(s), ["stop"]))
|
|
29
29
|
}, null, 40, g),
|
|
30
30
|
t[1] || (t[1] = i("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))
|
|
31
31
|
]),
|
|
@@ -34,7 +34,7 @@ import './assets/BaseToggle.css';const h = { class: "switch uikit-relative uikit
|
|
|
34
34
|
class: "uikit-ml-10px",
|
|
35
35
|
innerHTML: e.label
|
|
36
36
|
}, null, 8, w)
|
|
37
|
-
], !0) :
|
|
37
|
+
], !0) : f("", !0)
|
|
38
38
|
], 2));
|
|
39
39
|
}
|
|
40
40
|
}), B = /* @__PURE__ */ m(y, [["__scopeId", "data-v-1e6f488b"]]);
|
package/dist/BaseTooltip.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a,
|
|
1
|
+
import { defineComponent as a, createElementBlock as e, openBlock as t, renderSlot as s, createElementVNode as i, normalizeClass as l, createCommentVNode as n } from "vue";
|
|
2
2
|
import { _ as r } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
3
3
|
import './assets/BaseTooltip.css';const p = { class: "base-tooltip" }, d = /* @__PURE__ */ a({
|
|
4
4
|
__name: "BaseTooltip",
|
|
@@ -13,7 +13,7 @@ import './assets/BaseTooltip.css';const p = { class: "base-tooltip" }, d = /* @_
|
|
|
13
13
|
tooltipContentClasses: { default: "" }
|
|
14
14
|
},
|
|
15
15
|
setup(m) {
|
|
16
|
-
return (o, u) => (
|
|
16
|
+
return (o, u) => (t(), e("div", p, [
|
|
17
17
|
s(o.$slots, "trigger", {}, void 0, !0),
|
|
18
18
|
i("div", {
|
|
19
19
|
class: l(["bg-transparent", [
|
|
@@ -21,7 +21,7 @@ import './assets/BaseTooltip.css';const p = { class: "base-tooltip" }, d = /* @_
|
|
|
21
21
|
`${o.customTooltipClass ? o.customTooltipClass : "tooltip-content-wrapper"}`
|
|
22
22
|
]])
|
|
23
23
|
}, [
|
|
24
|
-
o.showTooltipContentManually ? (
|
|
24
|
+
o.showTooltipContentManually ? (t(), e("div", {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: l(["tooltip-content uikit-shadow-lg uikit-shadow-w-primary/10", [
|
|
27
27
|
"base-tooltip-arrow",
|
package/dist/BaseUploadFile.js
CHANGED