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