@yelon/util 17.2.3 → 17.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -1
- package/config/auth/auth.type.d.ts +1 -1
- package/esm2022/array/array.service.mjs +3 -3
- package/esm2022/browser/cookie.service.mjs +3 -3
- package/esm2022/browser/scroll.service.mjs +3 -3
- package/esm2022/config/auth/auth.type.mjs +1 -1
- package/esm2022/config/config.service.mjs +3 -3
- package/esm2022/format/currency.service.mjs +3 -3
- package/esm2022/mtypes/nav.types.mjs +4 -2
- package/esm2022/mtypes/project-info.types.mjs +1 -1
- package/esm2022/other/lazy.service.mjs +3 -3
- package/esm2022/other/path-to-regexp.service.mjs +3 -3
- package/esm2022/pipes/currency/cny.pipe.mjs +3 -3
- package/esm2022/pipes/currency/mega.pipe.mjs +3 -3
- package/esm2022/pipes/currency/module.mjs +4 -4
- package/esm2022/pipes/currency/price.pipe.mjs +3 -3
- package/esm2022/pipes/filter/filter.pipe.mjs +3 -3
- package/esm2022/pipes/filter/module.mjs +4 -4
- package/esm2022/pipes/format/mask.pipe.mjs +3 -3
- package/esm2022/pipes/format/module.mjs +4 -4
- package/fesm2022/array.mjs +3 -3
- package/fesm2022/browser.mjs +6 -6
- package/fesm2022/config.mjs +3 -3
- package/fesm2022/format.mjs +3 -3
- package/fesm2022/mtypes.mjs +3 -1
- package/fesm2022/mtypes.mjs.map +1 -1
- package/fesm2022/other.mjs +6 -6
- package/fesm2022/pipe-currency.mjs +13 -13
- package/fesm2022/pipe-filter.mjs +7 -7
- package/fesm2022/pipe-format.mjs +7 -7
- package/mtypes/nav.types.d.ts +5 -3
- package/mtypes/project-info.types.d.ts +1 -0
- package/package.json +13 -13
package/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
# @yelon/util [![
|
1
|
+
# @yelon/util [![CI](https://github.com/hbyunzai/yelon/actions/workflows/ci.yml/badge.svg)](https://github.com/hbyunzai/yelon/actions/workflows/ci.yml) [![Codecov](https://img.shields.io/codecov/c/github/hbyunzai/yelon.svg?style=flat-square)](https://codecov.io/gh/hbyunzai/yelon) [![NPM version](https://img.shields.io/npm/v/@yelon/util.svg?style=flat-square)](https://www.npmjs.com/package/@yelon/util)
|
2
|
+
|
2
3
|
|
3
4
|
Universal toolset of ng-yunzai.
|
4
5
|
|
@@ -268,10 +268,10 @@ export class ArrayService {
|
|
268
268
|
}, new Map())
|
269
269
|
.values());
|
270
270
|
}
|
271
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
272
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
271
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ArrayService, deps: [{ token: i1.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
272
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ArrayService, providedIn: 'root' }); }
|
273
273
|
}
|
274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ArrayService, decorators: [{
|
275
275
|
type: Injectable,
|
276
276
|
args: [{ providedIn: 'root' }]
|
277
277
|
}], ctorParameters: () => [{ type: i1.YunzaiConfigService }] });
|
@@ -90,10 +90,10 @@ export class CookieService {
|
|
90
90
|
removeAll() {
|
91
91
|
this.doc.cookie = '';
|
92
92
|
}
|
93
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
94
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
93
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CookieService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
94
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CookieService, providedIn: 'root' }); }
|
95
95
|
}
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CookieService, decorators: [{
|
97
97
|
type: Injectable,
|
98
98
|
args: [{ providedIn: 'root' }]
|
99
99
|
}] });
|
@@ -75,10 +75,10 @@ export class ScrollService {
|
|
75
75
|
}
|
76
76
|
this.scrollToElement(this._getDoc().body, topOffset);
|
77
77
|
}
|
78
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
79
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ScrollService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
79
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ScrollService, providedIn: 'root' }); }
|
80
80
|
}
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ScrollService, decorators: [{
|
82
82
|
type: Injectable,
|
83
83
|
args: [{ providedIn: 'root' }]
|
84
84
|
}] });
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvYXV0aC9hdXRo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xuICB0b2tlbl9zZW5kX3BsYWNlPzogJ2hlYWRlcicgfCAnYm9keScgfCAndXJsJztcbiAgLyoqXG4gICAqIOeZu+W9lemhtei3r+eUseWcsOWdgO+8jOm7mOiupO+8mmAvbG9naW5gXG4gICAqL1xuICBsb2dpbl91cmw/OiBzdHJpbmc7XG4gIC8qKlxuICAgKiDlv73nlaVUT0tFTueahFVSTOWcsOWdgOWIl+ihqO+8jOm7mOiupOWAvOS4uu+
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvYXV0aC9hdXRoLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgWXVuemFpQXV0aENvbmZpZyB7XG4gIC8qKlxuICAgKiDlrZjlgqhLRVnlgLzvvIzpu5jorqTvvJpgX3Rva2VuYFxuICAgKi9cbiAgc3RvcmVfa2V5Pzogc3RyaW5nO1xuICAvKipcbiAgICog5peg5pWI5pe26Lez6L2s6Iez55m75b2V6aG177yM6buY6K6k77yaYHRydWVg77yM5YyF5ous77yaXG4gICAqIC0g5peg5pWIdG9rZW7lgLxcbiAgICogLSB0b2tlbuW3sui/h+acn++8iOmZkEpXVO+8iVxuICAgKi9cbiAgdG9rZW5faW52YWxpZF9yZWRpcmVjdD86IGJvb2xlYW47XG4gIC8qKlxuICAgKiB0b2tlbui/h+acn+aXtumXtOWBj+enu+WAvO+8jOm7mOiupO+8mmAxMGAg56eS77yI5Y2V5L2N77ya56eS77yJXG4gICAqL1xuICB0b2tlbl9leHBfb2Zmc2V0PzogbnVtYmVyO1xuICAvKipcbiAgICog5Y+R6YCBdG9rZW7lj4LmlbDlkI3vvIzpu5jorqTvvJrCt1xuICA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8qKlxuICAgKiDov4fmnJ/orqHnrpflgY/np7vlgLzvvIjljZXkvY3vvJptc++8ie+8jOm7mOiupO+8mmA2MDAwYFxuICAgKiAtICoq5bu66K6uKirmoLnmja4gYHJlZnJlc2hUaW1lYCDlgI3mlbDmnaXorr7nva5cbiAgICovXG4gIHJlZnJlc2hPZmZzZXQ/OiBudW1iZXI7XG59XG4iXX0=
|
@@ -23,10 +23,10 @@ export class YunzaiConfigService {
|
|
23
23
|
set(componentName, value) {
|
24
24
|
this.config[componentName] = { ...this.config[componentName], ...value };
|
25
25
|
}
|
26
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
27
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: YunzaiConfigService, deps: [{ token: YUNZAI_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
27
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: YunzaiConfigService, providedIn: 'root' }); }
|
28
28
|
}
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: YunzaiConfigService, decorators: [{
|
30
30
|
type: Injectable,
|
31
31
|
args: [{ providedIn: 'root' }]
|
32
32
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -223,10 +223,10 @@ export class CurrencyService {
|
|
223
223
|
: integerRes + (decimalRes === '' ? '' : `点${decimalRes}`));
|
224
224
|
return ret;
|
225
225
|
}
|
226
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
227
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
226
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyService, deps: [{ token: i1.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
227
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyService, providedIn: 'root' }); }
|
228
228
|
}
|
229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyService, decorators: [{
|
230
230
|
type: Injectable,
|
231
231
|
args: [{ providedIn: 'root' }]
|
232
232
|
}], ctorParameters: () => [{ type: i1.YunzaiConfigService }] });
|
@@ -2,6 +2,8 @@ export var NavType;
|
|
2
2
|
(function (NavType) {
|
3
3
|
NavType["APPLICATION"] = "application";
|
4
4
|
NavType["GROUP"] = "group";
|
5
|
-
NavType["TILE"] = "
|
5
|
+
NavType["TILE"] = "tiled";
|
6
|
+
NavType["BLANK"] = "blank";
|
7
|
+
NavType["TABS"] = "tabs"; // 选项卡
|
6
8
|
})(NavType || (NavType = {}));
|
7
|
-
//# sourceMappingURL=data:application/json;base64,
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2LnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9tdHlwZXMvbmF2LnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sQ0FBTixJQUFZLE9BTVg7QUFORCxXQUFZLE9BQU87SUFDakIsc0NBQTJCLENBQUE7SUFDM0IsMEJBQWUsQ0FBQTtJQUNmLHlCQUFjLENBQUE7SUFDZCwwQkFBZSxDQUFBO0lB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2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvamVjdC1pbmZvLnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9tdHlwZXMvcHJvamVjdC1pbmZvLnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFl1bnphaUhlYWRlclN0eWxlIHtcbiAgbGFiZWw6IHN0cmluZztcbiAgdmFsdWU6IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBZdW56YWlQcm9maWxlIHtcbiAgbmFtZTogc3RyaW5nO1xuICB1cmw6IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBZdW56YWlQcm9qZWN0SW5mbyB7XG4gIGNvbG9yZnVsTG9nb1VybDogc3RyaW5nO1xuICBjb3B5cmlnaHQ6IHN0cmluZztcbiAgZmF2aWNvblVybDogc3RyaW5nO1xuICBnYXRld2F5OiBzdHJpbmc7XG4gIGhlYWRlclN0eWxlOiBZdW56YWlIZWFkZXJTdHlsZVtdO1xuICBtYXhMb2dvVXJsOiBzdHJpbmc7XG4gIG1pbmlMb2dvVXJsOiBzdHJpbmc7XG4gIHByb2ZpbGVMaXN0OiBZdW56YWlQcm9maWxlW107XG4gIHByb2plY3ROYW1lOiBzdHJpbmc7XG4gIHNob3dBbGxNZW51OiBib29sZWFuO1xuICB0dWNhb1VybDogc3RyaW5nO1xuICBwYWdlVGl0bGVQYXR0ZXJuOiBzdHJpbmc7XG59XG4iXX0=
|
@@ -119,10 +119,10 @@ export class LazyService {
|
|
119
119
|
resolve(item);
|
120
120
|
});
|
121
121
|
}
|
122
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
123
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
122
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: LazyService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
123
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: LazyService, providedIn: 'root' }); }
|
124
124
|
}
|
125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: LazyService, decorators: [{
|
126
126
|
type: Injectable,
|
127
127
|
args: [{ providedIn: 'root' }]
|
128
128
|
}] });
|
@@ -227,10 +227,10 @@ 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: "17.
|
231
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
230
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: PathToRegexpService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
231
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: PathToRegexpService, providedIn: 'root' }); }
|
232
232
|
}
|
233
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: PathToRegexpService, decorators: [{
|
234
234
|
type: Injectable,
|
235
235
|
args: [{
|
236
236
|
providedIn: 'root'
|
@@ -13,10 +13,10 @@ export class CurrencyCNYPipe {
|
|
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: "17.
|
17
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyCNYPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
17
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: CurrencyCNYPipe, isStandalone: true, name: "cny" }); }
|
18
18
|
}
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyCNYPipe, decorators: [{
|
20
20
|
type: Pipe,
|
21
21
|
args: [{ name: 'cny', standalone: true }]
|
22
22
|
}] });
|
@@ -15,10 +15,10 @@ export class CurrencyMegaPipe {
|
|
15
15
|
const res = this.srv.mega(value, options);
|
16
16
|
return res.value + (this.isCN ? res.unitI18n : res.unit);
|
17
17
|
}
|
18
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
19
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
18
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyMegaPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
19
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: CurrencyMegaPipe, isStandalone: true, name: "mega" }); }
|
20
20
|
}
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyMegaPipe, decorators: [{
|
22
22
|
type: Pipe,
|
23
23
|
args: [{ name: 'mega', standalone: true }]
|
24
24
|
}] });
|
@@ -5,11 +5,11 @@ import { CurrencyPricePipe } from './price.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: "17.
|
9
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.
|
10
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
9
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPipeModule, imports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe], exports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe] }); }
|
10
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPipeModule }); }
|
11
11
|
}
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPipeModule, decorators: [{
|
13
13
|
type: NgModule,
|
14
14
|
args: [{
|
15
15
|
imports: PIPES,
|
@@ -17,10 +17,10 @@ export class CurrencyPricePipe {
|
|
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: "17.
|
21
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPricePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
21
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPricePipe, isStandalone: true, name: "price" }); }
|
22
22
|
}
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPricePipe, decorators: [{
|
24
24
|
type: Pipe,
|
25
25
|
args: [{ name: 'price', standalone: true }]
|
26
26
|
}] });
|
@@ -10,10 +10,10 @@ export class FilterPipe {
|
|
10
10
|
transform(array, matcher, ...args) {
|
11
11
|
return array.filter(i => matcher(i, ...args));
|
12
12
|
}
|
13
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
14
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
14
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: FilterPipe, isStandalone: true, name: "filter", pure: false }); }
|
15
15
|
}
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FilterPipe, decorators: [{
|
17
17
|
type: Pipe,
|
18
18
|
args: [{ name: 'filter', standalone: true, pure: false }]
|
19
19
|
}] });
|
@@ -3,11 +3,11 @@ 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: "17.
|
7
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.
|
8
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FilterPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
7
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: FilterPipeModule, imports: [FilterPipe], exports: [FilterPipe] }); }
|
8
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FilterPipeModule }); }
|
9
9
|
}
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FilterPipeModule, decorators: [{
|
11
11
|
type: NgModule,
|
12
12
|
args: [{
|
13
13
|
imports: PIPES,
|
@@ -24,10 +24,10 @@ export class FormatMaskPipe {
|
|
24
24
|
transform(value, mask) {
|
25
25
|
return formatMask(value, mask);
|
26
26
|
}
|
27
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
28
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FormatMaskPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
28
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: FormatMaskPipe, isStandalone: true, name: "mask" }); }
|
29
29
|
}
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FormatMaskPipe, decorators: [{
|
31
31
|
type: Pipe,
|
32
32
|
args: [{ name: 'mask', standalone: true }]
|
33
33
|
}] });
|
@@ -3,11 +3,11 @@ import { FormatMaskPipe } 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: "17.
|
7
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.
|
8
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FormatPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
7
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: FormatPipeModule, imports: [FormatMaskPipe], exports: [FormatMaskPipe] }); }
|
8
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FormatPipeModule }); }
|
9
9
|
}
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FormatPipeModule, decorators: [{
|
11
11
|
type: NgModule,
|
12
12
|
args: [{
|
13
13
|
imports: PIPES,
|
package/fesm2022/array.mjs
CHANGED
@@ -269,10 +269,10 @@ class ArrayService {
|
|
269
269
|
}, new Map())
|
270
270
|
.values());
|
271
271
|
}
|
272
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
273
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
272
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ArrayService, deps: [{ token: i1.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
273
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ArrayService, providedIn: 'root' }); }
|
274
274
|
}
|
275
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ArrayService, decorators: [{
|
276
276
|
type: Injectable,
|
277
277
|
args: [{ providedIn: 'root' }]
|
278
278
|
}], ctorParameters: () => [{ type: i1.YunzaiConfigService }] });
|
package/fesm2022/browser.mjs
CHANGED
@@ -91,10 +91,10 @@ class CookieService {
|
|
91
91
|
removeAll() {
|
92
92
|
this.doc.cookie = '';
|
93
93
|
}
|
94
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
95
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
94
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CookieService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
95
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CookieService, providedIn: 'root' }); }
|
96
96
|
}
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CookieService, decorators: [{
|
98
98
|
type: Injectable,
|
99
99
|
args: [{ providedIn: 'root' }]
|
100
100
|
}] });
|
@@ -219,10 +219,10 @@ class ScrollService {
|
|
219
219
|
}
|
220
220
|
this.scrollToElement(this._getDoc().body, topOffset);
|
221
221
|
}
|
222
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
223
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
222
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ScrollService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
223
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ScrollService, providedIn: 'root' }); }
|
224
224
|
}
|
225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ScrollService, decorators: [{
|
226
226
|
type: Injectable,
|
227
227
|
args: [{ providedIn: 'root' }]
|
228
228
|
}] });
|
package/fesm2022/config.mjs
CHANGED
@@ -37,10 +37,10 @@ class YunzaiConfigService {
|
|
37
37
|
set(componentName, value) {
|
38
38
|
this.config[componentName] = { ...this.config[componentName], ...value };
|
39
39
|
}
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
41
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: YunzaiConfigService, deps: [{ token: YUNZAI_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
41
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: YunzaiConfigService, providedIn: 'root' }); }
|
42
42
|
}
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: YunzaiConfigService, decorators: [{
|
44
44
|
type: Injectable,
|
45
45
|
args: [{ providedIn: 'root' }]
|
46
46
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
package/fesm2022/format.mjs
CHANGED
@@ -410,10 +410,10 @@ class CurrencyService {
|
|
410
410
|
: integerRes + (decimalRes === '' ? '' : `点${decimalRes}`));
|
411
411
|
return ret;
|
412
412
|
}
|
413
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
414
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
413
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyService, deps: [{ token: i1.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
414
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyService, providedIn: 'root' }); }
|
415
415
|
}
|
416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyService, decorators: [{
|
417
417
|
type: Injectable,
|
418
418
|
args: [{ providedIn: 'root' }]
|
419
419
|
}], ctorParameters: () => [{ type: i1.YunzaiConfigService }] });
|
package/fesm2022/mtypes.mjs
CHANGED
@@ -2,7 +2,9 @@ var NavType;
|
|
2
2
|
(function (NavType) {
|
3
3
|
NavType["APPLICATION"] = "application";
|
4
4
|
NavType["GROUP"] = "group";
|
5
|
-
NavType["TILE"] = "
|
5
|
+
NavType["TILE"] = "tiled";
|
6
|
+
NavType["BLANK"] = "blank";
|
7
|
+
NavType["TABS"] = "tabs"; // 选项卡
|
6
8
|
})(NavType || (NavType = {}));
|
7
9
|
|
8
10
|
const YUNZAI_PAGE = {
|
package/fesm2022/mtypes.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mtypes.mjs","sources":["../../../../packages/util/mtypes/nav.types.ts","../../../../packages/util/mtypes/page.ts","../../../../packages/util/mtypes/mtypes.ts"],"sourcesContent":["import { YunzaiNavTopic } from './header-menu.type';\n\nexport enum NavType {\n APPLICATION = 'application'
|
1
|
+
{"version":3,"file":"mtypes.mjs","sources":["../../../../packages/util/mtypes/nav.types.ts","../../../../packages/util/mtypes/page.ts","../../../../packages/util/mtypes/mtypes.ts"],"sourcesContent":["import { YunzaiNavTopic } from './header-menu.type';\n\nexport enum NavType {\n APPLICATION = 'application', // 应用与服务\n GROUP = 'group', // 分组\n TILE = 'tiled', // 平铺\n BLANK = 'blank', // 空\n TABS = 'tabs' // 选项卡\n}\n\nexport interface LayoutBasicAside {\n name: string;\n intro: string;\n icon: string;\n}\n\nexport interface LayoutBasicDisplay {\n nav: boolean;\n reusetab: boolean;\n aside: boolean;\n}\n\nexport interface LayoutNavApplicationState {\n active: boolean;\n type: 'all' | 'mine' | 'other';\n topic?: YunzaiNavTopic;\n topics: YunzaiNavTopic[];\n list: YunzaiNavTopic[];\n search: string | null;\n}\n\nexport interface LayoutNavGroupState {\n topics: YunzaiNavTopic[];\n}\n","import { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nexport interface YunzaiPageParam<T> {\n pageNum?: number;\n pageSize?: number;\n pageParam?: T;\n}\n\nconst YUNZAI_PAGE = {\n PAGE_NUM: 1,\n PAGE_SIZE: 1000\n};\n\nexport interface Pageable {\n offset: number;\n pageNumber: number;\n pageSize: number;\n paged: boolean;\n sort: PageableSort;\n unpaged: boolean;\n}\n\nexport interface PageableSort {\n empty: boolean;\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface YunzaiPageResult<T> {\n content: T[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n pageable: Pageable;\n size: number;\n sort: PageableSort;\n totalElements: number;\n totalPages: number;\n}\n\nexport class YunzaiPageBuilder<T extends NzSafeAny | unknown> {\n private page: YunzaiPageParam<T> = {};\n\n public pageNum(pageNum: number): this {\n this.page.pageNum = pageNum;\n return this;\n }\n\n public pageSize(pageSize: number): this {\n this.page.pageSize = pageSize;\n return this;\n }\n\n public pageParam(param: T): this {\n this.page.pageParam = param;\n return this;\n }\n\n public default(): this {\n this.page.pageNum = YUNZAI_PAGE.PAGE_NUM;\n this.page.pageSize = YUNZAI_PAGE.PAGE_SIZE;\n return this;\n }\n\n public build(): YunzaiPageParam<T> {\n return this.page;\n }\n}\n\nexport class Page<T> {\n pageNum = 1;\n pageSize = 30;\n param?: Partial<T>;\n\n private constructor(pageNum: number, pageSize: number, param?: Partial<T>) {\n this.pageNum = pageNum;\n this.pageSize = pageSize;\n this.param = param;\n }\n\n static create<T>(): Page<T> {\n return new Page<T>(1, 30);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"IAEY,QAMX;AAND,CAAA,UAAY,OAAO,EAAA;AACjB,IAAA,OAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC3B,IAAA,OAAA,CAAA,OAAA,CAA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CAAA,QAAA,GAAG,EAAE,CAAC;AAIZ,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;KACpB;AAED,IAAA,OAAO,MAAM,GAAA;AACX,QAAA,OAAO,IAAI,IAAI,CAAI,CAAC,EAAE,EAAE,CAAC,CAAC;KAC3B;AACF;;ACrFD;;AAEG;;;;"}
|
package/fesm2022/other.mjs
CHANGED
@@ -231,10 +231,10 @@ class LazyService {
|
|
231
231
|
resolve(item);
|
232
232
|
});
|
233
233
|
}
|
234
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
235
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
234
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: LazyService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
235
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: LazyService, providedIn: 'root' }); }
|
236
236
|
}
|
237
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: LazyService, decorators: [{
|
238
238
|
type: Injectable,
|
239
239
|
args: [{ providedIn: 'root' }]
|
240
240
|
}] });
|
@@ -532,10 +532,10 @@ class PathToRegexpService {
|
|
532
532
|
}
|
533
533
|
return this.stringToRegexp(/** @type {string} */ path, keys, options);
|
534
534
|
}
|
535
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
536
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
535
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: PathToRegexpService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
536
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: PathToRegexpService, providedIn: 'root' }); }
|
537
537
|
}
|
538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
538
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: PathToRegexpService, decorators: [{
|
539
539
|
type: Injectable,
|
540
540
|
args: [{
|
541
541
|
providedIn: 'root'
|
@@ -16,10 +16,10 @@ class CurrencyMegaPipe {
|
|
16
16
|
const res = this.srv.mega(value, options);
|
17
17
|
return res.value + (this.isCN ? res.unitI18n : res.unit);
|
18
18
|
}
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
20
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyMegaPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
20
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: CurrencyMegaPipe, isStandalone: true, name: "mega" }); }
|
21
21
|
}
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyMegaPipe, decorators: [{
|
23
23
|
type: Pipe,
|
24
24
|
args: [{ name: 'mega', standalone: true }]
|
25
25
|
}] });
|
@@ -40,10 +40,10 @@ class CurrencyPricePipe {
|
|
40
40
|
transform(value, options) {
|
41
41
|
return this.srv.format(value, options);
|
42
42
|
}
|
43
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
44
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPricePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
44
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPricePipe, isStandalone: true, name: "price" }); }
|
45
45
|
}
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPricePipe, decorators: [{
|
47
47
|
type: Pipe,
|
48
48
|
args: [{ name: 'price', standalone: true }]
|
49
49
|
}] });
|
@@ -60,21 +60,21 @@ class CurrencyCNYPipe {
|
|
60
60
|
transform(value, options) {
|
61
61
|
return this.srv.cny(value, options);
|
62
62
|
}
|
63
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
64
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
63
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyCNYPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
64
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: CurrencyCNYPipe, isStandalone: true, name: "cny" }); }
|
65
65
|
}
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyCNYPipe, decorators: [{
|
67
67
|
type: Pipe,
|
68
68
|
args: [{ name: 'cny', standalone: true }]
|
69
69
|
}] });
|
70
70
|
|
71
71
|
const PIPES = [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe];
|
72
72
|
class CurrencyPipeModule {
|
73
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
74
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.
|
75
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.
|
73
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
74
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPipeModule, imports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe], exports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe] }); }
|
75
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPipeModule }); }
|
76
76
|
}
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CurrencyPipeModule, decorators: [{
|
78
78
|
type: NgModule,
|
79
79
|
args: [{
|
80
80
|
imports: PIPES,
|
package/fesm2022/pipe-filter.mjs
CHANGED
@@ -11,21 +11,21 @@ class FilterPipe {
|
|
11
11
|
transform(array, matcher, ...args) {
|
12
12
|
return array.filter(i => matcher(i, ...args));
|
13
13
|
}
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
15
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
15
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: FilterPipe, isStandalone: true, name: "filter", pure: false }); }
|
16
16
|
}
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FilterPipe, decorators: [{
|
18
18
|
type: Pipe,
|
19
19
|
args: [{ name: 'filter', standalone: true, pure: false }]
|
20
20
|
}] });
|
21
21
|
|
22
22
|
const PIPES = [FilterPipe];
|
23
23
|
class FilterPipeModule {
|
24
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
25
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.
|
26
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FilterPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
25
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: FilterPipeModule, imports: [FilterPipe], exports: [FilterPipe] }); }
|
26
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FilterPipeModule }); }
|
27
27
|
}
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FilterPipeModule, decorators: [{
|
29
29
|
type: NgModule,
|
30
30
|
args: [{
|
31
31
|
imports: PIPES,
|
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: "17.
|
29
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FormatMaskPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
29
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: FormatMaskPipe, isStandalone: true, name: "mask" }); }
|
30
30
|
}
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FormatMaskPipe, decorators: [{
|
32
32
|
type: Pipe,
|
33
33
|
args: [{ name: 'mask', standalone: true }]
|
34
34
|
}] });
|
35
35
|
|
36
36
|
const PIPES = [FormatMaskPipe];
|
37
37
|
class FormatPipeModule {
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
39
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.
|
40
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FormatPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
39
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: FormatPipeModule, imports: [FormatMaskPipe], exports: [FormatMaskPipe] }); }
|
40
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FormatPipeModule }); }
|
41
41
|
}
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FormatPipeModule, decorators: [{
|
43
43
|
type: NgModule,
|
44
44
|
args: [{
|
45
45
|
imports: PIPES,
|
package/mtypes/nav.types.d.ts
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
import { YunzaiNavTopic } from './header-menu.type';
|
2
2
|
export declare enum NavType {
|
3
|
-
APPLICATION = "application"
|
4
|
-
GROUP = "group"
|
5
|
-
TILE = "
|
3
|
+
APPLICATION = "application",// 应用与服务
|
4
|
+
GROUP = "group",// 分组
|
5
|
+
TILE = "tiled",// 平铺
|
6
|
+
BLANK = "blank",// 空
|
7
|
+
TABS = "tabs"
|
6
8
|
}
|
7
9
|
export interface LayoutBasicAside {
|
8
10
|
name: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yelon/util",
|
3
|
-
"version": "17.
|
3
|
+
"version": "17.3.1",
|
4
4
|
"author": "yunzai-bot<yunzai-bot@outlook.com>",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -53,18 +53,18 @@
|
|
53
53
|
"esm": "./esm2022/config/config.mjs",
|
54
54
|
"default": "./fesm2022/config.mjs"
|
55
55
|
},
|
56
|
-
"./decorator": {
|
57
|
-
"types": "./decorator/index.d.ts",
|
58
|
-
"esm2022": "./esm2022/decorator/decorator.mjs",
|
59
|
-
"esm": "./esm2022/decorator/decorator.mjs",
|
60
|
-
"default": "./fesm2022/decorator.mjs"
|
61
|
-
},
|
62
56
|
"./date-time": {
|
63
57
|
"types": "./date-time/index.d.ts",
|
64
58
|
"esm2022": "./esm2022/date-time/date-time.mjs",
|
65
59
|
"esm": "./esm2022/date-time/date-time.mjs",
|
66
60
|
"default": "./fesm2022/date-time.mjs"
|
67
61
|
},
|
62
|
+
"./decorator": {
|
63
|
+
"types": "./decorator/index.d.ts",
|
64
|
+
"esm2022": "./esm2022/decorator/decorator.mjs",
|
65
|
+
"esm": "./esm2022/decorator/decorator.mjs",
|
66
|
+
"default": "./fesm2022/decorator.mjs"
|
67
|
+
},
|
68
68
|
"./form": {
|
69
69
|
"types": "./form/index.d.ts",
|
70
70
|
"esm2022": "./esm2022/form/form.mjs",
|
@@ -95,18 +95,18 @@
|
|
95
95
|
"esm": "./esm2022/mtypes/mtypes.mjs",
|
96
96
|
"default": "./fesm2022/mtypes.mjs"
|
97
97
|
},
|
98
|
-
"./pipes": {
|
99
|
-
"types": "./pipes/index.d.ts",
|
100
|
-
"esm2022": "./esm2022/pipes/pipes.mjs",
|
101
|
-
"esm": "./esm2022/pipes/pipes.mjs",
|
102
|
-
"default": "./fesm2022/pipes.mjs"
|
103
|
-
},
|
104
98
|
"./other": {
|
105
99
|
"types": "./other/index.d.ts",
|
106
100
|
"esm2022": "./esm2022/other/other.mjs",
|
107
101
|
"esm": "./esm2022/other/other.mjs",
|
108
102
|
"default": "./fesm2022/other.mjs"
|
109
103
|
},
|
104
|
+
"./pipes": {
|
105
|
+
"types": "./pipes/index.d.ts",
|
106
|
+
"esm2022": "./esm2022/pipes/pipes.mjs",
|
107
|
+
"esm": "./esm2022/pipes/pipes.mjs",
|
108
|
+
"default": "./fesm2022/pipes.mjs"
|
109
|
+
},
|
110
110
|
"./token": {
|
111
111
|
"types": "./token/index.d.ts",
|
112
112
|
"esm2022": "./esm2022/token/token.mjs",
|