@bitblit/ngx-acute-common 5.1.654-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.
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;AAEpC,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"}
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 | string, style?: string, includeMS?: boolean): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<DurationMsFormattedPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<DurationMsFormattedPipe, "ngxDurationMsFormat", true>;
7
+ }
@@ -0,0 +1,30 @@
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 { NumberRatchet } from "@bitblit/ratchet-common/lang/number-ratchet";
5
+ import * as i0 from "@angular/core";
6
+ export class DurationMsFormattedPipe {
7
+ transform(ms, style = 'standard', includeMS = false) {
8
+ const toFormat = NumberRatchet.safeNumber(ms, 0);
9
+ let rval;
10
+ switch (StringRatchet.trimToEmpty(style)) {
11
+ case "thin":
12
+ rval = DurationRatchet.thinFormatMsDuration(toFormat, includeMS);
13
+ break;
14
+ case "colon":
15
+ rval = DurationRatchet.colonFormatMsDuration(toFormat, includeMS);
16
+ break;
17
+ default:
18
+ rval = DurationRatchet.formatMsDuration(toFormat, includeMS);
19
+ break;
20
+ }
21
+ return rval;
22
+ }
23
+ static ɵfac = function DurationMsFormattedPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DurationMsFormattedPipe)(); };
24
+ static ɵpipe = i0.ɵɵdefinePipe({ name: "ngxDurationMsFormat", type: DurationMsFormattedPipe, pure: true });
25
+ }
26
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DurationMsFormattedPipe, [{
27
+ type: Pipe,
28
+ args: [{ name: "ngxDurationMsFormat", standalone: true }]
29
+ }], null, null); })();
30
+ //# 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;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.654-alpha",
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.654-alpha",
48
- "@bitblit/ratchet-graphql": "5.1.654-alpha",
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.654-alpha",
66
- "@bitblit/ratchet-graphql": "5.1.654-alpha",
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.654-alpha"
75
+ "@bitblit/ratchet-node-only": "5.1.657-alpha"
76
76
  }
77
77
  }