@bitblit/ngx-acute-common 5.0.517-alpha → 5.0.518-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.
Files changed (60) hide show
  1. package/lib/acute-common.module.js +94 -0
  2. package/lib/acute-common.module.js.map +1 -0
  3. package/lib/build/ngx-acute-common-info.js +15 -0
  4. package/lib/build/ngx-acute-common-info.js.map +1 -0
  5. package/lib/components/dialogs/alert/alert.component.js +46 -0
  6. package/lib/components/dialogs/alert/alert.component.js.map +1 -0
  7. package/lib/components/dialogs/block-ui/block-ui.component.js +78 -0
  8. package/lib/components/dialogs/block-ui/block-ui.component.js.map +1 -0
  9. package/lib/{esm2022/index.d.ts → index.js} +1 -0
  10. package/lib/index.js.map +1 -0
  11. package/lib/model/google-analytics-config.js +2 -0
  12. package/lib/model/google-analytics-config.js.map +1 -0
  13. package/lib/pipes/capitalize.pipe.js +16 -0
  14. package/lib/pipes/capitalize.pipe.js.map +1 -0
  15. package/lib/pipes/dollar-formatted.pipe.js +18 -0
  16. package/lib/pipes/dollar-formatted.pipe.js.map +1 -0
  17. package/lib/pipes/map-values.pipe.js +23 -0
  18. package/lib/pipes/map-values.pipe.js.map +1 -0
  19. package/lib/pipes/number-with-commas.pipe.js +14 -0
  20. package/lib/pipes/number-with-commas.pipe.js.map +1 -0
  21. package/lib/pipes/order-by.pipe.js +59 -0
  22. package/lib/pipes/order-by.pipe.js.map +1 -0
  23. package/lib/pipes/percent-formatted.pipe.js +15 -0
  24. package/lib/pipes/percent-formatted.pipe.js.map +1 -0
  25. package/lib/pipes/plural.pipe.js +19 -0
  26. package/lib/pipes/plural.pipe.js.map +1 -0
  27. package/lib/pipes/round.pipe.js +14 -0
  28. package/lib/pipes/round.pipe.js.map +1 -0
  29. package/lib/pipes/time-ago-formatted.pipe.js +16 -0
  30. package/lib/pipes/time-ago-formatted.pipe.js.map +1 -0
  31. package/lib/pipes/timing.pipe.js +22 -0
  32. package/lib/pipes/timing.pipe.js.map +1 -0
  33. package/lib/services/google-analytics.service.js +61 -0
  34. package/lib/services/google-analytics.service.js.map +1 -0
  35. package/lib/services/graphql-query.service.js +87 -0
  36. package/lib/services/graphql-query.service.js.map +1 -0
  37. package/lib/services/local-storage.service.js +51 -0
  38. package/lib/services/local-storage.service.js.map +1 -0
  39. package/lib/services/window-ref.service.js +22 -0
  40. package/lib/services/window-ref.service.js.map +1 -0
  41. package/package.json +7 -3
  42. package/lib/esm2022/acute-common.module.d.ts +0 -2
  43. package/lib/esm2022/build/ngx-acute-common-info.d.ts +0 -5
  44. package/lib/esm2022/components/dialogs/alert/alert.component.d.ts +0 -9
  45. package/lib/esm2022/components/dialogs/block-ui/block-ui.component.d.ts +0 -9
  46. package/lib/esm2022/model/google-analytics-config.d.ts +0 -3
  47. package/lib/esm2022/pipes/capitalize.pipe.d.ts +0 -4
  48. package/lib/esm2022/pipes/dollar-formatted.pipe.d.ts +0 -4
  49. package/lib/esm2022/pipes/map-values.pipe.d.ts +0 -4
  50. package/lib/esm2022/pipes/number-with-commas.pipe.d.ts +0 -4
  51. package/lib/esm2022/pipes/order-by.pipe.d.ts +0 -5
  52. package/lib/esm2022/pipes/percent-formatted.pipe.d.ts +0 -4
  53. package/lib/esm2022/pipes/plural.pipe.d.ts +0 -4
  54. package/lib/esm2022/pipes/round.pipe.d.ts +0 -4
  55. package/lib/esm2022/pipes/time-ago-formatted.pipe.d.ts +0 -4
  56. package/lib/esm2022/pipes/timing.pipe.d.ts +0 -5
  57. package/lib/esm2022/services/google-analytics.service.d.ts +0 -9
  58. package/lib/esm2022/services/graphql-query.service.d.ts +0 -14
  59. package/lib/esm2022/services/local-storage.service.d.ts +0 -8
  60. package/lib/esm2022/services/window-ref.service.d.ts +0 -3
