@yelon/util 16.4.6 → 17.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +6 -2
  3. package/browser/cookie.service.d.ts +2 -5
  4. package/browser/is-empty.d.ts +2 -2
  5. package/browser/scroll.service.d.ts +3 -6
  6. package/config/auth/auth.type.d.ts +2 -10
  7. package/config/cache/cache.type.d.ts +26 -0
  8. package/config/config.types.d.ts +5 -2
  9. package/config/index.d.ts +2 -2
  10. package/config/mock/mock.type.d.ts +0 -4
  11. package/config/theme/http.type.d.ts +3 -2
  12. package/config/theme/pipe.type.d.ts +3 -0
  13. package/date-time/time.d.ts +16 -8
  14. package/decorator/convert.d.ts +8 -0
  15. package/decorator/zone-outside.d.ts +2 -2
  16. package/esm2022/array/array-type.service.mjs +1 -1
  17. package/esm2022/array/array.service.mjs +6 -5
  18. package/esm2022/browser/cookie.service.mjs +11 -14
  19. package/esm2022/browser/copy.mjs +1 -1
  20. package/esm2022/browser/is-empty.mjs +3 -3
  21. package/esm2022/browser/scroll.service.mjs +11 -14
  22. package/esm2022/browser/style.mjs +1 -1
  23. package/esm2022/config/auth/auth.type.mjs +1 -1
  24. package/esm2022/config/cache/cache.type.mjs +1 -1
  25. package/esm2022/config/config.service.mjs +7 -6
  26. package/esm2022/config/config.types.mjs +5 -2
  27. package/esm2022/config/index.mjs +3 -3
  28. package/esm2022/config/mock/mock.type.mjs +1 -1
  29. package/esm2022/config/theme/http.type.mjs +1 -1
  30. package/esm2022/config/theme/pipe.type.mjs +2 -0
  31. package/esm2022/date-time/picker.mjs +1 -1
  32. package/esm2022/date-time/time.mjs +16 -11
  33. package/esm2022/decorator/convert.mjs +9 -1
  34. package/esm2022/decorator/zone-outside.mjs +3 -3
  35. package/esm2022/form/match-control.mjs +1 -1
  36. package/esm2022/format/currency.service.mjs +10 -15
  37. package/esm2022/format/string.mjs +1 -1
  38. package/esm2022/index.mjs +1 -2
  39. package/esm2022/math/in-range.mjs +1 -1
  40. package/esm2022/math/round.mjs +1 -1
  41. package/esm2022/mcache/localStorageUtils.mjs +1 -1
  42. package/esm2022/mtypes/header-menu.type.mjs +1 -1
  43. package/esm2022/mtypes/menu.type.mjs +1 -1
  44. package/esm2022/mtypes/page.mjs +1 -1
  45. package/esm2022/other/assert.mjs +2 -2
  46. package/esm2022/other/deep.mjs +1 -1
  47. package/esm2022/other/favicon.mjs +1 -1
  48. package/esm2022/other/index.mjs +2 -2
  49. package/esm2022/other/lazy.service.mjs +8 -11
  50. package/esm2022/other/logger.mjs +1 -1
  51. package/esm2022/other/path-to-regexp.service.mjs +6 -6
  52. package/esm2022/pipes/currency/cny.pipe.mjs +15 -15
  53. package/esm2022/pipes/currency/mega.pipe.mjs +16 -20
  54. package/esm2022/pipes/currency/module.mjs +6 -6
  55. package/esm2022/pipes/currency/price.pipe.mjs +19 -19
  56. package/esm2022/pipes/filter/filter.pipe.mjs +11 -10
  57. package/esm2022/pipes/filter/module.mjs +6 -6
  58. package/esm2022/pipes/format/mask.pipe.mjs +24 -24
  59. package/esm2022/pipes/format/module.mjs +6 -6
  60. package/esm2022/token/window.mjs +1 -1
  61. package/fesm2022/array.mjs +5 -4
  62. package/fesm2022/array.mjs.map +1 -1
  63. package/fesm2022/browser.mjs +20 -26
  64. package/fesm2022/browser.mjs.map +1 -1
  65. package/fesm2022/config.mjs +11 -7
  66. package/fesm2022/config.mjs.map +1 -1
  67. package/fesm2022/date-time.mjs +15 -10
  68. package/fesm2022/date-time.mjs.map +1 -1
  69. package/fesm2022/decorator.mjs +10 -2
  70. package/fesm2022/decorator.mjs.map +1 -1
  71. package/fesm2022/form.mjs.map +1 -1
  72. package/fesm2022/format.mjs +9 -14
  73. package/fesm2022/format.mjs.map +1 -1
  74. package/fesm2022/math.mjs.map +1 -1
  75. package/fesm2022/mcache.mjs.map +1 -1
  76. package/fesm2022/mtypes.mjs.map +1 -1
  77. package/fesm2022/other.mjs +17 -20
  78. package/fesm2022/other.mjs.map +1 -1
  79. package/fesm2022/pipe-currency.mjs +48 -52
  80. package/fesm2022/pipe-currency.mjs.map +1 -1
  81. package/fesm2022/pipe-filter.mjs +15 -14
  82. package/fesm2022/pipe-filter.mjs.map +1 -1
  83. package/fesm2022/pipe-format.mjs +28 -28
  84. package/fesm2022/pipe-format.mjs.map +1 -1
  85. package/fesm2022/token.mjs.map +1 -1
  86. package/fesm2022/yelon-util.mjs +0 -1
  87. package/fesm2022/yelon-util.mjs.map +1 -1
  88. package/format/currency.service.d.ts +3 -2
  89. package/index.d.ts +0 -1
  90. package/mtypes/header-menu.type.d.ts +3 -2
  91. package/mtypes/menu.type.d.ts +6 -5
  92. package/mtypes/page.d.ts +2 -1
  93. package/other/index.d.ts +1 -1
  94. package/other/lazy.service.d.ts +1 -2
  95. package/other/path-to-regexp.service.d.ts +12 -11
  96. package/package.json +14 -20
  97. package/pipes/currency/cny.pipe.d.ts +8 -9
  98. package/pipes/currency/mega.pipe.d.ts +8 -9
  99. package/pipes/currency/module.d.ts +1 -1
  100. package/pipes/currency/price.pipe.d.ts +12 -13
  101. package/pipes/filter/filter.pipe.d.ts +6 -6
  102. package/pipes/filter/module.d.ts +1 -1
  103. package/pipes/format/mask.pipe.d.ts +20 -20
  104. package/pipes/format/module.d.ts +1 -1
  105. package/analysis/global-event.subject.d.ts +0 -7
  106. package/analysis/index.d.ts +0 -1
  107. package/esm2022/analysis/analysis.mjs +0 -5
  108. package/esm2022/analysis/global-event.subject.mjs +0 -17
  109. package/esm2022/analysis/index.mjs +0 -2
  110. package/fesm2022/analysis.mjs +0 -24
  111. package/fesm2022/analysis.mjs.map +0 -1
