@dsivd/prestations-ng 16.4.7-beta.1 → 16.4.8-beta.1
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/CHANGELOG.md +13 -0
- package/dsivd-prestations-ng-v16.4.8-beta.1.tgz +0 -0
- package/esm2020/foehn-input/foehn-input-email.component.mjs +2 -1
- package/esm2020/foehn-upload/abstract-foehn-uploader.component.mjs +7 -4
- package/esm2020/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.mjs +2 -2
- package/esm2020/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.mjs +2 -2
- package/esm2020/sdk-dictionary/default-dictionary.mjs +2 -1
- package/fesm2015/dsivd-prestations-ng.mjs +10 -5
- package/fesm2015/dsivd-prestations-ng.mjs.map +1 -1
- package/fesm2020/dsivd-prestations-ng.mjs +10 -5
- package/fesm2020/dsivd-prestations-ng.mjs.map +1 -1
- package/package.json +1 -1
- package/dsivd-prestations-ng-v16.4.7-beta.1.tgz +0 -0
|
@@ -741,6 +741,7 @@ const DEFAULT_DICTIONARY = {
|
|
|
741
741
|
'foehn-input-date.day.label': 'Jour',
|
|
742
742
|
'foehn-input-date.month.label': 'Mois',
|
|
743
743
|
'foehn-input-date.year.label': 'Année',
|
|
744
|
+
'foehn-input-email.help-text': "Merci de saisir l'adresse e-mail en minuscules",
|
|
744
745
|
'foehn-input-email.modal.title': 'Aide',
|
|
745
746
|
'foehn-input-email.modal.content': "<p>Vous n'arrivez pas à saisir votre mail ?</p>" +
|
|
746
747
|
'<p>Merci d\'écrire à <a href="mailto:info.cyber@vd.ch">info.cyber@vd.ch</a></p>',
|
|
@@ -9935,6 +9936,7 @@ class FoehnInputEmailComponent extends FoehnInputStringComponent {
|
|
|
9935
9936
|
body: this.dictionaryService.getKeySync('foehn-input-email.modal.content'),
|
|
9936
9937
|
modalSize: 'modal-xs'
|
|
9937
9938
|
};
|
|
9939
|
+
this.helpText = this.dictionaryService.getKeySync('foehn-input-email.help-text');
|
|
9938
9940
|
}
|
|
9939
9941
|
ngOnInit() {
|
|
9940
9942
|
super.ngOnInit();
|
|
@@ -12629,7 +12631,7 @@ class AbstractFoehnUploaderComponent extends FoehnInputComponent {
|
|
|
12629
12631
|
this.hideGlobalInfos = false;
|
|
12630
12632
|
this.multiple = true;
|
|
12631
12633
|
this.showDeleteConfirmationMessage = false;
|
|
12632
|
-
this.maxSimultaneousSelectedFiles =
|
|
12634
|
+
this.maxSimultaneousSelectedFiles = null;
|
|
12633
12635
|
this.shouldDisplayFileSavedConfirmation = true;
|
|
12634
12636
|
this.showDropZone = false;
|
|
12635
12637
|
this.deleteDocumentSubject = new BehaviorSubject(null);
|
|
@@ -12747,12 +12749,15 @@ class AbstractFoehnUploaderComponent extends FoehnInputComponent {
|
|
|
12747
12749
|
return errors;
|
|
12748
12750
|
}
|
|
12749
12751
|
isMaxSelectionReached(files) {
|
|
12752
|
+
if (!this.maxSimultaneousSelectedFiles) {
|
|
12753
|
+
return false;
|
|
12754
|
+
}
|
|
12750
12755
|
if (files && files.length > this.maxSimultaneousSelectedFiles) {
|
|
12751
12756
|
const message = this.dictionaryService.getKeySync('foehn-uploader.max-upload-selection-reached', { maxSelection: this.maxSimultaneousSelectedFiles.toString() });
|
|
12752
12757
|
this.growlService.addWithType(GrowlType.DANGER, message);
|
|
12753
|
-
return
|
|
12758
|
+
return true;
|
|
12754
12759
|
}
|
|
12755
|
-
return
|
|
12760
|
+
return false;
|
|
12756
12761
|
}
|
|
12757
12762
|
isMaxFilesCountReached(files) {
|
|
12758
12763
|
if (!this.maxFilesCount) {
|
|
@@ -13025,7 +13030,7 @@ class FoehnMultiUploadComponent extends AbstractFoehnUploaderComponent {
|
|
|
13025
13030
|
// Add files logic
|
|
13026
13031
|
this.uploadFilesSubscription = this.uploadFilesSubject
|
|
13027
13032
|
.pipe(filter(files => !!files &&
|
|
13028
|
-
this.isMaxSelectionReached(files) &&
|
|
13033
|
+
!this.isMaxSelectionReached(files) &&
|
|
13029
13034
|
this.pageUploadLimitService.canUploadMoreFiles(files)),
|
|
13030
13035
|
// Only one call every 300ms to stop concurrent access
|
|
13031
13036
|
throttleTime(300),
|
|
@@ -13389,7 +13394,7 @@ class FoehnBoMultiUploadComponent extends AbstractFoehnUploaderComponent {
|
|
|
13389
13394
|
// Add files logic
|
|
13390
13395
|
this.uploadFilesSubscription = this.uploadFilesSubject
|
|
13391
13396
|
.pipe(filter(files => !!files &&
|
|
13392
|
-
this.isMaxSelectionReached(files) &&
|
|
13397
|
+
!this.isMaxSelectionReached(files) &&
|
|
13393
13398
|
this.pageUploadLimitService.canUploadMoreFiles(files)),
|
|
13394
13399
|
// Only one call every 300ms to stop concurrent access
|
|
13395
13400
|
throttleTime(300),
|