@adyen/bento-vue3 1.11.0 → 1.12.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/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +11 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +43 -34
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +50 -1052
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +7 -13
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +4 -5
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +4 -5
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +4 -5
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/dropdown/composables/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/dropdown/composables/{useDisplayValue.types.d.ts → use-display-value.types.d.ts} +16 -0
- package/dist/@types/packages/vue2/src/components/dropdown/composables/{useKeyboardNavigation.d.ts → use-keyboard-navigation.d.ts} +3 -13
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-keyboard-navigation.types.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +50 -2435
- package/dist/@types/packages/vue2/src/components/dropdown/index.d.ts +6 -5
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +12 -12
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +17 -11
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +17 -61
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +60 -50
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +40 -357
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +77 -84
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +6 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/index.d.ts +1 -0
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +5 -5
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +25 -24
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.39fae75f.js → base-button.9f2acdeb.js} +2 -2
- package/dist/chunks/{base-button.39fae75f.js.map → base-button.9f2acdeb.js.map} +1 -1
- package/dist/chunks/base-modal.56a671c3.js +284 -0
- package/dist/chunks/base-modal.56a671c3.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.2ff339f6.js → button-actions-with-menu.080ccaf8.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.2ff339f6.js.map → button-actions-with-menu.080ccaf8.js.map} +1 -1
- package/dist/chunks/{button.623a46d2.js → button.7ce49c43.js} +2 -2
- package/dist/chunks/{button.623a46d2.js.map → button.7ce49c43.js.map} +1 -1
- package/dist/chunks/{calendar.b1d05580.js → calendar.f0f7b405.js} +8 -7
- package/dist/chunks/{calendar.b1d05580.js.map → calendar.f0f7b405.js.map} +1 -1
- package/dist/chunks/{checkbox.d65694f2.js → checkbox.c63cd1d8.js} +3 -3
- package/dist/chunks/{checkbox.d65694f2.js.map → checkbox.c63cd1d8.js.map} +1 -1
- package/dist/chunks/{controls-group.30352ce4.js → controls-group.1660076e.js} +3 -3
- package/dist/chunks/{controls-group.30352ce4.js.map → controls-group.1660076e.js.map} +1 -1
- package/dist/chunks/{copy.2a9cddc1.js → copy.91983fad.js} +4 -4
- package/dist/chunks/{copy.2a9cddc1.js.map → copy.91983fad.js.map} +1 -1
- package/dist/chunks/dropdown-default-textbox.157f95f0.js +399 -0
- package/dist/chunks/dropdown-default-textbox.157f95f0.js.map +1 -0
- package/dist/chunks/dropdown.b0e80aaa.js +902 -0
- package/dist/chunks/dropdown.b0e80aaa.js.map +1 -0
- package/dist/chunks/{field-label.b681234d.js → field-label.894140ec.js} +2 -2
- package/dist/chunks/{field-label.b681234d.js.map → field-label.894140ec.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.ebfb2f80.js → fixed-scroller.708a4c4e.js} +2 -2
- package/dist/chunks/{fixed-scroller.ebfb2f80.js.map → fixed-scroller.708a4c4e.js.map} +1 -1
- package/dist/chunks/{footer-actions.03015ba1.js → footer-actions.21ba3026.js} +3 -3
- package/dist/chunks/{footer-actions.03015ba1.js.map → footer-actions.21ba3026.js.map} +1 -1
- package/dist/chunks/{index.80078bf9.js → index.266dd8ff.js} +2 -2
- package/dist/chunks/{index.80078bf9.js.map → index.266dd8ff.js.map} +1 -1
- package/dist/chunks/{index.45d00aad.js → index.3ec651d0.js} +5 -4
- package/dist/chunks/{index.45d00aad.js.map → index.3ec651d0.js.map} +1 -1
- package/dist/chunks/{index.0a8ddfaa.js → index.46b7b1d3.js} +6 -6
- package/dist/chunks/{index.0a8ddfaa.js.map → index.46b7b1d3.js.map} +1 -1
- package/dist/chunks/{index.1dac266a.js → index.62c5d91f.js} +3 -3
- package/dist/chunks/{index.1dac266a.js.map → index.62c5d91f.js.map} +1 -1
- package/dist/chunks/{index.cf561336.js → index.762f7ec9.js} +6 -6
- package/dist/chunks/{index.cf561336.js.map → index.762f7ec9.js.map} +1 -1
- package/dist/chunks/{index.a4a6e52f.js → index.9ae856b3.js} +3 -3
- package/dist/chunks/{index.a4a6e52f.js.map → index.9ae856b3.js.map} +1 -1
- package/dist/chunks/{index.03605cb0.js → index.a25e53b8.js} +5 -5
- package/dist/chunks/{index.03605cb0.js.map → index.a25e53b8.js.map} +1 -1
- package/dist/chunks/{index.ef1c4d59.js → index.d57976cb.js} +320 -317
- package/dist/chunks/index.d57976cb.js.map +1 -0
- package/dist/chunks/{index.09f7f1b5.js → index.fcfca776.js} +2 -2
- package/dist/chunks/{index.09f7f1b5.js.map → index.fcfca776.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.ff6d6f32.js → listbox-option-tag.1f42ad7f.js} +3 -3
- package/dist/chunks/{listbox-option-tag.ff6d6f32.js.map → listbox-option-tag.1f42ad7f.js.map} +1 -1
- package/dist/chunks/{listbox.dd9883c5.js → listbox.2c0a69a6.js} +6 -6
- package/dist/chunks/{listbox.dd9883c5.js.map → listbox.2c0a69a6.js.map} +1 -1
- package/dist/chunks/{loading-button.30c5fede.js → loading-button.52696f0f.js} +2 -2
- package/dist/chunks/{loading-button.30c5fede.js.map → loading-button.52696f0f.js.map} +1 -1
- package/dist/chunks/{tooltip.785993dd.js → tooltip.d366f95d.js} +3 -3
- package/dist/chunks/{tooltip.785993dd.js.map → tooltip.d366f95d.js.map} +1 -1
- package/dist/chunks/{useCountryItems.d2a1f224.js → use-country-items.d2a1f224.js} +1 -1
- package/dist/chunks/use-country-items.d2a1f224.js.map +1 -0
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +658 -649
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +36 -35
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +122 -174
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +20 -19
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +3 -3
- package/dist/index.js +203 -200
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +4 -4
- package/dist/internal.js +7 -7
- package/dist/link.js +40 -30
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +297 -404
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +122 -122
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +3 -3
- package/dist/sidepanel.js +5 -5
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +39 -39
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +5 -5
- package/dist/toast.js +3 -3
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +5 -5
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/dropdown/composables/useDropdownSearchFilter.d.ts +0 -3
- package/dist/chunks/base-modal.161ce8f0.js +0 -310
- package/dist/chunks/base-modal.161ce8f0.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.a731b5fb.js +0 -420
- package/dist/chunks/dropdown-default-textbox.a731b5fb.js.map +0 -1
- package/dist/chunks/dropdown.96431c25.js +0 -993
- package/dist/chunks/dropdown.96431c25.js.map +0 -1
- package/dist/chunks/index.ef1c4d59.js.map +0 -1
- package/dist/chunks/useCountryItems.d2a1f224.js.map +0 -1
- /package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/{useDropdownOptionsListbox.d.ts → use-dropdown-options-listbox.d.ts} +0 -0
- /package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/composables/{useCountryItems.d.ts → use-country-items.d.ts} +0 -0
package/dist/pagination.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as N, ref as k, computed as v, resolveComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { B as A } from "./chunks/index.
|
|
4
|
-
import { B as E } from "./chunks/dropdown.
|
|
1
|
+
import { defineComponent as N, ref as k, computed as v, resolveComponent as c, openBlock as o, createElementBlock as _, createVNode as u, withCtx as m, createBlock as f, resolveDynamicComponent as B, mergeProps as b, createSlots as Z, createTextVNode as T, toDisplayString as h, createCommentVNode as $, createElementVNode as d, toRefs as z, normalizeClass as W, pushScopeId as U, popScopeId as V } from "vue";
|
|
2
|
+
import { u as j } from "./chunks/aria-label.ac9651a5.js";
|
|
3
|
+
import { B as A } from "./chunks/index.fcfca776.js";
|
|
4
|
+
import { B as E } from "./chunks/dropdown.b0e80aaa.js";
|
|
5
5
|
import { g as R } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { g as F, a as M } from "./chunks/i18n.6c402773.js";
|
|
7
7
|
import { _ as P } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
8
|
-
import { a as
|
|
9
|
-
import "./assets/
|
|
10
|
-
const
|
|
8
|
+
import { a as J } from "./chunks/button.7ce49c43.js";
|
|
9
|
+
import "./assets/index36.css";
|
|
10
|
+
const K = {
|
|
11
11
|
"en-US": {
|
|
12
12
|
showingItems: "Showing {itemCount} items",
|
|
13
13
|
showingItemsWithTotal: "Showing {itemCount} of {totalCount} items"
|
|
@@ -32,16 +32,16 @@ const J = {
|
|
|
32
32
|
showingItems: "Mostrando {itemCount} artículos",
|
|
33
33
|
showingItemsWithTotal: "Mostrando {itemCount} de {totalCount} artículos"
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, H = 50, y = [
|
|
36
36
|
{ label: "10", value: 10 },
|
|
37
37
|
{ label: "20", value: 20 },
|
|
38
38
|
{ label: "50", value: 50 },
|
|
39
39
|
// DEFAULT_NUMBER_OF_RESULTS
|
|
40
40
|
{ label: "75", value: 75 },
|
|
41
41
|
{ label: "100", value: 100 }
|
|
42
|
-
],
|
|
42
|
+
], q = N({
|
|
43
43
|
name: "bento-pagination-context-results-per-page",
|
|
44
|
-
i18n: { messages:
|
|
44
|
+
i18n: { messages: K },
|
|
45
45
|
components: {
|
|
46
46
|
BentoDropdown: E,
|
|
47
47
|
BentoTypography: A
|
|
@@ -52,7 +52,7 @@ const J = {
|
|
|
52
52
|
*/
|
|
53
53
|
itemsPerPage: {
|
|
54
54
|
type: Number,
|
|
55
|
-
default:
|
|
55
|
+
default: H,
|
|
56
56
|
validator: (e) => y.some(({ value: t }) => t === e)
|
|
57
57
|
},
|
|
58
58
|
/**
|
|
@@ -78,19 +78,19 @@ const J = {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
|
-
const
|
|
82
|
-
function
|
|
83
|
-
const g =
|
|
84
|
-
return o(),
|
|
85
|
-
|
|
86
|
-
default:
|
|
81
|
+
const G = { class: "b-pagination-results-per-page" };
|
|
82
|
+
function Q(e, t, n, i, s, l) {
|
|
83
|
+
const g = c("bento-dropdown"), a = c("bento-typography");
|
|
84
|
+
return o(), _("div", G, [
|
|
85
|
+
u(a, { el: "div" }, {
|
|
86
|
+
default: m(() => [
|
|
87
87
|
(o(), f(B(e.i18nComponent), b(e.getI18nProps(e.translationPathKey), {
|
|
88
88
|
class: "b-pagination-results-per-page__dropdown-container",
|
|
89
89
|
tag: "div",
|
|
90
90
|
plural: e.totalCount
|
|
91
|
-
}),
|
|
92
|
-
itemCount:
|
|
93
|
-
|
|
91
|
+
}), Z({
|
|
92
|
+
itemCount: m(() => [
|
|
93
|
+
u(g, {
|
|
94
94
|
id: e.dropdownId,
|
|
95
95
|
"aria-label": e.$t(e.translationPathKey, { itemCount: e.itemsPerPage, totalCount: e.totalCount }),
|
|
96
96
|
class: "b-pagination-results-per-page__dropdown",
|
|
@@ -104,7 +104,7 @@ function G(e, t, n, i, s, l) {
|
|
|
104
104
|
}, [
|
|
105
105
|
e.totalCount ? {
|
|
106
106
|
name: "totalCount",
|
|
107
|
-
fn:
|
|
107
|
+
fn: m(() => [
|
|
108
108
|
T(h(e.totalCount), 1)
|
|
109
109
|
]),
|
|
110
110
|
key: "0"
|
|
@@ -115,7 +115,7 @@ function G(e, t, n, i, s, l) {
|
|
|
115
115
|
})
|
|
116
116
|
]);
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const X = /* @__PURE__ */ P(q, [["render", Q], ["__scopeId", "data-v-bb39845f"]]), Y = {
|
|
119
119
|
"en-US": {
|
|
120
120
|
pageOfTotalPages: "Page {page} of {totalPages}",
|
|
121
121
|
pageOneOfOne: "Page 1 of 1",
|
|
@@ -146,8 +146,8 @@ const Q = /* @__PURE__ */ P(H, [["render", G], ["__scopeId", "data-v-bb39845f"]]
|
|
|
146
146
|
pageOneOfOne: "Página 1 de 1",
|
|
147
147
|
pageNumber: "Página {page}"
|
|
148
148
|
}
|
|
149
|
-
},
|
|
150
|
-
i18n: { messages:
|
|
149
|
+
}, x = N({
|
|
150
|
+
i18n: { messages: Y },
|
|
151
151
|
name: "bento-pagination-context",
|
|
152
152
|
components: {
|
|
153
153
|
BentoDropdown: E,
|
|
@@ -194,18 +194,18 @@ const Q = /* @__PURE__ */ P(H, [["render", G], ["__scopeId", "data-v-bb39845f"]]
|
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
|
-
const
|
|
198
|
-
function
|
|
199
|
-
const g =
|
|
200
|
-
return o(),
|
|
197
|
+
const ee = { class: "b-pagination-context" };
|
|
198
|
+
function te(e, t, n, i, s, l) {
|
|
199
|
+
const g = c("bento-dropdown"), a = c("bento-typography");
|
|
200
|
+
return o(), _("div", ee, [
|
|
201
201
|
e.totalPages > 1 ? (o(), f(a, {
|
|
202
202
|
key: 0,
|
|
203
203
|
el: "div"
|
|
204
204
|
}, {
|
|
205
|
-
default:
|
|
205
|
+
default: m(() => [
|
|
206
206
|
(o(), f(B(e.i18nComponent), b(e.getI18nProps("pageOfTotalPages"), { tag: "div" }), {
|
|
207
|
-
page:
|
|
208
|
-
|
|
207
|
+
page: m(() => [
|
|
208
|
+
u(g, {
|
|
209
209
|
id: e.dropdownId,
|
|
210
210
|
"aria-label": e.$t("pageOfTotalPages", { page: e.page, totalPages: e.totalPages }),
|
|
211
211
|
class: "b-pagination-context__dropdown",
|
|
@@ -216,7 +216,7 @@ function ee(e, t, n, i, s, l) {
|
|
|
216
216
|
onInput: e.onPageSelectChange
|
|
217
217
|
}, null, 8, ["id", "aria-label", "items", "value", "virtual-scroll", "onInput"])
|
|
218
218
|
]),
|
|
219
|
-
totalPages:
|
|
219
|
+
totalPages: m(() => [
|
|
220
220
|
T(h(e.totalPages), 1)
|
|
221
221
|
]),
|
|
222
222
|
_: 1
|
|
@@ -227,7 +227,7 @@ function ee(e, t, n, i, s, l) {
|
|
|
227
227
|
key: 1,
|
|
228
228
|
el: "span"
|
|
229
229
|
}, {
|
|
230
|
-
default:
|
|
230
|
+
default: m(() => [
|
|
231
231
|
T(h(e.$t("pageOneOfOne")), 1)
|
|
232
232
|
]),
|
|
233
233
|
_: 1
|
|
@@ -235,110 +235,110 @@ function ee(e, t, n, i, s, l) {
|
|
|
235
235
|
key: 2,
|
|
236
236
|
el: "span"
|
|
237
237
|
}, {
|
|
238
|
-
default:
|
|
238
|
+
default: m(() => [
|
|
239
239
|
T(h(e.$t("pageNumber", { page: e.page })), 1)
|
|
240
240
|
]),
|
|
241
241
|
_: 1
|
|
242
242
|
}))
|
|
243
243
|
]);
|
|
244
244
|
}
|
|
245
|
-
const
|
|
245
|
+
const ae = /* @__PURE__ */ P(x, [["render", te], ["__scopeId", "data-v-f8359ceb"]]);
|
|
246
246
|
let L = 0;
|
|
247
|
-
const
|
|
247
|
+
const ne = {
|
|
248
248
|
beforeCreate() {
|
|
249
249
|
this.uuid = L.toString(), L += 1;
|
|
250
250
|
}
|
|
251
|
-
},
|
|
251
|
+
}, oe = { key: 0 }, ie = /* @__PURE__ */ d("path", {
|
|
252
252
|
fill: "#00112C",
|
|
253
253
|
d: "M9.06055 8.00011L12.0605 5.00011L10.9999 3.93945L6.93923 8.00011L10.9999 12.0608L12.0605 11.0001L9.06055 8.00011Z"
|
|
254
|
-
}, null, -1),
|
|
254
|
+
}, null, -1), se = /* @__PURE__ */ d("path", {
|
|
255
255
|
fill: "#00112C",
|
|
256
256
|
d: "M4.25 4.25L4.25 11.75H5.75L5.75 4.25L4.25 4.25Z"
|
|
257
257
|
}, null, -1);
|
|
258
|
-
function
|
|
259
|
-
return o(),
|
|
258
|
+
function le(e, t, n, i, s, l) {
|
|
259
|
+
return o(), _("svg", b({ role: "img" }, e.$attrs, {
|
|
260
260
|
class: "ui-assets-icons-16",
|
|
261
261
|
xmlns: "http://www.w3.org/2000/svg",
|
|
262
262
|
width: "16",
|
|
263
263
|
height: "16",
|
|
264
264
|
fill: "none"
|
|
265
265
|
}), [
|
|
266
|
-
e.$attrs["svg-title"] ? (o(),
|
|
267
|
-
|
|
268
|
-
|
|
266
|
+
e.$attrs["svg-title"] ? (o(), _("title", oe, h(e.$attrs["svg-title"]), 1)) : $("", !0),
|
|
267
|
+
ie,
|
|
268
|
+
se
|
|
269
269
|
], 16);
|
|
270
270
|
}
|
|
271
|
-
const
|
|
271
|
+
const ge = /* @__PURE__ */ P(ne, [["render", le]]);
|
|
272
272
|
let S = 0;
|
|
273
|
-
const
|
|
273
|
+
const re = {
|
|
274
274
|
beforeCreate() {
|
|
275
275
|
this.uuid = S.toString(), S += 1;
|
|
276
276
|
}
|
|
277
|
-
},
|
|
277
|
+
}, pe = { key: 0 }, ue = /* @__PURE__ */ d("path", {
|
|
278
278
|
fill: "#00112C",
|
|
279
279
|
d: "M6.93945 7.99962L3.93945 10.9996L5.00011 12.0603L9.06077 7.99963L5.00011 3.93896L3.93945 4.99963L6.93945 7.99962Z"
|
|
280
|
-
}, null, -1),
|
|
280
|
+
}, null, -1), de = /* @__PURE__ */ d("path", {
|
|
281
281
|
fill: "#00112C",
|
|
282
282
|
d: "M11.75 11.7497V4.24974L10.25 4.24974V11.7497H11.75Z"
|
|
283
283
|
}, null, -1);
|
|
284
|
-
function
|
|
285
|
-
return o(),
|
|
284
|
+
function ce(e, t, n, i, s, l) {
|
|
285
|
+
return o(), _("svg", b({ role: "img" }, e.$attrs, {
|
|
286
286
|
class: "ui-assets-icons-16",
|
|
287
287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
288
288
|
width: "16",
|
|
289
289
|
height: "16",
|
|
290
290
|
fill: "none"
|
|
291
291
|
}), [
|
|
292
|
-
e.$attrs["svg-title"] ? (o(),
|
|
293
|
-
|
|
294
|
-
|
|
292
|
+
e.$attrs["svg-title"] ? (o(), _("title", pe, h(e.$attrs["svg-title"]), 1)) : $("", !0),
|
|
293
|
+
ue,
|
|
294
|
+
de
|
|
295
295
|
], 16);
|
|
296
296
|
}
|
|
297
|
-
const
|
|
297
|
+
const me = /* @__PURE__ */ P(re, [["render", ce]]);
|
|
298
298
|
let I = 0;
|
|
299
|
-
const
|
|
299
|
+
const _e = {
|
|
300
300
|
beforeCreate() {
|
|
301
301
|
this.uuid = I.toString(), I += 1;
|
|
302
302
|
}
|
|
303
|
-
},
|
|
303
|
+
}, ve = { key: 0 }, he = /* @__PURE__ */ d("path", {
|
|
304
304
|
fill: "#00112C",
|
|
305
305
|
d: "M10.5608 5.00011L7.56077 8.00011L10.5608 11.0001L9.50011 12.0608L5.43945 8.00011L9.50011 3.93945L10.5608 5.00011Z"
|
|
306
306
|
}, null, -1);
|
|
307
|
-
function
|
|
308
|
-
return o(),
|
|
307
|
+
function Pe(e, t, n, i, s, l) {
|
|
308
|
+
return o(), _("svg", b({ role: "img" }, e.$attrs, {
|
|
309
309
|
class: "ui-assets-icons-16",
|
|
310
310
|
xmlns: "http://www.w3.org/2000/svg",
|
|
311
311
|
width: "16",
|
|
312
312
|
height: "16",
|
|
313
313
|
fill: "none"
|
|
314
314
|
}), [
|
|
315
|
-
e.$attrs["svg-title"] ? (o(),
|
|
316
|
-
|
|
315
|
+
e.$attrs["svg-title"] ? (o(), _("title", ve, h(e.$attrs["svg-title"]), 1)) : $("", !0),
|
|
316
|
+
he
|
|
317
317
|
], 16);
|
|
318
318
|
}
|
|
319
|
-
const
|
|
319
|
+
const fe = /* @__PURE__ */ P(_e, [["render", Pe]]);
|
|
320
320
|
let O = 0;
|
|
321
|
-
const
|
|
321
|
+
const be = {
|
|
322
322
|
beforeCreate() {
|
|
323
323
|
this.uuid = O.toString(), O += 1;
|
|
324
324
|
}
|
|
325
|
-
},
|
|
325
|
+
}, Ce = { key: 0 }, $e = /* @__PURE__ */ d("path", {
|
|
326
326
|
fill: "#00112C",
|
|
327
327
|
d: "M5.43924 10.9999L8.43924 7.99989L5.43924 4.99989L6.4999 3.93923L10.5606 7.99989L6.4999 12.0605L5.43924 10.9999Z"
|
|
328
328
|
}, null, -1);
|
|
329
|
-
function
|
|
330
|
-
return o(),
|
|
329
|
+
function Te(e, t, n, i, s, l) {
|
|
330
|
+
return o(), _("svg", b({ role: "img" }, e.$attrs, {
|
|
331
331
|
class: "ui-assets-icons-16",
|
|
332
332
|
xmlns: "http://www.w3.org/2000/svg",
|
|
333
333
|
width: "16",
|
|
334
334
|
height: "16",
|
|
335
335
|
fill: "none"
|
|
336
336
|
}), [
|
|
337
|
-
e.$attrs["svg-title"] ? (o(),
|
|
338
|
-
|
|
337
|
+
e.$attrs["svg-title"] ? (o(), _("title", Ce, h(e.$attrs["svg-title"]), 1)) : $("", !0),
|
|
338
|
+
$e
|
|
339
339
|
], 16);
|
|
340
340
|
}
|
|
341
|
-
const
|
|
341
|
+
const Ne = /* @__PURE__ */ P(be, [["render", Te]]), we = {
|
|
342
342
|
"en-US": {
|
|
343
343
|
navigateToTheFirstPage: "Navigate to the first page",
|
|
344
344
|
navigateToThePreviousPage: "Navigate to the previous page",
|
|
@@ -375,15 +375,15 @@ const Te = /* @__PURE__ */ P(fe, [["render", $e]]), Ne = {
|
|
|
375
375
|
navigateToTheNextPage: "Ir a la página siguiente",
|
|
376
376
|
navigateToTheLastPage: "Ir a la última página"
|
|
377
377
|
}
|
|
378
|
-
},
|
|
379
|
-
i18n: { messages:
|
|
378
|
+
}, ye = N({
|
|
379
|
+
i18n: { messages: we },
|
|
380
380
|
name: "adl-pagination-controls",
|
|
381
381
|
components: {
|
|
382
|
-
BentoButton:
|
|
383
|
-
SkipLeft:
|
|
384
|
-
SkipRight:
|
|
385
|
-
ChevronLeft:
|
|
386
|
-
ChevronRight:
|
|
382
|
+
BentoButton: J,
|
|
383
|
+
SkipLeft: ge,
|
|
384
|
+
SkipRight: me,
|
|
385
|
+
ChevronLeft: fe,
|
|
386
|
+
ChevronRight: Ne
|
|
387
387
|
},
|
|
388
388
|
props: {
|
|
389
389
|
/**
|
|
@@ -418,64 +418,64 @@ const Te = /* @__PURE__ */ P(fe, [["render", $e]]), Ne = {
|
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
|
-
const
|
|
422
|
-
function
|
|
423
|
-
const g =
|
|
424
|
-
return o(),
|
|
425
|
-
|
|
426
|
-
|
|
421
|
+
const Le = { class: "b-pagination-controls" }, Se = { class: "b-pagination-controls__item" }, Ie = { class: "b-pagination-controls__item" }, Oe = { class: "b-pagination-controls__item" }, ke = { class: "b-pagination-controls__item" };
|
|
422
|
+
function Be(e, t, n, i, s, l) {
|
|
423
|
+
const g = c("skip-left"), a = c("bento-button"), r = c("chevron-left"), C = c("chevron-right"), w = c("skip-right");
|
|
424
|
+
return o(), _("ul", Le, [
|
|
425
|
+
d("li", Se, [
|
|
426
|
+
u(a, {
|
|
427
427
|
disabled: e.isCurrentPageFirst,
|
|
428
428
|
variant: "tertiary",
|
|
429
429
|
condensed: "",
|
|
430
|
-
onClick: t[0] || (t[0] = (
|
|
430
|
+
onClick: t[0] || (t[0] = (p) => e.navigate(1))
|
|
431
431
|
}, {
|
|
432
|
-
iconLeft:
|
|
433
|
-
|
|
432
|
+
iconLeft: m(() => [
|
|
433
|
+
u(g, {
|
|
434
434
|
"svg-title": e.$t("navigateToTheFirstPage")
|
|
435
435
|
}, null, 8, ["svg-title"])
|
|
436
436
|
]),
|
|
437
437
|
_: 1
|
|
438
438
|
}, 8, ["disabled"])
|
|
439
439
|
]),
|
|
440
|
-
|
|
441
|
-
|
|
440
|
+
d("li", Ie, [
|
|
441
|
+
u(a, {
|
|
442
442
|
disabled: e.isCurrentPageFirst,
|
|
443
443
|
variant: "tertiary",
|
|
444
444
|
condensed: "",
|
|
445
|
-
onClick: t[1] || (t[1] = (
|
|
445
|
+
onClick: t[1] || (t[1] = (p) => e.navigate(e.page - 1))
|
|
446
446
|
}, {
|
|
447
|
-
iconLeft:
|
|
448
|
-
|
|
447
|
+
iconLeft: m(() => [
|
|
448
|
+
u(r, {
|
|
449
449
|
"svg-title": e.$t("navigateToThePreviousPage")
|
|
450
450
|
}, null, 8, ["svg-title"])
|
|
451
451
|
]),
|
|
452
452
|
_: 1
|
|
453
453
|
}, 8, ["disabled"])
|
|
454
454
|
]),
|
|
455
|
-
|
|
456
|
-
|
|
455
|
+
d("li", Oe, [
|
|
456
|
+
u(a, {
|
|
457
457
|
disabled: e.isNextButtonDisabled,
|
|
458
458
|
variant: "tertiary",
|
|
459
459
|
condensed: "",
|
|
460
|
-
onClick: t[2] || (t[2] = (
|
|
460
|
+
onClick: t[2] || (t[2] = (p) => e.navigate(e.page + 1))
|
|
461
461
|
}, {
|
|
462
|
-
iconLeft:
|
|
463
|
-
|
|
462
|
+
iconLeft: m(() => [
|
|
463
|
+
u(C, {
|
|
464
464
|
"svg-title": e.$t("navigateToTheNextPage")
|
|
465
465
|
}, null, 8, ["svg-title"])
|
|
466
466
|
]),
|
|
467
467
|
_: 1
|
|
468
468
|
}, 8, ["disabled"])
|
|
469
469
|
]),
|
|
470
|
-
|
|
471
|
-
|
|
470
|
+
d("li", ke, [
|
|
471
|
+
u(a, {
|
|
472
472
|
disabled: e.isLastPageButtonDisabled,
|
|
473
473
|
variant: "tertiary",
|
|
474
474
|
condensed: "",
|
|
475
|
-
onClick: t[3] || (t[3] = (
|
|
475
|
+
onClick: t[3] || (t[3] = (p) => e.navigate(e.totalPages))
|
|
476
476
|
}, {
|
|
477
|
-
iconLeft:
|
|
478
|
-
|
|
477
|
+
iconLeft: m(() => [
|
|
478
|
+
u(w, {
|
|
479
479
|
"svg-title": e.$t("navigateToTheLastPage")
|
|
480
480
|
}, null, 8, ["svg-title"])
|
|
481
481
|
]),
|
|
@@ -484,7 +484,7 @@ function ke(e, t, n, i, s, l) {
|
|
|
484
484
|
])
|
|
485
485
|
]);
|
|
486
486
|
}
|
|
487
|
-
const
|
|
487
|
+
const Ae = /* @__PURE__ */ P(ye, [["render", Be], ["__scopeId", "data-v-b1c3077d"]]), Ee = {
|
|
488
488
|
"en-US": {
|
|
489
489
|
paginatedNavigation: "Paginated navigation",
|
|
490
490
|
showingItemsWithTotal: "Showing {itemCount} of {totalCount} item | Showing {itemCount} of {totalCount} items"
|
|
@@ -509,13 +509,13 @@ const Be = /* @__PURE__ */ P(we, [["render", ke], ["__scopeId", "data-v-b1c3077d
|
|
|
509
509
|
paginatedNavigation: "Navegación por páginas",
|
|
510
510
|
showingItemsWithTotal: "Mostrando {itemCount} de {totalCount} artículo | Mostrando {itemCount} de {totalCount} artículos"
|
|
511
511
|
}
|
|
512
|
-
},
|
|
513
|
-
i18n: { messages:
|
|
512
|
+
}, Re = N({
|
|
513
|
+
i18n: { messages: Ee },
|
|
514
514
|
name: "bento-pagination",
|
|
515
515
|
components: {
|
|
516
|
-
BentoPaginationContext:
|
|
517
|
-
BentoPaginationControls:
|
|
518
|
-
BentoPaginationResultsPerPage:
|
|
516
|
+
BentoPaginationContext: ae,
|
|
517
|
+
BentoPaginationControls: Ae,
|
|
518
|
+
BentoPaginationResultsPerPage: X
|
|
519
519
|
},
|
|
520
520
|
props: {
|
|
521
521
|
/**
|
|
@@ -567,18 +567,18 @@ const Be = /* @__PURE__ */ P(we, [["render", ke], ["__scopeId", "data-v-b1c3077d
|
|
|
567
567
|
},
|
|
568
568
|
emits: ["navigate", "items-page", "update:page", "update:size"],
|
|
569
569
|
setup(e, { attrs: t, emit: n }) {
|
|
570
|
-
const i = k(t["aria-label"]), { ariaLabel: s } =
|
|
570
|
+
const i = k(t["aria-label"]), { ariaLabel: s } = z(e), l = j({
|
|
571
571
|
ariaLabel: i.value,
|
|
572
572
|
// TODO: take this line away when the aria-label props is removed
|
|
573
573
|
label: s
|
|
574
574
|
}), g = v(
|
|
575
575
|
() => !e.totalCount || !e.size ? null : Math.ceil(e.totalCount / e.size)
|
|
576
|
-
), a = (
|
|
577
|
-
n("navigate",
|
|
578
|
-
}, r = (
|
|
579
|
-
a(
|
|
580
|
-
}, C = (
|
|
581
|
-
n("items-page",
|
|
576
|
+
), a = (p, D) => {
|
|
577
|
+
e.hidePageSize ? n("navigate", p) : n("navigate", p, D ?? (e == null ? void 0 : e.size)), n("update:page", p);
|
|
578
|
+
}, r = (p) => {
|
|
579
|
+
a(p);
|
|
580
|
+
}, C = (p) => {
|
|
581
|
+
n("items-page", p), n("update:size", p), a(1, p);
|
|
582
582
|
}, w = v(() => ({
|
|
583
583
|
"b-pagination__navigation--no-results-per-page": e.hidePageSize
|
|
584
584
|
}));
|
|
@@ -594,11 +594,11 @@ const Be = /* @__PURE__ */ P(we, [["render", ke], ["__scopeId", "data-v-b1c3077d
|
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
|
-
const
|
|
597
|
+
const Fe = (e) => (U("data-v-2aab535e"), e = e(), V(), e), Me = { class: "b-pagination" }, De = ["aria-label"], Ze = { class: "b-pagination__page-navigator" }, ze = /* @__PURE__ */ Fe(() => /* @__PURE__ */ d("div", { class: "b-pagination__divider" }, null, -1));
|
|
598
598
|
function We(e, t, n, i, s, l) {
|
|
599
|
-
const g =
|
|
600
|
-
return o(),
|
|
601
|
-
|
|
599
|
+
const g = c("bento-pagination-results-per-page"), a = c("bento-pagination-context"), r = c("bento-pagination-controls");
|
|
600
|
+
return o(), _("div", Me, [
|
|
601
|
+
d("nav", {
|
|
602
602
|
"aria-label": e.computedAriaLabel,
|
|
603
603
|
class: W(["b-pagination__navigation", e.navigationConditionalClasses])
|
|
604
604
|
}, [
|
|
@@ -609,8 +609,8 @@ function We(e, t, n, i, s, l) {
|
|
|
609
609
|
"total-count": e.totalCount,
|
|
610
610
|
onSelect: e.onItemsPerPageChange
|
|
611
611
|
}, null, 8, ["items-per-page", "total-count", "onSelect"])),
|
|
612
|
-
|
|
613
|
-
|
|
612
|
+
d("div", Ze, [
|
|
613
|
+
u(a, {
|
|
614
614
|
class: "b-pagination__context",
|
|
615
615
|
"total-pages": e.totalPages,
|
|
616
616
|
page: e.page,
|
|
@@ -618,8 +618,8 @@ function We(e, t, n, i, s, l) {
|
|
|
618
618
|
"virtual-scroll": e.virtualScroll,
|
|
619
619
|
onPageSelected: e.onPageSelected
|
|
620
620
|
}, null, 8, ["total-pages", "page", "total-count", "virtual-scroll", "onPageSelected"]),
|
|
621
|
-
|
|
622
|
-
|
|
621
|
+
ze,
|
|
622
|
+
u(r, {
|
|
623
623
|
class: "b-pagination__controls",
|
|
624
624
|
"has-next": e.hasNext,
|
|
625
625
|
page: e.page,
|
|
@@ -627,11 +627,11 @@ function We(e, t, n, i, s, l) {
|
|
|
627
627
|
onNavigate: e.navigate
|
|
628
628
|
}, null, 8, ["has-next", "page", "total-pages", "onNavigate"])
|
|
629
629
|
])
|
|
630
|
-
], 10,
|
|
630
|
+
], 10, De)
|
|
631
631
|
]);
|
|
632
632
|
}
|
|
633
|
-
const
|
|
633
|
+
const Qe = /* @__PURE__ */ P(Re, [["render", We], ["__scopeId", "data-v-2aab535e"]]);
|
|
634
634
|
export {
|
|
635
|
-
|
|
635
|
+
Qe as BentoPagination
|
|
636
636
|
};
|
|
637
637
|
//# sourceMappingURL=pagination.js.map
|