new-front-common-library 0.0.58 → 0.0.60

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.
@@ -1793,11 +1793,11 @@
1793
1793
  }]
1794
1794
  }] });
1795
1795
 
1796
- var TimePipe = /** @class */ (function () {
1797
- function TimePipe() {
1796
+ var FormatDurationPipe = /** @class */ (function () {
1797
+ function FormatDurationPipe() {
1798
1798
  }
1799
- TimePipe.prototype.transform = function (value) {
1800
- if (value > 0 && value / 60 < 1) {
1799
+ FormatDurationPipe.prototype.transform = function (value) {
1800
+ if (value > 0 && value < 60) {
1801
1801
  return value + 'min';
1802
1802
  }
1803
1803
  else {
@@ -1806,14 +1806,14 @@
1806
1806
  return min === 0 ? h + 'h' : h + 'h ' + min + 'min';
1807
1807
  }
1808
1808
  };
1809
- return TimePipe;
1809
+ return FormatDurationPipe;
1810
1810
  }());
1811
- TimePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TimePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1812
- TimePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TimePipe, name: "time" });
1813
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TimePipe, decorators: [{
1811
+ FormatDurationPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormatDurationPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1812
+ FormatDurationPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormatDurationPipe, name: "formatDuration" });
1813
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormatDurationPipe, decorators: [{
1814
1814
  type: i0.Pipe,
1815
1815
  args: [{
1816
- name: 'time'
1816
+ name: 'formatDuration'
1817
1817
  }]
1818
1818
  }] });
1819
1819
 
@@ -1850,7 +1850,7 @@
1850
1850
  TrimStringPipe,
1851
1851
  CommonTranslatePipe,
1852
1852
  ThirdPartyAddressPipe,
1853
- TimePipe,
1853
+ FormatDurationPipe,
1854
1854
  MyDialogPopupLoginComponent,
1855
1855
  OverlayComponent,
1856
1856
  HeaderComponent,
@@ -1885,7 +1885,7 @@
1885
1885
  FormatNumberInput,
1886
1886
  LocalDatePipe,
1887
1887
  MyNumberPipe,
1888
- TimePipe,
1888
+ FormatDurationPipe,
1889
1889
  TrimStringPipe,
1890
1890
  ThirdPartyAddressPipe,
1891
1891
  HeaderComponent,
@@ -1980,7 +1980,7 @@
1980
1980
  TrimStringPipe,
1981
1981
  CommonTranslatePipe,
1982
1982
  ThirdPartyAddressPipe,
1983
- TimePipe,
1983
+ FormatDurationPipe,
1984
1984
  MyDialogPopupLoginComponent,
1985
1985
  OverlayComponent,
1986
1986
  HeaderComponent,
@@ -2020,7 +2020,7 @@
2020
2020
  FormatNumberInput,
2021
2021
  LocalDatePipe,
2022
2022
  MyNumberPipe,
2023
- TimePipe,
2023
+ FormatDurationPipe,
2024
2024
  TrimStringPipe,
2025
2025
  ThirdPartyAddressPipe,
2026
2026
  HeaderComponent,
@@ -5013,6 +5013,7 @@
5013
5013
  exports.FixingModel = FixingModel;
5014
5014
  exports.FlatMediaModel = FlatMediaModel;
5015
5015
  exports.FormActionsEventsService = FormActionsEventsService;
5016
+ exports.FormatDurationPipe = FormatDurationPipe;
5016
5017
  exports.FormatImageModel = FormatImageModel;
5017
5018
  exports.FormatModel = FormatModel;
5018
5019
  exports.FormatNumberInput = FormatNumberInput;
@@ -5084,7 +5085,6 @@
5084
5085
  exports.ThirdPartyCreationRequestModel = ThirdPartyCreationRequestModel;
5085
5086
  exports.ThirdPartyModel = ThirdPartyModel;
5086
5087
  exports.ThirdPartyModuleModel = ThirdPartyModuleModel;
5087
- exports.TimePipe = TimePipe;
5088
5088
  exports.ToasterEventsService = ToasterEventsService;
5089
5089
  exports.TranslatedValueModel = TranslatedValueModel;
5090
5090
  exports.TrimStringPipe = TrimStringPipe;