@yelon/util 16.3.6 → 16.3.7
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/analysis/global-event.subject.mjs +4 -4
- package/esm2022/array/array.service.mjs +4 -4
- package/esm2022/browser/cookie.service.mjs +4 -4
- package/esm2022/browser/scroll.service.mjs +4 -4
- package/esm2022/config/config.service.mjs +4 -4
- package/esm2022/format/currency.service.mjs +4 -4
- package/esm2022/other/lazy.service.mjs +4 -4
- package/esm2022/other/path-to-regexp.service.mjs +4 -4
- package/esm2022/pipes/currency/cny.pipe.mjs +4 -4
- package/esm2022/pipes/currency/mega.pipe.mjs +4 -4
- package/esm2022/pipes/currency/module.mjs +5 -5
- package/esm2022/pipes/currency/price.pipe.mjs +4 -4
- package/esm2022/pipes/filter/filter.pipe.mjs +4 -4
- package/esm2022/pipes/filter/module.mjs +5 -5
- package/esm2022/pipes/format/mask.pipe.mjs +4 -4
- package/esm2022/pipes/format/module.mjs +5 -5
- package/fesm2022/analysis.mjs +3 -3
- package/fesm2022/analysis.mjs.map +1 -1
- package/fesm2022/array.mjs +3 -3
- package/fesm2022/array.mjs.map +1 -1
- package/fesm2022/browser.mjs +6 -6
- package/fesm2022/browser.mjs.map +1 -1
- package/fesm2022/config.mjs +3 -3
- package/fesm2022/config.mjs.map +1 -1
- package/fesm2022/format.mjs +3 -3
- package/fesm2022/format.mjs.map +1 -1
- package/fesm2022/other.mjs +6 -6
- package/fesm2022/other.mjs.map +1 -1
- package/fesm2022/pipe-currency.mjs +13 -13
- package/fesm2022/pipe-currency.mjs.map +1 -1
- package/fesm2022/pipe-filter.mjs +7 -7
- package/fesm2022/pipe-filter.mjs.map +1 -1
- package/fesm2022/pipe-format.mjs +7 -7
- package/fesm2022/pipe-format.mjs.map +1 -1
- package/package.json +13 -13
package/fesm2022/pipe-format.mjs
CHANGED
@@ -25,21 +25,21 @@ class FormatMaskPipe {
|
|
25
25
|
transform(value, mask) {
|
26
26
|
return formatMask(value, mask);
|
27
27
|
}
|
28
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
29
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatMaskPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
29
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormatMaskPipe, name: "mask" }); }
|
30
30
|
}
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatMaskPipe, decorators: [{
|
32
32
|
type: Pipe,
|
33
33
|
args: [{ name: 'mask' }]
|
34
34
|
}] });
|
35
35
|
|
36
36
|
const PIPES = [FormatMaskPipe];
|
37
37
|
class FormatPipeModule {
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
39
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.
|
40
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
39
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormatPipeModule, declarations: [FormatMaskPipe], exports: [FormatMaskPipe] }); }
|
40
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatPipeModule }); }
|
41
41
|
}
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatPipeModule, decorators: [{
|
43
43
|
type: NgModule,
|
44
44
|
args: [{
|
45
45
|
declarations: PIPES,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pipe-format.mjs","sources":["../../../../packages/util/pipes/format/mask.pipe.ts","../../../../packages/util/pipes/format/module.ts","../../../../packages/util/pipes/format/pipe-format.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\nimport { formatMask, FormatMaskOption } from '@yelon/util/format';\n\n@Pipe({ name: 'mask' })\nexport class FormatMaskPipe implements PipeTransform {\n /**\n * Format mask\n *\n * 格式化掩码\n *\n * | 字符 | 描述 |\n * | --- | --- |\n * | `0` | 任意数字,若该位置字符不符合,则默认为 `0` 填充 |\n * | `9` | 任意数字 |\n * | `#` | 任意字符 |\n * | `U` | 转换大写 |\n * | `L` | 转换小写 |\n * | `*` | 转换为 `*` 字符 |\n *\n * ```ts\n * formatMask('123', '(###)') => (123)\n * formatMask('15900000000', '999****9999') => 159****0000\n * ```\n */\n transform(value: string, mask: string | FormatMaskOption): string {\n return formatMask(value, mask);\n }\n}\n","import { NgModule } from '@angular/core';\n\nimport { FormatMaskPipe } from './mask.pipe';\n\nconst PIPES = [FormatMaskPipe];\n\n@NgModule({\n declarations: PIPES,\n exports: PIPES\n})\nexport class FormatPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAKa,cAAc,CAAA;AACzB;;;;;;;;;;;;;;;;;;AAkBG;IACH,SAAS,CAAC,KAAa,EAAE,IAA+B,EAAA;AACtD,QAAA,OAAO,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;KAChC
|
1
|
+
{"version":3,"file":"pipe-format.mjs","sources":["../../../../packages/util/pipes/format/mask.pipe.ts","../../../../packages/util/pipes/format/module.ts","../../../../packages/util/pipes/format/pipe-format.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\nimport { formatMask, FormatMaskOption } from '@yelon/util/format';\n\n@Pipe({ name: 'mask' })\nexport class FormatMaskPipe implements PipeTransform {\n /**\n * Format mask\n *\n * 格式化掩码\n *\n * | 字符 | 描述 |\n * | --- | --- |\n * | `0` | 任意数字,若该位置字符不符合,则默认为 `0` 填充 |\n * | `9` | 任意数字 |\n * | `#` | 任意字符 |\n * | `U` | 转换大写 |\n * | `L` | 转换小写 |\n * | `*` | 转换为 `*` 字符 |\n *\n * ```ts\n * formatMask('123', '(###)') => (123)\n * formatMask('15900000000', '999****9999') => 159****0000\n * ```\n */\n transform(value: string, mask: string | FormatMaskOption): string {\n return formatMask(value, mask);\n }\n}\n","import { NgModule } from '@angular/core';\n\nimport { FormatMaskPipe } from './mask.pipe';\n\nconst PIPES = [FormatMaskPipe];\n\n@NgModule({\n declarations: PIPES,\n exports: PIPES\n})\nexport class FormatPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAKa,cAAc,CAAA;AACzB;;;;;;;;;;;;;;;;;;AAkBG;IACH,SAAS,CAAC,KAAa,EAAE,IAA+B,EAAA;AACtD,QAAA,OAAO,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;KAChC;+GAtBU,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;6GAAd,cAAc,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,IAAI;mBAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAA;;;ACAtB,MAAM,KAAK,GAAG,CAAC,cAAc,CAAC,CAAC;MAMlB,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;gHAAhB,gBAAgB,EAAA,YAAA,EAAA,CANd,cAAc,CAAA,EAAA,OAAA,EAAA,CAAd,cAAc,CAAA,EAAA,CAAA,CAAA,EAAA;gHAMhB,gBAAgB,EAAA,CAAA,CAAA,EAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,KAAK;AACnB,oBAAA,OAAO,EAAE,KAAK;AACf,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yelon/util",
|
3
|
-
"version": "16.3.
|
3
|
+
"version": "16.3.7",
|
4
4
|
"author": "devcui<devcui@outlook.com>",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -41,30 +41,30 @@
|
|
41
41
|
"esm": "./esm2022/analysis/analysis.mjs",
|
42
42
|
"default": "./fesm2022/analysis.mjs"
|
43
43
|
},
|
44
|
-
"./browser": {
|
45
|
-
"types": "./browser/index.d.ts",
|
46
|
-
"esm2022": "./esm2022/browser/browser.mjs",
|
47
|
-
"esm": "./esm2022/browser/browser.mjs",
|
48
|
-
"default": "./fesm2022/browser.mjs"
|
49
|
-
},
|
50
|
-
"./date-time": {
|
51
|
-
"types": "./date-time/index.d.ts",
|
52
|
-
"esm2022": "./esm2022/date-time/date-time.mjs",
|
53
|
-
"esm": "./esm2022/date-time/date-time.mjs",
|
54
|
-
"default": "./fesm2022/date-time.mjs"
|
55
|
-
},
|
56
44
|
"./array": {
|
57
45
|
"types": "./array/index.d.ts",
|
58
46
|
"esm2022": "./esm2022/array/array.mjs",
|
59
47
|
"esm": "./esm2022/array/array.mjs",
|
60
48
|
"default": "./fesm2022/array.mjs"
|
61
49
|
},
|
50
|
+
"./browser": {
|
51
|
+
"types": "./browser/index.d.ts",
|
52
|
+
"esm2022": "./esm2022/browser/browser.mjs",
|
53
|
+
"esm": "./esm2022/browser/browser.mjs",
|
54
|
+
"default": "./fesm2022/browser.mjs"
|
55
|
+
},
|
62
56
|
"./config": {
|
63
57
|
"types": "./config/index.d.ts",
|
64
58
|
"esm2022": "./esm2022/config/config.mjs",
|
65
59
|
"esm": "./esm2022/config/config.mjs",
|
66
60
|
"default": "./fesm2022/config.mjs"
|
67
61
|
},
|
62
|
+
"./date-time": {
|
63
|
+
"types": "./date-time/index.d.ts",
|
64
|
+
"esm2022": "./esm2022/date-time/date-time.mjs",
|
65
|
+
"esm": "./esm2022/date-time/date-time.mjs",
|
66
|
+
"default": "./fesm2022/date-time.mjs"
|
67
|
+
},
|
68
68
|
"./decorator": {
|
69
69
|
"types": "./decorator/index.d.ts",
|
70
70
|
"esm2022": "./esm2022/decorator/decorator.mjs",
|