@tilde-nlp/ngx-common 8.0.2 → 8.0.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.
@@ -1465,10 +1465,8 @@ class DateAgoPipe {
1465
1465
  get localizationPrefix() { return this.settings?.localizationPrefix ?? this.defaultSettings.localizationPrefix; }
1466
1466
  get justNowKey() { return this.settings?.justNowKey ?? this.defaultSettings.justNowKey; }
1467
1467
  get justNowSeconds() { return this.settings?.justNowSeconds ?? this.defaultSettings.justNowSeconds; }
1468
- constructor(translate, translatePipe, _ref, settings) {
1468
+ constructor(translate, settings) {
1469
1469
  this.translate = translate;
1470
- this.translatePipe = translatePipe;
1471
- this._ref = _ref;
1472
1470
  this.settings = settings;
1473
1471
  this.defaultSettings = {
1474
1472
  intervals: [
@@ -1523,7 +1521,7 @@ class DateAgoPipe {
1523
1521
  if (!dateAgo) {
1524
1522
  return "";
1525
1523
  }
1526
- return this.translatePipe.transform(`${this.localizationPrefix}.${dateAgo.key}`, { value: dateAgo.howMany });
1524
+ return this.translate.instant(`${this.localizationPrefix}.${dateAgo.key}`, { value: dateAgo.howMany });
1527
1525
  }
1528
1526
  calculateDateAgo(value, enableMultiplePostfix) {
1529
1527
  if (value) {
@@ -1549,7 +1547,7 @@ class DateAgoPipe {
1549
1547
  }
1550
1548
  return null;
1551
1549
  }
1552
- static { this.ɵfac = function DateAgoPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DateAgoPipe)(i0.ɵɵdirectiveInject(i1$1.TranslateService, 16), i0.ɵɵdirectiveInject(i1$1.TranslatePipe, 16), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef, 16), i0.ɵɵdirectiveInject(DateAgoSettingsToken, 24)); }; }
1550
+ static { this.ɵfac = function DateAgoPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DateAgoPipe)(i0.ɵɵdirectiveInject(i1$1.TranslateService, 16), i0.ɵɵdirectiveInject(DateAgoSettingsToken, 24)); }; }
1553
1551
  static { this.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "dateAgo", type: DateAgoPipe, pure: false, standalone: false }); }
1554
1552
  }
1555
1553
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateAgoPipe, [{
@@ -1559,7 +1557,7 @@ class DateAgoPipe {
1559
1557
  pure: false,
1560
1558
  standalone: false
1561
1559
  }]
1562
- }], () => [{ type: i1$1.TranslateService }, { type: i1$1.TranslatePipe }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
1560
+ }], () => [{ type: i1$1.TranslateService }, { type: undefined, decorators: [{
1563
1561
  type: Inject,
1564
1562
  args: [DateAgoSettingsToken]
1565
1563
  }, {
@@ -1569,8 +1567,7 @@ class DateAgoPipe {
1569
1567
  class DateAgoModule {
1570
1568
  static { this.ɵfac = function DateAgoModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DateAgoModule)(); }; }
1571
1569
  static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: DateAgoModule }); }
1572
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
1573
- TranslateModule] }); }
1570
+ static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] }); }
1574
1571
  }
1575
1572
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateAgoModule, [{
1576
1573
  type: NgModule,
@@ -1579,16 +1576,15 @@ class DateAgoModule {
1579
1576
  DateAgoPipe
1580
1577
  ],
1581
1578
  imports: [
1582
- CommonModule,
1583
- TranslateModule
1579
+ CommonModule
1584
1580
  ],
1585
1581
  exports: [
1586
1582
  DateAgoPipe
1587
- ]
1583
+ ],
1584
+ providers: []
1588
1585
  }]
1589
1586
  }], null, null); })();
1590
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DateAgoModule, { declarations: [DateAgoPipe], imports: [CommonModule,
1591
- TranslateModule], exports: [DateAgoPipe] }); })();
1587
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DateAgoModule, { declarations: [DateAgoPipe], imports: [CommonModule], exports: [DateAgoPipe] }); })();
1592
1588
 
1593
1589
  /**
1594
1590
  * Pipe used to calculate the length of an object.