@yelon/util 16.4.5 → 17.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +1 -1
- package/README.md +6 -2
- package/browser/cookie.service.d.ts +2 -5
- package/browser/is-empty.d.ts +2 -2
- package/browser/scroll.service.d.ts +3 -6
- package/config/auth/auth.type.d.ts +2 -10
- package/config/cache/cache.type.d.ts +26 -0
- package/config/config.types.d.ts +5 -2
- package/config/index.d.ts +2 -2
- package/config/mock/mock.type.d.ts +0 -4
- package/config/theme/http.type.d.ts +3 -2
- package/config/theme/pipe.type.d.ts +3 -0
- package/date-time/time.d.ts +16 -8
- package/decorator/convert.d.ts +8 -0
- package/decorator/zone-outside.d.ts +2 -2
- package/esm2022/array/array-type.service.mjs +1 -1
- package/esm2022/array/array.service.mjs +6 -5
- package/esm2022/browser/cookie.service.mjs +11 -14
- package/esm2022/browser/copy.mjs +1 -1
- package/esm2022/browser/is-empty.mjs +3 -3
- package/esm2022/browser/scroll.service.mjs +11 -14
- package/esm2022/browser/style.mjs +1 -1
- package/esm2022/config/auth/auth.type.mjs +1 -1
- package/esm2022/config/cache/cache.type.mjs +1 -1
- package/esm2022/config/config.service.mjs +7 -6
- package/esm2022/config/config.types.mjs +5 -2
- package/esm2022/config/index.mjs +3 -3
- package/esm2022/config/mock/mock.type.mjs +1 -1
- package/esm2022/config/theme/http.type.mjs +1 -1
- package/esm2022/config/theme/pipe.type.mjs +2 -0
- package/esm2022/date-time/picker.mjs +1 -1
- package/esm2022/date-time/time.mjs +16 -11
- package/esm2022/decorator/convert.mjs +9 -1
- package/esm2022/decorator/zone-outside.mjs +3 -3
- package/esm2022/form/match-control.mjs +1 -1
- package/esm2022/format/currency.service.mjs +10 -15
- package/esm2022/format/string.mjs +1 -1
- package/esm2022/index.mjs +1 -2
- package/esm2022/math/in-range.mjs +1 -1
- package/esm2022/math/round.mjs +1 -1
- package/esm2022/mcache/localStorageUtils.mjs +1 -1
- package/esm2022/mtypes/header-menu.type.mjs +1 -1
- package/esm2022/mtypes/menu.type.mjs +1 -1
- package/esm2022/mtypes/page.mjs +1 -1
- package/esm2022/other/assert.mjs +2 -2
- package/esm2022/other/deep.mjs +1 -1
- package/esm2022/other/favicon.mjs +1 -1
- package/esm2022/other/index.mjs +2 -2
- package/esm2022/other/lazy.service.mjs +8 -11
- package/esm2022/other/logger.mjs +1 -1
- package/esm2022/other/path-to-regexp.service.mjs +6 -6
- package/esm2022/pipes/currency/cny.pipe.mjs +15 -15
- package/esm2022/pipes/currency/mega.pipe.mjs +16 -20
- package/esm2022/pipes/currency/module.mjs +6 -6
- package/esm2022/pipes/currency/price.pipe.mjs +19 -19
- package/esm2022/pipes/filter/filter.pipe.mjs +11 -10
- package/esm2022/pipes/filter/module.mjs +6 -6
- package/esm2022/pipes/format/mask.pipe.mjs +24 -24
- package/esm2022/pipes/format/module.mjs +6 -6
- package/esm2022/token/window.mjs +1 -1
- package/fesm2022/array.mjs +5 -4
- package/fesm2022/array.mjs.map +1 -1
- package/fesm2022/browser.mjs +20 -26
- package/fesm2022/browser.mjs.map +1 -1
- package/fesm2022/config.mjs +11 -7
- package/fesm2022/config.mjs.map +1 -1
- package/fesm2022/date-time.mjs +15 -10
- package/fesm2022/date-time.mjs.map +1 -1
- package/fesm2022/decorator.mjs +10 -2
- package/fesm2022/decorator.mjs.map +1 -1
- package/fesm2022/form.mjs.map +1 -1
- package/fesm2022/format.mjs +9 -14
- package/fesm2022/format.mjs.map +1 -1
- package/fesm2022/math.mjs.map +1 -1
- package/fesm2022/mcache.mjs.map +1 -1
- package/fesm2022/mtypes.mjs.map +1 -1
- package/fesm2022/other.mjs +17 -20
- package/fesm2022/other.mjs.map +1 -1
- package/fesm2022/pipe-currency.mjs +48 -52
- package/fesm2022/pipe-currency.mjs.map +1 -1
- package/fesm2022/pipe-filter.mjs +15 -14
- package/fesm2022/pipe-filter.mjs.map +1 -1
- package/fesm2022/pipe-format.mjs +28 -28
- package/fesm2022/pipe-format.mjs.map +1 -1
- package/fesm2022/token.mjs.map +1 -1
- package/fesm2022/yelon-util.mjs +0 -1
- package/fesm2022/yelon-util.mjs.map +1 -1
- package/format/currency.service.d.ts +3 -2
- package/index.d.ts +0 -1
- package/mtypes/header-menu.type.d.ts +3 -2
- package/mtypes/menu.type.d.ts +6 -5
- package/mtypes/page.d.ts +2 -1
- package/other/index.d.ts +1 -1
- package/other/lazy.service.d.ts +1 -2
- package/other/path-to-regexp.service.d.ts +12 -11
- package/package.json +14 -20
- package/pipes/currency/cny.pipe.d.ts +8 -9
- package/pipes/currency/mega.pipe.d.ts +8 -9
- package/pipes/currency/module.d.ts +1 -1
- package/pipes/currency/price.pipe.d.ts +12 -13
- package/pipes/filter/filter.pipe.d.ts +6 -6
- package/pipes/filter/module.d.ts +1 -1
- package/pipes/format/mask.pipe.d.ts +20 -20
- package/pipes/format/module.d.ts +1 -1
- package/analysis/global-event.subject.d.ts +0 -7
- package/analysis/index.d.ts +0 -1
- package/esm2022/analysis/analysis.mjs +0 -5
- package/esm2022/analysis/global-event.subject.mjs +0 -17
- package/esm2022/analysis/index.mjs +0 -2
- package/fesm2022/analysis.mjs +0 -24
- package/fesm2022/analysis.mjs.map +0 -1
@@ -1,8 +1,12 @@
|
|
1
|
+
import { Platform } from '@angular/cdk/platform';
|
1
2
|
import { DOCUMENT } from '@angular/common';
|
2
|
-
import {
|
3
|
+
import { Injectable, inject } from '@angular/core';
|
3
4
|
import * as i0 from "@angular/core";
|
4
|
-
import * as i1 from "@angular/cdk/platform";
|
5
5
|
export class ScrollService {
|
6
|
+
constructor() {
|
7
|
+
this._doc = inject(DOCUMENT);
|
8
|
+
this.platform = inject(Platform);
|
9
|
+
}
|
6
10
|
_getDoc() {
|
7
11
|
return this._doc || document;
|
8
12
|
}
|
@@ -10,10 +14,6 @@ export class ScrollService {
|
|
10
14
|
const doc = this._getDoc();
|
11
15
|
return doc.defaultView || window;
|
12
16
|
}
|
13
|
-
constructor(_doc, platform) {
|
14
|
-
this._doc = _doc;
|
15
|
-
this.platform = platform;
|
16
|
-
}
|
17
17
|
/**
|
18
18
|
* 获取滚动条位置
|
19
19
|
*
|
@@ -75,14 +75,11 @@ 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: "
|
79
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ScrollService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
79
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ScrollService, providedIn: 'root' }); }
|
80
80
|
}
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ScrollService, decorators: [{
|
82
82
|
type: Injectable,
|
83
83
|
args: [{ providedIn: 'root' }]
|
84
|
-
}]
|
85
|
-
|
86
|
-
args: [DOCUMENT]
|
87
|
-
}] }, { type: i1.Platform }]; } });
|
88
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Jyb3dzZXIvc2Nyb2xsLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzNDLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFLbkQsTUFBTSxPQUFPLGFBQ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iBAcGFyYW0gdG9wT2Zmc2V0IOWBj+enu+WAvO+8jOm7mOiupCBgMGBcbiAgICovXG4gIHNjcm9sbFRvVG9wKHRvcE9mZnNldDogbnVtYmVyID0gMCk6IHZvaWQge1xuICAgIGlmICghdGhpcy5wbGF0Zm9ybS5pc0Jyb3dzZXIpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgdGhpcy5zY3JvbGxUb0VsZW1lbnQodGhpcy5fZ2V0RG9jKCkuYm9keSwgdG9wT2Zmc2V0KTtcbiAgfVxufVxuIl19
|
@@ -35,4 +35,4 @@ export function updateHostClass(el, renderer, classMap, preClean = false) {
|
|
35
35
|
classMap = { ...classMap };
|
36
36
|
addClass(el, classMap, renderer);
|
37
37
|
}
|
38
|
-
//# sourceMappingURL=data:application/json;base64,
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3R5bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Jyb3dzZXIvc3R5bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsU0FBUyxXQUFXLENBQUMsRUFBZSxFQUFFLFFBQXNDLEVBQUUsUUFBbUI7SUFDL0YsTUFBTSxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxRQUFRLENBQUMsV0FBVyxDQUFDLEVBQUUsRUFBRSxHQUFHLENBQUMsQ0FBQyxDQUFDO0FBQ3RFLENBQUM7QUFFRCxTQUFTLFFBQVEsQ0FBQyxFQUFlLEVBQUUsUUFBc0MsRUFBRSxRQUFtQjtJQUM1RixLQUFLLE1BQU0sQ0FBQyxJQUFJLFFBQVEsRUFBRSxDQUFDO1FBQ3pCLElBQUksUUFBUSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUM7WUFDaEIsUUF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-1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvYXV0aC9hdXRoLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgWXVuemFpQXV0aENvbmZpZyB7XG4gIC8qKlxuICAgKiDlrZjlgqhLRVnlgLzvvIzpu5jorqTvvJpgX3Rva2VuYFxuICAgKi9cbiAgc3RvcmVfa2V5Pzogc3RyaW5nO1xuICAvKipcbiAgICog5peg5pWI5pe26Lez6L2s6Iez55m75b2V6aG177yM6buY6K6k77yaYHRydWVg77yM5YyF5ous77yaXG4gICAqIC0g5peg5pWIdG9rZW7lgLxcbiAgICogLSB0b2tlbuW3sui/h+acn++8iOmZkEpXVO+8iVxuICAgKi9cbiAgdG9rZW5faW52YWxpZF9yZWRpcmVjdD86IGJvb2xlYW47XG4gIC8qKlxuICAgKiB0b2tlbui/h+acn+aXtumXtOWBj+enu+WAvO+8jOm7mOiupO+8mmAxMGAg56eS77yI5Y2V5L2N77ya56eS77yJXG4gICAqL1xuICB0b2tlbl9leHBfb2Zmc2V0PzogbnVtYmVyO1xuICAvKipcbiAgICog5Y+R6YCBdG9rZW7lj4LmlbDlkI3vvIzpu5jorqTvvJrCt1xuICAgKi9cbiAgdG9rZW5fc2VuZF9rZXk/OiBzdHJpbmc7XG4gIC8qKlxuICAgKiDlj5HpgIF0b2tlbuaooeadv++8iOm7mOiupOS4uu+
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4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b2tlbuWPguaVsOS9jee9ru+8jOm7mOiupO+8mmBoZWFkZXJgXG4gICAqL1xuICB0b2tlbl9zZW5kX3BsYWNlPzogJ2hlYWRlcicgfCAnYm9keScgfCAndXJsJztcbiAgLyoqXG4gICAqIOeZu+W9lemhtei3r+eUseWcsOWdgO+8jOm7mOiupO+8mmAvbG9naW5gXG4gICAqL1xuICBsb2dpbl91cmw/OiBzdHJpbmc7XG4gIC8qKlxuICAgKiDlv73nlaVUT0tFTueahFVSTOWcsOWdgOWIl+ihqO+8jOm7mOiupOWAvOS4uu+8mmBbL1xcL2xvZ2luLywgL2Fzc2V0c1xcLy8sIC9wYXNzcG9ydFxcLy9dYFxuICAgKi9cbiAgaWdub3Jlcz86IFJlZ0V4cFtdO1xuICAvKipcbiAgICog5Yi35paw6Ze06ZqU5pe26ZW/77yI5Y2V5L2N77yabXPvvInvvIzpu5jorqTvvJpgMzAwMGBcbiAgICovXG4gIHJlZnJlc2hUaW1lPzogbnVtYmVyO1xuICAvKipcbiAgICog6L+H5pyf6K6h566X5YGP56e75YC877yI5Y2V5L2N77yabXPvvInvvIzpu5jorqTvvJpgNjAwMGBcbiAgICogLSAqKuW7uuiurioq5qC55o2uIGByZWZyZXNoVGltZWAg5YCN5pWw5p2l6K6+572uXG4gICAqL1xuICByZWZyZXNoT2Zmc2V0PzogbnVtYmVyO1xufVxuIl19
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FjaGUudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvY29uZmlnL2NhY2hlL2NhY2hlLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE9ic2VydmFibGUgfSBmcm9tICdyeGpzJztc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Q2FjaGVJbnRlcmNlcHRvciB7XG4gIC8qKlxuICAgKiBXaGV0aGVyIHRvIGVuYWJsZSwgZGVmYXVsdCBgdHJ1ZWBcbiAgICpcbiAgICog5piv5ZCm5ZCv55So77yM6buY6K6kIGB0cnVlYFxuICAgKi9cbiAgZW5hYmxlZD86IGJvb2xlYW47XG4gIC8qKlxuICAgKiBTcGVjaWZ5IHRoZSBzdG9yYWdlIG1ldGhvZCwgYG1gIG1lYW5zIG1lbW9yeSwgYHNgIG1lYW5zIHBlcnNpc3RlbmNlOyBkZWZhdWx0OiBgbWBcbiAgICpcbiAgICog5oyH5a6a5a2Y5YKo5pa55byP77yMYG1gIOihqOekuuWGheWtmO+8jGBzYCDooajnpLrmjIHkuYXljJbvvJvpu5jorqTvvJpgbWBcbiAgICovXG4gIHNhdmVUeXBlPzogJ20nIHwgJ3MnO1xuICAvKipcbiAgICogV2hldGhlciB0byB0cmlnZ2VyIGEgbm90aWZpY2F0aW9uLCBkZWZhdWx0OiBgdHJ1ZWBcbiAgICpcbiAgICog5piv5ZCm6Kem5Y+R6YCa55+l77yM6buY6K6k77yaYHRydWVgXG4gICAqL1xuICBlbWl0Tm90aWZ5PzogYm9vbGVhbjtcbn1cbiJdfQ==
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
1
2
|
import { Inject, Injectable, Optional } from '@angular/core';
|
2
3
|
import { deepMergeKey } from '@yelon/util/other';
|
3
4
|
import { YUNZAI_CONFIG } from './config.types';
|
@@ -22,16 +23,16 @@ export class YunzaiConfigService {
|
|
22
23
|
set(componentName, value) {
|
23
24
|
this.config[componentName] = { ...this.config[componentName], ...value };
|
24
25
|
}
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
26
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", 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.2.1", ngImport: i0, type: YunzaiConfigService, providedIn: 'root' }); }
|
27
28
|
}
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: YunzaiConfigService, decorators: [{
|
29
30
|
type: Injectable,
|
30
31
|
args: [{ providedIn: 'root' }]
|
31
|
-
}], ctorParameters:
|
32
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
32
33
|
type: Optional
|
33
34
|
}, {
|
34
35
|
type: Inject,
|
35
36
|
args: [YUNZAI_CONFIG]
|
36
|
-
}] }]
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
37
|
+
}] }] });
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2NvbmZpZy9jb25maWcuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTdELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUdqRCxPQUFPLEVBQWlDLGFBQWEsRUFBRSxNQUFNLGdCQUFnQixDQUFDOztBQUc5RSxNQUFNLE9BQU8sbUJBQW1CO0lBRzlCLFlBQStDLGFBQTRCO1FBQ3pFLElBQUksQ0FBQy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BZdW56YWlDb25maWdLZXk+KGNvbXBvbmVudE5hbWU6IFQsIHZhbHVlOiBZdW56YWlDb25maWdbVF0pOiB2b2lkIHtcbiAgICB0aGlzLmNvbmZpZ1tjb21wb25lbnROYW1lXSA9IHsgLi4udGhpcy5jb25maWdbY29tcG9uZW50TmFtZV0sIC4uLnZhbHVlIH07XG4gIH1cbn1cbiJdfQ==
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
1
|
+
import { InjectionToken, makeEnvironmentProviders } from '@angular/core';
|
2
2
|
export const YUNZAI_CONFIG = new InjectionToken('yunzai-config', {
|
3
3
|
providedIn: 'root',
|
4
4
|
factory: YUNZAI_CONFIG_FACTORY
|
@@ -6,4 +6,7 @@ export const YUNZAI_CONFIG = new InjectionToken('yunzai-config', {
|
|
6
6
|
export function YUNZAI_CONFIG_FACTORY() {
|
7
7
|
return {};
|
8
8
|
}
|
9
|
-
|
9
|
+
export function provideYunzaiConfig(config) {
|
10
|
+
return makeEnvironmentProviders([{ provide: YUNZAI_CONFIG, useValue: config }]);
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvY29uZmlnLnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBd0IsY0FBYyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBd0UvRixNQUFNLENBQUMsTUFBTSxhQUFhLEdBQUcsSUFBSSxjQUFjLENBQWUsZUFBZSxFQUFFO0lBQzdFLFVBQVUsRUFBRSxNQUFNO0lBQ2xCLE9BQU8sRUFBRSxxQkFBcUI7Q0FDL0IsQ0FBQyxDQUFDO0FBRUgsTUFBTSxVQUFVLHF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lbWVJMThuPzogWXVuemFpVGhlbWVJMThuQ29uZmlnO1xuICB0aGVtZVBpcGU/OiBZdW56YWlUaGVtZVBpcGVDb25maWc7XG59XG5cbmV4cG9ydCB0eXBlIFl1bnphaUNvbmZpZ0tleSA9IGtleW9mIFl1bnphaUNvbmZpZztcblxuZXhwb3J0IGNvbnN0IFlVTlpBSV9DT05GSUcgPSBuZXcgSW5qZWN0aW9uVG9rZW48WXVuemFpQ29uZmlnPigneXVuemFpLWNvbmZpZycsIHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnLFxuICBmYWN0b3J5OiBZVU5aQUlfQ09ORklHX0ZBQ1RPUllcbn0pO1xuXG5leHBvcnQgZnVuY3Rpb24gWVVOWkFJX0NPTkZJR19GQUNUT1JZKCk6IFl1bnphaUNvbmZpZyB7XG4gIHJldHVybiB7fTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHByb3ZpZGVZdW56YWlDb25maWcoY29uZmlnOiBZdW56YWlDb25maWcpOiBFbnZpcm9ubWVudFByb3ZpZGVycyB7XG4gIHJldHVybiBtYWtlRW52aXJvbm1lbnRQcm92aWRlcnMoW3sgcHJvdmlkZTogWVVOWkFJX0NPTkZJRywgdXNlVmFsdWU6IGNvbmZpZyB9XSk7XG59XG4iXX0=
|
package/esm2022/config/index.mjs
CHANGED
@@ -8,8 +8,8 @@ export * from './util/currency.type';
|
|
8
8
|
export * from './theme/index';
|
9
9
|
export * from './mock/mock.type';
|
10
10
|
export * from './sf/sf.type';
|
11
|
-
export * from './bis/bis.type';
|
12
|
-
export * from './socket/socket.type';
|
13
11
|
export * from './config.types';
|
14
12
|
export * from './config.service';
|
15
|
-
|
13
|
+
export * from './bis/bis.type';
|
14
|
+
export * from './socket/socket.type';
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWN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wb3J0ICogZnJvbSAnLi9iaXMvYmlzLnR5cGUnO1xuZXhwb3J0ICogZnJvbSAnLi9zb2NrZXQvc29ja2V0LnR5cGUnO1xuIl19
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9jay50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvbW9jay9tb2NrLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgWXVuemFpTW9ja0NvbmZpZyB7XG4gIC8qKlxuICAgKiDor7fmsYLlu7bov5/vvIzljZXkvY3vvJrmr6vnp5LvvIzpu5jorqTvvJpgMzAwYFxuICAgKi9cbiAgZGVsYXk/OiBudW1iZXI7XG4gIC8qKlxuICAgKiDmmK/lkKblvLrliLbmiYDmnInor7fmsYLpg71Nb2Nr77yM6buY6K6k77yaYGZhbHNlYO+8jGB0cnVlYCDooajnpLrlvZPor7fmsYLnmoRVUkzkuI3lrZjlnKjml7bnm7TmjqXov5Tlm54gNDA0IOmUmeivr++8jGBmYWxzZWAg6KGo56S65pyq5ZG95Lit5pe25Y+R6YCB55yf5a6eSFRUUOivt+axglxuICAgKi9cbiAgZm9yY2U/OiBib29sZWFuO1xuICAvKipcbiAgICog5piv5ZCm5omT5Y2wIE1vY2sg6K+35rGC5L+h5oGv77yM5byl6KGl5rWP6KeI5Zmo5pegTmV0d29ya+S/oeaBr++8jOm7mOiupO+
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9jay50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvbW9jay9tb2NrLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgWXVuemFpTW9ja0NvbmZpZyB7XG4gIC8qKlxuICAgKiDor7fmsYLlu7bov5/vvIzljZXkvY3vvJrmr6vnp5LvvIzpu5jorqTvvJpgMzAwYFxuICAgKi9cbiAgZGVsYXk/OiBudW1iZXI7XG4gIC8qKlxuICAgKiDmmK/lkKblvLrliLbmiYDmnInor7fmsYLpg71Nb2Nr77yM6buY6K6k77yaYGZhbHNlYO+8jGB0cnVlYCDooajnpLrlvZPor7fmsYLnmoRVUkzkuI3lrZjlnKjml7bnm7TmjqXov5Tlm54gNDA0IOmUmeivr++8jGBmYWxzZWAg6KGo56S65pyq5ZG95Lit5pe25Y+R6YCB55yf5a6eSFRUUOivt+axglxuICAgKi9cbiAgZm9yY2U/OiBib29sZWFuO1xuICAvKipcbiAgICog5piv5ZCm5omT5Y2wIE1vY2sg6K+35rGC5L+h5oGv77yM5byl6KGl5rWP6KeI5Zmo5pegTmV0d29ya+S/oeaBr++8jOm7mOiupO+8mmB0cnVlYFxuICAgKi9cbiAgbG9nPzogYm9vbGVhbjtcbn1cbiJdfQ==
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvdGhlbWUvaHR0cC50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFl1bnphaVRoZW1lSHR0cENsaWVudENvbmZpZyB7XG4gIC8qKlxuICAgKiDnqbrlgLzlpITnkIbvvIzpu5jorqTvvJpgaW5jbHVkZWBcbiAgICogLSBpbmNsdWRl77ya5YyF5ZCrXG4gICAqIC0gaWdub3Jl77ya5b+
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvdGhlbWUvaHR0cC50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFl1bnphaVRoZW1lSHR0cENsaWVudENvbmZpZyB7XG4gIC8qKlxuICAgKiDnqbrlgLzlpITnkIbvvIzpu5jorqTvvJpgaW5jbHVkZWBcbiAgICogLSBpbmNsdWRl77ya5YyF5ZCrXG4gICAqIC0gaWdub3Jl77ya5b+955WlXG4gICAqL1xuICBudWxsVmFsdWVIYW5kbGluZz86ICdpbmNsdWRlJyB8ICdpZ25vcmUnO1xuICAvKipcbiAgICog5pe26Ze05YC85aSE55CG77yM6buY6K6k77yaYHRpbWVzdGFtcGBcbiAgICogLSB0aW1lc3RhbXDvvJrml7bpl7TmiLPmr6vnp5LnuqdcbiAgICogLSB0aW1lc3RhbXBTZWNvbmTvvJrml7bpl7TmiLPnp5LnuqdcbiAgICogLSBpZ25vcmXvvJrlv73nlaXlpITnkIbvvIzkv53mjIHljp/lp4vnirbmgIFcbiAgICovXG4gIGRhdGVWYWx1ZUhhbmRsaW5nPzogJ3RpbWVzdGFtcCcgfCAndGltZXN0YW1wU2Vjb25kJyB8ICdpZ25vcmUnO1xufVxuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlwZS50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvdGhlbWUvcGlwZS50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFl1bnphaVRoZW1lUGlwZUNvbmZpZyB7XG4gIGRhdGVGb3JtYXQ/OiBzdHJpbmc7XG59XG4iXX0=
|
@@ -113,4 +113,4 @@ export class DateTimePickerUtil {
|
|
113
113
|
}
|
114
114
|
}
|
115
115
|
export const dateTimePickerUtil = new DateTimePickerUtil();
|
116
|
-
//# sourceMappingURL=data:application/json;base64,
|
116
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlja2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9kYXRlLXRpbWUvcGlja2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsVUFBVSxFQUFFLHdCQUF3QixFQUFFLE1BQU0sRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUtqRix5QkFBeUI7QUFDekIsTUFBTSxPQUFPLGtCQUFrQjtJQUM3Qjs7OztPQUlHO0lBQ0gsSUFBSSxHQUFHO1FBQ0wsT0FBTyxJQUFJLElBQUksRUFBRSxDQUFDO0lBQ3BCLENBQUM7SUFDRDs7OztPQUlHO0lBQ0gsSUFBSSxJQUFJO1FBQ04sT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUNuQyxDQUFDO0lBQ0Q7Ozs7T0FJRztJQUNILFVBQVUsQ0FBQyxDQUFPO1FBQ2hCLE9BQU8sSUFBSSxJQUFJLENBQUMsQ0FBQyxDQUFDLFlBQVksRUFBRSxDQUFDLENBQUM7SUFD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yYWxseSBzZXJ2ZXMgYG56RGlzYWJsZWRUaW1lYFxuICAgKlxuICAgKiDnpoHnlKjkuYvlkI7ml7bpl7TvvIjpu5jorqTvvJrnjrDlnKjvvInvvIzkuIDoiKzmnI3liqHkuo4gYG56RGlzYWJsZWRUaW1lYFxuICAgKi9cbiAgZGlzYWJsZWRBZnRlclRpbWUob3B0aW9ucz86IHsgb2Zmc2V0U2Vjb25kcz86IG51bWJlciB9KTogRGlzYWJsZWRUaW1lRm4ge1xuICAgIHJldHVybiB0aGlzLmJhc2VEaXNhYmxlZFRpbWUoJ2FmdGVyJywgb3B0aW9ucz8ub2Zmc2V0U2Vjb25kcyk7XG4gIH1cbn1cblxuZXhwb3J0IGNvbnN0IGRhdGVUaW1lUGlja2VyVXRpbCA9IG5ldyBEYXRlVGltZVBpY2tlclV0aWwoKTtcbiJdfQ==
|
@@ -57,19 +57,16 @@ export function fixEndTimeOfRange(dates) {
|
|
57
57
|
return [startOfDay(dates[0]), endOfDay(dates[1])];
|
58
58
|
}
|
59
59
|
/**
|
60
|
-
*
|
61
|
-
* - If the argument is a number, it is treated as a timestamp.
|
60
|
+
* Convert to `Date` format
|
62
61
|
*
|
63
|
-
* @param
|
64
|
-
* @param defaultValue If parsing fails returned default value, default: `new Date(NaN)`
|
62
|
+
* @param value When is a number, it's treated as a timestamp; If it's seconds, you need to provide the `options.timestampSecond` parameter.
|
65
63
|
*/
|
66
64
|
export function toDate(value, options) {
|
67
|
-
|
68
|
-
options = { formatString: options };
|
69
|
-
const { formatString, defaultValue } = {
|
65
|
+
const { formatString, defaultValue, timestampSecond } = {
|
70
66
|
formatString: 'yyyy-MM-dd HH:mm:ss',
|
71
67
|
defaultValue: new Date(NaN),
|
72
|
-
|
68
|
+
timestampSecond: false,
|
69
|
+
...(typeof options === 'string' ? { formatString: options } : options)
|
73
70
|
};
|
74
71
|
if (value == null) {
|
75
72
|
return defaultValue;
|
@@ -77,8 +74,9 @@ export function toDate(value, options) {
|
|
77
74
|
if (value instanceof Date) {
|
78
75
|
return value;
|
79
76
|
}
|
80
|
-
if (typeof value === 'number' || (typeof value === 'string' &&
|
81
|
-
|
77
|
+
if (typeof value === 'number' || (typeof value === 'string' && /^[0-9]+$/.test(value))) {
|
78
|
+
const valueNumber = +value;
|
79
|
+
return new Date(timestampSecond ? valueNumber * 1000 : valueNumber);
|
82
80
|
}
|
83
81
|
let tryDate = parseISO(value);
|
84
82
|
if (isNaN(tryDate)) {
|
@@ -86,6 +84,13 @@ export function toDate(value, options) {
|
|
86
84
|
}
|
87
85
|
return isNaN(tryDate) ? defaultValue : tryDate;
|
88
86
|
}
|
87
|
+
/**
|
88
|
+
* Format date, supports `Date, number, string` types
|
89
|
+
*
|
90
|
+
* @param value When is a number, it is treated as a timestamp (Support seconds and milliseconds timestamp).
|
91
|
+
* @param formatString Please refer to [date-fnd format](https://date-fns.org/v2.30.0/docs/format) for string format
|
92
|
+
* @param dateLocale Recommended to be consistent with NG-ZORRO by using `inject(NZ_DATE_LOCALE)`
|
93
|
+
*/
|
89
94
|
export function formatDate(value, formatString, dateLocale) {
|
90
95
|
value = toDate(value);
|
91
96
|
if (isNaN(value))
|
@@ -93,4 +98,4 @@ export function formatDate(value, formatString, dateLocale) {
|
|
93
98
|
const langOpt = { locale: dateLocale };
|
94
99
|
return formatString === 'fn' ? formatDistanceToNow(value, langOpt) : format(value, formatString, langOpt);
|
95
100
|
}
|
96
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvZGF0ZS10aW1lL3RpbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLE9BQU8sRUFDUCxRQUFRLEVBQ1IsVUFBVSxFQUNWLFNBQVMsRUFDVCxTQUFTLEVBQ1QsS0FBSyxFQUNMLFFBQ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yBhIG51bWJlciwgaXQgaXMgdHJlYXRlZCBhcyBhIHRpbWVzdGFtcCAoU3VwcG9ydCBzZWNvbmRzIGFuZCBtaWxsaXNlY29uZHMgdGltZXN0YW1wKS5cbiAqIEBwYXJhbSBmb3JtYXRTdHJpbmcgUGxlYXNlIHJlZmVyIHRvIFtkYXRlLWZuZCBmb3JtYXRdKGh0dHBzOi8vZGF0ZS1mbnMub3JnL3YyLjMwLjAvZG9jcy9mb3JtYXQpIGZvciBzdHJpbmcgZm9ybWF0XG4gKiBAcGFyYW0gZGF0ZUxvY2FsZSBSZWNvbW1lbmRlZCB0byBiZSBjb25zaXN0ZW50IHdpdGggTkctWk9SUk8gYnkgdXNpbmcgYGluamVjdChOWl9EQVRFX0xPQ0FMRSlgXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBmb3JtYXREYXRlKHZhbHVlOiBEYXRlIHwgc3RyaW5nIHwgbnVtYmVyLCBmb3JtYXRTdHJpbmc6IHN0cmluZywgZGF0ZUxvY2FsZT86IERhdGVMb2NhbGUpOiBzdHJpbmcge1xuICB2YWx1ZSA9IHRvRGF0ZSh2YWx1ZSk7XG4gIGlmIChpc05hTih2YWx1ZSBhcyBOelNhZmVBbnkpKSByZXR1cm4gJyc7XG5cbiAgY29uc3QgbGFuZ09wdCA9IHsgbG9jYWxlOiBkYXRlTG9jYWxlIH07XG4gIHJldHVybiBmb3JtYXRTdHJpbmcgPT09ICdmbicgPyBmb3JtYXREaXN0YW5jZVRvTm93KHZhbHVlLCBsYW5nT3B0KSA6IGZvcm1hdCh2YWx1ZSwgZm9ybWF0U3RyaW5nLCBsYW5nT3B0KTtcbn1cbiJdfQ==
|
@@ -31,6 +31,10 @@ export function toBoolean(value, defaultValue = false) {
|
|
31
31
|
return value == null ? defaultValue : `${value}` !== 'false';
|
32
32
|
}
|
33
33
|
/**
|
34
|
+
* @deprecated Recommended to use the built-in `transform` and `static ngAcceptInputType_` can be removed
|
35
|
+
* - Use `@Input({ transform: booleanAttribute })` instead of `@InputBoolean()`
|
36
|
+
* - Use `@Input({ transform: (v: unknown) => (v == null ? null : booleanAttribute(v)) })` instead of `@InputBoolean(null)`
|
37
|
+
*
|
34
38
|
* Input decorator that handle a prop to do get/set automatically with toBoolean
|
35
39
|
*
|
36
40
|
* ```ts
|
@@ -45,6 +49,10 @@ export function toNumber(value, fallbackValue = 0) {
|
|
45
49
|
return !isNaN(parseFloat(value)) && !isNaN(Number(value)) ? Number(value) : fallbackValue;
|
46
50
|
}
|
47
51
|
/**
|
52
|
+
* @deprecated Recommended to use the built-in `transform` and `static ngAcceptInputType_` can be removed
|
53
|
+
* - Use `@Input({ transform: numberAttribute })` instead of `@InputNumber()`
|
54
|
+
* - Use `@Input({ transform: (v: unknown) => (v == null ? null : numberAttribute(v)) })` instead of `@InputNumber(null)`
|
55
|
+
*
|
48
56
|
* Input decorator that handle a prop to do get/set automatically with toNumber
|
49
57
|
*
|
50
58
|
* ```ts
|
@@ -55,4 +63,4 @@ export function toNumber(value, fallbackValue = 0) {
|
|
55
63
|
export function InputNumber(defaultValue = 0) {
|
56
64
|
return propDecoratorFactory('InputNumber', toNumber, defaultValue);
|
57
65
|
}
|
58
|
-
//# sourceMappingURL=data:application/json;base64,
|
66
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvZGVjb3JhdG9yL2NvbnZlcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBTXpDLFNBQVMsb0JBQW9CLENBQzNCLElBQVksRUFDWixRQUFzQyxFQUN0QyxZQUF1QjtJQUV2QixTQUFTLGFBQWEsQ0FDcEIsTUFBaUIsRUFDakIsUUFBZ0IsRUFDaEIsa0JBQXVEO1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3JhdG9yRmFjdG9yeSgnSW5wdXROdW1iZXInLCB0b051bWJlciwgZGVmYXVsdFZhbHVlKTtcbn1cbiJdfQ==
|
@@ -27,7 +27,7 @@ function makeFn(type, options) {
|
|
27
27
|
*
|
28
28
|
* ```ts
|
29
29
|
* class MockClass {
|
30
|
-
*
|
30
|
+
* readonly ngZone = inject(NgZone);
|
31
31
|
*
|
32
32
|
* {AT}ZoneOutside()
|
33
33
|
* runOutsideAngular(): void {}
|
@@ -44,7 +44,7 @@ export function ZoneOutside(options) {
|
|
44
44
|
*
|
45
45
|
* ```ts
|
46
46
|
* class MockClass {
|
47
|
-
*
|
47
|
+
* readonly ngZone = inject(NgZone);
|
48
48
|
*
|
49
49
|
* {AT}ZoneRun()
|
50
50
|
* run(): void {}
|
@@ -54,4 +54,4 @@ export function ZoneOutside(options) {
|
|
54
54
|
export function ZoneRun(options) {
|
55
55
|
return makeFn('run', options);
|
56
56
|
}
|
57
|
-
//# sourceMappingURL=data:application/json;base64,
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiem9uZS1vdXRzaWRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9kZWNvcmF0b3Ivem9uZS1vdXRzaWRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQVN6QyxTQUFTLE1BQU0sQ0FBQyxJQUFpQyxFQUFFLE9BQXFCO0lBQ3RFLE9BQU8sQ0FBQyxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsRUFBRSxFQUFFO1FBQzNCLE1BQU0sTUFBTSxHQUFHLFVBQVUsQ0FBQyxLQUFLLENBQUM7UUFDaEMsVUFBVSxDQUFDLEtBQUssR0FBRyxVQUFVLEdBQUcsSUFBaUI7WUFDL0Ms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nVuKG9wdGlvbnM/OiBab25lT3B0aW9ucyk6IERlY29yYXRvclR5cGUge1xuICByZXR1cm4gbWFrZUZuKCdydW4nLCBvcHRpb25zKTtcbn1cbiJdfQ==
|
@@ -27,4 +27,4 @@ export function MatchControl(controlName, matchingControlName) {
|
|
27
27
|
return null;
|
28
28
|
};
|
29
29
|
}
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0Y2gtY29udHJvbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvZm9ybS9tYXRjaC1jb250cm9sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBOzs7Ozs7Ozs7Ozs7R0FZRztBQUNILE1BQU0sVUFBVSxZQUFZLENBQUMsV0FBbUIsRUFBRSxtQkFBMkI7SUFDM0UsT0FBTyxDQUFDLFNBQTBCLEVBQUUsRUFBRTtRQUNwQyxNQUFNLE9BQU8sR0FBRyxTQUFTLENBQUMsR0FBRyxDQUFDLFdBQVcsQ0FBRSxDQUFDO1FBQzVDLE1BQU0sZUFBZSxHQUFHLFNBQVMsQ0FBQyxHQUFHLENBQUMsbUJBQW1CLENBQUUsQ0FBQztRQUM1RCxJQUFJLGVBQWUsQ0FBQyxNQUFNLElBQUksQ0FBQyxlQUFlLENBQUMsTUFBTSxDQUFDLFlBQVksRUFBRSxDQUFDO1lBQ25FLE9BQU8sSUFBSSxDQUFDO1FBQ2QsQ0FBQztRQUNELElBQUksT0FBTyxDQUFDLEtBQUssS0FBSyxlQUFlLENBQUMsS0FBSyxFQUFFLENBQUM7WUFDNUMsZUFBZSxDQUFDLFNBQVMsQ0FBQyxFQUFFLFlBQVksRUFBRSxJQUFJLEVBQUUsQ0FBQyxDQUFDO1FBQ3BELENBQUM7YUFBTSxDQUFDO1lBQ04sZUFBZ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