@yelon/util 18.3.0 → 19.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/README.md +1 -1
  2. package/browser/cookie.service.d.ts +1 -3
  3. package/browser/style.d.ts +1 -3
  4. package/config/abc/date-picker.type.d.ts +2 -5
  5. package/config/abc/exception.type.d.ts +5 -7
  6. package/config/abc/loading.type.d.ts +1 -3
  7. package/config/abc/media.type.d.ts +1 -2
  8. package/config/abc/st.type.d.ts +11 -18
  9. package/config/acl/acl.type.d.ts +1 -2
  10. package/config/chart/chart.type.d.ts +1 -4
  11. package/config/config.service.d.ts +5 -4
  12. package/config/sf/sf.type.d.ts +3 -6
  13. package/config/theme/responsive.type.d.ts +8 -10
  14. package/date-time/time.d.ts +1 -2
  15. package/decorator/convert.d.ts +2 -3
  16. package/fesm2022/array.mjs +4 -4
  17. package/fesm2022/array.mjs.map +1 -1
  18. package/fesm2022/browser.mjs +13 -16
  19. package/fesm2022/browser.mjs.map +1 -1
  20. package/fesm2022/config.mjs +33 -18
  21. package/fesm2022/config.mjs.map +1 -1
  22. package/fesm2022/date-time.mjs +1 -1
  23. package/fesm2022/date-time.mjs.map +1 -1
  24. package/fesm2022/decorator.mjs.map +1 -1
  25. package/fesm2022/format.mjs +9 -7
  26. package/fesm2022/format.mjs.map +1 -1
  27. package/fesm2022/mcache.mjs.map +1 -1
  28. package/fesm2022/mtypes.mjs +4 -5
  29. package/fesm2022/mtypes.mjs.map +1 -1
  30. package/fesm2022/other.mjs +17 -21
  31. package/fesm2022/other.mjs.map +1 -1
  32. package/fesm2022/pipe-currency.mjs +20 -26
  33. package/fesm2022/pipe-currency.mjs.map +1 -1
  34. package/fesm2022/pipe-filter.mjs +8 -8
  35. package/fesm2022/pipe-filter.mjs.map +1 -1
  36. package/fesm2022/pipe-format.mjs +8 -8
  37. package/fesm2022/pipe-format.mjs.map +1 -1
  38. package/format/string.d.ts +3 -6
  39. package/mtypes/header-menu.type.d.ts +2 -3
  40. package/mtypes/menu.type.d.ts +5 -6
  41. package/mtypes/page.d.ts +1 -2
  42. package/other/deep.d.ts +4 -7
  43. package/other/lazy.service.d.ts +2 -5
  44. package/other/logger.d.ts +3 -4
  45. package/other/path-to-regexp.service.d.ts +11 -12
  46. package/package.json +8 -42
  47. package/pipes/filter/filter.pipe.d.ts +1 -2
  48. package/esm2022/array/array-type.service.mjs +0 -2
  49. package/esm2022/array/array.mjs +0 -5
  50. package/esm2022/array/array.service.mjs +0 -278
  51. package/esm2022/array/index.mjs +0 -3
  52. package/esm2022/browser/browser.mjs +0 -5
  53. package/esm2022/browser/cookie.service.mjs +0 -100
  54. package/esm2022/browser/copy.mjs +0 -28
  55. package/esm2022/browser/index.mjs +0 -6
  56. package/esm2022/browser/is-empty.mjs +0 -19
  57. package/esm2022/browser/scroll.service.mjs +0 -85
  58. package/esm2022/browser/style.mjs +0 -38
  59. package/esm2022/config/abc/cell.type.mjs +0 -2
  60. package/esm2022/config/abc/date-picker.type.mjs +0 -2
  61. package/esm2022/config/abc/error-collect.type.mjs +0 -2
  62. package/esm2022/config/abc/exception.type.mjs +0 -2
  63. package/esm2022/config/abc/image.type.mjs +0 -2
  64. package/esm2022/config/abc/index.mjs +0 -18
  65. package/esm2022/config/abc/loading.type.mjs +0 -2
  66. package/esm2022/config/abc/lodop.type.mjs +0 -2
  67. package/esm2022/config/abc/media.type.mjs +0 -2
  68. package/esm2022/config/abc/onboarding.type.mjs +0 -2
  69. package/esm2022/config/abc/page-header.type.mjs +0 -2
  70. package/esm2022/config/abc/pdf.type.mjs +0 -2
  71. package/esm2022/config/abc/se.type.mjs +0 -2
  72. package/esm2022/config/abc/sg.type.mjs +0 -2
  73. package/esm2022/config/abc/st.type.mjs +0 -2
  74. package/esm2022/config/abc/sv.type.mjs +0 -3
  75. package/esm2022/config/abc/xlsx.type.mjs +0 -2
  76. package/esm2022/config/abc/zip.type.mjs +0 -2
  77. package/esm2022/config/acl/acl.type.mjs +0 -2
  78. package/esm2022/config/auth/auth.type.mjs +0 -2
  79. package/esm2022/config/bis/bis.type.mjs +0 -2
  80. package/esm2022/config/cache/cache.type.mjs +0 -2
  81. package/esm2022/config/chart/chart.type.mjs +0 -2
  82. package/esm2022/config/config.mjs +0 -5
  83. package/esm2022/config/config.service.mjs +0 -38
  84. package/esm2022/config/config.types.mjs +0 -12
  85. package/esm2022/config/index.mjs +0 -15
  86. package/esm2022/config/mock/mock.type.mjs +0 -2
  87. package/esm2022/config/sf/sf.type.mjs +0 -2
  88. package/esm2022/config/socket/socket.type.mjs +0 -2
  89. package/esm2022/config/theme/http.type.mjs +0 -2
  90. package/esm2022/config/theme/i18n.type.mjs +0 -2
  91. package/esm2022/config/theme/index.mjs +0 -5
  92. package/esm2022/config/theme/pipe.type.mjs +0 -2
  93. package/esm2022/config/theme/responsive.type.mjs +0 -2
  94. package/esm2022/config/util/array.type.mjs +0 -2
  95. package/esm2022/config/util/currency.type.mjs +0 -2
  96. package/esm2022/date-time/date-time.mjs +0 -5
  97. package/esm2022/date-time/index.mjs +0 -3
  98. package/esm2022/date-time/picker.mjs +0 -116
  99. package/esm2022/date-time/time.mjs +0 -103
  100. package/esm2022/decorator/convert.mjs +0 -66
  101. package/esm2022/decorator/decorator.mjs +0 -5
  102. package/esm2022/decorator/index.mjs +0 -3
  103. package/esm2022/decorator/zone-outside.mjs +0 -57
  104. package/esm2022/form/form.mjs +0 -5
  105. package/esm2022/form/index.mjs +0 -3
  106. package/esm2022/form/match-control.mjs +0 -30
  107. package/esm2022/form/validators.mjs +0 -81
  108. package/esm2022/format/currency.service.mjs +0 -233
  109. package/esm2022/format/currency.types.mjs +0 -8
  110. package/esm2022/format/format.mjs +0 -5
  111. package/esm2022/format/index.mjs +0 -5
  112. package/esm2022/format/string.mjs +0 -85
  113. package/esm2022/format/validate.mjs +0 -94
  114. package/esm2022/index.mjs +0 -14
  115. package/esm2022/math/in-range.mjs +0 -25
  116. package/esm2022/math/index.mjs +0 -3
  117. package/esm2022/math/math.mjs +0 -5
  118. package/esm2022/math/round.mjs +0 -53
  119. package/esm2022/mcache/index.mjs +0 -2
  120. package/esm2022/mcache/localStorageUtils.mjs +0 -60
  121. package/esm2022/mcache/mcache.mjs +0 -5
  122. package/esm2022/mtypes/authority.type.mjs +0 -2
  123. package/esm2022/mtypes/header-menu.type.mjs +0 -2
  124. package/esm2022/mtypes/index.mjs +0 -10
  125. package/esm2022/mtypes/menu.type.mjs +0 -2
  126. package/esm2022/mtypes/mtypes.mjs +0 -5
  127. package/esm2022/mtypes/nav.types.mjs +0 -9
  128. package/esm2022/mtypes/page.mjs +0 -42
  129. package/esm2022/mtypes/project-info.types.mjs +0 -2
  130. package/esm2022/mtypes/response.mjs +0 -2
  131. package/esm2022/mtypes/role.type.mjs +0 -2
  132. package/esm2022/mtypes/user.types.mjs +0 -2
  133. package/esm2022/other/assert.mjs +0 -67
  134. package/esm2022/other/deep.mjs +0 -78
  135. package/esm2022/other/favicon.mjs +0 -29
  136. package/esm2022/other/index.mjs +0 -8
  137. package/esm2022/other/lazy.service.mjs +0 -129
  138. package/esm2022/other/logger.mjs +0 -33
  139. package/esm2022/other/other.mjs +0 -5
  140. package/esm2022/other/path-to-regexp.service.mjs +0 -239
  141. package/esm2022/other/resize.mjs +0 -4
  142. package/esm2022/pipes/currency/cny.pipe.mjs +0 -23
  143. package/esm2022/pipes/currency/index.mjs +0 -5
  144. package/esm2022/pipes/currency/mega.pipe.mjs +0 -25
  145. package/esm2022/pipes/currency/module.mjs +0 -19
  146. package/esm2022/pipes/currency/pipe-currency.mjs +0 -5
  147. package/esm2022/pipes/currency/price.pipe.mjs +0 -27
  148. package/esm2022/pipes/filter/filter.pipe.mjs +0 -20
  149. package/esm2022/pipes/filter/index.mjs +0 -3
  150. package/esm2022/pipes/filter/module.mjs +0 -17
  151. package/esm2022/pipes/filter/pipe-filter.mjs +0 -5
  152. package/esm2022/pipes/format/index.mjs +0 -3
  153. package/esm2022/pipes/format/mask.pipe.mjs +0 -34
  154. package/esm2022/pipes/format/module.mjs +0 -17
  155. package/esm2022/pipes/format/pipe-format.mjs +0 -5
  156. package/esm2022/pipes/index.mjs +0 -4
  157. package/esm2022/pipes/pipes.mjs +0 -5
  158. package/esm2022/token/index.mjs +0 -3
  159. package/esm2022/token/page-visibility.mjs +0 -15
  160. package/esm2022/token/token.mjs +0 -5
  161. package/esm2022/token/window.mjs +0 -17
  162. package/esm2022/yelon-util.mjs +0 -5