@@ -0,0 +1,94 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { AsyncPipe, CommonModule, NgIf } from "@angular/common";
3
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
4
+ import { RouterModule } from '@angular/router';
5
+ import { AlertComponent } from './components/dialogs/alert/alert.component';
6
+ import { BlockUiComponent } from './components/dialogs/block-ui/block-ui.component';
7
+ import { CapitalizePipe } from './pipes/capitalize.pipe';
8
+ import { DollarFormattedPipe } from './pipes/dollar-formatted.pipe';
9
+ import { MapValuesPipe } from './pipes/map-values.pipe';
10
+ import { NumberWithCommasPipe } from './pipes/number-with-commas.pipe';
11
+ import { OrderByPipe } from './pipes/order-by.pipe';
12
+ import { PercentFormattedPipe } from './pipes/percent-formatted.pipe';
13
+ import { PluralPipe } from './pipes/plural.pipe';
14
+ import { RoundPipe } from './pipes/round.pipe';
15
+ import { TimeAgoFormattedPipe } from './pipes/time-ago-formatted.pipe';
16
+ import { TimingPipe } from './pipes/timing.pipe';
17
+ import { GoogleAnalyticsService } from './services/google-analytics.service';
18
+ import { GraphqlQueryService } from './services/graphql-query.service';
19
+ import { LocalStorageService } from './services/local-storage.service';
20
+ import { WindowRefService } from './services/window-ref.service';
21
+ import { ProgressSpinnerModule } from "primeng/progressspinner";
22
+ import * as i0 from "@angular/core";
23
+ const components = [
24
+ AlertComponent,
25
+ BlockUiComponent,
26
+ CapitalizePipe,
27
+ DollarFormattedPipe,
28
+ MapValuesPipe,
29
+ NumberWithCommasPipe,
30
+ OrderByPipe,
31
+ PercentFormattedPipe,
32
+ PluralPipe,
33
+ RoundPipe,
34
+ TimeAgoFormattedPipe,
35
+ TimingPipe
36
+ ];
37
+ export class AcuteCommonModule {
38
+ static ɵfac = function AcuteCommonModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AcuteCommonModule)(); };
39
+ static ɵmod = i0.ɵɵdefineNgModule({ type: AcuteCommonModule });
40
+ static ɵinj = i0.ɵɵdefineInjector({ providers: [GoogleAnalyticsService,
41
+ GraphqlQueryService,
42
+ LocalStorageService,
43
+ WindowRefService], imports: [CommonModule,
44
+ FormsModule,
45
+ ReactiveFormsModule,
46
+ RouterModule,
47
+ ProgressSpinnerModule] });
48
+ }
49
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcuteCommonModule, [{
50
+ type: NgModule,
51
+ args: [{
52
+ imports: [
53
+ CommonModule,
54
+ FormsModule,
55
+ ReactiveFormsModule,
56
+ RouterModule,
57
+ NgIf, AsyncPipe, ProgressSpinnerModule
58
+ ],
59
+ declarations: [...components],
60
+ exports: [...components],
61
+ providers: [GoogleAnalyticsService,
62
+ GraphqlQueryService,
63
+ LocalStorageService,
64
+ WindowRefService]
65
+ }]
66
+ }], null, null); })();
67
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AcuteCommonModule, { declarations: [AlertComponent,
68
+ BlockUiComponent,
69
+ CapitalizePipe,
70
+ DollarFormattedPipe,
71
+ MapValuesPipe,
72
+ NumberWithCommasPipe,
73
+ OrderByPipe,
74
+ PercentFormattedPipe,
75
+ PluralPipe,
76
+ RoundPipe,
77
+ TimeAgoFormattedPipe,
78
+ TimingPipe], imports: [CommonModule,
79
+ FormsModule,
80
+ ReactiveFormsModule,
81
+ RouterModule,
82
+ NgIf, AsyncPipe, ProgressSpinnerModule], exports: [AlertComponent,
83
+ BlockUiComponent,
84
+ CapitalizePipe,
85
+ DollarFormattedPipe,
86
+ MapValuesPipe,
87
+ NumberWithCommasPipe,
88
+ OrderByPipe,
89
+ PercentFormattedPipe,
90
+ PluralPipe,
91
+ RoundPipe,
92
+ TimeAgoFormattedPipe,
93
+ TimingPipe] }); })();
94
+ //# sourceMappingURL=acute-common.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acute-common.module.js","sourceRoot":"","sources":["../src/acute-common.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAA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B,gBAAgB,CAAC,YAZjB,YAAY;YACZ,WAAW;YACX,mBAAmB;YACnB,YAAY;YACI,qBAAqB;;iFAU5B,iBAAiB;cAhB7B,QAAQ;eAAC;gBACR,OAAO,EAAE;oBACP,YAAY;oBACZ,WAAW;oBACX,mBAAmB;oBACnB,YAAY;oBACb,IAAI,EAAE,SAAS,EAAE,qBAAqB;iBAExC;gBACC,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;gBAC7B,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;gBACxB,SAAS,EAAE,CAAC,sBAAsB;oBAChC,mBAAmB;oBACnB,mBAAmB;oBACnB,gBAAgB,CAAC;aACpB;;wFACY,iBAAiB,mBA9B5B,cAAc;QACd,gBAAgB;QAChB,cAAc;QACd,mBAAmB;QACnB,aAAa;QACb,oBAAoB;QACpB,WAAW;QACX,oBAAoB;QACpB,UAAU;QACV,SAAS;QACT,oBAAoB;QACpB,UAAU,aAKR,YAAY;QACZ,WAAW;QACX,mBAAmB;QACnB,YAAY;QACb,IAAI,EAAE,SAAS,EAAE,qBAAqB,aApBvC,cAAc;QACd,gBAAgB;QAChB,cAAc;QACd,mBAAmB;QACnB,aAAa;QACb,oBAAoB;QACpB,WAAW;QACX,oBAAoB;QACpB,UAAU;QACV,SAAS;QACT,oBAAoB;QACpB,UAAU"}
@@ -0,0 +1,15 @@
1
+ export class NgxAcuteCommonInfo {
2
+ constructor() { }
3
+ static buildInformation() {
4
+ const val = {
5
+ version: 'LOCAL-SNAPSHOT',
6
+ hash: 'LOCAL-HASH',
7
+ branch: 'LOCAL-BRANCH',
8
+ tag: 'LOCAL-TAG',
9
+ timeBuiltISO: 'LOCAL-TIME-ISO',
10
+ notes: 'LOCAL-NOTES',
11
+ };
12
+ return val;
13
+ }
14
+ }
15
+ //# sourceMappingURL=ngx-acute-common-info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-acute-common-info.js","sourceRoot":"","sources":["../../src/build/ngx-acute-common-info.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,kBAAkB;IAG7B,gBAAuB,CAAC;IAEjB,MAAM,CAAC,gBAAgB;QAC5B,MAAM,GAAG,GAAqB;YAC5B,OAAO,EAAE,gBAAgB;YACzB,IAAI,EAAE,YAAY;YAClB,MAAM,EAAE,cAAc;YACtB,GAAG,EAAE,WAAW;YAChB,YAAY,EAAE,gBAAgB;YAC9B,KAAK,EAAE,aAAa;SACrB,CAAC;QACF,OAAO,GAAG,CAAC;IACb,CAAC;CACF"}
@@ -0,0 +1,46 @@
1
+ import { Component } from '@angular/core';
2
+ import { DialogService, DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
3
+ import { Logger } from '@bitblit/ratchet-common/logger/logger';
4
+ import { BehaviorSubject } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "primeng/dynamicdialog";
7
+ import * as i2 from "@angular/common";
8
+ export class AlertComponent {
9
+ dialogService;
10
+ cfg;
11
+ ref;
12
+ constructor(dialogService, cfg, ref) {
13
+ this.dialogService = dialogService;
14
+ this.cfg = cfg;
15
+ this.ref = ref;
16
+ Logger.info('Creating with %j', this.cfg);
17
+ }
18
+ static showAlert(dialogSvc, message, title = 'Alert') {
19
+ const dlg = dialogSvc.open(AlertComponent, {
20
+ data: {
21
+ message: message instanceof BehaviorSubject ? message : new BehaviorSubject(message),
22
+ },
23
+ header: title,
24
+ });
25
+ return dlg;
26
+ }
27
+ static ɵfac = function AlertComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AlertComponent)(i0.ɵɵdirectiveInject(i1.DialogService), i0.ɵɵdirectiveInject(i1.DynamicDialogConfig), i0.ɵɵdirectiveInject(i1.DynamicDialogRef)); };
28
+ static ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["ngx-acute-common-alert"]], decls: 4, vars: 3, template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
29
+ i0.ɵɵelementStart(0, "div")(1, "pre");
30
+ i0.ɵɵtext(2);
31
+ i0.ɵɵpipe(3, "async");
32
+ i0.ɵɵelementEnd()();
33
+ } if (rf & 2) {
34
+ i0.ɵɵadvance(2);
35
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, ctx.cfg.data.message));
36
+ } }, dependencies: [i2.AsyncPipe], encapsulation: 2 });
37
+ }
38
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertComponent, [{
39
+ type: Component,
40
+ args: [{
41
+ selector: 'ngx-acute-common-alert',
42
+ template: '<div><pre>{{cfg.data.message | async}}</pre></div>',
43
+ }]
44
+ }], () => [{ type: i1.DialogService }, { type: i1.DynamicDialogConfig }, { type: i1.DynamicDialogRef }], null); })();
45
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertComponent, { className: "AlertComponent", filePath: "components/dialogs/alert/alert.component.ts", lineNumber: 10 }); })();
46
+ //# sourceMappingURL=alert.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.component.js","sourceRoot":"","sources":["../../../../src/components/dialogs/alert/alert.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,aAAa,EAAE,mBAAmB,EAAE,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAC,MAAM,EAAC,MAAM,uCAAuC,CAAC;AAC7D,OAAO,EAAC,eAAe,EAAC,MAAM,MAAM,CAAC;;;;AAMrC,MAAM,OAAO,cAAc;IAEf;IACD;IACG;IAHZ,YACU,aAA4B,EAC7B,GAAwB,EACrB,GAAqB;QAFvB,kBAAa,GAAb,aAAa,CAAe;QAC7B,QAAG,GAAH,GAAG,CAAqB;QACrB,QAAG,GAAH,GAAG,CAAkB;QAE/B,MAAM,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,SAAwB,EAAE,OAAyC,EAAE,QAAgB,OAAO;QAClH,MAAM,GAAG,GAAqB,SAAS,CAAC,IAAI,CAAC,cAAc,EAAE;YAG3D,IAAI,EAAE;gBACJ,OAAO,EAAE,OAAO,YAAY,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,eAAe,CAAS,OAAO,CAAC;aAC7F;YACD,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;QACH,OAAO,GAAG,CAAC;IACb,CAAC;wGAnBU,cAAc;+CAAd,cAAc;YAFT,AAAL,2BAAK,UAAK;YAAA,YAA4B;;YAAM,AAAN,iBAAM,EAAM;;YAAxC,eAA4B;YAA5B,gEAA4B;;;iFAEtC,cAAc;cAJ1B,SAAS;eAAC;gBACT,QAAQ,EAAE,wBAAwB;gBAClC,QAAQ,EAAE,oDAAoD;aAC/D;;kFACY,cAAc"}
@@ -0,0 +1,78 @@
1
+ import { Component } from "@angular/core";
2
+ import { DialogService, DynamicDialogConfig } from "primeng/dynamicdialog";
3
+ import { BehaviorSubject } from "rxjs";
4
+ import { Logger } from "@bitblit/ratchet-common/logger/logger";
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "primeng/dynamicdialog";
7
+ import * as i2 from "@angular/common";
8
+ import * as i3 from "primeng/progressspinner";
9
+ function BlockUiComponent_div_6_Template(rf, ctx) { if (rf & 1) {
10
+ i0.ɵɵelementStart(0, "div");
11
+ i0.ɵɵtext(1);
12
+ i0.ɵɵelementEnd();
13
+ } if (rf & 2) {
14
+ const ctx_r0 = i0.ɵɵnextContext();
15
+ i0.ɵɵadvance();
16
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.cfg.data.subMessage, " ");
17
+ } }
18
+ export class BlockUiComponent {
19
+ dialogService;
20
+ cfg;
21
+ constructor(dialogService, cfg) {
22
+ this.dialogService = dialogService;
23
+ this.cfg = cfg;
24
+ }
25
+ static createUiBlock(dialogService, message = 'Please wait...', subMessage) {
26
+ const dlg = dialogService.open(BlockUiComponent, {
27
+ closable: false,
28
+ modal: true,
29
+ data: {
30
+ message: message instanceof BehaviorSubject ? message : new BehaviorSubject(message),
31
+ subMessage: subMessage,
32
+ },
33
+ });
34
+ return dlg;
35
+ }
36
+ static async runPromiseWithUiBlock(dialogService, prom, message = 'Please wait...', subMessage) {
37
+ const dlg = dialogService.open(BlockUiComponent, {
38
+ closable: false,
39
+ modal: true,
40
+ data: {
41
+ message: message instanceof BehaviorSubject ? message : new BehaviorSubject(message),
42
+ subMessage: subMessage,
43
+ },
44
+ });
45
+ try {
46
+ const rval = await prom;
47
+ dlg?.close(rval);
48
+ Logger.info('Blockui - Received %j - closing blocker ui and returning', rval);
49
+ return rval;
50
+ }
51
+ catch (err) {
52
+ Logger.error('Caught error inside block ui dialog : %s - rethrowing', err, err);
53
+ dlg?.close();
54
+ throw err;
55
+ }
56
+ }
57
+ static ɵfac = function BlockUiComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BlockUiComponent)(i0.ɵɵdirectiveInject(i1.DialogService), i0.ɵɵdirectiveInject(i1.DynamicDialogConfig)); };
58
+ static ɵcmp = i0.ɵɵdefineComponent({ type: BlockUiComponent, selectors: [["ngx-acute-common-block-ui"]], decls: 7, vars: 4, consts: [[2, "display", "flex", "flex-direction", "column", "justify-content", "center"], ["styleClass", "w-2rem h-2rem", "strokeWidth", "5", "fill", "var(--surface-ground)", "animationDuration", ".8s"], [4, "ngIf"]], template: function BlockUiComponent_Template(rf, ctx) { if (rf & 1) {
59
+ i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h4");
60
+ i0.ɵɵtext(3);
61
+ i0.ɵɵpipe(4, "async");
62
+ i0.ɵɵelementEnd();
63
+ i0.ɵɵelement(5, "p-progressSpinner", 1);
64
+ i0.ɵɵtemplate(6, BlockUiComponent_div_6_Template, 2, 1, "div", 2);
65
+ i0.ɵɵelementEnd()();
66
+ } if (rf & 2) {
67
+ i0.ɵɵadvance(3);
68
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 2, ctx.cfg.data.message));
69
+ i0.ɵɵadvance(3);
70
+ i0.ɵɵproperty("ngIf", ctx.cfg.data.subMessage);
71
+ } }, dependencies: [i2.NgIf, i3.ProgressSpinner, i2.AsyncPipe], encapsulation: 2 });
72
+ }
73
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BlockUiComponent, [{
74
+ type: Component,
75
+ args: [{ selector: 'ngx-acute-common-block-ui', template: "<div>\n <div style=\"display: flex; flex-direction: column; justify-content: center\">\n <h4>{{cfg.data.message | async}}</h4>\n <p-progressSpinner styleClass=\"w-2rem h-2rem\" strokeWidth=\"5\" fill=\"var(--surface-ground)\" animationDuration=\".8s\"></p-progressSpinner>\n <div *ngIf=\"cfg.data.subMessage\">\n {{cfg.data.subMessage}}\n </div>\n </div>\n</div>\n" }]
76
+ }], () => [{ type: i1.DialogService }, { type: i1.DynamicDialogConfig }], null); })();
77
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BlockUiComponent, { className: "BlockUiComponent", filePath: "components/dialogs/block-ui/block-ui.component.ts", lineNumber: 10 }); })();
78
+ //# sourceMappingURL=block-ui.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-ui.component.js","sourceRoot":"","sources":["../../../../src/components/dialogs/block-ui/block-ui.component.ts","../../../../src/components/dialogs/block-ui/block-ui.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAoB,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;;;;;;ICC3D,2BAAiC;IAC/B,YACF;IAAA,iBAAM;;;IADJ,cACF;IADE,2DACF;;ADGJ,MAAM,OAAO,gBAAgB;IAE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E,KAAK,EAAE,CAAC;YACb,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC;0GA/CU,gBAAgB;+CAAhB,gBAAgB;YCPzB,AADF,AADF,2BAAK,aACyE,SACtE;YAAA,YAA4B;;YAAA,iBAAK;YACrC,uCAAuI;YACvI,iEAAiC;YAIrC,AADE,iBAAM,EACF;;YANE,eAA4B;YAA5B,gEAA4B;YAE1B,eAAyB;YAAzB,8CAAyB;;;iFDKtB,gBAAgB;cAJ5B,SAAS;2BACE,2BAA2B;;kFAG1B,gBAAgB"}
@@ -17,3 +17,4 @@ export * from './services/graphql-query.service';
17
17
  export * from './services/local-storage.service';