@@ -62,7 +62,7 @@ export class PathToRegexpService {
62
62
  : `[^${this.escapeString(delimiter === defaultDelimiter ? delimiter : delimiter + defaultDelimiter)}]+?`
63
63
  });
64
64
  }
65
- // Push any remaining characters.
65
+ // Push NzSafeAny remaining characters.
66
66
  if (path || index < str.length) {
67
67
  tokens.push(path + str.substr(index));
68
68
  }
@@ -227,13 +227,13 @@ export class PathToRegexpService {
227
227
  }
228
228
  return this.stringToRegexp(/** @type {string} */ path, keys, options);
229
229
  }
230
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PathToRegexpService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
231
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PathToRegexpService, providedIn: 'root' }); }
230
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: PathToRegexpService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
231
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: PathToRegexpService, providedIn: 'root' }); }
232
232
  }
233
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PathToRegexpService, decorators: [{
233
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: PathToRegexpService, decorators: [{
234
234
  type: Injectable,
235
235
  args: [{
236
236
  providedIn: 'root'
237
237
  }]
238
- }], ctorParameters: function () { return []; } });
239
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0aC10by1yZWdleHAuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvb3RoZXIvcGF0aC10by1yZWdleHAuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxxRUFBcUU7QUFDckUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFLM0MsTUFBTSxPQUFPLG1CQUFtQjtJQUM5QjtRQUNBLHNCQUFpQixHQUFHLEdBQUcsQ0FBQztRQUV4Qix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ZGVmaW5lZDtcblxuICAgICAgaWYgKCFzdHJpY3QpIHtcbiAgICAgICAgcm91dGUgKz0gYCg/OiR7dGhpcy5lc2NhcGVTdHJpbmcoZGVsaW1pdGVyKX0oPz0ke2VuZHNXaXRofSkpP2A7XG4gICAgICB9XG4gICAgICBpZiAoIWlzRW5kRGVsaW1pdGVkKSB7XG4gICAgICAgIHJvdXRlICs9IGAoPz0ke3RoaXMuZXNjYXBlU3RyaW5nKGRlbGltaXRlcil9fCR7ZW5kc1dpdGh9KWA7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIG5ldyBSZWdFeHAocm91dGUsIHRoaXMuZmxhZ3Mob3B0aW9ucykpO1xuICB9XG5cbiAgcGF0aFRvUmVnZXhwKHBhdGg6IGFueSwga2V5czogYW55LCBvcHRpb25zOiBhbnkpIHtcbiAgICBpZiAocGF0aCBpbnN0YW5jZW9mIFJlZ0V4cCkge1xuICAgICAgcmV0dXJuIHRoaXMucmVnZXhwVG9SZWdleHAocGF0aCwga2V5cyk7XG4gICAgfVxuXG4gICAgaWYgKEFycmF5LmlzQXJyYXkocGF0aCkpIHtcbiAgICAgIHJldHVybiB0aGlzLmFycmF5VG9SZWdleHAoLyoqIEB0eXBlIHshQXJyYXl9ICovIHBhdGgsIGtleXMsIG9wdGlvbnMpO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzLnN0cmluZ1RvUmVnZXhwKC8qKiBAdHlwZSB7c3RyaW5nfSAqLyBwYXRoLCBrZXlzLCBvcHRpb25zKTtcbiAgfVxufVxuIl19
238
+ }], ctorParameters: () => [] });
239
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0aC10by1yZWdleHAuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvb3RoZXIvcGF0aC10by1yZWdleHAuc2VydmljZS50cyJdLCJuYW1l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GkrKykge1xuICAgICAgaWYgKHR5cGVvZiB0b2tlbnNbaV0gPT09ICdvYmplY3QnKSB7XG4gICAgICAgIG1hdGNoZXNbaV0gPSBuZXcgUmVnRXhwKGBeKD86JHt0b2tlbnNbaV0ucGF0dGVybn0pJGAsIHRoaXMuZmxhZ3Mob3B0aW9ucykpO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBmdW5jdGlvbiAoZGF0YTogTnpTYWZlQW55LCBvcHRpb25zOiBOelNhZmVBbnkpIHtcbiAgICAgIGxldCBwYXRoID0gJyc7XG4gICAgICBjb25zdCBlbmNvZGUgPSAob3B0aW9ucyAmJiBvcHRpb25zLmVuY29kZSkgfHwgZW5jb2RlVVJJQ29tcG9uZW50O1xuICAgICAgY29uc3QgdmFsaWRhdGUgPSBvcHRpb25zID8gb3B0aW9ucy52YWxpZGF0ZSAhPT0gZmFsc2UgOiB0cnVlO1xuXG4gICAgICBmb3IgKGxldCBpID0gMDsgaSA8IHRva2Vucy5sZW5ndGg7IGkrKykge1xuICAgICAgICBjb25zdCB0b2tlbiA9IHRva2Vuc1tpXTtcblxuICAgICAgICBpZiAodHlwZW9mIHRva2VuID09PSAnc3RyaW5nJykge1xuICAgICAgICAgIHBhdGggKz0gdG9rZW47XG4gICAgICAgICAgY29udGludWU7XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCB2YWx1ZSA9IGRhdGEgPyBkYXRhW3Rva2VuLm5hbWVdIDogdW5kZWZpbmVkO1xuICAgICAgICBsZXQgc2VnbWVudDtcblxuICAgICAgICBpZiAoQXJyYXkuaXNBcnJheSh2YWx1ZSkpIHtcbiAgICAgICAgICBpZiAoIXRva2VuLnJlcGVhdCkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcihgRXhwZWN0ZWQgXCIke3Rva2VuLm5hbWV9XCIgdG8gbm90IHJlcGVhdCwgYnV0IGdvdCBhcnJheWApO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGlmICh2YWx1ZS5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgIGlmICh0b2tlbi5vcHRpb25hbCkge1xuICAgICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcihgRXhwZWN0ZWQgXCIke3Rva2VuLm5hbWV9XCIgdG8gbm90IGJlIGVtcHR5YCk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgZm9yIChsZXQgaiA9IDA7IGogPCB2YWx1ZS5sZW5ndGg7IGorKykge1xuICAgICAgICAgICAgc2VnbWVudCA9IGVuY29kZSh2YWx1ZVtqXSwgdG9rZW4pO1xuXG4gICAgICAgICAgICBpZiAodmFsaWRhdGUgJiYgIW1hdGNoZXNbaV0udGVzdChzZWdtZW50KSkge1xuICAgICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKGBFeHBlY3RlZCBhbGwgXCIke3Rva2VuLm5hbWV9XCIgdG8gbWF0Y2ggXCIke3Rva2VuLnBhdHRlcm59XCJgKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgcGF0aCArPSAoaiA9PT0gMCA/IHRva2VuLnByZWZpeCA6IHRva2VuLmRlbGltaXRlcikgKyBzZWdtZW50O1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHR5cGVvZiB2YWx1ZSA9PT0gJ3N0cmluZycgfHwgdHlwZW9mIHZhbHVlID09PSAnbnVtYmVyJyB8fCB0eXBlb2YgdmFsdWUgPT09ICdib29sZWFuJykge1xuICAgICAgICAgIHNlZ21lbnQgPSBlbmNvZGUoU3RyaW5nKHZhbHVlKSwgdG9rZW4pO1xuXG4gICAgICAgICAgaWYgKHZhbGlkYXRlICYmICFtYXRjaGVzW2ldLnRlc3Qoc2VnbWVudCkpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoYEV4cGVjdGVkIF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pcy5lc2NhcGVTdHJpbmcoZGVsaW1pdGVyKX18JHtlbmRzV2l0aH0pYDtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gbmV3IFJlZ0V4cChyb3V0ZSwgdGhpcy5mbGFncyhvcHRpb25zKSk7XG4gIH1cblxuICBwYXRoVG9SZWdleHAocGF0aDogTnpTYWZlQW55LCBrZXlzOiBOelNhZmVBbnksIG9wdGlvbnM6IE56U2FmZUFueSkge1xuICAgIGlmIChwYXRoIGluc3RhbmNlb2YgUmVnRXhwKSB7XG4gICAgICByZXR1cm4gdGhpcy5yZWdleHBUb1JlZ2V4cChwYXRoLCBrZXlzKTtcbiAgICB9XG5cbiAgICBpZiAoQXJyYXkuaXNBcnJheShwYXRoKSkge1xuICAgICAgcmV0dXJuIHRoaXMuYXJyYXlUb1JlZ2V4cCgvKiogQHR5cGUgeyFBcnJheX0gKi8gcGF0aCwga2V5cywgb3B0aW9ucyk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXMuc3RyaW5nVG9SZWdleHAoLyoqIEB0eXBlIHtzdHJpbmd9ICovIHBhdGgsIGtleXMsIG9wdGlvbnMpO1xuICB9XG59XG4iXX0=
@@ -1,23 +1,23 @@
1
- import { Pipe } from '@angular/core';
1
+ import { Pipe, inject } from '@angular/core';
2
+ import { CurrencyService } from '@yelon/util/format';
2
3
  import * as i0 from "@angular/core";
