@elderbyte/ngx-starter 16.0.1 → 16.0.2
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/esm2022/lib/common/time/interval.mjs +23 -3
- package/esm2022/lib/common/time/period-duration.mjs +5 -2
- package/esm2022/lib/components/badge/elder-badge/elder-badge.component.mjs +3 -3
- package/esm2022/lib/components/time/date-adapters/custom-date-adapter.mjs +4 -18
- package/esm2022/lib/components/time/date-formats/locale-date-formats.mjs +28 -0
- package/esm2022/lib/components/time/elder-interval-input/elder-interval-input.component.mjs +19 -12
- package/fesm2022/elderbyte-ngx-starter.mjs +129 -90
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/time/interval.d.ts +1 -0
- package/lib/common/time/period-duration.d.ts +1 -0
- package/lib/components/time/date-adapters/custom-date-adapter.d.ts +0 -3
- package/lib/components/time/date-formats/locale-date-formats.d.ts +15 -0
- package/lib/components/time/elder-interval-input/elder-interval-input.component.d.ts +4 -2
- package/package.json +1 -1
|
@@ -6,13 +6,10 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class CustomDateAdapter extends NativeDateAdapter {
|
|
8
8
|
private readonly logger;
|
|
9
|
-
private readonly fallbackDateFormats;
|
|
10
|
-
private readonly dateFormats;
|
|
11
9
|
private readonly matDateLocale;
|
|
12
10
|
constructor(matDateLocale: string);
|
|
13
11
|
getFirstDayOfWeek(): number;
|
|
14
12
|
parse(value: any, parseFormat?: any): Date | null;
|
|
15
|
-
private getFormatsOfLocale;
|
|
16
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomDateAdapter, never>;
|
|
17
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<CustomDateAdapter>;
|
|
18
15
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class LocaleDateFormats {
|
|
2
|
+
/***************************************************************************
|
|
3
|
+
* *
|
|
4
|
+
* Fields *
|
|
5
|
+
* *
|
|
6
|
+
**************************************************************************/
|
|
7
|
+
private static readonly fallbackDateFormats;
|
|
8
|
+
private static readonly dateFormats;
|
|
9
|
+
/***************************************************************************
|
|
10
|
+
* *
|
|
11
|
+
* Public API *
|
|
12
|
+
* *
|
|
13
|
+
**************************************************************************/
|
|
14
|
+
static getFormatsOfLocale(locale: string): string[];
|
|
15
|
+
}
|
|
@@ -6,6 +6,7 @@ import { ElderFormFieldControlBase } from '../../../common/forms/elder-form-fiel
|
|
|
6
6
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
7
7
|
import { TranslateService } from '@ngx-translate/core';
|
|
8
8
|
import { NgControl } from '@angular/forms';
|
|
9
|
+
import { DateAdapter } from '@angular/material/core';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export type IntervalInputMode =
|
|
11
12
|
/**
|
|
@@ -44,12 +45,13 @@ export declare class ElderIntervalInputComponent extends ElderFormFieldControlBa
|
|
|
44
45
|
readonly endLocalDate$: Observable<LocalDate>;
|
|
45
46
|
readonly startDate$: Observable<Date>;
|
|
46
47
|
readonly endDate$: Observable<Date>;
|
|
48
|
+
readonly dateformat: string;
|
|
47
49
|
/***************************************************************************
|
|
48
50
|
* *
|
|
49
51
|
* Constructor *
|
|
50
52
|
* *
|
|
51
53
|
**************************************************************************/
|
|
52
|
-
constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, translateService: TranslateService, ngControl: NgControl);
|
|
54
|
+
constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, translateService: TranslateService, ngControl: NgControl, customDateAdapter: DateAdapter<Date>, matDateLocale: string);
|
|
53
55
|
/***************************************************************************
|
|
54
56
|
* *
|
|
55
57
|
* Properties *
|
|
@@ -86,6 +88,6 @@ export declare class ElderIntervalInputComponent extends ElderFormFieldControlBa
|
|
|
86
88
|
private instantWithTime;
|
|
87
89
|
private toLocalDate;
|
|
88
90
|
private mapIgnoreErrorObservable;
|
|
89
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ElderIntervalInputComponent, [null, null, null, null, { optional: true; self: true; }]>;
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElderIntervalInputComponent, [null, null, null, null, { optional: true; self: true; }, null, null]>;
|
|
90
92
|
static ɵcmp: i0.ɵɵComponentDeclaration<ElderIntervalInputComponent, "elder-interval-input", never, { "zone": { "alias": "zone"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "isoValue": { "alias": "isoValue"; "required": false; }; }, { "isoValueChange": "isoValueChange"; }, never, never, false, never>;
|
|
91
93
|
}
|