golden-logic-ui 1.3.28 → 1.3.29

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