@gettrx/core-components-angular 1.0.9 → 1.0.11

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.
Files changed (30) hide show
  1. package/esm2022/lib/molecules/calendar/calendar/gtr-calendar.component.mjs +8 -12
  2. package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-class-day.pipe.mjs +2 -2
  3. package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-day.directive.mjs +1 -1
  4. package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-day.pipe.mjs +1 -1
  5. package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-month.component.mjs +7 -15
  6. package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-weekday.pipe.mjs +1 -1
  7. package/esm2022/lib/molecules/calendar/calendar-navigation/gtr-calendar-navigation.component.mjs +3 -6
  8. package/esm2022/lib/molecules/calendar/gtr-calendar.service.mjs +3 -5
  9. package/esm2022/lib/molecules/calendar/gtr-calendar.utils.mjs +12 -8
  10. package/esm2022/lib/molecules/date-picker/gtr-date-picker.component.mjs +4 -3
  11. package/esm2022/lib/molecules/date-picker/gtr-date-picker.module.mjs +5 -2
  12. package/esm2022/lib/molecules/date-range-picker/date-range-picker/gtr-custom-range-key.pipe.mjs +17 -0
  13. package/esm2022/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.mjs +87 -62
  14. package/esm2022/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.types.mjs +2 -0
  15. package/esm2022/lib/molecules/date-range-picker/gtr-date-range-picker.module.mjs +5 -2
  16. package/fesm2022/gettrx-core-components-angular.mjs +261 -229
  17. package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
  18. package/lib/molecules/calendar/calendar/gtr-calendar.component.d.ts +9 -9
  19. package/lib/molecules/calendar/calendar-month/gtr-calendar-day.pipe.d.ts +2 -2
  20. package/lib/molecules/calendar/calendar-month/gtr-calendar-month.component.d.ts +9 -9
  21. package/lib/molecules/calendar/calendar-month/gtr-calendar-weekday.pipe.d.ts +2 -2
  22. package/lib/molecules/calendar/calendar-navigation/gtr-calendar-navigation.component.d.ts +3 -4
  23. package/lib/molecules/calendar/gtr-calendar.service.d.ts +10 -10
  24. package/lib/molecules/calendar/gtr-calendar.utils.d.ts +3 -3
  25. package/lib/molecules/date-picker/gtr-date-picker.module.d.ts +2 -1
  26. package/lib/molecules/date-range-picker/date-range-picker/gtr-custom-range-key.pipe.d.ts +8 -0
  27. package/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.d.ts +16 -18
  28. package/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.types.d.ts +4 -0
  29. package/lib/molecules/date-range-picker/gtr-date-range-picker.module.d.ts +2 -1
  30. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
2
2
  import { BooleanInput } from '@angular/cdk/coercion';
