@ostack.tech/ui-kform 0.15.5 → 0.16.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/chunks/{en-CaLvO1z0.js → en-CKrk2smU.js} +14 -5
- package/dist/chunks/en-CKrk2smU.js.map +1 -0
- package/dist/locales/en-GB.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/fr-FR.js +21 -12
- package/dist/locales/fr-FR.js.map +1 -1
- package/dist/locales/pt-PT.js +13 -4
- package/dist/locales/pt-PT.js.map +1 -1
- package/dist/ostack-ui-kform.css +13 -0
- package/dist/ostack-ui-kform.js +1806 -709
- package/dist/ostack-ui-kform.js.map +1 -1
- package/package.json +6 -5
- package/scss/_utils.scss +1 -0
- package/scss/components/FormPages/_FormPages.scss +8 -0
- package/scss/components/SubmitAction/_SubmitAction-variables.scss +3 -0
- package/scss/components/SubmitAction/_SubmitAction.scss +13 -0
- package/scss/index.scss +1 -0
- package/types/components/Annexes/Annex.d.ts +71 -7
- package/types/components/Annexes/Annexes.d.ts +49 -65
- package/types/components/Annexes/AnnexesContext.d.ts +2 -1
- package/types/components/Annexes/AnnexesManager.d.ts +15 -10
- package/types/components/Annexes/AnnexesMenu.d.ts +5 -6
- package/types/components/Annexes/AnnexesTabList.d.ts +3 -4
- package/types/components/CheckboxControl/CheckboxControl.d.ts +38 -9
- package/types/components/CheckboxGroupControl/CheckboxGroupControl.d.ts +64 -22
- package/types/components/CheckboxGroupControl/CheckboxGroupControlItem.d.ts +26 -0
- package/types/components/CheckboxGroupControl/index.d.ts +1 -0
- package/types/components/ControlField/ControlField.d.ts +3 -4
- package/types/components/DateControl/DateControl.d.ts +38 -8
- package/types/components/DateRangeControl/DateRangeControl.d.ts +56 -24
- package/types/components/DebugInfo/DebugInfo.d.ts +26 -0
- package/types/components/DebugInfo/DebugInfoControlAddonTrigger.d.ts +9 -0
- package/types/components/DebugInfo/index.d.ts +2 -0
- package/types/components/FileControl/FileControl.d.ts +37 -8
- package/types/components/FileControl/FileControlDownloadAddon.d.ts +8 -0
- package/types/components/FileControl/FileControlViewAddon.d.ts +10 -0
- package/types/components/FormApp/FormApp.d.ts +60 -139
- package/types/components/FormApp/FormAppContext.d.ts +13 -3
- package/types/components/FormApp/FormAppElement.d.ts +3 -3
- package/types/components/FormApp/index.d.ts +1 -1
- package/types/components/FormPages/FormPage.d.ts +38 -20
- package/types/components/FormPages/FormPageHeader.d.ts +3 -3
- package/types/components/FormPages/FormPages.d.ts +45 -24
- package/types/components/FormPages/FormPagesContext.d.ts +2 -1
- package/types/components/FormPages/FormPagesNavigation.d.ts +11 -8
- package/types/components/FormPages/FormPagesSelect.d.ts +1 -1
- package/types/components/FormPages/FormPagesSidebar.d.ts +3 -3
- package/types/components/FormStepper/FormStep.d.ts +23 -7
- package/types/components/FormStepper/FormStepList.d.ts +3 -4
- package/types/components/FormStepper/FormStepper.d.ts +52 -21
- package/types/components/FormStepper/FormStepperContext.d.ts +2 -1
- package/types/components/FormStepper/FormStepperFinishTrigger.d.ts +4 -1
- package/types/components/FormStepper/FormStepperNextTrigger.d.ts +4 -1
- package/types/components/FormStepper/FormStepperPreviousTrigger.d.ts +4 -1
- package/types/components/FormStepper/FormStepperState.d.ts +3 -1
- package/types/components/IssueMessage/IssueMessage.d.ts +2 -2
- package/types/components/IssueMessages/IssueMessages.d.ts +4 -4
- package/types/components/IssuesAlert/IssuesAlert.d.ts +4 -5
- package/types/components/IssuesPanel/IssuesPanel.d.ts +18 -18
- package/types/components/IssuesPanel/IssuesPanelMessagesCard.d.ts +4 -4
- package/types/components/IssuesPanel/IssuesPanelSummaryCard.d.ts +4 -4
- package/types/components/IssuesPopover/IssuesPopover.d.ts +3 -4
- package/types/components/LoadAction/LoadAction.d.ts +34 -4
- package/types/components/NumericControl/NumericControl.d.ts +56 -8
- package/types/components/PathLink/PathLink.d.ts +2 -2
- package/types/components/PrintAction/PrintAction.d.ts +41 -16
- package/types/components/RadioGroupControl/RadioGroupControl.d.ts +54 -19
- package/types/components/RadioGroupControl/RadioGroupControlItem.d.ts +25 -0
- package/types/components/RadioGroupControl/index.d.ts +1 -0
- package/types/components/SaveAction/SaveAction.d.ts +45 -7
- package/types/components/SelectControl/SelectControl.d.ts +55 -10
- package/types/components/SelectControl/SelectControlItem.d.ts +23 -0
- package/types/components/SelectControl/SelectControlItemGroup.d.ts +23 -0
- package/types/components/SelectControl/index.d.ts +2 -0
- package/types/components/SelectMultipleControl/SelectMultipleControl.d.ts +71 -14
- package/types/components/SelectMultipleControl/SelectMultipleControlItem.d.ts +13 -0
- package/types/components/SelectMultipleControl/SelectMultipleControlItemGroup.d.ts +13 -0
- package/types/components/SelectMultipleControl/index.d.ts +2 -0
- package/types/components/SubmitAction/SubmitAction.d.ts +50 -14
- package/types/components/TableControl/TableControl.d.ts +108 -13
- package/types/components/TableControl/TableControlActionsColumn.d.ts +21 -0
- package/types/components/TableControl/TableControlActionsColumnLabel.d.ts +2 -0
- package/types/components/TableControl/TableControlAddRowTrigger.d.ts +12 -5
- package/types/components/TableControl/TableControlCell.d.ts +3 -4
- package/types/components/TableControl/TableControlColumn.d.ts +24 -56
- package/types/components/TableControl/TableControlColumnFns.d.ts +113 -0
- package/types/components/TableControl/TableControlColumnGroup.d.ts +25 -0
- package/types/components/TableControl/TableControlColumns.d.ts +14 -0
- package/types/components/TableControl/TableControlContent.d.ts +3 -4
- package/types/components/TableControl/TableControlContext.d.ts +2 -1
- package/types/components/TableControl/TableControlIndexColumn.d.ts +10 -0
- package/types/components/TableControl/TableControlIndexColumnLabel.d.ts +2 -0
- package/types/components/TableControl/TableControlPagination.d.ts +4 -1
- package/types/components/TableControl/TableControlRemoveRowTrigger.d.ts +5 -5
- package/types/components/TableControl/TableControlRow.d.ts +11 -4
- package/types/components/TableControl/TableControlRowsPerPage.d.ts +4 -1
- package/types/components/TableControl/index.d.ts +6 -0
- package/types/components/TextControl/TextControl.d.ts +47 -21
- package/types/components/TopBar/TopBar.d.ts +3 -3
- package/types/components/TopBar/TopBarActions.d.ts +3 -4
- package/types/components/ValidateAction/ValidateAction.d.ts +24 -2
- package/types/index.d.ts +1 -0
- package/types/providers/LocalizationProvider/LocalizationObject.d.ts +5 -1
- package/types/utils/__tests__/pathSpecificity.test.d.ts +1 -0
- package/types/utils/options.d.ts +13 -18
- package/types/utils/promiseUtils.d.ts +7 -0
- package/types/utils/selectionTransformations.d.ts +9 -9
- package/types/utils/useControlIssues.d.ts +21 -19
- package/types/utils/useFormLoader.d.ts +7 -1
- package/types/utils/useFormSaver.d.ts +3 -3
- package/dist/chunks/en-CaLvO1z0.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Schema } from "@ostack.tech/kform";
|
|
2
2
|
import { type Listable } from "@ostack.tech/kform-react";
|
|
3
3
|
import type { JSX } from "react";
|
|
4
|
-
import type {
|
|
4
|
+
import type { SelectControlItemGroupObject, SelectControlItemObject } from "../components/SelectControl";
|
|
5
5
|
/** Whether the provided value isn't a known option. */
|
|
6
6
|
export declare function isUnknownValue<T>(value: T | null | undefined, options: {
|
|
7
7
|
value: T;
|
|
@@ -12,7 +12,7 @@ export declare function isUnknownValue<T>(value: T | null | undefined, options:
|
|
|
12
12
|
*/
|
|
13
13
|
export declare function parseSelectionValueFromOptionIndex<T>(formattedValue: string, schema: Schema<T>, options: {
|
|
14
14
|
value: T;
|
|
15
|
-
}[], unknownValues: T[]): T;
|
|
15
|
+
}[], unknownValues: readonly T[]): T;
|
|
16
16
|
/**
|
|
17
17
|
* Formats a selection value as the (string) index of an option (or empty
|
|
18
18
|
* string).
|
|
@@ -21,21 +21,21 @@ export declare function formatSelectionValueAsOptionIndex<T>(value: T | undefine
|
|
|
21
21
|
value: T;
|
|
22
22
|
}[]): string;
|
|
23
23
|
/** Values that aren't known options. */
|
|
24
|
-
export declare function getUnknownValues<T>(arrayValue: T[] | null | undefined, options: {
|
|
24
|
+
export declare function getUnknownValues<T>(arrayValue: readonly T[] | null | undefined, options: {
|
|
25
25
|
value: T;
|
|
26
26
|
}[]): T[];
|
|
27
27
|
/** Parses an array of selection values from an array of (string) option indices. */
|
|
28
28
|
export declare function parseSelectionValuesFromOptionIndices<T, TListable extends Listable<T> | null>(formattedValue: string[], schema: Schema<TListable>, options: {
|
|
29
29
|
value: T;
|
|
30
|
-
}[], unknownValues: T[]): T[] | null;
|
|
30
|
+
}[], unknownValues: readonly T[]): T[] | null;
|
|
31
31
|
/** Formats an array of selection values as an array of (string) option indices. */
|
|
32
|
-
export declare function formatSelectionValuesAsOptionIndices<T>(arrayValue: T[] | null | undefined, options: {
|
|
32
|
+
export declare function formatSelectionValuesAsOptionIndices<T>(arrayValue: readonly T[] | null | undefined, options: {
|
|
33
33
|
value: T;
|
|
34
|
-
}[], unknownValues: T[]): string[];
|
|
34
|
+
}[], unknownValues: readonly T[]): string[];
|
|
35
35
|
/**
|
|
36
|
-
* Transforms
|
|
36
|
+
* Transforms selection item objects into React nodes.
|
|
37
37
|
*
|
|
38
|
-
* @param
|
|
38
|
+
* @param items Item objects.
|
|
39
39
|
* @returns React nodes representing the objects.
|
|
40
40
|
*/
|
|
41
|
-
export declare function
|
|
41
|
+
export declare function selectionItemObjectsToNodes<T>(items: (SelectControlItemObject<T> | SelectControlItemGroupObject<T>)[]): JSX.Element[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SealedValidationIssue } from "@ostack.tech/kform";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import { type ControlVariant } from "@ostack.tech/ui";
|
|
3
|
+
import type { ReactNode } from "react";
|
|
4
|
+
import { type IssueMessagesByCode, type IssueMessagesProps } from "../components/IssueMessages";
|
|
4
5
|
/** Options of the `useControlIssues` hook. */
|
|
5
6
|
export interface UseControlIssuesOptions {
|
|
6
7
|
/** Mapping from path to issues to display. */
|
|
@@ -10,21 +11,22 @@ export interface UseControlIssuesOptions {
|
|
|
10
11
|
/** Whether issues should be displayed. */
|
|
11
12
|
displayIssues?: boolean;
|
|
12
13
|
/** Properties to pass to the `IssueMessages` component. */
|
|
13
|
-
issueMessagesProps?: Omit<
|
|
14
|
+
issueMessagesProps?: Omit<IssueMessagesProps, "path" | "issues" | "messages" | "unwrapped">;
|
|
15
|
+
/** Variant of the control. */
|
|
16
|
+
variant?: ControlVariant;
|
|
14
17
|
}
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
];
|
|
18
|
+
/** Result of the `useControlIssues` hook. */
|
|
19
|
+
export interface UseControlIssuesResult {
|
|
20
|
+
/**
|
|
21
|
+
* Node that should be rendered when the issues are to appear inline. This
|
|
22
|
+
* will be `null` if the issues should not appear inline.
|
|
23
|
+
*/
|
|
24
|
+
inlineIssues: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Node that should be rendered when the issues are to appear within a
|
|
27
|
+
* popover. This will be `null` if the issues should not appear in a popover.
|
|
28
|
+
*/
|
|
29
|
+
popoverIssues: ReactNode;
|
|
30
|
+
}
|
|
31
|
+
/** Hook which helps a control component render its issues. */
|
|
32
|
+
export declare function useControlIssues({ issuesToDisplay, issueMessages, displayIssues, issueMessagesProps, variant, }: UseControlIssuesOptions): UseControlIssuesResult;
|
|
@@ -41,6 +41,12 @@ export interface FormLoaderOptions<T = unknown> {
|
|
|
41
41
|
* @default true
|
|
42
42
|
*/
|
|
43
43
|
setPristineOnLoad?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether to set the form as touched when it is loaded.
|
|
46
|
+
*
|
|
47
|
+
* @defalut true
|
|
48
|
+
*/
|
|
49
|
+
setTouchedOnLoad?: boolean;
|
|
44
50
|
/**
|
|
45
51
|
* Whether to validate the form (and show the issues panel) when it is loaded.
|
|
46
52
|
*
|
|
@@ -79,6 +85,6 @@ export interface FormLoaderResult<T> {
|
|
|
79
85
|
supportsFileSystemAPIs: boolean;
|
|
80
86
|
}
|
|
81
87
|
/** Hook exposing a function used to load the form from a file. */
|
|
82
|
-
export declare function useFormLoader<T = unknown>({ decode, path, extensions, mimeTypes, description, startIn, id, setPristineOnLoad, validateOnLoad, successMessage, errorMessage, }?: FormLoaderOptions<T>): FormLoaderResult<T>;
|
|
88
|
+
export declare function useFormLoader<T = unknown>({ decode, path, extensions, mimeTypes, description, startIn, id, setPristineOnLoad, setTouchedOnLoad, validateOnLoad, successMessage, errorMessage, }?: FormLoaderOptions<T>): FormLoaderResult<T>;
|
|
83
89
|
/** Hook exposing whether the form is currently being loaded. */
|
|
84
90
|
export declare function useFormIsLoading(): any;
|
|
@@ -18,7 +18,7 @@ export interface FormSaverOptions<T = unknown> {
|
|
|
18
18
|
* Function used to encode the form, given its value.
|
|
19
19
|
*
|
|
20
20
|
* Note that when returning a string, the string is converted into a `Blob`
|
|
21
|
-
* using the first provided mime type in `mimeTypes` as its type,
|
|
21
|
+
* using the first provided mime type in `mimeTypes` as its type, i.e. it is
|
|
22
22
|
* converted as `new Blob([encodedValue], { type: mimeTypes?.[0] })`.
|
|
23
23
|
*
|
|
24
24
|
* @param formValue Value of the form.
|
|
@@ -42,7 +42,7 @@ export interface FormSaverOptions<T = unknown> {
|
|
|
42
42
|
/**
|
|
43
43
|
* Acceptable file extensions. Extensions should include the leading dot.
|
|
44
44
|
*
|
|
45
|
-
*
|
|
45
|
+
* E.g. `[".json", ".txt"]`
|
|
46
46
|
*
|
|
47
47
|
* @default [""]
|
|
48
48
|
*/
|
|
@@ -50,7 +50,7 @@ export interface FormSaverOptions<T = unknown> {
|
|
|
50
50
|
/**
|
|
51
51
|
* Acceptable MIME types.
|
|
52
52
|
*
|
|
53
|
-
*
|
|
53
|
+
* E.g. `["application/json", "text/plain"]`
|
|
54
54
|
*
|
|
55
55
|
* @default [ ]
|
|
56
56
|
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-CaLvO1z0.js","names":[],"sources":["../../src/locales/en.tsx"],"sourcesContent":["import type { LocalizationObject } from \"../providers/LocalizationProvider\";\n\n/** `en` locale (partial). */\nexport const en: Omit<LocalizationObject, \"languageTag\" | \"baseLocale\"> = {\n AnnexesManager: {\n \"aria-label\": \"Annexes\",\n menuButtonText: \"Annexes\",\n menuButtonLabel: \"Annexes manager\",\n addAnnexText: \"Add annex\",\n removeAnnexButtonLabel: \"Remove annex\",\n removeAnnexKeyboardHint: \"Press “Delete” to remove the annex.\",\n removeAnnexConfirmDialogTitle: \"Remove annex\",\n removeAnnexConfirmDialogMessage: (annexName) => (\n <>Are you sure you want to remove annex {annexName}?</>\n ),\n removeAnnexConfirmDialogOkText: \"Remove\",\n },\n CheckboxGroupControl: {},\n DateRangeControl: {\n issuesPanelStartLabelSuffix: \" (start date)\",\n issuesPanelEndLabelSuffix: \" (end date)\",\n },\n FileControl: {\n clearDescription: \"Press Backspace or Delete to clear.\",\n viewFileButtonLabel: \"View file\",\n downloadFileButtonLabel: \"Download file\",\n fallbackText: (\n <>\n The selected file cannot be viewed in this browser.\n <br />\n Please use the button above to download the file. You can then open it\n using an external application.\n </>\n ),\n },\n FormApp: {\n formTitle: \"Form\",\n issueMessages: {\n \"/**\": {\n valueMissing: \"Field is required.\",\n valueDisallowed: \"Indicated value is not allowed.\",\n rangeUnderflow: \"Value is under the minimum allowed.\",\n rangeOverflow: \"Value exceeds the maximum allowed.\",\n lengthMismatch: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" &&\n typeof restrictions.minLength === \"number\" &&\n restrictions.minLength === restrictions.maxLength\n ? `Value must have ${restrictions.minLength} character${\n restrictions.minLength === 1 ? \"\" : \"s\"\n }.`\n : \"Value has an invalid length.\",\n tooShort: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.minLength === \"number\"\n ? `Value must not have under ${restrictions.minLength} character${\n restrictions.minLength === 1 ? \"\" : \"s\"\n }.`\n : \"Value is too short.\",\n tooLong: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.maxLength === \"number\"\n ? `Value must not have over ${restrictions.maxLength} character${\n restrictions.maxLength === 1 ? \"\" : \"s\"\n }.`\n : \"Value is too long.\",\n sizeMismatch: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.minSize === \"number\" &&\n restrictions.minSize === restrictions.maxSize\n ? `Field must have ${restrictions.minSize} item${\n restrictions.minSize === 1 ? \"\" : \"s\"\n }.`\n : \"Field has an invalid number of items.\",\n tooSmall: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.minLength === \"number\"\n ? `Field must not have under ${restrictions.minLength} item${\n restrictions.minLength === 1 ? \"\" : \"s\"\n }.`\n : \"Field does not have enough items.\",\n tooLarge: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.maxLength === \"number\"\n ? `Field must not have over ${restrictions.maxLength} item${\n restrictions.maxLength === 1 ? \"\" : \"s\"\n }.`\n : \"Number of items of field exceeds allowed limit.\",\n scaleMismatch: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.scale === \"number\"\n ? `Value must have ${restrictions.scale} decimal place${\n restrictions.scale === 1 ? \"\" : \"s\"\n }.`\n : \"Value has invalid number of decimal places.\",\n patternMismatch: \"Value does not follow required pattern.\",\n emailPatternMismatch: \"Invalid email address.\",\n fileTypeMismatch: (_data, { typeInfo: { restrictions } }) =>\n Array.isArray(restrictions.acceptedFileTypes)\n ? `Only the following file types are allowed: ${restrictions.acceptedFileTypes.join(\", \")}.`\n : \"Indicated file’s type is not allowed.\",\n itemsRepeated: ({ firstIndex, secondIndex }) =>\n firstIndex != null && secondIndex != null\n ? `Items ${+firstIndex + 1} and ${+secondIndex + 1} are repeated.`\n : \"Field contains repeated items.\",\n computedValueMismatch: \"Value differs from the computed value.\",\n validationFailed: (data) =>\n process.env.NODE_ENV !== \"production\"\n ? data.exception\n : \"Something went wrong validating this field. \" +\n \"Please try again later.\",\n },\n },\n confirmUnloadMessage:\n \"Are you sure you want to leave the page? \" +\n \"Changes you made to the form may not have been saved.\",\n },\n FormPagesNavigation: {\n \"aria-label\": \"Pages\",\n },\n FormPage: {\n helperButtonLabel: \"Show help\",\n visuallyHiddenCodePrefix: \"Page\",\n },\n IssueMessages: {\n visuallyHiddenErrorCodePrefix: \"Error code,\",\n visuallyHiddenWarningCodePrefix: \"Warning code,\",\n unknownErrorMessage: \"Field with unknown error.\",\n unknownWarningMessage: \"Field with unknown warning.\",\n },\n IssuesPanel: {\n errorsLabel: (errors) =>\n errors === undefined ? (\n \"Errors\"\n ) : (\n <>\n {errors} {errors === 1 ? \"Error\" : \"Errors\"}\n </>\n ),\n warningsLabel: (warnings) =>\n warnings === undefined ? (\n \"Warnings\"\n ) : (\n <>\n {warnings} {warnings === 1 ? \"Warning\" : \"Warnings\"}\n </>\n ),\n focusButtonLabel: \"Focus field\",\n previousIssueButtonLabel: \"Previous field with issues\",\n nextIssueButtonLabel: \"Next field with issues\",\n firstIssueButtonLabel: \"First field with issues\",\n lastIssueButtonLabel: \"Last field with issues\",\n paginationLabel: (currentPage, totalPages) =>\n `Field with issues ${currentPage} of ${totalPages}.`,\n noIssuesMessage: \"No issues to report.\",\n resolvedTitle: \"Resolved\",\n resolvedMessage:\n \"Issues have been resolved. \" +\n \"Please advance to the next field with issues.\",\n },\n IssuesPopover: {\n label: \"Show issues\",\n },\n LoadAction: {\n label: \"Load\",\n successMessage: (file) => `File “${file.name}” loaded successfully.`,\n errorMessage: (file) =>\n file\n ? `Unable to load file “${file.name}”. ` +\n \"Please confirm that the indicated file is a valid file of the form.\"\n : \"Unable to load the indicated file. Please confirm that you have \" +\n \"the appropriate permissions to perform the operation.\",\n },\n PrintAction: {\n label: \"Print\",\n },\n RadioGroupControl: {},\n SaveAction: {\n label: \"Save\",\n saveOptionsLabel: \"Save options\",\n saveAsLabel: \"Save as…\",\n successMessage: (fileHandle) =>\n `File “${fileHandle.name}” saved successfully.`,\n errorMessage: (fileHandle) =>\n fileHandle\n ? `Unable to save file “${fileHandle.name}”. ` +\n \"Please confirm that you have the appropriate permissions to \" +\n \"perform the operation.\"\n : \"Unable to save the indicated file. Please confirm that you have \" +\n \"the appropriate permissions to perform the operation.\",\n },\n SelectControl: {},\n SelectMultipleControl: {},\n SubmitAction: {\n label: \"Submit\",\n dialogTitle: \"Submit form\",\n dialogDescription:\n \"Please confirm that you wish to proceed with the form submission.\",\n dialogCancelText: \"Cancel\",\n confirmWarningsCheckboxLabel:\n \"I declare that I have been informed of the warnings generated by the \" +\n \"data in this form and that I wish to proceed without changing said \" +\n \"data.\",\n successMessage: \"Form submitted successfully.\",\n errorMessage:\n \"Something went wrong while submitting the form. Please try again later.\",\n },\n TableControlAddRowTrigger: {\n label: \"Add row\",\n },\n TableControlRemoveRowTrigger: {\n label: \"Remove row\",\n confirmDialogTitle: \"Remove row\",\n confirmDialogMessage: (index) => (\n <>Are you sure you want to remove line #{index + 1}?</>\n ),\n confirmDialogOkText: \"Remove\",\n },\n UnknownValue: {\n label: \"Unknown value\",\n },\n ValidateAction: {\n label: \"Validate\",\n },\n};\n"],"mappings":";;;AAGA,IAAa,KAA6D;CACxE,gBAAgB;EACd,cAAc;EACd,gBAAgB;EAChB,iBAAiB;EACjB,cAAc;EACd,wBAAwB;EACxB,yBAAyB;EACzB,+BAA+B;EAC/B,kCAAkC,cAChC,qBAAA,UAAA,EAAA,UAAA;GAAE;GAAuC;GAAU;EAAG,EAAA,CAAA;EAExD,gCAAgC;CAClC;CACA,sBAAsB,CAAC;CACvB,kBAAkB;EAChB,6BAA6B;EAC7B,2BAA2B;CAC7B;CACA,aAAa;EACX,kBAAkB;EAClB,qBAAqB;EACrB,yBAAyB;EACzB,cACE,qBAAA,UAAA,EAAA,UAAA;GAAE;GAEA,oBAAC,MAAD,CAAK,CAAA;GAAC;EAGN,EAAA,CAAA;CAEN;CACA,SAAS;EACP,WAAW;EACX,eAAe,EACb,OAAO;GACL,cAAc;GACd,iBAAi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