@wikicasa-dev/components 2.6.13 → 2.6.14-alpha.0
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 +8 -8
|
@@ -1,195 +1,198 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { debounce as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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
|
-
|
|
191
|
-
|
|
1
|
+
import e from "./BaseSelect/SelectItem.js";
|
|
2
|
+
import t from "./BaseDropDown.js";
|
|
3
|
+
import n from "./BaseInput.js";
|
|
4
|
+
import { Fragment as r, computed as i, createBlock as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, mergeModels as u, normalizeClass as d, onBeforeMount as f, openBlock as p, renderList as m, renderSlot as h, shallowRef as g, unref as _, useModel as v, useTemplateRef as y, watch as b, withCtx as x } from "vue";
|
|
5
|
+
import { debounce as S } from "@wikicasa-dev/utilities";
|
|
6
|
+
import { useKeyboardController as C } from "@wikicasa-dev/vue-composables";
|
|
7
|
+
import '../assets/BaseAutocomplete.css';//#region lib/UIKit/BaseAutocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var w = ["innerHTML"], T = /*@__PURE__*/ l({
|
|
9
|
+
__name: "BaseAutocomplete",
|
|
10
|
+
props: /*@__PURE__*/ u({
|
|
11
|
+
isValid: {
|
|
12
|
+
type: [Boolean, null],
|
|
13
|
+
default: null
|
|
14
|
+
},
|
|
15
|
+
theme: { default: "" },
|
|
16
|
+
label: { default: "" },
|
|
17
|
+
disableCb: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
onInputChangeCb: { type: Function },
|
|
22
|
+
onOptionSelectedCb: {
|
|
23
|
+
type: [Function, null],
|
|
24
|
+
default: null
|
|
25
|
+
},
|
|
26
|
+
keepState: { default: null },
|
|
27
|
+
cleanupOnClose: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !0
|
|
30
|
+
},
|
|
31
|
+
dropdownClasses: { default: "" },
|
|
32
|
+
closeDropdownOnBodyPressed: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !0
|
|
35
|
+
},
|
|
36
|
+
inputClasses: {},
|
|
37
|
+
fieldsetClasses: {},
|
|
38
|
+
dataCy: { default: "" }
|
|
39
|
+
}, {
|
|
40
|
+
modelValue: { default() {
|
|
41
|
+
return {
|
|
42
|
+
id: "",
|
|
43
|
+
label: ""
|
|
44
|
+
};
|
|
45
|
+
} },
|
|
46
|
+
modelModifiers: {}
|
|
47
|
+
}),
|
|
48
|
+
emits: /*@__PURE__*/ u([
|
|
49
|
+
"update:dropdownState",
|
|
50
|
+
"changedValue",
|
|
51
|
+
"click",
|
|
52
|
+
"keydown",
|
|
53
|
+
"keydownEnterPressed"
|
|
54
|
+
], ["update:modelValue"]),
|
|
55
|
+
setup(l, { expose: u, emit: T }) {
|
|
56
|
+
let E = v(l, "modelValue"), D = T, O = g(""), k = g([]), A = g(null), j = g(!1), M = g(!1), N = y("baseInput"), P = i(() => k.value.length);
|
|
57
|
+
f(() => {
|
|
58
|
+
A.value = S({ delay: 300 }, l.onInputChangeCb);
|
|
59
|
+
});
|
|
60
|
+
let { activeIdx: F, selectedIdx: I } = C({
|
|
61
|
+
optionsLength: P,
|
|
62
|
+
isDropdownOpen: M,
|
|
63
|
+
disableSpaceHandler: !0
|
|
64
|
+
}), L = i(() => {
|
|
65
|
+
switch (l.theme) {
|
|
66
|
+
case "bordered": return "";
|
|
67
|
+
case "all-bordered": return "!uikit-rounded " + (M.value && "!uikit-rounded-b-none");
|
|
68
|
+
case "all-bordered-thick": return "!uikit-rounded-xl !uikit-h-[52px] " + (M.value && "!uikit-rounded-b-none");
|
|
69
|
+
default: return "";
|
|
70
|
+
}
|
|
71
|
+
}), R = i(() => {
|
|
72
|
+
switch (l.theme) {
|
|
73
|
+
case "bordered": return "";
|
|
74
|
+
case "all-bordered": return "uikit-border uikit-border-w-lavender uikit-border-solid !uikit-rounded !uikit-border-w-lavender !uikit-border " + (M.value ? "!uikit-border-b-0 !uikit-rounded-b-none" : "");
|
|
75
|
+
case "all-bordered-thick": return "!uikit-rounded-xl !uikit-h-[60px] !uikit-border-w-lavender !uikit-border-none " + (M.value ? "!uikit-rounded-b-none" : "");
|
|
76
|
+
default: return "";
|
|
77
|
+
}
|
|
78
|
+
}), z = i(() => {
|
|
79
|
+
switch (l.theme) {
|
|
80
|
+
case "bordered": 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";
|
|
81
|
+
case "all-bordered": return "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";
|
|
82
|
+
case "all-bordered-thick": return "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 !uikit-border-0";
|
|
83
|
+
default: return "";
|
|
84
|
+
}
|
|
85
|
+
}), B = async (e) => {
|
|
86
|
+
if (O.value !== e && (D("changedValue", e), O.value = e, l.onInputChangeCb)) {
|
|
87
|
+
if (!e || j.value) {
|
|
88
|
+
k.value = [], j.value = !1, I.value = -1, F.value = -1, E.value && (E.value.label = ""), M.value = !1, await A.value?.(null);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
l.disableCb || (k.value = await A.value?.(e) || [], M.value = !!k.value.length);
|
|
92
|
+
}
|
|
93
|
+
}, V = (e, t) => {
|
|
94
|
+
l.onOptionSelectedCb && l.onOptionSelectedCb(e), l.cleanupOnClose && (k.value = []), j.value = !0, O.value = e.label, E.value = e, M.value = !1, I.value = t;
|
|
95
|
+
}, H = () => {
|
|
96
|
+
k.value.length && l.keepState !== "closed" && (M.value = !0);
|
|
97
|
+
};
|
|
98
|
+
return b(E, (e, t) => {
|
|
99
|
+
e === t || e?.label === O.value || (O.value = e?.label || "");
|
|
100
|
+
}, { immediate: !0 }), b(I, (e) => {
|
|
101
|
+
if (e === -1 || !k.value.length) return;
|
|
102
|
+
let t = k.value[e];
|
|
103
|
+
j.value && t.label === E.value?.label || V(t, e);
|
|
104
|
+
}), b(() => l.keepState, (e) => {
|
|
105
|
+
e === "closed" ? (M.value = !1, l.cleanupOnClose && (k.value = [])) : e === "open" && k.value.length && (M.value = !0);
|
|
106
|
+
}), b(M, (e) => {
|
|
107
|
+
D("update:dropdownState", e);
|
|
108
|
+
}), u({ select: () => {
|
|
109
|
+
N.value?.select();
|
|
110
|
+
} }), (i, u) => (p(), a(t, {
|
|
111
|
+
class: d(["uikit-autocomplete", i.$attrs["root-classes"]]),
|
|
112
|
+
"data-cy": l.dataCy ? l.dataCy : `ac_${i.$attrs.id}`,
|
|
113
|
+
"dropdown-element": "ul",
|
|
114
|
+
"dropdown-classes": [
|
|
115
|
+
{ "bordered-dropdown": l.theme === "bordered" },
|
|
116
|
+
{ "all-bordered-dropdown": l.theme === "all-bordered" },
|
|
117
|
+
{ "all-bordered-dropdown thick": l.theme === "all-bordered-thick" },
|
|
118
|
+
{ "uikit-mt-10px !uikit-border !uikit-border-w-secondary !uikit-rounded-xs": !l.theme },
|
|
119
|
+
z.value,
|
|
120
|
+
"uikit-z-30",
|
|
121
|
+
l.dropdownClasses
|
|
122
|
+
],
|
|
123
|
+
open: M.value,
|
|
124
|
+
"keep-state": !k.value.length || l.keepState === "closed" ? "closed" : "opened",
|
|
125
|
+
"close-when-clicked-outside": l.closeDropdownOnBodyPressed,
|
|
126
|
+
"activate-keyboard-controller": !1,
|
|
127
|
+
"onUpdate:open": u[3] ||= (e) => M.value = e,
|
|
128
|
+
onClick: u[4] ||= (e) => {
|
|
129
|
+
D("click"), H();
|
|
130
|
+
}
|
|
131
|
+
}, {
|
|
132
|
+
btn_slot: x(() => [c(n, {
|
|
133
|
+
id: i.$attrs.id ? `ac_input_${i.$attrs.id}` : "",
|
|
134
|
+
ref: "baseInput",
|
|
135
|
+
"data-cy": l.dataCy ? `ac_input_${l.dataCy}` : `ac_input_${i.$attrs.id}`,
|
|
136
|
+
"label-text": l.label,
|
|
137
|
+
"model-value": O.value,
|
|
138
|
+
"is-valid": l.isValid,
|
|
139
|
+
disabled: i.$attrs.disabled,
|
|
140
|
+
placeholder: i.$attrs.placeholder,
|
|
141
|
+
"with-left-icon": !!i.$slots.lefticon,
|
|
142
|
+
"with-right-icon": !!i.$slots.righticon,
|
|
143
|
+
"input-class": [
|
|
144
|
+
L.value,
|
|
145
|
+
l.inputClasses,
|
|
146
|
+
"!uikit-ml-0 !uikit-w-full"
|
|
147
|
+
],
|
|
148
|
+
"fieldset-classes": [R.value, l.fieldsetClasses],
|
|
149
|
+
"onUpdate:modelValue": u[0] ||= (e) => B(e === void 0 ? "" : `${e}`),
|
|
150
|
+
onKeydown: u[1] ||= (e) => D("keydown", e),
|
|
151
|
+
onKeydownEnterPressed: u[2] ||= () => D("keydownEnterPressed")
|
|
152
|
+
}, {
|
|
153
|
+
leftIcon: x(() => [h(i.$slots, "lefticon")]),
|
|
154
|
+
righticon: x(({ handleClean: e }) => [h(i.$slots, "righticon", { handleClean: e })]),
|
|
155
|
+
_: 3
|
|
156
|
+
}, 8, [
|
|
157
|
+
"id",
|
|
158
|
+
"data-cy",
|
|
159
|
+
"label-text",
|
|
160
|
+
"model-value",
|
|
161
|
+
"is-valid",
|
|
162
|
+
"disabled",
|
|
163
|
+
"placeholder",
|
|
164
|
+
"with-left-icon",
|
|
165
|
+
"with-right-icon",
|
|
166
|
+
"input-class",
|
|
167
|
+
"fieldset-classes"
|
|
168
|
+
])]),
|
|
169
|
+
default: x(() => [(p(!0), o(r, null, m(k.value, (t, n) => (p(), a(e, {
|
|
170
|
+
key: n,
|
|
171
|
+
active: _(F) === n,
|
|
172
|
+
class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
|
|
173
|
+
onClick: (e) => V(t, n),
|
|
174
|
+
onMouseover: (e) => F.value = n
|
|
175
|
+
}, {
|
|
176
|
+
default: x(() => [h(i.$slots, "option-content", {
|
|
177
|
+
option: t,
|
|
178
|
+
idx: n
|
|
179
|
+
}, () => [s("span", { innerHTML: t.label }, null, 8, w)])]),
|
|
180
|
+
_: 2
|
|
181
|
+
}, 1032, [
|
|
182
|
+
"active",
|
|
183
|
+
"onClick",
|
|
184
|
+
"onMouseover"
|
|
185
|
+
]))), 128))]),
|
|
186
|
+
_: 3
|
|
187
|
+
}, 8, [
|
|
188
|
+
"class",
|
|
189
|
+
"data-cy",
|
|
190
|
+
"dropdown-classes",
|
|
191
|
+
"open",
|
|
192
|
+
"keep-state",
|
|
193
|
+
"close-when-clicked-outside"
|
|
194
|
+
]));
|
|
195
|
+
}
|
|
192
196
|
});
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
};
|
|
197
|
+
//#endregion
|
|
198
|
+
export { T as default };
|
package/dist/UIKit/BaseBadge.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
1
|
+
import e from "./BaseBadge.vue.js";
|
|
2
|
+
//#region lib/UIKit/BaseBadge.vue
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as default };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, normalizeClass as n, openBlock as r, renderSlot as i } from "vue";
|
|
2
|
+
import '../assets/BaseBadge.css';//#region lib/UIKit/BaseBadge.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var a = ["id"], o = /*@__PURE__*/ t({
|
|
4
|
+
__name: "BaseBadge",
|
|
5
|
+
props: { badgeClass: { default: "uikit-badge-w-primary-sm" } },
|
|
6
|
+
setup(t) {
|
|
7
|
+
return (o, s) => (r(), e("span", {
|
|
8
|
+
id: o.$attrs.id,
|
|
9
|
+
class: n([
|
|
10
|
+
"uikit-badge uikit-shadow-sm",
|
|
11
|
+
t.badgeClass,
|
|
12
|
+
o.$attrs.class
|
|
13
|
+
])
|
|
14
|
+
}, [i(o.$slots, "default")], 10, a));
|
|
15
|
+
}
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { o as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import e from "./BaseBreadcrumb.vue.js";
|
|
2
|
+
//#region lib/UIKit/BaseBreadcrumb.vue
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as default };
|
|
@@ -1,57 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ArrowIcon as
|
|
3
|
-
|
|
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
|
-
class: r(["uikit-list-none", t.listItemClasses]),
|
|
39
|
-
"aria-hidden": "true"
|
|
40
|
-
}, [
|
|
41
|
-
c(e.$slots, "separator", {}, () => [
|
|
42
|
-
f(p(C), {
|
|
43
|
-
class: "-uikit-rotate-90",
|
|
44
|
-
"stroke-color": "#222",
|
|
45
|
-
width: 10,
|
|
46
|
-
height: 10
|
|
47
|
-
})
|
|
48
|
-
])
|
|
49
|
-
], 2))
|
|
50
|
-
], 64))), 256))
|
|
51
|
-
], 2)
|
|
52
|
-
]));
|
|
53
|
-
}
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, renderList as c, renderSlot as l, toDisplayString as u, unref as d } from "vue";
|
|
2
|
+
import { ArrowIcon as f } from "@wikicasa-dev/svg-icons";
|
|
3
|
+
//#region lib/UIKit/BaseBreadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var p = { "aria-label": "Breadcrumb" }, m = ["data-tooltip"], h = ["href"], g = /*@__PURE__*/ a({
|
|
5
|
+
__name: "BaseBreadcrumb",
|
|
6
|
+
props: {
|
|
7
|
+
items: {},
|
|
8
|
+
listClasses: {},
|
|
9
|
+
listItemClasses: {}
|
|
10
|
+
},
|
|
11
|
+
setup(a) {
|
|
12
|
+
let g = t(() => {
|
|
13
|
+
let e = 0, t = [];
|
|
14
|
+
for (; e < a.items.length;) t.push({
|
|
15
|
+
...a.items[e],
|
|
16
|
+
idx: e
|
|
17
|
+
}), e < a.items.length - 1 && t.push({ arrowIcon: !0 }), e++;
|
|
18
|
+
return t;
|
|
19
|
+
});
|
|
20
|
+
return (t, _) => (s(), n("nav", p, [r("ol", { class: o(["uikit-flex uikit-items-center uikit-gap-10px uikit-p-0", a.listClasses]) }, [(s(!0), n(e, null, c(g.value, (c, p) => (s(), n(e, null, [c?.label ? (s(), n("li", {
|
|
21
|
+
key: `breadcrumb-li-${p}`,
|
|
22
|
+
class: o(["uikit-list-none", a.listItemClasses]),
|
|
23
|
+
"data-tooltip": c.dataTooltip
|
|
24
|
+
}, [l(t.$slots, "item", { item: c }, () => [r("a", {
|
|
25
|
+
class: o(["uikit-text-w-black uikit-no-underline", { "uikit-text-w-primary": c.active }]),
|
|
26
|
+
href: c.link
|
|
27
|
+
}, u(c.label), 11, h)])], 10, m)) : (s(), n("li", {
|
|
28
|
+
key: `breadcrumb-li-no-label-${p}`,
|
|
29
|
+
class: o(["uikit-list-none", a.listItemClasses]),
|
|
30
|
+
"aria-hidden": "true"
|
|
31
|
+
}, [l(t.$slots, "separator", {}, () => [i(d(f), {
|
|
32
|
+
class: "-uikit-rotate-90",
|
|
33
|
+
"stroke-color": "#222",
|
|
34
|
+
width: 10,
|
|
35
|
+
height: 10
|
|
36
|
+
})])], 2))], 64))), 256))], 2)]));
|
|
37
|
+
}
|
|
54
38
|
});
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { g as default };
|
package/dist/UIKit/BaseButton.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import e from "./BaseButton.vue.js";
|
|
2
|
+
//#region lib/UIKit/BaseButton.vue
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as default };
|