@wikicasa-dev/components 2.1.3 → 2.1.4-alpha.10
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/BaseAlert.d.ts +20 -9
- package/dist/UIKit/BaseBadge.d.ts +40 -5
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +4 -0
- package/dist/UIKit/BaseBanner.js +4 -0
- package/dist/UIKit/BaseBreadcrumb.js +3 -2
- package/dist/UIKit/BaseButton.d.ts +9 -8
- package/dist/UIKit/BaseChip.js +4 -0
- package/dist/UIKit/BaseCollapse.js +7 -0
- package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
- package/dist/UIKit/BaseComplexToggle.js +2 -2
- package/dist/UIKit/BaseDropDown.d.ts +5 -0
- package/dist/UIKit/BaseFloatingLabel.js +1 -3
- package/dist/UIKit/BaseInput.d.ts +4 -5
- package/dist/UIKit/BaseInput.js +1 -3
- package/dist/UIKit/BaseNotificationBadge.js +4 -0
- package/dist/UIKit/BasePagination.d.ts +10 -3
- package/dist/UIKit/BasePin.d.ts +22 -0
- package/dist/UIKit/BasePin.js +5 -0
- package/dist/UIKit/BaseSelect.d.ts +26 -0
- package/dist/UIKit/BaseSelect.js +5 -0
- package/dist/UIKit/BaseSlider.d.ts +14 -10
- package/dist/UIKit/BaseSlider.js +1 -4
- package/dist/UIKit/BaseSnackbar.js +4 -4
- package/dist/UIKit/BaseTextarea.d.ts +4 -4
- package/dist/UIKit/BaseTextarea.js +3 -3
- package/dist/UIKit/BaseToggle.d.ts +5 -8
- package/dist/UIKit/BaseToggle.js +1 -4
- package/dist/UIKit/BaseTooltip.d.ts +10 -20
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +9 -16
- package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -5
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -3
- package/dist/UIKit/DatePicker.js +5 -0
- package/dist/UIKit/InputDropdown.js +4 -0
- package/dist/UIKit/Navigation/NavigationBar.d.ts +17 -0
- package/dist/UIKit/Navigation/NavigationBar.js +5 -0
- package/dist/UIKit/Navigation/NavigationBarItem.d.ts +34 -0
- package/dist/UIKit/Navigation/NavigationBarItem.js +4 -0
- package/dist/UIKit/SegmentedControl/SegmentedControl.js +4 -0
- package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +4 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +1 -3
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +1 -5
- package/dist/UIKit/Tab/BaseTabItem.d.ts +27 -0
- package/dist/UIKit/Tab/BaseTabItem.js +4 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +3 -3
- package/dist/UIKit/types.d.ts +11 -6
- package/dist/assets/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseModal.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BasePin.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseSelect.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/DatePicker.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -1
- package/dist/assets/packages/components/src/tailwind.css +1 -1
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/composables/useFloatingLabel.js +20 -20
- package/dist/index.d.ts +5 -2
- package/dist/index.js +98 -85
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +19 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +16 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +29 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +33 -0
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.js +9 -9
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.js +17 -17
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.js +13 -13
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/utils.js +32 -26
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +30 -30
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +107 -13
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +28 -27
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +46 -11
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +29 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +75 -0
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +32 -35
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +56 -36
- package/dist/packages/components/lib/UIKit/BaseChip.vue.js +38 -0
- package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +54 -0
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +12 -12
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +48 -45
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +14 -17
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +93 -119
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +70 -66
- package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +19 -0
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +89 -134
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseSelect.vue.js +65 -0
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +107 -178
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +7 -7
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +55 -73
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +27 -31
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +48 -33
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +19 -40
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +55 -52
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +20 -26
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +143 -0
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +152 -0
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +21 -0
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +48 -0
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +93 -0
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +30 -0
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +10 -9
- package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +10 -9
- package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +39 -0
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +30 -27
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +40 -36
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +5 -6
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +5 -3
- package/package.json +26 -19
- package/plugins/buttonPlugin.ts +290 -0
- package/dist/UIKit/Slider/SimpleSlider.d.ts +0 -19
- package/dist/UIKit/Slider/SimpleSlider.js +0 -7
- package/dist/assets/packages/components/lib/UIKit/BaseSlider.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseToggle.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Checkbox/CheckboxBtn.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +0 -1
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -4
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -4
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -12
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +0 -18
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -4
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +0 -82
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/swiper.css +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/classes-to-selector.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
|
@@ -1,36 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import "../../../../
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const D = {
|
|
8
|
-
"aria-label": "Page navigation",
|
|
9
|
-
class: "uikit-overflow-auto"
|
|
10
|
-
}, $ = {
|
|
11
|
-
key: 0,
|
|
12
|
-
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"
|
|
13
|
-
}, B = ["data-cy"], O = {
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "uikit-mx-10px uikit-select-none"
|
|
16
|
-
}, A = {
|
|
17
|
-
key: 1,
|
|
18
|
-
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"
|
|
19
|
-
}, F = ["onClick"], V = ["onClick"], E = {
|
|
20
|
-
key: 0,
|
|
21
|
-
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"
|
|
22
|
-
}, z = ["data-cy"], q = {
|
|
23
|
-
key: 0,
|
|
24
|
-
class: "uikit-mx-10px uikit-select-none"
|
|
25
|
-
}, T = /* @__PURE__ */ j({
|
|
1
|
+
import { defineComponent as v, mergeModels as P, useModel as C, computed as N, createBlock as n, openBlock as a, unref as i, withCtx as e, createVNode as l, createElementBlock as c, createElementVNode as p, toDisplayString as k, Fragment as b, renderList as L, createTextVNode as m } from "vue";
|
|
2
|
+
import { PaginationRoot as B, PaginationList as D, PaginationPrev as F, PaginationListItem as M, PaginationEllipsis as E, PaginationNext as V } from "reka-ui";
|
|
3
|
+
import { ArrowIcon as f } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
|
+
import { useBreakpoints as _ } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js";
|
|
6
|
+
const z = { class: "max-sm:uikit-hidden" }, I = { class: "max-sm:uikit-hidden" }, j = /* @__PURE__ */ v({
|
|
26
7
|
__name: "BasePagination",
|
|
27
8
|
props: /* @__PURE__ */ P({
|
|
28
9
|
count: { default: 0 },
|
|
29
10
|
limit: { default: 25 },
|
|
30
|
-
siblings: {
|
|
31
|
-
additionalCount: { default: 0 },
|
|
11
|
+
siblings: {},
|
|
32
12
|
arrowColor: { default: "#2B5DFF" },
|
|
33
|
-
small: { type: Boolean, default: !1 },
|
|
34
13
|
prevLabel: { default: "" },
|
|
35
14
|
nextLabel: { default: "" },
|
|
36
15
|
prevDataCy: {},
|
|
@@ -40,113 +19,89 @@ const D = {
|
|
|
40
19
|
pageNumberModifiers: {}
|
|
41
20
|
}),
|
|
42
21
|
emits: ["update:pageNumber"],
|
|
43
|
-
setup(
|
|
44
|
-
const
|
|
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
|
-
key: 1,
|
|
125
|
-
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",
|
|
126
|
-
onClick: e[2] || (e[2] = (t) => k(n.value))
|
|
127
|
-
}, c(v(d)(n.value)), 1)) : o("", !0)
|
|
128
|
-
], 64)),
|
|
129
|
-
p("li", {
|
|
130
|
-
class: h(["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", {
|
|
131
|
-
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (u.value || 0) < n.value,
|
|
132
|
-
"hover:uikit-text-white": i.small && (u.value || 0) < n.value,
|
|
133
|
-
"uikit-rounded-xs": i.small && i.nextLabel
|
|
134
|
-
}]),
|
|
135
|
-
"data-cy": i.nextDataCy,
|
|
136
|
-
onClick: e[3] || (e[3] = (t) => k((u.value || 0) + 1))
|
|
137
|
-
}, [
|
|
138
|
-
i.small && i.nextLabel ? (r(), l("span", q, c(i.nextLabel), 1)) : o("", !0),
|
|
139
|
-
y(v(C), {
|
|
140
|
-
"stroke-color": (u.value || 0) === n.value ? "#8996A9" : i.arrowColor,
|
|
141
|
-
width: 20,
|
|
142
|
-
height: 11,
|
|
143
|
-
class: "uikit-inline-block -uikit-rotate-90"
|
|
144
|
-
}, null, 8, ["stroke-color"])
|
|
145
|
-
], 10, z)
|
|
146
|
-
])) : o("", !0)
|
|
147
|
-
]));
|
|
22
|
+
setup(s) {
|
|
23
|
+
const { isSmall: w } = _({
|
|
24
|
+
breakpoints: {
|
|
25
|
+
sm: 640,
|
|
26
|
+
md: 768,
|
|
27
|
+
lg: 1024,
|
|
28
|
+
xl: 1280
|
|
29
|
+
}
|
|
30
|
+
}), r = C(s, "pageNumber"), h = N(() => Math.ceil(s.count / s.limit)), x = (t = 1) => t === 1, y = (t = 1) => t === h.value;
|
|
31
|
+
return (t, u) => (a(), n(i(B), {
|
|
32
|
+
page: r.value,
|
|
33
|
+
"onUpdate:page": u[0] || (u[0] = (d) => r.value = d),
|
|
34
|
+
total: t.count,
|
|
35
|
+
"sibling-count": t.siblings ?? (i(w) ? 0 : 1),
|
|
36
|
+
"items-per-page": t.limit,
|
|
37
|
+
"show-edges": "",
|
|
38
|
+
class: "uikit-text-16"
|
|
39
|
+
}, {
|
|
40
|
+
default: e(() => [
|
|
41
|
+
l(i(D), { class: "uikit-flex uikit-gap-x-md" }, {
|
|
42
|
+
default: e(({ items: d }) => [
|
|
43
|
+
l(i(F), {
|
|
44
|
+
class: "uikit-flex uikit-cursor-pointer uikit-items-center uikit-gap-x-xs uikit-bg-transparent uikit-text-w-blue disabled:uikit-cursor-default disabled:uikit-text-w-lightgray [&:disabled_path]:uikit-stroke-w-lightgray",
|
|
45
|
+
"data-cy": t.prevDataCy,
|
|
46
|
+
disabled: x(r.value)
|
|
47
|
+
}, {
|
|
48
|
+
default: e(() => [
|
|
49
|
+
l(i(f), {
|
|
50
|
+
width: 20,
|
|
51
|
+
height: 11,
|
|
52
|
+
"stroke-color": t.arrowColor,
|
|
53
|
+
class: "uikit-inline-block uikit-rotate-90"
|
|
54
|
+
}, null, 8, ["stroke-color"]),
|
|
55
|
+
p("span", z, k(t.prevLabel), 1)
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["data-cy", "disabled"]),
|
|
59
|
+
(a(!0), c(b, null, L(d, (o, g) => (a(), c(b, null, [
|
|
60
|
+
o.type === "page" ? (a(), n(i(M), {
|
|
61
|
+
key: g,
|
|
62
|
+
value: o.value,
|
|
63
|
+
class: "uikit-size-xl uikit-cursor-pointer uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-text-w-blue data-[selected]:uikit-border-w-blue data-[selected]:uikit-bg-w-cultured"
|
|
64
|
+
}, {
|
|
65
|
+
default: e(() => [
|
|
66
|
+
m(k(o.value), 1)
|
|
67
|
+
]),
|
|
68
|
+
_: 2
|
|
69
|
+
}, 1032, ["value"])) : (a(), n(i(E), {
|
|
70
|
+
key: o.type,
|
|
71
|
+
class: "uikit-size-xl uikit-cursor-pointer uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-text-center uikit-text-w-lightgray",
|
|
72
|
+
index: g
|
|
73
|
+
}, {
|
|
74
|
+
default: e(() => u[1] || (u[1] = [
|
|
75
|
+
m(" … ")
|
|
76
|
+
])),
|
|
77
|
+
_: 2,
|
|
78
|
+
__: [1]
|
|
79
|
+
}, 1032, ["index"]))
|
|
80
|
+
], 64))), 256)),
|
|
81
|
+
l(i(V), {
|
|
82
|
+
class: "uikit-flex uikit-cursor-pointer uikit-items-center uikit-gap-x-xs uikit-bg-transparent uikit-text-w-blue disabled:uikit-cursor-default disabled:uikit-text-w-lightgray [&:disabled_path]:uikit-stroke-w-lightgray",
|
|
83
|
+
"data-cy": t.nextDataCy,
|
|
84
|
+
disabled: y(r.value)
|
|
85
|
+
}, {
|
|
86
|
+
default: e(() => [
|
|
87
|
+
p("span", I, k(t.nextLabel), 1),
|
|
88
|
+
l(i(f), {
|
|
89
|
+
"stroke-color": t.arrowColor,
|
|
90
|
+
width: 20,
|
|
91
|
+
height: 11,
|
|
92
|
+
class: "uikit-inline-block -uikit-rotate-90"
|
|
93
|
+
}, null, 8, ["stroke-color"])
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 8, ["data-cy", "disabled"])
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
})
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 8, ["page", "total", "sibling-count", "items-per-page"]));
|
|
148
103
|
}
|
|
149
104
|
});
|
|
150
105
|
export {
|
|
151
|
-
|
|
106
|
+
j as default
|
|
152
107
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as u, createElementBlock as e, openBlock as t, normalizeClass as n, createElementVNode as l, createCommentVNode as s, renderSlot as o } from "vue";
|
|
2
|
+
const a = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "uikit-pin-arrow"
|
|
5
|
+
}, k = /* @__PURE__ */ u({
|
|
6
|
+
__name: "BasePin",
|
|
7
|
+
props: {
|
|
8
|
+
type: { default: "default" },
|
|
9
|
+
pinClass: { default: "white" },
|
|
10
|
+
outlined: { type: Boolean, default: !1 }
|
|
11
|
+
},
|
|
12
|
+
setup(p) {
|
|
13
|
+
return (i, r) => (t(), e("span", {
|
|
14
|
+
class: n(["uikit-pin uikit-relative uikit-inline-block uikit-text", [
|
|
15
|
+
{ "uikit-pin-outlined": i.outlined },
|
|
16
|
+
`uikit-pin-${i.pinClass}`,
|
|
17
|
+
`uikit-pin-${i.type}`
|
|
18
|
+
]])
|
|
19
|
+
}, [
|
|
20
|
+
l("span", {
|
|
21
|
+
class: n(["uikit-pin-body uikit-box-border", [
|
|
22
|
+
{
|
|
23
|
+
"uikit-inline-flex uikit-min-w-xl uikit-rounded-3xs uikit-px-sm uikit-py-2xs": ["default", "large"].includes(i.type),
|
|
24
|
+
"uikit-px-xs": i.type === "large",
|
|
25
|
+
"uikit-inline-flex uikit-size-lg uikit-items-center uikit-justify-center uikit-rounded-full": i.type === "rounded"
|
|
26
|
+
}
|
|
27
|
+
]])
|
|
28
|
+
}, [
|
|
29
|
+
o(i.$slots, "default")
|
|
30
|
+
], 2),
|
|
31
|
+
i.type !== "rounded" ? (t(), e("div", a)) : s("", !0)
|
|
32
|
+
], 2));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
k as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defineComponent as x, mergeModels as u, useCssVars as w, computed as C, useModel as v, useId as y, watch as S, createElementBlock as a, openBlock as d, createCommentVNode as V, createElementVNode as O, normalizeClass as c, unref as m, toDisplayString as p, Fragment as z, renderList as B } from "vue";
|
|
2
|
+
const E = { class: "select-wrapper" }, D = ["for"], M = ["id"], T = ["data-idx", "selected"], N = /* @__PURE__ */ x({
|
|
3
|
+
__name: "BaseSelect",
|
|
4
|
+
props: /* @__PURE__ */ u({
|
|
5
|
+
labelText: { default: "" },
|
|
6
|
+
options: { default: () => [] },
|
|
7
|
+
border: { type: Boolean, default: !0 },
|
|
8
|
+
labelClasses: {},
|
|
9
|
+
arrowSize: { default: 16 }
|
|
10
|
+
}, {
|
|
11
|
+
modelValue: {
|
|
12
|
+
default: () => ({
|
|
13
|
+
id: -1,
|
|
14
|
+
label: ""
|
|
15
|
+
})
|
|
16
|
+
},
|
|
17
|
+
modelModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: /* @__PURE__ */ u(["change"], ["update:modelValue"]),
|
|
20
|
+
setup(o, { emit: f }) {
|
|
21
|
+
w((e) => ({
|
|
22
|
+
"7c189782": b.value
|
|
23
|
+
}));
|
|
24
|
+
const s = v(o, "modelValue"), k = f, n = y(), b = C(() => `${o.arrowSize}px`), g = ({ target: e }) => {
|
|
25
|
+
const i = (e.selectedOptions?.[0]).dataset.idx;
|
|
26
|
+
if (i === void 0) return;
|
|
27
|
+
const h = o.options[i];
|
|
28
|
+
s.value = h;
|
|
29
|
+
}, r = (e, t) => e.id === t?.id || e.label === t?.label;
|
|
30
|
+
return S(
|
|
31
|
+
s,
|
|
32
|
+
(e) => {
|
|
33
|
+
const t = o.options.find(
|
|
34
|
+
(l) => r(l, e)
|
|
35
|
+
);
|
|
36
|
+
t && (s.value = t);
|
|
37
|
+
},
|
|
38
|
+
{ immediate: !0 }
|
|
39
|
+
), (e, t) => (d(), a("div", E, [
|
|
40
|
+
e.labelText ? (d(), a("label", {
|
|
41
|
+
key: 0,
|
|
42
|
+
for: m(n),
|
|
43
|
+
class: c(["uikit-block", e.labelClasses])
|
|
44
|
+
}, p(e.labelText), 11, D)) : V("", !0),
|
|
45
|
+
O("select", {
|
|
46
|
+
id: m(n),
|
|
47
|
+
class: c(["uikit-w-full uikit-cursor-pointer uikit-bg-white uikit-pr-xl uikit-text-16 uikit-font-regular", {
|
|
48
|
+
"uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-py-md uikit-pl-sm": e.border
|
|
49
|
+
}]),
|
|
50
|
+
onChange: t[0] || (t[0] = (l) => {
|
|
51
|
+
k("change", l), g(l);
|
|
52
|
+
})
|
|
53
|
+
}, [
|
|
54
|
+
(d(!0), a(z, null, B(e.options, (l, i) => (d(), a("option", {
|
|
55
|
+
key: `option-${i}`,
|
|
56
|
+
"data-idx": i,
|
|
57
|
+
selected: r(l, s.value)
|
|
58
|
+
}, p(l.label), 9, T))), 128))
|
|
59
|
+
], 42, M)
|
|
60
|
+
]));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
N as default
|
|
65
|
+
};
|