@ostack.tech/ui-kform 0.5.0 → 0.6.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.
- package/dist/locales/en-GB.js +4 -4
- package/dist/locales/en-GB.js.map +1 -1
- package/dist/locales/en-US.js +4 -4
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/{fr.js → fr-FR.js} +5 -5
- package/dist/locales/fr-FR.js.map +1 -0
- package/dist/locales/{pt.js → pt-PT.js} +5 -5
- package/dist/locales/pt-PT.js.map +1 -0
- package/dist/ostack-ui-kform.js +148 -119
- package/dist/ostack-ui-kform.js.map +1 -1
- package/dist/types/components/PrintAction/PrintAction.d.ts +6 -5
- package/dist/types/locales/en-GB.d.ts +1 -1
- package/dist/types/locales/en-US.d.ts +1 -1
- package/dist/types/locales/{fr.d.ts → fr-FR.d.ts} +2 -2
- package/dist/types/locales/index.d.ts +4 -4
- package/dist/types/locales/{pt.d.ts → pt-PT.d.ts} +2 -2
- package/package.json +2 -2
- package/dist/locales/fr.js.map +0 -1
- package/dist/locales/pt.js.map +0 -1
|
@@ -27,12 +27,13 @@ export interface PrintActionProps extends Omit<ButtonProps, "children"> {
|
|
|
27
27
|
* ```tsx
|
|
28
28
|
* <Printer>
|
|
29
29
|
* <FormApp>
|
|
30
|
-
* <
|
|
30
|
+
* <PrinterContent>
|
|
31
|
+
* <TopBar>
|
|
32
|
+
* …
|
|
33
|
+
* <PrintAction />…
|
|
34
|
+
* </TopBar>
|
|
31
35
|
* …
|
|
32
|
-
*
|
|
33
|
-
* </TopBar>
|
|
34
|
-
*
|
|
35
|
-
* <PrinterContent>…</PrinterContent>
|
|
36
|
+
* </PrinterContent>
|
|
36
37
|
* </FormApp>
|
|
37
38
|
* </Printer>;
|
|
38
39
|
* ```
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LocalizationObject } from '../providers/LocalizationProvider';
|
|
2
|
-
/** `fr` locale. */
|
|
3
|
-
export declare const
|
|
2
|
+
/** `fr-FR` locale. */
|
|
3
|
+
export declare const locale: LocalizationObject;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
1
|
+
export { locale as enGB } from './en-GB.tsx';
|
|
2
|
+
export { locale as enUS } from './en-US.tsx';
|
|
3
|
+
export { locale as fr, locale as frFR } from './fr-FR.tsx';
|
|
4
|
+
export { locale as pt, locale as ptPT } from './pt-PT.tsx';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LocalizationObject } from '../providers/LocalizationProvider';
|
|
2
|
-
/** `pt` locale. */
|
|
3
|
-
export declare const
|
|
2
|
+
/** `pt-PT` locale. */
|
|
3
|
+
export declare const locale: LocalizationObject;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ostack.tech/ui-kform",
|
|
3
3
|
"description": "Integration of ostack/UI with ostack/KForm.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"homepage": "https://ui.ostack.tech/",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Opensoft",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@fortawesome/free-solid-svg-icons": "^6.2.0 || ^7.0.0",
|
|
53
53
|
"@ostack.tech/kform": "~0.31.0",
|
|
54
54
|
"@ostack.tech/kform-react": "~0.31.0",
|
|
55
|
-
"@ostack.tech/ui": "~0.
|
|
55
|
+
"@ostack.tech/ui": "~0.6.0",
|
|
56
56
|
"@types/react": "^18.0.0 || ^19.0.0",
|
|
57
57
|
"@types/react-dom": "^18.0.0 || ^19.0.0",
|
|
58
58
|
"date-fns": "^4.1.0",
|
package/dist/locales/fr.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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} ?</>\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 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 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} {errors === 1 ? \"Erreur\" : \"Erreurs\"}\n </>\n ),\n warningsLabel: (warnings) =>\n warnings === undefined ? (\n \"Alertes\"\n ) : (\n <>\n {warnings} {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 PrintAction: {\n label: \"Imprimer\",\n keybinds: \"$mod+P\",\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} ?</>\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,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,4BAA4B,aAAa,SAAS,IAChD,aAAa,cAAc,IAAI,cAAc,YAC/C,MACA;AAAA,QACN,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAA,EAAa,MACjD,SAAS,YAAY,OAAO,aAAa,cAAc,WACnD,2CAA2C,aAAa,SAAS,IAC/D,aAAa,cAA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,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;"}
|
package/dist/locales/pt.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 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 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} {errors === 1 ? \"Erro\" : \"Erros\"}\n </>\n ),\n warningsLabel: (warnings) =>\n warnings === undefined ? (\n \"Alertas\"\n ) : (\n <>\n {warnings} {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 PrintAction: {\n label: \"Imprimir\",\n keybinds: \"$mod+P\",\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,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,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,iBA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