@dsivd/prestations-ng 18.0.0 → 18.0.2
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 +21 -0
- package/README.md +1 -0
- package/dsivd-prestations-ng-18.0.2.tgz +0 -0
- package/fesm2022/dsivd-prestations-ng.mjs +28 -23
- package/fesm2022/dsivd-prestations-ng.mjs.map +1 -1
- package/foehn-input/foehn-input-string.component.d.ts +1 -0
- package/foehn-input/foehn-input-text.component.d.ts +0 -2
- package/package.json +1 -1
- package/dsivd-prestations-ng-18.0.0.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,20 @@
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [18.0.2]
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- [gesdem-handler.service.ts](projects/prestations-ng/src/gesdem/gesdem-handler.service.ts)
|
|
14
|
+
- Fixed success message when user is connected and demande is not draft. (do not display expiration notice).
|
|
15
|
+
|
|
16
|
+
## [18.0.1]
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- [FoehnInputStringComponent](projects/prestations-ng/src/foehn-input/foehn-input-string.component.ts)
|
|
21
|
+
- fixed trimOnBlur()
|
|
22
|
+
|
|
9
23
|
## [18.0.0]
|
|
10
24
|
|
|
11
25
|
### Added
|
|
@@ -23,6 +37,13 @@
|
|
|
23
37
|
- [foehn-table.component.ts](projects/prestations-ng/src/foehn-table/foehn-table.component.ts)
|
|
24
38
|
- `[list]` attribut has been removed. Use `[model]` instead.
|
|
25
39
|
|
|
40
|
+
## [17.10.11]
|
|
41
|
+
|
|
42
|
+
### Fixed
|
|
43
|
+
|
|
44
|
+
- [FoehnInputStringComponent](projects/prestations-ng/src/foehn-input/foehn-input-string.component.ts)
|
|
45
|
+
- fixed trimOnBlur()
|
|
46
|
+
|
|
26
47
|
## [17.10.10]
|
|
27
48
|
|
|
28
49
|
### Fixed
|
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@ The generated documentation of our entire library is available online at [https:
|
|
|
8
8
|
|
|
9
9
|
The documentation is available online at [https://dsi-vd.github.io/prestations-ng/](https://dsi-vd.github.io/prestations-ng/)
|
|
10
10
|
|
|
11
|
+
- If you're using **Angular 19**, use `@dsivd/prestations-ng` at version `^18`.
|
|
11
12
|
- If you're using **Angular 17**, use `@dsivd/prestations-ng` at version `^17`.
|
|
12
13
|
- If you're using **Angular 15**, use `@dsivd/prestations-ng` at version `^16`.
|
|
13
14
|
- If you're using **Angular 13**, use `@dsivd/prestations-ng` at version `^15`.
|
|
Binary file
|
|
@@ -1233,10 +1233,10 @@ const DEFAULT_DICTIONARY = {
|
|
|
1233
1233
|
'gesdem-action-recovery-registration.not-connected.reference-interne.help-text': 'Votre référence sera utilisée comme objet du message qui vous sera envoyé et vous permettra de retrouver facilement ce message',
|
|
1234
1234
|
'gesdem-action-recovery-registration.cancel.button': 'Fermer',
|
|
1235
1235
|
'gesdem-action-recovery-registration.save.button': 'Sauvegarder',
|
|
1236
|
-
'gesdem-handler.save-confirmation.label': '<strong>' +
|
|
1237
|
-
'
|
|
1238
|
-
'</strong>'
|
|
1239
|
-
|
|
1236
|
+
'gesdem-handler.save-confirmation.label': '<strong>Vos données ont été sauvegardées dans <a href="/100002/demandes/search/MINE/INITIAL" target="_blank">' +
|
|
1237
|
+
'votre espace sécurisé' +
|
|
1238
|
+
'</a></strong>',
|
|
1239
|
+
'gesdem-handler.save-confirmation.expiration-addon.label': '<br/><br/>' +
|
|
1240
1240
|
'<i>Votre demande non transmise sera conservée {draftDemRetentionDays} jour{plural}. ' +
|
|
1241
1241
|
'Elle sera supprimée le {draftDemandeDeletionDate}</i>',
|
|
1242
1242
|
'foehn-date-picker-button.icon-title': 'Afficher le calendrier',
|
|
@@ -2224,11 +2224,16 @@ class GesdemHandlerService {
|
|
|
2224
2224
|
if (isConnected &&
|
|
2225
2225
|
displaySuccessMessage &&
|
|
2226
2226
|
!!resp?.meta?.reference?.length) {
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2227
|
+
let confirmation = this.dictionaryService.getKeySync('gesdem-handler.save-confirmation.label');
|
|
2228
|
+
if (!!resp.meta.draftDemRetentionDays &&
|
|
2229
|
+
!!resp.meta.draftDemandeDeletionDate) {
|
|
2230
|
+
confirmation += this.dictionaryService.getKeySync('gesdem-handler.save-confirmation.expiration-addon.label', {
|
|
2231
|
+
draftDemRetentionDays: resp.meta.draftDemRetentionDays.toString(),
|
|
2232
|
+
draftDemandeDeletionDate: this.dateHelper.arrayToDisplayDateDMY(resp.meta.draftDemandeDeletionDate, false),
|
|
2233
|
+
plural: this.dictionaryService.getPluralMarkerSync(resp.meta.draftDemRetentionDays)
|
|
2234
|
+
});
|
|
2235
|
+
}
|
|
2236
|
+
this.growlService.addWithType(GrowlType.SUCCESS, confirmation);
|
|
2232
2237
|
}
|
|
2233
2238
|
}), map(() => true));
|
|
2234
2239
|
}
|
|
@@ -4930,6 +4935,14 @@ class FoehnInputStringComponent extends FoehnInputComponent {
|
|
|
4930
4935
|
}
|
|
4931
4936
|
super.onBlur(e);
|
|
4932
4937
|
}
|
|
4938
|
+
onModelChange(value) {
|
|
4939
|
+
if (value === undefined || value === null || !!value) {
|
|
4940
|
+
this.updateNgModel(value);
|
|
4941
|
+
}
|
|
4942
|
+
else {
|
|
4943
|
+
this.updateNgModel(null);
|
|
4944
|
+
}
|
|
4945
|
+
}
|
|
4933
4946
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FoehnInputStringComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4934
4947
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.14", type: FoehnInputStringComponent, isStandalone: true, inputs: { trimOnBlur: "trimOnBlur" }, usesInheritance: true, ngImport: i0 }); }
|
|
4935
4948
|
}
|
|
@@ -5112,17 +5125,6 @@ class FoehnInputTextComponent extends FoehnInputStringComponent {
|
|
|
5112
5125
|
event.preventDefault();
|
|
5113
5126
|
}
|
|
5114
5127
|
}
|
|
5115
|
-
onModelChange(value) {
|
|
5116
|
-
clearTimeout(this.timeoutReference);
|
|
5117
|
-
if (value === undefined || value === null || !!value) {
|
|
5118
|
-
this.updateNgModel(value);
|
|
5119
|
-
}
|
|
5120
|
-
else {
|
|
5121
|
-
this.timeoutReference = setTimeout(() => {
|
|
5122
|
-
this.updateNgModel(null);
|
|
5123
|
-
}, 0);
|
|
5124
|
-
}
|
|
5125
|
-
}
|
|
5126
5128
|
acceptedKeysForNumber(event) {
|
|
5127
5129
|
const key = event.key;
|
|
5128
5130
|
return ([
|
|
@@ -11334,9 +11336,12 @@ class FoehnInputPrefixedTextComponent extends FoehnInputStringComponent {
|
|
|
11334
11336
|
this.prefixSubject = new BehaviorSubject(DEFAULT_PREFIX);
|
|
11335
11337
|
this.modelSubject = new BehaviorSubject(undefined);
|
|
11336
11338
|
this.textSubject = new BehaviorSubject(undefined);
|
|
11337
|
-
this.text = this.textSubject
|
|
11338
|
-
.
|
|
11339
|
-
|
|
11339
|
+
this.text = this.textSubject.asObservable().pipe(map(text => {
|
|
11340
|
+
if (this.trimOnBlur) {
|
|
11341
|
+
return this.isEmptyWhenTrimmedIfString(text) ? null : text;
|
|
11342
|
+
}
|
|
11343
|
+
return text;
|
|
11344
|
+
}), tap$1(() => this.updateFullText()));
|
|
11340
11345
|
this.prefixModelSubscription = combineLatest([
|
|
11341
11346
|
this.prefixSubject.asObservable(),
|
|
11342
11347
|
this.modelSubject.asObservable()
|