cmat 0.0.110 → 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 +985 -669
- 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 +39806 -22071
- 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 -92
- 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 -5194
|
@@ -1,284 +1,256 @@
|
|
|
1
|
-
import { HttpResponseBase } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { CmatUtilsService } from
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
1
|
+
import { HttpResponseBase } from "@angular/common/http";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Injectable, signal } from "@angular/core";
|
|
4
|
+
import { CmatUtilsService } from "cmat/services/utils";
|
|
5
|
+
var CmatAlertDialog = class {
|
|
6
|
+
constructor(message, type, okCallback, cancelCallback, defaultValue, okLabel, cancelLabel) {
|
|
7
|
+
this.message = message;
|
|
8
|
+
this.type = type;
|
|
9
|
+
this.okCallback = okCallback;
|
|
10
|
+
this.cancelCallback = cancelCallback;
|
|
11
|
+
this.defaultValue = defaultValue;
|
|
12
|
+
this.okLabel = okLabel;
|
|
13
|
+
this.cancelLabel = cancelLabel;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var CmatAlertMessage = class {
|
|
17
|
+
constructor(severity, summary, detail, isPostionBottom = false) {
|
|
18
|
+
this.severity = severity;
|
|
19
|
+
this.summary = summary;
|
|
20
|
+
this.detail = detail;
|
|
21
|
+
this.isPostionBottom = isPostionBottom;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
27
24
|
var CmatDialogType;
|
|
28
|
-
(function
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
(function(CmatDialogType) {
|
|
26
|
+
CmatDialogType[CmatDialogType["alert"] = 0] = "alert";
|
|
27
|
+
CmatDialogType[CmatDialogType["confirm"] = 1] = "confirm";
|
|
28
|
+
CmatDialogType[CmatDialogType["prompt"] = 2] = "prompt";
|
|
32
29
|
})(CmatDialogType || (CmatDialogType = {}));
|
|
33
30
|
var CmatMessageSeverity;
|
|
34
|
-
(function
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
(function(CmatMessageSeverity) {
|
|
32
|
+
CmatMessageSeverity["info"] = "info";
|
|
33
|
+
CmatMessageSeverity["success"] = "success";
|
|
34
|
+
CmatMessageSeverity["error"] = "error";
|
|
35
|
+
CmatMessageSeverity["warning"] = "warning";
|
|
36
|
+
CmatMessageSeverity["wait"] = "wait";
|
|
40
37
|
})(CmatMessageSeverity || (CmatMessageSeverity = {}));
|
|
41
|
-
|
|
42
|
-
// Delay before showing the overlay: skip display entirely if the operation finishes within this window
|
|
43
38
|
const OVERLAY_SHOW_DELAY_MS = 300;
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
const msgObject = CmatUtilsService.splitInTwo(message, separatorOrDetail);
|
|
118
|
-
this._showMessageHelper(msgObject.firstPart, msgObject.secondPart ?? '', severity, true, true);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
this._showMessageHelper(data, separatorOrDetail ?? '', severity, true, true);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
showStickyMessage(data, separatorOrDetail, severity, error) {
|
|
126
|
-
severity ??= CmatMessageSeverity.info;
|
|
127
|
-
if (data instanceof HttpResponseBase) {
|
|
128
|
-
data = CmatUtilsService.getHttpResponseMessage(data);
|
|
129
|
-
separatorOrDetail = CmatUtilsService.captionAndMessageSeparator;
|
|
130
|
-
}
|
|
131
|
-
if (data instanceof Array) {
|
|
132
|
-
for (const message of data) {
|
|
133
|
-
const msgObject = CmatUtilsService.splitInTwo(message, separatorOrDetail);
|
|
134
|
-
this._showMessageHelper(msgObject.firstPart, msgObject.secondPart ?? '', severity, true);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
if (error) {
|
|
139
|
-
if (this.isApiResult(error)) {
|
|
140
|
-
separatorOrDetail += error.msg;
|
|
141
|
-
}
|
|
142
|
-
const serializedError = CmatUtilsService.safeStringify(error);
|
|
143
|
-
const msg = `Message.Severity: "${CmatMessageSeverity[severity]}", Message.Summary: "${data}",
|
|
39
|
+
const OVERLAY_MIN_VISIBLE_MS = 1e3;
|
|
40
|
+
var CmatAlertService = class CmatAlertService {
|
|
41
|
+
constructor() {
|
|
42
|
+
this._messages = signal(null, ...ngDevMode ? [{ debugName: "_messages" }] : /* istanbul ignore next */ []);
|
|
43
|
+
this._stickyMessages = signal(void 0, ...ngDevMode ? [{ debugName: "_stickyMessages" }] : /* istanbul ignore next */ []);
|
|
44
|
+
this._bottomMessages = signal(void 0, ...ngDevMode ? [{ debugName: "_bottomMessages" }] : /* istanbul ignore next */ []);
|
|
45
|
+
this._dialogs = signal(null, ...ngDevMode ? [{ debugName: "_dialogs" }] : /* istanbul ignore next */ []);
|
|
46
|
+
this._isLoading = signal(false, ...ngDevMode ? [{ debugName: "_isLoading" }] : /* istanbul ignore next */ []);
|
|
47
|
+
this._overlayVisible = signal(false, ...ngDevMode ? [{ debugName: "_overlayVisible" }] : /* istanbul ignore next */ []);
|
|
48
|
+
this._overlayMessage = signal("", ...ngDevMode ? [{ debugName: "_overlayMessage" }] : /* istanbul ignore next */ []);
|
|
49
|
+
this.messages = this._messages.asReadonly();
|
|
50
|
+
this.stickyMessages = this._stickyMessages.asReadonly();
|
|
51
|
+
this.bottomMessages = this._bottomMessages.asReadonly();
|
|
52
|
+
this.dialogs = this._dialogs.asReadonly();
|
|
53
|
+
this.isLoading = this._isLoading.asReadonly();
|
|
54
|
+
this.overlayVisible = this._overlayVisible.asReadonly();
|
|
55
|
+
this.overlayMessage = this._overlayMessage.asReadonly();
|
|
56
|
+
this._loadingMessageId = null;
|
|
57
|
+
this._overlayShowTimerId = null;
|
|
58
|
+
this._overlayHideTimerId = null;
|
|
59
|
+
this._overlayShownAt = 0;
|
|
60
|
+
}
|
|
61
|
+
showDialog(message, type, okCallback, cancelCallback, okLabel, cancelLabel, defaultValue) {
|
|
62
|
+
type ??= CmatDialogType.alert;
|
|
63
|
+
this._dialogs.set({
|
|
64
|
+
message,
|
|
65
|
+
type,
|
|
66
|
+
okCallback,
|
|
67
|
+
cancelCallback,
|
|
68
|
+
okLabel,
|
|
69
|
+
cancelLabel,
|
|
70
|
+
defaultValue
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
showMessage(data, separatorOrDetail, severity) {
|
|
74
|
+
severity ??= CmatMessageSeverity.info;
|
|
75
|
+
if (data instanceof HttpResponseBase) {
|
|
76
|
+
data = CmatUtilsService.getHttpResponseMessage(data);
|
|
77
|
+
separatorOrDetail = CmatUtilsService.captionAndMessageSeparator;
|
|
78
|
+
}
|
|
79
|
+
if (data instanceof Array) for (const message of data) {
|
|
80
|
+
const msgObject = CmatUtilsService.splitInTwo(message, separatorOrDetail);
|
|
81
|
+
this._showMessageHelper(msgObject.firstPart, msgObject.secondPart ?? "", severity, false);
|
|
82
|
+
}
|
|
83
|
+
else this._showMessageHelper(data, separatorOrDetail ?? "", severity, false);
|
|
84
|
+
}
|
|
85
|
+
showBottomMessage(data, separatorOrDetail, severity) {
|
|
86
|
+
severity ??= CmatMessageSeverity.info;
|
|
87
|
+
if (data instanceof HttpResponseBase) {
|
|
88
|
+
data = CmatUtilsService.getHttpResponseMessage(data);
|
|
89
|
+
separatorOrDetail = CmatUtilsService.captionAndMessageSeparator;
|
|
90
|
+
}
|
|
91
|
+
if (data instanceof Array) for (const message of data) {
|
|
92
|
+
const msgObject = CmatUtilsService.splitInTwo(message, separatorOrDetail);
|
|
93
|
+
this._showMessageHelper(msgObject.firstPart, msgObject.secondPart ?? "", severity, true, true);
|
|
94
|
+
}
|
|
95
|
+
else this._showMessageHelper(data, separatorOrDetail ?? "", severity, true, true);
|
|
96
|
+
}
|
|
97
|
+
showStickyMessage(data, separatorOrDetail, severity, error) {
|
|
98
|
+
severity ??= CmatMessageSeverity.info;
|
|
99
|
+
if (data instanceof HttpResponseBase) {
|
|
100
|
+
data = CmatUtilsService.getHttpResponseMessage(data);
|
|
101
|
+
separatorOrDetail = CmatUtilsService.captionAndMessageSeparator;
|
|
102
|
+
}
|
|
103
|
+
if (data instanceof Array) for (const message of data) {
|
|
104
|
+
const msgObject = CmatUtilsService.splitInTwo(message, separatorOrDetail);
|
|
105
|
+
this._showMessageHelper(msgObject.firstPart, msgObject.secondPart ?? "", severity, true);
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
if (error) {
|
|
109
|
+
if (this.isApiResult(error)) separatorOrDetail += error.msg;
|
|
110
|
+
const serializedError = CmatUtilsService.safeStringify(error);
|
|
111
|
+
const msg = `Message.Severity: "${CmatMessageSeverity[severity]}", Message.Summary: "${data}",
|
|
144
112
|
Message.Detail: "${separatorOrDetail}", Message.Error: "${serializedError}"`;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
113
|
+
switch (severity) {
|
|
114
|
+
case CmatMessageSeverity.info:
|
|
115
|
+
this.logInfo(msg);
|
|
116
|
+
break;
|
|
117
|
+
case CmatMessageSeverity.success:
|
|
118
|
+
this.logMessage(msg);
|
|
119
|
+
break;
|
|
120
|
+
case CmatMessageSeverity.error:
|
|
121
|
+
this.logError(msg);
|
|
122
|
+
break;
|
|
123
|
+
case CmatMessageSeverity.warning:
|
|
124
|
+
this.logWarning(msg);
|
|
125
|
+
break;
|
|
126
|
+
case CmatMessageSeverity.wait: this.logTrace(msg);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
this._showMessageHelper(data, separatorOrDetail ?? "", severity, true);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
startLoadingMessage(message = "载入中...", caption = "") {
|
|
133
|
+
this._isLoading.set(true);
|
|
134
|
+
this._clearLoadingMessageTimer();
|
|
135
|
+
this._loadingMessageId = setTimeout(() => {
|
|
136
|
+
this.showStickyMessage(caption, message, CmatMessageSeverity.wait);
|
|
137
|
+
}, 1e3);
|
|
138
|
+
}
|
|
139
|
+
stopLoadingMessage() {
|
|
140
|
+
this._isLoading.set(false);
|
|
141
|
+
this._clearLoadingMessageTimer();
|
|
142
|
+
this.resetStickyMessage();
|
|
143
|
+
}
|
|
144
|
+
showOverlay(message = "处理中...") {
|
|
145
|
+
this._clearOverlayTimers();
|
|
146
|
+
this._overlayMessage.set(message);
|
|
147
|
+
this._overlayShowTimerId = setTimeout(() => {
|
|
148
|
+
this._overlayShowTimerId = null;
|
|
149
|
+
this._overlayShownAt = Date.now();
|
|
150
|
+
this._overlayVisible.set(true);
|
|
151
|
+
}, OVERLAY_SHOW_DELAY_MS);
|
|
152
|
+
}
|
|
153
|
+
hideOverlay() {
|
|
154
|
+
if (this._overlayShowTimerId !== null) {
|
|
155
|
+
this._clearOverlayTimers();
|
|
156
|
+
this._overlayMessage.set("");
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const shownFor = Date.now() - this._overlayShownAt;
|
|
160
|
+
if (this._overlayVisible() && shownFor < OVERLAY_MIN_VISIBLE_MS) {
|
|
161
|
+
this._overlayHideTimerId = setTimeout(() => {
|
|
162
|
+
this._overlayHideTimerId = null;
|
|
163
|
+
this._closeOverlay();
|
|
164
|
+
}, OVERLAY_MIN_VISIBLE_MS - shownFor);
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
this._closeOverlay();
|
|
168
|
+
}
|
|
169
|
+
logDebug(msg) {
|
|
170
|
+
console.debug(msg);
|
|
171
|
+
}
|
|
172
|
+
logError(msg) {
|
|
173
|
+
console.error(msg);
|
|
174
|
+
}
|
|
175
|
+
logInfo(msg) {
|
|
176
|
+
console.info(msg);
|
|
177
|
+
}
|
|
178
|
+
logMessage(msg) {
|
|
179
|
+
console.log(msg);
|
|
180
|
+
}
|
|
181
|
+
logTrace(msg) {
|
|
182
|
+
console.trace(msg);
|
|
183
|
+
}
|
|
184
|
+
logWarning(msg) {
|
|
185
|
+
console.warn(msg);
|
|
186
|
+
}
|
|
187
|
+
resetStickyMessage() {
|
|
188
|
+
this._stickyMessages.set(void 0);
|
|
189
|
+
}
|
|
190
|
+
resetBottomMessage() {
|
|
191
|
+
this._bottomMessages.set(void 0);
|
|
192
|
+
}
|
|
193
|
+
_showMessageHelper(summary, detail, severity, isSticky, isPostionBottom = false) {
|
|
194
|
+
const message = {
|
|
195
|
+
severity,
|
|
196
|
+
summary,
|
|
197
|
+
detail,
|
|
198
|
+
isPostionBottom
|
|
199
|
+
};
|
|
200
|
+
if (isPostionBottom) this._bottomMessages.set(message);
|
|
201
|
+
else if (isSticky) this._stickyMessages.set(message);
|
|
202
|
+
else this._messages.set(message);
|
|
203
|
+
}
|
|
204
|
+
isApiResult(obj) {
|
|
205
|
+
const result = obj;
|
|
206
|
+
return typeof result === "object" && result !== null && typeof result.success === "boolean" && typeof result.msg === "string" && typeof result.type === "number";
|
|
207
|
+
}
|
|
208
|
+
_clearLoadingMessageTimer() {
|
|
209
|
+
if (this._loadingMessageId !== null) {
|
|
210
|
+
clearTimeout(this._loadingMessageId);
|
|
211
|
+
this._loadingMessageId = null;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
_closeOverlay() {
|
|
215
|
+
this._overlayVisible.set(false);
|
|
216
|
+
this._overlayMessage.set("");
|
|
217
|
+
}
|
|
218
|
+
_clearOverlayTimers() {
|
|
219
|
+
if (this._overlayShowTimerId !== null) clearTimeout(this._overlayShowTimerId);
|
|
220
|
+
if (this._overlayHideTimerId !== null) clearTimeout(this._overlayHideTimerId);
|
|
221
|
+
this._overlayShowTimerId = null;
|
|
222
|
+
this._overlayHideTimerId = null;
|
|
223
|
+
}
|
|
224
|
+
static {
|
|
225
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
226
|
+
minVersion: "12.0.0",
|
|
227
|
+
version: "22.2.3",
|
|
228
|
+
ngImport: i0,
|
|
229
|
+
type: CmatAlertService,
|
|
230
|
+
deps: [],
|
|
231
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
static {
|
|
235
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
236
|
+
minVersion: "12.0.0",
|
|
237
|
+
version: "22.2.3",
|
|
238
|
+
ngImport: i0,
|
|
239
|
+
type: CmatAlertService,
|
|
240
|
+
providedIn: "root"
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
245
|
+
minVersion: "12.0.0",
|
|
246
|
+
version: "22.2.3",
|
|
247
|
+
ngImport: i0,
|
|
248
|
+
type: CmatAlertService,
|
|
249
|
+
decorators: [{
|
|
250
|
+
type: Injectable,
|
|
251
|
+
args: [{ providedIn: "root" }]
|
|
252
|
+
}]
|
|
253
|
+
});
|
|
283
254
|
export { CmatAlertDialog, CmatAlertMessage, CmatAlertService, CmatDialogType, CmatMessageSeverity };
|
|
284
|
-
|
|
255
|
+
|
|
256
|
+
//# sourceMappingURL=cmat-services-alert.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmat-services-alert.mjs","sources":["../../../projects/cmat/services/alert/alert.dialog.ts","../../../projects/cmat/services/alert/alert.message.ts","../../../projects/cmat/services/alert/enum.ts","../../../projects/cmat/services/alert/alert.service.ts","../../../projects/cmat/services/alert/cmat-services-alert.ts"],"sourcesContent":["import { CmatDialogType } from './enum';\r\n\r\nexport class CmatAlertDialog {\r\n constructor(public message: string, public type: CmatDialogType, public okCallback?: (val?: unknown) => void, public cancelCallback?: () => void,\r\n public defaultValue?: string, public okLabel?: string, public cancelLabel?: string) {\r\n\r\n }\r\n}","import { CmatMessageSeverity } from './enum';\r\n\r\nexport class CmatAlertMessage {\r\n constructor(public severity: CmatMessageSeverity, public summary: string, public detail: string, public isPostionBottom: boolean = false) { }\r\n}\r\n","export enum CmatDialogType {\r\n alert,\r\n confirm,\r\n prompt\r\n}\r\n\r\nexport enum CmatMessageSeverity {\r\n info = 'info',\r\n success = 'success',\r\n error = 'error',\r\n warning = 'warning',\r\n wait = 'wait'\r\n}\r\n\r\nexport interface ApiResult {\r\n success: boolean;\r\n msg: string;\r\n type: number;\r\n data?: unknown;\r\n dataExt?: unknown;\r\n}","import { HttpResponseBase } from '@angular/common/http';\r\nimport { Injectable, signal } from '@angular/core';\r\nimport { CmatUtilsService } from 'cmat/services/utils';\r\nimport { CmatAlertDialog } from './alert.dialog';\r\nimport { CmatAlertMessage } from './alert.message';\r\nimport { ApiResult, CmatDialogType, CmatMessageSeverity } from './enum';\r\n\r\n// Delay before showing the overlay: skip display entirely if the operation finishes within this window\r\nconst OVERLAY_SHOW_DELAY_MS = 300;\r\n// Minimum visible duration once shown: prevents the animation from being cut off abruptly\r\nconst OVERLAY_MIN_VISIBLE_MS = 1000;\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CmatAlertService {\r\n private readonly _messages = signal<CmatAlertMessage | null>(null);\r\n private readonly _stickyMessages = signal<CmatAlertMessage | void>(undefined);\r\n private readonly _bottomMessages = signal<CmatAlertMessage | void>(undefined);\r\n private readonly _dialogs = signal<CmatAlertDialog | null>(null);\r\n private readonly _isLoading = signal<boolean>(false);\r\n private readonly _overlayVisible = signal<boolean>(false);\r\n private readonly _overlayMessage = signal<string>('');\r\n \r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly messages = this._messages.asReadonly();\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly stickyMessages = this._stickyMessages.asReadonly();\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly bottomMessages = this._bottomMessages.asReadonly();\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly dialogs = this._dialogs.asReadonly();\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly isLoading = this._isLoading.asReadonly();\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly overlayVisible = this._overlayVisible.asReadonly();\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly overlayMessage = this._overlayMessage.asReadonly();\r\n\r\n private _loadingMessageId: ReturnType<typeof setTimeout> | null = null;\r\n\r\n private _overlayShowTimerId: ReturnType<typeof setTimeout> | null = null;\r\n private _overlayHideTimerId: ReturnType<typeof setTimeout> | null = null;\r\n private _overlayShownAt = 0;\r\n\r\n\r\n showDialog(message: string, type?: CmatDialogType, okCallback?: (val?: unknown) => void, cancelCallback?: () => void,\r\n okLabel?: string, cancelLabel?: string, defaultValue?: string): void {\r\n\r\n type ??= CmatDialogType.alert;\r\n\r\n this._dialogs.set({\r\n message: message,\r\n type: type,\r\n okCallback: okCallback,\r\n cancelCallback: cancelCallback,\r\n okLabel: okLabel,\r\n cancelLabel: cancelLabel,\r\n defaultValue: defaultValue\r\n });\r\n }\r\n\r\n showMessage(summary: string): void;\r\n showMessage(detail: string | string[] | HttpResponseBase, params: string, severity: CmatMessageSeverity): void;\r\n showMessage(data: string | string[] | HttpResponseBase, separatorOrDetail?: string, severity?: CmatMessageSeverity): void {\r\n severity ??= CmatMessageSeverity.info;\r\n\r\n if (data instanceof HttpResponseBase) {\r\n data = CmatUtilsService.getHttpResponseMessage(data);\r\n separatorOrDetail = CmatUtilsService.captionAndMessageSeparator;\r\n }\r\n\r\n if (data instanceof Array) {\r\n for (const message of data) {\r\n const msgObject = CmatUtilsService.splitInTwo(message, separatorOrDetail);\r\n\r\n this._showMessageHelper(msgObject.firstPart, msgObject.secondPart ?? '', severity, false);\r\n }\r\n } else {\r\n this._showMessageHelper(data, separatorOrDetail ?? '', severity, false);\r\n }\r\n }\r\n\r\n showBottomMessage(summary: string): void;\r\n showBottomMessage(summary: string, detail: string, severity: CmatMessageSeverity): void;\r\n showBottomMessage(data: string | string[] | HttpResponseBase, separatorOrDetail?: string, severity?: CmatMessageSeverity): void {\r\n severity ??= CmatMessageSeverity.info;\r\n\r\n if (data instanceof HttpResponseBase) {\r\n data = CmatUtilsService.getHttpResponseMessage(data);\r\n separatorOrDetail = CmatUtilsService.captionAndMessageSeparator;\r\n }\r\n\r\n if (data instanceof Array) {\r\n for (const message of data) {\r\n const msgObject = CmatUtilsService.splitInTwo(message, separatorOrDetail);\r\n\r\n this._showMessageHelper(msgObject.firstPart, msgObject.secondPart ?? '', severity, true, true);\r\n }\r\n } else {\r\n this._showMessageHelper(data, separatorOrDetail ?? '', severity, true, true);\r\n }\r\n }\r\n\r\n\r\n showStickyMessage(summary: string): void;\r\n showStickyMessage(summary: string, detail: string, severity: CmatMessageSeverity, error?: unknown): void;\r\n showStickyMessage(detail: string[] | HttpResponseBase, params: string, severity: CmatMessageSeverity): void;\r\n showStickyMessage(data: string | string[] | HttpResponseBase, separatorOrDetail?: string, severity?: CmatMessageSeverity, error?: unknown): void {\r\n\r\n severity ??= CmatMessageSeverity.info;\r\n\r\n if (data instanceof HttpResponseBase) {\r\n data = CmatUtilsService.getHttpResponseMessage(data);\r\n separatorOrDetail = CmatUtilsService.captionAndMessageSeparator;\r\n }\r\n\r\n\r\n if (data instanceof Array) {\r\n for (const message of data) {\r\n const msgObject = CmatUtilsService.splitInTwo(message, separatorOrDetail); this._showMessageHelper(msgObject.firstPart, msgObject.secondPart ?? '', severity, true);\r\n }\r\n } else {\r\n if (error) {\r\n if (this.isApiResult(error)) {\r\n separatorOrDetail += error.msg;\r\n }\r\n\r\n const serializedError = CmatUtilsService.safeStringify(error as Record<string, unknown>);\r\n const msg = `Message.Severity: \"${CmatMessageSeverity[severity]}\", Message.Summary: \"${data}\", \r\n Message.Detail: \"${separatorOrDetail}\", Message.Error: \"${serializedError}\"`;\r\n\r\n switch (severity) {\r\n case CmatMessageSeverity.info:\r\n this.logInfo(msg);\r\n break;\r\n case CmatMessageSeverity.success:\r\n this.logMessage(msg);\r\n break;\r\n case CmatMessageSeverity.error:\r\n this.logError(msg);\r\n break;\r\n case CmatMessageSeverity.warning:\r\n this.logWarning(msg);\r\n break;\r\n case CmatMessageSeverity.wait:\r\n this.logTrace(msg);\r\n break;\r\n }\r\n }\r\n\r\n this._showMessageHelper(data, separatorOrDetail ?? '', severity, true);\r\n }\r\n }\r\n\r\n startLoadingMessage(message = '载入中...', caption = ''): void {\r\n this._isLoading.set(true);\r\n this._clearLoadingMessageTimer();\r\n\r\n this._loadingMessageId = setTimeout((): void => {\r\n this.showStickyMessage(caption, message, CmatMessageSeverity.wait);\r\n }, 1000);\r\n }\r\n\r\n stopLoadingMessage(): void {\r\n this._isLoading.set(false);\r\n this._clearLoadingMessageTimer();\r\n this.resetStickyMessage();\r\n }\r\n\r\n showOverlay(message = '处理中...'): void {\r\n this._clearOverlayTimers();\r\n this._overlayMessage.set(message);\r\n\r\n // Debounce: fast operations never flash the overlay\r\n this._overlayShowTimerId = setTimeout(() => {\r\n this._overlayShowTimerId = null;\r\n this._overlayShownAt = Date.now();\r\n this._overlayVisible.set(true);\r\n }, OVERLAY_SHOW_DELAY_MS);\r\n }\r\n\r\n hideOverlay(): void {\r\n // Operation finished before the overlay actually appeared: cancel the display\r\n if (this._overlayShowTimerId !== null) {\r\n this._clearOverlayTimers();\r\n this._overlayMessage.set('');\r\n return;\r\n }\r\n\r\n // Enforce the minimum visible duration so the animation ends gracefully\r\n const shownFor = Date.now() - this._overlayShownAt;\r\n if (this._overlayVisible() && shownFor < OVERLAY_MIN_VISIBLE_MS) {\r\n this._overlayHideTimerId = setTimeout(() => {\r\n this._overlayHideTimerId = null;\r\n this._closeOverlay();\r\n }, OVERLAY_MIN_VISIBLE_MS - shownFor);\r\n return;\r\n }\r\n\r\n this._closeOverlay();\r\n }\r\n\r\n\r\n logDebug(msg: unknown): void {\r\n console.debug(msg);\r\n }\r\n\r\n logError(msg: unknown): void {\r\n console.error(msg);\r\n }\r\n\r\n logInfo(msg: unknown): void {\r\n console.info(msg);\r\n }\r\n\r\n logMessage(msg: unknown): void {\r\n console.log(msg);\r\n }\r\n\r\n logTrace(msg: unknown): void {\r\n console.trace(msg);\r\n }\r\n\r\n logWarning(msg: unknown): void {\r\n console.warn(msg);\r\n }\r\n\r\n resetStickyMessage(): void {\r\n this._stickyMessages.set(undefined);\r\n }\r\n\r\n resetBottomMessage(): void {\r\n this._bottomMessages.set(undefined);\r\n }\r\n\r\n private _showMessageHelper(summary: string, detail: string, severity: CmatMessageSeverity, isSticky: boolean, isPostionBottom: boolean = false): void {\r\n const message = { severity: severity, summary: summary, detail: detail, isPostionBottom: isPostionBottom };\r\n\r\n if (isPostionBottom) {\r\n this._bottomMessages.set(message);\r\n } else if (isSticky) {\r\n this._stickyMessages.set(message);\r\n } else {\r\n this._messages.set(message);\r\n }\r\n }\r\n\r\n private isApiResult(obj: unknown): obj is ApiResult {\r\n const result = obj as Partial<ApiResult> | null;\r\n\r\n return typeof result === 'object' && result !== null\r\n && typeof result.success === 'boolean'\r\n && typeof result.msg === 'string'\r\n && typeof result.type === 'number';\r\n }\r\n\r\n private _clearLoadingMessageTimer(): void {\r\n if (this._loadingMessageId !== null) {\r\n clearTimeout(this._loadingMessageId);\r\n this._loadingMessageId = null;\r\n }\r\n }\r\n\r\n private _closeOverlay(): void {\r\n this._overlayVisible.set(false);\r\n this._overlayMessage.set('');\r\n }\r\n\r\n private _clearOverlayTimers(): void {\r\n if (this._overlayShowTimerId !== null) {\r\n clearTimeout(this._overlayShowTimerId);\r\n }\r\n if (this._overlayHideTimerId !== null) {\r\n clearTimeout(this._overlayHideTimerId);\r\n }\r\n this._overlayShowTim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IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,cAFb,MAAM,EAAA,CAAA,CAAA;;2FAET,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE;AACf,iBAAA;;;ACdD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"cmat-services-alert.mjs","names":[],"sources":["../../../projects/cmat/services/alert/alert.dialog.ts","../../../projects/cmat/services/alert/alert.message.ts","../../../projects/cmat/services/alert/enum.ts","../../../projects/cmat/services/alert/alert.service.ts"],"sourcesContent":["import { CmatDialogType } from './enum';\r\n\r\nexport class CmatAlertDialog {\r\n constructor(public message: string, public type: CmatDialogType, public okCallback?: (val?: unknown) => void, public cancelCallback?: () => void,\r\n public defaultValue?: string, public okLabel?: string, public cancelLabel?: string) {\r\n\r\n }\r\n}","import { CmatMessageSeverity } from './enum';\r\n\r\nexport class CmatAlertMessage {\r\n constructor(public severity: CmatMessageSeverity, public summary: string, public detail: string, public isPostionBottom: boolean = false) { }\r\n}\r\n","export enum CmatDialogType {\r\n alert,\r\n confirm,\r\n prompt\r\n}\r\n\r\nexport enum CmatMessageSeverity {\r\n info = 'info',\r\n success = 'success',\r\n error = 'error',\r\n warning = 'warning',\r\n wait = 'wait'\r\n}\r\n\r\nexport interface ApiResult {\r\n success: boolean;\r\n msg: string;\r\n type: number;\r\n data?: unknown;\r\n dataExt?: unknown;\r\n}","import { HttpResponseBase } from '@angular/common/http';\r\nimport { Injectable, signal } from '@angular/core';\r\nimport { CmatUtilsService } from 'cmat/services/utils';\r\nimport { CmatAlertDialog } from './alert.dialog';\r\nimport { CmatAlertMessage } from './alert.message';\r\nimport { ApiResult, CmatDialogType, CmatMessageSeverity } from './enum';\r\n\r\n// Delay before showing the overlay: skip display entirely if the operation finishes within this window\r\nconst OVERLAY_SHOW_DELAY_MS = 300;\r\n// Minimum visible duration once shown: prevents the animation from being cut off abruptly\r\nconst OVERLAY_MIN_VISIBLE_MS = 1000;\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CmatAlertService {\r\n private readonly _messages = signal<CmatAlertMessage | null>(null);\r\n private readonly _stickyMessages = signal<CmatAlertMessage | void>(undefined);\r\n private readonly _bottomMessages = signal<CmatAlertMessage | void>(undefined);\r\n private readonly _dialogs = signal<CmatAlertDialog | null>(null);\r\n private readonly _isLoading = signal<boolean>(false);\r\n private readonly _overlayVisible = signal<boolean>(false);\r\n private readonly _overlayMessage = signal<string>('');\r\n \r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly messages = this._messages.asReadonly();\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly stickyMessages = this._stickyMessages.asReadonly();\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly bottomMessages = this._bottomMessages.asReadonly();\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly dialogs = this._dialogs.asReadonly();\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly isLoading = this._isLoading.asReadonly();\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly overlayVisible = this._overlayVisible.asReadonly();\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly overlayMessage = this._overlayMessage.asReadonly();\r\n\r\n private _loadingMessageId: ReturnType<typeof setTimeout> | null = null;\r\n\r\n private _overlayShowTimerId: ReturnType<typeof setTimeout> | null = null;\r\n private _overlayHideTimerId: ReturnType<typeof setTimeout> | null = null;\r\n private _overlayShownAt = 0;\r\n\r\n\r\n showDialog(message: string, type?: CmatDialogType, okCallback?: (val?: unknown) => void, cancelCallback?: () => void,\r\n okLabel?: string, cancelLabel?: string, defaultValue?: string): void {\r\n\r\n type ??= CmatDialogType.alert;\r\n\r\n this._dialogs.set({\r\n message: message,\r\n type: type,\r\n okCallback: okCallback,\r\n cancelCallback: cancelCallback,\r\n okLabel: okLabel,\r\n cancelLabel: cancelLabel,\r\n defaultValue: defaultValue\r\n });\r\n }\r\n\r\n showMessage(summary: string): void;\r\n showMessage(detail: string | string[] | HttpResponseBase, params: string, severity: CmatMessageSeverity): void;\r\n showMessage(data: string | string[] | HttpResponseBase, separatorOrDetail?: string, severity?: CmatMessageSeverity): void {\r\n severity ??= CmatMessageSeverity.info;\r\n\r\n if (data instanceof HttpResponseBase) {\r\n data = CmatUtilsService.getHttpResponseMessage(data);\r\n separatorOrDetail = CmatUtilsService.captionAndMessageSeparator;\r\n }\r\n\r\n if (data instanceof Array) {\r\n for (const message of data) {\r\n const msgObject = CmatUtilsService.splitInTwo(message, separatorOrDetail);\r\n\r\n this._showMessageHelper(msgObject.firstPart, msgObject.secondPart ?? '', severity, false);\r\n }\r\n } else {\r\n this._showMessageHelper(data, separatorOrDetail ?? '', severity, false);\r\n }\r\n }\r\n\r\n showBottomMessage(summary: string): void;\r\n showBottomMessage(summary: string, detail: string, severity: CmatMessageSeverity): void;\r\n showBottomMessage(data: string | string[] | HttpResponseBase, separatorOrDetail?: string, severity?: CmatMessageSeverity): void {\r\n severity ??= CmatMessageSeverity.info;\r\n\r\n if (data instanceof HttpResponseBase) {\r\n data = CmatUtilsService.getHttpResponseMessage(data);\r\n separatorOrDetail = CmatUtilsService.captionAndMessageSeparator;\r\n }\r\n\r\n if (data instanceof Array) {\r\n for (const message of data) {\r\n const msgObject = CmatUtilsService.splitInTwo(message, separatorOrDetail);\r\n\r\n this._showMessageHelper(msgObject.firstPart, msgObject.secondPart ?? '', severity, true, true);\r\n }\r\n } else {\r\n this._showMessageHelper(data, separatorOrDetail ?? '', severity, true, true);\r\n }\r\n }\r\n\r\n\r\n showStickyMessage(summary: string): void;\r\n showStickyMessage(summary: string, detail: string, severity: CmatMessageSeverity, error?: unknown): void;\r\n showStickyMessage(detail: string[] | HttpResponseBase, params: string, severity: CmatMessageSeverity): void;\r\n showStickyMessage(data: string | string[] | HttpResponseBase, separatorOrDetail?: string, severity?: CmatMessageSeverity, error?: unknown): void {\r\n\r\n severity ??= CmatMessageSeverity.info;\r\n\r\n if (data instanceof HttpResponseBase) {\r\n data = CmatUtilsService.getHttpResponseMessage(data);\r\n separatorOrDetail = CmatUtilsService.captionAndMessageSeparator;\r\n }\r\n\r\n\r\n if (data instanceof Array) {\r\n for (const message of data) {\r\n const msgObject = CmatUtilsService.splitInTwo(message, separatorOrDetail); this._showMessageHelper(msgObject.firstPart, msgObject.secondPart ?? '', severity, true);\r\n }\r\n } else {\r\n if (error) {\r\n if (this.isApiResult(error)) {\r\n separatorOrDetail += error.msg;\r\n }\r\n\r\n const serializedError = CmatUtilsService.safeStringify(error as Record<string, unknown>);\r\n const msg = `Message.Severity: \"${CmatMessageSeverity[severity]}\", Message.Summary: \"${data}\", \r\n Message.Detail: \"${separatorOrDetail}\", Message.Error: \"${serializedError}\"`;\r\n\r\n switch (severity) {\r\n case CmatMessageSeverity.info:\r\n this.logInfo(msg);\r\n break;\r\n case CmatMessageSeverity.success:\r\n this.logMessage(msg);\r\n break;\r\n case CmatMessageSeverity.error:\r\n this.logError(msg);\r\n break;\r\n case CmatMessageSeverity.warning:\r\n this.logWarning(msg);\r\n break;\r\n case CmatMessageSeverity.wait:\r\n this.logTrace(msg);\r\n break;\r\n }\r\n }\r\n\r\n this._showMessageHelper(data, separatorOrDetail ?? '', severity, true);\r\n }\r\n }\r\n\r\n startLoadingMessage(message = '载入中...', caption = ''): void {\r\n this._isLoading.set(true);\r\n this._clearLoadingMessageTimer();\r\n\r\n this._loadingMessageId = setTimeout((): void => {\r\n this.showStickyMessage(caption, message, CmatMessageSeverity.wait);\r\n }, 1000);\r\n }\r\n\r\n stopLoadingMessage(): void {\r\n this._isLoading.set(false);\r\n this._clearLoadingMessageTimer();\r\n this.resetStickyMessage();\r\n }\r\n\r\n showOverlay(message = '处理中...'): void {\r\n this._clearOverlayTimers();\r\n this._overlayMessage.set(message);\r\n\r\n // Debounce: fast operations never flash the overlay\r\n this._overlayShowTimerId = setTimeout(() => {\r\n this._overlayShowTimerId = null;\r\n this._overlayShownAt = Date.now();\r\n this._overlayVisible.set(true);\r\n }, OVERLAY_SHOW_DELAY_MS);\r\n }\r\n\r\n hideOverlay(): void {\r\n // Operation finished before the overlay actually appeared: cancel the display\r\n if (this._overlayShowTimerId !== null) {\r\n this._clearOverlayTimers();\r\n this._overlayMessage.set('');\r\n return;\r\n }\r\n\r\n // Enforce the minimum visible duration so the animation ends gracefully\r\n const shownFor = Date.now() - this._overlayShownAt;\r\n if (this._overlayVisible() && shownFor < OVERLAY_MIN_VISIBLE_MS) {\r\n this._overlayHideTimerId = setTimeout(() => {\r\n this._overlayHideTimerId = null;\r\n this._closeOverlay();\r\n }, OVERLAY_MIN_VISIBLE_MS - shownFor);\r\n return;\r\n }\r\n\r\n this._closeOverlay();\r\n }\r\n\r\n\r\n logDebug(msg: unknown): void {\r\n console.debug(msg);\r\n }\r\n\r\n logError(msg: unknown): void {\r\n console.error(msg);\r\n }\r\n\r\n logInfo(msg: unknown): void {\r\n console.info(msg);\r\n }\r\n\r\n logMessage(msg: unknown): void {\r\n console.log(msg);\r\n }\r\n\r\n logTrace(msg: unknown): void {\r\n console.trace(msg);\r\n }\r\n\r\n logWarning(msg: unknown): void {\r\n console.warn(msg);\r\n }\r\n\r\n resetStickyMessage(): void {\r\n this._stickyMessages.set(undefined);\r\n }\r\n\r\n resetBottomMessage(): void {\r\n this._bottomMessages.set(undefined);\r\n }\r\n\r\n private _showMessageHelper(summary: string, detail: string, severity: CmatMessageSeverity, isSticky: boolean, isPostionBottom: boolean = false): void {\r\n const message = { severity: severity, summary: summary, detail: detail, isPostionBottom: isPostionBottom };\r\n\r\n if (isPostionBottom) {\r\n this._bottomMessages.set(message);\r\n } else if (isSticky) {\r\n this._stickyMessages.set(message);\r\n } else {\r\n this._messages.set(message);\r\n }\r\n }\r\n\r\n private isApiResult(obj: unknown): obj is ApiResult {\r\n const result = obj as Partial<ApiResult> | null;\r\n\r\n return typeof result === 'object' && result !== null\r\n && typeof result.success === 'boolean'\r\n && typeof result.msg === 'string'\r\n && typeof result.type === 'number';\r\n }\r\n\r\n private _clearLoadingMessageTimer(): void {\r\n if (this._loadingMessageId !== null) {\r\n clearTimeout(this._loadingMessageId);\r\n this._loadingMessageId = null;\r\n }\r\n }\r\n\r\n private _closeOverlay(): void {\r\n this._overlayVisible.set(false);\r\n this._overlayMessage.set('');\r\n }\r\n\r\n private _clearOverlayTimers(): void {\r\n if (this._overlayShowTimerId !== null) {\r\n clearTimeout(this._overlayShowTimerId);\r\n }\r\n if (this._overlayHideTimerId !== null) {\r\n clearTimeout(this._overlayHideTimerId);\r\n }\r\n this._overlayShowTimerId = null;\r\n this._overlayHideTimerId = null;\r\n }\r\n}\r\n"],"mappings":";;;;AAEA,IAAa,kBAAb,MAA4B;CACxB,YAAmB,SAAwB,MAA6B,YAA6C,gBAC1G,cAA8B,SAAyB,aAAoB;EADnE,KAAA,UAAA;EAAwB,KAAA,OAAA;EAA6B,KAAA,aAAA;EAA6C,KAAA,iBAAA;EAC1G,KAAA,eAAA;EAA8B,KAAA,UAAA;EAAyB,KAAA,cAAA;CAElE;AACH;ACLD,IAAa,mBAAb,MAA6B;CACzB,YAAmB,UAAsC,SAAwB,QAAuB,kBAA2B,OAAK;EAArH,KAAA,WAAA;EAAsC,KAAA,UAAA;EAAwB,KAAA,SAAA;EAAuB,KAAA,kBAAA;CAAoC;AAC/I;ACJD,IAAY;CAAZ,SAAY,gBAAc;CACtB,eAAA,eAAA,WAAA,KAAA;CACA,eAAA,eAAA,aAAA,KAAA;CACA,eAAA,eAAA,YAAA,KAAA;AACJ,EAAA,CAJY,mBAAA,iBAAc,CAAA,EAAA;AAM1B,IAAY;CAAZ,SAAY,qBAAmB;CAC3B,oBAAA,UAAA;CACA,oBAAA,aAAA;CACA,oBAAA,WAAA;CACA,oBAAA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