@sebgroup/green-angular 6.4.0 → 6.4.1
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/src/v-angular/datepicker/components/date-input/date-input.component.mjs +17 -5
- package/esm2022/src/v-angular/datepicker/components/datepicker/datepicker.component.mjs +64 -7
- package/esm2022/v-angular/datepicker/components/date-input/date-input.component.mjs +17 -5
- package/esm2022/v-angular/datepicker/components/datepicker/datepicker.component.mjs +64 -7
- package/fesm2022/sebgroup-green-angular-src-v-angular-datepicker.mjs +76 -7
- package/fesm2022/sebgroup-green-angular-src-v-angular-datepicker.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-v-angular.mjs +76 -7
- package/fesm2022/sebgroup-green-angular-v-angular.mjs.map +1 -1
- package/package.json +20 -20
- package/src/v-angular/datepicker/components/date-input/date-input.component.d.ts +6 -3
- package/src/v-angular/datepicker/components/datepicker/datepicker.component.d.ts +16 -2
- package/v-angular/datepicker/components/date-input/date-input.component.d.ts +6 -3
- package/v-angular/datepicker/components/datepicker/datepicker.component.d.ts +16 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-angular",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": ">=18",
|
|
6
6
|
"@angular/common": ">=18",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"scroll-into-view-if-needed": "^2.2.31"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@sebgroup/green-core": "^2.
|
|
20
|
+
"@sebgroup/green-core": "^2.6.2",
|
|
21
21
|
"@sebgroup/chlorophyll": "^3.6.20",
|
|
22
22
|
"@sebgroup/extract": "^3.0.2",
|
|
23
23
|
"tslib": "^2.3.1"
|
|
@@ -99,18 +99,6 @@
|
|
|
99
99
|
"esm": "./esm2022/src/lib/dropdown/sebgroup-green-angular-src-lib-dropdown.mjs",
|
|
100
100
|
"default": "./fesm2022/sebgroup-green-angular-src-lib-dropdown.mjs"
|
|
101
101
|
},
|
|
102
|
-
"./src/lib/in-page-wizard": {
|
|
103
|
-
"types": "./src/lib/in-page-wizard/index.d.ts",
|
|
104
|
-
"esm2022": "./esm2022/src/lib/in-page-wizard/sebgroup-green-angular-src-lib-in-page-wizard.mjs",
|
|
105
|
-
"esm": "./esm2022/src/lib/in-page-wizard/sebgroup-green-angular-src-lib-in-page-wizard.mjs",
|
|
106
|
-
"default": "./fesm2022/sebgroup-green-angular-src-lib-in-page-wizard.mjs"
|
|
107
|
-
},
|
|
108
|
-
"./src/lib/modal": {
|
|
109
|
-
"types": "./src/lib/modal/index.d.ts",
|
|
110
|
-
"esm2022": "./esm2022/src/lib/modal/sebgroup-green-angular-src-lib-modal.mjs",
|
|
111
|
-
"esm": "./esm2022/src/lib/modal/sebgroup-green-angular-src-lib-modal.mjs",
|
|
112
|
-
"default": "./fesm2022/sebgroup-green-angular-src-lib-modal.mjs"
|
|
113
|
-
},
|
|
114
102
|
"./src/lib/pagination": {
|
|
115
103
|
"types": "./src/lib/pagination/index.d.ts",
|
|
116
104
|
"esm2022": "./esm2022/src/lib/pagination/sebgroup-green-angular-src-lib-pagination.mjs",
|
|
@@ -123,12 +111,24 @@
|
|
|
123
111
|
"esm": "./esm2022/src/lib/progress-circle/sebgroup-green-angular-src-lib-progress-circle.mjs",
|
|
124
112
|
"default": "./fesm2022/sebgroup-green-angular-src-lib-progress-circle.mjs"
|
|
125
113
|
},
|
|
114
|
+
"./src/lib/modal": {
|
|
115
|
+
"types": "./src/lib/modal/index.d.ts",
|
|
116
|
+
"esm2022": "./esm2022/src/lib/modal/sebgroup-green-angular-src-lib-modal.mjs",
|
|
117
|
+
"esm": "./esm2022/src/lib/modal/sebgroup-green-angular-src-lib-modal.mjs",
|
|
118
|
+
"default": "./fesm2022/sebgroup-green-angular-src-lib-modal.mjs"
|
|
119
|
+
},
|
|
126
120
|
"./src/lib/segmented-control": {
|
|
127
121
|
"types": "./src/lib/segmented-control/index.d.ts",
|
|
128
122
|
"esm2022": "./esm2022/src/lib/segmented-control/sebgroup-green-angular-src-lib-segmented-control.mjs",
|
|
129
123
|
"esm": "./esm2022/src/lib/segmented-control/sebgroup-green-angular-src-lib-segmented-control.mjs",
|
|
130
124
|
"default": "./fesm2022/sebgroup-green-angular-src-lib-segmented-control.mjs"
|
|
131
125
|
},
|
|
126
|
+
"./src/lib/in-page-wizard": {
|
|
127
|
+
"types": "./src/lib/in-page-wizard/index.d.ts",
|
|
128
|
+
"esm2022": "./esm2022/src/lib/in-page-wizard/sebgroup-green-angular-src-lib-in-page-wizard.mjs",
|
|
129
|
+
"esm": "./esm2022/src/lib/in-page-wizard/sebgroup-green-angular-src-lib-in-page-wizard.mjs",
|
|
130
|
+
"default": "./fesm2022/sebgroup-green-angular-src-lib-in-page-wizard.mjs"
|
|
131
|
+
},
|
|
132
132
|
"./src/lib/shared": {
|
|
133
133
|
"types": "./src/lib/shared/index.d.ts",
|
|
134
134
|
"esm2022": "./esm2022/src/lib/shared/sebgroup-green-angular-src-lib-shared.mjs",
|
|
@@ -213,18 +213,18 @@
|
|
|
213
213
|
"esm": "./esm2022/src/v-angular/drag-drop/sebgroup-green-angular-src-v-angular-drag-drop.mjs",
|
|
214
214
|
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-drag-drop.mjs"
|
|
215
215
|
},
|
|
216
|
-
"./src/v-angular/dropdown": {
|
|
217
|
-
"types": "./src/v-angular/dropdown/index.d.ts",
|
|
218
|
-
"esm2022": "./esm2022/src/v-angular/dropdown/sebgroup-green-angular-src-v-angular-dropdown.mjs",
|
|
219
|
-
"esm": "./esm2022/src/v-angular/dropdown/sebgroup-green-angular-src-v-angular-dropdown.mjs",
|
|
220
|
-
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs"
|
|
221
|
-
},
|
|
222
216
|
"./src/v-angular/external-link": {
|
|
223
217
|
"types": "./src/v-angular/external-link/index.d.ts",
|
|
224
218
|
"esm2022": "./esm2022/src/v-angular/external-link/sebgroup-green-angular-src-v-angular-external-link.mjs",
|
|
225
219
|
"esm": "./esm2022/src/v-angular/external-link/sebgroup-green-angular-src-v-angular-external-link.mjs",
|
|
226
220
|
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-external-link.mjs"
|
|
227
221
|
},
|
|
222
|
+
"./src/v-angular/dropdown": {
|
|
223
|
+
"types": "./src/v-angular/dropdown/index.d.ts",
|
|
224
|
+
"esm2022": "./esm2022/src/v-angular/dropdown/sebgroup-green-angular-src-v-angular-dropdown.mjs",
|
|
225
|
+
"esm": "./esm2022/src/v-angular/dropdown/sebgroup-green-angular-src-v-angular-dropdown.mjs",
|
|
226
|
+
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs"
|
|
227
|
+
},
|
|
228
228
|
"./src/v-angular/i18n": {
|
|
229
229
|
"types": "./src/v-angular/i18n/index.d.ts",
|
|
230
230
|
"esm2022": "./esm2022/src/v-angular/i18n/sebgroup-green-angular-src-v-angular-i18n.mjs",
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import '../../datepicker.globals';
|
|
2
|
+
import '@sebgroup/green-core/components/icon/icons/calendar.js';
|
|
3
|
+
import '@sebgroup/green-core/components/icon/icons/triangle-exclamation.js';
|
|
2
4
|
import { WeekDay } from '@angular/common';
|
|
3
5
|
import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
|
|
4
6
|
import { NgControl } from '@angular/forms';
|
|
@@ -6,8 +8,6 @@ import { TranslocoScope, TranslocoService } from '@jsverse/transloco';
|
|
|
6
8
|
import { Observable } from 'rxjs';
|
|
7
9
|
import { DateControlValueAccessorComponent } from '../../date-control-value-accessor/date-control-value-accessor.component';
|
|
8
10
|
import type { CalendarType } from '../../datepicker.models';
|
|
9
|
-
import '@sebgroup/green-core/components/icon/icons/calendar.js';
|
|
10
|
-
import '@sebgroup/green-core/components/icon/icons/triangle-exclamation.js';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
13
|
* Date pickers simplify the task of selecting a date in a visual representation of a calendar.
|
|
@@ -65,11 +65,14 @@ export declare class DateInputComponent extends DateControlValueAccessorComponen
|
|
|
65
65
|
* Sets the displayed size of the date input field.
|
|
66
66
|
*/
|
|
67
67
|
size: 'small' | 'large';
|
|
68
|
+
dynamicPosition: boolean;
|
|
68
69
|
/** @internal */
|
|
69
70
|
/** @internal */
|
|
70
71
|
shown: boolean;
|
|
71
72
|
/** @internal */
|
|
72
73
|
showInput$: Observable<boolean>;
|
|
74
|
+
/** Observable for listening to scrolls when the datepicker is open */
|
|
75
|
+
private documentScroll$;
|
|
73
76
|
/** Observable for listening to clicks outside of the datepicker. */
|
|
74
77
|
private documentClick$;
|
|
75
78
|
/** Subject used for unsubscribe pattern on above observable. */
|
|
@@ -104,5 +107,5 @@ export declare class DateInputComponent extends DateControlValueAccessorComponen
|
|
|
104
107
|
*/
|
|
105
108
|
private setShown;
|
|
106
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent, [{ optional: true; self: true; }, { optional: true; }, null, null, null]>;
|
|
107
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "nggv-dateinput,nggv-input[type=date]", never, { "thook": { "alias": "thook"; "required": false; }; "type": { "alias": "type"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disableDates": { "alias": "disableDates"; "required": false; }; "disableWeekDays": { "alias": "disableWeekDays"; "required": false; }; "minRows": { "alias": "minRows"; "required": false; }; "firstValid": { "alias": "firstValid"; "required": false; }; "lastValid": { "alias": "lastValid"; "required": false; }; "closingTime": { "alias": "closingTime"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "closeCalendarOnEscape": { "alias": "closeCalendarOnEscape"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "nggv-dateinput,nggv-input[type=date]", never, { "thook": { "alias": "thook"; "required": false; }; "type": { "alias": "type"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disableDates": { "alias": "disableDates"; "required": false; }; "disableWeekDays": { "alias": "disableWeekDays"; "required": false; }; "minRows": { "alias": "minRows"; "required": false; }; "firstValid": { "alias": "firstValid"; "required": false; }; "lastValid": { "alias": "lastValid"; "required": false; }; "closingTime": { "alias": "closingTime"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "closeCalendarOnEscape": { "alias": "closeCalendarOnEscape"; "required": false; }; "size": { "alias": "size"; "required": false; }; "dynamicPosition": { "alias": "dynamicPosition"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
108
111
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { WeekDay } from '@angular/common';
|
|
2
|
-
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
|
|
3
3
|
import { CalendarMonth } from '../../datepicker.models';
|
|
4
4
|
import type { CalendarType } from '../../datepicker.models';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class DatepickerComponent implements OnInit, OnChanges, OnDestroy {
|
|
7
|
+
private elementRef;
|
|
8
|
+
private renderer;
|
|
7
9
|
calendarTemplate: TemplateRef<any> | null;
|
|
8
10
|
/** Emits a Date upon selection. */
|
|
9
11
|
ngvDateChange: EventEmitter<Date>;
|
|
@@ -27,6 +29,15 @@ export declare class DatepickerComponent implements OnInit, OnChanges, OnDestroy
|
|
|
27
29
|
lastValid: Date | undefined;
|
|
28
30
|
/** Sets a closing time for today to toggle availability for today's date. */
|
|
29
31
|
closingTime: Date | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* When true, the datepicker will automatically choose to open above or below the input
|
|
34
|
+
* based on available space in the viewport, and will scale its height to fit if needed.
|
|
35
|
+
*/
|
|
36
|
+
dynamicPosition: boolean;
|
|
37
|
+
/** Needed to determent where to place datepicker if dropdownPosition === 'top' */
|
|
38
|
+
size: 'small' | 'large';
|
|
39
|
+
get positionAttr(): "bottom" | "top";
|
|
40
|
+
get sizeAttr(): "small" | "large";
|
|
30
41
|
/** @internal */
|
|
31
42
|
activeCalendar: CalendarMonth;
|
|
32
43
|
/** @internal */
|
|
@@ -34,7 +45,9 @@ export declare class DatepickerComponent implements OnInit, OnChanges, OnDestroy
|
|
|
34
45
|
weekdayArray: Date[];
|
|
35
46
|
/** @internal */
|
|
36
47
|
disabledDatesForActiveMonth: Date[];
|
|
48
|
+
datepickerPosition: 'bottom' | 'top';
|
|
37
49
|
private subs;
|
|
50
|
+
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
38
51
|
ngOnChanges(changes: SimpleChanges): void;
|
|
39
52
|
ngOnInit(): void;
|
|
40
53
|
ngOnDestroy(): void;
|
|
@@ -57,6 +70,7 @@ export declare class DatepickerComponent implements OnInit, OnChanges, OnDestroy
|
|
|
57
70
|
* @param date date clicked in calendar
|
|
58
71
|
*/
|
|
59
72
|
dateClickHandler(date: Date): void;
|
|
73
|
+
setDropdownPosition(): void;
|
|
60
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "nggv-datepicker", never, { "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "disableDates": { "alias": "disableDates"; "required": false; }; "disableWeekDays": { "alias": "disableWeekDays"; "required": false; }; "minCalendarRows": { "alias": "minCalendarRows"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "type": { "alias": "type"; "required": false; }; "firstValid": { "alias": "firstValid"; "required": false; }; "lastValid": { "alias": "lastValid"; "required": false; }; "closingTime": { "alias": "closingTime"; "required": false; }; }, { "ngvDateChange": "ngvDateChange"; }, never, ["*"], false, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "nggv-datepicker", never, { "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "disableDates": { "alias": "disableDates"; "required": false; }; "disableWeekDays": { "alias": "disableWeekDays"; "required": false; }; "minCalendarRows": { "alias": "minCalendarRows"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "type": { "alias": "type"; "required": false; }; "firstValid": { "alias": "firstValid"; "required": false; }; "lastValid": { "alias": "lastValid"; "required": false; }; "closingTime": { "alias": "closingTime"; "required": false; }; "dynamicPosition": { "alias": "dynamicPosition"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "ngvDateChange": "ngvDateChange"; }, never, ["*"], false, never>;
|
|
62
76
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import '../../datepicker.globals';
|
|
2
|
+
import '@sebgroup/green-core/components/icon/icons/calendar.js';
|
|
3
|
+
import '@sebgroup/green-core/components/icon/icons/triangle-exclamation.js';
|
|
2
4
|
import { WeekDay } from '@angular/common';
|
|
3
5
|
import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
|
|
4
6
|
import { NgControl } from '@angular/forms';
|
|
@@ -6,8 +8,6 @@ import { TranslocoScope, TranslocoService } from '@jsverse/transloco';
|
|
|
6
8
|
import { Observable } from 'rxjs';
|
|
7
9
|
import { DateControlValueAccessorComponent } from '../../date-control-value-accessor/date-control-value-accessor.component';
|
|
8
10
|
import type { CalendarType } from '../../datepicker.models';
|
|
9
|
-
import '@sebgroup/green-core/components/icon/icons/calendar.js';
|
|
10
|
-
import '@sebgroup/green-core/components/icon/icons/triangle-exclamation.js';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
13
|
* Date pickers simplify the task of selecting a date in a visual representation of a calendar.
|
|
@@ -65,11 +65,14 @@ export declare class DateInputComponent extends DateControlValueAccessorComponen
|
|
|
65
65
|
* Sets the displayed size of the date input field.
|
|
66
66
|
*/
|
|
67
67
|
size: 'small' | 'large';
|
|
68
|
+
dynamicPosition: boolean;
|
|
68
69
|
/** @internal */
|
|
69
70
|
/** @internal */
|
|
70
71
|
shown: boolean;
|
|
71
72
|
/** @internal */
|
|
72
73
|
showInput$: Observable<boolean>;
|
|
74
|
+
/** Observable for listening to scrolls when the datepicker is open */
|
|
75
|
+
private documentScroll$;
|
|
73
76
|
/** Observable for listening to clicks outside of the datepicker. */
|
|
74
77
|
private documentClick$;
|
|
75
78
|
/** Subject used for unsubscribe pattern on above observable. */
|
|
@@ -104,5 +107,5 @@ export declare class DateInputComponent extends DateControlValueAccessorComponen
|
|
|
104
107
|
*/
|
|
105
108
|
private setShown;
|
|
106
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent, [{ optional: true; self: true; }, { optional: true; }, null, null, null]>;
|
|
107
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "nggv-dateinput,nggv-input[type=date]", never, { "thook": { "alias": "thook"; "required": false; }; "type": { "alias": "type"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disableDates": { "alias": "disableDates"; "required": false; }; "disableWeekDays": { "alias": "disableWeekDays"; "required": false; }; "minRows": { "alias": "minRows"; "required": false; }; "firstValid": { "alias": "firstValid"; "required": false; }; "lastValid": { "alias": "lastValid"; "required": false; }; "closingTime": { "alias": "closingTime"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "closeCalendarOnEscape": { "alias": "closeCalendarOnEscape"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "nggv-dateinput,nggv-input[type=date]", never, { "thook": { "alias": "thook"; "required": false; }; "type": { "alias": "type"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disableDates": { "alias": "disableDates"; "required": false; }; "disableWeekDays": { "alias": "disableWeekDays"; "required": false; }; "minRows": { "alias": "minRows"; "required": false; }; "firstValid": { "alias": "firstValid"; "required": false; }; "lastValid": { "alias": "lastValid"; "required": false; }; "closingTime": { "alias": "closingTime"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "closeCalendarOnEscape": { "alias": "closeCalendarOnEscape"; "required": false; }; "size": { "alias": "size"; "required": false; }; "dynamicPosition": { "alias": "dynamicPosition"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
108
111
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { WeekDay } from '@angular/common';
|
|
2
|
-
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
|
|
3
3
|
import { CalendarMonth } from '../../datepicker.models';
|
|
4
4
|
import type { CalendarType } from '../../datepicker.models';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class DatepickerComponent implements OnInit, OnChanges, OnDestroy {
|
|
7
|
+
private elementRef;
|
|
8
|
+
private renderer;
|
|
7
9
|
calendarTemplate: TemplateRef<any> | null;
|
|
8
10
|
/** Emits a Date upon selection. */
|
|
9
11
|
ngvDateChange: EventEmitter<Date>;
|
|
@@ -27,6 +29,15 @@ export declare class DatepickerComponent implements OnInit, OnChanges, OnDestroy
|
|
|
27
29
|
lastValid: Date | undefined;
|
|
28
30
|
/** Sets a closing time for today to toggle availability for today's date. */
|
|
29
31
|
closingTime: Date | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* When true, the datepicker will automatically choose to open above or below the input
|
|
34
|
+
* based on available space in the viewport, and will scale its height to fit if needed.
|
|
35
|
+
*/
|
|
36
|
+
dynamicPosition: boolean;
|
|
37
|
+
/** Needed to determent where to place datepicker if dropdownPosition === 'top' */
|
|
38
|
+
size: 'small' | 'large';
|
|
39
|
+
get positionAttr(): "bottom" | "top";
|
|
40
|
+
get sizeAttr(): "small" | "large";
|
|
30
41
|
/** @internal */
|
|
31
42
|
activeCalendar: CalendarMonth;
|
|
32
43
|
/** @internal */
|
|
@@ -34,7 +45,9 @@ export declare class DatepickerComponent implements OnInit, OnChanges, OnDestroy
|
|
|
34
45
|
weekdayArray: Date[];
|
|
35
46
|
/** @internal */
|
|
36
47
|
disabledDatesForActiveMonth: Date[];
|
|
48
|
+
datepickerPosition: 'bottom' | 'top';
|
|
37
49
|
private subs;
|
|
50
|
+
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
38
51
|
ngOnChanges(changes: SimpleChanges): void;
|
|
39
52
|
ngOnInit(): void;
|
|
40
53
|
ngOnDestroy(): void;
|
|
@@ -57,6 +70,7 @@ export declare class DatepickerComponent implements OnInit, OnChanges, OnDestroy
|
|
|
57
70
|
* @param date date clicked in calendar
|
|
58
71
|
*/
|
|
59
72
|
dateClickHandler(date: Date): void;
|
|
73
|
+
setDropdownPosition(): void;
|
|
60
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "nggv-datepicker", never, { "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "disableDates": { "alias": "disableDates"; "required": false; }; "disableWeekDays": { "alias": "disableWeekDays"; "required": false; }; "minCalendarRows": { "alias": "minCalendarRows"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "type": { "alias": "type"; "required": false; }; "firstValid": { "alias": "firstValid"; "required": false; }; "lastValid": { "alias": "lastValid"; "required": false; }; "closingTime": { "alias": "closingTime"; "required": false; }; }, { "ngvDateChange": "ngvDateChange"; }, never, ["*"], false, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "nggv-datepicker", never, { "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "disableDates": { "alias": "disableDates"; "required": false; }; "disableWeekDays": { "alias": "disableWeekDays"; "required": false; }; "minCalendarRows": { "alias": "minCalendarRows"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "type": { "alias": "type"; "required": false; }; "firstValid": { "alias": "firstValid"; "required": false; }; "lastValid": { "alias": "lastValid"; "required": false; }; "closingTime": { "alias": "closingTime"; "required": false; }; "dynamicPosition": { "alias": "dynamicPosition"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "ngvDateChange": "ngvDateChange"; }, never, ["*"], false, never>;
|
|
62
76
|
}
|