cmat 0.0.111 → 0.0.112
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/fesm2022/cmat-components-adapter.mjs +531 -536
- package/fesm2022/cmat-components-adapter.mjs.map +1 -1
- package/fesm2022/cmat-components-breadcrumb.mjs +521 -356
- package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/cmat-components-card.mjs +150 -42
- package/fesm2022/cmat-components-card.mjs.map +1 -1
- package/fesm2022/cmat-components-carousel.mjs +1120 -629
- package/fesm2022/cmat-components-carousel.mjs.map +1 -1
- package/fesm2022/cmat-components-cascade.mjs +861 -441
- package/fesm2022/cmat-components-cascade.mjs.map +1 -1
- package/fesm2022/cmat-components-chip-input.mjs +580 -335
- package/fesm2022/cmat-components-chip-input.mjs.map +1 -1
- package/fesm2022/cmat-components-code-editor.mjs +197 -105
- package/fesm2022/cmat-components-code-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-color-picker.mjs +1762 -825
- package/fesm2022/cmat-components-color-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-custom-formly.mjs +5196 -2531
- package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
- package/fesm2022/cmat-components-data-picker.mjs +1901 -1073
- package/fesm2022/cmat-components-data-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-date-range.mjs +701 -456
- package/fesm2022/cmat-components-date-range.mjs.map +1 -1
- package/fesm2022/cmat-components-date-time-display.mjs +137 -30
- package/fesm2022/cmat-components-date-time-display.mjs.map +1 -1
- package/fesm2022/cmat-components-drawer.mjs +410 -258
- package/fesm2022/cmat-components-drawer.mjs.map +1 -1
- package/fesm2022/cmat-components-empty-state.mjs +201 -41
- package/fesm2022/cmat-components-empty-state.mjs.map +1 -1
- package/fesm2022/cmat-components-file-preview.mjs +198 -35
- package/fesm2022/cmat-components-file-preview.mjs.map +1 -1
- package/fesm2022/cmat-components-filter-toolbar.mjs +320 -72
- package/fesm2022/cmat-components-filter-toolbar.mjs.map +1 -1
- package/fesm2022/cmat-components-form-actions.mjs +102 -26
- package/fesm2022/cmat-components-form-actions.mjs.map +1 -1
- package/fesm2022/cmat-components-fullscreen.mjs +167 -47
- package/fesm2022/cmat-components-fullscreen.mjs.map +1 -1
- package/fesm2022/cmat-components-highlight.mjs +203 -112
- package/fesm2022/cmat-components-highlight.mjs.map +1 -1
- package/fesm2022/cmat-components-image-viewer.mjs +489 -215
- package/fesm2022/cmat-components-image-viewer.mjs.map +1 -1
- package/fesm2022/cmat-components-inline-loading.mjs +117 -27
- package/fesm2022/cmat-components-inline-loading.mjs.map +1 -1
- package/fesm2022/cmat-components-json-editor.mjs +276 -230
- package/fesm2022/cmat-components-json-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-knob-input.mjs +615 -420
- package/fesm2022/cmat-components-knob-input.mjs.map +1 -1
- package/fesm2022/cmat-components-loading-overlay.mjs +53 -25
- package/fesm2022/cmat-components-loading-overlay.mjs.map +1 -1
- package/fesm2022/cmat-components-masonry.mjs +120 -40
- package/fesm2022/cmat-components-masonry.mjs.map +1 -1
- package/fesm2022/cmat-components-material-color-picker.mjs +332 -155
- package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-material-datetimepicker.mjs +4283 -2504
- package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -1
- package/fesm2022/cmat-components-navigation.mjs +3080 -1404
- package/fesm2022/cmat-components-navigation.mjs.map +1 -1
- package/fesm2022/cmat-components-opt-input.mjs +540 -466
- package/fesm2022/cmat-components-opt-input.mjs.map +1 -1
- package/fesm2022/cmat-components-org-chart.mjs +528 -125
- package/fesm2022/cmat-components-org-chart.mjs.map +1 -1
- package/fesm2022/cmat-components-page-header.mjs +141 -32
- package/fesm2022/cmat-components-page-header.mjs.map +1 -1
- package/fesm2022/cmat-components-pagination.mjs +866 -534
- package/fesm2022/cmat-components-pagination.mjs.map +1 -1
- package/fesm2022/cmat-components-password-strength.mjs +873 -434
- package/fesm2022/cmat-components-password-strength.mjs.map +1 -1
- package/fesm2022/cmat-components-popover.mjs +1012 -731
- package/fesm2022/cmat-components-popover.mjs.map +1 -1
- package/fesm2022/cmat-components-progress-bar.mjs +98 -35
- package/fesm2022/cmat-components-progress-bar.mjs.map +1 -1
- package/fesm2022/cmat-components-qrcode.mjs +463 -287
- package/fesm2022/cmat-components-qrcode.mjs.map +1 -1
- package/fesm2022/cmat-components-rating.mjs +377 -203
- package/fesm2022/cmat-components-rating.mjs.map +1 -1
- package/fesm2022/cmat-components-rich-text-editor.mjs +153 -39
- package/fesm2022/cmat-components-rich-text-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-select-search.mjs +926 -496
- package/fesm2022/cmat-components-select-search.mjs.map +1 -1
- package/fesm2022/cmat-components-select-table.mjs +1280 -842
- package/fesm2022/cmat-components-select-table.mjs.map +1 -1
- package/fesm2022/cmat-components-select-tree.mjs +998 -690
- package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
- package/fesm2022/cmat-components-skeleton.mjs +143 -57
- package/fesm2022/cmat-components-skeleton.mjs.map +1 -1
- package/fesm2022/cmat-components-speed-dial.mjs +457 -303
- package/fesm2022/cmat-components-speed-dial.mjs.map +1 -1
- package/fesm2022/cmat-components-status-tag.mjs +136 -44
- package/fesm2022/cmat-components-status-tag.mjs.map +1 -1
- package/fesm2022/cmat-components-table-toolbar.mjs +120 -28
- package/fesm2022/cmat-components-table-toolbar.mjs.map +1 -1
- package/fesm2022/cmat-components-timeline.mjs +464 -168
- package/fesm2022/cmat-components-timeline.mjs.map +1 -1
- package/fesm2022/cmat-components-toast.mjs +346 -262
- package/fesm2022/cmat-components-toast.mjs.map +1 -1
- package/fesm2022/cmat-components-transfer-picker.mjs +1427 -593
- package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-treetable.mjs +372 -112
- package/fesm2022/cmat-components-treetable.mjs.map +1 -1
- package/fesm2022/cmat-components-upload.mjs +904 -410
- package/fesm2022/cmat-components-upload.mjs.map +1 -1
- package/fesm2022/cmat-components-x6-angular-shape.mjs +153 -170
- package/fesm2022/cmat-components-x6-angular-shape.mjs.map +1 -1
- package/fesm2022/cmat-directives-animate-on-scroll.mjs +220 -138
- package/fesm2022/cmat-directives-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/cmat-directives-arrow-cursor.mjs +246 -193
- package/fesm2022/cmat-directives-arrow-cursor.mjs.map +1 -1
- package/fesm2022/cmat-directives-autofocus.mjs +43 -25
- package/fesm2022/cmat-directives-autofocus.mjs.map +1 -1
- package/fesm2022/cmat-directives-data-exporter.mjs +537 -338
- package/fesm2022/cmat-directives-data-exporter.mjs.map +1 -1
- package/fesm2022/cmat-directives-debounce.mjs +162 -76
- package/fesm2022/cmat-directives-debounce.mjs.map +1 -1
- package/fesm2022/cmat-directives-digit-only.mjs +457 -356
- package/fesm2022/cmat-directives-digit-only.mjs.map +1 -1
- package/fesm2022/cmat-directives-equal-validator.mjs +70 -53
- package/fesm2022/cmat-directives-equal-validator.mjs.map +1 -1
- package/fesm2022/cmat-directives-seamless-auto-scroll.mjs +180 -132
- package/fesm2022/cmat-directives-seamless-auto-scroll.mjs.map +1 -1
- package/fesm2022/cmat-lib-mock-api.mjs +207 -195
- package/fesm2022/cmat-lib-mock-api.mjs.map +1 -1
- package/fesm2022/cmat-pipes-bytes.mjs +50 -30
- package/fesm2022/cmat-pipes-bytes.mjs.map +1 -1
- package/fesm2022/cmat-pipes-date-format.mjs +41 -25
- package/fesm2022/cmat-pipes-date-format.mjs.map +1 -1
- package/fesm2022/cmat-pipes-find-by-key.mjs +44 -26
- package/fesm2022/cmat-pipes-find-by-key.mjs.map +1 -1
- package/fesm2022/cmat-pipes-group-by.mjs +50 -38
- package/fesm2022/cmat-pipes-group-by.mjs.map +1 -1
- package/fesm2022/cmat-pipes-keys.mjs +44 -31
- package/fesm2022/cmat-pipes-keys.mjs.map +1 -1
- package/fesm2022/cmat-pipes-secure.mjs +60 -49
- package/fesm2022/cmat-pipes-secure.mjs.map +1 -1
- package/fesm2022/cmat-pipes-uppercase.mjs +39 -22
- package/fesm2022/cmat-pipes-uppercase.mjs.map +1 -1
- package/fesm2022/cmat-reports.mjs +2751 -0
- package/fesm2022/cmat-reports.mjs.map +1 -0
- package/fesm2022/cmat-services-alert.mjs +249 -277
- package/fesm2022/cmat-services-alert.mjs.map +1 -1
- package/fesm2022/cmat-services-config.mjs +110 -81
- package/fesm2022/cmat-services-config.mjs.map +1 -1
- package/fesm2022/cmat-services-confirmation.mjs +184 -73
- package/fesm2022/cmat-services-confirmation.mjs.map +1 -1
- package/fesm2022/cmat-services-data.mjs +136 -125
- package/fesm2022/cmat-services-data.mjs.map +1 -1
- package/fesm2022/cmat-services-export-as.mjs +165 -183
- package/fesm2022/cmat-services-export-as.mjs.map +1 -1
- package/fesm2022/cmat-services-loading.mjs +116 -95
- package/fesm2022/cmat-services-loading.mjs.map +1 -1
- package/fesm2022/cmat-services-local-storage.mjs +75 -66
- package/fesm2022/cmat-services-local-storage.mjs.map +1 -1
- package/fesm2022/cmat-services-media-watcher.mjs +69 -64
- package/fesm2022/cmat-services-media-watcher.mjs.map +1 -1
- package/fesm2022/cmat-services-platform.mjs +48 -45
- package/fesm2022/cmat-services-platform.mjs.map +1 -1
- package/fesm2022/cmat-services-print.mjs +984 -1109
- package/fesm2022/cmat-services-print.mjs.map +1 -1
- package/fesm2022/cmat-services-splash-screen.mjs +53 -38
- package/fesm2022/cmat-services-splash-screen.mjs.map +1 -1
- package/fesm2022/cmat-services-title.mjs +57 -47
- package/fesm2022/cmat-services-title.mjs.map +1 -1
- package/fesm2022/cmat-services-translation.mjs +79 -68
- package/fesm2022/cmat-services-translation.mjs.map +1 -1
- package/fesm2022/cmat-services-utils.mjs +424 -517
- package/fesm2022/cmat-services-utils.mjs.map +1 -1
- package/fesm2022/cmat-validators.mjs +23 -33
- package/fesm2022/cmat-validators.mjs.map +1 -1
- package/fesm2022/cmat-version.mjs +12 -16
- package/fesm2022/cmat-version.mjs.map +1 -1
- package/fesm2022/cmat.mjs +39805 -22511
- package/fesm2022/cmat.mjs.map +1 -1
- package/package.json +5 -1
- package/types/cmat-components-adapter.d.ts +145 -156
- package/types/cmat-components-breadcrumb.d.ts +108 -86
- package/types/cmat-components-card.d.ts +34 -18
- package/types/cmat-components-carousel.d.ts +251 -134
- package/types/cmat-components-cascade.d.ts +158 -117
- package/types/cmat-components-chip-input.d.ts +105 -71
- package/types/cmat-components-code-editor.d.ts +59 -34
- package/types/cmat-components-color-picker.d.ts +378 -236
- package/types/cmat-components-custom-formly.d.ts +776 -814
- package/types/cmat-components-data-picker.d.ts +502 -360
- package/types/cmat-components-date-range.d.ts +106 -77
- package/types/cmat-components-date-time-display.d.ts +36 -13
- package/types/cmat-components-drawer.d.ts +91 -61
- package/types/cmat-components-empty-state.d.ts +47 -17
- package/types/cmat-components-file-preview.d.ts +42 -14
- package/types/cmat-components-filter-toolbar.d.ts +57 -25
- package/types/cmat-components-form-actions.d.ts +18 -10
- package/types/cmat-components-fullscreen.d.ts +21 -13
- package/types/cmat-components-highlight.d.ts +33 -26
- package/types/cmat-components-image-viewer.d.ts +119 -58
- package/types/cmat-components-inline-loading.d.ts +24 -11
- package/types/cmat-components-json-editor.d.ts +39 -28
- package/types/cmat-components-knob-input.d.ts +172 -101
- package/types/cmat-components-loading-overlay.d.ts +8 -11
- package/types/cmat-components-masonry.d.ts +27 -14
- package/types/cmat-components-material-color-picker.d.ts +56 -42
- package/types/cmat-components-material-datetimepicker.d.ts +817 -454
- package/types/cmat-components-navigation.d.ts +295 -221
- package/types/cmat-components-opt-input.d.ts +111 -90
- package/types/cmat-components-org-chart.d.ts +53 -35
- package/types/cmat-components-page-header.d.ts +37 -14
- package/types/cmat-components-pagination.d.ts +144 -107
- package/types/cmat-components-password-strength.d.ts +197 -86
- package/types/cmat-components-popover.d.ts +264 -166
- package/types/cmat-components-progress-bar.d.ts +17 -14
- package/types/cmat-components-qrcode.d.ts +111 -42
- package/types/cmat-components-rating.d.ts +105 -59
- package/types/cmat-components-rich-text-editor.d.ts +39 -16
- package/types/cmat-components-select-search.d.ts +195 -99
- package/types/cmat-components-select-table.d.ts +241 -142
- package/types/cmat-components-select-tree.d.ts +185 -118
- package/types/cmat-components-skeleton.d.ts +55 -32
- package/types/cmat-components-speed-dial.d.ts +86 -61
- package/types/cmat-components-status-tag.d.ts +42 -24
- package/types/cmat-components-table-toolbar.d.ts +30 -12
- package/types/cmat-components-timeline.d.ts +83 -51
- package/types/cmat-components-toast.d.ts +84 -85
- package/types/cmat-components-transfer-picker.d.ts +228 -181
- package/types/cmat-components-treetable.d.ts +63 -39
- package/types/cmat-components-upload.d.ts +205 -106
- package/types/cmat-components-x6-angular-shape.d.ts +29 -37
- package/types/cmat-directives-animate-on-scroll.d.ts +48 -30
- package/types/cmat-directives-arrow-cursor.d.ts +55 -35
- package/types/cmat-directives-autofocus.d.ts +8 -11
- package/types/cmat-directives-data-exporter.d.ts +71 -40
- package/types/cmat-directives-debounce.d.ts +31 -28
- package/types/cmat-directives-digit-only.d.ts +90 -53
- package/types/cmat-directives-equal-validator.d.ts +11 -14
- package/types/cmat-directives-seamless-auto-scroll.d.ts +42 -29
- package/types/cmat-lib-mock-api.d.ts +46 -55
- package/types/cmat-pipes-bytes.d.ts +7 -10
- package/types/cmat-pipes-date-format.d.ts +7 -10
- package/types/cmat-pipes-find-by-key.d.ts +8 -12
- package/types/cmat-pipes-group-by.d.ts +11 -15
- package/types/cmat-pipes-keys.d.ts +10 -13
- package/types/cmat-pipes-secure.d.ts +14 -17
- package/types/cmat-pipes-uppercase.d.ts +7 -10
- package/types/cmat-reports.d.ts +1131 -0
- package/types/cmat-services-alert.d.ts +80 -87
- package/types/cmat-services-config.d.ts +37 -43
- package/types/cmat-services-confirmation.d.ts +31 -37
- package/types/cmat-services-data.d.ts +18 -21
- package/types/cmat-services-export-as.d.ts +28 -33
- package/types/cmat-services-loading.d.ts +27 -31
- package/types/cmat-services-local-storage.d.ts +17 -21
- package/types/cmat-services-media-watcher.d.ts +14 -18
- package/types/cmat-services-platform.d.ts +8 -11
- package/types/cmat-services-print.d.ts +97 -102
- package/types/cmat-services-splash-screen.d.ts +11 -14
- package/types/cmat-services-title.d.ts +9 -12
- package/types/cmat-services-translation.d.ts +19 -22
- package/types/cmat-services-utils.d.ts +76 -80
- package/types/cmat-validators.d.ts +5 -8
- package/types/cmat-version.d.ts +8 -10
- package/types/cmat.d.ts +7551 -5204
|
@@ -1,92 +1,85 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
prompt = 2
|
|
1
|
+
import { HttpResponseBase } from "@angular/common/http";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare enum CmatDialogType {
|
|
4
|
+
alert = 0,
|
|
5
|
+
confirm = 1,
|
|
6
|
+
prompt = 2
|
|
8
7
|
}
|
|
9
|
-
declare enum CmatMessageSeverity {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
export declare enum CmatMessageSeverity {
|
|
9
|
+
info = "info",
|
|
10
|
+
success = "success",
|
|
11
|
+
error = "error",
|
|
12
|
+
warning = "warning",
|
|
13
|
+
wait = "wait"
|
|
15
14
|
}
|
|
16
|
-
interface ApiResult {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
export interface ApiResult {
|
|
16
|
+
success: boolean;
|
|
17
|
+
msg: string;
|
|
18
|
+
type: number;
|
|
19
|
+
data?: unknown;
|
|
20
|
+
dataExt?: unknown;
|
|
22
21
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
constructor(message: string, type: CmatDialogType, okCallback?: ((val?: unknown) => void) | undefined, cancelCallback?: (() => void) | undefined, defaultValue?: string | undefined, okLabel?: string | undefined, cancelLabel?: string | undefined);
|
|
22
|
+
export declare class CmatAlertDialog {
|
|
23
|
+
message: string;
|
|
24
|
+
type: CmatDialogType;
|
|
25
|
+
okCallback?: ((val?: unknown) => void) | undefined;
|
|
26
|
+
cancelCallback?: (() => void) | undefined;
|
|
27
|
+
defaultValue?: string | undefined;
|
|
28
|
+
okLabel?: string | undefined;
|
|
29
|
+
cancelLabel?: string | undefined;
|
|
30
|
+
constructor(message: string, type: CmatDialogType, okCallback?: ((val?: unknown) => void) | undefined, cancelCallback?: (() => void) | undefined, defaultValue?: string | undefined, okLabel?: string | undefined, cancelLabel?: string | undefined);
|
|
33
31
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
constructor(severity: CmatMessageSeverity, summary: string, detail: string, isPostionBottom?: boolean);
|
|
32
|
+
export declare class CmatAlertMessage {
|
|
33
|
+
severity: CmatMessageSeverity;
|
|
34
|
+
summary: string;
|
|
35
|
+
detail: string;
|
|
36
|
+
isPostionBottom: boolean;
|
|
37
|
+
constructor(severity: CmatMessageSeverity, summary: string, detail: string, isPostionBottom?: boolean);
|
|
41
38
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export { CmatAlertDialog, CmatAlertMessage, CmatAlertService, CmatDialogType, CmatMessageSeverity };
|
|
92
|
-
export type { ApiResult };
|
|
39
|
+
export declare class CmatAlertService {
|
|
40
|
+
private readonly _messages;
|
|
41
|
+
private readonly _stickyMessages;
|
|
42
|
+
private readonly _bottomMessages;
|
|
43
|
+
private readonly _dialogs;
|
|
44
|
+
private readonly _isLoading;
|
|
45
|
+
private readonly _overlayVisible;
|
|
46
|
+
private readonly _overlayMessage;
|
|
47
|
+
readonly messages: import("@angular/core").Signal<CmatAlertMessage | null>;
|
|
48
|
+
readonly stickyMessages: import("@angular/core").Signal<void | CmatAlertMessage>;
|
|
49
|
+
readonly bottomMessages: import("@angular/core").Signal<void | CmatAlertMessage>;
|
|
50
|
+
readonly dialogs: import("@angular/core").Signal<CmatAlertDialog | null>;
|
|
51
|
+
readonly isLoading: import("@angular/core").Signal<boolean>;
|
|
52
|
+
readonly overlayVisible: import("@angular/core").Signal<boolean>;
|
|
53
|
+
readonly overlayMessage: import("@angular/core").Signal<string>;
|
|
54
|
+
private _loadingMessageId;
|
|
55
|
+
private _overlayShowTimerId;
|
|
56
|
+
private _overlayHideTimerId;
|
|
57
|
+
private _overlayShownAt;
|
|
58
|
+
showDialog(message: string, type?: CmatDialogType, okCallback?: (val?: unknown) => void, cancelCallback?: () => void, okLabel?: string, cancelLabel?: string, defaultValue?: string): void;
|
|
59
|
+
showMessage(summary: string): void;
|
|
60
|
+
showMessage(detail: string | string[] | HttpResponseBase, params: string, severity: CmatMessageSeverity): void;
|
|
61
|
+
showBottomMessage(summary: string): void;
|
|
62
|
+
showBottomMessage(summary: string, detail: string, severity: CmatMessageSeverity): void;
|
|
63
|
+
showStickyMessage(summary: string): void;
|
|
64
|
+
showStickyMessage(summary: string, detail: string, severity: CmatMessageSeverity, error?: unknown): void;
|
|
65
|
+
showStickyMessage(detail: string[] | HttpResponseBase, params: string, severity: CmatMessageSeverity): void;
|
|
66
|
+
startLoadingMessage(message?: string, caption?: string): void;
|
|
67
|
+
stopLoadingMessage(): void;
|
|
68
|
+
showOverlay(message?: string): void;
|
|
69
|
+
hideOverlay(): void;
|
|
70
|
+
logDebug(msg: unknown): void;
|
|
71
|
+
logError(msg: unknown): void;
|
|
72
|
+
logInfo(msg: unknown): void;
|
|
73
|
+
logMessage(msg: unknown): void;
|
|
74
|
+
logTrace(msg: unknown): void;
|
|
75
|
+
logWarning(msg: unknown): void;
|
|
76
|
+
resetStickyMessage(): void;
|
|
77
|
+
resetBottomMessage(): void;
|
|
78
|
+
private _showMessageHelper;
|
|
79
|
+
private isApiResult;
|
|
80
|
+
private _clearLoadingMessageTimer;
|
|
81
|
+
private _closeOverlay;
|
|
82
|
+
private _clearOverlayTimers;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatAlertService, never>;
|
|
84
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
85
|
+
}
|
|
@@ -1,47 +1,41 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { InjectionToken } from
|
|
3
|
-
|
|
4
|
-
type
|
|
5
|
-
type
|
|
6
|
-
type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
name: string;
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { InjectionToken } from "@angular/core";
|
|
3
|
+
export type CmatScheme = 'auto' | 'dark' | 'light';
|
|
4
|
+
export type CmatTheme = string;
|
|
5
|
+
export type CmatScreens = Record<string, string>;
|
|
6
|
+
export type CmatThemeOption<TExtra extends Record<string, unknown> = Record<string, unknown>> = {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
10
9
|
} & TExtra;
|
|
11
|
-
interface CmatAppConfigBase {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
export interface CmatAppConfigBase {
|
|
11
|
+
layout: string;
|
|
12
|
+
scheme: CmatScheme;
|
|
13
|
+
screens: CmatScreens;
|
|
14
|
+
theme: CmatTheme;
|
|
15
|
+
themes: CmatThemeOption[];
|
|
17
16
|
}
|
|
18
|
-
type CmatAppConfig<TExtra extends Record<string, unknown> = Record<string, unknown>> = CmatAppConfigBase & TExtra;
|
|
19
|
-
declare const CMAT_APP_CONFIG: InjectionToken<CmatAppConfig<Record<string, unknown>>>;
|
|
20
|
-
interface IUrlStateConfig {
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
export type CmatAppConfig<TExtra extends Record<string, unknown> = Record<string, unknown>> = CmatAppConfigBase & TExtra;
|
|
18
|
+
export declare const CMAT_APP_CONFIG: InjectionToken<CmatAppConfig<Record<string, unknown>>>;
|
|
19
|
+
export interface IUrlStateConfig {
|
|
20
|
+
fileUrl: string;
|
|
21
|
+
enableDataProtect: boolean;
|
|
23
22
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
23
|
+
export declare class CmatConfigService {
|
|
24
|
+
private readonly _defaultConfig;
|
|
25
|
+
private readonly _config;
|
|
26
|
+
readonly config: import("@angular/core").Signal<CmatAppConfig>;
|
|
27
|
+
updateConfig(value: Partial<CmatAppConfig>): void;
|
|
28
|
+
reset(): void;
|
|
29
|
+
private _mergeConfig;
|
|
30
|
+
private _isRecord;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatConfigService, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
35
33
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export { CMAT_APP_CONFIG, CmatConfigService, CmatUrlStateConfigService };
|
|
47
|
-
export type { CmatAppConfig, CmatAppConfigBase, CmatScheme, CmatScreens, CmatTheme, CmatThemeOption, IUrlStateConfig };
|
|
34
|
+
export declare class CmatUrlStateConfigService {
|
|
35
|
+
private readonly _defaultConfig;
|
|
36
|
+
private readonly _config;
|
|
37
|
+
readonly config: import("@angular/core").Signal<IUrlStateConfig>;
|
|
38
|
+
updateConfig(value: Partial<IUrlStateConfig>): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatUrlStateConfigService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
41
|
+
}
|
|
@@ -1,42 +1,36 @@
|
|
|
1
|
-
import { MatDialogRef } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { MatDialogRef } from "@angular/material/dialog";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface CmatConfirmationConfig {
|
|
4
|
+
title?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
icon?: {
|
|
7
|
+
show?: boolean;
|
|
8
|
+
name?: string;
|
|
9
|
+
color?: 'primary' | 'accent' | 'warn' | 'basic' | 'info' | 'success' | 'warning' | 'error';
|
|
10
|
+
};
|
|
11
|
+
actions: {
|
|
12
|
+
confirm?: {
|
|
13
|
+
show?: boolean;
|
|
14
|
+
label?: string;
|
|
15
|
+
color?: 'primary' | 'accent' | 'warn';
|
|
11
16
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
label?: string;
|
|
16
|
-
color?: 'primary' | 'accent' | 'warn';
|
|
17
|
-
};
|
|
18
|
-
cancel?: {
|
|
19
|
-
show?: boolean;
|
|
20
|
-
label?: string;
|
|
21
|
-
};
|
|
17
|
+
cancel?: {
|
|
18
|
+
show?: boolean;
|
|
19
|
+
label?: string;
|
|
22
20
|
};
|
|
23
|
-
|
|
21
|
+
};
|
|
22
|
+
dismissible?: boolean;
|
|
24
23
|
}
|
|
25
|
-
|
|
26
24
|
declare class CmatConfirmationDialogComponent {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
data: CmatConfirmationConfig;
|
|
26
|
+
matDialogRef: MatDialogRef<CmatConfirmationDialogComponent, any>;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatConfirmationDialogComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatConfirmationDialogComponent, "cmat-confirmation-dialog", never, {}, {}, never, never, true, never>;
|
|
31
29
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { CmatConfirmationService };
|
|
42
|
-
export type { CmatConfirmationConfig };
|
|
30
|
+
export declare class CmatConfirmationService {
|
|
31
|
+
private _matDialog;
|
|
32
|
+
private _defaultConfig;
|
|
33
|
+
open(config: CmatConfirmationConfig): MatDialogRef<CmatConfirmationDialogComponent>;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatConfirmationService, never>;
|
|
35
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
36
|
+
}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { CmatDataService };
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CmatDataService {
|
|
4
|
+
private readonly _http;
|
|
5
|
+
private readonly _urlStateConfigService;
|
|
6
|
+
private _enableDataProtect;
|
|
7
|
+
constructor();
|
|
8
|
+
get<T>(url: string, params?: Record<string, unknown>, auth?: boolean): Observable<T>;
|
|
9
|
+
post<T>(url: string, data: unknown, params?: Record<string, unknown>, auth?: boolean, idempotent?: boolean): Observable<T>;
|
|
10
|
+
put<T>(url: string, data: unknown, params?: Record<string, unknown>, auth?: boolean): Observable<T>;
|
|
11
|
+
delete<T>(url: string, params?: Record<string, unknown>, auth?: boolean): Observable<T>;
|
|
12
|
+
patch<T>(url: string, data: unknown, params?: Record<string, unknown>, auth?: boolean): Observable<T>;
|
|
13
|
+
private _buildHttpParams;
|
|
14
|
+
private _decryptResponse;
|
|
15
|
+
private _normalizeParamValue;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDataService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
18
|
+
}
|
|
@@ -1,34 +1,29 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { Sheet2JSONOpts } from
|
|
3
|
-
import * as i0 from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
options?: Sheet2JSONOpts;
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { Sheet2JSONOpts } from "xlsx";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type SupportedExtensions = 'xlsx' | 'xls' | 'txt' | 'csv' | 'json' | 'xml';
|
|
5
|
+
export interface ExportAsConfig {
|
|
6
|
+
type: SupportedExtensions;
|
|
7
|
+
elementIdOrContent: string;
|
|
8
|
+
download?: boolean;
|
|
9
|
+
fileName: string;
|
|
10
|
+
options?: Sheet2JSONOpts;
|
|
12
11
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { CmatExportAsService };
|
|
34
|
-
export type { ExportAsConfig, SupportedExtensions };
|
|
12
|
+
export declare class CmatExportAsService {
|
|
13
|
+
get(config: ExportAsConfig): Observable<string | unknown[] | null>;
|
|
14
|
+
save(config: ExportAsConfig, fileName: string): Observable<string | unknown[] | null>;
|
|
15
|
+
contentToBlob(content: string): Observable<Blob>;
|
|
16
|
+
removeFileTypeFromBase64(fileContent: string): string;
|
|
17
|
+
addFileTypeToBase64(fileContent: string, fileMime: string): string;
|
|
18
|
+
downloadFromDataURL(fileName: string, dataURL: string): void;
|
|
19
|
+
downloadFromBlob(blob: Blob, fileName: string): void;
|
|
20
|
+
private _getCSV;
|
|
21
|
+
private _getTXT;
|
|
22
|
+
private _getXLS;
|
|
23
|
+
private _getXLSX;
|
|
24
|
+
private _getJSON;
|
|
25
|
+
private _getXML;
|
|
26
|
+
private _btoa;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatExportAsService, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
29
|
+
}
|
|
@@ -1,32 +1,28 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import { Observable } from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from "@angular/common/http";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
export declare class CmatLoadingService {
|
|
5
|
+
private readonly _auto;
|
|
6
|
+
private readonly _mode;
|
|
7
|
+
private readonly _progress;
|
|
8
|
+
private readonly _show;
|
|
9
|
+
readonly auto: import("@angular/core").Signal<boolean>;
|
|
10
|
+
readonly mode: import("@angular/core").Signal<"determinate" | "indeterminate">;
|
|
11
|
+
readonly progress: import("@angular/core").Signal<number | null>;
|
|
12
|
+
readonly isShowing: import("@angular/core").Signal<boolean>;
|
|
13
|
+
private readonly _urlSet;
|
|
14
|
+
show(): void;
|
|
15
|
+
hide(): void;
|
|
16
|
+
setAutoMode(value: boolean): void;
|
|
17
|
+
setMode(value: 'determinate' | 'indeterminate'): void;
|
|
18
|
+
setProgress(value: number): void;
|
|
19
|
+
setLoadingStatus(status: boolean, url: string): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatLoadingService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
23
22
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export { CmatLoadingInterceptor, CmatLoadingService };
|
|
23
|
+
export declare class CmatLoadingInterceptor implements HttpInterceptor {
|
|
24
|
+
private readonly _cmatLoadingService;
|
|
25
|
+
intercept(req: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatLoadingInterceptor, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
28
|
+
}
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
ttl?: number;
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface StorageOptions {
|
|
3
|
+
encrypt?: boolean;
|
|
4
|
+
ttl?: number;
|
|
6
5
|
}
|
|
7
|
-
interface StorageEntry {
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
export interface StorageEntry {
|
|
7
|
+
data: string;
|
|
8
|
+
expiry?: number;
|
|
10
9
|
}
|
|
11
|
-
declare class CmatLocalStorageService {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { CmatLocalStorageService };
|
|
23
|
-
export type { StorageEntry, StorageOptions };
|
|
10
|
+
export declare class CmatLocalStorageService {
|
|
11
|
+
private _encryptionPrefix;
|
|
12
|
+
getItem(key: string, options?: StorageOptions): string | null;
|
|
13
|
+
setItem(key: string, item: string, options?: StorageOptions): void;
|
|
14
|
+
removeItem(key: string): void;
|
|
15
|
+
private _encrypt;
|
|
16
|
+
private _decrypt;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatLocalStorageService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
19
|
+
}
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
matchingQueries: Record<string, string>;
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface CmatMediaChange {
|
|
3
|
+
matchingAliases: string[];
|
|
4
|
+
matchingQueries: Record<string, string>;
|
|
6
5
|
}
|
|
7
|
-
declare class CmatMediaWatcherService {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { CmatMediaWatcherService };
|
|
19
|
-
export type { CmatMediaChange };
|
|
6
|
+
export declare class CmatMediaWatcherService {
|
|
7
|
+
private readonly _breakpointObserver;
|
|
8
|
+
private readonly _cmatConfigService;
|
|
9
|
+
private readonly _mediaChange;
|
|
10
|
+
readonly mediaChange: import("@angular/core").Signal<CmatMediaChange>;
|
|
11
|
+
private _breakpointSubscription;
|
|
12
|
+
constructor();
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatMediaWatcherService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
15
|
+
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { CmatPlatformService };
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CmatPlatformService {
|
|
3
|
+
osName: string;
|
|
4
|
+
private _platform;
|
|
5
|
+
constructor();
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatPlatformService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
8
|
+
}
|