@ostack.tech/ui-kform 0.3.1 → 0.3.2

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.
@@ -108,8 +108,8 @@ const en = {
108
108
  dialogDescription: "Please confirm that you wish to proceed with the form submission.",
109
109
  dialogCancelText: "Cancel",
110
110
  confirmWarningsCheckboxLabel: "I declare that I have been informed of the warnings generated by the data in this form and that I wish to proceed without changing said data.",
111
- successMessage: () => "Form submitted successfully.",
112
- errorMessage: () => "Something went wrong while submitting the form. Please try again later."
111
+ successMessage: "Form submitted successfully.",
112
+ errorMessage: "Something went wrong while submitting the form. Please try again later."
113
113
  },
114
114
  TableControlAddRowTrigger: {
115
115
  defaultButtonText: "Add row"
@@ -132,4 +132,4 @@ const en = {
132
132
  export {
133
133
  en as e
134
134
  };
135
- //# sourceMappingURL=en-C1hDoCmB.js.map
135
+ //# sourceMappingURL=en-DlhP9NuN.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"en-C1hDoCmB.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\": \"Form annexes\",\n menuButtonText: \"Annexes\",\n addAnnexText: \"Add annex\",\n removeAnnexButtonLabel: \"Remove annex\",\n removeAnnexKeyboardHint: \"Press the “Delete” key 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 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 issuesPanelLabel: \"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\": \"Form pages\",\n },\n FormPage: {\n helperButtonLabel: \"Show help\",\n },\n IssueMessages: {\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 keybinds: \"$mod+O\",\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 SaveAction: {\n label: \"Save\",\n keybinds: \"$mod+S\",\n saveOptionsLabel: \"Save options\",\n saveAsLabel: \"Save as…\",\n saveAsKeybinds: \"$mod+Shift+S\",\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 keybinds: \"$mod+Enter\",\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 keybinds: \"F7\",\n },\n};\n"],"names":[],"mappings":";AAGO,MAAM,KAA6D;AAAA,EACxE,gBAAgB;AAAA,IACd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;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,IACP,UAAU;AAAA,EAAA;AAEd;"}
1
+ {"version":3,"file":"en-DlhP9NuN.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\": \"Form annexes\",\n menuButtonText: \"Annexes\",\n addAnnexText: \"Add annex\",\n removeAnnexButtonLabel: \"Remove annex\",\n removeAnnexKeyboardHint: \"Press the “Delete” key 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 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 issuesPanelLabel: \"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\": \"Form pages\",\n },\n FormPage: {\n helperButtonLabel: \"Show help\",\n },\n IssueMessages: {\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 keybinds: \"$mod+O\",\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 SaveAction: {\n label: \"Save\",\n keybinds: \"$mod+S\",\n saveOptionsLabel: \"Save options\",\n saveAsLabel: \"Save as…\",\n saveAsKeybinds: \"$mod+Shift+S\",\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 keybinds: \"$mod+Enter\",\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 keybinds: \"F7\",\n },\n};\n"],"names":[],"mappings":";AAGO,MAAM,KAA6D;AAAA,EACxE,gBAAgB;AAAA,IACd,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,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,EAElC,kBAAkB;AAAA,IAChB,6BAA6B;AAAA,IAC7B,2BAA2B;AAAA,EAAA;AAAA,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chunks/en-C1hDoCmB.js";
2
+ import { e as en } from "../chunks/en-DlhP9NuN.js";
3
3
  const enGB = {
4
4
  baseLocale: enGB$1,
5
5
  ...en
@@ -1,5 +1,5 @@
1
1
  import { enUS as enUS$1 } from "@ostack.tech/ui";
2
- import { e as en } from "../chunks/en-C1hDoCmB.js";
2
+ import { e as en } from "../chunks/en-DlhP9NuN.js";
3
3
  const enUS = {
4
4
  baseLocale: enUS$1,
5
5
  ...en
@@ -110,8 +110,8 @@ const fr = {
110
110
  dialogDescription: "Veuillez confirmer que vous souhaitez poursuivre le dépôt de la déclaration.",
111
111
  dialogCancelText: "Annuler",
112
112
  confirmWarningsCheckboxLabel: "Je déclare avoir pris connaissance des alertes générées par les données de cette déclaration et souhaiter continuer sans modifier les données correspondantes.",
113
- successMessage: () => "Déclaration déposée avec succès.",
114
- errorMessage: () => "Une erreur s’est produite lors du dépôt de la déclaration. Veuillez réessayer plus tard."
113
+ successMessage: "Déclaration déposée avec succès.",
114
+ errorMessage: "Une erreur s’est produite lors du dépôt de la déclaration. Veuillez réessayer plus tard."
115
115
  },
116
116
  TableControlAddRowTrigger: {
117
117
  defaultButtonText: "Ajouter une ligne"
@@ -1 +1 @@
1
- {"version":3,"file":"fr.js","sources":["../../src/locales/fr.tsx"],"sourcesContent":["import { fr as uiFr } from \"@ostack.tech/ui\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\n\n/** `fr` locale. */\nexport const fr: LocalizationObject = {\n baseLocale: uiFr,\n AnnexesManager: {\n \"aria-label\": \"Annexes du formulaire\",\n menuButtonText: \"Annexes\",\n addAnnexText: \"Ajouter une annexe\",\n removeAnnexButtonLabel: \"Supprimer une annexe\",\n removeAnnexKeyboardHint:\n \"Appuyez sur la touche «\\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 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 issuesPanelLabel: \"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 du formulaire\",\n },\n FormPage: {\n helperButtonLabel: \"Afficher l’aide\",\n },\n IssueMessages: {\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 keybinds: \"$mod+O\",\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 SaveAction: {\n label: \"Enregistrer\",\n keybinds: \"$mod+S\",\n saveOptionsLabel: \"Options d’enregistrement\",\n saveAsLabel: \"Enregistrer sous…\",\n saveAsKeybinds: \"$mod+Shift+S\",\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 keybinds: \"$mod+Enter\",\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 keybinds: \"F7\",\n },\n};\n"],"names":["uiFr"],"mappings":";;AAKO,MAAM,KAAyB;AAAA,EACpC,YAAYA;AAAAA,EACZ,gBAAgB;AAAA,IACd,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,wBAAwB;AAAA,IACxB,yBACE;AAAA,IACF,+BAA+B;AAAA,IAC/B,iCAAiC,CAAC,cAChC,qBAAA,UAAA,EAAE,UAAA;AA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A,IAAA,GAAS;AAAA,IAErE,qBAAqB;AAAA,EAAA;AAAA,EAEvB,gBAAgB;AAAA,IACd,OAAO;AAAA,IACP,UAAU;AAAA,EAAA;AAEd;"}
1
+ {"version":3,"file":"fr.js","sources":["../../src/locales/fr.tsx"],"sourcesContent":["import { fr as uiFr } from \"@ostack.tech/ui\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\n\n/** `fr` locale. */\nexport const fr: LocalizationObject = {\n baseLocale: uiFr,\n AnnexesManager: {\n \"aria-label\": \"Annexes du formulaire\",\n menuButtonText: \"Annexes\",\n addAnnexText: \"Ajouter une annexe\",\n removeAnnexButtonLabel: \"Supprimer une annexe\",\n removeAnnexKeyboardHint:\n \"Appuyez sur la touche «\\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 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 issuesPanelLabel: \"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 du formulaire\",\n },\n FormPage: {\n helperButtonLabel: \"Afficher l’aide\",\n },\n IssueMessages: {\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 keybinds: \"$mod+O\",\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 SaveAction: {\n label: \"Enregistrer\",\n keybinds: \"$mod+S\",\n saveOptionsLabel: \"Options d’enregistrement\",\n saveAsLabel: \"Enregistrer sous…\",\n saveAsKeybinds: \"$mod+Shift+S\",\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 keybinds: \"$mod+Enter\",\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 keybinds: \"F7\",\n },\n};\n"],"names":["uiFr"],"mappings":";;AAKO,MAAM,KAAyB;AAAA,EACpC,YAAYA;AAAAA,EACZ,gBAAgB;AAAA,IACd,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,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,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,kBAAkB;AAAA,IAClB,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,4BA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AA,IACP,UAAU;AAAA,IACV,kBAAkB;AAAA,IAClB,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,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,UAAU;AAAA,IACV,aAAa;AAAA,IACb,mBACE;AAAA,IAEF,kBAAkB;AAAA,IAClB,8BACE;AAAA,IAGF,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,MAA8C,QAAQ;AAAA,MAAE;AAAA,IAAA,GAAS;AAAA,IAErE,qBAAqB;AAAA,EAAA;AAAA,EAEvB,gBAAgB;AAAA,IACd,OAAO;AAAA,IACP,UAAU;AAAA,EAAA;AAEd;"}
@@ -110,8 +110,8 @@ const pt = {
110
110
  dialogDescription: "Por favor confirme que pretende continuar com a entrega da declaração.",
111
111
  dialogCancelText: "Cancelar",
112
112
  confirmWarningsCheckboxLabel: "Declaro que tomei conhecimento dos alertas gerados pelos dados desta declaração e que desejo continuar sem alterar os respetivos dados.",
113
- successMessage: () => "Declaração entregue com sucesso.",
114
- errorMessage: () => "Algo correu mal ao entregar a declaração. Por favor volte a tentar mais tarde."
113
+ successMessage: "Declaração entregue com sucesso.",
114
+ errorMessage: "Algo correu mal ao entregar a declaração. Por favor volte a tentar mais tarde."
115
115
  },
116
116
  TableControlAddRowTrigger: {
117
117
  defaultButtonText: "Adicionar linha"
@@ -1 +1 @@
1
- {"version":3,"file":"pt.js","sources":["../../src/locales/pt.tsx"],"sourcesContent":["import { pt as uiPt } from \"@ostack.tech/ui\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\n\n/** `pt` locale. */\nexport const pt: LocalizationObject = {\n baseLocale: uiPt,\n AnnexesManager: {\n \"aria-label\": \"Anexos do formulário\",\n menuButtonText: \"Anexos\",\n addAnnexText: \"Adicionar anexo\",\n removeAnnexButtonLabel: \"Remover anexo\",\n removeAnnexKeyboardHint: \"Pressione a tecla “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 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 issuesPanelLabel: \"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 do formulário\",\n },\n FormPage: {\n helperButtonLabel: \"Mostrar ajuda\",\n },\n IssueMessages: {\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 keybinds: \"$mod+O\",\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 SaveAction: {\n label: \"Gravar\",\n keybinds: \"$mod+S\",\n saveOptionsLabel: \"Opções de gravação\",\n saveAsLabel: \"Gravar como…\",\n saveAsKeybinds: \"$mod+Shift+S\",\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 keybinds: \"$mod+Enter\",\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 keybinds: \"F7\",\n },\n};\n"],"names":["uiPt"],"mappings":";;AAKO,MAAM,KAAyB;AAAA,EACpC,YAAYA;AAAAA,EACZ,gBAAgB;AAAA,IACd,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,wBAAwB;AAAA,IACxB,yBAAyB;AAAA,IACzB,+BAA+B;AAAA,IAC/B,iC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;AAAA,MAA6C,QAAQ;AAAA,MAAE;AAAA,IAAA,GAAC;AAAA,IAE5D,qBAAqB;AAAA,EAAA;AAAA,EAEvB,gBAAgB;AAAA,IACd,OAAO;AAAA,IACP,UAAU;AAAA,EAAA;AAEd;"}
1
+ {"version":3,"file":"pt.js","sources":["../../src/locales/pt.tsx"],"sourcesContent":["import { pt as uiPt } from \"@ostack.tech/ui\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\n\n/** `pt` locale. */\nexport const pt: LocalizationObject = {\n baseLocale: uiPt,\n AnnexesManager: {\n \"aria-label\": \"Anexos do formulário\",\n menuButtonText: \"Anexos\",\n addAnnexText: \"Adicionar anexo\",\n removeAnnexButtonLabel: \"Remover anexo\",\n removeAnnexKeyboardHint: \"Pressione a tecla “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 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 issuesPanelLabel: \"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 do formulário\",\n },\n FormPage: {\n helperButtonLabel: \"Mostrar ajuda\",\n },\n IssueMessages: {\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 keybinds: \"$mod+O\",\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 SaveAction: {\n label: \"Gravar\",\n keybinds: \"$mod+S\",\n saveOptionsLabel: \"Opções de gravação\",\n saveAsLabel: \"Gravar como…\",\n saveAsKeybinds: \"$mod+Shift+S\",\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 keybinds: \"$mod+Enter\",\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\",\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,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,IACP,UAAU;AAAA,EAAA;AAEd;"}
@@ -1278,6 +1278,12 @@ function useFormLoader({
1278
1278
  if (!decode2) {
1279
1279
  throw new Error("No `decode` function was provided.");
1280
1280
  }
1281
+ if (successMessage2 === void 0) {
1282
+ successMessage2 = locale.LoadAction.successMessage;
1283
+ }
1284
+ if (errorMessage2 === void 0) {
1285
+ errorMessage2 = locale.LoadAction.errorMessage;
1286
+ }
1281
1287
  const validationModeIsAuto = formManager.autoValidationStatus !== "inactive";
1282
1288
  let file = null;
1283
1289
  try {
@@ -1308,8 +1314,8 @@ function useFormLoader({
1308
1314
  }
1309
1315
  })
1310
1316
  );
1311
- const message = successMessage2?.(file) || locale.LoadAction.successMessage?.(file);
1312
- if (message) {
1317
+ const message = typeof successMessage2 === "function" ? successMessage2(file) : successMessage2;
1318
+ if (message != null) {
1313
1319
  addToast(message, { severity: "success" });
1314
1320
  }
1315
1321
  } catch (err) {
@@ -1319,8 +1325,8 @@ function useFormLoader({
1319
1325
  if (process.env.NODE_ENV !== "production") {
1320
1326
  console.error(err);
1321
1327
  }
1322
- const message = errorMessage2?.(file, err) || locale.LoadAction.errorMessage?.(file, err);
1323
- if (message) {
1328
+ const message = typeof errorMessage2 === "function" ? errorMessage2(file, err) : errorMessage2;
1329
+ if (message != null) {
1324
1330
  addToast(message, { severity: "danger" });
1325
1331
  }
1326
1332
  } finally {
@@ -5678,6 +5684,12 @@ function useFormSaver({
5678
5684
  if (!encode2) {
5679
5685
  throw new Error("No `encode` function was provided.");
5680
5686
  }
5687
+ if (successMessage2 === void 0) {
5688
+ successMessage2 = locale.SaveAction.successMessage;
5689
+ }
5690
+ if (errorMessage2 === void 0) {
5691
+ errorMessage2 = locale.SaveAction.errorMessage;
5692
+ }
5681
5693
  _setState({ saving: true });
5682
5694
  let fileHandle = getState().latestFileHandles?.[id2] ?? null;
5683
5695
  try {
@@ -5713,8 +5725,8 @@ function useFormSaver({
5713
5725
  })
5714
5726
  );
5715
5727
  if (supported) {
5716
- const message = successMessage2?.(fileHandle) || locale.SaveAction.successMessage?.(fileHandle);
5717
- if (message) {
5728
+ const message = typeof successMessage2 == "function" ? successMessage2(fileHandle) : successMessage2;
5729
+ if (message != null) {
5718
5730
  addToast(message, { severity: "success" });
5719
5731
  }
5720
5732
  }
@@ -5725,8 +5737,8 @@ function useFormSaver({
5725
5737
  if (process.env.NODE_ENV !== "production") {
5726
5738
  console.error(err);
5727
5739
  }
5728
- const message = errorMessage2?.(fileHandle, err) || locale.SaveAction.errorMessage?.(fileHandle, err);
5729
- if (message) {
5740
+ const message = typeof errorMessage2 == "function" ? errorMessage2(fileHandle, err) : errorMessage2;
5741
+ if (message != null) {
5730
5742
  addToast(message, { severity: "danger" });
5731
5743
  }
5732
5744
  } finally {
@@ -6236,8 +6248,12 @@ function SubmitAction({
6236
6248
  confirmWarningsCheckboxLabel ??= locale.SubmitAction.confirmWarningsCheckboxLabel;
6237
6249
  dialogOkText ??= locale.SubmitAction.dialogOkText ?? label;
6238
6250
  dialogCancelText ??= locale.SubmitAction.dialogCancelText;
6239
- successMessage ??= locale.SubmitAction.successMessage;
6240
- errorMessage ??= locale.SubmitAction.errorMessage;
6251
+ if (successMessage === void 0) {
6252
+ successMessage = locale.SubmitAction.successMessage;
6253
+ }
6254
+ if (errorMessage === void 0) {
6255
+ errorMessage = locale.SubmitAction.errorMessage;
6256
+ }
6241
6257
  const [confirmingSubmission, setConfirmingSubmission] = useState(false);
6242
6258
  const startIssuesNavigation = useStartIssuesNavigation();
6243
6259
  const { addToast } = useToastManager();
@@ -6275,8 +6291,8 @@ function SubmitAction({
6275
6291
  onInvalidSubmit?.(issues, event);
6276
6292
  };
6277
6293
  const handleSuccessfulSubmit = (submitResult, event) => {
6278
- const message = successMessage?.(submitResult);
6279
- if (message) {
6294
+ const message = typeof successMessage === "function" ? successMessage(submitResult) : successMessage;
6295
+ if (message != null) {
6280
6296
  addToast(message, { severity: "success" });
6281
6297
  }
6282
6298
  onSuccessfulSubmit?.(submitResult, event);
@@ -6288,8 +6304,8 @@ function SubmitAction({
6288
6304
  if (process.env.NODE_ENV !== "production") {
6289
6305
  console.error(error);
6290
6306
  }
6291
- const message = errorMessage?.(error);
6292
- if (message) {
6307
+ const message = typeof errorMessage === "function" ? errorMessage(error) : errorMessage;
6308
+ if (message != null) {
6293
6309
  addToast(message, { severity: "danger" });
6294
6310
  }
6295
6311
  onFailedSubmit?.(error, event);