@delon/util 19.2.0 → 20.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/array/index.d.ts +149 -2
  2. package/browser/index.d.ts +134 -5
  3. package/config/index.d.ts +1396 -12
  4. package/date-time/index.d.ts +116 -2
  5. package/decorator/index.d.ts +37 -2
  6. package/fesm2022/array.mjs +9 -8
  7. package/fesm2022/array.mjs.map +1 -1
  8. package/fesm2022/browser.mjs +7 -6
  9. package/fesm2022/browser.mjs.map +1 -1
  10. package/fesm2022/config.mjs +3 -3
  11. package/fesm2022/config.mjs.map +1 -1
  12. package/fesm2022/date-time.mjs +1 -1
  13. package/fesm2022/decorator.mjs +1 -66
  14. package/fesm2022/decorator.mjs.map +1 -1
  15. package/fesm2022/format.mjs +8 -7
  16. package/fesm2022/format.mjs.map +1 -1
  17. package/fesm2022/other.mjs +3 -3
  18. package/fesm2022/pipe-currency.mjs +13 -13
  19. package/fesm2022/pipe-filter.mjs +7 -7
  20. package/fesm2022/pipe-format.mjs +7 -7
  21. package/form/index.d.ts +80 -2
  22. package/format/index.d.ts +240 -4
  23. package/math/index.d.ts +50 -2
  24. package/other/index.d.ts +124 -4
  25. package/package.json +1 -1
  26. package/pipes/currency/index.d.ts +52 -4
  27. package/pipes/filter/index.d.ts +22 -2
  28. package/pipes/format/index.d.ts +36 -2
  29. package/token/index.d.ts +18 -2
  30. package/array/array-type.service.d.ts +0 -68
  31. package/array/array.service.d.ts +0 -78
  32. package/browser/cookie.service.d.ts +0 -62
  33. package/browser/copy.d.ts +0 -6
  34. package/browser/is-empty.d.ts +0 -6
  35. package/browser/scroll.service.d.ts +0 -34
  36. package/browser/style.d.ts +0 -19
  37. package/config/abc/cell.type.d.ts +0 -118
  38. package/config/abc/date-picker.type.d.ts +0 -50
  39. package/config/abc/error-collect.type.d.ts +0 -10
  40. package/config/abc/exception.type.d.ts +0 -7
  41. package/config/abc/image.type.d.ts +0 -15
  42. package/config/abc/index.d.ts +0 -17
  43. package/config/abc/loading.type.d.ts +0 -29
  44. package/config/abc/lodop.type.d.ts +0 -33
  45. package/config/abc/media.type.d.ts +0 -11
  46. package/config/abc/onboarding.type.d.ts +0 -4
  47. package/config/abc/page-header.type.d.ts +0 -39
  48. package/config/abc/pdf.type.d.ts +0 -35
  49. package/config/abc/se.type.d.ts +0 -32
  50. package/config/abc/sg.type.d.ts +0 -10
  51. package/config/abc/st.type.d.ts +0 -464
  52. package/config/abc/sv.type.d.ts +0 -14
  53. package/config/abc/xlsx.type.d.ts +0 -12
  54. package/config/abc/zip.type.d.ts +0 -10
  55. package/config/acl/acl.type.d.ts +0 -32
  56. package/config/auth/auth.type.d.ts +0 -47
  57. package/config/cache/cache.type.d.ts +0 -66
  58. package/config/chart/chart.type.d.ts +0 -31
  59. package/config/config.service.d.ts +0 -14
  60. package/config/config.types.d.ts +0 -47
  61. package/config/mock/mock.type.d.ts +0 -14
  62. package/config/sf/sf.type.d.ts +0 -131
  63. package/config/theme/http.type.d.ts +0 -15
  64. package/config/theme/i18n.type.d.ts +0 -14
  65. package/config/theme/index.d.ts +0 -4
  66. package/config/theme/pipe.type.d.ts +0 -7
  67. package/config/theme/responsive.type.d.ts +0 -10
  68. package/config/util/array.type.d.ts +0 -22
  69. package/config/util/currency.type.d.ts +0 -39
  70. package/date-time/picker.d.ts +0 -68
  71. package/date-time/time.d.ts +0 -43
  72. package/decorator/convert.d.ts +0 -32
  73. package/decorator/zone-outside.d.ts +0 -35
  74. package/form/match-control.d.ts +0 -15
  75. package/form/validators.d.ts +0 -62
  76. package/format/currency.service.d.ts +0 -38
  77. package/format/currency.types.d.ts +0 -82
  78. package/format/string.d.ts +0 -42
  79. package/format/validate.d.ts +0 -72
  80. package/math/in-range.d.ts +0 -14
  81. package/math/round.d.ts +0 -33
  82. package/other/assert.d.ts +0 -36
  83. package/other/deep.d.ts +0 -33
  84. package/other/lazy.service.d.ts +0 -45
  85. package/other/logger.d.ts +0 -5
  86. package/pipes/currency/cny.pipe.d.ts +0 -14
  87. package/pipes/currency/mega.pipe.d.ts +0 -15
  88. package/pipes/currency/module.d.ts +0 -9
  89. package/pipes/currency/price.pipe.d.ts +0 -18
  90. package/pipes/filter/filter.pipe.d.ts +0 -13
  91. package/pipes/filter/module.d.ts +0 -7
  92. package/pipes/format/mask.pipe.d.ts +0 -27
  93. package/pipes/format/module.d.ts +0 -7
  94. package/token/page-visibility.d.ts +0 -8
  95. 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
