@dsivd/prestations-ng 18.3.7 → 18.3.9

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 CHANGED
@@ -5,6 +5,19 @@
5
5
  - **You can follow how these changes are used in a real project. See: [Skeleton repo](https://portail.etat-de-vaud.ch/outils/git/projects/CYBSDK/repos/skeleton/browse)**
6
6
 
7
7
  ---
8
+ ## [18.3.9]
9
+
10
+ ### Fixed
11
+
12
+ - [foehn-header.component.ts](projects/prestations-ng/src/foehn-header/foehn-header.component.ts)
13
+ - Do not display preferences in the menu if they are not ready
14
+
15
+ ## [18.3.8]
16
+
17
+ ### Fixed
18
+
19
+ - [upload.helper.ts](projects/prestations-ng/src/foehn-upload/uploader.helper.ts)
20
+ - do not encode some characters in filename to be displayed to the user
8
21
 
9
22
  ## [18.3.7]
10
23
 
Binary file
@@ -7044,41 +7044,43 @@ class FoehnHeaderComponent {
7044
7044
  }
7045
7045
  ]
7046
7046
  });
7047
- menu.push({
7048
- items: [
7049
- {
7050
- title: this.dictionaryService.getKeySync('espace-securise.menu.item.preferences.title'),
7051
- label: this.dictionaryService.getKeySync('espace-securise.menu.item.preferences.label'),
7052
- href: '/100002/preferences'
7053
- },
7054
- {
7055
- title: this.dictionaryService.getKeySync('espace-securise.menu.item.gestion-compte.title'),
7056
- label: this.dictionaryService.getKeySync('espace-securise.menu.item.gestion-compte.label'),
7057
- href: '/100013/'
7058
- }
7059
- ]
7060
- });
7061
- if (this.userInfo.type !== this.AVS) {
7047
+ if (!!info.preferences) {
7062
7048
  menu.push({
7063
7049
  items: [
7064
7050
  {
7065
- title: this.dictionaryService.getKeySync('espace-securise.menu.item.administrer-espace-pro.title'),
7066
- label: this.dictionaryService.getKeySync('espace-securise.menu.item.administrer-espace-pro.label'),
7067
- href: '/100002/administrer-espace-pro'
7068
- }
7069
- ]
7070
- });
7071
- }
7072
- if (this.userInfo.type === this.AVS) {
7073
- menu.push({
7074
- items: [
7051
+ title: this.dictionaryService.getKeySync('espace-securise.menu.item.preferences.title'),
7052
+ label: this.dictionaryService.getKeySync('espace-securise.menu.item.preferences.label'),
7053
+ href: '/100002/preferences'
7054
+ },
7075
7055
  {
7076
- title: this.dictionaryService.getKeySync('espace-securise.menu.item.operations-liees-espace-pro.title'),
7077
- label: this.dictionaryService.getKeySync('espace-securise.menu.item.operations-liees-espace-pro.label'),
7078
- href: '/100002/espaces-professionnels'
7056
+ title: this.dictionaryService.getKeySync('espace-securise.menu.item.gestion-compte.title'),
7057
+ label: this.dictionaryService.getKeySync('espace-securise.menu.item.gestion-compte.label'),
7058
+ href: '/100013/'
7079
7059
  }
7080
7060
  ]
7081
7061
  });
7062
+ if (this.userInfo.type !== this.AVS) {
7063
+ menu.push({
7064
+ items: [
7065
+ {
7066
+ title: this.dictionaryService.getKeySync('espace-securise.menu.item.administrer-espace-pro.title'),
7067
+ label: this.dictionaryService.getKeySync('espace-securise.menu.item.administrer-espace-pro.label'),
7068
+ href: '/100002/administrer-espace-pro'
7069
+ }
7070
+ ]
7071
+ });
7072
+ }
7073
+ if (this.userInfo.type === this.AVS) {
7074
+ menu.push({
7075
+ items: [
7076
+ {
7077
+ title: this.dictionaryService.getKeySync('espace-securise.menu.item.operations-liees-espace-pro.title'),
7078
+ label: this.dictionaryService.getKeySync('espace-securise.menu.item.operations-liees-espace-pro.label'),
7079
+ href: '/100002/espaces-professionnels'
7080
+ }
7081
+ ]
7082
+ });
7083
+ }
7082
7084
  }
7083
7085
  menu.push({
7084
7086
  items: [
@@ -14345,7 +14347,7 @@ const getSafeFileNameForErrorMessage = (fileName) => encodeURIComponent(fileName
14345
14347
  // Décoder la séquence complète (peut inclure plusieurs octets)
14346
14348
  const decoded = decodeURIComponent(match);
14347
14349
  // Vérifier si le caractère décodé est un caractère accentué, un espace ou une virgule
14348
- return /[àáâãäåçèéêëìíîïðñòóôõöùúûüýÿÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝŸ ,/]/.test(decoded)
14350
+ return /[àáâãäåçèéêëìíîïðñòóôõöùúûüýÿÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝŸ%&+:= ,/]/.test(decoded)
14349
14351
  ? decoded
14350
14352
  : match;
14351
14353
  });