@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
@@ -1,82 +0,0 @@
|
|
1
|
-
export type CurrencyStartingUnit = 'yuan' | 'cent';
|
2
|
-
export interface CurrencyStartingUnitOptions {
|
3
|
-
/**
|
4
|
-
* The starting unit of the value, `yuan` means 元, `cent` means 分, default: `yuan`
|
5
|
-
*
|
6
|
-
* 值的起始单位,`yuan` 元,`cent` 分,默认:`yuan`
|
7
|
-
*/
|
8
|
-
startingUnit?: CurrencyStartingUnit;
|
9
|
-
}
|
10
|
-
export interface CurrencyFormatOptions extends CurrencyStartingUnitOptions {
|
11
|
-
/**
|
12
|
-
* Using `DEFAULT_CURRENCY_CODE` when value is `true
|
13
|
-
*
|
14
|
-
* 是否使用 `CurrencyPipe` 来替代
|
15
|
-
*/
|
16
|
-
useAngular?: boolean;
|
17
|
-
/**
|
18
|
-
* 精度,默认:`2`
|
19
|
-
*/
|
20
|
-
precision?: number;
|
21
|
-
/**
|
22
|
-
* 是否忽略精度 `.0` 或 `.00` 结尾的字符,默认:`true`
|
23
|
-
*/
|
24
|
-
ignoreZeroPrecision?: boolean;
|
25
|
-
/**
|
26
|
-
* Use anguar `currency` pipe parse when is set, pls refer to [document](https://angular.io/api/common/CurrencyPipe)
|
27
|
-
*
|
28
|
-
* 若指定则表示使用 Angular 自带的 `currency` 管道来解析,见[文档](https://angular.cn/api/common/CurrencyPipe)
|
29
|
-
*/
|
30
|
-
ngCurrency?: {
|
31
|
-
display: 'code' | 'symbol' | 'symbol-narrow';
|
32
|
-
currencyCode?: string;
|
33
|
-
digitsInfo?: string;
|
34
|
-
locale?: string;
|
35
|
-
};
|
36
|
-
}
|
37
|
-
/**
|
38
|
-
* Large number format filter, [Document](https://ng.yunzainfo.com/util/format/en#mega)
|
39
|
-
*
|
40
|
-
* 大数据格式化,[文档](https://ng.yunzainfo.com/util/format/en#mega)
|
41
|
-
*/
|
42
|
-
export interface CurrencyMegaOptions extends CurrencyStartingUnitOptions {
|
43
|
-
/**
|
44
|
-
* 精度,默认:`2`
|
45
|
-
*/
|
46
|
-
precision?: number;
|
47
|
-
/**
|
48
|
-
* 单位国际化,默认:`{Q: '京', T: '兆', B: '亿', M: '万', K: '千',}`
|
49
|
-
*/
|
50
|
-
unitI18n?: CurrencyMegaUnitI18n;
|
51
|
-
}
|
52
|
-
export interface CurrencyMegaResult {
|
53
|
-
raw: number | string;
|
54
|
-
value: string;
|
55
|
-
unit: string;
|
56
|
-
unitI18n: string;
|
57
|
-
}
|
58
|
-
export declare const CurrencyMega_Powers: {
|
59
|
-
unit: string;
|
60
|
-
value: number;
|
61
|
-
}[];
|
62
|
-
export interface CurrencyMegaUnitI18n {
|
63
|
-
Q: string;
|
64
|
-
T: string;
|
65
|
-
B: string;
|
66
|
-
M: string;
|
67
|
-
K: string;
|
68
|
-
}
|
69
|
-
export interface CurrencyCNYOptions extends CurrencyStartingUnitOptions {
|
70
|
-
/**
|
71
|
-
* Whether to return to uppercase notation, default: `true`
|
72
|
-
*
|
73
|
-
* 是否返回大写表示法,默认:`true`
|
74
|
-
*/
|
75
|
-
inWords?: boolean;
|
76
|
-
/**
|
77
|
-
* Specify negative sign, default: `negative`
|
78
|
-
*
|
79
|
-
* 指定负数符号,默认:`负`
|
80
|
-
*/
|
81
|
-
minusSymbol?: string;
|
82
|
-
}
|
package/format/string.d.ts
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* String formatting
|
3
|
-
*
|
4
|
-
* 字符串格式化
|
5
|
-
* ```
|
6
|
-
* format('this is ${name}', { name: 'asdf' })
|
7
|
-
* // output: this is asdf
|
8
|
-
* format('this is ${user.name}', { user: { name: 'asdf' } }, true)
|
9
|
-
* // output: this is asdf
|
10
|
-
* ```
|
11
|
-
*/
|
12
|
-
export declare function format(str: string | null | undefined, obj: any | null | undefined, needDeepGet?: boolean): string;
|
13
|
-
export interface FormatMaskOption {
|
14
|
-
mask: string;
|
15
|
-
tokens?: Record<string, FormatMaskToken>;
|
16
|
-
}
|
17
|
-
export interface FormatMaskToken {
|
18
|
-
pattern: RegExp;
|
19
|
-
default?: any;
|
20
|
-
transform?: (char: string) => string;
|
21
|
-
}
|
22
|
-
/**
|
23
|
-
* Format mask
|
24
|
-
*
|
25
|
-
* 格式化掩码
|
26
|
-
*
|
27
|
-
* | 字符 | 描述 |
|
28
|
-
* | --- | --- |
|
29
|
-
* | `0` | 任意数字,若该位置字符不符合,则默认为 `0` 填充 |
|
30
|
-
* | `9` | 任意数字 |
|
31
|
-
* | `#` | 任意字符 |
|
32
|
-
* | `U` | 转换大写 |
|
33
|
-
* | `L` | 转换小写 |
|
34
|
-
* | `*` | 转换为 `*` 字符 |
|
35
|
-
*
|
36
|
-
* ```ts
|
37
|
-
* formatMask('123', '(###)') => (123)
|
38
|
-
* formatMask('15900000000', '999****9999') => 159****0000
|
39
|
-
* ```
|
40
|
-
*/
|
41
|
-
export declare function formatMask(value: string, option: string | FormatMaskOption): string;
|
package/format/validate.d.ts
DELETED
@@ -1,72 +0,0 @@
|
|
1
|
-
export declare const REGEX_STR: {
|
2
|
-
num: string;
|
3
|
-
idCard: string;
|
4
|
-
mobile: string;
|
5
|
-
url: string;
|
6
|
-
ip: string;
|
7
|
-
color: string;
|
8
|
-
chinese: string;
|
9
|
-
};
|
10
|
-
export declare const REGEX: {
|
11
|
-
num: RegExp;
|
12
|
-
idCard: RegExp;
|
13
|
-
mobile: RegExp;
|
14
|
-
url: RegExp;
|
15
|
-
ip: RegExp;
|
16
|
-
color: RegExp;
|
17
|
-
chinese: RegExp;
|
18
|
-
};
|
19
|
-
/**
|
20
|
-
* Wheter is number
|
21
|
-
*
|
22
|
-
* 是否为数字
|
23
|
-
*/
|
24
|
-
export declare function isNum(value: string | number): boolean;
|
25
|
-
/**
|
26
|
-
* Wheter is integer
|
27
|
-
*
|
28
|
-
* 是否为整数
|
29
|
-
*/
|
30
|
-
export declare function isInt(value: string | number): boolean;
|
31
|
-
/**
|
32
|
-
* Wheter is decimal
|
33
|
-
*
|
34
|
-
* 是否为小数点数值
|
35
|
-
*/
|
36
|
-
export declare function isDecimal(value: string | number): boolean;
|
37
|
-
/**
|
38
|
-
* Wheter is People's Republic of China identity card
|
39
|
-
*
|
40
|
-
* 是否为中华人民共和国居民身份证
|
41
|
-
*/
|
42
|
-
export declare function isIdCard(value: string): boolean;
|
43
|
-
/**
|
44
|
-
* Wheter is china mobile (China)
|
45
|
-
*
|
46
|
-
* 是否为手机号(中国)
|
47
|
-
*/
|
48
|
-
export declare function isMobile(value: string): boolean;
|
49
|
-
/**
|
50
|
-
* Wheter is url address
|
51
|
-
*
|
52
|
-
* 是否URL地址
|
53
|
-
*/
|
54
|
-
export declare function isUrl(url: string): boolean;
|
55
|
-
/**
|
56
|
-
* Wheter is IPv4 address (Support v4, v6)
|
57
|
-
*
|
58
|
-
* 是否IP4地址(支持v4、v6)
|
59
|
-
*/
|
60
|
-
export declare function isIp(ip: string): boolean;
|
61
|
-
/**
|
62
|
-
* Wheter is color
|
63
|
-
*
|
64
|
-
* 是否颜色代码值
|
65
|
-
*/
|
66
|
-
export declare function isColor(color: string): boolean;
|
67
|
-
/**
|
68
|
-
* Wheter is chinese
|
69
|
-
*
|
70
|
-
* 是否中文
|
71
|
-
*/
|
72
|
-
export declare function isChinese(value: string): boolean;
|
package/math/in-range.d.ts
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Checks if `value` is between `start` and `end` to, but not including `end`. If `end` is not specified, it's set to start with `start` then set to `0`. If `start` is greater than `end` the params are swapped to support negative ranges.
|
3
|
-
*
|
4
|
-
* 检查 `value` 是否在 `start` 与 `end` 之间,但不包括 `end`。 如果 `end` 没有指定,那么 `start` 设置为 `0`。 如果 `start` 大于 `end`,那么参数会交换以便支持负范围。
|
5
|
-
* ```ts
|
6
|
-
* inRange(3, 2, 4); // true
|
7
|
-
* inRange(4, 8); // true
|
8
|
-
* inRange(4, 2); // false
|
9
|
-
* inRange(2, 2); // false
|
10
|
-
* inRange(1.2, 2); // true
|
11
|
-
* inRange(-3, -2, -6); // true
|
12
|
-
* ```
|
13
|
-
*/
|
14
|
-
export declare function inRange(value: number, start: number, end?: number): boolean;
|
package/math/round.d.ts
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Computes `number` rounded up to `precision`.
|
3
|
-
*
|
4
|
-
* 根据 `precision`(精度) 向上舍入 `number`。
|
5
|
-
* ```ts
|
6
|
-
* ceil(4.006); // 5
|
7
|
-
* ceil(6.004, 2); // 6.01
|
8
|
-
* ceil(6040, -2); // 6100
|
9
|
-
* ```
|
10
|
-
*/
|
11
|
-
export declare function ceil(number: number, precision?: number): number;
|
12
|
-
/**
|
13
|
-
* Computes `number` rounded down to `precision`.
|
14
|
-
*
|
15
|
-
* 根据 `precision`(精度) 向下舍入 `number`。
|
16
|
-
* ```ts
|
17
|
-
* floor(4.006); // 4
|
18
|
-
* floor(0.046, 2); // 0.04
|
19
|
-
* floor(4060, -2); // 4000
|
20
|
-
* ```
|
21
|
-
*/
|
22
|
-
export declare function floor(number: number, precision?: number): number;
|
23
|
-
/**
|
24
|
-
* Computes `number` rounded to `precision`.
|
25
|
-
*
|
26
|
-
* 根据 `precision`(精度) 四舍五入 `number`。
|
27
|
-
* ```ts
|
28
|
-
* round(4.006); // 4
|
29
|
-
* round(4.006, 2); // 4.01
|
30
|
-
* round(4060, -2); // 4100
|
31
|
-
* ```
|
32
|
-
*/
|
33
|
-
export declare function round(number: number, precision?: number): number;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { LayoutBasicAside, NavType, YunzaiNavTopic, YunzaiProjectInfo, YunzaiUser } from '@yelon/util/mtypes';
|
2
|
-
export declare const YZ_USER_KEY = "_yz_user";
|
3
|
-
export declare const YZ_PROJECT_INFO_KEY = "_yz_project_info";
|
4
|
-
export declare const YZ_CURRENT_KEY = "_yz_current";
|
5
|
-
export declare const YZ_HEADER_KEY = "_yz_header";
|
6
|
-
export declare const YZ_HEADER_TYPE_KEY = "_yz_header_type";
|
7
|
-
export declare const YZ_DEFAULT_ROUTE_KEY = "_yz_default_route";
|
8
|
-
export declare const YZ_TENANT_KEY = "_yz_tenant";
|
9
|
-
export declare const YZ_NEED_AUTH_KEY = "_yz_need_auth";
|
10
|
-
type returnSet<T> = (data: T) => void;
|
11
|
-
type returnGet<T> = () => T | null;
|
12
|
-
export declare function useLocalStorageUser(): [returnSet<YunzaiUser>, returnGet<YunzaiUser>];
|
13
|
-
export declare function useLocalStorageProjectInfo(): [returnSet<YunzaiProjectInfo>, returnGet<YunzaiProjectInfo>];
|
14
|
-
export declare function useLocalStorageCurrent(): [returnSet<LayoutBasicAside>, returnGet<LayoutBasicAside>];
|
15
|
-
export declare function useLocalStorageHeaderType(): [returnSet<NavType>, returnGet<NavType>];
|
16
|
-
export declare function useLocalStorageHeader(): [returnSet<YunzaiNavTopic[]>, returnGet<YunzaiNavTopic[]>];
|
17
|
-
export declare function useLocalStorageDefaultRoute(): [returnSet<string>, returnGet<string>];
|
18
|
-
export declare function useLocalStorageTenant(): [returnSet<string>, returnGet<string>];
|
19
|
-
export {};
|
package/mtypes/menu.type.d.ts
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
export interface YunzaiMenu {
|
2
|
-
[key: string]: any;
|
3
|
-
appCode: string;
|
4
|
-
appIconUrl: string;
|
5
|
-
appType: string;
|
6
|
-
appUrl: string;
|
7
|
-
attribute: string;
|
8
|
-
badge: number;
|
9
|
-
badge_dot: boolean;
|
10
|
-
badge_status: string;
|
11
|
-
children: YunzaiMenu[];
|
12
|
-
createdDate: string;
|
13
|
-
displayIndex: number;
|
14
|
-
externalLink: string;
|
15
|
-
group: boolean;
|
16
|
-
helpUrl: string;
|
17
|
-
hide: boolean;
|
18
|
-
hideChildren: boolean;
|
19
|
-
hideInBreadcrumb: boolean;
|
20
|
-
i18n: string;
|
21
|
-
icon: string;
|
22
|
-
id: string;
|
23
|
-
intro: string;
|
24
|
-
label: string;
|
25
|
-
link: string;
|
26
|
-
menuAuths: string[];
|
27
|
-
reuse: boolean;
|
28
|
-
shortcut: boolean;
|
29
|
-
shortcut_root: boolean;
|
30
|
-
systemCode: string;
|
31
|
-
target: string;
|
32
|
-
text: string;
|
33
|
-
version: number;
|
34
|
-
}
|
35
|
-
export interface YunzaiMenuAttribute {
|
36
|
-
defaultRoute: any;
|
37
|
-
dataPlatform: any;
|
38
|
-
targetUser: any;
|
39
|
-
starConfig: any;
|
40
|
-
}
|
package/mtypes/nav.types.d.ts
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
import { YunzaiNavTopic } from './header-menu.type';
|
2
|
-
export declare enum NavType {
|
3
|
-
APPLICATION = "application",// 应用与服务
|
4
|
-
GROUP = "group",// 分组
|
5
|
-
TILE = "tiled",// 平铺
|
6
|
-
BLANK = "blank",// 空
|
7
|
-
TABS = "tabs"
|
8
|
-
}
|
9
|
-
export interface LayoutBasicAside {
|
10
|
-
name: string;
|
11
|
-
intro: string;
|
12
|
-
icon: string;
|
13
|
-
}
|
14
|
-
export interface LayoutBasicDisplay {
|
15
|
-
nav: boolean;
|
16
|
-
reusetab: boolean;
|
17
|
-
aside: boolean;
|
18
|
-
}
|
19
|
-
export interface LayoutNavApplicationState {
|
20
|
-
active: boolean;
|
21
|
-
type: 'all' | 'mine' | 'other';
|
22
|
-
topic?: YunzaiNavTopic;
|
23
|
-
topics: YunzaiNavTopic[];
|
24
|
-
list: YunzaiNavTopic[];
|
25
|
-
search: string | null;
|
26
|
-
}
|
27
|
-
export interface LayoutNavGroupState {
|
28
|
-
topics: YunzaiNavTopic[];
|
29
|
-
}
|
package/mtypes/page.d.ts
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
export interface YunzaiPageParam<T> {
|
2
|
-
pageNum?: number;
|
3
|
-
pageSize?: number;
|
4
|
-
pageParam?: T;
|
5
|
-
}
|
6
|
-
export interface Pageable {
|
7
|
-
offset: number;
|
8
|
-
pageNumber: number;
|
9
|
-
pageSize: number;
|
10
|
-
paged: boolean;
|
11
|
-
sort: PageableSort;
|
12
|
-
unpaged: boolean;
|
13
|
-
}
|
14
|
-
export interface PageableSort {
|
15
|
-
empty: boolean;
|
16
|
-
sorted: boolean;
|
17
|
-
unsorted: boolean;
|
18
|
-
}
|
19
|
-
export interface YunzaiPageResult<T> {
|
20
|
-
content: T[];
|
21
|
-
empty: boolean;
|
22
|
-
first: boolean;
|
23
|
-
last: boolean;
|
24
|
-
number: number;
|
25
|
-
numberOfElements: number;
|
26
|
-
pageable: Pageable;
|
27
|
-
size: number;
|
28
|
-
sort: PageableSort;
|
29
|
-
totalElements: number;
|
30
|
-
totalPages: number;
|
31
|
-
}
|
32
|
-
export declare class YunzaiPageBuilder<T extends any | unknown> {
|
33
|
-
private page;
|
34
|
-
pageNum(pageNum: number): this;
|
35
|
-
pageSize(pageSize: number): this;
|
36
|
-
pageParam(param: T): this;
|
37
|
-
default(): this;
|
38
|
-
build(): YunzaiPageParam<T>;
|
39
|
-
}
|
40
|
-
export declare class Page<T> {
|
41
|
-
pageNum: number;
|
42
|
-
pageSize: number;
|
43
|
-
param?: Partial<T>;
|
44
|
-
private constructor();
|
45
|
-
static create<T>(): Page<T>;
|
46
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
export interface YunzaiHeaderStyle {
|
2
|
-
label: string;
|
3
|
-
value: string;
|
4
|
-
}
|
5
|
-
export interface YunzaiProfile {
|
6
|
-
name: string;
|
7
|
-
url: string;
|
8
|
-
}
|
9
|
-
export interface YunzaiProjectInfo {
|
10
|
-
colorfulLogoUrl: string;
|
11
|
-
copyright: string;
|
12
|
-
faviconUrl: string;
|
13
|
-
gateway: string;
|
14
|
-
headerStyle: YunzaiHeaderStyle[];
|
15
|
-
maxLogoUrl: string;
|
16
|
-
miniLogoUrl: string;
|
17
|
-
profileList: YunzaiProfile[];
|
18
|
-
projectName: string;
|
19
|
-
showAllMenu: boolean;
|
20
|
-
tucaoUrl: string;
|
21
|
-
pageTitlePattern: string;
|
22
|
-
}
|
package/mtypes/response.d.ts
DELETED
package/mtypes/role.type.d.ts
DELETED
package/mtypes/user.types.d.ts
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
import { YunzaiAuthority } from './authority.type';
|
2
|
-
import { YunzaiMenu } from './menu.type';
|
3
|
-
import { YunzaiRole } from './role.type';
|
4
|
-
export interface YunzaiUser {
|
5
|
-
email: string;
|
6
|
-
accountNonExpired: boolean;
|
7
|
-
accountNonLocked: boolean;
|
8
|
-
authorities: YunzaiAuthority[];
|
9
|
-
avatarId: string;
|
10
|
-
credentialsNonExpired: boolean;
|
11
|
-
deptId: string;
|
12
|
-
deptName: string;
|
13
|
-
enabled: boolean;
|
14
|
-
id: string;
|
15
|
-
menu: YunzaiMenu[];
|
16
|
-
realname: string;
|
17
|
-
roles: YunzaiRole[];
|
18
|
-
userCode: string;
|
19
|
-
userId: string;
|
20
|
-
userType: number;
|
21
|
-
username: string;
|
22
|
-
}
|
package/other/assert.d.ts
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Assert whether the expression and throw an error into console in dev mode
|
3
|
-
*
|
4
|
-
* 断言表达式是否符合预期,并在开发模式下会在控制台抛出一个错误
|
5
|
-
*/
|
6
|
-
export declare function assert(expression: boolean, msg?: string): void;
|
7
|
-
/**
|
8
|
-
* Assert whether empty (`null` or `undefined`)
|
9
|
-
*
|
10
|
-
* 断言是否空值(`null` 或 `undefined`)
|
11
|
-
*/
|
12
|
-
export declare function assertEmpty(actual: unknown, msg?: string): void;
|
13
|
-
/**
|
14
|
-
* Assert whether `number` type
|
15
|
-
*
|
16
|
-
* 断言是否 `number` 类型
|
17
|
-
*/
|
18
|
-
export declare function assertNumber(actual: unknown, msg?: string): void;
|
19
|
-
/**
|
20
|
-
* Assert whether `string` type
|
21
|
-
*
|
22
|
-
* 断言是否 `string` 类型
|
23
|
-
*/
|
24
|
-
export declare function assertString(actual: unknown, msg?: string): void;
|
25
|
-
/**
|
26
|
-
* Assert whether `array` type
|
27
|
-
*
|
28
|
-
* 断言是否 `array` 类型
|
29
|
-
*/
|
30
|
-
export declare function assertArray(actual: unknown, msg?: string): void;
|
31
|
-
/**
|
32
|
-
* Assert whether `Observable` type
|
33
|
-
*
|
34
|
-
* 断言是否 `Observable` 类型
|
35
|
-
*/
|
36
|
-
export declare function assertObservable(obj: unknown, msg?: string): void;
|
package/other/deep.d.ts
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Gets the value at `path` of `object`, like `_.get` in lodash.
|
3
|
-
*
|
4
|
-
* 类似 `_.get`,根据 `path` 获取安全值
|
5
|
-
*/
|
6
|
-
export declare function deepGet(obj: any, path: string | string[] | null | undefined, defaultValue?: unknown): any;
|
7
|
-
/**
|
8
|
-
* Base on [extend](https://github.com/justmoon/node-extend) deep copy.
|
9
|
-
*
|
10
|
-
* 基于 [extend](https://github.com/justmoon/node-extend) 的深度拷贝
|
11
|
-
*
|
12
|
-
* NOTE: Don't a lot of recursion, maybe performance issues
|
13
|
-
*/
|
14
|
-
export declare function deepCopy<T extends Record<string, any> = any>(obj: T | null | undefined): T;
|
15
|
-
/**
|
16
|
-
* Deep merge object.
|
17
|
-
*
|
18
|
-
* 深度合并对象
|
19
|
-
*
|
20
|
-
* @param original 原始对象
|
21
|
-
* @param arrayProcessMethod 数组处理方式
|
22
|
-
* - `true` 表示替换新值,不管新值为哪种类型
|
23
|
-
* - `false` 表示会合并整个数组(将旧数据与新数据合并成新数组)
|
24
|
-
* @param objects 要合并的对象
|
25
|
-
*/
|
26
|
-
export declare function deepMergeKey(original: unknown, arrayProcessMethod: boolean, ...objects: any[]): any;
|
27
|
-
/**
|
28
|
-
* Deep merge object.
|
29
|
-
*
|
30
|
-
* 深度合并对象
|
31
|
-
*/
|
32
|
-
export declare function deepMerge(original: unknown, ...objects: unknown[]): any;
|
package/other/favicon.d.ts
DELETED
package/other/lazy.service.d.ts
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
import { Observable } from 'rxjs';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export interface LazyResult {
|
4
|
-
path: string;
|
5
|
-
status: 'ok' | 'error' | 'loading';
|
6
|
-
error?: any;
|
7
|
-
}
|
8
|
-
export interface LazyLoadItem {
|
9
|
-
path: string;
|
10
|
-
options?: LazyLoadOptions;
|
11
|
-
}
|
12
|
-
export interface LazyLoadOptions {
|
13
|
-
innerContent?: string;
|
14
|
-
attributes?: Record<string, string>;
|
15
|
-
rel?: string;
|
16
|
-
}
|
17
|
-
/**
|
18
|
-
* `LazyService` delay loading JS or CSS files.
|
19
|
-
*
|
20
|
-
* 延迟加载资源(js 或 css)服务
|
21
|
-
*/
|
22
|
-
export declare class LazyService {
|
23
|
-
private readonly doc;
|
24
|
-
private list;
|
25
|
-
private cached;
|
26
|
-
private _notify;
|
27
|
-
get change(): Observable<LazyResult[]>;
|
28
|
-
clear(): void;
|
29
|
-
private attachAttributes;
|
30
|
-
/**
|
31
|
-
* Load script or style files
|
32
|
-
*/
|
33
|
-
load(paths: string | LazyLoadItem | Array<string | LazyLoadItem>): Promise<LazyResult[]>;
|
34
|
-
/**
|
35
|
-
* Load a script file
|
36
|
-
*/
|
37
|
-
loadScript(path: string, options?: LazyLoadOptions): Promise<LazyResult>;
|
38
|
-
/**
|
39
|
-
* Load a style file
|
40
|
-
*/
|
41
|
-
loadStyle(path: string, options?: LazyLoadOptions): Promise<LazyResult>;
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LazyService, never>;
|
43
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LazyService>;
|
44
|
-
}
|
package/other/logger.d.ts
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
export declare class PathToRegexpService {
|
3
|
-
constructor();
|
4
|
-
DEFAULT_DELIMITER: string;
|
5
|
-
PATH_REGEXP: RegExp;
|
6
|
-
parse(str: any, options: any): (string | {
|
7
|
-
name: string | number;
|
8
|
-
prefix: string;
|
9
|
-
delimiter: any;
|
10
|
-
optional: boolean;
|
11
|
-
repeat: boolean;
|
12
|
-
pattern: any;
|
13
|
-
})[];
|
14
|
-
compile(str: any, options: any): (data: any, options: any) => string;
|
15
|
-
tokensToFunction(tokens: any, options: any): (data: any, options: any) => string;
|
16
|
-
escapeString(str: any): any;
|
17
|
-
escapeGroup(group: any): any;
|
18
|
-
flags(options: any): "" | "i";
|
19
|
-
regexpToRegexp(path: any, keys: any): any;
|
20
|
-
arrayToRegexp(path: any, keys: any, options: any): RegExp;
|
21
|
-
stringToRegexp(path: any, keys: any, options: any): RegExp;
|
22
|
-
tokensToRegExp(tokens: any, keys: any, options: any): RegExp;
|
23
|
-
pathToRegexp(path: any, keys: any, options: any): any;
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PathToRegexpService, never>;
|
25
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PathToRegexpService>;
|
26
|
-
}
|
package/other/resize.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export declare const resizeWindow: () => void;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
2
|
-
import { CurrencyCNYOptions } from '@yelon/util/format';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
/**
|
5
|
-
* Converted into RMB notation.
|
6
|
-
*
|
7
|
-
* 转化成人民币表示法
|
8
|
-
*/
|
9
|
-
export declare class CurrencyCNYPipe implements PipeTransform {
|
10
|
-
private readonly srv;
|
11
|
-
transform(value: number | string, options?: CurrencyCNYOptions): string;
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyCNYPipe, never>;
|
13
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<CurrencyCNYPipe, "cny", true>;
|
14
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
2
|
-
import { CurrencyMegaOptions } from '@yelon/util/format';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
/**
|
5
|
-
* Large number format filter
|
6
|
-
*
|
7
|
-
* 大数据格式化
|
8
|
-
*/
|
9
|
-
export declare class CurrencyMegaPipe implements PipeTransform {
|
10
|
-
private readonly srv;
|
11
|
-
private isCN;
|
12
|
-
transform(value: number | string, options?: CurrencyMegaOptions): string;
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyMegaPipe, never>;
|
14
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<CurrencyMegaPipe, "mega", true>;
|
15
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./mega.pipe";
|
3
|
-
import * as i2 from "./price.pipe";
|
4
|
-
import * as i3 from "./cny.pipe";
|
5
|
-
export declare class CurrencyPipeModule {
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyPipeModule, never>;
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CurrencyPipeModule, never, [typeof i1.CurrencyMegaPipe, typeof i2.CurrencyPricePipe, typeof i3.CurrencyCNYPipe], [typeof i1.CurrencyMegaPipe, typeof i2.CurrencyPricePipe, typeof i3.CurrencyCNYPipe]>;
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CurrencyPipeModule>;
|
9
|
-
}
|