@eightshift/ui-components 1.6.1 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button-VbCAu4hd.js +185 -0
- package/dist/{intlStrings-BxJIrC6b.js → Color-BpLubxWI.js} +2394 -2394
- package/dist/{ColorSwatch-BNX2quma.js → ColorSwatch-CinC14s3.js} +4 -4
- package/dist/{Dialog-BdtBguys.js → Dialog-BN5EE7UH.js} +9 -9
- package/dist/{FieldError-ClB3-XvF.js → FieldError-BttM1Nxd.js} +2 -2
- package/dist/{FocusScope-B5L3qI3N.js → FocusScope-CtCX0OGo.js} +2 -2
- package/dist/{Group-ubPTwji_.js → Group-XzWUooix.js} +3 -3
- package/dist/{Heading-DGnF6JDc.js → Heading-DZelepHV.js} +1 -1
- package/dist/{Hidden-CupIZhlF.js → Hidden-CcFqOzrp.js} +1 -1
- package/dist/{Input-BoNEjaXM.js → Input-CV1qVS6t.js} +8 -8
- package/dist/{Label-BqW0M3HN.js → Label-BwqMVkuV.js} +2 -2
- package/dist/{ListBox-civ86c_v.js → ListBox-DuZPdnkk.js} +16 -12
- package/dist/{SelectionManager-Ctbzoj1E.js → SelectionManager-x27KqnAT.js} +67 -34
- package/dist/{Separator-CDhAddZc.js → Separator-BM58t3PP.js} +24 -26
- package/dist/{Slider-Dkj8Slw3.js → Slider-D9Cs6yKr.js} +162 -162
- package/dist/{Text-CdwRBXol.js → Text-BVIXT8qq.js} +1 -1
- package/dist/{VisuallyHidden-DsMLX-RC.js → VisuallyHidden-WhC7vZaL.js} +2 -2
- package/dist/assets/style.css +1 -1
- package/dist/components/animated-visibility/animated-visibility.js +92 -129
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +6 -6
- package/dist/components/checkbox/checkbox.js +7 -7
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +3 -3
- package/dist/components/color-pickers/gradient-editor.js +2 -2
- package/dist/components/color-pickers/solid-color-picker.js +64 -64
- package/dist/components/component-toggle/component-toggle.js +1 -1
- package/dist/components/draggable/draggable-handle.js +2 -2
- package/dist/components/draggable/draggable.js +7 -4
- package/dist/components/draggable-list/draggable-list-item.js +2 -2
- package/dist/components/draggable-list/draggable-list.js +6 -3
- package/dist/components/expandable/expandable.js +3 -3
- package/dist/components/index.js +3 -1
- package/dist/components/input-field/input-field.js +7 -7
- package/dist/components/item-collection/item-collection.js +6 -1
- package/dist/components/link-input/link-input.js +40 -36
- package/dist/components/list-box/list-box.js +2 -2
- package/dist/components/matrix-align/matrix-align.js +2 -2
- package/dist/components/menu/menu.js +15 -15
- package/dist/components/modal/modal.js +6 -6
- package/dist/components/number-picker/number-picker.js +10 -10
- package/dist/components/option-select/option-select.js +1 -1
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/placeholders/media-placeholder.js +6 -5
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.js +13 -13
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.js +6 -3
- package/dist/components/responsive/mini-responsive.js +495 -0
- package/dist/components/responsive/responsive-legacy.js +2 -2
- package/dist/components/responsive/responsive.js +7 -3
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/select/async-multi-select.js +1 -0
- package/dist/components/select/async-single-select.js +1 -0
- package/dist/components/select/multi-select.js +1 -0
- package/dist/components/select/single-select.js +1 -0
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/spacer/spacer.js +3 -4
- package/dist/components/tabs/tabs.js +22 -17
- package/dist/components/toggle/switch.js +6 -6
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +3 -3
- package/dist/{context-kCEA3M_y.js → context-Cs-ZD1nu.js} +1 -1
- package/dist/{default-i18n-BqWys-1G.js → default-i18n-DRnM8y4w.js} +45 -21
- package/dist/{focusSafely-xMzk3syC.js → focusSafely-CgFLw4FA.js} +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +3 -1
- package/dist/{number-CHmNj-oR.js → number-GajL10e1.js} +2 -2
- package/dist/{react-jsx-parser.min-sPC96O_U.js → react-jsx-parser.min-B5HVwW_W.js} +103 -53
- package/dist/{textSelection-D5Bit8i8.js → textSelection-CvK0YHTZ.js} +1 -1
- package/dist/{tooltip-srrt1p-b.js → tooltip-eKaARDoV.js} +5 -5
- package/dist/{useButton-6H5k2W5N.js → useButton-Cy9eEev7.js} +3 -3
- package/dist/{useEvent-BY-3vfxa.js → useEvent-LZebwyrb.js} +1 -1
- package/dist/{useFocusRing-rz8eyzby.js → useFocusRing-BMOTWmOx.js} +1 -1
- package/dist/{useFocusable-Bu2Ovohk.js → useFocusable-ByyKSVQv.js} +2 -2
- package/dist/{useFormReset-fUHUaaR6.js → useFormReset-B8m1uz1J.js} +1 -1
- package/dist/{useFormValidationState-DAan_XbC.js → useFormValidationState-BjMhz_VI.js} +2 -2
- package/dist/{useLabel-Bk7iP__W.js → useLabel-B6uO0wVK.js} +2 -2
- package/dist/{useLabels-DmsOywGg.js → useLabels-5dFkeiXx.js} +1 -1
- package/dist/{useListState-GXSJsAgz.js → useListState-eKxv7HPC.js} +28 -16
- package/dist/{useLocalizedStringFormatter-m03yY3xi.js → useLocalizedStringFormatter-BaKmjFNp.js} +1 -1
- package/dist/{useMenuTrigger-CT2-BFLo.js → useMenuTrigger-4fwEmto8.js} +4 -4
- package/dist/{useNumberFieldState-CpmU88xz.js → useNumberField-DMMUTZ-h.js} +169 -169
- package/dist/{useNumberFormatter-B-20GQ2u.js → useNumberFormatter-Cyx5Dxkf.js} +1 -1
- package/dist/{usePress-Cs8K7gKw.js → usePress-D8nPoIQm.js} +22 -10
- package/dist/{useSingleSelectListState-C1ddMCq3.js → useSingleSelectListState-CABciySJ.js} +3 -2
- package/dist/{useToggle-Cn2nQUNS.js → useToggle-BmltE9Zr.js} +4 -4
- package/dist/{useToggleState-Dj0JhD9W.js → useToggleState-DZXLEnA_.js} +1 -1
- package/dist/{utils-Du2x3YVu.js → utils-BCJajCwh.js} +15 -7
- package/package.json +24 -24
- package/dist/Button-CYX0D6At.js +0 -55
- package/dist/LiveAnnouncer-D8h-3GrG.js +0 -63
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-
|
|
2
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f, a as $3493a52097159720$exports } from "./
|
|
1
|
+
import { e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-BCJajCwh.js";
|
|
2
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f, a as $3493a52097159720$exports } from "./Color-BpLubxWI.js";
|
|
3
3
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
4
4
|
import React__default, { useMemo, forwardRef, createContext } from "react";
|
|
5
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
6
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
5
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-Cs-ZD1nu.js";
|
|
6
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-BaKmjFNp.js";
|
|
7
7
|
function $parcel$interopDefault(a) {
|
|
8
8
|
return a && a.__esModule ? a.default : a;
|
|
9
9
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { l as $df56164dff5785e2$export$4338b53315abf666, c as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, e as $bdb11010cef70236$export$f680877a34711e37, j as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, n as $ff5963eb1fccf552$export$e08e3b67e392101e, d as $b5e257d569688ac6$export$535bd6ca7f90a273, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, a as $64fa3d84918910a7$export$29f1550f4b0d4415, o as $64fa3d84918910a7$export$45fda7c47f93fd48, p as $64fa3d84918910a7$export$6d3443f2c48bfc20, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, q as $64fa3d84918910a7$export$c62b8e45d58ddad9 } from "./utils-
|
|
1
|
+
import { l as $df56164dff5785e2$export$4338b53315abf666, c as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, e as $bdb11010cef70236$export$f680877a34711e37, j as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, n as $ff5963eb1fccf552$export$e08e3b67e392101e, d as $b5e257d569688ac6$export$535bd6ca7f90a273, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, a as $64fa3d84918910a7$export$29f1550f4b0d4415, o as $64fa3d84918910a7$export$45fda7c47f93fd48, p as $64fa3d84918910a7$export$6d3443f2c48bfc20, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, q as $64fa3d84918910a7$export$c62b8e45d58ddad9 } from "./utils-BCJajCwh.js";
|
|
2
2
|
import { $ as $4e85f108e88277b8$export$d688439359537581 } from "./RSPContexts-2lR5GG9p.js";
|
|
3
|
-
import { b as $dd149f63282afbbf$export$f6211563215e3b37, c as $2a41e45df1593e64$export$d39e1813b3bdd0e1, $ as $fc909762b330b746$export$61c6a8c84e605fb6, d as $44f671af83e7d9e0$export$2de4954e8ae13b9f } from "./tooltip-
|
|
3
|
+
import { b as $dd149f63282afbbf$export$f6211563215e3b37, c as $2a41e45df1593e64$export$d39e1813b3bdd0e1, $ as $fc909762b330b746$export$61c6a8c84e605fb6, d as $44f671af83e7d9e0$export$2de4954e8ae13b9f } from "./tooltip-eKaARDoV.js";
|
|
4
4
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
5
|
-
import { d as $ae1eeba8b9eafd08$export$5165eccb35aaadb5 } from "./usePress-
|
|
6
|
-
import { l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e, g as $431fbd86ca7dc216$export$b204af158042fbac, d as $9ab94262bd0047c7$export$420e68273165f4ec, j as $c87311424ea30a05$export$fedb369cb70207f1, h as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-
|
|
5
|
+
import { d as $ae1eeba8b9eafd08$export$5165eccb35aaadb5 } from "./usePress-D8nPoIQm.js";
|
|
6
|
+
import { l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e, g as $431fbd86ca7dc216$export$b204af158042fbac, d as $9ab94262bd0047c7$export$420e68273165f4ec, j as $c87311424ea30a05$export$fedb369cb70207f1, h as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-CgFLw4FA.js";
|
|
7
7
|
import React__default, { useRef, useContext, useEffect, useMemo, createContext, useState, forwardRef } from "react";
|
|
8
|
-
import { c as $9bf71ea28793e738$export$1258395f99bf9cbf, $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-
|
|
8
|
+
import { c as $9bf71ea28793e738$export$1258395f99bf9cbf, $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-CtCX0OGo.js";
|
|
9
9
|
import { $ as $dbSRa$reactdom } from "./index-BTCzc3zb.js";
|
|
10
|
-
import { b as $f39a9eba43920ace$export$b5d7cc18bb8d2b59 } from "./Hidden-
|
|
10
|
+
import { b as $f39a9eba43920ace$export$b5d7cc18bb8d2b59 } from "./Hidden-CcFqOzrp.js";
|
|
11
11
|
import { $ as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./isScrollable-Dh9D9IOd.js";
|
|
12
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
13
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
14
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
12
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-5dFkeiXx.js";
|
|
13
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-BaKmjFNp.js";
|
|
14
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-WhC7vZaL.js";
|
|
15
15
|
function $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {
|
|
16
16
|
let scrollableNode = node;
|
|
17
17
|
if ($cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-
|
|
2
|
-
import { k as $bdb11010cef70236$export$b4cc09c592e8fdb8, c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-B6uO0wVK.js";
|
|
2
|
+
import { k as $bdb11010cef70236$export$b4cc09c592e8fdb8, c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-BCJajCwh.js";
|
|
3
3
|
import { createContext } from "react";
|
|
4
4
|
function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
5
5
|
let { description, errorMessage, isInvalid, validationState } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as $431fbd86ca7dc216$export$f21a1ffae260145a, g as $431fbd86ca7dc216$export$b204af158042fbac, h as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-
|
|
2
|
-
import { j as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-
|
|
1
|
+
import { f as $431fbd86ca7dc216$export$f21a1ffae260145a, g as $431fbd86ca7dc216$export$b204af158042fbac, h as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-CgFLw4FA.js";
|
|
2
|
+
import { j as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-BCJajCwh.js";
|
|
3
3
|
import React__default, { useRef, useContext, useMemo, useEffect } from "react";
|
|
4
4
|
function $645f2e67b85a24c9$var$isStyleVisible(element) {
|
|
5
5
|
const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-BCJajCwh.js";
|
|
2
2
|
import React__default, { forwardRef, createContext } from "react";
|
|
3
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-
|
|
4
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
3
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-CgFLw4FA.js";
|
|
4
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-BMOTWmOx.js";
|
|
5
5
|
const $a049562f99e7db0e$export$f9c6924e160136d1 = /* @__PURE__ */ createContext({});
|
|
6
6
|
function $a049562f99e7db0e$var$Group(props, ref) {
|
|
7
7
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $a049562f99e7db0e$export$f9c6924e160136d1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as $4e85f108e88277b8$export$d688439359537581 } from "./RSPContexts-2lR5GG9p.js";
|
|
2
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-
|
|
2
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-BCJajCwh.js";
|
|
3
3
|
import React__default, { forwardRef } from "react";
|
|
4
4
|
function $5cb03073d3f54797$var$Heading(props, ref) {
|
|
5
5
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$d688439359537581);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as reactDomExports } from "./index-BTCzc3zb.js";
|
|
2
2
|
import React__default, { forwardRef, useContext, createContext } from "react";
|
|
3
|
-
import { d as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-
|
|
3
|
+
import { d as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-BCJajCwh.js";
|
|
4
4
|
if (typeof HTMLTemplateElement !== "undefined") {
|
|
5
5
|
const getFirstChild = Object.getOwnPropertyDescriptor(Node.prototype, "firstChild").get;
|
|
6
6
|
Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React__default, { useEffect, createContext } from "react";
|
|
2
|
-
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, f as $431fbd86ca7dc216$export$f21a1ffae260145a, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-
|
|
3
|
-
import { c as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-
|
|
2
|
+
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, f as $431fbd86ca7dc216$export$f21a1ffae260145a, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-CgFLw4FA.js";
|
|
3
|
+
import { c as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-BCJajCwh.js";
|
|
4
4
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
5
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
6
|
-
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./FieldError-
|
|
7
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
8
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidationState-
|
|
9
|
-
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-
|
|
10
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
5
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-B8m1uz1J.js";
|
|
6
|
+
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./FieldError-BttM1Nxd.js";
|
|
7
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-ByyKSVQv.js";
|
|
8
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidationState-BjMhz_VI.js";
|
|
9
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-CcFqOzrp.js";
|
|
10
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-BMOTWmOx.js";
|
|
11
11
|
function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
12
12
|
let { inputElementType = "input", isDisabled = false, isRequired = false, isReadOnly = false, type = "text", validationBehavior = "aria" } = props;
|
|
13
13
|
let [value, setValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, props.defaultValue || "", props.onChange);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-
|
|
2
|
-
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-
|
|
1
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-BCJajCwh.js";
|
|
2
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-CcFqOzrp.js";
|
|
3
3
|
import React__default, { createContext } from "react";
|
|
4
4
|
const $01b77f81d0f07f68$export$75b6ee27786ba447 = /* @__PURE__ */ createContext({});
|
|
5
5
|
function $01b77f81d0f07f68$var$Label(props, ref) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { c as $880e95eb8b93ba9a$export$ecf600387e221c37, d as $e1995378a142960e$export$18af5c7a9e9b3664, e as $e1995378a142960e$export$bf788dd355e3a401, f as $e1995378a142960e$export$fb8073518f34e6ec, g as $7135fc7d473fd974$export$4feb769f8ddf26c5, h as $7135fc7d473fd974$export$d40e14dec8b060a8 } from "./SelectionManager-
|
|
2
|
-
import { e as $bdb11010cef70236$export$f680877a34711e37, c as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, n as $ff5963eb1fccf552$export$e08e3b67e392101e, l as $df56164dff5785e2$export$4338b53315abf666, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, a as $64fa3d84918910a7$export$29f1550f4b0d4415, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 } from "./utils-
|
|
1
|
+
import { c as $880e95eb8b93ba9a$export$ecf600387e221c37, d as $e1995378a142960e$export$18af5c7a9e9b3664, e as $e1995378a142960e$export$bf788dd355e3a401, f as $e1995378a142960e$export$fb8073518f34e6ec, g as $7135fc7d473fd974$export$4feb769f8ddf26c5, h as $7135fc7d473fd974$export$d40e14dec8b060a8 } from "./SelectionManager-x27KqnAT.js";
|
|
2
|
+
import { e as $bdb11010cef70236$export$f680877a34711e37, c as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, n as $ff5963eb1fccf552$export$e08e3b67e392101e, l as $df56164dff5785e2$export$4338b53315abf666, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, a as $64fa3d84918910a7$export$29f1550f4b0d4415, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 } from "./utils-BCJajCwh.js";
|
|
3
3
|
import React__default, { createContext, useCallback, useMemo, forwardRef, useContext, useEffect, useRef } from "react";
|
|
4
|
-
import { $ as $982254629710d113$export$b95089534ab7c1fd, a as $453cc9f0df89c0a5$export$77d5aafae4e095b2, b as $325a3faab7a68acd$export$a16aca283550c30d, c as $2a25aae57d74318e$export$a05409b8bb224a5a, d as $431f98aba6844401$export$6615d83f6de245ce, e as $72a5793c14baf454$export$e0e4026c12a8bdbb } from "./Separator-
|
|
5
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-
|
|
4
|
+
import { $ as $982254629710d113$export$b95089534ab7c1fd, a as $453cc9f0df89c0a5$export$77d5aafae4e095b2, b as $325a3faab7a68acd$export$a16aca283550c30d, c as $2a25aae57d74318e$export$a05409b8bb224a5a, d as $431f98aba6844401$export$6615d83f6de245ce, e as $72a5793c14baf454$export$e0e4026c12a8bdbb } from "./Separator-BM58t3PP.js";
|
|
5
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-BVIXT8qq.js";
|
|
6
6
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
7
|
-
import { a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-
|
|
8
|
-
import { d as $9ab94262bd0047c7$export$420e68273165f4ec, n as $c87311424ea30a05$export$9ac100e40613ea10, o as $c87311424ea30a05$export$78551043582a6a98, $ as $6179b936705e76d3$export$ae780daf29e6d456, a as $507fabe10e71c6fb$export$b9b3dfddab17db27 } from "./focusSafely-
|
|
9
|
-
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-
|
|
10
|
-
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-
|
|
11
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
12
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
13
|
-
import { $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-
|
|
7
|
+
import { a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-D8nPoIQm.js";
|
|
8
|
+
import { d as $9ab94262bd0047c7$export$420e68273165f4ec, n as $c87311424ea30a05$export$9ac100e40613ea10, o as $c87311424ea30a05$export$78551043582a6a98, $ as $6179b936705e76d3$export$ae780daf29e6d456, a as $507fabe10e71c6fb$export$b9b3dfddab17db27 } from "./focusSafely-CgFLw4FA.js";
|
|
9
|
+
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-B6uO0wVK.js";
|
|
10
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-eKxv7HPC.js";
|
|
11
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-Cs-ZD1nu.js";
|
|
12
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-BMOTWmOx.js";
|
|
13
|
+
import { $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-CtCX0OGo.js";
|
|
14
14
|
const $b1f0cad8af73213b$export$3585ede4d035bf14 = /* @__PURE__ */ new WeakMap();
|
|
15
15
|
function $b1f0cad8af73213b$var$normalizeKey(key) {
|
|
16
16
|
if (typeof key === "string") return key.replace(/\s*/g, "");
|
|
@@ -240,7 +240,11 @@ function $eed445e0843c11d0$var$StandaloneListBox({ props, listBoxRef, collection
|
|
|
240
240
|
children: null,
|
|
241
241
|
items: null
|
|
242
242
|
};
|
|
243
|
-
let
|
|
243
|
+
let { layoutDelegate } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
244
|
+
let state = $e72dd72e1c76a225$export$2f645645f7bca764({
|
|
245
|
+
...props,
|
|
246
|
+
layoutDelegate
|
|
247
|
+
});
|
|
244
248
|
return /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$var$ListBoxInner, {
|
|
245
249
|
state,
|
|
246
250
|
props,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React__default, { useMemo, cloneElement, useState, forwardRef, useContext, createContext, useRef, useCallback, useEffect } from "react";
|
|
2
|
-
import { a as $f39a9eba43920ace$export$8dc98ba7eadeaa56 } from "./Hidden-
|
|
2
|
+
import { a as $f39a9eba43920ace$export$8dc98ba7eadeaa56 } from "./Hidden-CcFqOzrp.js";
|
|
3
3
|
import { r as reactDomExports } from "./index-BTCzc3zb.js";
|
|
4
|
-
import { j as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, d as $b5e257d569688ac6$export$535bd6ca7f90a273, c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
5
|
-
import { b as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-
|
|
6
|
-
import { w as $c87311424ea30a05$export$e1865c3bedcd822b, n as $c87311424ea30a05$export$9ac100e40613ea10, h as $6a99195332edec8b$export$80f3e147d781571c, u as $507fabe10e71c6fb$export$630ff653c5ada6a9, m as $7215afc6de606d6b$export$de79e2c695e052f3, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-
|
|
7
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, c as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-
|
|
8
|
-
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-
|
|
4
|
+
import { j as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, d as $b5e257d569688ac6$export$535bd6ca7f90a273, c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-BCJajCwh.js";
|
|
5
|
+
import { b as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-CtCX0OGo.js";
|
|
6
|
+
import { w as $c87311424ea30a05$export$e1865c3bedcd822b, n as $c87311424ea30a05$export$9ac100e40613ea10, h as $6a99195332edec8b$export$80f3e147d781571c, u as $507fabe10e71c6fb$export$630ff653c5ada6a9, m as $7215afc6de606d6b$export$de79e2c695e052f3, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-CgFLw4FA.js";
|
|
7
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, c as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-D8nPoIQm.js";
|
|
8
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-LZebwyrb.js";
|
|
9
9
|
import { $ as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./isScrollable-Dh9D9IOd.js";
|
|
10
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
11
|
-
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "./textSelection-
|
|
10
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-Cs-ZD1nu.js";
|
|
11
|
+
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "./textSelection-CvK0YHTZ.js";
|
|
12
12
|
class $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
|
|
13
13
|
get childNodes() {
|
|
14
14
|
throw new Error("childNodes is not supported");
|
|
@@ -1092,38 +1092,46 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
1092
1092
|
switch (e.key) {
|
|
1093
1093
|
case "ArrowDown":
|
|
1094
1094
|
if (delegate.getKeyBelow) {
|
|
1095
|
-
var _delegate_getFirstKey, _delegate_getFirstKey1;
|
|
1096
|
-
|
|
1097
|
-
let nextKey = manager.focusedKey != null ? delegate.getKeyBelow(manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);
|
|
1095
|
+
var _delegate_getKeyBelow, _delegate_getFirstKey, _delegate_getFirstKey1;
|
|
1096
|
+
let nextKey = manager.focusedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === void 0 ? void 0 : _delegate_getKeyBelow.call(delegate, manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);
|
|
1098
1097
|
if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate, manager.focusedKey);
|
|
1099
|
-
|
|
1098
|
+
if (nextKey != null) {
|
|
1099
|
+
e.preventDefault();
|
|
1100
|
+
navigateToKey(nextKey);
|
|
1101
|
+
}
|
|
1100
1102
|
}
|
|
1101
1103
|
break;
|
|
1102
1104
|
case "ArrowUp":
|
|
1103
1105
|
if (delegate.getKeyAbove) {
|
|
1104
|
-
var _delegate_getLastKey, _delegate_getLastKey1;
|
|
1105
|
-
|
|
1106
|
-
let nextKey = manager.focusedKey != null ? delegate.getKeyAbove(manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate);
|
|
1106
|
+
var _delegate_getKeyAbove, _delegate_getLastKey, _delegate_getLastKey1;
|
|
1107
|
+
let nextKey = manager.focusedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === void 0 ? void 0 : _delegate_getKeyAbove.call(delegate, manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate);
|
|
1107
1108
|
if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getLastKey1 = delegate.getLastKey) === null || _delegate_getLastKey1 === void 0 ? void 0 : _delegate_getLastKey1.call(delegate, manager.focusedKey);
|
|
1108
|
-
|
|
1109
|
+
if (nextKey != null) {
|
|
1110
|
+
e.preventDefault();
|
|
1111
|
+
navigateToKey(nextKey);
|
|
1112
|
+
}
|
|
1109
1113
|
}
|
|
1110
1114
|
break;
|
|
1111
1115
|
case "ArrowLeft":
|
|
1112
1116
|
if (delegate.getKeyLeftOf) {
|
|
1113
|
-
var _delegate_getFirstKey2, _delegate_getLastKey2;
|
|
1114
|
-
|
|
1115
|
-
let nextKey = delegate.getKeyLeftOf(manager.focusedKey);
|
|
1117
|
+
var _delegate_getKeyLeftOf, _delegate_getFirstKey2, _delegate_getLastKey2;
|
|
1118
|
+
let nextKey = (_delegate_getKeyLeftOf = delegate.getKeyLeftOf) === null || _delegate_getKeyLeftOf === void 0 ? void 0 : _delegate_getKeyLeftOf.call(delegate, manager.focusedKey);
|
|
1116
1119
|
if (nextKey == null && shouldFocusWrap) nextKey = direction === "rtl" ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === void 0 ? void 0 : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === void 0 ? void 0 : _delegate_getLastKey2.call(delegate, manager.focusedKey);
|
|
1117
|
-
|
|
1120
|
+
if (nextKey != null) {
|
|
1121
|
+
e.preventDefault();
|
|
1122
|
+
navigateToKey(nextKey, direction === "rtl" ? "first" : "last");
|
|
1123
|
+
}
|
|
1118
1124
|
}
|
|
1119
1125
|
break;
|
|
1120
1126
|
case "ArrowRight":
|
|
1121
1127
|
if (delegate.getKeyRightOf) {
|
|
1122
|
-
var _delegate_getLastKey3, _delegate_getFirstKey3;
|
|
1123
|
-
|
|
1124
|
-
let nextKey = delegate.getKeyRightOf(manager.focusedKey);
|
|
1128
|
+
var _delegate_getKeyRightOf, _delegate_getLastKey3, _delegate_getFirstKey3;
|
|
1129
|
+
let nextKey = (_delegate_getKeyRightOf = delegate.getKeyRightOf) === null || _delegate_getKeyRightOf === void 0 ? void 0 : _delegate_getKeyRightOf.call(delegate, manager.focusedKey);
|
|
1125
1130
|
if (nextKey == null && shouldFocusWrap) nextKey = direction === "rtl" ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === void 0 ? void 0 : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === void 0 ? void 0 : _delegate_getFirstKey3.call(delegate, manager.focusedKey);
|
|
1126
|
-
|
|
1131
|
+
if (nextKey != null) {
|
|
1132
|
+
e.preventDefault();
|
|
1133
|
+
navigateToKey(nextKey, direction === "rtl" ? "last" : "first");
|
|
1134
|
+
}
|
|
1127
1135
|
}
|
|
1128
1136
|
break;
|
|
1129
1137
|
case "Home":
|
|
@@ -1146,16 +1154,20 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
1146
1154
|
break;
|
|
1147
1155
|
case "PageDown":
|
|
1148
1156
|
if (delegate.getKeyPageBelow) {
|
|
1149
|
-
e.preventDefault();
|
|
1150
1157
|
let nextKey = delegate.getKeyPageBelow(manager.focusedKey);
|
|
1151
|
-
|
|
1158
|
+
if (nextKey != null) {
|
|
1159
|
+
e.preventDefault();
|
|
1160
|
+
navigateToKey(nextKey);
|
|
1161
|
+
}
|
|
1152
1162
|
}
|
|
1153
1163
|
break;
|
|
1154
1164
|
case "PageUp":
|
|
1155
1165
|
if (delegate.getKeyPageAbove) {
|
|
1156
|
-
e.preventDefault();
|
|
1157
1166
|
let nextKey = delegate.getKeyPageAbove(manager.focusedKey);
|
|
1158
|
-
|
|
1167
|
+
if (nextKey != null) {
|
|
1168
|
+
e.preventDefault();
|
|
1169
|
+
navigateToKey(nextKey);
|
|
1170
|
+
}
|
|
1159
1171
|
}
|
|
1160
1172
|
break;
|
|
1161
1173
|
case "a":
|
|
@@ -1453,7 +1465,11 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
|
|
|
1453
1465
|
}
|
|
1454
1466
|
*iterateCollection(props) {
|
|
1455
1467
|
let { children, items } = props;
|
|
1456
|
-
if (
|
|
1468
|
+
if (React__default.isValidElement(children) && children.type === React__default.Fragment) yield* this.iterateCollection({
|
|
1469
|
+
children: children.props.children,
|
|
1470
|
+
items
|
|
1471
|
+
});
|
|
1472
|
+
else if (typeof children === "function") {
|
|
1457
1473
|
if (!items) throw new Error("props.children was a function but props.items is missing");
|
|
1458
1474
|
for (let item of props.items) yield* this.getFullNode({
|
|
1459
1475
|
value: item
|
|
@@ -1496,6 +1512,18 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
|
|
|
1496
1512
|
};
|
|
1497
1513
|
}
|
|
1498
1514
|
*getFullNode(partialNode, state, parentKey, parentNode) {
|
|
1515
|
+
if (React__default.isValidElement(partialNode.element) && partialNode.element.type === React__default.Fragment) {
|
|
1516
|
+
let children = [];
|
|
1517
|
+
React__default.Children.forEach(partialNode.element.props.children, (child) => {
|
|
1518
|
+
children.push(child);
|
|
1519
|
+
});
|
|
1520
|
+
let index = partialNode.index;
|
|
1521
|
+
for (const child of children) yield* this.getFullNode({
|
|
1522
|
+
element: child,
|
|
1523
|
+
index: index++
|
|
1524
|
+
}, state, parentKey, parentNode);
|
|
1525
|
+
return;
|
|
1526
|
+
}
|
|
1499
1527
|
let element = partialNode.element;
|
|
1500
1528
|
if (!element && partialNode.value && state && state.renderer) {
|
|
1501
1529
|
let cached = this.cache.get(partialNode.value);
|
|
@@ -1664,8 +1692,8 @@ class $e40ea825a81a3709$export$52baac22726c72bf extends Set {
|
|
|
1664
1692
|
constructor(keys, anchorKey, currentKey) {
|
|
1665
1693
|
super(keys);
|
|
1666
1694
|
if (keys instanceof $e40ea825a81a3709$export$52baac22726c72bf) {
|
|
1667
|
-
this.anchorKey = anchorKey
|
|
1668
|
-
this.currentKey = currentKey
|
|
1695
|
+
this.anchorKey = anchorKey !== null && anchorKey !== void 0 ? anchorKey : keys.anchorKey;
|
|
1696
|
+
this.currentKey = currentKey !== null && currentKey !== void 0 ? currentKey : keys.currentKey;
|
|
1669
1697
|
} else {
|
|
1670
1698
|
this.anchorKey = anchorKey;
|
|
1671
1699
|
this.currentKey = currentKey;
|
|
@@ -1872,9 +1900,11 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
|
1872
1900
|
], toKey, toKey);
|
|
1873
1901
|
else {
|
|
1874
1902
|
let selectedKeys = this.state.selectedKeys;
|
|
1875
|
-
|
|
1903
|
+
var _selectedKeys_anchorKey;
|
|
1904
|
+
let anchorKey = (_selectedKeys_anchorKey = selectedKeys.anchorKey) !== null && _selectedKeys_anchorKey !== void 0 ? _selectedKeys_anchorKey : toKey;
|
|
1876
1905
|
selection = new $e40ea825a81a3709$export$52baac22726c72bf(selectedKeys, anchorKey, toKey);
|
|
1877
|
-
|
|
1906
|
+
var _selectedKeys_currentKey;
|
|
1907
|
+
for (let key of this.getKeyRange(anchorKey, (_selectedKeys_currentKey = selectedKeys.currentKey) !== null && _selectedKeys_currentKey !== void 0 ? _selectedKeys_currentKey : toKey)) selection.delete(key);
|
|
1878
1908
|
for (let key of this.getKeyRange(toKey, anchorKey)) if (this.canSelectItem(key)) selection.add(key);
|
|
1879
1909
|
}
|
|
1880
1910
|
this.state.setSelectedKeys(selection);
|
|
@@ -1889,9 +1919,11 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
|
1889
1919
|
return [];
|
|
1890
1920
|
}
|
|
1891
1921
|
getKeyRangeInternal(from, to) {
|
|
1922
|
+
var _this_layoutDelegate;
|
|
1923
|
+
if ((_this_layoutDelegate = this.layoutDelegate) === null || _this_layoutDelegate === void 0 ? void 0 : _this_layoutDelegate.getKeyRange) return this.layoutDelegate.getKeyRange(from, to);
|
|
1892
1924
|
let keys = [];
|
|
1893
1925
|
let key = from;
|
|
1894
|
-
while (key) {
|
|
1926
|
+
while (key != null) {
|
|
1895
1927
|
let item = this.collection.getItem(key);
|
|
1896
1928
|
if (item && item.type === "item" || item.type === "cell" && this.allowsCellSelection) keys.push(key);
|
|
1897
1929
|
if (key === to) return keys;
|
|
@@ -2039,6 +2071,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
|
2039
2071
|
var _options_allowsCellSelection;
|
|
2040
2072
|
this.allowsCellSelection = (_options_allowsCellSelection = options === null || options === void 0 ? void 0 : options.allowsCellSelection) !== null && _options_allowsCellSelection !== void 0 ? _options_allowsCellSelection : false;
|
|
2041
2073
|
this._isSelectAll = null;
|
|
2074
|
+
this.layoutDelegate = (options === null || options === void 0 ? void 0 : options.layoutDelegate) || null;
|
|
2042
2075
|
}
|
|
2043
2076
|
}
|
|
2044
2077
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as $ae20dd8cbca75726$export$d6daf82dcd84e87c, j as $c5a24bc478652b5f$export$1005530eda016c13, d as $e1995378a142960e$export$18af5c7a9e9b3664 } from "./SelectionManager-
|
|
1
|
+
import { i as $ae20dd8cbca75726$export$d6daf82dcd84e87c, j as $c5a24bc478652b5f$export$1005530eda016c13, d as $e1995378a142960e$export$18af5c7a9e9b3664 } from "./SelectionManager-x27KqnAT.js";
|
|
2
2
|
import { $ as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./isScrollable-Dh9D9IOd.js";
|
|
3
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
3
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-Cs-ZD1nu.js";
|
|
4
4
|
import React__default, { useMemo, createContext } from "react";
|
|
5
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-
|
|
5
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-BCJajCwh.js";
|
|
6
6
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
7
7
|
let $325a3faab7a68acd$var$cache = /* @__PURE__ */ new Map();
|
|
8
8
|
function $325a3faab7a68acd$export$a16aca283550c30d(options) {
|
|
@@ -52,23 +52,21 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
|
|
|
52
52
|
var _item_props;
|
|
53
53
|
return this.disabledBehavior === "all" && (((_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || this.disabledKeys.has(item.key));
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
key = this.collection.getKeyAfter(key);
|
|
55
|
+
findNextNonDisabled(key, getNext) {
|
|
57
56
|
while (key != null) {
|
|
58
57
|
let item = this.collection.getItem(key);
|
|
59
|
-
if (item.type === "item" && !this.isDisabled(item)) return key;
|
|
60
|
-
key =
|
|
58
|
+
if ((item === null || item === void 0 ? void 0 : item.type) === "item" && !this.isDisabled(item)) return key;
|
|
59
|
+
key = getNext(key);
|
|
61
60
|
}
|
|
62
61
|
return null;
|
|
63
62
|
}
|
|
63
|
+
getNextKey(key) {
|
|
64
|
+
key = this.collection.getKeyAfter(key);
|
|
65
|
+
return this.findNextNonDisabled(key, (key2) => this.collection.getKeyAfter(key2));
|
|
66
|
+
}
|
|
64
67
|
getPreviousKey(key) {
|
|
65
68
|
key = this.collection.getKeyBefore(key);
|
|
66
|
-
|
|
67
|
-
let item = this.collection.getItem(key);
|
|
68
|
-
if (item.type === "item" && !this.isDisabled(item)) return key;
|
|
69
|
-
key = this.collection.getKeyBefore(key);
|
|
70
|
-
}
|
|
71
|
-
return null;
|
|
69
|
+
return this.findNextNonDisabled(key, (key2) => this.collection.getKeyBefore(key2));
|
|
72
70
|
}
|
|
73
71
|
findKey(key, nextKey, shouldSkip) {
|
|
74
72
|
let itemRect = this.layoutDelegate.getItemRect(key);
|
|
@@ -98,6 +96,11 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
|
|
|
98
96
|
return right ? this.getPreviousKey(key) : this.getNextKey(key);
|
|
99
97
|
}
|
|
100
98
|
getKeyRightOf(key) {
|
|
99
|
+
let layoutDelegateMethod = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf";
|
|
100
|
+
if (this.layoutDelegate[layoutDelegateMethod]) {
|
|
101
|
+
key = this.layoutDelegate[layoutDelegateMethod](key);
|
|
102
|
+
return this.findNextNonDisabled(key, (key2) => this.layoutDelegate[layoutDelegateMethod](key2));
|
|
103
|
+
}
|
|
101
104
|
if (this.layout === "grid") {
|
|
102
105
|
if (this.orientation === "vertical") return this.getNextColumn(key, this.direction === "rtl");
|
|
103
106
|
else return this.findKey(key, (key2) => this.getNextColumn(key2, this.direction === "rtl"), this.isSameColumn);
|
|
@@ -105,6 +108,11 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
|
|
|
105
108
|
return null;
|
|
106
109
|
}
|
|
107
110
|
getKeyLeftOf(key) {
|
|
111
|
+
let layoutDelegateMethod = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf";
|
|
112
|
+
if (this.layoutDelegate[layoutDelegateMethod]) {
|
|
113
|
+
key = this.layoutDelegate[layoutDelegateMethod](key);
|
|
114
|
+
return this.findNextNonDisabled(key, (key2) => this.layoutDelegate[layoutDelegateMethod](key2));
|
|
115
|
+
}
|
|
108
116
|
if (this.layout === "grid") {
|
|
109
117
|
if (this.orientation === "vertical") return this.getNextColumn(key, this.direction === "ltr");
|
|
110
118
|
else return this.findKey(key, (key2) => this.getNextColumn(key2, this.direction === "ltr"), this.isSameColumn);
|
|
@@ -113,21 +121,11 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
|
|
|
113
121
|
}
|
|
114
122
|
getFirstKey() {
|
|
115
123
|
let key = this.collection.getFirstKey();
|
|
116
|
-
|
|
117
|
-
let item = this.collection.getItem(key);
|
|
118
|
-
if ((item === null || item === void 0 ? void 0 : item.type) === "item" && !this.isDisabled(item)) return key;
|
|
119
|
-
key = this.collection.getKeyAfter(key);
|
|
120
|
-
}
|
|
121
|
-
return null;
|
|
124
|
+
return this.findNextNonDisabled(key, (key2) => this.collection.getKeyAfter(key2));
|
|
122
125
|
}
|
|
123
126
|
getLastKey() {
|
|
124
127
|
let key = this.collection.getLastKey();
|
|
125
|
-
|
|
126
|
-
let item = this.collection.getItem(key);
|
|
127
|
-
if (item.type === "item" && !this.isDisabled(item)) return key;
|
|
128
|
-
key = this.collection.getKeyBefore(key);
|
|
129
|
-
}
|
|
130
|
-
return null;
|
|
128
|
+
return this.findNextNonDisabled(key, (key2) => this.collection.getKeyBefore(key2));
|
|
131
129
|
}
|
|
132
130
|
getKeyPageAbove(key) {
|
|
133
131
|
let menu = this.ref.current;
|
|
@@ -177,7 +175,7 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
|
|
|
177
175
|
let item = collection.getItem(key);
|
|
178
176
|
let substring = item.textValue.slice(0, search.length);
|
|
179
177
|
if (item.textValue && this.collator.compare(substring, search) === 0) return key;
|
|
180
|
-
key = this.
|
|
178
|
+
key = this.getNextKey(key);
|
|
181
179
|
}
|
|
182
180
|
return null;
|
|
183
181
|
}
|