@eightshift/ui-components 7.2.1 → 7.3.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/Autocomplete-pLMPWMFq.js +451 -0
- package/dist/Button-Biwg7zwt.js +223 -0
- package/dist/Dialog-C1sh8jbh.js +2474 -0
- package/dist/{Disclosure-NYWFw9RJ.js → Disclosure-B_SHgiUz.js} +50 -51
- package/dist/FocusScope-lGkM8AO8.js +734 -0
- package/dist/Form-BxIJCHYd.js +5 -0
- package/dist/Heading-B2EsUuu6.js +16 -0
- package/dist/{Hidden-8TB37dpK.js → Hidden-DYY00jLm.js} +10 -10
- package/dist/I18nProvider-Cm6dj5jY.js +93 -0
- package/dist/Label-B1TkoVOG.js +17 -0
- package/dist/ListBox-BquE0m8z.js +584 -0
- package/dist/{NumberFormatter-m5VW6MTK.js → NumberFormatter-JHF0Tadk.js} +24 -26
- package/dist/PortalProvider-BYcv24il.js +13 -0
- package/dist/RadioGroup-BxjLooWU.js +324 -0
- package/dist/SearchField-BkAU0HLm.js +322 -0
- package/dist/SelectionIndicator-Bx_EYBXD.js +13 -0
- package/dist/{Slider-DW1RuMVp.js → Slider-DSv6fyZ6.js} +321 -363
- package/dist/Text-C8pfwn0W.js +16 -0
- package/dist/{VisuallyHidden-CfsnJHZb.js → VisuallyHidden-KcXlGa5p.js} +12 -12
- package/dist/{animation-Bd2peown.js → animation-BJ-2VKdB.js} +12 -12
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/{button-D9cbyHeZ.js → button-CawAzlko.js} +21 -73
- package/dist/{checkbox-BO5RZmO8.js → checkbox-t7VrqXv2.js} +59 -62
- package/dist/{color-swatch-D2ZBkuTt.js → color-swatch-gU09x9Ga.js} +417 -414
- package/dist/components/base-control/base-control.js +2 -2
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +5 -5
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/index.js +15 -15
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +5 -5
- package/dist/components/menu/menu.js +11 -11
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +3 -3
- package/dist/components/options-panel/options-panel.js +3 -3
- package/dist/components/placeholders/file-picker-shell.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +6 -6
- package/dist/components/portal-provider/portal-provider.js +2 -2
- package/dist/components/radio/radio.js +9 -9
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +3 -3
- package/dist/components/responsive/mini-responsive.js +6 -6
- package/dist/components/responsive/responsive-legacy.js +5 -5
- package/dist/components/responsive/responsive.js +5 -5
- package/dist/components/responsive-preview/responsive-preview.js +2 -2
- package/dist/components/select/async-multi-select.js +27 -26
- package/dist/components/select/async-select.js +27 -26
- package/dist/components/select/multi-select.js +33 -32
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +33 -32
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +8 -8
- package/dist/components/slider/slider.js +8 -8
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +3 -3
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-CTDVJ4zd.js → draggable-Cxv-OueQ.js} +1 -1
- package/dist/filterDOMProps-BfW758QC.js +69 -0
- package/dist/{gradient-editor-CD5Sho6A.js → gradient-editor-CInqVF8v.js} +6 -6
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +15 -15
- package/dist/{input-field-_OCWbftf.js → input-field-BdFrxQ-R.js} +46 -47
- package/dist/keyboard-CT41mQzR.js +55 -0
- package/dist/{link-input-BnjtzMbF.js → link-input-BDFhSSvH.js} +324 -356
- package/dist/{modal-snrElwty.js → modal-CJDaBdPh.js} +100 -92
- package/dist/{number-ZZIxJukn.js → number-MWRvGfyE.js} +10 -10
- package/dist/{number-picker-Dhtx4409.js → number-picker-BrxrB-xq.js} +43 -42
- package/dist/{shared-BpAYSi3F.js → shared-CI4kcnm8.js} +482 -502
- package/dist/{smart-image-CBNbxJ57.js → smart-image-eGdMu9s9.js} +2 -2
- package/dist/{solid-color-picker-DukArNH-.js → solid-color-picker-DXgX-OAm.js} +926 -935
- package/dist/{switch-DmsvyQPa.js → switch-DNHFoCCx.js} +28 -28
- package/dist/{tabs-Cy6gB0RL.js → tabs-C2tPOEYr.js} +145 -149
- package/dist/textSelection-BhX_2zV9.js +45 -0
- package/dist/{toggle-button-BlzUGfGy.js → toggle-button-DYDp11rq.js} +35 -35
- package/dist/{tooltip-BzJzYlcc.js → tooltip-C-hT6tN9.js} +162 -162
- package/dist/{useAsyncList-BNzwKoX4.js → useAsyncList-DsOh1xIx.js} +54 -74
- package/dist/{useButton-ra1ZSZ4z.js → useButton-BMZc4fTX.js} +11 -11
- package/dist/{SelectionManager-B8lLv6Ue.js → useCollection-CBVYSuGz.js} +1689 -1777
- package/dist/{useEvent-DkZVfgsS.js → useEvent-ypAU33vv.js} +5 -5
- package/dist/useField-BXf__jxy.js +32 -0
- package/dist/{useFilter-OiMnf6sb.js → useFilter-CfKEbIwL.js} +5 -5
- package/dist/{useFocusRing-DuYL4cdO.js → useFocusRing-BgYY-7ko.js} +23 -23
- package/dist/useFormReset-BuMc_O4y.js +17 -0
- package/dist/{FieldError-BWDbP5Db.js → useFormValidation-BcME9D0E.js} +63 -66
- package/dist/useHover-lyApu3ba.js +975 -0
- package/dist/{useLabel-2EohW5l6.js → useLabel-Rv8cIIKk.js} +8 -8
- package/dist/{useLabels-B2p7RXi5.js → useLabels-xOYtkA8o.js} +5 -5
- package/dist/useListState-u6DfeXHi.js +135 -0
- package/dist/{useLocalizedStringFormatter-Dv2diN3k.js → useLocalizedStringFormatter-CR-bmorj.js} +45 -45
- package/dist/{useNumberField-2xbi3jRV.js → useNumberFieldState-xL-ecwNz.js} +665 -619
- package/dist/useNumberFormatter-CR1PAFPG.js +10 -0
- package/dist/useOverlayTriggerState-AeCx45Gv.js +551 -0
- package/dist/usePress-Dnx5rBoD.js +593 -0
- package/dist/useTextField-BW3ZwGyz.js +159 -0
- package/dist/{useToggle-ecIirvIM.js → useToggle-BF5wptMP.js} +19 -20
- package/dist/useToggleState-D5P01lch.js +22 -0
- package/dist/useToolbar-BT25-MJg.js +55 -0
- package/dist/utilities/debounce-throttle.js +1 -1
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +3 -3
- package/dist/{utils-B_uiqNa4.js → utils-JFcCNFzy.js} +121 -122
- package/package.json +13 -13
- package/dist/Button-h6xF_WrP.js +0 -225
- package/dist/Dialog-i5VLQw1o.js +0 -2488
- package/dist/FocusScope-CgwbGOBB.js +0 -746
- package/dist/Form-DTMkbrQY.js +0 -5
- package/dist/Heading-Hol-wS_B.js +0 -16
- package/dist/Input-BURqyJXW.js +0 -161
- package/dist/Label-DFXXxMKY.js +0 -17
- package/dist/ListBox-BHUJxpwh.js +0 -600
- package/dist/OverlayArrow-BoloUPQM.js +0 -573
- package/dist/PortalProvider-DinZZCKX.js +0 -14
- package/dist/RSPContexts-C_z0bI8W.js +0 -12
- package/dist/RadioGroup-BwlGtCja.js +0 -329
- package/dist/SearchField-Cm1i5mLj.js +0 -764
- package/dist/SelectionIndicator-31L6EI9F.js +0 -13
- package/dist/Text-O6VBBDlP.js +0 -16
- package/dist/context-C-XNeJ_l.js +0 -93
- package/dist/filterDOMProps-_2_3GD-K.js +0 -69
- package/dist/textSelection-Dv6WPj0Z.js +0 -45
- package/dist/useField-D0WrzR2F.js +0 -32
- package/dist/useFormReset-DdkykzAn.js +0 -18
- package/dist/useHover-qaMm3XFO.js +0 -982
- package/dist/useListState-CD_5vfyy.js +0 -147
- package/dist/useNumberFormatter-C2Cm2mNj.js +0 -10
- package/dist/usePress-ZP1TjkFf.js +0 -678
- package/dist/useToggleState-IIDbiKPl.js +0 -23
- /package/dist/{List-DWlgW2Ex.js → List---tsVJlI.js} +0 -0
- /package/dist/{build-module-Bsx62nlm.js → build-module-K6vi4xE0.js} +0 -0
- /package/dist/{debounce-throttle-DXxSAKpq.js → debounce-throttle-LSPAPFtq.js} +0 -0
- /package/dist/{dist-2gkv7_1U.js → dist-jw8wvxoG.js} +0 -0
- /package/dist/{es-dash-HqXWZZ3_.js → es-dash-BuShf_ht.js} +0 -0
- /package/dist/{jsx-svg-DgKbriN1.js → jsx-svg-DT1SBWuP.js} +0 -0
- /package/dist/{utilities-lwX686oD.js → utilities-DV0KKJNR.js} +0 -0
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-BUU5J41u.js";
|
|
2
2
|
import { AnimatedVisibility } from "./components/animated-visibility/animated-visibility.js";
|
|
3
|
-
import { c as $
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as $
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as $
|
|
11
|
-
import { t as $
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as $
|
|
17
|
-
import {
|
|
18
|
-
import { a as $
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { t as $
|
|
23
|
-
import {
|
|
3
|
+
import { c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, g as $a4e76a5424781910$export$e08e3b67e392101e, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, p as $390e54f620492c70$export$f680877a34711e37, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$ef03459518577ad4, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-JFcCNFzy.js";
|
|
4
|
+
import { r as $b72f3f7b3b5f42c6$export$2b35b76d2e30e129 } from "./keyboard-CT41mQzR.js";
|
|
5
|
+
import { A as $2add3ce32c6007eb$export$e1865c3bedcd822b, H as $23f2114a1b82827e$export$e58f029f0fbfdb29, S as $caaf0dd3060ed57c$export$9a302a45f65d0572, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, W as $d447af545b77c9f1$export$b204af158042fbac, d as $3e6197669829fe11$export$40bfa8c7b0832715, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-lyApu3ba.js";
|
|
6
|
+
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-ypAU33vv.js";
|
|
7
|
+
import { t as $e8ac3c3f5d4bae7f$export$d6875122194c7b44 } from "./useLabels-xOYtkA8o.js";
|
|
8
|
+
import { t as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CR-bmorj.js";
|
|
9
|
+
import { g as $42ceafc619f9c3ba$export$bf788dd355e3a401, i as $cd5ea4b915021f1d$export$1005530eda016c13, s as $d667c2af82d35a98$export$d6daf82dcd84e87c } from "./useCollection-CBVYSuGz.js";
|
|
10
|
+
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-BfW758QC.js";
|
|
11
|
+
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5, t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-B1TkoVOG.js";
|
|
12
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1, r as $a46cf152bb926da5$export$a9b970dcc4ae71a9, t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-Biwg7zwt.js";
|
|
13
|
+
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-C8pfwn0W.js";
|
|
14
|
+
import { _ as $58196c8d6a1f38fc$export$1c3ebcada18427bf, d as $542a13ca2fa5b484$export$9b9a0cd73afb7ca4, l as $f19b83c1486f45cc$export$dc9c12ed27dd1b49, r as $f2ff30fde7b014be$export$d2f961adcb0afbe, u as $542a13ca2fa5b484$export$5b6b19405a83ff9d, v as $2efe10d3f1f9e31e$export$77d5aafae4e095b2, x as $ae8f8d98b2b18f2f$export$a05409b8bb224a5a } from "./Dialog-C1sh8jbh.js";
|
|
15
|
+
import { a as $1f3c3b1a70cec653$export$ff05c3ac10437e03, i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb } from "./useFormValidation-BcME9D0E.js";
|
|
16
|
+
import { t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-BxIJCHYd.js";
|
|
17
|
+
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-BuMc_O4y.js";
|
|
18
|
+
import { a as $3a442827418ebe87$export$f9c6924e160136d1, i as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069, t as $054f71d2330da2e3$export$712718f7aec83d5 } from "./useTextField-BW3ZwGyz.js";
|
|
19
|
+
import { i as $928221da08ecbc62$export$a11e76429ed99b4, n as $928221da08ecbc62$export$7c5906fe4f1f2af2, o as $cd088b5c0d7b27b4$export$3585ede4d035bf14, r as $928221da08ecbc62$export$7ff8f37d2d81a48d, s as $cd088b5c0d7b27b4$export$9145995848b05025, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-BquE0m8z.js";
|
|
20
|
+
import { r as $f664a81d022446b5$export$d085fb9e920b5ca7, t as $b14b6f590b50af39$export$2f645645f7bca764 } from "./useListState-u6DfeXHi.js";
|
|
21
|
+
import { r as $970072cf4b13fde3$export$683480f191c0e3ea, t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-AeCx45Gv.js";
|
|
22
|
+
import { t as $ef182bb9912241d8$export$3274cf84b703fff } from "./useFilter-CfKEbIwL.js";
|
|
23
|
+
import { n as Tooltip } from "./tooltip-C-hT6tN9.js";
|
|
24
|
+
import { t as $c73d3f3d5ec90946$export$bc3384a35de93d66 } from "./useAsyncList-DsOh1xIx.js";
|
|
24
25
|
import { RichLabel } from "./components/rich-label/rich-label.js";
|
|
25
26
|
import { BaseControl } from "./components/base-control/base-control.js";
|
|
26
27
|
import { randomId } from "./utilities/hash.js";
|
|
27
|
-
import { t as cva } from "./dist-
|
|
28
|
-
import { t as __ } from "./build-module-
|
|
28
|
+
import { t as cva } from "./dist-jw8wvxoG.js";
|
|
29
|
+
import { t as __ } from "./build-module-K6vi4xE0.js";
|
|
29
30
|
import { Spinner } from "./icons/spinner.js";
|
|
30
31
|
import { anchor } from "./icons/ui-icons/anchor.js";
|
|
31
32
|
import { clearAlt } from "./icons/ui-icons/clear-alt.js";
|
|
@@ -37,11 +38,11 @@ import { searchEmpty } from "./icons/ui-icons/search-empty.js";
|
|
|
37
38
|
import { formAlt } from "./icons/ui-icons/form-alt.js";
|
|
38
39
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
39
40
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
40
|
-
//#region node_modules
|
|
41
|
-
function $
|
|
41
|
+
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
|
|
42
|
+
function $3c71b1595a147f24$export$496315a1608d9602(cb, dependencies) {
|
|
42
43
|
const isInitialMount = useRef(true);
|
|
43
44
|
const lastDeps = useRef(null);
|
|
44
|
-
let cbEvent = $
|
|
45
|
+
let cbEvent = $fe16bffc7a557bf0$export$7f54fc3180508a52(cb);
|
|
45
46
|
useEffect(() => {
|
|
46
47
|
isInitialMount.current = true;
|
|
47
48
|
return () => {
|
|
@@ -56,9 +57,9 @@ function $4f58c5f72bcf79f7$export$496315a1608d9602(cb, dependencies) {
|
|
|
56
57
|
}, dependencies);
|
|
57
58
|
}
|
|
58
59
|
//#endregion
|
|
59
|
-
//#region node_modules
|
|
60
|
-
var $
|
|
61
|
-
$
|
|
60
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/ar-AE.mjs
|
|
61
|
+
var $44e96378ed9cec6d$exports = {};
|
|
62
|
+
$44e96378ed9cec6d$exports = {
|
|
62
63
|
"buttonLabel": `\u{639}\u{631}\u{636} \u{627}\u{644}\u{645}\u{642}\u{62A}\u{631}\u{62D}\u{627}\u{62A}`,
|
|
63
64
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
64
65
|
one: () => `${formatter.number(args.optionCount)} \u{62E}\u{64A}\u{627}\u{631}`,
|
|
@@ -78,9 +79,9 @@ $02cb4c75c506befe$exports = {
|
|
|
78
79
|
"selectedAnnouncement": (args) => `${args.optionText}\u{60C} \u{645}\u{62D}\u{62F}\u{62F}`
|
|
79
80
|
};
|
|
80
81
|
//#endregion
|
|
81
|
-
//#region node_modules
|
|
82
|
-
var $
|
|
83
|
-
$
|
|
82
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/bg-BG.mjs
|
|
83
|
+
var $4f2abbace6d15464$exports = {};
|
|
84
|
+
$4f2abbace6d15464$exports = {
|
|
84
85
|
"buttonLabel": `\u{41F}\u{43E}\u{43A}\u{430}\u{436}\u{438} \u{43F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}`,
|
|
85
86
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
86
87
|
one: () => `${formatter.number(args.optionCount)} \u{43E}\u{43F}\u{446}\u{438}\u{44F}`,
|
|
@@ -100,9 +101,9 @@ $568b8163f1e56faf$exports = {
|
|
|
100
101
|
"selectedAnnouncement": (args) => `${args.optionText}, \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`
|
|
101
102
|
};
|
|
102
103
|
//#endregion
|
|
103
|
-
//#region node_modules
|
|
104
|
-
var $
|
|
105
|
-
$
|
|
104
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/cs-CZ.mjs
|
|
105
|
+
var $c1cf508a70425b11$exports = {};
|
|
106
|
+
$c1cf508a70425b11$exports = {
|
|
106
107
|
"buttonLabel": `Zobrazit doporu\u{10D}en\xed`,
|
|
107
108
|
"countAnnouncement": (args, formatter) => `K dispozici ${formatter.plural(args.optionCount, {
|
|
108
109
|
one: () => `je ${formatter.number(args.optionCount)} mo\u{17E}nost`,
|
|
@@ -122,9 +123,9 @@ $87581c0202d106b8$exports = {
|
|
|
122
123
|
"selectedAnnouncement": (args) => `${args.optionText}, vybr\xe1no`
|
|
123
124
|
};
|
|
124
125
|
//#endregion
|
|
125
|
-
//#region node_modules
|
|
126
|
-
var $
|
|
127
|
-
$
|
|
126
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/da-DK.mjs
|
|
127
|
+
var $c6334dc4bef16229$exports = {};
|
|
128
|
+
$c6334dc4bef16229$exports = {
|
|
128
129
|
"buttonLabel": `Vis forslag`,
|
|
129
130
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
130
131
|
one: () => `${formatter.number(args.optionCount)} mulighed tilg\xe6ngelig`,
|
|
@@ -144,9 +145,9 @@ $a10a0369f5433ed1$exports = {
|
|
|
144
145
|
"selectedAnnouncement": (args) => `${args.optionText}, valgt`
|
|
145
146
|
};
|
|
146
147
|
//#endregion
|
|
147
|
-
//#region node_modules
|
|
148
|
-
var $
|
|
149
|
-
$
|
|
148
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/de-DE.mjs
|
|
149
|
+
var $3c1f280212fbe3e1$exports = {};
|
|
150
|
+
$3c1f280212fbe3e1$exports = {
|
|
150
151
|
"buttonLabel": `Empfehlungen anzeigen`,
|
|
151
152
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
152
153
|
one: () => `${formatter.number(args.optionCount)} Option`,
|
|
@@ -166,9 +167,9 @@ $bfd288727d5cb166$exports = {
|
|
|
166
167
|
"selectedAnnouncement": (args) => `${args.optionText}, ausgew\xe4hlt`
|
|
167
168
|
};
|
|
168
169
|
//#endregion
|
|
169
|
-
//#region node_modules
|
|
170
|
-
var $
|
|
171
|
-
$
|
|
170
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/el-GR.mjs
|
|
171
|
+
var $57ce5bfb234b266c$exports = {};
|
|
172
|
+
$57ce5bfb234b266c$exports = {
|
|
172
173
|
"buttonLabel": `\u{3A0}\u{3C1}\u{3BF}\u{3B2}\u{3BF}\u{3BB}\u{3AE} \u{3C0}\u{3C1}\u{3BF}\u{3C4}\u{3AC}\u{3C3}\u{3B5}\u{3C9}\u{3BD}`,
|
|
173
174
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
174
175
|
one: () => `${formatter.number(args.optionCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE}`,
|
|
@@ -188,9 +189,9 @@ $ca177778f9a74e3c$exports = {
|
|
|
188
189
|
"selectedAnnouncement": (args) => `${args.optionText}, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5}`
|
|
189
190
|
};
|
|
190
191
|
//#endregion
|
|
191
|
-
//#region node_modules
|
|
192
|
-
var $
|
|
193
|
-
$
|
|
192
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/en-US.mjs
|
|
193
|
+
var $2bdcc92d206ae897$exports = {};
|
|
194
|
+
$2bdcc92d206ae897$exports = {
|
|
194
195
|
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
195
196
|
true: () => `Entered group ${args.groupTitle}, with ${formatter.plural(args.groupCount, {
|
|
196
197
|
one: () => `${formatter.number(args.groupCount)} option`,
|
|
@@ -210,9 +211,9 @@ $9b5aa79ef84beb6c$exports = {
|
|
|
210
211
|
"listboxLabel": `Suggestions`
|
|
211
212
|
};
|
|
212
213
|
//#endregion
|
|
213
|
-
//#region node_modules
|
|
214
|
-
var $
|
|
215
|
-
$
|
|
214
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/es-ES.mjs
|
|
215
|
+
var $05b3b7ff042563de$exports = {};
|
|
216
|
+
$05b3b7ff042563de$exports = {
|
|
216
217
|
"buttonLabel": `Mostrar sugerencias`,
|
|
217
218
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
218
219
|
one: () => `${formatter.number(args.optionCount)} opci\xf3n`,
|
|
@@ -232,9 +233,9 @@ $57968e8209de2557$exports = {
|
|
|
232
233
|
"selectedAnnouncement": (args) => `${args.optionText}, seleccionado`
|
|
233
234
|
};
|
|
234
235
|
//#endregion
|
|
235
|
-
//#region node_modules
|
|
236
|
-
var $
|
|
237
|
-
$
|
|
236
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/et-EE.mjs
|
|
237
|
+
var $5ae036907590ca8d$exports = {};
|
|
238
|
+
$5ae036907590ca8d$exports = {
|
|
238
239
|
"buttonLabel": `Kuva soovitused`,
|
|
239
240
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
240
241
|
one: () => `${formatter.number(args.optionCount)} valik`,
|
|
@@ -254,9 +255,9 @@ $60690790bf4c1c6a$exports = {
|
|
|
254
255
|
"selectedAnnouncement": (args) => `${args.optionText}, valitud`
|
|
255
256
|
};
|
|
256
257
|
//#endregion
|
|
257
|
-
//#region node_modules
|
|
258
|
-
var $
|
|
259
|
-
$
|
|
258
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/fi-FI.mjs
|
|
259
|
+
var $f1b3c1991f38986b$exports = {};
|
|
260
|
+
$f1b3c1991f38986b$exports = {
|
|
260
261
|
"buttonLabel": `N\xe4yt\xe4 ehdotukset`,
|
|
261
262
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
262
263
|
one: () => `${formatter.number(args.optionCount)} vaihtoehto`,
|
|
@@ -276,9 +277,9 @@ $1101246e8c7d9357$exports = {
|
|
|
276
277
|
"selectedAnnouncement": (args) => `${args.optionText}, valittu`
|
|
277
278
|
};
|
|
278
279
|
//#endregion
|
|
279
|
-
//#region node_modules
|
|
280
|
-
var $
|
|
281
|
-
$
|
|
280
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/fr-FR.mjs
|
|
281
|
+
var $7013cb8c11464d70$exports = {};
|
|
282
|
+
$7013cb8c11464d70$exports = {
|
|
282
283
|
"buttonLabel": `Afficher les suggestions`,
|
|
283
284
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
284
285
|
one: () => `${formatter.number(args.optionCount)} option`,
|
|
@@ -298,9 +299,9 @@ $6404b5cb5b241730$exports = {
|
|
|
298
299
|
"selectedAnnouncement": (args) => `${args.optionText}, s\xe9lectionn\xe9`
|
|
299
300
|
};
|
|
300
301
|
//#endregion
|
|
301
|
-
//#region node_modules
|
|
302
|
-
var $
|
|
303
|
-
$
|
|
302
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/he-IL.mjs
|
|
303
|
+
var $072bbd14cdc5486c$exports = {};
|
|
304
|
+
$072bbd14cdc5486c$exports = {
|
|
304
305
|
"buttonLabel": `\u{5D4}\u{5E6}\u{5D2} \u{5D4}\u{5E6}\u{5E2}\u{5D5}\u{5EA}`,
|
|
305
306
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
306
307
|
one: () => `\u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5EA} ${formatter.number(args.optionCount)}`,
|
|
@@ -320,9 +321,9 @@ $dfeafa702e92e31f$exports = {
|
|
|
320
321
|
"selectedAnnouncement": (args) => `${args.optionText}, \u{5E0}\u{5D1}\u{5D7}\u{5E8}`
|
|
321
322
|
};
|
|
322
323
|
//#endregion
|
|
323
|
-
//#region node_modules
|
|
324
|
-
var $
|
|
325
|
-
$
|
|
324
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/hr-HR.mjs
|
|
325
|
+
var $0f316c1985a6fee3$exports = {};
|
|
326
|
+
$0f316c1985a6fee3$exports = {
|
|
326
327
|
"buttonLabel": `Prika\u{17E}i prijedloge`,
|
|
327
328
|
"countAnnouncement": (args, formatter) => `Dostupno jo\u{161}: ${formatter.plural(args.optionCount, {
|
|
328
329
|
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
@@ -342,9 +343,9 @@ $2d125e0b34676352$exports = {
|
|
|
342
343
|
"selectedAnnouncement": (args) => `${args.optionText}, odabrano`
|
|
343
344
|
};
|
|
344
345
|
//#endregion
|
|
345
|
-
//#region node_modules
|
|
346
|
-
var $
|
|
347
|
-
$
|
|
346
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/hu-HU.mjs
|
|
347
|
+
var $ac61c1e7905e0d09$exports = {};
|
|
348
|
+
$ac61c1e7905e0d09$exports = {
|
|
348
349
|
"buttonLabel": `Javaslatok megjelen\xedt\xe9se`,
|
|
349
350
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
350
351
|
one: () => `${formatter.number(args.optionCount)} lehet\u{151}s\xe9g`,
|
|
@@ -364,9 +365,9 @@ $ea029611d7634059$exports = {
|
|
|
364
365
|
"selectedAnnouncement": (args) => `${args.optionText}, kijel\xf6lve`
|
|
365
366
|
};
|
|
366
367
|
//#endregion
|
|
367
|
-
//#region node_modules
|
|
368
|
-
var $
|
|
369
|
-
$
|
|
368
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/it-IT.mjs
|
|
369
|
+
var $ecca75177af99ba0$exports = {};
|
|
370
|
+
$ecca75177af99ba0$exports = {
|
|
370
371
|
"buttonLabel": `Mostra suggerimenti`,
|
|
371
372
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
372
373
|
one: () => `${formatter.number(args.optionCount)} opzione disponibile`,
|
|
@@ -386,9 +387,9 @@ $77f075bb86ad7091$exports = {
|
|
|
386
387
|
"selectedAnnouncement": (args) => `${args.optionText}, selezionato`
|
|
387
388
|
};
|
|
388
389
|
//#endregion
|
|
389
|
-
//#region node_modules
|
|
390
|
-
var $
|
|
391
|
-
$
|
|
390
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/ja-JP.mjs
|
|
391
|
+
var $8160c4de84c67861$exports = {};
|
|
392
|
+
$8160c4de84c67861$exports = {
|
|
392
393
|
"buttonLabel": `\u{5019}\u{88DC}\u{3092}\u{8868}\u{793A}`,
|
|
393
394
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
394
395
|
one: () => `${formatter.number(args.optionCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`,
|
|
@@ -408,9 +409,9 @@ $6e87462e84907983$exports = {
|
|
|
408
409
|
"selectedAnnouncement": (args) => `${args.optionText}\u{3001}\u{9078}\u{629E}\u{6E08}\u{307F}`
|
|
409
410
|
};
|
|
410
411
|
//#endregion
|
|
411
|
-
//#region node_modules
|
|
412
|
-
var $
|
|
413
|
-
$
|
|
412
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/ko-KR.mjs
|
|
413
|
+
var $1ef3deffd88c8b37$exports = {};
|
|
414
|
+
$1ef3deffd88c8b37$exports = {
|
|
414
415
|
"buttonLabel": `\u{C81C}\u{C548} \u{C0AC}\u{D56D} \u{D45C}\u{C2DC}`,
|
|
415
416
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
416
417
|
one: () => `${formatter.number(args.optionCount)}\u{AC1C} \u{C635}\u{C158}`,
|
|
@@ -430,9 +431,9 @@ $9246f2c6edc6b232$exports = {
|
|
|
430
431
|
"selectedAnnouncement": (args) => `${args.optionText}, \u{C120}\u{D0DD}\u{B428}`
|
|
431
432
|
};
|
|
432
433
|
//#endregion
|
|
433
|
-
//#region node_modules
|
|
434
|
-
var $
|
|
435
|
-
$
|
|
434
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/lt-LT.mjs
|
|
435
|
+
var $78699a5d964b2618$exports = {};
|
|
436
|
+
$78699a5d964b2618$exports = {
|
|
436
437
|
"buttonLabel": `Rodyti pasi\u{16B}lymus`,
|
|
437
438
|
"countAnnouncement": (args, formatter) => `Yra ${formatter.plural(args.optionCount, {
|
|
438
439
|
one: () => `${formatter.number(args.optionCount)} parinktis`,
|
|
@@ -452,9 +453,9 @@ $e587accc6c0a434c$exports = {
|
|
|
452
453
|
"selectedAnnouncement": (args) => `${args.optionText}, pasirinkta`
|
|
453
454
|
};
|
|
454
455
|
//#endregion
|
|
455
|
-
//#region node_modules
|
|
456
|
-
var $
|
|
457
|
-
$
|
|
456
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/lv-LV.mjs
|
|
457
|
+
var $f37ba73ed1338143$exports = {};
|
|
458
|
+
$f37ba73ed1338143$exports = {
|
|
458
459
|
"buttonLabel": `R\u{101}d\u{12B}t ieteikumus`,
|
|
459
460
|
"countAnnouncement": (args, formatter) => `Pieejamo opciju skaits: ${formatter.plural(args.optionCount, {
|
|
460
461
|
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
@@ -474,9 +475,9 @@ $03a1900e7400b5ab$exports = {
|
|
|
474
475
|
"selectedAnnouncement": (args) => `${args.optionText}, atlas\u{12B}ta`
|
|
475
476
|
};
|
|
476
477
|
//#endregion
|
|
477
|
-
//#region node_modules
|
|
478
|
-
var $
|
|
479
|
-
$
|
|
478
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/nb-NO.mjs
|
|
479
|
+
var $8a4e7bb0d7414172$exports = {};
|
|
480
|
+
$8a4e7bb0d7414172$exports = {
|
|
480
481
|
"buttonLabel": `Vis forslag`,
|
|
481
482
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
482
483
|
one: () => `${formatter.number(args.optionCount)} alternativ`,
|
|
@@ -496,9 +497,9 @@ $1387676441be6cf6$exports = {
|
|
|
496
497
|
"selectedAnnouncement": (args) => `${args.optionText}, valgt`
|
|
497
498
|
};
|
|
498
499
|
//#endregion
|
|
499
|
-
//#region node_modules
|
|
500
|
-
var $
|
|
501
|
-
$
|
|
500
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/nl-NL.mjs
|
|
501
|
+
var $04d4b254da39a220$exports = {};
|
|
502
|
+
$04d4b254da39a220$exports = {
|
|
502
503
|
"buttonLabel": `Suggesties weergeven`,
|
|
503
504
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
504
505
|
one: () => `${formatter.number(args.optionCount)} optie`,
|
|
@@ -518,9 +519,9 @@ $17e82ebf0f8ab91f$exports = {
|
|
|
518
519
|
"selectedAnnouncement": (args) => `${args.optionText}, geselecteerd`
|
|
519
520
|
};
|
|
520
521
|
//#endregion
|
|
521
|
-
//#region node_modules
|
|
522
|
-
var $
|
|
523
|
-
$
|
|
522
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/pl-PL.mjs
|
|
523
|
+
var $02691f952c80dd24$exports = {};
|
|
524
|
+
$02691f952c80dd24$exports = {
|
|
524
525
|
"buttonLabel": `Wy\u{15B}wietlaj sugestie`,
|
|
525
526
|
"countAnnouncement": (args, formatter) => `dost\u{119}pna/dost\u{119}pne(-nych) ${formatter.plural(args.optionCount, {
|
|
526
527
|
one: () => `${formatter.number(args.optionCount)} opcja`,
|
|
@@ -540,9 +541,9 @@ $2f5377d3471630e5$exports = {
|
|
|
540
541
|
"selectedAnnouncement": (args) => `${args.optionText}, wybrano`
|
|
541
542
|
};
|
|
542
543
|
//#endregion
|
|
543
|
-
//#region node_modules
|
|
544
|
-
var $
|
|
545
|
-
$
|
|
544
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/pt-BR.mjs
|
|
545
|
+
var $8fb4dd430e8c7c3f$exports = {};
|
|
546
|
+
$8fb4dd430e8c7c3f$exports = {
|
|
546
547
|
"buttonLabel": `Mostrar sugest\xf5es`,
|
|
547
548
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
548
549
|
one: () => `${formatter.number(args.optionCount)} op\xe7\xe3o`,
|
|
@@ -562,9 +563,9 @@ $dee9868b6fa95ffe$exports = {
|
|
|
562
563
|
"selectedAnnouncement": (args) => `${args.optionText}, selecionado`
|
|
563
564
|
};
|
|
564
565
|
//#endregion
|
|
565
|
-
//#region node_modules
|
|
566
|
-
var $
|
|
567
|
-
$
|
|
566
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/pt-PT.mjs
|
|
567
|
+
var $29daefa4936adb59$exports = {};
|
|
568
|
+
$29daefa4936adb59$exports = {
|
|
568
569
|
"buttonLabel": `Apresentar sugest\xf5es`,
|
|
569
570
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
570
571
|
one: () => `${formatter.number(args.optionCount)} op\xe7\xe3o`,
|
|
@@ -584,9 +585,9 @@ $f8b2e63637cbb5a6$exports = {
|
|
|
584
585
|
"selectedAnnouncement": (args) => `${args.optionText}, selecionado`
|
|
585
586
|
};
|
|
586
587
|
//#endregion
|
|
587
|
-
//#region node_modules
|
|
588
|
-
var $
|
|
589
|
-
$
|
|
588
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/ro-RO.mjs
|
|
589
|
+
var $52a6b561e1fc9d26$exports = {};
|
|
590
|
+
$52a6b561e1fc9d26$exports = {
|
|
590
591
|
"buttonLabel": `Afi\u{219}are sugestii`,
|
|
591
592
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
592
593
|
one: () => `${formatter.number(args.optionCount)} op\u{21B}iune`,
|
|
@@ -606,9 +607,9 @@ $46a885db3b44ea95$exports = {
|
|
|
606
607
|
"selectedAnnouncement": (args) => `${args.optionText}, selectat`
|
|
607
608
|
};
|
|
608
609
|
//#endregion
|
|
609
|
-
//#region node_modules
|
|
610
|
-
var $
|
|
611
|
-
$
|
|
610
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/ru-RU.mjs
|
|
611
|
+
var $85a2d784d06219cd$exports = {};
|
|
612
|
+
$85a2d784d06219cd$exports = {
|
|
612
613
|
"buttonLabel": `\u{41F}\u{43E}\u{43A}\u{430}\u{437}\u{430}\u{442}\u{44C} \u{43F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}`,
|
|
613
614
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
614
615
|
one: () => `${formatter.number(args.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,
|
|
@@ -628,9 +629,9 @@ $50d8a8f0afa9dee5$exports = {
|
|
|
628
629
|
"selectedAnnouncement": (args) => `${args.optionText}, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}`
|
|
629
630
|
};
|
|
630
631
|
//#endregion
|
|
631
|
-
//#region node_modules
|
|
632
|
-
var $
|
|
633
|
-
$
|
|
632
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/sk-SK.mjs
|
|
633
|
+
var $47782c12572523a2$exports = {};
|
|
634
|
+
$47782c12572523a2$exports = {
|
|
634
635
|
"buttonLabel": `Zobrazi\u{165} n\xe1vrhy`,
|
|
635
636
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
636
637
|
one: () => `${formatter.number(args.optionCount)} mo\u{17E}nos\u{165}`,
|
|
@@ -650,9 +651,9 @@ $2867ee6173245507$exports = {
|
|
|
650
651
|
"selectedAnnouncement": (args) => `${args.optionText}, vybrat\xe9`
|
|
651
652
|
};
|
|
652
653
|
//#endregion
|
|
653
|
-
//#region node_modules
|
|
654
|
-
var $
|
|
655
|
-
$
|
|
654
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/sl-SI.mjs
|
|
655
|
+
var $dc4a97a17026f14d$exports = {};
|
|
656
|
+
$dc4a97a17026f14d$exports = {
|
|
656
657
|
"buttonLabel": `Prika\u{17E}i predloge`,
|
|
657
658
|
"countAnnouncement": (args, formatter) => `Na voljo je ${formatter.plural(args.optionCount, {
|
|
658
659
|
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
@@ -672,9 +673,9 @@ $0631b65beeb09b50$exports = {
|
|
|
672
673
|
"selectedAnnouncement": (args) => `${args.optionText}, izbrano`
|
|
673
674
|
};
|
|
674
675
|
//#endregion
|
|
675
|
-
//#region node_modules
|
|
676
|
-
var $
|
|
677
|
-
$
|
|
676
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/sr-SP.mjs
|
|
677
|
+
var $35792d4e62f2d9ad$exports = {};
|
|
678
|
+
$35792d4e62f2d9ad$exports = {
|
|
678
679
|
"buttonLabel": `Prika\u{17E}i predloge`,
|
|
679
680
|
"countAnnouncement": (args, formatter) => `Dostupno jo\u{161}: ${formatter.plural(args.optionCount, {
|
|
680
681
|
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
@@ -694,9 +695,9 @@ $65fc749265dcd686$exports = {
|
|
|
694
695
|
"selectedAnnouncement": (args) => `${args.optionText}, izabrano`
|
|
695
696
|
};
|
|
696
697
|
//#endregion
|
|
697
|
-
//#region node_modules
|
|
698
|
-
var $
|
|
699
|
-
$
|
|
698
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/sv-SE.mjs
|
|
699
|
+
var $7fe78eec23a31941$exports = {};
|
|
700
|
+
$7fe78eec23a31941$exports = {
|
|
700
701
|
"buttonLabel": `Visa f\xf6rslag`,
|
|
701
702
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
702
703
|
one: () => `${formatter.number(args.optionCount)} alternativ`,
|
|
@@ -716,9 +717,9 @@ $69ba655c7853c08e$exports = {
|
|
|
716
717
|
"selectedAnnouncement": (args) => `${args.optionText}, valda`
|
|
717
718
|
};
|
|
718
719
|
//#endregion
|
|
719
|
-
//#region node_modules
|
|
720
|
-
var $
|
|
721
|
-
$
|
|
720
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/tr-TR.mjs
|
|
721
|
+
var $d89776e39290e23c$exports = {};
|
|
722
|
+
$d89776e39290e23c$exports = {
|
|
722
723
|
"buttonLabel": `\xd6nerileri g\xf6ster`,
|
|
723
724
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
724
725
|
one: () => `${formatter.number(args.optionCount)} se\xe7enek`,
|
|
@@ -738,9 +739,9 @@ $a79794784d61577c$exports = {
|
|
|
738
739
|
"selectedAnnouncement": (args) => `${args.optionText}, se\xe7ildi`
|
|
739
740
|
};
|
|
740
741
|
//#endregion
|
|
741
|
-
//#region node_modules
|
|
742
|
-
var $
|
|
743
|
-
$
|
|
742
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/uk-UA.mjs
|
|
743
|
+
var $26dde2206a78f3a6$exports = {};
|
|
744
|
+
$26dde2206a78f3a6$exports = {
|
|
744
745
|
"buttonLabel": `\u{41F}\u{43E}\u{43A}\u{430}\u{437}\u{430}\u{442}\u{438} \u{43F}\u{440}\u{43E}\u{43F}\u{43E}\u{437}\u{438}\u{446}\u{456}\u{457}`,
|
|
745
746
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
746
747
|
one: () => `${formatter.number(args.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,
|
|
@@ -760,9 +761,9 @@ $c2845791417ebaf4$exports = {
|
|
|
760
761
|
"selectedAnnouncement": (args) => `${args.optionText}, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`
|
|
761
762
|
};
|
|
762
763
|
//#endregion
|
|
763
|
-
//#region node_modules
|
|
764
|
-
var $
|
|
765
|
-
$
|
|
764
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/zh-CN.mjs
|
|
765
|
+
var $5262194bce8d1b94$exports = {};
|
|
766
|
+
$5262194bce8d1b94$exports = {
|
|
766
767
|
"buttonLabel": `\u{663E}\u{793A}\u{5EFA}\u{8BAE}`,
|
|
767
768
|
"countAnnouncement": (args, formatter) => `\u{6709} ${formatter.plural(args.optionCount, {
|
|
768
769
|
one: () => `${formatter.number(args.optionCount)} \u{4E2A}\u{9009}\u{9879}`,
|
|
@@ -782,9 +783,9 @@ $29b642d0025cc7a4$exports = {
|
|
|
782
783
|
"selectedAnnouncement": (args) => `${args.optionText}, \u{5DF2}\u{9009}\u{62E9}`
|
|
783
784
|
};
|
|
784
785
|
//#endregion
|
|
785
|
-
//#region node_modules
|
|
786
|
-
var $
|
|
787
|
-
$
|
|
786
|
+
//#region node_modules/react-aria/dist/private/intl/combobox/zh-TW.mjs
|
|
787
|
+
var $8ef2b23f73d70bf1$exports = {};
|
|
788
|
+
$8ef2b23f73d70bf1$exports = {
|
|
788
789
|
"buttonLabel": `\u{986F}\u{793A}\u{5EFA}\u{8B70}`,
|
|
789
790
|
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
790
791
|
one: () => `${formatter.number(args.optionCount)} \u{9078}\u{9805}`,
|
|
@@ -804,62 +805,62 @@ $cd36dd33f9d46936$exports = {
|
|
|
804
805
|
"selectedAnnouncement": (args) => `${args.optionText}, \u{5DF2}\u{9078}\u{53D6}`
|
|
805
806
|
};
|
|
806
807
|
//#endregion
|
|
807
|
-
//#region node_modules
|
|
808
|
-
var $
|
|
809
|
-
$
|
|
810
|
-
"ar-AE": $
|
|
811
|
-
"bg-BG": $
|
|
812
|
-
"cs-CZ": $
|
|
813
|
-
"da-DK": $
|
|
814
|
-
"de-DE": $
|
|
815
|
-
"el-GR": $
|
|
816
|
-
"en-US": $
|
|
817
|
-
"es-ES": $
|
|
818
|
-
"et-EE": $
|
|
819
|
-
"fi-FI": $
|
|
820
|
-
"fr-FR": $
|
|
821
|
-
"he-IL": $
|
|
822
|
-
"hr-HR": $
|
|
823
|
-
"hu-HU": $
|
|
824
|
-
"it-IT": $
|
|
825
|
-
"ja-JP": $
|
|
826
|
-
"ko-KR": $
|
|
827
|
-
"lt-LT": $
|
|
828
|
-
"lv-LV": $
|
|
829
|
-
"nb-NO": $
|
|
830
|
-
"nl-NL": $
|
|
831
|
-
"pl-PL": $
|
|
832
|
-
"pt-BR": $
|
|
833
|
-
"pt-PT": $
|
|
834
|
-
"ro-RO": $
|
|
835
|
-
"ru-RU": $
|
|
836
|
-
"sk-SK": $
|
|
837
|
-
"sl-SI": $
|
|
838
|
-
"sr-SP": $
|
|
839
|
-
"sv-SE": $
|
|
840
|
-
"tr-TR": $
|
|
841
|
-
"uk-UA": $
|
|
842
|
-
"zh-CN": $
|
|
843
|
-
"zh-TW": $
|
|
808
|
+
//#region node_modules/react-aria/dist/private/combobox/intlStrings.mjs
|
|
809
|
+
var $4fbc67f91f577596$exports = {};
|
|
810
|
+
$4fbc67f91f577596$exports = {
|
|
811
|
+
"ar-AE": $44e96378ed9cec6d$exports,
|
|
812
|
+
"bg-BG": $4f2abbace6d15464$exports,
|
|
813
|
+
"cs-CZ": $c1cf508a70425b11$exports,
|
|
814
|
+
"da-DK": $c6334dc4bef16229$exports,
|
|
815
|
+
"de-DE": $3c1f280212fbe3e1$exports,
|
|
816
|
+
"el-GR": $57ce5bfb234b266c$exports,
|
|
817
|
+
"en-US": $2bdcc92d206ae897$exports,
|
|
818
|
+
"es-ES": $05b3b7ff042563de$exports,
|
|
819
|
+
"et-EE": $5ae036907590ca8d$exports,
|
|
820
|
+
"fi-FI": $f1b3c1991f38986b$exports,
|
|
821
|
+
"fr-FR": $7013cb8c11464d70$exports,
|
|
822
|
+
"he-IL": $072bbd14cdc5486c$exports,
|
|
823
|
+
"hr-HR": $0f316c1985a6fee3$exports,
|
|
824
|
+
"hu-HU": $ac61c1e7905e0d09$exports,
|
|
825
|
+
"it-IT": $ecca75177af99ba0$exports,
|
|
826
|
+
"ja-JP": $8160c4de84c67861$exports,
|
|
827
|
+
"ko-KR": $1ef3deffd88c8b37$exports,
|
|
828
|
+
"lt-LT": $78699a5d964b2618$exports,
|
|
829
|
+
"lv-LV": $f37ba73ed1338143$exports,
|
|
830
|
+
"nb-NO": $8a4e7bb0d7414172$exports,
|
|
831
|
+
"nl-NL": $04d4b254da39a220$exports,
|
|
832
|
+
"pl-PL": $02691f952c80dd24$exports,
|
|
833
|
+
"pt-BR": $8fb4dd430e8c7c3f$exports,
|
|
834
|
+
"pt-PT": $29daefa4936adb59$exports,
|
|
835
|
+
"ro-RO": $52a6b561e1fc9d26$exports,
|
|
836
|
+
"ru-RU": $85a2d784d06219cd$exports,
|
|
837
|
+
"sk-SK": $47782c12572523a2$exports,
|
|
838
|
+
"sl-SI": $dc4a97a17026f14d$exports,
|
|
839
|
+
"sr-SP": $35792d4e62f2d9ad$exports,
|
|
840
|
+
"sv-SE": $7fe78eec23a31941$exports,
|
|
841
|
+
"tr-TR": $d89776e39290e23c$exports,
|
|
842
|
+
"uk-UA": $26dde2206a78f3a6$exports,
|
|
843
|
+
"zh-CN": $5262194bce8d1b94$exports,
|
|
844
|
+
"zh-TW": $8ef2b23f73d70bf1$exports
|
|
844
845
|
};
|
|
845
846
|
//#endregion
|
|
846
|
-
//#region node_modules
|
|
847
|
+
//#region node_modules/react-aria/dist/private/combobox/useComboBox.mjs
|
|
847
848
|
function $parcel$interopDefault(a) {
|
|
848
849
|
return a && a.__esModule ? a.default : a;
|
|
849
850
|
}
|
|
850
|
-
function $
|
|
851
|
+
function $bf505c7417d9b616$export$8c18d1b4f7232bbf(props, state) {
|
|
851
852
|
let { buttonRef, popoverRef, inputRef, listBoxRef, keyboardDelegate, layoutDelegate, shouldFocusWrap, isReadOnly, isDisabled } = props;
|
|
852
853
|
let backupBtnRef = useRef(null);
|
|
853
|
-
buttonRef = buttonRef
|
|
854
|
-
let stringFormatter = $
|
|
855
|
-
let { menuTriggerProps, menuProps } = $
|
|
854
|
+
buttonRef = buttonRef ?? backupBtnRef;
|
|
855
|
+
let stringFormatter = $cf2482eff2eeeec2$export$f12b703ca79dfbb1($parcel$interopDefault($4fbc67f91f577596$exports), "@react-aria/combobox");
|
|
856
|
+
let { menuTriggerProps, menuProps } = $f19b83c1486f45cc$export$dc9c12ed27dd1b49({
|
|
856
857
|
type: "listbox",
|
|
857
858
|
isDisabled: isDisabled || isReadOnly
|
|
858
859
|
}, state, buttonRef);
|
|
859
|
-
$
|
|
860
|
+
$cd088b5c0d7b27b4$export$3585ede4d035bf14.set(state, { id: menuProps.id });
|
|
860
861
|
let { collection } = state;
|
|
861
862
|
let { disabledKeys } = state.selectionManager;
|
|
862
|
-
let delegate = useMemo(() => keyboardDelegate || new $
|
|
863
|
+
let delegate = useMemo(() => keyboardDelegate || new $ae8f8d98b2b18f2f$export$a05409b8bb224a5a({
|
|
863
864
|
collection,
|
|
864
865
|
disabledKeys,
|
|
865
866
|
ref: listBoxRef,
|
|
@@ -871,7 +872,7 @@ function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
|
|
|
871
872
|
disabledKeys,
|
|
872
873
|
listBoxRef
|
|
873
874
|
]);
|
|
874
|
-
let { collectionProps } = $
|
|
875
|
+
let { collectionProps } = $d667c2af82d35a98$export$d6daf82dcd84e87c({
|
|
875
876
|
selectionManager: state.selectionManager,
|
|
876
877
|
keyboardDelegate: delegate,
|
|
877
878
|
disallowTypeAhead: true,
|
|
@@ -880,7 +881,7 @@ function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
|
|
|
880
881
|
ref: inputRef,
|
|
881
882
|
isVirtualized: true
|
|
882
883
|
});
|
|
883
|
-
let router = $
|
|
884
|
+
let router = $caaf0dd3060ed57c$export$9a302a45f65d0572();
|
|
884
885
|
let onKeyDown = (e) => {
|
|
885
886
|
if (e.nativeEvent.isComposing) return;
|
|
886
887
|
switch (e.key) {
|
|
@@ -889,18 +890,18 @@ function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
|
|
|
889
890
|
if (state.isOpen && e.key === "Enter") e.preventDefault();
|
|
890
891
|
if (state.isOpen && listBoxRef.current && state.selectionManager.focusedKey != null) {
|
|
891
892
|
let collectionItem = state.collection.getItem(state.selectionManager.focusedKey);
|
|
892
|
-
if (collectionItem
|
|
893
|
+
if (collectionItem?.props.href) {
|
|
893
894
|
let item = listBoxRef.current.querySelector(`[data-key="${CSS.escape(state.selectionManager.focusedKey.toString())}"]`);
|
|
894
895
|
if (e.key === "Enter" && item instanceof HTMLAnchorElement) router.open(item, e, collectionItem.props.href, collectionItem.props.routerOptions);
|
|
895
896
|
state.close();
|
|
896
897
|
break;
|
|
897
|
-
} else if (collectionItem
|
|
898
|
+
} else if (collectionItem?.props.onAction) {
|
|
898
899
|
collectionItem.props.onAction();
|
|
899
900
|
state.close();
|
|
900
901
|
break;
|
|
901
902
|
}
|
|
902
903
|
}
|
|
903
|
-
state.commit();
|
|
904
|
+
if (e.key === "Enter" || state.isOpen) state.commit();
|
|
904
905
|
break;
|
|
905
906
|
case "Escape":
|
|
906
907
|
if (!state.selectionManager.isEmpty || state.inputValue === "" || props.allowsCustomValue) e.continuePropagation();
|
|
@@ -919,8 +920,8 @@ function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
|
|
|
919
920
|
}
|
|
920
921
|
};
|
|
921
922
|
let onBlur = (e) => {
|
|
922
|
-
let blurFromButton =
|
|
923
|
-
let blurIntoPopover = $
|
|
923
|
+
let blurFromButton = buttonRef?.current && buttonRef.current === e.relatedTarget;
|
|
924
|
+
let blurIntoPopover = $23f2114a1b82827e$export$4282f70798064fe0(popoverRef.current, e.relatedTarget);
|
|
924
925
|
if (blurFromButton || blurIntoPopover) return;
|
|
925
926
|
if (props.onBlur) props.onBlur(e);
|
|
926
927
|
state.setFocused(false);
|
|
@@ -930,42 +931,41 @@ function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
|
|
|
930
931
|
if (props.onFocus) props.onFocus(e);
|
|
931
932
|
state.setFocused(true);
|
|
932
933
|
};
|
|
933
|
-
let valueId = $
|
|
934
|
+
let valueId = $bf505c7417d9b616$var$useValueId([state.selectionManager.selectedKeys, state.selectionManager.selectionMode]);
|
|
934
935
|
let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
|
|
935
|
-
let { labelProps, inputProps, descriptionProps, errorMessageProps } = $
|
|
936
|
+
let { labelProps, inputProps, descriptionProps, errorMessageProps } = $054f71d2330da2e3$export$712718f7aec83d5({
|
|
936
937
|
...props,
|
|
938
|
+
isRequired: props.selectionMode === "multiple" ? props.isRequired && state.selectionManager.isEmpty : props.isRequired,
|
|
937
939
|
onChange: state.setInputValue,
|
|
938
|
-
onKeyDown: !isReadOnly ? $
|
|
940
|
+
onKeyDown: !isReadOnly ? $a4e76a5424781910$export$e08e3b67e392101e(state.isOpen && collectionProps.onKeyDown, onKeyDown, props.onKeyDown) : props.onKeyDown,
|
|
939
941
|
onBlur,
|
|
940
942
|
value: state.inputValue,
|
|
941
943
|
defaultValue: state.defaultInputValue,
|
|
942
944
|
onFocus,
|
|
943
945
|
autoComplete: "off",
|
|
944
946
|
validate: void 0,
|
|
945
|
-
[$
|
|
947
|
+
[$fd2148440a13ec26$export$a763b9476acd3eb]: state,
|
|
946
948
|
"aria-describedby": [valueId, props["aria-describedby"]].filter(Boolean).join(" ") || void 0
|
|
947
949
|
}, inputRef);
|
|
948
|
-
$
|
|
950
|
+
$3274bf1495747a7b$export$5add1d006293d136(inputRef, state.defaultValue, state.setValue);
|
|
949
951
|
let onPress = (e) => {
|
|
950
952
|
if (e.pointerType === "touch") {
|
|
951
|
-
|
|
952
|
-
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 || _inputRef_current.focus();
|
|
953
|
+
inputRef.current?.focus();
|
|
953
954
|
state.toggle(null, "manual");
|
|
954
955
|
}
|
|
955
956
|
};
|
|
956
957
|
let onPressStart = (e) => {
|
|
957
958
|
if (e.pointerType !== "touch") {
|
|
958
|
-
|
|
959
|
-
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 || _inputRef_current.focus();
|
|
959
|
+
inputRef.current?.focus();
|
|
960
960
|
state.toggle(e.pointerType === "keyboard" || e.pointerType === "virtual" ? "first" : null, "manual");
|
|
961
961
|
}
|
|
962
962
|
};
|
|
963
|
-
let triggerLabelProps = $
|
|
963
|
+
let triggerLabelProps = $e8ac3c3f5d4bae7f$export$d6875122194c7b44({
|
|
964
964
|
id: menuTriggerProps.id,
|
|
965
965
|
"aria-label": stringFormatter.format("buttonLabel"),
|
|
966
966
|
"aria-labelledby": props["aria-labelledby"] || labelProps.id
|
|
967
967
|
});
|
|
968
|
-
let listBoxProps = $
|
|
968
|
+
let listBoxProps = $e8ac3c3f5d4bae7f$export$d6875122194c7b44({
|
|
969
969
|
id: menuProps.id,
|
|
970
970
|
"aria-label": stringFormatter.format("listboxLabel"),
|
|
971
971
|
"aria-labelledby": props["aria-labelledby"] || labelProps.id
|
|
@@ -974,40 +974,35 @@ function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
|
|
|
974
974
|
let onTouchEnd = (e) => {
|
|
975
975
|
if (isDisabled || isReadOnly) return;
|
|
976
976
|
if (e.timeStamp - lastEventTime.current < 500) {
|
|
977
|
-
var _inputRef_current;
|
|
978
977
|
e.preventDefault();
|
|
979
|
-
|
|
978
|
+
inputRef.current?.focus();
|
|
980
979
|
return;
|
|
981
980
|
}
|
|
982
|
-
let rect = $
|
|
981
|
+
let rect = $23f2114a1b82827e$export$e58f029f0fbfdb29(e).getBoundingClientRect();
|
|
983
982
|
let touch = e.changedTouches[0];
|
|
984
983
|
let centerX = Math.ceil(rect.left + .5 * rect.width);
|
|
985
984
|
let centerY = Math.ceil(rect.top + .5 * rect.height);
|
|
986
985
|
if (touch.clientX === centerX && touch.clientY === centerY) {
|
|
987
|
-
var _inputRef_current1;
|
|
988
986
|
e.preventDefault();
|
|
989
|
-
|
|
987
|
+
inputRef.current?.focus();
|
|
990
988
|
state.toggle(null, "manual");
|
|
991
989
|
lastEventTime.current = e.timeStamp;
|
|
992
990
|
}
|
|
993
991
|
};
|
|
994
992
|
let focusedItem = state.selectionManager.focusedKey != null && state.isOpen ? state.collection.getItem(state.selectionManager.focusedKey) : void 0;
|
|
995
|
-
|
|
996
|
-
let
|
|
997
|
-
var _state_selectionManager_focusedKey;
|
|
998
|
-
let itemKey = (_state_selectionManager_focusedKey = state.selectionManager.focusedKey) !== null && _state_selectionManager_focusedKey !== void 0 ? _state_selectionManager_focusedKey : null;
|
|
993
|
+
let sectionKey = focusedItem?.parentKey ?? null;
|
|
994
|
+
let itemKey = state.selectionManager.focusedKey ?? null;
|
|
999
995
|
let lastSection = useRef(sectionKey);
|
|
1000
996
|
let lastItem = useRef(itemKey);
|
|
1001
997
|
useEffect(() => {
|
|
1002
|
-
if ($
|
|
998
|
+
if ($2add3ce32c6007eb$export$e1865c3bedcd822b() && focusedItem != null && itemKey != null && itemKey !== lastItem.current) {
|
|
1003
999
|
let isSelected = state.selectionManager.isSelected(itemKey);
|
|
1004
1000
|
let section = sectionKey != null ? state.collection.getItem(sectionKey) : null;
|
|
1005
|
-
let sectionTitle =
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
isGroupChange: (_ref = section && sectionKey !== lastSection.current) !== null && _ref !== void 0 ? _ref : false,
|
|
1001
|
+
let sectionTitle = section?.["aria-label"] || (typeof section?.rendered === "string" ? section.rendered : "") || "";
|
|
1002
|
+
$a46cf152bb926da5$export$a9b970dcc4ae71a9(stringFormatter.format("focusAnnouncement", {
|
|
1003
|
+
isGroupChange: (section && sectionKey !== lastSection.current) ?? false,
|
|
1009
1004
|
groupTitle: sectionTitle,
|
|
1010
|
-
groupCount: section ? [...$
|
|
1005
|
+
groupCount: section ? [...$cd5ea4b915021f1d$export$1005530eda016c13(section, state.collection)].length : 0,
|
|
1011
1006
|
optionText: focusedItem["aria-label"] || focusedItem.textValue || "",
|
|
1012
1007
|
isSelected
|
|
1013
1008
|
}));
|
|
@@ -1015,45 +1010,36 @@ function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
|
|
|
1015
1010
|
lastSection.current = sectionKey;
|
|
1016
1011
|
lastItem.current = itemKey;
|
|
1017
1012
|
});
|
|
1018
|
-
let optionCount = $
|
|
1013
|
+
let optionCount = $2efe10d3f1f9e31e$export$77d5aafae4e095b2(state.collection);
|
|
1019
1014
|
let lastSize = useRef(optionCount);
|
|
1020
1015
|
let lastOpen = useRef(state.isOpen);
|
|
1021
1016
|
useEffect(() => {
|
|
1022
|
-
let didOpenWithoutFocusedItem = state.isOpen !== lastOpen.current && (state.selectionManager.focusedKey == null || $
|
|
1023
|
-
if (state.isOpen && (didOpenWithoutFocusedItem || optionCount !== lastSize.current)) $
|
|
1017
|
+
let didOpenWithoutFocusedItem = state.isOpen !== lastOpen.current && (state.selectionManager.focusedKey == null || $2add3ce32c6007eb$export$e1865c3bedcd822b());
|
|
1018
|
+
if (state.isOpen && (didOpenWithoutFocusedItem || optionCount !== lastSize.current)) $a46cf152bb926da5$export$a9b970dcc4ae71a9(stringFormatter.format("countAnnouncement", { optionCount }));
|
|
1024
1019
|
lastSize.current = optionCount;
|
|
1025
1020
|
lastOpen.current = state.isOpen;
|
|
1026
1021
|
});
|
|
1027
1022
|
let lastSelectedKey = useRef(state.selectedKey);
|
|
1028
1023
|
useEffect(() => {
|
|
1029
|
-
if ($
|
|
1024
|
+
if ($2add3ce32c6007eb$export$e1865c3bedcd822b() && state.isFocused && state.selectedItem && state.selectedKey !== lastSelectedKey.current) {
|
|
1030
1025
|
let optionText = state.selectedItem["aria-label"] || state.selectedItem.textValue || "";
|
|
1031
|
-
$
|
|
1026
|
+
$a46cf152bb926da5$export$a9b970dcc4ae71a9(stringFormatter.format("selectedAnnouncement", { optionText }));
|
|
1032
1027
|
}
|
|
1033
1028
|
lastSelectedKey.current = state.selectedKey;
|
|
1034
1029
|
});
|
|
1035
1030
|
useEffect(() => {
|
|
1036
|
-
if (state.isOpen) return $
|
|
1031
|
+
if (state.isOpen) return $58196c8d6a1f38fc$export$1c3ebcada18427bf([inputRef.current, popoverRef.current].filter((element) => element != null));
|
|
1037
1032
|
}, [
|
|
1038
1033
|
state.isOpen,
|
|
1039
1034
|
inputRef,
|
|
1040
1035
|
popoverRef
|
|
1041
1036
|
]);
|
|
1042
|
-
$
|
|
1043
|
-
if (!focusedItem && inputRef.current && $
|
|
1037
|
+
$3c71b1595a147f24$export$496315a1608d9602(() => {
|
|
1038
|
+
if (!focusedItem && inputRef.current && $23f2114a1b82827e$export$cd4e5573fbe2b576($d447af545b77c9f1$export$b204af158042fbac(inputRef.current)) === inputRef.current) $b72f3f7b3b5f42c6$export$2b35b76d2e30e129(inputRef.current, null);
|
|
1044
1039
|
}, [focusedItem]);
|
|
1045
|
-
$
|
|
1040
|
+
$600b3cf69ae46262$export$90fc3a17d93f704c(listBoxRef, "react-aria-item-action", state.isOpen ? () => {
|
|
1046
1041
|
state.close();
|
|
1047
1042
|
} : void 0);
|
|
1048
|
-
$e0b6e0b68ec7f50f$export$872b660ac5a1ff98({
|
|
1049
|
-
ref: popoverRef,
|
|
1050
|
-
onInteractOutside: (e) => {
|
|
1051
|
-
let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
1052
|
-
if ($d4ee10de306f2510$export$4282f70798064fe0(buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current, target) || $d4ee10de306f2510$export$4282f70798064fe0(inputRef.current, target)) return;
|
|
1053
|
-
state.close();
|
|
1054
|
-
},
|
|
1055
|
-
isDisabled: !state.isOpen
|
|
1056
|
-
});
|
|
1057
1043
|
return {
|
|
1058
1044
|
labelProps,
|
|
1059
1045
|
buttonProps: {
|
|
@@ -1065,17 +1051,17 @@ function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
|
|
|
1065
1051
|
onPressStart,
|
|
1066
1052
|
isDisabled: isDisabled || isReadOnly
|
|
1067
1053
|
},
|
|
1068
|
-
inputProps: $
|
|
1054
|
+
inputProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(inputProps, {
|
|
1069
1055
|
role: "combobox",
|
|
1070
1056
|
"aria-expanded": menuTriggerProps["aria-expanded"],
|
|
1071
1057
|
"aria-controls": state.isOpen ? menuProps.id : void 0,
|
|
1072
1058
|
"aria-autocomplete": "list",
|
|
1073
|
-
"aria-activedescendant": focusedItem ? $
|
|
1059
|
+
"aria-activedescendant": focusedItem ? $cd088b5c0d7b27b4$export$9145995848b05025(state, focusedItem.key) : void 0,
|
|
1074
1060
|
onTouchEnd,
|
|
1075
1061
|
autoCorrect: "off",
|
|
1076
1062
|
spellCheck: "false"
|
|
1077
1063
|
}),
|
|
1078
|
-
listBoxProps: $
|
|
1064
|
+
listBoxProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(menuProps, listBoxProps, {
|
|
1079
1065
|
autoFocus: state.focusStrategy || true,
|
|
1080
1066
|
shouldUseVirtualFocus: true,
|
|
1081
1067
|
shouldSelectOnPressUp: true,
|
|
@@ -1091,8 +1077,8 @@ function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
|
|
|
1091
1077
|
validationDetails
|
|
1092
1078
|
};
|
|
1093
1079
|
}
|
|
1094
|
-
function $
|
|
1095
|
-
let id = $
|
|
1080
|
+
function $bf505c7417d9b616$var$useValueId(depArray = []) {
|
|
1081
|
+
let id = $390e54f620492c70$export$f680877a34711e37();
|
|
1096
1082
|
let [exists, setExists] = useState(true);
|
|
1097
1083
|
let [lastDeps, setLastDeps] = useState(depArray);
|
|
1098
1084
|
if (lastDeps.some((v, i) => !Object.is(v, depArray[i]))) {
|
|
@@ -1109,17 +1095,15 @@ function $c350ade66beef0af$var$useValueId(depArray = []) {
|
|
|
1109
1095
|
return exists ? id : void 0;
|
|
1110
1096
|
}
|
|
1111
1097
|
//#endregion
|
|
1112
|
-
//#region node_modules
|
|
1113
|
-
var $
|
|
1114
|
-
function $
|
|
1115
|
-
var _collection_getItem;
|
|
1098
|
+
//#region node_modules/react-stately/dist/private/combobox/useComboBoxState.mjs
|
|
1099
|
+
var $120eca7b9c40f820$var$EMPTY_VALUE = [];
|
|
1100
|
+
function $120eca7b9c40f820$export$b453a3bfd4a5fa9e(props) {
|
|
1116
1101
|
let { defaultFilter, menuTrigger = "input", allowsEmptyCollection = false, allowsCustomValue, shouldCloseOnBlur = true, selectionMode = "single" } = props;
|
|
1117
1102
|
let [showAllItems, setShowAllItems] = useState(false);
|
|
1118
1103
|
let [isFocused, setFocusedState] = useState(false);
|
|
1119
1104
|
let [focusStrategy, setFocusStrategy] = useState(null);
|
|
1120
1105
|
let defaultValue = useMemo(() => {
|
|
1121
|
-
|
|
1122
|
-
return props.defaultValue !== void 0 ? props.defaultValue : selectionMode === "single" ? (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : null : [];
|
|
1106
|
+
return props.defaultValue !== void 0 ? props.defaultValue : selectionMode === "single" ? props.defaultSelectedKey ?? null : [];
|
|
1123
1107
|
}, [
|
|
1124
1108
|
props.defaultValue,
|
|
1125
1109
|
props.defaultSelectedKey,
|
|
@@ -1132,15 +1116,13 @@ function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
|
1132
1116
|
props.selectedKey,
|
|
1133
1117
|
selectionMode
|
|
1134
1118
|
]);
|
|
1135
|
-
let [controlledValue, setControlledValue] = $
|
|
1119
|
+
let [controlledValue, setControlledValue] = $3e6197669829fe11$export$40bfa8c7b0832715(value, defaultValue, props.onChange);
|
|
1136
1120
|
let displayValue = selectionMode === "single" && Array.isArray(controlledValue) ? controlledValue[0] : controlledValue;
|
|
1137
1121
|
let setValue = (value) => {
|
|
1138
1122
|
if (selectionMode === "single") {
|
|
1139
|
-
|
|
1140
|
-
var _value_;
|
|
1141
|
-
let key = Array.isArray(value) ? (_value_ = value[0]) !== null && _value_ !== void 0 ? _value_ : null : value;
|
|
1123
|
+
let key = Array.isArray(value) ? value[0] ?? null : value;
|
|
1142
1124
|
setControlledValue(key);
|
|
1143
|
-
if (key !== displayValue)
|
|
1125
|
+
if (key !== displayValue) props.onSelectionChange?.(key);
|
|
1144
1126
|
} else {
|
|
1145
1127
|
let keys = [];
|
|
1146
1128
|
if (Array.isArray(value)) keys = value;
|
|
@@ -1148,22 +1130,19 @@ function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
|
1148
1130
|
setControlledValue(keys);
|
|
1149
1131
|
}
|
|
1150
1132
|
};
|
|
1151
|
-
|
|
1152
|
-
let { collection, selectionManager, disabledKeys } = $e72dd72e1c76a225$export$2f645645f7bca764({
|
|
1133
|
+
let { collection, selectionManager, disabledKeys } = $b14b6f590b50af39$export$2f645645f7bca764({
|
|
1153
1134
|
...props,
|
|
1154
|
-
items:
|
|
1135
|
+
items: props.items ?? props.defaultItems,
|
|
1155
1136
|
selectionMode,
|
|
1156
1137
|
disallowEmptySelection: selectionMode === "single",
|
|
1157
1138
|
allowDuplicateSelectionEvents: true,
|
|
1158
|
-
selectedKeys: useMemo(() => $
|
|
1139
|
+
selectedKeys: useMemo(() => $120eca7b9c40f820$var$convertValue(displayValue), [displayValue]),
|
|
1159
1140
|
onSelectionChange: (keys) => {
|
|
1160
1141
|
if (keys === "all") return;
|
|
1161
1142
|
if (selectionMode === "single") {
|
|
1162
|
-
|
|
1163
|
-
let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;
|
|
1143
|
+
let key = keys.values().next().value ?? null;
|
|
1164
1144
|
if (key === displayValue) {
|
|
1165
|
-
|
|
1166
|
-
(_props_onSelectionChange = props.onSelectionChange) === null || _props_onSelectionChange === void 0 || _props_onSelectionChange.call(props, key);
|
|
1145
|
+
props.onSelectionChange?.(key);
|
|
1167
1146
|
resetInputValue();
|
|
1168
1147
|
closeMenu();
|
|
1169
1148
|
} else setValue(key);
|
|
@@ -1174,11 +1153,11 @@ function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
|
1174
1153
|
let selectedItems = useMemo(() => {
|
|
1175
1154
|
return [...selectionManager.selectedKeys].map((key) => collection.getItem(key)).filter((item) => item != null);
|
|
1176
1155
|
}, [selectionManager.selectedKeys, collection]);
|
|
1177
|
-
let [inputValue, setInputValue] = $
|
|
1156
|
+
let [inputValue, setInputValue] = $3e6197669829fe11$export$40bfa8c7b0832715(props.inputValue, $120eca7b9c40f820$var$getDefaultInputValue(props.defaultInputValue, selectedKey, collection) || "", props.onInputChange);
|
|
1178
1157
|
let [initialValue] = useState(displayValue);
|
|
1179
1158
|
let [initialInputValue] = useState(inputValue);
|
|
1180
1159
|
let originalCollection = collection;
|
|
1181
|
-
let filteredCollection = useMemo(() => props.items != null || !defaultFilter ? collection : $
|
|
1160
|
+
let filteredCollection = useMemo(() => props.items != null || !defaultFilter ? collection : $120eca7b9c40f820$var$filterCollection(collection, inputValue, defaultFilter), [
|
|
1182
1161
|
collection,
|
|
1183
1162
|
inputValue,
|
|
1184
1163
|
defaultFilter,
|
|
@@ -1191,7 +1170,7 @@ function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
|
1191
1170
|
selectionManager.setFocused(open);
|
|
1192
1171
|
if (!open) selectionManager.setFocusedKey(null);
|
|
1193
1172
|
};
|
|
1194
|
-
let triggerState = $
|
|
1173
|
+
let triggerState = $f11fb0bcf1b2687a$export$61c6a8c84e605fb6({
|
|
1195
1174
|
...props,
|
|
1196
1175
|
onOpenChange,
|
|
1197
1176
|
isOpen: void 0,
|
|
@@ -1233,17 +1212,13 @@ function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
|
1233
1212
|
}, [triggerState, updateLastCollection]);
|
|
1234
1213
|
let [lastValue, setLastValue] = useState(inputValue);
|
|
1235
1214
|
let resetInputValue = () => {
|
|
1236
|
-
|
|
1237
|
-
var _collection_getItem_textValue;
|
|
1238
|
-
let itemText = selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "";
|
|
1215
|
+
let itemText = selectedKey != null ? collection.getItem(selectedKey)?.textValue ?? "" : "";
|
|
1239
1216
|
setLastValue(itemText);
|
|
1240
1217
|
setInputValue(itemText);
|
|
1241
1218
|
};
|
|
1242
1219
|
let lastValueRef = useRef(displayValue);
|
|
1243
|
-
|
|
1244
|
-
let lastSelectedKeyText = useRef(selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "");
|
|
1220
|
+
let lastSelectedKeyText = useRef(selectedKey != null ? collection.getItem(selectedKey)?.textValue ?? "" : "");
|
|
1245
1221
|
useEffect(() => {
|
|
1246
|
-
var _collection_getItem;
|
|
1247
1222
|
if (isFocused && (filteredCollection.size > 0 || allowsEmptyCollection) && !triggerState.isOpen && inputValue !== lastValue && menuTrigger !== "manual") open(null, "input");
|
|
1248
1223
|
if (!showAllItems && !allowsEmptyCollection && triggerState.isOpen && filteredCollection.size === 0) closeMenu();
|
|
1249
1224
|
if (displayValue != null && displayValue !== lastValueRef.current && selectionMode === "single") closeMenu();
|
|
@@ -1254,8 +1229,7 @@ function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
|
1254
1229
|
}
|
|
1255
1230
|
if (displayValue !== lastValueRef.current && (props.inputValue === void 0 || value === void 0)) resetInputValue();
|
|
1256
1231
|
else if (lastValue !== inputValue) setLastValue(inputValue);
|
|
1257
|
-
|
|
1258
|
-
let selectedItemText = selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "";
|
|
1232
|
+
let selectedItemText = selectedKey != null ? collection.getItem(selectedKey)?.textValue ?? "" : "";
|
|
1259
1233
|
if (!isFocused && selectedKey != null && props.inputValue === void 0 && selectedKey === lastValueRef.current) {
|
|
1260
1234
|
if (lastSelectedKeyText.current !== selectedItemText) {
|
|
1261
1235
|
setLastValue(selectedItemText);
|
|
@@ -1265,7 +1239,7 @@ function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
|
1265
1239
|
lastValueRef.current = displayValue;
|
|
1266
1240
|
lastSelectedKeyText.current = selectedItemText;
|
|
1267
1241
|
});
|
|
1268
|
-
let validation = $
|
|
1242
|
+
let validation = $fd2148440a13ec26$export$fc1a364ae1f3ff10({
|
|
1269
1243
|
...props,
|
|
1270
1244
|
value: useMemo(() => Array.isArray(displayValue) && displayValue.length === 0 ? null : {
|
|
1271
1245
|
inputValue,
|
|
@@ -1282,18 +1256,19 @@ function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
|
1282
1256
|
else commitSelection();
|
|
1283
1257
|
};
|
|
1284
1258
|
let commitCustomValue = () => {
|
|
1285
|
-
let value = selectionMode === "multiple" ? $
|
|
1259
|
+
let value = selectionMode === "multiple" ? $120eca7b9c40f820$var$EMPTY_VALUE : null;
|
|
1286
1260
|
lastValueRef.current = value;
|
|
1287
1261
|
setValue(value);
|
|
1288
1262
|
closeMenu();
|
|
1289
1263
|
};
|
|
1290
|
-
let commitSelection = () => {
|
|
1264
|
+
let commitSelection = (shouldForceSelectionChange = false) => {
|
|
1291
1265
|
if (value !== void 0 && props.inputValue !== void 0) {
|
|
1292
|
-
|
|
1293
|
-
(
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1266
|
+
let itemText = selectedKey != null ? collection.getItem(selectedKey)?.textValue ?? "" : "";
|
|
1267
|
+
if (shouldForceSelectionChange || selectionMode === "multiple" || inputValue !== itemText) {
|
|
1268
|
+
props.onSelectionChange?.(selectedKey);
|
|
1269
|
+
props.onChange?.(displayValue);
|
|
1270
|
+
}
|
|
1271
|
+
setLastValue(itemText);
|
|
1297
1272
|
closeMenu();
|
|
1298
1273
|
} else {
|
|
1299
1274
|
resetInputValue();
|
|
@@ -1301,25 +1276,22 @@ function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
|
1301
1276
|
}
|
|
1302
1277
|
};
|
|
1303
1278
|
const commitValue = () => {
|
|
1304
|
-
if (allowsCustomValue)
|
|
1305
|
-
|
|
1306
|
-
var _collection_getItem_textValue;
|
|
1307
|
-
inputValue === (selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "") ? commitSelection() : commitCustomValue();
|
|
1308
|
-
} else commitSelection();
|
|
1279
|
+
if (allowsCustomValue) inputValue === (selectedKey != null ? collection.getItem(selectedKey)?.textValue ?? "" : "") ? commitSelection() : commitCustomValue();
|
|
1280
|
+
else commitSelection();
|
|
1309
1281
|
};
|
|
1310
1282
|
let commit = () => {
|
|
1311
|
-
if (triggerState.isOpen && selectionManager.focusedKey != null) if (selectionManager.isSelected(selectionManager.focusedKey) && selectionMode === "single") commitSelection();
|
|
1283
|
+
if (triggerState.isOpen && selectionManager.focusedKey != null) if (selectionManager.isSelected(selectionManager.focusedKey) && selectionMode === "single") commitSelection(true);
|
|
1312
1284
|
else selectionManager.select(selectionManager.focusedKey);
|
|
1313
1285
|
else commitValue();
|
|
1314
1286
|
};
|
|
1315
|
-
let valueOnFocus = useRef(inputValue);
|
|
1287
|
+
let valueOnFocus = useRef([inputValue, displayValue]);
|
|
1316
1288
|
let setFocused = (isFocused) => {
|
|
1317
1289
|
if (isFocused) {
|
|
1318
|
-
valueOnFocus.current = inputValue;
|
|
1290
|
+
valueOnFocus.current = [inputValue, displayValue];
|
|
1319
1291
|
if (menuTrigger === "focus" && !props.isReadOnly) open(null, "focus");
|
|
1320
1292
|
} else {
|
|
1321
1293
|
if (shouldCloseOnBlur) commitValue();
|
|
1322
|
-
if (inputValue !== valueOnFocus.current) validation.commitValidation();
|
|
1294
|
+
if (inputValue !== valueOnFocus.current[0] || displayValue !== valueOnFocus.current[1]) validation.commitValidation();
|
|
1323
1295
|
}
|
|
1324
1296
|
setFocusedState(isFocused);
|
|
1325
1297
|
};
|
|
@@ -1334,9 +1306,7 @@ function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
|
1334
1306
|
showAllItems,
|
|
1335
1307
|
lastCollection
|
|
1336
1308
|
]);
|
|
1337
|
-
|
|
1338
|
-
let defaultSelectedKey = (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : selectionMode === "single" ? initialValue : null;
|
|
1339
|
-
var _selectedItems_, _getDefaultInputValue;
|
|
1309
|
+
let defaultSelectedKey = props.defaultSelectedKey ?? (selectionMode === "single" ? initialValue : null);
|
|
1340
1310
|
return {
|
|
1341
1311
|
...validation,
|
|
1342
1312
|
...triggerState,
|
|
@@ -1346,7 +1316,7 @@ function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
|
1346
1316
|
close: commitValue,
|
|
1347
1317
|
selectionManager,
|
|
1348
1318
|
value: displayValue,
|
|
1349
|
-
defaultValue: defaultValue
|
|
1319
|
+
defaultValue: defaultValue ?? initialValue,
|
|
1350
1320
|
setValue,
|
|
1351
1321
|
selectedKey,
|
|
1352
1322
|
selectedItems,
|
|
@@ -1355,22 +1325,22 @@ function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
|
1355
1325
|
disabledKeys,
|
|
1356
1326
|
isFocused,
|
|
1357
1327
|
setFocused,
|
|
1358
|
-
selectedItem:
|
|
1328
|
+
selectedItem: selectedItems[0] ?? null,
|
|
1359
1329
|
collection: displayedCollection,
|
|
1360
1330
|
inputValue,
|
|
1361
|
-
defaultInputValue:
|
|
1331
|
+
defaultInputValue: $120eca7b9c40f820$var$getDefaultInputValue(props.defaultInputValue, defaultSelectedKey, collection) ?? initialInputValue,
|
|
1362
1332
|
setInputValue,
|
|
1363
1333
|
commit,
|
|
1364
1334
|
revert
|
|
1365
1335
|
};
|
|
1366
1336
|
}
|
|
1367
|
-
function $
|
|
1368
|
-
return new $
|
|
1337
|
+
function $120eca7b9c40f820$var$filterCollection(collection, inputValue, filter) {
|
|
1338
|
+
return new $f664a81d022446b5$export$d085fb9e920b5ca7($120eca7b9c40f820$var$filterNodes(collection, collection, inputValue, filter));
|
|
1369
1339
|
}
|
|
1370
|
-
function $
|
|
1340
|
+
function $120eca7b9c40f820$var$filterNodes(collection, nodes, inputValue, filter) {
|
|
1371
1341
|
let filteredNode = [];
|
|
1372
1342
|
for (let node of nodes) if (node.type === "section" && node.hasChildNodes) {
|
|
1373
|
-
let filtered = $
|
|
1343
|
+
let filtered = $120eca7b9c40f820$var$filterNodes(collection, $cd5ea4b915021f1d$export$1005530eda016c13(node, collection), inputValue, filter);
|
|
1374
1344
|
if ([...filtered].some((node) => node.type === "item")) filteredNode.push({
|
|
1375
1345
|
...node,
|
|
1376
1346
|
childNodes: filtered
|
|
@@ -1379,64 +1349,60 @@ function $a9e7382a7d111cb5$var$filterNodes(collection, nodes, inputValue, filter
|
|
|
1379
1349
|
else if (node.type !== "item") filteredNode.push({ ...node });
|
|
1380
1350
|
return filteredNode;
|
|
1381
1351
|
}
|
|
1382
|
-
function $
|
|
1352
|
+
function $120eca7b9c40f820$var$getDefaultInputValue(defaultInputValue, selectedKey, collection) {
|
|
1383
1353
|
if (defaultInputValue == null) {
|
|
1384
|
-
|
|
1385
|
-
var _collection_getItem_textValue;
|
|
1386
|
-
if (selectedKey != null) return (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "";
|
|
1354
|
+
if (selectedKey != null) return collection.getItem(selectedKey)?.textValue ?? "";
|
|
1387
1355
|
}
|
|
1388
1356
|
return defaultInputValue;
|
|
1389
1357
|
}
|
|
1390
|
-
function $
|
|
1358
|
+
function $120eca7b9c40f820$var$convertValue(value) {
|
|
1391
1359
|
if (value === void 0) return void 0;
|
|
1392
1360
|
if (value === null) return [];
|
|
1393
1361
|
return Array.isArray(value) ? value : [value];
|
|
1394
1362
|
}
|
|
1395
1363
|
//#endregion
|
|
1396
|
-
//#region node_modules/react-aria-components/dist/ComboBox.mjs
|
|
1397
|
-
var $
|
|
1398
|
-
var $
|
|
1399
|
-
var $
|
|
1400
|
-
[props, ref] = $
|
|
1401
|
-
let { children, isDisabled = false, isInvalid = false, isRequired = false } = props;
|
|
1402
|
-
let content = useMemo(() => {
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
}) : children);
|
|
1411
|
-
}, [
|
|
1364
|
+
//#region node_modules/react-aria-components/dist/private/ComboBox.mjs
|
|
1365
|
+
var $dbdc5e6e7ce01b4b$export$d414ccceff7063c3 = createContext(null);
|
|
1366
|
+
var $dbdc5e6e7ce01b4b$export$c02625b26074192c = createContext(null);
|
|
1367
|
+
var $dbdc5e6e7ce01b4b$export$72b9695b8216309a = forwardRef(function ComboBox(props, ref) {
|
|
1368
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $dbdc5e6e7ce01b4b$export$d414ccceff7063c3);
|
|
1369
|
+
let { children, isDisabled = false, isInvalid = false, isRequired = false, isReadOnly = false } = props;
|
|
1370
|
+
let content = useMemo(() => React.createElement($928221da08ecbc62$export$7ff8f37d2d81a48d.Provider, { value: { items: props.items ?? props.defaultItems } }, typeof children === "function" ? children({
|
|
1371
|
+
isOpen: false,
|
|
1372
|
+
isDisabled,
|
|
1373
|
+
isInvalid,
|
|
1374
|
+
isRequired,
|
|
1375
|
+
defaultChildren: null,
|
|
1376
|
+
isReadOnly
|
|
1377
|
+
}) : children), [
|
|
1412
1378
|
children,
|
|
1413
1379
|
isDisabled,
|
|
1414
1380
|
isInvalid,
|
|
1415
1381
|
isRequired,
|
|
1382
|
+
isReadOnly,
|
|
1416
1383
|
props.items,
|
|
1417
1384
|
props.defaultItems
|
|
1418
1385
|
]);
|
|
1419
|
-
return React.createElement($
|
|
1386
|
+
return React.createElement($42ceafc619f9c3ba$export$bf788dd355e3a401, { content }, (collection) => React.createElement($dbdc5e6e7ce01b4b$var$ComboBoxInner, {
|
|
1420
1387
|
props,
|
|
1421
1388
|
collection,
|
|
1422
1389
|
comboBoxRef: ref
|
|
1423
1390
|
}));
|
|
1424
1391
|
});
|
|
1425
|
-
var $
|
|
1426
|
-
$
|
|
1427
|
-
$
|
|
1428
|
-
$
|
|
1429
|
-
$
|
|
1430
|
-
$
|
|
1392
|
+
var $dbdc5e6e7ce01b4b$var$CLEAR_CONTEXTS = [
|
|
1393
|
+
$43a3b93638fe5db9$export$75b6ee27786ba447,
|
|
1394
|
+
$7705c033048f6da7$export$24d547caef80ccd1,
|
|
1395
|
+
$41fb335299a4a39e$export$37fb8590cf2c088c,
|
|
1396
|
+
$3a442827418ebe87$export$f9c6924e160136d1,
|
|
1397
|
+
$efe09c6d1c304b50$export$9afb8bc826b033ea
|
|
1431
1398
|
];
|
|
1432
|
-
function $
|
|
1399
|
+
function $dbdc5e6e7ce01b4b$var$ComboBoxInner({ props, collection, comboBoxRef: ref }) {
|
|
1433
1400
|
let { name, formValue = "key", allowsCustomValue } = props;
|
|
1434
1401
|
if (allowsCustomValue) formValue = "text";
|
|
1435
|
-
let { validationBehavior: formValidationBehavior } = $
|
|
1436
|
-
|
|
1437
|
-
let
|
|
1438
|
-
let
|
|
1439
|
-
let state = $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({
|
|
1402
|
+
let { validationBehavior: formValidationBehavior } = $7230ffa83bc0c2cf$export$fabf2dc03a41866e($cdaed739b1139372$export$c24727297075ec6a) || {};
|
|
1403
|
+
let validationBehavior = props.validationBehavior ?? formValidationBehavior ?? "native";
|
|
1404
|
+
let { contains } = $ef182bb9912241d8$export$3274cf84b703fff({ sensitivity: "base" });
|
|
1405
|
+
let state = $120eca7b9c40f820$export$b453a3bfd4a5fa9e({
|
|
1440
1406
|
...props,
|
|
1441
1407
|
defaultFilter: props.defaultFilter || contains,
|
|
1442
1408
|
items: props.items,
|
|
@@ -1448,9 +1414,9 @@ function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: r
|
|
|
1448
1414
|
let inputRef = useRef(null);
|
|
1449
1415
|
let listBoxRef = useRef(null);
|
|
1450
1416
|
let popoverRef = useRef(null);
|
|
1451
|
-
let [labelRef, label] = $
|
|
1452
|
-
let { buttonProps, inputProps, listBoxProps, labelProps, descriptionProps, errorMessageProps, valueProps, ...validation } = $
|
|
1453
|
-
...$
|
|
1417
|
+
let [labelRef, label] = $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1418
|
+
let { buttonProps, inputProps, listBoxProps, labelProps, descriptionProps, errorMessageProps, valueProps, ...validation } = $bf505c7417d9b616$export$8c18d1b4f7232bbf({
|
|
1419
|
+
...$7230ffa83bc0c2cf$export$ef03459518577ad4(props),
|
|
1454
1420
|
label,
|
|
1455
1421
|
inputRef,
|
|
1456
1422
|
buttonRef,
|
|
@@ -1460,12 +1426,11 @@ function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: r
|
|
|
1460
1426
|
validationBehavior
|
|
1461
1427
|
}, state);
|
|
1462
1428
|
let [menuWidth, setMenuWidth] = useState(null);
|
|
1463
|
-
$
|
|
1429
|
+
$970072cf4b13fde3$export$683480f191c0e3ea({
|
|
1464
1430
|
ref: inputRef,
|
|
1465
1431
|
onResize: useCallback(() => {
|
|
1466
1432
|
if (inputRef.current) {
|
|
1467
|
-
|
|
1468
|
-
let buttonRect = (_buttonRef_current = buttonRef.current) === null || _buttonRef_current === void 0 ? void 0 : _buttonRef_current.getBoundingClientRect();
|
|
1433
|
+
let buttonRect = buttonRef.current?.getBoundingClientRect();
|
|
1469
1434
|
let inputRect = inputRef.current.getBoundingClientRect();
|
|
1470
1435
|
let minX = buttonRect ? Math.min(buttonRect.left, inputRect.left) : inputRect.left;
|
|
1471
1436
|
setMenuWidth((buttonRect ? Math.max(buttonRect.right, inputRect.right) : inputRect.right) - minX + "px");
|
|
@@ -1480,19 +1445,21 @@ function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: r
|
|
|
1480
1445
|
isOpen: state.isOpen,
|
|
1481
1446
|
isDisabled: props.isDisabled || false,
|
|
1482
1447
|
isInvalid: validation.isInvalid || false,
|
|
1483
|
-
isRequired: props.isRequired || false
|
|
1448
|
+
isRequired: props.isRequired || false,
|
|
1449
|
+
isReadOnly: props.isReadOnly || false
|
|
1484
1450
|
}), [
|
|
1485
1451
|
state.isOpen,
|
|
1486
1452
|
props.isDisabled,
|
|
1487
1453
|
validation.isInvalid,
|
|
1488
|
-
props.isRequired
|
|
1454
|
+
props.isRequired,
|
|
1455
|
+
props.isReadOnly
|
|
1489
1456
|
]);
|
|
1490
|
-
let renderProps = $
|
|
1457
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
1491
1458
|
...props,
|
|
1492
1459
|
values: renderPropsState,
|
|
1493
1460
|
defaultClassName: "react-aria-ComboBox"
|
|
1494
1461
|
});
|
|
1495
|
-
let DOMProps = $
|
|
1462
|
+
let DOMProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, { global: true });
|
|
1496
1463
|
delete DOMProps.id;
|
|
1497
1464
|
let inputs = [];
|
|
1498
1465
|
if (name && formValue === "key") {
|
|
@@ -1503,26 +1470,26 @@ function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: r
|
|
|
1503
1470
|
type: "hidden",
|
|
1504
1471
|
name,
|
|
1505
1472
|
form: props.form,
|
|
1506
|
-
value: value
|
|
1473
|
+
value: value ?? ""
|
|
1507
1474
|
}));
|
|
1508
1475
|
}
|
|
1509
|
-
return React.createElement($
|
|
1510
|
-
[$
|
|
1511
|
-
[$
|
|
1476
|
+
return React.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [
|
|
1477
|
+
[$dbdc5e6e7ce01b4b$export$c02625b26074192c, state],
|
|
1478
|
+
[$43a3b93638fe5db9$export$75b6ee27786ba447, {
|
|
1512
1479
|
...labelProps,
|
|
1513
1480
|
ref: labelRef
|
|
1514
1481
|
}],
|
|
1515
|
-
[$
|
|
1482
|
+
[$7705c033048f6da7$export$24d547caef80ccd1, {
|
|
1516
1483
|
...buttonProps,
|
|
1517
1484
|
ref: buttonRef,
|
|
1518
1485
|
isPressed: state.isOpen
|
|
1519
1486
|
}],
|
|
1520
|
-
[$
|
|
1487
|
+
[$41fb335299a4a39e$export$37fb8590cf2c088c, {
|
|
1521
1488
|
...inputProps,
|
|
1522
1489
|
ref: inputRef
|
|
1523
1490
|
}],
|
|
1524
|
-
[$
|
|
1525
|
-
[$
|
|
1491
|
+
[$f2ff30fde7b014be$export$d2f961adcb0afbe, state],
|
|
1492
|
+
[$542a13ca2fa5b484$export$9b9a0cd73afb7ca4, {
|
|
1526
1493
|
ref: popoverRef,
|
|
1527
1494
|
triggerRef: inputRef,
|
|
1528
1495
|
scrollRef: listBoxRef,
|
|
@@ -1530,24 +1497,24 @@ function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: r
|
|
|
1530
1497
|
isNonModal: true,
|
|
1531
1498
|
trigger: "ComboBox",
|
|
1532
1499
|
style: { "--trigger-width": menuWidth },
|
|
1533
|
-
clearContexts: $
|
|
1500
|
+
clearContexts: $dbdc5e6e7ce01b4b$var$CLEAR_CONTEXTS
|
|
1534
1501
|
}],
|
|
1535
|
-
[$
|
|
1502
|
+
[$928221da08ecbc62$export$7ff8f37d2d81a48d, {
|
|
1536
1503
|
...listBoxProps,
|
|
1537
1504
|
ref: listBoxRef
|
|
1538
1505
|
}],
|
|
1539
|
-
[$
|
|
1540
|
-
[$
|
|
1506
|
+
[$928221da08ecbc62$export$7c5906fe4f1f2af2, state],
|
|
1507
|
+
[$efe09c6d1c304b50$export$9afb8bc826b033ea, { slots: {
|
|
1541
1508
|
description: descriptionProps,
|
|
1542
1509
|
errorMessage: errorMessageProps
|
|
1543
1510
|
} }],
|
|
1544
|
-
[$
|
|
1511
|
+
[$3a442827418ebe87$export$f9c6924e160136d1, {
|
|
1545
1512
|
isInvalid: validation.isInvalid,
|
|
1546
1513
|
isDisabled: props.isDisabled || false
|
|
1547
1514
|
}],
|
|
1548
|
-
[$
|
|
1549
|
-
[$
|
|
1550
|
-
] }, React.createElement($
|
|
1515
|
+
[$1f3c3b1a70cec653$export$ff05c3ac10437e03, validation],
|
|
1516
|
+
[$dbdc5e6e7ce01b4b$export$5c804022b41722df, valueProps]
|
|
1517
|
+
] }, React.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
1551
1518
|
...DOMProps,
|
|
1552
1519
|
...renderProps,
|
|
1553
1520
|
ref,
|
|
@@ -1555,11 +1522,12 @@ function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: r
|
|
|
1555
1522
|
"data-focused": state.isFocused || void 0,
|
|
1556
1523
|
"data-open": state.isOpen || void 0,
|
|
1557
1524
|
"data-disabled": props.isDisabled || void 0,
|
|
1525
|
+
"data-readonly": props.isReadOnly || void 0,
|
|
1558
1526
|
"data-invalid": validation.isInvalid || void 0,
|
|
1559
1527
|
"data-required": props.isRequired || void 0
|
|
1560
1528
|
}, renderProps.children, inputs));
|
|
1561
1529
|
}
|
|
1562
|
-
var $
|
|
1530
|
+
var $dbdc5e6e7ce01b4b$export$5c804022b41722df = createContext(null);
|
|
1563
1531
|
//#endregion
|
|
1564
1532
|
//#region lib/components/link-input/link-input.jsx
|
|
1565
1533
|
var inputClass = cva([
|
|
@@ -1665,13 +1633,13 @@ var LinkInput = (props) => {
|
|
|
1665
1633
|
let shouldShowSuggestions = true;
|
|
1666
1634
|
if (!canShowSuggestions || !showSuggestionsWhenEmpty && url.length < 1) shouldShowSuggestions = false;
|
|
1667
1635
|
else shouldShowSuggestions = !(showSuggestionsWhenEmpty !== true && url.trim().length < 3 || url.startsWith("/") || url.startsWith("#") || url.startsWith(":") || url.startsWith("mailto") || url.startsWith("tel") || url.startsWith("http") || url.startsWith("www"));
|
|
1668
|
-
const suggestionList = $
|
|
1636
|
+
const suggestionList = $c73d3f3d5ec90946$export$bc3384a35de93d66({ async load({ signal }) {
|
|
1669
1637
|
if (disabled || !canShowSuggestions || !shouldShowSuggestions) return { items: [] };
|
|
1670
1638
|
return { items: await fetchSuggestions(url, signal) ?? [] };
|
|
1671
1639
|
} });
|
|
1672
1640
|
if (hidden) return null;
|
|
1673
1641
|
const noResults = shouldShowSuggestions && !suggestionList.isLoading && suggestionList.items.length === 0;
|
|
1674
|
-
return jsxs($
|
|
1642
|
+
return jsxs($dbdc5e6e7ce01b4b$export$72b9695b8216309a, {
|
|
1675
1643
|
items: suggestionList.items,
|
|
1676
1644
|
inputValue: url,
|
|
1677
1645
|
onInputChange: (value) => {
|
|
@@ -1686,17 +1654,17 @@ var LinkInput = (props) => {
|
|
|
1686
1654
|
isDisabled: disabled,
|
|
1687
1655
|
className: "es:selection:bg-surface-100 es:selection:text-accent-800",
|
|
1688
1656
|
children: [jsx(BaseControl, {
|
|
1689
|
-
as: $
|
|
1657
|
+
as: $43a3b93638fe5db9$export$b04be29aa201d4f5,
|
|
1690
1658
|
icon,
|
|
1691
1659
|
label,
|
|
1692
1660
|
subtitle,
|
|
1693
1661
|
actions,
|
|
1694
|
-
labelAs: $
|
|
1662
|
+
labelAs: $43a3b93638fe5db9$export$b04be29aa201d4f5,
|
|
1695
1663
|
inline,
|
|
1696
1664
|
help,
|
|
1697
|
-
children: jsxs($
|
|
1665
|
+
children: jsxs($3a442827418ebe87$export$eb2fcfdbd7ba97d4, {
|
|
1698
1666
|
className: "es:relative es:group",
|
|
1699
|
-
children: [jsx($
|
|
1667
|
+
children: [jsx($41fb335299a4a39e$export$f5b8910cec6cf069, {
|
|
1700
1668
|
placeholder: disabled ? null : placeholder,
|
|
1701
1669
|
className: clsx(inputClass({
|
|
1702
1670
|
disabled,
|
|
@@ -1708,7 +1676,7 @@ var LinkInput = (props) => {
|
|
|
1708
1676
|
visible: !disabled && url?.length > 0,
|
|
1709
1677
|
className: "es:absolute es:inset-y-1 es:right-1",
|
|
1710
1678
|
transition: "scaleFade",
|
|
1711
|
-
children: jsxs($
|
|
1679
|
+
children: jsxs($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
1712
1680
|
slot: null,
|
|
1713
1681
|
onPress: () => {
|
|
1714
1682
|
onChange({
|
|
@@ -1727,7 +1695,7 @@ var LinkInput = (props) => {
|
|
|
1727
1695
|
})
|
|
1728
1696
|
})]
|
|
1729
1697
|
})
|
|
1730
|
-
}), canShowSuggestions && shouldShowSuggestions && jsxs($
|
|
1698
|
+
}), canShowSuggestions && shouldShowSuggestions && jsxs($542a13ca2fa5b484$export$5b6b19405a83ff9d, {
|
|
1731
1699
|
"aria-label": __("URL suggestions", "eightshift-ui-components"),
|
|
1732
1700
|
className: ({ isEntering, isExiting }) => clsx("es:font-sans", "es:w-(--trigger-width)", "es:rounded-xl es:outline-hidden es:min-w-72", "es:has-first-selected:rounded-t-18!", "es:has-last-selected:rounded-b-18!", "es:inset-ring es:inset-ring-surface-500/10", "es:inset-shadow-sm es:inset-shadow-white/50", noResults ? "es:bg-surface-50/50" : "es:bg-surface-50/65", noResults ? "es:backdrop-blur-sm" : "es:backdrop-blur-md", noResults ? "es:backdrop-brightness-105" : "es:backdrop-brightness-110", "es:backdrop-saturate-125", "es:shadow-lg es:shadow-black/10", "es:transition-plus", "es:motion-duration-250 es:motion-ease-spring-bouncy", "es:placement-bottom:origin-top-left es:placement-top:origin-bottom-left", (isEntering || !(suggestionList.isLoading || !shouldShowSuggestions)) && "es:motion-scale-x-in-95 es:motion-scale-y-in-85 es:motion-opacity-in-0", (isEntering || !(suggestionList.isLoading || !shouldShowSuggestions)) && "es:placement-top:motion-translate-y-in-[0.5rem] es:placement-bottom:motion-translate-y-in-[-0.5rem]", isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-85 es:motion-opacity-out-0", isExiting && "es:placement-top:motion-translate-y-out-[0.5rem] es:placement-bottom:motion-translate-y-out-[-0.5rem]", (suggestionList.isLoading || !shouldShowSuggestions) && "es:invisible"),
|
|
1733
1701
|
offset: 3,
|
|
@@ -1742,7 +1710,7 @@ var LinkInput = (props) => {
|
|
|
1742
1710
|
subtitleClassName: "es:mx-auto",
|
|
1743
1711
|
fullSizeSubtitle: true,
|
|
1744
1712
|
noColor: true
|
|
1745
|
-
}), suggestionList.items.length > 0 && !suggestionList.isLoading && jsxs(Fragment$1, { children: [jsx($
|
|
1713
|
+
}), suggestionList.items.length > 0 && !suggestionList.isLoading && jsxs(Fragment$1, { children: [jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
1746
1714
|
className: "es:space-y-0.75 es:p-1.5",
|
|
1747
1715
|
children: (item) => {
|
|
1748
1716
|
const { label: title, value: url, metadata: { subtype: rawSubtype } } = item;
|
|
@@ -1757,7 +1725,7 @@ var LinkInput = (props) => {
|
|
|
1757
1725
|
const overrideIcon = suggestionTypeIconOverride(subtype);
|
|
1758
1726
|
if (overrideIcon) typeIcon = overrideIcon;
|
|
1759
1727
|
}
|
|
1760
|
-
return jsx($
|
|
1728
|
+
return jsx($928221da08ecbc62$export$a11e76429ed99b4, {
|
|
1761
1729
|
id: item?.value ?? randomId(8),
|
|
1762
1730
|
className: clsx("es:transition-plus", "es:px-2 es:py-2.5", "es:bg-accent-900/4 es:rounded-sm es:first:rounded-t-lg es:last:rounded-b-lg es:after-current:rounded-t-lg es:before-current:rounded-b-lg", "es:focus-visible:bg-surface-200/65 es:focus-visible:rounded-2xl es:focus-visible:text-accent-950", "es:hover:bg-surface-200/50 es:hover:rounded-2xl es:hover:text-accent-900", "es:pressed:rounded-3xl!", "es:text-surface-950"),
|
|
1763
1731
|
textValue: url,
|