@delon/abc 19.0.1 → 19.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/auto-focus/auto-focus.directive.d.ts +6 -8
  2. package/cell/cell-host.directive.d.ts +4 -5
  3. package/cell/cell.component.d.ts +13 -22
  4. package/cell/style/index.less +1 -1
  5. package/error-collect/error-collect.component.d.ts +6 -12
  6. package/fesm2022/auto-focus.mjs +22 -22
  7. package/fesm2022/auto-focus.mjs.map +1 -1
  8. package/fesm2022/avatar-list.mjs +10 -10
  9. package/fesm2022/cell.mjs +95 -110
  10. package/fesm2022/cell.mjs.map +1 -1
  11. package/fesm2022/chart-observer-size.mjs +10 -10
  12. package/fesm2022/count-down.mjs +7 -7
  13. package/fesm2022/date-picker.mjs +11 -10
  14. package/fesm2022/date-picker.mjs.map +1 -1
  15. package/fesm2022/down-file.mjs +7 -7
  16. package/fesm2022/ellipsis.mjs +7 -7
  17. package/fesm2022/error-collect.mjs +29 -46
  18. package/fesm2022/error-collect.mjs.map +1 -1
  19. package/fesm2022/exception.mjs +7 -7
  20. package/fesm2022/exception.mjs.map +1 -1
  21. package/fesm2022/footer-toolbar.mjs +7 -7
  22. package/fesm2022/full-content.mjs +14 -14
  23. package/fesm2022/full-content.mjs.map +1 -1
  24. package/fesm2022/global-footer.mjs +10 -10
  25. package/fesm2022/hotkey.mjs +7 -7
  26. package/fesm2022/loading.mjs +10 -10
  27. package/fesm2022/loading.mjs.map +1 -1
  28. package/fesm2022/lodop.mjs +8 -8
  29. package/fesm2022/lodop.mjs.map +1 -1
  30. package/fesm2022/media.mjs +10 -10
  31. package/fesm2022/notice-icon.mjs +16 -22
  32. package/fesm2022/notice-icon.mjs.map +1 -1
  33. package/fesm2022/onboarding.mjs +11 -11
  34. package/fesm2022/onboarding.mjs.map +1 -1
  35. package/fesm2022/page-header.mjs +7 -7
  36. package/fesm2022/pdf.mjs +7 -7
  37. package/fesm2022/quick-menu.mjs +7 -7
  38. package/fesm2022/quick-menu.mjs.map +1 -1
  39. package/fesm2022/result.mjs +7 -7
  40. package/fesm2022/reuse-tab.mjs +22 -22
  41. package/fesm2022/reuse-tab.mjs.map +1 -1
  42. package/fesm2022/se.mjs +15 -15
  43. package/fesm2022/se.mjs.map +1 -1
  44. package/fesm2022/sg.mjs +10 -10
  45. package/fesm2022/st.mjs +52 -43
  46. package/fesm2022/st.mjs.map +1 -1
  47. package/fesm2022/sv.mjs +16 -16
  48. package/fesm2022/sv.mjs.map +1 -1
  49. package/fesm2022/tag-select.mjs +7 -7
  50. package/fesm2022/xlsx.mjs +10 -10
  51. package/fesm2022/xlsx.mjs.map +1 -1
  52. package/fesm2022/zip.mjs +3 -3
  53. package/fesm2022/zip.mjs.map +1 -1
  54. package/footer-toolbar/style/index.less +1 -1
  55. package/loading/loading.types.d.ts +1 -3
  56. package/notice-icon/notice-icon.component.d.ts +6 -11
  57. package/notice-icon/style/index.less +6 -2
  58. package/package.json +4 -4
  59. package/page-header/style/index.less +1 -1
  60. package/quick-menu/quick-menu.component.d.ts +1 -3
  61. package/quick-menu/style/index.less +2 -2
  62. package/result/style/index.less +1 -1
  63. package/reuse-tab/reuse-tab.cache.d.ts +4 -12
  64. package/reuse-tab/reuse-tab.component.d.ts +1 -3
  65. package/se/se.types.d.ts +1 -3
  66. package/st/st.component.d.ts +1 -1
  67. package/st/st.interfaces.d.ts +15 -15
  68. package/st/st.types.d.ts +1 -3
  69. package/st/style/index.less +1 -1
  70. package/sv/style/index.less +1 -1
  71. package/sv/sv-container.component.d.ts +1 -3
  72. package/xlsx/xlsx.service.d.ts +1 -3
  73. package/xlsx/xlsx.types.d.ts +1 -3
@@ -6,19 +6,11 @@ import { ReuseTabCached, ReuseTitle } from './reuse-tab.interfaces';
6
6
  export declare const REUSE_TAB_CACHED_MANAGER: InjectionToken<ReuseTabCachedManager>;