3
- import { GtrCalendarService, GtrDateFilterType, GtrDayFormatType, GtrWeekdayFormatType } from '../gtr-calendar.service';
3
+ import { GtrCalendarService, DateFilterType, DayFormatType, WeekdayFormatType } from '../gtr-calendar.service';
4
4
  import { GtrCalendarMonthComponent } from '../calendar-month/gtr-calendar-month.component';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class GtrCalendarComponent implements OnInit, OnDestroy {
@@ -29,10 +29,10 @@ export declare class GtrCalendarComponent implements OnInit, OnDestroy {
29
29
  /**
30
30
  * Set the format of day name.
31
31
  * @default 'numeric'
32
- * @type GtrDayFormatType
32
+ * @type DayFormatType
33
33
  */
34
- set dayFormat(value: GtrDayFormatType);
35
- get dayFormat(): GtrDayFormatType;
34
+ set dayFormat(value: DayFormatType);
35
+ get dayFormat(): DayFormatType;
36
36
  private _dayFormat;
37
37
  /**
38
38
  * Specify the list of dates that cannot be selected.
@@ -81,8 +81,8 @@ export declare class GtrCalendarComponent implements OnInit, OnDestroy {
81
81
  /**
82
82
  * Max selectable date.
83
83
  */
84
- set maxDate(value: Date | string | null);
85
- get maxDate(): Date | string | null;
84
+ set maxDate(value: Date | string | null | undefined);
85
+ get maxDate(): Date | string | null | undefined;
86
86
  private _maxDate;
87
87
  /**
88
88
  * Min selectable date.
@@ -134,10 +134,10 @@ export declare class GtrCalendarComponent implements OnInit, OnDestroy {
134
134
  * @type number | 'long' | 'narrow' | 'short'
135
135
  * @default 'short'
136
136
  */
137
- set weekdayFormat(value: GtrWeekdayFormatType);
138
- get weekdayFormat(): GtrWeekdayFormatType;
137
+ set weekdayFormat(value: WeekdayFormatType);
138
+ get weekdayFormat(): WeekdayFormatType;
139
139
  private _weekdayFormat;
140
- set dateFilter(value: GtrDateFilterType | undefined);
140
+ set dateFilter(value: DateFilterType | undefined);
141
141
  /**
142
142
  * Set whether days in adjacent months shown before or after the current month are selectable. This only applies if the `showAdjacentDays` option is set to true.
143
143
  * @type boolean
@@ -1,8 +1,8 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { GtrDayFormatType } from '../gtr-calendar.service';
2
+ import { DayFormatType } from '../gtr-calendar.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class GtrCalendarDayPipe implements PipeTransform {
5
- transform(date: Date, dayFormat?: GtrDayFormatType, locale?: string): string | number;
5
+ transform(date: Date, dayFormat?: DayFormatType, locale?: string): string | number;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrCalendarDayPipe, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<GtrCalendarDayPipe, "gtrCalendarDay", true>;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
- import { GtrCalendarService, GtrDateFilterType, GtrDayFormatType, GtrWeekdayFormatType } from '../gtr-calendar.service';
2
+ import { GtrCalendarService, DateFilterType, DayFormatType, WeekdayFormatType } from '../gtr-calendar.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class GtrCalendarMonthComponent implements OnInit, OnDestroy {
5
5
  private calendarService;
@@ -9,15 +9,15 @@ export declare class GtrCalendarMonthComponent implements OnInit, OnDestroy {
9
9
  * Initial selected date.
10
10
  * @type (Date | null)
11
11
  */
12
- set startDate(value: Date | null);
13
- get startDate(): Date | null;
12
+ set startDate(value: Date | number | string | null | undefined);
13
+ get startDate(): Date | number | string | null | undefined;
14
14
  _startDate: Date | null;
15
15
  /**
16
16
  * Initial selected to date (range).
17
17
  * @type (Date | null)
18
18
  */
19
- set endDate(value: Date | null);
20
- get endDate(): Date | null;
19
+ set endDate(value: Date | number | string | null | undefined);
20
+ get endDate(): Date | number | string | null | undefined;
21
21
  _endDate: Date | null;
22
22
  /**
23
23
  * Specify the list of dates that cannot be selected.
@@ -57,7 +57,7 @@ export declare class GtrCalendarMonthComponent implements OnInit, OnDestroy {
57
57
  * @type number | 'long' | 'narrow' | 'short'
58
58
  * @default 'short'
59
59
  */
60
- weekdayFormat: GtrWeekdayFormatType;
60
+ weekdayFormat: WeekdayFormatType;
61
61
  /**
62
62
  * Set calendar view.
63
63
  * @type 'days' | 'months' | 'years'
@@ -96,9 +96,9 @@ export declare class GtrCalendarMonthComponent implements OnInit, OnDestroy {
96
96
  set calendarDate(value: Date | string | number);
97
97
  get calendarDate(): Date;
98
98
  private _calendarDate;
99
- dateFilter: GtrDateFilterType;
99
+ dateFilter: DateFilterType;
100
100
  get date(): Date;
101
- dayFormat: GtrDayFormatType;
101
+ dayFormat: DayFormatType;
102
102
  selectAdjacentDays: boolean;
103
103
  showAdjacentDays: boolean;
104
104
  private _monthDetails;
@@ -121,7 +121,7 @@ export declare class GtrCalendarMonthComponent implements OnInit, OnDestroy {
121
121
  handleCellMouseEnter(hoverDate: Date): void;
122
122
  handleYearCellClick(year: any): void;
123
123
  handleYearCellKeyUp($event: KeyboardEvent, year: any): void;
124
- handleMonthCellKeyUp($event: KeyboardEvent, date: Date, i: number, idx: number): void;
124
+ handleMonthCellKeyUp($event: KeyboardEvent, i: number, idx: number): void;
125
125
  handleMonthCellClick(i: number, idx: number): void;
126
126
  setCalendarPage(years: number, months?: number, setMonth?: number): void;
127
127
  handleCellMouseLeave(): void;
@@ -1,8 +1,8 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { GtrWeekdayFormatType } from '../gtr-calendar.service';
2
+ import { WeekdayFormatType } from '../gtr-calendar.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class GtrCalendarWeekdayPipe implements PipeTransform {
5
- transform(date: Date, weekdayFormat?: GtrWeekdayFormatType, locale?: string): string | number;
5
+ transform(date: Date, weekdayFormat?: WeekdayFormatType, locale?: string): string | number;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrCalendarWeekdayPipe, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<GtrCalendarWeekdayPipe, "gtrCalendarWeekday", true>;
8
8
  }
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { GtrCalendarService } from '../gtr-calendar.service';
3
3
  import * as i0 from "@angular/core";
4
- interface IGtrNavigationClick {
4
+ interface INavigationClick {
5
5
  direction: 'prev' | 'next';
6
6
  years: boolean;
7
7
  }
@@ -13,12 +13,11 @@ export declare class GtrCalendarNavigationComponent implements OnDestroy {
13
13
  get calendarDate(): Date;
14
14
  private _calendarDate;
15
15
  navigation: boolean;
16
- navShowYear: boolean;
17
16
  navYearFirst: boolean;
18
17
  locale: string;
19
18
  view: 'days' | 'months' | 'years';
20
19
  type: 'days' | 'months' | 'years';
21
- navigationClick: EventEmitter<IGtrNavigationClick>;
20
+ navigationClick: EventEmitter<INavigationClick>;
22
21
  private calendarStateSubscription;
23
22
  get date(): Date;
24
23
  get hostClasses(): any;
@@ -27,6 +26,6 @@ export declare class GtrCalendarNavigationComponent implements OnDestroy {
27
26
  setView(view: 'days' | 'months' | 'years'): void;
28
27
  handleNavigationClick(direction: 'prev' | 'next', years?: boolean): void;
29
28
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrCalendarNavigationComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<GtrCalendarNavigationComponent, "gtr-calendar-navigation", never, { "addMonths": { "alias": "addMonths"; "required": false; }; "calendarDate": { "alias": "calendarDate"; "required": false; }; "navigation": { "alias": "navigation"; "required": false; }; "navShowYear": { "alias": "navShowYear"; "required": false; }; "navYearFirst": { "alias": "navYearFirst"; "required": false; }; }, { "navigationClick": "navigationClick"; }, never, never, true, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrCalendarNavigationComponent, "gtr-calendar-navigation", never, { "addMonths": { "alias": "addMonths"; "required": false; }; "calendarDate": { "alias": "calendarDate"; "required": false; }; "navigation": { "alias": "navigation"; "required": false; }; "navYearFirst": { "alias": "navYearFirst"; "required": false; }; }, { "navigationClick": "navigationClick"; }, never, never, true, never>;
31
30
  }
32
31
  export {};
@@ -1,9 +1,9 @@
1
1
  import { KeyValueDiffers } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export type GtrDateFilterType = (date: Date) => boolean;
4
- export type GtrDayFormatType = 'numeric' | '2-digit' | ((date: Date) => string | number);
5
- export type GtrWeekdayFormatType = number | 'long' | 'narrow' | 'short' | ((date: Date) => string | number);
6
- export interface IGtrCalendarState {
3
+ export type DateFilterType = (date: Date) => boolean;
4
+ export type DayFormatType = 'numeric' | '2-digit' | ((date: Date) => string | number);
5
+ export type WeekdayFormatType = number | 'long' | 'narrow' | 'short' | ((date: Date) => string | number);
6
+ export interface ICalendarState {
7
7
  [key: string]: any;
8
8
  calendarDate?: Date | null;
9
9
  hoverDate?: Date | null;
@@ -16,9 +16,9 @@ export interface IGtrCalendarState {
16
16
  view?: string;
17
17
  type?: string;
18
18
  locale?: string;
19
- dateFilter?: GtrDateFilterType;
20
- dayFormat?: GtrDayFormatType;
21
- weekdayFormat?: GtrWeekdayFormatType;
19
+ dateFilter?: DateFilterType;
20
+ dayFormat?: DayFormatType;
21
+ weekdayFormat?: WeekdayFormatType;
22
22
  navYearFirst?: boolean;
23
23
  showAdjacentDays?: boolean;
24
24
  selectAdjacentDays?: boolean;
@@ -27,10 +27,10 @@ export declare class GtrCalendarService {
27
27
  private keyValueDiffers;
28
28
  constructor(keyValueDiffers: KeyValueDiffers);
29
29
  private readonly differ;
30
- calendarStateObject: IGtrCalendarState;
30
+ calendarStateObject: ICalendarState;
31
31
  private calendarState;
32
- calendarState$: import("rxjs").Observable<IGtrCalendarState>;
33
- update(state: IGtrCalendarState): void;
32
+ calendarState$: import("rxjs").Observable<ICalendarState>;
33
+ update(state: ICalendarState): void;
34
34
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrCalendarService, never>;
35
35
  static ɵprov: i0.ɵɵInjectableDeclaration<GtrCalendarService>;
36
36
  }
@@ -16,11 +16,11 @@ export declare const isDateInRange: (date: Date | null, start: Date | null, end:
16
16
  export declare const isDateSelected: (date: Date | null, start: Date | null, end: Date | null) => boolean | null;
17
17
  export declare const isEndDate: (date: Date | null, start: Date | null, end: Date | null) => boolean | null;
18
18
  export declare const isLastDayOfMonth: (date: Date) => boolean;
19
- export declare const isSameDateAs: (date: Date | any, date2: Date | any) => boolean;
19
+ export declare const isSameDateAs: (date: Date, date2: Date) => boolean;
20
20
  export declare const isStartDate: (date: Date | null, start: Date | null, end: Date | null) => boolean | null;
21
21
  export declare const isToday: (date: Date) => boolean;
22
22
  export declare const isThisMonth: (date: Date, index: number) => boolean;
23
23
  export declare const isThisYear: (year: number) => boolean;
24
- export declare const isValidDate: (date: Date | string | number) => boolean;
24
+ export declare const isValidDate: (date: number | string | Date) => boolean;
25
25
  export declare const tryDate: (value: string | number | Date, propName?: string) => any;
26
- export declare const isDateInRangeDisabled: (startDate?: Date | number | string | null | undefined, endDate?: Date | number | string | null | undefined, dates?: (Date | Date[])[]) => boolean;
26
+ export declare const isDateInRangeDisabled: (startDate?: Date | null, endDate?: Date | null, dates?: (Date | Date[])[]) => boolean;
@@ -11,8 +11,9 @@ import * as i9 from "../form/input-group/gtr-input-group.component";
11
11
  import * as i10 from "../form/form-control/gtr-form-control.directive";
12
12
  import * as i11 from "../form/input-group-text/gtr-input-group-text.directive";
13
13
  import * as i12 from "../../atoms/icon/gtr-icon.module";
14
+ import * as i13 from "../date-range-picker/date-range-picker/gtr-custom-range-key.pipe";
14
15
  export declare class GtrDatePickerModule {
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrDatePickerModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<GtrDatePickerModule, [typeof i1.GtrDatePickerComponent], [typeof i2.NgClass, typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgTemplateOutlet, typeof i3.ReactiveFormsModule, typeof i4.GtrCalendarComponent, typeof i5.GtrTimePickerComponent, typeof i6.GtrButtonDirective, typeof i7.GtrDropdownComponent, typeof i7.GtrDropdownToggleDirective, typeof i8.GtrDropdownMenuDirective, typeof i9.GtrInputGroupComponent, typeof i10.GtrFormControlDirective, typeof i11.GtrInputGroupTextDirective, typeof i12.GtrIconModule], [typeof i1.GtrDatePickerComponent]>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GtrDatePickerModule, [typeof i1.GtrDatePickerComponent], [typeof i2.NgClass, typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgTemplateOutlet, typeof i3.ReactiveFormsModule, typeof i4.GtrCalendarComponent, typeof i5.GtrTimePickerComponent, typeof i6.GtrButtonDirective, typeof i7.GtrDropdownComponent, typeof i7.GtrDropdownToggleDirective, typeof i8.GtrDropdownMenuDirective, typeof i9.GtrInputGroupComponent, typeof i10.GtrFormControlDirective, typeof i11.GtrInputGroupTextDirective, typeof i12.GtrIconModule, typeof i13.GtrCustomRangeKeyPipe], [typeof i1.GtrDatePickerComponent]>;
17
18
  static ɵinj: i0.ɵɵInjectorDeclaration<GtrDatePickerModule>;
18
19
  }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TCustomRange } from './gtr-date-range-picker.types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GtrCustomRangeKeyPipe implements PipeTransform {
5
+ transform(customRange: TCustomRange, ...args: unknown[]): unknown;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrCustomRangeKeyPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<GtrCustomRangeKeyPipe, "gtrCustomRangeKey", true>;
8
+ }
@@ -4,15 +4,11 @@ import { BooleanInput } from '@angular/cdk/coercion';
4
4
  import { BreakpointObserver } from '@angular/cdk/layout';
5
5
  import { Subscription } from 'rxjs';
6
6
  import { Options } from '@popperjs/core';
7
- import { GtrDateFilterType, GtrDayFormatType, GtrWeekdayFormatType } from '../../calendar/gtr-calendar.service';
8
- import { GtrCalendarComponent } from '../../calendar';
7
+ import { DateFilterType, DayFormatType, WeekdayFormatType } from '../../calendar/gtr-calendar.service';
9
8
  import { Colors } from '../../../core-components.types';
10
9
  import { GtrTemplateIdDirective } from '../../shared';
10
+ import { TCustomRange } from './gtr-date-range-picker.types';
11
11
  import * as i0 from "@angular/core";
12
- export interface ICalendarRanges {
13
- [key: string]: Date[];
14
- }
15
- export type TCustomRange = [string, Date[]];
16
12
  /** Must be a valid date string */
17
13
  export declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, ControlValueAccessor, AfterViewInit, OnChanges {
18
14
  #private;
@@ -27,9 +23,9 @@ export declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, C
27
23
  /**
28
24
  * Set the format of day name.
29
25
  * @default 'numeric'
30
- * @type GtrDayFormatType
26
+ * @type DayFormatType
31
27
  */
32
- dayFormat: GtrDayFormatType;
28
+ dayFormat: DayFormatType;
33
29
  /**
34
30
  * The number of calendars that render on desktop devices.
35
31
  * @type number
@@ -55,11 +51,11 @@ export declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, C
55
51
  get closeOnSelect(): boolean;
56
52
  /**
57
53
  * Set date format.
58
- * We use date-fns to format dates. Visit https://date-fns.org/v2.28.0/docs/format to check accepted patterns.
54
+ * We use Angular formatDate() function, see:
55
+ * - https://angular.io/api/common/formatDate
56
+ * - https://angular.io/api/common/DatePipe#pre-defined-format-options
59
57
  */
60
- set format(value: Intl.DateTimeFormatOptions);
61
- get format(): Intl.DateTimeFormatOptions;
62
- private _format;
58
+ format?: string;
63
59
  /**
64
60
  * Toggle visibility or set the content of the input indicator.
65
61
  * @type boolean
@@ -97,7 +93,9 @@ export declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, C
97
93
  * @type ICalendarRanges
98
94
  */
99
95
  ranges?: object;
100
- rangesType: 'days' | 'months' | 'years';
96
+ set rangesType(value: 'days' | 'months' | 'years');
97
+ get rangesType(): 'days' | 'months' | 'years';
98
+ _rangesType: 'days' | 'months' | 'years';
101
99
  /**
102
100
  * Sets the color context of the cancel button to one of Gettrx’s themed colors.
103
101
  * @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
@@ -181,7 +179,7 @@ export declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, C
181
179
  set range(value: boolean);
182
180
  get range(): boolean;
183
181
  private _range;
184
- dateFilter?: GtrDateFilterType;
182
+ dateFilter?: DateFilterType;
185
183
  set disabled(value: boolean);
186
184
  get disabled(): boolean;
187
185
  private _disabled;
@@ -190,10 +188,10 @@ export declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, C
190
188
  private _value;
191
189
  /**
192
190
  * Set length or format of day name.
193
- * @type GtrWeekdayFormatType
191
+ * @type WeekdayFormatType
194
192
  * @default 'short'
195
193
  */
196
- weekdayFormat: GtrWeekdayFormatType;
194
+ weekdayFormat: WeekdayFormatType;
197
195
  /**
198
196
  * Optional popper Options object
199
197
  * @type Partial<Options>
@@ -217,7 +215,6 @@ export declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, C
217
215
  calendarDateChange: EventEmitter<Date>;
218
216
  endDateChange: EventEmitter<Date | null>;
219
217
  startDateChange: EventEmitter<Date | null>;
220
- calendarComponent: GtrCalendarComponent;
221
218
  startDateElementRef: ElementRef<HTMLInputElement>;
222
219
  endDateElementRef: ElementRef<HTMLInputElement>;
223
220
  templates: any;
@@ -227,6 +224,7 @@ export declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, C
227
224
  onBlur(): void;
228
225
  isMobile: boolean;
229
226
  customRanges: TCustomRange[];
227
+ showRanges: boolean;
230
228
  set startDateValue(value: string);
231
229
  get startDateValue(): string;
232
230
  private _startDateValue;
@@ -249,7 +247,7 @@ export declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, C
249
247
  'is-valid': boolean;
250
248
  'is-invalid': boolean;
251
249
  };
252
- formatDate(date: Date): string;
250
+ formatDate(date: Date | null | undefined): string;
253
251
  ngOnInit(): void;
254
252
  ngOnDestroy(): void;
255
253
  ngAfterViewInit(): void;
@@ -0,0 +1,4 @@
1
+ export type TCustomRange = [string, Date[]];
2
+ export interface ICalendarRanges {
3
+ [key: string]: Date[];
4
+ }
@@ -11,8 +11,9 @@ import * as i9 from "../form/input-group/gtr-input-group.component";
11
11
  import * as i10 from "../form/form-control/gtr-form-control.directive";
12
12
  import * as i11 from "../form/input-group-text/gtr-input-group-text.directive";
13
13
  import * as i12 from "../../atoms/icon/gtr-icon.module";
14
+ import * as i13 from "./date-range-picker/gtr-custom-range-key.pipe";
14
15
  export declare class GtrDateRangePickerModule {
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrDateRangePickerModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<GtrDateRangePickerModule, [typeof i1.GtrDateRangePickerComponent], [typeof i2.NgClass, typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgTemplateOutlet, typeof i3.ReactiveFormsModule, typeof i4.GtrCalendarComponent, typeof i5.GtrTimePickerComponent, typeof i6.GtrButtonDirective, typeof i7.GtrDropdownComponent, typeof i7.GtrDropdownToggleDirective, typeof i8.GtrDropdownMenuDirective, typeof i9.GtrInputGroupComponent, typeof i10.GtrFormControlDirective, typeof i11.GtrInputGroupTextDirective, typeof i12.GtrIconModule], [typeof i1.GtrDateRangePickerComponent]>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GtrDateRangePickerModule, [typeof i1.GtrDateRangePickerComponent], [typeof i2.NgClass, typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgTemplateOutlet, typeof i3.ReactiveFormsModule, typeof i4.GtrCalendarComponent, typeof i5.GtrTimePickerComponent, typeof i6.GtrButtonDirective, typeof i7.GtrDropdownComponent, typeof i7.GtrDropdownToggleDirective, typeof i8.GtrDropdownMenuDirective, typeof i9.GtrInputGroupComponent, typeof i10.GtrFormControlDirective, typeof i11.GtrInputGroupTextDirective, typeof i12.GtrIconModule, typeof i13.GtrCustomRangeKeyPipe], [typeof i1.GtrDateRangePickerComponent]>;
17
18
  static ɵinj: i0.ɵɵInjectorDeclaration<GtrDateRangePickerModule>;
18
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gettrx/core-components-angular",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Angular specific wrappers for @gettrx/core-components",
5
5
  "keywords": [
6
6
  "gettrx",
@@ -20,7 +20,7 @@
20
20
  "peerDependencies": {
21
21
  "@angular/common": "^16.1.0",
22
22
  "@angular/core": "^16.1.0",
23
- "@gettrx/core-styles": "1.0.9"
23
+ "@gettrx/core-styles": "1.0.11"
24
24
  },
25
25
  "module": "fesm2022/gettrx-core-components-angular.mjs",
26
26
  "typings": "index.d.ts",