@dsivd/prestations-ng 18.3.11-beta.2 → 18.3.11-beta.3

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.
@@ -16478,12 +16478,21 @@ class FoehnMenuItemComponent {
16478
16478
  this.showErrorPill = true;
16479
16479
  this.applicable = true;
16480
16480
  }
16481
+ get nonApplicableId() {
16482
+ const prefixValue = typeof this.errorPrefix === 'string'
16483
+ ? this.errorPrefix
16484
+ : this.errorPrefix?.source ?? '';
16485
+ const safePrefix = prefixValue
16486
+ .replace(/[^a-zA-Z0-9_-]+/g, '-')
16487
+ .replace(/^-+|-+$/g, '');
16488
+ return `${safePrefix}NA`;
16489
+ }
16481
16490
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FoehnMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16482
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FoehnMenuItemComponent, isStandalone: false, selector: "foehn-menu-item", inputs: { labelDicoKey: "labelDicoKey", dicoLabelPlaceHolders: "dicoLabelPlaceHolders", linkId: "linkId", rLink: "rLink", queryParamsHandling: "queryParamsHandling", errorPrefix: "errorPrefix", showErrorPill: "showErrorPill", listLength: "listLength", applicable: "applicable" }, ngImport: i0, template: "<li\n class=\"d-flex flex-column flex-md-row justify-content-between border-bottom pb-3\"\n *ngIf=\"applicable\"\n>\n <span class=\"align-self-baseline mt-2\">\n <a\n href=\"#\"\n (click)=\"$event.preventDefault()\"\n [id]=\"linkId\"\n [routerLink]=\"rLink\"\n [queryParams]=\"{ scrollTo: linkId }\"\n [queryParamsHandling]=\"queryParamsHandling\"\n >\n {{ labelDicoKey | fromDictionary: dicoLabelPlaceHolders }}\n </a>\n <ng-container *ngIf=\"listLength\">\n <br />\n <small *ngIf=\"listLength > 1\" class=\"text-secondary\">\n {{ listLength }} \u00E9l\u00E9ments saisis\n </small>\n <small *ngIf=\"listLength === 1\" class=\"text-secondary\">\n {{ listLength }} \u00E9l\u00E9ment saisi\n </small>\n </ng-container>\n </span>\n <foehn-error-pill\n *ngIf=\"showErrorPill\"\n [errorPrefix]=\"errorPrefix\"\n ></foehn-error-pill>\n</li>\n\n<li\n class=\"d-flex flex-column flex-md-row justify-content-between border-bottom pb-3\"\n *ngIf=\"!applicable\"\n>\n <span [id]=\"errorPrefix + 'NA'\" class=\"align-self-baseline mt-2\">\n {{ labelDicoKey | fromDictionary: dicoLabelPlaceHolders }}\n &nbsp;\n <span class=\"fw-bold\">(non applicable)</span>\n </span>\n</li>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: FoehnErrorPillComponent, selector: "foehn-error-pill", inputs: ["errorPrefix", "incompleteIndicatorOnly"] }, { kind: "pipe", type: SdkDictionaryPipe, name: "fromDictionary" }] }); }
16491
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FoehnMenuItemComponent, isStandalone: false, selector: "foehn-menu-item", inputs: { labelDicoKey: "labelDicoKey", dicoLabelPlaceHolders: "dicoLabelPlaceHolders", linkId: "linkId", rLink: "rLink", queryParamsHandling: "queryParamsHandling", errorPrefix: "errorPrefix", showErrorPill: "showErrorPill", listLength: "listLength", applicable: "applicable" }, ngImport: i0, template: "<li\n class=\"d-flex flex-column flex-md-row justify-content-between border-bottom pb-3\"\n *ngIf=\"applicable\"\n>\n <span class=\"align-self-baseline mt-2\">\n <a\n href=\"#\"\n (click)=\"$event.preventDefault()\"\n [id]=\"linkId\"\n [routerLink]=\"rLink\"\n [queryParams]=\"{ scrollTo: linkId }\"\n [queryParamsHandling]=\"queryParamsHandling\"\n >\n {{ labelDicoKey | fromDictionary: dicoLabelPlaceHolders }}\n </a>\n <ng-container *ngIf=\"listLength\">\n <br />\n <small *ngIf=\"listLength > 1\" class=\"text-secondary\">\n {{ listLength }} \u00E9l\u00E9ments saisis\n </small>\n <small *ngIf=\"listLength === 1\" class=\"text-secondary\">\n {{ listLength }} \u00E9l\u00E9ment saisi\n </small>\n </ng-container>\n </span>\n <foehn-error-pill\n *ngIf=\"showErrorPill\"\n [errorPrefix]=\"errorPrefix\"\n ></foehn-error-pill>\n</li>\n\n<li\n class=\"d-flex flex-column flex-md-row justify-content-between border-bottom pb-3\"\n *ngIf=\"!applicable\"\n>\n <span [id]=\"nonApplicableId\" class=\"align-self-baseline mt-2\">\n {{ labelDicoKey | fromDictionary: dicoLabelPlaceHolders }}\n &nbsp;\n <span class=\"fw-bold\">(non applicable)</span>\n </span>\n</li>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: FoehnErrorPillComponent, selector: "foehn-error-pill", inputs: ["errorPrefix", "incompleteIndicatorOnly"] }, { kind: "pipe", type: SdkDictionaryPipe, name: "fromDictionary" }] }); }
16483
16492
  }