3
- import * as i1 from "@yelon/util/format";
4
+ /**
5
+ * Converted into RMB notation.
6
+ *
7
+ * 转化成人民币表示法
8
+ */
4
9
  export class CurrencyCNYPipe {
5
- constructor(srv) {
6
- this.srv = srv;
10
+ constructor() {
11
+ this.srv = inject(CurrencyService);
7
12
  }
8
- /**
9
- * Converted into RMB notation.
10
- *
11
- * 转化成人民币表示法
12
- */
13
13
  transform(value, options) {
14
14
  return this.srv.cny(value, options);
15
15
  }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CurrencyCNYPipe, deps: [{ token: i1.CurrencyService }], target: i0.ɵɵFactoryTarget.Pipe }); }
17
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CurrencyCNYPipe, name: "cny" }); }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CurrencyCNYPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
17
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: CurrencyCNYPipe, isStandalone: true, name: "cny" }); }
18
18
  }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CurrencyCNYPipe, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CurrencyCNYPipe, decorators: [{
20
20
  type: Pipe,
21
- args: [{ name: 'cny' }]
22
- }], ctorParameters: function () { return [{ type: i1.CurrencyService }]; } });
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY255LnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL3BpcGVzL2N1cnJlbmN5L2NueS5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDOzs7QUFLcEQsTUFBTSxPQUFPLGVBQWU7SUFDMUIsWUFBb0IsR0FBb0I7UUFBcEIsUUFBRyxHQUFILEdBQUcsQ0FBaUI7SUFBRyxDQUFDO0lBRTVDOzs7O09BSUc7SUFDSCxTQUFTLENBQUMsS0FBc0IsRUFBRSxPQUE0QjtRQUM1RCxPQUFPLElBQUksQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxPQUFPLENBQUMsQ0FBQztJQUN0QyxDQUFDOytHQVZVLGVBQWU7NkdBQWYsZUFBZTs7NEZBQWYsZUFBZTtrQkFEM0IsSUFBSTttQkFBQyxFQUFFLElBQUksRUFBRSxLQUFLLEVBQUUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaXBlLCBQaXBlVHJhbnNmb3JtIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmltcG9ydCB7IEN1cnJlbmN5Q05ZT3B0aW9ucywgQ3VycmVuY3lTZXJ2aWNlIH0gZnJvbSAnQHllbG9uL3V0aWwvZm9ybWF0JztcblxuQFBpcGUoeyBuYW1lOiAnY255JyB9KVxuZXhwb3J0IGNsYXNzIEN1cnJlbmN5Q05ZUGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICBjb25zdHJ1Y3Rvcihwcml2YXRlIHNydjogQ3VycmVuY3lTZXJ2aWNlKSB7fVxuXG4gIC8qKlxuICAgKiBDb252ZXJ0ZWQgaW50byBSTUIgbm90YXRpb24uXG4gICAqXG4gICAqIOi9rOWMluaIkOS6uuawkeW4geihqOekuuazlVxuICAgKi9cbiAgdHJhbnNmb3JtKHZhbHVlOiBudW1iZXIgfCBzdHJpbmcsIG9wdGlvbnM/OiBDdXJyZW5jeUNOWU9wdGlvbnMpOiBzdHJpbmcge1xuICAgIHJldHVybiB0aGlzLnNydi5jbnkodmFsdWUsIG9wdGlvbnMpO1xuICB9XG59XG4iXX0=
21
+ args: [{ name: 'cny', standalone: true }]
22
+ }] });
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY255LnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL3BpcGVzL2N1cnJlbmN5L2NueS5waXBlLnRzIl0sIm5hbWVzIjpbXS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cblxuICB0cmFuc2Zvcm0odmFsdWU6IG51bWJlciB8IHN0cmluZywgb3B0aW9ucz86IEN1cnJlbmN5Q05ZT3B0aW9ucyk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHRoaXMuc3J2LmNueSh2YWx1ZSwgb3B0aW9ucyk7XG4gIH1cbn1cbiJdfQ==
@@ -1,29 +1,25 @@
1
- import { Inject, LOCALE_ID, Pipe } from '@angular/core';
1
+ import { LOCALE_ID, Pipe, inject } from '@angular/core';
2
+ import { CurrencyService } from '@yelon/util/format';
2
3
  import * as i0 from "@angular/core";
