@delon/abc 16.1.1 → 16.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 (162) hide show
  1. package/esm2022/auto-focus/auto-focus.directive.mjs +5 -6
  2. package/esm2022/auto-focus/auto-focus.module.mjs +6 -7
  3. package/esm2022/avatar-list/avatar-list-item.component.mjs +5 -6
  4. package/esm2022/avatar-list/avatar-list.component.mjs +5 -6
  5. package/esm2022/avatar-list/avatar-list.module.mjs +6 -7
  6. package/esm2022/count-down/count-down.component.mjs +5 -6
  7. package/esm2022/count-down/count-down.module.mjs +6 -7
  8. package/esm2022/date-picker/date-picker.module.mjs +6 -7
  9. package/esm2022/date-picker/range-shortcut.component.mjs +5 -6
  10. package/esm2022/date-picker/range.directive.mjs +5 -6
  11. package/esm2022/down-file/down-file.directive.mjs +5 -6
  12. package/esm2022/down-file/down-file.module.mjs +6 -7
  13. package/esm2022/ellipsis/ellipsis.component.mjs +5 -6
  14. package/esm2022/ellipsis/ellipsis.module.mjs +6 -7
  15. package/esm2022/error-collect/error-collect.component.mjs +5 -6
  16. package/esm2022/error-collect/error-collect.module.mjs +6 -7
  17. package/esm2022/exception/exception.component.mjs +5 -6
  18. package/esm2022/exception/exception.module.mjs +6 -7
  19. package/esm2022/footer-toolbar/footer-toolbar.component.mjs +5 -6
  20. package/esm2022/footer-toolbar/footer-toolbar.module.mjs +6 -7
  21. package/esm2022/full-content/full-content-toggle.directive.mjs +5 -6
  22. package/esm2022/full-content/full-content.component.mjs +5 -6
  23. package/esm2022/full-content/full-content.module.mjs +6 -7
  24. package/esm2022/full-content/full-content.service.mjs +5 -6
  25. package/esm2022/global-footer/global-footer-item.component.mjs +5 -6
  26. package/esm2022/global-footer/global-footer.component.mjs +5 -6
  27. package/esm2022/global-footer/global-footer.module.mjs +6 -7
  28. package/esm2022/hotkey/hotkey.directive.mjs +5 -6
  29. package/esm2022/hotkey/hotkey.module.mjs +6 -7
  30. package/esm2022/let/let.directive.mjs +5 -6
  31. package/esm2022/let/let.module.mjs +6 -7
  32. package/esm2022/loading/loading.component.mjs +5 -6
  33. package/esm2022/loading/loading.module.mjs +6 -7
  34. package/esm2022/loading/loading.service.mjs +5 -6
  35. package/esm2022/lodop/lodop.module.mjs +6 -7
  36. package/esm2022/lodop/lodop.service.mjs +5 -6
  37. package/esm2022/media/media.component.mjs +5 -6
  38. package/esm2022/media/media.module.mjs +6 -7
  39. package/esm2022/media/media.service.mjs +5 -6
  40. package/esm2022/notice-icon/notice-icon-tab.component.mjs +5 -6
  41. package/esm2022/notice-icon/notice-icon.component.mjs +5 -6
  42. package/esm2022/notice-icon/notice-icon.module.mjs +6 -7
  43. package/esm2022/observers/observer-size.mjs +14 -17
  44. package/esm2022/onboarding/onboarding.component.mjs +5 -6
  45. package/esm2022/onboarding/onboarding.module.mjs +6 -7
  46. package/esm2022/onboarding/onboarding.service.mjs +12 -14
  47. package/esm2022/page-header/page-header.component.mjs +5 -6
  48. package/esm2022/page-header/page-header.module.mjs +6 -7
  49. package/esm2022/pdf/pdf.component.mjs +5 -6
  50. package/esm2022/pdf/pdf.module.mjs +6 -7
  51. package/esm2022/qr/qr.component.mjs +5 -6
  52. package/esm2022/qr/qr.module.mjs +6 -7
  53. package/esm2022/quick-menu/quick-menu.component.mjs +5 -6
  54. package/esm2022/quick-menu/quick-menu.module.mjs +6 -7
  55. package/esm2022/result/result.component.mjs +5 -6
  56. package/esm2022/result/result.module.mjs +6 -7
  57. package/esm2022/reuse-tab/reuse-tab-context-menu.component.mjs +5 -6
  58. package/esm2022/reuse-tab/reuse-tab-context.component.mjs +5 -6
  59. package/esm2022/reuse-tab/reuse-tab-context.directive.mjs +5 -6
  60. package/esm2022/reuse-tab/reuse-tab-context.service.mjs +5 -6
  61. package/esm2022/reuse-tab/reuse-tab.component.mjs +5 -6
  62. package/esm2022/reuse-tab/reuse-tab.module.mjs +6 -7
  63. package/esm2022/reuse-tab/reuse-tab.service.mjs +5 -6
  64. package/esm2022/se/se-container.component.mjs +9 -11
  65. package/esm2022/se/se.component.mjs +7 -7
  66. package/esm2022/se/se.module.mjs +6 -7
  67. package/esm2022/sg/sg-container.component.mjs +5 -6
  68. package/esm2022/sg/sg.component.mjs +7 -7
  69. package/esm2022/sg/sg.module.mjs +6 -7
  70. package/esm2022/st/st-column-source.mjs +6 -7
  71. package/esm2022/st/st-data-source.mjs +19 -8
  72. package/esm2022/st/st-export.mjs +5 -6
  73. package/esm2022/st/st-filter.component.mjs +5 -6
  74. package/esm2022/st/st-row.directive.mjs +9 -11
  75. package/esm2022/st/st-widget-host.directive.mjs +5 -6
  76. package/esm2022/st/st-widget.mjs +5 -6
  77. package/esm2022/st/st.component.mjs +26 -19
  78. package/esm2022/st/st.interfaces.mjs +1 -1
  79. package/esm2022/st/st.module.mjs +6 -7
  80. package/esm2022/st/st.types.mjs +1 -1
  81. package/esm2022/sv/sv-container.component.mjs +19 -15
  82. package/esm2022/sv/sv-value.component.mjs +5 -6
  83. package/esm2022/sv/sv.component.mjs +7 -7
  84. package/esm2022/sv/sv.module.mjs +6 -7
  85. package/esm2022/tag-select/tag-select.component.mjs +5 -6
  86. package/esm2022/tag-select/tag-select.module.mjs +6 -7
  87. package/esm2022/xlsx/xlsx.directive.mjs +5 -6
  88. package/esm2022/xlsx/xlsx.module.mjs +6 -7
  89. package/esm2022/xlsx/xlsx.service.mjs +5 -6
  90. package/esm2022/zip/zip.module.mjs +6 -7
  91. package/esm2022/zip/zip.service.mjs +5 -6
  92. package/fesm2022/auto-focus.mjs +7 -7
  93. package/fesm2022/auto-focus.mjs.map +1 -1
  94. package/fesm2022/avatar-list.mjs +10 -10
  95. package/fesm2022/avatar-list.mjs.map +1 -1
  96. package/fesm2022/chart-observer-size.mjs +10 -10
  97. package/fesm2022/chart-observer-size.mjs.map +1 -1
  98. package/fesm2022/count-down.mjs +7 -7
  99. package/fesm2022/count-down.mjs.map +1 -1
  100. package/fesm2022/date-picker.mjs +10 -10
  101. package/fesm2022/date-picker.mjs.map +1 -1
  102. package/fesm2022/down-file.mjs +7 -7
  103. package/fesm2022/down-file.mjs.map +1 -1
  104. package/fesm2022/ellipsis.mjs +7 -7
  105. package/fesm2022/ellipsis.mjs.map +1 -1
  106. package/fesm2022/error-collect.mjs +7 -7
  107. package/fesm2022/error-collect.mjs.map +1 -1
  108. package/fesm2022/exception.mjs +7 -7
  109. package/fesm2022/exception.mjs.map +1 -1
  110. package/fesm2022/footer-toolbar.mjs +7 -7
  111. package/fesm2022/footer-toolbar.mjs.map +1 -1
  112. package/fesm2022/full-content.mjs +13 -13
  113. package/fesm2022/full-content.mjs.map +1 -1
  114. package/fesm2022/global-footer.mjs +10 -10
  115. package/fesm2022/global-footer.mjs.map +1 -1
  116. package/fesm2022/hotkey.mjs +7 -7
  117. package/fesm2022/hotkey.mjs.map +1 -1
  118. package/fesm2022/let.mjs +7 -7
  119. package/fesm2022/let.mjs.map +1 -1
  120. package/fesm2022/loading.mjs +10 -10
  121. package/fesm2022/loading.mjs.map +1 -1
  122. package/fesm2022/lodop.mjs +7 -7
  123. package/fesm2022/lodop.mjs.map +1 -1
  124. package/fesm2022/media.mjs +10 -10
  125. package/fesm2022/media.mjs.map +1 -1
  126. package/fesm2022/notice-icon.mjs +10 -10
  127. package/fesm2022/notice-icon.mjs.map +1 -1
  128. package/fesm2022/onboarding.mjs +17 -18
  129. package/fesm2022/onboarding.mjs.map +1 -1
  130. package/fesm2022/page-header.mjs +7 -7
  131. package/fesm2022/page-header.mjs.map +1 -1
  132. package/fesm2022/pdf.mjs +7 -7
  133. package/fesm2022/pdf.mjs.map +1 -1
  134. package/fesm2022/qr.mjs +7 -7
  135. package/fesm2022/qr.mjs.map +1 -1
  136. package/fesm2022/quick-menu.mjs +7 -7
  137. package/fesm2022/quick-menu.mjs.map +1 -1
  138. package/fesm2022/result.mjs +7 -7
  139. package/fesm2022/result.mjs.map +1 -1
  140. package/fesm2022/reuse-tab.mjs +22 -22
  141. package/fesm2022/reuse-tab.mjs.map +1 -1
  142. package/fesm2022/se.mjs +15 -14
  143. package/fesm2022/se.mjs.map +1 -1
  144. package/fesm2022/sg.mjs +12 -11
  145. package/fesm2022/sg.mjs.map +1 -1
  146. package/fesm2022/st.mjs +66 -45
  147. package/fesm2022/st.mjs.map +1 -1
  148. package/fesm2022/sv.mjs +28 -21
  149. package/fesm2022/sv.mjs.map +1 -1
  150. package/fesm2022/tag-select.mjs +7 -7
  151. package/fesm2022/tag-select.mjs.map +1 -1
  152. package/fesm2022/xlsx.mjs +10 -10
  153. package/fesm2022/xlsx.mjs.map +1 -1
  154. package/fesm2022/zip.mjs +7 -7
  155. package/fesm2022/zip.mjs.map +1 -1
  156. package/onboarding/onboarding.service.d.ts +3 -5
  157. package/package.json +5 -5
  158. package/sg/sg-container.component.d.ts +1 -1
  159. package/st/st-data-source.d.ts +2 -1
  160. package/st/st.interfaces.d.ts +11 -4
  161. package/st/st.types.d.ts +8 -1
  162. package/sv/sv-container.component.d.ts +6 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delon/abc",
