@designcrowd/fe-shared-lib 1.2.11-byo-modal-6 → 1.2.11-byo-modal-7
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/package.json +1 -1
- package/src/bundles/bundled-translations.de-DE.json +5 -1
- package/src/bundles/bundled-translations.es-ES.json +5 -1
- package/src/bundles/bundled-translations.fr-FR.json +5 -1
- package/src/bundles/bundled-translations.json +5 -1
- package/src/bundles/bundled-translations.pt-PT.json +5 -1
- package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.vue +18 -8
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.de-DE.json +5 -1
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.es-ES.json +5 -1
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.fr-FR.json +5 -1
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.json +6 -1
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.pt-PT.json +5 -1
package/package.json
CHANGED
|
@@ -75,6 +75,10 @@
|
|
|
75
75
|
"exitConfirmationTitle": "Möchten Sie die Anwendung wirklich verlassen?",
|
|
76
76
|
"exitConfirmationDescription": "Der Fortschritt Ihres Logo-Uploads in dieser Sitzung geht verloren",
|
|
77
77
|
"maxByoFileErrorMessage": "Ihre Datei überschreitet die maximale Größe von 25 MB. Bitte wählen Sie eine kleinere Datei.",
|
|
78
|
-
"genericByoErrorMessage": "Es ist ein unerwarteter Fehler aufgetreten. Bitte versuchen Sie es erneut."
|
|
78
|
+
"genericByoErrorMessage": "Es ist ein unerwarteter Fehler aufgetreten. Bitte versuchen Sie es erneut.",
|
|
79
|
+
"dropYourFileHere": "Legen Sie Ihre Datei hier ab oder",
|
|
80
|
+
"clickToUpload": "klicken Sie hier, um eine Datei hochzuladen.",
|
|
81
|
+
"acceptedFiles": "Wir akzeptieren PNG-, JPG-, SVG- und EPS-Dateien bis zu 25 MB.",
|
|
82
|
+
"wrongUploadType": "Sie können Dateien dieses Typs nicht hochladen."
|
|
79
83
|
}
|
|
80
84
|
}
|
|
@@ -75,6 +75,10 @@
|
|
|
75
75
|
"exitConfirmationTitle": "¿Estás seguro de que quieres salir?",
|
|
76
76
|
"exitConfirmationDescription": "El progreso de carga de tu logo en esta sesión se perderá.",
|
|
77
77
|
"maxByoFileErrorMessage": "Tu archivo supera el tamaño máximo de 25 MB. Elige un archivo más pequeño.",
|
|
78
|
-
"genericByoErrorMessage": "Se ha producido un error inesperado. Inténtalo de nuevo."
|
|
78
|
+
"genericByoErrorMessage": "Se ha producido un error inesperado. Inténtalo de nuevo.",
|
|
79
|
+
"dropYourFileHere": "Suelta el archivo aquí o",
|
|
80
|
+
"clickToUpload": "haz clic para subirlo",
|
|
81
|
+
"acceptedFiles": "Aceptamos archivos PNG, JPG, SVG o EPS de hasta 25 MB",
|
|
82
|
+
"wrongUploadType": "No puedes subir archivos de este tipo."
|
|
79
83
|
}
|
|
80
84
|
}
|
|
@@ -75,6 +75,10 @@
|
|
|
75
75
|
"exitConfirmationTitle": "Voulez-vous vraiment quitter ?",
|
|
76
76
|
"exitConfirmationDescription": "La progression du téléchargement de votre logo au cours de cette session sera perdue",
|
|
77
77
|
"maxByoFileErrorMessage": "Votre fichier dépasse la taille maximale de 25 Mo. Veuillez choisir un fichier plus petit.",
|
|
78
|
-
"genericByoErrorMessage": "Une erreur inattendue s'est produite. Veuillez réessayer."
|
|
78
|
+
"genericByoErrorMessage": "Une erreur inattendue s'est produite. Veuillez réessayer.",
|
|
79
|
+
"dropYourFileHere": "Déposez votre fichier ici ou",
|
|
80
|
+
"clickToUpload": "cliquez pour télécharger",
|
|
81
|
+
"acceptedFiles": "Nous acceptons les fichiers PNG, JPG, SVG ou EPS jusqu'à 25 Mo",
|
|
82
|
+
"wrongUploadType": "Vous ne pouvez pas télécharger des fichiers de ce type."
|
|
79
83
|
}
|
|
80
84
|
}
|
|
@@ -75,6 +75,10 @@
|
|
|
75
75
|
"exitConfirmationTitle": "Are you sure you want to exit?",
|
|
76
76
|
"exitConfirmationDescription": "Your logo upload progress in this session will be lost",
|
|
77
77
|
"maxByoFileErrorMessage": "Your file exceeds the maximum size of 25MB. Please choose a smaller file.",
|
|
78
|
-
"genericByoErrorMessage": "An unexpected error occured. Please try again."
|
|
78
|
+
"genericByoErrorMessage": "An unexpected error occured. Please try again.",
|
|
79
|
+
"dropYourFileHere": "Drop your file here or",
|
|
80
|
+
"clickToUpload": "click to upload",
|
|
81
|
+
"acceptedFiles": "We accept PNG, JPG, SVG or EPS files up to 25MB",
|
|
82
|
+
"wrongUploadType": "You can't upload files of this type."
|
|
79
83
|
}
|
|
80
84
|
}
|
|
@@ -75,6 +75,10 @@
|
|
|
75
75
|
"exitConfirmationTitle": "Tem a certeza de que pretende sair?",
|
|
76
76
|
"exitConfirmationDescription": "O progresso do carregamento do seu logótipo nesta sessão será perdido",
|
|
77
77
|
"maxByoFileErrorMessage": "O seu ficheiro excede o tamanho máximo de 25 MB. Escolha um ficheiro mais pequeno.",
|
|
78
|
-
"genericByoErrorMessage": "Ocorreu um erro inesperado. Tente novamente."
|
|
78
|
+
"genericByoErrorMessage": "Ocorreu um erro inesperado. Tente novamente.",
|
|
79
|
+
"dropYourFileHere": "Arraste o seu ficheiro aqui ou",
|
|
80
|
+
"clickToUpload": "clique para carregar",
|
|
81
|
+
"acceptedFiles": "Aceitamos ficheiros PNG, JPG, SVG ou EPS até 25 MB",
|
|
82
|
+
"wrongUploadType": "Não pode carregar ficheiros deste tipo."
|
|
79
83
|
}
|
|
80
84
|
}
|
|
@@ -56,9 +56,13 @@
|
|
|
56
56
|
<p
|
|
57
57
|
v-if="!isModal"
|
|
58
58
|
class="tw-font-bold tw-text-black tw-text-lg"
|
|
59
|
-
:class="{
|
|
59
|
+
:class="{
|
|
60
|
+
'tw-mb-2': !shouldUseCompactLayout,
|
|
61
|
+
'md:tw-text-sm md:tw-mb-0': smallLayout,
|
|
62
|
+
'tw-text-sm tw-mb-0': shouldUseCompactLayout,
|
|
63
|
+
}"
|
|
60
64
|
>
|
|
61
|
-
|
|
65
|
+
{{ uploadYourLogoTr('uploadYourLogoText') }}
|
|
62
66
|
</p>
|
|
63
67
|
|
|
64
68
|
<p
|
|
@@ -66,11 +70,11 @@
|
|
|
66
70
|
:class="{
|
|
67
71
|
'tw-mb-0': !isDesignCom,
|
|
68
72
|
'tw-mb-3': isDesignCom,
|
|
69
|
-
'md:tw-hidden': shouldUseCompactLayout
|
|
73
|
+
'md:tw-hidden': shouldUseCompactLayout,
|
|
70
74
|
}"
|
|
71
75
|
>
|
|
72
|
-
|
|
73
|
-
<span class="tw-text-info-500">
|
|
76
|
+
{{ uploadYourLogoTr('dropYourFileHere') }}
|
|
77
|
+
<span class="tw-text-info-500">{{ uploadYourLogoTr('clickToUpload') }}</span>
|
|
74
78
|
</p>
|
|
75
79
|
|
|
76
80
|
<p
|
|
@@ -81,7 +85,7 @@
|
|
|
81
85
|
'tw-text-secondary-400': isDesignCom,
|
|
82
86
|
}"
|
|
83
87
|
>
|
|
84
|
-
|
|
88
|
+
{{ uploadYourLogoTr('acceptedFiles') }}
|
|
85
89
|
</p>
|
|
86
90
|
</div>
|
|
87
91
|
</div>
|
|
@@ -92,11 +96,12 @@
|
|
|
92
96
|
import Dropzone from 'dropzone-vue3';
|
|
93
97
|
import Events, { TRIGGER_TYPE } from '../../constants/event-constants';
|
|
94
98
|
import RegoSource from '../../constants/rego-source-constants';
|
|
99
|
+
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
95
100
|
|
|
96
101
|
const ACCEPTED_MIME_TYPES = ['image/jpeg', 'image/png', 'image/svg+xml', 'application/postscript'];
|
|
97
102
|
|
|
98
103
|
const ACCEPTED_FILE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'svg', 'eps'];
|
|
99
|
-
const UNSUPPORTED_FILE_ERROR_MSG =
|
|
104
|
+
const UNSUPPORTED_FILE_ERROR_MSG = () => uploadYourLogoTr(`wrongUploadType`);
|
|
100
105
|
|
|
101
106
|
export default {
|
|
102
107
|
components: {
|
|
@@ -151,6 +156,11 @@ export default {
|
|
|
151
156
|
default: null,
|
|
152
157
|
},
|
|
153
158
|
},
|
|
159
|
+
setup() {
|
|
160
|
+
return {
|
|
161
|
+
uploadYourLogoTr,
|
|
162
|
+
};
|
|
163
|
+
},
|
|
154
164
|
data() {
|
|
155
165
|
const self = this;
|
|
156
166
|
|
|
@@ -165,7 +175,7 @@ export default {
|
|
|
165
175
|
const extension = file.name.split('.').pop().toLowerCase();
|
|
166
176
|
|
|
167
177
|
if (ACCEPTED_FILE_EXTENSIONS.indexOf(extension) < 0) {
|
|
168
|
-
self.displayError(UNSUPPORTED_FILE_ERROR_MSG);
|
|
178
|
+
self.displayError(UNSUPPORTED_FILE_ERROR_MSG());
|
|
169
179
|
return;
|
|
170
180
|
}
|
|
171
181
|
|
package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.de-DE.json
CHANGED
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
"exitConfirmationTitle" : "Möchten Sie die Anwendung wirklich verlassen?",
|
|
26
26
|
"exitConfirmationDescription" : "Der Fortschritt Ihres Logo-Uploads in dieser Sitzung geht verloren",
|
|
27
27
|
"maxByoFileErrorMessage" : "Ihre Datei überschreitet die maximale Größe von 25 MB. Bitte wählen Sie eine kleinere Datei.",
|
|
28
|
-
"genericByoErrorMessage" : "Es ist ein unerwarteter Fehler aufgetreten. Bitte versuchen Sie es erneut."
|
|
28
|
+
"genericByoErrorMessage" : "Es ist ein unerwarteter Fehler aufgetreten. Bitte versuchen Sie es erneut.",
|
|
29
|
+
"dropYourFileHere" : "Legen Sie Ihre Datei hier ab oder",
|
|
30
|
+
"clickToUpload" : "klicken Sie hier, um eine Datei hochzuladen.",
|
|
31
|
+
"acceptedFiles" : "Wir akzeptieren PNG-, JPG-, SVG- und EPS-Dateien bis zu 25 MB.",
|
|
32
|
+
"wrongUploadType" : "Sie können Dateien dieses Typs nicht hochladen."
|
|
29
33
|
}
|
|
30
34
|
}
|
package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.es-ES.json
CHANGED
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
"exitConfirmationTitle" : "¿Estás seguro de que quieres salir?",
|
|
26
26
|
"exitConfirmationDescription" : "El progreso de carga de tu logo en esta sesión se perderá.",
|
|
27
27
|
"maxByoFileErrorMessage" : "Tu archivo supera el tamaño máximo de 25 MB. Elige un archivo más pequeño.",
|
|
28
|
-
"genericByoErrorMessage" : "Se ha producido un error inesperado. Inténtalo de nuevo."
|
|
28
|
+
"genericByoErrorMessage" : "Se ha producido un error inesperado. Inténtalo de nuevo.",
|
|
29
|
+
"dropYourFileHere" : "Suelta el archivo aquí o",
|
|
30
|
+
"clickToUpload" : "haz clic para subirlo",
|
|
31
|
+
"acceptedFiles" : "Aceptamos archivos PNG, JPG, SVG o EPS de hasta 25 MB",
|
|
32
|
+
"wrongUploadType" : "No puedes subir archivos de este tipo."
|
|
29
33
|
}
|
|
30
34
|
}
|
package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.fr-FR.json
CHANGED
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
"exitConfirmationTitle" : "Voulez-vous vraiment quitter ?",
|
|
26
26
|
"exitConfirmationDescription" : "La progression du téléchargement de votre logo au cours de cette session sera perdue",
|
|
27
27
|
"maxByoFileErrorMessage" : "Votre fichier dépasse la taille maximale de 25 Mo. Veuillez choisir un fichier plus petit.",
|
|
28
|
-
"genericByoErrorMessage" : "Une erreur inattendue s'est produite. Veuillez réessayer."
|
|
28
|
+
"genericByoErrorMessage" : "Une erreur inattendue s'est produite. Veuillez réessayer.",
|
|
29
|
+
"dropYourFileHere" : "Déposez votre fichier ici ou",
|
|
30
|
+
"clickToUpload" : "cliquez pour télécharger",
|
|
31
|
+
"acceptedFiles" : "Nous acceptons les fichiers PNG, JPG, SVG ou EPS jusqu'à 25 Mo",
|
|
32
|
+
"wrongUploadType" : "Vous ne pouvez pas télécharger des fichiers de ce type."
|
|
29
33
|
}
|
|
30
34
|
}
|
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
"exitConfirmationTitle": "Are you sure you want to exit?",
|
|
26
26
|
"exitConfirmationDescription": "Your logo upload progress in this session will be lost",
|
|
27
27
|
"maxByoFileErrorMessage": "Your file exceeds the maximum size of 25MB. Please choose a smaller file.",
|
|
28
|
-
"genericByoErrorMessage": "An unexpected error occured. Please try again."
|
|
28
|
+
"genericByoErrorMessage": "An unexpected error occured. Please try again.",
|
|
29
|
+
|
|
30
|
+
"dropYourFileHere": "Drop your file here or",
|
|
31
|
+
"clickToUpload": "click to upload",
|
|
32
|
+
"acceptedFiles": "We accept PNG, JPG, SVG or EPS files up to 25MB",
|
|
33
|
+
"wrongUploadType": "You can't upload files of this type."
|
|
29
34
|
}
|
|
30
35
|
}
|
package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.pt-PT.json
CHANGED
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
"exitConfirmationTitle" : "Tem a certeza de que pretende sair?",
|
|
26
26
|
"exitConfirmationDescription" : "O progresso do carregamento do seu logótipo nesta sessão será perdido",
|
|
27
27
|
"maxByoFileErrorMessage" : "O seu ficheiro excede o tamanho máximo de 25 MB. Escolha um ficheiro mais pequeno.",
|
|
28
|
-
"genericByoErrorMessage" : "Ocorreu um erro inesperado. Tente novamente."
|
|
28
|
+
"genericByoErrorMessage" : "Ocorreu um erro inesperado. Tente novamente.",
|
|
29
|
+
"dropYourFileHere" : "Arraste o seu ficheiro aqui ou",
|
|
30
|
+
"clickToUpload" : "clique para carregar",
|
|
31
|
+
"acceptedFiles" : "Aceitamos ficheiros PNG, JPG, SVG ou EPS até 25 MB",
|
|
32
|
+
"wrongUploadType" : "Não pode carregar ficheiros deste tipo."
|
|
29
33
|
}
|
|
30
34
|
}
|