3
- import * as i1 from "@yelon/util/format";
4
+ /**
5
+ * Large number format filter
6
+ *
7
+ * 大数据格式化
8
+ */
4
9
  export class CurrencyMegaPipe {
5
- constructor(srv, locale) {
6
- this.srv = srv;
7
- this.isCN = false;
8
- this.isCN = locale.startsWith('zh');
10
+ constructor() {
11
+ this.srv = inject(CurrencyService);
12
+ this.isCN = inject(LOCALE_ID).startsWith('zh');
9
13
  }
10
- /**
11
- * Large number format filter
12
- *
13
- * 大数据格式化
14
- */
15
14
  transform(value, options) {
16
15
  const res = this.srv.mega(value, options);
17
16
  return res.value + (this.isCN ? res.unitI18n : res.unit);
18
17
  }
19
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CurrencyMegaPipe, deps: [{ token: i1.CurrencyService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }
20
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CurrencyMegaPipe, name: "mega" }); }
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CurrencyMegaPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
19
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: CurrencyMegaPipe, isStandalone: true, name: "mega" }); }
21
20
  }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CurrencyMegaPipe, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CurrencyMegaPipe, decorators: [{
23
22
  type: Pipe,
24
- args: [{ name: 'mega' }]
25
- }], ctorParameters: function () { return [{ type: i1.CurrencyService }, { type: undefined, decorators: [{
26
- type: Inject,
27
- args: [LOCALE_ID]
28
- }] }]; } });
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVnYS5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9waXBlcy9jdXJyZW5jeS9tZWdhLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxTQUFTLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7O0FBS3ZFLE1BQU0sT0FBTyxnQkFBZ0I7SUFFM0IsWUFDVSxHQUFvQixFQUNULE1BQWM7UUFEekIsUUFBRyxHQUFILEdBQUcsQ0FBaUI7UUFGdEIsU0FBSSxHQUFHLEtBQUssQ0FBQztRQUtuQixJQUFJLENBQUMsSUFBSSxHQUFHLE1BQU0sQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDdEMsQ0FBQztJQUVEOzs7O09BSUc7SUFDSCxTQUFTLENBQUMsS0FBc0IsRUFBRSxPQUE2QjtRQUM3RCxNQUFNLEdBQUcsR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsT0FBTyxDQUFDLENBQUM7UUFDMUMsT0FBTyxHQUFHLENBQUMsS0FBSyxHQUFHLENBQUMsSUFBSSxDQUF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pipe';
5
5
  import * as i0 from "@angular/core";
