cmat 0.0.89 → 0.0.91
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 +9 -9
- package/fesm2022/cmat-components-breadcrumb.mjs +9 -9
- package/fesm2022/cmat-components-card.mjs +3 -3
- package/fesm2022/cmat-components-carousel.mjs +12 -12
- package/fesm2022/cmat-components-cascade.mjs +9 -9
- package/fesm2022/cmat-components-chip-input.mjs +3 -3
- package/fesm2022/cmat-components-code-editor.mjs +3 -3
- package/fesm2022/cmat-components-color-picker.mjs +27 -27
- package/fesm2022/cmat-components-custom-formly.mjs +96 -96
- package/fesm2022/cmat-components-data-picker.mjs +15 -15
- package/fesm2022/cmat-components-date-range.mjs +3 -3
- package/fesm2022/cmat-components-date-time-display.mjs +3 -3
- package/fesm2022/cmat-components-drawer.mjs +6 -6
- package/fesm2022/cmat-components-empty-state.mjs +3 -3
- package/fesm2022/cmat-components-file-preview.mjs +3 -3
- package/fesm2022/cmat-components-filter-toolbar.mjs +3 -3
- package/fesm2022/cmat-components-form-actions.mjs +3 -3
- package/fesm2022/cmat-components-fullscreen.mjs +3 -3
- package/fesm2022/cmat-components-highlight.mjs +6 -6
- package/fesm2022/cmat-components-image-viewer.mjs +3 -3
- package/fesm2022/cmat-components-inline-loading.mjs +3 -3
- package/fesm2022/cmat-components-json-editor.mjs +3 -3
- package/fesm2022/cmat-components-knob-input.mjs +3 -3
- package/fesm2022/cmat-components-masonry.mjs +3 -3
- package/fesm2022/cmat-components-material-color-picker.mjs +3 -3
- package/fesm2022/cmat-components-material-datetimepicker.mjs +42 -42
- package/fesm2022/cmat-components-navigation.mjs +110 -43
- package/fesm2022/cmat-components-navigation.mjs.map +1 -1
- package/fesm2022/cmat-components-opt-input.mjs +3 -3
- package/fesm2022/cmat-components-org-chart.mjs +9 -9
- package/fesm2022/cmat-components-page-header.mjs +3 -3
- package/fesm2022/cmat-components-pagination.mjs +12 -12
- package/fesm2022/cmat-components-password-strength.mjs +9 -9
- package/fesm2022/cmat-components-popover.mjs +9 -9
- package/fesm2022/cmat-components-progress-bar.mjs +3 -3
- package/fesm2022/cmat-components-qrcode.mjs +3 -3
- package/fesm2022/cmat-components-rating.mjs +3 -3
- package/fesm2022/cmat-components-rich-text-editor.mjs +3 -3
- package/fesm2022/cmat-components-select-search.mjs +9 -9
- package/fesm2022/cmat-components-select-table.mjs +3 -3
- package/fesm2022/cmat-components-select-tree.mjs +3 -3
- package/fesm2022/cmat-components-skeleton.mjs +3 -3
- package/fesm2022/cmat-components-speed-dial.mjs +9 -9
- package/fesm2022/cmat-components-status-tag.mjs +3 -3
- package/fesm2022/cmat-components-table-toolbar.mjs +3 -3
- package/fesm2022/cmat-components-timeline.mjs +12 -12
- package/fesm2022/cmat-components-toast.mjs +11 -10
- package/fesm2022/cmat-components-toast.mjs.map +1 -1
- package/fesm2022/cmat-components-transfer-picker.mjs +18 -18
- package/fesm2022/cmat-components-treetable.mjs +6 -6
- package/fesm2022/cmat-components-upload.mjs +9 -9
- package/fesm2022/cmat-directives-animate-on-scroll.mjs +6 -6
- package/fesm2022/cmat-directives-arrow-cursor.mjs +3 -3
- package/fesm2022/cmat-directives-autofocus.mjs +3 -3
- package/fesm2022/cmat-directives-data-exporter.mjs +21 -21
- package/fesm2022/cmat-directives-debounce.mjs +9 -9
- package/fesm2022/cmat-directives-digit-only.mjs +6 -6
- package/fesm2022/cmat-directives-equal-validator.mjs +3 -3
- package/fesm2022/cmat-directives-seamless-auto-scroll.mjs +3 -3
- package/fesm2022/cmat-lib-mock-api.mjs +6 -6
- package/fesm2022/cmat-pipes-bytes.mjs +3 -3
- package/fesm2022/cmat-pipes-date-format.mjs +3 -3
- package/fesm2022/cmat-pipes-find-by-key.mjs +3 -3
- package/fesm2022/cmat-pipes-group-by.mjs +3 -3
- package/fesm2022/cmat-pipes-keys.mjs +3 -3
- package/fesm2022/cmat-pipes-secure.mjs +3 -3
- package/fesm2022/cmat-pipes-uppercase.mjs +3 -3
- package/fesm2022/cmat-services-alert.mjs +17 -6
- package/fesm2022/cmat-services-alert.mjs.map +1 -1
- package/fesm2022/cmat-services-config.mjs +6 -6
- package/fesm2022/cmat-services-confirmation.mjs +6 -6
- package/fesm2022/cmat-services-data.mjs +3 -3
- package/fesm2022/cmat-services-export-as.mjs +3 -3
- package/fesm2022/cmat-services-loading.mjs +6 -6
- package/fesm2022/cmat-services-local-storage.mjs +3 -3
- package/fesm2022/cmat-services-media-watcher.mjs +3 -3
- package/fesm2022/cmat-services-platform.mjs +3 -3
- package/fesm2022/cmat-services-splash-screen.mjs +3 -3
- package/fesm2022/cmat-services-title.mjs +3 -3
- package/fesm2022/cmat-services-translation.mjs +3 -3
- package/fesm2022/cmat-services-utils.mjs +3 -3
- package/fesm2022/cmat.mjs +642 -563
- package/fesm2022/cmat.mjs.map +1 -1
- package/package.json +1 -3
- package/styles/user-themes.scss +1 -1
- package/types/cmat-components-material-datetimepicker.d.ts +5 -5
- package/types/cmat-components-navigation.d.ts +32 -2
- package/types/cmat-components-toast.d.ts +1 -1
- package/types/cmat-services-alert.d.ts +3 -0
- package/types/cmat.d.ts +42 -9
- package/styles/overrides/fullcalendar.scss +0 -552
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cmat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.91",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Yu Tao",
|
|
6
6
|
"email": "916426364@qq.com"
|
|
7
7
|
},
|
|
8
8
|
"license": "UNLICENSED",
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@angular/animations": "^21.2.9",
|
|
11
10
|
"@angular/cdk": "^21.2.7",
|
|
12
11
|
"@angular/common": "^21.2.9",
|
|
13
12
|
"@angular/compiler": "^21.2.9",
|
|
@@ -15,7 +14,6 @@
|
|
|
15
14
|
"@angular/forms": "^21.2.9",
|
|
16
15
|
"@angular/material": "^21.2.7",
|
|
17
16
|
"@angular/platform-browser": "^21.2.9",
|
|
18
|
-
"@angular/platform-browser-dynamic": "^21.2.9",
|
|
19
17
|
"@angular/router": "^21.2.9",
|
|
20
18
|
"@ctrl/tinycolor": "^4.2.0",
|
|
21
19
|
"@ngx-formly/core": "^7.1.0",
|
package/styles/user-themes.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
$user-themes: (default: (selector: ".theme-default", primary: (50: #eef2ff, 100: #e0e7ff, 200: #c6d2ff, 300: #a3b3ff, 400: #7c86ff, 500: #615fff, 600: #4f39f6, 700: #432dd7, 800: #372aac, 900: #312c85, 950: #1e1a4d, DEFAULT: #
|
|
1
|
+
$user-themes: (default: (selector: ".theme-default", primary: (50: #eef2ff, 100: #e0e7ff, 200: #c6d2ff, 300: #a3b3ff, 400: #7c86ff, 500: #615fff, 600: #4f39f6, 700: #432dd7, 800: #372aac, 900: #312c85, 950: #1e1a4d, DEFAULT: #615fff, contrast: (50: #1e1a4d, 100: #1e1a4d, 200: #1e1a4d, 300: #1e1a4d, 400: #1e1a4d, 500: #fff, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #fff)), accent: (50: #fdf2f8, 100: #fce7f3, 200: #fccee8, 300: #fda5d5, 400: #fb64b6, 500: #f6339a, 600: #e60076, 700: #c6005c, 800: #a3004c, 900: #861043, 950: #510424, DEFAULT: #f6339a, contrast: (50: #510424, 100: #510424, 200: #510424, 300: #510424, 400: #510424, 500: #510424, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #510424)), warn: (50: #fef2f2, 100: #ffe2e2, 200: #ffc9c9, 300: #ffa2a2, 400: #ff6467, 500: #fb2c36, 600: #e7000b, 700: #c10007, 800: #9f0712, 900: #82181a, 950: #460809, DEFAULT: #e7000b, contrast: (50: #460809, 100: #460809, 200: #460809, 300: #460809, 400: #460809, 500: #fef2f2, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #fff))), sky: (selector: ".theme-sky", primary: (50: #f0f9ff, 100: #dff2fe, 200: #b8e6fe, 300: #74d4ff, 400: #00bcff, 500: #00a6f4, 600: #0084d1, 700: #0069a8, 800: #00598a, 900: #024a70, 950: #052f4a, DEFAULT: #00a6f4, contrast: (50: #052f4a, 100: #052f4a, 200: #052f4a, 300: #052f4a, 400: #052f4a, 500: #052f4a, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #052f4a)), accent: (50: #f8fafc, 100: #f1f5f9, 200: #e2e8f0, 300: #cad5e2, 400: #90a1b9, 500: #62748e, 600: #45556c, 700: #314158, 800: #1d293d, 900: #0f172b, 950: #020618, DEFAULT: #45556c, contrast: (50: #020618, 100: #020618, 200: #020618, 300: #020618, 400: #020618, 500: #fff, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #fff)), warn: (50: #fef2f2, 100: #ffe2e2, 200: #ffc9c9, 300: #ffa2a2, 400: #ff6467, 500: #fb2c36, 600: #e7000b, 700: #c10007, 800: #9f0712, 900: #82181a, 950: #460809, DEFAULT: #e7000b, contrast: (50: #460809, 100: #460809, 200: #460809, 300: #460809, 400: #460809, 500: #fef2f2, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #fff))), teal: (selector: ".theme-teal", primary: (50: #f0fdfa, 100: #cbfbf1, 200: #96f7e4, 300: #46ecd5, 400: #00d5be, 500: #00bba7, 600: #009689, 700: #00786f, 800: #005f5a, 900: #0b4f4a, 950: #022f2e, DEFAULT: #009689, contrast: (50: #022f2e, 100: #022f2e, 200: #022f2e, 300: #022f2e, 400: #022f2e, 500: #022f2e, 600: #022f2e, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #022f2e)), accent: (50: #fff7ed, 100: #ffedd4, 200: #ffd6a7, 300: #ffb86a, 400: #ff8904, 500: #ff6900, 600: #f54900, 700: #ca3500, 800: #9f2d00, 900: #7e2a0c, 950: #441306, DEFAULT: #f54900, contrast: (50: #441306, 100: #441306, 200: #441306, 300: #441306, 400: #441306, 500: #441306, 600: #441306, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #441306)), warn: (50: #fef2f2, 100: #ffe2e2, 200: #ffc9c9, 300: #ffa2a2, 400: #ff6467, 500: #fb2c36, 600: #e7000b, 700: #c10007, 800: #9f0712, 900: #82181a, 950: #460809, DEFAULT: #e7000b, contrast: (50: #460809, 100: #460809, 200: #460809, 300: #460809, 400: #460809, 500: #fef2f2, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #fff))), rose: (selector: ".theme-rose", primary: (50: #fff1f2, 100: #ffe4e6, 200: #ffccd3, 300: #ffa1ad, 400: #ff637e, 500: #ff2056, 600: #ec003f, 700: #c70036, 800: #a50036, 900: #8b0836, 950: #4d0218, DEFAULT: #ff2056, contrast: (50: #4d0218, 100: #4d0218, 200: #4d0218, 300: #4d0218, 400: #4d0218, 500: #4d0218, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #4d0218)), accent: (50: #eef2ff, 100: #e0e7ff, 200: #c6d2ff, 300: #a3b3ff, 400: #7c86ff, 500: #615fff, 600: #4f39f6, 700: #432dd7, 800: #372aac, 900: #312c85, 950: #1e1a4d, DEFAULT: #615fff, contrast: (50: #1e1a4d, 100: #1e1a4d, 200: #1e1a4d, 300: #1e1a4d, 400: #1e1a4d, 500: #fff, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #fff)), warn: (50: #fef2f2, 100: #ffe2e2, 200: #ffc9c9, 300: #ffa2a2, 400: #ff6467, 500: #fb2c36, 600: #e7000b, 700: #c10007, 800: #9f0712, 900: #82181a, 950: #460809, DEFAULT: #e7000b, contrast: (50: #460809, 100: #460809, 200: #460809, 300: #460809, 400: #460809, 500: #fef2f2, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #fff))), violet: (selector: ".theme-violet", primary: (50: #f5f3ff, 100: #ede9fe, 200: #ddd6ff, 300: #c4b4ff, 400: #a684ff, 500: #8e51ff, 600: #7f22fe, 700: #7008e7, 800: #5d0ec0, 900: #4d179a, 950: #2f0d68, DEFAULT: #7f22fe, contrast: (50: #2f0d68, 100: #2f0d68, 200: #2f0d68, 300: #2f0d68, 400: #2f0d68, 500: #fff, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #fff)), accent: (50: #ecfdf5, 100: #d0fae5, 200: #a4f4cf, 300: #5ee9b5, 400: #00d492, 500: #00bc7d, 600: #096, 700: #007a55, 800: #006045, 900: #004f3b, 950: #002c22, DEFAULT: #096, contrast: (50: #002c22, 100: #002c22, 200: #002c22, 300: #002c22, 400: #002c22, 500: #002c22, 600: #002c22, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #002c22)), warn: (50: #fef2f2, 100: #ffe2e2, 200: #ffc9c9, 300: #ffa2a2, 400: #ff6467, 500: #fb2c36, 600: #e7000b, 700: #c10007, 800: #9f0712, 900: #82181a, 950: #460809, DEFAULT: #e7000b, contrast: (50: #460809, 100: #460809, 200: #460809, 300: #460809, 400: #460809, 500: #fef2f2, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #fff))), amber: (selector: ".theme-amber", primary: (50: #fffbeb, 100: #fef3c6, 200: #fee685, 300: #ffd230, 400: #ffba00, 500: #fd9a00, 600: #e17100, 700: #bb4d00, 800: #973c00, 900: #7b3306, 950: #461901, DEFAULT: #fd9a00, contrast: (50: #461901, 100: #461901, 200: #461901, 300: #461901, 400: #461901, 500: #461901, 600: #461901, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #461901)), accent: (50: #f5f3ff, 100: #ede9fe, 200: #ddd6ff, 300: #c4b4ff, 400: #a684ff, 500: #8e51ff, 600: #7f22fe, 700: #7008e7, 800: #5d0ec0, 900: #4d179a, 950: #2f0d68, DEFAULT: #8e51ff, contrast: (50: #2f0d68, 100: #2f0d68, 200: #2f0d68, 300: #2f0d68, 400: #2f0d68, 500: #fff, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #fff)), warn: (50: #fef2f2, 100: #ffe2e2, 200: #ffc9c9, 300: #ffa2a2, 400: #ff6467, 500: #fb2c36, 600: #e7000b, 700: #c10007, 800: #9f0712, 900: #82181a, 950: #460809, DEFAULT: #e7000b, contrast: (50: #460809, 100: #460809, 200: #460809, 300: #460809, 400: #460809, 500: #fef2f2, 600: #fff, 700: #fff, 800: #fff, 900: #fff, 950: #fff, DEFAULT: #fff))));
|
|
@@ -210,7 +210,7 @@ declare class CmatDatetimepickerInputDirective<D> implements AfterContentInit, C
|
|
|
210
210
|
readonly cmatDatepickerFilter: _angular_core.InputSignal<((date: D | null, type: CmatDatetimepickerFilterType) => boolean) | undefined>;
|
|
211
211
|
readonly min: _angular_core.InputSignal<D | null>;
|
|
212
212
|
readonly max: _angular_core.InputSignal<D | null>;
|
|
213
|
-
readonly disabled: _angular_core.InputSignalWithTransform<boolean,
|
|
213
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
214
214
|
readonly value: _angular_core.InputSignal<D | null>;
|
|
215
215
|
readonly dateFilter: _angular_core.Signal<((date: D | null, type: CmatDatetimepickerFilterType) => boolean) | undefined>;
|
|
216
216
|
readonly datetimepicker: _angular_core.Signal<CmatDatetimepickerComponent<D> | undefined>;
|
|
@@ -295,14 +295,14 @@ declare class CmatDatetimepickerComponent<D> implements OnDestroy {
|
|
|
295
295
|
readonly yPosition: _angular_core.InputSignal<DatetimepickerDropdownPositionY>;
|
|
296
296
|
readonly multiYearSelector: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
297
297
|
readonly twelvehour: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
298
|
-
readonly panelClass: _angular_core.InputSignalWithTransform<string | string[],
|
|
298
|
+
readonly panelClass: _angular_core.InputSignalWithTransform<string | string[], unknown>;
|
|
299
299
|
readonly timeInput: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
300
300
|
readonly touchUi: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
301
301
|
readonly restoreFocus: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
302
302
|
readonly color: _angular_core.InputSignal<ThemePalette>;
|
|
303
303
|
readonly type: _angular_core.InputSignal<CmatDatetimepickerType>;
|
|
304
|
-
readonly opened: _angular_core.InputSignalWithTransform<boolean,
|
|
305
|
-
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined,
|
|
304
|
+
readonly opened: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
305
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
306
306
|
readonly startAt: _angular_core.InputSignal<D | null>;
|
|
307
307
|
readonly openedState: _angular_core.Signal<boolean>;
|
|
308
308
|
readonly disabledState: _angular_core.Signal<boolean>;
|
|
@@ -384,7 +384,7 @@ declare class CmatDatetimepickerToggleComponent<D> {
|
|
|
384
384
|
readonly tabIndex: _angular_core.InputSignal<number>;
|
|
385
385
|
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
386
386
|
readonly disableRipple: _angular_core.InputSignal<boolean>;
|
|
387
|
-
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined,
|
|
387
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
388
388
|
readonly isDisabled: _angular_core.Signal<boolean | undefined>;
|
|
389
389
|
readonly refreshVersion: _angular_core.WritableSignal<number>;
|
|
390
390
|
protected intl: CmatDatetimepickerIntl;
|
|
@@ -48,13 +48,28 @@ declare class CmatHorizontalNavigationComponent implements OnInit, OnDestroy {
|
|
|
48
48
|
readonly name: _angular_core.InputSignal<string>;
|
|
49
49
|
readonly navigation: _angular_core.InputSignal<CmatNavigationItem[] | undefined>;
|
|
50
50
|
readonly hasRouteReuseStrategy: _angular_core.InputSignal<boolean | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* 渲染用导航树:refreshToken变化时重新深拷贝整棵树,使每一级item获得新引用。
|
|
53
|
+
*
|
|
54
|
+
* 原因:@for的reconcile算法(valuesMatching)在同位置同引用(Object.is)时
|
|
55
|
+
* 直接判定匹配,根本不调用track表达式——原地修改(push/splice/字段赋值)后
|
|
56
|
+
* 仅靠track键变化无法触发视图更新。深拷贝产生新引用后,track键随refreshToken
|
|
57
|
+
* 变化→视图销毁重建→重新读取已修改的数据,刷新生效。
|
|
58
|
+
* 函数属性(hidden等)按引用保留,行为不变;未调用refresh()时computed命中缓存。
|
|
59
|
+
*/
|
|
60
|
+
readonly _renderNavigation: _angular_core.Signal<CmatNavigationItem[]>;
|
|
51
61
|
private _cmatNavigationService;
|
|
52
62
|
constructor();
|
|
53
63
|
ngOnInit(): void;
|
|
54
64
|
ngOnDestroy(): void;
|
|
55
65
|
refresh(): void;
|
|
56
|
-
trackByFn(index: number, item: CmatNavigationItem): string
|
|
66
|
+
trackByFn(index: number, item: CmatNavigationItem): string;
|
|
57
67
|
goToRouterLink(link: string): void;
|
|
68
|
+
/**
|
|
69
|
+
* 深拷贝导航项树:每级item及children数组均生成新引用,
|
|
70
|
+
* 函数属性(hidden等)按引用保留。
|
|
71
|
+
*/
|
|
72
|
+
private _deepCopyItems;
|
|
58
73
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CmatHorizontalNavigationComponent, never>;
|
|
59
74
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CmatHorizontalNavigationComponent, "cmat-horizontal-navigation", ["cmatHorizontalNavigation"], { "name": { "alias": "name"; "required": false; "isSignal": true; }; "navigation": { "alias": "navigation"; "required": false; "isSignal": true; }; "hasRouteReuseStrategy": { "alias": "hasRouteReuseStrategy"; "required": false; "isSignal": true; }; }, { "routeReuseStrategyEmitUrl": "routeReuseStrategyEmitUrl"; }, never, never, true, never>;
|
|
60
75
|
}
|
|
@@ -82,6 +97,16 @@ declare class CmatVerticalNavigationComponent implements OnInit, AfterViewInit,
|
|
|
82
97
|
onCollapsableItemCollapsed: ReplaySubject<CmatNavigationItem>;
|
|
83
98
|
onCollapsableItemExpanded: ReplaySubject<CmatNavigationItem>;
|
|
84
99
|
readonly refreshToken: _angular_core.WritableSignal<number>;
|
|
100
|
+
/**
|
|
101
|
+
* 渲染用导航树:refreshToken变化时重新深拷贝整棵树,使每一级item获得新引用。
|
|
102
|
+
*
|
|
103
|
+
* 原因:@for的reconcile算法(valuesMatching)在同位置同引用(Object.is)时
|
|
104
|
+
* 直接判定匹配,根本不调用track表达式——原地修改(push/splice/字段赋值)后
|
|
105
|
+
* 仅靠track键变化无法触发视图更新。深拷贝产生新引用后,track键随refreshToken
|
|
106
|
+
* 变化→视图销毁重建→重新读取已修改的数据,刷新生效。
|
|
107
|
+
* 函数属性(hidden等)按引用保留,行为不变;未调用refresh()时computed命中缓存。
|
|
108
|
+
*/
|
|
109
|
+
readonly _renderNavigation: _angular_core.Signal<CmatNavigationItem[]>;
|
|
85
110
|
readonly classList: _angular_core.Signal<string>;
|
|
86
111
|
readonly styleList: _angular_core.Signal<string>;
|
|
87
112
|
private readonly _openedState;
|
|
@@ -117,10 +142,15 @@ declare class CmatVerticalNavigationComponent implements OnInit, AfterViewInit,
|
|
|
117
142
|
openAside(item: CmatNavigationItem): void;
|
|
118
143
|
closeAside(): void;
|
|
119
144
|
toggleAside(item: CmatNavigationItem): void;
|
|
120
|
-
trackByFn(index: number, item: CmatNavigationItem): string
|
|
145
|
+
trackByFn(index: number, item: CmatNavigationItem): string;
|
|
121
146
|
selectItem(item: CmatNavigationItem): void;
|
|
122
147
|
goToRouterLink(link: string): void;
|
|
123
148
|
isItemVisible(item: CmatNavigationItem): boolean;
|
|
149
|
+
/**
|
|
150
|
+
* 深拷贝导航项树:每级item及children数组均生成新引用,
|
|
151
|
+
* 函数属性(hidden等)按引用保留。
|
|
152
|
+
*/
|
|
153
|
+
private _deepCopyItems;
|
|
124
154
|
private _removeOverlayElement;
|
|
125
155
|
private _removeAsideOverlayElement;
|
|
126
156
|
private _forceCleanupOverlay;
|
|
@@ -76,7 +76,7 @@ declare class CmatToastService {
|
|
|
76
76
|
removeToast(toastId: number): void;
|
|
77
77
|
clearAll(): void;
|
|
78
78
|
clearLast(): void;
|
|
79
|
-
addToast(toast: CmatToastModel):
|
|
79
|
+
addToast(toast: CmatToastModel): number;
|
|
80
80
|
getGlobalConfigs(): GlobalConfigModel | undefined;
|
|
81
81
|
private _getDefaultToast;
|
|
82
82
|
private _setGlobalValues;
|
|
@@ -43,10 +43,12 @@ declare class CmatAlertMessage {
|
|
|
43
43
|
declare class CmatAlertService {
|
|
44
44
|
private readonly _messages;
|
|
45
45
|
private readonly _stickyMessages;
|
|
46
|
+
private readonly _bottomMessages;
|
|
46
47
|
private readonly _dialogs;
|
|
47
48
|
private readonly _isLoading;
|
|
48
49
|
readonly messages: _angular_core.Signal<CmatAlertMessage | null>;
|
|
49
50
|
readonly stickyMessages: _angular_core.Signal<void | CmatAlertMessage>;
|
|
51
|
+
readonly bottomMessages: _angular_core.Signal<void | CmatAlertMessage>;
|
|
50
52
|
readonly dialogs: _angular_core.Signal<CmatAlertDialog | null>;
|
|
51
53
|
readonly isLoading: _angular_core.Signal<boolean>;
|
|
52
54
|
private _loadingMessageId;
|
|
@@ -67,6 +69,7 @@ declare class CmatAlertService {
|
|
|
67
69
|
logTrace(msg: unknown): void;
|
|
68
70
|
logWarning(msg: unknown): void;
|
|
69
71
|
resetStickyMessage(): void;
|
|
72
|
+
resetBottomMessage(): void;
|
|
70
73
|
private _showMessageHelper;
|
|
71
74
|
private isApiResult;
|
|
72
75
|
private _clearLoadingMessageTimer;
|
package/types/cmat.d.ts
CHANGED
|
@@ -2537,7 +2537,7 @@ declare class CmatDatetimepickerInputDirective<D> implements AfterContentInit, C
|
|
|
2537
2537
|
readonly cmatDatepickerFilter: _angular_core.InputSignal<((date: D | null, type: CmatDatetimepickerFilterType) => boolean) | undefined>;
|
|
2538
2538
|
readonly min: _angular_core.InputSignal<D | null>;
|
|
2539
2539
|
readonly max: _angular_core.InputSignal<D | null>;
|
|
2540
|
-
readonly disabled: _angular_core.InputSignalWithTransform<boolean,
|
|
2540
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2541
2541
|
readonly value: _angular_core.InputSignal<D | null>;
|
|
2542
2542
|
readonly dateFilter: _angular_core.Signal<((date: D | null, type: CmatDatetimepickerFilterType) => boolean) | undefined>;
|
|
2543
2543
|
readonly datetimepicker: _angular_core.Signal<CmatDatetimepickerComponent<D> | undefined>;
|
|
@@ -2622,14 +2622,14 @@ declare class CmatDatetimepickerComponent<D> implements OnDestroy {
|
|
|
2622
2622
|
readonly yPosition: _angular_core.InputSignal<DatetimepickerDropdownPositionY>;
|
|
2623
2623
|
readonly multiYearSelector: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
2624
2624
|
readonly twelvehour: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
2625
|
-
readonly panelClass: _angular_core.InputSignalWithTransform<string | string[],
|
|
2625
|
+
readonly panelClass: _angular_core.InputSignalWithTransform<string | string[], unknown>;
|
|
2626
2626
|
readonly timeInput: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
2627
2627
|
readonly touchUi: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
2628
2628
|
readonly restoreFocus: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
2629
2629
|
readonly color: _angular_core.InputSignal<ThemePalette>;
|
|
2630
2630
|
readonly type: _angular_core.InputSignal<CmatDatetimepickerType>;
|
|
2631
|
-
readonly opened: _angular_core.InputSignalWithTransform<boolean,
|
|
2632
|
-
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined,
|
|
2631
|
+
readonly opened: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2632
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
2633
2633
|
readonly startAt: _angular_core.InputSignal<D | null>;
|
|
2634
2634
|
readonly openedState: _angular_core.Signal<boolean>;
|
|
2635
2635
|
readonly disabledState: _angular_core.Signal<boolean>;
|
|
@@ -2711,7 +2711,7 @@ declare class CmatDatetimepickerToggleComponent<D> {
|
|
|
2711
2711
|
readonly tabIndex: _angular_core.InputSignal<number>;
|
|
2712
2712
|
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
2713
2713
|
readonly disableRipple: _angular_core.InputSignal<boolean>;
|
|
2714
|
-
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined,
|
|
2714
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
2715
2715
|
readonly isDisabled: _angular_core.Signal<boolean | undefined>;
|
|
2716
2716
|
readonly refreshVersion: _angular_core.WritableSignal<number>;
|
|
2717
2717
|
protected intl: CmatDatetimepickerIntl;
|
|
@@ -2839,13 +2839,28 @@ declare class CmatHorizontalNavigationComponent implements OnInit, OnDestroy {
|
|
|
2839
2839
|
readonly name: _angular_core.InputSignal<string>;
|
|
2840
2840
|
readonly navigation: _angular_core.InputSignal<CmatNavigationItem[] | undefined>;
|
|
2841
2841
|
readonly hasRouteReuseStrategy: _angular_core.InputSignal<boolean | undefined>;
|
|
2842
|
+
/**
|
|
2843
|
+
* 渲染用导航树:refreshToken变化时重新深拷贝整棵树,使每一级item获得新引用。
|
|
2844
|
+
*
|
|
2845
|
+
* 原因:@for的reconcile算法(valuesMatching)在同位置同引用(Object.is)时
|
|
2846
|
+
* 直接判定匹配,根本不调用track表达式——原地修改(push/splice/字段赋值)后
|
|
2847
|
+
* 仅靠track键变化无法触发视图更新。深拷贝产生新引用后,track键随refreshToken
|
|
2848
|
+
* 变化→视图销毁重建→重新读取已修改的数据,刷新生效。
|
|
2849
|
+
* 函数属性(hidden等)按引用保留,行为不变;未调用refresh()时computed命中缓存。
|
|
2850
|
+
*/
|
|
2851
|
+
readonly _renderNavigation: _angular_core.Signal<CmatNavigationItem[]>;
|
|
2842
2852
|
private _cmatNavigationService;
|
|
2843
2853
|
constructor();
|
|
2844
2854
|
ngOnInit(): void;
|
|
2845
2855
|
ngOnDestroy(): void;
|
|
2846
2856
|
refresh(): void;
|
|
2847
|
-
trackByFn(index: number, item: CmatNavigationItem): string
|
|
2857
|
+
trackByFn(index: number, item: CmatNavigationItem): string;
|
|
2848
2858
|
goToRouterLink(link: string): void;
|
|
2859
|
+
/**
|
|
2860
|
+
* 深拷贝导航项树:每级item及children数组均生成新引用,
|
|
2861
|
+
* 函数属性(hidden等)按引用保留。
|
|
2862
|
+
*/
|
|
2863
|
+
private _deepCopyItems;
|
|
2849
2864
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CmatHorizontalNavigationComponent, never>;
|
|
2850
2865
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CmatHorizontalNavigationComponent, "cmat-horizontal-navigation", ["cmatHorizontalNavigation"], { "name": { "alias": "name"; "required": false; "isSignal": true; }; "navigation": { "alias": "navigation"; "required": false; "isSignal": true; }; "hasRouteReuseStrategy": { "alias": "hasRouteReuseStrategy"; "required": false; "isSignal": true; }; }, { "routeReuseStrategyEmitUrl": "routeReuseStrategyEmitUrl"; }, never, never, true, never>;
|
|
2851
2866
|
}
|
|
@@ -2873,6 +2888,16 @@ declare class CmatVerticalNavigationComponent implements OnInit, AfterViewInit,
|
|
|
2873
2888
|
onCollapsableItemCollapsed: ReplaySubject<CmatNavigationItem>;
|
|
2874
2889
|
onCollapsableItemExpanded: ReplaySubject<CmatNavigationItem>;
|
|
2875
2890
|
readonly refreshToken: _angular_core.WritableSignal<number>;
|
|
2891
|
+
/**
|
|
2892
|
+
* 渲染用导航树:refreshToken变化时重新深拷贝整棵树,使每一级item获得新引用。
|
|
2893
|
+
*
|
|
2894
|
+
* 原因:@for的reconcile算法(valuesMatching)在同位置同引用(Object.is)时
|
|
2895
|
+
* 直接判定匹配,根本不调用track表达式——原地修改(push/splice/字段赋值)后
|
|
2896
|
+
* 仅靠track键变化无法触发视图更新。深拷贝产生新引用后,track键随refreshToken
|
|
2897
|
+
* 变化→视图销毁重建→重新读取已修改的数据,刷新生效。
|
|
2898
|
+
* 函数属性(hidden等)按引用保留,行为不变;未调用refresh()时computed命中缓存。
|
|
2899
|
+
*/
|
|
2900
|
+
readonly _renderNavigation: _angular_core.Signal<CmatNavigationItem[]>;
|
|
2876
2901
|
readonly classList: _angular_core.Signal<string>;
|
|
2877
2902
|
readonly styleList: _angular_core.Signal<string>;
|
|
2878
2903
|
private readonly _openedState;
|
|
@@ -2908,10 +2933,15 @@ declare class CmatVerticalNavigationComponent implements OnInit, AfterViewInit,
|
|
|
2908
2933
|
openAside(item: CmatNavigationItem): void;
|
|
2909
2934
|
closeAside(): void;
|
|
2910
2935
|
toggleAside(item: CmatNavigationItem): void;
|
|
2911
|
-
trackByFn(index: number, item: CmatNavigationItem): string
|
|
2936
|
+
trackByFn(index: number, item: CmatNavigationItem): string;
|
|
2912
2937
|
selectItem(item: CmatNavigationItem): void;
|
|
2913
2938
|
goToRouterLink(link: string): void;
|
|
2914
2939
|
isItemVisible(item: CmatNavigationItem): boolean;
|
|
2940
|
+
/**
|
|
2941
|
+
* 深拷贝导航项树:每级item及children数组均生成新引用,
|
|
2942
|
+
* 函数属性(hidden等)按引用保留。
|
|
2943
|
+
*/
|
|
2944
|
+
private _deepCopyItems;
|
|
2915
2945
|
private _removeOverlayElement;
|
|
2916
2946
|
private _removeAsideOverlayElement;
|
|
2917
2947
|
private _forceCleanupOverlay;
|
|
@@ -3581,7 +3611,7 @@ declare class CmatSelectSearchComponent implements OnInit, ControlValueAccessor
|
|
|
3581
3611
|
readonly toggleAllCheckboxChecked: _angular_core.InputSignal<boolean>;
|
|
3582
3612
|
readonly toggleAllCheckboxIndeterminate: _angular_core.InputSignal<boolean>;
|
|
3583
3613
|
readonly toggleAllCheckboxTooltipMessage: _angular_core.InputSignal<string>;
|
|
3584
|
-
readonly toggleAllCheckboxTooltipPosition: _angular_core.InputSignal<"left" | "right" | "
|
|
3614
|
+
readonly toggleAllCheckboxTooltipPosition: _angular_core.InputSignal<"left" | "right" | "after" | "before" | "above" | "below">;
|
|
3585
3615
|
readonly hideClearSearchButton: _angular_core.InputSignal<boolean>;
|
|
3586
3616
|
readonly alwaysRestoreSelectedOptionsMulti: _angular_core.InputSignal<boolean>;
|
|
3587
3617
|
/**
|
|
@@ -4096,7 +4126,7 @@ declare class CmatToastService {
|
|
|
4096
4126
|
removeToast(toastId: number): void;
|
|
4097
4127
|
clearAll(): void;
|
|
4098
4128
|
clearLast(): void;
|
|
4099
|
-
addToast(toast: CmatToastModel):
|
|
4129
|
+
addToast(toast: CmatToastModel): number;
|
|
4100
4130
|
getGlobalConfigs(): GlobalConfigModel | undefined;
|
|
4101
4131
|
private _getDefaultToast;
|
|
4102
4132
|
private _setGlobalValues;
|
|
@@ -4778,10 +4808,12 @@ declare class CmatAlertMessage {
|
|
|
4778
4808
|
declare class CmatAlertService {
|
|
4779
4809
|
private readonly _messages;
|
|
4780
4810
|
private readonly _stickyMessages;
|
|
4811
|
+
private readonly _bottomMessages;
|
|
4781
4812
|
private readonly _dialogs;
|
|
4782
4813
|
private readonly _isLoading;
|
|
4783
4814
|
readonly messages: _angular_core.Signal<CmatAlertMessage | null>;
|
|
4784
4815
|
readonly stickyMessages: _angular_core.Signal<void | CmatAlertMessage>;
|
|
4816
|
+
readonly bottomMessages: _angular_core.Signal<void | CmatAlertMessage>;
|
|
4785
4817
|
readonly dialogs: _angular_core.Signal<CmatAlertDialog | null>;
|
|
4786
4818
|
readonly isLoading: _angular_core.Signal<boolean>;
|
|
4787
4819
|
private _loadingMessageId;
|
|
@@ -4802,6 +4834,7 @@ declare class CmatAlertService {
|
|
|
4802
4834
|
logTrace(msg: unknown): void;
|
|
4803
4835
|
logWarning(msg: unknown): void;
|
|
4804
4836
|
resetStickyMessage(): void;
|
|
4837
|
+
resetBottomMessage(): void;
|
|
4805
4838
|
private _showMessageHelper;
|
|
4806
4839
|
private isApiResult;
|
|
4807
4840
|
private _clearLoadingMessageTimer;
|