@adyen/bento-vue3 1.71.0 → 1.72.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/index.d.ts +435 -631
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/ai-button.css +1 -0
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -0
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/dashboard-section.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/empty-state.css +1 -1
- package/dist/assets/field-label.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/focus-trap.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/layout-row.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/button.js +11 -9
- package/dist/button.js.map +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{action-bar.DXP5aDZy.js → action-bar.DDLTN9TB.js} +3 -3
- package/dist/chunks/{action-bar.DXP5aDZy.js.map → action-bar.DDLTN9TB.js.map} +1 -1
- package/dist/chunks/ai-button.DsNrcgpK.js +93 -0
- package/dist/chunks/ai-button.DsNrcgpK.js.map +1 -0
- package/dist/chunks/{base-button.CjYb5Y8k.js → base-button.BYhf0xf3.js} +2 -2
- package/dist/chunks/base-button.BYhf0xf3.js.map +1 -0
- package/dist/chunks/{base-modal.IFHgu-pI.js → base-modal.Djw4pVal.js} +4 -4
- package/dist/chunks/{base-modal.IFHgu-pI.js.map → base-modal.Djw4pVal.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.VMZpD4ic.js → button-actions-with-menu.DaKPEgPd.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.VMZpD4ic.js.map → button-actions-with-menu.DaKPEgPd.js.map} +1 -1
- package/dist/chunks/{toggle-button.Cg4Kot6V.js → button-actions.D1eBtYgZ.js} +313 -310
- package/dist/chunks/button-actions.D1eBtYgZ.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/{calendar.DlqxwWsS.js → calendar.B1a_mV-Q.js} +427 -417
- package/dist/chunks/{calendar.DlqxwWsS.js.map → calendar.B1a_mV-Q.js.map} +1 -1
- package/dist/chunks/{card.BInbSY-o.js → card.B9lWURmF.js} +2 -2
- package/dist/chunks/{card.BInbSY-o.js.map → card.B9lWURmF.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CCvD8KVS.js → checkbox-group.CcgOK4yt.js} +4 -4
- package/dist/chunks/{checkbox-group.CCvD8KVS.js.map → checkbox-group.CcgOK4yt.js.map} +1 -1
- package/dist/chunks/{checkbox.BRIYlBom.js → checkbox.73QYC0y8.js} +3 -3
- package/dist/chunks/{checkbox.BRIYlBom.js.map → checkbox.73QYC0y8.js.map} +1 -1
- package/dist/chunks/{chevron-right.Brdj0WlO.js → chevron-left.Cfn1uGLH.js} +5 -5
- package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -0
- package/dist/chunks/{chip.DcpP3zb6.js → chip.CUwVpPVo.js} +2 -2
- package/dist/chunks/{chip.DcpP3zb6.js.map → chip.CUwVpPVo.js.map} +1 -1
- package/dist/chunks/code-snippet.DL_1HNKV.js +343 -0
- package/dist/chunks/code-snippet.DL_1HNKV.js.map +1 -0
- package/dist/chunks/{controls-group.hZ7MqEVg.js → controls-group.CdTg-WDi.js} +2 -2
- package/dist/chunks/{controls-group.hZ7MqEVg.js.map → controls-group.CdTg-WDi.js.map} +1 -1
- package/dist/chunks/{copy.CELx3jZU.js → copy.Da1OGFTr.js} +3 -3
- package/dist/chunks/{copy.CELx3jZU.js.map → copy.Da1OGFTr.js.map} +1 -1
- package/dist/chunks/{dashboard-section.CBzzHoDx.js → dashboard-section.BXE7_Y9R.js} +3 -3
- package/dist/chunks/{dashboard-section.CBzzHoDx.js.map → dashboard-section.BXE7_Y9R.js.map} +1 -1
- package/dist/chunks/{dashed-underline.D6p0_Yi3.js → dashed-underline.28J-9i5D.js} +3 -3
- package/dist/chunks/{dashed-underline.D6p0_Yi3.js.map → dashed-underline.28J-9i5D.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CE8j-4IU.js → data-grid-template.B13OrA1T.js} +36 -36
- package/dist/chunks/data-grid-template.B13OrA1T.js.map +1 -0
- package/dist/chunks/{data-grid.D_xkGMg9.js → data-grid._xo6LEB-.js} +1061 -1009
- package/dist/chunks/data-grid._xo6LEB-.js.map +1 -0
- package/dist/chunks/{date-picker.DNdV16PL.js → date-picker.Bkz4GmyC.js} +92 -86
- package/dist/chunks/date-picker.Bkz4GmyC.js.map +1 -0
- package/dist/chunks/{date-range-picker.C5KDhklL.js → date-range-picker.9Zlg9xnH.js} +7 -7
- package/dist/chunks/{date-range-picker.C5KDhklL.js.map → date-range-picker.9Zlg9xnH.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DqNHp5mb.js → dropdown-tag.hIiGmmBD.js} +3 -3
- package/dist/chunks/{dropdown-tag.DqNHp5mb.js.map → dropdown-tag.hIiGmmBD.js.map} +1 -1
- package/dist/chunks/{dropdown.CknmuJDd.js → dropdown.GyDAswAO.js} +5 -5
- package/dist/chunks/{dropdown.CknmuJDd.js.map → dropdown.GyDAswAO.js.map} +1 -1
- package/dist/chunks/{empty-state.BTaeZdQu.js → empty-state.BsKJ-1pT.js} +74 -119
- package/dist/chunks/empty-state.BsKJ-1pT.js.map +1 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{error-message.RHitS8wA.js → field-label.DSeawpYh.js} +60 -60
- package/dist/chunks/field-label.DSeawpYh.js.map +1 -0
- package/dist/chunks/{file-uploader.BEzjOvcm.js → file-uploader.DELe6_NM.js} +3 -3
- package/dist/chunks/{file-uploader.BEzjOvcm.js.map → file-uploader.DELe6_NM.js.map} +1 -1
- package/dist/chunks/{filter-bar.DlGlB8KV.js → filter-bar.BLhRZzJa.js} +175 -176
- package/dist/chunks/filter-bar.BLhRZzJa.js.map +1 -0
- package/dist/chunks/{fixed-scroller.DSGxXiAH.js → fixed-scroller.BASYH576.js} +2 -2
- package/dist/chunks/{fixed-scroller.DSGxXiAH.js.map → fixed-scroller.BASYH576.js.map} +1 -1
- package/dist/chunks/{focus-trap.BkNwCiVP.js → focus-trap.CpNGD7PH.js} +156 -145
- package/dist/chunks/focus-trap.CpNGD7PH.js.map +1 -0
- package/dist/chunks/{footer-actions.0aDpxgET.js → footer-actions.Bqn-Jp0p.js} +2 -2
- package/dist/chunks/{footer-actions.0aDpxgET.js.map → footer-actions.Bqn-Jp0p.js.map} +1 -1
- package/dist/chunks/{header-meta.BA12hEmp.js → header-meta.BXOpbsSR.js} +3 -3
- package/dist/chunks/{header-meta.BA12hEmp.js.map → header-meta.BXOpbsSR.js.map} +1 -1
- package/dist/chunks/{header-with-views.BhAcH_b0.js → header-with-views.afPw_Czi.js} +8 -8
- package/dist/chunks/{header-with-views.BhAcH_b0.js.map → header-with-views.afPw_Czi.js.map} +1 -1
- package/dist/chunks/{header.But-8DTA.js → header.9kRuPR3K.js} +3 -3
- package/dist/chunks/{header.But-8DTA.js.map → header.9kRuPR3K.js.map} +1 -1
- package/dist/chunks/{info-icon.BZoBshSv.js → info-icon.CRnO5lpq.js} +3 -3
- package/dist/chunks/{info-icon.BZoBshSv.js.map → info-icon.CRnO5lpq.js.map} +1 -1
- package/dist/chunks/{input-field-password.3z2IZUll.js → input-field-password.JZkGOiMd.js} +5 -5
- package/dist/chunks/{input-field-password.3z2IZUll.js.map → input-field-password.JZkGOiMd.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CBtuFrPU.js → input-field-phone-number.CF5P0_yu.js} +4 -4
- package/dist/chunks/{input-field-phone-number.CBtuFrPU.js.map → input-field-phone-number.CF5P0_yu.js.map} +1 -1
- package/dist/chunks/{input-field.BozGzgiG.js → input-field.2S8zBviE.js} +3 -3
- package/dist/chunks/{input-field.BozGzgiG.js.map → input-field.2S8zBviE.js.map} +1 -1
- package/dist/chunks/{inspector.D4uxNwOp.js → inspector.C-yVhM15.js} +2 -2
- package/dist/chunks/{inspector.D4uxNwOp.js.map → inspector.C-yVhM15.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.DXkIvvPz.js → listbox-option-tag.CtJUykfB.js} +2 -2
- package/dist/chunks/{listbox-option-tag.DXkIvvPz.js.map → listbox-option-tag.CtJUykfB.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CVhxBKi5.js → modal-fullscreen.CIxazX33.js} +3 -3
- package/dist/chunks/{modal-fullscreen.CVhxBKi5.js.map → modal-fullscreen.CIxazX33.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.COJ937I7.js → modal.vue_vue_type_script_setup_true_lang.D4TJY7o_.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.COJ937I7.js.map → modal.vue_vue_type_script_setup_true_lang.D4TJY7o_.js.map} +1 -1
- package/dist/chunks/{pagination.BNmA_Rjf.js → pagination.NDwXq6fh.js} +2 -2
- package/dist/chunks/{pagination.BNmA_Rjf.js.map → pagination.NDwXq6fh.js.map} +1 -1
- package/dist/chunks/popover.types.Bp97CGc4.js +6 -0
- package/dist/chunks/popover.types.Bp97CGc4.js.map +1 -0
- package/dist/chunks/{popper-container.bSdMC3hi.js → popper-container.5cq-eu41.js} +178 -170
- package/dist/chunks/{popper-container.bSdMC3hi.js.map → popper-container.5cq-eu41.js.map} +1 -1
- package/dist/chunks/{radio-group.CHh_3CHv.js → radio-group.BNiif4On.js} +4 -4
- package/dist/chunks/{radio-group.CHh_3CHv.js.map → radio-group.BNiif4On.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.C3c1TwV2.js → rich-text-editor.D770fUpS.js} +4 -4
- package/dist/chunks/{rich-text-editor.C3c1TwV2.js.map → rich-text-editor.D770fUpS.js.map} +1 -1
- package/dist/chunks/{search-bar.CxvanqNG.js → search-bar.rZ_38y4j.js} +3 -3
- package/dist/chunks/{search-bar.CxvanqNG.js.map → search-bar.rZ_38y4j.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DhLj6zof.js → secondary-nav.BBE8HyDR.js} +2 -2
- package/dist/chunks/{secondary-nav.DhLj6zof.js.map → secondary-nav.BBE8HyDR.js.map} +1 -1
- package/dist/chunks/{segmented-control.BCzCfi5u.js → segmented-control.D0SoqGlC.js} +2 -2
- package/dist/chunks/{segmented-control.BCzCfi5u.js.map → segmented-control.D0SoqGlC.js.map} +1 -1
- package/dist/chunks/{selection-card-group.rDJFsSHF.js → selection-card-group.KK9ZPqiU.js} +3 -3
- package/dist/chunks/{selection-card-group.rDJFsSHF.js.map → selection-card-group.KK9ZPqiU.js.map} +1 -1
- package/dist/chunks/{sidepanel.C0kqpRKo.js → sidepanel.CyPW8jxA.js} +4 -4
- package/dist/chunks/{sidepanel.C0kqpRKo.js.map → sidepanel.CyPW8jxA.js.map} +1 -1
- package/dist/chunks/{step.BMSjltwl.js → step.Ci-e1V9E.js} +2 -2
- package/dist/chunks/{step.BMSjltwl.js.map → step.Ci-e1V9E.js.map} +1 -1
- package/dist/chunks/structured-list-item.CSkcduKn.js +111 -0
- package/dist/chunks/structured-list-item.CSkcduKn.js.map +1 -0
- package/dist/chunks/{summary-grid.types.CgsPaFIi.js → summary-grid.types.C-gcwqwB.js} +5 -5
- package/dist/chunks/{summary-grid.types.CgsPaFIi.js.map → summary-grid.types.C-gcwqwB.js.map} +1 -1
- package/dist/chunks/{tab.C3R_VoJL.js → tab.8bEkiAkk.js} +2 -2
- package/dist/chunks/{tab.C3R_VoJL.js.map → tab.8bEkiAkk.js.map} +1 -1
- package/dist/chunks/{tag.DW6y9sn1.js → tag.BFYNxO6t.js} +2 -2
- package/dist/chunks/{tag.DW6y9sn1.js.map → tag.BFYNxO6t.js.map} +1 -1
- package/dist/chunks/{textarea.uiOivwAV.js → textarea.C7RmLKEx.js} +2 -2
- package/dist/chunks/{textarea.uiOivwAV.js.map → textarea.C7RmLKEx.js.map} +1 -1
- package/dist/chunks/{timeline-item.BKXebGLj.js → timeline-item.BiivSMPD.js} +5 -5
- package/dist/chunks/{timeline-item.BKXebGLj.js.map → timeline-item.BiivSMPD.js.map} +1 -1
- package/dist/chunks/{tooltip.TBU0Uixq.js → tooltip.CEHc6lzU.js} +2 -2
- package/dist/chunks/{tooltip.TBU0Uixq.js.map → tooltip.CEHc6lzU.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Unfr3oTn.js → tutorial.vue_vue_type_script_setup_true_lang.BDCDB169.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Unfr3oTn.js.map → tutorial.vue_vue_type_script_setup_true_lang.BDCDB169.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.TCmNtDra.js → use-cached-selected-values.CBOWMI4O.js} +4 -4
- package/dist/chunks/use-cached-selected-values.CBOWMI4O.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +181 -179
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +35 -16
- package/dist/styles/bento-light.css +34 -11
- package/dist/styles/bento.css +34 -11
- package/dist/styles/legacy.css +2108 -0
- package/dist/styles/styleguide.css +34 -11
- package/dist/styles/utility.css +12 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +6 -10
- package/dist/assets/error-message.css +0 -1
- package/dist/assets/toggle-button.css +0 -1
- package/dist/chunks/base-button.CjYb5Y8k.js.map +0 -1
- package/dist/chunks/chevron-right.Brdj0WlO.js.map +0 -1
- package/dist/chunks/code-snippet.DeecUpfA.js +0 -334
- package/dist/chunks/code-snippet.DeecUpfA.js.map +0 -1
- package/dist/chunks/data-grid-template.CE8j-4IU.js.map +0 -1
- package/dist/chunks/data-grid.D_xkGMg9.js.map +0 -1
- package/dist/chunks/date-picker.DNdV16PL.js.map +0 -1
- package/dist/chunks/empty-state.BTaeZdQu.js.map +0 -1
- package/dist/chunks/error-message.RHitS8wA.js.map +0 -1
- package/dist/chunks/filter-bar.DlGlB8KV.js.map +0 -1
- package/dist/chunks/focus-trap.BkNwCiVP.js.map +0 -1
- package/dist/chunks/popover.types.DdQGkMYq.js +0 -6
- package/dist/chunks/popover.types.DdQGkMYq.js.map +0 -1
- package/dist/chunks/structured-list-item.BgjY9j8w.js +0 -107
- package/dist/chunks/structured-list-item.BgjY9j8w.js.map +0 -1
- package/dist/chunks/toggle-button.Cg4Kot6V.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.TCmNtDra.js.map +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as M, useSlots as Q, computed as _, createBlock as g, openBlock as u, withModifiers as X, normalizeClass as U, createSlots as H, withCtx as
|
|
1
|
+
import { defineComponent as M, useSlots as Q, computed as _, createBlock as g, openBlock as u, withModifiers as X, normalizeClass as U, createSlots as H, withCtx as y, renderSlot as D, unref as p, createElementVNode as V, createCommentVNode as B, mergeProps as Y, renderList as x, normalizeProps as Be, guardReactiveProps as $e, resolveComponent as T, createVNode as E, createTextVNode as j, toDisplayString as G, onMounted as ee, onUnmounted as pe, useAttrs as Ee, inject as K, ref as v, toRefs as Se, Transition as ve, createElementBlock as k, Teleport as Le, resolveDynamicComponent as z, toHandlers as ie, withKeys as N, Fragment as Z, watch as be, nextTick as te, normalizeStyle as he, provide as Te, toRef as Me } from "vue";
|
|
2
2
|
import { B as L } from "./button.C-MAa6ut.js";
|
|
3
|
-
import { B as
|
|
4
|
-
import { C as Ne } from "./cross.
|
|
5
|
-
import {
|
|
6
|
-
import { B as ge, a as re, p as Re } from "./typography.yBEME_Gu.js";
|
|
7
|
-
import { c as Ae, P as De } from "./popper-container.bSdMC3hi.js";
|
|
3
|
+
import { B as we } from "./loading-indicator.VHi5tbZa.js";
|
|
4
|
+
import { C as Ne } from "./cross-circle-fill.CYLL7jfC.js";
|
|
5
|
+
import { C as Re } from "./checkmark-circle-fill._6-d40ru.js";
|
|
8
6
|
import { u as ae } from "./use-has-slot.B7eQSabc.js";
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
7
|
+
import { u as ye } from "./i18n.B6g5VX0q.js";
|
|
8
|
+
import { _ as w } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
9
|
+
import { B as ge, D as Ae } from "./divider.DnKNNyWB.js";
|
|
10
|
+
import { C as De } from "./cross.B92GxFTY.js";
|
|
11
|
+
import { B as _e, a as re, p as Pe } from "./typography.yBEME_Gu.js";
|
|
12
|
+
import { c as Fe, P as We, d as Ke } from "./popper-container.5cq-eu41.js";
|
|
13
|
+
import { u as Ue } from "./aria-label.CaUURpnB.js";
|
|
14
|
+
import { o as Ve } from "./on-click-outside.D9aY9g8G.js";
|
|
15
|
+
import { g as Ge } from "./generate-uid.NJ8tVoha.js";
|
|
16
|
+
import { C as je } from "./chevron-down.DCQ6ZLaq.js";
|
|
14
17
|
/* empty css */
|
|
15
18
|
import { i as Ce } from "./index.CWuzEfiV.js";
|
|
16
|
-
import { a as
|
|
17
|
-
import { a as de, B as
|
|
18
|
-
import { t as
|
|
19
|
-
import { o as
|
|
20
|
-
import { g as
|
|
21
|
-
import
|
|
22
|
-
import { C as Je } from "./cross-circle-fill.CYLL7jfC.js";
|
|
23
|
-
import { C as qe } from "./checkmark-circle-fill._6-d40ru.js";
|
|
24
|
-
import "../assets/toggle-button.css";
|
|
19
|
+
import { a as He, C as ue } from "./chevron-left.Cfn1uGLH.js";
|
|
20
|
+
import { a as de, B as Ye } from "./base-button.BYhf0xf3.js";
|
|
21
|
+
import { t as Je } from "./truncate.BfIl_-71.js";
|
|
22
|
+
import { o as qe } from "./resize.Bqks3WUm.js";
|
|
23
|
+
import { g as Xe } from "./es6.MoTTyETW.js";
|
|
24
|
+
import "../assets/button-actions.css";
|
|
25
25
|
var A = /* @__PURE__ */ ((e) => (e.START = "start", e.LOADING = "loading", e.SUCCESS = "success", e.FAIL = "fail", e))(A || {});
|
|
26
26
|
const Ie = {
|
|
27
27
|
"en-US": {
|
|
@@ -34,13 +34,13 @@ const Ie = {
|
|
|
34
34
|
"pt-BR": {
|
|
35
35
|
failed: "Falha"
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, ze = {
|
|
38
38
|
class: "b-loading-button__icon",
|
|
39
39
|
"data-testid": "loading-button-rotating-icon"
|
|
40
|
-
},
|
|
40
|
+
}, Ze = {
|
|
41
41
|
i18n: { messages: Ie }
|
|
42
|
-
},
|
|
43
|
-
...
|
|
42
|
+
}, Qe = /* @__PURE__ */ M({
|
|
43
|
+
...Ze,
|
|
44
44
|
__name: "loading-button",
|
|
45
45
|
props: {
|
|
46
46
|
/**
|
|
@@ -91,7 +91,7 @@ const Ie = {
|
|
|
91
91
|
},
|
|
92
92
|
emits: ["click"],
|
|
93
93
|
setup(e, { emit: t }) {
|
|
94
|
-
const o = e, s = t, d = Q(),
|
|
94
|
+
const o = e, s = t, d = Q(), m = ae(d), { t: l } = ye({ messages: Ie }), f = _(() => ({
|
|
95
95
|
[`b-loading-button--${o.variant}-${A.LOADING}`]: o.state === A.LOADING && !o.disabled,
|
|
96
96
|
"b-loading-button--loading": o.state === A.LOADING && !o.disabled,
|
|
97
97
|
[`b-loading-button--${o.variant}-${A.SUCCESS}`]: o.state === A.SUCCESS,
|
|
@@ -112,41 +112,112 @@ const Ie = {
|
|
|
112
112
|
class: U(["b-loading-button", f.value]),
|
|
113
113
|
onClickCapture: X(i, ["stop"])
|
|
114
114
|
}, H({
|
|
115
|
-
default:
|
|
115
|
+
default: y(() => [
|
|
116
116
|
D(r.$slots, "default", {}, void 0, !0)
|
|
117
117
|
]),
|
|
118
118
|
_: 2
|
|
119
119
|
}, [
|
|
120
|
-
e.state === "start" && m
|
|
120
|
+
e.state === "start" && p(m)("iconLeft") ? {
|
|
121
121
|
name: "iconLeft",
|
|
122
|
-
fn:
|
|
122
|
+
fn: y(() => [
|
|
123
123
|
D(r.$slots, "iconLeft", {}, void 0, !0)
|
|
124
124
|
]),
|
|
125
125
|
key: "0"
|
|
126
126
|
} : e.state !== "start" ? {
|
|
127
127
|
name: "iconLeft",
|
|
128
|
-
fn:
|
|
129
|
-
V("span",
|
|
130
|
-
e.state === "fail" ? (u(), g(
|
|
128
|
+
fn: y(() => [
|
|
129
|
+
V("span", ze, [
|
|
130
|
+
e.state === "fail" ? (u(), g(p(Ne), {
|
|
131
131
|
key: 0,
|
|
132
|
-
"svg-title":
|
|
133
|
-
}, null, 8, ["svg-title"])) : e.state === "success" ? (u(), g(
|
|
132
|
+
"svg-title": p(l)("failed")
|
|
133
|
+
}, null, 8, ["svg-title"])) : e.state === "success" ? (u(), g(p(Re), {
|
|
134
134
|
key: 1,
|
|
135
|
-
"svg-title":
|
|
136
|
-
}, null, 8, ["svg-title"])) : e.state === "loading" ? (u(), g(
|
|
135
|
+
"svg-title": p(l)("succeded")
|
|
136
|
+
}, null, 8, ["svg-title"])) : e.state === "loading" ? (u(), g(p(we), {
|
|
137
137
|
key: 2,
|
|
138
138
|
small: "",
|
|
139
139
|
inverse: c.value
|
|
140
|
-
}, null, 8, ["inverse"])) :
|
|
140
|
+
}, null, 8, ["inverse"])) : B("", !0)
|
|
141
141
|
])
|
|
142
142
|
]),
|
|
143
143
|
key: "1"
|
|
144
144
|
} : void 0
|
|
145
145
|
]), 1032, ["critical", "variant", "condensed", "disabled", "inverse", "class"]));
|
|
146
146
|
}
|
|
147
|
-
}),
|
|
147
|
+
}), xe = /* @__PURE__ */ w(Qe, [["__scopeId", "data-v-e68a786b"]]), et = {}, tt = /* @__PURE__ */ M({
|
|
148
|
+
...et,
|
|
149
|
+
__name: "toggle-button",
|
|
150
|
+
props: {
|
|
151
|
+
/**
|
|
152
|
+
* Reduces sizing of button
|
|
153
|
+
*/
|
|
154
|
+
condensed: {
|
|
155
|
+
type: L.props.condensed.type,
|
|
156
|
+
default: !1
|
|
157
|
+
},
|
|
158
|
+
/**
|
|
159
|
+
* Disables button functonality
|
|
160
|
+
*/
|
|
161
|
+
disabled: {
|
|
162
|
+
type: L.props.disabled.type,
|
|
163
|
+
default: !1
|
|
164
|
+
},
|
|
165
|
+
/**
|
|
166
|
+
* Sets color set to inverse
|
|
167
|
+
*/
|
|
168
|
+
inverse: {
|
|
169
|
+
type: Boolean,
|
|
170
|
+
default: !1
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
* Types of flavour of Button
|
|
174
|
+
* @values primary, secondary, tertiary
|
|
175
|
+
*/
|
|
176
|
+
variant: {
|
|
177
|
+
type: L.props.variant.type,
|
|
178
|
+
default: "primary",
|
|
179
|
+
validator: L.props.variant.validator
|
|
180
|
+
},
|
|
181
|
+
/**
|
|
182
|
+
* The state of the button whether it is toggled or not.
|
|
183
|
+
*/
|
|
184
|
+
toggled: {
|
|
185
|
+
type: Boolean,
|
|
186
|
+
default: !1
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
emits: ["click", "update:toggled"],
|
|
190
|
+
setup(e, { emit: t }) {
|
|
191
|
+
const o = e, s = t, d = _(
|
|
192
|
+
() => o.variant === "tertiary" ? "tertiary-with-background" : o.variant
|
|
193
|
+
), m = _(() => ({
|
|
194
|
+
"b-toggle-button--condensed": o == null ? void 0 : o.condensed,
|
|
195
|
+
[`b-toggle-button--${d.value}-toggled`]: o.toggled,
|
|
196
|
+
"b-toggle-button--inverse": o.inverse
|
|
197
|
+
})), l = (a) => {
|
|
198
|
+
a.stopPropagation(), o != null && o.disabled || (s("click", a), s("update:toggled", !o.toggled));
|
|
199
|
+
}, f = Q(), c = (a) => ({ key: a });
|
|
200
|
+
return (a, i) => (u(), g(L, Y({ class: "b-toggle-button" }, a.$attrs, {
|
|
201
|
+
"aria-expanded": `${e.toggled}`,
|
|
202
|
+
"aria-pressed": `${e.toggled}`,
|
|
203
|
+
condensed: e.condensed,
|
|
204
|
+
class: m.value,
|
|
205
|
+
disabled: e.disabled,
|
|
206
|
+
inverse: e.inverse,
|
|
207
|
+
variant: d.value,
|
|
208
|
+
onClickCapture: X(l, ["stop"])
|
|
209
|
+
}), H({ _: 2 }, [
|
|
210
|
+
x(p(f), (r, n) => ({
|
|
211
|
+
name: n,
|
|
212
|
+
fn: y(() => [
|
|
213
|
+
D(a.$slots, n, Be($e(c(n))), void 0, !0)
|
|
214
|
+
])
|
|
215
|
+
}))
|
|
216
|
+
]), 1040, ["aria-expanded", "aria-pressed", "condensed", "class", "disabled", "inverse", "variant"]));
|
|
217
|
+
}
|
|
218
|
+
}), nt = /* @__PURE__ */ w(tt, [["__scopeId", "data-v-f1b10e5f"]]), ot = M({
|
|
148
219
|
name: "bento-popover-dismiss-button",
|
|
149
|
-
components: { BentoButton: L, CrossIcon:
|
|
220
|
+
components: { BentoButton: L, CrossIcon: De },
|
|
150
221
|
props: {
|
|
151
222
|
onImage: {
|
|
152
223
|
type: Boolean,
|
|
@@ -160,21 +231,21 @@ const Ie = {
|
|
|
160
231
|
};
|
|
161
232
|
}
|
|
162
233
|
});
|
|
163
|
-
function
|
|
234
|
+
function st(e, t, o, s, d, m) {
|
|
164
235
|
const l = T("cross-icon"), f = T("bento-button");
|
|
165
236
|
return u(), g(f, {
|
|
166
237
|
class: U(e.conditionalClass),
|
|
167
238
|
variant: "tertiary",
|
|
168
239
|
onClick: t[0] || (t[0] = (c) => e.$emit("click"))
|
|
169
240
|
}, {
|
|
170
|
-
iconLeft:
|
|
241
|
+
iconLeft: y(() => [
|
|
171
242
|
E(l, { "svg-title": "dismiss" })
|
|
172
243
|
]),
|
|
173
244
|
_: 1
|
|
174
245
|
}, 8, ["class"]);
|
|
175
246
|
}
|
|
176
|
-
const ce = /* @__PURE__ */ w(
|
|
177
|
-
components: { BentoTypography:
|
|
247
|
+
const ce = /* @__PURE__ */ w(ot, [["render", st], ["__scopeId", "data-v-424ecdaa"]]), it = M({
|
|
248
|
+
components: { BentoTypography: _e },
|
|
178
249
|
props: {
|
|
179
250
|
/**
|
|
180
251
|
* Indicates if the popover contains an image.
|
|
@@ -196,40 +267,40 @@ const ce = /* @__PURE__ */ w(xe, [["render", et], ["__scopeId", "data-v-df01cfb8
|
|
|
196
267
|
};
|
|
197
268
|
}
|
|
198
269
|
});
|
|
199
|
-
function
|
|
270
|
+
function at(e, t, o, s, d, m) {
|
|
200
271
|
const l = T("bento-typography");
|
|
201
272
|
return u(), g(l, {
|
|
202
273
|
strongest: e.isStrongest,
|
|
203
274
|
variant: e.titleVariant,
|
|
204
275
|
el: "span"
|
|
205
276
|
}, {
|
|
206
|
-
default:
|
|
277
|
+
default: y(() => [
|
|
207
278
|
j(G(e.title), 1)
|
|
208
279
|
]),
|
|
209
280
|
_: 1
|
|
210
281
|
}, 8, ["strongest", "variant"]);
|
|
211
282
|
}
|
|
212
|
-
const
|
|
283
|
+
const lt = /* @__PURE__ */ w(it, [["render", at]]), rt = (e, t, o = {}) => {
|
|
213
284
|
let s;
|
|
214
|
-
|
|
215
|
-
s =
|
|
285
|
+
ee(() => {
|
|
286
|
+
s = Ve(e, t, o);
|
|
216
287
|
}), pe(() => {
|
|
217
288
|
s && (s(), s = null);
|
|
218
289
|
});
|
|
219
|
-
},
|
|
290
|
+
}, ut = Symbol("input field popover injection key"), dt = Symbol("input field popover injection key"), ct = Symbol("popover offset injection key"), ft = {
|
|
220
291
|
key: 0,
|
|
221
292
|
class: "b-popover__image"
|
|
222
|
-
},
|
|
293
|
+
}, mt = {
|
|
223
294
|
key: 0,
|
|
224
295
|
class: "b-popover__image-dismiss-button"
|
|
225
|
-
},
|
|
296
|
+
}, pt = {
|
|
226
297
|
key: 1,
|
|
227
298
|
class: "b-popover__header"
|
|
228
|
-
},
|
|
299
|
+
}, vt = { class: "b-popover__header-title" }, bt = { key: 0 }, ht = {
|
|
229
300
|
key: 3,
|
|
230
301
|
class: "b-popover__footer"
|
|
231
|
-
},
|
|
232
|
-
...
|
|
302
|
+
}, yt = {}, gt = /* @__PURE__ */ M({
|
|
303
|
+
...yt,
|
|
233
304
|
__name: "popover",
|
|
234
305
|
props: {
|
|
235
306
|
actions: { default: void 0 },
|
|
@@ -249,23 +320,24 @@ const ot = /* @__PURE__ */ w(tt, [["render", nt]]), st = (e, t, o = {}) => {
|
|
|
249
320
|
title: { default: void 0 },
|
|
250
321
|
targetElement: {},
|
|
251
322
|
trapAll: { type: Boolean, default: !1 },
|
|
323
|
+
trapAllOptions: { default: void 0 },
|
|
252
324
|
withoutSpace: { type: Boolean, default: !1 },
|
|
253
325
|
overflowVisible: { type: Boolean, default: !1 }
|
|
254
326
|
},
|
|
255
327
|
emits: ["dismiss", "placement"],
|
|
256
328
|
setup(e, { emit: t }) {
|
|
257
|
-
const s = e, d = t,
|
|
258
|
-
var
|
|
329
|
+
const s = e, d = t, m = Q(), l = Ee(), f = _(() => {
|
|
330
|
+
var h;
|
|
259
331
|
return {
|
|
260
|
-
id: (
|
|
261
|
-
role: (l == null ? void 0 : l.role) === null ? void 0 :
|
|
332
|
+
id: (h = l.id) == null ? void 0 : h.toString(),
|
|
333
|
+
role: (l == null ? void 0 : l.role) === null ? void 0 : Fe.POPOVER
|
|
262
334
|
};
|
|
263
|
-
}), c = K(
|
|
335
|
+
}), c = K(ct, 2), a = v(l["aria-label"]), { ariaLabel: i, title: r } = Se(s), n = Ue({
|
|
264
336
|
ariaLabel: a.value,
|
|
265
337
|
// TODO: take this line away when the aria-label props is removed
|
|
266
338
|
label: i,
|
|
267
339
|
defaultFallback: r
|
|
268
|
-
}), b = K(
|
|
340
|
+
}), b = K(dt, !1) || K(ut, !1), C = _(() => ({
|
|
269
341
|
"b-popover--small": s.small && !s.large,
|
|
270
342
|
"b-popover--with-divider": !!s.divider,
|
|
271
343
|
"b-popover--large": s.large && !s.small,
|
|
@@ -274,67 +346,68 @@ const ot = /* @__PURE__ */ w(tt, [["render", nt]]), st = (e, t, o = {}) => {
|
|
|
274
346
|
"b-popover--overflow-visible": s.overflowVisible || b
|
|
275
347
|
})), $ = _(() => ({
|
|
276
348
|
"b-popover__content--with-title": !!s.title
|
|
277
|
-
})), R = () => d("dismiss"), P = ae(
|
|
278
|
-
return (
|
|
279
|
-
default:
|
|
280
|
-
|
|
349
|
+
})), R = () => d("dismiss"), P = ae(m);
|
|
350
|
+
return (h, F) => (u(), g(ve, { name: "b-popover__animation" }, {
|
|
351
|
+
default: y(() => [
|
|
352
|
+
h.open ? (u(), g(p(We), {
|
|
281
353
|
key: 0,
|
|
282
354
|
id: f.value.id,
|
|
283
355
|
"aria-role": f.value.role,
|
|
284
|
-
"aria-label":
|
|
356
|
+
"aria-label": p(n),
|
|
285
357
|
arrow: { classes: ["b-popover__arrow"] },
|
|
286
|
-
"disabled-focus-trap":
|
|
287
|
-
"trap-all":
|
|
358
|
+
"disabled-focus-trap": h.disableFocusTrap,
|
|
359
|
+
"trap-all": h.trapAll,
|
|
360
|
+
"trap-all-options": h.trapAllOptions,
|
|
288
361
|
class: U([C.value, "b-popover"]),
|
|
289
|
-
"fallback-position":
|
|
290
|
-
"fixed-positioning":
|
|
291
|
-
offset: [0,
|
|
292
|
-
position:
|
|
293
|
-
"target-element":
|
|
294
|
-
onPlacement: F[0] || (F[0] = (J) =>
|
|
362
|
+
"fallback-position": h.fallbackPosition,
|
|
363
|
+
"fixed-positioning": h.fixedPositioning,
|
|
364
|
+
offset: [0, p(c)],
|
|
365
|
+
position: h.position,
|
|
366
|
+
"target-element": h.targetElement,
|
|
367
|
+
onPlacement: F[0] || (F[0] = (J) => h.$emit("placement", J))
|
|
295
368
|
}, {
|
|
296
|
-
default:
|
|
297
|
-
|
|
298
|
-
|
|
369
|
+
default: y(() => [
|
|
370
|
+
p(P)("image") ? (u(), k("div", ft, [
|
|
371
|
+
h.dismissible ? (u(), k("div", mt, [
|
|
299
372
|
E(ce, {
|
|
300
373
|
"on-image": "",
|
|
301
374
|
onClick: R
|
|
302
375
|
})
|
|
303
|
-
])) :
|
|
304
|
-
D(
|
|
305
|
-
])) :
|
|
306
|
-
|
|
307
|
-
V("div",
|
|
308
|
-
|
|
309
|
-
E(
|
|
310
|
-
title:
|
|
311
|
-
"is-image-title": !!
|
|
376
|
+
])) : B("", !0),
|
|
377
|
+
D(h.$slots, "image", {}, void 0, !0)
|
|
378
|
+
])) : B("", !0),
|
|
379
|
+
p(r) ? (u(), k("div", pt, [
|
|
380
|
+
V("div", vt, [
|
|
381
|
+
p(P)("headerIcon") ? D(h.$slots, "headerIcon", { key: 0 }, void 0, !0) : B("", !0),
|
|
382
|
+
E(lt, {
|
|
383
|
+
title: p(r),
|
|
384
|
+
"is-image-title": !!p(P)("image")
|
|
312
385
|
}, null, 8, ["title", "is-image-title"])
|
|
313
386
|
]),
|
|
314
|
-
|
|
387
|
+
h.dismissible && !p(P)("image") ? (u(), k("div", bt, [
|
|
315
388
|
E(ce, { onClick: R })
|
|
316
|
-
])) :
|
|
317
|
-
])) :
|
|
318
|
-
|
|
389
|
+
])) : B("", !0)
|
|
390
|
+
])) : B("", !0),
|
|
391
|
+
p(P)("default") ? (u(), k("div", {
|
|
319
392
|
key: 2,
|
|
320
393
|
class: U(["b-popover__content", $.value])
|
|
321
394
|
}, [
|
|
322
|
-
D(
|
|
323
|
-
], 2)) :
|
|
324
|
-
|
|
325
|
-
E(
|
|
326
|
-
actions:
|
|
327
|
-
layout:
|
|
395
|
+
D(h.$slots, "default", {}, void 0, !0)
|
|
396
|
+
], 2)) : B("", !0),
|
|
397
|
+
h.actions ? (u(), k("div", ht, [
|
|
398
|
+
E(xt, {
|
|
399
|
+
actions: h.actions,
|
|
400
|
+
layout: h.actionsLayout
|
|
328
401
|
}, null, 8, ["actions", "layout"])
|
|
329
|
-
])) :
|
|
402
|
+
])) : B("", !0)
|
|
330
403
|
]),
|
|
331
404
|
_: 3
|
|
332
|
-
}, 8, ["id", "aria-role", "aria-label", "disabled-focus-trap", "trap-all", "class", "fallback-position", "fixed-positioning", "offset", "position", "target-element"])) :
|
|
405
|
+
}, 8, ["id", "aria-role", "aria-label", "disabled-focus-trap", "trap-all", "trap-all-options", "class", "fallback-position", "fixed-positioning", "offset", "position", "target-element"])) : B("", !0)
|
|
333
406
|
]),
|
|
334
407
|
_: 3
|
|
335
408
|
}));
|
|
336
409
|
}
|
|
337
|
-
}),
|
|
410
|
+
}), _t = /* @__PURE__ */ w(gt, [["__scopeId", "data-v-84ebb43a"]]), Ct = Symbol("modal injection key"), It = Symbol("sidepanel children element injection key"), kt = Symbol("modal fullscreen children element injection key"), Ot = M({
|
|
338
411
|
name: "teleport",
|
|
339
412
|
props: {
|
|
340
413
|
to: {
|
|
@@ -362,7 +435,7 @@ const ot = /* @__PURE__ */ w(tt, [["render", nt]]), st = (e, t, o = {}) => {
|
|
|
362
435
|
defaultTo() {
|
|
363
436
|
if (this.to)
|
|
364
437
|
return this.to;
|
|
365
|
-
const e = K(
|
|
438
|
+
const e = K(Ct, "") || K(kt, "") || K(It, "");
|
|
366
439
|
return e ? `#${e}` : "body";
|
|
367
440
|
}
|
|
368
441
|
},
|
|
@@ -405,7 +478,7 @@ const ot = /* @__PURE__ */ w(tt, [["render", nt]]), st = (e, t, o = {}) => {
|
|
|
405
478
|
let t = !1;
|
|
406
479
|
for (let o = 0; o < e.length; o++) {
|
|
407
480
|
const s = e[o], d = Array.from(s.addedNodes).filter(
|
|
408
|
-
(
|
|
481
|
+
(m) => !this.nodes.includes(m)
|
|
409
482
|
);
|
|
410
483
|
Array.from(s.removedNodes).includes(this.parent) ? (this.disable(), this.waiting = !this.disabled) : this.waiting && d.length > 0 && (t = !0);
|
|
411
484
|
}
|
|
@@ -433,15 +506,15 @@ const ot = /* @__PURE__ */ w(tt, [["render", nt]]), st = (e, t, o = {}) => {
|
|
|
433
506
|
return [];
|
|
434
507
|
}
|
|
435
508
|
}
|
|
436
|
-
}),
|
|
437
|
-
...
|
|
509
|
+
}), Bt = /* @__PURE__ */ M({
|
|
510
|
+
...Ot,
|
|
438
511
|
setup(e) {
|
|
439
|
-
return (t, o) =>
|
|
512
|
+
return (t, o) => p(Ce) ? (u(), k("div", {
|
|
440
513
|
key: 0,
|
|
441
514
|
class: U(t.classes)
|
|
442
515
|
}, [
|
|
443
516
|
D(t.$slots, "default", {}, void 0, !0)
|
|
444
|
-
], 2)) : (u(), g(
|
|
517
|
+
], 2)) : (u(), g(Le, {
|
|
445
518
|
key: 1,
|
|
446
519
|
to: t.defaultTo,
|
|
447
520
|
where: t.where,
|
|
@@ -451,16 +524,14 @@ const ot = /* @__PURE__ */ w(tt, [["render", nt]]), st = (e, t, o = {}) => {
|
|
|
451
524
|
D(t.$slots, "default", {}, void 0, !0)
|
|
452
525
|
], 8, ["to", "where", "disabled", "class"]));
|
|
453
526
|
}
|
|
454
|
-
}),
|
|
455
|
-
"button actions with menu container injection key"
|
|
456
|
-
);
|
|
527
|
+
}), $t = /* @__PURE__ */ w(Bt, [["__scopeId", "data-v-acbda3aa"]]);
|
|
457
528
|
let fe = 0;
|
|
458
|
-
const
|
|
529
|
+
const Et = {
|
|
459
530
|
beforeCreate() {
|
|
460
531
|
this.uuid = fe.toString(), fe += 1;
|
|
461
532
|
}
|
|
462
|
-
},
|
|
463
|
-
function
|
|
533
|
+
}, St = { key: 0 };
|
|
534
|
+
function Lt(e, t, o, s, d, m) {
|
|
464
535
|
return u(), k("svg", Y({ role: "img" }, e.$attrs, {
|
|
465
536
|
class: "ui-assets-icons-16",
|
|
466
537
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -468,7 +539,7 @@ function Et(e, t, o, s, d, p) {
|
|
|
468
539
|
height: "16",
|
|
469
540
|
fill: "none"
|
|
470
541
|
}), [
|
|
471
|
-
e.$attrs["svg-title"] ? (u(), k("title",
|
|
542
|
+
e.$attrs["svg-title"] ? (u(), k("title", St, G(e.$attrs["svg-title"]), 1)) : B("", !0),
|
|
472
543
|
t[0] || (t[0] = V("path", {
|
|
473
544
|
fill: "#001222",
|
|
474
545
|
d: "M8 4C8.29667 4 8.58668 3.91203 8.83335 3.74721C9.08003 3.58238 9.27229 3.34811 9.38582 3.07403C9.49935 2.79994 9.52906 2.49834 9.47118 2.20737C9.4133 1.91639 9.27044 1.64912 9.06066 1.43934C8.85088 1.22956 8.58361 1.0867 8.29264 1.02882C8.00167 0.970945 7.70006 1.00065 7.42598 1.11418C7.15189 1.22771 6.91762 1.41997 6.7528 1.66665C6.58797 1.91332 6.5 2.20333 6.5 2.5C6.5 2.89783 6.65803 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z"
|
|
@@ -483,9 +554,9 @@ function Et(e, t, o, s, d, p) {
|
|
|
483
554
|
}, null, -1))
|
|
484
555
|
], 16);
|
|
485
556
|
}
|
|
486
|
-
const
|
|
557
|
+
const Tt = /* @__PURE__ */ w(Et, [["render", Lt]]), Mt = M({
|
|
487
558
|
name: "menu-item",
|
|
488
|
-
components: { BaseButton:
|
|
559
|
+
components: { BaseButton: Ye, BentoTypography: _e, ChevronRightIcon: He },
|
|
489
560
|
props: {
|
|
490
561
|
/**
|
|
491
562
|
* menu-item text that gets displayed as the main label
|
|
@@ -558,7 +629,7 @@ const St = /* @__PURE__ */ w(Ot, [["render", Et]]), Lt = M({
|
|
|
558
629
|
const s = _(() => ({
|
|
559
630
|
"b-menu-item--critical": e.critical,
|
|
560
631
|
"b-menu-item--indent": e.indent
|
|
561
|
-
})), d = _(() =>
|
|
632
|
+
})), d = _(() => Je(e.secondaryText, 10));
|
|
562
633
|
return {
|
|
563
634
|
// Values
|
|
564
635
|
conditionalClasses: s,
|
|
@@ -570,7 +641,7 @@ const St = /* @__PURE__ */ w(Ot, [["render", Et]]), Lt = M({
|
|
|
570
641
|
};
|
|
571
642
|
}
|
|
572
643
|
});
|
|
573
|
-
function
|
|
644
|
+
function wt(e, t, o, s, d, m) {
|
|
574
645
|
const l = T("bento-typography"), f = T("chevron-right-icon"), c = T("base-button");
|
|
575
646
|
return u(), g(c, {
|
|
576
647
|
class: U(["b-menu-item", e.conditionalClasses]),
|
|
@@ -579,14 +650,14 @@ function Tt(e, t, o, s, d, p) {
|
|
|
579
650
|
tabindex: "-1",
|
|
580
651
|
onClick: e.onClick
|
|
581
652
|
}, H({
|
|
582
|
-
default:
|
|
653
|
+
default: y(() => [
|
|
583
654
|
E(l, {
|
|
584
655
|
el: "span",
|
|
585
656
|
variant: "body",
|
|
586
657
|
stronger: e.isTitle,
|
|
587
658
|
class: "b-menu-item__primary-text"
|
|
588
659
|
}, {
|
|
589
|
-
default:
|
|
660
|
+
default: y(() => [
|
|
590
661
|
j(G(e.text), 1)
|
|
591
662
|
]),
|
|
592
663
|
_: 1
|
|
@@ -597,17 +668,17 @@ function Tt(e, t, o, s, d, p) {
|
|
|
597
668
|
variant: "body",
|
|
598
669
|
class: "b-menu-item__secondary-text"
|
|
599
670
|
}, {
|
|
600
|
-
default:
|
|
671
|
+
default: y(() => [
|
|
601
672
|
j(G(e.computedSecondaryText), 1)
|
|
602
673
|
]),
|
|
603
674
|
_: 1
|
|
604
|
-
})) :
|
|
675
|
+
})) : B("", !0)
|
|
605
676
|
]),
|
|
606
677
|
_: 2
|
|
607
678
|
}, [
|
|
608
679
|
e.icon ? {
|
|
609
680
|
name: "iconLeft",
|
|
610
|
-
fn:
|
|
681
|
+
fn: y(() => [
|
|
611
682
|
(u(), g(z(e.icon), {
|
|
612
683
|
class: "b-menu-item__icon-left",
|
|
613
684
|
"aria-hidden": "true"
|
|
@@ -617,22 +688,23 @@ function Tt(e, t, o, s, d, p) {
|
|
|
617
688
|
} : void 0,
|
|
618
689
|
e.chevron ? {
|
|
619
690
|
name: "iconRight",
|
|
620
|
-
fn:
|
|
691
|
+
fn: y(() => [
|
|
621
692
|
E(f, { "aria-hidden": "true" })
|
|
622
693
|
]),
|
|
623
694
|
key: "1"
|
|
624
695
|
} : void 0
|
|
625
696
|
]), 1032, ["class", "disabled", "onClick"]);
|
|
626
697
|
}
|
|
627
|
-
const ke = /* @__PURE__ */ w(
|
|
698
|
+
const ke = /* @__PURE__ */ w(Mt, [["render", wt], ["__scopeId", "data-v-9dace5ac"]]);
|
|
699
|
+
({ ...Ke });
|
|
628
700
|
var W = /* @__PURE__ */ ((e) => (e.BACK = "back", e.CLOSE = "close", e.OPEN = "open", e))(W || {});
|
|
629
|
-
const
|
|
701
|
+
const Nt = Symbol("menu registering injection key"), Rt = {
|
|
630
702
|
name: "bento-menu-list-container"
|
|
631
|
-
},
|
|
632
|
-
...
|
|
703
|
+
}, At = /* @__PURE__ */ M({
|
|
704
|
+
...Rt,
|
|
633
705
|
setup(e) {
|
|
634
706
|
const t = v(), o = v({}), s = K(
|
|
635
|
-
|
|
707
|
+
Nt,
|
|
636
708
|
!1
|
|
637
709
|
);
|
|
638
710
|
if (s) {
|
|
@@ -641,7 +713,7 @@ const Mt = Symbol("menu registering injection key"), wt = {
|
|
|
641
713
|
mouseleave: s == null ? void 0 : s.menuMouseLeave
|
|
642
714
|
};
|
|
643
715
|
}
|
|
644
|
-
return (d,
|
|
716
|
+
return (d, m) => (u(), k("div", Y({
|
|
645
717
|
ref_key: "menuListContainerRef",
|
|
646
718
|
ref: t,
|
|
647
719
|
class: "b-menu-list-container",
|
|
@@ -650,15 +722,15 @@ const Mt = Symbol("menu registering injection key"), wt = {
|
|
|
650
722
|
D(d.$slots, "default", {}, void 0, !0)
|
|
651
723
|
], 16));
|
|
652
724
|
}
|
|
653
|
-
}),
|
|
725
|
+
}), Oe = /* @__PURE__ */ w(At, [["__scopeId", "data-v-02a3ca45"]]), le = {
|
|
654
726
|
"en-US": {
|
|
655
727
|
backButton: "Go back",
|
|
656
728
|
menuButton: "Open menu"
|
|
657
729
|
}
|
|
658
|
-
},
|
|
730
|
+
}, Dt = M({
|
|
659
731
|
i18n: { messages: le },
|
|
660
732
|
name: "sub-menu-item-list",
|
|
661
|
-
components: { BentoDivider:
|
|
733
|
+
components: { BentoDivider: ge, MenuItem: ke, MenuListContainer: Oe },
|
|
662
734
|
props: {
|
|
663
735
|
items: {
|
|
664
736
|
type: Array,
|
|
@@ -671,13 +743,13 @@ const Mt = Symbol("menu registering injection key"), wt = {
|
|
|
671
743
|
},
|
|
672
744
|
emits: [W.CLOSE, W.BACK],
|
|
673
745
|
setup(e, { emit: t }) {
|
|
674
|
-
const o = v(null), s = v(0), d = v(e.items.length),
|
|
746
|
+
const o = v(null), s = v(0), d = v(e.items.length), m = () => t(W.CLOSE), l = () => t(W.BACK), f = _(() => {
|
|
675
747
|
var n;
|
|
676
748
|
const r = (n = e.items) == null ? void 0 : n.map((b) => ({
|
|
677
749
|
...b,
|
|
678
750
|
indent: !b.icon,
|
|
679
751
|
isTitle: !1,
|
|
680
|
-
clickHandler:
|
|
752
|
+
clickHandler: m
|
|
681
753
|
}));
|
|
682
754
|
return [
|
|
683
755
|
{
|
|
@@ -698,7 +770,7 @@ const Mt = Symbol("menu registering injection key"), wt = {
|
|
|
698
770
|
var r, n, b, C, $;
|
|
699
771
|
($ = (C = (b = (n = (r = o.value) == null ? void 0 : r.children) == null ? void 0 : n[s.value]) == null ? void 0 : b.children) == null ? void 0 : C[0]) == null || $.focus();
|
|
700
772
|
};
|
|
701
|
-
|
|
773
|
+
ee(async () => {
|
|
702
774
|
setTimeout(() => c(), 150);
|
|
703
775
|
});
|
|
704
776
|
const a = () => {
|
|
@@ -715,22 +787,22 @@ const Mt = Symbol("menu registering injection key"), wt = {
|
|
|
715
787
|
ChevronLeftIcon: ue,
|
|
716
788
|
computedItems: f,
|
|
717
789
|
// Methods
|
|
718
|
-
closeMenu:
|
|
790
|
+
closeMenu: m,
|
|
719
791
|
onBackButton: l,
|
|
720
792
|
focusPrevious: a,
|
|
721
793
|
focusNext: i
|
|
722
794
|
};
|
|
723
795
|
}
|
|
724
796
|
});
|
|
725
|
-
function
|
|
797
|
+
function Pt(e, t, o, s, d, m) {
|
|
726
798
|
const l = T("menu-item"), f = T("bento-divider"), c = T("menu-list-container");
|
|
727
799
|
return u(), g(ve, {
|
|
728
800
|
name: "b-sub-menu-item-list__transition",
|
|
729
801
|
appear: ""
|
|
730
802
|
}, {
|
|
731
|
-
default:
|
|
803
|
+
default: y(() => [
|
|
732
804
|
E(c, { class: "b-sub-menu-item-list" }, {
|
|
733
|
-
default:
|
|
805
|
+
default: y(() => [
|
|
734
806
|
V("ul", {
|
|
735
807
|
ref: "subMenuItemListRefLocal",
|
|
736
808
|
role: "menu",
|
|
@@ -741,7 +813,7 @@ function At(e, t, o, s, d, p) {
|
|
|
741
813
|
t[2] || (t[2] = N(X((...a) => e.onBackButton && e.onBackButton(...a), ["stop"]), ["esc"]))
|
|
742
814
|
]
|
|
743
815
|
}, [
|
|
744
|
-
(u(!0), k(Z, null,
|
|
816
|
+
(u(!0), k(Z, null, x(e.computedItems, (a, i) => (u(), k("li", {
|
|
745
817
|
key: `sub-menu-item-list-item-${i}`,
|
|
746
818
|
role: "none"
|
|
747
819
|
}, [
|
|
@@ -760,7 +832,7 @@ function At(e, t, o, s, d, p) {
|
|
|
760
832
|
a.addDivider ? (u(), g(f, {
|
|
761
833
|
key: 0,
|
|
762
834
|
class: "b-sub-menu-item-list__divider"
|
|
763
|
-
})) :
|
|
835
|
+
})) : B("", !0)
|
|
764
836
|
]))), 128))
|
|
765
837
|
], 544)
|
|
766
838
|
]),
|
|
@@ -770,15 +842,15 @@ function At(e, t, o, s, d, p) {
|
|
|
770
842
|
_: 1
|
|
771
843
|
});
|
|
772
844
|
}
|
|
773
|
-
const
|
|
774
|
-
function
|
|
775
|
-
const
|
|
845
|
+
const Ft = /* @__PURE__ */ w(Dt, [["render", Pt], ["__scopeId", "data-v-56fb6d93"]]);
|
|
846
|
+
function Wt(e, t, o) {
|
|
847
|
+
const m = v(0), l = v(0), f = (a) => {
|
|
776
848
|
if (!a || !a.parentElement)
|
|
777
849
|
return;
|
|
778
850
|
const i = a.parentElement, r = a.cloneNode(!0);
|
|
779
851
|
r.style.position = "absolute", r.style.visibility = "hidden", i.appendChild(r), r.style.width = "max-content";
|
|
780
852
|
const n = r.offsetWidth, b = Math.max(150, Math.min(n, 350));
|
|
781
|
-
|
|
853
|
+
m.value = b, r.style.width = `${b}px`;
|
|
782
854
|
const C = r.offsetHeight;
|
|
783
855
|
l.value = C, i.removeChild(r), l.value = C;
|
|
784
856
|
};
|
|
@@ -789,15 +861,15 @@ function Pt(e, t, o) {
|
|
|
789
861
|
const n = (r = (i = e.value) == null ? void 0 : i[0]) == null ? void 0 : r.$el;
|
|
790
862
|
n && f(n);
|
|
791
863
|
} else
|
|
792
|
-
|
|
864
|
+
m.value = 0, l.value = 0;
|
|
793
865
|
}), { computedStyle: _(() => {
|
|
794
866
|
const a = { width: "max-content" };
|
|
795
|
-
return o.value && (l.value > 0 && (a.height = `${l.value}px`),
|
|
867
|
+
return o.value && (l.value > 0 && (a.height = `${l.value}px`), m.value > 0 && (a.width = `${m.value}px`)), a;
|
|
796
868
|
}) };
|
|
797
869
|
}
|
|
798
|
-
const
|
|
870
|
+
const Kt = M({
|
|
799
871
|
name: "menu-item-list",
|
|
800
|
-
components: { BentoDivider:
|
|
872
|
+
components: { BentoDivider: ge, MenuItem: ke, MenuListContainer: Oe, SubMenuItemList: Ft },
|
|
801
873
|
props: {
|
|
802
874
|
/**
|
|
803
875
|
* The data to be displayed in the list
|
|
@@ -830,28 +902,28 @@ const Ft = M({
|
|
|
830
902
|
},
|
|
831
903
|
emits: [W.CLOSE, "menu-item-click"],
|
|
832
904
|
setup(e, { emit: t, expose: o }) {
|
|
833
|
-
const s = v(null), d = v(null),
|
|
905
|
+
const s = v(null), d = v(null), m = v(null), l = v(null), f = v(!1), c = v(null), a = v(e.focusLastElement ? e.data.length - 1 : 0), i = v(0), r = v(e.data.length - 1), n = _(() => e.data.some((O) => O.icon)), b = _(() => e.indentItems || n.value ? e.data.map((O) => {
|
|
834
906
|
let S = !1;
|
|
835
|
-
return
|
|
836
|
-
...
|
|
907
|
+
return O.icon || (S = !0), {
|
|
908
|
+
...O,
|
|
837
909
|
indent: S
|
|
838
910
|
};
|
|
839
911
|
}) : e.data), C = async () => {
|
|
840
|
-
var
|
|
841
|
-
await te(), (I = (S = (
|
|
842
|
-
}, $ = () => t(W.CLOSE), R = (
|
|
843
|
-
if (
|
|
912
|
+
var O, S, I;
|
|
913
|
+
await te(), (I = (S = (O = d.value) == null ? void 0 : O.children[a.value]) == null ? void 0 : S.children[0]) == null || I.focus();
|
|
914
|
+
}, $ = () => t(W.CLOSE), R = (O, S) => {
|
|
915
|
+
if (O.items) {
|
|
844
916
|
c.value = S, f.value = !0;
|
|
845
917
|
return;
|
|
846
918
|
}
|
|
847
|
-
c.value = S, f.value = !1, !
|
|
919
|
+
c.value = S, f.value = !1, !O.skipClose && e.closeMenuOnItemSelect !== !1 && $(), t("menu-item-click");
|
|
848
920
|
}, P = () => {
|
|
849
921
|
a.value > 0 ? (a.value -= 1, b.value[a.value].disabled && P()) : a.value = r.value, C();
|
|
850
|
-
},
|
|
851
|
-
a.value < r.value ? (a.value += 1, b.value[a.value].disabled &&
|
|
852
|
-
}, F = (
|
|
922
|
+
}, h = () => {
|
|
923
|
+
a.value < r.value ? (a.value += 1, b.value[a.value].disabled && h()) : a.value = 0, C();
|
|
924
|
+
}, F = (O, S) => {
|
|
853
925
|
var I;
|
|
854
|
-
(I =
|
|
926
|
+
(I = O == null ? void 0 : O.items) != null && I.length && (c.value = S, f.value = !0);
|
|
855
927
|
}, J = () => {
|
|
856
928
|
c.value && f.value && (c.value = null, f.value = !1);
|
|
857
929
|
}, ne = () => {
|
|
@@ -860,11 +932,11 @@ const Ft = M({
|
|
|
860
932
|
o({
|
|
861
933
|
focusItem: C
|
|
862
934
|
});
|
|
863
|
-
const { computedStyle: oe } =
|
|
935
|
+
const { computedStyle: oe } = Wt(l, c, f);
|
|
864
936
|
return {
|
|
865
937
|
// Values
|
|
866
938
|
menuItemListRef: d,
|
|
867
|
-
menuItemListWrapperRef:
|
|
939
|
+
menuItemListWrapperRef: m,
|
|
868
940
|
subMenuItemListRef: l,
|
|
869
941
|
menuItemRef: s,
|
|
870
942
|
computedData: b,
|
|
@@ -877,20 +949,20 @@ const Ft = M({
|
|
|
877
949
|
menuItemClick: R,
|
|
878
950
|
closeMenu: $,
|
|
879
951
|
focusPrevious: P,
|
|
880
|
-
focusNext:
|
|
952
|
+
focusNext: h,
|
|
881
953
|
focusRight: F,
|
|
882
954
|
focusLeft: J,
|
|
883
955
|
onBackButton: ne
|
|
884
956
|
};
|
|
885
957
|
}
|
|
886
|
-
}),
|
|
887
|
-
function
|
|
958
|
+
}), Ut = ["onKeydown"];
|
|
959
|
+
function Vt(e, t, o, s, d, m) {
|
|
888
960
|
const l = T("menu-item"), f = T("bento-divider"), c = T("sub-menu-item-list"), a = T("menu-list-container");
|
|
889
961
|
return u(), g(a, {
|
|
890
962
|
ref: "menuItemListWrapperRef",
|
|
891
963
|
style: he(e.computedStyle)
|
|
892
964
|
}, {
|
|
893
|
-
default:
|
|
965
|
+
default: y(() => [
|
|
894
966
|
V("ul", {
|
|
895
967
|
ref: "menuItemListRef",
|
|
896
968
|
class: "b-menu-item-list",
|
|
@@ -902,7 +974,7 @@ function Kt(e, t, o, s, d, p) {
|
|
|
902
974
|
t[4] || (t[4] = N((...i) => e.closeMenu && e.closeMenu(...i), ["tab"]))
|
|
903
975
|
]
|
|
904
976
|
}, [
|
|
905
|
-
(u(!0), k(Z, null,
|
|
977
|
+
(u(!0), k(Z, null, x(e.computedData, (i, r) => {
|
|
906
978
|
var n, b, C, $;
|
|
907
979
|
return u(), k("li", {
|
|
908
980
|
key: `menu-item-${r}`,
|
|
@@ -932,7 +1004,7 @@ function Kt(e, t, o, s, d, p) {
|
|
|
932
1004
|
i.addDivider ? (u(), g(f, {
|
|
933
1005
|
key: 0,
|
|
934
1006
|
class: "b-menu-item-list__divider"
|
|
935
|
-
})) :
|
|
1007
|
+
})) : B("", !0),
|
|
936
1008
|
($ = i.items) != null && $.length && e.showSubMenu && e.visibleSubMenuIndex === r ? (u(), g(c, {
|
|
937
1009
|
key: 1,
|
|
938
1010
|
ref_for: !0,
|
|
@@ -941,19 +1013,19 @@ function Kt(e, t, o, s, d, p) {
|
|
|
941
1013
|
title: i.text,
|
|
942
1014
|
onBack: e.onBackButton,
|
|
943
1015
|
onClose: e.closeMenu
|
|
944
|
-
}, null, 8, ["items", "title", "onBack", "onClose"])) :
|
|
945
|
-
], 40,
|
|
1016
|
+
}, null, 8, ["items", "title", "onBack", "onClose"])) : B("", !0)
|
|
1017
|
+
], 40, Ut);
|
|
946
1018
|
}), 128))
|
|
947
1019
|
], 544)
|
|
948
1020
|
]),
|
|
949
1021
|
_: 1
|
|
950
1022
|
}, 8, ["style"]);
|
|
951
1023
|
}
|
|
952
|
-
const
|
|
1024
|
+
const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-6ea090eb"]]), jt = Symbol("menu inverse style injection key"), Ht = {
|
|
953
1025
|
i18n: { messages: le },
|
|
954
1026
|
name: "bento-menu"
|
|
955
|
-
},
|
|
956
|
-
...
|
|
1027
|
+
}, Yt = /* @__PURE__ */ M({
|
|
1028
|
+
...Ht,
|
|
957
1029
|
props: {
|
|
958
1030
|
button: { default: () => ({
|
|
959
1031
|
variant: "secondary"
|
|
@@ -971,8 +1043,8 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
971
1043
|
emits: ["menu-item-click", "click-outside"],
|
|
972
1044
|
setup(e, { expose: t, emit: o }) {
|
|
973
1045
|
var S;
|
|
974
|
-
const s = e, d = o,
|
|
975
|
-
|
|
1046
|
+
const s = e, d = o, m = Q(), l = ae(m), { t: f } = ye({ messages: le }), c = v(null), a = v(null), i = v(!1), r = v(!1), n = v(null), b = Ge("menu"), C = K(jt, v(!1));
|
|
1047
|
+
Te(Ae, C);
|
|
976
1048
|
const $ = _(() => ({
|
|
977
1049
|
"b-menu--inverse": C.value
|
|
978
1050
|
})), R = _(() => s.menuWidth ? { width: `${s.menuWidth}px` } : null), P = _(() => {
|
|
@@ -981,21 +1053,21 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
981
1053
|
variant: "secondary",
|
|
982
1054
|
...s.button
|
|
983
1055
|
};
|
|
984
|
-
}),
|
|
1056
|
+
}), h = () => {
|
|
985
1057
|
i.value = !0, d(W.OPEN);
|
|
986
1058
|
}, F = async (I = s.revertFocusToButton) => {
|
|
987
1059
|
var q, se;
|
|
988
1060
|
i.value && (i.value = !1, I && (await te(), (se = (q = c.value) == null ? void 0 : q.$el) == null || se.focus()), d(W.CLOSE));
|
|
989
1061
|
}, J = (I) => {
|
|
990
|
-
I.stopPropagation(), i.value ? F() :
|
|
1062
|
+
I.stopPropagation(), i.value ? F() : h();
|
|
991
1063
|
}, ne = (I) => {
|
|
992
|
-
I.preventDefault(), r.value = !1, s.disableArrowDownOpeningMenu ||
|
|
1064
|
+
I.preventDefault(), r.value = !1, s.disableArrowDownOpeningMenu || h();
|
|
993
1065
|
}, oe = (I) => {
|
|
994
|
-
I.preventDefault(), r.value = !0,
|
|
995
|
-
},
|
|
1066
|
+
I.preventDefault(), r.value = !0, h();
|
|
1067
|
+
}, O = () => {
|
|
996
1068
|
d("menu-item-click");
|
|
997
1069
|
};
|
|
998
|
-
return
|
|
1070
|
+
return rt(
|
|
999
1071
|
n,
|
|
1000
1072
|
() => {
|
|
1001
1073
|
F(), d("click-outside");
|
|
@@ -1009,8 +1081,8 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
1009
1081
|
* Control to enable programmatic closing of the menu
|
|
1010
1082
|
*/
|
|
1011
1083
|
closeMenu: F
|
|
1012
|
-
}),
|
|
1013
|
-
l("iconRight") &&
|
|
1084
|
+
}), ee(() => {
|
|
1085
|
+
l("iconRight") && Pe(
|
|
1014
1086
|
'"bento-menu" no longer supports the "iconRight" slot. The right-aligned icon is now fixed by design.'
|
|
1015
1087
|
);
|
|
1016
1088
|
}), (I, q) => (u(), k("div", {
|
|
@@ -1022,51 +1094,51 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
1022
1094
|
q[0] || (q[0] = N((se) => F(), ["esc"]))
|
|
1023
1095
|
]
|
|
1024
1096
|
}, [
|
|
1025
|
-
E(
|
|
1097
|
+
E(nt, Y({
|
|
1026
1098
|
ref_key: "menuButtonRef",
|
|
1027
1099
|
ref: c,
|
|
1028
1100
|
class: "b-menu__toggle-button",
|
|
1029
1101
|
"aria-haspopup": "true"
|
|
1030
1102
|
}, P.value, {
|
|
1031
|
-
"aria-controls": i.value ?
|
|
1103
|
+
"aria-controls": i.value ? p(b) : null,
|
|
1032
1104
|
toggled: i.value,
|
|
1033
|
-
inverse:
|
|
1105
|
+
inverse: p(C),
|
|
1034
1106
|
onClick: J
|
|
1035
1107
|
}), H({ _: 2 }, [
|
|
1036
|
-
!
|
|
1108
|
+
!p(l)("default") || p(l)("iconLeft") ? {
|
|
1037
1109
|
name: "iconLeft",
|
|
1038
|
-
fn:
|
|
1110
|
+
fn: y(() => [
|
|
1039
1111
|
D(I.$slots, "iconLeft", {}, () => [
|
|
1040
|
-
E(
|
|
1041
|
-
title:
|
|
1112
|
+
E(p(Tt), {
|
|
1113
|
+
title: p(f)("menuButton")
|
|
1042
1114
|
}, null, 8, ["title"])
|
|
1043
1115
|
], !0)
|
|
1044
1116
|
]),
|
|
1045
1117
|
key: "0"
|
|
1046
1118
|
} : void 0,
|
|
1047
|
-
|
|
1119
|
+
p(l)("default") ? {
|
|
1048
1120
|
name: "default",
|
|
1049
|
-
fn:
|
|
1121
|
+
fn: y(() => [
|
|
1050
1122
|
D(I.$slots, "default", {}, void 0, !0)
|
|
1051
1123
|
]),
|
|
1052
1124
|
key: "1"
|
|
1053
1125
|
} : void 0,
|
|
1054
|
-
|
|
1126
|
+
p(l)("default") ? {
|
|
1055
1127
|
name: "iconRight",
|
|
1056
|
-
fn:
|
|
1057
|
-
E(
|
|
1128
|
+
fn: y(() => [
|
|
1129
|
+
E(p(je))
|
|
1058
1130
|
]),
|
|
1059
1131
|
key: "2"
|
|
1060
1132
|
} : void 0
|
|
1061
1133
|
]), 1040, ["aria-controls", "toggled", "inverse"]),
|
|
1062
|
-
c.value ? (u(), g(
|
|
1134
|
+
c.value ? (u(), g(p($t), {
|
|
1063
1135
|
key: 0,
|
|
1064
1136
|
disabled: !I.teleport
|
|
1065
1137
|
}, {
|
|
1066
|
-
default:
|
|
1067
|
-
c.value ? (u(), g(
|
|
1138
|
+
default: y(() => [
|
|
1139
|
+
c.value ? (u(), g(_t, {
|
|
1068
1140
|
key: 0,
|
|
1069
|
-
id:
|
|
1141
|
+
id: p(b),
|
|
1070
1142
|
ref_key: "popoverRef",
|
|
1071
1143
|
ref: n,
|
|
1072
1144
|
role: null,
|
|
@@ -1089,38 +1161,40 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
1089
1161
|
teleport: I.teleport,
|
|
1090
1162
|
"without-space": ""
|
|
1091
1163
|
}, {
|
|
1092
|
-
default:
|
|
1093
|
-
E(
|
|
1164
|
+
default: y(() => [
|
|
1165
|
+
E(p(Gt), {
|
|
1094
1166
|
ref_key: "menuItemListRef",
|
|
1095
1167
|
ref: a,
|
|
1096
1168
|
"close-menu-on-item-select": I.closeMenuOnItemSelect,
|
|
1097
1169
|
data: I.data,
|
|
1098
1170
|
"focus-last-element": r.value,
|
|
1099
1171
|
onClose: F,
|
|
1100
|
-
onMenuItemClick:
|
|
1172
|
+
onMenuItemClick: O
|
|
1101
1173
|
}, null, 8, ["close-menu-on-item-select", "data", "focus-last-element"])
|
|
1102
1174
|
]),
|
|
1103
1175
|
_: 1
|
|
1104
|
-
}, 8, ["id", "open", "style", "target-element", "position", "fixed-positioning", "teleport"])) :
|
|
1176
|
+
}, 8, ["id", "open", "style", "target-element", "position", "fixed-positioning", "teleport"])) : B("", !0)
|
|
1105
1177
|
]),
|
|
1106
1178
|
_: 1
|
|
1107
|
-
}, 8, ["disabled"])) :
|
|
1179
|
+
}, 8, ["disabled"])) : B("", !0)
|
|
1108
1180
|
], 34));
|
|
1109
1181
|
}
|
|
1110
|
-
}),
|
|
1182
|
+
}), Jt = /* @__PURE__ */ w(Yt, [["__scopeId", "data-v-ee8b682c"]]), qt = Symbol(
|
|
1183
|
+
"button actions with menu container injection key"
|
|
1184
|
+
), Xt = 242, me = parseInt(Xe, 10), zt = (e, t, o) => {
|
|
1111
1185
|
const s = v(0);
|
|
1112
1186
|
let d = null;
|
|
1113
|
-
const { buttonActionsWithMenu:
|
|
1187
|
+
const { buttonActionsWithMenu: m, menu: l, stackButtons: f } = K(qt, {
|
|
1114
1188
|
buttonActionsWithMenu: v(null),
|
|
1115
1189
|
menu: v(null),
|
|
1116
1190
|
stackButtons: v(!1)
|
|
1117
|
-
}), c = _(() =>
|
|
1191
|
+
}), c = _(() => m.value ?? e.value), a = _(() => l.value ? [...t.value, l.value.$el] : t.value), i = (r) => {
|
|
1118
1192
|
var C;
|
|
1119
1193
|
const n = (C = a.value) == null ? void 0 : C.reduce(
|
|
1120
1194
|
($, R) => $ + R.clientWidth + me,
|
|
1121
1195
|
-me - 1
|
|
1122
1196
|
), b = c.value.clientWidth;
|
|
1123
|
-
return r && (s.value = b >=
|
|
1197
|
+
return r && (s.value = b >= Xt && !f.value ? n : 0), s.value > b;
|
|
1124
1198
|
};
|
|
1125
1199
|
return be(
|
|
1126
1200
|
() => o.value,
|
|
@@ -1130,15 +1204,15 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
1130
1204
|
});
|
|
1131
1205
|
},
|
|
1132
1206
|
{ deep: !0 }
|
|
1133
|
-
),
|
|
1134
|
-
d =
|
|
1207
|
+
), ee(() => {
|
|
1208
|
+
d = qe(c.value, () => {
|
|
1135
1209
|
f.value = i(s.value === 0);
|
|
1136
1210
|
});
|
|
1137
1211
|
}), pe(() => {
|
|
1138
1212
|
d == null || d.disconnect();
|
|
1139
1213
|
}), f;
|
|
1140
|
-
},
|
|
1141
|
-
...
|
|
1214
|
+
}, Zt = {}, Qt = /* @__PURE__ */ M({
|
|
1215
|
+
...Zt,
|
|
1142
1216
|
__name: "button-actions",
|
|
1143
1217
|
props: {
|
|
1144
1218
|
actions: {},
|
|
@@ -1146,7 +1220,7 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
1146
1220
|
layout: { default: "buttons-end" }
|
|
1147
1221
|
},
|
|
1148
1222
|
setup(e) {
|
|
1149
|
-
const t = e, o = v(null), s = v(null), d =
|
|
1223
|
+
const t = e, o = v(null), s = v(null), d = zt(o, s, Me(t, "actions")), m = _(() => t.actions.slice().reverse()), l = (i) => {
|
|
1150
1224
|
const r = t.actions.length - 1;
|
|
1151
1225
|
return i === r ? "primary" : "secondary";
|
|
1152
1226
|
}, f = _(() => ({
|
|
@@ -1164,14 +1238,14 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
1164
1238
|
class: U(["b-button-actions__container-wrapper", f.value]),
|
|
1165
1239
|
role: "group"
|
|
1166
1240
|
}, [
|
|
1167
|
-
(u(!0), k(Z, null,
|
|
1241
|
+
(u(!0), k(Z, null, x(m.value, (n, b) => (u(), k("div", {
|
|
1168
1242
|
key: b,
|
|
1169
1243
|
ref_for: !0,
|
|
1170
1244
|
ref_key: "buttons",
|
|
1171
1245
|
ref: s,
|
|
1172
1246
|
class: "b-button-actions__button-wrapper"
|
|
1173
1247
|
}, [
|
|
1174
|
-
n.data ? (u(), g(
|
|
1248
|
+
n.data ? (u(), g(Jt, {
|
|
1175
1249
|
key: 0,
|
|
1176
1250
|
ref_for: !0,
|
|
1177
1251
|
ref: n.elementRef,
|
|
@@ -1187,7 +1261,7 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
1187
1261
|
}, H({ _: 2 }, [
|
|
1188
1262
|
n.icon || n.iconLeft ? {
|
|
1189
1263
|
name: "iconLeft",
|
|
1190
|
-
fn:
|
|
1264
|
+
fn: y(() => [
|
|
1191
1265
|
(u(), g(z(n.icon || n.iconLeft), {
|
|
1192
1266
|
"svg-title": n.title
|
|
1193
1267
|
}, null, 8, ["svg-title"]))
|
|
@@ -1196,13 +1270,13 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
1196
1270
|
} : void 0,
|
|
1197
1271
|
a(n) ? void 0 : {
|
|
1198
1272
|
name: "default",
|
|
1199
|
-
fn:
|
|
1273
|
+
fn: y(() => [
|
|
1200
1274
|
j(G(n.title), 1)
|
|
1201
1275
|
]),
|
|
1202
1276
|
key: "1"
|
|
1203
1277
|
}
|
|
1204
1278
|
]), 1032, ["data", "close-menu-on-item-select", "close-on-click-outside-options", "disable-arrow-down-opening-menu", "menu-position", "menu-fixed-positioning", "menu-width", "revert-focus-to-button", "teleport"])) : (u(), k(Z, { key: 1 }, [
|
|
1205
|
-
n.state ? (u(), g(
|
|
1279
|
+
n.state ? (u(), g(xe, Y({
|
|
1206
1280
|
key: 0,
|
|
1207
1281
|
ref_for: !0,
|
|
1208
1282
|
ref: n.elementRef,
|
|
@@ -1213,7 +1287,7 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
1213
1287
|
state: n.state,
|
|
1214
1288
|
variant: n.variant || l(b)
|
|
1215
1289
|
}, ie(c(n))), {
|
|
1216
|
-
default:
|
|
1290
|
+
default: y(() => [
|
|
1217
1291
|
j(G(n.title), 1)
|
|
1218
1292
|
]),
|
|
1219
1293
|
_: 2
|
|
@@ -1230,7 +1304,7 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
1230
1304
|
}, ie(c(n))), H({ _: 2 }, [
|
|
1231
1305
|
n.icon || n.iconLeft ? {
|
|
1232
1306
|
name: "iconLeft",
|
|
1233
|
-
fn:
|
|
1307
|
+
fn: y(() => [
|
|
1234
1308
|
(u(), g(z(n.icon || n.iconLeft), {
|
|
1235
1309
|
"svg-title": n.title
|
|
1236
1310
|
}, null, 8, ["svg-title"]))
|
|
@@ -1239,14 +1313,14 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
1239
1313
|
} : void 0,
|
|
1240
1314
|
a(n) ? void 0 : {
|
|
1241
1315
|
name: "default",
|
|
1242
|
-
fn:
|
|
1316
|
+
fn: y(() => [
|
|
1243
1317
|
j(G(n.title), 1)
|
|
1244
1318
|
]),
|
|
1245
1319
|
key: "1"
|
|
1246
1320
|
},
|
|
1247
1321
|
n.iconRight ? {
|
|
1248
1322
|
name: "iconRight",
|
|
1249
|
-
fn:
|
|
1323
|
+
fn: y(() => [
|
|
1250
1324
|
(u(), g(z(n.iconRight), {
|
|
1251
1325
|
"svg-title": n.title
|
|
1252
1326
|
}, null, 8, ["svg-title"]))
|
|
@@ -1259,97 +1333,26 @@ const Ut = /* @__PURE__ */ w(Ft, [["render", Kt], ["__scopeId", "data-v-6ea090eb
|
|
|
1259
1333
|
], 2)
|
|
1260
1334
|
], 512));
|
|
1261
1335
|
}
|
|
1262
|
-
}),
|
|
1263
|
-
...zt,
|
|
1264
|
-
__name: "toggle-button",
|
|
1265
|
-
props: {
|
|
1266
|
-
/**
|
|
1267
|
-
* Reduces sizing of button
|
|
1268
|
-
*/
|
|
1269
|
-
condensed: {
|
|
1270
|
-
type: L.props.condensed.type,
|
|
1271
|
-
default: !1
|
|
1272
|
-
},
|
|
1273
|
-
/**
|
|
1274
|
-
* Disables button functonality
|
|
1275
|
-
*/
|
|
1276
|
-
disabled: {
|
|
1277
|
-
type: L.props.disabled.type,
|
|
1278
|
-
default: !1
|
|
1279
|
-
},
|
|
1280
|
-
/**
|
|
1281
|
-
* Sets color set to inverse
|
|
1282
|
-
*/
|
|
1283
|
-
inverse: {
|
|
1284
|
-
type: Boolean,
|
|
1285
|
-
default: !1
|
|
1286
|
-
},
|
|
1287
|
-
/**
|
|
1288
|
-
* Types of flavour of Button
|
|
1289
|
-
* @values primary, secondary, tertiary
|
|
1290
|
-
*/
|
|
1291
|
-
variant: {
|
|
1292
|
-
type: L.props.variant.type,
|
|
1293
|
-
default: "primary",
|
|
1294
|
-
validator: L.props.variant.validator
|
|
1295
|
-
},
|
|
1296
|
-
/**
|
|
1297
|
-
* The state of the button whether it is toggled or not.
|
|
1298
|
-
*/
|
|
1299
|
-
toggled: {
|
|
1300
|
-
type: Boolean,
|
|
1301
|
-
default: !1
|
|
1302
|
-
}
|
|
1303
|
-
},
|
|
1304
|
-
emits: ["click", "update:toggled"],
|
|
1305
|
-
setup(e, { emit: t }) {
|
|
1306
|
-
const o = e, s = t, d = _(
|
|
1307
|
-
() => o.variant === "tertiary" ? "tertiary-with-background" : o.variant
|
|
1308
|
-
), p = _(() => ({
|
|
1309
|
-
"b-toggle-button--condensed": o == null ? void 0 : o.condensed,
|
|
1310
|
-
[`b-toggle-button--${d.value}-toggled`]: o.toggled,
|
|
1311
|
-
"b-toggle-button--inverse": o.inverse
|
|
1312
|
-
})), l = (a) => {
|
|
1313
|
-
a.stopPropagation(), o != null && o.disabled || (s("click", a), s("update:toggled", !o.toggled));
|
|
1314
|
-
}, f = Q(), c = (a) => ({ key: a });
|
|
1315
|
-
return (a, i) => (u(), g(L, Y({ class: "b-toggle-button" }, a.$attrs, {
|
|
1316
|
-
"aria-expanded": `${e.toggled}`,
|
|
1317
|
-
"aria-pressed": `${e.toggled}`,
|
|
1318
|
-
condensed: e.condensed,
|
|
1319
|
-
class: p.value,
|
|
1320
|
-
disabled: e.disabled,
|
|
1321
|
-
inverse: e.inverse,
|
|
1322
|
-
variant: d.value,
|
|
1323
|
-
onClickCapture: X(l, ["stop"])
|
|
1324
|
-
}), H({ _: 2 }, [
|
|
1325
|
-
ee(m(f), (r, n) => ({
|
|
1326
|
-
name: n,
|
|
1327
|
-
fn: h(() => [
|
|
1328
|
-
D(a.$slots, n, Te(Me(c(n))), void 0, !0)
|
|
1329
|
-
])
|
|
1330
|
-
}))
|
|
1331
|
-
]), 1040, ["aria-expanded", "aria-pressed", "condensed", "class", "disabled", "inverse", "variant"]));
|
|
1332
|
-
}
|
|
1333
|
-
}), Qt = /* @__PURE__ */ w(Zt, [["__scopeId", "data-v-f1b10e5f"]]);
|
|
1336
|
+
}), xt = /* @__PURE__ */ w(Qt, [["__scopeId", "data-v-0355d0d7"]]);
|
|
1334
1337
|
export {
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1338
|
+
xt as B,
|
|
1339
|
+
Nt as D,
|
|
1340
|
+
ut as I,
|
|
1341
|
+
jt as M,
|
|
1342
|
+
Tt as O,
|
|
1343
|
+
ct as P,
|
|
1344
|
+
It as S,
|
|
1345
|
+
xe as a,
|
|
1343
1346
|
A as b,
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1347
|
+
nt as c,
|
|
1348
|
+
$t as d,
|
|
1349
|
+
qt as e,
|
|
1350
|
+
Jt as f,
|
|
1348
1351
|
W as g,
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1352
|
+
_t as h,
|
|
1353
|
+
kt as i,
|
|
1354
|
+
Ct as j,
|
|
1355
|
+
dt as k,
|
|
1356
|
+
rt as u
|
|
1354
1357
|
};
|
|
1355
|
-
//# sourceMappingURL=
|
|
1358
|
+
//# sourceMappingURL=button-actions.D1eBtYgZ.js.map
|