6
6
  const PIPES = [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe];
7
7
  export class CurrencyPipeModule {
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
9
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CurrencyPipeModule, declarations: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe], exports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe] }); }
10
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CurrencyPipeModule }); }
8
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
9
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: CurrencyPipeModule, imports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe], exports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe] }); }
10
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CurrencyPipeModule }); }
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CurrencyPipeModule, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CurrencyPipeModule, decorators: [{
13
13
  type: NgModule,
14
14
  args: [{
15
- declarations: PIPES,
15
+ imports: PIPES,
16
16
  exports: PIPES
17
17
  }]
18
18
  }] });
19
- //# sourceMappingURL=data:application/json;base64,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Us7aUJBQ2YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBDdXJyZW5jeUNOWVBpcGUgfSBmcm9tICcuL2NueS5waXBlJztcbmltcG9ydCB7IEN1cnJlbmN5TWVnYVBpcGUgfSBmcm9tICcuL21lZ2EucGlwZSc7XG5pbXBvcnQgeyBDdXJyZW5jeVByaWNlUGlwZSB9IGZyb20gJy4vcHJpY2UucGlwZSc7XG5cbmNvbnN0IFBJUEVTID0gW0N1cnJlbmN5TWVnYVBpcGUsIEN1cnJlbmN5UHJpY2VQaXBlLCBDdXJyZW5jeUNOWVBpcGVdO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBQSVBFUyxcbiAgZXhwb3J0czogUElQRVNcbn0pXG5leHBvcnQgY2xhc3MgQ3VycmVuY3lQaXBlTW9kdWxlIHt9XG4iXX0=
@@ -1,27 +1,27 @@
1
- import { Pipe } from '@angular/core';
1
+ import { Pipe, inject } from '@angular/core';
2
+ import { CurrencyService } from '@yelon/util/format';
2
3
  import * as i0 from "@angular/core";
