@wikicasa-dev/components 2.6.13 → 2.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UIKit/AccessibleSelect.js +5 -5
- package/dist/UIKit/AccessibleSelect.vue.js +217 -205
- package/dist/UIKit/Accordion/AccordionContentPrimitive.js +5 -4
- package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +19 -21
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +5 -4
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +18 -20
- package/dist/UIKit/Accordion/AccordionItemPrimitive.js +5 -4
- package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +21 -23
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +5 -4
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +19 -21
- package/dist/UIKit/Accordion/BaseAccordion.js +5 -4
- package/dist/UIKit/Accordion/BaseAccordion.vue.js +38 -36
- package/dist/UIKit/Accordion/BaseAccordionItem.js +5 -5
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +64 -81
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +5 -5
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +232 -226
- package/dist/UIKit/BaseAlert.js +5 -5
- package/dist/UIKit/BaseAlert.vue.js +14 -18
- package/dist/UIKit/BaseAutocomplete.js +5 -5
- package/dist/UIKit/BaseAutocomplete.vue.js +197 -194
- package/dist/UIKit/BaseBadge.js +5 -5
- package/dist/UIKit/BaseBadge.vue.js +17 -17
- package/dist/UIKit/BaseBreadcrumb.js +5 -4
- package/dist/UIKit/BaseBreadcrumb.vue.js +39 -56
- package/dist/UIKit/BaseButton.js +5 -4
- package/dist/UIKit/BaseButton.vue.js +93 -87
- package/dist/UIKit/BaseComplexToggle.js +5 -6
- package/dist/UIKit/BaseComplexToggle.vue.js +87 -105
- package/dist/UIKit/BaseDropDown.js +5 -5
- package/dist/UIKit/BaseDropDown.vue.js +171 -152
- package/dist/UIKit/BaseFloatingLabel.js +6 -7
- package/dist/UIKit/BaseFloatingLabel.vue.js +43 -39
- package/dist/UIKit/BaseInput.js +6 -7
- package/dist/UIKit/BaseInput.vue.js +191 -210
- package/dist/UIKit/BaseModal.js +5 -5
- package/dist/UIKit/BaseModal.vue.js +160 -169
- package/dist/UIKit/BasePagination.js +5 -4
- package/dist/UIKit/BasePagination.vue.js +192 -229
- package/dist/UIKit/BaseSelect/SelectItem.js +5 -4
- package/dist/UIKit/BaseSelect/SelectItem.vue.js +34 -41
- package/dist/UIKit/BaseSlider.js +6 -7
- package/dist/UIKit/BaseSlider.vue.js +153 -203
- package/dist/UIKit/BaseSnackbar.js +5 -5
- package/dist/UIKit/BaseSnackbar.vue.js +144 -146
- package/dist/UIKit/BaseTextarea.js +5 -6
- package/dist/UIKit/BaseTextarea.vue.js +118 -126
- package/dist/UIKit/BaseToggle.js +5 -4
- package/dist/UIKit/BaseToggle.vue.js +37 -38
- package/dist/UIKit/BaseTooltip.js +6 -7
- package/dist/UIKit/BaseTooltip.vue.js +31 -40
- package/dist/UIKit/BaseUploadFile.js +5 -4
- package/dist/UIKit/BaseUploadFile.vue.js +63 -70
- package/dist/UIKit/Card/BaseCard.js +5 -5
- package/dist/UIKit/Card/BaseCard.vue.js +23 -36
- package/dist/UIKit/Card/CardDescriptionPrimitive.js +9 -11
- package/dist/UIKit/Card/CardImagePrimitive.js +5 -4
- package/dist/UIKit/Card/CardImagePrimitive.vue.js +11 -15
- package/dist/UIKit/Card/CardRootPrimitive.js +5 -5
- package/dist/UIKit/Card/CardRootPrimitive.vue.js +22 -26
- package/dist/UIKit/Card/type.js +4 -4
- package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -5
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +76 -81
- package/dist/UIKit/Checkbox/CheckboxGroup.js +5 -4
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +137 -116
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +5 -4
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +71 -77
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +5 -4
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +32 -34
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +5 -4
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +32 -34
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.js +5 -4
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +15 -15
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.js +5 -4
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +29 -31
- package/dist/UIKit/Radio/RadioButton.js +5 -4
- package/dist/UIKit/Radio/RadioButton.vue.js +51 -59
- package/dist/UIKit/Radio/RadioGroup.js +5 -4
- package/dist/UIKit/Radio/RadioGroup.vue.js +67 -63
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +5 -4
- package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +38 -47
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +5 -5
- package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +42 -44
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.js +5 -4
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +28 -30
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +6 -7
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +19 -19
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +5 -4
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +41 -30
- package/dist/UIKit/Slider/SimpleSlider.js +6 -7
- package/dist/UIKit/Slider/SimpleSlider.vue.js +74 -81
- package/dist/UIKit/StaticSpinner.js +6 -7
- package/dist/UIKit/StaticSpinner.vue.js +24 -26
- package/dist/UIKit/Tab/BaseTab.js +5 -4
- package/dist/UIKit/Tab/BaseTab.vue.js +14 -14
- package/dist/UIKit/Tab/BaseTabList.js +5 -4
- package/dist/UIKit/Tab/BaseTabList.vue.js +45 -44
- package/dist/UIKit/Tab/BaseTabPanel.js +5 -4
- package/dist/UIKit/Tab/BaseTabPanel.vue.js +27 -24
- package/dist/UIKit/Tab/BaseTabView.js +5 -4
- package/dist/UIKit/Tab/BaseTabView.vue.js +107 -105
- package/dist/UIKit/Tab/v2/BaseTabs.js +5 -5
- package/dist/UIKit/Tab/v2/BaseTabs.vue.js +34 -38
- package/dist/UIKit/Tab/v2/BaseTabsContent.js +5 -4
- package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +21 -23
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +5 -5
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +24 -33
- package/dist/UIKit/Tab/v2/BaseTabsList.js +5 -4
- package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +20 -22
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +5 -4
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +21 -30
- package/dist/UIKit/types.js +0 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +7 -8
- package/dist/assets/AccessibleSelect.css +1 -1
- package/dist/assets/BaseAccordionItem.css +1 -1
- package/dist/assets/BaseAutocomplete.css +1 -1
- package/dist/assets/BaseBadge.css +1 -1
- package/dist/assets/BaseComplexToggle2.css +1 -1
- package/dist/assets/BaseDropDown.css +1 -1
- package/dist/assets/BaseFloatingLabel2.css +1 -1
- package/dist/assets/BaseInput2.css +1 -1
- package/dist/assets/BaseShimmerLoader.css +1 -1
- package/dist/assets/BaseSlider2.css +1 -1
- package/dist/assets/BaseSnackbar.css +1 -1
- package/dist/assets/BaseTabs.css +1 -1
- package/dist/assets/BaseTextarea2.css +1 -1
- package/dist/assets/BaseTooltip2.css +1 -1
- package/dist/assets/CheckboxBtn.css +1 -1
- package/dist/assets/ClearableAutocomplete.css +1 -1
- package/dist/assets/RadioButtonItem.css +1 -1
- package/dist/assets/StaticSpinner.css +1 -1
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/baseAlert.css +1 -1
- package/dist/assets/baseCard.css +1 -1
- package/dist/assets/baseComplexToggle.css +1 -1
- package/dist/assets/baseFloatingLabel.css +1 -1
- package/dist/assets/baseInput.css +1 -1
- package/dist/assets/baseModal.css +1 -1
- package/dist/assets/baseSlider.css +1 -1
- package/dist/assets/baseSpinner.css +1 -1
- package/dist/assets/baseTextarea.css +1 -1
- package/dist/assets/baseTooltip.css +1 -1
- package/dist/assets/swiper-free-mode.css +1 -1
- package/dist/assets/swiper-navigation.css +1 -1
- package/dist/assets/swiper-pagination.css +1 -1
- package/dist/assets/swiper-swiper.css +1 -1
- package/dist/assets/swiper-thumbs.css +1 -0
- package/dist/assets/swiper-zoom.css +1 -1
- package/dist/assets/swiperPaginationBullet.css +1 -1
- package/dist/assets/tailwind.css +1 -1
- package/dist/chart/DoughnutChart.js +5 -4
- package/dist/chart/DoughnutChart.vue.js +25 -25
- package/dist/chart/LineChart.js +5 -4
- package/dist/chart/LineChart.vue.js +27 -29
- package/dist/components/IntersectionObserver/IntersectionObservable.js +5 -4
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +24 -23
- package/dist/components/IntersectionObserver/IntersectionObserver.js +5 -4
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +55 -49
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.js +5 -4
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +43 -38
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.js +5 -4
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +27 -30
- package/dist/components/IntersectionObserver/v2/types.js +4 -6
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.js +5 -4
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +30 -38
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +5 -4
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +28 -32
- package/dist/components/carousel/Primitive/SwiperPrimitive.js +5 -4
- package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +16 -20
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +5 -10
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +82 -112
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +5 -5
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +44 -39
- package/dist/components/carousel/SwiperCarousel.js +6 -7
- package/dist/components/carousel/SwiperCarousel.vue.js +195 -229
- package/dist/components/carousel/SwiperSlide.js +9 -13
- package/dist/composables/mock.js +50 -48
- package/dist/composables/useFloatingLabel.js +32 -32
- package/dist/composables/useValidator.js +5 -7
- package/dist/index.js +67 -150
- package/dist/lazyModules/ChartJs/Chart.js +2 -4
- package/dist/lazyModules/ChartJs/DoughnutChart/core.js +5 -6
- package/dist/lazyModules/ChartJs/LineChart/cartesian.js +5 -6
- package/dist/lazyModules/ChartJs/LineChart/core.js +5 -6
- package/dist/lazyModules/ChartJs/Plugins/Legend.js +4 -2
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.js +4 -2
- package/dist/lazyModules/ChartJs/Plugins/Title.js +4 -2
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.js +4 -2
- package/dist/lazyModules/Swiper/Autoplay/factory.js +6 -8
- package/dist/lazyModules/Swiper/Autoplay/index.js +3 -6
- package/dist/lazyModules/Swiper/Controller/factory.js +6 -6
- package/dist/lazyModules/Swiper/Controller/index.js +3 -6
- package/dist/lazyModules/Swiper/FreeMode/factory.js +6 -8
- package/dist/lazyModules/Swiper/FreeMode/index.js +3 -6
- package/dist/lazyModules/Swiper/Keyboard/factory.js +6 -8
- package/dist/lazyModules/Swiper/Keyboard/index.js +3 -6
- package/dist/lazyModules/Swiper/Navigation/factory.js +6 -8
- package/dist/lazyModules/Swiper/Navigation/index.js +3 -6
- package/dist/lazyModules/Swiper/Pagination/factory.js +6 -6
- package/dist/lazyModules/Swiper/Pagination/index.js +3 -6
- package/dist/lazyModules/Swiper/Thumbs/factory.js +6 -6
- package/dist/lazyModules/Swiper/Thumbs/index.js +3 -6
- package/dist/lazyModules/Swiper/Zoom/factory.js +6 -8
- package/dist/lazyModules/Swiper/Zoom/index.js +3 -6
- package/dist/lazyModules/Swiper/factory.js +9 -12
- package/dist/lazyModules/Swiper/index.js +2 -4
- package/dist/lazyModules/Swiper/swiper-css.d.js +0 -1
- package/dist/lazyModules/Swiper/types.js +0 -1
- package/dist/lazyModules/VueChartJs/Doughnut/factory.js +8 -11
- package/dist/lazyModules/VueChartJs/Doughnut/index.js +2 -5
- package/dist/lazyModules/VueChartJs/Line/factory.js +8 -13
- package/dist/lazyModules/VueChartJs/Line/index.js +2 -5
- package/dist/types/index.js +0 -1
- package/dist/types.js +0 -1
- package/dist/utils.js +4 -5
- package/package.json +6 -6
|
@@ -1,211 +1,192 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
"label-text-classes": e.labelTextClasses
|
|
191
|
-
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : x("", !0),
|
|
192
|
-
h(t.$slots, "feedback", {}, () => [
|
|
193
|
-
e.isValid === !1 ? (u(!0), r(C, { key: 0 }, T(f.value.invalid, (l, w) => (u(), r("div", {
|
|
194
|
-
key: `${b.value}_invalid_${w}`,
|
|
195
|
-
class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
|
|
196
|
-
innerHTML: l
|
|
197
|
-
}, null, 8, p))), 128)) : e.isValid === !0 ? (u(!0), r(C, { key: 1 }, T(f.value.valid, (l, w) => (u(), r("div", {
|
|
198
|
-
key: `${b.value}_valid_${w}`,
|
|
199
|
-
class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
|
|
200
|
-
innerHTML: l
|
|
201
|
-
}, null, 8, _))), 128)) : x("", !0)
|
|
202
|
-
], !0),
|
|
203
|
-
t.$slots["under-label"] ? (u(), r("div", ee, [
|
|
204
|
-
h(t.$slots, "under-label", {}, void 0, !0)
|
|
205
|
-
])) : x("", !0)
|
|
206
|
-
], 2));
|
|
207
|
-
}
|
|
1
|
+
import e from "./BaseFloatingLabel.js";
|
|
2
|
+
import { useFloatingLabel as t } from "../composables/useFloatingLabel.js";
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, mergeModels as l, normalizeClass as u, openBlock as d, ref as f, renderList as p, renderSlot as m, unref as h, useAttrs as g, useId as _, useModel as v, watch as y, withKeys as b, withModifiers as x } from "vue";
|
|
4
|
+
import '../assets/BaseInput2.css';//#region lib/UIKit/BaseInput.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var S = [
|
|
6
|
+
"id",
|
|
7
|
+
"data-cy",
|
|
8
|
+
"name",
|
|
9
|
+
"autocomplete",
|
|
10
|
+
"disabled",
|
|
11
|
+
"readonly",
|
|
12
|
+
"type",
|
|
13
|
+
"pattern",
|
|
14
|
+
"min",
|
|
15
|
+
"max",
|
|
16
|
+
"maxlength",
|
|
17
|
+
"inputmode",
|
|
18
|
+
"placeholder",
|
|
19
|
+
"value"
|
|
20
|
+
], C = { class: "uikit-invisible uikit-float-none uikit-mb-2 uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-transition-[max-width] uikit-duration-[50ms] uikit-ease-out" }, w = ["innerHTML"], T = ["innerHTML"], E = ["innerHTML"], D = {
|
|
21
|
+
key: 1,
|
|
22
|
+
class: "under-label uikit-absolute uikit-text-12"
|
|
23
|
+
}, O = /*@__PURE__*/ c({
|
|
24
|
+
inheritAttrs: !1,
|
|
25
|
+
__name: "BaseInput",
|
|
26
|
+
props: /*@__PURE__*/ l({
|
|
27
|
+
id: {},
|
|
28
|
+
inputClass: {},
|
|
29
|
+
labelText: { default: "" },
|
|
30
|
+
feedback: {},
|
|
31
|
+
isValid: {
|
|
32
|
+
type: [Boolean, null],
|
|
33
|
+
default: null
|
|
34
|
+
},
|
|
35
|
+
keepFloatingLabel: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !1
|
|
38
|
+
},
|
|
39
|
+
formatter: { default: null },
|
|
40
|
+
labelClasses: {},
|
|
41
|
+
fieldsetClasses: {},
|
|
42
|
+
labelTextClasses: {},
|
|
43
|
+
withLeftIcon: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: () => void 0
|
|
46
|
+
},
|
|
47
|
+
withRightIcon: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: () => void 0
|
|
50
|
+
},
|
|
51
|
+
dataCy: {}
|
|
52
|
+
}, {
|
|
53
|
+
modelValue: { default: "" },
|
|
54
|
+
modelModifiers: {}
|
|
55
|
+
}),
|
|
56
|
+
emits: /*@__PURE__*/ l([
|
|
57
|
+
"click",
|
|
58
|
+
"keydownEnterPressed",
|
|
59
|
+
"focusin",
|
|
60
|
+
"focusout",
|
|
61
|
+
"keydown",
|
|
62
|
+
"keyup"
|
|
63
|
+
], ["update:modelValue"]),
|
|
64
|
+
setup(c, { expose: l, emit: O }) {
|
|
65
|
+
let k = v(c, "modelValue"), A = f(""), j = O, { labelState: M, handleFocusIn: N, handleFocusOut: P, setInlineLabel: F, setFloatingLabel: I } = t(j), L = _(), R = r(() => c.id || L), z = f("text"), B = f({}), V = f(null), H = () => {
|
|
66
|
+
c.feedback && (B.value = c.feedback, c.feedback.valid && typeof c.feedback.valid == "string" && (B.value.valid = [c.feedback.valid]), c.feedback.invalid && typeof c.feedback.invalid == "string" && (B.value.invalid = [c.feedback.invalid]));
|
|
67
|
+
}, U = (e, t) => {
|
|
68
|
+
if (!c.formatter || !c.formatter.formatFn) return A.value = e, "";
|
|
69
|
+
let n = e.length ? c.formatter.formatFn(e) : e;
|
|
70
|
+
return t && (t.value = n), A.value = n, n;
|
|
71
|
+
}, W = (e, t = !0) => {
|
|
72
|
+
if (t && (!c.formatter || !c.formatter.unFormatFn)) return k.value = e, e;
|
|
73
|
+
if (!t || !c.formatter || !c.formatter.unFormatFn) return;
|
|
74
|
+
let n = c.formatter.unFormatFn(e);
|
|
75
|
+
return k.value = n ?? "", n;
|
|
76
|
+
}, G = ({ target: e }) => {
|
|
77
|
+
let t = e, n = W(t.value);
|
|
78
|
+
U(`${n}`, n === k.value ? t : void 0);
|
|
79
|
+
}, K = () => {
|
|
80
|
+
k.value = "", F();
|
|
81
|
+
}, q = () => {
|
|
82
|
+
z.value === "password" ? z.value = "text" : z.value === "text" && (z.value = "password");
|
|
83
|
+
};
|
|
84
|
+
return y(() => c.feedback, () => {
|
|
85
|
+
H();
|
|
86
|
+
}, { immediate: !0 }), y(k, (e) => {
|
|
87
|
+
U(`${e}`, W(`${e}`, !1) === e ? V.value : void 0), A.value != null && A.value.length > 0 && M.value !== "floating-label" ? I() : !A.value && document && document.activeElement !== V.value && F();
|
|
88
|
+
}, { immediate: !0 }), y(() => c.keepFloatingLabel, (e) => {
|
|
89
|
+
e ? I() : P(k.value);
|
|
90
|
+
}), z.value = g().type || "text", l({ select: () => {
|
|
91
|
+
V.value?.select();
|
|
92
|
+
} }), (t, r) => (d(), o("div", { class: u(["input-wrapper uikit-relative uikit-inline-block uikit-w-full [&.has-right-icon.is-invalid_.text-input-icon]:uikit-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:uikit-mr-25px", [
|
|
93
|
+
t.$attrs.class,
|
|
94
|
+
{ "floating-label": c.labelText },
|
|
95
|
+
h(M) === "floating-label" ? "floating-state" : "inline-state",
|
|
96
|
+
{ "has-right-icon": c.withRightIcon === void 0 ? !!t.$slots.righticon : c.withRightIcon },
|
|
97
|
+
{ "has-left-icon": c.withLeftIcon === void 0 ? !!t.$slots.leftIcon : c.withLeftIcon },
|
|
98
|
+
{
|
|
99
|
+
"is-invalid": c.isValid === !1,
|
|
100
|
+
"is-valid": c.isValid
|
|
101
|
+
}
|
|
102
|
+
]]) }, [
|
|
103
|
+
m(t.$slots, "leftIcon", {}, void 0, !0),
|
|
104
|
+
m(t.$slots, "righticon", {
|
|
105
|
+
handleClean: K,
|
|
106
|
+
handleShowPasswd: q,
|
|
107
|
+
curType: z.value
|
|
108
|
+
}, void 0, !0),
|
|
109
|
+
s("input", {
|
|
110
|
+
id: R.value,
|
|
111
|
+
ref_key: "baseInputEl",
|
|
112
|
+
ref: V,
|
|
113
|
+
"data-cy": c.dataCy,
|
|
114
|
+
name: t.$attrs.name,
|
|
115
|
+
class: u(["input-element uikit-peer uikit-relative uikit-ml-[1px] uikit-mt-[6px] uikit-box-border uikit-block uikit-h-[42px] uikit-w-[calc(100%-2px)] uikit-appearance-none uikit-truncate uikit-rounded-[11px] !uikit-border-none uikit-bg-white uikit-bg-no-repeat uikit-px-4 uikit-outline-0 focus:uikit-shadow-none focus:uikit-outline-none disabled:uikit-bg-w-cultured disabled:uikit-text-w-secondary", [
|
|
116
|
+
{
|
|
117
|
+
"is-invalid invalid-bg !uikit-pr-9": c.isValid === !1,
|
|
118
|
+
"is-valid valid-bg !uikit-pr-9": c.isValid
|
|
119
|
+
},
|
|
120
|
+
{ "uikit-pr-[42px]": c.withRightIcon === void 0 ? !!t.$slots.righticon : c.withRightIcon },
|
|
121
|
+
{ "uikit-pl-[42px]": c.withLeftIcon === void 0 ? !!t.$slots.leftIcon : c.withLeftIcon },
|
|
122
|
+
c.inputClass
|
|
123
|
+
]]),
|
|
124
|
+
autocomplete: t.$attrs.autocomplete === "on" ? "on" : "off",
|
|
125
|
+
disabled: t.$attrs.disabled,
|
|
126
|
+
readonly: t.$attrs.readonly,
|
|
127
|
+
type: z.value,
|
|
128
|
+
pattern: t.$attrs.pattern,
|
|
129
|
+
min: t.$attrs.min,
|
|
130
|
+
max: t.$attrs.max,
|
|
131
|
+
maxlength: t.$attrs.maxlength,
|
|
132
|
+
inputmode: t.$attrs.inputmode,
|
|
133
|
+
placeholder: t.$attrs.placeholder,
|
|
134
|
+
value: A.value,
|
|
135
|
+
onClick: r[0] ||= (e) => j("click", e),
|
|
136
|
+
onFocusin: r[1] ||= () => c.labelText && h(N)(),
|
|
137
|
+
onFocusout: r[2] ||= (e) => c.labelText && !c.keepFloatingLabel && h(P)(A.value),
|
|
138
|
+
onInput: x(G, ["stop"]),
|
|
139
|
+
onKeydown: [r[3] ||= b(() => j("keydownEnterPressed"), ["enter"]), r[4] ||= (e) => j("keydown", e)],
|
|
140
|
+
onKeyup: r[5] ||= (e) => j("keyup", e)
|
|
141
|
+
}, null, 42, S),
|
|
142
|
+
s("fieldset", { class: u(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 uikit-py-0 uikit-text-left uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus:uikit-border-2 peer-focus:uikit-border-w-primary peer-focus:[&.is-invalid]:uikit-border-w-danger", [
|
|
143
|
+
{
|
|
144
|
+
"is-invalid uikit-border-w-danger": c.isValid === !1,
|
|
145
|
+
"is-valid uikit-border-w-primary": c.isValid,
|
|
146
|
+
"uikit-border-w-secondary": c.isValid === null
|
|
147
|
+
},
|
|
148
|
+
{ "uikit-top-0": !c.labelText },
|
|
149
|
+
c.fieldsetClasses
|
|
150
|
+
]]) }, [s("legend", C, [s("span", {
|
|
151
|
+
class: u(["visible-label uikit-opacity-0", [
|
|
152
|
+
{ "uikit-mx-5px": c.labelText },
|
|
153
|
+
{ "uikit-visible uikit-inline-block": h(M) === "floating-label" },
|
|
154
|
+
{ "uikit-invisible uikit-hidden": h(M) === "inline-label" }
|
|
155
|
+
]]),
|
|
156
|
+
innerHTML: c.labelText
|
|
157
|
+
}, null, 10, w)])], 2),
|
|
158
|
+
c.labelText ? (d(), i(e, {
|
|
159
|
+
key: 0,
|
|
160
|
+
for: R.value,
|
|
161
|
+
"label-text": c.labelText,
|
|
162
|
+
"label-state": h(M),
|
|
163
|
+
"is-valid": c.isValid,
|
|
164
|
+
required: t.$attrs.required,
|
|
165
|
+
disabled: t.$attrs.disabled,
|
|
166
|
+
"label-classes": [h(M) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4", c.labelClasses],
|
|
167
|
+
"label-text-classes": c.labelTextClasses
|
|
168
|
+
}, null, 8, [
|
|
169
|
+
"for",
|
|
170
|
+
"label-text",
|
|
171
|
+
"label-state",
|
|
172
|
+
"is-valid",
|
|
173
|
+
"required",
|
|
174
|
+
"disabled",
|
|
175
|
+
"label-classes",
|
|
176
|
+
"label-text-classes"
|
|
177
|
+
])) : a("", !0),
|
|
178
|
+
m(t.$slots, "feedback", {}, () => [c.isValid === !1 ? (d(!0), o(n, { key: 0 }, p(B.value.invalid, (e, t) => (d(), o("div", {
|
|
179
|
+
key: `${R.value}_invalid_${t}`,
|
|
180
|
+
class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
|
|
181
|
+
innerHTML: e
|
|
182
|
+
}, null, 8, T))), 128)) : c.isValid === !0 ? (d(!0), o(n, { key: 1 }, p(B.value.valid, (e, t) => (d(), o("div", {
|
|
183
|
+
key: `${R.value}_valid_${t}`,
|
|
184
|
+
class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
|
|
185
|
+
innerHTML: e
|
|
186
|
+
}, null, 8, E))), 128)) : a("", !0)], !0),
|
|
187
|
+
t.$slots["under-label"] ? (d(), o("div", D, [m(t.$slots, "under-label", {}, void 0, !0)])) : a("", !0)
|
|
188
|
+
], 2));
|
|
189
|
+
}
|
|
208
190
|
});
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
};
|
|
191
|
+
//#endregion
|
|
192
|
+
export { O as default };
|
package/dist/UIKit/BaseModal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
1
|
+
import e from "./BaseModal.vue.js";
|
|
2
|
+
//#region lib/UIKit/BaseModal.vue
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as default };
|