3
- "version": "16.1.1",
3
+ "version": "16.2.0",
4
4
  "author": "cipchk<cipchk@qq.com>",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,10 +28,10 @@
28
28
  "plyr": "^3.7.8",
29
29
  "pdfjs-dist": "~3.6.172",
30
30
  "@github/hotkey": "^2.0.1",
31
- "ngx-countdown": "^15.0.0",
32
- "@delon/theme": "^16.1.1",
33
- "@delon/util": "^16.1.1",
34
- "@delon/acl": "^16.1.1",
31
+ "ngx-countdown": "^16.0.0",
32
+ "@delon/theme": "^16.2.0",
33
+ "@delon/util": "^16.2.0",
34
+ "@delon/acl": "^16.2.0",
35
35
  "tslib": "^2.3.0"
36
36
  },
37
37
  "module": "fesm2022/abc.mjs",
@@ -1,4 +1,4 @@
1
- import { REP_TYPE } from '@delon/theme';
1
+ import type { REP_TYPE } from '@delon/theme';
2
2
  import { AlainConfigService } from '@delon/util/config';
3
3
  import { NumberInput } from '@delon/util/decorator';
4
4
  import * as i0 from "@angular/core";
@@ -5,7 +5,7 @@ import { DatePipe, YNPipe, _HttpClient } from '@delon/theme';
5
5
  import type { AlainSTConfig } from '@delon/util/config';
