@adyen/bento-vue3 1.18.0 → 1.19.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/components.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/button/components/toggle-button/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/button/components/toggle-button/toggle-button.vue.d.ts +68 -0
- package/dist/@types/packages/vue2/src/components/button/components/toggle-button/toggle.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/button/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +3 -8
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +3 -6
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.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 +7 -5
- package/dist/@types/packages/vue2/src/components/{internal/calendar → date-range-picker}/composables/use-granularity-memory.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +23 -26
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.types.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.types.d.ts +20 -0
- package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +92 -0
- package/dist/@types/packages/vue2/src/components/internal/checkbox-input/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.keys.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.types.d.ts +16 -0
- package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.vue.d.ts +56 -0
- package/dist/@types/packages/vue2/src/components/internal/dialog-page/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-cached-selected-values/use-cached-selected-values.d.ts +14 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/radio-input/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.types.d.ts +6 -0
- package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +82 -0
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal-fullscreen/components/modal-fullscreen-page.vue.d.ts +60 -0
- package/dist/@types/packages/vue2/src/components/modal-fullscreen/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/modal-fullscreen/modal-fullscreen.vue.d.ts +13 -1
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.types.d.ts +3 -6
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.keys.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +0 -19
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +1 -1
- package/dist/accordion.js +3 -3
- package/dist/action-bar.js +17 -17
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/dialog-page.css +1 -0
- 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/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/index48.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/teleport.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/button.js +71 -137
- package/dist/button.js.map +1 -1
- package/dist/card.js +7 -7
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.e89e8978.js → base-button.585f4113.js} +2 -2
- package/dist/chunks/{base-button.e89e8978.js.map → base-button.585f4113.js.map} +1 -1
- package/dist/chunks/{base-modal.9b4eb7c0.js → base-modal.d3079635.js} +4 -4
- package/dist/chunks/{base-modal.9b4eb7c0.js.map → base-modal.d3079635.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.ced4d262.js → button-actions-with-menu.dbba09d8.js} +6 -6
- package/dist/chunks/{button-actions-with-menu.ced4d262.js.map → button-actions-with-menu.dbba09d8.js.map} +1 -1
- package/dist/chunks/button-actions.96f2b551.js +149 -0
- package/dist/chunks/button-actions.96f2b551.js.map +1 -0
- package/dist/chunks/{button.49acfc10.js → button.22a91e4b.js} +3 -3
- package/dist/chunks/{button.49acfc10.js.map → button.22a91e4b.js.map} +1 -1
- package/dist/chunks/calendar.1e8edacc.js +991 -0
- package/dist/chunks/calendar.1e8edacc.js.map +1 -0
- package/dist/chunks/checkbox.696307fa.js +369 -0
- package/dist/chunks/checkbox.696307fa.js.map +1 -0
- package/dist/chunks/{chevron-up.46afb34c.js → chevron-up.638a9f34.js} +3 -3
- package/dist/chunks/{chevron-up.46afb34c.js.map → chevron-up.638a9f34.js.map} +1 -1
- package/dist/chunks/{controls-group.100892b1.js → controls-group.5be9f363.js} +3 -3
- package/dist/chunks/{controls-group.100892b1.js.map → controls-group.5be9f363.js.map} +1 -1
- package/dist/chunks/{copy.dc748d72.js → copy.bcfb0bd0.js} +4 -4
- package/dist/chunks/{copy.dc748d72.js.map → copy.bcfb0bd0.js.map} +1 -1
- package/dist/chunks/dialog-page.4051a197.js +150 -0
- package/dist/chunks/dialog-page.4051a197.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.5dc4e03f.js → dropdown-default-textbox.2f55222c.js} +137 -156
- package/dist/chunks/dropdown-default-textbox.2f55222c.js.map +1 -0
- package/dist/chunks/{dropdown.234bc726.js → dropdown.03b54389.js} +86 -85
- package/dist/chunks/dropdown.03b54389.js.map +1 -0
- package/dist/chunks/{error-message.5bae65e1.js → error-message.c1768603.js} +2 -2
- package/dist/chunks/{error-message.5bae65e1.js.map → error-message.c1768603.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.ef6543c9.js → fixed-scroller.c35f1726.js} +2 -2
- package/dist/chunks/{fixed-scroller.ef6543c9.js.map → fixed-scroller.c35f1726.js.map} +1 -1
- package/dist/chunks/{footer-actions.15b9c357.js → footer-actions.98e94560.js} +12 -12
- package/dist/chunks/{footer-actions.15b9c357.js.map → footer-actions.98e94560.js.map} +1 -1
- package/dist/chunks/{index.60e85a3e.js → index.0e4474d0.js} +7 -7
- package/dist/chunks/{index.60e85a3e.js.map → index.0e4474d0.js.map} +1 -1
- package/dist/chunks/{index.237a1919.js → index.14631d93.js} +30 -29
- package/dist/chunks/{index.237a1919.js.map → index.14631d93.js.map} +1 -1
- package/dist/chunks/{index.3e74bae8.js → index.23a4ac80.js} +6 -6
- package/dist/chunks/{index.3e74bae8.js.map → index.23a4ac80.js.map} +1 -1
- package/dist/chunks/{index.97b19760.js → index.27509a03.js} +145 -145
- package/dist/chunks/index.27509a03.js.map +1 -0
- package/dist/chunks/{index.615f5cee.js → index.2dfc4f88.js} +3 -3
- package/dist/chunks/{index.615f5cee.js.map → index.2dfc4f88.js.map} +1 -1
- package/dist/chunks/{index.a708a0ef.js → index.32b6c1a6.js} +2 -2
- package/dist/chunks/{index.a708a0ef.js.map → index.32b6c1a6.js.map} +1 -1
- package/dist/chunks/{index.d7b9fea3.js → index.368bb7c9.js} +13 -13
- package/dist/chunks/{index.d7b9fea3.js.map → index.368bb7c9.js.map} +1 -1
- package/dist/chunks/{index.89bfcc23.js → index.9a976e6e.js} +3 -3
- package/dist/chunks/{index.89bfcc23.js.map → index.9a976e6e.js.map} +1 -1
- package/dist/chunks/{index.45e3eaeb.js → index.b21b8d6c.js} +2 -2
- package/dist/chunks/{index.45e3eaeb.js.map → index.b21b8d6c.js.map} +1 -1
- package/dist/chunks/{index.985be3e0.js → index.b29c7715.js} +6 -6
- package/dist/chunks/{index.985be3e0.js.map → index.b29c7715.js.map} +1 -1
- package/dist/chunks/index.c446e6f7.js +897 -0
- package/dist/chunks/index.c446e6f7.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.909c4aca.js → listbox-option-tag.98903f6b.js} +3 -3
- package/dist/chunks/{listbox-option-tag.909c4aca.js.map → listbox-option-tag.98903f6b.js.map} +1 -1
- package/dist/chunks/{listbox.d90d6e89.js → listbox.a53a52ee.js} +6 -6
- package/dist/chunks/{listbox.d90d6e89.js.map → listbox.a53a52ee.js.map} +1 -1
- package/dist/chunks/{loading-button.929dab60.js → loading-button.db938c88.js} +2 -2
- package/dist/chunks/{loading-button.929dab60.js.map → loading-button.db938c88.js.map} +1 -1
- package/dist/chunks/modal-fullscreen.keys.b9f31632.js +5 -0
- package/dist/chunks/modal-fullscreen.keys.b9f31632.js.map +1 -0
- package/dist/chunks/sidepanel.keys.1ed8a57c.js +5 -0
- package/dist/chunks/sidepanel.keys.1ed8a57c.js.map +1 -0
- package/dist/chunks/{teleport.127fa429.js → teleport.afeb4c3b.js} +19 -18
- package/dist/chunks/teleport.afeb4c3b.js.map +1 -0
- package/dist/chunks/{tooltip.8241c15e.js → tooltip.b2da7195.js} +3 -3
- package/dist/chunks/{tooltip.8241c15e.js.map → tooltip.b2da7195.js.map} +1 -1
- package/dist/code-snippet.js +6 -6
- 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 +1 -1
- package/dist/date-picker.js +8 -8
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +6 -6
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +19 -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 +4 -4
- package/dist/index.js +310 -2946
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +4 -4
- package/dist/internal.js +78 -25
- package/dist/internal.js.map +1 -1
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +208 -97
- package/dist/modal-fullscreen.js.map +1 -1
- package/dist/modal.js +6 -6
- package/dist/pagination.js +4 -4
- 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 +195 -128
- package/dist/radio-group.js.map +1 -1
- 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 +111 -167
- package/dist/sidepanel.js.map +1 -1
- 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 +3 -3
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +3 -3
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +6 -6
- package/dist/typography.js +1 -1
- package/dist/web-types.json +3 -3
- package/package.json +2 -2
- package/dist/chunks/calendar.d7efad76.js +0 -1038
- package/dist/chunks/calendar.d7efad76.js.map +0 -1
- package/dist/chunks/checkbox.0cc6f67b.js +0 -291
- package/dist/chunks/checkbox.0cc6f67b.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.5dc4e03f.js.map +0 -1
- package/dist/chunks/dropdown.234bc726.js.map +0 -1
- package/dist/chunks/index.7e2cff7e.js +0 -820
- package/dist/chunks/index.7e2cff7e.js.map +0 -1
- package/dist/chunks/index.97b19760.js.map +0 -1
- package/dist/chunks/sidepanel.keys.3f8d69c1.js +0 -7
- package/dist/chunks/sidepanel.keys.3f8d69c1.js.map +0 -1
- package/dist/chunks/teleport.127fa429.js.map +0 -1
- /package/dist/@types/packages/vue2/src/components/{internal/calendar → date-range-picker}/composables/use-granularity-memory.d.ts +0 -0
package/dist/info-icon.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as n, resolveComponent as r, resolveDirective as s, withDirectives as c, openBlock as p, createElementBlock as l, createVNode as a } from "vue";
|
|
2
|
-
import { c as t } from "./chunks/index.
|
|
3
|
-
import { B as _ } from "./chunks/tooltip.
|
|
2
|
+
import { c as t } from "./chunks/index.2dfc4f88.js";
|
|
3
|
+
import { B as _ } from "./chunks/tooltip.b2da7195.js";
|
|
4
4
|
import { I as d } from "./chunks/info.550f9511.js";
|
|
5
5
|
import { _ as f } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
6
|
-
import "./assets/
|
|
6
|
+
import "./assets/index39.css";
|
|
7
7
|
const m = n({
|
|
8
8
|
name: "bento-info-icon",
|
|
9
9
|
components: { InfoIcon: d },
|
package/dist/input-field.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as oe, useAttrs as de, useSlots as ie, ref as I, provide as re, toRef as ne, computed as l, toRefs as le, openBlock as r, createBlock as p, unref as t, normalizeClass as se, withCtx as w, renderSlot as c, createCommentVNode as d, createElementVNode as M, createElementBlock as y, withModifiers as U, mergeProps as N, withKeys as ue, createVNode as ce } from "vue";
|
|
2
|
-
import { I as pe, B as V } from "./chunks/dropdown.
|
|
3
|
-
import { d as H, B as _ } from "./chunks/index.
|
|
2
|
+
import { I as pe, B as V } from "./chunks/dropdown.03b54389.js";
|
|
3
|
+
import { d as H, B as _ } from "./chunks/index.14631d93.js";
|
|
4
4
|
import { g as D } from "./chunks/unique-id.a2a2b458.js";
|
|
5
5
|
import { g as fe } from "./chunks/get-slot-text.bead058f.js";
|
|
6
6
|
import { u as be } from "./chunks/aria-label.ac9651a5.js";
|
|
7
7
|
import { u as ye } from "./chunks/i18n.f7e6533e.js";
|
|
8
8
|
import { u as ve } from "./chunks/use-form-layout-loading.d03e5d48.js";
|
|
9
9
|
import { u as me } from "./chunks/use-has-slot.4d98bf29.js";
|
|
10
|
-
import { F as we, E as De } from "./chunks/error-message.
|
|
10
|
+
import { F as we, E as De } from "./chunks/error-message.c1768603.js";
|
|
11
11
|
import { _ as he } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
12
|
-
import "./assets/
|
|
12
|
+
import "./assets/index43.css";
|
|
13
13
|
var f = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(f || {}), s = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(s || {}), h = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(h || {}), O = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.TEXT = "text", e.NUMBER = "number", e))(O || {}), Ee = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.ESCAPE_PRESSED = "escape-pressed", e.UPDATE_DROPDOWN = "update:dropdown", e.DROPDOWN_INPUT = "dropdown-input", e.FOCUS = "focus", e.CHANGE = "change", e.BLUR = "blur", e.KEYDOWN = "keydown", e))(Ee || {});
|
|
14
14
|
const x = {
|
|
15
15
|
"en-US": {
|
package/dist/internal.js
CHANGED
|
@@ -1,28 +1,81 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { C as
|
|
3
|
-
import { C as
|
|
4
|
-
import { C as
|
|
5
|
-
import {
|
|
6
|
-
import { F as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { B as
|
|
1
|
+
import { B as I, L } from "./chunks/listbox-option-tag.98903f6b.js";
|
|
2
|
+
import { C as y, a as A, b as S } from "./chunks/calendar.1e8edacc.js";
|
|
3
|
+
import { C as b, a as g } from "./chunks/copy.bcfb0bd0.js";
|
|
4
|
+
import { C as T } from "./chunks/controls-group.5be9f363.js";
|
|
5
|
+
import { B as D, b as F, a as N, D as P } from "./chunks/dialog-page.4051a197.js";
|
|
6
|
+
import { E as K, F as M } from "./chunks/error-message.c1768603.js";
|
|
7
|
+
import { F as Y } from "./chunks/fixed-scroller.c35f1726.js";
|
|
8
|
+
import { G as W, a as j } from "./chunks/grid-layout.c2fe3057.js";
|
|
9
|
+
import { B as z, u as H } from "./chunks/listbox.a53a52ee.js";
|
|
10
|
+
import { ref as f, watch as v } from "vue";
|
|
11
|
+
import { B as U } from "./chunks/teleport.afeb4c3b.js";
|
|
12
|
+
const p = (l, e) => {
|
|
13
|
+
for (const o of l) {
|
|
14
|
+
if (o.value === e)
|
|
15
|
+
return o.label;
|
|
16
|
+
if (o.items)
|
|
17
|
+
return p(o.items, e);
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
}, d = (l, e, o) => {
|
|
21
|
+
const a = f([]), n = f(), i = (t) => {
|
|
22
|
+
n.value = o.value ? t.map(({ value: m }) => m) : t[0].value;
|
|
23
|
+
}, C = (t) => {
|
|
24
|
+
a.value = t, i(t);
|
|
25
|
+
}, u = () => {
|
|
26
|
+
a.value = [], n.value = null;
|
|
27
|
+
};
|
|
28
|
+
return v(
|
|
29
|
+
() => e.value,
|
|
30
|
+
() => {
|
|
31
|
+
if (!e.value) {
|
|
32
|
+
u();
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const t = !Array.isArray(e.value), m = [...a.value];
|
|
36
|
+
u();
|
|
37
|
+
const c = (r) => {
|
|
38
|
+
let s = p(l.value, r);
|
|
39
|
+
s || p(m, r), s || (s = r.toString()), a.value.push({ value: r, label: s });
|
|
40
|
+
};
|
|
41
|
+
if (t) {
|
|
42
|
+
const r = e.value;
|
|
43
|
+
c(r), i(a.value);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
e.value.forEach(c), i(a.value);
|
|
47
|
+
},
|
|
48
|
+
{ immediate: !0 }
|
|
49
|
+
), {
|
|
50
|
+
// Values
|
|
51
|
+
cachedSelectedValues: a,
|
|
52
|
+
simpleSelectedValuesCache: n,
|
|
53
|
+
// Methods
|
|
54
|
+
resetCache: u,
|
|
55
|
+
setCachedValues: C
|
|
56
|
+
};
|
|
57
|
+
};
|
|
10
58
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
59
|
+
I as BentoAvatar,
|
|
60
|
+
D as BentoDialogPageAnimation,
|
|
61
|
+
z as BentoListbox,
|
|
62
|
+
U as BentoTeleport,
|
|
63
|
+
y as Calendar,
|
|
64
|
+
A as CalendarEvent,
|
|
65
|
+
S as CalendarFirstDayOfWeek,
|
|
66
|
+
T as ControlsGroup,
|
|
67
|
+
b as Copy,
|
|
68
|
+
g as CopyTooltipState,
|
|
69
|
+
F as DIALOG_PAGE_CONFIG_INJECTION_KEY,
|
|
70
|
+
N as DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,
|
|
71
|
+
P as DialogPage,
|
|
72
|
+
K as ErrorMessage,
|
|
73
|
+
M as FieldLabel,
|
|
74
|
+
Y as FixedScroller,
|
|
75
|
+
W as GridLayout,
|
|
76
|
+
j as GridLayoutContainerType,
|
|
77
|
+
L as ListboxOptionTag,
|
|
78
|
+
d as useCachedSelectedValues,
|
|
79
|
+
H as useMultiLevelItems
|
|
27
80
|
};
|
|
28
81
|
//# sourceMappingURL=internal.js.map
|
package/dist/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"internal.js","sources":["../../vue2/src/components/internal/listbox/composables/use-cached-selected-values/use-cached-selected-values.ts"],"sourcesContent":["import {\n BentoListboxMultiSelectValue,\n BentoListboxOptions,\n BentoListboxSelectedValue,\n BentoListboxValue,\n} from '@/types';\nimport { ref, Ref, watch } from 'vue';\n\n/**\n * Extracts an item's label from the items in the list of options\n * displayed in the Listbox.\n *\n * Searches through all items and their sub-items (categories).\n *\n * @param items List of options displayed in the Listbox\n * @param value Selected value that needs to be found in the list\n * @returns Label found\n */\nconst findItemLabel = (items: BentoListboxOptions, value: BentoListboxValue): string => {\n // eslint-disable-next-line no-restricted-syntax\n for (const item of items) {\n if (item.value === value) {\n return item.label;\n }\n\n if (item.items) {\n return findItemLabel(item.items, value);\n }\n }\n\n return null;\n};\n\n/**\n * Creates two lists (one with value/label pairs and one simply with values) that are\n * used to cache the internal option selections to preserve the `label` in case the\n * value is loaded from external sources and might not be found in the list of `items`\n * later on.\n *\n * This helps with external searches and lazy loaded lists.\n *\n * @param items List of options displayed in the Listbox\n * @param selectedValues Selected list of values\n * @param multiple Indicates if the Listbox is multi-select (true) or single-select (false)\n * @returns Two lists of cached items. One list with label/value pairs and one with only the values stored.\n */\nexport const useCachedSelectedValues = (\n items: Ref<BentoListboxOptions>,\n selectedValues: Ref<BentoListboxSelectedValue>,\n multiple: Ref<boolean>\n) => {\n const cachedSelectedValues = ref<BentoListboxOptions>([]);\n const simpleSelectedValuesCache = ref<BentoListboxSelectedValue>();\n\n const setSimpleSelectedValues = (newSelectedValues: BentoListboxOptions) => {\n simpleSelectedValuesCache.value = multiple.value\n ? newSelectedValues.map(({ value }) => value)\n : newSelectedValues[0].value;\n };\n\n const setCachedValues = (newSelectedValues: BentoListboxOptions) => {\n cachedSelectedValues.value = newSelectedValues;\n setSimpleSelectedValues(newSelectedValues);\n };\n\n const resetCache = () => {\n cachedSelectedValues.value = [];\n simpleSelectedValuesCache.value = null;\n };\n\n watch(\n () => selectedValues.value,\n () => {\n if (!selectedValues.value) {\n resetCache();\n return;\n }\n\n const isSingleSelect = !Array.isArray(selectedValues.value);\n // Make a copy of cache\n const cachedCopy = [...cachedSelectedValues.value];\n // Clear cache\n resetCache();\n\n const addValue = (value: BentoListboxValue) => {\n // Search label by value in \"items\"\n let selectedItemText = findItemLabel(items.value, value);\n\n // Search in previous cache\n if (!selectedItemText) {\n findItemLabel(cachedCopy, value);\n }\n\n // Transform value to label if not found anywhere\n if (!selectedItemText) {\n selectedItemText = value.toString();\n }\n\n cachedSelectedValues.value.push({ value, label: selectedItemText });\n };\n\n if (isSingleSelect) {\n const value = selectedValues.value as BentoListboxValue;\n\n addValue(value);\n setSimpleSelectedValues(cachedSelectedValues.value);\n return;\n }\n\n // Add each selected value in the cache\n (selectedValues.value as BentoListboxMultiSelectValue).forEach(addValue);\n setSimpleSelectedValues(cachedSelectedValues.value);\n },\n { immediate: true }\n );\n\n return {\n // Values\n cachedSelectedValues,\n simpleSelectedValuesCache,\n // Methods\n resetCache,\n setCachedValues,\n };\n};\n"],"names":["findItemLabel","items","value","item","useCachedSelectedValues","selectedValues","multiple","cachedSelectedValues","ref","simpleSelectedValuesCache","setSimpleSelectedValues","newSelectedValues","setCachedValues","resetCache","watch","isSingleSelect","cachedCopy","addValue","selectedItemText"],"mappings":";;;;;;;;;;;AAkBA,MAAMA,IAAgB,CAACC,GAA4BC,MAAqC;AAEpF,aAAWC,KAAQF,GAAO;AAClB,QAAAE,EAAK,UAAUD;AACf,aAAOC,EAAK;AAGhB,QAAIA,EAAK;AACE,aAAAH,EAAcG,EAAK,OAAOD,CAAK;AAAA;AAIvC,SAAA;AACX,GAeaE,IAA0B,CACnCH,GACAI,GACAC,MACC;AACK,QAAAC,IAAuBC,EAAyB,CAAA,CAAE,GAClDC,IAA4BD,KAE5BE,IAA0B,CAACC,MAA2C;AACxE,IAAAF,EAA0B,QAAQH,EAAS,QACrCK,EAAkB,IAAI,CAAC,EAAE,OAAAT,EAAA,MAAYA,CAAK,IAC1CS,EAAkB,CAAC,EAAE;AAAA,EAAA,GAGzBC,IAAkB,CAACD,MAA2C;AAChE,IAAAJ,EAAqB,QAAQI,GAC7BD,EAAwBC,CAAiB;AAAA,EAAA,GAGvCE,IAAa,MAAM;AACrB,IAAAN,EAAqB,QAAQ,IAC7BE,EAA0B,QAAQ;AAAA,EAAA;AAGtC,SAAAK;AAAA,IACI,MAAMT,EAAe;AAAA,IACrB,MAAM;AACE,UAAA,CAACA,EAAe,OAAO;AACZ,QAAAQ;AACX;AAAA;AAGJ,YAAME,IAAiB,CAAC,MAAM,QAAQV,EAAe,KAAK,GAEpDW,IAAa,CAAC,GAAGT,EAAqB,KAAK;AAEtC,MAAAM;AAEL,YAAAI,IAAW,CAACf,MAA6B;AAE3C,YAAIgB,IAAmBlB,EAAcC,EAAM,OAAOC,CAAK;AAGvD,QAAKgB,KACDlB,EAAcgB,GAAYd,CAAK,GAI9BgB,MACDA,IAAmBhB,EAAM,aAG7BK,EAAqB,MAAM,KAAK,EAAE,OAAAL,GAAO,OAAOgB,GAAkB;AAAA,MAAA;AAGtE,UAAIH,GAAgB;AAChB,cAAMb,IAAQG,EAAe;AAE7B,QAAAY,EAASf,CAAK,GACdQ,EAAwBH,EAAqB,KAAK;AAClD;AAAA;AAIH,MAAAF,EAAe,MAAuC,QAAQY,CAAQ,GACvEP,EAAwBH,EAAqB,KAAK;AAAA,IACtD;AAAA,IACA,EAAE,WAAW,GAAK;AAAA,EAAA,GAGf;AAAA;AAAA,IAEH,sBAAAA;AAAA,IACA,2BAAAE;AAAA;AAAA,IAEA,YAAAI;AAAA,IACA,iBAAAD;AAAA,EAAA;AAER;"}
|
package/dist/link.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, onMounted as i, onUnmounted as l, computed as s, openBlock as d, createElementBlock as r, normalizeClass as c } from "vue";
|
|
2
2
|
import { _ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
3
|
-
import "./assets/
|
|
3
|
+
import "./assets/index41.css";
|
|
4
4
|
var e = /* @__PURE__ */ ((a) => (a.START = "loading-start", a.END = "loading-end", a))(e || {});
|
|
5
5
|
const p = t({
|
|
6
6
|
name: "bento-loading-indicator",
|
package/dist/menu.js
CHANGED
package/dist/modal-fullscreen.js
CHANGED
|
@@ -1,25 +1,136 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import "./
|
|
12
|
-
|
|
1
|
+
import { defineComponent as L, useSlots as N, onMounted as R, openBlock as l, createBlock as r, unref as t, withCtx as o, createElementVNode as u, createTextVNode as B, toDisplayString as A, createCommentVNode as f, createElementBlock as w, renderSlot as _, pushScopeId as V, popScopeId as J, toRefs as U, ref as c, computed as Y, watch as z, nextTick as H, provide as I, normalizeClass as j, withKeys as q, withModifiers as Q, createSlots as W, createVNode as C } from "vue";
|
|
2
|
+
import { a as X } from "./chunks/button.22a91e4b.js";
|
|
3
|
+
import { B as Z } from "./chunks/index.b21b8d6c.js";
|
|
4
|
+
import { B as k } from "./chunks/index.14631d93.js";
|
|
5
|
+
import { u as x } from "./chunks/use-has-slot.4d98bf29.js";
|
|
6
|
+
import { D as ee, B as te, b as ae, a as le } from "./chunks/dialog-page.4051a197.js";
|
|
7
|
+
import { B as oe } from "./chunks/button-actions.96f2b551.js";
|
|
8
|
+
import { _ as O } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
9
|
+
import { C as se } from "./chunks/cross.26509efc.js";
|
|
10
|
+
import { u as ne } from "./chunks/i18n.f7e6533e.js";
|
|
11
|
+
import { g as ie } from "./chunks/unique-id.a2a2b458.js";
|
|
12
|
+
import { M as ce } from "./chunks/modal-fullscreen.keys.b9f31632.js";
|
|
13
|
+
import "./assets/index15.css";
|
|
14
|
+
const re = (e) => (V("data-v-da0f0512"), e = e(), J(), e), ue = { class: "b-modal-fullscreen-page__header" }, de = { class: "b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--title" }, fe = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--slot"
|
|
17
|
+
}, _e = { class: "b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--actions" }, pe = /* @__PURE__ */ re(() => /* @__PURE__ */ u("div", { class: "b-modal-fullscreen-page__separator" }, null, -1)), me = { class: "b-modal-fullscreen-page__content" }, ge = {}, ve = /* @__PURE__ */ L({
|
|
18
|
+
...ge,
|
|
19
|
+
__name: "modal-fullscreen-page",
|
|
20
|
+
props: {
|
|
21
|
+
/**
|
|
22
|
+
* List of actions that will be used to render the buttons.
|
|
23
|
+
* First element in the list will be rendered as "primary".
|
|
24
|
+
* All elements after the first will be rendered as "secondary".
|
|
25
|
+
*
|
|
26
|
+
* Each object in the list should have a `title`, an `event` and
|
|
27
|
+
* (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.
|
|
28
|
+
*
|
|
29
|
+
* @see BentoButton for a list of all the other props supported by each button action.
|
|
30
|
+
*/
|
|
31
|
+
actions: {
|
|
32
|
+
type: Array,
|
|
33
|
+
default: null
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* Label shown next to the modal actions
|
|
37
|
+
*/
|
|
38
|
+
contextualLabel: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: null
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* Identifier of the page, used with activePage prop to handle sidepanel navigation
|
|
44
|
+
*/
|
|
45
|
+
pageId: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: void 0
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior
|
|
51
|
+
* Used when the back button should not take the user to the natural previous page
|
|
52
|
+
* Set to `null` to hide back button in the page
|
|
53
|
+
*/
|
|
54
|
+
previousPage: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: void 0
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* Title of the modal
|
|
60
|
+
*/
|
|
61
|
+
title: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: null
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
setup(e) {
|
|
67
|
+
const s = e, p = N(), m = x(p);
|
|
68
|
+
return R(() => {
|
|
69
|
+
if (s.actions && s.actions.length > 2)
|
|
70
|
+
throw new Error("Not more than 2 action buttons may be provided in Bento Modal Fullscreen");
|
|
71
|
+
}), (d, E) => (l(), r(t(ee), {
|
|
72
|
+
class: "b-modal-fullscreen-page",
|
|
73
|
+
"page-id": e.pageId,
|
|
74
|
+
"previous-page": e.previousPage,
|
|
75
|
+
"always-show-border": ""
|
|
76
|
+
}, {
|
|
77
|
+
header: o(() => [
|
|
78
|
+
u("div", ue, [
|
|
79
|
+
u("div", de, [
|
|
80
|
+
e.title ? (l(), r(t(k), {
|
|
81
|
+
key: 0,
|
|
82
|
+
el: "h2",
|
|
83
|
+
variant: "title",
|
|
84
|
+
class: "b-modal-fullscreen-page__title",
|
|
85
|
+
title: e.title
|
|
86
|
+
}, {
|
|
87
|
+
default: o(() => [
|
|
88
|
+
B(A(e.title), 1)
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 8, ["title"])) : f("", !0)
|
|
92
|
+
]),
|
|
93
|
+
t(m)("header") ? (l(), w("div", fe, [
|
|
94
|
+
_(d.$slots, "header", {}, void 0, !0)
|
|
95
|
+
])) : f("", !0),
|
|
96
|
+
u("div", _e, [
|
|
97
|
+
e.contextualLabel ? (l(), r(t(k), {
|
|
98
|
+
key: 0,
|
|
99
|
+
class: "b-modal-fullscreen-page__contextual-label",
|
|
100
|
+
el: "span",
|
|
101
|
+
title: e.contextualLabel
|
|
102
|
+
}, {
|
|
103
|
+
default: o(() => [
|
|
104
|
+
B(A(e.contextualLabel), 1)
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
}, 8, ["title"])) : f("", !0),
|
|
108
|
+
e.actions ? (l(), r(t(oe), {
|
|
109
|
+
key: 1,
|
|
110
|
+
class: "b-modal-fullscreen-page__actions",
|
|
111
|
+
actions: e.actions
|
|
112
|
+
}, null, 8, ["actions"])) : f("", !0),
|
|
113
|
+
pe
|
|
114
|
+
])
|
|
115
|
+
])
|
|
116
|
+
]),
|
|
117
|
+
content: o(() => [
|
|
118
|
+
u("div", me, [
|
|
119
|
+
_(d.$slots, "default", {}, void 0, !0)
|
|
120
|
+
])
|
|
121
|
+
]),
|
|
122
|
+
_: 3
|
|
123
|
+
}, 8, ["page-id", "previous-page"]));
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
const he = /* @__PURE__ */ O(ve, [["__scopeId", "data-v-da0f0512"]]), D = {
|
|
13
127
|
"en-US": {
|
|
14
128
|
close: "Close"
|
|
15
129
|
}
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
i18n: { messages: S }
|
|
21
|
-
}, ce = /* @__PURE__ */ A({
|
|
22
|
-
...ne,
|
|
130
|
+
}, ye = ["id", "onKeydown"], be = { class: "b-modal-fullscreen__close-button" }, Ie = {
|
|
131
|
+
i18n: { messages: D }
|
|
132
|
+
}, Ee = /* @__PURE__ */ L({
|
|
133
|
+
...Ie,
|
|
23
134
|
__name: "modal-fullscreen",
|
|
24
135
|
props: {
|
|
25
136
|
/**
|
|
@@ -36,6 +147,14 @@ const Q = Symbol("modal fullscreen children element injection key"), S = {
|
|
|
36
147
|
type: Array,
|
|
37
148
|
default: null
|
|
38
149
|
},
|
|
150
|
+
/**
|
|
151
|
+
* The id of the current active page
|
|
152
|
+
* Should be the same as the pageId of the BentoModalFullscreenPage to be displayed
|
|
153
|
+
*/
|
|
154
|
+
activePage: {
|
|
155
|
+
type: String,
|
|
156
|
+
default: null
|
|
157
|
+
},
|
|
39
158
|
/**
|
|
40
159
|
* Label shown next to the modal actions
|
|
41
160
|
*/
|
|
@@ -58,98 +177,90 @@ const Q = Symbol("modal fullscreen children element injection key"), S = {
|
|
|
58
177
|
default: null
|
|
59
178
|
}
|
|
60
179
|
},
|
|
61
|
-
emits: ["update:is-open"],
|
|
62
|
-
setup(e, { emit:
|
|
63
|
-
const
|
|
64
|
-
"b-modal-fullscreen--hide":
|
|
65
|
-
})),
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
|
|
180
|
+
emits: ["update:is-open", "update:active-page"],
|
|
181
|
+
setup(e, { emit: s }) {
|
|
182
|
+
const p = e, { activePage: m, isOpen: d } = U(p), { t: E } = ne({ messages: D }), n = c(null), g = c(!1), S = ie("modal-fullscreen"), v = c(!1), F = N(), P = x(F), M = Y(() => ({
|
|
183
|
+
"b-modal-fullscreen--hide": g.value
|
|
184
|
+
})), T = () => {
|
|
185
|
+
g.value && (n.value.close(), i.value[0] && s("update:active-page", i.value[0]), i.value = [], g.value = !1, v.value = !1, s("update:is-open", !1));
|
|
186
|
+
}, y = () => {
|
|
187
|
+
n.value.open && (g.value = !0);
|
|
69
188
|
};
|
|
70
|
-
|
|
71
|
-
() =>
|
|
189
|
+
z(
|
|
190
|
+
() => d.value,
|
|
72
191
|
async () => {
|
|
73
|
-
await
|
|
192
|
+
await H(), n.value && (d.value ? (v.value = !0, n.value.showModal(), i.value.length || i.value.push(m.value)) : n.value.open && y());
|
|
74
193
|
},
|
|
75
194
|
{ immediate: !0 }
|
|
76
|
-
),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
195
|
+
), I(ce, S);
|
|
196
|
+
const $ = c(te.TRANSITION_LEVEL_DEEPER), h = c([]), i = c([]);
|
|
197
|
+
I(ae, {
|
|
198
|
+
activePage: m,
|
|
199
|
+
animation: $,
|
|
200
|
+
isOpen: v,
|
|
201
|
+
pages: h,
|
|
202
|
+
previousPages: i,
|
|
203
|
+
updatePage: (a) => s("update:active-page", a)
|
|
204
|
+
});
|
|
205
|
+
const G = (a) => () => {
|
|
206
|
+
var b;
|
|
207
|
+
h.value = (b = h.value) == null ? void 0 : b.filter((K) => K !== a);
|
|
208
|
+
};
|
|
209
|
+
return I(le, (a) => (a && h.value.push(a), { unregisterPage: G(a) })), (a, b) => (l(), w("dialog", {
|
|
210
|
+
id: t(S),
|
|
81
211
|
ref_key: "modal",
|
|
82
|
-
ref:
|
|
83
|
-
class:
|
|
84
|
-
onAnimationend:
|
|
85
|
-
onKeydown:
|
|
212
|
+
ref: n,
|
|
213
|
+
class: j(["b-modal-fullscreen", t(M)]),
|
|
214
|
+
onAnimationend: T,
|
|
215
|
+
onKeydown: q(Q(y, ["prevent"]), ["esc"])
|
|
86
216
|
}, [
|
|
87
|
-
|
|
217
|
+
v.value ? (l(), r(t(Z), {
|
|
88
218
|
key: 0,
|
|
89
219
|
class: "b-modal-fullscreen__wrapper"
|
|
90
220
|
}, {
|
|
91
|
-
default:
|
|
92
|
-
a
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
default
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
class: "b-modal-fullscreen__actions",
|
|
125
|
-
actions: e.actions
|
|
126
|
-
}, null, 8, ["actions"])) : s("", !0),
|
|
127
|
-
oe,
|
|
128
|
-
a("div", ae, [
|
|
129
|
-
B(t(j), {
|
|
130
|
-
variant: "tertiary",
|
|
131
|
-
"aria-label": t(w)("close"),
|
|
132
|
-
onClick: u
|
|
133
|
-
}, {
|
|
134
|
-
iconLeft: i(() => [
|
|
135
|
-
B(t(G), { "aria-hidden": !0 })
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 8, ["aria-label"])
|
|
139
|
-
])
|
|
140
|
-
])
|
|
141
|
-
]),
|
|
142
|
-
a("div", se, [
|
|
143
|
-
y(p.$slots, "default", {}, void 0, !0)
|
|
221
|
+
default: o(() => [
|
|
222
|
+
p.activePage ? _(a.$slots, "default", { key: 0 }, void 0, !0) : (l(), r(he, {
|
|
223
|
+
key: 1,
|
|
224
|
+
actions: e.actions,
|
|
225
|
+
"contextual-label": e.contextualLabel,
|
|
226
|
+
title: e.title
|
|
227
|
+
}, W({ _: 2 }, [
|
|
228
|
+
t(P)("default") ? {
|
|
229
|
+
name: "default",
|
|
230
|
+
fn: o(() => [
|
|
231
|
+
_(a.$slots, "default", {}, void 0, !0)
|
|
232
|
+
]),
|
|
233
|
+
key: "0"
|
|
234
|
+
} : void 0,
|
|
235
|
+
t(P)("header") ? {
|
|
236
|
+
name: "header",
|
|
237
|
+
fn: o(() => [
|
|
238
|
+
_(a.$slots, "header", {}, void 0, !0)
|
|
239
|
+
]),
|
|
240
|
+
key: "1"
|
|
241
|
+
} : void 0
|
|
242
|
+
]), 1032, ["actions", "contextual-label", "title"])),
|
|
243
|
+
u("div", be, [
|
|
244
|
+
C(t(X), {
|
|
245
|
+
variant: "tertiary",
|
|
246
|
+
"aria-label": t(E)("close"),
|
|
247
|
+
onClick: y
|
|
248
|
+
}, {
|
|
249
|
+
iconLeft: o(() => [
|
|
250
|
+
C(t(se), { "aria-hidden": !0 })
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
}, 8, ["aria-label"])
|
|
144
254
|
])
|
|
145
255
|
]),
|
|
146
256
|
_: 3
|
|
147
|
-
})) :
|
|
148
|
-
], 42,
|
|
257
|
+
})) : f("", !0)
|
|
258
|
+
], 42, ye));
|
|
149
259
|
}
|
|
150
260
|
});
|
|
151
|
-
const
|
|
261
|
+
const Te = /* @__PURE__ */ O(Ee, [["__scopeId", "data-v-0eef7eae"]]);
|
|
152
262
|
export {
|
|
153
|
-
|
|
263
|
+
Te as BentoModalFullscreen,
|
|
264
|
+
he as BentoModalFullscreenPage
|
|
154
265
|
};
|
|
155
266
|
//# sourceMappingURL=modal-fullscreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-fullscreen.js","sources":["../../vue2/src/components/modal-fullscreen/modal-fullscreen.keys.ts","../../vue2/src/components/modal-fullscreen/modal-fullscreen.vue"],"sourcesContent":["export const MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY = Symbol('modal fullscreen children element injection key');\n","<template>\n <dialog\n :id=\"modalFullscreenId\"\n ref=\"modal\"\n class=\"b-modal-fullscreen\"\n :class=\"conditionalClasses\"\n @animationend=\"closeModalAfterAnimation\"\n @keydown.esc.prevent=\"startCloseModalAnimation\"\n >\n <bento-focus-trap v-if=\"internalIsOpen\" class=\"b-modal-fullscreen__wrapper\">\n <div class=\"b-modal-fullscreen__header\">\n <div class=\"b-modal-fullscreen__header-section b-modal-fullscreen__header-section--title\">\n <bento-typography\n v-if=\"title\"\n el=\"h2\"\n variant=\"title\"\n class=\"b-modal-fullscreen__title\"\n :title=\"title\"\n >{{ title }}</bento-typography\n >\n </div>\n <div\n v-if=\"hasSlot('header')\"\n class=\"b-modal-fullscreen__header-section b-modal-fullscreen__header-section--slot\"\n >\n <slot name=\"header\" />\n </div>\n <div class=\"b-modal-fullscreen__header-section b-modal-fullscreen__header-section--actions\">\n <bento-typography\n v-if=\"contextualLabel\"\n class=\"b-modal-fullscreen__contextual-label\"\n el=\"span\"\n :title=\"contextualLabel\"\n >{{ contextualLabel }}</bento-typography\n >\n <bento-button-actions v-if=\"actions\" class=\"b-modal-fullscreen__actions\" :actions=\"actions\" />\n <div class=\"b-modal-fullscreen__separator\"></div>\n <div class=\"b-modal-fullscreen__close-button\">\n <bento-button variant=\"tertiary\" :aria-label=\"t('close')\" @click=\"startCloseModalAnimation\">\n <template #iconLeft><cross-icon :aria-hidden=\"true\" /></template>\n </bento-button>\n </div>\n </div>\n </div>\n\n <div class=\"b-modal-fullscreen__content\">\n <slot />\n </div>\n </bento-focus-trap>\n </dialog>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, onMounted, PropType, provide, ref, toRefs, useSlots, watch } from 'vue';\n\n import { BentoButton, BentoButtonActions, BentoButtonActionsList } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import { BentoTypography } from '@/components/typography';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useHasSlot } from '@/composables';\n import { MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY } from '@/components/modal-fullscreen/modal-fullscreen.keys';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n /**\n * Label shown next to the modal actions\n */\n contextualLabel: {\n type: String,\n default: null,\n },\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n default: null,\n },\n /**\n * Title of the modal\n */\n title: {\n type: String,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emits 'update:is-open' event when the modal is closed\n */\n (e: 'update:is-open', isOpen: boolean): void;\n }>();\n\n // Refs\n const { isOpen } = toRefs(props);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const modal = ref(null);\n const isClosing = ref(false);\n const modalFullscreenId = generateUid('modal-fullscreen');\n const internalIsOpen = ref(null);\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n // Animation styling\n const conditionalClasses = computed(() => ({\n 'b-modal-fullscreen--hide': isClosing.value,\n }));\n\n // Handle closing and closing animation for dialog element\n const closeModalAfterAnimation = () => {\n if (isClosing.value) {\n modal.value.close();\n isClosing.value = false;\n internalIsOpen.value = false;\n emit('update:is-open', false);\n }\n };\n\n const startCloseModalAnimation = () => {\n if (!modal.value.open) {\n return;\n }\n isClosing.value = true;\n };\n\n // Watching isOpen prop to toggle open/close the dialog element\n watch(\n () => isOpen.value,\n async () => {\n // Wait for modal ref to be created\n await nextTick();\n\n if (!modal.value) {\n return;\n }\n\n if (isOpen.value) {\n internalIsOpen.value = true;\n modal.value.showModal();\n } else if (modal.value.open) {\n startCloseModalAnimation();\n }\n },\n { immediate: true }\n );\n\n onMounted(() => {\n if (props.actions && props.actions.length > 2) {\n throw new Error('Not more than 2 action buttons may be provided in Bento Modal Fullscreen');\n }\n });\n\n // lets children components know they are inside a Modal (dialog element)\n provide(MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY, modalFullscreenId);\n</script>\n\n<script lang=\"ts\">\n /**\n * Fullscreen modal takes full available space (no content underneath is visible) and focuses the user's attention exclusively on one complex task or piece of complex information.\n *\n * @example\n * import { BentoModalFullscreen } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModalFullscreen },\n * template: `\n * <bento-modal-fullscreen\n * :is-open=\"isOpen\"\n * @update:is-open=\"isOpen = $event\"\n * title='Fullscreen modal title'\n * contextual-label='Contextual label'\n * :actions=\"[{ title: 'Action', event: () => {}]\"\n * >\n * <template #header>{{ header slot }}</template>\n * {{ content }}\n * </bento-modal-fullscreen>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./modal-fullscreen.scss\" />\n"],"names":["MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY","__default__","messages","isOpen","toRefs","props","t","useI18n","modal","ref","isClosing","modalFullscreenId","generateUid","internalIsOpen","slots","useSlots","hasSlot","useHasSlot","conditionalClasses","computed","closeModalAfterAnimation","emit","startCloseModalAnimation","watch","nextTick","onMounted","provide"],"mappings":";;;;;;;;;;;AAAa,MAAAA,IAAA,OAAA,iDAAA;;;;;;;sTCyMTC,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAxFA,EAAA,QAAAC,EAAA,IAAAC,EAAAC,CAAA,GACA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAL,EAAA,CAAA,GACAM,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,EAAA,GACAE,IAAAC,EAAA,kBAAA,GACAC,IAAAJ,EAAA,IAAA,GAEAK,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAGAI,IAAAC,EAAA,OAAA;AAAA,MAA2C,4BAAAT,EAAA;AAAA,IACD,EAAA,GAI1CU,IAAA,MAAA;AACI,MAAAV,EAAA,UACIF,EAAA,MAAA,MAAA,GACAE,EAAA,QAAA,IACAG,EAAA,QAAA,IACAQ,EAAA,kBAAA,EAAA;AAAA,IACJ,GAGJC,IAAA,MAAA;AACI,MAAAd,EAAA,MAAA,SAGAE,EAAA,QAAA;AAAA,IAAkB;AAItB,WAAAa;AAAA,MAAA,MAAApB,EAAA;AAAA,MACiB,YAAA;AAKT,QAFA,MAAAqB,EAAA,GAEAhB,EAAA,UAIAL,EAAA,SACIU,EAAA,QAAA,IACAL,EAAA,MAAA,UAAA,KAAsBA,EAAA,MAAA,QAEtBc,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB,GAGtBG,EAAA,MAAA;AACI,UAAApB,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA,MAAA,0EAAA;AAAA,IACJ,CAAA,GAIJqB,EAAA1B,GAAAW,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"modal-fullscreen.js","sources":["../../vue2/src/components/modal-fullscreen/components/modal-fullscreen-page.vue","../../vue2/src/components/modal-fullscreen/modal-fullscreen.vue"],"sourcesContent":["<template>\n <dialog-page class=\"b-modal-fullscreen-page\" :page-id=\"pageId\" :previous-page=\"previousPage\" always-show-border>\n <template #header>\n <div class=\"b-modal-fullscreen-page__header\">\n <div class=\"b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--title\">\n <bento-typography\n v-if=\"title\"\n el=\"h2\"\n variant=\"title\"\n class=\"b-modal-fullscreen-page__title\"\n :title=\"title\"\n >{{ title }}</bento-typography\n >\n </div>\n <div\n v-if=\"hasSlot('header')\"\n class=\"b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--slot\"\n >\n <slot name=\"header\" />\n </div>\n <div class=\"b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--actions\">\n <bento-typography\n v-if=\"contextualLabel\"\n class=\"b-modal-fullscreen-page__contextual-label\"\n el=\"span\"\n :title=\"contextualLabel\"\n >{{ contextualLabel }}</bento-typography\n >\n <bento-button-actions v-if=\"actions\" class=\"b-modal-fullscreen-page__actions\" :actions=\"actions\" />\n <div class=\"b-modal-fullscreen-page__separator\"></div>\n </div>\n </div>\n </template>\n <template #content>\n <div class=\"b-modal-fullscreen-page__content\">\n <slot />\n </div>\n </template>\n </dialog-page>\n</template>\n\n<script setup lang=\"ts\">\n import { onMounted, PropType, useSlots } from 'vue';\n\n import { BentoButtonActions, BentoButtonActionsList } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { DialogPage } from '@/internal';\n\n import { useHasSlot } from '@/composables';\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Label shown next to the modal actions\n */\n contextualLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Identifier of the page, used with activePage prop to handle sidepanel navigation\n */\n pageId: {\n type: String,\n default: undefined,\n },\n\n /**\n * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior\n * Used when the back button should not take the user to the natural previous page\n * Set to `null` to hide back button in the page\n */\n previousPage: {\n type: String,\n default: undefined,\n },\n\n /**\n * Title of the modal\n */\n title: {\n type: String,\n default: null,\n },\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n onMounted(() => {\n if (props.actions && props.actions.length > 2) {\n throw new Error('Not more than 2 action buttons may be provided in Bento Modal Fullscreen');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * ModalFullscreenPage is used to render different pages of ModalFullscreen component\n *\n * @example\n * import { BentoModalFullscreen, BentoModalFullscreenPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModalFullscreen, BentoModalFullscreenPage },\n * template: `\n * <bento-modal-fullscreen active-page='page1' is-open='true'>\n * <bento-modal-fullscreen-page\n * title='Page 1'\n * pageId='page1'\n * contextual-label='Move to next page'\n * :actions=\"[\n * {\n * title: 'Next page',\n * event: () => {\n * activePage.value = 'page2';\n * },\n * }]\">\n * Page 1 info\n * </bento-modal-fullscreen-page>\n * <bento-modal-fullscreen-page\n * title='Page 2'\n * pageId='page2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Page 2 info\n * </bento-modal-fullscreen-page>\n * </bento-modal-fullscreen>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./modal-fullscreen-page.scss\" />\n","<template>\n <dialog\n :id=\"modalFullscreenId\"\n ref=\"modal\"\n class=\"b-modal-fullscreen\"\n :class=\"conditionalClasses\"\n @animationend=\"closeModalAfterAnimation\"\n @keydown.esc.prevent=\"startCloseModalAnimation\"\n >\n <bento-focus-trap v-if=\"internalIsOpen\" class=\"b-modal-fullscreen__wrapper\">\n <template v-if=\"props.activePage\">\n <slot />\n </template>\n <bento-modal-fullscreen-page v-else :actions=\"actions\" :contextual-label=\"contextualLabel\" :title=\"title\">\n <template v-if=\"hasSlot('default')\" #default>\n <slot name=\"default\"></slot>\n </template>\n <template v-if=\"hasSlot('header')\" #header>\n <slot name=\"header\"></slot>\n </template>\n </bento-modal-fullscreen-page>\n <div class=\"b-modal-fullscreen__close-button\">\n <bento-button variant=\"tertiary\" :aria-label=\"t('close')\" @click=\"startCloseModalAnimation\">\n <template #iconLeft><cross-icon :aria-hidden=\"true\" /></template>\n </bento-button>\n </div>\n </bento-focus-trap>\n </dialog>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, PropType, provide, ref, toRefs, useSlots, watch } from 'vue';\n\n import { BentoButton, BentoButtonActionsList } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import BentoModalFullscreenPage from './components/modal-fullscreen-page.vue';\n\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useHasSlot } from '@/composables';\n import { MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY } from '@/components/modal-fullscreen/modal-fullscreen.keys';\n\n import messages from './messages.json';\n import {\n BentoDialogPageAnimation,\n BentoDialogPageConfigData,\n BentoDialogPageRegisterPage,\n DIALOG_PAGE_CONFIG_INJECTION_KEY,\n DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,\n } from '@/internal';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * The id of the current active page\n * Should be the same as the pageId of the BentoModalFullscreenPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * Label shown next to the modal actions\n */\n contextualLabel: {\n type: String,\n default: null,\n },\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n default: null,\n },\n /**\n * Title of the modal\n */\n title: {\n type: String,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emits 'update:is-open' event when the modal is closed\n */\n (e: 'update:is-open', isOpen: boolean): void;\n /**\n * Emits update event when page is changed internally\n */\n (e: 'update:active-page', page: string): void;\n }>();\n\n // Refs\n const { activePage, isOpen } = toRefs(props);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const modal = ref(null);\n const isClosing = ref(false);\n const modalFullscreenId = generateUid('modal-fullscreen');\n const internalIsOpen = ref(false);\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n // Animation styling\n const conditionalClasses = computed(() => ({\n 'b-modal-fullscreen--hide': isClosing.value,\n }));\n\n // Handle closing and closing animation for dialog element\n const closeModalAfterAnimation = () => {\n if (isClosing.value) {\n modal.value.close();\n if (previousPages.value[0]) {\n emit('update:active-page', previousPages.value[0]);\n }\n previousPages.value = [];\n isClosing.value = false;\n internalIsOpen.value = false;\n emit('update:is-open', false);\n }\n };\n\n const startCloseModalAnimation = () => {\n if (!modal.value.open) {\n return;\n }\n isClosing.value = true;\n };\n\n // Watching isOpen prop to toggle open/close the dialog element\n watch(\n () => isOpen.value,\n async () => {\n // Wait for modal ref to be created\n await nextTick();\n\n if (!modal.value) {\n return;\n }\n\n if (isOpen.value) {\n internalIsOpen.value = true;\n modal.value.showModal();\n if (!previousPages.value.length) {\n previousPages.value.push(activePage.value);\n }\n } else if (modal.value.open) {\n startCloseModalAnimation();\n }\n },\n { immediate: true }\n );\n\n // lets children components know they are inside a Modal (dialog element)\n provide(MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY, modalFullscreenId);\n\n // Pages\n const animation = ref(BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER);\n const pages = ref<string[]>([]);\n const previousPages = ref([]);\n const updatePage = page => emit('update:active-page', page);\n\n provide<BentoDialogPageConfigData>(DIALOG_PAGE_CONFIG_INJECTION_KEY, {\n activePage,\n animation,\n isOpen: internalIsOpen,\n pages,\n previousPages,\n updatePage,\n });\n\n // unregister page if removed / destroyed\n const unregisterPage = (pageIdToRemove: string) => () => {\n pages.value = pages.value?.filter(pageId => pageId !== pageIdToRemove);\n };\n\n // Provide data and function to register page to subcomponent\n const registerPage: BentoDialogPageRegisterPage = pageId => {\n if (pageId) {\n pages.value.push(pageId);\n }\n\n return { unregisterPage: unregisterPage(pageId) };\n };\n\n provide(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY, registerPage);\n</script>\n\n<script lang=\"ts\">\n /**\n * Fullscreen modal takes full available space (no content underneath is visible) and focuses the user's attention exclusively on one complex task or piece of complex information.\n *\n * @example\n * import { BentoModalFullscreen } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModalFullscreen },\n * template: `\n * <bento-modal-fullscreen\n * :is-open=\"isOpen\"\n * @update:is-open=\"isOpen = $event\"\n * title='Fullscreen modal title'\n * contextual-label='Contextual label'\n * :actions=\"[{ title: 'Action', event: () => {}]\"\n * >\n * <template #header>{{ header slot }}</template>\n * {{ content }}\n * </bento-modal-fullscreen>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./modal-fullscreen.scss\" />\n"],"names":["__default__$1","slots","useSlots","hasSlot","useHasSlot","onMounted","props","__default__","messages","activePage","isOpen","toRefs","t","useI18n","modal","ref","isClosing","modalFullscreenId","generateUid","internalIsOpen","conditionalClasses","computed","closeModalAfterAnimation","previousPages","emit","startCloseModalAnimation","watch","nextTick","provide","MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY","animation","BentoDialogPageAnimation","pages","DIALOG_PAGE_CONFIG_INJECTION_KEY","page","unregisterPage","pageIdToRemove","_a","pageId","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY"],"mappings":";;;;;;;;;;;;;;;;uRAqJIA,KAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAhDAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;AAEA,WAAAI,EAAA,MAAA;AACI,UAAAC,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA,MAAA,0EAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iFC8HJC,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAxHA,EAAA,YAAAC,GAAA,QAAAC,EAAA,IAAAC,EAAAL,CAAA,GACA,EAAA,GAAAM,EAAA,IAAAC,GAAA,EAAA,UAAAL,EAAA,CAAA,GACAM,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,EAAA,GACAE,IAAAC,GAAA,kBAAA,GACAC,IAAAJ,EAAA,EAAA,GAEAd,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAGAmB,IAAAC,EAAA,OAAA;AAAA,MAA2C,4BAAAL,EAAA;AAAA,IACD,EAAA,GAI1CM,IAAA,MAAA;AACI,MAAAN,EAAA,UACIF,EAAA,MAAA,MAAA,GACAS,EAAA,MAAA,CAAA,KACIC,EAAA,sBAAAD,EAAA,MAAA,CAAA,CAAA,GAEJA,EAAA,QAAA,CAAA,GACAP,EAAA,QAAA,IACAG,EAAA,QAAA,IACAK,EAAA,kBAAA,EAAA;AAAA,IACJ,GAGJC,IAAA,MAAA;AACI,MAAAX,EAAA,MAAA,SAGAE,EAAA,QAAA;AAAA,IAAkB;AAItB,IAAAU;AAAA,MAAA,MAAAhB,EAAA;AAAA,MACiB,YAAA;AAKT,QAFA,MAAAiB,EAAA,GAEAb,EAAA,UAIAJ,EAAA,SACIS,EAAA,QAAA,IACAL,EAAA,MAAA,UAAA,GACAS,EAAA,MAAA,UACIA,EAAA,MAAA,KAAAd,EAAA,KAAA,KACJK,EAAA,MAAA,QAEAW,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB,GAItBG,EAAAC,IAAAZ,CAAA;AAGA,UAAAa,IAAAf,EAAAgB,GAAA,uBAAA,GACAC,IAAAjB,EAAA,CAAA,CAAA,GACAQ,IAAAR,EAAA,CAAA,CAAA;AAGA,IAAAa,EAAAK,IAAA;AAAA,MAAqE,YAAAxB;AAAA,MACjE,WAAAqB;AAAA,MACA,QAAAX;AAAA,MACQ,OAAAa;AAAA,MACR,eAAAT;AAAA,MACA,YAPJ,CAAAW,MAAAV,EAAA,sBAAAU,CAAA;AAAA,IAQI,CAAA;AAIJ,UAAAC,IAAA,CAAAC,MAAA,MAAA;;AACI,MAAAJ,EAAA,SAAAK,IAAAL,EAAA,UAAA,gBAAAK,EAAA,OAAA,CAAAC,MAAAA,MAAAF;AAAA,IAAqE;AAYzE,WAAAR,EAAAW,IARA,CAAAD,OACIA,KACIN,EAAA,MAAA,KAAAM,CAAA,GAGJ,EAAA,gBAAAH,EAAAG,CAAA,EAAA,EAGJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/modal.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as A, g as k, e as m, d as j, b as E, B as I, a as C } from "./chunks/base-modal.
|
|
2
|
-
import { f as me } from "./chunks/base-modal.
|
|
1
|
+
import { c as A, g as k, e as m, d as j, b as E, B as I, a as C } from "./chunks/base-modal.d3079635.js";
|
|
2
|
+
import { f as me } from "./chunks/base-modal.d3079635.js";
|
|
3
3
|
import { defineComponent as f, useSlots as M, onMounted as $, openBlock as B, createBlock as b, unref as n, mergeProps as O, createSlots as z, withCtx as a, renderSlot as c, createVNode as P, toRefs as V, ref as F, computed as g, createTextVNode as G, toDisplayString as U, useAttrs as K, watch as W, resolveDynamicComponent as Y } from "vue";
|
|
4
4
|
import { u as w } from "./chunks/use-has-slot.4d98bf29.js";
|
|
5
|
-
import { F as H } from "./chunks/footer-actions.
|
|
6
|
-
import { B as L } from "./chunks/button.
|
|
5
|
+
import { F as H } from "./chunks/footer-actions.98e94560.js";
|
|
6
|
+
import { B as L } from "./chunks/button.22a91e4b.js";
|
|
7
7
|
import { u as J } from "./chunks/i18n.f7e6533e.js";
|
|
8
|
-
import {
|
|
9
|
-
import { d as Q } from "./chunks/index.
|
|
8
|
+
import { B as T } from "./chunks/button-actions.96f2b551.js";
|
|
9
|
+
import { d as Q } from "./chunks/index.14631d93.js";
|
|
10
10
|
const X = f({
|
|
11
11
|
name: "bento-modal-default"
|
|
12
12
|
}), Z = /* @__PURE__ */ f({
|