@delon/abc 19.1.0 → 20.0.0-beta.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 (246) hide show
  1. package/auto-focus/index.d.ts +19 -2
  2. package/cell/index.d.ts +316 -6
  3. package/cell/style/index.less +1 -1
  4. package/count-down/index.d.ts +26 -5
  5. package/date-picker/index.d.ts +51 -5
  6. package/down-file/index.d.ts +34 -5
  7. package/ellipsis/index.d.ts +55 -5
  8. package/error-collect/index.d.ts +35 -5
  9. package/exception/index.d.ts +45 -5
  10. package/fesm2022/auto-focus.mjs +7 -7
  11. package/fesm2022/cell.mjs +14 -15
  12. package/fesm2022/cell.mjs.map +1 -1
  13. package/fesm2022/chart-observer-size.mjs +11 -11
  14. package/fesm2022/count-down.mjs +8 -9
  15. package/fesm2022/count-down.mjs.map +1 -1
  16. package/fesm2022/date-picker.mjs +16 -15
  17. package/fesm2022/date-picker.mjs.map +1 -1
  18. package/fesm2022/down-file.mjs +8 -8
  19. package/fesm2022/ellipsis.mjs +9 -9
  20. package/fesm2022/ellipsis.mjs.map +1 -1
  21. package/fesm2022/error-collect.mjs +15 -15
  22. package/fesm2022/error-collect.mjs.map +1 -1
  23. package/fesm2022/exception.mjs +94 -78
  24. package/fesm2022/exception.mjs.map +1 -1
  25. package/fesm2022/footer-toolbar.mjs +44 -22
  26. package/fesm2022/footer-toolbar.mjs.map +1 -1
  27. package/fesm2022/full-content.mjs +25 -38
  28. package/fesm2022/full-content.mjs.map +1 -1
  29. package/fesm2022/global-footer.mjs +79 -60
  30. package/fesm2022/global-footer.mjs.map +1 -1
  31. package/fesm2022/hotkey.mjs +8 -8
  32. package/fesm2022/loading.mjs +12 -12
  33. package/fesm2022/loading.mjs.map +1 -1
  34. package/fesm2022/lodop.mjs +12 -11
  35. package/fesm2022/lodop.mjs.map +1 -1
  36. package/fesm2022/media.mjs +12 -13
  37. package/fesm2022/media.mjs.map +1 -1
  38. package/fesm2022/notice-icon.mjs +19 -29
  39. package/fesm2022/notice-icon.mjs.map +1 -1
  40. package/fesm2022/onboarding.mjs +14 -14
  41. package/fesm2022/onboarding.mjs.map +1 -1
  42. package/fesm2022/page-header.mjs +22 -27
  43. package/fesm2022/page-header.mjs.map +1 -1
  44. package/fesm2022/pdf.mjs +13 -13
  45. package/fesm2022/pdf.mjs.map +1 -1
  46. package/fesm2022/quick-menu.mjs +9 -9
  47. package/fesm2022/quick-menu.mjs.map +1 -1
  48. package/fesm2022/reuse-tab.mjs +32 -38
  49. package/fesm2022/reuse-tab.mjs.map +1 -1
  50. package/fesm2022/se.mjs +20 -21
  51. package/fesm2022/se.mjs.map +1 -1
  52. package/fesm2022/sg.mjs +17 -18
  53. package/fesm2022/sg.mjs.map +1 -1
  54. package/fesm2022/st.mjs +84 -87
  55. package/fesm2022/st.mjs.map +1 -1
  56. package/fesm2022/sv.mjs +23 -25
  57. package/fesm2022/sv.mjs.map +1 -1
  58. package/fesm2022/tag-select.mjs +13 -29
  59. package/fesm2022/tag-select.mjs.map +1 -1
  60. package/fesm2022/xlsx.mjs +16 -15
  61. package/fesm2022/xlsx.mjs.map +1 -1
  62. package/fesm2022/zip.mjs +8 -7
  63. package/fesm2022/zip.mjs.map +1 -1
  64. package/footer-toolbar/index.d.ts +23 -5
  65. package/footer-toolbar/style/index.less +1 -1
  66. package/full-content/index.d.ts +55 -5
  67. package/global-footer/index.d.ts +44 -5
  68. package/hotkey/index.d.ts +25 -5
  69. package/index.d.ts +2 -5
  70. package/index.less +0 -2
  71. package/loading/index.d.ts +93 -5
  72. package/lodop/index.d.ts +277 -5
  73. package/media/index.d.ts +61 -5
  74. package/notice-icon/index.d.ts +90 -5
  75. package/notice-icon/style/index.less +2 -2
  76. package/observers/index.d.ts +34 -5
  77. package/onboarding/index.d.ts +212 -5
  78. package/package.json +5 -13
  79. package/page-header/index.d.ts +83 -5
  80. package/page-header/style/index.less +1 -1
  81. package/pdf/index.d.ts +142 -5
  82. package/quick-menu/index.d.ts +38 -5
  83. package/quick-menu/style/index.less +2 -2
  84. package/reuse-tab/index.d.ts +512 -3
  85. package/se/index.d.ts +129 -5
  86. package/sg/index.d.ts +44 -5
  87. package/st/index.d.ts +1708 -3
  88. package/st/style/index.less +1 -1
  89. package/sv/index.d.ts +96 -5
  90. package/sv/style/index.less +1 -1
  91. package/tag-select/index.d.ts +27 -5
  92. package/theme-dark.less +0 -4
  93. package/theme-default.less +0 -8
  94. package/xlsx/index.d.ts +71 -5
  95. package/zip/index.d.ts +65 -5
  96. package/auto-focus/auto-focus.directive.d.ts +0 -10
  97. package/auto-focus/auto-focus.module.d.ts +0 -7
  98. package/avatar-list/avatar-list-item.component.d.ts +0 -9
  99. package/avatar-list/avatar-list.component.d.ts +0 -29
  100. package/avatar-list/avatar-list.module.d.ts +0 -14
  101. package/avatar-list/index.d.ts +0 -5
  102. package/avatar-list/public_api.d.ts +0 -3
  103. package/avatar-list/style/index.less +0 -53
  104. package/avatar-list/style/rtl.less +0 -3
  105. package/cell/cell-host.directive.d.ts +0 -10
  106. package/cell/cell.component.d.ts +0 -30
  107. package/cell/cell.module.d.ts +0 -17
  108. package/cell/cell.service.d.ts +0 -19
  109. package/cell/cell.types.d.ts +0 -234
  110. package/cell/provide.d.ts +0 -10
  111. package/count-down/count-down.component.d.ts +0 -15
  112. package/count-down/count-down.module.d.ts +0 -9
  113. package/count-down/public_api.d.ts +0 -2
  114. package/date-picker/date-picker.module.d.ts +0 -11
  115. package/date-picker/public_api.d.ts +0 -3
  116. package/date-picker/range-shortcut.component.d.ts +0 -10
  117. package/date-picker/range.directive.d.ts +0 -30
  118. package/down-file/down-file.directive.d.ts +0 -23
  119. package/down-file/down-file.module.d.ts +0 -9
  120. package/down-file/public_api.d.ts +0 -2
  121. package/ellipsis/ellipsis.component.d.ts +0 -43
  122. package/ellipsis/ellipsis.module.d.ts +0 -10
  123. package/ellipsis/public_api.d.ts +0 -2
  124. package/error-collect/error-collect.component.d.ts +0 -23
  125. package/error-collect/error-collect.module.d.ts +0 -9
  126. package/error-collect/public_api.d.ts +0 -2
  127. package/exception/exception.component.d.ts +0 -36
  128. package/exception/exception.module.d.ts +0 -12
  129. package/exception/public_api.d.ts +0 -2
  130. package/fesm2022/avatar-list.mjs +0 -132
  131. package/fesm2022/avatar-list.mjs.map +0 -1
  132. package/fesm2022/result.mjs +0 -84
  133. package/fesm2022/result.mjs.map +0 -1
  134. package/footer-toolbar/footer-toolbar.component.d.ts +0 -14
  135. package/footer-toolbar/footer-toolbar.module.d.ts +0 -10
  136. package/footer-toolbar/public_api.d.ts +0 -2
  137. package/full-content/full-content-toggle.directive.d.ts +0 -7
  138. package/full-content/full-content.component.d.ts +0 -32
  139. package/full-content/full-content.module.d.ts +0 -9
  140. package/full-content/full-content.service.d.ts +0 -10
  141. package/full-content/public_api.d.ts +0 -4
  142. package/global-footer/global-footer-item.component.d.ts +0 -10
  143. package/global-footer/global-footer.component.d.ts +0 -22
  144. package/global-footer/global-footer.module.d.ts +0 -10
  145. package/global-footer/global-footer.types.d.ts +0 -7
  146. package/global-footer/public_api.d.ts +0 -4
  147. package/hotkey/hotkey.directive.d.ts +0 -16
  148. package/hotkey/hotkey.module.d.ts +0 -7
  149. package/hotkey/public_api.d.ts +0 -2
  150. package/loading/loading.component.d.ts +0 -11
  151. package/loading/loading.module.d.ts +0 -12
  152. package/loading/loading.service.d.ts +0 -34
  153. package/loading/loading.types.d.ts +0 -35
  154. package/loading/public_api.d.ts +0 -4
  155. package/lodop/lodop.module.d.ts +0 -6
  156. package/lodop/lodop.service.d.ts +0 -74
  157. package/lodop/lodop.types.d.ts +0 -193
  158. package/lodop/public_api.d.ts +0 -3
  159. package/media/media.component.d.ts +0 -33
  160. package/media/media.module.d.ts +0 -8
  161. package/media/media.service.d.ts +0 -17
  162. package/media/public_api.d.ts +0 -3
  163. package/notice-icon/notice-icon-tab.component.d.ts +0 -13
  164. package/notice-icon/notice-icon.component.d.ts +0 -25
  165. package/notice-icon/notice-icon.module.d.ts +0 -18
  166. package/notice-icon/notice-icon.types.d.ts +0 -36
  167. package/notice-icon/public_api.d.ts +0 -4
  168. package/observers/observer-size.d.ts +0 -31
  169. package/observers/public-api.d.ts +0 -1
  170. package/onboarding/onboarding.component.d.ts +0 -35
  171. package/onboarding/onboarding.module.d.ts +0 -13
  172. package/onboarding/onboarding.service.d.ts +0 -58
  173. package/onboarding/onboarding.storage.d.ts +0 -11
  174. package/onboarding/onboarding.types.d.ts +0 -95
  175. package/onboarding/public_api.d.ts +0 -5
  176. package/page-header/page-header.component.d.ts +0 -70
  177. package/page-header/page-header.module.d.ts +0 -14
  178. package/page-header/public_api.d.ts +0 -2
  179. package/pdf/pdf.component.d.ts +0 -101
  180. package/pdf/pdf.config.d.ts +0 -2
  181. package/pdf/pdf.module.d.ts +0 -9
  182. package/pdf/pdf.types.d.ts +0 -29
  183. package/pdf/public_api.d.ts +0 -4
  184. package/public_api.d.ts +0 -2
  185. package/quick-menu/public_api.d.ts +0 -2
  186. package/quick-menu/quick-menu.component.d.ts +0 -26
  187. package/quick-menu/quick-menu.module.d.ts +0 -10
  188. package/result/index.d.ts +0 -5
  189. package/result/public_api.d.ts +0 -2
  190. package/result/result.component.d.ts +0 -21
  191. package/result/result.module.d.ts +0 -13
  192. package/result/style/index.less +0 -66
  193. package/result/style/rtl.less +0 -3
  194. package/reuse-tab/lifecycle_hooks.d.ts +0 -16
  195. package/reuse-tab/provide.d.ts +0 -28
  196. package/reuse-tab/public_api.d.ts +0 -14
  197. package/reuse-tab/reuse-tab-context-menu.component.d.ts +0 -21
  198. package/reuse-tab/reuse-tab-context.component.d.ts +0 -11
  199. package/reuse-tab/reuse-tab-context.directive.d.ts +0 -10
  200. package/reuse-tab/reuse-tab-context.service.d.ts +0 -14
  201. package/reuse-tab/reuse-tab.cache.d.ts +0 -16
  202. package/reuse-tab/reuse-tab.component.d.ts +0 -79
  203. package/reuse-tab/reuse-tab.interfaces.d.ts +0 -110
  204. package/reuse-tab/reuse-tab.module.d.ts +0 -17
  205. package/reuse-tab/reuse-tab.service.d.ts +0 -192
  206. package/reuse-tab/reuse-tab.state.d.ts +0 -14
  207. package/reuse-tab/reuse-tab.strategy.d.ts +0 -10
  208. package/se/public_api.d.ts +0 -4
  209. package/se/se-container.component.d.ts +0 -49
  210. package/se/se.component.d.ts +0 -60
  211. package/se/se.module.d.ts +0 -12
  212. package/se/se.types.d.ts +0 -9
  213. package/sg/public_api.d.ts +0 -3
  214. package/sg/sg-container.component.d.ts +0 -15
  215. package/sg/sg.component.d.ts +0 -19
  216. package/sg/sg.module.d.ts +0 -9
  217. package/st/provide.d.ts +0 -10
  218. package/st/public_api.d.ts +0 -12
  219. package/st/st-column-source.d.ts +0 -47
  220. package/st/st-data-source.d.ts +0 -77
  221. package/st/st-export.d.ts +0 -11
  222. package/st/st-filter.component.d.ts +0 -23
  223. package/st/st-row.directive.d.ts +0 -20
  224. package/st/st-widget-host.directive.d.ts +0 -12
  225. package/st/st-widget.d.ts +0 -11
  226. package/st/st.component.d.ts +0 -295
  227. package/st/st.config.d.ts +0 -2
  228. package/st/st.interfaces.d.ts +0 -1193
  229. package/st/st.module.d.ts +0 -9
  230. package/st/st.types.d.ts +0 -77
  231. package/sv/public_api.d.ts +0 -4
  232. package/sv/sv-container.component.d.ts +0 -39
  233. package/sv/sv-value.component.d.ts +0 -10
  234. package/sv/sv.component.d.ts +0 -34
  235. package/sv/sv.module.d.ts +0 -14
  236. package/tag-select/public_api.d.ts +0 -2
  237. package/tag-select/tag-select.component.d.ts +0 -21
  238. package/tag-select/tag-select.module.d.ts +0 -10
  239. package/xlsx/public_api.d.ts +0 -4
  240. package/xlsx/xlsx.directive.d.ts +0 -9
  241. package/xlsx/xlsx.module.d.ts +0 -7
  242. package/xlsx/xlsx.service.d.ts +0 -27
  243. package/xlsx/xlsx.types.d.ts +0 -27
  244. package/zip/public_api.d.ts +0 -2
  245. package/zip/zip.service.d.ts +0 -34
  246. package/zip/zip.types.d.ts +0 -28
