xmlui 0.10.18 → 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-Cy6Emsex.mjs → index-Ckhnrf1F.mjs} +1093 -714
- package/dist/lib/index.css +1 -1
- package/dist/{metadata/initMock-D0wDKF_I.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-CB63ngkU.mjs → collectedComponentMetadata-Dg7P-zOz.mjs} +1071 -701
- package/dist/{lib/initMock-B-rmnC-t.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/AutoComplete.spec.js +25 -4
- 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/Checkbox/Checkbox.spec.js +5 -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 +28 -23
- package/dist/scripts/src/components/DatePicker/DatePicker.js +14 -9
- package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +21 -18
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +24 -21
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +3 -3
- package/dist/scripts/src/components/FileInput/FileInput.spec.js +7 -0
- 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/Icon/Icon.js +1 -1
- 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 +7 -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 +14 -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/Select.spec.js +286 -217
- 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/Slider/Slider.spec.js +7 -0
- package/dist/scripts/src/components/Spinner/Spinner.spec.js +1 -1
- package/dist/scripts/src/components/Switch/Switch.spec.js +24 -17
- package/dist/scripts/src/components/Table/Table.js +11 -1
- package/dist/scripts/src/components/Table/Table.spec.js +272 -0
- package/dist/scripts/src/components/Table/TableNative.js +162 -5
- package/dist/scripts/src/components/Table/useRowSelection.js +14 -23
- package/dist/scripts/src/components/TextArea/TextArea.spec.js +59 -8
- package/dist/scripts/src/components/TextBox/TextBox.spec.js +7 -0
- 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 +47 -40
- package/dist/scripts/src/components/TimeInput/TimeInputNative.js +6 -20
- package/dist/scripts/src/components/Toggle/Toggle.js +3 -1
- 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 +34 -34
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import { useQuery, useInfiniteQuery, QueryClientProvider, QueryClient } from "@t
|
|
|
9
9
|
import produce, { createDraft, finishDraft, enableMapSet } from "immer";
|
|
10
10
|
import { throttle, get, isNil, omitBy, isUndefined, noop as noop$2, isPlainObject, isEqual, isEmpty, union, uniq, orderBy as orderBy$1, isObject, isArray, groupBy, sortBy, omit, isNumber, isString as isString$1, set, isNaN as isNaN$1, cloneDeep, merge, defaultTo, capitalize, unset, setWith, keyBy, pick } from "lodash-es";
|
|
11
11
|
import { formatDistanceToNow, parse, format, parseISO, isValid, isToday, isYesterday, isTomorrow, isThisWeek, formatRelative, isThisYear, isSameDay, differenceInMinutes } from "date-fns";
|
|
12
|
-
import { l as labelPositionMd, o as orientationOptionMd, v as validationStatusMd, b as alignmentOptionValues, i as isSizeType, L as LinkTargetMd, c as alignmentOptionMd, d as iconPositionMd, e as buttonTypesMd, s as sizeMd, f as buttonThemeMd, g as buttonVariantMd, h as layoutOptionKeys, T as TextVariantElement, V as VariantPropsKeys, j as variantOptionsMd, k as scrollAnchoringValues, m as buttonThemeNames, n as iconPositionNames, p as buttonVariantNames, t as triggerPositionNames, q as httpMethodNames, r as orientationOptionValues, u as viewportSizeNames, M as MetadataProvider } from "./metadata-utils-
|
|
12
|
+
import { l as labelPositionMd, o as orientationOptionMd, v as validationStatusMd, b as alignmentOptionValues, i as isSizeType, L as LinkTargetMd, c as alignmentOptionMd, d as iconPositionMd, e as buttonTypesMd, s as sizeMd, f as buttonThemeMd, g as buttonVariantMd, h as layoutOptionKeys, T as TextVariantElement, V as VariantPropsKeys, j as variantOptionsMd, k as scrollAnchoringValues, m as buttonThemeNames, n as iconPositionNames, p as buttonVariantNames, t as triggerPositionNames, q as httpMethodNames, r as orientationOptionValues, u as viewportSizeNames, M as MetadataProvider } from "./metadata-utils-BTIt1_wE.mjs";
|
|
13
13
|
import classnames from "classnames";
|
|
14
14
|
import Color from "color";
|
|
15
15
|
import * as ReactDropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
@@ -23,7 +23,7 @@ import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
|
23
23
|
import { useContextSelector, createContext as createContext$1 } from "use-context-selector";
|
|
24
24
|
import { FixedSizeList } from "react-window";
|
|
25
25
|
import AutoSizer from "react-virtualized-auto-sizer";
|
|
26
|
-
import { F as Parser, G as T_CALCULATED_MEMBER_ACCESS_EXPRESSION, H as T_MEMBER_ACCESS_EXPRESSION, I as T_IDENTIFIER, J as T_PREFIX_OP_EXPRESSION, K as T_FUNCTION_DECLARATION, L as T_ARROW_EXPRESSION, M as createXmlUiTreeNodeId, O as T_EMPTY_STATEMENT, Q as T_SWITCH_STATEMENT, R as T_TRY_STATEMENT, V as T_THROW_STATEMENT, W as T_FOR_OF_STATEMENT, X as T_FOR_IN_STATEMENT, Y as T_FOR_STATEMENT, Z as T_EXPRESSION_STATEMENT, _ as T_BREAK_STATEMENT, $ as T_CONTINUE_STATEMENT, a0 as T_DO_WHILE_STATEMENT, a1 as T_WHILE_STATEMENT, a2 as T_RETURN_STATEMENT, a3 as T_IF_STATEMENT, a4 as T_CONST_STATEMENT, a5 as T_LET_STATEMENT, a6 as T_ARROW_EXPRESSION_STATEMENT, a7 as T_BLOCK_STATEMENT, a8 as T_VAR_STATEMENT, a9 as T_ASSIGNMENT_EXPRESSION, aa as T_LITERAL, ab as T_SPREAD_EXPRESSION, ac as T_FUNCTION_INVOCATION_EXPRESSION, ad as T_POSTFIX_OP_EXPRESSION, ae as T_CONDITIONAL_EXPRESSION, af as T_BINARY_EXPRESSION, ag as T_UNARY_EXPRESSION, ah as T_OBJECT_LITERAL, ai as T_ARRAY_LITERAL, aj as T_SEQUENCE_EXPRESSION, ak as T_TEMPLATE_LITERAL_EXPRESSION, al as T_VAR_DECLARATION, am as T_DESTRUCTURE, h as createXmlUiParser, w as nodeToComponentDef, D as DiagnosticCategory, E as ErrCodes, S as SyntaxKind, an as PARSED_MARK_PROP, ao as collectCodeBehindFromSource, ap as removeCodeBehindTokensFromTree } from "./transform-
|
|
26
|
+
import { F as Parser, G as T_CALCULATED_MEMBER_ACCESS_EXPRESSION, H as T_MEMBER_ACCESS_EXPRESSION, I as T_IDENTIFIER, J as T_PREFIX_OP_EXPRESSION, K as T_FUNCTION_DECLARATION, L as T_ARROW_EXPRESSION, M as createXmlUiTreeNodeId, O as T_EMPTY_STATEMENT, Q as T_SWITCH_STATEMENT, R as T_TRY_STATEMENT, V as T_THROW_STATEMENT, W as T_FOR_OF_STATEMENT, X as T_FOR_IN_STATEMENT, Y as T_FOR_STATEMENT, Z as T_EXPRESSION_STATEMENT, _ as T_BREAK_STATEMENT, $ as T_CONTINUE_STATEMENT, a0 as T_DO_WHILE_STATEMENT, a1 as T_WHILE_STATEMENT, a2 as T_RETURN_STATEMENT, a3 as T_IF_STATEMENT, a4 as T_CONST_STATEMENT, a5 as T_LET_STATEMENT, a6 as T_ARROW_EXPRESSION_STATEMENT, a7 as T_BLOCK_STATEMENT, a8 as T_VAR_STATEMENT, a9 as T_ASSIGNMENT_EXPRESSION, aa as T_LITERAL, ab as T_SPREAD_EXPRESSION, ac as T_FUNCTION_INVOCATION_EXPRESSION, ad as T_POSTFIX_OP_EXPRESSION, ae as T_CONDITIONAL_EXPRESSION, af as T_BINARY_EXPRESSION, ag as T_UNARY_EXPRESSION, ah as T_OBJECT_LITERAL, ai as T_ARRAY_LITERAL, aj as T_SEQUENCE_EXPRESSION, ak as T_TEMPLATE_LITERAL_EXPRESSION, al as T_VAR_DECLARATION, am as T_DESTRUCTURE, h as createXmlUiParser, w as nodeToComponentDef, D as DiagnosticCategory, E as ErrCodes, S as SyntaxKind, an as PARSED_MARK_PROP, ao as collectCodeBehindFromSource, ap as removeCodeBehindTokensFromTree } from "./transform-Tooy42EB.mjs";
|
|
27
27
|
import { useReactTable, getPaginationRowModel, getCoreRowModel, flexRender } from "@tanstack/react-table";
|
|
28
28
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
29
29
|
import { RenderPropSticky } from "react-sticky-el";
|
|
@@ -31,10 +31,9 @@ import * as dropzone from "react-dropzone";
|
|
|
31
31
|
import toast, { Toaster, ToastBar } from "react-hot-toast";
|
|
32
32
|
import { Virtualizer } from "virtua";
|
|
33
33
|
import memoizeOne from "memoize-one";
|
|
34
|
-
import {
|
|
35
|
-
import { Popover, PopoverTrigger, Portal, PopoverContent, PopoverPortal } from "@radix-ui/react-popover";
|
|
36
|
-
import { Command, CommandInput, CommandList, CommandEmpty, CommandItem } from "cmdk";
|
|
34
|
+
import { Popover, PopoverTrigger, Portal as Portal$1, PopoverContent, PopoverPortal } from "@radix-ui/react-popover";
|
|
37
35
|
import { FocusScope } from "@radix-ui/react-focus-scope";
|
|
36
|
+
import { Item as Item$1, ItemText, ItemIndicator, Root, Trigger, Portal, Content, ScrollUpButton, Viewport, ScrollDownButton, SelectItemText } from "@radix-ui/react-select";
|
|
38
37
|
import * as InnerRadioGroup from "@radix-ui/react-radio-group";
|
|
39
38
|
import { DayPicker } from "react-day-picker";
|
|
40
39
|
import { Root as Root$1, Track, Range, Thumb } from "@radix-ui/react-slider";
|
|
@@ -57,7 +56,7 @@ import { Area, ResponsiveContainer, AreaChart as AreaChart$1, XAxis, YAxis, Cart
|
|
|
57
56
|
import { MemoryRouter, HashRouter, BrowserRouter } from "react-router-dom";
|
|
58
57
|
import { useSpring, useInView, animated } from "@react-spring/web";
|
|
59
58
|
import { AnimatePresence, motion } from "framer-motion";
|
|
60
|
-
import { c as componentFileExtension, a as codeBehindFileExtension, g as getLintSeverity, L as LintSeverity, l as lintApp, p as printComponentLints, d as lintErrorsComponent } from "./xmlui-serializer-
|
|
59
|
+
import { c as componentFileExtension, a as codeBehindFileExtension, g as getLintSeverity, L as LintSeverity, l as lintApp, p as printComponentLints, d as lintErrorsComponent } from "./xmlui-serializer-uCYa8_tZ.mjs";
|
|
61
60
|
var client = {};
|
|
62
61
|
var m = require$$0;
|
|
63
62
|
if (process.env.NODE_ENV === "production") {
|
|
@@ -300,10 +299,13 @@ const useEvent = (callback) => {
|
|
|
300
299
|
useInsertionEffect(() => {
|
|
301
300
|
callbackRef.current = callback;
|
|
302
301
|
}, [callback]);
|
|
303
|
-
return useCallback(
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
302
|
+
return useCallback(
|
|
303
|
+
(...args) => {
|
|
304
|
+
const latestFn = callbackRef.current;
|
|
305
|
+
return latestFn == null ? void 0 : latestFn(...args);
|
|
306
|
+
},
|
|
307
|
+
[callbackRef]
|
|
308
|
+
);
|
|
307
309
|
};
|
|
308
310
|
function humanFileSize(bytes, si = false, dp = 1) {
|
|
309
311
|
const thresh = si ? 1e3 : 1024;
|
|
@@ -592,7 +594,7 @@ function distinct(arr) {
|
|
|
592
594
|
function asyncThrottle(func, wait, options2) {
|
|
593
595
|
const throttled = throttle(
|
|
594
596
|
(resolve, reject, args) => {
|
|
595
|
-
func(...args).then(resolve).catch(reject);
|
|
597
|
+
void func(...args).then(resolve).catch(reject);
|
|
596
598
|
},
|
|
597
599
|
wait,
|
|
598
600
|
options2
|
|
@@ -751,18 +753,18 @@ function getElementRef(element) {
|
|
|
751
753
|
return element.props.ref || element.ref;
|
|
752
754
|
}
|
|
753
755
|
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)"}'`;
|
|
754
|
-
const container$3 = "
|
|
755
|
-
const top$1 = "
|
|
756
|
-
const end = "
|
|
757
|
-
const bottom$1 = "
|
|
758
|
-
const start = "
|
|
759
|
-
const shrinkToLabel = "
|
|
760
|
-
const inputLabel = "
|
|
761
|
-
const disabled$
|
|
762
|
-
const labelBreak = "
|
|
763
|
-
const required = "
|
|
764
|
-
const requiredMark = "
|
|
765
|
-
const itemWithLabel = "
|
|
756
|
+
const container$3 = "_container_1pi4w_14";
|
|
757
|
+
const top$1 = "_top_1pi4w_21";
|
|
758
|
+
const end = "_end_1pi4w_26";
|
|
759
|
+
const bottom$1 = "_bottom_1pi4w_32";
|
|
760
|
+
const start = "_start_1pi4w_37";
|
|
761
|
+
const shrinkToLabel = "_shrinkToLabel_1pi4w_43";
|
|
762
|
+
const inputLabel = "_inputLabel_1pi4w_46";
|
|
763
|
+
const disabled$c = "_disabled_1pi4w_59";
|
|
764
|
+
const labelBreak = "_labelBreak_1pi4w_63";
|
|
765
|
+
const required = "_required_1pi4w_68";
|
|
766
|
+
const requiredMark = "_requiredMark_1pi4w_75";
|
|
767
|
+
const itemWithLabel = "_itemWithLabel_1pi4w_79";
|
|
766
768
|
const styles$1k = {
|
|
767
769
|
themeVars: themeVars$10,
|
|
768
770
|
container: container$3,
|
|
@@ -772,7 +774,7 @@ const styles$1k = {
|
|
|
772
774
|
start,
|
|
773
775
|
shrinkToLabel,
|
|
774
776
|
inputLabel,
|
|
775
|
-
disabled: disabled$
|
|
777
|
+
disabled: disabled$c,
|
|
776
778
|
labelBreak,
|
|
777
779
|
required,
|
|
778
780
|
requiredMark,
|
|
@@ -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);
|
|
@@ -1719,7 +1718,7 @@ const DropdownMenuSubContent = "_DropdownMenuSubContent_iu9k6_19";
|
|
|
1719
1718
|
const DropdownMenuItem = "_DropdownMenuItem_iu9k6_29";
|
|
1720
1719
|
const DropdownMenuSubTrigger = "_DropdownMenuSubTrigger_iu9k6_30";
|
|
1721
1720
|
const active$3 = "_active_iu9k6_53";
|
|
1722
|
-
const disabled$
|
|
1721
|
+
const disabled$b = "_disabled_iu9k6_63";
|
|
1723
1722
|
const wrapper$m = "_wrapper_iu9k6_74";
|
|
1724
1723
|
const DropdownMenuSeparator = "_DropdownMenuSeparator_iu9k6_78";
|
|
1725
1724
|
const styles$1h = {
|
|
@@ -1729,7 +1728,7 @@ const styles$1h = {
|
|
|
1729
1728
|
DropdownMenuItem,
|
|
1730
1729
|
DropdownMenuSubTrigger,
|
|
1731
1730
|
active: active$3,
|
|
1732
|
-
disabled: disabled$
|
|
1731
|
+
disabled: disabled$b,
|
|
1733
1732
|
wrapper: wrapper$m,
|
|
1734
1733
|
DropdownMenuSeparator
|
|
1735
1734
|
};
|
|
@@ -2132,7 +2131,7 @@ function useCustomSvgIconRenderer(resourceUrl) {
|
|
|
2132
2131
|
if (!resourceUrl) {
|
|
2133
2132
|
return;
|
|
2134
2133
|
}
|
|
2135
|
-
ensureCustomSvgIcon(resourceUrl);
|
|
2134
|
+
void ensureCustomSvgIcon(resourceUrl);
|
|
2136
2135
|
}, [ensureCustomSvgIcon, resourceUrl]);
|
|
2137
2136
|
const customSvg = resourceUrl ? customSvgs[resourceUrl] : null;
|
|
2138
2137
|
const iconRenderer = useCallback(
|
|
@@ -2324,7 +2323,6 @@ class StyleLexer {
|
|
|
2324
2323
|
* Fetches the next token from the input stream
|
|
2325
2324
|
*/
|
|
2326
2325
|
fetch() {
|
|
2327
|
-
const lexer = this;
|
|
2328
2326
|
const input2 = this.input;
|
|
2329
2327
|
const startPos = this._prefetchedPos || input2.position;
|
|
2330
2328
|
this._lastFetchPosition = this.input.position;
|
|
@@ -2334,6 +2332,19 @@ class StyleLexer {
|
|
|
2334
2332
|
let ch = null;
|
|
2335
2333
|
let useResolver = false;
|
|
2336
2334
|
let stringWrapper = "";
|
|
2335
|
+
const appendTokenChar = () => {
|
|
2336
|
+
text2 += ch;
|
|
2337
|
+
this._prefetched = null;
|
|
2338
|
+
this._prefetchedPos = null;
|
|
2339
|
+
lastEndPos = input2.position;
|
|
2340
|
+
};
|
|
2341
|
+
const fetchNextChar = () => {
|
|
2342
|
+
if (!this._prefetched) {
|
|
2343
|
+
this._prefetchedPos = input2.position;
|
|
2344
|
+
this._prefetched = input2.get();
|
|
2345
|
+
}
|
|
2346
|
+
return this._prefetched;
|
|
2347
|
+
};
|
|
2337
2348
|
let phase = 0;
|
|
2338
2349
|
while (true) {
|
|
2339
2350
|
ch = fetchNextChar();
|
|
@@ -2450,19 +2461,6 @@ class StyleLexer {
|
|
|
2450
2461
|
}
|
|
2451
2462
|
appendTokenChar();
|
|
2452
2463
|
}
|
|
2453
|
-
function appendTokenChar() {
|
|
2454
|
-
text2 += ch;
|
|
2455
|
-
lexer._prefetched = null;
|
|
2456
|
-
lexer._prefetchedPos = null;
|
|
2457
|
-
lastEndPos = input2.position;
|
|
2458
|
-
}
|
|
2459
|
-
function fetchNextChar() {
|
|
2460
|
-
if (!lexer._prefetched) {
|
|
2461
|
-
lexer._prefetchedPos = input2.position;
|
|
2462
|
-
lexer._prefetched = input2.get();
|
|
2463
|
-
}
|
|
2464
|
-
return lexer._prefetched;
|
|
2465
|
-
}
|
|
2466
2464
|
function makeToken() {
|
|
2467
2465
|
if (useResolver) {
|
|
2468
2466
|
tokenType = styleKeywords[text2] ?? (isIdStart(text2[0]) ? StyleTokenType.Identifier : StyleTokenType.Unknown);
|
|
@@ -2913,7 +2911,78 @@ class StyleParser {
|
|
|
2913
2911
|
const startToken = this._lexer.peek();
|
|
2914
2912
|
const themeIdNode = this.tryThemeId();
|
|
2915
2913
|
if (themeIdNode) return themeIdNode;
|
|
2916
|
-
const
|
|
2914
|
+
const parseColorParameters = (pars) => {
|
|
2915
|
+
this._lexer.get();
|
|
2916
|
+
this.expectToken(StyleTokenType.LParent, "S007");
|
|
2917
|
+
for (let i = 0; i < pars.length; i++) {
|
|
2918
|
+
const value = this.getNumber();
|
|
2919
|
+
if (value === null) return false;
|
|
2920
|
+
const unit = this._lexer.peek(true);
|
|
2921
|
+
switch (pars[i]) {
|
|
2922
|
+
case "V%":
|
|
2923
|
+
if (unit.type === StyleTokenType.Percentage) {
|
|
2924
|
+
if (value < 0 || value > 100) {
|
|
2925
|
+
this.reportError("S008");
|
|
2926
|
+
return false;
|
|
2927
|
+
}
|
|
2928
|
+
this._lexer.get();
|
|
2929
|
+
} else {
|
|
2930
|
+
if (value < 0 || value > 255) {
|
|
2931
|
+
this.reportError("S009");
|
|
2932
|
+
return false;
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
break;
|
|
2936
|
+
case "%":
|
|
2937
|
+
if (unit.type !== StyleTokenType.Percentage || value < 0 || value > 100) {
|
|
2938
|
+
this.reportError("S008");
|
|
2939
|
+
return false;
|
|
2940
|
+
}
|
|
2941
|
+
this._lexer.get();
|
|
2942
|
+
break;
|
|
2943
|
+
case "angle":
|
|
2944
|
+
if (unit.type === StyleTokenType.Angle) {
|
|
2945
|
+
this._lexer.get();
|
|
2946
|
+
}
|
|
2947
|
+
break;
|
|
2948
|
+
case "alpha":
|
|
2949
|
+
if (unit.type === StyleTokenType.Percentage) {
|
|
2950
|
+
if (value < 0 || value > 100) {
|
|
2951
|
+
this.reportError("S008");
|
|
2952
|
+
return false;
|
|
2953
|
+
}
|
|
2954
|
+
this._lexer.get();
|
|
2955
|
+
} else {
|
|
2956
|
+
if (value < 0 || value > 1) {
|
|
2957
|
+
this.reportError("S011");
|
|
2958
|
+
return false;
|
|
2959
|
+
}
|
|
2960
|
+
}
|
|
2961
|
+
break;
|
|
2962
|
+
}
|
|
2963
|
+
if (i === pars.length - 1) continue;
|
|
2964
|
+
let sepToken = this._lexer.peek(true);
|
|
2965
|
+
if (sepToken.type === StyleTokenType.Ws) {
|
|
2966
|
+
this._lexer.get();
|
|
2967
|
+
sepToken = this._lexer.peek(true);
|
|
2968
|
+
if (sepToken.type === StyleTokenType.Comma) {
|
|
2969
|
+
this._lexer.get();
|
|
2970
|
+
}
|
|
2971
|
+
} else {
|
|
2972
|
+
this.expectToken(StyleTokenType.Comma);
|
|
2973
|
+
}
|
|
2974
|
+
sepToken = this._lexer.peek();
|
|
2975
|
+
if (sepToken.type === StyleTokenType.Ws) {
|
|
2976
|
+
this._lexer.get();
|
|
2977
|
+
}
|
|
2978
|
+
}
|
|
2979
|
+
let aSepToken = this._lexer.peek();
|
|
2980
|
+
if (aSepToken.type === StyleTokenType.Ws) {
|
|
2981
|
+
this._lexer.get();
|
|
2982
|
+
}
|
|
2983
|
+
this.expectToken(StyleTokenType.RParent, "S010");
|
|
2984
|
+
return true;
|
|
2985
|
+
};
|
|
2917
2986
|
switch (startToken.type) {
|
|
2918
2987
|
case StyleTokenType.ColorName:
|
|
2919
2988
|
this._lexer.get();
|
|
@@ -2965,78 +3034,6 @@ class StyleParser {
|
|
|
2965
3034
|
this.reportError("S005", startToken);
|
|
2966
3035
|
return null;
|
|
2967
3036
|
}
|
|
2968
|
-
function parseColorParameters(pars) {
|
|
2969
|
-
parser._lexer.get();
|
|
2970
|
-
parser.expectToken(StyleTokenType.LParent, "S007");
|
|
2971
|
-
for (let i = 0; i < pars.length; i++) {
|
|
2972
|
-
const value = parser.getNumber();
|
|
2973
|
-
if (value === null) return false;
|
|
2974
|
-
const unit = parser._lexer.peek(true);
|
|
2975
|
-
switch (pars[i]) {
|
|
2976
|
-
case "V%":
|
|
2977
|
-
if (unit.type === StyleTokenType.Percentage) {
|
|
2978
|
-
if (value < 0 || value > 100) {
|
|
2979
|
-
parser.reportError("S008");
|
|
2980
|
-
return false;
|
|
2981
|
-
}
|
|
2982
|
-
parser._lexer.get();
|
|
2983
|
-
} else {
|
|
2984
|
-
if (value < 0 || value > 255) {
|
|
2985
|
-
parser.reportError("S009");
|
|
2986
|
-
return false;
|
|
2987
|
-
}
|
|
2988
|
-
}
|
|
2989
|
-
break;
|
|
2990
|
-
case "%":
|
|
2991
|
-
if (unit.type !== StyleTokenType.Percentage || value < 0 || value > 100) {
|
|
2992
|
-
parser.reportError("S008");
|
|
2993
|
-
return false;
|
|
2994
|
-
}
|
|
2995
|
-
parser._lexer.get();
|
|
2996
|
-
break;
|
|
2997
|
-
case "angle":
|
|
2998
|
-
if (unit.type === StyleTokenType.Angle) {
|
|
2999
|
-
parser._lexer.get();
|
|
3000
|
-
}
|
|
3001
|
-
break;
|
|
3002
|
-
case "alpha":
|
|
3003
|
-
if (unit.type === StyleTokenType.Percentage) {
|
|
3004
|
-
if (value < 0 || value > 100) {
|
|
3005
|
-
parser.reportError("S008");
|
|
3006
|
-
return false;
|
|
3007
|
-
}
|
|
3008
|
-
parser._lexer.get();
|
|
3009
|
-
} else {
|
|
3010
|
-
if (value < 0 || value > 1) {
|
|
3011
|
-
parser.reportError("S011");
|
|
3012
|
-
return false;
|
|
3013
|
-
}
|
|
3014
|
-
}
|
|
3015
|
-
break;
|
|
3016
|
-
}
|
|
3017
|
-
if (i === pars.length - 1) continue;
|
|
3018
|
-
let sepToken = parser._lexer.peek(true);
|
|
3019
|
-
if (sepToken.type === StyleTokenType.Ws) {
|
|
3020
|
-
parser._lexer.get();
|
|
3021
|
-
sepToken = parser._lexer.peek(true);
|
|
3022
|
-
if (sepToken.type === StyleTokenType.Comma) {
|
|
3023
|
-
parser._lexer.get();
|
|
3024
|
-
}
|
|
3025
|
-
} else {
|
|
3026
|
-
parser.expectToken(StyleTokenType.Comma);
|
|
3027
|
-
}
|
|
3028
|
-
sepToken = parser._lexer.peek();
|
|
3029
|
-
if (sepToken.type === StyleTokenType.Ws) {
|
|
3030
|
-
parser._lexer.get();
|
|
3031
|
-
}
|
|
3032
|
-
}
|
|
3033
|
-
let aSepToken = parser._lexer.peek();
|
|
3034
|
-
if (aSepToken.type === StyleTokenType.Ws) {
|
|
3035
|
-
parser._lexer.get();
|
|
3036
|
-
}
|
|
3037
|
-
parser.expectToken(StyleTokenType.RParent, "S010");
|
|
3038
|
-
return true;
|
|
3039
|
-
}
|
|
3040
3037
|
}
|
|
3041
3038
|
getNumber() {
|
|
3042
3039
|
const token = this._lexer.get();
|
|
@@ -4277,7 +4274,7 @@ const icon$4 = "_icon_8uiju_65";
|
|
|
4277
4274
|
const includeHoverIndicator = "_includeHoverIndicator_8uiju_71";
|
|
4278
4275
|
const displayActive = "_displayActive_8uiju_106";
|
|
4279
4276
|
const navItemActive = "_navItemActive_8uiju_118";
|
|
4280
|
-
const disabled$
|
|
4277
|
+
const disabled$a = "_disabled_8uiju_153";
|
|
4281
4278
|
const vertical$6 = "_vertical_8uiju_157";
|
|
4282
4279
|
const innerContent$1 = "_innerContent_8uiju_170";
|
|
4283
4280
|
const navLinkStyles = {
|
|
@@ -4288,7 +4285,7 @@ const navLinkStyles = {
|
|
|
4288
4285
|
includeHoverIndicator,
|
|
4289
4286
|
displayActive,
|
|
4290
4287
|
navItemActive,
|
|
4291
|
-
disabled: disabled$
|
|
4288
|
+
disabled: disabled$a,
|
|
4292
4289
|
vertical: vertical$6,
|
|
4293
4290
|
innerContent: innerContent$1
|
|
4294
4291
|
};
|
|
@@ -5851,13 +5848,13 @@ const navLinkComponentRenderer = createComponentRenderer(
|
|
|
5851
5848
|
const themeVars$N = `'{"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)"}'`;
|
|
5852
5849
|
const container$2 = "_container_1iujp_14";
|
|
5853
5850
|
const active$2 = "_active_1iujp_75";
|
|
5854
|
-
const disabled$
|
|
5851
|
+
const disabled$9 = "_disabled_1iujp_79";
|
|
5855
5852
|
const iconWrapper = "_iconWrapper_1iujp_94";
|
|
5856
5853
|
const styles$17 = {
|
|
5857
5854
|
themeVars: themeVars$N,
|
|
5858
5855
|
container: container$2,
|
|
5859
5856
|
active: active$2,
|
|
5860
|
-
disabled: disabled$
|
|
5857
|
+
disabled: disabled$9,
|
|
5861
5858
|
iconWrapper
|
|
5862
5859
|
};
|
|
5863
5860
|
const defaultProps$15 = {
|
|
@@ -6032,7 +6029,7 @@ const themeVars$M = `'{"backgroundColor-Tree-row--selected": "var(--xmlui-backgr
|
|
|
6032
6029
|
const wrapper$j = "_wrapper_eyur1_14";
|
|
6033
6030
|
const rowWrapper = "_rowWrapper_eyur1_22";
|
|
6034
6031
|
const selected$2 = "_selected_eyur1_39";
|
|
6035
|
-
const focused$
|
|
6032
|
+
const focused$3 = "_focused_eyur1_46";
|
|
6036
6033
|
const gutter = "_gutter_eyur1_56";
|
|
6037
6034
|
const toggleWrapper = "_toggleWrapper_eyur1_63";
|
|
6038
6035
|
const hidden$2 = "_hidden_eyur1_72";
|
|
@@ -6044,7 +6041,7 @@ const styles$16 = {
|
|
|
6044
6041
|
wrapper: wrapper$j,
|
|
6045
6042
|
rowWrapper,
|
|
6046
6043
|
selected: selected$2,
|
|
6047
|
-
focused: focused$
|
|
6044
|
+
focused: focused$3,
|
|
6048
6045
|
gutter,
|
|
6049
6046
|
toggleWrapper,
|
|
6050
6047
|
hidden: hidden$2,
|
|
@@ -6810,7 +6807,7 @@ const TreeComponent = memo((props) => {
|
|
|
6810
6807
|
if (currentIndex >= 0) {
|
|
6811
6808
|
const currentNode = flatTreeData[currentIndex];
|
|
6812
6809
|
if (currentNode.hasChildren && !currentNode.isExpanded) {
|
|
6813
|
-
toggleNode(currentNode);
|
|
6810
|
+
void toggleNode(currentNode);
|
|
6814
6811
|
} else if (currentNode.hasChildren && currentNode.isExpanded && currentIndex + 1 < flatTreeData.length) {
|
|
6815
6812
|
newIndex = currentIndex + 1;
|
|
6816
6813
|
}
|
|
@@ -6822,7 +6819,7 @@ const TreeComponent = memo((props) => {
|
|
|
6822
6819
|
if (currentIndex >= 0) {
|
|
6823
6820
|
const currentNode = flatTreeData[currentIndex];
|
|
6824
6821
|
if (currentNode.hasChildren && currentNode.isExpanded) {
|
|
6825
|
-
toggleNode(currentNode);
|
|
6822
|
+
void toggleNode(currentNode);
|
|
6826
6823
|
} else if (currentNode.depth > 0) {
|
|
6827
6824
|
for (let i = currentIndex - 1; i >= 0; i--) {
|
|
6828
6825
|
if (flatTreeData[i].depth < currentNode.depth) {
|
|
@@ -6854,7 +6851,7 @@ const TreeComponent = memo((props) => {
|
|
|
6854
6851
|
newIndex = currentIndex;
|
|
6855
6852
|
}
|
|
6856
6853
|
if (e.key === "Enter" && currentNode.hasChildren) {
|
|
6857
|
-
toggleNode(currentNode);
|
|
6854
|
+
void toggleNode(currentNode);
|
|
6858
6855
|
}
|
|
6859
6856
|
}
|
|
6860
6857
|
handled = true;
|
|
@@ -9168,7 +9165,7 @@ function processStatementQueue(statements, evalContext, thread) {
|
|
|
9168
9165
|
thread.breakLabelValue = queue.length > 0 ? queue.peek().label : -1;
|
|
9169
9166
|
let outcome;
|
|
9170
9167
|
try {
|
|
9171
|
-
(_a2 = evalContext == null ? void 0 : evalContext.onStatementStarted) == null ? void 0 : _a2.call(evalContext, evalContext, queueItem.statement);
|
|
9168
|
+
void ((_a2 = evalContext == null ? void 0 : evalContext.onStatementStarted) == null ? void 0 : _a2.call(evalContext, evalContext, queueItem.statement));
|
|
9172
9169
|
outcome = processStatement(
|
|
9173
9170
|
queueItem.statement,
|
|
9174
9171
|
queueItem.execInfo ?? {},
|
|
@@ -9208,7 +9205,7 @@ function processStatementQueue(statements, evalContext, thread) {
|
|
|
9208
9205
|
diagInfo.clearToLabels++;
|
|
9209
9206
|
}
|
|
9210
9207
|
}
|
|
9211
|
-
(_b = evalContext == null ? void 0 : evalContext.onStatementCompleted) == null ? void 0 : _b.call(evalContext, evalContext, queueItem.statement);
|
|
9208
|
+
void ((_b = evalContext == null ? void 0 : evalContext.onStatementCompleted) == null ? void 0 : _b.call(evalContext, evalContext, queueItem.statement));
|
|
9212
9209
|
if (queue.length > diagInfo.maxQueueLength) {
|
|
9213
9210
|
diagInfo.maxQueueLength = queue.length;
|
|
9214
9211
|
}
|
|
@@ -9925,7 +9922,7 @@ function evalAssignment(evaluator, thisStack, expr, evalContext, thread) {
|
|
|
9925
9922
|
const rootScope = getRootIdScope(leftValue, evalContext, thread);
|
|
9926
9923
|
const updatesState = rootScope && rootScope.type !== "block";
|
|
9927
9924
|
if (updatesState && evalContext.onWillUpdate) {
|
|
9928
|
-
evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
|
|
9925
|
+
void evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
|
|
9929
9926
|
}
|
|
9930
9927
|
evaluator(thisStack, leftValue, evalContext, thread);
|
|
9931
9928
|
thisStack.pop();
|
|
@@ -9933,7 +9930,7 @@ function evalAssignment(evaluator, thisStack, expr, evalContext, thread) {
|
|
|
9933
9930
|
thisStack.pop();
|
|
9934
9931
|
const value = evalAssignmentCore(thisStack, expr, evalContext, thread);
|
|
9935
9932
|
if (updatesState && evalContext.onDidUpdate) {
|
|
9936
|
-
evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
|
|
9933
|
+
void evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
|
|
9937
9934
|
}
|
|
9938
9935
|
return value;
|
|
9939
9936
|
}
|
|
@@ -9941,13 +9938,13 @@ function evalPreOrPost(evaluator, thisStack, expr, evalContext, thread) {
|
|
|
9941
9938
|
const rootScope = getRootIdScope(expr.expr, evalContext, thread);
|
|
9942
9939
|
const updatesState = rootScope && rootScope.type !== "block";
|
|
9943
9940
|
if (updatesState && evalContext.onWillUpdate) {
|
|
9944
|
-
evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
|
|
9941
|
+
void evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
|
|
9945
9942
|
}
|
|
9946
9943
|
evaluator(thisStack, expr.expr, evalContext, thread);
|
|
9947
9944
|
thisStack.pop();
|
|
9948
9945
|
const value = evalPreOrPostCore(thisStack, expr, evalContext, thread);
|
|
9949
9946
|
if (updatesState && evalContext.onDidUpdate) {
|
|
9950
|
-
evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
|
|
9947
|
+
void evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
|
|
9951
9948
|
}
|
|
9952
9949
|
return value;
|
|
9953
9950
|
}
|
|
@@ -10026,11 +10023,11 @@ function evalFunctionInvocation(evaluator, thisStack, expr, evalContext, thread)
|
|
|
10026
10023
|
const rootScope = getRootIdScope(expr.obj, evalContext, thread);
|
|
10027
10024
|
const updatesState = rootScope && rootScope.type !== "block";
|
|
10028
10025
|
if (updatesState && evalContext.onWillUpdate) {
|
|
10029
|
-
evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
|
|
10026
|
+
void evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
|
|
10030
10027
|
}
|
|
10031
10028
|
const value = ((_b = evalContext.options) == null ? void 0 : _b.defaultToOptionalMemberAccess) ? functionObj == null ? void 0 : functionObj.call(currentContext, ...functionArgs) : functionObj.call(currentContext, ...functionArgs);
|
|
10032
10029
|
if (updatesState && evalContext.onDidUpdate) {
|
|
10033
|
-
evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
|
|
10030
|
+
void evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
|
|
10034
10031
|
}
|
|
10035
10032
|
setExprValue(expr, { value }, thread);
|
|
10036
10033
|
thisStack.push(value);
|
|
@@ -11106,32 +11103,33 @@ const fragmentComponentRenderer = createComponentRenderer(
|
|
|
11106
11103
|
}
|
|
11107
11104
|
);
|
|
11108
11105
|
const themeVars$I = `'{"textColor-pagination-Table": "var(--xmlui-textColor-pagination-Table)", "backgroundColor-Table": "var(--xmlui-backgroundColor-Table)", "textColor-Table": "var(--xmlui-textColor-Table)", "backgroundColor-row-Table": "var(--xmlui-backgroundColor-row-Table)", "backgroundColor-row-Table--hover": "var(--xmlui-backgroundColor-row-Table--hover)", "backgroundColor-selected-Table": "var(--xmlui-backgroundColor-selected-Table)", "backgroundColor-selected-Table--hover": "var(--xmlui-backgroundColor-selected-Table--hover)", "backgroundColor-heading-Table": "var(--xmlui-backgroundColor-heading-Table)", "backgroundColor-heading-Table--hover": "var(--xmlui-backgroundColor-heading-Table--hover)", "backgroundColor-heading-Table--active": "var(--xmlui-backgroundColor-heading-Table--active)", "padding-heading-Table": "var(--xmlui-padding-heading-Table)", "paddingHorizontal-heading-Table": "var(--xmlui-paddingHorizontal-heading-Table, var(--xmlui-padding-heading-Table))", "paddingVertical-heading-Table": "var(--xmlui-paddingVertical-heading-Table, var(--xmlui-padding-heading-Table))", "paddingLeft-heading-Table": "var(--xmlui-paddingLeft-heading-Table, var(--xmlui-paddingHorizontal-heading-Table, var(--xmlui-padding-heading-Table)))", "paddingRight-heading-Table": "var(--xmlui-paddingRight-heading-Table, var(--xmlui-paddingHorizontal-heading-Table, var(--xmlui-padding-heading-Table)))", "paddingTop-heading-Table": "var(--xmlui-paddingTop-heading-Table, var(--xmlui-paddingVertical-heading-Table, var(--xmlui-padding-heading-Table)))", "paddingBottom-heading-Table": "var(--xmlui-paddingBottom-heading-Table, var(--xmlui-paddingVertical-heading-Table, var(--xmlui-padding-heading-Table)))", "padding-cell-Table": "var(--xmlui-padding-cell-Table)", "paddingHorizontal-cell-Table": "var(--xmlui-paddingHorizontal-cell-Table, var(--xmlui-padding-cell-Table))", "paddingVertical-cell-Table": "var(--xmlui-paddingVertical-cell-Table, var(--xmlui-padding-cell-Table))", "paddingLeft-cell-Table": "var(--xmlui-paddingLeft-cell-Table, var(--xmlui-paddingHorizontal-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingRight-cell-Table": "var(--xmlui-paddingRight-cell-Table, var(--xmlui-paddingHorizontal-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingTop-cell-Table": "var(--xmlui-paddingTop-cell-Table, var(--xmlui-paddingVertical-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingBottom-cell-Table": "var(--xmlui-paddingBottom-cell-Table, var(--xmlui-paddingVertical-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingHorizontal-cell-first-Table": "var(--xmlui-paddingHorizontal-cell-first-Table)", "paddingHorizontal-cell-last-Table": "var(--xmlui-paddingHorizontal-cell-last-Table)", "border-cell-Table": "var(--xmlui-border-cell-Table)", "borderHorizontal-cell-Table": "var(--xmlui-borderHorizontal-cell-Table, var(--xmlui-border-cell-Table))", "borderVertical-cell-Table": "var(--xmlui-borderVertical-cell-Table, var(--xmlui-border-cell-Table))", "borderLeft-cell-Table": "var(--xmlui-borderLeft-cell-Table, var(--xmlui-borderHorizontal-cell-Table, var(--xmlui-border-cell-Table)))", "borderRight-cell-Table": "var(--xmlui-borderRight-cell-Table, var(--xmlui-borderHorizontal-cell-Table, var(--xmlui-border-cell-Table)))", "borderTop-cell-Table": "var(--xmlui-borderTop-cell-Table, var(--xmlui-borderVertical-cell-Table, var(--xmlui-border-cell-Table)))", "borderBottom-cell-Table": "var(--xmlui-borderBottom-cell-Table)", "borderWidth-cell-Table": "var(--xmlui-borderWidth-cell-Table)", "borderHorizontalWidth-cell-Table": "var(--xmlui-borderHorizontalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table))", "borderLeftWidth-cell-Table": "var(--xmlui-borderLeftWidth-cell-Table, var(--xmlui-borderHorizontalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderRightWidth-cell-Table": "var(--xmlui-borderRightWidth-cell-Table, var(--xmlui-borderHorizontalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderVerticalWidth-cell-Table": "var(--xmlui-borderVerticalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table))", "borderTopWidth-cell-Table": "var(--xmlui-borderTopWidth-cell-Table, var(--xmlui-borderVerticalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderBottomWidth-cell-Table": "var(--xmlui-borderBottomWidth-cell-Table, var(--xmlui-borderVerticalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderStyle-cell-Table": "var(--xmlui-borderStyle-cell-Table)", "borderHorizontalStyle-cell-Table": "var(--xmlui-borderHorizontalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table))", "borderLeftStyle-cell-Table": "var(--xmlui-borderLeftStyle-cell-Table, var(--xmlui-borderHorizontalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderRightStyle-cell-Table": "var(--xmlui-borderRightStyle-cell-Table, var(--xmlui-borderHorizontalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderVerticalStyle-cell-Table": "var(--xmlui-borderVerticalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table))", "borderTopStyle-cell-Table": "var(--xmlui-borderTopStyle-cell-Table, var(--xmlui-borderVerticalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderBottomStyle-cell-Table": "var(--xmlui-borderBottomStyle-cell-Table, var(--xmlui-borderVerticalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderColor-cell-Table": "var(--xmlui-borderColor-cell-Table)", "borderHorizontalColor-cell-Table": "var(--xmlui-borderHorizontalColor-cell-Table, var(--xmlui-borderColor-cell-Table))", "borderLeftColor-cell-Table": "var(--xmlui-borderLeftColor-cell-Table, var(--xmlui-borderHorizontalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderRightColor-cell-Table": "var(--xmlui-borderRightColor-cell-Table, var(--xmlui-borderHorizontalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderVerticalColor-cell-Table": "var(--xmlui-borderVerticalColor-cell-Table, var(--xmlui-borderColor-cell-Table))", "borderTopColor-cell-Table": "var(--xmlui-borderTopColor-cell-Table, var(--xmlui-borderVerticalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderBottomColor-cell-Table": "var(--xmlui-borderBottomColor-cell-Table, var(--xmlui-borderVerticalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderStartStartRadius-cell-Table": "var(--xmlui-borderStartStartRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "borderStartEndRadius-cell-Table": "var(--xmlui-borderStartEndRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "borderEndStartRadius-cell-Table": "var(--xmlui-borderEndStartRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "borderEndEndRadius-cell-Table": "var(--xmlui-borderEndEndRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "border-Table": "var(--xmlui-border-Table)", "borderHorizontal-Table": "var(--xmlui-borderHorizontal-Table, var(--xmlui-border-Table))", "borderVertical-Table": "var(--xmlui-borderVertical-Table, var(--xmlui-border-Table))", "borderLeft-Table": "var(--xmlui-borderLeft-Table, var(--xmlui-borderHorizontal-Table, var(--xmlui-border-Table)))", "borderRight-Table": "var(--xmlui-borderRight-Table, var(--xmlui-borderHorizontal-Table, var(--xmlui-border-Table)))", "borderTop-Table": "var(--xmlui-borderTop-Table, var(--xmlui-borderVertical-Table, var(--xmlui-border-Table)))", "borderBottom-Table": "var(--xmlui-borderBottom-Table, var(--xmlui-borderVertical-Table, var(--xmlui-border-Table)))", "borderWidth-Table": "var(--xmlui-borderWidth-Table)", "borderHorizontalWidth-Table": "var(--xmlui-borderHorizontalWidth-Table, var(--xmlui-borderWidth-Table))", "borderLeftWidth-Table": "var(--xmlui-borderLeftWidth-Table, var(--xmlui-borderHorizontalWidth-Table, var(--xmlui-borderWidth-Table)))", "borderRightWidth-Table": "var(--xmlui-borderRightWidth-Table, var(--xmlui-borderHorizontalWidth-Table, var(--xmlui-borderWidth-Table)))", "borderVerticalWidth-Table": "var(--xmlui-borderVerticalWidth-Table, var(--xmlui-borderWidth-Table))", "borderTopWidth-Table": "var(--xmlui-borderTopWidth-Table, var(--xmlui-borderVerticalWidth-Table, var(--xmlui-borderWidth-Table)))", "borderBottomWidth-Table": "var(--xmlui-borderBottomWidth-Table, var(--xmlui-borderVerticalWidth-Table, var(--xmlui-borderWidth-Table)))", "borderStyle-Table": "var(--xmlui-borderStyle-Table)", "borderHorizontalStyle-Table": "var(--xmlui-borderHorizontalStyle-Table, var(--xmlui-borderStyle-Table))", "borderLeftStyle-Table": "var(--xmlui-borderLeftStyle-Table, var(--xmlui-borderHorizontalStyle-Table, var(--xmlui-borderStyle-Table)))", "borderRightStyle-Table": "var(--xmlui-borderRightStyle-Table, var(--xmlui-borderHorizontalStyle-Table, var(--xmlui-borderStyle-Table)))", "borderVerticalStyle-Table": "var(--xmlui-borderVerticalStyle-Table, var(--xmlui-borderStyle-Table))", "borderTopStyle-Table": "var(--xmlui-borderTopStyle-Table, var(--xmlui-borderVerticalStyle-Table, var(--xmlui-borderStyle-Table)))", "borderBottomStyle-Table": "var(--xmlui-borderBottomStyle-Table, var(--xmlui-borderVerticalStyle-Table, var(--xmlui-borderStyle-Table)))", "borderColor-Table": "var(--xmlui-borderColor-Table)", "borderHorizontalColor-Table": "var(--xmlui-borderHorizontalColor-Table, var(--xmlui-borderColor-Table))", "borderLeftColor-Table": "var(--xmlui-borderLeftColor-Table, var(--xmlui-borderHorizontalColor-Table, var(--xmlui-borderColor-Table)))", "borderRightColor-Table": "var(--xmlui-borderRightColor-Table, var(--xmlui-borderHorizontalColor-Table, var(--xmlui-borderColor-Table)))", "borderVerticalColor-Table": "var(--xmlui-borderVerticalColor-Table, var(--xmlui-borderColor-Table))", "borderTopColor-Table": "var(--xmlui-borderTopColor-Table, var(--xmlui-borderVerticalColor-Table, var(--xmlui-borderColor-Table)))", "borderBottomColor-Table": "var(--xmlui-borderBottomColor-Table, var(--xmlui-borderVerticalColor-Table, var(--xmlui-borderColor-Table)))", "borderStartStartRadius-Table": "var(--xmlui-borderStartStartRadius-Table, var(--xmlui-borderRadius-Table))", "borderStartEndRadius-Table": "var(--xmlui-borderStartEndRadius-Table, var(--xmlui-borderRadius-Table))", "borderEndStartRadius-Table": "var(--xmlui-borderEndStartRadius-Table, var(--xmlui-borderRadius-Table))", "borderEndEndRadius-Table": "var(--xmlui-borderEndEndRadius-Table, var(--xmlui-borderRadius-Table))", "backgroundColor-pagination-Table": "var(--xmlui-backgroundColor-pagination-Table)", "textColor-heading-Table": "var(--xmlui-textColor-heading-Table)", "fontWeight-row-Table": "var(--xmlui-fontWeight-row-Table)", "fontSize-row-Table": "var(--xmlui-fontSize-row-Table)", "fontWeight-heading-Table": "var(--xmlui-fontWeight-heading-Table)", "fontSize-heading-Table": "var(--xmlui-fontSize-heading-Table)", "textTransform-heading-Table": "var(--xmlui-textTransform-heading-Table)", "borderRadius-Table": "var(--xmlui-borderRadius-Table)", "outlineWidth-heading-Table--focus": "var(--xmlui-outlineWidth-heading-Table--focus)", "outlineColor-heading-Table--focus": "var(--xmlui-outlineColor-heading-Table--focus)", "outlineStyle-heading-Table--focus": "var(--xmlui-outlineStyle-heading-Table--focus)", "outlineOffset-heading-Table--focus": "var(--xmlui-outlineOffset-heading-Table--focus)", "borderBottom-last-row-Table": "var(--xmlui-borderBottom-last-row-Table)"}'`;
|
|
11109
|
-
const wrapper$i = "
|
|
11110
|
-
const noScroll = "
|
|
11111
|
-
const headerWrapper = "
|
|
11112
|
-
const tableBody = "
|
|
11113
|
-
const clickableHeader = "
|
|
11114
|
-
const headerContent = "
|
|
11115
|
-
const headerRow = "
|
|
11116
|
-
const columnCell = "
|
|
11117
|
-
const cell = "
|
|
11118
|
-
const alignTop = "
|
|
11119
|
-
const alignCenter = "
|
|
11120
|
-
const alignBottom = "
|
|
11121
|
-
const table = "
|
|
11122
|
-
const row$1 = "
|
|
11123
|
-
const checkBoxWrapper = "
|
|
11124
|
-
const showInHeader = "
|
|
11125
|
-
const selected$1 = "
|
|
11126
|
-
const allSelected = "
|
|
11127
|
-
const cellContent = "
|
|
11128
|
-
const focused$
|
|
11129
|
-
const disabled$
|
|
11130
|
-
const noBottomBorder = "
|
|
11131
|
-
const noRows$1 = "
|
|
11132
|
-
const loadingWrapper$1 = "
|
|
11133
|
-
const
|
|
11134
|
-
const
|
|
11106
|
+
const wrapper$i = "_wrapper_1ylgd_14";
|
|
11107
|
+
const noScroll = "_noScroll_1ylgd_42";
|
|
11108
|
+
const headerWrapper = "_headerWrapper_1ylgd_45";
|
|
11109
|
+
const tableBody = "_tableBody_1ylgd_46";
|
|
11110
|
+
const clickableHeader = "_clickableHeader_1ylgd_51";
|
|
11111
|
+
const headerContent = "_headerContent_1ylgd_65";
|
|
11112
|
+
const headerRow = "_headerRow_1ylgd_97";
|
|
11113
|
+
const columnCell = "_columnCell_1ylgd_101";
|
|
11114
|
+
const cell = "_cell_1ylgd_102";
|
|
11115
|
+
const alignTop = "_alignTop_1ylgd_110";
|
|
11116
|
+
const alignCenter = "_alignCenter_1ylgd_114";
|
|
11117
|
+
const alignBottom = "_alignBottom_1ylgd_118";
|
|
11118
|
+
const table = "_table_1ylgd_46";
|
|
11119
|
+
const row$1 = "_row_1ylgd_126";
|
|
11120
|
+
const checkBoxWrapper = "_checkBoxWrapper_1ylgd_133";
|
|
11121
|
+
const showInHeader = "_showInHeader_1ylgd_138";
|
|
11122
|
+
const selected$1 = "_selected_1ylgd_142";
|
|
11123
|
+
const allSelected = "_allSelected_1ylgd_142";
|
|
11124
|
+
const cellContent = "_cellContent_1ylgd_173";
|
|
11125
|
+
const focused$2 = "_focused_1ylgd_200";
|
|
11126
|
+
const disabled$8 = "_disabled_1ylgd_212";
|
|
11127
|
+
const noBottomBorder = "_noBottomBorder_1ylgd_219";
|
|
11128
|
+
const noRows$1 = "_noRows_1ylgd_244";
|
|
11129
|
+
const loadingWrapper$1 = "_loadingWrapper_1ylgd_283";
|
|
11130
|
+
const forceHoverWrapper = "_forceHoverWrapper_1ylgd_296";
|
|
11131
|
+
const resizer$1 = "_resizer_1ylgd_299";
|
|
11132
|
+
const isResizing = "_isResizing_1ylgd_320";
|
|
11135
11133
|
const styles$12 = {
|
|
11136
11134
|
themeVars: themeVars$I,
|
|
11137
11135
|
wrapper: wrapper$i,
|
|
@@ -11153,11 +11151,12 @@ const styles$12 = {
|
|
|
11153
11151
|
selected: selected$1,
|
|
11154
11152
|
allSelected,
|
|
11155
11153
|
cellContent,
|
|
11156
|
-
focused: focused$
|
|
11157
|
-
disabled: disabled$
|
|
11154
|
+
focused: focused$2,
|
|
11155
|
+
disabled: disabled$8,
|
|
11158
11156
|
noBottomBorder,
|
|
11159
11157
|
noRows: noRows$1,
|
|
11160
11158
|
loadingWrapper: loadingWrapper$1,
|
|
11159
|
+
forceHoverWrapper,
|
|
11161
11160
|
resizer: resizer$1,
|
|
11162
11161
|
isResizing
|
|
11163
11162
|
};
|
|
@@ -12358,23 +12357,25 @@ function generateTones(baseColorStr) {
|
|
|
12358
12357
|
};
|
|
12359
12358
|
}
|
|
12360
12359
|
const themeVars$H = `'{"Input:borderRadius-Checkbox-default": "var(--xmlui-borderRadius-Checkbox-default)", "Input:borderColor-Checkbox-default": "var(--xmlui-borderColor-Checkbox-default)", "Input:backgroundColor-Checkbox-default": "var(--xmlui-backgroundColor-Checkbox-default)", "Input:outlineWidth-Checkbox-default--focus": "var(--xmlui-outlineWidth-Checkbox-default--focus)", "Input:outlineColor-Checkbox-default--focus": "var(--xmlui-outlineColor-Checkbox-default--focus)", "Input:outlineStyle-Checkbox-default--focus": "var(--xmlui-outlineStyle-Checkbox-default--focus)", "Input:outlineOffset-Checkbox-default--focus": "var(--xmlui-outlineOffset-Checkbox-default--focus)", "Input:borderColor-Checkbox-default--hover": "var(--xmlui-borderColor-Checkbox-default--hover)", "Input:backgroundColor-Checkbox--disabled": "var(--xmlui-backgroundColor-Checkbox--disabled)", "Input:borderColor-Checkbox--disabled": "var(--xmlui-borderColor-Checkbox--disabled)", "Input:borderRadius-Checkbox-error": "var(--xmlui-borderRadius-Checkbox-error)", "Input:borderColor-Checkbox-error": "var(--xmlui-borderColor-Checkbox-error)", "Input:backgroundColor-Checkbox-error": "var(--xmlui-backgroundColor-Checkbox-error)", "Input:outlineWidth-Checkbox-error--focus": "var(--xmlui-outlineWidth-Checkbox-error--focus)", "Input:outlineColor-Checkbox-error--focus": "var(--xmlui-outlineColor-Checkbox-error--focus)", "Input:outlineStyle-Checkbox-error--focus": "var(--xmlui-outlineStyle-Checkbox-error--focus)", "Input:outlineOffset-Checkbox-error--focus": "var(--xmlui-outlineOffset-Checkbox-error--focus)", "Input:borderRadius-Checkbox-warning": "var(--xmlui-borderRadius-Checkbox-warning)", "Input:borderColor-Checkbox-warning": "var(--xmlui-borderColor-Checkbox-warning)", "Input:backgroundColor-Checkbox-warning": "var(--xmlui-backgroundColor-Checkbox-warning)", "Input:outlineWidth-Checkbox-warning--focus": "var(--xmlui-outlineWidth-Checkbox-warning--focus)", "Input:outlineColor-Checkbox-warning--focus": "var(--xmlui-outlineColor-Checkbox-warning--focus)", "Input:outlineStyle-Checkbox-warning--focus": "var(--xmlui-outlineStyle-Checkbox-warning--focus)", "Input:outlineOffset-Checkbox-warning--focus": "var(--xmlui-outlineOffset-Checkbox-warning--focus)", "Input:borderRadius-Checkbox-success": "var(--xmlui-borderRadius-Checkbox-success)", "Input:borderColor-Checkbox-success": "var(--xmlui-borderColor-Checkbox-success)", "Input:backgroundColor-Checkbox-success": "var(--xmlui-backgroundColor-Checkbox-success)", "Input:outlineWidth-Checkbox-success--focus": "var(--xmlui-outlineWidth-Checkbox-success--focus)", "Input:outlineColor-Checkbox-success--focus": "var(--xmlui-outlineColor-Checkbox-success--focus)", "Input:outlineStyle-Checkbox-success--focus": "var(--xmlui-outlineStyle-Checkbox-success--focus)", "Input:outlineOffset-Checkbox-success--focus": "var(--xmlui-outlineOffset-Checkbox-success--focus)", "backgroundColor-indicator-Checkbox": "var(--xmlui-backgroundColor-indicator-Checkbox)", "Input:borderColor-checked-Checkbox": "var(--xmlui-borderColor-checked-Checkbox)", "Input:backgroundColor-checked-Checkbox": "var(--xmlui-backgroundColor-checked-Checkbox)", "Input:borderColor-checked-Checkbox-error": "var(--xmlui-borderColor-checked-Checkbox-error)", "Input:backgroundColor-checked-Checkbox-error": "var(--xmlui-backgroundColor-checked-Checkbox-error)", "Input:borderColor-checked-Checkbox-warning": "var(--xmlui-borderColor-checked-Checkbox-warning)", "Input:backgroundColor-checked-Checkbox-warning": "var(--xmlui-backgroundColor-checked-Checkbox-warning)", "Input:borderColor-checked-Checkbox-success": "var(--xmlui-borderColor-checked-Checkbox-success)", "Input:backgroundColor-checked-Checkbox-success": "var(--xmlui-backgroundColor-checked-Checkbox-success)", "Input:backgroundColor-Switch": "var(--xmlui-backgroundColor-Switch)", "Input:borderColor-Switch": "var(--xmlui-borderColor-Switch)", "backgroundColor-indicator-Switch": "var(--xmlui-backgroundColor-indicator-Switch)", "backgroundColor-checked-Switch": "var(--xmlui-backgroundColor-checked-Switch)", "backgroundColor-indicator-checked-Switch": "var(--xmlui-backgroundColor-indicator-checked-Switch)", "Input:borderColor-Switch-default--hover": "var(--xmlui-borderColor-Switch-default--hover)", "Input:backgroundColor-Switch--disabled": "var(--xmlui-backgroundColor-Switch--disabled)", "Input:borderColor-Switch--disabled": "var(--xmlui-borderColor-Switch--disabled)", "Input:borderColor-checked-Switch": "var(--xmlui-borderColor-checked-Switch)", "Input:backgroundColor-checked-Switch": "var(--xmlui-backgroundColor-checked-Switch)", "Input:borderColor-checked-Switch-error": "var(--xmlui-borderColor-checked-Switch-error)", "Input:backgroundColor-checked-Switch-error": "var(--xmlui-backgroundColor-checked-Switch-error)", "Input:borderColor-checked-Switch-warning": "var(--xmlui-borderColor-checked-Switch-warning)", "Input:backgroundColor-checked-Switch-warning": "var(--xmlui-backgroundColor-checked-Switch-warning)", "Input:borderColor-checked-Switch-success": "var(--xmlui-borderColor-checked-Switch-success)", "Input:backgroundColor-checked-Switch-success": "var(--xmlui-backgroundColor-checked-Switch-success)", "Input:outlineWidth-Switch--focus": "var(--xmlui-outlineWidth-Switch--focus)", "Input:outlineColor-Switch--focus": "var(--xmlui-outlineColor-Switch--focus)", "Input:outlineStyle-Switch--focus": "var(--xmlui-outlineStyle-Switch--focus)", "Input:outlineOffset-Switch--focus": "var(--xmlui-outlineOffset-Switch--focus)", "backgroundColor-Switch-indicator--disabled": "var(--xmlui-backgroundColor-Switch-indicator--disabled)", "Input:borderColor-Switch-error": "var(--xmlui-borderColor-Switch-error)", "Input:borderColor-Switch-warning": "var(--xmlui-borderColor-Switch-warning)", "Input:borderColor-Switch-success": "var(--xmlui-borderColor-Switch-success)"}'`;
|
|
12361
|
-
const resetAppearance = "
|
|
12362
|
-
const label$1 = "
|
|
12363
|
-
const inputContainer = "
|
|
12364
|
-
const checkbox = "
|
|
12365
|
-
const
|
|
12366
|
-
const
|
|
12367
|
-
const
|
|
12360
|
+
const resetAppearance = "_resetAppearance_1onhr_14";
|
|
12361
|
+
const label$1 = "_label_1onhr_21";
|
|
12362
|
+
const inputContainer = "_inputContainer_1onhr_24";
|
|
12363
|
+
const checkbox = "_checkbox_1onhr_31";
|
|
12364
|
+
const forceHover = "_forceHover_1onhr_60";
|
|
12365
|
+
const error$c = "_error_1onhr_63";
|
|
12366
|
+
const warning$d = "_warning_1onhr_74";
|
|
12367
|
+
const valid$c = "_valid_1onhr_85";
|
|
12368
12368
|
const styles$11 = {
|
|
12369
12369
|
themeVars: themeVars$H,
|
|
12370
12370
|
resetAppearance,
|
|
12371
12371
|
label: label$1,
|
|
12372
12372
|
inputContainer,
|
|
12373
12373
|
checkbox,
|
|
12374
|
+
forceHover,
|
|
12374
12375
|
error: error$c,
|
|
12375
12376
|
warning: warning$d,
|
|
12376
12377
|
valid: valid$c,
|
|
12377
|
-
"switch": "
|
|
12378
|
+
"switch": "_switch_1onhr_144"
|
|
12378
12379
|
};
|
|
12379
12380
|
const defaultProps$$ = {
|
|
12380
12381
|
initialValue: false,
|
|
@@ -12403,6 +12404,7 @@ const Toggle = forwardRef(function Toggle2({
|
|
|
12403
12404
|
autoFocus,
|
|
12404
12405
|
registerComponentApi,
|
|
12405
12406
|
inputRenderer,
|
|
12407
|
+
forceHover: forceHover2 = false,
|
|
12406
12408
|
...rest
|
|
12407
12409
|
}, forwardedRef) {
|
|
12408
12410
|
const innerRef = React__default.useRef(null);
|
|
@@ -12509,7 +12511,8 @@ const Toggle = forwardRef(function Toggle2({
|
|
|
12509
12511
|
[styles$11.switch]: variant === "switch",
|
|
12510
12512
|
[styles$11.error]: validationStatus === "error",
|
|
12511
12513
|
[styles$11.warning]: validationStatus === "warning",
|
|
12512
|
-
[styles$11.valid]: validationStatus === "valid"
|
|
12514
|
+
[styles$11.valid]: validationStatus === "valid",
|
|
12515
|
+
[styles$11.forceHover]: forceHover2
|
|
12513
12516
|
})
|
|
12514
12517
|
}
|
|
12515
12518
|
);
|
|
@@ -12530,7 +12533,8 @@ const Toggle = forwardRef(function Toggle2({
|
|
|
12530
12533
|
value,
|
|
12531
12534
|
variant,
|
|
12532
12535
|
indeterminate,
|
|
12533
|
-
autoFocus
|
|
12536
|
+
autoFocus,
|
|
12537
|
+
forceHover2
|
|
12534
12538
|
]);
|
|
12535
12539
|
return inputRenderer ? /* @__PURE__ */ jsxs("label", { className: styles$11.label, children: [
|
|
12536
12540
|
/* @__PURE__ */ jsx("div", { className: styles$11.inputContainer, children: input2 }),
|
|
@@ -12614,14 +12618,7 @@ function useRowSelection({
|
|
|
12614
12618
|
lastUpdateSourceRef.current = "table";
|
|
12615
12619
|
(_a3 = syncWithAppState.update) == null ? void 0 : _a3.call(syncWithAppState, { selectedIds: currentSelectionIds });
|
|
12616
12620
|
}
|
|
12617
|
-
}, [
|
|
12618
|
-
selectedItems,
|
|
12619
|
-
syncWithAppState,
|
|
12620
|
-
appStateSelection,
|
|
12621
|
-
idKey,
|
|
12622
|
-
rowsSelectable,
|
|
12623
|
-
syncState
|
|
12624
|
-
]);
|
|
12621
|
+
}, [selectedItems, syncWithAppState, appStateSelection, idKey, rowsSelectable, syncState]);
|
|
12625
12622
|
useEffect(() => {
|
|
12626
12623
|
if (syncState !== "idle") {
|
|
12627
12624
|
const resetTimer = requestAnimationFrame(() => {
|
|
@@ -12800,7 +12797,7 @@ function useRowSelection({
|
|
|
12800
12797
|
}
|
|
12801
12798
|
});
|
|
12802
12799
|
useEffect(() => {
|
|
12803
|
-
onSelectionDidChange == null ? void 0 : onSelectionDidChange(selectedItems);
|
|
12800
|
+
void (onSelectionDidChange == null ? void 0 : onSelectionDidChange(selectedItems));
|
|
12804
12801
|
}, [selectedItems, onSelectionDidChange]);
|
|
12805
12802
|
const checkAllRows = useEvent((checked) => {
|
|
12806
12803
|
if (!rowsSelectable) {
|
|
@@ -13205,7 +13202,6 @@ const PaginationNative = forwardRef(function PaginationNative2({
|
|
|
13205
13202
|
style: style2,
|
|
13206
13203
|
className,
|
|
13207
13204
|
labelPosition: orientation === "vertical" ? "top" : "start",
|
|
13208
|
-
isInputTemplateUsed: true,
|
|
13209
13205
|
children: /* @__PURE__ */ jsx(
|
|
13210
13206
|
"select",
|
|
13211
13207
|
{
|
|
@@ -13268,11 +13264,38 @@ const PaginationNative = forwardRef(function PaginationNative2({
|
|
|
13268
13264
|
);
|
|
13269
13265
|
});
|
|
13270
13266
|
const TablePaginationControlsLocationValues = ["top", "bottom", "both"];
|
|
13267
|
+
const CheckboxToleranceValues = ["none", "compact", "comfortable", "spacious"];
|
|
13271
13268
|
function defaultIsRowDisabled(_) {
|
|
13272
13269
|
return false;
|
|
13273
13270
|
}
|
|
13274
13271
|
const SELECT_COLUMN_WIDTH = 42;
|
|
13275
13272
|
const DEFAULT_PAGE_SIZES = [10];
|
|
13273
|
+
const getCheckboxTolerancePixels = (tolerance) => {
|
|
13274
|
+
switch (tolerance) {
|
|
13275
|
+
case "none":
|
|
13276
|
+
return 0;
|
|
13277
|
+
case "compact":
|
|
13278
|
+
return 8;
|
|
13279
|
+
case "comfortable":
|
|
13280
|
+
return 12;
|
|
13281
|
+
case "spacious":
|
|
13282
|
+
return 16;
|
|
13283
|
+
default:
|
|
13284
|
+
return 8;
|
|
13285
|
+
}
|
|
13286
|
+
};
|
|
13287
|
+
const isWithinCheckboxBoundary = (pointX, pointY, checkboxRect, tolerancePixels) => {
|
|
13288
|
+
const distanceToLeft = Math.abs(pointX - checkboxRect.left);
|
|
13289
|
+
const distanceToRight = Math.abs(pointX - checkboxRect.right);
|
|
13290
|
+
const distanceToTop = Math.abs(pointY - checkboxRect.top);
|
|
13291
|
+
const distanceToBottom = Math.abs(pointY - checkboxRect.bottom);
|
|
13292
|
+
const withinHorizontalBounds = pointX >= checkboxRect.left && pointX <= checkboxRect.right;
|
|
13293
|
+
const withinVerticalBounds = pointY >= checkboxRect.top && pointY <= checkboxRect.bottom;
|
|
13294
|
+
const withinCheckbox = withinHorizontalBounds && withinVerticalBounds;
|
|
13295
|
+
const nearHorizontalBoundary = withinVerticalBounds && (distanceToLeft <= tolerancePixels || distanceToRight <= tolerancePixels);
|
|
13296
|
+
const nearVerticalBoundary = withinHorizontalBounds && (distanceToTop <= tolerancePixels || distanceToBottom <= tolerancePixels);
|
|
13297
|
+
return withinCheckbox || nearHorizontalBoundary || nearVerticalBoundary;
|
|
13298
|
+
};
|
|
13276
13299
|
const getCommonPinningStyles = (column) => {
|
|
13277
13300
|
const isPinned = column.getIsPinned();
|
|
13278
13301
|
return {
|
|
@@ -13329,6 +13352,7 @@ const Table = forwardRef(
|
|
|
13329
13352
|
showCurrentPage = defaultProps$Z.showCurrentPage,
|
|
13330
13353
|
showPageInfo = defaultProps$Z.showPageInfo,
|
|
13331
13354
|
showPageSizeSelector = defaultProps$Z.showPageSizeSelector,
|
|
13355
|
+
checkboxTolerance = defaultProps$Z.checkboxTolerance,
|
|
13332
13356
|
...rest
|
|
13333
13357
|
// cols
|
|
13334
13358
|
}, forwardedRef) => {
|
|
@@ -13354,6 +13378,9 @@ const Table = forwardRef(
|
|
|
13354
13378
|
}
|
|
13355
13379
|
}, [autoFocus]);
|
|
13356
13380
|
const [visibleItems2, setVisibleItems] = useState(EMPTY_ARRAY);
|
|
13381
|
+
const [hoveredRowId, setHoveredRowId] = useState(null);
|
|
13382
|
+
const [headerCheckboxHovered, setHeaderCheckboxHovered] = useState(false);
|
|
13383
|
+
const tolerancePixels = getCheckboxTolerancePixels(checkboxTolerance);
|
|
13357
13384
|
const {
|
|
13358
13385
|
toggleRow,
|
|
13359
13386
|
checkAllRows,
|
|
@@ -13485,10 +13512,12 @@ const Table = forwardRef(
|
|
|
13485
13512
|
{
|
|
13486
13513
|
...{
|
|
13487
13514
|
className: classnames(styles$12.checkBoxWrapper, {
|
|
13488
|
-
[styles$12.showInHeader]: alwaysShowSelectionHeader
|
|
13515
|
+
[styles$12.showInHeader]: alwaysShowSelectionHeader,
|
|
13516
|
+
[styles$12.forceHoverWrapper]: headerCheckboxHovered
|
|
13489
13517
|
}),
|
|
13490
13518
|
value: table22.getIsAllRowsSelected(),
|
|
13491
13519
|
indeterminate: table22.getIsSomeRowsSelected(),
|
|
13520
|
+
forceHover: headerCheckboxHovered,
|
|
13492
13521
|
onDidChange: () => {
|
|
13493
13522
|
const allSelected2 = table22.getRowModel().rows.every((row2) => rowDisabledPredicate(row2.original) || row2.getIsSelected());
|
|
13494
13523
|
checkAllRows(!allSelected2);
|
|
@@ -13500,9 +13529,12 @@ const Table = forwardRef(
|
|
|
13500
13529
|
Toggle,
|
|
13501
13530
|
{
|
|
13502
13531
|
...{
|
|
13503
|
-
className: styles$12.checkBoxWrapper,
|
|
13532
|
+
className: classnames(styles$12.checkBoxWrapper, {
|
|
13533
|
+
[styles$12.forceHoverWrapper]: hoveredRowId === row2.id
|
|
13534
|
+
}),
|
|
13504
13535
|
value: row2.getIsSelected(),
|
|
13505
13536
|
indeterminate: row2.getIsSomeSelected(),
|
|
13537
|
+
forceHover: hoveredRowId === row2.id,
|
|
13506
13538
|
onDidChange: () => {
|
|
13507
13539
|
toggleRow(row2.original, { metaKey: true });
|
|
13508
13540
|
}
|
|
@@ -13518,7 +13550,9 @@ const Table = forwardRef(
|
|
|
13518
13550
|
alwaysShowSelectionHeader,
|
|
13519
13551
|
checkAllRows,
|
|
13520
13552
|
toggleRow,
|
|
13521
|
-
rowDisabledPredicate
|
|
13553
|
+
rowDisabledPredicate,
|
|
13554
|
+
hoveredRowId,
|
|
13555
|
+
headerCheckboxHovered
|
|
13522
13556
|
]);
|
|
13523
13557
|
const [pagination2, setPagination] = useState({
|
|
13524
13558
|
pageSize: isPaginated ? pageSize : Number.MAX_VALUE,
|
|
@@ -13703,6 +13737,67 @@ const Table = forwardRef(
|
|
|
13703
13737
|
className: classnames(styles$12.headerRow, {
|
|
13704
13738
|
[styles$12.allSelected]: table2.getIsAllRowsSelected()
|
|
13705
13739
|
}),
|
|
13740
|
+
onClick: (event) => {
|
|
13741
|
+
const target2 = event.target;
|
|
13742
|
+
const headerCell = target2.closest("th");
|
|
13743
|
+
if (headerCell && rowsSelectable && enableMultiRowSelection) {
|
|
13744
|
+
const header2 = headerGroup.headers.find((h) => {
|
|
13745
|
+
const headerElement = headerCell;
|
|
13746
|
+
return (headerElement == null ? void 0 : headerElement.getAttribute("data-column-id")) === h.id || h.id === "select";
|
|
13747
|
+
});
|
|
13748
|
+
if (header2 && header2.id === "select") {
|
|
13749
|
+
const clickX = event.clientX;
|
|
13750
|
+
const clickY = event.clientY;
|
|
13751
|
+
const checkbox2 = headerCell.querySelector('input[type="checkbox"]');
|
|
13752
|
+
if (checkbox2) {
|
|
13753
|
+
const checkboxRect = checkbox2.getBoundingClientRect();
|
|
13754
|
+
if (isWithinCheckboxBoundary(clickX, clickY, checkboxRect, tolerancePixels)) {
|
|
13755
|
+
event.preventDefault();
|
|
13756
|
+
event.stopPropagation();
|
|
13757
|
+
const allSelected2 = table2.getRowModel().rows.every((row2) => rowDisabledPredicate(row2.original) || row2.getIsSelected());
|
|
13758
|
+
checkAllRows(!allSelected2);
|
|
13759
|
+
}
|
|
13760
|
+
}
|
|
13761
|
+
}
|
|
13762
|
+
}
|
|
13763
|
+
},
|
|
13764
|
+
onMouseMove: (event) => {
|
|
13765
|
+
if (rowsSelectable && enableMultiRowSelection) {
|
|
13766
|
+
const target2 = event.target;
|
|
13767
|
+
const headerCell = target2.closest("th");
|
|
13768
|
+
if (headerCell) {
|
|
13769
|
+
const header2 = headerGroup.headers.find((h) => {
|
|
13770
|
+
const headerElement = headerCell;
|
|
13771
|
+
return (headerElement == null ? void 0 : headerElement.getAttribute("data-column-id")) === h.id || h.id === "select";
|
|
13772
|
+
});
|
|
13773
|
+
if (header2 && header2.id === "select") {
|
|
13774
|
+
const mouseX = event.clientX;
|
|
13775
|
+
const mouseY = event.clientY;
|
|
13776
|
+
const checkbox2 = headerCell.querySelector('input[type="checkbox"]');
|
|
13777
|
+
if (checkbox2) {
|
|
13778
|
+
const checkboxRect = checkbox2.getBoundingClientRect();
|
|
13779
|
+
const shouldShowHover = isWithinCheckboxBoundary(mouseX, mouseY, checkboxRect, tolerancePixels);
|
|
13780
|
+
if (shouldShowHover && !headerCheckboxHovered) {
|
|
13781
|
+
setHeaderCheckboxHovered(true);
|
|
13782
|
+
event.currentTarget.style.cursor = "pointer";
|
|
13783
|
+
} else if (!shouldShowHover && headerCheckboxHovered) {
|
|
13784
|
+
setHeaderCheckboxHovered(false);
|
|
13785
|
+
event.currentTarget.style.cursor = "";
|
|
13786
|
+
}
|
|
13787
|
+
}
|
|
13788
|
+
} else if (headerCheckboxHovered) {
|
|
13789
|
+
setHeaderCheckboxHovered(false);
|
|
13790
|
+
event.currentTarget.style.cursor = "";
|
|
13791
|
+
}
|
|
13792
|
+
}
|
|
13793
|
+
}
|
|
13794
|
+
},
|
|
13795
|
+
onMouseLeave: (event) => {
|
|
13796
|
+
if (headerCheckboxHovered) {
|
|
13797
|
+
setHeaderCheckboxHovered(false);
|
|
13798
|
+
event.currentTarget.style.cursor = "";
|
|
13799
|
+
}
|
|
13800
|
+
},
|
|
13706
13801
|
children: headerGroup.headers.map((header2, headerIndex) => {
|
|
13707
13802
|
var _a3, _b2, _c2;
|
|
13708
13803
|
const { width, ...style22 } = ((_a3 = header2.column.columnDef.meta) == null ? void 0 : _a3.style) || {};
|
|
@@ -13711,6 +13806,7 @@ const Table = forwardRef(
|
|
|
13711
13806
|
return /* @__PURE__ */ jsxs(
|
|
13712
13807
|
"th",
|
|
13713
13808
|
{
|
|
13809
|
+
"data-column-id": header2.id,
|
|
13714
13810
|
className: classnames(styles$12.columnCell, alignmentClass),
|
|
13715
13811
|
colSpan: header2.colSpan,
|
|
13716
13812
|
style: {
|
|
@@ -13807,8 +13903,41 @@ const Table = forwardRef(
|
|
|
13807
13903
|
if (target2.tagName.toLowerCase() === "input") {
|
|
13808
13904
|
return;
|
|
13809
13905
|
}
|
|
13906
|
+
const currentRow = event.currentTarget;
|
|
13907
|
+
const checkbox2 = currentRow.querySelector('input[type="checkbox"]');
|
|
13908
|
+
if (checkbox2) {
|
|
13909
|
+
const checkboxRect = checkbox2.getBoundingClientRect();
|
|
13910
|
+
const clickX = event.clientX;
|
|
13911
|
+
const clickY = event.clientY;
|
|
13912
|
+
if (isWithinCheckboxBoundary(clickX, clickY, checkboxRect, tolerancePixels)) {
|
|
13913
|
+
toggleRow(row2.original, { metaKey: true });
|
|
13914
|
+
return;
|
|
13915
|
+
}
|
|
13916
|
+
}
|
|
13810
13917
|
toggleRow(row2.original, event);
|
|
13811
13918
|
},
|
|
13919
|
+
onMouseMove: (event) => {
|
|
13920
|
+
const currentRow = event.currentTarget;
|
|
13921
|
+
const checkbox2 = currentRow.querySelector('input[type="checkbox"]');
|
|
13922
|
+
if (checkbox2) {
|
|
13923
|
+
const checkboxRect = checkbox2.getBoundingClientRect();
|
|
13924
|
+
const mouseX = event.clientX;
|
|
13925
|
+
const mouseY = event.clientY;
|
|
13926
|
+
const shouldShowHover = isWithinCheckboxBoundary(mouseX, mouseY, checkboxRect, tolerancePixels);
|
|
13927
|
+
if (shouldShowHover) {
|
|
13928
|
+
setHoveredRowId(row2.id);
|
|
13929
|
+
currentRow.style.cursor = "pointer";
|
|
13930
|
+
} else {
|
|
13931
|
+
setHoveredRowId(null);
|
|
13932
|
+
currentRow.style.cursor = "";
|
|
13933
|
+
}
|
|
13934
|
+
}
|
|
13935
|
+
},
|
|
13936
|
+
onMouseLeave: (event) => {
|
|
13937
|
+
const currentRow = event.currentTarget;
|
|
13938
|
+
currentRow.style.cursor = "";
|
|
13939
|
+
setHoveredRowId(null);
|
|
13940
|
+
},
|
|
13812
13941
|
children: row2.getVisibleCells().map((cell2, i) => {
|
|
13813
13942
|
var _a3, _b2;
|
|
13814
13943
|
const cellRenderer = (_b2 = (_a3 = cell2.column.columnDef) == null ? void 0 : _a3.meta) == null ? void 0 : _b2.cellRenderer;
|
|
@@ -13886,7 +14015,8 @@ const defaultProps$Z = {
|
|
|
13886
14015
|
showCurrentPage: true,
|
|
13887
14016
|
buttonRowPosition: "center",
|
|
13888
14017
|
pageSizeSelectorPosition: "start",
|
|
13889
|
-
pageInfoPosition: "end"
|
|
14018
|
+
pageInfoPosition: "end",
|
|
14019
|
+
checkboxTolerance: "compact"
|
|
13890
14020
|
};
|
|
13891
14021
|
const COMP$1l = "Table";
|
|
13892
14022
|
const TableMd = createMetadata({
|
|
@@ -14010,6 +14140,12 @@ const TableMd = createMetadata({
|
|
|
14010
14140
|
valueType: "string",
|
|
14011
14141
|
availableValues: ["top", "center", "bottom"],
|
|
14012
14142
|
defaultValue: "center"
|
|
14143
|
+
},
|
|
14144
|
+
checkboxTolerance: {
|
|
14145
|
+
description: `This property controls the tolerance area around checkboxes for easier interaction. This property only has an effect when the rowsSelectable property is set to \`true\`. \`none\` provides no tolerance (0px), \`compact\` provides minimal tolerance (8px), \`comfortable\` provides medium tolerance (12px), and \`spacious\` provides generous tolerance (16px) for improved accessibility.`,
|
|
14146
|
+
valueType: "string",
|
|
14147
|
+
availableValues: CheckboxToleranceValues,
|
|
14148
|
+
defaultValue: defaultProps$Z.checkboxTolerance
|
|
14013
14149
|
}
|
|
14014
14150
|
},
|
|
14015
14151
|
events: {
|
|
@@ -14197,6 +14333,7 @@ const TableWithColumns = memo(forwardRef(
|
|
|
14197
14333
|
showCurrentPage: extractValue.asOptionalBoolean(node.props.showCurrentPage),
|
|
14198
14334
|
showPageInfo: extractValue.asOptionalBoolean(node.props.showPageInfo),
|
|
14199
14335
|
showPageSizeSelector: extractValue.asOptionalBoolean(node.props.showPageSizeSelector),
|
|
14336
|
+
checkboxTolerance: extractValue.asOptionalString(node.props.checkboxTolerance),
|
|
14200
14337
|
initiallySelected: extractValue(node.props.initiallySelected),
|
|
14201
14338
|
syncWithAppState: extractValue(node.props.syncWithAppState)
|
|
14202
14339
|
}
|
|
@@ -14548,10 +14685,10 @@ const avatarComponentRenderer = createComponentRenderer(
|
|
|
14548
14685
|
);
|
|
14549
14686
|
}
|
|
14550
14687
|
);
|
|
14551
|
-
const themeVars$C = `'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)"}'`;
|
|
14552
|
-
const separator = "
|
|
14553
|
-
const horizontal$3 = "
|
|
14554
|
-
const vertical$3 = "
|
|
14688
|
+
const themeVars$C = `'{"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)"}'`;
|
|
14689
|
+
const separator = "_separator_13z1k_14";
|
|
14690
|
+
const horizontal$3 = "_horizontal_13z1k_21";
|
|
14691
|
+
const vertical$3 = "_vertical_13z1k_25";
|
|
14555
14692
|
const styles$Y = {
|
|
14556
14693
|
themeVars: themeVars$C,
|
|
14557
14694
|
separator,
|
|
@@ -14605,6 +14742,8 @@ const ContentSeparatorMd = createMetadata({
|
|
|
14605
14742
|
defaultThemeVars: {
|
|
14606
14743
|
[`backgroundColor-${COMP$1h}`]: "$color-surface-200",
|
|
14607
14744
|
[`size-${COMP$1h}`]: "1px",
|
|
14745
|
+
[`marginVertical-${COMP$1h}`]: "0",
|
|
14746
|
+
[`marginHorizontal-${COMP$1h}`]: "0",
|
|
14608
14747
|
light: {
|
|
14609
14748
|
// --- No light-specific theme vars
|
|
14610
14749
|
},
|
|
@@ -14981,14 +15120,15 @@ const flowLayoutComponentRenderer = createComponentRenderer(
|
|
|
14981
15120
|
}
|
|
14982
15121
|
);
|
|
14983
15122
|
const themeVars$z = `'{"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)"}'`;
|
|
14984
|
-
const overlay$2 = "
|
|
14985
|
-
const fullScreen = "
|
|
14986
|
-
const content$5 = "
|
|
14987
|
-
const overlayBg$1 = "
|
|
14988
|
-
const nested = "
|
|
14989
|
-
const
|
|
14990
|
-
const
|
|
14991
|
-
const
|
|
15123
|
+
const overlay$2 = "_overlay_do4x4_14";
|
|
15124
|
+
const fullScreen = "_fullScreen_do4x4_22";
|
|
15125
|
+
const content$5 = "_content_do4x4_28";
|
|
15126
|
+
const overlayBg$1 = "_overlayBg_do4x4_37";
|
|
15127
|
+
const nested = "_nested_do4x4_43";
|
|
15128
|
+
const contentAnimation = "_contentAnimation_do4x4_74";
|
|
15129
|
+
const dialogTitle = "_dialogTitle_do4x4_80";
|
|
15130
|
+
const innerContent = "_innerContent_do4x4_85";
|
|
15131
|
+
const closeButton = "_closeButton_do4x4_110";
|
|
14992
15132
|
const styles$V = {
|
|
14993
15133
|
themeVars: themeVars$z,
|
|
14994
15134
|
overlay: overlay$2,
|
|
@@ -14996,6 +15136,7 @@ const styles$V = {
|
|
|
14996
15136
|
content: content$5,
|
|
14997
15137
|
overlayBg: overlayBg$1,
|
|
14998
15138
|
nested,
|
|
15139
|
+
contentAnimation,
|
|
14999
15140
|
dialogTitle,
|
|
15000
15141
|
innerContent,
|
|
15001
15142
|
closeButton
|
|
@@ -15105,6 +15246,7 @@ const ModalDialog = React__default.forwardRef(
|
|
|
15105
15246
|
className,
|
|
15106
15247
|
onOpen,
|
|
15107
15248
|
onClose,
|
|
15249
|
+
externalAnimation = true,
|
|
15108
15250
|
...rest
|
|
15109
15251
|
}, ref) => {
|
|
15110
15252
|
const { root: root2 } = useTheme();
|
|
@@ -15153,7 +15295,13 @@ const ModalDialog = React__default.forwardRef(
|
|
|
15153
15295
|
{
|
|
15154
15296
|
...rest,
|
|
15155
15297
|
"data-part-id": PART_CONTENT,
|
|
15156
|
-
className: classnames(
|
|
15298
|
+
className: classnames(
|
|
15299
|
+
{
|
|
15300
|
+
[styles$V.contentAnimation]: !externalAnimation
|
|
15301
|
+
},
|
|
15302
|
+
styles$V.content,
|
|
15303
|
+
className
|
|
15304
|
+
),
|
|
15157
15305
|
onPointerDownOutside: (event) => {
|
|
15158
15306
|
if (event.target instanceof Element && (event.target.closest("._debug-inspect-button") !== null || event.target.localName === "com-1password-button")) {
|
|
15159
15307
|
event.preventDefault();
|
|
@@ -15314,6 +15462,7 @@ const modalViewComponentRenderer = createComponentRenderer(
|
|
|
15314
15462
|
fullScreen: extractValue.asOptionalBoolean((_a2 = node.props) == null ? void 0 : _a2.fullScreen),
|
|
15315
15463
|
title: extractValue((_b = node.props) == null ? void 0 : _b.title),
|
|
15316
15464
|
closeButtonVisible: extractValue.asOptionalBoolean(node.props.closeButtonVisible),
|
|
15465
|
+
externalAnimation: extractValue.asOptionalBoolean(node.props.externalAnimation),
|
|
15317
15466
|
children: renderChild2(node.children, { type: "Stack" })
|
|
15318
15467
|
}
|
|
15319
15468
|
);
|
|
@@ -15432,7 +15581,7 @@ const FileUploadDropZone = forwardRef(function FileUploadDropZone2({
|
|
|
15432
15581
|
}, forwardedRef) {
|
|
15433
15582
|
const accept = acceptedFileTypes ? acceptedFileTypes.split(",").reduce((acc, type) => ({ ...acc, [type.trim()]: [] }), {}) : void 0;
|
|
15434
15583
|
const onDrop = useCallback(
|
|
15435
|
-
|
|
15584
|
+
(acceptedFiles) => {
|
|
15436
15585
|
if (!acceptedFiles.length) {
|
|
15437
15586
|
return;
|
|
15438
15587
|
}
|
|
@@ -15593,7 +15742,7 @@ const IconMd = createMetadata({
|
|
|
15593
15742
|
},
|
|
15594
15743
|
themeVars: parseScssVar(styles$1f.themeVars),
|
|
15595
15744
|
defaultThemeVars: {
|
|
15596
|
-
[`size-${COMP$1b}`]: "1.
|
|
15745
|
+
[`size-${COMP$1b}`]: "1.2em"
|
|
15597
15746
|
}
|
|
15598
15747
|
});
|
|
15599
15748
|
const iconComponentRenderer = createComponentRenderer(
|
|
@@ -16675,7 +16824,7 @@ function Queue({
|
|
|
16675
16824
|
return;
|
|
16676
16825
|
}
|
|
16677
16826
|
let queueItem = queue[0];
|
|
16678
|
-
(async () => {
|
|
16827
|
+
void (async () => {
|
|
16679
16828
|
await doSingle(queueItem);
|
|
16680
16829
|
})();
|
|
16681
16830
|
}, [doComplete, doSingle, prevQueue, queue]);
|
|
@@ -17175,26 +17324,26 @@ const ListNative = forwardRef(function DynamicHeightList({
|
|
|
17175
17324
|
const tryToFetchPrevPage = useCallback(() => {
|
|
17176
17325
|
if (virtualizerRef.current && virtualizerRef.current.findStartIndex() < 10 && pageInfo && pageInfo.hasPrevPage && !pageInfo.isFetchingPrevPage && !isFetchingPrevPage.current) {
|
|
17177
17326
|
isFetchingPrevPage.current = true;
|
|
17178
|
-
|
|
17327
|
+
void async function doFetch() {
|
|
17179
17328
|
try {
|
|
17180
17329
|
await requestFetchPrevPage();
|
|
17181
17330
|
} finally {
|
|
17182
17331
|
isFetchingPrevPage.current = false;
|
|
17183
17332
|
}
|
|
17184
|
-
}
|
|
17333
|
+
}();
|
|
17185
17334
|
}
|
|
17186
17335
|
}, [pageInfo, requestFetchPrevPage]);
|
|
17187
17336
|
const isFetchingNextPage = useRef(false);
|
|
17188
17337
|
const tryToFetchNextPage = useCallback(() => {
|
|
17189
17338
|
if (virtualizerRef.current && virtualizerRef.current.findEndIndex() + 10 > rows.length && pageInfo && pageInfo.hasNextPage && !pageInfo.isFetchingNextPage && !isFetchingNextPage.current) {
|
|
17190
17339
|
isFetchingNextPage.current = true;
|
|
17191
|
-
|
|
17340
|
+
void async function doFetch() {
|
|
17192
17341
|
try {
|
|
17193
17342
|
await requestFetchNextPage();
|
|
17194
17343
|
} finally {
|
|
17195
17344
|
isFetchingNextPage.current = false;
|
|
17196
17345
|
}
|
|
17197
|
-
}
|
|
17346
|
+
}();
|
|
17198
17347
|
}
|
|
17199
17348
|
}, [rows.length, pageInfo, requestFetchNextPage]);
|
|
17200
17349
|
const initiallyFetchedExtraPages = useRef(false);
|
|
@@ -18099,7 +18248,7 @@ function useValidation(validations, onValidate, value, dispatch, bindTo, throttl
|
|
|
18099
18248
|
if (!ignore) {
|
|
18100
18249
|
dispatch(fieldValidated(bindTo, partialResult));
|
|
18101
18250
|
if (partialResult.partial) {
|
|
18102
|
-
(async () => {
|
|
18251
|
+
void (async () => {
|
|
18103
18252
|
const result = await throttledAsyncValidate(validations, onValidate, deferredValue);
|
|
18104
18253
|
if (!ignore) {
|
|
18105
18254
|
dispatch(fieldValidated(bindTo, result));
|
|
@@ -18115,7 +18264,7 @@ function useValidation(validations, onValidate, value, dispatch, bindTo, throttl
|
|
|
18115
18264
|
);
|
|
18116
18265
|
}
|
|
18117
18266
|
function useValidationDisplay(bindTo, value, validationResult, validationMode = defaultValidationMode) {
|
|
18118
|
-
const interactionFlags = useFormContextPart((value2) => value2.interactionFlags[bindTo]) || EMPTY_OBJECT;
|
|
18267
|
+
const interactionFlags = useFormContextPart((value2) => value2 == null ? void 0 : value2.interactionFlags[bindTo]) || EMPTY_OBJECT;
|
|
18119
18268
|
const forceShowValidationResult = interactionFlags.forceShowValidationResult;
|
|
18120
18269
|
const focused2 = interactionFlags.focused;
|
|
18121
18270
|
const afterFirstDirtyBlur = interactionFlags.afterFirstDirtyBlur;
|
|
@@ -20101,62 +20250,99 @@ function useLongPress(elementRef, action2, delay2 = 500) {
|
|
|
20101
20250
|
};
|
|
20102
20251
|
}, [elementRef, action2, delay2]);
|
|
20103
20252
|
}
|
|
20104
|
-
const
|
|
20105
|
-
|
|
20106
|
-
|
|
20107
|
-
|
|
20108
|
-
|
|
20109
|
-
|
|
20110
|
-
|
|
20111
|
-
|
|
20112
|
-
|
|
20113
|
-
|
|
20114
|
-
|
|
20115
|
-
|
|
20116
|
-
|
|
20117
|
-
|
|
20118
|
-
const
|
|
20119
|
-
|
|
20120
|
-
|
|
20121
|
-
|
|
20122
|
-
|
|
20123
|
-
|
|
20124
|
-
|
|
20125
|
-
|
|
20126
|
-
|
|
20127
|
-
const slideInFromTop = "_slideInFromTop_1gf24_1";
|
|
20128
|
-
const
|
|
20129
|
-
const
|
|
20130
|
-
const
|
|
20131
|
-
const
|
|
20132
|
-
const
|
|
20133
|
-
const
|
|
20134
|
-
const
|
|
20135
|
-
const
|
|
20136
|
-
const
|
|
20137
|
-
const
|
|
20138
|
-
const
|
|
20139
|
-
const
|
|
20253
|
+
const SelectContext = createContext({
|
|
20254
|
+
value: null,
|
|
20255
|
+
onChange: (selectedValue) => {
|
|
20256
|
+
},
|
|
20257
|
+
setOpen: (open) => {
|
|
20258
|
+
},
|
|
20259
|
+
setSelectedIndex: (index) => {
|
|
20260
|
+
},
|
|
20261
|
+
options: /* @__PURE__ */ new Set(),
|
|
20262
|
+
optionRenderer: void 0
|
|
20263
|
+
});
|
|
20264
|
+
function useSelect() {
|
|
20265
|
+
return useContext(SelectContext);
|
|
20266
|
+
}
|
|
20267
|
+
const OptionContext = createContext({
|
|
20268
|
+
onOptionAdd: () => {
|
|
20269
|
+
},
|
|
20270
|
+
onOptionRemove: () => {
|
|
20271
|
+
}
|
|
20272
|
+
});
|
|
20273
|
+
function useOption() {
|
|
20274
|
+
return useContext(OptionContext);
|
|
20275
|
+
}
|
|
20276
|
+
const themeVars$o = `'{"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)"}'`;
|
|
20277
|
+
const selectTrigger = "_selectTrigger_1v71t_17";
|
|
20278
|
+
const error$9 = "_error_1v71t_54";
|
|
20279
|
+
const warning$a = "_warning_1v71t_80";
|
|
20280
|
+
const valid$9 = "_valid_1v71t_106";
|
|
20281
|
+
const disabled$7 = "_disabled_1v71t_132";
|
|
20282
|
+
const focused$1 = "_focused_1v71t_139";
|
|
20283
|
+
const placeholder$1 = "_placeholder_1v71t_145";
|
|
20284
|
+
const actions$1 = "_actions_1v71t_162";
|
|
20285
|
+
const action$1 = "_action_1v71t_162";
|
|
20286
|
+
const emptyList = "_emptyList_1v71t_173";
|
|
20287
|
+
const badgeListContainer = "_badgeListContainer_1v71t_185";
|
|
20288
|
+
const badgeList$1 = "_badgeList_1v71t_185";
|
|
20289
|
+
const inputWrapper$1 = "_inputWrapper_1v71t_198";
|
|
20290
|
+
const badge$1 = "_badge_1v71t_185";
|
|
20291
|
+
const selectContent = "_selectContent_1v71t_233";
|
|
20292
|
+
const command$1 = "_command_1v71t_241";
|
|
20293
|
+
const commandInputContainer = "_commandInputContainer_1v71t_246";
|
|
20294
|
+
const commandInput$1 = "_commandInput_1v71t_246";
|
|
20295
|
+
const commandList$1 = "_commandList_1v71t_265";
|
|
20296
|
+
const multiSelectOption = "_multiSelectOption_1v71t_272";
|
|
20297
|
+
const multiSelectOptionContent = "_multiSelectOptionContent_1v71t_286";
|
|
20298
|
+
const highlighted$1 = "_highlighted_1v71t_295";
|
|
20299
|
+
const disabledOption$1 = "_disabledOption_1v71t_301";
|
|
20300
|
+
const selectValue = "_selectValue_1v71t_316";
|
|
20301
|
+
const selectDropdownContent = "_selectDropdownContent_1v71t_331";
|
|
20302
|
+
const fadeIn = "_fadeIn_1v71t_1";
|
|
20303
|
+
const zoomIn = "_zoomIn_1v71t_1";
|
|
20304
|
+
const fadeOut = "_fadeOut_1v71t_1";
|
|
20305
|
+
const zoomOut = "_zoomOut_1v71t_1";
|
|
20306
|
+
const slideInFromTop = "_slideInFromTop_1v71t_1";
|
|
20307
|
+
const slideInFromRight = "_slideInFromRight_1v71t_1";
|
|
20308
|
+
const slideInFromLeft = "_slideInFromLeft_1v71t_1";
|
|
20309
|
+
const slideInFromBottom = "_slideInFromBottom_1v71t_1";
|
|
20310
|
+
const selectViewport = "_selectViewport_1v71t_364";
|
|
20311
|
+
const selectScrollUpButton = "_selectScrollUpButton_1v71t_368";
|
|
20312
|
+
const selectScrollDownButton = "_selectScrollDownButton_1v71t_376";
|
|
20313
|
+
const selectEmpty = "_selectEmpty_1v71t_384";
|
|
20314
|
+
const selectOption = "_selectOption_1v71t_397";
|
|
20315
|
+
const selectOptionContent = "_selectOptionContent_1v71t_420";
|
|
20316
|
+
const selectOptionIndicator = "_selectOptionIndicator_1v71t_434";
|
|
20317
|
+
const loading = "_loading_1v71t_444";
|
|
20318
|
+
const srOnly = "_srOnly_1v71t_447";
|
|
20140
20319
|
const styles$J = {
|
|
20141
20320
|
themeVars: themeVars$o,
|
|
20142
|
-
|
|
20321
|
+
selectTrigger,
|
|
20143
20322
|
error: error$9,
|
|
20144
20323
|
warning: warning$a,
|
|
20145
20324
|
valid: valid$9,
|
|
20146
|
-
|
|
20325
|
+
disabled: disabled$7,
|
|
20326
|
+
focused: focused$1,
|
|
20327
|
+
placeholder: placeholder$1,
|
|
20328
|
+
actions: actions$1,
|
|
20329
|
+
action: action$1,
|
|
20330
|
+
emptyList,
|
|
20147
20331
|
badgeListContainer,
|
|
20148
20332
|
badgeList: badgeList$1,
|
|
20333
|
+
inputWrapper: inputWrapper$1,
|
|
20149
20334
|
badge: badge$1,
|
|
20150
|
-
|
|
20151
|
-
placeholder: placeholder$1,
|
|
20152
|
-
emptyList,
|
|
20153
|
-
selectScrollUpButton,
|
|
20154
|
-
selectScrollDownButton,
|
|
20335
|
+
selectContent,
|
|
20155
20336
|
command: command$1,
|
|
20156
20337
|
commandInputContainer,
|
|
20157
20338
|
commandInput: commandInput$1,
|
|
20158
20339
|
commandList: commandList$1,
|
|
20159
|
-
|
|
20340
|
+
multiSelectOption,
|
|
20341
|
+
multiSelectOptionContent,
|
|
20342
|
+
highlighted: highlighted$1,
|
|
20343
|
+
disabledOption: disabledOption$1,
|
|
20344
|
+
selectValue,
|
|
20345
|
+
selectDropdownContent,
|
|
20160
20346
|
fadeIn,
|
|
20161
20347
|
zoomIn,
|
|
20162
20348
|
fadeOut,
|
|
@@ -20165,20 +20351,67 @@ const styles$J = {
|
|
|
20165
20351
|
slideInFromRight,
|
|
20166
20352
|
slideInFromLeft,
|
|
20167
20353
|
slideInFromBottom,
|
|
20168
|
-
multiComboboxOption,
|
|
20169
|
-
multiComboboxOptionContent,
|
|
20170
|
-
selectItem,
|
|
20171
|
-
selectItemContent,
|
|
20172
|
-
selectItemIndicator,
|
|
20173
20354
|
selectViewport,
|
|
20355
|
+
selectScrollUpButton,
|
|
20356
|
+
selectScrollDownButton,
|
|
20174
20357
|
selectEmpty,
|
|
20358
|
+
selectOption,
|
|
20359
|
+
selectOptionContent,
|
|
20360
|
+
selectOptionIndicator,
|
|
20175
20361
|
loading,
|
|
20176
20362
|
srOnly
|
|
20177
20363
|
};
|
|
20178
|
-
const
|
|
20179
|
-
function
|
|
20180
|
-
|
|
20181
|
-
}
|
|
20364
|
+
const SelectOption = forwardRef(
|
|
20365
|
+
function SelectOption2(option, ref) {
|
|
20366
|
+
const visibleContentRef = useRef(null);
|
|
20367
|
+
const { value, label: label2, enabled: enabled2 = true, children, className } = option;
|
|
20368
|
+
const { value: selectedValue, optionRenderer } = useSelect();
|
|
20369
|
+
const { onOptionRemove, onOptionAdd } = useOption();
|
|
20370
|
+
const opt = useMemo(() => {
|
|
20371
|
+
return {
|
|
20372
|
+
...option,
|
|
20373
|
+
label: label2 ?? "",
|
|
20374
|
+
keywords: [label2 ?? ""]
|
|
20375
|
+
};
|
|
20376
|
+
}, [option, label2]);
|
|
20377
|
+
useEffect(() => {
|
|
20378
|
+
onOptionAdd(opt);
|
|
20379
|
+
return () => onOptionRemove(opt);
|
|
20380
|
+
}, [opt, onOptionAdd, onOptionRemove]);
|
|
20381
|
+
return /* @__PURE__ */ jsxs(
|
|
20382
|
+
Item$1,
|
|
20383
|
+
{
|
|
20384
|
+
ref,
|
|
20385
|
+
className: classnames(className, styles$J.selectOption),
|
|
20386
|
+
value,
|
|
20387
|
+
textValue: label2,
|
|
20388
|
+
disabled: !enabled2,
|
|
20389
|
+
onClick: (event) => {
|
|
20390
|
+
event.stopPropagation();
|
|
20391
|
+
},
|
|
20392
|
+
"data-state": selectedValue === value && "checked",
|
|
20393
|
+
children: [
|
|
20394
|
+
/* @__PURE__ */ jsx("span", { style: { display: "none" }, children: /* @__PURE__ */ jsx(ItemText, { children: label2 }) }),
|
|
20395
|
+
children ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20396
|
+
/* @__PURE__ */ jsx("div", { className: styles$J.selectOptionContent, ref: visibleContentRef, children }),
|
|
20397
|
+
selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$J.selectOptionIndicator, children: /* @__PURE__ */ jsx(Icon, { name: "checkmark" }) })
|
|
20398
|
+
] }) : optionRenderer ? /* @__PURE__ */ jsx("div", { className: styles$J.selectOptionContent, ref: visibleContentRef, children: optionRenderer(
|
|
20399
|
+
{
|
|
20400
|
+
label: label2,
|
|
20401
|
+
value,
|
|
20402
|
+
enabled: enabled2
|
|
20403
|
+
},
|
|
20404
|
+
selectedValue,
|
|
20405
|
+
false
|
|
20406
|
+
) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20407
|
+
/* @__PURE__ */ jsx("div", { className: styles$J.selectOptionContent, ref: visibleContentRef, children: label2 }),
|
|
20408
|
+
selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$J.selectItemIndicator, children: /* @__PURE__ */ jsx(Icon, { name: "checkmark" }) })
|
|
20409
|
+
] })
|
|
20410
|
+
]
|
|
20411
|
+
}
|
|
20412
|
+
);
|
|
20413
|
+
}
|
|
20414
|
+
);
|
|
20182
20415
|
const OptionTypeContext = React__default.createContext(null);
|
|
20183
20416
|
function useOptionType() {
|
|
20184
20417
|
return React__default.useContext(OptionTypeContext);
|
|
@@ -20189,15 +20422,6 @@ function OptionTypeProvider({
|
|
|
20189
20422
|
}) {
|
|
20190
20423
|
return /* @__PURE__ */ jsx(OptionTypeContext.Provider, { value: Component, children });
|
|
20191
20424
|
}
|
|
20192
|
-
const OptionContext = createContext({
|
|
20193
|
-
onOptionAdd: () => {
|
|
20194
|
-
},
|
|
20195
|
-
onOptionRemove: () => {
|
|
20196
|
-
}
|
|
20197
|
-
});
|
|
20198
|
-
function useOption() {
|
|
20199
|
-
return useContext(OptionContext);
|
|
20200
|
-
}
|
|
20201
20425
|
function HiddenOption(option) {
|
|
20202
20426
|
const { label: label2 } = option;
|
|
20203
20427
|
const { onOptionRemove, onOptionAdd } = useOption();
|
|
@@ -20216,18 +20440,6 @@ function HiddenOption(option) {
|
|
|
20216
20440
|
}, [opt, onOptionAdd, onOptionRemove]);
|
|
20217
20441
|
return /* @__PURE__ */ jsx("div", { ref: (el) => setNode(el), style: { display: "none" }, children: option.children });
|
|
20218
20442
|
}
|
|
20219
|
-
const defaultProps$F = {
|
|
20220
|
-
enabled: true,
|
|
20221
|
-
placeholder: "",
|
|
20222
|
-
autoFocus: false,
|
|
20223
|
-
searchable: false,
|
|
20224
|
-
multiSelect: false,
|
|
20225
|
-
required: false,
|
|
20226
|
-
inProgress: false,
|
|
20227
|
-
inProgressNotificationMessage: "",
|
|
20228
|
-
readOnly: false,
|
|
20229
|
-
validationStatus: "none"
|
|
20230
|
-
};
|
|
20231
20443
|
const SimpleSelect = forwardRef(
|
|
20232
20444
|
function SimpleSelect2(props, forwardedRef) {
|
|
20233
20445
|
const { root: root2 } = useTheme();
|
|
@@ -20293,25 +20505,24 @@ const SimpleSelect = forwardRef(
|
|
|
20293
20505
|
"div",
|
|
20294
20506
|
{
|
|
20295
20507
|
className: classnames(styles$J.selectValue, {
|
|
20296
|
-
[styles$J.selectValue]: value !== void 0,
|
|
20297
20508
|
[styles$J.placeholder]: value === void 0
|
|
20298
20509
|
}),
|
|
20299
20510
|
children: selectedOption ? selectedOption.label : readOnly2 ? "" : placeholder2
|
|
20300
20511
|
}
|
|
20301
20512
|
),
|
|
20302
|
-
/* @__PURE__ */ jsx(
|
|
20513
|
+
/* @__PURE__ */ jsx("span", { className: styles$J.action, children: /* @__PURE__ */ jsx(Icon, { name: "chevrondown" }) })
|
|
20303
20514
|
]
|
|
20304
20515
|
}
|
|
20305
20516
|
),
|
|
20306
|
-
/* @__PURE__ */ jsx(Portal
|
|
20517
|
+
/* @__PURE__ */ jsx(Portal, { container: root2, children: /* @__PURE__ */ jsxs(
|
|
20307
20518
|
Content,
|
|
20308
20519
|
{
|
|
20309
|
-
className: styles$J.
|
|
20520
|
+
className: styles$J.selectDropdownContent,
|
|
20310
20521
|
position: "popper",
|
|
20311
20522
|
style: { maxHeight: height, minWidth: width },
|
|
20312
20523
|
children: [
|
|
20313
20524
|
/* @__PURE__ */ jsx(ScrollUpButton, { className: styles$J.selectScrollUpButton, children: /* @__PURE__ */ jsx(Icon, { name: "chevronup" }) }),
|
|
20314
|
-
/* @__PURE__ */ jsxs(
|
|
20525
|
+
/* @__PURE__ */ jsxs(Viewport, { className: styles$J.selectViewport, role: "listbox", children: [
|
|
20315
20526
|
children,
|
|
20316
20527
|
optionsArray.length === 0 && emptyListNode
|
|
20317
20528
|
] }),
|
|
@@ -20322,6 +20533,148 @@ const SimpleSelect = forwardRef(
|
|
|
20322
20533
|
] });
|
|
20323
20534
|
}
|
|
20324
20535
|
);
|
|
20536
|
+
const MultiSelectOption = forwardRef(function MultiSelectOption2(option, forwardedRef) {
|
|
20537
|
+
const id = useId();
|
|
20538
|
+
const {
|
|
20539
|
+
label: label2,
|
|
20540
|
+
value,
|
|
20541
|
+
enabled: enabled2 = true,
|
|
20542
|
+
keywords,
|
|
20543
|
+
readOnly: readOnly2,
|
|
20544
|
+
children,
|
|
20545
|
+
isHighlighted = false,
|
|
20546
|
+
itemIndex
|
|
20547
|
+
} = option;
|
|
20548
|
+
const {
|
|
20549
|
+
value: selectedValue,
|
|
20550
|
+
onChange,
|
|
20551
|
+
multiSelect,
|
|
20552
|
+
setOpen,
|
|
20553
|
+
setSelectedIndex,
|
|
20554
|
+
optionRenderer
|
|
20555
|
+
} = useSelect();
|
|
20556
|
+
const selected2 = useMemo(() => {
|
|
20557
|
+
return Array.isArray(selectedValue) && multiSelect ? selectedValue.map((v) => String(v)).includes(value) : String(selectedValue) === String(value);
|
|
20558
|
+
}, [selectedValue, value, multiSelect]);
|
|
20559
|
+
const handleClick = () => {
|
|
20560
|
+
if (readOnly2) {
|
|
20561
|
+
setOpen(false);
|
|
20562
|
+
return;
|
|
20563
|
+
}
|
|
20564
|
+
if (enabled2) {
|
|
20565
|
+
onChange(value);
|
|
20566
|
+
}
|
|
20567
|
+
};
|
|
20568
|
+
return /* @__PURE__ */ jsx(
|
|
20569
|
+
"div",
|
|
20570
|
+
{
|
|
20571
|
+
id,
|
|
20572
|
+
ref: forwardedRef,
|
|
20573
|
+
role: "option",
|
|
20574
|
+
"aria-disabled": !enabled2,
|
|
20575
|
+
"aria-selected": selected2,
|
|
20576
|
+
className: classnames(styles$J.multiSelectOption, {
|
|
20577
|
+
[styles$J.disabledOption]: !enabled2,
|
|
20578
|
+
[styles$J.highlighted]: isHighlighted
|
|
20579
|
+
}),
|
|
20580
|
+
onMouseDown: (e) => {
|
|
20581
|
+
e.preventDefault();
|
|
20582
|
+
e.stopPropagation();
|
|
20583
|
+
},
|
|
20584
|
+
onMouseEnter: () => {
|
|
20585
|
+
if (itemIndex !== void 0 && setSelectedIndex && enabled2) {
|
|
20586
|
+
setSelectedIndex(itemIndex);
|
|
20587
|
+
}
|
|
20588
|
+
},
|
|
20589
|
+
onClick: handleClick,
|
|
20590
|
+
"data-state": selected2 ? "checked" : void 0,
|
|
20591
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$J.multiSelectOptionContent, children: optionRenderer ? optionRenderer({ label: label2, value, enabled: enabled2, keywords }, selectedValue, false) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20592
|
+
children || label2,
|
|
20593
|
+
selected2 && /* @__PURE__ */ jsx(Icon, { name: "checkmark" })
|
|
20594
|
+
] }) })
|
|
20595
|
+
}
|
|
20596
|
+
);
|
|
20597
|
+
});
|
|
20598
|
+
const defaultProps$F = {
|
|
20599
|
+
enabled: true,
|
|
20600
|
+
placeholder: "",
|
|
20601
|
+
autoFocus: false,
|
|
20602
|
+
searchable: false,
|
|
20603
|
+
multiSelect: false,
|
|
20604
|
+
required: false,
|
|
20605
|
+
inProgress: false,
|
|
20606
|
+
inProgressNotificationMessage: "",
|
|
20607
|
+
readOnly: false,
|
|
20608
|
+
validationStatus: "none"
|
|
20609
|
+
};
|
|
20610
|
+
const SelectTriggerValue = ({
|
|
20611
|
+
value,
|
|
20612
|
+
placeholder: placeholder2,
|
|
20613
|
+
readOnly: readOnly2,
|
|
20614
|
+
multiSelect,
|
|
20615
|
+
options: options2,
|
|
20616
|
+
valueRenderer,
|
|
20617
|
+
toggleOption
|
|
20618
|
+
}) => {
|
|
20619
|
+
if (multiSelect) {
|
|
20620
|
+
if (Array.isArray(value) && value.length > 0) {
|
|
20621
|
+
return /* @__PURE__ */ jsx("div", { className: styles$J.badgeListContainer, children: /* @__PURE__ */ jsx("div", { className: styles$J.badgeList, children: value.map(
|
|
20622
|
+
(v) => {
|
|
20623
|
+
var _a2;
|
|
20624
|
+
return valueRenderer ? valueRenderer(
|
|
20625
|
+
Array.from(options2).find((o) => o.value === `${v}`),
|
|
20626
|
+
() => {
|
|
20627
|
+
toggleOption(v);
|
|
20628
|
+
}
|
|
20629
|
+
) : /* @__PURE__ */ jsxs("span", { className: styles$J.badge, children: [
|
|
20630
|
+
(_a2 = Array.from(options2).find((o) => o.value === `${v}`)) == null ? void 0 : _a2.label,
|
|
20631
|
+
/* @__PURE__ */ jsx(
|
|
20632
|
+
Icon,
|
|
20633
|
+
{
|
|
20634
|
+
name: "close",
|
|
20635
|
+
size: "sm",
|
|
20636
|
+
onClick: (event) => {
|
|
20637
|
+
event.stopPropagation();
|
|
20638
|
+
toggleOption(v);
|
|
20639
|
+
}
|
|
20640
|
+
}
|
|
20641
|
+
)
|
|
20642
|
+
] }, v);
|
|
20643
|
+
}
|
|
20644
|
+
) }) });
|
|
20645
|
+
}
|
|
20646
|
+
return /* @__PURE__ */ jsx("span", { placeholder: placeholder2, className: styles$J.placeholder, children: placeholder2 });
|
|
20647
|
+
}
|
|
20648
|
+
if (value !== void 0 && value !== null && value !== "") {
|
|
20649
|
+
const selectedOption = Array.from(options2).find((o) => o.value === value);
|
|
20650
|
+
return /* @__PURE__ */ jsx("div", { className: styles$J.selectValue, children: selectedOption == null ? void 0 : selectedOption.label });
|
|
20651
|
+
}
|
|
20652
|
+
return /* @__PURE__ */ jsx("div", { "aria-placeholder": placeholder2, className: styles$J.placeholder, children: readOnly2 ? "" : placeholder2 || "" });
|
|
20653
|
+
};
|
|
20654
|
+
const SelectTriggerActions = ({
|
|
20655
|
+
value,
|
|
20656
|
+
multiSelect,
|
|
20657
|
+
enabled: enabled2,
|
|
20658
|
+
readOnly: readOnly2,
|
|
20659
|
+
clearValue,
|
|
20660
|
+
showChevron = true
|
|
20661
|
+
}) => {
|
|
20662
|
+
const hasValue = multiSelect ? Array.isArray(value) && value.length > 0 : value !== void 0 && value !== null && value !== "";
|
|
20663
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$J.actions, children: [
|
|
20664
|
+
hasValue && enabled2 && !readOnly2 && /* @__PURE__ */ jsx(
|
|
20665
|
+
"span",
|
|
20666
|
+
{
|
|
20667
|
+
className: styles$J.action,
|
|
20668
|
+
onClick: (event) => {
|
|
20669
|
+
event.stopPropagation();
|
|
20670
|
+
clearValue();
|
|
20671
|
+
},
|
|
20672
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "close" })
|
|
20673
|
+
}
|
|
20674
|
+
),
|
|
20675
|
+
showChevron && /* @__PURE__ */ jsx("span", { className: styles$J.action, children: /* @__PURE__ */ jsx(Icon, { name: "chevrondown" }) })
|
|
20676
|
+
] });
|
|
20677
|
+
};
|
|
20325
20678
|
const Select = forwardRef(function Select2({
|
|
20326
20679
|
// Basic props
|
|
20327
20680
|
id,
|
|
@@ -20357,7 +20710,6 @@ const Select = forwardRef(function Select2({
|
|
|
20357
20710
|
children,
|
|
20358
20711
|
...rest
|
|
20359
20712
|
}, forwardedRef) {
|
|
20360
|
-
var _a2;
|
|
20361
20713
|
const [referenceElement, setReferenceElement] = useState(null);
|
|
20362
20714
|
const [open, setOpen] = useState(false);
|
|
20363
20715
|
const [width, setWidth] = useState(0);
|
|
@@ -20365,22 +20717,40 @@ const Select = forwardRef(function Select2({
|
|
|
20365
20717
|
const { root: root2 } = useTheme();
|
|
20366
20718
|
const [options2, setOptions] = useState(/* @__PURE__ */ new Set());
|
|
20367
20719
|
const isInForm = useIsInsideForm();
|
|
20720
|
+
const [searchTerm, setSearchTerm] = useState("");
|
|
20721
|
+
const [selectedIndex, setSelectedIndex] = useState(-1);
|
|
20722
|
+
const filteredOptions = useMemo(() => {
|
|
20723
|
+
if (!searchTerm || searchTerm.trim() === "") {
|
|
20724
|
+
return Array.from(options2);
|
|
20725
|
+
}
|
|
20726
|
+
const searchLower = searchTerm.toLowerCase();
|
|
20727
|
+
return Array.from(options2).filter((option) => {
|
|
20728
|
+
const extendedValue = option.value + " " + option.label + " " + (option.keywords || []).join(" ");
|
|
20729
|
+
return extendedValue.toLowerCase().includes(searchLower);
|
|
20730
|
+
});
|
|
20731
|
+
}, [options2, searchTerm]);
|
|
20732
|
+
useEffect(() => {
|
|
20733
|
+
if (!open) {
|
|
20734
|
+
setSelectedIndex(-1);
|
|
20735
|
+
setSearchTerm("");
|
|
20736
|
+
}
|
|
20737
|
+
}, [open]);
|
|
20368
20738
|
useEffect(() => {
|
|
20369
20739
|
if (initialValue !== void 0) {
|
|
20370
20740
|
updateState({ value: initialValue }, { initial: true });
|
|
20371
20741
|
}
|
|
20372
20742
|
}, [initialValue, updateState]);
|
|
20373
20743
|
useEffect(() => {
|
|
20374
|
-
var
|
|
20744
|
+
var _a2;
|
|
20375
20745
|
const current = referenceElement;
|
|
20376
|
-
(
|
|
20746
|
+
(_a2 = observer.current) == null ? void 0 : _a2.disconnect();
|
|
20377
20747
|
if (current) {
|
|
20378
20748
|
observer.current = new ResizeObserver(() => setWidth(current.clientWidth));
|
|
20379
20749
|
observer.current.observe(current);
|
|
20380
20750
|
}
|
|
20381
20751
|
return () => {
|
|
20382
|
-
var
|
|
20383
|
-
(
|
|
20752
|
+
var _a3;
|
|
20753
|
+
(_a3 = observer.current) == null ? void 0 : _a3.disconnect();
|
|
20384
20754
|
};
|
|
20385
20755
|
}, [referenceElement]);
|
|
20386
20756
|
const toggleOption = useCallback(
|
|
@@ -20399,6 +20769,84 @@ const Select = forwardRef(function Select2({
|
|
|
20399
20769
|
updateState({ value: newValue });
|
|
20400
20770
|
onDidChange(newValue);
|
|
20401
20771
|
}, [multiSelect, updateState, onDidChange]);
|
|
20772
|
+
const findNextEnabledIndex = useCallback(
|
|
20773
|
+
(currentIndex) => {
|
|
20774
|
+
for (let i = currentIndex + 1; i < filteredOptions.length; i++) {
|
|
20775
|
+
const item2 = filteredOptions[i];
|
|
20776
|
+
if (item2.enabled !== false) {
|
|
20777
|
+
return i;
|
|
20778
|
+
}
|
|
20779
|
+
}
|
|
20780
|
+
for (let i = 0; i <= currentIndex; i++) {
|
|
20781
|
+
const item2 = filteredOptions[i];
|
|
20782
|
+
if (item2.enabled !== false) {
|
|
20783
|
+
return i;
|
|
20784
|
+
}
|
|
20785
|
+
}
|
|
20786
|
+
return -1;
|
|
20787
|
+
},
|
|
20788
|
+
[filteredOptions]
|
|
20789
|
+
);
|
|
20790
|
+
const findPreviousEnabledIndex = useCallback(
|
|
20791
|
+
(currentIndex) => {
|
|
20792
|
+
for (let i = currentIndex - 1; i >= 0; i--) {
|
|
20793
|
+
const item2 = filteredOptions[i];
|
|
20794
|
+
if (item2.enabled !== false) {
|
|
20795
|
+
return i;
|
|
20796
|
+
}
|
|
20797
|
+
}
|
|
20798
|
+
for (let i = filteredOptions.length - 1; i >= currentIndex; i--) {
|
|
20799
|
+
const item2 = filteredOptions[i];
|
|
20800
|
+
if (item2.enabled !== false) {
|
|
20801
|
+
return i;
|
|
20802
|
+
}
|
|
20803
|
+
}
|
|
20804
|
+
return -1;
|
|
20805
|
+
},
|
|
20806
|
+
[filteredOptions]
|
|
20807
|
+
);
|
|
20808
|
+
const handleKeyDown = useCallback(
|
|
20809
|
+
(event) => {
|
|
20810
|
+
if (!open) return;
|
|
20811
|
+
switch (event.key) {
|
|
20812
|
+
case "ArrowDown":
|
|
20813
|
+
event.preventDefault();
|
|
20814
|
+
setSelectedIndex((prev) => {
|
|
20815
|
+
const nextIndex = findNextEnabledIndex(prev);
|
|
20816
|
+
return nextIndex !== -1 ? nextIndex : prev;
|
|
20817
|
+
});
|
|
20818
|
+
break;
|
|
20819
|
+
case "ArrowUp":
|
|
20820
|
+
event.preventDefault();
|
|
20821
|
+
setSelectedIndex((prev) => {
|
|
20822
|
+
const prevIndex = findPreviousEnabledIndex(prev);
|
|
20823
|
+
return prevIndex !== -1 ? prevIndex : prev;
|
|
20824
|
+
});
|
|
20825
|
+
break;
|
|
20826
|
+
case "Enter":
|
|
20827
|
+
event.preventDefault();
|
|
20828
|
+
if (selectedIndex >= 0 && selectedIndex < filteredOptions.length) {
|
|
20829
|
+
const selectedItem = filteredOptions[selectedIndex];
|
|
20830
|
+
if (selectedItem.enabled !== false) {
|
|
20831
|
+
toggleOption(selectedItem.value);
|
|
20832
|
+
}
|
|
20833
|
+
}
|
|
20834
|
+
break;
|
|
20835
|
+
case "Escape":
|
|
20836
|
+
event.preventDefault();
|
|
20837
|
+
setOpen(false);
|
|
20838
|
+
break;
|
|
20839
|
+
}
|
|
20840
|
+
},
|
|
20841
|
+
[
|
|
20842
|
+
open,
|
|
20843
|
+
selectedIndex,
|
|
20844
|
+
filteredOptions,
|
|
20845
|
+
toggleOption,
|
|
20846
|
+
findNextEnabledIndex,
|
|
20847
|
+
findPreviousEnabledIndex
|
|
20848
|
+
]
|
|
20849
|
+
);
|
|
20402
20850
|
const focus = useCallback(() => {
|
|
20403
20851
|
referenceElement == null ? void 0 : referenceElement.focus();
|
|
20404
20852
|
}, [referenceElement]);
|
|
@@ -20450,14 +20898,15 @@ const Select = forwardRef(function Select2({
|
|
|
20450
20898
|
value,
|
|
20451
20899
|
onChange: toggleOption,
|
|
20452
20900
|
setOpen,
|
|
20901
|
+
setSelectedIndex,
|
|
20453
20902
|
options: options2,
|
|
20454
20903
|
optionRenderer
|
|
20455
20904
|
}),
|
|
20456
|
-
[multiSelect, toggleOption, value, options2]
|
|
20905
|
+
[multiSelect, toggleOption, value, options2, optionRenderer]
|
|
20457
20906
|
);
|
|
20458
20907
|
return /* @__PURE__ */ jsx(SelectContext.Provider, { value: selectContextValue, children: /* @__PURE__ */ jsx(OptionContext.Provider, { value: optionContextValue, children: searchable || multiSelect ? /* @__PURE__ */ jsxs(OptionTypeProvider, { Component: HiddenOption, children: [
|
|
20459
20908
|
/* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, modal: false, children: [
|
|
20460
|
-
/* @__PURE__ */
|
|
20909
|
+
/* @__PURE__ */ jsxs(
|
|
20461
20910
|
PopoverTrigger,
|
|
20462
20911
|
{
|
|
20463
20912
|
...rest,
|
|
@@ -20483,96 +20932,71 @@ const Select = forwardRef(function Select2({
|
|
|
20483
20932
|
className
|
|
20484
20933
|
),
|
|
20485
20934
|
autoFocus,
|
|
20486
|
-
children:
|
|
20487
|
-
|
|
20488
|
-
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
|
|
20494
|
-
|
|
20495
|
-
|
|
20496
|
-
|
|
20497
|
-
/* @__PURE__ */ jsx(
|
|
20498
|
-
Icon,
|
|
20499
|
-
{
|
|
20500
|
-
name: "close",
|
|
20501
|
-
size: "sm",
|
|
20502
|
-
onClick: (event) => {
|
|
20503
|
-
event.stopPropagation();
|
|
20504
|
-
toggleOption(v);
|
|
20505
|
-
}
|
|
20506
|
-
}
|
|
20507
|
-
)
|
|
20508
|
-
] }, v);
|
|
20935
|
+
children: [
|
|
20936
|
+
/* @__PURE__ */ jsx(
|
|
20937
|
+
SelectTriggerValue,
|
|
20938
|
+
{
|
|
20939
|
+
value,
|
|
20940
|
+
placeholder: placeholder2,
|
|
20941
|
+
readOnly: readOnly2,
|
|
20942
|
+
multiSelect,
|
|
20943
|
+
options: options2,
|
|
20944
|
+
valueRenderer,
|
|
20945
|
+
toggleOption
|
|
20509
20946
|
}
|
|
20510
|
-
)
|
|
20511
|
-
/* @__PURE__ */
|
|
20512
|
-
|
|
20513
|
-
|
|
20514
|
-
|
|
20515
|
-
|
|
20516
|
-
|
|
20517
|
-
|
|
20518
|
-
|
|
20519
|
-
|
|
20520
|
-
|
|
20521
|
-
|
|
20522
|
-
/* @__PURE__ */ jsx(Icon, { name: "chevrondown" })
|
|
20523
|
-
] })
|
|
20524
|
-
] })
|
|
20947
|
+
),
|
|
20948
|
+
/* @__PURE__ */ jsx(
|
|
20949
|
+
SelectTriggerActions,
|
|
20950
|
+
{
|
|
20951
|
+
value,
|
|
20952
|
+
multiSelect,
|
|
20953
|
+
enabled: enabled2,
|
|
20954
|
+
readOnly: readOnly2,
|
|
20955
|
+
clearValue
|
|
20956
|
+
}
|
|
20957
|
+
)
|
|
20958
|
+
]
|
|
20525
20959
|
}
|
|
20526
20960
|
),
|
|
20527
|
-
open && /* @__PURE__ */ jsx(Portal, { container: root2, children: /* @__PURE__ */ jsx(FocusScope, { asChild: true, loop: true, trapped: true, children: /* @__PURE__ */ jsx(
|
|
20961
|
+
open && /* @__PURE__ */ jsx(Portal$1, { container: root2, children: /* @__PURE__ */ jsx(FocusScope, { asChild: true, loop: true, trapped: true, children: /* @__PURE__ */ jsx(
|
|
20528
20962
|
PopoverContent,
|
|
20529
20963
|
{
|
|
20530
20964
|
style: { minWidth: width, height: dropdownHeight },
|
|
20531
20965
|
className: styles$J.selectContent,
|
|
20532
|
-
|
|
20533
|
-
|
|
20534
|
-
{
|
|
20535
|
-
|
|
20536
|
-
|
|
20537
|
-
|
|
20538
|
-
|
|
20539
|
-
|
|
20540
|
-
|
|
20966
|
+
onKeyDown: handleKeyDown,
|
|
20967
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles$J.command, children: [
|
|
20968
|
+
searchable ? /* @__PURE__ */ jsxs("div", { className: styles$J.commandInputContainer, children: [
|
|
20969
|
+
/* @__PURE__ */ jsx(Icon, { name: "search" }),
|
|
20970
|
+
/* @__PURE__ */ jsx(
|
|
20971
|
+
"input",
|
|
20972
|
+
{
|
|
20973
|
+
role: "combobox",
|
|
20974
|
+
className: classnames(styles$J.commandInput),
|
|
20975
|
+
placeholder: "Search...",
|
|
20976
|
+
value: searchTerm,
|
|
20977
|
+
onChange: (e) => setSearchTerm(e.target.value),
|
|
20978
|
+
autoFocus: true
|
|
20541
20979
|
}
|
|
20542
|
-
|
|
20543
|
-
|
|
20544
|
-
|
|
20545
|
-
|
|
20546
|
-
|
|
20547
|
-
|
|
20548
|
-
|
|
20549
|
-
|
|
20550
|
-
|
|
20551
|
-
|
|
20552
|
-
|
|
20553
|
-
|
|
20554
|
-
|
|
20555
|
-
|
|
20556
|
-
|
|
20557
|
-
|
|
20558
|
-
|
|
20559
|
-
|
|
20560
|
-
|
|
20561
|
-
|
|
20562
|
-
{
|
|
20563
|
-
readOnly: readOnly2,
|
|
20564
|
-
value: value2,
|
|
20565
|
-
label: label2,
|
|
20566
|
-
enabled: enabled22,
|
|
20567
|
-
keywords
|
|
20568
|
-
},
|
|
20569
|
-
value2
|
|
20570
|
-
)),
|
|
20571
|
-
!inProgress && /* @__PURE__ */ jsx(CommandEmpty, { children: emptyListNode })
|
|
20572
|
-
] })
|
|
20573
|
-
]
|
|
20574
|
-
}
|
|
20575
|
-
)
|
|
20980
|
+
)
|
|
20981
|
+
] }) : /* @__PURE__ */ jsx("button", { autoFocus: true, "aria-hidden": "true", className: styles$J.srOnly }),
|
|
20982
|
+
/* @__PURE__ */ jsxs("div", { role: "listbox", className: styles$J.commandList, children: [
|
|
20983
|
+
inProgress && /* @__PURE__ */ jsx("div", { className: styles$J.loading, children: inProgressNotificationMessage }),
|
|
20984
|
+
filteredOptions.map(({ value: value2, label: label2, enabled: enabled22, keywords }, index) => /* @__PURE__ */ jsx(
|
|
20985
|
+
MultiSelectOption,
|
|
20986
|
+
{
|
|
20987
|
+
readOnly: readOnly2,
|
|
20988
|
+
value: value2,
|
|
20989
|
+
label: label2,
|
|
20990
|
+
enabled: enabled22,
|
|
20991
|
+
keywords,
|
|
20992
|
+
isHighlighted: selectedIndex === index,
|
|
20993
|
+
itemIndex: index
|
|
20994
|
+
},
|
|
20995
|
+
value2
|
|
20996
|
+
)),
|
|
20997
|
+
!inProgress && filteredOptions.length === 0 && /* @__PURE__ */ jsx("div", { children: emptyListNode })
|
|
20998
|
+
] })
|
|
20999
|
+
] })
|
|
20576
21000
|
}
|
|
20577
21001
|
) }) })
|
|
20578
21002
|
] }),
|
|
@@ -20603,104 +21027,6 @@ const Select = forwardRef(function Select2({
|
|
|
20603
21027
|
children
|
|
20604
21028
|
) }) }) });
|
|
20605
21029
|
});
|
|
20606
|
-
const ComboboxOption = forwardRef(function Combobox(option, forwardedRef) {
|
|
20607
|
-
const id = useId();
|
|
20608
|
-
const { label: label2, value, enabled: enabled2 = true, keywords, readOnly: readOnly2, children } = option;
|
|
20609
|
-
const { value: selectedValue, onChange, multiSelect, setOpen, optionRenderer } = useSelect();
|
|
20610
|
-
const selected2 = useMemo(() => {
|
|
20611
|
-
return Array.isArray(selectedValue) && multiSelect ? selectedValue.map((v) => String(v)).includes(value) : String(selectedValue) === String(value);
|
|
20612
|
-
}, [selectedValue, value, multiSelect]);
|
|
20613
|
-
return /* @__PURE__ */ jsx(
|
|
20614
|
-
CommandItem,
|
|
20615
|
-
{
|
|
20616
|
-
id,
|
|
20617
|
-
ref: forwardedRef,
|
|
20618
|
-
disabled: !enabled2,
|
|
20619
|
-
value,
|
|
20620
|
-
className: styles$J.multiComboboxOption,
|
|
20621
|
-
onSelect: () => {
|
|
20622
|
-
if (readOnly2) {
|
|
20623
|
-
setOpen(false);
|
|
20624
|
-
return;
|
|
20625
|
-
}
|
|
20626
|
-
onChange(value);
|
|
20627
|
-
},
|
|
20628
|
-
onClick: (event) => {
|
|
20629
|
-
event.stopPropagation();
|
|
20630
|
-
},
|
|
20631
|
-
"data-state": selected2 ? "checked" : void 0,
|
|
20632
|
-
keywords: [...keywords, label2],
|
|
20633
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$J.multiComboboxOptionContent, children: optionRenderer ? optionRenderer({ label: label2, value, enabled: enabled2, keywords }, selectedValue, false) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20634
|
-
children || label2,
|
|
20635
|
-
selected2 && /* @__PURE__ */ jsx(Icon, { name: "checkmark" })
|
|
20636
|
-
] }) })
|
|
20637
|
-
},
|
|
20638
|
-
id
|
|
20639
|
-
);
|
|
20640
|
-
});
|
|
20641
|
-
const SelectOption = React__default.forwardRef(
|
|
20642
|
-
(option, ref) => {
|
|
20643
|
-
var _a2;
|
|
20644
|
-
const visibleContentRef = useRef(null);
|
|
20645
|
-
const { value, label: label2, enabled: enabled2 = true, children, className } = option;
|
|
20646
|
-
const { value: selectedValue, optionRenderer } = useSelect();
|
|
20647
|
-
const { onOptionRemove, onOptionAdd } = useOption();
|
|
20648
|
-
const opt = useMemo(() => {
|
|
20649
|
-
var _a3, _b;
|
|
20650
|
-
return {
|
|
20651
|
-
...option,
|
|
20652
|
-
label: label2 ?? ((_a3 = visibleContentRef.current) == null ? void 0 : _a3.textContent) ?? "",
|
|
20653
|
-
keywords: [label2 ?? ((_b = visibleContentRef.current) == null ? void 0 : _b.textContent) ?? ""]
|
|
20654
|
-
// Store the rendered ReactNode for dropdown display
|
|
20655
|
-
};
|
|
20656
|
-
}, [option, label2, visibleContentRef.current]);
|
|
20657
|
-
useEffect(() => {
|
|
20658
|
-
onOptionAdd(opt);
|
|
20659
|
-
return () => onOptionRemove(opt);
|
|
20660
|
-
}, [opt, onOptionAdd, onOptionRemove]);
|
|
20661
|
-
return /* @__PURE__ */ jsxs(
|
|
20662
|
-
Item$1,
|
|
20663
|
-
{
|
|
20664
|
-
ref,
|
|
20665
|
-
className: classnames(styles$J.selectItem, className),
|
|
20666
|
-
value,
|
|
20667
|
-
textValue: label2 || ((_a2 = visibleContentRef.current) == null ? void 0 : _a2.textContent),
|
|
20668
|
-
disabled: !enabled2,
|
|
20669
|
-
onClick: (event) => {
|
|
20670
|
-
event.stopPropagation();
|
|
20671
|
-
},
|
|
20672
|
-
onMouseEnter: (event) => {
|
|
20673
|
-
const target2 = event.currentTarget;
|
|
20674
|
-
target2.setAttribute("data-highlighted", "");
|
|
20675
|
-
},
|
|
20676
|
-
onMouseLeave: (event) => {
|
|
20677
|
-
const target2 = event.currentTarget;
|
|
20678
|
-
target2.removeAttribute("data-highlighted");
|
|
20679
|
-
},
|
|
20680
|
-
"data-state": selectedValue === value && "checked",
|
|
20681
|
-
children: [
|
|
20682
|
-
/* @__PURE__ */ jsx("span", { style: { display: "none" }, children: /* @__PURE__ */ jsx(ItemText, { children: label2 }) }),
|
|
20683
|
-
children ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20684
|
-
/* @__PURE__ */ jsx("div", { className: styles$J.selectItemContent, ref: visibleContentRef, children }),
|
|
20685
|
-
selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$J.selectItemIndicator, children: /* @__PURE__ */ jsx(Icon, { name: "checkmark" }) })
|
|
20686
|
-
] }) : optionRenderer ? /* @__PURE__ */ jsx("div", { className: styles$J.selectItemContent, ref: visibleContentRef, children: optionRenderer(
|
|
20687
|
-
{
|
|
20688
|
-
label: label2,
|
|
20689
|
-
value,
|
|
20690
|
-
enabled: enabled2
|
|
20691
|
-
},
|
|
20692
|
-
selectedValue,
|
|
20693
|
-
false
|
|
20694
|
-
) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20695
|
-
/* @__PURE__ */ jsx("div", { className: styles$J.selectItemContent, ref: visibleContentRef, children: label2 }),
|
|
20696
|
-
selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$J.selectItemIndicator, children: /* @__PURE__ */ jsx(Icon, { name: "checkmark" }) })
|
|
20697
|
-
] })
|
|
20698
|
-
]
|
|
20699
|
-
}
|
|
20700
|
-
);
|
|
20701
|
-
}
|
|
20702
|
-
);
|
|
20703
|
-
SelectOption.displayName = "SelectOption";
|
|
20704
21030
|
const themeVars$n = `'{"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)"}'`;
|
|
20705
21031
|
const radioGroupContainer = "_radioGroupContainer_fn2iu_14";
|
|
20706
21032
|
const radioOptionContainer = "_radioOptionContainer_fn2iu_20";
|
|
@@ -21121,8 +21447,8 @@ const DatePicker = forwardRef(function DatePicker2({
|
|
|
21121
21447
|
dateFormat = defaultProps$B.dateFormat,
|
|
21122
21448
|
showWeekNumber = defaultProps$B.showWeekNumber,
|
|
21123
21449
|
weekStartsOn = defaultProps$B.weekStartsOn,
|
|
21124
|
-
|
|
21125
|
-
|
|
21450
|
+
startDate,
|
|
21451
|
+
endDate,
|
|
21126
21452
|
disabledDates = defaultProps$B.disabledDates,
|
|
21127
21453
|
style: style2,
|
|
21128
21454
|
className,
|
|
@@ -21165,12 +21491,12 @@ const DatePicker = forwardRef(function DatePicker2({
|
|
|
21165
21491
|
);
|
|
21166
21492
|
}
|
|
21167
21493
|
}, [dateFormat]);
|
|
21168
|
-
const
|
|
21169
|
-
return
|
|
21170
|
-
}, [
|
|
21171
|
-
const
|
|
21172
|
-
return
|
|
21173
|
-
}, [
|
|
21494
|
+
const _startDate = useMemo(() => {
|
|
21495
|
+
return startDate ? parse(startDate, dateFormat, /* @__PURE__ */ new Date()) : void 0;
|
|
21496
|
+
}, [startDate, dateFormat]);
|
|
21497
|
+
const _endDate = useMemo(() => {
|
|
21498
|
+
return endDate ? parse(endDate, dateFormat, /* @__PURE__ */ new Date()) : void 0;
|
|
21499
|
+
}, [endDate, dateFormat]);
|
|
21174
21500
|
const defaultMonth = useMemo(() => {
|
|
21175
21501
|
if (mode === "single" && selected2) {
|
|
21176
21502
|
return selected2;
|
|
@@ -21324,32 +21650,42 @@ const DatePicker = forwardRef(function DatePicker2({
|
|
|
21324
21650
|
},
|
|
21325
21651
|
[onDidChange, updateState, mode, dateFormat, readOnly2]
|
|
21326
21652
|
);
|
|
21327
|
-
return inline ? /* @__PURE__ */ jsx(
|
|
21328
|
-
|
|
21653
|
+
return inline ? /* @__PURE__ */ jsx(
|
|
21654
|
+
"div",
|
|
21329
21655
|
{
|
|
21330
|
-
|
|
21331
|
-
|
|
21332
|
-
|
|
21333
|
-
|
|
21334
|
-
|
|
21335
|
-
|
|
21336
|
-
|
|
21337
|
-
|
|
21338
|
-
|
|
21339
|
-
|
|
21340
|
-
|
|
21341
|
-
|
|
21342
|
-
|
|
21343
|
-
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
|
|
21347
|
-
|
|
21348
|
-
|
|
21349
|
-
|
|
21350
|
-
|
|
21656
|
+
ref,
|
|
21657
|
+
...rest,
|
|
21658
|
+
style: style2,
|
|
21659
|
+
className: classnames(styles$H.inlinePickerMenu, className),
|
|
21660
|
+
tabIndex: 0,
|
|
21661
|
+
children: /* @__PURE__ */ jsx(
|
|
21662
|
+
DayPicker,
|
|
21663
|
+
{
|
|
21664
|
+
id,
|
|
21665
|
+
required: void 0,
|
|
21666
|
+
captionLayout: "dropdown",
|
|
21667
|
+
fixedWeeks: true,
|
|
21668
|
+
startMonth: _startDate,
|
|
21669
|
+
endMonth: _endDate,
|
|
21670
|
+
month: inlineMonth,
|
|
21671
|
+
onMonthChange: setInlineMonth,
|
|
21672
|
+
disabled: disabled2,
|
|
21673
|
+
weekStartsOn: _weekStartsOn,
|
|
21674
|
+
showWeekNumber,
|
|
21675
|
+
showOutsideDays: true,
|
|
21676
|
+
classNames: styles$H,
|
|
21677
|
+
mode: mode === "single" ? "single" : "range",
|
|
21678
|
+
selected: selected2,
|
|
21679
|
+
onSelect: handleSelect,
|
|
21680
|
+
autoFocus,
|
|
21681
|
+
numberOfMonths: mode === "range" ? 2 : 1,
|
|
21682
|
+
components: {
|
|
21683
|
+
Chevron
|
|
21684
|
+
}
|
|
21685
|
+
}
|
|
21686
|
+
)
|
|
21351
21687
|
}
|
|
21352
|
-
)
|
|
21688
|
+
) : /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, modal: false, children: [
|
|
21353
21689
|
/* @__PURE__ */ jsxs(
|
|
21354
21690
|
PopoverTrigger,
|
|
21355
21691
|
{
|
|
@@ -21403,8 +21739,8 @@ const DatePicker = forwardRef(function DatePicker2({
|
|
|
21403
21739
|
autoFocus,
|
|
21404
21740
|
classNames: styles$H,
|
|
21405
21741
|
captionLayout: "dropdown",
|
|
21406
|
-
startMonth:
|
|
21407
|
-
endMonth:
|
|
21742
|
+
startMonth: _startDate,
|
|
21743
|
+
endMonth: _endDate,
|
|
21408
21744
|
defaultMonth,
|
|
21409
21745
|
disabled: disabled2,
|
|
21410
21746
|
weekStartsOn: _weekStartsOn,
|
|
@@ -21808,7 +22144,7 @@ const Form = forwardRef(function({
|
|
|
21808
22144
|
]);
|
|
21809
22145
|
const doCancel = useEvent(() => {
|
|
21810
22146
|
onCancel == null ? void 0 : onCancel();
|
|
21811
|
-
requestModalFormClose();
|
|
22147
|
+
void requestModalFormClose();
|
|
21812
22148
|
});
|
|
21813
22149
|
const doSubmit = useEvent(async (event) => {
|
|
21814
22150
|
var _a2;
|
|
@@ -21838,7 +22174,7 @@ const Form = forwardRef(function({
|
|
|
21838
22174
|
dispatch(formSubmitted());
|
|
21839
22175
|
await (onSuccess == null ? void 0 : onSuccess(result));
|
|
21840
22176
|
if (!keepModalOpenOnSubmit) {
|
|
21841
|
-
requestModalFormClose();
|
|
22177
|
+
void requestModalFormClose();
|
|
21842
22178
|
}
|
|
21843
22179
|
if (initialValue === EMPTY_OBJECT) {
|
|
21844
22180
|
flushSync(() => {
|
|
@@ -22018,13 +22354,15 @@ const FormWithContextVar = forwardRef(function({
|
|
|
22018
22354
|
const completedNotificationMessage = extractValue.asOptionalString(node.props.completedNotificationMessage) || "";
|
|
22019
22355
|
const errorNotificationMessage = extractValue.asOptionalString(node.props.errorNotificationMessage) || "";
|
|
22020
22356
|
const submitUrl = extractValue.asOptionalString(node.props.submitUrl) || extractValue.asOptionalString(node.props._data_url);
|
|
22357
|
+
const itemLabelWidth = extractValue.asOptionalString(node.props.itemLabelWidth);
|
|
22358
|
+
const { cssProps: itemLabelWidthCssProps } = resolveLayoutProps({ width: itemLabelWidth });
|
|
22021
22359
|
return /* @__PURE__ */ jsx(Slot, { ref, style: style2, children: /* @__PURE__ */ jsx(
|
|
22022
22360
|
Form,
|
|
22023
22361
|
{
|
|
22024
22362
|
keepModalOpenOnSubmit: extractValue.asOptionalBoolean(node.props.keepModalOpenOnSubmit),
|
|
22025
22363
|
itemLabelPosition: extractValue.asOptionalString(node.props.itemLabelPosition),
|
|
22026
22364
|
itemLabelBreak: extractValue.asOptionalBoolean(node.props.itemLabelBreak),
|
|
22027
|
-
itemLabelWidth:
|
|
22365
|
+
itemLabelWidth: itemLabelWidthCssProps.width,
|
|
22028
22366
|
hideButtonRowUntilDirty: extractValue.asOptionalBoolean(node.props.hideButtonRowUntilDirty),
|
|
22029
22367
|
formState,
|
|
22030
22368
|
dispatch,
|
|
@@ -22064,24 +22402,25 @@ const FormWithContextVar = forwardRef(function({
|
|
|
22064
22402
|
) });
|
|
22065
22403
|
});
|
|
22066
22404
|
FormWithContextVar.displayName = "FormWithContextVar";
|
|
22067
|
-
const themeVars$k = `'{"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)"}'`;
|
|
22068
|
-
const command = "
|
|
22069
|
-
const badgeListWrapper = "
|
|
22070
|
-
const error$5 = "
|
|
22071
|
-
const warning$6 = "
|
|
22072
|
-
const valid$5 = "
|
|
22073
|
-
const disabled$4 = "
|
|
22074
|
-
const focused = "
|
|
22075
|
-
const badgeList = "
|
|
22076
|
-
const inputWrapper = "
|
|
22077
|
-
const badge = "
|
|
22078
|
-
const commandInput = "
|
|
22079
|
-
const actions = "
|
|
22080
|
-
const action = "
|
|
22081
|
-
const autoCompleteEmpty = "
|
|
22082
|
-
const commandList = "
|
|
22083
|
-
const autoCompleteOption = "
|
|
22084
|
-
const
|
|
22405
|
+
const themeVars$k = `'{"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)"}'`;
|
|
22406
|
+
const command = "_command_1gtkp_14";
|
|
22407
|
+
const badgeListWrapper = "_badgeListWrapper_1gtkp_20";
|
|
22408
|
+
const error$5 = "_error_1gtkp_51";
|
|
22409
|
+
const warning$6 = "_warning_1gtkp_71";
|
|
22410
|
+
const valid$5 = "_valid_1gtkp_91";
|
|
22411
|
+
const disabled$4 = "_disabled_1gtkp_111";
|
|
22412
|
+
const focused = "_focused_1gtkp_118";
|
|
22413
|
+
const badgeList = "_badgeList_1gtkp_20";
|
|
22414
|
+
const inputWrapper = "_inputWrapper_1gtkp_131";
|
|
22415
|
+
const badge = "_badge_1gtkp_20";
|
|
22416
|
+
const commandInput = "_commandInput_1gtkp_163";
|
|
22417
|
+
const actions = "_actions_1gtkp_178";
|
|
22418
|
+
const action = "_action_1gtkp_178";
|
|
22419
|
+
const autoCompleteEmpty = "_autoCompleteEmpty_1gtkp_186";
|
|
22420
|
+
const commandList = "_commandList_1gtkp_195";
|
|
22421
|
+
const autoCompleteOption = "_autoCompleteOption_1gtkp_208";
|
|
22422
|
+
const highlighted = "_highlighted_1gtkp_225";
|
|
22423
|
+
const disabledOption = "_disabledOption_1gtkp_228";
|
|
22085
22424
|
const styles$E = {
|
|
22086
22425
|
themeVars: themeVars$k,
|
|
22087
22426
|
command,
|
|
@@ -22099,8 +22438,9 @@ const styles$E = {
|
|
|
22099
22438
|
action,
|
|
22100
22439
|
autoCompleteEmpty,
|
|
22101
22440
|
commandList,
|
|
22102
|
-
"fade-in": "_fade-
|
|
22441
|
+
"fade-in": "_fade-in_1gtkp_1",
|
|
22103
22442
|
autoCompleteOption,
|
|
22443
|
+
highlighted,
|
|
22104
22444
|
disabledOption
|
|
22105
22445
|
};
|
|
22106
22446
|
const AutoCompleteContext = createContext({
|
|
@@ -22461,12 +22801,18 @@ const AutoComplete = forwardRef(function AutoComplete2({
|
|
|
22461
22801
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, ref: setReferenceElement, children: /* @__PURE__ */ jsxs(
|
|
22462
22802
|
"div",
|
|
22463
22803
|
{
|
|
22804
|
+
ref: forwardedRef,
|
|
22464
22805
|
style: style2,
|
|
22465
22806
|
"data-part-id": PART_LIST_WRAPPER,
|
|
22466
|
-
className: classnames(
|
|
22467
|
-
|
|
22468
|
-
|
|
22469
|
-
|
|
22807
|
+
className: classnames(
|
|
22808
|
+
className,
|
|
22809
|
+
styles$E.badgeListWrapper,
|
|
22810
|
+
styles$E[validationStatus],
|
|
22811
|
+
{
|
|
22812
|
+
[styles$E.disabled]: !enabled2,
|
|
22813
|
+
[styles$E.focused]: isFocused
|
|
22814
|
+
}
|
|
22815
|
+
),
|
|
22470
22816
|
"aria-expanded": open,
|
|
22471
22817
|
children: [
|
|
22472
22818
|
Array.isArray(selectedValue) && selectedValue.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$E.badgeList, children: selectedValue.map((v, index) => /* @__PURE__ */ jsxs("span", { className: styles$E.badge, children: [
|
|
@@ -22565,7 +22911,7 @@ const AutoComplete = forwardRef(function AutoComplete2({
|
|
|
22565
22911
|
]
|
|
22566
22912
|
}
|
|
22567
22913
|
) }),
|
|
22568
|
-
open && /* @__PURE__ */ jsx(Portal, { container: root2, children: /* @__PURE__ */ jsx(
|
|
22914
|
+
open && /* @__PURE__ */ jsx(Portal$1, { container: root2, children: /* @__PURE__ */ jsx(
|
|
22569
22915
|
PopoverContent,
|
|
22570
22916
|
{
|
|
22571
22917
|
style: { width, height: dropdownHeight },
|
|
@@ -22644,7 +22990,7 @@ function CreatableItem({ onNewItem, isHighlighted = false }) {
|
|
|
22644
22990
|
},
|
|
22645
22991
|
onClick: handleClick,
|
|
22646
22992
|
role: "option",
|
|
22647
|
-
"aria-selected":
|
|
22993
|
+
"aria-selected": false,
|
|
22648
22994
|
children: `Create "${searchTerm}"`
|
|
22649
22995
|
}
|
|
22650
22996
|
);
|
|
@@ -22658,7 +23004,6 @@ function AutoCompleteOption(option) {
|
|
|
22658
23004
|
value,
|
|
22659
23005
|
label: label2,
|
|
22660
23006
|
enabled: enabled2 = true,
|
|
22661
|
-
keywords,
|
|
22662
23007
|
readOnly: readOnly2,
|
|
22663
23008
|
children,
|
|
22664
23009
|
isHighlighted = false,
|
|
@@ -22686,7 +23031,7 @@ function AutoCompleteOption(option) {
|
|
|
22686
23031
|
id,
|
|
22687
23032
|
role: "option",
|
|
22688
23033
|
"aria-disabled": !enabled2,
|
|
22689
|
-
"aria-selected":
|
|
23034
|
+
"aria-selected": selected2,
|
|
22690
23035
|
className: classnames(styles$E.autoCompleteOption, {
|
|
22691
23036
|
[styles$E.disabledOption]: !enabled2,
|
|
22692
23037
|
[styles$E.highlighted]: isHighlighted
|
|
@@ -23108,7 +23453,7 @@ function CodeBlock({
|
|
|
23108
23453
|
icon: /* @__PURE__ */ jsx(Icon, { name: "copy", "aria-hidden": true }),
|
|
23109
23454
|
onClick: () => {
|
|
23110
23455
|
if (!textToCopy) return;
|
|
23111
|
-
navigator.clipboard.writeText(textToCopy);
|
|
23456
|
+
void navigator.clipboard.writeText(textToCopy);
|
|
23112
23457
|
toast.success("Code copied!");
|
|
23113
23458
|
}
|
|
23114
23459
|
}
|
|
@@ -23360,13 +23705,7 @@ function xmlUiMarkupToComponent(source, fileId = 0) {
|
|
|
23360
23705
|
const { parse: parse2, getText } = createXmlUiParser(source);
|
|
23361
23706
|
const { node, errors } = parse2();
|
|
23362
23707
|
if (errors.length > 0) {
|
|
23363
|
-
const
|
|
23364
|
-
for (let i = 0; i < source.length; ++i) {
|
|
23365
|
-
if (source[i] === "\n") {
|
|
23366
|
-
newlinePositions.push(i);
|
|
23367
|
-
}
|
|
23368
|
-
}
|
|
23369
|
-
const errorsForDisplay = addDisplayFieldsToErrors(errors, source, newlinePositions);
|
|
23708
|
+
const errorsForDisplay = addDisplayFieldsToErrors(errors, source);
|
|
23370
23709
|
const erroneousCompoundComponentName = getCompoundCompName(node, getText);
|
|
23371
23710
|
return { component: null, errors: errorsForDisplay, erroneousCompoundComponentName };
|
|
23372
23711
|
}
|
|
@@ -23795,21 +24134,6 @@ function errReportModuleErrors(errors, fileName) {
|
|
|
23795
24134
|
comp.component = createModuleErrorsComponent(errors, fileName);
|
|
23796
24135
|
return comp;
|
|
23797
24136
|
}
|
|
23798
|
-
function offsetToPosition(offset, newlinePositions) {
|
|
23799
|
-
let left2 = 0;
|
|
23800
|
-
let right2 = newlinePositions.length;
|
|
23801
|
-
while (left2 < right2) {
|
|
23802
|
-
const mid = Math.floor((left2 + right2) / 2);
|
|
23803
|
-
if (newlinePositions[mid] < offset) {
|
|
23804
|
-
left2 = mid + 1;
|
|
23805
|
-
} else {
|
|
23806
|
-
right2 = mid;
|
|
23807
|
-
}
|
|
23808
|
-
}
|
|
23809
|
-
let line2 = left2 + 1;
|
|
23810
|
-
let col = left2 === 0 ? offset + 1 : offset - newlinePositions[left2 - 1];
|
|
23811
|
-
return { line: line2, col };
|
|
23812
|
-
}
|
|
23813
24137
|
function getCompoundCompName(node, getText) {
|
|
23814
24138
|
var _a2, _b, _c, _d, _e, _f;
|
|
23815
24139
|
const rootTag = (_a2 = node == null ? void 0 : node.children) == null ? void 0 : _a2[0];
|
|
@@ -23831,10 +24155,11 @@ function getCompoundCompName(node, getText) {
|
|
|
23831
24155
|
}
|
|
23832
24156
|
return void 0;
|
|
23833
24157
|
}
|
|
23834
|
-
function addDisplayFieldsToErrors(errors, source
|
|
24158
|
+
function addDisplayFieldsToErrors(errors, source) {
|
|
24159
|
+
const { offsetToPosForDisplay } = createDocumentCursor(source);
|
|
23835
24160
|
return errors.map((err) => {
|
|
23836
|
-
const { line: errPosLine,
|
|
23837
|
-
const { line: contextStartLine } =
|
|
24161
|
+
const { line: errPosLine, character: errPosCol } = offsetToPosForDisplay(err.pos);
|
|
24162
|
+
const { line: contextStartLine } = offsetToPosForDisplay(err.contextPos);
|
|
23838
24163
|
return {
|
|
23839
24164
|
...err,
|
|
23840
24165
|
errPosLine,
|
|
@@ -23844,6 +24169,38 @@ function addDisplayFieldsToErrors(errors, source, newlinePositions) {
|
|
|
23844
24169
|
};
|
|
23845
24170
|
});
|
|
23846
24171
|
}
|
|
24172
|
+
function createDocumentCursor(text2) {
|
|
24173
|
+
const newlinePositions = [];
|
|
24174
|
+
for (let i = 0; i < text2.length; ++i) {
|
|
24175
|
+
if (text2[i] === "\n") {
|
|
24176
|
+
newlinePositions.push(i);
|
|
24177
|
+
}
|
|
24178
|
+
}
|
|
24179
|
+
return {
|
|
24180
|
+
offsetToPos,
|
|
24181
|
+
offsetToPosForDisplay
|
|
24182
|
+
};
|
|
24183
|
+
function offsetToPos(offset) {
|
|
24184
|
+
let left2 = 0;
|
|
24185
|
+
let right2 = newlinePositions.length;
|
|
24186
|
+
while (left2 < right2) {
|
|
24187
|
+
const mid = Math.floor((left2 + right2) / 2);
|
|
24188
|
+
if (newlinePositions[mid] < offset) {
|
|
24189
|
+
left2 = mid + 1;
|
|
24190
|
+
} else {
|
|
24191
|
+
right2 = mid;
|
|
24192
|
+
}
|
|
24193
|
+
}
|
|
24194
|
+
let col = left2 === 0 ? offset : offset - newlinePositions[left2 - 1] - 1;
|
|
24195
|
+
return { line: left2, character: col };
|
|
24196
|
+
}
|
|
24197
|
+
function offsetToPosForDisplay(offset) {
|
|
24198
|
+
let pos = offsetToPos(offset);
|
|
24199
|
+
pos.line += 1;
|
|
24200
|
+
pos.character += 1;
|
|
24201
|
+
return pos;
|
|
24202
|
+
}
|
|
24203
|
+
}
|
|
23847
24204
|
const ApiInterceptorContext = createContext(null);
|
|
23848
24205
|
function useApiInterceptorContext() {
|
|
23849
24206
|
return useContext(ApiInterceptorContext);
|
|
@@ -23869,8 +24226,8 @@ function ApiInterceptorProvider({
|
|
|
23869
24226
|
if (!interceptor) {
|
|
23870
24227
|
return;
|
|
23871
24228
|
}
|
|
23872
|
-
(async () => {
|
|
23873
|
-
const { initMock } = await import("./initMock-
|
|
24229
|
+
void (async () => {
|
|
24230
|
+
const { initMock } = await import("./initMock-qnCFw6Zc.mjs");
|
|
23874
24231
|
const apiInstance2 = await initMock(interceptor);
|
|
23875
24232
|
setApiInstance(apiInstance2);
|
|
23876
24233
|
setInitialized(true);
|
|
@@ -23883,11 +24240,11 @@ function ApiInterceptorProvider({
|
|
|
23883
24240
|
if (!hasParentInterceptorContext) {
|
|
23884
24241
|
if (interceptor || forceInitialize) {
|
|
23885
24242
|
let interceptorWorker2;
|
|
23886
|
-
(async () => {
|
|
24243
|
+
void (async () => {
|
|
23887
24244
|
if (process.env.VITE_MOCK_ENABLED) {
|
|
23888
24245
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
23889
|
-
useWorker ? import("./apiInterceptorWorker-
|
|
23890
|
-
import("./initMock-
|
|
24246
|
+
useWorker ? import("./apiInterceptorWorker-QiltRtq1.mjs") : Promise.resolve({ createApiInterceptorWorker: () => null }),
|
|
24247
|
+
import("./initMock-qnCFw6Zc.mjs")
|
|
23891
24248
|
]);
|
|
23892
24249
|
if (interceptor || forceInitialize) {
|
|
23893
24250
|
const apiInstance2 = await initMock(interceptor || {});
|
|
@@ -23921,10 +24278,10 @@ function ApiInterceptorProvider({
|
|
|
23921
24278
|
return;
|
|
23922
24279
|
}
|
|
23923
24280
|
if (parentInterceptorWorker) {
|
|
23924
|
-
(async () => {
|
|
24281
|
+
void (async () => {
|
|
23925
24282
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
23926
|
-
import("./apiInterceptorWorker-
|
|
23927
|
-
import("./initMock-
|
|
24283
|
+
import("./apiInterceptorWorker-QiltRtq1.mjs"),
|
|
24284
|
+
import("./initMock-qnCFw6Zc.mjs")
|
|
23928
24285
|
]);
|
|
23929
24286
|
const apiInstance2 = await initMock(interceptor);
|
|
23930
24287
|
await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
|
|
@@ -23982,8 +24339,8 @@ class ErrorBoundary extends React__default.Component {
|
|
|
23982
24339
|
* This method implements the Error Boundaries for the React application.
|
|
23983
24340
|
* It is invoked if errors occur during the rendering phase of any lifecycle
|
|
23984
24341
|
* methods or children components.
|
|
23985
|
-
*
|
|
23986
|
-
* DO NOT DELETE this method! Though it is not referenced directly from the code,
|
|
24342
|
+
*
|
|
24343
|
+
* DO NOT DELETE this method! Though it is not referenced directly from the code,
|
|
23987
24344
|
* it is a required part of the React component lifecycle.
|
|
23988
24345
|
*/
|
|
23989
24346
|
static getDerivedStateFromError(error2) {
|
|
@@ -24016,7 +24373,7 @@ class ErrorBoundary extends React__default.Component {
|
|
|
24016
24373
|
*/
|
|
24017
24374
|
render() {
|
|
24018
24375
|
var _a2;
|
|
24019
|
-
return this.state.hasError ? /* @__PURE__ */ jsxs("div", { className: styles$x.errorOverlay, children: [
|
|
24376
|
+
return this.state.hasError ? /* @__PURE__ */ jsxs("div", { "data-error-boundary": true, className: styles$x.errorOverlay, children: [
|
|
24020
24377
|
/* @__PURE__ */ jsx("div", { className: styles$x.title, children: "There was an error!" }),
|
|
24021
24378
|
/* @__PURE__ */ jsx("div", { className: styles$x.errorItem, children: (_a2 = this.state.error) == null ? void 0 : _a2.message })
|
|
24022
24379
|
] }) : this.props.children;
|
|
@@ -24411,7 +24768,7 @@ function NestedApp({
|
|
|
24411
24768
|
}
|
|
24412
24769
|
return null;
|
|
24413
24770
|
});
|
|
24414
|
-
Promise.all(sheetPromises).then((sheets) => {
|
|
24771
|
+
void Promise.all(sheetPromises).then((sheets) => {
|
|
24415
24772
|
const validSheets = sheets.filter(Boolean);
|
|
24416
24773
|
shadowRef.current.adoptedStyleSheets = validSheets;
|
|
24417
24774
|
});
|
|
@@ -24530,7 +24887,10 @@ function NestedApp({
|
|
|
24530
24887
|
)
|
|
24531
24888
|
] });
|
|
24532
24889
|
}
|
|
24533
|
-
function NestedAppRoot({
|
|
24890
|
+
function NestedAppRoot({
|
|
24891
|
+
children,
|
|
24892
|
+
themeStylesToReset
|
|
24893
|
+
}) {
|
|
24534
24894
|
const themeVarReset = useMemo(() => {
|
|
24535
24895
|
const vars2 = {};
|
|
24536
24896
|
Object.keys(themeStylesToReset).forEach((key) => {
|
|
@@ -24753,7 +25113,7 @@ function AppWithCodeViewNative({
|
|
|
24753
25113
|
{
|
|
24754
25114
|
className: styles$w.headerButton,
|
|
24755
25115
|
onClick: () => {
|
|
24756
|
-
openPlayground();
|
|
25116
|
+
void openPlayground();
|
|
24757
25117
|
},
|
|
24758
25118
|
children: /* @__PURE__ */ jsx(RxOpenInNewWindow, {})
|
|
24759
25119
|
}
|
|
@@ -26484,21 +26844,21 @@ const FormItem = memo(function FormItem2({
|
|
|
26484
26844
|
return safeBindTo;
|
|
26485
26845
|
}
|
|
26486
26846
|
}, [bindTo, defaultId, itemIndex, parentFormItemId]);
|
|
26487
|
-
const labelWidthValue = useFormContextPart((value2) => labelWidth || value2.itemLabelWidth);
|
|
26847
|
+
const labelWidthValue = useFormContextPart((value2) => labelWidth || (value2 == null ? void 0 : value2.itemLabelWidth));
|
|
26488
26848
|
const labelBreakValue = useFormContextPart(
|
|
26489
|
-
(value2) => labelBreak2 !== void 0 ? labelBreak2 : value2.itemLabelBreak
|
|
26849
|
+
(value2) => labelBreak2 !== void 0 ? labelBreak2 : value2 == null ? void 0 : value2.itemLabelBreak
|
|
26490
26850
|
);
|
|
26491
26851
|
const labelPositionValue = useFormContextPart(
|
|
26492
|
-
(value2) => labelPosition || value2.itemLabelPosition || DEFAULT_LABEL_POSITIONS[type]
|
|
26852
|
+
(value2) => labelPosition || (value2 == null ? void 0 : value2.itemLabelPosition) || DEFAULT_LABEL_POSITIONS[type]
|
|
26493
26853
|
);
|
|
26494
26854
|
const initialValueFromSubject = useFormContextPart(
|
|
26495
|
-
(value2) => getByPath(value2.originalSubject, formItemId)
|
|
26855
|
+
(value2) => getByPath(value2 == null ? void 0 : value2.originalSubject, formItemId)
|
|
26496
26856
|
);
|
|
26497
26857
|
const initialValue = initialValueFromSubject === void 0 ? initialValueFromProps : initialValueFromSubject;
|
|
26498
|
-
const value = useFormContextPart((value2) => getByPath(value2.subject, formItemId));
|
|
26499
|
-
const validationResult = useFormContextPart((value2) => value2.validationResults[formItemId]);
|
|
26500
|
-
const dispatch = useFormContextPart((value2) => value2.dispatch);
|
|
26501
|
-
const formEnabled = useFormContextPart((value2) => value2.enabled);
|
|
26858
|
+
const value = useFormContextPart((value2) => getByPath(value2 == null ? void 0 : value2.subject, formItemId));
|
|
26859
|
+
const validationResult = useFormContextPart((value2) => value2 == null ? void 0 : value2.validationResults[formItemId]);
|
|
26860
|
+
const dispatch = useFormContextPart((value2) => value2 == null ? void 0 : value2.dispatch);
|
|
26861
|
+
const formEnabled = useFormContextPart((value2) => value2 == null ? void 0 : value2.enabled);
|
|
26502
26862
|
const isEnabled2 = enabled2 && formEnabled;
|
|
26503
26863
|
useEffect(() => {
|
|
26504
26864
|
if (initialValue !== void 0) {
|
|
@@ -26768,6 +27128,10 @@ const FormItem = memo(function FormItem2({
|
|
|
26768
27128
|
}
|
|
26769
27129
|
}
|
|
26770
27130
|
const [animateContainerRef] = useAutoAnimate({ duration: 100 });
|
|
27131
|
+
const isInsideForm = useIsInsideForm();
|
|
27132
|
+
if (!isInsideForm) {
|
|
27133
|
+
throw new Error("FormItem must be used inside a Form");
|
|
27134
|
+
}
|
|
26771
27135
|
return /* @__PURE__ */ jsx(
|
|
26772
27136
|
ItemWithLabel,
|
|
26773
27137
|
{
|
|
@@ -26836,7 +27200,7 @@ const filteredValidationSeverityValues = validationSeverityValues.filter(
|
|
|
26836
27200
|
const FormItemMd = createMetadata({
|
|
26837
27201
|
status: "stable",
|
|
26838
27202
|
allowArbitraryProps: true,
|
|
26839
|
-
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.",
|
|
27203
|
+
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.",
|
|
26840
27204
|
props: {
|
|
26841
27205
|
bindTo: {
|
|
26842
27206
|
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."
|
|
@@ -27795,7 +28159,7 @@ class PollClient {
|
|
|
27795
28159
|
this.polling = true;
|
|
27796
28160
|
this.tries = 0;
|
|
27797
28161
|
this.abortController = new AbortController();
|
|
27798
|
-
this.poll(this.abortController.signal);
|
|
28162
|
+
void this.poll(this.abortController.signal);
|
|
27799
28163
|
}
|
|
27800
28164
|
stopPoll() {
|
|
27801
28165
|
this.polling = false;
|
|
@@ -29543,7 +29907,7 @@ const SelectMd = createMetadata({
|
|
|
29543
29907
|
[`backgroundColor-${COMP$I}-badge--hover`]: "$color-primary-400",
|
|
29544
29908
|
[`backgroundColor-${COMP$I}-badge--active`]: "$color-primary-500",
|
|
29545
29909
|
[`textColor-item-${COMP$I}--disabled`]: "$color-surface-200",
|
|
29546
|
-
[`textColor-${COMP$I}-badge`]: "$color-surface-50",
|
|
29910
|
+
[`textColor-${COMP$I}-badge`]: "$const-color-surface-50",
|
|
29547
29911
|
[`backgroundColor-item-${COMP$I}`]: "$backgroundColor-dropdown-item",
|
|
29548
29912
|
[`backgroundColor-item-${COMP$I}--hover`]: "$backgroundColor-dropdown-item--hover",
|
|
29549
29913
|
[`backgroundColor-item-${COMP$I}--active`]: "$backgroundColor-dropdown-item--active",
|
|
@@ -31900,6 +32264,7 @@ const NotificationToast = ({ toastDuration }) => {
|
|
|
31900
32264
|
};
|
|
31901
32265
|
const defaultProps$n = {
|
|
31902
32266
|
isRoot: false,
|
|
32267
|
+
applyIf: true,
|
|
31903
32268
|
toastDuration: 5e3,
|
|
31904
32269
|
themeVars: EMPTY_OBJECT,
|
|
31905
32270
|
root: false
|
|
@@ -31907,6 +32272,7 @@ const defaultProps$n = {
|
|
|
31907
32272
|
function Theme({
|
|
31908
32273
|
id,
|
|
31909
32274
|
isRoot = defaultProps$n.isRoot,
|
|
32275
|
+
applyIf,
|
|
31910
32276
|
renderChild: renderChild2,
|
|
31911
32277
|
node,
|
|
31912
32278
|
tone,
|
|
@@ -32027,6 +32393,13 @@ function Theme({
|
|
|
32027
32393
|
if (indexing) {
|
|
32028
32394
|
return children;
|
|
32029
32395
|
}
|
|
32396
|
+
const shouldApplyTheme = applyIf ?? defaultProps$n.applyIf;
|
|
32397
|
+
if (!shouldApplyTheme) {
|
|
32398
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
32399
|
+
renderChild2 && renderChild2(node.children),
|
|
32400
|
+
children
|
|
32401
|
+
] });
|
|
32402
|
+
}
|
|
32030
32403
|
if (isRoot) {
|
|
32031
32404
|
const faviconUrl = getResourceUrl("resource:favicon") || "/resources/favicon.ico";
|
|
32032
32405
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -32097,6 +32470,12 @@ const ThemeMd = createMetadata({
|
|
|
32097
32470
|
void 0,
|
|
32098
32471
|
"boolean",
|
|
32099
32472
|
defaultProps$n.root
|
|
32473
|
+
),
|
|
32474
|
+
applyIf: d(
|
|
32475
|
+
`This property controls whether the theme wrapper is applied. When true (default), the theme wraps the children. When false, children are rendered unwrapped.`,
|
|
32476
|
+
void 0,
|
|
32477
|
+
"boolean",
|
|
32478
|
+
true
|
|
32100
32479
|
)
|
|
32101
32480
|
},
|
|
32102
32481
|
opaque: true
|
|
@@ -32117,6 +32496,7 @@ const themeComponentRenderer = createComponentRenderer(
|
|
|
32117
32496
|
{
|
|
32118
32497
|
id: extractValue.asOptionalString(node.props.themeId),
|
|
32119
32498
|
isRoot: extractValue.asOptionalBoolean(node.props.root),
|
|
32499
|
+
applyIf: extractValue.asOptionalBoolean(node.props.applyIf),
|
|
32120
32500
|
layoutContext,
|
|
32121
32501
|
renderChild: renderChild2,
|
|
32122
32502
|
tone: themeTone,
|
|
@@ -32304,7 +32684,7 @@ async function invalidateQueries(invalidates, appContext, state) {
|
|
|
32304
32684
|
}
|
|
32305
32685
|
arrayToInvalidate.forEach((invalidate) => {
|
|
32306
32686
|
var _a3;
|
|
32307
|
-
(_a3 = appContext.queryClient) == null ? void 0 : _a3.invalidateQueries(
|
|
32687
|
+
void ((_a3 = appContext.queryClient) == null ? void 0 : _a3.invalidateQueries(
|
|
32308
32688
|
new DataLoaderQueryKeyGenerator(
|
|
32309
32689
|
extractParam(state, invalidate, appContext),
|
|
32310
32690
|
void 0,
|
|
@@ -32312,7 +32692,7 @@ async function invalidateQueries(invalidates, appContext, state) {
|
|
|
32312
32692
|
void 0,
|
|
32313
32693
|
void 0
|
|
32314
32694
|
).asPredicate()
|
|
32315
|
-
);
|
|
32695
|
+
));
|
|
32316
32696
|
});
|
|
32317
32697
|
} else {
|
|
32318
32698
|
await ((_a2 = appContext.queryClient) == null ? void 0 : _a2.invalidateQueries());
|
|
@@ -32780,7 +33160,7 @@ async function uploadFile({ appContext, state, lookupAction, uid }, {
|
|
|
32780
33160
|
throw e;
|
|
32781
33161
|
}
|
|
32782
33162
|
}
|
|
32783
|
-
invalidateQueries(invalidates, appContext, state);
|
|
33163
|
+
void invalidateQueries(invalidates, appContext, state);
|
|
32784
33164
|
return result;
|
|
32785
33165
|
}
|
|
32786
33166
|
const uploadAction = createAction("upload", uploadFile);
|
|
@@ -32862,7 +33242,7 @@ function Loader({
|
|
|
32862
33242
|
let intervalId;
|
|
32863
33243
|
if (pollIntervalInSeconds) {
|
|
32864
33244
|
intervalId = setInterval(() => {
|
|
32865
|
-
refetch();
|
|
33245
|
+
void refetch();
|
|
32866
33246
|
}, pollIntervalInSeconds * 1e3);
|
|
32867
33247
|
}
|
|
32868
33248
|
return () => {
|
|
@@ -32896,8 +33276,8 @@ function Loader({
|
|
|
32896
33276
|
}, [loaderLoaded2, uid]);
|
|
32897
33277
|
useEffect(() => {
|
|
32898
33278
|
registerComponentApi == null ? void 0 : registerComponentApi({
|
|
32899
|
-
refetch:
|
|
32900
|
-
refetch(options2);
|
|
33279
|
+
refetch: (options2) => {
|
|
33280
|
+
void refetch(options2);
|
|
32901
33281
|
},
|
|
32902
33282
|
update: async (updater) => {
|
|
32903
33283
|
var _a2, _b;
|
|
@@ -32915,7 +33295,7 @@ function Loader({
|
|
|
32915
33295
|
}
|
|
32916
33296
|
(_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryId, newData);
|
|
32917
33297
|
},
|
|
32918
|
-
addItem:
|
|
33298
|
+
addItem: (element, indexToInsert) => {
|
|
32919
33299
|
var _a2, _b;
|
|
32920
33300
|
const oldData = (_a2 = appContext.queryClient) == null ? void 0 : _a2.getQueryData(queryId);
|
|
32921
33301
|
const draft = createDraft(oldData);
|
|
@@ -32927,10 +33307,10 @@ function Loader({
|
|
|
32927
33307
|
const newData = finishDraft(draft);
|
|
32928
33308
|
(_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryId, newData);
|
|
32929
33309
|
},
|
|
32930
|
-
getItems:
|
|
33310
|
+
getItems: () => {
|
|
32931
33311
|
return data;
|
|
32932
33312
|
},
|
|
32933
|
-
deleteItem:
|
|
33313
|
+
deleteItem: (element) => {
|
|
32934
33314
|
throw new Error("not implemented");
|
|
32935
33315
|
}
|
|
32936
33316
|
});
|
|
@@ -33091,7 +33471,9 @@ function MockLoader({
|
|
|
33091
33471
|
const waitTime = extractParam(state, loader.props.waitTime, appContext);
|
|
33092
33472
|
const responseObj = extractParam(state, loader.props.data, appContext);
|
|
33093
33473
|
const doLoad = useCallback(async () => {
|
|
33094
|
-
|
|
33474
|
+
if (waitTime) {
|
|
33475
|
+
await asyncWait(waitTime);
|
|
33476
|
+
}
|
|
33095
33477
|
return responseObj;
|
|
33096
33478
|
}, [responseObj, waitTime]);
|
|
33097
33479
|
return /* @__PURE__ */ jsx(
|
|
@@ -33239,7 +33621,7 @@ function PageableLoader({
|
|
|
33239
33621
|
const queryKey2 = thizRef.current;
|
|
33240
33622
|
return () => {
|
|
33241
33623
|
var _a2, _b;
|
|
33242
|
-
(_a2 = appContext.queryClient) == null ? void 0 : _a2.cancelQueries(queryKey2);
|
|
33624
|
+
void ((_a2 = appContext.queryClient) == null ? void 0 : _a2.cancelQueries(queryKey2));
|
|
33243
33625
|
(_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryKey2, (old) => {
|
|
33244
33626
|
if (!old) {
|
|
33245
33627
|
return old;
|
|
@@ -33281,6 +33663,7 @@ function PageableLoader({
|
|
|
33281
33663
|
}, [
|
|
33282
33664
|
data,
|
|
33283
33665
|
error2,
|
|
33666
|
+
isRefetching,
|
|
33284
33667
|
loaderError2,
|
|
33285
33668
|
loaderLoaded2,
|
|
33286
33669
|
onLoaded,
|
|
@@ -33294,7 +33677,7 @@ function PageableLoader({
|
|
|
33294
33677
|
let intervalId;
|
|
33295
33678
|
if (pollIntervalInSeconds) {
|
|
33296
33679
|
intervalId = setInterval(() => {
|
|
33297
|
-
refetch();
|
|
33680
|
+
void refetch();
|
|
33298
33681
|
}, pollIntervalInSeconds * 1e3);
|
|
33299
33682
|
}
|
|
33300
33683
|
return () => {
|
|
@@ -33313,8 +33696,8 @@ function PageableLoader({
|
|
|
33313
33696
|
registerComponentApi({
|
|
33314
33697
|
fetchPrevPage,
|
|
33315
33698
|
fetchNextPage: stableFetchNextPage,
|
|
33316
|
-
refetch:
|
|
33317
|
-
refetch(options2);
|
|
33699
|
+
refetch: (options2) => {
|
|
33700
|
+
void refetch(options2);
|
|
33318
33701
|
},
|
|
33319
33702
|
update: async (updater) => {
|
|
33320
33703
|
var _a2, _b;
|
|
@@ -33338,7 +33721,7 @@ function PageableLoader({
|
|
|
33338
33721
|
const newData = finishDraft(draft);
|
|
33339
33722
|
(_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryId, newData);
|
|
33340
33723
|
},
|
|
33341
|
-
addItem:
|
|
33724
|
+
addItem: (element, indexToInsert) => {
|
|
33342
33725
|
var _a2, _b;
|
|
33343
33726
|
const oldData = (_a2 = appContext.queryClient) == null ? void 0 : _a2.getQueryData(queryId);
|
|
33344
33727
|
const draft = createDraft(oldData);
|
|
@@ -33353,7 +33736,7 @@ function PageableLoader({
|
|
|
33353
33736
|
getItems: () => {
|
|
33354
33737
|
return data;
|
|
33355
33738
|
},
|
|
33356
|
-
deleteItem:
|
|
33739
|
+
deleteItem: (element) => {
|
|
33357
33740
|
throw new Error("not implemented");
|
|
33358
33741
|
}
|
|
33359
33742
|
});
|
|
@@ -33497,8 +33880,14 @@ function DataLoader({
|
|
|
33497
33880
|
}
|
|
33498
33881
|
const response = await fetch(queryUrl, fetchOptions);
|
|
33499
33882
|
if (!response.ok) {
|
|
33500
|
-
console.error(
|
|
33501
|
-
|
|
33883
|
+
console.error(
|
|
33884
|
+
"[SQL DataLoader] Failed response:",
|
|
33885
|
+
response.status,
|
|
33886
|
+
response.statusText
|
|
33887
|
+
);
|
|
33888
|
+
throw new Error(
|
|
33889
|
+
`Failed to execute SQL query: ${response.status} ${response.statusText}`
|
|
33890
|
+
);
|
|
33502
33891
|
}
|
|
33503
33892
|
const jsonResult = await response.json();
|
|
33504
33893
|
if (jsonResult && typeof jsonResult === "object") {
|
|
@@ -33526,15 +33915,7 @@ function DataLoader({
|
|
|
33526
33915
|
});
|
|
33527
33916
|
}
|
|
33528
33917
|
},
|
|
33529
|
-
[
|
|
33530
|
-
api,
|
|
33531
|
-
loader.props,
|
|
33532
|
-
state,
|
|
33533
|
-
url,
|
|
33534
|
-
body,
|
|
33535
|
-
rawBody,
|
|
33536
|
-
appContext
|
|
33537
|
-
]
|
|
33918
|
+
[api, loader.props, state, url, body, rawBody, appContext]
|
|
33538
33919
|
);
|
|
33539
33920
|
const queryId = useMemo(() => {
|
|
33540
33921
|
return new DataLoaderQueryKeyGenerator(
|
|
@@ -33567,7 +33948,7 @@ function DataLoader({
|
|
|
33567
33948
|
}
|
|
33568
33949
|
}
|
|
33569
33950
|
},
|
|
33570
|
-
[loader.props.inProgressNotificationMessage, loaderInProgressChanged2
|
|
33951
|
+
[loader.props.inProgressNotificationMessage, loaderInProgressChanged2]
|
|
33571
33952
|
);
|
|
33572
33953
|
const loaded = useCallback(
|
|
33573
33954
|
(data, pageInfo) => {
|
|
@@ -33590,7 +33971,7 @@ function DataLoader({
|
|
|
33590
33971
|
}
|
|
33591
33972
|
}
|
|
33592
33973
|
},
|
|
33593
|
-
[loader.props.completedNotificationMessage, loaderLoaded2
|
|
33974
|
+
[loader.props.completedNotificationMessage, loaderLoaded2]
|
|
33594
33975
|
);
|
|
33595
33976
|
const error2 = useCallback(
|
|
33596
33977
|
async (error22) => {
|
|
@@ -33715,7 +34096,9 @@ const dataLoaderRenderer = createLoaderRenderer(
|
|
|
33715
34096
|
}) => {
|
|
33716
34097
|
var _a2, _b, _c;
|
|
33717
34098
|
if (!((_a2 = loader.props) == null ? void 0 : _a2.url) || !loader.props.url.trim()) {
|
|
33718
|
-
throw new Error(
|
|
34099
|
+
throw new Error(
|
|
34100
|
+
"You must specify a non-empty (not whitespace-only) 'url' property for DataSource"
|
|
34101
|
+
);
|
|
33719
34102
|
}
|
|
33720
34103
|
return /* @__PURE__ */ jsx(
|
|
33721
34104
|
IndexAwareDataLoader,
|
|
@@ -33799,20 +34182,20 @@ const DatePickerMd = createMetadata({
|
|
|
33799
34182
|
}
|
|
33800
34183
|
]
|
|
33801
34184
|
},
|
|
33802
|
-
|
|
33803
|
-
description: "The
|
|
34185
|
+
startDate: {
|
|
34186
|
+
description: "The earliest month to start the month navigation from (inclusive). If not defined, the component allows any dates in the past. Accepts the same date format as the `initialValue`.Example: '2023-01-01' ensures the first month to select a date from is January 2023.",
|
|
33804
34187
|
valueType: "string"
|
|
33805
34188
|
},
|
|
33806
|
-
|
|
33807
|
-
description: "The
|
|
34189
|
+
endDate: {
|
|
34190
|
+
description: "The latest month to start the month navigation from (inclusive). If not defined, the component allows any future dates. Accepts the same date format as the `initialValue`.Example: '2023-12-31' ensures the last month to select a date from is December 2023.",
|
|
33808
34191
|
valueType: "string"
|
|
33809
34192
|
},
|
|
33810
34193
|
disabledDates: {
|
|
33811
|
-
description: "An optional array of dates that are disabled",
|
|
34194
|
+
description: "An optional array of dates that are to be disabled.",
|
|
33812
34195
|
valueType: "any"
|
|
33813
34196
|
},
|
|
33814
34197
|
inline: {
|
|
33815
|
-
description: "
|
|
34198
|
+
description: "If set to true, the calendar is always visible and its panel is rendered as part of the layout. If false, the calendar is shown in a popup when the input is focused or clicked.",
|
|
33816
34199
|
valueType: "boolean",
|
|
33817
34200
|
defaultValue: defaultProps$B.inline
|
|
33818
34201
|
},
|
|
@@ -33887,8 +34270,8 @@ const datePickerComponentRenderer = createComponentRenderer(
|
|
|
33887
34270
|
dateFormat: extractValue(node.props.dateFormat),
|
|
33888
34271
|
showWeekNumber: extractValue.asOptionalBoolean(node.props.showWeekNumber),
|
|
33889
34272
|
weekStartsOn: extractValue(node.props.weekStartsOn),
|
|
33890
|
-
|
|
33891
|
-
|
|
34273
|
+
startDate: extractValue(node.props.startDate),
|
|
34274
|
+
endDate: extractValue(node.props.endDate),
|
|
33892
34275
|
disabledDates: extractValue(node.props.disabledDates),
|
|
33893
34276
|
inline: extractValue.asOptionalBoolean(node.props.inline),
|
|
33894
34277
|
startText: extractValue.asOptionalString(node.props.startText),
|
|
@@ -35592,7 +35975,7 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
|
35592
35975
|
handleChange(timeString);
|
|
35593
35976
|
}
|
|
35594
35977
|
},
|
|
35595
|
-
[hour2, minute2, second2, amPm, is12HourFormat, handleChange]
|
|
35978
|
+
[hour2, minute2, second2, formatTimeValue, amPm, is12HourFormat, handleChange]
|
|
35596
35979
|
);
|
|
35597
35980
|
const handleHourChange = useMemo(
|
|
35598
35981
|
() => createInputChangeHandler(
|
|
@@ -35653,7 +36036,7 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
|
35653
36036
|
setAmPm(newAmPm);
|
|
35654
36037
|
const timeString = formatTimeValue(hour2, minute2, second2, newAmPm, is12HourFormat);
|
|
35655
36038
|
handleChange(timeString);
|
|
35656
|
-
}, [amPm, hour2, minute2, second2, is12HourFormat, handleChange]);
|
|
36039
|
+
}, [amPm, formatTimeValue, hour2, minute2, second2, is12HourFormat, handleChange]);
|
|
35657
36040
|
const handleAmPmSet = useCallback(
|
|
35658
36041
|
(targetAmPm) => {
|
|
35659
36042
|
if (amPm === targetAmPm) return;
|
|
@@ -35661,7 +36044,7 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
|
35661
36044
|
const timeString = formatTimeValue(hour2, minute2, second2, targetAmPm, is12HourFormat);
|
|
35662
36045
|
handleChange(timeString);
|
|
35663
36046
|
},
|
|
35664
|
-
[amPm, hour2, minute2, second2, is12HourFormat, handleChange]
|
|
36047
|
+
[amPm, formatTimeValue, hour2, minute2, second2, is12HourFormat, handleChange]
|
|
35665
36048
|
);
|
|
35666
36049
|
const focus = useCallback(() => {
|
|
35667
36050
|
var _a2;
|
|
@@ -35754,21 +36137,7 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
|
35754
36137
|
setTimeout(() => {
|
|
35755
36138
|
focus();
|
|
35756
36139
|
}, 0);
|
|
35757
|
-
}, [
|
|
35758
|
-
stableInitialValue,
|
|
35759
|
-
handleChange,
|
|
35760
|
-
localValue,
|
|
35761
|
-
controlledValue,
|
|
35762
|
-
hour2,
|
|
35763
|
-
minute2,
|
|
35764
|
-
second2,
|
|
35765
|
-
amPm,
|
|
35766
|
-
setHour,
|
|
35767
|
-
setMinute,
|
|
35768
|
-
setSecond,
|
|
35769
|
-
setAmPm,
|
|
35770
|
-
focus
|
|
35771
|
-
]);
|
|
36140
|
+
}, [clearToInitialValue, stableInitialValue, handleChange, is12HourFormat, focus]);
|
|
35772
36141
|
function stopPropagation(event) {
|
|
35773
36142
|
event.stopPropagation();
|
|
35774
36143
|
}
|
|
@@ -36016,6 +36385,7 @@ function AmPmButton({
|
|
|
36016
36385
|
);
|
|
36017
36386
|
}
|
|
36018
36387
|
function HourInput({
|
|
36388
|
+
id,
|
|
36019
36389
|
amPm,
|
|
36020
36390
|
maxTime,
|
|
36021
36391
|
minTime,
|
|
@@ -36063,6 +36433,7 @@ function HourInput({
|
|
|
36063
36433
|
return /* @__PURE__ */ jsx(
|
|
36064
36434
|
PartialInput,
|
|
36065
36435
|
{
|
|
36436
|
+
id,
|
|
36066
36437
|
"data-part-id": PART_HOUR,
|
|
36067
36438
|
value: displayValue,
|
|
36068
36439
|
emptyCharacter,
|
|
@@ -37102,14 +37473,16 @@ function AppState({
|
|
|
37102
37473
|
registerComponentApi,
|
|
37103
37474
|
onDidUpdate
|
|
37104
37475
|
}) {
|
|
37105
|
-
const registerAppState = useAppStateContextPart((value2) => value2.registerAppState);
|
|
37106
37476
|
const update = useAppStateContextPart((value2) => value2.update);
|
|
37477
|
+
const value = useAppStateContextPart((value2) => {
|
|
37478
|
+
var _a2;
|
|
37479
|
+
return (_a2 = value2 == null ? void 0 : value2.appState) == null ? void 0 : _a2[bucket];
|
|
37480
|
+
});
|
|
37107
37481
|
useIsomorphicLayoutEffect(() => {
|
|
37108
37482
|
if (initialValue !== void 0) {
|
|
37109
|
-
|
|
37483
|
+
update(bucket, initialValue);
|
|
37110
37484
|
}
|
|
37111
|
-
}, [bucket, initialValue
|
|
37112
|
-
const value = useAppStateContextPart((value2) => value2.appState[bucket]);
|
|
37485
|
+
}, [bucket, initialValue]);
|
|
37113
37486
|
useIsomorphicLayoutEffect(() => {
|
|
37114
37487
|
updateState({ value });
|
|
37115
37488
|
if (onDidUpdate) {
|
|
@@ -37158,7 +37531,7 @@ const AppStateMd = createMetadata({
|
|
|
37158
37531
|
defaultValue: defaultProps$f.bucket
|
|
37159
37532
|
},
|
|
37160
37533
|
initialValue: {
|
|
37161
|
-
description: `This property contains the initial state value. Though you can use multiple \`${COMP$u}\`component instances for the same bucket with their \`initialValue\` set, it may result in faulty app logic. When xmlui instantiates an \`${COMP$u}\` with an explicit initial value, that value is immediately
|
|
37534
|
+
description: `This property contains the initial state value. Though you can use multiple \`${COMP$u}\`component instances for the same bucket with their \`initialValue\` set, it may result in faulty app logic. When xmlui instantiates an \`${COMP$u}\` 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.`
|
|
37162
37535
|
}
|
|
37163
37536
|
},
|
|
37164
37537
|
apis: {
|
|
@@ -38961,26 +39334,31 @@ const AutoCompleteMd = createMetadata({
|
|
|
38961
39334
|
},
|
|
38962
39335
|
themeVars: parseScssVar(styles$E.themeVars),
|
|
38963
39336
|
defaultThemeVars: {
|
|
38964
|
-
[`backgroundColor-menu-${COMP$h}`]: "$
|
|
39337
|
+
[`backgroundColor-menu-${COMP$h}`]: "$color-surface-raised",
|
|
38965
39338
|
[`boxShadow-menu-${COMP$h}`]: "$boxShadow-md",
|
|
38966
39339
|
[`borderRadius-menu-${COMP$h}`]: "$borderRadius",
|
|
38967
39340
|
[`borderWidth-menu-${COMP$h}`]: "1px",
|
|
38968
39341
|
[`borderColor-menu-${COMP$h}`]: "$borderColor",
|
|
38969
|
-
[`backgroundColor-item-${COMP$h}`]: "$backgroundColor-dropdown-item",
|
|
38970
|
-
[`backgroundColor-item-${COMP$h}--hover`]: "$backgroundColor-dropdown-item--active",
|
|
38971
|
-
[`backgroundColor-item-${COMP$h}--active`]: "$backgroundColor-dropdown-item--active",
|
|
38972
|
-
[`minHeight-Input`]: "39px",
|
|
38973
39342
|
[`backgroundColor-${COMP$h}-badge`]: "$color-primary-500",
|
|
38974
39343
|
[`fontSize-${COMP$h}-badge`]: "$fontSize-sm",
|
|
39344
|
+
[`paddingHorizontal-${COMP$h}-badge`]: "$space-2_5",
|
|
39345
|
+
[`paddingVertical-${COMP$h}-badge`]: "$space-0_5",
|
|
38975
39346
|
[`borderRadius-${COMP$h}-badge`]: "$borderRadius",
|
|
38976
|
-
[`paddingHorizontal-${COMP$h}
|
|
38977
|
-
[`paddingVertical-${COMP$h}
|
|
38978
|
-
[`paddingHorizontal-${COMP$h}`]: "$space-
|
|
39347
|
+
[`paddingHorizontal-item-${COMP$h}`]: "$space-2",
|
|
39348
|
+
[`paddingVertical-item-${COMP$h}`]: "$space-2",
|
|
39349
|
+
[`paddingHorizontal-${COMP$h}`]: "$space-2",
|
|
38979
39350
|
[`paddingVertical-${COMP$h}`]: "$space-2",
|
|
39351
|
+
[`opacity-text-item-${COMP$h}--disabled`]: "0.5",
|
|
39352
|
+
[`opacity-${COMP$h}--disabled`]: "0.5",
|
|
38980
39353
|
[`backgroundColor-${COMP$h}-badge--hover`]: "$color-primary-400",
|
|
38981
39354
|
[`backgroundColor-${COMP$h}-badge--active`]: "$color-primary-500",
|
|
38982
39355
|
[`textColor-item-${COMP$h}--disabled`]: "$color-surface-200",
|
|
38983
|
-
[`textColor-${COMP$h}-badge`]: "$const-color-surface-50"
|
|
39356
|
+
[`textColor-${COMP$h}-badge`]: "$const-color-surface-50",
|
|
39357
|
+
[`backgroundColor-item-${COMP$h}`]: "$backgroundColor-dropdown-item",
|
|
39358
|
+
[`backgroundColor-item-${COMP$h}--hover`]: "$backgroundColor-dropdown-item--hover",
|
|
39359
|
+
[`backgroundColor-item-${COMP$h}--active`]: "$backgroundColor-dropdown-item--active",
|
|
39360
|
+
// Default borderColor-Input--disabled is too light so the disabled component is barely visible
|
|
39361
|
+
[`borderColor-${COMP$h}--disabled`]: "initial"
|
|
38984
39362
|
}
|
|
38985
39363
|
});
|
|
38986
39364
|
const autoCompleteComponentRenderer = createComponentRenderer(
|
|
@@ -41308,7 +41686,7 @@ function InspectButton$1({
|
|
|
41308
41686
|
htmlElement.removeEventListener("mouseenter", mouseenter);
|
|
41309
41687
|
htmlElement.removeEventListener("mouseleave", mouseleave);
|
|
41310
41688
|
};
|
|
41311
|
-
}, [inspectId, node, inspectMode, setShowCode]);
|
|
41689
|
+
}, [inspectId, node, inspectMode, setShowCode, setInspectedNode]);
|
|
41312
41690
|
return /* @__PURE__ */ jsx(Fragment, { children: inspectMode ? null : visible && !!root2 && createPortal(
|
|
41313
41691
|
/* @__PURE__ */ jsx(
|
|
41314
41692
|
Button,
|
|
@@ -44572,7 +44950,7 @@ const Dialog = ({
|
|
|
44572
44950
|
] });
|
|
44573
44951
|
};
|
|
44574
44952
|
const ConfirmationModalContext = React__default.createContext({
|
|
44575
|
-
confirm:
|
|
44953
|
+
confirm: (title2, message, actionLabel) => Promise.resolve(false)
|
|
44576
44954
|
});
|
|
44577
44955
|
const useConfirm = () => useContext(ConfirmationModalContext);
|
|
44578
44956
|
const ConfirmationModalContextProvider = ({ children }) => {
|
|
@@ -44594,7 +44972,7 @@ const ConfirmationModalContextProvider = ({ children }) => {
|
|
|
44594
44972
|
}
|
|
44595
44973
|
}, [showConfirmationModal]);
|
|
44596
44974
|
const handleShow = useCallback(
|
|
44597
|
-
|
|
44975
|
+
(title22, message2, actionLabel) => {
|
|
44598
44976
|
if (typeof title22 === "string") {
|
|
44599
44977
|
setTitle(title22);
|
|
44600
44978
|
setButtons([
|
|
@@ -45378,7 +45756,7 @@ function IconProvider({ children }) {
|
|
|
45378
45756
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
45379
45757
|
] });
|
|
45380
45758
|
}
|
|
45381
|
-
const version = "0.10.
|
|
45759
|
+
const version = "0.10.20";
|
|
45382
45760
|
const miscellaneousUtils = {
|
|
45383
45761
|
capitalize,
|
|
45384
45762
|
pluralize: pluralize$1,
|
|
@@ -45885,7 +46263,7 @@ async function evalCalculatedMemberAccessAsync(evaluator, thisStack, expr, evalC
|
|
|
45885
46263
|
await completeExprValue(expr.member, thread);
|
|
45886
46264
|
return evalCalculatedMemberAccessCore(thisStack, expr, evalContext, thread);
|
|
45887
46265
|
}
|
|
45888
|
-
|
|
46266
|
+
function evalSequenceAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
45889
46267
|
if (!expr.exprs || expr.exprs.length === 0) {
|
|
45890
46268
|
throw new Error(`Missing expression sequence`);
|
|
45891
46269
|
}
|
|
@@ -45997,7 +46375,7 @@ async function evalAssignmentAsync(evaluator, thisStack, expr, evalContext, thre
|
|
|
45997
46375
|
const rootScope = getRootIdScope(leftValue, evalContext, thread);
|
|
45998
46376
|
const updatesState = rootScope && rootScope.type !== "block";
|
|
45999
46377
|
if (updatesState && evalContext.onWillUpdate) {
|
|
46000
|
-
evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
|
|
46378
|
+
void evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
|
|
46001
46379
|
}
|
|
46002
46380
|
await evaluator(thisStack, leftValue, evalContext, thread);
|
|
46003
46381
|
thisStack.pop();
|
|
@@ -46007,7 +46385,7 @@ async function evalAssignmentAsync(evaluator, thisStack, expr, evalContext, thre
|
|
|
46007
46385
|
await completeExprValue(expr.expr, thread);
|
|
46008
46386
|
const value = evalAssignmentCore(thisStack, expr, evalContext, thread);
|
|
46009
46387
|
if (updatesState && evalContext.onDidUpdate) {
|
|
46010
|
-
evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
|
|
46388
|
+
void evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
|
|
46011
46389
|
}
|
|
46012
46390
|
return value;
|
|
46013
46391
|
}
|
|
@@ -46015,14 +46393,14 @@ async function evalPreOrPostAsync(evaluator, thisStack, expr, evalContext, threa
|
|
|
46015
46393
|
const rootScope = getRootIdScope(expr.expr, evalContext, thread);
|
|
46016
46394
|
const updatesState = rootScope && rootScope.type !== "block";
|
|
46017
46395
|
if (updatesState && evalContext.onWillUpdate) {
|
|
46018
|
-
evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
|
|
46396
|
+
void evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
|
|
46019
46397
|
}
|
|
46020
46398
|
await evaluator(thisStack, expr.expr, evalContext, thread);
|
|
46021
46399
|
thisStack.pop();
|
|
46022
46400
|
await completeExprValue(expr.expr, thread);
|
|
46023
46401
|
const value = evalPreOrPostCore(thisStack, expr, evalContext, thread);
|
|
46024
46402
|
if (updatesState && evalContext.onDidUpdate) {
|
|
46025
|
-
evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
|
|
46403
|
+
void evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
|
|
46026
46404
|
}
|
|
46027
46405
|
return value;
|
|
46028
46406
|
}
|
|
@@ -46070,8 +46448,8 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
|
|
|
46070
46448
|
functionArgs.push(...funcArg);
|
|
46071
46449
|
} else {
|
|
46072
46450
|
if (arg.type === T_ARROW_EXPRESSION) {
|
|
46073
|
-
const funcArg =
|
|
46074
|
-
const wrappedFunc =
|
|
46451
|
+
const funcArg = createArrowFunctionAsync(evaluator, arg);
|
|
46452
|
+
const wrappedFunc = (...args) => {
|
|
46075
46453
|
return funcArg(arg.args, evalContext, thread, ...args);
|
|
46076
46454
|
};
|
|
46077
46455
|
functionArgs.push(wrappedFunc);
|
|
@@ -46079,7 +46457,7 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
|
|
|
46079
46457
|
await evaluator([], arg, evalContext, thread);
|
|
46080
46458
|
const funcArg = await completeExprValue(arg, thread);
|
|
46081
46459
|
if (funcArg == null ? void 0 : funcArg._ARROW_EXPR_) {
|
|
46082
|
-
const wrappedFuncArg =
|
|
46460
|
+
const wrappedFuncArg = createArrowFunctionAsync(evaluator, funcArg);
|
|
46083
46461
|
const wrappedFunc = (...args) => wrappedFuncArg(funcArg.args, evalContext, thread, ...args);
|
|
46084
46462
|
functionArgs.push(wrappedFunc);
|
|
46085
46463
|
} else {
|
|
@@ -46108,18 +46486,18 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
|
|
|
46108
46486
|
const rootScope = getRootIdScope(expr.obj, evalContext, thread);
|
|
46109
46487
|
const updatesState = rootScope && rootScope.type !== "block";
|
|
46110
46488
|
if (updatesState && evalContext.onWillUpdate) {
|
|
46111
|
-
evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
|
|
46489
|
+
void evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
|
|
46112
46490
|
}
|
|
46113
46491
|
const value = ((_b = evalContext.options) == null ? void 0 : _b.defaultToOptionalMemberAccess) ? functionObj == null ? void 0 : functionObj.call(currentContext, ...functionArgs) : functionObj.call(currentContext, ...functionArgs);
|
|
46114
46492
|
let returnValue = await completePromise(value);
|
|
46115
46493
|
if (updatesState && evalContext.onDidUpdate) {
|
|
46116
|
-
evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
|
|
46494
|
+
void evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
|
|
46117
46495
|
}
|
|
46118
46496
|
setExprValue(expr, { value: returnValue }, thread);
|
|
46119
46497
|
thisStack.push(returnValue);
|
|
46120
46498
|
return returnValue;
|
|
46121
46499
|
}
|
|
46122
|
-
|
|
46500
|
+
function createArrowFunctionAsync(evaluator, expr) {
|
|
46123
46501
|
return async (...args) => {
|
|
46124
46502
|
const runTimeEvalContext = args[1];
|
|
46125
46503
|
const runtimeThread = args[2];
|
|
@@ -46245,7 +46623,7 @@ async function createArrowFunctionAsync(evaluator, expr) {
|
|
|
46245
46623
|
return returnValue;
|
|
46246
46624
|
};
|
|
46247
46625
|
}
|
|
46248
|
-
|
|
46626
|
+
function completePromise(input2) {
|
|
46249
46627
|
const visited = /* @__PURE__ */ new Map();
|
|
46250
46628
|
return completePromiseInternal(input2);
|
|
46251
46629
|
async function completePromiseInternal(input22) {
|
|
@@ -48726,7 +49104,7 @@ const Animation$1 = forwardRef(function Animation2({
|
|
|
48726
49104
|
const [reset, setReset] = useState(false);
|
|
48727
49105
|
const [count, setCount] = useState(0);
|
|
48728
49106
|
const times = 1;
|
|
48729
|
-
|
|
49107
|
+
useId();
|
|
48730
49108
|
const animationSettings = useMemo(
|
|
48731
49109
|
() => ({
|
|
48732
49110
|
from: _animation.from,
|
|
@@ -48769,9 +49147,9 @@ const Animation$1 = forwardRef(function Animation2({
|
|
|
48769
49147
|
onStart,
|
|
48770
49148
|
onStop,
|
|
48771
49149
|
reset,
|
|
49150
|
+
once,
|
|
48772
49151
|
reverse2,
|
|
48773
|
-
toggle
|
|
48774
|
-
animationId
|
|
49152
|
+
toggle
|
|
48775
49153
|
]
|
|
48776
49154
|
);
|
|
48777
49155
|
const [springs, api] = useSpring(
|
|
@@ -48785,7 +49163,7 @@ const Animation$1 = forwardRef(function Animation2({
|
|
|
48785
49163
|
});
|
|
48786
49164
|
const composedRef = ref ? composeRefs(ref, forwardedRef) : forwardedRef;
|
|
48787
49165
|
const startAnimation = useCallback(() => {
|
|
48788
|
-
api.start(_animation);
|
|
49166
|
+
void api.start(_animation);
|
|
48789
49167
|
return () => {
|
|
48790
49168
|
api.stop();
|
|
48791
49169
|
};
|
|
@@ -48804,7 +49182,7 @@ const Animation$1 = forwardRef(function Animation2({
|
|
|
48804
49182
|
children,
|
|
48805
49183
|
(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)
|
|
48806
49184
|
);
|
|
48807
|
-
}, [animateWhenInView, animationStyles, children, springs, rest]);
|
|
49185
|
+
}, [animateWhenInView, animationStyles, children, springs, rest, composedRef, forwardedRef]);
|
|
48808
49186
|
return content2;
|
|
48809
49187
|
});
|
|
48810
49188
|
const tooltipBehavior = {
|
|
@@ -48835,12 +49213,11 @@ const animationBehavior = {
|
|
|
48835
49213
|
var _a2, _b;
|
|
48836
49214
|
const { extractValue } = context;
|
|
48837
49215
|
const animation = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.animation, true);
|
|
48838
|
-
const animationOptions = extractValue(
|
|
48839
|
-
(_b = context.node.props) == null ? void 0 : _b.animationOptions,
|
|
48840
|
-
true
|
|
48841
|
-
);
|
|
49216
|
+
const animationOptions = extractValue((_b = context.node.props) == null ? void 0 : _b.animationOptions, true);
|
|
48842
49217
|
const parsedOptions = parseAnimationOptions(animationOptions);
|
|
48843
|
-
return /* @__PURE__ */ jsx(Animation$1, { animation: parseAnimation(animation), ...parsedOptions, children: node
|
|
49218
|
+
return /* @__PURE__ */ jsx(Animation$1, { animation: parseAnimation(animation), ...parsedOptions, children: context.node.type === "ModalDialog" ? cloneElement(node, {
|
|
49219
|
+
externalAnimation: true
|
|
49220
|
+
}) : node });
|
|
48844
49221
|
}
|
|
48845
49222
|
};
|
|
48846
49223
|
const labelBehavior = {
|
|
@@ -49834,11 +50211,6 @@ function AppContent({
|
|
|
49834
50211
|
root2
|
|
49835
50212
|
]);
|
|
49836
50213
|
const [appState, setAppState] = useState(EMPTY_OBJECT);
|
|
49837
|
-
const registerAppState = useCallback((bucket, initialValue) => {
|
|
49838
|
-
setAppState((prev) => {
|
|
49839
|
-
return { ...prev, [bucket]: initialValue };
|
|
49840
|
-
});
|
|
49841
|
-
}, []);
|
|
49842
50214
|
const update = useCallback((bucket, patch) => {
|
|
49843
50215
|
setAppState((prev) => {
|
|
49844
50216
|
return {
|
|
@@ -49852,11 +50224,10 @@ function AppContent({
|
|
|
49852
50224
|
}, []);
|
|
49853
50225
|
const appStateContextValue = useMemo(() => {
|
|
49854
50226
|
return {
|
|
49855
|
-
registerAppState,
|
|
49856
50227
|
appState,
|
|
49857
50228
|
update
|
|
49858
50229
|
};
|
|
49859
|
-
}, [appState,
|
|
50230
|
+
}, [appState, update]);
|
|
49860
50231
|
return /* @__PURE__ */ jsx(AppContext.Provider, { value: appContextValue, children: /* @__PURE__ */ jsx(AppStateContext.Provider, { value: appStateContextValue, children: /* @__PURE__ */ jsx(StandaloneComponent, { node: rootContainer, children }) }) });
|
|
49861
50232
|
}
|
|
49862
50233
|
function signError(error2) {
|
|
@@ -50922,26 +51293,34 @@ function StandaloneApp({
|
|
|
50922
51293
|
const shouldDecorateWithTestId = decorateComponentsWithTestId || // @ts-ignore
|
|
50923
51294
|
(typeof window !== "undefined" ? window.XMLUI_MOCK_TEST_ID : false);
|
|
50924
51295
|
const useHashBasedRouting = (appGlobals == null ? void 0 : appGlobals.useHashBasedRouting) ?? true;
|
|
50925
|
-
return /* @__PURE__ */ jsx(
|
|
50926
|
-
|
|
51296
|
+
return /* @__PURE__ */ jsx(
|
|
51297
|
+
ApiInterceptorProvider,
|
|
50927
51298
|
{
|
|
50928
|
-
|
|
50929
|
-
|
|
50930
|
-
|
|
50931
|
-
|
|
50932
|
-
|
|
50933
|
-
|
|
50934
|
-
|
|
50935
|
-
|
|
50936
|
-
|
|
50937
|
-
|
|
50938
|
-
|
|
50939
|
-
|
|
50940
|
-
|
|
50941
|
-
|
|
50942
|
-
|
|
51299
|
+
interceptor: mockedApi,
|
|
51300
|
+
useHashBasedRouting,
|
|
51301
|
+
waitForApiInterceptor,
|
|
51302
|
+
children: /* @__PURE__ */ jsx(
|
|
51303
|
+
AppRoot,
|
|
51304
|
+
{
|
|
51305
|
+
projectCompilation,
|
|
51306
|
+
decorateComponentsWithTestId: shouldDecorateWithTestId,
|
|
51307
|
+
node: entryPoint,
|
|
51308
|
+
standalone: true,
|
|
51309
|
+
debugEnabled,
|
|
51310
|
+
routerBaseName: typeof window !== "undefined" ? window.__PUBLIC_PATH || "" : "",
|
|
51311
|
+
globalProps,
|
|
51312
|
+
defaultTheme,
|
|
51313
|
+
defaultTone,
|
|
51314
|
+
resources,
|
|
51315
|
+
resourceMap,
|
|
51316
|
+
sources,
|
|
51317
|
+
extensionManager,
|
|
51318
|
+
contributes,
|
|
51319
|
+
children
|
|
51320
|
+
}
|
|
51321
|
+
)
|
|
50943
51322
|
}
|
|
50944
|
-
)
|
|
51323
|
+
);
|
|
50945
51324
|
}
|
|
50946
51325
|
async function parseComponentMarkupResponse(response) {
|
|
50947
51326
|
if (!response.ok) {
|
|
@@ -51170,7 +51549,7 @@ async function loadThemeFile(url) {
|
|
|
51170
51549
|
}
|
|
51171
51550
|
}
|
|
51172
51551
|
}
|
|
51173
|
-
|
|
51552
|
+
function fetchWithoutCache(url) {
|
|
51174
51553
|
return fetch(normalizePath(url), {
|
|
51175
51554
|
headers: {
|
|
51176
51555
|
"Cache-Control": "no-cache, no-store"
|
|
@@ -51191,7 +51570,7 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
51191
51570
|
});
|
|
51192
51571
|
const [projectCompilation, setProjectCompilation] = useState(null);
|
|
51193
51572
|
useIsomorphicLayoutEffect(() => {
|
|
51194
|
-
|
|
51573
|
+
void async function() {
|
|
51195
51574
|
var _a2, _b, _c, _d, _e;
|
|
51196
51575
|
const resolvedRuntime = resolveRuntime(runtime);
|
|
51197
51576
|
const appDef = mergeAppDefWithRuntime(resolvedRuntime.standaloneApp, standaloneAppDef);
|
|
@@ -51477,7 +51856,7 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
51477
51856
|
});
|
|
51478
51857
|
setProjectCompilation(resolvedRuntime.projectCompilation);
|
|
51479
51858
|
setStandaloneApp(newAppDef);
|
|
51480
|
-
}
|
|
51859
|
+
}();
|
|
51481
51860
|
}, [runtime, standaloneAppDef]);
|
|
51482
51861
|
return { standaloneApp, projectCompilation };
|
|
51483
51862
|
}
|