@wikicasa-dev/components 2.0.43 → 2.0.44
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/BasePagination.js +1 -1
- package/dist/UIKit/BasePagination.vue.d.ts +3 -10
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cb6fEMc-.js +163 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.C_KW3jtP.js +0 -163
package/dist/BasePagination.js
CHANGED
|
@@ -8,6 +8,8 @@ declare let __VLS_typeProps: {
|
|
|
8
8
|
small?: boolean;
|
|
9
9
|
prevLabel?: string;
|
|
10
10
|
nextLabel?: string;
|
|
11
|
+
prevDataCy?: string;
|
|
12
|
+
nextDataCy?: string;
|
|
11
13
|
};
|
|
12
14
|
type __VLS_PublicProps = {
|
|
13
15
|
"pageNumber"?: Optional<number>;
|
|
@@ -16,14 +18,5 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
16
18
|
"update:pageNumber": (pageNumber: Optional<number>) => any;
|
|
17
19
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
20
|
"onUpdate:pageNumber"?: ((pageNumber: Optional<number>) => any) | undefined;
|
|
19
|
-
}>, {
|
|
20
|
-
arrowColor: string;
|
|
21
|
-
small: boolean;
|
|
22
|
-
count: number;
|
|
23
|
-
limit: number;
|
|
24
|
-
siblings: number;
|
|
25
|
-
additionalCount: number;
|
|
26
|
-
prevLabel: string;
|
|
27
|
-
nextLabel: string;
|
|
28
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
22
|
export default _default;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { defineComponent as j, mergeModels as P, useModel as D, computed as s, openBlock as n, createElementBlock as r, createElementVNode as p, normalizeClass as h, createVNode as y, unref as v, toDisplayString as c, createCommentVNode as o, Fragment as m, renderList as x } from "vue";
|
|
2
|
+
import "./types-B0dZ7OiV.D29wNgoj.js";
|
|
3
|
+
import { a as C } from "./ArrowIcon.CCFMdsq6.js";
|
|
4
|
+
import "./PharmacyIcon.56ql_DYl.js";
|
|
5
|
+
function d(l, t = !1) {
|
|
6
|
+
return l == null ? "" : S(t ? Math.round(l) : Math.floor(l), 0);
|
|
7
|
+
}
|
|
8
|
+
function S(l, t) {
|
|
9
|
+
return !l && l !== 0 ? "" : l.toLocaleString(
|
|
10
|
+
"it-IT",
|
|
11
|
+
// usare una stringa tipo 'en-US' per sovrascrivere la lingua del browser
|
|
12
|
+
{
|
|
13
|
+
minimumFractionDigits: t,
|
|
14
|
+
maximumFractionDigits: t
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
const $ = {
|
|
19
|
+
"aria-label": "Page navigation",
|
|
20
|
+
class: "uikit-overflow-auto"
|
|
21
|
+
}, B = {
|
|
22
|
+
key: 0,
|
|
23
|
+
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"
|
|
24
|
+
}, F = ["data-cy"], O = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "uikit-mx-10px uikit-select-none"
|
|
27
|
+
}, V = {
|
|
28
|
+
key: 1,
|
|
29
|
+
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"
|
|
30
|
+
}, A = ["onClick"], E = ["onClick"], z = {
|
|
31
|
+
key: 0,
|
|
32
|
+
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"
|
|
33
|
+
}, T = ["data-cy"], q = {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: "uikit-mx-10px uikit-select-none"
|
|
36
|
+
}, Q = /* @__PURE__ */ j({
|
|
37
|
+
__name: "BasePagination",
|
|
38
|
+
props: /* @__PURE__ */ P({
|
|
39
|
+
count: { default: 0 },
|
|
40
|
+
limit: { default: 25 },
|
|
41
|
+
siblings: { default: 3 },
|
|
42
|
+
additionalCount: { default: 0 },
|
|
43
|
+
arrowColor: { default: "#2B5DFF" },
|
|
44
|
+
small: { type: Boolean, default: !1 },
|
|
45
|
+
prevLabel: { default: "" },
|
|
46
|
+
nextLabel: { default: "" },
|
|
47
|
+
prevDataCy: {},
|
|
48
|
+
nextDataCy: {}
|
|
49
|
+
}, {
|
|
50
|
+
pageNumber: { default: 1 },
|
|
51
|
+
pageNumberModifiers: {}
|
|
52
|
+
}),
|
|
53
|
+
emits: ["update:pageNumber"],
|
|
54
|
+
setup(l) {
|
|
55
|
+
const t = D(l, "pageNumber"), a = s(() => Math.ceil((l.count + l.additionalCount) / l.limit)), g = s(() => (t.value || 0) > l.siblings + 2), f = s(
|
|
56
|
+
() => (t.value || 0) < a.value - l.siblings - 1
|
|
57
|
+
), b = s(() => {
|
|
58
|
+
let e = t.value || 0, u = 0;
|
|
59
|
+
for (; e > 2 && u < l.siblings; )
|
|
60
|
+
e--, u++;
|
|
61
|
+
return u;
|
|
62
|
+
}), w = s(() => {
|
|
63
|
+
let e = t.value || 0, u = 0;
|
|
64
|
+
for (; e < a.value - 1 && u < l.siblings; )
|
|
65
|
+
e++, u++;
|
|
66
|
+
return u;
|
|
67
|
+
}), N = s(() => {
|
|
68
|
+
const i = b.value + /* Filling with the remaining right siblings */
|
|
69
|
+
Math.abs(w.value - l.siblings) + /* If there is no suspension points on the right, let's fill it */
|
|
70
|
+
new Number(!f.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
|
|
71
|
+
new Number(t.value === a.value).valueOf();
|
|
72
|
+
let e = Math.max((t.value || 0) - i, 2);
|
|
73
|
+
const u = [];
|
|
74
|
+
for (e; e < (t.value || 0); e++) u.push(e);
|
|
75
|
+
return u;
|
|
76
|
+
}), M = s(() => {
|
|
77
|
+
const i = w.value + /* Filling with the remaining left siblings */
|
|
78
|
+
Math.abs(b.value - l.siblings) + /* If there is no suspension points on the left, let's fill it */
|
|
79
|
+
new Number(!g.value).valueOf() + /* If the pageNumber is the same of the firstPage, let's fill it */
|
|
80
|
+
new Number(t.value === 1).valueOf();
|
|
81
|
+
let e = Math.min(t.value || 0, a.value - 1);
|
|
82
|
+
const u = [];
|
|
83
|
+
for (e; e < Math.min((t.value || 0) + i, a.value - 1); e++)
|
|
84
|
+
u.push(e + 1);
|
|
85
|
+
return u;
|
|
86
|
+
}), k = (i) => {
|
|
87
|
+
let e = i;
|
|
88
|
+
i < 1 ? e = 1 : i > a.value && (e = a.value), t.value = e;
|
|
89
|
+
};
|
|
90
|
+
return (i, e) => (n(), r("nav", $, [
|
|
91
|
+
i.count > 0 ? (n(), r("ul", B, [
|
|
92
|
+
p("li", {
|
|
93
|
+
class: h(["arrow-button prev-page uikit-h-30x uikit-flex uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
94
|
+
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": t.value !== 1,
|
|
95
|
+
"hover:uikit-text-white": i.small && t.value !== 1,
|
|
96
|
+
"uikit-rounded-xs": i.small && i.prevLabel
|
|
97
|
+
}]),
|
|
98
|
+
"data-cy": i.prevDataCy,
|
|
99
|
+
onClick: e[0] || (e[0] = (u) => k((t.value || 0) - 1))
|
|
100
|
+
}, [
|
|
101
|
+
y(v(C), {
|
|
102
|
+
width: 20,
|
|
103
|
+
height: 11,
|
|
104
|
+
"stroke-color": t.value === 1 ? "#8996A9" : i.arrowColor,
|
|
105
|
+
class: "uikit-inline-block uikit-rotate-90"
|
|
106
|
+
}, null, 8, ["stroke-color"]),
|
|
107
|
+
i.small && i.prevLabel ? (n(), r("span", O, c(i.prevLabel), 1)) : o("", !0)
|
|
108
|
+
], 10, F),
|
|
109
|
+
i.small ? o("", !0) : (n(), r(m, { key: 0 }, [
|
|
110
|
+
(t.value || 0) > 1 ? (n(), r("li", {
|
|
111
|
+
key: 0,
|
|
112
|
+
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 hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
113
|
+
onClick: e[1] || (e[1] = (u) => k(0))
|
|
114
|
+
}, " 1 ")) : o("", !0),
|
|
115
|
+
g.value ? (n(), r("li", V, " ... ")) : o("", !0),
|
|
116
|
+
(n(!0), r(m, null, x(N.value, (u) => (n(), r("li", {
|
|
117
|
+
key: u,
|
|
118
|
+
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",
|
|
119
|
+
onClick: (L) => k(u)
|
|
120
|
+
}, c(v(d)(u)), 9, A))), 128))
|
|
121
|
+
], 64)),
|
|
122
|
+
p("li", {
|
|
123
|
+
class: h(["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", {
|
|
124
|
+
"uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !i.small
|
|
125
|
+
}])
|
|
126
|
+
}, c(t.value || 0), 3),
|
|
127
|
+
i.small ? o("", !0) : (n(), r(m, { key: 1 }, [
|
|
128
|
+
(n(!0), r(m, null, x(M.value, (u) => (n(), r("li", {
|
|
129
|
+
key: u,
|
|
130
|
+
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",
|
|
131
|
+
onClick: (L) => k(u)
|
|
132
|
+
}, c(v(d)(u)), 9, E))), 128)),
|
|
133
|
+
f.value ? (n(), r("li", z, " ... ")) : o("", !0),
|
|
134
|
+
(t.value || 0) < a.value ? (n(), r("li", {
|
|
135
|
+
key: 1,
|
|
136
|
+
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",
|
|
137
|
+
onClick: e[2] || (e[2] = (u) => k(a.value))
|
|
138
|
+
}, c(v(d)(a.value)), 1)) : o("", !0)
|
|
139
|
+
], 64)),
|
|
140
|
+
p("li", {
|
|
141
|
+
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", {
|
|
142
|
+
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (t.value || 0) < a.value,
|
|
143
|
+
"hover:uikit-text-white": i.small && (t.value || 0) < a.value,
|
|
144
|
+
"uikit-rounded-xs": i.small && i.nextLabel
|
|
145
|
+
}]),
|
|
146
|
+
"data-cy": i.nextDataCy,
|
|
147
|
+
onClick: e[3] || (e[3] = (u) => k((t.value || 0) + 1))
|
|
148
|
+
}, [
|
|
149
|
+
i.small && i.nextLabel ? (n(), r("span", q, c(i.nextLabel), 1)) : o("", !0),
|
|
150
|
+
y(v(C), {
|
|
151
|
+
"stroke-color": (t.value || 0) === a.value ? "#8996A9" : i.arrowColor,
|
|
152
|
+
width: 20,
|
|
153
|
+
height: 11,
|
|
154
|
+
class: "uikit-inline-block -uikit-rotate-90"
|
|
155
|
+
}, null, 8, ["stroke-color"])
|
|
156
|
+
], 10, T)
|
|
157
|
+
])) : o("", !0)
|
|
158
|
+
]));
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
export {
|
|
162
|
+
Q as _
|
|
163
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import { _ as V } from "./chunks/BaseDropDown.vue_vue_type_script_setup_true_lan
|
|
|
20
20
|
import { default as q } from "./BaseFloatingLabel.js";
|
|
21
21
|
import { default as z } from "./BaseIcon.js";
|
|
22
22
|
import { default as H } from "./BaseInput.js";
|
|
23
|
-
import { _ as K } from "./chunks/BasePagination.vue_vue_type_script_setup_true_lang.
|
|
23
|
+
import { _ as K } from "./chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cb6fEMc-.js";
|
|
24
24
|
import { default as Q } from "./BasePaper.js";
|
|
25
25
|
import { default as X } from "./BaseSlider.js";
|
|
26
26
|
import { default as Z } from "./BaseTextarea.js";
|
package/package.json
CHANGED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { defineComponent as P, mergeModels as S, useModel as $, computed as k, openBlock as r, createElementBlock as n, createElementVNode as h, normalizeClass as g, createVNode as y, unref as p, toDisplayString as v, createCommentVNode as a, Fragment as m, renderList as C } from "vue";
|
|
2
|
-
import "./types-B0dZ7OiV.D29wNgoj.js";
|
|
3
|
-
import { a as N } from "./ArrowIcon.CCFMdsq6.js";
|
|
4
|
-
import "./PharmacyIcon.56ql_DYl.js";
|
|
5
|
-
function d(s, l = !1) {
|
|
6
|
-
return s == null ? "" : B(l ? Math.round(s) : Math.floor(s), 0);
|
|
7
|
-
}
|
|
8
|
-
function B(s, l) {
|
|
9
|
-
return !s && s !== 0 ? "" : s.toLocaleString(
|
|
10
|
-
"it-IT",
|
|
11
|
-
// usare una stringa tipo 'en-US' per sovrascrivere la lingua del browser
|
|
12
|
-
{
|
|
13
|
-
minimumFractionDigits: l,
|
|
14
|
-
maximumFractionDigits: l
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
const F = {
|
|
19
|
-
"aria-label": "Page navigation",
|
|
20
|
-
class: "uikit-overflow-auto"
|
|
21
|
-
}, _ = {
|
|
22
|
-
key: 0,
|
|
23
|
-
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"
|
|
24
|
-
}, D = {
|
|
25
|
-
key: 0,
|
|
26
|
-
class: "uikit-mx-10px uikit-select-none"
|
|
27
|
-
}, O = {
|
|
28
|
-
key: 1,
|
|
29
|
-
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"
|
|
30
|
-
}, V = ["onClick"], A = ["onClick"], E = {
|
|
31
|
-
key: 0,
|
|
32
|
-
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"
|
|
33
|
-
}, z = {
|
|
34
|
-
key: 0,
|
|
35
|
-
class: "uikit-mx-10px uikit-select-none"
|
|
36
|
-
}, J = /* @__PURE__ */ P({
|
|
37
|
-
__name: "BasePagination",
|
|
38
|
-
props: /* @__PURE__ */ S({
|
|
39
|
-
count: { default: 0 },
|
|
40
|
-
limit: { default: 25 },
|
|
41
|
-
siblings: { default: 3 },
|
|
42
|
-
additionalCount: { default: 0 },
|
|
43
|
-
arrowColor: { default: "#2B5DFF" },
|
|
44
|
-
small: { type: Boolean, default: !1 },
|
|
45
|
-
prevLabel: { default: "" },
|
|
46
|
-
nextLabel: { default: "" }
|
|
47
|
-
}, {
|
|
48
|
-
pageNumber: { default: 1 },
|
|
49
|
-
pageNumberModifiers: {}
|
|
50
|
-
}),
|
|
51
|
-
emits: ["update:pageNumber"],
|
|
52
|
-
setup(s) {
|
|
53
|
-
const l = s, u = $(s, "pageNumber"), o = k(
|
|
54
|
-
() => Math.ceil((l.count + l.additionalCount) / l.limit)
|
|
55
|
-
), f = k(
|
|
56
|
-
() => (u.value || 0) > l.siblings + 2
|
|
57
|
-
), b = k(
|
|
58
|
-
() => (u.value || 0) < o.value - l.siblings - 1
|
|
59
|
-
), w = k(() => {
|
|
60
|
-
let i = u.value || 0, t = 0;
|
|
61
|
-
for (; i > 2 && t < l.siblings; )
|
|
62
|
-
i--, t++;
|
|
63
|
-
return t;
|
|
64
|
-
}), x = k(() => {
|
|
65
|
-
let i = u.value || 0, t = 0;
|
|
66
|
-
for (; i < o.value - 1 && t < l.siblings; )
|
|
67
|
-
i++, t++;
|
|
68
|
-
return t;
|
|
69
|
-
}), M = k(() => {
|
|
70
|
-
const e = w.value + /* Filling with the remaining right siblings */
|
|
71
|
-
Math.abs(x.value - l.siblings) + /* If there is no suspension points on the right, let's fill it */
|
|
72
|
-
new Number(!b.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
|
|
73
|
-
new Number(u.value === o.value).valueOf();
|
|
74
|
-
let i = Math.max((u.value || 0) - e, 2);
|
|
75
|
-
const t = [];
|
|
76
|
-
for (i; i < (u.value || 0); i++) t.push(i);
|
|
77
|
-
return t;
|
|
78
|
-
}), L = k(() => {
|
|
79
|
-
const e = x.value + /* Filling with the remaining left siblings */
|
|
80
|
-
Math.abs(w.value - l.siblings) + /* If there is no suspension points on the left, let's fill it */
|
|
81
|
-
new Number(!f.value).valueOf() + /* If the pageNumber is the same of the firstPage, let's fill it */
|
|
82
|
-
new Number(u.value === 1).valueOf();
|
|
83
|
-
let i = Math.min(u.value || 0, o.value - 1);
|
|
84
|
-
const t = [];
|
|
85
|
-
for (i; i < Math.min((u.value || 0) + e, o.value - 1); i++)
|
|
86
|
-
t.push(i + 1);
|
|
87
|
-
return t;
|
|
88
|
-
}), c = (e) => {
|
|
89
|
-
let i = e;
|
|
90
|
-
e < 1 ? i = 1 : e > o.value && (i = o.value), u.value = i;
|
|
91
|
-
};
|
|
92
|
-
return (e, i) => (r(), n("nav", F, [
|
|
93
|
-
l.count > 0 ? (r(), n("ul", _, [
|
|
94
|
-
h("li", {
|
|
95
|
-
class: g(["arrow-button prev-page uikit-h-30x uikit-flex uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
96
|
-
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": u.value !== 1,
|
|
97
|
-
"hover:uikit-text-white": e.small && u.value !== 1,
|
|
98
|
-
"uikit-rounded-xs": e.small && e.prevLabel
|
|
99
|
-
}]),
|
|
100
|
-
onClick: i[0] || (i[0] = (t) => c((u.value || 0) - 1))
|
|
101
|
-
}, [
|
|
102
|
-
y(p(N), {
|
|
103
|
-
width: 20,
|
|
104
|
-
height: 11,
|
|
105
|
-
"stroke-color": u.value === 1 ? "#8996A9" : e.arrowColor,
|
|
106
|
-
class: "uikit-inline-block uikit-rotate-90"
|
|
107
|
-
}, null, 8, ["stroke-color"]),
|
|
108
|
-
e.small && e.prevLabel ? (r(), n("span", D, v(e.prevLabel), 1)) : a("", !0)
|
|
109
|
-
], 2),
|
|
110
|
-
e.small ? a("", !0) : (r(), n(m, { key: 0 }, [
|
|
111
|
-
(u.value || 0) > 1 ? (r(), n("li", {
|
|
112
|
-
key: 0,
|
|
113
|
-
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 hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
114
|
-
onClick: i[1] || (i[1] = (t) => c(0))
|
|
115
|
-
}, " 1 ")) : a("", !0),
|
|
116
|
-
f.value ? (r(), n("li", O, " ... ")) : a("", !0),
|
|
117
|
-
(r(!0), n(m, null, C(M.value, (t) => (r(), n("li", {
|
|
118
|
-
key: t,
|
|
119
|
-
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",
|
|
120
|
-
onClick: (j) => c(t)
|
|
121
|
-
}, v(p(d)(t)), 9, V))), 128))
|
|
122
|
-
], 64)),
|
|
123
|
-
h("li", {
|
|
124
|
-
class: g(["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", {
|
|
125
|
-
"uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !e.small
|
|
126
|
-
}])
|
|
127
|
-
}, v(u.value || 0), 3),
|
|
128
|
-
e.small ? a("", !0) : (r(), n(m, { key: 1 }, [
|
|
129
|
-
(r(!0), n(m, null, C(L.value, (t) => (r(), n("li", {
|
|
130
|
-
key: t,
|
|
131
|
-
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",
|
|
132
|
-
onClick: (j) => c(t)
|
|
133
|
-
}, v(p(d)(t)), 9, A))), 128)),
|
|
134
|
-
b.value ? (r(), n("li", E, " ... ")) : a("", !0),
|
|
135
|
-
(u.value || 0) < o.value ? (r(), n("li", {
|
|
136
|
-
key: 1,
|
|
137
|
-
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",
|
|
138
|
-
onClick: i[2] || (i[2] = (t) => c(o.value))
|
|
139
|
-
}, v(p(d)(o.value)), 1)) : a("", !0)
|
|
140
|
-
], 64)),
|
|
141
|
-
h("li", {
|
|
142
|
-
class: g(["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", {
|
|
143
|
-
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (u.value || 0) < o.value,
|
|
144
|
-
"hover:uikit-text-white": e.small && (u.value || 0) < o.value,
|
|
145
|
-
"uikit-rounded-xs": e.small && e.nextLabel
|
|
146
|
-
}]),
|
|
147
|
-
onClick: i[3] || (i[3] = (t) => c((u.value || 0) + 1))
|
|
148
|
-
}, [
|
|
149
|
-
e.small && e.nextLabel ? (r(), n("span", z, v(e.nextLabel), 1)) : a("", !0),
|
|
150
|
-
y(p(N), {
|
|
151
|
-
"stroke-color": (u.value || 0) === o.value ? "#8996A9" : e.arrowColor,
|
|
152
|
-
width: 20,
|
|
153
|
-
height: 11,
|
|
154
|
-
class: "uikit-inline-block -uikit-rotate-90"
|
|
155
|
-
}, null, 8, ["stroke-color"])
|
|
156
|
-
], 2)
|
|
157
|
-
])) : a("", !0)
|
|
158
|
-
]));
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
export {
|
|
162
|
-
J as _
|
|
163
|
-
};
|