@ostack.tech/ui-kform 0.15.3 → 0.15.5

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.
@@ -1,9 +1,9 @@
1
1
  import { t as en } from "../chunks/en-CaLvO1z0.js";
2
- import { enGB } from "@ostack.tech/ui";
2
+ import { locale as locale$1 } from "@ostack.tech/ui/locales/en-GB";
3
3
  //#region src/locales/en-GB.tsx
4
4
  /** `en-GB` locale. */
5
5
  var locale = {
6
- baseLocale: enGB,
6
+ baseLocale: locale$1,
7
7
  ...en
8
8
  };
9
9
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"en-GB.js","names":[],"sources":["../../src/locales/en-GB.tsx"],"sourcesContent":["import { enGB as uiEnGB } from \"@ostack.tech/ui\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\nimport { en } from \"./en.tsx\";\n\n/** `en-GB` locale. */\nexport const locale: LocalizationObject = {\n baseLocale: uiEnGB,\n ...en,\n};\n"],"mappings":";;;;AAMA,IAAa,SAA6B;CACxC,YAAY;CACZ,GAAG;AACL"}
1
+ {"version":3,"file":"en-GB.js","names":[],"sources":["../../src/locales/en-GB.tsx"],"sourcesContent":["import { locale as uiEnGB } from \"@ostack.tech/ui/locales/en-GB\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\nimport { en } from \"./en.tsx\";\n\n/** `en-GB` locale. */\nexport const locale: LocalizationObject = {\n baseLocale: uiEnGB,\n ...en,\n};\n"],"mappings":";;;;AAMA,IAAa,SAA6B;CACxC,YAAY;CACZ,GAAG;AACL"}
@@ -1,9 +1,9 @@
1
1
  import { t as en } from "../chunks/en-CaLvO1z0.js";
2
- import { enUS } from "@ostack.tech/ui";
2
+ import { locale as locale$1 } from "@ostack.tech/ui/locales/en-US";
3
3
  //#region src/locales/en-US.tsx
4
4
  /** `en-US` locale. */
5
5
  var locale = {
6
- baseLocale: enUS,
6
+ baseLocale: locale$1,
7
7
  ...en
8
8
  };
9
9
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"en-US.js","names":[],"sources":["../../src/locales/en-US.tsx"],"sourcesContent":["import { enUS as uiEnUS } from \"@ostack.tech/ui\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\nimport { en } from \"./en.tsx\";\n\n/** `en-US` locale. */\nexport const locale: LocalizationObject = {\n baseLocale: uiEnUS,\n ...en,\n};\n"],"mappings":";;;;AAMA,IAAa,SAA6B;CACxC,YAAY;CACZ,GAAG;AACL"}
1
+ {"version":3,"file":"en-US.js","names":[],"sources":["../../src/locales/en-US.tsx"],"sourcesContent":["import { locale as uiEnUS } from \"@ostack.tech/ui/locales/en-US\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\nimport { en } from \"./en.tsx\";\n\n/** `en-US` locale. */\nexport const locale: LocalizationObject = {\n baseLocale: uiEnUS,\n ...en,\n};\n"],"mappings":";;;;AAMA,IAAa,SAA6B;CACxC,YAAY;CACZ,GAAG;AACL"}
@@ -1,9 +1,9 @@
1
- import { frFR } from "@ostack.tech/ui";
2
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { locale as locale$1 } from "@ostack.tech/ui/locales/fr-FR";
3
3
  //#region src/locales/fr-FR.tsx
4
4
  /** `fr-FR` locale. */
