@ostack.tech/ui-kform 1.0.0-rc.0 → 1.0.0-rc.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-CBhjKaFE.js → en-D4xMcf6Q.js} +2 -2
- package/dist/chunks/{en-CBhjKaFE.js.map → en-D4xMcf6Q.js.map} +1 -1
- package/dist/locales/en-GB.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/fr-FR.js +1 -1
- package/dist/locales/index.js +5 -0
- package/dist/locales/pt-PT.js +1 -1
- package/dist/ostack-ui-kform.js +41 -44
- package/dist/ostack-ui-kform.js.map +1 -1
- package/package.json +6 -2
- package/types/index.d.ts +0 -1
- package/types/providers/LocalizationProvider/LocalizationObject.d.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VisuallyHidden } from "@ostack.tech/ui";
|
|
2
|
-
import { DEV } from "esm-env";
|
|
3
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { DEV } from "esm-env";
|
|
4
4
|
//#region src/locales/en.tsx
|
|
5
5
|
/** `en` locale (partial). */
|
|
6
6
|
var en = {
|
|
@@ -140,4 +140,4 @@ if (DEV) en.DebugInfo = { label: "Debug information" };
|
|
|
140
140
|
//#endregion
|
|
141
141
|
export { en as t };
|
|
142
142
|
|
|
143
|
-
//# sourceMappingURL=en-
|
|
143
|
+
//# sourceMappingURL=en-D4xMcf6Q.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-CBhjKaFE.js","names":[],"sources":["../../src/locales/en.tsx"],"sourcesContent":["import { VisuallyHidden } from \"@ostack.tech/ui\";\nimport { DEV } from \"esm-env\";\n\nimport 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.minScale === \"number\" &&\n restrictions.minScale === restrictions.maxScale\n ? `Value must have ${restrictions.minScale} decimal place${\n restrictions.minScale === 1 ? \"\" : \"s\"\n }.`\n : \"Value has invalid number of decimal places.\",\n scaleUnderflow: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.minScale === \"number\"\n ? `Value must not have under ${restrictions.minScale} decimal place${\n restrictions.minScale === 1 ? \"\" : \"s\"\n }.`\n : \"Value has too few decimal places.\",\n scaleOverflow: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.maxScale === \"number\"\n ? `Value must not have over ${restrictions.maxScale} decimal place${\n restrictions.maxScale === 1 ? \"\" : \"s\"\n }.`\n : \"Value has too many 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 DEV\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 TableControlActionsColumn: {\n label: <VisuallyHidden>Actions</VisuallyHidden>,\n },\n TableControlAddRowTrigger: {\n label: \"Add row\",\n },\n TableControlContent: {\n emptyMessage: \"No rows added.\",\n },\n TableControlIndexColumn: {\n label: <span aria-label=\"Row number\">No.</span>,\n },\n TableControlRemoveRowTrigger: {\n label: \"Remove row\",\n confirmDialogMessage: (index) => (\n <>Are you sure you want to remove row no. {index + 1}?</>\n ),\n confirmDialogOkText: \"Remove\",\n },\n UnknownValue: {\n label: \"Unknown value\",\n },\n ValidateAction: {\n label: \"Validate\",\n },\n};\n\nif (DEV) {\n en.DebugInfo = {\n label: \"Debug information\",\n };\n}\n"],"mappings":";;;;;AAMA,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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AsB;EACtB,kBAAkB,aAAa,eAC7B,qBAAqB,YAAY,MAAM,WAAW;EACpD,iBAAiB;EACjB,eAAe;EACf,iBACE;CAEJ;CACA,eAAe,EACb,OAAO,cACT;CACA,YAAY;EACV,OAAO;EACP,iBAAiB,SAAS,SAAS,KAAK,KAAK;EAC7C,eAAe,SACb,OACI,wBAAwB,KAAK,KAAK,0EAElC;CAER;CACA,aAAa,EACX,OAAO,QACT;CACA,mBAAmB,CAAC;CACpB,YAAY;EACV,OAAO;EACP,kBAAkB;EAClB,aAAa;EACb,iBAAiB,eACf,SAAS,WAAW,KAAK;EAC3B,eAAe,eACb,aACI,wBAAwB,WAAW,KAAK,yFAGxC;CAER;CACA,eAAe,CAAC;CAChB,uBAAuB,CAAC;CACxB,cAAc;EACZ,OAAO;EACP,aAAa;EACb,mBACE;EACF,kBAAkB;EAClB,8BACE;EAGF,gBAAgB;EAChB,cACE;CACJ;CACA,2BAA2B,EACzB,OAAO,oBAAC,gBAAD,EAAA,UAAgB,UAAuB,CAAA,EAChD;CACA,2BAA2B,EACzB,OAAO,UACT;CACA,qBAAqB,EACnB,cAAc,iBAChB;CACA,yBAAyB,EACvB,OAAO,oBAAC,QAAD;EAAM,cAAW;EAAa,UAAA;CAAS,CAAA,EAChD;CACA,8BAA8B;EAC5B,OAAO;EACP,uBAAuB,UACrB,qBAAA,UAAA,EAAA,UAAA;GAAE;GAAyC,QAAQ;GAAE;EAAG,EAAA,CAAA;EAE1D,qBAAqB;CACvB;CACA,cAAc,EACZ,OAAO,gBACT;CACA,gBAAgB,EACd,OAAO,WACT;AACF;AAEA,IAAI,KACF,GAAG,YAAY,EACb,OAAO,oBACT"}
|
|
1
|
+
{"version":3,"file":"en-D4xMcf6Q.js","names":[],"sources":["../../src/locales/en.tsx"],"sourcesContent":["import { VisuallyHidden } from \"@ostack.tech/ui\";\nimport { DEV } from \"esm-env\";\n\nimport 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.minScale === \"number\" &&\n restrictions.minScale === restrictions.maxScale\n ? `Value must have ${restrictions.minScale} decimal place${\n restrictions.minScale === 1 ? \"\" : \"s\"\n }.`\n : \"Value has invalid number of decimal places.\",\n scaleUnderflow: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.minScale === \"number\"\n ? `Value must not have under ${restrictions.minScale} decimal place${\n restrictions.minScale === 1 ? \"\" : \"s\"\n }.`\n : \"Value has too few decimal places.\",\n scaleOverflow: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.maxScale === \"number\"\n ? `Value must not have over ${restrictions.maxScale} decimal place${\n restrictions.maxScale === 1 ? \"\" : \"s\"\n }.`\n : \"Value has too many 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 DEV\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 TableControlActionsColumn: {\n label: <VisuallyHidden>Actions</VisuallyHidden>,\n },\n TableControlAddRowTrigger: {\n label: \"Add row\",\n },\n TableControlContent: {\n emptyMessage: \"No rows added.\",\n },\n TableControlIndexColumn: {\n label: <span aria-label=\"Row number\">No.</span>,\n },\n TableControlRemoveRowTrigger: {\n label: \"Remove row\",\n confirmDialogMessage: (index) => (\n <>Are you sure you want to remove row no. {index + 1}?</>\n ),\n confirmDialogOkText: \"Remove\",\n },\n UnknownValue: {\n label: \"Unknown value\",\n },\n ValidateAction: {\n label: \"Validate\",\n },\n};\n\nif (DEV) {\n en.DebugInfo = {\n label: \"Debug information\",\n };\n}\n"],"mappings":";;;;;AAMA,IAAa,KAA6D;CACxE,gBAAgB;EACd,cAAc;EACd,gBAAgB;EAChB,iBAAiB;EACjB,cAAc;EACd,wBAAwB;EACxB,yBAAyB;EACzB,+BAA+B;EAC/B,kCAAkC,cAChC,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AC9C,EAAA,CAAA;EAEN,kBAAkB;EAClB,0BAA0B;EAC1B,sBAAsB;EACtB,uBAAuB;EACvB,sBAAsB;EACtB,kBAAkB,aAAa,eAC7B,qBAAqB,YAAY,MAAM,WAAW;EACpD,iBAAiB;EACjB,eAAe;EACf,iBACE;CAEJ;CACA,eAAe,EACb,OAAO,cACT;CACA,YAAY;EACV,OAAO;EACP,iBAAiB,SAAS,SAAS,KAAK,KAAK;EAC7C,eAAe,SACb,OACI,wBAAwB,KAAK,KAAK,0EAElC;CAER;CACA,aAAa,EACX,OAAO,QACT;CACA,mBAAmB,CAAC;CACpB,YAAY;EACV,OAAO;EACP,kBAAkB;EAClB,aAAa;EACb,iBAAiB,eACf,SAAS,WAAW,KAAK;EAC3B,eAAe,eACb,aACI,wBAAwB,WAAW,KAAK,yFAGxC;CAER;CACA,eAAe,CAAC;CAChB,uBAAuB,CAAC;CACxB,cAAc;EACZ,OAAO;EACP,aAAa;EACb,mBACE;EACF,kBAAkB;EAClB,8BACE;EAGF,gBAAgB;EAChB,cACE;CACJ;CACA,2BAA2B,EACzB,OAAO,oBAAC,gBAAD,EAAA,UAAgB,UAAuB,CAAA,EAChD;CACA,2BAA2B,EACzB,OAAO,UACT;CACA,qBAAqB,EACnB,cAAc,iBAChB;CACA,yBAAyB,EACvB,OAAO,oBAAC,QAAD;EAAM,cAAW;EAAa,UAAA;CAAS,CAAA,EAChD;CACA,8BAA8B;EAC5B,OAAO;EACP,uBAAuB,UACrB,qBAAA,UAAA,EAAA,UAAA;GAAE;GAAyC,QAAQ;GAAE;EAAG,EAAA,CAAA;EAE1D,qBAAqB;CACvB;CACA,cAAc,EACZ,OAAO,gBACT;CACA,gBAAgB,EACd,OAAO,WACT;AACF;AAEA,IAAI,KACF,GAAG,YAAY,EACb,OAAO,oBACT"}
|
package/dist/locales/en-GB.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/fr-FR.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VisuallyHidden } from "@ostack.tech/ui";
|
|
2
|
-
import { DEV } from "esm-env";
|
|
3
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { DEV } from "esm-env";
|
|
4
4
|
import { locale as locale$1 } from "@ostack.tech/ui/locales/fr-FR";
|
|
5
5
|
//#region src/locales/fr-FR.tsx
|
|
6
6
|
/** `fr-FR` locale. */
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { locale } from "./en-GB.js";
|
|
2
|
+
import { locale as locale$1 } from "./en-US.js";
|
|
3
|
+
import { locale as locale$2 } from "./fr-FR.js";
|
|
4
|
+
import { locale as locale$3 } from "./pt-PT.js";
|
|
5
|
+
export { locale as enGB, locale$1 as enUS, locale$2 as fr, locale$2 as frFR, locale$3 as pt, locale$3 as ptPT };
|
package/dist/locales/pt-PT.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VisuallyHidden } from "@ostack.tech/ui";
|
|
2
|
-
import { DEV } from "esm-env";
|
|
3
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { DEV } from "esm-env";
|
|
4
4
|
import { locale as locale$1 } from "@ostack.tech/ui/locales/pt-PT";
|
|
5
5
|
//#region src/locales/pt-PT.tsx
|
|
6
6
|
/** `pt-PT` locale. */
|
package/dist/ostack-ui-kform.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { locale } from "./locales/en-GB.js";
|
|
2
|
-
import { locale as locale$1 } from "./locales/en-US.js";
|
|
3
|
-
import { locale as locale$2 } from "./locales/fr-FR.js";
|
|
4
|
-
import { locale as locale$3 } from "./locales/pt-PT.js";
|
|
5
|
-
import { Action, 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, EMPTY_STORE, 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, combineEventHandlers, computed, controlStatusToAccent, cx, parseChildren, setBoolDataAttr, useActionsContext, useAlertDialog, useCombinedRef, useConstant, useControllableState, useCssVars, useDataTableApiRef, useDataTableColumnLabel, useDateTransformer, useErrorReporter, useIntersectionObserver, useIsInRoot, useIsInTableCell, useKeyboardShortcut, useLatestRef, useMeasure, useMediaBreakpointUp, useOnLabelChange, usePrefix as usePrefix$1, usePrevious, usePrint, usePrintClassNames, usePrintInProgress, usePrinterDocumentTitle, usePrinting, useResponsiveValues, useScrollPosition, useSpacing, useStartPrintingTask, useToastManager, warnOnce } from "@ostack.tech/ui";
|
|
6
|
-
import { DEV } from "esm-env";
|
|
7
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
1
|
import { AtPathError, CurrentPath, FormContext, FormattedValue, InvalidPathError, equals, formatNumericAsString, formatTemporalAsString, toFileList, useController, useCurrentPath, useFileInput, useForm, useFormContext, useFormController, useFormManager, useFormattedValue, useFormatter, useInput, useIssuesTracker, useListableInput, useNumericInput, useResolvedPath, useTemporalInput } from "@ostack.tech/kform-react";
|
|
9
|
-
import {
|
|
2
|
+
import { Action, 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, EMPTY_STORE, 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, combineEventHandlers, computed, controlStatusToAccent, cx, parseChildren, setBoolDataAttr, useActionsContext, useAlertDialog, 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, useResponsiveValues, useScrollPosition, useSpacing, useStartPrintingTask, useToastManager, warnOnce } from "@ostack.tech/ui";
|
|
3
|
+
import { Children, Fragment, Suspense, createContext, isValidElement, startTransition, useCallback, useContext, useDeferredValue, useEffect, useEffectEvent, useId, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
10
4
|
import { createStore, useStore } from "zustand";
|
|
11
5
|
import { useShallow } from "zustand/react/shallow";
|
|
6
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
7
|
import { AbsolutePath, AbsolutePathFragment, Path, PathMultimap, PromiseCancellationException, ValidationFailure, ValueEvent, arrayToTable, compareSchemaPaths, isComputedSchema, isKtList, isTable, nullableSchemaInnerSchema, sliceTableRows, tableIdsToArray, tableRowsToArray, tableSize } from "@ostack.tech/kform";
|
|
13
8
|
import { subscribeWithSelector } from "zustand/middleware";
|
|
14
9
|
import { shallow } from "zustand/shallow";
|
|
15
10
|
import { fileOpen, fileSave, supported } from "browser-fs-access";
|
|
11
|
+
import { DEV } from "esm-env";
|
|
16
12
|
import { faAngleLeft, faAngleRight, faAnglesLeft, faAnglesRight, faArrowRight, faArrowsToDot, faBug, faChevronDown, faChevronUp, faCircleCheck, faCircleExclamation, faCircleQuestion, faDownload, faFileLines, faFloppyDisk, faFolderOpen, faPlus, faPrint, faTrash, faTriangleExclamation } from "@fortawesome/free-solid-svg-icons";
|
|
17
13
|
import { addDays, format, formatISO, max, min, parseISO } from "date-fns";
|
|
18
14
|
import { faCircleCheck as faCircleCheck$1 } from "@fortawesome/free-regular-svg-icons";
|
|
@@ -1387,7 +1383,7 @@ function AnnexRegistrar({ path, title, subtitle, description, issuesPanelLabel,
|
|
|
1387
1383
|
useRegisterController(controller);
|
|
1388
1384
|
useRegisterLabel(absolutePath, /* @__PURE__ */ jsx(CurrentPath, {
|
|
1389
1385
|
path: absolutePath,
|
|
1390
|
-
children: 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, { children: [actualTitle, actualSubtitle && /* @__PURE__ */ jsxs(Fragment, { children: [" — ", actualSubtitle] })] })
|
|
1386
|
+
children: 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] })] })
|
|
1391
1387
|
}));
|
|
1392
1388
|
return null;
|
|
1393
1389
|
}
|
|
@@ -1728,19 +1724,20 @@ function IssuesPopover({ path, relevantPaths, defaultOpen, open: controlledOpen,
|
|
|
1728
1724
|
label ??= locale.IssuesPopover.label;
|
|
1729
1725
|
const absolutePath = useResolvedPath(path);
|
|
1730
1726
|
const [open, setOpen] = useControllableState(defaultOpen, controlledOpen);
|
|
1731
|
-
const
|
|
1727
|
+
const isInFeedbackProvider = useIsInFeedbackProvider();
|
|
1728
|
+
const handleOpenChange = combineEventHandlers(onOpenChange, setOpen);
|
|
1732
1729
|
useOnPathFocus(useCallback((focusedPath) => {
|
|
1733
|
-
if ((relevantPaths ?? [absolutePath]).some((path) => focusedPath.equals(new AbsolutePath(path))))
|
|
1730
|
+
if ((relevantPaths ?? [absolutePath]).some((path) => focusedPath.equals(new AbsolutePath(path)))) handleOpenChange(true);
|
|
1734
1731
|
}, [
|
|
1735
1732
|
relevantPaths,
|
|
1736
1733
|
absolutePath,
|
|
1737
|
-
|
|
1738
|
-
]), { enabled: !
|
|
1734
|
+
handleOpenChange
|
|
1735
|
+
]), { enabled: !isInFeedbackProvider });
|
|
1739
1736
|
return /* @__PURE__ */ jsx(CurrentPath, {
|
|
1740
1737
|
path: absolutePath,
|
|
1741
1738
|
children: /* @__PURE__ */ jsx(FeedbackPopover, {
|
|
1742
1739
|
open,
|
|
1743
|
-
onOpenChange:
|
|
1740
|
+
onOpenChange: handleOpenChange,
|
|
1744
1741
|
label,
|
|
1745
1742
|
...otherProps
|
|
1746
1743
|
})
|
|
@@ -1959,7 +1956,7 @@ function AnnexesMenuItem({ removeAnnexButtonLabel, removeAnnexKeyboardHint, remo
|
|
|
1959
1956
|
...formContext,
|
|
1960
1957
|
currentPath: path
|
|
1961
1958
|
},
|
|
1962
|
-
children: removeAnnexConfirmDialogMessage?.(/* @__PURE__ */ jsxs("strong", { children: [state.title, state.subtitle && /* @__PURE__ */ jsxs(Fragment, { children: [" — ", state.subtitle] })] }))
|
|
1959
|
+
children: removeAnnexConfirmDialogMessage?.(/* @__PURE__ */ jsxs("strong", { children: [state.title, state.subtitle && /* @__PURE__ */ jsxs(Fragment$1, { children: [" — ", state.subtitle] })] }))
|
|
1963
1960
|
}), {
|
|
1964
1961
|
title: removeAnnexConfirmDialogTitle,
|
|
1965
1962
|
color: "danger",
|
|
@@ -2002,7 +1999,7 @@ function AnnexesMenuItem({ removeAnnexButtonLabel, removeAnnexKeyboardHint, remo
|
|
|
2002
1999
|
className: prefix("annexes__menu-annex-description"),
|
|
2003
2000
|
children: [/* @__PURE__ */ jsx(VisuallyHidden, { children: ", " }), nonRepetitiveDescription]
|
|
2004
2001
|
})]
|
|
2005
|
-
}), isRemovable && !formIsReadOnly && /* @__PURE__ */ jsxs(Fragment, { children: [removeAnnexKeyboardHint && /* @__PURE__ */ jsx(VisuallyHidden, { children: removeAnnexKeyboardHint }), /* @__PURE__ */ jsx(IconButton, {
|
|
2002
|
+
}), isRemovable && !formIsReadOnly && /* @__PURE__ */ jsxs(Fragment$1, { children: [removeAnnexKeyboardHint && /* @__PURE__ */ jsx(VisuallyHidden, { children: removeAnnexKeyboardHint }), /* @__PURE__ */ jsx(IconButton, {
|
|
2006
2003
|
className: prefix("annexes__menu-annex-remove"),
|
|
2007
2004
|
icon: faTrash,
|
|
2008
2005
|
label: removeAnnexButtonLabel ?? "",
|
|
@@ -2106,7 +2103,7 @@ function AnnexTab({ path }) {
|
|
|
2106
2103
|
const handleIssuesPopoverOpenAutoFocus = useCallback((evt) => {
|
|
2107
2104
|
if (tabFocused) evt.preventDefault();
|
|
2108
2105
|
}, [tabFocused]);
|
|
2109
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2106
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2110
2107
|
/* @__PURE__ */ jsx(Tab, {
|
|
2111
2108
|
className: prefix("annexes__tab"),
|
|
2112
2109
|
value: path.toString(),
|
|
@@ -2378,7 +2375,7 @@ function useRegisterControl({ controller, issuesPanelLabel, ariaLabel, issuesPan
|
|
|
2378
2375
|
/** Hook used to register a label for all control field's controls. */
|
|
2379
2376
|
function useRegisterFieldLabel(path, issuesPanelLabelSuffix) {
|
|
2380
2377
|
const { store: formAppStore } = useFormAppContext();
|
|
2381
|
-
useOnLabelChange(useCallback((label) => formAppStore.getState().actions.registerLabel(path, label && issuesPanelLabelSuffix ? /* @__PURE__ */ jsxs(Fragment, { children: [label, issuesPanelLabelSuffix] }) : label), [
|
|
2378
|
+
useOnLabelChange(useCallback((label) => formAppStore.getState().actions.registerLabel(path, label && issuesPanelLabelSuffix ? /* @__PURE__ */ jsxs(Fragment$1, { children: [label, issuesPanelLabelSuffix] }) : label), [
|
|
2382
2379
|
formAppStore,
|
|
2383
2380
|
issuesPanelLabelSuffix,
|
|
2384
2381
|
path
|
|
@@ -2430,7 +2427,7 @@ function DebugInfo({ defaultOpen, open, onOpenChange, path = Path.CURRENT_DEEP,
|
|
|
2430
2427
|
/* @__PURE__ */ jsx(DescriptionListItem, {
|
|
2431
2428
|
xs: 6,
|
|
2432
2429
|
term: "Validations",
|
|
2433
|
-
children: schema.validations.length > 0 ? schema.validations.map((validation, i) => /* @__PURE__ */ jsxs(Fragment
|
|
2430
|
+
children: schema.validations.length > 0 ? schema.validations.map((validation, i) => /* @__PURE__ */ jsxs(Fragment, { children: [i !== 0 && ", ", /* @__PURE__ */ jsx(Code, { children: validation.toString() })] }, i)) : empty
|
|
2434
2431
|
}),
|
|
2435
2432
|
/* @__PURE__ */ jsx(DescriptionListItem, {
|
|
2436
2433
|
xs: 6,
|
|
@@ -2450,7 +2447,7 @@ function DebugInfo({ defaultOpen, open, onOpenChange, path = Path.CURRENT_DEEP,
|
|
|
2450
2447
|
/* @__PURE__ */ jsx(DescriptionListItem, {
|
|
2451
2448
|
xs: 6,
|
|
2452
2449
|
term: "Issues",
|
|
2453
|
-
children: issues && issues.length > 0 ? issues.map((issue, i) => /* @__PURE__ */ jsxs(Fragment
|
|
2450
|
+
children: issues && issues.length > 0 ? issues.map((issue, i) => /* @__PURE__ */ jsxs(Fragment, { children: [i !== 0 && ", ", /* @__PURE__ */ jsx(Code, {
|
|
2454
2451
|
color: issue.severity === "error" ? "danger" : "warning",
|
|
2455
2452
|
children: issue.code
|
|
2456
2453
|
})] }, i)) : empty
|
|
@@ -2760,7 +2757,7 @@ function CheckboxControl({ path, issueMessages, issuesPanelLabel, displayIssues
|
|
|
2760
2757
|
disabled: displayDisabled || disabled || inputProps.disabled,
|
|
2761
2758
|
readOnly: displayReadOnly || readOnly || inputProps.readOnly,
|
|
2762
2759
|
status: displayStatusToControlStatus(displayStatusToDisplay),
|
|
2763
|
-
endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2760
|
+
endAdornment: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2764
2761
|
popoverIssues,
|
|
2765
2762
|
endAdornment,
|
|
2766
2763
|
(DEV || false) && showDebugInfo && /* @__PURE__ */ jsx(DebugInfo, { path: absolutePath })
|
|
@@ -2849,8 +2846,8 @@ function UnknownValue({ value, label }) {
|
|
|
2849
2846
|
label ??= locale.UnknownValue.label;
|
|
2850
2847
|
const prefix = usePrefix();
|
|
2851
2848
|
const valueStr = value == null ? "" : String(value);
|
|
2852
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2853
|
-
valueStr && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2849
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2850
|
+
valueStr && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2854
2851
|
"“",
|
|
2855
2852
|
/* @__PURE__ */ jsx("span", {
|
|
2856
2853
|
className: prefix("unknown-value"),
|
|
@@ -2858,7 +2855,7 @@ function UnknownValue({ value, label }) {
|
|
|
2858
2855
|
}),
|
|
2859
2856
|
"”"
|
|
2860
2857
|
] }),
|
|
2861
|
-
valueStr && label && /* @__PURE__ */ jsx(Fragment, { children: "\xA0" }),
|
|
2858
|
+
valueStr && label && /* @__PURE__ */ jsx(Fragment$1, { children: "\xA0" }),
|
|
2862
2859
|
label && /* @__PURE__ */ jsxs("span", {
|
|
2863
2860
|
className: prefix("unknown-value__label"),
|
|
2864
2861
|
children: [
|
|
@@ -3004,7 +3001,7 @@ function CheckboxGroupControl({ path, options, issueMessages, issuesPanelLabel,
|
|
|
3004
3001
|
disabled: displayDisabled || disabled || inputProps.disabled,
|
|
3005
3002
|
readOnly: displayReadOnly || readOnly || inputProps.readOnly,
|
|
3006
3003
|
status: displayStatusToControlStatus(displayStatusToDisplay),
|
|
3007
|
-
endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3004
|
+
endAdornment: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3008
3005
|
popoverIssues,
|
|
3009
3006
|
endAdornment,
|
|
3010
3007
|
(DEV || false) && showDebugInfo && /* @__PURE__ */ jsx(DebugInfo, { path: absolutePath })
|
|
@@ -3153,7 +3150,7 @@ function DateControl({ path, issueMessages, issuesPanelLabel, displayIssues = tr
|
|
|
3153
3150
|
disabled: displayDisabled || disabled || inputProps.disabled,
|
|
3154
3151
|
readOnly: displayReadOnly || readOnly || inputProps.readOnly,
|
|
3155
3152
|
status: displayStatusToControlStatus(displayStatusToDisplay),
|
|
3156
|
-
endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3153
|
+
endAdornment: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3157
3154
|
popoverIssues,
|
|
3158
3155
|
endAdornment,
|
|
3159
3156
|
(DEV || false) && showDebugInfo && /* @__PURE__ */ jsx(DebugInfo, {
|
|
@@ -3321,11 +3318,11 @@ function DateRangeControl({ startPath, endPath, startIssueMessages, endIssueMess
|
|
|
3321
3318
|
onFocus: combineEventHandlers(endInputProps?.onFocus, handleEndFocus),
|
|
3322
3319
|
ref: useCombinedRef(endControllerInputProps?.ref, useCombinedRef(endAutofocusRef, endInputProps?.ref))
|
|
3323
3320
|
},
|
|
3324
|
-
startMiddleAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [startMiddleAdornment, (DEV || false) && showDebugInfo && /* @__PURE__ */ jsx(DebugInfo, {
|
|
3321
|
+
startMiddleAdornment: /* @__PURE__ */ jsxs(Fragment$1, { children: [startMiddleAdornment, (DEV || false) && showDebugInfo && /* @__PURE__ */ jsx(DebugInfo, {
|
|
3325
3322
|
path: startAbsolutePath,
|
|
3326
3323
|
children: /* @__PURE__ */ jsx(DebugInfoControlAddonTrigger, {})
|
|
3327
3324
|
})] }),
|
|
3328
|
-
endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3325
|
+
endAdornment: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3329
3326
|
popoverIssues,
|
|
3330
3327
|
endAdornment,
|
|
3331
3328
|
(DEV || false) && showDebugInfo && /* @__PURE__ */ jsx(DebugInfo, {
|
|
@@ -3506,7 +3503,7 @@ function FileControl({ path, issueMessages, issuesPanelLabel, displayIssues = tr
|
|
|
3506
3503
|
onClick: combineEventHandlers(clearButtonProps?.onClick, handleClearButtonClick),
|
|
3507
3504
|
ref: useCombinedRef(clearButtonProps?.ref, clearButtonRef)
|
|
3508
3505
|
},
|
|
3509
|
-
endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3506
|
+
endAdornment: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3510
3507
|
popoverIssues,
|
|
3511
3508
|
endAdornment,
|
|
3512
3509
|
fileInteraction === "view" && file && /* @__PURE__ */ jsx(FileControlViewAddon, {
|
|
@@ -3646,7 +3643,7 @@ function FormPageHeader({ helperText, helperButtonLabel, ownIssueMessages, codeP
|
|
|
3646
3643
|
className: cx(prefix("form-pages__page-code"), codeProps?.className),
|
|
3647
3644
|
"data-status": displayStatusToControlStatus(deferredDisplayStatus),
|
|
3648
3645
|
"data-accent": controlStatusToAccent(displayStatusToControlStatus(deferredDisplayStatus)),
|
|
3649
|
-
children: code != null && typeof code !== "boolean" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3646
|
+
children: code != null && typeof code !== "boolean" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3650
3647
|
visuallyHiddenCodePrefix && /* @__PURE__ */ jsxs(VisuallyHidden, { children: [visuallyHiddenCodePrefix, " "] }),
|
|
3651
3648
|
code,
|
|
3652
3649
|
/* @__PURE__ */ jsx(VisuallyHidden, { children: ", " })
|
|
@@ -4043,7 +4040,7 @@ function FormPageSidebarItem({ path }) {
|
|
|
4043
4040
|
"data-selected": boolDataAttr(isSelected),
|
|
4044
4041
|
"data-status": displayStatusToControlStatus(deferredDisplayStatus),
|
|
4045
4042
|
"data-accent": controlStatusToAccent(displayStatusToControlStatus(deferredDisplayStatus)),
|
|
4046
|
-
children: code != null && typeof code !== "boolean" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4043
|
+
children: code != null && typeof code !== "boolean" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
4047
4044
|
visuallyHiddenCodePrefix && /* @__PURE__ */ jsxs(VisuallyHidden, { children: [visuallyHiddenCodePrefix, " "] }),
|
|
4048
4045
|
code,
|
|
4049
4046
|
/* @__PURE__ */ jsx(VisuallyHidden, { children: ", " })
|
|
@@ -4559,7 +4556,7 @@ function IssuesPanelControls({ currentPagePath, nPages, currentPageIndex, curren
|
|
|
4559
4556
|
});
|
|
4560
4557
|
return /* @__PURE__ */ jsxs("div", {
|
|
4561
4558
|
className: prefix("issues-panel__controls"),
|
|
4562
|
-
children: [nPages > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4559
|
+
children: [nPages > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
4563
4560
|
deferredValidating && /* @__PURE__ */ jsx(Spinner, {
|
|
4564
4561
|
...validatingSpinnerProps,
|
|
4565
4562
|
className: cx(prefix("issues-panel__validating-spinner"), validatingSpinnerProps?.className)
|
|
@@ -4657,7 +4654,7 @@ function IssuesPanelMessagesCard({ currentPagePath, currentPageController, issue
|
|
|
4657
4654
|
const [cardEl, setCardEl] = useState(null);
|
|
4658
4655
|
const headerRef = useRef(null);
|
|
4659
4656
|
useScrollPosition(cardEl, useCallback((scrollPosition) => setBoolDataAttr(headerRef.current, "stuck", (scrollPosition?.top ?? 0) > 0), []));
|
|
4660
|
-
const renderIssuesList = (severity) => (severity === "error" ? hasErrors : hasWarnings) && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("h3", {
|
|
4657
|
+
const renderIssuesList = (severity) => (severity === "error" ? hasErrors : hasWarnings) && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("h3", {
|
|
4661
4658
|
className: prefix("issues-panel__issues-list-title"),
|
|
4662
4659
|
children: severity === "error" ? errorsLabel?.() : warningsLabel?.()
|
|
4663
4660
|
}), /* @__PURE__ */ jsx("ul", {
|
|
@@ -4698,7 +4695,7 @@ function IssuesPanelMessagesCard({ currentPagePath, currentPageController, issue
|
|
|
4698
4695
|
...loadingSpinnerProps,
|
|
4699
4696
|
className: cx(prefix("issues-panel__loading-spinner"), loadingSpinnerProps?.className)
|
|
4700
4697
|
}),
|
|
4701
|
-
initialized && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Icon, {
|
|
4698
|
+
initialized && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Icon, {
|
|
4702
4699
|
color: relevantColor,
|
|
4703
4700
|
size: "lg",
|
|
4704
4701
|
...iconProps,
|
|
@@ -4765,7 +4762,7 @@ function IssuesPanelSummaryCard({ issuesTrackerResult, errorsLabel, warningsLabe
|
|
|
4765
4762
|
...loadingSpinnerProps,
|
|
4766
4763
|
className: cx(prefix("issues-panel__loading-spinner"), loadingSpinnerProps?.className)
|
|
4767
4764
|
}),
|
|
4768
|
-
initialized && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Icon, {
|
|
4765
|
+
initialized && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Icon, {
|
|
4769
4766
|
color: relevantColor,
|
|
4770
4767
|
size: "lg",
|
|
4771
4768
|
...iconProps,
|
|
@@ -4775,7 +4772,7 @@ function IssuesPanelSummaryCard({ issuesTrackerResult, errorsLabel, warningsLabe
|
|
|
4775
4772
|
role: "status",
|
|
4776
4773
|
...titleProps,
|
|
4777
4774
|
className: cx(prefix("issues-panel__title"), titleProps?.className),
|
|
4778
|
-
children: [nPages === 0 && noIssuesMessage, nPages > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4775
|
+
children: [nPages === 0 && noIssuesMessage, nPages > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
4779
4776
|
errors > 0 && errorsLabel?.(errors),
|
|
4780
4777
|
errors > 0 && warnings > 0 && ", ",
|
|
4781
4778
|
warnings > 0 && warningsLabel?.(warnings)
|
|
@@ -5207,7 +5204,7 @@ function NumericControl({ path, issueMessages, issuesPanelLabel, displayIssues =
|
|
|
5207
5204
|
disabled: displayDisabled || disabled || inputProps.disabled,
|
|
5208
5205
|
readOnly: displayReadOnly || readOnly || inputProps.readOnly,
|
|
5209
5206
|
status: displayStatusToControlStatus(displayStatusToDisplay),
|
|
5210
|
-
endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5207
|
+
endAdornment: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
5211
5208
|
popoverIssues,
|
|
5212
5209
|
endAdornment,
|
|
5213
5210
|
(DEV || false) && showDebugInfo && /* @__PURE__ */ jsx(DebugInfo, {
|
|
@@ -5459,7 +5456,7 @@ function RadioGroupControl({ path, options, issueMessages, issuesPanelLabel, dis
|
|
|
5459
5456
|
readOnly: displayReadOnly || readOnly || inputProps.readOnly,
|
|
5460
5457
|
status: displayStatusToControlStatus(displayStatusToDisplay),
|
|
5461
5458
|
showClearButton: showClearButton === "auto" ? formattedValue !== clearedFormattedValue : showClearButton,
|
|
5462
|
-
endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5459
|
+
endAdornment: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
5463
5460
|
popoverIssues,
|
|
5464
5461
|
endAdornment,
|
|
5465
5462
|
(DEV || false) && showDebugInfo && /* @__PURE__ */ jsx(DebugInfo, { path: absolutePath })
|
|
@@ -5832,7 +5829,7 @@ function SelectControl({ path, options: groupedOptions, issueMessages, issuesPan
|
|
|
5832
5829
|
readOnly: displayReadOnly || readOnly || inputProps.readOnly,
|
|
5833
5830
|
status: displayStatusToControlStatus(displayStatusToDisplay),
|
|
5834
5831
|
showClearButton: showClearButton === "auto" ? formattedValue !== clearedFormattedValue : showClearButton,
|
|
5835
|
-
endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5832
|
+
endAdornment: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
5836
5833
|
popoverIssues,
|
|
5837
5834
|
endAdornment,
|
|
5838
5835
|
(DEV || false) && showDebugInfo && /* @__PURE__ */ jsx(DebugInfo, {
|
|
@@ -6019,7 +6016,7 @@ function SelectMultipleControl({ path, options: groupedOptions, issueMessages, i
|
|
|
6019
6016
|
disabled: displayDisabled || disabled || inputProps.disabled,
|
|
6020
6017
|
readOnly: displayReadOnly || readOnly || inputProps.readOnly,
|
|
6021
6018
|
status: displayStatusToControlStatus(displayStatusToDisplay),
|
|
6022
|
-
endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6019
|
+
endAdornment: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
6023
6020
|
popoverIssues,
|
|
6024
6021
|
endAdornment,
|
|
6025
6022
|
(DEV || false) && showDebugInfo && /* @__PURE__ */ jsx(DebugInfo, {
|
|
@@ -6202,7 +6199,7 @@ function SubmitAction({ onSubmit, onInvalidSubmit, onSuccessfulSubmit, onFailedS
|
|
|
6202
6199
|
container: formAppEl,
|
|
6203
6200
|
...dialogContentProps?.portalProps
|
|
6204
6201
|
},
|
|
6205
|
-
children: submissionInfo && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6202
|
+
children: submissionInfo && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
6206
6203
|
/* @__PURE__ */ jsx(AlertDialogHeader, {
|
|
6207
6204
|
...dialogHeaderProps,
|
|
6208
6205
|
children: /* @__PURE__ */ jsx(AlertDialogTitle, {
|
|
@@ -6871,7 +6868,7 @@ function TableControlContent({ emptyMessage, scrollableProps, ...otherProps }) {
|
|
|
6871
6868
|
const { initialized, exists, touched } = controller.getState();
|
|
6872
6869
|
if (initialized && exists && !touched) controller.setTouched();
|
|
6873
6870
|
}, [controller]);
|
|
6874
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [(DEV || false) && debug && /* @__PURE__ */ jsx(DebugInfo, {
|
|
6871
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [(DEV || false) && debug && /* @__PURE__ */ jsx(DebugInfo, {
|
|
6875
6872
|
path: absolutePath,
|
|
6876
6873
|
"data-prefer-right-alignment": ""
|
|
6877
6874
|
}), /* @__PURE__ */ jsx(DataTableContent, {
|
|
@@ -6984,7 +6981,7 @@ function TextControl({ path, issueMessages, issuesPanelLabel, displayIssues = tr
|
|
|
6984
6981
|
disabled: displayDisabled || disabled || inputProps.disabled,
|
|
6985
6982
|
readOnly: displayReadOnly || readOnly || inputProps.readOnly,
|
|
6986
6983
|
status: displayStatusToControlStatus(displayStatusToDisplay),
|
|
6987
|
-
endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6984
|
+
endAdornment: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
6988
6985
|
popoverIssues,
|
|
6989
6986
|
endAdornment,
|
|
6990
6987
|
(DEV || false) && showDebugInfo && /* @__PURE__ */ jsx(DebugInfo, {
|
|
@@ -7060,6 +7057,6 @@ function ValidateAction({ label, keybinds, showWhenReadOnly, loading, disabled,
|
|
|
7060
7057
|
});
|
|
7061
7058
|
}
|
|
7062
7059
|
//#endregion
|
|
7063
|
-
export { ActivePathContext, ActivePathProvider, Annex, AnnexRegistrar, Annexes, AnnexesManager, CheckboxControl, CheckboxGroupControl, CheckboxGroupControlItem, ControlField, DEFAULT_FIRST_ISSUE_KEYBINDS, DEFAULT_FOCUS_KEYBINDS, DEFAULT_LAST_ISSUE_KEYBINDS, DEFAULT_LOAD_KEYBINDS, DEFAULT_NEXT_ISSUE_KEYBINDS, DEFAULT_PREVIOUS_ISSUE_KEYBINDS, DEFAULT_PRINT_KEYBINDS, DEFAULT_SAVE_AS_KEYBINDS, DEFAULT_SAVE_KEYBINDS, DEFAULT_SUBMIT_KEYBINDS, DEFAULT_VALIDATE_KEYBINDS, DateControl, DateRangeControl, DebugInfo, DebugInfoControlAddonTrigger, FileControl, FormApp, FormAppIssueMessages, FormAppStatus, FormPage, FormPageRegistrar, FormPages, FormPagesNavigation, FormStep, FormStepContent, FormStepList, FormStepRegistrar, FormStepper, FormStepperFinishTrigger, FormStepperNextTrigger, FormStepperPreviousTrigger, IssueMessages, IssuesAlert, IssuesPanel, IssuesPopover, LoadAction, LocalizationContext, LocalizationProvider, NumericControl, PathLink, PrefixSuffixContext, PrefixSuffixProvider, PrintAction, RadioGroupControl, RadioGroupControlItem, RepetitiveAnnexRegistrar, ResetOnChange, SaveAction, SelectControl, SelectControlItem, SelectControlItemGroup, SelectMultipleControl, SelectMultipleControlItem, SelectMultipleControlItemGroup, SubmitAction, TableControl, TableControlActionsColumn, TableControlAddRowTrigger, TableControlCellRenderer, TableControlColumn, TableControlColumnGroup, TableControlColumns, TableControlContent, TableControlIndexColumn, TableControlPagination, TableControlRemoveRowTrigger, TableControlRowsPerPage, TextControl, TopBar, TopBarActions, TopBarActionsSecondary, ValidateAction, displayStatusToColor, displayStatusToControlStatus,
|
|
7060
|
+
export { ActivePathContext, ActivePathProvider, Annex, AnnexRegistrar, Annexes, AnnexesManager, CheckboxControl, CheckboxGroupControl, CheckboxGroupControlItem, ControlField, DEFAULT_FIRST_ISSUE_KEYBINDS, DEFAULT_FOCUS_KEYBINDS, DEFAULT_LAST_ISSUE_KEYBINDS, DEFAULT_LOAD_KEYBINDS, DEFAULT_NEXT_ISSUE_KEYBINDS, DEFAULT_PREVIOUS_ISSUE_KEYBINDS, DEFAULT_PRINT_KEYBINDS, DEFAULT_SAVE_AS_KEYBINDS, DEFAULT_SAVE_KEYBINDS, DEFAULT_SUBMIT_KEYBINDS, DEFAULT_VALIDATE_KEYBINDS, DateControl, DateRangeControl, DebugInfo, DebugInfoControlAddonTrigger, FileControl, FormApp, FormAppIssueMessages, FormAppStatus, FormPage, FormPageRegistrar, FormPages, FormPagesNavigation, FormStep, FormStepContent, FormStepList, FormStepRegistrar, FormStepper, FormStepperFinishTrigger, FormStepperNextTrigger, FormStepperPreviousTrigger, IssueMessages, IssuesAlert, IssuesPanel, IssuesPopover, LoadAction, LocalizationContext, LocalizationProvider, NumericControl, PathLink, PrefixSuffixContext, PrefixSuffixProvider, PrintAction, RadioGroupControl, RadioGroupControlItem, RepetitiveAnnexRegistrar, ResetOnChange, SaveAction, SelectControl, SelectControlItem, SelectControlItemGroup, SelectMultipleControl, SelectMultipleControlItem, SelectMultipleControlItemGroup, SubmitAction, TableControl, TableControlActionsColumn, TableControlAddRowTrigger, TableControlCellRenderer, TableControlColumn, TableControlColumnGroup, TableControlColumns, TableControlContent, TableControlIndexColumn, TableControlPagination, TableControlRemoveRowTrigger, TableControlRowsPerPage, TextControl, TopBar, TopBarActions, TopBarActionsSecondary, ValidateAction, displayStatusToColor, displayStatusToControlStatus, setDefaultPrefixSuffix, tableControlActionsColumn, tableControlIndexColumn, useActiveIssuesPanelBreadcrumb, useActivePathContext, useControlIssues, useDisplayIssueCodesInIssueMessages, useFocus, useFormAppElement, useFormInDebugMode, useFormIsDisabled, useFormIsLoading, useFormIsReadOnly, useFormIsSaving, useFormIsValidating, useFormLoader, useFormSaver, useFormTitle, useFormValidator, useIsInControlField, useIsRegistered, useIssuesDisplayMode, useLocale, useOnPathFocus, usePrefix, useRegisterControl, useRegisterController, useRegisterControllerWithinControlField, useRegisterIssueMessages, useRegisterLabel, useRegisteredIssueMessage, useResetFocus, useResetOnChange, useResetOnChangeContext, useSetBottomPanelHeight, useSetLeftSidebarWidth, useSetTopBarHeight, useStartIssuesNavigation, useTableControlApiRef, useTopBarElement };
|
|
7064
7061
|
|
|
7065
7062
|
//# sourceMappingURL=ostack-ui-kform.js.map
|