@bitblit/ngx-acute-common 5.0.518-alpha → 5.0.520-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/build/ngx-acute-common-info.d.ts +5 -0
- package/lib/components/dialogs/alert/alert.component.d.ts +9 -0
- package/lib/components/dialogs/alert/alert.component.js +10 -6
- package/lib/components/dialogs/alert/alert.component.js.map +1 -1
- package/lib/components/dialogs/block-ui/block-ui.component.d.ts +9 -0
- package/lib/components/dialogs/block-ui/block-ui.component.js +11 -10
- package/lib/components/dialogs/block-ui/block-ui.component.js.map +1 -1
- package/lib/index.d.ts +18 -0
- package/lib/index.js +509 -20
- package/lib/index.js.map +1 -1
- package/lib/model/google-analytics-config.d.ts +3 -0
- package/lib/pipes/capitalize.pipe.d.ts +4 -0
- package/lib/pipes/capitalize.pipe.js +2 -2
- package/lib/pipes/capitalize.pipe.js.map +1 -1
- package/lib/pipes/dollar-formatted.pipe.d.ts +4 -0
- package/lib/pipes/dollar-formatted.pipe.js +2 -2
- package/lib/pipes/dollar-formatted.pipe.js.map +1 -1
- package/lib/pipes/map-values.pipe.d.ts +4 -0
- package/lib/pipes/map-values.pipe.js +2 -2
- package/lib/pipes/map-values.pipe.js.map +1 -1
- package/lib/pipes/number-with-commas.pipe.d.ts +4 -0
- package/lib/pipes/number-with-commas.pipe.js +2 -2
- package/lib/pipes/number-with-commas.pipe.js.map +1 -1
- package/lib/pipes/order-by.pipe.d.ts +5 -0
- package/lib/pipes/order-by.pipe.js +2 -2
- package/lib/pipes/order-by.pipe.js.map +1 -1
- package/lib/pipes/percent-formatted.pipe.d.ts +4 -0
- package/lib/pipes/percent-formatted.pipe.js +2 -2
- package/lib/pipes/percent-formatted.pipe.js.map +1 -1
- package/lib/pipes/plural.pipe.d.ts +4 -0
- package/lib/pipes/plural.pipe.js +2 -2
- package/lib/pipes/plural.pipe.js.map +1 -1
- package/lib/pipes/round.pipe.d.ts +4 -0
- package/lib/pipes/round.pipe.js +2 -2
- package/lib/pipes/round.pipe.js.map +1 -1
- package/lib/pipes/time-ago-formatted.pipe.d.ts +4 -0
- package/lib/pipes/time-ago-formatted.pipe.js +2 -2
- package/lib/pipes/time-ago-formatted.pipe.js.map +1 -1
- package/lib/pipes/timing.pipe.d.ts +5 -0
- package/lib/pipes/timing.pipe.js +2 -2
- package/lib/pipes/timing.pipe.js.map +1 -1
- package/lib/services/google-analytics.service.d.ts +9 -0
- package/lib/services/graphql-query.service.d.ts +14 -0
- package/lib/services/local-storage.service.d.ts +8 -0
- package/lib/services/window-ref.service.d.ts +3 -0
- package/package.json +8 -6
- package/lib/acute-common.module.js +0 -94
- package/lib/acute-common.module.js.map +0 -1
- package/lib/esm2022/ngx-acute-common.mjs +0 -547
- package/lib/esm2022/ngx-acute-common.mjs.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
|
@@ -2,9 +2,9 @@ import { Component } from '@angular/core';
|
|
|
2
2
|
import { DialogService, DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
3
3
|
import { Logger } from '@bitblit/ratchet-common/logger/logger';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
|
+
import { AsyncPipe } from "@angular/common";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
import * as i1 from "primeng/dynamicdialog";
|
|
7
|
-
import * as i2 from "@angular/common";
|
|
8
8
|
export class AlertComponent {
|
|
9
9
|
dialogService;
|
|
10
10
|
cfg;
|
|
@@ -25,7 +25,7 @@ export class AlertComponent {
|
|
|
25
25
|
return dlg;
|
|
26
26
|
}
|
|
27
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) {
|
|
28
|
+
static ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["ngx-acute-common-alert"]], standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 4, vars: 3, template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29
29
|
i0.ɵɵelementStart(0, "div")(1, "pre");
|
|
30
30
|
i0.ɵɵtext(2);
|
|
31
31
|
i0.ɵɵpipe(3, "async");
|
|
@@ -33,14 +33,18 @@ export class AlertComponent {
|
|
|
33
33
|
} if (rf & 2) {
|
|
34
34
|
i0.ɵɵadvance(2);
|
|
35
35
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, ctx.cfg.data.message));
|
|
36
|
-
} }, dependencies: [
|
|
36
|
+
} }, dependencies: [AsyncPipe], encapsulation: 2 });
|
|
37
37
|
}
|
|
38
38
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertComponent, [{
|
|
39
39
|
type: Component,
|
|
40
40
|
args: [{
|
|
41
|
-
selector:
|
|
42
|
-
template:
|
|
41
|
+
selector: "ngx-acute-common-alert",
|
|
42
|
+
template: "<div><pre>{{cfg.data.message | async}}</pre></div>",
|
|
43
|
+
standalone: true,
|
|
44
|
+
imports: [
|
|
45
|
+
AsyncPipe
|
|
46
|
+
]
|
|
43
47
|
}]
|
|
44
48
|
}], () => [{ 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:
|
|
49
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertComponent, { className: "AlertComponent", filePath: "components/dialogs/alert/alert.component.ts", lineNumber: 15 }); })();
|
|
46
50
|
//# sourceMappingURL=alert.component.js.map
|
|
@@ -1 +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
|
|
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;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;;;AAU5C,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;YANT,AAAL,2BAAK,UAAK;YAAA,YAA4B;;YAAM,AAAN,iBAAM,EAAM;;YAAxC,eAA4B;YAA5B,gEAA4B;4BAG/C,SAAS;;iFAGA,cAAc;cAR1B,SAAS;eAAC;gBACT,QAAQ,EAAE,wBAAwB;gBAClC,QAAQ,EAAE,oDAAoD;gBAC9D,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE;oBACP,SAAS;iBACV;aACF;;kFACY,cAAc"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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,11 +1,12 @@
|
|
|
1
|
-
import { Component } from
|
|
2
|
-
import { DialogService, DynamicDialogConfig } from
|
|
3
|
-
import { BehaviorSubject } from
|
|
4
|
-
import { Logger } from
|
|
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 { AsyncPipe, NgIf } from "@angular/common";
|
|
6
|
+
import { ProgressSpinnerModule } from "primeng/progressspinner";
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
import * as i1 from "primeng/dynamicdialog";
|
|
7
|
-
import * as i2 from "
|
|
8
|
-
import * as i3 from "primeng/progressspinner";
|
|
9
|
+
import * as i2 from "primeng/progressspinner";
|
|
9
10
|
function BlockUiComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
10
11
|
i0.ɵɵelementStart(0, "div");
|
|
11
12
|
i0.ɵɵtext(1);
|
|
@@ -55,7 +56,7 @@ export class BlockUiComponent {
|
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
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
|
+
static ɵcmp = i0.ɵɵdefineComponent({ type: BlockUiComponent, selectors: [["ngx-acute-common-block-ui"]], standalone: true, features: [i0.ɵɵStandaloneFeature], 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
60
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h4");
|
|
60
61
|
i0.ɵɵtext(3);
|
|
61
62
|
i0.ɵɵpipe(4, "async");
|
|
@@ -68,11 +69,11 @@ export class BlockUiComponent {
|
|
|
68
69
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 2, ctx.cfg.data.message));
|
|
69
70
|
i0.ɵɵadvance(3);
|
|
70
71
|
i0.ɵɵproperty("ngIf", ctx.cfg.data.subMessage);
|
|
71
|
-
} }, dependencies: [
|
|
72
|
+
} }, dependencies: [NgIf, AsyncPipe, ProgressSpinnerModule, i2.ProgressSpinner], encapsulation: 2 });
|
|
72
73
|
}
|
|
73
74
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BlockUiComponent, [{
|
|
74
75
|
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
|
+
args: [{ selector: 'ngx-acute-common-block-ui', standalone: true, imports: [NgIf, AsyncPipe, ProgressSpinnerModule], 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
77
|
}], () => [{ 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:
|
|
78
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BlockUiComponent, { className: "BlockUiComponent", filePath: "components/dialogs/block-ui/block-ui.component.ts", lineNumber: 14 }); })();
|
|
78
79
|
//# sourceMappingURL=block-ui.component.js.map
|
|
@@ -1 +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,
|
|
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,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,aAAa,EAAE,mBAAmB,EAAmB,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAC,eAAe,EAAC,MAAM,MAAM,CAAC;AACrC,OAAO,EAAC,MAAM,EAAC,MAAM,uCAAuC,CAAC;AAC7D,OAAO,EAAC,SAAS,EAAE,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;;;;;ICD1D,2BAAiC;IAC/B,YACF;IAAA,iBAAM;;;IADJ,cACF;IADE,2DACF;;ADOJ,MAAM,OAAO,gBAAgB;IAEjB;IAC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K,EAAE,CAAC;YACb,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC;0GA/CU,gBAAgB;+CAAhB,gBAAgB;YCXzB,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;4BDOvB,IAAI,EAAE,SAAS,EAAE,qBAAqB;;iFAErC,gBAAgB;cAN5B,SAAS;2BACE,2BAA2B,cAEzB,IAAI,WACP,CAAC,IAAI,EAAE,SAAS,EAAE,qBAAqB,CAAC;;kFAEtC,gBAAgB"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './build/ngx-acute-common-info';
|
|
2
|
+
export * from './components/dialogs/alert/alert.component';
|
|
3
|
+
export * from './components/dialogs/block-ui/block-ui.component';
|
|
4
|
+
export * from './model/google-analytics-config';
|
|
5
|
+
export * from './pipes/capitalize.pipe';
|
|
6
|
+
export * from './pipes/dollar-formatted.pipe';
|
|
7
|
+
export * from './pipes/map-values.pipe';
|
|
8
|
+
export * from './pipes/number-with-commas.pipe';
|
|
9
|
+
export * from './pipes/order-by.pipe';
|
|
10
|
+
export * from './pipes/percent-formatted.pipe';
|
|
11
|
+
export * from './pipes/plural.pipe';
|
|
12
|
+
export * from './pipes/round.pipe';
|
|
13
|
+
export * from './pipes/time-ago-formatted.pipe';
|
|
14
|
+
export * from './pipes/timing.pipe';
|
|
15
|
+
export * from './services/google-analytics.service';
|
|
16
|
+
export * from './services/graphql-query.service';
|
|
17
|
+
export * from './services/local-storage.service';
|
|
18
|
+
export * from './services/window-ref.service';
|