@delon/theme 19.2.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 (100) hide show
  1. package/compact.css +529 -181
  2. package/compact.min.css +1 -1
  3. package/dark.css +529 -181
  4. package/dark.min.css +1 -1
  5. package/default.css +529 -181
  6. package/default.min.css +1 -1
  7. package/fesm2022/layout-default.mjs +52 -66
  8. package/fesm2022/layout-default.mjs.map +1 -1
  9. package/fesm2022/setting-drawer.mjs +14 -22
  10. package/fesm2022/setting-drawer.mjs.map +1 -1
  11. package/fesm2022/theme-btn.mjs +10 -19
  12. package/fesm2022/theme-btn.mjs.map +1 -1
  13. package/fesm2022/theme.mjs +112 -94
  14. package/fesm2022/theme.mjs.map +1 -1
  15. package/index.d.ts +1689 -3
  16. package/layout-blank/index.d.ts +2 -5
  17. package/layout-default/index.d.ts +245 -5
  18. package/layout-default/style/fix/_sidebar-nav.less +18 -3
  19. package/layout-default/style/theme-dark.less +1 -0
  20. package/layout-default/style/theme-default.less +1 -0
  21. package/package.json +6 -6
  22. package/setting-drawer/index.d.ts +65 -5
  23. package/system/antd/_modal.less +1 -1
  24. package/system/ng/_preserve-white-spaces.less +8 -8
  25. package/theme-btn/index.d.ts +42 -5
  26. package/variable.css +529 -181
  27. package/variable.min.css +1 -1
  28. package/layout-blank/public_api.d.ts +0 -2
  29. package/layout-default/layout-header-item-trigger.directive.d.ts +0 -5
  30. package/layout-default/layout-header-item.component.d.ts +0 -10
  31. package/layout-default/layout-header.component.d.ts +0 -31
  32. package/layout-default/layout-nav.component.d.ts +0 -61
  33. package/layout-default/layout-top-menu-item.d.ts +0 -9
  34. package/layout-default/layout.component.d.ts +0 -39
  35. package/layout-default/layout.module.d.ts +0 -19
  36. package/layout-default/layout.service.d.ts +0 -29
  37. package/layout-default/public_api.d.ts +0 -9
  38. package/layout-default/types.d.ts +0 -60
  39. package/public_api.d.ts +0 -8
  40. package/setting-drawer/public_api.d.ts +0 -3
  41. package/setting-drawer/setting-drawer-item.component.d.ts +0 -11
  42. package/setting-drawer/setting-drawer.component.d.ts +0 -48
  43. package/setting-drawer/setting-drawer.module.d.ts +0 -8
  44. package/setting-drawer/setting-drawer.types.d.ts +0 -7
  45. package/src/config.d.ts +0 -63
  46. package/src/locale/index.d.ts +0 -1
  47. package/src/locale/languages/ar-SA.d.ts +0 -3
  48. package/src/locale/languages/el-GR.d.ts +0 -3
  49. package/src/locale/languages/en-US.d.ts +0 -3
  50. package/src/locale/languages/es-ES.d.ts +0 -3
  51. package/src/locale/languages/fr-FR.d.ts +0 -3
  52. package/src/locale/languages/hr-HR.d.ts +0 -3
  53. package/src/locale/languages/it-IT.d.ts +0 -3
  54. package/src/locale/languages/ja-JP.d.ts +0 -3
  55. package/src/locale/languages/ko-KR.d.ts +0 -3
  56. package/src/locale/languages/pl-PL.d.ts +0 -3
  57. package/src/locale/languages/sl-SI.d.ts +0 -3
  58. package/src/locale/languages/tr-TR.d.ts +0 -3
  59. package/src/locale/languages/vi-VI.d.ts +0 -3
  60. package/src/locale/languages/zh-CN.d.ts +0 -3
  61. package/src/locale/languages/zh-TW.d.ts +0 -3
  62. package/src/locale/locale.module.d.ts +0 -6
  63. package/src/locale/locale.service.d.ts +0 -17
  64. package/src/locale/locale.tokens.d.ts +0 -3
  65. package/src/locale/locale.types.d.ts +0 -93
  66. package/src/locale/public_api.d.ts +0 -19
  67. package/src/pipes/date/date.pipe.d.ts +0 -9
  68. package/src/pipes/index.d.ts +0 -5
  69. package/src/pipes/keys/keys.pipe.d.ts +0 -11
  70. package/src/pipes/safe/html.pipe.d.ts +0 -9
  71. package/src/pipes/safe/url.pipe.d.ts +0 -9
  72. package/src/pipes/yn/yn.pipe.d.ts +0 -16
  73. package/src/provide.d.ts +0 -23
  74. package/src/router/optional-preloader.d.ts +0 -20
  75. package/src/services/drawer/drawer.helper.d.ts +0 -71
  76. package/src/services/http/http.client.d.ts +0 -570
  77. package/src/services/http/http.decorator.d.ts +0 -108
  78. package/src/services/http/http.token.d.ts +0 -37
  79. package/src/services/http/index.d.ts +0 -3
  80. package/src/services/i18n/i18n-url.guard.d.ts +0 -36
  81. package/src/services/i18n/i18n.d.ts +0 -90
  82. package/src/services/i18n/i18n.pipe.d.ts +0 -8
  83. package/src/services/i18n/index.d.ts +0 -3
  84. package/src/services/index.d.ts +0 -10
  85. package/src/services/menu/index.d.ts +0 -2
  86. package/src/services/menu/interface.d.ts +0 -79
  87. package/src/services/menu/menu.service.d.ts +0 -114
  88. package/src/services/modal/modal.helper.d.ts +0 -78
  89. package/src/services/preloader/preloader.d.ts +0 -1
  90. package/src/services/responsive/responsive.d.ts +0 -12
  91. package/src/services/rtl/rtl.service.d.ts +0 -48
  92. package/src/services/settings/index.d.ts +0 -2
  93. package/src/services/settings/settings.service.d.ts +0 -40
  94. package/src/services/settings/types.d.ts +0 -35
  95. package/src/services/title/title.service.d.ts +0 -72
  96. package/src/theme.module.d.ts +0 -22
  97. package/src/version.d.ts +0 -2
  98. package/theme-btn/public_api.d.ts +0 -2
  99. package/theme-btn/theme-btn.component.d.ts +0 -32
  100. package/theme-btn/theme-btn.module.d.ts +0 -10
package/index.d.ts CHANGED
@@ -1,5 +1,1691 @@
1
+ import { SafeHtml, SafeUrl } from '@angular/platform-browser';
2
+ import { ACLCanType } from '@delon/acl';
3
+ import { NzSafeAny } from 'ng-zorro-antd/core/types';
4
+ import * as i0 from '@angular/core';
5
+ import { OnDestroy, InjectionToken, Provider, PipeTransform, TemplateRef, Type, Injector, Signal, ModuleWithProviders, EnvironmentProviders, Version } from '@angular/core';
6
+ import { Observable, BehaviorSubject } from 'rxjs';
7
+ import { Direction } from '@angular/cdk/bidi';
8
+ import { AlainConfigService, AlainConfig } from '@delon/util/config';
9
+ import * as i2 from '@angular/router';
10
+ import { ActivatedRouteSnapshot, CanActivateFn, CanActivateChildFn, PreloadingStrategy, Route } from '@angular/router';
11
+ import { ModalOptions } from 'ng-zorro-antd/modal';
12
+ import { NzDrawerOptions, NzDrawerRef } from 'ng-zorro-antd/drawer';
13
+ import { HttpHeaders, HttpParams, HttpContext, HttpEvent, HttpResponse, HttpContextToken, HttpInterceptorFn } from '@angular/common/http';
14
+ import { NzIconService } from 'ng-zorro-antd/icon';
15
+ import * as i1 from '@angular/common';
16
+ import * as i3 from '@angular/cdk/overlay';
17
+ import * as i4 from 'ng-zorro-antd/i18n';
18
+ import { IconDefinition } from '@ant-design/icons-angular';
19
+
20
+ declare function stepPreloader(): () => void;
21
+
22
+ interface MenuIcon {
23
+ /**
24
+ * Type for icon
25
+ *
26
+ * - `img`, `svg` Size uses `14px` width and height
27
+ */
28
+ type: 'class' | 'icon' | 'iconfont' | 'img' | 'svg';
29
+ /** Value for the icon, can be set Class Name, nz-icon of `nzType`, image */
30
+ value?: string | SafeHtml;
31
+ /** Type of the ant design icon, default: `outline` */
32
+ theme?: 'outline' | 'twotone' | 'fill';
33
+ /** Rotate icon with animation, default: `false` */
34
+ spin?: boolean;
35
+ /** Only support the two-tone icon. Specific the primary color */
36
+ twoToneColor?: string;
37
+ /** Type of the icon from iconfont */
38
+ iconfont?: string;
39
+ /** Rotate degrees */
40
+ rotate?: number;
41
+ }
42
+ interface Menu {
43
+ [key: string]: NzSafeAny;
44
+ /** Rendering type of menu item */
45
+ render_type?: 'item' | 'divider';
46
+ /** Text of menu item, can be choose one of `text` or `i18n` (Support HTML) */
47
+ text?: string;
48
+ /** I18n key of menu item, can be choose one of `text` or `i18n` (Support HTML) */
49
+ i18n?: string;
50
+ /** Whether to display the group name, default: `true` */
51
+ group?: boolean;
52
+ /** Routing for the menu item, can be choose one of `link` or `externalLink` */
53
+ link?: string;
54
+ /** External link for the menu item, can be choose one of `link` or `externalLink` */
55
+ externalLink?: string;
56
+ /** Specifies `externalLink` where to display the linked URL */
57
+ target?: '_blank' | '_self' | '_parent' | '_top';
58
+ /** Icon for the menu item, only valid for the first level menu */
59
+ icon?: string | MenuIcon | null;
60
+ /** Badget for the menu item when `group` is `true` */
61
+ badge?: number;
62
+ /** Whether to display a red dot instead of `badge` value */
63
+ badgeDot?: boolean;
64
+ /** Badge [color](https://ng.ant.design/components/badge/en#nz-badge) */
65
+ badgeStatus?: 'success' | 'processing' | 'default' | 'error' | 'warning';
66
+ /** Maximum count to show in badge, show `${badgeOverflowCount}+` when exceed */
67
+ badgeOverflowCount?: number;
68
+ /** Whether disable for the menu item */
69
+ disabled?: boolean;
70
+ /** Whether hidden for the menu item */
71
+ hide?: boolean;
72
+ /** Whether hide in breadcrumbs, which are valid when the `page-header` component automatically generates breadcrumbs */
73
+ hideInBreadcrumb?: boolean;
74
+ /** ACL configuration, it's equivalent to `ACLService.can(roleOrAbility: ACLCanType)` parameter value */
75
+ acl?: ACLCanType;
76
+ /** Whether shortcut menu item */
77
+ shortcut?: boolean;
78
+ /** Wheter shortcut menu root node */
79
+ shortcutRoot?: boolean;
80
+ /** Whether to allow reuse, need to cooperate with the `reuse-tab` component */
81
+ reuse?: boolean;
82
+ /**
83
+ * Whether to expand, when `checkStrictly` is valid in `sidebar-nav` component
84
+ */
85
+ open?: boolean;
86
+ /** Unique identifier of the menu item, can be used in `getItem`,` setItem` to update a menu */
87
+ key?: string;
88
+ /** Children menu of menu item */
89
+ children?: Menu[];
90
+ }
91
+ /** @inner Just only inner type */
92
+ interface MenuInner extends Menu {
93
+ _id?: number;
94
+ _parent?: Menu | null;
95
+ _depth?: number;
96
+ _hidden?: boolean;
97
+ _selected?: boolean;
98
+ _aclResult?: boolean;
99
+ }
100
+
1
101
  /**
2
- * Generated bundle index. Do not edit.
102
+ * 菜单服务,[在线文档](https://ng-alain.com/theme/menu)
3
103
  */
