@adyen/bento-vue3 1.90.0 → 1.91.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 +2 -0
- package/dist/@types/index.d.ts +559 -419
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.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/form-layout-title.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/input-time.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.Pe_hvtja.js → action-bar.BPS3wPde.js} +3 -3
- package/dist/chunks/{action-bar.Pe_hvtja.js.map → action-bar.BPS3wPde.js.map} +1 -1
- package/dist/chunks/{ai-tag.BSlc78DU.js → ai-tag.D7shWB_x.js} +2 -2
- package/dist/chunks/{ai-tag.BSlc78DU.js.map → ai-tag.D7shWB_x.js.map} +1 -1
- package/dist/chunks/{base-modal.BjjDrx0z.js → base-modal.BxcS7Pao.js} +4 -4
- package/dist/chunks/{base-modal.BjjDrx0z.js.map → base-modal.BxcS7Pao.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DvkS16ur.js → button-actions-with-menu.BKdNXYgU.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.DvkS16ur.js.map → button-actions-with-menu.BKdNXYgU.js.map} +1 -1
- package/dist/chunks/{button-actions.Bh_PZ_fV.js → button-actions.DLiM8KZL.js} +2 -2
- package/dist/chunks/{button-actions.Bh_PZ_fV.js.map → button-actions.DLiM8KZL.js.map} +1 -1
- package/dist/chunks/{calendar.CH-1Vgeb.js → calendar.qm-kFNQv.js} +275 -257
- package/dist/chunks/calendar.qm-kFNQv.js.map +1 -0
- package/dist/chunks/{card.BzCGCCzH.js → card.BEChcEqg.js} +2 -2
- package/dist/chunks/{card.BzCGCCzH.js.map → card.BEChcEqg.js.map} +1 -1
- package/dist/chunks/{checkbox-group.D_fN6Glu.js → checkbox-group.i3W8WO-7.js} +4 -4
- package/dist/chunks/{checkbox-group.D_fN6Glu.js.map → checkbox-group.i3W8WO-7.js.map} +1 -1
- package/dist/chunks/{checkbox.BlAhQl9N.js → checkbox.BPrymcRl.js} +18 -18
- package/dist/chunks/{checkbox.BlAhQl9N.js.map → checkbox.BPrymcRl.js.map} +1 -1
- package/dist/chunks/{click-outside.BPylIosK.js → click-outside.B0whuTUU.js} +2 -2
- package/dist/chunks/{click-outside.BPylIosK.js.map → click-outside.B0whuTUU.js.map} +1 -1
- package/dist/chunks/{code-snippet.BePxxR3q.js → code-snippet.BG5ZmCrb.js} +3 -3
- package/dist/chunks/{code-snippet.BePxxR3q.js.map → code-snippet.BG5ZmCrb.js.map} +1 -1
- package/dist/chunks/{controls-group.Cxk-0fCy.js → controls-group.DqRpF9bh.js} +2 -2
- package/dist/chunks/{controls-group.Cxk-0fCy.js.map → controls-group.DqRpF9bh.js.map} +1 -1
- package/dist/chunks/{dashboard-section.CiNDItU2.js → dashboard-section.C7mfUXOl.js} +2 -2
- package/dist/chunks/{dashboard-section.CiNDItU2.js.map → dashboard-section.C7mfUXOl.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CwdpUz76.js → dashed-underline.B50DIXjK.js} +2 -2
- package/dist/chunks/{dashed-underline.CwdpUz76.js.map → dashed-underline.B50DIXjK.js.map} +1 -1
- package/dist/chunks/{data-grid-template.nXn1dLCw.js → data-grid-template.CKdZb6EN.js} +2 -2
- package/dist/chunks/{data-grid-template.nXn1dLCw.js.map → data-grid-template.CKdZb6EN.js.map} +1 -1
- package/dist/chunks/{data-grid.CXWaoqzi.js → data-grid.DvMe72LK.js} +411 -406
- package/dist/chunks/{data-grid.CXWaoqzi.js.map → data-grid.DvMe72LK.js.map} +1 -1
- package/dist/chunks/date-picker.CidHad1p.js +269 -0
- package/dist/chunks/date-picker.CidHad1p.js.map +1 -0
- package/dist/chunks/date-range-picker.c5OwESTS.js +1027 -0
- package/dist/chunks/date-range-picker.c5OwESTS.js.map +1 -0
- package/dist/chunks/{directive.Dpivxq_t.js → directive.C8kY-ZW-.js} +2 -2
- package/dist/chunks/{directive.Dpivxq_t.js.map → directive.C8kY-ZW-.js.map} +1 -1
- package/dist/{draggable-handle.js → chunks/draggable-handle.CySRx1tb.js} +56 -47
- package/dist/chunks/draggable-handle.CySRx1tb.js.map +1 -0
- package/dist/chunks/{dropdown-tag.B7OA_Yv9.js → dropdown-tag.wcJ6Mgqe.js} +2 -2
- package/dist/chunks/{dropdown-tag.B7OA_Yv9.js.map → dropdown-tag.wcJ6Mgqe.js.map} +1 -1
- package/dist/chunks/dropdown.DHoL50gV.js +1214 -0
- package/dist/chunks/dropdown.DHoL50gV.js.map +1 -0
- package/dist/chunks/error-message.Dyvrw6ZB.js +55 -0
- package/dist/chunks/error-message.Dyvrw6ZB.js.map +1 -0
- package/dist/chunks/field-label.DZYFjFgr.js +111 -0
- package/dist/chunks/field-label.DZYFjFgr.js.map +1 -0
- package/dist/chunks/{file-uploader.BUvDU_cn.js → file-uploader.Dbg3vfZ_.js} +5 -4
- package/dist/chunks/{file-uploader.BUvDU_cn.js.map → file-uploader.Dbg3vfZ_.js.map} +1 -1
- package/dist/chunks/{filter-bar.fowl40RS.js → filter-bar.Dt-cU3zy.js} +1473 -1455
- package/dist/chunks/filter-bar.Dt-cU3zy.js.map +1 -0
- package/dist/chunks/{footer-actions.uoNbOGAQ.js → footer-actions.CYBdKDPo.js} +2 -2
- package/dist/chunks/{footer-actions.uoNbOGAQ.js.map → footer-actions.CYBdKDPo.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Cr3wdpK_.js → form-layout-title.B3ePK3yi.js} +78 -64
- package/dist/chunks/form-layout-title.B3ePK3yi.js.map +1 -0
- package/dist/chunks/{header-meta.CmH6SnjE.js → header-meta.COak4D8-.js} +2 -2
- package/dist/chunks/{header-meta.CmH6SnjE.js.map → header-meta.COak4D8-.js.map} +1 -1
- package/dist/chunks/{header-with-views.B2pPBcTf.js → header-with-views.DqioajcO.js} +10 -10
- package/dist/chunks/{header-with-views.B2pPBcTf.js.map → header-with-views.DqioajcO.js.map} +1 -1
- package/dist/chunks/{header.BVM8Usdi.js → header.C21yzWrk.js} +3 -3
- package/dist/chunks/{header.BVM8Usdi.js.map → header.C21yzWrk.js.map} +1 -1
- package/dist/chunks/{input-field-password.CHb2Ros_.js → input-field-password.DyUphhxB.js} +4 -4
- package/dist/chunks/{input-field-password.CHb2Ros_.js.map → input-field-password.DyUphhxB.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.DM2rmZkQ.js → input-field-phone-number.BXVaC5ra.js} +3 -3
- package/dist/chunks/{input-field-phone-number.DM2rmZkQ.js.map → input-field-phone-number.BXVaC5ra.js.map} +1 -1
- package/dist/chunks/{input-field.DnYjM6yy.js → input-field.DkUFvIWt.js} +113 -109
- package/dist/chunks/input-field.DkUFvIWt.js.map +1 -0
- package/dist/chunks/input-time.WI_qdwJc.js +122 -0
- package/dist/chunks/input-time.WI_qdwJc.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.9CSTqFQc.js → modal-fullscreen.c6QphYQo.js} +2 -2
- package/dist/chunks/{modal-fullscreen.9CSTqFQc.js.map → modal-fullscreen.c6QphYQo.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js.map} +1 -1
- package/dist/chunks/on-click-outside.BgIzQ2G1.js +108 -0
- package/dist/chunks/on-click-outside.BgIzQ2G1.js.map +1 -0
- package/dist/chunks/{pagination.DL-h8OLF.js → pagination.Cu85Lqms.js} +100 -100
- package/dist/chunks/{pagination.DL-h8OLF.js.map → pagination.Cu85Lqms.js.map} +1 -1
- package/dist/chunks/{radio-group.DzhQgXv9.js → radio-group.CfMr1fmW.js} +3 -3
- package/dist/chunks/{radio-group.DzhQgXv9.js.map → radio-group.CfMr1fmW.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.Ij2t4pyI.js → rich-text-editor.Bf9EWzNk.js} +6 -5
- package/dist/chunks/{rich-text-editor.Ij2t4pyI.js.map → rich-text-editor.Bf9EWzNk.js.map} +1 -1
- package/dist/chunks/{search-bar.DfNwnjes.js → search-bar.p6kHCCvT.js} +4 -4
- package/dist/chunks/{search-bar.DfNwnjes.js.map → search-bar.p6kHCCvT.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CvipTDRh.js → secondary-nav.CaxiyVaO.js} +2 -2
- package/dist/chunks/{secondary-nav.CvipTDRh.js.map → secondary-nav.CaxiyVaO.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CcOWQAUC.js → selection-card-group.58XZj_SJ.js} +11 -11
- package/dist/chunks/{selection-card-group.CcOWQAUC.js.map → selection-card-group.58XZj_SJ.js.map} +1 -1
- package/dist/chunks/{sidepanel.BObSv8UU.js → sidepanel.CAVhSs-O.js} +4 -4
- package/dist/chunks/{sidepanel.BObSv8UU.js.map → sidepanel.CAVhSs-O.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.DKPhtHw3.js → summary-grid.types.CDithi8M.js} +2 -2
- package/dist/chunks/{summary-grid.types.DKPhtHw3.js.map → summary-grid.types.CDithi8M.js.map} +1 -1
- package/dist/chunks/{textarea.C-sBemuo.js → textarea.JGXAlpx9.js} +19 -18
- package/dist/chunks/{textarea.C-sBemuo.js.map → textarea.JGXAlpx9.js.map} +1 -1
- package/dist/chunks/{timeline-item.CHk8wXeT.js → timeline-item.BNFPpQz1.js} +4 -4
- package/dist/chunks/{timeline-item.CHk8wXeT.js.map → timeline-item.BNFPpQz1.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js} +2 -2
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DIbfa5F1.js → use-cached-selected-values.Bx8uuky9.js} +170 -165
- package/dist/chunks/use-cached-selected-values.Bx8uuky9.js.map +1 -0
- package/dist/chunks/{use-date-input-formatter.BiIraXZZ.js → use-date-input-formatter.BOuXpRb-.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.BiIraXZZ.js.map → use-date-input-formatter.BOuXpRb-.js.map} +1 -1
- package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
- package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
- package/dist/click-outside.js +1 -1
- 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/draggable.js +1383 -0
- package/dist/draggable.js.map +1 -0
- package/dist/dropdown.js +10 -11
- package/dist/dropdown.js.map +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +277 -274
- package/dist/index.js.map +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/input-time.js +1 -1
- package/dist/internal.js +24 -23
- package/dist/internal.js.map +1 -1
- 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 +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/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/summary-grid.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 +7 -10
- package/dist/assets/dropdown-default-textbox.css +0 -1
- package/dist/chunks/calendar.CH-1Vgeb.js.map +0 -1
- package/dist/chunks/date-picker.DPjCROIP.js +0 -238
- package/dist/chunks/date-picker.DPjCROIP.js.map +0 -1
- package/dist/chunks/date-range-picker.fyrfFd04.js +0 -998
- package/dist/chunks/date-range-picker.fyrfFd04.js.map +0 -1
- package/dist/chunks/debounce.DUTu11PS.js +0 -10
- package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.aYsTZDZ7.js +0 -415
- package/dist/chunks/dropdown-default-textbox.aYsTZDZ7.js.map +0 -1
- package/dist/chunks/dropdown.Do-mZiI6.js +0 -813
- package/dist/chunks/dropdown.Do-mZiI6.js.map +0 -1
- package/dist/chunks/error-message.849uzpkq.js +0 -157
- package/dist/chunks/error-message.849uzpkq.js.map +0 -1
- package/dist/chunks/filter-bar.fowl40RS.js.map +0 -1
- package/dist/chunks/form-layout-title.Cr3wdpK_.js.map +0 -1
- package/dist/chunks/input-field.DnYjM6yy.js.map +0 -1
- package/dist/chunks/input-time.DeJ8lDio.js +0 -103
- package/dist/chunks/input-time.DeJ8lDio.js.map +0 -1
- package/dist/chunks/on-click-outside.ZUMLlxE_.js +0 -90
- package/dist/chunks/on-click-outside.ZUMLlxE_.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.DIbfa5F1.js.map +0 -1
- package/dist/draggable-handle.js.map +0 -1
|
@@ -3,33 +3,32 @@ import { B as F, a as he } from "./keyboard-navigation.DWmhelVv.js";
|
|
|
3
3
|
import { B as ie } from "./typography.B3J6_tYk.js";
|
|
4
4
|
import { B as gt } from "./loading-indicator.BPol9I84.js";
|
|
5
5
|
import { B as vt } from "./empty-state.DT4sFyjB.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { C as Se, N as St } from "./minus-small.CnYLTuSv.js";
|
|
10
|
-
import { C as ht } from "./checkmark-small.CRuZauJc.js";
|
|
6
|
+
import { u as _e } from "./index.B875RXHM.js";
|
|
7
|
+
import { C as Se, N as ft } from "./minus-small.CnYLTuSv.js";
|
|
8
|
+
import { C as yt } from "./checkmark-small.CRuZauJc.js";
|
|
11
9
|
/* empty css */
|
|
12
10
|
import { _ as H } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
13
|
-
import { B as
|
|
14
|
-
import { C as
|
|
15
|
-
import { C as
|
|
11
|
+
import { B as St } from "./chip.DFldnqfz.js";
|
|
12
|
+
import { C as ht } from "./chevron-down.XeE-LBV_.js";
|
|
13
|
+
import { C as Ct } from "./chevron-up.Cmgl2a3x.js";
|
|
16
14
|
import { g as Me } from "./generate-uid.DBWe4g6T.js";
|
|
17
|
-
import { a as
|
|
15
|
+
import { a as Et, b as Pe } from "./button-actions.DLiM8KZL.js";
|
|
16
|
+
import { o as Ot } from "./resize.Bqks3WUm.js";
|
|
18
17
|
import "../assets/use-cached-selected-values.css";
|
|
19
18
|
const Fe = (e, t, o, s) => {
|
|
20
|
-
const
|
|
19
|
+
const i = b(
|
|
21
20
|
() => !!e.value?.length && e.value?.length === t.value.length
|
|
22
|
-
),
|
|
21
|
+
), r = b(() => e.value == null || e.value.length === 0 ? !1 : e.value?.length !== t.value.length);
|
|
23
22
|
return {
|
|
24
|
-
isAllSelected:
|
|
25
|
-
isIndeterminate:
|
|
23
|
+
isAllSelected: i,
|
|
24
|
+
isIndeterminate: r,
|
|
26
25
|
toggleSelectAll: (f) => {
|
|
27
26
|
f ? o() : s();
|
|
28
27
|
}
|
|
29
28
|
};
|
|
30
29
|
};
|
|
31
|
-
function
|
|
32
|
-
const
|
|
30
|
+
function Tt(e, { disabled: t, itemHeight: o, overscan: s = 5, prefixHeight: i }) {
|
|
31
|
+
const r = I(null), a = I([]), f = I(0), S = I(0), n = I(0);
|
|
33
32
|
let u;
|
|
34
33
|
const l = b(() => {
|
|
35
34
|
const k = typeof o == "number" ? e.value.length * o : e.value.reduce((T, O, D) => T + o(D), 0), $ = typeof o == "number" ? f.value * o : e.value.slice(0, f.value).reduce((T, O, D) => T + o(D), 0);
|
|
@@ -40,7 +39,7 @@ function Lt(e, { disabled: t, itemHeight: o, overscan: s = 5, prefixHeight: r })
|
|
|
40
39
|
}
|
|
41
40
|
};
|
|
42
41
|
}), m = () => {
|
|
43
|
-
const k =
|
|
42
|
+
const k = i?.value ?? 0, $ = Math.max(r.value.scrollTop - k, 0);
|
|
44
43
|
if (typeof o == "number")
|
|
45
44
|
return Math.floor($ / o);
|
|
46
45
|
let T = 0, O = 0;
|
|
@@ -53,7 +52,7 @@ function Lt(e, { disabled: t, itemHeight: o, overscan: s = 5, prefixHeight: r })
|
|
|
53
52
|
}
|
|
54
53
|
return O;
|
|
55
54
|
}, C = () => {
|
|
56
|
-
if (n.value =
|
|
55
|
+
if (n.value = r.value.clientHeight, typeof o == "number")
|
|
57
56
|
return Math.ceil(n.value / o);
|
|
58
57
|
const k = f.value ?? 0;
|
|
59
58
|
let $ = 0, T = 0;
|
|
@@ -64,7 +63,7 @@ function Lt(e, { disabled: t, itemHeight: o, overscan: s = 5, prefixHeight: r })
|
|
|
64
63
|
}
|
|
65
64
|
return T - k;
|
|
66
65
|
}, h = () => {
|
|
67
|
-
if (
|
|
66
|
+
if (r.value) {
|
|
68
67
|
const k = C();
|
|
69
68
|
f.value = m(), S.value = Math.min(f.value + k + s, e.value.length), a.value = e.value.slice(f.value, S.value);
|
|
70
69
|
}
|
|
@@ -72,7 +71,7 @@ function Lt(e, { disabled: t, itemHeight: o, overscan: s = 5, prefixHeight: r })
|
|
|
72
71
|
h();
|
|
73
72
|
};
|
|
74
73
|
t || (ut(() => {
|
|
75
|
-
|
|
74
|
+
r.value && (n.value = r.value.clientHeight, u = Ot(r.value, ({ clientHeight: k }) => {
|
|
76
75
|
n.value = k, h();
|
|
77
76
|
}), h());
|
|
78
77
|
}), bt(() => {
|
|
@@ -84,18 +83,18 @@ function Lt(e, { disabled: t, itemHeight: o, overscan: s = 5, prefixHeight: r })
|
|
|
84
83
|
}
|
|
85
84
|
));
|
|
86
85
|
const x = {
|
|
87
|
-
ref:
|
|
86
|
+
ref: r,
|
|
88
87
|
style: { overflowY: "auto" }
|
|
89
88
|
};
|
|
90
89
|
return t ? {
|
|
91
|
-
containerRef:
|
|
90
|
+
containerRef: r,
|
|
92
91
|
containerProps: x,
|
|
93
92
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
94
93
|
onScroll: () => {
|
|
95
94
|
},
|
|
96
95
|
list: e
|
|
97
96
|
} : {
|
|
98
|
-
containerRef:
|
|
97
|
+
containerRef: r,
|
|
99
98
|
containerProps: x,
|
|
100
99
|
onScroll: R,
|
|
101
100
|
list: a,
|
|
@@ -103,7 +102,7 @@ function Lt(e, { disabled: t, itemHeight: o, overscan: s = 5, prefixHeight: r })
|
|
|
103
102
|
};
|
|
104
103
|
}
|
|
105
104
|
var p = /* @__PURE__ */ ((e) => (e.SELECT = "select", e.SHOW_MORE = "show-more", e.ESCAPE = "escape-pressed", e.CLICK = "click", e.ENTER = "enter-pressed", e.SPACE = "space-pressed", e.TAB = "tab-pressed", e.CLOSE_DROPDOWN = "close-dropdown", e))(p || {}), le = /* @__PURE__ */ ((e) => (e.AUTOMATIC = "automatic", e.BUTTON = "button", e.NONE = "none", e))(le || {});
|
|
106
|
-
const
|
|
105
|
+
const Lt = J({
|
|
107
106
|
name: "bento-listbox-static-category",
|
|
108
107
|
components: {
|
|
109
108
|
BentoTypography: ie
|
|
@@ -117,8 +116,8 @@ const It = J({
|
|
|
117
116
|
required: !0
|
|
118
117
|
}
|
|
119
118
|
}
|
|
120
|
-
}),
|
|
121
|
-
function
|
|
119
|
+
}), It = ["aria-label"];
|
|
120
|
+
function _t(e, t, o, s, i, r) {
|
|
122
121
|
const a = _("bento-typography");
|
|
123
122
|
return d(), y("div", {
|
|
124
123
|
class: "b-listbox-single-select-category",
|
|
@@ -139,9 +138,9 @@ function At(e, t, o, s, r, i) {
|
|
|
139
138
|
G("div", null, [
|
|
140
139
|
W(e.$slots, "default", {}, void 0, !0)
|
|
141
140
|
])
|
|
142
|
-
], 8,
|
|
141
|
+
], 8, It);
|
|
143
142
|
}
|
|
144
|
-
const
|
|
143
|
+
const At = /* @__PURE__ */ H(Lt, [["render", _t], ["__scopeId", "data-v-27c4e09a"]]), kt = J({
|
|
145
144
|
name: "bento-listbox-option",
|
|
146
145
|
props: {
|
|
147
146
|
/**
|
|
@@ -166,16 +165,16 @@ const kt = /* @__PURE__ */ H(It, [["render", At], ["__scopeId", "data-v-27c4e09a
|
|
|
166
165
|
// Values
|
|
167
166
|
conditionalClasses: o,
|
|
168
167
|
// Events
|
|
169
|
-
onClick: (
|
|
170
|
-
t(p.CLICK,
|
|
168
|
+
onClick: (r) => {
|
|
169
|
+
t(p.CLICK, r);
|
|
171
170
|
},
|
|
172
|
-
onOptionSelected: (
|
|
173
|
-
t(
|
|
171
|
+
onOptionSelected: (r, a) => {
|
|
172
|
+
t(r, a);
|
|
174
173
|
}
|
|
175
174
|
};
|
|
176
175
|
}
|
|
177
176
|
});
|
|
178
|
-
function
|
|
177
|
+
function $t(e, t, o, s, i, r) {
|
|
179
178
|
return d(), y("div", w({
|
|
180
179
|
class: ["b-listbox-option", e.conditionalClasses],
|
|
181
180
|
role: "option"
|
|
@@ -190,14 +189,14 @@ function Dt(e, t, o, s, r, i) {
|
|
|
190
189
|
W(e.$slots, "default", {}, void 0, !0)
|
|
191
190
|
], 16);
|
|
192
191
|
}
|
|
193
|
-
const Ce = /* @__PURE__ */ H(
|
|
192
|
+
const Ce = /* @__PURE__ */ H(kt, [["render", $t], ["__scopeId", "data-v-1495b1db"]]);
|
|
194
193
|
let Ne = 0;
|
|
195
|
-
const
|
|
194
|
+
const Dt = {
|
|
196
195
|
beforeCreate() {
|
|
197
196
|
this.uuid = Ne.toString(), Ne += 1;
|
|
198
197
|
}
|
|
199
|
-
},
|
|
200
|
-
function
|
|
198
|
+
}, Bt = { key: 0 };
|
|
199
|
+
function Rt(e, t, o, s, i, r) {
|
|
201
200
|
return d(), y("svg", w({ role: "img" }, e.$attrs, {
|
|
202
201
|
class: "ui-assets-icons-16",
|
|
203
202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -205,19 +204,19 @@ function Mt(e, t, o, s, r, i) {
|
|
|
205
204
|
height: "16",
|
|
206
205
|
fill: "none"
|
|
207
206
|
}), [
|
|
208
|
-
e.$attrs["svg-title"] ? (d(), y("title",
|
|
207
|
+
e.$attrs["svg-title"] ? (d(), y("title", Bt, V(e.$attrs["svg-title"]), 1)) : q("", !0),
|
|
209
208
|
t[0] || (t[0] = G("path", {
|
|
210
209
|
fill: "#001222",
|
|
211
210
|
d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z"
|
|
212
211
|
}, null, -1))
|
|
213
212
|
], 16);
|
|
214
213
|
}
|
|
215
|
-
const
|
|
214
|
+
const Mt = /* @__PURE__ */ H(Dt, [["render", Rt]]), Pt = J({
|
|
216
215
|
name: "bento-listbox-single-select-option",
|
|
217
216
|
components: {
|
|
218
217
|
BentoListboxOption: Ce,
|
|
219
218
|
BentoTypography: ie,
|
|
220
|
-
CheckmarkIcon:
|
|
219
|
+
CheckmarkIcon: Mt
|
|
221
220
|
},
|
|
222
221
|
props: {
|
|
223
222
|
/**
|
|
@@ -241,20 +240,20 @@ const Pt = /* @__PURE__ */ H(Bt, [["render", Mt]]), Nt = J({
|
|
|
241
240
|
setup(e, { emit: t }) {
|
|
242
241
|
const o = (a) => {
|
|
243
242
|
e.disabled || t(a, e.option);
|
|
244
|
-
}, s = b(() => e.disabled ? !0 : null),
|
|
243
|
+
}, s = b(() => e.disabled ? !0 : null), i = b(() => e.selected ? !0 : null), r = b(() => e.disabled ? -1 : 0);
|
|
245
244
|
return {
|
|
246
245
|
// Values
|
|
247
246
|
ariaDisabled: s,
|
|
248
|
-
ariaSelected:
|
|
249
|
-
tabIndex:
|
|
247
|
+
ariaSelected: i,
|
|
248
|
+
tabIndex: r,
|
|
250
249
|
// Enums
|
|
251
250
|
BentoListboxEvent: p,
|
|
252
251
|
// Events
|
|
253
252
|
onOptionSelected: o
|
|
254
253
|
};
|
|
255
254
|
}
|
|
256
|
-
}),
|
|
257
|
-
function
|
|
255
|
+
}), Nt = { class: "b-listbox-single-select-option__text" }, wt = { class: "b-listbox-single-select-option__check-icon" };
|
|
256
|
+
function Gt(e, t, o, s, i, r) {
|
|
258
257
|
const a = _("bento-typography"), f = _("checkmark-icon"), S = _("bento-listbox-option");
|
|
259
258
|
return d(), A(S, {
|
|
260
259
|
class: "b-listbox-single-select-option",
|
|
@@ -270,7 +269,7 @@ function xt(e, t, o, s, r, i) {
|
|
|
270
269
|
}, {
|
|
271
270
|
default: L(() => [
|
|
272
271
|
W(e.$slots, "default", oe(me(e.option)), () => [
|
|
273
|
-
G("span",
|
|
272
|
+
G("span", Nt, [
|
|
274
273
|
N(a, { el: "span" }, {
|
|
275
274
|
default: L(() => [
|
|
276
275
|
K(V(e.option.label), 1)
|
|
@@ -289,7 +288,7 @@ function xt(e, t, o, s, r, i) {
|
|
|
289
288
|
})) : q("", !0)
|
|
290
289
|
])
|
|
291
290
|
], !0),
|
|
292
|
-
G("span",
|
|
291
|
+
G("span", wt, [
|
|
293
292
|
ne(N(f, { "svg-title": "selected" }, null, 512), [
|
|
294
293
|
[ze, e.selected]
|
|
295
294
|
])
|
|
@@ -298,8 +297,8 @@ function xt(e, t, o, s, r, i) {
|
|
|
298
297
|
_: 3
|
|
299
298
|
}, 8, ["disabled", "selected", "aria-selected", "aria-disabled", "tabindex"]);
|
|
300
299
|
}
|
|
301
|
-
const
|
|
302
|
-
const o = b(() => e.value.length - 1), s = I(0),
|
|
300
|
+
const xt = /* @__PURE__ */ H(Pt, [["render", Gt], ["__scopeId", "data-v-4f41af07"]]), Ke = ({ items: e }, t) => {
|
|
301
|
+
const o = b(() => e.value.length - 1), s = I(0), i = (m) => {
|
|
303
302
|
switch (m) {
|
|
304
303
|
case "increase":
|
|
305
304
|
s.value += 1;
|
|
@@ -308,10 +307,10 @@ const Vt = /* @__PURE__ */ H(Nt, [["render", xt], ["__scopeId", "data-v-4f41af07
|
|
|
308
307
|
s.value -= 1;
|
|
309
308
|
break;
|
|
310
309
|
}
|
|
311
|
-
},
|
|
312
|
-
s.value !== m && (
|
|
310
|
+
}, r = ({ edgeCaseItem: m }, C) => {
|
|
311
|
+
s.value !== m && (i(C), t(s.value));
|
|
313
312
|
}, a = (m) => {
|
|
314
|
-
l(m),
|
|
313
|
+
l(m), r(
|
|
315
314
|
{
|
|
316
315
|
edgeCaseItem: o.value
|
|
317
316
|
},
|
|
@@ -319,7 +318,7 @@ const Vt = /* @__PURE__ */ H(Nt, [["render", xt], ["__scopeId", "data-v-4f41af07
|
|
|
319
318
|
/* INCREASE */
|
|
320
319
|
);
|
|
321
320
|
}, f = (m) => {
|
|
322
|
-
l(m),
|
|
321
|
+
l(m), r(
|
|
323
322
|
{
|
|
324
323
|
edgeCaseItem: 0
|
|
325
324
|
},
|
|
@@ -345,29 +344,29 @@ const Vt = /* @__PURE__ */ H(Nt, [["render", xt], ["__scopeId", "data-v-4f41af07
|
|
|
345
344
|
focusedIndex: s
|
|
346
345
|
};
|
|
347
346
|
}, We = (e, t, o = I("option"), s = !0) => {
|
|
348
|
-
const
|
|
347
|
+
const i = I([]), r = async () => {
|
|
349
348
|
if (!e.value || e.value.nodeType === Node.COMMENT_NODE)
|
|
350
349
|
return;
|
|
351
350
|
const a = Array.from(e.value.querySelectorAll(`[role="${o.value}"]`));
|
|
352
|
-
|
|
351
|
+
i.value = s ? a.filter((f) => f.checkVisibility()) : a;
|
|
353
352
|
};
|
|
354
353
|
return fe(
|
|
355
354
|
t,
|
|
356
355
|
() => {
|
|
357
356
|
Ye(() => {
|
|
358
|
-
|
|
357
|
+
r();
|
|
359
358
|
});
|
|
360
359
|
},
|
|
361
360
|
{ immediate: !0 }
|
|
362
361
|
), {
|
|
363
|
-
visibleDomOptions:
|
|
364
|
-
updateVisibleDomOptions:
|
|
362
|
+
visibleDomOptions: i,
|
|
363
|
+
updateVisibleDomOptions: r
|
|
365
364
|
};
|
|
366
|
-
},
|
|
365
|
+
}, Vt = J({
|
|
367
366
|
name: "bento-listbox-single-select",
|
|
368
367
|
components: {
|
|
369
|
-
BentoListboxSingleSelectCategory:
|
|
370
|
-
BentoListboxSingleSelectOption:
|
|
368
|
+
BentoListboxSingleSelectCategory: At,
|
|
369
|
+
BentoListboxSingleSelectOption: xt
|
|
371
370
|
},
|
|
372
371
|
directives: { BentoKeyboardNavigationDirective: he },
|
|
373
372
|
inheritAttrs: !1,
|
|
@@ -411,17 +410,17 @@ const Vt = /* @__PURE__ */ H(Nt, [["render", xt], ["__scopeId", "data-v-4f41af07
|
|
|
411
410
|
staticCategories: { type: Boolean, default: !1 }
|
|
412
411
|
},
|
|
413
412
|
emits: [p.SELECT, p.ENTER, p.SPACE, p.TAB],
|
|
414
|
-
setup(e, { emit: t, expose: o, slots: s, attrs:
|
|
415
|
-
const
|
|
413
|
+
setup(e, { emit: t, expose: o, slots: s, attrs: i }) {
|
|
414
|
+
const r = I(null), a = I([]), f = b(() => !!e.selectedValue?.length && e.selectedValue.at(0)), S = b(
|
|
416
415
|
() => ({
|
|
417
|
-
"aria-label":
|
|
418
|
-
"aria-busy":
|
|
419
|
-
"aria-atomic":
|
|
420
|
-
"aria-live":
|
|
416
|
+
"aria-label": i["aria-label"]?.toString(),
|
|
417
|
+
"aria-busy": i["aria-busy"]?.toString(),
|
|
418
|
+
"aria-atomic": i["aria-atomic"]?.toString(),
|
|
419
|
+
"aria-live": i["aria-live"]?.toString()
|
|
421
420
|
})
|
|
422
421
|
), n = b(() => !!e.items.some(({ items: O }) => !!O)), u = (O) => (D) => {
|
|
423
422
|
t(O, [D]);
|
|
424
|
-
}, { visibleDomOptions: l } = We(
|
|
423
|
+
}, { visibleDomOptions: l } = We(r, pe(e, "items"), I("option"), !1), m = (O) => {
|
|
425
424
|
l.value[O]?.focus();
|
|
426
425
|
}, {
|
|
427
426
|
moveToNextElement: C,
|
|
@@ -460,7 +459,7 @@ const Vt = /* @__PURE__ */ H(Nt, [["render", xt], ["__scopeId", "data-v-4f41af07
|
|
|
460
459
|
// Enums
|
|
461
460
|
BentoListboxEvent: p,
|
|
462
461
|
// Values
|
|
463
|
-
listboxRef:
|
|
462
|
+
listboxRef: r,
|
|
464
463
|
listboxItemRef: a,
|
|
465
464
|
selectedItem: f,
|
|
466
465
|
slots: s,
|
|
@@ -475,7 +474,7 @@ const Vt = /* @__PURE__ */ H(Nt, [["render", xt], ["__scopeId", "data-v-4f41af07
|
|
|
475
474
|
};
|
|
476
475
|
}
|
|
477
476
|
});
|
|
478
|
-
function
|
|
477
|
+
function zt(e, t, o, s, i, r) {
|
|
479
478
|
const a = _("bento-listbox-single-select-option"), f = _("bento-listbox-single-select-category"), S = Ue("bento-keyboard-navigation-directive");
|
|
480
479
|
return ne((d(), y("div", w({ ref: "listboxRef" }, e.ariaAttributes, { role: "listbox" }, ee(e.listboxListeners, !0)), [
|
|
481
480
|
e.hasCategories && e.staticCategories ? (d(!0), y(te, { key: 0 }, j(e.items, (n) => (d(), A(f, {
|
|
@@ -521,14 +520,14 @@ function Yt(e, t, o, s, r, i) {
|
|
|
521
520
|
[S]
|
|
522
521
|
]);
|
|
523
522
|
}
|
|
524
|
-
const
|
|
523
|
+
const Yt = /* @__PURE__ */ H(Vt, [["render", zt]]);
|
|
525
524
|
let we = 0;
|
|
526
|
-
const
|
|
525
|
+
const Ut = {
|
|
527
526
|
beforeCreate() {
|
|
528
527
|
this.uuid = we.toString(), we += 1;
|
|
529
528
|
}
|
|
530
|
-
},
|
|
531
|
-
function
|
|
529
|
+
}, Ft = { key: 0 };
|
|
530
|
+
function Kt(e, t, o, s, i, r) {
|
|
532
531
|
return d(), y("svg", w({ role: "img" }, e.$attrs, {
|
|
533
532
|
class: "ui-assets-icons-16",
|
|
534
533
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -536,7 +535,7 @@ function Wt(e, t, o, s, r, i) {
|
|
|
536
535
|
height: "16",
|
|
537
536
|
fill: "none"
|
|
538
537
|
}), [
|
|
539
|
-
e.$attrs["svg-title"] ? (d(), y("title",
|
|
538
|
+
e.$attrs["svg-title"] ? (d(), y("title", Ft, V(e.$attrs["svg-title"]), 1)) : q("", !0),
|
|
540
539
|
t[0] || (t[0] = G("path", {
|
|
541
540
|
fill: "#001222",
|
|
542
541
|
d: "M9.69043 5.75L4.62988 10.8105L1.56934 7.75L2.62988 6.68945L4.62988 8.68945L8.62988 4.68945L9.69043 5.75Z"
|
|
@@ -547,8 +546,8 @@ function Wt(e, t, o, s, r, i) {
|
|
|
547
546
|
}, null, -1))
|
|
548
547
|
], 16);
|
|
549
548
|
}
|
|
550
|
-
const
|
|
551
|
-
...
|
|
549
|
+
const Wt = /* @__PURE__ */ H(Ut, [["render", Kt]]), Ht = {}, jt = /* @__PURE__ */ J({
|
|
550
|
+
...Ht,
|
|
552
551
|
__name: "decorative-checkbox",
|
|
553
552
|
props: {
|
|
554
553
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -564,22 +563,22 @@ const Ht = /* @__PURE__ */ H(Ft, [["render", Wt]]), jt = {}, qt = /* @__PURE__ *
|
|
|
564
563
|
[`b-checkbox-input__outline--${Se.CHECKED}`]: (t.checked || t.allSelected) && !t.indeterminate,
|
|
565
564
|
[`b-checkbox-input__outline--${Se.INDETERMINATE}`]: t.indeterminate
|
|
566
565
|
}));
|
|
567
|
-
return (
|
|
566
|
+
return (i, r) => (d(), y("div", {
|
|
568
567
|
class: ve(["b-checkbox-input", o.value]),
|
|
569
568
|
role: "presentation"
|
|
570
569
|
}, [
|
|
571
|
-
|
|
570
|
+
i.indeterminate ? (d(), A(B(ft), {
|
|
572
571
|
key: 0,
|
|
573
572
|
class: "b-checkbox-input__icon",
|
|
574
573
|
"svg-title": "",
|
|
575
574
|
"aria-hidden": "true"
|
|
576
|
-
})) :
|
|
575
|
+
})) : i.allSelected ? (d(), A(B(Wt), {
|
|
577
576
|
key: 1,
|
|
578
577
|
class: "b-checkbox-input__icon",
|
|
579
578
|
"svg-title": "",
|
|
580
579
|
"aria-hidden": "true",
|
|
581
580
|
"data-testid": "decorative-checkbox-double-checkmark-icon"
|
|
582
|
-
})) :
|
|
581
|
+
})) : i.checked ? (d(), A(B(yt), {
|
|
583
582
|
key: 2,
|
|
584
583
|
class: "b-checkbox-input__icon",
|
|
585
584
|
"svg-title": "",
|
|
@@ -590,7 +589,7 @@ const Ht = /* @__PURE__ */ H(Ft, [["render", Wt]]), jt = {}, qt = /* @__PURE__ *
|
|
|
590
589
|
}, null, 2)
|
|
591
590
|
], 2));
|
|
592
591
|
}
|
|
593
|
-
}),
|
|
592
|
+
}), Ae = /* @__PURE__ */ H(jt, [["__scopeId", "data-v-08d3142e"]]);
|
|
594
593
|
var He = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.STATIC_CATEGORY = "static-category", e))(He || {}), Q = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.UNSELECT_CATEGORY = "unselect-category", e.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", e))(Q || {});
|
|
595
594
|
const Ge = {
|
|
596
595
|
"de-DE": { categoryClosed: "{category} geschlossen", categoryOpened: "{category} geöffnet" },
|
|
@@ -603,15 +602,15 @@ const Ge = {
|
|
|
603
602
|
"ja-JP": { categoryClosed: "{category}を閉じました", categoryOpened: "{category}を開きました" },
|
|
604
603
|
"pt-BR": { categoryClosed: "{category} fechada", categoryOpened: "{categoria} aberta" },
|
|
605
604
|
"zh-CN": { categoryClosed: "{category} 已关闭", categoryOpened: "{category} 已打开" }
|
|
606
|
-
},
|
|
605
|
+
}, qt = J({
|
|
607
606
|
i18n: { messages: Ge },
|
|
608
607
|
name: "bento-listbox-multi-select-category",
|
|
609
608
|
components: {
|
|
610
609
|
BentoTypography: ie,
|
|
611
610
|
BentoListboxOption: Ce,
|
|
612
|
-
ChevronDownIcon:
|
|
613
|
-
ChevronUpIcon:
|
|
614
|
-
DecorativeCheckbox:
|
|
611
|
+
ChevronDownIcon: ht,
|
|
612
|
+
ChevronUpIcon: Ct,
|
|
613
|
+
DecorativeCheckbox: Ae
|
|
615
614
|
},
|
|
616
615
|
props: {
|
|
617
616
|
/**
|
|
@@ -662,7 +661,7 @@ const Ge = {
|
|
|
662
661
|
Q.TOGGLE_CATEGORY_VISIBILITY
|
|
663
662
|
],
|
|
664
663
|
setup(e, { emit: t }) {
|
|
665
|
-
const o = I(!1), { t: s } =
|
|
664
|
+
const o = I(!1), { t: s } = _e({ messages: Ge }), i = Me("category-group"), r = Me("category-name"), a = (M) => e.isOptionDisabled ? e.isOptionDisabled(M) : !1, f = b(
|
|
666
665
|
() => e.category.items.every((M) => a(M))
|
|
667
666
|
), S = pe(e, "staticCategories"), n = b(() => o.value || e.staticCategories), u = b(() => ({
|
|
668
667
|
[`b-listbox-multi-select-category--${He.DISABLED}`]: f.value
|
|
@@ -706,8 +705,8 @@ const Ge = {
|
|
|
706
705
|
isAllSelected: $,
|
|
707
706
|
isIndeterminate: T,
|
|
708
707
|
isStaticCategory: S,
|
|
709
|
-
categoryGroupId:
|
|
710
|
-
categoryNameId:
|
|
708
|
+
categoryGroupId: i,
|
|
709
|
+
categoryNameId: r,
|
|
711
710
|
// Computed
|
|
712
711
|
showItemChildren: n,
|
|
713
712
|
ariaCheckedComputed: D,
|
|
@@ -717,16 +716,16 @@ const Ge = {
|
|
|
717
716
|
toggleSelectAll: O
|
|
718
717
|
};
|
|
719
718
|
}
|
|
720
|
-
}),
|
|
719
|
+
}), Xt = { class: "b-listbox-multi-select-category__label" }, Jt = {
|
|
721
720
|
key: 1,
|
|
722
721
|
class: "b-listbox-multi-select-category b-listbox-multi-select-category--static-category",
|
|
723
722
|
"aria-hidden": "true"
|
|
724
|
-
},
|
|
725
|
-
function
|
|
723
|
+
}, Zt = { class: "b-listbox-multi-select-category__label" }, Qt = ["id", "aria-label"];
|
|
724
|
+
function es(e, t, o, s, i, r) {
|
|
726
725
|
const a = _("decorative-checkbox"), f = _("bento-typography"), S = _("chevron-up-icon"), n = _("chevron-down-icon"), u = _("bento-listbox-option");
|
|
727
726
|
return d(), y("div", null, [
|
|
728
|
-
e.isStaticCategory ? (d(), y("div",
|
|
729
|
-
G("span",
|
|
727
|
+
e.isStaticCategory ? (d(), y("div", Jt, [
|
|
728
|
+
G("span", Zt, [
|
|
730
729
|
N(f, {
|
|
731
730
|
el: "span",
|
|
732
731
|
variant: "caption",
|
|
@@ -763,7 +762,7 @@ function ts(e, t, o, s, r, i) {
|
|
|
763
762
|
disabled: e.hasAllPropsDisabled,
|
|
764
763
|
checked: e.isAllSelected
|
|
765
764
|
}, null, 8, ["indeterminate", "disabled", "checked"]),
|
|
766
|
-
G("span",
|
|
765
|
+
G("span", Xt, [
|
|
767
766
|
N(f, {
|
|
768
767
|
id: e.categoryNameId,
|
|
769
768
|
el: "span",
|
|
@@ -798,20 +797,20 @@ function ts(e, t, o, s, r, i) {
|
|
|
798
797
|
"aria-label": e.category.label
|
|
799
798
|
}, [
|
|
800
799
|
W(e.$slots, "default", {}, void 0, !0)
|
|
801
|
-
], 8,
|
|
800
|
+
], 8, Qt), [
|
|
802
801
|
[ze, e.showItemChildren]
|
|
803
802
|
])
|
|
804
803
|
]);
|
|
805
804
|
}
|
|
806
|
-
const
|
|
805
|
+
const ts = /* @__PURE__ */ H(qt, [["render", es], ["__scopeId", "data-v-60c04867"]]);
|
|
807
806
|
var X = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", e.UNSELECT_CATEGORY = "unselect-category", e.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", e))(X || {});
|
|
808
|
-
const
|
|
807
|
+
const ss = J({
|
|
809
808
|
name: "listbox-multi-select-options",
|
|
810
809
|
components: {
|
|
811
810
|
BentoListboxOption: Ce,
|
|
812
811
|
BentoTypography: ie,
|
|
813
|
-
ListboxMultiSelectCategory:
|
|
814
|
-
DecorativeCheckbox:
|
|
812
|
+
ListboxMultiSelectCategory: ts,
|
|
813
|
+
DecorativeCheckbox: Ae
|
|
815
814
|
},
|
|
816
815
|
inheritAttrs: !1,
|
|
817
816
|
props: {
|
|
@@ -889,12 +888,12 @@ const ls = J({
|
|
|
889
888
|
setup(e, { emit: t }) {
|
|
890
889
|
const o = (n) => {
|
|
891
890
|
e.isOptionDisabled(n) || t(X.TOGGLE_CHECKBOX_SELECTION, n);
|
|
892
|
-
}, s = (n) => !!n.items,
|
|
891
|
+
}, s = (n) => !!n.items, i = (n) => {
|
|
893
892
|
const u = e.isMultiLevel && e.searching;
|
|
894
893
|
return n.description && (!e.isMultiLevel || u);
|
|
895
|
-
},
|
|
894
|
+
}, r = (n) => n.items ? !!n.items.find((u) => e.selectedItemsList.includes(u.value)) : e.selectedItemsList.includes(n.value), a = (n) => {
|
|
896
895
|
if (s(n)) {
|
|
897
|
-
const u =
|
|
896
|
+
const u = r(n) ? X.UNSELECT_CATEGORY : X.SELECT_CATEGORY;
|
|
898
897
|
t(u, n);
|
|
899
898
|
} else
|
|
900
899
|
o(n);
|
|
@@ -906,8 +905,8 @@ const ls = J({
|
|
|
906
905
|
"b-listbox-multi-select-options__category-option": e.categoryItems
|
|
907
906
|
})),
|
|
908
907
|
// Methods
|
|
909
|
-
isOptionSelected:
|
|
910
|
-
shouldShowDescription:
|
|
908
|
+
isOptionSelected: r,
|
|
909
|
+
shouldShowDescription: i,
|
|
911
910
|
toggleCheckboxSelection: o,
|
|
912
911
|
toggleSearchOption: a,
|
|
913
912
|
computedTabindex: (n) => e.itemsIndex[n] === e.focusedIndex ? 0 : -1,
|
|
@@ -916,8 +915,8 @@ const ls = J({
|
|
|
916
915
|
ListboxMultiSelectOptionsEvent: X
|
|
917
916
|
};
|
|
918
917
|
}
|
|
919
|
-
}),
|
|
920
|
-
function
|
|
918
|
+
}), ls = { class: "b-listbox-multi-select__option-text" }, os = { class: "b-listbox-multi-select__option-text" };
|
|
919
|
+
function as(e, t, o, s, i, r) {
|
|
921
920
|
const a = _("decorative-checkbox"), f = _("bento-typography"), S = _("bento-listbox-option"), n = _("listbox-multi-select-options", !0), u = _("listbox-multi-select-category");
|
|
922
921
|
return d(), y("div", null, [
|
|
923
922
|
(d(!0), y(te, null, j(e.items, (l) => (d(), y("div", {
|
|
@@ -942,7 +941,7 @@ function ns(e, t, o, s, r, i) {
|
|
|
942
941
|
checked: e.isOptionSelected(l)
|
|
943
942
|
}, null, 8, ["disabled", "checked"]),
|
|
944
943
|
W(e.$slots, "default", w({ ref_for: !0 }, l), () => [
|
|
945
|
-
G("span",
|
|
944
|
+
G("span", ls, [
|
|
946
945
|
N(f, { el: "span" }, {
|
|
947
946
|
default: L(() => [
|
|
948
947
|
K(V(l.label), 1)
|
|
@@ -1010,7 +1009,7 @@ function ns(e, t, o, s, r, i) {
|
|
|
1010
1009
|
checked: e.isOptionSelected(l)
|
|
1011
1010
|
}, null, 8, ["disabled", "checked"]),
|
|
1012
1011
|
W(e.$slots, "default", w({ ref_for: !0 }, l), () => [
|
|
1013
|
-
G("span",
|
|
1012
|
+
G("span", os, [
|
|
1014
1013
|
N(f, { el: "span" }, {
|
|
1015
1014
|
default: L(() => [
|
|
1016
1015
|
K(V(l.label), 1)
|
|
@@ -1036,8 +1035,8 @@ function ns(e, t, o, s, r, i) {
|
|
|
1036
1035
|
]))), 128))
|
|
1037
1036
|
]);
|
|
1038
1037
|
}
|
|
1039
|
-
const
|
|
1040
|
-
const t = b(() => !!e.value?.find(({ items: s }) => !!s)), o = b(() => t.value ? e.value?.reduce((s,
|
|
1038
|
+
const ns = /* @__PURE__ */ H(ss, [["render", as], ["__scopeId", "data-v-237dfc58"]]), is = (e) => {
|
|
1039
|
+
const t = b(() => !!e.value?.find(({ items: s }) => !!s)), o = b(() => t.value ? e.value?.reduce((s, i) => (i.items ? s.push(...i.items.flat()) : s.push(i), s), []) : e.value);
|
|
1041
1040
|
return {
|
|
1042
1041
|
isMultiLevelSelect: t,
|
|
1043
1042
|
flattenedItemsList: o
|
|
@@ -1053,12 +1052,12 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1053
1052
|
"ja-JP": { allSelected: "すべて選択 ({total})", numberOfTotalSelected: "{number}/{total}件が選択されました", numbersSelected: "{number}件選択済み", selectAll: "すべて選択 ({total})" },
|
|
1054
1053
|
"pt-BR": { allSelected: "Todos os selecionados ({total})", numberOfTotalSelected: "{number} de {total} selecionados", numbersSelected: "{number} selecionados", selectAll: "Selecionar tudo ({total})" },
|
|
1055
1054
|
"zh-CN": { allSelected: "全部已选 ({total})", numberOfTotalSelected: "已选择 {number} 个,共 {total} 个", numbersSelected: "已选择 {number} 个", selectAll: "选择全部({total})个" }
|
|
1056
|
-
},
|
|
1055
|
+
}, rs = { key: 0 }, cs = ["role"], ds = {
|
|
1057
1056
|
key: 1,
|
|
1058
1057
|
class: "b-listbox-multi-select__divider",
|
|
1059
1058
|
"aria-hidden": "true"
|
|
1060
|
-
},
|
|
1061
|
-
...
|
|
1059
|
+
}, us = { i18n: { messages: je } }, bs = /* @__PURE__ */ J({
|
|
1060
|
+
...us,
|
|
1062
1061
|
__name: "listbox-multi-select",
|
|
1063
1062
|
props: {
|
|
1064
1063
|
hasMoreItems: { type: Boolean, default: !1 },
|
|
@@ -1071,7 +1070,7 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1071
1070
|
},
|
|
1072
1071
|
emits: ["select"],
|
|
1073
1072
|
setup(e, { expose: t, emit: o }) {
|
|
1074
|
-
const s = e,
|
|
1073
|
+
const s = e, i = o, { t: r, n: a } = _e({ messages: je }), f = mt(), S = pt(), n = b(
|
|
1075
1074
|
() => ({
|
|
1076
1075
|
"aria-label": S["aria-label"]?.toString(),
|
|
1077
1076
|
"aria-busy": S["aria-busy"]?.toString(),
|
|
@@ -1079,7 +1078,7 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1079
1078
|
"aria-live": S["aria-live"]?.toString(),
|
|
1080
1079
|
"aria-multiselectable": !0
|
|
1081
1080
|
})
|
|
1082
|
-
), u = I(null), l = I(null), m = I(null), C = I(null), h = b(() => s.selectedValues.map(({ value: c }) => c)), { isMultiLevelSelect: R, flattenedItemsList: x } =
|
|
1081
|
+
), u = I(null), l = I(null), m = I(null), C = I(null), h = b(() => s.selectedValues.map(({ value: c }) => c)), { isMultiLevelSelect: R, flattenedItemsList: x } = is(pe(s, "items")), k = b(() => R.value && !s.staticCategories), $ = b(() => k.value ? "tree" : "listbox"), T = b(() => k.value ? "treeitem" : "option"), O = (c) => {
|
|
1083
1082
|
const v = s.isOptionDisabled(c), g = h.value?.includes(c.value) || !1;
|
|
1084
1083
|
return { isDisabled: v, isPreSelected: g };
|
|
1085
1084
|
}, D = b(() => {
|
|
@@ -1098,19 +1097,19 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1098
1097
|
).length === c.items.length : h.value?.includes(c.value))
|
|
1099
1098
|
), re = () => R.value && !s.searching ? x.value.length : s.items.length, M = b(() => {
|
|
1100
1099
|
const c = D.value.length, v = re(), g = z.value?.length || 0;
|
|
1101
|
-
return g === 0 ?
|
|
1100
|
+
return g === 0 ? r("selectAll", { total: a(c) }) : g === v ? r("allSelected", { total: a(v) }) : g <= v ? r("numberOfTotalSelected", { number: a(g), total: a(v) }) : r("numbersSelected", { number: a(g) });
|
|
1102
1101
|
}), Y = (c) => {
|
|
1103
1102
|
const v = (P) => {
|
|
1104
1103
|
const { isDisabled: E, isPreSelected: ue } = O(P);
|
|
1105
1104
|
return E && ue || !E;
|
|
1106
1105
|
}, g = c.filter(v).filter((P) => !h.value.includes(P.value));
|
|
1107
|
-
|
|
1106
|
+
i("select", [...s.selectedValues, ...g]);
|
|
1108
1107
|
}, Z = (c) => {
|
|
1109
1108
|
const v = (E) => {
|
|
1110
1109
|
const { isDisabled: ue, isPreSelected: dt } = O(E);
|
|
1111
1110
|
return !(ue && dt);
|
|
1112
1111
|
}, g = c.filter(v).map(({ value: E }) => E), P = s.selectedValues.filter((E) => !g?.includes(E.value));
|
|
1113
|
-
|
|
1112
|
+
i("select", P);
|
|
1114
1113
|
}, Ee = () => {
|
|
1115
1114
|
Y(x.value);
|
|
1116
1115
|
}, Oe = () => {
|
|
@@ -1120,7 +1119,7 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1120
1119
|
D,
|
|
1121
1120
|
Ee,
|
|
1122
1121
|
Oe
|
|
1123
|
-
),
|
|
1122
|
+
), ke = b(() => se.value ? "mixed" : `${U.value}`), ye = I(U.value), Te = () => {
|
|
1124
1123
|
ye.value = !ye.value, qe(ye.value);
|
|
1125
1124
|
};
|
|
1126
1125
|
fe(U, () => {
|
|
@@ -1128,12 +1127,12 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1128
1127
|
});
|
|
1129
1128
|
const Xe = (c) => {
|
|
1130
1129
|
Y(c.items);
|
|
1131
|
-
},
|
|
1130
|
+
}, $e = (c) => {
|
|
1132
1131
|
Z(c.items);
|
|
1133
1132
|
}, ce = (c, v) => {
|
|
1134
1133
|
let g = !1;
|
|
1135
1134
|
const P = s.selectedValues.filter(({ value: E }) => v.value === E ? (g = !0, !1) : !0);
|
|
1136
|
-
g || P.push(v),
|
|
1135
|
+
g || P.push(v), i(c, P);
|
|
1137
1136
|
}, Je = b(() => {
|
|
1138
1137
|
if (!R.value)
|
|
1139
1138
|
return s.selectedValues;
|
|
@@ -1144,7 +1143,7 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1144
1143
|
}), Ze = b(() => {
|
|
1145
1144
|
const c = ["automatic", "button"].includes(s.lazyLoadType), v = s.selectedValues?.length > 0 && z.value?.length !== x.value?.length;
|
|
1146
1145
|
return c && s.hasMoreItems ? !!s.selectedValues?.length : v;
|
|
1147
|
-
}),
|
|
1146
|
+
}), Le = b(() => ["automatic", "button"].includes(s.lazyLoadType) ? !s.hasMoreItems : !0), de = I([]), { visibleDomOptions: De, updateVisibleDomOptions: Qe } = We(
|
|
1148
1147
|
u,
|
|
1149
1148
|
pe(s, "items"),
|
|
1150
1149
|
T
|
|
@@ -1184,7 +1183,7 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1184
1183
|
[F.ARROW_UP]: Be,
|
|
1185
1184
|
[F.ARROW_DOWN]: Be
|
|
1186
1185
|
}, ct = b(() => {
|
|
1187
|
-
let c = 1;
|
|
1186
|
+
let c = Le.value ? 1 : 0;
|
|
1188
1187
|
const v = {};
|
|
1189
1188
|
return s.items.forEach((g) => {
|
|
1190
1189
|
let P = de.value.includes(g.value);
|
|
@@ -1196,19 +1195,19 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1196
1195
|
ref: u,
|
|
1197
1196
|
class: "b-listbox-multi-select"
|
|
1198
1197
|
}, [
|
|
1199
|
-
Ze.value ? (d(), y("div",
|
|
1198
|
+
Ze.value ? (d(), y("div", rs, [
|
|
1200
1199
|
ne((d(), y("ul", w({ class: "b-listbox-multi-select__chips" }, ee(rt, !0)), [
|
|
1201
1200
|
(d(!0), y(te, null, j(Je.value, (g) => (d(), y("li", {
|
|
1202
1201
|
key: g.value
|
|
1203
1202
|
}, [
|
|
1204
|
-
N(B(
|
|
1203
|
+
N(B(St), {
|
|
1205
1204
|
ref_for: !0,
|
|
1206
1205
|
ref_key: "selectedListboxItemsRef",
|
|
1207
1206
|
ref: m,
|
|
1208
1207
|
disabled: c.isOptionDisabled(g),
|
|
1209
1208
|
label: g.label,
|
|
1210
1209
|
condensed: "",
|
|
1211
|
-
onClick: (P) => g.items ?
|
|
1210
|
+
onClick: (P) => g.items ? $e(g) : ce("select", g)
|
|
1212
1211
|
}, null, 8, ["disabled", "label", "onClick"])
|
|
1213
1212
|
]))), 128))
|
|
1214
1213
|
], 16)), [
|
|
@@ -1220,21 +1219,21 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1220
1219
|
}, null, -1))
|
|
1221
1220
|
])) : q("", !0),
|
|
1222
1221
|
ne((d(), y("div", w(n.value, { role: $.value }, ee(it, !0)), [
|
|
1223
|
-
|
|
1222
|
+
Le.value ? (d(), A(B(Ce), {
|
|
1224
1223
|
key: 0,
|
|
1225
1224
|
ref_key: "selectAllListboxItemsRef",
|
|
1226
1225
|
ref: l,
|
|
1227
1226
|
class: "b-listbox-multi-select__option",
|
|
1228
1227
|
tabindex: B(Re) === 0 ? 0 : -1,
|
|
1229
|
-
"aria-selected":
|
|
1230
|
-
"aria-checked":
|
|
1228
|
+
"aria-selected": ke.value !== "false",
|
|
1229
|
+
"aria-checked": ke.value,
|
|
1231
1230
|
role: T.value,
|
|
1232
1231
|
onClick: Te,
|
|
1233
1232
|
onEnterPressed: Te,
|
|
1234
1233
|
onSpacePressed: ae(Te, ["prevent"])
|
|
1235
1234
|
}, {
|
|
1236
1235
|
default: L(() => [
|
|
1237
|
-
N(B(
|
|
1236
|
+
N(B(Ae), {
|
|
1238
1237
|
checked: B(U),
|
|
1239
1238
|
indeterminate: B(se)
|
|
1240
1239
|
}, null, 8, ["checked", "indeterminate"]),
|
|
@@ -1247,8 +1246,8 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1247
1246
|
]),
|
|
1248
1247
|
_: 1
|
|
1249
1248
|
}, 8, ["tabindex", "aria-selected", "aria-checked", "role"])) : q("", !0),
|
|
1250
|
-
|
|
1251
|
-
N(B(
|
|
1249
|
+
Le.value ? (d(), y("hr", ds)) : q("", !0),
|
|
1250
|
+
N(B(ns), {
|
|
1252
1251
|
ref_key: "listboxItemsRef",
|
|
1253
1252
|
ref: C,
|
|
1254
1253
|
items: c.items,
|
|
@@ -1262,7 +1261,7 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1262
1261
|
role: T.value,
|
|
1263
1262
|
onToggleCheckboxSelection: v[0] || (v[0] = (g) => ce("select", g)),
|
|
1264
1263
|
onSelectCategory: Xe,
|
|
1265
|
-
onUnselectCategory:
|
|
1264
|
+
onUnselectCategory: $e,
|
|
1266
1265
|
onToggleCategoryVisibility: et,
|
|
1267
1266
|
onSpacePressed: v[1] || (v[1] = (g) => ce(B(p).SPACE, g)),
|
|
1268
1267
|
onTabPressed: v[2] || (v[2] = (g) => ce(B(p).TAB, g)),
|
|
@@ -1275,12 +1274,17 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1275
1274
|
])
|
|
1276
1275
|
}))
|
|
1277
1276
|
]), 1032, ["items", "is-option-disabled", "is-multi-level", "static-categories", "searching", "selected-items-list", "focused-index", "items-index", "role"])
|
|
1278
|
-
], 16,
|
|
1277
|
+
], 16, cs)), [
|
|
1279
1278
|
[B(he)]
|
|
1280
1279
|
])
|
|
1281
1280
|
], 512));
|
|
1282
1281
|
}
|
|
1283
|
-
}), xe = /* @__PURE__ */ H(
|
|
1282
|
+
}), xe = /* @__PURE__ */ H(bs, [["__scopeId", "data-v-4abd31b6"]]), ms = (e, t = 300) => {
|
|
1283
|
+
let o;
|
|
1284
|
+
return (...i) => {
|
|
1285
|
+
o && clearTimeout(o), o = setTimeout(() => e(...i), t);
|
|
1286
|
+
};
|
|
1287
|
+
}, Ve = {
|
|
1284
1288
|
"de-DE": { loading: "Laden", showMore: "Mehr anzeigen" },
|
|
1285
1289
|
"en-GB": { loading: "Loading", showMore: "Show more" },
|
|
1286
1290
|
"en-US": { loading: "Loading", showMore: "Show more" },
|
|
@@ -1295,11 +1299,11 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1295
1299
|
name: "bento-listbox",
|
|
1296
1300
|
components: {
|
|
1297
1301
|
BentoEmptyState: vt,
|
|
1298
|
-
BentoListboxSingleSelect:
|
|
1302
|
+
BentoListboxSingleSelect: Yt,
|
|
1299
1303
|
BentoListboxMultiSelect: xe,
|
|
1300
1304
|
BentoTypography: ie,
|
|
1301
1305
|
BentoLoadingIndicator: gt,
|
|
1302
|
-
BentoLoadingButton:
|
|
1306
|
+
BentoLoadingButton: Et
|
|
1303
1307
|
},
|
|
1304
1308
|
directives: { BentoKeyboardNavigationDirective: he },
|
|
1305
1309
|
i18n: { messages: Ve },
|
|
@@ -1411,13 +1415,13 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1411
1415
|
p.TAB
|
|
1412
1416
|
],
|
|
1413
1417
|
setup(e, { emit: t, slots: o }) {
|
|
1414
|
-
const s = I([]),
|
|
1418
|
+
const s = I([]), i = pe(e, "items"), { t: r } = _e({ messages: Ve }), a = b(() => e.lazyLoadType !== le.AUTOMATIC), f = b(() => e.lazyLoadType === le.AUTOMATIC), S = () => typeof e?.virtualScroll == "object" && e?.virtualScroll?.itemHeight ? e.virtualScroll.itemHeight : ps, {
|
|
1415
1419
|
containerRef: n,
|
|
1416
1420
|
containerProps: u,
|
|
1417
1421
|
onScroll: l,
|
|
1418
1422
|
list: m,
|
|
1419
1423
|
wrapperProps: C
|
|
1420
|
-
} =
|
|
1424
|
+
} = Tt(i, {
|
|
1421
1425
|
itemHeight: S(),
|
|
1422
1426
|
// Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
|
|
1423
1427
|
disabled: e?.multiple || e?.virtualScroll === !1 || e?.lazyLoadType !== "none"
|
|
@@ -1443,7 +1447,7 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1443
1447
|
t(U, se);
|
|
1444
1448
|
}, O = () => {
|
|
1445
1449
|
t(p.SHOW_MORE);
|
|
1446
|
-
}, D =
|
|
1450
|
+
}, D = ms(() => {
|
|
1447
1451
|
const U = n.value;
|
|
1448
1452
|
if (!U)
|
|
1449
1453
|
return;
|
|
@@ -1455,7 +1459,7 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1455
1459
|
() => e.lazyLoadType === le.BUTTON && e.hasMoreItems
|
|
1456
1460
|
), Y = b(
|
|
1457
1461
|
() => e.loading ? Pe.LOADING : Pe.START
|
|
1458
|
-
), Z = b(() => e.loading ?
|
|
1462
|
+
), Z = b(() => e.loading ? r("loading") : r("showMore")), Ee = b(() => ({
|
|
1459
1463
|
...e.emptyState,
|
|
1460
1464
|
variant: "condensed"
|
|
1461
1465
|
})), Oe = {
|
|
@@ -1504,7 +1508,7 @@ const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58
|
|
|
1504
1508
|
key: 3,
|
|
1505
1509
|
class: "b-listbox__lazy-load"
|
|
1506
1510
|
};
|
|
1507
|
-
function Cs(e, t, o, s,
|
|
1511
|
+
function Cs(e, t, o, s, i, r) {
|
|
1508
1512
|
const a = _("bento-loading-indicator"), f = _("bento-empty-state"), S = _("bento-typography"), n = _("bento-listbox-multi-select"), u = _("bento-listbox-single-select"), l = _("bento-loading-button"), m = Ue("bento-keyboard-navigation-directive");
|
|
1509
1513
|
return ne((d(), y("div", w({
|
|
1510
1514
|
id: e.id,
|
|
@@ -1584,26 +1588,26 @@ function Cs(e, t, o, s, r, i) {
|
|
|
1584
1588
|
[m]
|
|
1585
1589
|
]);
|
|
1586
1590
|
}
|
|
1587
|
-
const
|
|
1591
|
+
const xs = /* @__PURE__ */ H(gs, [["render", Cs], ["__scopeId", "data-v-ef1c27fa"]]), Ie = (e, t) => {
|
|
1588
1592
|
for (const o of e) {
|
|
1589
1593
|
if (o.value === t)
|
|
1590
1594
|
return o;
|
|
1591
1595
|
if (o.items) {
|
|
1592
|
-
const s =
|
|
1596
|
+
const s = Ie(o.items, t);
|
|
1593
1597
|
if (s)
|
|
1594
1598
|
return s;
|
|
1595
1599
|
}
|
|
1596
1600
|
}
|
|
1597
1601
|
return null;
|
|
1598
|
-
}, Es = (e) => typeof e == "object" && e !== null && "value" in e && "label" in e,
|
|
1599
|
-
const
|
|
1600
|
-
o.value ?
|
|
1602
|
+
}, Es = (e) => typeof e == "object" && e !== null && "value" in e && "label" in e, Vs = (e, t, o, s) => {
|
|
1603
|
+
const i = I([]), r = I(), a = (u) => {
|
|
1604
|
+
o.value ? r.value = u.map(({ value: l }) => l) : r.value = u.length > 0 ? u[0].value : null;
|
|
1601
1605
|
}, f = (u) => {
|
|
1602
|
-
o.value ?
|
|
1606
|
+
o.value ? r.value = u.map(({ value: l, label: m }) => ({ value: l, label: m })) : r.value = u.length > 0 ? { value: u[0].value, label: u[0].label } : null;
|
|
1603
1607
|
}, S = (u) => {
|
|
1604
|
-
|
|
1608
|
+
i.value = u, s?.value ? f(u) : a(u);
|
|
1605
1609
|
}, n = () => {
|
|
1606
|
-
|
|
1610
|
+
i.value = [], r.value = null;
|
|
1607
1611
|
};
|
|
1608
1612
|
return fe(
|
|
1609
1613
|
() => t.value,
|
|
@@ -1612,28 +1616,28 @@ const Vs = /* @__PURE__ */ H(gs, [["render", Cs], ["__scopeId", "data-v-ef1c27fa
|
|
|
1612
1616
|
n();
|
|
1613
1617
|
return;
|
|
1614
1618
|
}
|
|
1615
|
-
const u = !Array.isArray(t.value), l = [...
|
|
1619
|
+
const u = !Array.isArray(t.value), l = [...i.value];
|
|
1616
1620
|
n();
|
|
1617
1621
|
const m = (C) => {
|
|
1618
1622
|
if (Es(C))
|
|
1619
|
-
|
|
1623
|
+
i.value.push(C);
|
|
1620
1624
|
else {
|
|
1621
|
-
let h =
|
|
1622
|
-
h || (h =
|
|
1625
|
+
let h = Ie(e.value, C);
|
|
1626
|
+
h || (h = Ie(l, C)), h || (h = { value: C, label: C.toString() }), i.value.push(h);
|
|
1623
1627
|
}
|
|
1624
1628
|
};
|
|
1625
1629
|
if (u) {
|
|
1626
1630
|
const C = t.value;
|
|
1627
|
-
m(C), s?.value ? f(
|
|
1631
|
+
m(C), s?.value ? f(i.value) : a(i.value);
|
|
1628
1632
|
return;
|
|
1629
1633
|
}
|
|
1630
|
-
t.value.forEach(m), s?.value ? f(
|
|
1634
|
+
t.value.forEach(m), s?.value ? f(i.value) : a(i.value);
|
|
1631
1635
|
},
|
|
1632
1636
|
{ immediate: !0 }
|
|
1633
1637
|
), {
|
|
1634
1638
|
// Values
|
|
1635
|
-
cachedSelectedListboxOptions:
|
|
1636
|
-
cachedListboxSelectedValues:
|
|
1639
|
+
cachedSelectedListboxOptions: i,
|
|
1640
|
+
cachedListboxSelectedValues: r,
|
|
1637
1641
|
// Methods
|
|
1638
1642
|
resetCache: n,
|
|
1639
1643
|
setCachedValues: S
|
|
@@ -1641,12 +1645,13 @@ const Vs = /* @__PURE__ */ H(gs, [["render", Cs], ["__scopeId", "data-v-ef1c27fa
|
|
|
1641
1645
|
};
|
|
1642
1646
|
export {
|
|
1643
1647
|
p as B,
|
|
1644
|
-
|
|
1645
|
-
|
|
1648
|
+
Mt as C,
|
|
1649
|
+
Ae as D,
|
|
1646
1650
|
le as a,
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
+
xs as b,
|
|
1652
|
+
is as c,
|
|
1653
|
+
ms as d,
|
|
1654
|
+
We as e,
|
|
1655
|
+
Vs as u
|
|
1651
1656
|
};
|
|
1652
|
-
//# sourceMappingURL=use-cached-selected-values.
|
|
1657
|
+
//# sourceMappingURL=use-cached-selected-values.Bx8uuky9.js.map
|