@leanix/components 0.4.354 → 0.4.356

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.
@@ -4,13 +4,13 @@ export class ErrorMessageComponent {
4
4
  constructor() {
5
5
  this.dynamicErrorMessage = signal('');
6
6
  this.wrapper = viewChild.required('contentWrapper');
7
- this.hasProjectedContent = computed(() => this.wrapper().nativeElement.innerHTML.length > 0);
7
+ this.computedErrorMessage = computed(() => this.dynamicErrorMessage() || this.wrapper().nativeElement.innerText);
8
8
  }
9
9
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ErrorMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: ErrorMessageComponent, isStandalone: true, selector: "lx-error-message", viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["contentWrapper"], descendants: true, isSignal: true }], ngImport: i0, template: "<span #contentWrapper hidden>\n <ng-content />\n</span>\n\n@if (hasProjectedContent() || dynamicErrorMessage()) {\n <div class=\"error\">\n @if (dynamicErrorMessage()) {\n {{ dynamicErrorMessage() }}\n } @else {\n <ng-content />\n }\n </div>\n}\n", styles: [".error{color:#f96464;padding:4px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: ErrorMessageComponent, isStandalone: true, selector: "lx-error-message", viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["contentWrapper"], descendants: true, isSignal: true }], ngImport: i0, template: "<span #contentWrapper hidden>\n <ng-content />\n</span>\n\n@if (computedErrorMessage()) {\n <div class=\"error\">\n {{ computedErrorMessage() }}\n </div>\n}\n", styles: [".error{color:#f96464;padding:4px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
11
11
  }
12
12
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ErrorMessageComponent, decorators: [{
13
13
  type: Component,
14
- args: [{ selector: 'lx-error-message', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<span #contentWrapper hidden>\n <ng-content />\n</span>\n\n@if (hasProjectedContent() || dynamicErrorMessage()) {\n <div class=\"error\">\n @if (dynamicErrorMessage()) {\n {{ dynamicErrorMessage() }}\n } @else {\n <ng-content />\n }\n </div>\n}\n", styles: [".error{color:#f96464;padding:4px}\n"] }]
14
+ args: [{ selector: 'lx-error-message', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<span #contentWrapper hidden>\n <ng-content />\n</span>\n\n@if (computedErrorMessage()) {\n <div class=\"error\">\n {{ computedErrorMessage() }}\n </div>\n}\n", styles: [".error{color:#f96464;padding:4px}\n"] }]
15
15
  }] });
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItbWVzc2FnZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvc3JjL2xpYi9mb3Jtcy11aS9jb21wb25lbnRzL2Vycm9yLW1lc3NhZ2UvZXJyb3ItbWVzc2FnZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvc3JjL2xpYi9mb3Jtcy11aS9jb21wb25lbnRzL2Vycm9yLW1lc3NhZ2UvZXJyb3ItbWVzc2FnZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBYyxNQUFNLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQVM1RyxNQUFNLE9BQU8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c2gsXG4gIHN0YW5kYWxvbmU6IHRydWVcbn0pXG5leHBvcnQgY2xhc3MgRXJyb3JNZXNzYWdlQ29tcG9uZW50IHtcbiAgcHVibGljIHJlYWRvbmx5IGR5bmFtaWNFcnJvck1lc3NhZ2UgPSBzaWduYWwoJycpO1xuICBwcml2YXRlIHJlYWRvbmx5IHdyYXBwZXIgPSB2aWV3Q2hpbGQucmVxdWlyZWQ8RWxlbWVudFJlZjxIVE1MU3BhbkVsZW1lbnQ+PignY29udGVudFdyYXBwZXInKTtcbiAgcHJvdGVjdGVkIGNvbXB1dGVkRXJyb3JNZXNzYWdlID0gY29tcHV0ZWQoKCkgPT4gdGhpcy5keW5hbWljRXJyb3JNZXNzYWdlKCkgfHwgdGhpcy53cmFwcGVyKCkubmF0aXZlRWxlbWVudC5pbm5lclRleHQpO1xufVxuIiwiPHNwYW4gI2NvbnRlbnRXcmFwcGVyIGhpZGRlbj5cbiAgPG5nLWNvbnRlbnQgLz5cbjwvc3Bhbj5cblxuQGlmIChjb21wdXRlZEVycm9yTWVzc2FnZSgpKSB7XG4gIDxkaXYgY2xhc3M9XCJlcnJvclwiPlxuICAgIHt7IGNvbXB1dGVkRXJyb3JNZXNzYWdlKCkgfX1cbiAgPC9kaXY+XG59XG4iXX0=
@@ -5439,14 +5439,14 @@ class ErrorMessageComponent {
5439
5439
  constructor() {
5440
5440
  this.dynamicErrorMessage = signal('');
5441
5441
  this.wrapper = viewChild.required('contentWrapper');
5442
- this.hasProjectedContent = computed(() => this.wrapper().nativeElement.innerHTML.length > 0);
5442
+ this.computedErrorMessage = computed(() => this.dynamicErrorMessage() || this.wrapper().nativeElement.innerText);
5443
5443
  }
5444
5444
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ErrorMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5445
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: ErrorMessageComponent, isStandalone: true, selector: "lx-error-message", viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["contentWrapper"], descendants: true, isSignal: true }], ngImport: i0, template: "<span #contentWrapper hidden>\n <ng-content />\n</span>\n\n@if (hasProjectedContent() || dynamicErrorMessage()) {\n <div class=\"error\">\n @if (dynamicErrorMessage()) {\n {{ dynamicErrorMessage() }}\n } @else {\n <ng-content />\n }\n </div>\n}\n", styles: [".error{color:#f96464;padding:4px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5445
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: ErrorMessageComponent, isStandalone: true, selector: "lx-error-message", viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["contentWrapper"], descendants: true, isSignal: true }], ngImport: i0, template: "<span #contentWrapper hidden>\n <ng-content />\n</span>\n\n@if (computedErrorMessage()) {\n <div class=\"error\">\n {{ computedErrorMessage() }}\n </div>\n}\n", styles: [".error{color:#f96464;padding:4px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5446
5446
  }
5447
5447
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ErrorMessageComponent, decorators: [{
5448
5448
  type: Component,
5449
- args: [{ selector: 'lx-error-message', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<span #contentWrapper hidden>\n <ng-content />\n</span>\n\n@if (hasProjectedContent() || dynamicErrorMessage()) {\n <div class=\"error\">\n @if (dynamicErrorMessage()) {\n {{ dynamicErrorMessage() }}\n } @else {\n <ng-content />\n }\n </div>\n}\n", styles: [".error{color:#f96464;padding:4px}\n"] }]
5449
+ args: [{ selector: 'lx-error-message', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<span #contentWrapper hidden>\n <ng-content />\n</span>\n\n@if (computedErrorMessage()) {\n <div class=\"error\">\n {{ computedErrorMessage() }}\n </div>\n}\n", styles: [".error{color:#f96464;padding:4px}\n"] }]
5450
5450
  }] });
5451
5451
 
5452
5452
  class ExpandedDropdownComponent extends KeyboardSelectDirective {