xmlui 0.10.26 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/{index-DHXWMb-6.mjs → index-CEq6OdjV.js} +263 -643
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-TxnkId6_.mjs → initMock-DhUnLKrR.js} +1 -1
- package/dist/lib/{language-server-web-worker.mjs → language-server-web-worker.js} +1 -1
- package/dist/lib/{language-server.mjs → language-server.js} +1 -1
- package/dist/lib/{metadata-utils-DXUdlyja.mjs → metadata-utils-D27cn-XB.js} +1 -1
- package/dist/lib/{server-common-CtpN0Z4h.mjs → server-common-2DaoOOL5.js} +625 -616
- package/dist/lib/testing.d.ts +2011 -0
- package/dist/lib/testing.js +2386 -0
- package/dist/lib/vite-xmlui-plugin/index.js +13968 -0
- package/dist/lib/vite-xmlui-plugin/package.json +3 -0
- package/dist/lib/xmlui-parser-BZZ430Wm.js +523 -0
- package/dist/lib/xmlui-parser.d.ts +2 -1
- package/dist/lib/{xmlui-parser.mjs → xmlui-parser.js} +2 -2
- package/dist/lib/{xmlui-serializer-uCYa8_tZ.mjs → xmlui-serializer-D9D2mQ8m.js} +1 -1
- package/dist/lib/xmlui.d.ts +1 -0
- package/dist/lib/{xmlui.mjs → xmlui.js} +24 -23
- package/dist/metadata/{collectedComponentMetadata-BgHIc2Iu.mjs → collectedComponentMetadata-BAI5eK2v.js} +698 -567
- package/dist/metadata/{initMock-B3UDa-rw.mjs → initMock-CekNG5Ax.js} +1 -1
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/{xmlui-metadata.mjs → xmlui-metadata.js} +1 -1
- package/dist/metadata/xmlui-metadata.umd.cjs +207 -0
- package/dist/scripts/bin/bootstrap.cjs +4 -0
- package/dist/scripts/bin/index.js +85 -13
- package/dist/scripts/package.json +30 -22
- package/dist/scripts/src/components/App/App.spec.js +27 -15
- package/dist/scripts/src/components/Avatar/Avatar.spec.js +0 -29
- package/dist/scripts/src/components/Button/Button.spec.js +0 -29
- package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +2 -0
- package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +2 -2
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +8 -6
- package/dist/scripts/src/components/Form/Form.js +19 -0
- package/dist/scripts/src/components/Form/Form.spec.js +444 -0
- package/dist/scripts/src/components/Form/FormNative.js +46 -15
- package/dist/scripts/src/components/Form/formActions.js +3 -2
- package/dist/scripts/src/components/FormItem/FormItem.js +10 -2
- package/dist/scripts/src/components/FormItem/FormItem.spec.js +159 -0
- package/dist/scripts/src/components/FormItem/FormItemNative.js +6 -5
- package/dist/scripts/src/components/Heading/Heading.spec.js +34 -47
- package/dist/scripts/src/components/Queue/Queue.js +1 -16
- package/dist/scripts/src/components/Queue/QueueNative.js +60 -2
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +7 -5
- package/dist/scripts/src/components-core/appContext/misc-utils.js +2 -1
- package/dist/scripts/src/components-core/devtools/InspectorDialog.js +2 -2
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +2 -0
- package/dist/scripts/src/components-core/utils/base64-utils.js +2 -0
- package/dist/scripts/src/components-core/utils/misc.js +44 -0
- package/dist/scripts/src/language-server/server-common.js +2 -2
- package/dist/scripts/src/language-server/{xmlui-metadata-generated.mjs → xmlui-metadata-generated.js} +625 -615
- package/dist/scripts/src/testing/drivers/index.js +9 -0
- package/dist/scripts/src/testing/index.js +69 -0
- package/dist/standalone/xmlui-standalone.es.d.ts +32 -16
- package/dist/standalone/xmlui-standalone.umd.js +36 -36
- package/package.json +45 -37
- package/dist/metadata/xmlui-metadata.umd.js +0 -207
- package/dist/scripts/bin/bootstrap.js +0 -11
- /package/dist/lib/{apiInterceptorWorker-QiltRtq1.mjs → apiInterceptorWorker-QiltRtq1.js} +0 -0
- /package/dist/lib/{syntax-monaco.mjs → syntax-monaco.js} +0 -0
- /package/dist/lib/{syntax-textmate.mjs → syntax-textmate.js} +0 -0
- /package/dist/lib/{transform-Tooy42EB.mjs → transform-Tooy42EB.js} +0 -0
- /package/dist/metadata/{apiInterceptorWorker-Dql7QGw2.mjs → apiInterceptorWorker-Dql7QGw2.js} +0 -0
|
@@ -9,8 +9,9 @@ import { useQuery, useInfiniteQuery, QueryClientProvider, QueryClient } from "@t
|
|
|
9
9
|
import produce, { createDraft, finishDraft, enableMapSet } from "immer";
|
|
10
10
|
import { throttle, get, isNil, omitBy, isUndefined, isString as isString$1, isPlainObject, noop as noop$2, isEmpty, isEqual, union, uniq, orderBy as orderBy$1, isObject, isArray, groupBy, sortBy, omit, isNumber, set, isNaN as isNaN$1, cloneDeep, merge, defaultTo, capitalize, unset, setWith, keyBy, pick } from "lodash-es";
|
|
11
11
|
import { formatDistanceToNow, parse, format, parseISO, isValid, isToday, isYesterday, isTomorrow, isThisWeek, formatRelative, isThisYear, isSameDay, differenceInMinutes } from "date-fns";
|
|
12
|
-
import { l as labelPositionMd, o as orientationOptionMd, v as validationStatusMd, b as alignmentOptionValues, i as isSizeType, c as layoutOptionKeys, L as LinkTargetMd, d as alignmentOptionMd, e as iconPositionMd, f as buttonTypesMd, s as sizeMd, g as buttonThemeMd, h as buttonVariantMd, T as TextVariantElement, V as VariantPropsKeys, j as variantOptionsMd, k as scrollAnchoringValues, m as buttonThemeNames, n as iconPositionNames, p as buttonVariantNames, q as buttonVariantValues, t as triggerPositionNames, r as httpMethodNames, u as orientationOptionValues, w as viewportSizeNames, M as MetadataProvider } from "./metadata-utils-
|
|
12
|
+
import { l as labelPositionMd, o as orientationOptionMd, v as validationStatusMd, b as alignmentOptionValues, i as isSizeType, c as layoutOptionKeys, L as LinkTargetMd, d as alignmentOptionMd, e as iconPositionMd, f as buttonTypesMd, s as sizeMd, g as buttonThemeMd, h as buttonVariantMd, T as TextVariantElement, V as VariantPropsKeys, j as variantOptionsMd, k as scrollAnchoringValues, m as buttonThemeNames, n as iconPositionNames, p as buttonVariantNames, q as buttonVariantValues, t as triggerPositionNames, r as httpMethodNames, u as orientationOptionValues, w as viewportSizeNames, M as MetadataProvider } from "./metadata-utils-D27cn-XB.js";
|
|
13
13
|
import classnames from "classnames";
|
|
14
|
+
import { c as PART_LABELED_ITEM, d as PART_LABEL, b as PART_INPUT, P as PART_START_ADORNMENT, a as PART_END_ADORNMENT, x as xmlUiMarkupToComponent, e as errReportComponent, f as errReportMessage, g as errReportScriptError, h as errReportModuleErrors } from "./xmlui-parser-BZZ430Wm.js";
|
|
14
15
|
import Color from "color";
|
|
15
16
|
import * as ReactDropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
16
17
|
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";
|
|
@@ -21,7 +22,7 @@ import { useLocation, NavLink as NavLink$1, Link, useNavigate, Routes, Route, Na
|
|
|
21
22
|
import { Helmet, HelmetProvider } from "react-helmet-async";
|
|
22
23
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
23
24
|
import { useContextSelector, createContext as createContext$1 } from "use-context-selector";
|
|
24
|
-
import { F as Parser, G as T_CALCULATED_MEMBER_ACCESS_EXPRESSION, H as T_MEMBER_ACCESS_EXPRESSION, I as T_IDENTIFIER, J as T_PREFIX_OP_EXPRESSION, K as T_FUNCTION_DECLARATION, L as T_ARROW_EXPRESSION, M as createXmlUiTreeNodeId, O as T_EMPTY_STATEMENT, Q as T_SWITCH_STATEMENT, R as T_TRY_STATEMENT, V as T_THROW_STATEMENT, W as T_FOR_OF_STATEMENT, X as T_FOR_IN_STATEMENT, Y as T_FOR_STATEMENT, Z as T_EXPRESSION_STATEMENT, _ as T_BREAK_STATEMENT, $ as T_CONTINUE_STATEMENT, a0 as T_DO_WHILE_STATEMENT, a1 as T_WHILE_STATEMENT, a2 as T_RETURN_STATEMENT, a3 as T_IF_STATEMENT, a4 as T_CONST_STATEMENT, a5 as T_LET_STATEMENT, a6 as T_ARROW_EXPRESSION_STATEMENT, a7 as T_BLOCK_STATEMENT, a8 as T_VAR_STATEMENT, a9 as T_ASSIGNMENT_EXPRESSION, aa as T_LITERAL, ab as T_SPREAD_EXPRESSION, ac as T_FUNCTION_INVOCATION_EXPRESSION, ad as T_POSTFIX_OP_EXPRESSION, ae as T_CONDITIONAL_EXPRESSION, af as T_BINARY_EXPRESSION, ag as T_UNARY_EXPRESSION, ah as T_OBJECT_LITERAL, ai as T_ARRAY_LITERAL, aj as T_SEQUENCE_EXPRESSION, ak as T_TEMPLATE_LITERAL_EXPRESSION, al as T_VAR_DECLARATION, am as T_DESTRUCTURE,
|
|
25
|
+
import { F as Parser, G as T_CALCULATED_MEMBER_ACCESS_EXPRESSION, H as T_MEMBER_ACCESS_EXPRESSION, I as T_IDENTIFIER, J as T_PREFIX_OP_EXPRESSION, K as T_FUNCTION_DECLARATION, L as T_ARROW_EXPRESSION, M as createXmlUiTreeNodeId, O as T_EMPTY_STATEMENT, Q as T_SWITCH_STATEMENT, R as T_TRY_STATEMENT, V as T_THROW_STATEMENT, W as T_FOR_OF_STATEMENT, X as T_FOR_IN_STATEMENT, Y as T_FOR_STATEMENT, Z as T_EXPRESSION_STATEMENT, _ as T_BREAK_STATEMENT, $ as T_CONTINUE_STATEMENT, a0 as T_DO_WHILE_STATEMENT, a1 as T_WHILE_STATEMENT, a2 as T_RETURN_STATEMENT, a3 as T_IF_STATEMENT, a4 as T_CONST_STATEMENT, a5 as T_LET_STATEMENT, a6 as T_ARROW_EXPRESSION_STATEMENT, a7 as T_BLOCK_STATEMENT, a8 as T_VAR_STATEMENT, a9 as T_ASSIGNMENT_EXPRESSION, aa as T_LITERAL, ab as T_SPREAD_EXPRESSION, ac as T_FUNCTION_INVOCATION_EXPRESSION, ad as T_POSTFIX_OP_EXPRESSION, ae as T_CONDITIONAL_EXPRESSION, af as T_BINARY_EXPRESSION, ag as T_UNARY_EXPRESSION, ah as T_OBJECT_LITERAL, ai as T_ARRAY_LITERAL, aj as T_SEQUENCE_EXPRESSION, ak as T_TEMPLATE_LITERAL_EXPRESSION, al as T_VAR_DECLARATION, am as T_DESTRUCTURE, an as PARSED_MARK_PROP, ao as collectCodeBehindFromSource, ap as removeCodeBehindTokensFromTree } from "./transform-Tooy42EB.js";
|
|
25
26
|
import memoizeOne from "memoize-one";
|
|
26
27
|
import { Virtualizer } from "virtua";
|
|
27
28
|
import { useReactTable, getPaginationRowModel, getCoreRowModel, flexRender } from "@tanstack/react-table";
|
|
@@ -52,7 +53,7 @@ import * as RechartsPrimitive from "recharts";
|
|
|
52
53
|
import { Area, ResponsiveContainer, AreaChart as AreaChart$1, XAxis, YAxis, CartesianGrid, Tooltip as Tooltip$2, Legend as Legend$1, BarChart as BarChart$1, Bar, PieChart as PieChart$1, Pie, LabelList as LabelList$1, Sector, LineChart as LineChart$1, Line, Radar, RadarChart as RadarChart$1, PolarGrid, PolarAngleAxis, PolarRadiusAxis } from "recharts";
|
|
53
54
|
import { MemoryRouter, HashRouter, BrowserRouter } from "react-router-dom";
|
|
54
55
|
import { AnimatePresence, motion } from "framer-motion";
|
|
55
|
-
import { c as componentFileExtension, a as codeBehindFileExtension, g as getLintSeverity, L as LintSeverity, l as lintApp, p as printComponentLints, d as lintErrorsComponent } from "./xmlui-serializer-
|
|
56
|
+
import { c as componentFileExtension, a as codeBehindFileExtension, g as getLintSeverity, L as LintSeverity, l as lintApp, p as printComponentLints, d as lintErrorsComponent } from "./xmlui-serializer-D9D2mQ8m.js";
|
|
56
57
|
var client = {};
|
|
57
58
|
var m = require$$0;
|
|
58
59
|
if (process.env.NODE_ENV === "production") {
|
|
@@ -599,6 +600,22 @@ function asyncThrottle(func, wait, options2) {
|
|
|
599
600
|
throttled(resolve, reject, args);
|
|
600
601
|
});
|
|
601
602
|
}
|
|
603
|
+
const debounceRegistry = /* @__PURE__ */ new Map();
|
|
604
|
+
function debounce(delayMs, func, ...args) {
|
|
605
|
+
const key = func.toString();
|
|
606
|
+
const existing = debounceRegistry.get(key);
|
|
607
|
+
if (existing !== void 0) {
|
|
608
|
+
clearTimeout(existing.timeoutId);
|
|
609
|
+
}
|
|
610
|
+
const timeoutId = setTimeout(() => {
|
|
611
|
+
const entry = debounceRegistry.get(key);
|
|
612
|
+
if (entry) {
|
|
613
|
+
func(...entry.args);
|
|
614
|
+
debounceRegistry.delete(key);
|
|
615
|
+
}
|
|
616
|
+
}, delayMs);
|
|
617
|
+
debounceRegistry.set(key, { timeoutId, args });
|
|
618
|
+
}
|
|
602
619
|
const keyPrefix$1 = "xmlui";
|
|
603
620
|
const themeVars$12 = '"[]"';
|
|
604
621
|
const themeVars$13 = {
|
|
@@ -853,11 +870,6 @@ const Spinner = forwardRef(function Spinner2({
|
|
|
853
870
|
);
|
|
854
871
|
}
|
|
855
872
|
});
|
|
856
|
-
const PART_LABEL = "label";
|
|
857
|
-
const PART_LABELED_ITEM = "labeledItem";
|
|
858
|
-
const PART_INPUT = "input";
|
|
859
|
-
const PART_START_ADORNMENT = "startAdornment";
|
|
860
|
-
const PART_END_ADORNMENT = "endAdornment";
|
|
861
873
|
const defaultProps$1g = {
|
|
862
874
|
labelBreak: true
|
|
863
875
|
};
|
|
@@ -4310,21 +4322,21 @@ function getComposedRef(...refs) {
|
|
|
4310
4322
|
return composeRefs(...nonUndefinedRefs);
|
|
4311
4323
|
}
|
|
4312
4324
|
const themeVars$U = `'{"width-navPanel-App": "var(--xmlui-width-navPanel-App)", "backgroundColor-navPanel-App": "var(--xmlui-backgroundColor-navPanel-App)", "boxShadow-header-App": "var(--xmlui-boxShadow-header-App)", "boxShadow-navPanel-App": "var(--xmlui-boxShadow-navPanel-App)", "backgroundColor-content-App": "var(--xmlui-backgroundColor-content-App)", "borderLeft-content-App": "var(--xmlui-borderLeft-content-App)", "maxWidth-content-App": "var(--xmlui-maxWidth-content-App)", "maxWidth-App": "var(--xmlui-maxWidth-App)", "backgroundColor-AppHeader": "var(--xmlui-backgroundColor-AppHeader)", "borderBottom-AppHeader": "var(--xmlui-borderBottom-AppHeader)", "scroll-padding-block-Pages": "var(--xmlui-scroll-padding-block-Pages)"}'`;
|
|
4313
|
-
const wrapper$l = "
|
|
4314
|
-
const verticalFullHeader = "
|
|
4315
|
-
const navPanelWrapper = "
|
|
4316
|
-
const vertical$5 = "
|
|
4317
|
-
const contentWrapper$2 = "
|
|
4318
|
-
const noScrollbarGutters = "
|
|
4319
|
-
const PagesWrapper = "
|
|
4320
|
-
const footerWrapper = "
|
|
4321
|
-
const sticky = "
|
|
4322
|
-
const horizontal$5 = "
|
|
4323
|
-
const PagesWrapperInner = "
|
|
4324
|
-
const scrollWholePage = "
|
|
4325
|
-
const headerWrapper$1 = "
|
|
4326
|
-
const content$7 = "
|
|
4327
|
-
const withDefaultContentPadding = "
|
|
4325
|
+
const wrapper$l = "_wrapper_1gy6l_15";
|
|
4326
|
+
const verticalFullHeader = "_verticalFullHeader_1gy6l_15";
|
|
4327
|
+
const navPanelWrapper = "_navPanelWrapper_1gy6l_15";
|
|
4328
|
+
const vertical$5 = "_vertical_1gy6l_15";
|
|
4329
|
+
const contentWrapper$2 = "_contentWrapper_1gy6l_33";
|
|
4330
|
+
const noScrollbarGutters = "_noScrollbarGutters_1gy6l_39";
|
|
4331
|
+
const PagesWrapper = "_PagesWrapper_1gy6l_46";
|
|
4332
|
+
const footerWrapper = "_footerWrapper_1gy6l_50";
|
|
4333
|
+
const sticky = "_sticky_1gy6l_53";
|
|
4334
|
+
const horizontal$5 = "_horizontal_1gy6l_57";
|
|
4335
|
+
const PagesWrapperInner = "_PagesWrapperInner_1gy6l_106";
|
|
4336
|
+
const scrollWholePage = "_scrollWholePage_1gy6l_118";
|
|
4337
|
+
const headerWrapper$1 = "_headerWrapper_1gy6l_121";
|
|
4338
|
+
const content$7 = "_content_1gy6l_33";
|
|
4339
|
+
const withDefaultContentPadding = "_withDefaultContentPadding_1gy6l_217";
|
|
4328
4340
|
const styles$1c = {
|
|
4329
4341
|
themeVars: themeVars$U,
|
|
4330
4342
|
wrapper: wrapper$l,
|
|
@@ -4505,17 +4517,17 @@ SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
|
4505
4517
|
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SheetPrimitive.Description, { ref, className: classnames("text-sm text-muted-foreground", className), ...props }));
|
|
4506
4518
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
4507
4519
|
const themeVars$S = `'{"padding-AppHeader": "var(--xmlui-padding-AppHeader)", "paddingHorizontal-AppHeader": "var(--xmlui-paddingHorizontal-AppHeader, var(--xmlui-padding-AppHeader))", "paddingVertical-AppHeader": "var(--xmlui-paddingVertical-AppHeader, var(--xmlui-padding-AppHeader))", "paddingLeft-AppHeader": "var(--xmlui-paddingLeft-AppHeader, var(--xmlui-paddingHorizontal-AppHeader, var(--xmlui-padding-AppHeader)))", "paddingRight-AppHeader": "var(--xmlui-paddingRight-AppHeader, var(--xmlui-paddingHorizontal-AppHeader, var(--xmlui-padding-AppHeader)))", "paddingTop-AppHeader": "var(--xmlui-paddingTop-AppHeader, var(--xmlui-paddingVertical-AppHeader, var(--xmlui-padding-AppHeader)))", "paddingBottom-AppHeader": "var(--xmlui-paddingBottom-AppHeader, var(--xmlui-paddingVertical-AppHeader, var(--xmlui-padding-AppHeader)))", "padding-logo-AppHeader": "var(--xmlui-padding-logo-AppHeader)", "paddingHorizontal-logo-AppHeader": "var(--xmlui-paddingHorizontal-logo-AppHeader, var(--xmlui-padding-logo-AppHeader))", "paddingVertical-logo-AppHeader": "var(--xmlui-paddingVertical-logo-AppHeader, var(--xmlui-padding-logo-AppHeader))", "paddingLeft-logo-AppHeader": "var(--xmlui-paddingLeft-logo-AppHeader, var(--xmlui-paddingHorizontal-logo-AppHeader, var(--xmlui-padding-logo-AppHeader)))", "paddingRight-logo-AppHeader": "var(--xmlui-paddingRight-logo-AppHeader, var(--xmlui-paddingHorizontal-logo-AppHeader, var(--xmlui-padding-logo-AppHeader)))", "paddingTop-logo-AppHeader": "var(--xmlui-paddingTop-logo-AppHeader, var(--xmlui-paddingVertical-logo-AppHeader, var(--xmlui-padding-logo-AppHeader)))", "paddingBottom-logo-AppHeader": "var(--xmlui-paddingBottom-logo-AppHeader, var(--xmlui-paddingVertical-logo-AppHeader, var(--xmlui-padding-logo-AppHeader)))", "border-AppHeader": "var(--xmlui-border-AppHeader)", "borderHorizontal-AppHeader": "var(--xmlui-borderHorizontal-AppHeader, var(--xmlui-border-AppHeader))", "borderVertical-AppHeader": "var(--xmlui-borderVertical-AppHeader, var(--xmlui-border-AppHeader))", "borderLeft-AppHeader": "var(--xmlui-borderLeft-AppHeader, var(--xmlui-borderHorizontal-AppHeader, var(--xmlui-border-AppHeader)))", "borderRight-AppHeader": "var(--xmlui-borderRight-AppHeader, var(--xmlui-borderHorizontal-AppHeader, var(--xmlui-border-AppHeader)))", "borderTop-AppHeader": "var(--xmlui-borderTop-AppHeader, var(--xmlui-borderVertical-AppHeader, var(--xmlui-border-AppHeader)))", "borderBottom-AppHeader": "var(--xmlui-borderBottom-AppHeader, var(--xmlui-borderVertical-AppHeader, var(--xmlui-border-AppHeader)))", "borderWidth-AppHeader": "var(--xmlui-borderWidth-AppHeader)", "borderHorizontalWidth-AppHeader": "var(--xmlui-borderHorizontalWidth-AppHeader, var(--xmlui-borderWidth-AppHeader))", "borderLeftWidth-AppHeader": "var(--xmlui-borderLeftWidth-AppHeader, var(--xmlui-borderHorizontalWidth-AppHeader, var(--xmlui-borderWidth-AppHeader)))", "borderRightWidth-AppHeader": "var(--xmlui-borderRightWidth-AppHeader, var(--xmlui-borderHorizontalWidth-AppHeader, var(--xmlui-borderWidth-AppHeader)))", "borderVerticalWidth-AppHeader": "var(--xmlui-borderVerticalWidth-AppHeader, var(--xmlui-borderWidth-AppHeader))", "borderTopWidth-AppHeader": "var(--xmlui-borderTopWidth-AppHeader, var(--xmlui-borderVerticalWidth-AppHeader, var(--xmlui-borderWidth-AppHeader)))", "borderBottomWidth-AppHeader": "var(--xmlui-borderBottomWidth-AppHeader, var(--xmlui-borderVerticalWidth-AppHeader, var(--xmlui-borderWidth-AppHeader)))", "borderStyle-AppHeader": "var(--xmlui-borderStyle-AppHeader)", "borderHorizontalStyle-AppHeader": "var(--xmlui-borderHorizontalStyle-AppHeader, var(--xmlui-borderStyle-AppHeader))", "borderLeftStyle-AppHeader": "var(--xmlui-borderLeftStyle-AppHeader, var(--xmlui-borderHorizontalStyle-AppHeader, var(--xmlui-borderStyle-AppHeader)))", "borderRightStyle-AppHeader": "var(--xmlui-borderRightStyle-AppHeader, var(--xmlui-borderHorizontalStyle-AppHeader, var(--xmlui-borderStyle-AppHeader)))", "borderVerticalStyle-AppHeader": "var(--xmlui-borderVerticalStyle-AppHeader, var(--xmlui-borderStyle-AppHeader))", "borderTopStyle-AppHeader": "var(--xmlui-borderTopStyle-AppHeader, var(--xmlui-borderVerticalStyle-AppHeader, var(--xmlui-borderStyle-AppHeader)))", "borderBottomStyle-AppHeader": "var(--xmlui-borderBottomStyle-AppHeader, var(--xmlui-borderVerticalStyle-AppHeader, var(--xmlui-borderStyle-AppHeader)))", "borderColor-AppHeader": "var(--xmlui-borderColor-AppHeader)", "borderHorizontalColor-AppHeader": "var(--xmlui-borderHorizontalColor-AppHeader, var(--xmlui-borderColor-AppHeader))", "borderLeftColor-AppHeader": "var(--xmlui-borderLeftColor-AppHeader, var(--xmlui-borderHorizontalColor-AppHeader, var(--xmlui-borderColor-AppHeader)))", "borderRightColor-AppHeader": "var(--xmlui-borderRightColor-AppHeader, var(--xmlui-borderHorizontalColor-AppHeader, var(--xmlui-borderColor-AppHeader)))", "borderVerticalColor-AppHeader": "var(--xmlui-borderVerticalColor-AppHeader, var(--xmlui-borderColor-AppHeader))", "borderTopColor-AppHeader": "var(--xmlui-borderTopColor-AppHeader, var(--xmlui-borderVerticalColor-AppHeader, var(--xmlui-borderColor-AppHeader)))", "borderBottomColor-AppHeader": "var(--xmlui-borderBottomColor-AppHeader, var(--xmlui-borderVerticalColor-AppHeader, var(--xmlui-borderColor-AppHeader)))", "borderStartStartRadius-AppHeader": "var(--xmlui-borderStartStartRadius-AppHeader, var(--xmlui-borderRadius-AppHeader))", "borderStartEndRadius-AppHeader": "var(--xmlui-borderStartEndRadius-AppHeader, var(--xmlui-borderRadius-AppHeader))", "borderEndStartRadius-AppHeader": "var(--xmlui-borderEndStartRadius-AppHeader, var(--xmlui-borderRadius-AppHeader))", "borderEndEndRadius-AppHeader": "var(--xmlui-borderEndEndRadius-AppHeader, var(--xmlui-borderRadius-AppHeader))", "width-logo-AppHeader": "var(--xmlui-width-logo-AppHeader)", "alignment-content-AppHeader": "var(--xmlui-alignment-content-AppHeader)", "height-AppHeader": "var(--xmlui-height-AppHeader)", "backgroundColor-AppHeader": "var(--xmlui-backgroundColor-AppHeader)", "maxWidth-content-AppHeader": "var(--xmlui-maxWidth-content-AppHeader)", "maxWidth-AppHeader": "var(--xmlui-maxWidth-AppHeader)", "padding-drawerToggle-AppHeader": "var(--xmlui-padding-drawerToggle-AppHeader)"}'`;
|
|
4508
|
-
const header$2 = "
|
|
4509
|
-
const headerInner = "
|
|
4510
|
-
const full$1 = "
|
|
4511
|
-
const childrenWrapper = "
|
|
4512
|
-
const subNavPanelSlot = "
|
|
4513
|
-
const logoAndTitle = "
|
|
4514
|
-
const logoContainer = "
|
|
4515
|
-
const customLogoContainer = "
|
|
4516
|
-
const rightItems = "
|
|
4517
|
-
const drawerToggle = "
|
|
4518
|
-
const logoLink = "
|
|
4520
|
+
const header$2 = "_header_1i887_14";
|
|
4521
|
+
const headerInner = "_headerInner_1i887_40";
|
|
4522
|
+
const full$1 = "_full_1i887_58";
|
|
4523
|
+
const childrenWrapper = "_childrenWrapper_1i887_61";
|
|
4524
|
+
const subNavPanelSlot = "_subNavPanelSlot_1i887_72";
|
|
4525
|
+
const logoAndTitle = "_logoAndTitle_1i887_76";
|
|
4526
|
+
const logoContainer = "_logoContainer_1i887_88";
|
|
4527
|
+
const customLogoContainer = "_customLogoContainer_1i887_100";
|
|
4528
|
+
const rightItems = "_rightItems_1i887_108";
|
|
4529
|
+
const drawerToggle = "_drawerToggle_1i887_134";
|
|
4530
|
+
const logoLink = "_logoLink_1i887_143";
|
|
4519
4531
|
const styles$1b = {
|
|
4520
4532
|
themeVars: themeVars$S,
|
|
4521
4533
|
header: header$2,
|
|
@@ -17504,10 +17516,14 @@ function Queue({
|
|
|
17504
17516
|
//progressFeedback,
|
|
17505
17517
|
renderProgressFeedback,
|
|
17506
17518
|
renderResultFeedback,
|
|
17507
|
-
clearAfterFinish = defaultProps$L.clearAfterFinish
|
|
17519
|
+
clearAfterFinish = defaultProps$L.clearAfterFinish,
|
|
17520
|
+
queueState: externalQueueState,
|
|
17521
|
+
dispatch: externalDispatch
|
|
17508
17522
|
}) {
|
|
17509
17523
|
const runningActionItemRef = useRef(/* @__PURE__ */ new Set());
|
|
17510
|
-
const [
|
|
17524
|
+
const [internalQueueState, internalDispatch] = useReducer(queueReducer, INITIAL_STATE);
|
|
17525
|
+
const queueState = externalQueueState ?? internalQueueState;
|
|
17526
|
+
const dispatch = externalDispatch ?? internalDispatch;
|
|
17511
17527
|
let appContext = useAppContext();
|
|
17512
17528
|
const enqueueItem = useEvent((item2) => {
|
|
17513
17529
|
const itemId = generatedId();
|
|
@@ -17675,6 +17691,89 @@ function Queue({
|
|
|
17675
17691
|
}, [doComplete, doSingle, prevQueue, queue]);
|
|
17676
17692
|
return null;
|
|
17677
17693
|
}
|
|
17694
|
+
function QueueWithContextVar({
|
|
17695
|
+
node,
|
|
17696
|
+
renderChild: renderChild2,
|
|
17697
|
+
extractValue,
|
|
17698
|
+
lookupEventHandler,
|
|
17699
|
+
registerComponentApi
|
|
17700
|
+
}) {
|
|
17701
|
+
const [queueState, dispatch] = useReducer(queueReducer, INITIAL_STATE);
|
|
17702
|
+
const completedItems = useMemo(() => {
|
|
17703
|
+
return Object.values(queueState.queueState).filter((item2) => item2.status === "completed");
|
|
17704
|
+
}, [queueState.queueState]);
|
|
17705
|
+
const queuedItems = useMemo(() => {
|
|
17706
|
+
return Object.values(queueState.queueState);
|
|
17707
|
+
}, [queueState.queueState]);
|
|
17708
|
+
const $completedItems = completedItems;
|
|
17709
|
+
const $queuedItems = queuedItems;
|
|
17710
|
+
return /* @__PURE__ */ jsx(
|
|
17711
|
+
Queue,
|
|
17712
|
+
{
|
|
17713
|
+
queueState,
|
|
17714
|
+
dispatch,
|
|
17715
|
+
registerComponentApi,
|
|
17716
|
+
renderResultFeedback: node.props.resultFeedback ? (completedItems2, queuedItems2) => {
|
|
17717
|
+
return /* @__PURE__ */ jsx(
|
|
17718
|
+
MemoizedItem,
|
|
17719
|
+
{
|
|
17720
|
+
node: node.props.resultFeedback,
|
|
17721
|
+
contextVars: {
|
|
17722
|
+
$completedItems: completedItems2,
|
|
17723
|
+
$queuedItems: queuedItems2
|
|
17724
|
+
},
|
|
17725
|
+
renderChild: renderChild2
|
|
17726
|
+
}
|
|
17727
|
+
);
|
|
17728
|
+
} : void 0,
|
|
17729
|
+
renderProgressFeedback: node.props.progressFeedback ? (completedItems2, queuedItems2) => {
|
|
17730
|
+
return /* @__PURE__ */ jsx(
|
|
17731
|
+
MemoizedItem,
|
|
17732
|
+
{
|
|
17733
|
+
node: node.props.progressFeedback,
|
|
17734
|
+
contextVars: {
|
|
17735
|
+
$completedItems: completedItems2,
|
|
17736
|
+
$queuedItems: queuedItems2
|
|
17737
|
+
},
|
|
17738
|
+
renderChild: renderChild2
|
|
17739
|
+
}
|
|
17740
|
+
);
|
|
17741
|
+
} : void 0,
|
|
17742
|
+
willProcessItem: lookupEventHandler("willProcess", {
|
|
17743
|
+
context: {
|
|
17744
|
+
$completedItems,
|
|
17745
|
+
$queuedItems
|
|
17746
|
+
}
|
|
17747
|
+
}),
|
|
17748
|
+
processItem: lookupEventHandler("process", {
|
|
17749
|
+
signError: false,
|
|
17750
|
+
context: {
|
|
17751
|
+
$completedItems,
|
|
17752
|
+
$queuedItems
|
|
17753
|
+
}
|
|
17754
|
+
}),
|
|
17755
|
+
didProcessItem: lookupEventHandler("didProcess", {
|
|
17756
|
+
context: {
|
|
17757
|
+
$completedItems,
|
|
17758
|
+
$queuedItems
|
|
17759
|
+
}
|
|
17760
|
+
}),
|
|
17761
|
+
processItemError: lookupEventHandler("processError", {
|
|
17762
|
+
context: {
|
|
17763
|
+
$completedItems,
|
|
17764
|
+
$queuedItems
|
|
17765
|
+
}
|
|
17766
|
+
}),
|
|
17767
|
+
onComplete: lookupEventHandler("complete", {
|
|
17768
|
+
context: {
|
|
17769
|
+
$completedItems,
|
|
17770
|
+
$queuedItems
|
|
17771
|
+
}
|
|
17772
|
+
}),
|
|
17773
|
+
clearAfterFinish: extractValue.asOptionalBoolean(node.props.clearAfterFinish)
|
|
17774
|
+
}
|
|
17775
|
+
);
|
|
17776
|
+
}
|
|
17678
17777
|
const COMP$13 = "Queue";
|
|
17679
17778
|
const QueueMd = createMetadata({
|
|
17680
17779
|
status: "stable",
|
|
@@ -17752,41 +17851,13 @@ const queueComponentRenderer = createComponentRenderer(
|
|
|
17752
17851
|
QueueMd,
|
|
17753
17852
|
({ node, registerComponentApi, lookupEventHandler, renderChild: renderChild2, extractValue }) => {
|
|
17754
17853
|
return /* @__PURE__ */ jsx(
|
|
17755
|
-
|
|
17854
|
+
QueueWithContextVar,
|
|
17756
17855
|
{
|
|
17757
|
-
|
|
17758
|
-
|
|
17759
|
-
|
|
17760
|
-
|
|
17761
|
-
|
|
17762
|
-
node: node.props.resultFeedback,
|
|
17763
|
-
contextVars: {
|
|
17764
|
-
$completedItems: completedItems,
|
|
17765
|
-
$queuedItems: queuedItems
|
|
17766
|
-
},
|
|
17767
|
-
renderChild: renderChild2
|
|
17768
|
-
}
|
|
17769
|
-
);
|
|
17770
|
-
} : void 0,
|
|
17771
|
-
renderProgressFeedback: node.props.progressFeedback ? (completedItems, queuedItems) => {
|
|
17772
|
-
return /* @__PURE__ */ jsx(
|
|
17773
|
-
MemoizedItem,
|
|
17774
|
-
{
|
|
17775
|
-
node: node.props.progressFeedback,
|
|
17776
|
-
contextVars: {
|
|
17777
|
-
$completedItems: completedItems,
|
|
17778
|
-
$queuedItems: queuedItems
|
|
17779
|
-
},
|
|
17780
|
-
renderChild: renderChild2
|
|
17781
|
-
}
|
|
17782
|
-
);
|
|
17783
|
-
} : void 0,
|
|
17784
|
-
willProcessItem: lookupEventHandler("willProcess"),
|
|
17785
|
-
processItem: lookupEventHandler("process", { signError: false }),
|
|
17786
|
-
didProcessItem: lookupEventHandler("didProcess"),
|
|
17787
|
-
processItemError: lookupEventHandler("processError"),
|
|
17788
|
-
onComplete: lookupEventHandler("complete"),
|
|
17789
|
-
clearAfterFinish: extractValue.asOptionalBoolean(node.props.clearAfterFinish)
|
|
17856
|
+
node,
|
|
17857
|
+
renderChild: renderChild2,
|
|
17858
|
+
extractValue,
|
|
17859
|
+
lookupEventHandler,
|
|
17860
|
+
registerComponentApi
|
|
17790
17861
|
}
|
|
17791
17862
|
);
|
|
17792
17863
|
}
|
|
@@ -18109,7 +18180,7 @@ const ListNative = forwardRef(function DynamicHeightList({
|
|
|
18109
18180
|
defaultGroups = EMPTY_ARRAY,
|
|
18110
18181
|
registerComponentApi,
|
|
18111
18182
|
borderCollapse: borderCollapse2 = defaultProps$K.borderCollapse,
|
|
18112
|
-
...
|
|
18183
|
+
...rest
|
|
18113
18184
|
}, ref) {
|
|
18114
18185
|
var _a2;
|
|
18115
18186
|
const virtualizerRef = useRef(null);
|
|
@@ -18256,7 +18327,7 @@ const ListNative = forwardRef(function DynamicHeightList({
|
|
|
18256
18327
|
return /* @__PURE__ */ jsx(ListItemTypeContext.Provider, { value: rowTypeContextValue, children: /* @__PURE__ */ jsx(ListContext.Provider, { value: expandContextValue, children: /* @__PURE__ */ jsxs(
|
|
18257
18328
|
"div",
|
|
18258
18329
|
{
|
|
18259
|
-
...
|
|
18330
|
+
...rest,
|
|
18260
18331
|
ref: rootRef,
|
|
18261
18332
|
style: style2,
|
|
18262
18333
|
className: classnames(
|
|
@@ -18739,13 +18810,14 @@ var FormActionKind = /* @__PURE__ */ ((FormActionKind2) => {
|
|
|
18739
18810
|
FormActionKind2["RESET"] = "FormActionKind:RESET";
|
|
18740
18811
|
return FormActionKind2;
|
|
18741
18812
|
})(FormActionKind || {});
|
|
18742
|
-
function fieldInitialized(uid, value, force = false) {
|
|
18813
|
+
function fieldInitialized(uid, value, force = false, noSubmit = false) {
|
|
18743
18814
|
return {
|
|
18744
18815
|
type: "FormActionKind:FIELD_INITIALIZED",
|
|
18745
18816
|
payload: {
|
|
18746
18817
|
uid,
|
|
18747
18818
|
value,
|
|
18748
|
-
force
|
|
18819
|
+
force,
|
|
18820
|
+
noSubmit
|
|
18749
18821
|
}
|
|
18750
18822
|
};
|
|
18751
18823
|
}
|
|
@@ -22222,14 +22294,20 @@ const formReducer = produce((state, action2) => {
|
|
|
22222
22294
|
}
|
|
22223
22295
|
switch (action2.type) {
|
|
22224
22296
|
case FormActionKind.FIELD_INITIALIZED: {
|
|
22225
|
-
if (!state.interactionFlags[uid].isDirty || action2.payload.force) {
|
|
22297
|
+
if (action2.payload.value !== void 0 && (!state.interactionFlags[uid].isDirty || action2.payload.force)) {
|
|
22226
22298
|
set(state.subject, uid, action2.payload.value);
|
|
22227
22299
|
}
|
|
22300
|
+
if (state.noSubmitFields[uid] === true || action2.payload.noSubmit === true) {
|
|
22301
|
+
state.noSubmitFields[uid] = true;
|
|
22302
|
+
} else {
|
|
22303
|
+
state.noSubmitFields[uid] = false;
|
|
22304
|
+
}
|
|
22228
22305
|
break;
|
|
22229
22306
|
}
|
|
22230
22307
|
case FormActionKind.FIELD_REMOVED: {
|
|
22231
22308
|
delete state.validationResults[uid];
|
|
22232
22309
|
delete state.interactionFlags[uid];
|
|
22310
|
+
delete state.noSubmitFields[uid];
|
|
22233
22311
|
break;
|
|
22234
22312
|
}
|
|
22235
22313
|
case FormActionKind.FIELD_VALUE_CHANGED: {
|
|
@@ -22345,6 +22423,7 @@ const initialState = {
|
|
|
22345
22423
|
validationResults: {},
|
|
22346
22424
|
generalValidationResults: [],
|
|
22347
22425
|
interactionFlags: {},
|
|
22426
|
+
noSubmitFields: {},
|
|
22348
22427
|
submitInProgress: false,
|
|
22349
22428
|
resetVersion: 0
|
|
22350
22429
|
};
|
|
@@ -22356,12 +22435,14 @@ const defaultProps$z = {
|
|
|
22356
22435
|
itemLabelBreak: true,
|
|
22357
22436
|
keepModalOpenOnSubmit: false,
|
|
22358
22437
|
swapCancelAndSave: false,
|
|
22359
|
-
hideButtonRowUntilDirty: false
|
|
22438
|
+
hideButtonRowUntilDirty: false,
|
|
22439
|
+
hideButtonRow: false,
|
|
22440
|
+
enableSubmit: true
|
|
22360
22441
|
};
|
|
22361
|
-
function cleanUpSubject(subject) {
|
|
22442
|
+
function cleanUpSubject(subject, noSubmitFields) {
|
|
22362
22443
|
return Object.entries(subject || {}).reduce(
|
|
22363
22444
|
(acc, [key, value]) => {
|
|
22364
|
-
if (!key.endsWith(UNBOUND_FIELD_SUFFIX)) {
|
|
22445
|
+
if (!key.endsWith(UNBOUND_FIELD_SUFFIX) && !noSubmitFields[key]) {
|
|
22365
22446
|
acc[key] = value;
|
|
22366
22447
|
}
|
|
22367
22448
|
return acc;
|
|
@@ -22394,6 +22475,8 @@ const Form = forwardRef(function({
|
|
|
22394
22475
|
itemLabelPosition = defaultProps$z.itemLabelPosition,
|
|
22395
22476
|
keepModalOpenOnSubmit = defaultProps$z.keepModalOpenOnSubmit,
|
|
22396
22477
|
hideButtonRowUntilDirty,
|
|
22478
|
+
hideButtonRow = defaultProps$z.hideButtonRow,
|
|
22479
|
+
enableSubmit = defaultProps$z.enableSubmit,
|
|
22397
22480
|
...rest
|
|
22398
22481
|
}, ref) {
|
|
22399
22482
|
const formRef = useRef(null);
|
|
@@ -22435,6 +22518,20 @@ const Form = forwardRef(function({
|
|
|
22435
22518
|
onCancel == null ? void 0 : onCancel();
|
|
22436
22519
|
void requestModalFormClose();
|
|
22437
22520
|
});
|
|
22521
|
+
const doValidate = useEvent(async () => {
|
|
22522
|
+
dispatch(triedToSubmit());
|
|
22523
|
+
const { error: error2, warning: warning2 } = groupInvalidValidationResultsBySeverity(
|
|
22524
|
+
Object.values(formState.validationResults)
|
|
22525
|
+
);
|
|
22526
|
+
const cleanedData = cleanUpSubject(formState.subject, formState.noSubmitFields);
|
|
22527
|
+
return {
|
|
22528
|
+
isValid: error2.length === 0,
|
|
22529
|
+
data: cleanedData,
|
|
22530
|
+
errors: error2,
|
|
22531
|
+
warnings: warning2,
|
|
22532
|
+
validationResults: formState.validationResults
|
|
22533
|
+
};
|
|
22534
|
+
});
|
|
22438
22535
|
const doSubmit = useEvent(async (event) => {
|
|
22439
22536
|
var _a2;
|
|
22440
22537
|
event == null ? void 0 : event.preventDefault();
|
|
@@ -22442,21 +22539,18 @@ const Form = forwardRef(function({
|
|
|
22442
22539
|
return;
|
|
22443
22540
|
}
|
|
22444
22541
|
setConfirmSubmitModalVisible(false);
|
|
22445
|
-
|
|
22446
|
-
|
|
22447
|
-
Object.values(formState.validationResults)
|
|
22448
|
-
);
|
|
22449
|
-
if (error2.length) {
|
|
22542
|
+
const validationResult = await doValidate();
|
|
22543
|
+
if (!validationResult.isValid) {
|
|
22450
22544
|
return;
|
|
22451
22545
|
}
|
|
22452
|
-
if (
|
|
22546
|
+
if (validationResult.warnings.length > 0 && !confirmSubmitModalVisible) {
|
|
22453
22547
|
setConfirmSubmitModalVisible(true);
|
|
22454
22548
|
return;
|
|
22455
22549
|
}
|
|
22456
22550
|
const prevFocused = document.activeElement;
|
|
22457
22551
|
dispatch(formSubmitting());
|
|
22458
22552
|
try {
|
|
22459
|
-
const filteredSubject =
|
|
22553
|
+
const filteredSubject = validationResult.data;
|
|
22460
22554
|
const canSubmit = await (onWillSubmit == null ? void 0 : onWillSubmit(filteredSubject));
|
|
22461
22555
|
if (canSubmit === false) {
|
|
22462
22556
|
dispatch(
|
|
@@ -22485,7 +22579,7 @@ const Form = forwardRef(function({
|
|
|
22485
22579
|
const fieldValidationResults = {};
|
|
22486
22580
|
if (e instanceof Error && "errorCategory" in e && e.errorCategory === "GenericBackendError" && ((_a2 = e.details) == null ? void 0 : _a2.issues) && Array.isArray(e.details.issues)) {
|
|
22487
22581
|
e.details.issues.forEach((issue) => {
|
|
22488
|
-
const
|
|
22582
|
+
const validationResult2 = {
|
|
22489
22583
|
isValid: false,
|
|
22490
22584
|
invalidMessage: issue.message,
|
|
22491
22585
|
severity: issue.severity || "error",
|
|
@@ -22493,9 +22587,9 @@ const Form = forwardRef(function({
|
|
|
22493
22587
|
};
|
|
22494
22588
|
if (issue.field !== void 0) {
|
|
22495
22589
|
fieldValidationResults[issue.field] = fieldValidationResults[issue.field] || [];
|
|
22496
|
-
fieldValidationResults[issue.field].push(
|
|
22590
|
+
fieldValidationResults[issue.field].push(validationResult2);
|
|
22497
22591
|
} else {
|
|
22498
|
-
generalValidationResults.push(
|
|
22592
|
+
generalValidationResults.push(validationResult2);
|
|
22499
22593
|
}
|
|
22500
22594
|
});
|
|
22501
22595
|
} else {
|
|
@@ -22545,15 +22639,16 @@ const Form = forwardRef(function({
|
|
|
22545
22639
|
"cancel"
|
|
22546
22640
|
);
|
|
22547
22641
|
const submitButton = useMemo(
|
|
22548
|
-
() => /* @__PURE__ */ jsx(Button, { "data-part-id": PART_SUBMIT_BUTTON, type: "submit", disabled: !isEnabled2, children: formState.submitInProgress ? saveInProgressLabel : saveLabel }, "submit"),
|
|
22549
|
-
[isEnabled2, formState.submitInProgress, saveInProgressLabel, saveLabel]
|
|
22642
|
+
() => /* @__PURE__ */ jsx(Button, { "data-part-id": PART_SUBMIT_BUTTON, type: "submit", disabled: !isEnabled2 || !enableSubmit, children: formState.submitInProgress ? saveInProgressLabel : saveLabel }, "submit"),
|
|
22643
|
+
[isEnabled2, enableSubmit, formState.submitInProgress, saveInProgressLabel, saveLabel]
|
|
22550
22644
|
);
|
|
22551
22645
|
useEffect(() => {
|
|
22552
22646
|
registerComponentApi == null ? void 0 : registerComponentApi({
|
|
22553
22647
|
reset: doReset,
|
|
22554
|
-
update: updateData
|
|
22648
|
+
update: updateData,
|
|
22649
|
+
validate: doValidate
|
|
22555
22650
|
});
|
|
22556
|
-
}, [doReset, updateData, registerComponentApi]);
|
|
22651
|
+
}, [doReset, updateData, doValidate, registerComponentApi]);
|
|
22557
22652
|
let safeButtonRow = /* @__PURE__ */ jsx(Fragment, { children: buttonRow2 || /* @__PURE__ */ jsxs("div", { className: styles$G.buttonRow, children: [
|
|
22558
22653
|
swapCancelAndSave && [submitButton, cancelButton],
|
|
22559
22654
|
!swapCancelAndSave && [cancelButton, submitButton]
|
|
@@ -22573,7 +22668,7 @@ const Form = forwardRef(function({
|
|
|
22573
22668
|
},
|
|
22574
22669
|
/* @__PURE__ */ jsx(ValidationSummary, { generalValidationResults: formState.generalValidationResults }),
|
|
22575
22670
|
/* @__PURE__ */ jsx(FormContext.Provider, { value: formContextValue, children }),
|
|
22576
|
-
(!hideButtonRowUntilDirty || isDirty) && safeButtonRow
|
|
22671
|
+
!hideButtonRow && (!hideButtonRowUntilDirty || isDirty) && safeButtonRow
|
|
22577
22672
|
),
|
|
22578
22673
|
confirmSubmitModalVisible && /* @__PURE__ */ jsx(
|
|
22579
22674
|
ModalDialog,
|
|
@@ -22633,8 +22728,8 @@ const FormWithContextVar = forwardRef(function({
|
|
|
22633
22728
|
});
|
|
22634
22729
|
});
|
|
22635
22730
|
};
|
|
22636
|
-
return { ...cleanUpSubject(formState.subject), update: updateData };
|
|
22637
|
-
}, [formState.subject]);
|
|
22731
|
+
return { ...cleanUpSubject(formState.subject, formState.noSubmitFields), update: updateData };
|
|
22732
|
+
}, [formState.subject, formState.noSubmitFields]);
|
|
22638
22733
|
const nodeWithItem = useMemo(() => {
|
|
22639
22734
|
return {
|
|
22640
22735
|
type: "Fragment",
|
|
@@ -22660,6 +22755,8 @@ const FormWithContextVar = forwardRef(function({
|
|
|
22660
22755
|
itemLabelBreak: extractValue.asOptionalBoolean(node.props.itemLabelBreak),
|
|
22661
22756
|
itemLabelWidth: itemLabelWidthCssProps.width,
|
|
22662
22757
|
hideButtonRowUntilDirty: extractValue.asOptionalBoolean(node.props.hideButtonRowUntilDirty),
|
|
22758
|
+
hideButtonRow: extractValue.asOptionalBoolean(node.props.hideButtonRow),
|
|
22759
|
+
enableSubmit: extractValue.asOptionalBoolean(node.props.enableSubmit),
|
|
22663
22760
|
formState,
|
|
22664
22761
|
dispatch,
|
|
22665
22762
|
id: node.uid,
|
|
@@ -24206,511 +24303,6 @@ const ExpandableItem = forwardRef(function ExpandableItem2({
|
|
|
24206
24303
|
}
|
|
24207
24304
|
);
|
|
24208
24305
|
});
|
|
24209
|
-
const COLOR_DANGER_100 = "hsl(356, 100%, 91%)";
|
|
24210
|
-
const COLOR_DANGER_300 = "hsl(356, 100%, 70%)";
|
|
24211
|
-
const COLOR_PRIMARY = "hsl(204, 30.3%, 13%)";
|
|
24212
|
-
const COLOR_PRIMARY_LINE_NUMS = "#555b5e";
|
|
24213
|
-
const RADIUS = "0.5rem";
|
|
24214
|
-
function xmlUiMarkupToComponent(source, fileId = 0) {
|
|
24215
|
-
const { parse: parse2, getText } = createXmlUiParser(source);
|
|
24216
|
-
const { node, errors } = parse2();
|
|
24217
|
-
if (errors.length > 0) {
|
|
24218
|
-
const errorsForDisplay = addDisplayFieldsToErrors(errors, source);
|
|
24219
|
-
const erroneousCompoundComponentName = getCompoundCompName(node, getText);
|
|
24220
|
-
return { component: null, errors: errorsForDisplay, erroneousCompoundComponentName };
|
|
24221
|
-
}
|
|
24222
|
-
try {
|
|
24223
|
-
const component2 = nodeToComponentDef(node, getText, fileId);
|
|
24224
|
-
const transformResult = { component: component2, errors: [] };
|
|
24225
|
-
return transformResult;
|
|
24226
|
-
} catch (e) {
|
|
24227
|
-
const erroneousCompoundComponentName = getCompoundCompName(node, getText);
|
|
24228
|
-
const singleErr = {
|
|
24229
|
-
message: e.message,
|
|
24230
|
-
errPosCol: 0,
|
|
24231
|
-
errPosLine: 0,
|
|
24232
|
-
code: ErrCodes.expEq,
|
|
24233
|
-
category: DiagnosticCategory.Error,
|
|
24234
|
-
pos: 0,
|
|
24235
|
-
end: 0,
|
|
24236
|
-
contextPos: 0,
|
|
24237
|
-
contextEnd: 0,
|
|
24238
|
-
contextSource: "",
|
|
24239
|
-
contextStartLine: 0
|
|
24240
|
-
};
|
|
24241
|
-
return {
|
|
24242
|
-
component: null,
|
|
24243
|
-
erroneousCompoundComponentName,
|
|
24244
|
-
errors: [singleErr]
|
|
24245
|
-
};
|
|
24246
|
-
}
|
|
24247
|
-
}
|
|
24248
|
-
function createErrorMessageComponent(message) {
|
|
24249
|
-
const comp = {
|
|
24250
|
-
type: "VStack",
|
|
24251
|
-
props: { padding: "$padding-normal", gap: 0 },
|
|
24252
|
-
children: [
|
|
24253
|
-
{
|
|
24254
|
-
type: "H1",
|
|
24255
|
-
props: {
|
|
24256
|
-
value: message,
|
|
24257
|
-
padding: "$padding-normal",
|
|
24258
|
-
backgroundColor: "$color-error",
|
|
24259
|
-
color: "white"
|
|
24260
|
-
}
|
|
24261
|
-
}
|
|
24262
|
-
]
|
|
24263
|
-
};
|
|
24264
|
-
return comp;
|
|
24265
|
-
}
|
|
24266
|
-
function errReportMessage(message) {
|
|
24267
|
-
const comp = createErrorMessageComponent(message);
|
|
24268
|
-
comp.component = createErrorMessageComponent(message);
|
|
24269
|
-
return comp;
|
|
24270
|
-
}
|
|
24271
|
-
function createErrorReportComponent(errors, fileName) {
|
|
24272
|
-
const errList = errors.sort((a, b) => {
|
|
24273
|
-
if (a.pos === void 0 && b.pos === void 0) {
|
|
24274
|
-
return 0;
|
|
24275
|
-
} else if (a.pos === void 0) {
|
|
24276
|
-
return 1;
|
|
24277
|
-
} else if (b.pos === void 0) {
|
|
24278
|
-
return -1;
|
|
24279
|
-
} else {
|
|
24280
|
-
return a.pos - b.pos;
|
|
24281
|
-
}
|
|
24282
|
-
}).map((e, idx) => {
|
|
24283
|
-
const errorStartInContext = e.pos - e.contextPos;
|
|
24284
|
-
const errorEndInContext = e.end - e.contextPos;
|
|
24285
|
-
const contextLines = e.contextSource.split("\n");
|
|
24286
|
-
let currentPos = 0;
|
|
24287
|
-
const lastLineNumber = e.contextStartLine + contextLines.length - 1;
|
|
24288
|
-
const maxDigits = lastLineNumber.toString().length;
|
|
24289
|
-
const contextChildren = [];
|
|
24290
|
-
for (let lineIdx = 0; lineIdx < contextLines.length; lineIdx++) {
|
|
24291
|
-
const line2 = contextLines[lineIdx];
|
|
24292
|
-
const lineNumber = e.contextStartLine + lineIdx;
|
|
24293
|
-
const paddedLineNumber = lineNumber.toString().padStart(maxDigits, "0");
|
|
24294
|
-
const linePrefix = `${paddedLineNumber} | `;
|
|
24295
|
-
const lineStart = currentPos;
|
|
24296
|
-
const lineEnd = currentPos + line2.length;
|
|
24297
|
-
const lineChildren = [
|
|
24298
|
-
{
|
|
24299
|
-
type: "Theme",
|
|
24300
|
-
props: {},
|
|
24301
|
-
children: [
|
|
24302
|
-
{
|
|
24303
|
-
type: "Text",
|
|
24304
|
-
props: {
|
|
24305
|
-
value: linePrefix,
|
|
24306
|
-
fontFamily: "monospace",
|
|
24307
|
-
color: COLOR_PRIMARY_LINE_NUMS
|
|
24308
|
-
}
|
|
24309
|
-
}
|
|
24310
|
-
]
|
|
24311
|
-
},
|
|
24312
|
-
,
|
|
24313
|
-
];
|
|
24314
|
-
if (errorStartInContext >= lineStart && errorStartInContext < lineEnd) {
|
|
24315
|
-
const beforeError = line2.substring(0, errorStartInContext - lineStart);
|
|
24316
|
-
const errorInLine = line2.substring(
|
|
24317
|
-
errorStartInContext - lineStart,
|
|
24318
|
-
Math.min(errorEndInContext - lineStart, line2.length)
|
|
24319
|
-
);
|
|
24320
|
-
const afterError = line2.substring(Math.min(errorEndInContext - lineStart, line2.length));
|
|
24321
|
-
if (beforeError) {
|
|
24322
|
-
lineChildren.push({
|
|
24323
|
-
type: "Text",
|
|
24324
|
-
props: {
|
|
24325
|
-
value: beforeError,
|
|
24326
|
-
fontFamily: "monospace"
|
|
24327
|
-
}
|
|
24328
|
-
});
|
|
24329
|
-
}
|
|
24330
|
-
if (errorInLine) {
|
|
24331
|
-
lineChildren.push({
|
|
24332
|
-
type: "Text",
|
|
24333
|
-
props: {
|
|
24334
|
-
value: errorInLine,
|
|
24335
|
-
fontFamily: "monospace",
|
|
24336
|
-
textDecorationLine: "underline",
|
|
24337
|
-
textDecorationColor: "$color-error",
|
|
24338
|
-
backgroundColor: COLOR_DANGER_100
|
|
24339
|
-
}
|
|
24340
|
-
});
|
|
24341
|
-
}
|
|
24342
|
-
if (afterError) {
|
|
24343
|
-
lineChildren.push({
|
|
24344
|
-
type: "Text",
|
|
24345
|
-
props: {
|
|
24346
|
-
value: afterError,
|
|
24347
|
-
fontFamily: "monospace"
|
|
24348
|
-
}
|
|
24349
|
-
});
|
|
24350
|
-
}
|
|
24351
|
-
} else if (errorStartInContext < lineStart && errorEndInContext > lineEnd) {
|
|
24352
|
-
lineChildren.push({
|
|
24353
|
-
type: "Text",
|
|
24354
|
-
props: {
|
|
24355
|
-
value: line2,
|
|
24356
|
-
fontFamily: "monospace",
|
|
24357
|
-
textDecorationLine: "underline",
|
|
24358
|
-
textDecorationColor: "$color-error",
|
|
24359
|
-
backgroundColor: COLOR_DANGER_100
|
|
24360
|
-
}
|
|
24361
|
-
});
|
|
24362
|
-
} else if (errorStartInContext < lineStart && errorEndInContext >= lineStart && errorEndInContext < lineEnd) {
|
|
24363
|
-
const errorInLine = line2.substring(0, errorEndInContext - lineStart);
|
|
24364
|
-
const afterError = line2.substring(errorEndInContext - lineStart);
|
|
24365
|
-
if (errorInLine) {
|
|
24366
|
-
lineChildren.push({
|
|
24367
|
-
type: "Text",
|
|
24368
|
-
props: {
|
|
24369
|
-
value: errorInLine,
|
|
24370
|
-
fontFamily: "monospace",
|
|
24371
|
-
textDecorationLine: "underline",
|
|
24372
|
-
textDecorationColor: "$color-error",
|
|
24373
|
-
backgroundColor: COLOR_DANGER_100
|
|
24374
|
-
}
|
|
24375
|
-
});
|
|
24376
|
-
}
|
|
24377
|
-
if (afterError) {
|
|
24378
|
-
lineChildren.push({
|
|
24379
|
-
type: "Text",
|
|
24380
|
-
props: {
|
|
24381
|
-
value: afterError,
|
|
24382
|
-
fontFamily: "monospace"
|
|
24383
|
-
}
|
|
24384
|
-
});
|
|
24385
|
-
}
|
|
24386
|
-
} else if (lineEnd === errorStartInContext && errorStartInContext === errorEndInContext) {
|
|
24387
|
-
lineChildren.push({
|
|
24388
|
-
type: "Text",
|
|
24389
|
-
props: {
|
|
24390
|
-
value: line2,
|
|
24391
|
-
fontFamily: "monospace"
|
|
24392
|
-
}
|
|
24393
|
-
});
|
|
24394
|
-
lineChildren.push({
|
|
24395
|
-
type: "Text",
|
|
24396
|
-
props: {
|
|
24397
|
-
value: " ",
|
|
24398
|
-
preserveLinebreaks: true,
|
|
24399
|
-
textDecorationLine: "underline",
|
|
24400
|
-
fontFamily: "monospace",
|
|
24401
|
-
fontWeight: "bold",
|
|
24402
|
-
backgroundColor: COLOR_DANGER_100,
|
|
24403
|
-
color: "$color-error"
|
|
24404
|
-
}
|
|
24405
|
-
});
|
|
24406
|
-
} else {
|
|
24407
|
-
lineChildren.push({
|
|
24408
|
-
type: "Text",
|
|
24409
|
-
props: {
|
|
24410
|
-
value: line2,
|
|
24411
|
-
fontFamily: "monospace"
|
|
24412
|
-
}
|
|
24413
|
-
});
|
|
24414
|
-
}
|
|
24415
|
-
contextChildren.push({
|
|
24416
|
-
type: "HStack",
|
|
24417
|
-
props: { gap: "0" },
|
|
24418
|
-
children: lineChildren
|
|
24419
|
-
});
|
|
24420
|
-
currentPos = lineEnd + 1;
|
|
24421
|
-
}
|
|
24422
|
-
const errMsgComponenet = {
|
|
24423
|
-
type: "Text",
|
|
24424
|
-
children: [
|
|
24425
|
-
{
|
|
24426
|
-
type: "Text",
|
|
24427
|
-
props: {
|
|
24428
|
-
value: `#${idx + 1}: ${fileName} (${e.errPosLine}:${e.errPosCol}):`
|
|
24429
|
-
// color: "hsl(204, 30.3%, 27%)",
|
|
24430
|
-
}
|
|
24431
|
-
},
|
|
24432
|
-
{
|
|
24433
|
-
type: "Text",
|
|
24434
|
-
props: {
|
|
24435
|
-
value: ` ${e.message}`,
|
|
24436
|
-
fontWeight: "bold"
|
|
24437
|
-
}
|
|
24438
|
-
}
|
|
24439
|
-
]
|
|
24440
|
-
};
|
|
24441
|
-
const context = {
|
|
24442
|
-
type: "HStack",
|
|
24443
|
-
props: {
|
|
24444
|
-
width: "100%"
|
|
24445
|
-
},
|
|
24446
|
-
children: [
|
|
24447
|
-
{
|
|
24448
|
-
type: "VStack",
|
|
24449
|
-
props: {
|
|
24450
|
-
gap: "0",
|
|
24451
|
-
padding: "$padding-normal",
|
|
24452
|
-
backgroundColor: "$color-surface-variant"
|
|
24453
|
-
},
|
|
24454
|
-
children: contextChildren
|
|
24455
|
-
}
|
|
24456
|
-
]
|
|
24457
|
-
};
|
|
24458
|
-
const errComponent = {
|
|
24459
|
-
type: "VStack",
|
|
24460
|
-
props: {
|
|
24461
|
-
gap: "$gap-none",
|
|
24462
|
-
padding: "16px",
|
|
24463
|
-
backgroundColor: "white",
|
|
24464
|
-
borderRadius: RADIUS
|
|
24465
|
-
},
|
|
24466
|
-
children: [errMsgComponenet]
|
|
24467
|
-
};
|
|
24468
|
-
if (!(e.contextSource === "" && e.pos === 0 && e.end === 0)) {
|
|
24469
|
-
errComponent.children.push(context);
|
|
24470
|
-
}
|
|
24471
|
-
return errComponent;
|
|
24472
|
-
});
|
|
24473
|
-
const comp = {
|
|
24474
|
-
type: "Theme",
|
|
24475
|
-
props: {
|
|
24476
|
-
"textColor-primary": COLOR_PRIMARY
|
|
24477
|
-
},
|
|
24478
|
-
children: [
|
|
24479
|
-
{
|
|
24480
|
-
type: "VStack",
|
|
24481
|
-
props: {
|
|
24482
|
-
padding: "16px 32px 16px 38px",
|
|
24483
|
-
gap: 0,
|
|
24484
|
-
backgroundColor: COLOR_DANGER_100,
|
|
24485
|
-
margin: "10px",
|
|
24486
|
-
border: "2px solid " + COLOR_DANGER_300,
|
|
24487
|
-
borderRadius: RADIUS
|
|
24488
|
-
},
|
|
24489
|
-
children: [
|
|
24490
|
-
{
|
|
24491
|
-
type: "HStack",
|
|
24492
|
-
props: {
|
|
24493
|
-
verticalAlignment: "center",
|
|
24494
|
-
marginLeft: "-34px",
|
|
24495
|
-
padding: "0px 0px 15px 0px",
|
|
24496
|
-
gap: "4px"
|
|
24497
|
-
},
|
|
24498
|
-
children: [
|
|
24499
|
-
{
|
|
24500
|
-
type: "Icon",
|
|
24501
|
-
props: {
|
|
24502
|
-
name: "error",
|
|
24503
|
-
size: "30px",
|
|
24504
|
-
color: "$color-error"
|
|
24505
|
-
}
|
|
24506
|
-
},
|
|
24507
|
-
{
|
|
24508
|
-
type: "H2",
|
|
24509
|
-
props: {
|
|
24510
|
-
value: `${errList.length} ${errList.length > 1 ? "errors" : "error"} while processing XMLUI markup`,
|
|
24511
|
-
fontWeight: "bold",
|
|
24512
|
-
showAnchor: false
|
|
24513
|
-
}
|
|
24514
|
-
}
|
|
24515
|
-
]
|
|
24516
|
-
},
|
|
24517
|
-
{
|
|
24518
|
-
type: "VStack",
|
|
24519
|
-
props: {
|
|
24520
|
-
padding: "$padding-none",
|
|
24521
|
-
gap: "16px"
|
|
24522
|
-
},
|
|
24523
|
-
children: errList
|
|
24524
|
-
}
|
|
24525
|
-
]
|
|
24526
|
-
}
|
|
24527
|
-
]
|
|
24528
|
-
};
|
|
24529
|
-
return comp;
|
|
24530
|
-
}
|
|
24531
|
-
function errReportComponent(errors, fileName, compoundCompName) {
|
|
24532
|
-
const comp = createErrorReportComponent(errors, fileName);
|
|
24533
|
-
comp.name = compoundCompName;
|
|
24534
|
-
comp.component = createErrorReportComponent(errors, fileName);
|
|
24535
|
-
return comp;
|
|
24536
|
-
}
|
|
24537
|
-
function createScriptErrorComponent(error2, fileName) {
|
|
24538
|
-
const comp = {
|
|
24539
|
-
type: "VStack",
|
|
24540
|
-
props: { padding: "$padding-normal", gap: 0 },
|
|
24541
|
-
children: [
|
|
24542
|
-
{
|
|
24543
|
-
type: "H1",
|
|
24544
|
-
props: {
|
|
24545
|
-
value: `An error found while processing XMLUI code-behind script`,
|
|
24546
|
-
padding: "$padding-normal",
|
|
24547
|
-
backgroundColor: "$color-error",
|
|
24548
|
-
color: "white"
|
|
24549
|
-
}
|
|
24550
|
-
},
|
|
24551
|
-
{
|
|
24552
|
-
type: "VStack",
|
|
24553
|
-
props: {
|
|
24554
|
-
gap: "$gap-tight",
|
|
24555
|
-
padding: "$padding-normal"
|
|
24556
|
-
},
|
|
24557
|
-
children: [
|
|
24558
|
-
{
|
|
24559
|
-
type: "HStack",
|
|
24560
|
-
props: { gap: "0" },
|
|
24561
|
-
children: [
|
|
24562
|
-
{
|
|
24563
|
-
type: "Text",
|
|
24564
|
-
props: {
|
|
24565
|
-
value: `${fileName} (${error2.line}:${error2.column}): `,
|
|
24566
|
-
color: "$color-info"
|
|
24567
|
-
}
|
|
24568
|
-
},
|
|
24569
|
-
{
|
|
24570
|
-
type: "Text",
|
|
24571
|
-
props: { value: ` ${error2.text}`, fontWeight: "bold" }
|
|
24572
|
-
}
|
|
24573
|
-
]
|
|
24574
|
-
}
|
|
24575
|
-
]
|
|
24576
|
-
}
|
|
24577
|
-
]
|
|
24578
|
-
};
|
|
24579
|
-
return comp;
|
|
24580
|
-
}
|
|
24581
|
-
function errReportScriptError(error2, fileName) {
|
|
24582
|
-
const comp = createScriptErrorComponent(error2, fileName);
|
|
24583
|
-
comp.component = createScriptErrorComponent(error2, fileName);
|
|
24584
|
-
return comp;
|
|
24585
|
-
}
|
|
24586
|
-
function createModuleErrorsComponent(errors, fileName) {
|
|
24587
|
-
const errList = [];
|
|
24588
|
-
let idx = 1;
|
|
24589
|
-
Object.keys(errors).map((key) => {
|
|
24590
|
-
const e = errors[key];
|
|
24591
|
-
for (let err of e) {
|
|
24592
|
-
errList.push({
|
|
24593
|
-
type: "VStack",
|
|
24594
|
-
props: { gap: "0px" },
|
|
24595
|
-
children: [
|
|
24596
|
-
{
|
|
24597
|
-
type: "HStack",
|
|
24598
|
-
props: { gap: "0" },
|
|
24599
|
-
children: [
|
|
24600
|
-
{
|
|
24601
|
-
type: "Text",
|
|
24602
|
-
props: {
|
|
24603
|
-
value: `#${idx++}: ${fileName} (${err.line}:${err.column}): `,
|
|
24604
|
-
color: "$color-info"
|
|
24605
|
-
}
|
|
24606
|
-
},
|
|
24607
|
-
{
|
|
24608
|
-
type: "Text",
|
|
24609
|
-
props: { value: ` ${err.text}`, fontWeight: "bold" }
|
|
24610
|
-
}
|
|
24611
|
-
]
|
|
24612
|
-
}
|
|
24613
|
-
]
|
|
24614
|
-
});
|
|
24615
|
-
}
|
|
24616
|
-
});
|
|
24617
|
-
const comp = {
|
|
24618
|
-
type: "VStack",
|
|
24619
|
-
props: { padding: "$padding-normal", gap: 0 },
|
|
24620
|
-
children: [
|
|
24621
|
-
{
|
|
24622
|
-
type: "H1",
|
|
24623
|
-
props: {
|
|
24624
|
-
value: `${errList.length} ${errList.length > 1 ? "Errors" : "Error"} found while processing XMLUI code-behind script`,
|
|
24625
|
-
padding: "$padding-normal",
|
|
24626
|
-
backgroundColor: "$color-error",
|
|
24627
|
-
color: "white"
|
|
24628
|
-
}
|
|
24629
|
-
},
|
|
24630
|
-
{
|
|
24631
|
-
type: "VStack",
|
|
24632
|
-
props: {
|
|
24633
|
-
gap: "$gap-tight",
|
|
24634
|
-
padding: "$padding-normal"
|
|
24635
|
-
},
|
|
24636
|
-
children: errList
|
|
24637
|
-
}
|
|
24638
|
-
]
|
|
24639
|
-
};
|
|
24640
|
-
return comp;
|
|
24641
|
-
}
|
|
24642
|
-
function errReportModuleErrors(errors, fileName) {
|
|
24643
|
-
const comp = createModuleErrorsComponent(errors, fileName);
|
|
24644
|
-
comp.component = createModuleErrorsComponent(errors, fileName);
|
|
24645
|
-
return comp;
|
|
24646
|
-
}
|
|
24647
|
-
function getCompoundCompName(node, getText) {
|
|
24648
|
-
var _a2, _b, _c, _d, _e, _f;
|
|
24649
|
-
const rootTag = (_a2 = node == null ? void 0 : node.children) == null ? void 0 : _a2[0];
|
|
24650
|
-
const rootTagNameTokens = (_c = (_b = rootTag == null ? void 0 : rootTag.children) == null ? void 0 : _b.find(
|
|
24651
|
-
(c) => c.kind === SyntaxKind.TagNameNode
|
|
24652
|
-
)) == null ? void 0 : _c.children;
|
|
24653
|
-
const rootTagName = rootTagNameTokens == null ? void 0 : rootTagNameTokens[rootTagNameTokens.length - 1];
|
|
24654
|
-
if (rootTagName === void 0 || getText(rootTagName) !== "Component") {
|
|
24655
|
-
return void 0;
|
|
24656
|
-
}
|
|
24657
|
-
const attrs = (_e = (_d = rootTag.children) == null ? void 0 : _d.find((c) => c.kind === SyntaxKind.AttributeListNode)) == null ? void 0 : _e.children;
|
|
24658
|
-
const nameAttrTokens = (_f = attrs == null ? void 0 : attrs.find(
|
|
24659
|
-
(c) => c.kind === SyntaxKind.AttributeNode && getText(c == null ? void 0 : c.children[0]) === "name"
|
|
24660
|
-
)) == null ? void 0 : _f.children;
|
|
24661
|
-
const nameValueToken = nameAttrTokens == null ? void 0 : nameAttrTokens[nameAttrTokens.length - 1];
|
|
24662
|
-
if (nameValueToken !== void 0 && nameValueToken.kind === SyntaxKind.StringLiteral) {
|
|
24663
|
-
const strLit = getText(nameValueToken);
|
|
24664
|
-
return strLit.substring(1, strLit.length - 1);
|
|
24665
|
-
}
|
|
24666
|
-
return void 0;
|
|
24667
|
-
}
|
|
24668
|
-
function addDisplayFieldsToErrors(errors, source) {
|
|
24669
|
-
const { offsetToPosForDisplay } = createDocumentCursor(source);
|
|
24670
|
-
return errors.map((err) => {
|
|
24671
|
-
const { line: errPosLine, character: errPosCol } = offsetToPosForDisplay(err.pos);
|
|
24672
|
-
const { line: contextStartLine } = offsetToPosForDisplay(err.contextPos);
|
|
24673
|
-
return {
|
|
24674
|
-
...err,
|
|
24675
|
-
errPosLine,
|
|
24676
|
-
errPosCol,
|
|
24677
|
-
contextStartLine,
|
|
24678
|
-
contextSource: source.substring(err.contextPos, err.contextEnd)
|
|
24679
|
-
};
|
|
24680
|
-
});
|
|
24681
|
-
}
|
|
24682
|
-
function createDocumentCursor(text2) {
|
|
24683
|
-
const newlinePositions = [];
|
|
24684
|
-
for (let i = 0; i < text2.length; ++i) {
|
|
24685
|
-
if (text2[i] === "\n") {
|
|
24686
|
-
newlinePositions.push(i);
|
|
24687
|
-
}
|
|
24688
|
-
}
|
|
24689
|
-
return {
|
|
24690
|
-
offsetToPos,
|
|
24691
|
-
offsetToPosForDisplay
|
|
24692
|
-
};
|
|
24693
|
-
function offsetToPos(offset) {
|
|
24694
|
-
let left2 = 0;
|
|
24695
|
-
let right2 = newlinePositions.length;
|
|
24696
|
-
while (left2 < right2) {
|
|
24697
|
-
const mid = Math.floor((left2 + right2) / 2);
|
|
24698
|
-
if (newlinePositions[mid] < offset) {
|
|
24699
|
-
left2 = mid + 1;
|
|
24700
|
-
} else {
|
|
24701
|
-
right2 = mid;
|
|
24702
|
-
}
|
|
24703
|
-
}
|
|
24704
|
-
let col = left2 === 0 ? offset : offset - newlinePositions[left2 - 1] - 1;
|
|
24705
|
-
return { line: left2, character: col };
|
|
24706
|
-
}
|
|
24707
|
-
function offsetToPosForDisplay(offset) {
|
|
24708
|
-
let pos = offsetToPos(offset);
|
|
24709
|
-
pos.line += 1;
|
|
24710
|
-
pos.character += 1;
|
|
24711
|
-
return pos;
|
|
24712
|
-
}
|
|
24713
|
-
}
|
|
24714
24306
|
const ApiInterceptorContext = createContext(null);
|
|
24715
24307
|
function useApiInterceptorContext() {
|
|
24716
24308
|
return useContext(ApiInterceptorContext);
|
|
@@ -24737,7 +24329,7 @@ function ApiInterceptorProvider({
|
|
|
24737
24329
|
return;
|
|
24738
24330
|
}
|
|
24739
24331
|
void (async () => {
|
|
24740
|
-
const { initMock } = await import("./initMock-
|
|
24332
|
+
const { initMock } = await import("./initMock-DhUnLKrR.js");
|
|
24741
24333
|
const apiInstance2 = await initMock(interceptor);
|
|
24742
24334
|
setApiInstance(apiInstance2);
|
|
24743
24335
|
setInitialized(true);
|
|
@@ -24753,8 +24345,8 @@ function ApiInterceptorProvider({
|
|
|
24753
24345
|
void (async () => {
|
|
24754
24346
|
if (process.env.VITE_MOCK_ENABLED) {
|
|
24755
24347
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
24756
|
-
useWorker ? import("./apiInterceptorWorker-QiltRtq1.
|
|
24757
|
-
import("./initMock-
|
|
24348
|
+
useWorker ? import("./apiInterceptorWorker-QiltRtq1.js") : Promise.resolve({ createApiInterceptorWorker: () => null }),
|
|
24349
|
+
import("./initMock-DhUnLKrR.js")
|
|
24758
24350
|
]);
|
|
24759
24351
|
if (interceptor || forceInitialize) {
|
|
24760
24352
|
const apiInstance2 = await initMock(interceptor || {});
|
|
@@ -24790,8 +24382,8 @@ function ApiInterceptorProvider({
|
|
|
24790
24382
|
if (parentInterceptorWorker) {
|
|
24791
24383
|
void (async () => {
|
|
24792
24384
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
24793
|
-
import("./apiInterceptorWorker-QiltRtq1.
|
|
24794
|
-
import("./initMock-
|
|
24385
|
+
import("./apiInterceptorWorker-QiltRtq1.js"),
|
|
24386
|
+
import("./initMock-DhUnLKrR.js")
|
|
24795
24387
|
]);
|
|
24796
24388
|
const apiInstance2 = await initMock(interceptor);
|
|
24797
24389
|
await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
|
|
@@ -25483,8 +25075,8 @@ function AppWithCodeViewNative({
|
|
|
25483
25075
|
)
|
|
25484
25076
|
] });
|
|
25485
25077
|
}
|
|
25486
|
-
const codeText = "
|
|
25487
|
-
const codefence = "
|
|
25078
|
+
const codeText = "_codeText_trvop_14";
|
|
25079
|
+
const codefence = "_codefence_trvop_21";
|
|
25488
25080
|
const styles$u = {
|
|
25489
25081
|
codeText,
|
|
25490
25082
|
codefence
|
|
@@ -27035,7 +26627,8 @@ const defaultProps$s = {
|
|
|
27035
26627
|
labelBreak: true,
|
|
27036
26628
|
enabled: true,
|
|
27037
26629
|
customValidationsDebounce: 0,
|
|
27038
|
-
gap: "0"
|
|
26630
|
+
gap: "0",
|
|
26631
|
+
noSubmit: false
|
|
27039
26632
|
};
|
|
27040
26633
|
const FormItemContext = createContext({ parentFormItemId: null });
|
|
27041
26634
|
function ArrayLikeFormItem({
|
|
@@ -27102,6 +26695,7 @@ const FormItem = memo(function FormItem2({
|
|
|
27102
26695
|
itemIndex,
|
|
27103
26696
|
initialValue: initialValueFromProps,
|
|
27104
26697
|
gap,
|
|
26698
|
+
noSubmit = defaultProps$s.noSubmit,
|
|
27105
26699
|
...rest
|
|
27106
26700
|
}) {
|
|
27107
26701
|
const validations = useShallowCompareMemoize({
|
|
@@ -27156,10 +26750,8 @@ const FormItem = memo(function FormItem2({
|
|
|
27156
26750
|
const formEnabled = useFormContextPart((value2) => value2 == null ? void 0 : value2.enabled);
|
|
27157
26751
|
const isEnabled2 = enabled2 && formEnabled;
|
|
27158
26752
|
useEffect(() => {
|
|
27159
|
-
|
|
27160
|
-
|
|
27161
|
-
}
|
|
27162
|
-
}, [dispatch, formItemId, initialValue]);
|
|
26753
|
+
dispatch(fieldInitialized(formItemId, initialValue, false, noSubmit));
|
|
26754
|
+
}, [dispatch, formItemId, initialValue, noSubmit]);
|
|
27163
26755
|
useValidation(validations, onValidate, value, dispatch, formItemId, customValidationsDebounce);
|
|
27164
26756
|
const onStateChange = useCallback(
|
|
27165
26757
|
({ value: value2 }, options2) => {
|
|
@@ -27605,6 +27197,11 @@ const FormItemMd = createMetadata({
|
|
|
27605
27197
|
description: "This property defines the gap between the adornments and the input area.",
|
|
27606
27198
|
valueType: "string",
|
|
27607
27199
|
defaultValue: defaultProps$s.gap
|
|
27200
|
+
},
|
|
27201
|
+
noSubmit: {
|
|
27202
|
+
description: "When set to `true`, the field will not be included in the form's submitted data. This is useful for fields that should be present in the form but not submitted, similar to hidden fields. If multiple FormItems reference the same `bindTo` value and any of them has `noSubmit` set to `true`, the field will NOT be submitted.",
|
|
27203
|
+
type: "boolean",
|
|
27204
|
+
defaultValue: defaultProps$s.noSubmit
|
|
27608
27205
|
}
|
|
27609
27206
|
},
|
|
27610
27207
|
events: {
|
|
@@ -27684,6 +27281,7 @@ const formItemComponentRenderer = createComponentRenderer(
|
|
|
27684
27281
|
validationMode,
|
|
27685
27282
|
maxTextLength,
|
|
27686
27283
|
gap,
|
|
27284
|
+
noSubmit,
|
|
27687
27285
|
...rest
|
|
27688
27286
|
} = node.props;
|
|
27689
27287
|
const resolvedRestProps = extractValue(rest);
|
|
@@ -27728,6 +27326,7 @@ const formItemComponentRenderer = createComponentRenderer(
|
|
|
27728
27326
|
maxTextLength: extractValue(maxTextLength),
|
|
27729
27327
|
itemIndex: extractValue("{$itemIndex}"),
|
|
27730
27328
|
initialValue: extractValue(node.props.initialValue),
|
|
27329
|
+
noSubmit: extractValue.asOptionalBoolean(noSubmit),
|
|
27731
27330
|
inputRenderer: inputTemplate ? (contextVars) => /* @__PURE__ */ jsx(
|
|
27732
27331
|
MemoizedItem,
|
|
27733
27332
|
{
|
|
@@ -28591,6 +28190,16 @@ const FormMd = createMetadata({
|
|
|
28591
28190
|
type: "boolean",
|
|
28592
28191
|
defaultValue: defaultProps$z.hideButtonRowUntilDirty
|
|
28593
28192
|
},
|
|
28193
|
+
hideButtonRow: {
|
|
28194
|
+
description: `This property hides the button row entirely when set to true.`,
|
|
28195
|
+
type: "boolean",
|
|
28196
|
+
defaultValue: defaultProps$z.hideButtonRow
|
|
28197
|
+
},
|
|
28198
|
+
enableSubmit: {
|
|
28199
|
+
description: `This property controls whether the submit button is enabled. When set to false, the submit button is disabled and the form cannot be submitted.`,
|
|
28200
|
+
type: "boolean",
|
|
28201
|
+
defaultValue: defaultProps$z.enableSubmit
|
|
28202
|
+
},
|
|
28594
28203
|
submitUrl: d(`URL to submit the form data.`),
|
|
28595
28204
|
submitMethod: {
|
|
28596
28205
|
description: "This property sets the HTTP method to use when submitting the form data. If not defined, `put` is used when the form has initial data; otherwise, `post`."
|
|
@@ -28628,6 +28237,11 @@ const FormMd = createMetadata({
|
|
|
28628
28237
|
parameters: {
|
|
28629
28238
|
data: "An object containing the form data to update."
|
|
28630
28239
|
}
|
|
28240
|
+
},
|
|
28241
|
+
validate: {
|
|
28242
|
+
description: "This method triggers validation on all form fields without submitting the form. It displays validation errors and returns the validation result along with the cleaned form data. This is useful for implementing custom submit buttons or performing operations that require validated data without actually submitting the form.",
|
|
28243
|
+
signature: "validate(): Promise<{ isValid: boolean, data: Record<string, any>, errors: ValidationResult[], warnings: ValidationResult[], validationResults: Record<string, ValidationResult> }>",
|
|
28244
|
+
returns: "A promise that resolves to an object containing validation status, cleaned data, and detailed validation results."
|
|
28631
28245
|
}
|
|
28632
28246
|
},
|
|
28633
28247
|
themeVars: parseScssVar(styles$G.themeVars),
|
|
@@ -38637,12 +38251,14 @@ const TableOfContentsMd = createMetadata({
|
|
|
38637
38251
|
[`paddingLeft-${COMP_CHILD}-level-5`]: "$space-6",
|
|
38638
38252
|
[`paddingLeft-${COMP_CHILD}-level-6`]: "$space-6",
|
|
38639
38253
|
[`fontWeight-${COMP_CHILD}`]: "$fontWeight-bold",
|
|
38640
|
-
[`fontWeight-${COMP_CHILD}-level-
|
|
38641
|
-
[`fontWeight-${COMP_CHILD}-level-
|
|
38642
|
-
[`fontWeight-${COMP_CHILD}-level-
|
|
38643
|
-
[`fontWeight-${COMP_CHILD}-level-
|
|
38254
|
+
[`fontWeight-${COMP_CHILD}-level-2`]: "$fontWeight-medium",
|
|
38255
|
+
[`fontWeight-${COMP_CHILD}-level-3`]: "$fontWeight-normal",
|
|
38256
|
+
[`fontWeight-${COMP_CHILD}-level-4`]: "$fontWeight-normal",
|
|
38257
|
+
[`fontWeight-${COMP_CHILD}-level-5`]: "$fontWeight-normal",
|
|
38258
|
+
[`fontWeight-${COMP_CHILD}-level-6`]: "$fontWeight-normal",
|
|
38644
38259
|
[`fontStyle-${COMP_CHILD}-level-6`]: "italic",
|
|
38645
|
-
[`
|
|
38260
|
+
[`textColor-${COMP_CHILD}--active`]: "$color-primary-400",
|
|
38261
|
+
[`fontWeight-${COMP_CHILD}--active`]: "$fontWeight-bold"
|
|
38646
38262
|
}
|
|
38647
38263
|
});
|
|
38648
38264
|
function IndexAwareTableOfContents(props) {
|
|
@@ -43533,7 +43149,8 @@ function BarChart({
|
|
|
43533
43149
|
hide: miniMode || hideX,
|
|
43534
43150
|
height: miniMode || hideX ? 0 : xAxisHeight,
|
|
43535
43151
|
tick: miniMode || hideTickX ? false : { fill: "currentColor", fontSize },
|
|
43536
|
-
tickFormatter: miniMode || hideTickX ? void 0 : tickFormatterX
|
|
43152
|
+
tickFormatter: miniMode || hideTickX ? void 0 : tickFormatterX,
|
|
43153
|
+
domain: [0, (dataMax) => dataMax * 1.05]
|
|
43537
43154
|
} : {
|
|
43538
43155
|
type: "category",
|
|
43539
43156
|
dataKey: nameKey,
|
|
@@ -43562,7 +43179,8 @@ function BarChart({
|
|
|
43562
43179
|
hide: miniMode || hideY,
|
|
43563
43180
|
tickCount: yTickCount,
|
|
43564
43181
|
tickFormatter: miniMode || hideTickY ? void 0 : tickFormatterY,
|
|
43565
|
-
width: miniMode || hideY ? 0 : yAxisWidth
|
|
43182
|
+
width: miniMode || hideY ? 0 : yAxisWidth,
|
|
43183
|
+
domain: [0, (dataMax) => dataMax * 1.1]
|
|
43566
43184
|
};
|
|
43567
43185
|
return /* @__PURE__ */ jsxs(ChartProvider, { value: chartContextValue, children: [
|
|
43568
43186
|
children,
|
|
@@ -44395,7 +44013,8 @@ const LineChart = forwardRef(function LineChart2({
|
|
|
44395
44013
|
hide: miniMode || hideY,
|
|
44396
44014
|
tickLine: false,
|
|
44397
44015
|
tickFormatter: miniMode ? void 0 : tickFormatterY,
|
|
44398
|
-
tick: miniMode ? false : !hideTickY && { fill: "currentColor", fontSize }
|
|
44016
|
+
tick: miniMode ? false : !hideTickY && { fill: "currentColor", fontSize },
|
|
44017
|
+
domain: [(dataMin) => dataMin * 0.95, (dataMax) => dataMax * 1.05]
|
|
44399
44018
|
}
|
|
44400
44019
|
),
|
|
44401
44020
|
!miniMode && !hideTooltip && /* @__PURE__ */ jsx(Tooltip$2, { content: safeTooltipRenderer }),
|
|
@@ -46680,14 +46299,15 @@ function IconProvider({ children }) {
|
|
|
46680
46299
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
46681
46300
|
] });
|
|
46682
46301
|
}
|
|
46683
|
-
const version = "0.
|
|
46302
|
+
const version = "0.11.1";
|
|
46684
46303
|
const miscellaneousUtils = {
|
|
46685
46304
|
capitalize,
|
|
46686
46305
|
pluralize: pluralize$1,
|
|
46687
46306
|
defaultTo,
|
|
46688
46307
|
toHashObject,
|
|
46689
46308
|
findByField,
|
|
46690
|
-
distinct
|
|
46309
|
+
distinct,
|
|
46310
|
+
debounce
|
|
46691
46311
|
};
|
|
46692
46312
|
function isoDateString(date) {
|
|
46693
46313
|
return (!date ? /* @__PURE__ */ new Date() : new Date(date)).toJSON();
|
|
@@ -47279,10 +46899,12 @@ async function evalBinaryAsync(evaluator, thisStack, expr, evalContext, thread)
|
|
|
47279
46899
|
const l = await completeExprValue(expr.left, thread);
|
|
47280
46900
|
if (expr.op === "&&" && !l) {
|
|
47281
46901
|
setExprValue(expr, { value: l }, thread);
|
|
46902
|
+
thisStack.push(l);
|
|
47282
46903
|
return l;
|
|
47283
46904
|
}
|
|
47284
46905
|
if (expr.op === "||" && l) {
|
|
47285
46906
|
setExprValue(expr, { value: l }, thread);
|
|
46907
|
+
thisStack.push(l);
|
|
47286
46908
|
return l;
|
|
47287
46909
|
}
|
|
47288
46910
|
await evaluator(thisStack, expr.right, evalContext, thread);
|
|
@@ -52667,27 +52289,25 @@ export {
|
|
|
52667
52289
|
toCssVar$1 as a7,
|
|
52668
52290
|
useDevTools as a8,
|
|
52669
52291
|
useLogger as a9,
|
|
52670
|
-
|
|
52671
|
-
|
|
52672
|
-
|
|
52673
|
-
|
|
52674
|
-
|
|
52675
|
-
|
|
52676
|
-
|
|
52677
|
-
|
|
52678
|
-
|
|
52679
|
-
|
|
52680
|
-
|
|
52681
|
-
|
|
52682
|
-
|
|
52683
|
-
|
|
52684
|
-
|
|
52685
|
-
|
|
52686
|
-
|
|
52687
|
-
|
|
52688
|
-
|
|
52689
|
-
StandaloneComponent as at,
|
|
52690
|
-
Theme as au,
|
|
52292
|
+
ApiInterceptorProvider as aa,
|
|
52293
|
+
Spinner as ab,
|
|
52294
|
+
useThemes as ac,
|
|
52295
|
+
builtInThemes as ad,
|
|
52296
|
+
Text as ae,
|
|
52297
|
+
TextBox as af,
|
|
52298
|
+
NestedApp as ag,
|
|
52299
|
+
VisuallyHidden as ah,
|
|
52300
|
+
LinkNative as ai,
|
|
52301
|
+
ToneChangerButton as aj,
|
|
52302
|
+
Logo as ak,
|
|
52303
|
+
Breakout as al,
|
|
52304
|
+
useSearchContextContent as am,
|
|
52305
|
+
useAppLayoutContext as an,
|
|
52306
|
+
StyleProvider as ao,
|
|
52307
|
+
StyleRegistry as ap,
|
|
52308
|
+
useEvent as aq,
|
|
52309
|
+
StandaloneComponent as ar,
|
|
52310
|
+
Theme as as,
|
|
52691
52311
|
StandaloneExtensionManager as b,
|
|
52692
52312
|
createComponentRenderer as c,
|
|
52693
52313
|
delay$1 as d,
|