@bitblit/ngx-acute-common 5.1.654-alpha → 5.1.655-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.
package/lib/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './pipes/plural.pipe';
|
|
|
16
16
|
export * from './pipes/round.pipe';
|
|
17
17
|
export * from './pipes/time-ago-formatted.pipe';
|
|
18
18
|
export * from './pipes/timing.pipe';
|
|
19
|
+
export * from './pipes/duration-ms-formatted.pipe';
|
|
19
20
|
export * from './services/google-analytics.service';
|
|
20
21
|
export * from './services/graphql-query.service';
|
|
21
22
|
export * from './services/local-storage.service';
|
package/lib/index.js
CHANGED
|
@@ -16,6 +16,7 @@ export * from './pipes/plural.pipe';
|
|
|
16
16
|
export * from './pipes/round.pipe';
|
|
17
17
|
export * from './pipes/time-ago-formatted.pipe';
|
|
18
18
|
export * from './pipes/timing.pipe';
|
|
19
|
+
export * from './pipes/duration-ms-formatted.pipe';
|
|
19
20
|
export * from './services/google-analytics.service';
|
|
20
21
|
export * from './services/graphql-query.service';
|
|
21
22
|
export * from './services/local-storage.service';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAE9C,cAAc,gDAAgD,CAAC;AAE/D,cAAc,4CAA4C,CAAC;AAE3D,cAAc,kGAAkG,CAAC;AACjH,cAAc,sFAAsF,CAAC;AAErG,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAE3C,cAAc,iCAAiC,CAAC;AAEhD,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAE9C,cAAc,gDAAgD,CAAC;AAE/D,cAAc,4CAA4C,CAAC;AAE3D,cAAc,kGAAkG,CAAC;AACjH,cAAc,sFAAsF,CAAC;AAErG,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAE3C,cAAc,iCAAiC,CAAC;AAEhD,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AACpC,cAAc,oCAAoC,CAAC;AAEnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yDAAyD,CAAC;AACxE,cAAc,oDAAoD,CAAC;AACnE,cAAc,kDAAkD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DurationMsFormattedPipe implements PipeTransform {
|
|
4
|
+
transform(ms: number, style: string, includeMS: boolean): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DurationMsFormattedPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DurationMsFormattedPipe, "ngxDurationMsFormat", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Pipe } from "@angular/core";
|
|
2
|
+
import { DurationRatchet } from "@bitblit/ratchet-common/lang/duration-ratchet";
|
|
3
|
+
import { StringRatchet } from "@bitblit/ratchet-common/lang/string-ratchet";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class DurationMsFormattedPipe {
|
|
6
|
+
transform(ms, style, includeMS) {
|
|
7
|
+
const toFormat = ms ? ms : 0;
|
|
8
|
+
let rval;
|
|
9
|
+
switch (StringRatchet.trimToEmpty(style)) {
|
|
10
|
+
case "thin":
|
|
11
|
+
rval = DurationRatchet.thinFormatMsDuration(toFormat, includeMS);
|
|
12
|
+
break;
|
|
13
|
+
case "colon":
|
|
14
|
+
rval = DurationRatchet.colonFormatMsDuration(toFormat, includeMS);
|
|
15
|
+
break;
|
|
16
|
+
default:
|
|
17
|
+
rval = DurationRatchet.formatMsDuration(toFormat, includeMS);
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
return rval;
|
|
21
|
+
}
|
|
22
|
+
static ɵfac = function DurationMsFormattedPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DurationMsFormattedPipe)(); };
|
|
23
|
+
static ɵpipe = i0.ɵɵdefinePipe({ name: "ngxDurationMsFormat", type: DurationMsFormattedPipe, pure: true });
|
|
24
|
+
}
|
|
25
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DurationMsFormattedPipe, [{
|
|
26
|
+
type: Pipe,
|
|
27
|
+
args: [{ name: "ngxDurationMsFormat", standalone: true }]
|
|
28
|
+
}], null, null); })();
|
|
29
|
+
//# sourceMappingURL=duration-ms-formatted.pipe.js.map
|
|
@@ -0,0 +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,EAAU,EAAE,KAAa,EAAE,SAAkB;QACrD,MAAM,QAAQ,GAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QACrC,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.655-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.655-alpha",
|
|
48
|
+
"@bitblit/ratchet-graphql": "5.1.655-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.655-alpha",
|
|
66
|
+
"@bitblit/ratchet-graphql": "5.1.655-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.655-alpha"
|
|
76
76
|
}
|
|
77
77
|
}
|