18
18
  export * from './services/window-ref.service';
19
19
  export * from './acute-common.module';
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAEhD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kDAAkD,CAAC;AAEjE,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,+BAA+B,CAAC;AAE9C,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=google-analytics-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-analytics-config.js","sourceRoot":"","sources":["../../src/model/google-analytics-config.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { Pipe } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class CapitalizePipe {
4
+ transform(input) {
5
+ return input && input.length
6
+ ? (input.charAt(0).toUpperCase() + input.slice(1).toLowerCase())
7
+ : input;
8
+ }
9
+ static ɵfac = function CapitalizePipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CapitalizePipe)(); };
10
+ static ɵpipe = i0.ɵɵdefinePipe({ name: "acuteCapitalize", type: CapitalizePipe, pure: true });
11
+ }
12
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CapitalizePipe, [{
13
+ type: Pipe,
14
+ args: [{ name: 'acuteCapitalize' }]
15
+ }], null, null); })();
16
+ //# sourceMappingURL=capitalize.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capitalize.pipe.js","sourceRoot":"","sources":["../../src/pipes/capitalize.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;;AAGpD,MAAM,OAAO,cAAc;IAEzB,SAAS,CAAC,KAAa;QACrB,OAAO,KAAK,IAAI,KAAK,CAAC,MAAM;YAC1B,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;YAChE,CAAC,CAAC,KAAK,CAAC;IACZ,CAAC;wGANU,cAAc;oEAAd,cAAc;;iFAAd,cAAc;cAD1B,IAAI;eAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE"}
@@ -0,0 +1,18 @@
1
+ import { Pipe } from '@angular/core';
2
+ import { CurrencyRatchet } from "@bitblit/ratchet-common/lang/currency-ratchet";
3
+ import * as i0 from "@angular/core";
4
+ export class DollarFormattedPipe {
5
+ transform(input) {
6
+ const rval = input === null || input === undefined
7
+ ? 'Null'
8
+ : CurrencyRatchet.dollarFormat(input);
9
+ return rval;
10
+ }
11
+ static ɵfac = function DollarFormattedPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DollarFormattedPipe)(); };
12
+ static ɵpipe = i0.ɵɵdefinePipe({ name: "acuteDollars", type: DollarFormattedPipe, pure: true });
13
+ }
14
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DollarFormattedPipe, [{
15
+ type: Pipe,
16
+ args: [{ name: 'acuteDollars' }]
17
+ }], null, null); })();
18
+ //# sourceMappingURL=dollar-formatted.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dollar-formatted.pipe.js","sourceRoot":"","sources":["../../src/pipes/dollar-formatted.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AACpD,OAAO,EAAC,eAAe,EAAC,MAAM,+CAA+C,CAAC;;AAG9E,MAAM,OAAO,mBAAmB;IAC9B,SAAS,CAAC,KAAa;QACrB,MAAM,IAAI,GACR,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;YACnC,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,eAAe,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;6GAPU,mBAAmB;iEAAnB,mBAAmB;;iFAAnB,mBAAmB;cAD/B,IAAI;eAAC,EAAE,IAAI,EAAE,cAAc,EAAC"}
@@ -0,0 +1,23 @@
1
+ import { Pipe } from '@angular/core';
2
+ import { Logger } from '@bitblit/ratchet-common/logger/logger';
3
+ import * as i0 from "@angular/core";
4
+ export class MapValuesPipe {
5
+ transform(value, args) {
6
+ const returnArray = [];
7
+ for (const k of Object.keys(value)) {
8
+ returnArray.push({
9
+ key: k,
10
+ val: value[k],
11
+ });
12
+ }
13
+ Logger.info('Map values : %j : %j', returnArray, args);
14
+ return returnArray;
15
+ }
16
+ static ɵfac = function MapValuesPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MapValuesPipe)(); };
17
+ static ɵpipe = i0.ɵɵdefinePipe({ name: "acuteMapValues", type: MapValuesPipe, pure: true });
18
+ }
19
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapValuesPipe, [{
20
+ type: Pipe,
21
+ args: [{ name: 'acuteMapValues' }]
22
+ }], null, null); })();
23
+ //# sourceMappingURL=map-values.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-values.pipe.js","sourceRoot":"","sources":["../../src/pipes/map-values.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;;AAG/D,MAAM,OAAO,aAAa;IACxB,SAAS,CAAC,KAAU,EAAE,IAAY;QAChC,MAAM,WAAW,GAAG,EAAE,CAAC;QAEvB,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YACnC,WAAW,CAAC,IAAI,CAAC;gBACf,GAAG,EAAE,CAAC;gBACN,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;aACd,CAAC,CAAC;QACL,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,sBAAsB,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;QACvD,OAAO,WAAW,CAAC;IACrB,CAAC;uGAbU,aAAa;mEAAb,aAAa;;iFAAb,aAAa;cADzB,IAAI;eAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE"}
@@ -0,0 +1,14 @@
1
+ import { Pipe } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class NumberWithCommasPipe {
4
+ transform(input) {
5
+ return new Intl.NumberFormat().format(input);
6
+ }
7
+ static ɵfac = function NumberWithCommasPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NumberWithCommasPipe)(); };
8
+ static ɵpipe = i0.ɵɵdefinePipe({ name: "acuteNumberWithCommas", type: NumberWithCommasPipe, pure: true });
9
+ }
10
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NumberWithCommasPipe, [{
11
+ type: Pipe,
12
+ args: [{ name: 'acuteNumberWithCommas' }]
13
+ }], null, null); })();
14
+ //# sourceMappingURL=number-with-commas.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number-with-commas.pipe.js","sourceRoot":"","sources":["../../src/pipes/number-with-commas.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;;AAGpD,MAAM,OAAO,oBAAoB;IAE/B,SAAS,CAAC,KAAa;QACrB,OAAO,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;8GAJU,oBAAoB;0EAApB,oBAAoB;;iFAApB,oBAAoB;cADhC,IAAI;eAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE"}
@@ -0,0 +1,59 @@
1
+ import { Pipe } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class OrderByPipe {
4
+ static _orderByComparator(a, b) {
5
+ if (isNaN(parseFloat(a)) || !isFinite(a) || isNaN(parseFloat(b)) || !isFinite(b)) {
6
+ if (String(a).toLowerCase() < String(b).toLowerCase())
7
+ return -1;
8
+ if (String(a).toLowerCase() > String(b).toLowerCase())
9
+ return 1;
10
+ }
11
+ else {
12
+ if (parseFloat(a) < parseFloat(b))
13
+ return -1;
14
+ if (parseFloat(a) > parseFloat(b))
15
+ return 1;
16
+ }
17
+ return 0;
18
+ }
19
+ transform(input, [config = '+']) {
20
+ if (!Array.isArray(input))
21
+ return input;
22
+ if (!Array.isArray(config) || (Array.isArray(config) && config.length == 1)) {
23
+ const propertyToCheck = !Array.isArray(config) ? config : config[0];
24
+ const desc = propertyToCheck.substr(0, 1) == '-';
25
+ if (!propertyToCheck || propertyToCheck == '-' || propertyToCheck == '+') {
26
+ return !desc ? input.sort() : input.sort().reverse();
27
+ }
28
+ else {
29
+ const property = propertyToCheck.substr(0, 1) == '+' || propertyToCheck.substr(0, 1) == '-' ? propertyToCheck.substr(1) : propertyToCheck;
30
+ return input.sort(function (a, b) {
31
+ return !desc
32
+ ? OrderByPipe._orderByComparator(a[property], b[property])
33
+ : -OrderByPipe._orderByComparator(a[property], b[property]);
34
+ });
35
+ }
36
+ }
37
+ else {
38
+ return input.sort(function (a, b) {
39
+ for (let i = 0; i < config.length; i++) {
40
+ const desc = config[i].substr(0, 1) == '-';
41
+ const property = config[i].substr(0, 1) == '+' || config[i].substr(0, 1) == '-' ? config[i].substr(1) : config[i];
42
+ const comparison = !desc
43
+ ? OrderByPipe._orderByComparator(a[property], b[property])
44
+ : -OrderByPipe._orderByComparator(a[property], b[property]);
45
+ if (comparison != 0)
46
+ return comparison;
47
+ }
48
+ return 0;
49
+ });
50
+ }
51
+ }
52
+ static ɵfac = function OrderByPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || OrderByPipe)(); };
53
+ static ɵpipe = i0.ɵɵdefinePipe({ name: "acuteOrderBy", type: OrderByPipe, pure: false });
54
+ }
55
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OrderByPipe, [{
56
+ type: Pipe,
57
+ args: [{ name: 'acuteOrderBy', pure: false }]
58
+ }], null, null); })();
59
+ //# sourceMappingURL=order-by.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-by.pipe.js","sourceRoot":"","sources":["../../src/pipes/order-by.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;;AAGpD,MAAM,OAAO,WAAW;IACtB,MAAM,CAAC,kBAAkB,CAAC,CAAM,EAAE,CAAM;QACtC,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC,C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CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;oBAElH,MAAM,UAAU,GAAG,CAAC,IAAI;wBACtB,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;wBAC1D,CAAC,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;oBAG9D,IAAI,UAAU,IAAI,CAAC;wBAAE,OAAO,UAAU,CAAC;gBACzC,CAAC;gBAED,OAAO,CAAC,CAAC;YACX,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;qGArDU,WAAW;iEAAX,WAAW;;iFAAX,WAAW;cADvB,IAAI;eAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,EAAE"}
@@ -0,0 +1,15 @@
1
+ import { Pipe } from '@angular/core';
2
+ import { NumberRatchet } from "@bitblit/ratchet-common/lang/number-ratchet";
3
+ import * as i0 from "@angular/core";
4
+ export class PercentFormattedPipe {
5
+ transform(input) {
6
+ return NumberRatchet.pctFormatted(input);
7
+ }
8
+ static ɵfac = function PercentFormattedPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PercentFormattedPipe)(); };
9
+ static ɵpipe = i0.ɵɵdefinePipe({ name: "acutePercent", type: PercentFormattedPipe, pure: true });
10
+ }
11
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PercentFormattedPipe, [{
12
+ type: Pipe,
13
+ args: [{ name: 'acutePercent' }]
14
+ }], null, null); })();
15
+ //# sourceMappingURL=percent-formatted.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"percent-formatted.pipe.js","sourceRoot":"","sources":["../../src/pipes/percent-formatted.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;;AAG1E,MAAM,OAAO,oBAAoB;IAC/B,SAAS,CAAC,KAAa;QACrB,OAAO,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;8GAHU,oBAAoB;iEAApB,oBAAoB;;iFAApB,oBAAoB;cADhC,IAAI;eAAC,EAAE,IAAI,EAAE,cAAc,EAAG"}
@@ -0,0 +1,19 @@
1
+ import { Pipe } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class PluralPipe {
4
+ transform(input, label, pluralLabel = '') {
5
+ input = input || 0;
6
+ return input === 1
7
+ ? `${input} ${label}`
8
+ : pluralLabel
9
+ ? `${input} ${pluralLabel}`
10
+ : `${input} ${label}s`;
11
+ }
12
+ static ɵfac = function PluralPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PluralPipe)(); };
13
+ static ɵpipe = i0.ɵɵdefinePipe({ name: "acutePlural", type: PluralPipe, pure: true });
14
+ }
15
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PluralPipe, [{
16
+ type: Pipe,
17
+ args: [{ name: 'acutePlural' }]
18
+ }], null, null); })();
19
+ //# sourceMappingURL=plural.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plural.pipe.js","sourceRoot":"","sources":["../../src/pipes/plural.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;;AAGpD,MAAM,OAAO,UAAU;IAErB,SAAS,CAAC,KAAa,EAAE,KAAa,EAAE,cAAsB,EAAE;QAC9D,KAAK,GAAG,KAAK,IAAI,CAAC,CAAC;QACnB,OAAO,KAAK,KAAK,CAAC;YAChB,CAAC,CAAC,GAAG,KAAK,IAAI,KAAK,EAAE;YACrB,CAAC,CAAC,WAAW;gBACX,CAAC,CAAC,GAAG,KAAK,IAAI,WAAW,EAAE;gBAC3B,CAAC,CAAC,GAAG,KAAK,IAAI,KAAK,GAAG,CAAC;IAC7B,CAAC;oGATU,UAAU;gEAAV,UAAU;;iFAAV,UAAU;cADtB,IAAI;eAAC,EAAE,IAAI,EAAE,aAAa,EAAE"}
@@ -0,0 +1,14 @@
1
+ import { Pipe } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class RoundPipe {
4
+ transform(input) {
5
+ return Math.round(input);
6
+ }
7
+ static ɵfac = function RoundPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || RoundPipe)(); };
8
+ static ɵpipe = i0.ɵɵdefinePipe({ name: "acuteRound", type: RoundPipe, pure: true });
9
+ }
10
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RoundPipe, [{
11
+ type: Pipe,
12
+ args: [{ name: 'acuteRound' }]
13
+ }], null, null); })();
14
+ //# sourceMappingURL=round.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"round.pipe.js","sourceRoot":"","sources":["../../src/pipes/round.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;;AAGpD,MAAM,OAAO,SAAS;IAEpB,SAAS,CAAC,KAAa;QACrB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;mGAJU,SAAS;+DAAT,SAAS;;iFAAT,SAAS;cADrB,IAAI;eAAC,EAAE,IAAI,EAAE,YAAY,EAAE"}
@@ -0,0 +1,16 @@
1
+ import { Pipe } from '@angular/core';
2
+ import { DurationRatchet } from "@bitblit/ratchet-common/lang/duration-ratchet";
3
+ import { NumberRatchet } from "@bitblit/ratchet-common/lang/number-ratchet";
4
+ import * as i0 from "@angular/core";
5
+ export class TimeAgoFormattedPipe {
6
+ transform(input) {
7
+ return DurationRatchet.formatMsDuration(new Date().getTime() - NumberRatchet.safeNumber(input));
8
+ }
9
+ static ɵfac = function TimeAgoFormattedPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TimeAgoFormattedPipe)(); };
10
+ static ɵpipe = i0.ɵɵdefinePipe({ name: "acuteTimeAgo", type: TimeAgoFormattedPipe, pure: true });
11
+ }
12
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimeAgoFormattedPipe, [{
13
+ type: Pipe,
14
+ args: [{ name: 'acuteTimeAgo' }]
15
+ }], null, null); })();
16
+ //# sourceMappingURL=time-ago-formatted.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-ago-formatted.pipe.js","sourceRoot":"","sources":["../../src/pipes/time-ago-formatted.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,eAAe,EAAC,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;;AAG1E,MAAM,OAAO,oBAAoB;IAC/B,SAAS,CAAC,KAAa;QACrB,OAAO,eAAe,CAAC,gBAAgB,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,aAAa,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IAClG,CAAC;8GAHU,oBAAoB;iEAApB,oBAAoB;;iFAApB,oBAAoB;cADhC,IAAI;eAAC,EAAE,IAAI,EAAE,cAAc,EAAE"}
@@ -0,0 +1,22 @@
1
+ import { Pipe } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class TimingPipe {
4
+ transform(time) {
5
+ if (time) {
6
+ const minutes = Math.floor(time / 60);
7
+ const seconds = Math.floor(time % 60);
8
+ return `${this.initZero(minutes)}${minutes}:${this.initZero(seconds)}${seconds}`;
9
+ }
10
+ return '00:00';
11
+ }
12
+ initZero(time) {
13
+ return time < 10 ? '0' : '';
14
+ }
15
+ static ɵfac = function TimingPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TimingPipe)(); };
16
+ static ɵpipe = i0.ɵɵdefinePipe({ name: "acuteTiming", type: TimingPipe, pure: true });
17
+ }
18
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimingPipe, [{
19
+ type: Pipe,
20
+ args: [{ name: 'acuteTiming' }]
21
+ }], null, null); })();
22
+ //# sourceMappingURL=timing.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timing.pipe.js","sourceRoot":"","sources":["../../src/pipes/timing.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;;AAGpD,MAAM,OAAO,UAAU;IACrB,SAAS,CAAC,IAAY;QACpB,IAAI,IAAI,EAAE,CAAC;YACT,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;YACtC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;YACtC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,OAAO,EAAE,CAAC;QACnF,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;IAEO,QAAQ,CAAC,IAAY;QAC3B,OAAO,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B,CAAC;oGAbU,UAAU;gEAAV,UAAU;;iFAAV,UAAU;cADtB,IAAI;eAAC,EAAE,IAAI,EAAE,aAAa,EAAE"}
@@ -0,0 +1,61 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { NavigationEnd, Router } from '@angular/router';
3
+ import { Logger } from '@bitblit/ratchet-common/logger/logger';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/router";
6
+ export class GoogleAnalyticsService {
7
+ router;
8
+ static IS_PROD = true;
9
+ constructor(router) {
10
+ this.router = router;
11
+ }
12
+ initialize() {
13
+ this.onRouteChange();
14
+ try {
15
+ const url = 'https://www.googletagmanager.com/gtag/js?id=';
16
+ const gTagScript = document.createElement('script');
17
+ gTagScript.async = true;
18
+ const tagId = GoogleAnalyticsService.IS_PROD ? 'G-7D5BBK4K8X' : null;
19
+ gTagScript.src = `${url}${tagId}`;
20
+ document.head.appendChild(gTagScript);
21
+ const dataLayerScript = document.createElement('script');
22
+ dataLayerScript.innerHTML = `
23
+ window.dataLayer = window.dataLayer || [];
24
+ function gtag(){dataLayer.push(arguments);}
25
+ gtag('js', new Date());
26
+ gtag('config', '${tagId}', {'send_page_view': false});`;
27
+ document.head.appendChild(dataLayerScript);
28
+ }
29
+ catch (e) {
30
+ Logger.error('Error adding Google Analytics', e, e);
31
+ }
32
+ }
33
+ onRouteChange() {
34
+ const tagId = GoogleAnalyticsService.IS_PROD ? 'G-7D5BBK4K8X' : null;
35
+ this.router.events.subscribe((event) => {
36
+ if (event instanceof NavigationEnd) {
37
+ gtag('config', tagId, {
38
+ page_path: event.urlAfterRedirects,
39
+ });
40
+ Logger.info('Sending Google Analytics tracking for: ', event.urlAfterRedirects);
41
+ Logger.info('Google Analytics property ID: ', tagId);
42
+ }
43
+ });
44
+ }
45
+ event(action, eventCategory, eventLabel, value) {
46
+ gtag('event', action, {
47
+ ...(eventCategory && { event_category: eventCategory }),
48
+ ...(eventLabel && { event_label: eventLabel }),
49
+ ...(value && { value: value }),
50
+ });
51
+ }
52
+ static ɵfac = function GoogleAnalyticsService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GoogleAnalyticsService)(i0.ɵɵinject(i1.Router)); };
53
+ static ɵprov = i0.ɵɵdefineInjectable({ token: GoogleAnalyticsService, factory: GoogleAnalyticsService.ɵfac, providedIn: 'root' });
54
+ }
55
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GoogleAnalyticsService, [{
56
+ type: Injectable,
57
+ args: [{
58
+ providedIn: 'root',
59
+ }]
60
+ }], () => [{ type: i1.Router }], null); })();
61
+ //# sourceMappingURL=google-analytics.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-analytics.service.js","sourceRoot":"","sources":["../../src/services/google-analytics.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;;;AAS/D,MAAM,OAAO,sBAAsB;IAGb;IAFZ,MAAM,CAAU,OAAO,GAAY,IAAI,CAAC;IAEhD,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAE/B,UAAU;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;QAGrB,IAAI,CAAC;YACH,MAAM,GAAG,GAAU,8CAA8C,CAAC;YAClE,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YACpD,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC;YACxB,MAAM,KAAK,GAAW,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC;YAC7E,UAAU,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,KAAK,EAAE,CAAC;YAClC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;YAEtC,MAAM,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YACzD,eAAe,CAAC,SAAS,GAAG;;;;0BAIR,KAAK,gCAAgC,CAAC;YAC1D,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QAC7C,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,CAAC,KAAK,CAAC,+BAA+B,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAGO,aAAa;QACnB,MAAM,KAAK,GAAW,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC;QAE7E,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;YACrC,IAAI,KAAK,YAAY,aAAa,EAAE,CAAC;gBACnC,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE;oBACpB,SAAS,EAAE,KAAK,CAAC,iBAAiB;iBACnC,CAAC,CAAC;gBAEH,MAAM,CAAC,IAAI,CAAC,yCAAyC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;gBAChF,MAAM,CAAC,IAAI,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;YACvD,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAGM,KAAK,CAAC,MAAc,EAAE,aAAsB,EAAE,UAAmB,EAAE,KAAc;QACtF,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE;YACpB,GAAG,CAAC,aAAa,IAAI,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC;YACvD,GAAG,CAAC,UAAU,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;YAC9C,GAAG,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;SAC/B,CAAC,CAAC;IACL,CAAC;gHApDU,sBAAsB;kDAAtB,sBAAsB,WAAtB,sBAAsB,mBAHrB,MAAM;;iFAGP,sBAAsB;cAJlC,UAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB"}
@@ -0,0 +1,87 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { DialogService } from 'primeng/dynamicdialog';
3
+ import { MessageService } from 'primeng/api';
4
+ import { Logger } from '@bitblit/ratchet-common/logger/logger';
5
+ import { GraphqlRatchet } from '@bitblit/ratchet-graphql/graphql/graphql-ratchet';
6
+ import { BlockUiComponent } from "../components/dialogs/block-ui/block-ui.component";
7
+ import { AuthorizationStyle } from "@bitblit/ratchet-graphql/graphql/authorization-style";
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "@bitblit/ratchet-graphql/graphql/graphql-ratchet";
10
+ import * as i2 from "primeng/dynamicdialog";
11
+ import * as i3 from "primeng/api";
12
+ export class GraphqlQueryService {
13
+ graphqlRatchet;
14
+ dialogService;
15
+ messageService;
16
+ constructor(graphqlRatchet, dialogService, messageService) {
17
+ this.graphqlRatchet = graphqlRatchet;
18
+ this.dialogService = dialogService;
19
+ this.messageService = messageService;
20
+ }
21
+ async executeQuery(queryName, variables, authStyle = AuthorizationStyle.TokenRequired) {
22
+ let rval = null;
23
+ this.messageService.add({ severity: 'info', summary: 'Running query', detail: queryName, life: 3000 });
24
+ Logger.info('eq: %j -: %s --: %s ---: %j', queryName, variables);
25
+ try {
26
+ rval = await this.graphqlRatchet.executeQuery(queryName, variables, authStyle);
27
+ }
28
+ catch (err) {
29
+ Logger.error('Fail : %s', err);
30
+ }
31
+ finally {
32
+ this.messageService.clear();
33
+ }
34
+ return rval;
35
+ }
36
+ async executeQueryWithBlock(blockMessage, queryName, variables, authStyle = AuthorizationStyle.TokenRequired) {
37
+ let rval = null;
38
+ this.messageService.add({ severity: 'info', summary: 'Running query', detail: queryName, life: 3000 });
39
+ Logger.info('eqb: %j -: %s --: %s ---: %j', blockMessage, queryName, variables);
40
+ try {
41
+ rval = await BlockUiComponent.runPromiseWithUiBlock(this.dialogService, this.graphqlRatchet.executeQuery(queryName, variables, authStyle), blockMessage);
42
+ }
43
+ catch (err) {
44
+ Logger.error('Fail : %s', err);
45
+ }
46
+ finally {
47
+ this.messageService.clear();
48
+ }
49
+ return rval;
50
+ }
51
+ async executeMutate(queryName, variables, authStyle = AuthorizationStyle.TokenRequired) {
52
+ let rval = null;
53
+ this.messageService.add({ severity: 'info', summary: 'Running query', detail: queryName, life: 3000 });
54
+ Logger.info('eq: %j -: %s --: %s ---: %j', queryName, variables);
55
+ try {
56
+ rval = await this.graphqlRatchet.executeMutate(queryName, variables, authStyle);
57
+ }
58
+ catch (err) {
59
+ Logger.error('Fail : %s', err);
60
+ }
61
+ finally {
62
+ this.messageService.clear();
63
+ }
64
+ return rval;
65
+ }
66
+ async executeMutateWithBlock(blockMessage, queryName, variables, authStyle = AuthorizationStyle.TokenRequired) {
67
+ let rval = null;
68
+ this.messageService.add({ severity: 'info', summary: 'Running query', detail: queryName, life: 3000 });
69
+ try {
70
+ rval = await BlockUiComponent.runPromiseWithUiBlock(this.dialogService, this.graphqlRatchet.executeMutate(queryName, variables, authStyle), blockMessage);
71
+ }
72
+ catch (err) {
73
+ Logger.error('Fail : %s', err);
74
+ }
75
+ finally {
76
+ this.messageService.clear();
77
+ }
78
+ return rval;
79
+ }
80
+ static ɵfac = function GraphqlQueryService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GraphqlQueryService)(i0.ɵɵinject(i1.GraphqlRatchet), i0.ɵɵinject(i2.DialogService), i0.ɵɵinject(i3.MessageService)); };
81
+ static ɵprov = i0.ɵɵdefineInjectable({ token: GraphqlQueryService, factory: GraphqlQueryService.ɵfac, providedIn: 'root' });
82
+ }
83
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GraphqlQueryService, [{
84
+ type: Injectable,
85
+ args: [{ providedIn: 'root' }]
86
+ }], () => [{ type: i1.GraphqlRatchet }, { type: i2.DialogService }, { type: i3.MessageService }], null); })();
87
+ //# sourceMappingURL=graphql-query.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql-query.service.js","sourceRoot":"","sources":["../../src/services/graphql-query.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM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AAC;YACT,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;QAC9B,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,sBAAsB,CACjC,YAAoB,EACpB,SAAiB,EACjB,SAAc,EACd,YAAgC,kBAAkB,CAAC,aAAa;QAGhE,IAAI,IAAI,GAAa,IAAI,CAAC;QAC1B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAEvG,IAAI,CAAC;YACH,IAAI,GAAG,MAAM,gBAAgB,CAAC,qBAAqB,CACjD,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,cAAc,CAAC,aAAa,CAAI,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,EACrE,YAAY,CACb,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;QACjC,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;QAC9B,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;6GA5FU,mBAAmB;kDAAnB,mBAAmB,WAAnB,mBAAmB,mBADP,MAAM;;iFAClB,mBAAmB;cAD/B,UAAU;eAAC,EAAC,UAAU,EAAE,MAAM,EAAC"}
@@ -0,0 +1,51 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { Logger } from '@bitblit/ratchet-common/logger/logger';
3
+ import * as i0 from "@angular/core";
4
+ export function storageFinder() {
5
+ if (typeof window !== 'undefined') {
6
+ if (typeof window.localStorage !== 'undefined') {
7
+ return window.localStorage;
8
+ }
9
+ }
10
+ return null;
11
+ }
12
+ export class LocalStorageService {
13
+ static APP_NAME = 'Scribe';
14
+ get storageReady() {
15
+ return !!storageFinder();
16
+ }
17
+ clear() {
18
+ this.update({});
19
+ }
20
+ update(value) {
21
+ if (this.storageReady) {
22
+ const toSave = value || {};
23
+ const saveString = JSON.stringify(toSave);
24
+ Logger.info('Updating storage to %s', saveString);
25
+ localStorage.setItem(LocalStorageService.APP_NAME, saveString);
26
+ return toSave;
27
+ }
28
+ else {
29
+ Logger.info('Skipping update - storage not ready : %j', value);
30
+ return {};
31
+ }
32
+ }
33
+ fetch() {
34
+ if (this.storageReady) {
35
+ const loadString = localStorage.getItem(LocalStorageService.APP_NAME) || '{}';
36
+ const rval = JSON.parse(loadString);
37
+ return rval;
38
+ }
39
+ else {
40
+ Logger.info('Skipping fetch - storage not ready');
41
+ return {};
42
+ }
43
+ }
44
+ static ɵfac = function LocalStorageService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LocalStorageService)(); };
45
+ static ɵprov = i0.ɵɵdefineInjectable({ token: LocalStorageService, factory: LocalStorageService.ɵfac, providedIn: 'root' });
46
+ }
47
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LocalStorageService, [{
48
+ type: Injectable,
49
+ args: [{ providedIn: 'root' }]
50
+ }], null, null); })();
51
+ //# sourceMappingURL=local-storage.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-storage.service.js","sourceRoot":"","sources":["../../src/services/local-storage.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;;AAG/D,MAAM,UAAU,aAAa;IAC3B,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,IAAI,OAAO,MAAM,CAAC,YAAY,KAAI,WAAW,EAAE,CAAC;YAC9C,OAAO,MAAM,CAAC,YAAY,CAAC;QAC7B,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,MAAM,OAAO,mBAAmB;IACtB,MAAM,CAAU,QA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 'undefined') {
5
+ return window;
6
+ }
7
+ else {
8
+ throw new Error('Cannot find window object - running in SSR?');
9
+ }
10
+ }
11
+ export class WindowRefService {
12
+ nativeWindow() {
13
+ return getWindow();
14
+ }
15
+ static ɵfac = function WindowRefService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WindowRefService)(); };
16
+ static ɵprov = i0.ɵɵdefineInjectable({ token: WindowRefService, factory: WindowRefService.ɵfac, providedIn: 'root' });
17
+ }
18
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WindowRefService, [{
19
+ type: Injectable,
20
+ args: [{ providedIn: 'root' }]
21
+ }], null, null); })();
22
+ //# sourceMappingURL=window-ref.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"window-ref.service.js","sourceRoot":"","sources":["../../src/services/window-ref.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;;AAWzC,SAAS,SAAS;IAChB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC;IAChB,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IACjE,CAAC;AACH,CAAC;AAGD,MAAM,OAAO,gBAAgB;IACpB,YAAY;QACjB,OAAO,SAAS,EAAE,CAAC;IACrB,CAAC;0GAHU,gBAAgB;kDAAhB,gBAAgB,WAAhB,gBAAgB,mBADJ,MAAM;;iFAClB,gBAAgB;cAD5B,UAAU;eAAC,EAAC,UAAU,EAAE,MAAM,EAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitblit/ngx-acute-common",
3
- "version": "5.0.517-alpha",
3
+ "version": "5.0.518-alpha",
4
4
  "description": "Library for using angular",
