@gettrx/core-components-angular 1.0.13 → 1.0.15
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/atoms/input/gtr-input.component.mjs +3 -3
- package/esm2022/lib/molecules/accordion/accordion-wrapper/gtr-accordion-wrapper.component.mjs +24 -18
- package/esm2022/lib/molecules/calendar/gtr-calendar.utils.mjs +13 -1
- package/esm2022/lib/molecules/date-picker/gtr-date-picker.component.mjs +20 -12
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.mjs +58 -27
- package/esm2022/lib/molecules/pagination/pagination/gtr-pagination.component.mjs +2 -2
- package/esm2022/lib/molecules/select/select/gtr-select.component.mjs +8 -3
- package/fesm2022/gettrx-core-components-angular.mjs +119 -57
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/lib/molecules/accordion/accordion-wrapper/gtr-accordion-wrapper.component.d.ts +2 -0
- package/lib/molecules/calendar/gtr-calendar.utils.d.ts +1 -0
- package/lib/molecules/date-picker/gtr-date-picker.component.d.ts +2 -3
- package/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.d.ts +10 -6
- package/package.json +2 -2
|
@@ -30,7 +30,9 @@ export declare class GtrAccordionWrapperComponent {
|
|
|
30
30
|
* The accordion list from child component
|
|
31
31
|
*/
|
|
32
32
|
accordions: QueryList<GtrAccordionComponent>;
|
|
33
|
+
ngAfterViewInit(): void;
|
|
33
34
|
ngAfterContentInit(): void;
|
|
35
|
+
mapAccordion(): void;
|
|
34
36
|
toggleAccordion(selectedAccordion: GtrAccordionComponent): void;
|
|
35
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<GtrAccordionWrapperComponent, never>;
|
|
36
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<GtrAccordionWrapperComponent, "gtr-accordion-wrapper", never, { "allowMultiple": { "alias": "allowMultiple"; "required": false; }; "id": { "alias": "id"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "expandAll": { "alias": "expandAll"; "required": false; }; "showArrowIcon": { "alias": "showArrowIcon"; "required": false; }; }, { "accordionStateChanged": "accordionStateChanged"; }, ["accordions"], ["*"], false, never>;
|
|
@@ -24,3 +24,4 @@ export declare const isThisYear: (year: number) => boolean;
|
|
|
24
24
|
export declare const isValidDate: (date: number | string | Date) => boolean;
|
|
25
25
|
export declare const tryDate: (value: string | number | Date, propName?: string) => any;
|
|
26
26
|
export declare const isDateInRangeDisabled: (startDate?: Date | null, endDate?: Date | null, dates?: (Date | Date[])[]) => boolean;
|
|
27
|
+
export declare const getDateFormatString: (locale?: string) => string;
|
|
@@ -3,8 +3,7 @@ import { BreakpointObserver } from '@angular/cdk/layout';
|
|
|
3
3
|
import { GtrDateRangePickerComponent } from '../date-range-picker';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class GtrDatePickerComponent extends GtrDateRangePickerComponent {
|
|
6
|
-
constructor(breakpointObserver: BreakpointObserver);
|
|
7
|
-
placeholder: string;
|
|
6
|
+
constructor(breakpointObserver: BreakpointObserver, localeId: string);
|
|
8
7
|
startDateChange: EventEmitter<Date | null>;
|
|
9
8
|
get range(): boolean;
|
|
10
9
|
get calendars(): number;
|
|
@@ -14,5 +13,5 @@ export declare class GtrDatePickerComponent extends GtrDateRangePickerComponent
|
|
|
14
13
|
writeValue(value: Date | null | undefined): void;
|
|
15
14
|
subscribeDateChange(subscribe?: boolean): void;
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<GtrDatePickerComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GtrDatePickerComponent, "gtr-date-picker", ["gtrDatePicker"], { "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GtrDatePickerComponent, "gtr-date-picker", ["gtrDatePicker"], { "date": { "alias": "date"; "required": false; }; }, { "startDateChange": "dateChange"; }, never, ["*", "*"], false, never>;
|
|
18
17
|
}
|
package/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.d.ts
CHANGED
|
@@ -13,10 +13,11 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
export declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, ControlValueAccessor, AfterViewInit, OnChanges {
|
|
14
14
|
#private;
|
|
15
15
|
private breakpointObserver;
|
|
16
|
+
private localeId;
|
|
16
17
|
static ngAcceptInputType_closeOnSelect: BooleanInput;
|
|
17
18
|
static ngAcceptInputType_disabled: BooleanInput;
|
|
18
19
|
static ngAcceptInputType_navYearFirst: BooleanInput;
|
|
19
|
-
constructor(breakpointObserver: BreakpointObserver);
|
|
20
|
+
constructor(breakpointObserver: BreakpointObserver, localeId: string);
|
|
20
21
|
id: string;
|
|
21
22
|
testid: string;
|
|
22
23
|
required: boolean;
|
|
@@ -87,15 +88,17 @@ export declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, C
|
|
|
87
88
|
* Specifies short hints that are visible in start date and end date inputs.
|
|
88
89
|
* type string
|
|
89
90
|
*/
|
|
90
|
-
placeholder: string | string[];
|
|
91
|
+
set placeholder(value: string | string[]);
|
|
92
|
+
get placeholder(): string | string[];
|
|
93
|
+
private _placeholder;
|
|
91
94
|
/**
|
|
92
95
|
* Predefined date ranges the user can select from.
|
|
93
96
|
* @type ICalendarRanges
|
|
94
97
|
*/
|
|
95
98
|
ranges?: object;
|
|
96
|
-
set
|
|
97
|
-
get
|
|
98
|
-
|
|
99
|
+
set type(value: 'days' | 'months' | 'years');
|
|
100
|
+
get type(): 'days' | 'months' | 'years';
|
|
101
|
+
_type: 'days' | 'months' | 'years';
|
|
99
102
|
/**
|
|
100
103
|
* Sets the color context of the cancel button to one of Gettrx’s themed colors.
|
|
101
104
|
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
|
|
@@ -248,6 +251,7 @@ export declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, C
|
|
|
248
251
|
'is-invalid': boolean;
|
|
249
252
|
};
|
|
250
253
|
formatDate(date: Date | null | undefined): string;
|
|
254
|
+
formatPlaceholder(): string | string[];
|
|
251
255
|
ngOnInit(): void;
|
|
252
256
|
ngOnDestroy(): void;
|
|
253
257
|
ngAfterViewInit(): void;
|
|
@@ -273,5 +277,5 @@ export declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, C
|
|
|
273
277
|
handleStartTimeChange(time: Date | undefined): void;
|
|
274
278
|
handleEndTimeChange(time: Date | undefined): void;
|
|
275
279
|
static ɵfac: i0.ɵɵFactoryDeclaration<GtrDateRangePickerComponent, never>;
|
|
276
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GtrDateRangePickerComponent, "gtr-date-range-picker", ["gtrDateRangePicker"], { "id": { "alias": "id"; "required": false; }; "testid": { "alias": "testid"; "required": false; }; "required": { "alias": "required"; "required": false; }; "dayFormat": { "alias": "dayFormat"; "required": false; }; "calendars": { "alias": "calendars"; "required": false; }; "cleaner": { "alias": "cleaner"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "format": { "alias": "format"; "required": false; }; "indicator": { "alias": "indicator"; "required": false; }; "inputReadOnly": { "alias": "inputReadOnly"; "required": false; }; "navYearFirst": { "alias": "navYearFirst"; "required": false; }; "alwaysOpen": { "alias": "alwaysOpen"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "ranges": { "alias": "ranges"; "required": false; }; "
|
|
280
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GtrDateRangePickerComponent, "gtr-date-range-picker", ["gtrDateRangePicker"], { "id": { "alias": "id"; "required": false; }; "testid": { "alias": "testid"; "required": false; }; "required": { "alias": "required"; "required": false; }; "dayFormat": { "alias": "dayFormat"; "required": false; }; "calendars": { "alias": "calendars"; "required": false; }; "cleaner": { "alias": "cleaner"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "format": { "alias": "format"; "required": false; }; "indicator": { "alias": "indicator"; "required": false; }; "inputReadOnly": { "alias": "inputReadOnly"; "required": false; }; "navYearFirst": { "alias": "navYearFirst"; "required": false; }; "alwaysOpen": { "alias": "alwaysOpen"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "ranges": { "alias": "ranges"; "required": false; }; "type": { "alias": "type"; "required": false; }; "rangesButtonsColor": { "alias": "rangesButtonsColor"; "required": false; }; "rangesButtonsSize": { "alias": "rangesButtonsSize"; "required": false; }; "rangesButtonsVariant": { "alias": "rangesButtonsVariant"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; "size": { "alias": "size"; "required": false; }; "timepicker": { "alias": "timepicker"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "calendarDate": { "alias": "calendarDate"; "required": false; }; "disabledDates": { "alias": "disabledDates"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "navigation": { "alias": "navigation"; "required": false; }; "range": { "alias": "range"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "weekdayFormat": { "alias": "weekdayFormat"; "required": false; }; "popperjsOptions": { "alias": "popperOptions"; "required": false; }; "selectAdjacentDays": { "alias": "selectAdjacentDays"; "required": false; }; "showAdjacentDays": { "alias": "showAdjacentDays"; "required": false; }; }, { "valueChange": "valueChange"; "calendarCellHover": "calendarCellHover"; "calendarDateChange": "calendarDateChange"; "endDateChange": "endDateChange"; "startDateChange": "startDateChange"; }, ["contentTemplates"], ["*", "*"], false, never>;
|
|
277
281
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gettrx/core-components-angular",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
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.
|
|
23
|
+
"@gettrx/core-styles": "1.0.15"
|
|
24
24
|
},
|
|
25
25
|
"module": "fesm2022/gettrx-core-components-angular.mjs",
|
|
26
26
|
"typings": "index.d.ts",
|