16484
16493
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FoehnMenuItemComponent, decorators: [{
16485
16494
  type: Component,
16486
- args: [{ selector: 'foehn-menu-item', standalone: false, template: "<li\n class=\"d-flex flex-column flex-md-row justify-content-between border-bottom pb-3\"\n *ngIf=\"applicable\"\n>\n <span class=\"align-self-baseline mt-2\">\n <a\n href=\"#\"\n (click)=\"$event.preventDefault()\"\n [id]=\"linkId\"\n [routerLink]=\"rLink\"\n [queryParams]=\"{ scrollTo: linkId }\"\n [queryParamsHandling]=\"queryParamsHandling\"\n >\n {{ labelDicoKey | fromDictionary: dicoLabelPlaceHolders }}\n </a>\n <ng-container *ngIf=\"listLength\">\n <br />\n <small *ngIf=\"listLength > 1\" class=\"text-secondary\">\n {{ listLength }} \u00E9l\u00E9ments saisis\n </small>\n <small *ngIf=\"listLength === 1\" class=\"text-secondary\">\n {{ listLength }} \u00E9l\u00E9ment saisi\n </small>\n </ng-container>\n </span>\n <foehn-error-pill\n *ngIf=\"showErrorPill\"\n [errorPrefix]=\"errorPrefix\"\n ></foehn-error-pill>\n</li>\n\n<li\n class=\"d-flex flex-column flex-md-row justify-content-between border-bottom pb-3\"\n *ngIf=\"!applicable\"\n>\n <span [id]=\"errorPrefix + 'NA'\" class=\"align-self-baseline mt-2\">\n {{ labelDicoKey | fromDictionary: dicoLabelPlaceHolders }}\n &nbsp;\n <span class=\"fw-bold\">(non applicable)</span>\n </span>\n</li>\n" }]
16495
+ args: [{ selector: 'foehn-menu-item', standalone: false, template: "<li\n class=\"d-flex flex-column flex-md-row justify-content-between border-bottom pb-3\"\n *ngIf=\"applicable\"\n>\n <span class=\"align-self-baseline mt-2\">\n <a\n href=\"#\"\n (click)=\"$event.preventDefault()\"\n [id]=\"linkId\"\n [routerLink]=\"rLink\"\n [queryParams]=\"{ scrollTo: linkId }\"\n [queryParamsHandling]=\"queryParamsHandling\"\n >\n {{ labelDicoKey | fromDictionary: dicoLabelPlaceHolders }}\n </a>\n <ng-container *ngIf=\"listLength\">\n <br />\n <small *ngIf=\"listLength > 1\" class=\"text-secondary\">\n {{ listLength }} \u00E9l\u00E9ments saisis\n </small>\n <small *ngIf=\"listLength === 1\" class=\"text-secondary\">\n {{ listLength }} \u00E9l\u00E9ment saisi\n </small>\n </ng-container>\n </span>\n <foehn-error-pill\n *ngIf=\"showErrorPill\"\n [errorPrefix]=\"errorPrefix\"\n ></foehn-error-pill>\n</li>\n\n<li\n class=\"d-flex flex-column flex-md-row justify-content-between border-bottom pb-3\"\n *ngIf=\"!applicable\"\n>\n <span [id]=\"nonApplicableId\" class=\"align-self-baseline mt-2\">\n {{ labelDicoKey | fromDictionary: dicoLabelPlaceHolders }}\n &nbsp;\n <span class=\"fw-bold\">(non applicable)</span>\n </span>\n</li>\n" }]
16487
16496
  }], propDecorators: { labelDicoKey: [{
16488
16497
  type: Input
16489
16498
  }], dicoLabelPlaceHolders: [{