5
5
  "module": "lib/esm2022/ngx-acute-common.mjs",
6
6
  "types": "lib/esm2022/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "@angular/platform-browser": "18.2.8",
33
33
  "@angular/platform-browser-dynamic": "18.2.8",
34
34
  "@angular/router": "18.2.8",
35
- "@bitblit/ratchet-common": "5.0.517-alpha",
35
+ "@bitblit/ratchet-common": "5.0.518-alpha",
36
36
  "primeflex": "3.3.1",
37
37
  "primeicons": "7.0.0",
38
38
  "primeng": "17.18.11",
@@ -48,11 +48,15 @@
48
48
  "@angular/platform-browser": "^18.2.8",
49
49
  "@angular/platform-browser-dynamic": "^18.2.8",
50
50
  "@angular/router": "^18.2.8",
51
- "@bitblit/ratchet-common": "5.0.517-alpha",
51
+ "@bitblit/ratchet-common": "5.0.518-alpha",
52
52
  "primeflex": "3.3.1",
53
53
  "primeicons": "7.0.0",
54
54
  "primeng": "17.18.11",
55
55
  "rxjs": "7.8.1",
56
56
  "zone.js": "0.14.10"
57
+ },
58
+ "devDependencies": {
59
+ "@angular/compiler-cli": "18.2.8",
60
+ "@bitblit/ratchet-node-only": "5.0.518-alpha"
57
61
  }
