xmlui 0.12.13 → 0.12.14
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/{index-CTP4jTbc.js → index-CoONXJTv.js} +905 -336
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-BVEw0iLi.js → initMock-mzDxjYsY.js} +2 -2
- package/dist/lib/{parser-CrJtcHPI.js → parser-CtPjoLla.js} +33 -11
- package/dist/lib/testing.d.ts +3 -0
- package/dist/lib/testing.js +7 -6
- package/dist/lib/{xmlui-parser-D3TD3HT1.js → xmlui-parser-DvQM_0YK.js} +1 -1
- package/dist/lib/xmlui-parser.js +2 -2
- package/dist/lib/{xmlui-serializer-DbksENG1.js → xmlui-serializer-CdiEmlrH.js} +51 -51
- package/dist/lib/xmlui.d.ts +6 -1
- package/dist/lib/xmlui.js +3 -3
- package/dist/metadata/TextBox-BU716k_J.cjs +1 -0
- package/dist/metadata/{TextBox-C9SBAFtt.js → TextBox-DLNNV4q6.js} +853 -282
- package/dist/metadata/behaviors.cjs +1 -1
- package/dist/metadata/behaviors.js +1 -1
- package/dist/metadata/{initMock-4LfS-WVk.cjs → initMock-B1u_LSQY.cjs} +1 -1
- package/dist/metadata/{initMock-BZWjrOGA.js → initMock-Blu-5w5H.js} +1 -1
- package/dist/metadata/metadata-utils.cjs +1 -1
- package/dist/metadata/metadata-utils.js +1 -1
- package/dist/metadata/{transform-Da4Ll9sA.cjs → transform-C6chaTVn.cjs} +1 -1
- package/dist/metadata/{transform-C4pkY56K.js → transform-ChfkzUwQ.js} +49 -27
- package/dist/metadata/xmlui-metadata.cjs +1 -1
- package/dist/metadata/xmlui-metadata.js +2 -2
- package/dist/metadata/xmlui.css +1 -1
- package/dist/nodejs/bin/index.mjs +22 -6
- package/dist/nodejs/index.cjs +22 -6
- package/dist/nodejs/index.mjs +22 -6
- package/dist/nodejs/vite-xmlui-plugin.cjs +22 -6
- package/dist/nodejs/vite-xmlui-plugin.mjs +22 -6
- package/dist/standalone/xmlui-standalone.es.d.ts +7 -1
- package/dist/standalone/xmlui-standalone.umd.js +10 -10
- package/package.json +3 -3
- package/dist/metadata/TextBox-D938iaxA.cjs +0 -1
|
@@ -7,13 +7,14 @@ import toast, { Toaster, ToastBar } from "react-hot-toast";
|
|
|
7
7
|
import yaml from "js-yaml";
|
|
8
8
|
import { useQuery, useInfiniteQuery, QueryClientProvider, QueryClient } from "@tanstack/react-query";
|
|
9
9
|
import produce, { createDraft, finishDraft, enableMapSet } from "immer";
|
|
10
|
-
import { i as parseLayoutProperty, t as toCssPropertyNames, j as layoutOptionKeys, s as shallowCompare, u as useEvent, k as capitalizeFirstLetter$1, n as isComponentDefChildren, N as NotAComponentDefError, q as toCssVar$1, r as resolveAndCleanProps, v as normalizePath, w as THEME_VAR_PREFIX$2, S as StyleParser, x as generatedId, y as asyncThrottle, z as asOptionalBoolean, A as partitionObject, e as extractParam, B as randomUUID, C as processStatementQueue, D as readCookie, G as GenericBackendError, E as shouldKeep, F as createContextVariableError, h as delay$1,
|
|
10
|
+
import { i as parseLayoutProperty, t as toCssPropertyNames, j as layoutOptionKeys, s as shallowCompare, u as useEvent, k as capitalizeFirstLetter$1, n as isComponentDefChildren, N as NotAComponentDefError, q as toCssVar$1, r as resolveAndCleanProps, v as normalizePath, w as THEME_VAR_PREFIX$2, S as StyleParser, x as generatedId, y as asyncThrottle, z as asOptionalBoolean, A as partitionObject, e as extractParam, B as randomUUID, C as processStatementQueue, D as readCookie, G as GenericBackendError, E as shouldKeep, F as createContextVariableError, H as parseParameterString, h as delay$1, I as toCssPropertyName, J as removeNullProperties, K as asyncWait, M as evalBinding, P as PropsTrasform, O as debounce$1, Q as distinct, R as findByField, U as toHashObject, V as pluralize$1, W as humanReadableDateTimeTillNow, Y as ensureMainThread, Z as evalArrow, _ as evalIdentifier, $ as evalLiteral, a0 as setExprValue, a1 as evalMemberAccessCore, a2 as isBannedFunction, a3 as getRootIdScope, a4 as evalPreOrPostCore, a5 as evalAssignmentCore, a6 as evalBinaryCore, a7 as evalUnaryCore, a8 as evalCalculatedMemberAccessCore, a9 as evalTemplateLiteralCore, aa as getExprValue, ab as isPromise, ac as hoistFunctionDeclarations, ad as StatementQueue, ae as mapStatementsToQueueItems, af as toStatementItems, T as ThrowStatementError, ag as reportEngineError, ah as StatementExecutionError, ai as releaseLoopScope, aj as createLoopScope, ak as guard, al as provideTryBody, am as createTryScope, an as innermostTryScope, ao as innermostLoopScope, ap as provideFinallyErrorBody, aq as provideFinallyBody, ar as innermostBlockScope, as as provideCatchBody, at as provideLoopBody, au as mapToItem, av as closing, aw as ScriptParseError, ax as createValueExtractor, ay as collectVariableDependencies, az as pickFromObject, aA as resolveResponsiveWhen, aB as getFileExtension, aC as formatFileSizeInBytes, c as componentFileExtension, a as codeBehindFileExtension, g as getLintSeverity, L as LintSeverity, l as lintApp, p as printComponentLints, d as lintErrorsComponent } from "./xmlui-serializer-CdiEmlrH.js";
|
|
11
11
|
import classnames from "classnames";
|
|
12
12
|
import { isEmpty, noop as noop$2, omitBy, isUndefined, isPlainObject as isPlainObject$1, isNil, unset, set, get, debounce, isEqual, union, uniq, orderBy, isObject, isArray, groupBy, sortBy, omit, throttle, isNumber, cloneDeep, isNaN as isNaN$1, merge, defaultTo, capitalize as capitalize$1, setWith, keyBy } from "lodash-es";
|
|
13
|
-
import { M as MediaBreakpointKeys, Q as T_ARROW_EXPRESSION, ar as isArrowExpressionObject$1, a9 as T_ARROW_EXPRESSION_STATEMENT,
|
|
13
|
+
import { M as MediaBreakpointKeys, Q as T_ARROW_EXPRESSION, ar as isArrowExpressionObject$1, a9 as T_ARROW_EXPRESSION_STATEMENT, as as T_VAR_DECLARATION, au as T_REACTIVE_VAR_DECLARATION, af as T_NEW_EXPRESSION, ag as T_AWAIT_EXPRESSION, aj as T_POSTFIX_OP_EXPRESSION, L as T_PREFIX_OP_EXPRESSION, ad as T_ASSIGNMENT_EXPRESSION, ah as T_SPREAD_EXPRESSION, an as T_OBJECT_LITERAL, ao as T_ARRAY_LITERAL, aq as T_TEMPLATE_LITERAL_EXPRESSION, ae as T_LITERAL, ai as T_FUNCTION_INVOCATION_EXPRESSION, ak as T_CONDITIONAL_EXPRESSION, ap as T_SEQUENCE_EXPRESSION, am as T_UNARY_EXPRESSION, al as T_BINARY_EXPRESSION, I as T_CALCULATED_MEMBER_ACCESS_EXPRESSION, J as T_MEMBER_ACCESS_EXPRESSION, K as T_IDENTIFIER, P as Parser, at as T_DESTRUCTURE, aa as T_BLOCK_STATEMENT, a0 as T_EXPRESSION_STATEMENT, a5 as T_RETURN_STATEMENT, V as T_EMPTY_STATEMENT, W as T_SWITCH_STATEMENT, X as T_TRY_STATEMENT, Y as T_THROW_STATEMENT, Z as T_FOR_OF_STATEMENT, _ as T_FOR_IN_STATEMENT, $ as T_FOR_STATEMENT, R as createXmlUiTreeNodeId, a1 as T_BREAK_STATEMENT, a2 as T_CONTINUE_STATEMENT, a3 as T_DO_WHILE_STATEMENT, a4 as T_WHILE_STATEMENT, a6 as T_IF_STATEMENT, a7 as T_CONST_STATEMENT, a8 as T_LET_STATEMENT, ab as T_VAR_STATEMENT, O as T_FUNCTION_DECLARATION, ac as T_ASYNC_FUNCTION_DECLARATION, av as isParsedCodeDeclaration, v as onPrefixRegex, y as stripOnPrefix, aw as collectCodeBehindFromSourceWithImports, ax as removeCodeBehindTokensFromTree, ay as ModuleResolver } from "./parser-CtPjoLla.js";
|
|
14
14
|
import Color from "color";
|
|
15
|
-
import { c as PART_LABELED_ITEM, d as PART_LABEL, e as PART_ICON, b as PART_INPUT, f as PART_CONTENT$2, g as PART_HEADER, x as xmlUiMarkupToComponent, h as errReportComponent, i as PART_CONCISE_VALIDATION_FEEDBACK$5, j as PART_AVATAR, k as PART_TITLE$1, l as PART_SUBTITLE, P as PART_START_ADORNMENT, a as PART_END_ADORNMENT, m as PART_CLEAR_BUTTON$1, n as PART_YEAR, o as PART_MONTH, p as PART_DAY, q as errReportMessage, r as errReportScriptError, s as errReportModuleErrors } from "./xmlui-parser-
|
|
15
|
+
import { c as PART_LABELED_ITEM, d as PART_LABEL, e as PART_ICON, b as PART_INPUT, f as PART_CONTENT$2, g as PART_HEADER, x as xmlUiMarkupToComponent, h as errReportComponent, i as PART_CONCISE_VALIDATION_FEEDBACK$5, j as PART_AVATAR, k as PART_TITLE$1, l as PART_SUBTITLE, P as PART_START_ADORNMENT, a as PART_END_ADORNMENT, m as PART_CLEAR_BUTTON$1, n as PART_YEAR, o as PART_MONTH, p as PART_DAY, q as errReportMessage, r as errReportScriptError, s as errReportModuleErrors } from "./xmlui-parser-DvQM_0YK.js";
|
|
16
16
|
import * as InnerRadioGroup from "@radix-ui/react-radio-group";
|
|
17
|
+
import { useContextSelector, createContext as createContext$1 } from "use-context-selector";
|
|
17
18
|
import { OverlayScrollbarsComponent } from "overlayscrollbars-react";
|
|
18
19
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
19
20
|
import { DropdownMenu as DropdownMenu$1, DropdownMenuTrigger, DropdownMenuPortal, DropdownMenuContent as DropdownMenuContent$1, DropdownMenuItem as DropdownMenuItem$1, DropdownMenuSub, DropdownMenuSubTrigger as DropdownMenuSubTrigger$1, DropdownMenuSubContent as DropdownMenuSubContent$1 } from "@radix-ui/react-dropdown-menu";
|
|
@@ -26,7 +27,6 @@ import remarkGfm from "remark-gfm";
|
|
|
26
27
|
import rehypeRaw from "rehype-raw";
|
|
27
28
|
import { Link, useLocation, useNavigationType, NavLink as NavLink$1, Routes, Route, Navigate, useParams, useSearchParams, useNavigate, useInRouterContext, MemoryRouter, HashRouter, BrowserRouter } from "react-router-dom";
|
|
28
29
|
import { visit } from "unist-util-visit";
|
|
29
|
-
import { useContextSelector, createContext as createContext$1 } from "use-context-selector";
|
|
30
30
|
import { Helmet, HelmetProvider } from "react-helmet-async";
|
|
31
31
|
import * as Dialog$1 from "@radix-ui/react-dialog";
|
|
32
32
|
import { Virtualizer } from "virtua";
|
|
@@ -2465,7 +2465,9 @@ function wrapComponent(type, Component, metadata, config = {}) {
|
|
|
2465
2465
|
const traceKind = xsVerbose ? eventNameToTraceKind(xmluiName) : void 0;
|
|
2466
2466
|
if (!handler && !traceKind) continue;
|
|
2467
2467
|
props[reactPropName] = (...args) => {
|
|
2468
|
-
const
|
|
2468
|
+
const activeTrace = traceKind ? getCurrentTrace() : void 0;
|
|
2469
|
+
const inheritInteraction = activeTrace?.startsWith("i-");
|
|
2470
|
+
const traceId = traceKind && !inheritInteraction ? pushTrace() : void 0;
|
|
2469
2471
|
try {
|
|
2470
2472
|
let result;
|
|
2471
2473
|
if (handler) {
|
|
@@ -2480,7 +2482,7 @@ function wrapComponent(type, Component, metadata, config = {}) {
|
|
|
2480
2482
|
pushXsLog(
|
|
2481
2483
|
createLogEntry(traceKind, {
|
|
2482
2484
|
component: type,
|
|
2483
|
-
componentLabel:
|
|
2485
|
+
componentLabel: ariaLabel || node.uid || void 0,
|
|
2484
2486
|
displayLabel: traceDisplayLabel(traceKind, xmluiName, args),
|
|
2485
2487
|
eventName: xmluiName,
|
|
2486
2488
|
ariaName: ariaLabel,
|
|
@@ -2493,7 +2495,7 @@ function wrapComponent(type, Component, metadata, config = {}) {
|
|
|
2493
2495
|
}
|
|
2494
2496
|
return result;
|
|
2495
2497
|
} finally {
|
|
2496
|
-
endTrace(traceId, traceKind);
|
|
2498
|
+
if (traceId) endTrace(traceId, traceKind);
|
|
2497
2499
|
}
|
|
2498
2500
|
};
|
|
2499
2501
|
}
|
|
@@ -2529,7 +2531,7 @@ function wrapComponent(type, Component, metadata, config = {}) {
|
|
|
2529
2531
|
createLogEntry(traceKind, {
|
|
2530
2532
|
traceId,
|
|
2531
2533
|
componentType: type,
|
|
2532
|
-
componentLabel: xmluiId || type,
|
|
2534
|
+
componentLabel: ariaLabel || xmluiId || type,
|
|
2533
2535
|
displayLabel: event?.displayLabel || void 0,
|
|
2534
2536
|
eventName: eventType,
|
|
2535
2537
|
ariaName: ariaLabel,
|
|
@@ -2610,6 +2612,11 @@ function wrapComponent(type, Component, metadata, config = {}) {
|
|
|
2610
2612
|
}
|
|
2611
2613
|
}
|
|
2612
2614
|
}
|
|
2615
|
+
const explicitAriaLabel = extractValue(node.props?.["aria-label"]);
|
|
2616
|
+
ariaLabel = explicitAriaLabel || config.deriveAriaLabel?.(props) || metadata.defaultAriaLabel || props.label || void 0;
|
|
2617
|
+
if (ariaLabel) {
|
|
2618
|
+
props["aria-label"] = ariaLabel;
|
|
2619
|
+
}
|
|
2613
2620
|
if (xsVerbose && Array.isArray(props.data)) {
|
|
2614
2621
|
const bindKey = node.uid || node.testId || type;
|
|
2615
2622
|
const w = typeof window !== "undefined" ? window : {};
|
|
@@ -2621,7 +2628,8 @@ function wrapComponent(type, Component, metadata, config = {}) {
|
|
|
2621
2628
|
pushXsLog(
|
|
2622
2629
|
createLogEntry("data:bind", {
|
|
2623
2630
|
component: type,
|
|
2624
|
-
componentLabel:
|
|
2631
|
+
componentLabel: ariaLabel || node.uid || void 0,
|
|
2632
|
+
ariaName: ariaLabel,
|
|
2625
2633
|
displayLabel: `${bindKey}: ${prevCount ?? 0} → ${currCount} items`,
|
|
2626
2634
|
prevCount: prevCount ?? 0,
|
|
2627
2635
|
rowCount: currCount,
|
|
@@ -2631,11 +2639,6 @@ function wrapComponent(type, Component, metadata, config = {}) {
|
|
|
2631
2639
|
);
|
|
2632
2640
|
}
|
|
2633
2641
|
}
|
|
2634
|
-
const explicitAriaLabel = extractValue(node.props?.["aria-label"]);
|
|
2635
|
-
ariaLabel = explicitAriaLabel || config.deriveAriaLabel?.(props) || metadata.defaultAriaLabel || props.label || void 0;
|
|
2636
|
-
if (ariaLabel) {
|
|
2637
|
-
props["aria-label"] = ariaLabel;
|
|
2638
|
-
}
|
|
2639
2642
|
let rendered;
|
|
2640
2643
|
if (config.customRender) {
|
|
2641
2644
|
rendered = config.customRender(props, context);
|
|
@@ -2860,7 +2863,9 @@ function wrapCompound(type, RenderComponent, metadata, config = {}) {
|
|
|
2860
2863
|
if (xmluiName === "didChange" && isStateful) {
|
|
2861
2864
|
if (traceKind || handler) {
|
|
2862
2865
|
props.onDidChange = (...args) => {
|
|
2863
|
-
const
|
|
2866
|
+
const activeTrace2 = traceKind ? getCurrentTrace() : void 0;
|
|
2867
|
+
const inheritInteraction2 = activeTrace2?.startsWith("i-");
|
|
2868
|
+
const traceId = traceKind && !inheritInteraction2 ? pushTrace() : void 0;
|
|
2864
2869
|
try {
|
|
2865
2870
|
let result;
|
|
2866
2871
|
if (handler) {
|
|
@@ -2870,7 +2875,7 @@ function wrapCompound(type, RenderComponent, metadata, config = {}) {
|
|
|
2870
2875
|
pushXsLog(
|
|
2871
2876
|
createLogEntry(traceKind, {
|
|
2872
2877
|
component: type,
|
|
2873
|
-
componentLabel:
|
|
2878
|
+
componentLabel: ariaLabel || node.uid || void 0,
|
|
2874
2879
|
displayLabel: traceDisplayLabel(traceKind, xmluiName, args),
|
|
2875
2880
|
eventName: xmluiName,
|
|
2876
2881
|
ariaName: ariaLabel,
|
|
@@ -2882,7 +2887,7 @@ function wrapCompound(type, RenderComponent, metadata, config = {}) {
|
|
|
2882
2887
|
}
|
|
2883
2888
|
return result;
|
|
2884
2889
|
} finally {
|
|
2885
|
-
endTrace(traceId, traceKind);
|
|
2890
|
+
if (traceId) endTrace(traceId, traceKind);
|
|
2886
2891
|
}
|
|
2887
2892
|
};
|
|
2888
2893
|
}
|
|
@@ -2906,7 +2911,7 @@ function wrapCompound(type, RenderComponent, metadata, config = {}) {
|
|
|
2906
2911
|
pushXsLog(
|
|
2907
2912
|
createLogEntry(traceKind, {
|
|
2908
2913
|
component: type,
|
|
2909
|
-
componentLabel:
|
|
2914
|
+
componentLabel: ariaLabel || node.uid || void 0,
|
|
2910
2915
|
displayLabel: traceDisplayLabel(traceKind, xmluiName, args),
|
|
2911
2916
|
eventName: xmluiName,
|
|
2912
2917
|
ariaName: ariaLabel,
|
|
@@ -2956,7 +2961,7 @@ function wrapCompound(type, RenderComponent, metadata, config = {}) {
|
|
|
2956
2961
|
createLogEntry(traceKind, {
|
|
2957
2962
|
traceId,
|
|
2958
2963
|
componentType: type,
|
|
2959
|
-
componentLabel: xmluiId || type,
|
|
2964
|
+
componentLabel: ariaLabel || xmluiId || type,
|
|
2960
2965
|
displayLabel: event?.displayLabel || void 0,
|
|
2961
2966
|
eventName: eventType,
|
|
2962
2967
|
ariaName: ariaLabel,
|
|
@@ -3504,6 +3509,96 @@ const radioGroupRenderer = wrapComponent(COMP$1s, ThemedRadioGroup, RadioGroupMd
|
|
|
3504
3509
|
}
|
|
3505
3510
|
)
|
|
3506
3511
|
});
|
|
3512
|
+
const validationSeverityValues = ["error", "warning", "valid", "none"];
|
|
3513
|
+
const defaultValidationMode = "errorLate";
|
|
3514
|
+
const validationModeMd = [
|
|
3515
|
+
{
|
|
3516
|
+
value: "errorLate",
|
|
3517
|
+
description: "Display the error when the field loses focus.If an error is already displayed, continue for every keystroke until input is accepted."
|
|
3518
|
+
},
|
|
3519
|
+
{
|
|
3520
|
+
value: "onChanged",
|
|
3521
|
+
description: "Display error (if present) for every keystroke."
|
|
3522
|
+
},
|
|
3523
|
+
{
|
|
3524
|
+
value: "onLostFocus",
|
|
3525
|
+
description: "Show/hide error (if present) only if the field loses focus."
|
|
3526
|
+
}
|
|
3527
|
+
];
|
|
3528
|
+
const FormContext = createContext$1(void 0);
|
|
3529
|
+
function useFormContextPart(selector) {
|
|
3530
|
+
return useContextSelector(FormContext, selector);
|
|
3531
|
+
}
|
|
3532
|
+
function useIsInsideForm() {
|
|
3533
|
+
const contextPart = useFormContextPart((value) => value?.dispatch);
|
|
3534
|
+
return contextPart !== void 0;
|
|
3535
|
+
}
|
|
3536
|
+
const formControlTypesMd = [
|
|
3537
|
+
{
|
|
3538
|
+
value: "text",
|
|
3539
|
+
description: "Renders TextBox"
|
|
3540
|
+
},
|
|
3541
|
+
{
|
|
3542
|
+
value: "password",
|
|
3543
|
+
description: "Renders TextBox with `password` type"
|
|
3544
|
+
},
|
|
3545
|
+
{
|
|
3546
|
+
value: "textarea",
|
|
3547
|
+
description: "Renders Textarea"
|
|
3548
|
+
},
|
|
3549
|
+
{
|
|
3550
|
+
value: "checkbox",
|
|
3551
|
+
description: "Renders Checkbox"
|
|
3552
|
+
},
|
|
3553
|
+
{
|
|
3554
|
+
value: "number",
|
|
3555
|
+
description: "Renders NumberBox"
|
|
3556
|
+
},
|
|
3557
|
+
{
|
|
3558
|
+
value: "integer",
|
|
3559
|
+
description: "Renders NumberBox with `integersOnly` set to true"
|
|
3560
|
+
},
|
|
3561
|
+
{
|
|
3562
|
+
value: "file",
|
|
3563
|
+
description: "Renders FileInput"
|
|
3564
|
+
},
|
|
3565
|
+
{
|
|
3566
|
+
value: "datePicker",
|
|
3567
|
+
description: "Renders DatePicker"
|
|
3568
|
+
},
|
|
3569
|
+
{
|
|
3570
|
+
value: "radioGroup",
|
|
3571
|
+
description: "Renders RadioGroup"
|
|
3572
|
+
},
|
|
3573
|
+
{
|
|
3574
|
+
value: "switch",
|
|
3575
|
+
description: "Renders Switch"
|
|
3576
|
+
},
|
|
3577
|
+
{
|
|
3578
|
+
value: "select",
|
|
3579
|
+
description: "Renders Select"
|
|
3580
|
+
},
|
|
3581
|
+
{
|
|
3582
|
+
value: "autocomplete",
|
|
3583
|
+
description: "Renders AutoComplete"
|
|
3584
|
+
},
|
|
3585
|
+
{
|
|
3586
|
+
value: "slider",
|
|
3587
|
+
description: "Renders Slider"
|
|
3588
|
+
},
|
|
3589
|
+
{
|
|
3590
|
+
value: "colorpicker",
|
|
3591
|
+
description: "Renders ColorPicker"
|
|
3592
|
+
},
|
|
3593
|
+
{
|
|
3594
|
+
value: "items",
|
|
3595
|
+
description: "Renders Items"
|
|
3596
|
+
},
|
|
3597
|
+
{
|
|
3598
|
+
value: "custom",
|
|
3599
|
+
description: "A custom control specified in children. If `type` is not specified but the `FormItem` has children, it considers the control a custom one."
|
|
3600
|
+
}
|
|
3601
|
+
];
|
|
3507
3602
|
const defaultProps$1d = {
|
|
3508
3603
|
labelBreak: true,
|
|
3509
3604
|
enabled: true,
|
|
@@ -3517,7 +3612,7 @@ const defaultProps$1d = {
|
|
|
3517
3612
|
const numberRegex = /^[0-9]+$/;
|
|
3518
3613
|
const ItemWithLabel = forwardRef(function ItemWithLabel2({
|
|
3519
3614
|
id,
|
|
3520
|
-
labelPosition
|
|
3615
|
+
labelPosition,
|
|
3521
3616
|
style: style2 = {},
|
|
3522
3617
|
className,
|
|
3523
3618
|
label: label2,
|
|
@@ -3543,6 +3638,10 @@ const ItemWithLabel = forwardRef(function ItemWithLabel2({
|
|
|
3543
3638
|
}, ref) {
|
|
3544
3639
|
const generatedId2 = useId();
|
|
3545
3640
|
const inputId = id || generatedId2;
|
|
3641
|
+
const formItemLabelPosition = useFormContextPart(
|
|
3642
|
+
(value) => value?.itemLabelPosition
|
|
3643
|
+
);
|
|
3644
|
+
const resolvedLabelPosition = labelPosition ?? formItemLabelPosition ?? "top";
|
|
3546
3645
|
const isInHorizontalStack = layoutContext?.orientation === "horizontal";
|
|
3547
3646
|
const [inputElement, setInputElement] = useState(null);
|
|
3548
3647
|
const [inputHeight, setInputHeight] = useState(void 0);
|
|
@@ -3560,7 +3659,7 @@ const ItemWithLabel = forwardRef(function ItemWithLabel2({
|
|
|
3560
3659
|
return () => observer.disconnect();
|
|
3561
3660
|
}
|
|
3562
3661
|
}, [inputElement]);
|
|
3563
|
-
const labelWrapperHeight =
|
|
3662
|
+
const labelWrapperHeight = resolvedLabelPosition === "start" || resolvedLabelPosition === "end" ? inputHeight : "auto";
|
|
3564
3663
|
const isRadioGroup = React__default.isValidElement(children) && children.type === ThemedRadioGroup;
|
|
3565
3664
|
if (label2 === void 0 && !validationResult) {
|
|
3566
3665
|
return /* @__PURE__ */ jsx(Part, { partId: PART_LABELED_ITEM, children: /* @__PURE__ */ jsx(Slot, { ...rest, style: style2, className, id: inputId, ref, children }) });
|
|
@@ -3579,10 +3678,10 @@ const ItemWithLabel = forwardRef(function ItemWithLabel2({
|
|
|
3579
3678
|
"div",
|
|
3580
3679
|
{
|
|
3581
3680
|
className: classnames(styles$1k.container, {
|
|
3582
|
-
[styles$1k.top]:
|
|
3583
|
-
[styles$1k.bottom]:
|
|
3584
|
-
[styles$1k.start]:
|
|
3585
|
-
[styles$1k.end]:
|
|
3681
|
+
[styles$1k.top]: resolvedLabelPosition === "top",
|
|
3682
|
+
[styles$1k.bottom]: resolvedLabelPosition === "bottom",
|
|
3683
|
+
[styles$1k.start]: resolvedLabelPosition === "start",
|
|
3684
|
+
[styles$1k.end]: resolvedLabelPosition === "end",
|
|
3586
3685
|
[styles$1k.shrinkToLabel]: shrinkToLabel2
|
|
3587
3686
|
}),
|
|
3588
3687
|
dir: rest?.direction,
|
|
@@ -3652,10 +3751,10 @@ const ItemWithLabel = forwardRef(function ItemWithLabel2({
|
|
|
3652
3751
|
"div",
|
|
3653
3752
|
{
|
|
3654
3753
|
className: classnames(styles$1k.container, {
|
|
3655
|
-
[styles$1k.top]:
|
|
3656
|
-
[styles$1k.bottom]:
|
|
3657
|
-
[styles$1k.start]:
|
|
3658
|
-
[styles$1k.end]:
|
|
3754
|
+
[styles$1k.top]: resolvedLabelPosition === "top",
|
|
3755
|
+
[styles$1k.bottom]: resolvedLabelPosition === "bottom",
|
|
3756
|
+
[styles$1k.start]: resolvedLabelPosition === "start",
|
|
3757
|
+
[styles$1k.end]: resolvedLabelPosition === "end",
|
|
3659
3758
|
[styles$1k.shrinkToLabel]: shrinkToLabel2
|
|
3660
3759
|
}),
|
|
3661
3760
|
dir: rest?.direction,
|
|
@@ -7582,17 +7681,18 @@ const styles$18 = {
|
|
|
7582
7681
|
breakHyphenate: breakHyphenate$2
|
|
7583
7682
|
};
|
|
7584
7683
|
const themeVars$R = `'{"border-H1": "var(--xmlui-border-H1)", "borderHorizontal-H1": "var(--xmlui-borderHorizontal-H1, var(--xmlui-border-H1))", "borderVertical-H1": "var(--xmlui-borderVertical-H1, var(--xmlui-border-H1))", "borderLeft-H1": "var(--xmlui-borderLeft-H1, var(--xmlui-borderHorizontal-H1, var(--xmlui-border-H1)))", "borderRight-H1": "var(--xmlui-borderRight-H1, var(--xmlui-borderHorizontal-H1, var(--xmlui-border-H1)))", "borderTop-H1": "var(--xmlui-borderTop-H1, var(--xmlui-borderVertical-H1, var(--xmlui-border-H1)))", "borderBottom-H1": "var(--xmlui-borderBottom-H1, var(--xmlui-borderVertical-H1, var(--xmlui-border-H1)))", "borderWidth-H1": "var(--xmlui-borderWidth-H1)", "borderHorizontalWidth-H1": "var(--xmlui-borderHorizontalWidth-H1, var(--xmlui-borderWidth-H1))", "borderLeftWidth-H1": "var(--xmlui-borderLeftWidth-H1, var(--xmlui-borderHorizontalWidth-H1, var(--xmlui-borderWidth-H1)))", "borderRightWidth-H1": "var(--xmlui-borderRightWidth-H1, var(--xmlui-borderHorizontalWidth-H1, var(--xmlui-borderWidth-H1)))", "borderVerticalWidth-H1": "var(--xmlui-borderVerticalWidth-H1, var(--xmlui-borderWidth-H1))", "borderTopWidth-H1": "var(--xmlui-borderTopWidth-H1, var(--xmlui-borderVerticalWidth-H1, var(--xmlui-borderWidth-H1)))", "borderBottomWidth-H1": "var(--xmlui-borderBottomWidth-H1, var(--xmlui-borderVerticalWidth-H1, var(--xmlui-borderWidth-H1)))", "borderStyle-H1": "var(--xmlui-borderStyle-H1)", "borderHorizontalStyle-H1": "var(--xmlui-borderHorizontalStyle-H1, var(--xmlui-borderStyle-H1))", "borderLeftStyle-H1": "var(--xmlui-borderLeftStyle-H1, var(--xmlui-borderHorizontalStyle-H1, var(--xmlui-borderStyle-H1)))", "borderRightStyle-H1": "var(--xmlui-borderRightStyle-H1, var(--xmlui-borderHorizontalStyle-H1, var(--xmlui-borderStyle-H1)))", "borderVerticalStyle-H1": "var(--xmlui-borderVerticalStyle-H1, var(--xmlui-borderStyle-H1))", "borderTopStyle-H1": "var(--xmlui-borderTopStyle-H1, var(--xmlui-borderVerticalStyle-H1, var(--xmlui-borderStyle-H1)))", "borderBottomStyle-H1": "var(--xmlui-borderBottomStyle-H1, var(--xmlui-borderVerticalStyle-H1, var(--xmlui-borderStyle-H1)))", "borderColor-H1": "var(--xmlui-borderColor-H1)", "borderHorizontalColor-H1": "var(--xmlui-borderHorizontalColor-H1, var(--xmlui-borderColor-H1))", "borderLeftColor-H1": "var(--xmlui-borderLeftColor-H1, var(--xmlui-borderHorizontalColor-H1, var(--xmlui-borderColor-H1)))", "borderRightColor-H1": "var(--xmlui-borderRightColor-H1, var(--xmlui-borderHorizontalColor-H1, var(--xmlui-borderColor-H1)))", "borderVerticalColor-H1": "var(--xmlui-borderVerticalColor-H1, var(--xmlui-borderColor-H1))", "borderTopColor-H1": "var(--xmlui-borderTopColor-H1, var(--xmlui-borderVerticalColor-H1, var(--xmlui-borderColor-H1)))", "borderBottomColor-H1": "var(--xmlui-borderBottomColor-H1, var(--xmlui-borderVerticalColor-H1, var(--xmlui-borderColor-H1)))", "borderStartStartRadius-H1": "var(--xmlui-borderStartStartRadius-H1, var(--xmlui-borderRadius-H1))", "borderStartEndRadius-H1": "var(--xmlui-borderStartEndRadius-H1, var(--xmlui-borderRadius-H1))", "borderEndStartRadius-H1": "var(--xmlui-borderEndStartRadius-H1, var(--xmlui-borderRadius-H1))", "borderEndEndRadius-H1": "var(--xmlui-borderEndEndRadius-H1, var(--xmlui-borderRadius-H1))", "padding-H1": "var(--xmlui-padding-H1)", "paddingHorizontal-H1": "var(--xmlui-paddingHorizontal-H1, var(--xmlui-padding-H1))", "paddingVertical-H1": "var(--xmlui-paddingVertical-H1, var(--xmlui-padding-H1))", "paddingLeft-H1": "var(--xmlui-paddingLeft-H1, var(--xmlui-paddingHorizontal-H1, var(--xmlui-padding-H1)))", "paddingRight-H1": "var(--xmlui-paddingRight-H1, var(--xmlui-paddingHorizontal-H1, var(--xmlui-padding-H1)))", "paddingTop-H1": "var(--xmlui-paddingTop-H1, var(--xmlui-paddingVertical-H1, var(--xmlui-padding-H1)))", "paddingBottom-H1": "var(--xmlui-paddingBottom-H1, var(--xmlui-paddingVertical-H1, var(--xmlui-padding-H1)))", "textColor-H1": "var(--xmlui-textColor-H1)", "fontFamily-H1": "var(--xmlui-fontFamily-H1)", "fontSize-H1": "var(--xmlui-fontSize-H1)", "fontStyle-H1": "var(--xmlui-fontStyle-H1)", "fontVariant-H1": "var(--xmlui-fontVariant-H1)", "fontWeight-H1": "var(--xmlui-fontWeight-H1)", "fontStretch-H1": "var(--xmlui-fontStretch-H1)", "textDecorationLine-H1": "var(--xmlui-textDecorationLine-H1)", "textDecorationColor-H1": "var(--xmlui-textDecorationColor-H1)", "textDecorationStyle-H1": "var(--xmlui-textDecorationStyle-H1)", "textDecorationThickness-H1": "var(--xmlui-textDecorationThickness-H1)", "textUnderlineOffset-H1": "var(--xmlui-textUnderlineOffset-H1)", "lineHeight-H1": "var(--xmlui-lineHeight-H1)", "backgroundColor-H1": "var(--xmlui-backgroundColor-H1)", "textTransform-H1": "var(--xmlui-textTransform-H1)", "letterSpacing-H1": "var(--xmlui-letterSpacing-H1)", "wordSpacing-H1": "var(--xmlui-wordSpacing-H1)", "textShadow-H1": "var(--xmlui-textShadow-H1)", "textIndent-H1": "var(--xmlui-textIndent-H1)", "textAlign-H1": "var(--xmlui-textAlign-H1)", "textAlignLast-H1": "var(--xmlui-textAlignLast-H1)", "wordBreak-H1": "var(--xmlui-wordBreak-H1)", "wordWrap-H1": "var(--xmlui-wordWrap-H1)", "direction-H1": "var(--xmlui-direction-H1)", "writingMode-H1": "var(--xmlui-writingMode-H1)", "lineBreak-H1": "var(--xmlui-lineBreak-H1)", "border-H2": "var(--xmlui-border-H2)", "borderHorizontal-H2": "var(--xmlui-borderHorizontal-H2, var(--xmlui-border-H2))", "borderVertical-H2": "var(--xmlui-borderVertical-H2, var(--xmlui-border-H2))", "borderLeft-H2": "var(--xmlui-borderLeft-H2, var(--xmlui-borderHorizontal-H2, var(--xmlui-border-H2)))", "borderRight-H2": "var(--xmlui-borderRight-H2, var(--xmlui-borderHorizontal-H2, var(--xmlui-border-H2)))", "borderTop-H2": "var(--xmlui-borderTop-H2, var(--xmlui-borderVertical-H2, var(--xmlui-border-H2)))", "borderBottom-H2": "var(--xmlui-borderBottom-H2, var(--xmlui-borderVertical-H2, var(--xmlui-border-H2)))", "borderWidth-H2": "var(--xmlui-borderWidth-H2)", "borderHorizontalWidth-H2": "var(--xmlui-borderHorizontalWidth-H2, var(--xmlui-borderWidth-H2))", "borderLeftWidth-H2": "var(--xmlui-borderLeftWidth-H2, var(--xmlui-borderHorizontalWidth-H2, var(--xmlui-borderWidth-H2)))", "borderRightWidth-H2": "var(--xmlui-borderRightWidth-H2, var(--xmlui-borderHorizontalWidth-H2, var(--xmlui-borderWidth-H2)))", "borderVerticalWidth-H2": "var(--xmlui-borderVerticalWidth-H2, var(--xmlui-borderWidth-H2))", "borderTopWidth-H2": "var(--xmlui-borderTopWidth-H2, var(--xmlui-borderVerticalWidth-H2, var(--xmlui-borderWidth-H2)))", "borderBottomWidth-H2": "var(--xmlui-borderBottomWidth-H2, var(--xmlui-borderVerticalWidth-H2, var(--xmlui-borderWidth-H2)))", "borderStyle-H2": "var(--xmlui-borderStyle-H2)", "borderHorizontalStyle-H2": "var(--xmlui-borderHorizontalStyle-H2, var(--xmlui-borderStyle-H2))", "borderLeftStyle-H2": "var(--xmlui-borderLeftStyle-H2, var(--xmlui-borderHorizontalStyle-H2, var(--xmlui-borderStyle-H2)))", "borderRightStyle-H2": "var(--xmlui-borderRightStyle-H2, var(--xmlui-borderHorizontalStyle-H2, var(--xmlui-borderStyle-H2)))", "borderVerticalStyle-H2": "var(--xmlui-borderVerticalStyle-H2, var(--xmlui-borderStyle-H2))", "borderTopStyle-H2": "var(--xmlui-borderTopStyle-H2, var(--xmlui-borderVerticalStyle-H2, var(--xmlui-borderStyle-H2)))", "borderBottomStyle-H2": "var(--xmlui-borderBottomStyle-H2, var(--xmlui-borderVerticalStyle-H2, var(--xmlui-borderStyle-H2)))", "borderColor-H2": "var(--xmlui-borderColor-H2)", "borderHorizontalColor-H2": "var(--xmlui-borderHorizontalColor-H2, var(--xmlui-borderColor-H2))", "borderLeftColor-H2": "var(--xmlui-borderLeftColor-H2, var(--xmlui-borderHorizontalColor-H2, var(--xmlui-borderColor-H2)))", "borderRightColor-H2": "var(--xmlui-borderRightColor-H2, var(--xmlui-borderHorizontalColor-H2, var(--xmlui-borderColor-H2)))", "borderVerticalColor-H2": "var(--xmlui-borderVerticalColor-H2, var(--xmlui-borderColor-H2))", "borderTopColor-H2": "var(--xmlui-borderTopColor-H2, var(--xmlui-borderVerticalColor-H2, var(--xmlui-borderColor-H2)))", "borderBottomColor-H2": "var(--xmlui-borderBottomColor-H2, var(--xmlui-borderVerticalColor-H2, var(--xmlui-borderColor-H2)))", "borderStartStartRadius-H2": "var(--xmlui-borderStartStartRadius-H2, var(--xmlui-borderRadius-H2))", "borderStartEndRadius-H2": "var(--xmlui-borderStartEndRadius-H2, var(--xmlui-borderRadius-H2))", "borderEndStartRadius-H2": "var(--xmlui-borderEndStartRadius-H2, var(--xmlui-borderRadius-H2))", "borderEndEndRadius-H2": "var(--xmlui-borderEndEndRadius-H2, var(--xmlui-borderRadius-H2))", "padding-H2": "var(--xmlui-padding-H2)", "paddingHorizontal-H2": "var(--xmlui-paddingHorizontal-H2, var(--xmlui-padding-H2))", "paddingVertical-H2": "var(--xmlui-paddingVertical-H2, var(--xmlui-padding-H2))", "paddingLeft-H2": "var(--xmlui-paddingLeft-H2, var(--xmlui-paddingHorizontal-H2, var(--xmlui-padding-H2)))", "paddingRight-H2": "var(--xmlui-paddingRight-H2, var(--xmlui-paddingHorizontal-H2, var(--xmlui-padding-H2)))", "paddingTop-H2": "var(--xmlui-paddingTop-H2, var(--xmlui-paddingVertical-H2, var(--xmlui-padding-H2)))", "paddingBottom-H2": "var(--xmlui-paddingBottom-H2, var(--xmlui-paddingVertical-H2, var(--xmlui-padding-H2)))", "textColor-H2": "var(--xmlui-textColor-H2)", "fontFamily-H2": "var(--xmlui-fontFamily-H2)", "fontSize-H2": "var(--xmlui-fontSize-H2)", "fontStyle-H2": "var(--xmlui-fontStyle-H2)", "fontVariant-H2": "var(--xmlui-fontVariant-H2)", "fontWeight-H2": "var(--xmlui-fontWeight-H2)", "fontStretch-H2": "var(--xmlui-fontStretch-H2)", "textDecorationLine-H2": "var(--xmlui-textDecorationLine-H2)", "textDecorationColor-H2": "var(--xmlui-textDecorationColor-H2)", "textDecorationStyle-H2": "var(--xmlui-textDecorationStyle-H2)", "textDecorationThickness-H2": "var(--xmlui-textDecorationThickness-H2)", "textUnderlineOffset-H2": "var(--xmlui-textUnderlineOffset-H2)", "lineHeight-H2": "var(--xmlui-lineHeight-H2)", "backgroundColor-H2": "var(--xmlui-backgroundColor-H2)", "textTransform-H2": "var(--xmlui-textTransform-H2)", "letterSpacing-H2": "var(--xmlui-letterSpacing-H2)", "wordSpacing-H2": "var(--xmlui-wordSpacing-H2)", "textShadow-H2": "var(--xmlui-textShadow-H2)", "textIndent-H2": "var(--xmlui-textIndent-H2)", "textAlign-H2": "var(--xmlui-textAlign-H2)", "textAlignLast-H2": "var(--xmlui-textAlignLast-H2)", "wordBreak-H2": "var(--xmlui-wordBreak-H2)", "wordWrap-H2": "var(--xmlui-wordWrap-H2)", "direction-H2": "var(--xmlui-direction-H2)", "writingMode-H2": "var(--xmlui-writingMode-H2)", "lineBreak-H2": "var(--xmlui-lineBreak-H2)", "border-H3": "var(--xmlui-border-H3)", "borderHorizontal-H3": "var(--xmlui-borderHorizontal-H3, var(--xmlui-border-H3))", "borderVertical-H3": "var(--xmlui-borderVertical-H3, var(--xmlui-border-H3))", "borderLeft-H3": "var(--xmlui-borderLeft-H3, var(--xmlui-borderHorizontal-H3, var(--xmlui-border-H3)))", "borderRight-H3": "var(--xmlui-borderRight-H3, var(--xmlui-borderHorizontal-H3, var(--xmlui-border-H3)))", "borderTop-H3": "var(--xmlui-borderTop-H3, var(--xmlui-borderVertical-H3, var(--xmlui-border-H3)))", "borderBottom-H3": "var(--xmlui-borderBottom-H3, var(--xmlui-borderVertical-H3, var(--xmlui-border-H3)))", "borderWidth-H3": "var(--xmlui-borderWidth-H3)", "borderHorizontalWidth-H3": "var(--xmlui-borderHorizontalWidth-H3, var(--xmlui-borderWidth-H3))", "borderLeftWidth-H3": "var(--xmlui-borderLeftWidth-H3, var(--xmlui-borderHorizontalWidth-H3, var(--xmlui-borderWidth-H3)))", "borderRightWidth-H3": "var(--xmlui-borderRightWidth-H3, var(--xmlui-borderHorizontalWidth-H3, var(--xmlui-borderWidth-H3)))", "borderVerticalWidth-H3": "var(--xmlui-borderVerticalWidth-H3, var(--xmlui-borderWidth-H3))", "borderTopWidth-H3": "var(--xmlui-borderTopWidth-H3, var(--xmlui-borderVerticalWidth-H3, var(--xmlui-borderWidth-H3)))", "borderBottomWidth-H3": "var(--xmlui-borderBottomWidth-H3, var(--xmlui-borderVerticalWidth-H3, var(--xmlui-borderWidth-H3)))", "borderStyle-H3": "var(--xmlui-borderStyle-H3)", "borderHorizontalStyle-H3": "var(--xmlui-borderHorizontalStyle-H3, var(--xmlui-borderStyle-H3))", "borderLeftStyle-H3": "var(--xmlui-borderLeftStyle-H3, var(--xmlui-borderHorizontalStyle-H3, var(--xmlui-borderStyle-H3)))", "borderRightStyle-H3": "var(--xmlui-borderRightStyle-H3, var(--xmlui-borderHorizontalStyle-H3, var(--xmlui-borderStyle-H3)))", "borderVerticalStyle-H3": "var(--xmlui-borderVerticalStyle-H3, var(--xmlui-borderStyle-H3))", "borderTopStyle-H3": "var(--xmlui-borderTopStyle-H3, var(--xmlui-borderVerticalStyle-H3, var(--xmlui-borderStyle-H3)))", "borderBottomStyle-H3": "var(--xmlui-borderBottomStyle-H3, var(--xmlui-borderVerticalStyle-H3, var(--xmlui-borderStyle-H3)))", "borderColor-H3": "var(--xmlui-borderColor-H3)", "borderHorizontalColor-H3": "var(--xmlui-borderHorizontalColor-H3, var(--xmlui-borderColor-H3))", "borderLeftColor-H3": "var(--xmlui-borderLeftColor-H3, var(--xmlui-borderHorizontalColor-H3, var(--xmlui-borderColor-H3)))", "borderRightColor-H3": "var(--xmlui-borderRightColor-H3, var(--xmlui-borderHorizontalColor-H3, var(--xmlui-borderColor-H3)))", "borderVerticalColor-H3": "var(--xmlui-borderVerticalColor-H3, var(--xmlui-borderColor-H3))", "borderTopColor-H3": "var(--xmlui-borderTopColor-H3, var(--xmlui-borderVerticalColor-H3, var(--xmlui-borderColor-H3)))", "borderBottomColor-H3": "var(--xmlui-borderBottomColor-H3, var(--xmlui-borderVerticalColor-H3, var(--xmlui-borderColor-H3)))", "borderStartStartRadius-H3": "var(--xmlui-borderStartStartRadius-H3, var(--xmlui-borderRadius-H3))", "borderStartEndRadius-H3": "var(--xmlui-borderStartEndRadius-H3, var(--xmlui-borderRadius-H3))", "borderEndStartRadius-H3": "var(--xmlui-borderEndStartRadius-H3, var(--xmlui-borderRadius-H3))", "borderEndEndRadius-H3": "var(--xmlui-borderEndEndRadius-H3, var(--xmlui-borderRadius-H3))", "padding-H3": "var(--xmlui-padding-H3)", "paddingHorizontal-H3": "var(--xmlui-paddingHorizontal-H3, var(--xmlui-padding-H3))", "paddingVertical-H3": "var(--xmlui-paddingVertical-H3, var(--xmlui-padding-H3))", "paddingLeft-H3": "var(--xmlui-paddingLeft-H3, var(--xmlui-paddingHorizontal-H3, var(--xmlui-padding-H3)))", "paddingRight-H3": "var(--xmlui-paddingRight-H3, var(--xmlui-paddingHorizontal-H3, var(--xmlui-padding-H3)))", "paddingTop-H3": "var(--xmlui-paddingTop-H3, var(--xmlui-paddingVertical-H3, var(--xmlui-padding-H3)))", "paddingBottom-H3": "var(--xmlui-paddingBottom-H3, var(--xmlui-paddingVertical-H3, var(--xmlui-padding-H3)))", "textColor-H3": "var(--xmlui-textColor-H3)", "fontFamily-H3": "var(--xmlui-fontFamily-H3)", "fontSize-H3": "var(--xmlui-fontSize-H3)", "fontStyle-H3": "var(--xmlui-fontStyle-H3)", "fontVariant-H3": "var(--xmlui-fontVariant-H3)", "fontWeight-H3": "var(--xmlui-fontWeight-H3)", "fontStretch-H3": "var(--xmlui-fontStretch-H3)", "textDecorationLine-H3": "var(--xmlui-textDecorationLine-H3)", "textDecorationColor-H3": "var(--xmlui-textDecorationColor-H3)", "textDecorationStyle-H3": "var(--xmlui-textDecorationStyle-H3)", "textDecorationThickness-H3": "var(--xmlui-textDecorationThickness-H3)", "textUnderlineOffset-H3": "var(--xmlui-textUnderlineOffset-H3)", "lineHeight-H3": "var(--xmlui-lineHeight-H3)", "backgroundColor-H3": "var(--xmlui-backgroundColor-H3)", "textTransform-H3": "var(--xmlui-textTransform-H3)", "letterSpacing-H3": "var(--xmlui-letterSpacing-H3)", "wordSpacing-H3": "var(--xmlui-wordSpacing-H3)", "textShadow-H3": "var(--xmlui-textShadow-H3)", "textIndent-H3": "var(--xmlui-textIndent-H3)", "textAlign-H3": "var(--xmlui-textAlign-H3)", "textAlignLast-H3": "var(--xmlui-textAlignLast-H3)", "wordBreak-H3": "var(--xmlui-wordBreak-H3)", "wordWrap-H3": "var(--xmlui-wordWrap-H3)", "direction-H3": "var(--xmlui-direction-H3)", "writingMode-H3": "var(--xmlui-writingMode-H3)", "lineBreak-H3": "var(--xmlui-lineBreak-H3)", "border-H4": "var(--xmlui-border-H4)", "borderHorizontal-H4": "var(--xmlui-borderHorizontal-H4, var(--xmlui-border-H4))", "borderVertical-H4": "var(--xmlui-borderVertical-H4, var(--xmlui-border-H4))", "borderLeft-H4": "var(--xmlui-borderLeft-H4, var(--xmlui-borderHorizontal-H4, var(--xmlui-border-H4)))", "borderRight-H4": "var(--xmlui-borderRight-H4, var(--xmlui-borderHorizontal-H4, var(--xmlui-border-H4)))", "borderTop-H4": "var(--xmlui-borderTop-H4, var(--xmlui-borderVertical-H4, var(--xmlui-border-H4)))", "borderBottom-H4": "var(--xmlui-borderBottom-H4, var(--xmlui-borderVertical-H4, var(--xmlui-border-H4)))", "borderWidth-H4": "var(--xmlui-borderWidth-H4)", "borderHorizontalWidth-H4": "var(--xmlui-borderHorizontalWidth-H4, var(--xmlui-borderWidth-H4))", "borderLeftWidth-H4": "var(--xmlui-borderLeftWidth-H4, var(--xmlui-borderHorizontalWidth-H4, var(--xmlui-borderWidth-H4)))", "borderRightWidth-H4": "var(--xmlui-borderRightWidth-H4, var(--xmlui-borderHorizontalWidth-H4, var(--xmlui-borderWidth-H4)))", "borderVerticalWidth-H4": "var(--xmlui-borderVerticalWidth-H4, var(--xmlui-borderWidth-H4))", "borderTopWidth-H4": "var(--xmlui-borderTopWidth-H4, var(--xmlui-borderVerticalWidth-H4, var(--xmlui-borderWidth-H4)))", "borderBottomWidth-H4": "var(--xmlui-borderBottomWidth-H4, var(--xmlui-borderVerticalWidth-H4, var(--xmlui-borderWidth-H4)))", "borderStyle-H4": "var(--xmlui-borderStyle-H4)", "borderHorizontalStyle-H4": "var(--xmlui-borderHorizontalStyle-H4, var(--xmlui-borderStyle-H4))", "borderLeftStyle-H4": "var(--xmlui-borderLeftStyle-H4, var(--xmlui-borderHorizontalStyle-H4, var(--xmlui-borderStyle-H4)))", "borderRightStyle-H4": "var(--xmlui-borderRightStyle-H4, var(--xmlui-borderHorizontalStyle-H4, var(--xmlui-borderStyle-H4)))", "borderVerticalStyle-H4": "var(--xmlui-borderVerticalStyle-H4, var(--xmlui-borderStyle-H4))", "borderTopStyle-H4": "var(--xmlui-borderTopStyle-H4, var(--xmlui-borderVerticalStyle-H4, var(--xmlui-borderStyle-H4)))", "borderBottomStyle-H4": "var(--xmlui-borderBottomStyle-H4, var(--xmlui-borderVerticalStyle-H4, var(--xmlui-borderStyle-H4)))", "borderColor-H4": "var(--xmlui-borderColor-H4)", "borderHorizontalColor-H4": "var(--xmlui-borderHorizontalColor-H4, var(--xmlui-borderColor-H4))", "borderLeftColor-H4": "var(--xmlui-borderLeftColor-H4, var(--xmlui-borderHorizontalColor-H4, var(--xmlui-borderColor-H4)))", "borderRightColor-H4": "var(--xmlui-borderRightColor-H4, var(--xmlui-borderHorizontalColor-H4, var(--xmlui-borderColor-H4)))", "borderVerticalColor-H4": "var(--xmlui-borderVerticalColor-H4, var(--xmlui-borderColor-H4))", "borderTopColor-H4": "var(--xmlui-borderTopColor-H4, var(--xmlui-borderVerticalColor-H4, var(--xmlui-borderColor-H4)))", "borderBottomColor-H4": "var(--xmlui-borderBottomColor-H4, var(--xmlui-borderVerticalColor-H4, var(--xmlui-borderColor-H4)))", "borderStartStartRadius-H4": "var(--xmlui-borderStartStartRadius-H4, var(--xmlui-borderRadius-H4))", "borderStartEndRadius-H4": "var(--xmlui-borderStartEndRadius-H4, var(--xmlui-borderRadius-H4))", "borderEndStartRadius-H4": "var(--xmlui-borderEndStartRadius-H4, var(--xmlui-borderRadius-H4))", "borderEndEndRadius-H4": "var(--xmlui-borderEndEndRadius-H4, var(--xmlui-borderRadius-H4))", "padding-H4": "var(--xmlui-padding-H4)", "paddingHorizontal-H4": "var(--xmlui-paddingHorizontal-H4, var(--xmlui-padding-H4))", "paddingVertical-H4": "var(--xmlui-paddingVertical-H4, var(--xmlui-padding-H4))", "paddingLeft-H4": "var(--xmlui-paddingLeft-H4, var(--xmlui-paddingHorizontal-H4, var(--xmlui-padding-H4)))", "paddingRight-H4": "var(--xmlui-paddingRight-H4, var(--xmlui-paddingHorizontal-H4, var(--xmlui-padding-H4)))", "paddingTop-H4": "var(--xmlui-paddingTop-H4, var(--xmlui-paddingVertical-H4, var(--xmlui-padding-H4)))", "paddingBottom-H4": "var(--xmlui-paddingBottom-H4, var(--xmlui-paddingVertical-H4, var(--xmlui-padding-H4)))", "textColor-H4": "var(--xmlui-textColor-H4)", "fontFamily-H4": "var(--xmlui-fontFamily-H4)", "fontSize-H4": "var(--xmlui-fontSize-H4)", "fontStyle-H4": "var(--xmlui-fontStyle-H4)", "fontVariant-H4": "var(--xmlui-fontVariant-H4)", "fontWeight-H4": "var(--xmlui-fontWeight-H4)", "fontStretch-H4": "var(--xmlui-fontStretch-H4)", "textDecorationLine-H4": "var(--xmlui-textDecorationLine-H4)", "textDecorationColor-H4": "var(--xmlui-textDecorationColor-H4)", "textDecorationStyle-H4": "var(--xmlui-textDecorationStyle-H4)", "textDecorationThickness-H4": "var(--xmlui-textDecorationThickness-H4)", "textUnderlineOffset-H4": "var(--xmlui-textUnderlineOffset-H4)", "lineHeight-H4": "var(--xmlui-lineHeight-H4)", "backgroundColor-H4": "var(--xmlui-backgroundColor-H4)", "textTransform-H4": "var(--xmlui-textTransform-H4)", "letterSpacing-H4": "var(--xmlui-letterSpacing-H4)", "wordSpacing-H4": "var(--xmlui-wordSpacing-H4)", "textShadow-H4": "var(--xmlui-textShadow-H4)", "textIndent-H4": "var(--xmlui-textIndent-H4)", "textAlign-H4": "var(--xmlui-textAlign-H4)", "textAlignLast-H4": "var(--xmlui-textAlignLast-H4)", "wordBreak-H4": "var(--xmlui-wordBreak-H4)", "wordWrap-H4": "var(--xmlui-wordWrap-H4)", "direction-H4": "var(--xmlui-direction-H4)", "writingMode-H4": "var(--xmlui-writingMode-H4)", "lineBreak-H4": "var(--xmlui-lineBreak-H4)", "border-H5": "var(--xmlui-border-H5)", "borderHorizontal-H5": "var(--xmlui-borderHorizontal-H5, var(--xmlui-border-H5))", "borderVertical-H5": "var(--xmlui-borderVertical-H5, var(--xmlui-border-H5))", "borderLeft-H5": "var(--xmlui-borderLeft-H5, var(--xmlui-borderHorizontal-H5, var(--xmlui-border-H5)))", "borderRight-H5": "var(--xmlui-borderRight-H5, var(--xmlui-borderHorizontal-H5, var(--xmlui-border-H5)))", "borderTop-H5": "var(--xmlui-borderTop-H5, var(--xmlui-borderVertical-H5, var(--xmlui-border-H5)))", "borderBottom-H5": "var(--xmlui-borderBottom-H5, var(--xmlui-borderVertical-H5, var(--xmlui-border-H5)))", "borderWidth-H5": "var(--xmlui-borderWidth-H5)", "borderHorizontalWidth-H5": "var(--xmlui-borderHorizontalWidth-H5, var(--xmlui-borderWidth-H5))", "borderLeftWidth-H5": "var(--xmlui-borderLeftWidth-H5, var(--xmlui-borderHorizontalWidth-H5, var(--xmlui-borderWidth-H5)))", "borderRightWidth-H5": "var(--xmlui-borderRightWidth-H5, var(--xmlui-borderHorizontalWidth-H5, var(--xmlui-borderWidth-H5)))", "borderVerticalWidth-H5": "var(--xmlui-borderVerticalWidth-H5, var(--xmlui-borderWidth-H5))", "borderTopWidth-H5": "var(--xmlui-borderTopWidth-H5, var(--xmlui-borderVerticalWidth-H5, var(--xmlui-borderWidth-H5)))", "borderBottomWidth-H5": "var(--xmlui-borderBottomWidth-H5, var(--xmlui-borderVerticalWidth-H5, var(--xmlui-borderWidth-H5)))", "borderStyle-H5": "var(--xmlui-borderStyle-H5)", "borderHorizontalStyle-H5": "var(--xmlui-borderHorizontalStyle-H5, var(--xmlui-borderStyle-H5))", "borderLeftStyle-H5": "var(--xmlui-borderLeftStyle-H5, var(--xmlui-borderHorizontalStyle-H5, var(--xmlui-borderStyle-H5)))", "borderRightStyle-H5": "var(--xmlui-borderRightStyle-H5, var(--xmlui-borderHorizontalStyle-H5, var(--xmlui-borderStyle-H5)))", "borderVerticalStyle-H5": "var(--xmlui-borderVerticalStyle-H5, var(--xmlui-borderStyle-H5))", "borderTopStyle-H5": "var(--xmlui-borderTopStyle-H5, var(--xmlui-borderVerticalStyle-H5, var(--xmlui-borderStyle-H5)))", "borderBottomStyle-H5": "var(--xmlui-borderBottomStyle-H5, var(--xmlui-borderVerticalStyle-H5, var(--xmlui-borderStyle-H5)))", "borderColor-H5": "var(--xmlui-borderColor-H5)", "borderHorizontalColor-H5": "var(--xmlui-borderHorizontalColor-H5, var(--xmlui-borderColor-H5))", "borderLeftColor-H5": "var(--xmlui-borderLeftColor-H5, var(--xmlui-borderHorizontalColor-H5, var(--xmlui-borderColor-H5)))", "borderRightColor-H5": "var(--xmlui-borderRightColor-H5, var(--xmlui-borderHorizontalColor-H5, var(--xmlui-borderColor-H5)))", "borderVerticalColor-H5": "var(--xmlui-borderVerticalColor-H5, var(--xmlui-borderColor-H5))", "borderTopColor-H5": "var(--xmlui-borderTopColor-H5, var(--xmlui-borderVerticalColor-H5, var(--xmlui-borderColor-H5)))", "borderBottomColor-H5": "var(--xmlui-borderBottomColor-H5, var(--xmlui-borderVerticalColor-H5, var(--xmlui-borderColor-H5)))", "borderStartStartRadius-H5": "var(--xmlui-borderStartStartRadius-H5, var(--xmlui-borderRadius-H5))", "borderStartEndRadius-H5": "var(--xmlui-borderStartEndRadius-H5, var(--xmlui-borderRadius-H5))", "borderEndStartRadius-H5": "var(--xmlui-borderEndStartRadius-H5, var(--xmlui-borderRadius-H5))", "borderEndEndRadius-H5": "var(--xmlui-borderEndEndRadius-H5, var(--xmlui-borderRadius-H5))", "padding-H5": "var(--xmlui-padding-H5)", "paddingHorizontal-H5": "var(--xmlui-paddingHorizontal-H5, var(--xmlui-padding-H5))", "paddingVertical-H5": "var(--xmlui-paddingVertical-H5, var(--xmlui-padding-H5))", "paddingLeft-H5": "var(--xmlui-paddingLeft-H5, var(--xmlui-paddingHorizontal-H5, var(--xmlui-padding-H5)))", "paddingRight-H5": "var(--xmlui-paddingRight-H5, var(--xmlui-paddingHorizontal-H5, var(--xmlui-padding-H5)))", "paddingTop-H5": "var(--xmlui-paddingTop-H5, var(--xmlui-paddingVertical-H5, var(--xmlui-padding-H5)))", "paddingBottom-H5": "var(--xmlui-paddingBottom-H5, var(--xmlui-paddingVertical-H5, var(--xmlui-padding-H5)))", "textColor-H5": "var(--xmlui-textColor-H5)", "fontFamily-H5": "var(--xmlui-fontFamily-H5)", "fontSize-H5": "var(--xmlui-fontSize-H5)", "fontStyle-H5": "var(--xmlui-fontStyle-H5)", "fontVariant-H5": "var(--xmlui-fontVariant-H5)", "fontWeight-H5": "var(--xmlui-fontWeight-H5)", "fontStretch-H5": "var(--xmlui-fontStretch-H5)", "textDecorationLine-H5": "var(--xmlui-textDecorationLine-H5)", "textDecorationColor-H5": "var(--xmlui-textDecorationColor-H5)", "textDecorationStyle-H5": "var(--xmlui-textDecorationStyle-H5)", "textDecorationThickness-H5": "var(--xmlui-textDecorationThickness-H5)", "textUnderlineOffset-H5": "var(--xmlui-textUnderlineOffset-H5)", "lineHeight-H5": "var(--xmlui-lineHeight-H5)", "backgroundColor-H5": "var(--xmlui-backgroundColor-H5)", "textTransform-H5": "var(--xmlui-textTransform-H5)", "letterSpacing-H5": "var(--xmlui-letterSpacing-H5)", "wordSpacing-H5": "var(--xmlui-wordSpacing-H5)", "textShadow-H5": "var(--xmlui-textShadow-H5)", "textIndent-H5": "var(--xmlui-textIndent-H5)", "textAlign-H5": "var(--xmlui-textAlign-H5)", "textAlignLast-H5": "var(--xmlui-textAlignLast-H5)", "wordBreak-H5": "var(--xmlui-wordBreak-H5)", "wordWrap-H5": "var(--xmlui-wordWrap-H5)", "direction-H5": "var(--xmlui-direction-H5)", "writingMode-H5": "var(--xmlui-writingMode-H5)", "lineBreak-H5": "var(--xmlui-lineBreak-H5)", "border-H6": "var(--xmlui-border-H6)", "borderHorizontal-H6": "var(--xmlui-borderHorizontal-H6, var(--xmlui-border-H6))", "borderVertical-H6": "var(--xmlui-borderVertical-H6, var(--xmlui-border-H6))", "borderLeft-H6": "var(--xmlui-borderLeft-H6, var(--xmlui-borderHorizontal-H6, var(--xmlui-border-H6)))", "borderRight-H6": "var(--xmlui-borderRight-H6, var(--xmlui-borderHorizontal-H6, var(--xmlui-border-H6)))", "borderTop-H6": "var(--xmlui-borderTop-H6, var(--xmlui-borderVertical-H6, var(--xmlui-border-H6)))", "borderBottom-H6": "var(--xmlui-borderBottom-H6, var(--xmlui-borderVertical-H6, var(--xmlui-border-H6)))", "borderWidth-H6": "var(--xmlui-borderWidth-H6)", "borderHorizontalWidth-H6": "var(--xmlui-borderHorizontalWidth-H6, var(--xmlui-borderWidth-H6))", "borderLeftWidth-H6": "var(--xmlui-borderLeftWidth-H6, var(--xmlui-borderHorizontalWidth-H6, var(--xmlui-borderWidth-H6)))", "borderRightWidth-H6": "var(--xmlui-borderRightWidth-H6, var(--xmlui-borderHorizontalWidth-H6, var(--xmlui-borderWidth-H6)))", "borderVerticalWidth-H6": "var(--xmlui-borderVerticalWidth-H6, var(--xmlui-borderWidth-H6))", "borderTopWidth-H6": "var(--xmlui-borderTopWidth-H6, var(--xmlui-borderVerticalWidth-H6, var(--xmlui-borderWidth-H6)))", "borderBottomWidth-H6": "var(--xmlui-borderBottomWidth-H6, var(--xmlui-borderVerticalWidth-H6, var(--xmlui-borderWidth-H6)))", "borderStyle-H6": "var(--xmlui-borderStyle-H6)", "borderHorizontalStyle-H6": "var(--xmlui-borderHorizontalStyle-H6, var(--xmlui-borderStyle-H6))", "borderLeftStyle-H6": "var(--xmlui-borderLeftStyle-H6, var(--xmlui-borderHorizontalStyle-H6, var(--xmlui-borderStyle-H6)))", "borderRightStyle-H6": "var(--xmlui-borderRightStyle-H6, var(--xmlui-borderHorizontalStyle-H6, var(--xmlui-borderStyle-H6)))", "borderVerticalStyle-H6": "var(--xmlui-borderVerticalStyle-H6, var(--xmlui-borderStyle-H6))", "borderTopStyle-H6": "var(--xmlui-borderTopStyle-H6, var(--xmlui-borderVerticalStyle-H6, var(--xmlui-borderStyle-H6)))", "borderBottomStyle-H6": "var(--xmlui-borderBottomStyle-H6, var(--xmlui-borderVerticalStyle-H6, var(--xmlui-borderStyle-H6)))", "borderColor-H6": "var(--xmlui-borderColor-H6)", "borderHorizontalColor-H6": "var(--xmlui-borderHorizontalColor-H6, var(--xmlui-borderColor-H6))", "borderLeftColor-H6": "var(--xmlui-borderLeftColor-H6, var(--xmlui-borderHorizontalColor-H6, var(--xmlui-borderColor-H6)))", "borderRightColor-H6": "var(--xmlui-borderRightColor-H6, var(--xmlui-borderHorizontalColor-H6, var(--xmlui-borderColor-H6)))", "borderVerticalColor-H6": "var(--xmlui-borderVerticalColor-H6, var(--xmlui-borderColor-H6))", "borderTopColor-H6": "var(--xmlui-borderTopColor-H6, var(--xmlui-borderVerticalColor-H6, var(--xmlui-borderColor-H6)))", "borderBottomColor-H6": "var(--xmlui-borderBottomColor-H6, var(--xmlui-borderVerticalColor-H6, var(--xmlui-borderColor-H6)))", "borderStartStartRadius-H6": "var(--xmlui-borderStartStartRadius-H6, var(--xmlui-borderRadius-H6))", "borderStartEndRadius-H6": "var(--xmlui-borderStartEndRadius-H6, var(--xmlui-borderRadius-H6))", "borderEndStartRadius-H6": "var(--xmlui-borderEndStartRadius-H6, var(--xmlui-borderRadius-H6))", "borderEndEndRadius-H6": "var(--xmlui-borderEndEndRadius-H6, var(--xmlui-borderRadius-H6))", "padding-H6": "var(--xmlui-padding-H6)", "paddingHorizontal-H6": "var(--xmlui-paddingHorizontal-H6, var(--xmlui-padding-H6))", "paddingVertical-H6": "var(--xmlui-paddingVertical-H6, var(--xmlui-padding-H6))", "paddingLeft-H6": "var(--xmlui-paddingLeft-H6, var(--xmlui-paddingHorizontal-H6, var(--xmlui-padding-H6)))", "paddingRight-H6": "var(--xmlui-paddingRight-H6, var(--xmlui-paddingHorizontal-H6, var(--xmlui-padding-H6)))", "paddingTop-H6": "var(--xmlui-paddingTop-H6, var(--xmlui-paddingVertical-H6, var(--xmlui-padding-H6)))", "paddingBottom-H6": "var(--xmlui-paddingBottom-H6, var(--xmlui-paddingVertical-H6, var(--xmlui-padding-H6)))", "textColor-H6": "var(--xmlui-textColor-H6)", "fontFamily-H6": "var(--xmlui-fontFamily-H6)", "fontSize-H6": "var(--xmlui-fontSize-H6)", "fontStyle-H6": "var(--xmlui-fontStyle-H6)", "fontVariant-H6": "var(--xmlui-fontVariant-H6)", "fontWeight-H6": "var(--xmlui-fontWeight-H6)", "fontStretch-H6": "var(--xmlui-fontStretch-H6)", "textDecorationLine-H6": "var(--xmlui-textDecorationLine-H6)", "textDecorationColor-H6": "var(--xmlui-textDecorationColor-H6)", "textDecorationStyle-H6": "var(--xmlui-textDecorationStyle-H6)", "textDecorationThickness-H6": "var(--xmlui-textDecorationThickness-H6)", "textUnderlineOffset-H6": "var(--xmlui-textUnderlineOffset-H6)", "lineHeight-H6": "var(--xmlui-lineHeight-H6)", "backgroundColor-H6": "var(--xmlui-backgroundColor-H6)", "textTransform-H6": "var(--xmlui-textTransform-H6)", "letterSpacing-H6": "var(--xmlui-letterSpacing-H6)", "wordSpacing-H6": "var(--xmlui-wordSpacing-H6)", "textShadow-H6": "var(--xmlui-textShadow-H6)", "textIndent-H6": "var(--xmlui-textIndent-H6)", "textAlign-H6": "var(--xmlui-textAlign-H6)", "textAlignLast-H6": "var(--xmlui-textAlignLast-H6)", "wordBreak-H6": "var(--xmlui-wordBreak-H6)", "wordWrap-H6": "var(--xmlui-wordWrap-H6)", "direction-H6": "var(--xmlui-direction-H6)", "writingMode-H6": "var(--xmlui-writingMode-H6)", "lineBreak-H6": "var(--xmlui-lineBreak-H6)", "color-anchor-Heading": "var(--xmlui-color-anchor-Heading)", "gap-anchor-Heading": "var(--xmlui-gap-anchor-Heading)", "textDecorationLine-anchor-Heading": "var(--xmlui-textDecorationLine-anchor-Heading)", "Heading:textColor-H1": "var(--xmlui-textColor-H1)", "Heading:letterSpacing-H1": "var(--xmlui-letterSpacing-H1)", "Heading:fontFamily-H1": "var(--xmlui-fontFamily-H1)", "Heading:fontWeight-H1": "var(--xmlui-fontWeight-H1)", "marginTop-H1": "var(--xmlui-marginTop-H1)", "marginBottom-H1": "var(--xmlui-marginBottom-H1)", "Heading:textDecorationLine-H1": "var(--xmlui-textDecorationLine-H1)", "Heading:textDecorationColor-H1": "var(--xmlui-textDecorationColor-H1)", "Heading:textDecorationStyle-H1": "var(--xmlui-textDecorationStyle-H1)", "Heading:textDecorationThickness-H1": "var(--xmlui-textDecorationThickness-H1)", "Heading:textUnderlineOffset-H1": "var(--xmlui-textUnderlineOffset-H1)", "Heading:textColor-H2": "var(--xmlui-textColor-H2)", "Heading:letterSpacing-H2": "var(--xmlui-letterSpacing-H2)", "Heading:fontFamily-H2": "var(--xmlui-fontFamily-H2)", "Heading:fontWeight-H2": "var(--xmlui-fontWeight-H2)", "marginTop-H2": "var(--xmlui-marginTop-H2)", "marginBottom-H2": "var(--xmlui-marginBottom-H2)", "Heading:textDecorationLine-H2": "var(--xmlui-textDecorationLine-H2)", "Heading:textDecorationColor-H2": "var(--xmlui-textDecorationColor-H2)", "Heading:textDecorationStyle-H2": "var(--xmlui-textDecorationStyle-H2)", "Heading:textDecorationThickness-H2": "var(--xmlui-textDecorationThickness-H2)", "Heading:textUnderlineOffset-H2": "var(--xmlui-textUnderlineOffset-H2)", "Heading:textColor-H3": "var(--xmlui-textColor-H3)", "Heading:letterSpacing-H3": "var(--xmlui-letterSpacing-H3)", "Heading:fontFamily-H3": "var(--xmlui-fontFamily-H3)", "Heading:fontWeight-H3": "var(--xmlui-fontWeight-H3)", "marginTop-H3": "var(--xmlui-marginTop-H3)", "marginBottom-H3": "var(--xmlui-marginBottom-H3)", "Heading:textDecorationLine-H3": "var(--xmlui-textDecorationLine-H3)", "Heading:textDecorationColor-H3": "var(--xmlui-textDecorationColor-H3)", "Heading:textDecorationStyle-H3": "var(--xmlui-textDecorationStyle-H3)", "Heading:textDecorationThickness-H3": "var(--xmlui-textDecorationThickness-H3)", "Heading:textUnderlineOffset-H3": "var(--xmlui-textUnderlineOffset-H3)", "Heading:textColor-H4": "var(--xmlui-textColor-H4)", "Heading:letterSpacing-H4": "var(--xmlui-letterSpacing-H4)", "Heading:fontFamily-H4": "var(--xmlui-fontFamily-H4)", "Heading:fontWeight-H4": "var(--xmlui-fontWeight-H4)", "marginTop-H4": "var(--xmlui-marginTop-H4)", "marginBottom-H4": "var(--xmlui-marginBottom-H4)", "Heading:textDecorationLine-H4": "var(--xmlui-textDecorationLine-H4)", "Heading:textDecorationColor-H4": "var(--xmlui-textDecorationColor-H4)", "Heading:textDecorationStyle-H4": "var(--xmlui-textDecorationStyle-H4)", "Heading:textDecorationThickness-H4": "var(--xmlui-textDecorationThickness-H4)", "Heading:textUnderlineOffset-H4": "var(--xmlui-textUnderlineOffset-H4)", "Heading:textColor-H5": "var(--xmlui-textColor-H5)", "Heading:letterSpacing-H5": "var(--xmlui-letterSpacing-H5)", "Heading:fontFamily-H5": "var(--xmlui-fontFamily-H5)", "Heading:fontWeight-H5": "var(--xmlui-fontWeight-H5)", "marginTop-H5": "var(--xmlui-marginTop-H5)", "marginBottom-H5": "var(--xmlui-marginBottom-H5)", "Heading:textDecorationLine-H5": "var(--xmlui-textDecorationLine-H5)", "Heading:textDecorationColor-H5": "var(--xmlui-textDecorationColor-H5)", "Heading:textDecorationStyle-H5": "var(--xmlui-textDecorationStyle-H5)", "Heading:textDecorationThickness-H5": "var(--xmlui-textDecorationThickness-H5)", "Heading:textUnderlineOffset-H5": "var(--xmlui-textUnderlineOffset-H5)", "Heading:textColor-H6": "var(--xmlui-textColor-H6)", "Heading:letterSpacing-H6": "var(--xmlui-letterSpacing-H6)", "Heading:fontFamily-H6": "var(--xmlui-fontFamily-H6)", "Heading:fontWeight-H6": "var(--xmlui-fontWeight-H6)", "marginTop-H6": "var(--xmlui-marginTop-H6)", "marginBottom-H6": "var(--xmlui-marginBottom-H6)", "Heading:textDecorationLine-H6": "var(--xmlui-textDecorationLine-H6)", "Heading:textDecorationColor-H6": "var(--xmlui-textDecorationColor-H6)", "Heading:textDecorationStyle-H6": "var(--xmlui-textDecorationStyle-H6)", "Heading:textDecorationThickness-H6": "var(--xmlui-textDecorationThickness-H6)", "Heading:textUnderlineOffset-H6": "var(--xmlui-textUnderlineOffset-H6)", "Heading:backgroundColor-H1": "var(--xmlui-backgroundColor-H1)", "Heading:backgroundColor-H2": "var(--xmlui-backgroundColor-H2)", "Heading:backgroundColor-H3": "var(--xmlui-backgroundColor-H3)", "Heading:backgroundColor-H4": "var(--xmlui-backgroundColor-H4)", "Heading:backgroundColor-H5": "var(--xmlui-backgroundColor-H5)", "Heading:backgroundColor-H6": "var(--xmlui-backgroundColor-H6)"}'`;
|
|
7585
|
-
const heading$1 = "
|
|
7586
|
-
const h1 = "
|
|
7587
|
-
const h2 = "
|
|
7588
|
-
const h3 = "
|
|
7589
|
-
const h4 = "
|
|
7590
|
-
const h5 = "
|
|
7591
|
-
const h6 = "
|
|
7592
|
-
const
|
|
7593
|
-
const
|
|
7594
|
-
const
|
|
7595
|
-
const
|
|
7684
|
+
const heading$1 = "_heading_ytzle_14";
|
|
7685
|
+
const h1 = "_h1_ytzle_14";
|
|
7686
|
+
const h2 = "_h2_ytzle_78";
|
|
7687
|
+
const h3 = "_h3_ytzle_142";
|
|
7688
|
+
const h4 = "_h4_ytzle_206";
|
|
7689
|
+
const h5 = "_h5_ytzle_270";
|
|
7690
|
+
const h6 = "_h6_ytzle_334";
|
|
7691
|
+
const customAnchor = "_customAnchor_ytzle_408";
|
|
7692
|
+
const anchorRef$1 = "_anchorRef_ytzle_420";
|
|
7693
|
+
const truncateOverflow$2 = "_truncateOverflow_ytzle_430";
|
|
7694
|
+
const preserveLinebreaks$2 = "_preserveLinebreaks_ytzle_435";
|
|
7695
|
+
const noEllipsis$2 = "_noEllipsis_ytzle_438";
|
|
7596
7696
|
const styles$17 = {
|
|
7597
7697
|
themeVars: themeVars$R,
|
|
7598
7698
|
heading: heading$1,
|
|
@@ -7602,6 +7702,7 @@ const styles$17 = {
|
|
|
7602
7702
|
h4,
|
|
7603
7703
|
h5,
|
|
7604
7704
|
h6,
|
|
7705
|
+
customAnchor,
|
|
7605
7706
|
anchorRef: anchorRef$1,
|
|
7606
7707
|
truncateOverflow: truncateOverflow$2,
|
|
7607
7708
|
preserveLinebreaks: preserveLinebreaks$2,
|
|
@@ -7775,6 +7876,7 @@ const Heading = forwardRef(function Heading2({
|
|
|
7775
7876
|
classes,
|
|
7776
7877
|
omitFromToc = defaultProps$17.omitFromToc,
|
|
7777
7878
|
showAnchor,
|
|
7879
|
+
anchorRenderer,
|
|
7778
7880
|
registerComponentApi,
|
|
7779
7881
|
...furtherProps
|
|
7780
7882
|
}, forwardedRef) {
|
|
@@ -7848,7 +7950,7 @@ const Heading = forwardRef(function Heading2({
|
|
|
7848
7950
|
children: [
|
|
7849
7951
|
anchorId && /* @__PURE__ */ jsx("span", { ref: anchorRef2, id: anchorId, className: styles$17.anchorRef, "data-anchor": true }),
|
|
7850
7952
|
children,
|
|
7851
|
-
showAnchor && anchorId && /* @__PURE__ */ jsx(
|
|
7953
|
+
showAnchor && anchorId && (anchorRenderer ? /* @__PURE__ */ jsx("span", { className: styles$17.customAnchor, children: anchorRenderer(anchorId, `#${anchorId}`) }) : /* @__PURE__ */ jsx(
|
|
7852
7954
|
"a",
|
|
7853
7955
|
{
|
|
7854
7956
|
href: `#${anchorId}`,
|
|
@@ -7863,7 +7965,7 @@ const Heading = forwardRef(function Heading2({
|
|
|
7863
7965
|
},
|
|
7864
7966
|
children: "#"
|
|
7865
7967
|
}
|
|
7866
|
-
)
|
|
7968
|
+
))
|
|
7867
7969
|
]
|
|
7868
7970
|
}
|
|
7869
7971
|
);
|
|
@@ -7918,6 +8020,9 @@ const SHOW_ANCHOR_DESC = {
|
|
|
7918
8020
|
type: "boolean",
|
|
7919
8021
|
defaultValue: defaultProps$17.showAnchor
|
|
7920
8022
|
};
|
|
8023
|
+
const ANCHOR_TEMPLATE_DESC = dComponent(
|
|
8024
|
+
"An optional template to customize the anchor link rendered next to the heading when `showAnchor` is enabled. The template receives `$anchorId` (the computed anchor ID) and `$anchorHref` (the anchor href string, e.g. `#my-heading`) as context variables."
|
|
8025
|
+
);
|
|
7921
8026
|
const APIS_DESC = {
|
|
7922
8027
|
scrollIntoView: {
|
|
7923
8028
|
signature: "scrollIntoView()",
|
|
@@ -7961,7 +8066,8 @@ const HeadingMd = createMetadata({
|
|
|
7961
8066
|
ellipses: ELLIPSES_DESC,
|
|
7962
8067
|
preserveLinebreaks: PRESERVE_DESC,
|
|
7963
8068
|
omitFromToc: OMIT_FROM_TOC_DESC,
|
|
7964
|
-
showAnchor: SHOW_ANCHOR_DESC
|
|
8069
|
+
showAnchor: SHOW_ANCHOR_DESC,
|
|
8070
|
+
anchorTemplate: ANCHOR_TEMPLATE_DESC
|
|
7965
8071
|
},
|
|
7966
8072
|
apis: APIS_DESC,
|
|
7967
8073
|
themeVars: parseScssVar(styles$17.themeVars),
|
|
@@ -7999,7 +8105,8 @@ const H1Md = createMetadata({
|
|
|
7999
8105
|
ellipses: ELLIPSES_DESC,
|
|
8000
8106
|
preserveLinebreaks: PRESERVE_DESC,
|
|
8001
8107
|
omitFromToc: OMIT_FROM_TOC_DESC,
|
|
8002
|
-
showAnchor: SHOW_ANCHOR_DESC
|
|
8108
|
+
showAnchor: SHOW_ANCHOR_DESC,
|
|
8109
|
+
anchorTemplate: ANCHOR_TEMPLATE_DESC
|
|
8003
8110
|
},
|
|
8004
8111
|
apis: APIS_DESC,
|
|
8005
8112
|
themeVars: parseScssVar(styles$17.themeVars),
|
|
@@ -8030,7 +8137,8 @@ const H2Md = createMetadata({
|
|
|
8030
8137
|
ellipses: ELLIPSES_DESC,
|
|
8031
8138
|
preserveLinebreaks: PRESERVE_DESC,
|
|
8032
8139
|
omitFromToc: OMIT_FROM_TOC_DESC,
|
|
8033
|
-
showAnchor: SHOW_ANCHOR_DESC
|
|
8140
|
+
showAnchor: SHOW_ANCHOR_DESC,
|
|
8141
|
+
anchorTemplate: ANCHOR_TEMPLATE_DESC
|
|
8034
8142
|
},
|
|
8035
8143
|
apis: APIS_DESC,
|
|
8036
8144
|
themeVars: parseScssVar(styles$17.themeVars),
|
|
@@ -8061,7 +8169,8 @@ const H3Md = createMetadata({
|
|
|
8061
8169
|
ellipses: ELLIPSES_DESC,
|
|
8062
8170
|
preserveLinebreaks: PRESERVE_DESC,
|
|
8063
8171
|
omitFromToc: OMIT_FROM_TOC_DESC,
|
|
8064
|
-
showAnchor: SHOW_ANCHOR_DESC
|
|
8172
|
+
showAnchor: SHOW_ANCHOR_DESC,
|
|
8173
|
+
anchorTemplate: ANCHOR_TEMPLATE_DESC
|
|
8065
8174
|
},
|
|
8066
8175
|
apis: APIS_DESC,
|
|
8067
8176
|
themeVars: parseScssVar(styles$17.themeVars),
|
|
@@ -8092,7 +8201,8 @@ const H4Md = createMetadata({
|
|
|
8092
8201
|
omitFromToc: OMIT_FROM_TOC_DESC,
|
|
8093
8202
|
ellipses: ELLIPSES_DESC,
|
|
8094
8203
|
preserveLinebreaks: PRESERVE_DESC,
|
|
8095
|
-
showAnchor: SHOW_ANCHOR_DESC
|
|
8204
|
+
showAnchor: SHOW_ANCHOR_DESC,
|
|
8205
|
+
anchorTemplate: ANCHOR_TEMPLATE_DESC
|
|
8096
8206
|
},
|
|
8097
8207
|
apis: APIS_DESC,
|
|
8098
8208
|
themeVars: parseScssVar(styles$17.themeVars),
|
|
@@ -8123,7 +8233,8 @@ const H5Md = createMetadata({
|
|
|
8123
8233
|
omitFromToc: OMIT_FROM_TOC_DESC,
|
|
8124
8234
|
ellipses: ELLIPSES_DESC,
|
|
8125
8235
|
preserveLinebreaks: PRESERVE_DESC,
|
|
8126
|
-
showAnchor: SHOW_ANCHOR_DESC
|
|
8236
|
+
showAnchor: SHOW_ANCHOR_DESC,
|
|
8237
|
+
anchorTemplate: ANCHOR_TEMPLATE_DESC
|
|
8127
8238
|
},
|
|
8128
8239
|
apis: APIS_DESC,
|
|
8129
8240
|
themeVars: parseScssVar(styles$17.themeVars),
|
|
@@ -8154,7 +8265,8 @@ const H6Md = createMetadata({
|
|
|
8154
8265
|
omitFromToc: OMIT_FROM_TOC_DESC,
|
|
8155
8266
|
ellipses: ELLIPSES_DESC,
|
|
8156
8267
|
preserveLinebreaks: PRESERVE_DESC,
|
|
8157
|
-
showAnchor: SHOW_ANCHOR_DESC
|
|
8268
|
+
showAnchor: SHOW_ANCHOR_DESC,
|
|
8269
|
+
anchorTemplate: ANCHOR_TEMPLATE_DESC
|
|
8158
8270
|
},
|
|
8159
8271
|
apis: APIS_DESC,
|
|
8160
8272
|
themeVars: parseScssVar(styles$17.themeVars),
|
|
@@ -8180,13 +8292,23 @@ function renderHeading({
|
|
|
8180
8292
|
classes,
|
|
8181
8293
|
level,
|
|
8182
8294
|
renderChild: renderChild2,
|
|
8183
|
-
registerComponentApi
|
|
8295
|
+
registerComponentApi,
|
|
8296
|
+
layoutContext
|
|
8184
8297
|
}) {
|
|
8185
|
-
const { maxLines, preserveLinebreaks: preserveLinebreaks2, ellipses, showAnchor, ...restProps } = node.props;
|
|
8298
|
+
const { maxLines, preserveLinebreaks: preserveLinebreaks2, ellipses, showAnchor, anchorTemplate, ...restProps } = node.props;
|
|
8186
8299
|
delete restProps.level;
|
|
8187
8300
|
const showAnchorValue = extractValue.asOptionalBoolean(node.props?.showAnchor);
|
|
8188
8301
|
const extractedLevel = extractValue(level);
|
|
8189
8302
|
const normalizedLevel = normalizeHeadingLevel(extractedLevel);
|
|
8303
|
+
const anchorRenderer = anchorTemplate ? (anchorId, anchorHref) => /* @__PURE__ */ jsx(
|
|
8304
|
+
MemoizedItem,
|
|
8305
|
+
{
|
|
8306
|
+
node: anchorTemplate,
|
|
8307
|
+
contextVars: { $anchorId: anchorId, $anchorHref: anchorHref },
|
|
8308
|
+
renderChild: renderChild2,
|
|
8309
|
+
layoutContext
|
|
8310
|
+
}
|
|
8311
|
+
) : void 0;
|
|
8190
8312
|
return /* @__PURE__ */ jsx(
|
|
8191
8313
|
Heading,
|
|
8192
8314
|
{
|
|
@@ -8199,6 +8321,7 @@ function renderHeading({
|
|
|
8199
8321
|
classes,
|
|
8200
8322
|
omitFromToc: extractValue.asOptionalBoolean(node.props?.omitFromToc),
|
|
8201
8323
|
registerComponentApi,
|
|
8324
|
+
anchorRenderer,
|
|
8202
8325
|
...resolveAndCleanProps(restProps, extractValue),
|
|
8203
8326
|
children: extractValue.asDisplayText(node.props.value) || renderChild2(node.children)
|
|
8204
8327
|
}
|
|
@@ -8216,7 +8339,8 @@ const headingComponentRenderer = wrapComponent(
|
|
|
8216
8339
|
classes: context.classes,
|
|
8217
8340
|
level: context.node.props.level,
|
|
8218
8341
|
renderChild: context.renderChild,
|
|
8219
|
-
registerComponentApi: context.registerComponentApi
|
|
8342
|
+
registerComponentApi: context.registerComponentApi,
|
|
8343
|
+
layoutContext: context.layoutContext
|
|
8220
8344
|
})
|
|
8221
8345
|
}
|
|
8222
8346
|
);
|
|
@@ -8232,7 +8356,8 @@ const h1ComponentRenderer = wrapComponent(
|
|
|
8232
8356
|
classes: context.classes,
|
|
8233
8357
|
level: "h1",
|
|
8234
8358
|
renderChild: context.renderChild,
|
|
8235
|
-
registerComponentApi: context.registerComponentApi
|
|
8359
|
+
registerComponentApi: context.registerComponentApi,
|
|
8360
|
+
layoutContext: context.layoutContext
|
|
8236
8361
|
})
|
|
8237
8362
|
}
|
|
8238
8363
|
);
|
|
@@ -8248,7 +8373,8 @@ const h2ComponentRenderer = wrapComponent(
|
|
|
8248
8373
|
classes: context.classes,
|
|
8249
8374
|
level: "h2",
|
|
8250
8375
|
renderChild: context.renderChild,
|
|
8251
|
-
registerComponentApi: context.registerComponentApi
|
|
8376
|
+
registerComponentApi: context.registerComponentApi,
|
|
8377
|
+
layoutContext: context.layoutContext
|
|
8252
8378
|
})
|
|
8253
8379
|
}
|
|
8254
8380
|
);
|
|
@@ -8264,7 +8390,8 @@ const h3ComponentRenderer = wrapComponent(
|
|
|
8264
8390
|
classes: context.classes,
|
|
8265
8391
|
level: "h3",
|
|
8266
8392
|
renderChild: context.renderChild,
|
|
8267
|
-
registerComponentApi: context.registerComponentApi
|
|
8393
|
+
registerComponentApi: context.registerComponentApi,
|
|
8394
|
+
layoutContext: context.layoutContext
|
|
8268
8395
|
})
|
|
8269
8396
|
}
|
|
8270
8397
|
);
|
|
@@ -8280,7 +8407,8 @@ const h4ComponentRenderer = wrapComponent(
|
|
|
8280
8407
|
classes: context.classes,
|
|
8281
8408
|
level: "h4",
|
|
8282
8409
|
renderChild: context.renderChild,
|
|
8283
|
-
registerComponentApi: context.registerComponentApi
|
|
8410
|
+
registerComponentApi: context.registerComponentApi,
|
|
8411
|
+
layoutContext: context.layoutContext
|
|
8284
8412
|
})
|
|
8285
8413
|
}
|
|
8286
8414
|
);
|
|
@@ -8296,7 +8424,8 @@ const h5ComponentRenderer = wrapComponent(
|
|
|
8296
8424
|
classes: context.classes,
|
|
8297
8425
|
level: "h5",
|
|
8298
8426
|
renderChild: context.renderChild,
|
|
8299
|
-
registerComponentApi: context.registerComponentApi
|
|
8427
|
+
registerComponentApi: context.registerComponentApi,
|
|
8428
|
+
layoutContext: context.layoutContext
|
|
8300
8429
|
})
|
|
8301
8430
|
}
|
|
8302
8431
|
);
|
|
@@ -8312,7 +8441,8 @@ const h6ComponentRenderer = wrapComponent(
|
|
|
8312
8441
|
classes: context.classes,
|
|
8313
8442
|
level: "h6",
|
|
8314
8443
|
renderChild: context.renderChild,
|
|
8315
|
-
registerComponentApi: context.registerComponentApi
|
|
8444
|
+
registerComponentApi: context.registerComponentApi,
|
|
8445
|
+
layoutContext: context.layoutContext
|
|
8316
8446
|
})
|
|
8317
8447
|
}
|
|
8318
8448
|
);
|
|
@@ -10539,7 +10669,7 @@ function ApiInterceptorProvider({
|
|
|
10539
10669
|
return;
|
|
10540
10670
|
}
|
|
10541
10671
|
void (async () => {
|
|
10542
|
-
const { initMock } = await import("./initMock-
|
|
10672
|
+
const { initMock } = await import("./initMock-mzDxjYsY.js");
|
|
10543
10673
|
const apiInstance2 = await initMock(interceptor);
|
|
10544
10674
|
setApiInstance(apiInstance2);
|
|
10545
10675
|
setInitialized(true);
|
|
@@ -10556,7 +10686,7 @@ function ApiInterceptorProvider({
|
|
|
10556
10686
|
if (process.env.VITE_MOCK_ENABLED) {
|
|
10557
10687
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
10558
10688
|
useWorker ? import("./apiInterceptorWorker-CDO-h2U4.js") : Promise.resolve({ createApiInterceptorWorker: () => null }),
|
|
10559
|
-
import("./initMock-
|
|
10689
|
+
import("./initMock-mzDxjYsY.js")
|
|
10560
10690
|
]);
|
|
10561
10691
|
if (interceptor || forceInitialize) {
|
|
10562
10692
|
const apiInstance2 = await initMock(interceptor || {});
|
|
@@ -10593,7 +10723,7 @@ function ApiInterceptorProvider({
|
|
|
10593
10723
|
void (async () => {
|
|
10594
10724
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
10595
10725
|
import("./apiInterceptorWorker-CDO-h2U4.js"),
|
|
10596
|
-
import("./initMock-
|
|
10726
|
+
import("./initMock-mzDxjYsY.js")
|
|
10597
10727
|
]);
|
|
10598
10728
|
const apiInstance2 = await initMock(interceptor);
|
|
10599
10729
|
await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
|
|
@@ -11388,6 +11518,7 @@ const Markdown = memo(
|
|
|
11388
11518
|
openLinkInNewTab,
|
|
11389
11519
|
overflowMode = defaultProps$11.overflowMode,
|
|
11390
11520
|
breakMode = defaultProps$11.breakMode,
|
|
11521
|
+
anchorRenderer,
|
|
11391
11522
|
...rest
|
|
11392
11523
|
}, ref) {
|
|
11393
11524
|
const overflowClasses = useMemo(() => {
|
|
@@ -11509,27 +11640,27 @@ const Markdown = memo(
|
|
|
11509
11640
|
},
|
|
11510
11641
|
h1({ children: children2 }) {
|
|
11511
11642
|
const { label: label2, uid } = removeGeneratedAnchorSuffix(children2);
|
|
11512
|
-
return /* @__PURE__ */ jsx(ThemedHeading, { className, level: "h1", uid, showAnchor: showHeadingAnchors, children: label2 });
|
|
11643
|
+
return /* @__PURE__ */ jsx(ThemedHeading, { className, level: "h1", uid, showAnchor: showHeadingAnchors, anchorRenderer, children: label2 });
|
|
11513
11644
|
},
|
|
11514
11645
|
h2({ children: children2 }) {
|
|
11515
11646
|
const { label: label2, uid } = removeGeneratedAnchorSuffix(children2);
|
|
11516
|
-
return /* @__PURE__ */ jsx(ThemedHeading, { className, level: "h2", uid, showAnchor: showHeadingAnchors, children: label2 });
|
|
11647
|
+
return /* @__PURE__ */ jsx(ThemedHeading, { className, level: "h2", uid, showAnchor: showHeadingAnchors, anchorRenderer, children: label2 });
|
|
11517
11648
|
},
|
|
11518
11649
|
h3({ children: children2 }) {
|
|
11519
11650
|
const { label: label2, uid } = removeGeneratedAnchorSuffix(children2);
|
|
11520
|
-
return /* @__PURE__ */ jsx(ThemedHeading, { className, level: "h3", uid, showAnchor: showHeadingAnchors, children: label2 });
|
|
11651
|
+
return /* @__PURE__ */ jsx(ThemedHeading, { className, level: "h3", uid, showAnchor: showHeadingAnchors, anchorRenderer, children: label2 });
|
|
11521
11652
|
},
|
|
11522
11653
|
h4({ children: children2 }) {
|
|
11523
11654
|
const { label: label2, uid } = removeGeneratedAnchorSuffix(children2);
|
|
11524
|
-
return /* @__PURE__ */ jsx(ThemedHeading, { className, level: "h4", uid, showAnchor: showHeadingAnchors, children: label2 });
|
|
11655
|
+
return /* @__PURE__ */ jsx(ThemedHeading, { className, level: "h4", uid, showAnchor: showHeadingAnchors, anchorRenderer, children: label2 });
|
|
11525
11656
|
},
|
|
11526
11657
|
h5({ children: children2 }) {
|
|
11527
11658
|
const { label: label2, uid } = removeGeneratedAnchorSuffix(children2);
|
|
11528
|
-
return /* @__PURE__ */ jsx(ThemedHeading, { className, level: "h5", uid, showAnchor: showHeadingAnchors, children: label2 });
|
|
11659
|
+
return /* @__PURE__ */ jsx(ThemedHeading, { className, level: "h5", uid, showAnchor: showHeadingAnchors, anchorRenderer, children: label2 });
|
|
11529
11660
|
},
|
|
11530
11661
|
h6({ children: children2 }) {
|
|
11531
11662
|
const { label: label2, uid } = removeGeneratedAnchorSuffix(children2);
|
|
11532
|
-
return /* @__PURE__ */ jsx(ThemedHeading, { className, level: "h6", uid, showAnchor: showHeadingAnchors, children: label2 });
|
|
11663
|
+
return /* @__PURE__ */ jsx(ThemedHeading, { className, level: "h6", uid, showAnchor: showHeadingAnchors, anchorRenderer, children: label2 });
|
|
11533
11664
|
},
|
|
11534
11665
|
p({ id, children: children2, node }) {
|
|
11535
11666
|
if (node?.children?.[0]?.tagName === "samp") {
|
|
@@ -12323,6 +12454,9 @@ const MarkdownMd = createMetadata({
|
|
|
12323
12454
|
description: "This boolean property specifies whether heading anchors should be displayed. If set to `true`, heading anchors will be displayed on hover next to headings.",
|
|
12324
12455
|
valueType: "boolean"
|
|
12325
12456
|
},
|
|
12457
|
+
anchorTemplate: dComponent(
|
|
12458
|
+
"An optional template to customize the anchor link rendered next to each heading. Requires `showHeadingAnchors` to be `true`. The template receives `$anchorId` and `$anchorHref` as context variables."
|
|
12459
|
+
),
|
|
12326
12460
|
grayscale: {
|
|
12327
12461
|
description: "This boolean property specifies whether images should be displayed in grayscale. If set to `true`, all images within the markdown will be rendered in grayscale.",
|
|
12328
12462
|
valueType: "boolean"
|
|
@@ -12477,7 +12611,8 @@ const markdownComponentRenderer = wrapComponent(
|
|
|
12477
12611
|
"truncateLinks",
|
|
12478
12612
|
"openLinkInNewTab",
|
|
12479
12613
|
"overflowMode",
|
|
12480
|
-
"breakMode"
|
|
12614
|
+
"breakMode",
|
|
12615
|
+
"anchorTemplate"
|
|
12481
12616
|
],
|
|
12482
12617
|
customRender(_props, { node, extractValue, renderChild: renderChild2, classes }) {
|
|
12483
12618
|
let renderedChildren = "";
|
|
@@ -12509,6 +12644,14 @@ const markdownComponentRenderer = wrapComponent(
|
|
|
12509
12644
|
openLinkInNewTab: extractValue.asOptionalBoolean(node.props.openLinkInNewTab),
|
|
12510
12645
|
overflowMode: extractValue(node.props.overflowMode),
|
|
12511
12646
|
breakMode: extractValue(node.props.breakMode),
|
|
12647
|
+
anchorRenderer: node.props.anchorTemplate ? (anchorId, anchorHref) => /* @__PURE__ */ jsx(
|
|
12648
|
+
MemoizedItem,
|
|
12649
|
+
{
|
|
12650
|
+
node: node.props.anchorTemplate,
|
|
12651
|
+
contextVars: { $anchorId: anchorId, $anchorHref: anchorHref },
|
|
12652
|
+
renderChild: renderChild2
|
|
12653
|
+
}
|
|
12654
|
+
) : void 0,
|
|
12512
12655
|
children: renderedChildren
|
|
12513
12656
|
}
|
|
12514
12657
|
);
|
|
@@ -12529,7 +12672,8 @@ const TransformedMarkdown = forwardRef(
|
|
|
12529
12672
|
truncateLinks: truncateLinks2,
|
|
12530
12673
|
openLinkInNewTab,
|
|
12531
12674
|
overflowMode,
|
|
12532
|
-
breakMode
|
|
12675
|
+
breakMode,
|
|
12676
|
+
anchorRenderer
|
|
12533
12677
|
}, ref) => {
|
|
12534
12678
|
const markdownContent2 = useMemo(() => {
|
|
12535
12679
|
if (typeof children !== "string") {
|
|
@@ -12564,6 +12708,7 @@ const TransformedMarkdown = forwardRef(
|
|
|
12564
12708
|
openLinkInNewTab,
|
|
12565
12709
|
overflowMode,
|
|
12566
12710
|
breakMode,
|
|
12711
|
+
anchorRenderer,
|
|
12567
12712
|
children: markdownContent2
|
|
12568
12713
|
}
|
|
12569
12714
|
);
|
|
@@ -12861,96 +13006,6 @@ const ConciseValidationFeedback = ({
|
|
|
12861
13006
|
}
|
|
12862
13007
|
return null;
|
|
12863
13008
|
};
|
|
12864
|
-
const validationSeverityValues = ["error", "warning", "valid", "none"];
|
|
12865
|
-
const defaultValidationMode = "errorLate";
|
|
12866
|
-
const validationModeMd = [
|
|
12867
|
-
{
|
|
12868
|
-
value: "errorLate",
|
|
12869
|
-
description: "Display the error when the field loses focus.If an error is already displayed, continue for every keystroke until input is accepted."
|
|
12870
|
-
},
|
|
12871
|
-
{
|
|
12872
|
-
value: "onChanged",
|
|
12873
|
-
description: "Display error (if present) for every keystroke."
|
|
12874
|
-
},
|
|
12875
|
-
{
|
|
12876
|
-
value: "onLostFocus",
|
|
12877
|
-
description: "Show/hide error (if present) only if the field loses focus."
|
|
12878
|
-
}
|
|
12879
|
-
];
|
|
12880
|
-
const FormContext = createContext$1(void 0);
|
|
12881
|
-
function useFormContextPart(selector) {
|
|
12882
|
-
return useContextSelector(FormContext, selector);
|
|
12883
|
-
}
|
|
12884
|
-
function useIsInsideForm() {
|
|
12885
|
-
const contextPart = useFormContextPart((value) => value?.dispatch);
|
|
12886
|
-
return contextPart !== void 0;
|
|
12887
|
-
}
|
|
12888
|
-
const formControlTypesMd = [
|
|
12889
|
-
{
|
|
12890
|
-
value: "text",
|
|
12891
|
-
description: "Renders TextBox"
|
|
12892
|
-
},
|
|
12893
|
-
{
|
|
12894
|
-
value: "password",
|
|
12895
|
-
description: "Renders TextBox with `password` type"
|
|
12896
|
-
},
|
|
12897
|
-
{
|
|
12898
|
-
value: "textarea",
|
|
12899
|
-
description: "Renders Textarea"
|
|
12900
|
-
},
|
|
12901
|
-
{
|
|
12902
|
-
value: "checkbox",
|
|
12903
|
-
description: "Renders Checkbox"
|
|
12904
|
-
},
|
|
12905
|
-
{
|
|
12906
|
-
value: "number",
|
|
12907
|
-
description: "Renders NumberBox"
|
|
12908
|
-
},
|
|
12909
|
-
{
|
|
12910
|
-
value: "integer",
|
|
12911
|
-
description: "Renders NumberBox with `integersOnly` set to true"
|
|
12912
|
-
},
|
|
12913
|
-
{
|
|
12914
|
-
value: "file",
|
|
12915
|
-
description: "Renders FileInput"
|
|
12916
|
-
},
|
|
12917
|
-
{
|
|
12918
|
-
value: "datePicker",
|
|
12919
|
-
description: "Renders DatePicker"
|
|
12920
|
-
},
|
|
12921
|
-
{
|
|
12922
|
-
value: "radioGroup",
|
|
12923
|
-
description: "Renders RadioGroup"
|
|
12924
|
-
},
|
|
12925
|
-
{
|
|
12926
|
-
value: "switch",
|
|
12927
|
-
description: "Renders Switch"
|
|
12928
|
-
},
|
|
12929
|
-
{
|
|
12930
|
-
value: "select",
|
|
12931
|
-
description: "Renders Select"
|
|
12932
|
-
},
|
|
12933
|
-
{
|
|
12934
|
-
value: "autocomplete",
|
|
12935
|
-
description: "Renders AutoComplete"
|
|
12936
|
-
},
|
|
12937
|
-
{
|
|
12938
|
-
value: "slider",
|
|
12939
|
-
description: "Renders Slider"
|
|
12940
|
-
},
|
|
12941
|
-
{
|
|
12942
|
-
value: "colorpicker",
|
|
12943
|
-
description: "Renders ColorPicker"
|
|
12944
|
-
},
|
|
12945
|
-
{
|
|
12946
|
-
value: "items",
|
|
12947
|
-
description: "Renders Items"
|
|
12948
|
-
},
|
|
12949
|
-
{
|
|
12950
|
-
value: "custom",
|
|
12951
|
-
description: "A custom control specified in children. If `type` is not specified but the `FormItem` has children, it considers the control a custom one."
|
|
12952
|
-
}
|
|
12953
|
-
];
|
|
12954
13009
|
const PART_CONCISE_VALIDATION_FEEDBACK$4 = "conciseValidationFeedback";
|
|
12955
13010
|
const defaultProps$$ = {
|
|
12956
13011
|
value: "",
|
|
@@ -15044,7 +15099,10 @@ function buildLinkMap(navLinks) {
|
|
|
15044
15099
|
const defaultProps$W = {
|
|
15045
15100
|
inDrawer: false,
|
|
15046
15101
|
scrollStyle: "normal",
|
|
15047
|
-
showScrollerFade: true
|
|
15102
|
+
showScrollerFade: true,
|
|
15103
|
+
syncWithContent: false,
|
|
15104
|
+
syncScrollBehavior: "smooth",
|
|
15105
|
+
syncScrollPosition: "center"
|
|
15048
15106
|
};
|
|
15049
15107
|
const NavPanelContext = React__default.createContext(null);
|
|
15050
15108
|
const contextValue = {
|
|
@@ -15097,10 +15155,63 @@ const NavPanel = forwardRef(function NavPanel2({
|
|
|
15097
15155
|
navLinks,
|
|
15098
15156
|
scrollStyle = defaultProps$W.scrollStyle,
|
|
15099
15157
|
showScrollerFade = defaultProps$W.showScrollerFade,
|
|
15158
|
+
syncWithContent = defaultProps$W.syncWithContent,
|
|
15159
|
+
syncScrollBehavior = defaultProps$W.syncScrollBehavior,
|
|
15160
|
+
syncScrollPosition = defaultProps$W.syncScrollPosition,
|
|
15100
15161
|
...rest
|
|
15101
15162
|
}, forwardedRef) {
|
|
15102
15163
|
const appLayoutContext = useAppLayoutContext();
|
|
15103
15164
|
const linkInfoContext = useLinkInfoContext();
|
|
15165
|
+
const localRef = useRef(null);
|
|
15166
|
+
const location = useLocation();
|
|
15167
|
+
const clickedInsideRef = useRef(false);
|
|
15168
|
+
const mergedRef = useCallback(
|
|
15169
|
+
(node) => {
|
|
15170
|
+
localRef.current = node;
|
|
15171
|
+
if (typeof forwardedRef === "function") {
|
|
15172
|
+
forwardedRef(node);
|
|
15173
|
+
} else if (forwardedRef) {
|
|
15174
|
+
forwardedRef.current = node;
|
|
15175
|
+
}
|
|
15176
|
+
},
|
|
15177
|
+
[forwardedRef]
|
|
15178
|
+
);
|
|
15179
|
+
useEffect(() => {
|
|
15180
|
+
if (!syncWithContent || !localRef.current) return;
|
|
15181
|
+
if (clickedInsideRef.current) {
|
|
15182
|
+
clickedInsideRef.current = false;
|
|
15183
|
+
return;
|
|
15184
|
+
}
|
|
15185
|
+
const panel2 = localRef.current;
|
|
15186
|
+
let scrolled = false;
|
|
15187
|
+
const findAndScrollToActiveLink = () => {
|
|
15188
|
+
const candidates = Array.from(panel2.querySelectorAll(".xmlui-navlink-active"));
|
|
15189
|
+
const leafLink = candidates.find((el2) => el2.getAttribute("aria-expanded") === null);
|
|
15190
|
+
if (!leafLink) return false;
|
|
15191
|
+
let el = leafLink.parentElement;
|
|
15192
|
+
while (el && el !== panel2) {
|
|
15193
|
+
if (el.getAttribute("aria-hidden") === "true") return false;
|
|
15194
|
+
el = el.parentElement;
|
|
15195
|
+
}
|
|
15196
|
+
leafLink.scrollIntoView({ block: syncScrollPosition, behavior: syncScrollBehavior });
|
|
15197
|
+
return true;
|
|
15198
|
+
};
|
|
15199
|
+
if (findAndScrollToActiveLink()) {
|
|
15200
|
+
scrolled = true;
|
|
15201
|
+
return;
|
|
15202
|
+
}
|
|
15203
|
+
const handleTransitionEnd = (e) => {
|
|
15204
|
+
if (scrolled || e.propertyName !== "grid-template-rows") return;
|
|
15205
|
+
if (findAndScrollToActiveLink()) {
|
|
15206
|
+
scrolled = true;
|
|
15207
|
+
panel2.removeEventListener("transitionend", handleTransitionEnd);
|
|
15208
|
+
}
|
|
15209
|
+
};
|
|
15210
|
+
panel2.addEventListener("transitionend", handleTransitionEnd);
|
|
15211
|
+
return () => {
|
|
15212
|
+
panel2.removeEventListener("transitionend", handleTransitionEnd);
|
|
15213
|
+
};
|
|
15214
|
+
}, [syncWithContent, syncScrollBehavior, syncScrollPosition, location.pathname]);
|
|
15104
15215
|
const horizontal2 = getAppLayoutOrientation(appLayoutContext?.layout) === "horizontal";
|
|
15105
15216
|
const showLogo = appLayoutContext?.layout === "vertical" || appLayoutContext?.layout === "vertical-sticky";
|
|
15106
15217
|
const isCondensed = appLayoutContext?.layout?.startsWith("condensed");
|
|
@@ -15135,7 +15246,10 @@ const NavPanel = forwardRef(function NavPanel2({
|
|
|
15135
15246
|
"div",
|
|
15136
15247
|
{
|
|
15137
15248
|
...rest,
|
|
15138
|
-
ref:
|
|
15249
|
+
ref: mergedRef,
|
|
15250
|
+
onMouseDown: () => {
|
|
15251
|
+
clickedInsideRef.current = true;
|
|
15252
|
+
},
|
|
15139
15253
|
className: classnames(styles$U.wrapper, classes?.[COMPONENT_PART_KEY], className, {
|
|
15140
15254
|
[styles$U.horizontal]: horizontal2,
|
|
15141
15255
|
[styles$U.vertical]: vertical2,
|
|
@@ -15357,6 +15471,8 @@ const ExpandableNavGroup = forwardRef(function ExpandableNavGroup2({
|
|
|
15357
15471
|
traceId: typeof window !== "undefined" ? window._xsCurrentTrace : void 0,
|
|
15358
15472
|
kind: "focus:change",
|
|
15359
15473
|
component: "NavGroup",
|
|
15474
|
+
ariaName: label2,
|
|
15475
|
+
componentLabel: label2,
|
|
15360
15476
|
displayLabel: label2,
|
|
15361
15477
|
label: label2,
|
|
15362
15478
|
expanded: newExpanded
|
|
@@ -15462,6 +15578,7 @@ const DropDownNavGroup = forwardRef(function DropDownNavGroup2({
|
|
|
15462
15578
|
traceId: typeof window !== "undefined" ? window._xsCurrentTrace : void 0,
|
|
15463
15579
|
kind: "focus:change",
|
|
15464
15580
|
component: "NavGroup",
|
|
15581
|
+
ariaName: label2,
|
|
15465
15582
|
displayLabel: label2,
|
|
15466
15583
|
label: label2,
|
|
15467
15584
|
expanded: open
|
|
@@ -16541,6 +16658,7 @@ const TreeComponent = memo((props) => {
|
|
|
16541
16658
|
traceId: typeof window !== "undefined" ? window._xsCurrentTrace : void 0,
|
|
16542
16659
|
kind: "selection:change",
|
|
16543
16660
|
component: "Tree",
|
|
16661
|
+
ariaName: node ? node.name : void 0,
|
|
16544
16662
|
displayLabel: node ? node.name : null,
|
|
16545
16663
|
selectedId: node ? String(node.key) : null,
|
|
16546
16664
|
selectedName: node ? node.name : null
|
|
@@ -18457,37 +18575,39 @@ const MessageListenerMd = createMetadata({
|
|
|
18457
18575
|
}
|
|
18458
18576
|
});
|
|
18459
18577
|
const messageListenerComponentRenderer = wrapComponent(COMP$15, MessageListenerNative, MessageListenerMd, {});
|
|
18460
|
-
const themeVars$B = `'{"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)"}'`;
|
|
18461
|
-
const wrapper$a = "
|
|
18462
|
-
const noScroll = "
|
|
18463
|
-
const clickableHeader = "
|
|
18464
|
-
const headerContent$1 = "
|
|
18465
|
-
const orderingIndicator = "
|
|
18466
|
-
const activeOrdering = "
|
|
18467
|
-
const alwaysShow = "
|
|
18468
|
-
const headerRow = "
|
|
18469
|
-
const columnCell = "
|
|
18470
|
-
const cell = "
|
|
18471
|
-
const alignTop = "
|
|
18472
|
-
const alignCenter$1 = "
|
|
18473
|
-
const alignBottom = "
|
|
18474
|
-
const table = "
|
|
18475
|
-
const row$1 = "
|
|
18476
|
-
const checkBoxWrapper = "
|
|
18477
|
-
const showInHeader = "
|
|
18478
|
-
const showInRow = "
|
|
18479
|
-
const selected$3 = "
|
|
18480
|
-
const allSelected = "
|
|
18481
|
-
const cellContent = "
|
|
18482
|
-
const
|
|
18483
|
-
const
|
|
18484
|
-
const
|
|
18485
|
-
const
|
|
18486
|
-
const
|
|
18487
|
-
const
|
|
18488
|
-
const
|
|
18489
|
-
const
|
|
18490
|
-
const
|
|
18578
|
+
const themeVars$B = `'{"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-evenRow-Table": "var(--xmlui-backgroundColor-evenRow-Table)", "backgroundColor-oddRow-Table": "var(--xmlui-backgroundColor-oddRow-Table)", "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)"}'`;
|
|
18579
|
+
const wrapper$a = "_wrapper_fhn7y_14";
|
|
18580
|
+
const noScroll = "_noScroll_fhn7y_42";
|
|
18581
|
+
const clickableHeader = "_clickableHeader_fhn7y_45";
|
|
18582
|
+
const headerContent$1 = "_headerContent_fhn7y_59";
|
|
18583
|
+
const orderingIndicator = "_orderingIndicator_fhn7y_62";
|
|
18584
|
+
const activeOrdering = "_activeOrdering_fhn7y_67";
|
|
18585
|
+
const alwaysShow = "_alwaysShow_fhn7y_67";
|
|
18586
|
+
const headerRow = "_headerRow_fhn7y_104";
|
|
18587
|
+
const columnCell = "_columnCell_fhn7y_108";
|
|
18588
|
+
const cell = "_cell_fhn7y_109";
|
|
18589
|
+
const alignTop = "_alignTop_fhn7y_117";
|
|
18590
|
+
const alignCenter$1 = "_alignCenter_fhn7y_121";
|
|
18591
|
+
const alignBottom = "_alignBottom_fhn7y_125";
|
|
18592
|
+
const table = "_table_fhn7y_129";
|
|
18593
|
+
const row$1 = "_row_fhn7y_139";
|
|
18594
|
+
const checkBoxWrapper = "_checkBoxWrapper_fhn7y_146";
|
|
18595
|
+
const showInHeader = "_showInHeader_fhn7y_151";
|
|
18596
|
+
const showInRow = "_showInRow_fhn7y_151";
|
|
18597
|
+
const selected$3 = "_selected_fhn7y_156";
|
|
18598
|
+
const allSelected = "_allSelected_fhn7y_156";
|
|
18599
|
+
const cellContent = "_cellContent_fhn7y_187";
|
|
18600
|
+
const evenRow = "_evenRow_fhn7y_202";
|
|
18601
|
+
const oddRow = "_oddRow_fhn7y_205";
|
|
18602
|
+
const focused$3 = "_focused_fhn7y_220";
|
|
18603
|
+
const disabled$7 = "_disabled_fhn7y_232";
|
|
18604
|
+
const noBottomBorder = "_noBottomBorder_fhn7y_239";
|
|
18605
|
+
const headerWrapper = "_headerWrapper_fhn7y_252";
|
|
18606
|
+
const noRows$1 = "_noRows_fhn7y_269";
|
|
18607
|
+
const loadingWrapper$1 = "_loadingWrapper_fhn7y_308";
|
|
18608
|
+
const forceHoverWrapper = "_forceHoverWrapper_fhn7y_321";
|
|
18609
|
+
const resizer$1 = "_resizer_fhn7y_324";
|
|
18610
|
+
const isResizing = "_isResizing_fhn7y_345";
|
|
18491
18611
|
const styles$R = {
|
|
18492
18612
|
themeVars: themeVars$B,
|
|
18493
18613
|
wrapper: wrapper$a,
|
|
@@ -18511,6 +18631,8 @@ const styles$R = {
|
|
|
18511
18631
|
selected: selected$3,
|
|
18512
18632
|
allSelected,
|
|
18513
18633
|
cellContent,
|
|
18634
|
+
evenRow,
|
|
18635
|
+
oddRow,
|
|
18514
18636
|
focused: focused$3,
|
|
18515
18637
|
disabled: disabled$7,
|
|
18516
18638
|
noBottomBorder,
|
|
@@ -19774,6 +19896,7 @@ function useRowSelection({
|
|
|
19774
19896
|
traceId: typeof window !== "undefined" ? window._xsCurrentTrace : void 0,
|
|
19775
19897
|
kind: "selection:change",
|
|
19776
19898
|
component: "Table",
|
|
19899
|
+
ariaName: `${selectedItems.length} item${selectedItems.length !== 1 ? "s" : ""}`,
|
|
19777
19900
|
displayLabel: `${selectedItems.length} item${selectedItems.length !== 1 ? "s" : ""}`,
|
|
19778
19901
|
selectedIds: selectedItems.map((item2) => item2.id ?? item2.key),
|
|
19779
19902
|
selectedCount: selectedItems.length
|
|
@@ -19845,16 +19968,16 @@ function useRowSelection({
|
|
|
19845
19968
|
};
|
|
19846
19969
|
}
|
|
19847
19970
|
const themeVars$A = `'{"backgroundColor-Pagination": "var(--xmlui-backgroundColor-Pagination)", "borderColor-Pagination": "var(--xmlui-borderColor-Pagination)", "borderRadius-selector-Pagination": "var(--xmlui-borderRadius-selector-Pagination)", "textColor-Pagination": "var(--xmlui-textColor-Pagination)", "backgroundColor-selector-Pagination": "var(--xmlui-backgroundColor-selector-Pagination)", "textColor-selector-Pagination": "var(--xmlui-textColor-selector-Pagination)", "padding-Pagination": "var(--xmlui-padding-Pagination)", "gap-buttonRow-Pagination": "var(--xmlui-gap-buttonRow-Pagination)"}'`;
|
|
19848
|
-
const pagination = "
|
|
19849
|
-
const paginationVertical = "
|
|
19850
|
-
const startSlot = "
|
|
19851
|
-
const endSlot = "
|
|
19852
|
-
const centerSlot = "
|
|
19853
|
-
const slot = "
|
|
19854
|
-
const selectorContainer = "
|
|
19855
|
-
const pageSizeSelect = "
|
|
19856
|
-
const buttonRow$1 = "
|
|
19857
|
-
const paginationListVertical = "
|
|
19971
|
+
const pagination = "_pagination_1vhkm_14";
|
|
19972
|
+
const paginationVertical = "_paginationVertical_1vhkm_23";
|
|
19973
|
+
const startSlot = "_startSlot_1vhkm_28";
|
|
19974
|
+
const endSlot = "_endSlot_1vhkm_28";
|
|
19975
|
+
const centerSlot = "_centerSlot_1vhkm_28";
|
|
19976
|
+
const slot = "_slot_1vhkm_86";
|
|
19977
|
+
const selectorContainer = "_selectorContainer_1vhkm_117";
|
|
19978
|
+
const pageSizeSelect = "_pageSizeSelect_1vhkm_127";
|
|
19979
|
+
const buttonRow$1 = "_buttonRow_1vhkm_149";
|
|
19980
|
+
const paginationListVertical = "_paginationListVertical_1vhkm_160";
|
|
19858
19981
|
const styles$Q = {
|
|
19859
19982
|
themeVars: themeVars$A,
|
|
19860
19983
|
pagination,
|
|
@@ -19868,48 +19991,48 @@ const styles$Q = {
|
|
|
19868
19991
|
buttonRow: buttonRow$1,
|
|
19869
19992
|
paginationListVertical
|
|
19870
19993
|
};
|
|
19871
|
-
const themeVars$z = `'{"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": "var(--xmlui-borderRadius-Select)", "Input:borderColor-Select": "var(--xmlui-borderColor-Select)", "Input:borderWidth-Select": "var(--xmlui-borderWidth-Select)", "Input:borderStyle-Select": "var(--xmlui-borderStyle-Select)", "Input:fontSize-Select": "var(--xmlui-fontSize-Select)", "Input:backgroundColor-Select": "var(--xmlui-backgroundColor-Select)", "Input:boxShadow-Select": "var(--xmlui-boxShadow-Select)", "Input:textColor-Select": "var(--xmlui-textColor-Select)", "Input:borderColor-Select--hover": "var(--xmlui-borderColor-Select--hover)", "Input:backgroundColor-Select--hover": "var(--xmlui-backgroundColor-Select--hover)", "Input:boxShadow-Select--hover": "var(--xmlui-boxShadow-Select--hover)", "Input:textColor-Select--hover": "var(--xmlui-textColor-Select--hover)", "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)", "Input:fontSize-placeholder-Select": "var(--xmlui-fontSize-placeholder-Select)", "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)", "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)", "minHeight-Select": "var(--xmlui-minHeight-Select)", "minHeight-item-Select": "var(--xmlui-minHeight-item-Select)"}'`;
|
|
19872
|
-
const selectTrigger = "
|
|
19873
|
-
const error$b = "
|
|
19874
|
-
const warning$b = "
|
|
19875
|
-
const valid$b = "
|
|
19876
|
-
const disabled$6 = "
|
|
19877
|
-
const placeholder$2 = "
|
|
19878
|
-
const actions$1 = "
|
|
19879
|
-
const action$1 = "
|
|
19880
|
-
const badgeListContainer = "
|
|
19881
|
-
const badgeList$1 = "
|
|
19882
|
-
const inputWrapper$1 = "
|
|
19883
|
-
const badge$2 = "
|
|
19884
|
-
const selectContent = "
|
|
19885
|
-
const command$1 = "
|
|
19886
|
-
const commandInputContainer = "
|
|
19887
|
-
const commandInput$1 = "
|
|
19888
|
-
const commandList$1 = "
|
|
19889
|
-
const groupHeader = "
|
|
19890
|
-
const multiSelectOption = "
|
|
19891
|
-
const multiSelectOptionContent = "
|
|
19892
|
-
const highlighted$1 = "
|
|
19893
|
-
const disabledOption$1 = "
|
|
19894
|
-
const selectValue = "
|
|
19895
|
-
const selectDropdownContent = "
|
|
19896
|
-
const fadeIn = "
|
|
19897
|
-
const zoomIn = "
|
|
19898
|
-
const fadeOut = "
|
|
19899
|
-
const zoomOut = "
|
|
19900
|
-
const slideInFromTop = "
|
|
19901
|
-
const slideInFromRight = "
|
|
19902
|
-
const slideInFromLeft = "
|
|
19903
|
-
const slideInFromBottom = "
|
|
19904
|
-
const selectViewport = "
|
|
19905
|
-
const selectScrollUpButton = "
|
|
19906
|
-
const selectScrollDownButton = "
|
|
19907
|
-
const selectEmpty = "
|
|
19908
|
-
const selectOption = "
|
|
19909
|
-
const selectOptionContent = "
|
|
19910
|
-
const selectOptionIndicator = "
|
|
19911
|
-
const loading = "
|
|
19912
|
-
const srOnly$1 = "
|
|
19994
|
+
const themeVars$z = `'{"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": "var(--xmlui-borderRadius-Select)", "Input:borderColor-Select": "var(--xmlui-borderColor-Select)", "Input:borderWidth-Select": "var(--xmlui-borderWidth-Select)", "Input:borderStyle-Select": "var(--xmlui-borderStyle-Select)", "Input:fontSize-Select": "var(--xmlui-fontSize-Select)", "Input:backgroundColor-Select": "var(--xmlui-backgroundColor-Select)", "Input:boxShadow-Select": "var(--xmlui-boxShadow-Select)", "Input:textColor-Select": "var(--xmlui-textColor-Select)", "Input:borderColor-Select--hover": "var(--xmlui-borderColor-Select--hover)", "Input:backgroundColor-Select--hover": "var(--xmlui-backgroundColor-Select--hover)", "Input:boxShadow-Select--hover": "var(--xmlui-boxShadow-Select--hover)", "Input:textColor-Select--hover": "var(--xmlui-textColor-Select--hover)", "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)", "Input:fontSize-placeholder-Select": "var(--xmlui-fontSize-placeholder-Select)", "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)", "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)", "minHeight-Select": "var(--xmlui-minHeight-Select)", "minWidth-Select": "var(--xmlui-minWidth-Select)", "minHeight-item-Select": "var(--xmlui-minHeight-item-Select)"}'`;
|
|
19995
|
+
const selectTrigger = "_selectTrigger_1w1m2_17";
|
|
19996
|
+
const error$b = "_error_1w1m2_57";
|
|
19997
|
+
const warning$b = "_warning_1w1m2_83";
|
|
19998
|
+
const valid$b = "_valid_1w1m2_109";
|
|
19999
|
+
const disabled$6 = "_disabled_1w1m2_135";
|
|
20000
|
+
const placeholder$2 = "_placeholder_1w1m2_147";
|
|
20001
|
+
const actions$1 = "_actions_1w1m2_164";
|
|
20002
|
+
const action$1 = "_action_1w1m2_164";
|
|
20003
|
+
const badgeListContainer = "_badgeListContainer_1w1m2_179";
|
|
20004
|
+
const badgeList$1 = "_badgeList_1w1m2_179";
|
|
20005
|
+
const inputWrapper$1 = "_inputWrapper_1w1m2_192";
|
|
20006
|
+
const badge$2 = "_badge_1w1m2_179";
|
|
20007
|
+
const selectContent = "_selectContent_1w1m2_227";
|
|
20008
|
+
const command$1 = "_command_1w1m2_246";
|
|
20009
|
+
const commandInputContainer = "_commandInputContainer_1w1m2_253";
|
|
20010
|
+
const commandInput$1 = "_commandInput_1w1m2_253";
|
|
20011
|
+
const commandList$1 = "_commandList_1w1m2_272";
|
|
20012
|
+
const groupHeader = "_groupHeader_1w1m2_280";
|
|
20013
|
+
const multiSelectOption = "_multiSelectOption_1w1m2_292";
|
|
20014
|
+
const multiSelectOptionContent = "_multiSelectOptionContent_1w1m2_307";
|
|
20015
|
+
const highlighted$1 = "_highlighted_1w1m2_316";
|
|
20016
|
+
const disabledOption$1 = "_disabledOption_1w1m2_322";
|
|
20017
|
+
const selectValue = "_selectValue_1w1m2_337";
|
|
20018
|
+
const selectDropdownContent = "_selectDropdownContent_1w1m2_347";
|
|
20019
|
+
const fadeIn = "_fadeIn_1w1m2_1";
|
|
20020
|
+
const zoomIn = "_zoomIn_1w1m2_1";
|
|
20021
|
+
const fadeOut = "_fadeOut_1w1m2_1";
|
|
20022
|
+
const zoomOut = "_zoomOut_1w1m2_1";
|
|
20023
|
+
const slideInFromTop = "_slideInFromTop_1w1m2_1";
|
|
20024
|
+
const slideInFromRight = "_slideInFromRight_1w1m2_1";
|
|
20025
|
+
const slideInFromLeft = "_slideInFromLeft_1w1m2_1";
|
|
20026
|
+
const slideInFromBottom = "_slideInFromBottom_1w1m2_1";
|
|
20027
|
+
const selectViewport = "_selectViewport_1w1m2_379";
|
|
20028
|
+
const selectScrollUpButton = "_selectScrollUpButton_1w1m2_383";
|
|
20029
|
+
const selectScrollDownButton = "_selectScrollDownButton_1w1m2_391";
|
|
20030
|
+
const selectEmpty = "_selectEmpty_1w1m2_399";
|
|
20031
|
+
const selectOption = "_selectOption_1w1m2_412";
|
|
20032
|
+
const selectOptionContent = "_selectOptionContent_1w1m2_436";
|
|
20033
|
+
const selectOptionIndicator = "_selectOptionIndicator_1w1m2_450";
|
|
20034
|
+
const loading = "_loading_1w1m2_460";
|
|
20035
|
+
const srOnly$1 = "_srOnly_1w1m2_463";
|
|
19913
20036
|
const styles$P = {
|
|
19914
20037
|
themeVars: themeVars$z,
|
|
19915
20038
|
selectTrigger,
|
|
@@ -20381,6 +20504,10 @@ const Select = forwardRef(function Select2({
|
|
|
20381
20504
|
...rest
|
|
20382
20505
|
}, forwardedRef) {
|
|
20383
20506
|
const [referenceElement, setReferenceElement] = useState(null);
|
|
20507
|
+
const ariaLabelRef = useRef("");
|
|
20508
|
+
if (typeof window !== "undefined" && Array.isArray(window._xsLogs)) {
|
|
20509
|
+
ariaLabelRef.current = rest["aria-label"] || "";
|
|
20510
|
+
}
|
|
20384
20511
|
const [open, setOpen] = useState(false);
|
|
20385
20512
|
const [panelWidth, setPanelWidth] = useState(0);
|
|
20386
20513
|
const observer = useRef();
|
|
@@ -20493,9 +20620,12 @@ const Select = forwardRef(function Select2({
|
|
|
20493
20620
|
componentType: "Select",
|
|
20494
20621
|
componentLabel: optionLabel2,
|
|
20495
20622
|
ariaRole: "option",
|
|
20623
|
+
selectAriaLabel: ariaLabelRef.current,
|
|
20496
20624
|
ariaName: optionLabel2
|
|
20497
20625
|
});
|
|
20498
20626
|
pushXsLog(createLogEntry("native:selection:change", {
|
|
20627
|
+
component: "Select",
|
|
20628
|
+
ariaName: ariaLabelRef.current || void 0,
|
|
20499
20629
|
displayLabel: optionLabel2,
|
|
20500
20630
|
value: newSelectedValue
|
|
20501
20631
|
}));
|
|
@@ -20668,6 +20798,7 @@ const Select = forwardRef(function Select2({
|
|
|
20668
20798
|
/* @__PURE__ */ jsx(
|
|
20669
20799
|
SimpleSelect,
|
|
20670
20800
|
{
|
|
20801
|
+
ref: forwardedRef,
|
|
20671
20802
|
value: currentValue,
|
|
20672
20803
|
onValueChange: (val) => toggleOption(val),
|
|
20673
20804
|
id,
|
|
@@ -21094,7 +21225,8 @@ const SelectMd = createMetadata({
|
|
|
21094
21225
|
[`borderColor-${COMP$13}--disabled`]: "$borderColor--disabled",
|
|
21095
21226
|
[`textColor-${COMP$13}--disabled`]: "$textColor--disabled",
|
|
21096
21227
|
[`minHeight-${COMP$13}`]: "$space-7",
|
|
21097
|
-
[`minHeight-item-${COMP$13}`]: "$space-7"
|
|
21228
|
+
[`minHeight-item-${COMP$13}`]: "$space-7",
|
|
21229
|
+
[`minWidth-${COMP$13}`]: "$space-16"
|
|
21098
21230
|
}
|
|
21099
21231
|
});
|
|
21100
21232
|
const ThemedSelect = React__default.forwardRef(
|
|
@@ -21156,6 +21288,7 @@ const selectComponentRenderer = wrapComponent(
|
|
|
21156
21288
|
return /* @__PURE__ */ jsx(
|
|
21157
21289
|
Select,
|
|
21158
21290
|
{
|
|
21291
|
+
"aria-label": _props["aria-label"],
|
|
21159
21292
|
multiSelect,
|
|
21160
21293
|
classes,
|
|
21161
21294
|
contentClassName: classes?.[COMPONENT_PART_KEY],
|
|
@@ -22254,6 +22387,7 @@ const Table = forwardRef(
|
|
|
22254
22387
|
onPasteAction,
|
|
22255
22388
|
onDeleteAction,
|
|
22256
22389
|
alwaysShowHeader = defaultProps$N.alwaysShowHeader,
|
|
22390
|
+
striped = defaultProps$N.striped,
|
|
22257
22391
|
...rest
|
|
22258
22392
|
// cols
|
|
22259
22393
|
}, forwardedRef) => {
|
|
@@ -22266,6 +22400,12 @@ const Table = forwardRef(
|
|
|
22266
22400
|
const ref = forwardedRef ? composeRefs(wrapperRef, forwardedRef) : wrapperRef;
|
|
22267
22401
|
const tableRef = useRef(null);
|
|
22268
22402
|
const effectivePageSize = pageSize ?? (pageSizeOptions?.[0] || DEFAULT_PAGE_SIZES[0]);
|
|
22403
|
+
const effectivePageSizeOptions = useMemo(() => {
|
|
22404
|
+
if (pageSizeOptions.includes(effectivePageSize)) {
|
|
22405
|
+
return pageSizeOptions;
|
|
22406
|
+
}
|
|
22407
|
+
return [...pageSizeOptions, effectivePageSize].sort((a, b) => a - b);
|
|
22408
|
+
}, [pageSizeOptions, effectivePageSize]);
|
|
22269
22409
|
const effectiveIsPaginated = useMemo(() => {
|
|
22270
22410
|
if (isPaginated !== void 0) {
|
|
22271
22411
|
return isPaginated;
|
|
@@ -22419,11 +22559,21 @@ const Table = forwardRef(
|
|
|
22419
22559
|
if (allowStarSize && starSizedWidthMatch) {
|
|
22420
22560
|
starSizedWidth2 = starSizedWidthMatch[1] + "*";
|
|
22421
22561
|
} else {
|
|
22422
|
-
const pixelWidthMatch = resolvedWidth.match(/^\s*(\d+)\s*(px)?\s*$/);
|
|
22562
|
+
const pixelWidthMatch = resolvedWidth.match(/^\s*(\d+(?:\.\d+)?)\s*(px)?\s*$/);
|
|
22423
22563
|
if (pixelWidthMatch) {
|
|
22424
|
-
width2 =
|
|
22564
|
+
width2 = parseFloat(pixelWidthMatch[1]);
|
|
22425
22565
|
} else {
|
|
22426
|
-
|
|
22566
|
+
const remEmMatch = resolvedWidth.match(/^\s*(\d+(?:\.\d+)?)\s*(rem|em)\s*$/);
|
|
22567
|
+
if (remEmMatch) {
|
|
22568
|
+
const rootFontSize = parseFloat(
|
|
22569
|
+
getComputedStyle(document.documentElement).fontSize
|
|
22570
|
+
);
|
|
22571
|
+
width2 = parseFloat(remEmMatch[1]) * (isNaN(rootFontSize) ? 16 : rootFontSize);
|
|
22572
|
+
} else {
|
|
22573
|
+
throw new Error(
|
|
22574
|
+
`Invalid TableColumnDef '${propName}' value: ${resolvedWidth}`
|
|
22575
|
+
);
|
|
22576
|
+
}
|
|
22427
22577
|
}
|
|
22428
22578
|
}
|
|
22429
22579
|
}
|
|
@@ -22739,7 +22889,8 @@ const Table = forwardRef(
|
|
|
22739
22889
|
tolerancePixels,
|
|
22740
22890
|
setHoveredRowId,
|
|
22741
22891
|
lookupEventHandler,
|
|
22742
|
-
rowDoubleClick
|
|
22892
|
+
rowDoubleClick,
|
|
22893
|
+
striped
|
|
22743
22894
|
};
|
|
22744
22895
|
const rowStateRef = useRef(rowState);
|
|
22745
22896
|
rowStateRef.current = rowState;
|
|
@@ -22766,7 +22917,9 @@ const Table = forwardRef(
|
|
|
22766
22917
|
[styles$R.selected]: row2.getIsSelected(),
|
|
22767
22918
|
[styles$R.focused]: s.focusedIndex === rowIndex,
|
|
22768
22919
|
[styles$R.disabled]: s.rowDisabledPredicate(row2.original),
|
|
22769
|
-
[styles$R.noBottomBorder]: s.noBottomBorder
|
|
22920
|
+
[styles$R.noBottomBorder]: s.noBottomBorder,
|
|
22921
|
+
[styles$R.evenRow]: s.striped && rowIndex % 2 === 0,
|
|
22922
|
+
[styles$R.oddRow]: s.striped && rowIndex % 2 !== 0
|
|
22770
22923
|
}),
|
|
22771
22924
|
onClick: (event) => {
|
|
22772
22925
|
if (event.detail >= 2) {
|
|
@@ -22897,12 +23050,43 @@ const Table = forwardRef(
|
|
|
22897
23050
|
numberOfUnitsById[column.id] = units;
|
|
22898
23051
|
}
|
|
22899
23052
|
});
|
|
22900
|
-
|
|
22901
|
-
|
|
22902
|
-
|
|
22903
|
-
|
|
22904
|
-
|
|
22905
|
-
|
|
23053
|
+
let remaining = availableWidth;
|
|
23054
|
+
const unitsMap = new Map(
|
|
23055
|
+
columnsWithoutSize.map((col) => [col.id, numberOfUnitsById[col.id]])
|
|
23056
|
+
);
|
|
23057
|
+
const constrainedWidths = /* @__PURE__ */ new Map();
|
|
23058
|
+
let changed = true;
|
|
23059
|
+
while (changed && unitsMap.size > 0) {
|
|
23060
|
+
changed = false;
|
|
23061
|
+
const totalUnits = [...unitsMap.values()].reduce((s, v) => s + v, 0);
|
|
23062
|
+
if (totalUnits === 0) break;
|
|
23063
|
+
for (const [id, units] of [...unitsMap.entries()]) {
|
|
23064
|
+
const col = columnsWithoutSize.find((c) => c.id === id);
|
|
23065
|
+
const allocated = remaining * (units / totalUnits);
|
|
23066
|
+
const maxSize = col.columnDef.maxSize ?? Number.MAX_SAFE_INTEGER;
|
|
23067
|
+
const minSize = col.columnDef.minSize ?? 20;
|
|
23068
|
+
if (allocated > maxSize) {
|
|
23069
|
+
constrainedWidths.set(id, maxSize);
|
|
23070
|
+
remaining -= maxSize;
|
|
23071
|
+
unitsMap.delete(id);
|
|
23072
|
+
changed = true;
|
|
23073
|
+
break;
|
|
23074
|
+
} else if (allocated < minSize) {
|
|
23075
|
+
constrainedWidths.set(id, minSize);
|
|
23076
|
+
remaining -= minSize;
|
|
23077
|
+
unitsMap.delete(id);
|
|
23078
|
+
changed = true;
|
|
23079
|
+
break;
|
|
23080
|
+
}
|
|
23081
|
+
}
|
|
23082
|
+
}
|
|
23083
|
+
const finalTotalUnits = [...unitsMap.values()].reduce((s, v) => s + v, 0);
|
|
23084
|
+
for (const [id, units] of unitsMap.entries()) {
|
|
23085
|
+
widths[id] = Math.floor(remaining * (units / (finalTotalUnits || 1)));
|
|
23086
|
+
}
|
|
23087
|
+
for (const [id, w] of constrainedWidths.entries()) {
|
|
23088
|
+
widths[id] = w;
|
|
23089
|
+
}
|
|
22906
23090
|
flushSync(() => {
|
|
22907
23091
|
setColumnSizing((prev) => {
|
|
22908
23092
|
return {
|
|
@@ -22927,7 +23111,7 @@ const Table = forwardRef(
|
|
|
22927
23111
|
pageIndex: pagination2.pageIndex,
|
|
22928
23112
|
pageSize: pagination2.pageSize,
|
|
22929
23113
|
itemCount: safeData.length,
|
|
22930
|
-
pageSizeOptions,
|
|
23114
|
+
pageSizeOptions: effectivePageSizeOptions,
|
|
22931
23115
|
onPageDidChange: (page) => table2.setPageIndex(page),
|
|
22932
23116
|
onPageSizeDidChange: (size) => table2.setPageSize(size),
|
|
22933
23117
|
showCurrentPage,
|
|
@@ -23275,7 +23459,8 @@ const defaultProps$N = {
|
|
|
23275
23459
|
paste: "CmdOrCtrl+V",
|
|
23276
23460
|
delete: "Delete"
|
|
23277
23461
|
},
|
|
23278
|
-
alwaysShowHeader: false
|
|
23462
|
+
alwaysShowHeader: false,
|
|
23463
|
+
striped: false
|
|
23279
23464
|
};
|
|
23280
23465
|
const COMP$11 = "Table";
|
|
23281
23466
|
const userSelectValues$1 = [
|
|
@@ -23310,7 +23495,7 @@ const TableMd = createMetadata({
|
|
|
23310
23495
|
defaultValue: defaultProps$N.idKey
|
|
23311
23496
|
},
|
|
23312
23497
|
isPaginated: {
|
|
23313
|
-
description: `This property adds pagination controls to the \`${COMP$11}
|
|
23498
|
+
description: `This property adds pagination controls to the \`${COMP$11}\`. When enabled, the pagination bar is automatically hidden if all rows fit on a single page. You can omit this property and set only \`pageSize\` instead — pagination will then activate automatically when the data length exceeds the page size and hide itself when it does not.`,
|
|
23314
23499
|
valueType: "boolean",
|
|
23315
23500
|
defaultValue: defaultProps$N.isPaginated
|
|
23316
23501
|
},
|
|
@@ -23329,7 +23514,7 @@ const TableMd = createMetadata({
|
|
|
23329
23514
|
`The name of a global variable to synchronize the table's selection state with. The named variable must reference an object; the table will read from and write to its 'selectedIds' property. When provided, this takes precedence over both \`initiallySelected\` and \`syncWithAppState\`. Multiple tables sharing the same variable name will keep their selections in sync automatically. A runtime error is signalled if the value is not a valid JavaScript variable name.`
|
|
23330
23515
|
),
|
|
23331
23516
|
pageSize: d(
|
|
23332
|
-
`This property defines the number of rows to display per page
|
|
23517
|
+
`This property defines the number of rows to display per page. When set without also setting \`isPaginated\`, pagination is activated automatically whenever the number of data rows exceeds this value and suppressed otherwise. This makes \`pageSize\` the minimal way to get auto-activating, auto-hiding pagination: no conditional expressions on \`isPaginated\` or the position props are needed.`
|
|
23333
23518
|
),
|
|
23334
23519
|
pageSizeOptions: {
|
|
23335
23520
|
description: "This property holds an array of page sizes (numbers) the user can select for pagination. If this property is not defined, the component allows only a page size of 10 items."
|
|
@@ -23490,6 +23675,11 @@ const TableMd = createMetadata({
|
|
|
23490
23675
|
description: "This property indicates whether the table header is always visible when scrolling and no height is specified. When set to `true`, the header is sticky and always visible on page scroll. Otherwise, it scrolls with the content and may not be visible when scrolled down.",
|
|
23491
23676
|
valueType: "boolean",
|
|
23492
23677
|
defaultValue: defaultProps$N.alwaysShowHeader
|
|
23678
|
+
},
|
|
23679
|
+
striped: {
|
|
23680
|
+
description: "When set to `true`, the table rows alternate between the `backgroundColor-evenRow-Table` and `backgroundColor-oddRow-Table` theme variables, creating a striped appearance.",
|
|
23681
|
+
valueType: "boolean",
|
|
23682
|
+
defaultValue: defaultProps$N.striped
|
|
23493
23683
|
}
|
|
23494
23684
|
},
|
|
23495
23685
|
events: {
|
|
@@ -23626,7 +23816,9 @@ const TableMd = createMetadata({
|
|
|
23626
23816
|
[`borderRadius-${COMP$11}`]: "$borderRadius",
|
|
23627
23817
|
[`userSelect-heading-${COMP$11}`]: "text",
|
|
23628
23818
|
[`userSelect-cell-${COMP$11}`]: "none",
|
|
23629
|
-
[`userSelect-row-${COMP$11}`]: "none"
|
|
23819
|
+
[`userSelect-row-${COMP$11}`]: "none",
|
|
23820
|
+
[`backgroundColor-evenRow-${COMP$11}`]: `$backgroundColor-row-${COMP$11}`,
|
|
23821
|
+
[`backgroundColor-oddRow-${COMP$11}`]: `$color-surface-100`
|
|
23630
23822
|
}
|
|
23631
23823
|
});
|
|
23632
23824
|
const TableWithColumns = memo(
|
|
@@ -23817,7 +24009,8 @@ const TableWithColumns = memo(
|
|
|
23817
24009
|
node.props.alwaysShowSelectionCheckboxes
|
|
23818
24010
|
),
|
|
23819
24011
|
keyBindings: extractValue(node.props.keyBindings),
|
|
23820
|
-
alwaysShowHeader: extractValue.asOptionalBoolean(node.props.alwaysShowHeader)
|
|
24012
|
+
alwaysShowHeader: extractValue.asOptionalBoolean(node.props.alwaysShowHeader),
|
|
24013
|
+
striped: extractValue.asOptionalBoolean(node.props.striped)
|
|
23821
24014
|
}
|
|
23822
24015
|
)
|
|
23823
24016
|
] });
|
|
@@ -24845,7 +25038,7 @@ const ModalDialog = React__default.forwardRef(
|
|
|
24845
25038
|
ref: composedRef,
|
|
24846
25039
|
style: { ...style2, gap: void 0 },
|
|
24847
25040
|
children: [
|
|
24848
|
-
|
|
25041
|
+
!!title2 || !!titleTemplate ? /* @__PURE__ */ jsx(Part, { partId: PART_TITLE, children: /* @__PURE__ */ jsx(Dialog$1.Title, { style: { marginTop: 0 }, children: /* @__PURE__ */ jsx("header", { id: "dialogTitle", className: styles$I.dialogTitle, children: titleTemplate || title2 }) }) }) : /* @__PURE__ */ jsx(VisuallyHidden$2, { children: /* @__PURE__ */ jsx(Dialog$1.Title, {}) }),
|
|
24849
25042
|
/* @__PURE__ */ jsx("div", { className: styles$I.innerContent, style: { gap: style2?.gap }, children: /* @__PURE__ */ jsx(ModalVisibilityContext.Provider, { value: modalVisibilityContextValue, children }) }),
|
|
24850
25043
|
closeButtonVisible && /* @__PURE__ */ jsx(Dialog$1.Close, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
24851
25044
|
ThemedButton,
|
|
@@ -29451,6 +29644,7 @@ const TextBox = forwardRef(function TextBox2({
|
|
|
29451
29644
|
id,
|
|
29452
29645
|
ref: inputRef,
|
|
29453
29646
|
type: actualType,
|
|
29647
|
+
"aria-label": rest["aria-label"],
|
|
29454
29648
|
className: classnames(styles$A.input, {
|
|
29455
29649
|
[styles$A.readOnly]: readOnly2
|
|
29456
29650
|
}),
|
|
@@ -32435,10 +32629,12 @@ const Form = forwardRef(function({
|
|
|
32435
32629
|
errorMessages2.push(...msgs);
|
|
32436
32630
|
}
|
|
32437
32631
|
}
|
|
32632
|
+
const formAriaLabel = rest["aria-label"] || id;
|
|
32438
32633
|
pushXsLog2(createLogEntry2("validation:error", {
|
|
32439
32634
|
component: "Form",
|
|
32440
|
-
componentLabel:
|
|
32441
|
-
|
|
32635
|
+
componentLabel: formAriaLabel || void 0,
|
|
32636
|
+
ariaName: formAriaLabel || void 0,
|
|
32637
|
+
displayLabel: `${formAriaLabel || "Form"}: ${errorFields.length} error${errorFields.length > 1 ? "s" : ""}: ${errorFields.join(", ")}`,
|
|
32442
32638
|
errorFields,
|
|
32443
32639
|
errorMessages: errorMessages2
|
|
32444
32640
|
}));
|
|
@@ -35960,6 +36156,23 @@ const NavPanelMd = createMetadata({
|
|
|
35960
36156
|
description: `When enabled, displays gradient fade indicators at the top and bottom edges of the navigation panel when scrollable content extends beyond the visible area. The fade effect provides a visual cue to users that additional content is available by scrolling. The indicators automatically appear and disappear based on the scroll position. This property only works with "overlay", "whenMouseOver", and "whenScrolling" scroll styles. On mobile/touch devices, this property has no effect.`,
|
|
35961
36157
|
valueType: "boolean",
|
|
35962
36158
|
defaultValue: defaultProps$W.showScrollerFade
|
|
36159
|
+
},
|
|
36160
|
+
syncWithContent: {
|
|
36161
|
+
description: `When enabled, any page navigation automatically scrolls the corresponding navigation item within the NavPanel into view, keeping the active link visible.`,
|
|
36162
|
+
valueType: "boolean",
|
|
36163
|
+
defaultValue: defaultProps$W.syncWithContent
|
|
36164
|
+
},
|
|
36165
|
+
syncScrollBehavior: {
|
|
36166
|
+
description: `Controls the scroll animation when \`syncWithContent\` is enabled. Use \`"smooth"\` for an animated scroll or \`"instant"\` to jump immediately to the active item without animation.`,
|
|
36167
|
+
valueType: "string",
|
|
36168
|
+
availableValues: ["smooth", "instant"],
|
|
36169
|
+
defaultValue: defaultProps$W.syncScrollBehavior
|
|
36170
|
+
},
|
|
36171
|
+
syncScrollPosition: {
|
|
36172
|
+
description: `Controls the vertical alignment of the active navigation item within the NavPanel when \`syncWithContent\` scrolls it into view. \`"center"\` places the item in the middle of the visible area; \`"nearest"\` scrolls the minimum amount needed; \`"start"\` aligns it to the top; \`"end"\` aligns it to the bottom.`,
|
|
36173
|
+
valueType: "string",
|
|
36174
|
+
availableValues: ["center", "nearest", "start", "end"],
|
|
36175
|
+
defaultValue: defaultProps$W.syncScrollPosition
|
|
35963
36176
|
}
|
|
35964
36177
|
},
|
|
35965
36178
|
themeVars: parseScssVar(styles$U.themeVars),
|
|
@@ -36014,6 +36227,15 @@ function NavPanelWithBuiltNavHierarchy({
|
|
|
36014
36227
|
defaultProps$W.scrollStyle
|
|
36015
36228
|
);
|
|
36016
36229
|
const showScrollerFade = extractValue.asOptionalBoolean(node.props.showScrollerFade);
|
|
36230
|
+
const syncWithContent = extractValue.asOptionalBoolean(node.props.syncWithContent);
|
|
36231
|
+
const syncScrollBehavior = extractValue.asOptionalString(
|
|
36232
|
+
node.props.syncScrollBehavior,
|
|
36233
|
+
defaultProps$W.syncScrollBehavior
|
|
36234
|
+
);
|
|
36235
|
+
const syncScrollPosition = extractValue.asOptionalString(
|
|
36236
|
+
node.props.syncScrollPosition,
|
|
36237
|
+
defaultProps$W.syncScrollPosition
|
|
36238
|
+
);
|
|
36017
36239
|
const footerContent = node.props.footerTemplate ? renderChild2(node.props.footerTemplate) : void 0;
|
|
36018
36240
|
return /* @__PURE__ */ jsx(
|
|
36019
36241
|
NavPanel,
|
|
@@ -36027,6 +36249,9 @@ function NavPanelWithBuiltNavHierarchy({
|
|
|
36027
36249
|
navLinks,
|
|
36028
36250
|
scrollStyle,
|
|
36029
36251
|
showScrollerFade,
|
|
36252
|
+
syncWithContent,
|
|
36253
|
+
syncScrollBehavior,
|
|
36254
|
+
syncScrollPosition,
|
|
36030
36255
|
children: renderChild2(expandedChildren)
|
|
36031
36256
|
}
|
|
36032
36257
|
);
|
|
@@ -38463,7 +38688,8 @@ function resolveThemeVarsWithCssVars(theme2) {
|
|
|
38463
38688
|
return input2;
|
|
38464
38689
|
}
|
|
38465
38690
|
}
|
|
38466
|
-
const
|
|
38691
|
+
const DEFAULT_NOTIFICATION_POSITION = "top-end";
|
|
38692
|
+
const STANDARD_CONTAINER_STYLE = {
|
|
38467
38693
|
top: 40,
|
|
38468
38694
|
right: 40,
|
|
38469
38695
|
bottom: 40,
|
|
@@ -38471,8 +38697,28 @@ const TOASTER_CONTAINER_STYLE = {
|
|
|
38471
38697
|
position: "absolute",
|
|
38472
38698
|
overflowY: "hidden"
|
|
38473
38699
|
};
|
|
38700
|
+
function resolveToasterProps(position) {
|
|
38701
|
+
switch (position) {
|
|
38702
|
+
case "top-start":
|
|
38703
|
+
return { position: "top-left", containerStyle: STANDARD_CONTAINER_STYLE };
|
|
38704
|
+
case "top-center":
|
|
38705
|
+
return { position: "top-center", containerStyle: STANDARD_CONTAINER_STYLE };
|
|
38706
|
+
case "top-end":
|
|
38707
|
+
return { position: "top-right", containerStyle: STANDARD_CONTAINER_STYLE };
|
|
38708
|
+
case "bottom-start":
|
|
38709
|
+
return { position: "bottom-left", containerStyle: STANDARD_CONTAINER_STYLE };
|
|
38710
|
+
case "bottom-center":
|
|
38711
|
+
return { position: "bottom-center", containerStyle: STANDARD_CONTAINER_STYLE };
|
|
38712
|
+
case "bottom-end":
|
|
38713
|
+
default:
|
|
38714
|
+
return { position: "bottom-right", containerStyle: STANDARD_CONTAINER_STYLE };
|
|
38715
|
+
}
|
|
38716
|
+
}
|
|
38474
38717
|
let toasterMounted = false;
|
|
38475
|
-
const NotificationToast = ({
|
|
38718
|
+
const NotificationToast = ({
|
|
38719
|
+
toastDuration,
|
|
38720
|
+
notificationPosition = DEFAULT_NOTIFICATION_POSITION
|
|
38721
|
+
}) => {
|
|
38476
38722
|
const [shouldRender, setShouldRender] = useState(false);
|
|
38477
38723
|
const { root: root2 } = useTheme();
|
|
38478
38724
|
useEffect(() => {
|
|
@@ -38482,12 +38728,13 @@ const NotificationToast = ({ toastDuration }) => {
|
|
|
38482
38728
|
}
|
|
38483
38729
|
}, []);
|
|
38484
38730
|
if (!shouldRender) return null;
|
|
38731
|
+
const { position, containerStyle } = resolveToasterProps(notificationPosition);
|
|
38485
38732
|
return createPortal(
|
|
38486
38733
|
/* @__PURE__ */ jsx(
|
|
38487
38734
|
Toaster,
|
|
38488
38735
|
{
|
|
38489
|
-
position
|
|
38490
|
-
containerStyle
|
|
38736
|
+
position,
|
|
38737
|
+
containerStyle,
|
|
38491
38738
|
toastOptions: { style: { padding: "12px 16px" }, duration: toastDuration },
|
|
38492
38739
|
children: (t) => /* @__PURE__ */ jsx("div", { onClick: () => toast.dismiss(t.id), children: /* @__PURE__ */ jsx(ToastBar, { position: t.position, toast: t, style: { wordBreak: "break-word" }, children: ({ icon: icon2, message }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
38493
38740
|
icon2,
|
|
@@ -38502,6 +38749,7 @@ const defaultProps$j = {
|
|
|
38502
38749
|
isRoot: false,
|
|
38503
38750
|
applyIf: true,
|
|
38504
38751
|
toastDuration: 5e3,
|
|
38752
|
+
notificationPosition: DEFAULT_NOTIFICATION_POSITION,
|
|
38505
38753
|
themeVars: EMPTY_OBJECT,
|
|
38506
38754
|
root: false
|
|
38507
38755
|
};
|
|
@@ -38514,6 +38762,7 @@ function Theme({
|
|
|
38514
38762
|
node,
|
|
38515
38763
|
tone,
|
|
38516
38764
|
toastDuration = defaultProps$j.toastDuration,
|
|
38765
|
+
notificationPosition = defaultProps$j.notificationPosition,
|
|
38517
38766
|
themeVars: themeVars2 = defaultProps$j.themeVars,
|
|
38518
38767
|
layoutContext,
|
|
38519
38768
|
children
|
|
@@ -38555,15 +38804,29 @@ function Theme({
|
|
|
38555
38804
|
const componentRegistry = useComponentRegistry();
|
|
38556
38805
|
const transformedStyles = useMemo(() => {
|
|
38557
38806
|
const filteredThemeCssVars = {};
|
|
38558
|
-
Object.
|
|
38559
|
-
|
|
38560
|
-
|
|
38561
|
-
|
|
38562
|
-
|
|
38563
|
-
const
|
|
38564
|
-
|
|
38565
|
-
|
|
38566
|
-
|
|
38807
|
+
const needsCompiledVars = tone !== void 0 || id !== void 0 || Object.keys(themeVars2).some((key) => !parseHVar(key)?.component);
|
|
38808
|
+
if (needsCompiledVars) {
|
|
38809
|
+
Object.entries({ ...themeCssVars, ...themeVars2 }).forEach(([key, value]) => {
|
|
38810
|
+
const rawKey = key.replace(/^--[^-]+-/, "");
|
|
38811
|
+
let componentName = parseHVar(rawKey)?.component;
|
|
38812
|
+
const registeredComponent = componentRegistry.lookupComponentRenderer(componentName || "");
|
|
38813
|
+
const inComponentThemeVars = componentRegistry.componentThemeVars.has(rawKey);
|
|
38814
|
+
const allowed = !componentName || // Compound (user-defined) components pass through unconditionally as a
|
|
38815
|
+
// safety net for theme vars that aren't statically analyzable (e.g.,
|
|
38816
|
+
// dynamic expressions). The primary optimization path is via
|
|
38817
|
+
// componentThemeVars in ThemeProvider, populated from auto-generated
|
|
38818
|
+
// metadata in registerCompoundComponentRenderer.
|
|
38819
|
+
registeredComponent?.isCompoundComponent || componentName === "Input" || componentName === "Heading" || componentName === "Footer" || // Also allow any theme var explicitly referenced inside a user-defined
|
|
38820
|
+
// component's template (collected by generateUdComponentMetadata).
|
|
38821
|
+
// e.g. width="$width-Inc" inside IncrementButton → "width-Inc" is allowed
|
|
38822
|
+
// even though "Inc" is not a registered component name.
|
|
38823
|
+
inComponentThemeVars;
|
|
38824
|
+
if (allowed) {
|
|
38825
|
+
const resolvedValue = allThemeVarsWithResolvedHierarchicalVars[rawKey] ?? value;
|
|
38826
|
+
filteredThemeCssVars[key] = resolvedValue;
|
|
38827
|
+
}
|
|
38828
|
+
});
|
|
38829
|
+
}
|
|
38567
38830
|
Object.entries(themeVars2).forEach(([key, value]) => {
|
|
38568
38831
|
filteredThemeCssVars[`--${THEME_VAR_PREFIX$1}-${key}`] = value;
|
|
38569
38832
|
});
|
|
@@ -38607,7 +38870,15 @@ function Theme({
|
|
|
38607
38870
|
};
|
|
38608
38871
|
}
|
|
38609
38872
|
return ret;
|
|
38610
|
-
}, [
|
|
38873
|
+
}, [
|
|
38874
|
+
themeCssVars,
|
|
38875
|
+
themeVars2,
|
|
38876
|
+
themeTone,
|
|
38877
|
+
isRoot,
|
|
38878
|
+
componentRegistry,
|
|
38879
|
+
allThemeVarsWithResolvedHierarchicalVars,
|
|
38880
|
+
getThemeVar
|
|
38881
|
+
]);
|
|
38611
38882
|
const className = useStyles(transformedStyles, { layer: "themes" });
|
|
38612
38883
|
const [currentThemeRoot, setCurrentThemeRoot] = useState(root2);
|
|
38613
38884
|
const currentThemeContextValue = useMemo(() => {
|
|
@@ -38629,13 +38900,11 @@ function Theme({
|
|
|
38629
38900
|
allThemeVarsWithResolvedHierarchicalVars,
|
|
38630
38901
|
currentTheme,
|
|
38631
38902
|
currentThemeRoot,
|
|
38632
|
-
fontLinks,
|
|
38633
38903
|
getResourceUrl,
|
|
38634
38904
|
getThemeVar,
|
|
38635
38905
|
themeCssVars,
|
|
38636
38906
|
themeTone,
|
|
38637
|
-
disableInlineStyle
|
|
38638
|
-
componentRegistry
|
|
38907
|
+
disableInlineStyle
|
|
38639
38908
|
]);
|
|
38640
38909
|
const { indexing } = useIndexerContext();
|
|
38641
38910
|
const rootClasses = useMemo(() => {
|
|
@@ -38666,7 +38935,7 @@ function Theme({
|
|
|
38666
38935
|
renderChild2 && renderChild2(node.children),
|
|
38667
38936
|
children
|
|
38668
38937
|
] }),
|
|
38669
|
-
/* @__PURE__ */ jsx(NotificationToast, { toastDuration })
|
|
38938
|
+
/* @__PURE__ */ jsx(NotificationToast, { toastDuration, notificationPosition })
|
|
38670
38939
|
] });
|
|
38671
38940
|
}
|
|
38672
38941
|
const needsWrapper = id !== void 0 || Object.keys(themeVars2).length > 0 || Object.keys(themeCssVars).length > 0;
|
|
@@ -38755,6 +39024,7 @@ const themeComponentRenderer = wrapComponent(
|
|
|
38755
39024
|
customRender(_props, { node, extractValue, renderChild: renderChild2, layoutContext, appContext }) {
|
|
38756
39025
|
const { tone, ...restProps } = node.props;
|
|
38757
39026
|
const toastDuration = appContext?.appGlobals?.notifications?.duration;
|
|
39027
|
+
const notificationPosition = appContext?.appGlobals?.notifications?.position;
|
|
38758
39028
|
let themeTone = extractValue.asOptionalString(tone);
|
|
38759
39029
|
if (themeTone && themeTone !== "dark") {
|
|
38760
39030
|
themeTone = "light";
|
|
@@ -38781,6 +39051,7 @@ const themeComponentRenderer = wrapComponent(
|
|
|
38781
39051
|
renderChild: renderChild2,
|
|
38782
39052
|
tone: themeTone,
|
|
38783
39053
|
toastDuration,
|
|
39054
|
+
notificationPosition,
|
|
38784
39055
|
themeVars: themeVars2,
|
|
38785
39056
|
node
|
|
38786
39057
|
}
|
|
@@ -38909,7 +39180,11 @@ const columnComponentRenderer = wrapComponent(COMP$r, Column, ColumnMd, {
|
|
|
38909
39180
|
const canSortDefault = appContext?.appGlobals?.columnCanSortDefault ?? defaultProps$i.canSort;
|
|
38910
39181
|
const horizontalAlignment = extractValue.asOptionalString(node.props.horizontalAlignment);
|
|
38911
39182
|
const verticalAlignment = extractValue.asOptionalString(node.props.verticalAlignment);
|
|
39183
|
+
const backgroundColor = extractValue.asOptionalString(node.props.backgroundColor);
|
|
38912
39184
|
const style2 = {};
|
|
39185
|
+
if (backgroundColor) {
|
|
39186
|
+
style2.backgroundColor = backgroundColor;
|
|
39187
|
+
}
|
|
38913
39188
|
if (horizontalAlignment) {
|
|
38914
39189
|
style2.display = "flex";
|
|
38915
39190
|
style2.justifyContent = horizontalAlignment === "start" ? "flex-start" : horizontalAlignment === "center" ? "center" : horizontalAlignment === "end" ? "flex-end" : horizontalAlignment;
|
|
@@ -38925,7 +39200,6 @@ const columnComponentRenderer = wrapComponent(COMP$r, Column, ColumnMd, {
|
|
|
38925
39200
|
return /* @__PURE__ */ jsx(
|
|
38926
39201
|
Column,
|
|
38927
39202
|
{
|
|
38928
|
-
className: classes?.[COMPONENT_PART_KEY],
|
|
38929
39203
|
style: Object.keys(style2).length > 0 ? style2 : void 0,
|
|
38930
39204
|
header: extractValue.asDisplayText(node.props.header),
|
|
38931
39205
|
accessorKey: extractValue.asOptionalString(node.props.bindTo),
|
|
@@ -39965,6 +40239,295 @@ async function callApi({ state, appContext, lookupAction, getCurrentState, apiIn
|
|
|
39965
40239
|
}
|
|
39966
40240
|
}
|
|
39967
40241
|
const apiAction = createAction("callApi", callApi);
|
|
40242
|
+
const THEME_VAR_REGEX = /\$([a-zA-Z][a-zA-Z0-9_-]*)/g;
|
|
40243
|
+
function extractPropsFromExpression(expr) {
|
|
40244
|
+
const props = /* @__PURE__ */ new Set();
|
|
40245
|
+
walkExpression(expr, props);
|
|
40246
|
+
return [...props];
|
|
40247
|
+
}
|
|
40248
|
+
function walkExpression(expr, props) {
|
|
40249
|
+
switch (expr.type) {
|
|
40250
|
+
case T_MEMBER_ACCESS_EXPRESSION:
|
|
40251
|
+
if (expr.obj.type === T_IDENTIFIER && expr.obj.name === "$props") {
|
|
40252
|
+
props.add(expr.member);
|
|
40253
|
+
} else {
|
|
40254
|
+
walkExpression(expr.obj, props);
|
|
40255
|
+
}
|
|
40256
|
+
break;
|
|
40257
|
+
case T_CALCULATED_MEMBER_ACCESS_EXPRESSION:
|
|
40258
|
+
walkExpression(expr.obj, props);
|
|
40259
|
+
walkExpression(expr.member, props);
|
|
40260
|
+
break;
|
|
40261
|
+
case T_BINARY_EXPRESSION:
|
|
40262
|
+
walkExpression(expr.left, props);
|
|
40263
|
+
walkExpression(expr.right, props);
|
|
40264
|
+
break;
|
|
40265
|
+
case T_UNARY_EXPRESSION:
|
|
40266
|
+
walkExpression(expr.expr, props);
|
|
40267
|
+
break;
|
|
40268
|
+
case T_SEQUENCE_EXPRESSION:
|
|
40269
|
+
for (const e of expr.exprs) walkExpression(e, props);
|
|
40270
|
+
break;
|
|
40271
|
+
case T_CONDITIONAL_EXPRESSION:
|
|
40272
|
+
walkExpression(expr.cond, props);
|
|
40273
|
+
walkExpression(expr.thenE, props);
|
|
40274
|
+
walkExpression(expr.elseE, props);
|
|
40275
|
+
break;
|
|
40276
|
+
case T_FUNCTION_INVOCATION_EXPRESSION:
|
|
40277
|
+
walkExpression(expr.obj, props);
|
|
40278
|
+
if (expr.arguments) {
|
|
40279
|
+
for (const arg of expr.arguments) walkExpression(arg, props);
|
|
40280
|
+
}
|
|
40281
|
+
break;
|
|
40282
|
+
case T_TEMPLATE_LITERAL_EXPRESSION:
|
|
40283
|
+
for (const seg of expr.segments) {
|
|
40284
|
+
if ("type" in seg && seg.type !== T_LITERAL) {
|
|
40285
|
+
walkExpression(seg, props);
|
|
40286
|
+
}
|
|
40287
|
+
}
|
|
40288
|
+
break;
|
|
40289
|
+
case T_ARRAY_LITERAL:
|
|
40290
|
+
for (const item2 of expr.items) walkExpression(item2, props);
|
|
40291
|
+
break;
|
|
40292
|
+
case T_OBJECT_LITERAL:
|
|
40293
|
+
for (const prop of expr.props) {
|
|
40294
|
+
if (Array.isArray(prop)) {
|
|
40295
|
+
walkExpression(prop[0], props);
|
|
40296
|
+
walkExpression(prop[1], props);
|
|
40297
|
+
} else {
|
|
40298
|
+
walkExpression(prop, props);
|
|
40299
|
+
}
|
|
40300
|
+
}
|
|
40301
|
+
break;
|
|
40302
|
+
case T_SPREAD_EXPRESSION:
|
|
40303
|
+
walkExpression(expr.expr, props);
|
|
40304
|
+
break;
|
|
40305
|
+
case T_ASSIGNMENT_EXPRESSION:
|
|
40306
|
+
walkExpression(expr.leftValue, props);
|
|
40307
|
+
walkExpression(expr.expr, props);
|
|
40308
|
+
break;
|
|
40309
|
+
case T_ARROW_EXPRESSION:
|
|
40310
|
+
break;
|
|
40311
|
+
case T_PREFIX_OP_EXPRESSION:
|
|
40312
|
+
case T_POSTFIX_OP_EXPRESSION:
|
|
40313
|
+
walkExpression(expr.expr, props);
|
|
40314
|
+
break;
|
|
40315
|
+
case T_AWAIT_EXPRESSION:
|
|
40316
|
+
walkExpression(expr.expr, props);
|
|
40317
|
+
break;
|
|
40318
|
+
case T_NEW_EXPRESSION:
|
|
40319
|
+
walkExpression(expr.callee, props);
|
|
40320
|
+
if (expr.arguments) {
|
|
40321
|
+
for (const arg of expr.arguments) walkExpression(arg, props);
|
|
40322
|
+
}
|
|
40323
|
+
break;
|
|
40324
|
+
case T_REACTIVE_VAR_DECLARATION:
|
|
40325
|
+
walkExpression(expr.expr, props);
|
|
40326
|
+
break;
|
|
40327
|
+
case T_VAR_DECLARATION:
|
|
40328
|
+
if (expr.expr) walkExpression(expr.expr, props);
|
|
40329
|
+
break;
|
|
40330
|
+
}
|
|
40331
|
+
}
|
|
40332
|
+
function extractThemeVarsFromValue(value) {
|
|
40333
|
+
if (!value || typeof value !== "string") return [];
|
|
40334
|
+
const vars2 = /* @__PURE__ */ new Set();
|
|
40335
|
+
let match;
|
|
40336
|
+
THEME_VAR_REGEX.lastIndex = 0;
|
|
40337
|
+
while ((match = THEME_VAR_REGEX.exec(value)) !== null) {
|
|
40338
|
+
vars2.add(match[1]);
|
|
40339
|
+
}
|
|
40340
|
+
return [...vars2];
|
|
40341
|
+
}
|
|
40342
|
+
function isParsedPropertyValue(value) {
|
|
40343
|
+
return typeof value === "object" && value !== null && value.__PARSED === true && "segments" in value;
|
|
40344
|
+
}
|
|
40345
|
+
function isParsedEventValue$1(value) {
|
|
40346
|
+
return typeof value === "object" && value !== null && value.__PARSED === true && "statements" in value;
|
|
40347
|
+
}
|
|
40348
|
+
function isComponentDef(value) {
|
|
40349
|
+
return typeof value === "object" && value !== null && typeof value.type === "string";
|
|
40350
|
+
}
|
|
40351
|
+
function walkComponentDefTree(def2, visitor) {
|
|
40352
|
+
visitor(def2);
|
|
40353
|
+
if (Array.isArray(def2.children)) {
|
|
40354
|
+
for (const child of def2.children) {
|
|
40355
|
+
if (isComponentDef(child)) {
|
|
40356
|
+
walkComponentDefTree(child, visitor);
|
|
40357
|
+
}
|
|
40358
|
+
}
|
|
40359
|
+
}
|
|
40360
|
+
if (Array.isArray(def2.loaders)) {
|
|
40361
|
+
for (const loader of def2.loaders) {
|
|
40362
|
+
if (isComponentDef(loader)) {
|
|
40363
|
+
walkComponentDefTree(loader, visitor);
|
|
40364
|
+
}
|
|
40365
|
+
}
|
|
40366
|
+
}
|
|
40367
|
+
if (def2.slots) {
|
|
40368
|
+
for (const slotChildren of Object.values(def2.slots)) {
|
|
40369
|
+
if (Array.isArray(slotChildren)) {
|
|
40370
|
+
for (const child of slotChildren) {
|
|
40371
|
+
if (isComponentDef(child)) {
|
|
40372
|
+
walkComponentDefTree(child, visitor);
|
|
40373
|
+
}
|
|
40374
|
+
}
|
|
40375
|
+
}
|
|
40376
|
+
}
|
|
40377
|
+
}
|
|
40378
|
+
if (def2.props) {
|
|
40379
|
+
for (const value of Object.values(def2.props)) {
|
|
40380
|
+
if (isComponentDef(value)) {
|
|
40381
|
+
walkComponentDefTree(value, visitor);
|
|
40382
|
+
}
|
|
40383
|
+
}
|
|
40384
|
+
}
|
|
40385
|
+
if (def2.events) {
|
|
40386
|
+
for (const value of Object.values(def2.events)) {
|
|
40387
|
+
if (isComponentDef(value)) {
|
|
40388
|
+
walkComponentDefTree(value, visitor);
|
|
40389
|
+
}
|
|
40390
|
+
}
|
|
40391
|
+
}
|
|
40392
|
+
}
|
|
40393
|
+
function collectPropsFromComponentDef(def2) {
|
|
40394
|
+
const found = /* @__PURE__ */ new Set();
|
|
40395
|
+
walkComponentDefTree(def2, (node) => {
|
|
40396
|
+
extractPropsFromRecord(node.props, found);
|
|
40397
|
+
extractPropsFromRecord(node.vars, found);
|
|
40398
|
+
extractPropsFromEventRecord(node.events, found);
|
|
40399
|
+
extractPropsFromRawString(node.when, found);
|
|
40400
|
+
});
|
|
40401
|
+
return [...found];
|
|
40402
|
+
}
|
|
40403
|
+
function extractPropsFromRecord(record, out) {
|
|
40404
|
+
if (!record) return;
|
|
40405
|
+
for (const value of Object.values(record)) {
|
|
40406
|
+
if (typeof value === "string") {
|
|
40407
|
+
try {
|
|
40408
|
+
const segments = parseParameterString(value);
|
|
40409
|
+
for (const segment of segments) {
|
|
40410
|
+
if (segment.type === "expression") {
|
|
40411
|
+
for (const prop of extractPropsFromExpression(segment.value)) {
|
|
40412
|
+
out.add(prop);
|
|
40413
|
+
}
|
|
40414
|
+
}
|
|
40415
|
+
}
|
|
40416
|
+
} catch {
|
|
40417
|
+
}
|
|
40418
|
+
} else if (isParsedPropertyValue(value) && value.segments) {
|
|
40419
|
+
for (const segment of value.segments) {
|
|
40420
|
+
if (segment.expr) {
|
|
40421
|
+
for (const prop of extractPropsFromExpression(segment.expr)) {
|
|
40422
|
+
out.add(prop);
|
|
40423
|
+
}
|
|
40424
|
+
}
|
|
40425
|
+
}
|
|
40426
|
+
}
|
|
40427
|
+
}
|
|
40428
|
+
}
|
|
40429
|
+
function extractPropsFromEventRecord(record, out) {
|
|
40430
|
+
if (!record) return;
|
|
40431
|
+
for (const value of Object.values(record)) {
|
|
40432
|
+
if (isParsedEventValue$1(value) && value.statements) {
|
|
40433
|
+
for (const stmt of value.statements) {
|
|
40434
|
+
extractPropsFromStatement(stmt, out);
|
|
40435
|
+
}
|
|
40436
|
+
}
|
|
40437
|
+
}
|
|
40438
|
+
}
|
|
40439
|
+
function extractPropsFromRawString(value, out) {
|
|
40440
|
+
if (typeof value !== "string") return;
|
|
40441
|
+
try {
|
|
40442
|
+
const segments = parseParameterString(value);
|
|
40443
|
+
for (const segment of segments) {
|
|
40444
|
+
if (segment.type === "expression") {
|
|
40445
|
+
for (const prop of extractPropsFromExpression(segment.value)) {
|
|
40446
|
+
out.add(prop);
|
|
40447
|
+
}
|
|
40448
|
+
}
|
|
40449
|
+
}
|
|
40450
|
+
} catch {
|
|
40451
|
+
}
|
|
40452
|
+
}
|
|
40453
|
+
function extractPropsFromStatement(stmt, out) {
|
|
40454
|
+
if (!stmt || typeof stmt !== "object") return;
|
|
40455
|
+
switch (stmt.type) {
|
|
40456
|
+
case "ExpressionStatement":
|
|
40457
|
+
case "ArrowExpressionStatement":
|
|
40458
|
+
if (stmt.expr) extractPropsFromExprIntoSet(stmt.expr, out);
|
|
40459
|
+
break;
|
|
40460
|
+
case "ReturnStatement":
|
|
40461
|
+
case "ThrowStatement":
|
|
40462
|
+
if (stmt.expr) extractPropsFromExprIntoSet(stmt.expr, out);
|
|
40463
|
+
break;
|
|
40464
|
+
case "IfStatement":
|
|
40465
|
+
if (stmt.cond) extractPropsFromExprIntoSet(stmt.cond, out);
|
|
40466
|
+
if (stmt.thenB) extractPropsFromStatement(stmt.thenB, out);
|
|
40467
|
+
if (stmt.elseB) extractPropsFromStatement(stmt.elseB, out);
|
|
40468
|
+
break;
|
|
40469
|
+
case "BlockStatement":
|
|
40470
|
+
if (Array.isArray(stmt.stmts)) {
|
|
40471
|
+
for (const s of stmt.stmts) extractPropsFromStatement(s, out);
|
|
40472
|
+
}
|
|
40473
|
+
break;
|
|
40474
|
+
case "LetStatement":
|
|
40475
|
+
case "ConstStatement":
|
|
40476
|
+
case "VarStatement":
|
|
40477
|
+
if (Array.isArray(stmt.decls)) {
|
|
40478
|
+
for (const decl of stmt.decls) {
|
|
40479
|
+
if (decl.expr) extractPropsFromExprIntoSet(decl.expr, out);
|
|
40480
|
+
}
|
|
40481
|
+
}
|
|
40482
|
+
break;
|
|
40483
|
+
default:
|
|
40484
|
+
for (const key of ["expr", "cond", "left", "right", "obj", "body"]) {
|
|
40485
|
+
if (stmt[key] && typeof stmt[key] === "object") {
|
|
40486
|
+
if ("type" in stmt[key]) {
|
|
40487
|
+
extractPropsFromExprIntoSet(stmt[key], out);
|
|
40488
|
+
}
|
|
40489
|
+
}
|
|
40490
|
+
}
|
|
40491
|
+
break;
|
|
40492
|
+
}
|
|
40493
|
+
}
|
|
40494
|
+
function extractPropsFromExprIntoSet(expr, out) {
|
|
40495
|
+
for (const prop of extractPropsFromExpression(expr)) {
|
|
40496
|
+
out.add(prop);
|
|
40497
|
+
}
|
|
40498
|
+
}
|
|
40499
|
+
function collectThemeVarsFromComponentDef(def2) {
|
|
40500
|
+
const result = {};
|
|
40501
|
+
walkComponentDefTree(def2, (node) => {
|
|
40502
|
+
if (!node.props) return;
|
|
40503
|
+
for (const [key, value] of Object.entries(node.props)) {
|
|
40504
|
+
const parsed = parseLayoutProperty(key);
|
|
40505
|
+
if (typeof parsed === "string") continue;
|
|
40506
|
+
if (typeof value !== "string" || value.includes("{")) continue;
|
|
40507
|
+
for (const themeVar of extractThemeVarsFromValue(value)) {
|
|
40508
|
+
result[themeVar] = "";
|
|
40509
|
+
}
|
|
40510
|
+
}
|
|
40511
|
+
});
|
|
40512
|
+
return result;
|
|
40513
|
+
}
|
|
40514
|
+
function generateUdComponentMetadata(compoundDef) {
|
|
40515
|
+
const innerDef = compoundDef.component;
|
|
40516
|
+
const propNames = collectPropsFromComponentDef(innerDef);
|
|
40517
|
+
const themeVars2 = collectThemeVarsFromComponentDef(innerDef);
|
|
40518
|
+
const props = Object.fromEntries(
|
|
40519
|
+
propNames.map((name) => [
|
|
40520
|
+
name,
|
|
40521
|
+
{ description: "" }
|
|
40522
|
+
])
|
|
40523
|
+
);
|
|
40524
|
+
return {
|
|
40525
|
+
status: "stable",
|
|
40526
|
+
description: `User-defined component: ${compoundDef.name}`,
|
|
40527
|
+
props,
|
|
40528
|
+
themeVars: themeVars2
|
|
40529
|
+
};
|
|
40530
|
+
}
|
|
39968
40531
|
async function download({ state, appContext }, {
|
|
39969
40532
|
params,
|
|
39970
40533
|
url,
|
|
@@ -45469,6 +46032,7 @@ const Tabs = forwardRef(function Tabs2({
|
|
|
45469
46032
|
traceId: typeof window !== "undefined" ? window._xsCurrentTrace : void 0,
|
|
45470
46033
|
kind: "focus:change",
|
|
45471
46034
|
component: "Tabs",
|
|
46035
|
+
ariaName: tabItem?.label,
|
|
45472
46036
|
displayLabel: tabItem?.label,
|
|
45473
46037
|
tabIndex: newIndex,
|
|
45474
46038
|
tabId: tabItem.id || tabItem.innerId,
|
|
@@ -45536,6 +46100,8 @@ const Tabs = forwardRef(function Tabs2({
|
|
|
45536
46100
|
traceId: typeof window !== "undefined" ? window._xsCurrentTrace : void 0,
|
|
45537
46101
|
kind: "focus:change",
|
|
45538
46102
|
component: "Tabs",
|
|
46103
|
+
ariaName: tabItem?.label,
|
|
46104
|
+
componentLabel: tabItem?.label,
|
|
45539
46105
|
displayLabel: tabItem?.label,
|
|
45540
46106
|
tabIndex: newIndex,
|
|
45541
46107
|
tabId: tabItem.id || tabItem.innerId,
|
|
@@ -46377,6 +46943,7 @@ const AccordionComponent = forwardRef(function AccordionComponent2({
|
|
|
46377
46943
|
traceId: typeof window !== "undefined" ? window._xsCurrentTrace : void 0,
|
|
46378
46944
|
kind: "focus:change",
|
|
46379
46945
|
component: "Accordion",
|
|
46946
|
+
ariaName: Array.isArray(value) ? value.join(", ") : String(value),
|
|
46380
46947
|
displayLabel: Array.isArray(value) ? value.join(", ") : String(value),
|
|
46381
46948
|
expandedItems: value
|
|
46382
46949
|
});
|
|
@@ -50828,7 +51395,7 @@ const NestedAppMd = createMetadata({
|
|
|
50828
51395
|
[`borderRadius-viewControls-${COMP$4}`]: "5px",
|
|
50829
51396
|
[`padding-viewControls-${COMP$4}`]: "$space-0_5",
|
|
50830
51397
|
[`borderBottom-header-${COMP$4}`]: "0.5px solid $borderColor",
|
|
50831
|
-
[`backgroundColor-header-${COMP$4}`]: "$color-
|
|
51398
|
+
[`backgroundColor-header-${COMP$4}`]: "$color-surface-100",
|
|
50832
51399
|
[`color-loadingText-${COMP$4}`]: "$color-surface-600",
|
|
50833
51400
|
// --- Split view styles
|
|
50834
51401
|
[`padding-button-splitView-${COMP$4}`]: "1px 6px",
|
|
@@ -51869,6 +52436,8 @@ class ComponentRegistry {
|
|
|
51869
52436
|
}
|
|
51870
52437
|
// --- Registers a compound component using its definition and metadata
|
|
51871
52438
|
registerCompoundComponentRenderer({ compoundComponentDef, metadata }, namespace) {
|
|
52439
|
+
const autoMetadata = generateUdComponentMetadata(compoundComponentDef);
|
|
52440
|
+
const mergedMetadata = metadata ? { ...autoMetadata, ...metadata } : autoMetadata;
|
|
51872
52441
|
const component2 = {
|
|
51873
52442
|
type: compoundComponentDef.name,
|
|
51874
52443
|
renderer: (rendererContext) => {
|
|
@@ -51883,7 +52452,7 @@ class ComponentRegistry {
|
|
|
51883
52452
|
);
|
|
51884
52453
|
},
|
|
51885
52454
|
isCompoundComponent: true,
|
|
51886
|
-
metadata
|
|
52455
|
+
metadata: mergedMetadata
|
|
51887
52456
|
};
|
|
51888
52457
|
this.registerComponentRenderer(component2, namespace);
|
|
51889
52458
|
}
|
|
@@ -52018,6 +52587,7 @@ const ConfirmationModalContextProvider = ({ children }) => {
|
|
|
52018
52587
|
traceId: w._xsCurrentTrace,
|
|
52019
52588
|
kind: "modal:show",
|
|
52020
52589
|
modalType: "confirmation",
|
|
52590
|
+
ariaName: title22,
|
|
52021
52591
|
title: title22,
|
|
52022
52592
|
buttons: [
|
|
52023
52593
|
{ label: actionLabel, value: true },
|
|
@@ -52048,6 +52618,7 @@ const ConfirmationModalContextProvider = ({ children }) => {
|
|
|
52048
52618
|
traceId: w._xsCurrentTrace,
|
|
52049
52619
|
kind: "modal:confirm",
|
|
52050
52620
|
modalType: "confirmation",
|
|
52621
|
+
ariaName: title2,
|
|
52051
52622
|
value,
|
|
52052
52623
|
buttonLabel
|
|
52053
52624
|
});
|
|
@@ -52068,7 +52639,8 @@ const ConfirmationModalContextProvider = ({ children }) => {
|
|
|
52068
52639
|
perfTs: typeof performance !== "undefined" ? performance.now() : void 0,
|
|
52069
52640
|
traceId: w._xsCurrentTrace,
|
|
52070
52641
|
kind: "modal:cancel",
|
|
52071
|
-
modalType: "confirmation"
|
|
52642
|
+
modalType: "confirmation",
|
|
52643
|
+
ariaName: title2
|
|
52072
52644
|
});
|
|
52073
52645
|
}
|
|
52074
52646
|
if (resolver.current) {
|
|
@@ -52965,7 +53537,7 @@ function IconProvider({ children, icons }) {
|
|
|
52965
53537
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
52966
53538
|
] });
|
|
52967
53539
|
}
|
|
52968
|
-
const version = "0.12.
|
|
53540
|
+
const version = "0.12.14";
|
|
52969
53541
|
function createPubSubService() {
|
|
52970
53542
|
const subscriptions = /* @__PURE__ */ new Map();
|
|
52971
53543
|
const publishTopic = (topic, data) => {
|
|
@@ -56819,7 +57391,8 @@ const StateContainer = memo(
|
|
|
56819
57391
|
const localVarsStateContext = useCombinedState(
|
|
56820
57392
|
stateFromOutside,
|
|
56821
57393
|
componentStateWithApis,
|
|
56822
|
-
node.contextVars
|
|
57394
|
+
node.contextVars,
|
|
57395
|
+
routingParams
|
|
56823
57396
|
);
|
|
56824
57397
|
const parsedScriptPart = node.scriptCollected;
|
|
56825
57398
|
if (parsedScriptPart?.moduleErrors && !isEmpty(parsedScriptPart.moduleErrors)) {
|
|
@@ -57256,7 +57829,7 @@ function ApiBoundComponent({
|
|
|
57256
57829
|
}) {
|
|
57257
57830
|
const wrappedWithAdapter = useMemo(() => {
|
|
57258
57831
|
function generateloaderUid(key) {
|
|
57259
|
-
return `${node.uid}_data_${key}`;
|
|
57832
|
+
return `${node.uid ?? node.type}_data_${key}`;
|
|
57260
57833
|
}
|
|
57261
57834
|
function generateEventHandler(actionComponent) {
|
|
57262
57835
|
const { type } = actionComponent;
|
|
@@ -60427,7 +61000,8 @@ const implicitPropsMetadata = {
|
|
|
60427
61000
|
};
|
|
60428
61001
|
const MAIN_FILE = "Main." + componentFileExtension;
|
|
60429
61002
|
const MAIN_CODE_BEHIND_FILE = "Main." + codeBehindFileExtension;
|
|
60430
|
-
const
|
|
61003
|
+
const GLOBALS_FILE = "Globals.xs";
|
|
61004
|
+
const GLOBALS_XS_BUILT_RESOURCE = "/src/Globals.xs";
|
|
60431
61005
|
const CONFIG_FILE = "config.json";
|
|
60432
61006
|
const metadataProvider = new MetadataProvider(collectedComponentMetadata);
|
|
60433
61007
|
function initStorageGlobals() {
|
|
@@ -60704,11 +61278,15 @@ function resolveRuntime(runtime) {
|
|
|
60704
61278
|
let config;
|
|
60705
61279
|
let entryPoint;
|
|
60706
61280
|
let entryPointCodeBehind;
|
|
61281
|
+
let globalsXs;
|
|
60707
61282
|
let apiInterceptor;
|
|
60708
61283
|
for (const [key, value] of Object.entries(runtime)) {
|
|
60709
61284
|
if (matchesFileName(key, "config")) {
|
|
60710
61285
|
config = value.default;
|
|
60711
61286
|
}
|
|
61287
|
+
if (key.endsWith("/Globals.xs") && !matchesFolder(key, "components")) {
|
|
61288
|
+
globalsXs = value.default;
|
|
61289
|
+
}
|
|
60712
61290
|
if (matchesFileName(key, "Main") || matchesFileName(key, "App")) {
|
|
60713
61291
|
if (key.endsWith(codeBehindFileExtension)) {
|
|
60714
61292
|
entryPointCodeBehind = value.default;
|
|
@@ -60781,17 +61359,11 @@ function resolveRuntime(runtime) {
|
|
|
60781
61359
|
functions: entryPointCodeBehind?.functions,
|
|
60782
61360
|
scriptError: entryPointCodeBehind?.moduleErrors
|
|
60783
61361
|
};
|
|
60784
|
-
if (
|
|
61362
|
+
if (globalsXs?.vars || globalsXs?.functions) {
|
|
60785
61363
|
entryPointWithCodeBehind = transformMainXsToGlobalTags(
|
|
60786
61364
|
entryPointWithCodeBehind,
|
|
60787
|
-
|
|
61365
|
+
globalsXs
|
|
60788
61366
|
);
|
|
60789
|
-
if (entryPointCodeBehind?.vars && entryPointWithCodeBehind.vars) {
|
|
60790
|
-
const promotedKeys = Object.keys(entryPointCodeBehind.vars);
|
|
60791
|
-
const remainingVars = { ...entryPointWithCodeBehind.vars };
|
|
60792
|
-
promotedKeys.forEach((k) => delete remainingVars[k]);
|
|
60793
|
-
entryPointWithCodeBehind = { ...entryPointWithCodeBehind, vars: remainingVars };
|
|
60794
|
-
}
|
|
60795
61367
|
}
|
|
60796
61368
|
let components = [];
|
|
60797
61369
|
if (config?.components) {
|
|
@@ -60962,9 +61534,9 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
60962
61534
|
return extractedVars;
|
|
60963
61535
|
};
|
|
60964
61536
|
const [globalVars, setGlobalVars] = useState(() => {
|
|
60965
|
-
const
|
|
60966
|
-
const
|
|
60967
|
-
const extracted = extractGlobals({ ...
|
|
61537
|
+
const globalsXs = runtime?.[GLOBALS_XS_BUILT_RESOURCE];
|
|
61538
|
+
const globalsXsData = globalsXs?.default ?? globalsXs;
|
|
61539
|
+
const extracted = extractGlobals({ ...globalsXsData?.vars || {}, ...globalsXsData?.functions || {} });
|
|
60968
61540
|
const resolvedRuntime = resolveRuntime(runtime);
|
|
60969
61541
|
const appDef = mergeAppDefWithRuntime(resolvedRuntime.standaloneApp, standaloneAppDef);
|
|
60970
61542
|
if (appDef?.entryPoint) {
|
|
@@ -60986,22 +61558,13 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
60986
61558
|
if (!appDef) {
|
|
60987
61559
|
throw new Error("couldn't find the application metadata");
|
|
60988
61560
|
}
|
|
60989
|
-
const
|
|
60990
|
-
const
|
|
60991
|
-
if (
|
|
61561
|
+
const globalsXs = runtime?.[GLOBALS_XS_BUILT_RESOURCE];
|
|
61562
|
+
const globalsXsData = globalsXs?.default ?? globalsXs;
|
|
61563
|
+
if (globalsXsData?.vars || globalsXsData?.functions) {
|
|
60992
61564
|
appDef.entryPoint = transformMainXsToGlobalTags(
|
|
60993
61565
|
appDef.entryPoint,
|
|
60994
|
-
|
|
61566
|
+
globalsXsData
|
|
60995
61567
|
);
|
|
60996
|
-
if (mainXsData?.vars && appDef.entryPoint) {
|
|
60997
|
-
const promotedKeys = Object.keys(mainXsData.vars);
|
|
60998
|
-
const ep = appDef.entryPoint;
|
|
60999
|
-
if (ep.vars) {
|
|
61000
|
-
const remainingVars = { ...ep.vars };
|
|
61001
|
-
promotedKeys.forEach((k) => delete remainingVars[k]);
|
|
61002
|
-
appDef.entryPoint = { ...ep, vars: remainingVars };
|
|
61003
|
-
}
|
|
61004
|
-
}
|
|
61005
61568
|
}
|
|
61006
61569
|
const { errorComponent: lintErrorComponent2, toastMessages: toastMessages2 } = processAppLinting(appDef, metadataProvider);
|
|
61007
61570
|
if (lintErrorComponent2) {
|
|
@@ -61091,21 +61654,17 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
61091
61654
|
});
|
|
61092
61655
|
const globalsPromise = new Promise(async (resolve) => {
|
|
61093
61656
|
try {
|
|
61094
|
-
const resp = await fetchWithoutCache(
|
|
61657
|
+
const resp = await fetchWithoutCache(GLOBALS_FILE);
|
|
61095
61658
|
if (resp.ok) {
|
|
61096
61659
|
const parsedGlobals2 = await parseCodeBehindResponse(resp);
|
|
61097
|
-
const
|
|
61660
|
+
const globalsXs = parsedGlobals2?.codeBehind;
|
|
61098
61661
|
const extractedGlobals = extractGlobals({
|
|
61099
|
-
...
|
|
61100
|
-
...
|
|
61662
|
+
...globalsXs?.vars || {},
|
|
61663
|
+
...globalsXs?.functions || {}
|
|
61101
61664
|
});
|
|
61102
61665
|
resolve({ ...parsedGlobals2?.codeBehind, src: parsedGlobals2?.src, __extractedGlobals: extractedGlobals });
|
|
61103
61666
|
} else {
|
|
61104
|
-
resolve(
|
|
61105
|
-
component: errReportMessage(`Failed to load the code-behind (${MAIN_CODE_BEHIND_FILE})`),
|
|
61106
|
-
file: MAIN_CODE_BEHIND_FILE,
|
|
61107
|
-
hasError: true
|
|
61108
|
-
});
|
|
61667
|
+
resolve(null);
|
|
61109
61668
|
}
|
|
61110
61669
|
} catch (e) {
|
|
61111
61670
|
resolve(null);
|
|
@@ -61160,9 +61719,25 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
61160
61719
|
resolve(null);
|
|
61161
61720
|
}
|
|
61162
61721
|
});
|
|
61163
|
-
if (loadedEntryPointCodeBehind
|
|
61722
|
+
if (loadedEntryPointCodeBehind?.hasError) {
|
|
61164
61723
|
errorComponents.push(loadedEntryPointCodeBehind.component);
|
|
61165
61724
|
}
|
|
61725
|
+
} else {
|
|
61726
|
+
loadedEntryPointCodeBehind = await (async () => {
|
|
61727
|
+
try {
|
|
61728
|
+
const resp = await fetchWithoutCache(MAIN_CODE_BEHIND_FILE);
|
|
61729
|
+
if (resp.ok) {
|
|
61730
|
+
const parsed = await parseCodeBehindResponse(resp);
|
|
61731
|
+
if (parsed.hasError) {
|
|
61732
|
+
errorComponents.push(parsed.component);
|
|
61733
|
+
return parsed;
|
|
61734
|
+
}
|
|
61735
|
+
return { ...parsed.codeBehind, src: parsed.src };
|
|
61736
|
+
}
|
|
61737
|
+
} catch (e) {
|
|
61738
|
+
}
|
|
61739
|
+
return null;
|
|
61740
|
+
})();
|
|
61166
61741
|
}
|
|
61167
61742
|
loadedComponents.forEach((compWrapper) => {
|
|
61168
61743
|
if (compWrapper.hasError) {
|
|
@@ -61204,12 +61779,6 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
61204
61779
|
entryPointWithCodeBehind,
|
|
61205
61780
|
loadedGlobals
|
|
61206
61781
|
);
|
|
61207
|
-
if (loadedGlobals?.vars && entryPointWithCodeBehind.vars) {
|
|
61208
|
-
const promotedKeys = Object.keys(loadedGlobals.vars);
|
|
61209
|
-
const remainingVars = { ...entryPointWithCodeBehind.vars };
|
|
61210
|
-
promotedKeys.forEach((k) => delete remainingVars[k]);
|
|
61211
|
-
entryPointWithCodeBehind = { ...entryPointWithCodeBehind, vars: remainingVars };
|
|
61212
|
-
}
|
|
61213
61782
|
}
|
|
61214
61783
|
const defaultTheme = entryPointWithCodeBehind.props?.defaultTheme;
|
|
61215
61784
|
if (defaultTheme && typeof defaultTheme === "string" && !defaultTheme.includes("{")) {
|
|
@@ -61446,10 +62015,10 @@ function startApp(runtime, extensions = [], extensionManager = new StandaloneExt
|
|
|
61446
62015
|
);
|
|
61447
62016
|
return contentRoot;
|
|
61448
62017
|
}
|
|
61449
|
-
function transformMainXsToGlobalTags(entryPoint,
|
|
62018
|
+
function transformMainXsToGlobalTags(entryPoint, globalsXsDef) {
|
|
61450
62019
|
const globalVars = {};
|
|
61451
|
-
if (
|
|
61452
|
-
Object.entries(
|
|
62020
|
+
if (globalsXsDef.vars) {
|
|
62021
|
+
Object.entries(globalsXsDef.vars).forEach(([varName, varDef]) => {
|
|
61453
62022
|
if (typeof varDef === "object" && varDef !== null && varDef.__PARSED__ && varDef.tree) {
|
|
61454
62023
|
const source = varDef.tree.source;
|
|
61455
62024
|
if (typeof source === "string") {
|
|
@@ -61461,8 +62030,8 @@ function transformMainXsToGlobalTags(entryPoint, mainXs) {
|
|
|
61461
62030
|
});
|
|
61462
62031
|
}
|
|
61463
62032
|
const functions = {};
|
|
61464
|
-
if (
|
|
61465
|
-
Object.entries(
|
|
62033
|
+
if (globalsXsDef.functions) {
|
|
62034
|
+
Object.entries(globalsXsDef.functions).forEach(([funcName, funcDef]) => {
|
|
61466
62035
|
if (typeof funcDef === "object" && funcDef !== null && funcDef.__PARSED__ && funcDef.tree) {
|
|
61467
62036
|
try {
|
|
61468
62037
|
const evalContext = {
|