@eightshift/ui-components 2.0.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-OQ5EIPvt.js → Button-D7c-vzAt.js} +5 -5
- package/dist/{Collection-CJM_asJz.js → Collection-CDEKDgvV.js} +234 -128
- package/dist/{Color-B0HgM8f4.js → Color-MV5kBVXr.js} +1 -1
- package/dist/{ColorSwatch-Dv3Wxdl_.js → ColorSwatch-BqQfVu4L.js} +5 -5
- package/dist/{ComboBox-BnlZjJ3T.js → ComboBox-BL1hyP4p.js} +42 -21
- package/dist/{Dialog-CIh-hX93.js → Dialog-s3fX5lSh.js} +199 -88
- package/dist/{FieldError-D7A6s7O5.js → FieldError-52GVSGgC.js} +2 -2
- package/dist/{FocusScope-Cs5_OoeA.js → FocusScope-DbqfVa2Z.js} +206 -43
- package/dist/{Group-D6tr3U_n.js → Group-DMRt6g_N.js} +3 -3
- package/dist/{Heading-DiYTXoIW.js → Heading-B2153VXe.js} +1 -1
- package/dist/{Hidden-DnOd_jPX.js → Hidden-rE6uR-lr.js} +2 -6
- package/dist/{Input-Se0m3ubj.js → Input-CTTTeCpo.js} +10 -10
- package/dist/{Label-Ca9uelsn.js → Label-icmbmNdI.js} +2 -2
- package/dist/{List-Br274SP1.js → List-UdOhiW-i.js} +2 -0
- package/dist/{ListBox-D9dFEh5A.js → ListBox-CfdzmefC.js} +28 -27
- package/dist/{OverlayArrow-1jx-ZyCR.js → OverlayArrow-CMh-7gEM.js} +3 -3
- package/dist/{Separator-BhZycTUp.js → Separator-BxbOoGIK.js} +4 -4
- package/dist/{Slider-BZNaJylD.js → Slider-BZO0Tvut.js} +13 -14
- package/dist/{Text-aOUPPvTO.js → Text-DVSAPY-K.js} +1 -1
- package/dist/{VisuallyHidden-ClTQo25k.js → VisuallyHidden-ooItkWYR.js} +2 -2
- package/dist/assets/style-admin.css +1290 -1335
- package/dist/assets/style-editor.css +433 -478
- package/dist/assets/style.css +433 -478
- package/dist/assets/wp-font-enhancements.css +3 -3
- package/dist/assets/wp-ui-enhancements.css +45 -45
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +5 -5
- package/dist/components/checkbox/checkbox.js +8 -8
- package/dist/components/color-pickers/color-swatch.js +2 -2
- package/dist/components/color-pickers/gradient-editor.js +2 -2
- package/dist/components/color-pickers/solid-color-picker.js +20 -22
- package/dist/components/container-panel/container-panel.js +9 -3
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +1162 -865
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +1 -1
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/input-field/input-field.js +10 -9
- package/dist/components/link-input/link-input.js +8 -9
- package/dist/components/menu/menu.js +2 -2
- package/dist/components/modal/modal.js +5 -5
- package/dist/components/number-picker/number-picker.js +13 -11
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/image-placeholder.js +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.js +16 -15
- package/dist/components/repeater/repeater-item.js +9 -2
- package/dist/components/repeater/repeater.js +32 -3
- package/dist/components/responsive/mini-responsive.js +7 -4
- package/dist/components/responsive/responsive.js +7 -4
- package/dist/components/rich-label/rich-label.js +4 -3
- package/dist/components/select/v2/async-select.js +9 -9
- package/dist/components/select/v2/shared.js +2 -2
- package/dist/components/select/v2/single-select.js +22 -21
- package/dist/components/slider/column-config-slider.js +2 -2
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/tabs/tabs.js +43 -23
- package/dist/components/toggle/switch.js +7 -7
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +17 -23
- package/dist/{context-CDOs-GuR.js → context-D2KUdwNL.js} +1 -1
- package/dist/icons/icons.js +229 -1629
- package/dist/icons/index.js +2 -3
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/{index-CcCn9HWX.js → index-BKGQ6jGS.js} +1 -1
- package/dist/{react-jsx-parser.min-CVit0rZn.js → react-jsx-parser.min-DZCiis5V.js} +48 -20
- package/dist/{textSelection-BlTDSskG.js → textSelection-CrrUNX-B.js} +8 -47
- package/dist/{useButton-CmLbE5vg.js → useButton-Dl1C1478.js} +5 -5
- package/dist/{useEvent-cLDJlznQ.js → useEvent-B0b-6KBr.js} +1 -1
- package/dist/useFocusRing-CxlVCVpL.js +107 -0
- package/dist/{useFormReset-NpLM2e3G.js → useFormReset-C5OggHsw.js} +1 -1
- package/dist/{useFormValidation-BWwmZQE2.js → useFormValidation-BgSHI8kQ.js} +2 -2
- package/dist/{focusSafely-CiqTTjWy.js → useHover-B-8Wji4B.js} +305 -98
- package/dist/{useLabel-C85N3Hzw.js → useLabel-D7HkNEHT.js} +2 -2
- package/dist/{useLabels-C_2wWraB.js → useLabels-D8cxd1Z8.js} +1 -1
- package/dist/{useListState-Z7FB_NzO.js → useListState-BXnC0mNr.js} +28 -13
- package/dist/{useLocalizedStringFormatter-BQ4TF72x.js → useLocalizedStringFormatter-CFP1YZWQ.js} +1 -1
- package/dist/{useNumberField-Bm6_BVl9.js → useNumberField-ecr8uK6_.js} +10 -10
- package/dist/{useNumberFormatter-DlUVKkO7.js → useNumberFormatter-321rAb4J.js} +1 -1
- package/dist/{usePress-rg_OQIGW.js → usePress-C3dxzVyi.js} +69 -63
- package/dist/{useSingleSelectListState-Cu3xtEJS.js → useSingleSelectListState-Dgbuzw5o.js} +2 -2
- package/dist/{useToggle-DzlgBLAJ.js → useToggle-DyZydSPy.js} +9 -7
- package/dist/{useToggleState-DhSBQxkp.js → useToggleState-BZoo5qt_.js} +1 -1
- package/dist/{utils-39D0mStj.js → utils-DkCSC521.js} +38 -35
- package/package.json +32 -32
- package/dist/useFocusRing-CGp3guTX.js +0 -41
- package/dist/useFocusable-087cO5Ct.js +0 -81
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3,
|
|
1
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, e as $bdb11010cef70236$export$f680877a34711e37, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-DkCSC521.js";
|
|
2
2
|
import React__default, { createContext, useRef, useEffect } from "react";
|
|
3
|
-
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-
|
|
3
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-rE6uR-lr.js";
|
|
4
4
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
5
|
-
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-
|
|
6
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
7
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./
|
|
5
|
+
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-Dl1C1478.js";
|
|
6
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-CxlVCVpL.js";
|
|
7
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-B-8Wji4B.js";
|
|
8
8
|
const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7e3;
|
|
9
9
|
let $319e236875307eab$var$liveAnnouncer = null;
|
|
10
10
|
function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { a as $f39a9eba43920ace$export$8dc98ba7eadeaa56 } from "./Hidden-
|
|
1
|
+
import { a as $f39a9eba43920ace$export$8dc98ba7eadeaa56 } from "./Hidden-rE6uR-lr.js";
|
|
2
2
|
import { r as reactDomExports } from "./index-BRp93Yfa.js";
|
|
3
|
+
import { A as $c87311424ea30a05$export$9ac100e40613ea10, g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, d as $431fbd86ca7dc216$export$b204af158042fbac, y as $7215afc6de606d6b$export$de79e2c695e052f3, I as $f645667febf57a63$export$f9762fab77588ecb, i as $d4ee10de306f2510$export$cd4e5573fbe2b576, J as $c87311424ea30a05$export$e1865c3bedcd822b, r as $3ad3f6e1647bc98d$export$80f3e147d781571c, w as $507fabe10e71c6fb$export$630ff653c5ada6a9, b as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-B-8Wji4B.js";
|
|
3
4
|
import React__default, { useRef, useState, useMemo, cloneElement, useContext, useCallback, forwardRef, createContext, useEffect } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { $ as $
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-CDOs-GuR.js";
|
|
10
|
-
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "./textSelection-BlTDSskG.js";
|
|
5
|
+
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, d as $3ef42575df84b30b$export$9d1611c77c2fe928, n as $b5e257d569688ac6$export$535bd6ca7f90a273, e as $bdb11010cef70236$export$f680877a34711e37, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-DkCSC521.js";
|
|
6
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, c as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-C3dxzVyi.js";
|
|
7
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-B0b-6KBr.js";
|
|
8
|
+
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-DbqfVa2Z.js";
|
|
9
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-D2KUdwNL.js";
|
|
11
10
|
function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
12
11
|
const isInitialMount = useRef(true);
|
|
13
12
|
const lastDeps = useRef(null);
|
|
@@ -139,7 +138,6 @@ function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
|
|
|
139
138
|
}
|
|
140
139
|
const $5671b20cf9b562b2$export$447a38995de2c711 = "react-aria-clear-focus";
|
|
141
140
|
const $5671b20cf9b562b2$export$831c820ad60f9d12 = "react-aria-focus";
|
|
142
|
-
const $5671b20cf9b562b2$export$9db568f6321ad9dc = "react-aria-update-activedescendant";
|
|
143
141
|
function $21f1aa98acb08317$export$16792effe837dba3(e) {
|
|
144
142
|
if ($c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
145
143
|
return e.ctrlKey;
|
|
@@ -164,6 +162,8 @@ class $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
|
|
|
164
162
|
node.lastChildKey = this.lastChildKey;
|
|
165
163
|
node.props = this.props;
|
|
166
164
|
node.render = this.render;
|
|
165
|
+
node.colSpan = this.colSpan;
|
|
166
|
+
node.colIndex = this.colIndex;
|
|
167
167
|
return node;
|
|
168
168
|
}
|
|
169
169
|
constructor(type, key) {
|
|
@@ -180,6 +180,8 @@ class $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
|
|
|
180
180
|
this.firstChildKey = null;
|
|
181
181
|
this.lastChildKey = null;
|
|
182
182
|
this.props = {};
|
|
183
|
+
this.colSpan = null;
|
|
184
|
+
this.colIndex = null;
|
|
183
185
|
this.type = type;
|
|
184
186
|
this.key = key;
|
|
185
187
|
}
|
|
@@ -275,14 +277,14 @@ class $23b9f4fcf0fe224b$export$408d25a4e12db025 {
|
|
|
275
277
|
// Will need to handle varying levels I assume but will revisit after I get searchable menu working for base menu
|
|
276
278
|
// TODO: an alternative is to simply walk the collection and add all item nodes that match the filter and any sections/separators we encounter
|
|
277
279
|
// to an array, then walk that new array and fix all the next/Prev keys while adding them to the new collection
|
|
278
|
-
|
|
280
|
+
UNSTABLE_filter(filterFn) {
|
|
279
281
|
let newCollection = new $23b9f4fcf0fe224b$export$408d25a4e12db025();
|
|
280
282
|
let lastNode = null;
|
|
281
283
|
for (let node of this) {
|
|
282
284
|
if (node.type === "section" && node.hasChildNodes) {
|
|
283
285
|
let clonedSection = node.clone();
|
|
284
286
|
let lastChildInSection = null;
|
|
285
|
-
for (let child of this.getChildren(node.key)) if (
|
|
287
|
+
for (let child of this.getChildren(node.key)) if ($23b9f4fcf0fe224b$var$shouldKeepNode(child, filterFn, this, newCollection)) {
|
|
286
288
|
let clonedChild = child.clone();
|
|
287
289
|
if (lastChildInSection == null) clonedSection.firstChildKey = clonedChild.key;
|
|
288
290
|
if (newCollection.firstKey == null) newCollection.firstKey = clonedSection.key;
|
|
@@ -319,16 +321,18 @@ class $23b9f4fcf0fe224b$export$408d25a4e12db025 {
|
|
|
319
321
|
lastNode = clonedSeparator;
|
|
320
322
|
newCollection.addNode(clonedSeparator);
|
|
321
323
|
}
|
|
322
|
-
} else
|
|
324
|
+
} else {
|
|
323
325
|
let clonedNode = node.clone();
|
|
324
|
-
if (
|
|
325
|
-
|
|
326
|
-
lastNode.
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
326
|
+
if ($23b9f4fcf0fe224b$var$shouldKeepNode(clonedNode, filterFn, this, newCollection)) {
|
|
327
|
+
if (newCollection.firstKey == null) newCollection.firstKey = clonedNode.key;
|
|
328
|
+
if (lastNode != null && lastNode.type !== "section" && lastNode.type !== "separator" && lastNode.parentKey === clonedNode.parentKey) {
|
|
329
|
+
lastNode.nextKey = clonedNode.key;
|
|
330
|
+
clonedNode.prevKey = lastNode.key;
|
|
331
|
+
} else clonedNode.prevKey = null;
|
|
332
|
+
clonedNode.nextKey = null;
|
|
333
|
+
newCollection.addNode(clonedNode);
|
|
334
|
+
lastNode = clonedNode;
|
|
335
|
+
}
|
|
332
336
|
}
|
|
333
337
|
}
|
|
334
338
|
if ((lastNode === null || lastNode === void 0 ? void 0 : lastNode.type) === "separator" && lastNode.nextKey === null) {
|
|
@@ -350,6 +354,19 @@ class $23b9f4fcf0fe224b$export$408d25a4e12db025 {
|
|
|
350
354
|
this.frozen = false;
|
|
351
355
|
}
|
|
352
356
|
}
|
|
357
|
+
function $23b9f4fcf0fe224b$var$shouldKeepNode(node, filterFn, oldCollection, newCollection) {
|
|
358
|
+
if (node.type === "subdialogtrigger" || node.type === "submenutrigger") {
|
|
359
|
+
let triggerChild = [
|
|
360
|
+
...oldCollection.getChildren(node.key)
|
|
361
|
+
][0];
|
|
362
|
+
if (triggerChild && filterFn(triggerChild.textValue)) {
|
|
363
|
+
let clonedChild = triggerChild.clone();
|
|
364
|
+
newCollection.addNode(clonedChild);
|
|
365
|
+
return true;
|
|
366
|
+
} else return false;
|
|
367
|
+
} else if (node.type === "header") return true;
|
|
368
|
+
else return filterFn(node.textValue);
|
|
369
|
+
}
|
|
353
370
|
class $681cc3c98f569e39$export$410b0c854570d131 {
|
|
354
371
|
*[Symbol.iterator]() {
|
|
355
372
|
let node = this.firstChild;
|
|
@@ -498,6 +515,14 @@ class $681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export
|
|
|
498
515
|
node.firstChildKey = (_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === void 0 ? void 0 : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== void 0 ? _this_firstChild_node_key : null;
|
|
499
516
|
var _this_lastChild_node_key;
|
|
500
517
|
node.lastChildKey = (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === void 0 ? void 0 : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== void 0 ? _this_lastChild_node_key : null;
|
|
518
|
+
if ((node.colSpan != null || node.colIndex != null) && this.nextSibling) {
|
|
519
|
+
var _node_colIndex, _node_colSpan;
|
|
520
|
+
let nextColIndex = ((_node_colIndex = node.colIndex) !== null && _node_colIndex !== void 0 ? _node_colIndex : node.index) + ((_node_colSpan = node.colSpan) !== null && _node_colSpan !== void 0 ? _node_colSpan : 1);
|
|
521
|
+
if (nextColIndex !== this.nextSibling.node.colIndex) {
|
|
522
|
+
let siblingNode = this.ownerDocument.getMutableNode(this.nextSibling);
|
|
523
|
+
siblingNode.colIndex = nextColIndex;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
501
526
|
}
|
|
502
527
|
setProps(obj, ref, rendered, render) {
|
|
503
528
|
let node = this.ownerDocument.getMutableNode(this);
|
|
@@ -512,6 +537,7 @@ class $681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export
|
|
|
512
537
|
if (this.hasSetProps) throw new Error("Cannot change the id of an item");
|
|
513
538
|
node.key = id;
|
|
514
539
|
}
|
|
540
|
+
if (props.colSpan != null) node.colSpan = props.colSpan;
|
|
515
541
|
if (!this.hasSetProps) {
|
|
516
542
|
this.ownerDocument.addNode(this);
|
|
517
543
|
this.ownerDocument.endTransaction();
|
|
@@ -600,9 +626,9 @@ class $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export
|
|
|
600
626
|
var _this_firstChild, _this_lastChild;
|
|
601
627
|
let collection = this.getMutableCollection();
|
|
602
628
|
for (let element of this.mutatedNodes) if (element.isConnected) collection.addNode(element.node);
|
|
629
|
+
this.mutatedNodes.clear();
|
|
603
630
|
var _this_firstChild_node_key, _this_lastChild_node_key;
|
|
604
631
|
collection.commit((_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === void 0 ? void 0 : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== void 0 ? _this_firstChild_node_key : null, (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === void 0 ? void 0 : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== void 0 ? _this_lastChild_node_key : null, this.isSSR);
|
|
605
|
-
this.mutatedNodes.clear();
|
|
606
632
|
}
|
|
607
633
|
this.collectionMutated = false;
|
|
608
634
|
}
|
|
@@ -663,6 +689,61 @@ function $e948873055cbafe4$export$727c8fc270210f13(props) {
|
|
|
663
689
|
addIdAndValue
|
|
664
690
|
]);
|
|
665
691
|
}
|
|
692
|
+
const $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;
|
|
693
|
+
function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
694
|
+
let { isDisabled, onLongPressStart, onLongPressEnd, onLongPress, threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription } = props;
|
|
695
|
+
const timeRef = useRef(void 0);
|
|
696
|
+
let { addGlobalListener, removeGlobalListener } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
697
|
+
let { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21({
|
|
698
|
+
isDisabled,
|
|
699
|
+
onPressStart(e) {
|
|
700
|
+
e.continuePropagation();
|
|
701
|
+
if (e.pointerType === "mouse" || e.pointerType === "touch") {
|
|
702
|
+
if (onLongPressStart) onLongPressStart({
|
|
703
|
+
...e,
|
|
704
|
+
type: "longpressstart"
|
|
705
|
+
});
|
|
706
|
+
timeRef.current = setTimeout(() => {
|
|
707
|
+
e.target.dispatchEvent(new PointerEvent("pointercancel", {
|
|
708
|
+
bubbles: true
|
|
709
|
+
}));
|
|
710
|
+
if ($431fbd86ca7dc216$export$b204af158042fbac(e.target).activeElement !== e.target) $7215afc6de606d6b$export$de79e2c695e052f3(e.target);
|
|
711
|
+
if (onLongPress) onLongPress({
|
|
712
|
+
...e,
|
|
713
|
+
type: "longpress"
|
|
714
|
+
});
|
|
715
|
+
timeRef.current = void 0;
|
|
716
|
+
}, threshold);
|
|
717
|
+
if (e.pointerType === "touch") {
|
|
718
|
+
let onContextMenu = (e2) => {
|
|
719
|
+
e2.preventDefault();
|
|
720
|
+
};
|
|
721
|
+
addGlobalListener(e.target, "contextmenu", onContextMenu, {
|
|
722
|
+
once: true
|
|
723
|
+
});
|
|
724
|
+
addGlobalListener(window, "pointerup", () => {
|
|
725
|
+
setTimeout(() => {
|
|
726
|
+
removeGlobalListener(e.target, "contextmenu", onContextMenu);
|
|
727
|
+
}, 30);
|
|
728
|
+
}, {
|
|
729
|
+
once: true
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
onPressEnd(e) {
|
|
735
|
+
if (timeRef.current) clearTimeout(timeRef.current);
|
|
736
|
+
if (onLongPressEnd && (e.pointerType === "mouse" || e.pointerType === "touch")) onLongPressEnd({
|
|
737
|
+
...e,
|
|
738
|
+
type: "longpressend"
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
});
|
|
742
|
+
let descriptionProps = $ef06256079686ba0$export$f8aeda7b10753fa1(onLongPress && !isDisabled ? accessibilityDescription : void 0);
|
|
743
|
+
return {
|
|
744
|
+
longPressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, descriptionProps)
|
|
745
|
+
};
|
|
746
|
+
}
|
|
666
747
|
var shim = { exports: {} };
|
|
667
748
|
var useSyncExternalStoreShim_production = {};
|
|
668
749
|
/**
|
|
@@ -901,14 +982,20 @@ function $e1995378a142960e$var$useSSRCollectionNode(Type, props, ref, rendered,
|
|
|
901
982
|
function $e1995378a142960e$export$18af5c7a9e9b3664(type, render) {
|
|
902
983
|
let Component = ({ node }) => render(node.props, node.props.ref, node);
|
|
903
984
|
let Result = forwardRef((props, ref) => {
|
|
985
|
+
let focusableProps = useContext($f645667febf57a63$export$f9762fab77588ecb);
|
|
904
986
|
let isShallow = useContext($e1995378a142960e$var$ShallowRenderContext);
|
|
905
987
|
if (!isShallow) {
|
|
906
988
|
if (render.length >= 3) throw new Error(render.name + " cannot be rendered outside a collection.");
|
|
907
989
|
return render(props, ref);
|
|
908
990
|
}
|
|
909
|
-
return $e1995378a142960e$var$useSSRCollectionNode(type, props, ref, "children" in props ? props.children : null, null, (node) =>
|
|
910
|
-
|
|
911
|
-
|
|
991
|
+
return $e1995378a142960e$var$useSSRCollectionNode(type, props, ref, "children" in props ? props.children : null, null, (node) => (
|
|
992
|
+
// Forward FocusableContext to real DOM tree so tooltips work.
|
|
993
|
+
/* @__PURE__ */ React__default.createElement($f645667febf57a63$export$f9762fab77588ecb.Provider, {
|
|
994
|
+
value: focusableProps
|
|
995
|
+
}, /* @__PURE__ */ React__default.createElement(Component, {
|
|
996
|
+
node
|
|
997
|
+
}))
|
|
998
|
+
));
|
|
912
999
|
});
|
|
913
1000
|
Result.displayName = render.name;
|
|
914
1001
|
return Result;
|
|
@@ -967,63 +1054,56 @@ function $e1995378a142960e$var$CollectionRoot({ children }) {
|
|
|
967
1054
|
value: doc
|
|
968
1055
|
}, wrappedChildren) : /* @__PURE__ */ reactDomExports.createPortal(wrappedChildren, doc);
|
|
969
1056
|
}
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
});
|
|
1001
|
-
addGlobalListener(window, "pointerup", () => {
|
|
1002
|
-
setTimeout(() => {
|
|
1003
|
-
removeGlobalListener(e.target, "contextmenu", onContextMenu);
|
|
1004
|
-
}, 30);
|
|
1005
|
-
}, {
|
|
1006
|
-
once: true
|
|
1007
|
-
});
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
},
|
|
1011
|
-
onPressEnd(e) {
|
|
1012
|
-
if (timeRef.current) clearTimeout(timeRef.current);
|
|
1013
|
-
if (onLongPressEnd && (e.pointerType === "mouse" || e.pointerType === "touch")) onLongPressEnd({
|
|
1014
|
-
...e,
|
|
1015
|
-
type: "longpressend"
|
|
1016
|
-
});
|
|
1017
|
-
}
|
|
1018
|
-
});
|
|
1019
|
-
let descriptionProps = $ef06256079686ba0$export$f8aeda7b10753fa1(onLongPress && !isDisabled ? accessibilityDescription : void 0);
|
|
1020
|
-
return {
|
|
1021
|
-
longPressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, descriptionProps)
|
|
1022
|
-
};
|
|
1057
|
+
function $55f9b1ae81f22853$export$76e4e37e5339496d(to) {
|
|
1058
|
+
let from = $55f9b1ae81f22853$export$759df0d867455a91($431fbd86ca7dc216$export$b204af158042fbac(to));
|
|
1059
|
+
if (from !== to) {
|
|
1060
|
+
if (from) $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from, to);
|
|
1061
|
+
if (to) $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from);
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
function $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from, to) {
|
|
1065
|
+
from.dispatchEvent(new FocusEvent("blur", {
|
|
1066
|
+
relatedTarget: to
|
|
1067
|
+
}));
|
|
1068
|
+
from.dispatchEvent(new FocusEvent("focusout", {
|
|
1069
|
+
bubbles: true,
|
|
1070
|
+
relatedTarget: to
|
|
1071
|
+
}));
|
|
1072
|
+
}
|
|
1073
|
+
function $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from) {
|
|
1074
|
+
to.dispatchEvent(new FocusEvent("focus", {
|
|
1075
|
+
relatedTarget: from
|
|
1076
|
+
}));
|
|
1077
|
+
to.dispatchEvent(new FocusEvent("focusin", {
|
|
1078
|
+
bubbles: true,
|
|
1079
|
+
relatedTarget: from
|
|
1080
|
+
}));
|
|
1081
|
+
}
|
|
1082
|
+
function $55f9b1ae81f22853$export$759df0d867455a91(document2) {
|
|
1083
|
+
let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(document2);
|
|
1084
|
+
let activeDescendant = activeElement === null || activeElement === void 0 ? void 0 : activeElement.getAttribute("aria-activedescendant");
|
|
1085
|
+
if (activeDescendant) return document2.getElementById(activeDescendant) || activeElement;
|
|
1086
|
+
return activeElement;
|
|
1023
1087
|
}
|
|
1024
1088
|
function $feb5ffebff200149$export$d3e3bd3e26688c04(e) {
|
|
1025
1089
|
return $c87311424ea30a05$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey;
|
|
1026
1090
|
}
|
|
1091
|
+
function $feb5ffebff200149$export$c3d8340acf92597f(collectionRef, key) {
|
|
1092
|
+
var _collectionRef_current, _collectionRef_current1;
|
|
1093
|
+
let selector = `[data-key="${CSS.escape(String(key))}"]`;
|
|
1094
|
+
let collection = (_collectionRef_current = collectionRef.current) === null || _collectionRef_current === void 0 ? void 0 : _collectionRef_current.dataset.collection;
|
|
1095
|
+
if (collection) selector = `[data-collection="${CSS.escape(collection)}"]${selector}`;
|
|
1096
|
+
return (_collectionRef_current1 = collectionRef.current) === null || _collectionRef_current1 === void 0 ? void 0 : _collectionRef_current1.querySelector(selector);
|
|
1097
|
+
}
|
|
1098
|
+
const $feb5ffebff200149$var$collectionMap = /* @__PURE__ */ new WeakMap();
|
|
1099
|
+
function $feb5ffebff200149$export$881eb0d9f3605d9d(collection) {
|
|
1100
|
+
let id = $bdb11010cef70236$export$f680877a34711e37();
|
|
1101
|
+
$feb5ffebff200149$var$collectionMap.set(collection, id);
|
|
1102
|
+
return id;
|
|
1103
|
+
}
|
|
1104
|
+
function $feb5ffebff200149$export$6aeb1680a0ae8741(collection) {
|
|
1105
|
+
return $feb5ffebff200149$var$collectionMap.get(collection);
|
|
1106
|
+
}
|
|
1027
1107
|
const $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1e3;
|
|
1028
1108
|
function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {
|
|
1029
1109
|
let { keyboardDelegate, selectionManager, onTypeSelect } = options;
|
|
@@ -1075,11 +1155,10 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
1075
1155
|
const navigateToKey = (key, childFocus) => {
|
|
1076
1156
|
if (key != null) {
|
|
1077
1157
|
if (manager.isLink(key) && linkBehavior === "selection" && selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e)) {
|
|
1078
|
-
var _scrollRef_current;
|
|
1079
1158
|
reactDomExports.flushSync(() => {
|
|
1080
1159
|
manager.setFocusedKey(key, childFocus);
|
|
1081
1160
|
});
|
|
1082
|
-
let item = (
|
|
1161
|
+
let item = $feb5ffebff200149$export$c3d8340acf92597f(ref, key);
|
|
1083
1162
|
let itemProps = manager.getItemProps(key);
|
|
1084
1163
|
if (item) router.open(item, e, itemProps.href, itemProps.routerOptions);
|
|
1085
1164
|
return;
|
|
@@ -1230,24 +1309,24 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
1230
1309
|
manager.setFocused(true);
|
|
1231
1310
|
if (manager.focusedKey == null) {
|
|
1232
1311
|
var _delegate_getLastKey, _delegate_getFirstKey;
|
|
1233
|
-
let
|
|
1312
|
+
let navigateToKey = (key) => {
|
|
1234
1313
|
if (key != null) {
|
|
1235
1314
|
manager.setFocusedKey(key);
|
|
1236
|
-
if (selectOnFocus) manager.replaceSelection(key);
|
|
1315
|
+
if (selectOnFocus && !manager.isSelected(key)) manager.replaceSelection(key);
|
|
1237
1316
|
}
|
|
1238
1317
|
};
|
|
1239
1318
|
let relatedTarget = e.relatedTarget;
|
|
1240
1319
|
var _manager_lastSelectedKey, _manager_firstSelectedKey;
|
|
1241
|
-
if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING)
|
|
1242
|
-
else
|
|
1320
|
+
if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== void 0 ? _manager_lastSelectedKey : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate));
|
|
1321
|
+
else navigateToKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== void 0 ? _manager_firstSelectedKey : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate));
|
|
1243
1322
|
} else if (!isVirtualized && scrollRef.current) {
|
|
1244
1323
|
scrollRef.current.scrollTop = scrollPos.current.top;
|
|
1245
1324
|
scrollRef.current.scrollLeft = scrollPos.current.left;
|
|
1246
1325
|
}
|
|
1247
1326
|
if (manager.focusedKey != null && scrollRef.current) {
|
|
1248
|
-
let element =
|
|
1249
|
-
if (element) {
|
|
1250
|
-
if (!element.contains(document.activeElement)) $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
1327
|
+
let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
|
|
1328
|
+
if (element instanceof HTMLElement) {
|
|
1329
|
+
if (!element.contains(document.activeElement) && !shouldUseVirtualFocus) $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
1251
1330
|
let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
1252
1331
|
if (modality === "keyboard") $2f04cbc44ee30ce0$export$c826860796309d1b(element, {
|
|
1253
1332
|
containingElement: ref.current
|
|
@@ -1270,11 +1349,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
1270
1349
|
var _delegate_getFirstKey1;
|
|
1271
1350
|
let keyToFocus = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
|
|
1272
1351
|
if (keyToFocus == null) {
|
|
1273
|
-
|
|
1274
|
-
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.dispatchEvent(new CustomEvent($5671b20cf9b562b2$export$9db568f6321ad9dc, {
|
|
1275
|
-
cancelable: true,
|
|
1276
|
-
bubbles: true
|
|
1277
|
-
}));
|
|
1352
|
+
$55f9b1ae81f22853$export$76e4e37e5339496d(ref.current);
|
|
1278
1353
|
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
1279
1354
|
} else {
|
|
1280
1355
|
manager.setFocusedKey(keyToFocus);
|
|
@@ -1297,11 +1372,13 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
1297
1372
|
resetFocusFirstFlag
|
|
1298
1373
|
]);
|
|
1299
1374
|
$e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$447a38995de2c711, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
1375
|
+
var _e_detail;
|
|
1300
1376
|
e.stopPropagation();
|
|
1301
1377
|
manager.setFocused(false);
|
|
1302
|
-
manager.setFocusedKey(null);
|
|
1378
|
+
if ((_e_detail = e.detail) === null || _e_detail === void 0 ? void 0 : _e_detail.clearFocusKey) manager.setFocusedKey(null);
|
|
1303
1379
|
});
|
|
1304
1380
|
const autoFocusRef = useRef(autoFocus);
|
|
1381
|
+
const didAutoFocusRef = useRef(false);
|
|
1305
1382
|
useEffect(() => {
|
|
1306
1383
|
if (autoFocusRef.current) {
|
|
1307
1384
|
var _delegate_getFirstKey, _delegate_getLastKey;
|
|
@@ -1319,26 +1396,30 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
1319
1396
|
}
|
|
1320
1397
|
manager.setFocused(true);
|
|
1321
1398
|
manager.setFocusedKey(focusedKey);
|
|
1322
|
-
if (focusedKey == null && !shouldUseVirtualFocus && ref.current) $
|
|
1399
|
+
if (focusedKey == null && !shouldUseVirtualFocus && ref.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
1400
|
+
if (manager.collection.size > 0) {
|
|
1401
|
+
autoFocusRef.current = false;
|
|
1402
|
+
didAutoFocusRef.current = true;
|
|
1403
|
+
}
|
|
1323
1404
|
}
|
|
1324
|
-
}
|
|
1405
|
+
});
|
|
1325
1406
|
let lastFocusedKey = useRef(manager.focusedKey);
|
|
1326
1407
|
useEffect(() => {
|
|
1327
|
-
if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current ||
|
|
1408
|
+
if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || didAutoFocusRef.current) && scrollRef.current && ref.current) {
|
|
1328
1409
|
let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
1329
|
-
let element =
|
|
1330
|
-
if (!element)
|
|
1410
|
+
let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
|
|
1411
|
+
if (!(element instanceof HTMLElement))
|
|
1331
1412
|
return;
|
|
1332
|
-
if (modality === "keyboard" ||
|
|
1413
|
+
if (modality === "keyboard" || didAutoFocusRef.current) {
|
|
1333
1414
|
$2f04cbc44ee30ce0$export$53a0910f038337bd(scrollRef.current, element);
|
|
1334
1415
|
if (modality !== "virtual") $2f04cbc44ee30ce0$export$c826860796309d1b(element, {
|
|
1335
1416
|
containingElement: ref.current
|
|
1336
1417
|
});
|
|
1337
1418
|
}
|
|
1338
1419
|
}
|
|
1339
|
-
if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current) $
|
|
1420
|
+
if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
1340
1421
|
lastFocusedKey.current = manager.focusedKey;
|
|
1341
|
-
|
|
1422
|
+
didAutoFocusRef.current = false;
|
|
1342
1423
|
});
|
|
1343
1424
|
$e9faafb641e167db$export$90fc3a17d93f704c(ref, "react-aria-focus-scope-restore", (e) => {
|
|
1344
1425
|
e.preventDefault();
|
|
@@ -1360,12 +1441,12 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
1360
1441
|
if (!disallowTypeAhead) handlers = $3ef42575df84b30b$export$9d1611c77c2fe928(typeSelectProps, handlers);
|
|
1361
1442
|
let tabIndex = void 0;
|
|
1362
1443
|
if (!shouldUseVirtualFocus) tabIndex = manager.focusedKey == null ? 0 : -1;
|
|
1363
|
-
|
|
1444
|
+
let collectionId = $feb5ffebff200149$export$881eb0d9f3605d9d(manager.collection);
|
|
1364
1445
|
return {
|
|
1365
|
-
collectionProps: {
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
}
|
|
1446
|
+
collectionProps: $3ef42575df84b30b$export$9d1611c77c2fe928(handlers, {
|
|
1447
|
+
tabIndex,
|
|
1448
|
+
"data-collection": collectionId
|
|
1449
|
+
})
|
|
1369
1450
|
};
|
|
1370
1451
|
}
|
|
1371
1452
|
function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
@@ -1398,15 +1479,8 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
1398
1479
|
if (isFocused && manager.isFocused) {
|
|
1399
1480
|
if (!shouldUseVirtualFocus) {
|
|
1400
1481
|
if (focus) focus();
|
|
1401
|
-
else if (document.activeElement !== ref.current && ref.current) $
|
|
1402
|
-
} else
|
|
1403
|
-
var _ref_current;
|
|
1404
|
-
let updateActiveDescendant = new CustomEvent($5671b20cf9b562b2$export$9db568f6321ad9dc, {
|
|
1405
|
-
cancelable: true,
|
|
1406
|
-
bubbles: true
|
|
1407
|
-
});
|
|
1408
|
-
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.dispatchEvent(updateActiveDescendant);
|
|
1409
|
-
}
|
|
1482
|
+
else if (document.activeElement !== ref.current && ref.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
1483
|
+
} else $55f9b1ae81f22853$export$76e4e37e5339496d(ref.current);
|
|
1410
1484
|
}
|
|
1411
1485
|
}, [
|
|
1412
1486
|
ref,
|
|
@@ -1480,8 +1554,23 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
1480
1554
|
}
|
|
1481
1555
|
};
|
|
1482
1556
|
}
|
|
1557
|
+
itemProps["data-collection"] = $feb5ffebff200149$export$6aeb1680a0ae8741(manager.collection);
|
|
1483
1558
|
itemProps["data-key"] = key;
|
|
1484
1559
|
itemPressProps.preventFocusOnPress = shouldUseVirtualFocus;
|
|
1560
|
+
if (shouldUseVirtualFocus) itemPressProps = $3ef42575df84b30b$export$9d1611c77c2fe928(itemPressProps, {
|
|
1561
|
+
onPressStart(e) {
|
|
1562
|
+
if (e.pointerType !== "touch") {
|
|
1563
|
+
manager.setFocused(true);
|
|
1564
|
+
manager.setFocusedKey(key);
|
|
1565
|
+
}
|
|
1566
|
+
},
|
|
1567
|
+
onPress(e) {
|
|
1568
|
+
if (e.pointerType === "touch") {
|
|
1569
|
+
manager.setFocused(true);
|
|
1570
|
+
manager.setFocusedKey(key);
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
});
|
|
1485
1574
|
let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21(itemPressProps);
|
|
1486
1575
|
let onDoubleClick = hasSecondaryAction ? (e) => {
|
|
1487
1576
|
if (modality.current === "mouse") {
|
|
@@ -1506,12 +1595,21 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
1506
1595
|
if (!$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening) e.preventDefault();
|
|
1507
1596
|
} : void 0;
|
|
1508
1597
|
return {
|
|
1509
|
-
itemProps: $3ef42575df84b30b$export$9d1611c77c2fe928(
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1598
|
+
itemProps: $3ef42575df84b30b$export$9d1611c77c2fe928(
|
|
1599
|
+
itemProps,
|
|
1600
|
+
allowsSelection || hasPrimaryAction || shouldUseVirtualFocus ? pressProps : {},
|
|
1601
|
+
longPressEnabled ? longPressProps : {},
|
|
1602
|
+
{
|
|
1603
|
+
onDoubleClick,
|
|
1604
|
+
onDragStartCapture,
|
|
1605
|
+
onClick,
|
|
1606
|
+
id
|
|
1607
|
+
},
|
|
1608
|
+
// Prevent DOM focus from moving on mouse down when using virtual focus
|
|
1609
|
+
shouldUseVirtualFocus ? {
|
|
1610
|
+
onMouseDown: (e) => e.preventDefault()
|
|
1611
|
+
} : void 0
|
|
1612
|
+
),
|
|
1515
1613
|
isPressed,
|
|
1516
1614
|
isSelected: manager.isSelected(key),
|
|
1517
1615
|
isFocused: manager.isFocused && manager.focusedKey === key,
|
|
@@ -2155,6 +2253,12 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
|
2155
2253
|
var _this_collection_getItem;
|
|
2156
2254
|
return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.props;
|
|
2157
2255
|
}
|
|
2256
|
+
withCollection(collection) {
|
|
2257
|
+
return new $d496c0a20b6e58ec$export$6c8a5aaad13c9852(collection, this.state, {
|
|
2258
|
+
allowsCellSelection: this.allowsCellSelection,
|
|
2259
|
+
layoutDelegate: this.layoutDelegate || void 0
|
|
2260
|
+
});
|
|
2261
|
+
}
|
|
2158
2262
|
constructor(collection, state, options) {
|
|
2159
2263
|
this.collection = collection;
|
|
2160
2264
|
this.state = state;
|
|
@@ -2215,12 +2319,14 @@ export {
|
|
|
2215
2319
|
$7135fc7d473fd974$export$4feb769f8ddf26c5 as f,
|
|
2216
2320
|
$7135fc7d473fd974$export$d40e14dec8b060a8 as g,
|
|
2217
2321
|
$e1995378a142960e$export$18af5c7a9e9b3664 as h,
|
|
2218
|
-
$
|
|
2219
|
-
$
|
|
2220
|
-
$
|
|
2221
|
-
$
|
|
2222
|
-
$
|
|
2223
|
-
$
|
|
2224
|
-
$
|
|
2225
|
-
$
|
|
2322
|
+
$feb5ffebff200149$export$c3d8340acf92597f as i,
|
|
2323
|
+
$cc38e7bd3fc7b213$export$2bb74740c4e19def as j,
|
|
2324
|
+
$ae20dd8cbca75726$export$d6daf82dcd84e87c as k,
|
|
2325
|
+
$c5a24bc478652b5f$export$1005530eda016c13 as l,
|
|
2326
|
+
$7135fc7d473fd974$export$90e00781bc59d8f9 as m,
|
|
2327
|
+
$7135fc7d473fd974$export$a164736487e3f0ae as n,
|
|
2328
|
+
$fb3050f43d946246$export$e32c88dfddc6e1d8 as o,
|
|
2329
|
+
$55f9b1ae81f22853$export$2b35b76d2e30e129 as p,
|
|
2330
|
+
$8a26561d2877236e$export$c24ed0104d07eab9 as q,
|
|
2331
|
+
$e1995378a142960e$export$e953bb1cd0f19726 as r
|
|
2226
2332
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as $9446cca9a3875146$export$7d15b64cf5a3a4c4, b as $9446cca9a3875146$export$b6268554fba451f } from "./number-GajL10e1.js";
|
|
2
|
-
import { a as $5b160d28a433310d$export$c17fa47878dc55b6, b as $6db58dc88e78b024$export$2f817fcdc4b89ae0 } from "./useLocalizedStringFormatter-
|
|
2
|
+
import { a as $5b160d28a433310d$export$c17fa47878dc55b6, b as $6db58dc88e78b024$export$2f817fcdc4b89ae0 } from "./useLocalizedStringFormatter-CFP1YZWQ.js";
|
|
3
3
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
|
|
4
4
|
var $eccab2b0118aef08$exports = {};
|
|
5
5
|
$eccab2b0118aef08$exports = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f, a as $3493a52097159720$exports } from "./Color-B0HgM8f4.js";
|
|
3
|
-
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
1
|
+
import { e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-DkCSC521.js";
|
|
4
2
|
import React__default, { useMemo, forwardRef, createContext } from "react";
|
|
5
|
-
import { $ as $
|
|
6
|
-
import { $ as $
|
|
3
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f, a as $3493a52097159720$exports } from "./Color-MV5kBVXr.js";
|
|
4
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
5
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-D2KUdwNL.js";
|
|
6
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CFP1YZWQ.js";
|
|
7
7
|
function $parcel$interopDefault(a) {
|
|
8
8
|
return a && a.__esModule ? a.default : a;
|
|
9
9
|
}
|