@yelon/util 12.0.13 → 12.0.17
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -21
- package/README.md +2 -2
- package/array/array-type.service.d.ts +68 -68
- package/array/array.service.d.ts +75 -75
- package/array/index.d.ts +2 -2
- package/array/yelon-util-array.d.ts +4 -4
- package/array/yelon-util-array.metadata.json +1 -1
- package/browser/browser.d.ts +4 -4
- package/browser/cookie.service.d.ts +64 -64
- package/browser/copy.d.ts +6 -6
- package/browser/index.d.ts +5 -5
- package/browser/is-empty.d.ts +6 -6
- package/browser/scroll.service.d.ts +34 -34
- package/browser/style.d.ts +21 -21
- package/bundles/browser.umd.js +275 -275
- package/bundles/yelon-util-array.umd.js +606 -606
- package/bundles/yelon-util-array.umd.js.map +1 -1
- package/bundles/yelon-util-config.umd.js +366 -366
- package/bundles/yelon-util-date-time.umd.js +216 -216
- package/bundles/yelon-util-decorator.umd.js +437 -437
- package/bundles/yelon-util-form.umd.js +116 -116
- package/bundles/yelon-util-format.umd.js +726 -726
- package/bundles/yelon-util-math.umd.js +83 -83
- package/bundles/yelon-util-other.umd.js +652 -656
- package/bundles/yelon-util-other.umd.js.map +1 -1
- package/bundles/yelon-util-pipes-currency.umd.js +83 -83
- package/bundles/yelon-util-pipes-filter.umd.js +353 -353
- package/bundles/yelon-util-pipes-format.umd.js +47 -47
- package/bundles/yelon-util-pipes.umd.js +7 -7
- package/bundles/yelon-util-token.umd.js +30 -30
- package/bundles/yelon-util.umd.js +7 -7
- package/config/abc/date-picker.type.d.ts +52 -52
- package/config/abc/error-collect.type.d.ts +10 -10
- package/config/abc/image.type.d.ts +15 -15
- package/config/abc/index.d.ts +16 -16
- package/config/abc/loading.type.d.ts +31 -31
- package/config/abc/lodop.type.d.ts +33 -33
- package/config/abc/media.type.d.ts +11 -11
- package/config/abc/onboarding.type.d.ts +4 -4
- package/config/abc/page-header.type.d.ts +39 -39
- package/config/abc/pdf.type.d.ts +35 -35
- package/config/abc/qr.type.d.ts +25 -25
- package/config/abc/se.type.d.ts +32 -32
- package/config/abc/sg.type.d.ts +10 -10
- package/config/abc/st.type.d.ts +427 -431
- package/config/abc/sv.type.d.ts +14 -14
- package/config/abc/xlsx.type.d.ts +12 -12
- package/config/abc/zip.type.d.ts +10 -10
- package/config/acl/acl.type.d.ts +32 -32
- package/config/auth/auth.type.d.ts +55 -55
- package/config/bis/bis.type.d.ts +7 -7
- package/config/cache/cache.type.d.ts +40 -40
- package/config/chart/chart.type.d.ts +33 -33
- package/config/config.service.d.ts +10 -10
- package/config/config.types.d.ts +49 -49
- package/config/index.d.ts +14 -14
- package/config/mock/mock.type.d.ts +18 -18
- package/config/sf/sf.type.d.ts +127 -127
- package/config/stomp/stomp.type.d.ts +2 -2
- package/config/theme/http.type.d.ts +14 -14
- package/config/theme/i18n.type.d.ts +8 -8
- package/config/theme/index.d.ts +3 -3
- package/config/theme/responsive.type.d.ts +12 -12
- package/config/util/array.type.d.ts +22 -22
- package/config/util/currency.type.d.ts +39 -39
- package/config/yelon-util-config.d.ts +4 -4
- package/date-time/index.d.ts +2 -2
- package/date-time/picker.d.ts +68 -68
- package/date-time/time.d.ts +26 -26
- package/date-time/yelon-util-date-time.d.ts +4 -4
- package/decorator/convert.d.ts +24 -24
- package/decorator/index.d.ts +2 -2
- package/decorator/yelon-util-decorator.d.ts +4 -4
- package/decorator/zone-outside.d.ts +35 -35
- package/esm2015/array/array-type.service.js +1 -1
- package/esm2015/array/array.service.js +250 -250
- package/esm2015/array/index.js +2 -2
- package/esm2015/array/yelon-util-array.js +4 -4
- package/esm2015/browser/browser.js +4 -4
- package/esm2015/browser/cookie.service.js +103 -103
- package/esm2015/browser/copy.js +26 -26
- package/esm2015/browser/index.js +5 -5
- package/esm2015/browser/is-empty.js +18 -18
- package/esm2015/browser/scroll.service.js +88 -88
- package/esm2015/browser/style.js +37 -37
- package/esm2015/config/abc/date-picker.type.js +1 -1
- package/esm2015/config/abc/error-collect.type.js +1 -1
- package/esm2015/config/abc/image.type.js +1 -1
- package/esm2015/config/abc/index.js +16 -16
- package/esm2015/config/abc/loading.type.js +1 -1
- package/esm2015/config/abc/lodop.type.js +1 -1
- package/esm2015/config/abc/media.type.js +1 -1
- package/esm2015/config/abc/onboarding.type.js +1 -1
- package/esm2015/config/abc/page-header.type.js +1 -1
- package/esm2015/config/abc/pdf.type.js +1 -1
- package/esm2015/config/abc/qr.type.js +1 -1
- package/esm2015/config/abc/se.type.js +1 -1
- package/esm2015/config/abc/sg.type.js +1 -1
- package/esm2015/config/abc/st.type.js +2 -2
- package/esm2015/config/abc/sv.type.js +2 -2
- package/esm2015/config/abc/xlsx.type.js +1 -1
- package/esm2015/config/abc/zip.type.js +1 -1
- package/esm2015/config/acl/acl.type.js +1 -1
- package/esm2015/config/auth/auth.type.js +1 -1
- package/esm2015/config/bis/bis.type.js +1 -1
- package/esm2015/config/cache/cache.type.js +1 -1
- package/esm2015/config/chart/chart.type.js +1 -1
- package/esm2015/config/config.service.js +33 -33
- package/esm2015/config/config.types.js +8 -8
- package/esm2015/config/index.js +14 -14
- package/esm2015/config/mock/mock.type.js +1 -1
- package/esm2015/config/sf/sf.type.js +1 -1
- package/esm2015/config/stomp/stomp.type.js +1 -1
- package/esm2015/config/theme/http.type.js +1 -1
- package/esm2015/config/theme/i18n.type.js +1 -1
- package/esm2015/config/theme/index.js +3 -3
- package/esm2015/config/theme/responsive.type.js +1 -1
- package/esm2015/config/util/array.type.js +1 -1
- package/esm2015/config/util/currency.type.js +1 -1
- package/esm2015/config/yelon-util-config.js +4 -4
- package/esm2015/date-time/index.js +2 -2
- package/esm2015/date-time/picker.js +115 -115
- package/esm2015/date-time/time.js +83 -83
- package/esm2015/date-time/yelon-util-date-time.js +4 -4
- package/esm2015/decorator/convert.js +55 -55
- package/esm2015/decorator/index.js +2 -2
- package/esm2015/decorator/yelon-util-decorator.js +4 -4
- package/esm2015/decorator/zone-outside.js +54 -54
- package/esm2015/form/index.js +2 -2
- package/esm2015/form/match-control.js +29 -29
- package/esm2015/form/validators.js +80 -80
- package/esm2015/form/yelon-util-form.js +4 -4
- package/esm2015/format/currency.service.js +224 -224
- package/esm2015/format/currency.types.js +7 -7
- package/esm2015/format/index.js +4 -4
- package/esm2015/format/string.js +75 -75
- package/esm2015/format/validate.js +93 -93
- package/esm2015/format/yelon-util-format.js +4 -4
- package/esm2015/index.js +11 -11
- package/esm2015/math/in-range.js +24 -24
- package/esm2015/math/index.js +2 -2
- package/esm2015/math/round.js +52 -52
- package/esm2015/math/yelon-util-math.js +4 -4
- package/esm2015/other/assert.js +66 -66
- package/esm2015/other/deep.js +76 -76
- package/esm2015/other/index.js +4 -4
- package/esm2015/other/lazy.service.js +118 -118
- package/esm2015/other/logger.js +33 -36
- package/esm2015/other/yelon-util-other.js +4 -4
- package/esm2015/pipes/currency/cny.pipe.js +21 -21
- package/esm2015/pipes/currency/index.js +3 -3
- package/esm2015/pipes/currency/mega.pipe.js +25 -25
- package/esm2015/pipes/currency/module.js +13 -13
- package/esm2015/pipes/currency/price.pipe.js +25 -25
- package/esm2015/pipes/currency/yelon-util-pipes-currency.js +5 -5
- package/esm2015/pipes/filter/filter.pipe.js +14 -14
- package/esm2015/pipes/filter/index.js +2 -2
- package/esm2015/pipes/filter/module.js +11 -11
- package/esm2015/pipes/filter/yelon-util-pipes-filter.js +4 -4
- package/esm2015/pipes/format/index.js +2 -2
- package/esm2015/pipes/format/mask.pipe.js +29 -29
- package/esm2015/pipes/format/module.js +11 -11
- package/esm2015/pipes/format/yelon-util-pipes-format.js +4 -4
- package/esm2015/pipes/index.js +3 -3
- package/esm2015/pipes/yelon-util-pipes.js +4 -4
- package/esm2015/token/index.js +2 -2
- package/esm2015/token/page-visibility.js +15 -15
- package/esm2015/token/window.js +16 -16
- package/esm2015/token/yelon-util-token.js +4 -4
- package/esm2015/yelon-util.js +4 -4
- package/fesm2015/browser.js +257 -257
- package/fesm2015/yelon-util-array.js +246 -246
- package/fesm2015/yelon-util-array.js.map +1 -1
- package/fesm2015/yelon-util-config.js +36 -36
- package/fesm2015/yelon-util-date-time.js +196 -196
- package/fesm2015/yelon-util-decorator.js +107 -107
- package/fesm2015/yelon-util-form.js +108 -108
- package/fesm2015/yelon-util-format.js +390 -390
- package/fesm2015/yelon-util-math.js +75 -75
- package/fesm2015/yelon-util-other.js +281 -284
- package/fesm2015/yelon-util-other.js.map +1 -1
- package/fesm2015/yelon-util-pipes-currency.js +72 -72
- package/fesm2015/yelon-util-pipes-filter.js +22 -22
- package/fesm2015/yelon-util-pipes-format.js +36 -36
- package/fesm2015/yelon-util-pipes.js +2 -2
- package/fesm2015/yelon-util-token.js +25 -25
- package/fesm2015/yelon-util.js +2 -2
- package/form/index.d.ts +2 -2
- package/form/match-control.d.ts +15 -15
- package/form/validators.d.ts +62 -62
- package/form/yelon-util-form.d.ts +4 -4
- package/format/currency.service.d.ts +34 -34
- package/format/currency.types.d.ts +77 -77
- package/format/index.d.ts +4 -4
- package/format/string.d.ts +44 -44
- package/format/validate.d.ts +72 -72
- package/format/yelon-util-format.d.ts +4 -4
- package/index.d.ts +11 -11
- package/math/in-range.d.ts +14 -14
- package/math/index.d.ts +2 -2
- package/math/round.d.ts +33 -33
- package/math/yelon-util-math.d.ts +4 -4
- package/other/assert.d.ts +36 -36
- package/other/deep.d.ts +33 -33
- package/other/index.d.ts +4 -4
- package/other/lazy.service.d.ts +22 -22
- package/other/logger.d.ts +5 -6
- package/other/yelon-util-other.d.ts +4 -4
- package/other/yelon-util-other.metadata.json +1 -1
- package/package.json +1 -1
- package/pipes/currency/cny.pipe.d.ts +12 -12
- package/pipes/currency/index.d.ts +3 -3
- package/pipes/currency/mega.pipe.d.ts +13 -13
- package/pipes/currency/module.d.ts +2 -2
- package/pipes/currency/price.pipe.d.ts +16 -16
- package/pipes/currency/yelon-util-pipes-currency.d.ts +5 -5
- package/pipes/filter/filter.pipe.d.ts +10 -10
- package/pipes/filter/index.d.ts +2 -2
- package/pipes/filter/module.d.ts +2 -2
- package/pipes/filter/yelon-util-pipes-filter.d.ts +4 -4
- package/pipes/format/index.d.ts +2 -2
- package/pipes/format/mask.pipe.d.ts +24 -24
- package/pipes/format/module.d.ts +2 -2
- package/pipes/format/yelon-util-pipes-format.d.ts +4 -4
- package/pipes/index.d.ts +3 -3
- package/pipes/yelon-util-pipes.d.ts +4 -4
- package/token/index.d.ts +2 -2
- package/token/page-visibility.d.ts +8 -8
- package/token/window.d.ts +7 -7
- package/token/yelon-util-token.d.ts +4 -4
- package/yelon-util.d.ts +4 -4
@@ -1,55 +1,55 @@
|
|
1
|
-
import { warn } from '@yelon/util/other';
|
2
|
-
function makeFn(type, options) {
|
3
|
-
return (_, __, descriptor) => {
|
4
|
-
const source = descriptor.value;
|
5
|
-
descriptor.value = function (...data) {
|
6
|
-
const that = this;
|
7
|
-
const ngZone = that[(options === null || options === void 0 ? void 0 : options.ngZoneName) || 'ngZone'];
|
8
|
-
if (!ngZone) {
|
9
|
-
warn(`ZoneOutside: Decorator should have 'ngZone' property with 'NgZone' class.`);
|
10
|
-
return source.call(this, ...data);
|
11
|
-
}
|
12
|
-
let res;
|
13
|
-
ngZone[type](() => {
|
14
|
-
res = source.call(this, ...data);
|
15
|
-
});
|
16
|
-
return res;
|
17
|
-
};
|
18
|
-
return descriptor;
|
19
|
-
};
|
20
|
-
}
|
21
|
-
/**
|
22
|
-
* The decoration method runs in `runOutsideAngular`
|
23
|
-
*
|
24
|
-
* 装饰方法运行在 `runOutsideAngular` 内
|
25
|
-
*
|
26
|
-
* ```ts
|
27
|
-
* class MockClass {
|
28
|
-
* constructor(public ngZone: NgZone) {}
|
29
|
-
*
|
30
|
-
* {AT}ZoneOutside()
|
31
|
-
* runOutsideAngular(): void {}
|
32
|
-
* }
|
33
|
-
* ```
|
34
|
-
*/
|
35
|
-
export function ZoneOutside(options) {
|
36
|
-
return makeFn('runOutsideAngular', options);
|
37
|
-
}
|
38
|
-
/**
|
39
|
-
* The decoration method runs in `run`
|
40
|
-
*
|
41
|
-
* 装饰方法运行在 `run` 内
|
42
|
-
*
|
43
|
-
* ```ts
|
44
|
-
* class MockClass {
|
45
|
-
* constructor(public ngZone: NgZone) {}
|
46
|
-
*
|
47
|
-
* {AT}ZoneRun()
|
48
|
-
* run(): void {}
|
49
|
-
* }
|
50
|
-
* ```
|
51
|
-
*/
|
52
|
-
export function ZoneRun(options) {
|
53
|
-
return makeFn('run', options);
|
54
|
-
}
|
1
|
+
import { warn } from '@yelon/util/other';
|
2
|
+
function makeFn(type, options) {
|
3
|
+
return (_, __, descriptor) => {
|
4
|
+
const source = descriptor.value;
|
5
|
+
descriptor.value = function (...data) {
|
6
|
+
const that = this;
|
7
|
+
const ngZone = that[(options === null || options === void 0 ? void 0 : options.ngZoneName) || 'ngZone'];
|
8
|
+
if (!ngZone) {
|
9
|
+
warn(`ZoneOutside: Decorator should have 'ngZone' property with 'NgZone' class.`);
|
10
|
+
return source.call(this, ...data);
|
11
|
+
}
|
12
|
+
let res;
|
13
|
+
ngZone[type](() => {
|
14
|
+
res = source.call(this, ...data);
|
15
|
+
});
|
16
|
+
return res;
|
17
|
+
};
|
18
|
+
return descriptor;
|
19
|
+
};
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* The decoration method runs in `runOutsideAngular`
|
23
|
+
*
|
24
|
+
* 装饰方法运行在 `runOutsideAngular` 内
|
25
|
+
*
|
26
|
+
* ```ts
|
27
|
+
* class MockClass {
|
28
|
+
* constructor(public ngZone: NgZone) {}
|
29
|
+
*
|
30
|
+
* {AT}ZoneOutside()
|
31
|
+
* runOutsideAngular(): void {}
|
32
|
+
* }
|
33
|
+
* ```
|
34
|
+
*/
|
35
|
+
export function ZoneOutside(options) {
|
36
|
+
return makeFn('runOutsideAngular', options);
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* The decoration method runs in `run`
|
40
|
+
*
|
41
|
+
* 装饰方法运行在 `run` 内
|
42
|
+
*
|
43
|
+
* ```ts
|
44
|
+
* class MockClass {
|
45
|
+
* constructor(public ngZone: NgZone) {}
|
46
|
+
*
|
47
|
+
* {AT}ZoneRun()
|
48
|
+
* run(): void {}
|
49
|
+
* }
|
50
|
+
* ```
|
51
|
+
*/
|
52
|
+
export function ZoneRun(options) {
|
53
|
+
return makeFn('run', options);
|
54
|
+
}
|
55
55
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiem9uZS1vdXRzaWRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9kZWNvcmF0b3Ivem9uZS1vdXRzaWRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQVF6QyxTQUFTLE1BQU0sQ0FBQyxJQUFpQyxFQUFFLE9BQXFCO0lBQ3RFLE9BQU8sQ0FBQyxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsRUFBRSxFQUFFO1FBQzNCLE1BQU0sTUFBTSxHQUFHLFVBQVUsQ0FBQyxLQUFLLENBQUM7UUFDaEMsVUFBVSxDQUFDLEtBQUssR0FBRyxVQUFVLEdBQUcsSUFBaUI7WUFDL0MsTUFBTSxJQUFJLEdBQUcsSUFBaUIsQ0FBQztZQUMvQixNQUFNLE1BQU0sR0FBRyxJQUFJLENBQUMsQ0FBQSxPQUFPLGFBQVAsT0FBTyx1QkFBUCxPQUFPLENBQUUsVUFBVSxLQUFJLFFBQVEsQ0FBQyxDQUFDO1lBQ3JELElBQUksQ0FBQyxNQUFNLEVBQUU7Z0JBQ1gsSUFBSSxDQUFDLDJFQUEyRSxDQUFDLENBQUM7Z0JBQ2xGLE9BQU8sTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsR0FBRyxJQUFJLENBQUMsQ0FBQzthQUNuQztZQUNELElBQUksR0FBYyxDQUFDO1lBQ25CLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQyxHQUFHLEVBQUU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4gKiBgYGBcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIFpvbmVPdXRzaWRlKG9wdGlvbnM/OiBab25lT3B0aW9ucyk6IERlY29yYXRvclR5cGUge1xuICByZXR1cm4gbWFrZUZuKCdydW5PdXRzaWRlQW5ndWxhcicsIG9wdGlvbnMpO1xufVxuXG4vKipcbiAqIFRoZSBkZWNvcmF0aW9uIG1ldGhvZCBydW5zIGluIGBydW5gXG4gKlxuICog6KOF6aWw5pa55rOV6L+Q6KGM5ZyoIGBydW5gIOWGhVxuICpcbiAqIGBgYHRzXG4gKiBjbGFzcyBNb2NrQ2xhc3Mge1xuICogIGNvbnN0cnVjdG9yKHB1YmxpYyBuZ1pvbmU6IE5nWm9uZSkge31cbiAqXG4gKiAge0FUfVpvbmVSdW4oKVxuICogIHJ1bigpOiB2b2lkIHt9XG4gKiB9XG4gKiBgYGBcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIFpvbmVSdW4ob3B0aW9ucz86IFpvbmVPcHRpb25zKTogRGVjb3JhdG9yVHlwZSB7XG4gIHJldHVybiBtYWtlRm4oJ3J1bicsIG9wdGlvbnMpO1xufVxuIl19
|
package/esm2015/form/index.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
export * from './validators';
|
2
|
-
export * from './match-control';
|
1
|
+
export * from './validators';
|
2
|
+
export * from './match-control';
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Zvcm0vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxpQkFBaUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vdmFsaWRhdG9ycyc7XG5leHBvcnQgKiBmcm9tICcuL21hdGNoLWNvbnRyb2wnO1xuIl19
|
@@ -1,30 +1,30 @@
|
|
1
|
-
/**
|
2
|
-
* Match two control values
|
3
|
-
*
|
4
|
-
* 匹配两个控件值
|
5
|
-
* ```ts
|
6
|
-
* this.form = new FormGroup({
|
7
|
-
* pwd: new FormControl(''),
|
8
|
-
* repwd: new FormControl(''),
|
9
|
-
* }, {
|
10
|
-
* validators: MatchControl('pwd', 'repwd'),
|
11
|
-
* });
|
12
|
-
* ```
|
13
|
-
*/
|
14
|
-
export function MatchControl(controlName, matchingControlName) {
|
15
|
-
return (formGroup) => {
|
16
|
-
const control = formGroup.get(controlName);
|
17
|
-
const matchingControl = formGroup.get(matchingControlName);
|
18
|
-
if (matchingControl.errors && !matchingControl.errors.matchControl) {
|
19
|
-
return null;
|
20
|
-
}
|
21
|
-
if (control.value !== matchingControl.value) {
|
22
|
-
matchingControl.setErrors({ matchControl: true });
|
23
|
-
}
|
24
|
-
else {
|
25
|
-
matchingControl.setErrors(null);
|
26
|
-
}
|
27
|
-
return null;
|
28
|
-
};
|
29
|
-
}
|
1
|
+
/**
|
2
|
+
* Match two control values
|
3
|
+
*
|
4
|
+
* 匹配两个控件值
|
5
|
+
* ```ts
|
6
|
+
* this.form = new FormGroup({
|
7
|
+
* pwd: new FormControl(''),
|
8
|
+
* repwd: new FormControl(''),
|
9
|
+
* }, {
|
10
|
+
* validators: MatchControl('pwd', 'repwd'),
|
11
|
+
* });
|
12
|
+
* ```
|
13
|
+
*/
|
14
|
+
export function MatchControl(controlName, matchingControlName) {
|
15
|
+
return (formGroup) => {
|
16
|
+
const control = formGroup.get(controlName);
|
17
|
+
const matchingControl = formGroup.get(matchingControlName);
|
18
|
+
if (matchingControl.errors && !matchingControl.errors.matchControl) {
|
19
|
+
return null;
|
20
|
+
}
|
21
|
+
if (control.value !== matchingControl.value) {
|
22
|
+
matchingControl.setErrors({ matchControl: true });
|
23
|
+
}
|
24
|
+
else {
|
25
|
+
matchingControl.setErrors(null);
|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iJdfQ==
|
@@ -1,81 +1,81 @@
|
|
1
|
-
import { isChinese, isColor, isDecimal, isIdCard, isInt, isIp, isMobile, isNum, isUrl } from '@yelon/util/format';
|
2
|
-
/**
|
3
|
-
* A set of validators for reactive forms
|
4
|
-
*
|
5
|
-
* 一套用于响应式表单的验证器
|
6
|
-
*/
|
7
|
-
export class _Validators {
|
8
|
-
/**
|
9
|
-
* Wheter is number
|
10
|
-
*
|
11
|
-
* 是否为数字
|
12
|
-
*/
|
13
|
-
static num(control) {
|
14
|
-
return isNum(control.value) ? null : { num: true };
|
15
|
-
}
|
16
|
-
/**
|
17
|
-
* Wheter is integer
|
18
|
-
*
|
19
|
-
* 是否为整数
|
20
|
-
*/
|
21
|
-
static int(control) {
|
22
|
-
return isInt(control.value) ? null : { int: true };
|
23
|
-
}
|
24
|
-
/**
|
25
|
-
* Wheter is decimal
|
26
|
-
*
|
27
|
-
* 是否为小数点数值
|
28
|
-
*/
|
29
|
-
static decimal(control) {
|
30
|
-
return isDecimal(control.value) ? null : { decimal: true };
|
31
|
-
}
|
32
|
-
/**
|
33
|
-
* Wheter is People's Republic of China identity card
|
34
|
-
*
|
35
|
-
* 是否为中华人民共和国居民身份证
|
36
|
-
*/
|
37
|
-
static idCard(control) {
|
38
|
-
return isIdCard(control.value) ? null : { idCard: true };
|
39
|
-
}
|
40
|
-
/**
|
41
|
-
* Wheter is china mobile (China)
|
42
|
-
*
|
43
|
-
* 是否为手机号(中国)
|
44
|
-
*/
|
45
|
-
static mobile(control) {
|
46
|
-
return isMobile(control.value) ? null : { mobile: true };
|
47
|
-
}
|
48
|
-
/**
|
49
|
-
* Wheter is url address
|
50
|
-
*
|
51
|
-
* 是否URL地址
|
52
|
-
*/
|
53
|
-
static url(control) {
|
54
|
-
return isUrl(control.value) ? null : { url: true };
|
55
|
-
}
|
56
|
-
/**
|
57
|
-
* Wheter is IPv4 address (Support v4, v6)
|
58
|
-
*
|
59
|
-
* 是否IP4地址(支持v4、v6)
|
60
|
-
*/
|
61
|
-
static ip(control) {
|
62
|
-
return isIp(control.value) ? null : { ip: true };
|
63
|
-
}
|
64
|
-
/**
|
65
|
-
* Wheter is color
|
66
|
-
*
|
67
|
-
* 是否颜色代码值
|
68
|
-
*/
|
69
|
-
static color(control) {
|
70
|
-
return isColor(control.value) ? null : { color: true };
|
71
|
-
}
|
72
|
-
/**
|
73
|
-
* Wheter is chinese
|
74
|
-
*
|
75
|
-
* 是否中文
|
76
|
-
*/
|
77
|
-
static chinese(control) {
|
78
|
-
return isChinese(control.value) ? null : { chinese: true };
|
79
|
-
}
|
80
|
-
}
|
1
|
+
import { isChinese, isColor, isDecimal, isIdCard, isInt, isIp, isMobile, isNum, isUrl } from '@yelon/util/format';
|
2
|
+
/**
|
3
|
+
* A set of validators for reactive forms
|
4
|
+
*
|
5
|
+
* 一套用于响应式表单的验证器
|
6
|
+
*/
|
7
|
+
export class _Validators {
|
8
|
+
/**
|
9
|
+
* Wheter is number
|
10
|
+
*
|
11
|
+
* 是否为数字
|
12
|
+
*/
|
13
|
+
static num(control) {
|
14
|
+
return isNum(control.value) ? null : { num: true };
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* Wheter is integer
|
18
|
+
*
|
19
|
+
* 是否为整数
|
20
|
+
*/
|
21
|
+
static int(control) {
|
22
|
+
return isInt(control.value) ? null : { int: true };
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* Wheter is decimal
|
26
|
+
*
|
27
|
+
* 是否为小数点数值
|
28
|
+
*/
|
29
|
+
static decimal(control) {
|
30
|
+
return isDecimal(control.value) ? null : { decimal: true };
|
31
|
+
}
|
32
|
+
/**
|
33
|
+
* Wheter is People's Republic of China identity card
|
34
|
+
*
|
35
|
+
* 是否为中华人民共和国居民身份证
|
36
|
+
*/
|
37
|
+
static idCard(control) {
|
38
|
+
return isIdCard(control.value) ? null : { idCard: true };
|
39
|
+
}
|
40
|
+
/**
|
41
|
+
* Wheter is china mobile (China)
|
42
|
+
*
|
43
|
+
* 是否为手机号(中国)
|
44
|
+
*/
|
45
|
+
static mobile(control) {
|
46
|
+
return isMobile(control.value) ? null : { mobile: true };
|
47
|
+
}
|
48
|
+
/**
|
49
|
+
* Wheter is url address
|
50
|
+
*
|
51
|
+
* 是否URL地址
|
52
|
+
*/
|
53
|
+
static url(control) {
|
54
|
+
return isUrl(control.value) ? null : { url: true };
|
55
|
+
}
|
56
|
+
/**
|
57
|
+
* Wheter is IPv4 address (Support v4, v6)
|
58
|
+
*
|
59
|
+
* 是否IP4地址(支持v4、v6)
|
60
|
+
*/
|
61
|
+
static ip(control) {
|
62
|
+
return isIp(control.value) ? null : { ip: true };
|
63
|
+
}
|
64
|
+
/**
|
65
|
+
* Wheter is color
|
66
|
+
*
|
67
|
+
* 是否颜色代码值
|
68
|
+
*/
|
69
|
+
static color(control) {
|
70
|
+
return isColor(control.value) ? null : { color: true };
|
71
|
+
}
|
72
|
+
/**
|
73
|
+
* Wheter is chinese
|
74
|
+
*
|
75
|
+
* 是否中文
|
76
|
+
*/
|
77
|
+
static chinese(control) {
|
78
|
+
return isChinese(control.value) ? null : { chinese: true };
|
79
|
+
}
|
80
|
+
}
|
81
81
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvZm9ybS92YWxpZGF0b3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFLFNBQVMsRUFBRSxRQUFRLEVBQUUsS0FBSyxFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBRWxIOzs7O0dBSUc7QUFDSCxNQUFNLE9BQU8sV0FBVztJQUN0Qjs7OztPQUlHO0lBQ0g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b2w6IEFic3RyYWN0Q29udHJvbCk6IFZhbGlkYXRpb25FcnJvcnMgfCBudWxsIHtcbiAgICByZXR1cm4gaXNJcChjb250cm9sLnZhbHVlKSA/IG51bGwgOiB7IGlwOiB0cnVlIH07XG4gIH1cblxuICAvKipcbiAgICogV2hldGVyIGlzIGNvbG9yXG4gICAqXG4gICAqIOaYr+WQpuminOiJsuS7o+eggeWAvFxuICAgKi9cbiAgc3RhdGljIGNvbG9yKGNvbnRyb2w6IEFic3RyYWN0Q29udHJvbCk6IFZhbGlkYXRpb25FcnJvcnMgfCBudWxsIHtcbiAgICByZXR1cm4gaXNDb2xvcihjb250cm9sLnZhbHVlKSA/IG51bGwgOiB7IGNvbG9yOiB0cnVlIH07XG4gIH1cblxuICAvKipcbiAgICogV2hldGVyIGlzIGNoaW5lc2VcbiAgICpcbiAgICog5piv5ZCm5Lit5paHXG4gICAqL1xuICBzdGF0aWMgY2hpbmVzZShjb250cm9sOiBBYnN0cmFjdENvbnRyb2wpOiBWYWxpZGF0aW9uRXJyb3JzIHwgbnVsbCB7XG4gICAgcmV0dXJuIGlzQ2hpbmVzZShjb250cm9sLnZhbHVlKSA/IG51bGwgOiB7IGNoaW5lc2U6IHRydWUgfTtcbiAgfVxufVxuIl19
|
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
export * from './index';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWVsb24tdXRpbC1mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9mb3JtL3llbG9uLXV0aWwtZm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|