@bcgov/design-system-react-components 0.0.1 → 0.0.2
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/README.md +25 -7
- package/dist/cjs/index.cjs +1325 -905
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/components/Button/Button.d.ts +9 -0
- package/dist/cjs/types/components/Button/index.d.ts +2 -0
- package/dist/cjs/types/components/Tag/Tag.d.ts +1 -4
- package/dist/cjs/types/components/index.d.ts +2 -0
- package/dist/esm/index.js +1326 -907
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Button/Button.d.ts +9 -0
- package/dist/esm/types/components/Button/index.d.ts +2 -0
- package/dist/esm/types/components/Tag/Tag.d.ts +1 -4
- package/dist/esm/types/components/index.d.ts +2 -0
- package/dist/index.d.ts +11 -4
- package/package.json +25 -25
package/dist/cjs/index.cjs
CHANGED
|
@@ -4,6 +4,36 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var $dGqE5$react = require('react');
|
|
5
5
|
var $dGqE5$reactdom = require('react-dom');
|
|
6
6
|
|
|
7
|
+
function styleInject(css, ref) {
|
|
8
|
+
if ( ref === void 0 ) ref = {};
|
|
9
|
+
var insertAt = ref.insertAt;
|
|
10
|
+
|
|
11
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
12
|
+
|
|
13
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
14
|
+
var style = document.createElement('style');
|
|
15
|
+
style.type = 'text/css';
|
|
16
|
+
|
|
17
|
+
if (insertAt === 'top') {
|
|
18
|
+
if (head.firstChild) {
|
|
19
|
+
head.insertBefore(style, head.firstChild);
|
|
20
|
+
} else {
|
|
21
|
+
head.appendChild(style);
|
|
22
|
+
}
|
|
23
|
+
} else {
|
|
24
|
+
head.appendChild(style);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (style.styleSheet) {
|
|
28
|
+
style.styleSheet.cssText = css;
|
|
29
|
+
} else {
|
|
30
|
+
style.appendChild(document.createTextNode(css));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
var css_248z$4 = "/**\n * Do not edit directly\n * Generated on Wed, 22 Nov 2023 20:31:25 GMT\n */\n\n:root {\n --surface-opacity-0: 0;\n --surface-opacity-10: 0.1;\n --surface-opacity-20: 0.2;\n --surface-opacity-30: 0.3;\n --surface-opacity-40: 0.4;\n --surface-opacity-50: 0.5;\n --surface-opacity-60: 0.6;\n --surface-opacity-70: 0.7;\n --surface-opacity-80: 0.8;\n --surface-opacity-90: 0.9;\n --surface-opacity-100: 1;\n --surface-primary-default: #013366;\n --surface-primary-hover: #1E5189;\n --surface-primary-disabled: #edebe9;\n --surface-primary-active: #2E5DD7;\n --surface-secondary-default: #ffffff;\n --surface-secondary-hover: #edebe9;\n --surface-secondary-disabled: #edebe9;\n --surface-secondary-active: #2E5DD7;\n --surface-tertiary-default: #ffffff00;\n --surface-tertiary-hover: #eceae8;\n --surface-tertiary-disabled: #edebe9;\n --surface-tertiary-active: #2E5DD7;\n --surface-danger-default: #ce3e39;\n --surface-danger-hover: #a2312d;\n --surface-danger-active: #2E5DD7;\n --surface-danger-disabled: #edebe9;\n --surface-background-white: #ffffff;\n --surface-background-light: #faf9f8;\n --surface-border-light: #d8d8d8;\n --surface-border-medium: #898785;\n --surface-border-dark: #353433;\n --surface-overlay-default: #00000073;\n --surface-brand-gold-10: #fff8e9;\n --surface-brand-gold-20: #feebc2;\n --surface-brand-gold-30: #fddf9d;\n --surface-brand-gold-40: #fdd47b;\n --surface-brand-gold-50: #fcc85d;\n --surface-brand-gold-60: #f8ba47; /* BC Gold */\n --surface-brand-gold-70: #ce9737;\n --surface-brand-gold-80: #a5792b;\n --surface-brand-gold-90: #7e5d21;\n --surface-brand-gold-100: #584215;\n --surface-brand-blue-10: #f1f8fe;\n --surface-brand-blue-20: #d8eafd;\n --surface-brand-blue-30: #c1ddfc;\n --surface-brand-blue-40: #a8d0fb;\n --surface-brand-blue-50: #91c4fa;\n --surface-brand-blue-60: #7ab8f9;\n --surface-brand-blue-70: #5595d9;\n --surface-brand-blue-80: #3470b1;\n --surface-brand-blue-90: #1e5189;\n --surface-brand-blue-100: #053662; /* BC Blue */\n --surface-brand-gray-10: #faf9f8;\n --surface-brand-gray-20: #f3f2f1;\n --surface-brand-gray-30: #eceae8;\n --surface-brand-gray-40: #e0dedc;\n --surface-brand-gray-50: #d1cfcd;\n --surface-brand-gray-60: #c6c5c3;\n --surface-brand-gray-70: #9f9d9c;\n --surface-brand-gray-80: #605e5c;\n --surface-brand-gray-90: #3d3c3b;\n --surface-brand-gray-100: #353433;\n --surface-brand-gray-110: #252423;\n --surface-brand-gray-white: #ffffff;\n --surface-icons-primary: #2d2d2d;\n --surface-icons-secondary: #474543;\n --surface-icons-disabled: #9f9d9c;\n --surface-icons-link: #255a90;\n --surface-icons-info: #053662;\n --surface-icons-danger: #ce3e39;\n --surface-icons-success: #42814a;\n --surface-icons-warning: #f8bb47;\n --surface-support-surface-color-info: #f7f9fc;\n --surface-support-surface-color-danger: #f4e1e2;\n --surface-support-surface-color-success: #f6fff8;\n --surface-support-surface-color-warning: #fef1d8;\n --surface-support-border-color-info: #053662;\n --surface-support-border-color-danger: #ce3e39;\n --surface-support-border-color-success: #42814a;\n --surface-support-border-color-warning: #f8bb47;\n --surface-shadow-none: 0 0.30000001192092896px 0.8999999761581421px 0 #0000001a, 0 1.600000023841858px 3.5999999046325684px 0 #00000021;\n --surface-shadow-small: 0 0.6000000238418579px 1.7999999523162842px 0 #0000001a, 0 3.200000047683716px 7.199999809265137px 0 #00000021; /* Primarily used as a hover effect for cards */\n --surface-shadow-medium: 0 1.2000000476837158px 3.5999999046325684px 0 #0000001a, 0 6.400000095367432px 14.399999618530273px 0 #00000021; /* Primarily used for dropdown menus and tooltips */\n --surface-shadow-large: 0 4.800000190734863px 14.399999618530273px 0 #0000002e, 0 25.600000381469727px 57.599998474121094px 0 #00000038; /* Primarily used for dialogs */\n --surface-border-radius-none: 0;\n --surface-border-radius-small: 2px;\n --surface-border-radius-medium: 4px;\n --surface-border-radius-large: 6px;\n --surface-border-width-none: 0;\n --surface-border-width-small: 1px;\n --surface-border-width-medium: 2px;\n --surface-border-width-large: 4px;\n --surface-size-small: 0px 8px;\n --surface-size-medium: 6px 16px;\n --support-support-surface-color-info: #f7f9fc;\n --support-support-surface-color-danger: #f4e1e2;\n --support-support-surface-color-success: #f6fff8;\n --support-support-surface-color-warning: #fef1d8;\n --support-support-border-color-info: #053662;\n --support-support-border-color-danger: #ce3e39;\n --support-support-border-color-success: #42814a;\n --support-support-border-color-warning: #f8bb47;\n --icons-icons-primary: #2d2d2d;\n --icons-icons-secondary: #474543;\n --icons-icons-disabled: #9f9d9c;\n --icons-icons-link: #255a90;\n --icons-icons-info: #053662;\n --icons-icons-danger: #ce3e39;\n --icons-icons-success: #42814a;\n --icons-icons-warning: #f8bb47;\n --icons-icons-primary-invert: #ffffff;\n --icons-size-xsmall: 14px;\n --icons-size-small: 16px;\n --icons-size-medium: 20px;\n --icons-size-large: 24px;\n --icons-size-xlarge: 32px;\n --layout-border-width-none: 0;\n --layout-border-width-small: 1px;\n --layout-border-width-medium: 2px;\n --layout-border-width-large: 4px;\n --layout-padding-none: 0;\n --layout-padding-xsmall: 4px;\n --layout-padding-small: 8px;\n --layout-padding-medium: 16px;\n --layout-padding-large: 24px;\n --layout-padding-xlarge: 32px;\n --layout-margin-none: 0;\n --layout-margin-hair: 2px;\n --layout-margin-xsmall: 4px;\n --layout-margin-small: 8px;\n --layout-margin-medium: 16px;\n --layout-margin-large: 24px;\n --layout-margin-xlarge: 32px;\n --layout-margin-xxlarge: 40px;\n --layout-margin-xxxlarge: 48px;\n --layout-margin-huge: 56px;\n --typography-font-families-bc-sans: 'BC Sans';\n --typography-line-heights-xxdense: 1.313rem;\n --typography-line-heights-xdense: 1.688rem;\n --typography-line-heights-dense: 1.913rem;\n --typography-line-heights-regular: 2.125rem;\n --typography-line-heights-sparse: 2.25rem;\n --typography-line-heights-xsparse: 3rem;\n --typography-line-heights-xxsparse: 3.375rem;\n --typography-line-heights-auto: AUTO;\n --typography-font-weights-regular: 400;\n --typography-font-weights-bold: 700;\n --typography-font-weights-italic: Italic;\n --typography-font-size-label: 0.875rem;\n --typography-font-size-body: 1rem;\n --typography-font-size-large-body: 1.125rem;\n --typography-font-size-h5: 1.25rem;\n --typography-font-size-h4: 1.5rem;\n --typography-font-size-h3: 1.75rem;\n --typography-font-size-h2: 2rem;\n --typography-font-size-h1: 2.25rem;\n --typography-font-size-display: 3rem;\n --typography-letter-spacing-0: 0em;\n --typography-paragraph-spacing-0: 0;\n --typography-regular-label: 400 0.875rem/1.313rem 'BC Sans';\n --typography-regular-body: 400 1rem/1.688rem 'BC Sans';\n --typography-regular-large-body: 400 1.125rem/1.913rem 'BC Sans';\n --typography-regular-h5: 400 1.25rem/2.125rem 'BC Sans';\n --typography-regular-h4: 400 1.5rem/2.25rem 'BC Sans';\n --typography-regular-h3: 400 1.75rem/3rem 'BC Sans';\n --typography-regular-h2: 400 2rem/3.375rem 'BC Sans';\n --typography-regular-h1: 400 2.25rem/3rem 'BC Sans';\n --typography-regular-display: 400 3rem/AUTO 'BC Sans';\n --typography-bold-label: 700 0.875rem/1.313rem 'BC Sans';\n --typography-bold-body: 700 1rem/1.688rem 'BC Sans';\n --typography-bold-large-body: 700 1.125rem/1.913rem 'BC Sans';\n --typography-bold-h5: 700 1.25rem/2.125rem 'BC Sans';\n --typography-bold-h4: 700 1.5rem/2.25rem 'BC Sans';\n --typography-bold-h3: 700 1.75rem/3.375rem 'BC Sans';\n --typography-bold-h2: 700 2rem/3rem 'BC Sans';\n --typography-bold-h1: 700 2.25rem/AUTO 'BC Sans';\n --typography-bold-display: 700 3rem/AUTO 'BC Sans';\n --typography-italic-label: 400 italic 0.875rem/1.313rem 'BC Sans';\n --typography-italic-body: 400 italic 1rem/1.688rem 'BC Sans';\n --typography-italic-large-body: 400 italic 1.125rem/1.913rem 'BC Sans';\n --typography-italic-h5: 400 italic 1.25rem/2.125rem 'BC Sans';\n --typography-italic-h4: 400 italic 1.5rem/2.25rem 'BC Sans';\n --typography-italic-h3: 400 italic 1.75rem/3.375rem 'BC Sans';\n --typography-italic-h2: 400 italic 2rem/3.375rem 'BC Sans';\n --typography-italic-h1: 400 italic 2.25rem/3rem 'BC Sans';\n --typography-italic-display: 400 italic 3rem/AUTO 'BC Sans';\n --typography-text-case-none: none;\n --typography-text-decoration-none: none;\n --typography-paragraph-indent-0: 0px;\n --typography-color-primary: #2D2D2D;\n --typography-color-secondary: #474543;\n --typography-color-disabled: #9F9D9C;\n --typography-color-link: #255A90;\n --typography-color-primary-invert: #FFFFFF;\n --typography-color-secondary-invert: #ECEAE8;\n}\n";
|
|
35
|
+
styleInject(css_248z$4);
|
|
36
|
+
|
|
7
37
|
/*
|
|
8
38
|
* Copyright 2020 Adobe. All rights reserved.
|
|
9
39
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -120,7 +150,7 @@ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
|
120
150
|
let ref = ($dGqE5$react.useRef)(null);
|
|
121
151
|
// eslint-disable-next-line rulesdir/pure-render
|
|
122
152
|
if (ref.current === null && !isDisabled) {
|
|
123
|
-
var
|
|
153
|
+
var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
124
154
|
// In strict mode, React renders components twice, and the ref will be reset to null on the second render.
|
|
125
155
|
// This means our id counter will be incremented twice instead of once. This is a problem because on the
|
|
126
156
|
// server, components are only rendered once and so ids generated on the server won't match the client.
|
|
@@ -256,6 +286,7 @@ function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
|
|
|
256
286
|
}, [
|
|
257
287
|
fn
|
|
258
288
|
]);
|
|
289
|
+
// @ts-ignore
|
|
259
290
|
return ($dGqE5$react.useCallback)((...args)=>{
|
|
260
291
|
const f = ref.current;
|
|
261
292
|
return f(...args);
|
|
@@ -297,6 +328,8 @@ function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {
|
|
|
297
328
|
}
|
|
298
329
|
|
|
299
330
|
|
|
331
|
+
// copied from SSRProvider.tsx to reduce exports, if needed again, consider sharing
|
|
332
|
+
let $bdb11010cef70236$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
300
333
|
let $bdb11010cef70236$var$idsUpdaterMap = new Map();
|
|
301
334
|
function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
302
335
|
let [value, setValue] = ($dGqE5$react.useState)(defaultId);
|
|
@@ -305,7 +338,7 @@ function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
|
305
338
|
let updateValue = ($dGqE5$react.useCallback)((val)=>{
|
|
306
339
|
nextId.current = val;
|
|
307
340
|
}, []);
|
|
308
|
-
$bdb11010cef70236$var$idsUpdaterMap.set(res, updateValue);
|
|
341
|
+
if ($bdb11010cef70236$var$canUseDOM) $bdb11010cef70236$var$idsUpdaterMap.set(res, updateValue);
|
|
309
342
|
($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
|
|
310
343
|
let r = res;
|
|
311
344
|
return ()=>{
|
|
@@ -379,6 +412,17 @@ function $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) {
|
|
|
379
412
|
}
|
|
380
413
|
|
|
381
414
|
|
|
415
|
+
const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{
|
|
416
|
+
var _el_ownerDocument;
|
|
417
|
+
return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
|
|
418
|
+
};
|
|
419
|
+
const $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{
|
|
420
|
+
if (el && "window" in el && el.window === el) return el;
|
|
421
|
+
const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
|
|
422
|
+
return doc.defaultView || window;
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
|
|
382
426
|
/*
|
|
383
427
|
* Copyright 2020 Adobe. All rights reserved.
|
|
384
428
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -607,7 +651,7 @@ function $ea8dcbcb9ea1b556$export$9a302a45f65d0572() {
|
|
|
607
651
|
return ($dGqE5$react.useContext)($ea8dcbcb9ea1b556$var$RouterContext);
|
|
608
652
|
}
|
|
609
653
|
function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening = true) {
|
|
610
|
-
var
|
|
654
|
+
var _window_event_type, _window_event;
|
|
611
655
|
let { metaKey: metaKey, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey } = modifiers;
|
|
612
656
|
// Firefox does not recognize keyboard events as a user action by default, and the popup blocker
|
|
613
657
|
// will prevent links with target="_blank" from opening. However, it does allow the event if the
|
|
@@ -1079,7 +1123,7 @@ function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
|
|
|
1079
1123
|
let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
|
|
1080
1124
|
// Account for sub pixel differences from rounding
|
|
1081
1125
|
if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
|
|
1082
|
-
var
|
|
1126
|
+
var _opts_containingElement_scrollIntoView, _opts_containingElement, _targetElement_scrollIntoView1;
|
|
1083
1127
|
opts === null || opts === void 0 ? void 0 : (_opts_containingElement = opts.containingElement) === null || _opts_containingElement === void 0 ? void 0 : (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) === null || _opts_containingElement_scrollIntoView === void 0 ? void 0 : _opts_containingElement_scrollIntoView.call(_opts_containingElement, {
|
|
1084
1128
|
block: "center",
|
|
1085
1129
|
inline: "center"
|
|
@@ -1267,8 +1311,10 @@ let $14c0b72509d70225$var$modifiedElementMap = new WeakMap();
|
|
|
1267
1311
|
function $14c0b72509d70225$export$16a4697467175487(target) {
|
|
1268
1312
|
if (($c87311424ea30a05$export$fedb369cb70207f1)()) {
|
|
1269
1313
|
if ($14c0b72509d70225$var$state === "default") {
|
|
1270
|
-
|
|
1271
|
-
|
|
1314
|
+
// eslint-disable-next-line no-restricted-globals
|
|
1315
|
+
const documentObject = ($431fbd86ca7dc216$export$b204af158042fbac)(target);
|
|
1316
|
+
$14c0b72509d70225$var$savedUserSelect = documentObject.documentElement.style.webkitUserSelect;
|
|
1317
|
+
documentObject.documentElement.style.webkitUserSelect = "none";
|
|
1272
1318
|
}
|
|
1273
1319
|
$14c0b72509d70225$var$state = "disabled";
|
|
1274
1320
|
} else if (target instanceof HTMLElement || target instanceof SVGElement) {
|
|
@@ -1292,7 +1338,9 @@ function $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {
|
|
|
1292
1338
|
($bbed8b41f857bcc0$export$24490316f764c430)(()=>{
|
|
1293
1339
|
// Avoid race conditions
|
|
1294
1340
|
if ($14c0b72509d70225$var$state === "restoring") {
|
|
1295
|
-
|
|
1341
|
+
// eslint-disable-next-line no-restricted-globals
|
|
1342
|
+
const documentObject = ($431fbd86ca7dc216$export$b204af158042fbac)(target);
|
|
1343
|
+
if (documentObject.documentElement.style.webkitUserSelect === "none") documentObject.documentElement.style.webkitUserSelect = $14c0b72509d70225$var$savedUserSelect || "";
|
|
1296
1344
|
$14c0b72509d70225$var$savedUserSelect = "";
|
|
1297
1345
|
$14c0b72509d70225$var$state = "default";
|
|
1298
1346
|
}
|
|
@@ -1303,7 +1351,7 @@ function $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {
|
|
|
1303
1351
|
{
|
|
1304
1352
|
if (target && $14c0b72509d70225$var$modifiedElementMap.has(target)) {
|
|
1305
1353
|
let targetOldUserSelect = $14c0b72509d70225$var$modifiedElementMap.get(target);
|
|
1306
|
-
if (target.style.userSelect === "none") target.style.userSelect = targetOldUserSelect;
|
|
1354
|
+
if (target.style.userSelect === "none" && targetOldUserSelect) target.style.userSelect = targetOldUserSelect;
|
|
1307
1355
|
if (target.getAttribute("style") === "") target.removeAttribute("style");
|
|
1308
1356
|
$14c0b72509d70225$var$modifiedElementMap.delete(target);
|
|
1309
1357
|
}
|
|
@@ -1323,7 +1371,9 @@ function $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {
|
|
|
1323
1371
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1324
1372
|
* governing permissions and limitations under the License.
|
|
1325
1373
|
*/
|
|
1326
|
-
const $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = ($dGqE5$react).createContext(
|
|
1374
|
+
const $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = ($dGqE5$react).createContext({
|
|
1375
|
+
register: ()=>{}
|
|
1376
|
+
});
|
|
1327
1377
|
$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName = "PressResponderContext";
|
|
1328
1378
|
|
|
1329
1379
|
|
|
@@ -1381,7 +1431,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1381
1431
|
let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = ($03deb23ff14920c4$export$4eaf04e54aa8eed6)();
|
|
1382
1432
|
let triggerPressStart = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((originalEvent, pointerType)=>{
|
|
1383
1433
|
let state = ref.current;
|
|
1384
|
-
if (isDisabled || state.didFirePressStart) return;
|
|
1434
|
+
if (isDisabled || state.didFirePressStart) return false;
|
|
1385
1435
|
let shouldStopPropagation = true;
|
|
1386
1436
|
state.isTriggeringEvent = true;
|
|
1387
1437
|
if (onPressStart) {
|
|
@@ -1397,7 +1447,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1397
1447
|
});
|
|
1398
1448
|
let triggerPressEnd = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((originalEvent, pointerType, wasPressed = true)=>{
|
|
1399
1449
|
let state = ref.current;
|
|
1400
|
-
if (!state.didFirePressStart) return;
|
|
1450
|
+
if (!state.didFirePressStart) return false;
|
|
1401
1451
|
state.ignoreClickAfterPress = true;
|
|
1402
1452
|
state.didFirePressStart = false;
|
|
1403
1453
|
state.isTriggeringEvent = true;
|
|
@@ -1419,7 +1469,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1419
1469
|
});
|
|
1420
1470
|
let triggerPressUp = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((originalEvent, pointerType)=>{
|
|
1421
1471
|
let state = ref.current;
|
|
1422
|
-
if (isDisabled) return;
|
|
1472
|
+
if (isDisabled) return false;
|
|
1423
1473
|
if (onPressUp) {
|
|
1424
1474
|
state.isTriggeringEvent = true;
|
|
1425
1475
|
let event = new $f6c31cce2adf654f$var$PressEvent("pressup", pointerType, originalEvent);
|
|
@@ -1431,8 +1481,8 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1431
1481
|
});
|
|
1432
1482
|
let cancel = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((e)=>{
|
|
1433
1483
|
let state = ref.current;
|
|
1434
|
-
if (state.isPressed) {
|
|
1435
|
-
if (state.isOverTarget) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
|
|
1484
|
+
if (state.isPressed && state.target) {
|
|
1485
|
+
if (state.isOverTarget && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
|
|
1436
1486
|
state.isPressed = false;
|
|
1437
1487
|
state.isOverTarget = false;
|
|
1438
1488
|
state.activePointerId = null;
|
|
@@ -1449,6 +1499,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1449
1499
|
let pressProps = {
|
|
1450
1500
|
onKeyDown (e) {
|
|
1451
1501
|
if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && e.currentTarget.contains(e.target)) {
|
|
1502
|
+
var _state_metaKeyEvents;
|
|
1452
1503
|
if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(e.target, e.key)) e.preventDefault();
|
|
1453
1504
|
// If the event is repeating, it may have started on a different element
|
|
1454
1505
|
// after which focus moved to the current element. Ignore these events and
|
|
@@ -1460,7 +1511,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1460
1511
|
shouldStopPropagation = triggerPressStart(e, "keyboard");
|
|
1461
1512
|
// Focus may move before the key up event, so register the event on the document
|
|
1462
1513
|
// instead of the same element where the key down event occurred.
|
|
1463
|
-
addGlobalListener(
|
|
1514
|
+
addGlobalListener(($431fbd86ca7dc216$export$b204af158042fbac)(e.currentTarget), "keyup", onKeyUp, false);
|
|
1464
1515
|
}
|
|
1465
1516
|
if (shouldStopPropagation) e.stopPropagation();
|
|
1466
1517
|
// Keep track of the keydown events that occur while the Meta (e.g. Command) key is held.
|
|
@@ -1470,11 +1521,11 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1470
1521
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1393524
|
|
1471
1522
|
// https://bugs.webkit.org/show_bug.cgi?id=55291
|
|
1472
1523
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1299553
|
|
1473
|
-
if (e.metaKey && ($c87311424ea30a05$export$9ac100e40613ea10)()) state.metaKeyEvents.set(e.key, e.nativeEvent);
|
|
1524
|
+
if (e.metaKey && ($c87311424ea30a05$export$9ac100e40613ea10)()) (_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === void 0 ? void 0 : _state_metaKeyEvents.set(e.key, e.nativeEvent);
|
|
1474
1525
|
} else if (e.key === "Meta") state.metaKeyEvents = new Map();
|
|
1475
1526
|
},
|
|
1476
1527
|
onKeyUp (e) {
|
|
1477
|
-
if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && !e.repeat && e.currentTarget.contains(e.target)) triggerPressUp($f6c31cce2adf654f$var$createEvent(state.target, e), "keyboard");
|
|
1528
|
+
if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && !e.repeat && e.currentTarget.contains(e.target) && state.target) triggerPressUp($f6c31cce2adf654f$var$createEvent(state.target, e), "keyboard");
|
|
1478
1529
|
},
|
|
1479
1530
|
onClick (e) {
|
|
1480
1531
|
if (e && !e.currentTarget.contains(e.target)) return;
|
|
@@ -1499,7 +1550,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1499
1550
|
};
|
|
1500
1551
|
let onKeyUp = (e)=>{
|
|
1501
1552
|
var _state_metaKeyEvents;
|
|
1502
|
-
if (state.isPressed && $f6c31cce2adf654f$var$isValidKeyboardEvent(e, state.target)) {
|
|
1553
|
+
if (state.isPressed && state.target && $f6c31cce2adf654f$var$isValidKeyboardEvent(e, state.target)) {
|
|
1503
1554
|
var _state_metaKeyEvents1;
|
|
1504
1555
|
if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(e.target, e.key)) e.preventDefault();
|
|
1505
1556
|
let target = e.target;
|
|
@@ -1518,12 +1569,13 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1518
1569
|
state.isPressed = false;
|
|
1519
1570
|
(_state_metaKeyEvents1 = state.metaKeyEvents) === null || _state_metaKeyEvents1 === void 0 ? void 0 : _state_metaKeyEvents1.delete(e.key);
|
|
1520
1571
|
} else if (e.key === "Meta" && ((_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === void 0 ? void 0 : _state_metaKeyEvents.size)) {
|
|
1572
|
+
var _state_target;
|
|
1521
1573
|
// If we recorded keydown events that occurred while the Meta key was pressed,
|
|
1522
1574
|
// and those haven't received keyup events already, fire keyup events ourselves.
|
|
1523
1575
|
// See comment above for more info about the macOS bug causing this.
|
|
1524
1576
|
let events = state.metaKeyEvents;
|
|
1525
|
-
state.metaKeyEvents =
|
|
1526
|
-
for (let event of events.values())state.target.dispatchEvent(new KeyboardEvent("keyup", event));
|
|
1577
|
+
state.metaKeyEvents = undefined;
|
|
1578
|
+
for (let event of events.values())(_state_target = state.target) === null || _state_target === void 0 ? void 0 : _state_target.dispatchEvent(new KeyboardEvent("keyup", event));
|
|
1527
1579
|
}
|
|
1528
1580
|
};
|
|
1529
1581
|
if (typeof PointerEvent !== "undefined") {
|
|
@@ -1551,9 +1603,9 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1551
1603
|
if (!isDisabled && !preventFocusOnPress) ($7215afc6de606d6b$export$de79e2c695e052f3)(e.currentTarget);
|
|
1552
1604
|
if (!allowTextSelectionOnPress) ($14c0b72509d70225$export$16a4697467175487)(state.target);
|
|
1553
1605
|
shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
1554
|
-
addGlobalListener(
|
|
1555
|
-
addGlobalListener(
|
|
1556
|
-
addGlobalListener(
|
|
1606
|
+
addGlobalListener(($431fbd86ca7dc216$export$b204af158042fbac)(e.currentTarget), "pointermove", onPointerMove, false);
|
|
1607
|
+
addGlobalListener(($431fbd86ca7dc216$export$b204af158042fbac)(e.currentTarget), "pointerup", onPointerUp, false);
|
|
1608
|
+
addGlobalListener(($431fbd86ca7dc216$export$b204af158042fbac)(e.currentTarget), "pointercancel", onPointerCancel, false);
|
|
1557
1609
|
}
|
|
1558
1610
|
if (shouldStopPropagation) e.stopPropagation();
|
|
1559
1611
|
};
|
|
@@ -1580,21 +1632,21 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1580
1632
|
// See https://bugs.webkit.org/show_bug.cgi?id=199803
|
|
1581
1633
|
let onPointerMove = (e)=>{
|
|
1582
1634
|
if (e.pointerId !== state.activePointerId) return;
|
|
1583
|
-
if ($f6c31cce2adf654f$var$isOverTarget(e, state.target)) {
|
|
1584
|
-
if (!state.isOverTarget) {
|
|
1635
|
+
if (state.target && $f6c31cce2adf654f$var$isOverTarget(e, state.target)) {
|
|
1636
|
+
if (!state.isOverTarget && state.pointerType != null) {
|
|
1585
1637
|
state.isOverTarget = true;
|
|
1586
1638
|
triggerPressStart($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);
|
|
1587
1639
|
}
|
|
1588
|
-
} else if (state.isOverTarget) {
|
|
1640
|
+
} else if (state.target && state.isOverTarget && state.pointerType != null) {
|
|
1589
1641
|
state.isOverTarget = false;
|
|
1590
1642
|
triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
|
|
1591
1643
|
cancelOnPointerExit(e);
|
|
1592
1644
|
}
|
|
1593
1645
|
};
|
|
1594
1646
|
let onPointerUp = (e)=>{
|
|
1595
|
-
if (e.pointerId === state.activePointerId && state.isPressed && e.button === 0) {
|
|
1596
|
-
if ($f6c31cce2adf654f$var$isOverTarget(e, state.target)) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);
|
|
1597
|
-
else if (state.isOverTarget) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
|
|
1647
|
+
if (e.pointerId === state.activePointerId && state.isPressed && e.button === 0 && state.target) {
|
|
1648
|
+
if ($f6c31cce2adf654f$var$isOverTarget(e, state.target) && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);
|
|
1649
|
+
else if (state.isOverTarget && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
|
|
1598
1650
|
state.isPressed = false;
|
|
1599
1651
|
state.isOverTarget = false;
|
|
1600
1652
|
state.activePointerId = null;
|
|
@@ -1629,12 +1681,12 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1629
1681
|
if (!isDisabled && !preventFocusOnPress) ($7215afc6de606d6b$export$de79e2c695e052f3)(e.currentTarget);
|
|
1630
1682
|
let shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
1631
1683
|
if (shouldStopPropagation) e.stopPropagation();
|
|
1632
|
-
addGlobalListener(
|
|
1684
|
+
addGlobalListener(($431fbd86ca7dc216$export$b204af158042fbac)(e.currentTarget), "mouseup", onMouseUp, false);
|
|
1633
1685
|
};
|
|
1634
1686
|
pressProps.onMouseEnter = (e)=>{
|
|
1635
1687
|
if (!e.currentTarget.contains(e.target)) return;
|
|
1636
1688
|
let shouldStopPropagation = true;
|
|
1637
|
-
if (state.isPressed && !state.ignoreEmulatedMouseEvents) {
|
|
1689
|
+
if (state.isPressed && !state.ignoreEmulatedMouseEvents && state.pointerType != null) {
|
|
1638
1690
|
state.isOverTarget = true;
|
|
1639
1691
|
shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
1640
1692
|
}
|
|
@@ -1643,7 +1695,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1643
1695
|
pressProps.onMouseLeave = (e)=>{
|
|
1644
1696
|
if (!e.currentTarget.contains(e.target)) return;
|
|
1645
1697
|
let shouldStopPropagation = true;
|
|
1646
|
-
if (state.isPressed && !state.ignoreEmulatedMouseEvents) {
|
|
1698
|
+
if (state.isPressed && !state.ignoreEmulatedMouseEvents && state.pointerType != null) {
|
|
1647
1699
|
state.isOverTarget = false;
|
|
1648
1700
|
shouldStopPropagation = triggerPressEnd(e, state.pointerType, false);
|
|
1649
1701
|
cancelOnPointerExit(e);
|
|
@@ -1663,8 +1715,8 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1663
1715
|
state.ignoreEmulatedMouseEvents = false;
|
|
1664
1716
|
return;
|
|
1665
1717
|
}
|
|
1666
|
-
if ($f6c31cce2adf654f$var$isOverTarget(e, state.target)) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);
|
|
1667
|
-
else if (state.isOverTarget) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
|
|
1718
|
+
if (state.target && $f6c31cce2adf654f$var$isOverTarget(e, state.target) && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);
|
|
1719
|
+
else if (state.target && state.isOverTarget && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
|
|
1668
1720
|
state.isOverTarget = false;
|
|
1669
1721
|
};
|
|
1670
1722
|
pressProps.onTouchStart = (e)=>{
|
|
@@ -1683,7 +1735,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1683
1735
|
if (!allowTextSelectionOnPress) ($14c0b72509d70225$export$16a4697467175487)(state.target);
|
|
1684
1736
|
let shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
1685
1737
|
if (shouldStopPropagation) e.stopPropagation();
|
|
1686
|
-
addGlobalListener(
|
|
1738
|
+
addGlobalListener(($431fbd86ca7dc216$export$f21a1ffae260145a)(e.currentTarget), "scroll", onScroll, true);
|
|
1687
1739
|
};
|
|
1688
1740
|
pressProps.onTouchMove = (e)=>{
|
|
1689
1741
|
if (!e.currentTarget.contains(e.target)) return;
|
|
@@ -1694,11 +1746,11 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1694
1746
|
let touch = $f6c31cce2adf654f$var$getTouchById(e.nativeEvent, state.activePointerId);
|
|
1695
1747
|
let shouldStopPropagation = true;
|
|
1696
1748
|
if (touch && $f6c31cce2adf654f$var$isOverTarget(touch, e.currentTarget)) {
|
|
1697
|
-
if (!state.isOverTarget) {
|
|
1749
|
+
if (!state.isOverTarget && state.pointerType != null) {
|
|
1698
1750
|
state.isOverTarget = true;
|
|
1699
1751
|
shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
1700
1752
|
}
|
|
1701
|
-
} else if (state.isOverTarget) {
|
|
1753
|
+
} else if (state.isOverTarget && state.pointerType != null) {
|
|
1702
1754
|
state.isOverTarget = false;
|
|
1703
1755
|
shouldStopPropagation = triggerPressEnd(e, state.pointerType, false);
|
|
1704
1756
|
cancelOnPointerExit(e);
|
|
@@ -1713,16 +1765,16 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1713
1765
|
}
|
|
1714
1766
|
let touch = $f6c31cce2adf654f$var$getTouchById(e.nativeEvent, state.activePointerId);
|
|
1715
1767
|
let shouldStopPropagation = true;
|
|
1716
|
-
if (touch && $f6c31cce2adf654f$var$isOverTarget(touch, e.currentTarget)) {
|
|
1768
|
+
if (touch && $f6c31cce2adf654f$var$isOverTarget(touch, e.currentTarget) && state.pointerType != null) {
|
|
1717
1769
|
triggerPressUp(e, state.pointerType);
|
|
1718
1770
|
shouldStopPropagation = triggerPressEnd(e, state.pointerType);
|
|
1719
|
-
} else if (state.isOverTarget) shouldStopPropagation = triggerPressEnd(e, state.pointerType, false);
|
|
1771
|
+
} else if (state.isOverTarget && state.pointerType != null) shouldStopPropagation = triggerPressEnd(e, state.pointerType, false);
|
|
1720
1772
|
if (shouldStopPropagation) e.stopPropagation();
|
|
1721
1773
|
state.isPressed = false;
|
|
1722
1774
|
state.activePointerId = null;
|
|
1723
1775
|
state.isOverTarget = false;
|
|
1724
1776
|
state.ignoreEmulatedMouseEvents = true;
|
|
1725
|
-
if (!allowTextSelectionOnPress) ($14c0b72509d70225$export$b0d6fa1ab32e3295)(state.target);
|
|
1777
|
+
if (state.target && !allowTextSelectionOnPress) ($14c0b72509d70225$export$b0d6fa1ab32e3295)(state.target);
|
|
1726
1778
|
removeAllGlobalListeners();
|
|
1727
1779
|
};
|
|
1728
1780
|
pressProps.onTouchCancel = (e)=>{
|
|
@@ -1761,8 +1813,9 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
1761
1813
|
// eslint-disable-next-line arrow-body-style
|
|
1762
1814
|
($dGqE5$react.useEffect)(()=>{
|
|
1763
1815
|
return ()=>{
|
|
1816
|
+
var _ref_current_target;
|
|
1764
1817
|
if (!allowTextSelectionOnPress) // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1765
|
-
($14c0b72509d70225$export$b0d6fa1ab32e3295)(ref.current.target);
|
|
1818
|
+
($14c0b72509d70225$export$b0d6fa1ab32e3295)((_ref_current_target = ref.current.target) !== null && _ref_current_target !== void 0 ? _ref_current_target : undefined);
|
|
1766
1819
|
};
|
|
1767
1820
|
}, [
|
|
1768
1821
|
allowTextSelectionOnPress
|
|
@@ -1781,7 +1834,7 @@ function $f6c31cce2adf654f$var$isValidKeyboardEvent(event, currentTarget) {
|
|
|
1781
1834
|
const role = element.getAttribute("role");
|
|
1782
1835
|
// Accessibility for keyboards. Space and Enter only.
|
|
1783
1836
|
// "Spacebar" is for IE 11
|
|
1784
|
-
return (key === "Enter" || key === " " || key === "Spacebar" || code === "Space") && !(element instanceof HTMLInputElement && !$f6c31cce2adf654f$var$isValidInputKey(element, key) || element instanceof HTMLTextAreaElement || element.isContentEditable) && // Links should only trigger with Enter key
|
|
1837
|
+
return (key === "Enter" || key === " " || key === "Spacebar" || code === "Space") && !(element instanceof ($431fbd86ca7dc216$export$f21a1ffae260145a)(element).HTMLInputElement && !$f6c31cce2adf654f$var$isValidInputKey(element, key) || element instanceof ($431fbd86ca7dc216$export$f21a1ffae260145a)(element).HTMLTextAreaElement || element.isContentEditable) && // Links should only trigger with Enter key
|
|
1785
1838
|
!((role === "link" || !role && $f6c31cce2adf654f$var$isHTMLAnchorLink(element)) && key !== "Enter");
|
|
1786
1839
|
}
|
|
1787
1840
|
function $f6c31cce2adf654f$var$getTouchFromEvent(event) {
|
|
@@ -1807,8 +1860,12 @@ function $f6c31cce2adf654f$var$createEvent(target, e) {
|
|
|
1807
1860
|
};
|
|
1808
1861
|
}
|
|
1809
1862
|
function $f6c31cce2adf654f$var$getPointClientRect(point) {
|
|
1810
|
-
let offsetX =
|
|
1811
|
-
let offsetY =
|
|
1863
|
+
let offsetX = 0;
|
|
1864
|
+
let offsetY = 0;
|
|
1865
|
+
if (point.width !== undefined) offsetX = point.width / 2;
|
|
1866
|
+
else if (point.radiusX !== undefined) offsetX = point.radiusX;
|
|
1867
|
+
if (point.height !== undefined) offsetY = point.height / 2;
|
|
1868
|
+
else if (point.radiusY !== undefined) offsetY = point.radiusY;
|
|
1812
1869
|
return {
|
|
1813
1870
|
top: point.clientY - offsetY,
|
|
1814
1871
|
right: point.clientX + offsetX,
|
|
@@ -1955,7 +2012,8 @@ function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
|
|
|
1955
2012
|
});
|
|
1956
2013
|
stateRef.current.observer = new MutationObserver(()=>{
|
|
1957
2014
|
if (stateRef.current.isFocused && target.disabled) {
|
|
1958
|
-
|
|
2015
|
+
var _stateRef_current_observer;
|
|
2016
|
+
(_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 ? void 0 : _stateRef_current_observer.disconnect();
|
|
1959
2017
|
let relatedTargetEl = target === document.activeElement ? null : document.activeElement;
|
|
1960
2018
|
target.dispatchEvent(new FocusEvent("blur", {
|
|
1961
2019
|
relatedTarget: relatedTargetEl
|
|
@@ -2131,6 +2189,10 @@ function $507fabe10e71c6fb$export$b9b3dfddab17db27() {
|
|
|
2131
2189
|
function $507fabe10e71c6fb$export$630ff653c5ada6a9() {
|
|
2132
2190
|
return $507fabe10e71c6fb$var$currentModality;
|
|
2133
2191
|
}
|
|
2192
|
+
function $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {
|
|
2193
|
+
$507fabe10e71c6fb$var$currentModality = modality;
|
|
2194
|
+
$507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);
|
|
2195
|
+
}
|
|
2134
2196
|
function $507fabe10e71c6fb$export$98e20ec92f614cfe() {
|
|
2135
2197
|
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
2136
2198
|
let [modality, setModality] = ($dGqE5$react.useState)($507fabe10e71c6fb$var$currentModality);
|
|
@@ -2145,17 +2207,30 @@ function $507fabe10e71c6fb$export$98e20ec92f614cfe() {
|
|
|
2145
2207
|
}, []);
|
|
2146
2208
|
return ($b5e257d569688ac6$export$535bd6ca7f90a273)() ? null : modality;
|
|
2147
2209
|
}
|
|
2210
|
+
const $507fabe10e71c6fb$var$nonTextInputTypes = new Set([
|
|
2211
|
+
"checkbox",
|
|
2212
|
+
"radio",
|
|
2213
|
+
"range",
|
|
2214
|
+
"color",
|
|
2215
|
+
"file",
|
|
2216
|
+
"image",
|
|
2217
|
+
"button",
|
|
2218
|
+
"submit",
|
|
2219
|
+
"reset"
|
|
2220
|
+
]);
|
|
2148
2221
|
/**
|
|
2149
2222
|
* If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that
|
|
2150
2223
|
* focus visible style can be properly set.
|
|
2151
2224
|
*/ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
|
|
2225
|
+
var _e_target;
|
|
2226
|
+
isTextInput = isTextInput || (e === null || e === void 0 ? void 0 : e.target) instanceof HTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(e === null || e === void 0 ? void 0 : (_e_target = e.target) === null || _e_target === void 0 ? void 0 : _e_target.type) || (e === null || e === void 0 ? void 0 : e.target) instanceof HTMLTextAreaElement || (e === null || e === void 0 ? void 0 : e.target) instanceof HTMLElement && (e === null || e === void 0 ? void 0 : e.target.isContentEditable);
|
|
2152
2227
|
return !(isTextInput && modality === "keyboard" && e instanceof KeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
|
|
2153
2228
|
}
|
|
2154
2229
|
function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
|
|
2155
2230
|
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
2156
2231
|
($dGqE5$react.useEffect)(()=>{
|
|
2157
2232
|
let handler = (modality, e)=>{
|
|
2158
|
-
if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(opts === null || opts === void 0 ? void 0 : opts.isTextInput, modality, e)) return;
|
|
2233
|
+
if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;
|
|
2159
2234
|
fn($507fabe10e71c6fb$export$b9b3dfddab17db27());
|
|
2160
2235
|
};
|
|
2161
2236
|
$507fabe10e71c6fb$var$changeHandlers.add(handler);
|
|
@@ -2219,8 +2294,9 @@ function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
|
|
|
2219
2294
|
]);
|
|
2220
2295
|
if (isDisabled) return {
|
|
2221
2296
|
focusWithinProps: {
|
|
2222
|
-
|
|
2223
|
-
|
|
2297
|
+
// These should not have been null, that would conflict in mergeProps
|
|
2298
|
+
onFocus: undefined,
|
|
2299
|
+
onBlur: undefined
|
|
2224
2300
|
}
|
|
2225
2301
|
};
|
|
2226
2302
|
return {
|
|
@@ -2386,7 +2462,7 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
2386
2462
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
2387
2463
|
* governing permissions and limitations under the License.
|
|
2388
2464
|
*/ function $93925083ecbb358c$export$48d1ea6320830260(handler) {
|
|
2389
|
-
if (!handler) return;
|
|
2465
|
+
if (!handler) return undefined;
|
|
2390
2466
|
let shouldStopPropagation = true;
|
|
2391
2467
|
return (e)=>{
|
|
2392
2468
|
let event = {
|
|
@@ -2436,7 +2512,7 @@ function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
|
|
|
2436
2512
|
const $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;
|
|
2437
2513
|
function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
2438
2514
|
let { isDisabled: isDisabled, onLongPressStart: onLongPressStart, onLongPressEnd: onLongPressEnd, onLongPress: onLongPress, threshold: threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription: accessibilityDescription } = props;
|
|
2439
|
-
const timeRef = ($dGqE5$react.useRef)(
|
|
2515
|
+
const timeRef = ($dGqE5$react.useRef)();
|
|
2440
2516
|
let { addGlobalListener: addGlobalListener, removeGlobalListener: removeGlobalListener } = ($03deb23ff14920c4$export$4eaf04e54aa8eed6)();
|
|
2441
2517
|
let { pressProps: pressProps } = ($f6c31cce2adf654f$export$45712eceda6fad21)({
|
|
2442
2518
|
isDisabled: isDisabled,
|
|
@@ -2456,7 +2532,7 @@ function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
|
2456
2532
|
...e,
|
|
2457
2533
|
type: "longpress"
|
|
2458
2534
|
});
|
|
2459
|
-
timeRef.current =
|
|
2535
|
+
timeRef.current = undefined;
|
|
2460
2536
|
}, threshold);
|
|
2461
2537
|
// Prevent context menu, which may be opened on long press on touch devices
|
|
2462
2538
|
if (e.pointerType === "touch") {
|
|
@@ -2486,7 +2562,7 @@ function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
|
2486
2562
|
});
|
|
2487
2563
|
}
|
|
2488
2564
|
});
|
|
2489
|
-
let descriptionProps = ($ef06256079686ba0$export$f8aeda7b10753fa1)(onLongPress && !isDisabled ? accessibilityDescription :
|
|
2565
|
+
let descriptionProps = ($ef06256079686ba0$export$f8aeda7b10753fa1)(onLongPress && !isDisabled ? accessibilityDescription : undefined);
|
|
2490
2566
|
return {
|
|
2491
2567
|
longPressProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(pressProps, descriptionProps)
|
|
2492
2568
|
};
|
|
@@ -2586,6 +2662,8 @@ const $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR = $9bf71ea28793e738$var$f
|
|
|
2586
2662
|
$9bf71ea28793e738$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
2587
2663
|
const $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR = $9bf71ea28793e738$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
|
|
2588
2664
|
function $9bf71ea28793e738$var$isElementInScope(element, scope) {
|
|
2665
|
+
if (!element) return false;
|
|
2666
|
+
if (!scope) return false;
|
|
2589
2667
|
return scope.some((node)=>node.contains(element));
|
|
2590
2668
|
}
|
|
2591
2669
|
function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {
|
|
@@ -2611,6 +2689,7 @@ class $9bf71ea28793e738$var$Tree {
|
|
|
2611
2689
|
}
|
|
2612
2690
|
addTreeNode(scopeRef, parent, nodeToRestore) {
|
|
2613
2691
|
let parentNode = this.fastMap.get(parent !== null && parent !== void 0 ? parent : null);
|
|
2692
|
+
if (!parentNode) return;
|
|
2614
2693
|
let node = new $9bf71ea28793e738$var$TreeNode({
|
|
2615
2694
|
scopeRef: scopeRef
|
|
2616
2695
|
});
|
|
@@ -2626,13 +2705,16 @@ class $9bf71ea28793e738$var$Tree {
|
|
|
2626
2705
|
// never remove the root
|
|
2627
2706
|
if (scopeRef === null) return;
|
|
2628
2707
|
let node = this.fastMap.get(scopeRef);
|
|
2708
|
+
if (!node) return;
|
|
2629
2709
|
let parentNode = node.parent;
|
|
2630
2710
|
// when we remove a scope, check if any sibling scopes are trying to restore focus to something inside the scope we're removing
|
|
2631
2711
|
// if we are, then replace the siblings restore with the restore from the scope we're removing
|
|
2632
|
-
for (let current of this.traverse())if (current !== node && node.nodeToRestore && current.nodeToRestore && node.scopeRef.current && $9bf71ea28793e738$var$isElementInScope(current.nodeToRestore, node.scopeRef.current)) current.nodeToRestore = node.nodeToRestore;
|
|
2712
|
+
for (let current of this.traverse())if (current !== node && node.nodeToRestore && current.nodeToRestore && node.scopeRef && node.scopeRef.current && $9bf71ea28793e738$var$isElementInScope(current.nodeToRestore, node.scopeRef.current)) current.nodeToRestore = node.nodeToRestore;
|
|
2633
2713
|
let children = node.children;
|
|
2634
|
-
parentNode
|
|
2635
|
-
|
|
2714
|
+
if (parentNode) {
|
|
2715
|
+
parentNode.removeChild(node);
|
|
2716
|
+
if (children.size > 0) children.forEach((child)=>parentNode && parentNode.addChild(child));
|
|
2717
|
+
}
|
|
2636
2718
|
this.fastMap.delete(node.scopeRef);
|
|
2637
2719
|
}
|
|
2638
2720
|
// Pre Order Depth First
|
|
@@ -2641,8 +2723,10 @@ class $9bf71ea28793e738$var$Tree {
|
|
|
2641
2723
|
if (node.children.size > 0) for (let child of node.children)yield* this.traverse(child);
|
|
2642
2724
|
}
|
|
2643
2725
|
clone() {
|
|
2726
|
+
var _node_parent;
|
|
2644
2727
|
let newTree = new $9bf71ea28793e738$var$Tree();
|
|
2645
|
-
|
|
2728
|
+
var _node_parent_scopeRef;
|
|
2729
|
+
for (let node of this.traverse())newTree.addTreeNode(node.scopeRef, (_node_parent_scopeRef = (_node_parent = node.parent) === null || _node_parent === void 0 ? void 0 : _node_parent.scopeRef) !== null && _node_parent_scopeRef !== void 0 ? _node_parent_scopeRef : null, node.nodeToRestore);
|
|
2646
2730
|
return newTree;
|
|
2647
2731
|
}
|
|
2648
2732
|
constructor(){
|
|
@@ -3004,6 +3088,7 @@ function $148a7a147e38ea7f$export$702d680b21cbd764(locale) {
|
|
|
3004
3088
|
if (Intl.Locale) {
|
|
3005
3089
|
// @ts-ignore
|
|
3006
3090
|
let script = new Intl.Locale(locale).maximize().script;
|
|
3091
|
+
if (!script) return false;
|
|
3007
3092
|
return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(script);
|
|
3008
3093
|
}
|
|
3009
3094
|
// If not, just guess by the language (first part of the locale)
|
|
@@ -3156,7 +3241,7 @@ function $325a3faab7a68acd$export$a16aca283550c30d(options) {
|
|
|
3156
3241
|
|
|
3157
3242
|
|
|
3158
3243
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
3159
|
-
let { elementType: elementType = "button", isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressChange: onPressChange, preventFocusOnPress: // @ts-ignore - undocumented
|
|
3244
|
+
let { elementType: elementType = "button", isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: // @ts-ignore - undocumented
|
|
3160
3245
|
preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented
|
|
3161
3246
|
allowFocusWhenDisabled, // @ts-ignore
|
|
3162
3247
|
onClick: deprecatedOnClick, href: href, target: target, rel: rel, type: type = "button" } = props;
|
|
@@ -3180,6 +3265,7 @@ function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
|
3180
3265
|
onPressEnd: onPressEnd,
|
|
3181
3266
|
onPressChange: onPressChange,
|
|
3182
3267
|
onPress: onPress,
|
|
3268
|
+
onPressUp: onPressUp,
|
|
3183
3269
|
isDisabled: isDisabled,
|
|
3184
3270
|
preventFocusOnPress: preventFocusOnPress,
|
|
3185
3271
|
ref: ref
|
|
@@ -3290,6 +3376,291 @@ class $319e236875307eab$var$LiveAnnouncer {
|
|
|
3290
3376
|
}
|
|
3291
3377
|
}
|
|
3292
3378
|
|
|
3379
|
+
/*
|
|
3380
|
+
* Copyright 2023 Adobe. All rights reserved.
|
|
3381
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
3382
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
3383
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
3384
|
+
*
|
|
3385
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
3386
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
3387
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
3388
|
+
* governing permissions and limitations under the License.
|
|
3389
|
+
*/ /*
|
|
3390
|
+
* Copyright 2023 Adobe. All rights reserved.
|
|
3391
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
3392
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
3393
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
3394
|
+
*
|
|
3395
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
3396
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
3397
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
3398
|
+
* governing permissions and limitations under the License.
|
|
3399
|
+
*/
|
|
3400
|
+
|
|
3401
|
+
|
|
3402
|
+
function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
|
|
3403
|
+
let { validationBehavior: validationBehavior, focus: focus } = props;
|
|
3404
|
+
// This is a useLayoutEffect so that it runs before the useEffect in useFormValidationState, which commits the validation change.
|
|
3405
|
+
($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
|
|
3406
|
+
if (validationBehavior === "native" && (ref === null || ref === void 0 ? void 0 : ref.current)) {
|
|
3407
|
+
let errorMessage = state.realtimeValidation.isInvalid ? state.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
|
|
3408
|
+
ref.current.setCustomValidity(errorMessage);
|
|
3409
|
+
// Prevent default tooltip for validation message.
|
|
3410
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=605277
|
|
3411
|
+
if (!ref.current.hasAttribute("title")) ref.current.title = "";
|
|
3412
|
+
if (!state.realtimeValidation.isInvalid) state.updateValidation($e93e671b31057976$var$getNativeValidity(ref.current));
|
|
3413
|
+
}
|
|
3414
|
+
});
|
|
3415
|
+
let onReset = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{
|
|
3416
|
+
state.resetValidation();
|
|
3417
|
+
});
|
|
3418
|
+
let onInvalid = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((e)=>{
|
|
3419
|
+
var _ref_current;
|
|
3420
|
+
// Only commit validation if we are not already displaying one.
|
|
3421
|
+
// This avoids clearing server errors that the user didn't actually fix.
|
|
3422
|
+
if (!state.displayValidation.isInvalid) state.commitValidation();
|
|
3423
|
+
// Auto focus the first invalid input in a form, unless the error already had its default prevented.
|
|
3424
|
+
let form = ref === null || ref === void 0 ? void 0 : (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.form;
|
|
3425
|
+
if (!e.defaultPrevented && ref && form && $e93e671b31057976$var$getFirstInvalidInput(form) === ref.current) {
|
|
3426
|
+
var _ref_current1;
|
|
3427
|
+
if (focus) focus();
|
|
3428
|
+
else (_ref_current1 = ref.current) === null || _ref_current1 === void 0 ? void 0 : _ref_current1.focus();
|
|
3429
|
+
// Always show focus ring.
|
|
3430
|
+
($507fabe10e71c6fb$export$8397ddfc504fdb9a)("keyboard");
|
|
3431
|
+
}
|
|
3432
|
+
// Prevent default browser error UI from appearing.
|
|
3433
|
+
e.preventDefault();
|
|
3434
|
+
});
|
|
3435
|
+
let onChange = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{
|
|
3436
|
+
state.commitValidation();
|
|
3437
|
+
});
|
|
3438
|
+
($dGqE5$react.useEffect)(()=>{
|
|
3439
|
+
let input = ref === null || ref === void 0 ? void 0 : ref.current;
|
|
3440
|
+
if (!input) return;
|
|
3441
|
+
let form = input.form;
|
|
3442
|
+
input.addEventListener("invalid", onInvalid);
|
|
3443
|
+
input.addEventListener("change", onChange);
|
|
3444
|
+
form === null || form === void 0 ? void 0 : form.addEventListener("reset", onReset);
|
|
3445
|
+
return ()=>{
|
|
3446
|
+
input.removeEventListener("invalid", onInvalid);
|
|
3447
|
+
input.removeEventListener("change", onChange);
|
|
3448
|
+
form === null || form === void 0 ? void 0 : form.removeEventListener("reset", onReset);
|
|
3449
|
+
};
|
|
3450
|
+
}, [
|
|
3451
|
+
ref,
|
|
3452
|
+
onInvalid,
|
|
3453
|
+
onChange,
|
|
3454
|
+
onReset,
|
|
3455
|
+
validationBehavior
|
|
3456
|
+
]);
|
|
3457
|
+
}
|
|
3458
|
+
function $e93e671b31057976$var$getValidity(input) {
|
|
3459
|
+
// The native ValidityState object is live, meaning each property is a getter that returns the current state.
|
|
3460
|
+
// We need to create a snapshot of the validity state at the time this function is called to avoid unpredictable React renders.
|
|
3461
|
+
let validity = input.validity;
|
|
3462
|
+
return {
|
|
3463
|
+
badInput: validity.badInput,
|
|
3464
|
+
customError: validity.customError,
|
|
3465
|
+
patternMismatch: validity.patternMismatch,
|
|
3466
|
+
rangeOverflow: validity.rangeOverflow,
|
|
3467
|
+
rangeUnderflow: validity.rangeUnderflow,
|
|
3468
|
+
stepMismatch: validity.stepMismatch,
|
|
3469
|
+
tooLong: validity.tooLong,
|
|
3470
|
+
tooShort: validity.tooShort,
|
|
3471
|
+
typeMismatch: validity.typeMismatch,
|
|
3472
|
+
valueMissing: validity.valueMissing,
|
|
3473
|
+
valid: validity.valid
|
|
3474
|
+
};
|
|
3475
|
+
}
|
|
3476
|
+
function $e93e671b31057976$var$getNativeValidity(input) {
|
|
3477
|
+
return {
|
|
3478
|
+
isInvalid: !input.validity.valid,
|
|
3479
|
+
validationDetails: $e93e671b31057976$var$getValidity(input),
|
|
3480
|
+
validationErrors: input.validationMessage ? [
|
|
3481
|
+
input.validationMessage
|
|
3482
|
+
] : []
|
|
3483
|
+
};
|
|
3484
|
+
}
|
|
3485
|
+
function $e93e671b31057976$var$getFirstInvalidInput(form) {
|
|
3486
|
+
for(let i = 0; i < form.elements.length; i++){
|
|
3487
|
+
let element = form.elements[i];
|
|
3488
|
+
if (!element.validity.valid) return element;
|
|
3489
|
+
}
|
|
3490
|
+
return null;
|
|
3491
|
+
}
|
|
3492
|
+
|
|
3493
|
+
/*
|
|
3494
|
+
* Copyright 2023 Adobe. All rights reserved.
|
|
3495
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
3496
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
3497
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
3498
|
+
*
|
|
3499
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
3500
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
3501
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
3502
|
+
* governing permissions and limitations under the License.
|
|
3503
|
+
*/ /*
|
|
3504
|
+
* Copyright 2023 Adobe. All rights reserved.
|
|
3505
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
3506
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
3507
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
3508
|
+
*
|
|
3509
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
3510
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
3511
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
3512
|
+
* governing permissions and limitations under the License.
|
|
3513
|
+
*/
|
|
3514
|
+
const $e5be200c675c3b3a$export$aca958c65c314e6c = {
|
|
3515
|
+
badInput: false,
|
|
3516
|
+
customError: false,
|
|
3517
|
+
patternMismatch: false,
|
|
3518
|
+
rangeOverflow: false,
|
|
3519
|
+
rangeUnderflow: false,
|
|
3520
|
+
stepMismatch: false,
|
|
3521
|
+
tooLong: false,
|
|
3522
|
+
tooShort: false,
|
|
3523
|
+
typeMismatch: false,
|
|
3524
|
+
valueMissing: false,
|
|
3525
|
+
valid: true
|
|
3526
|
+
};
|
|
3527
|
+
const $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE = {
|
|
3528
|
+
...$e5be200c675c3b3a$export$aca958c65c314e6c,
|
|
3529
|
+
customError: true,
|
|
3530
|
+
valid: false
|
|
3531
|
+
};
|
|
3532
|
+
const $e5be200c675c3b3a$export$dad6ae84456c676a = {
|
|
3533
|
+
isInvalid: false,
|
|
3534
|
+
validationDetails: $e5be200c675c3b3a$export$aca958c65c314e6c,
|
|
3535
|
+
validationErrors: []
|
|
3536
|
+
};
|
|
3537
|
+
const $e5be200c675c3b3a$export$571b5131b7e65c11 = ($dGqE5$react.createContext)({});
|
|
3538
|
+
const $e5be200c675c3b3a$export$a763b9476acd3eb = "__formValidationState" + Date.now();
|
|
3539
|
+
function $e5be200c675c3b3a$export$fc1a364ae1f3ff10(props) {
|
|
3540
|
+
// Private prop for parent components to pass state to children.
|
|
3541
|
+
if (props[$e5be200c675c3b3a$export$a763b9476acd3eb]) {
|
|
3542
|
+
let { realtimeValidation: realtimeValidation, displayValidation: displayValidation, updateValidation: updateValidation, resetValidation: resetValidation, commitValidation: commitValidation } = props[$e5be200c675c3b3a$export$a763b9476acd3eb];
|
|
3543
|
+
return {
|
|
3544
|
+
realtimeValidation: realtimeValidation,
|
|
3545
|
+
displayValidation: displayValidation,
|
|
3546
|
+
updateValidation: updateValidation,
|
|
3547
|
+
resetValidation: resetValidation,
|
|
3548
|
+
commitValidation: commitValidation
|
|
3549
|
+
};
|
|
3550
|
+
}
|
|
3551
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
3552
|
+
return $e5be200c675c3b3a$var$useFormValidationStateImpl(props);
|
|
3553
|
+
}
|
|
3554
|
+
function $e5be200c675c3b3a$var$useFormValidationStateImpl(props) {
|
|
3555
|
+
let { isInvalid: isInvalid, validationState: validationState, name: name, value: value, builtinValidation: builtinValidation, validate: validate, validationBehavior: validationBehavior = "aria" } = props;
|
|
3556
|
+
// backward compatibility.
|
|
3557
|
+
if (validationState) isInvalid || (isInvalid = validationState === "invalid");
|
|
3558
|
+
// If the isInvalid prop is true, update validation result in realtime (controlled).
|
|
3559
|
+
let controlledError = isInvalid ? {
|
|
3560
|
+
isInvalid: true,
|
|
3561
|
+
validationErrors: [],
|
|
3562
|
+
validationDetails: $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE
|
|
3563
|
+
} : null;
|
|
3564
|
+
// Perform custom client side validation.
|
|
3565
|
+
let clientError = ($dGqE5$react.useMemo)(()=>$e5be200c675c3b3a$var$getValidationResult($e5be200c675c3b3a$var$runValidate(validate, value)), [
|
|
3566
|
+
validate,
|
|
3567
|
+
value
|
|
3568
|
+
]);
|
|
3569
|
+
if (builtinValidation === null || builtinValidation === void 0 ? void 0 : builtinValidation.validationDetails.valid) builtinValidation = null;
|
|
3570
|
+
// Get relevant server errors from the form.
|
|
3571
|
+
let serverErrors = ($dGqE5$react.useContext)($e5be200c675c3b3a$export$571b5131b7e65c11);
|
|
3572
|
+
let serverErrorMessages = ($dGqE5$react.useMemo)(()=>{
|
|
3573
|
+
if (name) return Array.isArray(name) ? name.flatMap((name)=>$e5be200c675c3b3a$var$asArray(serverErrors[name])) : $e5be200c675c3b3a$var$asArray(serverErrors[name]);
|
|
3574
|
+
return [];
|
|
3575
|
+
}, [
|
|
3576
|
+
serverErrors,
|
|
3577
|
+
name
|
|
3578
|
+
]);
|
|
3579
|
+
// Show server errors when the form gets a new value, and clear when the user changes the value.
|
|
3580
|
+
let [lastServerErrors, setLastServerErrors] = ($dGqE5$react.useState)(serverErrors);
|
|
3581
|
+
let [isServerErrorCleared, setServerErrorCleared] = ($dGqE5$react.useState)(false);
|
|
3582
|
+
if (serverErrors !== lastServerErrors) {
|
|
3583
|
+
setLastServerErrors(serverErrors);
|
|
3584
|
+
setServerErrorCleared(false);
|
|
3585
|
+
}
|
|
3586
|
+
let serverError = ($dGqE5$react.useMemo)(()=>$e5be200c675c3b3a$var$getValidationResult(isServerErrorCleared ? [] : serverErrorMessages), [
|
|
3587
|
+
isServerErrorCleared,
|
|
3588
|
+
serverErrorMessages
|
|
3589
|
+
]);
|
|
3590
|
+
// Track the next validation state in a ref until commitValidation is called.
|
|
3591
|
+
let nextValidation = ($dGqE5$react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);
|
|
3592
|
+
let [currentValidity, setCurrentValidity] = ($dGqE5$react.useState)($e5be200c675c3b3a$export$dad6ae84456c676a);
|
|
3593
|
+
let lastError = ($dGqE5$react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);
|
|
3594
|
+
let commitValidation = ()=>{
|
|
3595
|
+
if (!commitQueued) return;
|
|
3596
|
+
setCommitQueued(false);
|
|
3597
|
+
let error = clientError || builtinValidation || nextValidation.current;
|
|
3598
|
+
if (!$e5be200c675c3b3a$var$isEqualValidation(error, lastError.current)) {
|
|
3599
|
+
lastError.current = error;
|
|
3600
|
+
setCurrentValidity(error);
|
|
3601
|
+
}
|
|
3602
|
+
};
|
|
3603
|
+
let [commitQueued, setCommitQueued] = ($dGqE5$react.useState)(false);
|
|
3604
|
+
($dGqE5$react.useEffect)(commitValidation);
|
|
3605
|
+
// realtimeValidation is used to update the native input element's state based on custom validation logic.
|
|
3606
|
+
// displayValidation is the currently displayed validation state that the user sees (e.g. on input change/form submit).
|
|
3607
|
+
// With validationBehavior="aria", all errors are displayed in realtime rather than on submit.
|
|
3608
|
+
let realtimeValidation = controlledError || serverError || clientError || builtinValidation || $e5be200c675c3b3a$export$dad6ae84456c676a;
|
|
3609
|
+
let displayValidation = validationBehavior === "native" ? controlledError || serverError || currentValidity : controlledError || serverError || clientError || builtinValidation || currentValidity;
|
|
3610
|
+
return {
|
|
3611
|
+
realtimeValidation: realtimeValidation,
|
|
3612
|
+
displayValidation: displayValidation,
|
|
3613
|
+
updateValidation (value) {
|
|
3614
|
+
// If validationBehavior is 'aria', update in realtime. Otherwise, store in a ref until commit.
|
|
3615
|
+
if (validationBehavior === "aria" && !$e5be200c675c3b3a$var$isEqualValidation(currentValidity, value)) setCurrentValidity(value);
|
|
3616
|
+
else nextValidation.current = value;
|
|
3617
|
+
},
|
|
3618
|
+
resetValidation () {
|
|
3619
|
+
// Update the currently displayed validation state to valid on form reset,
|
|
3620
|
+
// even if the native validity says it isn't. It'll show again on the next form submit.
|
|
3621
|
+
let error = $e5be200c675c3b3a$export$dad6ae84456c676a;
|
|
3622
|
+
if (!$e5be200c675c3b3a$var$isEqualValidation(error, lastError.current)) {
|
|
3623
|
+
lastError.current = error;
|
|
3624
|
+
setCurrentValidity(error);
|
|
3625
|
+
}
|
|
3626
|
+
// Do not commit validation after the next render. This avoids a condition where
|
|
3627
|
+
// useSelect calls commitValidation inside an onReset handler.
|
|
3628
|
+
if (validationBehavior === "native") setCommitQueued(false);
|
|
3629
|
+
setServerErrorCleared(true);
|
|
3630
|
+
},
|
|
3631
|
+
commitValidation () {
|
|
3632
|
+
// Commit validation state so the user sees it on blur/change/submit. Also clear any server errors.
|
|
3633
|
+
// Wait until after the next render to commit so that the latest value has been validated.
|
|
3634
|
+
if (validationBehavior === "native") setCommitQueued(true);
|
|
3635
|
+
setServerErrorCleared(true);
|
|
3636
|
+
}
|
|
3637
|
+
};
|
|
3638
|
+
}
|
|
3639
|
+
function $e5be200c675c3b3a$var$asArray(v) {
|
|
3640
|
+
if (!v) return [];
|
|
3641
|
+
return Array.isArray(v) ? v : [
|
|
3642
|
+
v
|
|
3643
|
+
];
|
|
3644
|
+
}
|
|
3645
|
+
function $e5be200c675c3b3a$var$runValidate(validate, value) {
|
|
3646
|
+
if (typeof validate === "function") {
|
|
3647
|
+
let e = validate(value);
|
|
3648
|
+
if (e && typeof e !== "boolean") return $e5be200c675c3b3a$var$asArray(e);
|
|
3649
|
+
}
|
|
3650
|
+
return [];
|
|
3651
|
+
}
|
|
3652
|
+
function $e5be200c675c3b3a$var$getValidationResult(errors) {
|
|
3653
|
+
return errors.length ? {
|
|
3654
|
+
isInvalid: true,
|
|
3655
|
+
validationErrors: errors,
|
|
3656
|
+
validationDetails: $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE
|
|
3657
|
+
} : null;
|
|
3658
|
+
}
|
|
3659
|
+
function $e5be200c675c3b3a$var$isEqualValidation(a, b) {
|
|
3660
|
+
if (a === b) return true;
|
|
3661
|
+
return a && b && a.isInvalid === b.isInvalid && a.validationErrors.length === b.validationErrors.length && a.validationErrors.every((a, i)=>a === b.validationErrors[i]) && Object.entries(a.validationDetails).every(([k, v])=>b.validationDetails[k] === v);
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3293
3664
|
/*
|
|
3294
3665
|
* Copyright 2020 Adobe. All rights reserved.
|
|
3295
3666
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -3960,7 +4331,6 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
|
|
|
3960
4331
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
3961
4332
|
* governing permissions and limitations under the License.
|
|
3962
4333
|
*/
|
|
3963
|
-
|
|
3964
4334
|
/*
|
|
3965
4335
|
* Copyright 2020 Adobe. All rights reserved.
|
|
3966
4336
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -4147,6 +4517,7 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
|
|
|
4147
4517
|
|
|
4148
4518
|
|
|
4149
4519
|
|
|
4520
|
+
|
|
4150
4521
|
function $982254629710d113$export$b95089534ab7c1fd(props) {
|
|
4151
4522
|
let { selectionManager: selectionManager, collection: collection, disabledKeys: disabledKeys, ref: ref, keyboardDelegate: keyboardDelegate } = props;
|
|
4152
4523
|
// By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).
|
|
@@ -4485,10 +4856,24 @@ function $c5a24bc478652b5f$var$getAncestors(collection, node) {
|
|
|
4485
4856
|
*/
|
|
4486
4857
|
|
|
4487
4858
|
|
|
4859
|
+
|
|
4860
|
+
|
|
4861
|
+
|
|
4862
|
+
|
|
4488
4863
|
function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
4489
|
-
let { inputElementType: inputElementType = "input", isDisabled: isDisabled = false, isRequired: isRequired = false, isReadOnly: isReadOnly = false,
|
|
4864
|
+
let { inputElementType: inputElementType = "input", isDisabled: isDisabled = false, isRequired: isRequired = false, isReadOnly: isReadOnly = false, type: type = "text", validationBehavior: validationBehavior = "aria" } = props;
|
|
4865
|
+
let [value, setValue] = ($458b0a5536c1a7cf$export$40bfa8c7b0832715)(props.value, props.defaultValue || "", props.onChange);
|
|
4490
4866
|
let { focusableProps: focusableProps } = ($e6afbd83fe6ebbd2$export$4c014de7c8940b4c)(props, ref);
|
|
4491
|
-
let
|
|
4867
|
+
let validationState = ($e5be200c675c3b3a$export$fc1a364ae1f3ff10)({
|
|
4868
|
+
...props,
|
|
4869
|
+
value: value
|
|
4870
|
+
});
|
|
4871
|
+
let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = validationState.displayValidation;
|
|
4872
|
+
let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = ($2baaea4c71418dea$export$294aa081a6c6f55d)({
|
|
4873
|
+
...props,
|
|
4874
|
+
isInvalid: isInvalid,
|
|
4875
|
+
errorMessage: props.errorMessage || validationErrors
|
|
4876
|
+
});
|
|
4492
4877
|
let domProps = ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props, {
|
|
4493
4878
|
labelable: true
|
|
4494
4879
|
});
|
|
@@ -4496,22 +4881,41 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
4496
4881
|
type: type,
|
|
4497
4882
|
pattern: props.pattern
|
|
4498
4883
|
};
|
|
4499
|
-
|
|
4500
|
-
($
|
|
4884
|
+
($99facab73266f662$export$5add1d006293d136)(ref, value, setValue);
|
|
4885
|
+
($e93e671b31057976$export$b8473d3665f3a75a)(props, validationState, ref);
|
|
4886
|
+
($dGqE5$react.useEffect)(()=>{
|
|
4887
|
+
// This works around a React/Chrome bug that prevents textarea elements from validating when controlled.
|
|
4888
|
+
// We prevent React from updating defaultValue (i.e. children) of textarea when `value` changes,
|
|
4889
|
+
// which causes Chrome to skip validation. Only updating `value` is ok in our case since our
|
|
4890
|
+
// textareas are always controlled. React is planning on removing this synchronization in a
|
|
4891
|
+
// future major version.
|
|
4892
|
+
// https://github.com/facebook/react/issues/19474
|
|
4893
|
+
// https://github.com/facebook/react/issues/11896
|
|
4894
|
+
if (ref.current instanceof ($431fbd86ca7dc216$export$f21a1ffae260145a)(ref.current).HTMLTextAreaElement) {
|
|
4895
|
+
let input = ref.current;
|
|
4896
|
+
Object.defineProperty(input, "defaultValue", {
|
|
4897
|
+
get: ()=>input.value,
|
|
4898
|
+
set: ()=>{},
|
|
4899
|
+
configurable: true
|
|
4900
|
+
});
|
|
4901
|
+
}
|
|
4902
|
+
}, [
|
|
4903
|
+
ref
|
|
4904
|
+
]);
|
|
4501
4905
|
return {
|
|
4502
4906
|
labelProps: labelProps,
|
|
4503
4907
|
inputProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(domProps, inputElementType === "input" && inputOnlyProps, {
|
|
4504
4908
|
disabled: isDisabled,
|
|
4505
4909
|
readOnly: isReadOnly,
|
|
4506
|
-
|
|
4507
|
-
"aria-
|
|
4910
|
+
required: isRequired && validationBehavior === "native",
|
|
4911
|
+
"aria-required": isRequired && validationBehavior === "aria" || undefined,
|
|
4912
|
+
"aria-invalid": isInvalid || undefined,
|
|
4508
4913
|
"aria-errormessage": props["aria-errormessage"],
|
|
4509
4914
|
"aria-activedescendant": props["aria-activedescendant"],
|
|
4510
4915
|
"aria-autocomplete": props["aria-autocomplete"],
|
|
4511
4916
|
"aria-haspopup": props["aria-haspopup"],
|
|
4512
|
-
value:
|
|
4513
|
-
|
|
4514
|
-
onChange: (e)=>onChange(e.target.value),
|
|
4917
|
+
value: value,
|
|
4918
|
+
onChange: (e)=>setValue(e.target.value),
|
|
4515
4919
|
autoComplete: props.autoComplete,
|
|
4516
4920
|
maxLength: props.maxLength,
|
|
4517
4921
|
minLength: props.minLength,
|
|
@@ -4535,7 +4939,10 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
4535
4939
|
...fieldProps
|
|
4536
4940
|
}),
|
|
4537
4941
|
descriptionProps: descriptionProps,
|
|
4538
|
-
errorMessageProps: errorMessageProps
|
|
4942
|
+
errorMessageProps: errorMessageProps,
|
|
4943
|
+
isInvalid: isInvalid,
|
|
4944
|
+
validationErrors: validationErrors,
|
|
4945
|
+
validationDetails: validationDetails
|
|
4539
4946
|
};
|
|
4540
4947
|
}
|
|
4541
4948
|
|
|
@@ -4560,46 +4967,46 @@ function $parcel$interopDefault$1(a) {
|
|
|
4560
4967
|
var $835c96616a7cb4f9$exports = {};
|
|
4561
4968
|
var $682989befd4f478d$exports = {};
|
|
4562
4969
|
$682989befd4f478d$exports = {
|
|
4563
|
-
"deselectedItem": (args)=>`${args.item}
|
|
4564
|
-
"longPressToSelect":
|
|
4565
|
-
"select":
|
|
4566
|
-
"selectedAll":
|
|
4970
|
+
"deselectedItem": (args)=>`${args.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
|
|
4971
|
+
"longPressToSelect": `\u{627}\u{636}\u{63A}\u{637} \u{645}\u{637}\u{648}\u{644}\u{64B}\u{627} \u{644}\u{644}\u{62F}\u{62E}\u{648}\u{644} \u{625}\u{644}\u{649} \u{648}\u{636}\u{639} \u{627}\u{644}\u{62A}\u{62D}\u{62F}\u{64A}\u{62F}.`,
|
|
4972
|
+
"select": `\u{62A}\u{62D}\u{62F}\u{64A}\u{62F}`,
|
|
4973
|
+
"selectedAll": `\u{62C}\u{645}\u{64A}\u{639} \u{627}\u{644}\u{639}\u{646}\u{627}\u{635}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}\u{629}.`,
|
|
4567
4974
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4568
|
-
"=0":
|
|
4569
|
-
one: ()=>`${formatter.number(args.count)}
|
|
4570
|
-
other: ()=>`${formatter.number(args.count)}
|
|
4975
|
+
"=0": `\u{644}\u{645} \u{64A}\u{62A}\u{645} \u{62A}\u{62D}\u{62F}\u{64A}\u{62F} \u{639}\u{646}\u{627}\u{635}\u{631}`,
|
|
4976
|
+
one: ()=>`${formatter.number(args.count)} \u{639}\u{646}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}`,
|
|
4977
|
+
other: ()=>`${formatter.number(args.count)} \u{639}\u{646}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}`
|
|
4571
4978
|
})}.`,
|
|
4572
|
-
"selectedItem": (args)=>`${args.item}
|
|
4979
|
+
"selectedItem": (args)=>`${args.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`
|
|
4573
4980
|
};
|
|
4574
4981
|
|
|
4575
4982
|
|
|
4576
4983
|
var $f7fca02019afd941$exports = {};
|
|
4577
4984
|
$f7fca02019afd941$exports = {
|
|
4578
|
-
"deselectedItem": (args)=>`${args.item}
|
|
4579
|
-
"longPressToSelect":
|
|
4580
|
-
"select":
|
|
4581
|
-
"selectedAll":
|
|
4985
|
+
"deselectedItem": (args)=>`${args.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
|
|
4986
|
+
"longPressToSelect": `\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} \u{438} \u{437}\u{430}\u{434}\u{440}\u{44A}\u{436}\u{442}\u{435} \u{437}\u{430} \u{434}\u{430} \u{432}\u{43B}\u{435}\u{437}\u{435}\u{442}\u{435} \u{432} \u{438}\u{437}\u{431}\u{438}\u{440}\u{430}\u{442}\u{435}\u{43B}\u{435}\u{43D} \u{440}\u{435}\u{436}\u{438}\u{43C}.`,
|
|
4987
|
+
"select": `\u{418}\u{437}\u{431}\u{435}\u{440}\u{435}\u{442}\u{435}`,
|
|
4988
|
+
"selectedAll": `\u{412}\u{441}\u{438}\u{447}\u{43A}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438} \u{441}\u{430} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}.`,
|
|
4582
4989
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4583
|
-
"=0":
|
|
4584
|
-
one: ()=>`${formatter.number(args.count)}
|
|
4585
|
-
other: ()=>`${formatter.number(args.count)}
|
|
4990
|
+
"=0": `\u{41D}\u{44F}\u{43C}\u{430} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`,
|
|
4991
|
+
one: ()=>`${formatter.number(args.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,
|
|
4992
|
+
other: ()=>`${formatter.number(args.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`
|
|
4586
4993
|
})}.`,
|
|
4587
|
-
"selectedItem": (args)=>`${args.item}
|
|
4994
|
+
"selectedItem": (args)=>`${args.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`
|
|
4588
4995
|
};
|
|
4589
4996
|
|
|
4590
4997
|
|
|
4591
4998
|
var $8f86f40be75387f1$exports = {};
|
|
4592
4999
|
$8f86f40be75387f1$exports = {
|
|
4593
|
-
"deselectedItem": (args)=>`
|
|
4594
|
-
"longPressToSelect": `
|
|
5000
|
+
"deselectedItem": (args)=>`Polo\u{17E}ka ${args.item} nen\xed vybr\xe1na.`,
|
|
5001
|
+
"longPressToSelect": `Dlouh\xfdm stisknut\xedm p\u{159}ejdete do re\u{17E}imu v\xfdb\u{11B}ru.`,
|
|
4595
5002
|
"select": `Vybrat`,
|
|
4596
|
-
"selectedAll": `
|
|
5003
|
+
"selectedAll": `Vybr\xe1ny v\u{161}echny polo\u{17E}ky.`,
|
|
4597
5004
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4598
|
-
"=0": `
|
|
4599
|
-
one: ()=>`
|
|
4600
|
-
other: ()=>`
|
|
5005
|
+
"=0": `Nevybr\xe1ny \u{17E}\xe1dn\xe9 polo\u{17E}ky`,
|
|
5006
|
+
one: ()=>`Vybr\xe1na ${formatter.number(args.count)} polo\u{17E}ka`,
|
|
5007
|
+
other: ()=>`Vybr\xe1no ${formatter.number(args.count)} polo\u{17E}ek`
|
|
4601
5008
|
})}.`,
|
|
4602
|
-
"selectedItem": (args)=>`
|
|
5009
|
+
"selectedItem": (args)=>`Vybr\xe1na polo\u{17E}ka ${args.item}.`
|
|
4603
5010
|
};
|
|
4604
5011
|
|
|
4605
5012
|
|
|
@@ -4607,7 +5014,7 @@ var $db24ba43c8d652ee$exports = {};
|
|
|
4607
5014
|
$db24ba43c8d652ee$exports = {
|
|
4608
5015
|
"deselectedItem": (args)=>`${args.item} ikke valgt.`,
|
|
4609
5016
|
"longPressToSelect": `Lav et langt tryk for at aktivere valgtilstand.`,
|
|
4610
|
-
"select": `
|
|
5017
|
+
"select": `V\xe6lg`,
|
|
4611
5018
|
"selectedAll": `Alle elementer valgt.`,
|
|
4612
5019
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4613
5020
|
"=0": `Ingen elementer valgt`,
|
|
@@ -4620,31 +5027,31 @@ $db24ba43c8d652ee$exports = {
|
|
|
4620
5027
|
|
|
4621
5028
|
var $f8f1e72c8b5447d6$exports = {};
|
|
4622
5029
|
$f8f1e72c8b5447d6$exports = {
|
|
4623
|
-
"deselectedItem": (args)=>`${args.item} nicht
|
|
4624
|
-
"longPressToSelect": `
|
|
4625
|
-
"select": `
|
|
4626
|
-
"selectedAll": `Alle Elemente
|
|
5030
|
+
"deselectedItem": (args)=>`${args.item} nicht ausgew\xe4hlt.`,
|
|
5031
|
+
"longPressToSelect": `Gedr\xfcckt halten, um Auswahlmodus zu \xf6ffnen.`,
|
|
5032
|
+
"select": `Ausw\xe4hlen`,
|
|
5033
|
+
"selectedAll": `Alle Elemente ausgew\xe4hlt.`,
|
|
4627
5034
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4628
|
-
"=0": `Keine Elemente
|
|
4629
|
-
one: ()=>`${formatter.number(args.count)} Element
|
|
4630
|
-
other: ()=>`${formatter.number(args.count)} Elemente
|
|
5035
|
+
"=0": `Keine Elemente ausgew\xe4hlt`,
|
|
5036
|
+
one: ()=>`${formatter.number(args.count)} Element ausgew\xe4hlt`,
|
|
5037
|
+
other: ()=>`${formatter.number(args.count)} Elemente ausgew\xe4hlt`
|
|
4631
5038
|
})}.`,
|
|
4632
|
-
"selectedItem": (args)=>`${args.item}
|
|
5039
|
+
"selectedItem": (args)=>`${args.item} ausgew\xe4hlt.`
|
|
4633
5040
|
};
|
|
4634
5041
|
|
|
4635
5042
|
|
|
4636
5043
|
var $9a73ed2983c3ab0b$exports = {};
|
|
4637
5044
|
$9a73ed2983c3ab0b$exports = {
|
|
4638
|
-
"deselectedItem": (args)
|
|
4639
|
-
"longPressToSelect":
|
|
4640
|
-
"select":
|
|
4641
|
-
"selectedAll":
|
|
5045
|
+
"deselectedItem": (args)=>`\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${args.item}.`,
|
|
5046
|
+
"longPressToSelect": `\u{3A0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} \u{3C0}\u{3B1}\u{3C1}\u{3B1}\u{3C4}\u{3B5}\u{3C4}\u{3B1}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3BC}\u{3C0}\u{3B5}\u{3AF}\u{3C4}\u{3B5} \u{3C3}\u{3B5} \u{3BB}\u{3B5}\u{3B9}\u{3C4}\u{3BF}\u{3C5}\u{3C1}\u{3B3}\u{3AF}\u{3B1} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE}\u{3C2}.`,
|
|
5047
|
+
"select": `\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE}`,
|
|
5048
|
+
"selectedAll": `\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B1}\u{3BD} \u{3CC}\u{3BB}\u{3B1} \u{3C4}\u{3B1} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}.`,
|
|
4642
5049
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4643
|
-
"=0":
|
|
4644
|
-
one: ()
|
|
4645
|
-
other: ()
|
|
5050
|
+
"=0": `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B1}\u{3BD} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`,
|
|
5051
|
+
one: ()=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} ${formatter.number(args.count)} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,
|
|
5052
|
+
other: ()=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B1}\u{3BD} ${formatter.number(args.count)} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`
|
|
4646
5053
|
})}.`,
|
|
4647
|
-
"selectedItem": (args)
|
|
5054
|
+
"selectedItem": (args)=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${args.item}.`
|
|
4648
5055
|
};
|
|
4649
5056
|
|
|
4650
5057
|
|
|
@@ -4666,11 +5073,11 @@ $583de0b3587601b9$exports = {
|
|
|
4666
5073
|
var $147159c978043442$exports = {};
|
|
4667
5074
|
$147159c978043442$exports = {
|
|
4668
5075
|
"deselectedItem": (args)=>`${args.item} no seleccionado.`,
|
|
4669
|
-
"longPressToSelect": `Mantenga pulsado para abrir el modo de
|
|
5076
|
+
"longPressToSelect": `Mantenga pulsado para abrir el modo de selecci\xf3n.`,
|
|
4670
5077
|
"select": `Seleccionar`,
|
|
4671
5078
|
"selectedAll": `Todos los elementos seleccionados.`,
|
|
4672
5079
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4673
|
-
"=0": `
|
|
5080
|
+
"=0": `Ning\xfan elemento seleccionado`,
|
|
4674
5081
|
one: ()=>`${formatter.number(args.count)} elemento seleccionado`,
|
|
4675
5082
|
other: ()=>`${formatter.number(args.count)} elementos seleccionados`
|
|
4676
5083
|
})}.`,
|
|
@@ -4681,13 +5088,13 @@ $147159c978043442$exports = {
|
|
|
4681
5088
|
var $5cbb62c8a19173ac$exports = {};
|
|
4682
5089
|
$5cbb62c8a19173ac$exports = {
|
|
4683
5090
|
"deselectedItem": (args)=>`${args.item} pole valitud.`,
|
|
4684
|
-
"longPressToSelect": `
|
|
5091
|
+
"longPressToSelect": `Valikure\u{17E}iimi sisenemiseks vajutage pikalt.`,
|
|
4685
5092
|
"select": `Vali`,
|
|
4686
|
-
"selectedAll": `
|
|
5093
|
+
"selectedAll": `K\xf5ik \xfcksused valitud.`,
|
|
4687
5094
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4688
|
-
"=0":
|
|
4689
|
-
one: ()=>`${formatter.number(args.count)}
|
|
4690
|
-
other: ()=>`${formatter.number(args.count)}
|
|
5095
|
+
"=0": `\xdcksusi pole valitud`,
|
|
5096
|
+
one: ()=>`${formatter.number(args.count)} \xfcksus valitud`,
|
|
5097
|
+
other: ()=>`${formatter.number(args.count)} \xfcksust valitud`
|
|
4691
5098
|
})}.`,
|
|
4692
5099
|
"selectedItem": (args)=>`${args.item} valitud.`
|
|
4693
5100
|
};
|
|
@@ -4696,11 +5103,11 @@ $5cbb62c8a19173ac$exports = {
|
|
|
4696
5103
|
var $a33d71dc804cc59e$exports = {};
|
|
4697
5104
|
$a33d71dc804cc59e$exports = {
|
|
4698
5105
|
"deselectedItem": (args)=>`Kohdetta ${args.item} ei valittu.`,
|
|
4699
|
-
"longPressToSelect": `Siirry valintatilaan painamalla
|
|
5106
|
+
"longPressToSelect": `Siirry valintatilaan painamalla pitk\xe4\xe4n.`,
|
|
4700
5107
|
"select": `Valitse`,
|
|
4701
5108
|
"selectedAll": `Kaikki kohteet valittu.`,
|
|
4702
5109
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4703
|
-
"=0": `Ei
|
|
5110
|
+
"=0": `Ei yht\xe4\xe4n kohdetta valittu`,
|
|
4704
5111
|
one: ()=>`${formatter.number(args.count)} kohde valittu`,
|
|
4705
5112
|
other: ()=>`${formatter.number(args.count)} kohdetta valittu`
|
|
4706
5113
|
})}.`,
|
|
@@ -4710,38 +5117,38 @@ $a33d71dc804cc59e$exports = {
|
|
|
4710
5117
|
|
|
4711
5118
|
var $92d800447793d084$exports = {};
|
|
4712
5119
|
$92d800447793d084$exports = {
|
|
4713
|
-
"deselectedItem": (args)=>`${args.item} non
|
|
4714
|
-
"longPressToSelect": `Appuyez de
|
|
4715
|
-
"select": `
|
|
4716
|
-
"selectedAll": `Tous les
|
|
5120
|
+
"deselectedItem": (args)=>`${args.item} non s\xe9lectionn\xe9.`,
|
|
5121
|
+
"longPressToSelect": `Appuyez de mani\xe8re prolong\xe9e pour passer en mode de s\xe9lection.`,
|
|
5122
|
+
"select": `S\xe9lectionner`,
|
|
5123
|
+
"selectedAll": `Tous les \xe9l\xe9ments s\xe9lectionn\xe9s.`,
|
|
4717
5124
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4718
|
-
"=0": `Aucun
|
|
4719
|
-
one: ()=>`${formatter.number(args.count)}
|
|
4720
|
-
other: ()=>`${formatter.number(args.count)}
|
|
5125
|
+
"=0": `Aucun \xe9l\xe9ment s\xe9lectionn\xe9`,
|
|
5126
|
+
one: ()=>`${formatter.number(args.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,
|
|
5127
|
+
other: ()=>`${formatter.number(args.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`
|
|
4721
5128
|
})}.`,
|
|
4722
|
-
"selectedItem": (args)=>`${args.item}
|
|
5129
|
+
"selectedItem": (args)=>`${args.item} s\xe9lectionn\xe9.`
|
|
4723
5130
|
};
|
|
4724
5131
|
|
|
4725
5132
|
|
|
4726
5133
|
var $fe732cdb32124ea8$exports = {};
|
|
4727
5134
|
$fe732cdb32124ea8$exports = {
|
|
4728
|
-
"deselectedItem": (args)=>`${args.item}
|
|
4729
|
-
"longPressToSelect":
|
|
4730
|
-
"select":
|
|
4731
|
-
"selectedAll":
|
|
5135
|
+
"deselectedItem": (args)=>`${args.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
|
|
5136
|
+
"longPressToSelect": `\u{5D4}\u{5E7}\u{5E9}\u{5D4} \u{5D0}\u{5E8}\u{5D5}\u{5DB}\u{5D4} \u{5DC}\u{5DB}\u{5E0}\u{5D9}\u{5E1}\u{5D4} \u{5DC}\u{5DE}\u{5E6}\u{5D1} \u{5D1}\u{5D7}\u{5D9}\u{5E8}\u{5D4}.`,
|
|
5137
|
+
"select": `\u{5D1}\u{5D7}\u{5E8}`,
|
|
5138
|
+
"selectedAll": `\u{5DB}\u{5DC} \u{5D4}\u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}.`,
|
|
4732
5139
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4733
|
-
"=0":
|
|
4734
|
-
one: ()
|
|
4735
|
-
other: ()=>`${formatter.number(args.count)}
|
|
5140
|
+
"=0": `\u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD}`,
|
|
5141
|
+
one: ()=>`\u{5E4}\u{5E8}\u{5D9}\u{5D8} ${formatter.number(args.count)} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,
|
|
5142
|
+
other: ()=>`${formatter.number(args.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`
|
|
4736
5143
|
})}.`,
|
|
4737
|
-
"selectedItem": (args)=>`${args.item}
|
|
5144
|
+
"selectedItem": (args)=>`${args.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`
|
|
4738
5145
|
};
|
|
4739
5146
|
|
|
4740
5147
|
|
|
4741
5148
|
var $e41234e934efb4f5$exports = {};
|
|
4742
5149
|
$e41234e934efb4f5$exports = {
|
|
4743
5150
|
"deselectedItem": (args)=>`Stavka ${args.item} nije odabrana.`,
|
|
4744
|
-
"longPressToSelect": `Dugo pritisnite za ulazak u
|
|
5151
|
+
"longPressToSelect": `Dugo pritisnite za ulazak u na\u{10D}in odabira.`,
|
|
4745
5152
|
"select": `Odaberite`,
|
|
4746
5153
|
"selectedAll": `Odabrane su sve stavke.`,
|
|
4747
5154
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
@@ -4755,23 +5162,23 @@ $e41234e934efb4f5$exports = {
|
|
|
4755
5162
|
|
|
4756
5163
|
var $1b0393182473bf9e$exports = {};
|
|
4757
5164
|
$1b0393182473bf9e$exports = {
|
|
4758
|
-
"deselectedItem": (args)=>`${args.item} nincs
|
|
4759
|
-
"longPressToSelect": `Nyomja hosszan a
|
|
4760
|
-
"select": `
|
|
4761
|
-
"selectedAll": `Az
|
|
5165
|
+
"deselectedItem": (args)=>`${args.item} nincs kijel\xf6lve.`,
|
|
5166
|
+
"longPressToSelect": `Nyomja hosszan a kijel\xf6l\xe9shez.`,
|
|
5167
|
+
"select": `Kijel\xf6l\xe9s`,
|
|
5168
|
+
"selectedAll": `Az \xf6sszes elem kijel\xf6lve.`,
|
|
4762
5169
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4763
|
-
"=0": `Egy elem sincs
|
|
4764
|
-
one: ()=>`${formatter.number(args.count)} elem
|
|
4765
|
-
other: ()=>`${formatter.number(args.count)} elem
|
|
5170
|
+
"=0": `Egy elem sincs kijel\xf6lve`,
|
|
5171
|
+
one: ()=>`${formatter.number(args.count)} elem kijel\xf6lve`,
|
|
5172
|
+
other: ()=>`${formatter.number(args.count)} elem kijel\xf6lve`
|
|
4766
5173
|
})}.`,
|
|
4767
|
-
"selectedItem": (args)=>`${args.item}
|
|
5174
|
+
"selectedItem": (args)=>`${args.item} kijel\xf6lve.`
|
|
4768
5175
|
};
|
|
4769
5176
|
|
|
4770
5177
|
|
|
4771
5178
|
var $2eed782c1c110ce7$exports = {};
|
|
4772
5179
|
$2eed782c1c110ce7$exports = {
|
|
4773
5180
|
"deselectedItem": (args)=>`${args.item} non selezionato.`,
|
|
4774
|
-
"longPressToSelect": `Premi a lungo per passare alla
|
|
5181
|
+
"longPressToSelect": `Premi a lungo per passare alla modalit\xe0 di selezione.`,
|
|
4775
5182
|
"select": `Seleziona`,
|
|
4776
5183
|
"selectedAll": `Tutti gli elementi selezionati.`,
|
|
4777
5184
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
@@ -4785,44 +5192,44 @@ $2eed782c1c110ce7$exports = {
|
|
|
4785
5192
|
|
|
4786
5193
|
var $8b5d459f86e9b23c$exports = {};
|
|
4787
5194
|
$8b5d459f86e9b23c$exports = {
|
|
4788
|
-
"deselectedItem": (args)=>`${args.item}
|
|
4789
|
-
"longPressToSelect":
|
|
4790
|
-
"select":
|
|
4791
|
-
"selectedAll":
|
|
5195
|
+
"deselectedItem": (args)=>`${args.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
|
|
5196
|
+
"longPressToSelect": `\u{9577}\u{62BC}\u{3057}\u{3057}\u{3066}\u{9078}\u{629E}\u{30E2}\u{30FC}\u{30C9}\u{3092}\u{958B}\u{304D}\u{307E}\u{3059}\u{3002}`,
|
|
5197
|
+
"select": `\u{9078}\u{629E}`,
|
|
5198
|
+
"selectedAll": `\u{3059}\u{3079}\u{3066}\u{306E}\u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`,
|
|
4792
5199
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4793
|
-
"=0":
|
|
4794
|
-
one: ()=>`${formatter.number(args.count)}
|
|
4795
|
-
other: ()=>`${formatter.number(args.count)}
|
|
4796
|
-
})}
|
|
4797
|
-
"selectedItem": (args)=>`${args.item}
|
|
5200
|
+
"=0": `\u{9805}\u{76EE}\u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}`,
|
|
5201
|
+
one: ()=>`${formatter.number(args.count)} \u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}`,
|
|
5202
|
+
other: ()=>`${formatter.number(args.count)} \u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}`
|
|
5203
|
+
})}\u{3002}`,
|
|
5204
|
+
"selectedItem": (args)=>`${args.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`
|
|
4798
5205
|
};
|
|
4799
5206
|
|
|
4800
5207
|
|
|
4801
5208
|
var $1949c3ad17295fd4$exports = {};
|
|
4802
5209
|
$1949c3ad17295fd4$exports = {
|
|
4803
|
-
"deselectedItem": (args)=>`${args.item}
|
|
4804
|
-
"longPressToSelect":
|
|
4805
|
-
"select":
|
|
4806
|
-
"selectedAll":
|
|
5210
|
+
"deselectedItem": (args)=>`${args.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
|
|
5211
|
+
"longPressToSelect": `\u{C120}\u{D0DD} \u{BAA8}\u{B4DC}\u{B85C} \u{B4E4}\u{C5B4}\u{AC00}\u{B824}\u{BA74} \u{AE38}\u{AC8C} \u{B204}\u{B974}\u{C2ED}\u{C2DC}\u{C624}.`,
|
|
5212
|
+
"select": `\u{C120}\u{D0DD}`,
|
|
5213
|
+
"selectedAll": `\u{BAA8}\u{B4E0} \u{D56D}\u{BAA9}\u{C774} \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`,
|
|
4807
5214
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4808
|
-
"=0":
|
|
4809
|
-
one: ()=>`${formatter.number(args.count)}
|
|
4810
|
-
other: ()=>`${formatter.number(args.count)}
|
|
5215
|
+
"=0": `\u{C120}\u{D0DD}\u{B41C} \u{D56D}\u{BAA9}\u{C774} \u{C5C6}\u{C2B5}\u{B2C8}\u{B2E4}`,
|
|
5216
|
+
one: ()=>`${formatter.number(args.count)}\u{AC1C} \u{D56D}\u{BAA9}\u{C774} \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}`,
|
|
5217
|
+
other: ()=>`${formatter.number(args.count)}\u{AC1C} \u{D56D}\u{BAA9}\u{C774} \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}`
|
|
4811
5218
|
})}.`,
|
|
4812
|
-
"selectedItem": (args)=>`${args.item}
|
|
5219
|
+
"selectedItem": (args)=>`${args.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`
|
|
4813
5220
|
};
|
|
4814
5221
|
|
|
4815
5222
|
|
|
4816
5223
|
var $f5e3df4dc8aa7b54$exports = {};
|
|
4817
5224
|
$f5e3df4dc8aa7b54$exports = {
|
|
4818
5225
|
"deselectedItem": (args)=>`${args.item} nepasirinkta.`,
|
|
4819
|
-
"longPressToSelect": `
|
|
5226
|
+
"longPressToSelect": `Nor\u{117}dami \u{12F}jungti pasirinkimo re\u{17E}im\u{105}, paspauskite ir palaikykite.`,
|
|
4820
5227
|
"select": `Pasirinkti`,
|
|
4821
5228
|
"selectedAll": `Pasirinkti visi elementai.`,
|
|
4822
5229
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4823
|
-
"=0": `Nepasirinktas
|
|
5230
|
+
"=0": `Nepasirinktas n\u{117} vienas elementas`,
|
|
4824
5231
|
one: ()=>`Pasirinktas ${formatter.number(args.count)} elementas`,
|
|
4825
|
-
other: ()=>`Pasirinkta element
|
|
5232
|
+
other: ()=>`Pasirinkta element\u{173}: ${formatter.number(args.count)}`
|
|
4826
5233
|
})}.`,
|
|
4827
5234
|
"selectedItem": (args)=>`Pasirinkta: ${args.item}.`
|
|
4828
5235
|
};
|
|
@@ -4830,23 +5237,23 @@ $f5e3df4dc8aa7b54$exports = {
|
|
|
4830
5237
|
|
|
4831
5238
|
var $9dd86690a5c2b2c5$exports = {};
|
|
4832
5239
|
$9dd86690a5c2b2c5$exports = {
|
|
4833
|
-
"deselectedItem": (args)=>`Vienums ${args.item} nav
|
|
4834
|
-
"longPressToSelect": `Ilgi turiet nospiestu. lai
|
|
4835
|
-
"select": `
|
|
4836
|
-
"selectedAll": `
|
|
5240
|
+
"deselectedItem": (args)=>`Vienums ${args.item} nav atlas\u{12B}ts.`,
|
|
5241
|
+
"longPressToSelect": `Ilgi turiet nospiestu. lai iesl\u{113}gtu atlases re\u{17E}\u{12B}mu.`,
|
|
5242
|
+
"select": `Atlas\u{12B}t`,
|
|
5243
|
+
"selectedAll": `Atlas\u{12B}ti visi vienumi.`,
|
|
4837
5244
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4838
|
-
"=0": `Nav
|
|
4839
|
-
one: ()=>`
|
|
4840
|
-
other: ()=>`
|
|
5245
|
+
"=0": `Nav atlas\u{12B}ts neviens vienums`,
|
|
5246
|
+
one: ()=>`Atlas\u{12B}to vienumu skaits: ${formatter.number(args.count)}`,
|
|
5247
|
+
other: ()=>`Atlas\u{12B}to vienumu skaits: ${formatter.number(args.count)}`
|
|
4841
5248
|
})}.`,
|
|
4842
|
-
"selectedItem": (args)=>`
|
|
5249
|
+
"selectedItem": (args)=>`Atlas\u{12B}ts vienums ${args.item}.`
|
|
4843
5250
|
};
|
|
4844
5251
|
|
|
4845
5252
|
|
|
4846
5253
|
var $843964c3bf9a7d24$exports = {};
|
|
4847
5254
|
$843964c3bf9a7d24$exports = {
|
|
4848
5255
|
"deselectedItem": (args)=>`${args.item} er ikke valgt.`,
|
|
4849
|
-
"longPressToSelect": `Bruk et langt trykk for
|
|
5256
|
+
"longPressToSelect": `Bruk et langt trykk for \xe5 g\xe5 inn i valgmodus.`,
|
|
4850
5257
|
"select": `Velg`,
|
|
4851
5258
|
"selectedAll": `Alle elementer er valgt.`,
|
|
4852
5259
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
@@ -4876,13 +5283,13 @@ $73f50e845f9ef3b4$exports = {
|
|
|
4876
5283
|
var $87f92a7e077514b2$exports = {};
|
|
4877
5284
|
$87f92a7e077514b2$exports = {
|
|
4878
5285
|
"deselectedItem": (args)=>`Nie zaznaczono ${args.item}.`,
|
|
4879
|
-
"longPressToSelect": `
|
|
5286
|
+
"longPressToSelect": `Naci\u{15B}nij i przytrzymaj, aby wej\u{15B}\u{107} do trybu wyboru.`,
|
|
4880
5287
|
"select": `Zaznacz`,
|
|
4881
5288
|
"selectedAll": `Wszystkie zaznaczone elementy.`,
|
|
4882
5289
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4883
|
-
"=0": `Nie zaznaczono
|
|
5290
|
+
"=0": `Nie zaznaczono \u{17C}adnych element\xf3w`,
|
|
4884
5291
|
one: ()=>`${formatter.number(args.count)} zaznaczony element`,
|
|
4885
|
-
other: ()=>`${formatter.number(args.count)} zaznaczonych
|
|
5292
|
+
other: ()=>`${formatter.number(args.count)} zaznaczonych element\xf3w`
|
|
4886
5293
|
})}.`,
|
|
4887
5294
|
"selectedItem": (args)=>`Zaznaczono ${args.item}.`
|
|
4888
5295
|
};
|
|
@@ -4890,8 +5297,8 @@ $87f92a7e077514b2$exports = {
|
|
|
4890
5297
|
|
|
4891
5298
|
var $c28c98d58ee9ff6f$exports = {};
|
|
4892
5299
|
$c28c98d58ee9ff6f$exports = {
|
|
4893
|
-
"deselectedItem": (args)=>`${args.item}
|
|
4894
|
-
"longPressToSelect": `Mantenha pressionado para entrar no modo de
|
|
5300
|
+
"deselectedItem": (args)=>`${args.item} n\xe3o selecionado.`,
|
|
5301
|
+
"longPressToSelect": `Mantenha pressionado para entrar no modo de sele\xe7\xe3o.`,
|
|
4895
5302
|
"select": `Selecionar`,
|
|
4896
5303
|
"selectedAll": `Todos os itens selecionados.`,
|
|
4897
5304
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
@@ -4905,8 +5312,8 @@ $c28c98d58ee9ff6f$exports = {
|
|
|
4905
5312
|
|
|
4906
5313
|
var $b6b1503b17b2254d$exports = {};
|
|
4907
5314
|
$b6b1503b17b2254d$exports = {
|
|
4908
|
-
"deselectedItem": (args)=>`${args.item}
|
|
4909
|
-
"longPressToSelect": `Prima continuamente para entrar no modo de
|
|
5315
|
+
"deselectedItem": (args)=>`${args.item} n\xe3o selecionado.`,
|
|
5316
|
+
"longPressToSelect": `Prima continuamente para entrar no modo de sele\xe7\xe3o.`,
|
|
4910
5317
|
"select": `Selecionar`,
|
|
4911
5318
|
"selectedAll": `Todos os itens selecionados.`,
|
|
4912
5319
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
@@ -4921,7 +5328,7 @@ $b6b1503b17b2254d$exports = {
|
|
|
4921
5328
|
var $8bdaeb71e50c3e1a$exports = {};
|
|
4922
5329
|
$8bdaeb71e50c3e1a$exports = {
|
|
4923
5330
|
"deselectedItem": (args)=>`${args.item} neselectat.`,
|
|
4924
|
-
"longPressToSelect": `
|
|
5331
|
+
"longPressToSelect": `Ap\u{103}sa\u{21B}i lung pentru a intra \xeen modul de selectare.`,
|
|
4925
5332
|
"select": `Selectare`,
|
|
4926
5333
|
"selectedAll": `Toate elementele selectate.`,
|
|
4927
5334
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
@@ -4935,38 +5342,38 @@ $8bdaeb71e50c3e1a$exports = {
|
|
|
4935
5342
|
|
|
4936
5343
|
var $ec2b852dd7c3d1f2$exports = {};
|
|
4937
5344
|
$ec2b852dd7c3d1f2$exports = {
|
|
4938
|
-
"deselectedItem": (args)=>`${args.item}
|
|
4939
|
-
"longPressToSelect":
|
|
4940
|
-
"select":
|
|
4941
|
-
"selectedAll":
|
|
5345
|
+
"deselectedItem": (args)=>`${args.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
|
|
5346
|
+
"longPressToSelect": `\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} \u{438} \u{443}\u{434}\u{435}\u{440}\u{436}\u{438}\u{432}\u{430}\u{439}\u{442}\u{435} \u{434}\u{43B}\u{44F} \u{432}\u{445}\u{43E}\u{434}\u{430} \u{432} \u{440}\u{435}\u{436}\u{438}\u{43C} \u{432}\u{44B}\u{431}\u{43E}\u{440}\u{430}.`,
|
|
5347
|
+
"select": `\u{412}\u{44B}\u{431}\u{440}\u{430}\u{442}\u{44C}`,
|
|
5348
|
+
"selectedAll": `\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{44B} \u{432}\u{441}\u{435} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{44B}.`,
|
|
4942
5349
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4943
|
-
"=0":
|
|
4944
|
-
one: ()=>`${formatter.number(args.count)}
|
|
4945
|
-
other: ()=>`${formatter.number(args.count)}
|
|
5350
|
+
"=0": `\u{41D}\u{435}\u{442} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{445} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432}`,
|
|
5351
|
+
one: ()=>`${formatter.number(args.count)} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}`,
|
|
5352
|
+
other: ()=>`${formatter.number(args.count)} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}`
|
|
4946
5353
|
})}.`,
|
|
4947
|
-
"selectedItem": (args)=>`${args.item}
|
|
5354
|
+
"selectedItem": (args)=>`${args.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
|
|
4948
5355
|
};
|
|
4949
5356
|
|
|
4950
5357
|
|
|
4951
5358
|
var $79e6d900d6a4f82d$exports = {};
|
|
4952
5359
|
$79e6d900d6a4f82d$exports = {
|
|
4953
|
-
"deselectedItem": (args)=>`
|
|
4954
|
-
"longPressToSelect": `
|
|
4955
|
-
"select": `Vybra
|
|
4956
|
-
"selectedAll": `
|
|
5360
|
+
"deselectedItem": (args)=>`Nevybrat\xe9 polo\u{17E}ky: ${args.item}.`,
|
|
5361
|
+
"longPressToSelect": `Dlh\u{161}\xedm stla\u{10D}en\xedm prejdite do re\u{17E}imu v\xfdberu.`,
|
|
5362
|
+
"select": `Vybra\u{165}`,
|
|
5363
|
+
"selectedAll": `V\u{161}etky vybrat\xe9 polo\u{17E}ky.`,
|
|
4957
5364
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
4958
|
-
"=0":
|
|
4959
|
-
one: ()=>`${formatter.number(args.count)}
|
|
4960
|
-
other: ()=>`
|
|
5365
|
+
"=0": `\u{17D}iadne vybrat\xe9 polo\u{17E}ky`,
|
|
5366
|
+
one: ()=>`${formatter.number(args.count)} vybrat\xe1 polo\u{17E}ka`,
|
|
5367
|
+
other: ()=>`Po\u{10D}et vybrat\xfdch polo\u{17E}iek:${formatter.number(args.count)}`
|
|
4961
5368
|
})}.`,
|
|
4962
|
-
"selectedItem": (args)=>`
|
|
5369
|
+
"selectedItem": (args)=>`Vybrat\xe9 polo\u{17E}ky: ${args.item}.`
|
|
4963
5370
|
};
|
|
4964
5371
|
|
|
4965
5372
|
|
|
4966
5373
|
var $f4c1f0d5d4d03d80$exports = {};
|
|
4967
5374
|
$f4c1f0d5d4d03d80$exports = {
|
|
4968
5375
|
"deselectedItem": (args)=>`Element ${args.item} ni izbran.`,
|
|
4969
|
-
"longPressToSelect": `Za izbirni
|
|
5376
|
+
"longPressToSelect": `Za izbirni na\u{10D}in pritisnite in dlje \u{10D}asa dr\u{17E}ite.`,
|
|
4970
5377
|
"select": `Izberite`,
|
|
4971
5378
|
"selectedAll": `Vsi elementi so izbrani.`,
|
|
4972
5379
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
@@ -4981,7 +5388,7 @@ $f4c1f0d5d4d03d80$exports = {
|
|
|
4981
5388
|
var $46252cd87269b10b$exports = {};
|
|
4982
5389
|
$46252cd87269b10b$exports = {
|
|
4983
5390
|
"deselectedItem": (args)=>`${args.item} nije izabrano.`,
|
|
4984
|
-
"longPressToSelect": `Dugo pritisnite za ulazak u
|
|
5391
|
+
"longPressToSelect": `Dugo pritisnite za ulazak u re\u{17E}im biranja.`,
|
|
4985
5392
|
"select": `Izaberite`,
|
|
4986
5393
|
"selectedAll": `Izabrane su sve stavke.`,
|
|
4987
5394
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
@@ -4996,7 +5403,7 @@ $46252cd87269b10b$exports = {
|
|
|
4996
5403
|
var $d4d5d8dab362555c$exports = {};
|
|
4997
5404
|
$d4d5d8dab362555c$exports = {
|
|
4998
5405
|
"deselectedItem": (args)=>`${args.item} ej markerat.`,
|
|
4999
|
-
"longPressToSelect": `Tryck
|
|
5406
|
+
"longPressToSelect": `Tryck l\xe4nge n\xe4r du vill \xf6ppna v\xe4ljarl\xe4ge.`,
|
|
5000
5407
|
"select": `Markera`,
|
|
5001
5408
|
"selectedAll": `Alla markerade objekt.`,
|
|
5002
5409
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
@@ -5010,61 +5417,61 @@ $d4d5d8dab362555c$exports = {
|
|
|
5010
5417
|
|
|
5011
5418
|
var $3d55d1f97c377e83$exports = {};
|
|
5012
5419
|
$3d55d1f97c377e83$exports = {
|
|
5013
|
-
"deselectedItem": (args)=>`${args.item}
|
|
5014
|
-
"longPressToSelect": `
|
|
5015
|
-
"select": `Se
|
|
5016
|
-
"selectedAll": `
|
|
5420
|
+
"deselectedItem": (args)=>`${args.item} se\xe7ilmedi.`,
|
|
5421
|
+
"longPressToSelect": `Se\xe7im moduna girmek i\xe7in uzun bas\u{131}n.`,
|
|
5422
|
+
"select": `Se\xe7`,
|
|
5423
|
+
"selectedAll": `T\xfcm \xf6geler se\xe7ildi.`,
|
|
5017
5424
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
5018
|
-
"=0": `
|
|
5019
|
-
one: ()=>`${formatter.number(args.count)}
|
|
5020
|
-
other: ()=>`${formatter.number(args.count)}
|
|
5425
|
+
"=0": `Hi\xe7bir \xf6ge se\xe7ilmedi`,
|
|
5426
|
+
one: ()=>`${formatter.number(args.count)} \xf6ge se\xe7ildi`,
|
|
5427
|
+
other: ()=>`${formatter.number(args.count)} \xf6ge se\xe7ildi`
|
|
5021
5428
|
})}.`,
|
|
5022
|
-
"selectedItem": (args)=>`${args.item}
|
|
5429
|
+
"selectedItem": (args)=>`${args.item} se\xe7ildi.`
|
|
5023
5430
|
};
|
|
5024
5431
|
|
|
5025
5432
|
|
|
5026
5433
|
var $5368512f1c703a3f$exports = {};
|
|
5027
5434
|
$5368512f1c703a3f$exports = {
|
|
5028
|
-
"deselectedItem": (args)=>`${args.item}
|
|
5029
|
-
"longPressToSelect":
|
|
5030
|
-
"select":
|
|
5031
|
-
"selectedAll":
|
|
5435
|
+
"deselectedItem": (args)=>`${args.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
|
|
5436
|
+
"longPressToSelect": `\u{412}\u{438}\u{43A}\u{43E}\u{43D}\u{430}\u{439}\u{442}\u{435} \u{434}\u{43E}\u{432}\u{433}\u{435} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{43D}\u{43D}\u{44F}, \u{449}\u{43E}\u{431} \u{43F}\u{435}\u{440}\u{435}\u{439}\u{442}\u{438} \u{432} \u{440}\u{435}\u{436}\u{438}\u{43C} \u{432}\u{438}\u{431}\u{43E}\u{440}\u{443}.`,
|
|
5437
|
+
"select": `\u{412}\u{438}\u{431}\u{440}\u{430}\u{442}\u{438}`,
|
|
5438
|
+
"selectedAll": `\u{423}\u{441}\u{456} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
|
|
5032
5439
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
5033
|
-
"=0":
|
|
5034
|
-
one: ()=>`${formatter.number(args.count)}
|
|
5035
|
-
other: ()
|
|
5440
|
+
"=0": `\u{416}\u{43E}\u{434}\u{43D}\u{438}\u{445} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{456}\u{432} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`,
|
|
5441
|
+
one: ()=>`${formatter.number(args.count)} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`,
|
|
5442
|
+
other: ()=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{456}\u{432}: ${formatter.number(args.count)}`
|
|
5036
5443
|
})}.`,
|
|
5037
|
-
"selectedItem": (args)=>`${args.item}
|
|
5444
|
+
"selectedItem": (args)=>`${args.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
|
|
5038
5445
|
};
|
|
5039
5446
|
|
|
5040
5447
|
|
|
5041
5448
|
var $f1316b1074463583$exports = {};
|
|
5042
5449
|
$f1316b1074463583$exports = {
|
|
5043
|
-
"deselectedItem": (args)
|
|
5044
|
-
"longPressToSelect":
|
|
5045
|
-
"select":
|
|
5046
|
-
"selectedAll":
|
|
5450
|
+
"deselectedItem": (args)=>`\u{672A}\u{9009}\u{62E9} ${args.item}\u{3002}`,
|
|
5451
|
+
"longPressToSelect": `\u{957F}\u{6309}\u{4EE5}\u{8FDB}\u{5165}\u{9009}\u{62E9}\u{6A21}\u{5F0F}\u{3002}`,
|
|
5452
|
+
"select": `\u{9009}\u{62E9}`,
|
|
5453
|
+
"selectedAll": `\u{5DF2}\u{9009}\u{62E9}\u{6240}\u{6709}\u{9879}\u{76EE}\u{3002}`,
|
|
5047
5454
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
5048
|
-
"=0":
|
|
5049
|
-
one: ()
|
|
5050
|
-
other: ()
|
|
5051
|
-
})}
|
|
5052
|
-
"selectedItem": (args)
|
|
5455
|
+
"=0": `\u{672A}\u{9009}\u{62E9}\u{9879}\u{76EE}`,
|
|
5456
|
+
one: ()=>`\u{5DF2}\u{9009}\u{62E9} ${formatter.number(args.count)} \u{4E2A}\u{9879}\u{76EE}`,
|
|
5457
|
+
other: ()=>`\u{5DF2}\u{9009}\u{62E9} ${formatter.number(args.count)} \u{4E2A}\u{9879}\u{76EE}`
|
|
5458
|
+
})}\u{3002}`,
|
|
5459
|
+
"selectedItem": (args)=>`\u{5DF2}\u{9009}\u{62E9} ${args.item}\u{3002}`
|
|
5053
5460
|
};
|
|
5054
5461
|
|
|
5055
5462
|
|
|
5056
5463
|
var $7e60654723031b6f$exports = {};
|
|
5057
5464
|
$7e60654723031b6f$exports = {
|
|
5058
|
-
"deselectedItem": (args)
|
|
5059
|
-
"longPressToSelect":
|
|
5060
|
-
"select":
|
|
5061
|
-
"selectedAll":
|
|
5465
|
+
"deselectedItem": (args)=>`\u{672A}\u{9078}\u{53D6}\u{300C}${args.item}\u{300D}\u{3002}`,
|
|
5466
|
+
"longPressToSelect": `\u{9577}\u{6309}\u{4EE5}\u{9032}\u{5165}\u{9078}\u{64C7}\u{6A21}\u{5F0F}\u{3002}`,
|
|
5467
|
+
"select": `\u{9078}\u{53D6}`,
|
|
5468
|
+
"selectedAll": `\u{5DF2}\u{9078}\u{53D6}\u{6240}\u{6709}\u{9805}\u{76EE}\u{3002}`,
|
|
5062
5469
|
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
|
|
5063
|
-
"=0":
|
|
5064
|
-
one: ()
|
|
5065
|
-
other: ()
|
|
5066
|
-
})}
|
|
5067
|
-
"selectedItem": (args)
|
|
5470
|
+
"=0": `\u{672A}\u{9078}\u{53D6}\u{4EFB}\u{4F55}\u{9805}\u{76EE}`,
|
|
5471
|
+
one: ()=>`\u{5DF2}\u{9078}\u{53D6} ${formatter.number(args.count)} \u{500B}\u{9805}\u{76EE}`,
|
|
5472
|
+
other: ()=>`\u{5DF2}\u{9078}\u{53D6} ${formatter.number(args.count)} \u{500B}\u{9805}\u{76EE}`
|
|
5473
|
+
})}\u{3002}`,
|
|
5474
|
+
"selectedItem": (args)=>`\u{5DF2}\u{9078}\u{53D6}\u{300C}${args.item}\u{300D}\u{3002}`
|
|
5068
5475
|
};
|
|
5069
5476
|
|
|
5070
5477
|
|
|
@@ -5110,10 +5517,10 @@ $835c96616a7cb4f9$exports = {
|
|
|
5110
5517
|
|
|
5111
5518
|
|
|
5112
5519
|
function $92599c3fd427b763$export$137e594ef3218a10(props, state) {
|
|
5113
|
-
var _state_collection_getTextValue;
|
|
5114
5520
|
let { getRowText: getRowText = (key)=>{
|
|
5115
|
-
var
|
|
5116
|
-
|
|
5521
|
+
var _state_collection_getTextValue, _state_collection, _state_collection_getItem;
|
|
5522
|
+
var _state_collection_getTextValue1;
|
|
5523
|
+
return (_state_collection_getTextValue1 = (_state_collection_getTextValue = (_state_collection = state.collection).getTextValue) === null || _state_collection_getTextValue === void 0 ? void 0 : _state_collection_getTextValue.call(_state_collection, key)) !== null && _state_collection_getTextValue1 !== void 0 ? _state_collection_getTextValue1 : (_state_collection_getItem = state.collection.getItem(key)) === null || _state_collection_getItem === void 0 ? void 0 : _state_collection_getItem.textValue;
|
|
5117
5524
|
} } = props;
|
|
5118
5525
|
let stringFormatter = ($fca6afa0e843324b$export$f12b703ca79dfbb1)(((/*@__PURE__*/$parcel$interopDefault$1($835c96616a7cb4f9$exports))));
|
|
5119
5526
|
// Many screen readers do not announce when items in a grid are selected/deselected.
|
|
@@ -5574,43 +5981,43 @@ function $d7323bca8d074eeb$export$4f8b5cda58b7e8ff(props, state, ref) {
|
|
|
5574
5981
|
var $3bb15cc24d006ec5$exports = {};
|
|
5575
5982
|
var $84925f526f90eebd$exports = {};
|
|
5576
5983
|
$84925f526f90eebd$exports = {
|
|
5577
|
-
"removeButtonLabel":
|
|
5578
|
-
"removeDescription":
|
|
5984
|
+
"removeButtonLabel": `\u{625}\u{632}\u{627}\u{644}\u{629}`,
|
|
5985
|
+
"removeDescription": `\u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} \u{645}\u{641}\u{62A}\u{627}\u{62D} DELETE \u{644}\u{625}\u{632}\u{627}\u{644}\u{629} \u{639}\u{644}\u{627}\u{645}\u{629}.`
|
|
5579
5986
|
};
|
|
5580
5987
|
|
|
5581
5988
|
|
|
5582
5989
|
var $c0650163dc1b6f9d$exports = {};
|
|
5583
5990
|
$c0650163dc1b6f9d$exports = {
|
|
5584
|
-
"removeButtonLabel":
|
|
5585
|
-
"removeDescription":
|
|
5991
|
+
"removeButtonLabel": `\u{41F}\u{440}\u{435}\u{43C}\u{430}\u{445}\u{432}\u{430}\u{43D}\u{435}`,
|
|
5992
|
+
"removeDescription": `\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Delete, \u{437}\u{430} \u{434}\u{430} \u{43F}\u{440}\u{435}\u{43C}\u{430}\u{445}\u{43D}\u{435}\u{442}\u{435} \u{43C}\u{430}\u{440}\u{43A}\u{435}\u{440}\u{430}.`
|
|
5586
5993
|
};
|
|
5587
5994
|
|
|
5588
5995
|
|
|
5589
5996
|
var $b2b55661291de587$exports = {};
|
|
5590
5997
|
$b2b55661291de587$exports = {
|
|
5591
5998
|
"removeButtonLabel": `Odebrat`,
|
|
5592
|
-
"removeDescription": `
|
|
5999
|
+
"removeDescription": `Stisknut\xedm kl\xe1vesy Delete odeberete zna\u{10D}ku.`
|
|
5593
6000
|
};
|
|
5594
6001
|
|
|
5595
6002
|
|
|
5596
6003
|
var $deb83970956f6d5b$exports = {};
|
|
5597
6004
|
$deb83970956f6d5b$exports = {
|
|
5598
6005
|
"removeButtonLabel": `Fjern`,
|
|
5599
|
-
"removeDescription": `Tryk
|
|
6006
|
+
"removeDescription": `Tryk p\xe5 Slet for at fjerne tag.`
|
|
5600
6007
|
};
|
|
5601
6008
|
|
|
5602
6009
|
|
|
5603
6010
|
var $aea1cb4c7ec97e1c$exports = {};
|
|
5604
6011
|
$aea1cb4c7ec97e1c$exports = {
|
|
5605
6012
|
"removeButtonLabel": `Entfernen`,
|
|
5606
|
-
"removeDescription": `Auf
|
|
6013
|
+
"removeDescription": `Auf \u{201E}L\xf6schen\u{201C} dr\xfccken, um das Tag zu entfernen.`
|
|
5607
6014
|
};
|
|
5608
6015
|
|
|
5609
6016
|
|
|
5610
6017
|
var $3618d917e503a8d3$exports = {};
|
|
5611
6018
|
$3618d917e503a8d3$exports = {
|
|
5612
|
-
"removeButtonLabel":
|
|
5613
|
-
"removeDescription":
|
|
6019
|
+
"removeButtonLabel": `\u{39A}\u{3B1}\u{3C4}\u{3AC}\u{3C1}\u{3B3}\u{3B7}\u{3C3}\u{3B7}`,
|
|
6020
|
+
"removeDescription": `\u{3A0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} \u{394}\u{3B9}\u{3B1}\u{3B3}\u{3C1}\u{3B1}\u{3C6}\u{3AE} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3BA}\u{3B1}\u{3C4}\u{3B1}\u{3C1}\u{3B3}\u{3AE}\u{3C3}\u{3B5}\u{3C4}\u{3B5} \u{3C4}\u{3B7}\u{3BD} \u{3B5}\u{3C4}\u{3B9}\u{3BA}\u{3AD}\u{3C4}\u{3B1}.`
|
|
5614
6021
|
};
|
|
5615
6022
|
|
|
5616
6023
|
|
|
@@ -5645,14 +6052,14 @@ $80ee16b64fab9fb5$exports = {
|
|
|
5645
6052
|
var $be9d354476c08087$exports = {};
|
|
5646
6053
|
$be9d354476c08087$exports = {
|
|
5647
6054
|
"removeButtonLabel": `Supprimer`,
|
|
5648
|
-
"removeDescription": `Appuyez sur Supprimer pour supprimer l
|
|
6055
|
+
"removeDescription": `Appuyez sur Supprimer pour supprimer l\u{2019}\xe9tiquette.`
|
|
5649
6056
|
};
|
|
5650
6057
|
|
|
5651
6058
|
|
|
5652
6059
|
var $ffeb903ba092eb35$exports = {};
|
|
5653
6060
|
$ffeb903ba092eb35$exports = {
|
|
5654
|
-
"removeButtonLabel":
|
|
5655
|
-
"removeDescription":
|
|
6061
|
+
"removeButtonLabel": `\u{5D4}\u{5E1}\u{5E8}`,
|
|
6062
|
+
"removeDescription": `\u{5DC}\u{5D7}\u{5E5} \u{5E2}\u{5DC} \u{5DE}\u{5D7}\u{5E7} \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5D4}\u{5E1}\u{5D9}\u{5E8} \u{5EA}\u{5D2}.`
|
|
5656
6063
|
};
|
|
5657
6064
|
|
|
5658
6065
|
|
|
@@ -5665,8 +6072,8 @@ $1df6722c6f19728b$exports = {
|
|
|
5665
6072
|
|
|
5666
6073
|
var $093d57e325bc9071$exports = {};
|
|
5667
6074
|
$093d57e325bc9071$exports = {
|
|
5668
|
-
"removeButtonLabel": `
|
|
5669
|
-
"removeDescription": `Nyomja meg a Delete
|
|
6075
|
+
"removeButtonLabel": `Elt\xe1vol\xedt\xe1s`,
|
|
6076
|
+
"removeDescription": `Nyomja meg a Delete billenty\u{171}t a c\xedmke elt\xe1vol\xedt\xe1s\xe1hoz.`
|
|
5670
6077
|
};
|
|
5671
6078
|
|
|
5672
6079
|
|
|
@@ -5679,36 +6086,36 @@ $609dbdfbcad85bdb$exports = {
|
|
|
5679
6086
|
|
|
5680
6087
|
var $c08e84f882644048$exports = {};
|
|
5681
6088
|
$c08e84f882644048$exports = {
|
|
5682
|
-
"removeButtonLabel":
|
|
5683
|
-
"removeDescription":
|
|
6089
|
+
"removeButtonLabel": `\u{524A}\u{9664}`,
|
|
6090
|
+
"removeDescription": `\u{30BF}\u{30B0}\u{3092}\u{524A}\u{9664}\u{3059}\u{308B}\u{306B}\u{306F}\u{3001}Delete \u{30AD}\u{30FC}\u{3092}\u{62BC}\u{3057}\u{307E}\u{3059}\u{3002}`
|
|
5684
6091
|
};
|
|
5685
6092
|
|
|
5686
6093
|
|
|
5687
6094
|
var $5cd130489822fa21$exports = {};
|
|
5688
6095
|
$5cd130489822fa21$exports = {
|
|
5689
|
-
"removeButtonLabel":
|
|
5690
|
-
"removeDescription":
|
|
6096
|
+
"removeButtonLabel": `\u{C81C}\u{AC70}`,
|
|
6097
|
+
"removeDescription": `\u{D0DC}\u{ADF8}\u{B97C} \u{C81C}\u{AC70}\u{D558}\u{B824}\u{BA74} Delete \u{D0A4}\u{B97C} \u{B204}\u{B974}\u{C2ED}\u{C2DC}\u{C624}.`
|
|
5691
6098
|
};
|
|
5692
6099
|
|
|
5693
6100
|
|
|
5694
6101
|
var $ab5183739b6c5e7e$exports = {};
|
|
5695
6102
|
$ab5183739b6c5e7e$exports = {
|
|
5696
|
-
"removeButtonLabel": `
|
|
5697
|
-
"removeDescription": `
|
|
6103
|
+
"removeButtonLabel": `Pa\u{161}alinti`,
|
|
6104
|
+
"removeDescription": `Nor\u{117}dami pa\u{161}alinti \u{17E}ym\u{105}, paspauskite \u{201E}Delete\u{201C} klavi\u{161}\u{105}.`
|
|
5698
6105
|
};
|
|
5699
6106
|
|
|
5700
6107
|
|
|
5701
6108
|
var $dd84a0b574be3f23$exports = {};
|
|
5702
6109
|
$dd84a0b574be3f23$exports = {
|
|
5703
|
-
"removeButtonLabel": `
|
|
5704
|
-
"removeDescription": `Nospiediet Delete [
|
|
6110
|
+
"removeButtonLabel": `No\u{146}emt`,
|
|
6111
|
+
"removeDescription": `Nospiediet Delete [Dz\u{113}st], lai no\u{146}emtu tagu.`
|
|
5705
6112
|
};
|
|
5706
6113
|
|
|
5707
6114
|
|
|
5708
6115
|
var $85eee97d14eef7b5$exports = {};
|
|
5709
6116
|
$85eee97d14eef7b5$exports = {
|
|
5710
6117
|
"removeButtonLabel": `Fjern`,
|
|
5711
|
-
"removeDescription": `Trykk
|
|
6118
|
+
"removeDescription": `Trykk p\xe5 Slett for \xe5 fjerne taggen.`
|
|
5712
6119
|
};
|
|
5713
6120
|
|
|
5714
6121
|
|
|
@@ -5721,8 +6128,8 @@ $18781839f93b0314$exports = {
|
|
|
5721
6128
|
|
|
5722
6129
|
var $1c40ffbbfe9f3bda$exports = {};
|
|
5723
6130
|
$1c40ffbbfe9f3bda$exports = {
|
|
5724
|
-
"removeButtonLabel": `Usu
|
|
5725
|
-
"removeDescription": `
|
|
6131
|
+
"removeButtonLabel": `Usu\u{144}`,
|
|
6132
|
+
"removeDescription": `Naci\u{15B}nij Usu\u{144}, aby usun\u{105}\u{107} znacznik.`
|
|
5726
6133
|
};
|
|
5727
6134
|
|
|
5728
6135
|
|
|
@@ -5742,22 +6149,22 @@ $b6d50b1d20768ce4$exports = {
|
|
|
5742
6149
|
|
|
5743
6150
|
var $d8c38c691b006187$exports = {};
|
|
5744
6151
|
$d8c38c691b006187$exports = {
|
|
5745
|
-
"removeButtonLabel":
|
|
5746
|
-
"removeDescription": `
|
|
6152
|
+
"removeButtonLabel": `\xcendep\u{103}rta\u{163}i`,
|
|
6153
|
+
"removeDescription": `Ap\u{103}sa\u{21B}i pe Delete (\u{218}tergere) pentru a elimina eticheta.`
|
|
5747
6154
|
};
|
|
5748
6155
|
|
|
5749
6156
|
|
|
5750
6157
|
var $ed9b4bf7ce1fb1d7$exports = {};
|
|
5751
6158
|
$ed9b4bf7ce1fb1d7$exports = {
|
|
5752
|
-
"removeButtonLabel":
|
|
5753
|
-
"removeDescription":
|
|
6159
|
+
"removeButtonLabel": `\u{423}\u{434}\u{430}\u{43B}\u{438}\u{442}\u{44C}`,
|
|
6160
|
+
"removeDescription": `\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} DELETE, \u{447}\u{442}\u{43E}\u{431}\u{44B} \u{443}\u{434}\u{430}\u{43B}\u{438}\u{442}\u{44C} \u{442}\u{435}\u{433}.`
|
|
5754
6161
|
};
|
|
5755
6162
|
|
|
5756
6163
|
|
|
5757
6164
|
var $51d8721afda4d678$exports = {};
|
|
5758
6165
|
$51d8721afda4d678$exports = {
|
|
5759
|
-
"removeButtonLabel": `
|
|
5760
|
-
"removeDescription": `Ak chcete
|
|
6166
|
+
"removeButtonLabel": `Odstr\xe1ni\u{165}`,
|
|
6167
|
+
"removeDescription": `Ak chcete odstr\xe1ni\u{165} zna\u{10D}ku, stla\u{10D}te kl\xe1ves Delete.`
|
|
5761
6168
|
};
|
|
5762
6169
|
|
|
5763
6170
|
|
|
@@ -5771,42 +6178,42 @@ $fd37a27baae493e8$exports = {
|
|
|
5771
6178
|
var $5505a1ca71ffd6f4$exports = {};
|
|
5772
6179
|
$5505a1ca71ffd6f4$exports = {
|
|
5773
6180
|
"removeButtonLabel": `Ukloni`,
|
|
5774
|
-
"removeDescription": `Pritisnite
|
|
6181
|
+
"removeDescription": `Pritisnite Obri\u{161}i da biste uklonili oznaku.`
|
|
5775
6182
|
};
|
|
5776
6183
|
|
|
5777
6184
|
|
|
5778
6185
|
var $33670e148c84ad02$exports = {};
|
|
5779
6186
|
$33670e148c84ad02$exports = {
|
|
5780
6187
|
"removeButtonLabel": `Ta bort`,
|
|
5781
|
-
"removeDescription": `Tryck
|
|
6188
|
+
"removeDescription": `Tryck p\xe5 Radera f\xf6r att ta bort taggen.`
|
|
5782
6189
|
};
|
|
5783
6190
|
|
|
5784
6191
|
|
|
5785
6192
|
var $0bf46fdcdd7cb5f6$exports = {};
|
|
5786
6193
|
$0bf46fdcdd7cb5f6$exports = {
|
|
5787
|
-
"removeButtonLabel": `
|
|
5788
|
-
"removeDescription": `Etiketi
|
|
6194
|
+
"removeButtonLabel": `Kald\u{131}r`,
|
|
6195
|
+
"removeDescription": `Etiketi kald\u{131}rmak i\xe7in Sil tu\u{15F}una bas\u{131}n.`
|
|
5789
6196
|
};
|
|
5790
6197
|
|
|
5791
6198
|
|
|
5792
6199
|
var $9d9765222bc08ca2$exports = {};
|
|
5793
6200
|
$9d9765222bc08ca2$exports = {
|
|
5794
|
-
"removeButtonLabel":
|
|
5795
|
-
"removeDescription":
|
|
6201
|
+
"removeButtonLabel": `\u{412}\u{438}\u{43B}\u{443}\u{447}\u{438}\u{442}\u{438}`,
|
|
6202
|
+
"removeDescription": `\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} Delete, \u{449}\u{43E}\u{431} \u{432}\u{438}\u{43B}\u{443}\u{447}\u{438}\u{442}\u{438} \u{442}\u{435}\u{433}.`
|
|
5796
6203
|
};
|
|
5797
6204
|
|
|
5798
6205
|
|
|
5799
6206
|
var $d737296cedcdee9f$exports = {};
|
|
5800
6207
|
$d737296cedcdee9f$exports = {
|
|
5801
|
-
"removeButtonLabel":
|
|
5802
|
-
"removeDescription":
|
|
6208
|
+
"removeButtonLabel": `\u{5220}\u{9664}`,
|
|
6209
|
+
"removeDescription": `\u{6309}\u{4E0B}\u{201C}\u{5220}\u{9664}\u{201D}\u{4EE5}\u{5220}\u{9664}\u{6807}\u{8BB0}\u{3002}`
|
|
5803
6210
|
};
|
|
5804
6211
|
|
|
5805
6212
|
|
|
5806
6213
|
var $09cd168ab18773f4$exports = {};
|
|
5807
6214
|
$09cd168ab18773f4$exports = {
|
|
5808
|
-
"removeButtonLabel":
|
|
5809
|
-
"removeDescription":
|
|
6215
|
+
"removeButtonLabel": `\u{79FB}\u{9664}`,
|
|
6216
|
+
"removeDescription": `\u{6309} Delete \u{9375}\u{4EE5}\u{79FB}\u{9664}\u{6A19}\u{8A18}\u{3002}`
|
|
5810
6217
|
};
|
|
5811
6218
|
|
|
5812
6219
|
|
|
@@ -5903,418 +6310,140 @@ function $fc6126c82a4601f1$export$3f568fff7dff2f03(props, state, ref) {
|
|
|
5903
6310
|
};
|
|
5904
6311
|
}
|
|
5905
6312
|
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
* @license React
|
|
5912
|
-
* use-sync-external-store-shim.development.js
|
|
6313
|
+
/*
|
|
6314
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
6315
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6316
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6317
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
5913
6318
|
*
|
|
5914
|
-
*
|
|
6319
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
6320
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
6321
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
6322
|
+
* governing permissions and limitations under the License.
|
|
6323
|
+
*/ /*
|
|
6324
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
6325
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6326
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6327
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
5915
6328
|
*
|
|
5916
|
-
*
|
|
5917
|
-
*
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
6329
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
6330
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
6331
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
6332
|
+
* governing permissions and limitations under the License.
|
|
6333
|
+
*/ /*
|
|
6334
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
6335
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6336
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6337
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6338
|
+
*
|
|
6339
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
6340
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
6341
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
6342
|
+
* governing permissions and limitations under the License.
|
|
6343
|
+
*/ class $e40ea825a81a3709$export$52baac22726c72bf extends Set {
|
|
6344
|
+
constructor(keys, anchorKey, currentKey){
|
|
6345
|
+
super(keys);
|
|
6346
|
+
if (keys instanceof $e40ea825a81a3709$export$52baac22726c72bf) {
|
|
6347
|
+
this.anchorKey = anchorKey || keys.anchorKey;
|
|
6348
|
+
this.currentKey = currentKey || keys.currentKey;
|
|
6349
|
+
} else {
|
|
6350
|
+
this.anchorKey = anchorKey;
|
|
6351
|
+
this.currentKey = currentKey;
|
|
6352
|
+
}
|
|
6353
|
+
}
|
|
6354
|
+
}
|
|
5938
6355
|
|
|
5939
|
-
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
5940
6356
|
|
|
5941
|
-
function error(format) {
|
|
5942
|
-
{
|
|
5943
|
-
{
|
|
5944
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
5945
|
-
args[_key2 - 1] = arguments[_key2];
|
|
5946
|
-
}
|
|
5947
6357
|
|
|
5948
|
-
printWarning('error', format, args);
|
|
5949
|
-
}
|
|
5950
|
-
}
|
|
5951
|
-
}
|
|
5952
6358
|
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
{
|
|
6029
|
-
if (!didWarnUncachedGetSnapshot) {
|
|
6030
|
-
var cachedValue = getSnapshot();
|
|
6031
|
-
|
|
6032
|
-
if (!objectIs(value, cachedValue)) {
|
|
6033
|
-
error('The result of getSnapshot should be cached to avoid an infinite loop');
|
|
6034
|
-
|
|
6035
|
-
didWarnUncachedGetSnapshot = true;
|
|
6036
|
-
}
|
|
6037
|
-
}
|
|
6038
|
-
} // Because updates are synchronous, we don't queue them. Instead we force a
|
|
6039
|
-
// re-render whenever the subscribed state changes by updating an some
|
|
6040
|
-
// arbitrary useState hook. Then, during render, we call getSnapshot to read
|
|
6041
|
-
// the current value.
|
|
6042
|
-
//
|
|
6043
|
-
// Because we don't actually use the state returned by the useState hook, we
|
|
6044
|
-
// can save a bit of memory by storing other stuff in that slot.
|
|
6045
|
-
//
|
|
6046
|
-
// To implement the early bailout, we need to track some things on a mutable
|
|
6047
|
-
// object. Usually, we would put that in a useRef hook, but we can stash it in
|
|
6048
|
-
// our useState hook instead.
|
|
6049
|
-
//
|
|
6050
|
-
// To force a re-render, we call forceUpdate({inst}). That works because the
|
|
6051
|
-
// new object always fails an equality check.
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
var _useState = useState({
|
|
6055
|
-
inst: {
|
|
6056
|
-
value: value,
|
|
6057
|
-
getSnapshot: getSnapshot
|
|
6058
|
-
}
|
|
6059
|
-
}),
|
|
6060
|
-
inst = _useState[0].inst,
|
|
6061
|
-
forceUpdate = _useState[1]; // Track the latest getSnapshot function with a ref. This needs to be updated
|
|
6062
|
-
// in the layout phase so we can access it during the tearing check that
|
|
6063
|
-
// happens on subscribe.
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
useLayoutEffect(function () {
|
|
6067
|
-
inst.value = value;
|
|
6068
|
-
inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the
|
|
6069
|
-
// commit phase if there was an interleaved mutation. In concurrent mode
|
|
6070
|
-
// this can happen all the time, but even in synchronous mode, an earlier
|
|
6071
|
-
// effect may have mutated the store.
|
|
6072
|
-
|
|
6073
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
6074
|
-
// Force a re-render.
|
|
6075
|
-
forceUpdate({
|
|
6076
|
-
inst: inst
|
|
6077
|
-
});
|
|
6078
|
-
}
|
|
6079
|
-
}, [subscribe, value, getSnapshot]);
|
|
6080
|
-
useEffect(function () {
|
|
6081
|
-
// Check for changes right before subscribing. Subsequent changes will be
|
|
6082
|
-
// detected in the subscription handler.
|
|
6083
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
6084
|
-
// Force a re-render.
|
|
6085
|
-
forceUpdate({
|
|
6086
|
-
inst: inst
|
|
6087
|
-
});
|
|
6088
|
-
}
|
|
6089
|
-
|
|
6090
|
-
var handleStoreChange = function () {
|
|
6091
|
-
// TODO: Because there is no cross-renderer API for batching updates, it's
|
|
6092
|
-
// up to the consumer of this library to wrap their subscription event
|
|
6093
|
-
// with unstable_batchedUpdates. Should we try to detect when this isn't
|
|
6094
|
-
// the case and print a warning in development?
|
|
6095
|
-
// The store changed. Check if the snapshot changed since the last time we
|
|
6096
|
-
// read from the store.
|
|
6097
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
6098
|
-
// Force a re-render.
|
|
6099
|
-
forceUpdate({
|
|
6100
|
-
inst: inst
|
|
6101
|
-
});
|
|
6102
|
-
}
|
|
6103
|
-
}; // Subscribe to the store and return a clean-up function.
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
return subscribe(handleStoreChange);
|
|
6107
|
-
}, [subscribe]);
|
|
6108
|
-
useDebugValue(value);
|
|
6109
|
-
return value;
|
|
6110
|
-
}
|
|
6111
|
-
|
|
6112
|
-
function checkIfSnapshotChanged(inst) {
|
|
6113
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
6114
|
-
var prevValue = inst.value;
|
|
6359
|
+
function $7af3f5b51489e0b5$var$equalSets(setA, setB) {
|
|
6360
|
+
if (setA.size !== setB.size) return false;
|
|
6361
|
+
for (let item of setA){
|
|
6362
|
+
if (!setB.has(item)) return false;
|
|
6363
|
+
}
|
|
6364
|
+
return true;
|
|
6365
|
+
}
|
|
6366
|
+
function $7af3f5b51489e0b5$export$253fe78d46329472(props) {
|
|
6367
|
+
let { selectionMode: selectionMode = "none", disallowEmptySelection: disallowEmptySelection, allowDuplicateSelectionEvents: allowDuplicateSelectionEvents, selectionBehavior: selectionBehaviorProp = "toggle", disabledBehavior: disabledBehavior = "all" } = props;
|
|
6368
|
+
// We want synchronous updates to `isFocused` and `focusedKey` after their setters are called.
|
|
6369
|
+
// But we also need to trigger a react re-render. So, we have both a ref (sync) and state (async).
|
|
6370
|
+
let isFocusedRef = ($dGqE5$react.useRef)(false);
|
|
6371
|
+
let [, setFocused] = ($dGqE5$react.useState)(false);
|
|
6372
|
+
let focusedKeyRef = ($dGqE5$react.useRef)(null);
|
|
6373
|
+
let childFocusStrategyRef = ($dGqE5$react.useRef)(null);
|
|
6374
|
+
let [, setFocusedKey] = ($dGqE5$react.useState)(null);
|
|
6375
|
+
let selectedKeysProp = ($dGqE5$react.useMemo)(()=>$7af3f5b51489e0b5$var$convertSelection(props.selectedKeys), [
|
|
6376
|
+
props.selectedKeys
|
|
6377
|
+
]);
|
|
6378
|
+
let defaultSelectedKeys = ($dGqE5$react.useMemo)(()=>$7af3f5b51489e0b5$var$convertSelection(props.defaultSelectedKeys, new ($e40ea825a81a3709$export$52baac22726c72bf)()), [
|
|
6379
|
+
props.defaultSelectedKeys
|
|
6380
|
+
]);
|
|
6381
|
+
let [selectedKeys, setSelectedKeys] = ($458b0a5536c1a7cf$export$40bfa8c7b0832715)(selectedKeysProp, defaultSelectedKeys, props.onSelectionChange);
|
|
6382
|
+
let disabledKeysProp = ($dGqE5$react.useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [
|
|
6383
|
+
props.disabledKeys
|
|
6384
|
+
]);
|
|
6385
|
+
let [selectionBehavior, setSelectionBehavior] = ($dGqE5$react.useState)(selectionBehaviorProp);
|
|
6386
|
+
// If the selectionBehavior prop is set to replace, but the current state is toggle (e.g. due to long press
|
|
6387
|
+
// to enter selection mode on touch), and the selection becomes empty, reset the selection behavior.
|
|
6388
|
+
if (selectionBehaviorProp === "replace" && selectionBehavior === "toggle" && typeof selectedKeys === "object" && selectedKeys.size === 0) setSelectionBehavior("replace");
|
|
6389
|
+
// If the selectionBehavior prop changes, update the state as well.
|
|
6390
|
+
let lastSelectionBehavior = ($dGqE5$react.useRef)(selectionBehaviorProp);
|
|
6391
|
+
($dGqE5$react.useEffect)(()=>{
|
|
6392
|
+
if (selectionBehaviorProp !== lastSelectionBehavior.current) {
|
|
6393
|
+
setSelectionBehavior(selectionBehaviorProp);
|
|
6394
|
+
lastSelectionBehavior.current = selectionBehaviorProp;
|
|
6395
|
+
}
|
|
6396
|
+
}, [
|
|
6397
|
+
selectionBehaviorProp
|
|
6398
|
+
]);
|
|
6399
|
+
return {
|
|
6400
|
+
selectionMode: selectionMode,
|
|
6401
|
+
disallowEmptySelection: disallowEmptySelection,
|
|
6402
|
+
selectionBehavior: selectionBehavior,
|
|
6403
|
+
setSelectionBehavior: setSelectionBehavior,
|
|
6404
|
+
get isFocused () {
|
|
6405
|
+
return isFocusedRef.current;
|
|
6406
|
+
},
|
|
6407
|
+
setFocused (f) {
|
|
6408
|
+
isFocusedRef.current = f;
|
|
6409
|
+
setFocused(f);
|
|
6410
|
+
},
|
|
6411
|
+
get focusedKey () {
|
|
6412
|
+
return focusedKeyRef.current;
|
|
6413
|
+
},
|
|
6414
|
+
get childFocusStrategy () {
|
|
6415
|
+
return childFocusStrategyRef.current;
|
|
6416
|
+
},
|
|
6417
|
+
setFocusedKey (k, childFocusStrategy = "first") {
|
|
6418
|
+
focusedKeyRef.current = k;
|
|
6419
|
+
childFocusStrategyRef.current = childFocusStrategy;
|
|
6420
|
+
setFocusedKey(k);
|
|
6421
|
+
},
|
|
6422
|
+
selectedKeys: selectedKeys,
|
|
6423
|
+
setSelectedKeys (keys) {
|
|
6424
|
+
if (allowDuplicateSelectionEvents || !$7af3f5b51489e0b5$var$equalSets(keys, selectedKeys)) setSelectedKeys(keys);
|
|
6425
|
+
},
|
|
6426
|
+
disabledKeys: disabledKeysProp,
|
|
6427
|
+
disabledBehavior: disabledBehavior
|
|
6428
|
+
};
|
|
6429
|
+
}
|
|
6430
|
+
function $7af3f5b51489e0b5$var$convertSelection(selection, defaultValue) {
|
|
6431
|
+
if (!selection) return defaultValue;
|
|
6432
|
+
return selection === "all" ? "all" : new ($e40ea825a81a3709$export$52baac22726c72bf)(selection);
|
|
6433
|
+
}
|
|
6115
6434
|
|
|
6116
|
-
try {
|
|
6117
|
-
var nextValue = latestGetSnapshot();
|
|
6118
|
-
return !objectIs(prevValue, nextValue);
|
|
6119
|
-
} catch (error) {
|
|
6120
|
-
return true;
|
|
6121
|
-
}
|
|
6122
|
-
}
|
|
6123
6435
|
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
|
|
6137
|
-
var useSyncExternalStore$2 = React.useSyncExternalStore !== undefined ? React.useSyncExternalStore : shim;
|
|
6138
|
-
|
|
6139
|
-
useSyncExternalStoreShim_development.useSyncExternalStore = useSyncExternalStore$2;
|
|
6140
|
-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
6141
|
-
if (
|
|
6142
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
6143
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
|
|
6144
|
-
'function'
|
|
6145
|
-
) {
|
|
6146
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
6147
|
-
}
|
|
6148
|
-
|
|
6149
|
-
})();
|
|
6150
|
-
}
|
|
6151
|
-
return useSyncExternalStoreShim_development;
|
|
6152
|
-
}
|
|
6153
|
-
|
|
6154
|
-
var useSyncExternalStoreShim_production_min = {};
|
|
6155
|
-
|
|
6156
|
-
/**
|
|
6157
|
-
* @license React
|
|
6158
|
-
* use-sync-external-store-shim.production.min.js
|
|
6159
|
-
*
|
|
6160
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6161
|
-
*
|
|
6162
|
-
* This source code is licensed under the MIT license found in the
|
|
6163
|
-
* LICENSE file in the root directory of this source tree.
|
|
6164
|
-
*/
|
|
6165
|
-
|
|
6166
|
-
var hasRequiredUseSyncExternalStoreShim_production_min;
|
|
6167
|
-
|
|
6168
|
-
function requireUseSyncExternalStoreShim_production_min () {
|
|
6169
|
-
if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
|
|
6170
|
-
hasRequiredUseSyncExternalStoreShim_production_min = 1;
|
|
6171
|
-
var e=$dGqE5$react;function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k="function"===typeof Object.is?Object.is:h,l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c});},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c});})},[a]);p(d);return d}
|
|
6172
|
-
function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return !k(a,d)}catch(f){return !0}}function t(a,b){return b()}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?t:q;useSyncExternalStoreShim_production_min.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u;
|
|
6173
|
-
return useSyncExternalStoreShim_production_min;
|
|
6174
|
-
}
|
|
6175
|
-
|
|
6176
|
-
if (process.env.NODE_ENV === 'production') {
|
|
6177
|
-
shim.exports = requireUseSyncExternalStoreShim_production_min();
|
|
6178
|
-
} else {
|
|
6179
|
-
shim.exports = requireUseSyncExternalStoreShim_development();
|
|
6180
|
-
}
|
|
6181
|
-
|
|
6182
|
-
var shimExports = shim.exports;
|
|
6183
|
-
|
|
6184
|
-
/*
|
|
6185
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
6186
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6187
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6188
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6189
|
-
*
|
|
6190
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
6191
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
6192
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
6193
|
-
* governing permissions and limitations under the License.
|
|
6194
|
-
*/ /*
|
|
6195
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
6196
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6197
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6198
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6199
|
-
*
|
|
6200
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
6201
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
6202
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
6203
|
-
* governing permissions and limitations under the License.
|
|
6204
|
-
*/
|
|
6205
|
-
/*
|
|
6206
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
6207
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6208
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6209
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6210
|
-
*
|
|
6211
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
6212
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
6213
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
6214
|
-
* governing permissions and limitations under the License.
|
|
6215
|
-
*/ class $e40ea825a81a3709$export$52baac22726c72bf extends Set {
|
|
6216
|
-
constructor(keys, anchorKey, currentKey){
|
|
6217
|
-
super(keys);
|
|
6218
|
-
if (keys instanceof $e40ea825a81a3709$export$52baac22726c72bf) {
|
|
6219
|
-
this.anchorKey = anchorKey || keys.anchorKey;
|
|
6220
|
-
this.currentKey = currentKey || keys.currentKey;
|
|
6221
|
-
} else {
|
|
6222
|
-
this.anchorKey = anchorKey;
|
|
6223
|
-
this.currentKey = currentKey;
|
|
6224
|
-
}
|
|
6225
|
-
}
|
|
6226
|
-
}
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
function $7af3f5b51489e0b5$var$equalSets(setA, setB) {
|
|
6231
|
-
if (setA.size !== setB.size) return false;
|
|
6232
|
-
for (let item of setA){
|
|
6233
|
-
if (!setB.has(item)) return false;
|
|
6234
|
-
}
|
|
6235
|
-
return true;
|
|
6236
|
-
}
|
|
6237
|
-
function $7af3f5b51489e0b5$export$253fe78d46329472(props) {
|
|
6238
|
-
let { selectionMode: selectionMode = "none", disallowEmptySelection: disallowEmptySelection, allowDuplicateSelectionEvents: allowDuplicateSelectionEvents, selectionBehavior: selectionBehaviorProp = "toggle", disabledBehavior: disabledBehavior = "all" } = props;
|
|
6239
|
-
// We want synchronous updates to `isFocused` and `focusedKey` after their setters are called.
|
|
6240
|
-
// But we also need to trigger a react re-render. So, we have both a ref (sync) and state (async).
|
|
6241
|
-
let isFocusedRef = ($dGqE5$react.useRef)(false);
|
|
6242
|
-
let [, setFocused] = ($dGqE5$react.useState)(false);
|
|
6243
|
-
let focusedKeyRef = ($dGqE5$react.useRef)(null);
|
|
6244
|
-
let childFocusStrategyRef = ($dGqE5$react.useRef)(null);
|
|
6245
|
-
let [, setFocusedKey] = ($dGqE5$react.useState)(null);
|
|
6246
|
-
let selectedKeysProp = ($dGqE5$react.useMemo)(()=>$7af3f5b51489e0b5$var$convertSelection(props.selectedKeys), [
|
|
6247
|
-
props.selectedKeys
|
|
6248
|
-
]);
|
|
6249
|
-
let defaultSelectedKeys = ($dGqE5$react.useMemo)(()=>$7af3f5b51489e0b5$var$convertSelection(props.defaultSelectedKeys, new ($e40ea825a81a3709$export$52baac22726c72bf)()), [
|
|
6250
|
-
props.defaultSelectedKeys
|
|
6251
|
-
]);
|
|
6252
|
-
let [selectedKeys, setSelectedKeys] = ($458b0a5536c1a7cf$export$40bfa8c7b0832715)(selectedKeysProp, defaultSelectedKeys, props.onSelectionChange);
|
|
6253
|
-
let disabledKeysProp = ($dGqE5$react.useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [
|
|
6254
|
-
props.disabledKeys
|
|
6255
|
-
]);
|
|
6256
|
-
let [selectionBehavior, setSelectionBehavior] = ($dGqE5$react.useState)(selectionBehaviorProp);
|
|
6257
|
-
// If the selectionBehavior prop is set to replace, but the current state is toggle (e.g. due to long press
|
|
6258
|
-
// to enter selection mode on touch), and the selection becomes empty, reset the selection behavior.
|
|
6259
|
-
if (selectionBehaviorProp === "replace" && selectionBehavior === "toggle" && typeof selectedKeys === "object" && selectedKeys.size === 0) setSelectionBehavior("replace");
|
|
6260
|
-
// If the selectionBehavior prop changes, update the state as well.
|
|
6261
|
-
let lastSelectionBehavior = ($dGqE5$react.useRef)(selectionBehaviorProp);
|
|
6262
|
-
($dGqE5$react.useEffect)(()=>{
|
|
6263
|
-
if (selectionBehaviorProp !== lastSelectionBehavior.current) {
|
|
6264
|
-
setSelectionBehavior(selectionBehaviorProp);
|
|
6265
|
-
lastSelectionBehavior.current = selectionBehaviorProp;
|
|
6266
|
-
}
|
|
6267
|
-
}, [
|
|
6268
|
-
selectionBehaviorProp
|
|
6269
|
-
]);
|
|
6270
|
-
return {
|
|
6271
|
-
selectionMode: selectionMode,
|
|
6272
|
-
disallowEmptySelection: disallowEmptySelection,
|
|
6273
|
-
selectionBehavior: selectionBehavior,
|
|
6274
|
-
setSelectionBehavior: setSelectionBehavior,
|
|
6275
|
-
get isFocused () {
|
|
6276
|
-
return isFocusedRef.current;
|
|
6277
|
-
},
|
|
6278
|
-
setFocused (f) {
|
|
6279
|
-
isFocusedRef.current = f;
|
|
6280
|
-
setFocused(f);
|
|
6281
|
-
},
|
|
6282
|
-
get focusedKey () {
|
|
6283
|
-
return focusedKeyRef.current;
|
|
6284
|
-
},
|
|
6285
|
-
get childFocusStrategy () {
|
|
6286
|
-
return childFocusStrategyRef.current;
|
|
6287
|
-
},
|
|
6288
|
-
setFocusedKey (k, childFocusStrategy = "first") {
|
|
6289
|
-
focusedKeyRef.current = k;
|
|
6290
|
-
childFocusStrategyRef.current = childFocusStrategy;
|
|
6291
|
-
setFocusedKey(k);
|
|
6292
|
-
},
|
|
6293
|
-
selectedKeys: selectedKeys,
|
|
6294
|
-
setSelectedKeys (keys) {
|
|
6295
|
-
if (allowDuplicateSelectionEvents || !$7af3f5b51489e0b5$var$equalSets(keys, selectedKeys)) setSelectedKeys(keys);
|
|
6296
|
-
},
|
|
6297
|
-
disabledKeys: disabledKeysProp,
|
|
6298
|
-
disabledBehavior: disabledBehavior
|
|
6299
|
-
};
|
|
6300
|
-
}
|
|
6301
|
-
function $7af3f5b51489e0b5$var$convertSelection(selection, defaultValue) {
|
|
6302
|
-
if (!selection) return defaultValue;
|
|
6303
|
-
return selection === "all" ? "all" : new ($e40ea825a81a3709$export$52baac22726c72bf)(selection);
|
|
6304
|
-
}
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
/*
|
|
6308
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
6309
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6310
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6311
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6312
|
-
*
|
|
6313
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
6314
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
6315
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
6316
|
-
* governing permissions and limitations under the License.
|
|
6317
|
-
*/
|
|
6436
|
+
/*
|
|
6437
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
6438
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6439
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6440
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6441
|
+
*
|
|
6442
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
6443
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
6444
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
6445
|
+
* governing permissions and limitations under the License.
|
|
6446
|
+
*/
|
|
6318
6447
|
|
|
6319
6448
|
class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
6320
6449
|
/**
|
|
@@ -6581,7 +6710,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
|
6581
6710
|
return this.state.disabledKeys.has(key) && this.state.disabledBehavior === "all";
|
|
6582
6711
|
}
|
|
6583
6712
|
isLink(key) {
|
|
6584
|
-
var
|
|
6713
|
+
var _this_collection_getItem_props, _this_collection_getItem;
|
|
6585
6714
|
return !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0 ? void 0 : _this_collection_getItem_props.href);
|
|
6586
6715
|
}
|
|
6587
6716
|
constructor(collection, state, options){
|
|
@@ -6593,172 +6722,450 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
|
6593
6722
|
}
|
|
6594
6723
|
}
|
|
6595
6724
|
|
|
6596
|
-
/*
|
|
6597
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
6598
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6599
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6600
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6601
|
-
*
|
|
6602
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
6603
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
6604
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
6605
|
-
* governing permissions and limitations under the License.
|
|
6606
|
-
*/ /*
|
|
6607
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
6608
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6609
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6610
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6725
|
+
/*
|
|
6726
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
6727
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6728
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6729
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6730
|
+
*
|
|
6731
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
6732
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
6733
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
6734
|
+
* governing permissions and limitations under the License.
|
|
6735
|
+
*/ /*
|
|
6736
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
6737
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6738
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6739
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6740
|
+
*
|
|
6741
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
6742
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
6743
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
6744
|
+
* governing permissions and limitations under the License.
|
|
6745
|
+
*/ /*
|
|
6746
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
6747
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6748
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6749
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6750
|
+
*
|
|
6751
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
6752
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
6753
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
6754
|
+
* governing permissions and limitations under the License.
|
|
6755
|
+
*/ class $a02d57049d202695$export$d085fb9e920b5ca7 {
|
|
6756
|
+
*[Symbol.iterator]() {
|
|
6757
|
+
yield* this.iterable;
|
|
6758
|
+
}
|
|
6759
|
+
get size() {
|
|
6760
|
+
return this.keyMap.size;
|
|
6761
|
+
}
|
|
6762
|
+
getKeys() {
|
|
6763
|
+
return this.keyMap.keys();
|
|
6764
|
+
}
|
|
6765
|
+
getKeyBefore(key) {
|
|
6766
|
+
let node = this.keyMap.get(key);
|
|
6767
|
+
return node ? node.prevKey : null;
|
|
6768
|
+
}
|
|
6769
|
+
getKeyAfter(key) {
|
|
6770
|
+
let node = this.keyMap.get(key);
|
|
6771
|
+
return node ? node.nextKey : null;
|
|
6772
|
+
}
|
|
6773
|
+
getFirstKey() {
|
|
6774
|
+
return this.firstKey;
|
|
6775
|
+
}
|
|
6776
|
+
getLastKey() {
|
|
6777
|
+
return this.lastKey;
|
|
6778
|
+
}
|
|
6779
|
+
getItem(key) {
|
|
6780
|
+
return this.keyMap.get(key);
|
|
6781
|
+
}
|
|
6782
|
+
at(idx) {
|
|
6783
|
+
const keys = [
|
|
6784
|
+
...this.getKeys()
|
|
6785
|
+
];
|
|
6786
|
+
return this.getItem(keys[idx]);
|
|
6787
|
+
}
|
|
6788
|
+
getChildren(key) {
|
|
6789
|
+
let node = this.keyMap.get(key);
|
|
6790
|
+
return (node === null || node === void 0 ? void 0 : node.childNodes) || [];
|
|
6791
|
+
}
|
|
6792
|
+
constructor(nodes){
|
|
6793
|
+
this.keyMap = new Map();
|
|
6794
|
+
this.iterable = nodes;
|
|
6795
|
+
let visit = (node)=>{
|
|
6796
|
+
this.keyMap.set(node.key, node);
|
|
6797
|
+
if (node.childNodes && node.type === "section") for (let child of node.childNodes)visit(child);
|
|
6798
|
+
};
|
|
6799
|
+
for (let node of nodes)visit(node);
|
|
6800
|
+
let last;
|
|
6801
|
+
let index = 0;
|
|
6802
|
+
for (let [key, node] of this.keyMap){
|
|
6803
|
+
if (last) {
|
|
6804
|
+
last.nextKey = key;
|
|
6805
|
+
node.prevKey = last.key;
|
|
6806
|
+
} else {
|
|
6807
|
+
this.firstKey = key;
|
|
6808
|
+
node.prevKey = undefined;
|
|
6809
|
+
}
|
|
6810
|
+
if (node.type === "item") node.index = index++;
|
|
6811
|
+
last = node;
|
|
6812
|
+
// Set nextKey as undefined since this might be the last node
|
|
6813
|
+
// If it isn't the last node, last.nextKey will properly set at start of new loop
|
|
6814
|
+
last.nextKey = undefined;
|
|
6815
|
+
}
|
|
6816
|
+
this.lastKey = last === null || last === void 0 ? void 0 : last.key;
|
|
6817
|
+
}
|
|
6818
|
+
}
|
|
6819
|
+
|
|
6820
|
+
|
|
6821
|
+
|
|
6822
|
+
|
|
6823
|
+
|
|
6824
|
+
function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
|
|
6825
|
+
let { filter: filter } = props;
|
|
6826
|
+
let selectionState = ($7af3f5b51489e0b5$export$253fe78d46329472)(props);
|
|
6827
|
+
let disabledKeys = ($dGqE5$react.useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [
|
|
6828
|
+
props.disabledKeys
|
|
6829
|
+
]);
|
|
6830
|
+
let factory = ($dGqE5$react.useCallback)((nodes)=>filter ? new ($a02d57049d202695$export$d085fb9e920b5ca7)(filter(nodes)) : new ($a02d57049d202695$export$d085fb9e920b5ca7)(nodes), [
|
|
6831
|
+
filter
|
|
6832
|
+
]);
|
|
6833
|
+
let context = ($dGqE5$react.useMemo)(()=>({
|
|
6834
|
+
suppressTextValueWarning: props.suppressTextValueWarning
|
|
6835
|
+
}), [
|
|
6836
|
+
props.suppressTextValueWarning
|
|
6837
|
+
]);
|
|
6838
|
+
let collection = ($7613b1592d41b092$export$6cd28814d92fa9c9)(props, factory, context);
|
|
6839
|
+
let selectionManager = ($dGqE5$react.useMemo)(()=>new ($d496c0a20b6e58ec$export$6c8a5aaad13c9852)(collection, selectionState), [
|
|
6840
|
+
collection,
|
|
6841
|
+
selectionState
|
|
6842
|
+
]);
|
|
6843
|
+
// Reset focused key if that item is deleted from the collection.
|
|
6844
|
+
const cachedCollection = ($dGqE5$react.useRef)(null);
|
|
6845
|
+
($dGqE5$react.useEffect)(()=>{
|
|
6846
|
+
if (selectionState.focusedKey != null && !collection.getItem(selectionState.focusedKey)) {
|
|
6847
|
+
const startItem = cachedCollection.current.getItem(selectionState.focusedKey);
|
|
6848
|
+
const cachedItemNodes = [
|
|
6849
|
+
...cachedCollection.current.getKeys()
|
|
6850
|
+
].map((key)=>{
|
|
6851
|
+
const itemNode = cachedCollection.current.getItem(key);
|
|
6852
|
+
return itemNode.type === "item" ? itemNode : null;
|
|
6853
|
+
}).filter((node)=>node !== null);
|
|
6854
|
+
const itemNodes = [
|
|
6855
|
+
...collection.getKeys()
|
|
6856
|
+
].map((key)=>{
|
|
6857
|
+
const itemNode = collection.getItem(key);
|
|
6858
|
+
return itemNode.type === "item" ? itemNode : null;
|
|
6859
|
+
}).filter((node)=>node !== null);
|
|
6860
|
+
const diff = cachedItemNodes.length - itemNodes.length;
|
|
6861
|
+
let index = Math.min(diff > 1 ? Math.max(startItem.index - diff + 1, 0) : startItem.index, itemNodes.length - 1);
|
|
6862
|
+
let newNode;
|
|
6863
|
+
while(index >= 0){
|
|
6864
|
+
if (!selectionManager.isDisabled(itemNodes[index].key)) {
|
|
6865
|
+
newNode = itemNodes[index];
|
|
6866
|
+
break;
|
|
6867
|
+
}
|
|
6868
|
+
// Find next, not disabled item.
|
|
6869
|
+
if (index < itemNodes.length - 1) index++;
|
|
6870
|
+
else {
|
|
6871
|
+
if (index > startItem.index) index = startItem.index;
|
|
6872
|
+
index--;
|
|
6873
|
+
}
|
|
6874
|
+
}
|
|
6875
|
+
selectionState.setFocusedKey(newNode ? newNode.key : null);
|
|
6876
|
+
}
|
|
6877
|
+
cachedCollection.current = collection;
|
|
6878
|
+
}, [
|
|
6879
|
+
collection,
|
|
6880
|
+
selectionManager,
|
|
6881
|
+
selectionState,
|
|
6882
|
+
selectionState.focusedKey
|
|
6883
|
+
]);
|
|
6884
|
+
return {
|
|
6885
|
+
collection: collection,
|
|
6886
|
+
disabledKeys: disabledKeys,
|
|
6887
|
+
selectionManager: selectionManager
|
|
6888
|
+
};
|
|
6889
|
+
}
|
|
6890
|
+
|
|
6891
|
+
var shim = {exports: {}};
|
|
6892
|
+
|
|
6893
|
+
var useSyncExternalStoreShim_development = {};
|
|
6894
|
+
|
|
6895
|
+
/**
|
|
6896
|
+
* @license React
|
|
6897
|
+
* use-sync-external-store-shim.development.js
|
|
6898
|
+
*
|
|
6899
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6900
|
+
*
|
|
6901
|
+
* This source code is licensed under the MIT license found in the
|
|
6902
|
+
* LICENSE file in the root directory of this source tree.
|
|
6903
|
+
*/
|
|
6904
|
+
|
|
6905
|
+
var hasRequiredUseSyncExternalStoreShim_development;
|
|
6906
|
+
|
|
6907
|
+
function requireUseSyncExternalStoreShim_development () {
|
|
6908
|
+
if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
|
|
6909
|
+
hasRequiredUseSyncExternalStoreShim_development = 1;
|
|
6910
|
+
|
|
6911
|
+
if (process.env.NODE_ENV !== "production") {
|
|
6912
|
+
(function() {
|
|
6913
|
+
|
|
6914
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
6915
|
+
if (
|
|
6916
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
6917
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
|
|
6918
|
+
'function'
|
|
6919
|
+
) {
|
|
6920
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
6921
|
+
}
|
|
6922
|
+
var React = $dGqE5$react;
|
|
6923
|
+
|
|
6924
|
+
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
6925
|
+
|
|
6926
|
+
function error(format) {
|
|
6927
|
+
{
|
|
6928
|
+
{
|
|
6929
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
6930
|
+
args[_key2 - 1] = arguments[_key2];
|
|
6931
|
+
}
|
|
6932
|
+
|
|
6933
|
+
printWarning('error', format, args);
|
|
6934
|
+
}
|
|
6935
|
+
}
|
|
6936
|
+
}
|
|
6937
|
+
|
|
6938
|
+
function printWarning(level, format, args) {
|
|
6939
|
+
// When changing this logic, you might want to also
|
|
6940
|
+
// update consoleWithStackDev.www.js as well.
|
|
6941
|
+
{
|
|
6942
|
+
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
6943
|
+
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
6944
|
+
|
|
6945
|
+
if (stack !== '') {
|
|
6946
|
+
format += '%s';
|
|
6947
|
+
args = args.concat([stack]);
|
|
6948
|
+
} // eslint-disable-next-line react-internal/safe-string-coercion
|
|
6949
|
+
|
|
6950
|
+
|
|
6951
|
+
var argsWithFormat = args.map(function (item) {
|
|
6952
|
+
return String(item);
|
|
6953
|
+
}); // Careful: RN currently depends on this prefix
|
|
6954
|
+
|
|
6955
|
+
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
|
|
6956
|
+
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
6957
|
+
// eslint-disable-next-line react-internal/no-production-logging
|
|
6958
|
+
|
|
6959
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
6960
|
+
}
|
|
6961
|
+
}
|
|
6962
|
+
|
|
6963
|
+
/**
|
|
6964
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
6965
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
6966
|
+
*/
|
|
6967
|
+
function is(x, y) {
|
|
6968
|
+
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
|
|
6969
|
+
;
|
|
6970
|
+
}
|
|
6971
|
+
|
|
6972
|
+
var objectIs = typeof Object.is === 'function' ? Object.is : is;
|
|
6973
|
+
|
|
6974
|
+
// dispatch for CommonJS interop named imports.
|
|
6975
|
+
|
|
6976
|
+
var useState = React.useState,
|
|
6977
|
+
useEffect = React.useEffect,
|
|
6978
|
+
useLayoutEffect = React.useLayoutEffect,
|
|
6979
|
+
useDebugValue = React.useDebugValue;
|
|
6980
|
+
var didWarnOld18Alpha = false;
|
|
6981
|
+
var didWarnUncachedGetSnapshot = false; // Disclaimer: This shim breaks many of the rules of React, and only works
|
|
6982
|
+
// because of a very particular set of implementation details and assumptions
|
|
6983
|
+
// -- change any one of them and it will break. The most important assumption
|
|
6984
|
+
// is that updates are always synchronous, because concurrent rendering is
|
|
6985
|
+
// only available in versions of React that also have a built-in
|
|
6986
|
+
// useSyncExternalStore API. And we only use this shim when the built-in API
|
|
6987
|
+
// does not exist.
|
|
6988
|
+
//
|
|
6989
|
+
// Do not assume that the clever hacks used by this hook also work in general.
|
|
6990
|
+
// The point of this shim is to replace the need for hacks by other libraries.
|
|
6991
|
+
|
|
6992
|
+
function useSyncExternalStore(subscribe, getSnapshot, // Note: The shim does not use getServerSnapshot, because pre-18 versions of
|
|
6993
|
+
// React do not expose a way to check if we're hydrating. So users of the shim
|
|
6994
|
+
// will need to track that themselves and return the correct value
|
|
6995
|
+
// from `getSnapshot`.
|
|
6996
|
+
getServerSnapshot) {
|
|
6997
|
+
{
|
|
6998
|
+
if (!didWarnOld18Alpha) {
|
|
6999
|
+
if (React.startTransition !== undefined) {
|
|
7000
|
+
didWarnOld18Alpha = true;
|
|
7001
|
+
|
|
7002
|
+
error('You are using an outdated, pre-release alpha of React 18 that ' + 'does not support useSyncExternalStore. The ' + 'use-sync-external-store shim will not work correctly. Upgrade ' + 'to a newer pre-release.');
|
|
7003
|
+
}
|
|
7004
|
+
}
|
|
7005
|
+
} // Read the current snapshot from the store on every render. Again, this
|
|
7006
|
+
// breaks the rules of React, and only works here because of specific
|
|
7007
|
+
// implementation details, most importantly that updates are
|
|
7008
|
+
// always synchronous.
|
|
7009
|
+
|
|
7010
|
+
|
|
7011
|
+
var value = getSnapshot();
|
|
7012
|
+
|
|
7013
|
+
{
|
|
7014
|
+
if (!didWarnUncachedGetSnapshot) {
|
|
7015
|
+
var cachedValue = getSnapshot();
|
|
7016
|
+
|
|
7017
|
+
if (!objectIs(value, cachedValue)) {
|
|
7018
|
+
error('The result of getSnapshot should be cached to avoid an infinite loop');
|
|
7019
|
+
|
|
7020
|
+
didWarnUncachedGetSnapshot = true;
|
|
7021
|
+
}
|
|
7022
|
+
}
|
|
7023
|
+
} // Because updates are synchronous, we don't queue them. Instead we force a
|
|
7024
|
+
// re-render whenever the subscribed state changes by updating an some
|
|
7025
|
+
// arbitrary useState hook. Then, during render, we call getSnapshot to read
|
|
7026
|
+
// the current value.
|
|
7027
|
+
//
|
|
7028
|
+
// Because we don't actually use the state returned by the useState hook, we
|
|
7029
|
+
// can save a bit of memory by storing other stuff in that slot.
|
|
7030
|
+
//
|
|
7031
|
+
// To implement the early bailout, we need to track some things on a mutable
|
|
7032
|
+
// object. Usually, we would put that in a useRef hook, but we can stash it in
|
|
7033
|
+
// our useState hook instead.
|
|
7034
|
+
//
|
|
7035
|
+
// To force a re-render, we call forceUpdate({inst}). That works because the
|
|
7036
|
+
// new object always fails an equality check.
|
|
7037
|
+
|
|
7038
|
+
|
|
7039
|
+
var _useState = useState({
|
|
7040
|
+
inst: {
|
|
7041
|
+
value: value,
|
|
7042
|
+
getSnapshot: getSnapshot
|
|
7043
|
+
}
|
|
7044
|
+
}),
|
|
7045
|
+
inst = _useState[0].inst,
|
|
7046
|
+
forceUpdate = _useState[1]; // Track the latest getSnapshot function with a ref. This needs to be updated
|
|
7047
|
+
// in the layout phase so we can access it during the tearing check that
|
|
7048
|
+
// happens on subscribe.
|
|
7049
|
+
|
|
7050
|
+
|
|
7051
|
+
useLayoutEffect(function () {
|
|
7052
|
+
inst.value = value;
|
|
7053
|
+
inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the
|
|
7054
|
+
// commit phase if there was an interleaved mutation. In concurrent mode
|
|
7055
|
+
// this can happen all the time, but even in synchronous mode, an earlier
|
|
7056
|
+
// effect may have mutated the store.
|
|
7057
|
+
|
|
7058
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
7059
|
+
// Force a re-render.
|
|
7060
|
+
forceUpdate({
|
|
7061
|
+
inst: inst
|
|
7062
|
+
});
|
|
7063
|
+
}
|
|
7064
|
+
}, [subscribe, value, getSnapshot]);
|
|
7065
|
+
useEffect(function () {
|
|
7066
|
+
// Check for changes right before subscribing. Subsequent changes will be
|
|
7067
|
+
// detected in the subscription handler.
|
|
7068
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
7069
|
+
// Force a re-render.
|
|
7070
|
+
forceUpdate({
|
|
7071
|
+
inst: inst
|
|
7072
|
+
});
|
|
7073
|
+
}
|
|
7074
|
+
|
|
7075
|
+
var handleStoreChange = function () {
|
|
7076
|
+
// TODO: Because there is no cross-renderer API for batching updates, it's
|
|
7077
|
+
// up to the consumer of this library to wrap their subscription event
|
|
7078
|
+
// with unstable_batchedUpdates. Should we try to detect when this isn't
|
|
7079
|
+
// the case and print a warning in development?
|
|
7080
|
+
// The store changed. Check if the snapshot changed since the last time we
|
|
7081
|
+
// read from the store.
|
|
7082
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
7083
|
+
// Force a re-render.
|
|
7084
|
+
forceUpdate({
|
|
7085
|
+
inst: inst
|
|
7086
|
+
});
|
|
7087
|
+
}
|
|
7088
|
+
}; // Subscribe to the store and return a clean-up function.
|
|
7089
|
+
|
|
7090
|
+
|
|
7091
|
+
return subscribe(handleStoreChange);
|
|
7092
|
+
}, [subscribe]);
|
|
7093
|
+
useDebugValue(value);
|
|
7094
|
+
return value;
|
|
7095
|
+
}
|
|
7096
|
+
|
|
7097
|
+
function checkIfSnapshotChanged(inst) {
|
|
7098
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
7099
|
+
var prevValue = inst.value;
|
|
7100
|
+
|
|
7101
|
+
try {
|
|
7102
|
+
var nextValue = latestGetSnapshot();
|
|
7103
|
+
return !objectIs(prevValue, nextValue);
|
|
7104
|
+
} catch (error) {
|
|
7105
|
+
return true;
|
|
7106
|
+
}
|
|
7107
|
+
}
|
|
7108
|
+
|
|
7109
|
+
function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
|
|
7110
|
+
// Note: The shim does not use getServerSnapshot, because pre-18 versions of
|
|
7111
|
+
// React do not expose a way to check if we're hydrating. So users of the shim
|
|
7112
|
+
// will need to track that themselves and return the correct value
|
|
7113
|
+
// from `getSnapshot`.
|
|
7114
|
+
return getSnapshot();
|
|
7115
|
+
}
|
|
7116
|
+
|
|
7117
|
+
var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
|
|
7118
|
+
|
|
7119
|
+
var isServerEnvironment = !canUseDOM;
|
|
7120
|
+
|
|
7121
|
+
var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
|
|
7122
|
+
var useSyncExternalStore$2 = React.useSyncExternalStore !== undefined ? React.useSyncExternalStore : shim;
|
|
7123
|
+
|
|
7124
|
+
useSyncExternalStoreShim_development.useSyncExternalStore = useSyncExternalStore$2;
|
|
7125
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
7126
|
+
if (
|
|
7127
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
7128
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
|
|
7129
|
+
'function'
|
|
7130
|
+
) {
|
|
7131
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
7132
|
+
}
|
|
7133
|
+
|
|
7134
|
+
})();
|
|
7135
|
+
}
|
|
7136
|
+
return useSyncExternalStoreShim_development;
|
|
7137
|
+
}
|
|
7138
|
+
|
|
7139
|
+
var useSyncExternalStoreShim_production_min = {};
|
|
7140
|
+
|
|
7141
|
+
/**
|
|
7142
|
+
* @license React
|
|
7143
|
+
* use-sync-external-store-shim.production.min.js
|
|
6611
7144
|
*
|
|
6612
|
-
*
|
|
6613
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
6614
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
6615
|
-
* governing permissions and limitations under the License.
|
|
6616
|
-
*/
|
|
6617
|
-
/*
|
|
6618
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
6619
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6620
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
6621
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
7145
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6622
7146
|
*
|
|
6623
|
-
*
|
|
6624
|
-
*
|
|
6625
|
-
|
|
6626
|
-
* governing permissions and limitations under the License.
|
|
6627
|
-
*/ class $a02d57049d202695$export$d085fb9e920b5ca7 {
|
|
6628
|
-
*[Symbol.iterator]() {
|
|
6629
|
-
yield* this.iterable;
|
|
6630
|
-
}
|
|
6631
|
-
get size() {
|
|
6632
|
-
return this.keyMap.size;
|
|
6633
|
-
}
|
|
6634
|
-
getKeys() {
|
|
6635
|
-
return this.keyMap.keys();
|
|
6636
|
-
}
|
|
6637
|
-
getKeyBefore(key) {
|
|
6638
|
-
let node = this.keyMap.get(key);
|
|
6639
|
-
return node ? node.prevKey : null;
|
|
6640
|
-
}
|
|
6641
|
-
getKeyAfter(key) {
|
|
6642
|
-
let node = this.keyMap.get(key);
|
|
6643
|
-
return node ? node.nextKey : null;
|
|
6644
|
-
}
|
|
6645
|
-
getFirstKey() {
|
|
6646
|
-
return this.firstKey;
|
|
6647
|
-
}
|
|
6648
|
-
getLastKey() {
|
|
6649
|
-
return this.lastKey;
|
|
6650
|
-
}
|
|
6651
|
-
getItem(key) {
|
|
6652
|
-
return this.keyMap.get(key);
|
|
6653
|
-
}
|
|
6654
|
-
at(idx) {
|
|
6655
|
-
const keys = [
|
|
6656
|
-
...this.getKeys()
|
|
6657
|
-
];
|
|
6658
|
-
return this.getItem(keys[idx]);
|
|
6659
|
-
}
|
|
6660
|
-
getChildren(key) {
|
|
6661
|
-
let node = this.keyMap.get(key);
|
|
6662
|
-
return (node === null || node === void 0 ? void 0 : node.childNodes) || [];
|
|
6663
|
-
}
|
|
6664
|
-
constructor(nodes){
|
|
6665
|
-
this.keyMap = new Map();
|
|
6666
|
-
this.iterable = nodes;
|
|
6667
|
-
let visit = (node)=>{
|
|
6668
|
-
this.keyMap.set(node.key, node);
|
|
6669
|
-
if (node.childNodes && node.type === "section") for (let child of node.childNodes)visit(child);
|
|
6670
|
-
};
|
|
6671
|
-
for (let node of nodes)visit(node);
|
|
6672
|
-
let last;
|
|
6673
|
-
let index = 0;
|
|
6674
|
-
for (let [key, node] of this.keyMap){
|
|
6675
|
-
if (last) {
|
|
6676
|
-
last.nextKey = key;
|
|
6677
|
-
node.prevKey = last.key;
|
|
6678
|
-
} else {
|
|
6679
|
-
this.firstKey = key;
|
|
6680
|
-
node.prevKey = undefined;
|
|
6681
|
-
}
|
|
6682
|
-
if (node.type === "item") node.index = index++;
|
|
6683
|
-
last = node;
|
|
6684
|
-
// Set nextKey as undefined since this might be the last node
|
|
6685
|
-
// If it isn't the last node, last.nextKey will properly set at start of new loop
|
|
6686
|
-
last.nextKey = undefined;
|
|
6687
|
-
}
|
|
6688
|
-
this.lastKey = last === null || last === void 0 ? void 0 : last.key;
|
|
6689
|
-
}
|
|
6690
|
-
}
|
|
6691
|
-
|
|
7147
|
+
* This source code is licensed under the MIT license found in the
|
|
7148
|
+
* LICENSE file in the root directory of this source tree.
|
|
7149
|
+
*/
|
|
6692
7150
|
|
|
7151
|
+
var hasRequiredUseSyncExternalStoreShim_production_min;
|
|
6693
7152
|
|
|
7153
|
+
function requireUseSyncExternalStoreShim_production_min () {
|
|
7154
|
+
if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
|
|
7155
|
+
hasRequiredUseSyncExternalStoreShim_production_min = 1;
|
|
7156
|
+
var e=$dGqE5$react;function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k="function"===typeof Object.is?Object.is:h,l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c});},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c});})},[a]);p(d);return d}
|
|
7157
|
+
function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return !k(a,d)}catch(f){return !0}}function t(a,b){return b()}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?t:q;useSyncExternalStoreShim_production_min.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u;
|
|
7158
|
+
return useSyncExternalStoreShim_production_min;
|
|
7159
|
+
}
|
|
6694
7160
|
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
props.disabledKeys
|
|
6700
|
-
]);
|
|
6701
|
-
let factory = ($dGqE5$react.useCallback)((nodes)=>filter ? new ($a02d57049d202695$export$d085fb9e920b5ca7)(filter(nodes)) : new ($a02d57049d202695$export$d085fb9e920b5ca7)(nodes), [
|
|
6702
|
-
filter
|
|
6703
|
-
]);
|
|
6704
|
-
let context = ($dGqE5$react.useMemo)(()=>({
|
|
6705
|
-
suppressTextValueWarning: props.suppressTextValueWarning
|
|
6706
|
-
}), [
|
|
6707
|
-
props.suppressTextValueWarning
|
|
6708
|
-
]);
|
|
6709
|
-
let collection = ($7613b1592d41b092$export$6cd28814d92fa9c9)(props, factory, context);
|
|
6710
|
-
let selectionManager = ($dGqE5$react.useMemo)(()=>new ($d496c0a20b6e58ec$export$6c8a5aaad13c9852)(collection, selectionState), [
|
|
6711
|
-
collection,
|
|
6712
|
-
selectionState
|
|
6713
|
-
]);
|
|
6714
|
-
// Reset focused key if that item is deleted from the collection.
|
|
6715
|
-
const cachedCollection = ($dGqE5$react.useRef)(null);
|
|
6716
|
-
($dGqE5$react.useEffect)(()=>{
|
|
6717
|
-
if (selectionState.focusedKey != null && !collection.getItem(selectionState.focusedKey)) {
|
|
6718
|
-
const startItem = cachedCollection.current.getItem(selectionState.focusedKey);
|
|
6719
|
-
const cachedItemNodes = [
|
|
6720
|
-
...cachedCollection.current.getKeys()
|
|
6721
|
-
].map((key)=>{
|
|
6722
|
-
const itemNode = cachedCollection.current.getItem(key);
|
|
6723
|
-
return itemNode.type === "item" ? itemNode : null;
|
|
6724
|
-
}).filter((node)=>node !== null);
|
|
6725
|
-
const itemNodes = [
|
|
6726
|
-
...collection.getKeys()
|
|
6727
|
-
].map((key)=>{
|
|
6728
|
-
const itemNode = collection.getItem(key);
|
|
6729
|
-
return itemNode.type === "item" ? itemNode : null;
|
|
6730
|
-
}).filter((node)=>node !== null);
|
|
6731
|
-
const diff = cachedItemNodes.length - itemNodes.length;
|
|
6732
|
-
let index = Math.min(diff > 1 ? Math.max(startItem.index - diff + 1, 0) : startItem.index, itemNodes.length - 1);
|
|
6733
|
-
let newNode;
|
|
6734
|
-
while(index >= 0){
|
|
6735
|
-
if (!selectionManager.isDisabled(itemNodes[index].key)) {
|
|
6736
|
-
newNode = itemNodes[index];
|
|
6737
|
-
break;
|
|
6738
|
-
}
|
|
6739
|
-
// Find next, not disabled item.
|
|
6740
|
-
if (index < itemNodes.length - 1) index++;
|
|
6741
|
-
else {
|
|
6742
|
-
if (index > startItem.index) index = startItem.index;
|
|
6743
|
-
index--;
|
|
6744
|
-
}
|
|
6745
|
-
}
|
|
6746
|
-
selectionState.setFocusedKey(newNode ? newNode.key : null);
|
|
6747
|
-
}
|
|
6748
|
-
cachedCollection.current = collection;
|
|
6749
|
-
}, [
|
|
6750
|
-
collection,
|
|
6751
|
-
selectionManager,
|
|
6752
|
-
selectionState,
|
|
6753
|
-
selectionState.focusedKey
|
|
6754
|
-
]);
|
|
6755
|
-
return {
|
|
6756
|
-
collection: collection,
|
|
6757
|
-
disabledKeys: disabledKeys,
|
|
6758
|
-
selectionManager: selectionManager
|
|
6759
|
-
};
|
|
7161
|
+
if (process.env.NODE_ENV === 'production') {
|
|
7162
|
+
shim.exports = requireUseSyncExternalStoreShim_production_min();
|
|
7163
|
+
} else {
|
|
7164
|
+
shim.exports = requireUseSyncExternalStoreShim_development();
|
|
6760
7165
|
}
|
|
6761
7166
|
|
|
7167
|
+
var shimExports = shim.exports;
|
|
7168
|
+
|
|
6762
7169
|
/*
|
|
6763
7170
|
* Copyright 2022 Adobe. All rights reserved.
|
|
6764
7171
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -7430,10 +7837,11 @@ function $64fa3d84918910a7$export$fabf2dc03a41866e(context, slot) {
|
|
|
7430
7837
|
if (slot === null) // An explicit `null` slot means don't use context.
|
|
7431
7838
|
return null;
|
|
7432
7839
|
if (ctx && typeof ctx === "object" && "slots" in ctx && ctx.slots) {
|
|
7433
|
-
|
|
7840
|
+
let availableSlots = new Intl.ListFormat().format(Object.keys(ctx.slots).map((p)=>`"${p}"`));
|
|
7841
|
+
if (!slot && !ctx.slots[$64fa3d84918910a7$export$8e0ef2c5844bfb6b]) throw new Error(`A slot prop is required. Valid slot names are ${availableSlots}.`);
|
|
7434
7842
|
let slotKey = slot || $64fa3d84918910a7$export$8e0ef2c5844bfb6b;
|
|
7435
7843
|
if (!ctx.slots[slotKey]) // @ts-ignore
|
|
7436
|
-
throw new Error(`Invalid slot "${slot}". Valid slot names are
|
|
7844
|
+
throw new Error(`Invalid slot "${slot}". Valid slot names are ${availableSlots}.`);
|
|
7437
7845
|
return ctx.slots[slotKey];
|
|
7438
7846
|
}
|
|
7439
7847
|
// @ts-ignore
|
|
@@ -7448,6 +7856,12 @@ function $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, context) {
|
|
|
7448
7856
|
contextRef
|
|
7449
7857
|
]));
|
|
7450
7858
|
let mergedProps = ($3ef42575df84b30b$export$9d1611c77c2fe928)(contextProps, props);
|
|
7859
|
+
// mergeProps does not merge `style`. Adding this there might be a breaking change.
|
|
7860
|
+
if ("style" in contextProps && contextProps.style && typeof contextProps.style === "object" && "style" in props && props.style && typeof props.style === "object") // @ts-ignore
|
|
7861
|
+
mergedProps.style = {
|
|
7862
|
+
...contextProps.style,
|
|
7863
|
+
...props.style
|
|
7864
|
+
};
|
|
7451
7865
|
// A parent component might need the props from a child, so call slot callback if needed.
|
|
7452
7866
|
($dGqE5$react.useEffect)(()=>{
|
|
7453
7867
|
if (callback) callback(props);
|
|
@@ -7618,6 +8032,22 @@ const $514c0188e459b4c0$export$5f1af8db9871e1d6 = /*#__PURE__*/ ($dGqE5$react.fo
|
|
|
7618
8032
|
*/
|
|
7619
8033
|
|
|
7620
8034
|
|
|
8035
|
+
/*
|
|
8036
|
+
* Copyright 2023 Adobe. All rights reserved.
|
|
8037
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
8038
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
8039
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
8040
|
+
*
|
|
8041
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8042
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
8043
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
8044
|
+
* governing permissions and limitations under the License.
|
|
8045
|
+
*/
|
|
8046
|
+
|
|
8047
|
+
|
|
8048
|
+
const $ee014567cb39d3f0$export$ff05c3ac10437e03 = /*#__PURE__*/ ($dGqE5$react.createContext)(null);
|
|
8049
|
+
|
|
8050
|
+
|
|
7621
8051
|
|
|
7622
8052
|
/*
|
|
7623
8053
|
* Copyright 2022 Adobe. All rights reserved.
|
|
@@ -7661,6 +8091,7 @@ const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /*#__PURE__*/ ($64fa3d84918910
|
|
|
7661
8091
|
|
|
7662
8092
|
|
|
7663
8093
|
|
|
8094
|
+
|
|
7664
8095
|
/*
|
|
7665
8096
|
* Copyright 2022 Adobe. All rights reserved.
|
|
7666
8097
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -7676,40 +8107,40 @@ const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /*#__PURE__*/ ($64fa3d84918910
|
|
|
7676
8107
|
|
|
7677
8108
|
const $3985021b0ad6602f$export$37fb8590cf2c088c = /*#__PURE__*/ ($dGqE5$react.createContext)({});
|
|
7678
8109
|
const $eed445e0843c11d0$export$7c5906fe4f1f2af2 = /*#__PURE__*/ ($dGqE5$react.createContext)(null);
|
|
7679
|
-
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"
|
|
7680
|
-
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"
|
|
7681
|
-
JSON.parse('{"dropzoneLabel":"M\xedsto pro
|
|
8110
|
+
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"\u062D\u062F\u062F \u0639\u0646\u0635\u0631\u064B\u0627","tableResizer":"\u0623\u062F\u0627\u0629 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062D\u062C\u0645"}');
|
|
8111
|
+
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442","tableResizer":"\u041F\u0440\u0435\u043E\u0440\u0430\u0437\u043C\u0435\u0440\u0438\u0442\u0435\u043B"}');
|
|
8112
|
+
JSON.parse('{"dropzoneLabel":"M\xedsto pro p\u0159eta\u017Een\xed","selectPlaceholder":"Vyberte polo\u017Eku","tableResizer":"Zm\u011Bna velikosti"}');
|
|
7682
8113
|
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"V\xe6lg et element","tableResizer":"St\xf8rrelses\xe6ndring"}');
|
|
7683
8114
|
JSON.parse('{"dropzoneLabel":"Ablegebereich","selectPlaceholder":"Element w\xe4hlen","tableResizer":"Gr\xf6\xdfenanpassung"}');
|
|
7684
|
-
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"
|
|
8115
|
+
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03B1\u03BD\u03C4\u03B9\u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF","tableResizer":"\u0391\u03BB\u03BB\u03B1\u03B3\u03AE \u03BC\u03B5\u03B3\u03AD\u03B8\u03BF\u03C5\u03C2"}');
|
|
7685
8116
|
JSON.parse('{"selectPlaceholder":"Select an item","tableResizer":"Resizer","dropzoneLabel":"DropZone"}');
|
|
7686
8117
|
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Seleccionar un art\xedculo","tableResizer":"Cambiador de tama\xf1o"}');
|
|
7687
8118
|
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Valige \xfcksus","tableResizer":"Suuruse muutja"}');
|
|
7688
8119
|
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Valitse kohde","tableResizer":"Koon muuttaja"}');
|
|
7689
8120
|
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"S\xe9lectionner un \xe9l\xe9ment","tableResizer":"Redimensionneur"}');
|
|
7690
|
-
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"
|
|
7691
|
-
JSON.parse('{"dropzoneLabel":"Zona
|
|
7692
|
-
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"V\xe1lasszon ki egy elemet","tableResizer":"\xc1tm\xe9retez
|
|
8121
|
+
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"\u05D1\u05D7\u05E8 \u05E4\u05E8\u05D9\u05D8","tableResizer":"\u05E9\u05D9\u05E0\u05D5\u05D9 \u05D2\u05D5\u05D3\u05DC"}');
|
|
8122
|
+
JSON.parse('{"dropzoneLabel":"Zona spu\u0161tanja","selectPlaceholder":"Odaberite stavku","tableResizer":"Promjena veli\u010Dine"}');
|
|
8123
|
+
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"V\xe1lasszon ki egy elemet","tableResizer":"\xc1tm\xe9retez\u0151"}');
|
|
7693
8124
|
JSON.parse('{"dropzoneLabel":"Zona di rilascio","selectPlaceholder":"Seleziona un elemento","tableResizer":"Ridimensionamento"}');
|
|
7694
|
-
JSON.parse('{"dropzoneLabel":"
|
|
7695
|
-
JSON.parse('{"dropzoneLabel":"
|
|
7696
|
-
JSON.parse('{"dropzoneLabel":"
|
|
7697
|
-
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"
|
|
8125
|
+
JSON.parse('{"dropzoneLabel":"\u30C9\u30ED\u30C3\u30D7\u30BE\u30FC\u30F3","selectPlaceholder":"\u9805\u76EE\u3092\u9078\u629E","tableResizer":"\u30B5\u30A4\u30BA\u5909\u66F4\u30C4\u30FC\u30EB"}');
|
|
8126
|
+
JSON.parse('{"dropzoneLabel":"\uB4DC\uB86D \uC601\uC5ED","selectPlaceholder":"\uD56D\uBAA9 \uC120\uD0DD","tableResizer":"\uD06C\uAE30 \uC870\uC815\uAE30"}');
|
|
8127
|
+
JSON.parse('{"dropzoneLabel":"\u201EDropZone\u201C","selectPlaceholder":"Pasirinkite element\u0105","tableResizer":"Dyd\u017Eio keitiklis"}');
|
|
8128
|
+
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Izv\u0113l\u0113ties vienumu","tableResizer":"Izm\u0113ra main\u012Bt\u0101js"}');
|
|
7698
8129
|
JSON.parse('{"dropzoneLabel":"Droppsone","selectPlaceholder":"Velg et element","tableResizer":"St\xf8rrelsesendrer"}');
|
|
7699
8130
|
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Selecteer een item","tableResizer":"Resizer"}');
|
|
7700
8131
|
JSON.parse('{"dropzoneLabel":"Strefa upuszczania","selectPlaceholder":"Wybierz element","tableResizer":"Zmiana rozmiaru"}');
|
|
7701
8132
|
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Selecione um item","tableResizer":"Redimensionador"}');
|
|
7702
8133
|
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Selecione um item","tableResizer":"Redimensionador"}');
|
|
7703
|
-
JSON.parse('{"dropzoneLabel":"
|
|
7704
|
-
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"
|
|
7705
|
-
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Vyberte
|
|
8134
|
+
JSON.parse('{"dropzoneLabel":"Zon\u0103 de plasare","selectPlaceholder":"Selecta\u021Bi un element","tableResizer":"Instrument de redimensionare"}');
|
|
8135
|
+
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442","tableResizer":"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0430\u0437\u043C\u0435\u0440\u0430"}');
|
|
8136
|
+
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Vyberte polo\u017Eku","tableResizer":"N\xe1stroj na zmenu ve\u013Ekosti"}');
|
|
7706
8137
|
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Izberite element","tableResizer":"Spreminjanje velikosti"}');
|
|
7707
|
-
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Izaberite stavku","tableResizer":"Promena
|
|
8138
|
+
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"Izaberite stavku","tableResizer":"Promena veli\u010Dine"}');
|
|
7708
8139
|
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"V\xe4lj en artikel","tableResizer":"Storleks\xe4ndrare"}');
|
|
7709
|
-
JSON.parse('{"dropzoneLabel":"
|
|
7710
|
-
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"
|
|
7711
|
-
JSON.parse('{"dropzoneLabel":"
|
|
7712
|
-
JSON.parse('{"dropzoneLabel":"
|
|
8140
|
+
JSON.parse('{"dropzoneLabel":"B\u0131rakma B\xf6lgesi","selectPlaceholder":"Bir \xf6\u011Fe se\xe7in","tableResizer":"Yeniden boyutland\u0131r\u0131c\u0131"}');
|
|
8141
|
+
JSON.parse('{"dropzoneLabel":"DropZone","selectPlaceholder":"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0435\u043B\u0435\u043C\u0435\u043D\u0442","tableResizer":"\u0417\u0430\u0441\u0456\u0431 \u0437\u043C\u0456\u043D\u0435\u043D\u043D\u044F \u0440\u043E\u0437\u043C\u0456\u0440\u0443"}');
|
|
8142
|
+
JSON.parse('{"dropzoneLabel":"\u653E\u7F6E\u533A\u57DF","selectPlaceholder":"\u9009\u62E9\u4E00\u4E2A\u9879\u76EE","tableResizer":"\u5C3A\u5BF8\u8C03\u6574\u5668"}');
|
|
8143
|
+
JSON.parse('{"dropzoneLabel":"\u653E\u7F6E\u5340","selectPlaceholder":"\u9078\u53D6\u9805\u76EE","tableResizer":"\u5927\u5C0F\u8ABF\u6574\u5668"}');
|
|
7713
8144
|
|
|
7714
8145
|
|
|
7715
8146
|
/*
|
|
@@ -7829,15 +8260,17 @@ function $eaf9e70818b436db$var$TagListInner({ props: props, forwardedRef: forwar
|
|
|
7829
8260
|
}
|
|
7830
8261
|
});
|
|
7831
8262
|
let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = ($f7dceffc5ad7768b$export$4e328f61c538687f)();
|
|
8263
|
+
let renderValues = {
|
|
8264
|
+
isEmpty: state.collection.size === 0,
|
|
8265
|
+
isFocused: isFocused,
|
|
8266
|
+
isFocusVisible: isFocusVisible,
|
|
8267
|
+
state: state
|
|
8268
|
+
};
|
|
7832
8269
|
let renderProps = ($64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
7833
8270
|
className: props.className,
|
|
7834
8271
|
style: props.style,
|
|
7835
8272
|
defaultClassName: "react-aria-TagList",
|
|
7836
|
-
values:
|
|
7837
|
-
isEmpty: state.collection.size === 0,
|
|
7838
|
-
isFocused: isFocused,
|
|
7839
|
-
isFocusVisible: isFocusVisible
|
|
7840
|
-
}
|
|
8273
|
+
values: renderValues
|
|
7841
8274
|
});
|
|
7842
8275
|
return /*#__PURE__*/ ($dGqE5$react).createElement("div", {
|
|
7843
8276
|
...($3ef42575df84b30b$export$9d1611c77c2fe928)(gridProps, focusProps),
|
|
@@ -7846,7 +8279,7 @@ function $eaf9e70818b436db$var$TagListInner({ props: props, forwardedRef: forwar
|
|
|
7846
8279
|
"data-empty": state.collection.size === 0 || undefined,
|
|
7847
8280
|
"data-focused": isFocused || undefined,
|
|
7848
8281
|
"data-focus-visible": isFocusVisible || undefined
|
|
7849
|
-
}, state.collection.size === 0 && props.renderEmptyState ? props.renderEmptyState() : children);
|
|
8282
|
+
}, state.collection.size === 0 && props.renderEmptyState ? props.renderEmptyState(renderValues) : children);
|
|
7850
8283
|
}
|
|
7851
8284
|
/**
|
|
7852
8285
|
* A tag list is a container for tags within a TagGroup.
|
|
@@ -7900,7 +8333,12 @@ function $eaf9e70818b436db$var$TagItem({ item: item }) {
|
|
|
7900
8333
|
"data-pressed": states.isPressed || undefined,
|
|
7901
8334
|
"data-allows-removing": states.allowsRemoving || undefined,
|
|
7902
8335
|
"data-selection-mode": state.selectionManager.selectionMode === "none" ? undefined : state.selectionManager.selectionMode
|
|
7903
|
-
}, /*#__PURE__*/ ($dGqE5$react).createElement("div",
|
|
8336
|
+
}, /*#__PURE__*/ ($dGqE5$react).createElement("div", {
|
|
8337
|
+
...gridCellProps,
|
|
8338
|
+
style: {
|
|
8339
|
+
display: "contents"
|
|
8340
|
+
}
|
|
8341
|
+
}, /*#__PURE__*/ ($dGqE5$react).createElement(($64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
7904
8342
|
values: [
|
|
7905
8343
|
[
|
|
7906
8344
|
($d2b4bc8c273e7be6$export$24d547caef80ccd1),
|
|
@@ -7940,16 +8378,19 @@ const $216918bed6669f72$export$2dc6166a7e65358c = /*#__PURE__*/ ($dGqE5$react.cr
|
|
|
7940
8378
|
|
|
7941
8379
|
|
|
7942
8380
|
|
|
8381
|
+
|
|
7943
8382
|
const $bcdf0525bf22703d$export$2129e27b3ef0d483 = /*#__PURE__*/ ($dGqE5$react.createContext)(null);
|
|
7944
8383
|
function $bcdf0525bf22703d$var$TextField(props, ref) {
|
|
7945
8384
|
[props, ref] = ($64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $bcdf0525bf22703d$export$2129e27b3ef0d483);
|
|
7946
8385
|
let inputRef = ($dGqE5$react.useRef)(null);
|
|
7947
8386
|
let [labelRef, label] = ($64fa3d84918910a7$export$9d4c57ee4c6ffdd8)();
|
|
7948
8387
|
let [inputElementType, setInputElementType] = ($dGqE5$react.useState)("input");
|
|
7949
|
-
|
|
8388
|
+
var _props_validationBehavior;
|
|
8389
|
+
let { labelProps: labelProps, inputProps: inputProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, ...validation } = ($2d73ec29415bd339$export$712718f7aec83d5)({
|
|
7950
8390
|
...($64fa3d84918910a7$export$ef03459518577ad4)(props),
|
|
7951
8391
|
inputElementType: inputElementType,
|
|
7952
|
-
label: label
|
|
8392
|
+
label: label,
|
|
8393
|
+
validationBehavior: (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : "native"
|
|
7953
8394
|
}, inputRef);
|
|
7954
8395
|
// Intercept setting the input ref so we can determine what kind of element we have.
|
|
7955
8396
|
// useTextField uses this to determine what props to include.
|
|
@@ -7961,7 +8402,7 @@ function $bcdf0525bf22703d$var$TextField(props, ref) {
|
|
|
7961
8402
|
...props,
|
|
7962
8403
|
values: {
|
|
7963
8404
|
isDisabled: props.isDisabled || false,
|
|
7964
|
-
isInvalid:
|
|
8405
|
+
isInvalid: validation.isInvalid
|
|
7965
8406
|
},
|
|
7966
8407
|
defaultClassName: "react-aria-TextField"
|
|
7967
8408
|
});
|
|
@@ -7971,7 +8412,7 @@ function $bcdf0525bf22703d$var$TextField(props, ref) {
|
|
|
7971
8412
|
ref: ref,
|
|
7972
8413
|
slot: props.slot || undefined,
|
|
7973
8414
|
"data-disabled": props.isDisabled || undefined,
|
|
7974
|
-
"data-invalid":
|
|
8415
|
+
"data-invalid": validation.isInvalid || undefined
|
|
7975
8416
|
}, /*#__PURE__*/ ($dGqE5$react).createElement(($64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
7976
8417
|
values: [
|
|
7977
8418
|
[
|
|
@@ -8003,6 +8444,10 @@ function $bcdf0525bf22703d$var$TextField(props, ref) {
|
|
|
8003
8444
|
errorMessage: errorMessageProps
|
|
8004
8445
|
}
|
|
8005
8446
|
}
|
|
8447
|
+
],
|
|
8448
|
+
[
|
|
8449
|
+
($ee014567cb39d3f0$export$ff05c3ac10437e03),
|
|
8450
|
+
validation
|
|
8006
8451
|
]
|
|
8007
8452
|
]
|
|
8008
8453
|
}, renderProps.children));
|
|
@@ -8011,44 +8456,18 @@ function $bcdf0525bf22703d$var$TextField(props, ref) {
|
|
|
8011
8456
|
* A text field allows a user to enter a plain text value with a keyboard.
|
|
8012
8457
|
*/ ($dGqE5$react.forwardRef)($bcdf0525bf22703d$var$TextField);
|
|
8013
8458
|
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
var insertAt = ref.insertAt;
|
|
8017
|
-
|
|
8018
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
8019
|
-
|
|
8020
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
8021
|
-
var style = document.createElement('style');
|
|
8022
|
-
style.type = 'text/css';
|
|
8023
|
-
|
|
8024
|
-
if (insertAt === 'top') {
|
|
8025
|
-
if (head.firstChild) {
|
|
8026
|
-
head.insertBefore(style, head.firstChild);
|
|
8027
|
-
} else {
|
|
8028
|
-
head.appendChild(style);
|
|
8029
|
-
}
|
|
8030
|
-
} else {
|
|
8031
|
-
head.appendChild(style);
|
|
8032
|
-
}
|
|
8459
|
+
var css_248z$3 = ".react-aria-Button {\n border: none;\n border-radius: var(--layout-border-radius-medium, 4px);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n gap: var(--layout-padding-small);\n font: var(--typography-regular-body);\n padding-left: 16px;\n padding-right: 16px;\n}\n.react-aria-Button[data-disabled] {\n cursor: not-allowed;\n}\n.react-aria-Button[data-focused] {\n outline: 2px solid var(--surface-primary-active);\n}\n\n/* Icon button */\n.react-aria-Button.icon {\n align-items: center;\n justify-content: space-around;\n}\n\n/* Sizes */\n.react-aria-Button.small {\n min-height: 32px;\n}\n.react-aria-Button.small.icon {\n padding: unset;\n height: 32px;\n width: 32px;\n}\n.react-aria-Button.medium {\n min-height: 40px;\n}\n.react-aria-Button.medium.icon {\n padding: unset;\n height: 40px;\n width: 40px;\n}\n\n/* Variant - Primary */\n.react-aria-Button.primary {\n background: var(--surface-primary-default);\n color: var(--typography-color-primary-invert);\n}\n.react-aria-Button.primary.danger {\n background-color: var(--surface-danger-default);\n}\n.react-aria-Button.primary[data-disabled] {\n background-color: var(--surface-primary-disabled);\n color: var(--typography-color-disabled);\n}\n.react-aria-Button.primary[data-hovered] {\n background-color: var(--surface-primary-hover);\n}\n.react-aria-Button.primary.danger[data-hovered] {\n background-color: var(--surface-danger-hover);\n}\n\n/* Variant - Secondary */\n.react-aria-Button.secondary {\n background-color: var(--surface-secondary-default);\n border: 1px solid var(--surface-border-dark);\n color: var(--typography-color-primary);\n}\n.react-aria-Button.secondary.danger {\n border-color: var(--surface-support-border-color-danger);\n color: var(--surface-danger-default);\n}\n.react-aria-Button.secondary[data-disabled] {\n background-color: var(--surface-primary-disabled);\n border-color: var(--surface-border-light);\n color: var(--typography-color-disabled);\n}\n.react-aria-Button.secondary[data-hovered] {\n background-color: var(--surface-secondary-hover);\n}\n.react-aria-Button.secondary.danger[data-hovered] {\n background-color: var(--surface-support-surface-color-danger);\n}\n\n/* Variant - Tertiary */\n.react-aria-Button.tertiary {\n background-color: var(--surface-tertiary-default);\n color: var(--typography-color-primary);\n}\n.react-aria-Button.tertiary.danger {\n color: var(--surface-danger-default);\n}\n.react-aria-Button.tertiary[data-disabled] {\n background-color: var(--surface-tertiary-default);\n color: var(--typography-color-disabled);\n}\n.react-aria-Button.tertiary[data-hovered] {\n background-color: var(--surface-tertiary-hover);\n}\n.react-aria-Button.tertiary.danger[data-hovered] {\n background-color: var(--surface-support-surface-color-danger);\n}\n\n/* Variant - Link */\n.react-aria-Button.link {\n background-color: var(--surface-tertiary-default);\n color: var(--typography-color-link);\n text-decoration: underline;\n text-underline-offset: 0.3em;\n}\n.react-aria-Button.link.danger {\n color: var(--surface-danger-default);\n}\n.react-aria-Button.link[data-disabled] {\n color: var(--typography-color-disabled);\n}\n";
|
|
8460
|
+
styleInject(css_248z$3);
|
|
8033
8461
|
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
} else {
|
|
8037
|
-
style.appendChild(document.createTextNode(css));
|
|
8038
|
-
}
|
|
8462
|
+
function Button({ size = "medium", variant = "primary", danger = false, isIconButton = false, ...props }) {
|
|
8463
|
+
return (jsxRuntime.jsx($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: `react-aria-Button ${size} ${variant} ${danger ? "danger" : ""} ${isIconButton ? "icon" : ""}`, ...props }));
|
|
8039
8464
|
}
|
|
8040
8465
|
|
|
8041
|
-
var css_248z$
|
|
8042
|
-
styleInject(css_248z$4);
|
|
8043
|
-
|
|
8044
|
-
var css_248z$3 = "@font-face {\n font-family: \"BC Sans\";\n font-style: normal;\n font-weight: 400;\n src: url(\"../fonts/BCSans-Regular.woff2\") format(\"woff2\"),\n url(\"../fonts/BCSans-Regular.woff\") format(\"woff\");\n}\n\n@font-face {\n font-family: \"BC Sans\";\n font-style: italic;\n font-weight: 400;\n src: url(\"../fonts/BCSans-Italic.woff2\") format(\"woff2\"),\n url(\"../fonts/BCSans-Italic.woff\") format(\"woff\");\n}\n\n@font-face {\n font-family: \"BC Sans\";\n font-style: normal;\n font-weight: 700;\n src: url(\"../fonts/BCSans-Bold.woff2\") format(\"woff2\"),\n url(\"../fonts/BCSans-Bold.woff\") format(\"woff\");\n}\n\n@font-face {\n font-family: \"BC Sans\";\n font-style: italic;\n font-weight: 700;\n src: url(\"../fonts/BCSans-BoldItalic.woff2\") format(\"woff2\"),\n url(\"../fonts/BCSans-BoldItalic.woff\") format(\"woff\");\n}\n\n@font-face {\n font-family: \"BC Sans\";\n font-style: normal;\n font-weight: 300;\n src: url(\"../fonts/BCSans-Light.woff2\") format(\"woff2\"),\n url(\"../fonts/BCSans-Light.woff\") format(\"woff\");\n}\n\n@font-face {\n font-family: \"BC Sans\";\n font-style: italic;\n font-weight: 300;\n src: url(\"../fonts/BCSans-LightItalic.woff2\") format(\"woff2\"),\n url(\"../fonts/BCSans-LightItalic.woff\") format(\"woff\");\n}\n";
|
|
8045
|
-
styleInject(css_248z$3);
|
|
8046
|
-
|
|
8047
|
-
var css_248z$2 = ".react-aria-Tag {\n color: var(--typography-color-primary, #2d2d2d);\n cursor: pointer;\n border-radius: var(--layout-margin-hair, 2px);\n border: 1px solid;\n box-sizing: content-box;\n font: var(--typography-regular-label, 400 0.875rem/1.313rem \"BC Sans\");\n padding: 2px 8px;\n width: fit-content;\n}\n.react-aria-Tag > div[role=\"gridcell\"] {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n.react-aria-Tag > div[role=\"gridcell\"] > .react-aria-Button {\n background: none;\n border: none;\n color: var(--typography-color-primary, #2d2d2d);\n cursor: pointer;\n display: flex;\n margin: 0;\n padding: 0;\n}\n\n/* Tag colors */\n.react-aria-Tag.bc-blue {\n background-color: var(--surface-color-primary-default, #013366);\n border-color: var(--surface-color-primary-hover, #1e5189);\n color: var(--typography-color-primary-invert, #ffffff);\n}\n.react-aria-Tag.bc-blue > div[role=\"gridcell\"] > .react-aria-Button {\n color: var(--typography-color-primary-invert, #ffffff);\n}\n.react-aria-Tag.bc-gold {\n background-color: var(--surface-color-brand-gold-60, #f8ba47);\n border-color: var(--surface-color-primary-hover, #1e5189);\n}\n.react-aria-Tag.blue {\n background-color: var(--surface-support-surface-color-info, #f7f9fc);\n border-color: var(--surface-support-border-color-info, #053662);\n}\n.react-aria-Tag.dark {\n border-color: var(--surface-primary-hover, #1e5189);\n background: var(--surface-brand-gray-110, #252423);\n color: var(--typography-color-primary-invert, #ffffff);\n}\n.react-aria-Tag.dark > div[role=\"gridcell\"] > .react-aria-Button {\n color: var(--typography-color-primary-invert, #ffffff);\n}\n.react-aria-Tag.gray,\n.react-aria-Tag.grey {\n background-color: var(--surface-brand-gray-20, #f3f2f1);\n border-color: var(--surface-border-dark, #353433);\n}\n.react-aria-Tag.green {\n background-color: var(--surface-support-surface-color-success, #f6fff8);\n border-color: var(--surface-support-border-color-success, #42814a);\n}\n.react-aria-Tag.red {\n background-color: var(--surface-support-surface-color-danger, #f4e1e2);\n border-color: var(--surface-support-border-color-danger, #ce3e39);\n}\n.react-aria-Tag.yellow {\n background-color: var(--surface-support-surface-color-warning, #fef1d8);\n border-color: var(--surface-support-border-color-warning, #f8bb47);\n}\n\n/* Selected */\n.react-aria-Tag[data-selected] {\n border: 2px solid var(--surface-primary-active, #2e5dd7);\n padding: 1px 7px;\n}\n\n/* Focused */\n.react-aria-Tag[data-focused] {\n outline: 4px solid #3b99fc;\n outline-offset: 1px;\n}\n\n/* Disabled */\n.react-aria-Tag[data-disabled] {\n background-color: var(--surface-primary-disabled, #edebe9);\n border-color: var(--surface-border-light, #d8d8d8);\n color: var(--typography-color-disabled, #9f9d9c);\n cursor: not-allowed;\n}\n";
|
|
8466
|
+
var css_248z$2 = ".react-aria-Tag {\n color: var(--typography-color-primary, #2d2d2d);\n cursor: pointer;\n border-radius: var(--layout-margin-hair, 2px);\n border: 1px solid;\n box-sizing: content-box;\n font: var(--typography-regular-label, 400 0.875rem/1.313rem \"BC Sans\");\n padding: 2px 8px;\n width: fit-content;\n}\n.react-aria-Tag__contents {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n.react-aria-Tag__contents .react-aria-Button {\n background: none;\n border: none;\n color: var(--typography-color-primary, #2d2d2d);\n cursor: pointer;\n display: flex;\n margin: 0;\n padding: 0;\n}\n\n/* Tag colors */\n.react-aria-Tag.bc-blue {\n background-color: var(--surface-color-primary-default, #013366);\n border-color: var(--surface-color-primary-hover, #1e5189);\n color: var(--typography-color-primary-invert, #ffffff);\n}\n.react-aria-Tag.bc-blue .react-aria-Tag__contents > .react-aria-Button {\n color: var(--typography-color-primary-invert, #ffffff);\n}\n.react-aria-Tag.bc-gold {\n background-color: var(--surface-color-brand-gold-60, #f8ba47);\n border-color: var(--surface-color-primary-hover, #1e5189);\n}\n.react-aria-Tag.blue {\n background-color: var(--surface-support-surface-color-info, #f7f9fc);\n border-color: var(--surface-support-border-color-info, #053662);\n}\n.react-aria-Tag.dark {\n border-color: var(--surface-primary-hover, #1e5189);\n background: var(--surface-brand-gray-110, #252423);\n color: var(--typography-color-primary-invert, #ffffff);\n}\n.react-aria-Tag.dark .react-aria-Tag__contents > .react-aria-Button {\n color: var(--typography-color-primary-invert, #ffffff);\n}\n.react-aria-Tag.gray,\n.react-aria-Tag.grey {\n background-color: var(--surface-brand-gray-20, #f3f2f1);\n border-color: var(--surface-border-dark, #353433);\n}\n.react-aria-Tag.green {\n background-color: var(--surface-support-surface-color-success, #f6fff8);\n border-color: var(--surface-support-border-color-success, #42814a);\n}\n.react-aria-Tag.red {\n background-color: var(--surface-support-surface-color-danger, #f4e1e2);\n border-color: var(--surface-support-border-color-danger, #ce3e39);\n}\n.react-aria-Tag.yellow {\n background-color: var(--surface-support-surface-color-warning, #fef1d8);\n border-color: var(--surface-support-border-color-warning, #f8bb47);\n}\n\n/* Selected */\n.react-aria-Tag[data-selected] {\n border: 2px solid var(--surface-primary-active, #2e5dd7);\n padding: 1px 7px;\n}\n\n/* Focused */\n.react-aria-Tag[data-focused] {\n outline: 4px solid #3b99fc;\n outline-offset: 1px;\n}\n\n/* Disabled */\n.react-aria-Tag[data-disabled] {\n background-color: var(--surface-primary-disabled, #edebe9);\n border-color: var(--surface-border-light, #d8d8d8);\n color: var(--typography-color-disabled, #9f9d9c);\n cursor: not-allowed;\n}\n";
|
|
8048
8467
|
styleInject(css_248z$2);
|
|
8049
8468
|
|
|
8050
8469
|
function Tag({ className, color = "blue", icon, id, textValue, }) {
|
|
8051
|
-
return (jsxRuntime.jsx($eaf9e70818b436db$export$3288d34c523a1192, { className: className ? className : `react-aria-Tag ${color}`, id: id, textValue: textValue, children: ({ allowsRemoving, isDisabled }) => (jsxRuntime.jsxs(
|
|
8470
|
+
return (jsxRuntime.jsx($eaf9e70818b436db$export$3288d34c523a1192, { className: className ? className : `react-aria-Tag ${color}`, id: id, textValue: textValue, children: ({ allowsRemoving, isDisabled }) => (jsxRuntime.jsxs("div", { className: "react-aria-Tag__contents", children: [icon, textValue, !isDisabled && allowsRemoving && (jsxRuntime.jsx($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { "aria-label": `Remove ${textValue}`, slot: "remove", children: jsxRuntime.jsx("svg", { width: "14", height: "15", viewBox: "0 0 14 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("g", { id: "Icons / Close", children: jsxRuntime.jsx("path", { id: "Vector", d: "M12.6004 3.03239L11.4684 1.90039L7.00039 6.36839L2.53239 1.90039L1.40039 3.03239L5.86839 7.50039L1.40039 11.9684L2.53239 13.1004L7.00039 8.63239L11.4684 13.1004L12.6004 11.9684L8.13239 7.50039L12.6004 3.03239Z", fill: "currentColor" }) }) }) }))] })) }));
|
|
8052
8471
|
}
|
|
8053
8472
|
|
|
8054
8473
|
var css_248z$1 = ".react-aria-TagGroup {\n color: var(--typography-color-primary, #2d2d2d);\n font: var(--typography-regular-label, 400 0.875rem/1.313rem \"BC Sans\");\n}\n\n.react-aria-Label,\n.react-aria-Text {\n display: block;\n margin: var(--layout-margin-small) var(--layout-margin-none);\n}\n\n.react-aria-Text.error {\n color: var(--surface-danger-default, #ce3e39);\n}\n";
|
|
@@ -8068,6 +8487,7 @@ function TagList({ items, orientation = "horizontal", renderEmptyState, ...props
|
|
|
8068
8487
|
}) }));
|
|
8069
8488
|
}
|
|
8070
8489
|
|
|
8490
|
+
exports.Button = Button;
|
|
8071
8491
|
exports.Tag = Tag;
|
|
8072
8492
|
exports.TagGroup = TagGroup;
|
|
8073
8493
|
exports.TagList = TagList;
|