@dsivd/prestations-ng 16.4.9-beta.3 → 16.4.9-beta.4
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 +1 -0
- package/dsivd-prestations-ng-v16.4.9-beta.4.tgz +0 -0
- package/esm2020/foehn-remaining-alerts-summary/foehn-remaining-alerts-summary.component.mjs +6 -3
- package/fesm2015/dsivd-prestations-ng.mjs +5 -2
- package/fesm2015/dsivd-prestations-ng.mjs.map +1 -1
- package/fesm2020/dsivd-prestations-ng.mjs +5 -2
- package/fesm2020/dsivd-prestations-ng.mjs.map +1 -1
- package/foehn-remaining-alerts-summary/foehn-remaining-alerts-summary.component.d.ts +2 -1
- package/package.json +1 -1
- package/dsivd-prestations-ng-v16.4.9-beta.3.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
- `foehn-transmit-waiting-modal.help` is a help message displayed underneath undetermined progressbar
|
|
27
27
|
|
|
28
28
|
- [foehn-menu-item-transmit.component.ts](projects/prestations-ng/src/foehn-menu-prestation/foehn-menu-items/foehn-menu-item-transmit/foehn-menu-item-transmit.component.ts)
|
|
29
|
+
- [foehn-remaining-alerts-summary.component.ts](projects/prestations-ng/src/foehn-remaining-alerts-summary/foehn-remaining-alerts-summary.component.ts)
|
|
29
30
|
- added `@Input() remainingErrorNamesToIgnore: string[] = []` to be able to ignore errors that could be on the verification page, like a last checkbox to check
|
|
30
31
|
|
|
31
32
|
## [16.4.8]
|
|
Binary file
|
|
@@ -9,16 +9,19 @@ export class FoehnRemainingAlertsSummaryComponent {
|
|
|
9
9
|
this.gesdemService = gesdemService;
|
|
10
10
|
this.remainingErrorsLabel = '<p>Il reste des erreurs, le formulaire ne peut pas être transmis.</p>' +
|
|
11
11
|
'<p>Merci de revenir en arrière ou de réessayer plus tard.</p>';
|
|
12
|
+
this.remainingErrorNamesToIgnore = [];
|
|
12
13
|
this.hasRemainingErrors = of(false);
|
|
13
|
-
this.hasRemainingErrors = this.gesdemService.updateFormDataSubject.pipe(map(() => !!this.gesdemService.lastResponse.errors.length));
|
|
14
|
+
this.hasRemainingErrors = this.gesdemService.updateFormDataSubject.pipe(map(() => !!this.gesdemService.lastResponse.errors.filter(e => !this.remainingErrorNamesToIgnore.includes(e.name)).length));
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
FoehnRemainingAlertsSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FoehnRemainingAlertsSummaryComponent, deps: [{ token: i1.GesdemHandlerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
-
FoehnRemainingAlertsSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FoehnRemainingAlertsSummaryComponent, selector: "foehn-remaining-alerts-summary", inputs: { remainingErrorsLabel: "remainingErrorsLabel" }, ngImport: i0, template: "<div\n class=\"alert alert-danger\"\n *ngIf=\"hasRemainingErrors | async\"\n [innerHTML]=\"remainingErrorsLabel\"\n></div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] });
|
|
18
|
+
FoehnRemainingAlertsSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FoehnRemainingAlertsSummaryComponent, selector: "foehn-remaining-alerts-summary", inputs: { remainingErrorsLabel: "remainingErrorsLabel", remainingErrorNamesToIgnore: "remainingErrorNamesToIgnore" }, ngImport: i0, template: "<div\n class=\"alert alert-danger\"\n *ngIf=\"hasRemainingErrors | async\"\n [innerHTML]=\"remainingErrorsLabel\"\n></div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] });
|
|
18
19
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FoehnRemainingAlertsSummaryComponent, decorators: [{
|
|
19
20
|
type: Component,
|
|
20
21
|
args: [{ selector: 'foehn-remaining-alerts-summary', template: "<div\n class=\"alert alert-danger\"\n *ngIf=\"hasRemainingErrors | async\"\n [innerHTML]=\"remainingErrorsLabel\"\n></div>\n" }]
|
|
21
22
|
}], ctorParameters: function () { return [{ type: i1.GesdemHandlerService }]; }, propDecorators: { remainingErrorsLabel: [{
|
|
22
23
|
type: Input
|
|
24
|
+
}], remainingErrorNamesToIgnore: [{
|
|
25
|
+
type: Input
|
|
23
26
|
}] } });
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9laG4tcmVtYWluaW5nLWFsZXJ0cy1zdW1tYXJ5LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ByZXN0YXRpb25zLW5nL3NyYy9mb2Vobi1yZW1haW5pbmctYWxlcnRzLXN1bW1hcnkvZm9laG4tcmVtYWluaW5nLWFsZXJ0cy1zdW1tYXJ5LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ByZXN0YXRpb25zLW5nL3NyYy9mb2Vobi1yZW1haW5pbmctYWxlcnRzLXN1bW1hcnkvZm9laG4tcmVtYWluaW5nLWFsZXJ0cy1zdW1tYXJ5LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBYyxFQUFFLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDdE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AgICAgbWFwKFxuICAgICAgICAgICAgICAgICgpID0+XG4gICAgICAgICAgICAgICAgICAgICEhdGhpcy5nZXNkZW1TZXJ2aWNlLmxhc3RSZXNwb25zZS5lcnJvcnMuZmlsdGVyKFxuICAgICAgICAgICAgICAgICAgICAgICAgZSA9PiAhdGhpcy5yZW1haW5pbmdFcnJvck5hbWVzVG9JZ25vcmUuaW5jbHVkZXMoZS5uYW1lKVxuICAgICAgICAgICAgICAgICAgICApLmxlbmd0aFxuICAgICAgICAgICAgKVxuICAgICAgICApO1xuICAgIH1cbn1cbiIsIjxkaXZcbiAgICBjbGFzcz1cImFsZXJ0IGFsZXJ0LWRhbmdlclwiXG4gICAgKm5nSWY9XCJoYXNSZW1haW5pbmdFcnJvcnMgfCBhc3luY1wiXG4gICAgW2lubmVySFRNTF09XCJyZW1haW5pbmdFcnJvcnNMYWJlbFwiXG4+PC9kaXY+XG4iXX0=
|
|
@@ -12091,17 +12091,20 @@ class FoehnRemainingAlertsSummaryComponent {
|
|
|
12091
12091
|
this.gesdemService = gesdemService;
|
|
12092
12092
|
this.remainingErrorsLabel = '<p>Il reste des erreurs, le formulaire ne peut pas être transmis.</p>' +
|
|
12093
12093
|
'<p>Merci de revenir en arrière ou de réessayer plus tard.</p>';
|
|
12094
|
+
this.remainingErrorNamesToIgnore = [];
|
|
12094
12095
|
this.hasRemainingErrors = of(false);
|
|
12095
|
-
this.hasRemainingErrors = this.gesdemService.updateFormDataSubject.pipe(map(() => !!this.gesdemService.lastResponse.errors.length));
|
|
12096
|
+
this.hasRemainingErrors = this.gesdemService.updateFormDataSubject.pipe(map(() => !!this.gesdemService.lastResponse.errors.filter(e => !this.remainingErrorNamesToIgnore.includes(e.name)).length));
|
|
12096
12097
|
}
|
|
12097
12098
|
}
|
|
12098
12099
|
FoehnRemainingAlertsSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FoehnRemainingAlertsSummaryComponent, deps: [{ token: GesdemHandlerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12099
|
-
FoehnRemainingAlertsSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FoehnRemainingAlertsSummaryComponent, selector: "foehn-remaining-alerts-summary", inputs: { remainingErrorsLabel: "remainingErrorsLabel" }, ngImport: i0, template: "<div\n class=\"alert alert-danger\"\n *ngIf=\"hasRemainingErrors | async\"\n [innerHTML]=\"remainingErrorsLabel\"\n></div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] });
|
|
12100
|
+
FoehnRemainingAlertsSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FoehnRemainingAlertsSummaryComponent, selector: "foehn-remaining-alerts-summary", inputs: { remainingErrorsLabel: "remainingErrorsLabel", remainingErrorNamesToIgnore: "remainingErrorNamesToIgnore" }, ngImport: i0, template: "<div\n class=\"alert alert-danger\"\n *ngIf=\"hasRemainingErrors | async\"\n [innerHTML]=\"remainingErrorsLabel\"\n></div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] });
|
|
12100
12101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FoehnRemainingAlertsSummaryComponent, decorators: [{
|
|
12101
12102
|
type: Component,
|
|
12102
12103
|
args: [{ selector: 'foehn-remaining-alerts-summary', template: "<div\n class=\"alert alert-danger\"\n *ngIf=\"hasRemainingErrors | async\"\n [innerHTML]=\"remainingErrorsLabel\"\n></div>\n" }]
|
|
12103
12104
|
}], ctorParameters: function () { return [{ type: GesdemHandlerService }]; }, propDecorators: { remainingErrorsLabel: [{
|
|
12104
12105
|
type: Input
|
|
12106
|
+
}], remainingErrorNamesToIgnore: [{
|
|
12107
|
+
type: Input
|
|
12105
12108
|
}] } });
|
|
12106
12109
|
|
|
12107
12110
|
class FoehnRemainingAlertsSummaryModule {
|