@delon/abc 16.2.1 → 16.3.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 (160) hide show
  1. package/cell/cell-host.directive.d.ts +13 -0
  2. package/cell/cell.component.d.ts +45 -0
  3. package/cell/cell.module.d.ts +17 -0
  4. package/cell/cell.service.d.ts +23 -0
  5. package/cell/cell.types.d.ts +238 -0
  6. package/cell/index.d.ts +5 -0
  7. package/cell/style/index.less +63 -0
  8. package/esm2022/auto-focus/auto-focus.directive.mjs +3 -3
  9. package/esm2022/auto-focus/auto-focus.module.mjs +4 -4
  10. package/esm2022/avatar-list/avatar-list-item.component.mjs +3 -3
  11. package/esm2022/avatar-list/avatar-list.component.mjs +3 -3
  12. package/esm2022/avatar-list/avatar-list.module.mjs +4 -4
  13. package/esm2022/cell/cell-host.directive.mjs +34 -0
  14. package/esm2022/cell/cell.component.mjs +270 -0
  15. package/esm2022/cell/cell.mjs +5 -0
  16. package/esm2022/cell/cell.module.mjs +54 -0
  17. package/esm2022/cell/cell.service.mjs +168 -0
  18. package/esm2022/cell/cell.types.mjs +2 -0
  19. package/esm2022/cell/index.mjs +6 -0
  20. package/esm2022/count-down/count-down.component.mjs +3 -3
  21. package/esm2022/count-down/count-down.module.mjs +4 -4
  22. package/esm2022/date-picker/date-picker.module.mjs +4 -4
  23. package/esm2022/date-picker/range-shortcut.component.mjs +3 -3
  24. package/esm2022/date-picker/range.directive.mjs +3 -3
  25. package/esm2022/down-file/down-file.directive.mjs +3 -3
  26. package/esm2022/down-file/down-file.module.mjs +4 -4
  27. package/esm2022/ellipsis/ellipsis.component.mjs +3 -3
  28. package/esm2022/ellipsis/ellipsis.module.mjs +4 -4
  29. package/esm2022/error-collect/error-collect.component.mjs +3 -3
  30. package/esm2022/error-collect/error-collect.module.mjs +4 -4
  31. package/esm2022/exception/exception.component.mjs +3 -3
  32. package/esm2022/exception/exception.module.mjs +4 -4
  33. package/esm2022/footer-toolbar/footer-toolbar.component.mjs +3 -3
  34. package/esm2022/footer-toolbar/footer-toolbar.module.mjs +4 -4
  35. package/esm2022/full-content/full-content-toggle.directive.mjs +3 -3
  36. package/esm2022/full-content/full-content.component.mjs +3 -3
  37. package/esm2022/full-content/full-content.module.mjs +4 -4
  38. package/esm2022/full-content/full-content.service.mjs +3 -3
  39. package/esm2022/global-footer/global-footer-item.component.mjs +3 -3
  40. package/esm2022/global-footer/global-footer.component.mjs +3 -3
  41. package/esm2022/global-footer/global-footer.module.mjs +4 -4
  42. package/esm2022/hotkey/hotkey.directive.mjs +3 -3
  43. package/esm2022/hotkey/hotkey.module.mjs +4 -4
  44. package/esm2022/let/let.directive.mjs +3 -3
  45. package/esm2022/let/let.module.mjs +4 -4
  46. package/esm2022/loading/loading.component.mjs +3 -3
  47. package/esm2022/loading/loading.module.mjs +4 -4
  48. package/esm2022/loading/loading.service.mjs +3 -3
  49. package/esm2022/lodop/lodop.module.mjs +4 -4
  50. package/esm2022/lodop/lodop.service.mjs +3 -3
  51. package/esm2022/media/media.component.mjs +3 -3
  52. package/esm2022/media/media.module.mjs +4 -4
  53. package/esm2022/media/media.service.mjs +3 -3
  54. package/esm2022/notice-icon/notice-icon-tab.component.mjs +3 -3
  55. package/esm2022/notice-icon/notice-icon.component.mjs +3 -3
  56. package/esm2022/notice-icon/notice-icon.module.mjs +4 -4
  57. package/esm2022/observers/observer-size.mjs +10 -10
  58. package/esm2022/onboarding/onboarding.component.mjs +3 -3
  59. package/esm2022/onboarding/onboarding.module.mjs +4 -4
  60. package/esm2022/onboarding/onboarding.service.mjs +3 -3
  61. package/esm2022/page-header/page-header.component.mjs +10 -7
  62. package/esm2022/page-header/page-header.module.mjs +27 -6
  63. package/esm2022/pdf/pdf.component.mjs +5 -5
  64. package/esm2022/pdf/pdf.module.mjs +4 -4
  65. package/esm2022/pdf/pdf.types.mjs +2 -1
  66. package/esm2022/qr/qr.component.mjs +3 -3
  67. package/esm2022/qr/qr.module.mjs +4 -4
  68. package/esm2022/quick-menu/quick-menu.component.mjs +3 -3
  69. package/esm2022/quick-menu/quick-menu.module.mjs +4 -4
  70. package/esm2022/result/result.component.mjs +3 -3
  71. package/esm2022/result/result.module.mjs +4 -4
  72. package/esm2022/reuse-tab/reuse-tab-context-menu.component.mjs +3 -3
  73. package/esm2022/reuse-tab/reuse-tab-context.component.mjs +3 -3
  74. package/esm2022/reuse-tab/reuse-tab-context.directive.mjs +3 -3
  75. package/esm2022/reuse-tab/reuse-tab-context.service.mjs +3 -3
  76. package/esm2022/reuse-tab/reuse-tab.component.mjs +3 -3
  77. package/esm2022/reuse-tab/reuse-tab.module.mjs +4 -4
  78. package/esm2022/reuse-tab/reuse-tab.service.mjs +3 -3
  79. package/esm2022/se/se-container.component.mjs +6 -6
  80. package/esm2022/se/se.component.mjs +3 -3
  81. package/esm2022/se/se.module.mjs +4 -4
  82. package/esm2022/sg/sg-container.component.mjs +3 -3
  83. package/esm2022/sg/sg.component.mjs +3 -3
  84. package/esm2022/sg/sg.module.mjs +4 -4
  85. package/esm2022/st/st-column-source.mjs +8 -4
  86. package/esm2022/st/st-data-source.mjs +14 -7
  87. package/esm2022/st/st-export.mjs +3 -3
  88. package/esm2022/st/st-filter.component.mjs +3 -3
  89. package/esm2022/st/st-row.directive.mjs +6 -6
  90. package/esm2022/st/st-widget-host.directive.mjs +3 -3
  91. package/esm2022/st/st-widget.mjs +3 -3
  92. package/esm2022/st/st.component.mjs +76 -91
  93. package/esm2022/st/st.interfaces.mjs +1 -1
  94. package/esm2022/st/st.module.mjs +9 -5
  95. package/esm2022/st/st.types.mjs +1 -1
  96. package/esm2022/sv/sv-container.component.mjs +19 -9
  97. package/esm2022/sv/sv-value.component.mjs +3 -3
  98. package/esm2022/sv/sv.component.mjs +11 -8
  99. package/esm2022/sv/sv.module.mjs +4 -4
  100. package/esm2022/tag-select/tag-select.component.mjs +3 -3
  101. package/esm2022/tag-select/tag-select.module.mjs +4 -4
  102. package/esm2022/xlsx/xlsx.directive.mjs +3 -3
  103. package/esm2022/xlsx/xlsx.module.mjs +4 -4
  104. package/esm2022/xlsx/xlsx.service.mjs +3 -3
  105. package/esm2022/zip/zip.module.mjs +4 -4
  106. package/esm2022/zip/zip.service.mjs +3 -3
  107. package/fesm2022/auto-focus.mjs +7 -7
  108. package/fesm2022/avatar-list.mjs +10 -10
  109. package/fesm2022/cell.mjs +521 -0
  110. package/fesm2022/cell.mjs.map +1 -0
  111. package/fesm2022/chart-observer-size.mjs +10 -10
  112. package/fesm2022/count-down.mjs +7 -7
  113. package/fesm2022/date-picker.mjs +10 -10
  114. package/fesm2022/down-file.mjs +7 -7
  115. package/fesm2022/ellipsis.mjs +7 -7
  116. package/fesm2022/error-collect.mjs +7 -7
  117. package/fesm2022/exception.mjs +7 -7
  118. package/fesm2022/footer-toolbar.mjs +7 -7
  119. package/fesm2022/full-content.mjs +13 -13
  120. package/fesm2022/global-footer.mjs +10 -10
  121. package/fesm2022/hotkey.mjs +7 -7
  122. package/fesm2022/let.mjs +7 -7
  123. package/fesm2022/loading.mjs +10 -10
  124. package/fesm2022/lodop.mjs +7 -7
  125. package/fesm2022/media.mjs +10 -10
  126. package/fesm2022/notice-icon.mjs +10 -10
  127. package/fesm2022/onboarding.mjs +10 -10
  128. package/fesm2022/page-header.mjs +35 -11
  129. package/fesm2022/page-header.mjs.map +1 -1
  130. package/fesm2022/pdf.mjs +9 -8
  131. package/fesm2022/pdf.mjs.map +1 -1
  132. package/fesm2022/qr.mjs +7 -7
  133. package/fesm2022/quick-menu.mjs +7 -7
  134. package/fesm2022/result.mjs +7 -7
  135. package/fesm2022/reuse-tab.mjs +22 -22
  136. package/fesm2022/se.mjs +13 -13
  137. package/fesm2022/sg.mjs +10 -10
  138. package/fesm2022/st.mjs +119 -119
  139. package/fesm2022/st.mjs.map +1 -1
  140. package/fesm2022/sv.mjs +35 -22
  141. package/fesm2022/sv.mjs.map +1 -1
  142. package/fesm2022/tag-select.mjs +7 -7
  143. package/fesm2022/xlsx.mjs +10 -10
  144. package/fesm2022/zip.mjs +7 -7
  145. package/index.less +1 -0
  146. package/package.json +10 -5
  147. package/page-header/page-header.component.d.ts +2 -1
  148. package/page-header/page-header.module.d.ts +2 -1
  149. package/page-header/style/index.less +1 -0
  150. package/pdf/pdf.component.d.ts +6 -5
  151. package/pdf/pdf.types.d.ts +2 -1
  152. package/st/st-data-source.d.ts +1 -1
  153. package/st/st.component.d.ts +7 -8
  154. package/st/st.interfaces.d.ts +21 -1
  155. package/st/st.module.d.ts +17 -16
  156. package/st/st.types.d.ts +3 -0
  157. package/sv/style/index.less +36 -0
  158. package/sv/sv-container.component.d.ts +7 -2
  159. package/sv/sv.component.d.ts +3 -3
  160. package/theme-default.less +11 -0
