@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.
@@ -8,6 +8,7 @@ export type IsoIntervalStr = string;
8
8
  export declare class Interval {
9
9
  readonly start: Instant;
10
10
  readonly end: Instant;
11
+ private readonly log;
11
12
  /***************************************************************************
12
13
  * *
13
14
  * Constructor *
@@ -81,4 +81,5 @@ export declare class PeriodDuration {
81
81
  static ofPeriod(period: Period): PeriodDuration;
82
82
  static ofDuration(duration: Duration): PeriodDuration;
83
83
  static of(period: Period, duration: Duration): PeriodDuration;
84
+ static zero(): PeriodDuration;
84
85
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "16.0.1",
3
+ "version": "16.0.2",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^16.0.0 || ^17.0.0",
6
6
  "@angular/common": "^16.0.0 || ^17.0.0",