@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/array/array.service.d.ts
DELETED
@@ -1,78 +0,0 @@
|
|
1
|
-
import { YunzaiConfigService } from '@yelon/util/config';
|
2
|
-
import { NzTreeNode } from 'ng-zorro-antd/core/tree';
|
3
|
-
import { ArrayServiceArrToTreeNodeOptions, ArrayServiceArrToTreeOptions, ArrayServiceGetKeysByTreeNodeOptions, ArrayServiceGroupByResult, ArrayServiceTreeToArrOptions } from './array-type.service';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
export declare class ArrayService {
|
6
|
-
private c;
|
7
|
-
constructor(cog: YunzaiConfigService);
|
8
|
-
/**
|
9
|
-
* Convert tree structure to array structure
|
10
|
-
*
|
11
|
-
* 将树结构转换成数组结构
|
12
|
-
*/
|
13
|
-
treeToArr<T extends object = any>(tree: readonly T[], options?: ArrayServiceTreeToArrOptions<T>): T[];
|
14
|
-
/**
|
15
|
-
* Convert array structure to tree structure
|
16
|
-
*
|
17
|
-
* 数组转换成树数据
|
18
|
-
*/
|
19
|
-
arrToTree<T extends object = any>(arr: readonly T[], options?: ArrayServiceArrToTreeOptions<T>): T[];
|
20
|
-
/**
|
21
|
-
* 数组转换成 `nz-tree` 数据源,通过 `options` 转化项名,也可以使用 `options.cb` 更高级决定数据项
|
22
|
-
*/
|
23
|
-
arrToTreeNode<T extends object = any>(arr: readonly T[], options?: ArrayServiceArrToTreeNodeOptions): NzTreeNode[];
|
24
|
-
/**
|
25
|
-
* 递归访问整个树
|
26
|
-
*/
|
27
|
-
visitTree<T extends object = any>(tree: readonly T[], cb: (item: T, parent: T | null, deep: number) => void, options?: {
|
28
|
-
/** 子项名,默认:`'children'` */
|
29
|
-
childrenMapName?: string;
|
30
|
-
}): void;
|
31
|
-
/**
|
32
|
-
* Return the value of the first tree value in the tree where predicate is true, and `undefined` otherwise
|
33
|
-
*
|
34
|
-
* 根据条件返回树的第一个值,否则返回 `undefined`
|
35
|
-
*/
|
36
|
-
findTree<T extends object = any>(tree: readonly T[], predicate: (item: T) => boolean, options?: {
|
37
|
-
/** 子项名,默认:`'children'` */
|
38
|
-
childrenMapName?: string;
|
39
|
-
}): T | undefined;
|
40
|
-
/**
|
41
|
-
* 获取所有已经选中的 `key` 值
|
42
|
-
*/
|
43
|
-
getKeysByTreeNode(tree: NzTreeNode[], options?: ArrayServiceGetKeysByTreeNodeOptions): any[];
|
44
|
-
private baseFlat;
|
45
|
-
/**
|
46
|
-
* Recursively flattens array
|
47
|
-
*
|
48
|
-
* 递归扁平数组
|
49
|
-
* ```ts
|
50
|
-
* srv.flat([1, [2, 3, [4, 5, [6]]]]) => [1,2,3,4,5,6]
|
51
|
-
* srv.flat([1, [2, 3, [4, 5, [6]]]], 1) => [1,2,3,[4, 5, [6]]]
|
52
|
-
* ```
|
53
|
-
*/
|
54
|
-
flat<T>(array: readonly T[], depth?: number): T[];
|
55
|
-
/**
|
56
|
-
* Group the array
|
57
|
-
*
|
58
|
-
* 对数组进行分组
|
59
|
-
* ```ts
|
60
|
-
* srv.groupBy([6.1, 4.2, 6.3], Math.floor) => {"4":[4.2],"6":[6.1,6.3]}
|
61
|
-
* srv.groupBy(['one', 'two', 'three'], v => v.length) => {"3":["one","two"],"5":["three"]}
|
62
|
-
* ```
|
63
|
-
*/
|
64
|
-
groupBy<T>(array: readonly T[], iteratee: (value: T) => string | number): ArrayServiceGroupByResult;
|
65
|
-
/**
|
66
|
-
* Creates a duplicate-free version of an array
|
67
|
-
*
|
68
|
-
* 创建去重后的数组
|
69
|
-
* ```ts
|
70
|
-
* uniq([1, 2, 2, 3, 1]) => [1,2,3]
|
71
|
-
* uniq([{ a: 1 }, { a: 1 }, { a: 2 }], 'a') => [{"a":1},{"a":2}]
|
72
|
-
* uniq([{ a: 1 }, { a: 1 }, { a: 2 }], i => (i.a === 1 ? 'a' : 'b')) => [{"a":1},{"a":2}]
|
73
|
-
* ```
|
74
|
-
*/
|
75
|
-
uniq<T>(array: readonly T[], predicate?: string | ((value: T) => string | number | boolean)): T[];
|
76
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayService, never>;
|
77
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ArrayService>;
|
78
|
-
}
|
@@ -1,62 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
export interface CookieOptions {
|
3
|
-
path?: string;
|
4
|
-
domain?: string;
|
5
|
-
/**
|
6
|
-
* Expiration time, `number` is seconds
|
7
|
-
*
|
8
|
-
* 过期时间,`number` 类型表示秒数
|
9
|
-
*/
|
10
|
-
expires?: number | Date | string;
|
11
|
-
secure?: boolean;
|
12
|
-
HttpOnly?: boolean;
|
13
|
-
SameSite?: boolean | 'lax' | 'strict' | 'none';
|
14
|
-
}
|
15
|
-
/**
|
16
|
-
* A set of simple Cookie manipulation classes.
|
17
|
-
*
|
18
|
-
* 一组简单的 Cookie 操作类。
|
19
|
-
*/
|
20
|
-
export declare class CookieService {
|
21
|
-
private readonly _doc;
|
22
|
-
private readonly platform;
|
23
|
-
private get doc();
|
24
|
-
/**
|
25
|
-
* Original cookie value
|
26
|
-
*
|
27
|
-
* 原始Cookie值
|
28
|
-
*/
|
29
|
-
get cookie(): string;
|
30
|
-
/**
|
31
|
-
* Get all cookie key-value pairs
|
32
|
-
*
|
33
|
-
* 获取所有Cookie键值对
|
34
|
-
*/
|
35
|
-
getAll(): Record<string, string>;
|
36
|
-
/**
|
37
|
-
* Get the value of given cookie `key`
|
38
|
-
*
|
39
|
-
* 获取指定 `key` 的值
|
40
|
-
*/
|
41
|
-
get(key: string): string | undefined;
|
42
|
-
/**
|
43
|
-
* Sets a value for given cookie key
|
44
|
-
*
|
45
|
-
* 设置指定 Cookie 键的值
|
46
|
-
*/
|
47
|
-
put(key: string, value: string, options?: CookieOptions): void;
|
48
|
-
/**
|
49
|
-
* Remove given cookie
|
50
|
-
*
|
51
|
-
* 移除指定 Cookie
|
52
|
-
*/
|
53
|
-
remove(key: string, options?: CookieOptions): void;
|
54
|
-
/**
|
55
|
-
* Remove all cookies
|
56
|
-
*
|
57
|
-
* 移除所有 Cookies
|
58
|
-
*/
|
59
|
-
removeAll(): void;
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CookieService, never>;
|
61
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CookieService>;
|
62
|
-
}
|
package/browser/copy.d.ts
DELETED
package/browser/is-empty.d.ts
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
export declare class ScrollService {
|
3
|
-
private readonly _doc;
|
4
|
-
private readonly platform;
|
5
|
-
private _getDoc;
|
6
|
-
private _getWin;
|
7
|
-
/**
|
8
|
-
* 获取滚动条位置
|
9
|
-
*
|
10
|
-
* @param element 指定元素,默认 `window`
|
11
|
-
*/
|
12
|
-
getScrollPosition(element?: Element | Window | null): [number, number];
|
13
|
-
/**
|
14
|
-
* 设置滚动条位置
|
15
|
-
*
|
16
|
-
* @param element 指定元素
|
17
|
-
*/
|
18
|
-
scrollToPosition(element: Element | Window | null | undefined, position: [number, number]): void;
|
19
|
-
/**
|
20
|
-
* 设置滚动条至指定元素
|
21
|
-
*
|
22
|
-
* @param element 指定元素,默认 `document.body`
|
23
|
-
* @param topOffset 偏移值,默认 `0`
|
24
|
-
*/
|
25
|
-
scrollToElement(element?: Element | null, topOffset?: number): void;
|
26
|
-
/**
|
27
|
-
* 滚动至顶部
|
28
|
-
*
|
29
|
-
* @param topOffset 偏移值,默认 `0`
|
30
|
-
*/
|
31
|
-
scrollToTop(topOffset?: number): void;
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollService, never>;
|
33
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollService>;
|
34
|
-
}
|
package/browser/style.d.ts
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
import { Renderer2 } from '@angular/core';
|
2
|
-
/**
|
3
|
-
* Update host component style `class`
|
4
|
-
*
|
5
|
-
* 更新宿主组件样式 `class`
|
6
|
-
*
|
7
|
-
* ```ts
|
8
|
-
* updateHostClass(
|
9
|
-
* this.el.nativeElement,
|
10
|
-
* this.renderer,
|
11
|
-
* {
|
12
|
-
* [ 'classname' ]: true,
|
13
|
-
* [ 'classname' ]: this.type === '1',
|
14
|
-
* [ this.cls ]: true,
|
15
|
-
* [ `a-${this.cls}` ]: true
|
16
|
-
* })
|
17
|
-
* ```
|
18
|
-
*/
|
19
|
-
export declare function updateHostClass(el: HTMLElement, renderer: Renderer2, classMap: Record<string, unknown>, preClean?: boolean): void;
|
@@ -1,118 +0,0 @@
|
|
1
|
-
import type { NzImagePreviewOptions } from 'ng-zorro-antd/image';
|
2
|
-
export interface YunzaiCellConfig {
|
3
|
-
/**
|
4
|
-
* Size
|
5
|
-
*
|
6
|
-
* 大小
|
7
|
-
*/
|
8
|
-
size?: 'large' | 'small';
|
9
|
-
/**
|
10
|
-
* Default Text
|
11
|
-
*
|
12
|
-
* 默认文本
|
13
|
-
*/
|
14
|
-
default?: {
|
15
|
-
text?: string;
|
16
|
-
condition?: unknown;
|
17
|
-
};
|
18
|
-
/**
|
19
|
-
* 日期
|
20
|
-
*/
|
21
|
-
date?: {
|
22
|
-
/**
|
23
|
-
* 格式化字符,默认:`yyyy-MM-dd HH:mm:ss`
|
24
|
-
*/
|
25
|
-
format?: string;
|
26
|
-
};
|
27
|
-
/**
|
28
|
-
* 货币
|
29
|
-
*/
|
30
|
-
currency?: {
|
31
|
-
/**
|
32
|
-
* The starting unit of the value, `yuan` means 元, `cent` means 分, default: `yuan`
|
33
|
-
*
|
34
|
-
* 值的起始单位,`yuan` 元,`cent` 分,默认:`yuan`
|
35
|
-
*/
|
36
|
-
startingUnit?: 'yuan' | 'cent';
|
37
|
-
/**
|
38
|
-
* Using `DEFAULT_CURRENCY_CODE` when value is `true
|
39
|
-
*
|
40
|
-
* 是否使用 `CurrencyPipe` 来替代
|
41
|
-
*/
|
42
|
-
useAngular?: boolean;
|
43
|
-
/**
|
44
|
-
* 精度,默认:`2`
|
45
|
-
*/
|
46
|
-
precision?: number;
|
47
|
-
/**
|
48
|
-
* 是否忽略精度 `.0` 或 `.00` 结尾的字符,默认:`true`
|
49
|
-
*/
|
50
|
-
ignoreZeroPrecision?: boolean;
|
51
|
-
/**
|
52
|
-
* Use anguar `currency` pipe parse when is set, pls refer to [document](https://angular.io/api/common/CurrencyPipe)
|
53
|
-
*
|
54
|
-
* 若指定则表示使用 Angular 自带的 `currency` 管道来解析,见[文档](https://angular.cn/api/common/CurrencyPipe)
|
55
|
-
*/
|
56
|
-
ngCurrency?: {
|
57
|
-
display: 'code' | 'symbol' | 'symbol-narrow';
|
58
|
-
currencyCode?: string;
|
59
|
-
digitsInfo?: string;
|
60
|
-
locale?: string;
|
61
|
-
};
|
62
|
-
};
|
63
|
-
/**
|
64
|
-
* Converted into RMB notation
|
65
|
-
*
|
66
|
-
* 转化成人民币表示法
|
67
|
-
*/
|
68
|
-
cny?: {
|
69
|
-
/**
|
70
|
-
* The starting unit of the value, `yuan` means 元, `cent` means 分, default: `yuan`
|
71
|
-
*
|
72
|
-
* 值的起始单位,`yuan` 元,`cent` 分,默认:`yuan`
|
73
|
-
*/
|
74
|
-
startingUnit?: 'yuan' | 'cent';
|
75
|
-
/**
|
76
|
-
* Whether to return to uppercase notation, default: `true`
|
77
|
-
*
|
78
|
-
* 是否返回大写表示法,默认:`true`
|
79
|
-
*/
|
80
|
-
inWords?: boolean;
|
81
|
-
/**
|
82
|
-
* Specify negative sign, default: `negative`
|
83
|
-
*
|
84
|
-
* 指定负数符号,默认:`负`
|
85
|
-
*/
|
86
|
-
minusSymbol?: string;
|
87
|
-
};
|
88
|
-
/**
|
89
|
-
* 布尔
|
90
|
-
*/
|
91
|
-
boolean?: {
|
92
|
-
yes?: string;
|
93
|
-
no?: string;
|
94
|
-
mode?: 'full' | 'icon' | 'text';
|
95
|
-
};
|
96
|
-
/**
|
97
|
-
* Image config, support large image preview
|
98
|
-
*
|
99
|
-
* 图像配置,支持大图预览
|
100
|
-
*/
|
101
|
-
img?: {
|
102
|
-
/**
|
103
|
-
* 大小,默认:`32`
|
104
|
-
*/
|
105
|
-
size?: number;
|
106
|
-
/**
|
107
|
-
* 是否允许点击查看大图,默认:`true`
|
108
|
-
*/
|
109
|
-
big?: boolean;
|
110
|
-
previewOptions?: NzImagePreviewOptions;
|
111
|
-
};
|
112
|
-
/**
|
113
|
-
* HTML 配置
|
114
|
-
*/
|
115
|
-
html?: {
|
116
|
-
safe?: 'text' | 'html' | 'safeHtml';
|
117
|
-
};
|
118
|
-
}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
import type { DisabledTimeFn, NzDateMode, PresetRanges, SupportTimeOptions } from 'ng-zorro-antd/date-picker';
|
2
|
-
export interface YunzaiDateRangePickerConfig {
|
3
|
-
/**
|
4
|
-
* 默认:`yyyy-MM-dd`
|
5
|
-
*/
|
6
|
-
nzFormat?: string;
|
7
|
-
nzClassName?: string;
|
8
|
-
nzSize?: string;
|
9
|
-
nzStyle?: string;
|
10
|
-
/**
|
11
|
-
* 默认:`true`
|
12
|
-
*/
|
13
|
-
nzAllowClear?: boolean;
|
14
|
-
/**
|
15
|
-
* 默认:`false`
|
16
|
-
*/
|
17
|
-
nzAutoFocus?: boolean;
|
18
|
-
nzDisabledDate?: (d: Date) => boolean;
|
19
|
-
nzDisabledTime?: DisabledTimeFn;
|
20
|
-
/**
|
21
|
-
* 默认:`{ position: 'relative' }`
|
22
|
-
*/
|
23
|
-
nzPopupStyle?: Record<string, unknown>;
|
24
|
-
nzDropdownClassName?: string;
|
25
|
-
nzRenderExtraFooter?: string;
|
26
|
-
nzShowTime?: SupportTimeOptions | boolean;
|
27
|
-
/**
|
28
|
-
* 默认:`true`
|
29
|
-
*/
|
30
|
-
nzShowToday?: boolean;
|
31
|
-
nzMode?: NzDateMode | NzDateMode[];
|
32
|
-
nzRanges?: PresetRanges;
|
33
|
-
shortcuts?: YunzaiDateRangePickerShortcut;
|
34
|
-
}
|
35
|
-
export interface YunzaiDateRangePickerShortcut {
|
36
|
-
/** Whether to enable, default: `false` */
|
37
|
-
enabled?: boolean;
|
38
|
-
/** Whether to close the panel after clicking, default: `true` */
|
39
|
-
closed?: boolean;
|
40
|
-
/**
|
41
|
-
* Shortcut list, default: `今天`, `昨天`, `近3天`, `近7天`, `本周`, `本月`, `全年`
|
42
|
-
*/
|
43
|
-
list?: YunzaiDateRangePickerShortcutItem[];
|
44
|
-
}
|
45
|
-
export interface YunzaiDateRangePickerShortcutItem {
|
46
|
-
[key: string]: any;
|
47
|
-
text: string;
|
48
|
-
fn: (value: Array<Date | null>) => [Date | null, Date | null];
|
49
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import type { ModalOptions } from 'ng-zorro-antd/modal';
|
2
|
-
export interface YunzaiImageConfig {
|
3
|
-
/**
|
4
|
-
* 默认大小,默认值:`64`,单位:px
|
5
|
-
*/
|
6
|
-
size?: number;
|
7
|
-
/**
|
8
|
-
* 错误图片,默认:`./assets/img/logo.svg`
|
9
|
-
*/
|
10
|
-
error?: string;
|
11
|
-
/**
|
12
|
-
* 预览大图对话框参数
|
13
|
-
*/
|
14
|
-
previewModalOptions?: ModalOptions;
|
15
|
-
}
|
package/config/abc/index.d.ts
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
export * from './error-collect.type';
|
2
|
-
export * from './image.type';
|
3
|
-
export * from './date-picker.type';
|
4
|
-
export * from './loading.type';
|
5
|
-
export * from './lodop.type';
|
6
|
-
export * from './page-header.type';
|
7
|
-
export * from './se.type';
|
8
|
-
export * from './sv.type';
|
9
|
-
export * from './sg.type';
|
10
|
-
export * from './st.type';
|
11
|
-
export * from './xlsx.type';
|
12
|
-
export * from './zip.type';
|
13
|
-
export * from './media.type';
|
14
|
-
export * from './pdf.type';
|
15
|
-
export * from './onboarding.type';
|
16
|
-
export * from './cell.type';
|
17
|
-
export * from './exception.type';
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { SafeHtml } from '@angular/platform-browser';
|
2
|
-
export interface YunzaiLoadingConfig {
|
3
|
-
/**
|
4
|
-
* 类型,默认:`spin`
|
5
|
-
*/
|
6
|
-
type?: 'text' | 'icon' | 'spin' | 'custom';
|
7
|
-
/**
|
8
|
-
* 显示文本,默认:`加载中...`
|
9
|
-
*/
|
10
|
-
text?: string;
|
11
|
-
icon?: {
|
12
|
-
/** `nz-icon.nzType`,默认:`loading` */
|
13
|
-
type?: string;
|
14
|
-
/** `nz-icon.nzTheme`,默认:`outline` */
|
15
|
-
theme?: 'fill' | 'outline' | 'twotone';
|
16
|
-
/** `nz-icon.nzSpin`,默认:`true` */
|
17
|
-
spin?: boolean;
|
18
|
-
};
|
19
|
-
custom?: {
|
20
|
-
html?: string | SafeHtml;
|
21
|
-
style?: Record<string, unknown>;
|
22
|
-
};
|
23
|
-
/**
|
24
|
-
* 延迟,默认:`0`
|
25
|
-
*/
|
26
|
-
delay?: number;
|
27
|
-
/** 文字方向 */
|
28
|
-
direction?: 'ltr' | 'rtl';
|
29
|
-
}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
export interface YunzaiLodopConfig {
|
2
|
-
/**
|
3
|
-
* 注册信息:主注册号
|
4
|
-
*/
|
5
|
-
license?: string;
|
6
|
-
/**
|
7
|
-
* 注册信息:附加注册号A
|
8
|
-
*/
|
9
|
-
licenseA?: string;
|
10
|
-
/**
|
11
|
-
* 注册信息:附加注册号B
|
12
|
-
*/
|
13
|
-
licenseB?: string;
|
14
|
-
/**
|
15
|
-
* 注册信息:注册单位名称
|
16
|
-
*/
|
17
|
-
companyName?: string;
|
18
|
-
/**
|
19
|
-
* Lodop 远程脚本URL地址,**注意**务必使用 `name` 属性指定变量值
|
20
|
-
*
|
21
|
-
* - http://localhost:18000/CLodopfuncs.js [默认]
|
22
|
-
* - https://localhost:8443/CLodopfuncs.js
|
23
|
-
*/
|
24
|
-
url?: string;
|
25
|
-
/**
|
26
|
-
* Lodop 变量名,默认:`CLODOP`
|
27
|
-
*/
|
28
|
-
name?: string;
|
29
|
-
/**
|
30
|
-
* 检查次数,默认 `100`,当检查超过时视为异常,这是因为 Lodop 需要连接 WebSocket
|
31
|
-
*/
|
32
|
-
checkMaxCount?: number;
|
33
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
export interface YunzaiMediaConfig {
|
2
|
-
/**
|
3
|
-
* 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"]`
|
4
|
-
*/
|
5
|
-
urls?: string[];
|
6
|
-
/**
|
7
|
-
* Please refer to [plyr options](https://github.com/sampotts/plyr#options)
|
8
|
-
*/
|
9
|
-
options?: any;
|
10
|
-
}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
export interface YunzaiPageHeaderConfig {
|
2
|
-
/**
|
3
|
-
* 首页文本,若指定空表示不显示,默认:`首页`
|
4
|
-
*/
|
5
|
-
home?: string;
|
6
|
-
/**
|
7
|
-
* 首页链接,默认:`/`
|
8
|
-
*/
|
9
|
-
homeLink?: string;
|
10
|
-
/**
|
11
|
-
* 首页链接国际化参数
|
12
|
-
*/
|
13
|
-
homeI18n?: string;
|
14
|
-
/**
|
15
|
-
* 自动生成导航,以当前路由从主菜单中定位,默认:`true`
|
16
|
-
*/
|
17
|
-
autoBreadcrumb?: boolean;
|
18
|
-
/**
|
19
|
-
* 自动向上递归查找,默认:`false`
|
20
|
-
* - 菜单数据源包含 `/ware`,则 `/ware/1` 也视为 `/ware` 项
|
21
|
-
*/
|
22
|
-
recursiveBreadcrumb?: boolean;
|
23
|
-
/**
|
24
|
-
* 自动生成标题,以当前路由从主菜单中定位,默认:`true`
|
25
|
-
*/
|
26
|
-
autoTitle?: boolean;
|
27
|
-
/**
|
28
|
-
* 是否自动将标准信息同步至 `TitleService`、`ReuseService` 下,默认:`true`
|
29
|
-
*/
|
30
|
-
syncTitle?: boolean;
|
31
|
-
/**
|
32
|
-
* 是否固定模式,默认:`false`
|
33
|
-
*/
|
34
|
-
fixed?: boolean;
|
35
|
-
/**
|
36
|
-
* 固定偏移值,默认:`64`
|
37
|
-
*/
|
38
|
-
fixedOffsetTop?: number;
|
39
|
-
}
|
package/config/abc/pdf.type.d.ts
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
export interface YunzaiPdfConfig {
|
2
|
-
/**
|
3
|
-
* [pdf.js](https://github.com/mozilla/pdf.js) library root url, Default: `https://cdn.jsdelivr.net/npm/pdfjs-dist@3.6.x/`
|
4
|
-
*
|
5
|
-
* **Note** That only the root path, muse be ending with `/`
|
6
|
-
*/
|
7
|
-
lib?: string;
|
8
|
-
/**
|
9
|
-
* Show single or all pages altogether, Default: `true`
|
10
|
-
*/
|
11
|
-
showAll?: boolean;
|
12
|
-
/**
|
13
|
-
* Enable text rendering, allows to select text, Default: `true`
|
14
|
-
*/
|
15
|
-
renderText?: boolean;
|
16
|
-
/**
|
17
|
-
* Show page borders, Default: `false`
|
18
|
-
*/
|
19
|
-
showBorders?: boolean;
|
20
|
-
/**
|
21
|
-
* Default: `true`
|
22
|
-
* - if set to `true` - size will be as same as original document
|
23
|
-
* - if set to `false` - size will be as same as container block
|
24
|
-
*/
|
25
|
-
originalSize?: boolean;
|
26
|
-
/**
|
27
|
-
* You can show your document in original size, and make sure that it's not bigger then container block. Default: `false`
|
28
|
-
*/
|
29
|
-
fitToPage?: boolean;
|
30
|
-
/**
|
31
|
-
* Turn on or off auto resize, Default: `true`
|
32
|
-
* **Important** To make work - make sure that `[originalSize]="false"` and pdf-viewer tag has `max-width` or `display` are set.
|
33
|
-
*/
|
34
|
-
autoReSize?: boolean;
|
35
|
-
}
|
package/config/abc/se.type.d.ts
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
export interface YunzaiSEConfig {
|
2
|
-
/**
|
3
|
-
* 大小,默认:`default`
|
4
|
-
* - `compact` 紧凑型,强制忽略 `error`、`extra` 展示
|
5
|
-
*/
|
6
|
-
size?: 'default' | 'compact';
|
7
|
-
/**
|
8
|
-
* 布局类型,等同 `nzLayout`,默认:`horizontal`
|
9
|
-
* - `inline` 时强制大小为 `compact`
|
10
|
-
*/
|
11
|
-
nzLayout?: 'horizontal' | 'vertical' | 'inline';
|
12
|
-
/**
|
13
|
-
* 间距,当 `nzLayout:horizontal` 时有效,默认:`32`
|
14
|
-
*/
|
15
|
-
gutter?: number;
|
16
|
-
/**
|
17
|
-
* 列数,默认:`2`
|
18
|
-
*/
|
19
|
-
col?: number;
|
20
|
-
/**
|
21
|
-
* 标签文本宽度,单位:`px`,默认:`150`
|
22
|
-
*/
|
23
|
-
labelWidth?: number;
|
24
|
-
/**
|
25
|
-
* 是否立即呈现错误视觉,默认:`false`
|
26
|
-
*/
|
27
|
-
firstVisual?: boolean;
|
28
|
-
/**
|
29
|
-
* 是否忽略 `dirty` 校验,默认:`false`
|
30
|
-
*/
|
31
|
-
ignoreDirty?: boolean;
|
32
|
-
}
|