3
- import * as i1 from "@yelon/util/format";
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
+ */
4
13
  export class CurrencyPricePipe {
5
- constructor(srv) {
6
- this.srv = srv;
14
+ constructor() {
15
+ this.srv = inject(CurrencyService);
7
16
  }
8
- /**
9
- * Format a number with commas as thousands separators
10
- *
11
- * 格式化货币,用逗号将数字格式化为千位分隔符
12
- * ```ts
13
- * 10000 => `10,000`
14
- * 10000.567 => `10,000.57`
15
- * ```
16
- */
17
17
  transform(value, options) {
18
18
  return this.srv.format(value, options);
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CurrencyPricePipe, deps: [{ token: i1.CurrencyService }], target: i0.ɵɵFactoryTarget.Pipe }); }
21
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CurrencyPricePipe, name: "price" }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CurrencyPricePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
21
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: CurrencyPricePipe, isStandalone: true, name: "price" }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CurrencyPricePipe, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CurrencyPricePipe, decorators: [{
24
24
  type: Pipe,
25
- args: [{ name: 'price' }]
26
- }], ctorParameters: function () { return [{ type: i1.CurrencyService }]; } });
27
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpY2UucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvcGlwZXMvY3VycmVuY3kvcHJpY2UucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7O0FBS3BELE1BQU0sT0FBTyxpQkFBaUI7SUFDNUIsWUFBb0IsR0FBb0I7UUFBcEIsUUFBRyxHQUFILEdBQUcsQ0FBaUI7SUFBRyxDQUFDO0lBQzVDOzs7Ozs7OztPQVFHO0lBQ0gsU0FBUyxDQUFDLEtBQXNCLEVBQUUsT0FBK0I7UUF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ZXIgd2l0aCBjb21tYXMgYXMgdGhvdXNhbmRzIHNlcGFyYXRvcnNcbiAqXG4gKiDmoLzlvI/ljJbotKfluIHvvIznlKjpgJflj7flsIbmlbDlrZfmoLzlvI/ljJbkuLrljYPkvY3liIbpmpTnrKZcbiAqIGBgYHRzXG4gKiAxMDAwMCA9PiBgMTAsMDAwYFxuICogMTAwMDAuNTY3ID0+IGAxMCwwMDAuNTdgXG4gKiBgYGBcbiAqL1xuQFBpcGUoeyBuYW1lOiAncHJpY2UnLCBzdGFuZGFsb25lOiB0cnVlIH0pXG5leHBvcnQgY2xhc3MgQ3VycmVuY3lQcmljZVBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgcHJpdmF0ZSByZWFkb25seSBzcnYgPSBpbmplY3QoQ3VycmVuY3lTZXJ2aWNlKTtcblxuICB0cmFuc2Zvcm0odmFsdWU6IG51bWJlciB8IHN0cmluZywgb3B0aW9ucz86IEN1cnJlbmN5Rm9ybWF0T3B0aW9ucyk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHRoaXMuc3J2LmZvcm1hdCh2YWx1ZSwgb3B0aW9ucyk7XG4gIH1cbn1cbiJdfQ==
@@ -1,19 +1,20 @@
1
1
  import { Pipe } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * Filter array