@@ -1,79 +0,0 @@
1
- import { Direction } from '@angular/cdk/bidi';
2
- import { EventEmitter, OnChanges, OnInit, SimpleChange, SimpleChanges, TemplateRef } from '@angular/core';
3
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
4
- import { ReuseCanClose, ReuseContextCloseEvent, ReuseContextI18n, ReuseCustomContextMenu, ReuseItem, ReuseTabMatchMode, ReuseTabRouteParamMatchMode } from './reuse-tab.interfaces';
5
- import * as i0 from "@angular/core";
6
- export declare class ReuseTabComponent implements OnInit, OnChanges {
7
- private readonly srv;
8
- private readonly cdr;
9
- private readonly router;
10
- private readonly route;
11
- private readonly i18nSrv;
12
- private readonly doc;
13
- private readonly platform;
14
- private readonly directionality;
15
- private readonly stateKey;
16
- private readonly stateSrv;
17
- private tabset;
18
- private destroy$;
19
- private _keepingScrollContainer?;
20
- list: ReuseItem[];
21
- item?: ReuseItem;
22
- pos: number;
23
- dir?: Direction;
24
- mode: ReuseTabMatchMode;
25
- i18n?: ReuseContextI18n;
26
- debug: boolean;
27
- max?: number;
28
- tabMaxWidth?: number;
29
- excludes?: RegExp[];
30
- allowClose: boolean;
31
- keepingScroll: boolean;
32
- storageState: boolean;
33
- set keepingScrollContainer(value: string | Element);
34
- customContextMenu: ReuseCustomContextMenu[];
35
- tabBarExtraContent?: TemplateRef<void>;
36
- tabBarGutter?: number;
37
- tabBarStyle: Record<string, string> | null;
38
- tabType: 'line' | 'card';
39
- routeParamMatchMode: ReuseTabRouteParamMatchMode;
40
- disabled: boolean;
41
- titleRender?: TemplateRef<{
42
- $implicit: ReuseItem;
43
- }>;
44
- canClose?: ReuseCanClose;
45
- readonly change: EventEmitter<ReuseItem>;
46
- readonly close: EventEmitter<ReuseItem | null>;
47
- private genTit;
48
- private get curUrl();
49
- private genCurItem;
50
- private genList;
51
- private updateTitle;
52
- private refresh;
53
- private saveState;
54
- contextMenuChange(res: ReuseContextCloseEvent): void;
55
- _to(index: number, cb?: () => void): void;
56
- _close(e: Event | null, idx: number, includeNonCloseable: boolean): boolean;
57
- /**
58
- * 设置激活路由的实例,在 `src/app/layout/basic/basic.component.ts` 修改:
59
- *
60
- * @example
61
- * <reuse-tab #reuseTab></reuse-tab>
62
- * <router-outlet (activate)="reuseTab.activate($event)" (attach)="reuseTab.activate($event)"></router-outlet>
63
- */
64
- activate(instance: NzSafeAny): void;
65
- private updatePos;
66
- ngOnInit(): void;
67
- ngOnChanges(changes: {
68
- [P in keyof this]?: SimpleChange;
69
- } & SimpleChanges): void;
70
- static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabComponent, never>;
71
- static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabComponent, "reuse-tab, [reuse-tab]", ["reuseTab"], { "mode": { "alias": "mode"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "max": { "alias": "max"; "required": false; }; "tabMaxWidth": { "alias": "tabMaxWidth"; "required": false; }; "excludes": { "alias": "excludes"; "required": false; }; "allowClose": { "alias": "allowClose"; "required": false; }; "keepingScroll": { "alias": "keepingScroll"; "required": false; }; "storageState": { "alias": "storageState"; "required": false; }; "keepingScrollContainer": { "alias": "keepingScrollContainer"; "required": false; }; "customContextMenu": { "alias": "customContextMenu"; "required": false; }; "tabBarExtraContent": { "alias": "tabBarExtraContent"; "required": false; }; "tabBarGutter": { "alias": "tabBarGutter"; "required": false; }; "tabBarStyle": { "alias": "tabBarStyle"; "required": false; }; "tabType": { "alias": "tabType"; "required": false; }; "routeParamMatchMode": { "alias": "routeParamMatchMode"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "titleRender": { "alias": "titleRender"; "required": false; }; "canClose": { "alias": "canClose"; "required": false; }; }, { "change": "change"; "close": "close"; }, never, never, true, never>;
72
- static ngAcceptInputType_debug: unknown;
73
- static ngAcceptInputType_max: unknown;
74
- static ngAcceptInputType_tabMaxWidth: unknown;
75
- static ngAcceptInputType_allowClose: unknown;
76
- static ngAcceptInputType_keepingScroll: unknown;
77
- static ngAcceptInputType_storageState: unknown;
78
- static ngAcceptInputType_disabled: unknown;
79
- }
@@ -1,110 +0,0 @@
1
- import { ActivatedRouteSnapshot } from '@angular/router';
2
- import { Observable } from 'rxjs';
3
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
4
- import { ReuseTabContextComponent } from './reuse-tab-context.component';
5
- /**
6
- * 复用匹配模式
7
- */
8
- export declare enum ReuseTabMatchMode {
9
- /**
10
- * (推荐)按菜单 `Menu` 配置
11
- *
12
- * 可复用:
13
- * - `{ text:'Dashboard' }`
14
- * - `{ text:'Dashboard', reuse: true }`
15
- *
16
- * 不可复用:
17
- * - `{ text:'Dashboard', reuse: false }`
18
- */
19
- Menu = 0,
20
- /**
21
- * 按菜单 `Menu` 强制配置
22
- *
23
- * 可复用:
24
- * - `{ text:'Dashboard', reuse: true }`
25
- *
26
- * 不可复用:
27
- * - `{ text:'Dashboard' }`
28
- * - `{ text:'Dashboard', reuse: false }`
29
- */
30
- MenuForce = 1,
31
- /**
32
- * 对所有路由有效,可以配合 `excludes` 过滤无须复用路由
33
- */
34
- URL = 2
35
- }
36
- export type ReuseTabRouteParamMatchMode = 'strict' | 'loose';
37
- export interface ReuseTitle {
38
- text?: string;
39
- i18n?: string;
40
- }
41
- export interface ReuseTabCached {
42
- title: ReuseTitle;
43
- url: string;
44
- /** 是否允许关闭,默认:`true` */
45
- closable?: boolean;
46
- /** 当前滚动条位置 */
47
- position?: [number, number] | null;
48
- _snapshot?: ActivatedRouteSnapshot;
49
- _handle?: ReuseComponentHandle;
50
- }
51
- export interface ReuseTabNotify {
52
- /** 事件类型 */
53
- active: 'add' | 'override' | 'title' | 'clear' | 'closable' | 'close' | 'closeRight' | 'move' | 'refresh' | 'loadState';
54
- url?: string;
55
- title?: ReuseTitle;
56
- item?: ReuseTabCached;
57
- list?: ReuseTabCached[];
58
- [key: string]: NzSafeAny;
59
- }
60
- export interface ReuseItem {
61
- url: string;
62
- title: string;
63
- closable: boolean;
64
- index: number;
65
- active: boolean;
66
- last: boolean;
67
- /** 当前滚动条位置 */
68
- position?: [number, number] | null;
69
- }
70
- export interface ReuseContextEvent {
71
- event: MouseEvent;
72
- item: ReuseItem;
73
- comp?: ReuseTabContextComponent;
74
- customContextMenu?: ReuseCustomContextMenu[];
75
- }
76
- export type CloseType = 'close' | 'closeOther' | 'closeRight' | 'custom' | 'refresh' | null;
77
- export interface ReuseContextCloseEvent {
78
- type: CloseType;
79
- item: ReuseItem;
80
- includeNonCloseable: boolean;
81
- }
82
- export interface ReuseContextI18n {
83
- close?: string;
84
- closeOther?: string;
85
- closeRight?: string;
86
- refresh?: string;
87
- }
88
- export interface ReuseCustomContextMenu {
89
- id: string;
90
- title: string;
91
- fn: (item: ReuseItem, menu: ReuseCustomContextMenu) => void;
92
- disabled?: (item: ReuseItem) => boolean;
93
- }
94
- export interface ReuseComponentHandle {
95
- componentRef: ReuseComponentRef;
96
- }
97
- export interface ReuseComponentRef {
98
- instance: ReuseComponentInstance;
99
- }
100
- export type ReuseHookTypes = '_onReuseInit' | '_onReuseDestroy';
101
- export type ReuseHookOnReuseInitType = 'init' | 'refresh';
102
- export interface ReuseComponentInstance {
103
- _onReuseInit: (type: ReuseHookOnReuseInitType) => void;
104
- _onReuseDestroy: () => void;
105
- destroy: () => void;
106
- }
107
- export type ReuseCanClose = (options: {
108
- item: ReuseItem;
109
- includeNonCloseable: boolean;
110
- }) => Observable<boolean>;
@@ -1,17 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- import * as i2 from "@angular/router";
4
- import * as i3 from "@delon/theme";
5
- import * as i4 from "ng-zorro-antd/menu";
6
- import * as i5 from "ng-zorro-antd/tabs";
7
- import * as i6 from "ng-zorro-antd/icon";
8
- import * as i7 from "@angular/cdk/overlay";
9
- import * as i8 from "./reuse-tab.component";
10
- import * as i9 from "./reuse-tab-context-menu.component";
11
- import * as i10 from "./reuse-tab-context.component";
12
- import * as i11 from "./reuse-tab-context.directive";
13
- export declare class ReuseTabModule {
14
- static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<ReuseTabModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.DelonLocaleModule, typeof i4.NzMenuModule, typeof i5.NzTabsModule, typeof i6.NzIconModule, typeof i7.OverlayModule, typeof i8.ReuseTabComponent, typeof i9.ReuseTabContextMenuComponent, typeof i10.ReuseTabContextComponent, typeof i11.ReuseTabContextDirective], [typeof i8.ReuseTabComponent]>;
16
- static ɵinj: i0.ɵɵInjectorDeclaration<ReuseTabModule>;
17
- }
@@ -1,192 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { ActivatedRouteSnapshot } from '@angular/router';
3
- import { Observable } from 'rxjs';
4
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
5
- import { ReuseComponentRef, ReuseHookOnReuseInitType, ReuseHookTypes, ReuseTabCached, ReuseTabMatchMode, ReuseTabNotify, ReuseTabRouteParamMatchMode, ReuseTitle } from './reuse-tab.interfaces';
6
- import * as i0 from "@angular/core";
7
- export declare class ReuseTabService implements OnDestroy {
8
- private readonly injector;
9
- private readonly menuService;
10
- private readonly cached;
11
- private readonly stateKey;
12
- private readonly stateSrv;
13
- private _inited;
14
- private _max;
15
- private _keepingScroll;
16
- private _cachedChange;
17
- private _router$?;
18
- private removeUrlBuffer;
19
- private positionBuffer;
20
- componentRef?: ReuseComponentRef;
21
- debug: boolean;
22
- routeParamMatchMode: ReuseTabRouteParamMatchMode;
23
- mode: ReuseTabMatchMode;
24
- /** 排除规则,限 `mode=URL` */
25
- excludes: RegExp[];
26
- storageState: boolean;
27
- private get snapshot();
28
- /**
29
- * Get init status
30
- *
31
- * 是否已经初始化完成
32
- */
33
- get inited(): boolean;
34
- /**
35
- * Current routing address
36
- *
37
- * 当前路由地址
38
- */
39
- get curUrl(): string;
40
- /**
41
- * 允许最多复用多少个页面,取值范围 `2-100`,值发生变更时会强制关闭且忽略可关闭条件
42
- */
43
- set max(value: number);
44
- set keepingScroll(value: boolean);
45
- get keepingScroll(): boolean;
46
- keepingScrollContainer?: Element | null;
47
- /** 获取已缓存的路由 */
48
- get items(): ReuseTabCached[];
49
- /** 获取当前缓存的路由总数 */
50
- get count(): number;
51
- /** 订阅缓存变更通知 */
52
- get change(): Observable<ReuseTabNotify | null>;
53
- /** 自定义当前标题 */
54
- set title(value: string | ReuseTitle);
55
- /** 获取指定路径缓存所在位置,`-1` 表示无缓存 */
56
- index(url: string): number;
57
- /** 获取指定路径缓存是否存在 */
58
- exists(url: string): boolean;
59
- /** 获取指定路径缓存 */
60
- get(url?: string): ReuseTabCached | null;
61
- private remove;
62
- /**
63
- * 根据URL移除标签
64
- *
65
- * @param [includeNonCloseable=false] 是否强制包含不可关闭
66
- */
67
- close(url: string, includeNonCloseable?: boolean): boolean;
68
- /**
69
- * 清除右边
70
- *
71
- * @param [includeNonCloseable=false] 是否强制包含不可关闭
72
- */
73
- closeRight(url: string, includeNonCloseable?: boolean): boolean;
74
- /**
75
- * 清除所有缓存
76
- *
77
- * @param [includeNonCloseable=false] 是否强制包含不可关闭
78
- */
79
- clear(includeNonCloseable?: boolean): void;
80
- /**
81
- * 移动缓存数据
82
- *
83
- * @param url 要移动的URL地址
84
- * @param position 新位置,下标从 `0` 开始
85
- *
86
- * @example
87
- * ```
88
- * // source
89
- * [ '/a/1', '/a/2', '/a/3', '/a/4', '/a/5' ]
90
- * move('/a/1', 2);
91
- * // output
92
- * [ '/a/2', '/a/3', '/a/1', '/a/4', '/a/5' ]
93
- * move('/a/1', -1);
94
- * // output
95
- * [ '/a/2', '/a/3', '/a/4', '/a/5', '/a/1' ]
96
- * ```
97
- */
98
- move(url: string, position: number): void;
99
- /**
100
- * 强制关闭当前路由(包含不可关闭状态),并重新导航至 `newUrl` 路由
101
- */
102
- replace(newUrl: string): void;
103
- /**
104
- * 获取标题,顺序如下:
105
- *
106
- * 1. 组件内使用 `ReuseTabService.title = 'new title'` 重新指定文本
107
- * 2. 路由配置中 data 属性中包含 titleI18n > title
108
- * 3. 菜单数据中 text 属性
109
- *
110
- * @param url 指定URL
111
- * @param route 指定路由快照
112
- */
113
- getTitle(url: string, route?: ActivatedRouteSnapshot): ReuseTitle;
114
- /**
115
- * 清除标题缓存
116
- */
117
- clearTitleCached(): void;
118
- /** 自定义当前 `closable` 状态 */
119
- set closable(value: boolean);
120
- /**
121
- * 获取 `closable` 状态,顺序如下:
122
- *
123
- * 1. 组件内使用 `ReuseTabService.closable = true` 重新指定 `closable` 状态
124
- * 2. 路由配置中 data 属性中包含 `reuseClosable`
125
- * 3. 菜单数据中 `reuseClosable` 属性
126
- *
127
- * @param url 指定URL
128
- * @param route 指定路由快照
129
- */
130
- getClosable(url: string, route?: ActivatedRouteSnapshot): boolean;
131
- /**
132
- * 清空 `closable` 缓存
133
- */
134
- clearClosableCached(): void;
135
- getTruthRoute(route: ActivatedRouteSnapshot): ActivatedRouteSnapshot;
136
- /**
137
- * 根据快照获取URL地址
138
- */
139
- getUrl(route: ActivatedRouteSnapshot): string;
140
- /**
141
- * 检查快照是否允许被复用
142
- */
143
- can(route: ActivatedRouteSnapshot): boolean;
144
- isExclude(url: string): boolean;
145
- /**
146
- * 刷新,触发一个 refresh 类型事件
147
- */
148
- refresh(data?: NzSafeAny): void;
149
- private destroy;
150
- private di;
151
- constructor();
152
- init(): void;
153
- private loadState;
154
- private getMenu;
155
- runHook(method: ReuseHookTypes, comp: ReuseComponentRef | number | undefined, type?: ReuseHookOnReuseInitType): void;
156
- private hasInValidRoute;
157
- /**
158
- * 决定是否允许路由复用,若 `true` 会触发 `store`
159
- */
160
- shouldDetach(route: ActivatedRouteSnapshot): boolean;
161
- saveCache(snapshot: ActivatedRouteSnapshot, _handle?: NzSafeAny, pos?: number): void;
162
- /**
163
- * 存储
164
- */
165
- store(_snapshot: ActivatedRouteSnapshot, _handle: NzSafeAny): void;
166
- /**
167
- * 决定是否允许应用缓存数据
168
- */
169
- shouldAttach(route: ActivatedRouteSnapshot): boolean;
170
- /**
171
- * 提取复用数据
172
- */
173
- retrieve(route: ActivatedRouteSnapshot): NzSafeAny | null;
174
- /**
175
- * 决定是否应该进行复用路由处理
176
- */
177
- shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean;
178
- /**
179
- * 获取 `keepingScroll` 状态,顺序如下:
180
- *
181
- * 1. 路由配置中 data 属性中包含 `keepingScroll`
182
- * 2. 菜单数据中 `keepingScroll` 属性
183
- * 3. 组件 `keepingScroll` 值
184
- */
185
- getKeepingScroll(url: string, route?: ActivatedRouteSnapshot): boolean;
186
- private get isDisabledInRouter();
187
- private get ss();
188
- private initScroll;
189
- ngOnDestroy(): void;
190
- static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabService, never>;
191
- static ɵprov: i0.ɵɵInjectableDeclaration<ReuseTabService>;
192
- }
@@ -1,14 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import type { ReuseItem } from './reuse-tab.interfaces';
3
- export declare const REUSE_TAB_STORAGE_KEY: InjectionToken<string>;
4
- export declare const REUSE_TAB_STORAGE_STATE: InjectionToken<ReuseTabStorageState>;
5
- export interface ReuseTabStorageState {
6
- get(key: string): ReuseItem[];
7
- update(key: string, value: ReuseItem[]): boolean;
8
- remove(key: string): void;
9
- }
10
- export declare class ReuseTabLocalStorageState implements ReuseTabStorageState {
11
- get(key: string): ReuseItem[];
12
- update(key: string, value: ReuseItem[]): boolean;
13
- remove(key: string): void;
14
- }
@@ -1,10 +0,0 @@
1
- import { ActivatedRouteSnapshot, RouteReuseStrategy } from '@angular/router';
2
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
3
- export declare class ReuseTabStrategy implements RouteReuseStrategy {
4
- private readonly srv;
5
- shouldDetach(route: ActivatedRouteSnapshot): boolean;
6
- store(route: ActivatedRouteSnapshot, handle: unknown): void;
7
- shouldAttach(route: ActivatedRouteSnapshot): boolean;
8
- retrieve(route: ActivatedRouteSnapshot): NzSafeAny | null;
9
- shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean;
10
- }
@@ -1,4 +0,0 @@
1
- export * from './se-container.component';
2
- export * from './se.component';
3
- export * from './se.module';
4
- export * from './se.types';
@@ -1,49 +0,0 @@
1
- import { OnInit, TemplateRef } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import type { REP_TYPE } from '@delon/theme';
4
- import { AlainConfigService } from '@delon/util/config';
5
- import { SEErrorRefresh, SELayout } from './se.types';
6
- import * as i0 from "@angular/core";
7
- export declare class SETitleComponent implements OnInit {
8
- private readonly parentComp;
9
- private readonly el;
10
- private readonly ren;
11
- constructor();
12
- private setClass;
13
- ngOnInit(): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<SETitleComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<SETitleComponent, "se-title, [se-title]", ["seTitle"], {}, {}, never, ["*"], true, never>;
16
- }
17
- export declare class SEContainerComponent {
18
- private errorNotify$;
19
- colInCon?: REP_TYPE;
20
- col: REP_TYPE;
21
- labelWidth: number;
22
- noColon: boolean;
23
- title?: string | TemplateRef<void> | null;
24
- get gutter(): number;
25
- set gutter(value: number);
26
- private _gutter;
27
- get nzLayout(): SELayout;
28
- set nzLayout(value: SELayout);
29
- private _nzLayout;
30
- size: 'default' | 'compact';
31
- firstVisual: boolean;
32
- ingoreDirty: boolean;
33
- line: boolean;
34
- set errors(val: SEErrorRefresh[]);
35
- get margin(): number;
36
- get errorNotify(): Observable<SEErrorRefresh>;
37
- constructor(configSrv: AlainConfigService);
38
- setErrors(errors: SEErrorRefresh[]): void;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<SEContainerComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<SEContainerComponent, "se-container, [se-container]", ["seContainer"], { "colInCon": { "alias": "se-container"; "required": false; }; "col": { "alias": "col"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "noColon": { "alias": "noColon"; "required": false; }; "title": { "alias": "title"; "required": false; }; "gutter": { "alias": "gutter"; "required": false; }; "nzLayout": { "alias": "nzLayout"; "required": false; }; "size": { "alias": "size"; "required": false; }; "firstVisual": { "alias": "firstVisual"; "required": false; }; "ingoreDirty": { "alias": "ingoreDirty"; "required": false; }; "line": { "alias": "line"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; }, {}, never, ["*"], true, never>;
41
- static ngAcceptInputType_colInCon: unknown;
42
- static ngAcceptInputType_col: unknown;
43
- static ngAcceptInputType_labelWidth: unknown;
44
- static ngAcceptInputType_noColon: unknown;
45
- static ngAcceptInputType_gutter: unknown;
46
- static ngAcceptInputType_firstVisual: unknown;
47
- static ngAcceptInputType_ingoreDirty: unknown;
48
- static ngAcceptInputType_line: unknown;
49
- }
@@ -1,60 +0,0 @@
1
- import { AfterContentInit, AfterViewInit, OnChanges, TemplateRef } from '@angular/core';
2
- import { SEErrorType } from './se.types';
3
- import * as i0 from "@angular/core";
4
- export declare class SEComponent implements OnChanges, AfterContentInit, AfterViewInit {
5
- private readonly parentComp;
6
- private readonly el;
7
- private readonly rep;
8
- private readonly ren;
9
- private readonly cdr;
10
- private readonly statusSrv;
11
- private readonly destroy$;
12
- private readonly ngModel?;
13
- private readonly formControlName?;
14
- private readonly contentElement;
15
- private clsMap;
16
- private inited;
17
- private onceFlag;
18
- private errorData;
19
- private isBindModel;
20
- invalid: boolean;
21
- _labelWidth: number | null;
22
- _noColon: boolean | null;
23
- _error?: string | TemplateRef<void>;
24
- optional?: string | TemplateRef<void> | null;
25
- optionalHelp?: string | TemplateRef<void> | null;
26
- optionalHelpColor?: string;
27
- set error(val: SEErrorType);
28
- extra?: string | TemplateRef<void> | null;
29
- label?: string | TemplateRef<void> | null;
30
- col?: number | null;
31
- required: boolean;
32
- controlClass?: string | null;
33
- line?: boolean | null;
34
- labelWidth?: number | null;
35
- noColon?: boolean | null;
36
- hideLabel: boolean;
37
- set id(value: string);
38
- _id: string;
39
- _autoId: boolean;
40
- get paddingValue(): number;
41
- get showErr(): boolean;
42
- get compact(): boolean;
43
- private get ngControl();
44
- constructor();
45
- private setClass;
46
- private bindModel;
47
- private updateStatus;
48
- checkContent(): void;
49
- ngAfterContentInit(): void;
50
- ngOnChanges(): void;
51
- ngAfterViewInit(): void;
52
- static ɵfac: i0.ɵɵFactoryDeclaration<SEComponent, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<SEComponent, "se", ["se"], { "optional": { "alias": "optional"; "required": false; }; "optionalHelp": { "alias": "optionalHelp"; "required": false; }; "optionalHelpColor": { "alias": "optionalHelpColor"; "required": false; }; "error": { "alias": "error"; "required": false; }; "extra": { "alias": "extra"; "required": false; }; "label": { "alias": "label"; "required": false; }; "col": { "alias": "col"; "required": false; }; "required": { "alias": "required"; "required": false; }; "controlClass": { "alias": "controlClass"; "required": false; }; "line": { "alias": "line"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "noColon": { "alias": "noColon"; "required": false; }; "hideLabel": { "alias": "hideLabel"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, ["ngModel", "formControlName"], ["*"], true, never>;
54
- static ngAcceptInputType_col: unknown;
55
- static ngAcceptInputType_required: unknown;
56
- static ngAcceptInputType_line: unknown;
57
- static ngAcceptInputType_labelWidth: unknown;
58
- static ngAcceptInputType_noColon: unknown;
59
- static ngAcceptInputType_hideLabel: unknown;
60
- }
package/se/se.module.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- import * as i2 from "ng-zorro-antd/tooltip";
4
- import * as i3 from "ng-zorro-antd/icon";
5
- import * as i4 from "ng-zorro-antd/core/outlet";
6
- import * as i5 from "./se-container.component";
7
- import * as i6 from "./se.component";
8
- export declare class SEModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<SEModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<SEModule, never, [typeof i1.CommonModule, typeof i2.NzToolTipModule, typeof i3.NzIconModule, typeof i4.NzOutletModule, typeof i5.SEContainerComponent, typeof i6.SEComponent, typeof i5.SETitleComponent], [typeof i5.SEContainerComponent, typeof i6.SEComponent, typeof i5.SETitleComponent]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<SEModule>;
12
- }
package/se/se.types.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- export type SELayout = 'horizontal' | 'vertical' | 'inline';
3
- export type SESize = 'default' | 'compact';
4
- export type SEErrorType = string | TemplateRef<void> | SEError;
5
- export type SEError = Record<string, string | TemplateRef<void>>;
6
- export interface SEErrorRefresh {
7
- name: string;
8
- error: SEErrorType;
9
- }
@@ -1,3 +0,0 @@
1
- export * from './sg-container.component';
2
- export * from './sg.component';
3
- export * from './sg.module';
@@ -1,15 +0,0 @@
1
- import type { REP_TYPE } from '@delon/theme';
2
- import { AlainConfigService } from '@delon/util/config';
3
- import * as i0 from "@angular/core";
4
- export declare class SGContainerComponent {
5
- gutter: number;
6
- colInCon?: REP_TYPE;
7
- col: REP_TYPE;
8
- get marginValue(): number;
9
- constructor(configSrv: AlainConfigService);
10
- static ɵfac: i0.ɵɵFactoryDeclaration<SGContainerComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<SGContainerComponent, "sg-container, [sg-container]", ["sgContainer"], { "gutter": { "alias": "gutter"; "required": false; }; "colInCon": { "alias": "sg-container"; "required": false; }; "col": { "alias": "col"; "required": false; }; }, {}, never, ["*"], true, never>;
12
- static ngAcceptInputType_gutter: unknown;
13
- static ngAcceptInputType_colInCon: unknown;
14
- static ngAcceptInputType_col: unknown;
15
- }
@@ -1,19 +0,0 @@
1
- import { AfterViewInit, OnChanges } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class SGComponent implements OnChanges, AfterViewInit {
4
- private readonly el;
5
- private readonly ren;
6
- private readonly rep;
7
- private readonly parentComp;
8
- private clsMap;
9
- private inited;
10
- col: number | null;
11
- get paddingValue(): number;
12
- constructor();
13
- private setClass;
14
- ngOnChanges(): void;
15
- ngAfterViewInit(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<SGComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<SGComponent, "sg", ["sg"], { "col": { "alias": "col"; "required": false; }; }, {}, never, ["*"], true, never>;
18
- static ngAcceptInputType_col: unknown;
19
- }
package/sg/sg.module.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- import * as i2 from "./sg-container.component";
4
- import * as i3 from "./sg.component";
5
- export declare class SGModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SGModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<SGModule, never, [typeof i1.CommonModule, typeof i2.SGContainerComponent, typeof i3.SGComponent], [typeof i2.SGContainerComponent, typeof i3.SGComponent]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<SGModule>;
9
- }
package/st/provide.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { EnvironmentProviders } from '@angular/core';
2
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
3
- export interface STWidgetProvideConfig {
4
- KEY: string;
5
- type: NzSafeAny;
6
- }
7
- /**
8
- * Just only using Standalone widgets
9
- */
10
- export declare function provideSTWidgets(...widgets: STWidgetProvideConfig[]): EnvironmentProviders;
@@ -1,12 +0,0 @@
1
- export * from './st.interfaces';
2
- export * from './st.types';
3
- export * from './st-column-source';
4
- export * from './st-data-source';
5
- export * from './st-export';
6
- export * from './st-widget';
7
- export * from './st-widget-host.directive';
8
- export { STComponent } from './st.component';
9
- export { STRowDirective } from './st-row.directive';
10
- export * from './st.config';
11
- export { STModule } from './st.module';
12
- export * from './provide';