@adyen/bento-vue2 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 +254 -109
- 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.B63qIiiH.js → action-bar.Dj830k6L.js} +3 -3
- package/dist/chunks/{action-bar.B63qIiiH.js.map → action-bar.Dj830k6L.js.map} +1 -1
- package/dist/chunks/{ai-tag.CCJCOdXu.js → ai-tag.AyG2UWCB.js} +2 -2
- package/dist/chunks/{ai-tag.CCJCOdXu.js.map → ai-tag.AyG2UWCB.js.map} +1 -1
- package/dist/chunks/{base-modal.DpmeDmq-.js → base-modal.C52VMtnd.js} +4 -4
- package/dist/chunks/{base-modal.DpmeDmq-.js.map → base-modal.C52VMtnd.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.ChTUOsZl.js → button-actions-with-menu.OsPQ-POD.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.ChTUOsZl.js.map → button-actions-with-menu.OsPQ-POD.js.map} +1 -1
- package/dist/chunks/{button-actions.BmU1DngD.js → button-actions.Bdbu0bvt.js} +2 -2
- package/dist/chunks/{button-actions.BmU1DngD.js.map → button-actions.Bdbu0bvt.js.map} +1 -1
- package/dist/chunks/{calendar.uvIGF_jU.js → calendar.CqsfThnC.js} +271 -253
- package/dist/chunks/calendar.CqsfThnC.js.map +1 -0
- package/dist/chunks/{card.WWUfBkqf.js → card.8z7UQeVK.js} +2 -2
- package/dist/chunks/{card.WWUfBkqf.js.map → card.8z7UQeVK.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CI0xDnql.js → checkbox-group.Dur2Edtw.js} +4 -4
- package/dist/chunks/{checkbox-group.CI0xDnql.js.map → checkbox-group.Dur2Edtw.js.map} +1 -1
- package/dist/chunks/{checkbox.TsWA6O3Z.js → checkbox.vNjt6QDJ.js} +18 -18
- package/dist/chunks/{checkbox.TsWA6O3Z.js.map → checkbox.vNjt6QDJ.js.map} +1 -1
- package/dist/chunks/{click-outside.CDz_x8mN.js → click-outside.BG01Sm0A.js} +2 -2
- package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BG01Sm0A.js.map} +1 -1
- package/dist/chunks/{code-snippet.4DX9iUV8.js → code-snippet.BVpFBhKq.js} +3 -3
- package/dist/chunks/{code-snippet.4DX9iUV8.js.map → code-snippet.BVpFBhKq.js.map} +1 -1
- package/dist/chunks/{controls-group.D_KE99mg.js → controls-group.DSm2Ujwt.js} +2 -2
- package/dist/chunks/{controls-group.D_KE99mg.js.map → controls-group.DSm2Ujwt.js.map} +1 -1
- package/dist/chunks/{dashboard-section.TWlLdQHG.js → dashboard-section.DNxNVV44.js} +2 -2
- package/dist/chunks/{dashboard-section.TWlLdQHG.js.map → dashboard-section.DNxNVV44.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CpDuQ3Fo.js → dashed-underline.DL2_sik5.js} +2 -2
- package/dist/chunks/{dashed-underline.CpDuQ3Fo.js.map → dashed-underline.DL2_sik5.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DZaE-kOS.js → data-grid-template.BFv1zr6g.js} +2 -2
- package/dist/chunks/{data-grid-template.DZaE-kOS.js.map → data-grid-template.BFv1zr6g.js.map} +1 -1
- package/dist/chunks/{data-grid.x6cEW0az.js → data-grid.ZHY5EzP3.js} +318 -316
- package/dist/chunks/{data-grid.x6cEW0az.js.map → data-grid.ZHY5EzP3.js.map} +1 -1
- package/dist/chunks/date-picker.kl6aFlr1.js +237 -0
- package/dist/chunks/date-picker.kl6aFlr1.js.map +1 -0
- package/dist/chunks/{date-range-picker.DPGy2h-9.js → date-range-picker.LCWVAa5R.js} +412 -391
- package/dist/chunks/date-range-picker.LCWVAa5R.js.map +1 -0
- package/dist/chunks/{directive.rXUeDb8p.js → directive.Bfr4fuOy.js} +2 -2
- package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Bfr4fuOy.js.map} +1 -1
- package/dist/{draggable-handle.js → chunks/draggable-handle.Ba28eM8o.js} +49 -40
- package/dist/chunks/draggable-handle.Ba28eM8o.js.map +1 -0
- package/dist/chunks/{dropdown-tag.t3FlJUSy.js → dropdown-tag.B61hPq5n.js} +2 -2
- package/dist/chunks/{dropdown-tag.t3FlJUSy.js.map → dropdown-tag.B61hPq5n.js.map} +1 -1
- package/dist/chunks/dropdown.Ca-f8tdX.js +1140 -0
- package/dist/chunks/dropdown.Ca-f8tdX.js.map +1 -0
- package/dist/chunks/error-message.CyERcfdt.js +72 -0
- package/dist/chunks/error-message.CyERcfdt.js.map +1 -0
- package/dist/chunks/field-label.DjjjkcO6.js +97 -0
- package/dist/chunks/field-label.DjjjkcO6.js.map +1 -0
- package/dist/chunks/{file-uploader.Cig5gDXT.js → file-uploader.DeWmLpfp.js} +5 -4
- package/dist/chunks/{file-uploader.Cig5gDXT.js.map → file-uploader.DeWmLpfp.js.map} +1 -1
- package/dist/chunks/{filter-bar.x445KK3y.js → filter-bar.Bd4ghW_B.js} +888 -871
- package/dist/chunks/filter-bar.Bd4ghW_B.js.map +1 -0
- package/dist/chunks/{footer-actions.CIkul1OD.js → footer-actions.CvUaoMzj.js} +2 -2
- package/dist/chunks/{footer-actions.CIkul1OD.js.map → footer-actions.CvUaoMzj.js.map} +1 -1
- package/dist/chunks/{form-layout-title.DR5M7GP3.js → form-layout-title.DzGajv4U.js} +70 -61
- package/dist/chunks/form-layout-title.DzGajv4U.js.map +1 -0
- package/dist/chunks/{header-meta.BC5fdpD1.js → header-meta.AXUGoqDd.js} +2 -2
- package/dist/chunks/{header-meta.BC5fdpD1.js.map → header-meta.AXUGoqDd.js.map} +1 -1
- package/dist/chunks/{header-with-views.-cvdi9-L.js → header-with-views.Ba4dswJF.js} +10 -10
- package/dist/chunks/{header-with-views.-cvdi9-L.js.map → header-with-views.Ba4dswJF.js.map} +1 -1
- package/dist/chunks/{header.DtmZjxiU.js → header.C7B7RBib.js} +3 -3
- package/dist/chunks/{header.DtmZjxiU.js.map → header.C7B7RBib.js.map} +1 -1
- package/dist/chunks/{input-field-password.Bdlw4dzr.js → input-field-password.BNAtIn_D.js} +4 -4
- package/dist/chunks/{input-field-password.Bdlw4dzr.js.map → input-field-password.BNAtIn_D.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.DPuWxBBz.js → input-field-phone-number.CEYx1s4b.js} +3 -3
- package/dist/chunks/{input-field-phone-number.DPuWxBBz.js.map → input-field-phone-number.CEYx1s4b.js.map} +1 -1
- package/dist/chunks/{input-field.DH25CU_G.js → input-field.Dh5W0Az-.js} +74 -70
- package/dist/chunks/input-field.Dh5W0Az-.js.map +1 -0
- package/dist/chunks/input-time.BLuMfakv.js +135 -0
- package/dist/chunks/input-time.BLuMfakv.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.CaxuXW-H.js → modal-fullscreen.DTvg2NLk.js} +2 -2
- package/dist/chunks/{modal-fullscreen.CaxuXW-H.js.map → modal-fullscreen.DTvg2NLk.js.map} +1 -1
- package/dist/chunks/{modal.Brif0vAy.js → modal.D_TcWTkf.js} +4 -4
- package/dist/chunks/{modal.Brif0vAy.js.map → modal.D_TcWTkf.js.map} +1 -1
- package/dist/chunks/on-click-outside.Cy1eFULD.js +109 -0
- package/dist/chunks/on-click-outside.Cy1eFULD.js.map +1 -0
- package/dist/chunks/{pagination.BmrU_sn_.js → pagination.D6BxMw5L.js} +37 -37
- package/dist/chunks/{pagination.BmrU_sn_.js.map → pagination.D6BxMw5L.js.map} +1 -1
- package/dist/chunks/{radio-group.5oS-AeYN.js → radio-group.Bb-L-0io.js} +3 -3
- package/dist/chunks/{radio-group.5oS-AeYN.js.map → radio-group.Bb-L-0io.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DSGTe8Zt.js → rich-text-editor.Dtdfh-0V.js} +6 -5
- package/dist/chunks/{rich-text-editor.DSGTe8Zt.js.map → rich-text-editor.Dtdfh-0V.js.map} +1 -1
- package/dist/chunks/{search-bar.CNfoeLLt.js → search-bar.MVJS9-Mh.js} +4 -4
- package/dist/chunks/{search-bar.CNfoeLLt.js.map → search-bar.MVJS9-Mh.js.map} +1 -1
- package/dist/chunks/{secondary-nav.IF5CgeIP.js → secondary-nav.C-nPZR-2.js} +2 -2
- package/dist/chunks/{secondary-nav.IF5CgeIP.js.map → secondary-nav.C-nPZR-2.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DZjFeQKR.js → selection-card-group.CLJPaknG.js} +10 -10
- package/dist/chunks/{selection-card-group.DZjFeQKR.js.map → selection-card-group.CLJPaknG.js.map} +1 -1
- package/dist/chunks/{sidepanel.DZDXuyzg.js → sidepanel.BTRfwGiS.js} +4 -4
- package/dist/chunks/{sidepanel.DZDXuyzg.js.map → sidepanel.BTRfwGiS.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CrPNQbX0.js → summary-grid.types.DUIqCmwg.js} +2 -2
- package/dist/chunks/{summary-grid.types.CrPNQbX0.js.map → summary-grid.types.DUIqCmwg.js.map} +1 -1
- package/dist/chunks/{textarea.Bi53QF5Q.js → textarea.CJS-1I41.js} +5 -4
- package/dist/chunks/{textarea.Bi53QF5Q.js.map → textarea.CJS-1I41.js.map} +1 -1
- package/dist/chunks/{timeline-item.C6Bi0eam.js → timeline-item.BOUWkLi1.js} +4 -4
- package/dist/chunks/{timeline-item.C6Bi0eam.js.map → timeline-item.BOUWkLi1.js.map} +1 -1
- package/dist/chunks/{tutorial.BCiZMLJE.js → tutorial.CZt_mcuT.js} +2 -2
- package/dist/chunks/{tutorial.BCiZMLJE.js.map → tutorial.CZt_mcuT.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.Bn3Y8Iuq.js → use-cached-selected-values.BJbWbkEQ.js} +180 -175
- package/dist/chunks/use-cached-selected-values.BJbWbkEQ.js.map +1 -0
- package/dist/chunks/{use-date-input-formatter.DRMt9yR2.js → use-date-input-formatter.Djf8AoLr.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.DRMt9yR2.js.map → use-date-input-formatter.Djf8AoLr.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 +1396 -0
- package/dist/draggable.js.map +1 -0
- package/dist/dropdown.js +11 -12
- 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 +274 -271
- 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 +100 -4
- package/package.json +8 -13
- package/dist/assets/dropdown-default-textbox.css +0 -1
- package/dist/chunks/calendar.uvIGF_jU.js.map +0 -1
- package/dist/chunks/date-picker.Dln8ocL4.js +0 -222
- package/dist/chunks/date-picker.Dln8ocL4.js.map +0 -1
- package/dist/chunks/date-range-picker.DPGy2h-9.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.CjhLIxVq.js +0 -364
- package/dist/chunks/dropdown-default-textbox.CjhLIxVq.js.map +0 -1
- package/dist/chunks/dropdown.CvNI2V33.js +0 -790
- package/dist/chunks/dropdown.CvNI2V33.js.map +0 -1
- package/dist/chunks/error-message.BUNKRa_w.js +0 -160
- package/dist/chunks/error-message.BUNKRa_w.js.map +0 -1
- package/dist/chunks/filter-bar.x445KK3y.js.map +0 -1
- package/dist/chunks/form-layout-title.DR5M7GP3.js.map +0 -1
- package/dist/chunks/input-field.DH25CU_G.js.map +0 -1
- package/dist/chunks/input-time.6eJ4-QdU.js +0 -92
- package/dist/chunks/input-time.6eJ4-QdU.js.map +0 -1
- package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
- package/dist/chunks/on-click-outside.BW4rkhzG.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.Bn3Y8Iuq.js.map +0 -1
- package/dist/draggable-handle.js.map +0 -1
|
@@ -1,45 +1,44 @@
|
|
|
1
|
-
import { computed as n, ref as x, onMounted as Ne, onUnmounted as we, watch as X, defineComponent as G, nextTick as
|
|
1
|
+
import { computed as n, ref as x, onMounted as Ne, onUnmounted as we, watch as X, defineComponent as G, nextTick as pe, toRef as H, useSlots as Ge, useAttrs as Pe } from "vue";
|
|
2
2
|
import { B as M, a as se } from "./keyboard-navigation.DWmhelVv.js";
|
|
3
3
|
import { B as j } from "./typography.C8lPlsbD.js";
|
|
4
4
|
import { B as Fe } from "./loading-indicator.PxbRzshH.js";
|
|
5
5
|
import { B as Ye } from "./empty-state.DMV23IZy.js";
|
|
6
6
|
import { u as le } from "./index.B6WW_F-J.js";
|
|
7
|
-
import {
|
|
8
|
-
import { o as Ue } from "./resize.Bqks3WUm.js";
|
|
7
|
+
import { o as ze } from "./resize.Bqks3WUm.js";
|
|
9
8
|
import "./index.Cl4_42j5.js";
|
|
10
|
-
import { C as J, N as
|
|
11
|
-
import { C as
|
|
9
|
+
import { C as J, N as Ue } from "./minus-small.DJacLGTw.js";
|
|
10
|
+
import { C as Ve } from "./checkmark-small.DVDtD4HQ.js";
|
|
12
11
|
/* empty css */
|
|
13
12
|
import { n as N } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
14
|
-
import { B as
|
|
15
|
-
import { C as
|
|
16
|
-
import { C as
|
|
17
|
-
import { g as
|
|
18
|
-
import { a as
|
|
13
|
+
import { B as We } from "./chip.BFY_-VCz.js";
|
|
14
|
+
import { C as Ke } from "./chevron-down.eYtgv5ly.js";
|
|
15
|
+
import { C as je } from "./chevron-up.d8cwIlA_.js";
|
|
16
|
+
import { g as me } from "./generate-uid.NJ8tVoha.js";
|
|
17
|
+
import { a as qe, b as fe } from "./button-actions.Bdbu0bvt.js";
|
|
19
18
|
import "../assets/use-cached-selected-values.css";
|
|
20
|
-
const
|
|
19
|
+
const ye = (s, e, l, t) => {
|
|
21
20
|
const o = n(
|
|
22
21
|
() => {
|
|
23
|
-
var
|
|
24
|
-
return !!((
|
|
22
|
+
var m, A;
|
|
23
|
+
return !!((m = s.value) != null && m.length) && ((A = s.value) == null ? void 0 : A.length) === e.value.length;
|
|
25
24
|
}
|
|
26
25
|
), a = n(() => {
|
|
27
|
-
var
|
|
28
|
-
return s.value == null || s.value.length === 0 ? !1 : ((
|
|
26
|
+
var m;
|
|
27
|
+
return s.value == null || s.value.length === 0 ? !1 : ((m = s.value) == null ? void 0 : m.length) !== e.value.length;
|
|
29
28
|
});
|
|
30
29
|
return {
|
|
31
30
|
isAllSelected: o,
|
|
32
31
|
isIndeterminate: a,
|
|
33
|
-
toggleSelectAll: (
|
|
34
|
-
|
|
32
|
+
toggleSelectAll: (m) => {
|
|
33
|
+
m ? l() : t();
|
|
35
34
|
}
|
|
36
35
|
};
|
|
37
36
|
};
|
|
38
|
-
function
|
|
39
|
-
const a = x(null), r = x([]),
|
|
37
|
+
function He(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: o }) {
|
|
38
|
+
const a = x(null), r = x([]), m = x(0), A = x(0), d = x(0);
|
|
40
39
|
let b;
|
|
41
40
|
const T = n(() => {
|
|
42
|
-
const I = typeof l == "number" ? s.value.length * l : s.value.reduce((S, v, y) => S + l(y), 0), O = typeof l == "number" ?
|
|
41
|
+
const I = typeof l == "number" ? s.value.length * l : s.value.reduce((S, v, y) => S + l(y), 0), O = typeof l == "number" ? m.value * l : s.value.slice(0, m.value).reduce((S, v, y) => S + l(y), 0);
|
|
43
42
|
return {
|
|
44
43
|
style: {
|
|
45
44
|
marginTop: `${O}px`,
|
|
@@ -62,7 +61,7 @@ function Xe(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: o })
|
|
|
62
61
|
}, p = () => {
|
|
63
62
|
if (d.value = a.value.clientHeight, typeof l == "number")
|
|
64
63
|
return Math.ceil(d.value / l);
|
|
65
|
-
const I =
|
|
64
|
+
const I = m.value ?? 0;
|
|
66
65
|
let O = 0, S = 0;
|
|
67
66
|
for (let v = I; v < s.value.length; v += 1) {
|
|
68
67
|
const y = l(v);
|
|
@@ -73,13 +72,13 @@ function Xe(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: o })
|
|
|
73
72
|
}, C = () => {
|
|
74
73
|
if (a.value) {
|
|
75
74
|
const I = p();
|
|
76
|
-
|
|
75
|
+
m.value = _(), A.value = Math.min(m.value + I + t, s.value.length), r.value = s.value.slice(m.value, A.value);
|
|
77
76
|
}
|
|
78
77
|
}, R = () => {
|
|
79
78
|
C();
|
|
80
79
|
};
|
|
81
80
|
e || (Ne(() => {
|
|
82
|
-
a.value && (d.value = a.value.clientHeight, b =
|
|
81
|
+
a.value && (d.value = a.value.clientHeight, b = ze(a.value, ({ clientHeight: I }) => {
|
|
83
82
|
d.value = I, C();
|
|
84
83
|
}), C());
|
|
85
84
|
}), we(() => {
|
|
@@ -110,7 +109,7 @@ function Xe(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: o })
|
|
|
110
109
|
};
|
|
111
110
|
}
|
|
112
111
|
var c = /* @__PURE__ */ ((s) => (s.SELECT = "select", s.SHOW_MORE = "show-more", s.ESCAPE = "escape-pressed", s.CLICK = "click", s.ENTER = "enter-pressed", s.SPACE = "space-pressed", s.TAB = "tab-pressed", s.CLOSE_DROPDOWN = "close-dropdown", s))(c || {}), K = /* @__PURE__ */ ((s) => (s.AUTOMATIC = "automatic", s.BUTTON = "button", s.NONE = "none", s))(K || {});
|
|
113
|
-
const
|
|
112
|
+
const Xe = G({
|
|
114
113
|
name: "bento-listbox-static-category",
|
|
115
114
|
components: {
|
|
116
115
|
BentoTypography: j
|
|
@@ -125,18 +124,18 @@ const Je = G({
|
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
126
|
});
|
|
128
|
-
var
|
|
127
|
+
var Je = function() {
|
|
129
128
|
var e = this, l = e._self._c;
|
|
130
129
|
return e._self._setupProxy, l("div", { staticClass: "b-listbox-single-select-category", attrs: { role: "group", "aria-label": e.categoryLabel } }, [l("bento-typography", { staticClass: "b-listbox-single-select-category__label-text", attrs: { variant: "caption", el: "span", "aria-hidden": "true" } }, [e._v(" " + e._s(e.categoryLabel) + " ")]), l("div", [e._t("default")], 2)], 1);
|
|
131
|
-
},
|
|
130
|
+
}, Ze = [], Qe = /* @__PURE__ */ N(
|
|
131
|
+
Xe,
|
|
132
132
|
Je,
|
|
133
133
|
Ze,
|
|
134
|
-
Qe,
|
|
135
134
|
!1,
|
|
136
135
|
null,
|
|
137
136
|
"bfbc1649"
|
|
138
137
|
);
|
|
139
|
-
const
|
|
138
|
+
const et = Qe.exports, tt = G({
|
|
140
139
|
name: "bento-listbox-option",
|
|
141
140
|
props: {
|
|
142
141
|
/**
|
|
@@ -170,7 +169,7 @@ const tt = et.exports, st = G({
|
|
|
170
169
|
};
|
|
171
170
|
}
|
|
172
171
|
});
|
|
173
|
-
var
|
|
172
|
+
var st = function() {
|
|
174
173
|
var e = this, l = e._self._c;
|
|
175
174
|
return e._self._setupProxy, l("div", e._b({ staticClass: "b-listbox-option", class: e.conditionalClasses, attrs: { role: "option" }, on: { click: e.onClick, keydown: [function(t) {
|
|
176
175
|
return !t.type.indexOf("key") && e._k(t.keyCode, "enter", 13, t.key, "Enter") ? null : e.onOptionSelected(e.BentoListboxEvent.ENTER, t);
|
|
@@ -179,38 +178,38 @@ var lt = function() {
|
|
|
179
178
|
}, function(t) {
|
|
180
179
|
return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, t);
|
|
181
180
|
}] } }, "div", e.$attrs, !1), [e._t("default")], 2);
|
|
182
|
-
},
|
|
181
|
+
}, lt = [], ot = /* @__PURE__ */ N(
|
|
182
|
+
tt,
|
|
183
183
|
st,
|
|
184
184
|
lt,
|
|
185
|
-
ot,
|
|
186
185
|
!1,
|
|
187
186
|
null,
|
|
188
187
|
"c345b6c0"
|
|
189
188
|
);
|
|
190
|
-
const Z =
|
|
191
|
-
let
|
|
192
|
-
const
|
|
189
|
+
const Z = ot.exports;
|
|
190
|
+
let ve = 0;
|
|
191
|
+
const at = {
|
|
193
192
|
beforeCreate() {
|
|
194
|
-
this.uuid =
|
|
193
|
+
this.uuid = ve.toString(), ve += 1;
|
|
195
194
|
}
|
|
196
195
|
};
|
|
197
|
-
var
|
|
196
|
+
var nt = function() {
|
|
198
197
|
var e = this, l = e._self._c;
|
|
199
198
|
return l("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#001222", d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z" } })]);
|
|
200
|
-
},
|
|
199
|
+
}, it = [], ct = /* @__PURE__ */ N(
|
|
200
|
+
at,
|
|
201
201
|
nt,
|
|
202
202
|
it,
|
|
203
|
-
ct,
|
|
204
203
|
!1,
|
|
205
204
|
null,
|
|
206
205
|
null
|
|
207
206
|
);
|
|
208
|
-
const
|
|
207
|
+
const rt = ct.exports, ut = G({
|
|
209
208
|
name: "bento-listbox-single-select-option",
|
|
210
209
|
components: {
|
|
211
210
|
BentoListboxOption: Z,
|
|
212
211
|
BentoTypography: j,
|
|
213
|
-
CheckmarkIcon:
|
|
212
|
+
CheckmarkIcon: rt
|
|
214
213
|
},
|
|
215
214
|
props: {
|
|
216
215
|
/**
|
|
@@ -247,7 +246,7 @@ const ut = rt.exports, dt = G({
|
|
|
247
246
|
};
|
|
248
247
|
}
|
|
249
248
|
});
|
|
250
|
-
var
|
|
249
|
+
var dt = function() {
|
|
251
250
|
var e = this, l = e._self._c;
|
|
252
251
|
return e._self._setupProxy, l("bento-listbox-option", { staticClass: "b-listbox-single-select-option", attrs: { disabled: e.disabled, selected: e.selected, "aria-selected": e.ariaSelected, "aria-disabled": e.ariaDisabled, tabindex: e.tabIndex }, on: { click: function(t) {
|
|
253
252
|
return e.onOptionSelected(e.BentoListboxEvent.SELECT);
|
|
@@ -260,15 +259,15 @@ var bt = function() {
|
|
|
260
259
|
} } }, [e._t("default", function() {
|
|
261
260
|
return [l("span", { staticClass: "b-listbox-single-select-option__text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.option.label))]), e.option.description ? l("bento-typography", { staticClass: "b-listbox-single-select-option__description", attrs: { el: "span" } }, [e._v(" " + e._s(e.option.description) + " ")]) : e._e()], 1)];
|
|
262
261
|
}, null, e.option), l("span", { staticClass: "b-listbox-single-select-option__check-icon" }, [l("checkmark-icon", { directives: [{ name: "show", rawName: "v-show", value: e.selected, expression: "selected" }], attrs: { "svg-title": "selected" } })], 1)], 2);
|
|
263
|
-
},
|
|
262
|
+
}, bt = [], mt = /* @__PURE__ */ N(
|
|
263
|
+
ut,
|
|
264
264
|
dt,
|
|
265
265
|
bt,
|
|
266
|
-
ft,
|
|
267
266
|
!1,
|
|
268
267
|
null,
|
|
269
268
|
"bb14d75a"
|
|
270
269
|
);
|
|
271
|
-
const
|
|
270
|
+
const ft = mt.exports, he = ({ items: s }, e) => {
|
|
272
271
|
const l = n(() => s.value.length - 1), t = x(0), o = (_) => {
|
|
273
272
|
switch (_) {
|
|
274
273
|
case "increase":
|
|
@@ -288,7 +287,7 @@ const vt = mt.exports, ye = ({ items: s }, e) => {
|
|
|
288
287
|
"increase"
|
|
289
288
|
/* INCREASE */
|
|
290
289
|
);
|
|
291
|
-
},
|
|
290
|
+
}, m = (_) => {
|
|
292
291
|
T(_), a(
|
|
293
292
|
{
|
|
294
293
|
edgeCaseItem: 0
|
|
@@ -310,22 +309,22 @@ const vt = mt.exports, ye = ({ items: s }, e) => {
|
|
|
310
309
|
moveToFirstElement: A,
|
|
311
310
|
moveToLastElement: d,
|
|
312
311
|
moveToNextElement: r,
|
|
313
|
-
moveToPreviousElement:
|
|
312
|
+
moveToPreviousElement: m,
|
|
314
313
|
setListboxFocusedIndex: b,
|
|
315
314
|
preventDefault: T,
|
|
316
315
|
focusedIndex: t
|
|
317
316
|
};
|
|
318
|
-
},
|
|
317
|
+
}, Se = (s, e, l = x("option"), t = !0) => {
|
|
319
318
|
const o = x([]), a = async () => {
|
|
320
319
|
if (!s.value || s.value.nodeType === Node.COMMENT_NODE)
|
|
321
320
|
return;
|
|
322
321
|
const r = Array.from(s.value.querySelectorAll(`[role="${l.value}"]`));
|
|
323
|
-
o.value = t ? r.filter((
|
|
322
|
+
o.value = t ? r.filter((m) => m.checkVisibility()) : r;
|
|
324
323
|
};
|
|
325
324
|
return X(
|
|
326
325
|
e,
|
|
327
326
|
() => {
|
|
328
|
-
|
|
327
|
+
pe(() => {
|
|
329
328
|
a();
|
|
330
329
|
});
|
|
331
330
|
},
|
|
@@ -334,11 +333,11 @@ const vt = mt.exports, ye = ({ items: s }, e) => {
|
|
|
334
333
|
visibleDomOptions: o,
|
|
335
334
|
updateVisibleDomOptions: a
|
|
336
335
|
};
|
|
337
|
-
},
|
|
336
|
+
}, vt = G({
|
|
338
337
|
name: "bento-listbox-single-select",
|
|
339
338
|
components: {
|
|
340
|
-
BentoListboxSingleSelectCategory:
|
|
341
|
-
BentoListboxSingleSelectOption:
|
|
339
|
+
BentoListboxSingleSelectCategory: et,
|
|
340
|
+
BentoListboxSingleSelectOption: ft
|
|
342
341
|
},
|
|
343
342
|
directives: { BentoKeyboardNavigationDirective: se },
|
|
344
343
|
inheritAttrs: !1,
|
|
@@ -383,7 +382,7 @@ const vt = mt.exports, ye = ({ items: s }, e) => {
|
|
|
383
382
|
},
|
|
384
383
|
emits: [c.SELECT, c.ENTER, c.SPACE, c.TAB],
|
|
385
384
|
setup(s, { emit: e, expose: l, slots: t, attrs: o }) {
|
|
386
|
-
const a = x(null), r = x([]),
|
|
385
|
+
const a = x(null), r = x([]), m = n(() => {
|
|
387
386
|
var v;
|
|
388
387
|
return !!((v = s.selectedValue) != null && v.length) && s.selectedValue.at(0);
|
|
389
388
|
}), A = n(
|
|
@@ -398,7 +397,7 @@ const vt = mt.exports, ye = ({ items: s }, e) => {
|
|
|
398
397
|
}
|
|
399
398
|
), d = n(() => !!s.items.some(({ items: v }) => !!v)), b = (v) => (y) => {
|
|
400
399
|
e(v, [y]);
|
|
401
|
-
}, { visibleDomOptions: T } =
|
|
400
|
+
}, { visibleDomOptions: T } = Se(a, H(s, "items"), x("option"), !1), _ = (v) => {
|
|
402
401
|
var y;
|
|
403
402
|
(y = T.value[v]) == null || y.focus();
|
|
404
403
|
}, {
|
|
@@ -407,7 +406,7 @@ const vt = mt.exports, ye = ({ items: s }, e) => {
|
|
|
407
406
|
moveToFirstElement: R,
|
|
408
407
|
moveToLastElement: B,
|
|
409
408
|
setListboxFocusedIndex: I
|
|
410
|
-
} =
|
|
409
|
+
} = he(
|
|
411
410
|
{
|
|
412
411
|
items: T
|
|
413
412
|
},
|
|
@@ -440,7 +439,7 @@ const vt = mt.exports, ye = ({ items: s }, e) => {
|
|
|
440
439
|
// Values
|
|
441
440
|
listboxRef: a,
|
|
442
441
|
listboxItemRef: r,
|
|
443
|
-
selectedItem:
|
|
442
|
+
selectedItem: m,
|
|
444
443
|
slots: t,
|
|
445
444
|
ariaAttributes: A,
|
|
446
445
|
// Computed
|
|
@@ -453,13 +452,13 @@ const vt = mt.exports, ye = ({ items: s }, e) => {
|
|
|
453
452
|
};
|
|
454
453
|
}
|
|
455
454
|
});
|
|
456
|
-
var
|
|
455
|
+
var gt = function() {
|
|
457
456
|
var e = this, l = e._self._c;
|
|
458
457
|
return e._self._setupProxy, l("div", e._g(e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", attrs: { role: "listbox" } }, "div", e.ariaAttributes, !1), e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(t) {
|
|
459
458
|
return l("bento-listbox-single-select-category", { key: t.value, attrs: { "category-label": t.label } }, e._l(t.items, function(o) {
|
|
460
459
|
return l("bento-listbox-single-select-option", e._g({ key: o.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: o, disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null, selected: o.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(a, r) {
|
|
461
|
-
return { key: r, fn: function(
|
|
462
|
-
return [e._t(r, null, null,
|
|
460
|
+
return { key: r, fn: function(m) {
|
|
461
|
+
return [e._t(r, null, null, m)];
|
|
463
462
|
} };
|
|
464
463
|
})], null, !0) }, e.listboxOptionListeners));
|
|
465
464
|
}), 1);
|
|
@@ -470,34 +469,34 @@ var _t = function() {
|
|
|
470
469
|
} };
|
|
471
470
|
})], null, !0) }, e.listboxOptionListeners));
|
|
472
471
|
})], 2);
|
|
473
|
-
},
|
|
472
|
+
}, _t = [], pt = /* @__PURE__ */ N(
|
|
473
|
+
vt,
|
|
474
474
|
gt,
|
|
475
475
|
_t,
|
|
476
|
-
pt,
|
|
477
476
|
!1,
|
|
478
477
|
null,
|
|
479
478
|
null
|
|
480
479
|
);
|
|
481
|
-
const
|
|
482
|
-
let
|
|
483
|
-
const
|
|
480
|
+
const yt = pt.exports;
|
|
481
|
+
let ge = 0;
|
|
482
|
+
const ht = {
|
|
484
483
|
beforeCreate() {
|
|
485
|
-
this.uuid =
|
|
484
|
+
this.uuid = ge.toString(), ge += 1;
|
|
486
485
|
}
|
|
487
486
|
};
|
|
488
|
-
var
|
|
487
|
+
var St = function() {
|
|
489
488
|
var e = this, l = e._self._c;
|
|
490
489
|
return l("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#001222", d: "M9.69043 5.75L4.62988 10.8105L1.56934 7.75L2.62988 6.68945L4.62988 8.68945L8.62988 4.68945L9.69043 5.75Z" } }), l("path", { attrs: { fill: "#001222", d: "M13.9307 5.75L8.87012 10.8105L7.80957 9.75L12.8701 4.68945L13.9307 5.75Z" } })]);
|
|
491
|
-
},
|
|
490
|
+
}, Ct = [], xt = /* @__PURE__ */ N(
|
|
491
|
+
ht,
|
|
492
492
|
St,
|
|
493
493
|
Ct,
|
|
494
|
-
xt,
|
|
495
494
|
!1,
|
|
496
495
|
null,
|
|
497
496
|
null
|
|
498
497
|
);
|
|
499
|
-
const
|
|
500
|
-
...
|
|
498
|
+
const Ot = xt.exports, Et = {}, Tt = /* @__PURE__ */ G({
|
|
499
|
+
...Et,
|
|
501
500
|
__name: "decorative-checkbox",
|
|
502
501
|
props: {
|
|
503
502
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -513,23 +512,23 @@ const Et = Ot.exports, Tt = {}, It = /* @__PURE__ */ G({
|
|
|
513
512
|
[`b-checkbox-input__outline--${J.CHECKED}`]: (e.checked || e.allSelected) && !e.indeterminate,
|
|
514
513
|
[`b-checkbox-input__outline--${J.INDETERMINATE}`]: e.indeterminate
|
|
515
514
|
}));
|
|
516
|
-
return { __sfc: !0, props: e, conditionalClasses: l, outlineConditionalClasses: t, CheckmarkSmallIcon:
|
|
515
|
+
return { __sfc: !0, props: e, conditionalClasses: l, outlineConditionalClasses: t, CheckmarkSmallIcon: Ve, MinusSmallIcon: Ue, DoubleCheckmarkSmallIcon: Ot };
|
|
517
516
|
}
|
|
518
517
|
});
|
|
519
|
-
var
|
|
518
|
+
var It = function() {
|
|
520
519
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
521
520
|
return l("div", { staticClass: "b-checkbox-input", class: t.conditionalClasses, attrs: { role: "presentation" } }, [e.indeterminate ? l(t.MinusSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true" } }) : e.allSelected ? l(t.DoubleCheckmarkSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true", "data-testid": "decorative-checkbox-double-checkmark-icon" } }) : e.checked ? l(t.CheckmarkSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true" } }) : e._e(), l("div", { staticClass: "b-checkbox-input__outline", class: t.outlineConditionalClasses })], 1);
|
|
522
|
-
},
|
|
521
|
+
}, At = [], Lt = /* @__PURE__ */ N(
|
|
522
|
+
Tt,
|
|
523
523
|
It,
|
|
524
524
|
At,
|
|
525
|
-
Lt,
|
|
526
525
|
!1,
|
|
527
526
|
null,
|
|
528
527
|
"b87bbaf9"
|
|
529
528
|
);
|
|
530
|
-
const oe =
|
|
531
|
-
var
|
|
532
|
-
const
|
|
529
|
+
const oe = Lt.exports;
|
|
530
|
+
var Ce = /* @__PURE__ */ ((s) => (s.DISABLED = "disabled", s.STATIC_CATEGORY = "static-category", s))(Ce || {}), U = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.UNSELECT_CATEGORY = "unselect-category", s.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", s))(U || {});
|
|
531
|
+
const kt = {
|
|
533
532
|
"de-DE": {
|
|
534
533
|
categoryClosed: "{category} geschlossen",
|
|
535
534
|
categoryOpened: "{category} geöffnet"
|
|
@@ -570,14 +569,14 @@ const Rt = {
|
|
|
570
569
|
categoryClosed: "{category} 已关闭",
|
|
571
570
|
categoryOpened: "{category} 已打开"
|
|
572
571
|
}
|
|
573
|
-
},
|
|
574
|
-
i18n: { messages:
|
|
572
|
+
}, Rt = G({
|
|
573
|
+
i18n: { messages: kt },
|
|
575
574
|
name: "bento-listbox-multi-select-category",
|
|
576
575
|
components: {
|
|
577
576
|
BentoTypography: j,
|
|
578
577
|
BentoListboxOption: Z,
|
|
579
|
-
ChevronDownIcon:
|
|
580
|
-
ChevronUpIcon:
|
|
578
|
+
ChevronDownIcon: Ke,
|
|
579
|
+
ChevronUpIcon: je,
|
|
581
580
|
DecorativeCheckbox: oe
|
|
582
581
|
},
|
|
583
582
|
props: {
|
|
@@ -629,10 +628,10 @@ const Rt = {
|
|
|
629
628
|
U.TOGGLE_CATEGORY_VISIBILITY
|
|
630
629
|
],
|
|
631
630
|
setup(s, { emit: e }) {
|
|
632
|
-
const l = x(!1), { t } = le(), o =
|
|
631
|
+
const l = x(!1), { t } = le(), o = me("category-group"), a = me("category-name"), r = (E) => s.isOptionDisabled ? s.isOptionDisabled(E) : !1, m = n(
|
|
633
632
|
() => s.category.items.every((E) => r(E))
|
|
634
633
|
), A = H(s, "staticCategories"), d = n(() => l.value || s.staticCategories), b = n(() => ({
|
|
635
|
-
[`b-listbox-multi-select-category--${
|
|
634
|
+
[`b-listbox-multi-select-category--${Ce.DISABLED}`]: m.value
|
|
636
635
|
})), T = (E, L) => {
|
|
637
636
|
E.preventDefault(), l.value = L !== void 0 ? L : !l.value, e(U.TOGGLE_CATEGORY_VISIBILITY, s.category.value);
|
|
638
637
|
}, _ = (E) => {
|
|
@@ -661,7 +660,7 @@ const Rt = {
|
|
|
661
660
|
e(U.SELECT_CATEGORY);
|
|
662
661
|
}, I = () => {
|
|
663
662
|
e(U.UNSELECT_CATEGORY);
|
|
664
|
-
}, { isAllSelected: O, isIndeterminate: S, toggleSelectAll: v } =
|
|
663
|
+
}, { isAllSelected: O, isIndeterminate: S, toggleSelectAll: v } = ye(
|
|
665
664
|
C,
|
|
666
665
|
p,
|
|
667
666
|
B,
|
|
@@ -675,7 +674,7 @@ const Rt = {
|
|
|
675
674
|
// Values
|
|
676
675
|
chevronTitle: R,
|
|
677
676
|
conditionalClass: b,
|
|
678
|
-
hasAllPropsDisabled:
|
|
677
|
+
hasAllPropsDisabled: m,
|
|
679
678
|
isOpen: l,
|
|
680
679
|
isAllSelected: O,
|
|
681
680
|
isIndeterminate: S,
|
|
@@ -692,7 +691,7 @@ const Rt = {
|
|
|
692
691
|
};
|
|
693
692
|
}
|
|
694
693
|
});
|
|
695
|
-
var
|
|
694
|
+
var Dt = function() {
|
|
696
695
|
var e = this, l = e._self._c;
|
|
697
696
|
return e._self._setupProxy, l("div", [e.isStaticCategory ? l("div", { staticClass: "b-listbox-multi-select-category b-listbox-multi-select-category--static-category", attrs: { "aria-hidden": "true" } }, [l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { el: "span", variant: "caption" } }, [e._v(" " + e._s(e.category.label) + " ")])], 1)]) : l("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass, attrs: { tabindex: e.tabindex, "aria-selected": e.ariaCheckedComputed !== "false", "aria-checked": e.ariaCheckedComputed, "aria-disabled": e.hasAllPropsDisabled, "aria-expanded": `${e.isOpen}`, role: "treeitem", "aria-owns": e.categoryGroupId, "aria-labelledby": e.categoryNameId }, on: { click: e.handleSelectAll, "enter-pressed": e.handleSelectAll, "space-pressed": function(t) {
|
|
698
697
|
return t.preventDefault(), e.handleSelectAll.apply(null, arguments);
|
|
@@ -703,22 +702,22 @@ var Bt = function() {
|
|
|
703
702
|
}] } }, [l("decorative-checkbox", { attrs: { indeterminate: e.isIndeterminate, disabled: e.hasAllPropsDisabled, checked: e.isAllSelected } }), l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { id: e.categoryNameId, el: "span" } }, [e._v(" " + e._s(e.category.label) + " ")]), l("div", { staticClass: "b-listbox-multi-select-category__label-chevron", attrs: { "aria-hidden": "true", "data-testid": "toggle-listbox" }, on: { "!click": function(t) {
|
|
704
703
|
return t.stopPropagation(), e.toggleOpen.apply(null, arguments);
|
|
705
704
|
} } }, [e.isOpen ? l("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : l("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), l("div", { directives: [{ name: "show", rawName: "v-show", value: e.showItemChildren, expression: "showItemChildren" }], attrs: { id: e.categoryGroupId, role: "group", "aria-label": e.category.label } }, [e._t("default")], 2)], 1);
|
|
706
|
-
},
|
|
705
|
+
}, Bt = [], Mt = /* @__PURE__ */ N(
|
|
706
|
+
Rt,
|
|
707
707
|
Dt,
|
|
708
708
|
Bt,
|
|
709
|
-
Mt,
|
|
710
709
|
!1,
|
|
711
710
|
null,
|
|
712
711
|
"00ccd708"
|
|
713
712
|
);
|
|
714
|
-
const
|
|
713
|
+
const $t = Mt.exports;
|
|
715
714
|
var w = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", s.UNSELECT_CATEGORY = "unselect-category", s.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", s))(w || {});
|
|
716
|
-
const
|
|
715
|
+
const Nt = G({
|
|
717
716
|
name: "listbox-multi-select-options",
|
|
718
717
|
components: {
|
|
719
718
|
BentoListboxOption: Z,
|
|
720
719
|
BentoTypography: j,
|
|
721
|
-
ListboxMultiSelectCategory:
|
|
720
|
+
ListboxMultiSelectCategory: $t,
|
|
722
721
|
DecorativeCheckbox: oe
|
|
723
722
|
},
|
|
724
723
|
inheritAttrs: !1,
|
|
@@ -825,7 +824,7 @@ const wt = G({
|
|
|
825
824
|
};
|
|
826
825
|
}
|
|
827
826
|
});
|
|
828
|
-
var
|
|
827
|
+
var wt = function() {
|
|
829
828
|
var e = this, l = e._self._c;
|
|
830
829
|
return e._self._setupProxy, l("div", e._l(e.items, function(t) {
|
|
831
830
|
return l("div", { key: `selected-${t.value}` }, [e.searching && e.isMultiLevel ? [l("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, tabindex: e.computedTabindex(t.value), "aria-selected": `${e.isOptionSelected(t)}`, "aria-checked": `${e.isOptionSelected(t)}`, "aria-disabled": e.isOptionDisabled ? e.isOptionDisabled(t) : null, role: e.$attrs.role || "option" }, on: { click: function(o) {
|
|
@@ -852,15 +851,15 @@ var Gt = function() {
|
|
|
852
851
|
return [l("span", { staticClass: "b-listbox-multi-select__option-text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(t.label))]), e.shouldShowDescription(t) ? l("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(t.description) + " ")]) : e._e()], 1)];
|
|
853
852
|
}, null, t)], 2)]], 2);
|
|
854
853
|
}), 0);
|
|
855
|
-
},
|
|
854
|
+
}, Gt = [], Pt = /* @__PURE__ */ N(
|
|
855
|
+
Nt,
|
|
856
856
|
wt,
|
|
857
857
|
Gt,
|
|
858
|
-
Pt,
|
|
859
858
|
!1,
|
|
860
859
|
null,
|
|
861
860
|
"0985e0a4"
|
|
862
861
|
);
|
|
863
|
-
const
|
|
862
|
+
const Ft = Pt.exports, Yt = (s) => {
|
|
864
863
|
const e = n(() => {
|
|
865
864
|
var t;
|
|
866
865
|
return !!((t = s.value) != null && t.find(({ items: o }) => !!o));
|
|
@@ -872,7 +871,7 @@ const Yt = Ft.exports, zt = (s) => {
|
|
|
872
871
|
isMultiLevelSelect: e,
|
|
873
872
|
flattenedItemsList: l
|
|
874
873
|
};
|
|
875
|
-
},
|
|
874
|
+
}, zt = {
|
|
876
875
|
"de-DE": {
|
|
877
876
|
allSelected: "Alle ausgewählt ({total})",
|
|
878
877
|
numberOfTotalSelected: "{number} von {total} ausgewählt",
|
|
@@ -933,8 +932,8 @@ const Yt = Ft.exports, zt = (s) => {
|
|
|
933
932
|
numbersSelected: "已选择 {number} 个",
|
|
934
933
|
selectAll: "选择全部({total})个"
|
|
935
934
|
}
|
|
936
|
-
},
|
|
937
|
-
...
|
|
935
|
+
}, Ut = { i18n: { messages: zt } }, Vt = /* @__PURE__ */ G({
|
|
936
|
+
...Ut,
|
|
938
937
|
__name: "listbox-multi-select",
|
|
939
938
|
props: {
|
|
940
939
|
hasMoreItems: { type: Boolean, default: !1 },
|
|
@@ -947,143 +946,143 @@ const Yt = Ft.exports, zt = (s) => {
|
|
|
947
946
|
},
|
|
948
947
|
emits: ["select"],
|
|
949
948
|
setup(s, { expose: e, emit: l }) {
|
|
950
|
-
const t = s, { t: o, n: a } = le(), r = Ge(),
|
|
949
|
+
const t = s, { t: o, n: a } = le(), r = Ge(), m = Pe(), A = n(
|
|
951
950
|
() => {
|
|
952
|
-
var i, u,
|
|
951
|
+
var i, u, f, h;
|
|
953
952
|
return {
|
|
954
|
-
"aria-label": (i =
|
|
955
|
-
"aria-busy": (u =
|
|
956
|
-
"aria-atomic": (
|
|
957
|
-
"aria-live": (h =
|
|
953
|
+
"aria-label": (i = m["aria-label"]) == null ? void 0 : i.toString(),
|
|
954
|
+
"aria-busy": (u = m["aria-busy"]) == null ? void 0 : u.toString(),
|
|
955
|
+
"aria-atomic": (f = m["aria-atomic"]) == null ? void 0 : f.toString(),
|
|
956
|
+
"aria-live": (h = m["aria-live"]) == null ? void 0 : h.toString(),
|
|
958
957
|
"aria-multiselectable": !0
|
|
959
958
|
};
|
|
960
959
|
}
|
|
961
|
-
), d = x(null), b = x(null), T = x(null), _ = x(null), p = n(() => t.selectedValues.map(({ value: i }) => i)), { isMultiLevelSelect: C, flattenedItemsList: R } =
|
|
960
|
+
), d = x(null), b = x(null), T = x(null), _ = x(null), p = n(() => t.selectedValues.map(({ value: i }) => i)), { isMultiLevelSelect: C, flattenedItemsList: R } = Yt(H(t, "items")), B = n(() => C.value && !t.staticCategories), I = n(() => B.value ? "tree" : "listbox"), O = n(() => B.value ? "treeitem" : "option"), S = (i) => {
|
|
962
961
|
var h;
|
|
963
|
-
const u = t.isOptionDisabled(i),
|
|
964
|
-
return { isDisabled: u, isPreSelected:
|
|
962
|
+
const u = t.isOptionDisabled(i), f = ((h = p.value) == null ? void 0 : h.includes(i.value)) || !1;
|
|
963
|
+
return { isDisabled: u, isPreSelected: f };
|
|
965
964
|
}, v = n(() => {
|
|
966
965
|
if (t.searching && C)
|
|
967
966
|
return t.items;
|
|
968
967
|
const i = R.value.filter((u) => {
|
|
969
|
-
const { isDisabled:
|
|
970
|
-
return
|
|
968
|
+
const { isDisabled: f, isPreSelected: h } = S(u);
|
|
969
|
+
return f && h || !f;
|
|
971
970
|
});
|
|
972
971
|
return t.selectedValues.forEach((u) => {
|
|
973
|
-
i.find((
|
|
972
|
+
i.find((f) => f.value === u.value) || i.push(u);
|
|
974
973
|
}), i;
|
|
975
974
|
}), y = n(
|
|
976
975
|
() => {
|
|
977
976
|
var i;
|
|
978
977
|
return (i = v.value) == null ? void 0 : i.filter((u) => {
|
|
979
|
-
var
|
|
978
|
+
var f;
|
|
980
979
|
return u.items && C.value && t.searching ? u.items.filter(
|
|
981
980
|
(g) => (t.selectedValues ?? []).includes(g.value)
|
|
982
|
-
).length === u.items.length : (
|
|
981
|
+
).length === u.items.length : (f = p.value) == null ? void 0 : f.includes(u.value);
|
|
983
982
|
});
|
|
984
983
|
}
|
|
985
984
|
), D = () => C.value && !t.searching ? R.value.length : t.items.length, P = n(() => {
|
|
986
985
|
var h;
|
|
987
|
-
const i = v.value.length, u = D(),
|
|
988
|
-
return
|
|
986
|
+
const i = v.value.length, u = D(), f = ((h = y.value) == null ? void 0 : h.length) || 0;
|
|
987
|
+
return f === 0 ? o("selectAll", { total: a(i) }) : f === u ? o("allSelected", { total: a(u) }) : f <= u ? o("numberOfTotalSelected", { number: a(f), total: a(u) }) : o("numbersSelected", { number: a(f) });
|
|
989
988
|
}), E = (i) => {
|
|
990
989
|
const u = (h) => {
|
|
991
990
|
const { isDisabled: g, isPreSelected: F } = S(h);
|
|
992
991
|
return g && F || !g;
|
|
993
|
-
},
|
|
994
|
-
l("select", [...t.selectedValues, ...
|
|
992
|
+
}, f = i.filter(u).filter((h) => !p.value.includes(h.value));
|
|
993
|
+
l("select", [...t.selectedValues, ...f]);
|
|
995
994
|
}, L = (i) => {
|
|
996
995
|
const u = (g) => {
|
|
997
996
|
const { isDisabled: F, isPreSelected: $e } = S(g);
|
|
998
997
|
return !(F && $e);
|
|
999
|
-
},
|
|
998
|
+
}, f = i.filter(u).map(({ value: g }) => g), h = t.selectedValues.filter((g) => !(f != null && f.includes(g.value)));
|
|
1000
999
|
l("select", h);
|
|
1001
1000
|
}, $ = () => {
|
|
1002
1001
|
E(R.value);
|
|
1003
1002
|
}, Y = () => {
|
|
1004
1003
|
L(R.value);
|
|
1005
|
-
}, { isAllSelected: z, isIndeterminate: k, toggleSelectAll: V } =
|
|
1004
|
+
}, { isAllSelected: z, isIndeterminate: k, toggleSelectAll: V } = ye(
|
|
1006
1005
|
y,
|
|
1007
1006
|
v,
|
|
1008
1007
|
$,
|
|
1009
1008
|
Y
|
|
1010
|
-
),
|
|
1009
|
+
), xe = n(() => k.value ? "mixed" : `${z.value}`), q = x(z.value), Oe = () => {
|
|
1011
1010
|
q.value = !q.value, V(q.value);
|
|
1012
1011
|
};
|
|
1013
1012
|
X(z, () => {
|
|
1014
1013
|
q.value = z.value;
|
|
1015
1014
|
});
|
|
1016
|
-
const
|
|
1015
|
+
const Ee = (i) => {
|
|
1017
1016
|
E(i.items);
|
|
1018
|
-
},
|
|
1017
|
+
}, Te = (i) => {
|
|
1019
1018
|
L(i.items);
|
|
1020
|
-
},
|
|
1021
|
-
let
|
|
1022
|
-
const h = t.selectedValues.filter(({ value: g }) => u.value === g ? (
|
|
1023
|
-
|
|
1024
|
-
},
|
|
1019
|
+
}, Ie = (i, u) => {
|
|
1020
|
+
let f = !1;
|
|
1021
|
+
const h = t.selectedValues.filter(({ value: g }) => u.value === g ? (f = !0, !1) : !0);
|
|
1022
|
+
f || h.push(u), l(i, h);
|
|
1023
|
+
}, Ae = n(() => {
|
|
1025
1024
|
if (!C.value)
|
|
1026
1025
|
return t.selectedValues;
|
|
1027
1026
|
const i = (g) => p.value.includes(g.value), u = (g) => !t.staticCategories && g.every((F) => i(F));
|
|
1028
1027
|
return t.items.flatMap(
|
|
1029
1028
|
(g) => g.items && !u(g.items) ? g.items : g
|
|
1030
1029
|
).filter((g) => g.items ? !0 : i(g));
|
|
1031
|
-
}),
|
|
1032
|
-
var
|
|
1033
|
-
const i = ["automatic", "button"].includes(t.lazyLoadType), u = ((
|
|
1030
|
+
}), Le = n(() => {
|
|
1031
|
+
var f, h, g, F;
|
|
1032
|
+
const i = ["automatic", "button"].includes(t.lazyLoadType), u = ((f = t.selectedValues) == null ? void 0 : f.length) > 0 && ((h = y.value) == null ? void 0 : h.length) !== ((g = R.value) == null ? void 0 : g.length);
|
|
1034
1033
|
return i && t.hasMoreItems ? !!((F = t.selectedValues) != null && F.length) : u;
|
|
1035
|
-
}),
|
|
1034
|
+
}), ae = n(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), W = x([]), { visibleDomOptions: Q, updateVisibleDomOptions: ne } = Se(
|
|
1036
1035
|
d,
|
|
1037
1036
|
H(t, "items"),
|
|
1038
1037
|
O
|
|
1039
1038
|
), ke = (i) => {
|
|
1040
|
-
W.value.includes(i) ? W.value = W.value.filter((u) => u !== i) : W.value.push(i),
|
|
1041
|
-
|
|
1039
|
+
W.value.includes(i) ? W.value = W.value.filter((u) => u !== i) : W.value.push(i), pe(() => {
|
|
1040
|
+
ne();
|
|
1042
1041
|
});
|
|
1043
|
-
},
|
|
1042
|
+
}, ie = (i) => {
|
|
1044
1043
|
var u;
|
|
1045
1044
|
(u = Q.value[i]) == null || u.focus();
|
|
1046
1045
|
}, {
|
|
1047
|
-
moveToNextElement:
|
|
1048
|
-
moveToPreviousElement:
|
|
1049
|
-
moveToFirstElement:
|
|
1050
|
-
moveToLastElement:
|
|
1046
|
+
moveToNextElement: ce,
|
|
1047
|
+
moveToPreviousElement: re,
|
|
1048
|
+
moveToFirstElement: ue,
|
|
1049
|
+
moveToLastElement: de,
|
|
1051
1050
|
preventDefault: ee,
|
|
1052
1051
|
focusedIndex: Re,
|
|
1053
|
-
setListboxFocusedIndex:
|
|
1054
|
-
} =
|
|
1052
|
+
setListboxFocusedIndex: be
|
|
1053
|
+
} = he(
|
|
1055
1054
|
{
|
|
1056
1055
|
items: Q
|
|
1057
1056
|
},
|
|
1058
|
-
|
|
1057
|
+
ie
|
|
1059
1058
|
), De = {
|
|
1060
|
-
[M.ARROW_UP]: (i) =>
|
|
1061
|
-
[M.ARROW_DOWN]: (i) =>
|
|
1062
|
-
[M.HOME]:
|
|
1063
|
-
[M.END]:
|
|
1059
|
+
[M.ARROW_UP]: (i) => re(i),
|
|
1060
|
+
[M.ARROW_DOWN]: (i) => ce(i),
|
|
1061
|
+
[M.HOME]: ue,
|
|
1062
|
+
[M.END]: de
|
|
1064
1063
|
};
|
|
1065
1064
|
e({
|
|
1066
1065
|
/**
|
|
1067
1066
|
* Method to set the index of the item to be focused on
|
|
1068
1067
|
* Used for focus management to be kept in-sync with parent e.g. dropdowns
|
|
1069
1068
|
*/
|
|
1070
|
-
setListboxFocusedIndex:
|
|
1069
|
+
setListboxFocusedIndex: be
|
|
1071
1070
|
});
|
|
1072
1071
|
const Be = {
|
|
1073
1072
|
[M.ARROW_UP]: ee,
|
|
1074
1073
|
[M.ARROW_DOWN]: ee
|
|
1075
1074
|
}, Me = n(() => {
|
|
1076
|
-
let i = 1;
|
|
1075
|
+
let i = ae.value ? 1 : 0;
|
|
1077
1076
|
const u = {};
|
|
1078
|
-
return t.items.forEach((
|
|
1079
|
-
let h = W.value.includes(
|
|
1080
|
-
|
|
1077
|
+
return t.items.forEach((f) => {
|
|
1078
|
+
let h = W.value.includes(f.value);
|
|
1079
|
+
f.items ? (t.staticCategories ? h = !0 : u[f.value] = i++, h && f.items.forEach((g) => u[g.value] = i++)) : u[f.value] = i++;
|
|
1081
1080
|
}), u;
|
|
1082
1081
|
});
|
|
1083
|
-
return { __sfc: !0, props: t, emit: l, t: o, n: a, slots: r, attrs:
|
|
1082
|
+
return { __sfc: !0, props: t, emit: l, t: o, n: a, slots: r, attrs: m, ariaAttributes: A, listboxRef: d, selectAllListboxItemsRef: b, selectedListboxItemsRef: T, listboxItemsRef: _, selectedItemsList: p, isMultiLevelSelect: C, flattenedItemsList: R, isTreePattern: B, computedRole: I, computedOptionRole: O, optionStates: S, enabledItems: v, visibleSelectedList: y, calculateTotalItems: D, selectAllCheckboxText: P, selectAll: E, unselectAll: L, selectAllItems: $, unselectAllItems: Y, isAllSelected: z, isIndeterminate: k, toggleSelectAll: V, ariaCheckedComputed: xe, isSelectAllOn: q, handleSelectAll: Oe, selectAllCategory: Ee, unselectAllCategory: Te, toggleCheckboxSelection: Ie, selectedOptions: Ae, showSelectedItems: Le, showSelectAllCheckbox: ae, expandedCategories: W, visibleDomOptions: Q, updateVisibleDomOptions: ne, toggleCategoryVisibility: ke, focusItem: ie, moveToNextElement: ce, moveToPreviousElement: re, moveToFirstElement: ue, moveToLastElement: de, preventDefault: ee, focusedIndex: Re, setListboxFocusedIndex: be, listboxListeners: De, chipsSectionListeners: Be, computedItemsIndex: Me, DecorativeCheckbox: oe, BentoTypography: j, BentoChip: We, BentoListboxOption: Z, ListboxMultiSelectOptions: Ft, vBentoKeyboardNavigationDirective: se, BentoListboxEvent: c };
|
|
1084
1083
|
}
|
|
1085
1084
|
});
|
|
1086
|
-
var
|
|
1085
|
+
var Wt = function() {
|
|
1087
1086
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
1088
1087
|
return l("div", { ref: "listboxRef", staticClass: "b-listbox-multi-select" }, [t.showSelectedItems ? l("div", [l("ul", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select__chips" }, t.chipsSectionListeners), e._l(t.selectedOptions, function(o) {
|
|
1089
1088
|
return l("li", { key: o.value }, [l(t.BentoChip, { ref: "selectedListboxItemsRef", refInFor: !0, attrs: { disabled: e.isOptionDisabled(o), label: o.label, condensed: "" }, on: { click: function(a) {
|
|
@@ -1104,15 +1103,20 @@ var Kt = function() {
|
|
|
1104
1103
|
return [e._t(a, null, null, r)];
|
|
1105
1104
|
} };
|
|
1106
1105
|
})], null, !0) })], 1)]);
|
|
1107
|
-
},
|
|
1106
|
+
}, Kt = [], jt = /* @__PURE__ */ N(
|
|
1107
|
+
Vt,
|
|
1108
1108
|
Wt,
|
|
1109
1109
|
Kt,
|
|
1110
|
-
jt,
|
|
1111
1110
|
!1,
|
|
1112
1111
|
null,
|
|
1113
|
-
"
|
|
1112
|
+
"b81d7402"
|
|
1114
1113
|
);
|
|
1115
|
-
const
|
|
1114
|
+
const _e = jt.exports, qt = (s, e = 300) => {
|
|
1115
|
+
let l;
|
|
1116
|
+
return (...o) => {
|
|
1117
|
+
l && clearTimeout(l), l = setTimeout(() => s(...o), e);
|
|
1118
|
+
};
|
|
1119
|
+
}, Ht = {
|
|
1116
1120
|
"de-DE": {
|
|
1117
1121
|
loading: "Laden",
|
|
1118
1122
|
showMore: "Mehr anzeigen"
|
|
@@ -1157,11 +1161,11 @@ const ge = qt.exports, Ht = {
|
|
|
1157
1161
|
name: "bento-listbox",
|
|
1158
1162
|
components: {
|
|
1159
1163
|
BentoEmptyState: Ye,
|
|
1160
|
-
BentoListboxSingleSelect:
|
|
1161
|
-
BentoListboxMultiSelect:
|
|
1164
|
+
BentoListboxSingleSelect: yt,
|
|
1165
|
+
BentoListboxMultiSelect: _e,
|
|
1162
1166
|
BentoTypography: j,
|
|
1163
1167
|
BentoLoadingIndicator: Fe,
|
|
1164
|
-
BentoLoadingButton:
|
|
1168
|
+
BentoLoadingButton: qe
|
|
1165
1169
|
},
|
|
1166
1170
|
directives: { BentoKeyboardNavigationDirective: se },
|
|
1167
1171
|
i18n: { messages: Ht },
|
|
@@ -1245,7 +1249,7 @@ const ge = qt.exports, Ht = {
|
|
|
1245
1249
|
*
|
|
1246
1250
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
1247
1251
|
*/
|
|
1248
|
-
searching:
|
|
1252
|
+
searching: _e.props.searching,
|
|
1249
1253
|
/**
|
|
1250
1254
|
* The `input` value.
|
|
1251
1255
|
* Providing an empty string or empty array will select no options.
|
|
@@ -1273,7 +1277,7 @@ const ge = qt.exports, Ht = {
|
|
|
1273
1277
|
c.TAB
|
|
1274
1278
|
],
|
|
1275
1279
|
setup(s, { emit: e, slots: l }) {
|
|
1276
|
-
const t = x([]), o = H(s, "items"), { t: a } = le(), r = n(() => s.lazyLoadType !== K.AUTOMATIC),
|
|
1280
|
+
const t = x([]), o = H(s, "items"), { t: a } = le(), r = n(() => s.lazyLoadType !== K.AUTOMATIC), m = n(() => s.lazyLoadType === K.AUTOMATIC), A = () => {
|
|
1277
1281
|
var k;
|
|
1278
1282
|
return typeof (s == null ? void 0 : s.virtualScroll) == "object" && ((k = s == null ? void 0 : s.virtualScroll) != null && k.itemHeight) ? s.virtualScroll.itemHeight : Xt;
|
|
1279
1283
|
}, {
|
|
@@ -1282,7 +1286,7 @@ const ge = qt.exports, Ht = {
|
|
|
1282
1286
|
onScroll: T,
|
|
1283
1287
|
list: _,
|
|
1284
1288
|
wrapperProps: p
|
|
1285
|
-
} =
|
|
1289
|
+
} = He(o, {
|
|
1286
1290
|
itemHeight: A(),
|
|
1287
1291
|
// Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
|
|
1288
1292
|
disabled: (s == null ? void 0 : s.multiple) || (s == null ? void 0 : s.virtualScroll) === !1 || (s == null ? void 0 : s.lazyLoadType) !== "none"
|
|
@@ -1308,14 +1312,14 @@ const ge = qt.exports, Ht = {
|
|
|
1308
1312
|
e(k, V);
|
|
1309
1313
|
}, v = () => {
|
|
1310
1314
|
e(c.SHOW_MORE);
|
|
1311
|
-
}, y =
|
|
1315
|
+
}, y = qt(() => {
|
|
1312
1316
|
const k = d.value;
|
|
1313
1317
|
if (!k)
|
|
1314
1318
|
return;
|
|
1315
1319
|
const V = Math.round(k.scrollTop) + k.clientHeight >= k.scrollHeight;
|
|
1316
1320
|
s.hasMoreItems && V && !s.loading && v();
|
|
1317
1321
|
}), D = () => {
|
|
1318
|
-
|
|
1322
|
+
m.value ? y() : T();
|
|
1319
1323
|
}, P = n(() => {
|
|
1320
1324
|
var k;
|
|
1321
1325
|
return ((k = s.items) == null ? void 0 : k.length) === 0;
|
|
@@ -1382,7 +1386,7 @@ var Zt = function() {
|
|
|
1382
1386
|
null,
|
|
1383
1387
|
"35cb3605"
|
|
1384
1388
|
);
|
|
1385
|
-
const
|
|
1389
|
+
const ys = es.exports, te = (s, e) => {
|
|
1386
1390
|
for (const l of s) {
|
|
1387
1391
|
if (l.value === e)
|
|
1388
1392
|
return l;
|
|
@@ -1393,13 +1397,13 @@ const hs = es.exports, te = (s, e) => {
|
|
|
1393
1397
|
}
|
|
1394
1398
|
}
|
|
1395
1399
|
return null;
|
|
1396
|
-
}, ts = (s) => typeof s == "object" && s !== null && "value" in s && "label" in s,
|
|
1400
|
+
}, ts = (s) => typeof s == "object" && s !== null && "value" in s && "label" in s, hs = (s, e, l, t) => {
|
|
1397
1401
|
const o = x([]), a = x(), r = (b) => {
|
|
1398
1402
|
l.value ? a.value = b.map(({ value: T }) => T) : a.value = b.length > 0 ? b[0].value : null;
|
|
1399
|
-
},
|
|
1403
|
+
}, m = (b) => {
|
|
1400
1404
|
l.value ? a.value = b.map(({ value: T, label: _ }) => ({ value: T, label: _ })) : a.value = b.length > 0 ? { value: b[0].value, label: b[0].label } : null;
|
|
1401
1405
|
}, A = (b) => {
|
|
1402
|
-
o.value = b, t != null && t.value ?
|
|
1406
|
+
o.value = b, t != null && t.value ? m(b) : r(b);
|
|
1403
1407
|
}, d = () => {
|
|
1404
1408
|
o.value = [], a.value = null;
|
|
1405
1409
|
};
|
|
@@ -1422,10 +1426,10 @@ const hs = es.exports, te = (s, e) => {
|
|
|
1422
1426
|
};
|
|
1423
1427
|
if (b) {
|
|
1424
1428
|
const p = e.value;
|
|
1425
|
-
_(p), t != null && t.value ?
|
|
1429
|
+
_(p), t != null && t.value ? m(o.value) : r(o.value);
|
|
1426
1430
|
return;
|
|
1427
1431
|
}
|
|
1428
|
-
e.value.forEach(_), t != null && t.value ?
|
|
1432
|
+
e.value.forEach(_), t != null && t.value ? m(o.value) : r(o.value);
|
|
1429
1433
|
},
|
|
1430
1434
|
{ immediate: !0 }
|
|
1431
1435
|
), {
|
|
@@ -1439,12 +1443,13 @@ const hs = es.exports, te = (s, e) => {
|
|
|
1439
1443
|
};
|
|
1440
1444
|
export {
|
|
1441
1445
|
c as B,
|
|
1442
|
-
|
|
1446
|
+
rt as C,
|
|
1443
1447
|
oe as D,
|
|
1444
1448
|
K as a,
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
+
ys as b,
|
|
1450
|
+
Yt as c,
|
|
1451
|
+
qt as d,
|
|
1452
|
+
Se as e,
|
|
1453
|
+
hs as u
|
|
1449
1454
|
};
|
|
1450
|
-
//# sourceMappingURL=use-cached-selected-values.
|
|
1455
|
+
//# sourceMappingURL=use-cached-selected-values.BJbWbkEQ.js.map
|