58
62
  }
@@ -1,2 +0,0 @@
1
- export declare class AcuteCommonModule {
2
- }
@@ -1,5 +0,0 @@
1
- import { BuildInformation } from '@bitblit/ratchet-common/build/build-information';
2
- export declare class NgxAcuteCommonInfo {
3
- private constructor();
4
- static buildInformation(): BuildInformation;
5
- }
@@ -1,9 +0,0 @@
1
- import { DialogService, DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
2
- import { BehaviorSubject } from 'rxjs';
3
- export declare class AlertComponent {
4
- private dialogService;
5
- cfg: DynamicDialogConfig;
6
- protected ref: DynamicDialogRef;
7
- constructor(dialogService: DialogService, cfg: DynamicDialogConfig, ref: DynamicDialogRef);
8
- static showAlert(dialogSvc: DialogService, message: BehaviorSubject<string> | string, title?: string): DynamicDialogRef;
9
- }
@@ -1,9 +0,0 @@
1
- import { DialogService, DynamicDialogConfig, DynamicDialogRef } from "primeng/dynamicdialog";
2
- import { BehaviorSubject } from "rxjs";
3
- export declare class BlockUiComponent {
4
- private dialogService;
5
- cfg: DynamicDialogConfig;
6
- constructor(dialogService: DialogService, cfg: DynamicDialogConfig);
7
- static createUiBlock(dialogService: DialogService, message?: BehaviorSubject<string> | string, subMessage?: string): DynamicDialogRef;
8
- static runPromiseWithUiBlock<T>(dialogService: DialogService, prom: Promise<T>, message?: BehaviorSubject<string> | string, subMessage?: string): Promise<T>;
9
- }
@@ -1,3 +0,0 @@
1
- export interface GoogleAnalyticsConfig {
2
- tagId: () => string | string;
3
- }
@@ -1,4 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class CapitalizePipe implements PipeTransform {
3
- transform(input: string): string;
4
- }
@@ -1,4 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class DollarFormattedPipe implements PipeTransform {
3
- transform(input: number): string;
4
- }
@@ -1,4 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class MapValuesPipe implements PipeTransform {
3
- transform(value: any, args?: any[]): any[];
4
- }
@@ -1,4 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class NumberWithCommasPipe implements PipeTransform {
3
- transform(input: number): string;
4
- }
@@ -1,5 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class OrderByPipe implements PipeTransform {
3
- static _orderByComparator(a: any, b: any): number;
4
- transform(input: any, [config]: [string?]): any;
5
- }
@@ -1,4 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class PercentFormattedPipe implements PipeTransform {
3
- transform(input: number): string;
4
- }
@@ -1,4 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class PluralPipe implements PipeTransform {
3
- transform(input: number, label: string, pluralLabel?: string): string;
4
- }
@@ -1,4 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class RoundPipe implements PipeTransform {
3
- transform(input: number): number;
4
- }
@@ -1,4 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class TimeAgoFormattedPipe implements PipeTransform {
3
- transform(input: number): string;
4
- }
@@ -1,5 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class TimingPipe implements PipeTransform {
3
- transform(time: number): string;
4
- private initZero;
5
- }
@@ -1,9 +0,0 @@
1
- import { Router } from '@angular/router';
2
- export declare class GoogleAnalyticsService {
3
- private router;
4
- private static readonly IS_PROD;
5
- constructor(router: Router);
6
- initialize(): void;
7
- private onRouteChange;
8
- event(action: string, eventCategory?: string, eventLabel?: string, value?: string): void;
9
- }
@@ -1,14 +0,0 @@
1
- import { DialogService } from 'primeng/dynamicdialog';
2
- import { MessageService } from 'primeng/api';
3
- import { GraphqlRatchet } from '@bitblit/ratchet-graphql/graphql/graphql-ratchet';
4
- import { AuthorizationStyle } from "@bitblit/ratchet-graphql/graphql/authorization-style";
5
- export declare class GraphqlQueryService {
6
- private graphqlRatchet;
7
- private dialogService;
8
- private messageService;
9
- constructor(graphqlRatchet: GraphqlRatchet, dialogService: DialogService, messageService: MessageService);
10
- executeQuery<T>(queryName: string, variables: any, authStyle?: AuthorizationStyle): Promise<T | null>;
11
- executeQueryWithBlock<T>(blockMessage: string, queryName: string, variables: any, authStyle?: AuthorizationStyle): Promise<T | null>;
12
- executeMutate<T>(queryName: string, variables: any, authStyle?: AuthorizationStyle): Promise<T | null>;
13
- executeMutateWithBlock<T>(blockMessage: string, queryName: string, variables: any, authStyle?: AuthorizationStyle): Promise<T | null>;
14
- }
@@ -1,8 +0,0 @@
1
- export declare function storageFinder(): Storage | null;
2
- export declare class LocalStorageService<T> {
3
- private static readonly APP_NAME;
4
- get storageReady(): boolean;
5
- clear(): void;
6
- update(value: T): T;
7
- fetch(): T;
8
- }
@@ -1,3 +0,0 @@
1
- export declare class WindowRefService {
2
- nativeWindow(): Window;
3
- }