@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,230 +1,193 @@
|
|
|
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
|
-
|
|
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
|
-
}, e.linkProps), {
|
|
192
|
-
default: f(() => [
|
|
193
|
-
g(x(e.formatter ? e.formatter(r.value) : r.value), 1)
|
|
194
|
-
]),
|
|
195
|
-
_: 1
|
|
196
|
-
}, 16, ["href", "to"]))
|
|
197
|
-
])) : k("", !0)
|
|
198
|
-
], 64)),
|
|
199
|
-
P("li", {
|
|
200
|
-
"data-cy": e.nextDataCy,
|
|
201
|
-
onClick: t[3] || (t[3] = (i) => d(y.value))
|
|
202
|
-
}, [
|
|
203
|
-
(a(), v(m(S(u.value) ? "span" : c.value), h({
|
|
204
|
-
href: n(y.value),
|
|
205
|
-
to: n(y.value),
|
|
206
|
-
class: ["arrow-button next-page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
207
|
-
"uikit-cursor-pointer active:max-sm:uikit-bg-w-primary hover:sm:uikit-bg-w-primary [&_svg]:active:max-sm:uikit-brightness-0 [&_svg]:active:max-sm:uikit-invert [&_svg]:hover:sm:uikit-brightness-0 [&_svg]:hover:sm:uikit-invert": (u.value || 0) < r.value,
|
|
208
|
-
"active:max-sm:uikit-text-white hover:sm:uikit-text-white": e.small && (u.value || 0) < r.value,
|
|
209
|
-
"uikit-rounded-xs": e.small && e.nextLabel
|
|
210
|
-
}]
|
|
211
|
-
}, e.linkProps), {
|
|
212
|
-
default: f(() => [
|
|
213
|
-
e.small && e.nextLabel ? (a(), o("span", W, x(e.nextLabel), 1)) : k("", !0),
|
|
214
|
-
$(p(B), {
|
|
215
|
-
"stroke-color": (u.value || 0) === r.value ? "#8996A9" : e.arrowColor,
|
|
216
|
-
width: 20,
|
|
217
|
-
height: 11,
|
|
218
|
-
class: "uikit-inline-block -uikit-rotate-90"
|
|
219
|
-
}, null, 8, ["stroke-color"])
|
|
220
|
-
]),
|
|
221
|
-
_: 1
|
|
222
|
-
}, 16, ["href", "to", "class"]))
|
|
223
|
-
], 8, K)
|
|
224
|
-
])) : k("", !0)
|
|
225
|
-
]));
|
|
226
|
-
}
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, mergeModels as l, mergeProps as u, openBlock as d, renderList as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, useModel as g, withCtx as _ } from "vue";
|
|
2
|
+
import { ArrowIcon as v } from "@wikicasa-dev/svg-icons";
|
|
3
|
+
//#region lib/UIKit/BasePagination.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var y = {
|
|
5
|
+
"aria-label": "Page navigation",
|
|
6
|
+
class: "uikit-overflow-auto"
|
|
7
|
+
}, b = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "uikit-text-14 uikit-m-0 uikit-flex uikit-list-none uikit-content-center uikit-gap-4 uikit-p-0 uikit-pl-0 uikit-font-semibold sm:uikit-gap-5"
|
|
10
|
+
}, x = ["data-cy"], S = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "uikit-mx-10px uikit-select-none"
|
|
13
|
+
}, C = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "font-weight-bold uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
16
|
+
}, w = ["onClick"], T = ["onClick"], E = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
19
|
+
}, D = ["data-cy"], O = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "uikit-mx-10px uikit-select-none"
|
|
22
|
+
}, k = /*@__PURE__*/ c({
|
|
23
|
+
__name: "BasePagination",
|
|
24
|
+
props: /*@__PURE__*/ l({
|
|
25
|
+
count: { default: 0 },
|
|
26
|
+
limit: { default: 25 },
|
|
27
|
+
siblings: { default: 3 },
|
|
28
|
+
additionalCount: { default: 0 },
|
|
29
|
+
arrowColor: { default: "#2B5DFF" },
|
|
30
|
+
small: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
prevLabel: { default: "" },
|
|
35
|
+
nextLabel: { default: "" },
|
|
36
|
+
prevDataCy: {},
|
|
37
|
+
nextDataCy: {},
|
|
38
|
+
linkProps: {},
|
|
39
|
+
linkTag: { default: "a" },
|
|
40
|
+
baseUrl: {},
|
|
41
|
+
pageQueryParameter: { default: "p" },
|
|
42
|
+
formatter: { type: Function }
|
|
43
|
+
}, {
|
|
44
|
+
pageNumber: { default: 1 },
|
|
45
|
+
pageNumberModifiers: {}
|
|
46
|
+
}),
|
|
47
|
+
emits: ["update:pageNumber"],
|
|
48
|
+
setup(c) {
|
|
49
|
+
let l = g(c, "pageNumber"), k = t(() => (l.value || 1) + 1), A = t(() => (l.value || 1) - 1), j = t(() => c.baseUrl ? c.linkTag : "span"), M = t(() => Math.ceil((c.count + c.additionalCount) / c.limit)), N = (e = 1) => e < 1, P = (e = 1) => e === M.value, F = t(() => (l.value || 0) > c.siblings + 2), I = t(() => (l.value || 0) < M.value - c.siblings - 1), L = t(() => {
|
|
50
|
+
let e = l.value || 0, t = 0;
|
|
51
|
+
for (let n = e; n > 2 && t < c.siblings; n--) t++;
|
|
52
|
+
return t;
|
|
53
|
+
}), R = t(() => {
|
|
54
|
+
let e = l.value || 0, t = 0;
|
|
55
|
+
for (let n = e; n < M.value - 1 && t < c.siblings; n++) t++;
|
|
56
|
+
return t;
|
|
57
|
+
}), z = t(() => {
|
|
58
|
+
let e = L.value + Math.abs(R.value - c.siblings) + (/* @__PURE__ */ new Number(!I.value)).valueOf() + (/* @__PURE__ */ new Number(l.value === M.value)).valueOf(), t = Math.max((l.value || 0) - e, 2), n = [];
|
|
59
|
+
for (; t < (l.value || 0); t++) n.push(t);
|
|
60
|
+
return n;
|
|
61
|
+
}), B = t(() => {
|
|
62
|
+
let e = R.value + Math.abs(L.value - c.siblings) + (/* @__PURE__ */ new Number(!F.value)).valueOf() + (/* @__PURE__ */ new Number(l.value === 1)).valueOf(), t = Math.min(l.value || 0, M.value - 1), n = [];
|
|
63
|
+
for (; t < Math.min((l.value || 0) + e, M.value - 1); t++) n.push(t + 1);
|
|
64
|
+
return n;
|
|
65
|
+
}), V = (e) => {
|
|
66
|
+
e < 1 || e > M.value || setTimeout(() => {
|
|
67
|
+
l.value = e;
|
|
68
|
+
});
|
|
69
|
+
}, H = (e = 1) => {
|
|
70
|
+
if (c.baseUrl) try {
|
|
71
|
+
let t = new URL(c.baseUrl);
|
|
72
|
+
return e <= 1 ? (t.searchParams.delete(c.pageQueryParameter), `${t.pathname}${t.search}${t.hash}`) : (t.searchParams.set(c.pageQueryParameter, `${e}`), `${t.pathname}${t.search}${t.hash}`);
|
|
73
|
+
} catch (e) {
|
|
74
|
+
console.error(e);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
return (t, g) => (d(), i("nav", y, [c.count > 0 ? (d(), i("ul", b, [
|
|
79
|
+
a("li", {
|
|
80
|
+
"data-cy": c.prevDataCy,
|
|
81
|
+
onClick: g[0] ||= (e) => V(A.value)
|
|
82
|
+
}, [(d(), n(p(N(A.value) ? "span" : j.value), u({
|
|
83
|
+
href: H(A.value),
|
|
84
|
+
to: H(A.value),
|
|
85
|
+
class: ["arrow-button prev-page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
86
|
+
"uikit-cursor-pointer active:max-sm:uikit-bg-w-primary hover:sm:uikit-bg-w-primary [&_svg]:active:max-sm:uikit-brightness-0 [&_svg]:active:max-sm:uikit-invert [&_svg]:hover:sm:uikit-brightness-0 [&_svg]:hover:sm:uikit-invert": l.value !== 1,
|
|
87
|
+
"active:max-sm:uikit-text-white hover:sm:uikit-text-white": c.small && l.value !== 1,
|
|
88
|
+
"uikit-rounded-xs": c.small && c.prevLabel
|
|
89
|
+
}]
|
|
90
|
+
}, c.linkProps), {
|
|
91
|
+
default: _(() => [s(h(v), {
|
|
92
|
+
width: 20,
|
|
93
|
+
height: 11,
|
|
94
|
+
"stroke-color": l.value === 1 ? "#8996A9" : c.arrowColor,
|
|
95
|
+
class: "uikit-inline-block uikit-rotate-90"
|
|
96
|
+
}, null, 8, ["stroke-color"]), c.small && c.prevLabel ? (d(), i("span", S, m(c.prevLabel), 1)) : r("", !0)]),
|
|
97
|
+
_: 1
|
|
98
|
+
}, 16, [
|
|
99
|
+
"href",
|
|
100
|
+
"to",
|
|
101
|
+
"class"
|
|
102
|
+
]))], 8, x),
|
|
103
|
+
c.small ? r("", !0) : (d(), i(e, { key: 0 }, [
|
|
104
|
+
(l.value || 0) > 1 ? (d(), i("li", {
|
|
105
|
+
key: 0,
|
|
106
|
+
onClick: g[1] ||= (e) => V(1)
|
|
107
|
+
}, [(d(), n(p(j.value), u({
|
|
108
|
+
href: H(1),
|
|
109
|
+
to: H(1),
|
|
110
|
+
class: "page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
111
|
+
}, c.linkProps), {
|
|
112
|
+
default: _(() => [...g[4] ||= [o(" 1 ", -1)]]),
|
|
113
|
+
_: 1
|
|
114
|
+
}, 16, ["href", "to"]))])) : r("", !0),
|
|
115
|
+
F.value ? (d(), i("li", C, " ... ")) : r("", !0),
|
|
116
|
+
(d(!0), i(e, null, f(z.value, (e) => (d(), i("li", {
|
|
117
|
+
key: e,
|
|
118
|
+
onClick: (t) => V(e)
|
|
119
|
+
}, [(d(), n(p(j.value), u({
|
|
120
|
+
href: H(e),
|
|
121
|
+
to: H(e),
|
|
122
|
+
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
123
|
+
}, { ref_for: !0 }, c.linkProps), {
|
|
124
|
+
default: _(() => [o(m(c.formatter ? c.formatter(e) : e), 1)]),
|
|
125
|
+
_: 2
|
|
126
|
+
}, 1040, ["href", "to"]))], 8, w))), 128))
|
|
127
|
+
], 64)),
|
|
128
|
+
a("li", null, [(d(), n(p(j.value), u({
|
|
129
|
+
href: H(l.value),
|
|
130
|
+
to: H(l.value),
|
|
131
|
+
class: ["selected uikit-pointer-events-none uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline", { "uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !c.small }]
|
|
132
|
+
}, c.linkProps), {
|
|
133
|
+
default: _(() => [o(m(c.formatter ? c.formatter(l.value) : l.value), 1)]),
|
|
134
|
+
_: 1
|
|
135
|
+
}, 16, [
|
|
136
|
+
"href",
|
|
137
|
+
"to",
|
|
138
|
+
"class"
|
|
139
|
+
]))]),
|
|
140
|
+
c.small ? r("", !0) : (d(), i(e, { key: 1 }, [
|
|
141
|
+
(d(!0), i(e, null, f(B.value, (e) => (d(), i("li", {
|
|
142
|
+
key: e,
|
|
143
|
+
onClick: (t) => V(e)
|
|
144
|
+
}, [(d(), n(p(j.value), u({
|
|
145
|
+
href: H(e),
|
|
146
|
+
to: H(e),
|
|
147
|
+
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-text-w-black uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
148
|
+
}, { ref_for: !0 }, c.linkProps), {
|
|
149
|
+
default: _(() => [o(m(c.formatter ? c.formatter(e) : e), 1)]),
|
|
150
|
+
_: 2
|
|
151
|
+
}, 1040, ["href", "to"]))], 8, T))), 128)),
|
|
152
|
+
I.value ? (d(), i("li", E, " ... ")) : r("", !0),
|
|
153
|
+
(l.value || 0) < M.value ? (d(), i("li", {
|
|
154
|
+
key: 1,
|
|
155
|
+
onClick: g[2] ||= (e) => V(M.value)
|
|
156
|
+
}, [(d(), n(p(j.value), u({
|
|
157
|
+
href: H(M.value),
|
|
158
|
+
to: H(M.value),
|
|
159
|
+
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
160
|
+
}, c.linkProps), {
|
|
161
|
+
default: _(() => [o(m(c.formatter ? c.formatter(M.value) : M.value), 1)]),
|
|
162
|
+
_: 1
|
|
163
|
+
}, 16, ["href", "to"]))])) : r("", !0)
|
|
164
|
+
], 64)),
|
|
165
|
+
a("li", {
|
|
166
|
+
"data-cy": c.nextDataCy,
|
|
167
|
+
onClick: g[3] ||= (e) => V(k.value)
|
|
168
|
+
}, [(d(), n(p(P(l.value) ? "span" : j.value), u({
|
|
169
|
+
href: H(k.value),
|
|
170
|
+
to: H(k.value),
|
|
171
|
+
class: ["arrow-button next-page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
172
|
+
"uikit-cursor-pointer active:max-sm:uikit-bg-w-primary hover:sm:uikit-bg-w-primary [&_svg]:active:max-sm:uikit-brightness-0 [&_svg]:active:max-sm:uikit-invert [&_svg]:hover:sm:uikit-brightness-0 [&_svg]:hover:sm:uikit-invert": (l.value || 0) < M.value,
|
|
173
|
+
"active:max-sm:uikit-text-white hover:sm:uikit-text-white": c.small && (l.value || 0) < M.value,
|
|
174
|
+
"uikit-rounded-xs": c.small && c.nextLabel
|
|
175
|
+
}]
|
|
176
|
+
}, c.linkProps), {
|
|
177
|
+
default: _(() => [c.small && c.nextLabel ? (d(), i("span", O, m(c.nextLabel), 1)) : r("", !0), s(h(v), {
|
|
178
|
+
"stroke-color": (l.value || 0) === M.value ? "#8996A9" : c.arrowColor,
|
|
179
|
+
width: 20,
|
|
180
|
+
height: 11,
|
|
181
|
+
class: "uikit-inline-block -uikit-rotate-90"
|
|
182
|
+
}, null, 8, ["stroke-color"])]),
|
|
183
|
+
_: 1
|
|
184
|
+
}, 16, [
|
|
185
|
+
"href",
|
|
186
|
+
"to",
|
|
187
|
+
"class"
|
|
188
|
+
]))], 8, D)
|
|
189
|
+
])) : r("", !0)]));
|
|
190
|
+
}
|
|
227
191
|
});
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
};
|
|
192
|
+
//#endregion
|
|
193
|
+
export { k as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import e from "./SelectItem.vue.js";
|
|
2
|
+
//#region lib/UIKit/BaseSelect/SelectItem.vue
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as default };
|
|
@@ -1,42 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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
|
-
x("span", {
|
|
34
|
-
innerHTML: i.label
|
|
35
|
-
}, null, 8, p)
|
|
36
|
-
])
|
|
37
|
-
], 42, b));
|
|
38
|
-
}
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, defineComponent as n, nextTick as r, normalizeClass as i, openBlock as a, renderSlot as o, useTemplateRef as s, watch as c } from "vue";
|
|
2
|
+
//#region lib/UIKit/BaseSelect/SelectItem.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var l = ["data-active", "tabindex"], u = ["innerHTML"], d = /*@__PURE__*/ n({
|
|
4
|
+
__name: "SelectItem",
|
|
5
|
+
props: {
|
|
6
|
+
label: { default: "" },
|
|
7
|
+
active: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: !1
|
|
10
|
+
},
|
|
11
|
+
idx: { default: -1 }
|
|
12
|
+
},
|
|
13
|
+
emits: ["click", "mouseover"],
|
|
14
|
+
setup(n, { emit: d }) {
|
|
15
|
+
let f = d, p = n, m = s("liItem");
|
|
16
|
+
return c(() => p.active, (e) => {
|
|
17
|
+
e && r(() => {
|
|
18
|
+
m.value && m.value.focus();
|
|
19
|
+
});
|
|
20
|
+
}, { immediate: !0 }), (r, s) => (a(), e("li", {
|
|
21
|
+
ref: "liItem",
|
|
22
|
+
class: i(["uikit-list-none uikit-text-w-black", [
|
|
23
|
+
{ "active uikit-bg-w-cultured": n.active },
|
|
24
|
+
"uikit-outline-none",
|
|
25
|
+
r.$attrs.class
|
|
26
|
+
]]),
|
|
27
|
+
"data-active": n.active,
|
|
28
|
+
tabindex: r.$attrs.tabindex ?? -1,
|
|
29
|
+
onClick: s[0] ||= (e) => f("click", p.idx),
|
|
30
|
+
onMouseover: s[1] ||= (e) => f("mouseover", p.idx)
|
|
31
|
+
}, [o(r.$slots, "default", { itemIdx: n.idx }, () => [t("span", { innerHTML: p.label }, null, 8, u)])], 42, l));
|
|
32
|
+
}
|
|
39
33
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { d as default };
|
package/dist/UIKit/BaseSlider.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
1
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./BaseSlider.vue.js";
|
|
3
|
+
//#region lib/UIKit/BaseSlider.vue
|
|
4
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-eb8b2f21"]]);
|
|
5
|
+
//#endregion
|
|
6
|
+
export { n as default };
|