5
5
  var locale = {
6
- baseLocale: frFR,
6
+ baseLocale: locale$1,
7
7
  AnnexesManager: {
8
8
  "aria-label": "Annexes",
9
9
  menuButtonText: "Annexes",
@@ -1 +1 @@
1
- {"version":3,"file":"fr-FR.js","names":[],"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 CheckboxGroupControl: {},\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 RadioGroupControl: {},\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 SelectControl: {},\n SelectMultipleControl: {},\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 UnknownValue: {\n label: \"Valeur inconnue\",\n },\n ValidateAction: {\n label: \"Valider\",\n },\n};\n"],"mappings":";;;;AAKA,IAAa,SAA6B;CACxC,YAAY;CACZ,gBAAgB;EACd,cAAc;EACd,gBAAgB;EAChB,iBAAiB;EACjB,cAAc;EACd,wBAAwB;EACxB,yBACE;EACF,+BAA+B;EAC/B,kCAAkC,cAChC,qBAAA,UAAA,EAAA,UAAA;GAAE;GAA8C;GAAU;EAAW,EAAA,CAAA;EAEvE,gCAAgC;CAClC;CACA,sBAAsB,CAAC;CACvB,kBAAkB;EAChB,6BAA6B;EAC7B,2BAA2B;CAC7B;CACA,aAAa;EACX,kBAAkB;EAClB,qBAAqB;EACrB,yBAAyB;EACzB,cACE,qBAAA,UAAA,EAAA,UAAA;GAAE;GAEA,oBAAC,MAAD,CAAK,CAAA;GAAC;EAGN,EAAA,CAAA;CAEN;CACA,SAAS;EACP,WAAW;EACX,eAAe,EACb,OAAO;GACL,cAAc;GACd,iBAAiB;GACjB,gBAAgB;GAChB,eAAe;GACf,iBAAiB,OAAO,EAAE,UAAU,EAAE,MAAM,qBAC1C,SAAS,YACT,OAAO,aAAa,cAAc,YAClC,aAAa,cAAc,aAAa,YACpC,4BAA4B,aAAa,UAAU,GACjD,aAAa,cAAc,IAAI,cAAc,aAC9C,KACD;GACN,WAAW,OAAO,EAAE,UAAU,EAAE,MAAM,qBACpC,SAAS,YAAY,OAAO,aAAa,cAAc,WACnD,2CAA2C,aAAa,UAAU,GAChE,aAAa,cAAc,IAAI,cAAc,aAC9C,KACD;GACN,UAAU,OAAO,EAAE,UAAU,EAAE,MAAM,qBACnC,SAAS,YAAY,OAAO,aAAa,cAAc,WACnD,kCAAkC,aAAa,UAAU,GACvD,aAAa,cAAc,IAAI,cAAc,aAC9C,KACD;GACN,eAAe,OAAO,EAAE,UAAU,EAAE,qBAClC,OAAO,aAAa,YAAY,YAChC,aAAa,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C7C,EAAA,CAAA;EAEN,kBAAkB;EAClB,0BAA0B;EAC1B,sBAAsB;EACtB,uBAAuB;EACvB,sBAAsB;EACtB,kBAAkB,aAAa,eAC7B,wBAAwB,YAAY,OAAO,WAAW;EACxD,iBAAiB;EACjB,eAAe;EACf,iBACE;CAEJ;CACA,eAAe,EACb,OAAO,yBACT;CACA,YAAY;EACV,OAAO;EACP,iBAAiB,SACf,kBAAkB,KAAK,KAAK;EAC9B,eAAe,SACb,OACI,2CAA2C,KAAK,KAAK,2FAGrD;CAGR;CACA,aAAa,EACX,OAAO,WACT;CACA,mBAAmB,CAAC;CACpB,YAAY;EACV,OAAO;EACP,kBAAkB;EAClB,aAAa;EACb,iBAAiB,eACf,kBAAkB,WAAW,KAAK;EACpC,eAAe,eACb,aACI,8CAA8C,WAAW,KAAK,8GAG9D;CAGR;CACA,eAAe,CAAC;CAChB,uBAAuB,CAAC;CACxB,cAAc;EACZ,OAAO;EACP,aAAa;EACb,mBACE;EAEF,kBAAkB;EAClB,8BACE;EAGF,gBAAgB;EAChB,cACE;CAEJ;CACA,2BAA2B,EACzB,OAAO,oBACT;CACA,8BAA8B;EAC5B,OAAO;EACP,oBAAoB;EACpB,uBAAuB,UACrB,qBAAA,UAAA,EAAA,UAAA;GAAE;GAA8C,QAAQ;GAAE;EAAW,EAAA,CAAA;EAEvE,qBAAqB;CACvB;CACA,cAAc,EACZ,OAAO,kBACT;CACA,gBAAgB,EACd,OAAO,UACT;AACF"}
1
+ {"version":3,"file":"fr-FR.js","names":[],"sources":["../../src/locales/fr-FR.tsx"],"sourcesContent":["import { locale as uiFrFR } from \"@ostack.tech/ui/locales/fr-FR\";\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 CheckboxGroupControl: {},\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 RadioGroupControl: {},\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 SelectControl: {},\n SelectMultipleControl: {},\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 UnknownValue: {\n label: \"Valeur inconnue\",\n },\n ValidateAction: {\n label: \"Valider\",\n },\n};\n"],"mappings":";;;;AAKA,IAAa,SAA6B;CACxC,YAAY;CACZ,gBAAgB;EACd,cAAc;EACd,gBAAgB;EAChB,iBAAiB;EACjB,cAAc;EACd,wBAAwB;EACxB,yBACE;EACF,+BAA+B;EAC/B,kCAAkC,cAChC,qBAAA,UAAA,EAAA,UAAA;GAAE;GAA8C;GAAU;EAAW,EAAA,CAAA;EAEvE,gCAAgC;CAClC;CACA,sBAAsB,CAAC;CACvB,kBAAkB;EAChB,6BAA6B;EAC7B,2BAA2B;CAC7B;CACA,aAAa;EACX,kBAAkB;EAClB,qBAAqB;EACrB,yBAAyB;EACzB,cACE,qBAAA,UAAA,EAAA,UAAA;GAAE;GAEA,oBAAC,MAAD,CAAK,CAAA;GAAC;EAGN,EAAA,CAAA;CAEN;CACA,SAAS;EACP,WAAW;EACX,eAAe,EACb,OAAO;GACL,cAAc;GACd,iBAAiB;GACjB,gBAAgB;GAChB,eAAe;GACf,iBAAiB,OAAO,EAAE,UAAU,EAAE,MAAM,qBAC1C,SAAS,YACT,OAAO,aAAa,cAAc,YAClC,aAAa,cAAc,aAAa,YACpC,4BAA4B,aAAa,UAAU,GACjD,aAAa,cAAc,IAAI,cAAc,aAC9C,KACD;GACN,WAAW,OAAO,EAAE,UAAU,EAAE,MAAM,qBACpC,SAAS,YAAY,OAAO,aAAa,cAAc,WACnD,2CAA2C,aAAa,UAAU,GAChE,aAAa,cAAc,IAAI,cAAc,aAC9C,KACD;GACN,UAAU,OAAO,EAAE,UAAU,EAAE,MAAM,qBACnC,SAAS,YAAY,OAAO,aAAa,cAAc,WACnD,kCAAkC,aAAa,UAAU,GACvD,aAAa,cAAc,IAAI,cAAc,aAC9C,KACD;GACN,eAAe,OAAO,EAAE,UAAU,EAAE,qBAClC,OAAO,aAAa,YAAY,YAChC,aAAa,YAAY,aAAa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CAAA;EAEN,kBAAkB;EAClB,0BAA0B;EAC1B,sBAAsB;EACtB,uBAAuB;EACvB,sBAAsB;EACtB,kBAAkB,aAAa,eAC7B,wBAAwB,YAAY,OAAO,WAAW;EACxD,iBAAiB;EACjB,eAAe;EACf,iBACE;CAEJ;CACA,eAAe,EACb,OAAO,yBACT;CACA,YAAY;EACV,OAAO;EACP,iBAAiB,SACf,kBAAkB,KAAK,KAAK;EAC9B,eAAe,SACb,OACI,2CAA2C,KAAK,KAAK,2FAGrD;CAGR;CACA,aAAa,EACX,OAAO,WACT;CACA,mBAAmB,CAAC;CACpB,YAAY;EACV,OAAO;EACP,kBAAkB;EAClB,aAAa;EACb,iBAAiB,eACf,kBAAkB,WAAW,KAAK;EACpC,eAAe,eACb,aACI,8CAA8C,WAAW,KAAK,8GAG9D;CAGR;CACA,eAAe,CAAC;CAChB,uBAAuB,CAAC;CACxB,cAAc;EACZ,OAAO;EACP,aAAa;EACb,mBACE;EAEF,kBAAkB;EAClB,8BACE;EAGF,gBAAgB;EAChB,cACE;CAEJ;CACA,2BAA2B,EACzB,OAAO,oBACT;CACA,8BAA8B;EAC5B,OAAO;EACP,oBAAoB;EACpB,uBAAuB,UACrB,qBAAA,UAAA,EAAA,UAAA;GAAE;GAA8C,QAAQ;GAAE;EAAW,EAAA,CAAA;EAEvE,qBAAqB;CACvB;CACA,cAAc,EACZ,OAAO,kBACT;CACA,gBAAgB,EACd,OAAO,UACT;AACF"}
@@ -1,9 +1,9 @@
1
- import { ptPT } from "@ostack.tech/ui";
2
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { locale as locale$1 } from "@ostack.tech/ui/locales/pt-PT";
3
3
  //#region src/locales/pt-PT.tsx
4
4
  /** `pt-PT` locale. */
5
5
  var locale = {
6
- baseLocale: ptPT,
6
+ baseLocale: locale$1,
7
7
  AnnexesManager: {
8
8
  "aria-label": "Anexos",
9
9
  menuButtonText: "Anexos",
@@ -1 +1 @@
1
- {"version":3,"file":"pt-PT.js","names":[],"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 CheckboxGroupControl: {},\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 RadioGroupControl: {},\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 SelectControl: {},\n SelectMultipleControl: {},\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 UnknownValue: {\n label: \"Valor desconhecido\",\n },\n ValidateAction: {\n label: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kB,aAAa,eAC7B,uBAAuB,YAAY,MAAM,WAAW;EACtD,iBAAiB;EACjB,eAAe;EACf,iBACE;CAEJ;CACA,eAAe,EACb,OAAO,oBACT;CACA,YAAY;EACV,OAAO;EACP,iBAAiB,SAAS,aAAa,KAAK,KAAK;EACjD,eAAe,SACb,OACI,yCAAyC,KAAK,KAAK,qFAGnD;CAER;CACA,aAAa,EACX,OAAO,WACT;CACA,mBAAmB,CAAC;CACpB,YAAY;EACV,OAAO;EACP,kBAAkB;EAClB,aAAa;EACb,iBAAiB,eACf,aAAa,WAAW,KAAK;EAC/B,eAAe,eACb,aACI,uCAAuC,WAAW,KAAK,gFAGvD;CAER;CACA,eAAe,CAAC;CAChB,uBAAuB,CAAC;CACxB,cAAc;EACZ,OAAO;EACP,aAAa;EACb,mBACE;EACF,kBAAkB;EAClB,8BACE;EAEF,gBAAgB;EAChB,cACE;CAEJ;CACA,2BAA2B,EACzB,OAAO,kBACT;CACA,8BAA8B;EAC5B,OAAO;EACP,oBAAoB;EACpB,uBAAuB,UACrB,qBAAA,UAAA,EAAA,UAAA;GAAE;GAA6C,QAAQ;GAAE;EAAG,EAAA,CAAA;EAE9D,qBAAqB;CACvB;CACA,cAAc,EACZ,OAAO,qBACT;CACA,gBAAgB,EACd,OAAO,UACT;AACF"}
1
+ {"version":3,"file":"pt-PT.js","names":[],"sources":["../../src/locales/pt-PT.tsx"],"sourcesContent":["import { locale as uiPtPT } from \"@ostack.tech/ui/locales/pt-PT\";\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 CheckboxGroupControl: {},\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 RadioGroupControl: {},\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 SelectControl: {},\n SelectMultipleControl: {},\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 UnknownValue: {\n label: \"Valor desconhecido\",\n },\n ValidateAction: {\n label: \"Validar\",\n },\n};\n"],"mappings":";;;;AAKA,IAAa,SAA6B;CACxC,YAAY;CACZ,gBAAgB;EACd,cAAc;EACd,gBAAgB;EAChB,iBAAiB;EACjB,cAAc;EACd,wBAAwB;EACxB,yBAAyB;EACzB,+BAA+B;EAC/B,kCAAkC,cAChC,qBAAA,UAAA,EAAA,UAAA;GAAE;GAA4C;GAAU;EAAG,EAAA,CAAA;EAE7D,gCAAgC;CAClC;CACA,sBAAsB,CAAC;CACvB,kBAAkB;EAChB,6BAA6B;EAC7B,2BAA2B;CAC7B;CACA,aAAa;EACX,kBAAkB;EAClB,qBAAqB;EACrB,yBAAyB;E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K,gFAGvD;CAER;CACA,eAAe,CAAC;CAChB,uBAAuB,CAAC;CACxB,cAAc;EACZ,OAAO;EACP,aAAa;EACb,mBACE;EACF,kBAAkB;EAClB,8BACE;EAEF,gBAAgB;EAChB,cACE;CAEJ;CACA,2BAA2B,EACzB,OAAO,kBACT;CACA,8BAA8B;EAC5B,OAAO;EACP,oBAAoB;EACpB,uBAAuB,UACrB,qBAAA,UAAA,EAAA,UAAA;GAAE;GAA6C,QAAQ;GAAE;EAAG,EAAA,CAAA;EAE9D,qBAAqB;CACvB;CACA,cAAc,EACZ,OAAO,qBACT;CACA,gBAAgB,EACd,OAAO,UACT;AACF"}
@@ -2,9 +2,9 @@ import { locale } from "./locales/en-GB.js";
2
2
  import { locale as locale$1 } from "./locales/en-US.js";
3
3
  import { locale as locale$2 } from "./locales/fr-FR.js";
4
4
  import { locale as locale$3 } from "./locales/pt-PT.js";
5
- import { Alert, AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, Button, ButtonGroup, Card, CardBody, CardHeader, CardTitle, Checkbox, CheckboxGroup, CloseButton, Container, ControlAddon, DataTable, DataTableCell, DataTableContent, DataTablePagination, DataTableRow, DataTableRowsPerPage, DateInput, DateRangeInput, Dialog, DialogBody, DialogContent, DialogHeader, DialogTitle, DialogTrigger, DocumentTitle, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EMPTY_STORE, ErrorBoundary, Feedback, FeedbackList, FeedbackPopover, Field, Icon, IconButton, Input, Layer, Link, LocalizationProvider as LocalizationProvider$1, MenuList, MenuListItem, NATIVE_CONTROLS, NumericInput, Option, OptionsGroup, Popover, PopoverContent, PopoverTrigger, PrefixProvider, PrinterTrigger, Radio, RadioGroup, Root, Select, Slot, Spinner, Stack, Step, StepContent, StepList, Stepper, StepperFinishTrigger, StepperNextTrigger, StepperPreviousTrigger, Tab, TabContent, TabList, Tabs, TextArea, Tooltip, VisuallyHidden, boolDataAttr, combineAriaIds, combineEventHandlers, computed, controlStatusToAccent, cx, setBoolDataAttr, useAlertDialog, useCombinedRef, useConstant, useControllableState, useCssVars, useDataTableApiRef, useDataTableColumnLabel, useDateTransformer, useErrorReporter, useIntersectionObserver, useIsInRoot, useIsInTableCell, useKeyboardShortcut, useLatestRef, useMeasure, useMediaBreakpointUp, useOnFieldLabelChange, usePrefix as usePrefix$1, usePrevious, usePrint, usePrintClassNames, usePrintInProgress, usePrinterDocumentTitle, usePrinting, useResponsiveValues, useScrollPosition, useSpacing, useStartPrintingTask, useToastManager, warnOnce } from "@ostack.tech/ui";
6
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
6
  import { AtPathError, CurrentPath, FormContext, InvalidPathError, equals, formatNumericAsString, formatTemporalAsString, toFileList, useController, useCurrentPath, useFileInput, useForm, useFormContext, useFormController, useFormManager, useFormattedValue, useFormatter, useInput, useIssuesTracker, useListableInput, useNumericInput, useResolvedPath, useTemporalInput } from "@ostack.tech/kform-react";
7
+ import { Alert, AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, Button, ButtonGroup, Card, CardBody, CardHeader, CardTitle, Checkbox, CheckboxGroup, CloseButton, Container, ControlAddon, DataTable, DataTableCell, DataTableContent, DataTablePagination, DataTableRow, DataTableRowsPerPage, DateInput, DateRangeInput, Dialog, DialogBody, DialogContent, DialogHeader, DialogTitle, DialogTrigger, DocumentTitle, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EMPTY_STORE, ErrorBoundary, Feedback, FeedbackList, FeedbackPopover, Field, Icon, IconButton, Input, Layer, Link, LocalizationProvider as LocalizationProvider$1, MenuList, MenuListItem, NATIVE_CONTROLS, NumericInput, Option, OptionsGroup, Popover, PopoverContent, PopoverTrigger, PrefixProvider, PrinterTrigger, Radio, RadioGroup, Root, Select, Slot, Spinner, Stack, Step, StepContent, StepList, Stepper, StepperFinishTrigger, StepperNextTrigger, StepperPreviousTrigger, Tab, TabContent, TabList, Tabs, TextArea, Tooltip, VisuallyHidden, boolDataAttr, combineAriaIds, combineEventHandlers, computed, controlStatusToAccent, cx, setBoolDataAttr, useAlertDialog, useCombinedRef, useConstant, useControllableState, useCssVars, useDataTableApiRef, useDataTableColumnLabel, useDateTransformer, useErrorReporter, useIntersectionObserver, useIsInRoot, useIsInTableCell, useKeyboardShortcut, useLatestRef, useMeasure, useMediaBreakpointUp, useOnFieldLabelChange, usePrefix as usePrefix$1, usePrevious, usePrint, usePrintClassNames, usePrintInProgress, usePrinterDocumentTitle, usePrinting, useResponsiveValues, useScrollPosition, useSpacing, useStartPrintingTask, useToastManager, warnOnce } from "@ostack.tech/ui";
8
8
  import { Children, Suspense, createContext, forwardRef, isValidElement, memo, startTransition, useCallback, useContext, useDeferredValue, useEffect, useId, useImperativeHandle, useMemo, useRef, useState } from "react";
9
9
  import { createStore, useStore } from "zustand";
10
10
  import { useShallow } from "zustand/react/shallow";
@@ -13,7 +13,7 @@ import { subscribeWithSelector } from "zustand/middleware";
13
13
  import { shallow } from "zustand/shallow";
14
14
  import { fileOpen, fileSave, supported } from "browser-fs-access";
15
15
  import { faAngleLeft, faAngleRight, faAnglesLeft, faAnglesRight, faArrowRight, faArrowsToDot, faCaretDown, faChevronDown, faChevronUp, faCircleCheck, faCircleExclamation, faCircleQuestion, faDownload, faFileLines, faFloppyDisk, faFolderOpen, faPlus, faPrint, faTrash, faTriangleExclamation } from "@fortawesome/free-solid-svg-icons";
16
- import { addDays, format, max, min, parseISO } from "date-fns";
16
+ import { addDays, format, formatISO, max, min, parseISO } from "date-fns";
17
17
  import { faCircleCheck as faCircleCheck$1 } from "@fortawesome/free-regular-svg-icons";
18
18
  //#region src/providers/PrefixSuffixProvider/defaultPrefixSuffix.ts
19
19
  /** Initial default library prefix-suffix. */
@@ -2224,7 +2224,6 @@ function useRegisterControl({ controller, issuesPanelLabel, ariaLabel, issuesPan
2224
2224
  const { useState, usePath, useInitialized, useDisplayStatus } = controller;
2225
2225
  const path = usePath();
2226
2226
  const formIsDisabled = useFormIsDisabled();
2227
- const displayDisabled = useState((state) => state.initialized && !state.exists) || formIsDisabled;
2228
2227
  const displayReadOnly = useFormIsReadOnly();
2229
2228
  const initialized = useInitialized();
2230
2229
  const displayStatusToDisplay = useDeferredValue(useDisplayStatus());
@@ -2251,7 +2250,7 @@ function useRegisterControl({ controller, issuesPanelLabel, ariaLabel, issuesPan
2251
2250
  ]);
2252
2251
  return useMemo(() => ({
2253
2252
  displayLoading: printing ? false : !initialized,
2254
- displayDisabled: printing ? false : displayDisabled,
2253
+ displayDisabled: printing ? false : formIsDisabled,
2255
2254
  displayReadOnly: printing ? false : displayReadOnly,
2256
2255
  displayStatusToDisplay: printing ? void 0 : displayStatusToDisplay,
2257
2256
  displayValidating: printing ? false : displayValidating,
@@ -2259,15 +2258,15 @@ function useRegisterControl({ controller, issuesPanelLabel, ariaLabel, issuesPan
2259
2258
  autofocusRef,
2260
2259
  handleFocus
2261
2260
  }), [
2262
- autofocusRef,
2263
- displayValidating,
2264
- displayDisabled,
2261
+ printing,
2262
+ initialized,
2263
+ formIsDisabled,
2265
2264
  displayReadOnly,
2266
2265
  displayStatusToDisplay,
2267
- handleFocus,
2268
- initialized,
2266
+ displayValidating,
2269
2267
  issuesToDisplay,
2270
- printing
2268
+ autofocusRef,
2269
+ handleFocus
2271
2270
  ]);
2272
2271
  }
2273
2272
  /** Hook used to register a label for all control field's controls. */
@@ -2327,7 +2326,7 @@ var CheckboxControl = forwardRef(function CheckboxControl({ path, issueMessages,
2327
2326
  required: required ?? restrictions.required === true,
2328
2327
  loading: displayLoading || loading,
2329
2328
  showSpinner: displayValidating || showSpinner,
2330
- disabled: displayDisabled || disabled,
2329
+ disabled: displayDisabled || disabled || inputProps.disabled,
2331
2330
  readOnly: displayReadOnly || readOnly || inputProps.readOnly,
2332
2331
  status: displayStatusToControlStatus(displayStatusToDisplay),
2333
2332
  onCheckedChange: combineEventHandlers(onCheckedChange, combineEventHandlers(inputProps.onChange, setFormattedValue)),
@@ -2507,7 +2506,7 @@ var CheckboxGroupControl = forwardRef(function CheckboxGroupControl({ path, opti
2507
2506
  required: required ?? restrictions.required === true,
2508
2507
  loading: displayLoading || loading,
2509
2508
  showSpinner: displayValidating || showSpinner,
2510
- disabled: displayDisabled || disabled,
2509
+ disabled: displayDisabled || disabled || inputProps.disabled,
2511
2510
  readOnly: displayReadOnly || readOnly || inputProps.readOnly,
2512
2511
  status: displayStatusToControlStatus(displayStatusToDisplay),
2513
2512
  onValueChange: handleValueChange,
@@ -2627,7 +2626,7 @@ var DateControl = forwardRef(function DateControl({ path, issueMessages, issuesP
2627
2626
  maxDate: maxDate ?? maxDateRestriction(schema),
2628
2627
  loading: displayLoading || loading,
2629
2628
  showSpinner: displayValidating || showSpinner,
2630
- disabled: displayDisabled || disabled,
2629
+ disabled: displayDisabled || disabled || inputProps.disabled,
2631
2630
  readOnly: displayReadOnly || readOnly || inputProps.readOnly,
2632
2631
  status: displayStatusToControlStatus(displayStatusToDisplay),
2633
2632
  endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [popoverIssues, endAdornment] }),
@@ -2740,7 +2739,7 @@ var DateRangeControl = forwardRef(function DateRangeControl({ startPath, endPath
2740
2739
  loading: displayStartLoading || displayEndLoading || loading,
2741
2740
  showStartSpinner: displayStartValidating || showStartSpinner,
2742
2741
  showEndSpinner: displayEndValidating || showEndSpinner,
2743
- disabled: displayStartDisabled && displayEndDisabled || disabled,
2742
+ disabled: displayStartDisabled && displayEndDisabled || disabled || startInputProps?.disabled && endInputProps?.disabled,
2744
2743
  readOnly: displayStartReadOnly && displayEndReadOnly || readOnly || startInputProps?.readOnly && endInputProps?.readOnly,
2745
2744
  status: startDisplayStatusToDisplay === "error" || endDisplayStatusToDisplay === "error" ? "invalid" : startDisplayStatusToDisplay === "warning" || endDisplayStatusToDisplay === "warning" ? "warned" : void 0,
2746
2745
  onValueChange: combineEventHandlers(onValueChange, handleValueChange),
@@ -2748,7 +2747,7 @@ var DateRangeControl = forwardRef(function DateRangeControl({ startPath, endPath
2748
2747
  startInputProps: {
2749
2748
  name: startControllerInputProps.name,
2750
2749
  ...startInputProps,
2751
- disabled: displayStartDisabled,
2750
+ disabled: displayStartDisabled || startInputProps?.disabled,
2752
2751
  readOnly: displayStartReadOnly || startInputProps?.readOnly,
2753
2752
  onFocus: combineEventHandlers(startInputProps?.onFocus, handleStartFocus),
2754
2753
  ref: useCombinedRef(startControllerInputProps?.ref, useCombinedRef(startAutofocusRef, startInputProps?.ref))
@@ -2756,7 +2755,7 @@ var DateRangeControl = forwardRef(function DateRangeControl({ startPath, endPath
2756
2755
  endInputProps: {
2757
2756
  name: endControllerInputProps.name,
2758
2757
  ...endInputProps,
2759
- disabled: displayEndDisabled,
2758
+ disabled: displayEndDisabled || endInputProps?.disabled,
2760
2759
  readOnly: displayEndReadOnly || endInputProps?.readOnly,
2761
2760
  onFocus: combineEventHandlers(endInputProps?.onFocus, handleEndFocus),
2762
2761
  ref: useCombinedRef(endControllerInputProps?.ref, useCombinedRef(endAutofocusRef, endInputProps?.ref))
@@ -2836,7 +2835,7 @@ var FileControl = forwardRef(function FileControl({ path, issueMessages, issuesP
2836
2835
  accept: accept ?? (Array.isArray(restrictions.acceptedFileTypes) ? restrictions.acceptedFileTypes.join() : void 0),
2837
2836
  loading: displayLoading || loading,
2838
2837
  showSpinner: displayValidating || showSpinner,
2839
- disabled: displayDisabled || disabled,
2838
+ disabled: displayDisabled || disabled || inputProps.disabled,
2840
2839
  readOnly: displayReadOnly || readOnly || inputProps.readOnly,
2841
2840
  showClearButton,
2842
2841
  clearDescription,
@@ -4446,7 +4445,7 @@ var NumericControl = forwardRef(function NumericControl({ path, issueMessages, i
4446
4445
  exclusiveMax: exclusiveMax ?? (restrictions.exclusiveMax == null ? void 0 : formatNumericAsString(restrictions.exclusiveMax, schema)),
4447
4446
  loading: displayLoading || loading,
4448
4447
  showSpinner: displayValidating || showSpinner,
4449
- disabled: displayDisabled || disabled,
4448
+ disabled: displayDisabled || disabled || inputProps.disabled,
4450
4449
  readOnly: displayReadOnly || readOnly || inputProps.readOnly,
4451
4450
  status: displayStatusToControlStatus(displayStatusToDisplay),
4452
4451
  endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [popoverIssues, endAdornment] }),
@@ -4535,7 +4534,7 @@ function PrintAction({ label, keybinds, disabled, loading, onClick, ...otherProp
4535
4534
  }
4536
4535
  /** Default document title when one is not provided. */
4537
4536
  function defaultDocumentTitle(formTitle) {
4538
- return [formTitle, format(/* @__PURE__ */ new Date(), "yyyy-MM-dd")].filter(Boolean).join(" ");
4537
+ return [formTitle, formatISO(/* @__PURE__ */ new Date(), { representation: "date" })].filter(Boolean).join(" ");
4539
4538
  }
4540
4539
  //#endregion
4541
4540
  //#region src/components/RadioGroupControl/RadioGroupControl.tsx
@@ -4598,7 +4597,7 @@ var RadioGroupControl = forwardRef(function RadioGroupControl({ path, options, i
4598
4597
  required: required ?? restrictions.required === true,
4599
4598
  loading: displayLoading || loading,
4600
4599
  showSpinner: displayValidating || showSpinner,
4601
- disabled: displayDisabled || disabled,
4600
+ disabled: displayDisabled || disabled || inputProps.disabled,
4602
4601
  readOnly: displayReadOnly || readOnly || inputProps.readOnly,
4603
4602
  status: displayStatusToControlStatus(displayStatusToDisplay),
4604
4603
  showClearButton: showClearButton === "auto" ? formattedValue !== clearedFormattedValue : showClearButton,
@@ -4717,7 +4716,7 @@ function useFormIsSaving() {
4717
4716
  }
4718
4717
  /** Default file name when one is not provided. */
4719
4718
  function defaultFileName(formTitle, extension) {
4720
- return [[formTitle, format(/* @__PURE__ */ new Date(), "yyyy-MM-dd")].filter(Boolean).join(" "), extension].filter(Boolean).join("");
4719
+ return [[formTitle, formatISO(/* @__PURE__ */ new Date(), { representation: "date" })].filter(Boolean).join(" "), extension].filter(Boolean).join("");
4721
4720
  }
4722
4721
  //#endregion
4723
4722
  //#region src/components/SaveAction/SaveAction.tsx
@@ -4862,7 +4861,7 @@ var SelectControl = forwardRef(function SelectControl({ path, options: groupedOp
4862
4861
  required: required ?? restrictions.required === true,
4863
4862
  loading: displayLoading || loading,
4864
4863
  showSpinner: displayValidating || showSpinner,
4865
- disabled: displayDisabled || disabled,
4864
+ disabled: displayDisabled || disabled || inputProps.disabled,
4866
4865
  readOnly: displayReadOnly || readOnly || inputProps.readOnly,
4867
4866
  status: displayStatusToControlStatus(displayStatusToDisplay),
4868
4867
  showClearButton: showClearButton === "auto" ? formattedValue !== clearedFormattedValue : showClearButton,
@@ -4959,7 +4958,7 @@ var SelectMultipleControl = forwardRef(function SelectMultipleControl({ path, op
4959
4958
  required: required ?? restrictions.required === true,
4960
4959
  loading: displayLoading || loading,
4961
4960
  showSpinner: displayValidating || showSpinner,
4962
- disabled: displayDisabled || disabled,
4961
+ disabled: displayDisabled || disabled || inputProps.disabled,
4963
4962
  readOnly: displayReadOnly || readOnly || inputProps.readOnly,
4964
4963
  status: displayStatusToControlStatus(displayStatusToDisplay),
4965
4964
  endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [popoverIssues, endAdornment] }),
@@ -5305,7 +5304,7 @@ var TableControl = forwardRef(function TableControl({ path, issueMessages, issue
5305
5304
  ariaLabel: otherProps["aria-label"],
5306
5305
  preventAutoFocus
5307
5306
  });
5308
- const controlIsDisabled = displayDisabled || disabled;
5307
+ const controlIsDisabled = displayDisabled || disabled || initialized && !exists;
5309
5308
  const controlIsReadOnly = displayReadOnly || readOnly || isComputedSchema(schema);
5310
5309
  useImperativeHandle(apiRef, () => ({
5311
5310
  ...controller,
@@ -5649,7 +5648,7 @@ var TextControl = forwardRef(function TextControl({ path, issueMessages, issuesP
5649
5648
  pattern: pattern ?? (typeof restrictions.pattern === "string" ? restrictions.pattern : void 0),
5650
5649
  loading: displayLoading || loading,
5651
5650
  showSpinner: displayValidating || showSpinner,
5652
- disabled: displayDisabled || disabled,
5651
+ disabled: displayDisabled || disabled || inputProps.disabled,
5653
5652
  readOnly: displayReadOnly || readOnly || inputProps.readOnly,
5654
5653
  status: displayStatusToControlStatus(displayStatusToDisplay),
5655
5654
  endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [popoverIssues, endAdornment] }),