@yelon/util 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.
- package/array/index.d.ts +149 -2
- package/browser/index.d.ts +134 -5
- package/config/index.d.ts +1423 -14
- package/date-time/index.d.ts +115 -2
- package/decorator/index.d.ts +37 -2
- package/fesm2022/array.mjs +9 -8
- package/fesm2022/array.mjs.map +1 -1
- package/fesm2022/browser.mjs +7 -6
- package/fesm2022/browser.mjs.map +1 -1
- package/fesm2022/config.mjs +3 -3
- package/fesm2022/config.mjs.map +1 -1
- package/fesm2022/date-time.mjs.map +1 -1
- package/fesm2022/decorator.mjs +1 -66
- package/fesm2022/decorator.mjs.map +1 -1
- package/fesm2022/form.mjs.map +1 -1
- package/fesm2022/format.mjs +8 -7
- package/fesm2022/format.mjs.map +1 -1
- package/fesm2022/math.mjs.map +1 -1
- package/fesm2022/mcache.mjs.map +1 -1
- package/fesm2022/mtypes.mjs.map +1 -1
- package/fesm2022/other.mjs +6 -6
- package/fesm2022/other.mjs.map +1 -1
- package/fesm2022/pipe-currency.mjs +13 -13
- package/fesm2022/pipe-currency.mjs.map +1 -1
- package/fesm2022/pipe-filter.mjs +7 -7
- package/fesm2022/pipe-filter.mjs.map +1 -1
- package/fesm2022/pipe-format.mjs +7 -7
- package/fesm2022/pipe-format.mjs.map +1 -1
- package/fesm2022/token.mjs.map +1 -1
- package/form/index.d.ts +80 -2
- package/format/index.d.ts +239 -4
- package/math/index.d.ts +50 -2
- package/mcache/index.d.ts +21 -1
- package/mtypes/index.d.ts +197 -9
- package/other/index.d.ts +154 -7
- package/package.json +16 -16
- package/pipes/currency/index.d.ts +52 -4
- package/pipes/filter/index.d.ts +21 -2
- package/pipes/format/index.d.ts +36 -2
- package/token/index.d.ts +18 -2
- package/array/array-type.service.d.ts +0 -68
- package/array/array.service.d.ts +0 -78
- package/browser/cookie.service.d.ts +0 -62
- package/browser/copy.d.ts +0 -6
- package/browser/is-empty.d.ts +0 -6
- package/browser/scroll.service.d.ts +0 -34
- package/browser/style.d.ts +0 -19
- package/config/abc/cell.type.d.ts +0 -118
- package/config/abc/date-picker.type.d.ts +0 -49
- package/config/abc/error-collect.type.d.ts +0 -10
- package/config/abc/exception.type.d.ts +0 -7
- package/config/abc/image.type.d.ts +0 -15
- package/config/abc/index.d.ts +0 -17
- package/config/abc/loading.type.d.ts +0 -29
- package/config/abc/lodop.type.d.ts +0 -33
- package/config/abc/media.type.d.ts +0 -10
- package/config/abc/onboarding.type.d.ts +0 -4
- package/config/abc/page-header.type.d.ts +0 -39
- package/config/abc/pdf.type.d.ts +0 -35
- package/config/abc/se.type.d.ts +0 -32
- package/config/abc/sg.type.d.ts +0 -10
- package/config/abc/st.type.d.ts +0 -458
- package/config/abc/sv.type.d.ts +0 -14
- package/config/abc/xlsx.type.d.ts +0 -12
- package/config/abc/zip.type.d.ts +0 -10
- package/config/acl/acl.type.d.ts +0 -31
- package/config/auth/auth.type.d.ts +0 -55
- package/config/bis/bis.type.d.ts +0 -11
- package/config/cache/cache.type.d.ts +0 -66
- package/config/chart/chart.type.d.ts +0 -30
- package/config/config.service.d.ts +0 -14
- package/config/config.types.d.ts +0 -51
- package/config/mock/mock.type.d.ts +0 -14
- package/config/sf/sf.type.d.ts +0 -130
- package/config/socket/socket.type.d.ts +0 -4
- package/config/theme/http.type.d.ts +0 -15
- package/config/theme/i18n.type.d.ts +0 -14
- package/config/theme/index.d.ts +0 -4
- package/config/theme/pipe.type.d.ts +0 -7
- package/config/theme/responsive.type.d.ts +0 -10
- package/config/util/array.type.d.ts +0 -22
- package/config/util/currency.type.d.ts +0 -39
- package/date-time/picker.d.ts +0 -68
- package/date-time/time.d.ts +0 -42
- package/decorator/convert.d.ts +0 -31
- package/decorator/zone-outside.d.ts +0 -35
- package/form/match-control.d.ts +0 -15
- package/form/validators.d.ts +0 -62
- package/format/currency.service.d.ts +0 -38
- package/format/currency.types.d.ts +0 -82
- package/format/string.d.ts +0 -41
- package/format/validate.d.ts +0 -72
- package/math/in-range.d.ts +0 -14
- package/math/round.d.ts +0 -33
- package/mcache/localStorageUtils.d.ts +0 -19
- package/mtypes/authority.type.d.ts +0 -3
- package/mtypes/header-menu.type.d.ts +0 -12
- package/mtypes/menu.type.d.ts +0 -40
- package/mtypes/nav.types.d.ts +0 -29
- package/mtypes/page.d.ts +0 -46
- package/mtypes/project-info.types.d.ts +0 -22
- package/mtypes/response.d.ts +0 -7
- package/mtypes/role.type.d.ts +0 -10
- package/mtypes/user.types.d.ts +0 -22
- package/other/assert.d.ts +0 -36
- package/other/deep.d.ts +0 -32
- package/other/favicon.d.ts +0 -2
- package/other/lazy.service.d.ts +0 -44
- package/other/logger.d.ts +0 -4
- package/other/path-to-regexp.service.d.ts +0 -26
- package/other/resize.d.ts +0 -1
- package/pipes/currency/cny.pipe.d.ts +0 -14
- package/pipes/currency/mega.pipe.d.ts +0 -15
- package/pipes/currency/module.d.ts +0 -9
- package/pipes/currency/price.pipe.d.ts +0 -18
- package/pipes/filter/filter.pipe.d.ts +0 -12
- package/pipes/filter/module.d.ts +0 -7
- package/pipes/format/mask.pipe.d.ts +0 -27
- package/pipes/format/module.d.ts +0 -7
- package/token/page-visibility.d.ts +0 -8
- package/token/window.d.ts +0 -7
package/config/index.d.ts
CHANGED
@@ -1,14 +1,1423 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
import { ModalOptions } from 'ng-zorro-antd/modal';
|
2
|
+
import { DisabledTimeFn, SupportTimeOptions, NzDateMode, PresetRanges } from 'ng-zorro-antd/date-picker';
|
3
|
+
import { SafeHtml } from '@angular/platform-browser';
|
4
|
+
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
5
|
+
import * as i0 from '@angular/core';
|
6
|
+
import { TemplateRef, TrackByFunction, InjectionToken, EnvironmentProviders } from '@angular/core';
|
7
|
+
import { Observable } from 'rxjs';
|
8
|
+
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
9
|
+
import { NzDrawerOptions } from 'ng-zorro-antd/drawer';
|
10
|
+
import { PaginationItemRenderContext } from 'ng-zorro-antd/pagination';
|
11
|
+
import { NzTableSortOrder } from 'ng-zorro-antd/table';
|
12
|
+
import { NzImagePreviewOptions } from 'ng-zorro-antd/image';
|
13
|
+
import { Options } from 'ajv';
|
14
|
+
import { RxStompConfig } from '@stomp/rx-stomp';
|
15
|
+
|
16
|
+
interface YunzaiErrorCollectConfig {
|
17
|
+
/**
|
18
|
+
* 监听频率,默认:`500`
|
19
|
+
*/
|
20
|
+
freq?: number;
|
21
|
+
/**
|
22
|
+
* 顶部偏移值,默认:`145`
|
23
|
+
*/
|
24
|
+
offsetTop?: number;
|
25
|
+
}
|
26
|
+
|
27
|
+
interface YunzaiImageConfig {
|
28
|
+
/**
|
29
|
+
* 默认大小,默认值:`64`,单位:px
|
30
|
+
*/
|
31
|
+
size?: number;
|
32
|
+
/**
|
33
|
+
* 错误图片,默认:`./assets/img/logo.svg`
|
34
|
+
*/
|
35
|
+
error?: string;
|
36
|
+
/**
|
37
|
+
* 预览大图对话框参数
|
38
|
+
*/
|
39
|
+
previewModalOptions?: ModalOptions;
|
40
|
+
}
|
41
|
+
|
42
|
+
interface YunzaiDateRangePickerConfig {
|
43
|
+
/**
|
44
|
+
* 默认:`yyyy-MM-dd`
|
45
|
+
*/
|
46
|
+
nzFormat?: string;
|
47
|
+
nzClassName?: string;
|
48
|
+
nzSize?: string;
|
49
|
+
nzStyle?: string;
|
50
|
+
/**
|
51
|
+
* 默认:`true`
|
52
|
+
*/
|
53
|
+
nzAllowClear?: boolean;
|
54
|
+
/**
|
55
|
+
* 默认:`false`
|
56
|
+
*/
|
57
|
+
nzAutoFocus?: boolean;
|
58
|
+
nzDisabledDate?: (d: Date) => boolean;
|
59
|
+
nzDisabledTime?: DisabledTimeFn;
|
60
|
+
/**
|
61
|
+
* 默认:`{ position: 'relative' }`
|
62
|
+
*/
|
63
|
+
nzPopupStyle?: Record<string, unknown>;
|
64
|
+
nzDropdownClassName?: string;
|
65
|
+
nzRenderExtraFooter?: string;
|
66
|
+
nzShowTime?: SupportTimeOptions | boolean;
|
67
|
+
/**
|
68
|
+
* 默认:`true`
|
69
|
+
*/
|
70
|
+
nzShowToday?: boolean;
|
71
|
+
nzMode?: NzDateMode | NzDateMode[];
|
72
|
+
nzRanges?: PresetRanges;
|
73
|
+
shortcuts?: YunzaiDateRangePickerShortcut;
|
74
|
+
}
|
75
|
+
interface YunzaiDateRangePickerShortcut {
|
76
|
+
/** Whether to enable, default: `false` */
|
77
|
+
enabled?: boolean;
|
78
|
+
/** Whether to close the panel after clicking, default: `true` */
|
79
|
+
closed?: boolean;
|
80
|
+
/**
|
81
|
+
* Shortcut list, default: `今天`, `昨天`, `近3天`, `近7天`, `本周`, `本月`, `全年`
|
82
|
+
*/
|
83
|
+
list?: YunzaiDateRangePickerShortcutItem[];
|
84
|
+
}
|
85
|
+
interface YunzaiDateRangePickerShortcutItem {
|
86
|
+
[key: string]: any;
|
87
|
+
text: string;
|
88
|
+
fn: (value: Array<Date | null>) => [Date | null, Date | null];
|
89
|
+
}
|
90
|
+
|
91
|
+
interface YunzaiLoadingConfig {
|
92
|
+
/**
|
93
|
+
* 类型,默认:`spin`
|
94
|
+
*/
|
95
|
+
type?: 'text' | 'icon' | 'spin' | 'custom';
|
96
|
+
/**
|
97
|
+
* 显示文本,默认:`加载中...`
|
98
|
+
*/
|
99
|
+
text?: string;
|
100
|
+
icon?: {
|
101
|
+
/** `nz-icon.nzType`,默认:`loading` */
|
102
|
+
type?: string;
|
103
|
+
/** `nz-icon.nzTheme`,默认:`outline` */
|
104
|
+
theme?: 'fill' | 'outline' | 'twotone';
|
105
|
+
/** `nz-icon.nzSpin`,默认:`true` */
|
106
|
+
spin?: boolean;
|
107
|
+
};
|
108
|
+
custom?: {
|
109
|
+
html?: string | SafeHtml;
|
110
|
+
style?: Record<string, unknown>;
|
111
|
+
};
|
112
|
+
/**
|
113
|
+
* 延迟,默认:`0`
|
114
|
+
*/
|
115
|
+
delay?: number;
|
116
|
+
/** 文字方向 */
|
117
|
+
direction?: 'ltr' | 'rtl';
|
118
|
+
}
|
119
|
+
|
120
|
+
interface YunzaiLodopConfig {
|
121
|
+
/**
|
122
|
+
* 注册信息:主注册号
|
123
|
+
*/
|
124
|
+
license?: string;
|
125
|
+
/**
|
126
|
+
* 注册信息:附加注册号A
|
127
|
+
*/
|
128
|
+
licenseA?: string;
|
129
|
+
/**
|
130
|
+
* 注册信息:附加注册号B
|
131
|
+
*/
|
132
|
+
licenseB?: string;
|
133
|
+
/**
|
134
|
+
* 注册信息:注册单位名称
|
135
|
+
*/
|
136
|
+
companyName?: string;
|
137
|
+
/**
|
138
|
+
* Lodop 远程脚本URL地址,**注意**务必使用 `name` 属性指定变量值
|
139
|
+
*
|
140
|
+
* - http://localhost:18000/CLodopfuncs.js [默认]
|
141
|
+
* - https://localhost:8443/CLodopfuncs.js
|
142
|
+
*/
|
143
|
+
url?: string;
|
144
|
+
/**
|
145
|
+
* Lodop 变量名,默认:`CLODOP`
|
146
|
+
*/
|
147
|
+
name?: string;
|
148
|
+
/**
|
149
|
+
* 检查次数,默认 `100`,当检查超过时视为异常,这是因为 Lodop 需要连接 WebSocket
|
150
|
+
*/
|
151
|
+
checkMaxCount?: number;
|
152
|
+
}
|
153
|
+
|
154
|
+
interface YunzaiPageHeaderConfig {
|
155
|
+
/**
|
156
|
+
* 首页文本,若指定空表示不显示,默认:`首页`
|
157
|
+
*/
|
158
|
+
home?: string;
|
159
|
+
/**
|
160
|
+
* 首页链接,默认:`/`
|
161
|
+
*/
|
162
|
+
homeLink?: string;
|
163
|
+
/**
|
164
|
+
* 首页链接国际化参数
|
165
|
+
*/
|
166
|
+
homeI18n?: string;
|
167
|
+
/**
|
168
|
+
* 自动生成导航,以当前路由从主菜单中定位,默认:`true`
|
169
|
+
*/
|
170
|
+
autoBreadcrumb?: boolean;
|
171
|
+
/**
|
172
|
+
* 自动向上递归查找,默认:`false`
|
173
|
+
* - 菜单数据源包含 `/ware`,则 `/ware/1` 也视为 `/ware` 项
|
174
|
+
*/
|
175
|
+
recursiveBreadcrumb?: boolean;
|
176
|
+
/**
|
177
|
+
* 自动生成标题,以当前路由从主菜单中定位,默认:`true`
|
178
|
+
*/
|
179
|
+
autoTitle?: boolean;
|
180
|
+
/**
|
181
|
+
* 是否自动将标准信息同步至 `TitleService`、`ReuseService` 下,默认:`true`
|
182
|
+
*/
|
183
|
+
syncTitle?: boolean;
|
184
|
+
/**
|
185
|
+
* 是否固定模式,默认:`false`
|
186
|
+
*/
|
187
|
+
fixed?: boolean;
|
188
|
+
/**
|
189
|
+
* 固定偏移值,默认:`64`
|
190
|
+
*/
|
191
|
+
fixedOffsetTop?: number;
|
192
|
+
}
|
193
|
+
|
194
|
+
interface YunzaiSEConfig {
|
195
|
+
/**
|
196
|
+
* 大小,默认:`default`
|
197
|
+
* - `compact` 紧凑型,强制忽略 `error`、`extra` 展示
|
198
|
+
*/
|
199
|
+
size?: 'default' | 'compact';
|
200
|
+
/**
|
201
|
+
* 布局类型,等同 `nzLayout`,默认:`horizontal`
|
202
|
+
* - `inline` 时强制大小为 `compact`
|
203
|
+
*/
|
204
|
+
nzLayout?: 'horizontal' | 'vertical' | 'inline';
|
205
|
+
/**
|
206
|
+
* 间距,当 `nzLayout:horizontal` 时有效,默认:`32`
|
207
|
+
*/
|
208
|
+
gutter?: number;
|
209
|
+
/**
|
210
|
+
* 列数,默认:`2`
|
211
|
+
*/
|
212
|
+
col?: number;
|
213
|
+
/**
|
214
|
+
* 标签文本宽度,单位:`px`,默认:`150`
|
215
|
+
*/
|
216
|
+
labelWidth?: number;
|
217
|
+
/**
|
218
|
+
* 是否立即呈现错误视觉,默认:`false`
|
219
|
+
*/
|
220
|
+
firstVisual?: boolean;
|
221
|
+
/**
|
222
|
+
* 是否忽略 `dirty` 校验,默认:`false`
|
223
|
+
*/
|
224
|
+
ignoreDirty?: boolean;
|
225
|
+
}
|
226
|
+
|
227
|
+
declare class YunzaiSVConfig {
|
228
|
+
/** 大小,默认:`large` */
|
229
|
+
size?: 'small' | 'large';
|
230
|
+
/** 间距,默认:`32` */
|
231
|
+
gutter?: number;
|
232
|
+
/** 布局,默认:`horizontal` */
|
233
|
+
layout?: 'horizontal' | 'vertical';
|
234
|
+
/** 列数,默认:`3` */
|
235
|
+
col?: number;
|
236
|
+
/** 是否显示默认值,当内容为空值时显示 `-`,默认:`true` */
|
237
|
+
default?: boolean;
|
238
|
+
/** `label` 固定宽度,若 `null` 或 `undefined` 表示非固定,默认:`null` */
|
239
|
+
labelWidth?: number;
|
240
|
+
}
|
241
|
+
|
242
|
+
interface YunzaiSGConfig {
|
243
|
+
/**
|
244
|
+
* 间距,默认:`32`
|
245
|
+
*/
|
246
|
+
gutter?: number;
|
247
|
+
/**
|
248
|
+
* 列数,默认:`2`
|
249
|
+
*/
|
250
|
+
col?: number;
|
251
|
+
}
|
252
|
+
|
253
|
+
interface YunzaiSTConfig {
|
254
|
+
/**
|
255
|
+
* 起始页码,默认为:`1`
|
256
|
+
*/
|
257
|
+
pi?: number;
|
258
|
+
/**
|
259
|
+
* 每页数量,默认:`10`
|
260
|
+
*/
|
261
|
+
ps?: number;
|
262
|
+
/**
|
263
|
+
* 是否显示边框,默认:`false`
|
264
|
+
*/
|
265
|
+
bordered?: boolean;
|
266
|
+
/**
|
267
|
+
* table大小,默认:`default`
|
268
|
+
*/
|
269
|
+
size?: 'small' | 'middle' | 'default';
|
270
|
+
/**
|
271
|
+
* 是否开启响应式,默认:`true`
|
272
|
+
*/
|
273
|
+
responsive?: boolean;
|
274
|
+
/**
|
275
|
+
* 是否在小屏幕下才显示顶部与底部,默认:`false`
|
276
|
+
*/
|
277
|
+
responsiveHideHeaderFooter?: boolean;
|
278
|
+
/** 请求体配置 */
|
279
|
+
req?: {
|
280
|
+
/**
|
281
|
+
* 分页类型,默认:`page`
|
282
|
+
* - `page` 使用 `pi`,`ps` 组合
|
283
|
+
* - `skip` 使用 `skip`,`limit` 组合
|
284
|
+
*/
|
285
|
+
type?: 'page' | 'skip';
|
286
|
+
/**
|
287
|
+
* Whether to ignore `null` or `unfind` values in parameters
|
288
|
+
*
|
289
|
+
* 是否忽略参数中 `null` 或 `undefind` 值
|
290
|
+
*/
|
291
|
+
ignoreParamNull?: boolean;
|
292
|
+
/** 请求方法,默认:`GET` */
|
293
|
+
method?: string;
|
294
|
+
/** 请求体 `Header` */
|
295
|
+
headers?: NzSafeAny;
|
296
|
+
/**
|
297
|
+
* 重命名参数 `pi`、`ps`,默认:`{ pi: 'pi', ps: 'ps', skip: 'skip', limit: 'limit' }`
|
298
|
+
* - `{ pi: 'Page' }` => `pi` 会被替换成 Page
|
299
|
+
*/
|
300
|
+
reName?: {
|
301
|
+
pi?: string;
|
302
|
+
ps?: string;
|
303
|
+
skip?: string;
|
304
|
+
limit?: string;
|
305
|
+
};
|
306
|
+
/**
|
307
|
+
* 是否将请求所有参数数据都放入 `body` 当中(`url` 地址本身参数除外),仅当 `method: 'POST'` 时有效,默认:`false`
|
308
|
+
*/
|
309
|
+
allInBody?: boolean;
|
310
|
+
/**
|
311
|
+
* 是否延迟加载数据,即渲染结束后不会主动发起请求,默认:`false`
|
312
|
+
*/
|
313
|
+
lazyLoad?: boolean;
|
314
|
+
/**
|
315
|
+
* 请求前数据处理
|
316
|
+
*/
|
317
|
+
process?: (requestOptions: NzSafeAny) => NzSafeAny;
|
318
|
+
};
|
319
|
+
/** 返回体配置 */
|
320
|
+
res?: {
|
321
|
+
/**
|
322
|
+
* 重命名返回参数 `total`、`list`,默认:`{ list: ['list'], total: ['total'] }`
|
323
|
+
* - `{ total: 'Total' }` => Total 会被当作 `total`
|
324
|
+
*/
|
325
|
+
reName?: {
|
326
|
+
total?: string | string[];
|
327
|
+
list?: string | string[];
|
328
|
+
} | ((result: NzSafeAny, options: {
|
329
|
+
pi: number;
|
330
|
+
ps: number;
|
331
|
+
total: number;
|
332
|
+
}) => {
|
333
|
+
total: number;
|
334
|
+
list: NzSafeAny[];
|
335
|
+
});
|
336
|
+
/**
|
337
|
+
* 数据预处理
|
338
|
+
*/
|
339
|
+
process?: (data: NzSafeAny[], rawData?: NzSafeAny) => NzSafeAny[];
|
340
|
+
};
|
341
|
+
/** 返回体配置 */
|
342
|
+
page?: {
|
343
|
+
/**
|
344
|
+
* 前端分页,当 `data` 为`any[]` 或 `Observable<any[]>` 有效,默认:`true`
|
345
|
+
* - `true` 由 `st` 根据 `data` 长度受控分页,包括:排序、过滤等
|
346
|
+
* - `false` 由用户通过 `total` 和 `data` 参数受控分页,并维护 `(change)` 当分页变更时重新加载数据
|
347
|
+
*/
|
348
|
+
front?: boolean;
|
349
|
+
/**
|
350
|
+
* 后端分页是否采用`0`基索引,只在`data`类型为`string`时有效,默认:`false`
|
351
|
+
*/
|
352
|
+
zeroIndexed?: boolean;
|
353
|
+
/**
|
354
|
+
* 指定分页显示的位置,默认:`bottom`
|
355
|
+
*/
|
356
|
+
position?: 'top' | 'bottom' | 'both';
|
357
|
+
/**
|
358
|
+
* 指定分页分页方向,默认:`right`
|
359
|
+
*/
|
360
|
+
placement?: 'left' | 'center' | 'right';
|
361
|
+
/**
|
362
|
+
* 是否显示分页器,默认:`true`
|
363
|
+
*/
|
364
|
+
show?: boolean;
|
365
|
+
/**
|
366
|
+
* 是否显示分页器中改变页数,默认:`false`
|
367
|
+
*/
|
368
|
+
showSize?: boolean;
|
369
|
+
/**
|
370
|
+
* 分页器中每页显示条目数下拉框值,默认:`[10, 20, 30, 40, 50]`
|
371
|
+
*/
|
372
|
+
pageSizes?: number[];
|
373
|
+
/**
|
374
|
+
* 是否显示分页器中快速跳转,默认:`false`
|
375
|
+
*/
|
376
|
+
showQuickJumper?: boolean;
|
377
|
+
/**
|
378
|
+
* 是否显示总数据量,默认:`true`
|
379
|
+
* - `boolean` 类型显示与否,默认模板:`共 {{total}} 条`
|
380
|
+
* - `string` 自定义模板,模板变量:
|
381
|
+
* - `{{total}}` 表示数据总量
|
382
|
+
* - `{{range[0]}}` 表示当前页开始数量值
|
383
|
+
* - `{{range[1]}}` 表示当前页结束数量值
|
384
|
+
*/
|
385
|
+
total?: string | boolean;
|
386
|
+
/**
|
387
|
+
* 用于自定义页码的结构,用法参照 Pagination 组件
|
388
|
+
*/
|
389
|
+
itemRender?: TemplateRef<PaginationItemRenderContext> | null;
|
390
|
+
/**
|
391
|
+
* 当添加该属性时,显示为简单分页,默认:`false`
|
392
|
+
*/
|
393
|
+
simple?: boolean;
|
394
|
+
/**
|
395
|
+
* 切换分页时返回顶部,默认:`true`
|
396
|
+
*/
|
397
|
+
toTop?: boolean;
|
398
|
+
/**
|
399
|
+
* 返回顶部偏移值,默认:`100`
|
400
|
+
*/
|
401
|
+
toTopOffset?: number;
|
402
|
+
};
|
403
|
+
/**
|
404
|
+
* 重命名排序值,`columns` 的重命名高于属性
|
405
|
+
*/
|
406
|
+
sortReName?: {
|
407
|
+
ascend?: string;
|
408
|
+
descend?: string;
|
409
|
+
};
|
410
|
+
/**
|
411
|
+
* 排序状态
|
412
|
+
*/
|
413
|
+
sortDirections?: NzTableSortOrder[];
|
414
|
+
/**
|
415
|
+
* 单排序规则
|
416
|
+
* - 若不指定,则返回:`columnName=ascend|descend`
|
417
|
+
* - 若指定,则返回:`sort=columnName.(ascend|descend)`
|
418
|
+
*/
|
419
|
+
singleSort?: {
|
420
|
+
/** 请求参数名,默认:`sort` */
|
421
|
+
key?: string;
|
422
|
+
/** 列名与状态间分隔符,默认:`.` */
|
423
|
+
nameSeparator?: string;
|
424
|
+
};
|
425
|
+
/**
|
426
|
+
* 是否多排序,当 `sort` 多个相同值时自动合并,建议后端支持时使用
|
427
|
+
*/
|
428
|
+
multiSort?: {
|
429
|
+
/** 请求参数名,默认:`sort` */
|
430
|
+
key?: string;
|
431
|
+
/** 不同属性间分隔符,默认:`-` */
|
432
|
+
separator?: string;
|
433
|
+
/** 列名与状态间分隔符,默认:`.` */
|
434
|
+
nameSeparator?: string;
|
435
|
+
/**
|
436
|
+
* 是否以数组的形式传递参数
|
437
|
+
* - `true` 表示使用 `url?sort=name.asc&sort=age.desc` 形式
|
438
|
+
* - `false` 表示使用 `url?sort=name.asc-age.desc` 形式
|
439
|
+
*/
|
440
|
+
arrayParam?: boolean;
|
441
|
+
/**
|
442
|
+
* 是否全局多排序模式,默认:`true`
|
443
|
+
* - `true` 表示所有 `st` 默认为多排序
|
444
|
+
* - `false` 表示需要为每个 `st` 添加 `multiSort` 才会视为多排序模式
|
445
|
+
*/
|
446
|
+
global?: boolean;
|
447
|
+
/**
|
448
|
+
* 是否保持空值的键名,默认:`true`
|
449
|
+
* - `true` 表示不管是否有排序都会发送 `key` 键名
|
450
|
+
* - `false` 表示无排序动作时不会发送 `key` 键名
|
451
|
+
*/
|
452
|
+
keepEmptyKey?: boolean;
|
453
|
+
};
|
454
|
+
/**
|
455
|
+
* 按钮模态框配置
|
456
|
+
*/
|
457
|
+
modal?: {
|
458
|
+
/**
|
459
|
+
* 是否只传递纯净数据
|
460
|
+
*/
|
461
|
+
pureRecoard?: boolean;
|
462
|
+
/**
|
463
|
+
* 指定模态框目标组件的接收参数名,默认:`record`
|
464
|
+
*/
|
465
|
+
paramsName?: string;
|
466
|
+
/** 大小;例如:lg、600,默认:`lg` */
|
467
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | '' | number;
|
468
|
+
/** 对话框 [ModalOptions](https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/modal/modal-types.ts) 参数 */
|
469
|
+
modalOptions?: ModalOptions;
|
470
|
+
/** 是否精准(默认:`true`),若返回值非空值(`null`或`undefined`)视为成功,否则视为错误 */
|
471
|
+
exact?: boolean;
|
472
|
+
};
|
473
|
+
/**
|
474
|
+
* 按钮抽屉配置
|
475
|
+
*/
|
476
|
+
drawer?: {
|
477
|
+
/**
|
478
|
+
* 是否只传递纯净数据
|
479
|
+
*/
|
480
|
+
pureRecoard?: boolean;
|
481
|
+
/**
|
482
|
+
* 抽屉目标组件的接收参数名,默认:`record`
|
483
|
+
*/
|
484
|
+
paramsName?: string;
|
485
|
+
/**
|
486
|
+
* 大小;例如:lg、600,默认:`md`
|
487
|
+
*
|
488
|
+
* | 类型 | 默认大小 |
|
489
|
+
* | --- | ------ |
|
490
|
+
* | `sm` | `300` |
|
491
|
+
* | `md` | `600` |
|
492
|
+
* | `lg` | `900` |
|
493
|
+
* | `xl` | `1200` |
|
494
|
+
*
|
495
|
+
* > 以上值,可通过覆盖相应的LESS参数自行调整
|
496
|
+
*/
|
497
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | number;
|
498
|
+
/**
|
499
|
+
* 是否包含底部工具条,默认:`true`
|
500
|
+
*/
|
501
|
+
footer?: boolean;
|
502
|
+
/**
|
503
|
+
* 底部工具条高度,默认:`55`
|
504
|
+
*/
|
505
|
+
footerHeight?: number;
|
506
|
+
/** 抽屉 [NzDrawerOptions](https://ng.ant.design/components/drawer/zh#nzdraweroptions) 参数 */
|
507
|
+
drawerOptions?: NzDrawerOptions;
|
508
|
+
};
|
509
|
+
/**
|
510
|
+
* 气泡参数
|
511
|
+
*/
|
512
|
+
pop?: {
|
513
|
+
/**
|
514
|
+
* Title of the popover, default: `确认删除吗?`
|
515
|
+
*/
|
516
|
+
title?: string;
|
517
|
+
/**
|
518
|
+
* Popover trigger mode, default: `click`
|
519
|
+
*/
|
520
|
+
trigger?: 'click' | 'focus' | 'hover';
|
521
|
+
/**
|
522
|
+
* The position of the popover relative to the target, default: `top`
|
523
|
+
*/
|
524
|
+
placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
525
|
+
/**
|
526
|
+
* Class name of the popover card
|
527
|
+
*/
|
528
|
+
overlayClassName?: string;
|
529
|
+
/**
|
530
|
+
* Style of the popover card
|
531
|
+
*/
|
532
|
+
overlayStyle?: Record<string, string>;
|
533
|
+
/**
|
534
|
+
* Text of the Cancel button
|
535
|
+
*/
|
536
|
+
cancelText?: string;
|
537
|
+
/**
|
538
|
+
* Text of the Confirm button
|
539
|
+
*/
|
540
|
+
okText?: string;
|
541
|
+
/**
|
542
|
+
* Button `type` of the Confirm button
|
543
|
+
*/
|
544
|
+
okType?: 'primary' | 'ghost' | 'dashed' | 'danger' | 'default';
|
545
|
+
/**
|
546
|
+
* Customize icon of confirmation
|
547
|
+
*/
|
548
|
+
icon?: string;
|
549
|
+
};
|
550
|
+
/**
|
551
|
+
* 过滤按钮确认文本
|
552
|
+
*/
|
553
|
+
filterConfirmText?: string;
|
554
|
+
/**
|
555
|
+
* 过滤按钮重置文本
|
556
|
+
*/
|
557
|
+
filterClearText?: string;
|
558
|
+
/**
|
559
|
+
* 按钮图标
|
560
|
+
*/
|
561
|
+
btnIcon?: {
|
562
|
+
/** 图标主题风格,默认:`outline` */
|
563
|
+
theme?: 'outline' | 'twotone' | 'fill';
|
564
|
+
/** 是否有旋转动画,默认:`false` */
|
565
|
+
spin?: boolean;
|
566
|
+
/** 仅适用双色图标,设置双色图标的主要颜色,仅对当前 icon 生效 */
|
567
|
+
twoToneColor?: string;
|
568
|
+
/** 指定来自 IconFont 的图标类型 */
|
569
|
+
iconfont?: string;
|
570
|
+
};
|
571
|
+
/**
|
572
|
+
* 行号索引,默认:`1`
|
573
|
+
* - 计算规则为:`index + noIndex`
|
574
|
+
*/
|
575
|
+
noIndex?: number;
|
576
|
+
/**
|
577
|
+
* 表格行的类名
|
578
|
+
*/
|
579
|
+
rowClassName?: (record: NzSafeAny, index: number) => string;
|
580
|
+
/**
|
581
|
+
* 通过点击行来展开子行,Default: `false`
|
582
|
+
*/
|
583
|
+
expandRowByClick?: boolean;
|
584
|
+
/**
|
585
|
+
* 手风琴模式,Default: `false`
|
586
|
+
*/
|
587
|
+
expandAccordion?: boolean;
|
588
|
+
/**
|
589
|
+
* 指定 `width` 模式
|
590
|
+
*/
|
591
|
+
widthMode?: {
|
592
|
+
/**
|
593
|
+
* 宽度类型,默认:`default`
|
594
|
+
* - `default` 默认行为
|
595
|
+
* - `strict` 严格模式,即强制按 `width` 指定的宽度呈现,并根据 `strictBehavior` 类型处理
|
596
|
+
*/
|
597
|
+
type?: 'strict' | 'default';
|
598
|
+
/**
|
599
|
+
* 严格模式的处理行为,默认:`truncate`
|
600
|
+
* - `wrap` 强制换行
|
601
|
+
* - `truncate` 截短
|
602
|
+
*/
|
603
|
+
strictBehavior?: 'wrap' | 'truncate';
|
604
|
+
};
|
605
|
+
/**
|
606
|
+
* Default: `54`
|
607
|
+
*/
|
608
|
+
virtualItemSize?: number;
|
609
|
+
/**
|
610
|
+
* Default: `200`
|
611
|
+
*/
|
612
|
+
virtualMaxBufferPx?: number;
|
613
|
+
/**
|
614
|
+
* Default: `100`
|
615
|
+
*/
|
616
|
+
virtualMinBufferPx?: number;
|
617
|
+
/**
|
618
|
+
* The TrackByFunction to use for tracking changes
|
619
|
+
*/
|
620
|
+
virtualForTrackBy?: TrackByFunction<unknown>;
|
621
|
+
/**
|
622
|
+
* Conditional expression rendering behavior, can be set to `hide` (default) or `disabled`, Default: `hide`
|
623
|
+
*/
|
624
|
+
iifBehavior?: 'hide' | 'disabled';
|
625
|
+
/**
|
626
|
+
* The spinning indicator
|
627
|
+
*/
|
628
|
+
loadingIndicator?: TemplateRef<void>;
|
629
|
+
/**
|
630
|
+
* Specifies a delay in milliseconds for loading state (prevent flush)
|
631
|
+
*/
|
632
|
+
loadingDelay?: number;
|
633
|
+
/**
|
634
|
+
* Custom no result content
|
635
|
+
*/
|
636
|
+
noResult?: string | TemplateRef<void>;
|
637
|
+
/**
|
638
|
+
* Safe rendering type, default: `safeHtml`
|
639
|
+
*
|
640
|
+
* 安全渲染方式,默认:`safeHtml`
|
641
|
+
*/
|
642
|
+
safeType?: 'text' | 'html' | 'safeHtml';
|
643
|
+
/**
|
644
|
+
* Override the default request behavior, you can customize your own request implementation, for example: Graphql
|
645
|
+
*
|
646
|
+
* 覆盖默认的请求行为,可以自定义自己的请求实现,例如:Graphql
|
647
|
+
*/
|
648
|
+
customRequest?: (options: {
|
649
|
+
method: string;
|
650
|
+
url: string;
|
651
|
+
options: {
|
652
|
+
body?: unknown;
|
653
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
654
|
+
params?: HttpParams | Record<string, string | string[]>;
|
655
|
+
};
|
656
|
+
}) => Observable<NzSafeAny>;
|
657
|
+
/**
|
658
|
+
* Date format
|
659
|
+
*
|
660
|
+
* 日期格式化
|
661
|
+
*/
|
662
|
+
date?: {
|
663
|
+
/**
|
664
|
+
* Format string, default: `yyyy-MM-dd HH:mm`
|
665
|
+
*
|
666
|
+
* 格式化字符串,默认:`yyyy-MM-dd HH:mm`
|
667
|
+
*/
|
668
|
+
format: string;
|
669
|
+
};
|
670
|
+
yn?: {
|
671
|
+
/**
|
672
|
+
* 真值条件,(默认:`true`)
|
673
|
+
*/
|
674
|
+
truth?: unknown;
|
675
|
+
/**
|
676
|
+
* 徽章 `true` 时文本,(默认:`是`)
|
677
|
+
*/
|
678
|
+
yes?: string;
|
679
|
+
/**
|
680
|
+
* 徽章 `false` 时文本,(默认:`否`)
|
681
|
+
*/
|
682
|
+
no?: string;
|
683
|
+
/**
|
684
|
+
* 徽章显示风格,默认:`icon`
|
685
|
+
* - `full` 图标和文本
|
686
|
+
* - `icon` 图标
|
687
|
+
* - `text` 文本
|
688
|
+
*/
|
689
|
+
mode?: 'full' | 'icon' | 'text';
|
690
|
+
};
|
691
|
+
/**
|
692
|
+
* Max button option can be showed, and the extra part are auto generated under `more`
|
693
|
+
*
|
694
|
+
* 配置最多显示多少个按钮,多余部分自动生成至 `更多` 下面
|
695
|
+
*
|
696
|
+
* > 注意:若在 `buttons` 下配置过按钮组会导致其失效
|
697
|
+
*/
|
698
|
+
maxMultipleButton?: {
|
699
|
+
/**
|
700
|
+
* 更多按钮文本,默认:`更多`
|
701
|
+
*/
|
702
|
+
text?: string;
|
703
|
+
/**
|
704
|
+
* 超出数量自动合并,默认:`2`
|
705
|
+
*/
|
706
|
+
count?: number;
|
707
|
+
};
|
708
|
+
}
|
709
|
+
|
710
|
+
interface YunzaiXlsxConfig {
|
711
|
+
/**
|
712
|
+
* Xlsx library path, default: `//cdn.bootcss.com/xlsx/0.15.6/xlsx.full.min.js`
|
713
|
+
*/
|
714
|
+
url?: string;
|
715
|
+
/**
|
716
|
+
* Defines which Xlsx optional modules should get loaded, e.g:
|
717
|
+
*
|
718
|
+
* `[ '//cdn.bootcss.com/xlsx/0.15.6/cpexcel.js' ]`
|
719
|
+
*/
|
720
|
+
modules?: string[];
|
721
|
+
}
|
722
|
+
|
723
|
+
interface YunzaiZipConfig {
|
724
|
+
/**
|
725
|
+
* Zip library path, Default: `//cdn.bootcss.com/jszip/3.3.0/jszip.min.js`
|
726
|
+
*/
|
727
|
+
url?: string;
|
728
|
+
/**
|
729
|
+
* Defines which zip optional utils should get loaded
|
730
|
+
*/
|
731
|
+
utils?: string[];
|
732
|
+
}
|
733
|
+
|
734
|
+
interface YunzaiMediaConfig {
|
735
|
+
/**
|
736
|
+
* Plyr library path, default: `["https://cdn.bootcdn.net/ajax/libs/plyr/3.5.10/plyr.min.js", "https://cdn.bootcdn.net/ajax/libs/plyr/3.5.10/plyr.css"]`
|
737
|
+
*/
|
738
|
+
urls?: string[];
|
739
|
+
/**
|
740
|
+
* Please refer to [plyr options](https://github.com/sampotts/plyr#options)
|
741
|
+
*/
|
742
|
+
options?: any;
|
743
|
+
}
|
744
|
+
|
745
|
+
interface YunzaiPdfConfig {
|
746
|
+
/**
|
747
|
+
* [pdf.js](https://github.com/mozilla/pdf.js) library root url, Default: `https://cdn.jsdelivr.net/npm/pdfjs-dist@3.6.x/`
|
748
|
+
*
|
749
|
+
* **Note** That only the root path, muse be ending with `/`
|
750
|
+
*/
|
751
|
+
lib?: string;
|
752
|
+
/**
|
753
|
+
* Show single or all pages altogether, Default: `true`
|
754
|
+
*/
|
755
|
+
showAll?: boolean;
|
756
|
+
/**
|
757
|
+
* Enable text rendering, allows to select text, Default: `true`
|
758
|
+
*/
|
759
|
+
renderText?: boolean;
|
760
|
+
/**
|
761
|
+
* Show page borders, Default: `false`
|
762
|
+
*/
|
763
|
+
showBorders?: boolean;
|
764
|
+
/**
|
765
|
+
* Default: `true`
|
766
|
+
* - if set to `true` - size will be as same as original document
|
767
|
+
* - if set to `false` - size will be as same as container block
|
768
|
+
*/
|
769
|
+
originalSize?: boolean;
|
770
|
+
/**
|
771
|
+
* You can show your document in original size, and make sure that it's not bigger then container block. Default: `false`
|
772
|
+
*/
|
773
|
+
fitToPage?: boolean;
|
774
|
+
/**
|
775
|
+
* Turn on or off auto resize, Default: `true`
|
776
|
+
* **Important** To make work - make sure that `[originalSize]="false"` and pdf-viewer tag has `max-width` or `display` are set.
|
777
|
+
*/
|
778
|
+
autoReSize?: boolean;
|
779
|
+
}
|
780
|
+
|
781
|
+
interface YunzaiOnboardingConfig {
|
782
|
+
/** 文字方向 */
|
783
|
+
direction?: 'ltr' | 'rtl';
|
784
|
+
}
|
785
|
+
|
786
|
+
interface YunzaiCellConfig {
|
787
|
+
/**
|
788
|
+
* Size
|
789
|
+
*
|
790
|
+
* 大小
|
791
|
+
*/
|
792
|
+
size?: 'large' | 'small';
|
793
|
+
/**
|
794
|
+
* Default Text
|
795
|
+
*
|
796
|
+
* 默认文本
|
797
|
+
*/
|
798
|
+
default?: {
|
799
|
+
text?: string;
|
800
|
+
condition?: unknown;
|
801
|
+
};
|
802
|
+
/**
|
803
|
+
* 日期
|
804
|
+
*/
|
805
|
+
date?: {
|
806
|
+
/**
|
807
|
+
* 格式化字符,默认:`yyyy-MM-dd HH:mm:ss`
|
808
|
+
*/
|
809
|
+
format?: string;
|
810
|
+
};
|
811
|
+
/**
|
812
|
+
* 货币
|
813
|
+
*/
|
814
|
+
currency?: {
|
815
|
+
/**
|
816
|
+
* The starting unit of the value, `yuan` means 元, `cent` means 分, default: `yuan`
|
817
|
+
*
|
818
|
+
* 值的起始单位,`yuan` 元,`cent` 分,默认:`yuan`
|
819
|
+
*/
|
820
|
+
startingUnit?: 'yuan' | 'cent';
|
821
|
+
/**
|
822
|
+
* Using `DEFAULT_CURRENCY_CODE` when value is `true
|
823
|
+
*
|
824
|
+
* 是否使用 `CurrencyPipe` 来替代
|
825
|
+
*/
|
826
|
+
useAngular?: boolean;
|
827
|
+
/**
|
828
|
+
* 精度,默认:`2`
|
829
|
+
*/
|
830
|
+
precision?: number;
|
831
|
+
/**
|
832
|
+
* 是否忽略精度 `.0` 或 `.00` 结尾的字符,默认:`true`
|
833
|
+
*/
|
834
|
+
ignoreZeroPrecision?: boolean;
|
835
|
+
/**
|
836
|
+
* Use anguar `currency` pipe parse when is set, pls refer to [document](https://angular.io/api/common/CurrencyPipe)
|
837
|
+
*
|
838
|
+
* 若指定则表示使用 Angular 自带的 `currency` 管道来解析,见[文档](https://angular.cn/api/common/CurrencyPipe)
|
839
|
+
*/
|
840
|
+
ngCurrency?: {
|
841
|
+
display: 'code' | 'symbol' | 'symbol-narrow';
|
842
|
+
currencyCode?: string;
|
843
|
+
digitsInfo?: string;
|
844
|
+
locale?: string;
|
845
|
+
};
|
846
|
+
};
|
847
|
+
/**
|
848
|
+
* Converted into RMB notation
|
849
|
+
*
|
850
|
+
* 转化成人民币表示法
|
851
|
+
*/
|
852
|
+
cny?: {
|
853
|
+
/**
|
854
|
+
* The starting unit of the value, `yuan` means 元, `cent` means 分, default: `yuan`
|
855
|
+
*
|
856
|
+
* 值的起始单位,`yuan` 元,`cent` 分,默认:`yuan`
|
857
|
+
*/
|
858
|
+
startingUnit?: 'yuan' | 'cent';
|
859
|
+
/**
|
860
|
+
* Whether to return to uppercase notation, default: `true`
|
861
|
+
*
|
862
|
+
* 是否返回大写表示法,默认:`true`
|
863
|
+
*/
|
864
|
+
inWords?: boolean;
|
865
|
+
/**
|
866
|
+
* Specify negative sign, default: `negative`
|
867
|
+
*
|
868
|
+
* 指定负数符号,默认:`负`
|
869
|
+
*/
|
870
|
+
minusSymbol?: string;
|
871
|
+
};
|
872
|
+
/**
|
873
|
+
* 布尔
|
874
|
+
*/
|
875
|
+
boolean?: {
|
876
|
+
yes?: string;
|
877
|
+
no?: string;
|
878
|
+
mode?: 'full' | 'icon' | 'text';
|
879
|
+
};
|
880
|
+
/**
|
881
|
+
* Image config, support large image preview
|
882
|
+
*
|
883
|
+
* 图像配置,支持大图预览
|
884
|
+
*/
|
885
|
+
img?: {
|
886
|
+
/**
|
887
|
+
* 大小,默认:`32`
|
888
|
+
*/
|
889
|
+
size?: number;
|
890
|
+
/**
|
891
|
+
* 是否允许点击查看大图,默认:`true`
|
892
|
+
*/
|
893
|
+
big?: boolean;
|
894
|
+
previewOptions?: NzImagePreviewOptions;
|
895
|
+
};
|
896
|
+
/**
|
897
|
+
* HTML 配置
|
898
|
+
*/
|
899
|
+
html?: {
|
900
|
+
safe?: 'text' | 'html' | 'safeHtml';
|
901
|
+
};
|
902
|
+
}
|
903
|
+
|
904
|
+
interface YunzaiExceptionType {
|
905
|
+
typeDict?: Record<number | string, {
|
906
|
+
img: string;
|
907
|
+
title: string;
|
908
|
+
desc?: string;
|
909
|
+
}>;
|
910
|
+
}
|
911
|
+
|
912
|
+
interface YunzaiACLConfig {
|
913
|
+
/**
|
914
|
+
* Router URL when guard fail, default: `/403`
|
915
|
+
*/
|
916
|
+
guard_url?: string;
|
917
|
+
/**
|
918
|
+
* `can` before execution callback
|
919
|
+
*/
|
920
|
+
preCan?: ((roleOrAbility: number | number[] | string | string[] | YunzaiACLType) => YunzaiACLType | null) | null;
|
921
|
+
}
|
922
|
+
interface YunzaiACLType {
|
923
|
+
/**
|
924
|
+
* 角色
|
925
|
+
*/
|
926
|
+
role?: string[];
|
927
|
+
/**
|
928
|
+
* 权限点
|
929
|
+
*/
|
930
|
+
ability?: number[] | string[];
|
931
|
+
/**
|
932
|
+
* Validated against, default: `oneOf`
|
933
|
+
* - `allOf` the value validates against all the roles or abilities
|
934
|
+
* - `oneOf` the value validates against exactly one of the roles or abilities
|
935
|
+
*/
|
936
|
+
mode?: 'allOf' | 'oneOf';
|
937
|
+
/**
|
938
|
+
* 是否取反,即结果为 `true` 时表示未授权
|
939
|
+
*/
|
940
|
+
except?: boolean;
|
941
|
+
[key: string]: any;
|
942
|
+
}
|
943
|
+
|
944
|
+
interface YunzaiAuthConfig {
|
945
|
+
/**
|
946
|
+
* 是否自动完成认证流程
|
947
|
+
*/
|
948
|
+
auto?: boolean;
|
949
|
+
/**
|
950
|
+
* 存储KEY值,默认:`_token`
|
951
|
+
*/
|
952
|
+
store_key?: string;
|
953
|
+
/**
|
954
|
+
* 无效时跳转至登录页,默认:`true`,包括:
|
955
|
+
* - 无效token值
|
956
|
+
* - token已过期(限JWT)
|
957
|
+
*/
|
958
|
+
token_invalid_redirect?: boolean;
|
959
|
+
/**
|
960
|
+
* token过期时间偏移值,默认:`10` 秒(单位:秒)
|
961
|
+
*/
|
962
|
+
token_exp_offset?: number;
|
963
|
+
/**
|
964
|
+
* 发送token参数名,默认:·
|
965
|
+
*/
|
966
|
+
token_send_key?: string;
|
967
|
+
/**
|
968
|
+
* 发送token模板(默认为:`'${token}'`),使用 `${token}` 表示token点位符(**注意:**请务必使用 \`\` 包裹),例如:
|
969
|
+
*
|
970
|
+
* - `Bearer ${token}`
|
971
|
+
*/
|
972
|
+
token_send_template?: string;
|
973
|
+
/**
|
974
|
+
* 发送token参数位置,默认:`header`
|
975
|
+
*/
|
976
|
+
token_send_place?: 'header' | 'body' | 'url';
|
977
|
+
/**
|
978
|
+
* 登录页路由地址,默认:`/login`
|
979
|
+
*/
|
980
|
+
login_url?: string;
|
981
|
+
/**
|
982
|
+
* 忽略TOKEN的URL地址列表,默认值为:`[/\/assets\//]`
|
983
|
+
*/
|
984
|
+
ignores?: RegExp[];
|
985
|
+
/**
|
986
|
+
* 允许匿名登录KEY,若请求参数中带有该KEY表示忽略TOKEN,默认:`_allow_anonymous`
|
987
|
+
*/
|
988
|
+
allow_anonymous_key?: string;
|
989
|
+
/**
|
990
|
+
* 刷新间隔时长(单位:ms),默认:`3000`
|
991
|
+
*/
|
992
|
+
refreshTime?: number;
|
993
|
+
/**
|
994
|
+
* 过期计算偏移值(单位:ms),默认:`6000`
|
995
|
+
* - **建议**根据 `refreshTime` 倍数来设置
|
996
|
+
*/
|
997
|
+
refreshOffset?: number;
|
998
|
+
}
|
999
|
+
|
1000
|
+
interface YunzaiCacheConfig {
|
1001
|
+
/**
|
1002
|
+
* Cache mode, default: `promise`
|
1003
|
+
* - `promise` Convention mode, allowing `key` to get data as http
|
1004
|
+
* - `none` Normal mode
|
1005
|
+
*/
|
1006
|
+
mode?: 'promise' | 'none';
|
1007
|
+
/**
|
1008
|
+
* Rename the return parameters, default: ``, for example:
|
1009
|
+
* - `null` The response body is content
|
1010
|
+
* - `list` The response body should be `{ list: [] }`
|
1011
|
+
* - `result.list` The response body should be `{ result: { list: [] } }`
|
1012
|
+
*/
|
1013
|
+
reName?: string | string[];
|
1014
|
+
/**
|
1015
|
+
* Set the default storage type
|
1016
|
+
* - `m` Storage via memory
|
1017
|
+
* - `s` Storage via `localStorage`
|
1018
|
+
*/
|
1019
|
+
type?: 'm' | 's';
|
1020
|
+
/**
|
1021
|
+
* Set the default expire time (Unit: second)
|
1022
|
+
*/
|
1023
|
+
expire?: number;
|
1024
|
+
/**
|
1025
|
+
* Key prefix of persistent data, default: ``
|
1026
|
+
*/
|
1027
|
+
prefix?: string;
|
1028
|
+
/**
|
1029
|
+
* Key name of persistent data metadata storage, default: `__cache_meta`
|
1030
|
+
*/
|
1031
|
+
meta_key?: string;
|
1032
|
+
/**
|
1033
|
+
* 自定义请求体
|
1034
|
+
*
|
1035
|
+
* Custom request
|
1036
|
+
*/
|
1037
|
+
request?: (key: string) => Observable<unknown>;
|
1038
|
+
/**
|
1039
|
+
* Default configuration of interceptor
|
1040
|
+
*
|
1041
|
+
* 拦截器默认配置项
|
1042
|
+
*/
|
1043
|
+
interceptor?: YunzaiCacheInterceptor;
|
1044
|
+
}
|
1045
|
+
interface YunzaiCacheInterceptor {
|
1046
|
+
/**
|
1047
|
+
* Whether to enable, default `true`
|
1048
|
+
*
|
1049
|
+
* 是否启用,默认 `true`
|
1050
|
+
*/
|
1051
|
+
enabled?: boolean;
|
1052
|
+
/**
|
1053
|
+
* Specify the storage method, `m` means memory, `s` means persistence; default: `m`
|
1054
|
+
*
|
1055
|
+
* 指定存储方式,`m` 表示内存,`s` 表示持久化;默认:`m`
|
1056
|
+
*/
|
1057
|
+
saveType?: 'm' | 's';
|
1058
|
+
/**
|
1059
|
+
* Whether to trigger a notification, default: `true`
|
1060
|
+
*
|
1061
|
+
* 是否触发通知,默认:`true`
|
1062
|
+
*/
|
1063
|
+
emitNotify?: boolean;
|
1064
|
+
}
|
1065
|
+
|
1066
|
+
interface YunzaiChartConfig {
|
1067
|
+
/**
|
1068
|
+
* [G2](https://g2.antv.vision/zh/docs/manual/getting-started) library path
|
1069
|
+
* default: `[
|
1070
|
+
* "https://gw.alipayobjects.com/os/lib/antv/g2/4.1.14/dist/g2.min.js",
|
1071
|
+
* "https://gw.alipayobjects.com/os/lib/antv/data-set/0.11.8/dist/data-set.js",
|
1072
|
+
* ]`
|
1073
|
+
*/
|
1074
|
+
libs?: string[];
|
1075
|
+
theme?: string | Record<string, any>;
|
1076
|
+
/**
|
1077
|
+
* [ECharts](https://echarts.apache.org/) library path
|
1078
|
+
* default: `[
|
1079
|
+
* "https://cdnjs.cloudflare.com/ajax/libs/echarts/5.1.0/echarts.min.js",
|
1080
|
+
* "https://cdnjs.cloudflare.com/ajax/libs/echarts/5.1.0/i18n/langZH.min.js",
|
1081
|
+
* "https://cdnjs.cloudflare.com/ajax/libs/echarts/5.1.0/theme/dark.min.js"
|
1082
|
+
* ]`
|
1083
|
+
*/
|
1084
|
+
echartsLib?: string;
|
1085
|
+
/**
|
1086
|
+
* [ECharts](https://echarts.apache.org/zh/download-extension.html) library path, like i18n, theme etc
|
1087
|
+
*/
|
1088
|
+
echartsExtensions?: string[];
|
1089
|
+
/**
|
1090
|
+
* Theme configuration item, you can load the default theme file with `echartsExtensions`
|
1091
|
+
*
|
1092
|
+
* 主题配置项,可以配合 `echartsExtensions` 加载默认的主题文件
|
1093
|
+
*/
|
1094
|
+
echartsTheme?: string | Record<string, unknown> | null;
|
1095
|
+
}
|
1096
|
+
|
1097
|
+
interface YunzaiUtilArrayConfig {
|
1098
|
+
/** 深度项名,默认:`'deep'` */
|
1099
|
+
deepMapName?: string;
|
1100
|
+
/** 扁平后数组的父数据项名,默认:`'parent'` */
|
1101
|
+
parentMapName?: string;
|
1102
|
+
/** 编号项名,默认:`'id'` */
|
1103
|
+
idMapName?: string;
|
1104
|
+
/** 父编号项名,默认:`'parent_id'` */
|
1105
|
+
parentIdMapName?: string;
|
1106
|
+
/** 源数据子项名,默认:`'children'` */
|
1107
|
+
childrenMapName?: string;
|
1108
|
+
/** 标题项名,默认:`'title'` */
|
1109
|
+
titleMapName?: string;
|
1110
|
+
/** 节点 Checkbox 是否选中项名,默认:`'checked'` */
|
1111
|
+
checkedMapname?: string;
|
1112
|
+
/** 节点本身是否选中项名,默认:`'selected'` */
|
1113
|
+
selectedMapname?: string;
|
1114
|
+
/** 节点是否展开(叶子节点无效)项名,默认:`'expanded'` */
|
1115
|
+
expandedMapname?: string;
|
1116
|
+
/** 设置是否禁用节点(不可进行任何操作)项名,默认:`'disabled'` */
|
1117
|
+
disabledMapname?: string;
|
1118
|
+
}
|
1119
|
+
|
1120
|
+
interface YunzaiUtilCurrencyConfig {
|
1121
|
+
/**
|
1122
|
+
* Starting unit, default: `yuan`
|
1123
|
+
*
|
1124
|
+
* 起始单位,默认:`yuan`
|
1125
|
+
* - `yuan` 人民币:元
|
1126
|
+
* - `cent` 人民币:分
|
1127
|
+
*/
|
1128
|
+
startingUnit?: 'yuan' | 'cent';
|
1129
|
+
/**
|
1130
|
+
* 单位国际化,默认:`{Q: '京', T: '兆', B: '亿', M: '万', K: '千',}`
|
1131
|
+
*/
|
1132
|
+
megaUnit?: {
|
1133
|
+
Q: string;
|
1134
|
+
T: string;
|
1135
|
+
B: string;
|
1136
|
+
M: string;
|
1137
|
+
K: string;
|
1138
|
+
};
|
1139
|
+
/**
|
1140
|
+
* 精度,默认:`2`
|
1141
|
+
*/
|
1142
|
+
precision?: number;
|
1143
|
+
/**
|
1144
|
+
* 是否忽略精度 `.0` 或 `.00` 结尾的字符,默认:`true`
|
1145
|
+
*/
|
1146
|
+
ignoreZeroPrecision: boolean;
|
1147
|
+
/**
|
1148
|
+
* Use anguar `currency` pipe parse when is set, pls refer to [document](https://angular.io/api/common/CurrencyPipe)
|
1149
|
+
*
|
1150
|
+
* 若指定则表示使用 Angular 自带的 `currency` 管道来解析,见[文档](https://angular.cn/api/common/CurrencyPipe)
|
1151
|
+
*/
|
1152
|
+
ngCurrency?: {
|
1153
|
+
display: 'code' | 'symbol' | 'symbol-narrow';
|
1154
|
+
currencyCode?: string;
|
1155
|
+
digitsInfo?: string;
|
1156
|
+
locale?: string;
|
1157
|
+
};
|
1158
|
+
}
|
1159
|
+
|
1160
|
+
interface YunzaiThemeHttpClientConfig {
|
1161
|
+
/**
|
1162
|
+
* 空值处理,默认:`include`
|
1163
|
+
* - include:包含
|
1164
|
+
* - ignore:忽略
|
1165
|
+
*/
|
1166
|
+
nullValueHandling?: 'include' | 'ignore';
|
1167
|
+
/**
|
1168
|
+
* 时间值处理,默认:`timestamp`
|
1169
|
+
* - timestamp:时间戳毫秒级
|
1170
|
+
* - timestampSecond:时间戳秒级
|
1171
|
+
* - ignore:忽略处理,保持原始状态
|
1172
|
+
*/
|
1173
|
+
dateValueHandling?: 'timestamp' | 'timestampSecond' | 'ignore';
|
1174
|
+
}
|
1175
|
+
|
1176
|
+
interface YunzaiThemeResponsiveConfig {
|
1177
|
+
rules: Record<number, {
|
1178
|
+
xs: number;
|
1179
|
+
sm?: number;
|
1180
|
+
md?: number;
|
1181
|
+
lg?: number;
|
1182
|
+
xl?: number;
|
1183
|
+
xxl?: number;
|
1184
|
+
}>;
|
1185
|
+
}
|
1186
|
+
|
1187
|
+
interface YunzaiThemeI18nConfig {
|
1188
|
+
/**
|
1189
|
+
* Overrides the default interpolation start and end delimiters ({{ and }}).
|
1190
|
+
*
|
1191
|
+
* 改写默认的插值表达式起止分界符({{ 和 }})。
|
1192
|
+
*/
|
1193
|
+
interpolation?: [string, string];
|
1194
|
+
/**
|
1195
|
+
* Internationalization code URL guard parameter name, default: `i18n`
|
1196
|
+
*
|
1197
|
+
* 国际化代码 URL 守卫参数名,默认:`i18n`
|
1198
|
+
*/
|
1199
|
+
paramNameOfUrlGuard?: string;
|
1200
|
+
}
|
1201
|
+
|
1202
|
+
interface YunzaiThemePipeConfig {
|
1203
|
+
dateFormat?: string;
|
1204
|
+
dateFormatCustom?: YunzaiThemePipeDateFormatCustom;
|
1205
|
+
}
|
1206
|
+
type YunzaiThemePipeDateFormatCustom = (value: Date, formatString?: string | null, options?: {
|
1207
|
+
locale?: Locale;
|
1208
|
+
}) => string;
|
1209
|
+
|
1210
|
+
interface YunzaiMockConfig {
|
1211
|
+
/**
|
1212
|
+
* 请求延迟,单位:毫秒,默认:`300`
|
1213
|
+
*/
|
1214
|
+
delay?: number;
|
1215
|
+
/**
|
1216
|
+
* 是否强制所有请求都Mock,默认:`false`,`true` 表示当请求的URL不存在时直接返回 404 错误,`false` 表示未命中时发送真实HTTP请求
|
1217
|
+
*/
|
1218
|
+
force?: boolean;
|
1219
|
+
/**
|
1220
|
+
* 是否打印 Mock 请求信息,弥补浏览器无Network信息,默认:`true`
|
1221
|
+
*/
|
1222
|
+
log?: boolean;
|
1223
|
+
}
|
1224
|
+
|
1225
|
+
interface YunzaiSFConfigFormatMap {
|
1226
|
+
'date-time': {
|
1227
|
+
widget?: string;
|
1228
|
+
showTime?: boolean;
|
1229
|
+
format?: string;
|
1230
|
+
};
|
1231
|
+
date: {
|
1232
|
+
widget?: string;
|
1233
|
+
format?: string;
|
1234
|
+
};
|
1235
|
+
'full-date': {
|
1236
|
+
widget?: string;
|
1237
|
+
format?: string;
|
1238
|
+
};
|
1239
|
+
time: {
|
1240
|
+
widget?: string;
|
1241
|
+
format?: string;
|
1242
|
+
};
|
1243
|
+
'full-time': {
|
1244
|
+
widget?: string;
|
1245
|
+
format?: string;
|
1246
|
+
};
|
1247
|
+
week: {
|
1248
|
+
widget?: string;
|
1249
|
+
mode?: string;
|
1250
|
+
format?: string;
|
1251
|
+
};
|
1252
|
+
month: {
|
1253
|
+
widget?: string;
|
1254
|
+
mode?: string;
|
1255
|
+
format?: string;
|
1256
|
+
};
|
1257
|
+
uri: {
|
1258
|
+
widget?: string;
|
1259
|
+
};
|
1260
|
+
email: {
|
1261
|
+
widget?: string;
|
1262
|
+
type?: string;
|
1263
|
+
};
|
1264
|
+
color: {
|
1265
|
+
widget?: string;
|
1266
|
+
type?: string;
|
1267
|
+
};
|
1268
|
+
'': {
|
1269
|
+
widget?: string;
|
1270
|
+
};
|
1271
|
+
}
|
1272
|
+
interface YunzaiSFConfig {
|
1273
|
+
formatMap?: YunzaiSFConfigFormatMap;
|
1274
|
+
/**
|
1275
|
+
* 是否忽略某些数据类型校验 `ERRORSDEFAULT`,默认:`[ 'type', 'enum' ]`
|
1276
|
+
*
|
1277
|
+
* - `type` 限定 Schema 中 `type` 类型
|
1278
|
+
* - `enum` 限定应当是预设定的枚举值之一
|
1279
|
+
*/
|
1280
|
+
ignoreKeywords?: string[];
|
1281
|
+
/**
|
1282
|
+
* [ajv](https://ajv.js.org/options.html) 参数
|
1283
|
+
*/
|
1284
|
+
ajv?: Options;
|
1285
|
+
/**
|
1286
|
+
* 是否实时校验,默认:`true`
|
1287
|
+
* - `true` 每一次都校验
|
1288
|
+
* - `false` 提交时校验
|
1289
|
+
*/
|
1290
|
+
liveValidate?: boolean;
|
1291
|
+
/**
|
1292
|
+
* 指定表单 `autocomplete` 值,默认:`on`
|
1293
|
+
*/
|
1294
|
+
autocomplete?: 'on' | 'off' | null;
|
1295
|
+
/**
|
1296
|
+
* 是否立即呈现错误视觉,默认:`false`
|
1297
|
+
*/
|
1298
|
+
firstVisual?: boolean;
|
1299
|
+
/**
|
1300
|
+
* 是否只展示错误视觉不显示错误文本,默认:`false`
|
1301
|
+
*/
|
1302
|
+
onlyVisual?: boolean;
|
1303
|
+
/**
|
1304
|
+
* 自定义通用错误信息,默认:`{}`
|
1305
|
+
*/
|
1306
|
+
errors?: Record<string, string>;
|
1307
|
+
/**
|
1308
|
+
* 默认全局布局,类型为:`SFUISchemaItem`,使用时加上可智能提示,例如:
|
1309
|
+
*
|
1310
|
+
* ```ts
|
1311
|
+
* ui: {} as SFUISchemaItem
|
1312
|
+
* ```
|
1313
|
+
*/
|
1314
|
+
ui?: any;
|
1315
|
+
/**
|
1316
|
+
* 元素组件大小,用于 `nzSize` 值
|
1317
|
+
*/
|
1318
|
+
size?: 'default' | 'large' | 'small';
|
1319
|
+
/**
|
1320
|
+
* 按钮风格,类型为:`SFButton`,使用时加上可智能提示,例如:
|
1321
|
+
*
|
1322
|
+
* ```ts
|
1323
|
+
* button: {} as SFButton
|
1324
|
+
* ```
|
1325
|
+
*/
|
1326
|
+
button?: any;
|
1327
|
+
/**
|
1328
|
+
* date小部件:`type="string"` 且不指定 `schema.format` 和 `ui.format` 时日期格式,默认:`yyyy-MM-dd HH:mm:ss`
|
1329
|
+
*/
|
1330
|
+
uiDateStringFormat?: string;
|
1331
|
+
/**
|
1332
|
+
* date小部件:`type="number"` 且不指定 `schema.format` 和 `ui.format` 时日期格式,默认:`T` 13位 Unix Timestamp
|
1333
|
+
*/
|
1334
|
+
uiDateNumberFormat?: string;
|
1335
|
+
/**
|
1336
|
+
* time小部件:`type="string"` 且不指定 `schema.format` 和 `ui.format` 时日期格式,默认:`HH:mm:ss`
|
1337
|
+
*/
|
1338
|
+
uiTimeStringFormat?: string;
|
1339
|
+
/**
|
1340
|
+
* time小部件:`type="number"` 且不指定 `schema.format` 和 `ui.format` 时日期格式,默认:`T` 13位 Unix Timestamp,日期统一使用 `1970-01-01`
|
1341
|
+
*/
|
1342
|
+
uiTimeNumberFormat?: string;
|
1343
|
+
/**
|
1344
|
+
* 指定 `format: 'email'` 的默认Email后缀,默认:`['qq.com', '163.com', 'gmail.com', '126.com', 'aliyun.com']`
|
1345
|
+
*/
|
1346
|
+
uiEmailSuffixes?: string[];
|
1347
|
+
/**
|
1348
|
+
* Whether to delay rendering, should be manually call `refreshSchema()`
|
1349
|
+
*
|
1350
|
+
* 是否延迟渲染,需要手动调用 `refreshSchema()`
|
1351
|
+
*/
|
1352
|
+
delay?: boolean;
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
interface YunzaiBusinessConfig {
|
1356
|
+
baseUrl?: string;
|
1357
|
+
systemCode?: string;
|
1358
|
+
loginForm?: FormData | null;
|
1359
|
+
refreshTokenEnabled?: boolean;
|
1360
|
+
refreshTokenType?: 're-request' | 'auth-refresh';
|
1361
|
+
nav?: {
|
1362
|
+
mine?: boolean;
|
1363
|
+
all?: boolean;
|
1364
|
+
};
|
1365
|
+
}
|
1366
|
+
|
1367
|
+
interface YunzaiSocketConfig extends RxStompConfig {
|
1368
|
+
baseUrl: string;
|
1369
|
+
}
|
1370
|
+
|
1371
|
+
interface YunzaiConfig {
|
1372
|
+
bis?: YunzaiBusinessConfig;
|
1373
|
+
socket?: YunzaiSocketConfig;
|
1374
|
+
dataRange?: YunzaiDateRangePickerConfig;
|
1375
|
+
exception?: YunzaiExceptionType;
|
1376
|
+
errorCollect?: YunzaiErrorCollectConfig;
|
1377
|
+
image?: YunzaiImageConfig;
|
1378
|
+
loading?: YunzaiLoadingConfig;
|
1379
|
+
onboarding?: YunzaiOnboardingConfig;
|
1380
|
+
lodop?: YunzaiLodopConfig;
|
1381
|
+
pageHeader?: YunzaiPageHeaderConfig;
|
1382
|
+
se?: YunzaiSEConfig;
|
1383
|
+
sg?: YunzaiSGConfig;
|
1384
|
+
sv?: YunzaiSVConfig;
|
1385
|
+
st?: YunzaiSTConfig;
|
1386
|
+
sf?: YunzaiSFConfig;
|
1387
|
+
cell?: YunzaiCellConfig;
|
1388
|
+
xlsx?: YunzaiXlsxConfig;
|
1389
|
+
zip?: YunzaiZipConfig;
|
1390
|
+
pdf?: YunzaiPdfConfig;
|
1391
|
+
media?: YunzaiMediaConfig;
|
1392
|
+
acl?: YunzaiACLConfig;
|
1393
|
+
auth?: YunzaiAuthConfig;
|
1394
|
+
cache?: YunzaiCacheConfig;
|
1395
|
+
chart?: YunzaiChartConfig;
|
1396
|
+
mock?: YunzaiMockConfig;
|
1397
|
+
utilArray?: YunzaiUtilArrayConfig;
|
1398
|
+
utilCurrency?: YunzaiUtilCurrencyConfig;
|
1399
|
+
themeHttp?: YunzaiThemeHttpClientConfig;
|
1400
|
+
themeResponsive?: YunzaiThemeResponsiveConfig;
|
1401
|
+
themeI18n?: YunzaiThemeI18nConfig;
|
1402
|
+
themePipe?: YunzaiThemePipeConfig;
|
1403
|
+
}
|
1404
|
+
type YunzaiConfigKey = keyof YunzaiConfig;
|
1405
|
+
declare const YUNZAI_CONFIG: InjectionToken<YunzaiConfig>;
|
1406
|
+
declare function YUNZAI_CONFIG_FACTORY(): YunzaiConfig;
|
1407
|
+
declare function provideYunzaiConfig(config: YunzaiConfig): EnvironmentProviders;
|
1408
|
+
|
1409
|
+
declare class YunzaiConfigService {
|
1410
|
+
private readonly config;
|
1411
|
+
get<T extends YunzaiConfigKey>(componentName: T, key?: string): YunzaiConfig[T];
|
1412
|
+
merge<T extends YunzaiConfigKey>(componentName: T, ...defaultValues: Array<YunzaiConfig[T]>): YunzaiConfig[T];
|
1413
|
+
/**
|
1414
|
+
* 将配置附加到当前实例中,支持 Signal 信号
|
1415
|
+
*/
|
1416
|
+
attach<T extends YunzaiConfigKey>(componentThis: unknown, componentName: T, defaultValues: YunzaiConfig[T]): void;
|
1417
|
+
set<T extends YunzaiConfigKey>(componentName: T, value: YunzaiConfig[T]): void;
|
1418
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiConfigService, never>;
|
1419
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<YunzaiConfigService>;
|
1420
|
+
}
|
1421
|
+
|
1422
|
+
export { YUNZAI_CONFIG, YUNZAI_CONFIG_FACTORY, YunzaiConfigService, YunzaiSVConfig, provideYunzaiConfig };
|
1423
|
+
export type { YunzaiACLConfig, YunzaiACLType, YunzaiAuthConfig, YunzaiBusinessConfig, YunzaiCacheConfig, YunzaiCacheInterceptor, YunzaiCellConfig, YunzaiChartConfig, YunzaiConfig, YunzaiConfigKey, YunzaiDateRangePickerConfig, YunzaiDateRangePickerShortcut, YunzaiDateRangePickerShortcutItem, YunzaiErrorCollectConfig, YunzaiExceptionType, YunzaiImageConfig, YunzaiLoadingConfig, YunzaiLodopConfig, YunzaiMediaConfig, YunzaiMockConfig, YunzaiOnboardingConfig, YunzaiPageHeaderConfig, YunzaiPdfConfig, YunzaiSEConfig, YunzaiSFConfig, YunzaiSFConfigFormatMap, YunzaiSGConfig, YunzaiSTConfig, YunzaiSocketConfig, YunzaiThemeHttpClientConfig, YunzaiThemeI18nConfig, YunzaiThemePipeConfig, YunzaiThemePipeDateFormatCustom, YunzaiThemeResponsiveConfig, YunzaiUtilArrayConfig, YunzaiUtilCurrencyConfig, YunzaiXlsxConfig, YunzaiZipConfig };
|