@yelon/util 13.2.0 → 13.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/array/array-type.service.d.ts +0 -0
- package/array/array.d.ts +0 -0
- package/array/array.service.d.ts +0 -0
- package/array/index.d.ts +0 -0
- package/array/package.json +0 -0
- package/browser/browser.d.ts +0 -0
- package/browser/cookie.service.d.ts +0 -0
- package/browser/copy.d.ts +0 -0
- package/browser/index.d.ts +0 -0
- package/browser/is-empty.d.ts +0 -0
- package/browser/package.json +0 -0
- package/browser/scroll.service.d.ts +0 -0
- package/browser/style.d.ts +0 -0
- package/config/abc/date-picker.type.d.ts +0 -0
- package/config/abc/error-collect.type.d.ts +0 -0
- package/config/abc/image.type.d.ts +0 -0
- package/config/abc/index.d.ts +0 -0
- package/config/abc/loading.type.d.ts +0 -0
- package/config/abc/lodop.type.d.ts +0 -0
- package/config/abc/media.type.d.ts +0 -0
- package/config/abc/onboarding.type.d.ts +0 -0
- package/config/abc/page-header.type.d.ts +0 -0
- package/config/abc/pdf.type.d.ts +0 -0
- package/config/abc/qr.type.d.ts +0 -0
- package/config/abc/se.type.d.ts +0 -0
- package/config/abc/sg.type.d.ts +0 -0
- package/config/abc/st.type.d.ts +0 -0
- package/config/abc/sv.type.d.ts +0 -0
- package/config/abc/xlsx.type.d.ts +0 -0
- package/config/abc/zip.type.d.ts +0 -0
- package/config/acl/acl.type.d.ts +0 -0
- package/config/auth/auth.type.d.ts +0 -0
- package/config/bis/bis.type.d.ts +0 -0
- package/config/cache/cache.type.d.ts +0 -0
- package/config/chart/chart.type.d.ts +0 -0
- package/config/config.d.ts +0 -0
- package/config/config.service.d.ts +0 -0
- package/config/config.types.d.ts +0 -0
- package/config/index.d.ts +0 -0
- package/config/mock/mock.type.d.ts +0 -0
- package/config/package.json +0 -0
- package/config/sf/sf.type.d.ts +0 -0
- package/config/stomp/stomp.type.d.ts +0 -0
- package/config/theme/http.type.d.ts +0 -0
- package/config/theme/i18n.type.d.ts +0 -0
- package/config/theme/index.d.ts +0 -0
- package/config/theme/responsive.type.d.ts +0 -0
- package/config/util/array.type.d.ts +0 -0
- package/config/util/currency.type.d.ts +0 -0
- package/date-time/date-time.d.ts +0 -0
- package/date-time/index.d.ts +0 -0
- package/date-time/package.json +0 -0
- package/date-time/picker.d.ts +0 -0
- package/date-time/time.d.ts +5 -2
- package/decorator/convert.d.ts +0 -0
- package/decorator/decorator.d.ts +0 -0
- package/decorator/index.d.ts +0 -0
- package/decorator/package.json +0 -0
- package/decorator/zone-outside.d.ts +0 -0
- package/esm2020/array/array-type.service.mjs +0 -0
- package/esm2020/array/array.mjs +0 -0
- package/esm2020/array/array.service.mjs +3 -3
- package/esm2020/array/index.mjs +0 -0
- package/esm2020/browser/browser.mjs +0 -0
- package/esm2020/browser/cookie.service.mjs +3 -3
- package/esm2020/browser/copy.mjs +0 -0
- package/esm2020/browser/index.mjs +0 -0
- package/esm2020/browser/is-empty.mjs +0 -0
- package/esm2020/browser/scroll.service.mjs +3 -3
- package/esm2020/browser/style.mjs +0 -0
- package/esm2020/config/abc/date-picker.type.mjs +0 -0
- package/esm2020/config/abc/error-collect.type.mjs +0 -0
- package/esm2020/config/abc/image.type.mjs +0 -0
- package/esm2020/config/abc/index.mjs +0 -0
- package/esm2020/config/abc/loading.type.mjs +0 -0
- package/esm2020/config/abc/lodop.type.mjs +0 -0
- package/esm2020/config/abc/media.type.mjs +0 -0
- package/esm2020/config/abc/onboarding.type.mjs +0 -0
- package/esm2020/config/abc/page-header.type.mjs +0 -0
- package/esm2020/config/abc/pdf.type.mjs +0 -0
- package/esm2020/config/abc/qr.type.mjs +0 -0
- package/esm2020/config/abc/se.type.mjs +0 -0
- package/esm2020/config/abc/sg.type.mjs +0 -0
- package/esm2020/config/abc/st.type.mjs +0 -0
- package/esm2020/config/abc/sv.type.mjs +0 -0
- package/esm2020/config/abc/xlsx.type.mjs +0 -0
- package/esm2020/config/abc/zip.type.mjs +0 -0
- package/esm2020/config/acl/acl.type.mjs +0 -0
- package/esm2020/config/auth/auth.type.mjs +0 -0
- package/esm2020/config/bis/bis.type.mjs +0 -0
- package/esm2020/config/cache/cache.type.mjs +0 -0
- package/esm2020/config/chart/chart.type.mjs +0 -0
- package/esm2020/config/config.mjs +0 -0
- package/esm2020/config/config.service.mjs +3 -3
- package/esm2020/config/config.types.mjs +0 -0
- package/esm2020/config/index.mjs +0 -0
- package/esm2020/config/mock/mock.type.mjs +0 -0
- package/esm2020/config/sf/sf.type.mjs +0 -0
- package/esm2020/config/stomp/stomp.type.mjs +0 -0
- package/esm2020/config/theme/http.type.mjs +0 -0
- package/esm2020/config/theme/i18n.type.mjs +0 -0
- package/esm2020/config/theme/index.mjs +0 -0
- package/esm2020/config/theme/responsive.type.mjs +0 -0
- package/esm2020/config/util/array.type.mjs +0 -0
- package/esm2020/config/util/currency.type.mjs +0 -0
- package/esm2020/date-time/date-time.mjs +0 -0
- package/esm2020/date-time/index.mjs +0 -0
- package/esm2020/date-time/picker.mjs +0 -0
- package/esm2020/date-time/time.mjs +7 -6
- package/esm2020/decorator/convert.mjs +0 -0
- package/esm2020/decorator/decorator.mjs +0 -0
- package/esm2020/decorator/index.mjs +0 -0
- package/esm2020/decorator/zone-outside.mjs +0 -0
- package/esm2020/form/form.mjs +0 -0
- package/esm2020/form/index.mjs +0 -0
- package/esm2020/form/match-control.mjs +0 -0
- package/esm2020/form/validators.mjs +0 -0
- package/esm2020/format/currency.service.mjs +3 -3
- package/esm2020/format/currency.types.mjs +0 -0
- package/esm2020/format/format.mjs +0 -0
- package/esm2020/format/index.mjs +0 -0
- package/esm2020/format/string.mjs +0 -0
- package/esm2020/format/validate.mjs +0 -0
- package/esm2020/index.mjs +0 -0
- package/esm2020/math/in-range.mjs +0 -0
- package/esm2020/math/index.mjs +0 -0
- package/esm2020/math/math.mjs +0 -0
- package/esm2020/math/round.mjs +0 -0
- package/esm2020/other/assert.mjs +0 -0
- package/esm2020/other/deep.mjs +0 -0
- package/esm2020/other/index.mjs +0 -0
- package/esm2020/other/lazy.service.mjs +3 -3
- package/esm2020/other/logger.mjs +0 -0
- package/esm2020/other/other.mjs +0 -0
- package/esm2020/other/resize.mjs +0 -0
- package/esm2020/other/url.mjs +0 -0
- package/esm2020/pipes/currency/cny.pipe.mjs +3 -3
- package/esm2020/pipes/currency/index.mjs +0 -0
- package/esm2020/pipes/currency/mega.pipe.mjs +3 -3
- package/esm2020/pipes/currency/module.mjs +4 -4
- package/esm2020/pipes/currency/pipe-currency.mjs +0 -0
- package/esm2020/pipes/currency/price.pipe.mjs +3 -3
- package/esm2020/pipes/filter/filter.pipe.mjs +3 -3
- package/esm2020/pipes/filter/index.mjs +0 -0
- package/esm2020/pipes/filter/module.mjs +4 -4
- package/esm2020/pipes/filter/pipe-filter.mjs +0 -0
- package/esm2020/pipes/format/index.mjs +0 -0
- package/esm2020/pipes/format/mask.pipe.mjs +3 -3
- package/esm2020/pipes/format/module.mjs +4 -4
- package/esm2020/pipes/format/pipe-format.mjs +0 -0
- package/esm2020/pipes/index.mjs +0 -0
- package/esm2020/pipes/pipes.mjs +0 -0
- package/esm2020/token/index.mjs +0 -0
- package/esm2020/token/page-visibility.mjs +0 -0
- package/esm2020/token/token.mjs +0 -0
- package/esm2020/token/window.mjs +0 -0
- package/esm2020/yelon-util.mjs +0 -0
- package/fesm2015/array.mjs +3 -3
- package/fesm2015/array.mjs.map +0 -0
- package/fesm2015/browser.mjs +6 -6
- package/fesm2015/browser.mjs.map +0 -0
- package/fesm2015/config.mjs +3 -3
- package/fesm2015/config.mjs.map +0 -0
- package/fesm2015/date-time.mjs +6 -5
- package/fesm2015/date-time.mjs.map +1 -1
- package/fesm2015/decorator.mjs +0 -0
- package/fesm2015/decorator.mjs.map +0 -0
- package/fesm2015/form.mjs +0 -0
- package/fesm2015/form.mjs.map +0 -0
- package/fesm2015/format.mjs +3 -3
- package/fesm2015/format.mjs.map +0 -0
- package/fesm2015/math.mjs +0 -0
- package/fesm2015/math.mjs.map +0 -0
- package/fesm2015/other.mjs +3 -3
- package/fesm2015/other.mjs.map +0 -0
- package/fesm2015/pipe-currency.mjs +13 -13
- package/fesm2015/pipe-currency.mjs.map +0 -0
- package/fesm2015/pipe-filter.mjs +7 -7
- package/fesm2015/pipe-filter.mjs.map +0 -0
- package/fesm2015/pipe-format.mjs +7 -7
- package/fesm2015/pipe-format.mjs.map +0 -0
- package/fesm2015/pipes.mjs +0 -0
- package/fesm2015/pipes.mjs.map +0 -0
- package/fesm2015/token.mjs +0 -0
- package/fesm2015/token.mjs.map +0 -0
- package/fesm2015/yelon-util.mjs +0 -0
- package/fesm2015/yelon-util.mjs.map +0 -0
- package/fesm2020/array.mjs +3 -3
- package/fesm2020/array.mjs.map +0 -0
- package/fesm2020/browser.mjs +6 -6
- package/fesm2020/browser.mjs.map +0 -0
- package/fesm2020/config.mjs +3 -3
- package/fesm2020/config.mjs.map +0 -0
- package/fesm2020/date-time.mjs +6 -5
- package/fesm2020/date-time.mjs.map +1 -1
- package/fesm2020/decorator.mjs +0 -0
- package/fesm2020/decorator.mjs.map +0 -0
- package/fesm2020/form.mjs +0 -0
- package/fesm2020/form.mjs.map +0 -0
- package/fesm2020/format.mjs +3 -3
- package/fesm2020/format.mjs.map +0 -0
- package/fesm2020/math.mjs +0 -0
- package/fesm2020/math.mjs.map +0 -0
- package/fesm2020/other.mjs +3 -3
- package/fesm2020/other.mjs.map +0 -0
- package/fesm2020/pipe-currency.mjs +13 -13
- package/fesm2020/pipe-currency.mjs.map +0 -0
- package/fesm2020/pipe-filter.mjs +7 -7
- package/fesm2020/pipe-filter.mjs.map +0 -0
- package/fesm2020/pipe-format.mjs +7 -7
- package/fesm2020/pipe-format.mjs.map +0 -0
- package/fesm2020/pipes.mjs +0 -0
- package/fesm2020/pipes.mjs.map +0 -0
- package/fesm2020/token.mjs +0 -0
- package/fesm2020/token.mjs.map +0 -0
- package/fesm2020/yelon-util.mjs +0 -0
- package/fesm2020/yelon-util.mjs.map +0 -0
- package/form/form.d.ts +0 -0
- package/form/index.d.ts +0 -0
- package/form/match-control.d.ts +0 -0
- package/form/package.json +0 -0
- package/form/validators.d.ts +0 -0
- package/format/currency.service.d.ts +0 -0
- package/format/currency.types.d.ts +0 -0
- package/format/format.d.ts +0 -0
- package/format/index.d.ts +0 -0
- package/format/package.json +0 -0
- package/format/string.d.ts +0 -0
- package/format/validate.d.ts +0 -0
- package/index.d.ts +0 -0
- package/math/in-range.d.ts +0 -0
- package/math/index.d.ts +0 -0
- package/math/math.d.ts +0 -0
- package/math/package.json +0 -0
- package/math/round.d.ts +0 -0
- package/other/assert.d.ts +0 -0
- package/other/deep.d.ts +0 -0
- package/other/index.d.ts +0 -0
- package/other/lazy.service.d.ts +0 -0
- package/other/logger.d.ts +0 -0
- package/other/other.d.ts +0 -0
- package/other/package.json +0 -0
- package/other/resize.d.ts +0 -0
- package/other/url.d.ts +0 -0
- package/package.json +1 -1
- package/pipes/currency/cny.pipe.d.ts +0 -0
- package/pipes/currency/index.d.ts +0 -0
- package/pipes/currency/mega.pipe.d.ts +0 -0
- package/pipes/currency/module.d.ts +0 -0
- package/pipes/currency/package.json +0 -0
- package/pipes/currency/pipe-currency.d.ts +0 -0
- package/pipes/currency/price.pipe.d.ts +0 -0
- package/pipes/filter/filter.pipe.d.ts +0 -0
- package/pipes/filter/index.d.ts +0 -0
- package/pipes/filter/module.d.ts +0 -0
- package/pipes/filter/package.json +0 -0
- package/pipes/filter/pipe-filter.d.ts +0 -0
- package/pipes/format/index.d.ts +0 -0
- package/pipes/format/mask.pipe.d.ts +0 -0
- package/pipes/format/module.d.ts +0 -0
- package/pipes/format/package.json +0 -0
- package/pipes/format/pipe-format.d.ts +0 -0
- package/pipes/index.d.ts +0 -0
- package/pipes/package.json +0 -0
- package/pipes/pipes.d.ts +0 -0
- package/token/index.d.ts +0 -0
- package/token/package.json +0 -0
- package/token/page-visibility.d.ts +0 -0
- package/token/token.d.ts +0 -0
- package/token/window.d.ts +0 -0
- package/yelon-util.d.ts +0 -0
package/LICENSE
CHANGED
File without changes
|
package/README.md
CHANGED
File without changes
|
File without changes
|
package/array/array.d.ts
CHANGED
File without changes
|
package/array/array.service.d.ts
CHANGED
File without changes
|
package/array/index.d.ts
CHANGED
File without changes
|
package/array/package.json
CHANGED
File without changes
|
package/browser/browser.d.ts
CHANGED
File without changes
|
File without changes
|
package/browser/copy.d.ts
CHANGED
File without changes
|
package/browser/index.d.ts
CHANGED
File without changes
|
package/browser/is-empty.d.ts
CHANGED
File without changes
|
package/browser/package.json
CHANGED
File without changes
|
File without changes
|
package/browser/style.d.ts
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/config/abc/index.d.ts
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/config/abc/pdf.type.d.ts
CHANGED
File without changes
|
package/config/abc/qr.type.d.ts
CHANGED
File without changes
|
package/config/abc/se.type.d.ts
CHANGED
File without changes
|
package/config/abc/sg.type.d.ts
CHANGED
File without changes
|
package/config/abc/st.type.d.ts
CHANGED
File without changes
|
package/config/abc/sv.type.d.ts
CHANGED
File without changes
|
File without changes
|
package/config/abc/zip.type.d.ts
CHANGED
File without changes
|
package/config/acl/acl.type.d.ts
CHANGED
File without changes
|
File without changes
|
package/config/bis/bis.type.d.ts
CHANGED
File without changes
|
File without changes
|
File without changes
|
package/config/config.d.ts
CHANGED
File without changes
|
File without changes
|
package/config/config.types.d.ts
CHANGED
File without changes
|
package/config/index.d.ts
CHANGED
File without changes
|
File without changes
|
package/config/package.json
CHANGED
File without changes
|
package/config/sf/sf.type.d.ts
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/config/theme/index.d.ts
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/date-time/date-time.d.ts
CHANGED
File without changes
|
package/date-time/index.d.ts
CHANGED
File without changes
|
package/date-time/package.json
CHANGED
File without changes
|
package/date-time/picker.d.ts
CHANGED
File without changes
|
package/date-time/time.d.ts
CHANGED
@@ -6,8 +6,11 @@ import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
6
|
*
|
7
7
|
* @param type 类型,带 `-` 表示过去一个时间,若指定 `number` 表示天数
|
8
8
|
* @param time 开始时间
|
9
|
+
* @param ignoreMaxTime 忽略追加结束日期的最大时间值
|
9
10
|
*/
|
10
|
-
export declare function getTimeDistance(type: 'today' | '-today' | 'yesterday' | 'week' | '-week' | 'month' | '-month' | 'year' | '-year' | number, time?: Date | string | number
|
11
|
+
export declare function getTimeDistance(type: 'today' | '-today' | 'yesterday' | 'week' | '-week' | 'month' | '-month' | 'year' | '-year' | number, time?: Date | string | number, options?: {
|
12
|
+
ignoreMaxTime?: boolean;
|
13
|
+
}): [Date, Date];
|
11
14
|
/**
|
12
15
|
* fix time is the most, big value
|
13
16
|
*/
|
@@ -23,4 +26,4 @@ export declare type ToDateOptions = string | {
|
|
23
26
|
* @param formatString If parsing fails try to parse the date by pressing `formatString`
|
24
27
|
* @param defaultValue If parsing fails returned default value, default: `new Date(NaN)`
|
25
28
|
*/
|
26
|
-
export declare function toDate(value
|
29
|
+
export declare function toDate(value?: Date | string | number | null, options?: ToDateOptions): Date;
|
package/decorator/convert.d.ts
CHANGED
File without changes
|
package/decorator/decorator.d.ts
CHANGED
File without changes
|
package/decorator/index.d.ts
CHANGED
File without changes
|
package/decorator/package.json
CHANGED
File without changes
|
File without changes
|
File without changes
|
package/esm2020/array/array.mjs
CHANGED
File without changes
|
@@ -269,9 +269,9 @@ export class ArrayService {
|
|
269
269
|
.values());
|
270
270
|
}
|
271
271
|
}
|
272
|
-
ArrayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
273
|
-
ArrayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
272
|
+
ArrayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: ArrayService, deps: [{ token: i1.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
273
|
+
ArrayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: ArrayService, providedIn: 'root' });
|
274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: ArrayService, decorators: [{
|
275
275
|
type: Injectable,
|
276
276
|
args: [{ providedIn: 'root' }]
|
277
277
|
}], ctorParameters: function () { return [{ type: i1.YunzaiConfigService }]; } });
|
package/esm2020/array/index.mjs
CHANGED
File without changes
|
File without changes
|
@@ -91,9 +91,9 @@ export class CookieService {
|
|
91
91
|
this.doc.cookie = '';
|
92
92
|
}
|
93
93
|
}
|
94
|
-
CookieService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
95
|
-
CookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
94
|
+
CookieService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CookieService, deps: [{ token: DOCUMENT }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
|
95
|
+
CookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CookieService, providedIn: 'root' });
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CookieService, decorators: [{
|
97
97
|
type: Injectable,
|
98
98
|
args: [{ providedIn: 'root' }]
|
99
99
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
package/esm2020/browser/copy.mjs
CHANGED
File without changes
|
File without changes
|
File without changes
|
@@ -76,9 +76,9 @@ export class ScrollService {
|
|
76
76
|
this.scrollToElement(this._getDoc().body, topOffset);
|
77
77
|
}
|
78
78
|
}
|
79
|
-
ScrollService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
80
|
-
ScrollService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
79
|
+
ScrollService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: ScrollService, deps: [{ token: DOCUMENT }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
|
80
|
+
ScrollService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: ScrollService, providedIn: 'root' });
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: ScrollService, decorators: [{
|
82
82
|
type: Injectable,
|
83
83
|
args: [{ providedIn: 'root' }]
|
84
84
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -23,9 +23,9 @@ export class YunzaiConfigService {
|
|
23
23
|
this.config[componentName] = { ...this.config[componentName], ...value };
|
24
24
|
}
|
25
25
|
}
|
26
|
-
YunzaiConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
27
|
-
YunzaiConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
26
|
+
YunzaiConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: YunzaiConfigService, deps: [{ token: YUNZAI_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
27
|
+
YunzaiConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: YunzaiConfigService, providedIn: 'root' });
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: YunzaiConfigService, decorators: [{
|
29
29
|
type: Injectable,
|
30
30
|
args: [{ providedIn: 'root' }]
|
31
31
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
File without changes
|
package/esm2020/config/index.mjs
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -6,14 +6,15 @@ import { addDays, endOfDay, endOfMonth, endOfWeek, endOfYear, parse, parseISO, s
|
|
6
6
|
*
|
7
7
|
* @param type 类型,带 `-` 表示过去一个时间,若指定 `number` 表示天数
|
8
8
|
* @param time 开始时间
|
9
|
+
* @param ignoreMaxTime 忽略追加结束日期的最大时间值
|
9
10
|
*/
|
10
|
-
export function getTimeDistance(type, time) {
|
11
|
+
export function getTimeDistance(type, time, options) {
|
11
12
|
time = time
|
12
13
|
? typeof time === 'string'
|
13
14
|
? parse(time, 'yyyy-MM-dd HH:mm:ss', new Date())
|
14
15
|
: new Date(time)
|
15
16
|
: new Date();
|
16
|
-
const
|
17
|
+
const opt = { weekStartsOn: 1 };
|
17
18
|
let res;
|
18
19
|
switch (type) {
|
19
20
|
case 'today':
|
@@ -26,10 +27,10 @@ export function getTimeDistance(type, time) {
|
|
26
27
|
res = [addDays(time, -1), addDays(time, -1)];
|
27
28
|
break;
|
28
29
|
case 'week':
|
29
|
-
res = [startOfWeek(time,
|
30
|
+
res = [startOfWeek(time, opt), endOfWeek(time, opt)];
|
30
31
|
break;
|
31
32
|
case '-week':
|
32
|
-
res = [startOfWeek(subWeeks(time, 1),
|
33
|
+
res = [startOfWeek(subWeeks(time, 1), opt), endOfWeek(subWeeks(time, 1), opt)];
|
33
34
|
break;
|
34
35
|
case 'month':
|
35
36
|
res = [startOfMonth(time), endOfMonth(time)];
|
@@ -47,7 +48,7 @@ export function getTimeDistance(type, time) {
|
|
47
48
|
res = type > 0 ? [time, addDays(time, type)] : [addDays(time, type), time];
|
48
49
|
break;
|
49
50
|
}
|
50
|
-
return fixEndTimeOfRange(res);
|
51
|
+
return options?.ignoreMaxTime ? res : fixEndTimeOfRange(res);
|
51
52
|
}
|
52
53
|
/**
|
53
54
|
* fix time is the most, big value
|
@@ -85,4 +86,4 @@ export function toDate(value, options) {
|
|
85
86
|
}
|
86
87
|
return isNaN(tryDate) ? defaultValue : tryDate;
|
87
88
|
}
|
88
|
-
//# sourceMappingURL=data:application/json;base64,
|
89
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvZGF0ZS10aW1lL3RpbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLE9BQU8sRUFDUCxRQUFRLEVBQ1IsVUFBVSxFQUNWLFNBQVMsRUFDVCxTQUFTLEVBQ1QsS0FBSyxFQUNMLFFBQVEsRUFDUixVQUFVLEVBQ1YsWUFBWSxFQUNaLFdBQVcsRUFDWCxXQUFXLEVBQ1gsU0FBUyxFQUNULFFBQVEsRUFDUixRQUFRLEVBQ1QsTUFBTSxVQUFVLENBQUM7QUFJbEI7Ozs7Ozs7O0dBUUc7QUFDSCxNQUFNLFVBQVUsZUFBZSxDQUM3QixJQUEwRyxFQUMxRyxJQUE2QixFQUM3QixPQUFxQztJQUVyQyxJQUF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F0ZShOYU4pLFxuICAgIC4uLm9wdGlvbnNcbiAgfTtcbiAgaWYgKHZhbHVlID09IG51bGwpIHtcbiAgICByZXR1cm4gZGVmYXVsdFZhbHVlO1xuICB9XG4gIGlmICh2YWx1ZSBpbnN0YW5jZW9mIERhdGUpIHtcbiAgICByZXR1cm4gdmFsdWU7XG4gIH1cbiAgaWYgKHR5cGVvZiB2YWx1ZSA9PT0gJ251bWJlcicgfHwgKHR5cGVvZiB2YWx1ZSA9PT0gJ3N0cmluZycgJiYgL1swLTldezEwLDEzfS8udGVzdCh2YWx1ZSkpKSB7XG4gICAgcmV0dXJuIG5ldyBEYXRlKCt2YWx1ZSk7XG4gIH1cbiAgbGV0IHRyeURhdGUgPSBwYXJzZUlTTyh2YWx1ZSk7XG4gIGlmIChpc05hTih0cnlEYXRlIGFzIE56U2FmZUFueSkpIHtcbiAgICB0cnlEYXRlID0gcGFyc2UodmFsdWUsIGZvcm1hdFN0cmluZyEsIG5ldyBEYXRlKCkpO1xuICB9XG5cbiAgcmV0dXJuIGlzTmFOKHRyeURhdGUgYXMgTnpTYWZlQW55KSA/IGRlZmF1bHRWYWx1ZSA6IHRyeURhdGU7XG59XG4iXX0=
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/esm2020/form/form.mjs
CHANGED
File without changes
|
package/esm2020/form/index.mjs
CHANGED
File without changes
|
File without changes
|
File without changes
|
@@ -223,9 +223,9 @@ export class CurrencyService {
|
|
223
223
|
return ret;
|
224
224
|
}
|
225
225
|
}
|
226
|
-
CurrencyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
227
|
-
CurrencyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
226
|
+
CurrencyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyService, deps: [{ token: i1.YunzaiConfigService }, { token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Injectable });
|
227
|
+
CurrencyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyService, providedIn: 'root' });
|
228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyService, decorators: [{
|
229
229
|
type: Injectable,
|
230
230
|
args: [{ providedIn: 'root' }]
|
231
231
|
}], ctorParameters: function () { return [{ type: i1.YunzaiConfigService }, { type: undefined, decorators: [{
|
File without changes
|
File without changes
|
package/esm2020/format/index.mjs
CHANGED
File without changes
|
File without changes
|
File without changes
|
package/esm2020/index.mjs
CHANGED
File without changes
|
File without changes
|
package/esm2020/math/index.mjs
CHANGED
File without changes
|
package/esm2020/math/math.mjs
CHANGED
File without changes
|
package/esm2020/math/round.mjs
CHANGED
File without changes
|
package/esm2020/other/assert.mjs
CHANGED
File without changes
|
package/esm2020/other/deep.mjs
CHANGED
File without changes
|
package/esm2020/other/index.mjs
CHANGED
File without changes
|
@@ -92,9 +92,9 @@ export class LazyService {
|
|
92
92
|
});
|
93
93
|
}
|
94
94
|
}
|
95
|
-
LazyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
96
|
-
LazyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
95
|
+
LazyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LazyService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
96
|
+
LazyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LazyService, providedIn: 'root' });
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LazyService, decorators: [{
|
98
98
|
type: Injectable,
|
99
99
|
args: [{ providedIn: 'root' }]
|
100
100
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
package/esm2020/other/logger.mjs
CHANGED
File without changes
|
package/esm2020/other/other.mjs
CHANGED
File without changes
|
package/esm2020/other/resize.mjs
CHANGED
File without changes
|
package/esm2020/other/url.mjs
CHANGED
File without changes
|
@@ -14,9 +14,9 @@ export class CurrencyCNYPipe {
|
|
14
14
|
return this.srv.cny(value, options);
|
15
15
|
}
|
16
16
|
}
|
17
|
-
CurrencyCNYPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
18
|
-
CurrencyCNYPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
17
|
+
CurrencyCNYPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyCNYPipe, deps: [{ token: i1.CurrencyService }], target: i0.ɵɵFactoryTarget.Pipe });
|
18
|
+
CurrencyCNYPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyCNYPipe, name: "cny" });
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyCNYPipe, decorators: [{
|
20
20
|
type: Pipe,
|
21
21
|
args: [{ name: 'cny' }]
|
22
22
|
}], ctorParameters: function () { return [{ type: i1.CurrencyService }]; } });
|
File without changes
|
@@ -17,9 +17,9 @@ export class CurrencyMegaPipe {
|
|
17
17
|
return res.value + (this.isCN ? res.unitI18n : res.unit);
|
18
18
|
}
|
19
19
|
}
|
20
|
-
CurrencyMegaPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
21
|
-
CurrencyMegaPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
20
|
+
CurrencyMegaPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyMegaPipe, deps: [{ token: i1.CurrencyService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
|
21
|
+
CurrencyMegaPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyMegaPipe, name: "mega" });
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyMegaPipe, decorators: [{
|
23
23
|
type: Pipe,
|
24
24
|
args: [{ name: 'mega' }]
|
25
25
|
}], ctorParameters: function () { return [{ type: i1.CurrencyService }, { type: undefined, decorators: [{
|
@@ -6,10 +6,10 @@ import * as i0 from "@angular/core";
|
|
6
6
|
const PIPES = [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe];
|
7
7
|
export class CurrencyPipeModule {
|
8
8
|
}
|
9
|
-
CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
10
|
-
CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.
|
11
|
-
CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
9
|
+
CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
10
|
+
CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPipeModule, declarations: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe], exports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe] });
|
11
|
+
CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPipeModule });
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPipeModule, decorators: [{
|
13
13
|
type: NgModule,
|
14
14
|
args: [{
|
15
15
|
declarations: PIPES,
|
File without changes
|
@@ -18,9 +18,9 @@ export class CurrencyPricePipe {
|
|
18
18
|
return this.srv.format(value, options);
|
19
19
|
}
|
20
20
|
}
|
21
|
-
CurrencyPricePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
22
|
-
CurrencyPricePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
21
|
+
CurrencyPricePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPricePipe, deps: [{ token: i1.CurrencyService }], target: i0.ɵɵFactoryTarget.Pipe });
|
22
|
+
CurrencyPricePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPricePipe, name: "price" });
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPricePipe, decorators: [{
|
24
24
|
type: Pipe,
|
25
25
|
args: [{ name: 'price' }]
|
26
26
|
}], ctorParameters: function () { return [{ type: i1.CurrencyService }]; } });
|