@yelon/util 16.4.5 → 17.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +1 -1
- package/README.md +6 -2
- package/browser/cookie.service.d.ts +2 -5
- package/browser/is-empty.d.ts +2 -2
- package/browser/scroll.service.d.ts +3 -6
- package/config/auth/auth.type.d.ts +2 -10
- package/config/cache/cache.type.d.ts +26 -0
- package/config/config.types.d.ts +5 -2
- package/config/index.d.ts +2 -2
- package/config/mock/mock.type.d.ts +0 -4
- package/config/theme/http.type.d.ts +3 -2
- package/config/theme/pipe.type.d.ts +3 -0
- package/date-time/time.d.ts +16 -8
- package/decorator/convert.d.ts +8 -0
- package/decorator/zone-outside.d.ts +2 -2
- package/esm2022/array/array-type.service.mjs +1 -1
- package/esm2022/array/array.service.mjs +6 -5
- package/esm2022/browser/cookie.service.mjs +11 -14
- package/esm2022/browser/copy.mjs +1 -1
- package/esm2022/browser/is-empty.mjs +3 -3
- package/esm2022/browser/scroll.service.mjs +11 -14
- package/esm2022/browser/style.mjs +1 -1
- package/esm2022/config/auth/auth.type.mjs +1 -1
- package/esm2022/config/cache/cache.type.mjs +1 -1
- package/esm2022/config/config.service.mjs +7 -6
- package/esm2022/config/config.types.mjs +5 -2
- package/esm2022/config/index.mjs +3 -3
- package/esm2022/config/mock/mock.type.mjs +1 -1
- package/esm2022/config/theme/http.type.mjs +1 -1
- package/esm2022/config/theme/pipe.type.mjs +2 -0
- package/esm2022/date-time/picker.mjs +1 -1
- package/esm2022/date-time/time.mjs +16 -11
- package/esm2022/decorator/convert.mjs +9 -1
- package/esm2022/decorator/zone-outside.mjs +3 -3
- package/esm2022/form/match-control.mjs +1 -1
- package/esm2022/format/currency.service.mjs +10 -15
- package/esm2022/format/string.mjs +1 -1
- package/esm2022/index.mjs +1 -2
- package/esm2022/math/in-range.mjs +1 -1
- package/esm2022/math/round.mjs +1 -1
- package/esm2022/mcache/localStorageUtils.mjs +1 -1
- package/esm2022/mtypes/header-menu.type.mjs +1 -1
- package/esm2022/mtypes/menu.type.mjs +1 -1
- package/esm2022/mtypes/page.mjs +1 -1
- package/esm2022/other/assert.mjs +2 -2
- package/esm2022/other/deep.mjs +1 -1
- package/esm2022/other/favicon.mjs +1 -1
- package/esm2022/other/index.mjs +2 -2
- package/esm2022/other/lazy.service.mjs +8 -11
- package/esm2022/other/logger.mjs +1 -1
- package/esm2022/other/path-to-regexp.service.mjs +6 -6
- package/esm2022/pipes/currency/cny.pipe.mjs +15 -15
- package/esm2022/pipes/currency/mega.pipe.mjs +16 -20
- package/esm2022/pipes/currency/module.mjs +6 -6
- package/esm2022/pipes/currency/price.pipe.mjs +19 -19
- package/esm2022/pipes/filter/filter.pipe.mjs +11 -10
- package/esm2022/pipes/filter/module.mjs +6 -6
- package/esm2022/pipes/format/mask.pipe.mjs +24 -24
- package/esm2022/pipes/format/module.mjs +6 -6
- package/esm2022/token/window.mjs +1 -1
- package/fesm2022/array.mjs +5 -4
- package/fesm2022/array.mjs.map +1 -1
- package/fesm2022/browser.mjs +20 -26
- package/fesm2022/browser.mjs.map +1 -1
- package/fesm2022/config.mjs +11 -7
- package/fesm2022/config.mjs.map +1 -1
- package/fesm2022/date-time.mjs +15 -10
- package/fesm2022/date-time.mjs.map +1 -1
- package/fesm2022/decorator.mjs +10 -2
- package/fesm2022/decorator.mjs.map +1 -1
- package/fesm2022/form.mjs.map +1 -1
- package/fesm2022/format.mjs +9 -14
- 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 +17 -20
- package/fesm2022/other.mjs.map +1 -1
- package/fesm2022/pipe-currency.mjs +48 -52
- package/fesm2022/pipe-currency.mjs.map +1 -1
- package/fesm2022/pipe-filter.mjs +15 -14
- package/fesm2022/pipe-filter.mjs.map +1 -1
- package/fesm2022/pipe-format.mjs +28 -28
- package/fesm2022/pipe-format.mjs.map +1 -1
- package/fesm2022/token.mjs.map +1 -1
- package/fesm2022/yelon-util.mjs +0 -1
- package/fesm2022/yelon-util.mjs.map +1 -1
- package/format/currency.service.d.ts +3 -2
- package/index.d.ts +0 -1
- package/mtypes/header-menu.type.d.ts +3 -2
- package/mtypes/menu.type.d.ts +6 -5
- package/mtypes/page.d.ts +2 -1
- package/other/index.d.ts +1 -1
- package/other/lazy.service.d.ts +1 -2
- package/other/path-to-regexp.service.d.ts +12 -11
- package/package.json +14 -20
- package/pipes/currency/cny.pipe.d.ts +8 -9
- package/pipes/currency/mega.pipe.d.ts +8 -9
- package/pipes/currency/module.d.ts +1 -1
- package/pipes/currency/price.pipe.d.ts +12 -13
- package/pipes/filter/filter.pipe.d.ts +6 -6
- package/pipes/filter/module.d.ts +1 -1
- package/pipes/format/mask.pipe.d.ts +20 -20
- package/pipes/format/module.d.ts +1 -1
- package/analysis/global-event.subject.d.ts +0 -7
- package/analysis/index.d.ts +0 -1
- package/esm2022/analysis/analysis.mjs +0 -5
- package/esm2022/analysis/global-event.subject.mjs +0 -17
- package/esm2022/analysis/index.mjs +0 -2
- package/fesm2022/analysis.mjs +0 -24
- package/fesm2022/analysis.mjs.map +0 -1
package/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
MIT License
|
2
2
|
|
3
|
-
Copyright (c) 2017-present yunzai<
|
3
|
+
Copyright (c) 2017-present yunzai<yunzai-bot@outlook.com>
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# @yelon/util [![Build Status](https://dev.azure.com/
|
1
|
+
# @yelon/util [![Build Status](https://dev.azure.com/hbyunzai/yelon/_apis/build/status/yelon-CI?branchName=master)](https://dev.azure.com/hbyunzai/yelon/_build/latest?definitionId=1&branchName=master) [![NPM version](https://img.shields.io/npm/v/@yelon/util.svg?style=flat-square)](https://www.npmjs.com/package/@yelon/util)
|
2
2
|
|
3
3
|
Universal toolset of ng-yunzai.
|
4
4
|
|
@@ -6,7 +6,11 @@ Universal toolset of ng-yunzai.
|
|
6
6
|
|
7
7
|
+ [Document](https://ng.yunzainfo.com/util) ([Surge Mirror](https://ng-yunzai-doc.surge.sh/util)
|
8
8
|
+ [@yelon Source](https://github.com/hbyunzai/yelon)
|
9
|
-
+ [DEMO](https://ng-yunzai.surge.sh) ([国内镜像](https://ng
|
9
|
+
+ [DEMO](https://ng-yunzai.surge.sh) ([国内镜像](https://ng.yunzainfo.com/))
|
10
|
+
|
11
|
+
## Architecture
|
12
|
+
|
13
|
+
![Architecture](https://raw.githubusercontent.com/hbyunzai/yelon/master/_screenshot/architecture.png)
|
10
14
|
|
11
15
|
## Troubleshooting
|
12
16
|
|
@@ -1,5 +1,3 @@
|
|
1
|
-
import { Platform } from '@angular/cdk/platform';
|
2
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
3
1
|
import * as i0 from "@angular/core";
|
4
2
|
export interface CookieOptions {
|
5
3
|
path?: string;
|
@@ -20,8 +18,8 @@ export interface CookieOptions {
|
|
20
18
|
* 一组简单的 Cookie 操作类。
|
21
19
|
*/
|
22
20
|
export declare class CookieService {
|
23
|
-
private _doc;
|
24
|
-
private platform;
|
21
|
+
private readonly _doc;
|
22
|
+
private readonly platform;
|
25
23
|
private get doc();
|
26
24
|
/**
|
27
25
|
* Original cookie value
|
@@ -29,7 +27,6 @@ export declare class CookieService {
|
|
29
27
|
* 原始Cookie值
|
30
28
|
*/
|
31
29
|
get cookie(): string;
|
32
|
-
constructor(_doc: NzSafeAny, platform: Platform);
|
33
30
|
/**
|
34
31
|
* Get all cookie key-value pairs
|
35
32
|
*
|
package/browser/is-empty.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* Used to verify `<ng-content
|
2
|
+
* Used to verify `<ng-content />` is empty, useful for custom components.
|
3
3
|
*
|
4
|
-
* 用于校验 `<ng-content
|
4
|
+
* 用于校验 `<ng-content />` 是否为空,自定义组件时蛮有用。
|
5
5
|
*/
|
6
6
|
export declare function isEmpty(element: HTMLElement): boolean;
|
@@ -1,18 +1,15 @@
|
|
1
|
-
import { Platform } from '@angular/cdk/platform';
|
2
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
3
1
|
import * as i0 from "@angular/core";
|
4
2
|
export declare class ScrollService {
|
5
|
-
private _doc;
|
6
|
-
private platform;
|
3
|
+
private readonly _doc;
|
4
|
+
private readonly platform;
|
7
5
|
private _getDoc;
|
8
6
|
private _getWin;
|
9
|
-
constructor(_doc: NzSafeAny, platform: Platform);
|
10
7
|
/**
|
11
8
|
* 获取滚动条位置
|
12
9
|
*
|
13
10
|
* @param element 指定元素,默认 `window`
|
14
11
|
*/
|
15
|
-
getScrollPosition(element?: Element | Window): [number, number];
|
12
|
+
getScrollPosition(element?: Element | Window | null): [number, number];
|
16
13
|
/**
|
17
14
|
* 设置滚动条位置
|
18
15
|
*
|
@@ -18,9 +18,9 @@ export interface YunzaiAuthConfig {
|
|
18
18
|
*/
|
19
19
|
token_send_key?: string;
|
20
20
|
/**
|
21
|
-
* 发送token模板(默认为:`'${
|
21
|
+
* 发送token模板(默认为:`'${token}'`),使用 `${token}` 表示token点位符(**注意:**请务必使用 \`\` 包裹),例如:
|
22
22
|
*
|
23
|
-
* - `Bearer ${
|
23
|
+
* - `Bearer ${token}`
|
24
24
|
*/
|
25
25
|
token_send_template?: string;
|
26
26
|
/**
|
@@ -35,14 +35,6 @@ export interface YunzaiAuthConfig {
|
|
35
35
|
* 忽略TOKEN的URL地址列表,默认值为:`[/\/login/, /assets\//, /passport\//]`
|
36
36
|
*/
|
37
37
|
ignores?: RegExp[];
|
38
|
-
/**
|
39
|
-
* 允许匿名登录KEY,若请求参数中带有该KEY表示忽略TOKEN,默认:`_allow_anonymous`
|
40
|
-
*/
|
41
|
-
allow_anonymous_key?: string;
|
42
|
-
/**
|
43
|
-
* 是否校验失效时命中后继续调用后续拦截器的 `intercept` 方法,默认:`true`
|
44
|
-
*/
|
45
|
-
executeOtherInterceptors?: boolean;
|
46
38
|
/**
|
47
39
|
* 刷新间隔时长(单位:ms),默认:`3000`
|
48
40
|
*/
|
@@ -37,4 +37,30 @@ export interface YunzaiCacheConfig {
|
|
37
37
|
* Custom request
|
38
38
|
*/
|
39
39
|
request?: (key: string) => Observable<unknown>;
|
40
|
+
/**
|
41
|
+
* Default configuration of interceptor
|
42
|
+
*
|
43
|
+
* 拦截器默认配置项
|
44
|
+
*/
|
45
|
+
interceptor?: YunzaiCacheInterceptor;
|
46
|
+
}
|
47
|
+
export interface YunzaiCacheInterceptor {
|
48
|
+
/**
|
49
|
+
* Whether to enable, default `true`
|
50
|
+
*
|
51
|
+
* 是否启用,默认 `true`
|
52
|
+
*/
|
53
|
+
enabled?: boolean;
|
54
|
+
/**
|
55
|
+
* Specify the storage method, `m` means memory, `s` means persistence; default: `m`
|
56
|
+
*
|
57
|
+
* 指定存储方式,`m` 表示内存,`s` 表示持久化;默认:`m`
|
58
|
+
*/
|
59
|
+
saveType?: 'm' | 's';
|
60
|
+
/**
|
61
|
+
* Whether to trigger a notification, default: `true`
|
62
|
+
*
|
63
|
+
* 是否触发通知,默认:`true`
|
64
|
+
*/
|
65
|
+
emitNotify?: boolean;
|
40
66
|
}
|
package/config/config.types.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
2
|
-
import { YunzaiDateRangePickerConfig, YunzaiErrorCollectConfig, YunzaiExceptionType, YunzaiImageConfig, YunzaiLoadingConfig, YunzaiLodopConfig, YunzaiMediaConfig, YunzaiOnboardingConfig, YunzaiPageHeaderConfig, YunzaiPdfConfig, YunzaiQRConfig, YunzaiSEConfig, YunzaiSGConfig, YunzaiSTConfig, YunzaiSVConfig, YunzaiXlsxConfig, YunzaiZipConfig
|
1
|
+
import { EnvironmentProviders, InjectionToken } from '@angular/core';
|
2
|
+
import { YunzaiCellConfig, YunzaiDateRangePickerConfig, YunzaiErrorCollectConfig, YunzaiExceptionType, YunzaiImageConfig, YunzaiLoadingConfig, YunzaiLodopConfig, YunzaiMediaConfig, YunzaiOnboardingConfig, YunzaiPageHeaderConfig, YunzaiPdfConfig, YunzaiQRConfig, YunzaiSEConfig, YunzaiSGConfig, YunzaiSTConfig, YunzaiSVConfig, YunzaiXlsxConfig, YunzaiZipConfig } from './abc/index';
|
3
3
|
import { YunzaiACLConfig } from './acl/acl.type';
|
4
4
|
import { YunzaiAuthConfig } from './auth/auth.type';
|
5
5
|
import { YunzaiBusinessConfig } from './bis/bis.type';
|
@@ -9,6 +9,7 @@ import { YunzaiMockConfig } from './mock/mock.type';
|
|
9
9
|
import { YunzaiSFConfig } from './sf/sf.type';
|
10
10
|
import { YunzaiSocketConfig } from './socket/socket.type';
|
11
11
|
import { YunzaiThemeHttpClientConfig, YunzaiThemeResponsiveConfig, YunzaiThemeI18nConfig } from './theme/index';
|
12
|
+
import { YunzaiThemePipeConfig } from './theme/pipe.type';
|
12
13
|
import { YunzaiUtilArrayConfig } from './util/array.type';
|
13
14
|
import { YunzaiUtilCurrencyConfig } from './util/currency.type';
|
14
15
|
export interface YunzaiConfig {
|
@@ -43,7 +44,9 @@ export interface YunzaiConfig {
|
|
43
44
|
themeHttp?: YunzaiThemeHttpClientConfig;
|
44
45
|
themeResponsive?: YunzaiThemeResponsiveConfig;
|
45
46
|
themeI18n?: YunzaiThemeI18nConfig;
|
47
|
+
themePipe?: YunzaiThemePipeConfig;
|
46
48
|
}
|
47
49
|
export type YunzaiConfigKey = keyof YunzaiConfig;
|
48
50
|
export declare const YUNZAI_CONFIG: InjectionToken<YunzaiConfig>;
|
49
51
|
export declare function YUNZAI_CONFIG_FACTORY(): YunzaiConfig;
|
52
|
+
export declare function provideYunzaiConfig(config: YunzaiConfig): EnvironmentProviders;
|
package/config/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export * from './util/currency.type';
|
|
8
8
|
export * from './theme/index';
|
9
9
|
export * from './mock/mock.type';
|
10
10
|
export * from './sf/sf.type';
|
11
|
-
export * from './bis/bis.type';
|
12
|
-
export * from './socket/socket.type';
|
13
11
|
export * from './config.types';
|
14
12
|
export * from './config.service';
|
13
|
+
export * from './bis/bis.type';
|
14
|
+
export * from './socket/socket.type';
|
@@ -7,8 +7,9 @@ export interface YunzaiThemeHttpClientConfig {
|
|
7
7
|
nullValueHandling?: 'include' | 'ignore';
|
8
8
|
/**
|
9
9
|
* 时间值处理,默认:`timestamp`
|
10
|
-
* - timestamp
|
10
|
+
* - timestamp:时间戳毫秒级
|
11
|
+
* - timestampSecond:时间戳秒级
|
11
12
|
* - ignore:忽略处理,保持原始状态
|
12
13
|
*/
|
13
|
-
dateValueHandling?: 'timestamp' | 'ignore';
|
14
|
+
dateValueHandling?: 'timestamp' | 'timestampSecond' | 'ignore';
|
14
15
|
}
|
package/date-time/time.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
2
|
-
import
|
2
|
+
import { DateLocale } from 'ng-zorro-antd/i18n';
|
3
3
|
/**
|
4
4
|
* Get the time range, return `[ Date, Date]` for the start and end dates
|
5
5
|
*
|
@@ -16,16 +16,24 @@ export declare function getTimeDistance(type: 'today' | '-today' | 'yesterday' |
|
|
16
16
|
* fix time is the most, big value
|
17
17
|
*/
|
18
18
|
export declare function fixEndTimeOfRange(dates: [Date, Date]): [Date, Date];
|
19
|
-
export
|
19
|
+
export interface ToDateOptions {
|
20
|
+
/** If parsing fails try to parse the date by pressing `formatString` */
|
20
21
|
formatString?: string;
|
22
|
+
/** If parsing fails returned default value, default: `new Date(NaN)` */
|
21
23
|
defaultValue?: NzSafeAny;
|
22
|
-
|
24
|
+
timestampSecond?: boolean;
|
25
|
+
}
|
23
26
|
/**
|
24
|
-
*
|
25
|
-
* - If the argument is a number, it is treated as a timestamp.
|
27
|
+
* Convert to `Date` format
|
26
28
|
*
|
27
|
-
* @param
|
28
|
-
|
29
|
+
* @param value When is a number, it's treated as a timestamp; If it's seconds, you need to provide the `options.timestampSecond` parameter.
|
30
|
+
*/
|
31
|
+
export declare function toDate(value?: Date | string | number | null, options?: string | ToDateOptions): Date;
|
32
|
+
/**
|
33
|
+
* Format date, supports `Date, number, string` types
|
34
|
+
*
|
35
|
+
* @param value When is a number, it is treated as a timestamp (Support seconds and milliseconds timestamp).
|
36
|
+
* @param formatString Please refer to [date-fnd format](https://date-fns.org/v2.30.0/docs/format) for string format
|
37
|
+
* @param dateLocale Recommended to be consistent with NG-ZORRO by using `inject(NZ_DATE_LOCALE)`
|
29
38
|
*/
|
30
|
-
export declare function toDate(value?: Date | string | number | null, options?: ToDateOptions): Date;
|
31
39
|
export declare function formatDate(value: Date | string | number, formatString: string, dateLocale?: DateLocale): string;
|
package/decorator/convert.d.ts
CHANGED
@@ -3,6 +3,10 @@ export type BooleanInput = boolean | string | undefined | null;
|
|
3
3
|
export type NumberInput = number | string | undefined | null;
|
4
4
|
export declare function toBoolean(value: unknown, defaultValue?: boolean | null | undefined): boolean | null | undefined;
|
5
5
|
/**
|
6
|
+
* @deprecated Recommended to use the built-in `transform` and `static ngAcceptInputType_` can be removed
|
7
|
+
* - Use `@Input({ transform: booleanAttribute })` instead of `@InputBoolean()`
|
8
|
+
* - Use `@Input({ transform: (v: unknown) => (v == null ? null : booleanAttribute(v)) })` instead of `@InputBoolean(null)`
|
9
|
+
*
|
6
10
|
* Input decorator that handle a prop to do get/set automatically with toBoolean
|
7
11
|
*
|
8
12
|
* ```ts
|
@@ -14,6 +18,10 @@ export declare function InputBoolean(defaultValue?: boolean | null): NzSafeAny;
|
|
14
18
|
export declare function toNumber(value: unknown): number;
|
15
19
|
export declare function toNumber<D>(value: unknown, fallback: D): number | D;
|
16
20
|
/**
|
21
|
+
* @deprecated Recommended to use the built-in `transform` and `static ngAcceptInputType_` can be removed
|
22
|
+
* - Use `@Input({ transform: numberAttribute })` instead of `@InputNumber()`
|
23
|
+
* - Use `@Input({ transform: (v: unknown) => (v == null ? null : numberAttribute(v)) })` instead of `@InputNumber(null)`
|
24
|
+
*
|
17
25
|
* Input decorator that handle a prop to do get/set automatically with toNumber
|
18
26
|
*
|
19
27
|
* ```ts
|
@@ -9,7 +9,7 @@ type DecoratorType = (target: unknown, fn: string, descriptor: PropertyDescripto
|
|
9
9
|
*
|
10
10
|
* ```ts
|
11
11
|
* class MockClass {
|
12
|
-
*
|
12
|
+
* readonly ngZone = inject(NgZone);
|
13
13
|
*
|
14
14
|
* {AT}ZoneOutside()
|
15
15
|
* runOutsideAngular(): void {}
|
@@ -24,7 +24,7 @@ export declare function ZoneOutside(options?: ZoneOptions): DecoratorType;
|
|
24
24
|
*
|
25
25
|
* ```ts
|
26
26
|
* class MockClass {
|
27
|
-
*
|
27
|
+
* readonly ngZone = inject(NgZone);
|
28
28
|
*
|
29
29
|
* {AT}ZoneRun()
|
30
30
|
* run(): void {}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXktdHlwZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9hcnJheS9hcnJheS10eXBlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIEB0eXBlc2NyaXB0LWVzbGludC9uby1leHBsaWNpdC1hbnkgKi9cbmltcG9ydCB0eXBlIHsgTnpUcmVlTm9kZSB9IGZyb20gJ25nLXpvcnJvLWFudGQvY29yZS90cmVlJztcblxuZXhwb3J0IGludGVyZmFjZSBBcnJheVNlcnZpY2VUcmVlVG9BcnJPcHRpb25zPFQgZXh0ZW5kcyBvYmplY3QgPSBhbnk+IHtcbiAgLyoqIOa3seW6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yZWVOb2RlLCBwYXJlbnQ6IE56VHJlZU5vZGUgfCBudWxsLCBkZWVwOiBudW1iZXIpID0+IGFueTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBBcnJheVNlcnZpY2VHcm91cEJ5UmVzdWx0IHtcbiAgW2tleTogc3RyaW5nXTogYW55O1xuICBba2V5OiBudW1iZXJdOiBhbnk7XG59XG4iXX0=
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
1
2
|
import { Injectable } from '@angular/core';
|
2
3
|
import { NzTreeNode } from 'ng-zorro-antd/core/tree';
|
3
4
|
import * as i0 from "@angular/core";
|
@@ -267,11 +268,11 @@ export class ArrayService {
|
|
267
268
|
}, new Map())
|
268
269
|
.values());
|
269
270
|
}
|
270
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
271
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
271
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ArrayService, deps: [{ token: i1.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
272
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ArrayService, providedIn: 'root' }); }
|
272
273
|
}
|
273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ArrayService, decorators: [{
|
274
275
|
type: Injectable,
|
275
276
|
args: [{ providedIn: 'root' }]
|
276
|
-
}], ctorParameters:
|
277
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4u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sICdhJykgPT4gW3tcImFcIjoxfSx7XCJhXCI6Mn1dXG4gICAqIHVuaXEoW3sgYTogMSB9LCB7IGE6IDEgfSwgeyBhOiAyIH1dLCBpID0+IChpLmEgPT09IDEgPyAnYScgOiAnYicpKSA9PiBbe1wiYVwiOjF9LHtcImFcIjoyfV1cbiAgICogYGBgXG4gICAqL1xuICB1bmlxPFQ+KGFycmF5OiByZWFkb25seSBUW10sIHByZWRpY2F0ZT86IHN0cmluZyB8ICgodmFsdWU6IFQpID0+IHN0cmluZyB8IG51bWJlciB8IGJvb2xlYW4pKTogVFtdIHtcbiAgICByZXR1cm4gQXJyYXkuZnJvbShcbiAgICAgIGFycmF5XG4gICAgICAgIC5yZWR1Y2UoKG1hcCwgdmFsdWUpID0+IHtcbiAgICAgICAgICBjb25zdCBrZXkgPSBwcmVkaWNhdGVcbiAgICAgICAgICAgID8gdHlwZW9mIHByZWRpY2F0ZSA9PT0gJ3N0cmluZydcbiAgICAgICAgICAgICAgPyAodmFsdWUgYXMgYW55KVtwcmVkaWNhdGVdXG4gICAgICAgICAgICAgIDogcHJlZGljYXRlISh2YWx1ZSlcbiAgICAgICAgICAgIDogdmFsdWU7XG4gICAgICAgICAgaWYgKCFtYXAuaGFzKGtleSkpIHtcbiAgICAgICAgICAgIG1hcC5zZXQoa2V5LCB2YWx1ZSk7XG4gICAgICAgICAgfVxuICAgICAgICAgIHJldHVybiBtYXA7XG4gICAgICAgIH0sIG5ldyBNYXA8c3RyaW5nIHwgbnVtYmVyIHwgYm9vbGVhbiwgVD4oKSlcbiAgICAgICAgLnZhbHVlcygpXG4gICAgKTtcbiAgfVxufVxuIl19
|
277
|
+
}], ctorParameters: () => [{ type: i1.YunzaiConfigService }] });
|
278
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Bh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ICA6IHZhbHVlO1xuICAgICAgICAgIGlmICghbWFwLmhhcyhrZXkpKSB7XG4gICAgICAgICAgICBtYXAuc2V0KGtleSwgdmFsdWUpO1xuICAgICAgICAgIH1cbiAgICAgICAgICByZXR1cm4gbWFwO1xuICAgICAgICB9LCBuZXcgTWFwPHN0cmluZyB8IG51bWJlciB8IGJvb2xlYW4sIFQ+KCkpXG4gICAgICAgIC52YWx1ZXMoKVxuICAgICk7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,13 +1,17 @@
|
|
1
|
+
import { Platform } from '@angular/cdk/platform';
|
1
2
|
import { DOCUMENT } from '@angular/common';
|
2
|
-
import {
|
3
|
+
import { Injectable, inject } from '@angular/core';
|
3
4
|
import * as i0 from "@angular/core";
|
4
|
-
import * as i1 from "@angular/cdk/platform";
|
5
5
|
/**
|
6
6
|
* A set of simple Cookie manipulation classes.
|
7
7
|
*
|
8
8
|
* 一组简单的 Cookie 操作类。
|
9
9
|
*/
|
10
10
|
export class CookieService {
|
11
|
+
constructor() {
|
12
|
+
this._doc = inject(DOCUMENT);
|
13
|
+
this.platform = inject(Platform);
|
14
|
+
}
|
11
15
|
get doc() {
|
12
16
|
return this._doc || document;
|
13
17
|
}
|
@@ -19,10 +23,6 @@ export class CookieService {
|
|
19
23
|
get cookie() {
|
20
24
|
return this.platform.isBrowser ? this.doc.cookie : '';
|
21
25
|
}
|
22
|
-
constructor(_doc, platform) {
|
23
|
-
this._doc = _doc;
|
24
|
-
this.platform = platform;
|
25
|
-
}
|
26
26
|
/**
|
27
27
|
* Get all cookie key-value pairs
|
28
28
|
*
|
@@ -90,14 +90,11 @@ export class CookieService {
|
|
90
90
|
removeAll() {
|
91
91
|
this.doc.cookie = '';
|
92
92
|
}
|
93
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
94
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
93
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CookieService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
94
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CookieService, providedIn: 'root' }); }
|
95
95
|
}
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CookieService, decorators: [{
|
97
97
|
type: Injectable,
|
98
98
|
args: [{ providedIn: 'root' }]
|
99
|
-
}]
|
100
|
-
|
101
|
-
args: [DOCUMENT]
|
102
|
-
}] }, { type: i1.Platform }]; } });
|
103
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29va2llLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Jyb3dzZXIvY29va2llLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzNDLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFrQm5EOzs7O0dBSUc7QUFFSCxNQUFNLE9BQU8sYUFBYTtJQUN4QixJQUFZLEdBQUc7UUFDYixPQUFPLElBQUksQ0FBQyxJQUFJLElBQUksUUFBUSxDQUFDO0lBQy9CLENBQUM7SUFFRDs7OztPQUlHO0lBQ0gsSUFBSSxNQUFNO1FBQ1IsT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDLFNBQVMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLE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XG4gIC8qKlxuICAgKiBPcmlnaW5hbCBjb29raWUgdmFsdWVcbiAgICpcbiAgICog5Y6f5aeLQ29va2ll5YC8XG4gICAqL1xuICBnZXQgY29va2llKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHRoaXMucGxhdGZvcm0uaXNCcm93c2VyID8gdGhpcy5kb2MuY29va2llIDogJyc7XG4gIH1cblxuICAvKipcbiAgICogR2V0IGFsbCBjb29raWUga2V5LXZhbHVlIHBhaXJzXG4gICAqXG4gICAqIOiOt+WPluaJgOaciUNvb2tpZemUruWAvOWvuVxuICAgKi9cbiAgZ2V0QWxsKCk6IHsgW2tleTogc3RyaW5nXTogc3RyaW5nIH0ge1xuICAgIGNvbnN0IHJldDogeyBba2V5OiBzdHJpbmddOiBzdHJpbmcgfSA9IHt9O1xuICAgIGNvbnN0IGFyciA9IHRoaXMuY29va2llLnNwbGl0KCc7ICcpO1xuICAgIGZvciAobGV0IGkgPSAwOyBpIDwgYXJyLmxlbmd0aDsgaSsrKSB7XG4gICAgICBjb25zdCBjb29raWUgPSBhcnJbaV07XG4gICAgICBjb25zdCBpbmRleCA9IGNvb2tpZS5pbmRleE9mKCc9Jyk7XG4gICAgICBpZiAoaW5kZXggPiAwKSB7XG4gICAgICAgIGNvbnN0IG5hbWUgPSBkZWNvZGVVUklDb21wb25lbnQoY29va2llLnN1YnN0cmluZygwLCBpbmRleCkpO1xuICAgICAgICBpZiAocmV0W25hbWVdID09IG51bGwpIHtcbiAgICAgICAgICByZXRbbmFtZV0gPSBkZWNvZGVVUklDb21wb25lbnQoY29va2llLnN1YnN0cmluZyhpbmRleCArIDEpKTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgICByZXR1cm4gcmV0O1xuICB9XG5cbiAgLyoqXG4gICAqIEdldCB0aGUgdmFsdWUgb2YgZ2l2ZW4gY29va2llIGBrZXlgXG4gICAqXG4gICAqIOiOt+WPluaMh+WumiBga2V5YCDnmoTlgLxcbiAgICovXG4gIGdldCh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iAgICB0aGlzLmRvYy5jb29raWUgPSBgJHtlbmNvZGVVUklDb21wb25lbnQoU3RyaW5nKGtleSkpfT0ke2VuY29kZVVSSUNvbXBvbmVudChTdHJpbmcodmFsdWUpKX0ke1xuICAgICAgYXR0cmlidXRlcyA/IGA7ICR7YXR0cmlidXRlc31gIDogJydcbiAgICB9YDtcbiAgfVxuXG4gIC8qKlxuICAgKiBSZW1vdmUgZ2l2ZW4gY29va2llXG4gICAqXG4gICAqIOenu+mZpOaMh+WumiBDb29raWVcbiAgICovXG4gIHJlbW92ZShrZXk6IHN0cmluZywgb3B0aW9ucz86IENvb2tpZU9wdGlvbnMpOiB2b2lkIHtcbiAgICB0aGlzLnB1dChrZXksICcnLCBvcHRpb25zKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBSZW1vdmUgYWxsIGNvb2tpZXNcbiAgICpcbiAgICog56e76Zmk5omA5pyJIENvb2tpZXNcbiAgICovXG4gIHJlbW92ZUFsbCgpOiB2b2lkIHtcbiAgICB0aGlzLmRvYy5jb29raWUgPSAnJztcbiAgfVxufVxuIl19
|
package/esm2022/browser/copy.mjs
CHANGED
@@ -25,4 +25,4 @@ export function copy(value) {
|
|
25
25
|
}
|
26
26
|
});
|
27
27
|
}
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29weS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvYnJvd3Nlci9jb3B5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7O0dBSUc7QUFDSCxNQUFNLFVBQVUsSUFBSSxDQUFDLEtBQWE7SUFDaEMsT0FBTyxJQUFJLE9BQU8sQ0FBUyxDQUFDLE9BQU8sRUFBUSxFQUFFO1FBQzNDLElBQUksWUFBWSxHQUErQixJQUFJLENBQUM7UU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b3B5VGV4dEFyZWE6IEhUTUxUZXh0QXJlYUVsZW1lbnQgfCBudWxsID0gbnVsbDtcbiAgICB0cnkge1xuICAgICAgY29weVRleHRBcmVhID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgndGV4dGFyZWEnKTtcbiAgICAgIGNvcHlUZXh0QXJlYS5zdHlsZS5oZWlnaHQgPSAnMHB4JztcbiAgICAgIGNvcHlUZXh0QXJlYS5zdHlsZS5vcGFjaXR5ID0gJzAnO1xuICAgICAgY29weVRleHRBcmVhLnN0eWxlLndpZHRoID0gJzBweCc7XG4gICAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGNvcHlUZXh0QXJlYSk7XG4gICAgICBjb3B5VGV4dEFyZWEudmFsdWUgPSB2YWx1ZTtcbiAgICAgIGNvcHlUZXh0QXJlYS5zZWxlY3QoKTtcbiAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBkZXByZWNhdGlvbi9kZXByZWNhdGlvblxuICAgICAgZG9jdW1lbnQuZXhlY0NvbW1hbmQoJ2NvcHknKTtcbiAgICAgIHJlc29sdmUodmFsdWUpO1xuICAgIH0gZmluYWxseSB7XG4gICAgICBpZiAoY29weVRleHRBcmVhICYmIGNvcHlUZXh0QXJlYS5wYXJlbnROb2RlKSB7XG4gICAgICAgIGNvcHlUZXh0QXJlYS5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKGNvcHlUZXh0QXJlYSk7XG4gICAgICB9XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
|
-
* Used to verify `<ng-content
|
2
|
+
* Used to verify `<ng-content />` is empty, useful for custom components.
|
3
3
|
*
|
4
|
-
* 用于校验 `<ng-content
|
4
|
+
* 用于校验 `<ng-content />` 是否为空,自定义组件时蛮有用。
|
5
5
|
*/
|
6
6
|
export function isEmpty(element) {
|
7
7
|
const nodes = element.childNodes;
|
@@ -16,4 +16,4 @@ export function isEmpty(element) {
|
|
16
16
|
}
|
17
17
|
return true;
|
18
18
|
}
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtZW1wdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Jyb3dzZXIvaXMtZW1wdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7R0FJRztBQUNILE1BQU0sVUFBVSxPQUFPLENBQUMsT0FBb0I7SUFDMUMsTUFBTSxLQUFLLEdBQUcsT0FBTyxDQUFDLFVBQVUsQ0FBQztJQUNqQyxLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsS0FBSyxDQUFDLE1BQU0sRUFBRSxDQUFDLEVBQUUsRUFBRSxDQUFDO1FBQ3RDLE1BQU0sSUFBSSxHQUFHLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDM0IsSUFBSSxJQUFJLENBQUMsUUFBUSxLQUFLLENBQUMsSUFBSyxJQUFvQixDQUFDLFNBQVMsQ0FBQyxRQUFRLEVBQUUsQ0FBQyxJQUFJLEVBQUUsQ0FBQyxNQUFNLEtBQUssQ0FBQyxFQUFFLENBQUM7WUFDMUYsT0FBTyxLQUFLLENBQUM7UUFDZixDQUFDO2FBQU0sSUFBSSxJQUFJLENBQUMsUUFBUSxLQUFLLENBQUMsSUFBSSxJQUFJLENBQUMsV0FBWSxDQUFDLFFBQVEsRUFBRSxDQUFDLElBQUksRUFBRSxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUUsQ0FBQztZQUNuRixPQUFPLEtBQUssQ0FBQztRQUNmLENBQUM7SUFDSCxDQUFDO0lBQ0QsT0FBTyxJQUFJLENBQUM7QUFDZCxDQUFDIiwic291cmNlc0NvbnRlbnQi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