@react-aria/combobox 3.2.3-nightly.3111 → 3.2.3
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/main.js +155 -152
- package/dist/main.js.map +1 -1
- package/dist/module.js +155 -152
- package/dist/module.js.map +1 -1
- package/package.json +17 -17
package/dist/main.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var $
|
|
2
|
-
var $
|
|
3
|
-
var $
|
|
4
|
-
var $
|
|
5
|
-
var $
|
|
6
|
-
var $
|
|
7
|
-
var $
|
|
8
|
-
var $
|
|
9
|
-
var $
|
|
10
|
-
var $
|
|
1
|
+
var $2zMGE$reactarialiveannouncer = require("@react-aria/live-announcer");
|
|
2
|
+
var $2zMGE$reactariaoverlays = require("@react-aria/overlays");
|
|
3
|
+
var $2zMGE$reactarialistbox = require("@react-aria/listbox");
|
|
4
|
+
var $2zMGE$reactariautils = require("@react-aria/utils");
|
|
5
|
+
var $2zMGE$react = require("react");
|
|
6
|
+
var $2zMGE$reactstatelycollections = require("@react-stately/collections");
|
|
7
|
+
var $2zMGE$reactariaselection = require("@react-aria/selection");
|
|
8
|
+
var $2zMGE$reactariamenu = require("@react-aria/menu");
|
|
9
|
+
var $2zMGE$reactariai18n = require("@react-aria/i18n");
|
|
10
|
+
var $2zMGE$reactariatextfield = require("@react-aria/textfield");
|
|
11
11
|
|
|
12
12
|
function $parcel$exportWildcard(dest, source) {
|
|
13
13
|
Object.keys(source).forEach(function(key) {
|
|
@@ -31,187 +31,187 @@ function $parcel$interopDefault(a) {
|
|
|
31
31
|
function $parcel$export(e, n, v, s) {
|
|
32
32
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
33
33
|
}
|
|
34
|
-
var $
|
|
34
|
+
var $1f09c05465c4fe7b$exports = {};
|
|
35
35
|
|
|
36
|
-
$parcel$export($
|
|
36
|
+
$parcel$export($1f09c05465c4fe7b$exports, "useComboBox", () => $1f09c05465c4fe7b$export$8c18d1b4f7232bbf);
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var $
|
|
44
|
-
var $
|
|
45
|
-
$
|
|
43
|
+
var $c3a11ac36e71f8c6$exports = {};
|
|
44
|
+
var $bb3d4d1b2bafe64c$exports = {};
|
|
45
|
+
$bb3d4d1b2bafe64c$exports = JSON.parse("{\"buttonLabel\":\"عرض المقترحات\",\"countAnnouncement\":\"{optionCount, plural, one {# خيار} other {# خيارات}} متاحة.\",\"focusAnnouncement\":\"{isGroupChange, select, true {المجموعة المدخلة {groupTitle}, مع {groupCount, plural, one {# خيار} other {# خيارات}}. } other {}}{optionText}{isSelected, select, true {, محدد} other {}}\",\"listboxLabel\":\"مقترحات\",\"selectedAnnouncement\":\"{optionText}، محدد\"}");
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var $
|
|
49
|
-
$
|
|
48
|
+
var $243dd4ae2292043c$exports = {};
|
|
49
|
+
$243dd4ae2292043c$exports = JSON.parse("{\"buttonLabel\":\"Покажи предложения\",\"countAnnouncement\":\"{optionCount, plural, one {# опция} other {# опции}} на разположение.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Въведена група {groupTitle}, с {groupCount, plural, one {# опция} other {# опции}}. } other {}}{optionText}{isSelected, select, true {, избрани} other {}}\",\"listboxLabel\":\"Предложения\",\"selectedAnnouncement\":\"{optionText}, избрани\"}");
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var $
|
|
53
|
-
$
|
|
52
|
+
var $400cc3aa5e5eb8ac$exports = {};
|
|
53
|
+
$400cc3aa5e5eb8ac$exports = JSON.parse("{\"buttonLabel\":\"Zobrazit doporučení\",\"countAnnouncement\":\"K dispozici {optionCount, plural, one {je # možnost} other {jsou/je # možnosti/-í}}.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Zadaná skupina „{groupTitle}“ {groupCount, plural, one {s # možností} other {se # možnostmi}}. } other {}}{optionText}{isSelected, select, true { (vybráno)} other {}}\",\"listboxLabel\":\"Návrhy\",\"selectedAnnouncement\":\"{optionText}, vybráno\"}");
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
var $
|
|
57
|
-
$
|
|
56
|
+
var $35ed02b784a1ff42$exports = {};
|
|
57
|
+
$35ed02b784a1ff42$exports = JSON.parse("{\"buttonLabel\":\"Vis forslag\",\"countAnnouncement\":\"{optionCount, plural, one {# mulighed tilgængelig} other {# muligheder tilgængelige}}.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Angivet gruppe {groupTitle}, med {groupCount, plural, one {# mulighed} other {# muligheder}}. } other {}}{optionText}{isSelected, select, true {, valgt} other {}}\",\"listboxLabel\":\"Forslag\",\"selectedAnnouncement\":\"{optionText}, valgt\"}");
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var $
|
|
61
|
-
$
|
|
60
|
+
var $2afd404d6ba43b82$exports = {};
|
|
61
|
+
$2afd404d6ba43b82$exports = JSON.parse("{\"buttonLabel\":\"Empfehlungen anzeigen\",\"countAnnouncement\":\"{optionCount, plural, one {# Option} other {# Optionen}} verfügbar.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Eingetretene Gruppe {groupTitle}, mit {groupCount, plural, one {# Option} other {# Optionen}}. } other {}}{optionText}{isSelected, select, true {, ausgewählt} other {}}\",\"listboxLabel\":\"Empfehlungen\",\"selectedAnnouncement\":\"{optionText}, ausgewählt\"}");
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
var $
|
|
65
|
-
$
|
|
64
|
+
var $b0b14f91b0de25aa$exports = {};
|
|
65
|
+
$b0b14f91b0de25aa$exports = JSON.parse("{\"buttonLabel\":\"Προβολή προτάσεων\",\"countAnnouncement\":\"{optionCount, plural, one {# επιλογή} other {# επιλογές }} διαθέσιμες.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Εισαγμένη ομάδα {groupTitle}, με {groupCount, plural, one {# επιλογή} other {# επιλογές}}. } other {}}{optionText}{isSelected, select, true {, επιλεγμένο} other {}}\",\"listboxLabel\":\"Προτάσεις\",\"selectedAnnouncement\":\"{optionText}, επιλέχθηκε\"}");
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var $
|
|
69
|
-
$
|
|
68
|
+
var $73719257302aa8aa$exports = {};
|
|
69
|
+
$73719257302aa8aa$exports = JSON.parse("{\"focusAnnouncement\":\"{isGroupChange, select, true {Entered group {groupTitle}, with {groupCount, plural, one {# option} other {# options}}. } other {}}{optionText}{isSelected, select, true {, selected} other {}}\",\"countAnnouncement\":\"{optionCount, plural, one {# option} other {# options}} available.\",\"selectedAnnouncement\":\"{optionText}, selected\",\"buttonLabel\":\"Show suggestions\",\"listboxLabel\":\"Suggestions\"}");
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
var $
|
|
73
|
-
$
|
|
72
|
+
var $3cc4183c033e5734$exports = {};
|
|
73
|
+
$3cc4183c033e5734$exports = JSON.parse("{\"buttonLabel\":\"Mostrar sugerencias\",\"countAnnouncement\":\"{optionCount, plural, one {# opción} other {# opciones}} disponible(s).\",\"focusAnnouncement\":\"{isGroupChange, select, true {Se ha unido al grupo {groupTitle}, con {groupCount, plural, one {# opción} other {# opciones}}. } other {}}{optionText}{isSelected, select, true {, seleccionado} other {}}\",\"listboxLabel\":\"Sugerencias\",\"selectedAnnouncement\":\"{optionText}, seleccionado\"}");
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var $
|
|
77
|
-
$
|
|
76
|
+
var $3c6dd1833df0713b$exports = {};
|
|
77
|
+
$3c6dd1833df0713b$exports = JSON.parse("{\"buttonLabel\":\"Kuva soovitused\",\"countAnnouncement\":\"{optionCount, plural, one {# valik} other {# valikud}} saadaval.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Sisestatud rühm {groupTitle}, valikuga {groupCount, plural, one {# valik} other {# valikud}}. } other {}}{optionText}{isSelected, select, true {, valitud} other {}}\",\"listboxLabel\":\"Soovitused\",\"selectedAnnouncement\":\"{optionText}, valitud\"}");
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
var $
|
|
81
|
-
$
|
|
80
|
+
var $332b53510960d33b$exports = {};
|
|
81
|
+
$332b53510960d33b$exports = JSON.parse("{\"buttonLabel\":\"Näytä ehdotukset\",\"countAnnouncement\":\"{optionCount, plural, one {# vaihtoehto} other {# vaihtoehdot}} saatavilla.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Mentiin ryhmään {groupTitle}, {groupCount, plural, one {# vaihtoehdon} other {# vaihtoehdon}} kanssa.} other {}}{optionText}{isSelected, select, true {, valittu} other {}}\",\"listboxLabel\":\"Ehdotukset\",\"selectedAnnouncement\":\"{optionText}, valittu\"}");
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
var $
|
|
85
|
-
$
|
|
84
|
+
var $0361f3c7f97a001d$exports = {};
|
|
85
|
+
$0361f3c7f97a001d$exports = JSON.parse("{\"buttonLabel\":\"Afficher les suggestions\",\"countAnnouncement\":\"{optionCount, plural, one {# option} other {# options}} disponible(s).\",\"focusAnnouncement\":\"{isGroupChange, select, true {Groupe {groupTitle} saisi, avec {groupCount, plural, one {# option} other {# options}}. } other {}}{optionText}{isSelected, select, true {, sélectionné(s)} other {}}\",\"listboxLabel\":\"Suggestions\",\"selectedAnnouncement\":\"{optionText}, sélectionné\"}");
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
var $
|
|
89
|
-
$
|
|
88
|
+
var $3d9b90cc8a99e287$exports = {};
|
|
89
|
+
$3d9b90cc8a99e287$exports = JSON.parse("{\"buttonLabel\":\"הצג הצעות\",\"countAnnouncement\":\"{optionCount, plural, one {אפשרות #} other {# אפשרויות}} במצב זמין.\",\"focusAnnouncement\":\"{isGroupChange, select, true {נכנס לקבוצה {groupTitle}, עם {groupCount, plural, one {אפשרות #} other {# אפשרויות}}. } other {}}{optionText}{isSelected, select, true {, נבחר} other {}}\",\"listboxLabel\":\"הצעות\",\"selectedAnnouncement\":\"{optionText}, נבחר\"}");
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
var $
|
|
93
|
-
$
|
|
92
|
+
var $93b07a287550e1f8$exports = {};
|
|
93
|
+
$93b07a287550e1f8$exports = JSON.parse("{\"buttonLabel\":\"Prikaži prijedloge\",\"countAnnouncement\":\"Dostupno još: {optionCount, plural, one {# opcija} other {# opcije/a}}.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Unesena skupina {groupTitle}, s {groupCount, plural, one {# opcijom} other {# opcije/a}}. } other {}}{optionText}{isSelected, select, true {, odabranih} other {}}\",\"listboxLabel\":\"Prijedlozi\",\"selectedAnnouncement\":\"{optionText}, odabrano\"}");
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
var $
|
|
97
|
-
$
|
|
96
|
+
var $a93c8097f56c90af$exports = {};
|
|
97
|
+
$a93c8097f56c90af$exports = JSON.parse("{\"buttonLabel\":\"Javaslatok megjelenítése\",\"countAnnouncement\":\"{optionCount, plural, one {# lehetőség} other {# lehetőség}} áll rendelkezésre.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Belépett a(z) {groupTitle} csoportba, amely {groupCount, plural, one {# lehetőséget} other {# lehetőséget}} tartalmaz. } other {}}{optionText}{isSelected, select, true {, kijelölve} other {}}\",\"listboxLabel\":\"Javaslatok\",\"selectedAnnouncement\":\"{optionText}, kijelölve\"}");
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
var $
|
|
101
|
-
$
|
|
100
|
+
var $fead6eb3561859f8$exports = {};
|
|
101
|
+
$fead6eb3561859f8$exports = JSON.parse("{\"buttonLabel\":\"Mostra suggerimenti\",\"countAnnouncement\":\"{optionCount, plural, one {# opzione disponibile} other {# opzioni disponibili}}.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Ingresso nel gruppo {groupTitle}, con {groupCount, plural, one {# opzione} other {# opzioni}}. } other {}}{optionText}{isSelected, select, true {, selezionato} other {}}\",\"listboxLabel\":\"Suggerimenti\",\"selectedAnnouncement\":\"{optionText}, selezionato\"}");
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
var $
|
|
105
|
-
$
|
|
104
|
+
var $b4221da05812b0e3$exports = {};
|
|
105
|
+
$b4221da05812b0e3$exports = JSON.parse("{\"buttonLabel\":\"候補を表示\",\"countAnnouncement\":\"{optionCount, plural, one {# 個のオプション} other {# 個のオプション}}を利用できます。\",\"focusAnnouncement\":\"{isGroupChange, select, true {入力されたグループ {groupTitle}、{groupCount, plural, one {# 個のオプション} other {# 個のオプション}}を含む。} other {}}{optionText}{isSelected, select, true {、選択済み} other {}}\",\"listboxLabel\":\"候補\",\"selectedAnnouncement\":\"{optionText}、選択済み\"}");
|
|
106
106
|
|
|
107
107
|
|
|
108
|
-
var $
|
|
109
|
-
$
|
|
108
|
+
var $e3b90123ed115cc6$exports = {};
|
|
109
|
+
$e3b90123ed115cc6$exports = JSON.parse("{\"buttonLabel\":\"제안 사항 표시\",\"countAnnouncement\":\"{optionCount, plural, one {#개 옵션} other {#개 옵션}}을 사용할 수 있습니다.\",\"focusAnnouncement\":\"{isGroupChange, select, true {입력한 그룹 {groupTitle}, {groupCount, plural, one {#개 옵션} other {#개 옵션}}. } other {}}{optionText}{isSelected, select, true {, 선택됨} other {}}\",\"listboxLabel\":\"제안\",\"selectedAnnouncement\":\"{optionText}, 선택됨\"}");
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
var $
|
|
113
|
-
$
|
|
112
|
+
var $949e9c3101afb98d$exports = {};
|
|
113
|
+
$949e9c3101afb98d$exports = JSON.parse("{\"buttonLabel\":\"Rodyti pasiūlymus\",\"countAnnouncement\":\"Yra {optionCount, plural, one {# parinktis} other {# parinktys (-ių)}}.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Įvesta grupė {groupTitle}, su {groupCount, plural, one {# parinktimi} other {# parinktimis (-ių)}}. } other {}}{optionText}{isSelected, select, true {, pasirinkta} other {}}\",\"listboxLabel\":\"Pasiūlymai\",\"selectedAnnouncement\":\"{optionText}, pasirinkta\"}");
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
var $
|
|
117
|
-
$
|
|
116
|
+
var $a8662763be7dce99$exports = {};
|
|
117
|
+
$a8662763be7dce99$exports = JSON.parse("{\"buttonLabel\":\"Rādīt ieteikumus\",\"countAnnouncement\":\"Pieejamo opciju skaits: {optionCount, plural, one {# opcija} other {# opcijas}}.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Ievadīta grupa {groupTitle}, ar {groupCount, plural, one {# opciju} other {# opcijām}}. } other {}}{optionText}{isSelected, select, true {, atlasīta} other {}}\",\"listboxLabel\":\"Ieteikumi\",\"selectedAnnouncement\":\"{optionText}, atlasīta\"}");
|
|
118
118
|
|
|
119
119
|
|
|
120
|
-
var $
|
|
121
|
-
$
|
|
120
|
+
var $bc3fab6189ff8b85$exports = {};
|
|
121
|
+
$bc3fab6189ff8b85$exports = JSON.parse("{\"buttonLabel\":\"Vis forslag\",\"countAnnouncement\":\"{optionCount, plural, one {# alternativ} other {# alternativer}} finnes.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Angitt gruppe {groupTitle}, med {groupCount, plural, one {# alternativ} other {# alternativer}}. } other {}}{optionText}{isSelected, select, true {, valgt} other {}}\",\"listboxLabel\":\"Forslag\",\"selectedAnnouncement\":\"{optionText}, valgt\"}");
|
|
122
122
|
|
|
123
123
|
|
|
124
|
-
var $
|
|
125
|
-
$
|
|
124
|
+
var $857f0c541ea1187e$exports = {};
|
|
125
|
+
$857f0c541ea1187e$exports = JSON.parse("{\"buttonLabel\":\"Suggesties weergeven\",\"countAnnouncement\":\"{optionCount, plural, one {# optie} other {# opties}} beschikbaar.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Groep {groupTitle} ingevoerd met {groupCount, plural, one {# optie} other {# opties}}. } other {}}{optionText}{isSelected, select, true {, geselecteerd} other {}}\",\"listboxLabel\":\"Suggesties\",\"selectedAnnouncement\":\"{optionText}, geselecteerd\"}");
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
var $
|
|
129
|
-
$
|
|
128
|
+
var $a9c3940c3f4b32c7$exports = {};
|
|
129
|
+
$a9c3940c3f4b32c7$exports = JSON.parse("{\"buttonLabel\":\"Wyświetlaj sugestie\",\"countAnnouncement\":\"dostępna/dostępne(-nych) {optionCount, plural, one {# opcja} other {# opcje(-i)}}.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Dołączono do grupy {groupTitle}, z {groupCount, plural, one {# opcją} other {# opcjami}}. } other {}}{optionText}{isSelected, select, true {, wybrano} other {}}\",\"listboxLabel\":\"Sugestie\",\"selectedAnnouncement\":\"{optionText}, wybrano\"}");
|
|
130
130
|
|
|
131
131
|
|
|
132
|
-
var $
|
|
133
|
-
$
|
|
132
|
+
var $30ec02c57b2ae7c3$exports = {};
|
|
133
|
+
$30ec02c57b2ae7c3$exports = JSON.parse("{\"buttonLabel\":\"Mostrar sugestões\",\"countAnnouncement\":\"{optionCount, plural, one {# opção} other {# opções}} disponível.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Grupo inserido {groupTitle}, com {groupCount, plural, one {# opção} other {# opções}}. } other {}}{optionText}{isSelected, select, true {, selecionado} other {}}\",\"listboxLabel\":\"Sugestões\",\"selectedAnnouncement\":\"{optionText}, selecionado\"}");
|
|
134
134
|
|
|
135
135
|
|
|
136
|
-
var $
|
|
137
|
-
$
|
|
136
|
+
var $38a963023aa1c72c$exports = {};
|
|
137
|
+
$38a963023aa1c72c$exports = JSON.parse("{\"buttonLabel\":\"Apresentar sugestões\",\"countAnnouncement\":\"{optionCount, plural, one {# opção} other {# opções}} disponível.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Grupo introduzido {groupTitle}, com {groupCount, plural, one {# opção} other {# opções}}. } other {}}{optionText}{isSelected, select, true {, selecionado} other {}}\",\"listboxLabel\":\"Sugestões\",\"selectedAnnouncement\":\"{optionText}, selecionado\"}");
|
|
138
138
|
|
|
139
139
|
|
|
140
|
-
var $
|
|
141
|
-
$
|
|
140
|
+
var $86bc97af4680e9a4$exports = {};
|
|
141
|
+
$86bc97af4680e9a4$exports = JSON.parse("{\"buttonLabel\":\"Afișare sugestii\",\"countAnnouncement\":\"{optionCount, plural, one {# opțiune} other {# opțiuni}} disponibile.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Grup {groupTitle} introdus, cu {groupCount, plural, one {# opțiune} other {# opțiuni}}. } other {}}{optionText}{isSelected, select, true {, selectat} other {}}\",\"listboxLabel\":\"Sugestii\",\"selectedAnnouncement\":\"{optionText}, selectat\"}");
|
|
142
142
|
|
|
143
143
|
|
|
144
|
-
var $
|
|
145
|
-
$
|
|
144
|
+
var $f8908409fe10224f$exports = {};
|
|
145
|
+
$f8908409fe10224f$exports = JSON.parse("{\"buttonLabel\":\"Показать предложения\",\"countAnnouncement\":\"{optionCount, plural, one {# параметр} other {# параметров}} доступно.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Введенная группа {groupTitle}, с {groupCount, plural, one {# параметром} other {# параметрами}}. } other {}}{optionText}{isSelected, select, true {, выбранными} other {}}\",\"listboxLabel\":\"Предложения\",\"selectedAnnouncement\":\"{optionText}, выбрано\"}");
|
|
146
146
|
|
|
147
147
|
|
|
148
|
-
var $
|
|
149
|
-
$
|
|
148
|
+
var $0c7a75d9d45db4c0$exports = {};
|
|
149
|
+
$0c7a75d9d45db4c0$exports = JSON.parse("{\"buttonLabel\":\"Zobraziť návrhy\",\"countAnnouncement\":\"{optionCount, plural, one {# možnosť} other {# možnosti/-í}} k dispozícii.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Zadaná skupina {groupTitle}, s {groupCount, plural, one {# možnosťou} other {# možnosťami}}. } other {}}{optionText}{isSelected, select, true {, vybraté} other {}}\",\"listboxLabel\":\"Návrhy\",\"selectedAnnouncement\":\"{optionText}, vybraté\"}");
|
|
150
150
|
|
|
151
151
|
|
|
152
|
-
var $
|
|
153
|
-
$
|
|
152
|
+
var $fc05c6addcfa538b$exports = {};
|
|
153
|
+
$fc05c6addcfa538b$exports = JSON.parse("{\"buttonLabel\":\"Prikaži predloge\",\"countAnnouncement\":\"Na voljo je {optionCount, plural, one {# opcija} other {# opcije}}.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Vnesena skupina {groupTitle}, z {groupCount, plural, one {# opcija} other {# opcije}}. } other {}}{optionText}{isSelected, select, true {, izbrano} other {}}\",\"listboxLabel\":\"Predlogi\",\"selectedAnnouncement\":\"{optionText}, izbrano\"}");
|
|
154
154
|
|
|
155
155
|
|
|
156
|
-
var $
|
|
157
|
-
$
|
|
156
|
+
var $fee0c4594929d9b1$exports = {};
|
|
157
|
+
$fee0c4594929d9b1$exports = JSON.parse("{\"buttonLabel\":\"Prikaži predloge\",\"countAnnouncement\":\"Dostupno još: {optionCount, plural, one {# opcija} other {# opcije/a}}.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Unesena grupa {groupTitle}, s {groupCount, plural, one {# opcijom} other {# optione/a}}. } other {}}{optionText}{isSelected, select, true {, izabranih} other {}}\",\"listboxLabel\":\"Predlozi\",\"selectedAnnouncement\":\"{optionText}, izabrano\"}");
|
|
158
158
|
|
|
159
159
|
|
|
160
|
-
var $
|
|
161
|
-
$
|
|
160
|
+
var $8cb2c4c9a227c100$exports = {};
|
|
161
|
+
$8cb2c4c9a227c100$exports = JSON.parse("{\"buttonLabel\":\"Visa förslag\",\"countAnnouncement\":\"{optionCount, plural, one {# alternativ} other {# alternativ}} tillgängliga.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Ingick i gruppen {groupTitle} med {groupCount, plural, one {# alternativ} other {# alternativ}}. } other {}}{optionText}{isSelected, select, true {, valda} other {}}\",\"listboxLabel\":\"Förslag\",\"selectedAnnouncement\":\"{optionText}, valda\"}");
|
|
162
162
|
|
|
163
163
|
|
|
164
|
-
var $
|
|
165
|
-
$
|
|
164
|
+
var $9216441493b3c60f$exports = {};
|
|
165
|
+
$9216441493b3c60f$exports = JSON.parse("{\"buttonLabel\":\"Önerileri göster\",\"countAnnouncement\":\"{optionCount, plural, one {# seçenek} other {# seçenekler}} kullanılabilir.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Girilen grup {groupTitle}, ile {groupCount, plural, one {# seçenek} other {# seçenekler}}. } other {}}{optionText}{isSelected, select, true {, seçildi} other {}}\",\"listboxLabel\":\"Öneriler\",\"selectedAnnouncement\":\"{optionText}, seçildi\"}");
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
var $
|
|
169
|
-
$
|
|
168
|
+
var $9c7380f3638b1195$exports = {};
|
|
169
|
+
$9c7380f3638b1195$exports = JSON.parse("{\"buttonLabel\":\"Показати пропозиції\",\"countAnnouncement\":\"{optionCount, plural, one {# параметр} other {# параметри(-ів)}} доступно.\",\"focusAnnouncement\":\"{isGroupChange, select, true {Введена група {groupTitle}, з {groupCount, plural, one {# параметр} other {# параметри(-ів)}}. } other {}}{optionText}{isSelected, select, true {, вибрано} other {}}\",\"listboxLabel\":\"Пропозиції\",\"selectedAnnouncement\":\"{optionText}, вибрано\"}");
|
|
170
170
|
|
|
171
171
|
|
|
172
|
-
var $
|
|
173
|
-
$
|
|
172
|
+
var $3e4699d352dc3d0f$exports = {};
|
|
173
|
+
$3e4699d352dc3d0f$exports = JSON.parse("{\"buttonLabel\":\"显示建议\",\"countAnnouncement\":\"有 {optionCount, plural, one {# 个选项} other {# 个选项}}可用。\",\"focusAnnouncement\":\"{isGroupChange, select, true {进入了 {groupTitle} 组,其中有 {groupCount, plural, one {# 个选项} other {# 个选项}}. } other {}}{optionText}{isSelected, select, true {, 已选择} other {}}\",\"listboxLabel\":\"建议\",\"selectedAnnouncement\":\"{optionText}, 已选择\"}");
|
|
174
174
|
|
|
175
175
|
|
|
176
|
-
var $
|
|
177
|
-
$
|
|
176
|
+
var $834d91ad16780960$exports = {};
|
|
177
|
+
$834d91ad16780960$exports = JSON.parse("{\"buttonLabel\":\"顯示建議\",\"countAnnouncement\":\"{optionCount, plural, one {# 選項} other {# 選項}} 可用。\",\"focusAnnouncement\":\"{isGroupChange, select, true {輸入的群組 {groupTitle}, 有 {groupCount, plural, one {# 選項} other {# 選項}}. } other {}}{optionText}{isSelected, select, true {, 已選取} other {}}\",\"listboxLabel\":\"建議\",\"selectedAnnouncement\":\"{optionText}, 已選取\"}");
|
|
178
178
|
|
|
179
179
|
|
|
180
|
-
$
|
|
181
|
-
"ar-AE": $
|
|
182
|
-
"bg-BG": $
|
|
183
|
-
"cs-CZ": $
|
|
184
|
-
"da-DK": $
|
|
185
|
-
"de-DE": $
|
|
186
|
-
"el-GR": $
|
|
187
|
-
"en-US": $
|
|
188
|
-
"es-ES": $
|
|
189
|
-
"et-EE": $
|
|
190
|
-
"fi-FI": $
|
|
191
|
-
"fr-FR": $
|
|
192
|
-
"he-IL": $
|
|
193
|
-
"hr-HR": $
|
|
194
|
-
"hu-HU": $
|
|
195
|
-
"it-IT": $
|
|
196
|
-
"ja-JP": $
|
|
197
|
-
"ko-KR": $
|
|
198
|
-
"lt-LT": $
|
|
199
|
-
"lv-LV": $
|
|
200
|
-
"nb-NO": $
|
|
201
|
-
"nl-NL": $
|
|
202
|
-
"pl-PL": $
|
|
203
|
-
"pt-BR": $
|
|
204
|
-
"pt-PT": $
|
|
205
|
-
"ro-RO": $
|
|
206
|
-
"ru-RU": $
|
|
207
|
-
"sk-SK": $
|
|
208
|
-
"sl-SI": $
|
|
209
|
-
"sr-SP": $
|
|
210
|
-
"sv-SE": $
|
|
211
|
-
"tr-TR": $
|
|
212
|
-
"uk-UA": $
|
|
213
|
-
"zh-CN": $
|
|
214
|
-
"zh-TW": $
|
|
180
|
+
$c3a11ac36e71f8c6$exports = {
|
|
181
|
+
"ar-AE": $bb3d4d1b2bafe64c$exports,
|
|
182
|
+
"bg-BG": $243dd4ae2292043c$exports,
|
|
183
|
+
"cs-CZ": $400cc3aa5e5eb8ac$exports,
|
|
184
|
+
"da-DK": $35ed02b784a1ff42$exports,
|
|
185
|
+
"de-DE": $2afd404d6ba43b82$exports,
|
|
186
|
+
"el-GR": $b0b14f91b0de25aa$exports,
|
|
187
|
+
"en-US": $73719257302aa8aa$exports,
|
|
188
|
+
"es-ES": $3cc4183c033e5734$exports,
|
|
189
|
+
"et-EE": $3c6dd1833df0713b$exports,
|
|
190
|
+
"fi-FI": $332b53510960d33b$exports,
|
|
191
|
+
"fr-FR": $0361f3c7f97a001d$exports,
|
|
192
|
+
"he-IL": $3d9b90cc8a99e287$exports,
|
|
193
|
+
"hr-HR": $93b07a287550e1f8$exports,
|
|
194
|
+
"hu-HU": $a93c8097f56c90af$exports,
|
|
195
|
+
"it-IT": $fead6eb3561859f8$exports,
|
|
196
|
+
"ja-JP": $b4221da05812b0e3$exports,
|
|
197
|
+
"ko-KR": $e3b90123ed115cc6$exports,
|
|
198
|
+
"lt-LT": $949e9c3101afb98d$exports,
|
|
199
|
+
"lv-LV": $a8662763be7dce99$exports,
|
|
200
|
+
"nb-NO": $bc3fab6189ff8b85$exports,
|
|
201
|
+
"nl-NL": $857f0c541ea1187e$exports,
|
|
202
|
+
"pl-PL": $a9c3940c3f4b32c7$exports,
|
|
203
|
+
"pt-BR": $30ec02c57b2ae7c3$exports,
|
|
204
|
+
"pt-PT": $38a963023aa1c72c$exports,
|
|
205
|
+
"ro-RO": $86bc97af4680e9a4$exports,
|
|
206
|
+
"ru-RU": $f8908409fe10224f$exports,
|
|
207
|
+
"sk-SK": $0c7a75d9d45db4c0$exports,
|
|
208
|
+
"sl-SI": $fc05c6addcfa538b$exports,
|
|
209
|
+
"sr-SP": $fee0c4594929d9b1$exports,
|
|
210
|
+
"sv-SE": $8cb2c4c9a227c100$exports,
|
|
211
|
+
"tr-TR": $9216441493b3c60f$exports,
|
|
212
|
+
"uk-UA": $9c7380f3638b1195$exports,
|
|
213
|
+
"zh-CN": $3e4699d352dc3d0f$exports,
|
|
214
|
+
"zh-TW": $834d91ad16780960$exports
|
|
215
215
|
};
|
|
216
216
|
|
|
217
217
|
|
|
@@ -219,21 +219,21 @@ $7a03d70c71dde857$exports = {
|
|
|
219
219
|
|
|
220
220
|
|
|
221
221
|
|
|
222
|
-
function $
|
|
222
|
+
function $1f09c05465c4fe7b$export$8c18d1b4f7232bbf(props, state) {
|
|
223
223
|
let { buttonRef: buttonRef , popoverRef: popoverRef , inputRef: inputRef , listBoxRef: listBoxRef , keyboardDelegate: keyboardDelegate , shouldFocusWrap: // completionMode = 'suggest',
|
|
224
224
|
shouldFocusWrap , isReadOnly: isReadOnly , isDisabled: isDisabled } = props;
|
|
225
|
-
let formatMessage = $
|
|
226
|
-
let { menuTriggerProps: menuTriggerProps , menuProps: menuProps } = $
|
|
225
|
+
let formatMessage = $2zMGE$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($c3a11ac36e71f8c6$exports)));
|
|
226
|
+
let { menuTriggerProps: menuTriggerProps , menuProps: menuProps } = $2zMGE$reactariamenu.useMenuTrigger({
|
|
227
227
|
type: 'listbox',
|
|
228
228
|
isDisabled: isDisabled || isReadOnly
|
|
229
229
|
}, state, buttonRef);
|
|
230
230
|
// Set listbox id so it can be used when calling getItemId later
|
|
231
|
-
$
|
|
231
|
+
$2zMGE$reactarialistbox.listData.set(state, {
|
|
232
232
|
id: menuProps.id
|
|
233
233
|
});
|
|
234
234
|
// By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).
|
|
235
235
|
// When virtualized, the layout object will be passed in as a prop and override this.
|
|
236
|
-
let delegate = $
|
|
236
|
+
let delegate = $2zMGE$react.useMemo(()=>keyboardDelegate || new $2zMGE$reactariaselection.ListKeyboardDelegate(state.collection, state.disabledKeys, listBoxRef)
|
|
237
237
|
, [
|
|
238
238
|
keyboardDelegate,
|
|
239
239
|
state.collection,
|
|
@@ -241,7 +241,7 @@ function $61fbbaa5499b5f4b$export$8c18d1b4f7232bbf(props, state) {
|
|
|
241
241
|
listBoxRef
|
|
242
242
|
]);
|
|
243
243
|
// Use useSelectableCollection to get the keyboard handlers to apply to the textfield
|
|
244
|
-
let { collectionProps: collectionProps } = $
|
|
244
|
+
let { collectionProps: collectionProps } = $2zMGE$reactariaselection.useSelectableCollection({
|
|
245
245
|
selectionManager: state.selectionManager,
|
|
246
246
|
keyboardDelegate: delegate,
|
|
247
247
|
disallowTypeAhead: true,
|
|
@@ -276,8 +276,9 @@ function $61fbbaa5499b5f4b$export$8c18d1b4f7232bbf(props, state) {
|
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
278
|
let onBlur = (e)=>{
|
|
279
|
+
var ref;
|
|
279
280
|
// Ignore blur if focused moved to the button or into the popover.
|
|
280
|
-
if (e.relatedTarget === buttonRef
|
|
281
|
+
if (e.relatedTarget === (buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) || ((ref = popoverRef.current) === null || ref === void 0 ? void 0 : ref.contains(e.relatedTarget))) return;
|
|
281
282
|
if (props.onBlur) props.onBlur(e);
|
|
282
283
|
state.setFocused(false);
|
|
283
284
|
};
|
|
@@ -286,10 +287,10 @@ function $61fbbaa5499b5f4b$export$8c18d1b4f7232bbf(props, state) {
|
|
|
286
287
|
if (props.onFocus) props.onFocus(e);
|
|
287
288
|
state.setFocused(true);
|
|
288
289
|
};
|
|
289
|
-
let { labelProps: labelProps , inputProps: inputProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $
|
|
290
|
+
let { labelProps: labelProps , inputProps: inputProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $2zMGE$reactariatextfield.useTextField({
|
|
290
291
|
...props,
|
|
291
292
|
onChange: state.setInputValue,
|
|
292
|
-
onKeyDown: !isReadOnly && $
|
|
293
|
+
onKeyDown: !isReadOnly && $2zMGE$reactariautils.chain(state.isOpen && collectionProps.onKeyDown, onKeyDown, props.onKeyDown),
|
|
293
294
|
onBlur: onBlur,
|
|
294
295
|
value: state.inputValue,
|
|
295
296
|
onFocus: onFocus,
|
|
@@ -309,18 +310,18 @@ function $61fbbaa5499b5f4b$export$8c18d1b4f7232bbf(props, state) {
|
|
|
309
310
|
state.toggle(e.pointerType === 'keyboard' || e.pointerType === 'virtual' ? 'first' : null, 'manual');
|
|
310
311
|
}
|
|
311
312
|
};
|
|
312
|
-
let triggerLabelProps = $
|
|
313
|
+
let triggerLabelProps = $2zMGE$reactariautils.useLabels({
|
|
313
314
|
id: menuTriggerProps.id,
|
|
314
315
|
'aria-label': formatMessage('buttonLabel'),
|
|
315
316
|
'aria-labelledby': props['aria-labelledby'] || labelProps.id
|
|
316
317
|
});
|
|
317
|
-
let listBoxProps = $
|
|
318
|
+
let listBoxProps = $2zMGE$reactariautils.useLabels({
|
|
318
319
|
id: menuProps.id,
|
|
319
320
|
'aria-label': formatMessage('listboxLabel'),
|
|
320
321
|
'aria-labelledby': props['aria-labelledby'] || labelProps.id
|
|
321
322
|
});
|
|
322
323
|
// If a touch happens on direct center of ComboBox input, might be virtual click from iPad so open ComboBox menu
|
|
323
|
-
let lastEventTime = $
|
|
324
|
+
let lastEventTime = $2zMGE$react.useRef(0);
|
|
324
325
|
let onTouchEnd = (e)=>{
|
|
325
326
|
if (isDisabled || isReadOnly) return;
|
|
326
327
|
// Sometimes VoiceOver on iOS fires two touchend events in quick succession. Ignore the second one.
|
|
@@ -344,15 +345,17 @@ function $61fbbaa5499b5f4b$export$8c18d1b4f7232bbf(props, state) {
|
|
|
344
345
|
// (especially on iOS). We use a live region announcer to announce focus changes
|
|
345
346
|
// manually. In addition, section titles are announced when navigating into a new section.
|
|
346
347
|
let focusedItem = state.selectionManager.focusedKey != null && state.isOpen ? state.collection.getItem(state.selectionManager.focusedKey) : undefined;
|
|
347
|
-
|
|
348
|
-
let
|
|
349
|
-
|
|
350
|
-
let
|
|
351
|
-
$
|
|
352
|
-
|
|
348
|
+
var ref1;
|
|
349
|
+
let sectionKey = (ref1 = focusedItem === null || focusedItem === void 0 ? void 0 : focusedItem.parentKey) !== null && ref1 !== void 0 ? ref1 : null;
|
|
350
|
+
var _focusedKey;
|
|
351
|
+
let itemKey = (_focusedKey = state.selectionManager.focusedKey) !== null && _focusedKey !== void 0 ? _focusedKey : null;
|
|
352
|
+
let lastSection = $2zMGE$react.useRef(sectionKey);
|
|
353
|
+
let lastItem = $2zMGE$react.useRef(itemKey);
|
|
354
|
+
$2zMGE$react.useEffect(()=>{
|
|
355
|
+
if ($2zMGE$reactariautils.isAppleDevice() && focusedItem != null && itemKey !== lastItem.current) {
|
|
353
356
|
let isSelected = state.selectionManager.isSelected(itemKey);
|
|
354
357
|
let section = sectionKey != null ? state.collection.getItem(sectionKey) : null;
|
|
355
|
-
let sectionTitle = section
|
|
358
|
+
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 : '') || '';
|
|
356
359
|
let announcement = formatMessage('focusAnnouncement', {
|
|
357
360
|
isGroupChange: section && sectionKey !== lastSection.current,
|
|
358
361
|
groupTitle: sectionTitle,
|
|
@@ -362,43 +365,43 @@ function $61fbbaa5499b5f4b$export$8c18d1b4f7232bbf(props, state) {
|
|
|
362
365
|
optionText: focusedItem['aria-label'] || focusedItem.textValue || '',
|
|
363
366
|
isSelected: isSelected
|
|
364
367
|
});
|
|
365
|
-
$
|
|
368
|
+
$2zMGE$reactarialiveannouncer.announce(announcement);
|
|
366
369
|
}
|
|
367
370
|
lastSection.current = sectionKey;
|
|
368
371
|
lastItem.current = itemKey;
|
|
369
372
|
});
|
|
370
373
|
// Announce the number of available suggestions when it changes
|
|
371
|
-
let optionCount = $
|
|
372
|
-
let lastSize = $
|
|
373
|
-
let lastOpen = $
|
|
374
|
-
$
|
|
374
|
+
let optionCount = $2zMGE$reactstatelycollections.getItemCount(state.collection);
|
|
375
|
+
let lastSize = $2zMGE$react.useRef(optionCount);
|
|
376
|
+
let lastOpen = $2zMGE$react.useRef(state.isOpen);
|
|
377
|
+
$2zMGE$react.useEffect(()=>{
|
|
375
378
|
// Only announce the number of options available when the menu opens if there is no
|
|
376
379
|
// focused item, otherwise screen readers will typically read e.g. "1 of 6".
|
|
377
380
|
// The exception is VoiceOver since this isn't included in the message above.
|
|
378
|
-
let didOpenWithoutFocusedItem = state.isOpen !== lastOpen.current && (state.selectionManager.focusedKey == null || $
|
|
381
|
+
let didOpenWithoutFocusedItem = state.isOpen !== lastOpen.current && (state.selectionManager.focusedKey == null || $2zMGE$reactariautils.isAppleDevice());
|
|
379
382
|
if (state.isOpen && (didOpenWithoutFocusedItem || optionCount !== lastSize.current)) {
|
|
380
383
|
let announcement = formatMessage('countAnnouncement', {
|
|
381
384
|
optionCount: optionCount
|
|
382
385
|
});
|
|
383
|
-
$
|
|
386
|
+
$2zMGE$reactarialiveannouncer.announce(announcement);
|
|
384
387
|
}
|
|
385
388
|
lastSize.current = optionCount;
|
|
386
389
|
lastOpen.current = state.isOpen;
|
|
387
390
|
});
|
|
388
391
|
// Announce when a selection occurs for VoiceOver. Other screen readers typically do this automatically.
|
|
389
|
-
let lastSelectedKey = $
|
|
390
|
-
$
|
|
391
|
-
if ($
|
|
392
|
+
let lastSelectedKey = $2zMGE$react.useRef(state.selectedKey);
|
|
393
|
+
$2zMGE$react.useEffect(()=>{
|
|
394
|
+
if ($2zMGE$reactariautils.isAppleDevice() && state.isFocused && state.selectedItem && state.selectedKey !== lastSelectedKey.current) {
|
|
392
395
|
let optionText = state.selectedItem['aria-label'] || state.selectedItem.textValue || '';
|
|
393
396
|
let announcement = formatMessage('selectedAnnouncement', {
|
|
394
397
|
optionText: optionText
|
|
395
398
|
});
|
|
396
|
-
$
|
|
399
|
+
$2zMGE$reactarialiveannouncer.announce(announcement);
|
|
397
400
|
}
|
|
398
401
|
lastSelectedKey.current = state.selectedKey;
|
|
399
402
|
});
|
|
400
|
-
$
|
|
401
|
-
if (state.isOpen) return $
|
|
403
|
+
$2zMGE$react.useEffect(()=>{
|
|
404
|
+
if (state.isOpen) return $2zMGE$reactariaoverlays.ariaHideOutside([
|
|
402
405
|
inputRef.current,
|
|
403
406
|
popoverRef.current
|
|
404
407
|
]);
|
|
@@ -417,20 +420,20 @@ function $61fbbaa5499b5f4b$export$8c18d1b4f7232bbf(props, state) {
|
|
|
417
420
|
onPressStart: onPressStart,
|
|
418
421
|
isDisabled: isDisabled || isReadOnly
|
|
419
422
|
},
|
|
420
|
-
inputProps: $
|
|
423
|
+
inputProps: $2zMGE$reactariautils.mergeProps(inputProps, {
|
|
421
424
|
role: 'combobox',
|
|
422
425
|
'aria-expanded': menuTriggerProps['aria-expanded'],
|
|
423
426
|
'aria-controls': state.isOpen ? menuProps.id : undefined,
|
|
424
427
|
// TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
|
|
425
428
|
'aria-autocomplete': 'list',
|
|
426
|
-
'aria-activedescendant': focusedItem ? $
|
|
429
|
+
'aria-activedescendant': focusedItem ? $2zMGE$reactarialistbox.getItemId(state, focusedItem.key) : undefined,
|
|
427
430
|
onTouchEnd: onTouchEnd,
|
|
428
431
|
// This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.
|
|
429
432
|
autoCorrect: 'off',
|
|
430
433
|
// This disable's the macOS Safari spell check auto corrections.
|
|
431
434
|
spellCheck: 'false'
|
|
432
435
|
}),
|
|
433
|
-
listBoxProps: $
|
|
436
|
+
listBoxProps: $2zMGE$reactariautils.mergeProps(menuProps, listBoxProps, {
|
|
434
437
|
autoFocus: state.focusStrategy,
|
|
435
438
|
shouldUseVirtualFocus: true,
|
|
436
439
|
shouldSelectOnPressUp: true,
|
|
@@ -442,7 +445,7 @@ function $61fbbaa5499b5f4b$export$8c18d1b4f7232bbf(props, state) {
|
|
|
442
445
|
}
|
|
443
446
|
|
|
444
447
|
|
|
445
|
-
$parcel$exportWildcard(module.exports, $
|
|
448
|
+
$parcel$exportWildcard(module.exports, $1f09c05465c4fe7b$exports);
|
|
446
449
|
|
|
447
450
|
|
|
448
451
|
//# sourceMappingURL=main.js.map
|