5
+ *
6
+ * 过滤数组
7
+ */
8
+ // eslint-disable-next-line @angular-eslint/no-pipe-impure
3
9
  export class FilterPipe {
4
- /**
5
- * Filter array
6
- *
7
- * 过滤数组
8
- */
9
10
  transform(array, matcher, ...args) {
10
11
  return array.filter(i => matcher(i, ...args));
11
12
  }
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
13
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FilterPipe, name: "filter" }); }
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
14
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: FilterPipe, isStandalone: true, name: "filter", pure: false }); }
14
15
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterPipe, decorators: [{
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: FilterPipe, decorators: [{
16
17
  type: Pipe,
17
- args: [{ name: 'filter' }]
18
+ args: [{ name: 'filter', standalone: true, pure: false }]
18
19
  }] });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVyLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL3BpcGVzL2ZpbHRlci9maWx0ZXIucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFLcEQsTUFBTSxPQUFPLFVBQVU7SUFDckI7Ozs7T0FJRztJQUNILFNBQVMsQ0FBSSxLQUFtQixFQUFFLE9BQW1ELEVBQUUsR0FBRyxJQUFpQjtRQUN6RyxPQUFPLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxPQUFPLENBQUMsQ0FBQyxFQUFFLEdBQUcsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUNoRCxDQUFDOytHQVJVLFVBQVU7NkdBQVYsVUFBVTs7NEZBQVYsVUFBVTtrQkFEdEIsSUFBSTttQkFBQyxFQUFFLElBQUksRUFBRSxRQU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FDLENBQUMsQ0FBQyxFQUFFLENBQUMsT0FBTyxDQUFDLENBQUMsRUFBRSxHQUFHLElBQUksQ0FBQyxDQUFDLENBQUM7SUFDaEQsQ0FBQzs4R0FIVSxVQUFVOzRHQUFWLFVBQVU7OzJGQUFWLFVBQVU7a0JBRHRCLElBQUk7bUJBQUMsRUFBRSxJQUFJLEVBQUUsUUFBUSxFQUFFLFVBQVUsRUFBRSxJQUFJLEVBQUUsSUFBSSxFQUFFLEtBQUssRUFBRSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBpcGUsIFBpcGVUcmFuc2Zvcm0gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuaW1wb3J0IHR5cGUgeyBOelNhZmVBbnkgfSBmcm9tICduZy16b3Jyby1hbnRkL2NvcmUvdHlwZXMnO1xuXG4vKipcbiAqIEZpbHRlciBhcnJheVxuICpcbiAqIOi/h+a7pOaVsOe7hFxuICovXG4vLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQGFuZ3VsYXItZXNsaW50L25vLXBpcGUtaW1wdXJlXG5AUGlwZSh7IG5hbWU6ICdmaWx0ZXInLCBzdGFuZGFsb25lOiB0cnVlLCBwdXJlOiBmYWxzZSB9KVxuZXhwb3J0IGNsYXNzIEZpbHRlclBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgdHJhbnNmb3JtPFQ+KGFycmF5OiByZWFkb25seSBUW10sIG1hdGNoZXI6IChpdGVtOiBULCAuLi5hcmdzOiBOelNhZmVBbnlbXSkgPT4gYm9vbGVhbiwgLi4uYXJnczogTnpTYWZlQW55W10pOiBUW10ge1xuICAgIHJldHVybiBhcnJheS5maWx0ZXIoaSA9PiBtYXRjaGVyKGksIC4uLmFyZ3MpKTtcbiAgfVxufVxuIl19
@@ -3,15 +3,15 @@ import { FilterPipe } from './filter.pipe';
3
3
  import * as i0 from "@angular/core";
4
4
  const PIPES = [FilterPipe];
5
5
  export class FilterPipeModule {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FilterPipeModule, declarations: [FilterPipe], exports: [FilterPipe] }); }
8
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterPipeModule }); }
6
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: FilterPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: FilterPipeModule, imports: [FilterPipe], exports: [FilterPipe] }); }
8
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: FilterPipeModule }); }
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterPipeModule, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: FilterPipeModule, decorators: [{
11
11
  type: NgModule,
12
12
  args: [{
13
- declarations: PIPES,
13
+ imports: PIPES,
14
14
  exports: PIPES
15
15
  }]
16
16
  }] });
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9waXBlcy9maWx0ZXIvbW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTS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ixNQUFNLE9BQU8sZ0JBQWdCOzhHQUFoQixnQkFBZ0I7K0dBQWhCLGdCQUFnQixZQU5kLFVBQVUsYUFBVixVQUFVOytHQU1aLGdCQUFnQjs7MkZBQWhCLGdCQUFnQjtrQkFKNUIsUUFBUTttQkFBQztvQkFDUixPQUFPLEVBQUUsS0FBSztvQkFDZCxPQUFPLEVBQUUsS0FBSztpQkFDZiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmltcG9ydCB7IEZpbHRlclBpcGUgfSBmcm9tICcuL2ZpbHRlci5waXBlJztcblxuY29uc3QgUElQRVMgPSBbRmlsdGVyUGlwZV07XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFBJUEVTLFxuICBleHBvcnRzOiBQSVBFU1xufSlcbmV4cG9ydCBjbGFzcyBGaWx0ZXJQaXBlTW9kdWxlIHt9XG4iXX0=
@@ -1,34 +1,34 @@
1
1
  import { Pipe } from '@angular/core';
2
2
  import { formatMask } from '@yelon/util/format';