@@ -1,129 +0,0 @@
1
- import { DOCUMENT } from '@angular/common';
2
- import { Injectable, inject } from '@angular/core';
3
- import { BehaviorSubject, filter, share } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * `LazyService` delay loading JS or CSS files.
7
- *
8
- * 延迟加载资源(js 或 css)服务
9
- */
10
- export class LazyService {
11
- constructor() {
12
- this.doc = inject(DOCUMENT);
13
- this.list = {};
14
- this.cached = {};
15
- this._notify = new BehaviorSubject([]);
16
- }
17
- get change() {
18
- return this._notify.asObservable().pipe(share(), filter(ls => ls.length !== 0));
19
- }
20
- clear() {
21
- this.list = {};
22
- this.cached = {};
23
- }
24
- attachAttributes(el, attributes) {
25
- if (attributes == null)
26
- return;
27
- Object.entries(attributes).forEach(([key, value]) => {
28
- el.setAttribute(key, value);
29
- });
30
- }
31
- /**
32
- * Load script or style files
33
- */
34
- load(paths) {
35
- if (!Array.isArray(paths)) {
36
- paths = [paths];
37
- }
38
- const promises = [];
39
- paths
40
- .map(v => (typeof v !== 'object' ? { path: v } : v))
41
- .forEach(item => {
42
- if (item.path.endsWith('.js')) {
43
- promises.push(this.loadScript(item.path, item.options));
44
- }
45
- else {
46
- promises.push(this.loadStyle(item.path, item.options));
47
- }
48
- });
49
- return Promise.all(promises).then(res => {
50
- this._notify.next(res);
51
- return Promise.resolve(res);
52
- });
53
- }
54
- loadScript(path, innerContent, attributes) {
55
- const options = typeof innerContent === 'object'
56
- ? innerContent
57
- : {
58
- innerContent,
59
- attributes
60
- };
61
- return new Promise(resolve => {
62
- if (this.list[path] === true) {
63
- resolve({ ...this.cached[path], status: 'loading' });
64
- return;
65
- }
66
- this.list[path] = true;
67
- const onSuccess = (item) => {
68
- this.cached[path] = item;
69
- resolve(item);
70
- this._notify.next([item]);
71
- };
72
- const node = this.doc.createElement('script');
73
- node.type = 'text/javascript';
74
- node.src = path;
75
- this.attachAttributes(node, options.attributes);
76
- if (options.innerContent) {
77
- node.innerHTML = options.innerContent;
78
- }
79
- node.onload = () => onSuccess({
80
- path,
81
- status: 'ok'
82
- });
83
- node.onerror = error => onSuccess({
84
- path,
85
- status: 'error',
86
- error
87
- });
88
- this.doc.getElementsByTagName('head')[0].appendChild(node);
89
- });
90
- }
91
- loadStyle(path, rel, innerContent, attributes) {
92
- const options = typeof rel === 'object'
93
- ? rel
94
- : {
95
- rel,
96
- innerContent,
97
- attributes
98
- };
99
- return new Promise(resolve => {
100
- if (this.list[path] === true) {
101
- resolve(this.cached[path]);
102
- return;
103
- }
104
- this.list[path] = true;
105
- const node = this.doc.createElement('link');
106
- node.rel = options.rel ?? 'stylesheet';
107
- node.type = 'text/css';
108
- node.href = path;
109
- this.attachAttributes(node, options.attributes);
110
- if (options.innerContent) {
111
- node.innerHTML = options.innerContent;
112
- }
113
- this.doc.getElementsByTagName('head')[0].appendChild(node);
114
- const item = {
115
- path,
116
- status: 'ok'
117
- };
118
- this.cached[path] = item;
119
- resolve(item);
120
- });
121
- }
122
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: LazyService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
123
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: LazyService, providedIn: 'root' }); }
124
- }
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: LazyService, decorators: [{
126
- type: Injectable,
127
- args: [{ providedIn: 'root' }]
128
- }]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ICAgICBjb25zdCBpdGVtOiBMYXp5UmVzdWx0ID0ge1xuICAgICAgICBwYXRoLFxuICAgICAgICBzdGF0dXM6ICdvaydcbiAgICAgIH07XG4gICAgICB0aGlzLmNhY2hlZFtwYXRoXSA9IGl0ZW07XG4gICAgICByZXNvbHZlKGl0ZW0pO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
@@ -1,33 +0,0 @@
1
- const record = {};
2
- export const PREFIX = '[@YELON]:';
3
- function notRecorded(...args) {
4
- const asRecord = args.reduce((acc, c) => acc + c.toString(), '');
5
- if (record[asRecord]) {
6
- return false;
7
- }
8
- else {
9
- record[asRecord] = true;
10
- return true;
11
- }
12
- }
13
- function consoleCommonBehavior(consoleFunc, ...args) {
14
- if ((typeof ngDevMode === 'undefined' || ngDevMode) && notRecorded(...args)) {
15
- consoleFunc(...args);
16
- }
17
- }
18
- // Warning should only be printed in dev mode and only once.
19
- export const warn = (...args) => consoleCommonBehavior((...arg) => console.warn(PREFIX, ...arg), ...args);
20
- export const warnDeprecation = (...args) => {
21
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
22
- return () => { };
23
- }
24
- const stack = new Error().stack;
25
- return consoleCommonBehavior((...arg) => console.warn(PREFIX, 'deprecated:', ...arg, stack), ...args);
26
- };
27
- // Log should only be printed in dev mode.
28
- export const log = (...args) => {
29
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
30
- console.log(PREFIX, ...args);
31
- }
32
- };
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9vdGhlci9sb2dnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSUEsTUFBTSxNQUFNLEdBQTRCLEVBQUUsQ0FBQztBQUUzQyxNQUFNLENBQUMsTUFBTSxNQUFNLEdBQUcsV0FBVyxDQUF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ud2FybihQUkVGSVgsICdkZXByZWNhdGVkOicsIC4uLmFyZywgc3RhY2spLCAuLi5hcmdzKTtcbn07XG5cbi8vIExvZyBzaG91bGQgb25seSBiZSBwcmludGVkIGluIGRldiBtb2RlLlxuZXhwb3J0IGNvbnN0IGxvZyA9ICguLi5hcmdzOiBOelNhZmVBbnlbXSk6IHZvaWQgPT4ge1xuICBpZiAodHlwZW9mIG5nRGV2TW9kZSA9PT0gJ3VuZGVmaW5lZCcgfHwgbmdEZXZNb2RlKSB7XG4gICAgY29uc29sZS5sb2coUFJFRklYLCAuLi5hcmdzKTtcbiAgfVxufTtcbiJdfQ==
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3RoZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL290aGVyL290aGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
@@ -1,239 +0,0 @@
1
- /* eslint-disable @typescript-eslint/explicit-function-return-type */
2
- import { Injectable } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export class PathToRegexpService {
5
- constructor() {
6
- this.DEFAULT_DELIMITER = '/';
7
- this.PATH_REGEXP = new RegExp(['(\\\\.)', '(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?'].join('|'), 'g');
8
- }
9
- parse(str, options) {
10
- const tokens = [];
11
- let key = 0;
12
- let index = 0;
13
- let path = '';
14
- const defaultDelimiter = (options && options.delimiter) || this.DEFAULT_DELIMITER;
15
- const whitelist = (options && options.whitelist) || undefined;
16
- let pathEscaped = false;
17
- let res;
18
- while ((res = this.PATH_REGEXP.exec(str)) !== null) {
19
- const m = res[0];
20
- const escaped = res[1];
21
- const offset = res.index;
22
- path += str.slice(index, offset);
23
- index = offset + m.length;
24
- // Ignore already escaped sequences.
25
- if (escaped) {
26
- path += escaped[1];
27
- pathEscaped = true;
28
- continue;
29
- }
30
- let prev = '';
31
- const name = res[2];
32
- const capture = res[3];
33
- const group = res[4];
34
- const modifier = res[5];
35
- if (!pathEscaped && path.length) {
36
- const k = path.length - 1;
37
- const c = path[k];
38
- const matches = whitelist ? whitelist.indexOf(c) > -1 : true;
39
- if (matches) {
40
- prev = c;
41
- path = path.slice(0, k);
42
- }
43
- }
44
- // Push the current path onto the tokens.
45
- if (path) {
46
- tokens.push(path);
47
- path = '';
48
- pathEscaped = false;
49
- }
50
- const repeat = modifier === '+' || modifier === '*';
51
- const optional = modifier === '?' || modifier === '*';
52
- const pattern = capture || group;
53
- const delimiter = prev || defaultDelimiter;
54
- tokens.push({
55
- name: name || key++,
56
- prefix: prev,
57
- delimiter: delimiter,
58
- optional: optional,
59
- repeat: repeat,
60
- pattern: pattern
61
- ? this.escapeGroup(pattern)
62
- : `[^${this.escapeString(delimiter === defaultDelimiter ? delimiter : delimiter + defaultDelimiter)}]+?`
63
- });
64
- }
65
- // Push NzSafeAny remaining characters.
66
- if (path || index < str.length) {
67
- tokens.push(path + str.substr(index));
68
- }
69
- return tokens;
70
- }
71
- compile(str, options) {
72
- return this.tokensToFunction(this.parse(str, options), options);
73
- }
74
- tokensToFunction(tokens, options) {
75
- const matches = new Array(tokens.length);
76
- for (let i = 0; i < tokens.length; i++) {
77
- if (typeof tokens[i] === 'object') {
78
- matches[i] = new RegExp(`^(?:${tokens[i].pattern})$`, this.flags(options));
79
- }
80
- }
81
- return function (data, options) {
82
- let path = '';
83
- const encode = (options && options.encode) || encodeURIComponent;
84
- const validate = options ? options.validate !== false : true;
85
- for (let i = 0; i < tokens.length; i++) {
86
- const token = tokens[i];
87
- if (typeof token === 'string') {
88
- path += token;
89
- continue;
90
- }
91
- const value = data ? data[token.name] : undefined;
92
- let segment;
93
- if (Array.isArray(value)) {
94
- if (!token.repeat) {
95
- throw new TypeError(`Expected "${token.name}" to not repeat, but got array`);
96
- }
97
- if (value.length === 0) {
98
- if (token.optional) {
99
- continue;
100
- }
101
- throw new TypeError(`Expected "${token.name}" to not be empty`);
102
- }
103
- for (let j = 0; j < value.length; j++) {
104
- segment = encode(value[j], token);
105
- if (validate && !matches[i].test(segment)) {
106
- throw new TypeError(`Expected all "${token.name}" to match "${token.pattern}"`);
107
- }
108
- path += (j === 0 ? token.prefix : token.delimiter) + segment;
109
- }
110
- continue;
111
- }
112
- if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
113
- segment = encode(String(value), token);
114
- if (validate && !matches[i].test(segment)) {
115
- throw new TypeError(`Expected "${token.name}" to match "${token.pattern}", but got "${segment}"`);
116
- }
117
- path += token.prefix + segment;
118
- continue;
119
- }
120
- if (token.optional) {
121
- continue;
122
- }
123
- throw new TypeError(`Expected "${token.name}" to be ${token.repeat ? 'an array' : 'a string'}`);
124
- }
125
- return path;
126
- };
127
- }
128
- escapeString(str) {
129
- return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, '\\$1');
130
- }
131
- escapeGroup(group) {
132
- return group.replace(/([=!:$/()])/g, '\\$1');
133
- }
134
- flags(options) {
135
- return options && options.sensitive ? '' : 'i';
136
- }
137
- regexpToRegexp(path, keys) {
138
- if (!keys) {
139
- return path;
140
- }
141
- const groups = path.source.match(/\((?!\?)/g);
142
- if (groups) {
143
- for (let i = 0; i < groups.length; i++) {
144
- keys.push({
145
- name: i,
146
- prefix: null,
147
- delimiter: null,
148
- optional: false,
149
- repeat: false,
150
- pattern: null
151
- });
152
- }
153
- }
154
- return path;
155
- }
156
- arrayToRegexp(path, keys, options) {
157
- const parts = [];
158
- for (let i = 0; i < path.length; i++) {
159
- parts.push(this.pathToRegexp(path[i], keys, options).source);
160
- }
161
- return new RegExp(`(?:${parts.join('|')})`, this.flags(options));
162
- }
163
- stringToRegexp(path, keys, options) {
164
- return this.tokensToRegExp(this.parse(path, options), keys, options);
165
- }
166
- tokensToRegExp(tokens, keys, options) {
167
- options = options || {};
168
- const strict = options.strict;
169
- const start = options.start !== false;
170
- const end = options.end !== false;
171
- const delimiter = options.delimiter || this.DEFAULT_DELIMITER;
172
- const endsWith = []
173
- .concat(options.endsWith || [])
174
- .map(this.escapeString)
175
- .concat('$')
176
- .join('|');
177
- let route = start ? '^' : '';
178
- for (let i = 0; i < tokens.length; i++) {
179
- const token = tokens[i];
180
- if (typeof token === 'string') {
181
- route += this.escapeString(token);
182
- }
183
- else {
184
- const capture = token.repeat
185
- ? `(?:${token.pattern})(?:${this.escapeString(token.delimiter)}(?:${token.pattern}))*`
186
- : token.pattern;
187
- if (keys) {
188
- keys.push(token);
189
- }
190
- if (token.optional) {
191
- if (!token.prefix) {
192
- route += `(${capture})?`;
193
- }
194
- else {
195
- route += `(?:${this.escapeString(token.prefix)}(${capture}))?`;
196
- }
197
- }
198
- else {
199
- route += `${this.escapeString(token.prefix)}(${capture})`;
200
- }
201
- }
202
- }
203
- if (end) {
204
- if (!strict) {
205
- route += `(?:${this.escapeString(delimiter)})?`;
206
- }
207
- route += endsWith === '$' ? '$' : `(?=${endsWith})`;
208
- }
209
- else {
210
- const endToken = tokens[tokens.length - 1];
211
- const isEndDelimited = typeof endToken === 'string' ? endToken[endToken.length - 1] === delimiter : endToken === undefined;
212
- if (!strict) {
213
- route += `(?:${this.escapeString(delimiter)}(?=${endsWith}))?`;
214
- }
215
- if (!isEndDelimited) {
216
- route += `(?=${this.escapeString(delimiter)}|${endsWith})`;
217
- }
218
- }
219
- return new RegExp(route, this.flags(options));
220
- }
221
- pathToRegexp(path, keys, options) {
222
- if (path instanceof RegExp) {
223
- return this.regexpToRegexp(path, keys);
224
- }
225
- if (Array.isArray(path)) {
226
- return this.arrayToRegexp(/** @type {!Array} */ path, keys, options);
227
- }
228
- return this.stringToRegexp(/** @type {string} */ path, keys, options);
229
- }
230
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: PathToRegexpService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
231
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: PathToRegexpService, providedIn: 'root' }); }
232
- }
233
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: PathToRegexpService, decorators: [{
234
- type: Injectable,
235
- args: [{
236
- providedIn: 'root'
237
- }]
238
- }], ctorParameters: () => [] });
239
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0aC10by1yZWdleHAuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvb3RoZXIvcGF0aC10by1yZWdleHAuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxxRUFBcUU7QUFDckUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFPM0MsTUFBTSxPQUFPLG1CQUFtQjtJQUM5QjtRQUNBLHNCQUFpQixHQUFHLEdBQUcsQ0FBQztRQUV4QixnQkFBVyxHQUFHLElBQUksTUFBTSxDQUN0QixDQUFDLFNBQVMsRUFBRSxxRkFBcUYsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsRUFDNUcsR0FBRyxDQUNKLENBQUM7SUFOYSxDQUFDO0lBUWhCLEtBQUssQ0FBQyxHQUFjLEVBQUUsT0FBa0I7UUFDdEMsTUFBTSxNQUFNL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GMgPSBwYXRoW2tdO1xuICAgICAgICBjb25zdCBtYXRjaGVzID0gd2hpdGVsaXN0ID8gd2hpdGVsaXN0LmluZGV4T2YoYykgPiAtMSA6IHRydWU7XG5cbiAgICAgICAgaWYgKG1hdGNoZXMpIHtcbiAgICAgICAgICBwcmV2ID0gYztcbiAgICAgICAgICBwYXRoID0gcGF0aC5zbGljZSgwLCBrKTtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAvLyBQdXNoIHRoZSBjdXJyZW50IHBhdGggb250byB0aGUgdG9rZW5zLlxuICAgICAgaWYgKHBhdGgpIHtcbiAgICAgICAgdG9rZW5zLnB1c2gocGF0aCk7XG4gICAgICAgIHBhdGggPSAnJztcbiAgICAgICAgcGF0aEVzY2FwZWQgPSBmYWxzZTtcbiAgICAgIH1cblxuICAgICAgY29uc3QgcmVwZWF0ID0gbW9kaWZpZXIgPT09ICcrJyB8fCBtb2RpZmllciA9PT0gJyonO1xuICAgICAgY29uc3Qgb3B0aW9uYWwgPSBtb2RpZmllciA9PT0gJz8nIHx8IG1vZGlmaWVyID09PSAnKic7XG4gICAgICBjb25zdCBwYXR0ZXJuID0gY2FwdHVyZSB8fCBncm91cDtcbiAgICAgIGNvbnN0IGRlbGltaXRlciA9IHByZXYgfHwgZGVmYXVsdERlbGltaXRlcjtcblxuICAgICAgdG9rZW5zLnB1c2goe1xuICAgICAgICBuYW1lOiBuYW1lIHx8IGtleSsrLFxuICAgICAgICBwcmVmaXg6IHByZXYsXG4gICAgICAgIGRlbGltaXRlcjogZGVsaW1pdGVyLFxuICAgICAgICBvcHRpb25hbDogb3B0aW9uYWwsXG4gICAgICAgIHJlcGVhdDogcmVwZWF0LFxuICAgICAgICBwYXR0ZXJuOiBwYXR0ZXJuXG4gICAgICAgICAgPyB0aGlzLmVzY2FwZUdyb3VwKHBhdHRlcm4pXG4gICAgICAgICAgOiBgW14ke3RoaXMuZXNjYXBlU3RyaW5nKGRlbGltaXRlciA9PT0gZGVmYXVsdERl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xuICAgICAgY29uc3QgdmFsaWRhdGUgPSBvcHRpb25zID8gb3B0aW9ucy52YWxpZGF0ZSAhPT0gZmFsc2UgOiB0cnVlO1xuXG4gICAgICBmb3IgKGxldCBpID0gMDsgaSA8IHRva2Vucy5sZW5ndGg7IGkrKykge1xuICAgICAgICBjb25zdCB0b2tlbiA9IHRva2Vuc1tpXTtcblxuICAgICAgICBpZiAodHlwZW9mIHRva2VuID09PSAnc3RyaW5nJykge1xuICAgICAgICAgIHBhdGggKz0gdG9rZW47XG4gICAgICAgICAgY29udGludWU7XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCB2YWx1ZSA9IGRhdGEgPyBkYXRhW3Rva2VuLm5hbWVdIDogdW5kZWZpbmVkO1xuICAgICAgICBsZXQgc2VnbWVudDtcblxuICAgICAgICBpZiAoQXJyYXkuaXNBcnJheSh2YWx1ZSkpIHtcbiAgICAgICAgICBpZiAoIXRva2VuLnJlcGVhdCkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcihgRXhwZWN0ZWQgXCIke3Rva2VuLm5hbWV9XCIgdG8gbm90IHJlcGVhdCwgYnV0IGdvdCBhcnJheWApO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGlmICh2YWx1ZS5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgIGlmICh0b2tlbi5vcHRpb25hbCkge1xuICAgICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcihgRXhwZWN0ZWQgXCIke3Rva2VuLm5hbWV9XCIgdG8gbm90IGJlIGVtcHR5YCk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgZm9yIChsZXQgaiA9IDA7IGogPCB2YWx1ZS5sZW5ndGg7IGorKykge1xuICAgICAgICAgICAgc2VnbWVudCA9IGVuY29kZSh2YWx1ZVtqXSwgdG9rZW4pO1xuXG4gICAgICAgICAgICBpZiAodmFsaWRhdGUgJ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XRoKSkge1xuICAgICAgcmV0dXJuIHRoaXMuYXJyYXlUb1JlZ2V4cCgvKiogQHR5cGUgeyFBcnJheX0gKi8gcGF0aCwga2V5cywgb3B0aW9ucyk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXMuc3RyaW5nVG9SZWdleHAoLyoqIEB0eXBlIHtzdHJpbmd9ICovIHBhdGgsIGtleXMsIG9wdGlvbnMpO1xuICB9XG59XG4iXX0=
@@ -1,4 +0,0 @@
1
- export const resizeWindow = () => {
2
- window.dispatchEvent(new Event('resize'));
3
- };
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzaXplLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9vdGhlci9yZXNpemUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sWUFBWSxHQUFHLEdBQVMsRUFBRTtJQUNyQyxNQUFNLENBQUMsYUFBYSxDQUFDLElBQUksS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUM7QUFDNUMsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IHJlc2l6ZVdpbmRvdyA9ICgpOiB2b2lkID0+IHtcbiAgd2luZG93LmRpc3BhdGNoRXZlbnQobmV3IEV2ZW50KCdyZXNpemUnKSk7XG59O1xuIl19
@@ -1,23 +0,0 @@
1
- import { Pipe, inject } from '@angular/core';
2
- import { CurrencyService } from '@yelon/util/format';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Converted into RMB notation.
6
- *
7
- * 转化成人民币表示法
8
- */
9
- export class CurrencyCNYPipe {
10
- constructor() {
11
- this.srv = inject(CurrencyService);
12
- }
13
- transform(value, options) {
14
- return this.srv.cny(value, options);
15
- }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CurrencyCNYPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
17
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CurrencyCNYPipe, isStandalone: true, name: "cny" }); }
18
- }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CurrencyCNYPipe, decorators: [{
20
- type: Pipe,
21
- args: [{ name: 'cny', standalone: true }]
22
- }] });
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY255LnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL3BpcGVzL2N1cnJlbmN5L2NueS5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUU1RCxPQUFPLEVBQXNCLGVBQWUsRUFBRSxNQUFNLG9CQUFvQixDQUFDOztBQUV6RTs7OztHQUlHO0FBRUgsTUFBTSxPQUFPLGVBQWU7SUFENUI7UUFFbUIsUUFBRyxHQUFHLE1BQU0sQ0FBQyxlQUFlLENBQUMsQ0FBQztLQUtoRDtJQUhDLFNBQVMsQ0FBQyxLQUFzQixFQUFFLE9BQTRCO1FBQzVELE9BQU8sSUFBSSxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLE9BQU8sQ0FBQyxDQUFDO0lBQ3RDLENBQUM7K0dBTFUsZUFBZTs2R0FBZixlQUFlOzs0RkFBZixlQUFlO2tCQUQzQixJQUFJO21CQUFDLEVBQUUsSUFBSSxFQUFFLEtBQUssRUFBRSxVQUFVLEVBQUUsSUFBSSxFQUFFIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUGlwZSwgUGlwZVRyYW5zZm9ybSwgaW5qZWN0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmltcG9ydCB7IEN1cnJlbmN5Q05ZT3B0aW9ucywgQ3VycmVuY3lTZXJ2aWNlIH0gZnJvbSAnQHllbG9uL3V0aWwvZm9ybWF0JztcblxuLyoqXG4gKiBDb252ZXJ0ZWQgaW50byBSTUIgbm90YXRpb24uXG4gKlxuICog6L2s5YyW5oiQ5Lq65rCR5biB6KGo56S65rOVXG4gKi9cbkBQaXBlKHsgbmFtZTogJ2NueScsIHN0YW5kYWxvbmU6IHRydWUgfSlcbmV4cG9ydCBjbGFzcyBDdXJyZW5jeUNOWVBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgcHJpdmF0ZSByZWFkb25seSBzcnYgPSBpbmplY3QoQ3VycmVuY3lTZXJ2aWNlKTtcblxuICB0cmFuc2Zvcm0odmFsdWU6IG51bWJlciB8IHN0cmluZywgb3B0aW9ucz86IEN1cnJlbmN5Q05ZT3B0aW9ucyk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHRoaXMuc3J2LmNueSh2YWx1ZSwgb3B0aW9ucyk7XG4gIH1cbn1cbiJdfQ==
@@ -1,5 +0,0 @@
1
- export * from './mega.pipe';
2
- export * from './price.pipe';
3
- export * from './module';
4
- export * from './cny.pipe';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL3BpcGVzL2N1cnJlbmN5L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsWUFBWSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9tZWdhLnBpcGUnO1xuZXhwb3J0ICogZnJvbSAnLi9wcmljZS5waXBlJztcbmV4cG9ydCAqIGZyb20gJy4vbW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vY255LnBpcGUnO1xuIl19
@@ -1,25 +0,0 @@
1
- import { LOCALE_ID, Pipe, inject } from '@angular/core';
2
- import { CurrencyService } from '@yelon/util/format';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Large number format filter
6
- *
7
- * 大数据格式化
8
- */
9
- export class CurrencyMegaPipe {
10
- constructor() {
11
- this.srv = inject(CurrencyService);
12
- this.isCN = inject(LOCALE_ID).startsWith('zh');
13
- }
14
- transform(value, options) {
15
- const res = this.srv.mega(value, options);
16
- return res.value + (this.isCN ? res.unitI18n : res.unit);
17
- }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CurrencyMegaPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
19
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CurrencyMegaPipe, isStandalone: true, name: "mega" }); }
20
- }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CurrencyMegaPipe, decorators: [{
22
- type: Pipe,
23
- args: [{ name: 'mega', standalone: true }]
24
- }] });
25
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVnYS5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9waXBlcy9jdXJyZW5jeS9tZWdhLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxJQUFJLEVB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xuICpcbiAqIOWkp+aVsOaNruagvOW8j+WMllxuICovXG5AUGlwZSh7IG5hbWU6ICdtZWdhJywgc3RhbmRhbG9uZTogdHJ1ZSB9KVxuZXhwb3J0IGNsYXNzIEN1cnJlbmN5TWVnYVBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgcHJpdmF0ZSByZWFkb25seSBzcnYgPSBpbmplY3QoQ3VycmVuY3lTZXJ2aWNlKTtcbiAgcHJpdmF0ZSBpc0NOID0gaW5qZWN0KExPQ0FMRV9JRCkuc3RhcnRzV2l0aCgnemgnKTtcblxuICB0cmFuc2Zvcm0odmFsdWU6IG51bWJlciB8IHN0cmluZywgb3B0aW9ucz86IEN1cnJlbmN5TWVnYU9wdGlvbnMpOiBzdHJpbmcge1xuICAgIGNvbnN0IHJlcyA9IHRoaXMuc3J2Lm1lZ2EodmFsdWUsIG9wdGlvbnMpO1xuICAgIHJldHVybiByZXMudmFsdWUgKyAodGhpcy5pc0NOID8gcmVzLnVuaXRJMThuIDogcmVzLnVuaXQpO1xuICB9XG59XG4iXX0=
@@ -1,19 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CurrencyCNYPipe } from './cny.pipe';
3
- import { CurrencyMegaPipe } from './mega.pipe';
4
- import { CurrencyPricePipe } from './price.pipe';
5
- import * as i0 from "@angular/core";
6
- const PIPES = [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe];
7
- export class CurrencyPipeModule {
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
9
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CurrencyPipeModule, imports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe], exports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe] }); }
10
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CurrencyPipeModule }); }
11
- }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CurrencyPipeModule, decorators: [{
13
- type: NgModule,
14
- args: [{
15
- imports: PIPES,
16
- exports: PIPES
17
- }]
18
- }] });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9waXBlcy9jdXJyZW5jeS9tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQzdDLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUMvQyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxjQUFjLENBQUM7O0FBRWpELE1BQU0sS0FBSyxHQUFHLENBQUMsZ0JBQWdCLEVBQUUsaUJBQWlCLEVBQUUsZUFBZSxDQUFDLENBQUM7QUFNckUsTUFBTSxPQUFPLGtCQUFrQjsrR0FBbEIsa0JBQWtCO2dIQUFsQixrQkFBa0IsWUFOaEIsZ0JBQWdCLEVBQUUsaUJBQWlCLEVBQUUsZUFBZSxhQUFwRCxnQkFBZ0IsRUFBRSxpQkFBaUIsRUFBRSxlQUFlO2dIQU10RCxrQkFBa0I7OzRGQUFsQixrQkFBa0I7a0JBSjlCLFFBQVE7bUJBQUM7b0JBQ1IsT0FBTyxFQUFFLEtBQUs7b0JBQ2QsT0FBTyxFQUFFLEtBQUs7aUJBQ2YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBDdXJyZW5jeUNOWVBpcGUgfSBmcm9tICcuL2NueS5waXBlJztcbmltcG9ydCB7IEN1cnJlbmN5TWVnYVBpcGUgfSBmcm9tICcuL21lZ2EucGlwZSc7XG5pbXBvcnQgeyBDdXJyZW5jeVByaWNlUGlwZSB9IGZyb20gJy4vcHJpY2UucGlwZSc7XG5cbmNvbnN0IFBJUEVTID0gW0N1cnJlbmN5TWVnYVBpcGUsIEN1cnJlbmN5UHJpY2VQaXBlLCBDdXJyZW5jeUNOWVBpcGVdO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBQSVBFUyxcbiAgZXhwb3J0czogUElQRVNcbn0pXG5leHBvcnQgY2xhc3MgQ3VycmVuY3lQaXBlTW9kdWxlIHt9XG4iXX0=
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlwZS1jdXJyZW5jeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvcGlwZXMvY3VycmVuY3kvcGlwZS1jdXJyZW5jeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
@@ -1,27 +0,0 @@
1
- import { Pipe, inject } from '@angular/core';
2
- import { CurrencyService } from '@yelon/util/format';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Format a number with commas as thousands separators
6
- *
7
- * 格式化货币,用逗号将数字格式化为千位分隔符
8
- * ```ts
9
- * 10000 => `10,000`
10
- * 10000.567 => `10,000.57`
11
- * ```
12
- */
13
- export class CurrencyPricePipe {
14
- constructor() {
15
- this.srv = inject(CurrencyService);
16
- }
17
- transform(value, options) {
18
- return this.srv.format(value, options);
19
- }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CurrencyPricePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
21
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CurrencyPricePipe, isStandalone: true, name: "price" }); }
22
- }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CurrencyPricePipe, decorators: [{
24
- type: Pipe,
25
- args: [{ name: 'price', standalone: true }]
26
- }] });
27
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpY2UucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvcGlwZXMvY3VycmVuY3kvcHJpY2UucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFNUQsT0FBTyxFQUF5QixlQUFlLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQzs7QUFFNUU7Ozs7Ozs7O0dBUUc7QUFFSCxNQUFNLE9BQU8saUJBQWlCO0lBRDlCO1FBRW1CLFFBQUcsR0FBRyxNQUFNLENBQUMsZUFBZSxDQUFDLENBQUM7S0FLaEQ7SUFIQyxTQUFTLENBQUMsS0FBc0IsRUFBRSxPQUErQjtRQUMvRCxPQUFPLElBQUksQ0FBQy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Wx1ZSwgb3B0aW9ucyk7XG4gIH1cbn1cbiJdfQ==
@@ -1,20 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Filter array
5
- *
6
- * 过滤数组
7
- */
8
- // eslint-disable-next-line @angular-eslint/no-pipe-impure
9
- export class FilterPipe {
10
- transform(array, matcher, ...args) {
11
- return array.filter(i => matcher(i, ...args));
12
- }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
14
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: FilterPipe, isStandalone: true, name: "filter", pure: false }); }
15
- }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: FilterPipe, decorators: [{
17
- type: Pipe,
18
- args: [{ name: 'filter', standalone: true, pure: false }]
19
- }] });
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVyLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL3BpcGVzL2ZpbHRlci9maWx0ZXIucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFJcEQ7Ozs7R0FJRztBQUNILDBEQUEwRDtBQUUxRCxNQUFNLE9BQU8sVUFBVTtJQUNyQixTQUFTLENBQUksS0FBbUIsRUFBRSxPQUFtRCxFQUFFLEdBQUcsSUFBaUI7UUFDekcsT0FBTyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsT0FBTyxDQUFDLENBQUMsRUFBRSxHQUFHLEl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