- ingoreZeroPrecision?: 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-alain.com/util/format/en#mega)
39
- *
40
- * 大数据格式化,[文档](https://ng-alain.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
- }
@@ -1,42 +0,0 @@
1
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
2
- /**
3
- * String formatting
4
- *
5
- * 字符串格式化
6
- * ```
7
- * format('this is ${name}', { name: 'asdf' })
8
- * // output: this is asdf
9
- * format('this is ${user.name}', { user: { name: 'asdf' } }, true)
10
- * // output: this is asdf
11
- * ```
12
- */
13
- export declare function format(str: string | null | undefined, obj: NzSafeAny | null | undefined, needDeepGet?: boolean): string;
14
- export interface FormatMaskOption {
15
- mask: string;
16
- tokens?: Record<string, FormatMaskToken>;
17
- }
18
- export interface FormatMaskToken {
19
- pattern: RegExp;
20
- default?: NzSafeAny;
21
- transform?: (char: string) => string;
22
- }
23
- /**
24
- * Format mask
25
- *
26
- * 格式化掩码
27
- *
28
- * | 字符 | 描述 |
29
- * | --- | --- |
30
- * | `0` | 任意数字,若该位置字符不符合,则默认为 `0` 填充 |
31
- * | `9` | 任意数字 |
32
- * | `#` | 任意字符 |
33
- * | `U` | 转换大写 |
34
- * | `L` | 转换小写 |
35
- * | `*` | 转换为 `*` 字符 |
36
- *
37
- * ```ts
38
- * formatMask('123', '(###)') => (123)
39
- * formatMask('15900000000', '999****9999') => 159****0000
40
- * ```
41
- */
42
- export declare function formatMask(value: string, option: string | FormatMaskOption): string;
@@ -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;
@@ -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;
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,33 +0,0 @@
1
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
2
- /**
3
- * Gets the value at `path` of `object`, like `_.get` in lodash.
4
- *
5
- * 类似 `_.get`,根据 `path` 获取安全值
6
- */
7
- export declare function deepGet(obj: NzSafeAny, path: string | string[] | null | undefined, defaultValue?: unknown): NzSafeAny;
8
- /**
9
- * Base on [extend](https://github.com/justmoon/node-extend) deep copy.
10
- *
11
- * 基于 [extend](https://github.com/justmoon/node-extend) 的深度拷贝
12
- *
13
- * NOTE: Don't a lot of recursion, maybe performance issues
14
- */
15
- export declare function deepCopy<T extends Record<string, NzSafeAny> = NzSafeAny>(obj: T | null | undefined): T;
16
- /**
17
- * Deep merge object.
18
- *
19
- * 深度合并对象
20
- *
21
- * @param original 原始对象
22
- * @param arrayProcessMethod 数组处理方式
23
- * - `true` 表示替换新值,不管新值为哪种类型
24
- * - `false` 表示会合并整个数组(将旧数据与新数据合并成新数组)
25
- * @param objects 要合并的对象
26
- */
27
- export declare function deepMergeKey(original: unknown, arrayProcessMethod: boolean, ...objects: NzSafeAny[]): NzSafeAny;
28
- /**
29
- * Deep merge object.
30
- *
31
- * 深度合并对象
32
- */
33
- export declare function deepMerge(original: unknown, ...objects: unknown[]): NzSafeAny;
@@ -1,45 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
3
- import * as i0 from "@angular/core";
4
- export interface LazyResult {
5
- path: string;
6
- status: 'ok' | 'error' | 'loading';
7
- error?: NzSafeAny;
8
- }
9
- export interface LazyLoadItem {
10
- path: string;
11
- options?: LazyLoadOptions;
12
- }
13
- export interface LazyLoadOptions {
14
- innerContent?: string;
15
- attributes?: Record<string, string>;
16
- rel?: string;
17
- }
18
- /**
19
- * `LazyService` delay loading JS or CSS files.
20
- *
21
- * 延迟加载资源(js 或 css)服务
22
- */
23
- export declare class LazyService {
24
- private readonly doc;
25
- private list;
26
- private cached;
27
- private _notify;
28
- get change(): Observable<LazyResult[]>;
29
- clear(): void;
30
- private attachAttributes;
31
- /**
32
- * Load script or style files
33
- */
34
- load(paths: string | LazyLoadItem | Array<string | LazyLoadItem>): Promise<LazyResult[]>;
35
- /**
36
- * Load a script file
37
- */
38
- loadScript(path: string, options?: LazyLoadOptions): Promise<LazyResult>;
39
- /**
40
- * Load a style file
41
- */
42
- loadStyle(path: string, options?: LazyLoadOptions): Promise<LazyResult>;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<LazyService, never>;
44
- static ɵprov: i0.ɵɵInjectableDeclaration<LazyService>;
45
- }
package/other/logger.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
2
- export declare const PREFIX = "[@DELON]:";
3
- export declare const warn: (...args: NzSafeAny[]) => void;
4
- export declare const warnDeprecation: (...args: NzSafeAny[]) => NzSafeAny;
5
- export declare const log: (...args: NzSafeAny[]) => void;
@@ -1,14 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { CurrencyCNYOptions } from '@delon/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 '@delon/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
- }
@@ -1,18 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { CurrencyFormatOptions } from '@delon/util/format';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Format a number with commas as thousands separators
6
- *
7
- * 格式化货币,用逗号将数字格式化为千位分隔符
8
- * ```ts
9
- * 10000 => `10,000`
10
- * 10000.567 => `10,000.57`
11
- * ```
12
- */
13
- export declare class CurrencyPricePipe implements PipeTransform {
14
- private readonly srv;
15
- transform(value: number | string, options?: CurrencyFormatOptions): string;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyPricePipe, never>;
17
- static ɵpipe: i0.ɵɵPipeDeclaration<CurrencyPricePipe, "price", true>;
18
- }
@@ -1,13 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Filter array
6
- *
7
- * 过滤数组
8
- */
9
- export declare class FilterPipe implements PipeTransform {
10
- transform<T>(array: readonly T[], matcher: (item: T, ...args: NzSafeAny[]) => boolean, ...args: NzSafeAny[]): T[];
11
- static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipe, never>;
12
- static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe, "filter", true>;
13
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./filter.pipe";
3
- export declare class FilterPipeModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipeModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<FilterPipeModule, never, [typeof i1.FilterPipe], [typeof i1.FilterPipe]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<FilterPipeModule>;
7
- }
@@ -1,27 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { FormatMaskOption } from '@delon/util/format';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Format mask
6
- *
7
- * 格式化掩码
8
- *
9
- * | 字符 | 描述 |
10
- * | --- | --- |
11
- * | `0` | 任意数字,若该位置字符不符合,则默认为 `0` 填充 |
12
- * | `9` | 任意数字 |
13
- * | `#` | 任意字符 |
14
- * | `U` | 转换大写 |
15
- * | `L` | 转换小写 |
16
- * | `*` | 转换为 `*` 字符 |
17
- *
18
- * ```ts
19
- * formatMask('123', '(###)') => (123)
20
- * formatMask('15900000000', '999****9999') => 159****0000
21
- * ```
22
- */
23
- export declare class FormatMaskPipe implements PipeTransform {
24
- transform(value: string, mask: string | FormatMaskOption): string;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<FormatMaskPipe, never>;
26
- static ɵpipe: i0.ɵɵPipeDeclaration<FormatMaskPipe, "mask", true>;
27
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./mask.pipe";
3
- export declare class FormatPipeModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<FormatPipeModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormatPipeModule, never, [typeof i1.FormatMaskPipe], [typeof i1.FormatMaskPipe]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<FormatPipeModule>;
7
- }
@@ -1,8 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- /**
4
- * Use the `visibilitychange` event to monitor whether the browser tab is visible, which is generally used when the user leaves the browser tab to temp interrupt the backend to continue sending requests
5
- *
6
- * 通过 `visibilitychange` 事件来监听浏览器选项卡是否可见,一般用于当用户离开应用时暂时中断后端持续发送请求时
7
- */
8
- export declare const PAGE_VISIBILITY: InjectionToken<Observable<boolean>>;
package/token/window.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * Access to global `window` object
4
- *
5
- * 访问全局 `window` 对象
6
- */
7
- export declare const WINDOW: InjectionToken<Window>;