@eightshift/ui-components 5.0.10 → 5.1.1
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/{Collection-uTAXq9Br.js → Collection-BRJOMbOa.js} +12 -7
- package/dist/{Dialog-CmAxaSUv.js → Dialog-D6EdDPeu.js} +8 -8
- package/dist/{useFormValidation-Dy0PXJg5.js → Form-Bnyyv3Im.js} +6 -4
- package/dist/{Group-DDPhPPTQ.js → Group-LBogWgyp.js} +2 -2
- package/dist/{Input-BmDS8Juy.js → Input-DfSBLhDx.js} +1 -1
- package/dist/List-BLeHBkfx.js +590 -0
- package/dist/{ListBox-_nDFq8-H.js → ListBox-BY3gwI8c.js} +3 -3
- package/dist/Select-BebwUgKB.js +764 -0
- package/dist/Separator-CTQWg_HO.js +1111 -0
- package/dist/TextField-o2U-uBWv.js +133 -0
- package/dist/assets/style-admin.css +264 -150
- package/dist/assets/style-editor.css +264 -150
- package/dist/assets/style.css +264 -150
- package/dist/assets/wp-font-enhancements.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +1 -1
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/breakpoint-preview/breakpoint-preview.js +3 -4
- package/dist/components/button/button.js +3 -3
- package/dist/components/checkbox/checkbox.js +1 -2
- package/dist/components/color-pickers/color-picker.js +7 -9
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +19 -25
- package/dist/components/color-pickers/solid-color-picker.js +27 -27
- package/dist/components/component-toggle/component-toggle.js +1 -1
- package/dist/components/draggable/draggable-handle.js +2 -2
- package/dist/components/draggable/draggable.js +5 -5
- package/dist/components/draggable-list/draggable-list-item.js +2 -2
- package/dist/components/draggable-list/draggable-list.js +5 -5
- package/dist/components/expandable/expandable.js +1 -1
- package/dist/components/index.js +5 -5
- package/dist/components/input-field/input-field.js +14 -129
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1463 -17
- package/dist/components/matrix-align/matrix-align.js +11 -14
- package/dist/components/menu/menu.js +4 -8
- package/dist/components/modal/modal.js +30 -31
- package/dist/components/number-picker/number-picker.js +9 -10
- package/dist/components/option-select/option-select.js +140 -156
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/placeholders/image-placeholder.js +3 -3
- package/dist/components/placeholders/media-placeholder.js +2 -2
- package/dist/components/popover/popover.js +10 -5
- package/dist/components/radio/radio.js +4 -5
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.js +6 -6
- package/dist/components/responsive/mini-responsive.js +45 -47
- package/dist/components/responsive/responsive-legacy.js +51 -55
- package/dist/components/responsive/responsive.js +47 -49
- package/dist/components/responsive-preview/responsive-preview.js +12 -15
- package/dist/components/select/async-multi-select.js +4 -4
- package/dist/components/select/async-single-select.js +1 -1
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +4 -4
- package/dist/components/select/shared.js +2 -2
- package/dist/components/select/single-select.js +1 -1
- package/dist/components/select/styles.js +3 -3
- package/dist/components/select/v2/async-select.js +216 -158
- package/dist/components/select/v2/shared.js +29 -20
- package/dist/components/select/v2/single-select.js +203 -851
- package/dist/components/slider/column-config-slider.js +2 -2
- package/dist/components/slider/slider.js +2 -2
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/tabs/tabs.js +7 -8
- package/dist/components/toggle/switch.js +4 -3
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/{default-i18n-CT_oS1Fy.js → default-i18n-OFa3zAyB.js} +5 -9
- package/dist/icons/icons.js +141 -141
- package/dist/icons/jsx-svg.js +3 -4
- package/dist/index.js +4 -4
- package/dist/{multi-select-components-Sp-JEFEX.js → multi-select-components-BcKzA24f.js} +3 -3
- package/dist/{react-jsx-parser.min-DZCiis5V.js → react-jsx-parser.min-LF707GK8.js} +312 -332
- package/dist/useAsyncList-fLtZMvJO.js +420 -0
- package/dist/useFilter-BR5z1A4Q.js +50 -0
- package/dist/{useListState-9Hq_FiRF.js → useListState-BrZ2XvDS.js} +1 -1
- package/dist/{useNumberField-D0u2bh8g.js → useNumberField-y0dLc_6m.js} +2 -2
- package/dist/{useSingleSelectListState-DqhemUIh.js → useSingleSelectListState-Bh46cRXs.js} +1 -1
- package/dist/utilities/array-helpers.js +4 -7
- package/dist/utilities/es-dash.js +21 -3
- package/dist/utilities/index.js +2 -1
- package/dist/utilities/text-helpers.js +3 -3
- package/package.json +9 -9
- package/dist/ComboBox-BANSEKnb.js +0 -1915
- package/dist/Form-Cq3fu75_.js +0 -5
- package/dist/List-CZMUbkFU.js +0 -593
- package/dist/Separator-BN3mjL6q.js +0 -332
|
@@ -1,20 +1,1462 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-DH22t_SM.js";
|
|
3
|
-
import { $ as $
|
|
4
|
-
import { $ as $
|
|
5
|
-
import { $ as $
|
|
6
|
-
import { $ as $
|
|
7
|
-
import {
|
|
8
|
-
import { $ as $
|
|
9
|
-
import {
|
|
2
|
+
import { c as $319e236875307eab$export$a9b970dcc4ae71a9, a as $d2b4bc8c273e7be6$export$24d547caef80ccd1, $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-DH22t_SM.js";
|
|
3
|
+
import { p as $ff5963eb1fccf552$export$e08e3b67e392101e, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-CZt7LCbO.js";
|
|
4
|
+
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-DHrSdE_Q.js";
|
|
5
|
+
import { c as $e5be200c675c3b3a$export$a763b9476acd3eb, a as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Bnyyv3Im.js";
|
|
6
|
+
import { $ as $a049562f99e7db0e$export$f9c6924e160136d1, a as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-LBogWgyp.js";
|
|
7
|
+
import { b as $2d73ec29415bd339$export$712718f7aec83d5, a as $3985021b0ad6602f$export$37fb8590cf2c088c, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-DfSBLhDx.js";
|
|
8
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-JS_ob-kh.js";
|
|
9
|
+
import { d as $b1f0cad8af73213b$export$3585ede4d035bf14, e as $b1f0cad8af73213b$export$9145995848b05025, b as $eed445e0843c11d0$export$7ff8f37d2d81a48d, c as $eed445e0843c11d0$export$7c5906fe4f1f2af2, $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-BY3gwI8c.js";
|
|
10
|
+
import { o as $168583247155ddda$export$dc9c12ed27dd1b49, k as $5e3802645cc19319$export$1c3ebcada18427bf, l as $de32f1b87079253c$export$d2f961adcb0afbe, p as $07b14b47974efb58$export$9b9a0cd73afb7ca4, e as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-D6EdDPeu.js";
|
|
11
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-BuJgePCv.js";
|
|
12
|
+
import { i as $ae20dd8cbca75726$export$d6daf82dcd84e87c, m as $c5a24bc478652b5f$export$1005530eda016c13, n as $55f9b1ae81f22853$export$2b35b76d2e30e129, e as $e1995378a142960e$export$bf788dd355e3a401 } from "../../Collection-BRJOMbOa.js";
|
|
13
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
14
|
+
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, f as $9daab02d461809db$export$683480f191c0e3ea } from "../../OverlayArrow-BUfV-5P3.js";
|
|
15
|
+
import React__default, { useRef, useEffect, useMemo, useState, useCallback, forwardRef, createContext, cloneElement } from "react";
|
|
16
|
+
import { $ as $bb77f239b46e8c72$export$3274cf84b703fff } from "../../useFilter-BR5z1A4Q.js";
|
|
17
|
+
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "../../useSingleSelectListState-Bh46cRXs.js";
|
|
18
|
+
import { c as $a02d57049d202695$export$d085fb9e920b5ca7 } from "../../useListState-BrZ2XvDS.js";
|
|
19
|
+
import { K as $c87311424ea30a05$export$e1865c3bedcd822b, i as $d4ee10de306f2510$export$cd4e5573fbe2b576, d as $431fbd86ca7dc216$export$b204af158042fbac, b as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../useHover-C2SkI1Fn.js";
|
|
20
|
+
import { b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572 } from "../../usePress-DWBuejBp.js";
|
|
21
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-B7-lUnAF.js";
|
|
22
|
+
import { i as $2a25aae57d74318e$export$a05409b8bb224a5a, g as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "../../Separator-CTQWg_HO.js";
|
|
23
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-C9GO0IDB.js";
|
|
24
|
+
import { _ as __ } from "../../default-i18n-OFa3zAyB.js";
|
|
10
25
|
import { icons } from "../../icons/icons.js";
|
|
11
26
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
12
|
-
import { useRef, cloneElement } from "react";
|
|
13
27
|
import { Spacer } from "../spacer/spacer.js";
|
|
14
28
|
import { Tooltip } from "../tooltip/tooltip.js";
|
|
15
29
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
16
30
|
import { BaseControl } from "../base-control/base-control.js";
|
|
17
31
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
32
|
+
import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66 } from "../../useAsyncList-fLtZMvJO.js";
|
|
33
|
+
function $4f58c5f72bcf79f7$export$496315a1608d9602(effect, dependencies) {
|
|
34
|
+
const isInitialMount = useRef(true);
|
|
35
|
+
const lastDeps = useRef(null);
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
isInitialMount.current = true;
|
|
38
|
+
return () => {
|
|
39
|
+
isInitialMount.current = false;
|
|
40
|
+
};
|
|
41
|
+
}, []);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
let prevDeps = lastDeps.current;
|
|
44
|
+
if (isInitialMount.current) isInitialMount.current = false;
|
|
45
|
+
else if (!prevDeps || dependencies.some((dep, i) => !Object.is(dep, prevDeps[i]))) effect();
|
|
46
|
+
lastDeps.current = dependencies;
|
|
47
|
+
}, dependencies);
|
|
48
|
+
}
|
|
49
|
+
var $02cb4c75c506befe$exports = {};
|
|
50
|
+
$02cb4c75c506befe$exports = {
|
|
51
|
+
"buttonLabel": `عرض المقترحات`,
|
|
52
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
53
|
+
one: () => `${formatter.number(args.optionCount)} خيار`,
|
|
54
|
+
other: () => `${formatter.number(args.optionCount)} خيارات`
|
|
55
|
+
})} متاحة.`,
|
|
56
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
57
|
+
true: () => `المجموعة المدخلة ${args.groupTitle}, مع ${formatter.plural(args.groupCount, {
|
|
58
|
+
one: () => `${formatter.number(args.groupCount)} خيار`,
|
|
59
|
+
other: () => `${formatter.number(args.groupCount)} خيارات`
|
|
60
|
+
})}. `,
|
|
61
|
+
other: ``
|
|
62
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
63
|
+
true: `, محدد`,
|
|
64
|
+
other: ``
|
|
65
|
+
}, args.isSelected)}`,
|
|
66
|
+
"listboxLabel": `مقترحات`,
|
|
67
|
+
"selectedAnnouncement": (args) => `${args.optionText}، محدد`
|
|
68
|
+
};
|
|
69
|
+
var $568b8163f1e56faf$exports = {};
|
|
70
|
+
$568b8163f1e56faf$exports = {
|
|
71
|
+
"buttonLabel": `Покажи предложения`,
|
|
72
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
73
|
+
one: () => `${formatter.number(args.optionCount)} опция`,
|
|
74
|
+
other: () => `${formatter.number(args.optionCount)} опции`
|
|
75
|
+
})} на разположение.`,
|
|
76
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
77
|
+
true: () => `Въведена група ${args.groupTitle}, с ${formatter.plural(args.groupCount, {
|
|
78
|
+
one: () => `${formatter.number(args.groupCount)} опция`,
|
|
79
|
+
other: () => `${formatter.number(args.groupCount)} опции`
|
|
80
|
+
})}. `,
|
|
81
|
+
other: ``
|
|
82
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
83
|
+
true: `, избрани`,
|
|
84
|
+
other: ``
|
|
85
|
+
}, args.isSelected)}`,
|
|
86
|
+
"listboxLabel": `Предложения`,
|
|
87
|
+
"selectedAnnouncement": (args) => `${args.optionText}, избрани`
|
|
88
|
+
};
|
|
89
|
+
var $87581c0202d106b8$exports = {};
|
|
90
|
+
$87581c0202d106b8$exports = {
|
|
91
|
+
"buttonLabel": `Zobrazit doporučení`,
|
|
92
|
+
"countAnnouncement": (args, formatter) => `K dispozici ${formatter.plural(args.optionCount, {
|
|
93
|
+
one: () => `je ${formatter.number(args.optionCount)} možnost`,
|
|
94
|
+
other: () => `jsou/je ${formatter.number(args.optionCount)} možnosti/-í`
|
|
95
|
+
})}.`,
|
|
96
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
97
|
+
true: () => `Zadaná skupina „${args.groupTitle}“ ${formatter.plural(args.groupCount, {
|
|
98
|
+
one: () => `s ${formatter.number(args.groupCount)} možností`,
|
|
99
|
+
other: () => `se ${formatter.number(args.groupCount)} možnostmi`
|
|
100
|
+
})}. `,
|
|
101
|
+
other: ``
|
|
102
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
103
|
+
true: ` (vybráno)`,
|
|
104
|
+
other: ``
|
|
105
|
+
}, args.isSelected)}`,
|
|
106
|
+
"listboxLabel": `Návrhy`,
|
|
107
|
+
"selectedAnnouncement": (args) => `${args.optionText}, vybráno`
|
|
108
|
+
};
|
|
109
|
+
var $a10a0369f5433ed1$exports = {};
|
|
110
|
+
$a10a0369f5433ed1$exports = {
|
|
111
|
+
"buttonLabel": `Vis forslag`,
|
|
112
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
113
|
+
one: () => `${formatter.number(args.optionCount)} mulighed tilgængelig`,
|
|
114
|
+
other: () => `${formatter.number(args.optionCount)} muligheder tilgængelige`
|
|
115
|
+
})}.`,
|
|
116
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
117
|
+
true: () => `Angivet gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {
|
|
118
|
+
one: () => `${formatter.number(args.groupCount)} mulighed`,
|
|
119
|
+
other: () => `${formatter.number(args.groupCount)} muligheder`
|
|
120
|
+
})}. `,
|
|
121
|
+
other: ``
|
|
122
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
123
|
+
true: `, valgt`,
|
|
124
|
+
other: ``
|
|
125
|
+
}, args.isSelected)}`,
|
|
126
|
+
"listboxLabel": `Forslag`,
|
|
127
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valgt`
|
|
128
|
+
};
|
|
129
|
+
var $bfd288727d5cb166$exports = {};
|
|
130
|
+
$bfd288727d5cb166$exports = {
|
|
131
|
+
"buttonLabel": `Empfehlungen anzeigen`,
|
|
132
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
133
|
+
one: () => `${formatter.number(args.optionCount)} Option`,
|
|
134
|
+
other: () => `${formatter.number(args.optionCount)} Optionen`
|
|
135
|
+
})} verfügbar.`,
|
|
136
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
137
|
+
true: () => `Eingetretene Gruppe ${args.groupTitle}, mit ${formatter.plural(args.groupCount, {
|
|
138
|
+
one: () => `${formatter.number(args.groupCount)} Option`,
|
|
139
|
+
other: () => `${formatter.number(args.groupCount)} Optionen`
|
|
140
|
+
})}. `,
|
|
141
|
+
other: ``
|
|
142
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
143
|
+
true: `, ausgewählt`,
|
|
144
|
+
other: ``
|
|
145
|
+
}, args.isSelected)}`,
|
|
146
|
+
"listboxLabel": `Empfehlungen`,
|
|
147
|
+
"selectedAnnouncement": (args) => `${args.optionText}, ausgewählt`
|
|
148
|
+
};
|
|
149
|
+
var $ca177778f9a74e3c$exports = {};
|
|
150
|
+
$ca177778f9a74e3c$exports = {
|
|
151
|
+
"buttonLabel": `Προβολή προτάσεων`,
|
|
152
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
153
|
+
one: () => `${formatter.number(args.optionCount)} επιλογή`,
|
|
154
|
+
other: () => `${formatter.number(args.optionCount)} επιλογές `
|
|
155
|
+
})} διαθέσιμες.`,
|
|
156
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
157
|
+
true: () => `Εισαγμένη ομάδα ${args.groupTitle}, με ${formatter.plural(args.groupCount, {
|
|
158
|
+
one: () => `${formatter.number(args.groupCount)} επιλογή`,
|
|
159
|
+
other: () => `${formatter.number(args.groupCount)} επιλογές`
|
|
160
|
+
})}. `,
|
|
161
|
+
other: ``
|
|
162
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
163
|
+
true: `, επιλεγμένο`,
|
|
164
|
+
other: ``
|
|
165
|
+
}, args.isSelected)}`,
|
|
166
|
+
"listboxLabel": `Προτάσεις`,
|
|
167
|
+
"selectedAnnouncement": (args) => `${args.optionText}, επιλέχθηκε`
|
|
168
|
+
};
|
|
169
|
+
var $9b5aa79ef84beb6c$exports = {};
|
|
170
|
+
$9b5aa79ef84beb6c$exports = {
|
|
171
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
172
|
+
true: () => `Entered group ${args.groupTitle}, with ${formatter.plural(args.groupCount, {
|
|
173
|
+
one: () => `${formatter.number(args.groupCount)} option`,
|
|
174
|
+
other: () => `${formatter.number(args.groupCount)} options`
|
|
175
|
+
})}. `,
|
|
176
|
+
other: ``
|
|
177
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
178
|
+
true: `, selected`,
|
|
179
|
+
other: ``
|
|
180
|
+
}, args.isSelected)}`,
|
|
181
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
182
|
+
one: () => `${formatter.number(args.optionCount)} option`,
|
|
183
|
+
other: () => `${formatter.number(args.optionCount)} options`
|
|
184
|
+
})} available.`,
|
|
185
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selected`,
|
|
186
|
+
"buttonLabel": `Show suggestions`,
|
|
187
|
+
"listboxLabel": `Suggestions`
|
|
188
|
+
};
|
|
189
|
+
var $57968e8209de2557$exports = {};
|
|
190
|
+
$57968e8209de2557$exports = {
|
|
191
|
+
"buttonLabel": `Mostrar sugerencias`,
|
|
192
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
193
|
+
one: () => `${formatter.number(args.optionCount)} opción`,
|
|
194
|
+
other: () => `${formatter.number(args.optionCount)} opciones`
|
|
195
|
+
})} disponible(s).`,
|
|
196
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
197
|
+
true: () => `Se ha unido al grupo ${args.groupTitle}, con ${formatter.plural(args.groupCount, {
|
|
198
|
+
one: () => `${formatter.number(args.groupCount)} opción`,
|
|
199
|
+
other: () => `${formatter.number(args.groupCount)} opciones`
|
|
200
|
+
})}. `,
|
|
201
|
+
other: ``
|
|
202
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
203
|
+
true: `, seleccionado`,
|
|
204
|
+
other: ``
|
|
205
|
+
}, args.isSelected)}`,
|
|
206
|
+
"listboxLabel": `Sugerencias`,
|
|
207
|
+
"selectedAnnouncement": (args) => `${args.optionText}, seleccionado`
|
|
208
|
+
};
|
|
209
|
+
var $60690790bf4c1c6a$exports = {};
|
|
210
|
+
$60690790bf4c1c6a$exports = {
|
|
211
|
+
"buttonLabel": `Kuva soovitused`,
|
|
212
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
213
|
+
one: () => `${formatter.number(args.optionCount)} valik`,
|
|
214
|
+
other: () => `${formatter.number(args.optionCount)} valikud`
|
|
215
|
+
})} saadaval.`,
|
|
216
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
217
|
+
true: () => `Sisestatud rühm ${args.groupTitle}, valikuga ${formatter.plural(args.groupCount, {
|
|
218
|
+
one: () => `${formatter.number(args.groupCount)} valik`,
|
|
219
|
+
other: () => `${formatter.number(args.groupCount)} valikud`
|
|
220
|
+
})}. `,
|
|
221
|
+
other: ``
|
|
222
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
223
|
+
true: `, valitud`,
|
|
224
|
+
other: ``
|
|
225
|
+
}, args.isSelected)}`,
|
|
226
|
+
"listboxLabel": `Soovitused`,
|
|
227
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valitud`
|
|
228
|
+
};
|
|
229
|
+
var $1101246e8c7d9357$exports = {};
|
|
230
|
+
$1101246e8c7d9357$exports = {
|
|
231
|
+
"buttonLabel": `Näytä ehdotukset`,
|
|
232
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
233
|
+
one: () => `${formatter.number(args.optionCount)} vaihtoehto`,
|
|
234
|
+
other: () => `${formatter.number(args.optionCount)} vaihtoehdot`
|
|
235
|
+
})} saatavilla.`,
|
|
236
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
237
|
+
true: () => `Mentiin ryhmään ${args.groupTitle}, ${formatter.plural(args.groupCount, {
|
|
238
|
+
one: () => `${formatter.number(args.groupCount)} vaihtoehdon`,
|
|
239
|
+
other: () => `${formatter.number(args.groupCount)} vaihtoehdon`
|
|
240
|
+
})} kanssa.`,
|
|
241
|
+
other: ``
|
|
242
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
243
|
+
true: `, valittu`,
|
|
244
|
+
other: ``
|
|
245
|
+
}, args.isSelected)}`,
|
|
246
|
+
"listboxLabel": `Ehdotukset`,
|
|
247
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valittu`
|
|
248
|
+
};
|
|
249
|
+
var $6404b5cb5b241730$exports = {};
|
|
250
|
+
$6404b5cb5b241730$exports = {
|
|
251
|
+
"buttonLabel": `Afficher les suggestions`,
|
|
252
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
253
|
+
one: () => `${formatter.number(args.optionCount)} option`,
|
|
254
|
+
other: () => `${formatter.number(args.optionCount)} options`
|
|
255
|
+
})} disponible(s).`,
|
|
256
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
257
|
+
true: () => `Groupe ${args.groupTitle} rejoint, avec ${formatter.plural(args.groupCount, {
|
|
258
|
+
one: () => `${formatter.number(args.groupCount)} option`,
|
|
259
|
+
other: () => `${formatter.number(args.groupCount)} options`
|
|
260
|
+
})}. `,
|
|
261
|
+
other: ``
|
|
262
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
263
|
+
true: `, sélectionné(s)`,
|
|
264
|
+
other: ``
|
|
265
|
+
}, args.isSelected)}`,
|
|
266
|
+
"listboxLabel": `Suggestions`,
|
|
267
|
+
"selectedAnnouncement": (args) => `${args.optionText}, sélectionné`
|
|
268
|
+
};
|
|
269
|
+
var $dfeafa702e92e31f$exports = {};
|
|
270
|
+
$dfeafa702e92e31f$exports = {
|
|
271
|
+
"buttonLabel": `הצג הצעות`,
|
|
272
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
273
|
+
one: () => `אפשרות ${formatter.number(args.optionCount)}`,
|
|
274
|
+
other: () => `${formatter.number(args.optionCount)} אפשרויות`
|
|
275
|
+
})} במצב זמין.`,
|
|
276
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
277
|
+
true: () => `נכנס לקבוצה ${args.groupTitle}, עם ${formatter.plural(args.groupCount, {
|
|
278
|
+
one: () => `אפשרות ${formatter.number(args.groupCount)}`,
|
|
279
|
+
other: () => `${formatter.number(args.groupCount)} אפשרויות`
|
|
280
|
+
})}. `,
|
|
281
|
+
other: ``
|
|
282
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
283
|
+
true: `, נבחר`,
|
|
284
|
+
other: ``
|
|
285
|
+
}, args.isSelected)}`,
|
|
286
|
+
"listboxLabel": `הצעות`,
|
|
287
|
+
"selectedAnnouncement": (args) => `${args.optionText}, נבחר`
|
|
288
|
+
};
|
|
289
|
+
var $2d125e0b34676352$exports = {};
|
|
290
|
+
$2d125e0b34676352$exports = {
|
|
291
|
+
"buttonLabel": `Prikaži prijedloge`,
|
|
292
|
+
"countAnnouncement": (args, formatter) => `Dostupno još: ${formatter.plural(args.optionCount, {
|
|
293
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
294
|
+
other: () => `${formatter.number(args.optionCount)} opcije/a`
|
|
295
|
+
})}.`,
|
|
296
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
297
|
+
true: () => `Unesena skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
|
|
298
|
+
one: () => `${formatter.number(args.groupCount)} opcijom`,
|
|
299
|
+
other: () => `${formatter.number(args.groupCount)} opcije/a`
|
|
300
|
+
})}. `,
|
|
301
|
+
other: ``
|
|
302
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
303
|
+
true: `, odabranih`,
|
|
304
|
+
other: ``
|
|
305
|
+
}, args.isSelected)}`,
|
|
306
|
+
"listboxLabel": `Prijedlozi`,
|
|
307
|
+
"selectedAnnouncement": (args) => `${args.optionText}, odabrano`
|
|
308
|
+
};
|
|
309
|
+
var $ea029611d7634059$exports = {};
|
|
310
|
+
$ea029611d7634059$exports = {
|
|
311
|
+
"buttonLabel": `Javaslatok megjelenítése`,
|
|
312
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
313
|
+
one: () => `${formatter.number(args.optionCount)} lehetőség`,
|
|
314
|
+
other: () => `${formatter.number(args.optionCount)} lehetőség`
|
|
315
|
+
})} áll rendelkezésre.`,
|
|
316
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
317
|
+
true: () => `Belépett a(z) ${args.groupTitle} csoportba, amely ${formatter.plural(args.groupCount, {
|
|
318
|
+
one: () => `${formatter.number(args.groupCount)} lehetőséget`,
|
|
319
|
+
other: () => `${formatter.number(args.groupCount)} lehetőséget`
|
|
320
|
+
})} tartalmaz. `,
|
|
321
|
+
other: ``
|
|
322
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
323
|
+
true: `, kijelölve`,
|
|
324
|
+
other: ``
|
|
325
|
+
}, args.isSelected)}`,
|
|
326
|
+
"listboxLabel": `Javaslatok`,
|
|
327
|
+
"selectedAnnouncement": (args) => `${args.optionText}, kijelölve`
|
|
328
|
+
};
|
|
329
|
+
var $77f075bb86ad7091$exports = {};
|
|
330
|
+
$77f075bb86ad7091$exports = {
|
|
331
|
+
"buttonLabel": `Mostra suggerimenti`,
|
|
332
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
333
|
+
one: () => `${formatter.number(args.optionCount)} opzione disponibile`,
|
|
334
|
+
other: () => `${formatter.number(args.optionCount)} opzioni disponibili`
|
|
335
|
+
})}.`,
|
|
336
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
337
|
+
true: () => `Ingresso nel gruppo ${args.groupTitle}, con ${formatter.plural(args.groupCount, {
|
|
338
|
+
one: () => `${formatter.number(args.groupCount)} opzione`,
|
|
339
|
+
other: () => `${formatter.number(args.groupCount)} opzioni`
|
|
340
|
+
})}. `,
|
|
341
|
+
other: ``
|
|
342
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
343
|
+
true: `, selezionato`,
|
|
344
|
+
other: ``
|
|
345
|
+
}, args.isSelected)}`,
|
|
346
|
+
"listboxLabel": `Suggerimenti`,
|
|
347
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selezionato`
|
|
348
|
+
};
|
|
349
|
+
var $6e87462e84907983$exports = {};
|
|
350
|
+
$6e87462e84907983$exports = {
|
|
351
|
+
"buttonLabel": `候補を表示`,
|
|
352
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
353
|
+
one: () => `${formatter.number(args.optionCount)} 個のオプション`,
|
|
354
|
+
other: () => `${formatter.number(args.optionCount)} 個のオプション`
|
|
355
|
+
})}を利用できます。`,
|
|
356
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
357
|
+
true: () => `入力されたグループ ${args.groupTitle}、${formatter.plural(args.groupCount, {
|
|
358
|
+
one: () => `${formatter.number(args.groupCount)} 個のオプション`,
|
|
359
|
+
other: () => `${formatter.number(args.groupCount)} 個のオプション`
|
|
360
|
+
})}を含む。`,
|
|
361
|
+
other: ``
|
|
362
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
363
|
+
true: `、選択済み`,
|
|
364
|
+
other: ``
|
|
365
|
+
}, args.isSelected)}`,
|
|
366
|
+
"listboxLabel": `候補`,
|
|
367
|
+
"selectedAnnouncement": (args) => `${args.optionText}、選択済み`
|
|
368
|
+
};
|
|
369
|
+
var $9246f2c6edc6b232$exports = {};
|
|
370
|
+
$9246f2c6edc6b232$exports = {
|
|
371
|
+
"buttonLabel": `제안 사항 표시`,
|
|
372
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
373
|
+
one: () => `${formatter.number(args.optionCount)}개 옵션`,
|
|
374
|
+
other: () => `${formatter.number(args.optionCount)}개 옵션`
|
|
375
|
+
})}을 사용할 수 있습니다.`,
|
|
376
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
377
|
+
true: () => `입력한 그룹 ${args.groupTitle}, ${formatter.plural(args.groupCount, {
|
|
378
|
+
one: () => `${formatter.number(args.groupCount)}개 옵션`,
|
|
379
|
+
other: () => `${formatter.number(args.groupCount)}개 옵션`
|
|
380
|
+
})}. `,
|
|
381
|
+
other: ``
|
|
382
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
383
|
+
true: `, 선택됨`,
|
|
384
|
+
other: ``
|
|
385
|
+
}, args.isSelected)}`,
|
|
386
|
+
"listboxLabel": `제안`,
|
|
387
|
+
"selectedAnnouncement": (args) => `${args.optionText}, 선택됨`
|
|
388
|
+
};
|
|
389
|
+
var $e587accc6c0a434c$exports = {};
|
|
390
|
+
$e587accc6c0a434c$exports = {
|
|
391
|
+
"buttonLabel": `Rodyti pasiūlymus`,
|
|
392
|
+
"countAnnouncement": (args, formatter) => `Yra ${formatter.plural(args.optionCount, {
|
|
393
|
+
one: () => `${formatter.number(args.optionCount)} parinktis`,
|
|
394
|
+
other: () => `${formatter.number(args.optionCount)} parinktys (-ių)`
|
|
395
|
+
})}.`,
|
|
396
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
397
|
+
true: () => `Įvesta grupė ${args.groupTitle}, su ${formatter.plural(args.groupCount, {
|
|
398
|
+
one: () => `${formatter.number(args.groupCount)} parinktimi`,
|
|
399
|
+
other: () => `${formatter.number(args.groupCount)} parinktimis (-ių)`
|
|
400
|
+
})}. `,
|
|
401
|
+
other: ``
|
|
402
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
403
|
+
true: `, pasirinkta`,
|
|
404
|
+
other: ``
|
|
405
|
+
}, args.isSelected)}`,
|
|
406
|
+
"listboxLabel": `Pasiūlymai`,
|
|
407
|
+
"selectedAnnouncement": (args) => `${args.optionText}, pasirinkta`
|
|
408
|
+
};
|
|
409
|
+
var $03a1900e7400b5ab$exports = {};
|
|
410
|
+
$03a1900e7400b5ab$exports = {
|
|
411
|
+
"buttonLabel": `Rādīt ieteikumus`,
|
|
412
|
+
"countAnnouncement": (args, formatter) => `Pieejamo opciju skaits: ${formatter.plural(args.optionCount, {
|
|
413
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
414
|
+
other: () => `${formatter.number(args.optionCount)} opcijas`
|
|
415
|
+
})}.`,
|
|
416
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
417
|
+
true: () => `Ievadīta grupa ${args.groupTitle}, ar ${formatter.plural(args.groupCount, {
|
|
418
|
+
one: () => `${formatter.number(args.groupCount)} opciju`,
|
|
419
|
+
other: () => `${formatter.number(args.groupCount)} opcijām`
|
|
420
|
+
})}. `,
|
|
421
|
+
other: ``
|
|
422
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
423
|
+
true: `, atlasīta`,
|
|
424
|
+
other: ``
|
|
425
|
+
}, args.isSelected)}`,
|
|
426
|
+
"listboxLabel": `Ieteikumi`,
|
|
427
|
+
"selectedAnnouncement": (args) => `${args.optionText}, atlasīta`
|
|
428
|
+
};
|
|
429
|
+
var $1387676441be6cf6$exports = {};
|
|
430
|
+
$1387676441be6cf6$exports = {
|
|
431
|
+
"buttonLabel": `Vis forslag`,
|
|
432
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
433
|
+
one: () => `${formatter.number(args.optionCount)} alternativ`,
|
|
434
|
+
other: () => `${formatter.number(args.optionCount)} alternativer`
|
|
435
|
+
})} finnes.`,
|
|
436
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
437
|
+
true: () => `Angitt gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {
|
|
438
|
+
one: () => `${formatter.number(args.groupCount)} alternativ`,
|
|
439
|
+
other: () => `${formatter.number(args.groupCount)} alternativer`
|
|
440
|
+
})}. `,
|
|
441
|
+
other: ``
|
|
442
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
443
|
+
true: `, valgt`,
|
|
444
|
+
other: ``
|
|
445
|
+
}, args.isSelected)}`,
|
|
446
|
+
"listboxLabel": `Forslag`,
|
|
447
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valgt`
|
|
448
|
+
};
|
|
449
|
+
var $17e82ebf0f8ab91f$exports = {};
|
|
450
|
+
$17e82ebf0f8ab91f$exports = {
|
|
451
|
+
"buttonLabel": `Suggesties weergeven`,
|
|
452
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
453
|
+
one: () => `${formatter.number(args.optionCount)} optie`,
|
|
454
|
+
other: () => `${formatter.number(args.optionCount)} opties`
|
|
455
|
+
})} beschikbaar.`,
|
|
456
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
457
|
+
true: () => `Groep ${args.groupTitle} ingevoerd met ${formatter.plural(args.groupCount, {
|
|
458
|
+
one: () => `${formatter.number(args.groupCount)} optie`,
|
|
459
|
+
other: () => `${formatter.number(args.groupCount)} opties`
|
|
460
|
+
})}. `,
|
|
461
|
+
other: ``
|
|
462
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
463
|
+
true: `, geselecteerd`,
|
|
464
|
+
other: ``
|
|
465
|
+
}, args.isSelected)}`,
|
|
466
|
+
"listboxLabel": `Suggesties`,
|
|
467
|
+
"selectedAnnouncement": (args) => `${args.optionText}, geselecteerd`
|
|
468
|
+
};
|
|
469
|
+
var $2f5377d3471630e5$exports = {};
|
|
470
|
+
$2f5377d3471630e5$exports = {
|
|
471
|
+
"buttonLabel": `Wyświetlaj sugestie`,
|
|
472
|
+
"countAnnouncement": (args, formatter) => `dostępna/dostępne(-nych) ${formatter.plural(args.optionCount, {
|
|
473
|
+
one: () => `${formatter.number(args.optionCount)} opcja`,
|
|
474
|
+
other: () => `${formatter.number(args.optionCount)} opcje(-i)`
|
|
475
|
+
})}.`,
|
|
476
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
477
|
+
true: () => `Dołączono do grupy ${args.groupTitle}, z ${formatter.plural(args.groupCount, {
|
|
478
|
+
one: () => `${formatter.number(args.groupCount)} opcją`,
|
|
479
|
+
other: () => `${formatter.number(args.groupCount)} opcjami`
|
|
480
|
+
})}. `,
|
|
481
|
+
other: ``
|
|
482
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
483
|
+
true: `, wybrano`,
|
|
484
|
+
other: ``
|
|
485
|
+
}, args.isSelected)}`,
|
|
486
|
+
"listboxLabel": `Sugestie`,
|
|
487
|
+
"selectedAnnouncement": (args) => `${args.optionText}, wybrano`
|
|
488
|
+
};
|
|
489
|
+
var $dee9868b6fa95ffe$exports = {};
|
|
490
|
+
$dee9868b6fa95ffe$exports = {
|
|
491
|
+
"buttonLabel": `Mostrar sugestões`,
|
|
492
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
493
|
+
one: () => `${formatter.number(args.optionCount)} opção`,
|
|
494
|
+
other: () => `${formatter.number(args.optionCount)} opções`
|
|
495
|
+
})} disponível.`,
|
|
496
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
497
|
+
true: () => `Grupo inserido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {
|
|
498
|
+
one: () => `${formatter.number(args.groupCount)} opção`,
|
|
499
|
+
other: () => `${formatter.number(args.groupCount)} opções`
|
|
500
|
+
})}. `,
|
|
501
|
+
other: ``
|
|
502
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
503
|
+
true: `, selecionado`,
|
|
504
|
+
other: ``
|
|
505
|
+
}, args.isSelected)}`,
|
|
506
|
+
"listboxLabel": `Sugestões`,
|
|
507
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selecionado`
|
|
508
|
+
};
|
|
509
|
+
var $f8b2e63637cbb5a6$exports = {};
|
|
510
|
+
$f8b2e63637cbb5a6$exports = {
|
|
511
|
+
"buttonLabel": `Apresentar sugestões`,
|
|
512
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
513
|
+
one: () => `${formatter.number(args.optionCount)} opção`,
|
|
514
|
+
other: () => `${formatter.number(args.optionCount)} opções`
|
|
515
|
+
})} disponível.`,
|
|
516
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
517
|
+
true: () => `Grupo introduzido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {
|
|
518
|
+
one: () => `${formatter.number(args.groupCount)} opção`,
|
|
519
|
+
other: () => `${formatter.number(args.groupCount)} opções`
|
|
520
|
+
})}. `,
|
|
521
|
+
other: ``
|
|
522
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
523
|
+
true: `, selecionado`,
|
|
524
|
+
other: ``
|
|
525
|
+
}, args.isSelected)}`,
|
|
526
|
+
"listboxLabel": `Sugestões`,
|
|
527
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selecionado`
|
|
528
|
+
};
|
|
529
|
+
var $46a885db3b44ea95$exports = {};
|
|
530
|
+
$46a885db3b44ea95$exports = {
|
|
531
|
+
"buttonLabel": `Afișare sugestii`,
|
|
532
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
533
|
+
one: () => `${formatter.number(args.optionCount)} opțiune`,
|
|
534
|
+
other: () => `${formatter.number(args.optionCount)} opțiuni`
|
|
535
|
+
})} disponibile.`,
|
|
536
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
537
|
+
true: () => `Grup ${args.groupTitle} introdus, cu ${formatter.plural(args.groupCount, {
|
|
538
|
+
one: () => `${formatter.number(args.groupCount)} opțiune`,
|
|
539
|
+
other: () => `${formatter.number(args.groupCount)} opțiuni`
|
|
540
|
+
})}. `,
|
|
541
|
+
other: ``
|
|
542
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
543
|
+
true: `, selectat`,
|
|
544
|
+
other: ``
|
|
545
|
+
}, args.isSelected)}`,
|
|
546
|
+
"listboxLabel": `Sugestii`,
|
|
547
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selectat`
|
|
548
|
+
};
|
|
549
|
+
var $50d8a8f0afa9dee5$exports = {};
|
|
550
|
+
$50d8a8f0afa9dee5$exports = {
|
|
551
|
+
"buttonLabel": `Показать предложения`,
|
|
552
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
553
|
+
one: () => `${formatter.number(args.optionCount)} параметр`,
|
|
554
|
+
other: () => `${formatter.number(args.optionCount)} параметров`
|
|
555
|
+
})} доступно.`,
|
|
556
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
557
|
+
true: () => `Введенная группа ${args.groupTitle}, с ${formatter.plural(args.groupCount, {
|
|
558
|
+
one: () => `${formatter.number(args.groupCount)} параметром`,
|
|
559
|
+
other: () => `${formatter.number(args.groupCount)} параметрами`
|
|
560
|
+
})}. `,
|
|
561
|
+
other: ``
|
|
562
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
563
|
+
true: `, выбранными`,
|
|
564
|
+
other: ``
|
|
565
|
+
}, args.isSelected)}`,
|
|
566
|
+
"listboxLabel": `Предложения`,
|
|
567
|
+
"selectedAnnouncement": (args) => `${args.optionText}, выбрано`
|
|
568
|
+
};
|
|
569
|
+
var $2867ee6173245507$exports = {};
|
|
570
|
+
$2867ee6173245507$exports = {
|
|
571
|
+
"buttonLabel": `Zobraziť návrhy`,
|
|
572
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
573
|
+
one: () => `${formatter.number(args.optionCount)} možnosť`,
|
|
574
|
+
other: () => `${formatter.number(args.optionCount)} možnosti/-í`
|
|
575
|
+
})} k dispozícii.`,
|
|
576
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
577
|
+
true: () => `Zadaná skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
|
|
578
|
+
one: () => `${formatter.number(args.groupCount)} možnosťou`,
|
|
579
|
+
other: () => `${formatter.number(args.groupCount)} možnosťami`
|
|
580
|
+
})}. `,
|
|
581
|
+
other: ``
|
|
582
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
583
|
+
true: `, vybraté`,
|
|
584
|
+
other: ``
|
|
585
|
+
}, args.isSelected)}`,
|
|
586
|
+
"listboxLabel": `Návrhy`,
|
|
587
|
+
"selectedAnnouncement": (args) => `${args.optionText}, vybraté`
|
|
588
|
+
};
|
|
589
|
+
var $0631b65beeb09b50$exports = {};
|
|
590
|
+
$0631b65beeb09b50$exports = {
|
|
591
|
+
"buttonLabel": `Prikaži predloge`,
|
|
592
|
+
"countAnnouncement": (args, formatter) => `Na voljo je ${formatter.plural(args.optionCount, {
|
|
593
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
594
|
+
other: () => `${formatter.number(args.optionCount)} opcije`
|
|
595
|
+
})}.`,
|
|
596
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
597
|
+
true: () => `Vnesena skupina ${args.groupTitle}, z ${formatter.plural(args.groupCount, {
|
|
598
|
+
one: () => `${formatter.number(args.groupCount)} opcija`,
|
|
599
|
+
other: () => `${formatter.number(args.groupCount)} opcije`
|
|
600
|
+
})}. `,
|
|
601
|
+
other: ``
|
|
602
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
603
|
+
true: `, izbrano`,
|
|
604
|
+
other: ``
|
|
605
|
+
}, args.isSelected)}`,
|
|
606
|
+
"listboxLabel": `Predlogi`,
|
|
607
|
+
"selectedAnnouncement": (args) => `${args.optionText}, izbrano`
|
|
608
|
+
};
|
|
609
|
+
var $65fc749265dcd686$exports = {};
|
|
610
|
+
$65fc749265dcd686$exports = {
|
|
611
|
+
"buttonLabel": `Prikaži predloge`,
|
|
612
|
+
"countAnnouncement": (args, formatter) => `Dostupno još: ${formatter.plural(args.optionCount, {
|
|
613
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
614
|
+
other: () => `${formatter.number(args.optionCount)} opcije/a`
|
|
615
|
+
})}.`,
|
|
616
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
617
|
+
true: () => `Unesena grupa ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
|
|
618
|
+
one: () => `${formatter.number(args.groupCount)} opcijom`,
|
|
619
|
+
other: () => `${formatter.number(args.groupCount)} optione/a`
|
|
620
|
+
})}. `,
|
|
621
|
+
other: ``
|
|
622
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
623
|
+
true: `, izabranih`,
|
|
624
|
+
other: ``
|
|
625
|
+
}, args.isSelected)}`,
|
|
626
|
+
"listboxLabel": `Predlozi`,
|
|
627
|
+
"selectedAnnouncement": (args) => `${args.optionText}, izabrano`
|
|
628
|
+
};
|
|
629
|
+
var $69ba655c7853c08e$exports = {};
|
|
630
|
+
$69ba655c7853c08e$exports = {
|
|
631
|
+
"buttonLabel": `Visa förslag`,
|
|
632
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
633
|
+
one: () => `${formatter.number(args.optionCount)} alternativ`,
|
|
634
|
+
other: () => `${formatter.number(args.optionCount)} alternativ`
|
|
635
|
+
})} tillgängliga.`,
|
|
636
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
637
|
+
true: () => `Ingick i gruppen ${args.groupTitle} med ${formatter.plural(args.groupCount, {
|
|
638
|
+
one: () => `${formatter.number(args.groupCount)} alternativ`,
|
|
639
|
+
other: () => `${formatter.number(args.groupCount)} alternativ`
|
|
640
|
+
})}. `,
|
|
641
|
+
other: ``
|
|
642
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
643
|
+
true: `, valda`,
|
|
644
|
+
other: ``
|
|
645
|
+
}, args.isSelected)}`,
|
|
646
|
+
"listboxLabel": `Förslag`,
|
|
647
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valda`
|
|
648
|
+
};
|
|
649
|
+
var $a79794784d61577c$exports = {};
|
|
650
|
+
$a79794784d61577c$exports = {
|
|
651
|
+
"buttonLabel": `Önerileri göster`,
|
|
652
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
653
|
+
one: () => `${formatter.number(args.optionCount)} seçenek`,
|
|
654
|
+
other: () => `${formatter.number(args.optionCount)} seçenekler`
|
|
655
|
+
})} kullanılabilir.`,
|
|
656
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
657
|
+
true: () => `Girilen grup ${args.groupTitle}, ile ${formatter.plural(args.groupCount, {
|
|
658
|
+
one: () => `${formatter.number(args.groupCount)} seçenek`,
|
|
659
|
+
other: () => `${formatter.number(args.groupCount)} seçenekler`
|
|
660
|
+
})}. `,
|
|
661
|
+
other: ``
|
|
662
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
663
|
+
true: `, seçildi`,
|
|
664
|
+
other: ``
|
|
665
|
+
}, args.isSelected)}`,
|
|
666
|
+
"listboxLabel": `Öneriler`,
|
|
667
|
+
"selectedAnnouncement": (args) => `${args.optionText}, seçildi`
|
|
668
|
+
};
|
|
669
|
+
var $c2845791417ebaf4$exports = {};
|
|
670
|
+
$c2845791417ebaf4$exports = {
|
|
671
|
+
"buttonLabel": `Показати пропозиції`,
|
|
672
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
673
|
+
one: () => `${formatter.number(args.optionCount)} параметр`,
|
|
674
|
+
other: () => `${formatter.number(args.optionCount)} параметри(-ів)`
|
|
675
|
+
})} доступно.`,
|
|
676
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
677
|
+
true: () => `Введена група ${args.groupTitle}, з ${formatter.plural(args.groupCount, {
|
|
678
|
+
one: () => `${formatter.number(args.groupCount)} параметр`,
|
|
679
|
+
other: () => `${formatter.number(args.groupCount)} параметри(-ів)`
|
|
680
|
+
})}. `,
|
|
681
|
+
other: ``
|
|
682
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
683
|
+
true: `, вибрано`,
|
|
684
|
+
other: ``
|
|
685
|
+
}, args.isSelected)}`,
|
|
686
|
+
"listboxLabel": `Пропозиції`,
|
|
687
|
+
"selectedAnnouncement": (args) => `${args.optionText}, вибрано`
|
|
688
|
+
};
|
|
689
|
+
var $29b642d0025cc7a4$exports = {};
|
|
690
|
+
$29b642d0025cc7a4$exports = {
|
|
691
|
+
"buttonLabel": `显示建议`,
|
|
692
|
+
"countAnnouncement": (args, formatter) => `有 ${formatter.plural(args.optionCount, {
|
|
693
|
+
one: () => `${formatter.number(args.optionCount)} 个选项`,
|
|
694
|
+
other: () => `${formatter.number(args.optionCount)} 个选项`
|
|
695
|
+
})}可用。`,
|
|
696
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
697
|
+
true: () => `进入了 ${args.groupTitle} 组,其中有 ${formatter.plural(args.groupCount, {
|
|
698
|
+
one: () => `${formatter.number(args.groupCount)} 个选项`,
|
|
699
|
+
other: () => `${formatter.number(args.groupCount)} 个选项`
|
|
700
|
+
})}. `,
|
|
701
|
+
other: ``
|
|
702
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
703
|
+
true: `, 已选择`,
|
|
704
|
+
other: ``
|
|
705
|
+
}, args.isSelected)}`,
|
|
706
|
+
"listboxLabel": `建议`,
|
|
707
|
+
"selectedAnnouncement": (args) => `${args.optionText}, 已选择`
|
|
708
|
+
};
|
|
709
|
+
var $cd36dd33f9d46936$exports = {};
|
|
710
|
+
$cd36dd33f9d46936$exports = {
|
|
711
|
+
"buttonLabel": `顯示建議`,
|
|
712
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
713
|
+
one: () => `${formatter.number(args.optionCount)} 選項`,
|
|
714
|
+
other: () => `${formatter.number(args.optionCount)} 選項`
|
|
715
|
+
})} 可用。`,
|
|
716
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
717
|
+
true: () => `輸入的群組 ${args.groupTitle}, 有 ${formatter.plural(args.groupCount, {
|
|
718
|
+
one: () => `${formatter.number(args.groupCount)} 選項`,
|
|
719
|
+
other: () => `${formatter.number(args.groupCount)} 選項`
|
|
720
|
+
})}. `,
|
|
721
|
+
other: ``
|
|
722
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
723
|
+
true: `, 已選取`,
|
|
724
|
+
other: ``
|
|
725
|
+
}, args.isSelected)}`,
|
|
726
|
+
"listboxLabel": `建議`,
|
|
727
|
+
"selectedAnnouncement": (args) => `${args.optionText}, 已選取`
|
|
728
|
+
};
|
|
729
|
+
var $de5926a92e8ebc5b$exports = {};
|
|
730
|
+
$de5926a92e8ebc5b$exports = {
|
|
731
|
+
"ar-AE": $02cb4c75c506befe$exports,
|
|
732
|
+
"bg-BG": $568b8163f1e56faf$exports,
|
|
733
|
+
"cs-CZ": $87581c0202d106b8$exports,
|
|
734
|
+
"da-DK": $a10a0369f5433ed1$exports,
|
|
735
|
+
"de-DE": $bfd288727d5cb166$exports,
|
|
736
|
+
"el-GR": $ca177778f9a74e3c$exports,
|
|
737
|
+
"en-US": $9b5aa79ef84beb6c$exports,
|
|
738
|
+
"es-ES": $57968e8209de2557$exports,
|
|
739
|
+
"et-EE": $60690790bf4c1c6a$exports,
|
|
740
|
+
"fi-FI": $1101246e8c7d9357$exports,
|
|
741
|
+
"fr-FR": $6404b5cb5b241730$exports,
|
|
742
|
+
"he-IL": $dfeafa702e92e31f$exports,
|
|
743
|
+
"hr-HR": $2d125e0b34676352$exports,
|
|
744
|
+
"hu-HU": $ea029611d7634059$exports,
|
|
745
|
+
"it-IT": $77f075bb86ad7091$exports,
|
|
746
|
+
"ja-JP": $6e87462e84907983$exports,
|
|
747
|
+
"ko-KR": $9246f2c6edc6b232$exports,
|
|
748
|
+
"lt-LT": $e587accc6c0a434c$exports,
|
|
749
|
+
"lv-LV": $03a1900e7400b5ab$exports,
|
|
750
|
+
"nb-NO": $1387676441be6cf6$exports,
|
|
751
|
+
"nl-NL": $17e82ebf0f8ab91f$exports,
|
|
752
|
+
"pl-PL": $2f5377d3471630e5$exports,
|
|
753
|
+
"pt-BR": $dee9868b6fa95ffe$exports,
|
|
754
|
+
"pt-PT": $f8b2e63637cbb5a6$exports,
|
|
755
|
+
"ro-RO": $46a885db3b44ea95$exports,
|
|
756
|
+
"ru-RU": $50d8a8f0afa9dee5$exports,
|
|
757
|
+
"sk-SK": $2867ee6173245507$exports,
|
|
758
|
+
"sl-SI": $0631b65beeb09b50$exports,
|
|
759
|
+
"sr-SP": $65fc749265dcd686$exports,
|
|
760
|
+
"sv-SE": $69ba655c7853c08e$exports,
|
|
761
|
+
"tr-TR": $a79794784d61577c$exports,
|
|
762
|
+
"uk-UA": $c2845791417ebaf4$exports,
|
|
763
|
+
"zh-CN": $29b642d0025cc7a4$exports,
|
|
764
|
+
"zh-TW": $cd36dd33f9d46936$exports
|
|
765
|
+
};
|
|
766
|
+
function $parcel$interopDefault(a) {
|
|
767
|
+
return a && a.__esModule ? a.default : a;
|
|
768
|
+
}
|
|
769
|
+
function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
|
|
770
|
+
let { buttonRef, popoverRef, inputRef, listBoxRef, keyboardDelegate, layoutDelegate, shouldFocusWrap, isReadOnly, isDisabled } = props;
|
|
771
|
+
let backupBtnRef = useRef(null);
|
|
772
|
+
buttonRef = buttonRef !== null && buttonRef !== void 0 ? buttonRef : backupBtnRef;
|
|
773
|
+
let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($de5926a92e8ebc5b$exports), "@react-aria/combobox");
|
|
774
|
+
let { menuTriggerProps, menuProps } = $168583247155ddda$export$dc9c12ed27dd1b49({
|
|
775
|
+
type: "listbox",
|
|
776
|
+
isDisabled: isDisabled || isReadOnly
|
|
777
|
+
}, state, buttonRef);
|
|
778
|
+
$b1f0cad8af73213b$export$3585ede4d035bf14.set(state, {
|
|
779
|
+
id: menuProps.id
|
|
780
|
+
});
|
|
781
|
+
let { collection } = state;
|
|
782
|
+
let { disabledKeys } = state.selectionManager;
|
|
783
|
+
let delegate = useMemo(() => keyboardDelegate || new $2a25aae57d74318e$export$a05409b8bb224a5a({
|
|
784
|
+
collection,
|
|
785
|
+
disabledKeys,
|
|
786
|
+
ref: listBoxRef,
|
|
787
|
+
layoutDelegate
|
|
788
|
+
}), [
|
|
789
|
+
keyboardDelegate,
|
|
790
|
+
layoutDelegate,
|
|
791
|
+
collection,
|
|
792
|
+
disabledKeys,
|
|
793
|
+
listBoxRef
|
|
794
|
+
]);
|
|
795
|
+
let { collectionProps } = $ae20dd8cbca75726$export$d6daf82dcd84e87c({
|
|
796
|
+
selectionManager: state.selectionManager,
|
|
797
|
+
keyboardDelegate: delegate,
|
|
798
|
+
disallowTypeAhead: true,
|
|
799
|
+
disallowEmptySelection: true,
|
|
800
|
+
shouldFocusWrap,
|
|
801
|
+
ref: inputRef,
|
|
802
|
+
// Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
|
|
803
|
+
isVirtualized: true
|
|
804
|
+
});
|
|
805
|
+
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
806
|
+
let onKeyDown = (e) => {
|
|
807
|
+
if (e.nativeEvent.isComposing) return;
|
|
808
|
+
switch (e.key) {
|
|
809
|
+
case "Enter":
|
|
810
|
+
case "Tab":
|
|
811
|
+
if (state.isOpen && e.key === "Enter") e.preventDefault();
|
|
812
|
+
if (state.isOpen && listBoxRef.current && state.selectionManager.focusedKey != null && state.selectionManager.isLink(state.selectionManager.focusedKey)) {
|
|
813
|
+
let item = listBoxRef.current.querySelector(`[data-key="${CSS.escape(state.selectionManager.focusedKey.toString())}"]`);
|
|
814
|
+
if (e.key === "Enter" && item instanceof HTMLAnchorElement) {
|
|
815
|
+
let collectionItem = state.collection.getItem(state.selectionManager.focusedKey);
|
|
816
|
+
if (collectionItem) router.open(item, e, collectionItem.props.href, collectionItem.props.routerOptions);
|
|
817
|
+
}
|
|
818
|
+
state.close();
|
|
819
|
+
} else state.commit();
|
|
820
|
+
break;
|
|
821
|
+
case "Escape":
|
|
822
|
+
if (state.selectedKey !== null || state.inputValue === "" || props.allowsCustomValue) e.continuePropagation();
|
|
823
|
+
state.revert();
|
|
824
|
+
break;
|
|
825
|
+
case "ArrowDown":
|
|
826
|
+
state.open("first", "manual");
|
|
827
|
+
break;
|
|
828
|
+
case "ArrowUp":
|
|
829
|
+
state.open("last", "manual");
|
|
830
|
+
break;
|
|
831
|
+
case "ArrowLeft":
|
|
832
|
+
case "ArrowRight":
|
|
833
|
+
state.selectionManager.setFocusedKey(null);
|
|
834
|
+
break;
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
let onBlur = (e) => {
|
|
838
|
+
var _popoverRef_current;
|
|
839
|
+
let blurFromButton = (buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) && buttonRef.current === e.relatedTarget;
|
|
840
|
+
let blurIntoPopover = (_popoverRef_current = popoverRef.current) === null || _popoverRef_current === void 0 ? void 0 : _popoverRef_current.contains(e.relatedTarget);
|
|
841
|
+
if (blurFromButton || blurIntoPopover) return;
|
|
842
|
+
if (props.onBlur) props.onBlur(e);
|
|
843
|
+
state.setFocused(false);
|
|
844
|
+
};
|
|
845
|
+
let onFocus = (e) => {
|
|
846
|
+
if (state.isFocused) return;
|
|
847
|
+
if (props.onFocus) props.onFocus(e);
|
|
848
|
+
state.setFocused(true);
|
|
849
|
+
};
|
|
850
|
+
let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
|
|
851
|
+
let { labelProps, inputProps, descriptionProps, errorMessageProps } = $2d73ec29415bd339$export$712718f7aec83d5({
|
|
852
|
+
...props,
|
|
853
|
+
onChange: state.setInputValue,
|
|
854
|
+
onKeyDown: !isReadOnly ? $ff5963eb1fccf552$export$e08e3b67e392101e(state.isOpen && collectionProps.onKeyDown, onKeyDown, props.onKeyDown) : props.onKeyDown,
|
|
855
|
+
onBlur,
|
|
856
|
+
value: state.inputValue,
|
|
857
|
+
onFocus,
|
|
858
|
+
autoComplete: "off",
|
|
859
|
+
validate: void 0,
|
|
860
|
+
[$e5be200c675c3b3a$export$a763b9476acd3eb]: state
|
|
861
|
+
}, inputRef);
|
|
862
|
+
let onPress = (e) => {
|
|
863
|
+
if (e.pointerType === "touch") {
|
|
864
|
+
var _inputRef_current;
|
|
865
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
866
|
+
state.toggle(null, "manual");
|
|
867
|
+
}
|
|
868
|
+
};
|
|
869
|
+
let onPressStart = (e) => {
|
|
870
|
+
if (e.pointerType !== "touch") {
|
|
871
|
+
var _inputRef_current;
|
|
872
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
873
|
+
state.toggle(e.pointerType === "keyboard" || e.pointerType === "virtual" ? "first" : null, "manual");
|
|
874
|
+
}
|
|
875
|
+
};
|
|
876
|
+
let triggerLabelProps = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
877
|
+
id: menuTriggerProps.id,
|
|
878
|
+
"aria-label": stringFormatter.format("buttonLabel"),
|
|
879
|
+
"aria-labelledby": props["aria-labelledby"] || labelProps.id
|
|
880
|
+
});
|
|
881
|
+
let listBoxProps = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
882
|
+
id: menuProps.id,
|
|
883
|
+
"aria-label": stringFormatter.format("listboxLabel"),
|
|
884
|
+
"aria-labelledby": props["aria-labelledby"] || labelProps.id
|
|
885
|
+
});
|
|
886
|
+
let lastEventTime = useRef(0);
|
|
887
|
+
let onTouchEnd = (e) => {
|
|
888
|
+
if (isDisabled || isReadOnly) return;
|
|
889
|
+
if (e.timeStamp - lastEventTime.current < 500) {
|
|
890
|
+
var _inputRef_current;
|
|
891
|
+
e.preventDefault();
|
|
892
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
893
|
+
return;
|
|
894
|
+
}
|
|
895
|
+
let rect = e.target.getBoundingClientRect();
|
|
896
|
+
let touch = e.changedTouches[0];
|
|
897
|
+
let centerX = Math.ceil(rect.left + 0.5 * rect.width);
|
|
898
|
+
let centerY = Math.ceil(rect.top + 0.5 * rect.height);
|
|
899
|
+
if (touch.clientX === centerX && touch.clientY === centerY) {
|
|
900
|
+
var _inputRef_current1;
|
|
901
|
+
e.preventDefault();
|
|
902
|
+
(_inputRef_current1 = inputRef.current) === null || _inputRef_current1 === void 0 ? void 0 : _inputRef_current1.focus();
|
|
903
|
+
state.toggle(null, "manual");
|
|
904
|
+
lastEventTime.current = e.timeStamp;
|
|
905
|
+
}
|
|
906
|
+
};
|
|
907
|
+
let focusedItem = state.selectionManager.focusedKey != null && state.isOpen ? state.collection.getItem(state.selectionManager.focusedKey) : void 0;
|
|
908
|
+
var _focusedItem_parentKey;
|
|
909
|
+
let sectionKey = (_focusedItem_parentKey = focusedItem === null || focusedItem === void 0 ? void 0 : focusedItem.parentKey) !== null && _focusedItem_parentKey !== void 0 ? _focusedItem_parentKey : null;
|
|
910
|
+
var _state_selectionManager_focusedKey;
|
|
911
|
+
let itemKey = (_state_selectionManager_focusedKey = state.selectionManager.focusedKey) !== null && _state_selectionManager_focusedKey !== void 0 ? _state_selectionManager_focusedKey : null;
|
|
912
|
+
let lastSection = useRef(sectionKey);
|
|
913
|
+
let lastItem = useRef(itemKey);
|
|
914
|
+
useEffect(() => {
|
|
915
|
+
if ($c87311424ea30a05$export$e1865c3bedcd822b() && focusedItem != null && itemKey != null && itemKey !== lastItem.current) {
|
|
916
|
+
let isSelected = state.selectionManager.isSelected(itemKey);
|
|
917
|
+
let section = sectionKey != null ? state.collection.getItem(sectionKey) : null;
|
|
918
|
+
let sectionTitle = (section === null || section === void 0 ? void 0 : section["aria-label"]) || (typeof (section === null || section === void 0 ? void 0 : section.rendered) === "string" ? section.rendered : "") || "";
|
|
919
|
+
var _ref;
|
|
920
|
+
let announcement = stringFormatter.format("focusAnnouncement", {
|
|
921
|
+
isGroupChange: (_ref = section && sectionKey !== lastSection.current) !== null && _ref !== void 0 ? _ref : false,
|
|
922
|
+
groupTitle: sectionTitle,
|
|
923
|
+
groupCount: section ? [
|
|
924
|
+
...$c5a24bc478652b5f$export$1005530eda016c13(section, state.collection)
|
|
925
|
+
].length : 0,
|
|
926
|
+
optionText: focusedItem["aria-label"] || focusedItem.textValue || "",
|
|
927
|
+
isSelected
|
|
928
|
+
});
|
|
929
|
+
$319e236875307eab$export$a9b970dcc4ae71a9(announcement);
|
|
930
|
+
}
|
|
931
|
+
lastSection.current = sectionKey;
|
|
932
|
+
lastItem.current = itemKey;
|
|
933
|
+
});
|
|
934
|
+
let optionCount = $453cc9f0df89c0a5$export$77d5aafae4e095b2(state.collection);
|
|
935
|
+
let lastSize = useRef(optionCount);
|
|
936
|
+
let lastOpen = useRef(state.isOpen);
|
|
937
|
+
useEffect(() => {
|
|
938
|
+
let didOpenWithoutFocusedItem = state.isOpen !== lastOpen.current && (state.selectionManager.focusedKey == null || $c87311424ea30a05$export$e1865c3bedcd822b());
|
|
939
|
+
if (state.isOpen && (didOpenWithoutFocusedItem || optionCount !== lastSize.current)) {
|
|
940
|
+
let announcement = stringFormatter.format("countAnnouncement", {
|
|
941
|
+
optionCount
|
|
942
|
+
});
|
|
943
|
+
$319e236875307eab$export$a9b970dcc4ae71a9(announcement);
|
|
944
|
+
}
|
|
945
|
+
lastSize.current = optionCount;
|
|
946
|
+
lastOpen.current = state.isOpen;
|
|
947
|
+
});
|
|
948
|
+
let lastSelectedKey = useRef(state.selectedKey);
|
|
949
|
+
useEffect(() => {
|
|
950
|
+
if ($c87311424ea30a05$export$e1865c3bedcd822b() && state.isFocused && state.selectedItem && state.selectedKey !== lastSelectedKey.current) {
|
|
951
|
+
let optionText = state.selectedItem["aria-label"] || state.selectedItem.textValue || "";
|
|
952
|
+
let announcement = stringFormatter.format("selectedAnnouncement", {
|
|
953
|
+
optionText
|
|
954
|
+
});
|
|
955
|
+
$319e236875307eab$export$a9b970dcc4ae71a9(announcement);
|
|
956
|
+
}
|
|
957
|
+
lastSelectedKey.current = state.selectedKey;
|
|
958
|
+
});
|
|
959
|
+
useEffect(() => {
|
|
960
|
+
if (state.isOpen) return $5e3802645cc19319$export$1c3ebcada18427bf([
|
|
961
|
+
inputRef.current,
|
|
962
|
+
popoverRef.current
|
|
963
|
+
].filter((element) => element != null));
|
|
964
|
+
}, [
|
|
965
|
+
state.isOpen,
|
|
966
|
+
inputRef,
|
|
967
|
+
popoverRef
|
|
968
|
+
]);
|
|
969
|
+
$4f58c5f72bcf79f7$export$496315a1608d9602(() => {
|
|
970
|
+
if (!focusedItem && inputRef.current && $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(inputRef.current)) === inputRef.current) $55f9b1ae81f22853$export$2b35b76d2e30e129(inputRef.current, null);
|
|
971
|
+
}, [
|
|
972
|
+
focusedItem
|
|
973
|
+
]);
|
|
974
|
+
return {
|
|
975
|
+
labelProps,
|
|
976
|
+
buttonProps: {
|
|
977
|
+
...menuTriggerProps,
|
|
978
|
+
...triggerLabelProps,
|
|
979
|
+
excludeFromTabOrder: true,
|
|
980
|
+
preventFocusOnPress: true,
|
|
981
|
+
onPress,
|
|
982
|
+
onPressStart,
|
|
983
|
+
isDisabled: isDisabled || isReadOnly
|
|
984
|
+
},
|
|
985
|
+
inputProps: $3ef42575df84b30b$export$9d1611c77c2fe928(inputProps, {
|
|
986
|
+
role: "combobox",
|
|
987
|
+
"aria-expanded": menuTriggerProps["aria-expanded"],
|
|
988
|
+
"aria-controls": state.isOpen ? menuProps.id : void 0,
|
|
989
|
+
// TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
|
|
990
|
+
"aria-autocomplete": "list",
|
|
991
|
+
"aria-activedescendant": focusedItem ? $b1f0cad8af73213b$export$9145995848b05025(state, focusedItem.key) : void 0,
|
|
992
|
+
onTouchEnd,
|
|
993
|
+
// This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.
|
|
994
|
+
autoCorrect: "off",
|
|
995
|
+
// This disable's the macOS Safari spell check auto corrections.
|
|
996
|
+
spellCheck: "false"
|
|
997
|
+
}),
|
|
998
|
+
listBoxProps: $3ef42575df84b30b$export$9d1611c77c2fe928(menuProps, listBoxProps, {
|
|
999
|
+
autoFocus: state.focusStrategy || true,
|
|
1000
|
+
shouldUseVirtualFocus: true,
|
|
1001
|
+
shouldSelectOnPressUp: true,
|
|
1002
|
+
shouldFocusOnHover: true,
|
|
1003
|
+
linkBehavior: "selection"
|
|
1004
|
+
}),
|
|
1005
|
+
descriptionProps,
|
|
1006
|
+
errorMessageProps,
|
|
1007
|
+
isInvalid,
|
|
1008
|
+
validationErrors,
|
|
1009
|
+
validationDetails
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
1013
|
+
var _collection_getItem;
|
|
1014
|
+
let { defaultFilter, menuTrigger = "input", allowsEmptyCollection = false, allowsCustomValue, shouldCloseOnBlur = true } = props;
|
|
1015
|
+
let [showAllItems, setShowAllItems] = useState(false);
|
|
1016
|
+
let [isFocused, setFocusedState] = useState(false);
|
|
1017
|
+
let [focusStrategy, setFocusStrategy] = useState(null);
|
|
1018
|
+
let onSelectionChange = (key) => {
|
|
1019
|
+
if (props.onSelectionChange) props.onSelectionChange(key);
|
|
1020
|
+
if (key === selectedKey) {
|
|
1021
|
+
resetInputValue();
|
|
1022
|
+
closeMenu();
|
|
1023
|
+
}
|
|
1024
|
+
};
|
|
1025
|
+
var _props_items;
|
|
1026
|
+
let { collection, selectionManager, selectedKey, setSelectedKey, selectedItem, disabledKeys } = $a0d645289fe9b86b$export$e7f05e985daf4b5f({
|
|
1027
|
+
...props,
|
|
1028
|
+
onSelectionChange,
|
|
1029
|
+
items: (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : props.defaultItems
|
|
1030
|
+
});
|
|
1031
|
+
let defaultInputValue = props.defaultInputValue;
|
|
1032
|
+
if (defaultInputValue == null) {
|
|
1033
|
+
var _collection_getItem1;
|
|
1034
|
+
var _collection_getItem_textValue;
|
|
1035
|
+
if (selectedKey == null) defaultInputValue = "";
|
|
1036
|
+
else defaultInputValue = (_collection_getItem_textValue = (_collection_getItem1 = collection.getItem(selectedKey)) === null || _collection_getItem1 === void 0 ? void 0 : _collection_getItem1.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "";
|
|
1037
|
+
}
|
|
1038
|
+
let [inputValue, setInputValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.inputValue, defaultInputValue, props.onInputChange);
|
|
1039
|
+
let originalCollection = collection;
|
|
1040
|
+
let filteredCollection = useMemo(() => (
|
|
1041
|
+
// No default filter if items are controlled.
|
|
1042
|
+
props.items != null || !defaultFilter ? collection : $a9e7382a7d111cb5$var$filterCollection(collection, inputValue, defaultFilter)
|
|
1043
|
+
), [
|
|
1044
|
+
collection,
|
|
1045
|
+
inputValue,
|
|
1046
|
+
defaultFilter,
|
|
1047
|
+
props.items
|
|
1048
|
+
]);
|
|
1049
|
+
let [lastCollection, setLastCollection] = useState(filteredCollection);
|
|
1050
|
+
let menuOpenTrigger = useRef("focus");
|
|
1051
|
+
let onOpenChange = (open2) => {
|
|
1052
|
+
if (props.onOpenChange) props.onOpenChange(open2, open2 ? menuOpenTrigger.current : void 0);
|
|
1053
|
+
selectionManager.setFocused(open2);
|
|
1054
|
+
if (!open2) selectionManager.setFocusedKey(null);
|
|
1055
|
+
};
|
|
1056
|
+
let triggerState = $fc909762b330b746$export$61c6a8c84e605fb6({
|
|
1057
|
+
...props,
|
|
1058
|
+
onOpenChange,
|
|
1059
|
+
isOpen: void 0,
|
|
1060
|
+
defaultOpen: void 0
|
|
1061
|
+
});
|
|
1062
|
+
let open = (focusStrategy2 = null, trigger) => {
|
|
1063
|
+
let displayAllItems = trigger === "manual" || trigger === "focus" && menuTrigger === "focus";
|
|
1064
|
+
if (allowsEmptyCollection || filteredCollection.size > 0 || displayAllItems && originalCollection.size > 0 || props.items) {
|
|
1065
|
+
if (displayAllItems && !triggerState.isOpen && props.items === void 0)
|
|
1066
|
+
setShowAllItems(true);
|
|
1067
|
+
menuOpenTrigger.current = trigger;
|
|
1068
|
+
setFocusStrategy(focusStrategy2);
|
|
1069
|
+
triggerState.open();
|
|
1070
|
+
}
|
|
1071
|
+
};
|
|
1072
|
+
let toggle = (focusStrategy2 = null, trigger) => {
|
|
1073
|
+
let displayAllItems = trigger === "manual" || trigger === "focus" && menuTrigger === "focus";
|
|
1074
|
+
if (!(allowsEmptyCollection || filteredCollection.size > 0 || displayAllItems && originalCollection.size > 0 || props.items) && !triggerState.isOpen) return;
|
|
1075
|
+
if (displayAllItems && !triggerState.isOpen && props.items === void 0)
|
|
1076
|
+
setShowAllItems(true);
|
|
1077
|
+
if (!triggerState.isOpen) menuOpenTrigger.current = trigger;
|
|
1078
|
+
toggleMenu(focusStrategy2);
|
|
1079
|
+
};
|
|
1080
|
+
let updateLastCollection = useCallback(() => {
|
|
1081
|
+
setLastCollection(showAllItems ? originalCollection : filteredCollection);
|
|
1082
|
+
}, [
|
|
1083
|
+
showAllItems,
|
|
1084
|
+
originalCollection,
|
|
1085
|
+
filteredCollection
|
|
1086
|
+
]);
|
|
1087
|
+
let toggleMenu = useCallback((focusStrategy2 = null) => {
|
|
1088
|
+
if (triggerState.isOpen) updateLastCollection();
|
|
1089
|
+
setFocusStrategy(focusStrategy2);
|
|
1090
|
+
triggerState.toggle();
|
|
1091
|
+
}, [
|
|
1092
|
+
triggerState,
|
|
1093
|
+
updateLastCollection
|
|
1094
|
+
]);
|
|
1095
|
+
let closeMenu = useCallback(() => {
|
|
1096
|
+
if (triggerState.isOpen) {
|
|
1097
|
+
updateLastCollection();
|
|
1098
|
+
triggerState.close();
|
|
1099
|
+
}
|
|
1100
|
+
}, [
|
|
1101
|
+
triggerState,
|
|
1102
|
+
updateLastCollection
|
|
1103
|
+
]);
|
|
1104
|
+
let [lastValue, setLastValue] = useState(inputValue);
|
|
1105
|
+
let resetInputValue = () => {
|
|
1106
|
+
var _collection_getItem2;
|
|
1107
|
+
var _collection_getItem_textValue2;
|
|
1108
|
+
let itemText = selectedKey != null ? (_collection_getItem_textValue2 = (_collection_getItem2 = collection.getItem(selectedKey)) === null || _collection_getItem2 === void 0 ? void 0 : _collection_getItem2.textValue) !== null && _collection_getItem_textValue2 !== void 0 ? _collection_getItem_textValue2 : "" : "";
|
|
1109
|
+
setLastValue(itemText);
|
|
1110
|
+
setInputValue(itemText);
|
|
1111
|
+
};
|
|
1112
|
+
var _props_selectedKey, _ref;
|
|
1113
|
+
let lastSelectedKey = useRef((_ref = (_props_selectedKey = props.selectedKey) !== null && _props_selectedKey !== void 0 ? _props_selectedKey : props.defaultSelectedKey) !== null && _ref !== void 0 ? _ref : null);
|
|
1114
|
+
var _collection_getItem_textValue1;
|
|
1115
|
+
let lastSelectedKeyText = useRef(selectedKey != null ? (_collection_getItem_textValue1 = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue1 !== void 0 ? _collection_getItem_textValue1 : "" : "");
|
|
1116
|
+
useEffect(() => {
|
|
1117
|
+
var _collection_getItem2;
|
|
1118
|
+
if (isFocused && (filteredCollection.size > 0 || allowsEmptyCollection) && !triggerState.isOpen && inputValue !== lastValue && menuTrigger !== "manual") open(null, "input");
|
|
1119
|
+
if (!showAllItems && !allowsEmptyCollection && triggerState.isOpen && filteredCollection.size === 0) closeMenu();
|
|
1120
|
+
if (selectedKey != null && selectedKey !== lastSelectedKey.current) closeMenu();
|
|
1121
|
+
if (inputValue !== lastValue) {
|
|
1122
|
+
selectionManager.setFocusedKey(null);
|
|
1123
|
+
setShowAllItems(false);
|
|
1124
|
+
if (inputValue === "" && (props.inputValue === void 0 || props.selectedKey === void 0)) setSelectedKey(null);
|
|
1125
|
+
}
|
|
1126
|
+
if (selectedKey !== lastSelectedKey.current && (props.inputValue === void 0 || props.selectedKey === void 0)) resetInputValue();
|
|
1127
|
+
else if (lastValue !== inputValue) setLastValue(inputValue);
|
|
1128
|
+
var _collection_getItem_textValue2;
|
|
1129
|
+
let selectedItemText = selectedKey != null ? (_collection_getItem_textValue2 = (_collection_getItem2 = collection.getItem(selectedKey)) === null || _collection_getItem2 === void 0 ? void 0 : _collection_getItem2.textValue) !== null && _collection_getItem_textValue2 !== void 0 ? _collection_getItem_textValue2 : "" : "";
|
|
1130
|
+
if (!isFocused && selectedKey != null && props.inputValue === void 0 && selectedKey === lastSelectedKey.current) {
|
|
1131
|
+
if (lastSelectedKeyText.current !== selectedItemText) {
|
|
1132
|
+
setLastValue(selectedItemText);
|
|
1133
|
+
setInputValue(selectedItemText);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
lastSelectedKey.current = selectedKey;
|
|
1137
|
+
lastSelectedKeyText.current = selectedItemText;
|
|
1138
|
+
});
|
|
1139
|
+
let validation = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
1140
|
+
...props,
|
|
1141
|
+
value: useMemo(() => ({
|
|
1142
|
+
inputValue,
|
|
1143
|
+
selectedKey
|
|
1144
|
+
}), [
|
|
1145
|
+
inputValue,
|
|
1146
|
+
selectedKey
|
|
1147
|
+
])
|
|
1148
|
+
});
|
|
1149
|
+
let revert = () => {
|
|
1150
|
+
if (allowsCustomValue && selectedKey == null) commitCustomValue();
|
|
1151
|
+
else commitSelection();
|
|
1152
|
+
};
|
|
1153
|
+
let commitCustomValue = () => {
|
|
1154
|
+
lastSelectedKey.current = null;
|
|
1155
|
+
setSelectedKey(null);
|
|
1156
|
+
closeMenu();
|
|
1157
|
+
};
|
|
1158
|
+
let commitSelection = () => {
|
|
1159
|
+
if (props.selectedKey !== void 0 && props.inputValue !== void 0) {
|
|
1160
|
+
var _props_onSelectionChange, _collection_getItem2;
|
|
1161
|
+
(_props_onSelectionChange = props.onSelectionChange) === null || _props_onSelectionChange === void 0 ? void 0 : _props_onSelectionChange.call(props, selectedKey);
|
|
1162
|
+
var _collection_getItem_textValue2;
|
|
1163
|
+
let itemText = selectedKey != null ? (_collection_getItem_textValue2 = (_collection_getItem2 = collection.getItem(selectedKey)) === null || _collection_getItem2 === void 0 ? void 0 : _collection_getItem2.textValue) !== null && _collection_getItem_textValue2 !== void 0 ? _collection_getItem_textValue2 : "" : "";
|
|
1164
|
+
setLastValue(itemText);
|
|
1165
|
+
closeMenu();
|
|
1166
|
+
} else {
|
|
1167
|
+
resetInputValue();
|
|
1168
|
+
closeMenu();
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
const commitValue = () => {
|
|
1172
|
+
if (allowsCustomValue) {
|
|
1173
|
+
var _collection_getItem2;
|
|
1174
|
+
var _collection_getItem_textValue2;
|
|
1175
|
+
const itemText = selectedKey != null ? (_collection_getItem_textValue2 = (_collection_getItem2 = collection.getItem(selectedKey)) === null || _collection_getItem2 === void 0 ? void 0 : _collection_getItem2.textValue) !== null && _collection_getItem_textValue2 !== void 0 ? _collection_getItem_textValue2 : "" : "";
|
|
1176
|
+
inputValue === itemText ? commitSelection() : commitCustomValue();
|
|
1177
|
+
} else
|
|
1178
|
+
commitSelection();
|
|
1179
|
+
};
|
|
1180
|
+
let commit = () => {
|
|
1181
|
+
if (triggerState.isOpen && selectionManager.focusedKey != null) {
|
|
1182
|
+
if (selectedKey === selectionManager.focusedKey) commitSelection();
|
|
1183
|
+
else setSelectedKey(selectionManager.focusedKey);
|
|
1184
|
+
} else commitValue();
|
|
1185
|
+
};
|
|
1186
|
+
let valueOnFocus = useRef(inputValue);
|
|
1187
|
+
let setFocused = (isFocused2) => {
|
|
1188
|
+
if (isFocused2) {
|
|
1189
|
+
valueOnFocus.current = inputValue;
|
|
1190
|
+
if (menuTrigger === "focus" && !props.isReadOnly) open(null, "focus");
|
|
1191
|
+
} else {
|
|
1192
|
+
if (shouldCloseOnBlur) commitValue();
|
|
1193
|
+
if (inputValue !== valueOnFocus.current) validation.commitValidation();
|
|
1194
|
+
}
|
|
1195
|
+
setFocusedState(isFocused2);
|
|
1196
|
+
};
|
|
1197
|
+
let displayedCollection = useMemo(() => {
|
|
1198
|
+
if (triggerState.isOpen) {
|
|
1199
|
+
if (showAllItems) return originalCollection;
|
|
1200
|
+
else return filteredCollection;
|
|
1201
|
+
} else return lastCollection;
|
|
1202
|
+
}, [
|
|
1203
|
+
triggerState.isOpen,
|
|
1204
|
+
originalCollection,
|
|
1205
|
+
filteredCollection,
|
|
1206
|
+
showAllItems,
|
|
1207
|
+
lastCollection
|
|
1208
|
+
]);
|
|
1209
|
+
return {
|
|
1210
|
+
...validation,
|
|
1211
|
+
...triggerState,
|
|
1212
|
+
focusStrategy,
|
|
1213
|
+
toggle,
|
|
1214
|
+
open,
|
|
1215
|
+
close: commitValue,
|
|
1216
|
+
selectionManager,
|
|
1217
|
+
selectedKey,
|
|
1218
|
+
setSelectedKey,
|
|
1219
|
+
disabledKeys,
|
|
1220
|
+
isFocused,
|
|
1221
|
+
setFocused,
|
|
1222
|
+
selectedItem,
|
|
1223
|
+
collection: displayedCollection,
|
|
1224
|
+
inputValue,
|
|
1225
|
+
setInputValue,
|
|
1226
|
+
commit,
|
|
1227
|
+
revert
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
function $a9e7382a7d111cb5$var$filterCollection(collection, inputValue, filter) {
|
|
1231
|
+
return new $a02d57049d202695$export$d085fb9e920b5ca7($a9e7382a7d111cb5$var$filterNodes(collection, collection, inputValue, filter));
|
|
1232
|
+
}
|
|
1233
|
+
function $a9e7382a7d111cb5$var$filterNodes(collection, nodes, inputValue, filter) {
|
|
1234
|
+
let filteredNode = [];
|
|
1235
|
+
for (let node of nodes) {
|
|
1236
|
+
if (node.type === "section" && node.hasChildNodes) {
|
|
1237
|
+
let filtered = $a9e7382a7d111cb5$var$filterNodes(collection, $c5a24bc478652b5f$export$1005530eda016c13(node, collection), inputValue, filter);
|
|
1238
|
+
if ([
|
|
1239
|
+
...filtered
|
|
1240
|
+
].some((node2) => node2.type === "item")) filteredNode.push({
|
|
1241
|
+
...node,
|
|
1242
|
+
childNodes: filtered
|
|
1243
|
+
});
|
|
1244
|
+
} else if (node.type === "item" && filter(node.textValue, inputValue)) filteredNode.push({
|
|
1245
|
+
...node
|
|
1246
|
+
});
|
|
1247
|
+
else if (node.type !== "item") filteredNode.push({
|
|
1248
|
+
...node
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
return filteredNode;
|
|
1252
|
+
}
|
|
1253
|
+
const $d01f2c01039c0eec$export$d414ccceff7063c3 = /* @__PURE__ */ createContext(null);
|
|
1254
|
+
const $d01f2c01039c0eec$export$c02625b26074192c = /* @__PURE__ */ createContext(null);
|
|
1255
|
+
const $d01f2c01039c0eec$export$72b9695b8216309a = /* @__PURE__ */ forwardRef(function ComboBox(props, ref) {
|
|
1256
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $d01f2c01039c0eec$export$d414ccceff7063c3);
|
|
1257
|
+
let { children, isDisabled = false, isInvalid = false, isRequired = false } = props;
|
|
1258
|
+
let content = useMemo(() => {
|
|
1259
|
+
var _props_items;
|
|
1260
|
+
return /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$export$7ff8f37d2d81a48d.Provider, {
|
|
1261
|
+
value: {
|
|
1262
|
+
items: (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : props.defaultItems
|
|
1263
|
+
}
|
|
1264
|
+
}, typeof children === "function" ? children({
|
|
1265
|
+
isOpen: false,
|
|
1266
|
+
isDisabled,
|
|
1267
|
+
isInvalid,
|
|
1268
|
+
isRequired,
|
|
1269
|
+
defaultChildren: null
|
|
1270
|
+
}) : children);
|
|
1271
|
+
}, [
|
|
1272
|
+
children,
|
|
1273
|
+
isDisabled,
|
|
1274
|
+
isInvalid,
|
|
1275
|
+
isRequired,
|
|
1276
|
+
props.items,
|
|
1277
|
+
props.defaultItems
|
|
1278
|
+
]);
|
|
1279
|
+
return /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
|
|
1280
|
+
content
|
|
1281
|
+
}, (collection) => /* @__PURE__ */ React__default.createElement($d01f2c01039c0eec$var$ComboBoxInner, {
|
|
1282
|
+
props,
|
|
1283
|
+
collection,
|
|
1284
|
+
comboBoxRef: ref
|
|
1285
|
+
}));
|
|
1286
|
+
});
|
|
1287
|
+
const $d01f2c01039c0eec$var$CLEAR_CONTEXTS = [
|
|
1288
|
+
$01b77f81d0f07f68$export$75b6ee27786ba447,
|
|
1289
|
+
$d2b4bc8c273e7be6$export$24d547caef80ccd1,
|
|
1290
|
+
$3985021b0ad6602f$export$37fb8590cf2c088c,
|
|
1291
|
+
$a049562f99e7db0e$export$f9c6924e160136d1,
|
|
1292
|
+
$514c0188e459b4c0$export$9afb8bc826b033ea
|
|
1293
|
+
];
|
|
1294
|
+
function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: ref }) {
|
|
1295
|
+
let { name, formValue = "key", allowsCustomValue } = props;
|
|
1296
|
+
if (allowsCustomValue) formValue = "text";
|
|
1297
|
+
let { validationBehavior: formValidationBehavior } = $64fa3d84918910a7$export$fabf2dc03a41866e($d3e0e05bdfcf66bd$export$c24727297075ec6a) || {};
|
|
1298
|
+
var _props_validationBehavior, _ref;
|
|
1299
|
+
let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : "native";
|
|
1300
|
+
let { contains } = $bb77f239b46e8c72$export$3274cf84b703fff({
|
|
1301
|
+
sensitivity: "base"
|
|
1302
|
+
});
|
|
1303
|
+
let state = $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({
|
|
1304
|
+
defaultFilter: props.defaultFilter || contains,
|
|
1305
|
+
...props,
|
|
1306
|
+
// If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
|
|
1307
|
+
items: props.items,
|
|
1308
|
+
children: void 0,
|
|
1309
|
+
collection,
|
|
1310
|
+
validationBehavior
|
|
1311
|
+
});
|
|
1312
|
+
let buttonRef = useRef(null);
|
|
1313
|
+
let inputRef = useRef(null);
|
|
1314
|
+
let listBoxRef = useRef(null);
|
|
1315
|
+
let popoverRef = useRef(null);
|
|
1316
|
+
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1317
|
+
let { buttonProps, inputProps, listBoxProps, labelProps, descriptionProps, errorMessageProps, ...validation } = $c350ade66beef0af$export$8c18d1b4f7232bbf({
|
|
1318
|
+
...$64fa3d84918910a7$export$ef03459518577ad4(props),
|
|
1319
|
+
label,
|
|
1320
|
+
inputRef,
|
|
1321
|
+
buttonRef,
|
|
1322
|
+
listBoxRef,
|
|
1323
|
+
popoverRef,
|
|
1324
|
+
name: formValue === "text" ? name : void 0,
|
|
1325
|
+
validationBehavior
|
|
1326
|
+
}, state);
|
|
1327
|
+
let [menuWidth, setMenuWidth] = useState(null);
|
|
1328
|
+
let onResize = useCallback(() => {
|
|
1329
|
+
if (inputRef.current) {
|
|
1330
|
+
var _buttonRef_current;
|
|
1331
|
+
let buttonRect = (_buttonRef_current = buttonRef.current) === null || _buttonRef_current === void 0 ? void 0 : _buttonRef_current.getBoundingClientRect();
|
|
1332
|
+
let inputRect = inputRef.current.getBoundingClientRect();
|
|
1333
|
+
let minX = buttonRect ? Math.min(buttonRect.left, inputRect.left) : inputRect.left;
|
|
1334
|
+
let maxX = buttonRect ? Math.max(buttonRect.right, inputRect.right) : inputRect.right;
|
|
1335
|
+
setMenuWidth(maxX - minX + "px");
|
|
1336
|
+
}
|
|
1337
|
+
}, [
|
|
1338
|
+
buttonRef,
|
|
1339
|
+
inputRef,
|
|
1340
|
+
setMenuWidth
|
|
1341
|
+
]);
|
|
1342
|
+
$9daab02d461809db$export$683480f191c0e3ea({
|
|
1343
|
+
ref: inputRef,
|
|
1344
|
+
onResize
|
|
1345
|
+
});
|
|
1346
|
+
let renderPropsState = useMemo(() => ({
|
|
1347
|
+
isOpen: state.isOpen,
|
|
1348
|
+
isDisabled: props.isDisabled || false,
|
|
1349
|
+
isInvalid: validation.isInvalid || false,
|
|
1350
|
+
isRequired: props.isRequired || false
|
|
1351
|
+
}), [
|
|
1352
|
+
state.isOpen,
|
|
1353
|
+
props.isDisabled,
|
|
1354
|
+
validation.isInvalid,
|
|
1355
|
+
props.isRequired
|
|
1356
|
+
]);
|
|
1357
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
1358
|
+
...props,
|
|
1359
|
+
values: renderPropsState,
|
|
1360
|
+
defaultClassName: "react-aria-ComboBox"
|
|
1361
|
+
});
|
|
1362
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
|
|
1363
|
+
delete DOMProps.id;
|
|
1364
|
+
var _state_selectedKey;
|
|
1365
|
+
return /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
1366
|
+
values: [
|
|
1367
|
+
[
|
|
1368
|
+
$d01f2c01039c0eec$export$c02625b26074192c,
|
|
1369
|
+
state
|
|
1370
|
+
],
|
|
1371
|
+
[
|
|
1372
|
+
$01b77f81d0f07f68$export$75b6ee27786ba447,
|
|
1373
|
+
{
|
|
1374
|
+
...labelProps,
|
|
1375
|
+
ref: labelRef
|
|
1376
|
+
}
|
|
1377
|
+
],
|
|
1378
|
+
[
|
|
1379
|
+
$d2b4bc8c273e7be6$export$24d547caef80ccd1,
|
|
1380
|
+
{
|
|
1381
|
+
...buttonProps,
|
|
1382
|
+
ref: buttonRef,
|
|
1383
|
+
isPressed: state.isOpen
|
|
1384
|
+
}
|
|
1385
|
+
],
|
|
1386
|
+
[
|
|
1387
|
+
$3985021b0ad6602f$export$37fb8590cf2c088c,
|
|
1388
|
+
{
|
|
1389
|
+
...inputProps,
|
|
1390
|
+
ref: inputRef
|
|
1391
|
+
}
|
|
1392
|
+
],
|
|
1393
|
+
[
|
|
1394
|
+
$de32f1b87079253c$export$d2f961adcb0afbe,
|
|
1395
|
+
state
|
|
1396
|
+
],
|
|
1397
|
+
[
|
|
1398
|
+
$07b14b47974efb58$export$9b9a0cd73afb7ca4,
|
|
1399
|
+
{
|
|
1400
|
+
ref: popoverRef,
|
|
1401
|
+
triggerRef: inputRef,
|
|
1402
|
+
scrollRef: listBoxRef,
|
|
1403
|
+
placement: "bottom start",
|
|
1404
|
+
isNonModal: true,
|
|
1405
|
+
trigger: "ComboBox",
|
|
1406
|
+
style: {
|
|
1407
|
+
"--trigger-width": menuWidth
|
|
1408
|
+
},
|
|
1409
|
+
clearContexts: $d01f2c01039c0eec$var$CLEAR_CONTEXTS
|
|
1410
|
+
}
|
|
1411
|
+
],
|
|
1412
|
+
[
|
|
1413
|
+
$eed445e0843c11d0$export$7ff8f37d2d81a48d,
|
|
1414
|
+
{
|
|
1415
|
+
...listBoxProps,
|
|
1416
|
+
ref: listBoxRef
|
|
1417
|
+
}
|
|
1418
|
+
],
|
|
1419
|
+
[
|
|
1420
|
+
$eed445e0843c11d0$export$7c5906fe4f1f2af2,
|
|
1421
|
+
state
|
|
1422
|
+
],
|
|
1423
|
+
[
|
|
1424
|
+
$514c0188e459b4c0$export$9afb8bc826b033ea,
|
|
1425
|
+
{
|
|
1426
|
+
slots: {
|
|
1427
|
+
description: descriptionProps,
|
|
1428
|
+
errorMessage: errorMessageProps
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
],
|
|
1432
|
+
[
|
|
1433
|
+
$a049562f99e7db0e$export$f9c6924e160136d1,
|
|
1434
|
+
{
|
|
1435
|
+
isInvalid: validation.isInvalid,
|
|
1436
|
+
isDisabled: props.isDisabled || false
|
|
1437
|
+
}
|
|
1438
|
+
],
|
|
1439
|
+
[
|
|
1440
|
+
$ee014567cb39d3f0$export$ff05c3ac10437e03,
|
|
1441
|
+
validation
|
|
1442
|
+
]
|
|
1443
|
+
]
|
|
1444
|
+
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
1445
|
+
...DOMProps,
|
|
1446
|
+
...renderProps,
|
|
1447
|
+
ref,
|
|
1448
|
+
slot: props.slot || void 0,
|
|
1449
|
+
"data-focused": state.isFocused || void 0,
|
|
1450
|
+
"data-open": state.isOpen || void 0,
|
|
1451
|
+
"data-disabled": props.isDisabled || void 0,
|
|
1452
|
+
"data-invalid": validation.isInvalid || void 0,
|
|
1453
|
+
"data-required": props.isRequired || void 0
|
|
1454
|
+
}), name && formValue === "key" && /* @__PURE__ */ React__default.createElement("input", {
|
|
1455
|
+
type: "hidden",
|
|
1456
|
+
name,
|
|
1457
|
+
value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : ""
|
|
1458
|
+
}));
|
|
1459
|
+
}
|
|
18
1460
|
/**
|
|
19
1461
|
* Component that allows URL selection, with a suggestionList of suggestions and type-to-search.
|
|
20
1462
|
*
|
|
@@ -48,7 +1490,6 @@ import { RichLabel } from "../rich-label/rich-label.js";
|
|
|
48
1490
|
* @preserve
|
|
49
1491
|
*/
|
|
50
1492
|
const LinkInput = (props) => {
|
|
51
|
-
var _a;
|
|
52
1493
|
const {
|
|
53
1494
|
url = "",
|
|
54
1495
|
onChange,
|
|
@@ -96,7 +1537,7 @@ const LinkInput = (props) => {
|
|
|
96
1537
|
items: suggestionList.items,
|
|
97
1538
|
inputValue: url,
|
|
98
1539
|
onInputChange: (value) => {
|
|
99
|
-
onChange({ url: value, isAnchor: value
|
|
1540
|
+
onChange({ url: value, isAnchor: value?.includes("#") });
|
|
100
1541
|
if (shouldShowSuggestions) {
|
|
101
1542
|
suggestionList.reload();
|
|
102
1543
|
}
|
|
@@ -133,7 +1574,8 @@ const LinkInput = (props) => {
|
|
|
133
1574
|
"es:inset-ring es:inset-ring-secondary-100",
|
|
134
1575
|
"es:disabled:shadow-none! es:disabled:border-secondary-200 es:disabled:bg-secondary-50 es:disabled:text-secondary-500 es:disabled:cursor-default es:readonly:bg-secondary-50",
|
|
135
1576
|
"es:not-readonly:focus:shadow-md",
|
|
136
|
-
|
|
1577
|
+
"es:[&::-webkit-search-cancel-button]:hidden",
|
|
1578
|
+
url?.length > 0 && "es:pr-10",
|
|
137
1579
|
className
|
|
138
1580
|
)
|
|
139
1581
|
}
|
|
@@ -141,7 +1583,7 @@ const LinkInput = (props) => {
|
|
|
141
1583
|
/* @__PURE__ */ jsx(
|
|
142
1584
|
AnimatedVisibility,
|
|
143
1585
|
{
|
|
144
|
-
visible: !disabled &&
|
|
1586
|
+
visible: !disabled && url?.length > 0,
|
|
145
1587
|
className: "es:absolute es:inset-y-1 es:right-1",
|
|
146
1588
|
transition: "fade",
|
|
147
1589
|
children: /* @__PURE__ */ jsxs(
|
|
@@ -181,13 +1623,17 @@ const LinkInput = (props) => {
|
|
|
181
1623
|
"aria-label": __("URL suggestions", "eightshift-ui-components"),
|
|
182
1624
|
className: ({ isEntering, isExiting }) => clsx(
|
|
183
1625
|
"es:border es:rounded-xl es:border-secondary-300 es:bg-white es:shadow-lg es:outline-hidden es:min-w-72",
|
|
184
|
-
|
|
185
|
-
|
|
1626
|
+
"es:motion-safe:motion-duration-200 es:motion-safe:motion-ease-spring-bouncy",
|
|
1627
|
+
"es:placement-bottom:origin-top-left es:placement-top:origin-bottom-left",
|
|
1628
|
+
(isEntering || !(suggestionList.isLoading || !shouldShowSuggestions)) && "es:motion-safe:motion-scale-in-95 es:motion-opacity-in-0",
|
|
1629
|
+
(isEntering || !(suggestionList.isLoading || !shouldShowSuggestions)) && "es:motion-safe:placement-top:motion-translate-y-in-[5%] es:motion-safe:placement-bottom:motion-translate-y-in-[-5%]",
|
|
1630
|
+
isExiting && "es:motion-safe:motion-scale-out-95 es:motion-opacity-out-0",
|
|
1631
|
+
isExiting && "es:motion-safe:placement-top:motion-translate-y-out-[5%] es:motion-safe:placement-bottom:motion-translate-y-out-[-5%]",
|
|
186
1632
|
(suggestionList.isLoading || !shouldShowSuggestions) && "es:invisible"
|
|
187
1633
|
),
|
|
188
1634
|
offset: 3,
|
|
189
1635
|
style: {
|
|
190
|
-
width: `${
|
|
1636
|
+
width: `${triggerRef.current?.offsetWidth}px`
|
|
191
1637
|
},
|
|
192
1638
|
children: [
|
|
193
1639
|
shouldShowSuggestions && !suggestionList.isLoading && suggestionList.items.length === 0 && /* @__PURE__ */ jsx(
|
|
@@ -243,7 +1689,7 @@ const LinkInput = (props) => {
|
|
|
243
1689
|
{
|
|
244
1690
|
icon: typeIcon,
|
|
245
1691
|
label: title,
|
|
246
|
-
subtitle: url2
|
|
1692
|
+
subtitle: url2?.replace(location.origin, "").replace(/\/$/, ""),
|
|
247
1693
|
noColor: true
|
|
248
1694
|
}
|
|
249
1695
|
)
|