@ostack.tech/ui-kform 1.3.0-beta.2 → 1.3.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/LICENSE +202 -0
- package/README.md +14 -1
- package/dist/ostack-ui-kform.css +6 -3
- package/dist/ostack-ui-kform.js +565 -577
- package/dist/ostack-ui-kform.js.map +1 -1
- package/package.json +6 -11
- package/scss/components/Annexes/_Annexes-variables.scss +3 -0
- package/scss/components/Annexes/_Annexes.scss +4 -0
- package/scss/components/FileControl/_FileControl.scss +1 -1
- package/scss/components/TopBar/_TopBar.scss +1 -1
- package/types/utils/validationIssueKey.d.ts +7 -0
package/dist/ostack-ui-kform.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "react/compiler-runtime";
|
|
2
2
|
import { AtPathError, CurrentPath, FormContext, FormattedValue, InvalidPathError, equals, formatNumericAsString, formatTemporalAsString, toFileList, useController, useControllerState, useCurrentPath, useFileInput, useForm, useFormContext, useFormController, useFormManager, useFormattedValue, useFormatter, useInput, useIssuesTracker, useListableInput, useNumericInput, useResolvedPath, useSubmitting, useTemporalInput } from "@ostack.tech/kform-react";
|
|
3
|
-
import { Action, ActionMenu, ActionMenuRadioGroup, ActionMenuRadioItem, ActionSplit, Actions, ActionsSecondary, Alert, AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, Button, Card, CardBody, CardHeader, CardTitle, Checkbox, CheckboxGroup, CloseButton, Code, Container, ControlAddon, DataTable, DataTableCell, DataTableContent, DataTablePagination, DataTableRow, DataTableRowsPerPage, DateInput, DateRangeInput, DescriptionList, DescriptionListItem, Dialog, DialogBody, DialogContent, DialogHeader, DialogTitle, DialogTrigger, DocumentTitle, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ErrorBoundary, Feedback, FeedbackList, FeedbackPopover, FeedbackProvider, Field, Icon, IconButton, Input, Layer, Link, LocalizationProvider as LocalizationProvider$1, MenuList, MenuListItem, NATIVE_CONTROLS, NumericInput, Option, OptionsGroup, Popover, PopoverContent, PopoverTrigger, PrefixProvider, PrinterTrigger, Radio, RadioGroup, Root, Select, Slot, Spinner, Stack, Step, StepContent, StepList, Stepper, StepperFinishTrigger, StepperNextTrigger, StepperPreviousTrigger, Tab, TabContent, TabList, Tabs, TextArea, Tooltip, VisuallyHidden, boolDataAttr, combineAriaIds, computed, controlStatusToAccent, cx, localeLabel, parseChildren, setBoolDataAttr, useActionsContext, useAlertDialog, useCombinedEventHandler, useCombinedRef, useConstant, useControllableState, useCssVars, useDataTableApiRef, useDataTableColumnLabel, useDateTransformer, useErrorReporter, useIntersectionObserver, useIsInFeedbackProvider, useIsInRoot, useIsInTableCell, useKeyboardShortcut, useLatestRef, useMeasure, useMediaBreakpointUp, useOnLabelChange, usePrefix as usePrefix$1, usePrevious, usePrint, usePrintClassNames, usePrintInProgress, usePrinterDocumentTitle, usePrinting, useResponsiveValue, useScrollPosition, useSpacing,
|
|
3
|
+
import { Action, ActionMenu, ActionMenuRadioGroup, ActionMenuRadioItem, ActionSplit, Actions, ActionsSecondary, Alert, AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, Button, Card, CardBody, CardHeader, CardTitle, Checkbox, CheckboxGroup, CloseButton, Code, Container, ControlAddon, DataTable, DataTableCell, DataTableContent, DataTablePagination, DataTableRow, DataTableRowsPerPage, DateInput, DateRangeInput, DescriptionList, DescriptionListItem, Dialog, DialogBody, DialogContent, DialogHeader, DialogTitle, DialogTrigger, DocumentTitle, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ErrorBoundary, Feedback, FeedbackList, FeedbackPopover, FeedbackProvider, Field, Icon, IconButton, Input, Layer, Link, LocalizationProvider as LocalizationProvider$1, MenuList, MenuListItem, NATIVE_CONTROLS, NumericInput, Option, OptionsGroup, Popover, PopoverContent, PopoverTrigger, PrefixProvider, PrinterTrigger, Radio, RadioGroup, Root, Select, Slot, Spinner, Stack, Step, StepContent, StepList, Stepper, StepperFinishTrigger, StepperNextTrigger, StepperPreviousTrigger, Tab, TabContent, TabList, Tabs, TextArea, Tooltip, VisuallyHidden, boolDataAttr, combineAriaIds, computed, controlStatusToAccent, cx, localeLabel, parseChildren, setBoolDataAttr, useActionsContext, useAlertDialog, useCombinedEventHandler, useCombinedRef, useConstant, useControllableState, useCssVars, useDataTableApiRef, useDataTableColumnLabel, useDateTransformer, useErrorReporter, useIntersectionObserver, useIsInFeedbackProvider, useIsInRoot, useIsInTableCell, useKeyboardShortcut, useLatestRef, useMeasure, useMediaBreakpointUp, useOnLabelChange, usePrefix as usePrefix$1, usePrevious, usePrint, usePrintClassNames, usePrintInProgress, usePrinterDocumentTitle, usePrinting, usePrintingTask, useResponsiveValue, useScrollPosition, useSpacing, useToastManager, warnOnce, withCleanup } from "@ostack.tech/ui";
|
|
4
4
|
import { Children, Fragment, Suspense, createContext, isValidElement, startTransition, useContext, useDeferredValue, useEffect, useEffectEvent, useId, useImperativeHandle, useRef, useState } from "react";
|
|
5
5
|
import { createStore, useStore } from "zustand";
|
|
6
6
|
import { useShallow } from "zustand/react/shallow";
|
|
@@ -10,7 +10,7 @@ import { subscribeWithSelector } from "zustand/middleware";
|
|
|
10
10
|
import { shallow } from "zustand/shallow";
|
|
11
11
|
import { fileOpen, fileSave, supported } from "browser-fs-access";
|
|
12
12
|
import { DEV } from "esm-env";
|
|
13
|
-
import { faAngleLeft, faAngleRight, faAnglesLeft, faAnglesRight, faArrowRight, faArrowsToDot, faBug,
|
|
13
|
+
import { faAngleDown, faAngleLeft, faAngleRight, faAngleUp, faAnglesLeft, faAnglesRight, faArrowRight, faArrowsToDot, faBug, faCircleCheck, faCircleExclamation, faCircleQuestion, faDownload, faFileLines, faFloppyDisk, faFolderOpen, faGlobe, faPlus, faPrint, faTrash, faTriangleExclamation } from "@fortawesome/free-solid-svg-icons";
|
|
14
14
|
import { addDays, format, formatISO, max, min, parseISO } from "date-fns";
|
|
15
15
|
import { faCircleCheck as faCircleCheck$1 } from "@fortawesome/free-regular-svg-icons";
|
|
16
16
|
// src/providers/PrefixSuffixProvider/defaultPrefixSuffix.ts
|
|
@@ -562,7 +562,7 @@ function _temp4$22(state) {
|
|
|
562
562
|
function useRegisterController(controller) {
|
|
563
563
|
const $ = c(6);
|
|
564
564
|
const store = useFormAppContext().store;
|
|
565
|
-
const path_0 = useControllerState(controller, _temp5$
|
|
565
|
+
const path_0 = useControllerState(controller, _temp5$16);
|
|
566
566
|
const printing = usePrinting();
|
|
567
567
|
let t0;
|
|
568
568
|
let t1;
|
|
@@ -588,7 +588,7 @@ function useRegisterController(controller) {
|
|
|
588
588
|
}
|
|
589
589
|
useEffect(t0, t1);
|
|
590
590
|
}
|
|
591
|
-
function _temp5$
|
|
591
|
+
function _temp5$16(t0) {
|
|
592
592
|
const { path } = t0;
|
|
593
593
|
return path;
|
|
594
594
|
}
|
|
@@ -612,9 +612,9 @@ function _temp6$9(state) {
|
|
|
612
612
|
}
|
|
613
613
|
/** Hook exposing a function to set the latest path the user has interacted with. */
|
|
614
614
|
function useSetLatestInteraction() {
|
|
615
|
-
return useStore(useFormAppContext().store, _temp7$
|
|
615
|
+
return useStore(useFormAppContext().store, _temp7$4);
|
|
616
616
|
}
|
|
617
|
-
function _temp7$
|
|
617
|
+
function _temp7$4(state) {
|
|
618
618
|
return state.actions.setLatestInteraction;
|
|
619
619
|
}
|
|
620
620
|
/** Hook used to register issue messages within the form app. */
|
|
@@ -738,7 +738,7 @@ function useOnPathFocus(cb, t0) {
|
|
|
738
738
|
let t5;
|
|
739
739
|
if ($[2] !== cb || $[3] !== enabled || $[4] !== fireImmediately || $[5] !== printing || $[6] !== store) {
|
|
740
740
|
t4 = () => {
|
|
741
|
-
if (enabled && !printing) return store.subscribe(_temp10$
|
|
741
|
+
if (enabled && !printing) return store.subscribe(_temp10$2, (t6) => {
|
|
742
742
|
const { focusedPath: focusedPath_0 } = t6;
|
|
743
743
|
return focusedPath_0 && cb(focusedPath_0);
|
|
744
744
|
}, {
|
|
@@ -766,7 +766,7 @@ function useOnPathFocus(cb, t0) {
|
|
|
766
766
|
}
|
|
767
767
|
useEffect(t4, t5);
|
|
768
768
|
}
|
|
769
|
-
function _temp10$
|
|
769
|
+
function _temp10$2(t0) {
|
|
770
770
|
const { focusedPath, focusCounter } = t0;
|
|
771
771
|
return {
|
|
772
772
|
focusedPath,
|
|
@@ -1603,7 +1603,7 @@ function FormApp(t0) {
|
|
|
1603
1603
|
t12 = $[109];
|
|
1604
1604
|
}
|
|
1605
1605
|
useEffect(t11, t12);
|
|
1606
|
-
const absolutePath = useControllerState(controller, _temp5$
|
|
1606
|
+
const absolutePath = useControllerState(controller, _temp5$15);
|
|
1607
1607
|
let t13;
|
|
1608
1608
|
let t14;
|
|
1609
1609
|
if ($[110] !== absolutePath || $[111] !== issuesPanelLabel || $[112] !== store) {
|
|
@@ -1779,7 +1779,7 @@ function FormApp(t0) {
|
|
|
1779
1779
|
function _temp6$8(state) {
|
|
1780
1780
|
return state.actions;
|
|
1781
1781
|
}
|
|
1782
|
-
function _temp5$
|
|
1782
|
+
function _temp5$15(t0) {
|
|
1783
1783
|
const { path } = t0;
|
|
1784
1784
|
return path;
|
|
1785
1785
|
}
|
|
@@ -2012,7 +2012,7 @@ function useCreateAnnexesContext(t0) {
|
|
|
2012
2012
|
store.getState().actions.setAnnexes(resolvedAnnexes);
|
|
2013
2013
|
if (activeAnnex !== void 0) {
|
|
2014
2014
|
const { activeAnnex: oldActiveAnnex_0, tabStates: tabStates_2, waitingRegistration: waitingRegistration_0 } = store.getState();
|
|
2015
|
-
const newActiveAnnex_0 = mostSpecificPath(activeAnnex === null ? null : basePath.resolve(activeAnnex), [...tabStates_2().map(_temp5$
|
|
2015
|
+
const newActiveAnnex_0 = mostSpecificPath(activeAnnex === null ? null : basePath.resolve(activeAnnex), [...tabStates_2().map(_temp5$14), ...waitingRegistration_0()], oldActiveAnnex_0) ?? null;
|
|
2016
2016
|
store.getState().actions.setActiveAnnex(newActiveAnnex_0);
|
|
2017
2017
|
}
|
|
2018
2018
|
};
|
|
@@ -2048,7 +2048,7 @@ function useCreateAnnexesContext(t0) {
|
|
|
2048
2048
|
function _temp6$7(tab_0) {
|
|
2049
2049
|
return tab_0.path;
|
|
2050
2050
|
}
|
|
2051
|
-
function _temp5$
|
|
2051
|
+
function _temp5$14(tab) {
|
|
2052
2052
|
return tab.path;
|
|
2053
2053
|
}
|
|
2054
2054
|
function _temp4$19(annexes_1, t0, t1) {
|
|
@@ -2505,11 +2505,10 @@ function _temp2$42(state) {
|
|
|
2505
2505
|
// src/components/Annexes/AnnexRegistrar.tsx
|
|
2506
2506
|
/** Component used to register a form annex. */
|
|
2507
2507
|
function AnnexRegistrar(t0) {
|
|
2508
|
-
const $ = c(
|
|
2508
|
+
const $ = c(49);
|
|
2509
2509
|
const { path, title, subtitle, description, issuesPanelLabel, itemTitle, itemIssuesPanelLabel, index, documentTitle } = t0;
|
|
2510
2510
|
const store = useAnnexesContext();
|
|
2511
2511
|
const printing = usePrinting();
|
|
2512
|
-
const finishPrintingTask = useStartPrintingTask();
|
|
2513
2512
|
const observeDescendants = typeof itemTitle === "function" || typeof title === "function" || typeof subtitle === "function" || typeof documentTitle === "function";
|
|
2514
2513
|
let t1;
|
|
2515
2514
|
if ($[0] !== observeDescendants || $[1] !== path) {
|
|
@@ -2520,72 +2519,72 @@ function AnnexRegistrar(t0) {
|
|
|
2520
2519
|
} else t1 = $[2];
|
|
2521
2520
|
const t2 = !useFormIsLoading();
|
|
2522
2521
|
let t3;
|
|
2523
|
-
if ($[3] !==
|
|
2522
|
+
if ($[3] !== t2) {
|
|
2524
2523
|
t3 = {
|
|
2525
2524
|
enabled: t2,
|
|
2526
|
-
onInitialized: finishPrintingTask,
|
|
2527
2525
|
format: _temp$45
|
|
2528
2526
|
};
|
|
2529
|
-
$[3] =
|
|
2530
|
-
$[4] =
|
|
2531
|
-
|
|
2532
|
-
} else t3 = $[5];
|
|
2527
|
+
$[3] = t2;
|
|
2528
|
+
$[4] = t3;
|
|
2529
|
+
} else t3 = $[4];
|
|
2533
2530
|
const [t4, controller] = useFormattedValue(t1, t3);
|
|
2534
2531
|
const isNull = t4 === void 0 ? true : t4;
|
|
2532
|
+
const initialized_0 = useControllerState(controller, _temp2$41);
|
|
2533
|
+
usePrintingTask(!initialized_0);
|
|
2535
2534
|
const isRepetitive = index != null;
|
|
2536
|
-
const absolutePath = useControllerState(controller,
|
|
2537
|
-
const schema_0 = useControllerState(controller,
|
|
2538
|
-
const exists_0 = useControllerState(controller,
|
|
2539
|
-
const dirty_0 = useControllerState(controller,
|
|
2535
|
+
const absolutePath = useControllerState(controller, _temp3$24);
|
|
2536
|
+
const schema_0 = useControllerState(controller, _temp4$18);
|
|
2537
|
+
const exists_0 = useControllerState(controller, _temp5$13);
|
|
2538
|
+
const dirty_0 = useControllerState(controller, _temp6$6);
|
|
2540
2539
|
let t5;
|
|
2541
|
-
if ($[
|
|
2540
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2542
2541
|
t5 = { equalityFn: shallow };
|
|
2543
|
-
$[
|
|
2544
|
-
} else t5 = $[
|
|
2545
|
-
const value_1 = useControllerState(controller,
|
|
2542
|
+
$[5] = t5;
|
|
2543
|
+
} else t5 = $[5];
|
|
2544
|
+
const value_1 = useControllerState(controller, _temp7$3, t5).value;
|
|
2546
2545
|
const deferredValue = useDeferredValue(value_1);
|
|
2547
2546
|
const relevantValue = printing ? value_1 : deferredValue;
|
|
2548
2547
|
let t6;
|
|
2549
|
-
if ($[
|
|
2548
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2550
2549
|
t6 = { equalityFn: shallow };
|
|
2551
|
-
$[
|
|
2552
|
-
} else t6 = $[
|
|
2553
|
-
const deferredIssuesToDisplay = useDeferredValue(useControllerState(controller,
|
|
2554
|
-
const deferredDisplayStatus = useDeferredValue(useControllerState(controller,
|
|
2550
|
+
$[6] = t6;
|
|
2551
|
+
} else t6 = $[6];
|
|
2552
|
+
const deferredIssuesToDisplay = useDeferredValue(useControllerState(controller, _temp8$2, t6));
|
|
2553
|
+
const deferredDisplayStatus = useDeferredValue(useControllerState(controller, _temp9$1));
|
|
2555
2554
|
let t7;
|
|
2556
|
-
if ($[
|
|
2555
|
+
if ($[7] !== index || $[8] !== isRepetitive || $[9] !== itemTitle || $[10] !== relevantValue || $[11] !== title) {
|
|
2557
2556
|
t7 = isRepetitive ? typeof itemTitle === "function" ? relevantValue === void 0 ? null : itemTitle(relevantValue, index) : itemTitle === void 0 ? title : itemTitle : typeof title === "function" ? relevantValue === void 0 ? null : title(relevantValue) : title;
|
|
2558
|
-
$[
|
|
2559
|
-
$[
|
|
2560
|
-
$[
|
|
2561
|
-
$[
|
|
2562
|
-
$[
|
|
2563
|
-
$[
|
|
2564
|
-
} else t7 = $[
|
|
2557
|
+
$[7] = index;
|
|
2558
|
+
$[8] = isRepetitive;
|
|
2559
|
+
$[9] = itemTitle;
|
|
2560
|
+
$[10] = relevantValue;
|
|
2561
|
+
$[11] = title;
|
|
2562
|
+
$[12] = t7;
|
|
2563
|
+
} else t7 = $[12];
|
|
2565
2564
|
const actualTitle = t7;
|
|
2566
2565
|
let t8;
|
|
2567
|
-
if ($[
|
|
2566
|
+
if ($[13] !== index || $[14] !== relevantValue || $[15] !== subtitle) {
|
|
2568
2567
|
t8 = typeof subtitle === "function" ? relevantValue === void 0 ? null : subtitle(relevantValue, index) : subtitle;
|
|
2569
|
-
$[
|
|
2570
|
-
$[
|
|
2571
|
-
$[
|
|
2572
|
-
$[
|
|
2573
|
-
} else t8 = $[
|
|
2568
|
+
$[13] = index;
|
|
2569
|
+
$[14] = relevantValue;
|
|
2570
|
+
$[15] = subtitle;
|
|
2571
|
+
$[16] = t8;
|
|
2572
|
+
} else t8 = $[16];
|
|
2574
2573
|
const actualSubtitle = t8;
|
|
2575
2574
|
let t9;
|
|
2576
|
-
if ($[
|
|
2577
|
-
t9 = typeof documentTitle === "function" ? relevantValue === void 0 ? null : documentTitle(relevantValue, index) : documentTitle === void 0 ? (actualTitle === null || typeof actualTitle === "string") && (actualSubtitle == null || typeof actualSubtitle === "string") ? [actualTitle, actualSubtitle].filter(
|
|
2578
|
-
$[
|
|
2579
|
-
$[
|
|
2580
|
-
$[
|
|
2581
|
-
$[
|
|
2582
|
-
$[
|
|
2583
|
-
$[
|
|
2584
|
-
} else t9 = $[
|
|
2575
|
+
if ($[17] !== actualSubtitle || $[18] !== actualTitle || $[19] !== documentTitle || $[20] !== index || $[21] !== relevantValue) {
|
|
2576
|
+
t9 = typeof documentTitle === "function" ? relevantValue === void 0 ? null : documentTitle(relevantValue, index) : documentTitle === void 0 ? (actualTitle === null || typeof actualTitle === "string") && (actualSubtitle == null || typeof actualSubtitle === "string") ? [actualTitle, actualSubtitle].filter(_temp10$1).join(" — ") : void 0 : documentTitle;
|
|
2577
|
+
$[17] = actualSubtitle;
|
|
2578
|
+
$[18] = actualTitle;
|
|
2579
|
+
$[19] = documentTitle;
|
|
2580
|
+
$[20] = index;
|
|
2581
|
+
$[21] = relevantValue;
|
|
2582
|
+
$[22] = t9;
|
|
2583
|
+
} else t9 = $[22];
|
|
2585
2584
|
const actualDocumentTitle = t9;
|
|
2586
2585
|
let t10;
|
|
2587
2586
|
let t11;
|
|
2588
|
-
if ($[
|
|
2587
|
+
if ($[23] !== absolutePath || $[24] !== actualDocumentTitle || $[25] !== actualSubtitle || $[26] !== actualTitle || $[27] !== deferredDisplayStatus || $[28] !== deferredIssuesToDisplay || $[29] !== description || $[30] !== dirty_0 || $[31] !== exists_0 || $[32] !== isNull || $[33] !== isRepetitive || $[34] !== schema_0 || $[35] !== store) {
|
|
2589
2588
|
t10 = () => {
|
|
2590
2589
|
if (exists_0) {
|
|
2591
2590
|
const { registerAnnexState } = store.getState().actions;
|
|
@@ -2619,93 +2618,97 @@ function AnnexRegistrar(t0) {
|
|
|
2619
2618
|
store,
|
|
2620
2619
|
actualDocumentTitle
|
|
2621
2620
|
];
|
|
2622
|
-
$[
|
|
2623
|
-
$[
|
|
2624
|
-
$[
|
|
2625
|
-
$[
|
|
2626
|
-
$[
|
|
2627
|
-
$[
|
|
2628
|
-
$[
|
|
2629
|
-
$[
|
|
2630
|
-
$[
|
|
2631
|
-
$[
|
|
2632
|
-
$[
|
|
2633
|
-
$[
|
|
2634
|
-
$[
|
|
2635
|
-
$[
|
|
2636
|
-
$[
|
|
2621
|
+
$[23] = absolutePath;
|
|
2622
|
+
$[24] = actualDocumentTitle;
|
|
2623
|
+
$[25] = actualSubtitle;
|
|
2624
|
+
$[26] = actualTitle;
|
|
2625
|
+
$[27] = deferredDisplayStatus;
|
|
2626
|
+
$[28] = deferredIssuesToDisplay;
|
|
2627
|
+
$[29] = description;
|
|
2628
|
+
$[30] = dirty_0;
|
|
2629
|
+
$[31] = exists_0;
|
|
2630
|
+
$[32] = isNull;
|
|
2631
|
+
$[33] = isRepetitive;
|
|
2632
|
+
$[34] = schema_0;
|
|
2633
|
+
$[35] = store;
|
|
2634
|
+
$[36] = t10;
|
|
2635
|
+
$[37] = t11;
|
|
2637
2636
|
} else {
|
|
2638
|
-
t10 = $[
|
|
2639
|
-
t11 = $[
|
|
2637
|
+
t10 = $[36];
|
|
2638
|
+
t11 = $[37];
|
|
2640
2639
|
}
|
|
2641
2640
|
useEffect(t10, t11);
|
|
2642
2641
|
useRegisterController(controller);
|
|
2643
2642
|
let t12;
|
|
2644
|
-
if ($[
|
|
2643
|
+
if ($[38] !== actualSubtitle || $[39] !== actualTitle || $[40] !== deferredValue || $[41] !== index || $[42] !== isRepetitive || $[43] !== issuesPanelLabel || $[44] !== itemIssuesPanelLabel) {
|
|
2645
2644
|
t12 = isRepetitive ? typeof itemIssuesPanelLabel === "function" ? deferredValue === void 0 ? null : itemIssuesPanelLabel(deferredValue, index) : itemIssuesPanelLabel === void 0 ? actualSubtitle ?? index + 1 : itemIssuesPanelLabel : issuesPanelLabel ? typeof issuesPanelLabel === "function" ? deferredValue === void 0 ? null : issuesPanelLabel(deferredValue) : issuesPanelLabel : /* @__PURE__ */ jsxs(Fragment$1, { children: [actualTitle, actualSubtitle && /* @__PURE__ */ jsxs(Fragment$1, { children: [" — ", actualSubtitle] })] });
|
|
2646
|
-
$[
|
|
2647
|
-
$[
|
|
2648
|
-
$[
|
|
2649
|
-
$[
|
|
2650
|
-
$[
|
|
2651
|
-
$[
|
|
2652
|
-
$[
|
|
2653
|
-
$[
|
|
2654
|
-
} else t12 = $[
|
|
2645
|
+
$[38] = actualSubtitle;
|
|
2646
|
+
$[39] = actualTitle;
|
|
2647
|
+
$[40] = deferredValue;
|
|
2648
|
+
$[41] = index;
|
|
2649
|
+
$[42] = isRepetitive;
|
|
2650
|
+
$[43] = issuesPanelLabel;
|
|
2651
|
+
$[44] = itemIssuesPanelLabel;
|
|
2652
|
+
$[45] = t12;
|
|
2653
|
+
} else t12 = $[45];
|
|
2655
2654
|
let t13;
|
|
2656
|
-
if ($[
|
|
2655
|
+
if ($[46] !== absolutePath || $[47] !== t12) {
|
|
2657
2656
|
t13 = /* @__PURE__ */ jsx(CurrentPath, {
|
|
2658
2657
|
path: absolutePath,
|
|
2659
2658
|
children: t12
|
|
2660
2659
|
});
|
|
2661
|
-
$[
|
|
2662
|
-
$[
|
|
2663
|
-
$[
|
|
2664
|
-
} else t13 = $[
|
|
2660
|
+
$[46] = absolutePath;
|
|
2661
|
+
$[47] = t12;
|
|
2662
|
+
$[48] = t13;
|
|
2663
|
+
} else t13 = $[48];
|
|
2665
2664
|
useRegisterLabel(absolutePath, t13);
|
|
2666
2665
|
return null;
|
|
2667
2666
|
}
|
|
2668
|
-
function
|
|
2667
|
+
function _temp10$1(s) {
|
|
2669
2668
|
return s;
|
|
2670
2669
|
}
|
|
2671
|
-
function
|
|
2670
|
+
function _temp9$1(t0) {
|
|
2672
2671
|
const { displayStatus } = t0;
|
|
2673
2672
|
return displayStatus;
|
|
2674
2673
|
}
|
|
2675
|
-
function
|
|
2674
|
+
function _temp8$2(t0) {
|
|
2676
2675
|
const { touched, issues } = t0;
|
|
2677
2676
|
return touched ? issues : [];
|
|
2678
2677
|
}
|
|
2679
|
-
function
|
|
2678
|
+
function _temp7$3(t0) {
|
|
2680
2679
|
const { _valueRev, value: value_0 } = t0;
|
|
2681
2680
|
return {
|
|
2682
2681
|
_valueRev,
|
|
2683
2682
|
value: value_0
|
|
2684
2683
|
};
|
|
2685
2684
|
}
|
|
2686
|
-
function
|
|
2685
|
+
function _temp6$6(t0) {
|
|
2687
2686
|
const { dirty } = t0;
|
|
2688
2687
|
return dirty;
|
|
2689
2688
|
}
|
|
2690
|
-
function
|
|
2691
|
-
const { initialized, exists } = t0;
|
|
2692
|
-
return
|
|
2689
|
+
function _temp5$13(t0) {
|
|
2690
|
+
const { initialized: initialized_1, exists } = t0;
|
|
2691
|
+
return initialized_1 && exists;
|
|
2693
2692
|
}
|
|
2694
|
-
function
|
|
2693
|
+
function _temp4$18(t0) {
|
|
2695
2694
|
const { schema } = t0;
|
|
2696
2695
|
return schema;
|
|
2697
2696
|
}
|
|
2698
|
-
function
|
|
2697
|
+
function _temp3$24(t0) {
|
|
2699
2698
|
const { path: path_0 } = t0;
|
|
2700
2699
|
return path_0;
|
|
2701
2700
|
}
|
|
2701
|
+
function _temp2$41(t0) {
|
|
2702
|
+
const { initialized } = t0;
|
|
2703
|
+
return initialized;
|
|
2704
|
+
}
|
|
2702
2705
|
function _temp$45(value) {
|
|
2703
2706
|
return value === null;
|
|
2704
2707
|
}
|
|
2705
2708
|
// src/components/Annexes/RepetitiveAnnexRegistrar.tsx
|
|
2706
2709
|
/** Component used to register a repetitive form annex. */
|
|
2707
2710
|
function RepetitiveAnnexRegistrar(t0) {
|
|
2708
|
-
const $ = c(
|
|
2711
|
+
const $ = c(24);
|
|
2709
2712
|
let annexProps;
|
|
2710
2713
|
let maxAnnexes;
|
|
2711
2714
|
let path;
|
|
@@ -2721,7 +2724,6 @@ function RepetitiveAnnexRegistrar(t0) {
|
|
|
2721
2724
|
path = $[3];
|
|
2722
2725
|
}
|
|
2723
2726
|
const store = useAnnexesContext();
|
|
2724
|
-
const finishPrintingTask = useStartPrintingTask();
|
|
2725
2727
|
let t1;
|
|
2726
2728
|
if ($[4] !== path) {
|
|
2727
2729
|
t1 = path.parent();
|
|
@@ -2730,29 +2732,29 @@ function RepetitiveAnnexRegistrar(t0) {
|
|
|
2730
2732
|
} else t1 = $[5];
|
|
2731
2733
|
const t2 = !useFormIsLoading();
|
|
2732
2734
|
let t3;
|
|
2733
|
-
if ($[6] !==
|
|
2735
|
+
if ($[6] !== t2) {
|
|
2734
2736
|
t3 = {
|
|
2735
2737
|
enabled: t2,
|
|
2736
|
-
onInitialized: finishPrintingTask,
|
|
2737
2738
|
format: _temp$44
|
|
2738
2739
|
};
|
|
2739
|
-
$[6] =
|
|
2740
|
-
$[7] =
|
|
2741
|
-
|
|
2742
|
-
} else t3 = $[8];
|
|
2740
|
+
$[6] = t2;
|
|
2741
|
+
$[7] = t3;
|
|
2742
|
+
} else t3 = $[7];
|
|
2743
2743
|
const [rowIds, controller] = useFormattedValue(t1, t3);
|
|
2744
|
-
const
|
|
2745
|
-
|
|
2744
|
+
const initialized_0 = useControllerState(controller, _temp2$40);
|
|
2745
|
+
usePrintingTask(!initialized_0);
|
|
2746
|
+
const schema_0 = useControllerState(controller, _temp3$23);
|
|
2747
|
+
const absolutePath = useControllerState(controller, _temp4$17);
|
|
2746
2748
|
let t4;
|
|
2747
|
-
if ($[
|
|
2749
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2748
2750
|
t4 = { equalityFn: shallow };
|
|
2749
|
-
$[
|
|
2750
|
-
} else t4 = $[
|
|
2751
|
-
const deferredIssuesToDisplay = useDeferredValue(useControllerState(controller,
|
|
2751
|
+
$[8] = t4;
|
|
2752
|
+
} else t4 = $[8];
|
|
2753
|
+
const deferredIssuesToDisplay = useDeferredValue(useControllerState(controller, _temp5$12, t4));
|
|
2752
2754
|
if (schema_0.typeInfo.name !== "Table") throw new InvalidPathError(absolutePath, `Unsupported schema: Expected (possibly nullable) table schema, but got schema representing values of type '${schema_0.typeInfo.toString()}'.`);
|
|
2753
2755
|
let t5;
|
|
2754
2756
|
let t6;
|
|
2755
|
-
if ($[
|
|
2757
|
+
if ($[9] !== absolutePath || $[10] !== deferredIssuesToDisplay || $[11] !== maxAnnexes || $[12] !== rowIds || $[13] !== schema_0 || $[14] !== store) {
|
|
2756
2758
|
t5 = () => {
|
|
2757
2759
|
const { registerRepetitiveAnnexState } = store.getState().actions;
|
|
2758
2760
|
registerRepetitiveAnnexState(absolutePath, {
|
|
@@ -2771,59 +2773,63 @@ function RepetitiveAnnexRegistrar(t0) {
|
|
|
2771
2773
|
schema_0,
|
|
2772
2774
|
store
|
|
2773
2775
|
];
|
|
2774
|
-
$[
|
|
2775
|
-
$[
|
|
2776
|
-
$[
|
|
2777
|
-
$[
|
|
2778
|
-
$[
|
|
2779
|
-
$[
|
|
2780
|
-
$[
|
|
2781
|
-
$[
|
|
2776
|
+
$[9] = absolutePath;
|
|
2777
|
+
$[10] = deferredIssuesToDisplay;
|
|
2778
|
+
$[11] = maxAnnexes;
|
|
2779
|
+
$[12] = rowIds;
|
|
2780
|
+
$[13] = schema_0;
|
|
2781
|
+
$[14] = store;
|
|
2782
|
+
$[15] = t5;
|
|
2783
|
+
$[16] = t6;
|
|
2782
2784
|
} else {
|
|
2783
|
-
t5 = $[
|
|
2784
|
-
t6 = $[
|
|
2785
|
+
t5 = $[15];
|
|
2786
|
+
t6 = $[16];
|
|
2785
2787
|
}
|
|
2786
2788
|
useEffect(t5, t6);
|
|
2787
2789
|
if (typeof annexProps.title === "function" || typeof annexProps.issuesPanelLabel === "function") throw new Error("Repetitive annexes must not set `title` or `issuesPanelLabel` as a function. Use `itemTitle` or `itemIssuesPanelLabel` instead.");
|
|
2788
2790
|
const actualIssuesPanelLabel = annexProps.issuesPanelLabel ? annexProps.issuesPanelLabel : annexProps.title;
|
|
2789
2791
|
useRegisterController(controller);
|
|
2790
2792
|
let t7;
|
|
2791
|
-
if ($[
|
|
2793
|
+
if ($[17] !== absolutePath || $[18] !== actualIssuesPanelLabel) {
|
|
2792
2794
|
t7 = /* @__PURE__ */ jsx(CurrentPath, {
|
|
2793
2795
|
path: absolutePath,
|
|
2794
2796
|
children: actualIssuesPanelLabel
|
|
2795
2797
|
});
|
|
2796
|
-
$[
|
|
2797
|
-
$[
|
|
2798
|
-
$[
|
|
2799
|
-
} else t7 = $[
|
|
2798
|
+
$[17] = absolutePath;
|
|
2799
|
+
$[18] = actualIssuesPanelLabel;
|
|
2800
|
+
$[19] = t7;
|
|
2801
|
+
} else t7 = $[19];
|
|
2800
2802
|
useRegisterLabel(absolutePath, t7);
|
|
2801
2803
|
let t8;
|
|
2802
|
-
if ($[
|
|
2804
|
+
if ($[20] !== absolutePath || $[21] !== annexProps || $[22] !== rowIds) {
|
|
2803
2805
|
t8 = rowIds?.map((rowId, i) => /* @__PURE__ */ jsx(AnnexRegistrar, {
|
|
2804
2806
|
path: absolutePath.append(new AbsolutePathFragment.Id(rowId)),
|
|
2805
2807
|
index: i,
|
|
2806
2808
|
...annexProps
|
|
2807
2809
|
}, rowId));
|
|
2808
|
-
$[
|
|
2809
|
-
$[
|
|
2810
|
-
$[
|
|
2811
|
-
$[
|
|
2812
|
-
} else t8 = $[
|
|
2810
|
+
$[20] = absolutePath;
|
|
2811
|
+
$[21] = annexProps;
|
|
2812
|
+
$[22] = rowIds;
|
|
2813
|
+
$[23] = t8;
|
|
2814
|
+
} else t8 = $[23];
|
|
2813
2815
|
return t8;
|
|
2814
2816
|
}
|
|
2815
|
-
function
|
|
2817
|
+
function _temp5$12(t0) {
|
|
2816
2818
|
const { touched, issues } = t0;
|
|
2817
2819
|
return touched ? issues : [];
|
|
2818
2820
|
}
|
|
2819
|
-
function
|
|
2821
|
+
function _temp4$17(t0) {
|
|
2820
2822
|
const { path: path_0 } = t0;
|
|
2821
2823
|
return path_0;
|
|
2822
2824
|
}
|
|
2823
|
-
function
|
|
2825
|
+
function _temp3$23(t0) {
|
|
2824
2826
|
const { schema } = t0;
|
|
2825
2827
|
return schema;
|
|
2826
2828
|
}
|
|
2829
|
+
function _temp2$40(t0) {
|
|
2830
|
+
const { initialized } = t0;
|
|
2831
|
+
return initialized;
|
|
2832
|
+
}
|
|
2827
2833
|
function _temp$44(value) {
|
|
2828
2834
|
return value ? tableIdsToArray(value) : [];
|
|
2829
2835
|
}
|
|
@@ -3055,6 +3061,27 @@ function useReportValidationFailures(info) {
|
|
|
3055
3061
|
}
|
|
3056
3062
|
useEffect(t0, t1);
|
|
3057
3063
|
}
|
|
3064
|
+
// src/utils/validationIssueKey.ts
|
|
3065
|
+
var keyCache = /* @__PURE__ */ new WeakMap();
|
|
3066
|
+
/**
|
|
3067
|
+
* Returns a React key uniquely identifying the provided validation issue, matching `equals`
|
|
3068
|
+
* semantics.
|
|
3069
|
+
*/
|
|
3070
|
+
function validationIssueKey(validationIssue) {
|
|
3071
|
+
let key = keyCache.get(validationIssue);
|
|
3072
|
+
if (key === void 0) {
|
|
3073
|
+
const { code, severity, data } = validationIssue;
|
|
3074
|
+
keyCache.set(validationIssue, key = JSON.stringify([
|
|
3075
|
+
code,
|
|
3076
|
+
severity,
|
|
3077
|
+
Object.entries(data).sort(compareEntriesByKey)
|
|
3078
|
+
]));
|
|
3079
|
+
}
|
|
3080
|
+
return key;
|
|
3081
|
+
}
|
|
3082
|
+
function compareEntriesByKey([k1], [k2]) {
|
|
3083
|
+
return k1 < k2 ? -1 : k1 > k2 ? 1 : 0;
|
|
3084
|
+
}
|
|
3058
3085
|
// src/components/IssueMessages/IssueMessages.tsx
|
|
3059
3086
|
/**
|
|
3060
3087
|
* Component used to display all issues associated with the relevant path.
|
|
@@ -3161,7 +3188,7 @@ function IssueMessages(t0) {
|
|
|
3161
3188
|
if ($[27] !== absolutePath || $[28] !== actualSchema || $[29] !== deferredIssuesToDisplay || $[30] !== displayIssueCodes || $[31] !== messagesDataKey || $[32] !== prefix || $[33] !== unknownErrorMessage || $[34] !== unknownWarningMessage || $[35] !== visuallyHiddenErrorCodePrefix || $[36] !== visuallyHiddenWarningCodePrefix) {
|
|
3162
3189
|
let t8;
|
|
3163
3190
|
if ($[38] !== absolutePath || $[39] !== actualSchema || $[40] !== displayIssueCodes || $[41] !== messagesDataKey || $[42] !== prefix || $[43] !== unknownErrorMessage || $[44] !== unknownWarningMessage || $[45] !== visuallyHiddenErrorCodePrefix || $[46] !== visuallyHiddenWarningCodePrefix) {
|
|
3164
|
-
t8 = (issue
|
|
3191
|
+
t8 = (issue) => /* @__PURE__ */ jsx(Feedback, {
|
|
3165
3192
|
type: issue.severity,
|
|
3166
3193
|
children: /* @__PURE__ */ jsx(IssueMessage, {
|
|
3167
3194
|
path: absolutePath,
|
|
@@ -3175,7 +3202,7 @@ function IssueMessages(t0) {
|
|
|
3175
3202
|
unknownWarningMessage,
|
|
3176
3203
|
issueCodeProps: { className: prefix("issue-messages__issue-code") }
|
|
3177
3204
|
})
|
|
3178
|
-
},
|
|
3205
|
+
}, validationIssueKey(issue));
|
|
3179
3206
|
$[38] = absolutePath;
|
|
3180
3207
|
$[39] = actualSchema;
|
|
3181
3208
|
$[40] = displayIssueCodes;
|
|
@@ -3543,7 +3570,7 @@ function TopBarActionsSecondary(props) {
|
|
|
3543
3570
|
// src/components/Annexes/AnnexesMenu.tsx
|
|
3544
3571
|
/** Component that allows to navigate between, add, and remove annexes. */
|
|
3545
3572
|
function AnnexesMenu(t0) {
|
|
3546
|
-
const $ = c(
|
|
3573
|
+
const $ = c(84);
|
|
3547
3574
|
let addAnnexText;
|
|
3548
3575
|
let controlledOpen;
|
|
3549
3576
|
let menuButtonLabel;
|
|
@@ -3668,85 +3695,73 @@ function AnnexesMenu(t0) {
|
|
|
3668
3695
|
$[30] = prefix;
|
|
3669
3696
|
$[31] = t8;
|
|
3670
3697
|
} else t8 = $[31];
|
|
3671
|
-
const t9 = open ?
|
|
3672
|
-
const t10 = menuTriggerProps?.
|
|
3698
|
+
const t9 = open ? faAngleUp : faAngleDown;
|
|
3699
|
+
const t10 = menuTriggerProps?.ref;
|
|
3673
3700
|
let t11;
|
|
3674
3701
|
if ($[32] !== t10) {
|
|
3675
|
-
t11 =
|
|
3676
|
-
size: "2xs",
|
|
3677
|
-
...t10
|
|
3678
|
-
};
|
|
3702
|
+
t11 = [menuTriggerRef, t10];
|
|
3679
3703
|
$[32] = t10;
|
|
3680
3704
|
$[33] = t11;
|
|
3681
3705
|
} else t11 = $[33];
|
|
3682
|
-
const t12 =
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
$[35] = t13;
|
|
3688
|
-
} else t13 = $[35];
|
|
3689
|
-
const t14 = useCombinedRef(t13);
|
|
3690
|
-
const t15 = menuTriggerProps?.children ?? menuButtonText;
|
|
3691
|
-
let t16;
|
|
3692
|
-
if ($[36] !== menuButtonLabel || $[37] !== menuTriggerProps || $[38] !== t11 || $[39] !== t14 || $[40] !== t15 || $[41] !== t8 || $[42] !== t9) {
|
|
3693
|
-
t16 = /* @__PURE__ */ jsx(DropdownMenuTrigger, { children: /* @__PURE__ */ jsx(Button, {
|
|
3706
|
+
const t12 = useCombinedRef(t11);
|
|
3707
|
+
const t13 = menuTriggerProps?.children ?? menuButtonText;
|
|
3708
|
+
let t14;
|
|
3709
|
+
if ($[34] !== menuButtonLabel || $[35] !== menuTriggerProps || $[36] !== t12 || $[37] !== t13 || $[38] !== t8 || $[39] !== t9) {
|
|
3710
|
+
t14 = /* @__PURE__ */ jsx(DropdownMenuTrigger, { children: /* @__PURE__ */ jsx(Button, {
|
|
3694
3711
|
variant: "ghost",
|
|
3695
3712
|
iconPlacement: "end",
|
|
3696
3713
|
"aria-label": menuButtonLabel,
|
|
3697
3714
|
...menuTriggerProps,
|
|
3698
3715
|
className: t8,
|
|
3699
3716
|
icon: t9,
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
children: t15
|
|
3717
|
+
ref: t12,
|
|
3718
|
+
children: t13
|
|
3703
3719
|
}) });
|
|
3704
|
-
$[
|
|
3705
|
-
$[
|
|
3706
|
-
$[
|
|
3707
|
-
$[
|
|
3708
|
-
$[
|
|
3709
|
-
$[
|
|
3710
|
-
$[
|
|
3711
|
-
|
|
3712
|
-
|
|
3720
|
+
$[34] = menuButtonLabel;
|
|
3721
|
+
$[35] = menuTriggerProps;
|
|
3722
|
+
$[36] = t12;
|
|
3723
|
+
$[37] = t13;
|
|
3724
|
+
$[38] = t8;
|
|
3725
|
+
$[39] = t9;
|
|
3726
|
+
$[40] = t14;
|
|
3727
|
+
} else t14 = $[40];
|
|
3728
|
+
let t15;
|
|
3729
|
+
if ($[41] !== menuContentProps?.className || $[42] !== prefix) {
|
|
3730
|
+
t15 = cx(prefix("annexes__menu"), menuContentProps?.className);
|
|
3731
|
+
$[41] = menuContentProps?.className;
|
|
3732
|
+
$[42] = prefix;
|
|
3733
|
+
$[43] = t15;
|
|
3734
|
+
} else t15 = $[43];
|
|
3735
|
+
const t16 = menuContentProps?.onCloseAutoFocus;
|
|
3713
3736
|
let t17;
|
|
3714
|
-
if ($[44] !==
|
|
3715
|
-
t17 =
|
|
3716
|
-
$[44] =
|
|
3717
|
-
$[45] =
|
|
3737
|
+
if ($[44] !== handleCloseAutoFocus || $[45] !== t16) {
|
|
3738
|
+
t17 = [t16, handleCloseAutoFocus];
|
|
3739
|
+
$[44] = handleCloseAutoFocus;
|
|
3740
|
+
$[45] = t16;
|
|
3718
3741
|
$[46] = t17;
|
|
3719
3742
|
} else t17 = $[46];
|
|
3720
|
-
const t18 =
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
const t20 = useCombinedEventHandler(t19);
|
|
3729
|
-
const t21 = topBarEl ?? void 0;
|
|
3730
|
-
const t22 = menuContentProps?.portalProps;
|
|
3731
|
-
let t23;
|
|
3732
|
-
if ($[50] !== t21 || $[51] !== t22) {
|
|
3733
|
-
t23 = {
|
|
3734
|
-
container: t21,
|
|
3735
|
-
...t22
|
|
3743
|
+
const t18 = useCombinedEventHandler(t17);
|
|
3744
|
+
const t19 = topBarEl ?? void 0;
|
|
3745
|
+
const t20 = menuContentProps?.portalProps;
|
|
3746
|
+
let t21;
|
|
3747
|
+
if ($[47] !== t19 || $[48] !== t20) {
|
|
3748
|
+
t21 = {
|
|
3749
|
+
container: t19,
|
|
3750
|
+
...t20
|
|
3736
3751
|
};
|
|
3737
|
-
$[
|
|
3752
|
+
$[47] = t19;
|
|
3753
|
+
$[48] = t20;
|
|
3754
|
+
$[49] = t21;
|
|
3755
|
+
} else t21 = $[49];
|
|
3756
|
+
let t22;
|
|
3757
|
+
if ($[50] !== activeAnnex) {
|
|
3758
|
+
t22 = activeAnnex?.toString();
|
|
3759
|
+
$[50] = activeAnnex;
|
|
3738
3760
|
$[51] = t22;
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
t24 = activeAnnex?.toString();
|
|
3744
|
-
$[53] = activeAnnex;
|
|
3745
|
-
$[54] = t24;
|
|
3746
|
-
} else t24 = $[54];
|
|
3747
|
-
let t25;
|
|
3748
|
-
if ($[55] !== removeAnnexButtonLabel || $[56] !== removeAnnexConfirmDialogCancelText || $[57] !== removeAnnexConfirmDialogMessage || $[58] !== removeAnnexConfirmDialogOkText || $[59] !== removeAnnexConfirmDialogTitle || $[60] !== removeAnnexKeyboardHint || $[61] !== setOpen || $[62] !== tabStates) {
|
|
3749
|
-
t25 = tabStates.map((state_3) => /* @__PURE__ */ jsx(AnnexesMenuItem, {
|
|
3761
|
+
} else t22 = $[51];
|
|
3762
|
+
let t23;
|
|
3763
|
+
if ($[52] !== removeAnnexButtonLabel || $[53] !== removeAnnexConfirmDialogCancelText || $[54] !== removeAnnexConfirmDialogMessage || $[55] !== removeAnnexConfirmDialogOkText || $[56] !== removeAnnexConfirmDialogTitle || $[57] !== removeAnnexKeyboardHint || $[58] !== setOpen || $[59] !== tabStates) {
|
|
3764
|
+
t23 = tabStates.map((state_3) => /* @__PURE__ */ jsx(AnnexesMenuItem, {
|
|
3750
3765
|
removeAnnexButtonLabel,
|
|
3751
3766
|
removeAnnexKeyboardHint,
|
|
3752
3767
|
removeAnnexConfirmDialogTitle,
|
|
@@ -3757,31 +3772,31 @@ function AnnexesMenu(t0) {
|
|
|
3757
3772
|
setOpen,
|
|
3758
3773
|
menuRef: menuTriggerRef
|
|
3759
3774
|
}, state_3.path.toString()));
|
|
3760
|
-
$[
|
|
3761
|
-
$[
|
|
3762
|
-
$[
|
|
3763
|
-
$[
|
|
3764
|
-
$[
|
|
3765
|
-
$[
|
|
3766
|
-
$[
|
|
3767
|
-
$[
|
|
3768
|
-
$[
|
|
3769
|
-
} else
|
|
3770
|
-
let
|
|
3771
|
-
if ($[
|
|
3772
|
-
|
|
3773
|
-
value:
|
|
3775
|
+
$[52] = removeAnnexButtonLabel;
|
|
3776
|
+
$[53] = removeAnnexConfirmDialogCancelText;
|
|
3777
|
+
$[54] = removeAnnexConfirmDialogMessage;
|
|
3778
|
+
$[55] = removeAnnexConfirmDialogOkText;
|
|
3779
|
+
$[56] = removeAnnexConfirmDialogTitle;
|
|
3780
|
+
$[57] = removeAnnexKeyboardHint;
|
|
3781
|
+
$[58] = setOpen;
|
|
3782
|
+
$[59] = tabStates;
|
|
3783
|
+
$[60] = t23;
|
|
3784
|
+
} else t23 = $[60];
|
|
3785
|
+
let t24;
|
|
3786
|
+
if ($[61] !== handleRadioGroupValueChange || $[62] !== t22 || $[63] !== t23) {
|
|
3787
|
+
t24 = /* @__PURE__ */ jsx(DropdownMenuRadioGroup, {
|
|
3788
|
+
value: t22,
|
|
3774
3789
|
onValueChange: handleRadioGroupValueChange,
|
|
3775
|
-
children:
|
|
3790
|
+
children: t23
|
|
3776
3791
|
});
|
|
3777
|
-
$[
|
|
3778
|
-
$[
|
|
3779
|
-
$[
|
|
3780
|
-
$[
|
|
3781
|
-
} else
|
|
3782
|
-
let
|
|
3783
|
-
if ($[
|
|
3784
|
-
|
|
3792
|
+
$[61] = handleRadioGroupValueChange;
|
|
3793
|
+
$[62] = t22;
|
|
3794
|
+
$[63] = t23;
|
|
3795
|
+
$[64] = t24;
|
|
3796
|
+
} else t24 = $[64];
|
|
3797
|
+
let t25;
|
|
3798
|
+
if ($[65] !== addAnnexText || $[66] !== formIsReadOnly || $[67] !== isLargeScreen || $[68] !== newItems || $[69] !== prefix) {
|
|
3799
|
+
t25 = !formIsReadOnly && /* @__PURE__ */ jsx(DropdownMenuGroup, {
|
|
3785
3800
|
label: isLargeScreen ? void 0 : addAnnexText,
|
|
3786
3801
|
children: isLargeScreen ? /* @__PURE__ */ jsxs(DropdownMenuSub, { children: [/* @__PURE__ */ jsx(DropdownMenuSubTrigger, {
|
|
3787
3802
|
className: prefix("annexes__menu-add-annex"),
|
|
@@ -3791,52 +3806,52 @@ function AnnexesMenu(t0) {
|
|
|
3791
3806
|
children: newItems
|
|
3792
3807
|
})] }) : newItems
|
|
3793
3808
|
});
|
|
3794
|
-
$[
|
|
3795
|
-
$[
|
|
3796
|
-
$[
|
|
3797
|
-
$[
|
|
3798
|
-
$[
|
|
3799
|
-
$[
|
|
3800
|
-
} else
|
|
3801
|
-
let
|
|
3802
|
-
if ($[
|
|
3803
|
-
|
|
3809
|
+
$[65] = addAnnexText;
|
|
3810
|
+
$[66] = formIsReadOnly;
|
|
3811
|
+
$[67] = isLargeScreen;
|
|
3812
|
+
$[68] = newItems;
|
|
3813
|
+
$[69] = prefix;
|
|
3814
|
+
$[70] = t25;
|
|
3815
|
+
} else t25 = $[70];
|
|
3816
|
+
let t26;
|
|
3817
|
+
if ($[71] !== menuContentProps || $[72] !== t15 || $[73] !== t18 || $[74] !== t21 || $[75] !== t24 || $[76] !== t25) {
|
|
3818
|
+
t26 = /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
3804
3819
|
variant: "subtle",
|
|
3805
3820
|
showArrow: false,
|
|
3806
3821
|
sideOffset: -1,
|
|
3807
3822
|
avoidCollisions: false,
|
|
3808
3823
|
align: "start",
|
|
3809
3824
|
...menuContentProps,
|
|
3810
|
-
className:
|
|
3811
|
-
onCloseAutoFocus:
|
|
3812
|
-
portalProps:
|
|
3813
|
-
children: [
|
|
3825
|
+
className: t15,
|
|
3826
|
+
onCloseAutoFocus: t18,
|
|
3827
|
+
portalProps: t21,
|
|
3828
|
+
children: [t24, t25]
|
|
3814
3829
|
});
|
|
3815
|
-
$[
|
|
3816
|
-
$[
|
|
3817
|
-
$[
|
|
3818
|
-
$[
|
|
3819
|
-
$[
|
|
3820
|
-
$[
|
|
3821
|
-
$[
|
|
3822
|
-
} else
|
|
3823
|
-
let
|
|
3824
|
-
if ($[
|
|
3825
|
-
|
|
3830
|
+
$[71] = menuContentProps;
|
|
3831
|
+
$[72] = t15;
|
|
3832
|
+
$[73] = t18;
|
|
3833
|
+
$[74] = t21;
|
|
3834
|
+
$[75] = t24;
|
|
3835
|
+
$[76] = t25;
|
|
3836
|
+
$[77] = t26;
|
|
3837
|
+
} else t26 = $[77];
|
|
3838
|
+
let t27;
|
|
3839
|
+
if ($[78] !== open || $[79] !== otherProps || $[80] !== t14 || $[81] !== t26 || $[82] !== t7) {
|
|
3840
|
+
t27 = /* @__PURE__ */ jsxs(DropdownMenu, {
|
|
3826
3841
|
open,
|
|
3827
3842
|
onOpenChange: t7,
|
|
3828
3843
|
modal: false,
|
|
3829
3844
|
...otherProps,
|
|
3830
|
-
children: [
|
|
3845
|
+
children: [t14, t26]
|
|
3831
3846
|
});
|
|
3832
|
-
$[
|
|
3833
|
-
$[
|
|
3834
|
-
$[
|
|
3835
|
-
$[
|
|
3836
|
-
$[
|
|
3837
|
-
$[
|
|
3838
|
-
} else
|
|
3839
|
-
return
|
|
3847
|
+
$[78] = open;
|
|
3848
|
+
$[79] = otherProps;
|
|
3849
|
+
$[80] = t14;
|
|
3850
|
+
$[81] = t26;
|
|
3851
|
+
$[82] = t7;
|
|
3852
|
+
$[83] = t27;
|
|
3853
|
+
} else t27 = $[83];
|
|
3854
|
+
return t27;
|
|
3840
3855
|
}
|
|
3841
3856
|
function _temp3$21(state_1) {
|
|
3842
3857
|
return state_1.tabStates();
|
|
@@ -3858,9 +3873,9 @@ function AnnexesMenuItem(t0) {
|
|
|
3858
3873
|
const formIsReadOnly = useFormIsReadOnly();
|
|
3859
3874
|
const { confirm } = useAlertDialog();
|
|
3860
3875
|
const deferredDisplayStatus = useAnnexState(path, _temp4$15);
|
|
3861
|
-
const isRemovable = useAnnexState(path, _temp5$
|
|
3876
|
+
const isRemovable = useAnnexState(path, _temp5$11);
|
|
3862
3877
|
const title = useAnnexState(path, _temp6$5);
|
|
3863
|
-
const subtitle = useAnnexState(path, _temp7$
|
|
3878
|
+
const subtitle = useAnnexState(path, _temp7$2);
|
|
3864
3879
|
const nonRepetitiveDescription = useAnnexState(path, _temp8$1);
|
|
3865
3880
|
let t1;
|
|
3866
3881
|
if ($[0] !== confirm || $[1] !== formContext || $[2] !== menuRef || $[3] !== path || $[4] !== removeAnnexConfirmDialogCancelText || $[5] !== removeAnnexConfirmDialogMessage || $[6] !== removeAnnexConfirmDialogOkText || $[7] !== removeAnnexConfirmDialogTitle || $[8] !== setOpen || $[9] !== store) {
|
|
@@ -4083,13 +4098,13 @@ function AnnexesMenuItem(t0) {
|
|
|
4083
4098
|
function _temp8$1(state_3) {
|
|
4084
4099
|
return state_3 && !state_3.isRepetitive && state_3.description;
|
|
4085
4100
|
}
|
|
4086
|
-
function _temp7$
|
|
4101
|
+
function _temp7$2(state_2) {
|
|
4087
4102
|
return state_2?.subtitle;
|
|
4088
4103
|
}
|
|
4089
4104
|
function _temp6$5(state_1) {
|
|
4090
4105
|
return state_1?.title;
|
|
4091
4106
|
}
|
|
4092
|
-
function _temp5$
|
|
4107
|
+
function _temp5$11(state_0) {
|
|
4093
4108
|
return state_0 != null && (state_0.schema.typeInfo.nullable || state_0.isRepetitive);
|
|
4094
4109
|
}
|
|
4095
4110
|
function _temp4$15(state) {
|
|
@@ -4249,7 +4264,7 @@ function AnnexTab(t0) {
|
|
|
4249
4264
|
const schema = useAnnexState(path, _temp2$37);
|
|
4250
4265
|
const deferredDisplayStatus = useAnnexState(path, _temp3$20);
|
|
4251
4266
|
const title = useAnnexState(path, _temp4$14);
|
|
4252
|
-
const subtitle = useAnnexState(path, _temp5$
|
|
4267
|
+
const subtitle = useAnnexState(path, _temp5$10);
|
|
4253
4268
|
const tabRef = useRef(null);
|
|
4254
4269
|
const resetFocus = useResetFocus();
|
|
4255
4270
|
let t1;
|
|
@@ -4468,7 +4483,7 @@ function AnnexTab(t0) {
|
|
|
4468
4483
|
} else t24 = $[67];
|
|
4469
4484
|
return t24;
|
|
4470
4485
|
}
|
|
4471
|
-
function _temp5$
|
|
4486
|
+
function _temp5$10(state_3) {
|
|
4472
4487
|
return state_3?.subtitle;
|
|
4473
4488
|
}
|
|
4474
4489
|
function _temp4$14(state_2) {
|
|
@@ -4958,9 +4973,9 @@ function AnnexesManager(t0) {
|
|
|
4958
4973
|
return t29;
|
|
4959
4974
|
}
|
|
4960
4975
|
function _temp6$4(issues_0) {
|
|
4961
|
-
return issues_0.some(_temp5$
|
|
4976
|
+
return issues_0.some(_temp5$9);
|
|
4962
4977
|
}
|
|
4963
|
-
function _temp5$
|
|
4978
|
+
function _temp5$9(issue) {
|
|
4964
4979
|
return issue.severity === "error";
|
|
4965
4980
|
}
|
|
4966
4981
|
function _temp4$13(issues) {
|
|
@@ -5145,7 +5160,7 @@ function useControlIssues(t0) {
|
|
|
5145
5160
|
t3 = displayIssues && /* @__PURE__ */ jsx(FeedbackList, {
|
|
5146
5161
|
...feedbackListProps,
|
|
5147
5162
|
hidden: issuesDisplayMode === "panel",
|
|
5148
|
-
children: Object.entries(issuesToDisplay).map((t4
|
|
5163
|
+
children: Object.entries(issuesToDisplay).map((t4) => {
|
|
5149
5164
|
const [path, issues] = t4;
|
|
5150
5165
|
return /* @__PURE__ */ jsx(IssueMessages, {
|
|
5151
5166
|
path,
|
|
@@ -5156,7 +5171,7 @@ function useControlIssues(t0) {
|
|
|
5156
5171
|
unknownErrorMessage,
|
|
5157
5172
|
unknownWarningMessage,
|
|
5158
5173
|
unwrapped: true
|
|
5159
|
-
},
|
|
5174
|
+
}, path);
|
|
5160
5175
|
})
|
|
5161
5176
|
});
|
|
5162
5177
|
$[7] = displayIssueCodes;
|
|
@@ -5206,7 +5221,7 @@ function useControlIssues(t0) {
|
|
|
5206
5221
|
// src/utils/useRegisterControl.tsx
|
|
5207
5222
|
/** Hook used to register a control within the form app. */
|
|
5208
5223
|
function useRegisterControl(t0) {
|
|
5209
|
-
const $ = c(
|
|
5224
|
+
const $ = c(20);
|
|
5210
5225
|
const { controller, issuesPanelLabel, ariaLabel, issuesPanelLabelSuffix, preventAutoFocus, apiRef } = t0;
|
|
5211
5226
|
const printing = usePrinting();
|
|
5212
5227
|
const path_0 = useControllerState(controller, _temp$37);
|
|
@@ -5220,91 +5235,75 @@ function useRegisterControl(t0) {
|
|
|
5220
5235
|
t1 = { equalityFn: shallow };
|
|
5221
5236
|
$[0] = t1;
|
|
5222
5237
|
} else t1 = $[0];
|
|
5223
|
-
const issuesToDisplay = useDeferredValue(useControllerState(controller, _temp5$
|
|
5224
|
-
|
|
5225
|
-
let t2;
|
|
5226
|
-
let t3;
|
|
5227
|
-
if ($[1] !== finishPrintingTask || $[2] !== initialized_0) {
|
|
5228
|
-
t2 = () => {
|
|
5229
|
-
if (initialized_0) finishPrintingTask();
|
|
5230
|
-
};
|
|
5231
|
-
t3 = [finishPrintingTask, initialized_0];
|
|
5232
|
-
$[1] = finishPrintingTask;
|
|
5233
|
-
$[2] = initialized_0;
|
|
5234
|
-
$[3] = t2;
|
|
5235
|
-
$[4] = t3;
|
|
5236
|
-
} else {
|
|
5237
|
-
t2 = $[3];
|
|
5238
|
-
t3 = $[4];
|
|
5239
|
-
}
|
|
5240
|
-
useEffect(t2, t3);
|
|
5238
|
+
const issuesToDisplay = useDeferredValue(useControllerState(controller, _temp5$8, t1));
|
|
5239
|
+
usePrintingTask(!initialized_0);
|
|
5241
5240
|
const columnLabel = useDataTableColumnLabel();
|
|
5242
5241
|
useRegisterLabel(path_0, issuesPanelLabel || columnLabel || ariaLabel, issuesPanelLabel ? 1 : -1);
|
|
5243
5242
|
useRegisterFieldLabel(path_0, issuesPanelLabelSuffix);
|
|
5244
5243
|
useRegisterController(controller);
|
|
5245
|
-
let
|
|
5246
|
-
let
|
|
5247
|
-
if ($[
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
$[
|
|
5251
|
-
$[
|
|
5252
|
-
$[
|
|
5244
|
+
let t2;
|
|
5245
|
+
let t3;
|
|
5246
|
+
if ($[1] !== controller) {
|
|
5247
|
+
t2 = () => controller;
|
|
5248
|
+
t3 = [controller];
|
|
5249
|
+
$[1] = controller;
|
|
5250
|
+
$[2] = t2;
|
|
5251
|
+
$[3] = t3;
|
|
5253
5252
|
} else {
|
|
5254
|
-
|
|
5255
|
-
|
|
5253
|
+
t2 = $[2];
|
|
5254
|
+
t3 = $[3];
|
|
5256
5255
|
}
|
|
5257
|
-
useImperativeHandle(apiRef,
|
|
5256
|
+
useImperativeHandle(apiRef, t2, t3);
|
|
5258
5257
|
const autofocusRef = useControlAutofocus(controller, !preventAutoFocus && !printing);
|
|
5259
5258
|
const setLatestInteraction = useSetLatestInteraction();
|
|
5260
|
-
let
|
|
5261
|
-
if ($[
|
|
5262
|
-
|
|
5259
|
+
let t4;
|
|
5260
|
+
if ($[4] !== controller || $[5] !== printing || $[6] !== setLatestInteraction) {
|
|
5261
|
+
t4 = (event) => {
|
|
5263
5262
|
if (!printing && event.target === event.currentTarget && !event.defaultPrevented) setLatestInteraction(controller.getState().path);
|
|
5264
5263
|
};
|
|
5265
|
-
$[
|
|
5264
|
+
$[4] = controller;
|
|
5265
|
+
$[5] = printing;
|
|
5266
|
+
$[6] = setLatestInteraction;
|
|
5267
|
+
$[7] = t4;
|
|
5268
|
+
} else t4 = $[7];
|
|
5269
|
+
const handleFocus = t4;
|
|
5270
|
+
const t5 = printing ? false : !initialized_0;
|
|
5271
|
+
const t6 = printing ? false : formIsDisabled;
|
|
5272
|
+
const t7 = printing ? false : displayReadOnly;
|
|
5273
|
+
const t8 = printing ? void 0 : displayStatusToDisplay;
|
|
5274
|
+
const t9 = printing ? false : displayValidating;
|
|
5275
|
+
let t10;
|
|
5276
|
+
if ($[8] !== issuesToDisplay || $[9] !== printing) {
|
|
5277
|
+
t10 = printing ? [] : issuesToDisplay;
|
|
5278
|
+
$[8] = issuesToDisplay;
|
|
5266
5279
|
$[9] = printing;
|
|
5267
|
-
$[10] =
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
t12 = printing ? [] : issuesToDisplay;
|
|
5279
|
-
$[12] = issuesToDisplay;
|
|
5280
|
-
$[13] = printing;
|
|
5281
|
-
$[14] = t12;
|
|
5282
|
-
} else t12 = $[14];
|
|
5283
|
-
let t13;
|
|
5284
|
-
if ($[15] !== autofocusRef || $[16] !== handleFocus || $[17] !== t10 || $[18] !== t11 || $[19] !== t12 || $[20] !== t7 || $[21] !== t8 || $[22] !== t9) {
|
|
5285
|
-
t13 = {
|
|
5286
|
-
displayLoading: t7,
|
|
5287
|
-
displayDisabled: t8,
|
|
5288
|
-
displayReadOnly: t9,
|
|
5289
|
-
displayStatusToDisplay: t10,
|
|
5290
|
-
displayValidating: t11,
|
|
5291
|
-
issuesToDisplay: t12,
|
|
5280
|
+
$[10] = t10;
|
|
5281
|
+
} else t10 = $[10];
|
|
5282
|
+
let t11;
|
|
5283
|
+
if ($[11] !== autofocusRef || $[12] !== handleFocus || $[13] !== t10 || $[14] !== t5 || $[15] !== t6 || $[16] !== t7 || $[17] !== t8 || $[18] !== t9) {
|
|
5284
|
+
t11 = {
|
|
5285
|
+
displayLoading: t5,
|
|
5286
|
+
displayDisabled: t6,
|
|
5287
|
+
displayReadOnly: t7,
|
|
5288
|
+
displayStatusToDisplay: t8,
|
|
5289
|
+
displayValidating: t9,
|
|
5290
|
+
issuesToDisplay: t10,
|
|
5292
5291
|
autofocusRef,
|
|
5293
5292
|
handleFocus
|
|
5294
5293
|
};
|
|
5295
|
-
$[
|
|
5296
|
-
$[
|
|
5297
|
-
$[
|
|
5298
|
-
$[
|
|
5299
|
-
$[
|
|
5300
|
-
$[
|
|
5301
|
-
$[
|
|
5302
|
-
$[
|
|
5303
|
-
$[
|
|
5304
|
-
} else
|
|
5305
|
-
return
|
|
5294
|
+
$[11] = autofocusRef;
|
|
5295
|
+
$[12] = handleFocus;
|
|
5296
|
+
$[13] = t10;
|
|
5297
|
+
$[14] = t5;
|
|
5298
|
+
$[15] = t6;
|
|
5299
|
+
$[16] = t7;
|
|
5300
|
+
$[17] = t8;
|
|
5301
|
+
$[18] = t9;
|
|
5302
|
+
$[19] = t11;
|
|
5303
|
+
} else t11 = $[19];
|
|
5304
|
+
return t11;
|
|
5306
5305
|
}
|
|
5307
|
-
function _temp5$
|
|
5306
|
+
function _temp5$8(t0) {
|
|
5308
5307
|
const { touched, issues } = t0;
|
|
5309
5308
|
return touched ? issues : [];
|
|
5310
5309
|
}
|
|
@@ -5519,7 +5518,7 @@ function _temp2$33(issue, i_0) {
|
|
|
5519
5518
|
return /* @__PURE__ */ jsxs(Fragment, { children: [i_0 !== 0 && ", ", /* @__PURE__ */ jsx(Code, {
|
|
5520
5519
|
color: issue.severity === "error" ? "danger" : "warning",
|
|
5521
5520
|
children: issue.code
|
|
5522
|
-
})] },
|
|
5521
|
+
})] }, validationIssueKey(issue));
|
|
5523
5522
|
}
|
|
5524
5523
|
function _temp$36(validation, i) {
|
|
5525
5524
|
return /* @__PURE__ */ jsxs(Fragment, { children: [i !== 0 && ", ", /* @__PURE__ */ jsx(Code, { children: validation.toString() })] }, i);
|
|
@@ -6507,7 +6506,7 @@ function CheckboxGroupControl(t0) {
|
|
|
6507
6506
|
const controller = useListableInput(path, t6);
|
|
6508
6507
|
const { inputProps } = controller;
|
|
6509
6508
|
const schema_0 = useControllerState(controller, _temp4$11);
|
|
6510
|
-
const absolutePath = useControllerState(controller, _temp5$
|
|
6509
|
+
const absolutePath = useControllerState(controller, _temp5$7);
|
|
6511
6510
|
const { restrictions } = schema_0.typeInfo;
|
|
6512
6511
|
const showDebugInfo = useFormInDebugMode() || debug;
|
|
6513
6512
|
const t7 = otherProps["aria-label"];
|
|
@@ -6648,7 +6647,7 @@ function CheckboxGroupControl(t0) {
|
|
|
6648
6647
|
value: v,
|
|
6649
6648
|
label: unknownValueLabel
|
|
6650
6649
|
})
|
|
6651
|
-
}, i);
|
|
6650
|
+
}, -i - 1);
|
|
6652
6651
|
$[88] = unknownValueLabel;
|
|
6653
6652
|
$[89] = t30;
|
|
6654
6653
|
} else t30 = $[89];
|
|
@@ -6719,7 +6718,7 @@ function _temp6$3(t0, i_0) {
|
|
|
6719
6718
|
children: text ?? value?.toString() ?? ""
|
|
6720
6719
|
}, key ?? i_0);
|
|
6721
6720
|
}
|
|
6722
|
-
function _temp5$
|
|
6721
|
+
function _temp5$7(t0) {
|
|
6723
6722
|
const { path: path_0 } = t0;
|
|
6724
6723
|
return path_0;
|
|
6725
6724
|
}
|
|
@@ -9404,11 +9403,10 @@ function _temp$28(state) {
|
|
|
9404
9403
|
// src/components/FormPages/FormPageRegistrar.tsx
|
|
9405
9404
|
/** Component used to register a form page. */
|
|
9406
9405
|
function FormPageRegistrar(t0) {
|
|
9407
|
-
const $ = c(
|
|
9406
|
+
const $ = c(32);
|
|
9408
9407
|
const { path, title, documentTitle, code, issuesPanelLabel } = t0;
|
|
9409
9408
|
const store = useFormPagesContext();
|
|
9410
9409
|
const printing = usePrinting();
|
|
9411
|
-
const finishPrintingTask = useStartPrintingTask();
|
|
9412
9410
|
const observeDescendants = typeof title === "function" || typeof documentTitle === "function";
|
|
9413
9411
|
let t1;
|
|
9414
9412
|
if ($[0] !== observeDescendants || $[1] !== path) {
|
|
@@ -9419,54 +9417,52 @@ function FormPageRegistrar(t0) {
|
|
|
9419
9417
|
} else t1 = $[2];
|
|
9420
9418
|
const t2 = !useFormIsLoading();
|
|
9421
9419
|
let t3;
|
|
9422
|
-
if ($[3] !==
|
|
9423
|
-
t3 = {
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
$[3] = finishPrintingTask;
|
|
9428
|
-
$[4] = t2;
|
|
9429
|
-
$[5] = t3;
|
|
9430
|
-
} else t3 = $[5];
|
|
9420
|
+
if ($[3] !== t2) {
|
|
9421
|
+
t3 = { enabled: t2 };
|
|
9422
|
+
$[3] = t2;
|
|
9423
|
+
$[4] = t3;
|
|
9424
|
+
} else t3 = $[4];
|
|
9431
9425
|
const controller = useController(t1, t3);
|
|
9432
|
-
const
|
|
9433
|
-
|
|
9434
|
-
const
|
|
9426
|
+
const initialized_0 = useControllerState(controller, _temp$27);
|
|
9427
|
+
usePrintingTask(!initialized_0);
|
|
9428
|
+
const absolutePath = useControllerState(controller, _temp2$24);
|
|
9429
|
+
const schema_0 = useControllerState(controller, _temp3$13);
|
|
9430
|
+
const exists_0 = useControllerState(controller, _temp4$9);
|
|
9435
9431
|
let t4;
|
|
9436
|
-
if ($[
|
|
9432
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9437
9433
|
t4 = { equalityFn: shallow };
|
|
9438
|
-
$[
|
|
9439
|
-
} else t4 = $[
|
|
9440
|
-
const value_0 = useControllerState(controller,
|
|
9434
|
+
$[5] = t4;
|
|
9435
|
+
} else t4 = $[5];
|
|
9436
|
+
const value_0 = useControllerState(controller, _temp5$6, t4).value;
|
|
9441
9437
|
const deferredValue = useDeferredValue(value_0);
|
|
9442
9438
|
const relevantValue = printing ? value_0 : deferredValue;
|
|
9443
9439
|
let t5;
|
|
9444
|
-
if ($[
|
|
9440
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9445
9441
|
t5 = { equalityFn: shallow };
|
|
9446
|
-
$[
|
|
9447
|
-
} else t5 = $[
|
|
9448
|
-
const deferredIssuesToDisplay = useDeferredValue(useControllerState(controller,
|
|
9449
|
-
const deferredDisplayStatus = useDeferredValue(useControllerState(controller,
|
|
9442
|
+
$[6] = t5;
|
|
9443
|
+
} else t5 = $[6];
|
|
9444
|
+
const deferredIssuesToDisplay = useDeferredValue(useControllerState(controller, _temp6$2, t5));
|
|
9445
|
+
const deferredDisplayStatus = useDeferredValue(useControllerState(controller, _temp7$1));
|
|
9450
9446
|
let t6;
|
|
9451
|
-
if ($[
|
|
9447
|
+
if ($[7] !== relevantValue || $[8] !== title) {
|
|
9452
9448
|
t6 = typeof title === "function" ? relevantValue === void 0 ? null : title(relevantValue) : title;
|
|
9453
|
-
$[
|
|
9454
|
-
$[
|
|
9455
|
-
$[
|
|
9456
|
-
} else t6 = $[
|
|
9449
|
+
$[7] = relevantValue;
|
|
9450
|
+
$[8] = title;
|
|
9451
|
+
$[9] = t6;
|
|
9452
|
+
} else t6 = $[9];
|
|
9457
9453
|
const actualTitle = t6;
|
|
9458
9454
|
let t7;
|
|
9459
|
-
if ($[
|
|
9455
|
+
if ($[10] !== actualTitle || $[11] !== documentTitle || $[12] !== relevantValue) {
|
|
9460
9456
|
t7 = typeof documentTitle === "function" ? relevantValue === void 0 ? null : documentTitle(relevantValue) : documentTitle === void 0 ? actualTitle === null || typeof actualTitle === "string" ? actualTitle : void 0 : documentTitle;
|
|
9461
|
-
$[
|
|
9462
|
-
$[
|
|
9463
|
-
$[
|
|
9464
|
-
$[
|
|
9465
|
-
} else t7 = $[
|
|
9457
|
+
$[10] = actualTitle;
|
|
9458
|
+
$[11] = documentTitle;
|
|
9459
|
+
$[12] = relevantValue;
|
|
9460
|
+
$[13] = t7;
|
|
9461
|
+
} else t7 = $[13];
|
|
9466
9462
|
const actualDocumentTitle = t7;
|
|
9467
9463
|
let t8;
|
|
9468
9464
|
let t9;
|
|
9469
|
-
if ($[
|
|
9465
|
+
if ($[14] !== absolutePath || $[15] !== actualDocumentTitle || $[16] !== actualTitle || $[17] !== code || $[18] !== deferredDisplayStatus || $[19] !== deferredIssuesToDisplay || $[20] !== exists_0 || $[21] !== schema_0 || $[22] !== store) {
|
|
9470
9466
|
t8 = () => {
|
|
9471
9467
|
const { registerPageState } = store.getState().actions;
|
|
9472
9468
|
registerPageState(absolutePath, {
|
|
@@ -9491,71 +9487,75 @@ function FormPageRegistrar(t0) {
|
|
|
9491
9487
|
schema_0,
|
|
9492
9488
|
store
|
|
9493
9489
|
];
|
|
9494
|
-
$[
|
|
9495
|
-
$[
|
|
9496
|
-
$[
|
|
9497
|
-
$[
|
|
9498
|
-
$[
|
|
9499
|
-
$[
|
|
9500
|
-
$[
|
|
9501
|
-
$[
|
|
9502
|
-
$[
|
|
9503
|
-
$[
|
|
9504
|
-
$[
|
|
9490
|
+
$[14] = absolutePath;
|
|
9491
|
+
$[15] = actualDocumentTitle;
|
|
9492
|
+
$[16] = actualTitle;
|
|
9493
|
+
$[17] = code;
|
|
9494
|
+
$[18] = deferredDisplayStatus;
|
|
9495
|
+
$[19] = deferredIssuesToDisplay;
|
|
9496
|
+
$[20] = exists_0;
|
|
9497
|
+
$[21] = schema_0;
|
|
9498
|
+
$[22] = store;
|
|
9499
|
+
$[23] = t8;
|
|
9500
|
+
$[24] = t9;
|
|
9505
9501
|
} else {
|
|
9506
|
-
t8 = $[
|
|
9507
|
-
t9 = $[
|
|
9502
|
+
t8 = $[23];
|
|
9503
|
+
t9 = $[24];
|
|
9508
9504
|
}
|
|
9509
9505
|
useEffect(t8, t9);
|
|
9510
9506
|
useRegisterController(controller);
|
|
9511
9507
|
let t10;
|
|
9512
|
-
if ($[
|
|
9508
|
+
if ($[25] !== actualTitle || $[26] !== deferredValue || $[27] !== issuesPanelLabel) {
|
|
9513
9509
|
t10 = typeof issuesPanelLabel === "function" ? deferredValue === void 0 ? null : issuesPanelLabel(deferredValue) : issuesPanelLabel || actualTitle;
|
|
9514
|
-
$[
|
|
9515
|
-
$[
|
|
9516
|
-
$[
|
|
9517
|
-
$[
|
|
9518
|
-
} else t10 = $[
|
|
9510
|
+
$[25] = actualTitle;
|
|
9511
|
+
$[26] = deferredValue;
|
|
9512
|
+
$[27] = issuesPanelLabel;
|
|
9513
|
+
$[28] = t10;
|
|
9514
|
+
} else t10 = $[28];
|
|
9519
9515
|
let t11;
|
|
9520
|
-
if ($[
|
|
9516
|
+
if ($[29] !== absolutePath || $[30] !== t10) {
|
|
9521
9517
|
t11 = /* @__PURE__ */ jsx(CurrentPath, {
|
|
9522
9518
|
path: absolutePath,
|
|
9523
9519
|
children: t10
|
|
9524
9520
|
});
|
|
9525
|
-
$[
|
|
9526
|
-
$[
|
|
9527
|
-
$[
|
|
9528
|
-
} else t11 = $[
|
|
9521
|
+
$[29] = absolutePath;
|
|
9522
|
+
$[30] = t10;
|
|
9523
|
+
$[31] = t11;
|
|
9524
|
+
} else t11 = $[31];
|
|
9529
9525
|
useRegisterLabel(absolutePath, t11);
|
|
9530
9526
|
return null;
|
|
9531
9527
|
}
|
|
9532
|
-
function
|
|
9528
|
+
function _temp7$1(t0) {
|
|
9533
9529
|
const { displayStatus } = t0;
|
|
9534
9530
|
return displayStatus;
|
|
9535
9531
|
}
|
|
9536
|
-
function
|
|
9532
|
+
function _temp6$2(t0) {
|
|
9537
9533
|
const { touched, issues } = t0;
|
|
9538
9534
|
return touched ? issues : [];
|
|
9539
9535
|
}
|
|
9540
|
-
function
|
|
9536
|
+
function _temp5$6(t0) {
|
|
9541
9537
|
const { _valueRev, value } = t0;
|
|
9542
9538
|
return {
|
|
9543
9539
|
_valueRev,
|
|
9544
9540
|
value
|
|
9545
9541
|
};
|
|
9546
9542
|
}
|
|
9547
|
-
function
|
|
9548
|
-
const { initialized, exists } = t0;
|
|
9549
|
-
return
|
|
9543
|
+
function _temp4$9(t0) {
|
|
9544
|
+
const { initialized: initialized_1, exists } = t0;
|
|
9545
|
+
return initialized_1 && exists;
|
|
9550
9546
|
}
|
|
9551
|
-
function
|
|
9547
|
+
function _temp3$13(t0) {
|
|
9552
9548
|
const { schema } = t0;
|
|
9553
9549
|
return schema;
|
|
9554
9550
|
}
|
|
9555
|
-
function
|
|
9551
|
+
function _temp2$24(t0) {
|
|
9556
9552
|
const { path: path_0 } = t0;
|
|
9557
9553
|
return path_0;
|
|
9558
9554
|
}
|
|
9555
|
+
function _temp$27(t0) {
|
|
9556
|
+
const { initialized } = t0;
|
|
9557
|
+
return initialized;
|
|
9558
|
+
}
|
|
9559
9559
|
// src/components/FormPages/FormPages.tsx
|
|
9560
9560
|
/**
|
|
9561
9561
|
* The form pages component can be used to split parts of a form into separate pages, while
|
|
@@ -9694,7 +9694,7 @@ function FormPages(t0) {
|
|
|
9694
9694
|
useEffect(t6, t7);
|
|
9695
9695
|
const T0 = CurrentPath;
|
|
9696
9696
|
const T1 = FormPagesContext;
|
|
9697
|
-
const t8 = resolvedPages.map(_temp5$
|
|
9697
|
+
const t8 = resolvedPages.map(_temp5$5);
|
|
9698
9698
|
let t9;
|
|
9699
9699
|
if ($[25] !== className || $[26] !== prefix) {
|
|
9700
9700
|
t9 = cx(prefix("form-pages"), className);
|
|
@@ -9751,7 +9751,7 @@ function FormPages(t0) {
|
|
|
9751
9751
|
} else t15 = $[44];
|
|
9752
9752
|
return t15;
|
|
9753
9753
|
}
|
|
9754
|
-
function _temp5$
|
|
9754
|
+
function _temp5$5(page_1) {
|
|
9755
9755
|
return /* @__PURE__ */ jsx(FormPageRegistrar, { ...page_1 }, page_1.path.toString());
|
|
9756
9756
|
}
|
|
9757
9757
|
function _temp4$8(t0) {
|
|
@@ -10126,7 +10126,7 @@ function FormPageSidebarItem(t0) {
|
|
|
10126
10126
|
const disabled = useFormPageState(path, _temp2$20);
|
|
10127
10127
|
const deferredDisplayStatus = useFormPageState(path, _temp3$9);
|
|
10128
10128
|
const code = useFormPageState(path, _temp4$6);
|
|
10129
|
-
const title = useFormPageState(path, _temp5$
|
|
10129
|
+
const title = useFormPageState(path, _temp5$4);
|
|
10130
10130
|
let t2;
|
|
10131
10131
|
if ($[3] !== locale) {
|
|
10132
10132
|
t2 = (state_4) => state_4?.visuallyHiddenCodePrefix ?? locale.FormPage.visuallyHiddenCodePrefix;
|
|
@@ -10314,7 +10314,7 @@ function FormPageSidebarItem(t0) {
|
|
|
10314
10314
|
} else t19 = $[65];
|
|
10315
10315
|
return t19;
|
|
10316
10316
|
}
|
|
10317
|
-
function _temp5$
|
|
10317
|
+
function _temp5$4(state_3) {
|
|
10318
10318
|
return state_3?.title;
|
|
10319
10319
|
}
|
|
10320
10320
|
function _temp4$6(state_2) {
|
|
@@ -10905,11 +10905,10 @@ function _temp$18(state) {
|
|
|
10905
10905
|
// src/components/FormStepper/FormStepRegistrar.tsx
|
|
10906
10906
|
/** Component used to register a form step. */
|
|
10907
10907
|
function FormStepRegistrar(t0) {
|
|
10908
|
-
const $ = c(
|
|
10908
|
+
const $ = c(29);
|
|
10909
10909
|
const { index, path, title, documentTitle, issuesPanelLabel } = t0;
|
|
10910
10910
|
const store = useFormStepperContext();
|
|
10911
10911
|
const printing = usePrinting();
|
|
10912
|
-
const finishPrintingTask = useStartPrintingTask();
|
|
10913
10912
|
const observeDescendants = typeof title === "function" || typeof documentTitle === "function";
|
|
10914
10913
|
let t1;
|
|
10915
10914
|
if ($[0] !== observeDescendants || $[1] !== path) {
|
|
@@ -10920,47 +10919,45 @@ function FormStepRegistrar(t0) {
|
|
|
10920
10919
|
} else t1 = $[2];
|
|
10921
10920
|
const t2 = !useFormIsLoading();
|
|
10922
10921
|
let t3;
|
|
10923
|
-
if ($[3] !==
|
|
10924
|
-
t3 = {
|
|
10925
|
-
|
|
10926
|
-
|
|
10927
|
-
|
|
10928
|
-
$[3] = finishPrintingTask;
|
|
10929
|
-
$[4] = t2;
|
|
10930
|
-
$[5] = t3;
|
|
10931
|
-
} else t3 = $[5];
|
|
10922
|
+
if ($[3] !== t2) {
|
|
10923
|
+
t3 = { enabled: t2 };
|
|
10924
|
+
$[3] = t2;
|
|
10925
|
+
$[4] = t3;
|
|
10926
|
+
} else t3 = $[4];
|
|
10932
10927
|
const controller = useController(t1, t3);
|
|
10933
|
-
const
|
|
10934
|
-
|
|
10928
|
+
const initialized_0 = useControllerState(controller, _temp$17);
|
|
10929
|
+
usePrintingTask(!initialized_0);
|
|
10930
|
+
const absolutePath = useControllerState(controller, _temp2$14);
|
|
10931
|
+
const exists_0 = useControllerState(controller, _temp3$5);
|
|
10935
10932
|
let t4;
|
|
10936
|
-
if ($[
|
|
10933
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10937
10934
|
t4 = { equalityFn: shallow };
|
|
10938
|
-
$[
|
|
10939
|
-
} else t4 = $[
|
|
10940
|
-
const value_0 = useControllerState(controller,
|
|
10935
|
+
$[5] = t4;
|
|
10936
|
+
} else t4 = $[5];
|
|
10937
|
+
const value_0 = useControllerState(controller, _temp4$5, t4).value;
|
|
10941
10938
|
const deferredValue = useDeferredValue(value_0);
|
|
10942
10939
|
const relevantValue = printing ? value_0 : deferredValue;
|
|
10943
|
-
const deferredDisplayStatus = useDeferredValue(useControllerState(controller,
|
|
10940
|
+
const deferredDisplayStatus = useDeferredValue(useControllerState(controller, _temp5$3));
|
|
10944
10941
|
let t5;
|
|
10945
|
-
if ($[
|
|
10942
|
+
if ($[6] !== relevantValue || $[7] !== title) {
|
|
10946
10943
|
t5 = typeof title === "function" ? relevantValue === void 0 ? null : title(relevantValue) : title;
|
|
10947
|
-
$[
|
|
10948
|
-
$[
|
|
10949
|
-
$[
|
|
10950
|
-
} else t5 = $[
|
|
10944
|
+
$[6] = relevantValue;
|
|
10945
|
+
$[7] = title;
|
|
10946
|
+
$[8] = t5;
|
|
10947
|
+
} else t5 = $[8];
|
|
10951
10948
|
const actualTitle = t5;
|
|
10952
10949
|
let t6;
|
|
10953
|
-
if ($[
|
|
10950
|
+
if ($[9] !== actualTitle || $[10] !== documentTitle || $[11] !== relevantValue) {
|
|
10954
10951
|
t6 = typeof documentTitle === "function" ? relevantValue === void 0 ? null : documentTitle(relevantValue) : documentTitle === void 0 ? actualTitle === null || typeof actualTitle === "string" ? actualTitle : void 0 : documentTitle;
|
|
10955
|
-
$[
|
|
10956
|
-
$[
|
|
10957
|
-
$[
|
|
10958
|
-
$[
|
|
10959
|
-
} else t6 = $[
|
|
10952
|
+
$[9] = actualTitle;
|
|
10953
|
+
$[10] = documentTitle;
|
|
10954
|
+
$[11] = relevantValue;
|
|
10955
|
+
$[12] = t6;
|
|
10956
|
+
} else t6 = $[12];
|
|
10960
10957
|
const actualDocumentTitle = t6;
|
|
10961
10958
|
let t7;
|
|
10962
10959
|
let t8;
|
|
10963
|
-
if ($[
|
|
10960
|
+
if ($[13] !== absolutePath || $[14] !== actualDocumentTitle || $[15] !== actualTitle || $[16] !== deferredDisplayStatus || $[17] !== exists_0 || $[18] !== index || $[19] !== store) {
|
|
10964
10961
|
t7 = () => {
|
|
10965
10962
|
const { registerStepState } = store.getState().actions;
|
|
10966
10963
|
registerStepState(absolutePath, {
|
|
@@ -10981,61 +10978,65 @@ function FormStepRegistrar(t0) {
|
|
|
10981
10978
|
index,
|
|
10982
10979
|
store
|
|
10983
10980
|
];
|
|
10984
|
-
$[
|
|
10985
|
-
$[
|
|
10986
|
-
$[
|
|
10987
|
-
$[
|
|
10988
|
-
$[
|
|
10989
|
-
$[
|
|
10990
|
-
$[
|
|
10991
|
-
$[
|
|
10992
|
-
$[
|
|
10981
|
+
$[13] = absolutePath;
|
|
10982
|
+
$[14] = actualDocumentTitle;
|
|
10983
|
+
$[15] = actualTitle;
|
|
10984
|
+
$[16] = deferredDisplayStatus;
|
|
10985
|
+
$[17] = exists_0;
|
|
10986
|
+
$[18] = index;
|
|
10987
|
+
$[19] = store;
|
|
10988
|
+
$[20] = t7;
|
|
10989
|
+
$[21] = t8;
|
|
10993
10990
|
} else {
|
|
10994
|
-
t7 = $[
|
|
10995
|
-
t8 = $[
|
|
10991
|
+
t7 = $[20];
|
|
10992
|
+
t8 = $[21];
|
|
10996
10993
|
}
|
|
10997
10994
|
useEffect(t7, t8);
|
|
10998
10995
|
useRegisterController(controller);
|
|
10999
10996
|
let t9;
|
|
11000
|
-
if ($[
|
|
10997
|
+
if ($[22] !== actualTitle || $[23] !== deferredValue || $[24] !== issuesPanelLabel) {
|
|
11001
10998
|
t9 = typeof issuesPanelLabel === "function" ? deferredValue === void 0 ? null : issuesPanelLabel(deferredValue) : issuesPanelLabel || actualTitle;
|
|
11002
|
-
$[
|
|
11003
|
-
$[
|
|
11004
|
-
$[
|
|
11005
|
-
$[
|
|
11006
|
-
} else t9 = $[
|
|
10999
|
+
$[22] = actualTitle;
|
|
11000
|
+
$[23] = deferredValue;
|
|
11001
|
+
$[24] = issuesPanelLabel;
|
|
11002
|
+
$[25] = t9;
|
|
11003
|
+
} else t9 = $[25];
|
|
11007
11004
|
let t10;
|
|
11008
|
-
if ($[
|
|
11005
|
+
if ($[26] !== absolutePath || $[27] !== t9) {
|
|
11009
11006
|
t10 = /* @__PURE__ */ jsx(CurrentPath, {
|
|
11010
11007
|
path: absolutePath,
|
|
11011
11008
|
children: t9
|
|
11012
11009
|
});
|
|
11013
|
-
$[
|
|
11014
|
-
$[
|
|
11015
|
-
$[
|
|
11016
|
-
} else t10 = $[
|
|
11010
|
+
$[26] = absolutePath;
|
|
11011
|
+
$[27] = t9;
|
|
11012
|
+
$[28] = t10;
|
|
11013
|
+
} else t10 = $[28];
|
|
11017
11014
|
useRegisterLabel(absolutePath, t10);
|
|
11018
11015
|
return null;
|
|
11019
11016
|
}
|
|
11020
|
-
function
|
|
11017
|
+
function _temp5$3(t0) {
|
|
11021
11018
|
const { displayStatus } = t0;
|
|
11022
11019
|
return displayStatus;
|
|
11023
11020
|
}
|
|
11024
|
-
function
|
|
11021
|
+
function _temp4$5(t0) {
|
|
11025
11022
|
const { _valueRev, value } = t0;
|
|
11026
11023
|
return {
|
|
11027
11024
|
_valueRev,
|
|
11028
11025
|
value
|
|
11029
11026
|
};
|
|
11030
11027
|
}
|
|
11031
|
-
function
|
|
11032
|
-
const { initialized, exists } = t0;
|
|
11033
|
-
return
|
|
11028
|
+
function _temp3$5(t0) {
|
|
11029
|
+
const { initialized: initialized_1, exists } = t0;
|
|
11030
|
+
return initialized_1 && exists;
|
|
11034
11031
|
}
|
|
11035
|
-
function
|
|
11032
|
+
function _temp2$14(t0) {
|
|
11036
11033
|
const { path: path_0 } = t0;
|
|
11037
11034
|
return path_0;
|
|
11038
11035
|
}
|
|
11036
|
+
function _temp$17(t0) {
|
|
11037
|
+
const { initialized } = t0;
|
|
11038
|
+
return initialized;
|
|
11039
|
+
}
|
|
11039
11040
|
// src/components/FormStepper/FormStepper.tsx
|
|
11040
11041
|
/**
|
|
11041
11042
|
* The form stepper component can be used to split parts of a form into separate steps. It is built
|
|
@@ -11378,7 +11379,7 @@ function IssuesAlert(t0) {
|
|
|
11378
11379
|
if ($[29] !== absolutePath || $[30] !== deferredIssuesToDisplay || $[31] !== displayIssueCodes || $[32] !== messagesDataKey || $[33] !== prefix || $[34] !== schema || $[35] !== unknownErrorMessage || $[36] !== unknownWarningMessage || $[37] !== visuallyHiddenErrorCodePrefix || $[38] !== visuallyHiddenWarningCodePrefix) {
|
|
11379
11380
|
let t12;
|
|
11380
11381
|
if ($[40] !== absolutePath || $[41] !== displayIssueCodes || $[42] !== messagesDataKey || $[43] !== prefix || $[44] !== schema || $[45] !== unknownErrorMessage || $[46] !== unknownWarningMessage || $[47] !== visuallyHiddenErrorCodePrefix || $[48] !== visuallyHiddenWarningCodePrefix) {
|
|
11381
|
-
t12 = (issue_0
|
|
11382
|
+
t12 = (issue_0) => /* @__PURE__ */ jsx(Feedback, {
|
|
11382
11383
|
type: issue_0.severity,
|
|
11383
11384
|
children: /* @__PURE__ */ jsx(IssueMessage, {
|
|
11384
11385
|
path: absolutePath,
|
|
@@ -11392,7 +11393,7 @@ function IssuesAlert(t0) {
|
|
|
11392
11393
|
unknownWarningMessage,
|
|
11393
11394
|
issueCodeProps: { className: prefix("issue-messages__issue-code") }
|
|
11394
11395
|
})
|
|
11395
|
-
},
|
|
11396
|
+
}, validationIssueKey(issue_0));
|
|
11396
11397
|
$[40] = absolutePath;
|
|
11397
11398
|
$[41] = displayIssueCodes;
|
|
11398
11399
|
$[42] = messagesDataKey;
|
|
@@ -11959,7 +11960,7 @@ function IssuesPanelMessagesCard(t0) {
|
|
|
11959
11960
|
children: severity === "error" ? errorsLabel?.() : warningsLabel?.()
|
|
11960
11961
|
}), /* @__PURE__ */ jsx("ul", {
|
|
11961
11962
|
className: prefix("issues-panel__issues-list"),
|
|
11962
|
-
children: currentInfo.issues.filter((issue_0) => issue_0.severity === severity).map((issue_1
|
|
11963
|
+
children: currentInfo.issues.filter((issue_0) => issue_0.severity === severity).map((issue_1) => /* @__PURE__ */ jsx("li", {
|
|
11963
11964
|
className: prefix("issues-panel__issue"),
|
|
11964
11965
|
"data-severity": issue_1.severity,
|
|
11965
11966
|
children: /* @__PURE__ */ jsx(IssueMessage, {
|
|
@@ -11971,7 +11972,7 @@ function IssuesPanelMessagesCard(t0) {
|
|
|
11971
11972
|
unknownWarningMessage,
|
|
11972
11973
|
issueCodeProps: { className: prefix("issues-panel__issue-code") }
|
|
11973
11974
|
})
|
|
11974
|
-
},
|
|
11975
|
+
}, validationIssueKey(issue_1)))
|
|
11975
11976
|
})] });
|
|
11976
11977
|
const T0 = Card;
|
|
11977
11978
|
const t4 = "subtle";
|
|
@@ -12336,7 +12337,7 @@ var DEFAULT_FIRST_ISSUE_KEYBINDS = "Alt+Shift+Home";
|
|
|
12336
12337
|
var DEFAULT_LAST_ISSUE_KEYBINDS = "Alt+Shift+End";
|
|
12337
12338
|
/** Component used to navigate through the issues of the form. */
|
|
12338
12339
|
function IssuesPanel(t0) {
|
|
12339
|
-
const $ = c(
|
|
12340
|
+
const $ = c(170);
|
|
12340
12341
|
let bodyProps;
|
|
12341
12342
|
let closeButtonProps;
|
|
12342
12343
|
let containerProps;
|
|
@@ -12459,6 +12460,7 @@ function IssuesPanel(t0) {
|
|
|
12459
12460
|
const defaultOpen = t1 === void 0 ? false : t1;
|
|
12460
12461
|
const prefix = usePrefix();
|
|
12461
12462
|
const printing = usePrinting();
|
|
12463
|
+
const { printHidden } = usePrintClassNames();
|
|
12462
12464
|
const [locale] = useLocale();
|
|
12463
12465
|
const errorsLabel = errorsLabelProp ?? locale.IssuesPanel.errorsLabel;
|
|
12464
12466
|
const warningsLabel = warningsLabelProp ?? locale.IssuesPanel.warningsLabel;
|
|
@@ -12724,7 +12726,10 @@ function IssuesPanel(t0) {
|
|
|
12724
12726
|
const formAppEl = useFormAppElement();
|
|
12725
12727
|
let t27;
|
|
12726
12728
|
if ($[107] !== containerEl) {
|
|
12727
|
-
t27 = (
|
|
12729
|
+
t27 = (t28) => {
|
|
12730
|
+
const [e] = t28;
|
|
12731
|
+
return setBoolDataAttr(containerEl, "stuck", e.intersectionRatio === 1);
|
|
12732
|
+
};
|
|
12728
12733
|
$[107] = containerEl;
|
|
12729
12734
|
$[108] = t27;
|
|
12730
12735
|
} else t27 = $[108];
|
|
@@ -12818,12 +12823,12 @@ function IssuesPanel(t0) {
|
|
|
12818
12823
|
} else t32 = $[142];
|
|
12819
12824
|
const combinedContainerRef = useCombinedRef(t32);
|
|
12820
12825
|
let t33;
|
|
12821
|
-
if ($[143] !== bodyProps || $[144] !== combinedContainerRef || $[145] !== containerProps || $[146] !== currentPageController || $[147] !== currentPageIndex || $[148] !== currentPagePath || $[149] !== deferredIssuesTrackerResult || $[150] !== displayIssueCodes || $[151] !== displayMode || $[152] !== errorsLabel || $[153] !== headerProps || $[154] !== iconProps || $[155] !== loadingSpinnerProps || $[156] !== noIssuesMessage || $[157] !== open || $[158] !== otherProps || $[159] !== prefix || $[160] !==
|
|
12826
|
+
if ($[143] !== bodyProps || $[144] !== combinedContainerRef || $[145] !== containerProps || $[146] !== currentPageController || $[147] !== currentPageIndex || $[148] !== currentPagePath || $[149] !== deferredIssuesTrackerResult || $[150] !== displayIssueCodes || $[151] !== displayMode || $[152] !== errorsLabel || $[153] !== headerProps || $[154] !== iconProps || $[155] !== loadingSpinnerProps || $[156] !== noIssuesMessage || $[157] !== open || $[158] !== otherProps || $[159] !== prefix || $[160] !== printHidden || $[161] !== printing || $[162] !== renderControls || $[163] !== resolvedMessage || $[164] !== resolvedTitle || $[165] !== titleProps || $[166] !== unknownErrorMessage || $[167] !== unknownWarningMessage || $[168] !== warningsLabel) {
|
|
12822
12827
|
t33 = open && !printing && /* @__PURE__ */ jsx(Layer, {
|
|
12823
12828
|
zIndex: ["docked", 1],
|
|
12824
12829
|
children: /* @__PURE__ */ jsx("div", {
|
|
12825
12830
|
...containerProps,
|
|
12826
|
-
className: cx(prefix("issues-panel__container"), containerProps?.className),
|
|
12831
|
+
className: cx(prefix("issues-panel__container"), printHidden, containerProps?.className),
|
|
12827
12832
|
ref: combinedContainerRef,
|
|
12828
12833
|
children: /* @__PURE__ */ jsx(Container, {
|
|
12829
12834
|
asChild: true,
|
|
@@ -12880,16 +12885,17 @@ function IssuesPanel(t0) {
|
|
|
12880
12885
|
$[157] = open;
|
|
12881
12886
|
$[158] = otherProps;
|
|
12882
12887
|
$[159] = prefix;
|
|
12883
|
-
$[160] =
|
|
12884
|
-
$[161] =
|
|
12885
|
-
$[162] =
|
|
12886
|
-
$[163] =
|
|
12887
|
-
$[164] =
|
|
12888
|
-
$[165] =
|
|
12889
|
-
$[166] =
|
|
12890
|
-
$[167] =
|
|
12891
|
-
$[168] =
|
|
12892
|
-
|
|
12888
|
+
$[160] = printHidden;
|
|
12889
|
+
$[161] = printing;
|
|
12890
|
+
$[162] = renderControls;
|
|
12891
|
+
$[163] = resolvedMessage;
|
|
12892
|
+
$[164] = resolvedTitle;
|
|
12893
|
+
$[165] = titleProps;
|
|
12894
|
+
$[166] = unknownErrorMessage;
|
|
12895
|
+
$[167] = unknownWarningMessage;
|
|
12896
|
+
$[168] = warningsLabel;
|
|
12897
|
+
$[169] = t33;
|
|
12898
|
+
} else t33 = $[169];
|
|
12893
12899
|
return t33;
|
|
12894
12900
|
}
|
|
12895
12901
|
/**
|
|
@@ -15240,7 +15246,7 @@ function SelectMultipleControlItemGroup(_props) {
|
|
|
15240
15246
|
* ```
|
|
15241
15247
|
*/
|
|
15242
15248
|
function SelectMultipleControl(t0) {
|
|
15243
|
-
const $ = c(
|
|
15249
|
+
const $ = c(114);
|
|
15244
15250
|
let apiRef;
|
|
15245
15251
|
let children;
|
|
15246
15252
|
let debug;
|
|
@@ -15420,7 +15426,6 @@ function SelectMultipleControl(t0) {
|
|
|
15420
15426
|
inputOnChange(newValue);
|
|
15421
15427
|
setArrayValue(newValue);
|
|
15422
15428
|
};
|
|
15423
|
-
const optionNodes = selectionItemObjectsToNodes(groupedOptions);
|
|
15424
15429
|
const absolutePathStr = absolutePath.toString();
|
|
15425
15430
|
let t9;
|
|
15426
15431
|
if ($[52] !== absolutePathStr || $[53] !== issuesToDisplay) {
|
|
@@ -15539,14 +15544,20 @@ function SelectMultipleControl(t0) {
|
|
|
15539
15544
|
value: v,
|
|
15540
15545
|
label: unknownValueLabel
|
|
15541
15546
|
})
|
|
15542
|
-
}, i);
|
|
15547
|
+
}, -i - 1);
|
|
15543
15548
|
$[87] = unknownValueLabel;
|
|
15544
15549
|
$[88] = t30;
|
|
15545
15550
|
} else t30 = $[88];
|
|
15546
15551
|
const t31 = unknownValues.map(t30);
|
|
15547
15552
|
let t32;
|
|
15548
|
-
if ($[89] !==
|
|
15549
|
-
t32 =
|
|
15553
|
+
if ($[89] !== groupedOptions) {
|
|
15554
|
+
t32 = selectionItemObjectsToNodes(groupedOptions);
|
|
15555
|
+
$[89] = groupedOptions;
|
|
15556
|
+
$[90] = t32;
|
|
15557
|
+
} else t32 = $[90];
|
|
15558
|
+
let t33;
|
|
15559
|
+
if ($[91] !== T1 || $[92] !== formattedValue || $[93] !== handleValueChange || $[94] !== inputProps.name || $[95] !== otherProps || $[96] !== t15 || $[97] !== t16 || $[98] !== t17 || $[99] !== t18 || $[100] !== t19 || $[101] !== t20 || $[102] !== t21 || $[103] !== t23 || $[104] !== t25 || $[105] !== t27 || $[106] !== t29 || $[107] !== t31 || $[108] !== t32) {
|
|
15560
|
+
t33 = /* @__PURE__ */ jsxs(T1, {
|
|
15550
15561
|
multiple: t13,
|
|
15551
15562
|
value: formattedValue,
|
|
15552
15563
|
name: t14,
|
|
@@ -15563,37 +15574,37 @@ function SelectMultipleControl(t0) {
|
|
|
15563
15574
|
onBlurToOutside: t27,
|
|
15564
15575
|
...otherProps,
|
|
15565
15576
|
ref: t29,
|
|
15566
|
-
children: [t31,
|
|
15577
|
+
children: [t31, t32]
|
|
15567
15578
|
});
|
|
15568
|
-
$[
|
|
15569
|
-
$[
|
|
15570
|
-
$[
|
|
15571
|
-
$[
|
|
15572
|
-
$[
|
|
15573
|
-
$[
|
|
15574
|
-
$[
|
|
15575
|
-
$[
|
|
15576
|
-
$[
|
|
15577
|
-
$[
|
|
15578
|
-
$[
|
|
15579
|
-
$[
|
|
15580
|
-
$[
|
|
15581
|
-
$[
|
|
15582
|
-
$[
|
|
15583
|
-
$[
|
|
15584
|
-
$[
|
|
15585
|
-
$[
|
|
15586
|
-
$[
|
|
15587
|
-
} else
|
|
15588
|
-
let
|
|
15589
|
-
if ($[
|
|
15590
|
-
|
|
15591
|
-
$[
|
|
15592
|
-
$[
|
|
15593
|
-
$[
|
|
15594
|
-
$[
|
|
15595
|
-
} else
|
|
15596
|
-
return
|
|
15579
|
+
$[91] = T1;
|
|
15580
|
+
$[92] = formattedValue;
|
|
15581
|
+
$[93] = handleValueChange;
|
|
15582
|
+
$[94] = inputProps.name;
|
|
15583
|
+
$[95] = otherProps;
|
|
15584
|
+
$[96] = t15;
|
|
15585
|
+
$[97] = t16;
|
|
15586
|
+
$[98] = t17;
|
|
15587
|
+
$[99] = t18;
|
|
15588
|
+
$[100] = t19;
|
|
15589
|
+
$[101] = t20;
|
|
15590
|
+
$[102] = t21;
|
|
15591
|
+
$[103] = t23;
|
|
15592
|
+
$[104] = t25;
|
|
15593
|
+
$[105] = t27;
|
|
15594
|
+
$[106] = t29;
|
|
15595
|
+
$[107] = t31;
|
|
15596
|
+
$[108] = t32;
|
|
15597
|
+
$[109] = t33;
|
|
15598
|
+
} else t33 = $[109];
|
|
15599
|
+
let t34;
|
|
15600
|
+
if ($[110] !== T0 || $[111] !== inlineIssues || $[112] !== t33) {
|
|
15601
|
+
t34 = /* @__PURE__ */ jsxs(T0, { children: [t33, inlineIssues] });
|
|
15602
|
+
$[110] = T0;
|
|
15603
|
+
$[111] = inlineIssues;
|
|
15604
|
+
$[112] = t33;
|
|
15605
|
+
$[113] = t34;
|
|
15606
|
+
} else t34 = $[113];
|
|
15607
|
+
return t34;
|
|
15597
15608
|
}
|
|
15598
15609
|
function _temp6$1(t0) {
|
|
15599
15610
|
const { path: path_0 } = t0;
|
|
@@ -16207,7 +16218,7 @@ function TableControlColumns(_props) {
|
|
|
16207
16218
|
// src/components/TableControl/TableControlRow.tsx
|
|
16208
16219
|
/** Row of a table control. */
|
|
16209
16220
|
function TableControlRow(t0) {
|
|
16210
|
-
const $ = c(
|
|
16221
|
+
const $ = c(21);
|
|
16211
16222
|
let index;
|
|
16212
16223
|
let otherProps;
|
|
16213
16224
|
let row;
|
|
@@ -16251,63 +16262,40 @@ function TableControlRow(t0) {
|
|
|
16251
16262
|
useRegisterController(controller);
|
|
16252
16263
|
useRegisterLabel(path_0, row == null ? null : index + 1);
|
|
16253
16264
|
const initialized_0 = useControllerState(controller, _temp2$4);
|
|
16254
|
-
|
|
16255
|
-
let
|
|
16256
|
-
if ($[11] !==
|
|
16257
|
-
|
|
16258
|
-
$[11] = t5;
|
|
16259
|
-
$[12] = t6;
|
|
16260
|
-
} else t6 = $[12];
|
|
16261
|
-
const finishPrintingTask = useStartPrintingTask(t6);
|
|
16262
|
-
let t7;
|
|
16263
|
-
let t8;
|
|
16264
|
-
if ($[13] !== finishPrintingTask || $[14] !== initialized_0) {
|
|
16265
|
-
t7 = () => {
|
|
16266
|
-
if (initialized_0) finishPrintingTask();
|
|
16267
|
-
};
|
|
16268
|
-
t8 = [finishPrintingTask, initialized_0];
|
|
16269
|
-
$[13] = finishPrintingTask;
|
|
16270
|
-
$[14] = initialized_0;
|
|
16271
|
-
$[15] = t7;
|
|
16272
|
-
$[16] = t8;
|
|
16273
|
-
} else {
|
|
16274
|
-
t7 = $[15];
|
|
16275
|
-
t8 = $[16];
|
|
16276
|
-
}
|
|
16277
|
-
useEffect(t7, t8);
|
|
16278
|
-
let t9;
|
|
16279
|
-
if ($[17] !== index || $[18] !== otherProps || $[19] !== row) {
|
|
16280
|
-
t9 = /* @__PURE__ */ jsx(DataTableRow, {
|
|
16265
|
+
usePrintingTask(row == null || !initialized_0);
|
|
16266
|
+
let t5;
|
|
16267
|
+
if ($[11] !== index || $[12] !== otherProps || $[13] !== row) {
|
|
16268
|
+
t5 = /* @__PURE__ */ jsx(DataTableRow, {
|
|
16281
16269
|
row,
|
|
16282
16270
|
index,
|
|
16283
16271
|
...otherProps
|
|
16284
16272
|
});
|
|
16285
|
-
$[
|
|
16286
|
-
$[
|
|
16287
|
-
$[
|
|
16288
|
-
$[
|
|
16289
|
-
} else
|
|
16290
|
-
let
|
|
16291
|
-
if ($[
|
|
16292
|
-
|
|
16273
|
+
$[11] = index;
|
|
16274
|
+
$[12] = otherProps;
|
|
16275
|
+
$[13] = row;
|
|
16276
|
+
$[14] = t5;
|
|
16277
|
+
} else t5 = $[14];
|
|
16278
|
+
let t6;
|
|
16279
|
+
if ($[15] !== t5 || $[16] !== tableControlRowController) {
|
|
16280
|
+
t6 = /* @__PURE__ */ jsx(TableControlRowContext, {
|
|
16293
16281
|
value: tableControlRowController,
|
|
16294
|
-
children:
|
|
16282
|
+
children: t5
|
|
16295
16283
|
});
|
|
16296
|
-
$[
|
|
16297
|
-
$[
|
|
16298
|
-
$[
|
|
16299
|
-
} else
|
|
16300
|
-
let
|
|
16301
|
-
if ($[
|
|
16302
|
-
|
|
16284
|
+
$[15] = t5;
|
|
16285
|
+
$[16] = tableControlRowController;
|
|
16286
|
+
$[17] = t6;
|
|
16287
|
+
} else t6 = $[17];
|
|
16288
|
+
let t7;
|
|
16289
|
+
if ($[18] !== path_0 || $[19] !== t6) {
|
|
16290
|
+
t7 = /* @__PURE__ */ jsx(CurrentPath, {
|
|
16303
16291
|
path: path_0,
|
|
16304
|
-
children:
|
|
16292
|
+
children: t6
|
|
16305
16293
|
});
|
|
16306
|
-
$[
|
|
16307
|
-
$[
|
|
16308
|
-
$[
|
|
16309
|
-
} else
|
|
16310
|
-
return
|
|
16294
|
+
$[18] = path_0;
|
|
16295
|
+
$[19] = t6;
|
|
16296
|
+
$[20] = t7;
|
|
16297
|
+
} else t7 = $[20];
|
|
16298
|
+
return t7;
|
|
16311
16299
|
}
|
|
16312
16300
|
function _temp2$4(t0) {
|
|
16313
16301
|
const { initialized } = t0;
|