golden-logic-ui 1.3.28 → 1.3.30
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import b from "./RenderlessPagination.vue.js";
|
|
2
|
-
import { resolveComponent as k, createBlock as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
2
|
+
import { resolveComponent as k, createBlock as v, openBlock as n, withCtx as w, createElementBlock as o, createCommentVNode as g, normalizeClass as u, createTextVNode as h, createElementVNode as t, toDisplayString as i, mergeProps as l, toHandlers as c, renderSlot as m, Fragment as p, renderList as j } from "vue";
|
|
3
|
+
import _ from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const B = {
|
|
5
5
|
compatConfig: {
|
|
6
6
|
MODE: 3
|
|
7
7
|
},
|
|
@@ -36,12 +36,12 @@ const j = {
|
|
|
36
36
|
size: {
|
|
37
37
|
type: String,
|
|
38
38
|
default: "default",
|
|
39
|
-
validator: (
|
|
39
|
+
validator: (d) => ["small", "default", "large"].indexOf(d) !== -1
|
|
40
40
|
},
|
|
41
41
|
align: {
|
|
42
42
|
type: String,
|
|
43
43
|
default: "left",
|
|
44
|
-
validator: (
|
|
44
|
+
validator: (d) => ["left", "center", "right"].indexOf(d) !== -1
|
|
45
45
|
},
|
|
46
46
|
classes: {
|
|
47
47
|
type: String,
|
|
@@ -49,65 +49,102 @@ const j = {
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
methods: {
|
|
52
|
-
onPaginationChangePage(
|
|
53
|
-
this.$emit("pagination-change-page",
|
|
52
|
+
onPaginationChangePage(d) {
|
|
53
|
+
this.$emit("pagination-change-page", d);
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
mounted() {
|
|
57
57
|
}
|
|
58
|
-
},
|
|
58
|
+
}, C = {
|
|
59
59
|
key: 0,
|
|
60
60
|
class: "text-sm text-gray-700 dark:text-gray-400"
|
|
61
|
-
},
|
|
62
|
-
|
|
61
|
+
}, U = { class: "font-semibold text-gray-900 dark:text-white" }, D = { class: "font-semibold text-gray-900 dark:text-white" }, E = { class: "font-semibold text-gray-900 dark:text-white" }, M = {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: "flex items-center justify-center h-8 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg sm:hidden hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",
|
|
64
|
+
"data-first": ""
|
|
65
|
+
}, N = ["tabindex"], S = {
|
|
66
|
+
class: "sm:hidden",
|
|
67
|
+
"data-page-of": ""
|
|
68
|
+
}, z = ["aria-current"], O = ["tabindex"], P = {
|
|
69
|
+
key: 3,
|
|
70
|
+
class: "flex items-center justify-center h-8 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg sm:hidden hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",
|
|
71
|
+
"data-last": ""
|
|
72
|
+
};
|
|
73
|
+
function R(d, a, r, V, F, y) {
|
|
63
74
|
const x = k("RenderlessPagination");
|
|
64
|
-
return
|
|
65
|
-
data:
|
|
66
|
-
limit:
|
|
75
|
+
return n(), v(x, {
|
|
76
|
+
data: r.data,
|
|
77
|
+
limit: r.limit,
|
|
67
78
|
onPaginationChangePage: y.onPaginationChangePage
|
|
68
79
|
}, {
|
|
69
|
-
default:
|
|
70
|
-
e.computed.total > e.computed.perPage ? (
|
|
80
|
+
default: w((e) => [
|
|
81
|
+
e.computed.total > e.computed.perPage ? (n(), o("div", {
|
|
71
82
|
key: 0,
|
|
72
|
-
class:
|
|
83
|
+
class: u(["flex flex-col items-center w-full", r.classes])
|
|
73
84
|
}, [
|
|
74
|
-
e.computed.total > e.computed.perPage ? (
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
85
|
+
e.computed.total > e.computed.perPage ? (n(), o("span", C, [
|
|
86
|
+
h(i(r.translation.showing) + " ", 1),
|
|
87
|
+
t("span", U, i(e.computed.from), 1),
|
|
88
|
+
h(" " + i(r.translation.to) + " ", 1),
|
|
89
|
+
t("span", D, i(e.computed.to), 1),
|
|
90
|
+
h(" " + i(r.translation.of) + " ", 1),
|
|
91
|
+
t("span", E, i(e.computed.total), 1),
|
|
92
|
+
h(" " + i(r.translation.entries), 1)
|
|
82
93
|
])) : g("", !0),
|
|
83
|
-
e.computed.total > e.computed.perPage ? (
|
|
94
|
+
e.computed.total > e.computed.perPage ? (n(), o("ul", l({ key: 1 }, d.$attrs, {
|
|
84
95
|
class: ["flex flex-wrap items-center h-8 -space-x-px text-sm", {
|
|
85
|
-
"pagination-sm":
|
|
86
|
-
"pagination-lg":
|
|
87
|
-
"justify-content-center":
|
|
88
|
-
"justify-content-end":
|
|
96
|
+
"pagination-sm": r.size == "small",
|
|
97
|
+
"pagination-lg": r.size == "large",
|
|
98
|
+
"justify-content-center": r.align == "center",
|
|
99
|
+
"justify-content-end": r.align == "right"
|
|
89
100
|
}]
|
|
90
101
|
}), [
|
|
91
|
-
e.computed.prevPageUrl
|
|
92
|
-
|
|
93
|
-
|
|
102
|
+
e.computed.prevPageUrl ? (n(), o("li", M, [
|
|
103
|
+
t("a", l({
|
|
104
|
+
class: "flex items-center justify-center h-full px-3",
|
|
105
|
+
href: "#",
|
|
106
|
+
"aria-label": "First"
|
|
107
|
+
}, c(e.pageButtonEvents(1), !0)), a[0] || (a[0] = [
|
|
108
|
+
t("svg", {
|
|
109
|
+
class: "w-3 h-2.5 rtl:rotate-180",
|
|
110
|
+
"aria-hidden": "true",
|
|
111
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
112
|
+
fill: "none",
|
|
113
|
+
viewBox: "0 0 10 10"
|
|
114
|
+
}, [
|
|
115
|
+
t("path", {
|
|
116
|
+
stroke: "currentColor",
|
|
117
|
+
"stroke-linecap": "round",
|
|
118
|
+
"stroke-linejoin": "round",
|
|
119
|
+
"stroke-width": "2",
|
|
120
|
+
d: "M5 1 1 5l4 4M9 1 5 5l4 4"
|
|
121
|
+
})
|
|
122
|
+
], -1)
|
|
123
|
+
]), 16)
|
|
124
|
+
])) : g("", !0),
|
|
125
|
+
e.computed.prevPageUrl || r.showDisabled ? (n(), o("li", {
|
|
126
|
+
key: 1,
|
|
127
|
+
class: u(["flex items-center justify-center h-8 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white", {
|
|
128
|
+
disabled: !e.computed.prevPageUrl,
|
|
129
|
+
"max-sm:rounded-s-none": e.computed.prevPageUrl
|
|
130
|
+
}])
|
|
94
131
|
}, [
|
|
95
|
-
|
|
96
|
-
class: "page-link",
|
|
132
|
+
t("a", l({
|
|
133
|
+
class: "flex items-center justify-center h-full px-3 page-link",
|
|
97
134
|
href: "#",
|
|
98
135
|
"aria-label": "Previous",
|
|
99
136
|
tabindex: !e.computed.prevPageUrl && -1
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
137
|
+
}, c(e.prevButtonEvents, !0)), [
|
|
138
|
+
m(d.$slots, "prev-nav", {}, () => [
|
|
139
|
+
a[1] || (a[1] = t("span", { class: "sr-only" }, "Previous", -1)),
|
|
140
|
+
a[2] || (a[2] = t("svg", {
|
|
104
141
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
105
142
|
"aria-hidden": "true",
|
|
106
143
|
xmlns: "http://www.w3.org/2000/svg",
|
|
107
144
|
fill: "none",
|
|
108
145
|
viewBox: "0 0 6 10"
|
|
109
146
|
}, [
|
|
110
|
-
|
|
147
|
+
t("path", {
|
|
111
148
|
stroke: "currentColor",
|
|
112
149
|
"stroke-linecap": "round",
|
|
113
150
|
"stroke-linejoin": "round",
|
|
@@ -116,40 +153,52 @@ function z(r, n, t, O, R, y) {
|
|
|
116
153
|
})
|
|
117
154
|
], -1))
|
|
118
155
|
])
|
|
119
|
-
], 16,
|
|
156
|
+
], 16, N)
|
|
120
157
|
], 2)) : g("", !0),
|
|
121
|
-
(
|
|
122
|
-
|
|
158
|
+
t("li", S, [
|
|
159
|
+
t("span", {
|
|
160
|
+
class: u(["flex items-center justify-center h-8 px-3 leading-tight text-gray-700 bg-white border border-gray-300 tabular-nums dark:bg-gray-800 dark:border-gray-700 dark:text-gray-300", {
|
|
161
|
+
"rounded-s-lg": !(e.computed.prevPageUrl || r.showDisabled),
|
|
162
|
+
"rounded-e-lg": !(e.computed.nextPageUrl || r.showDisabled)
|
|
163
|
+
}]),
|
|
164
|
+
"aria-current": "page"
|
|
165
|
+
}, i(e.computed.currentPage) + " / " + i(e.computed.lastPage), 3)
|
|
166
|
+
]),
|
|
167
|
+
(n(!0), o(p, null, j(e.computed.pageRange, (s, f) => (n(), o("li", {
|
|
168
|
+
class: u(["hidden sm:block", { active: s == e.computed.currentPage }]),
|
|
123
169
|
key: f
|
|
124
170
|
}, [
|
|
125
|
-
|
|
171
|
+
t("a", l({
|
|
126
172
|
class: "",
|
|
127
173
|
href: "#"
|
|
128
|
-
},
|
|
129
|
-
"aria-current":
|
|
130
|
-
class:
|
|
131
|
-
}),
|
|
174
|
+
}, c(e.pageButtonEvents(s), !0), {
|
|
175
|
+
"aria-current": s == e.computed.currentPage ? "page" : null,
|
|
176
|
+
class: s == e.computed.currentPage ? "z-10 flex items-center justify-center px-3 h-8 leading-tight text-primary border border-primary bg-primary/10 hover:bg-primary/20 hover:text-primary dark:border-primaryDark dark:bg-primaryDark/20 dark:text-primaryDark" : "flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
177
|
+
}), i(s), 17, z)
|
|
132
178
|
], 2))), 128)),
|
|
133
|
-
e.computed.nextPageUrl ||
|
|
134
|
-
key:
|
|
135
|
-
class:
|
|
179
|
+
e.computed.nextPageUrl || r.showDisabled ? (n(), o("li", {
|
|
180
|
+
key: 2,
|
|
181
|
+
class: u(["flex items-center justify-center h-8 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white", {
|
|
182
|
+
disabled: !e.computed.nextPageUrl,
|
|
183
|
+
"max-sm:rounded-e-none": e.computed.nextPageUrl
|
|
184
|
+
}])
|
|
136
185
|
}, [
|
|
137
|
-
|
|
138
|
-
class: "",
|
|
186
|
+
t("a", l({
|
|
187
|
+
class: "flex items-center justify-center h-full px-3",
|
|
139
188
|
href: "#",
|
|
140
189
|
"aria-label": "Next",
|
|
141
190
|
tabindex: !e.computed.nextPageUrl && -1
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
191
|
+
}, c(e.nextButtonEvents, !0)), [
|
|
192
|
+
m(d.$slots, "next-nav", {}, () => [
|
|
193
|
+
a[3] || (a[3] = t("span", { class: "sr-only" }, "Next", -1)),
|
|
194
|
+
a[4] || (a[4] = t("svg", {
|
|
146
195
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
147
196
|
"aria-hidden": "true",
|
|
148
197
|
xmlns: "http://www.w3.org/2000/svg",
|
|
149
198
|
fill: "none",
|
|
150
199
|
viewBox: "0 0 6 10"
|
|
151
200
|
}, [
|
|
152
|
-
|
|
201
|
+
t("path", {
|
|
153
202
|
stroke: "currentColor",
|
|
154
203
|
"stroke-linecap": "round",
|
|
155
204
|
"stroke-linejoin": "round",
|
|
@@ -158,15 +207,38 @@ function z(r, n, t, O, R, y) {
|
|
|
158
207
|
})
|
|
159
208
|
], -1))
|
|
160
209
|
])
|
|
161
|
-
], 16,
|
|
162
|
-
], 2)) : g("", !0)
|
|
210
|
+
], 16, O)
|
|
211
|
+
], 2)) : g("", !0),
|
|
212
|
+
e.computed.nextPageUrl ? (n(), o("li", P, [
|
|
213
|
+
t("a", l({
|
|
214
|
+
class: "flex items-center justify-center h-full px-3",
|
|
215
|
+
href: "#",
|
|
216
|
+
"aria-label": "Last"
|
|
217
|
+
}, c(e.pageButtonEvents(e.computed.lastPage), !0)), a[5] || (a[5] = [
|
|
218
|
+
t("svg", {
|
|
219
|
+
class: "w-3 h-2.5 rtl:rotate-180",
|
|
220
|
+
"aria-hidden": "true",
|
|
221
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
222
|
+
fill: "none",
|
|
223
|
+
viewBox: "0 0 10 10"
|
|
224
|
+
}, [
|
|
225
|
+
t("path", {
|
|
226
|
+
stroke: "currentColor",
|
|
227
|
+
"stroke-linecap": "round",
|
|
228
|
+
"stroke-linejoin": "round",
|
|
229
|
+
"stroke-width": "2",
|
|
230
|
+
d: "M1 1l4 4-4 4M5 1l4 4-4 4"
|
|
231
|
+
})
|
|
232
|
+
], -1)
|
|
233
|
+
]), 16)
|
|
234
|
+
])) : g("", !0)
|
|
163
235
|
], 16)) : g("", !0)
|
|
164
236
|
], 2)) : g("", !0)
|
|
165
237
|
]),
|
|
166
238
|
_: 3
|
|
167
239
|
}, 8, ["data", "limit", "onPaginationChangePage"]);
|
|
168
240
|
}
|
|
169
|
-
const
|
|
241
|
+
const H = /* @__PURE__ */ _(B, [["render", R]]);
|
|
170
242
|
export {
|
|
171
|
-
|
|
243
|
+
H as default
|
|
172
244
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "The most popular library of interactive components built with Vuejs && Tailwind CSS",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "1.3.
|
|
6
|
+
"version": "1.3.30",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/mrgiant/GoldenLogicUi.git"
|