@wikicasa-dev/components 2.2.9-alpha.35 → 2.2.9-alpha.36
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/Swiper/autoplay.js +4 -3
- package/dist/Swiper/controller.js +2 -1
- package/dist/Swiper/free-mode.js +4 -3
- package/dist/Swiper/keyboard.js +4 -3
- package/dist/Swiper/navigation.js +4 -3
- package/dist/Swiper/pagination.js +4 -3
- package/dist/Swiper/thumbs.js +4 -3
- package/dist/UIKit/AccessibleSelect.js +3 -2
- 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 +3 -2
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +3 -2
- package/dist/UIKit/BaseAlert.js +3 -2
- package/dist/UIKit/BaseAutocomplete.js +3 -2
- package/dist/UIKit/BaseBadge.js +3 -2
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +5 -36
- package/dist/UIKit/BaseComplexToggle.js +5 -105
- package/dist/UIKit/BaseDropDown.js +3 -2
- package/dist/UIKit/BaseFloatingLabel.js +5 -39
- package/dist/UIKit/BaseInput.js +5 -210
- package/dist/UIKit/BaseModal.js +3 -2
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.js +5 -206
- package/dist/UIKit/BaseSnackbar.js +3 -2
- package/dist/UIKit/BaseTextarea.js +5 -126
- package/dist/UIKit/BaseToggle.js +5 -41
- package/dist/UIKit/BaseTooltip.js +5 -40
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +3 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/UIKit/Radio/RadioButton.js +1 -1
- package/dist/UIKit/Radio/RadioGroup.js +1 -1
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +5 -20
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +5 -81
- package/dist/UIKit/StaticSpinner.js +5 -26
- package/dist/UIKit/Tab/BaseTab.js +1 -1
- package/dist/UIKit/Tab/BaseTabList.js +1 -1
- package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
- package/dist/UIKit/Tab/BaseTabView.js +1 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/SwiperCarousel2.css +1 -0
- package/dist/assets/swiper-swiper.css +1 -0
- package/dist/assets/swiper-zoom.css +1 -0
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.js +6 -243
- package/dist/components/carousel/SwiperSlide.js +1 -1
- package/dist/index.js +92 -82
- package/dist/{chunks/AccessibleSelect.vue_vue_type_style_index_0_lang.DWwkWpAC.js → packages/components/lib/UIKit/AccessibleSelect.vue.js} +4 -3
- package/dist/{chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.Qp6BrYox.js → packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js} +5 -5
- package/dist/{chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.CL5zNPzY.js → packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js} +4 -4
- package/dist/{chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.BqjzG2As.js → packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js} +5 -5
- package/dist/{chunks/BaseAccordionItem.vue_vue_type_style_index_0_lang.DwEHSyBO.js → packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js} +4 -4
- package/dist/{chunks/ClearableAutocomplete.vue_vue_type_style_index_0_lang.DUOBcBPN.js → packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js} +5 -4
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +19 -0
- package/dist/{chunks/BaseAutocomplete.vue_vue_type_style_index_0_lang.BW_JCkOV.js → packages/components/lib/UIKit/BaseAutocomplete.vue.js} +25 -24
- package/dist/{chunks/BaseBadge.vue_vue_type_style_index_0_lang.BnYtlFXq.js → packages/components/lib/UIKit/BaseBadge.vue.js} +6 -6
- package/dist/{chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.CcfuB26u.js → packages/components/lib/UIKit/BaseBreadcrumb.vue.js} +7 -7
- package/dist/{chunks/BaseButton.vue_vue_type_script_setup_true_lang.CswNVEW_.js → packages/components/lib/UIKit/BaseButton.vue.js} +2 -2
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +106 -0
- package/dist/{chunks/BaseDropDown.vue_vue_type_style_index_0_lang.z4eFD2_f.js → packages/components/lib/UIKit/BaseDropDown.vue.js} +12 -12
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +40 -0
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +211 -0
- package/dist/{chunks/BaseModal.vue_vue_type_style_index_0_lang.B8U_buif.js → packages/components/lib/UIKit/BaseModal.vue.js} +2 -2
- package/dist/{chunks/BasePagination.vue_vue_type_script_setup_true_lang.CkGMhOm-.js → packages/components/lib/UIKit/BasePagination.vue.js} +1 -1
- package/dist/{chunks/SelectItem.vue_vue_type_script_setup_true_lang.DvQ4ZKvE.js → packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js} +9 -9
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +207 -0
- package/dist/{chunks/BaseSnackbar.vue_vue_type_style_index_0_lang.DJqVfg6P.js → packages/components/lib/UIKit/BaseSnackbar.vue.js} +2 -2
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +127 -0
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +42 -0
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +41 -0
- package/dist/{chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.DMPiMivr.js → packages/components/lib/UIKit/BaseUploadFile.vue.js} +7 -7
- package/dist/{chunks/CheckboxBtn.vue_vue_type_style_index_0_lang.MYOfjOwM.js → packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js} +8 -8
- package/dist/{chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.aDZDPjgR.js → packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js} +4 -3
- package/dist/{chunks/RadioButton.vue_vue_type_script_setup_true_lang.g-a7DM3l.js → packages/components/lib/UIKit/Radio/RadioButton.vue.js} +3 -3
- package/dist/{chunks/RadioGroup.vue_vue_type_script_setup_true_lang.DtBZuHm2.js → packages/components/lib/UIKit/Radio/RadioGroup.vue.js} +3 -3
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +21 -0
- package/dist/{chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.DEb8nfZp.js → packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js} +4 -4
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +82 -0
- package/dist/packages/components/lib/UIKit/StaticSpinner.vue.js +27 -0
- package/dist/{chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js → packages/components/lib/UIKit/Tab/BaseTab.vue.js} +3 -3
- package/dist/{chunks/BaseTabList.vue_vue_type_script_setup_true_lang.BXvkXKbT.js → packages/components/lib/UIKit/Tab/BaseTabList.vue.js} +3 -3
- package/dist/{chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CM1ObHXU.js → packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js} +1 -1
- package/dist/{chunks/BaseTabView.vue_vue_type_script_setup_true_lang.BocXkfTw.js → packages/components/lib/UIKit/Tab/BaseTabView.vue.js} +17 -17
- package/dist/{chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.yALl_gpB.js → packages/components/lib/chart/DoughnutChart.vue.js} +6 -6
- package/dist/{chunks/LineChart.vue_vue_type_script_setup_true_lang.Df20jEOd.js → packages/components/lib/chart/LineChart.vue.js} +7 -7
- package/dist/{chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.BidNzYDc.js → packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js} +5 -5
- package/dist/{chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BnLNx3be.js → packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js} +3 -3
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +246 -0
- package/package.json +1 -1
- package/dist/chunks/BaseAlert.vue_vue_type_style_index_0_lang.BVR-COlL.js +0 -19
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
- /package/dist/assets/{thumbs.css → swiper-controller.css} +0 -0
- /package/dist/assets/{free-mode.css → swiper-free-mode.css} +0 -0
- /package/dist/assets/{navigation.css → swiper-navigation.css} +0 -0
- /package/dist/assets/{pagination.css → swiper-pagination.css} +0 -0
package/dist/UIKit/BaseSlider.js
CHANGED
|
@@ -1,208 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
__name: "BaseSlider",
|
|
6
|
-
props: /* @__PURE__ */ R({
|
|
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 B(e, l) {
|
|
19
|
-
const a = parseInt(e.value, 10), t = parseInt(l.value, 10);
|
|
20
|
-
return [a, t];
|
|
21
|
-
}
|
|
22
|
-
const C = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, E = (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%)`;
|
|
35
|
-
}
|
|
36
|
-
function h(e, l) {
|
|
37
|
-
e <= 0 ? l.style.zIndex = "2" : l.style.zIndex = "0";
|
|
38
|
-
}
|
|
39
|
-
const r = w(m, "minValue"), o = w(m, "maxValue"), n = p(0), u = p(100), c = p(10), d = p(40), F = p(0), M = p(0), y = p(0), g = D("fromSlider"), s = D("toSlider"), P = (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, L(s.value, a, o.value);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
a < r.value || (o.value = a, z(s.value, s.value, r.value, a));
|
|
49
|
-
}, I = (e) => {
|
|
50
|
-
if (m.type === "logarithmic")
|
|
51
|
-
return e = e || 1, parseInt(
|
|
52
|
-
C({
|
|
53
|
-
value: e,
|
|
54
|
-
minPos: n.value,
|
|
55
|
-
minlval: F.value,
|
|
56
|
-
scale: y.value
|
|
57
|
-
}).toFixed(0),
|
|
58
|
-
10
|
|
59
|
-
);
|
|
60
|
-
if (m.type === "linear")
|
|
61
|
-
return e;
|
|
62
|
-
throw new Error("The slider type has not been implemented");
|
|
63
|
-
}, S = (e) => {
|
|
64
|
-
if (m.type === "logarithmic")
|
|
65
|
-
return e = e || 1, parseInt(
|
|
66
|
-
E({
|
|
67
|
-
position: e,
|
|
68
|
-
scale: y.value,
|
|
69
|
-
minlval: F.value,
|
|
70
|
-
minPos: n.value
|
|
71
|
-
}).toFixed(0),
|
|
72
|
-
10
|
|
73
|
-
);
|
|
74
|
-
if (m.type === "linear")
|
|
75
|
-
return e;
|
|
76
|
-
throw new Error("The slider type has not been implemented");
|
|
77
|
-
}, L = (e, l, a) => {
|
|
78
|
-
const t = I(l), v = I(a);
|
|
79
|
-
V(
|
|
80
|
-
t,
|
|
81
|
-
{
|
|
82
|
-
min: n.value,
|
|
83
|
-
max: u.value,
|
|
84
|
-
value: v
|
|
85
|
-
},
|
|
86
|
-
"#B4C2F0",
|
|
87
|
-
"#2B5DFF",
|
|
88
|
-
e
|
|
89
|
-
);
|
|
90
|
-
const i = t, f = o.value;
|
|
91
|
-
i > f ? c.value = f : c.value = i;
|
|
92
|
-
}, z = (e, l, a, t) => {
|
|
93
|
-
const v = I(a), i = I(t);
|
|
94
|
-
V(
|
|
95
|
-
v,
|
|
96
|
-
{
|
|
97
|
-
min: n.value,
|
|
98
|
-
max: u.value,
|
|
99
|
-
value: i
|
|
100
|
-
},
|
|
101
|
-
"#B4C2F0",
|
|
102
|
-
"#2B5DFF",
|
|
103
|
-
l
|
|
104
|
-
);
|
|
105
|
-
const f = r.value, $ = i;
|
|
106
|
-
h(o.value, e), f <= $ ? d.value = $ : d.value = f;
|
|
107
|
-
}, A = (e, l) => {
|
|
108
|
-
if (!l.value) return;
|
|
109
|
-
const [a, t] = B(e, l), v = S(a);
|
|
110
|
-
V(
|
|
111
|
-
a,
|
|
112
|
-
{
|
|
113
|
-
min: n.value,
|
|
114
|
-
max: u.value,
|
|
115
|
-
value: t
|
|
116
|
-
},
|
|
117
|
-
"#B4C2F0",
|
|
118
|
-
"#2B5DFF",
|
|
119
|
-
l
|
|
120
|
-
), a > t ? (e.value = `${t}`, c.value = t, r.value = t) : (c.value = a, r.value = v);
|
|
121
|
-
}, N = (e, l) => {
|
|
122
|
-
if (!l.value) return;
|
|
123
|
-
const [a, t] = B(e, l), v = S(t);
|
|
124
|
-
V(
|
|
125
|
-
c.value,
|
|
126
|
-
{
|
|
127
|
-
min: n.value,
|
|
128
|
-
max: u.value,
|
|
129
|
-
value: t
|
|
130
|
-
},
|
|
131
|
-
"#B4C2F0",
|
|
132
|
-
"#2B5DFF",
|
|
133
|
-
l
|
|
134
|
-
), h(parseInt(l.value, 10), l), a <= t ? (d.value = t, o.value = v) : (l.value = `${a}`, d.value = a, o.value = a);
|
|
135
|
-
}, b = j();
|
|
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(`${b.minValue || n.value}`, 10), o.value = parseInt(`${b.maxValue || u.value}`, 10), F.value = Math.log(r.value || 1), M.value = Math.log(o.value), y.value = (M.value - F.value) / (u.value - n.value);
|
|
138
|
-
})(), q(() => {
|
|
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
|
-
), h(d.value, s.value));
|
|
150
|
-
}), (e, l) => (H(), G("div", K, [
|
|
151
|
-
x("div", O, [
|
|
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] = T((a) => A(
|
|
162
|
-
g.value,
|
|
163
|
-
s.value
|
|
164
|
-
), ["stop"]))
|
|
165
|
-
}, null, 40, Q),
|
|
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] = T((a) => N(
|
|
176
|
-
g.value,
|
|
177
|
-
s.value
|
|
178
|
-
), ["stop"]))
|
|
179
|
-
}, null, 40, W)
|
|
180
|
-
]),
|
|
181
|
-
x("div", X, [
|
|
182
|
-
x("div", Y, [
|
|
183
|
-
_(k, {
|
|
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) => P("min-input", `${a || ""}`))
|
|
190
|
-
}, null, 8, ["model-value"])
|
|
191
|
-
]),
|
|
192
|
-
x("div", Z, [
|
|
193
|
-
_(k, {
|
|
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) => P("max-input", `${a || ""}`))
|
|
200
|
-
}, null, 8, ["model-value"])
|
|
201
|
-
])
|
|
202
|
-
])
|
|
203
|
-
]));
|
|
204
|
-
}
|
|
205
|
-
}), ue = /* @__PURE__ */ J(ee, [["__scopeId", "data-v-581ec7f4"]]);
|
|
1
|
+
import o from "../packages/components/lib/UIKit/BaseSlider.vue.js";
|
|
2
|
+
import '../assets/BaseSlider.css';/* empty css */
|
|
3
|
+
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-581ec7f4"]]);
|
|
206
5
|
export {
|
|
207
|
-
|
|
6
|
+
f as default
|
|
208
7
|
};
|
|
@@ -1,128 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import '../assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "value"], H = {
|
|
6
|
-
key: 0,
|
|
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__ */ T({
|
|
9
|
-
inheritAttrs: !1,
|
|
10
|
-
__name: "BaseTextarea",
|
|
11
|
-
props: /* @__PURE__ */ c({
|
|
12
|
-
labelText: { default: "" },
|
|
13
|
-
feedback: {},
|
|
14
|
-
isValid: { type: [Boolean, null], default: null },
|
|
15
|
-
resize: { type: Boolean, default: !1 },
|
|
16
|
-
labelClasses: {}
|
|
17
|
-
}, {
|
|
18
|
-
modelValue: { default: "" },
|
|
19
|
-
modelModifiers: {}
|
|
20
|
-
}),
|
|
21
|
-
emits: /* @__PURE__ */ c(["focusin", "focusout", "click", "keydown"], ["update:modelValue"]),
|
|
22
|
-
setup(e, { expose: m, emit: x }) {
|
|
23
|
-
const r = h(e, "modelValue"), k = x, {
|
|
24
|
-
labelState: l,
|
|
25
|
-
handleFocusIn: w,
|
|
26
|
-
handleFocusOut: y,
|
|
27
|
-
setFloatingLabel: g,
|
|
28
|
-
setInlineLabel: p
|
|
29
|
-
} = F(k), t = $(null);
|
|
30
|
-
L(
|
|
31
|
-
r,
|
|
32
|
-
(i) => {
|
|
33
|
-
`${i}`.length && l.value !== "floating-label" ? g() : !i?.length && l.value !== "inline-label" && document.activeElement !== t.value && p();
|
|
34
|
-
},
|
|
35
|
-
{ immediate: !0 }
|
|
36
|
-
);
|
|
37
|
-
const V = ({ target: i }) => {
|
|
38
|
-
r.value = i.value;
|
|
39
|
-
};
|
|
40
|
-
return m({
|
|
41
|
-
disableTextarea: () => {
|
|
42
|
-
t.value && (t.value.setAttribute("readonly", "readonly"), t.value.classList.add("disabled"));
|
|
43
|
-
},
|
|
44
|
-
clearTextareaElem: () => {
|
|
45
|
-
t.value && (t.value.value = "");
|
|
46
|
-
},
|
|
47
|
-
focusDisabledTextarea: () => {
|
|
48
|
-
t.value && (t.value.removeAttribute("readonly"), t.value.classList.remove("disabled"), B(() => {
|
|
49
|
-
t.value && t.value.focus();
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
}), (i, a) => (f(), b("div", {
|
|
53
|
-
class: s(i.$attrs["wrapper-classes"])
|
|
54
|
-
}, [
|
|
55
|
-
n("div", {
|
|
56
|
-
class: s(["input-wrapper uikit-relative uikit-rounded-xs uikit-px-0", [
|
|
57
|
-
u(l) === "floating-label" ? "floating-state" : "inline-state"
|
|
58
|
-
]])
|
|
59
|
-
}, [
|
|
60
|
-
n("textarea", {
|
|
61
|
-
id: i.$attrs.id,
|
|
62
|
-
ref_key: "textarea",
|
|
63
|
-
ref: t,
|
|
64
|
-
"data-cy": i.$attrs["data-cy"],
|
|
65
|
-
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", [
|
|
66
|
-
{ "is-invalid invalid-bg !uikit-pr-10": e.isValid === !1 },
|
|
67
|
-
{ "is-valid valid-bg !uikit-pr-10": e.isValid },
|
|
68
|
-
{ "uikit-resize-none": !e.resize },
|
|
69
|
-
i.$attrs.class
|
|
70
|
-
]]),
|
|
71
|
-
rows: i.$attrs.rows,
|
|
72
|
-
disabled: i.$attrs.disabled,
|
|
73
|
-
"aria-labelledby": i.$attrs.id,
|
|
74
|
-
readonly: i.$attrs.readonly,
|
|
75
|
-
onFocusin: a[0] || (a[0] = o((d) => u(w)(), ["stop"])),
|
|
76
|
-
onFocusout: a[1] || (a[1] = o((d) => u(y)(`${r.value}`.trim()), ["stop"])),
|
|
77
|
-
onInput: o(V, ["stop"]),
|
|
78
|
-
onKeydown: a[2] || (a[2] = o((d) => k("keydown", d), ["stop"])),
|
|
79
|
-
onClick: a[3] || (a[3] = (d) => k("click", d)),
|
|
80
|
-
value: r.value
|
|
81
|
-
}, null, 42, E),
|
|
82
|
-
n("fieldset", {
|
|
83
|
-
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", [
|
|
84
|
-
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid },
|
|
85
|
-
{ "uikit-border-w-danger": e.isValid === !1 },
|
|
86
|
-
{ "uikit-border-w-primary": e.isValid },
|
|
87
|
-
{ "uikit-border-w-secondary": e.isValid === null }
|
|
88
|
-
]])
|
|
89
|
-
}, [
|
|
90
|
-
e.labelText ? (f(), b("legend", H, [
|
|
91
|
-
n("span", {
|
|
92
|
-
class: s(["uikit-px-5px uikit-opacity-0", [
|
|
93
|
-
{
|
|
94
|
-
"uikit-visible uikit-inline-block": u(l) === "floating-label"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"uikit-invisible uikit-hidden": u(l) === "inline-label"
|
|
98
|
-
}
|
|
99
|
-
]]),
|
|
100
|
-
innerHTML: e.labelText
|
|
101
|
-
}, null, 10, I)
|
|
102
|
-
])) : v("", !0)
|
|
103
|
-
], 2),
|
|
104
|
-
M(C, {
|
|
105
|
-
for: i.$attrs.id,
|
|
106
|
-
"label-text": e.labelText,
|
|
107
|
-
"label-state": u(l),
|
|
108
|
-
required: i.$attrs.required,
|
|
109
|
-
"is-valid": e.isValid,
|
|
110
|
-
"label-classes": [
|
|
111
|
-
u(l) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
|
|
112
|
-
e.labelClasses
|
|
113
|
-
]
|
|
114
|
-
}, null, 8, ["for", "label-text", "label-state", "required", "is-valid", "label-classes"])
|
|
115
|
-
], 2),
|
|
116
|
-
(e.isValid || e.isValid === !1) && e.feedback ? (f(), b("div", {
|
|
117
|
-
key: 0,
|
|
118
|
-
class: s(
|
|
119
|
-
e.isValid === !1 ? "uikit-mt-1 uikit-text-12 uikit-text-w-danger" : "uikit-mt-1 uikit-text-12 uikit-text-w-primary"
|
|
120
|
-
),
|
|
121
|
-
innerHTML: e.isValid === !1 ? e.feedback.invalid : e.feedback.valid
|
|
122
|
-
}, null, 10, q)) : v("", !0)
|
|
123
|
-
], 2));
|
|
124
|
-
}
|
|
125
|
-
}), J = /* @__PURE__ */ z(A, [["__scopeId", "data-v-4c1a3e1d"]]);
|
|
1
|
+
import a from "../packages/components/lib/UIKit/BaseTextarea.vue.js";
|
|
2
|
+
import '../assets/BaseTextarea.css';/* empty css */
|
|
3
|
+
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ o(a, [["__scopeId", "data-v-4c1a3e1d"]]);
|
|
126
5
|
export {
|
|
127
|
-
|
|
6
|
+
m as default
|
|
128
7
|
};
|
package/dist/UIKit/BaseToggle.js
CHANGED
|
@@ -1,43 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
__name: "BaseToggle",
|
|
6
|
-
props: /* @__PURE__ */ n({
|
|
7
|
-
withRightLabel: { type: Boolean, default: !0 },
|
|
8
|
-
label: { default: "" }
|
|
9
|
-
}, {
|
|
10
|
-
modelValue: { type: Boolean, default: !1 },
|
|
11
|
-
modelModifiers: {}
|
|
12
|
-
}),
|
|
13
|
-
emits: ["update:modelValue"],
|
|
14
|
-
setup(o) {
|
|
15
|
-
const l = d(o, "modelValue"), u = ({ target: e }) => {
|
|
16
|
-
l.value = e.checked;
|
|
17
|
-
};
|
|
18
|
-
return (e, t) => (b(), k("div", {
|
|
19
|
-
class: c(["switch-container uikit-inline-block uikit-items-center", e.$attrs.class])
|
|
20
|
-
}, [
|
|
21
|
-
r(e.$slots, "leftLabel", {}, void 0, !0),
|
|
22
|
-
i("label", h, [
|
|
23
|
-
i("input", {
|
|
24
|
-
"data-cy": e.$attrs["data-cy"] ?? "",
|
|
25
|
-
class: "uikit-peer/toggle uikit-h-0 uikit-w-0 uikit-opacity-0",
|
|
26
|
-
type: "checkbox",
|
|
27
|
-
checked: l.value,
|
|
28
|
-
onInput: t[0] || (t[0] = m((a) => u(a), ["stop"]))
|
|
29
|
-
}, null, 40, g),
|
|
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
|
-
]),
|
|
32
|
-
o.withRightLabel ? r(e.$slots, "rightLabel", { key: 0 }, () => [
|
|
33
|
-
i("span", {
|
|
34
|
-
class: "uikit-ml-10px",
|
|
35
|
-
innerHTML: o.label
|
|
36
|
-
}, null, 8, w)
|
|
37
|
-
], !0) : f("", !0)
|
|
38
|
-
], 2));
|
|
39
|
-
}
|
|
40
|
-
}), B = /* @__PURE__ */ p(y, [["__scopeId", "data-v-1e6f488b"]]);
|
|
1
|
+
import o from "../packages/components/lib/UIKit/BaseToggle.vue.js";
|
|
2
|
+
import '../assets/BaseToggle.css';/* empty css */
|
|
3
|
+
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1e6f488b"]]);
|
|
41
5
|
export {
|
|
42
|
-
|
|
6
|
+
f as default
|
|
43
7
|
};
|
|
@@ -1,42 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
props: {
|
|
6
|
-
theme: { default: () => ({
|
|
7
|
-
color: "blue",
|
|
8
|
-
size: "sm"
|
|
9
|
-
}) },
|
|
10
|
-
direction: { default: "top" },
|
|
11
|
-
customTooltipClass: { default: "" },
|
|
12
|
-
showTooltipContentManually: { type: Boolean, default: !0 },
|
|
13
|
-
tooltipContentClasses: { default: "" }
|
|
14
|
-
},
|
|
15
|
-
setup(t) {
|
|
16
|
-
return (e, u) => (l(), o("div", d, [
|
|
17
|
-
s(e.$slots, "trigger", {}, void 0, !0),
|
|
18
|
-
n("div", {
|
|
19
|
-
class: a(["bg-transparent", [
|
|
20
|
-
t.theme.size,
|
|
21
|
-
`${t.customTooltipClass ? t.customTooltipClass : "tooltip-content-wrapper"}`
|
|
22
|
-
]])
|
|
23
|
-
}, [
|
|
24
|
-
t.showTooltipContentManually ? (l(), o("div", {
|
|
25
|
-
key: 0,
|
|
26
|
-
class: a(["tooltip-content uikit-shadow-lg uikit-shadow-w-primary/10", [
|
|
27
|
-
"base-tooltip-arrow",
|
|
28
|
-
t.direction,
|
|
29
|
-
t.theme.color,
|
|
30
|
-
t.theme.size,
|
|
31
|
-
t.tooltipContentClasses
|
|
32
|
-
]])
|
|
33
|
-
}, [
|
|
34
|
-
s(e.$slots, "content", {}, void 0, !0)
|
|
35
|
-
], 2)) : r("", !0)
|
|
36
|
-
], 2)
|
|
37
|
-
]));
|
|
38
|
-
}
|
|
39
|
-
}), C = /* @__PURE__ */ c(m, [["__scopeId", "data-v-2bb9040f"]]);
|
|
1
|
+
import o from "../packages/components/lib/UIKit/BaseTooltip.vue.js";
|
|
2
|
+
import '../assets/BaseTooltip.css';/* empty css */
|
|
3
|
+
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2bb9040f"]]);
|
|
40
5
|
export {
|
|
41
|
-
|
|
6
|
+
f as default
|
|
42
7
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "../../packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js";
|
|
2
|
+
import '../../assets/CheckboxBtn.css';/* empty css */
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
o as default
|
|
4
5
|
};
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
__name: "BaseShimmerLoader",
|
|
6
|
-
props: {
|
|
7
|
-
shimmerClasses: { default: "" }
|
|
8
|
-
},
|
|
9
|
-
setup(i) {
|
|
10
|
-
return (e, n) => (a(), r("div", {
|
|
11
|
-
class: t(["uikit-relative uikit-overflow-hidden uikit-bg-w-lavender", e.$attrs.class])
|
|
12
|
-
}, [
|
|
13
|
-
l("div", {
|
|
14
|
-
class: t(["shimmer uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-h-full -uikit-translate-x-full", i.shimmerClasses])
|
|
15
|
-
}, null, 2),
|
|
16
|
-
o(e.$slots, "default", {}, void 0, !0)
|
|
17
|
-
], 2));
|
|
18
|
-
}
|
|
19
|
-
}), f = /* @__PURE__ */ m(u, [["__scopeId", "data-v-eb2d6076"]]);
|
|
1
|
+
import o from "../../packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js";
|
|
2
|
+
import '../../assets/BaseShimmerLoader.css';/* empty css */
|
|
3
|
+
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-eb2d6076"]]);
|
|
20
5
|
export {
|
|
21
|
-
|
|
6
|
+
a as default
|
|
22
7
|
};
|
|
@@ -1,83 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
props: /* @__PURE__ */ L({
|
|
6
|
-
min: { default: 0 },
|
|
7
|
-
max: { default: 100 },
|
|
8
|
-
step: { default: 1 },
|
|
9
|
-
dataCy: {},
|
|
10
|
-
logarithmic: { type: Boolean, default: !1 }
|
|
11
|
-
}, {
|
|
12
|
-
modelValue: { default: 0 },
|
|
13
|
-
modelModifiers: {}
|
|
14
|
-
}),
|
|
15
|
-
emits: ["update:modelValue"],
|
|
16
|
-
setup(t) {
|
|
17
|
-
S((i) => ({
|
|
18
|
-
v0f43c897: r.value,
|
|
19
|
-
ec9c737a: s.value
|
|
20
|
-
}));
|
|
21
|
-
const u = T("customSlider"), l = y(t, "modelValue"), o = m(!1), s = m("50%"), r = m("50%"), c = (i = 0) => {
|
|
22
|
-
const e = t.logarithmic ? b(i) : x(i), a = (e - t.min) / (t.max - t.min), f = t.logarithmic ? h(e) : a * 100;
|
|
23
|
-
l.value = Math.round(e), s.value = `${Math.round(f)}%`, r.value = t.logarithmic ? `${Math.round(h(e))}%` : `${a * 100}%`;
|
|
24
|
-
}, x = (i = 0) => {
|
|
25
|
-
const e = Math.round((i - t.min) / t.step) * t.step + t.min;
|
|
26
|
-
return Math.max(t.min, Math.min(t.max, e));
|
|
27
|
-
}, k = (i = 0) => {
|
|
28
|
-
const e = Math.log10(t.min), a = Math.log10(t.max);
|
|
29
|
-
return Math.pow(10, e + i / 100 * (a - e));
|
|
30
|
-
}, h = (i = 0) => {
|
|
31
|
-
const e = Math.log10(t.min), a = Math.log10(t.max);
|
|
32
|
-
return (Math.log10(i) - e) / (a - e) * 100;
|
|
33
|
-
}, b = (i = 0) => {
|
|
34
|
-
if (t.step === 1)
|
|
35
|
-
return Math.max(t.min, Math.min(t.max, i));
|
|
36
|
-
const e = Math.pow(
|
|
37
|
-
10,
|
|
38
|
-
Math.round(Math.log10(i) / Math.log10(t.step)) * Math.log10(t.step)
|
|
39
|
-
);
|
|
40
|
-
return Math.max(t.min, Math.min(t.max, e));
|
|
41
|
-
}, v = (i) => {
|
|
42
|
-
if (!o.value || !u.value) return;
|
|
43
|
-
const e = u.value.getBoundingClientRect(), a = u.value.offsetWidth;
|
|
44
|
-
let n = ("touches" in i ? i.touches[0].clientX : i.clientX) - e.left;
|
|
45
|
-
n = Math.max(0, Math.min(a, n));
|
|
46
|
-
const w = t.logarithmic ? k(n / a * 100) : n / a * (t.max - t.min) + t.min;
|
|
47
|
-
c(w);
|
|
48
|
-
}, M = () => {
|
|
49
|
-
o.value = !0;
|
|
50
|
-
}, g = () => {
|
|
51
|
-
o.value = !1;
|
|
52
|
-
};
|
|
53
|
-
return E(
|
|
54
|
-
l,
|
|
55
|
-
(i) => {
|
|
56
|
-
c(i);
|
|
57
|
-
},
|
|
58
|
-
{ immediate: !0 }
|
|
59
|
-
), C(() => {
|
|
60
|
-
document.addEventListener("mousemove", v), document.addEventListener("mouseup", g), document.addEventListener("touchmove", v, { passive: !0 }), document.addEventListener("touchend", g, { passive: !0 });
|
|
61
|
-
}), (i, e) => ($(), X("div", null, [
|
|
62
|
-
d("div", {
|
|
63
|
-
ref: "customSlider",
|
|
64
|
-
class: "uikit-relative uikit-my-20px uikit-h-1 uikit-rounded-2xs uikit-bg-w-secondary",
|
|
65
|
-
role: "slider",
|
|
66
|
-
"aria-valuemin": t.min,
|
|
67
|
-
"aria-valuemax": t.max,
|
|
68
|
-
"aria-valuenow": l.value,
|
|
69
|
-
tabindex: "0"
|
|
70
|
-
}, [
|
|
71
|
-
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)),
|
|
72
|
-
d("div", {
|
|
73
|
-
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",
|
|
74
|
-
onMousedown: e[0] || (e[0] = (a) => M()),
|
|
75
|
-
onTouchstart: e[1] || (e[1] = B((a) => M(), ["prevent"]))
|
|
76
|
-
}, null, 32)
|
|
77
|
-
], 8, W)
|
|
78
|
-
]));
|
|
79
|
-
}
|
|
80
|
-
}), I = /* @__PURE__ */ D(P, [["__scopeId", "data-v-54b825e3"]]);
|
|
1
|
+
import o from "../../packages/components/lib/UIKit/Slider/SimpleSlider.vue.js";
|
|
2
|
+
import '../../assets/SimpleSlider.css';/* empty css */
|
|
3
|
+
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-54b825e3"]]);
|
|
81
5
|
export {
|
|
82
|
-
|
|
6
|
+
p as default
|
|
83
7
|
};
|
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
class: "icon-spin uikit-h-6 uikit-w-6"
|
|
6
|
-
}, i = ["stroke", "stroke-width"], a = /* @__PURE__ */ t({
|
|
7
|
-
__name: "StaticSpinner",
|
|
8
|
-
props: {
|
|
9
|
-
thickness: { default: 9 },
|
|
10
|
-
strokeColor: { default: "#fff" }
|
|
11
|
-
},
|
|
12
|
-
setup(e) {
|
|
13
|
-
return (l, f) => (s(), o("svg", r, [
|
|
14
|
-
c("circle", {
|
|
15
|
-
class: "path",
|
|
16
|
-
cx: "64",
|
|
17
|
-
cy: "64",
|
|
18
|
-
r: "42",
|
|
19
|
-
fill: "none",
|
|
20
|
-
stroke: e.strokeColor,
|
|
21
|
-
"stroke-width": e.thickness
|
|
22
|
-
}, null, 8, i)
|
|
23
|
-
]));
|
|
24
|
-
}
|
|
25
|
-
}), k = /* @__PURE__ */ n(a, [["__scopeId", "data-v-10e0c0fd"]]);
|
|
1
|
+
import t from "../packages/components/lib/UIKit/StaticSpinner.vue.js";
|
|
2
|
+
import '../assets/StaticSpinner.css';/* empty css */
|
|
3
|
+
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const c = /* @__PURE__ */ o(t, [["__scopeId", "data-v-10e0c0fd"]]);
|
|
26
5
|
export {
|
|
27
|
-
|
|
6
|
+
c as default
|
|
28
7
|
};
|