@leanix/components 0.4.741 → 0.4.742

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Input, Component, signal, ChangeDetectionStrategy, HostBinding, input, computed, EventEmitter, HostListener, Output, Injectable, ElementRef, ViewChild, Inject, model, Directive, Optional, Pipe, NgModule, output, inject, DestroyRef, ChangeDetectorRef, effect, ContentChild, afterRenderEffect, ContentChildren, ViewChildren, forwardRef, TemplateRef, viewChild, booleanAttribute, SecurityContext, Self, Host, Injector, ApplicationRef, createComponent } from '@angular/core';
2
+ import { InjectionToken, Input, Component, signal, ChangeDetectionStrategy, HostBinding, input, computed, EventEmitter, HostListener, Output, Injectable, ElementRef, ViewChild, Inject, model, Directive, Optional, Pipe, inject, NgModule, output, DestroyRef, ChangeDetectorRef, effect, ContentChild, afterRenderEffect, ContentChildren, ViewChildren, forwardRef, TemplateRef, viewChild, booleanAttribute, SecurityContext, Self, Host, Injector, ApplicationRef, createComponent } from '@angular/core';
3
3
  import * as i1 from '@ngx-translate/core';
4
4
  import { TranslatePipe, TranslateModule } from '@ngx-translate/core';
5
5
  import { NgTemplateOutlet, NgClass, AsyncPipe, UpperCasePipe, DecimalPipe, CommonModule, formatDate } from '@angular/common';
@@ -2020,28 +2020,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
2020
2020
  }] });
2021
2021
 
2022
2022
  class LxTimeAgo {
2023
- constructor(getDateFnLocale) {
2024
- this.getDateFnLocale = getDateFnLocale;
2023
+ constructor() {
2024
+ this.getDateFnLocale = inject(DATE_FN_LOCALE, { optional: true });
2025
2025
  }
2026
2026
  transform(input) {
2027
2027
  const locale = this.getDateFnLocale ? this.getDateFnLocale() : null;
2028
2028
  return distanceInWords(new Date(), input, { locale, addSuffix: true });
2029
2029
  }
2030
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: LxTimeAgo, deps: [{ token: DATE_FN_LOCALE, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
2030
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: LxTimeAgo, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2031
2031
  static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: LxTimeAgo, isStandalone: true, name: "lxTimeAgo" }); }
2032
2032
  }
2033
2033
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: LxTimeAgo, decorators: [{
2034
2034
  type: Pipe,
2035
2035
  args: [{
2036
- name: 'lxTimeAgo',
2037
- pure: true
2036
+ name: 'lxTimeAgo'
2038
2037
  }]
2039
- }], ctorParameters: () => [{ type: Function, decorators: [{
2040
- type: Optional
2041
- }, {
2042
- type: Inject,
2043
- args: [DATE_FN_LOCALE]
2044
- }] }] });
2038
+ }] });
2045
2039
 
2046
2040
  class LxTranslatePipe {
2047
2041
  constructor(translate, cdRef, globalTranslationOptionsProvider) {