@bitblit/ngx-acute-common 5.1.655-alpha → 5.1.657-alpha
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,7 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from "@angular/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class DurationMsFormattedPipe implements PipeTransform {
|
|
4
|
-
transform(ms: number, style
|
|
4
|
+
transform(ms: number | string, style?: string, includeMS?: boolean): string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DurationMsFormattedPipe, never>;
|
|
6
6
|
static ɵpipe: i0.ɵɵPipeDeclaration<DurationMsFormattedPipe, "ngxDurationMsFormat", true>;
|
|
7
7
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Pipe } from "@angular/core";
|
|
2
2
|
import { DurationRatchet } from "@bitblit/ratchet-common/lang/duration-ratchet";
|
|
3
3
|
import { StringRatchet } from "@bitblit/ratchet-common/lang/string-ratchet";
|
|
4
|
+
import { NumberRatchet } from "@bitblit/ratchet-common/lang/number-ratchet";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export class DurationMsFormattedPipe {
|
|
6
|
-
transform(ms, style, includeMS) {
|
|
7
|
-
const toFormat = ms
|
|
7
|
+
transform(ms, style = 'standard', includeMS = false) {
|
|
8
|
+
const toFormat = NumberRatchet.safeNumber(ms, 0);
|
|
8
9
|
let rval;
|
|
9
10
|
switch (StringRatchet.trimToEmpty(style)) {
|
|
10
11
|
case "thin":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duration-ms-formatted.pipe.js","sourceRoot":"","sources":["../../src/pipes/duration-ms-formatted.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;;AAG5E,MAAM,OAAO,uBAAuB;IAClC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"duration-ms-formatted.pipe.js","sourceRoot":"","sources":["../../src/pipes/duration-ms-formatted.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;;AAG5E,MAAM,OAAO,uBAAuB;IAClC,SAAS,CAAC,EAAmB,EAAE,QAAc,UAAU,EAAE,YAAmB,KAAK;QAC/E,MAAM,QAAQ,GAAW,aAAa,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACzD,IAAI,IAAY,CAAC;QACjB,QAAQ,aAAa,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC;YACzC,KAAK,MAAM;gBACT,IAAI,GAAG,eAAe,CAAC,oBAAoB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;gBACjE,MAAM;YACR,KAAK,OAAO;gBACV,IAAI,GAAG,eAAe,CAAC,qBAAqB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;gBAClE,MAAM;YACR;gBACE,IAAI,GAAG,eAAe,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;gBAC7D,MAAM;QACV,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;iHAhBU,uBAAuB;wEAAvB,uBAAuB;;iFAAvB,uBAAuB;cADnC,IAAI;eAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,UAAU,EAAE,IAAI,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitblit/ngx-acute-common",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.657-alpha",
|
|
4
4
|
"description": "Library for using angular",
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@angular/platform-browser": "19.2.9",
|
|
45
45
|
"@angular/platform-browser-dynamic": "19.2.9",
|
|
46
46
|
"@angular/router": "19.2.9",
|
|
47
|
-
"@bitblit/ratchet-common": "5.1.
|
|
48
|
-
"@bitblit/ratchet-graphql": "5.1.
|
|
47
|
+
"@bitblit/ratchet-common": "5.1.657-alpha",
|
|
48
|
+
"@bitblit/ratchet-graphql": "5.1.657-alpha",
|
|
49
49
|
"primeflex": "4.0.0",
|
|
50
50
|
"primeicons": "7.0.0",
|
|
51
51
|
"primeng": "19.1.2",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@angular/platform-browser": "^19.2.9",
|
|
63
63
|
"@angular/platform-browser-dynamic": "^19.2.9",
|
|
64
64
|
"@angular/router": "^19.2.9",
|
|
65
|
-
"@bitblit/ratchet-common": "5.1.
|
|
66
|
-
"@bitblit/ratchet-graphql": "5.1.
|
|
65
|
+
"@bitblit/ratchet-common": "5.1.657-alpha",
|
|
66
|
+
"@bitblit/ratchet-graphql": "5.1.657-alpha",
|
|
67
67
|
"primeflex": "4.0.0",
|
|
68
68
|
"primeicons": "7.0.0",
|
|
69
69
|
"primeng": "19.1.2",
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@angular/compiler-cli": "19.2.9",
|
|
75
|
-
"@bitblit/ratchet-node-only": "5.1.
|
|
75
|
+
"@bitblit/ratchet-node-only": "5.1.657-alpha"
|
|
76
76
|
}
|
|
77
77
|
}
|