@ostack.tech/ui-kform 0.10.4 → 0.11.0

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.
Files changed (30) hide show
  1. package/dist/chunks/{en-B9UXLueo.js → en-3JcwFYXc.js} +3 -3
  2. package/dist/chunks/{en-B9UXLueo.js.map → en-3JcwFYXc.js.map} +1 -1
  3. package/dist/locales/en-GB.js +1 -1
  4. package/dist/locales/en-US.js +1 -1
  5. package/dist/locales/fr-FR.js +2 -2
  6. package/dist/locales/fr-FR.js.map +1 -1
  7. package/dist/locales/pt-PT.js +2 -2
  8. package/dist/locales/pt-PT.js.map +1 -1
  9. package/dist/ostack-ui-kform.css +11 -8
  10. package/dist/ostack-ui-kform.js +97 -54
  11. package/dist/ostack-ui-kform.js.map +1 -1
  12. package/dist/types/components/Annexes/Annex.d.ts +3 -3
  13. package/dist/types/components/FormApp/FormApp.d.ts +8 -8
  14. package/dist/types/components/FormPages/FormPage.d.ts +3 -3
  15. package/dist/types/components/FormStepper/FormStep.d.ts +43 -6
  16. package/dist/types/components/FormStepper/FormStepButton.d.ts +8 -0
  17. package/dist/types/components/FormStepper/FormStepList.d.ts +1 -1
  18. package/dist/types/components/FormStepper/FormStepper.d.ts +1 -1
  19. package/dist/types/components/FormStepper/FormStepperFinishTrigger.d.ts +2 -0
  20. package/dist/types/components/FormStepper/FormStepperNextTrigger.d.ts +2 -0
  21. package/dist/types/components/FormStepper/FormStepperPreviousTrigger.d.ts +2 -0
  22. package/dist/types/components/FormStepper/FormStepperState.d.ts +3 -0
  23. package/dist/types/components/FormStepper/index.d.ts +4 -1
  24. package/dist/types/components/TableControl/TableControlAddRowTrigger.d.ts +24 -10
  25. package/dist/types/components/TableControl/TableControlRemoveRowTrigger.d.ts +21 -11
  26. package/dist/types/providers/LocalizationProvider/LocalizationObject.d.ts +3 -3
  27. package/package.json +2 -2
  28. package/scss/components/Annexes/_Annexes.scss +5 -1
  29. package/scss/components/FormPages/_FormPages.scss +2 -1
  30. package/dist/types/components/FormStepper/FormStepContent.d.ts +0 -20
@@ -116,10 +116,10 @@ const en = {
116
116
  errorMessage: "Something went wrong while submitting the form. Please try again later."
117
117
  },
118
118
  TableControlAddRowTrigger: {
119
- defaultButtonText: "Add row"
119
+ label: "Add row"
120
120
  },