3
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
+ */
4
23
  export class FormatMaskPipe {
5
- /**
6
- * Format mask
7
- *
8
- * 格式化掩码
9
- *
10
- * | 字符 | 描述 |
11
- * | --- | --- |
12
- * | `0` | 任意数字,若该位置字符不符合,则默认为 `0` 填充 |
13
- * | `9` | 任意数字 |
14
- * | `#` | 任意字符 |
15
- * | `U` | 转换大写 |
16
- * | `L` | 转换小写 |
17
- * | `*` | 转换为 `*` 字符 |
18
- *
19
- * ```ts
20
- * formatMask('123', '(###)') => (123)
21
- * formatMask('15900000000', '999****9999') => 159****0000
22
- * ```
23
- */
24
24
  transform(value, mask) {
25
25
  return formatMask(value, mask);
26
26
  }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatMaskPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
28
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormatMaskPipe, name: "mask" }); }
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: FormatMaskPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
28
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: FormatMaskPipe, isStandalone: true, name: "mask" }); }
29
29
  }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatMaskPipe, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: FormatMaskPipe, decorators: [{
31
31
  type: Pipe,
32
- args: [{ name: 'mask' }]
32
+ args: [{ name: 'mask', standalone: true }]
33
33
  }] });
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFzay5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9waXBlcy9mb3JtYXQvbWFzay5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFB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skPipe } from './mask.pipe';
3
3
  import * as i0 from "@angular/core";
4
4
  const PIPES = [FormatMaskPipe];
5
5
  export class FormatPipeModule {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormatPipeModule, declarations: [FormatMaskPipe], exports: [FormatMaskPipe] }); }
8
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatPipeModule }); }
6
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: FormatPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: FormatPipeModule, imports: [FormatMaskPipe], exports: [FormatMaskPipe] }); }
8
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: FormatPipeModule }); }
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatPipeModule, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: FormatPipeModule, decorators: [{
11
11
  type: NgModule,
12
12
  args: [{
13
- declarations: PIPES,
13
+ imports: PIPES,
14
14
  exports: PIPES
15
15
  }]
16
16
  }] });
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9waXBlcy9mb3JtYXQ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MsRUFBRSxNQUFNLGFBQWEsQ0FBQzs7QUFFN0MsTUFBTSxLQUFLLEdBQUcsQ0FBQyxjQUFjLENBQUMsQ0FBQztBQU0vQixNQUFNLE9BQU8sZ0JBQWdCOzhHQUFoQixnQkFBZ0I7K0dBQWhCLGdCQUFnQixZQU5kLGNBQWMsYUFBZCxjQUFjOytHQU1oQixnQkFBZ0I7OzJGQUFoQixnQkFBZ0I7a0JBSjVCLFFBQVE7bUJBQUM7b0JBQ1IsT0FBTyxFQUFFLEtBQUs7b0JBQ2QsT0FBTyxFQUFFLEtBQUs7aUJBQ2YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBGb3JtYXRNYXNrUGlwZSB9IGZyb20gJy4vbWFzay5waXBlJztcblxuY29uc3QgUElQRVMgPSBbRm9ybWF0TWFza1BpcGVdO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBQSVBFUyxcbiAgZXhwb3J0czogUElQRVNcbn0pXG5leHBvcnQgY2xhc3MgRm9ybWF0UGlwZU1vZHVsZSB7fVxuIl19
@@ -14,4 +14,4 @@ export const WINDOW = new InjectionToken('WINDOW', {
14
14
  return defaultView;
15
15
  }
16
16
  });
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2luZG93LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC90b2tlbi93aW5kb3cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzNDLE9BQU8sRUFBRSxNQUFNLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXZEOzs7O0dBSUc7QUFDSCxNQUFNLENBQUM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RXJyb3IoJ1dpbmRvdyBpcyBub3QgYXZhaWxhYmxlJyk7XG4gICAgfVxuICAgIHJldHVybiBkZWZhdWx0VmlldztcbiAgfVxufSk7XG4iXX0=
@@ -3,6 +3,7 @@ import { Injectable } from '@angular/core';
3
3
  import { NzTreeNode } from 'ng-zorro-antd/core/tree';
4
4
  import * as i1 from '@yelon/util/config';
5
5
 
6
+ /* eslint-disable @typescript-eslint/no-explicit-any */
6
7
  class ArrayService {
7
8
  constructor(cog) {
8
9
  this.c = cog.merge('utilArray', {
@@ -268,13 +269,13 @@ class ArrayService {
268
269
  }, new Map())
269
270
  .values());
270
271
  }
271
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ArrayService, deps: [{ token: i1.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
272
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ArrayService, providedIn: 'root' }); }
272
+ 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 }); }
273
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ArrayService, providedIn: 'root' }); }
273
274
  }
274
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ArrayService, decorators: [{
275
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ArrayService, decorators: [{
275
276
  type: Injectable,
276
277
  args: [{ providedIn: 'root' }]
277
- }], ctorParameters: function () { return [{ type: i1.YunzaiConfigService }]; } });
278
+ }], ctorParameters: () => [{ type: i1.YunzaiConfigService }] });
278
279
 
279
280
  /**
280
281
  * Generated bundle index. Do not edit.