new-front-common-library 0.0.57 → 0.0.59

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,6 +1793,30 @@
1793
1793
  }]
1794
1794
  }] });
1795
1795
 
1796
+ var FormatDurationPipe = /** @class */ (function () {
1797
+ function FormatDurationPipe() {
1798
+ }
1799
+ FormatDurationPipe.prototype.transform = function (value) {
1800
+ if (value > 0 && value < 60) {
1801
+ return value + 'min';
1802
+ }
1803
+ else {
1804
+ var h = Math.floor(value / 60);
1805
+ var min = value % 60;
1806
+ return min === 0 ? h + 'h' : h + 'h ' + min + 'min';
1807
+ }
1808
+ };
1809
+ return FormatDurationPipe;
1810
+ }());
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
+ type: i0.Pipe,
1815
+ args: [{
1816
+ name: 'formatDuration'
1817
+ }]
1818
+ }] });
1819
+
1796
1820
  var UtilModule = /** @class */ (function () {
1797
1821
  function UtilModule(langService) {
1798
1822
  this.langService = langService;
@@ -1826,6 +1850,7 @@
1826
1850
  TrimStringPipe,
1827
1851
  CommonTranslatePipe,
1828
1852
  ThirdPartyAddressPipe,
1853
+ FormatDurationPipe,
1829
1854
  MyDialogPopupLoginComponent,
1830
1855
  OverlayComponent,
1831
1856
  HeaderComponent,
@@ -1860,6 +1885,7 @@
1860
1885
  FormatNumberInput,
1861
1886
  LocalDatePipe,
1862
1887
  MyNumberPipe,
1888
+ FormatDurationPipe,
1863
1889
  TrimStringPipe,
1864
1890
  ThirdPartyAddressPipe,
1865
1891
  HeaderComponent,
@@ -1954,6 +1980,7 @@
1954
1980
  TrimStringPipe,
1955
1981
  CommonTranslatePipe,
1956
1982
  ThirdPartyAddressPipe,
1983
+ FormatDurationPipe,
1957
1984
  MyDialogPopupLoginComponent,
1958
1985
  OverlayComponent,
1959
1986
  HeaderComponent,
@@ -1993,6 +2020,7 @@
1993
2020
  FormatNumberInput,
1994
2021
  LocalDatePipe,
1995
2022
  MyNumberPipe,
2023
+ FormatDurationPipe,
1996
2024
  TrimStringPipe,
1997
2025
  ThirdPartyAddressPipe,
1998
2026
  HeaderComponent,
@@ -4985,6 +5013,7 @@
4985
5013
  exports.FixingModel = FixingModel;
4986
5014
  exports.FlatMediaModel = FlatMediaModel;
4987
5015
  exports.FormActionsEventsService = FormActionsEventsService;
5016
+ exports.FormatDurationPipe = FormatDurationPipe;
4988
5017
  exports.FormatImageModel = FormatImageModel;
4989
5018
  exports.FormatModel = FormatModel;
4990
5019
  exports.FormatNumberInput = FormatNumberInput;