golden-logic-ui 1.2.21 → 1.2.23
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/ConfirmationModal-i3ekouBw.js +75 -0
- package/dist/DatatableAction-D-Qdjj2W.js +113 -0
- package/dist/DatatableCommand-BoU5cYJg.js +18 -0
- package/dist/DatatableConvertCronToHuman-Coiaa-wa.js +82 -0
- package/dist/DatatableDate-DtEktp_Z.js +20 -0
- package/dist/DatatableDateTime-PEXV-bY7.js +22 -0
- package/dist/DatatableDeleteAction-BQ6MyhV6.js +104 -0
- package/dist/DatatableDeleteEditAction-Cx324OUt.js +125 -0
- package/dist/DatatableFileDownload-BxP2_lpQ.js +87 -0
- package/dist/DatatableFiles-BROH3vBH.js +80 -0
- package/dist/DatatableHtml-ChZzeapg.js +17 -0
- package/dist/DatatableList-BSVI22pu.js +35 -0
- package/dist/DatatableListNested-BWEqWRCc.js +37 -0
- package/dist/DatatablePicture-DaWD4uIX.js +26 -0
- package/dist/DatatablePictures-xxeghKp3.js +39 -0
- package/dist/DatatableStatus-Dx60sa7s.js +31 -0
- package/dist/DatatableStatusGeneral-UOub65UY.js +59 -0
- package/dist/DatatableStatusServer-Dcq11U5_.js +37 -0
- package/dist/DatatableStatusSpecficColor-BYUuGgEb.js +64 -0
- package/dist/DatatableStatusTextLabelGeneral-J4MytOnh.js +83 -0
- package/dist/DeleteConfirmationModal-CQ07_qiL.js +96 -0
- package/dist/DynamicConfirmation-rEhA3jCe.js +115 -0
- package/dist/FilesUpload-JKyOru3A.js +300 -0
- package/dist/GLButton-ByIDh6vq.js +118 -0
- package/dist/GLDataTable-Bixwkdr4.js +278 -0
- package/dist/GLDataTableServerSide-Ra5AqDGB.js +16336 -0
- package/dist/GLTextarea-j7XXWI7A.js +110 -0
- package/dist/GlAccordion-BIAfvctc.js +91 -0
- package/dist/GlAccordionsWrapper-DsdunDzi.js +31 -0
- package/dist/GlCard-BVXmTv6q.js +37 -0
- package/dist/GlCodeCopy-C068yRcM.js +86 -0
- package/dist/GlCodeMirror-Ow8TJYSN.js +161 -0
- package/dist/GlCodeMirrorTranslate-CFmoM7d6.js +2068 -0
- package/dist/GlDataTableComponent-CSsMcDcX.js +366 -0
- package/dist/GlDataTableServerSideGroupBy-cG4BhXOA.js +260 -0
- package/dist/GlDateRangePicker-BWAEfZTB.js +124 -0
- package/dist/GlDropdown-B_zVkmxO.js +414 -0
- package/dist/GlLanguageSelector-DmWuIxzK.js +68 -0
- package/dist/GlModal-AMtSRssu.js +123 -0
- package/dist/GlModalShow-BzbcLu51.js +120 -0
- package/dist/GlModalWithoutOverflow-vR50Ulka.js +127 -0
- package/dist/GlMultiItemSlide-CxsiUcTr.js +409 -0
- package/dist/GlMultiItemSlideDynamic-BhdHrj3L.js +434 -0
- package/dist/GlMultiSelectDropdown-OaAC5ouZ.js +383 -0
- package/dist/GlTab-CUbU0yit.js +22 -0
- package/dist/GlTabShow-BBU3VU7O.js +21 -0
- package/dist/GlTabsWrapper-Dw7NAgDw.js +54 -0
- package/dist/GlTextCopy-CGgnIqPh.js +93 -0
- package/dist/GlTextInput-CoL8oZSw.js +126 -0
- package/dist/GlTextInputFile-BE2maeRQ.js +95 -0
- package/dist/GlTextInputWithText-C6fzOoYl.js +116 -0
- package/dist/GlTextTranslate-C3DzCK6k.js +125 -0
- package/dist/GlTextareaTranslate-DyU86Wf_.js +126 -0
- package/dist/GlTinymce-CjsbThKo.js +118 -0
- package/dist/GlTinymceTranslate-vp6hYqDK.js +188 -0
- package/dist/GlToastList-eeZ0hUJQ.js +126 -0
- package/dist/GlToggleBox-Dym29cx5.js +120 -0
- package/dist/GlToggleBoxTrueFalse-CjvcXXTw.js +112 -0
- package/dist/StatusConnectingConnectedDisconnected-CK5YzyQH.js +63 -0
- package/dist/StatusRunningSuccessFailed-CxK20462.js +41 -0
- package/dist/TailwindPagination-Dz89aS_l.js +276 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/golden-logic-ui.css +1 -1
- package/dist/golden-logic-ui.js +217 -94352
- package/dist/golden-logic-ui.umd.cjs +94 -94
- package/dist/index-B4V16SEr.js +15668 -0
- package/dist/plugin-D6yBFU6i.js +53226 -0
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createElementBlock as n, openBlock as l, createCommentVNode as r, createElementVNode as t, createTextVNode as o } from "vue";
|
|
2
|
+
const u = { class: "flex flex-wrap text-nowrap" }, i = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
|
|
5
|
+
}, m = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "inline-flex items-center px-2 py-1 text-sm font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
|
|
8
|
+
}, f = {
|
|
9
|
+
key: 2,
|
|
10
|
+
class: "inline-flex items-center px-2 py-1 bg-red-100 text-red-800 text-sm font-medium rounded-full dark:bg-red-900 dark:text-red-300"
|
|
11
|
+
}, x = {
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
+
viewBox: "0 0 20 20",
|
|
14
|
+
fill: "none",
|
|
15
|
+
class: "w-5 h-5",
|
|
16
|
+
style: { "animation-direction": "reverse" }
|
|
17
|
+
}, b = {
|
|
18
|
+
__name: "StatusConnectingConnectedDisconnected",
|
|
19
|
+
props: {
|
|
20
|
+
status: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: !1
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
emits: ["reconnect"],
|
|
26
|
+
setup(s, { emit: c }) {
|
|
27
|
+
const d = c, a = () => {
|
|
28
|
+
d("reconnect");
|
|
29
|
+
};
|
|
30
|
+
return (p, e) => (l(), n("div", u, [
|
|
31
|
+
s.status === 0 ? (l(), n("span", i, e[0] || (e[0] = [
|
|
32
|
+
t("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
33
|
+
t("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
34
|
+
t("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
35
|
+
], -1),
|
|
36
|
+
o(" Connecting")
|
|
37
|
+
]))) : r("", !0),
|
|
38
|
+
s.status === 1 ? (l(), n("span", m, e[1] || (e[1] = [
|
|
39
|
+
t("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1),
|
|
40
|
+
o(" Connected ")
|
|
41
|
+
]))) : r("", !0),
|
|
42
|
+
s.status === 2 ? (l(), n("span", f, e[2] || (e[2] = [
|
|
43
|
+
t("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1),
|
|
44
|
+
o(" Disconnected ")
|
|
45
|
+
]))) : r("", !0),
|
|
46
|
+
t("button", {
|
|
47
|
+
onClick: a,
|
|
48
|
+
class: "ml-1"
|
|
49
|
+
}, [
|
|
50
|
+
(l(), n("svg", x, e[3] || (e[3] = [
|
|
51
|
+
t("path", {
|
|
52
|
+
"fill-rule": "evenodd",
|
|
53
|
+
d: "M10 1.425c.002-.113-.044-.222-.125-.3L9.708.958C9.63.879 9.523.835 9.412.835s-.218.044-.296.123L6.163 3.9c-.16.165-.16.427 0 .592l2.953 2.942c.078.079.185.123.296.123s.218-.044.296-.123l.167-.167c.081-.078.127-.187.125-.3V5c2.764 0 5.005 2.239 5.005 5 0 .808-.197 1.603-.575 2.317-.086.162-.056.362.075.492l.609.608c.092.091.222.134.35.117s.241-.091.309-.2a6.66 6.66 0 0 0 .002-6.664C14.584 4.607 12.383 3.336 10 3.333V1.425zm.588 11.018c.111 0 .218.044.296.123l2.953 2.942c.16.165.16.427 0 .592l-2.953 2.942c-.078.079-.185.123-.296.123s-.218-.044-.296-.123l-.167-.167c-.082-.078-.127-.187-.125-.3v-1.908c-2.383-.002-4.584-1.274-5.774-3.336a6.66 6.66 0 0 1 .002-6.664c.064-.115.178-.195.309-.217s.258.025.35.117l.617.617c.128.131.159.329.075.492-.386.714-.587 1.513-.584 2.325 0 2.761 2.241 5 5.005 5v-1.967c-.002-.113.044-.222.125-.3l.167-.167c.078-.079.185-.123.296-.123z",
|
|
54
|
+
fill: "currentColor"
|
|
55
|
+
}, null, -1)
|
|
56
|
+
])))
|
|
57
|
+
])
|
|
58
|
+
]));
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
b as default
|
|
63
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createElementBlock as l, openBlock as n, createCommentVNode as r, createElementVNode as t, createTextVNode as u } from "vue";
|
|
2
|
+
const a = { class: "flex flex-wrap gap-2 text-nowrap" }, d = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
|
|
5
|
+
}, i = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
|
|
8
|
+
}, o = {
|
|
9
|
+
key: 2,
|
|
10
|
+
class: "inline-flex items-center px-2 py-1 bg-red-100 text-red-800 text-xs font-medium rounded-full dark:bg-red-900 dark:text-red-300"
|
|
11
|
+
}, m = {
|
|
12
|
+
__name: "StatusRunningSuccessFailed",
|
|
13
|
+
props: {
|
|
14
|
+
status: {
|
|
15
|
+
type: Number,
|
|
16
|
+
default: !1
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(s) {
|
|
20
|
+
return (x, e) => (n(), l("div", a, [
|
|
21
|
+
s.status === 0 ? (n(), l("span", d, e[0] || (e[0] = [
|
|
22
|
+
t("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
23
|
+
t("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
24
|
+
t("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
25
|
+
], -1),
|
|
26
|
+
u(" Running")
|
|
27
|
+
]))) : r("", !0),
|
|
28
|
+
s.status === 1 ? (n(), l("span", i, e[1] || (e[1] = [
|
|
29
|
+
t("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1),
|
|
30
|
+
u(" Success ")
|
|
31
|
+
]))) : r("", !0),
|
|
32
|
+
s.status === 2 ? (n(), l("span", o, e[2] || (e[2] = [
|
|
33
|
+
t("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1),
|
|
34
|
+
u(" Failed ")
|
|
35
|
+
]))) : r("", !0)
|
|
36
|
+
]));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
m as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { resolveComponent as b, createBlock as k, openBlock as s, withCtx as P, createElementBlock as g, createCommentVNode as u, normalizeClass as c, createTextVNode as m, createElementVNode as n, toDisplayString as l, mergeProps as p, toHandlers as f, renderSlot as y, Fragment as w, renderList as _ } from "vue";
|
|
2
|
+
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const U = {
|
|
4
|
+
emits: ["pagination-change-page"],
|
|
5
|
+
props: {
|
|
6
|
+
data: {
|
|
7
|
+
type: Object,
|
|
8
|
+
default: () => {
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
limit: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 0
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
computed: {
|
|
17
|
+
isApiResource() {
|
|
18
|
+
return !!this.data.meta;
|
|
19
|
+
},
|
|
20
|
+
currentPage() {
|
|
21
|
+
return this.isApiResource ? this.data.meta.current_page : this.data.current_page;
|
|
22
|
+
},
|
|
23
|
+
firstPageUrl() {
|
|
24
|
+
return this.isApiResource ? this.data.links.first : null;
|
|
25
|
+
},
|
|
26
|
+
from() {
|
|
27
|
+
return this.isApiResource ? this.data.meta.from : this.data.from;
|
|
28
|
+
},
|
|
29
|
+
lastPage() {
|
|
30
|
+
return this.isApiResource ? this.data.meta.last_page : this.data.last_page;
|
|
31
|
+
},
|
|
32
|
+
lastPageUrl() {
|
|
33
|
+
return this.isApiResource ? this.data.links.last : null;
|
|
34
|
+
},
|
|
35
|
+
nextPageUrl() {
|
|
36
|
+
return this.isApiResource ? this.data.links.next : this.data.next_page_url;
|
|
37
|
+
},
|
|
38
|
+
perPage() {
|
|
39
|
+
return this.isApiResource ? this.data.meta.per_page : this.data.per_page;
|
|
40
|
+
},
|
|
41
|
+
prevPageUrl() {
|
|
42
|
+
return this.isApiResource ? this.data.links.prev : this.data.prev_page_url;
|
|
43
|
+
},
|
|
44
|
+
to() {
|
|
45
|
+
return this.isApiResource ? this.data.meta.to : this.data.to;
|
|
46
|
+
},
|
|
47
|
+
total() {
|
|
48
|
+
return this.isApiResource ? this.data.meta.total : this.data.total;
|
|
49
|
+
},
|
|
50
|
+
pageRange() {
|
|
51
|
+
if (this.limit === -1)
|
|
52
|
+
return 0;
|
|
53
|
+
if (this.limit === 0)
|
|
54
|
+
return this.lastPage;
|
|
55
|
+
for (var t = this.currentPage, r = this.lastPage, a = this.limit, x = t - a, v = t + a + 1, h = [], o = [], e, i = 1; i <= r; i++)
|
|
56
|
+
(i === 1 || i === r || i >= x && i < v) && h.push(i);
|
|
57
|
+
return h.forEach(function(d) {
|
|
58
|
+
e && (d - e === 2 ? o.push(e + 1) : d - e !== 1 && o.push("...")), o.push(d), e = d;
|
|
59
|
+
}), o;
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
methods: {
|
|
63
|
+
previousPage() {
|
|
64
|
+
this.selectPage(this.currentPage - 1);
|
|
65
|
+
},
|
|
66
|
+
nextPage() {
|
|
67
|
+
this.selectPage(this.currentPage + 1);
|
|
68
|
+
},
|
|
69
|
+
selectPage(t) {
|
|
70
|
+
t !== "..." && this.$emit("pagination-change-page", t);
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
render() {
|
|
74
|
+
return this.$slots.default({
|
|
75
|
+
data: this.data,
|
|
76
|
+
limit: this.limit,
|
|
77
|
+
computed: {
|
|
78
|
+
isApiResource: this.isApiResource,
|
|
79
|
+
currentPage: this.currentPage,
|
|
80
|
+
firstPageUrl: this.firstPageUrl,
|
|
81
|
+
from: this.from,
|
|
82
|
+
lastPage: this.lastPage,
|
|
83
|
+
lastPageUrl: this.lastPageUrl,
|
|
84
|
+
nextPageUrl: this.nextPageUrl,
|
|
85
|
+
perPage: this.perPage,
|
|
86
|
+
prevPageUrl: this.prevPageUrl,
|
|
87
|
+
to: this.to,
|
|
88
|
+
total: this.total,
|
|
89
|
+
pageRange: this.pageRange
|
|
90
|
+
},
|
|
91
|
+
prevButtonEvents: {
|
|
92
|
+
click: (t) => {
|
|
93
|
+
t.preventDefault(), this.previousPage();
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
nextButtonEvents: {
|
|
97
|
+
click: (t) => {
|
|
98
|
+
t.preventDefault(), this.nextPage();
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
pageButtonEvents: (t) => ({
|
|
102
|
+
click: (r) => {
|
|
103
|
+
r.preventDefault(), this.selectPage(t);
|
|
104
|
+
}
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}, A = {
|
|
109
|
+
compatConfig: {
|
|
110
|
+
MODE: 3
|
|
111
|
+
},
|
|
112
|
+
inheritAttrs: !1,
|
|
113
|
+
emits: ["pagination-change-page"],
|
|
114
|
+
components: {
|
|
115
|
+
RenderlessPagination: U
|
|
116
|
+
},
|
|
117
|
+
props: {
|
|
118
|
+
translation: {
|
|
119
|
+
type: Object,
|
|
120
|
+
default: () => ({
|
|
121
|
+
of: "of",
|
|
122
|
+
entries: "Entries",
|
|
123
|
+
showing: "Showing",
|
|
124
|
+
to: "to"
|
|
125
|
+
})
|
|
126
|
+
},
|
|
127
|
+
data: {
|
|
128
|
+
type: Object,
|
|
129
|
+
default: () => {
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
limit: {
|
|
133
|
+
type: Number,
|
|
134
|
+
default: 0
|
|
135
|
+
},
|
|
136
|
+
showDisabled: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
default: !1
|
|
139
|
+
},
|
|
140
|
+
size: {
|
|
141
|
+
type: String,
|
|
142
|
+
default: "default",
|
|
143
|
+
validator: (t) => ["small", "default", "large"].indexOf(t) !== -1
|
|
144
|
+
},
|
|
145
|
+
align: {
|
|
146
|
+
type: String,
|
|
147
|
+
default: "left",
|
|
148
|
+
validator: (t) => ["left", "center", "right"].indexOf(t) !== -1
|
|
149
|
+
},
|
|
150
|
+
classes: {
|
|
151
|
+
type: String,
|
|
152
|
+
default: ""
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
methods: {
|
|
156
|
+
onPaginationChangePage(t) {
|
|
157
|
+
this.$emit("pagination-change-page", t);
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
mounted() {
|
|
161
|
+
}
|
|
162
|
+
}, B = {
|
|
163
|
+
key: 0,
|
|
164
|
+
class: "text-sm text-gray-700 dark:text-gray-400"
|
|
165
|
+
}, j = { class: "font-semibold text-gray-900 dark:text-white" }, C = { class: "font-semibold text-gray-900 dark:text-white" }, E = { class: "font-semibold text-gray-900 dark:text-white" }, D = ["tabindex"], N = ["aria-current"], O = ["tabindex"];
|
|
166
|
+
function S(t, r, a, x, v, h) {
|
|
167
|
+
const o = b("RenderlessPagination");
|
|
168
|
+
return s(), k(o, {
|
|
169
|
+
data: a.data,
|
|
170
|
+
limit: a.limit,
|
|
171
|
+
onPaginationChangePage: h.onPaginationChangePage
|
|
172
|
+
}, {
|
|
173
|
+
default: P((e) => [
|
|
174
|
+
e.computed.total > e.computed.perPage ? (s(), g("div", {
|
|
175
|
+
key: 0,
|
|
176
|
+
class: c(["flex flex-col items-center", a.classes])
|
|
177
|
+
}, [
|
|
178
|
+
e.computed.total > e.computed.perPage ? (s(), g("span", B, [
|
|
179
|
+
m(l(a.translation.showing) + " ", 1),
|
|
180
|
+
n("span", j, l(e.computed.from), 1),
|
|
181
|
+
m(" " + l(a.translation.to) + " ", 1),
|
|
182
|
+
n("span", C, l(e.computed.to), 1),
|
|
183
|
+
m(" " + l(a.translation.of) + " ", 1),
|
|
184
|
+
n("span", E, l(e.computed.total), 1),
|
|
185
|
+
m(" " + l(a.translation.entries), 1)
|
|
186
|
+
])) : u("", !0),
|
|
187
|
+
e.computed.total > e.computed.perPage ? (s(), g("ul", p({ key: 1 }, t.$attrs, {
|
|
188
|
+
class: ["flex items-center h-8 -space-x-px text-sm", {
|
|
189
|
+
"pagination-sm": a.size == "small",
|
|
190
|
+
"pagination-lg": a.size == "large",
|
|
191
|
+
"justify-content-center": a.align == "center",
|
|
192
|
+
"justify-content-end": a.align == "right"
|
|
193
|
+
}]
|
|
194
|
+
}), [
|
|
195
|
+
e.computed.prevPageUrl || a.showDisabled ? (s(), g("li", {
|
|
196
|
+
key: 0,
|
|
197
|
+
class: c(["flex items-center justify-center h-8 px-3 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", { disabled: !e.computed.prevPageUrl }])
|
|
198
|
+
}, [
|
|
199
|
+
n("a", p({
|
|
200
|
+
class: "page-link",
|
|
201
|
+
href: "#",
|
|
202
|
+
"aria-label": "Previous",
|
|
203
|
+
tabindex: !e.computed.prevPageUrl && -1
|
|
204
|
+
}, f(e.prevButtonEvents, !0)), [
|
|
205
|
+
y(t.$slots, "prev-nav", {}, () => [
|
|
206
|
+
r[0] || (r[0] = n("span", { class: "sr-only" }, "Previous", -1)),
|
|
207
|
+
r[1] || (r[1] = n("svg", {
|
|
208
|
+
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
209
|
+
"aria-hidden": "true",
|
|
210
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
211
|
+
fill: "none",
|
|
212
|
+
viewBox: "0 0 6 10"
|
|
213
|
+
}, [
|
|
214
|
+
n("path", {
|
|
215
|
+
stroke: "currentColor",
|
|
216
|
+
"stroke-linecap": "round",
|
|
217
|
+
"stroke-linejoin": "round",
|
|
218
|
+
"stroke-width": "2",
|
|
219
|
+
d: "M5 1 1 5l4 4"
|
|
220
|
+
})
|
|
221
|
+
], -1))
|
|
222
|
+
])
|
|
223
|
+
], 16, D)
|
|
224
|
+
], 2)) : u("", !0),
|
|
225
|
+
(s(!0), g(w, null, _(e.computed.pageRange, (i, d) => (s(), g("li", {
|
|
226
|
+
class: c(["", { active: i == e.computed.currentPage }]),
|
|
227
|
+
key: d
|
|
228
|
+
}, [
|
|
229
|
+
n("a", p({
|
|
230
|
+
class: "",
|
|
231
|
+
href: "#"
|
|
232
|
+
}, f(e.pageButtonEvents(i), !0), {
|
|
233
|
+
"aria-current": i == e.computed.currentPage ? "page" : null,
|
|
234
|
+
class: i == e.computed.currentPage ? "z-10 flex items-center justify-center px-3 h-8 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white" : "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"
|
|
235
|
+
}), l(i), 17, N)
|
|
236
|
+
], 2))), 128)),
|
|
237
|
+
e.computed.nextPageUrl || a.showDisabled ? (s(), g("li", {
|
|
238
|
+
key: 1,
|
|
239
|
+
class: c(["flex items-center justify-center h-8 px-3 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", { disabled: !e.computed.nextPageUrl }])
|
|
240
|
+
}, [
|
|
241
|
+
n("a", p({
|
|
242
|
+
class: "",
|
|
243
|
+
href: "#",
|
|
244
|
+
"aria-label": "Next",
|
|
245
|
+
tabindex: !e.computed.nextPageUrl && -1
|
|
246
|
+
}, f(e.nextButtonEvents, !0)), [
|
|
247
|
+
y(t.$slots, "next-nav", {}, () => [
|
|
248
|
+
r[2] || (r[2] = n("span", { class: "sr-only" }, "Next", -1)),
|
|
249
|
+
r[3] || (r[3] = n("svg", {
|
|
250
|
+
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
251
|
+
"aria-hidden": "true",
|
|
252
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
253
|
+
fill: "none",
|
|
254
|
+
viewBox: "0 0 6 10"
|
|
255
|
+
}, [
|
|
256
|
+
n("path", {
|
|
257
|
+
stroke: "currentColor",
|
|
258
|
+
"stroke-linecap": "round",
|
|
259
|
+
"stroke-linejoin": "round",
|
|
260
|
+
"stroke-width": "2",
|
|
261
|
+
d: "m1 9 4-4-4-4"
|
|
262
|
+
})
|
|
263
|
+
], -1))
|
|
264
|
+
])
|
|
265
|
+
], 16, O)
|
|
266
|
+
], 2)) : u("", !0)
|
|
267
|
+
], 16)) : u("", !0)
|
|
268
|
+
], 2)) : u("", !0)
|
|
269
|
+
]),
|
|
270
|
+
_: 3
|
|
271
|
+
}, 8, ["data", "limit", "onPaginationChangePage"]);
|
|
272
|
+
}
|
|
273
|
+
const M = /* @__PURE__ */ R(A, [["render", S]]);
|
|
274
|
+
export {
|
|
275
|
+
M as default
|
|
276
|
+
};
|