4
- /// <amd-module name="@delon/theme" />
5
- export * from './public_api';
104
+ declare class MenuService implements OnDestroy {
105
+ private readonly i18nSrv;
106
+ private readonly aclService;
107
+ private _change$;
108
+ private i18n$?;
109
+ private data;
110
+ /**
111
+ * 是否完全受控菜单打开状态,默认:`false`
112
+ */
113
+ openStrictly: boolean;
114
+ constructor();
115
+ get change(): Observable<Menu[]>;
116
+ get menus(): Menu[];
117
+ /**
118
+ * Returns a default menu link
119
+ *
120
+ * 返回一个默认跳转的菜单链接
121
+ */
122
+ getDefaultRedirect(opt?: {
123
+ redirectUrl?: string;
124
+ }): string | null | undefined;
125
+ visit<T extends Menu = Menu>(data: T[], callback: (item: T, parentMenum: T | null, depth?: number) => void): void;
126
+ visit(data: Menu[], callback: (item: Menu, parentMenum: Menu | null, depth?: number) => void): void;
127
+ add(items: Menu[]): void;
128
+ private fixItem;
129
+ /**
130
+ * 重置菜单,可能I18N、用户权限变动时需要调用刷新
131
+ */
132
+ resume<T extends Menu = Menu>(callback?: (item: T, parentMenum: T | null, depth?: number) => void): void;
133
+ resume(callback?: (item: Menu, parentMenum: Menu | null, depth?: number) => void): void;
134
+ /**
135
+ * 加载快捷菜单,加载位置规则如下:
136
+ * 1、统一在下标0的节点下(即【主导航】节点下方)
137
+ * 1、若 children 存在 【shortcutRoot: true】则最优先【推荐】这种方式
138
+ * 2、否则查找带有【dashboard】字样链接,若存在则在此菜单的下方创建快捷入口
139
+ * 3、否则放在0节点位置
140
+ */
141
+ private loadShortcut;
142
+ /**
143
+ * 清空菜单
144
+ */
145
+ clear(): void;
146
+ /**
147
+ * Use `url` or `key` to find menus
148
+ *
149
+ * 利用 `url` 或 `key` 查找菜单
150
+ */
151
+ find(options: {
152
+ key?: string | null;
153
+ url?: string | null;
154
+ recursive?: boolean | null;
155
+ /**
156
+ * When the callback returns a Boolean type, it means the custom validation result
157
+ *
158
+ * 当回调返回一个布尔类型时,表示自定义校验结果
159
+ */
160
+ cb?: ((i: Menu) => boolean | null) | null;
161
+ /**
162
+ * Use the current menu data by default
163
+ *
164
+ * 默认使用当前菜单数据
165
+ */
166
+ data?: Menu[] | null;
167
+ /**
168
+ * Whether to ignore hide items, default: `false`
169
+ *
170
+ * 是否忽略隐藏的项,默认:`false`
171
+ */
172
+ ignoreHide?: boolean;
173
+ /**
174
+ * Whether to return the last one, default: `false`
175
+ *
176
+ * 是否返回最后一个,默认:`false`
177
+ */
178
+ last?: boolean;
179
+ }): Menu | null;
180
+ /**
181
+ * 根据url获取菜单列表
182
+ * - 若 `recursive: true` 则会自动向上递归查找
183
+ * - 菜单数据源包含 `/ware`,则 `/ware/1` 也视为 `/ware` 项
184
+ */
185
+ getPathByUrl(url: string, recursive?: boolean): Menu[];
186
+ /**
187
+ * Get menu based on `key`
188
+ */
189
+ getItem(key: string): Menu | null;
190
+ /**
191
+ * Set menu based on `key`
192
+ */
193
+ setItem(key: string | Menu, value: Menu, options?: {
194
+ emit?: boolean;
195
+ }): void;
196
+ /**
197
+ * Open menu based on `key` or menu object
198
+ */
199
+ open(keyOrItem: string | Menu | null, options?: {
200
+ emit?: boolean;
201
+ }): void;
202
+ openAll(status?: boolean): void;
203
+ toggleOpen(keyOrItem: string | Menu | null, options?: {
204
+ allStatus?: boolean;
205
+ emit?: boolean;
206
+ }): void;
207
+ ngOnDestroy(): void;
208
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuService, never>;
209
+ static ɵprov: i0.ɵɵInjectableDeclaration<MenuService>;
210
+ }
211
+
212
+ interface App {
213
+ [key: string]: NzSafeAny;
214
+ /** Name for app */
215
+ name?: string;
216
+ /** Description for app */
217
+ description?: string;
218
+ }
219
+ interface User {
220
+ [key: string]: NzSafeAny;
221
+ /** Name for current user */
222
+ name?: string;
223
+ /** Avatar for current user */
224
+ avatar?: string;
225
+ /** Email for current user */
226
+ email?: string;
227
+ }
228
+ interface Layout {
229
+ [key: string]: NzSafeAny;
230
+ /** Whether to fold menu */
231
+ collapsed: boolean;
232
+ /** Current language */
233
+ lang: string;
234
+ /** Color weak */
235
+ colorWeak: boolean;
236
+ /** Direction of the text */
237
+ direction: Direction;
238
+ }
239
+ interface SettingsNotify {
240
+ type: 'layout' | 'app' | 'user';
241
+ /** Update `key` name, limited `layout` type */
242
+ name?: string;
243
+ value: NzSafeAny;
244
+ }
245
+
246
+ interface SettingsKeys {
247
+ /** Layout data specifies the stored key, default: `layout` */
248
+ layout: string;
249
+ /** User data specifies the stored key, default: `user` */
250
+ user: string;
251
+ /** App data specifies the stored key, default: `app` */
252
+ app: string;
253
+ }
254
+ declare const ALAIN_SETTING_KEYS: InjectionToken<SettingsKeys>;
255
+ declare const ALAIN_SETTING_DEFAULT: Provider;
256
+ declare class SettingsService<L extends Layout = Layout, U extends User = User, A extends App = App> {
257
+ private readonly KEYS;
258
+ private readonly platform;
259
+ private notify$;
260
+ private _app;
261
+ private _user;
262
+ private _layout;
263
+ getData(key: string): NzSafeAny;
264
+ setData(key: string, value: NzSafeAny): void;
265
+ get layout(): L;
266
+ get app(): A;
267
+ get user(): U;
268
+ get notify(): Observable<SettingsNotify>;
269
+ setLayout<T extends Layout = Layout>(name: T, value?: NzSafeAny): boolean;
270
+ setLayout(name: string | L, value?: NzSafeAny): boolean;
271
+ getLayout<T>(): T;
272
+ setApp<T extends App = App>(value: T): void;
273
+ setApp(value: A): void;
274
+ getApp<T>(): T;
275
+ setUser<T extends User = User>(value: T): void;
276
+ setUser(value: U): void;
277
+ getUser<T>(): T;
278
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingsService<any, any, any>, never>;
279
+ static ɵprov: i0.ɵɵInjectableDeclaration<SettingsService<any, any, any>>;
280
+ }
281
+
282
+ declare const REP_MAX = 6;
283
+ declare const SPAN_MAX = 24;
284
+ type REP_TYPE = 1 | 2 | 3 | 4 | 5 | 6;
285
+ declare class ResponsiveService {
286
+ private readonly cogSrv;
287
+ private cog;
288
+ constructor();
289
+ genCls(count: number, defaultCol?: number): string[];
290
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResponsiveService, never>;
291
+ static ɵprov: i0.ɵɵInjectableDeclaration<ResponsiveService>;
292
+ }
293
+
294
+ declare const HTML_DIR = "dir";
295
+ declare const RTL_DIRECTION = "direction";
296
+ declare const RTL_NZ_COMPONENTS: string[];
297
+ declare const RTL_DELON_COMPONENTS: string[];
298
+ declare const LTR = "ltr";
299
+ declare const RTL = "rtl";
300
+ declare class RTLService {
301
+ private readonly d;
302
+ private readonly nz;
303
+ private readonly delon;
304
+ private readonly platform;
305
+ private readonly doc;
306
+ private readonly srv;
307
+ private _dir;
308
+ /**
309
+ * Get or Set the current text direction
310
+ *
311
+ * 获取或设置当前文字方向
312
+ */
313
+ get dir(): Direction;
314
+ set dir(value: Direction);
315
+ /**
316
+ * Get the next text direction
317
+ *
318
+ * 获取下一次文字方向
319
+ */
320
+ get nextDir(): Direction;
321
+ /**
322
+ * Subscription change notification
323
+ *
324
+ * 订阅变更通知
325
+ */
326
+ get change(): Observable<Direction>;
327
+ constructor();
328
+ /**
329
+ * Toggle text direction
330
+ *
331
+ * 切换文字方向
332
+ */
333
+ toggle(): void;
334
+ private updateHtml;
335
+ private updateLibConfig;
336
+ static ɵfac: i0.ɵɵFactoryDeclaration<RTLService, never>;
337
+ static ɵprov: i0.ɵɵInjectableDeclaration<RTLService>;
338
+ }
339
+
340
+ interface RouteTitle {
341
+ title?: string | Observable<string>;
342
+ titleI18n?: string;
343
+ }
344
+ declare class TitleService implements OnDestroy {
345
+ private destroy$;
346
+ private _prefix;
347
+ private _suffix;
348
+ private _separator;
349
+ private _reverse;
350
+ private tit$?;
351
+ readonly DELAY_TIME = 25;
352
+ private readonly doc;
353
+ private readonly injector;
354
+ private readonly title;
355
+ private readonly menuSrv;
356
+ private readonly i18nSrv;
357
+ constructor();
358
+ /**
359
+ * Set separator
360
+ *
361
+ * 设置分隔符
362
+ */
363
+ set separator(value: string);
364
+ /**
365
+ * Set prefix
366
+ *
367
+ * 设置前缀
368
+ */
369
+ set prefix(value: string);
370
+ /**
371
+ * Set suffix
372
+ *
373
+ * 设置后缀
374
+ */
375
+ set suffix(value: string);
376
+ /**
377
+ * Set whether to reverse
378
+ *
379
+ * 设置是否反转
380
+ */
381
+ set reverse(value: boolean);
382
+ /**
383
+ * Set the default CSS selector string
384
+ *
385
+ * 设置默认CSS选择器字符串
386
+ */
387
+ selector?: string | null;
388
+ /**
389
+ * Set default title name
390
+ *
391
+ * 设置默认标题名
392
+ */
393
+ default: string;
394
+ private getByElement;
395
+ private getByRoute;
396
+ private getByMenu;
397
+ /**
398
+ * Set the document title
399
+ */
400
+ setTitle(title?: string | string[]): void;
401
+ /**
402
+ * Set i18n key of the document title
403
+ */
404
+ setTitleByI18n(key: string, params?: unknown): void;
405
+ ngOnDestroy(): void;
406
+ static ɵfac: i0.ɵɵFactoryDeclaration<TitleService, never>;
407
+ static ɵprov: i0.ɵɵInjectableDeclaration<TitleService>;
408
+ }
409
+
410
+ interface AlainI18NService {
411
+ [key: string]: NzSafeAny;
412
+ /**
413
+ * Call `use` to trigger change notification
414
+ *
415
+ * 调用 `use` 触发变更通知
416
+ */
417
+ readonly change: Observable<string>;
418
+ /**
419
+ * Get the default language
420
+ *
421
+ * 获取默认语言
422
+ */
423
+ readonly defaultLang: string;
424
+ /**
425
+ * Get current language
426
+ *
427
+ * 获取当前语言
428
+ */
429
+ readonly currentLang: string;
430
+ /**
431
+ * Change language
432
+ *
433
+ * 变更语言
434
+ *
435
+ * @param emit 是否触发 `change`,默认:true ; Should be removed, please use `change` event instead.
436
+ */
437
+ use(lang: string, data?: Record<string, unknown>): void;
438
+ /**
439
+ * Return to the current language list
440
+ *
441
+ * 返回当前语言列表
442
+ */
443
+ getLangs(): NzSafeAny[];
444
+ /**
445
+ * Translate 翻译
446
+ *
447
+ * @param params 模板所需要的参数对象
448
+ * @param isSafe 是否返回安全字符,自动调用 `bypassSecurityTrustHtml`; Should be removed, If you need SafeHtml support, please use `| html` pipe instead.
449
+ */
450
+ fanyi(path: string, params?: unknown | unknown[]): string;
451
+ }
452
+ declare const ALAIN_I18N_TOKEN: InjectionToken<AlainI18NService>;
453
+ declare abstract class AlainI18nBaseService implements AlainI18NService {
454
+ protected readonly cogSrv: AlainConfigService;
455
+ private cog;
456
+ protected _change$: BehaviorSubject<string | null>;
457
+ protected _currentLang: string;
458
+ protected _defaultLang: string;
459
+ protected _data: Record<string, string>;
460
+ get change(): Observable<string>;
461
+ get defaultLang(): string;
462
+ get currentLang(): string;
463
+ get data(): Record<string, string>;
464
+ constructor();
465
+ /**
466
+ * Flattened data source
467
+ *
468
+ * @example
469
+ * {
470
+ * "name": "Name",
471
+ * "sys": {
472
+ * "": "System",
473
+ * "title": "Title"
474
+ * }
475
+ * }
476
+ * =>
477
+ * {
478
+ * "name": "Name",
479
+ * "sys": "System",
480
+ * "sys.title": "Title"
481
+ * }
482
+ */
483
+ flatData(data: Record<string, unknown>, parentKey: string[]): Record<string, string>;
484
+ abstract use(lang: string, data?: Record<string, unknown>): void;
485
+ abstract getLangs(): NzSafeAny[];
486
+ fanyi(path: string, params?: unknown | unknown[]): string;
487
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlainI18nBaseService, never>;
488
+ static ɵprov: i0.ɵɵInjectableDeclaration<AlainI18nBaseService>;
489
+ }
490
+ declare class AlainI18NServiceFake extends AlainI18nBaseService {
491
+ use(lang: string, data: Record<string, unknown>): void;
492
+ getLangs(): NzSafeAny[];
493
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlainI18NServiceFake, never>;
494
+ static ɵprov: i0.ɵɵInjectableDeclaration<AlainI18NServiceFake>;
495
+ }
496
+
497
+ declare class I18nPipe implements PipeTransform {
498
+ private readonly i18n;
499
+ transform(key: string, params?: unknown | unknown[]): string;
500
+ static ɵfac: i0.ɵɵFactoryDeclaration<I18nPipe, never>;
501
+ static ɵpipe: i0.ɵɵPipeDeclaration<I18nPipe, "i18n", true>;
502
+ }
503
+
504
+ declare class AlainI18NGuardService {
505
+ private readonly i18nSrv;
506
+ private readonly cogSrv;
507
+ process(route: ActivatedRouteSnapshot): Observable<boolean>;
508
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlainI18NGuardService, never>;
509
+ static ɵprov: i0.ɵɵInjectableDeclaration<AlainI18NGuardService>;
510
+ }
511
+ /**
512
+ * Internationalization guard, automatically recognizes the language in Url and triggers the `ALAIN_I18N_TOKEN.use` method
513
+ *
514
+ * 国际化守卫,自动识别Url中的语言,并触发 `ALAIN_I18N_TOKEN.use` 方法
515
+ *
516
+ * ```ts
517
+ * data: {
518
+ * path: 'home',
519
+ * canActivate: [ alainI18nCanActivate ]
520
+ * }
521
+ * ```
522
+ */
523
+ declare const alainI18nCanActivate: CanActivateFn;
524
+ /**
525
+ * Internationalization guard, automatically recognizes the language in Url and triggers the `ALAIN_I18N_TOKEN.use` method
526
+ *
527
+ * 国际化守卫,自动识别Url中的语言,并触发 `ALAIN_I18N_TOKEN.use` 方法
528
+ *
529
+ * ```ts
530
+ * data: {
531
+ * path: 'home',
532
+ * canActivateChild: [ alainI18nCanActivateChild ]
533
+ * }
534
+ * ```
535
+ */
536
+ declare const alainI18nCanActivateChild: CanActivateChildFn;
537
+
538
+ interface ModalHelperOptions {
539
+ /** 大小;例如:lg、600、80%,默认:`lg` */
540
+ size?: 'sm' | 'md' | 'lg' | 'xl' | '' | number | string;
541
+ /** 对话框 [ModalOptions](https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/modal/modal-types.ts) 参数 */
542
+ modalOptions?: ModalOptions;
543
+ /** 是否精准(默认:`true`),若返回值非空值(`null`或`undefined`)视为成功,否则视为错误 */
544
+ exact?: boolean;
545
+ /** 是否包裹标签页,修复模态包含标签间距问题 */
546
+ includeTabs?: boolean;
547
+ /**
548
+ * 是否支持拖动,默认是通过标题来触发
549
+ */
550
+ drag?: ModalHelperDragOptions | boolean;
551
+ /**
552
+ * 是否强制使用 `nzData` 传递参数,若为 `false` 表示参数会直接映射到组件实例中,其他值只能通过 `NZ_MODAL_DATA` 的方式来获取参数,默认:`false`
553
+ */
554
+ useNzData?: boolean;
555
+ /**
556
+ * 设置焦点按钮
557
+ */
558
+ focus?: 'ok' | 'cancel';
559
+ }
560
+ interface ModalHelperDragOptions {
561
+ /**
562
+ * 指定拖地区域的类名,若指定为 `null` 时表示整个对话框,默认:`.modal-header, .ant-modal-title`
563
+ */
564
+ handleCls?: string | null;
565
+ }
566
+ /**
567
+ * 对话框辅助类
568
+ */
569
+ declare class ModalHelper {
570
+ private readonly srv;
571
+ private readonly drag;
572
+ private readonly doc;
573
+ private createDragRef;
574
+ /**
575
+ * 构建一个对话框
576
+ *
577
+ * @param comp 组件
578
+ * @param params 组件参数
579
+ * @param options 额外参数
580
+ *
581
+ * @example
582
+ * this.modalHelper.create(FormEditComponent, { i }).subscribe(res => this.load());
583
+ * // 对于组件的成功&关闭的处理说明
584
+ * // 成功,其中 `nzModalRef` 指目标组件在构造函数 `NzModalRef` 变量名
585
+ * this.nzModalRef.close(data);
586
+ * this.nzModalRef.close();
587
+ * // 关闭
588
+ * this.nzModalRef.destroy();
589
+ */
590
+ create(comp?: TemplateRef<NzSafeAny> | Type<NzSafeAny> | 'confirm' | 'info' | 'success' | 'error' | 'warning', params?: NzSafeAny | ModalHelperOptions | null, options?: ModalHelperOptions): Observable<NzSafeAny>;
591
+ /**
592
+ * 构建静态框,点击蒙层不允许关闭
593
+ *
594
+ * @param comp 组件
595
+ * @param params 组件参数
596
+ * @param options 额外参数
597
+ *
598
+ * @example
599
+ * this.modalHelper.open(FormEditComponent, { i }).subscribe(res => this.load());
600
+ * // 对于组件的成功&关闭的处理说明
601
+ * // 成功,其中 `nzModalRef` 指目标组件在构造函数 `NzModalRef` 变量名
602
+ * this.nzModalRef.close(data);
603
+ * this.nzModalRef.close();
604
+ * // 关闭
605
+ * this.nzModalRef.destroy();
606
+ */
607
+ createStatic(comp: TemplateRef<NzSafeAny> | Type<NzSafeAny>, params?: NzSafeAny, options?: ModalHelperOptions): Observable<NzSafeAny>;
608
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalHelper, never>;
609
+ static ɵprov: i0.ɵɵInjectableDeclaration<ModalHelper>;
610
+ }
611
+
612
+ interface DrawerHelperOptions {
613
+ /**
614
+ * 大小,若值为数值类型,则根据 `nzPlacement` 自动转化为 `nzHeight` 或 `nzWidth`;例如:lg、600,默认:`md`
615
+ *
616
+ * | 类型 | 默认大小 |
617
+ * | --- | ------ |
618
+ * | `sm` | `300` |
619
+ * | `md` | `600` |
620
+ * | `lg` | `900` |
621
+ * | `xl` | `1200` |
622
+ *
623
+ * > 以上值,可通过覆盖相应的LESS参数自行调整
624
+ */
625
+ size?: 'sm' | 'md' | 'lg' | 'xl' | number;
626
+ /**
627
+ * 是否包含底部工具条,默认:`true`
628
+ */
629
+ footer?: boolean;
630
+ /**
631
+ * 底部工具条高度,默认:`55`
632
+ */
633
+ footerHeight?: number;
634
+ /** 是否精准(默认:`true`),若返回值非空值(`null`或`undefined`)视为成功,否则视为错误 */
635
+ exact?: boolean;
636
+ /** 抽屉 [NzDrawerOptions](https://ng.ant.design/components/drawer/zh#nzdraweroptions) 参数 */
637
+ drawerOptions?: NzDrawerOptions;
638
+ }
639
+ /**
640
+ * 抽屉辅助类
641
+ *
642
+ * **注意:** 构建结果都可被订阅,但永远都不会触发 `observer.error`
643
+ *
644
+ * @example
645
+ * this.drawerHelper.create('Edit', FormEditComponent, { i }).subscribe(res => this.load());
646
+ * // 对于组件的成功&关闭的处理说明
647
+ * // 成功
648
+ * this.NzDrawerRef.close(data);
649
+ * this.NzDrawerRef.close(true);
650
+ * // 关闭
651
+ * this.NzDrawerRef.close();
652
+ * this.NzDrawerRef.close(false);
653
+ */
654
+ declare class DrawerHelper {
655
+ private readonly srv;
656
+ private readonly parentDrawer;
657
+ private openDrawersAtThisLevel;
658
+ get openDrawers(): NzDrawerRef[];
659
+ /**
660
+ * 构建一个抽屉
661
+ */
662
+ create(title: string | TemplateRef<NzSafeAny> | undefined | null, comp: TemplateRef<{
663
+ $implicit: NzSafeAny;
664
+ drawerRef: NzDrawerRef;
665
+ }> | Type<NzSafeAny>, params?: NzSafeAny, options?: DrawerHelperOptions): Observable<NzSafeAny>;
666
+ private close;
667
+ closeAll(): void;
668
+ /**
669
+ * 构建一个抽屉,点击蒙层不允许关闭
670
+ */
671
+ static(title: string | TemplateRef<NzSafeAny> | undefined | null, comp: TemplateRef<{
672
+ $implicit: NzSafeAny;
673
+ drawerRef: NzDrawerRef;
674
+ }> | Type<NzSafeAny>, params?: NzSafeAny, options?: DrawerHelperOptions): Observable<NzSafeAny>;
675
+ static ɵfac: i0.ɵɵFactoryDeclaration<DrawerHelper, never>;
676
+ static ɵprov: i0.ɵɵInjectableDeclaration<DrawerHelper>;
677
+ }
678
+
679
+ type _HttpHeaders = HttpHeaders | Record<string, string | string[]>;
680
+ type HttpObserve = 'body' | 'events' | 'response';
681
+ /**
682
+ * 封装HttpClient,主要解决:
683
+ * + 优化HttpClient在参数上便利性
684
+ * + 统一实现 loading
685
+ * + 统一处理时间格式问题
686
+ */
687
+ declare class _HttpClient {
688
+ private readonly http;
689
+ private readonly cogSrv;
690
+ private cog;
691
+ constructor();
692
+ private lc;
693
+ /**
694
+ * Get whether it's loading
695
+ *
696
+ * 获取是否正在加载中
697
+ */
698
+ get loading(): boolean;
699
+ /**
700
+ * Get the currently loading count
701
+ *
702
+ * 获取当前加载中的数量
703
+ */
704
+ get loadingCount(): number;
705
+ parseParams(params: NzSafeAny): HttpParams;
706
+ appliedUrl(url: string, params?: NzSafeAny): string;
707
+ private setCount;
708
+ private push;
709
+ private pop;
710
+ /**
711
+ * Clean loading count
712
+ *
713
+ * 清空加载中
714
+ */
715
+ cleanLoading(): void;
716
+ /**
717
+ * **GET Request** Return a `string` type / 返回一个 `string` 类型
718
+ */
719
+ get(url: string, params: any, options: {
720
+ headers?: _HttpHeaders;
721
+ observe?: 'body';
722
+ reportProgress?: boolean;
723
+ responseType: 'text';
724
+ withCredentials?: boolean;
725
+ context?: HttpContext;
726
+ }): Observable<string>;
727
+ /**
728
+ * **GET Request** Return a `HttpEvent<T>` type / 返回一个 `HttpEvent<T>` 类型
729
+ */
730
+ get<T>(url: string, params: any, options: {
731
+ headers?: _HttpHeaders;
732
+ observe: 'events';
733
+ reportProgress?: boolean;
734
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
735
+ withCredentials?: boolean;
736
+ context?: HttpContext;
737
+ }): Observable<HttpEvent<T>>;
738
+ /**
739
+ * **GET Request** Return a `HttpResponse<any>` type / 返回一个 `HttpResponse<any>` 类型
740
+ */
741
+ get(url: string, params: any, options: {
742
+ headers?: _HttpHeaders;
743
+ observe: 'response';
744
+ reportProgress?: boolean;
745
+ responseType?: 'json';
746
+ withCredentials?: boolean;
747
+ context?: HttpContext;
748
+ }): Observable<HttpResponse<any>>;
749
+ /**
750
+ * **GET Request** Return a `HttpResponse<T>` type / 返回一个 `HttpResponse<T>` 类型
751
+ */
752
+ get<T>(url: string, params: any, options: {
753
+ headers?: _HttpHeaders;
754
+ observe: 'response';
755
+ reportProgress?: boolean;
756
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
757
+ withCredentials?: boolean;
758
+ context?: HttpContext;
759
+ }): Observable<HttpResponse<T>>;
760
+ /**
761
+ * **GET Request** Return a `any` type / 返回一个 `any` 类型
762
+ */
763
+ get(url: string, params?: any, options?: {
764
+ headers?: _HttpHeaders;
765
+ observe?: 'body' | 'events' | 'response';
766
+ reportProgress?: boolean;
767
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
768
+ withCredentials?: boolean;
769
+ context?: HttpContext;
770
+ }): Observable<any>;
771
+ /**
772
+ * **GET Request** Return a generic type / 返回一个泛类型
773
+ */
774
+ get<T>(url: string, params?: any, options?: {
775
+ headers?: _HttpHeaders;
776
+ observe: 'body';
777
+ reportProgress?: boolean;
778
+ responseType?: 'json';
779
+ withCredentials?: boolean;
780
+ context?: HttpContext;
781
+ }): Observable<T>;
782
+ /**
783
+ * **POST Request** Return a `string` type / 返回一个 `string` 类型
784
+ */
785
+ post(url: string, body: any, params: any, options: {
786
+ headers?: _HttpHeaders;
787
+ observe?: 'body';
788
+ reportProgress?: boolean;
789
+ responseType: 'text';
790
+ withCredentials?: boolean;
791
+ context?: HttpContext;
792
+ }): Observable<string>;
793
+ /**
794
+ * **POST Request** Return a `HttpEvent<T>` type / 返回一个 `HttpEvent<T>` 类型
795
+ */
796
+ post<T>(url: string, body: any, params: any, options: {
797
+ headers?: _HttpHeaders;
798
+ observe: 'events';
799
+ reportProgress?: boolean;
800
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
801
+ withCredentials?: boolean;
802
+ context?: HttpContext;
803
+ }): Observable<HttpEvent<T>>;
804
+ /**
805
+ * **POST Request** Return a `HttpResponse<any>` type / 返回一个 `HttpResponse<any>` 类型
806
+ */
807
+ post(url: string, body: any, params: any, options: {
808
+ headers?: _HttpHeaders;
809
+ observe: 'response';
810
+ reportProgress?: boolean;
811
+ responseType?: 'json';
812
+ withCredentials?: boolean;
813
+ context?: HttpContext;
814
+ }): Observable<HttpResponse<any>>;
815
+ /**
816
+ * **POST Request** Return a `any` type / 返回一个 `any` 类型
817
+ */
818
+ post(url: string, body?: any, params?: any, options?: {
819
+ headers?: _HttpHeaders;
820
+ observe?: 'body' | 'events' | 'response';
821
+ reportProgress?: boolean;
822
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
823
+ withCredentials?: boolean;
824
+ context?: HttpContext;
825
+ }): Observable<any>;
826
+ /**
827
+ * **POST Request** Return a JSON type / 返回一个 `JSON` 类型
828
+ */
829
+ post<T>(url: string, body?: any, params?: any, options?: {
830
+ headers?: _HttpHeaders;
831
+ observe: 'body' | 'response';
832
+ reportProgress?: boolean;
833
+ responseType?: 'json';
834
+ withCredentials?: boolean;
835
+ context?: HttpContext;
836
+ }): Observable<T>;
837
+ /**
838
+ * **DELETE Request** Return a `string` type / 返回一个 `string` 类型
839
+ */
840
+ delete(url: string, params: any, options: {
841
+ body?: any;
842
+ headers?: _HttpHeaders;
843
+ observe?: 'body';
844
+ reportProgress?: boolean;
845
+ responseType: 'text';
846
+ withCredentials?: boolean;
847
+ context?: HttpContext;
848
+ }): Observable<string>;
849
+ /**
850
+ * **DELETE Request** Return a `JSON` type / 返回一个 `JSON` 类型
851
+ */
852
+ delete(url: string, params: any, options: {
853
+ body?: any;
854
+ headers?: _HttpHeaders;
855
+ observe: 'response';
856
+ reportProgress?: boolean;
857
+ responseType?: 'json';
858
+ withCredentials?: boolean;
859
+ context?: HttpContext;
860
+ }): Observable<HttpResponse<NzSafeAny>>;
861
+ /**
862
+ * **DELETE Request** Return a `any` type / 返回一个 `any` 类型
863
+ */
864
+ delete(url: string, params?: any, options?: {
865
+ body?: any;
866
+ headers?: _HttpHeaders;
867
+ observe?: 'body' | 'events' | 'response';
868
+ reportProgress?: boolean;
869
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
870
+ withCredentials?: boolean;
871
+ context?: HttpContext;
872
+ }): Observable<any>;
873
+ /**
874
+ * c返回一个泛类型
875
+ */
876
+ delete<T>(url: string, params?: any, options?: {
877
+ body?: any;
878
+ headers?: _HttpHeaders;
879
+ observe?: 'body' | 'events' | 'response';
880
+ reportProgress?: boolean;
881
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
882
+ withCredentials?: boolean;
883
+ context?: HttpContext;
884
+ }): Observable<T>;
885
+ /**
886
+ * **JSONP Request**
887
+ *
888
+ * @param callbackParam CALLBACK值,默认:JSONP_CALLBACK
889
+ */
890
+ jsonp(url: string, params?: any, callbackParam?: string): Observable<any>;
891
+ /**
892
+ * **PATCH Request** Return a `string` type / 返回一个 `string` 类型
893
+ */
894
+ patch(url: string, body: any, params: any, options: {
895
+ headers?: _HttpHeaders;
896
+ observe?: 'body';
897
+ reportProgress?: boolean;
898
+ responseType: 'text';
899
+ withCredentials?: boolean;
900
+ context?: HttpContext;
901
+ }): Observable<string>;
902
+ /**
903
+ * **PATCH Request** Return a `HttpResponse<JSON>` type / 返回一个 `HttpResponse<JSON>` 类型
904
+ */
905
+ patch(url: string, body: any, params: any, options: {
906
+ headers?: _HttpHeaders;
907
+ observe: 'response';
908
+ reportProgress?: boolean;
909
+ responseType?: 'json';
910
+ withCredentials?: boolean;
911
+ context?: HttpContext;
912
+ }): Observable<HttpResponse<NzSafeAny>>;
913
+ /**
914
+ * **PATCH Request** Return a `any` type / 返回一个 `any` 类型
915
+ */
916
+ patch(url: string, body?: any, params?: any, options?: {
917
+ headers?: _HttpHeaders;
918
+ observe?: 'body' | 'events' | 'response';
919
+ reportProgress?: boolean;
920
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
921
+ withCredentials?: boolean;
922
+ context?: HttpContext;
923
+ }): Observable<any>;
924
+ /**
925
+ * **PATCH Request** Return a `JSON` type / 返回一个 `JSON` 类型
926
+ */
927
+ patch<T>(url: string, body?: any, params?: any, options?: {
928
+ headers?: _HttpHeaders;
929
+ observe: 'response';
930
+ reportProgress?: boolean;
931
+ responseType?: 'json';
932
+ withCredentials?: boolean;
933
+ context?: HttpContext;
934
+ }): Observable<T>;
935
+ /**
936
+ * **PUT Request** Return a `string` type / 返回一个 `string` 类型
937
+ */
938
+ put(url: string, body: any, params: any, options: {
939
+ headers?: _HttpHeaders;
940
+ observe?: 'body';
941
+ reportProgress?: boolean;
942
+ responseType: 'text';
943
+ withCredentials?: boolean;
944
+ context?: HttpContext;
945
+ }): Observable<string>;
946
+ /**
947
+ * **PUT Request** Return a `HttpResponse<JSON>` type / 返回一个 `HttpResponse<JSON>` 类型
948
+ */
949
+ put(url: string, body: any, params: any, options: {
950
+ headers?: _HttpHeaders;
951
+ observe: 'response';
952
+ reportProgress?: boolean;
953
+ responseType?: 'json';
954
+ withCredentials?: boolean;
955
+ context?: HttpContext;
956
+ }): Observable<HttpResponse<NzSafeAny>>;
957
+ /**
958
+ * **PUT Request** Return a `any` type / 返回一个 `any` 类型
959
+ */
960
+ put(url: string, body?: any, params?: any, options?: {
961
+ headers?: _HttpHeaders;
962
+ observe?: 'body' | 'events' | 'response';
963
+ reportProgress?: boolean;
964
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
965
+ withCredentials?: boolean;
966
+ context?: HttpContext;
967
+ }): Observable<any>;
968
+ /**
969
+ * **PUT Request** Return a `JSON` type / 返回一个 `JSON` 类型
970
+ */
971
+ put<T>(url: string, body?: any, params?: any, options?: {
972
+ headers?: _HttpHeaders;
973
+ observe: 'response';
974
+ reportProgress?: boolean;
975
+ responseType?: 'json';
976
+ withCredentials?: boolean;
977
+ context?: HttpContext;
978
+ }): Observable<T>;
979
+ /**
980
+ * **Form Request** Return a `string` type / 返回一个 `string` 类型
981
+ */
982
+ form(url: string, body: any, params: any, options: {
983
+ headers?: _HttpHeaders;
984
+ observe?: 'body';
985
+ reportProgress?: boolean;
986
+ responseType: 'text';
987
+ withCredentials?: boolean;
988
+ context?: HttpContext;
989
+ }): Observable<string>;
990
+ /**
991
+ * **Form Request** Return a `HttpEvent<T>` type / 返回一个 `HttpEvent<T>` 类型
992
+ */
993
+ form<T>(url: string, body: any, params: any, options: {
994
+ headers?: _HttpHeaders;
995
+ observe: 'events';
996
+ reportProgress?: boolean;
997
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
998
+ withCredentials?: boolean;
999
+ context?: HttpContext;
1000
+ }): Observable<HttpEvent<T>>;
1001
+ /**
1002
+ * **Form Request** Return a `HttpResponse<JSON>` type / 返回一个 `HttpResponse<JSON>` 类型
1003
+ */
1004
+ form(url: string, body: any, params: any, options: {
1005
+ headers?: _HttpHeaders;
1006
+ observe: 'response';
1007
+ reportProgress?: boolean;
1008
+ responseType?: 'json';
1009
+ withCredentials?: boolean;
1010
+ context?: HttpContext;
1011
+ }): Observable<HttpResponse<any>>;
1012
+ /**
1013
+ * **Form Request** Return a `any` type / 返回一个 `any` 类型
1014
+ */
1015
+ form(url: string, body?: any, params?: any, options?: {
1016
+ headers?: _HttpHeaders;
1017
+ observe?: 'body' | 'events' | 'response';
1018
+ reportProgress?: boolean;
1019
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
1020
+ withCredentials?: boolean;
1021
+ context?: HttpContext;
1022
+ }): Observable<any>;
1023
+ /**
1024
+ * **Form Request** Return a `JSON` type / 返回一个 `JSON` 类型
1025
+ */
1026
+ form<T>(url: string, body?: any, params?: any, options?: {
1027
+ headers?: _HttpHeaders;
1028
+ observe: 'response';
1029
+ reportProgress?: boolean;
1030
+ responseType?: 'json';
1031
+ withCredentials?: boolean;
1032
+ context?: HttpContext;
1033
+ }): Observable<T>;
1034
+ /**
1035
+ * **Request** Return a `ArrayBuffer` type / 返回一个 `ArrayBuffer` 类型
1036
+ */
1037
+ request(method: string, url: string, options: {
1038
+ body?: any;
1039
+ headers?: _HttpHeaders;
1040
+ params?: any;
1041
+ observe?: 'body';
1042
+ reportProgress?: boolean;
1043
+ responseType: 'arraybuffer';
1044
+ withCredentials?: boolean;
1045
+ context?: HttpContext;
1046
+ }): Observable<ArrayBuffer>;
1047
+ /**
1048
+ * **Request** Return a `Blob` type / 返回一个 `Blob` 类型
1049
+ */
1050
+ request(method: string, url: string, options: {
1051
+ body?: any;
1052
+ headers?: _HttpHeaders;
1053
+ params?: any;
1054
+ observe?: 'body';
1055
+ reportProgress?: boolean;
1056
+ responseType: 'blob';
1057
+ withCredentials?: boolean;
1058
+ context?: HttpContext;
1059
+ }): Observable<Blob>;
1060
+ /**
1061
+ * **Request** Return a `string` type / 返回一个 `string` 类型
1062
+ */
1063
+ request(method: string, url: string, options: {
1064
+ body?: any;
1065
+ headers?: _HttpHeaders;
1066
+ params?: any;
1067
+ observe?: 'body';
1068
+ reportProgress?: boolean;
1069
+ responseType: 'text';
1070
+ withCredentials?: boolean;
1071
+ context?: HttpContext;
1072
+ }): Observable<string>;
1073
+ /**
1074
+ * **Request** Return a `HttpEvent<ArrayBuffer>` type / 返回一个 `HttpEvent<ArrayBuffer>` 类型
1075
+ */
1076
+ request(method: string, url: string, options: {
1077
+ body?: any;
1078
+ headers?: _HttpHeaders;
1079
+ params?: any;
1080
+ observe: 'events';
1081
+ reportProgress?: boolean;
1082
+ responseType: 'arraybuffer';
1083
+ withCredentials?: boolean;
1084
+ context?: HttpContext;
1085
+ }): Observable<HttpEvent<ArrayBuffer>>;
1086
+ /**
1087
+ * **Request** Return a `HttpEvent<Blob>` type / 返回一个 `HttpEvent<Blob>` 类型
1088
+ */
1089
+ request(method: string, url: string, options: {
1090
+ body?: any;
1091
+ headers?: _HttpHeaders;
1092
+ params?: any;
1093
+ observe: 'events';
1094
+ reportProgress?: boolean;
1095
+ responseType: 'blob';
1096
+ withCredentials?: boolean;
1097
+ context?: HttpContext;
1098
+ }): Observable<HttpEvent<Blob>>;
1099
+ /**
1100
+ * **Request** Return a `HttpEvent<string>` type / 返回一个 `HttpEvent<string>` 类型
1101
+ */
1102
+ request(method: string, url: string, options: {
1103
+ body?: any;
1104
+ headers?: _HttpHeaders;
1105
+ params?: any;
1106
+ observe: 'events';
1107
+ reportProgress?: boolean;
1108
+ responseType: 'text';
1109
+ withCredentials?: boolean;
1110
+ context?: HttpContext;
1111
+ }): Observable<HttpEvent<string>>;
1112
+ /**
1113
+ * **Request** Return a `HttpEvent<any>` type / 返回一个 `HttpEvent<any>` 类型
1114
+ */
1115
+ request(method: string, url: string, options: {
1116
+ body?: any;
1117
+ headers?: _HttpHeaders;
1118
+ params?: any;
1119
+ reportProgress?: boolean;
1120
+ observe: 'events';
1121
+ responseType?: 'json';
1122
+ withCredentials?: boolean;
1123
+ context?: HttpContext;
1124
+ }): Observable<HttpEvent<any>>;
1125
+ /**
1126
+ * **Request** Return a `HttpEvent<R>` type / 返回一个 `HttpEvent<R>` 类型
1127
+ */
1128
+ request<R>(method: string, url: string, options: {
1129
+ body?: any;
1130
+ headers?: _HttpHeaders;
1131
+ params?: any;
1132
+ reportProgress?: boolean;
1133
+ observe: 'events';
1134
+ responseType?: 'json';
1135
+ withCredentials?: boolean;
1136
+ context?: HttpContext;
1137
+ }): Observable<HttpEvent<R>>;
1138
+ /**
1139
+ * **Request** Return a `HttpResponse<ArrayBuffer>` type / 返回一个 `HttpResponse<ArrayBuffer>` 类型
1140
+ */
1141
+ request(method: string, url: string, options: {
1142
+ body?: any;
1143
+ headers?: _HttpHeaders;
1144
+ params?: any;
1145
+ observe: 'response';
1146
+ reportProgress?: boolean;
1147
+ responseType: 'arraybuffer';
1148
+ withCredentials?: boolean;
1149
+ context?: HttpContext;
1150
+ }): Observable<HttpResponse<ArrayBuffer>>;
1151
+ /**
1152
+ * **Request** Return a `HttpResponse<Blob>` type / 返回一个 `HttpResponse<Blob>` 类型
1153
+ */
1154
+ request(method: string, url: string, options: {
1155
+ body?: any;
1156
+ headers?: _HttpHeaders;
1157
+ params?: any;
1158
+ observe: 'response';
1159
+ reportProgress?: boolean;
1160
+ responseType: 'blob';
1161
+ withCredentials?: boolean;
1162
+ context?: HttpContext;
1163
+ }): Observable<HttpResponse<Blob>>;
1164
+ /**
1165
+ * **Request** Return a `HttpResponse<string>` type / 返回一个 `HttpResponse<string>` 类型
1166
+ */
1167
+ request(method: string, url: string, options: {
1168
+ body?: any;
1169
+ headers?: _HttpHeaders;
1170
+ params?: any;
1171
+ observe: 'response';
1172
+ reportProgress?: boolean;
1173
+ responseType: 'text';
1174
+ withCredentials?: boolean;
1175
+ context?: HttpContext;
1176
+ }): Observable<HttpResponse<string>>;
1177
+ /**
1178
+ * **Request** Return a `HttpResponse<Object>` type / 返回一个 `HttpResponse<Object>` 类型
1179
+ */
1180
+ request(method: string, url: string, options: {
1181
+ body?: any;
1182
+ headers?: _HttpHeaders;
1183
+ params?: any;
1184
+ reportProgress?: boolean;
1185
+ observe: 'response';
1186
+ responseType?: 'json';
1187
+ withCredentials?: boolean;
1188
+ context?: HttpContext;
1189
+ }): Observable<HttpResponse<NzSafeAny>>;
1190
+ /**
1191
+ * **Request** Return a `HttpResponse<R>` type / 返回一个 `HttpResponse<R>` 类型
1192
+ */
1193
+ request<R>(method: string, url: string, options: {
1194
+ body?: any;
1195
+ headers?: _HttpHeaders;
1196
+ params?: any;
1197
+ reportProgress?: boolean;
1198
+ observe: 'response';
1199
+ responseType?: 'json';
1200
+ withCredentials?: boolean;
1201
+ context?: HttpContext;
1202
+ }): Observable<HttpResponse<R>>;
1203
+ /**
1204
+ * **Request** Return a `HttpResponse<Object>` type / 返回一个 `HttpResponse<Object>` 类型
1205
+ */
1206
+ request(method: string, url: string, options?: {
1207
+ body?: any;
1208
+ headers?: _HttpHeaders;
1209
+ params?: any;
1210
+ observe?: 'body';
1211
+ responseType?: 'json';
1212
+ reportProgress?: boolean;
1213
+ withCredentials?: boolean;
1214
+ context?: HttpContext;
1215
+ }): Observable<Record<string, unknown>>;
1216
+ /**
1217
+ * **Request** Return a `R` type / 返回一个 `R` 类型
1218
+ */
1219
+ request<R>(method: string, url: string, options?: {
1220
+ body?: any;
1221
+ headers?: _HttpHeaders;
1222
+ params?: any;
1223
+ observe?: 'body';
1224
+ responseType?: 'json';
1225
+ reportProgress?: boolean;
1226
+ withCredentials?: boolean;
1227
+ context?: HttpContext;
1228
+ }): Observable<R>;
1229
+ /**
1230
+ * **Request** Return a `any` type / 返回一个 `any` 类型
1231
+ */
1232
+ request(method: string, url: string, options?: {
1233
+ body?: any;
1234
+ headers?: _HttpHeaders;
1235
+ params?: any;
1236
+ observe?: HttpObserve;
1237
+ reportProgress?: boolean;
1238
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
1239
+ withCredentials?: boolean;
1240
+ context?: HttpContext;
1241
+ }): Observable<any>;
1242
+ static ɵfac: i0.ɵɵFactoryDeclaration<_HttpClient, never>;
1243
+ static ɵprov: i0.ɵɵInjectableDeclaration<_HttpClient>;
1244
+ }
1245
+
1246
+ /**
1247
+ * Every http decorator must be based on `BaseAPI`, Like this:
1248
+ * ```ts
1249
+ * \@Injectable()
1250
+ * class DataService extends BaseApi {}
1251
+ * ```
1252
+ */
1253
+ declare abstract class BaseApi {
1254
+ protected readonly injector: Injector;
1255
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseApi, never>;
1256
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaseApi>;
1257
+ }
1258
+ interface HttpOptions {
1259
+ /** ACL配置,若导入 `@delon/acl` 时自动有效,等同于 `ACLService.can(roleOrAbility: ACLCanType)` 参数值 */
1260
+ acl?: ACLCanType;
1261
+ observe?: 'body' | 'events' | 'response';
1262
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
1263
+ reportProgress?: boolean;
1264
+ withCredentials?: boolean;
1265
+ context?: HttpContext;
1266
+ }
1267
+ /**
1268
+ * 默认基准URL
1269
+ * - 有效范围:类
1270
+ */
1271
+ declare function BaseUrl(url: string): <TClass extends new (...args: any[]) => BaseApi>(target: TClass) => TClass;
1272
+ /**
1273
+ * 默认 `headers`
1274
+ * - 有效范围:类
1275
+ */
1276
+ declare function BaseHeaders(headers: HttpHeaders | Record<string, string | string[]>): <TClass extends new (...args: any[]) => BaseApi>(target: TClass) => TClass;
1277
+ /**
1278
+ * URL路由参数
1279
+ * - 有效范围:方法参数
1280
+ */
1281
+ declare const Path: (key?: string) => (target: BaseApi, propertyKey: string, index: number) => void;
1282
+ /**
1283
+ * URL 参数 `QueryString`
1284
+ * - 有效范围:方法参数
1285
+ */
1286
+ declare const Query: (key?: string) => (target: BaseApi, propertyKey: string, index: number) => void;
1287
+ /**
1288
+ * 参数 `Body`
1289
+ * - 有效范围:方法参数
1290
+ */
1291
+ declare const Body: (target: BaseApi, propertyKey: string, index: number) => void;
1292
+ /**
1293
+ * 参数 `headers`
1294
+ * - 有效范围:方法参数
1295
+ * - 合并 `BaseHeaders`
1296
+ */
1297
+ declare const Headers: (key?: string) => (target: BaseApi, propertyKey: string, index: number) => void;
1298
+ /**
1299
+ * Request Payload
1300
+ * - Supported body (like`POST`, `PUT`) as a body data, equivalent to `@Body`
1301
+ * - Not supported body (like `GET`, `DELETE` etc) as a `QueryString`
1302
+ */
1303
+ declare const Payload: (target: BaseApi, propertyKey: string, index: number) => void;
1304
+ type METHOD_TYPE = 'OPTIONS' | 'GET' | 'POST' | 'DELETE' | 'PUT' | 'HEAD' | 'PATCH' | 'JSONP' | 'FORM';
1305
+ /**
1306
+ * `OPTIONS` 请求
1307
+ * - 有效范围:方法
1308
+ */
1309
+ declare const OPTIONS: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
1310
+ /**
1311
+ * `GET` 请求
1312
+ * - 有效范围:方法
1313
+ */
1314
+ declare const GET: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
1315
+ /**
1316
+ * `POST` 请求
1317
+ * - 有效范围:方法
1318
+ */
1319
+ declare const POST: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
1320
+ /**
1321
+ * `DELETE` 请求
1322
+ * - 有效范围:方法
1323
+ */
1324
+ declare const DELETE: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
1325
+ /**
1326
+ * `PUT` 请求
1327
+ * - 有效范围:方法
1328
+ */
1329
+ declare const PUT: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
1330
+ /**
1331
+ * `HEAD` 请求
1332
+ * - 有效范围:方法
1333
+ */
1334
+ declare const HEAD: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
1335
+ /**
1336
+ * `PATCH` 请求
1337
+ * - 有效范围:方法
1338
+ */
1339
+ declare const PATCH: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
1340
+ /**
1341
+ * `JSONP` 请求
1342
+ * - 有效范围:方法
1343
+ */
1344
+ declare const JSONP: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
1345
+ /**
1346
+ * `FORM` 请求
1347
+ * - 有效范围:方法
1348
+ */
1349
+ declare const FORM: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
1350
+
1351
+ /**
1352
+ * Whether to customize the handling of exception messages
1353
+ *
1354
+ * 是否自定义处理异常消息
1355
+ *
1356
+ * @example
1357
+ * this.http.post(`login`, {
1358
+ * name: 'cipchk', pwd: '123456'
1359
+ * }, {
1360
+ * context: new HttpContext()
1361
+ * .set(ALLOW_ANONYMOUS, true)
1362
+ * .set(CUSTOM_ERROR, true)
1363
+ * }).subscribe({
1364
+ * next: console.log,
1365
+ * error: console.log
1366
+ * });
1367
+ */
1368
+ declare const CUSTOM_ERROR: HttpContextToken<boolean>;
1369
+ /**
1370
+ * Whether to ignore API prefixes
1371
+ *
1372
+ * 是否忽略API前缀
1373
+ *
1374
+ * @example
1375
+ * // When environment.api.baseUrl set '/api'
1376
+ *
1377
+ * this.http.get(`/path`) // Request Url: /api/path
1378
+ * this.http.get(`/path`, { context: new HttpContext().set(IGNORE_BASE_URL, true) }) // Request Url: /path
1379
+ */
1380
+ declare const IGNORE_BASE_URL: HttpContextToken<boolean>;
1381
+ /**
1382
+ * Whether to return raw response body
1383
+ *
1384
+ * 是否原样返回请求Body
1385
+ */
1386
+ declare const RAW_BODY: HttpContextToken<boolean>;
1387
+
1388
+ type LocaleData = Record<string, NzSafeAny>;
1389
+ interface ExceptionLocaleData extends LocaleData {
1390
+ 403: string;
1391
+ 404: string;
1392
+ 500: string;
1393
+ backToHome: string;
1394
+ }
1395
+ interface NoticeIconLocaleData extends LocaleData {
1396
+ emptyText: string;
1397
+ clearText: string;
1398
+ }
1399
+ interface ReuseTabLocaleData extends LocaleData {
1400
+ close: string;
1401
+ closeOther: string;
1402
+ closeRight: string;
1403
+ refresh: string;
1404
+ }
1405
+ interface TagSelectLocaleData extends LocaleData {
1406
+ expand: string;
1407
+ collapse: string;
1408
+ }
1409
+ interface MiniProgressLocaleData extends LocaleData {
1410
+ target: string;
1411
+ }
1412
+ interface STLocaleData extends LocaleData {
1413
+ total: string;
1414
+ filterConfirm: string;
1415
+ filterReset: string;
1416
+ }
1417
+ interface SFLocaleData extends LocaleData {
1418
+ submit: string;
1419
+ reset: string;
1420
+ search: string;
1421
+ edit: string;
1422
+ addText: string;
1423
+ removeText: string;
1424
+ checkAllText: string;
1425
+ error: SFErrorLocaleData;
1426
+ }
1427
+ interface SFErrorLocaleData extends LocaleData {
1428
+ 'false schema': string;
1429
+ $ref: string;
1430
+ additionalItems: string;
1431
+ additionalProperties: string;
1432
+ anyOf: string;
1433
+ dependencies: string;
1434
+ enum: string;
1435
+ format: string;
1436
+ type: string;
1437
+ required: string;
1438
+ maxLength: string;
1439
+ minLength: string;
1440
+ minimum: string;
1441
+ formatMinimum: string;
1442
+ maximum: string;
1443
+ formatMaximum: string;
1444
+ maxItems: string;
1445
+ minItems: string;
1446
+ maxProperties: string;
1447
+ minProperties: string;
1448
+ multipleOf: string;
1449
+ not: string;
1450
+ oneOf: string;
1451
+ pattern: string;
1452
+ uniqueItems: string;
1453
+ custom: string;
1454
+ propertyNames: string;
1455
+ patternRequired: string;
1456
+ switch: string;
1457
+ const: string;
1458
+ contains: string;
1459
+ formatExclusiveMaximum: string;
1460
+ formatExclusiveMinimum: string;
1461
+ if: string;
1462
+ }
1463
+ interface OnboardingLocaleData extends LocaleData {
1464
+ skip: string;
1465
+ prev: string;
1466
+ next: string;
1467
+ done: string;
1468
+ }
1469
+ interface FullLocaleData {
1470
+ abbr: string;
1471
+ exception: ExceptionLocaleData;
1472
+ noticeIcon: NoticeIconLocaleData;
1473
+ reuseTab: ReuseTabLocaleData;
1474
+ tagSelect: TagSelectLocaleData;
1475
+ onboarding: OnboardingLocaleData;
1476
+ miniProgress: MiniProgressLocaleData;
1477
+ st: STLocaleData;
1478
+ sf: SFLocaleData;
1479
+ }
1480
+
1481
+ declare const DELON_LOCALE: InjectionToken<FullLocaleData>;
1482
+
1483
+ declare class DelonLocaleService {
1484
+ private defLocale;
1485
+ private _locale;
1486
+ private change$;
1487
+ constructor();
1488
+ get change(): Observable<FullLocaleData>;
1489
+ setLocale(locale: FullLocaleData): void;
1490
+ valueSignal<K extends keyof FullLocaleData>(key: K): Signal<FullLocaleData[K]>;
1491
+ get locale(): FullLocaleData;
1492
+ getData<K extends keyof FullLocaleData>(key: K): FullLocaleData[K];
1493
+ static ɵfac: i0.ɵɵFactoryDeclaration<DelonLocaleService, never>;
1494
+ static ɵprov: i0.ɵɵInjectableDeclaration<DelonLocaleService>;
1495
+ }
1496
+ declare function DELON_LOCALE_SERVICE_PROVIDER_FACTORY(exist: DelonLocaleService): DelonLocaleService;
1497
+ declare const DELON_LOCALE_SERVICE_PROVIDER: Provider;
1498
+
1499
+ declare class DelonLocaleModule {
1500
+ static ɵfac: i0.ɵɵFactoryDeclaration<DelonLocaleModule, never>;
1501
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DelonLocaleModule, never, never, never>;
1502
+ static ɵinj: i0.ɵɵInjectorDeclaration<DelonLocaleModule>;
1503
+ }
1504
+
1505
+ declare const _default$e: FullLocaleData;
1506
+
1507
+ declare const _default$d: FullLocaleData;
1508
+
1509
+ declare const _default$c: FullLocaleData;
1510
+
1511
+ declare const _default$b: FullLocaleData;
1512
+
1513
+ declare const _default$a: FullLocaleData;
1514
+
1515
+ declare const _default$9: FullLocaleData;
1516
+
1517
+ declare const _default$8: FullLocaleData;
1518
+
1519
+ declare const _default$7: FullLocaleData;
1520
+
1521
+ declare const _default$6: FullLocaleData;
1522
+
1523
+ declare const _default$5: FullLocaleData;
1524
+
1525
+ declare const _default$4: FullLocaleData;
1526
+
1527
+ declare const _default$3: FullLocaleData;
1528
+
1529
+ declare const _default$2: FullLocaleData;
1530
+
1531
+ declare const _default$1: FullLocaleData;
1532
+
1533
+ declare const _default: FullLocaleData;
1534
+
1535
+ declare class DatePipe implements PipeTransform {
1536
+ private nzI18n;
1537
+ private cog;
1538
+ transform(value: Date | string | number, formatString?: string | null): string;
1539
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, never>;
1540
+ static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "_date", true>;
1541
+ }
1542
+
1543
+ /**
1544
+ * [Document](https://ng-alain.com/theme/keys)
1545
+ */
1546
+ declare class KeysPipe implements PipeTransform {
1547
+ transform(value: NzSafeAny, keyIsNumber?: boolean): NzSafeAny[];
1548
+ static ɵfac: i0.ɵɵFactoryDeclaration<KeysPipe, never>;
1549
+ static ɵpipe: i0.ɵɵPipeDeclaration<KeysPipe, "keys", true>;
1550
+ }
1551
+
1552
+ type YNMode = 'full' | 'icon' | 'text';
1553
+ interface YNOptions {
1554
+ yes?: string;
1555
+ no?: string;
1556
+ mode?: YNMode;
1557
+ }
1558
+ declare function yn(value: boolean, opt?: YNOptions): string;
1559
+ declare class YNPipe implements PipeTransform {
1560
+ private readonly dom;
1561
+ transform(value: boolean, yes?: string, no?: string, mode?: YNMode, isSafeHtml?: boolean): SafeHtml;
1562
+ static ɵfac: i0.ɵɵFactoryDeclaration<YNPipe, never>;
1563
+ static ɵpipe: i0.ɵɵPipeDeclaration<YNPipe, "yn", true>;
1564
+ }
1565
+
1566
+ declare class HTMLPipe implements PipeTransform {
1567
+ private readonly dom;
1568
+ transform(html: string): string | SafeHtml;
1569
+ static ɵfac: i0.ɵɵFactoryDeclaration<HTMLPipe, never>;
1570
+ static ɵpipe: i0.ɵɵPipeDeclaration<HTMLPipe, "html", true>;
1571
+ }
1572
+
1573
+ declare class URLPipe implements PipeTransform {
1574
+ private readonly dom;
1575
+ transform(url: string): string | SafeUrl;
1576
+ static ɵfac: i0.ɵɵFactoryDeclaration<URLPipe, never>;
1577
+ static ɵpipe: i0.ɵɵPipeDeclaration<URLPipe, "url", true>;
1578
+ }
1579
+
1580
+ interface Environment {
1581
+ [key: string]: NzSafeAny;
1582
+ /**
1583
+ * Whether production environment
1584
+ *
1585
+ * 是否生产环境
1586
+ */
1587
+ production: boolean;
1588
+ /**
1589
+ * Whether uses the URL fragment instead of the history API.
1590
+ *
1591
+ * 是否启用 URL 片段(#)代替 history API
1592
+ */
1593
+ useHash: boolean;
1594
+ /**
1595
+ * API configuration
1596
+ *
1597
+ * API配置
1598
+ */
1599
+ api: ApiConfig;
1600
+ /**
1601
+ * Defined imported modules in `app-config.ts`
1602
+ *
1603
+ * 定义在 `app-config.ts` 导入的模块列表
1604
+ */
1605
+ modules?: Array<Type<NzSafeAny> | ModuleWithProviders<NzSafeAny> | NzSafeAny[]>;
1606
+ /**
1607
+ * Defined providers in `app-config.ts`
1608
+ *
1609
+ * 定义在 `app-config.ts` 导入的 providers 列表
1610
+ */
1611
+ providers?: Array<Provider | EnvironmentProviders>;
1612
+ /**
1613
+ * Defined interceptorFns in `app-config.ts`
1614
+ *
1615
+ * 定义在 `app-config.ts` 导入的 interceptorFns 列表
1616
+ */
1617
+ interceptorFns?: HttpInterceptorFn[];
1618
+ }
1619
+ interface ApiConfig {
1620
+ [key: string]: NzSafeAny;
1621
+ /**
1622
+ * Specify API prefix
1623
+ *
1624
+ * 指定API前缀
1625
+ */
1626
+ baseUrl: string;
1627
+ /**
1628
+ * Whether to enable automatic refresh token
1629
+ *
1630
+ * 是否启用自动刷新Token
1631
+ */
1632
+ refreshTokenEnabled: boolean;
1633
+ /**
1634
+ * Token refresh type, `re-request` Trigger token refresh request when the detection time expires, and then re-send the original request, `auth-refresh` uses `@delon/auth` to periodically check whether it has expired
1635
+ *
1636
+ * 刷新Token方式,`re-request` 当检测过期时间到期时先发起刷新Token请求,再重新发起原请求,`auth-refresh` 利用 `@delon/auth` 来定期检测是否过期
1637
+ */
1638
+ refreshTokenType: 're-request' | 'auth-refresh';
1639
+ }
1640
+
1641
+ declare class AlainThemeModule {
1642
+ constructor(iconSrv: NzIconService);
1643
+ static forRoot(): ModuleWithProviders<AlainThemeModule>;
1644
+ static forChild(): ModuleWithProviders<AlainThemeModule>;
1645
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlainThemeModule, never>;
1646
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AlainThemeModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.OverlayModule, typeof i4.NzI18nModule, typeof DatePipe, typeof KeysPipe, typeof YNPipe, typeof I18nPipe, typeof HTMLPipe, typeof URLPipe], [typeof DatePipe, typeof KeysPipe, typeof YNPipe, typeof I18nPipe, typeof HTMLPipe, typeof URLPipe, typeof DelonLocaleModule]>;
1647
+ static ɵinj: i0.ɵɵInjectorDeclaration<AlainThemeModule>;
1648
+ }
1649
+
1650
+ interface AlainProvideOptions {
1651
+ config?: AlainConfig;
1652
+ /**
1653
+ * Initialize default language
1654
+ *
1655
+ * 初始化默认语言
1656
+ */
1657
+ defaultLang?: AlainProvideLang;
1658
+ i18nClass?: Type<NzSafeAny>;
1659
+ icons?: IconDefinition[];
1660
+ }
1661
+ interface AlainProvideLang {
1662
+ abbr: string;
1663
+ ng: NzSafeAny;
1664
+ zorro: NzSafeAny;
1665
+ date: NzSafeAny;
1666
+ delon: NzSafeAny;
1667
+ }
1668
+ declare function provideAlain(options: AlainProvideOptions): EnvironmentProviders;
1669
+
1670
+ /**
1671
+ * Optional pre-loading module, when it's necessary to load the resource at the first page load for some lazy routes, [example](https://github.com/ng-alain/ng-alain/blob/master/src/app/routes/routes-routing.module.ts).
1672
+ *
1673
+ * 可选预加载模块,当需要对某些懒路由在第一次页面加载时也一并加载该资源时,[示例](https://github.com/ng-alain/ng-alain/blob/master/src/app/routes/routes-routing.module.ts)。
1674
+ *
1675
+ * @example
1676
+ * {AT}NgModule({
1677
+ * providers: [PreloadOptionalModules],
1678
+ * imports: [
1679
+ * RouterModule.forRoot([
1680
+ * { path: '', loadChildren: null, data: { preload: true } }
1681
+ * ], { preloadingStrategy: PreloadOptionalModules})]
1682
+ * })
1683
+ */
1684
+ declare class PreloadOptionalModules implements PreloadingStrategy {
1685
+ preload(route: Route, fn: () => Observable<NzSafeAny>): Observable<NzSafeAny>;
1686
+ }
1687
+
1688
+ declare const VERSION: Version;
1689
+
1690
+ export { ALAIN_I18N_TOKEN, ALAIN_SETTING_DEFAULT, ALAIN_SETTING_KEYS, AlainI18NGuardService, AlainI18NServiceFake, AlainI18nBaseService, AlainThemeModule, BaseApi, BaseHeaders, BaseUrl, Body, CUSTOM_ERROR, DELETE, DELON_LOCALE, DELON_LOCALE_SERVICE_PROVIDER, DELON_LOCALE_SERVICE_PROVIDER_FACTORY, DatePipe, DelonLocaleModule, DelonLocaleService, DrawerHelper, FORM, GET, HEAD, HTMLPipe, HTML_DIR, Headers, I18nPipe, IGNORE_BASE_URL, JSONP, KeysPipe, LTR, MenuService, ModalHelper, OPTIONS, PATCH, POST, PUT, Path, Payload, PreloadOptionalModules, Query, RAW_BODY, REP_MAX, RTL, RTLService, RTL_DELON_COMPONENTS, RTL_DIRECTION, RTL_NZ_COMPONENTS, ResponsiveService, SPAN_MAX, SettingsService, TitleService, URLPipe, VERSION, YNPipe, _HttpClient, alainI18nCanActivate, alainI18nCanActivateChild, _default as ar_SA, _default$9 as el_GR, _default$e as en_US, _default$3 as es_ES, _default$4 as fr_FR, _default$7 as hr_HR, _default$2 as it_IT, _default$6 as ja_JP, _default$8 as ko_KR, _default$a as pl_PL, provideAlain, _default$5 as sl_SI, stepPreloader, _default$b as tr_TR, _default$1 as vi_VI, yn, _default$d as zh_CN, _default$c as zh_TW };
1691
+ export type { AlainI18NService, AlainProvideLang, AlainProvideOptions, ApiConfig, App, DrawerHelperOptions, Environment, ExceptionLocaleData, FullLocaleData, HttpObserve, HttpOptions, Layout, LocaleData, METHOD_TYPE, Menu, MenuIcon, MenuInner, MiniProgressLocaleData, ModalHelperDragOptions, ModalHelperOptions, NoticeIconLocaleData, OnboardingLocaleData, REP_TYPE, ReuseTabLocaleData, RouteTitle, SFErrorLocaleData, SFLocaleData, STLocaleData, SettingsKeys, SettingsNotify, TagSelectLocaleData, User, YNMode, YNOptions, _HttpHeaders };