7
7
  export interface ReuseTabCachedManager {
8
8
  list: ReuseTabCached[];
9
- title: {
10
- [url: string]: ReuseTitle;
11
- };
12
- closable: {
13
- [url: string]: boolean;
14
- };
9
+ title: Record<string, ReuseTitle>;
10
+ closable: Record<string, boolean>;
15
11
  }
16
12
  export declare class ReuseTabCachedManagerFactory implements ReuseTabCachedManager {
17
13
  list: ReuseTabCached[];
18
- title: {
19
- [url: string]: ReuseTitle;
20
- };
21
- closable: {
22
- [url: string]: boolean;
23
- };
14
+ title: Record<string, ReuseTitle>;
15
+ closable: Record<string, boolean>;
24
16
  }
@@ -34,9 +34,7 @@ export declare class ReuseTabComponent implements OnInit, OnChanges {
34
34
  customContextMenu: ReuseCustomContextMenu[];
35
35
  tabBarExtraContent?: TemplateRef<void>;
36
36
  tabBarGutter?: number;
37
- tabBarStyle: {
38
- [key: string]: string;
39
- } | null;
37
+ tabBarStyle: Record<string, string> | null;
40
38
  tabType: 'line' | 'card';
41
39
  routeParamMatchMode: ReuseTabRouteParamMatchMode;
42
40
  disabled: boolean;
package/se/se.types.d.ts CHANGED
@@ -2,9 +2,7 @@ import { TemplateRef } from '@angular/core';
2
2
  export type SELayout = 'horizontal' | 'vertical' | 'inline';
3
3
  export type SESize = 'default' | 'compact';
4
4
  export type SEErrorType = string | TemplateRef<void> | SEError;
5
- export interface SEError {
6
- [key: string]: string | TemplateRef<void>;
7
- }
5
+ export type SEError = Record<string, string | TemplateRef<void>>;
8
6
  export interface SEErrorRefresh {
9
7
  name: string;
10
8
  error: SEErrorType;
@@ -88,7 +88,7 @@ export declare class STComponent implements AfterViewInit, OnChanges {
88
88
  x?: string | null;
89
89
  y?: string | null;
90
90
  };
91
- drag: import("@angular/core").InputSignalWithTransform<STDragOptions | null, string | boolean | STDragOptions | null | undefined>;
91
+ drag: import("@angular/core").InputSignalWithTransform<STDragOptions | null, unknown>;
92
92
  singleSort?: STSingleSort | null;
93
93
  private _multiSort?;
94
94
  get multiSort(): NzSafeAny;
@@ -12,7 +12,7 @@ import type { DisabledTimeFn } from 'ng-zorro-antd/date-picker';
12
12
  import type { NzDrawerOptions } from 'ng-zorro-antd/drawer';
13
13
  import type { ModalOptions } from 'ng-zorro-antd/modal';
14
14
  import type { PaginationItemRenderContext } from 'ng-zorro-antd/pagination';
15
- import type { NzTablePaginationType } from 'ng-zorro-antd/table';
15
+ import type { NzTablePaginationType, NzTableSortOrder } from 'ng-zorro-antd/table';
16
16
  import type { STComponent } from './st.component';
17
17
  export type STColumnSafeType = 'text' | 'html' | 'safeHtml';
18
18
  export interface STWidthMode {
@@ -59,7 +59,7 @@ export interface STReq {
59
59
  *
60
60
  * 是否忽略参数中 `null` 或 `undefind` 值
61
61
  */
62
- ignoreParamNull?: Boolean;
62
+ ignoreParamNull?: boolean;
63
63
  /** 请求方法,默认:`GET` */
64
64
  method?: string;
65
65
  /** 请求体 `body` */
@@ -86,12 +86,8 @@ export interface STReq {
86
86
  }
87
87
  export interface STRequestOptions {
88
88
  body?: any;
89
- headers?: HttpHeaders | {
90
- [header: string]: string | string[];
91
- };
92
- params?: HttpParams | {
93
- [param: string]: string | string[];
94
- };
89
+ headers?: HttpHeaders | Record<string, string | string[]>;
90
+ params?: HttpParams | Record<string, string | string[]>;
95
91
  observe?: 'body' | 'events' | 'response';
96
92
  reportProgress?: boolean;
97
93
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
@@ -316,9 +312,11 @@ export interface STColumn<T extends STData = any> {
316
312
  /**
317
313
  * 排序配置项,远程数据配置**优先**规则:
318
314
  * - `true` 表示允许排序,且若数据源为本地时自动生成 `compare: (a, b) => a[index] - b[index]` 方法
315
+ * - `ascend` 表示升序
316
+ * - `descend` 表示降序
319
317
  * - `string` 表示远程数据排序相对应 `key` 值
320
318
  */
321
- sort?: true | string | STColumnSort<T>;
319
+ sort?: true | STColumnSort<T> | 'ascend' | 'descend' | string;
322
320
  /**
323
321
  * 过滤配置项
324
322
  */
@@ -505,6 +503,12 @@ export interface STColumnSort<T extends STData = any> {
505
503
  ascend?: string;
506
504
  descend?: string;
507
505
  };
506
+ /**
507
+ * 支持的排序方式
508
+ *
509
+ * Supported sort order
510
+ */
511
+ directions?: NzTableSortOrder[];
508
512
  }
509
513
  export interface STSortMap<T extends STData = any> extends STColumnSort<T> {
510
514
  [key: string]: any;
@@ -963,9 +967,7 @@ export interface STMultiSort {
963
967
  */
964
968
  global?: boolean;
965
969
  }
966
- export interface STMultiSortResultType {
967
- [key: string]: string | string[];
968
- }
970
+ export type STMultiSortResultType = Record<string, string | string[]>;
969
971
  /**
970
972
  * 徽标信息
971
973
  */
@@ -1079,9 +1081,7 @@ export interface STChange<T extends STData = any> {
1079
1081
  /** 行单击参数 */
1080
1082
  export interface STChangeSort {
1081
1083
  value?: 'ascend' | 'descend';
1082
- map?: {
1083
- [key: string]: string;
1084
- };
1084
+ map?: Record<string, string>;
1085
1085
  column?: STColumn;
1086
1086
  }
1087
1087
  /** 行单击参数 */
package/st/st.types.d.ts CHANGED
@@ -29,9 +29,7 @@ export interface _STColumn extends STColumn {
29
29
  /**
30
30
  * 校验需要未自定义 `className` 时应检查 `_isTruncate` 是否需要截短行为
31
31
  */
32
- _className?: string | string[] | Set<string> | {
33
- [klass: string]: any;
34
- } | null;
32
+ _className?: string | string[] | Set<string> | Record<string, any> | null;
35
33
  _sort: STSortMap;
36
34
  _width?: number;
37
35
  _left: string | boolean;
@@ -25,9 +25,9 @@
25
25
  width: 100%;
26
26
  }
27
27
  @{st-prefix}__btn-text {
28
+ display: block;
28
29
  width: 100%;
29
30
  color: inherit;
30
- display: block;
31
31
  }
32
32
  }
33
33
 
@@ -240,8 +240,8 @@
240
240
  }
241
241
 
242
242
  @{sv-prefix}__label {
243
- background-color: @descriptions-bg;
244
243
  border-right: 1px solid @border-color-split;
244
+ background-color: @descriptions-bg;
245
245
  }
246
246
 
247
247
  @{sv-prefix}__label,
@@ -25,9 +25,7 @@ export declare class SVContainerComponent {
25
25
  default: boolean;
26
26
  noColon: boolean;
27
27
  bordered: boolean;
28
- get margin(): {
29
- [k: string]: string;
30
- };
28
+ get margin(): Record<string, string>;
31
29
  constructor(configSrv: AlainConfigService);
32
30
  static ɵfac: i0.ɵɵFactoryDeclaration<SVContainerComponent, never>;
33
31
  static ɵcmp: i0.ɵɵComponentDeclaration<SVContainerComponent, "sv-container, [sv-container]", ["svContainer"], { "colInCon": { "alias": "sv-container"; "required": false; }; "title": { "alias": "title"; "required": false; }; "size": { "alias": "size"; "required": false; }; "gutter": { "alias": "gutter"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "col": { "alias": "col"; "required": false; }; "default": { "alias": "default"; "required": false; }; "noColon": { "alias": "noColon"; "required": false; }; "bordered": { "alias": "bordered"; "required": false; }; }, {}, never, ["*"], true, never>;
@@ -13,9 +13,7 @@ export declare class XlsxService {
13
13
  /**
14
14
  * 导入Excel并输出JSON,支持 `<input type="file">`、URL 形式
15
15
  */
16
- import(fileOrUrl: File | string): Promise<{
17
- [key: string]: NzSafeAny[][];
18
- }>;
16
+ import(fileOrUrl: File | string): Promise<Record<string, NzSafeAny[][]>>;
19
17
  export(options: XlsxExportOptions): Promise<XlsxExportResult>;
20
18
  /**
21
19
  * 数据转符号名
@@ -5,9 +5,7 @@ export interface XlsxExportOptions {
5
5
  * - `{ Sheet1: { A1: { t:"n", v:10000 } } }`
6
6
  * - `[['1'], [1]]`
7
7
  */
8
- sheets: {
9
- [sheet: string]: NzSafeAny;
10
- } | XlsxExportSheet[];
8
+ sheets: Record<string, NzSafeAny> | XlsxExportSheet[];
11
9
  /** File format, default: `xlsx` */
12
10
  format?: 'csv' | 'xlsx';
13
11
  /** save file name, default: `export.xlsx` */