@dereekb/dbx-core 9.23.21 → 9.23.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/pipe/date/date.pipe.module.mjs +64 -5
- package/esm2020/lib/pipe/date/datedistance.pipe.mjs +4 -20
- package/esm2020/lib/pipe/date/daterangedistance.pipe.mjs +20 -0
- package/esm2020/lib/pipe/date/datetimerangeonlydistance.pipe.mjs +2 -2
- package/esm2020/lib/pipe/date/index.mjs +5 -1
- package/esm2020/lib/pipe/date/systemdatetotargetdate.pipe.mjs +23 -0
- package/esm2020/lib/pipe/date/targetdatetosystemdate.pipe.mjs +23 -0
- package/esm2020/lib/pipe/date/timedistance.pipe.mjs +3 -3
- package/esm2020/lib/pipe/date/timezoneabbreviation.pipe.mjs +23 -0
- package/fesm2015/dereekb-dbx-core.mjs +146 -28
- package/fesm2015/dereekb-dbx-core.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-core.mjs +144 -28
- package/fesm2020/dereekb-dbx-core.mjs.map +1 -1
- package/lib/pipe/date/date.pipe.module.d.ts +17 -13
- package/lib/pipe/date/daterangedistance.pipe.d.ts +9 -0
- package/lib/pipe/date/index.d.ts +4 -0
- package/lib/pipe/date/systemdatetotargetdate.pipe.d.ts +12 -0
- package/lib/pipe/date/targetdatetosystemdate.pipe.d.ts +12 -0
- package/lib/pipe/date/timedistance.pipe.d.ts +1 -1
- package/lib/pipe/date/timezoneabbreviation.pipe.d.ts +12 -0
- package/package.json +4 -4
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./
|
|
3
|
-
import * as i2 from "./
|
|
4
|
-
import * as i3 from "./
|
|
5
|
-
import * as i4 from "./
|
|
6
|
-
import * as i5 from "./
|
|
7
|
-
import * as i6 from "./
|
|
8
|
-
import * as i7 from "./
|
|
9
|
-
import * as i8 from "./
|
|
10
|
-
import * as i9 from "./
|
|
11
|
-
import * as i10 from "./
|
|
12
|
-
import * as i11 from "./
|
|
13
|
-
import * as i12 from "./
|
|
2
|
+
import * as i1 from "./datedistance.pipe";
|
|
3
|
+
import * as i2 from "./daterangedistance.pipe";
|
|
4
|
+
import * as i3 from "./targetdatetosystemdate.pipe";
|
|
5
|
+
import * as i4 from "./systemdatetotargetdate.pipe";
|
|
6
|
+
import * as i5 from "./timezoneabbreviation.pipe";
|
|
7
|
+
import * as i6 from "./datefromtoformat.pipe";
|
|
8
|
+
import * as i7 from "./datedayrange.pipe";
|
|
9
|
+
import * as i8 from "./datedaytimerange.pipe";
|
|
10
|
+
import * as i9 from "./datetimerangeonly.pipe";
|
|
11
|
+
import * as i10 from "./datetimerange.pipe";
|
|
12
|
+
import * as i11 from "./datetimerangeonlydistance.pipe";
|
|
13
|
+
import * as i12 from "./dateformatdistance.pipe";
|
|
14
|
+
import * as i13 from "./minutesstring.pipe";
|
|
15
|
+
import * as i14 from "./timedistance.pipe";
|
|
16
|
+
import * as i15 from "./tojsdate.pipe";
|
|
17
|
+
import * as i16 from "./tominutes.pipe";
|
|
14
18
|
export declare class DbxDatePipeModule {
|
|
15
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxDatePipeModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxDatePipeModule, [typeof i1.
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxDatePipeModule, [typeof i1.DateDistancePipe, typeof i2.DateRangeDistancePipe, typeof i3.TargetDateToSystemDatePipe, typeof i4.SystemDateToTargetDatePipe, typeof i5.TimezoneAbbreviationPipe, typeof i6.DateFromToTimePipe, typeof i7.DateDayRangePipe, typeof i8.DateDayTimeRangePipe, typeof i9.DateTimeRangeOnlyPipe, typeof i10.DateTimeRangePipe, typeof i11.DateTimeRangeOnlyDistancePipe, typeof i12.DateFormatDistancePipe, typeof i13.MinutesStringPipe, typeof i14.TimeDistanceCountdownPipe, typeof i14.TimeDistancePipe, typeof i15.ToJsDatePipe, typeof i16.ToMinutesPipe], never, [typeof i1.DateDistancePipe, typeof i2.DateRangeDistancePipe, typeof i3.TargetDateToSystemDatePipe, typeof i4.SystemDateToTargetDatePipe, typeof i5.TimezoneAbbreviationPipe, typeof i6.DateFromToTimePipe, typeof i7.DateDayRangePipe, typeof i8.DateDayTimeRangePipe, typeof i9.DateTimeRangeOnlyPipe, typeof i10.DateTimeRangePipe, typeof i11.DateTimeRangeOnlyDistancePipe, typeof i12.DateFormatDistancePipe, typeof i13.MinutesStringPipe, typeof i14.TimeDistanceCountdownPipe, typeof i14.TimeDistancePipe, typeof i15.ToJsDatePipe, typeof i16.ToMinutesPipe]>;
|
|
17
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxDatePipeModule>;
|
|
18
22
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { DateRange } from '@dereekb/date';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DateRangeDistancePipe implements PipeTransform {
|
|
6
|
+
transform(input: Maybe<Date | DateRange>, unavailable?: string): string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeDistancePipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DateRangeDistancePipe, "dateRangeDistance", false>;
|
|
9
|
+
}
|
package/lib/pipe/date/index.d.ts
CHANGED
|
@@ -5,8 +5,12 @@ export * from './dateformatdistance.pipe';
|
|
|
5
5
|
export * from './datefromtoformat.pipe';
|
|
6
6
|
export * from './datedaytimerange.pipe';
|
|
7
7
|
export * from './datetimerange.pipe';
|
|
8
|
+
export * from './daterangedistance.pipe';
|
|
8
9
|
export * from './datetimerangeonly.pipe';
|
|
10
|
+
export * from './targetdatetosystemdate.pipe';
|
|
9
11
|
export * from './datetimerangeonlydistance.pipe';
|
|
12
|
+
export * from './timezoneabbreviation.pipe';
|
|
13
|
+
export * from './systemdatetotargetdate.pipe';
|
|
10
14
|
export * from './minutesstring.pipe';
|
|
11
15
|
export * from './timedistance.pipe';
|
|
12
16
|
export * from './tojsdate.pipe';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { TimezoneString } from '@dereekb/date';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Converts the input date and timezone to a target date that represents that date/time for the timezone.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SystemDateToTargetDatePipe implements PipeTransform {
|
|
9
|
+
transform(input: Maybe<Date>, timezone: Maybe<TimezoneString>): Maybe<Date>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SystemDateToTargetDatePipe, never>;
|
|
11
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SystemDateToTargetDatePipe, "systemDateToTargetDate", false>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { TimezoneString } from '@dereekb/date';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Converts the input date and timezone to a system date that represents that date/time.
|
|
7
|
+
*/
|
|
8
|
+
export declare class TargetDateToSystemDatePipe implements PipeTransform {
|
|
9
|
+
transform(input: Maybe<Date>, timezone: Maybe<TimezoneString>): Maybe<Date>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TargetDateToSystemDatePipe, never>;
|
|
11
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TargetDateToSystemDatePipe, "targetDateToSystemDate", false>;
|
|
12
|
+
}
|
|
@@ -7,7 +7,7 @@ export declare class TimeDistanceCountdownPipe implements PipeTransform {
|
|
|
7
7
|
static ɵpipe: i0.ɵɵPipeDeclaration<TimeDistanceCountdownPipe, "timeCountdownDistance", false>;
|
|
8
8
|
}
|
|
9
9
|
export declare class TimeDistancePipe implements PipeTransform {
|
|
10
|
-
transform(input: Maybe<DateOrDateString>, to?: Date
|
|
10
|
+
transform(input: Maybe<DateOrDateString>, to?: Maybe<Date>, unavailable?: string): string;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TimeDistancePipe, never>;
|
|
12
12
|
static ɵpipe: i0.ɵɵPipeDeclaration<TimeDistancePipe, "timeDistance", false>;
|
|
13
13
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { TimezoneString } from '@dereekb/date';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Converts the input date and timezone to the proper abbreviation. Uses the input date for the context, or uses now.
|
|
7
|
+
*/
|
|
8
|
+
export declare class TimezoneAbbreviationPipe implements PipeTransform {
|
|
9
|
+
transform(timezone: Maybe<TimezoneString>, input?: Maybe<Date>): Maybe<string>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimezoneAbbreviationPipe, never>;
|
|
11
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TimezoneAbbreviationPipe, "timezoneAbbreviation", false>;
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-core",
|
|
3
|
-
"version": "9.23.
|
|
3
|
+
"version": "9.23.22",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.0.0",
|
|
6
6
|
"@angular/core": "^14.0.0",
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"@ngrx/effects": "^14.0.0",
|
|
10
10
|
"@ngrx/entity": "^14.0.0",
|
|
11
11
|
"@ngrx/store": "^14.0.0",
|
|
12
|
-
"@dereekb/util": "9.23.
|
|
13
|
-
"@dereekb/rxjs": "9.23.
|
|
12
|
+
"@dereekb/util": "9.23.22",
|
|
13
|
+
"@dereekb/rxjs": "9.23.22",
|
|
14
14
|
"@angular/platform-browser": "^14.2.0",
|
|
15
15
|
"@uirouter/core": "^6.0.8",
|
|
16
|
-
"@dereekb/date": "9.23.
|
|
16
|
+
"@dereekb/date": "9.23.22",
|
|
17
17
|
"@angular/router": "^14.2.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|