@yelon/util 16.2.3 → 16.2.5-68d194e
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -21
- package/README.md +22 -22
- package/analysis/global-event.subject.d.ts +7 -7
- package/analysis/index.d.ts +1 -1
- package/array/array-type.service.d.ts +68 -68
- package/array/array.service.d.ts +78 -78
- package/array/index.d.ts +2 -2
- package/browser/cookie.service.d.ts +67 -67
- 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 +37 -37
- package/browser/style.d.ts +21 -21
- package/config/abc/cell.type.d.ts +118 -0
- package/config/abc/date-picker.type.d.ts +52 -52
- package/config/abc/error-collect.type.d.ts +10 -10
- package/config/abc/exception.type.d.ts +9 -9
- package/config/abc/image.type.d.ts +15 -15
- package/config/abc/index.d.ts +18 -17
- 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 +465 -465
- 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 +11 -11
- package/config/cache/cache.type.d.ts +40 -40
- package/config/chart/chart.type.d.ts +33 -33
- package/config/config.service.d.ts +13 -13
- package/config/config.types.d.ts +49 -48
- package/config/index.d.ts +14 -14
- package/config/mock/mock.type.d.ts +18 -18
- package/config/sf/sf.type.d.ts +133 -133
- package/config/socket/socket.type.d.ts +4 -4
- package/config/theme/http.type.d.ts +14 -14
- package/config/theme/i18n.type.d.ts +14 -14
- 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/date-time/index.d.ts +2 -2
- package/date-time/picker.d.ts +68 -68
- package/date-time/time.d.ts +31 -29
- package/decorator/convert.d.ts +24 -24
- package/decorator/index.d.ts +2 -2
- package/decorator/zone-outside.d.ts +35 -35
- package/esm2022/analysis/analysis.mjs +4 -4
- package/esm2022/analysis/global-event.subject.mjs +16 -16
- package/esm2022/analysis/index.mjs +1 -1
- package/esm2022/array/array-type.service.mjs +1 -1
- package/esm2022/array/array.mjs +4 -4
- package/esm2022/array/array.service.mjs +276 -276
- package/esm2022/array/index.mjs +2 -2
- package/esm2022/browser/browser.mjs +4 -4
- package/esm2022/browser/cookie.service.mjs +102 -102
- package/esm2022/browser/copy.mjs +27 -27
- package/esm2022/browser/index.mjs +5 -5
- package/esm2022/browser/is-empty.mjs +18 -18
- package/esm2022/browser/scroll.service.mjs +87 -87
- package/esm2022/browser/style.mjs +37 -37
- package/esm2022/config/abc/cell.type.mjs +2 -0
- package/esm2022/config/abc/date-picker.type.mjs +1 -1
- package/esm2022/config/abc/error-collect.type.mjs +1 -1
- package/esm2022/config/abc/exception.type.mjs +1 -1
- package/esm2022/config/abc/image.type.mjs +1 -1
- package/esm2022/config/abc/index.mjs +19 -18
- package/esm2022/config/abc/loading.type.mjs +1 -1
- package/esm2022/config/abc/lodop.type.mjs +1 -1
- package/esm2022/config/abc/media.type.mjs +1 -1
- package/esm2022/config/abc/onboarding.type.mjs +1 -1
- package/esm2022/config/abc/page-header.type.mjs +1 -1
- package/esm2022/config/abc/pdf.type.mjs +1 -1
- package/esm2022/config/abc/qr.type.mjs +1 -1
- package/esm2022/config/abc/se.type.mjs +1 -1
- package/esm2022/config/abc/sg.type.mjs +1 -1
- package/esm2022/config/abc/st.type.mjs +1 -1
- package/esm2022/config/abc/sv.type.mjs +2 -2
- package/esm2022/config/abc/xlsx.type.mjs +1 -1
- package/esm2022/config/abc/zip.type.mjs +1 -1
- package/esm2022/config/acl/acl.type.mjs +1 -1
- package/esm2022/config/auth/auth.type.mjs +1 -1
- package/esm2022/config/bis/bis.type.mjs +1 -1
- package/esm2022/config/cache/cache.type.mjs +1 -1
- package/esm2022/config/chart/chart.type.mjs +1 -1
- package/esm2022/config/config.mjs +4 -4
- package/esm2022/config/config.service.mjs +36 -36
- package/esm2022/config/config.types.mjs +9 -9
- package/esm2022/config/index.mjs +14 -14
- package/esm2022/config/mock/mock.type.mjs +1 -1
- package/esm2022/config/sf/sf.type.mjs +1 -1
- package/esm2022/config/socket/socket.type.mjs +1 -1
- package/esm2022/config/theme/http.type.mjs +1 -1
- package/esm2022/config/theme/i18n.type.mjs +1 -1
- package/esm2022/config/theme/index.mjs +3 -3
- package/esm2022/config/theme/responsive.type.mjs +1 -1
- package/esm2022/config/util/array.type.mjs +1 -1
- package/esm2022/config/util/currency.type.mjs +1 -1
- package/esm2022/date-time/date-time.mjs +4 -4
- package/esm2022/date-time/index.mjs +2 -2
- package/esm2022/date-time/picker.mjs +115 -115
- package/esm2022/date-time/time.mjs +96 -89
- package/esm2022/decorator/convert.mjs +57 -57
- package/esm2022/decorator/decorator.mjs +4 -4
- package/esm2022/decorator/index.mjs +2 -2
- package/esm2022/decorator/zone-outside.mjs +56 -56
- package/esm2022/form/form.mjs +4 -4
- package/esm2022/form/index.mjs +2 -2
- package/esm2022/form/match-control.mjs +29 -29
- package/esm2022/form/validators.mjs +80 -80
- package/esm2022/format/currency.service.mjs +237 -237
- package/esm2022/format/currency.types.mjs +8 -8
- package/esm2022/format/format.mjs +4 -4
- package/esm2022/format/index.mjs +4 -4
- package/esm2022/format/string.mjs +84 -84
- package/esm2022/format/validate.mjs +93 -93
- package/esm2022/index.mjs +14 -14
- package/esm2022/math/in-range.mjs +24 -24
- package/esm2022/math/index.mjs +2 -2
- package/esm2022/math/math.mjs +4 -4
- package/esm2022/math/round.mjs +52 -52
- package/esm2022/mcache/index.mjs +1 -1
- package/esm2022/mcache/localStorageUtils.mjs +59 -69
- package/esm2022/mcache/mcache.mjs +4 -4
- package/esm2022/mtypes/authority.type.mjs +1 -1
- package/esm2022/mtypes/header-menu.type.mjs +1 -1
- package/esm2022/mtypes/index.mjs +9 -9
- package/esm2022/mtypes/menu.type.mjs +1 -1
- package/esm2022/mtypes/mtypes.mjs +4 -4
- package/esm2022/mtypes/nav.types.mjs +6 -6
- package/esm2022/mtypes/page.mjs +41 -41
- package/esm2022/mtypes/project-info.types.mjs +1 -1
- package/esm2022/mtypes/response.mjs +1 -1
- package/esm2022/mtypes/role.type.mjs +1 -1
- package/esm2022/mtypes/user.types.mjs +1 -1
- package/esm2022/other/assert.mjs +66 -66
- package/esm2022/other/deep.mjs +77 -77
- package/esm2022/other/favicon.mjs +28 -28
- package/esm2022/other/index.mjs +7 -7
- package/esm2022/other/lazy.service.mjs +131 -131
- package/esm2022/other/logger.mjs +32 -32
- package/esm2022/other/other.mjs +4 -4
- package/esm2022/other/path-to-regexp.service.mjs +238 -238
- package/esm2022/other/resize.mjs +3 -3
- package/esm2022/pipes/currency/cny.pipe.mjs +22 -22
- package/esm2022/pipes/currency/index.mjs +4 -4
- package/esm2022/pipes/currency/mega.pipe.mjs +28 -28
- package/esm2022/pipes/currency/module.mjs +18 -18
- package/esm2022/pipes/currency/pipe-currency.mjs +4 -4
- package/esm2022/pipes/currency/price.pipe.mjs +26 -26
- package/esm2022/pipes/filter/filter.pipe.mjs +18 -18
- package/esm2022/pipes/filter/index.mjs +2 -2
- package/esm2022/pipes/filter/module.mjs +16 -16
- package/esm2022/pipes/filter/pipe-filter.mjs +4 -4
- package/esm2022/pipes/format/index.mjs +2 -2
- package/esm2022/pipes/format/mask.pipe.mjs +33 -33
- package/esm2022/pipes/format/module.mjs +16 -16
- package/esm2022/pipes/format/pipe-format.mjs +4 -4
- package/esm2022/pipes/index.mjs +3 -3
- package/esm2022/pipes/pipes.mjs +4 -4
- package/esm2022/token/index.mjs +2 -2
- package/esm2022/token/page-visibility.mjs +14 -14
- package/esm2022/token/token.mjs +4 -4
- package/esm2022/token/window.mjs +16 -16
- package/esm2022/yelon-util.mjs +4 -4
- package/fesm2022/analysis.mjs +24 -24
- package/fesm2022/array.mjs +284 -284
- package/fesm2022/browser.mjs +279 -279
- package/fesm2022/config.mjs +54 -54
- package/fesm2022/config.mjs.map +1 -1
- package/fesm2022/date-time.mjs +218 -211
- package/fesm2022/date-time.mjs.map +1 -1
- package/fesm2022/decorator.mjs +121 -121
- package/fesm2022/form.mjs +118 -118
- package/fesm2022/format.mjs +431 -431
- package/fesm2022/format.mjs.map +1 -1
- package/fesm2022/math.mjs +85 -85
- package/fesm2022/mcache.mjs +65 -75
- package/fesm2022/mcache.mjs.map +1 -1
- package/fesm2022/mtypes.mjs +55 -55
- package/fesm2022/other.mjs +586 -586
- package/fesm2022/pipe-currency.mjs +94 -94
- package/fesm2022/pipe-filter.mjs +40 -40
- package/fesm2022/pipe-format.mjs +55 -55
- package/fesm2022/pipes.mjs +8 -8
- package/fesm2022/token.mjs +37 -37
- package/fesm2022/yelon-util.mjs +19 -19
- package/form/index.d.ts +2 -2
- package/form/match-control.d.ts +15 -15
- package/form/validators.d.ts +62 -62
- package/format/currency.service.d.ts +37 -37
- package/format/currency.types.d.ts +82 -77
- package/format/index.d.ts +4 -4
- package/format/string.d.ts +44 -44
- package/format/validate.d.ts +72 -72
- package/index.d.ts +14 -14
- package/math/in-range.d.ts +14 -14
- package/math/index.d.ts +2 -2
- package/math/round.d.ts +33 -33
- package/mcache/index.d.ts +1 -1
- package/mcache/localStorageUtils.d.ts +18 -31
- package/mtypes/authority.type.d.ts +3 -3
- package/mtypes/header-menu.type.d.ts +12 -12
- package/mtypes/index.d.ts +9 -9
- package/mtypes/menu.type.d.ts +40 -40
- package/mtypes/nav.types.d.ts +27 -27
- package/mtypes/page.d.ts +46 -46
- package/mtypes/project-info.types.d.ts +21 -21
- package/mtypes/response.d.ts +7 -7
- package/mtypes/role.type.d.ts +10 -10
- package/mtypes/user.types.d.ts +22 -22
- package/other/assert.d.ts +36 -36
- package/other/deep.d.ts +35 -35
- package/other/favicon.d.ts +2 -2
- package/other/index.d.ts +7 -7
- package/other/lazy.service.d.ts +48 -48
- package/other/logger.d.ts +5 -5
- package/other/path-to-regexp.service.d.ts +26 -26
- package/other/resize.d.ts +1 -1
- package/package.json +141 -141
- package/pipes/currency/cny.pipe.d.ts +15 -15
- package/pipes/currency/index.d.ts +4 -4
- package/pipes/currency/mega.pipe.d.ts +16 -16
- package/pipes/currency/module.d.ts +9 -9
- package/pipes/currency/price.pipe.d.ts +19 -19
- package/pipes/filter/filter.pipe.d.ts +13 -13
- package/pipes/filter/index.d.ts +2 -2
- package/pipes/filter/module.d.ts +7 -7
- package/pipes/format/index.d.ts +2 -2
- package/pipes/format/mask.pipe.d.ts +27 -27
- package/pipes/format/module.d.ts +7 -7
- package/pipes/index.d.ts +3 -3
- package/token/index.d.ts +2 -2
- package/token/page-visibility.d.ts +8 -8
- package/token/window.d.ts +7 -7
@@ -1,103 +1,103 @@
|
|
1
|
-
import { DOCUMENT } from '@angular/common';
|
2
|
-
import { Inject, Injectable } from '@angular/core';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
import * as i1 from "@angular/cdk/platform";
|
5
|
-
/**
|
6
|
-
* A set of simple Cookie manipulation classes.
|
7
|
-
*
|
8
|
-
* 一组简单的 Cookie 操作类。
|
9
|
-
*/
|
10
|
-
export class CookieService {
|
11
|
-
get doc() {
|
12
|
-
return this._doc || document;
|
13
|
-
}
|
14
|
-
/**
|
15
|
-
* Original cookie value
|
16
|
-
*
|
17
|
-
* 原始Cookie值
|
18
|
-
*/
|
19
|
-
get cookie() {
|
20
|
-
return this.platform.isBrowser ? this.doc.cookie : '';
|
21
|
-
}
|
22
|
-
constructor(_doc, platform) {
|
23
|
-
this._doc = _doc;
|
24
|
-
this.platform = platform;
|
25
|
-
}
|
26
|
-
/**
|
27
|
-
* Get all cookie key-value pairs
|
28
|
-
*
|
29
|
-
* 获取所有Cookie键值对
|
30
|
-
*/
|
31
|
-
getAll() {
|
32
|
-
const ret = {};
|
33
|
-
const arr = this.cookie.split('; ');
|
34
|
-
for (let i = 0; i < arr.length; i++) {
|
35
|
-
const cookie = arr[i];
|
36
|
-
const index = cookie.indexOf('=');
|
37
|
-
if (index > 0) {
|
38
|
-
const name = decodeURIComponent(cookie.substring(0, index));
|
39
|
-
if (ret[name] == null) {
|
40
|
-
ret[name] = decodeURIComponent(cookie.substring(index + 1));
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
return ret;
|
45
|
-
}
|
46
|
-
/**
|
47
|
-
* Get the value of given cookie `key`
|
48
|
-
*
|
49
|
-
* 获取指定 `key` 的值
|
50
|
-
*/
|
51
|
-
get(key) {
|
52
|
-
return this.getAll()[key];
|
53
|
-
}
|
54
|
-
/**
|
55
|
-
* Sets a value for given cookie key
|
56
|
-
*
|
57
|
-
* 设置指定 Cookie 键的值
|
58
|
-
*/
|
59
|
-
put(key, value, options) {
|
60
|
-
if (!this.platform.isBrowser) {
|
61
|
-
return;
|
62
|
-
}
|
63
|
-
const opt = { path: '/', ...options };
|
64
|
-
if (typeof opt.expires === 'number') {
|
65
|
-
opt.expires = new Date(+new Date() + opt.expires * 1e3);
|
66
|
-
}
|
67
|
-
if (typeof opt.expires !== 'string') {
|
68
|
-
opt.expires = opt.expires ? opt.expires.toUTCString() : '';
|
69
|
-
}
|
70
|
-
const optStr = opt;
|
71
|
-
const attributes = Object.keys(optStr)
|
72
|
-
.filter(k => optStr[k] && optStr[k] !== true)
|
73
|
-
.map(k => `${k}=${optStr[k].split(';')[0]}`)
|
74
|
-
.join(';');
|
75
|
-
this.doc.cookie = `${encodeURIComponent(String(key))}=${encodeURIComponent(String(value))}${attributes ? `; ${attributes}` : ''}`;
|
76
|
-
}
|
77
|
-
/**
|
78
|
-
* Remove given cookie
|
79
|
-
*
|
80
|
-
* 移除指定 Cookie
|
81
|
-
*/
|
82
|
-
remove(key, options) {
|
83
|
-
this.put(key, '', options);
|
84
|
-
}
|
85
|
-
/**
|
86
|
-
* Remove all cookies
|
87
|
-
*
|
88
|
-
* 移除所有 Cookies
|
89
|
-
*/
|
90
|
-
removeAll() {
|
91
|
-
this.doc.cookie = '';
|
92
|
-
}
|
93
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
94
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.
|
95
|
-
}
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
97
|
-
type: Injectable,
|
98
|
-
args: [{ providedIn: 'root' }]
|
99
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
100
|
-
type: Inject,
|
101
|
-
args: [DOCUMENT]
|
102
|
-
}] }, { type: i1.Platform }]; } });
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
2
|
+
import { Inject, Injectable } from '@angular/core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/cdk/platform";
|
5
|
+
/**
|
6
|
+
* A set of simple Cookie manipulation classes.
|
7
|
+
*
|
8
|
+
* 一组简单的 Cookie 操作类。
|
9
|
+
*/
|
10
|
+
export class CookieService {
|
11
|
+
get doc() {
|
12
|
+
return this._doc || document;
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* Original cookie value
|
16
|
+
*
|
17
|
+
* 原始Cookie值
|
18
|
+
*/
|
19
|
+
get cookie() {
|
20
|
+
return this.platform.isBrowser ? this.doc.cookie : '';
|
21
|
+
}
|
22
|
+
constructor(_doc, platform) {
|
23
|
+
this._doc = _doc;
|
24
|
+
this.platform = platform;
|
25
|
+
}
|
26
|
+
/**
|
27
|
+
* Get all cookie key-value pairs
|
28
|
+
*
|
29
|
+
* 获取所有Cookie键值对
|
30
|
+
*/
|
31
|
+
getAll() {
|
32
|
+
const ret = {};
|
33
|
+
const arr = this.cookie.split('; ');
|
34
|
+
for (let i = 0; i < arr.length; i++) {
|
35
|
+
const cookie = arr[i];
|
36
|
+
const index = cookie.indexOf('=');
|
37
|
+
if (index > 0) {
|
38
|
+
const name = decodeURIComponent(cookie.substring(0, index));
|
39
|
+
if (ret[name] == null) {
|
40
|
+
ret[name] = decodeURIComponent(cookie.substring(index + 1));
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
return ret;
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* Get the value of given cookie `key`
|
48
|
+
*
|
49
|
+
* 获取指定 `key` 的值
|
50
|
+
*/
|
51
|
+
get(key) {
|
52
|
+
return this.getAll()[key];
|
53
|
+
}
|
54
|
+
/**
|
55
|
+
* Sets a value for given cookie key
|
56
|
+
*
|
57
|
+
* 设置指定 Cookie 键的值
|
58
|
+
*/
|
59
|
+
put(key, value, options) {
|
60
|
+
if (!this.platform.isBrowser) {
|
61
|
+
return;
|
62
|
+
}
|
63
|
+
const opt = { path: '/', ...options };
|
64
|
+
if (typeof opt.expires === 'number') {
|
65
|
+
opt.expires = new Date(+new Date() + opt.expires * 1e3);
|
66
|
+
}
|
67
|
+
if (typeof opt.expires !== 'string') {
|
68
|
+
opt.expires = opt.expires ? opt.expires.toUTCString() : '';
|
69
|
+
}
|
70
|
+
const optStr = opt;
|
71
|
+
const attributes = Object.keys(optStr)
|
72
|
+
.filter(k => optStr[k] && optStr[k] !== true)
|
73
|
+
.map(k => `${k}=${optStr[k].split(';')[0]}`)
|
74
|
+
.join(';');
|
75
|
+
this.doc.cookie = `${encodeURIComponent(String(key))}=${encodeURIComponent(String(value))}${attributes ? `; ${attributes}` : ''}`;
|
76
|
+
}
|
77
|
+
/**
|
78
|
+
* Remove given cookie
|
79
|
+
*
|
80
|
+
* 移除指定 Cookie
|
81
|
+
*/
|
82
|
+
remove(key, options) {
|
83
|
+
this.put(key, '', options);
|
84
|
+
}
|
85
|
+
/**
|
86
|
+
* Remove all cookies
|
87
|
+
*
|
88
|
+
* 移除所有 Cookies
|
89
|
+
*/
|
90
|
+
removeAll() {
|
91
|
+
this.doc.cookie = '';
|
92
|
+
}
|
93
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: CookieService, deps: [{ token: DOCUMENT }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
94
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: CookieService, providedIn: 'root' }); }
|
95
|
+
}
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: CookieService, decorators: [{
|
97
|
+
type: Injectable,
|
98
|
+
args: [{ providedIn: 'root' }]
|
99
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
100
|
+
type: Inject,
|
101
|
+
args: [DOCUMENT]
|
102
|
+
}] }, { type: i1.Platform }]; } });
|
103
103
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29va2llLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Jyb3dzZXIvY29va2llLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzNDLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFrQm5EOzs7O0dBSUc7QUFFSCxNQUFNLE9BQU8sYUFBYTtJQUN4QixJQUFZLEdBQUc7UUFDYixPQUFPLElBQUksQ0FBQyxJQUFJLElBQUksUUFBUSxDQUFDO0lBQy9CLENBQUM7SUFFRDs7OztPQUlHO0lBQ0gsSUFBSSxNQUFNO1FBQ1IsT0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RoaXMuZG9jLmNvb2tpZSA9IGAke2VuY29kZVVSSUNvbXBvbmVudChTdHJpbmcoa2V5KSl9PSR7ZW5jb2RlVVJJQ29tcG9uZW50KFN0cmluZyh2YWx1ZSkpfSR7XG4gICAgICBhdHRyaWJ1dGVzID8gYDsgJHthdHRyaWJ1dGVzfWAgOiAnJ1xuICAgIH1gO1xuICB9XG5cbiAgLyoqXG4gICAqIFJlbW92ZSBnaXZlbiBjb29raWVcbiAgICpcbiAgICog56e76Zmk5oyH5a6aIENvb2tpZVxuICAgKi9cbiAgcmVtb3ZlKGtleTogc3RyaW5nLCBvcHRpb25zPzogQ29va2llT3B0aW9ucyk6IHZvaWQge1xuICAgIHRoaXMucHV0KGtleSwgJycsIG9wdGlvbnMpO1xuICB9XG5cbiAgLyoqXG4gICAqIFJlbW92ZSBhbGwgY29va2llc1xuICAgKlxuICAgKiDnp7vpmaTmiYDmnIkgQ29va2llc1xuICAgKi9cbiAgcmVtb3ZlQWxsKCk6IHZvaWQge1xuICAgIHRoaXMuZG9jLmNvb2tpZSA9ICcnO1xuICB9XG59XG4iXX0=
|
package/esm2022/browser/copy.mjs
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
/**
|
2
|
-
* Copy text to clipboard
|
3
|
-
*
|
4
|
-
* 复制字符串文档至剪贴板
|
5
|
-
*/
|
6
|
-
export function copy(value) {
|
7
|
-
return new Promise((resolve) => {
|
8
|
-
let copyTextArea = null;
|
9
|
-
try {
|
10
|
-
copyTextArea = document.createElement('textarea');
|
11
|
-
copyTextArea.style.height = '0px';
|
12
|
-
copyTextArea.style.opacity = '0';
|
13
|
-
copyTextArea.style.width = '0px';
|
14
|
-
document.body.appendChild(copyTextArea);
|
15
|
-
copyTextArea.value = value;
|
16
|
-
copyTextArea.select();
|
17
|
-
// eslint-disable-next-line deprecation/deprecation
|
18
|
-
document.execCommand('copy');
|
19
|
-
resolve(value);
|
20
|
-
}
|
21
|
-
finally {
|
22
|
-
if (copyTextArea && copyTextArea.parentNode) {
|
23
|
-
copyTextArea.parentNode.removeChild(copyTextArea);
|
24
|
-
}
|
25
|
-
}
|
26
|
-
});
|
27
|
-
}
|
1
|
+
/**
|
2
|
+
* Copy text to clipboard
|
3
|
+
*
|
4
|
+
* 复制字符串文档至剪贴板
|
5
|
+
*/
|
6
|
+
export function copy(value) {
|
7
|
+
return new Promise((resolve) => {
|
8
|
+
let copyTextArea = null;
|
9
|
+
try {
|
10
|
+
copyTextArea = document.createElement('textarea');
|
11
|
+
copyTextArea.style.height = '0px';
|
12
|
+
copyTextArea.style.opacity = '0';
|
13
|
+
copyTextArea.style.width = '0px';
|
14
|
+
document.body.appendChild(copyTextArea);
|
15
|
+
copyTextArea.value = value;
|
16
|
+
copyTextArea.select();
|
17
|
+
// eslint-disable-next-line deprecation/deprecation
|
18
|
+
document.execCommand('copy');
|
19
|
+
resolve(value);
|
20
|
+
}
|
21
|
+
finally {
|
22
|
+
if (copyTextArea && copyTextArea.parentNode) {
|
23
|
+
copyTextArea.parentNode.removeChild(copyTextArea);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
});
|
27
|
+
}
|
28
28
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29weS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvYnJvd3Nlci9jb3B5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7O0dBSUc7QUFDSCxNQUFNLFVBQVUsSUFBSSxDQUFDLEtBQWE7SUFDaEMsT0FBTyxJQUFJLE9BQU8sQ0FBUyxDQUFDLE9BQU8sRUFBUSxFQUFFO1FBQzNDLElBQUksWUFBWSxHQUErQixJQUFJLENBQUM7UUFDcEQsSUFBSTtZQUNGLFlBQVksR0FBRyxRQUFRLENBQUMsYUFBYSxDQUFDLFVBQVUsQ0FBQyxDQUFDO1lBQ2xELFlBQVksQ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4dGFyZWEnKTtcbiAgICAgIGNvcHlUZXh0QXJlYS5zdHlsZS5oZWlnaHQgPSAnMHB4JztcbiAgICAgIGNvcHlUZXh0QXJlYS5zdHlsZS5vcGFjaXR5ID0gJzAnO1xuICAgICAgY29weVRleHRBcmVhLnN0eWxlLndpZHRoID0gJzBweCc7XG4gICAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGNvcHlUZXh0QXJlYSk7XG4gICAgICBjb3B5VGV4dEFyZWEudmFsdWUgPSB2YWx1ZTtcbiAgICAgIGNvcHlUZXh0QXJlYS5zZWxlY3QoKTtcbiAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBkZXByZWNhdGlvbi9kZXByZWNhdGlvblxuICAgICAgZG9jdW1lbnQuZXhlY0NvbW1hbmQoJ2NvcHknKTtcbiAgICAgIHJlc29sdmUodmFsdWUpO1xuICAgIH0gZmluYWxseSB7XG4gICAgICBpZiAoY29weVRleHRBcmVhICYmIGNvcHlUZXh0QXJlYS5wYXJlbnROb2RlKSB7XG4gICAgICAgIGNvcHlUZXh0QXJlYS5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKGNvcHlUZXh0QXJlYSk7XG4gICAgICB9XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export * from './cookie.service';
|
2
|
-
export * from './copy';
|
3
|
-
export * from './is-empty';
|
4
|
-
export * from './scroll.service';
|
5
|
-
export * from './style';
|
1
|
+
export * from './cookie.service';
|
2
|
+
export * from './copy';
|
3
|
+
export * from './is-empty';
|
4
|
+
export * from './scroll.service';
|
5
|
+
export * from './style';
|
6
6
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Jyb3dzZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb29raWUuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2NvcHknO1xuZXhwb3J0ICogZnJvbSAnLi9pcy1lbXB0eSc7XG5leHBvcnQgKiBmcm9tICcuL3Njcm9sbC5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vc3R5bGUnO1xuIl19
|
@@ -1,19 +1,19 @@
|
|
1
|
-
/**
|
2
|
-
* Used to verify `<ng-content></ng-content>` is empty, useful for custom components.
|
3
|
-
*
|
4
|
-
* 用于校验 `<ng-content></ng-content>` 是否为空,自定义组件时蛮有用。
|
5
|
-
*/
|
6
|
-
export function isEmpty(element) {
|
7
|
-
const nodes = element.childNodes;
|
8
|
-
for (let i = 0; i < nodes.length; i++) {
|
9
|
-
const node = nodes.item(i);
|
10
|
-
if (node.nodeType === 1 && node.outerHTML.toString().trim().length !== 0) {
|
11
|
-
return false;
|
12
|
-
}
|
13
|
-
else if (node.nodeType === 3 && node.textContent.toString().trim().length !== 0) {
|
14
|
-
return false;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
return true;
|
18
|
-
}
|
1
|
+
/**
|
2
|
+
* Used to verify `<ng-content></ng-content>` is empty, useful for custom components.
|
3
|
+
*
|
4
|
+
* 用于校验 `<ng-content></ng-content>` 是否为空,自定义组件时蛮有用。
|
5
|
+
*/
|
6
|
+
export function isEmpty(element) {
|
7
|
+
const nodes = element.childNodes;
|
8
|
+
for (let i = 0; i < nodes.length; i++) {
|
9
|
+
const node = nodes.item(i);
|
10
|
+
if (node.nodeType === 1 && node.outerHTML.toString().trim().length !== 0) {
|
11
|
+
return false;
|
12
|
+
}
|
13
|
+
else if (node.nodeType === 3 && node.textContent.toString().trim().length !== 0) {
|
14
|
+
return false;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
return true;
|
18
|
+
}
|
19
19
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtZW1wdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Jyb3dzZXIvaXMtZW1wdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7R0FJRztBQUNILE1BQU0sVUFBVSxPQUFPLENBQUMsT0FBb0I7SUFDMUMsTUFBTSxLQUFLLEdBQUcsT0FBTyxDQUFDLFVBQVUsQ0FBQztJQUNqQyxLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsS0FBSyxDQUFDLE1BQU0sRUFBRSxDQUFDLEVBQUUsRUFBRTtRQUNyQyxNQUFNLElBQUksR0FBRyxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzNCLElBQUksSUFBSSxDQUFDLFFBQVEsS0FBSyxDQUFDLElBQUssSUFBb0IsQ0FBQyxTQUFTLENBQUMsUUFBUSxFQUFFLENBQUMsSUFBSSxFQUFFLENBQUMsTUFBTSxLQUFLLENBQUMsRUFBRTtZQUN6RixPQUFPLEtBQUssQ0FBQztTQUNkO2FBQU0sSUFBSSxJQUFJLENBQUMsUUFBUSxLQUFLLENBQUMsSUFBSSxJQUFJLENBQUMsV0FBWSxDQUFDLFFBQVEsRUFBRSxDQUFDLElBQUksRUFBRSxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUU7WUFDbEYsT0FBTyxLQUFLLENBQUM7U0FDZDtLQUNGO0lBQ0QsT0FBTyxJQUFJLENBQUM7QUFDZCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBVc2VkIHRvIHZlcmlmeSBgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PmAgaXMgZW1wdHksIHVzZWZ1bCBmb3IgY3VzdG9tIGNvbXBvbmVudHMuXG4gKlxuICog55So5LqO5qCh6aqMIGA8bmctY29udGVudD48L25nLWNvbnRlbnQ+YCDmmK/lkKbkuLrnqbrvvIzoh6rlrprkuYnnu4Tku7bml7bom67mnInnlKjjgIJcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGlzRW1wdHkoZWxlbWVudDogSFRNTEVsZW1lbnQpOiBib29sZWFuIHtcbiAgY29uc3Qgbm9kZXMgPSBlbGVtZW50LmNoaWxkTm9kZXM7XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgbm9kZXMubGVuZ3RoOyBpKyspIHtcbiAgICBjb25zdCBub2RlID0gbm9kZXMuaXRlbShpKTtcbiAgICBpZiAobm9kZS5ub2RlVHlwZSA9PT0gMSAmJiAobm9kZSBhcyBIVE1MRWxlbWVudCkub3V0ZXJIVE1MLnRvU3RyaW5nKCkudHJpbSgpLmxlbmd0aCAhPT0gMCkge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH0gZWxzZSBpZiAobm9kZS5ub2RlVHlwZSA9PT0gMyAmJiBub2RlLnRleHRDb250ZW50IS50b1N0cmluZygpLnRyaW0oKS5sZW5ndGggIT09IDApIHtcbiAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIHRydWU7XG59XG4iXX0=
|
@@ -1,88 +1,88 @@
|
|
1
|
-
import { DOCUMENT } from '@angular/common';
|
2
|
-
import { Inject, Injectable } from '@angular/core';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
import * as i1 from "@angular/cdk/platform";
|
5
|
-
export class ScrollService {
|
6
|
-
_getDoc() {
|
7
|
-
return this._doc || document;
|
8
|
-
}
|
9
|
-
_getWin() {
|
10
|
-
const doc = this._getDoc();
|
11
|
-
return doc.defaultView || window;
|
12
|
-
}
|
13
|
-
constructor(_doc, platform) {
|
14
|
-
this._doc = _doc;
|
15
|
-
this.platform = platform;
|
16
|
-
}
|
17
|
-
/**
|
18
|
-
* 获取滚动条位置
|
19
|
-
*
|
20
|
-
* @param element 指定元素,默认 `window`
|
21
|
-
*/
|
22
|
-
getScrollPosition(element) {
|
23
|
-
if (!this.platform.isBrowser) {
|
24
|
-
return [0, 0];
|
25
|
-
}
|
26
|
-
const win = this._getWin();
|
27
|
-
if (element && element !== win) {
|
28
|
-
return [element.scrollLeft, element.scrollTop];
|
29
|
-
}
|
30
|
-
else {
|
31
|
-
return [win.scrollX, win.scrollY];
|
32
|
-
}
|
33
|
-
}
|
34
|
-
/**
|
35
|
-
* 设置滚动条位置
|
36
|
-
*
|
37
|
-
* @param element 指定元素
|
38
|
-
*/
|
39
|
-
scrollToPosition(element, position) {
|
40
|
-
if (!this.platform.isBrowser) {
|
41
|
-
return;
|
42
|
-
}
|
43
|
-
(element || this._getWin()).scrollTo(position[0], position[1]);
|
44
|
-
}
|
45
|
-
/**
|
46
|
-
* 设置滚动条至指定元素
|
47
|
-
*
|
48
|
-
* @param element 指定元素,默认 `document.body`
|
49
|
-
* @param topOffset 偏移值,默认 `0`
|
50
|
-
*/
|
51
|
-
scrollToElement(element, topOffset = 0) {
|
52
|
-
if (!this.platform.isBrowser) {
|
53
|
-
return;
|
54
|
-
}
|
55
|
-
if (!element) {
|
56
|
-
element = this._getDoc().body;
|
57
|
-
}
|
58
|
-
element.scrollIntoView();
|
59
|
-
const win = this._getWin();
|
60
|
-
if (win && win.scrollBy) {
|
61
|
-
win.scrollBy(0, element.getBoundingClientRect().top - topOffset);
|
62
|
-
if (win.scrollY < 20) {
|
63
|
-
win.scrollBy(0, -win.scrollY);
|
64
|
-
}
|
65
|
-
}
|
66
|
-
}
|
67
|
-
/**
|
68
|
-
* 滚动至顶部
|
69
|
-
*
|
70
|
-
* @param topOffset 偏移值,默认 `0`
|
71
|
-
*/
|
72
|
-
scrollToTop(topOffset = 0) {
|
73
|
-
if (!this.platform.isBrowser) {
|
74
|
-
return;
|
75
|
-
}
|
76
|
-
this.scrollToElement(this._getDoc().body, topOffset);
|
77
|
-
}
|
78
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
79
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.
|
80
|
-
}
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
82
|
-
type: Injectable,
|
83
|
-
args: [{ providedIn: 'root' }]
|
84
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
85
|
-
type: Inject,
|
86
|
-
args: [DOCUMENT]
|
87
|
-
}] }, { type: i1.Platform }]; } });
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
2
|
+
import { Inject, Injectable } from '@angular/core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/cdk/platform";
|
5
|
+
export class ScrollService {
|
6
|
+
_getDoc() {
|
7
|
+
return this._doc || document;
|
8
|
+
}
|
9
|
+
_getWin() {
|
10
|
+
const doc = this._getDoc();
|
11
|
+
return doc.defaultView || window;
|
12
|
+
}
|
13
|
+
constructor(_doc, platform) {
|
14
|
+
this._doc = _doc;
|
15
|
+
this.platform = platform;
|
16
|
+
}
|
17
|
+
/**
|
18
|
+
* 获取滚动条位置
|
19
|
+
*
|
20
|
+
* @param element 指定元素,默认 `window`
|
21
|
+
*/
|
22
|
+
getScrollPosition(element) {
|
23
|
+
if (!this.platform.isBrowser) {
|
24
|
+
return [0, 0];
|
25
|
+
}
|
26
|
+
const win = this._getWin();
|
27
|
+
if (element && element !== win) {
|
28
|
+
return [element.scrollLeft, element.scrollTop];
|
29
|
+
}
|
30
|
+
else {
|
31
|
+
return [win.scrollX, win.scrollY];
|
32
|
+
}
|
33
|
+
}
|
34
|
+
/**
|
35
|
+
* 设置滚动条位置
|
36
|
+
*
|
37
|
+
* @param element 指定元素
|
38
|
+
*/
|
39
|
+
scrollToPosition(element, position) {
|
40
|
+
if (!this.platform.isBrowser) {
|
41
|
+
return;
|
42
|
+
}
|
43
|
+
(element || this._getWin()).scrollTo(position[0], position[1]);
|
44
|
+
}
|
45
|
+
/**
|
46
|
+
* 设置滚动条至指定元素
|
47
|
+
*
|
48
|
+
* @param element 指定元素,默认 `document.body`
|
49
|
+
* @param topOffset 偏移值,默认 `0`
|
50
|
+
*/
|
51
|
+
scrollToElement(element, topOffset = 0) {
|
52
|
+
if (!this.platform.isBrowser) {
|
53
|
+
return;
|
54
|
+
}
|
55
|
+
if (!element) {
|
56
|
+
element = this._getDoc().body;
|
57
|
+
}
|
58
|
+
element.scrollIntoView();
|
59
|
+
const win = this._getWin();
|
60
|
+
if (win && win.scrollBy) {
|
61
|
+
win.scrollBy(0, element.getBoundingClientRect().top - topOffset);
|
62
|
+
if (win.scrollY < 20) {
|
63
|
+
win.scrollBy(0, -win.scrollY);
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
/**
|
68
|
+
* 滚动至顶部
|
69
|
+
*
|
70
|
+
* @param topOffset 偏移值,默认 `0`
|
71
|
+
*/
|
72
|
+
scrollToTop(topOffset = 0) {
|
73
|
+
if (!this.platform.isBrowser) {
|
74
|
+
return;
|
75
|
+
}
|
76
|
+
this.scrollToElement(this._getDoc().body, topOffset);
|
77
|
+
}
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: ScrollService, deps: [{ token: DOCUMENT }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
79
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: ScrollService, providedIn: 'root' }); }
|
80
|
+
}
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: ScrollService, decorators: [{
|
82
|
+
type: Injectable,
|
83
|
+
args: [{ providedIn: 'root' }]
|
84
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
85
|
+
type: Inject,
|
86
|
+
args: [DOCUMENT]
|
87
|
+
}] }, { type: i1.Platform }]; } });
|
88
88
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Jyb3dzZXIvc2Nyb2xsLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzNDLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFLbkQsTUFBTSxPQUFPLGFBQWE7SUFDaEIsT0FBTztRQUNiLE9BQU8sSUFBSSxDQUFDLElBQUksSUFBSSxRQUFRLENBQUM7SUFDL0IsQ0FBQztJQUVPLE9BQU87UUFDYixNQUFNLEdBQUcsR0FBRyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7UUFDM0IsT0FBTyxHQUFHLENBQUMsV0FBVyxJQUFJLE1BQU0sQ0FBQztJQUNuQyxDQUFDO0lBRUQsWUFDNEIsSUFBZSxFQUNqQyxRQUFrQjtRQURBLFNBQUksR0FBSixJQUFJLENBQVc7UUFDakMsYUFBUSxHQUFSLFFBQVEsQ0FBVTtJQUN6QixDQUFDO0lBRUo7Ozs7T0FJRztJQUNILGlCQUFpQixDQUFDLE9BQTBCO1FBQzFDLElBQUksQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLFNBQVMsRUFBRTtZQUM1QixPQUFPLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDO1NBQ2Y7UU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5zY3JvbGxZIDwgMjApIHtcbiAgICAgICAgd2luLnNjcm9sbEJ5KDAsIC13aW4uc2Nyb2xsWSk7XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgLyoqXG4gICAqIOa7muWKqOiHs+mhtumDqFxuICAgKlxuICAgKiBAcGFyYW0gdG9wT2Zmc2V0IOWBj+enu+WAvO+8jOm7mOiupCBgMGBcbiAgICovXG4gIHNjcm9sbFRvVG9wKHRvcE9mZnNldDogbnVtYmVyID0gMCk6IHZvaWQge1xuICAgIGlmICghdGhpcy5wbGF0Zm9ybS5pc0Jyb3dzZXIpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgdGhpcy5zY3JvbGxUb0VsZW1lbnQodGhpcy5fZ2V0RG9jKCkuYm9keSwgdG9wT2Zmc2V0KTtcbiAgfVxufVxuIl19
|
@@ -1,38 +1,38 @@
|
|
1
|
-
function removeClass(el, classMap, renderer) {
|
2
|
-
Object.keys(classMap).forEach(key => renderer.removeClass(el, key));
|
3
|
-
}
|
4
|
-
function addClass(el, classMap, renderer) {
|
5
|
-
for (const i in classMap) {
|
6
|
-
if (classMap[i]) {
|
7
|
-
renderer.addClass(el, i);
|
8
|
-
}
|
9
|
-
}
|
10
|
-
}
|
11
|
-
/**
|
12
|
-
* Update host component style `class`
|
13
|
-
*
|
14
|
-
* 更新宿主组件样式 `class`
|
15
|
-
*
|
16
|
-
* ```ts
|
17
|
-
* updateHostClass(
|
18
|
-
* this.el.nativeElement,
|
19
|
-
* this.renderer,
|
20
|
-
* {
|
21
|
-
* [ 'classname' ]: true,
|
22
|
-
* [ 'classname' ]: this.type === '1',
|
23
|
-
* [ this.cls ]: true,
|
24
|
-
* [ `a-${this.cls}` ]: true
|
25
|
-
* })
|
26
|
-
* ```
|
27
|
-
*/
|
28
|
-
export function updateHostClass(el, renderer, classMap, preClean = false) {
|
29
|
-
if (preClean === true) {
|
30
|
-
renderer.removeAttribute(el, 'class');
|
31
|
-
}
|
32
|
-
else {
|
33
|
-
removeClass(el, classMap, renderer);
|
34
|
-
}
|
35
|
-
classMap = { ...classMap };
|
36
|
-
addClass(el, classMap, renderer);
|
37
|
-
}
|
1
|
+
function removeClass(el, classMap, renderer) {
|
2
|
+
Object.keys(classMap).forEach(key => renderer.removeClass(el, key));
|
3
|
+
}
|
4
|
+
function addClass(el, classMap, renderer) {
|
5
|
+
for (const i in classMap) {
|
6
|
+
if (classMap[i]) {
|
7
|
+
renderer.addClass(el, i);
|
8
|
+
}
|
9
|
+
}
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* Update host component style `class`
|
13
|
+
*
|
14
|
+
* 更新宿主组件样式 `class`
|
15
|
+
*
|
16
|
+
* ```ts
|
17
|
+
* updateHostClass(
|
18
|
+
* this.el.nativeElement,
|
19
|
+
* this.renderer,
|
20
|
+
* {
|
21
|
+
* [ 'classname' ]: true,
|
22
|
+
* [ 'classname' ]: this.type === '1',
|
23
|
+
* [ this.cls ]: true,
|
24
|
+
* [ `a-${this.cls}` ]: true
|
25
|
+
* })
|
26
|
+
* ```
|
27
|
+
*/
|
28
|
+
export function updateHostClass(el, renderer, classMap, preClean = false) {
|
29
|
+
if (preClean === true) {
|
30
|
+
renderer.removeAttribute(el, 'class');
|
31
|
+
}
|
32
|
+
else {
|
33
|
+
removeClass(el, classMap, renderer);
|
34
|
+
}
|
35
|
+
classMap = { ...classMap };
|
36
|
+
addClass(el, classMap, renderer);
|
37
|
+
}
|
38
38
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3R5bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Jyb3dzZXIvc3R5bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsU0FBUyxXQUFXLENBQUMsRUFBZSxFQUFFLFFBQXNDLEVBQUUsUUFBbUI7SUFDL0YsTUFBTSxDQUFDLElBQUksQ0F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kgbmVnYXRpdmUgc2lnbiwgZGVmYXVsdDogYG5lZ2F0aXZlYFxuICAgICAqXG4gICAgICog5oyH5a6a6LSf5pWw56ym5Y+377yM6buY6K6k77yaYOi0n2BcbiAgICAgKi9cbiAgICBtaW51c1N5bWJvbD86IHN0cmluZztcbiAgfTtcblxuICAvKipcbiAgICog5biD5bCUXG4gICAqL1xuICBib29sZWFuPzoge1xuICAgIHllcz86IHN0cmluZztcbiAgICBubz86IHN0cmluZztcbiAgICBtb2RlPzogJ2Z1bGwnIHwgJ2ljb24nIHwgJ3RleHQnO1xuICB9O1xuXG4gIC8qKlxuICAgKiBJbWFnZSBjb25maWcsIHN1cHBvcnQgbGFyZ2UgaW1hZ2UgcHJldmlld1xuICAgKlxuICAgKiDlm77lg4/phY3nva7vvIzmlK/mjIHlpKflm77pooTop4hcbiAgICovXG4gIGltZz86IHtcbiAgICAvKipcbiAgICAgKiDlpKflsI/vvIzpu5jorqTvvJpgMzJgXG4gICAgICovXG4gICAgc2l6ZT86IG51bWJlcjtcbiAgICAvKipcbiAgICAgKiDmmK/lkKblhYHorrjngrnlh7vmn6XnnIvlpKflm77vvIzpu5jorqTvvJpgdHJ1ZWBcbiAgICAgKi9cbiAgICBiaWc/OiBib29sZWFuO1xuXG4gICAgcHJldmlld09wdGlvbnM/OiBOekltYWdlUHJldmlld09wdGlvbnM7XG4gIH07XG5cbiAgLyoqXG4gICAqIEhUTUwg6YWN572uXG4gICAqL1xuICBodG1sPzoge1xuICAgIHNhZmU/OiAndGV4dCcgfCAnaHRtbCcgfCAnc2FmZUh0bWwnO1xuICB9O1xufVxuIl19
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1waWNrZXIudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2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64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItY29sbGVjdC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvYWJjL2Vycm9yLWNvbGxlY3QudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBZdW56YWlFcnJvckNvbGxlY3RDb25maWcge1xuICAvKipcbiAgICog55uR5ZCs6aKR546H77yM6buY6K6k77yaYDUwMGBcbiAgICovXG4gIGZyZXE/OiBudW1iZXI7XG4gIC8qKlxuICAgKiDpobbpg6jlgY/np7vlgLzvvIzpu5jorqTvvJpgMTQ1YFxuICAgKi9cbiAgb2Zmc2V0VG9wPzogbnVtYmVyO1xufVxuIl19
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZXB0aW9uLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2NvbmZpZy9hYmMvZXhjZXB0aW9uLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgWXVuemFpRXhjZXB0aW9uVHlwZSB7XG4gIHR5cGVEaWN0PzogeyBba2V5OiBudW1iZXIgfCBzdHJpbmddOiB7IGltZzogc3RyaW5nOyB0aXRsZTogc3RyaW5nOyBkZXNjPzogc3RyaW5nIH0gfTtcbn1cbiJdfQ==
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjoz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