@delon/theme 19.0.1 → 19.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delon/theme",
3
- "version": "19.0.1",
3
+ "version": "19.1.0",
4
4
  "author": "cipchk<cipchk@qq.com>",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -22,10 +22,10 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "ng-zorro-antd": "^19.0.2",
25
- "@delon/acl": "^19.0.1",
26
- "@delon/abc": "^19.0.1",
27
- "@delon/form": "^19.0.1",
28
- "@delon/util": "^19.0.1",
25
+ "@delon/acl": "^19.1.0",
26
+ "@delon/abc": "^19.1.0",
27
+ "@delon/form": "^19.1.0",
28
+ "@delon/util": "^19.1.0",
29
29
  "tslib": "^2.3.0"
30
30
  },
31
31
  "module": "fesm2022/theme.mjs",
@@ -4,6 +4,4 @@ export declare const DEFAULT_COLORS: {
4
4
  key: string;
5
5
  color: string;
6
6
  }[];
7
- export declare const DEFAULT_VARS: {
8
- [key: string]: NzSafeAny;
9
- };
7
+ export declare const DEFAULT_VARS: Record<string, NzSafeAny>;
@@ -1,7 +1,5 @@
1
1
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
2
- export interface LocaleData {
3
- [key: string]: NzSafeAny;
4
- }
2
+ export type LocaleData = Record<string, NzSafeAny>;
5
3
  export interface ExceptionLocaleData extends LocaleData {
6
4
  403: string;
7
5
  404: string;
@@ -3,9 +3,7 @@ import { Observable } from 'rxjs';
3
3
  import { AlainConfigService } from '@delon/util/config';
4
4
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
5
5
  import * as i0 from "@angular/core";
6
- export type _HttpHeaders = HttpHeaders | {
7
- [header: string]: string | string[];
8
- };
6
+ export type _HttpHeaders = HttpHeaders | Record<string, string | string[]>;
9
7
  export type HttpObserve = 'body' | 'events' | 'response';
10
8
  /**
11
9
  * 封装HttpClient,主要解决:
@@ -32,9 +32,7 @@ export declare function BaseUrl(url: string): <TClass extends new (...args: any[
32
32
  * 默认 `headers`
33
33
  * - 有效范围:类
34
34
  */
35
- export declare function BaseHeaders(headers: HttpHeaders | {
36
- [header: string]: string | string[];
37
- }): <TClass extends new (...args: any[]) => BaseApi>(target: TClass) => TClass;
35
+ export declare function BaseHeaders(headers: HttpHeaders | Record<string, string | string[]>): <TClass extends new (...args: any[]) => BaseApi>(target: TClass) => TClass;
38
36
  /**
39
37
  * URL路由参数
40
38
  * - 有效范围:方法参数
@@ -43,6 +43,8 @@ export interface Menu {
43
43
  badgeDot?: boolean;
44
44
  /** Badge [color](https://ng.ant.design/components/badge/en#nz-badge) */
45
45
  badgeStatus?: 'success' | 'processing' | 'default' | 'error' | 'warning';
46
+ /** Maximum count to show in badge, show `${badgeOverflowCount}+` when exceed */
47
+ badgeOverflowCount?: number;
46
48
  /** Whether disable for the menu item */
47
49
  disabled?: boolean;
48
50
  /** Whether hidden for the menu item */
package/variable.css CHANGED
@@ -35757,6 +35757,9 @@ ellipsis {
35757
35757
  font-weight: normal;
35758
35758
  color: rgba(0, 0, 0, 0.45);
35759
35759
  }
35760
+ .notice-icon__item-extra .ant-tag {
35761
+ margin-right: 0;
35762
+ }
35760
35763
  .page-header {
35761
35764
  display: block;
35762
35765
  padding: 24px;