@js-smart/ng-kit 18.0.0

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 (72) hide show
  1. package/README.md +297 -0
  2. package/esm2022/js-smart-ng-kit.mjs +5 -0
  3. package/esm2022/lib/components/alert/alert.component.mjs +95 -0
  4. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +172 -0
  5. package/esm2022/lib/components/buttons/base-button/base-button.component.mjs +72 -0
  6. package/esm2022/lib/components/buttons/bs-link-button/bs-link-button.component.mjs +52 -0
  7. package/esm2022/lib/components/buttons/delete-button/delete-button.component.mjs +62 -0
  8. package/esm2022/lib/components/buttons/edit-bs-button/edit-bs-button.component.mjs +55 -0
  9. package/esm2022/lib/components/buttons/edit-button/edit-button.component.mjs +49 -0
  10. package/esm2022/lib/components/buttons/edit-svg-icon-button/edit-svg-icon-button.component.mjs +51 -0
  11. package/esm2022/lib/components/buttons/excel-export-button/excel-export-button.component.mjs +14 -0
  12. package/esm2022/lib/components/buttons/manage-button/manage-button.component.mjs +49 -0
  13. package/esm2022/lib/components/buttons/pdf-export-button/pdf-export-button.component.mjs +13 -0
  14. package/esm2022/lib/components/buttons/primary-button/primary-button.component.mjs +61 -0
  15. package/esm2022/lib/components/buttons/save-primary-button/save-primary-button.component.mjs +60 -0
  16. package/esm2022/lib/components/buttons/search-button/search-button.component.mjs +52 -0
  17. package/esm2022/lib/components/buttons/success-button/success-button.component.mjs +65 -0
  18. package/esm2022/lib/components/buttons/view-button/view-button.component.mjs +41 -0
  19. package/esm2022/lib/components/buttons/view-primary-button/view-primary-button.component.mjs +49 -0
  20. package/esm2022/lib/components/confirm-dialog/confirm-dialog.component.mjs +63 -0
  21. package/esm2022/lib/components/ngx-spinner/ngx-spinner.component.mjs +195 -0
  22. package/esm2022/lib/components/ngx-spinner/ngx-spinner.enum.mjs +16 -0
  23. package/esm2022/lib/components/ngx-spinner/ngx-spinner.service.mjs +71 -0
  24. package/esm2022/lib/components/ngx-spinner/safe-html.pipe.mjs +24 -0
  25. package/esm2022/lib/components/snack-bar/error-snack-bar/error-snack-bar.component.mjs +50 -0
  26. package/esm2022/lib/components/snack-bar/success-snack-bar/success-snack-bar.component.mjs +50 -0
  27. package/esm2022/lib/components/spinner/spinner.component.mjs +31 -0
  28. package/esm2022/lib/directives/ngx-print.directive.mjs +255 -0
  29. package/esm2022/lib/directives/prevent-multiple-clicks.directive.mjs +44 -0
  30. package/esm2022/lib/pipes/type-of.pipe.mjs +17 -0
  31. package/esm2022/lib/services/mat-snack-bar.service.mjs +82 -0
  32. package/esm2022/lib/svg-icons/edit-solid-svg/edit-solid-svg.component.mjs +22 -0
  33. package/esm2022/lib/types/progress-state.mjs +2 -0
  34. package/esm2022/lib/util/progress-util.mjs +80 -0
  35. package/esm2022/public-api.mjs +33 -0
  36. package/fesm2022/js-smart-ng-kit.mjs +1872 -0
  37. package/fesm2022/js-smart-ng-kit.mjs.map +1 -0
  38. package/index.d.ts +5 -0
  39. package/lib/components/alert/alert.component.d.ts +73 -0
  40. package/lib/components/autocomplete/autocomplete.component.d.ts +115 -0
  41. package/lib/components/buttons/base-button/base-button.component.d.ts +63 -0
  42. package/lib/components/buttons/bs-link-button/bs-link-button.component.d.ts +10 -0
  43. package/lib/components/buttons/delete-button/delete-button.component.d.ts +11 -0
  44. package/lib/components/buttons/edit-bs-button/edit-bs-button.component.d.ts +9 -0
  45. package/lib/components/buttons/edit-button/edit-button.component.d.ts +10 -0
  46. package/lib/components/buttons/edit-svg-icon-button/edit-svg-icon-button.component.d.ts +10 -0
  47. package/lib/components/buttons/excel-export-button/excel-export-button.component.d.ts +5 -0
  48. package/lib/components/buttons/manage-button/manage-button.component.d.ts +10 -0
  49. package/lib/components/buttons/pdf-export-button/pdf-export-button.component.d.ts +5 -0
  50. package/lib/components/buttons/primary-button/primary-button.component.d.ts +12 -0
  51. package/lib/components/buttons/save-primary-button/save-primary-button.component.d.ts +11 -0
  52. package/lib/components/buttons/search-button/search-button.component.d.ts +11 -0
  53. package/lib/components/buttons/success-button/success-button.component.d.ts +11 -0
  54. package/lib/components/buttons/view-button/view-button.component.d.ts +9 -0
  55. package/lib/components/buttons/view-primary-button/view-primary-button.component.d.ts +10 -0
  56. package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +20 -0
  57. package/lib/components/ngx-spinner/ngx-spinner.component.d.ts +109 -0
  58. package/lib/components/ngx-spinner/ngx-spinner.enum.d.ts +37 -0
  59. package/lib/components/ngx-spinner/ngx-spinner.service.d.ts +34 -0
  60. package/lib/components/ngx-spinner/safe-html.pipe.d.ts +10 -0
  61. package/lib/components/snack-bar/error-snack-bar/error-snack-bar.component.d.ts +22 -0
  62. package/lib/components/snack-bar/success-snack-bar/success-snack-bar.component.d.ts +22 -0
  63. package/lib/components/spinner/spinner.component.d.ts +22 -0
  64. package/lib/directives/ngx-print.directive.d.ts +157 -0
  65. package/lib/directives/prevent-multiple-clicks.directive.d.ts +21 -0
  66. package/lib/pipes/type-of.pipe.d.ts +7 -0
  67. package/lib/services/mat-snack-bar.service.d.ts +61 -0
  68. package/lib/svg-icons/edit-solid-svg/edit-solid-svg.component.d.ts +8 -0
  69. package/lib/types/progress-state.d.ts +7 -0
  70. package/lib/util/progress-util.d.ts +45 -0
  71. package/package.json +47 -0
  72. package/public-api.d.ts +25 -0
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ExcelExportButtonComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExcelExportButtonComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ExcelExportButtonComponent, "excel-export-button", never, {}, {}, never, never, true, never>;
5
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseButtonComponent } from '../base-button/base-button.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ManageButtonComponent extends BaseButtonComponent {
4
+ label: import("@angular/core").InputSignal<string>;
5
+ icon: import("@angular/core").InputSignal<string>;
6
+ classes: import("@angular/core").InputSignal<string>;
7
+ constructor();
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ManageButtonComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ManageButtonComponent, "manage-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class PdfExportButtonComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<PdfExportButtonComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<PdfExportButtonComponent, "pdf-export-button", never, {}, {}, never, never, true, never>;
5
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseButtonComponent } from '../base-button/base-button.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PrimaryButtonComponent extends BaseButtonComponent {
4
+ loadingLabel: import("@angular/core").InputSignal<string>;
5
+ label: import("@angular/core").InputSignal<string>;
6
+ icon: import("@angular/core").InputSignal<string>;
7
+ showIcon: import("@angular/core").InputSignal<boolean>;
8
+ classes: import("@angular/core").InputSignal<string>;
9
+ constructor();
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<PrimaryButtonComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<PrimaryButtonComponent, "primary-button", never, { "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
12
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseButtonComponent } from '../base-button/base-button.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SavePrimaryButtonComponent extends BaseButtonComponent {
4
+ loadingLabel: import("@angular/core").InputSignal<string>;
5
+ label: import("@angular/core").InputSignal<string>;
6
+ icon: import("@angular/core").InputSignal<string>;
7
+ classes: import("@angular/core").InputSignal<string>;
8
+ constructor();
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SavePrimaryButtonComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SavePrimaryButtonComponent, "save-primary-button", never, { "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseButtonComponent } from '../base-button/base-button.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SearchButtonComponent extends BaseButtonComponent {
4
+ loadingLabel: import("@angular/core").InputSignal<string>;
5
+ label: import("@angular/core").InputSignal<string>;
6
+ icon: import("@angular/core").InputSignal<string>;
7
+ classes: import("@angular/core").InputSignal<string>;
8
+ constructor();
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SearchButtonComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SearchButtonComponent, "search-button", never, { "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseButtonComponent } from '../base-button/base-button.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SuccessButtonComponent extends BaseButtonComponent {
4
+ loadingLabel: import("@angular/core").InputSignal<string>;
5
+ label: import("@angular/core").InputSignal<string>;
6
+ icon: import("@angular/core").InputSignal<string>;
7
+ classes: import("@angular/core").InputSignal<string>;
8
+ constructor();
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuccessButtonComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuccessButtonComponent, "success-button", never, { "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import { BaseButtonComponent } from '../base-button/base-button.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ViewButtonComponent extends BaseButtonComponent {
4
+ label: import("@angular/core").InputSignal<string>;
5
+ icon: import("@angular/core").InputSignal<string>;
6
+ constructor();
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ViewButtonComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ViewButtonComponent, "view-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseButtonComponent } from '../base-button/base-button.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ViewPrimaryButtonComponent extends BaseButtonComponent {
4
+ label: import("@angular/core").InputSignal<string>;
5
+ icon: import("@angular/core").InputSignal<string>;
6
+ classes: import("@angular/core").InputSignal<string>;
7
+ constructor();
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ViewPrimaryButtonComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ViewPrimaryButtonComponent, "view-primary-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,20 @@
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ConfirmDialogComponent {
4
+ data: ConfirmDialogData;
5
+ dialogRef: MatDialogRef<ConfirmDialogComponent>;
6
+ title: string;
7
+ message: string;
8
+ constructor(data: ConfirmDialogData, dialogRef: MatDialogRef<ConfirmDialogComponent>);
9
+ onDismiss(): void;
10
+ onConfirm(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "app-confirm-dialog", never, {}, {}, never, never, true, never>;
13
+ }
14
+ /**
15
+ * Class to represent confirm dialog model.
16
+ */
17
+ export interface ConfirmDialogData {
18
+ title: string;
19
+ message: string;
20
+ }
@@ -0,0 +1,109 @@
1
+ import { ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChange } from '@angular/core';
2
+ import { NgxSpinnerService } from './ngx-spinner.service';
3
+ import { Subject } from 'rxjs';
4
+ import { NgxSpinner, Size } from './ngx-spinner.enum';
5
+ import * as i0 from "@angular/core";
6
+ export declare class NgxSpinnerComponent implements OnDestroy, OnInit, OnChanges {
7
+ private spinnerService;
8
+ private changeDetector;
9
+ /**
10
+ * To set backdrop color
11
+ * Only supports RGBA color format
12
+ */
13
+ bdColor: string;
14
+ /**
15
+ * To set spinner size
16
+ */
17
+ size: Size;
18
+ /**
19
+ * To set spinner color(DEFAULTS.SPINNER_COLOR)
20
+ */
21
+ color: string;
22
+ /**
23
+ * To set type of spinner
24
+ */
25
+ type: string;
26
+ /**
27
+ * To toggle fullscreen mode
28
+ */
29
+ fullScreen: boolean;
30
+ /**
31
+ * Spinner name
32
+ */
33
+ name: string;
34
+ /**
35
+ * z-index value
36
+ */
37
+ zIndex: number;
38
+ /**
39
+ * Custom template for spinner/loader
40
+ */
41
+ template: string;
42
+ /**
43
+ * Show/Hide the spinner
44
+ * @type {boolean}
45
+ */
46
+ showSpinner: boolean;
47
+ /**
48
+ * To enable/disable animation
49
+ */
50
+ disableAnimation: boolean;
51
+ /**
52
+ * Spinner Object
53
+ */
54
+ spinner: NgxSpinner;
55
+ /**
56
+ * Array for spinner's div
57
+ */
58
+ divArray: Array<number>;
59
+ /**
60
+ * Counter for div
61
+ */
62
+ divCount: number;
63
+ /**
64
+ * Show spinner
65
+ **/
66
+ show: boolean;
67
+ /**
68
+ * Unsubscribe from spinner's observable
69
+ **/
70
+ ngUnsubscribe: Subject<void>;
71
+ /**
72
+ * Element Reference
73
+ */
74
+ spinnerDOM: any;
75
+ /**
76
+ * Creates an instance of NgxSpinnerComponent.
77
+ */
78
+ constructor(spinnerService: NgxSpinnerService, changeDetector: ChangeDetectorRef);
79
+ handleKeyboardEvent(event: KeyboardEvent): void;
80
+ /**
81
+ * Initialization method
82
+
83
+ */
84
+ ngOnInit(): void;
85
+ /**
86
+ * To set default ngx-spinner options
87
+ */
88
+ setDefaultOptions: () => void;
89
+ /**
90
+ * On changes event for input variables
91
+ */
92
+ ngOnChanges(changes: {
93
+ [propKey: string]: SimpleChange;
94
+ }): void;
95
+ /**
96
+ * To get class for spinner
97
+ */
98
+ getClass(type: string, size: Size): string;
99
+ /**
100
+ * Check if input variables have changed
101
+ */
102
+ onInputChange(): void;
103
+ /**
104
+ * Component destroy event
105
+ */
106
+ ngOnDestroy(): void;
107
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxSpinnerComponent, never>;
108
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxSpinnerComponent, "ngx-spinner", never, { "bdColor": { "alias": "bdColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "type": { "alias": "type"; "required": false; }; "fullScreen": { "alias": "fullScreen"; "required": false; }; "name": { "alias": "name"; "required": false; }; "zIndex": { "alias": "zIndex"; "required": false; }; "template": { "alias": "template"; "required": false; }; "showSpinner": { "alias": "showSpinner"; "required": false; }; "disableAnimation": { "alias": "disableAnimation"; "required": false; }; }, {}, never, ["*"], true, never>;
109
+ }
@@ -0,0 +1,37 @@
1
+ export declare const LOADERS: {
2
+ 'ball-clip-rotate': number;
3
+ };
4
+ export declare const DEFAULTS: {
5
+ BD_COLOR: string;
6
+ SPINNER_COLOR: string;
7
+ SPINNER_TYPE: string;
8
+ Z_INDEX: number;
9
+ };
10
+ export declare const PRIMARY_SPINNER = "primary";
11
+ export type Size = 'default' | 'small' | 'medium' | 'large';
12
+ export interface Spinner {
13
+ bdColor?: string;
14
+ size?: Size;
15
+ color?: string;
16
+ type?: string;
17
+ fullScreen?: boolean;
18
+ zIndex?: number;
19
+ template?: string;
20
+ showSpinner?: boolean;
21
+ }
22
+ export declare class NgxSpinner {
23
+ name?: string;
24
+ bdColor?: string;
25
+ size?: Size;
26
+ color?: string;
27
+ type?: string;
28
+ class?: string;
29
+ divCount?: number;
30
+ divArray?: Array<number>;
31
+ fullScreen?: boolean;
32
+ show?: boolean;
33
+ zIndex?: number;
34
+ template?: string;
35
+ showSpinner?: boolean;
36
+ constructor(init?: Partial<NgxSpinner>);
37
+ }
@@ -0,0 +1,34 @@
1
+ import { BehaviorSubject, Observable } from 'rxjs';
2
+ import { NgxSpinner, Spinner } from './ngx-spinner.enum';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NgxSpinnerService {
5
+ /**
6
+ * Spinner observable
7
+ *
8
+ * @memberof NgxSpinnerService
9
+ */
10
+ spinnerObservable: BehaviorSubject<NgxSpinner | undefined>;
11
+ /**
12
+ * Creates an instance of NgxSpinnerService.
13
+ * @memberof NgxSpinnerService
14
+ */
15
+ /**
16
+ * Get subscription of desired spinner
17
+ * @memberof NgxSpinnerService
18
+ **/
19
+ getSpinner(name: string): Observable<NgxSpinner>;
20
+ /**
21
+ * To show spinner
22
+ *
23
+ * @memberof NgxSpinnerService
24
+ */
25
+ show(name?: string, spinner?: Spinner): Promise<unknown>;
26
+ /**
27
+ * To hide spinner
28
+ *
29
+ * @memberof NgxSpinnerService
30
+ */
31
+ hide(name?: string, debounce?: number): Promise<unknown>;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxSpinnerService, never>;
33
+ static ɵprov: i0.ɵɵInjectableDeclaration<NgxSpinnerService>;
34
+ }
@@ -0,0 +1,10 @@
1
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
2
+ import { PipeTransform } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SafeHtmlPipe implements PipeTransform {
5
+ private _sanitizer;
6
+ constructor(_sanitizer: DomSanitizer);
7
+ transform(v: string): SafeHtml | undefined;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml", true>;
10
+ }
@@ -0,0 +1,22 @@
1
+ import { MatSnackBarRef } from '@angular/material/snack-bar';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ErrorSnackBarComponent {
4
+ msb: MatSnackBarRef<ErrorSnackBarComponent>;
5
+ data: {
6
+ message: string;
7
+ action?: string;
8
+ };
9
+ constructor(msb: MatSnackBarRef<ErrorSnackBarComponent>, data: {
10
+ message: string;
11
+ action?: string;
12
+ });
13
+ /**
14
+ * Close the Snack Bar
15
+ *
16
+ * @author Pavan Kumar Jadda
17
+ * @since 2.7.18
18
+ */
19
+ close(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorSnackBarComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<ErrorSnackBarComponent, "app-error-snack-bar", never, {}, {}, never, never, true, never>;
22
+ }
@@ -0,0 +1,22 @@
1
+ import { MatSnackBarRef } from '@angular/material/snack-bar';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SuccessSnackBarComponent {
4
+ msb: MatSnackBarRef<SuccessSnackBarComponent>;
5
+ data: {
6
+ message: string;
7
+ action?: string;
8
+ };
9
+ constructor(msb: MatSnackBarRef<SuccessSnackBarComponent>, data: {
10
+ message: string;
11
+ action?: string;
12
+ });
13
+ /**
14
+ * Close the Snack Bar
15
+ *
16
+ * @author Pavan Kumar Jadda
17
+ * @since 2.7.18
18
+ */
19
+ close(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuccessSnackBarComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuccessSnackBarComponent, "app-success-snack-bar", never, {}, {}, never, never, true, never>;
22
+ }
@@ -0,0 +1,22 @@
1
+ import { ThemePalette } from '@angular/material/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SpinnerComponent {
4
+ /**
5
+ * Use Boostrap Spinner. Default `true`
6
+ */
7
+ bootstrapSpinner: import("@angular/core").InputSignal<boolean>;
8
+ /**
9
+ * Diameter of the Angular Material spinner
10
+ */
11
+ diameter: import("@angular/core").InputSignal<number>;
12
+ /**
13
+ * Color of the Angular Material spinner
14
+ */
15
+ color: import("@angular/core").InputSignal<ThemePalette>;
16
+ /**
17
+ * Stroke Width of the Angular Material spinner
18
+ */
19
+ strokeWidth: import("@angular/core").InputSignal<number>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "spinner,lib-spinner", never, { "bootstrapSpinner": { "alias": "bootstrapSpinner"; "required": false; "isSignal": true; }; "diameter": { "alias": "diameter"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
22
+ }
@@ -0,0 +1,157 @@
1
+ import { MatTableDataSource } from '@angular/material/table';
2
+ import { MatPaginator } from '@angular/material/paginator';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Reusable Angular directory that prints given contents of HTML element
6
+ *
7
+ * @since 12.0.0
8
+ * @author Pavan Kumar Jadda
9
+ */
10
+ export declare class NgxPrintDirective {
11
+ /**
12
+ * ID of the HTML element those contents need to be printed
13
+ *
14
+ * @since 12.0.0
15
+ * @author Pavan Kumar Jadda
16
+ */
17
+ printSectionId: string | undefined;
18
+ /**
19
+ * Title of the HTML element those contents need to be printed
20
+ *
21
+ * @since 12.0.0
22
+ * @author Pavan Kumar Jadda
23
+ */
24
+ printTitle: string | undefined;
25
+ /**
26
+ * If `true`, uses CSS of HTMl element, otherwise no CSS applied
27
+ *
28
+ * @since 12.0.0
29
+ * @author Pavan Kumar Jadda
30
+ */
31
+ useExistingCss: boolean;
32
+ /**
33
+ * A delay in milliseconds to force the print dialog to wait before opened. Default: 0
34
+ *
35
+ * @since 12.0.0
36
+ * @author Pavan Kumar Jadda
37
+ */
38
+ printDelay: number;
39
+ /**
40
+ * Instance of the Mat Table Data Source
41
+ *
42
+ * @since 12.0.0
43
+ * @author Pavan Kumar Jadda
44
+ */
45
+ matTableDataSource: MatTableDataSource<any>;
46
+ /**
47
+ * Instance of the Mat Paginator
48
+ *
49
+ * @since 12.0.0
50
+ * @author Pavan Kumar Jadda
51
+ */
52
+ paginator: MatPaginator;
53
+ /**
54
+ * ID of the Mat Paginator
55
+ *
56
+ * @since 12.0.0
57
+ * @author Pavan Kumar Jadda
58
+ */
59
+ paginatorId: string;
60
+ /**
61
+ * HTML tag ID of the Mat-Table Input Filter
62
+ *
63
+ * @since 12.0.0
64
+ * @author Pavan Kumar Jadda
65
+ */
66
+ inputFilterId: string;
67
+ /**
68
+ * If `true`, referenced table is Mat-Table
69
+ *
70
+ * @since 12.0.0
71
+ * @author Pavan Kumar Jadda
72
+ */
73
+ isMatTable: boolean;
74
+ /**
75
+ * If `true` Mat-Table paginator will be hidden
76
+ *
77
+ * @since 12.0.0
78
+ * @author Pavan Kumar Jadda
79
+ */
80
+ hideMatTablePaginator: boolean;
81
+ printStyleArray: never[];
82
+ /**
83
+ * List of Style sheet files
84
+ *
85
+ * @since 12.0.0
86
+ * @author Pavan Kumar Jadda
87
+ */
88
+ private styleSheetFileArray;
89
+ /**
90
+ * List of CSS properties that needs to be applied while printing the document
91
+ *
92
+ * @since 12.0.0
93
+ * @author Pavan Kumar Jadda
94
+ */
95
+ set printStyle({ values }: PrintStyleParams);
96
+ /**
97
+ * Sets given style sheet files to print document
98
+ *
99
+ * @param cssList Comma separated value of CSS file names
100
+ *
101
+ * @since 12.0.0
102
+ * @author Pavan Kumar Jadda
103
+ */
104
+ set styleSheetFile(cssList: string);
105
+ /**
106
+ * Build link HTMl tag based on given file name
107
+ *
108
+ * @since 12.0.0
109
+ * @author Pavan Kumar Jadda
110
+ */
111
+ private static linkTagFn;
112
+ /**
113
+ * Gets HTML element by tag name
114
+ *
115
+ * @since 12.0.0
116
+ * @author Pavan Kumar Jadda
117
+ */
118
+ private static getElementTag;
119
+ /**
120
+ * Print the element upon clicking the button
121
+ *
122
+ * @since 12.0.0
123
+ * @author Pavan Kumar Jadda
124
+ */
125
+ print(): void;
126
+ /**
127
+ * Hide Mat Paginator before Printing
128
+ *
129
+ * @since 12.0.1
130
+ * @author Pavan Kumar Jadda
131
+ */
132
+ private hideMatPaginatorBeforePrinting;
133
+ /**
134
+ * Show Mat Paginator after Printing
135
+ *
136
+ * @since 12.0.1
137
+ * @author Pavan Kumar Jadda
138
+ */
139
+ private showMatPaginatorAfterPrinting;
140
+ /**
141
+ * @returns the string that create the stylesheet which will be injected later within <style></style> tag. Join/replace to transform an array objects to css-styled string
142
+ *
143
+ * @since 12.0.0
144
+ * @author Pavan Kumar Jadda
145
+ */
146
+ private returnStyleValues;
147
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxPrintDirective, never>;
148
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgxPrintDirective, "button[ngxPrint], button[print]", never, { "printSectionId": { "alias": "printSectionId"; "required": false; }; "printTitle": { "alias": "printTitle"; "required": false; }; "useExistingCss": { "alias": "useExistingCss"; "required": false; }; "printDelay": { "alias": "printDelay"; "required": false; }; "matTableDataSource": { "alias": "matTableDataSource"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "paginatorId": { "alias": "paginatorId"; "required": false; }; "inputFilterId": { "alias": "inputFilterId"; "required": false; }; "isMatTable": { "alias": "isMatTable"; "required": false; }; "hideMatTablePaginator": { "alias": "hideMatTablePaginator"; "required": false; }; "printStyle": { "alias": "printStyle"; "required": false; }; "styleSheetFile": { "alias": "styleSheetFile"; "required": false; }; }, {}, never, never, true, never>;
149
+ }
150
+ interface PrintStyleParams {
151
+ values: {
152
+ [p: string]: {
153
+ [p: string]: string;
154
+ };
155
+ };
156
+ }
157
+ export {};
@@ -0,0 +1,21 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PreventMultipleClicksDirective implements OnInit, OnDestroy {
4
+ throttleTime: import("@angular/core").InputSignal<number>;
5
+ throttleClick: EventEmitter<any>;
6
+ private clicks;
7
+ private subscription;
8
+ /**
9
+ * Intercepts click event and stops default navigation. After first click set {@link throttleTime} to 2000 to prevent duplicate clicks
10
+ *
11
+ * @param event DOM event
12
+ *
13
+ * @author Pavan Kumar Jadda
14
+ * @since 2.3.27
15
+ */
16
+ clickEvent(event: any): void;
17
+ ngOnInit(): void;
18
+ ngOnDestroy(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<PreventMultipleClicksDirective, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PreventMultipleClicksDirective, "[preventMultipleClicks]", never, { "throttleTime": { "alias": "throttleTime"; "required": false; "isSignal": true; }; }, { "throttleClick": "throttleClick"; }, never, never, true, never>;
21
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TypeOfPipe implements PipeTransform {
4
+ transform(value: any): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TypeOfPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<TypeOfPipe, "typeOf", true>;
7
+ }
@@ -0,0 +1,61 @@
1
+ import { MatSnackBar, MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition } from '@angular/material/snack-bar';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MatSnackBarService {
4
+ private snackBar;
5
+ /**
6
+ * Duration (in milliseconds) of the Snack Bar to be open. Defaults to 5 seconds(5000 milliseconds)
7
+ */
8
+ duration: number;
9
+ /**
10
+ * Horizontal Position of the MatSnackBar. Defaults to left side
11
+ */
12
+ horizontalPosition: MatSnackBarHorizontalPosition;
13
+ /**
14
+ * Vertical Position of the MatSnackBar. Defaults to page bottom
15
+ */
16
+ verticalPosition: MatSnackBarVerticalPosition;
17
+ constructor(snackBar: MatSnackBar);
18
+ /**
19
+ * Opens Success Snack Bar
20
+ *
21
+ * @param message Message to display on Snack Bar
22
+ * @param options Options of the Snack Bar
23
+ *
24
+ * @author Pavan Kumar Jadda
25
+ * @since 2.2.3
26
+ */
27
+ success(message: string, options?: MatSnackBarOptions): void;
28
+ /**
29
+ * Opens Error Snack Bar
30
+ *
31
+ * @param message Message to display on Snack Bar
32
+ * @param options Options of the Snack Bar
33
+ *
34
+ * @author Pavan Kumar Jadda
35
+ * @since 2.2.3
36
+ */
37
+ error(message: string, options?: MatSnackBarOptions): void;
38
+ /**
39
+ * Opens Generic Snack Bar
40
+ *
41
+ * @param message Message to display on Snack Bar
42
+ *
43
+ * @author Pavan Kumar Jadda
44
+ * @since 2.2.3
45
+ */
46
+ open(message: string): void;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarService, never>;
48
+ static ɵprov: i0.ɵɵInjectableDeclaration<MatSnackBarService>;
49
+ }
50
+ /**
51
+ * MatSnackBarOptions for Snack Bar
52
+ *
53
+ * @author Pavan Kumar Jadda
54
+ * @since 2.7.19
55
+ */
56
+ export interface MatSnackBarOptions {
57
+ duration?: number;
58
+ horizontalPosition?: MatSnackBarHorizontalPosition;
59
+ verticalPosition?: MatSnackBarVerticalPosition;
60
+ panelClass?: string;
61
+ }
@@ -0,0 +1,8 @@
1
+ import { MatIconRegistry } from '@angular/material/icon';
2
+ import { DomSanitizer } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EditSolidSvgComponent {
5
+ constructor(iconRegistry: MatIconRegistry, sanitizer: DomSanitizer);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditSolidSvgComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditSolidSvgComponent, "edit-solid-svg", never, {}, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,7 @@
1
+ export interface ProgressState {
2
+ isLoading: boolean;
3
+ isSuccess: boolean;
4
+ isError: boolean;
5
+ isComplete?: boolean;
6
+ message: string;
7
+ }