@react-spectrum/actionbar 3.0.0-alpha.9 → 3.0.0-beta.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/import.mjs +676 -0
- package/dist/main.css +1 -1
- package/dist/main.js +429 -111
- package/dist/main.js.map +1 -1
- package/dist/module.js +430 -96
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +5 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +23 -18
- package/src/ActionBar.tsx +24 -19
- package/src/ActionBarContainer.tsx +2 -1
- package/src/index.ts +4 -4
package/dist/module.js
CHANGED
|
@@ -3,7 +3,7 @@ import {Item as $da70baa779e17e7a$re_export$Item} from "@react-stately/collectio
|
|
|
3
3
|
import {ActionButton as $N9qJl$ActionButton} from "@react-spectrum/button";
|
|
4
4
|
import {ActionGroup as $N9qJl$ActionGroup} from "@react-spectrum/actiongroup";
|
|
5
5
|
import {announce as $N9qJl$announce} from "@react-aria/live-announcer";
|
|
6
|
-
import {
|
|
6
|
+
import {useDOMRef as $N9qJl$useDOMRef, useStyleProps as $N9qJl$useStyleProps, classNames as $N9qJl$classNames} from "@react-spectrum/utils";
|
|
7
7
|
import $N9qJl$spectrumiconsuiCrossLarge from "@spectrum-icons/ui/CrossLarge";
|
|
8
8
|
import {filterDOMProps as $N9qJl$filterDOMProps} from "@react-aria/utils";
|
|
9
9
|
import {FocusScope as $N9qJl$FocusScope} from "@react-aria/focus";
|
|
@@ -11,7 +11,7 @@ import {OpenTransition as $N9qJl$OpenTransition} from "@react-spectrum/overlays"
|
|
|
11
11
|
import $N9qJl$react, {useRef as $N9qJl$useRef, useEffect as $N9qJl$useEffect} from "react";
|
|
12
12
|
import {Text as $N9qJl$Text} from "@react-spectrum/text";
|
|
13
13
|
import {useKeyboard as $N9qJl$useKeyboard} from "@react-aria/interactions";
|
|
14
|
-
import {
|
|
14
|
+
import {useLocalizedStringFormatter as $N9qJl$useLocalizedStringFormatter} from "@react-aria/i18n";
|
|
15
15
|
import {useProviderProps as $N9qJl$useProviderProps} from "@react-spectrum/provider";
|
|
16
16
|
|
|
17
17
|
function $parcel$interopDefault(a) {
|
|
@@ -20,10 +20,28 @@ function $parcel$interopDefault(a) {
|
|
|
20
20
|
function $parcel$export(e, n, v, s) {
|
|
21
21
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
/*
|
|
24
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
25
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
26
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
27
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
28
|
+
*
|
|
29
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
30
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
31
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
32
|
+
* governing permissions and limitations under the License.
|
|
33
|
+
*/ /// <reference types="css-module-types" />
|
|
34
|
+
/*
|
|
35
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
36
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
37
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
38
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
39
|
+
*
|
|
40
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
41
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
42
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
43
|
+
* governing permissions and limitations under the License.
|
|
44
|
+
*/
|
|
27
45
|
|
|
28
46
|
|
|
29
47
|
|
|
@@ -32,139 +50,445 @@ $parcel$export($a4e665fbd087d71e$exports, "ActionBar", () => $a4e665fbd087d71e$e
|
|
|
32
50
|
|
|
33
51
|
var $992d76e8dd5fee7b$exports = {};
|
|
34
52
|
var $42f1aaf0cd835ede$exports = {};
|
|
35
|
-
$42f1aaf0cd835ede$exports =
|
|
53
|
+
$42f1aaf0cd835ede$exports = {
|
|
54
|
+
"actions": `الإجراءات`,
|
|
55
|
+
"actionsAvailable": `الإجراءات المتاحة.`,
|
|
56
|
+
"clearSelection": `إزالة التحديد`,
|
|
57
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
58
|
+
"=0": `غير محدد`,
|
|
59
|
+
other: ()=>`${formatter.number(args.count)} محدد`
|
|
60
|
+
})}`,
|
|
61
|
+
"selectedAll": `تم تحديد الكل`
|
|
62
|
+
};
|
|
36
63
|
|
|
37
64
|
|
|
38
65
|
var $22c931b8c5fa9db9$exports = {};
|
|
39
|
-
$22c931b8c5fa9db9$exports =
|
|
66
|
+
$22c931b8c5fa9db9$exports = {
|
|
67
|
+
"actions": `Действия`,
|
|
68
|
+
"actionsAvailable": `Налични действия.`,
|
|
69
|
+
"clearSelection": `Изчистване на избора`,
|
|
70
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
71
|
+
"=0": `Няма избрани`,
|
|
72
|
+
other: ()=>`${formatter.number(args.count)} избрани`
|
|
73
|
+
})}`,
|
|
74
|
+
"selectedAll": `Всички избрани`
|
|
75
|
+
};
|
|
40
76
|
|
|
41
77
|
|
|
42
78
|
var $07dc24deaaf64ab0$exports = {};
|
|
43
|
-
$07dc24deaaf64ab0$exports =
|
|
79
|
+
$07dc24deaaf64ab0$exports = {
|
|
80
|
+
"actions": `Akce`,
|
|
81
|
+
"actionsAvailable": `Dostupné akce.`,
|
|
82
|
+
"clearSelection": `Vymazat výběr`,
|
|
83
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
84
|
+
"=0": `Nic není vybráno`,
|
|
85
|
+
other: ()=>`Vybráno ${formatter.number(args.count)}`
|
|
86
|
+
})}`,
|
|
87
|
+
"selectedAll": `Vybráno vše`
|
|
88
|
+
};
|
|
44
89
|
|
|
45
90
|
|
|
46
91
|
var $44fd3a75baaf9937$exports = {};
|
|
47
|
-
$44fd3a75baaf9937$exports =
|
|
92
|
+
$44fd3a75baaf9937$exports = {
|
|
93
|
+
"actions": `Handlinger`,
|
|
94
|
+
"actionsAvailable": `Tilgængelige handlinger.`,
|
|
95
|
+
"clearSelection": `Ryd markering`,
|
|
96
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
97
|
+
"=0": `Ingen valgt`,
|
|
98
|
+
other: ()=>`${formatter.number(args.count)} valgt`
|
|
99
|
+
})}`,
|
|
100
|
+
"selectedAll": `Alle valgt`
|
|
101
|
+
};
|
|
48
102
|
|
|
49
103
|
|
|
50
104
|
var $3281990be7bd78f6$exports = {};
|
|
51
|
-
$3281990be7bd78f6$exports =
|
|
105
|
+
$3281990be7bd78f6$exports = {
|
|
106
|
+
"actions": `Aktionen`,
|
|
107
|
+
"actionsAvailable": `Aktionen verfügbar.`,
|
|
108
|
+
"clearSelection": `Auswahl löschen`,
|
|
109
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
110
|
+
"=0": `Nichts ausgewählt`,
|
|
111
|
+
other: ()=>`${formatter.number(args.count)} ausgewählt`
|
|
112
|
+
})}`,
|
|
113
|
+
"selectedAll": `Alles ausgewählt`
|
|
114
|
+
};
|
|
52
115
|
|
|
53
116
|
|
|
54
117
|
var $242cbd951f3bcfeb$exports = {};
|
|
55
|
-
$242cbd951f3bcfeb$exports =
|
|
118
|
+
$242cbd951f3bcfeb$exports = {
|
|
119
|
+
"actions": `Ενέργειες`,
|
|
120
|
+
"actionsAvailable": `Υπάρχουν διαθέσιμες ενέργειες.`,
|
|
121
|
+
"clearSelection": `Εκκαθάριση επιλογής`,
|
|
122
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
123
|
+
"=0": `Δεν επιλέχθηκε κανένα`,
|
|
124
|
+
other: ()=>`Επιλέχθηκαν ${formatter.number(args.count)}`
|
|
125
|
+
})}`,
|
|
126
|
+
"selectedAll": `Επιλέχθηκαν όλα`
|
|
127
|
+
};
|
|
56
128
|
|
|
57
129
|
|
|
58
130
|
var $117deeeb64547dc7$exports = {};
|
|
59
|
-
$117deeeb64547dc7$exports =
|
|
131
|
+
$117deeeb64547dc7$exports = {
|
|
132
|
+
"clearSelection": `Clear selection`,
|
|
133
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
134
|
+
"=0": `None selected`,
|
|
135
|
+
other: ()=>`${formatter.number(args.count)} selected`
|
|
136
|
+
})}`,
|
|
137
|
+
"selectedAll": `All selected`,
|
|
138
|
+
"actions": `Actions`,
|
|
139
|
+
"actionsAvailable": `Actions available.`
|
|
140
|
+
};
|
|
60
141
|
|
|
61
142
|
|
|
62
143
|
var $5b8605d86a9af2ee$exports = {};
|
|
63
|
-
$5b8605d86a9af2ee$exports =
|
|
144
|
+
$5b8605d86a9af2ee$exports = {
|
|
145
|
+
"actions": `Acciones`,
|
|
146
|
+
"actionsAvailable": `Acciones disponibles.`,
|
|
147
|
+
"clearSelection": `Borrar selección`,
|
|
148
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
149
|
+
"=0": `Nada seleccionado`,
|
|
150
|
+
other: ()=>`${formatter.number(args.count)} seleccionado`
|
|
151
|
+
})}`,
|
|
152
|
+
"selectedAll": `Todo seleccionado`
|
|
153
|
+
};
|
|
64
154
|
|
|
65
155
|
|
|
66
156
|
var $5530e5c9f2623025$exports = {};
|
|
67
|
-
$5530e5c9f2623025$exports =
|
|
157
|
+
$5530e5c9f2623025$exports = {
|
|
158
|
+
"actions": `Toimingud`,
|
|
159
|
+
"actionsAvailable": `Toimingud saadaval.`,
|
|
160
|
+
"clearSelection": `Puhasta valik`,
|
|
161
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
162
|
+
"=0": `Pole valitud`,
|
|
163
|
+
other: ()=>`${formatter.number(args.count)} valitud`
|
|
164
|
+
})}`,
|
|
165
|
+
"selectedAll": `Kõik valitud`
|
|
166
|
+
};
|
|
68
167
|
|
|
69
168
|
|
|
70
169
|
var $7a405d1dfc563131$exports = {};
|
|
71
|
-
$7a405d1dfc563131$exports =
|
|
170
|
+
$7a405d1dfc563131$exports = {
|
|
171
|
+
"actions": `Toiminnot`,
|
|
172
|
+
"actionsAvailable": `Toiminnot käytettävissä.`,
|
|
173
|
+
"clearSelection": `Poista valinta`,
|
|
174
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
175
|
+
"=0": `Ei mitään valittu`,
|
|
176
|
+
other: ()=>`${formatter.number(args.count)} valittu`
|
|
177
|
+
})}`,
|
|
178
|
+
"selectedAll": `Kaikki valittu`
|
|
179
|
+
};
|
|
72
180
|
|
|
73
181
|
|
|
74
182
|
var $e0c3da022513542b$exports = {};
|
|
75
|
-
$e0c3da022513542b$exports =
|
|
183
|
+
$e0c3da022513542b$exports = {
|
|
184
|
+
"actions": `Actions`,
|
|
185
|
+
"actionsAvailable": `Actions disponibles.`,
|
|
186
|
+
"clearSelection": `Supprimer la sélection`,
|
|
187
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
188
|
+
"=0": `Aucun élément sélectionné`,
|
|
189
|
+
other: ()=>`${formatter.number(args.count)} sélectionnés`
|
|
190
|
+
})}`,
|
|
191
|
+
"selectedAll": `Toute la sélection`
|
|
192
|
+
};
|
|
76
193
|
|
|
77
194
|
|
|
78
195
|
var $796ff5aed019aee1$exports = {};
|
|
79
|
-
$796ff5aed019aee1$exports =
|
|
196
|
+
$796ff5aed019aee1$exports = {
|
|
197
|
+
"actions": `פעולות`,
|
|
198
|
+
"actionsAvailable": `פעולות זמינות.`,
|
|
199
|
+
"clearSelection": `נקה בחירה`,
|
|
200
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
201
|
+
"=0": `לא בוצעה בחירה`,
|
|
202
|
+
other: ()=>`${formatter.number(args.count)} נבחרו`
|
|
203
|
+
})}`,
|
|
204
|
+
"selectedAll": `כל הפריטים שנבחרו`
|
|
205
|
+
};
|
|
80
206
|
|
|
81
207
|
|
|
82
208
|
var $e1066348ea80fd36$exports = {};
|
|
83
|
-
$e1066348ea80fd36$exports =
|
|
209
|
+
$e1066348ea80fd36$exports = {
|
|
210
|
+
"actions": `Radnje`,
|
|
211
|
+
"actionsAvailable": `Dostupne radnje.`,
|
|
212
|
+
"clearSelection": `Poništi odabir`,
|
|
213
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
214
|
+
"=0": `Nijedna nije odabrana`,
|
|
215
|
+
other: ()=>`${formatter.number(args.count)} je odabrano`
|
|
216
|
+
})}`,
|
|
217
|
+
"selectedAll": `Sve je odabrano`
|
|
218
|
+
};
|
|
84
219
|
|
|
85
220
|
|
|
86
221
|
var $939ac78e6c54d005$exports = {};
|
|
87
|
-
$939ac78e6c54d005$exports =
|
|
222
|
+
$939ac78e6c54d005$exports = {
|
|
223
|
+
"actions": `Műveletek`,
|
|
224
|
+
"actionsAvailable": `Műveletek állnak rendelkezésre.`,
|
|
225
|
+
"clearSelection": `Kijelölés törlése`,
|
|
226
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
227
|
+
"=0": `Egy sincs kijelölve`,
|
|
228
|
+
other: ()=>`${formatter.number(args.count)} kijelölve`
|
|
229
|
+
})}`,
|
|
230
|
+
"selectedAll": `Mind kijelölve`
|
|
231
|
+
};
|
|
88
232
|
|
|
89
233
|
|
|
90
234
|
var $087af352bd8a67a5$exports = {};
|
|
91
|
-
$087af352bd8a67a5$exports =
|
|
235
|
+
$087af352bd8a67a5$exports = {
|
|
236
|
+
"actions": `Azioni`,
|
|
237
|
+
"actionsAvailable": `Azioni disponibili.`,
|
|
238
|
+
"clearSelection": `Annulla selezione`,
|
|
239
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
240
|
+
"=0": `Nessuno selezionato`,
|
|
241
|
+
other: ()=>`${formatter.number(args.count)} selezionato/i`
|
|
242
|
+
})}`,
|
|
243
|
+
"selectedAll": `Tutti selezionati`
|
|
244
|
+
};
|
|
92
245
|
|
|
93
246
|
|
|
94
247
|
var $ef25b75f84bf9640$exports = {};
|
|
95
|
-
$ef25b75f84bf9640$exports =
|
|
248
|
+
$ef25b75f84bf9640$exports = {
|
|
249
|
+
"actions": `アクション`,
|
|
250
|
+
"actionsAvailable": `アクションを利用できます。`,
|
|
251
|
+
"clearSelection": `選択をクリア`,
|
|
252
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
253
|
+
"=0": `選択されていません`,
|
|
254
|
+
other: ()=>`${formatter.number(args.count)} 個を選択しました`
|
|
255
|
+
})}`,
|
|
256
|
+
"selectedAll": `すべてを選択`
|
|
257
|
+
};
|
|
96
258
|
|
|
97
259
|
|
|
98
260
|
var $a9fcaa28ab16ac58$exports = {};
|
|
99
|
-
$a9fcaa28ab16ac58$exports =
|
|
261
|
+
$a9fcaa28ab16ac58$exports = {
|
|
262
|
+
"actions": `액션`,
|
|
263
|
+
"actionsAvailable": `사용 가능한 액션`,
|
|
264
|
+
"clearSelection": `선택 항목 지우기`,
|
|
265
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
266
|
+
"=0": `선택된 항목 없음`,
|
|
267
|
+
other: ()=>`${formatter.number(args.count)}개 선택됨`
|
|
268
|
+
})}`,
|
|
269
|
+
"selectedAll": `모두 선택됨`
|
|
270
|
+
};
|
|
100
271
|
|
|
101
272
|
|
|
102
273
|
var $7103396bd37d192c$exports = {};
|
|
103
|
-
$7103396bd37d192c$exports =
|
|
274
|
+
$7103396bd37d192c$exports = {
|
|
275
|
+
"actions": `Veiksmai`,
|
|
276
|
+
"actionsAvailable": `Galimi veiksmai.`,
|
|
277
|
+
"clearSelection": `Išvalyti pasirinkimą`,
|
|
278
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
279
|
+
"=0": `Nieko nepasirinkta`,
|
|
280
|
+
other: ()=>`Pasirinkta ${formatter.number(args.count)}`
|
|
281
|
+
})}`,
|
|
282
|
+
"selectedAll": `Pasirinkta viskas`
|
|
283
|
+
};
|
|
104
284
|
|
|
105
285
|
|
|
106
286
|
var $da39587a937fb6fd$exports = {};
|
|
107
|
-
$da39587a937fb6fd$exports =
|
|
287
|
+
$da39587a937fb6fd$exports = {
|
|
288
|
+
"actions": `Darbības`,
|
|
289
|
+
"actionsAvailable": `Pieejamas darbības.`,
|
|
290
|
+
"clearSelection": `Notīrīt atlasi`,
|
|
291
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
292
|
+
"=0": `Nav atlasīts nekas`,
|
|
293
|
+
other: ()=>`Atlasīts: ${formatter.number(args.count)}`
|
|
294
|
+
})}`,
|
|
295
|
+
"selectedAll": `Atlasīts viss`
|
|
296
|
+
};
|
|
108
297
|
|
|
109
298
|
|
|
110
299
|
var $fef3c3414d151198$exports = {};
|
|
111
|
-
$fef3c3414d151198$exports =
|
|
300
|
+
$fef3c3414d151198$exports = {
|
|
301
|
+
"actions": `Handlinger`,
|
|
302
|
+
"actionsAvailable": `Tilgjengelige handlinger.`,
|
|
303
|
+
"clearSelection": `Tøm utvalg`,
|
|
304
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
305
|
+
"=0": `Ingen er valgt`,
|
|
306
|
+
other: ()=>`${formatter.number(args.count)} er valgt`
|
|
307
|
+
})}`,
|
|
308
|
+
"selectedAll": `Alle er valgt`
|
|
309
|
+
};
|
|
112
310
|
|
|
113
311
|
|
|
114
312
|
var $3cfd427955fee95c$exports = {};
|
|
115
|
-
$3cfd427955fee95c$exports =
|
|
313
|
+
$3cfd427955fee95c$exports = {
|
|
314
|
+
"actions": `Acties`,
|
|
315
|
+
"actionsAvailable": `Acties beschikbaar.`,
|
|
316
|
+
"clearSelection": `Selectie wissen`,
|
|
317
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
318
|
+
"=0": `Niets geselecteerd`,
|
|
319
|
+
other: ()=>`${formatter.number(args.count)} geselecteerd`
|
|
320
|
+
})}`,
|
|
321
|
+
"selectedAll": `Alles geselecteerd`
|
|
322
|
+
};
|
|
116
323
|
|
|
117
324
|
|
|
118
325
|
var $ecd102793531599a$exports = {};
|
|
119
|
-
$ecd102793531599a$exports =
|
|
326
|
+
$ecd102793531599a$exports = {
|
|
327
|
+
"actions": `Działania`,
|
|
328
|
+
"actionsAvailable": `Dostępne działania.`,
|
|
329
|
+
"clearSelection": `Wyczyść zaznaczenie`,
|
|
330
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
331
|
+
"=0": `Nie zaznaczono żadnego elementu`,
|
|
332
|
+
other: ()=>`${formatter.number(args.count)} zaznaczonych`
|
|
333
|
+
})}`,
|
|
334
|
+
"selectedAll": `Wszystkie zaznaczone`
|
|
335
|
+
};
|
|
120
336
|
|
|
121
337
|
|
|
122
338
|
var $70b0a95af4186e29$exports = {};
|
|
123
|
-
$70b0a95af4186e29$exports =
|
|
339
|
+
$70b0a95af4186e29$exports = {
|
|
340
|
+
"actions": `Ações`,
|
|
341
|
+
"actionsAvailable": `Ações disponíveis.`,
|
|
342
|
+
"clearSelection": `Limpar seleção`,
|
|
343
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
344
|
+
"=0": `Nada selecionado`,
|
|
345
|
+
other: ()=>`${formatter.number(args.count)} selecionado`
|
|
346
|
+
})}`,
|
|
347
|
+
"selectedAll": `Todos selecionados`
|
|
348
|
+
};
|
|
124
349
|
|
|
125
350
|
|
|
126
351
|
var $4b15e180aed5c52d$exports = {};
|
|
127
|
-
$4b15e180aed5c52d$exports =
|
|
352
|
+
$4b15e180aed5c52d$exports = {
|
|
353
|
+
"actions": `Ações`,
|
|
354
|
+
"actionsAvailable": `Ações disponíveis.`,
|
|
355
|
+
"clearSelection": `Limpar seleção`,
|
|
356
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
357
|
+
"=0": `Nenhum selecionado`,
|
|
358
|
+
other: ()=>`${formatter.number(args.count)} selecionado`
|
|
359
|
+
})}`,
|
|
360
|
+
"selectedAll": `Tudo selecionado`
|
|
361
|
+
};
|
|
128
362
|
|
|
129
363
|
|
|
130
364
|
var $d0ef0a1cef9c2d6c$exports = {};
|
|
131
|
-
$d0ef0a1cef9c2d6c$exports =
|
|
365
|
+
$d0ef0a1cef9c2d6c$exports = {
|
|
366
|
+
"actions": `Acțiuni`,
|
|
367
|
+
"actionsAvailable": `Acțiuni disponibile.`,
|
|
368
|
+
"clearSelection": `Goliți selecția`,
|
|
369
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
370
|
+
"=0": `Niciunul selectat`,
|
|
371
|
+
other: ()=>`${formatter.number(args.count)} selectate`
|
|
372
|
+
})}`,
|
|
373
|
+
"selectedAll": `Toate selectate`
|
|
374
|
+
};
|
|
132
375
|
|
|
133
376
|
|
|
134
377
|
var $58fc1ff371f0c7fd$exports = {};
|
|
135
|
-
$58fc1ff371f0c7fd$exports =
|
|
378
|
+
$58fc1ff371f0c7fd$exports = {
|
|
379
|
+
"actions": `Действия`,
|
|
380
|
+
"actionsAvailable": `Возможно выполнение действий.`,
|
|
381
|
+
"clearSelection": `Очистить выбор`,
|
|
382
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
383
|
+
"=0": `Ничего не выбоано`,
|
|
384
|
+
other: ()=>`${formatter.number(args.count)} выбрано`
|
|
385
|
+
})}`,
|
|
386
|
+
"selectedAll": `Выбрано все`
|
|
387
|
+
};
|
|
136
388
|
|
|
137
389
|
|
|
138
390
|
var $b5f65f4e7988d1dd$exports = {};
|
|
139
|
-
$b5f65f4e7988d1dd$exports =
|
|
391
|
+
$b5f65f4e7988d1dd$exports = {
|
|
392
|
+
"actions": `Akcie`,
|
|
393
|
+
"actionsAvailable": `Dostupné akcie.`,
|
|
394
|
+
"clearSelection": `Vymazať výber`,
|
|
395
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
396
|
+
"=0": `Žiadne vybraté položky`,
|
|
397
|
+
other: ()=>`Počet vybratých položiek: ${formatter.number(args.count)}`
|
|
398
|
+
})}`,
|
|
399
|
+
"selectedAll": `Všetky vybraté položky`
|
|
400
|
+
};
|
|
140
401
|
|
|
141
402
|
|
|
142
403
|
var $5409ad409aeaf678$exports = {};
|
|
143
|
-
$5409ad409aeaf678$exports =
|
|
404
|
+
$5409ad409aeaf678$exports = {
|
|
405
|
+
"actions": `Dejanja`,
|
|
406
|
+
"actionsAvailable": `Na voljo so dejanja.`,
|
|
407
|
+
"clearSelection": `Počisti izbor`,
|
|
408
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
409
|
+
"=0": `Nič izbranih`,
|
|
410
|
+
other: ()=>`${formatter.number(args.count)} izbranih`
|
|
411
|
+
})}`,
|
|
412
|
+
"selectedAll": `Vsi izbrani`
|
|
413
|
+
};
|
|
144
414
|
|
|
145
415
|
|
|
146
416
|
var $43feb38b3d4bbf1f$exports = {};
|
|
147
|
-
$43feb38b3d4bbf1f$exports =
|
|
417
|
+
$43feb38b3d4bbf1f$exports = {
|
|
418
|
+
"actions": `Radnje`,
|
|
419
|
+
"actionsAvailable": `Dostupne su radnje.`,
|
|
420
|
+
"clearSelection": `Poništi izbor`,
|
|
421
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
422
|
+
"=0": `Ništa nije izabrano`,
|
|
423
|
+
other: ()=>`${formatter.number(args.count)} je izabrano`
|
|
424
|
+
})}`,
|
|
425
|
+
"selectedAll": `Sve je izabrano`
|
|
426
|
+
};
|
|
148
427
|
|
|
149
428
|
|
|
150
429
|
var $cbe41ff823ebe108$exports = {};
|
|
151
|
-
$cbe41ff823ebe108$exports =
|
|
430
|
+
$cbe41ff823ebe108$exports = {
|
|
431
|
+
"actions": `Åtgärder`,
|
|
432
|
+
"actionsAvailable": `Åtgärder finns.`,
|
|
433
|
+
"clearSelection": `Rensa markering`,
|
|
434
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
435
|
+
"=0": `Inga markerade`,
|
|
436
|
+
other: ()=>`${formatter.number(args.count)} markerade`
|
|
437
|
+
})}`,
|
|
438
|
+
"selectedAll": `Alla markerade`
|
|
439
|
+
};
|
|
152
440
|
|
|
153
441
|
|
|
154
442
|
var $57b680843fcbe09e$exports = {};
|
|
155
|
-
$57b680843fcbe09e$exports =
|
|
443
|
+
$57b680843fcbe09e$exports = {
|
|
444
|
+
"actions": `Eylemler`,
|
|
445
|
+
"actionsAvailable": `Eylemler mevcut.`,
|
|
446
|
+
"clearSelection": `Seçimi temizle`,
|
|
447
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
448
|
+
"=0": `Hiçbiri seçilmedi`,
|
|
449
|
+
other: ()=>`${formatter.number(args.count)} seçildi`
|
|
450
|
+
})}`,
|
|
451
|
+
"selectedAll": `Tümü seçildi`
|
|
452
|
+
};
|
|
156
453
|
|
|
157
454
|
|
|
158
455
|
var $1e4c96bc308e0da2$exports = {};
|
|
159
|
-
$1e4c96bc308e0da2$exports =
|
|
456
|
+
$1e4c96bc308e0da2$exports = {
|
|
457
|
+
"actions": `Дії`,
|
|
458
|
+
"actionsAvailable": `Доступні дії.`,
|
|
459
|
+
"clearSelection": `Очистити вибір`,
|
|
460
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
461
|
+
"=0": `Нічого не вибрано`,
|
|
462
|
+
other: ()=>`Вибрано: ${formatter.number(args.count)}`
|
|
463
|
+
})}`,
|
|
464
|
+
"selectedAll": `Усе вибрано`
|
|
465
|
+
};
|
|
160
466
|
|
|
161
467
|
|
|
162
468
|
var $18faa55a67dca8f3$exports = {};
|
|
163
|
-
$18faa55a67dca8f3$exports =
|
|
469
|
+
$18faa55a67dca8f3$exports = {
|
|
470
|
+
"actions": `操作`,
|
|
471
|
+
"actionsAvailable": `有可用操作。`,
|
|
472
|
+
"clearSelection": `清除选择`,
|
|
473
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
474
|
+
"=0": `无选择`,
|
|
475
|
+
other: ()=>`已选择 ${formatter.number(args.count)} 个`
|
|
476
|
+
})}`,
|
|
477
|
+
"selectedAll": `全选`
|
|
478
|
+
};
|
|
164
479
|
|
|
165
480
|
|
|
166
481
|
var $804c64c525579787$exports = {};
|
|
167
|
-
$804c64c525579787$exports =
|
|
482
|
+
$804c64c525579787$exports = {
|
|
483
|
+
"actions": `動作`,
|
|
484
|
+
"actionsAvailable": `可執行的動作。`,
|
|
485
|
+
"clearSelection": `清除選取項目`,
|
|
486
|
+
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
487
|
+
"=0": `未選取任何項目`,
|
|
488
|
+
other: ()=>`已選取 ${formatter.number(args.count)} 個`
|
|
489
|
+
})}`,
|
|
490
|
+
"selectedAll": `已選取所有項目`
|
|
491
|
+
};
|
|
168
492
|
|
|
169
493
|
|
|
170
494
|
$992d76e8dd5fee7b$exports = {
|
|
@@ -238,105 +562,115 @@ $7bd9eeb2cd70bd0c$export$adc2706661946993 = "react-spectrum-ActionBar-actionGrou
|
|
|
238
562
|
|
|
239
563
|
function $a4e665fbd087d71e$var$ActionBar(props, ref) {
|
|
240
564
|
let isOpen = props.selectedItemCount !== 0;
|
|
241
|
-
|
|
565
|
+
let domRef = (0, $N9qJl$useDOMRef)(ref);
|
|
566
|
+
return /*#__PURE__*/ (0, $N9qJl$react).createElement((0, $N9qJl$OpenTransition), {
|
|
567
|
+
nodeRef: domRef,
|
|
242
568
|
in: isOpen,
|
|
243
569
|
mountOnEnter: true,
|
|
244
570
|
unmountOnExit: true
|
|
245
|
-
}, /*#__PURE__*/ $N9qJl$react.createElement($a4e665fbd087d71e$var$
|
|
571
|
+
}, /*#__PURE__*/ (0, $N9qJl$react).createElement($a4e665fbd087d71e$var$ActionBarInnerWithRef, {
|
|
246
572
|
...props,
|
|
247
|
-
ref:
|
|
248
|
-
}))
|
|
573
|
+
ref: domRef
|
|
574
|
+
}));
|
|
249
575
|
}
|
|
250
|
-
|
|
251
|
-
props = $N9qJl$useProviderProps(props);
|
|
252
|
-
let { children: children , isEmphasized: isEmphasized , onAction: onAction , onClearSelection: onClearSelection , selectedItemCount: selectedItemCount , isOpen: isOpen } = props;
|
|
253
|
-
let { styleProps: styleProps } = $N9qJl$useStyleProps(props);
|
|
254
|
-
let
|
|
255
|
-
let formatMessage = $N9qJl$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($992d76e8dd5fee7b$exports)));
|
|
576
|
+
function $a4e665fbd087d71e$var$ActionBarInner(props, ref) {
|
|
577
|
+
props = (0, $N9qJl$useProviderProps)(props);
|
|
578
|
+
let { children: children , isEmphasized: isEmphasized , onAction: onAction , onClearSelection: onClearSelection , selectedItemCount: selectedItemCount , isOpen: isOpen , items: items } = props;
|
|
579
|
+
let { styleProps: styleProps } = (0, $N9qJl$useStyleProps)(props);
|
|
580
|
+
let stringFormatter = (0, $N9qJl$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($992d76e8dd5fee7b$exports))));
|
|
256
581
|
// Store the last count greater than zero in a ref so that we can retain it while rendering the fade-out animation.
|
|
257
|
-
let lastCount = $N9qJl$useRef(selectedItemCount);
|
|
258
|
-
if (selectedItemCount ===
|
|
259
|
-
let { keyboardProps: keyboardProps } = $N9qJl$useKeyboard({
|
|
582
|
+
let lastCount = (0, $N9qJl$useRef)(selectedItemCount);
|
|
583
|
+
if (selectedItemCount === "all" || selectedItemCount > 0) lastCount.current = selectedItemCount;
|
|
584
|
+
let { keyboardProps: keyboardProps } = (0, $N9qJl$useKeyboard)({
|
|
260
585
|
onKeyDown (e) {
|
|
261
|
-
if (e.key ===
|
|
586
|
+
if (e.key === "Escape") {
|
|
262
587
|
e.preventDefault();
|
|
263
588
|
onClearSelection();
|
|
264
589
|
}
|
|
265
590
|
}
|
|
266
591
|
});
|
|
267
592
|
// Announce "actions available" on mount.
|
|
268
|
-
$N9qJl$useEffect(()=>{
|
|
269
|
-
$N9qJl$announce(
|
|
593
|
+
(0, $N9qJl$useEffect)(()=>{
|
|
594
|
+
(0, $N9qJl$announce)(stringFormatter.format("actionsAvailable"));
|
|
270
595
|
}, [
|
|
271
|
-
|
|
596
|
+
stringFormatter
|
|
272
597
|
]);
|
|
273
|
-
return
|
|
598
|
+
return /*#__PURE__*/ (0, $N9qJl$react).createElement((0, $N9qJl$FocusScope), {
|
|
274
599
|
restoreFocus: true
|
|
275
|
-
}, /*#__PURE__*/ $N9qJl$react.createElement("div", {
|
|
276
|
-
|
|
600
|
+
}, /*#__PURE__*/ (0, $N9qJl$react).createElement("div", {
|
|
601
|
+
...(0, $N9qJl$filterDOMProps)(props),
|
|
277
602
|
...styleProps,
|
|
278
603
|
...keyboardProps,
|
|
279
|
-
ref:
|
|
280
|
-
className: $N9qJl$classNames((/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports)),
|
|
281
|
-
|
|
282
|
-
|
|
604
|
+
ref: ref,
|
|
605
|
+
className: (0, $N9qJl$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports))), "react-spectrum-ActionBar", {
|
|
606
|
+
"react-spectrum-ActionBar--emphasized": isEmphasized,
|
|
607
|
+
"is-open": isOpen
|
|
283
608
|
}, styleProps.className)
|
|
284
|
-
}, /*#__PURE__*/ $N9qJl$react.createElement("div", {
|
|
285
|
-
className: $N9qJl$classNames((/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports)),
|
|
286
|
-
}, /*#__PURE__*/ $N9qJl$react.createElement($N9qJl$ActionGroup, {
|
|
287
|
-
|
|
609
|
+
}, /*#__PURE__*/ (0, $N9qJl$react).createElement("div", {
|
|
610
|
+
className: (0, $N9qJl$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports))), "react-spectrum-ActionBar-bar")
|
|
611
|
+
}, /*#__PURE__*/ (0, $N9qJl$react).createElement((0, $N9qJl$ActionGroup), {
|
|
612
|
+
items: items,
|
|
613
|
+
"aria-label": stringFormatter.format("actions"),
|
|
288
614
|
isQuiet: true,
|
|
289
|
-
staticColor: isEmphasized ?
|
|
615
|
+
staticColor: isEmphasized ? "white" : undefined,
|
|
290
616
|
overflowMode: "collapse",
|
|
291
617
|
buttonLabelBehavior: "collapse",
|
|
292
618
|
onAction: onAction,
|
|
293
|
-
UNSAFE_className: $N9qJl$classNames((/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports)),
|
|
294
|
-
}, children), /*#__PURE__*/ $N9qJl$react.createElement($N9qJl$ActionButton, {
|
|
619
|
+
UNSAFE_className: (0, $N9qJl$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports))), "react-spectrum-ActionBar-actionGroup")
|
|
620
|
+
}, children), /*#__PURE__*/ (0, $N9qJl$react).createElement((0, $N9qJl$ActionButton), {
|
|
295
621
|
gridArea: "clear",
|
|
296
|
-
"aria-label":
|
|
297
|
-
onPress: ()=>onClearSelection()
|
|
298
|
-
,
|
|
622
|
+
"aria-label": stringFormatter.format("clearSelection"),
|
|
623
|
+
onPress: ()=>onClearSelection(),
|
|
299
624
|
isQuiet: true,
|
|
300
|
-
staticColor: isEmphasized ?
|
|
301
|
-
}, /*#__PURE__*/ $N9qJl$react.createElement($N9qJl$spectrumiconsuiCrossLarge, null)), /*#__PURE__*/ $N9qJl$react.createElement($N9qJl$Text, {
|
|
302
|
-
UNSAFE_className: $N9qJl$classNames((/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports)),
|
|
303
|
-
}, lastCount.current ===
|
|
625
|
+
staticColor: isEmphasized ? "white" : undefined
|
|
626
|
+
}, /*#__PURE__*/ (0, $N9qJl$react).createElement((0, $N9qJl$spectrumiconsuiCrossLarge), null)), /*#__PURE__*/ (0, $N9qJl$react).createElement((0, $N9qJl$Text), {
|
|
627
|
+
UNSAFE_className: (0, $N9qJl$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports))), "react-spectrum-ActionBar-selectedCount")
|
|
628
|
+
}, lastCount.current === "all" ? stringFormatter.format("selectedAll") : stringFormatter.format("selected", {
|
|
304
629
|
count: lastCount.current
|
|
305
|
-
})))))
|
|
306
|
-
}
|
|
630
|
+
})))));
|
|
631
|
+
}
|
|
632
|
+
const $a4e665fbd087d71e$var$ActionBarInnerWithRef = /*#__PURE__*/ (0, $N9qJl$react).forwardRef($a4e665fbd087d71e$var$ActionBarInner);
|
|
307
633
|
/**
|
|
308
|
-
*
|
|
309
|
-
*/ const $a4e665fbd087d71e$export$e213cebad6250b4a = /*#__PURE__*/ $N9qJl$react.forwardRef($a4e665fbd087d71e$var$ActionBar);
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
var $2f6c8b20aa071c6d$exports = {};
|
|
634
|
+
* Action bars are used for single and bulk selection patterns when a user needs to perform actions on one or more items at the same time.
|
|
635
|
+
*/ const $a4e665fbd087d71e$export$e213cebad6250b4a = /*#__PURE__*/ (0, $N9qJl$react).forwardRef($a4e665fbd087d71e$var$ActionBar);
|
|
313
636
|
|
|
314
|
-
$parcel$export($2f6c8b20aa071c6d$exports, "ActionBarContainer", () => $2f6c8b20aa071c6d$export$ac2eb07f267e434c);
|
|
315
637
|
|
|
638
|
+
/*
|
|
639
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
640
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
641
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
642
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
643
|
+
*
|
|
644
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
645
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
646
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
647
|
+
* governing permissions and limitations under the License.
|
|
648
|
+
*/
|
|
316
649
|
|
|
317
650
|
|
|
318
651
|
|
|
319
652
|
|
|
320
653
|
function $2f6c8b20aa071c6d$var$ActionBarContainer(props, ref) {
|
|
321
654
|
// Grabs specific props from the closest Provider (see https://react-spectrum.adobe.com/react-spectrum/Provider.html#property-groups). Remove if your component doesn't support any of the listed props.
|
|
322
|
-
props = $N9qJl$useProviderProps(props);
|
|
655
|
+
props = (0, $N9qJl$useProviderProps)(props);
|
|
323
656
|
let { children: children } = props;
|
|
324
|
-
let { styleProps: styleProps } = $N9qJl$useStyleProps(props);
|
|
325
|
-
let domRef = $N9qJl$useDOMRef(ref);
|
|
326
|
-
return
|
|
327
|
-
|
|
657
|
+
let { styleProps: styleProps } = (0, $N9qJl$useStyleProps)(props);
|
|
658
|
+
let domRef = (0, $N9qJl$useDOMRef)(ref);
|
|
659
|
+
return /*#__PURE__*/ (0, $N9qJl$react).createElement("div", {
|
|
660
|
+
...(0, $N9qJl$filterDOMProps)(props),
|
|
328
661
|
...styleProps,
|
|
329
662
|
ref: domRef,
|
|
330
|
-
className: $N9qJl$classNames((/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports)),
|
|
331
|
-
}, children)
|
|
663
|
+
className: (0, $N9qJl$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports))), "ActionBarContainer", styleProps.className)
|
|
664
|
+
}, children);
|
|
332
665
|
}
|
|
333
666
|
/**
|
|
334
|
-
*
|
|
335
|
-
|
|
667
|
+
* ActionBarContainer wraps around an ActionBar and a component that supports selection. It handles
|
|
668
|
+
* the ActionBar's position with respect to its linked component.
|
|
669
|
+
*/ const $2f6c8b20aa071c6d$export$ac2eb07f267e434c = /*#__PURE__*/ (0, $N9qJl$react).forwardRef($2f6c8b20aa071c6d$var$ActionBarContainer);
|
|
336
670
|
|
|
337
671
|
|
|
338
672
|
|
|
339
673
|
|
|
340
674
|
|
|
341
|
-
export {$
|
|
675
|
+
export {$a4e665fbd087d71e$export$e213cebad6250b4a as ActionBar, $2f6c8b20aa071c6d$export$ac2eb07f267e434c as ActionBarContainer, $da70baa779e17e7a$re_export$Item as Item};
|
|
342
676
|
//# sourceMappingURL=module.js.map
|