@@ -1,5 +1,5 @@
1
1
  import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
2
- import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChange, SimpleChanges, TemplateRef, TrackByFunction } from '@angular/core';
2
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, SimpleChange, SimpleChanges, TemplateRef, TrackByFunction } from '@angular/core';
3
3
  import { Router } from '@angular/router';
4
4
  import { Observable } from 'rxjs';
5
5
  import { AlainI18NService, DelonLocaleService, DrawerHelper, LocaleData, ModalHelper } from '@delon/theme';
@@ -15,7 +15,7 @@ import { STExport } from './st-export';
15
15
  import { STChange, STClickRowClassName, STColumn, STColumnButton, STColumnSelection, STContextmenuFn, STContextmenuItem, STCustomRequestOptions, STData, STError, STExportOptions, STLoadOptions, STPage, STReq, STRes, STResetColumnsOption, STResizable, STRowClassName, STSingleSort, STStatisticalResults, STWidthMode } from './st.interfaces';
16
16
  import { _STColumn, _STHeader, _STTdNotify } from './st.types';
17
17
  import * as i0 from "@angular/core";
18
- export declare class STComponent implements AfterViewInit, OnChanges, OnDestroy {
18
+ export declare class STComponent implements AfterViewInit, OnChanges {
19
19
  private cdr;
20
20
  private el;
21
21
  private exportSrv;
@@ -38,9 +38,8 @@ export declare class STComponent implements AfterViewInit, OnChanges, OnDestroy
38
38
  static ngAcceptInputType_virtualMaxBufferPx: NumberInput;
39
39
  static ngAcceptInputType_virtualMinBufferPx: NumberInput;
40
40
  private destroy$;
41
- private isDestroy;
42
- private data$?;
43
41
  private totalTpl;
42
+ private inied;
44
43
  cog: AlainSTConfig;
45
44
  private _req;
46
45
  private _res;
@@ -68,7 +67,7 @@ export declare class STComponent implements AfterViewInit, OnChanges, OnDestroy
68
67
  set res(value: STRes);
69
68
  get page(): STPage;
70
69
  set page(value: STPage);
71
- data: string | STData[] | Observable<STData[]>;
70
+ data?: string | STData[] | Observable<STData[]>;
72
71
  columns?: STColumn[] | null;
73
72
  contextmenu?: STContextmenuFn | null;
74
73
  ps: number;
@@ -140,7 +139,7 @@ export declare class STComponent implements AfterViewInit, OnChanges, OnDestroy
140
139
  * - 本地数据:包含排序、过滤后不分页数据
141
140
  * - 远程数据:不传递 `pi`、`ps` 两个参数
142
141
  */
143
- get filteredData(): Promise<STData[]>;
142
+ get filteredData(): Observable<STData[]>;
144
143
  private updateTotalTpl;
145
144
  private setLoading;
146
145
  private loadData;
@@ -243,7 +242,8 @@ export declare class STComponent implements AfterViewInit, OnChanges, OnDestroy
243
242
  export(newData?: STData[] | true, opt?: STExportOptions): void;
244
243
  colResize({ width }: NzResizeEvent, column: _STColumn): void;
245
244
  onContextmenu(event: MouseEvent): void;
246
- get cdkVirtualScrollViewport(): CdkVirtualScrollViewport;
245
+ get cdkVirtualScrollViewport(): CdkVirtualScrollViewport | undefined;
246
+ private _resetColumns;
247
247
  resetColumns(options?: STResetColumnsOption): Promise<this>;
248
248
  private refreshColumns;
249
249
  private optimizeData;
@@ -257,7 +257,6 @@ export declare class STComponent implements AfterViewInit, OnChanges, OnDestroy
257
257
  ngOnChanges(changes: {
258
258
  [P in keyof this]?: SimpleChange;
259
259
  } & SimpleChanges): void;
260
- ngOnDestroy(): void;
261
260
  static ɵfac: i0.ɵɵFactoryDeclaration<STComponent, [{ optional: true; }, null, null, null, null, null, null, null, null, null]>;
262
261
  static ɵcmp: i0.ɵɵComponentDeclaration<STComponent, "st", ["st"], { "req": { "alias": "req"; "required": false; }; "res": { "alias": "res"; "required": false; }; "page": { "alias": "page"; "required": false; }; "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "contextmenu": { "alias": "contextmenu"; "required": false; }; "ps": { "alias": "ps"; "required": false; }; "pi": { "alias": "pi"; "required": false; }; "total": { "alias": "total"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingDelay": { "alias": "loadingDelay"; "required": false; }; "loadingIndicator": { "alias": "loadingIndicator"; "required": false; }; "bordered": { "alias": "bordered"; "required": false; }; "size": { "alias": "size"; "required": false; }; "scroll": { "alias": "scroll"; "required": false; }; "singleSort": { "alias": "singleSort"; "required": false; }; "multiSort": { "alias": "multiSort"; "required": false; }; "rowClassName": { "alias": "rowClassName"; "required": false; }; "clickRowClassName": { "alias": "clickRowClassName"; "required": false; }; "widthMode": { "alias": "widthMode"; "required": false; }; "widthConfig": { "alias": "widthConfig"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "header": { "alias": "header"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "bodyHeader": { "alias": "bodyHeader"; "required": false; }; "body": { "alias": "body"; "required": false; }; "expandRowByClick": { "alias": "expandRowByClick"; "required": false; }; "expandAccordion": { "alias": "expandAccordion"; "required": false; }; "expand": { "alias": "expand"; "required": false; }; "noResult": { "alias": "noResult"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; "responsiveHideHeaderFooter": { "alias": "responsiveHideHeaderFooter"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "virtualItemSize": { "alias": "virtualItemSize"; "required": false; }; "virtualMaxBufferPx": { "alias": "virtualMaxBufferPx"; "required": false; }; "virtualMinBufferPx": { "alias": "virtualMinBufferPx"; "required": false; }; "customRequest": { "alias": "customRequest"; "required": false; }; "virtualForTrackBy": { "alias": "virtualForTrackBy"; "required": false; }; }, { "error": "error"; "change": "change"; }, never, never, false, never>;
263
262
  }
@@ -2,6 +2,7 @@ import { HttpHeaders, HttpParams } from '@angular/common/http';
2
2
  import { ElementRef, TemplateRef } from '@angular/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import type { ThemeType } from '@ant-design/icons-angular';
5
+ import type { CellOptions } from '@delon/abc/cell';
5
6
  import type { ACLCanType } from '@delon/acl';
6
7
  import type { DrawerHelperOptions, ModalHelperOptions, YNMode } from '@delon/theme';
7
8
  import type { CurrencyFormatOptions } from '@delon/util/format';
@@ -255,9 +256,16 @@ export interface STColumn<T extends STData = any> {
255
256
  * - `currency` 货币且居右(若 `className` 存在则优先)
256
257
  * - `date` 日期格式且居中(若 `className` 存在则优先),使用 `dateFormat` 自定义格式
257
258
  * - `yn` 将`boolean`类型徽章化 [document](https://ng-alain.com/docs/data-render#yn)
259
+ * - `cell` 使用 `cell` 组件渲染 [document](https://ng-alain.com/components/cell)
258
260
  * - `widget` 使用自定义小部件动态创建
259
261
  */
260
- type?: '' | 'checkbox' | 'link' | 'badge' | 'tag' | 'enum' | 'radio' | 'img' | 'currency' | 'number' | 'date' | 'yn' | 'no' | 'widget';
262
+ type?: '' | 'checkbox' | 'link' | 'badge' | 'tag' | 'enum' | 'radio' | 'img' | 'currency' | 'number' | 'date' | 'yn' | 'no' | 'cell' | 'widget';
263
+ /**
264
+ * `cell` component options
265
+ *
266
+ * `cell` 组件配置项
267
+ */
268
+ cell?: CellOptions | ((record: T, column: STColumn) => CellOptions);
261
269
  /**
262
270
  * 链接回调,若返回一个字符串表示导航URL会自动触发 `router.navigateByUrl`
263
271
  */
@@ -970,6 +978,12 @@ export interface STColumnBadgeValue {
970
978
  * 徽标颜色值
971
979
  */
972
980
  color?: 'success' | 'processing' | 'default' | 'error' | 'warning';
981
+ /**
982
+ * Text popup tip
983
+ *
984
+ * 文字提示
985
+ */
986
+ tooltip?: string;
973
987
  }
974
988
  /**
975
989
  * 标签信息
@@ -989,6 +1003,12 @@ export interface STColumnTagValue {
989
1003
  * - 色值:#f50,#ff0
990
1004
  */
991
1005
  color?: 'geekblue' | 'blue' | 'purple' | 'success' | 'red' | 'volcano' | 'orange' | 'gold' | 'lime' | 'green' | 'cyan' | string;
1006
+ /**
1007
+ * Text popup tip
1008
+ *
1009
+ * 文字提示
1010
+ */
1011
+ tooltip?: string;
992
1012
  }
993
1013
  export type STChangeType = 'loaded' | 'pi' | 'ps' | 'checkbox' | 'radio' | 'sort' | 'filter' | 'filterChange' | 'click' | 'dblClick' | 'expand' | 'resize';
994
1014
  /**
package/st/st.module.d.ts CHANGED
@@ -7,23 +7,24 @@ import * as i5 from "@angular/common";
7
7
  import * as i6 from "@angular/forms";
8
8
  import * as i7 from "@delon/acl";
9
9
  import * as i8 from "@delon/abc/let";
10
- import * as i9 from "ng-zorro-antd/popconfirm";
11
- import * as i10 from "ng-zorro-antd/table";
12
- import * as i11 from "ng-zorro-antd/icon";
13
- import * as i12 from "ng-zorro-antd/badge";
14
- import * as i13 from "ng-zorro-antd/checkbox";
15
- import * as i14 from "ng-zorro-antd/divider";
16
- import * as i15 from "ng-zorro-antd/dropdown";
17
- import * as i16 from "ng-zorro-antd/menu";
18
- import * as i17 from "ng-zorro-antd/radio";
19
- import * as i18 from "ng-zorro-antd/tag";
20
- import * as i19 from "ng-zorro-antd/input";
21
- import * as i20 from "ng-zorro-antd/tooltip";
22
- import * as i21 from "ng-zorro-antd/resizable";
23
- import * as i22 from "ng-zorro-antd/input-number";
24
- import * as i23 from "ng-zorro-antd/date-picker";
10
+ import * as i9 from "@delon/abc/cell";
11
+ import * as i10 from "ng-zorro-antd/popconfirm";
12
+ import * as i11 from "ng-zorro-antd/table";
13
+ import * as i12 from "ng-zorro-antd/icon";
14
+ import * as i13 from "ng-zorro-antd/badge";
15
+ import * as i14 from "ng-zorro-antd/checkbox";
16
+ import * as i15 from "ng-zorro-antd/divider";
17
+ import * as i16 from "ng-zorro-antd/dropdown";
18
+ import * as i17 from "ng-zorro-antd/menu";
19
+ import * as i18 from "ng-zorro-antd/radio";
20
+ import * as i19 from "ng-zorro-antd/tag";
21
+ import * as i20 from "ng-zorro-antd/input";
22
+ import * as i21 from "ng-zorro-antd/tooltip";
23
+ import * as i22 from "ng-zorro-antd/resizable";
24
+ import * as i23 from "ng-zorro-antd/input-number";
25
+ import * as i24 from "ng-zorro-antd/date-picker";
25
26
  export declare class STModule {
26
27
  static ɵfac: i0.ɵɵFactoryDeclaration<STModule, never>;
27
- static ɵmod: i0.ɵɵNgModuleDeclaration<STModule, [typeof i1.STComponent, typeof i2.STRowDirective, typeof i3.STWidgetHostDirective, typeof i4.STFilterComponent, typeof i1.STTdComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.DelonACLModule, typeof i8.LetModule, typeof i9.NzPopconfirmModule, typeof i10.NzTableModule, typeof i11.NzIconModule, typeof i12.NzBadgeModule, typeof i13.NzCheckboxModule, typeof i14.NzDividerModule, typeof i15.NzDropDownModule, typeof i16.NzMenuModule, typeof i17.NzRadioModule, typeof i18.NzTagModule, typeof i19.NzInputModule, typeof i20.NzToolTipModule, typeof i21.NzResizableModule, typeof i22.NzInputNumberModule, typeof i23.NzDatePickerModule], [typeof i1.STComponent, typeof i2.STRowDirective, typeof i3.STWidgetHostDirective]>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<STModule, [typeof i1.STComponent, typeof i2.STRowDirective, typeof i3.STWidgetHostDirective, typeof i4.STFilterComponent, typeof i1.STTdComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.DelonACLModule, typeof i8.LetModule, typeof i9.CellModule, typeof i10.NzPopconfirmModule, typeof i11.NzTableModule, typeof i12.NzIconModule, typeof i13.NzBadgeModule, typeof i14.NzCheckboxModule, typeof i15.NzDividerModule, typeof i16.NzDropDownModule, typeof i17.NzMenuModule, typeof i18.NzRadioModule, typeof i19.NzTagModule, typeof i20.NzInputModule, typeof i21.NzToolTipModule, typeof i22.NzResizableModule, typeof i23.NzInputNumberModule, typeof i24.NzDatePickerModule], [typeof i1.STComponent, typeof i2.STRowDirective, typeof i3.STWidgetHostDirective]>;
28
29
  static ɵinj: i0.ɵɵInjectorDeclaration<STModule>;
29
30
  }
package/st/st.types.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import { SafeHtml } from '@angular/platform-browser';
3
+ import type { CellOptions } from '@delon/abc/cell';
3
4
  import type { NgClassType } from 'ng-zorro-antd/core/types';
4
5
  import type { STColumn, STColumnButton, STColumnSafeType, STData, STIcon, STOnCellResult, STSortMap } from './st.interfaces';
5
6
  /**
@@ -71,7 +72,9 @@ export interface _STDataValue {
71
72
  _text: SafeHtml;
72
73
  org?: any;
73
74
  color?: string;
75
+ tooltip?: string;
74
76
  safeType: STColumnSafeType;
75
77
  buttons?: _STColumnButton[];
76
78
  props?: STOnCellResult | null;
79
+ cell?: CellOptions;
77
80
  }
@@ -229,4 +229,40 @@
229
229
  &__no-colon::after {
230
230
  content: ' ' !important;
231
231
  }
232
+
233
+ &__bordered {
234
+ overflow: hidden;
235
+ border-top: 1px solid @border-color-split;
236
+ border-bottom: 1px solid @border-color-split;
237
+ border-left: 1px solid @border-color-split;
238
+
239
+ @{sv-prefix}__item {
240
+ border-right: 1px solid @border-color-split;
241
+ border-bottom: 1px solid @border-color-split;
242
+ }
243
+
244
+ @{sv-prefix}__label {
245
+ background-color: @descriptions-bg;
246
+ border-right: 1px solid @border-color-split;
247
+ }
248
+
249
+ @{sv-prefix}__label,
250
+ @{sv-prefix}__detail {
251
+ padding: @descriptions-middle-padding;
252
+ }
253
+
254
+ &@{sv-prefix}__large {
255
+ @{sv-prefix}__label,
256
+ @{sv-prefix}__detail {
257
+ padding: @descriptions-default-padding;
258
+ }
259
+ }
260
+
261
+ &@{sv-prefix}__small {
262
+ @{sv-prefix}__label,
263
+ @{sv-prefix}__detail {
264
+ padding: @descriptions-small-padding;
265
+ }
266
+ }
267
+ }
232
268
  }
@@ -10,9 +10,10 @@ export declare class SVContainerComponent {
10
10
  static ngAcceptInputType_colInCon: NumberInput;
11
11
  static ngAcceptInputType_default: BooleanInput;
12
12
  static ngAcceptInputType_noColon: BooleanInput;
13
+ static ngAcceptInputType_bordered: BooleanInput;
13
14
  colInCon?: REP_TYPE;
14
15
  title?: string | TemplateRef<void>;
15
- size: 'small' | 'large';
16
+ size?: 'small' | 'large' | 'default';
16
17
  /** 列表项间距,单位为 `px` */
17
18
  gutter: number;
18
19
  layout: 'horizontal' | 'vertical';
@@ -21,9 +22,13 @@ export declare class SVContainerComponent {
21
22
  col: number;
22
23
  default: boolean;
23
24
  noColon: boolean;
25
+ bordered: boolean;
26
+ get margin(): {
27
+ [k: string]: number;
28
+ };
24
29
  constructor(configSrv: AlainConfigService);
25
30
  static ɵfac: i0.ɵɵFactoryDeclaration<SVContainerComponent, 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>;
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, ["*"], false, never>;
27
32
  }
28
33
  export declare class SVTitleComponent implements OnInit {
29
34
  private el;
@@ -4,6 +4,7 @@ import { BooleanInput, NumberInput } from '@delon/util/decorator';
4
4
  import { SVContainerComponent } from './sv-container.component';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class SVComponent implements AfterViewInit, OnChanges {
7
+ private el;
7
8
  parent: SVContainerComponent;
8
9
  private rep;
9
10
  private ren;
@@ -12,7 +13,6 @@ export declare class SVComponent implements AfterViewInit, OnChanges {
12
13
  static ngAcceptInputType_noColon: BooleanInput;
13
14
  static ngAcceptInputType_hideLabel: BooleanInput;
14
15
  private conEl;
15
- private el;
16
16
  private clsMap;
17
17
  _noColon: boolean;
18
18
  optional?: string | TemplateRef<void> | null;
@@ -25,9 +25,9 @@ export declare class SVComponent implements AfterViewInit, OnChanges {
25
25
  type?: 'primary' | 'success' | 'danger' | 'warning';
26
26
  noColon?: boolean | null;
27
27
  hideLabel: boolean;
28
- get paddingValue(): number;
28
+ get paddingValue(): number | null;
29
29
  get labelWidth(): number | null | undefined;
30
- constructor(el: ElementRef, parent: SVContainerComponent, rep: ResponsiveService, ren: Renderer2);
30
+ constructor(el: ElementRef<HTMLElement>, parent: SVContainerComponent, rep: ResponsiveService, ren: Renderer2);
31
31
  private setClass;
32
32
  ngAfterViewInit(): void;
33
33
  ngOnChanges(): void;
@@ -57,6 +57,7 @@
57
57
  @page-header-bg: #fff;
58
58
  @page-header-padding: 16px 32px 0 32px;
59
59
  @page-header-wide: 1200px;
60
+ @page-header-title-sub-color: fade(@heading-color, 40%);
60
61
 
61
62
  // quick-menu
62
63
  // --
@@ -103,3 +104,13 @@
103
104
  // --
104
105
  @tag-select-margin: 16px;
105
106
  @tag-select-item-margin-right: 24px;
107
+
108
+ // cell
109
+ // --
110
+ @cell-default-color: @text-color-secondary;
111
+ @cell-large: 18px;
112
+ @cell-small: 12px;
113
+ @cell-unit-color: @text-color-secondary;
114
+ @cell-unit-font-size: 12px;
115
+ @cell-img-space: 4px;
116
+ @cell-link-disabled-color: @text-color;