6
6
  import { CurrencyService } from '@delon/util/format';
7
7
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
8
- import { STCustomRequestOptions, STData, STMultiSort, STMultiSortResultType, STPage, STReq, STRes, STRowClassName, STSingleSort, STStatisticalResults } from './st.interfaces';
8
+ import type { STColumn, STCustomRequestOptions, STData, STMultiSort, STMultiSortResultType, STOnCellResult, STPage, STReq, STRes, STRowClassName, STSingleSort, STStatisticalResults } from './st.interfaces';
9
9
  import { _STColumn } from './st.types';
10
10
  import * as i0 from "@angular/core";
11
11
  export interface STDataSourceOptions {
@@ -51,6 +51,7 @@ export declare class STDataSource {
51
51
  process(options: STDataSourceOptions): Observable<STDataSourceResult>;
52
52
  private get;
53
53
  private getByRemote;
54
+ getCell(c: STColumn, item: STData, idx: number): STOnCellResult;
54
55
  optimizeData(options: {
55
56
  columns: _STColumn[];
56
57
  result: STData[];
@@ -337,9 +337,11 @@ export interface STColumn<T extends STData = any> {
337
337
  */
338
338
  className?: NgClassType;
339
339
  /**
340
- * 合并列
340
+ * Table cell supports `colSpan` and `rowSpan`. When each of them is set to 0, the cell will not be rendered.
341
+ *
342
+ * 表格支持行/列合并,若返回的 `colSpan` 或者 `rowSpan` 设值为 0 时表示不会渲染
341
343
  */
342
- colSpan?: number;
344
+ onCell?: (item: T, index: number) => STOnCellResult;
343
345
  /**
344
346
  * 数字格式,`type=number` 有效
345
347
  */
@@ -411,6 +413,7 @@ export interface STColumn<T extends STData = any> {
411
413
  * 分组表头
412
414
  */
413
415
  children?: Array<STColumn<T>>;
416
+ colSpan?: number;
414
417
  rowSpan?: number;
415
418
  /**
416
419
  * 调整表头配置
@@ -692,7 +695,7 @@ export interface STColumnButton<T extends STData = any> {
692
695
  /**
693
696
  * 图标
694
697
  */
695
- icon?: string | STIcon;
698
+ icon?: string | STIcon | ((record: T, btn: STColumnButton<T>) => STIcon | null | undefined);
696
699
  /**
697
700
  * 按钮类型
698
701
  * - `none` 无任何互动
@@ -751,7 +754,7 @@ export interface STColumnButton<T extends STData = any> {
751
754
  * - `text-success` 成功色
752
755
  * - `text-error` 错误色
753
756
  */
754
- className?: NgClassType;
757
+ className?: NgClassType | ((record: T, btn: STColumnButton<T>) => NgClassType | null | undefined);
755
758
  [key: string]: any;
756
759
  }
757
760
  export interface STColumnMaxMultipleButton {
@@ -1150,3 +1153,7 @@ export interface STCustomRequestOptions {
1150
1153
  url: string;
1151
1154
  options: STRequestOptions;
1152
1155
  }
1156
+ export interface STOnCellResult {
1157
+ rowSpan?: number | null;
1158
+ colSpan?: number | null;
1159
+ }
package/st/st.types.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import { SafeHtml } from '@angular/platform-browser';
3
- import { STColumn, STColumnButton, STColumnSafeType, STData, STSortMap } from './st.interfaces';
3
+ import type { NgClassType } from 'ng-zorro-antd/core/types';
4
+ import type { STColumn, STColumnButton, STColumnSafeType, STData, STIcon, STOnCellResult, STSortMap } from './st.interfaces';
4
5
  /**
5
6
  * @inner
6
7
  */
@@ -55,6 +56,11 @@ export interface _STHeader {
55
56
  */
56
57
  export interface _STColumnButton<T extends STData = any> extends STColumnButton<T> {
57
58
  _text?: string;
59
+ _className?: NgClassType | null;
60
+ /**
61
+ * 图标
62
+ */
63
+ _icon?: STIcon | null;
58
64
  children?: Array<_STColumnButton<T>>;
59
65
  }
60
66
  /**
@@ -67,4 +73,5 @@ export interface _STDataValue {
67
73
  color?: string;
68
74
  safeType: STColumnSafeType;
69
75
  buttons?: _STColumnButton[];
76
+ props?: STOnCellResult | null;
70
77
  }
@@ -1,4 +1,5 @@
1
1
  import { ElementRef, OnInit, Renderer2, TemplateRef } from '@angular/core';
2
+ import type { REP_TYPE } from '@delon/theme';
2
3
  import { AlainConfigService } from '@delon/util/config';
3
4
  import { BooleanInput, NumberInput } from '@delon/util/decorator';
4
5
  import * as i0 from "@angular/core";
@@ -6,8 +7,10 @@ export declare class SVContainerComponent {
6
7
  static ngAcceptInputType_gutter: NumberInput;
7
8
  static ngAcceptInputType_labelWidth: NumberInput;
8
9
  static ngAcceptInputType_col: NumberInput;
10
+ static ngAcceptInputType_colInCon: NumberInput;
9
11
  static ngAcceptInputType_default: BooleanInput;
10
12
  static ngAcceptInputType_noColon: BooleanInput;
13
+ colInCon?: REP_TYPE;
11
14
  title?: string | TemplateRef<void>;
12
15
  size: 'small' | 'large';
13
16
  /** 列表项间距,单位为 `px` */
@@ -20,13 +23,13 @@ export declare class SVContainerComponent {
20
23
  noColon: boolean;
21
24
  constructor(configSrv: AlainConfigService);
22
25
  static ɵfac: i0.ɵɵFactoryDeclaration<SVContainerComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<SVContainerComponent, "sv-container, [sv-container]", ["svContainer"], { "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; }; }, {}, never, ["*"], false, never>;
26
+ 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; }; }, {}, never, ["*"], false, never>;
24
27
  }
25
28
  export declare class SVTitleComponent implements OnInit {
29
+ private el;
26
30
  private parent;
27
31
  private ren;
28
- private el;
29
- constructor(el: ElementRef, parent: SVContainerComponent, ren: Renderer2);
32
+ constructor(el: ElementRef<HTMLElement>, parent: SVContainerComponent, ren: Renderer2);
30
33
  private setClass;
31
34
  ngOnInit(): void;
32
35
  static ɵfac: i0.ɵɵFactoryDeclaration<SVTitleComponent, [null, { optional: true; host: true; }, null]>;