121
121
  TableControlRemoveRowTrigger: {
122
- defaultButtonLabel: "Remove row",
122
+ label: "Remove row",
123
123
  confirmDialogTitle: "Remove row",
124
124
  confirmDialogMessage: (index) => /* @__PURE__ */ jsxs(Fragment, { children: [
125
125
  "Are you sure you want to remove line #",
@@ -135,4 +135,4 @@ const en = {
135
135
  export {
136
136
  en as e
137
137
  };
138
- //# sourceMappingURL=en-B9UXLueo.js.map
138
+ //# sourceMappingURL=en-3JcwFYXc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"en-B9UXLueo.js","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 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}&nbsp;{errors === 1 ? \"Error\" : \"Errors\"}\n </>\n ),\n warningsLabel: (warnings) =>\n warnings === undefined ? (\n \"Warnings\"\n ) : (\n <>\n {warnings}&nbsp;{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 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 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 defaultButtonText: \"Add row\",\n },\n TableControlRemoveRowTrigger: {\n defaultButtonLabel: \"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 ValidateAction: {\n label: \"Validate\",\n },\n};\n"],"names":[],"mappings":";AAGO,MAAM,KAA6D;AAAA,EACxE,gBAAgB;AAAA,IACd,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,iBA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;AAAA,EAErB,8BAA8B;AAAA,IAC5B,oBAAoB;AAAA,IACpB,oBAAoB;AAAA,IACpB,sBAAsB,CAAC,UACrB,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MAAuC,QAAQ;AAAA,MAAE;AAAA,IAAA,GAAC;AAAA,IAEtD,qBAAqB;AAAA,EAAA;AAAA,EAEvB,gBAAgB;AAAA,IACd,OAAO;AAAA,EAAA;AAEX;"}
1
+ {"version":3,"file":"en-3JcwFYXc.js","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 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}&nbsp;{errors === 1 ? \"Error\" : \"Errors\"}\n </>\n ),\n warningsLabel: (warnings) =>\n warnings === undefined ? (\n \"Warnings\"\n ) : (\n <>\n {warnings}&nbsp;{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 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 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 ValidateAction: {\n label: \"Validate\",\n },\n};\n"],"names":[],"mappings":";AAGO,MAAM,KAA6D;AAAA,EACxE,gBAAgB;AAAA,IACd,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,wBAAwB;AAAA,IACxB,yBAAyB;AAAA,IACzB,+BAA+B;AAAA,IAC/B,iCAAiC,CAAC,cAChC,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MAAuC;AAAA,MAAU;AAAA,IAAA,GAAC;AAAA,IAEtD,gCAAgC;AAAA,EAAA;AAAA,EAEl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d,OAAO;AAAA,EAAA;AAEX;"}
@@ -1,5 +1,5 @@
1
1
  import { enGB } from "@ostack.tech/ui";
2
- import { e as en } from "../chunks/en-B9UXLueo.js";
2
+ import { e as en } from "../chunks/en-3JcwFYXc.js";
3
3
  const locale = {
4
4
  baseLocale: enGB,
5
5
  ...en
@@ -1,5 +1,5 @@
1
1
  import { enUS } from "@ostack.tech/ui";
2
- import { e as en } from "../chunks/en-B9UXLueo.js";
2
+ import { e as en } from "../chunks/en-3JcwFYXc.js";
3
3
  const locale = {
4
4
  baseLocale: enUS,
5
5
  ...en
@@ -118,10 +118,10 @@ const locale = {
118
118
  errorMessage: "Une erreur s’est produite lors du dépôt de la déclaration. Veuillez réessayer plus tard."
119
119
  },
120
120
  TableControlAddRowTrigger: {
121
- defaultButtonText: "Ajouter une ligne"
121
+ label: "Ajouter une ligne"
122
122
  },
123
123
  TableControlRemoveRowTrigger: {
124
- defaultButtonLabel: "Supprimer une ligne",
124
+ label: "Supprimer une ligne",
125
125
  confirmDialogTitle: "Supprimer une ligne",
126
126
  confirmDialogMessage: (index) => /* @__PURE__ */ jsxs(Fragment, { children: [
127
127
  "Êtes-vous sûr de vouloir supprimer la ligne #",
@@ -1 +1 @@
1
- {"version":3,"file":"fr-FR.js","sources":["../../src/locales/fr-FR.tsx"],"sourcesContent":["import { frFR as uiFrFR } from \"@ostack.tech/ui\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\n\n/** `fr-FR` locale. */\nexport const locale: LocalizationObject = {\n baseLocale: uiFrFR,\n AnnexesManager: {\n \"aria-label\": \"Annexes\",\n menuButtonText: \"Annexes\",\n menuButtonLabel: \"Gestionnaire d’annexes\",\n addAnnexText: \"Ajouter une annexe\",\n removeAnnexButtonLabel: \"Supprimer une annexe\",\n removeAnnexKeyboardHint:\n \"Appuyez sur «\\u202FSupprimer\\u202F» pour supprimer la annexe.\",\n removeAnnexConfirmDialogTitle: \"Supprimer la annexe\",\n removeAnnexConfirmDialogMessage: (annexName) => (\n <>Êtes-vous sûr de vouloir supprimer la annexe {annexName}&#x202F;?</>\n ),\n removeAnnexConfirmDialogOkText: \"Supprimer\",\n },\n DateRangeControl: {\n issuesPanelStartLabelSuffix: \" (date de début)\",\n issuesPanelEndLabelSuffix: \" (date de fin)\",\n },\n FileControl: {\n clearDescription: \"Appuyez sur Retour arrière ou Suppr pour effacer.\",\n viewFileButtonLabel: \"Afficher le fichier\",\n downloadFileButtonLabel: \"Télécharger le fichier\",\n fallbackText: (\n <>\n Le fichier sélectionné ne peut pas être affiché dans ce navigateur.\n <br />\n Veuillez utiliser le bouton ci-dessus pour télécharger le fichier. Vous\n pourrez ensuite l’ouvrir à l’aide d’une application externe.\n </>\n ),\n },\n FormApp: {\n formTitle: \"Formulaire\",\n issueMessages: {\n \"/**\": {\n valueMissing: \"Champ obligatoire.\",\n valueDisallowed: \"Valeur indiquée non autorisée.\",\n rangeUnderflow: \"Valeur inférieure au minimum autorisé.\",\n rangeOverflow: \"Valeur supérieure au maximum autorisé.\",\n lengthMismatch: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" &&\n typeof restrictions.minLength === \"number\" &&\n restrictions.minLength === restrictions.maxLength\n ? `La valeur doit comporter ${restrictions.minLength} ${\n restrictions.minLength === 1 ? \"caractère\" : \"caractères\"\n }.`\n : \"La valeur a une longueur invalide.\",\n tooShort: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.minLength === \"number\"\n ? `La valeur ne doit pas être inférieure à ${restrictions.minLength} ${\n restrictions.minLength === 1 ? \"caractère\" : \"caractères\"\n }.`\n : \"Valeur trop courte.\",\n tooLong: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.maxLength === \"number\"\n ? `La valeur ne doit pas dépasser ${restrictions.maxLength} ${\n restrictions.maxLength === 1 ? \"caractère\" : \"caractères\"\n }.`\n : \"Valeur trop longue.\",\n sizeMismatch: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.minSize === \"number\" &&\n restrictions.minSize === restrictions.maxSize\n ? `Le champ doit contenir ${restrictions.minSize} ${\n restrictions.minSize === 1 ? \"élément\" : \"éléments\"\n }.`\n : \"Le champ contient un nombre d’éléments non valide.\",\n tooSmall: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.minLength === \"number\"\n ? `Le champ ne doit pas contenir moins de ${restrictions.minLength} ${\n restrictions.minLength === 1 ? \"élément\" : \"éléments\"\n }.`\n : \"Le nombre d’éléments du champ n’est pas suffisant.\",\n tooLarge: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.maxLength === \"number\"\n ? `Le champ ne doit pas contenir plus de ${restrictions.maxLength} ${\n restrictions.maxLength === 1 ? \"élément\" : \"éléments\"\n }.`\n : \"Le nombre d’éléments du champ dépasse la limite autorisée.\",\n scaleMismatch: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.scale === \"number\"\n ? `La valeur doit comporter ${restrictions.scale} ${\n restrictions.scale === 1 ? \"décimale\" : \"décimales\"\n }.`\n : \"La valeur comporte un nombre invalide de décimales.\",\n patternMismatch: \"La valeur ne respecte pas le modèle requis.\",\n emailPatternMismatch: \"Adresse e-mail non valide.\",\n fileTypeMismatch: (_data, { typeInfo: { restrictions } }) =>\n Array.isArray(restrictions.acceptedFileTypes)\n ? `Seuls les types de fichiers suivants sont autorisés\\u202F: ${restrictions.acceptedFileTypes.join(\", \")}.`\n : \"Le type de fichier indiqué n’est pas autorisé.\",\n itemsRepeated: ({ firstIndex, secondIndex }) =>\n firstIndex != null && secondIndex != null\n ? `Les éléments ${+firstIndex + 1} et ${+secondIndex + 1} sont répétés.`\n : \"Le champ contient des éléments répétés.\",\n computedValueMismatch: \"La valeur diffère de la valeur calculée.\",\n validationFailed: (data) =>\n process.env.NODE_ENV !== \"production\"\n ? data.exception\n : \"Une erreur s’est produite lors de la validation de ce champ. \" +\n \"Veuillez réessayer plus tard.\",\n },\n },\n confirmUnloadMessage:\n \"Êtes-tu sûr de vouloir quitter cette page\\u202F? Les modifications que tu \" +\n \"as apportées au formulaire n’ont peut-être pas été enregistrées.\",\n },\n FormPagesNavigation: {\n \"aria-label\": \"Pages\",\n },\n FormPage: {\n helperButtonLabel: \"Afficher l’aide\",\n visuallyHiddenCodePrefix: \"Page\",\n },\n IssueMessages: {\n visuallyHiddenErrorCodePrefix: \"Code d'erreur,\",\n visuallyHiddenWarningCodePrefix: \"Code d'alerte,\",\n unknownErrorMessage: \"Champ avec erreur inconnue.\",\n unknownWarningMessage: \"Champ avec alerte inconnue.\",\n },\n IssuesPanel: {\n errorsLabel: (errors) =>\n errors === undefined ? (\n \"Erreurs\"\n ) : (\n <>\n {errors}&nbsp;{errors === 1 ? \"Erreur\" : \"Erreurs\"}\n </>\n ),\n warningsLabel: (warnings) =>\n warnings === undefined ? (\n \"Alertes\"\n ) : (\n <>\n {warnings}&nbsp;{warnings === 1 ? \"Alerte\" : \"Alertes\"}\n </>\n ),\n focusButtonLabel: \"Focaliser le champ\",\n previousIssueButtonLabel: \"Champ précédent avec problèmes\",\n nextIssueButtonLabel: \"Champ suivant avec problèmes\",\n firstIssueButtonLabel: \"Premier champ avec problèmes\",\n lastIssueButtonLabel: \"Dernier champ avec problèmes\",\n paginationLabel: (currentPage, totalPages) =>\n `Champ avec problèmes ${currentPage} sur ${totalPages}.`,\n noIssuesMessage: \"Aucun problème à signaler.\",\n resolvedTitle: \"Résolu\",\n resolvedMessage:\n \"Les problèmes ont été résolus. \" +\n \"Veuillez passer au champ suivant avec des problèmes.\",\n },\n IssuesPopover: {\n label: \"Afficher les problèmes\",\n },\n LoadAction: {\n label: \"Ouvrir\",\n successMessage: (file) =>\n `Fichier «\\u202F${file.name}\\u202F» chargé avec succès.`,\n errorMessage: (file) =>\n file\n ? `Impossible de charger le fichier «\\u202F${file.name}\\u202F». ` +\n \"Veuillez confirmer que le fichier indiqué est un fichier valide \" +\n \"du formulaire.\"\n : \"Impossible d’ouvrir le fichier indiqué. Veuillez vérifier que \" +\n \"vous disposez des autorisations nécessaires pour effectuer cette \" +\n \"opération.\",\n },\n PrintAction: {\n label: \"Imprimer\",\n },\n SaveAction: {\n label: \"Enregistrer\",\n saveOptionsLabel: \"Options d’enregistrement\",\n saveAsLabel: \"Enregistrer sous…\",\n successMessage: (fileHandle) =>\n `Fichier «\\u202F${fileHandle.name}\\u202F» enregistré avec succès.`,\n errorMessage: (fileHandle) =>\n fileHandle\n ? `Impossible d’enregistrer le fichier «\\u202F${fileHandle.name}\\u202F». ` +\n \"Veuillez vérifier que vous disposez des autorisations nécessaires \" +\n \"pour effectuer cette opération.\"\n : \"Impossible d’enregistrer le fichier indiqué. Veuillez vérifier \" +\n \"que vous disposez des autorisations nécessaires pour effectuer \" +\n \"cette opération.\",\n },\n SubmitAction: {\n label: \"Déposer\",\n dialogTitle: \"Déposer la déclaration\",\n dialogDescription:\n \"Veuillez confirmer que vous souhaitez poursuivre le dépôt de la \" +\n \"déclaration.\",\n dialogCancelText: \"Annuler\",\n confirmWarningsCheckboxLabel:\n \"Je déclare avoir pris connaissance des alertes générées par les \" +\n \"données de cette déclaration et souhaiter continuer sans modifier les \" +\n \"données correspondantes.\",\n successMessage: \"Déclaration déposée avec succès.\",\n errorMessage:\n \"Une erreur s’est produite lors du dépôt de la déclaration. Veuillez \" +\n \"réessayer plus tard.\",\n },\n TableControlAddRowTrigger: {\n defaultButtonText: \"Ajouter une ligne\",\n },\n TableControlRemoveRowTrigger: {\n defaultButtonLabel: \"Supprimer une ligne\",\n confirmDialogTitle: \"Supprimer une ligne\",\n confirmDialogMessage: (index) => (\n <>Êtes-vous sûr de vouloir supprimer la ligne #{index + 1}&#x202F;?</>\n ),\n confirmDialogOkText: \"Supprimer\",\n },\n ValidateAction: {\n label: \"Valider\",\n },\n};\n"],"names":["uiFrFR"],"mappings":";;AAKO,MAAM,SAA6B;AAAA,EACxC,YAAYA;AAAAA,EACZ,gBAAgB;AAAA,IACd,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,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AA;AAAA,EAErB,8BAA8B;AAAA,IAC5B,oBAAoB;AAAA,IACpB,oBAAoB;AAAA,IACpB,sBAAsB,CAAC,UACrB,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MAA8C,QAAQ;AAAA,MAAE;AAAA,IAAA,GAAS;AAAA,IAErE,qBAAqB;AAAA,EAAA;AAAA,EAEvB,gBAAgB;AAAA,IACd,OAAO;AAAA,EAAA;AAEX;"}
1
+ {"version":3,"file":"fr-FR.js","sources":["../../src/locales/fr-FR.tsx"],"sourcesContent":["import { frFR as uiFrFR } from \"@ostack.tech/ui\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\n\n/** `fr-FR` locale. */\nexport const locale: LocalizationObject = {\n baseLocale: uiFrFR,\n AnnexesManager: {\n \"aria-label\": \"Annexes\",\n menuButtonText: \"Annexes\",\n menuButtonLabel: \"Gestionnaire d’annexes\",\n addAnnexText: \"Ajouter une annexe\",\n removeAnnexButtonLabel: \"Supprimer une annexe\",\n removeAnnexKeyboardHint:\n \"Appuyez sur «\\u202FSupprimer\\u202F» pour supprimer la annexe.\",\n removeAnnexConfirmDialogTitle: \"Supprimer la annexe\",\n removeAnnexConfirmDialogMessage: (annexName) => (\n <>Êtes-vous sûr de vouloir supprimer la annexe {annexName}&#x202F;?</>\n ),\n removeAnnexConfirmDialogOkText: \"Supprimer\",\n },\n DateRangeControl: {\n issuesPanelStartLabelSuffix: \" (date de début)\",\n issuesPanelEndLabelSuffix: \" (date de fin)\",\n },\n FileControl: {\n clearDescription: \"Appuyez sur Retour arrière ou Suppr pour effacer.\",\n viewFileButtonLabel: \"Afficher le fichier\",\n downloadFileButtonLabel: \"Télécharger le fichier\",\n fallbackText: (\n <>\n Le fichier sélectionné ne peut pas être affiché dans ce navigateur.\n <br />\n Veuillez utiliser le bouton ci-dessus pour télécharger le fichier. Vous\n pourrez ensuite l’ouvrir à l’aide d’une application externe.\n </>\n ),\n },\n FormApp: {\n formTitle: \"Formulaire\",\n issueMessages: {\n \"/**\": {\n valueMissing: \"Champ obligatoire.\",\n valueDisallowed: \"Valeur indiquée non autorisée.\",\n rangeUnderflow: \"Valeur inférieure au minimum autorisé.\",\n rangeOverflow: \"Valeur supérieure au maximum autorisé.\",\n lengthMismatch: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" &&\n typeof restrictions.minLength === \"number\" &&\n restrictions.minLength === restrictions.maxLength\n ? `La valeur doit comporter ${restrictions.minLength} ${\n restrictions.minLength === 1 ? \"caractère\" : \"caractères\"\n }.`\n : \"La valeur a une longueur invalide.\",\n tooShort: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.minLength === \"number\"\n ? `La valeur ne doit pas être inférieure à ${restrictions.minLength} ${\n restrictions.minLength === 1 ? \"caractère\" : \"caractères\"\n }.`\n : \"Valeur trop courte.\",\n tooLong: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.maxLength === \"number\"\n ? `La valeur ne doit pas dépasser ${restrictions.maxLength} ${\n restrictions.maxLength === 1 ? \"caractère\" : \"caractères\"\n }.`\n : \"Valeur trop longue.\",\n sizeMismatch: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.minSize === \"number\" &&\n restrictions.minSize === restrictions.maxSize\n ? `Le champ doit contenir ${restrictions.minSize} ${\n restrictions.minSize === 1 ? \"élément\" : \"éléments\"\n }.`\n : \"Le champ contient un nombre d’éléments non valide.\",\n tooSmall: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.minLength === \"number\"\n ? `Le champ ne doit pas contenir moins de ${restrictions.minLength} ${\n restrictions.minLength === 1 ? \"élément\" : \"éléments\"\n }.`\n : \"Le nombre d’éléments du champ n’est pas suffisant.\",\n tooLarge: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.maxLength === \"number\"\n ? `Le champ ne doit pas contenir plus de ${restrictions.maxLength} ${\n restrictions.maxLength === 1 ? \"élément\" : \"éléments\"\n }.`\n : \"Le nombre d’éléments du champ dépasse la limite autorisée.\",\n scaleMismatch: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.scale === \"number\"\n ? `La valeur doit comporter ${restrictions.scale} ${\n restrictions.scale === 1 ? \"décimale\" : \"décimales\"\n }.`\n : \"La valeur comporte un nombre invalide de décimales.\",\n patternMismatch: \"La valeur ne respecte pas le modèle requis.\",\n emailPatternMismatch: \"Adresse e-mail non valide.\",\n fileTypeMismatch: (_data, { typeInfo: { restrictions } }) =>\n Array.isArray(restrictions.acceptedFileTypes)\n ? `Seuls les types de fichiers suivants sont autorisés\\u202F: ${restrictions.acceptedFileTypes.join(\", \")}.`\n : \"Le type de fichier indiqué n’est pas autorisé.\",\n itemsRepeated: ({ firstIndex, secondIndex }) =>\n firstIndex != null && secondIndex != null\n ? `Les éléments ${+firstIndex + 1} et ${+secondIndex + 1} sont répétés.`\n : \"Le champ contient des éléments répétés.\",\n computedValueMismatch: \"La valeur diffère de la valeur calculée.\",\n validationFailed: (data) =>\n process.env.NODE_ENV !== \"production\"\n ? data.exception\n : \"Une erreur s’est produite lors de la validation de ce champ. \" +\n \"Veuillez réessayer plus tard.\",\n },\n },\n confirmUnloadMessage:\n \"Êtes-tu sûr de vouloir quitter cette page\\u202F? Les modifications que tu \" +\n \"as apportées au formulaire n’ont peut-être pas été enregistrées.\",\n },\n FormPagesNavigation: {\n \"aria-label\": \"Pages\",\n },\n FormPage: {\n helperButtonLabel: \"Afficher l’aide\",\n visuallyHiddenCodePrefix: \"Page\",\n },\n IssueMessages: {\n visuallyHiddenErrorCodePrefix: \"Code d'erreur,\",\n visuallyHiddenWarningCodePrefix: \"Code d'alerte,\",\n unknownErrorMessage: \"Champ avec erreur inconnue.\",\n unknownWarningMessage: \"Champ avec alerte inconnue.\",\n },\n IssuesPanel: {\n errorsLabel: (errors) =>\n errors === undefined ? (\n \"Erreurs\"\n ) : (\n <>\n {errors}&nbsp;{errors === 1 ? \"Erreur\" : \"Erreurs\"}\n </>\n ),\n warningsLabel: (warnings) =>\n warnings === undefined ? (\n \"Alertes\"\n ) : (\n <>\n {warnings}&nbsp;{warnings === 1 ? \"Alerte\" : \"Alertes\"}\n </>\n ),\n focusButtonLabel: \"Focaliser le champ\",\n previousIssueButtonLabel: \"Champ précédent avec problèmes\",\n nextIssueButtonLabel: \"Champ suivant avec problèmes\",\n firstIssueButtonLabel: \"Premier champ avec problèmes\",\n lastIssueButtonLabel: \"Dernier champ avec problèmes\",\n paginationLabel: (currentPage, totalPages) =>\n `Champ avec problèmes ${currentPage} sur ${totalPages}.`,\n noIssuesMessage: \"Aucun problème à signaler.\",\n resolvedTitle: \"Résolu\",\n resolvedMessage:\n \"Les problèmes ont été résolus. \" +\n \"Veuillez passer au champ suivant avec des problèmes.\",\n },\n IssuesPopover: {\n label: \"Afficher les problèmes\",\n },\n LoadAction: {\n label: \"Ouvrir\",\n successMessage: (file) =>\n `Fichier «\\u202F${file.name}\\u202F» chargé avec succès.`,\n errorMessage: (file) =>\n file\n ? `Impossible de charger le fichier «\\u202F${file.name}\\u202F». ` +\n \"Veuillez confirmer que le fichier indiqué est un fichier valide \" +\n \"du formulaire.\"\n : \"Impossible d’ouvrir le fichier indiqué. Veuillez vérifier que \" +\n \"vous disposez des autorisations nécessaires pour effectuer cette \" +\n \"opération.\",\n },\n PrintAction: {\n label: \"Imprimer\",\n },\n SaveAction: {\n label: \"Enregistrer\",\n saveOptionsLabel: \"Options d’enregistrement\",\n saveAsLabel: \"Enregistrer sous…\",\n successMessage: (fileHandle) =>\n `Fichier «\\u202F${fileHandle.name}\\u202F» enregistré avec succès.`,\n errorMessage: (fileHandle) =>\n fileHandle\n ? `Impossible d’enregistrer le fichier «\\u202F${fileHandle.name}\\u202F». ` +\n \"Veuillez vérifier que vous disposez des autorisations nécessaires \" +\n \"pour effectuer cette opération.\"\n : \"Impossible d’enregistrer le fichier indiqué. Veuillez vérifier \" +\n \"que vous disposez des autorisations nécessaires pour effectuer \" +\n \"cette opération.\",\n },\n SubmitAction: {\n label: \"Déposer\",\n dialogTitle: \"Déposer la déclaration\",\n dialogDescription:\n \"Veuillez confirmer que vous souhaitez poursuivre le dépôt de la \" +\n \"déclaration.\",\n dialogCancelText: \"Annuler\",\n confirmWarningsCheckboxLabel:\n \"Je déclare avoir pris connaissance des alertes générées par les \" +\n \"données de cette déclaration et souhaiter continuer sans modifier les \" +\n \"données correspondantes.\",\n successMessage: \"Déclaration déposée avec succès.\",\n errorMessage:\n \"Une erreur s’est produite lors du dépôt de la déclaration. Veuillez \" +\n \"réessayer plus tard.\",\n },\n TableControlAddRowTrigger: {\n label: \"Ajouter une ligne\",\n },\n TableControlRemoveRowTrigger: {\n label: \"Supprimer une ligne\",\n confirmDialogTitle: \"Supprimer une ligne\",\n confirmDialogMessage: (index) => (\n <>Êtes-vous sûr de vouloir supprimer la ligne #{index + 1}&#x202F;?</>\n ),\n confirmDialogOkText: \"Supprimer\",\n },\n ValidateAction: {\n label: \"Valider\",\n },\n};\n"],"names":["uiFrFR"],"mappings":";;AAKO,MAAM,SAA6B;AAAA,EACxC,YAAYA;AAAAA,EACZ,gBAAgB;AAAA,IACd,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,wBAAwB;AAAA,IACxB,yBACE;AAAA,IACF,+BAA+B;AAAA,IAC/B,iCAAiC,CAAC,cAChC,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MAA8C;AAAA,MAAU;AAAA,IAAA,GAAS;AAAA,IAErE,gCAAgC;AAAA,EAAA;AAAA,EAElC,kBAAkB;AAAA,IAChB,6BAA6B;AAAA,IAC7B,2BAA2B;AAAA,EAAA;AAAA,EAE7B,aAAa;AAAA,IACX,kBAAkB;AAAA,IAClB,qBAAqB;AAAA,IACrB,yBAAyB;AAAA,IACzB,cACE,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,0BAEC,MAAA,EAAG;AAAA,MAAE;AAAA,IAAA,EAAA,CAGR;AAAA,E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W,QAAQ,UAAU;AAAA,IACvD,iBAAiB;AAAA,IACjB,eAAe;AAAA,IACf,iBACE;AAAA,EAAA;AAAA,EAGJ,eAAe;AAAA,IACb,OAAO;AAAA,EAAA;AAAA,EAET,YAAY;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB,CAAC,SACf,aAAkB,KAAK,IAAI;AAAA,IAC7B,cAAc,CAAC,SACb,OACI,sCAA2C,KAAK,IAAI,uFAGpD;AAAA,EAAA;AAAA,EAIR,aAAa;AAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,YAAY;AAAA,IACV,OAAO;AAAA,IACP,kBAAkB;AAAA,IAClB,aAAa;AAAA,IACb,gBAAgB,CAAC,eACf,aAAkB,WAAW,IAAI;AAAA,IACnC,cAAc,CAAC,eACb,aACI,yCAA8C,WAAW,IAAI,0GAG7D;AAAA,EAAA;AAAA,EAIR,cAAc;AAAA,IACZ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,mBACE;AAAA,IAEF,kBAAkB;AAAA,IAClB,8BACE;AAAA,IAGF,gBAAgB;AAAA,IAChB,cACE;AAAA,EAAA;AAAA,EAGJ,2BAA2B;AAAA,IACzB,OAAO;AAAA,EAAA;AAAA,EAET,8BAA8B;AAAA,IAC5B,OAAO;AAAA,IACP,oBAAoB;AAAA,IACpB,sBAAsB,CAAC,UACrB,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MAA8C,QAAQ;AAAA,MAAE;AAAA,IAAA,GAAS;AAAA,IAErE,qBAAqB;AAAA,EAAA;AAAA,EAEvB,gBAAgB;AAAA,IACd,OAAO;AAAA,EAAA;AAEX;"}
@@ -118,10 +118,10 @@ const locale = {
118
118
  errorMessage: "Algo correu mal ao entregar a declaração. Por favor volte a tentar mais tarde."
119
119
  },
120
120
  TableControlAddRowTrigger: {
121
- defaultButtonText: "Adicionar linha"
121
+ label: "Adicionar linha"
122
122
  },
123
123
  TableControlRemoveRowTrigger: {
124
- defaultButtonLabel: "Remover linha",
124
+ label: "Remover linha",
125
125
  confirmDialogTitle: "Remover linha",
126
126
  confirmDialogMessage: (index) => /* @__PURE__ */ jsxs(Fragment, { children: [
127
127
  "Tem a certeza que pretende remover a linha #",
@@ -1 +1 @@
1
- {"version":3,"file":"pt-PT.js","sources":["../../src/locales/pt-PT.tsx"],"sourcesContent":["import { ptPT as uiPtPT } from \"@ostack.tech/ui\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\n\n/** `pt-PT` locale. */\nexport const locale: LocalizationObject = {\n baseLocale: uiPtPT,\n AnnexesManager: {\n \"aria-label\": \"Anexos\",\n menuButtonText: \"Anexos\",\n menuButtonLabel: \"Gestor de anexos\",\n addAnnexText: \"Adicionar anexo\",\n removeAnnexButtonLabel: \"Remover anexo\",\n removeAnnexKeyboardHint: \"Pressione “Delete” para remover o anexo.\",\n removeAnnexConfirmDialogTitle: \"Remover anexo\",\n removeAnnexConfirmDialogMessage: (annexName) => (\n <>Tem a certeza que pretende remover o anexo {annexName}?</>\n ),\n removeAnnexConfirmDialogOkText: \"Remover\",\n },\n DateRangeControl: {\n issuesPanelStartLabelSuffix: \" (data de início)\",\n issuesPanelEndLabelSuffix: \" (data de fim)\",\n },\n FileControl: {\n clearDescription: \"Pressione Backspace ou Delete para limpar.\",\n viewFileButtonLabel: \"Visualizar ficheiro\",\n downloadFileButtonLabel: \"Descarregar ficheiro\",\n fallbackText: (\n <>\n O ficheiro selecionado não pode ser visualizado neste navegador.\n <br />\n Por favor use o botão acima para descarregar o ficheiro. Pode depois\n abri-lo utilizando uma aplicação externa.\n </>\n ),\n },\n FormApp: {\n formTitle: \"Formulário\",\n issueMessages: {\n \"/**\": {\n valueMissing: \"Campo de preenchimento obrigatório.\",\n valueDisallowed: \"Valor indicado não permitido.\",\n rangeUnderflow: \"Valor inferior ao mínimo permitido.\",\n rangeOverflow: \"Valor excede o máximo permitido.\",\n lengthMismatch: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" &&\n typeof restrictions.minLength === \"number\" &&\n restrictions.minLength === restrictions.maxLength\n ? `Valor deve ter ${restrictions.minLength} ${\n restrictions.minLength === 1 ? \"carácter\" : \"caracteres\"\n }.`\n : \"Valor tem comprimento inválido.\",\n tooShort: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.minLength === \"number\"\n ? `Valor não deve ter menos de ${restrictions.minLength} ${\n restrictions.minLength === 1 ? \"caractér\" : \"caracteres\"\n }.`\n : \"Valor demasiado curto.\",\n tooLong: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.maxLength === \"number\"\n ? `Valor não deve ter mais de ${restrictions.maxLength} ${\n restrictions.maxLength === 1 ? \"caractér\" : \"caracteres\"\n }.`\n : \"Valor demasiado longo.\",\n sizeMismatch: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.minSize === \"number\" &&\n restrictions.minSize === restrictions.maxSize\n ? `Campo deve ter ${restrictions.minSize} ${\n restrictions.minSize === 1 ? \"item\" : \"itens\"\n }.`\n : \"Campo tem número inválido de itens.\",\n tooSmall: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.minLength === \"number\"\n ? `Campo não deve ter menos de ${restrictions.minLength} ${\n restrictions.minLength === 1 ? \"item\" : \"itens\"\n }.`\n : \"Número de itens do campo não é suficiente.\",\n tooLarge: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.maxLength === \"number\"\n ? `Campo não deve ter mais de ${restrictions.maxLength} ${\n restrictions.maxLength === 1 ? \"item\" : \"itens\"\n }.`\n : \"Número de itens do campo excede o limite permitido.\",\n scaleMismatch: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.scale === \"number\"\n ? `Valor deve ter ${restrictions.scale} ${\n restrictions.scale === 1 ? \"casa decimal\" : \"casas decimais\"\n }.`\n : \"Valor tem número inválido de casas decimais.\",\n patternMismatch: \"Valor não segue o padrão permitido.\",\n emailPatternMismatch: \"Endereço de correio eletrónico inválido.\",\n fileTypeMismatch: (_data, { typeInfo: { restrictions } }) =>\n Array.isArray(restrictions.acceptedFileTypes)\n ? `Apenas os seguintes tipos de ficheiro são permitidos: ${restrictions.acceptedFileTypes.join(\", \")}.`\n : \"Tipo do ficheiro indicado não é permitido.\",\n itemsRepeated: ({ firstIndex, secondIndex }) =>\n firstIndex != null && secondIndex != null\n ? `Itens ${+firstIndex + 1} e ${+secondIndex + 1} encontram-se repetidos.`\n : \"Campo contém itens repetidos.\",\n computedValueMismatch: \"O valor difere do valor calculado.\",\n validationFailed: (data) =>\n process.env.NODE_ENV !== \"production\"\n ? data.exception\n : \"Algo correu mal ao validar este campo. \" +\n \"Por favor volte a tentar mais tarde.\",\n },\n },\n confirmUnloadMessage:\n \"Tem a certeza que pretende sair da página? Alterações que fez ao \" +\n \"formulário podem não ter sido guardadas.\",\n },\n FormPagesNavigation: {\n \"aria-label\": \"Páginas\",\n },\n FormPage: {\n helperButtonLabel: \"Mostrar ajuda\",\n visuallyHiddenCodePrefix: \"Página\",\n },\n IssueMessages: {\n visuallyHiddenErrorCodePrefix: \"Código de erro,\",\n visuallyHiddenWarningCodePrefix: \"Código de alerta,\",\n unknownErrorMessage: \"Campo com erro desconhecido.\",\n unknownWarningMessage: \"Campo com alerta desconhecido.\",\n },\n IssuesPanel: {\n errorsLabel: (errors) =>\n errors === undefined ? (\n \"Erros\"\n ) : (\n <>\n {errors}&nbsp;{errors === 1 ? \"Erro\" : \"Erros\"}\n </>\n ),\n warningsLabel: (warnings) =>\n warnings === undefined ? (\n \"Alertas\"\n ) : (\n <>\n {warnings}&nbsp;{warnings === 1 ? \"Alerta\" : \"Alertas\"}\n </>\n ),\n focusButtonLabel: \"Focar campo\",\n previousIssueButtonLabel: \"Campo com problemas anterior\",\n nextIssueButtonLabel: \"Próximo campo com problemas\",\n firstIssueButtonLabel: \"Primeiro campo com problemas\",\n lastIssueButtonLabel: \"Último campo com problemas\",\n paginationLabel: (currentPage, totalPages) =>\n `Campo com problemas ${currentPage} de ${totalPages}.`,\n noIssuesMessage: \"Nenhum problema a reportar.\",\n resolvedTitle: \"Resolvido\",\n resolvedMessage:\n \"Problemas foram resolvidos. \" +\n \"Por favor avance para o próximo campo com problemas.\",\n },\n IssuesPopover: {\n label: \"Mostrar problemas\",\n },\n LoadAction: {\n label: \"Abrir\",\n successMessage: (file) => `Ficheiro “${file.name}” carregado com sucesso.`,\n errorMessage: (file) =>\n file\n ? `Não foi possível carregar o ficheiro “${file.name}”. ` +\n \"Por favor confirme que o ficheiro indicado é um ficheiro válido \" +\n \"do formulário.\"\n : \"Não foi possível abrir o ficheiro indicado. Por favor confirme \" +\n \"que tem as permissões devidas para efetuar a operação.\",\n },\n PrintAction: {\n label: \"Imprimir\",\n },\n SaveAction: {\n label: \"Gravar\",\n saveOptionsLabel: \"Opções de gravação\",\n saveAsLabel: \"Gravar como…\",\n successMessage: (fileHandle) =>\n `Ficheiro “${fileHandle.name}” gravado com sucesso.`,\n errorMessage: (fileHandle) =>\n fileHandle\n ? `Não foi possível gravar o ficheiro “${fileHandle.name}”. ` +\n \"Por favor confirme que tem as permissões devidas para efetuar a \" +\n \"operação.\"\n : \"Não foi possível gravar o ficheiro indicado. Por favor confirme \" +\n \"que tem as permissões devidas para efetuar a operação.\",\n },\n SubmitAction: {\n label: \"Entregar\",\n dialogTitle: \"Entregar declaração\",\n dialogDescription:\n \"Por favor confirme que pretende continuar com a entrega da declaração.\",\n dialogCancelText: \"Cancelar\",\n confirmWarningsCheckboxLabel:\n \"Declaro que tomei conhecimento dos alertas gerados pelos dados desta \" +\n \"declaração e que desejo continuar sem alterar os respetivos dados.\",\n successMessage: \"Declaração entregue com sucesso.\",\n errorMessage:\n \"Algo correu mal ao entregar a declaração. Por favor volte a tentar \" +\n \"mais tarde.\",\n },\n TableControlAddRowTrigger: {\n defaultButtonText: \"Adicionar linha\",\n },\n TableControlRemoveRowTrigger: {\n defaultButtonLabel: \"Remover linha\",\n confirmDialogTitle: \"Remover linha\",\n confirmDialogMessage: (index) => (\n <>Tem a certeza que pretende remover a linha #{index + 1}?</>\n ),\n confirmDialogOkText: \"Remover\",\n },\n ValidateAction: {\n label: \"Validar\",\n },\n};\n"],"names":["uiPtPT"],"mappings":";;AAKO,MAAM,SAA6B;AAAA,EACxC,YAAYA;AAAAA,EACZ,gBAAgB;AAAA,IACd,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,wBAAwB;AAAA,IACxB,yBAAyB;AAAA,IACzB,+BAA+B;AAAA,IAC/B,iCAAiC,CAAC,cAChC,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MAA4C;AAAA,MAAU;AAAA,IAAA,GAAC;AAAA,IAE3D,gCAAgC;AAAA,EAAA;AAAA,EAElC,kBAAkB;AAAA,IAChB,6BAA6B;AAAA,IAC7B,2BAA2B;AAAA,EAAA;AAAA,EAE7B,aAAa;AAAA,IACX,kBAAkB;AAAA,IAClB,qBAAqB;AAAA,IACrB,yBAAyB;AAAA,IACzB,cACE,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,0BAEC,MAAA,EAAG;AAAA,MAAE;AAAA,IAAA,EAAA,CAGR;AAAA,EAAA;AAAA,EAGJ,SAAS;AAAA,IACP,WAAW;AAAA,IACX,eAAe;AAAA,MACb,OAAO;AAAA,QACL,cAAc;AAAA,QACd,iBAAiB;AAAA,QACjB,gBAAgB;AAAA,QAChB,eAAe;AAAA,QACf,gBAAgB,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAA,QAC1C,SAAS,YACT,OAAO,aAAa,cAAc,YAClC,aAAa,cAAc,aAAa,YACpC,kBAAkB,aAAa,SAAS,IACtC,aAAa,cAAc,IAAI,aAAa,YAC9C,MACA;AAAA,QACN,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAA,EAAa,MACjD,SAAS,YAAY,OAAO,aAAa,cAAc,WACnD,+BAA+B,aAAa,SAAS,IACnD,aAAa,cAAc,IAAI,aAAa,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IAAI,iFAGtD;AAAA,EAAA;AAAA,EAGR,cAAc;AAAA,IACZ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,mBACE;AAAA,IACF,kBAAkB;AAAA,IAClB,8BACE;AAAA,IAEF,gBAAgB;AAAA,IAChB,cACE;AAAA,EAAA;AAAA,EAGJ,2BAA2B;AAAA,IACzB,mBAAmB;AAAA,EAAA;AAAA,EAErB,8BAA8B;AAAA,IAC5B,oBAAoB;AAAA,IACpB,oBAAoB;AAAA,IACpB,sBAAsB,CAAC,UACrB,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MAA6C,QAAQ;AAAA,MAAE;AAAA,IAAA,GAAC;AAAA,IAE5D,qBAAqB;AAAA,EAAA;AAAA,EAEvB,gBAAgB;AAAA,IACd,OAAO;AAAA,EAAA;AAEX;"}
1
+ {"version":3,"file":"pt-PT.js","sources":["../../src/locales/pt-PT.tsx"],"sourcesContent":["import { ptPT as uiPtPT } from \"@ostack.tech/ui\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\n\n/** `pt-PT` locale. */\nexport const locale: LocalizationObject = {\n baseLocale: uiPtPT,\n AnnexesManager: {\n \"aria-label\": \"Anexos\",\n menuButtonText: \"Anexos\",\n menuButtonLabel: \"Gestor de anexos\",\n addAnnexText: \"Adicionar anexo\",\n removeAnnexButtonLabel: \"Remover anexo\",\n removeAnnexKeyboardHint: \"Pressione “Delete” para remover o anexo.\",\n removeAnnexConfirmDialogTitle: \"Remover anexo\",\n removeAnnexConfirmDialogMessage: (annexName) => (\n <>Tem a certeza que pretende remover o anexo {annexName}?</>\n ),\n removeAnnexConfirmDialogOkText: \"Remover\",\n },\n DateRangeControl: {\n issuesPanelStartLabelSuffix: \" (data de início)\",\n issuesPanelEndLabelSuffix: \" (data de fim)\",\n },\n FileControl: {\n clearDescription: \"Pressione Backspace ou Delete para limpar.\",\n viewFileButtonLabel: \"Visualizar ficheiro\",\n downloadFileButtonLabel: \"Descarregar ficheiro\",\n fallbackText: (\n <>\n O ficheiro selecionado não pode ser visualizado neste navegador.\n <br />\n Por favor use o botão acima para descarregar o ficheiro. Pode depois\n abri-lo utilizando uma aplicação externa.\n </>\n ),\n },\n FormApp: {\n formTitle: \"Formulário\",\n issueMessages: {\n \"/**\": {\n valueMissing: \"Campo de preenchimento obrigatório.\",\n valueDisallowed: \"Valor indicado não permitido.\",\n rangeUnderflow: \"Valor inferior ao mínimo permitido.\",\n rangeOverflow: \"Valor excede o máximo permitido.\",\n lengthMismatch: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" &&\n typeof restrictions.minLength === \"number\" &&\n restrictions.minLength === restrictions.maxLength\n ? `Valor deve ter ${restrictions.minLength} ${\n restrictions.minLength === 1 ? \"carácter\" : \"caracteres\"\n }.`\n : \"Valor tem comprimento inválido.\",\n tooShort: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.minLength === \"number\"\n ? `Valor não deve ter menos de ${restrictions.minLength} ${\n restrictions.minLength === 1 ? \"caractér\" : \"caracteres\"\n }.`\n : \"Valor demasiado curto.\",\n tooLong: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.maxLength === \"number\"\n ? `Valor não deve ter mais de ${restrictions.maxLength} ${\n restrictions.maxLength === 1 ? \"caractér\" : \"caracteres\"\n }.`\n : \"Valor demasiado longo.\",\n sizeMismatch: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.minSize === \"number\" &&\n restrictions.minSize === restrictions.maxSize\n ? `Campo deve ter ${restrictions.minSize} ${\n restrictions.minSize === 1 ? \"item\" : \"itens\"\n }.`\n : \"Campo tem número inválido de itens.\",\n tooSmall: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.minLength === \"number\"\n ? `Campo não deve ter menos de ${restrictions.minLength} ${\n restrictions.minLength === 1 ? \"item\" : \"itens\"\n }.`\n : \"Número de itens do campo não é suficiente.\",\n tooLarge: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.maxLength === \"number\"\n ? `Campo não deve ter mais de ${restrictions.maxLength} ${\n restrictions.maxLength === 1 ? \"item\" : \"itens\"\n }.`\n : \"Número de itens do campo excede o limite permitido.\",\n scaleMismatch: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.scale === \"number\"\n ? `Valor deve ter ${restrictions.scale} ${\n restrictions.scale === 1 ? \"casa decimal\" : \"casas decimais\"\n }.`\n : \"Valor tem número inválido de casas decimais.\",\n patternMismatch: \"Valor não segue o padrão permitido.\",\n emailPatternMismatch: \"Endereço de correio eletrónico inválido.\",\n fileTypeMismatch: (_data, { typeInfo: { restrictions } }) =>\n Array.isArray(restrictions.acceptedFileTypes)\n ? `Apenas os seguintes tipos de ficheiro são permitidos: ${restrictions.acceptedFileTypes.join(\", \")}.`\n : \"Tipo do ficheiro indicado não é permitido.\",\n itemsRepeated: ({ firstIndex, secondIndex }) =>\n firstIndex != null && secondIndex != null\n ? `Itens ${+firstIndex + 1} e ${+secondIndex + 1} encontram-se repetidos.`\n : \"Campo contém itens repetidos.\",\n computedValueMismatch: \"O valor difere do valor calculado.\",\n validationFailed: (data) =>\n process.env.NODE_ENV !== \"production\"\n ? data.exception\n : \"Algo correu mal ao validar este campo. \" +\n \"Por favor volte a tentar mais tarde.\",\n },\n },\n confirmUnloadMessage:\n \"Tem a certeza que pretende sair da página? Alterações que fez ao \" +\n \"formulário podem não ter sido guardadas.\",\n },\n FormPagesNavigation: {\n \"aria-label\": \"Páginas\",\n },\n FormPage: {\n helperButtonLabel: \"Mostrar ajuda\",\n visuallyHiddenCodePrefix: \"Página\",\n },\n IssueMessages: {\n visuallyHiddenErrorCodePrefix: \"Código de erro,\",\n visuallyHiddenWarningCodePrefix: \"Código de alerta,\",\n unknownErrorMessage: \"Campo com erro desconhecido.\",\n unknownWarningMessage: \"Campo com alerta desconhecido.\",\n },\n IssuesPanel: {\n errorsLabel: (errors) =>\n errors === undefined ? (\n \"Erros\"\n ) : (\n <>\n {errors}&nbsp;{errors === 1 ? \"Erro\" : \"Erros\"}\n </>\n ),\n warningsLabel: (warnings) =>\n warnings === undefined ? (\n \"Alertas\"\n ) : (\n <>\n {warnings}&nbsp;{warnings === 1 ? \"Alerta\" : \"Alertas\"}\n </>\n ),\n focusButtonLabel: \"Focar campo\",\n previousIssueButtonLabel: \"Campo com problemas anterior\",\n nextIssueButtonLabel: \"Próximo campo com problemas\",\n firstIssueButtonLabel: \"Primeiro campo com problemas\",\n lastIssueButtonLabel: \"Último campo com problemas\",\n paginationLabel: (currentPage, totalPages) =>\n `Campo com problemas ${currentPage} de ${totalPages}.`,\n noIssuesMessage: \"Nenhum problema a reportar.\",\n resolvedTitle: \"Resolvido\",\n resolvedMessage:\n \"Problemas foram resolvidos. \" +\n \"Por favor avance para o próximo campo com problemas.\",\n },\n IssuesPopover: {\n label: \"Mostrar problemas\",\n },\n LoadAction: {\n label: \"Abrir\",\n successMessage: (file) => `Ficheiro “${file.name}” carregado com sucesso.`,\n errorMessage: (file) =>\n file\n ? `Não foi possível carregar o ficheiro “${file.name}”. ` +\n \"Por favor confirme que o ficheiro indicado é um ficheiro válido \" +\n \"do formulário.\"\n : \"Não foi possível abrir o ficheiro indicado. Por favor confirme \" +\n \"que tem as permissões devidas para efetuar a operação.\",\n },\n PrintAction: {\n label: \"Imprimir\",\n },\n SaveAction: {\n label: \"Gravar\",\n saveOptionsLabel: \"Opções de gravação\",\n saveAsLabel: \"Gravar como…\",\n successMessage: (fileHandle) =>\n `Ficheiro “${fileHandle.name}” gravado com sucesso.`,\n errorMessage: (fileHandle) =>\n fileHandle\n ? `Não foi possível gravar o ficheiro “${fileHandle.name}”. ` +\n \"Por favor confirme que tem as permissões devidas para efetuar a \" +\n \"operação.\"\n : \"Não foi possível gravar o ficheiro indicado. Por favor confirme \" +\n \"que tem as permissões devidas para efetuar a operação.\",\n },\n SubmitAction: {\n label: \"Entregar\",\n dialogTitle: \"Entregar declaração\",\n dialogDescription:\n \"Por favor confirme que pretende continuar com a entrega da declaração.\",\n dialogCancelText: \"Cancelar\",\n confirmWarningsCheckboxLabel:\n \"Declaro que tomei conhecimento dos alertas gerados pelos dados desta \" +\n \"declaração e que desejo continuar sem alterar os respetivos dados.\",\n successMessage: \"Declaração entregue com sucesso.\",\n errorMessage:\n \"Algo correu mal ao entregar a declaração. Por favor volte a tentar \" +\n \"mais tarde.\",\n },\n TableControlAddRowTrigger: {\n label: \"Adicionar linha\",\n },\n TableControlRemoveRowTrigger: {\n label: \"Remover linha\",\n confirmDialogTitle: \"Remover linha\",\n confirmDialogMessage: (index) => (\n <>Tem a certeza que pretende remover a linha #{index + 1}?</>\n ),\n confirmDialogOkText: \"Remover\",\n },\n ValidateAction: {\n label: \"Validar\",\n },\n};\n"],"names":["uiPtPT"],"mappings":";;AAKO,MAAM,SAA6B;AAAA,EACxC,YAAYA;AAAAA,EACZ,gBAAgB;AAAA,IACd,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,wBAAwB;AAAA,IACxB,yBAAyB;AAAA,IACzB,+BAA+B;AAAA,IAC/B,iCAAiC,CAAC,cAChC,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MAA4C;AAAA,MAAU;AAAA,IAAA,GAAC;AAAA,IAE3D,gCAAgC;AAAA,EAAA;AAAA,EAElC,kBAAkB;AAAA,IAChB,6BAA6B;AAAA,IAC7B,2BAA2B;AAAA,EAAA;AAAA,EAE7B,aAAa;AAAA,IACX,kBAAkB;AAAA,IAClB,qBAAqB;AAAA,IACrB,yBAAyB;AAAA,IACzB,cACE,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,0BAEC,MAAA,EAAG;AAAA,MAAE;AAAA,IAAA,EAAA,CAGR;AAAA,EAAA;AAAA,EAGJ,SAAS;AAAA,IACP,WAAW;AAAA,IACX,eAAe;AAAA,MACb,OAAO;AAAA,QACL,cAAc;AAAA,QACd,iBAAiB;AAAA,QACjB,gBAAgB;AAAA,QACh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AAAA,IACV,OAAO;AAAA,IACP,gBAAgB,CAAC,SAAS,aAAa,KAAK,IAAI;AAAA,IAChD,cAAc,CAAC,SACb,OACI,yCAAyC,KAAK,IAAI,sFAGlD;AAAA,EAAA;AAAA,EAGR,aAAa;AAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,YAAY;AAAA,IACV,OAAO;AAAA,IACP,kBAAkB;AAAA,IAClB,aAAa;AAAA,IACb,gBAAgB,CAAC,eACf,aAAa,WAAW,IAAI;AAAA,IAC9B,cAAc,CAAC,eACb,aACI,uCAAuC,WAAW,IAAI,iFAGtD;AAAA,EAAA;AAAA,EAGR,cAAc;AAAA,IACZ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,mBACE;AAAA,IACF,kBAAkB;AAAA,IAClB,8BACE;AAAA,IAEF,gBAAgB;AAAA,IAChB,cACE;AAAA,EAAA;AAAA,EAGJ,2BAA2B;AAAA,IACzB,OAAO;AAAA,EAAA;AAAA,EAET,8BAA8B;AAAA,IAC5B,OAAO;AAAA,IACP,oBAAoB;AAAA,IACpB,sBAAsB,CAAC,UACrB,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MAA6C,QAAQ;AAAA,MAAE;AAAA,IAAA,GAAC;AAAA,IAE5D,qBAAqB;AAAA,EAAA;AAAA,EAEvB,gBAAgB;AAAA,IACd,OAAO;AAAA,EAAA;AAEX;"}
@@ -131,9 +131,12 @@
131
131
  text-transform: none;
132
132
  }
133
133
  .o-ui-kform-annexes__tab-inner {
134
+ min-height: 44px;
135
+ }
136
+ .o-ui-kform-annexes__tab-text {
137
+ display: flex;
134
138
  flex-direction: column;
135
139
  height: 100%;
136
- min-height: 44px;
137
140
  }
138
141
  .o-ui-kform-annexes__tab-title, .o-ui-kform-annexes__tab-subtitle {
139
142
  display: block;
@@ -325,7 +328,7 @@
325
328
  pointer-events: none;
326
329
  z-index: 1300;
327
330
  }
328
- @media (prefers-reduced-motion: no-preference) {
331
+ @media screen and (prefers-reduced-motion: no-preference) {
329
332
  .o-ui-kform-form-app::after {
330
333
  transition-property: outline-color;
331
334
  transition-duration: var(--o-ui-transition-duration);
@@ -417,7 +420,7 @@
417
420
  background-color: var(--o-ui-primary-2);
418
421
  color: var(--o-ui-primary-9);
419
422
  }
420
- @media (prefers-reduced-motion: no-preference) {
423
+ @media screen and (prefers-reduced-motion: no-preference) {
421
424
  .o-ui-kform-form-pages__sidebar-item-code {
422
425
  transition-property: var(--o-ui-transition-property);
423
426
  transition-duration: var(--o-ui-transition-duration);
@@ -459,7 +462,7 @@
459
462
  font-size: 1rem;
460
463
  color: var(--o-ui-background-color);
461
464
  }
462
- @media (prefers-reduced-motion: no-preference) {
465
+ @media screen and (prefers-reduced-motion: no-preference) {
463
466
  .o-ui-kform-form-pages__select[data-variant=default] {
464
467
  transition-property: var(--o-ui-transition-property);
465
468
  transition-duration: var(--o-ui-transition-duration);
@@ -490,7 +493,7 @@
490
493
  background-color: rgba(255, 255, 255, 0.6);
491
494
  color: var(--o-ui-primary-9);
492
495
  }
493
- @media (prefers-reduced-motion: no-preference) {
496
+ @media screen and (prefers-reduced-motion: no-preference) {
494
497
  .o-ui-kform-form-pages__select-option-code {
495
498
  transition-property: var(--o-ui-transition-property);
496
499
  transition-duration: var(--o-ui-transition-duration);
@@ -562,7 +565,7 @@
562
565
  line-height: 1.4285714286;
563
566
  font-weight: 700;
564
567
  }
565
- @media (prefers-reduced-motion: no-preference) {
568
+ @media screen and (prefers-reduced-motion: no-preference) {
566
569
  .o-ui-kform-form-pages__page-code {
567
570
  transition-property: var(--o-ui-transition-property);
568
571
  transition-duration: var(--o-ui-transition-duration);
@@ -596,7 +599,7 @@
596
599
  .o-ui-kform-form-pages__page-helper-popover {
597
600
  max-width: min(720px, var(--radix-popover-content-available-width));
598
601
  max-height: min(600px, var(--radix-popover-content-available-height));
599
- padding: var(--o-ui-space) calc(var(--o-ui-space) * 2);
602
+ padding: calc(var(--o-ui-space) * 1.5) calc(var(--o-ui-space) * 2);
600
603
  }
601
604
  .o-ui-kform-form-pages__page-content {
602
605
  position: sticky;
@@ -641,7 +644,7 @@
641
644
  justify-content: center;
642
645
  pointer-events: none;
643
646
  }
644
- @media (prefers-reduced-motion: no-preference) {
647
+ @media screen and (prefers-reduced-motion: no-preference) {
645
648
  .o-ui-kform-issues-panel__container {
646
649
  animation: o-ui-fade-in var(--o-ui-animation-fade-duration) var(--o-ui-animation-fade-timing-function);
647
650
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { usePrefix as usePrefix$1, useControllableState, useLatestValues, combineEventHandlers, LocalizationProvider as LocalizationProvider$1, usePrinting, useConstant, useSpacing, useCssVars, NATIVE_CONTROLS, useResponsiveValues, useCombinedRef, cx, useIsInRoot, warnOnce, usePrintInProgress, PrefixProvider, Root, computed, TabContent, ErrorBoundary, DocumentTitle, Spinner, useToastManager, useStartPrintingTask, Tabs, useErrorReporter, EMPTY_STORE, Field, VisuallyHidden, Feedback, FeedbackList, FeedbackPopover, useMediaBreakpointUp, DropdownMenu, DropdownMenuTrigger, Button, DropdownMenuContent, DropdownMenuRadioGroup, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, DropdownMenuItem, useAlertDialog, DropdownMenuRadioItem, controlStatusToAccent, IconButton, Tab, boolDataAttr, TabList, combineAriaIds, useIsInTableCell, useDataTableColumnLabel, useOnFieldLabelChange, Checkbox, OptionsGroup, Option, CheckboxGroup, useDateTransformer, DateInput, DateRangeInput, usePrintClassNames, Input, Dialog, Tooltip, DialogTrigger, ControlAddon, Icon, DialogContent, DialogHeader, DialogTitle, DialogBody, Alert, Stack, Popover, PopoverTrigger, PopoverContent, useMeasure, Container, Select, MenuListItem, MenuList, StepContent, Step, StepList, Stepper, useKeyboardShortcut, CloseButton, useScrollPosition, setBoolDataAttr, Card, CardHeader, CardTitle, CardBody, useIntersectionObserver, NumericInput, Link, usePrint, usePrinterDocumentTitle, PrinterTrigger, RadioGroup, Radio, ButtonGroup, AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogBody, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, DataTableCell, DataTableRow, useDataTableApiRef, DataTable, Slot, DataTableContent, DataTablePagination, DataTableRowsPerPage, TextArea, PortalContext } from "@ostack.tech/ui";
2
+ import { usePrefix as usePrefix$1, useControllableState, useLatestValues, LocalizationProvider as LocalizationProvider$1, combineEventHandlers, usePrinting, useConstant, useSpacing, useCssVars, NATIVE_CONTROLS, useResponsiveValues, useCombinedRef, cx, useIsInRoot, warnOnce, usePrintInProgress, PrefixProvider, Root, computed, TabContent, ErrorBoundary, DocumentTitle, Spinner, useToastManager, useStartPrintingTask, Tabs, useErrorReporter, EMPTY_STORE, Field, VisuallyHidden, Feedback, FeedbackList, FeedbackPopover, useMediaBreakpointUp, DropdownMenu, DropdownMenuTrigger, Button, DropdownMenuContent, DropdownMenuRadioGroup, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, DropdownMenuItem, useAlertDialog, DropdownMenuRadioItem, IconButton, controlStatusToAccent, Tab, boolDataAttr, TabList, combineAriaIds, useIsInTableCell, useDataTableColumnLabel, useOnFieldLabelChange, Checkbox, OptionsGroup, Option, CheckboxGroup, useDateTransformer, DateInput, DateRangeInput, usePrintClassNames, Input, Dialog, Tooltip, DialogTrigger, ControlAddon, Icon, DialogContent, DialogHeader, DialogTitle, DialogBody, Alert, Stack, Popover, PopoverTrigger, PopoverContent, useMeasure, Container, Select, MenuListItem, MenuList, StepContent, Step, StepList, Stepper, StepperFinishTrigger, StepperNextTrigger, StepperPreviousTrigger, useKeyboardShortcut, CloseButton, useScrollPosition, setBoolDataAttr, Card, CardHeader, CardTitle, CardBody, useIntersectionObserver, NumericInput, Link, usePrint, usePrinterDocumentTitle, PrinterTrigger, RadioGroup, Radio, ButtonGroup, AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogBody, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, DataTableCell, DataTableRow, useDataTableApiRef, DataTable, Slot, DataTableContent, DataTablePagination, DataTableRowsPerPage, TextArea, PortalContext } from "@ostack.tech/ui";
3
3
  import { AbsolutePath, AbsolutePathFragment, PathMultimap, sliceTable, listableSize, Path, ValidationFailure, nullableSchemaInnerSchema, compareSchemaPaths, PromiseCancellationException, arrayToTable, indexOfTableRowId, isComputedSchema } from "@ostack.tech/kform";
4
4
  import { useResolvedPath, equals, useFormController, useForm, FormContext, CurrentPath, useCurrentPath, useFormManager, useFormattedValue, InvalidPathError, AtPathError, useIssuesTracker, useFormContext, useInput, useListableInput, formatTemporalAsString, useTemporalInput, useFileInput, toFileList, useController, useNumericInput, formatNumericAsString, useFormatter } from "@ostack.tech/kform-react";
5
5
  import { createContext, useContext, useCallback, useMemo, useRef, useEffect, forwardRef, useState, useImperativeHandle, startTransition, Suspense, useDeferredValue, Children, isValidElement, useId, createElement, memo } from "react";
@@ -9,12 +9,12 @@ import { useShallow } from "zustand/react/shallow";
9
9
  import { shallow } from "zustand/shallow";
10
10
  import { supported, fileOpen, fileSave } from "browser-fs-access";
11
11
  import { addDays, min, max, parseISO, format } from "date-fns";
12
+ import { faChevronUp, faChevronDown, faTrash, faFileLines, faDownload, faCircleQuestion, faArrowsToDot, faAnglesLeft, faAngleLeft, faAngleRight, faAnglesRight, faCircleCheck, faCircleExclamation, faTriangleExclamation, faFolderOpen, faPrint, faFloppyDisk, faCaretDown, faArrowRight, faPlus } from "@fortawesome/free-solid-svg-icons";
13
+ import { faCircleCheck as faCircleCheck$1 } from "@fortawesome/free-regular-svg-icons";
12
14
  import { locale } from "./locales/en-GB.js";
13
15
  import { locale as locale2 } from "./locales/en-US.js";
14
16
  import { locale as locale3, locale as locale4 } from "./locales/fr-FR.js";
15
17
  import { locale as locale5, locale as locale6 } from "./locales/pt-PT.js";
16
- import { faChevronUp, faChevronDown, faTrash, faFileLines, faDownload, faCircleQuestion, faArrowsToDot, faAnglesLeft, faAngleLeft, faAngleRight, faAnglesRight, faCircleCheck, faCircleExclamation, faTriangleExclamation, faFolderOpen, faPrint, faFloppyDisk, faCaretDown, faArrowRight, faPlus } from "@fortawesome/free-solid-svg-icons";
17
- import { faCircleCheck as faCircleCheck$1 } from "@fortawesome/free-regular-svg-icons";
18
18
  const DEFAULT_PREFIX_SUFFIX = "kform-";
19
19
  const defaultPrefixSuffixStore = createStore(() => ({
20
20
  defaultPrefixSuffix: DEFAULT_PREFIX_SUFFIX
@@ -2477,6 +2477,7 @@ function AnnexTab({ path }) {
2477
2477
  issuesDisplayMode === "inline" && hasIssues
2478
2478
  ),
2479
2479
  tabInnerProps: { className: prefix("annexes__tab-inner") },
2480
+ tabTextProps: { className: prefix("annexes__tab-text") },
2480
2481
  "aria-describedby": hasIssues ? issueMessagesId : void 0,
2481
2482
  ref: tabRef,
2482
2483
  children: /* @__PURE__ */ jsxs(CurrentPath, { path, children: [
@@ -4195,7 +4196,7 @@ const FormPage = forwardRef(
4195
4196
  prefix("form-pages__page-content"),
4196
4197
  contentProps?.className
4197
4198
  ),
4198
- children: /* @__PURE__ */ jsx(Container, { fluid: "md", gutter: 0, ...containerProps, children: /* @__PURE__ */ jsx(ErrorBoundary, { ...errorBoundaryProps, children: /* @__PURE__ */ jsx(
4199
+ children: /* @__PURE__ */ jsx(Container, { fluid: "xxl", gutter: 0, ...containerProps, children: /* @__PURE__ */ jsx(ErrorBoundary, { ...errorBoundaryProps, children: /* @__PURE__ */ jsx(
4199
4200
  Suspense,
4200
4201
  {
4201
4202
  fallback: /* @__PURE__ */ jsx(Spinner, { size: "xl", color: "primary" }),
@@ -4798,10 +4799,15 @@ function useFormStepState(path, selector) {
4798
4799
  (state) => selector(state.actions.getStepState(path))
4799
4800
  );
4800
4801
  }
4801
- const FormStepContent = forwardRef(function FormStepContent2({
4802
+ const FormStep = forwardRef(function FormStepContent2({
4802
4803
  path,
4804
+ // `FormStepObject` props
4805
+ title: _title,
4806
+ documentTitle: _documentTitle,
4807
+ issuesPanelLabel: _issuesPanelLabel,
4803
4808
  disabled = false,
4804
4809
  readOnly = false,
4810
+ issueMessages,
4805
4811
  errorBoundaryProps,
4806
4812
  className,
4807
4813
  children,
@@ -4826,11 +4832,12 @@ const FormStepContent = forwardRef(function FormStepContent2({
4826
4832
  className: cx(prefix("form-stepper__step-content"), className),
4827
4833
  ...otherProps,
4828
4834
  ref: forwardedRef,
4829
- children: /* @__PURE__ */ jsx(DocumentTitle, { title: documentTitle ?? void 0, children: /* @__PURE__ */ jsx(FormAppStatus, { disabled, readOnly, children: /* @__PURE__ */ jsx(ErrorBoundary, { ...errorBoundaryProps, children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Spinner, { size: "xl", color: "primary" }), children }) }) }) })
4835
+ children: /* @__PURE__ */ jsx(DocumentTitle, { title: documentTitle ?? void 0, children: /* @__PURE__ */ jsx(FormAppStatus, { disabled, readOnly, children: /* @__PURE__ */ jsx(FormAppIssueMessages, { issueMessages, children: /* @__PURE__ */ jsx(ErrorBoundary, { ...errorBoundaryProps, children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Spinner, { size: "xl", color: "primary" }), children }) }) }) }) })
4830
4836
  }
4831
4837
  ) });
4832
4838
  });
4833
- function FormStep({ path, index }) {
4839
+ const FormStepContent = FormStep;
4840
+ function FormStepButton({ path, index }) {
4834
4841
  const prefix = usePrefix();
4835
4842
  const deferredDisplayStatus = useFormStepState(
4836
4843
  path,
@@ -4859,7 +4866,7 @@ const FormStepList = forwardRef(function FormStepperSidebar({ className, ...othe
4859
4866
  ...otherProps,
4860
4867
  ref: forwardedRef,
4861
4868
  children: steps.map((step) => /* @__PURE__ */ jsx(
4862
- FormStep,
4869
+ FormStepButton,
4863
4870
  {
4864
4871
  path: step.path,
4865
4872
  index: step.index
@@ -4927,11 +4934,20 @@ const FormStepper = forwardRef(function FormStepper2({
4927
4934
  allowForwardNavigationOnError,
4928
4935
  preventFocusOnError,
4929
4936
  className,
4937
+ children,
4930
4938
  ...otherProps
4931
4939
  }, forwardedRef) {
4932
4940
  const prefix = usePrefix();
4933
4941
  const formManager = useFormManager();
4934
4942
  const absolutePath = useResolvedPath(path);
4943
+ steps ??= Children.toArray(children).filter(
4944
+ (child) => isValidElement(child) && child.type === FormStep
4945
+ ).map((annex) => ({
4946
+ path: annex.props.path,
4947
+ title: annex.props.title,
4948
+ documentTitle: annex.props.documentTitle,
4949
+ issuesPanelLabel: annex.props.issuesPanelLabel
4950
+ }));
4935
4951
  const resolvedSteps = useMemo(
4936
4952
  () => steps.map((step, i) => ({
4937
4953
  ...step,
@@ -4981,11 +4997,15 @@ const FormStepper = forwardRef(function FormStepper2({
4981
4997
  activeStep: activeIndex,
4982
4998
  onActiveStepChange: goToStep,
4983
4999
  ...otherProps,
4984
- ref: forwardedRef
5000
+ ref: forwardedRef,
5001
+ children
4985
5002
  }
4986
5003
  )
4987
5004
  ] }) });
4988
5005
  });
5006
+ const FormStepperFinishTrigger = StepperFinishTrigger;
5007
+ const FormStepperNextTrigger = StepperNextTrigger;
5008
+ const FormStepperPreviousTrigger = StepperPreviousTrigger;
4989
5009
  const IssueAlert = forwardRef(function IssueMessage2({ path, code, children, ...otherProps }, forwardedRef) {
4990
5010
  const { info } = useIssuesTracker(path);
4991
5011
  const relevantIssues = (info?.flatMap((info2) => info2.issues) ?? []).filter(
@@ -7408,7 +7428,6 @@ function TableControlCellRenderer({
7408
7428
  return render(controller);
7409
7429
  }
7410
7430
  const TableControlAddRowTrigger = forwardRef(function TableControlAddRowTrigger2({
7411
- defaultButtonText,
7412
7431
  onRowAdded,
7413
7432
  preferRightAlignment = true,
7414
7433
  showWhenReadOnly,
@@ -7421,7 +7440,6 @@ const TableControlAddRowTrigger = forwardRef(function TableControlAddRowTrigger2
7421
7440
  }, forwardedRef) {
7422
7441
  const prefix = usePrefix();
7423
7442
  const [locale7] = useLocale();
7424
- defaultButtonText ??= locale7.TableControlAddRowTrigger.defaultButtonText;
7425
7443
  const { printHidden } = usePrintClassNames();
7426
7444
  const { controller, size, maxRows } = useTableControlContext();
7427
7445
  const controlIsDisabled = useFormIsDisabled();
@@ -7435,25 +7453,40 @@ const TableControlAddRowTrigger = forwardRef(function TableControlAddRowTrigger2
7435
7453
  const shouldDisable = controller.useState(
7436
7454
  ({ initialized, exists }) => !initialized || !exists || controlIsDisabled || disabled || controlIsReadOnly || maxRows != null && size >= maxRows
7437
7455
  );
7438
- const As = Slot;
7439
- return (showWhenReadOnly || !controlIsReadOnly) && /* @__PURE__ */ jsx(
7440
- As,
7441
- {
7442
- className: cx(
7443
- prefix("table-control__add-row-trigger"),
7444
- showWhilePrinting || printHidden,
7445
- className
7446
- ),
7447
- disabled: shouldDisable,
7448
- onClick: combineEventHandlers(onClick, handleClick, {
7449
- checkDefaultPrevented: true
7450
- }),
7451
- ...otherProps,
7452
- "data-prefer-right-alignment": boolDataAttr(preferRightAlignment),
7453
- ref: forwardedRef,
7454
- children: children ?? /* @__PURE__ */ jsx(Button, { icon: faPlus, color: "primary", children: defaultButtonText })
7455
- }
7456
- );
7456
+ if (!showWhenReadOnly && controlIsReadOnly) {
7457
+ return null;
7458
+ }
7459
+ const commonProps = {
7460
+ className: cx(
7461
+ prefix("table-control__add-row-trigger"),
7462
+ showWhilePrinting || printHidden,
7463
+ className
7464
+ ),
7465
+ disabled: shouldDisable,
7466
+ onClick: combineEventHandlers(onClick, handleClick, {
7467
+ checkDefaultPrevented: true
7468
+ }),
7469
+ "data-prefer-right-alignment": boolDataAttr(preferRightAlignment)
7470
+ };
7471
+ if (children === void 0) {
7472
+ const {
7473
+ defaultButtonText,
7474
+ label = defaultButtonText ?? locale7.TableControlAddRowTrigger.label,
7475
+ ...buttonProps
7476
+ } = otherProps;
7477
+ return /* @__PURE__ */ jsx(
7478
+ Button,
7479
+ {
7480
+ icon: faPlus,
7481
+ color: "primary",
7482
+ ...buttonProps,
7483
+ ...commonProps,
7484
+ ref: forwardedRef,
7485
+ children: label
7486
+ }
7487
+ );
7488
+ }
7489
+ return /* @__PURE__ */ jsx(Slot, { ...otherProps, ...commonProps, ref: forwardedRef, children });
7457
7490
  });
7458
7491
  function useTableControlApiRef() {
7459
7492
  return useRef(null);
@@ -7462,7 +7495,6 @@ const TableControlRemoveRowTrigger = forwardRef(function TableControlRemoveRowTr
7462
7495
  showConfirmation,
7463
7496
  onConfirmRowRemoval,
7464
7497
  onRowRemoved,
7465
- defaultButtonLabel,
7466
7498
  confirmDialogTitle,
7467
7499
  confirmDialogMessage,
7468
7500
  confirmDialogOkText,
@@ -7474,7 +7506,6 @@ const TableControlRemoveRowTrigger = forwardRef(function TableControlRemoveRowTr
7474
7506
  ...otherProps
7475
7507
  }, forwardedRef) {
7476
7508
  const [locale7] = useLocale();
7477
- defaultButtonLabel ??= locale7.TableControlRemoveRowTrigger.defaultButtonLabel;
7478
7509
  confirmDialogTitle ??= locale7.TableControlRemoveRowTrigger.confirmDialogTitle;
7479
7510
  confirmDialogMessage ??= locale7.TableControlRemoveRowTrigger.confirmDialogMessage;
7480
7511
  confirmDialogOkText ??= locale7.TableControlRemoveRowTrigger.confirmDialogOkText;
@@ -7504,28 +7535,36 @@ const TableControlRemoveRowTrigger = forwardRef(function TableControlRemoveRowTr
7504
7535
  setLatestInteraction(controller.getState().path);
7505
7536
  onRowRemoved?.();
7506
7537
  };
7507
- const As = Slot;
7508
- return (showWhenReadOnly || !controlIsReadOnly) && /* @__PURE__ */ jsx(
7509
- As,
7510
- {
7511
- ...otherProps,
7512
- disabled: !initialized || !exists || controlIsDisabled || disabled || controlIsReadOnly || removing,
7513
- onClick: combineEventHandlers(onClick, handleClick, {
7514
- checkDefaultPrevented: true
7515
- }),
7516
- ref: forwardedRef,
7517
- children: children ?? /* @__PURE__ */ jsx(
7518
- IconButton,
7519
- {
7520
- icon: faTrash,
7521
- label: defaultButtonLabel,
7522
- color: "danger",
7523
- loading: !initialized || removing,
7524
- circle: true
7525
- }
7526
- )
7527
- }
7528
- );
7538
+ if (!showWhenReadOnly && controlIsReadOnly) {
7539
+ return null;
7540
+ }
7541
+ const commonProps = {
7542
+ disabled: !initialized || !exists || controlIsDisabled || disabled || controlIsReadOnly || removing,
7543
+ onClick: combineEventHandlers(onClick, handleClick, {
7544
+ checkDefaultPrevented: true
7545
+ })
7546
+ };
7547
+ if (children === void 0) {
7548
+ const {
7549
+ defaultButtonLabel,
7550
+ label = defaultButtonLabel ?? locale7.TableControlRemoveRowTrigger.label,
7551
+ ...iconButtonProps
7552
+ } = otherProps;
7553
+ return /* @__PURE__ */ jsx(
7554
+ IconButton,
7555
+ {
7556
+ icon: faTrash,
7557
+ label,
7558
+ color: "danger",
7559
+ loading: !initialized || removing,
7560
+ circle: true,
7561
+ ...iconButtonProps,
7562
+ ...commonProps,
7563
+ ref: forwardedRef
7564
+ }
7565
+ );
7566
+ }
7567
+ return /* @__PURE__ */ jsx(Slot, { ...otherProps, ...commonProps, ref: forwardedRef, children });
7529
7568
  });
7530
7569
  function tableControlIndexColumn(overrides) {
7531
7570
  return {
@@ -7826,10 +7865,14 @@ export {
7826
7865
  FormPageRegistrar,
7827
7866
  FormPages,
7828
7867
  FormPagesNavigation,
7868
+ FormStep,
7829
7869
  FormStepContent,
7830
7870
  FormStepList,
7831
7871
  FormStepRegistrar,
7832
7872
  FormStepper,
7873
+ FormStepperFinishTrigger,
7874
+ FormStepperNextTrigger,
7875
+ FormStepperPreviousTrigger,
7833
7876
  IssueAlert,
7834
7877
  IssueMessages,
7835
7878
  IssuesPanel,