xmlui 0.10.19 → 0.10.20
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/lib/{apiInterceptorWorker-DPgtUtdA.mjs → apiInterceptorWorker-QiltRtq1.mjs} +1 -1
- package/dist/lib/{index-cuh97e2e.mjs → index-Ckhnrf1F.mjs} +848 -615
- package/dist/lib/index.css +1 -1
- package/dist/{metadata/initMock-C-cnv--V.mjs → lib/initMock-qnCFw6Zc.mjs} +25 -15
- package/dist/lib/language-server-web-worker.mjs +1 -1
- package/dist/lib/language-server.mjs +1 -1
- package/dist/lib/{metadata-utils-CtY0QcvH.mjs → metadata-utils-BTIt1_wE.mjs} +1 -1
- package/dist/lib/{server-common-Cine5nRR.mjs → server-common-DYZtsdM7.mjs} +51 -14
- package/dist/lib/{transform-bHBjkKSL.mjs → transform-Tooy42EB.mjs} +16 -18
- package/dist/lib/xmlui-parser.mjs +2 -2
- package/dist/lib/{xmlui-serializer-DB6BLiXK.mjs → xmlui-serializer-uCYa8_tZ.mjs} +1 -1
- package/dist/lib/xmlui.d.ts +11 -3
- package/dist/lib/xmlui.mjs +2 -2
- package/dist/metadata/{apiInterceptorWorker-BmKP8bnq.mjs → apiInterceptorWorker-Dql7QGw2.mjs} +1 -1
- package/dist/metadata/{collectedComponentMetadata-Cp-9lpnG.mjs → collectedComponentMetadata-Dg7P-zOz.mjs} +824 -600
- package/dist/{lib/initMock-BMxsanHc.mjs → metadata/initMock-ZyyFNOpL.mjs} +25 -15
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +3 -3
- package/dist/scripts/package.json +1 -1
- package/dist/scripts/src/components/Animation/AnimationNative.js +28 -28
- package/dist/scripts/src/components/App/App.spec.js +17 -17
- package/dist/scripts/src/components/AppState/AppState.js +3 -2
- package/dist/scripts/src/components/AppState/AppState.spec.js +26 -2
- package/dist/scripts/src/components/AppState/AppStateNative.js +3 -4
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +15 -10
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +4 -4
- package/dist/scripts/src/components/Carousel/Carousel.spec.js +214 -0
- package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +1 -1
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +2 -0
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +193 -0
- package/dist/scripts/src/components/DateInput/DateInput.spec.js +6 -6
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +3 -3
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +4 -13
- package/dist/scripts/src/components/Form/Form.spec.js +25 -9
- package/dist/scripts/src/components/Form/FormNative.js +7 -4
- package/dist/scripts/src/components/FormItem/FormItem.js +3 -1
- package/dist/scripts/src/components/FormItem/FormItem.spec.js +5 -14
- package/dist/scripts/src/components/FormItem/FormItemNative.js +12 -8
- package/dist/scripts/src/components/FormItem/Validations.js +2 -2
- package/dist/scripts/src/components/IconRegistryContext.js +1 -1
- package/dist/scripts/src/components/List/ListNative.js +2 -2
- package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +3 -12
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +2 -2
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +6 -3
- package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +1 -1
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +3 -3
- package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +2 -2
- package/dist/scripts/src/components/Pagination/Pagination.spec.js +5 -0
- package/dist/scripts/src/components/Pagination/PaginationNative.js +1 -3
- package/dist/scripts/src/components/Queue/Queue.spec.js +45 -47
- package/dist/scripts/src/components/Queue/QueueNative.js +1 -1
- package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +5 -5
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +1 -1
- package/dist/scripts/src/components/Select/MultiSelectOption.js +42 -0
- package/dist/scripts/src/components/Select/Select.js +3 -3
- package/dist/scripts/src/components/Select/SelectContext.js +8 -1
- package/dist/scripts/src/components/Select/SelectNative.js +134 -142
- package/dist/scripts/src/components/Select/SelectOption.js +34 -0
- package/dist/scripts/src/components/Select/SimpleSelect.js +57 -0
- package/dist/scripts/src/components/Spinner/Spinner.spec.js +1 -1
- package/dist/scripts/src/components/Table/useRowSelection.js +14 -23
- package/dist/scripts/src/components/TextArea/TextArea.spec.js +8 -8
- package/dist/scripts/src/components/Theme/Theme.js +2 -1
- package/dist/scripts/src/components/Theme/Theme.spec.js +266 -0
- package/dist/scripts/src/components/Theme/ThemeNative.js +8 -1
- package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +3 -3
- package/dist/scripts/src/components/Tree/TreeNative.js +9 -11
- package/dist/scripts/src/components-core/InspectorContext.js +1 -1
- package/dist/scripts/src/components-core/StandaloneApp.js +6 -8
- package/dist/scripts/src/components-core/action/FileUploadAction.js +1 -1
- package/dist/scripts/src/components-core/behaviors/BehaviorContext.js +50 -0
- package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +6 -1
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +9 -11
- package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +3 -3
- package/dist/scripts/src/components-core/interception/Backend.js +1 -1
- package/dist/scripts/src/components-core/interception/IndexedDb.js +64 -66
- package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +2 -2
- package/dist/scripts/src/components-core/loader/DataLoader.js +6 -14
- package/dist/scripts/src/components-core/loader/Loader.js +11 -11
- package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +4 -2
- package/dist/scripts/src/components-core/loader/PageableLoader.js +10 -9
- package/dist/scripts/src/components-core/rendering/AppContent.js +1 -7
- package/dist/scripts/src/components-core/rendering/ErrorBoundary.js +1 -1
- package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +1 -1
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +180 -186
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +6 -6
- package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +2 -2
- package/dist/scripts/src/components-core/utils/actionUtils.js +1 -1
- package/dist/scripts/src/components-core/utils/hooks.js +1 -1
- package/dist/scripts/src/components-core/utils/misc.js +4 -4
- package/dist/scripts/src/components-core/xmlui-parser.js +47 -31
- package/dist/scripts/src/language-server/server-common.js +25 -24
- package/dist/scripts/src/language-server/services/common/lsp-utils.js +2 -2
- package/dist/scripts/src/language-server/services/completion.js +20 -2
- package/dist/scripts/src/language-server/services/diagnostic.js +1 -1
- package/dist/scripts/src/language-server/services/hover.js +2 -2
- package/dist/scripts/src/parsers/common/utils.js +2 -2
- package/dist/scripts/src/parsers/scripting/Lexer.js +21 -15
- package/dist/scripts/src/parsers/scripting/Parser.js +8 -9
- package/dist/scripts/src/parsers/style-parser/StyleLexer.js +22 -22
- package/dist/scripts/src/parsers/style-parser/StyleParser.js +70 -68
- package/dist/scripts/src/testing/ComponentDrivers.js +20 -39
- package/dist/scripts/src/testing/component-test-helpers.js +34 -50
- package/dist/scripts/src/testing/fixtures.js +114 -113
- package/dist/scripts/src/testing/themed-app-test-helpers.js +7 -13
- package/dist/standalone/xmlui-standalone.es.d.ts +11 -3
- package/dist/standalone/xmlui-standalone.umd.js +12 -12
- package/package.json +1 -1
|
@@ -23,9 +23,8 @@ import * as dropzone from "react-dropzone";
|
|
|
23
23
|
import produce, { createDraft, finishDraft, enableMapSet } from "immer";
|
|
24
24
|
import memoizeOne from "memoize-one";
|
|
25
25
|
import { parseRegExpLiteral } from "@eslint-community/regexpp";
|
|
26
|
-
import { Root, Trigger, Icon as Icon$m, Portal, Content, ScrollUpButton, SelectViewport, ScrollDownButton, Item as Item$1, ItemText, ItemIndicator, SelectItemText } from "@radix-ui/react-select";
|
|
27
|
-
import { Command, CommandInput, CommandList, CommandEmpty, CommandItem } from "cmdk";
|
|
28
26
|
import { FocusScope } from "@radix-ui/react-focus-scope";
|
|
27
|
+
import { Item as Item$1, ItemText, ItemIndicator, Root, Trigger, Portal, Content, ScrollUpButton, Viewport, ScrollDownButton, SelectItemText } from "@radix-ui/react-select";
|
|
29
28
|
import * as InnerRadioGroup from "@radix-ui/react-radio-group";
|
|
30
29
|
import TextareaAutosize from "react-textarea-autosize";
|
|
31
30
|
import { Root as Root$2, Track, Range, Thumb } from "@radix-ui/react-slider";
|
|
@@ -470,18 +469,18 @@ function getElementRef(element) {
|
|
|
470
469
|
return element.props.ref || element.ref;
|
|
471
470
|
}
|
|
472
471
|
const themeVars$10 = `'{"textColor-FormItemLabel": "var(--xmlui-textColor-FormItemLabel)", "fontFamily-FormItemLabel": "var(--xmlui-fontFamily-FormItemLabel)", "fontSize-FormItemLabel": "var(--xmlui-fontSize-FormItemLabel)", "fontWeight-FormItemLabel": "var(--xmlui-fontWeight-FormItemLabel)", "fontStyle-FormItemLabel": "var(--xmlui-fontStyle-FormItemLabel)", "textTransform-FormItemLabel": "var(--xmlui-textTransform-FormItemLabel)", "textColor-FormItemLabel-required": "var(--xmlui-textColor-FormItemLabel-required)", "fontSize-FormItemLabel-required": "var(--xmlui-fontSize-FormItemLabel-required)", "fontWeight-FormItemLabel-required": "var(--xmlui-fontWeight-FormItemLabel-required)", "fontStyle-FormItemLabel-required": "var(--xmlui-fontStyle-FormItemLabel-required)", "textTransform-FormItemLabel-required": "var(--xmlui-textTransform-FormItemLabel-required)", "textColor-FormItemLabel-requiredMark": "var(--xmlui-textColor-FormItemLabel-requiredMark)"}'`;
|
|
473
|
-
const container$3 = "
|
|
474
|
-
const top$1 = "
|
|
475
|
-
const end = "
|
|
476
|
-
const bottom$1 = "
|
|
477
|
-
const start = "
|
|
478
|
-
const shrinkToLabel = "
|
|
479
|
-
const inputLabel = "
|
|
480
|
-
const disabled$
|
|
481
|
-
const labelBreak = "
|
|
482
|
-
const required = "
|
|
483
|
-
const requiredMark = "
|
|
484
|
-
const itemWithLabel = "
|
|
472
|
+
const container$3 = "_container_1pi4w_14";
|
|
473
|
+
const top$1 = "_top_1pi4w_21";
|
|
474
|
+
const end = "_end_1pi4w_26";
|
|
475
|
+
const bottom$1 = "_bottom_1pi4w_32";
|
|
476
|
+
const start = "_start_1pi4w_37";
|
|
477
|
+
const shrinkToLabel = "_shrinkToLabel_1pi4w_43";
|
|
478
|
+
const inputLabel = "_inputLabel_1pi4w_46";
|
|
479
|
+
const disabled$c = "_disabled_1pi4w_59";
|
|
480
|
+
const labelBreak = "_labelBreak_1pi4w_63";
|
|
481
|
+
const required = "_required_1pi4w_68";
|
|
482
|
+
const requiredMark = "_requiredMark_1pi4w_75";
|
|
483
|
+
const itemWithLabel = "_itemWithLabel_1pi4w_79";
|
|
485
484
|
const styles$1j = {
|
|
486
485
|
themeVars: themeVars$10,
|
|
487
486
|
container: container$3,
|
|
@@ -491,7 +490,7 @@ const styles$1j = {
|
|
|
491
490
|
start,
|
|
492
491
|
shrinkToLabel,
|
|
493
492
|
inputLabel,
|
|
494
|
-
disabled: disabled$
|
|
493
|
+
disabled: disabled$c,
|
|
495
494
|
labelBreak,
|
|
496
495
|
required,
|
|
497
496
|
requiredMark,
|
|
@@ -896,10 +895,13 @@ const useEvent = (callback) => {
|
|
|
896
895
|
useInsertionEffect(() => {
|
|
897
896
|
callbackRef.current = callback;
|
|
898
897
|
}, [callback]);
|
|
899
|
-
return useCallback(
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
898
|
+
return useCallback(
|
|
899
|
+
(...args) => {
|
|
900
|
+
const latestFn = callbackRef.current;
|
|
901
|
+
return latestFn == null ? void 0 : latestFn(...args);
|
|
902
|
+
},
|
|
903
|
+
[callbackRef]
|
|
904
|
+
);
|
|
903
905
|
};
|
|
904
906
|
function humanFileSize(bytes, si = false, dp = 1) {
|
|
905
907
|
const thresh = si ? 1e3 : 1024;
|
|
@@ -1188,7 +1190,7 @@ function distinct(arr) {
|
|
|
1188
1190
|
function asyncThrottle(func, wait, options2) {
|
|
1189
1191
|
const throttled = throttle(
|
|
1190
1192
|
(resolve, reject, args) => {
|
|
1191
|
-
func(...args).then(resolve).catch(reject);
|
|
1193
|
+
void func(...args).then(resolve).catch(reject);
|
|
1192
1194
|
},
|
|
1193
1195
|
wait,
|
|
1194
1196
|
options2
|
|
@@ -1392,10 +1394,7 @@ const useRealBackground = (element) => {
|
|
|
1392
1394
|
useEffect(() => {
|
|
1393
1395
|
return setCounter((prev) => prev + 1);
|
|
1394
1396
|
}, [activeThemeTone, activeThemeId]);
|
|
1395
|
-
return useMemo(
|
|
1396
|
-
() => element ? realBackgroundColor(element) : "transparent",
|
|
1397
|
-
[element, counter]
|
|
1398
|
-
);
|
|
1397
|
+
return useMemo(() => element ? realBackgroundColor(element) : "transparent", [element]);
|
|
1399
1398
|
};
|
|
1400
1399
|
const useStartMargin = (hasOutsideScroll2, parentRef, scrollRef) => {
|
|
1401
1400
|
const [startMargin, setStartMargin] = useState(0);
|
|
@@ -1690,7 +1689,7 @@ function useCustomSvgIconRenderer(resourceUrl) {
|
|
|
1690
1689
|
if (!resourceUrl) {
|
|
1691
1690
|
return;
|
|
1692
1691
|
}
|
|
1693
|
-
ensureCustomSvgIcon(resourceUrl);
|
|
1692
|
+
void ensureCustomSvgIcon(resourceUrl);
|
|
1694
1693
|
}, [ensureCustomSvgIcon, resourceUrl]);
|
|
1695
1694
|
const customSvg = resourceUrl ? customSvgs[resourceUrl] : null;
|
|
1696
1695
|
const iconRenderer = useCallback(
|
|
@@ -1882,7 +1881,6 @@ class StyleLexer {
|
|
|
1882
1881
|
* Fetches the next token from the input stream
|
|
1883
1882
|
*/
|
|
1884
1883
|
fetch() {
|
|
1885
|
-
const lexer = this;
|
|
1886
1884
|
const input2 = this.input;
|
|
1887
1885
|
const startPos = this._prefetchedPos || input2.position;
|
|
1888
1886
|
this._lastFetchPosition = this.input.position;
|
|
@@ -1892,6 +1890,19 @@ class StyleLexer {
|
|
|
1892
1890
|
let ch = null;
|
|
1893
1891
|
let useResolver = false;
|
|
1894
1892
|
let stringWrapper = "";
|
|
1893
|
+
const appendTokenChar = () => {
|
|
1894
|
+
text2 += ch;
|
|
1895
|
+
this._prefetched = null;
|
|
1896
|
+
this._prefetchedPos = null;
|
|
1897
|
+
lastEndPos = input2.position;
|
|
1898
|
+
};
|
|
1899
|
+
const fetchNextChar = () => {
|
|
1900
|
+
if (!this._prefetched) {
|
|
1901
|
+
this._prefetchedPos = input2.position;
|
|
1902
|
+
this._prefetched = input2.get();
|
|
1903
|
+
}
|
|
1904
|
+
return this._prefetched;
|
|
1905
|
+
};
|
|
1895
1906
|
let phase = 0;
|
|
1896
1907
|
while (true) {
|
|
1897
1908
|
ch = fetchNextChar();
|
|
@@ -2008,19 +2019,6 @@ class StyleLexer {
|
|
|
2008
2019
|
}
|
|
2009
2020
|
appendTokenChar();
|
|
2010
2021
|
}
|
|
2011
|
-
function appendTokenChar() {
|
|
2012
|
-
text2 += ch;
|
|
2013
|
-
lexer._prefetched = null;
|
|
2014
|
-
lexer._prefetchedPos = null;
|
|
2015
|
-
lastEndPos = input2.position;
|
|
2016
|
-
}
|
|
2017
|
-
function fetchNextChar() {
|
|
2018
|
-
if (!lexer._prefetched) {
|
|
2019
|
-
lexer._prefetchedPos = input2.position;
|
|
2020
|
-
lexer._prefetched = input2.get();
|
|
2021
|
-
}
|
|
2022
|
-
return lexer._prefetched;
|
|
2023
|
-
}
|
|
2024
2022
|
function makeToken() {
|
|
2025
2023
|
if (useResolver) {
|
|
2026
2024
|
tokenType = styleKeywords[text2] ?? (isIdStart$1(text2[0]) ? StyleTokenType.Identifier : StyleTokenType.Unknown);
|
|
@@ -2471,7 +2469,78 @@ class StyleParser {
|
|
|
2471
2469
|
const startToken = this._lexer.peek();
|
|
2472
2470
|
const themeIdNode = this.tryThemeId();
|
|
2473
2471
|
if (themeIdNode) return themeIdNode;
|
|
2474
|
-
const
|
|
2472
|
+
const parseColorParameters = (pars) => {
|
|
2473
|
+
this._lexer.get();
|
|
2474
|
+
this.expectToken(StyleTokenType.LParent, "S007");
|
|
2475
|
+
for (let i = 0; i < pars.length; i++) {
|
|
2476
|
+
const value = this.getNumber();
|
|
2477
|
+
if (value === null) return false;
|
|
2478
|
+
const unit = this._lexer.peek(true);
|
|
2479
|
+
switch (pars[i]) {
|
|
2480
|
+
case "V%":
|
|
2481
|
+
if (unit.type === StyleTokenType.Percentage) {
|
|
2482
|
+
if (value < 0 || value > 100) {
|
|
2483
|
+
this.reportError("S008");
|
|
2484
|
+
return false;
|
|
2485
|
+
}
|
|
2486
|
+
this._lexer.get();
|
|
2487
|
+
} else {
|
|
2488
|
+
if (value < 0 || value > 255) {
|
|
2489
|
+
this.reportError("S009");
|
|
2490
|
+
return false;
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
break;
|
|
2494
|
+
case "%":
|
|
2495
|
+
if (unit.type !== StyleTokenType.Percentage || value < 0 || value > 100) {
|
|
2496
|
+
this.reportError("S008");
|
|
2497
|
+
return false;
|
|
2498
|
+
}
|
|
2499
|
+
this._lexer.get();
|
|
2500
|
+
break;
|
|
2501
|
+
case "angle":
|
|
2502
|
+
if (unit.type === StyleTokenType.Angle) {
|
|
2503
|
+
this._lexer.get();
|
|
2504
|
+
}
|
|
2505
|
+
break;
|
|
2506
|
+
case "alpha":
|
|
2507
|
+
if (unit.type === StyleTokenType.Percentage) {
|
|
2508
|
+
if (value < 0 || value > 100) {
|
|
2509
|
+
this.reportError("S008");
|
|
2510
|
+
return false;
|
|
2511
|
+
}
|
|
2512
|
+
this._lexer.get();
|
|
2513
|
+
} else {
|
|
2514
|
+
if (value < 0 || value > 1) {
|
|
2515
|
+
this.reportError("S011");
|
|
2516
|
+
return false;
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
break;
|
|
2520
|
+
}
|
|
2521
|
+
if (i === pars.length - 1) continue;
|
|
2522
|
+
let sepToken = this._lexer.peek(true);
|
|
2523
|
+
if (sepToken.type === StyleTokenType.Ws) {
|
|
2524
|
+
this._lexer.get();
|
|
2525
|
+
sepToken = this._lexer.peek(true);
|
|
2526
|
+
if (sepToken.type === StyleTokenType.Comma) {
|
|
2527
|
+
this._lexer.get();
|
|
2528
|
+
}
|
|
2529
|
+
} else {
|
|
2530
|
+
this.expectToken(StyleTokenType.Comma);
|
|
2531
|
+
}
|
|
2532
|
+
sepToken = this._lexer.peek();
|
|
2533
|
+
if (sepToken.type === StyleTokenType.Ws) {
|
|
2534
|
+
this._lexer.get();
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
let aSepToken = this._lexer.peek();
|
|
2538
|
+
if (aSepToken.type === StyleTokenType.Ws) {
|
|
2539
|
+
this._lexer.get();
|
|
2540
|
+
}
|
|
2541
|
+
this.expectToken(StyleTokenType.RParent, "S010");
|
|
2542
|
+
return true;
|
|
2543
|
+
};
|
|
2475
2544
|
switch (startToken.type) {
|
|
2476
2545
|
case StyleTokenType.ColorName:
|
|
2477
2546
|
this._lexer.get();
|
|
@@ -2523,78 +2592,6 @@ class StyleParser {
|
|
|
2523
2592
|
this.reportError("S005", startToken);
|
|
2524
2593
|
return null;
|
|
2525
2594
|
}
|
|
2526
|
-
function parseColorParameters(pars) {
|
|
2527
|
-
parser._lexer.get();
|
|
2528
|
-
parser.expectToken(StyleTokenType.LParent, "S007");
|
|
2529
|
-
for (let i = 0; i < pars.length; i++) {
|
|
2530
|
-
const value = parser.getNumber();
|
|
2531
|
-
if (value === null) return false;
|
|
2532
|
-
const unit = parser._lexer.peek(true);
|
|
2533
|
-
switch (pars[i]) {
|
|
2534
|
-
case "V%":
|
|
2535
|
-
if (unit.type === StyleTokenType.Percentage) {
|
|
2536
|
-
if (value < 0 || value > 100) {
|
|
2537
|
-
parser.reportError("S008");
|
|
2538
|
-
return false;
|
|
2539
|
-
}
|
|
2540
|
-
parser._lexer.get();
|
|
2541
|
-
} else {
|
|
2542
|
-
if (value < 0 || value > 255) {
|
|
2543
|
-
parser.reportError("S009");
|
|
2544
|
-
return false;
|
|
2545
|
-
}
|
|
2546
|
-
}
|
|
2547
|
-
break;
|
|
2548
|
-
case "%":
|
|
2549
|
-
if (unit.type !== StyleTokenType.Percentage || value < 0 || value > 100) {
|
|
2550
|
-
parser.reportError("S008");
|
|
2551
|
-
return false;
|
|
2552
|
-
}
|
|
2553
|
-
parser._lexer.get();
|
|
2554
|
-
break;
|
|
2555
|
-
case "angle":
|
|
2556
|
-
if (unit.type === StyleTokenType.Angle) {
|
|
2557
|
-
parser._lexer.get();
|
|
2558
|
-
}
|
|
2559
|
-
break;
|
|
2560
|
-
case "alpha":
|
|
2561
|
-
if (unit.type === StyleTokenType.Percentage) {
|
|
2562
|
-
if (value < 0 || value > 100) {
|
|
2563
|
-
parser.reportError("S008");
|
|
2564
|
-
return false;
|
|
2565
|
-
}
|
|
2566
|
-
parser._lexer.get();
|
|
2567
|
-
} else {
|
|
2568
|
-
if (value < 0 || value > 1) {
|
|
2569
|
-
parser.reportError("S011");
|
|
2570
|
-
return false;
|
|
2571
|
-
}
|
|
2572
|
-
}
|
|
2573
|
-
break;
|
|
2574
|
-
}
|
|
2575
|
-
if (i === pars.length - 1) continue;
|
|
2576
|
-
let sepToken = parser._lexer.peek(true);
|
|
2577
|
-
if (sepToken.type === StyleTokenType.Ws) {
|
|
2578
|
-
parser._lexer.get();
|
|
2579
|
-
sepToken = parser._lexer.peek(true);
|
|
2580
|
-
if (sepToken.type === StyleTokenType.Comma) {
|
|
2581
|
-
parser._lexer.get();
|
|
2582
|
-
}
|
|
2583
|
-
} else {
|
|
2584
|
-
parser.expectToken(StyleTokenType.Comma);
|
|
2585
|
-
}
|
|
2586
|
-
sepToken = parser._lexer.peek();
|
|
2587
|
-
if (sepToken.type === StyleTokenType.Ws) {
|
|
2588
|
-
parser._lexer.get();
|
|
2589
|
-
}
|
|
2590
|
-
}
|
|
2591
|
-
let aSepToken = parser._lexer.peek();
|
|
2592
|
-
if (aSepToken.type === StyleTokenType.Ws) {
|
|
2593
|
-
parser._lexer.get();
|
|
2594
|
-
}
|
|
2595
|
-
parser.expectToken(StyleTokenType.RParent, "S010");
|
|
2596
|
-
return true;
|
|
2597
|
-
}
|
|
2598
2595
|
}
|
|
2599
2596
|
getNumber() {
|
|
2600
2597
|
const token = this._lexer.get();
|
|
@@ -7050,8 +7047,8 @@ class ErrorBoundary extends React__default.Component {
|
|
|
7050
7047
|
* This method implements the Error Boundaries for the React application.
|
|
7051
7048
|
* It is invoked if errors occur during the rendering phase of any lifecycle
|
|
7052
7049
|
* methods or children components.
|
|
7053
|
-
*
|
|
7054
|
-
* DO NOT DELETE this method! Though it is not referenced directly from the code,
|
|
7050
|
+
*
|
|
7051
|
+
* DO NOT DELETE this method! Though it is not referenced directly from the code,
|
|
7055
7052
|
* it is a required part of the React component lifecycle.
|
|
7056
7053
|
*/
|
|
7057
7054
|
static getDerivedStateFromError(error2) {
|
|
@@ -7084,7 +7081,7 @@ class ErrorBoundary extends React__default.Component {
|
|
|
7084
7081
|
*/
|
|
7085
7082
|
render() {
|
|
7086
7083
|
var _a2;
|
|
7087
|
-
return this.state.hasError ? /* @__PURE__ */ jsxs("div", { className: styles$1b.errorOverlay, children: [
|
|
7084
|
+
return this.state.hasError ? /* @__PURE__ */ jsxs("div", { "data-error-boundary": true, className: styles$1b.errorOverlay, children: [
|
|
7088
7085
|
/* @__PURE__ */ jsx("div", { className: styles$1b.title, children: "There was an error!" }),
|
|
7089
7086
|
/* @__PURE__ */ jsx("div", { className: styles$1b.errorItem, children: (_a2 = this.state.error) == null ? void 0 : _a2.message })
|
|
7090
7087
|
] }) : this.props.children;
|
|
@@ -7127,6 +7124,7 @@ const NotificationToast = ({ toastDuration }) => {
|
|
|
7127
7124
|
};
|
|
7128
7125
|
const defaultProps$1b = {
|
|
7129
7126
|
isRoot: false,
|
|
7127
|
+
applyIf: true,
|
|
7130
7128
|
toastDuration: 5e3,
|
|
7131
7129
|
themeVars: EMPTY_OBJECT,
|
|
7132
7130
|
root: false
|
|
@@ -7134,6 +7132,7 @@ const defaultProps$1b = {
|
|
|
7134
7132
|
function Theme({
|
|
7135
7133
|
id,
|
|
7136
7134
|
isRoot = defaultProps$1b.isRoot,
|
|
7135
|
+
applyIf,
|
|
7137
7136
|
renderChild: renderChild2,
|
|
7138
7137
|
node,
|
|
7139
7138
|
tone,
|
|
@@ -7254,6 +7253,13 @@ function Theme({
|
|
|
7254
7253
|
if (indexing) {
|
|
7255
7254
|
return children;
|
|
7256
7255
|
}
|
|
7256
|
+
const shouldApplyTheme = applyIf ?? defaultProps$1b.applyIf;
|
|
7257
|
+
if (!shouldApplyTheme) {
|
|
7258
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7259
|
+
renderChild2 && renderChild2(node.children),
|
|
7260
|
+
children
|
|
7261
|
+
] });
|
|
7262
|
+
}
|
|
7257
7263
|
if (isRoot) {
|
|
7258
7264
|
const faviconUrl = getResourceUrl("resource:favicon") || "/resources/favicon.ico";
|
|
7259
7265
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -7324,6 +7330,12 @@ const ThemeMd = createMetadata({
|
|
|
7324
7330
|
void 0,
|
|
7325
7331
|
"boolean",
|
|
7326
7332
|
defaultProps$1b.root
|
|
7333
|
+
),
|
|
7334
|
+
applyIf: d(
|
|
7335
|
+
`This property controls whether the theme wrapper is applied. When true (default), the theme wraps the children. When false, children are rendered unwrapped.`,
|
|
7336
|
+
void 0,
|
|
7337
|
+
"boolean",
|
|
7338
|
+
true
|
|
7327
7339
|
)
|
|
7328
7340
|
},
|
|
7329
7341
|
opaque: true
|
|
@@ -7344,6 +7356,7 @@ const themeComponentRenderer = createComponentRenderer(
|
|
|
7344
7356
|
{
|
|
7345
7357
|
id: extractValue.asOptionalString(node.props.themeId),
|
|
7346
7358
|
isRoot: extractValue.asOptionalBoolean(node.props.root),
|
|
7359
|
+
applyIf: extractValue.asOptionalBoolean(node.props.applyIf),
|
|
7347
7360
|
layoutContext,
|
|
7348
7361
|
renderChild: renderChild2,
|
|
7349
7362
|
tone: themeTone,
|
|
@@ -7633,7 +7646,7 @@ const icon$4 = "_icon_8uiju_65";
|
|
|
7633
7646
|
const includeHoverIndicator = "_includeHoverIndicator_8uiju_71";
|
|
7634
7647
|
const displayActive = "_displayActive_8uiju_106";
|
|
7635
7648
|
const navItemActive = "_navItemActive_8uiju_118";
|
|
7636
|
-
const disabled$
|
|
7649
|
+
const disabled$b = "_disabled_8uiju_153";
|
|
7637
7650
|
const vertical$6 = "_vertical_8uiju_157";
|
|
7638
7651
|
const innerContent$1 = "_innerContent_8uiju_170";
|
|
7639
7652
|
const navLinkStyles = {
|
|
@@ -7644,7 +7657,7 @@ const navLinkStyles = {
|
|
|
7644
7657
|
includeHoverIndicator,
|
|
7645
7658
|
displayActive,
|
|
7646
7659
|
navItemActive,
|
|
7647
|
-
disabled: disabled$
|
|
7660
|
+
disabled: disabled$b,
|
|
7648
7661
|
vertical: vertical$6,
|
|
7649
7662
|
innerContent: innerContent$1
|
|
7650
7663
|
};
|
|
@@ -9420,14 +9433,16 @@ function AppState({
|
|
|
9420
9433
|
registerComponentApi,
|
|
9421
9434
|
onDidUpdate
|
|
9422
9435
|
}) {
|
|
9423
|
-
const registerAppState = useAppStateContextPart((value2) => value2.registerAppState);
|
|
9424
9436
|
const update = useAppStateContextPart((value2) => value2.update);
|
|
9437
|
+
const value = useAppStateContextPart((value2) => {
|
|
9438
|
+
var _a2;
|
|
9439
|
+
return (_a2 = value2 == null ? void 0 : value2.appState) == null ? void 0 : _a2[bucket];
|
|
9440
|
+
});
|
|
9425
9441
|
useIsomorphicLayoutEffect(() => {
|
|
9426
9442
|
if (initialValue !== void 0) {
|
|
9427
|
-
|
|
9443
|
+
update(bucket, initialValue);
|
|
9428
9444
|
}
|
|
9429
|
-
}, [bucket, initialValue
|
|
9430
|
-
const value = useAppStateContextPart((value2) => value2.appState[bucket]);
|
|
9445
|
+
}, [bucket, initialValue]);
|
|
9431
9446
|
useIsomorphicLayoutEffect(() => {
|
|
9432
9447
|
updateState({ value });
|
|
9433
9448
|
if (onDidUpdate) {
|
|
@@ -9476,7 +9491,7 @@ const AppStateMd = createMetadata({
|
|
|
9476
9491
|
defaultValue: defaultProps$13.bucket
|
|
9477
9492
|
},
|
|
9478
9493
|
initialValue: {
|
|
9479
|
-
description: `This property contains the initial state value. Though you can use multiple \`${COMP$1r}\`component instances for the same bucket with their \`initialValue\` set, it may result in faulty app logic. When xmlui instantiates an \`${COMP$1r}\` with an explicit initial value, that value is immediately
|
|
9494
|
+
description: `This property contains the initial state value. Though you can use multiple \`${COMP$1r}\`component instances for the same bucket with their \`initialValue\` set, it may result in faulty app logic. When xmlui instantiates an \`${COMP$1r}\` with an explicit initial value, that value is immediately merged with the existing state. The issue may come from the behavior that \`initialValue\` is set (merged) only when a component mounts. By default, the bucket's initial state is undefined.`
|
|
9480
9495
|
}
|
|
9481
9496
|
},
|
|
9482
9497
|
apis: {
|
|
@@ -10034,13 +10049,13 @@ const styles$12 = {
|
|
|
10034
10049
|
const themeVars$M = `'{"padding-Link": "var(--xmlui-padding-Link)", "paddingHorizontal-Link": "var(--xmlui-paddingHorizontal-Link, var(--xmlui-padding-Link))", "paddingVertical-Link": "var(--xmlui-paddingVertical-Link, var(--xmlui-padding-Link))", "paddingLeft-Link": "var(--xmlui-paddingLeft-Link, var(--xmlui-paddingHorizontal-Link, var(--xmlui-padding-Link)))", "paddingRight-Link": "var(--xmlui-paddingRight-Link, var(--xmlui-paddingHorizontal-Link, var(--xmlui-padding-Link)))", "paddingTop-Link": "var(--xmlui-paddingTop-Link, var(--xmlui-paddingVertical-Link, var(--xmlui-padding-Link)))", "paddingBottom-Link": "var(--xmlui-paddingBottom-Link, var(--xmlui-paddingVertical-Link, var(--xmlui-padding-Link)))", "padding-icon-Link": "var(--xmlui-padding-icon-Link)", "paddingHorizontal-icon-Link": "var(--xmlui-paddingHorizontal-icon-Link, var(--xmlui-padding-icon-Link))", "paddingVertical-icon-Link": "var(--xmlui-paddingVertical-icon-Link, var(--xmlui-padding-icon-Link))", "paddingLeft-icon-Link": "var(--xmlui-paddingLeft-icon-Link, var(--xmlui-paddingHorizontal-icon-Link, var(--xmlui-padding-icon-Link)))", "paddingRight-icon-Link": "var(--xmlui-paddingRight-icon-Link, var(--xmlui-paddingHorizontal-icon-Link, var(--xmlui-padding-icon-Link)))", "paddingTop-icon-Link": "var(--xmlui-paddingTop-icon-Link, var(--xmlui-paddingVertical-icon-Link, var(--xmlui-padding-icon-Link)))", "paddingBottom-icon-Link": "var(--xmlui-paddingBottom-icon-Link, var(--xmlui-paddingVertical-icon-Link, var(--xmlui-padding-icon-Link)))", "border-Link": "var(--xmlui-border-Link)", "borderHorizontal-Link": "var(--xmlui-borderHorizontal-Link, var(--xmlui-border-Link))", "borderVertical-Link": "var(--xmlui-borderVertical-Link, var(--xmlui-border-Link))", "borderLeft-Link": "var(--xmlui-borderLeft-Link, var(--xmlui-borderHorizontal-Link, var(--xmlui-border-Link)))", "borderRight-Link": "var(--xmlui-borderRight-Link, var(--xmlui-borderHorizontal-Link, var(--xmlui-border-Link)))", "borderTop-Link": "var(--xmlui-borderTop-Link, var(--xmlui-borderVertical-Link, var(--xmlui-border-Link)))", "borderBottom-Link": "var(--xmlui-borderBottom-Link, var(--xmlui-borderVertical-Link, var(--xmlui-border-Link)))", "borderWidth-Link": "var(--xmlui-borderWidth-Link)", "borderHorizontalWidth-Link": "var(--xmlui-borderHorizontalWidth-Link, var(--xmlui-borderWidth-Link))", "borderLeftWidth-Link": "var(--xmlui-borderLeftWidth-Link, var(--xmlui-borderHorizontalWidth-Link, var(--xmlui-borderWidth-Link)))", "borderRightWidth-Link": "var(--xmlui-borderRightWidth-Link, var(--xmlui-borderHorizontalWidth-Link, var(--xmlui-borderWidth-Link)))", "borderVerticalWidth-Link": "var(--xmlui-borderVerticalWidth-Link, var(--xmlui-borderWidth-Link))", "borderTopWidth-Link": "var(--xmlui-borderTopWidth-Link, var(--xmlui-borderVerticalWidth-Link, var(--xmlui-borderWidth-Link)))", "borderBottomWidth-Link": "var(--xmlui-borderBottomWidth-Link, var(--xmlui-borderVerticalWidth-Link, var(--xmlui-borderWidth-Link)))", "borderStyle-Link": "var(--xmlui-borderStyle-Link)", "borderHorizontalStyle-Link": "var(--xmlui-borderHorizontalStyle-Link, var(--xmlui-borderStyle-Link))", "borderLeftStyle-Link": "var(--xmlui-borderLeftStyle-Link, var(--xmlui-borderHorizontalStyle-Link, var(--xmlui-borderStyle-Link)))", "borderRightStyle-Link": "var(--xmlui-borderRightStyle-Link, var(--xmlui-borderHorizontalStyle-Link, var(--xmlui-borderStyle-Link)))", "borderVerticalStyle-Link": "var(--xmlui-borderVerticalStyle-Link, var(--xmlui-borderStyle-Link))", "borderTopStyle-Link": "var(--xmlui-borderTopStyle-Link, var(--xmlui-borderVerticalStyle-Link, var(--xmlui-borderStyle-Link)))", "borderBottomStyle-Link": "var(--xmlui-borderBottomStyle-Link, var(--xmlui-borderVerticalStyle-Link, var(--xmlui-borderStyle-Link)))", "borderColor-Link": "var(--xmlui-borderColor-Link)", "borderHorizontalColor-Link": "var(--xmlui-borderHorizontalColor-Link, var(--xmlui-borderColor-Link))", "borderLeftColor-Link": "var(--xmlui-borderLeftColor-Link, var(--xmlui-borderHorizontalColor-Link, var(--xmlui-borderColor-Link)))", "borderRightColor-Link": "var(--xmlui-borderRightColor-Link, var(--xmlui-borderHorizontalColor-Link, var(--xmlui-borderColor-Link)))", "borderVerticalColor-Link": "var(--xmlui-borderVerticalColor-Link, var(--xmlui-borderColor-Link))", "borderTopColor-Link": "var(--xmlui-borderTopColor-Link, var(--xmlui-borderVerticalColor-Link, var(--xmlui-borderColor-Link)))", "borderBottomColor-Link": "var(--xmlui-borderBottomColor-Link, var(--xmlui-borderVerticalColor-Link, var(--xmlui-borderColor-Link)))", "borderStartStartRadius-Link": "var(--xmlui-borderStartStartRadius-Link, var(--xmlui-borderRadius-Link))", "borderStartEndRadius-Link": "var(--xmlui-borderStartEndRadius-Link, var(--xmlui-borderRadius-Link))", "borderEndStartRadius-Link": "var(--xmlui-borderEndStartRadius-Link, var(--xmlui-borderRadius-Link))", "borderEndEndRadius-Link": "var(--xmlui-borderEndEndRadius-Link, var(--xmlui-borderRadius-Link))", "textColor-Link": "var(--xmlui-textColor-Link)", "fontFamily-Link": "var(--xmlui-fontFamily-Link)", "fontSize-Link": "var(--xmlui-fontSize-Link)", "fontStyle-Link": "var(--xmlui-fontStyle-Link)", "fontVariant-Link": "var(--xmlui-fontVariant-Link)", "fontWeight-Link": "var(--xmlui-fontWeight-Link)", "fontStretch-Link": "var(--xmlui-fontStretch-Link)", "textDecorationLine-Link": "var(--xmlui-textDecorationLine-Link)", "textDecorationColor-Link": "var(--xmlui-textDecorationColor-Link)", "textDecorationStyle-Link": "var(--xmlui-textDecorationStyle-Link)", "textDecorationThickness-Link": "var(--xmlui-textDecorationThickness-Link)", "textUnderlineOffset-Link": "var(--xmlui-textUnderlineOffset-Link)", "lineHeight-Link": "var(--xmlui-lineHeight-Link)", "backgroundColor-Link": "var(--xmlui-backgroundColor-Link)", "textTransform-Link": "var(--xmlui-textTransform-Link)", "letterSpacing-Link": "var(--xmlui-letterSpacing-Link)", "wordSpacing-Link": "var(--xmlui-wordSpacing-Link)", "textShadow-Link": "var(--xmlui-textShadow-Link)", "textIndent-Link": "var(--xmlui-textIndent-Link)", "textAlign-Link": "var(--xmlui-textAlign-Link)", "textAlignLast-Link": "var(--xmlui-textAlignLast-Link)", "wordBreak-Link": "var(--xmlui-wordBreak-Link)", "wordWrap-Link": "var(--xmlui-wordWrap-Link)", "direction-Link": "var(--xmlui-direction-Link)", "writingMode-Link": "var(--xmlui-writingMode-Link)", "lineBreak-Link": "var(--xmlui-lineBreak-Link)", "textColor-Link--active": "var(--xmlui-textColor-Link--active)", "textColor-Link--hover": "var(--xmlui-textColor-Link--hover)", "textColor-Link--hover--active": "var(--xmlui-textColor-Link--hover--active)", "fontWeight-Link--active": "var(--xmlui-fontWeight-Link--active)", "gap-icon-Link": "var(--xmlui-gap-icon-Link)", "textDecorationColor-Link--hover": "var(--xmlui-textDecorationColor-Link--hover)", "textDecorationColor-Link--active": "var(--xmlui-textDecorationColor-Link--active)", "outlineWidth-Link--focus": "var(--xmlui-outlineWidth-Link--focus)", "outlineColor-Link--focus": "var(--xmlui-outlineColor-Link--focus)", "outlineStyle-Link--focus": "var(--xmlui-outlineStyle-Link--focus)", "outlineOffset-Link--focus": "var(--xmlui-outlineOffset-Link--focus)"}'`;
|
|
10035
10050
|
const container$1 = "_container_1iujp_14";
|
|
10036
10051
|
const active$3 = "_active_1iujp_75";
|
|
10037
|
-
const disabled$
|
|
10052
|
+
const disabled$a = "_disabled_1iujp_79";
|
|
10038
10053
|
const iconWrapper = "_iconWrapper_1iujp_94";
|
|
10039
10054
|
const styles$11 = {
|
|
10040
10055
|
themeVars: themeVars$M,
|
|
10041
10056
|
container: container$1,
|
|
10042
10057
|
active: active$3,
|
|
10043
|
-
disabled: disabled$
|
|
10058
|
+
disabled: disabled$a,
|
|
10044
10059
|
iconWrapper
|
|
10045
10060
|
};
|
|
10046
10061
|
const defaultProps$$ = {
|
|
@@ -10760,10 +10775,10 @@ const checkboxComponentRenderer = createComponentRenderer(
|
|
|
10760
10775
|
);
|
|
10761
10776
|
}
|
|
10762
10777
|
);
|
|
10763
|
-
const themeVars$J = `'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)"}'`;
|
|
10764
|
-
const separator = "
|
|
10765
|
-
const horizontal$3 = "
|
|
10766
|
-
const vertical$3 = "
|
|
10778
|
+
const themeVars$J = `'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)", "marginTop-ContentSeparator": "var(--xmlui-marginTop-ContentSeparator)", "marginBottom-ContentSeparator": "var(--xmlui-marginBottom-ContentSeparator)", "marginVertical-ContentSeparator": "var(--xmlui-marginVertical-ContentSeparator)", "marginLeft-ContentSeparator": "var(--xmlui-marginLeft-ContentSeparator)", "marginRight-ContentSeparator": "var(--xmlui-marginRight-ContentSeparator)", "marginHorizontal-ContentSeparator": "var(--xmlui-marginHorizontal-ContentSeparator)"}'`;
|
|
10779
|
+
const separator = "_separator_13z1k_14";
|
|
10780
|
+
const horizontal$3 = "_horizontal_13z1k_21";
|
|
10781
|
+
const vertical$3 = "_vertical_13z1k_25";
|
|
10767
10782
|
const styles$_ = {
|
|
10768
10783
|
themeVars: themeVars$J,
|
|
10769
10784
|
separator,
|
|
@@ -10817,6 +10832,8 @@ const ContentSeparatorMd = createMetadata({
|
|
|
10817
10832
|
defaultThemeVars: {
|
|
10818
10833
|
[`backgroundColor-${COMP$1k}`]: "$color-surface-200",
|
|
10819
10834
|
[`size-${COMP$1k}`]: "1px",
|
|
10835
|
+
[`marginVertical-${COMP$1k}`]: "0",
|
|
10836
|
+
[`marginHorizontal-${COMP$1k}`]: "0",
|
|
10820
10837
|
light: {
|
|
10821
10838
|
// --- No light-specific theme vars
|
|
10822
10839
|
},
|
|
@@ -10846,7 +10863,7 @@ const adornment$3 = "_adornment_17ucd_56";
|
|
|
10846
10863
|
const error$b = "_error_17ucd_59";
|
|
10847
10864
|
const warning$c = "_warning_17ucd_87";
|
|
10848
10865
|
const valid$b = "_valid_17ucd_115";
|
|
10849
|
-
const disabled$
|
|
10866
|
+
const disabled$9 = "_disabled_17ucd_143";
|
|
10850
10867
|
const indicator$3 = "_indicator_17ucd_149";
|
|
10851
10868
|
const datePickerInput = "_datePickerInput_17ucd_150";
|
|
10852
10869
|
const inlinePickerMenu = "_inlinePickerMenu_17ucd_153";
|
|
@@ -10893,7 +10910,7 @@ const styles$Z = {
|
|
|
10893
10910
|
error: error$b,
|
|
10894
10911
|
warning: warning$c,
|
|
10895
10912
|
valid: valid$b,
|
|
10896
|
-
disabled: disabled$
|
|
10913
|
+
disabled: disabled$9,
|
|
10897
10914
|
indicator: indicator$3,
|
|
10898
10915
|
datePickerInput,
|
|
10899
10916
|
inlinePickerMenu,
|
|
@@ -11501,7 +11518,7 @@ const DropdownMenuSubContent = "_DropdownMenuSubContent_iu9k6_19";
|
|
|
11501
11518
|
const DropdownMenuItem = "_DropdownMenuItem_iu9k6_29";
|
|
11502
11519
|
const DropdownMenuSubTrigger = "_DropdownMenuSubTrigger_iu9k6_30";
|
|
11503
11520
|
const active$2 = "_active_iu9k6_53";
|
|
11504
|
-
const disabled$
|
|
11521
|
+
const disabled$8 = "_disabled_iu9k6_63";
|
|
11505
11522
|
const wrapper$h = "_wrapper_iu9k6_74";
|
|
11506
11523
|
const DropdownMenuSeparator = "_DropdownMenuSeparator_iu9k6_78";
|
|
11507
11524
|
const styles$Y = {
|
|
@@ -11511,7 +11528,7 @@ const styles$Y = {
|
|
|
11511
11528
|
DropdownMenuItem,
|
|
11512
11529
|
DropdownMenuSubTrigger,
|
|
11513
11530
|
active: active$2,
|
|
11514
|
-
disabled: disabled$
|
|
11531
|
+
disabled: disabled$8,
|
|
11515
11532
|
wrapper: wrapper$h,
|
|
11516
11533
|
DropdownMenuSeparator
|
|
11517
11534
|
};
|
|
@@ -12275,7 +12292,7 @@ const FileUploadDropZone = forwardRef(function FileUploadDropZone2({
|
|
|
12275
12292
|
}, forwardedRef) {
|
|
12276
12293
|
const accept = acceptedFileTypes ? acceptedFileTypes.split(",").reduce((acc, type) => ({ ...acc, [type.trim()]: [] }), {}) : void 0;
|
|
12277
12294
|
const onDrop = useCallback(
|
|
12278
|
-
|
|
12295
|
+
(acceptedFiles) => {
|
|
12279
12296
|
if (!acceptedFiles.length) {
|
|
12280
12297
|
return;
|
|
12281
12298
|
}
|
|
@@ -12791,14 +12808,15 @@ function backendValidationArrived({
|
|
|
12791
12808
|
};
|
|
12792
12809
|
}
|
|
12793
12810
|
const themeVars$B = `'{"padding-ModalDialog": "var(--xmlui-padding-ModalDialog)", "paddingHorizontal-ModalDialog": "var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingVertical-ModalDialog": "var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingLeft-ModalDialog": "var(--xmlui-paddingLeft-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingRight-ModalDialog": "var(--xmlui-paddingRight-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingTop-ModalDialog": "var(--xmlui-paddingTop-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingBottom-ModalDialog": "var(--xmlui-paddingBottom-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "padding-overlay-ModalDialog": "var(--xmlui-padding-overlay-ModalDialog)", "paddingHorizontal-overlay-ModalDialog": "var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingVertical-overlay-ModalDialog": "var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingLeft-overlay-ModalDialog": "var(--xmlui-paddingLeft-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingRight-overlay-ModalDialog": "var(--xmlui-paddingRight-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingTop-overlay-ModalDialog": "var(--xmlui-paddingTop-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingBottom-overlay-ModalDialog": "var(--xmlui-paddingBottom-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "Dialog:backgroundColor-ModalDialog": "var(--xmlui-backgroundColor-ModalDialog)", "Dialog:backgroundColor-overlay-ModalDialog": "var(--xmlui-backgroundColor-overlay-ModalDialog)", "Dialog:borderRadius-ModalDialog": "var(--xmlui-borderRadius-ModalDialog)", "Dialog:fontFamily-ModalDialog": "var(--xmlui-fontFamily-ModalDialog)", "Dialog:textColor-ModalDialog": "var(--xmlui-textColor-ModalDialog)", "Dialog:minWidth-ModalDialog": "var(--xmlui-minWidth-ModalDialog)", "Dialog:maxWidth-ModalDialog": "var(--xmlui-maxWidth-ModalDialog)", "Dialog:marginBottom-title-ModalDialog": "var(--xmlui-marginBottom-title-ModalDialog)"}'`;
|
|
12794
|
-
const overlay$2 = "
|
|
12795
|
-
const fullScreen = "
|
|
12796
|
-
const content$6 = "
|
|
12797
|
-
const overlayBg$1 = "
|
|
12798
|
-
const nested = "
|
|
12799
|
-
const
|
|
12800
|
-
const
|
|
12801
|
-
const
|
|
12811
|
+
const overlay$2 = "_overlay_do4x4_14";
|
|
12812
|
+
const fullScreen = "_fullScreen_do4x4_22";
|
|
12813
|
+
const content$6 = "_content_do4x4_28";
|
|
12814
|
+
const overlayBg$1 = "_overlayBg_do4x4_37";
|
|
12815
|
+
const nested = "_nested_do4x4_43";
|
|
12816
|
+
const contentAnimation = "_contentAnimation_do4x4_74";
|
|
12817
|
+
const dialogTitle = "_dialogTitle_do4x4_80";
|
|
12818
|
+
const innerContent = "_innerContent_do4x4_85";
|
|
12819
|
+
const closeButton = "_closeButton_do4x4_110";
|
|
12802
12820
|
const styles$S = {
|
|
12803
12821
|
themeVars: themeVars$B,
|
|
12804
12822
|
overlay: overlay$2,
|
|
@@ -12806,6 +12824,7 @@ const styles$S = {
|
|
|
12806
12824
|
content: content$6,
|
|
12807
12825
|
overlayBg: overlayBg$1,
|
|
12808
12826
|
nested,
|
|
12827
|
+
contentAnimation,
|
|
12809
12828
|
dialogTitle,
|
|
12810
12829
|
innerContent,
|
|
12811
12830
|
closeButton
|
|
@@ -12904,6 +12923,7 @@ const ModalDialog = React__default.forwardRef(
|
|
|
12904
12923
|
className,
|
|
12905
12924
|
onOpen,
|
|
12906
12925
|
onClose,
|
|
12926
|
+
externalAnimation = true,
|
|
12907
12927
|
...rest
|
|
12908
12928
|
}, ref) => {
|
|
12909
12929
|
const { root: root2 } = useTheme();
|
|
@@ -12952,7 +12972,13 @@ const ModalDialog = React__default.forwardRef(
|
|
|
12952
12972
|
{
|
|
12953
12973
|
...rest,
|
|
12954
12974
|
"data-part-id": PART_CONTENT,
|
|
12955
|
-
className: classnames(
|
|
12975
|
+
className: classnames(
|
|
12976
|
+
{
|
|
12977
|
+
[styles$S.contentAnimation]: !externalAnimation
|
|
12978
|
+
},
|
|
12979
|
+
styles$S.content,
|
|
12980
|
+
className
|
|
12981
|
+
),
|
|
12956
12982
|
onPointerDownOutside: (event) => {
|
|
12957
12983
|
if (event.target instanceof Element && (event.target.closest("._debug-inspect-button") !== null || event.target.localName === "com-1password-button")) {
|
|
12958
12984
|
event.preventDefault();
|
|
@@ -13898,7 +13924,7 @@ function useValidation(validations, onValidate, value, dispatch, bindTo, throttl
|
|
|
13898
13924
|
if (!ignore) {
|
|
13899
13925
|
dispatch(fieldValidated(bindTo, partialResult));
|
|
13900
13926
|
if (partialResult.partial) {
|
|
13901
|
-
(async () => {
|
|
13927
|
+
void (async () => {
|
|
13902
13928
|
const result = await throttledAsyncValidate(validations, onValidate, deferredValue);
|
|
13903
13929
|
if (!ignore) {
|
|
13904
13930
|
dispatch(fieldValidated(bindTo, result));
|
|
@@ -13914,7 +13940,7 @@ function useValidation(validations, onValidate, value, dispatch, bindTo, throttl
|
|
|
13914
13940
|
);
|
|
13915
13941
|
}
|
|
13916
13942
|
function useValidationDisplay(bindTo, value, validationResult, validationMode = defaultValidationMode) {
|
|
13917
|
-
const interactionFlags = useFormContextPart((value2) => value2.interactionFlags[bindTo]) || EMPTY_OBJECT;
|
|
13943
|
+
const interactionFlags = useFormContextPart((value2) => value2 == null ? void 0 : value2.interactionFlags[bindTo]) || EMPTY_OBJECT;
|
|
13918
13944
|
const forceShowValidationResult = interactionFlags.forceShowValidationResult;
|
|
13919
13945
|
const focused2 = interactionFlags.focused;
|
|
13920
13946
|
const afterFirstDirtyBlur = interactionFlags.afterFirstDirtyBlur;
|
|
@@ -14235,7 +14261,7 @@ const Form = forwardRef(function({
|
|
|
14235
14261
|
]);
|
|
14236
14262
|
const doCancel = useEvent(() => {
|
|
14237
14263
|
onCancel == null ? void 0 : onCancel();
|
|
14238
|
-
requestModalFormClose();
|
|
14264
|
+
void requestModalFormClose();
|
|
14239
14265
|
});
|
|
14240
14266
|
const doSubmit = useEvent(async (event) => {
|
|
14241
14267
|
var _a2;
|
|
@@ -14265,7 +14291,7 @@ const Form = forwardRef(function({
|
|
|
14265
14291
|
dispatch(formSubmitted());
|
|
14266
14292
|
await (onSuccess == null ? void 0 : onSuccess(result));
|
|
14267
14293
|
if (!keepModalOpenOnSubmit) {
|
|
14268
|
-
requestModalFormClose();
|
|
14294
|
+
void requestModalFormClose();
|
|
14269
14295
|
}
|
|
14270
14296
|
if (initialValue === EMPTY_OBJECT) {
|
|
14271
14297
|
flushSync(() => {
|
|
@@ -14445,13 +14471,15 @@ const FormWithContextVar = forwardRef(function({
|
|
|
14445
14471
|
const completedNotificationMessage = extractValue.asOptionalString(node.props.completedNotificationMessage) || "";
|
|
14446
14472
|
const errorNotificationMessage = extractValue.asOptionalString(node.props.errorNotificationMessage) || "";
|
|
14447
14473
|
const submitUrl = extractValue.asOptionalString(node.props.submitUrl) || extractValue.asOptionalString(node.props._data_url);
|
|
14474
|
+
const itemLabelWidth = extractValue.asOptionalString(node.props.itemLabelWidth);
|
|
14475
|
+
const { cssProps: itemLabelWidthCssProps } = resolveLayoutProps({ width: itemLabelWidth });
|
|
14448
14476
|
return /* @__PURE__ */ jsx(Slot, { ref, style: style2, children: /* @__PURE__ */ jsx(
|
|
14449
14477
|
Form,
|
|
14450
14478
|
{
|
|
14451
14479
|
keepModalOpenOnSubmit: extractValue.asOptionalBoolean(node.props.keepModalOpenOnSubmit),
|
|
14452
14480
|
itemLabelPosition: extractValue.asOptionalString(node.props.itemLabelPosition),
|
|
14453
14481
|
itemLabelBreak: extractValue.asOptionalBoolean(node.props.itemLabelBreak),
|
|
14454
|
-
itemLabelWidth:
|
|
14482
|
+
itemLabelWidth: itemLabelWidthCssProps.width,
|
|
14455
14483
|
hideButtonRowUntilDirty: extractValue.asOptionalBoolean(node.props.hideButtonRowUntilDirty),
|
|
14456
14484
|
formState,
|
|
14457
14485
|
dispatch,
|
|
@@ -15005,7 +15033,6 @@ class Lexer {
|
|
|
15005
15033
|
* Fetches the next token from the input stream
|
|
15006
15034
|
*/
|
|
15007
15035
|
fetch() {
|
|
15008
|
-
const lexer = this;
|
|
15009
15036
|
const input2 = this.input;
|
|
15010
15037
|
const startPos = this._prefetchedPos || input2.position;
|
|
15011
15038
|
const line2 = input2.line;
|
|
@@ -15018,6 +15045,14 @@ class Lexer {
|
|
|
15018
15045
|
let lastEndColumn = input2.column;
|
|
15019
15046
|
let ch = null;
|
|
15020
15047
|
let useResolver = false;
|
|
15048
|
+
const appendTokenChar = () => {
|
|
15049
|
+
text2 += ch;
|
|
15050
|
+
this._prefetched = null;
|
|
15051
|
+
this._prefetchedPos = null;
|
|
15052
|
+
this._prefetchedColumn = null;
|
|
15053
|
+
lastEndPos = input2.position;
|
|
15054
|
+
lastEndColumn = input2.position;
|
|
15055
|
+
};
|
|
15021
15056
|
let phase = this.getStartingPhaseThenReset();
|
|
15022
15057
|
while (true) {
|
|
15023
15058
|
ch = this.fetchNextChar();
|
|
@@ -15606,14 +15641,6 @@ class Lexer {
|
|
|
15606
15641
|
}
|
|
15607
15642
|
appendTokenChar();
|
|
15608
15643
|
}
|
|
15609
|
-
function appendTokenChar() {
|
|
15610
|
-
text2 += ch;
|
|
15611
|
-
lexer._prefetched = null;
|
|
15612
|
-
lexer._prefetchedPos = null;
|
|
15613
|
-
lexer._prefetchedColumn = null;
|
|
15614
|
-
lastEndPos = input2.position;
|
|
15615
|
-
lastEndColumn = input2.position;
|
|
15616
|
-
}
|
|
15617
15644
|
function makeToken() {
|
|
15618
15645
|
if (useResolver) {
|
|
15619
15646
|
tokenType = resolverHash.get(text2) ?? (isIdStart(text2[0]) && text2[text2.length - 1] !== "'" ? TokenType.Identifier : TokenType.Unknown);
|
|
@@ -16722,9 +16749,16 @@ class Parser {
|
|
|
16722
16749
|
* : "finally" blockStatement
|
|
16723
16750
|
*/
|
|
16724
16751
|
parseTryStatement() {
|
|
16752
|
+
const getBlock = () => {
|
|
16753
|
+
const nextToken2 = this._lexer.peek();
|
|
16754
|
+
if (nextToken2.type !== TokenType.LBrace) {
|
|
16755
|
+
this.reportError("W012", nextToken2);
|
|
16756
|
+
return null;
|
|
16757
|
+
}
|
|
16758
|
+
return this.parseBlockStatement();
|
|
16759
|
+
};
|
|
16725
16760
|
const startToken = this._lexer.peek();
|
|
16726
16761
|
let endToken = this._lexer.get();
|
|
16727
|
-
const parser = this;
|
|
16728
16762
|
const tryB = getBlock();
|
|
16729
16763
|
let catchB;
|
|
16730
16764
|
let catchV;
|
|
@@ -16776,14 +16810,6 @@ class Parser {
|
|
|
16776
16810
|
startToken,
|
|
16777
16811
|
endToken
|
|
16778
16812
|
);
|
|
16779
|
-
function getBlock() {
|
|
16780
|
-
const nextToken2 = parser._lexer.peek();
|
|
16781
|
-
if (nextToken2.type !== TokenType.LBrace) {
|
|
16782
|
-
parser.reportError("W012", nextToken2);
|
|
16783
|
-
return null;
|
|
16784
|
-
}
|
|
16785
|
-
return parser.parseBlockStatement();
|
|
16786
|
-
}
|
|
16787
16813
|
}
|
|
16788
16814
|
/**
|
|
16789
16815
|
* Parses a switch statement
|
|
@@ -19805,7 +19831,7 @@ function processStatementQueue(statements, evalContext, thread) {
|
|
|
19805
19831
|
thread.breakLabelValue = queue.length > 0 ? queue.peek().label : -1;
|
|
19806
19832
|
let outcome;
|
|
19807
19833
|
try {
|
|
19808
|
-
(_a2 = evalContext == null ? void 0 : evalContext.onStatementStarted) == null ? void 0 : _a2.call(evalContext, evalContext, queueItem.statement);
|
|
19834
|
+
void ((_a2 = evalContext == null ? void 0 : evalContext.onStatementStarted) == null ? void 0 : _a2.call(evalContext, evalContext, queueItem.statement));
|
|
19809
19835
|
outcome = processStatement(
|
|
19810
19836
|
queueItem.statement,
|
|
19811
19837
|
queueItem.execInfo ?? {},
|
|
@@ -19845,7 +19871,7 @@ function processStatementQueue(statements, evalContext, thread) {
|
|
|
19845
19871
|
diagInfo.clearToLabels++;
|
|
19846
19872
|
}
|
|
19847
19873
|
}
|
|
19848
|
-
(_b = evalContext == null ? void 0 : evalContext.onStatementCompleted) == null ? void 0 : _b.call(evalContext, evalContext, queueItem.statement);
|
|
19874
|
+
void ((_b = evalContext == null ? void 0 : evalContext.onStatementCompleted) == null ? void 0 : _b.call(evalContext, evalContext, queueItem.statement));
|
|
19849
19875
|
if (queue.length > diagInfo.maxQueueLength) {
|
|
19850
19876
|
diagInfo.maxQueueLength = queue.length;
|
|
19851
19877
|
}
|
|
@@ -20562,7 +20588,7 @@ function evalAssignment(evaluator, thisStack, expr, evalContext, thread) {
|
|
|
20562
20588
|
const rootScope = getRootIdScope(leftValue, evalContext, thread);
|
|
20563
20589
|
const updatesState = rootScope && rootScope.type !== "block";
|
|
20564
20590
|
if (updatesState && evalContext.onWillUpdate) {
|
|
20565
|
-
evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
|
|
20591
|
+
void evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
|
|
20566
20592
|
}
|
|
20567
20593
|
evaluator(thisStack, leftValue, evalContext, thread);
|
|
20568
20594
|
thisStack.pop();
|
|
@@ -20570,7 +20596,7 @@ function evalAssignment(evaluator, thisStack, expr, evalContext, thread) {
|
|
|
20570
20596
|
thisStack.pop();
|
|
20571
20597
|
const value = evalAssignmentCore(thisStack, expr, evalContext, thread);
|
|
20572
20598
|
if (updatesState && evalContext.onDidUpdate) {
|
|
20573
|
-
evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
|
|
20599
|
+
void evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
|
|
20574
20600
|
}
|
|
20575
20601
|
return value;
|
|
20576
20602
|
}
|
|
@@ -20578,13 +20604,13 @@ function evalPreOrPost(evaluator, thisStack, expr, evalContext, thread) {
|
|
|
20578
20604
|
const rootScope = getRootIdScope(expr.expr, evalContext, thread);
|
|
20579
20605
|
const updatesState = rootScope && rootScope.type !== "block";
|
|
20580
20606
|
if (updatesState && evalContext.onWillUpdate) {
|
|
20581
|
-
evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
|
|
20607
|
+
void evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
|
|
20582
20608
|
}
|
|
20583
20609
|
evaluator(thisStack, expr.expr, evalContext, thread);
|
|
20584
20610
|
thisStack.pop();
|
|
20585
20611
|
const value = evalPreOrPostCore(thisStack, expr, evalContext, thread);
|
|
20586
20612
|
if (updatesState && evalContext.onDidUpdate) {
|
|
20587
|
-
evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
|
|
20613
|
+
void evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
|
|
20588
20614
|
}
|
|
20589
20615
|
return value;
|
|
20590
20616
|
}
|
|
@@ -20663,11 +20689,11 @@ function evalFunctionInvocation(evaluator, thisStack, expr, evalContext, thread)
|
|
|
20663
20689
|
const rootScope = getRootIdScope(expr.obj, evalContext, thread);
|
|
20664
20690
|
const updatesState = rootScope && rootScope.type !== "block";
|
|
20665
20691
|
if (updatesState && evalContext.onWillUpdate) {
|
|
20666
|
-
evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
|
|
20692
|
+
void evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
|
|
20667
20693
|
}
|
|
20668
20694
|
const value = ((_b = evalContext.options) == null ? void 0 : _b.defaultToOptionalMemberAccess) ? functionObj == null ? void 0 : functionObj.call(currentContext, ...functionArgs) : functionObj.call(currentContext, ...functionArgs);
|
|
20669
20695
|
if (updatesState && evalContext.onDidUpdate) {
|
|
20670
|
-
evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
|
|
20696
|
+
void evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
|
|
20671
20697
|
}
|
|
20672
20698
|
setExprValue(expr, { value }, thread);
|
|
20673
20699
|
thisStack.push(value);
|
|
@@ -21839,62 +21865,99 @@ function useLongPress(elementRef, action2, delay2 = 500) {
|
|
|
21839
21865
|
};
|
|
21840
21866
|
}, [elementRef, action2, delay2]);
|
|
21841
21867
|
}
|
|
21842
|
-
const
|
|
21843
|
-
|
|
21844
|
-
|
|
21845
|
-
|
|
21846
|
-
|
|
21847
|
-
|
|
21848
|
-
|
|
21849
|
-
|
|
21850
|
-
|
|
21851
|
-
|
|
21852
|
-
|
|
21853
|
-
|
|
21854
|
-
|
|
21855
|
-
|
|
21856
|
-
const
|
|
21857
|
-
|
|
21858
|
-
|
|
21859
|
-
|
|
21860
|
-
|
|
21861
|
-
|
|
21862
|
-
|
|
21863
|
-
|
|
21864
|
-
|
|
21865
|
-
const slideInFromTop = "_slideInFromTop_11axh_1";
|
|
21866
|
-
const
|
|
21867
|
-
const
|
|
21868
|
-
const
|
|
21869
|
-
const
|
|
21870
|
-
const
|
|
21871
|
-
const
|
|
21872
|
-
const
|
|
21873
|
-
const
|
|
21874
|
-
const
|
|
21875
|
-
const
|
|
21876
|
-
const
|
|
21877
|
-
const
|
|
21868
|
+
const SelectContext = createContext({
|
|
21869
|
+
value: null,
|
|
21870
|
+
onChange: (selectedValue) => {
|
|
21871
|
+
},
|
|
21872
|
+
setOpen: (open) => {
|
|
21873
|
+
},
|
|
21874
|
+
setSelectedIndex: (index) => {
|
|
21875
|
+
},
|
|
21876
|
+
options: /* @__PURE__ */ new Set(),
|
|
21877
|
+
optionRenderer: void 0
|
|
21878
|
+
});
|
|
21879
|
+
function useSelect() {
|
|
21880
|
+
return useContext(SelectContext);
|
|
21881
|
+
}
|
|
21882
|
+
const OptionContext = createContext({
|
|
21883
|
+
onOptionAdd: () => {
|
|
21884
|
+
},
|
|
21885
|
+
onOptionRemove: () => {
|
|
21886
|
+
}
|
|
21887
|
+
});
|
|
21888
|
+
function useOption() {
|
|
21889
|
+
return useContext(OptionContext);
|
|
21890
|
+
}
|
|
21891
|
+
const themeVars$y = `'{"border-Select": "var(--xmlui-border-Select)", "borderHorizontal-Select": "var(--xmlui-borderHorizontal-Select, var(--xmlui-border-Select))", "borderVertical-Select": "var(--xmlui-borderVertical-Select, var(--xmlui-border-Select))", "borderLeft-Select": "var(--xmlui-borderLeft-Select, var(--xmlui-borderHorizontal-Select, var(--xmlui-border-Select)))", "borderRight-Select": "var(--xmlui-borderRight-Select, var(--xmlui-borderHorizontal-Select, var(--xmlui-border-Select)))", "borderTop-Select": "var(--xmlui-borderTop-Select, var(--xmlui-borderVertical-Select, var(--xmlui-border-Select)))", "borderBottom-Select": "var(--xmlui-borderBottom-Select, var(--xmlui-borderVertical-Select, var(--xmlui-border-Select)))", "borderWidth-Select": "var(--xmlui-borderWidth-Select)", "borderHorizontalWidth-Select": "var(--xmlui-borderHorizontalWidth-Select, var(--xmlui-borderWidth-Select))", "borderLeftWidth-Select": "var(--xmlui-borderLeftWidth-Select, var(--xmlui-borderHorizontalWidth-Select, var(--xmlui-borderWidth-Select)))", "borderRightWidth-Select": "var(--xmlui-borderRightWidth-Select, var(--xmlui-borderHorizontalWidth-Select, var(--xmlui-borderWidth-Select)))", "borderVerticalWidth-Select": "var(--xmlui-borderVerticalWidth-Select, var(--xmlui-borderWidth-Select))", "borderTopWidth-Select": "var(--xmlui-borderTopWidth-Select, var(--xmlui-borderVerticalWidth-Select, var(--xmlui-borderWidth-Select)))", "borderBottomWidth-Select": "var(--xmlui-borderBottomWidth-Select, var(--xmlui-borderVerticalWidth-Select, var(--xmlui-borderWidth-Select)))", "borderStyle-Select": "var(--xmlui-borderStyle-Select)", "borderHorizontalStyle-Select": "var(--xmlui-borderHorizontalStyle-Select, var(--xmlui-borderStyle-Select))", "borderLeftStyle-Select": "var(--xmlui-borderLeftStyle-Select, var(--xmlui-borderHorizontalStyle-Select, var(--xmlui-borderStyle-Select)))", "borderRightStyle-Select": "var(--xmlui-borderRightStyle-Select, var(--xmlui-borderHorizontalStyle-Select, var(--xmlui-borderStyle-Select)))", "borderVerticalStyle-Select": "var(--xmlui-borderVerticalStyle-Select, var(--xmlui-borderStyle-Select))", "borderTopStyle-Select": "var(--xmlui-borderTopStyle-Select, var(--xmlui-borderVerticalStyle-Select, var(--xmlui-borderStyle-Select)))", "borderBottomStyle-Select": "var(--xmlui-borderBottomStyle-Select, var(--xmlui-borderVerticalStyle-Select, var(--xmlui-borderStyle-Select)))", "borderColor-Select": "var(--xmlui-borderColor-Select)", "borderHorizontalColor-Select": "var(--xmlui-borderHorizontalColor-Select, var(--xmlui-borderColor-Select))", "borderLeftColor-Select": "var(--xmlui-borderLeftColor-Select, var(--xmlui-borderHorizontalColor-Select, var(--xmlui-borderColor-Select)))", "borderRightColor-Select": "var(--xmlui-borderRightColor-Select, var(--xmlui-borderHorizontalColor-Select, var(--xmlui-borderColor-Select)))", "borderVerticalColor-Select": "var(--xmlui-borderVerticalColor-Select, var(--xmlui-borderColor-Select))", "borderTopColor-Select": "var(--xmlui-borderTopColor-Select, var(--xmlui-borderVerticalColor-Select, var(--xmlui-borderColor-Select)))", "borderBottomColor-Select": "var(--xmlui-borderBottomColor-Select, var(--xmlui-borderVerticalColor-Select, var(--xmlui-borderColor-Select)))", "borderStartStartRadius-Select": "var(--xmlui-borderStartStartRadius-Select, var(--xmlui-borderRadius-Select))", "borderStartEndRadius-Select": "var(--xmlui-borderStartEndRadius-Select, var(--xmlui-borderRadius-Select))", "borderEndStartRadius-Select": "var(--xmlui-borderEndStartRadius-Select, var(--xmlui-borderRadius-Select))", "borderEndEndRadius-Select": "var(--xmlui-borderEndEndRadius-Select, var(--xmlui-borderRadius-Select))", "padding-Select": "var(--xmlui-padding-Select)", "paddingHorizontal-Select": "var(--xmlui-paddingHorizontal-Select, var(--xmlui-padding-Select))", "paddingVertical-Select": "var(--xmlui-paddingVertical-Select, var(--xmlui-padding-Select))", "paddingLeft-Select": "var(--xmlui-paddingLeft-Select, var(--xmlui-paddingHorizontal-Select, var(--xmlui-padding-Select)))", "paddingRight-Select": "var(--xmlui-paddingRight-Select, var(--xmlui-paddingHorizontal-Select, var(--xmlui-padding-Select)))", "paddingTop-Select": "var(--xmlui-paddingTop-Select, var(--xmlui-paddingVertical-Select, var(--xmlui-padding-Select)))", "paddingBottom-Select": "var(--xmlui-paddingBottom-Select, var(--xmlui-paddingVertical-Select, var(--xmlui-padding-Select)))", "padding-item-Select": "var(--xmlui-padding-item-Select)", "paddingHorizontal-item-Select": "var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select))", "paddingVertical-item-Select": "var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select))", "paddingLeft-item-Select": "var(--xmlui-paddingLeft-item-Select, var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select)))", "paddingRight-item-Select": "var(--xmlui-paddingRight-item-Select, var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select)))", "paddingTop-item-Select": "var(--xmlui-paddingTop-item-Select, var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select)))", "paddingBottom-item-Select": "var(--xmlui-paddingBottom-item-Select, var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select)))", "Input:borderRadius-Select-default": "var(--xmlui-borderRadius-Select-default)", "Input:borderColor-Select-default": "var(--xmlui-borderColor-Select-default)", "Input:borderWidth-Select-default": "var(--xmlui-borderWidth-Select-default)", "Input:borderStyle-Select-default": "var(--xmlui-borderStyle-Select-default)", "Input:fontSize-Select-default": "var(--xmlui-fontSize-Select-default)", "Input:backgroundColor-Select-default": "var(--xmlui-backgroundColor-Select-default)", "Input:boxShadow-Select-default": "var(--xmlui-boxShadow-Select-default)", "Input:textColor-Select-default": "var(--xmlui-textColor-Select-default)", "Input:borderColor-Select-default--hover": "var(--xmlui-borderColor-Select-default--hover)", "Input:backgroundColor-Select-default--hover": "var(--xmlui-backgroundColor-Select-default--hover)", "Input:boxShadow-Select-default--hover": "var(--xmlui-boxShadow-Select-default--hover)", "Input:textColor-Select-default--hover": "var(--xmlui-textColor-Select-default--hover)", "Input:outlineWidth-Select-default--focus": "var(--xmlui-outlineWidth-Select-default--focus)", "Input:outlineColor-Select-default--focus": "var(--xmlui-outlineColor-Select-default--focus)", "Input:outlineStyle-Select-default--focus": "var(--xmlui-outlineStyle-Select-default--focus)", "Input:outlineOffset-Select-default--focus": "var(--xmlui-outlineOffset-Select-default--focus)", "Input:textColor-placeholder-Select-default": "var(--xmlui-textColor-placeholder-Select-default)", "Input:fontSize-placeholder-Select-default": "var(--xmlui-fontSize-placeholder-Select-default)", "Input:borderRadius-Select-error": "var(--xmlui-borderRadius-Select-error)", "Input:borderColor-Select-error": "var(--xmlui-borderColor-Select-error)", "Input:borderWidth-Select-error": "var(--xmlui-borderWidth-Select-error)", "Input:borderStyle-Select-error": "var(--xmlui-borderStyle-Select-error)", "Input:fontSize-Select-error": "var(--xmlui-fontSize-Select-error)", "Input:backgroundColor-Select-error": "var(--xmlui-backgroundColor-Select-error)", "Input:boxShadow-Select-error": "var(--xmlui-boxShadow-Select-error)", "Input:textColor-Select-error": "var(--xmlui-textColor-Select-error)", "Input:borderColor-Select-error--hover": "var(--xmlui-borderColor-Select-error--hover)", "Input:backgroundColor-Select-error--hover": "var(--xmlui-backgroundColor-Select-error--hover)", "Input:boxShadow-Select-error--hover": "var(--xmlui-boxShadow-Select-error--hover)", "Input:textColor-Select-error--hover": "var(--xmlui-textColor-Select-error--hover)", "Input:outlineWidth-Select-error--focus": "var(--xmlui-outlineWidth-Select-error--focus)", "Input:outlineColor-Select-error--focus": "var(--xmlui-outlineColor-Select-error--focus)", "Input:outlineStyle-Select-error--focus": "var(--xmlui-outlineStyle-Select-error--focus)", "Input:outlineOffset-Select-error--focus": "var(--xmlui-outlineOffset-Select-error--focus)", "Input:textColor-placeholder-Select-error": "var(--xmlui-textColor-placeholder-Select-error)", "Input:fontSize-placeholder-Select-error": "var(--xmlui-fontSize-placeholder-Select-error)", "Input:borderRadius-Select-warning": "var(--xmlui-borderRadius-Select-warning)", "Input:borderColor-Select-warning": "var(--xmlui-borderColor-Select-warning)", "Input:borderWidth-Select-warning": "var(--xmlui-borderWidth-Select-warning)", "Input:borderStyle-Select-warning": "var(--xmlui-borderStyle-Select-warning)", "Input:fontSize-Select-warning": "var(--xmlui-fontSize-Select-warning)", "Input:backgroundColor-Select-warning": "var(--xmlui-backgroundColor-Select-warning)", "Input:boxShadow-Select-warning": "var(--xmlui-boxShadow-Select-warning)", "Input:textColor-Select-warning": "var(--xmlui-textColor-Select-warning)", "Input:borderColor-Select-warning--hover": "var(--xmlui-borderColor-Select-warning--hover)", "Input:backgroundColor-Select-warning--hover": "var(--xmlui-backgroundColor-Select-warning--hover)", "Input:boxShadow-Select-warning--hover": "var(--xmlui-boxShadow-Select-warning--hover)", "Input:textColor-Select-warning--hover": "var(--xmlui-textColor-Select-warning--hover)", "Input:outlineWidth-Select-warning--focus": "var(--xmlui-outlineWidth-Select-warning--focus)", "Input:outlineColor-Select-warning--focus": "var(--xmlui-outlineColor-Select-warning--focus)", "Input:outlineStyle-Select-warning--focus": "var(--xmlui-outlineStyle-Select-warning--focus)", "Input:outlineOffset-Select-warning--focus": "var(--xmlui-outlineOffset-Select-warning--focus)", "Input:textColor-placeholder-Select-warning": "var(--xmlui-textColor-placeholder-Select-warning)", "Input:fontSize-placeholder-Select-warning": "var(--xmlui-fontSize-placeholder-Select-warning)", "Input:borderRadius-Select-success": "var(--xmlui-borderRadius-Select-success)", "Input:borderColor-Select-success": "var(--xmlui-borderColor-Select-success)", "Input:borderWidth-Select-success": "var(--xmlui-borderWidth-Select-success)", "Input:borderStyle-Select-success": "var(--xmlui-borderStyle-Select-success)", "Input:fontSize-Select-success": "var(--xmlui-fontSize-Select-success)", "Input:backgroundColor-Select-success": "var(--xmlui-backgroundColor-Select-success)", "Input:boxShadow-Select-success": "var(--xmlui-boxShadow-Select-success)", "Input:textColor-Select-success": "var(--xmlui-textColor-Select-success)", "Input:borderColor-Select-success--hover": "var(--xmlui-borderColor-Select-success--hover)", "Input:backgroundColor-Select-success--hover": "var(--xmlui-backgroundColor-Select-success--hover)", "Input:boxShadow-Select-success--hover": "var(--xmlui-boxShadow-Select-success--hover)", "Input:textColor-Select-success--hover": "var(--xmlui-textColor-Select-success--hover)", "Input:outlineWidth-Select-success--focus": "var(--xmlui-outlineWidth-Select-success--focus)", "Input:outlineColor-Select-success--focus": "var(--xmlui-outlineColor-Select-success--focus)", "Input:outlineStyle-Select-success--focus": "var(--xmlui-outlineStyle-Select-success--focus)", "Input:outlineOffset-Select-success--focus": "var(--xmlui-outlineOffset-Select-success--focus)", "Input:textColor-placeholder-Select-success": "var(--xmlui-textColor-placeholder-Select-success)", "Input:fontSize-placeholder-Select-success": "var(--xmlui-fontSize-placeholder-Select-success)", "Input:backgroundColor-Select--disabled": "var(--xmlui-backgroundColor-Select--disabled)", "Input:textColor-Select--disabled": "var(--xmlui-textColor-Select--disabled)", "Input:borderColor-Select--disabled": "var(--xmlui-borderColor-Select--disabled)", "Input:outlineWidth-Select--focus": "var(--xmlui-outlineWidth-Select--focus)", "Input:outlineColor-Select--focus": "var(--xmlui-outlineColor-Select--focus)", "Input:outlineStyle-Select--focus": "var(--xmlui-outlineStyle-Select--focus)", "Input:outlineOffset-Select--focus": "var(--xmlui-outlineOffset-Select--focus)", "Input:textColor-placeholder-Select": "var(--xmlui-textColor-placeholder-Select)", "paddingVertical-Select-badge": "var(--xmlui-paddingVertical-Select-badge)", "paddingHorizontal-Select-badge": "var(--xmlui-paddingHorizontal-Select-badge)", "borderRadius-Select-badge": "var(--xmlui-borderRadius-Select-badge)", "Input:fontSize-Select-badge": "var(--xmlui-fontSize-Select-badge)", "Input:backgroundColor-Select-badge": "var(--xmlui-backgroundColor-Select-badge)", "Input:textColor-Select-badge": "var(--xmlui-textColor-Select-badge)", "Input:backgroundColor-Select-badge--hover": "var(--xmlui-backgroundColor-Select-badge--hover)", "Input:textColor-Select-badge--hover": "var(--xmlui-textColor-Select-badge--hover)", "Input:backgroundColor-Select-badge--active": "var(--xmlui-backgroundColor-Select-badge--active)", "Input:textColor-Select-badge--active": "var(--xmlui-textColor-Select-badge--active)", "Input:backgroundColor-menu-Select": "var(--xmlui-backgroundColor-menu-Select)", "Input:borderRadius-menu-Select": "var(--xmlui-borderRadius-menu-Select)", "Input:boxShadow-menu-Select": "var(--xmlui-boxShadow-menu-Select)", "Input:borderWidth-menu-Select": "var(--xmlui-borderWidth-menu-Select)", "Input:borderColor-menu-Select": "var(--xmlui-borderColor-menu-Select)", "backgroundColor-item-Select": "var(--xmlui-backgroundColor-item-Select)", "backgroundColor-item-Select--active": "var(--xmlui-backgroundColor-item-Select--active)", "backgroundColor-item-Select--hover": "var(--xmlui-backgroundColor-item-Select--hover)", "textColor-item-Select--disabled": "var(--xmlui-textColor-item-Select--disabled)", "opacity-text-item-Select--disabled": "var(--xmlui-opacity-text-item-Select--disabled)", "textColor-indicator-Select": "var(--xmlui-textColor-indicator-Select)"}'`;
|
|
21892
|
+
const selectTrigger = "_selectTrigger_1v71t_17";
|
|
21893
|
+
const error$8 = "_error_1v71t_54";
|
|
21894
|
+
const warning$9 = "_warning_1v71t_80";
|
|
21895
|
+
const valid$8 = "_valid_1v71t_106";
|
|
21896
|
+
const disabled$7 = "_disabled_1v71t_132";
|
|
21897
|
+
const focused$3 = "_focused_1v71t_139";
|
|
21898
|
+
const placeholder = "_placeholder_1v71t_145";
|
|
21899
|
+
const actions$1 = "_actions_1v71t_162";
|
|
21900
|
+
const action$1 = "_action_1v71t_162";
|
|
21901
|
+
const emptyList = "_emptyList_1v71t_173";
|
|
21902
|
+
const badgeListContainer = "_badgeListContainer_1v71t_185";
|
|
21903
|
+
const badgeList$1 = "_badgeList_1v71t_185";
|
|
21904
|
+
const inputWrapper$1 = "_inputWrapper_1v71t_198";
|
|
21905
|
+
const badge$1 = "_badge_1v71t_185";
|
|
21906
|
+
const selectContent = "_selectContent_1v71t_233";
|
|
21907
|
+
const command$1 = "_command_1v71t_241";
|
|
21908
|
+
const commandInputContainer = "_commandInputContainer_1v71t_246";
|
|
21909
|
+
const commandInput$1 = "_commandInput_1v71t_246";
|
|
21910
|
+
const commandList$1 = "_commandList_1v71t_265";
|
|
21911
|
+
const multiSelectOption = "_multiSelectOption_1v71t_272";
|
|
21912
|
+
const multiSelectOptionContent = "_multiSelectOptionContent_1v71t_286";
|
|
21913
|
+
const highlighted$1 = "_highlighted_1v71t_295";
|
|
21914
|
+
const disabledOption$1 = "_disabledOption_1v71t_301";
|
|
21915
|
+
const selectValue = "_selectValue_1v71t_316";
|
|
21916
|
+
const selectDropdownContent = "_selectDropdownContent_1v71t_331";
|
|
21917
|
+
const fadeIn = "_fadeIn_1v71t_1";
|
|
21918
|
+
const zoomIn = "_zoomIn_1v71t_1";
|
|
21919
|
+
const fadeOut = "_fadeOut_1v71t_1";
|
|
21920
|
+
const zoomOut = "_zoomOut_1v71t_1";
|
|
21921
|
+
const slideInFromTop = "_slideInFromTop_1v71t_1";
|
|
21922
|
+
const slideInFromRight = "_slideInFromRight_1v71t_1";
|
|
21923
|
+
const slideInFromLeft = "_slideInFromLeft_1v71t_1";
|
|
21924
|
+
const slideInFromBottom = "_slideInFromBottom_1v71t_1";
|
|
21925
|
+
const selectViewport = "_selectViewport_1v71t_364";
|
|
21926
|
+
const selectScrollUpButton = "_selectScrollUpButton_1v71t_368";
|
|
21927
|
+
const selectScrollDownButton = "_selectScrollDownButton_1v71t_376";
|
|
21928
|
+
const selectEmpty = "_selectEmpty_1v71t_384";
|
|
21929
|
+
const selectOption = "_selectOption_1v71t_397";
|
|
21930
|
+
const selectOptionContent = "_selectOptionContent_1v71t_420";
|
|
21931
|
+
const selectOptionIndicator = "_selectOptionIndicator_1v71t_434";
|
|
21932
|
+
const loading = "_loading_1v71t_444";
|
|
21933
|
+
const srOnly = "_srOnly_1v71t_447";
|
|
21878
21934
|
const styles$O = {
|
|
21879
21935
|
themeVars: themeVars$y,
|
|
21880
|
-
|
|
21936
|
+
selectTrigger,
|
|
21881
21937
|
error: error$8,
|
|
21882
21938
|
warning: warning$9,
|
|
21883
21939
|
valid: valid$8,
|
|
21884
|
-
|
|
21940
|
+
disabled: disabled$7,
|
|
21941
|
+
focused: focused$3,
|
|
21942
|
+
placeholder,
|
|
21943
|
+
actions: actions$1,
|
|
21944
|
+
action: action$1,
|
|
21945
|
+
emptyList,
|
|
21885
21946
|
badgeListContainer,
|
|
21886
21947
|
badgeList: badgeList$1,
|
|
21948
|
+
inputWrapper: inputWrapper$1,
|
|
21887
21949
|
badge: badge$1,
|
|
21888
|
-
|
|
21889
|
-
placeholder,
|
|
21890
|
-
emptyList,
|
|
21891
|
-
selectScrollUpButton,
|
|
21892
|
-
selectScrollDownButton,
|
|
21950
|
+
selectContent,
|
|
21893
21951
|
command: command$1,
|
|
21894
21952
|
commandInputContainer,
|
|
21895
21953
|
commandInput: commandInput$1,
|
|
21896
21954
|
commandList: commandList$1,
|
|
21897
|
-
|
|
21955
|
+
multiSelectOption,
|
|
21956
|
+
multiSelectOptionContent,
|
|
21957
|
+
highlighted: highlighted$1,
|
|
21958
|
+
disabledOption: disabledOption$1,
|
|
21959
|
+
selectValue,
|
|
21960
|
+
selectDropdownContent,
|
|
21898
21961
|
fadeIn,
|
|
21899
21962
|
zoomIn,
|
|
21900
21963
|
fadeOut,
|
|
@@ -21903,20 +21966,67 @@ const styles$O = {
|
|
|
21903
21966
|
slideInFromRight,
|
|
21904
21967
|
slideInFromLeft,
|
|
21905
21968
|
slideInFromBottom,
|
|
21906
|
-
multiComboboxOption,
|
|
21907
|
-
multiComboboxOptionContent,
|
|
21908
|
-
selectItem,
|
|
21909
|
-
selectItemContent,
|
|
21910
|
-
selectItemIndicator,
|
|
21911
21969
|
selectViewport,
|
|
21970
|
+
selectScrollUpButton,
|
|
21971
|
+
selectScrollDownButton,
|
|
21912
21972
|
selectEmpty,
|
|
21973
|
+
selectOption,
|
|
21974
|
+
selectOptionContent,
|
|
21975
|
+
selectOptionIndicator,
|
|
21913
21976
|
loading,
|
|
21914
21977
|
srOnly
|
|
21915
21978
|
};
|
|
21916
|
-
const
|
|
21917
|
-
function
|
|
21918
|
-
|
|
21919
|
-
}
|
|
21979
|
+
const SelectOption = forwardRef(
|
|
21980
|
+
function SelectOption2(option, ref) {
|
|
21981
|
+
const visibleContentRef = useRef(null);
|
|
21982
|
+
const { value, label: label2, enabled: enabled2 = true, children, className } = option;
|
|
21983
|
+
const { value: selectedValue, optionRenderer } = useSelect();
|
|
21984
|
+
const { onOptionRemove, onOptionAdd } = useOption();
|
|
21985
|
+
const opt = useMemo(() => {
|
|
21986
|
+
return {
|
|
21987
|
+
...option,
|
|
21988
|
+
label: label2 ?? "",
|
|
21989
|
+
keywords: [label2 ?? ""]
|
|
21990
|
+
};
|
|
21991
|
+
}, [option, label2]);
|
|
21992
|
+
useEffect(() => {
|
|
21993
|
+
onOptionAdd(opt);
|
|
21994
|
+
return () => onOptionRemove(opt);
|
|
21995
|
+
}, [opt, onOptionAdd, onOptionRemove]);
|
|
21996
|
+
return /* @__PURE__ */ jsxs(
|
|
21997
|
+
Item$1,
|
|
21998
|
+
{
|
|
21999
|
+
ref,
|
|
22000
|
+
className: classnames(className, styles$O.selectOption),
|
|
22001
|
+
value,
|
|
22002
|
+
textValue: label2,
|
|
22003
|
+
disabled: !enabled2,
|
|
22004
|
+
onClick: (event) => {
|
|
22005
|
+
event.stopPropagation();
|
|
22006
|
+
},
|
|
22007
|
+
"data-state": selectedValue === value && "checked",
|
|
22008
|
+
children: [
|
|
22009
|
+
/* @__PURE__ */ jsx("span", { style: { display: "none" }, children: /* @__PURE__ */ jsx(ItemText, { children: label2 }) }),
|
|
22010
|
+
children ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22011
|
+
/* @__PURE__ */ jsx("div", { className: styles$O.selectOptionContent, ref: visibleContentRef, children }),
|
|
22012
|
+
selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$O.selectOptionIndicator, children: /* @__PURE__ */ jsx(Icon$l, { name: "checkmark" }) })
|
|
22013
|
+
] }) : optionRenderer ? /* @__PURE__ */ jsx("div", { className: styles$O.selectOptionContent, ref: visibleContentRef, children: optionRenderer(
|
|
22014
|
+
{
|
|
22015
|
+
label: label2,
|
|
22016
|
+
value,
|
|
22017
|
+
enabled: enabled2
|
|
22018
|
+
},
|
|
22019
|
+
selectedValue,
|
|
22020
|
+
false
|
|
22021
|
+
) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22022
|
+
/* @__PURE__ */ jsx("div", { className: styles$O.selectOptionContent, ref: visibleContentRef, children: label2 }),
|
|
22023
|
+
selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$O.selectItemIndicator, children: /* @__PURE__ */ jsx(Icon$l, { name: "checkmark" }) })
|
|
22024
|
+
] })
|
|
22025
|
+
]
|
|
22026
|
+
}
|
|
22027
|
+
);
|
|
22028
|
+
}
|
|
22029
|
+
);
|
|
21920
22030
|
const OptionTypeContext = React__default.createContext(null);
|
|
21921
22031
|
function useOptionType() {
|
|
21922
22032
|
return React__default.useContext(OptionTypeContext);
|
|
@@ -21927,15 +22037,6 @@ function OptionTypeProvider({
|
|
|
21927
22037
|
}) {
|
|
21928
22038
|
return /* @__PURE__ */ jsx(OptionTypeContext.Provider, { value: Component, children });
|
|
21929
22039
|
}
|
|
21930
|
-
const OptionContext = createContext({
|
|
21931
|
-
onOptionAdd: () => {
|
|
21932
|
-
},
|
|
21933
|
-
onOptionRemove: () => {
|
|
21934
|
-
}
|
|
21935
|
-
});
|
|
21936
|
-
function useOption() {
|
|
21937
|
-
return useContext(OptionContext);
|
|
21938
|
-
}
|
|
21939
22040
|
function HiddenOption(option) {
|
|
21940
22041
|
const { label: label2 } = option;
|
|
21941
22042
|
const { onOptionRemove, onOptionAdd } = useOption();
|
|
@@ -21954,18 +22055,6 @@ function HiddenOption(option) {
|
|
|
21954
22055
|
}, [opt, onOptionAdd, onOptionRemove]);
|
|
21955
22056
|
return /* @__PURE__ */ jsx("div", { ref: (el) => setNode(el), style: { display: "none" }, children: option.children });
|
|
21956
22057
|
}
|
|
21957
|
-
const defaultProps$L = {
|
|
21958
|
-
enabled: true,
|
|
21959
|
-
placeholder: "",
|
|
21960
|
-
autoFocus: false,
|
|
21961
|
-
searchable: false,
|
|
21962
|
-
multiSelect: false,
|
|
21963
|
-
required: false,
|
|
21964
|
-
inProgress: false,
|
|
21965
|
-
inProgressNotificationMessage: "",
|
|
21966
|
-
readOnly: false,
|
|
21967
|
-
validationStatus: "none"
|
|
21968
|
-
};
|
|
21969
22058
|
const SimpleSelect = forwardRef(
|
|
21970
22059
|
function SimpleSelect2(props, forwardedRef) {
|
|
21971
22060
|
const { root: root2 } = useTheme();
|
|
@@ -22031,25 +22120,24 @@ const SimpleSelect = forwardRef(
|
|
|
22031
22120
|
"div",
|
|
22032
22121
|
{
|
|
22033
22122
|
className: classnames(styles$O.selectValue, {
|
|
22034
|
-
[styles$O.selectValue]: value !== void 0,
|
|
22035
22123
|
[styles$O.placeholder]: value === void 0
|
|
22036
22124
|
}),
|
|
22037
22125
|
children: selectedOption ? selectedOption.label : readOnly2 ? "" : placeholder2
|
|
22038
22126
|
}
|
|
22039
22127
|
),
|
|
22040
|
-
/* @__PURE__ */ jsx(
|
|
22128
|
+
/* @__PURE__ */ jsx("span", { className: styles$O.action, children: /* @__PURE__ */ jsx(Icon$l, { name: "chevrondown" }) })
|
|
22041
22129
|
]
|
|
22042
22130
|
}
|
|
22043
22131
|
),
|
|
22044
22132
|
/* @__PURE__ */ jsx(Portal, { container: root2, children: /* @__PURE__ */ jsxs(
|
|
22045
22133
|
Content,
|
|
22046
22134
|
{
|
|
22047
|
-
className: styles$O.
|
|
22135
|
+
className: styles$O.selectDropdownContent,
|
|
22048
22136
|
position: "popper",
|
|
22049
22137
|
style: { maxHeight: height, minWidth: width },
|
|
22050
22138
|
children: [
|
|
22051
22139
|
/* @__PURE__ */ jsx(ScrollUpButton, { className: styles$O.selectScrollUpButton, children: /* @__PURE__ */ jsx(Icon$l, { name: "chevronup" }) }),
|
|
22052
|
-
/* @__PURE__ */ jsxs(
|
|
22140
|
+
/* @__PURE__ */ jsxs(Viewport, { className: styles$O.selectViewport, role: "listbox", children: [
|
|
22053
22141
|
children,
|
|
22054
22142
|
optionsArray.length === 0 && emptyListNode
|
|
22055
22143
|
] }),
|
|
@@ -22060,6 +22148,148 @@ const SimpleSelect = forwardRef(
|
|
|
22060
22148
|
] });
|
|
22061
22149
|
}
|
|
22062
22150
|
);
|
|
22151
|
+
const MultiSelectOption = forwardRef(function MultiSelectOption2(option, forwardedRef) {
|
|
22152
|
+
const id = useId();
|
|
22153
|
+
const {
|
|
22154
|
+
label: label2,
|
|
22155
|
+
value,
|
|
22156
|
+
enabled: enabled2 = true,
|
|
22157
|
+
keywords,
|
|
22158
|
+
readOnly: readOnly2,
|
|
22159
|
+
children,
|
|
22160
|
+
isHighlighted = false,
|
|
22161
|
+
itemIndex
|
|
22162
|
+
} = option;
|
|
22163
|
+
const {
|
|
22164
|
+
value: selectedValue,
|
|
22165
|
+
onChange,
|
|
22166
|
+
multiSelect,
|
|
22167
|
+
setOpen,
|
|
22168
|
+
setSelectedIndex,
|
|
22169
|
+
optionRenderer
|
|
22170
|
+
} = useSelect();
|
|
22171
|
+
const selected2 = useMemo(() => {
|
|
22172
|
+
return Array.isArray(selectedValue) && multiSelect ? selectedValue.map((v) => String(v)).includes(value) : String(selectedValue) === String(value);
|
|
22173
|
+
}, [selectedValue, value, multiSelect]);
|
|
22174
|
+
const handleClick = () => {
|
|
22175
|
+
if (readOnly2) {
|
|
22176
|
+
setOpen(false);
|
|
22177
|
+
return;
|
|
22178
|
+
}
|
|
22179
|
+
if (enabled2) {
|
|
22180
|
+
onChange(value);
|
|
22181
|
+
}
|
|
22182
|
+
};
|
|
22183
|
+
return /* @__PURE__ */ jsx(
|
|
22184
|
+
"div",
|
|
22185
|
+
{
|
|
22186
|
+
id,
|
|
22187
|
+
ref: forwardedRef,
|
|
22188
|
+
role: "option",
|
|
22189
|
+
"aria-disabled": !enabled2,
|
|
22190
|
+
"aria-selected": selected2,
|
|
22191
|
+
className: classnames(styles$O.multiSelectOption, {
|
|
22192
|
+
[styles$O.disabledOption]: !enabled2,
|
|
22193
|
+
[styles$O.highlighted]: isHighlighted
|
|
22194
|
+
}),
|
|
22195
|
+
onMouseDown: (e) => {
|
|
22196
|
+
e.preventDefault();
|
|
22197
|
+
e.stopPropagation();
|
|
22198
|
+
},
|
|
22199
|
+
onMouseEnter: () => {
|
|
22200
|
+
if (itemIndex !== void 0 && setSelectedIndex && enabled2) {
|
|
22201
|
+
setSelectedIndex(itemIndex);
|
|
22202
|
+
}
|
|
22203
|
+
},
|
|
22204
|
+
onClick: handleClick,
|
|
22205
|
+
"data-state": selected2 ? "checked" : void 0,
|
|
22206
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$O.multiSelectOptionContent, children: optionRenderer ? optionRenderer({ label: label2, value, enabled: enabled2, keywords }, selectedValue, false) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22207
|
+
children || label2,
|
|
22208
|
+
selected2 && /* @__PURE__ */ jsx(Icon$l, { name: "checkmark" })
|
|
22209
|
+
] }) })
|
|
22210
|
+
}
|
|
22211
|
+
);
|
|
22212
|
+
});
|
|
22213
|
+
const defaultProps$L = {
|
|
22214
|
+
enabled: true,
|
|
22215
|
+
placeholder: "",
|
|
22216
|
+
autoFocus: false,
|
|
22217
|
+
searchable: false,
|
|
22218
|
+
multiSelect: false,
|
|
22219
|
+
required: false,
|
|
22220
|
+
inProgress: false,
|
|
22221
|
+
inProgressNotificationMessage: "",
|
|
22222
|
+
readOnly: false,
|
|
22223
|
+
validationStatus: "none"
|
|
22224
|
+
};
|
|
22225
|
+
const SelectTriggerValue = ({
|
|
22226
|
+
value,
|
|
22227
|
+
placeholder: placeholder2,
|
|
22228
|
+
readOnly: readOnly2,
|
|
22229
|
+
multiSelect,
|
|
22230
|
+
options: options2,
|
|
22231
|
+
valueRenderer,
|
|
22232
|
+
toggleOption
|
|
22233
|
+
}) => {
|
|
22234
|
+
if (multiSelect) {
|
|
22235
|
+
if (Array.isArray(value) && value.length > 0) {
|
|
22236
|
+
return /* @__PURE__ */ jsx("div", { className: styles$O.badgeListContainer, children: /* @__PURE__ */ jsx("div", { className: styles$O.badgeList, children: value.map(
|
|
22237
|
+
(v) => {
|
|
22238
|
+
var _a2;
|
|
22239
|
+
return valueRenderer ? valueRenderer(
|
|
22240
|
+
Array.from(options2).find((o) => o.value === `${v}`),
|
|
22241
|
+
() => {
|
|
22242
|
+
toggleOption(v);
|
|
22243
|
+
}
|
|
22244
|
+
) : /* @__PURE__ */ jsxs("span", { className: styles$O.badge, children: [
|
|
22245
|
+
(_a2 = Array.from(options2).find((o) => o.value === `${v}`)) == null ? void 0 : _a2.label,
|
|
22246
|
+
/* @__PURE__ */ jsx(
|
|
22247
|
+
Icon$l,
|
|
22248
|
+
{
|
|
22249
|
+
name: "close",
|
|
22250
|
+
size: "sm",
|
|
22251
|
+
onClick: (event) => {
|
|
22252
|
+
event.stopPropagation();
|
|
22253
|
+
toggleOption(v);
|
|
22254
|
+
}
|
|
22255
|
+
}
|
|
22256
|
+
)
|
|
22257
|
+
] }, v);
|
|
22258
|
+
}
|
|
22259
|
+
) }) });
|
|
22260
|
+
}
|
|
22261
|
+
return /* @__PURE__ */ jsx("span", { placeholder: placeholder2, className: styles$O.placeholder, children: placeholder2 });
|
|
22262
|
+
}
|
|
22263
|
+
if (value !== void 0 && value !== null && value !== "") {
|
|
22264
|
+
const selectedOption = Array.from(options2).find((o) => o.value === value);
|
|
22265
|
+
return /* @__PURE__ */ jsx("div", { className: styles$O.selectValue, children: selectedOption == null ? void 0 : selectedOption.label });
|
|
22266
|
+
}
|
|
22267
|
+
return /* @__PURE__ */ jsx("div", { "aria-placeholder": placeholder2, className: styles$O.placeholder, children: readOnly2 ? "" : placeholder2 || "" });
|
|
22268
|
+
};
|
|
22269
|
+
const SelectTriggerActions = ({
|
|
22270
|
+
value,
|
|
22271
|
+
multiSelect,
|
|
22272
|
+
enabled: enabled2,
|
|
22273
|
+
readOnly: readOnly2,
|
|
22274
|
+
clearValue,
|
|
22275
|
+
showChevron = true
|
|
22276
|
+
}) => {
|
|
22277
|
+
const hasValue = multiSelect ? Array.isArray(value) && value.length > 0 : value !== void 0 && value !== null && value !== "";
|
|
22278
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$O.actions, children: [
|
|
22279
|
+
hasValue && enabled2 && !readOnly2 && /* @__PURE__ */ jsx(
|
|
22280
|
+
"span",
|
|
22281
|
+
{
|
|
22282
|
+
className: styles$O.action,
|
|
22283
|
+
onClick: (event) => {
|
|
22284
|
+
event.stopPropagation();
|
|
22285
|
+
clearValue();
|
|
22286
|
+
},
|
|
22287
|
+
children: /* @__PURE__ */ jsx(Icon$l, { name: "close" })
|
|
22288
|
+
}
|
|
22289
|
+
),
|
|
22290
|
+
showChevron && /* @__PURE__ */ jsx("span", { className: styles$O.action, children: /* @__PURE__ */ jsx(Icon$l, { name: "chevrondown" }) })
|
|
22291
|
+
] });
|
|
22292
|
+
};
|
|
22063
22293
|
const Select = forwardRef(function Select2({
|
|
22064
22294
|
// Basic props
|
|
22065
22295
|
id,
|
|
@@ -22095,7 +22325,6 @@ const Select = forwardRef(function Select2({
|
|
|
22095
22325
|
children,
|
|
22096
22326
|
...rest
|
|
22097
22327
|
}, forwardedRef) {
|
|
22098
|
-
var _a2;
|
|
22099
22328
|
const [referenceElement, setReferenceElement] = useState(null);
|
|
22100
22329
|
const [open, setOpen] = useState(false);
|
|
22101
22330
|
const [width, setWidth] = useState(0);
|
|
@@ -22103,22 +22332,40 @@ const Select = forwardRef(function Select2({
|
|
|
22103
22332
|
const { root: root2 } = useTheme();
|
|
22104
22333
|
const [options2, setOptions] = useState(/* @__PURE__ */ new Set());
|
|
22105
22334
|
const isInForm = useIsInsideForm();
|
|
22335
|
+
const [searchTerm, setSearchTerm] = useState("");
|
|
22336
|
+
const [selectedIndex, setSelectedIndex] = useState(-1);
|
|
22337
|
+
const filteredOptions = useMemo(() => {
|
|
22338
|
+
if (!searchTerm || searchTerm.trim() === "") {
|
|
22339
|
+
return Array.from(options2);
|
|
22340
|
+
}
|
|
22341
|
+
const searchLower = searchTerm.toLowerCase();
|
|
22342
|
+
return Array.from(options2).filter((option) => {
|
|
22343
|
+
const extendedValue = option.value + " " + option.label + " " + (option.keywords || []).join(" ");
|
|
22344
|
+
return extendedValue.toLowerCase().includes(searchLower);
|
|
22345
|
+
});
|
|
22346
|
+
}, [options2, searchTerm]);
|
|
22347
|
+
useEffect(() => {
|
|
22348
|
+
if (!open) {
|
|
22349
|
+
setSelectedIndex(-1);
|
|
22350
|
+
setSearchTerm("");
|
|
22351
|
+
}
|
|
22352
|
+
}, [open]);
|
|
22106
22353
|
useEffect(() => {
|
|
22107
22354
|
if (initialValue !== void 0) {
|
|
22108
22355
|
updateState({ value: initialValue }, { initial: true });
|
|
22109
22356
|
}
|
|
22110
22357
|
}, [initialValue, updateState]);
|
|
22111
22358
|
useEffect(() => {
|
|
22112
|
-
var
|
|
22359
|
+
var _a2;
|
|
22113
22360
|
const current = referenceElement;
|
|
22114
|
-
(
|
|
22361
|
+
(_a2 = observer.current) == null ? void 0 : _a2.disconnect();
|
|
22115
22362
|
if (current) {
|
|
22116
22363
|
observer.current = new ResizeObserver(() => setWidth(current.clientWidth));
|
|
22117
22364
|
observer.current.observe(current);
|
|
22118
22365
|
}
|
|
22119
22366
|
return () => {
|
|
22120
|
-
var
|
|
22121
|
-
(
|
|
22367
|
+
var _a3;
|
|
22368
|
+
(_a3 = observer.current) == null ? void 0 : _a3.disconnect();
|
|
22122
22369
|
};
|
|
22123
22370
|
}, [referenceElement]);
|
|
22124
22371
|
const toggleOption = useCallback(
|
|
@@ -22137,6 +22384,84 @@ const Select = forwardRef(function Select2({
|
|
|
22137
22384
|
updateState({ value: newValue });
|
|
22138
22385
|
onDidChange(newValue);
|
|
22139
22386
|
}, [multiSelect, updateState, onDidChange]);
|
|
22387
|
+
const findNextEnabledIndex = useCallback(
|
|
22388
|
+
(currentIndex) => {
|
|
22389
|
+
for (let i = currentIndex + 1; i < filteredOptions.length; i++) {
|
|
22390
|
+
const item2 = filteredOptions[i];
|
|
22391
|
+
if (item2.enabled !== false) {
|
|
22392
|
+
return i;
|
|
22393
|
+
}
|
|
22394
|
+
}
|
|
22395
|
+
for (let i = 0; i <= currentIndex; i++) {
|
|
22396
|
+
const item2 = filteredOptions[i];
|
|
22397
|
+
if (item2.enabled !== false) {
|
|
22398
|
+
return i;
|
|
22399
|
+
}
|
|
22400
|
+
}
|
|
22401
|
+
return -1;
|
|
22402
|
+
},
|
|
22403
|
+
[filteredOptions]
|
|
22404
|
+
);
|
|
22405
|
+
const findPreviousEnabledIndex = useCallback(
|
|
22406
|
+
(currentIndex) => {
|
|
22407
|
+
for (let i = currentIndex - 1; i >= 0; i--) {
|
|
22408
|
+
const item2 = filteredOptions[i];
|
|
22409
|
+
if (item2.enabled !== false) {
|
|
22410
|
+
return i;
|
|
22411
|
+
}
|
|
22412
|
+
}
|
|
22413
|
+
for (let i = filteredOptions.length - 1; i >= currentIndex; i--) {
|
|
22414
|
+
const item2 = filteredOptions[i];
|
|
22415
|
+
if (item2.enabled !== false) {
|
|
22416
|
+
return i;
|
|
22417
|
+
}
|
|
22418
|
+
}
|
|
22419
|
+
return -1;
|
|
22420
|
+
},
|
|
22421
|
+
[filteredOptions]
|
|
22422
|
+
);
|
|
22423
|
+
const handleKeyDown = useCallback(
|
|
22424
|
+
(event) => {
|
|
22425
|
+
if (!open) return;
|
|
22426
|
+
switch (event.key) {
|
|
22427
|
+
case "ArrowDown":
|
|
22428
|
+
event.preventDefault();
|
|
22429
|
+
setSelectedIndex((prev) => {
|
|
22430
|
+
const nextIndex = findNextEnabledIndex(prev);
|
|
22431
|
+
return nextIndex !== -1 ? nextIndex : prev;
|
|
22432
|
+
});
|
|
22433
|
+
break;
|
|
22434
|
+
case "ArrowUp":
|
|
22435
|
+
event.preventDefault();
|
|
22436
|
+
setSelectedIndex((prev) => {
|
|
22437
|
+
const prevIndex = findPreviousEnabledIndex(prev);
|
|
22438
|
+
return prevIndex !== -1 ? prevIndex : prev;
|
|
22439
|
+
});
|
|
22440
|
+
break;
|
|
22441
|
+
case "Enter":
|
|
22442
|
+
event.preventDefault();
|
|
22443
|
+
if (selectedIndex >= 0 && selectedIndex < filteredOptions.length) {
|
|
22444
|
+
const selectedItem = filteredOptions[selectedIndex];
|
|
22445
|
+
if (selectedItem.enabled !== false) {
|
|
22446
|
+
toggleOption(selectedItem.value);
|
|
22447
|
+
}
|
|
22448
|
+
}
|
|
22449
|
+
break;
|
|
22450
|
+
case "Escape":
|
|
22451
|
+
event.preventDefault();
|
|
22452
|
+
setOpen(false);
|
|
22453
|
+
break;
|
|
22454
|
+
}
|
|
22455
|
+
},
|
|
22456
|
+
[
|
|
22457
|
+
open,
|
|
22458
|
+
selectedIndex,
|
|
22459
|
+
filteredOptions,
|
|
22460
|
+
toggleOption,
|
|
22461
|
+
findNextEnabledIndex,
|
|
22462
|
+
findPreviousEnabledIndex
|
|
22463
|
+
]
|
|
22464
|
+
);
|
|
22140
22465
|
const focus = useCallback(() => {
|
|
22141
22466
|
referenceElement == null ? void 0 : referenceElement.focus();
|
|
22142
22467
|
}, [referenceElement]);
|
|
@@ -22188,14 +22513,15 @@ const Select = forwardRef(function Select2({
|
|
|
22188
22513
|
value,
|
|
22189
22514
|
onChange: toggleOption,
|
|
22190
22515
|
setOpen,
|
|
22516
|
+
setSelectedIndex,
|
|
22191
22517
|
options: options2,
|
|
22192
22518
|
optionRenderer
|
|
22193
22519
|
}),
|
|
22194
|
-
[multiSelect, toggleOption, value, options2]
|
|
22520
|
+
[multiSelect, toggleOption, value, options2, optionRenderer]
|
|
22195
22521
|
);
|
|
22196
22522
|
return /* @__PURE__ */ jsx(SelectContext.Provider, { value: selectContextValue, children: /* @__PURE__ */ jsx(OptionContext.Provider, { value: optionContextValue, children: searchable || multiSelect ? /* @__PURE__ */ jsxs(OptionTypeProvider, { Component: HiddenOption, children: [
|
|
22197
22523
|
/* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, modal: false, children: [
|
|
22198
|
-
/* @__PURE__ */
|
|
22524
|
+
/* @__PURE__ */ jsxs(
|
|
22199
22525
|
PopoverTrigger,
|
|
22200
22526
|
{
|
|
22201
22527
|
...rest,
|
|
@@ -22221,45 +22547,30 @@ const Select = forwardRef(function Select2({
|
|
|
22221
22547
|
className
|
|
22222
22548
|
),
|
|
22223
22549
|
autoFocus,
|
|
22224
|
-
children:
|
|
22225
|
-
|
|
22226
|
-
|
|
22227
|
-
|
|
22228
|
-
|
|
22229
|
-
|
|
22230
|
-
|
|
22231
|
-
|
|
22232
|
-
|
|
22233
|
-
|
|
22234
|
-
|
|
22235
|
-
/* @__PURE__ */ jsx(
|
|
22236
|
-
Icon$l,
|
|
22237
|
-
{
|
|
22238
|
-
name: "close",
|
|
22239
|
-
size: "sm",
|
|
22240
|
-
onClick: (event) => {
|
|
22241
|
-
event.stopPropagation();
|
|
22242
|
-
toggleOption(v);
|
|
22243
|
-
}
|
|
22244
|
-
}
|
|
22245
|
-
)
|
|
22246
|
-
] }, v);
|
|
22550
|
+
children: [
|
|
22551
|
+
/* @__PURE__ */ jsx(
|
|
22552
|
+
SelectTriggerValue,
|
|
22553
|
+
{
|
|
22554
|
+
value,
|
|
22555
|
+
placeholder: placeholder2,
|
|
22556
|
+
readOnly: readOnly2,
|
|
22557
|
+
multiSelect,
|
|
22558
|
+
options: options2,
|
|
22559
|
+
valueRenderer,
|
|
22560
|
+
toggleOption
|
|
22247
22561
|
}
|
|
22248
|
-
)
|
|
22249
|
-
/* @__PURE__ */
|
|
22250
|
-
|
|
22251
|
-
|
|
22252
|
-
|
|
22253
|
-
|
|
22254
|
-
|
|
22255
|
-
|
|
22256
|
-
|
|
22257
|
-
|
|
22258
|
-
|
|
22259
|
-
|
|
22260
|
-
/* @__PURE__ */ jsx(Icon$l, { name: "chevrondown" })
|
|
22261
|
-
] })
|
|
22262
|
-
] })
|
|
22562
|
+
),
|
|
22563
|
+
/* @__PURE__ */ jsx(
|
|
22564
|
+
SelectTriggerActions,
|
|
22565
|
+
{
|
|
22566
|
+
value,
|
|
22567
|
+
multiSelect,
|
|
22568
|
+
enabled: enabled2,
|
|
22569
|
+
readOnly: readOnly2,
|
|
22570
|
+
clearValue
|
|
22571
|
+
}
|
|
22572
|
+
)
|
|
22573
|
+
]
|
|
22263
22574
|
}
|
|
22264
22575
|
),
|
|
22265
22576
|
open && /* @__PURE__ */ jsx(Portal$1, { container: root2, children: /* @__PURE__ */ jsx(FocusScope, { asChild: true, loop: true, trapped: true, children: /* @__PURE__ */ jsx(
|
|
@@ -22267,50 +22578,40 @@ const Select = forwardRef(function Select2({
|
|
|
22267
22578
|
{
|
|
22268
22579
|
style: { minWidth: width, height: dropdownHeight },
|
|
22269
22580
|
className: styles$O.selectContent,
|
|
22270
|
-
|
|
22271
|
-
|
|
22272
|
-
{
|
|
22273
|
-
|
|
22274
|
-
|
|
22275
|
-
|
|
22276
|
-
|
|
22277
|
-
|
|
22278
|
-
|
|
22581
|
+
onKeyDown: handleKeyDown,
|
|
22582
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles$O.command, children: [
|
|
22583
|
+
searchable ? /* @__PURE__ */ jsxs("div", { className: styles$O.commandInputContainer, children: [
|
|
22584
|
+
/* @__PURE__ */ jsx(Icon$l, { name: "search" }),
|
|
22585
|
+
/* @__PURE__ */ jsx(
|
|
22586
|
+
"input",
|
|
22587
|
+
{
|
|
22588
|
+
role: "combobox",
|
|
22589
|
+
className: classnames(styles$O.commandInput),
|
|
22590
|
+
placeholder: "Search...",
|
|
22591
|
+
value: searchTerm,
|
|
22592
|
+
onChange: (e) => setSearchTerm(e.target.value),
|
|
22593
|
+
autoFocus: true
|
|
22279
22594
|
}
|
|
22280
|
-
|
|
22281
|
-
|
|
22282
|
-
|
|
22283
|
-
|
|
22284
|
-
|
|
22285
|
-
|
|
22286
|
-
|
|
22287
|
-
|
|
22288
|
-
|
|
22289
|
-
|
|
22290
|
-
|
|
22291
|
-
|
|
22292
|
-
|
|
22293
|
-
|
|
22294
|
-
|
|
22295
|
-
|
|
22296
|
-
|
|
22297
|
-
|
|
22298
|
-
|
|
22299
|
-
|
|
22300
|
-
{
|
|
22301
|
-
readOnly: readOnly2,
|
|
22302
|
-
value: value2,
|
|
22303
|
-
label: label2,
|
|
22304
|
-
enabled: enabled22,
|
|
22305
|
-
keywords
|
|
22306
|
-
},
|
|
22307
|
-
value2
|
|
22308
|
-
)),
|
|
22309
|
-
!inProgress && /* @__PURE__ */ jsx(CommandEmpty, { children: emptyListNode })
|
|
22310
|
-
] })
|
|
22311
|
-
]
|
|
22312
|
-
}
|
|
22313
|
-
)
|
|
22595
|
+
)
|
|
22596
|
+
] }) : /* @__PURE__ */ jsx("button", { autoFocus: true, "aria-hidden": "true", className: styles$O.srOnly }),
|
|
22597
|
+
/* @__PURE__ */ jsxs("div", { role: "listbox", className: styles$O.commandList, children: [
|
|
22598
|
+
inProgress && /* @__PURE__ */ jsx("div", { className: styles$O.loading, children: inProgressNotificationMessage }),
|
|
22599
|
+
filteredOptions.map(({ value: value2, label: label2, enabled: enabled22, keywords }, index) => /* @__PURE__ */ jsx(
|
|
22600
|
+
MultiSelectOption,
|
|
22601
|
+
{
|
|
22602
|
+
readOnly: readOnly2,
|
|
22603
|
+
value: value2,
|
|
22604
|
+
label: label2,
|
|
22605
|
+
enabled: enabled22,
|
|
22606
|
+
keywords,
|
|
22607
|
+
isHighlighted: selectedIndex === index,
|
|
22608
|
+
itemIndex: index
|
|
22609
|
+
},
|
|
22610
|
+
value2
|
|
22611
|
+
)),
|
|
22612
|
+
!inProgress && filteredOptions.length === 0 && /* @__PURE__ */ jsx("div", { children: emptyListNode })
|
|
22613
|
+
] })
|
|
22614
|
+
] })
|
|
22314
22615
|
}
|
|
22315
22616
|
) }) })
|
|
22316
22617
|
] }),
|
|
@@ -22341,104 +22642,6 @@ const Select = forwardRef(function Select2({
|
|
|
22341
22642
|
children
|
|
22342
22643
|
) }) }) });
|
|
22343
22644
|
});
|
|
22344
|
-
const ComboboxOption = forwardRef(function Combobox(option, forwardedRef) {
|
|
22345
|
-
const id = useId();
|
|
22346
|
-
const { label: label2, value, enabled: enabled2 = true, keywords, readOnly: readOnly2, children } = option;
|
|
22347
|
-
const { value: selectedValue, onChange, multiSelect, setOpen, optionRenderer } = useSelect();
|
|
22348
|
-
const selected2 = useMemo(() => {
|
|
22349
|
-
return Array.isArray(selectedValue) && multiSelect ? selectedValue.map((v) => String(v)).includes(value) : String(selectedValue) === String(value);
|
|
22350
|
-
}, [selectedValue, value, multiSelect]);
|
|
22351
|
-
return /* @__PURE__ */ jsx(
|
|
22352
|
-
CommandItem,
|
|
22353
|
-
{
|
|
22354
|
-
id,
|
|
22355
|
-
ref: forwardedRef,
|
|
22356
|
-
disabled: !enabled2,
|
|
22357
|
-
value,
|
|
22358
|
-
className: styles$O.multiComboboxOption,
|
|
22359
|
-
onSelect: () => {
|
|
22360
|
-
if (readOnly2) {
|
|
22361
|
-
setOpen(false);
|
|
22362
|
-
return;
|
|
22363
|
-
}
|
|
22364
|
-
onChange(value);
|
|
22365
|
-
},
|
|
22366
|
-
onClick: (event) => {
|
|
22367
|
-
event.stopPropagation();
|
|
22368
|
-
},
|
|
22369
|
-
"data-state": selected2 ? "checked" : void 0,
|
|
22370
|
-
keywords: [...keywords, label2],
|
|
22371
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$O.multiComboboxOptionContent, children: optionRenderer ? optionRenderer({ label: label2, value, enabled: enabled2, keywords }, selectedValue, false) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22372
|
-
children || label2,
|
|
22373
|
-
selected2 && /* @__PURE__ */ jsx(Icon$l, { name: "checkmark" })
|
|
22374
|
-
] }) })
|
|
22375
|
-
},
|
|
22376
|
-
id
|
|
22377
|
-
);
|
|
22378
|
-
});
|
|
22379
|
-
const SelectOption = React__default.forwardRef(
|
|
22380
|
-
(option, ref) => {
|
|
22381
|
-
var _a2;
|
|
22382
|
-
const visibleContentRef = useRef(null);
|
|
22383
|
-
const { value, label: label2, enabled: enabled2 = true, children, className } = option;
|
|
22384
|
-
const { value: selectedValue, optionRenderer } = useSelect();
|
|
22385
|
-
const { onOptionRemove, onOptionAdd } = useOption();
|
|
22386
|
-
const opt = useMemo(() => {
|
|
22387
|
-
var _a3, _b;
|
|
22388
|
-
return {
|
|
22389
|
-
...option,
|
|
22390
|
-
label: label2 ?? ((_a3 = visibleContentRef.current) == null ? void 0 : _a3.textContent) ?? "",
|
|
22391
|
-
keywords: [label2 ?? ((_b = visibleContentRef.current) == null ? void 0 : _b.textContent) ?? ""]
|
|
22392
|
-
// Store the rendered ReactNode for dropdown display
|
|
22393
|
-
};
|
|
22394
|
-
}, [option, label2, visibleContentRef.current]);
|
|
22395
|
-
useEffect(() => {
|
|
22396
|
-
onOptionAdd(opt);
|
|
22397
|
-
return () => onOptionRemove(opt);
|
|
22398
|
-
}, [opt, onOptionAdd, onOptionRemove]);
|
|
22399
|
-
return /* @__PURE__ */ jsxs(
|
|
22400
|
-
Item$1,
|
|
22401
|
-
{
|
|
22402
|
-
ref,
|
|
22403
|
-
className: classnames(styles$O.selectItem, className),
|
|
22404
|
-
value,
|
|
22405
|
-
textValue: label2 || ((_a2 = visibleContentRef.current) == null ? void 0 : _a2.textContent),
|
|
22406
|
-
disabled: !enabled2,
|
|
22407
|
-
onClick: (event) => {
|
|
22408
|
-
event.stopPropagation();
|
|
22409
|
-
},
|
|
22410
|
-
onMouseEnter: (event) => {
|
|
22411
|
-
const target2 = event.currentTarget;
|
|
22412
|
-
target2.setAttribute("data-highlighted", "");
|
|
22413
|
-
},
|
|
22414
|
-
onMouseLeave: (event) => {
|
|
22415
|
-
const target2 = event.currentTarget;
|
|
22416
|
-
target2.removeAttribute("data-highlighted");
|
|
22417
|
-
},
|
|
22418
|
-
"data-state": selectedValue === value && "checked",
|
|
22419
|
-
children: [
|
|
22420
|
-
/* @__PURE__ */ jsx("span", { style: { display: "none" }, children: /* @__PURE__ */ jsx(ItemText, { children: label2 }) }),
|
|
22421
|
-
children ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22422
|
-
/* @__PURE__ */ jsx("div", { className: styles$O.selectItemContent, ref: visibleContentRef, children }),
|
|
22423
|
-
selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$O.selectItemIndicator, children: /* @__PURE__ */ jsx(Icon$l, { name: "checkmark" }) })
|
|
22424
|
-
] }) : optionRenderer ? /* @__PURE__ */ jsx("div", { className: styles$O.selectItemContent, ref: visibleContentRef, children: optionRenderer(
|
|
22425
|
-
{
|
|
22426
|
-
label: label2,
|
|
22427
|
-
value,
|
|
22428
|
-
enabled: enabled2
|
|
22429
|
-
},
|
|
22430
|
-
selectedValue,
|
|
22431
|
-
false
|
|
22432
|
-
) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22433
|
-
/* @__PURE__ */ jsx("div", { className: styles$O.selectItemContent, ref: visibleContentRef, children: label2 }),
|
|
22434
|
-
selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$O.selectItemIndicator, children: /* @__PURE__ */ jsx(Icon$l, { name: "checkmark" }) })
|
|
22435
|
-
] })
|
|
22436
|
-
]
|
|
22437
|
-
}
|
|
22438
|
-
);
|
|
22439
|
-
}
|
|
22440
|
-
);
|
|
22441
|
-
SelectOption.displayName = "SelectOption";
|
|
22442
22645
|
const themeVars$x = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "borderWidth-RadioGroupOption": "var(--xmlui-borderWidth-RadioGroupOption)", "borderWidth-RadioGroupOption-validation": "var(--xmlui-borderWidth-RadioGroupOption-validation)", "Input:borderColor-RadioGroupOption-default": "var(--xmlui-borderColor-RadioGroupOption-default)", "Input:borderColor-checked-RadioGroupOption": "var(--xmlui-borderColor-checked-RadioGroupOption)", "Input:borderColor-RadioGroupOption-default--hover": "var(--xmlui-borderColor-RadioGroupOption-default--hover)", "Input:borderColor-RadioGroupOption-default--active": "var(--xmlui-borderColor-RadioGroupOption-default--active)", "Input:borderColor-RadioGroupOption--disabled": "var(--xmlui-borderColor-RadioGroupOption--disabled)", "Input:borderColor-RadioGroupOption-error": "var(--xmlui-borderColor-RadioGroupOption-error)", "Input:borderColor-RadioGroupOption-warning": "var(--xmlui-borderColor-RadioGroupOption-warning)", "Input:borderColor-RadioGroupOption-success": "var(--xmlui-borderColor-RadioGroupOption-success)", "Input:backgroundColor-RadioGroupOption-default": "var(--xmlui-backgroundColor-RadioGroupOption-default)", "Input:backgroundColor-checked-RadioGroupOption": "var(--xmlui-backgroundColor-checked-RadioGroupOption)", "Input:backgroundColor-checked-RadioGroupOption--disabled": "var(--xmlui-backgroundColor-checked-RadioGroupOption--disabled)", "Input:color-RadioGroupOption--disabled": "var(--xmlui-color-RadioGroupOption--disabled)", "Input:fontSize-RadioGroupOption": "var(--xmlui-fontSize-RadioGroupOption)", "Input:fontWeight-RadioGroupOption": "var(--xmlui-fontWeight-RadioGroupOption)", "Input:textColor-RadioGroupOption-default": "var(--xmlui-textColor-RadioGroupOption-default)", "Input:textColor-RadioGroupOption-error": "var(--xmlui-textColor-RadioGroupOption-error)", "Input:textColor-RadioGroupOption-warning": "var(--xmlui-textColor-RadioGroupOption-warning)", "Input:textColor-RadioGroupOption-success": "var(--xmlui-textColor-RadioGroupOption-success)", "Input:outlineWidth-RadioGroupOption--focus": "var(--xmlui-outlineWidth-RadioGroupOption--focus)", "Input:outlineColor-RadioGroupOption--focus": "var(--xmlui-outlineColor-RadioGroupOption--focus)", "Input:outlineStyle-RadioGroupOption--focus": "var(--xmlui-outlineStyle-RadioGroupOption--focus)", "Input:outlineOffset-RadioGroupOption--focus": "var(--xmlui-outlineOffset-RadioGroupOption--focus)"}'`;
|
|
22443
22646
|
const radioGroupContainer = "_radioGroupContainer_fn2iu_14";
|
|
22444
22647
|
const radioOptionContainer = "_radioOptionContainer_fn2iu_20";
|
|
@@ -22987,24 +23190,25 @@ const TextArea = forwardRef(function TextArea2({
|
|
|
22987
23190
|
}
|
|
22988
23191
|
);
|
|
22989
23192
|
});
|
|
22990
|
-
const themeVars$v = `'{"border-AutoComplete": "var(--xmlui-border-AutoComplete)", "borderHorizontal-AutoComplete": "var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete))", "borderVertical-AutoComplete": "var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete))", "borderLeft-AutoComplete": "var(--xmlui-borderLeft-AutoComplete, var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderRight-AutoComplete": "var(--xmlui-borderRight-AutoComplete, var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderTop-AutoComplete": "var(--xmlui-borderTop-AutoComplete, var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderBottom-AutoComplete": "var(--xmlui-borderBottom-AutoComplete, var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderWidth-AutoComplete": "var(--xmlui-borderWidth-AutoComplete)", "borderHorizontalWidth-AutoComplete": "var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete))", "borderLeftWidth-AutoComplete": "var(--xmlui-borderLeftWidth-AutoComplete, var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderRightWidth-AutoComplete": "var(--xmlui-borderRightWidth-AutoComplete, var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderVerticalWidth-AutoComplete": "var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete))", "borderTopWidth-AutoComplete": "var(--xmlui-borderTopWidth-AutoComplete, var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderBottomWidth-AutoComplete": "var(--xmlui-borderBottomWidth-AutoComplete, var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderStyle-AutoComplete": "var(--xmlui-borderStyle-AutoComplete)", "borderHorizontalStyle-AutoComplete": "var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete))", "borderLeftStyle-AutoComplete": "var(--xmlui-borderLeftStyle-AutoComplete, var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderRightStyle-AutoComplete": "var(--xmlui-borderRightStyle-AutoComplete, var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderVerticalStyle-AutoComplete": "var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete))", "borderTopStyle-AutoComplete": "var(--xmlui-borderTopStyle-AutoComplete, var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderBottomStyle-AutoComplete": "var(--xmlui-borderBottomStyle-AutoComplete, var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderColor-AutoComplete": "var(--xmlui-borderColor-AutoComplete)", "borderHorizontalColor-AutoComplete": "var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete))", "borderLeftColor-AutoComplete": "var(--xmlui-borderLeftColor-AutoComplete, var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderRightColor-AutoComplete": "var(--xmlui-borderRightColor-AutoComplete, var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderVerticalColor-AutoComplete": "var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete))", "borderTopColor-AutoComplete": "var(--xmlui-borderTopColor-AutoComplete, var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderBottomColor-AutoComplete": "var(--xmlui-borderBottomColor-AutoComplete, var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderStartStartRadius-AutoComplete": "var(--xmlui-borderStartStartRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderStartEndRadius-AutoComplete": "var(--xmlui-borderStartEndRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderEndStartRadius-AutoComplete": "var(--xmlui-borderEndStartRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderEndEndRadius-AutoComplete": "var(--xmlui-borderEndEndRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "padding-AutoComplete": "var(--xmlui-padding-AutoComplete)", "paddingHorizontal-AutoComplete": "var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete))", "paddingVertical-AutoComplete": "var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete))", "paddingLeft-AutoComplete": "var(--xmlui-paddingLeft-AutoComplete, var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingRight-AutoComplete": "var(--xmlui-paddingRight-AutoComplete, var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingTop-AutoComplete": "var(--xmlui-paddingTop-AutoComplete, var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingBottom-AutoComplete": "var(--xmlui-paddingBottom-AutoComplete, var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete)))", "Input:borderRadius-AutoComplete-default": "var(--xmlui-borderRadius-AutoComplete-default)", "Input:borderColor-AutoComplete-default": "var(--xmlui-borderColor-AutoComplete-default)", "Input:borderWidth-AutoComplete-default": "var(--xmlui-borderWidth-AutoComplete-default)", "Input:borderStyle-AutoComplete-default": "var(--xmlui-borderStyle-AutoComplete-default)", "Input:fontSize-AutoComplete-default": "var(--xmlui-fontSize-AutoComplete-default)", "Input:backgroundColor-AutoComplete-default": "var(--xmlui-backgroundColor-AutoComplete-default)", "Input:boxShadow-AutoComplete-default": "var(--xmlui-boxShadow-AutoComplete-default)", "Input:textColor-AutoComplete-default": "var(--xmlui-textColor-AutoComplete-default)", "Input:borderColor-AutoComplete-default--hover": "var(--xmlui-borderColor-AutoComplete-default--hover)", "Input:backgroundColor-AutoComplete-default--hover": "var(--xmlui-backgroundColor-AutoComplete-default--hover)", "Input:boxShadow-AutoComplete-default--hover": "var(--xmlui-boxShadow-AutoComplete-default--hover)", "Input:textColor-AutoComplete-default--hover": "var(--xmlui-textColor-AutoComplete-default--hover)", "Input:textColor-placeholder-AutoComplete-default": "var(--xmlui-textColor-placeholder-AutoComplete-default)", "Input:fontSize-placeholder-AutoComplete-default": "var(--xmlui-fontSize-placeholder-AutoComplete-default)", "Input:borderRadius-AutoComplete-error": "var(--xmlui-borderRadius-AutoComplete-error)", "Input:borderColor-AutoComplete-error": "var(--xmlui-borderColor-AutoComplete-error)", "Input:borderWidth-AutoComplete-error": "var(--xmlui-borderWidth-AutoComplete-error)", "Input:borderStyle-AutoComplete-error": "var(--xmlui-borderStyle-AutoComplete-error)", "Input:fontSize-AutoComplete-error": "var(--xmlui-fontSize-AutoComplete-error)", "Input:backgroundColor-AutoComplete-error": "var(--xmlui-backgroundColor-AutoComplete-error)", "Input:boxShadow-AutoComplete-error": "var(--xmlui-boxShadow-AutoComplete-error)", "Input:textColor-AutoComplete-error": "var(--xmlui-textColor-AutoComplete-error)", "Input:borderColor-AutoComplete-error--hover": "var(--xmlui-borderColor-AutoComplete-error--hover)", "Input:backgroundColor-AutoComplete-error--hover": "var(--xmlui-backgroundColor-AutoComplete-error--hover)", "Input:boxShadow-AutoComplete-error--hover": "var(--xmlui-boxShadow-AutoComplete-error--hover)", "Input:textColor-AutoComplete-error--hover": "var(--xmlui-textColor-AutoComplete-error--hover)", "Input:textColor-placeholder-AutoComplete-error": "var(--xmlui-textColor-placeholder-AutoComplete-error)", "Input:fontSize-placeholder-AutoComplete-error": "var(--xmlui-fontSize-placeholder-AutoComplete-error)", "Input:borderRadius-AutoComplete-warning": "var(--xmlui-borderRadius-AutoComplete-warning)", "Input:borderColor-AutoComplete-warning": "var(--xmlui-borderColor-AutoComplete-warning)", "Input:borderWidth-AutoComplete-warning": "var(--xmlui-borderWidth-AutoComplete-warning)", "Input:borderStyle-AutoComplete-warning": "var(--xmlui-borderStyle-AutoComplete-warning)", "Input:fontSize-AutoComplete-warning": "var(--xmlui-fontSize-AutoComplete-warning)", "Input:backgroundColor-AutoComplete-warning": "var(--xmlui-backgroundColor-AutoComplete-warning)", "Input:boxShadow-AutoComplete-warning": "var(--xmlui-boxShadow-AutoComplete-warning)", "Input:textColor-AutoComplete-warning": "var(--xmlui-textColor-AutoComplete-warning)", "Input:borderColor-AutoComplete-warning--hover": "var(--xmlui-borderColor-AutoComplete-warning--hover)", "Input:backgroundColor-AutoComplete-warning--hover": "var(--xmlui-backgroundColor-AutoComplete-warning--hover)", "Input:boxShadow-AutoComplete-warning--hover": "var(--xmlui-boxShadow-AutoComplete-warning--hover)", "Input:textColor-AutoComplete-warning--hover": "var(--xmlui-textColor-AutoComplete-warning--hover)", "Input:textColor-placeholder-AutoComplete-warning": "var(--xmlui-textColor-placeholder-AutoComplete-warning)", "Input:fontSize-placeholder-AutoComplete-warning": "var(--xmlui-fontSize-placeholder-AutoComplete-warning)", "Input:borderRadius-AutoComplete-success": "var(--xmlui-borderRadius-AutoComplete-success)", "Input:borderColor-AutoComplete-success": "var(--xmlui-borderColor-AutoComplete-success)", "Input:borderWidth-AutoComplete-success": "var(--xmlui-borderWidth-AutoComplete-success)", "Input:borderStyle-AutoComplete-success": "var(--xmlui-borderStyle-AutoComplete-success)", "Input:fontSize-AutoComplete-success": "var(--xmlui-fontSize-AutoComplete-success)", "Input:backgroundColor-AutoComplete-success": "var(--xmlui-backgroundColor-AutoComplete-success)", "Input:boxShadow-AutoComplete-success": "var(--xmlui-boxShadow-AutoComplete-success)", "Input:textColor-AutoComplete-success": "var(--xmlui-textColor-AutoComplete-success)", "Input:borderColor-AutoComplete-success--hover": "var(--xmlui-borderColor-AutoComplete-success--hover)", "Input:backgroundColor-AutoComplete-success--hover": "var(--xmlui-backgroundColor-AutoComplete-success--hover)", "Input:boxShadow-AutoComplete-success--hover": "var(--xmlui-boxShadow-AutoComplete-success--hover)", "Input:textColor-AutoComplete-success--hover": "var(--xmlui-textColor-AutoComplete-success--hover)", "Input:textColor-placeholder-AutoComplete-success": "var(--xmlui-textColor-placeholder-AutoComplete-success)", "Input:fontSize-placeholder-AutoComplete-success": "var(--xmlui-fontSize-placeholder-AutoComplete-success)", "Input:backgroundColor-AutoComplete--disabled": "var(--xmlui-backgroundColor-AutoComplete--disabled)", "Input:textColor-AutoComplete--disabled": "var(--xmlui-textColor-AutoComplete--disabled)", "Input:borderColor-AutoComplete--disabled": "var(--xmlui-borderColor-AutoComplete--disabled)", "Input:outlineWidth-AutoComplete--focus": "var(--xmlui-outlineWidth-AutoComplete--focus)", "Input:outlineColor-AutoComplete--focus": "var(--xmlui-outlineColor-AutoComplete--focus)", "Input:outlineStyle-AutoComplete--focus": "var(--xmlui-outlineStyle-AutoComplete--focus)", "Input:outlineOffset-AutoComplete--focus": "var(--xmlui-outlineOffset-AutoComplete--focus)", "paddingVertical-AutoComplete-badge": "var(--xmlui-paddingVertical-AutoComplete-badge)", "paddingHorizontal-AutoComplete-badge": "var(--xmlui-paddingHorizontal-AutoComplete-badge)", "borderRadius-AutoComplete-badge": "var(--xmlui-borderRadius-AutoComplete-badge)", "Input:fontSize-AutoComplete-badge": "var(--xmlui-fontSize-AutoComplete-badge)", "Input:backgroundColor-AutoComplete-badge": "var(--xmlui-backgroundColor-AutoComplete-badge)", "Input:textColor-AutoComplete-badge": "var(--xmlui-textColor-AutoComplete-badge)", "Input:backgroundColor-AutoComplete-badge--hover": "var(--xmlui-backgroundColor-AutoComplete-badge--hover)", "Input:textColor-AutoComplete-badge--hover": "var(--xmlui-textColor-AutoComplete-badge--hover)", "Input:backgroundColor-AutoComplete-badge--active": "var(--xmlui-backgroundColor-AutoComplete-badge--active)", "Input:textColor-AutoComplete-badge--active": "var(--xmlui-textColor-AutoComplete-badge--active)", "Input:textColor-placeholder-AutoComplete": "var(--xmlui-textColor-placeholder-AutoComplete)", "Input:backgroundColor-menu-AutoComplete": "var(--xmlui-backgroundColor-menu-AutoComplete)", "Input:borderRadius-menu-AutoComplete": "var(--xmlui-borderRadius-menu-AutoComplete)", "Input:boxShadow-menu-AutoComplete": "var(--xmlui-boxShadow-menu-AutoComplete)", "backgroundColor-item-AutoComplete": "var(--xmlui-backgroundColor-item-AutoComplete)", "backgroundColor-item-AutoComplete--hover": "var(--xmlui-backgroundColor-item-AutoComplete--hover)", "textColor-item-AutoComplete--disabled": "var(--xmlui-textColor-item-AutoComplete--disabled)"}'`;
|
|
22991
|
-
const command = "
|
|
22992
|
-
const badgeListWrapper = "
|
|
22993
|
-
const error$5 = "
|
|
22994
|
-
const warning$6 = "
|
|
22995
|
-
const valid$5 = "
|
|
22996
|
-
const disabled$5 = "
|
|
22997
|
-
const focused$2 = "
|
|
22998
|
-
const badgeList = "
|
|
22999
|
-
const inputWrapper = "
|
|
23000
|
-
const badge = "
|
|
23001
|
-
const commandInput = "
|
|
23002
|
-
const actions = "
|
|
23003
|
-
const action = "
|
|
23004
|
-
const autoCompleteEmpty = "
|
|
23005
|
-
const commandList = "
|
|
23006
|
-
const autoCompleteOption = "
|
|
23007
|
-
const
|
|
23193
|
+
const themeVars$v = `'{"border-AutoComplete": "var(--xmlui-border-AutoComplete)", "borderHorizontal-AutoComplete": "var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete))", "borderVertical-AutoComplete": "var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete))", "borderLeft-AutoComplete": "var(--xmlui-borderLeft-AutoComplete, var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderRight-AutoComplete": "var(--xmlui-borderRight-AutoComplete, var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderTop-AutoComplete": "var(--xmlui-borderTop-AutoComplete, var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderBottom-AutoComplete": "var(--xmlui-borderBottom-AutoComplete, var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderWidth-AutoComplete": "var(--xmlui-borderWidth-AutoComplete)", "borderHorizontalWidth-AutoComplete": "var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete))", "borderLeftWidth-AutoComplete": "var(--xmlui-borderLeftWidth-AutoComplete, var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderRightWidth-AutoComplete": "var(--xmlui-borderRightWidth-AutoComplete, var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderVerticalWidth-AutoComplete": "var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete))", "borderTopWidth-AutoComplete": "var(--xmlui-borderTopWidth-AutoComplete, var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderBottomWidth-AutoComplete": "var(--xmlui-borderBottomWidth-AutoComplete, var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderStyle-AutoComplete": "var(--xmlui-borderStyle-AutoComplete)", "borderHorizontalStyle-AutoComplete": "var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete))", "borderLeftStyle-AutoComplete": "var(--xmlui-borderLeftStyle-AutoComplete, var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderRightStyle-AutoComplete": "var(--xmlui-borderRightStyle-AutoComplete, var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderVerticalStyle-AutoComplete": "var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete))", "borderTopStyle-AutoComplete": "var(--xmlui-borderTopStyle-AutoComplete, var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderBottomStyle-AutoComplete": "var(--xmlui-borderBottomStyle-AutoComplete, var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderColor-AutoComplete": "var(--xmlui-borderColor-AutoComplete)", "borderHorizontalColor-AutoComplete": "var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete))", "borderLeftColor-AutoComplete": "var(--xmlui-borderLeftColor-AutoComplete, var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderRightColor-AutoComplete": "var(--xmlui-borderRightColor-AutoComplete, var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderVerticalColor-AutoComplete": "var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete))", "borderTopColor-AutoComplete": "var(--xmlui-borderTopColor-AutoComplete, var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderBottomColor-AutoComplete": "var(--xmlui-borderBottomColor-AutoComplete, var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderStartStartRadius-AutoComplete": "var(--xmlui-borderStartStartRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderStartEndRadius-AutoComplete": "var(--xmlui-borderStartEndRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderEndStartRadius-AutoComplete": "var(--xmlui-borderEndStartRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderEndEndRadius-AutoComplete": "var(--xmlui-borderEndEndRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "padding-AutoComplete": "var(--xmlui-padding-AutoComplete)", "paddingHorizontal-AutoComplete": "var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete))", "paddingVertical-AutoComplete": "var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete))", "paddingLeft-AutoComplete": "var(--xmlui-paddingLeft-AutoComplete, var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingRight-AutoComplete": "var(--xmlui-paddingRight-AutoComplete, var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingTop-AutoComplete": "var(--xmlui-paddingTop-AutoComplete, var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingBottom-AutoComplete": "var(--xmlui-paddingBottom-AutoComplete, var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete)))", "padding-item-AutoComplete": "var(--xmlui-padding-item-AutoComplete)", "paddingHorizontal-item-AutoComplete": "var(--xmlui-paddingHorizontal-item-AutoComplete, var(--xmlui-padding-item-AutoComplete))", "paddingVertical-item-AutoComplete": "var(--xmlui-paddingVertical-item-AutoComplete, var(--xmlui-padding-item-AutoComplete))", "paddingLeft-item-AutoComplete": "var(--xmlui-paddingLeft-item-AutoComplete, var(--xmlui-paddingHorizontal-item-AutoComplete, var(--xmlui-padding-item-AutoComplete)))", "paddingRight-item-AutoComplete": "var(--xmlui-paddingRight-item-AutoComplete, var(--xmlui-paddingHorizontal-item-AutoComplete, var(--xmlui-padding-item-AutoComplete)))", "paddingTop-item-AutoComplete": "var(--xmlui-paddingTop-item-AutoComplete, var(--xmlui-paddingVertical-item-AutoComplete, var(--xmlui-padding-item-AutoComplete)))", "paddingBottom-item-AutoComplete": "var(--xmlui-paddingBottom-item-AutoComplete, var(--xmlui-paddingVertical-item-AutoComplete, var(--xmlui-padding-item-AutoComplete)))", "Input:borderRadius-AutoComplete-default": "var(--xmlui-borderRadius-AutoComplete-default)", "Input:borderColor-AutoComplete-default": "var(--xmlui-borderColor-AutoComplete-default)", "Input:borderWidth-AutoComplete-default": "var(--xmlui-borderWidth-AutoComplete-default)", "Input:borderStyle-AutoComplete-default": "var(--xmlui-borderStyle-AutoComplete-default)", "Input:fontSize-AutoComplete-default": "var(--xmlui-fontSize-AutoComplete-default)", "Input:backgroundColor-AutoComplete-default": "var(--xmlui-backgroundColor-AutoComplete-default)", "Input:boxShadow-AutoComplete-default": "var(--xmlui-boxShadow-AutoComplete-default)", "Input:textColor-AutoComplete-default": "var(--xmlui-textColor-AutoComplete-default)", "Input:borderColor-AutoComplete-default--hover": "var(--xmlui-borderColor-AutoComplete-default--hover)", "Input:backgroundColor-AutoComplete-default--hover": "var(--xmlui-backgroundColor-AutoComplete-default--hover)", "Input:boxShadow-AutoComplete-default--hover": "var(--xmlui-boxShadow-AutoComplete-default--hover)", "Input:textColor-AutoComplete-default--hover": "var(--xmlui-textColor-AutoComplete-default--hover)", "Input:textColor-placeholder-AutoComplete-default": "var(--xmlui-textColor-placeholder-AutoComplete-default)", "Input:fontSize-placeholder-AutoComplete-default": "var(--xmlui-fontSize-placeholder-AutoComplete-default)", "Input:borderRadius-AutoComplete-error": "var(--xmlui-borderRadius-AutoComplete-error)", "Input:borderColor-AutoComplete-error": "var(--xmlui-borderColor-AutoComplete-error)", "Input:borderWidth-AutoComplete-error": "var(--xmlui-borderWidth-AutoComplete-error)", "Input:borderStyle-AutoComplete-error": "var(--xmlui-borderStyle-AutoComplete-error)", "Input:fontSize-AutoComplete-error": "var(--xmlui-fontSize-AutoComplete-error)", "Input:backgroundColor-AutoComplete-error": "var(--xmlui-backgroundColor-AutoComplete-error)", "Input:boxShadow-AutoComplete-error": "var(--xmlui-boxShadow-AutoComplete-error)", "Input:textColor-AutoComplete-error": "var(--xmlui-textColor-AutoComplete-error)", "Input:borderColor-AutoComplete-error--hover": "var(--xmlui-borderColor-AutoComplete-error--hover)", "Input:backgroundColor-AutoComplete-error--hover": "var(--xmlui-backgroundColor-AutoComplete-error--hover)", "Input:boxShadow-AutoComplete-error--hover": "var(--xmlui-boxShadow-AutoComplete-error--hover)", "Input:textColor-AutoComplete-error--hover": "var(--xmlui-textColor-AutoComplete-error--hover)", "Input:textColor-placeholder-AutoComplete-error": "var(--xmlui-textColor-placeholder-AutoComplete-error)", "Input:fontSize-placeholder-AutoComplete-error": "var(--xmlui-fontSize-placeholder-AutoComplete-error)", "Input:borderRadius-AutoComplete-warning": "var(--xmlui-borderRadius-AutoComplete-warning)", "Input:borderColor-AutoComplete-warning": "var(--xmlui-borderColor-AutoComplete-warning)", "Input:borderWidth-AutoComplete-warning": "var(--xmlui-borderWidth-AutoComplete-warning)", "Input:borderStyle-AutoComplete-warning": "var(--xmlui-borderStyle-AutoComplete-warning)", "Input:fontSize-AutoComplete-warning": "var(--xmlui-fontSize-AutoComplete-warning)", "Input:backgroundColor-AutoComplete-warning": "var(--xmlui-backgroundColor-AutoComplete-warning)", "Input:boxShadow-AutoComplete-warning": "var(--xmlui-boxShadow-AutoComplete-warning)", "Input:textColor-AutoComplete-warning": "var(--xmlui-textColor-AutoComplete-warning)", "Input:borderColor-AutoComplete-warning--hover": "var(--xmlui-borderColor-AutoComplete-warning--hover)", "Input:backgroundColor-AutoComplete-warning--hover": "var(--xmlui-backgroundColor-AutoComplete-warning--hover)", "Input:boxShadow-AutoComplete-warning--hover": "var(--xmlui-boxShadow-AutoComplete-warning--hover)", "Input:textColor-AutoComplete-warning--hover": "var(--xmlui-textColor-AutoComplete-warning--hover)", "Input:textColor-placeholder-AutoComplete-warning": "var(--xmlui-textColor-placeholder-AutoComplete-warning)", "Input:fontSize-placeholder-AutoComplete-warning": "var(--xmlui-fontSize-placeholder-AutoComplete-warning)", "Input:borderRadius-AutoComplete-success": "var(--xmlui-borderRadius-AutoComplete-success)", "Input:borderColor-AutoComplete-success": "var(--xmlui-borderColor-AutoComplete-success)", "Input:borderWidth-AutoComplete-success": "var(--xmlui-borderWidth-AutoComplete-success)", "Input:borderStyle-AutoComplete-success": "var(--xmlui-borderStyle-AutoComplete-success)", "Input:fontSize-AutoComplete-success": "var(--xmlui-fontSize-AutoComplete-success)", "Input:backgroundColor-AutoComplete-success": "var(--xmlui-backgroundColor-AutoComplete-success)", "Input:boxShadow-AutoComplete-success": "var(--xmlui-boxShadow-AutoComplete-success)", "Input:textColor-AutoComplete-success": "var(--xmlui-textColor-AutoComplete-success)", "Input:borderColor-AutoComplete-success--hover": "var(--xmlui-borderColor-AutoComplete-success--hover)", "Input:backgroundColor-AutoComplete-success--hover": "var(--xmlui-backgroundColor-AutoComplete-success--hover)", "Input:boxShadow-AutoComplete-success--hover": "var(--xmlui-boxShadow-AutoComplete-success--hover)", "Input:textColor-AutoComplete-success--hover": "var(--xmlui-textColor-AutoComplete-success--hover)", "Input:textColor-placeholder-AutoComplete-success": "var(--xmlui-textColor-placeholder-AutoComplete-success)", "Input:fontSize-placeholder-AutoComplete-success": "var(--xmlui-fontSize-placeholder-AutoComplete-success)", "Input:backgroundColor-AutoComplete--disabled": "var(--xmlui-backgroundColor-AutoComplete--disabled)", "Input:textColor-AutoComplete--disabled": "var(--xmlui-textColor-AutoComplete--disabled)", "Input:borderColor-AutoComplete--disabled": "var(--xmlui-borderColor-AutoComplete--disabled)", "Input:outlineWidth-AutoComplete--focus": "var(--xmlui-outlineWidth-AutoComplete--focus)", "Input:outlineColor-AutoComplete--focus": "var(--xmlui-outlineColor-AutoComplete--focus)", "Input:outlineStyle-AutoComplete--focus": "var(--xmlui-outlineStyle-AutoComplete--focus)", "Input:outlineOffset-AutoComplete--focus": "var(--xmlui-outlineOffset-AutoComplete--focus)", "paddingVertical-AutoComplete-badge": "var(--xmlui-paddingVertical-AutoComplete-badge)", "paddingHorizontal-AutoComplete-badge": "var(--xmlui-paddingHorizontal-AutoComplete-badge)", "borderRadius-AutoComplete-badge": "var(--xmlui-borderRadius-AutoComplete-badge)", "Input:fontSize-AutoComplete-badge": "var(--xmlui-fontSize-AutoComplete-badge)", "Input:backgroundColor-AutoComplete-badge": "var(--xmlui-backgroundColor-AutoComplete-badge)", "Input:textColor-AutoComplete-badge": "var(--xmlui-textColor-AutoComplete-badge)", "Input:backgroundColor-AutoComplete-badge--hover": "var(--xmlui-backgroundColor-AutoComplete-badge--hover)", "Input:textColor-AutoComplete-badge--hover": "var(--xmlui-textColor-AutoComplete-badge--hover)", "Input:backgroundColor-AutoComplete-badge--active": "var(--xmlui-backgroundColor-AutoComplete-badge--active)", "Input:textColor-AutoComplete-badge--active": "var(--xmlui-textColor-AutoComplete-badge--active)", "Input:textColor-placeholder-AutoComplete": "var(--xmlui-textColor-placeholder-AutoComplete)", "Input:borderRadius-menu-AutoComplete": "var(--xmlui-borderRadius-menu-AutoComplete)", "Input:borderWidth-menu-AutoComplete": "var(--xmlui-borderWidth-menu-AutoComplete)", "Input:borderColor-menu-AutoComplete": "var(--xmlui-borderColor-menu-AutoComplete)", "Input:backgroundColor-menu-AutoComplete": "var(--xmlui-backgroundColor-menu-AutoComplete)", "Input:boxShadow-menu-AutoComplete": "var(--xmlui-boxShadow-menu-AutoComplete)", "backgroundColor-item-AutoComplete": "var(--xmlui-backgroundColor-item-AutoComplete)", "backgroundColor-item-AutoComplete--active": "var(--xmlui-backgroundColor-item-AutoComplete--active)", "backgroundColor-item-AutoComplete--hover": "var(--xmlui-backgroundColor-item-AutoComplete--hover)", "textColor-item-AutoComplete--disabled": "var(--xmlui-textColor-item-AutoComplete--disabled)"}'`;
|
|
23194
|
+
const command = "_command_1gtkp_14";
|
|
23195
|
+
const badgeListWrapper = "_badgeListWrapper_1gtkp_20";
|
|
23196
|
+
const error$5 = "_error_1gtkp_51";
|
|
23197
|
+
const warning$6 = "_warning_1gtkp_71";
|
|
23198
|
+
const valid$5 = "_valid_1gtkp_91";
|
|
23199
|
+
const disabled$5 = "_disabled_1gtkp_111";
|
|
23200
|
+
const focused$2 = "_focused_1gtkp_118";
|
|
23201
|
+
const badgeList = "_badgeList_1gtkp_20";
|
|
23202
|
+
const inputWrapper = "_inputWrapper_1gtkp_131";
|
|
23203
|
+
const badge = "_badge_1gtkp_20";
|
|
23204
|
+
const commandInput = "_commandInput_1gtkp_163";
|
|
23205
|
+
const actions = "_actions_1gtkp_178";
|
|
23206
|
+
const action = "_action_1gtkp_178";
|
|
23207
|
+
const autoCompleteEmpty = "_autoCompleteEmpty_1gtkp_186";
|
|
23208
|
+
const commandList = "_commandList_1gtkp_195";
|
|
23209
|
+
const autoCompleteOption = "_autoCompleteOption_1gtkp_208";
|
|
23210
|
+
const highlighted = "_highlighted_1gtkp_225";
|
|
23211
|
+
const disabledOption = "_disabledOption_1gtkp_228";
|
|
23008
23212
|
const styles$L = {
|
|
23009
23213
|
themeVars: themeVars$v,
|
|
23010
23214
|
command,
|
|
@@ -23022,8 +23226,9 @@ const styles$L = {
|
|
|
23022
23226
|
action,
|
|
23023
23227
|
autoCompleteEmpty,
|
|
23024
23228
|
commandList,
|
|
23025
|
-
"fade-in": "_fade-
|
|
23229
|
+
"fade-in": "_fade-in_1gtkp_1",
|
|
23026
23230
|
autoCompleteOption,
|
|
23231
|
+
highlighted,
|
|
23027
23232
|
disabledOption
|
|
23028
23233
|
};
|
|
23029
23234
|
const AutoCompleteContext = createContext({
|
|
@@ -23384,12 +23589,18 @@ const AutoComplete = forwardRef(function AutoComplete2({
|
|
|
23384
23589
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, ref: setReferenceElement, children: /* @__PURE__ */ jsxs(
|
|
23385
23590
|
"div",
|
|
23386
23591
|
{
|
|
23592
|
+
ref: forwardedRef,
|
|
23387
23593
|
style: style2,
|
|
23388
23594
|
"data-part-id": PART_LIST_WRAPPER,
|
|
23389
|
-
className: classnames(
|
|
23390
|
-
|
|
23391
|
-
|
|
23392
|
-
|
|
23595
|
+
className: classnames(
|
|
23596
|
+
className,
|
|
23597
|
+
styles$L.badgeListWrapper,
|
|
23598
|
+
styles$L[validationStatus],
|
|
23599
|
+
{
|
|
23600
|
+
[styles$L.disabled]: !enabled2,
|
|
23601
|
+
[styles$L.focused]: isFocused
|
|
23602
|
+
}
|
|
23603
|
+
),
|
|
23393
23604
|
"aria-expanded": open,
|
|
23394
23605
|
children: [
|
|
23395
23606
|
Array.isArray(selectedValue) && selectedValue.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$L.badgeList, children: selectedValue.map((v, index) => /* @__PURE__ */ jsxs("span", { className: styles$L.badge, children: [
|
|
@@ -23567,7 +23778,7 @@ function CreatableItem({ onNewItem, isHighlighted = false }) {
|
|
|
23567
23778
|
},
|
|
23568
23779
|
onClick: handleClick,
|
|
23569
23780
|
role: "option",
|
|
23570
|
-
"aria-selected":
|
|
23781
|
+
"aria-selected": false,
|
|
23571
23782
|
children: `Create "${searchTerm}"`
|
|
23572
23783
|
}
|
|
23573
23784
|
);
|
|
@@ -23608,7 +23819,7 @@ function AutoCompleteOption(option) {
|
|
|
23608
23819
|
id,
|
|
23609
23820
|
role: "option",
|
|
23610
23821
|
"aria-disabled": !enabled2,
|
|
23611
|
-
"aria-selected":
|
|
23822
|
+
"aria-selected": selected2,
|
|
23612
23823
|
className: classnames(styles$L.autoCompleteOption, {
|
|
23613
23824
|
[styles$L.disabledOption]: !enabled2,
|
|
23614
23825
|
[styles$L.highlighted]: isHighlighted
|
|
@@ -24030,7 +24241,7 @@ function CodeBlock({
|
|
|
24030
24241
|
icon: /* @__PURE__ */ jsx(Icon$l, { name: "copy", "aria-hidden": true }),
|
|
24031
24242
|
onClick: () => {
|
|
24032
24243
|
if (!textToCopy) return;
|
|
24033
|
-
navigator.clipboard.writeText(textToCopy);
|
|
24244
|
+
void navigator.clipboard.writeText(textToCopy);
|
|
24034
24245
|
toast.success("Code copied!");
|
|
24035
24246
|
}
|
|
24036
24247
|
}
|
|
@@ -25896,7 +26107,7 @@ const TreeComponent = memo((props) => {
|
|
|
25896
26107
|
if (currentIndex >= 0) {
|
|
25897
26108
|
const currentNode = flatTreeData[currentIndex];
|
|
25898
26109
|
if (currentNode.hasChildren && !currentNode.isExpanded) {
|
|
25899
|
-
toggleNode(currentNode);
|
|
26110
|
+
void toggleNode(currentNode);
|
|
25900
26111
|
} else if (currentNode.hasChildren && currentNode.isExpanded && currentIndex + 1 < flatTreeData.length) {
|
|
25901
26112
|
newIndex = currentIndex + 1;
|
|
25902
26113
|
}
|
|
@@ -25908,7 +26119,7 @@ const TreeComponent = memo((props) => {
|
|
|
25908
26119
|
if (currentIndex >= 0) {
|
|
25909
26120
|
const currentNode = flatTreeData[currentIndex];
|
|
25910
26121
|
if (currentNode.hasChildren && currentNode.isExpanded) {
|
|
25911
|
-
toggleNode(currentNode);
|
|
26122
|
+
void toggleNode(currentNode);
|
|
25912
26123
|
} else if (currentNode.depth > 0) {
|
|
25913
26124
|
for (let i = currentIndex - 1; i >= 0; i--) {
|
|
25914
26125
|
if (flatTreeData[i].depth < currentNode.depth) {
|
|
@@ -25940,7 +26151,7 @@ const TreeComponent = memo((props) => {
|
|
|
25940
26151
|
newIndex = currentIndex;
|
|
25941
26152
|
}
|
|
25942
26153
|
if (e.key === "Enter" && currentNode.hasChildren) {
|
|
25943
|
-
toggleNode(currentNode);
|
|
26154
|
+
void toggleNode(currentNode);
|
|
25944
26155
|
}
|
|
25945
26156
|
}
|
|
25946
26157
|
handled = true;
|
|
@@ -27683,14 +27894,7 @@ function useRowSelection({
|
|
|
27683
27894
|
lastUpdateSourceRef.current = "table";
|
|
27684
27895
|
(_a3 = syncWithAppState.update) == null ? void 0 : _a3.call(syncWithAppState, { selectedIds: currentSelectionIds });
|
|
27685
27896
|
}
|
|
27686
|
-
}, [
|
|
27687
|
-
selectedItems,
|
|
27688
|
-
syncWithAppState,
|
|
27689
|
-
appStateSelection,
|
|
27690
|
-
idKey,
|
|
27691
|
-
rowsSelectable,
|
|
27692
|
-
syncState
|
|
27693
|
-
]);
|
|
27897
|
+
}, [selectedItems, syncWithAppState, appStateSelection, idKey, rowsSelectable, syncState]);
|
|
27694
27898
|
useEffect(() => {
|
|
27695
27899
|
if (syncState !== "idle") {
|
|
27696
27900
|
const resetTimer = requestAnimationFrame(() => {
|
|
@@ -27869,7 +28073,7 @@ function useRowSelection({
|
|
|
27869
28073
|
}
|
|
27870
28074
|
});
|
|
27871
28075
|
useEffect(() => {
|
|
27872
|
-
onSelectionDidChange == null ? void 0 : onSelectionDidChange(selectedItems);
|
|
28076
|
+
void (onSelectionDidChange == null ? void 0 : onSelectionDidChange(selectedItems));
|
|
27873
28077
|
}, [selectedItems, onSelectionDidChange]);
|
|
27874
28078
|
const checkAllRows = useEvent((checked) => {
|
|
27875
28079
|
if (!rowsSelectable) {
|
|
@@ -28274,7 +28478,6 @@ const PaginationNative = forwardRef(function PaginationNative2({
|
|
|
28274
28478
|
style: style2,
|
|
28275
28479
|
className,
|
|
28276
28480
|
labelPosition: orientation === "vertical" ? "top" : "start",
|
|
28277
|
-
isInputTemplateUsed: true,
|
|
28278
28481
|
children: /* @__PURE__ */ jsx(
|
|
28279
28482
|
"select",
|
|
28280
28483
|
{
|
|
@@ -29635,6 +29838,7 @@ const modalViewComponentRenderer = createComponentRenderer(
|
|
|
29635
29838
|
fullScreen: extractValue.asOptionalBoolean((_a2 = node.props) == null ? void 0 : _a2.fullScreen),
|
|
29636
29839
|
title: extractValue((_b = node.props) == null ? void 0 : _b.title),
|
|
29637
29840
|
closeButtonVisible: extractValue.asOptionalBoolean(node.props.closeButtonVisible),
|
|
29841
|
+
externalAnimation: extractValue.asOptionalBoolean(node.props.externalAnimation),
|
|
29638
29842
|
children: renderChild2(node.children, { type: "Stack" })
|
|
29639
29843
|
}
|
|
29640
29844
|
);
|
|
@@ -30823,7 +31027,7 @@ function Queue({
|
|
|
30823
31027
|
return;
|
|
30824
31028
|
}
|
|
30825
31029
|
let queueItem = queue[0];
|
|
30826
|
-
(async () => {
|
|
31030
|
+
void (async () => {
|
|
30827
31031
|
await doSingle(queueItem);
|
|
30828
31032
|
})();
|
|
30829
31033
|
}, [doComplete, doSingle, prevQueue, queue]);
|
|
@@ -31323,26 +31527,26 @@ const ListNative = forwardRef(function DynamicHeightList({
|
|
|
31323
31527
|
const tryToFetchPrevPage = useCallback(() => {
|
|
31324
31528
|
if (virtualizerRef.current && virtualizerRef.current.findStartIndex() < 10 && pageInfo && pageInfo.hasPrevPage && !pageInfo.isFetchingPrevPage && !isFetchingPrevPage.current) {
|
|
31325
31529
|
isFetchingPrevPage.current = true;
|
|
31326
|
-
|
|
31530
|
+
void async function doFetch() {
|
|
31327
31531
|
try {
|
|
31328
31532
|
await requestFetchPrevPage();
|
|
31329
31533
|
} finally {
|
|
31330
31534
|
isFetchingPrevPage.current = false;
|
|
31331
31535
|
}
|
|
31332
|
-
}
|
|
31536
|
+
}();
|
|
31333
31537
|
}
|
|
31334
31538
|
}, [pageInfo, requestFetchPrevPage]);
|
|
31335
31539
|
const isFetchingNextPage = useRef(false);
|
|
31336
31540
|
const tryToFetchNextPage = useCallback(() => {
|
|
31337
31541
|
if (virtualizerRef.current && virtualizerRef.current.findEndIndex() + 10 > rows.length && pageInfo && pageInfo.hasNextPage && !pageInfo.isFetchingNextPage && !isFetchingNextPage.current) {
|
|
31338
31542
|
isFetchingNextPage.current = true;
|
|
31339
|
-
|
|
31543
|
+
void async function doFetch() {
|
|
31340
31544
|
try {
|
|
31341
31545
|
await requestFetchNextPage();
|
|
31342
31546
|
} finally {
|
|
31343
31547
|
isFetchingNextPage.current = false;
|
|
31344
31548
|
}
|
|
31345
|
-
}
|
|
31549
|
+
}();
|
|
31346
31550
|
}
|
|
31347
31551
|
}, [rows.length, pageInfo, requestFetchNextPage]);
|
|
31348
31552
|
const initiallyFetchedExtraPages = useRef(false);
|
|
@@ -32238,7 +32442,7 @@ class PollClient {
|
|
|
32238
32442
|
this.polling = true;
|
|
32239
32443
|
this.tries = 0;
|
|
32240
32444
|
this.abortController = new AbortController();
|
|
32241
|
-
this.poll(this.abortController.signal);
|
|
32445
|
+
void this.poll(this.abortController.signal);
|
|
32242
32446
|
}
|
|
32243
32447
|
stopPoll() {
|
|
32244
32448
|
this.polling = false;
|
|
@@ -33064,7 +33268,7 @@ const SelectMd = createMetadata({
|
|
|
33064
33268
|
[`backgroundColor-${COMP$E}-badge--hover`]: "$color-primary-400",
|
|
33065
33269
|
[`backgroundColor-${COMP$E}-badge--active`]: "$color-primary-500",
|
|
33066
33270
|
[`textColor-item-${COMP$E}--disabled`]: "$color-surface-200",
|
|
33067
|
-
[`textColor-${COMP$E}-badge`]: "$color-surface-50",
|
|
33271
|
+
[`textColor-${COMP$E}-badge`]: "$const-color-surface-50",
|
|
33068
33272
|
[`backgroundColor-item-${COMP$E}`]: "$backgroundColor-dropdown-item",
|
|
33069
33273
|
[`backgroundColor-item-${COMP$E}--hover`]: "$backgroundColor-dropdown-item--hover",
|
|
33070
33274
|
[`backgroundColor-item-${COMP$E}--active`]: "$backgroundColor-dropdown-item--active",
|
|
@@ -33677,7 +33881,7 @@ async function invalidateQueries(invalidates, appContext, state) {
|
|
|
33677
33881
|
}
|
|
33678
33882
|
arrayToInvalidate.forEach((invalidate) => {
|
|
33679
33883
|
var _a3;
|
|
33680
|
-
(_a3 = appContext.queryClient) == null ? void 0 : _a3.invalidateQueries(
|
|
33884
|
+
void ((_a3 = appContext.queryClient) == null ? void 0 : _a3.invalidateQueries(
|
|
33681
33885
|
new DataLoaderQueryKeyGenerator(
|
|
33682
33886
|
extractParam(state, invalidate, appContext),
|
|
33683
33887
|
void 0,
|
|
@@ -33685,7 +33889,7 @@ async function invalidateQueries(invalidates, appContext, state) {
|
|
|
33685
33889
|
void 0,
|
|
33686
33890
|
void 0
|
|
33687
33891
|
).asPredicate()
|
|
33688
|
-
);
|
|
33892
|
+
));
|
|
33689
33893
|
});
|
|
33690
33894
|
} else {
|
|
33691
33895
|
await ((_a2 = appContext.queryClient) == null ? void 0 : _a2.invalidateQueries());
|
|
@@ -34153,7 +34357,7 @@ async function uploadFile({ appContext, state, lookupAction, uid }, {
|
|
|
34153
34357
|
throw e;
|
|
34154
34358
|
}
|
|
34155
34359
|
}
|
|
34156
|
-
invalidateQueries(invalidates, appContext, state);
|
|
34360
|
+
void invalidateQueries(invalidates, appContext, state);
|
|
34157
34361
|
return result;
|
|
34158
34362
|
}
|
|
34159
34363
|
const uploadAction = createAction("upload", uploadFile);
|
|
@@ -34239,7 +34443,7 @@ function Loader({
|
|
|
34239
34443
|
let intervalId;
|
|
34240
34444
|
if (pollIntervalInSeconds) {
|
|
34241
34445
|
intervalId = setInterval(() => {
|
|
34242
|
-
refetch();
|
|
34446
|
+
void refetch();
|
|
34243
34447
|
}, pollIntervalInSeconds * 1e3);
|
|
34244
34448
|
}
|
|
34245
34449
|
return () => {
|
|
@@ -34273,8 +34477,8 @@ function Loader({
|
|
|
34273
34477
|
}, [loaderLoaded2, uid]);
|
|
34274
34478
|
useEffect(() => {
|
|
34275
34479
|
registerComponentApi == null ? void 0 : registerComponentApi({
|
|
34276
|
-
refetch:
|
|
34277
|
-
refetch(options2);
|
|
34480
|
+
refetch: (options2) => {
|
|
34481
|
+
void refetch(options2);
|
|
34278
34482
|
},
|
|
34279
34483
|
update: async (updater) => {
|
|
34280
34484
|
var _a2, _b;
|
|
@@ -34292,7 +34496,7 @@ function Loader({
|
|
|
34292
34496
|
}
|
|
34293
34497
|
(_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryId, newData);
|
|
34294
34498
|
},
|
|
34295
|
-
addItem:
|
|
34499
|
+
addItem: (element, indexToInsert) => {
|
|
34296
34500
|
var _a2, _b;
|
|
34297
34501
|
const oldData = (_a2 = appContext.queryClient) == null ? void 0 : _a2.getQueryData(queryId);
|
|
34298
34502
|
const draft = createDraft(oldData);
|
|
@@ -34304,10 +34508,10 @@ function Loader({
|
|
|
34304
34508
|
const newData = finishDraft(draft);
|
|
34305
34509
|
(_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryId, newData);
|
|
34306
34510
|
},
|
|
34307
|
-
getItems:
|
|
34511
|
+
getItems: () => {
|
|
34308
34512
|
return data;
|
|
34309
34513
|
},
|
|
34310
|
-
deleteItem:
|
|
34514
|
+
deleteItem: (element) => {
|
|
34311
34515
|
throw new Error("not implemented");
|
|
34312
34516
|
}
|
|
34313
34517
|
});
|
|
@@ -34468,7 +34672,9 @@ function MockLoader({
|
|
|
34468
34672
|
const waitTime = extractParam(state, loader.props.waitTime, appContext);
|
|
34469
34673
|
const responseObj = extractParam(state, loader.props.data, appContext);
|
|
34470
34674
|
const doLoad = useCallback(async () => {
|
|
34471
|
-
|
|
34675
|
+
if (waitTime) {
|
|
34676
|
+
await asyncWait(waitTime);
|
|
34677
|
+
}
|
|
34472
34678
|
return responseObj;
|
|
34473
34679
|
}, [responseObj, waitTime]);
|
|
34474
34680
|
return /* @__PURE__ */ jsx(
|
|
@@ -34616,7 +34822,7 @@ function PageableLoader({
|
|
|
34616
34822
|
const queryKey2 = thizRef.current;
|
|
34617
34823
|
return () => {
|
|
34618
34824
|
var _a2, _b;
|
|
34619
|
-
(_a2 = appContext.queryClient) == null ? void 0 : _a2.cancelQueries(queryKey2);
|
|
34825
|
+
void ((_a2 = appContext.queryClient) == null ? void 0 : _a2.cancelQueries(queryKey2));
|
|
34620
34826
|
(_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryKey2, (old) => {
|
|
34621
34827
|
if (!old) {
|
|
34622
34828
|
return old;
|
|
@@ -34658,6 +34864,7 @@ function PageableLoader({
|
|
|
34658
34864
|
}, [
|
|
34659
34865
|
data,
|
|
34660
34866
|
error2,
|
|
34867
|
+
isRefetching,
|
|
34661
34868
|
loaderError2,
|
|
34662
34869
|
loaderLoaded2,
|
|
34663
34870
|
onLoaded,
|
|
@@ -34671,7 +34878,7 @@ function PageableLoader({
|
|
|
34671
34878
|
let intervalId;
|
|
34672
34879
|
if (pollIntervalInSeconds) {
|
|
34673
34880
|
intervalId = setInterval(() => {
|
|
34674
|
-
refetch();
|
|
34881
|
+
void refetch();
|
|
34675
34882
|
}, pollIntervalInSeconds * 1e3);
|
|
34676
34883
|
}
|
|
34677
34884
|
return () => {
|
|
@@ -34690,8 +34897,8 @@ function PageableLoader({
|
|
|
34690
34897
|
registerComponentApi({
|
|
34691
34898
|
fetchPrevPage,
|
|
34692
34899
|
fetchNextPage: stableFetchNextPage,
|
|
34693
|
-
refetch:
|
|
34694
|
-
refetch(options2);
|
|
34900
|
+
refetch: (options2) => {
|
|
34901
|
+
void refetch(options2);
|
|
34695
34902
|
},
|
|
34696
34903
|
update: async (updater) => {
|
|
34697
34904
|
var _a2, _b;
|
|
@@ -34715,7 +34922,7 @@ function PageableLoader({
|
|
|
34715
34922
|
const newData = finishDraft(draft);
|
|
34716
34923
|
(_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryId, newData);
|
|
34717
34924
|
},
|
|
34718
|
-
addItem:
|
|
34925
|
+
addItem: (element, indexToInsert) => {
|
|
34719
34926
|
var _a2, _b;
|
|
34720
34927
|
const oldData = (_a2 = appContext.queryClient) == null ? void 0 : _a2.getQueryData(queryId);
|
|
34721
34928
|
const draft = createDraft(oldData);
|
|
@@ -34730,7 +34937,7 @@ function PageableLoader({
|
|
|
34730
34937
|
getItems: () => {
|
|
34731
34938
|
return data;
|
|
34732
34939
|
},
|
|
34733
|
-
deleteItem:
|
|
34940
|
+
deleteItem: (element) => {
|
|
34734
34941
|
throw new Error("not implemented");
|
|
34735
34942
|
}
|
|
34736
34943
|
});
|
|
@@ -34874,8 +35081,14 @@ function DataLoader({
|
|
|
34874
35081
|
}
|
|
34875
35082
|
const response = await fetch(queryUrl, fetchOptions);
|
|
34876
35083
|
if (!response.ok) {
|
|
34877
|
-
console.error(
|
|
34878
|
-
|
|
35084
|
+
console.error(
|
|
35085
|
+
"[SQL DataLoader] Failed response:",
|
|
35086
|
+
response.status,
|
|
35087
|
+
response.statusText
|
|
35088
|
+
);
|
|
35089
|
+
throw new Error(
|
|
35090
|
+
`Failed to execute SQL query: ${response.status} ${response.statusText}`
|
|
35091
|
+
);
|
|
34879
35092
|
}
|
|
34880
35093
|
const jsonResult = await response.json();
|
|
34881
35094
|
if (jsonResult && typeof jsonResult === "object") {
|
|
@@ -34903,15 +35116,7 @@ function DataLoader({
|
|
|
34903
35116
|
});
|
|
34904
35117
|
}
|
|
34905
35118
|
},
|
|
34906
|
-
[
|
|
34907
|
-
api,
|
|
34908
|
-
loader.props,
|
|
34909
|
-
state,
|
|
34910
|
-
url,
|
|
34911
|
-
body,
|
|
34912
|
-
rawBody,
|
|
34913
|
-
appContext
|
|
34914
|
-
]
|
|
35119
|
+
[api, loader.props, state, url, body, rawBody, appContext]
|
|
34915
35120
|
);
|
|
34916
35121
|
const queryId = useMemo(() => {
|
|
34917
35122
|
return new DataLoaderQueryKeyGenerator(
|
|
@@ -34944,7 +35149,7 @@ function DataLoader({
|
|
|
34944
35149
|
}
|
|
34945
35150
|
}
|
|
34946
35151
|
},
|
|
34947
|
-
[loader.props.inProgressNotificationMessage, loaderInProgressChanged2
|
|
35152
|
+
[loader.props.inProgressNotificationMessage, loaderInProgressChanged2]
|
|
34948
35153
|
);
|
|
34949
35154
|
const loaded = useCallback(
|
|
34950
35155
|
(data, pageInfo) => {
|
|
@@ -34967,7 +35172,7 @@ function DataLoader({
|
|
|
34967
35172
|
}
|
|
34968
35173
|
}
|
|
34969
35174
|
},
|
|
34970
|
-
[loader.props.completedNotificationMessage, loaderLoaded2
|
|
35175
|
+
[loader.props.completedNotificationMessage, loaderLoaded2]
|
|
34971
35176
|
);
|
|
34972
35177
|
const error2 = useCallback(
|
|
34973
35178
|
async (error22) => {
|
|
@@ -35092,7 +35297,9 @@ const dataLoaderRenderer = createLoaderRenderer(
|
|
|
35092
35297
|
}) => {
|
|
35093
35298
|
var _a2, _b, _c;
|
|
35094
35299
|
if (!((_a2 = loader.props) == null ? void 0 : _a2.url) || !loader.props.url.trim()) {
|
|
35095
|
-
throw new Error(
|
|
35300
|
+
throw new Error(
|
|
35301
|
+
"You must specify a non-empty (not whitespace-only) 'url' property for DataSource"
|
|
35302
|
+
);
|
|
35096
35303
|
}
|
|
35097
35304
|
return /* @__PURE__ */ jsx(
|
|
35098
35305
|
IndexAwareDataLoader,
|
|
@@ -39940,26 +40147,31 @@ const AutoCompleteMd = createMetadata({
|
|
|
39940
40147
|
},
|
|
39941
40148
|
themeVars: parseScssVar(styles$L.themeVars),
|
|
39942
40149
|
defaultThemeVars: {
|
|
39943
|
-
[`backgroundColor-menu-${COMP$j}`]: "$
|
|
40150
|
+
[`backgroundColor-menu-${COMP$j}`]: "$color-surface-raised",
|
|
39944
40151
|
[`boxShadow-menu-${COMP$j}`]: "$boxShadow-md",
|
|
39945
40152
|
[`borderRadius-menu-${COMP$j}`]: "$borderRadius",
|
|
39946
40153
|
[`borderWidth-menu-${COMP$j}`]: "1px",
|
|
39947
40154
|
[`borderColor-menu-${COMP$j}`]: "$borderColor",
|
|
39948
|
-
[`backgroundColor-item-${COMP$j}`]: "$backgroundColor-dropdown-item",
|
|
39949
|
-
[`backgroundColor-item-${COMP$j}--hover`]: "$backgroundColor-dropdown-item--active",
|
|
39950
|
-
[`backgroundColor-item-${COMP$j}--active`]: "$backgroundColor-dropdown-item--active",
|
|
39951
|
-
[`minHeight-Input`]: "39px",
|
|
39952
40155
|
[`backgroundColor-${COMP$j}-badge`]: "$color-primary-500",
|
|
39953
40156
|
[`fontSize-${COMP$j}-badge`]: "$fontSize-sm",
|
|
40157
|
+
[`paddingHorizontal-${COMP$j}-badge`]: "$space-2_5",
|
|
40158
|
+
[`paddingVertical-${COMP$j}-badge`]: "$space-0_5",
|
|
39954
40159
|
[`borderRadius-${COMP$j}-badge`]: "$borderRadius",
|
|
39955
|
-
[`paddingHorizontal-${COMP$j}
|
|
39956
|
-
[`paddingVertical-${COMP$j}
|
|
39957
|
-
[`paddingHorizontal-${COMP$j}`]: "$space-
|
|
40160
|
+
[`paddingHorizontal-item-${COMP$j}`]: "$space-2",
|
|
40161
|
+
[`paddingVertical-item-${COMP$j}`]: "$space-2",
|
|
40162
|
+
[`paddingHorizontal-${COMP$j}`]: "$space-2",
|
|
39958
40163
|
[`paddingVertical-${COMP$j}`]: "$space-2",
|
|
40164
|
+
[`opacity-text-item-${COMP$j}--disabled`]: "0.5",
|
|
40165
|
+
[`opacity-${COMP$j}--disabled`]: "0.5",
|
|
39959
40166
|
[`backgroundColor-${COMP$j}-badge--hover`]: "$color-primary-400",
|
|
39960
40167
|
[`backgroundColor-${COMP$j}-badge--active`]: "$color-primary-500",
|
|
39961
40168
|
[`textColor-item-${COMP$j}--disabled`]: "$color-surface-200",
|
|
39962
|
-
[`textColor-${COMP$j}-badge`]: "$const-color-surface-50"
|
|
40169
|
+
[`textColor-${COMP$j}-badge`]: "$const-color-surface-50",
|
|
40170
|
+
[`backgroundColor-item-${COMP$j}`]: "$backgroundColor-dropdown-item",
|
|
40171
|
+
[`backgroundColor-item-${COMP$j}--hover`]: "$backgroundColor-dropdown-item--hover",
|
|
40172
|
+
[`backgroundColor-item-${COMP$j}--active`]: "$backgroundColor-dropdown-item--active",
|
|
40173
|
+
// Default borderColor-Input--disabled is too light so the disabled component is barely visible
|
|
40174
|
+
[`borderColor-${COMP$j}--disabled`]: "initial"
|
|
39963
40175
|
}
|
|
39964
40176
|
});
|
|
39965
40177
|
const autoCompleteComponentRenderer = createComponentRenderer(
|
|
@@ -42406,7 +42618,7 @@ function InspectButton$1({
|
|
|
42406
42618
|
htmlElement.removeEventListener("mouseenter", mouseenter);
|
|
42407
42619
|
htmlElement.removeEventListener("mouseleave", mouseleave);
|
|
42408
42620
|
};
|
|
42409
|
-
}, [inspectId, node, inspectMode, setShowCode]);
|
|
42621
|
+
}, [inspectId, node, inspectMode, setShowCode, setInspectedNode]);
|
|
42410
42622
|
return /* @__PURE__ */ jsx(Fragment, { children: inspectMode ? null : visible && !!root2 && createPortal(
|
|
42411
42623
|
/* @__PURE__ */ jsx(
|
|
42412
42624
|
Button,
|
|
@@ -45786,7 +45998,7 @@ const Dialog = ({
|
|
|
45786
45998
|
] });
|
|
45787
45999
|
};
|
|
45788
46000
|
const ConfirmationModalContext = React__default.createContext({
|
|
45789
|
-
confirm:
|
|
46001
|
+
confirm: (title2, message, actionLabel) => Promise.resolve(false)
|
|
45790
46002
|
});
|
|
45791
46003
|
const useConfirm = () => useContext(ConfirmationModalContext);
|
|
45792
46004
|
const ConfirmationModalContextProvider = ({ children }) => {
|
|
@@ -45808,7 +46020,7 @@ const ConfirmationModalContextProvider = ({ children }) => {
|
|
|
45808
46020
|
}
|
|
45809
46021
|
}, [showConfirmationModal]);
|
|
45810
46022
|
const handleShow = useCallback(
|
|
45811
|
-
|
|
46023
|
+
(title22, message2, actionLabel) => {
|
|
45812
46024
|
if (typeof title22 === "string") {
|
|
45813
46025
|
setTitle(title22);
|
|
45814
46026
|
setButtons([
|
|
@@ -46630,7 +46842,7 @@ function IconProvider({ children }) {
|
|
|
46630
46842
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
46631
46843
|
] });
|
|
46632
46844
|
}
|
|
46633
|
-
const version = "0.10.
|
|
46845
|
+
const version = "0.10.20";
|
|
46634
46846
|
const miscellaneousUtils = {
|
|
46635
46847
|
capitalize,
|
|
46636
46848
|
pluralize: pluralize$1,
|
|
@@ -47137,7 +47349,7 @@ async function evalCalculatedMemberAccessAsync(evaluator, thisStack, expr, evalC
|
|
|
47137
47349
|
await completeExprValue(expr.member, thread);
|
|
47138
47350
|
return evalCalculatedMemberAccessCore(thisStack, expr, evalContext, thread);
|
|
47139
47351
|
}
|
|
47140
|
-
|
|
47352
|
+
function evalSequenceAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
47141
47353
|
if (!expr.exprs || expr.exprs.length === 0) {
|
|
47142
47354
|
throw new Error(`Missing expression sequence`);
|
|
47143
47355
|
}
|
|
@@ -47249,7 +47461,7 @@ async function evalAssignmentAsync(evaluator, thisStack, expr, evalContext, thre
|
|
|
47249
47461
|
const rootScope = getRootIdScope(leftValue, evalContext, thread);
|
|
47250
47462
|
const updatesState = rootScope && rootScope.type !== "block";
|
|
47251
47463
|
if (updatesState && evalContext.onWillUpdate) {
|
|
47252
|
-
evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
|
|
47464
|
+
void evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
|
|
47253
47465
|
}
|
|
47254
47466
|
await evaluator(thisStack, leftValue, evalContext, thread);
|
|
47255
47467
|
thisStack.pop();
|
|
@@ -47259,7 +47471,7 @@ async function evalAssignmentAsync(evaluator, thisStack, expr, evalContext, thre
|
|
|
47259
47471
|
await completeExprValue(expr.expr, thread);
|
|
47260
47472
|
const value = evalAssignmentCore(thisStack, expr, evalContext, thread);
|
|
47261
47473
|
if (updatesState && evalContext.onDidUpdate) {
|
|
47262
|
-
evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
|
|
47474
|
+
void evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
|
|
47263
47475
|
}
|
|
47264
47476
|
return value;
|
|
47265
47477
|
}
|
|
@@ -47267,14 +47479,14 @@ async function evalPreOrPostAsync(evaluator, thisStack, expr, evalContext, threa
|
|
|
47267
47479
|
const rootScope = getRootIdScope(expr.expr, evalContext, thread);
|
|
47268
47480
|
const updatesState = rootScope && rootScope.type !== "block";
|
|
47269
47481
|
if (updatesState && evalContext.onWillUpdate) {
|
|
47270
|
-
evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
|
|
47482
|
+
void evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
|
|
47271
47483
|
}
|
|
47272
47484
|
await evaluator(thisStack, expr.expr, evalContext, thread);
|
|
47273
47485
|
thisStack.pop();
|
|
47274
47486
|
await completeExprValue(expr.expr, thread);
|
|
47275
47487
|
const value = evalPreOrPostCore(thisStack, expr, evalContext, thread);
|
|
47276
47488
|
if (updatesState && evalContext.onDidUpdate) {
|
|
47277
|
-
evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
|
|
47489
|
+
void evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
|
|
47278
47490
|
}
|
|
47279
47491
|
return value;
|
|
47280
47492
|
}
|
|
@@ -47322,8 +47534,8 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
|
|
|
47322
47534
|
functionArgs.push(...funcArg);
|
|
47323
47535
|
} else {
|
|
47324
47536
|
if (arg.type === T_ARROW_EXPRESSION) {
|
|
47325
|
-
const funcArg =
|
|
47326
|
-
const wrappedFunc =
|
|
47537
|
+
const funcArg = createArrowFunctionAsync(evaluator, arg);
|
|
47538
|
+
const wrappedFunc = (...args) => {
|
|
47327
47539
|
return funcArg(arg.args, evalContext, thread, ...args);
|
|
47328
47540
|
};
|
|
47329
47541
|
functionArgs.push(wrappedFunc);
|
|
@@ -47331,7 +47543,7 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
|
|
|
47331
47543
|
await evaluator([], arg, evalContext, thread);
|
|
47332
47544
|
const funcArg = await completeExprValue(arg, thread);
|
|
47333
47545
|
if (funcArg == null ? void 0 : funcArg._ARROW_EXPR_) {
|
|
47334
|
-
const wrappedFuncArg =
|
|
47546
|
+
const wrappedFuncArg = createArrowFunctionAsync(evaluator, funcArg);
|
|
47335
47547
|
const wrappedFunc = (...args) => wrappedFuncArg(funcArg.args, evalContext, thread, ...args);
|
|
47336
47548
|
functionArgs.push(wrappedFunc);
|
|
47337
47549
|
} else {
|
|
@@ -47360,18 +47572,18 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
|
|
|
47360
47572
|
const rootScope = getRootIdScope(expr.obj, evalContext, thread);
|
|
47361
47573
|
const updatesState = rootScope && rootScope.type !== "block";
|
|
47362
47574
|
if (updatesState && evalContext.onWillUpdate) {
|
|
47363
|
-
evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
|
|
47575
|
+
void evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
|
|
47364
47576
|
}
|
|
47365
47577
|
const value = ((_b = evalContext.options) == null ? void 0 : _b.defaultToOptionalMemberAccess) ? functionObj == null ? void 0 : functionObj.call(currentContext, ...functionArgs) : functionObj.call(currentContext, ...functionArgs);
|
|
47366
47578
|
let returnValue = await completePromise(value);
|
|
47367
47579
|
if (updatesState && evalContext.onDidUpdate) {
|
|
47368
|
-
evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
|
|
47580
|
+
void evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
|
|
47369
47581
|
}
|
|
47370
47582
|
setExprValue(expr, { value: returnValue }, thread);
|
|
47371
47583
|
thisStack.push(returnValue);
|
|
47372
47584
|
return returnValue;
|
|
47373
47585
|
}
|
|
47374
|
-
|
|
47586
|
+
function createArrowFunctionAsync(evaluator, expr) {
|
|
47375
47587
|
return async (...args) => {
|
|
47376
47588
|
const runTimeEvalContext = args[1];
|
|
47377
47589
|
const runtimeThread = args[2];
|
|
@@ -47497,7 +47709,7 @@ async function createArrowFunctionAsync(evaluator, expr) {
|
|
|
47497
47709
|
return returnValue;
|
|
47498
47710
|
};
|
|
47499
47711
|
}
|
|
47500
|
-
|
|
47712
|
+
function completePromise(input2) {
|
|
47501
47713
|
const visited = /* @__PURE__ */ new Map();
|
|
47502
47714
|
return completePromiseInternal(input2);
|
|
47503
47715
|
async function completePromiseInternal(input22) {
|
|
@@ -50112,7 +50324,7 @@ const Animation$1 = forwardRef(function Animation2({
|
|
|
50112
50324
|
const [reset, setReset] = useState(false);
|
|
50113
50325
|
const [count, setCount] = useState(0);
|
|
50114
50326
|
const times = 1;
|
|
50115
|
-
|
|
50327
|
+
useId();
|
|
50116
50328
|
const animationSettings = useMemo(
|
|
50117
50329
|
() => ({
|
|
50118
50330
|
from: _animation.from,
|
|
@@ -50155,9 +50367,9 @@ const Animation$1 = forwardRef(function Animation2({
|
|
|
50155
50367
|
onStart,
|
|
50156
50368
|
onStop,
|
|
50157
50369
|
reset,
|
|
50370
|
+
once,
|
|
50158
50371
|
reverse2,
|
|
50159
|
-
toggle
|
|
50160
|
-
animationId
|
|
50372
|
+
toggle
|
|
50161
50373
|
]
|
|
50162
50374
|
);
|
|
50163
50375
|
const [springs, api] = useSpring(
|
|
@@ -50171,7 +50383,7 @@ const Animation$1 = forwardRef(function Animation2({
|
|
|
50171
50383
|
});
|
|
50172
50384
|
const composedRef = ref ? composeRefs(ref, forwardedRef) : forwardedRef;
|
|
50173
50385
|
const startAnimation = useCallback(() => {
|
|
50174
|
-
api.start(_animation);
|
|
50386
|
+
void api.start(_animation);
|
|
50175
50387
|
return () => {
|
|
50176
50388
|
api.stop();
|
|
50177
50389
|
};
|
|
@@ -50190,7 +50402,7 @@ const Animation$1 = forwardRef(function Animation2({
|
|
|
50190
50402
|
children,
|
|
50191
50403
|
(child, index) => animateWhenInView ? /* @__PURE__ */ jsx(AnimatedComponent, { ...rest, style: animationStyles, ref: composedRef, children: child }, index) : /* @__PURE__ */ jsx(AnimatedComponent, { ...rest, style: springs, ref: forwardedRef, children: child }, index)
|
|
50192
50404
|
);
|
|
50193
|
-
}, [animateWhenInView, animationStyles, children, springs, rest]);
|
|
50405
|
+
}, [animateWhenInView, animationStyles, children, springs, rest, composedRef, forwardedRef]);
|
|
50194
50406
|
return content2;
|
|
50195
50407
|
});
|
|
50196
50408
|
const tooltipBehavior = {
|
|
@@ -50221,12 +50433,11 @@ const animationBehavior = {
|
|
|
50221
50433
|
var _a2, _b;
|
|
50222
50434
|
const { extractValue } = context;
|
|
50223
50435
|
const animation = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.animation, true);
|
|
50224
|
-
const animationOptions = extractValue(
|
|
50225
|
-
(_b = context.node.props) == null ? void 0 : _b.animationOptions,
|
|
50226
|
-
true
|
|
50227
|
-
);
|
|
50436
|
+
const animationOptions = extractValue((_b = context.node.props) == null ? void 0 : _b.animationOptions, true);
|
|
50228
50437
|
const parsedOptions = parseAnimationOptions(animationOptions);
|
|
50229
|
-
return /* @__PURE__ */ jsx(Animation$1, { animation: parseAnimation(animation), ...parsedOptions, children: node
|
|
50438
|
+
return /* @__PURE__ */ jsx(Animation$1, { animation: parseAnimation(animation), ...parsedOptions, children: context.node.type === "ModalDialog" ? cloneElement(node, {
|
|
50439
|
+
externalAnimation: true
|
|
50440
|
+
}) : node });
|
|
50230
50441
|
}
|
|
50231
50442
|
};
|
|
50232
50443
|
const labelBehavior = {
|
|
@@ -51220,11 +51431,6 @@ function AppContent({
|
|
|
51220
51431
|
root2
|
|
51221
51432
|
]);
|
|
51222
51433
|
const [appState, setAppState] = useState(EMPTY_OBJECT);
|
|
51223
|
-
const registerAppState = useCallback((bucket, initialValue) => {
|
|
51224
|
-
setAppState((prev) => {
|
|
51225
|
-
return { ...prev, [bucket]: initialValue };
|
|
51226
|
-
});
|
|
51227
|
-
}, []);
|
|
51228
51434
|
const update = useCallback((bucket, patch) => {
|
|
51229
51435
|
setAppState((prev) => {
|
|
51230
51436
|
return {
|
|
@@ -51238,11 +51444,10 @@ function AppContent({
|
|
|
51238
51444
|
}, []);
|
|
51239
51445
|
const appStateContextValue = useMemo(() => {
|
|
51240
51446
|
return {
|
|
51241
|
-
registerAppState,
|
|
51242
51447
|
appState,
|
|
51243
51448
|
update
|
|
51244
51449
|
};
|
|
51245
|
-
}, [appState,
|
|
51450
|
+
}, [appState, update]);
|
|
51246
51451
|
return /* @__PURE__ */ jsx(AppContext.Provider, { value: appContextValue, children: /* @__PURE__ */ jsx(AppStateContext.Provider, { value: appStateContextValue, children: /* @__PURE__ */ jsx(StandaloneComponent, { node: rootContainer, children }) }) });
|
|
51247
51452
|
}
|
|
51248
51453
|
function signError(error2) {
|
|
@@ -51382,8 +51587,8 @@ function ApiInterceptorProvider({
|
|
|
51382
51587
|
if (!interceptor) {
|
|
51383
51588
|
return;
|
|
51384
51589
|
}
|
|
51385
|
-
(async () => {
|
|
51386
|
-
const { initMock } = await import("./initMock-
|
|
51590
|
+
void (async () => {
|
|
51591
|
+
const { initMock } = await import("./initMock-ZyyFNOpL.mjs");
|
|
51387
51592
|
const apiInstance2 = await initMock(interceptor);
|
|
51388
51593
|
setApiInstance(apiInstance2);
|
|
51389
51594
|
setInitialized(true);
|
|
@@ -51396,11 +51601,11 @@ function ApiInterceptorProvider({
|
|
|
51396
51601
|
if (!hasParentInterceptorContext) {
|
|
51397
51602
|
if (interceptor || forceInitialize) {
|
|
51398
51603
|
let interceptorWorker2;
|
|
51399
|
-
(async () => {
|
|
51604
|
+
void (async () => {
|
|
51400
51605
|
if (define_process_env_default$2.VITE_MOCK_ENABLED) {
|
|
51401
51606
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
51402
|
-
useWorker ? import("./apiInterceptorWorker-
|
|
51403
|
-
import("./initMock-
|
|
51607
|
+
useWorker ? import("./apiInterceptorWorker-Dql7QGw2.mjs") : Promise.resolve({ createApiInterceptorWorker: () => null }),
|
|
51608
|
+
import("./initMock-ZyyFNOpL.mjs")
|
|
51404
51609
|
]);
|
|
51405
51610
|
if (interceptor || forceInitialize) {
|
|
51406
51611
|
const apiInstance2 = await initMock(interceptor || {});
|
|
@@ -51434,10 +51639,10 @@ function ApiInterceptorProvider({
|
|
|
51434
51639
|
return;
|
|
51435
51640
|
}
|
|
51436
51641
|
if (parentInterceptorWorker) {
|
|
51437
|
-
(async () => {
|
|
51642
|
+
void (async () => {
|
|
51438
51643
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
51439
|
-
import("./apiInterceptorWorker-
|
|
51440
|
-
import("./initMock-
|
|
51644
|
+
import("./apiInterceptorWorker-Dql7QGw2.mjs"),
|
|
51645
|
+
import("./initMock-ZyyFNOpL.mjs")
|
|
51441
51646
|
]);
|
|
51442
51647
|
const apiInstance2 = await initMock(interceptor);
|
|
51443
51648
|
await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
|
|
@@ -53932,13 +54137,7 @@ function xmlUiMarkupToComponent(source, fileId = 0) {
|
|
|
53932
54137
|
const { parse: parse2, getText } = createXmlUiParser(source);
|
|
53933
54138
|
const { node, errors } = parse2();
|
|
53934
54139
|
if (errors.length > 0) {
|
|
53935
|
-
const
|
|
53936
|
-
for (let i = 0; i < source.length; ++i) {
|
|
53937
|
-
if (source[i] === "\n") {
|
|
53938
|
-
newlinePositions.push(i);
|
|
53939
|
-
}
|
|
53940
|
-
}
|
|
53941
|
-
const errorsForDisplay = addDisplayFieldsToErrors(errors, source, newlinePositions);
|
|
54140
|
+
const errorsForDisplay = addDisplayFieldsToErrors(errors, source);
|
|
53942
54141
|
const erroneousCompoundComponentName = getCompoundCompName(node, getText);
|
|
53943
54142
|
return { component: null, errors: errorsForDisplay, erroneousCompoundComponentName };
|
|
53944
54143
|
}
|
|
@@ -54234,21 +54433,6 @@ function errReportComponent(errors, fileName, compoundCompName) {
|
|
|
54234
54433
|
comp.component = createErrorReportComponent(errors, fileName);
|
|
54235
54434
|
return comp;
|
|
54236
54435
|
}
|
|
54237
|
-
function offsetToPosition(offset, newlinePositions) {
|
|
54238
|
-
let left2 = 0;
|
|
54239
|
-
let right2 = newlinePositions.length;
|
|
54240
|
-
while (left2 < right2) {
|
|
54241
|
-
const mid = Math.floor((left2 + right2) / 2);
|
|
54242
|
-
if (newlinePositions[mid] < offset) {
|
|
54243
|
-
left2 = mid + 1;
|
|
54244
|
-
} else {
|
|
54245
|
-
right2 = mid;
|
|
54246
|
-
}
|
|
54247
|
-
}
|
|
54248
|
-
let line2 = left2 + 1;
|
|
54249
|
-
let col = left2 === 0 ? offset + 1 : offset - newlinePositions[left2 - 1];
|
|
54250
|
-
return { line: line2, col };
|
|
54251
|
-
}
|
|
54252
54436
|
function getCompoundCompName(node, getText) {
|
|
54253
54437
|
var _a2, _b, _c, _d, _e, _f;
|
|
54254
54438
|
const rootTag = (_a2 = node == null ? void 0 : node.children) == null ? void 0 : _a2[0];
|
|
@@ -54270,10 +54454,11 @@ function getCompoundCompName(node, getText) {
|
|
|
54270
54454
|
}
|
|
54271
54455
|
return void 0;
|
|
54272
54456
|
}
|
|
54273
|
-
function addDisplayFieldsToErrors(errors, source
|
|
54457
|
+
function addDisplayFieldsToErrors(errors, source) {
|
|
54458
|
+
const { offsetToPosForDisplay } = createDocumentCursor(source);
|
|
54274
54459
|
return errors.map((err) => {
|
|
54275
|
-
const { line: errPosLine,
|
|
54276
|
-
const { line: contextStartLine } =
|
|
54460
|
+
const { line: errPosLine, character: errPosCol } = offsetToPosForDisplay(err.pos);
|
|
54461
|
+
const { line: contextStartLine } = offsetToPosForDisplay(err.contextPos);
|
|
54277
54462
|
return {
|
|
54278
54463
|
...err,
|
|
54279
54464
|
errPosLine,
|
|
@@ -54283,6 +54468,38 @@ function addDisplayFieldsToErrors(errors, source, newlinePositions) {
|
|
|
54283
54468
|
};
|
|
54284
54469
|
});
|
|
54285
54470
|
}
|
|
54471
|
+
function createDocumentCursor(text2) {
|
|
54472
|
+
const newlinePositions = [];
|
|
54473
|
+
for (let i = 0; i < text2.length; ++i) {
|
|
54474
|
+
if (text2[i] === "\n") {
|
|
54475
|
+
newlinePositions.push(i);
|
|
54476
|
+
}
|
|
54477
|
+
}
|
|
54478
|
+
return {
|
|
54479
|
+
offsetToPos,
|
|
54480
|
+
offsetToPosForDisplay
|
|
54481
|
+
};
|
|
54482
|
+
function offsetToPos(offset) {
|
|
54483
|
+
let left2 = 0;
|
|
54484
|
+
let right2 = newlinePositions.length;
|
|
54485
|
+
while (left2 < right2) {
|
|
54486
|
+
const mid = Math.floor((left2 + right2) / 2);
|
|
54487
|
+
if (newlinePositions[mid] < offset) {
|
|
54488
|
+
left2 = mid + 1;
|
|
54489
|
+
} else {
|
|
54490
|
+
right2 = mid;
|
|
54491
|
+
}
|
|
54492
|
+
}
|
|
54493
|
+
let col = left2 === 0 ? offset : offset - newlinePositions[left2 - 1] - 1;
|
|
54494
|
+
return { line: left2, character: col };
|
|
54495
|
+
}
|
|
54496
|
+
function offsetToPosForDisplay(offset) {
|
|
54497
|
+
let pos = offsetToPos(offset);
|
|
54498
|
+
pos.line += 1;
|
|
54499
|
+
pos.character += 1;
|
|
54500
|
+
return pos;
|
|
54501
|
+
}
|
|
54502
|
+
}
|
|
54286
54503
|
const MotionContent = motion.create(SheetPrimitive.Content);
|
|
54287
54504
|
const overlayVariants = {
|
|
54288
54505
|
visible: { opacity: 1 },
|
|
@@ -54771,7 +54988,7 @@ function NestedApp({
|
|
|
54771
54988
|
}
|
|
54772
54989
|
return null;
|
|
54773
54990
|
});
|
|
54774
|
-
Promise.all(sheetPromises).then((sheets) => {
|
|
54991
|
+
void Promise.all(sheetPromises).then((sheets) => {
|
|
54775
54992
|
const validSheets = sheets.filter(Boolean);
|
|
54776
54993
|
shadowRef.current.adoptedStyleSheets = validSheets;
|
|
54777
54994
|
});
|
|
@@ -54890,7 +55107,10 @@ function NestedApp({
|
|
|
54890
55107
|
)
|
|
54891
55108
|
] });
|
|
54892
55109
|
}
|
|
54893
|
-
function NestedAppRoot({
|
|
55110
|
+
function NestedAppRoot({
|
|
55111
|
+
children,
|
|
55112
|
+
themeStylesToReset
|
|
55113
|
+
}) {
|
|
54894
55114
|
const themeVarReset = useMemo(() => {
|
|
54895
55115
|
const vars2 = {};
|
|
54896
55116
|
Object.keys(themeStylesToReset).forEach((key) => {
|
|
@@ -55029,7 +55249,7 @@ function AppWithCodeViewNative({
|
|
|
55029
55249
|
{
|
|
55030
55250
|
className: styles$e.headerButton,
|
|
55031
55251
|
onClick: () => {
|
|
55032
|
-
openPlayground();
|
|
55252
|
+
void openPlayground();
|
|
55033
55253
|
},
|
|
55034
55254
|
children: /* @__PURE__ */ jsx(RxOpenInNewWindow, {})
|
|
55035
55255
|
}
|
|
@@ -56613,21 +56833,21 @@ const FormItem = memo(function FormItem2({
|
|
|
56613
56833
|
return safeBindTo;
|
|
56614
56834
|
}
|
|
56615
56835
|
}, [bindTo, defaultId, itemIndex, parentFormItemId]);
|
|
56616
|
-
const labelWidthValue = useFormContextPart((value2) => labelWidth || value2.itemLabelWidth);
|
|
56836
|
+
const labelWidthValue = useFormContextPart((value2) => labelWidth || (value2 == null ? void 0 : value2.itemLabelWidth));
|
|
56617
56837
|
const labelBreakValue = useFormContextPart(
|
|
56618
|
-
(value2) => labelBreak2 !== void 0 ? labelBreak2 : value2.itemLabelBreak
|
|
56838
|
+
(value2) => labelBreak2 !== void 0 ? labelBreak2 : value2 == null ? void 0 : value2.itemLabelBreak
|
|
56619
56839
|
);
|
|
56620
56840
|
const labelPositionValue = useFormContextPart(
|
|
56621
|
-
(value2) => labelPosition || value2.itemLabelPosition || DEFAULT_LABEL_POSITIONS[type]
|
|
56841
|
+
(value2) => labelPosition || (value2 == null ? void 0 : value2.itemLabelPosition) || DEFAULT_LABEL_POSITIONS[type]
|
|
56622
56842
|
);
|
|
56623
56843
|
const initialValueFromSubject = useFormContextPart(
|
|
56624
|
-
(value2) => getByPath(value2.originalSubject, formItemId)
|
|
56844
|
+
(value2) => getByPath(value2 == null ? void 0 : value2.originalSubject, formItemId)
|
|
56625
56845
|
);
|
|
56626
56846
|
const initialValue = initialValueFromSubject === void 0 ? initialValueFromProps : initialValueFromSubject;
|
|
56627
|
-
const value = useFormContextPart((value2) => getByPath(value2.subject, formItemId));
|
|
56628
|
-
const validationResult = useFormContextPart((value2) => value2.validationResults[formItemId]);
|
|
56629
|
-
const dispatch = useFormContextPart((value2) => value2.dispatch);
|
|
56630
|
-
const formEnabled = useFormContextPart((value2) => value2.enabled);
|
|
56847
|
+
const value = useFormContextPart((value2) => getByPath(value2 == null ? void 0 : value2.subject, formItemId));
|
|
56848
|
+
const validationResult = useFormContextPart((value2) => value2 == null ? void 0 : value2.validationResults[formItemId]);
|
|
56849
|
+
const dispatch = useFormContextPart((value2) => value2 == null ? void 0 : value2.dispatch);
|
|
56850
|
+
const formEnabled = useFormContextPart((value2) => value2 == null ? void 0 : value2.enabled);
|
|
56631
56851
|
const isEnabled2 = enabled2 && formEnabled;
|
|
56632
56852
|
useEffect(() => {
|
|
56633
56853
|
if (initialValue !== void 0) {
|
|
@@ -56897,6 +57117,10 @@ const FormItem = memo(function FormItem2({
|
|
|
56897
57117
|
}
|
|
56898
57118
|
}
|
|
56899
57119
|
const [animateContainerRef] = useAutoAnimate({ duration: 100 });
|
|
57120
|
+
const isInsideForm = useIsInsideForm();
|
|
57121
|
+
if (!isInsideForm) {
|
|
57122
|
+
throw new Error("FormItem must be used inside a Form");
|
|
57123
|
+
}
|
|
56900
57124
|
return /* @__PURE__ */ jsx(
|
|
56901
57125
|
ItemWithLabel,
|
|
56902
57126
|
{
|
|
@@ -56965,7 +57189,7 @@ const filteredValidationSeverityValues = validationSeverityValues.filter(
|
|
|
56965
57189
|
const FormItemMd = createMetadata({
|
|
56966
57190
|
status: "stable",
|
|
56967
57191
|
allowArbitraryProps: true,
|
|
56968
|
-
description: "`FormItem` wraps individual input controls within a `Form`, providing data binding, validation, labeling, and layout functionality. It connects form controls to the parent form's data model and handles validation feedback automatically.",
|
|
57192
|
+
description: "`FormItem` wraps individual input controls within a `Form`, providing data binding, validation, labeling, and layout functionality. It connects form controls to the parent form's data model and handles validation feedback automatically.\n\n> **Note:** `FormItem` must be used inside a `Form` component.",
|
|
56969
57193
|
props: {
|
|
56970
57194
|
bindTo: {
|
|
56971
57195
|
description: "This property binds a particular input field to one of the attributes of the `Form` data. It names the property of the form's `data` data to get the input's initial value.When the field is saved, its value will be stored in the `data` property with this name. If the property is not set, the input will be bound to an internal data field but not submitted."
|