@robuust-digital/vue-components 3.0.1 → 3.1.0
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/CHANGELOG.md
CHANGED
|
@@ -288,6 +288,10 @@ var q = ["value", "disabled"], J = ["value", "disabled"], Y = /* @__PURE__ */ p(
|
|
|
288
288
|
20,
|
|
289
289
|
50
|
|
290
290
|
] },
|
|
291
|
+
showPerPage: {
|
|
292
|
+
type: Boolean,
|
|
293
|
+
default: !0
|
|
294
|
+
},
|
|
291
295
|
fromLabel: { default: "of" },
|
|
292
296
|
prevIcon: {
|
|
293
297
|
type: [
|
|
@@ -313,7 +317,7 @@ var q = ["value", "disabled"], J = ["value", "disabled"], Y = /* @__PURE__ */ p(
|
|
|
313
317
|
set: (e) => r("pagination:perPage", Number(e))
|
|
314
318
|
});
|
|
315
319
|
return (t, n) => e.pagination?.total ? (y(), l("div", X, [
|
|
316
|
-
S(t.$slots, "perPage", h(e.pagination, { perPage: i.value }), () => [f(Y, {
|
|
320
|
+
e.showPerPage ? S(t.$slots, "perPage", h({ key: 0 }, e.pagination, { perPage: i.value }), () => [f(Y, {
|
|
317
321
|
modelValue: i.value,
|
|
318
322
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
319
323
|
size: "sm",
|
|
@@ -324,7 +328,7 @@ var q = ["value", "disabled"], J = ["value", "disabled"], Y = /* @__PURE__ */ p(
|
|
|
324
328
|
value: t
|
|
325
329
|
}, w(t) + " " + w(e.perPageLabel), 9, Z))), 128))]),
|
|
326
330
|
_: 1
|
|
327
|
-
}, 8, ["modelValue"])]),
|
|
331
|
+
}, 8, ["modelValue"])]) : c("", !0),
|
|
328
332
|
S(t.$slots, "info", h(e.pagination, { fromLabel: e.fromLabel }), () => [u("div", re, w(e.pagination.from) + " - " + w(e.pagination.to) + " " + w(e.fromLabel) + " " + w(e.pagination.total), 1)]),
|
|
329
333
|
u("nav", null, [u("ol", ie, [(y(!0), l(a, null, x(e.pagination.links, (n, i) => (y(), l("li", {
|
|
330
334
|
key: `pagination-link-${n.label}-${i}`,
|
|
@@ -376,6 +380,10 @@ var q = ["value", "disabled"], J = ["value", "disabled"], Y = /* @__PURE__ */ p(
|
|
|
376
380
|
20,
|
|
377
381
|
50
|
|
378
382
|
] },
|
|
383
|
+
showPerPage: {
|
|
384
|
+
type: Boolean,
|
|
385
|
+
default: !0
|
|
386
|
+
},
|
|
379
387
|
fromLabel: { default: "of" },
|
|
380
388
|
prevIcon: {
|
|
381
389
|
type: [
|
|
@@ -485,6 +493,7 @@ var q = ["value", "disabled"], J = ["value", "disabled"], Y = /* @__PURE__ */ p(
|
|
|
485
493
|
"per-page": e.perPage,
|
|
486
494
|
"per-page-label": e.perPageLabel,
|
|
487
495
|
"per-page-options": e.perPageOptions,
|
|
496
|
+
"show-per-page": e.showPerPage,
|
|
488
497
|
"from-label": e.fromLabel,
|
|
489
498
|
"prev-icon": e.prevIcon,
|
|
490
499
|
"next-icon": e.nextIcon,
|
|
@@ -495,6 +504,7 @@ var q = ["value", "disabled"], J = ["value", "disabled"], Y = /* @__PURE__ */ p(
|
|
|
495
504
|
"per-page",
|
|
496
505
|
"per-page-label",
|
|
497
506
|
"per-page-options",
|
|
507
|
+
"show-per-page",
|
|
498
508
|
"from-label",
|
|
499
509
|
"prev-icon",
|
|
500
510
|
"next-icon"
|
package/dist/core/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../_shared/core-
|
|
1
|
+
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../_shared/core-1e7ogP-S.js";
|
|
2
2
|
import { n as d } from "../_shared/ChevronDownIcon-Y_yqpwON.js";
|
|
3
3
|
import { t as f } from "../_shared/ButtonBase-DyeIkb-l.js";
|
|
4
4
|
import { t as p } from "../_shared/FormInput-k0vAk3VU.js";
|
package/dist/index/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../_shared/core-
|
|
1
|
+
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../_shared/core-1e7ogP-S.js";
|
|
2
2
|
import { n as d } from "../_shared/ChevronDownIcon-Y_yqpwON.js";
|
|
3
3
|
import { t as f } from "../_shared/ButtonBase-DyeIkb-l.js";
|
|
4
4
|
import { t as p } from "../_shared/FormInput-k0vAk3VU.js";
|