@odx/angular 2.11.3 → 2.12.0
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/CHANGELOG.md +15 -0
- package/components/calendar/index.d.ts +5 -1
- package/components/calendar/lib/calendar.component.d.ts +11 -11
- package/components/calendar/lib/calendar.config.d.ts +42 -0
- package/components/calendar/lib/{services/calendar.service.d.ts → calendar.service.d.ts} +4 -14
- package/components/calendar/lib/components/calendar-header/calendar-header.component.d.ts +17 -27
- package/components/calendar/lib/components/calendar-month/calendar-month.component.d.ts +11 -12
- package/components/calendar/lib/components/calendar-year/calendar-year.component.d.ts +10 -10
- package/components/calendar/lib/components/calendar-years/calendar-years.component.d.ts +9 -9
- package/components/calendar/lib/directives/calendar-cell.directive.d.ts +20 -13
- package/components/calendar/lib/directives/calendar-view.directive.d.ts +23 -12
- package/components/calendar/lib/{enums/calendar-view.enum.d.ts → models/calendar-view.d.ts} +1 -1
- package/components/calendar/lib/models/index.d.ts +1 -0
- package/components/calendar/lib/pipes/date-label.pipe.d.ts +7 -0
- package/components/calendar/lib/services/calendar-month.service.d.ts +6 -8
- package/components/calendar/lib/services/calendar-year.service.d.ts +4 -6
- package/components/calendar/lib/services/calendar-years.service.d.ts +3 -4
- package/components/calendar/lib/services/index.d.ts +0 -1
- package/components/calendar/lib/utils/check-identical-date.d.ts +2 -2
- package/components/calendar/lib/utils/get-A11y-label.d.ts +2 -2
- package/components/calendar/lib/utils/index.d.ts +1 -0
- package/components/calendar/lib/utils/is-date-disabled.d.ts +2 -0
- package/components/calendar/lib/utils/validate-max-date.d.ts +2 -2
- package/components/calendar/lib/utils/validate-min-date.d.ts +2 -2
- package/components/calendar/lib/utils/validate-next-date-set.d.ts +2 -2
- package/components/calendar/lib/utils/validate-previous-date-set.d.ts +2 -2
- package/components/datepicker/lib/datepicker.component.d.ts +3 -1
- package/components/main-menu/index.d.ts +1 -0
- package/components/main-menu/lib/helpers/create-main-menu-links.d.ts +2 -0
- package/components/main-menu/lib/helpers/index.d.ts +1 -0
- package/components/main-menu/lib/main-menu.component.d.ts +3 -0
- package/components/main-menu/lib/main-menu.config.d.ts +8 -0
- package/components/main-menu/lib/main-menu.i18n.d.ts +3 -0
- package/components/main-menu/lib/models/index.d.ts +1 -0
- package/components/main-menu/lib/models/main-menu-link.d.ts +4 -0
- package/esm2020/components/calendar/index.mjs +6 -2
- package/esm2020/components/calendar/lib/calendar.component.mjs +12 -19
- package/esm2020/components/calendar/lib/calendar.config.mjs +8 -1
- package/esm2020/components/calendar/lib/calendar.service.mjs +36 -0
- package/esm2020/components/calendar/lib/components/calendar-header/calendar-header.component.mjs +33 -27
- package/esm2020/components/calendar/lib/components/calendar-month/calendar-month.component.mjs +6 -6
- package/esm2020/components/calendar/lib/components/calendar-year/calendar-year.component.mjs +7 -7
- package/esm2020/components/calendar/lib/components/calendar-years/calendar-years.component.mjs +9 -8
- package/esm2020/components/calendar/lib/directives/calendar-cell.directive.mjs +8 -11
- package/esm2020/components/calendar/lib/directives/calendar-view.directive.mjs +24 -14
- package/esm2020/components/calendar/lib/models/calendar-view.mjs +7 -0
- package/esm2020/components/calendar/lib/models/index.mjs +2 -1
- package/esm2020/components/calendar/lib/pipes/date-label.pipe.mjs +4 -4
- package/esm2020/components/calendar/lib/services/calendar-month.service.mjs +2 -2
- package/esm2020/components/calendar/lib/services/calendar-year.service.mjs +7 -5
- package/esm2020/components/calendar/lib/services/calendar-years.service.mjs +12 -9
- package/esm2020/components/calendar/lib/services/index.mjs +1 -2
- package/esm2020/components/calendar/lib/utils/check-identical-date.mjs +7 -7
- package/esm2020/components/calendar/lib/utils/get-A11y-label.mjs +7 -7
- package/esm2020/components/calendar/lib/utils/index.mjs +2 -1
- package/esm2020/components/calendar/lib/utils/is-date-disabled.mjs +10 -0
- package/esm2020/components/calendar/lib/utils/validate-max-date.mjs +7 -7
- package/esm2020/components/calendar/lib/utils/validate-min-date.mjs +7 -7
- package/esm2020/components/calendar/lib/utils/validate-next-date-set.mjs +7 -8
- package/esm2020/components/calendar/lib/utils/validate-previous-date-set.mjs +7 -8
- package/esm2020/components/datepicker/lib/datepicker.component.mjs +7 -4
- package/esm2020/components/main-menu/index.mjs +2 -1
- package/esm2020/components/main-menu/lib/helpers/create-main-menu-links.mjs +13 -0
- package/esm2020/components/main-menu/lib/helpers/index.mjs +2 -0
- package/esm2020/components/main-menu/lib/main-menu.component.mjs +11 -5
- package/esm2020/components/main-menu/lib/main-menu.config.mjs +6 -0
- package/esm2020/components/main-menu/lib/main-menu.i18n.mjs +17 -0
- package/esm2020/components/main-menu/lib/models/index.mjs +2 -0
- package/esm2020/components/main-menu/lib/models/main-menu-link.mjs +2 -0
- package/esm2020/index.mjs +2 -1
- package/esm2020/internal/translate/index.mjs +7 -0
- package/esm2020/internal/translate/lib/helpers/get-language-code.mjs +6 -0
- package/esm2020/internal/translate/lib/helpers/index.mjs +2 -0
- package/esm2020/internal/translate/lib/models/index.mjs +2 -0
- package/esm2020/internal/translate/lib/models/translation.mjs +2 -0
- package/esm2020/internal/translate/lib/pipes/index.mjs +2 -0
- package/esm2020/internal/translate/lib/pipes/translate.pipe.mjs +22 -0
- package/esm2020/internal/translate/lib/services/index.mjs +2 -0
- package/esm2020/internal/translate/lib/services/language.service.mjs +21 -0
- package/esm2020/internal/translate/lib/translate.config.mjs +15 -0
- package/esm2020/internal/translate/lib/translate.service.mjs +16 -0
- package/esm2020/internal/translate/odx-angular-internal-translate.mjs +5 -0
- package/esm2020/lib/services/window-ref.mjs +3 -2
- package/esm2020/utils/lib/helpers/build-website-url.mjs +6 -0
- package/esm2020/utils/lib/helpers/index.mjs +2 -1
- package/fesm2015/odx-angular-components-calendar.mjs +254 -270
- package/fesm2015/odx-angular-components-calendar.mjs.map +1 -1
- package/fesm2015/odx-angular-components-datepicker.mjs +5 -2
- package/fesm2015/odx-angular-components-datepicker.mjs.map +1 -1
- package/fesm2015/odx-angular-components-main-menu.mjs +43 -6
- package/fesm2015/odx-angular-components-main-menu.mjs.map +1 -1
- package/fesm2015/odx-angular-internal-translate.mjs +75 -0
- package/fesm2015/odx-angular-internal-translate.mjs.map +1 -0
- package/fesm2015/odx-angular-utils.mjs +6 -1
- package/fesm2015/odx-angular-utils.mjs.map +1 -1
- package/fesm2015/odx-angular.mjs +3 -1
- package/fesm2015/odx-angular.mjs.map +1 -1
- package/fesm2020/odx-angular-components-calendar.mjs +254 -269
- package/fesm2020/odx-angular-components-calendar.mjs.map +1 -1
- package/fesm2020/odx-angular-components-datepicker.mjs +5 -2
- package/fesm2020/odx-angular-components-datepicker.mjs.map +1 -1
- package/fesm2020/odx-angular-components-main-menu.mjs +43 -6
- package/fesm2020/odx-angular-components-main-menu.mjs.map +1 -1
- package/fesm2020/odx-angular-internal-translate.mjs +74 -0
- package/fesm2020/odx-angular-internal-translate.mjs.map +1 -0
- package/fesm2020/odx-angular-utils.mjs +6 -1
- package/fesm2020/odx-angular-utils.mjs.map +1 -1
- package/fesm2020/odx-angular.mjs +3 -1
- package/fesm2020/odx-angular.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/internal/translate/README.md +3 -0
- package/internal/translate/index.d.ts +6 -0
- package/internal/translate/lib/helpers/get-language-code.d.ts +1 -0
- package/internal/translate/lib/helpers/index.d.ts +1 -0
- package/internal/translate/lib/models/index.d.ts +1 -0
- package/internal/translate/lib/models/translation.d.ts +2 -0
- package/internal/translate/lib/pipes/index.d.ts +1 -0
- package/internal/translate/lib/pipes/translate.pipe.d.ts +9 -0
- package/internal/translate/lib/services/index.d.ts +1 -0
- package/internal/translate/lib/services/language.service.d.ts +8 -0
- package/internal/translate/lib/translate.config.d.ts +9 -0
- package/internal/translate/lib/translate.service.d.ts +10 -0
- package/package.json +11 -3
- package/utils/lib/helpers/build-website-url.d.ts +2 -0
- package/utils/lib/helpers/index.d.ts +1 -0
- package/components/calendar/lib/enums/index.d.ts +0 -1
- package/esm2020/components/calendar/lib/enums/calendar-view.enum.mjs +0 -7
- package/esm2020/components/calendar/lib/enums/index.mjs +0 -2
- package/esm2020/components/calendar/lib/services/calendar.service.mjs +0 -73
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# @odx/angular 2.12.0 (2023-09-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **angular/components/main-menu:** add default main menu links ([a461476](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/a461476bfbd7dae919b33ce485e98760a8124189))
|
|
7
|
+
* **angular/internal:** add internal translate library ([6ee2eb6](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/6ee2eb67cc12f6ecfa1230a1ffcc377df7108180))
|
|
8
|
+
|
|
9
|
+
## @odx/angular 2.11.4 (2023-09-11)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **datepicker:** change alignment of datepicker control text ([1d8e72b](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/1d8e72bcd858aaeceeee6d63cd9ef19d7e8e45fe))
|
|
15
|
+
|
|
1
16
|
## @odx/angular 2.11.3 (2023-09-08)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export * from './lib/calendar.component';
|
|
2
2
|
export * from './lib/calendar.config';
|
|
3
|
-
export * from './lib/
|
|
3
|
+
export * from './lib/calendar.service';
|
|
4
|
+
export * from './lib/components';
|
|
5
|
+
export * from './lib/directives';
|
|
4
6
|
export * from './lib/models';
|
|
5
7
|
export * from './lib/pipes';
|
|
8
|
+
export * from './lib/services';
|
|
9
|
+
export * from './lib/utils';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
|
+
import { NgChanges } from '@odx/angular/utils';
|
|
3
|
+
import { CalendarService } from './calendar.service';
|
|
4
|
+
import { CalendarView, DateFilter, DateType } from './models';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CalendarComponent implements OnChanges {
|
|
7
|
+
protected readonly CalendarView: typeof CalendarView;
|
|
7
8
|
protected readonly calendar: CalendarService;
|
|
8
9
|
readonly element: import("@angular/core").ElementRef<HTMLElement>;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
maxDate: Date | null;
|
|
10
|
+
selectedDate: DateType | null;
|
|
11
|
+
minDate?: Date | null;
|
|
12
|
+
maxDate?: Date | null;
|
|
13
13
|
filterFn?: DateFilter | null;
|
|
14
|
-
|
|
15
|
-
ngOnChanges(changes:
|
|
14
|
+
selectedDateChange: EventEmitter<Date | null>;
|
|
15
|
+
ngOnChanges(changes: NgChanges<CalendarComponent>): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "odx-calendar", never, { "selectedDate": "selectedDate"; "minDate": "minDate"; "maxDate": "maxDate"; "filterFn": "filterFn"; }, { "
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "odx-calendar", never, { "selectedDate": "selectedDate"; "minDate": "minDate"; "maxDate": "maxDate"; "filterFn": "filterFn"; }, { "selectedDateChange": "selectedDateChange"; }, never, never, true, never>;
|
|
18
18
|
}
|
|
@@ -51,6 +51,13 @@ export interface CalendarConfig {
|
|
|
51
51
|
* @default enGB
|
|
52
52
|
*/
|
|
53
53
|
locale: BehaviorSubject<Locale>;
|
|
54
|
+
yearView: {
|
|
55
|
+
itemsPerRow: number;
|
|
56
|
+
};
|
|
57
|
+
yearsView: {
|
|
58
|
+
itemsPerRow: number;
|
|
59
|
+
padding: number;
|
|
60
|
+
};
|
|
54
61
|
}
|
|
55
62
|
export declare const CalendarConfig: import("@angular/core").InjectionToken<Partial<{
|
|
56
63
|
monthYearLabel: string;
|
|
@@ -63,6 +70,13 @@ export declare const CalendarConfig: import("@angular/core").InjectionToken<Part
|
|
|
63
70
|
yearA11yLabel: string;
|
|
64
71
|
displayAdjacentDays: boolean;
|
|
65
72
|
locale: BehaviorSubject<globalThis.Locale>;
|
|
73
|
+
yearView: {
|
|
74
|
+
itemsPerRow: number;
|
|
75
|
+
};
|
|
76
|
+
yearsView: {
|
|
77
|
+
itemsPerRow: number;
|
|
78
|
+
padding: number;
|
|
79
|
+
};
|
|
66
80
|
}>>, CalendarDefaultConfig: {
|
|
67
81
|
monthYearLabel: string;
|
|
68
82
|
monthLabel: string;
|
|
@@ -74,6 +88,13 @@ export declare const CalendarConfig: import("@angular/core").InjectionToken<Part
|
|
|
74
88
|
yearA11yLabel: string;
|
|
75
89
|
displayAdjacentDays: boolean;
|
|
76
90
|
locale: BehaviorSubject<globalThis.Locale>;
|
|
91
|
+
yearView: {
|
|
92
|
+
itemsPerRow: number;
|
|
93
|
+
};
|
|
94
|
+
yearsView: {
|
|
95
|
+
itemsPerRow: number;
|
|
96
|
+
padding: number;
|
|
97
|
+
};
|
|
77
98
|
}, injectCalendarConfig: () => {
|
|
78
99
|
monthYearLabel: string;
|
|
79
100
|
monthLabel: string;
|
|
@@ -85,6 +106,13 @@ export declare const CalendarConfig: import("@angular/core").InjectionToken<Part
|
|
|
85
106
|
yearA11yLabel: string;
|
|
86
107
|
displayAdjacentDays: boolean;
|
|
87
108
|
locale: BehaviorSubject<globalThis.Locale>;
|
|
109
|
+
yearView: {
|
|
110
|
+
itemsPerRow: number;
|
|
111
|
+
};
|
|
112
|
+
yearsView: {
|
|
113
|
+
itemsPerRow: number;
|
|
114
|
+
padding: number;
|
|
115
|
+
};
|
|
88
116
|
}, provideCalendarConfig: <D extends import("@odx/angular/utils").ConfigDependencies<unknown> = import("@odx/angular/utils").ConfigDependencies<{
|
|
89
117
|
monthYearLabel: string;
|
|
90
118
|
monthLabel: string;
|
|
@@ -96,6 +124,13 @@ export declare const CalendarConfig: import("@angular/core").InjectionToken<Part
|
|
|
96
124
|
yearA11yLabel: string;
|
|
97
125
|
displayAdjacentDays: boolean;
|
|
98
126
|
locale: BehaviorSubject<globalThis.Locale>;
|
|
127
|
+
yearView: {
|
|
128
|
+
itemsPerRow: number;
|
|
129
|
+
};
|
|
130
|
+
yearsView: {
|
|
131
|
+
itemsPerRow: number;
|
|
132
|
+
padding: number;
|
|
133
|
+
};
|
|
99
134
|
}>>(config: import("@odx/angular/utils").ConfigProvider<Partial<{
|
|
100
135
|
monthYearLabel: string;
|
|
101
136
|
monthLabel: string;
|
|
@@ -107,4 +142,11 @@ export declare const CalendarConfig: import("@angular/core").InjectionToken<Part
|
|
|
107
142
|
yearA11yLabel: string;
|
|
108
143
|
displayAdjacentDays: boolean;
|
|
109
144
|
locale: BehaviorSubject<globalThis.Locale>;
|
|
145
|
+
yearView: {
|
|
146
|
+
itemsPerRow: number;
|
|
147
|
+
};
|
|
148
|
+
yearsView: {
|
|
149
|
+
itemsPerRow: number;
|
|
150
|
+
padding: number;
|
|
151
|
+
};
|
|
110
152
|
}>, D>) => import("@angular/core").FactoryProvider | import("@angular/core").ValueProvider;
|
|
@@ -1,25 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DateFilter, DateType } from '../models';
|
|
1
|
+
import { CalendarView, DateType } from './models';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class CalendarService {
|
|
5
4
|
private readonly calendarView$$;
|
|
6
5
|
private readonly activeDate$$;
|
|
7
6
|
private readonly selectedDate$$;
|
|
8
|
-
|
|
9
|
-
maxDate: Date | null;
|
|
10
|
-
filterFn?: DateFilter | null;
|
|
11
|
-
readonly calendarView$: import("rxjs").Observable<CalendarViewEnum>;
|
|
12
|
-
readonly activeDate$: import("rxjs").Observable<Date>;
|
|
7
|
+
readonly calendarView$: import("rxjs").Observable<CalendarView>;
|
|
13
8
|
readonly selectedDate$: import("rxjs").Observable<Date | null>;
|
|
9
|
+
readonly activeDate$: import("rxjs").Observable<Date>;
|
|
14
10
|
setActiveDate(value: DateType | null): void;
|
|
15
11
|
selectDate(value: DateType | null): void;
|
|
16
|
-
|
|
17
|
-
get selectedDate(): Date | null;
|
|
18
|
-
changeView(view: CalendarViewEnum): void;
|
|
19
|
-
get calendarCurrentView(): CalendarViewEnum;
|
|
20
|
-
isDateDisabled(date: Date): boolean;
|
|
21
|
-
isPreviousDateSetDisabled(): boolean;
|
|
22
|
-
isNextDateSetDisabled(): boolean;
|
|
12
|
+
changeView(view: CalendarView): void;
|
|
23
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarService, never>;
|
|
24
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarService>;
|
|
25
15
|
}
|
|
@@ -1,31 +1,21 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
|
+
import { NgChanges } from '@odx/angular/utils';
|
|
3
|
+
import { CalendarView } from '../../models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CalendarHeaderComponent {
|
|
6
|
-
protected
|
|
5
|
+
export declare class CalendarHeaderComponent implements OnChanges {
|
|
6
|
+
protected isPreviousDisabled: boolean;
|
|
7
|
+
protected isNextDisabled: boolean;
|
|
7
8
|
readonly element: import("@angular/core").ElementRef<HTMLElement>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
monthA11yLabel: string;
|
|
19
|
-
yearA11yLabel: string;
|
|
20
|
-
displayAdjacentDays: boolean;
|
|
21
|
-
locale: import("rxjs").BehaviorSubject<Locale>;
|
|
22
|
-
};
|
|
23
|
-
protected previousClicked(event: Event): void;
|
|
24
|
-
protected nextClicked(event: Event): void;
|
|
25
|
-
protected get handleIsPreviousDisabled$(): Observable<boolean>;
|
|
26
|
-
protected get handleIsNextDisabled$(): Observable<boolean>;
|
|
27
|
-
protected get isPreviousDisabled(): boolean;
|
|
28
|
-
protected get isNextDisabled(): boolean;
|
|
9
|
+
activeDate: Date;
|
|
10
|
+
calendarView: CalendarView;
|
|
11
|
+
minDate?: Date | null;
|
|
12
|
+
maxDate?: Date | null;
|
|
13
|
+
previous: EventEmitter<MouseEvent>;
|
|
14
|
+
next: EventEmitter<MouseEvent>;
|
|
15
|
+
changeView: EventEmitter<void>;
|
|
16
|
+
ngOnChanges(changes: NgChanges<CalendarHeaderComponent>): void;
|
|
17
|
+
protected previousClicked(event: MouseEvent): void;
|
|
18
|
+
protected nextClicked(event: MouseEvent): void;
|
|
29
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarHeaderComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarHeaderComponent, "odx-calendar-header", never, {}, { "previous": "previous"; "next": "next"; "changeView": "changeView"; }, never, ["*"], true, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarHeaderComponent, "odx-calendar-header", never, { "activeDate": "activeDate"; "calendarView": "calendarView"; "minDate": "minDate"; "maxDate": "maxDate"; }, { "previous": "previous"; "next": "next"; "changeView": "changeView"; }, never, ["*"], true, never>;
|
|
31
21
|
}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { CalendarViewDirective } from '../../directives';
|
|
3
|
-
import {
|
|
4
|
-
import { DateType } from '../../models';
|
|
3
|
+
import { CalendarView } from '../../models';
|
|
5
4
|
import { CalendarMonthService } from '../../services';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class CalendarMonthComponent extends CalendarViewDirective {
|
|
8
7
|
protected readonly calendarMonth: CalendarMonthService;
|
|
9
|
-
protected readonly
|
|
10
|
-
protected readonly
|
|
11
|
-
selectedChange: EventEmitter<
|
|
12
|
-
previousDay(event: Event): void;
|
|
13
|
-
nextDay(event: Event): void;
|
|
14
|
-
previousWeek(event: Event): void;
|
|
15
|
-
nextWeek(event: Event): void;
|
|
16
|
-
previousMonth(event: Event): void;
|
|
17
|
-
nextMonth(event: Event): void;
|
|
18
|
-
selectDate(value: Date): void;
|
|
8
|
+
protected readonly nextView = CalendarView.Years;
|
|
9
|
+
protected readonly currentView = CalendarView.Month;
|
|
10
|
+
selectedChange: EventEmitter<Date | null>;
|
|
11
|
+
protected previousDay(event: Event): void;
|
|
12
|
+
protected nextDay(event: Event): void;
|
|
13
|
+
protected previousWeek(event: Event): void;
|
|
14
|
+
protected nextWeek(event: Event): void;
|
|
15
|
+
protected previousMonth(event: Event): void;
|
|
16
|
+
protected nextMonth(event: Event): void;
|
|
17
|
+
protected selectDate(value: Date): void;
|
|
19
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthComponent, never>;
|
|
20
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarMonthComponent, "odx-calendar-month", never, {}, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
21
20
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { CalendarViewDirective } from '../../directives';
|
|
2
|
-
import {
|
|
2
|
+
import { CalendarView } from '../../models';
|
|
3
3
|
import { CalendarYearService } from '../../services';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CalendarYearComponent extends CalendarViewDirective {
|
|
6
6
|
protected readonly calendarYear: CalendarYearService;
|
|
7
|
-
protected readonly
|
|
8
|
-
protected readonly
|
|
9
|
-
previousMonth(event: Event): void;
|
|
10
|
-
nextMonth(event: Event): void;
|
|
11
|
-
previousSeason(event: Event): void;
|
|
12
|
-
nextSeason(event: Event): void;
|
|
13
|
-
previousYear(event: Event): void;
|
|
14
|
-
nextYear(event: Event): void;
|
|
15
|
-
selectDate(value: Date): void;
|
|
7
|
+
protected readonly nextView = CalendarView.Month;
|
|
8
|
+
protected readonly currentView = CalendarView.Year;
|
|
9
|
+
protected previousMonth(event: Event): void;
|
|
10
|
+
protected nextMonth(event: Event): void;
|
|
11
|
+
protected previousSeason(event: Event): void;
|
|
12
|
+
protected nextSeason(event: Event): void;
|
|
13
|
+
protected previousYear(event: Event): void;
|
|
14
|
+
protected nextYear(event: Event): void;
|
|
15
|
+
protected selectDate(value: Date): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarYearComponent, never>;
|
|
17
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarYearComponent, "odx-calendar-year", never, {}, {}, never, never, true, never>;
|
|
18
18
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { AfterViewInit } from '@angular/core';
|
|
2
2
|
import { CalendarViewDirective } from '../../directives';
|
|
3
|
-
import {
|
|
3
|
+
import { CalendarView } from '../../models';
|
|
4
4
|
import { CalendarYearsService } from '../../services';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CalendarYearsComponent extends CalendarViewDirective implements AfterViewInit {
|
|
7
7
|
private readonly document;
|
|
8
8
|
protected readonly calendarYears: CalendarYearsService;
|
|
9
|
-
protected readonly
|
|
10
|
-
protected readonly
|
|
9
|
+
protected readonly nextView = CalendarView.Year;
|
|
10
|
+
protected readonly currentView = CalendarView.Years;
|
|
11
11
|
ngAfterViewInit(): void;
|
|
12
|
-
previousYear(event: Event): void;
|
|
13
|
-
nextYear(event: Event): void;
|
|
14
|
-
previousRow(event: Event): void;
|
|
15
|
-
nextRow(event: Event): void;
|
|
16
|
-
selectDate(value: Date): void;
|
|
17
|
-
scrollCurrentYearIntoView
|
|
12
|
+
protected previousYear(event: Event): void;
|
|
13
|
+
protected nextYear(event: Event): void;
|
|
14
|
+
protected previousRow(event: Event): void;
|
|
15
|
+
protected nextRow(event: Event): void;
|
|
16
|
+
protected selectDate(value: Date): void;
|
|
17
|
+
private scrollCurrentYearIntoView;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarYearsComponent, never>;
|
|
19
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarYearsComponent, "odx-calendar-years", never, {}, {}, never, never, true, never>;
|
|
20
20
|
}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
import { OnChanges } from '@angular/core';
|
|
2
2
|
import { NgChanges } from '@odx/angular/utils';
|
|
3
|
-
import {
|
|
3
|
+
import { CalendarView } from '../models';
|
|
4
4
|
import { DateLabelPipe } from '../pipes';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CalendarCellDirective implements OnChanges {
|
|
7
7
|
private readonly disabledController;
|
|
8
|
-
protected
|
|
9
|
-
protected isSelected: boolean;
|
|
10
|
-
protected isHidden: boolean;
|
|
11
|
-
protected isCurrent: boolean;
|
|
12
|
-
protected adjacent: boolean;
|
|
13
|
-
protected get isDisabled(): boolean;
|
|
14
|
-
readonly element: import("@angular/core").ElementRef<HTMLElement>;
|
|
15
|
-
readonly dateLabelPipe: DateLabelPipe;
|
|
16
|
-
readonly config: {
|
|
8
|
+
protected readonly config: {
|
|
17
9
|
monthYearLabel: string;
|
|
18
10
|
monthLabel: string;
|
|
19
11
|
weekLabel: string;
|
|
@@ -24,13 +16,28 @@ export declare class CalendarCellDirective implements OnChanges {
|
|
|
24
16
|
yearA11yLabel: string;
|
|
25
17
|
displayAdjacentDays: boolean;
|
|
26
18
|
locale: import("rxjs").BehaviorSubject<Locale>;
|
|
19
|
+
yearView: {
|
|
20
|
+
itemsPerRow: number;
|
|
21
|
+
};
|
|
22
|
+
yearsView: {
|
|
23
|
+
itemsPerRow: number;
|
|
24
|
+
padding: number;
|
|
25
|
+
};
|
|
27
26
|
};
|
|
27
|
+
protected readonly dateLabelPipe: DateLabelPipe;
|
|
28
|
+
protected isActive: boolean;
|
|
29
|
+
protected isSelected: boolean;
|
|
30
|
+
protected isHidden: boolean;
|
|
31
|
+
protected ariaLabel: string;
|
|
32
|
+
protected get isDisabled(): boolean;
|
|
33
|
+
protected isCurrent: boolean;
|
|
34
|
+
protected adjacent: boolean;
|
|
35
|
+
readonly element: import("@angular/core").ElementRef<HTMLElement>;
|
|
28
36
|
date: Date;
|
|
29
|
-
calendarView:
|
|
37
|
+
calendarView: CalendarView;
|
|
30
38
|
activeDate: Date | null;
|
|
31
|
-
selectedDate
|
|
39
|
+
selectedDate?: Date | null;
|
|
32
40
|
ngOnChanges(changes: NgChanges<CalendarCellDirective>): void;
|
|
33
|
-
get ariaLabel(): string;
|
|
34
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarCellDirective, never>;
|
|
35
42
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarCellDirective, "[odxCalendarCell]", never, { "date": "odxCalendarCell"; "calendarView": "odxCalendarCellCalendarView"; "activeDate": "odxCalendarCellActiveDate"; "selectedDate": "odxCalendarCellSelectedDate"; }, {}, never, never, true, never>;
|
|
36
43
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CalendarService } from '../
|
|
1
|
+
import { trackByIndex } from '@odx/angular/utils';
|
|
2
|
+
import { CalendarService } from '../calendar.service';
|
|
3
|
+
import { CalendarView, DateFilter } from '../models';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare abstract class CalendarViewDirective {
|
|
5
6
|
protected readonly takeUntilDestroyed: <T>() => import("rxjs").MonoTypeOperatorFunction<T>;
|
|
6
7
|
protected readonly calendar: CalendarService;
|
|
7
|
-
protected
|
|
8
|
-
protected abstract readonly calendarCurrentView: CalendarViewEnum;
|
|
9
|
-
readonly config: {
|
|
8
|
+
protected readonly config: {
|
|
10
9
|
monthYearLabel: string;
|
|
11
10
|
monthLabel: string;
|
|
12
11
|
weekLabel: string;
|
|
@@ -17,14 +16,26 @@ export declare abstract class CalendarViewDirective {
|
|
|
17
16
|
yearA11yLabel: string;
|
|
18
17
|
displayAdjacentDays: boolean;
|
|
19
18
|
locale: import("rxjs").BehaviorSubject<Locale>;
|
|
19
|
+
yearView: {
|
|
20
|
+
itemsPerRow: number;
|
|
21
|
+
};
|
|
22
|
+
yearsView: {
|
|
23
|
+
itemsPerRow: number;
|
|
24
|
+
padding: number;
|
|
25
|
+
};
|
|
20
26
|
};
|
|
27
|
+
protected readonly trackByIndex: typeof trackByIndex;
|
|
28
|
+
protected abstract readonly currentView: CalendarView;
|
|
29
|
+
protected abstract readonly nextView: CalendarView;
|
|
21
30
|
readonly element: import("@angular/core").ElementRef<HTMLElement>;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
protected
|
|
31
|
+
activeDate: Date;
|
|
32
|
+
selectedDate?: Date | null;
|
|
33
|
+
minDate?: Date | null;
|
|
34
|
+
maxDate?: Date | null;
|
|
35
|
+
filterFn?: DateFilter | null;
|
|
36
|
+
protected isDateDisabled(value: Date): boolean;
|
|
37
|
+
protected changeView(): void;
|
|
38
|
+
protected updateActiveDate(event: Event, date: Date): void;
|
|
28
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarViewDirective, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarViewDirective, never, never, {}, {}, never, never, true, never>;
|
|
40
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarViewDirective, never, never, { "activeDate": "activeDate"; "selectedDate": "selectedDate"; "minDate": "minDate"; "maxDate": "maxDate"; "filterFn": "filterFn"; }, {}, never, never, true, never>;
|
|
30
41
|
}
|
|
@@ -12,6 +12,13 @@ export declare class DateLabelPipe implements PipeTransform {
|
|
|
12
12
|
yearA11yLabel: string;
|
|
13
13
|
displayAdjacentDays: boolean;
|
|
14
14
|
locale: import("rxjs").BehaviorSubject<Locale>;
|
|
15
|
+
yearView: {
|
|
16
|
+
itemsPerRow: number;
|
|
17
|
+
};
|
|
18
|
+
yearsView: {
|
|
19
|
+
itemsPerRow: number;
|
|
20
|
+
padding: number;
|
|
21
|
+
};
|
|
15
22
|
};
|
|
16
23
|
transform(value: Date | null, dateFormat: string): string;
|
|
17
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateLabelPipe, never>;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { CalendarService } from './calendar.service';
|
|
3
1
|
import * as i0 from "@angular/core";
|
|
4
2
|
export declare class CalendarMonthService {
|
|
5
|
-
|
|
6
|
-
readonly weekDays$: Observable<Date[]>;
|
|
7
|
-
readonly weeks$: Observable<Date[][]>;
|
|
8
|
-
generateWeekDays
|
|
9
|
-
generateWeeks
|
|
10
|
-
generateDaysForWeek
|
|
3
|
+
private readonly calendar;
|
|
4
|
+
readonly weekDays$: import("rxjs").Observable<Date[]>;
|
|
5
|
+
readonly weeks$: import("rxjs").Observable<Date[][]>;
|
|
6
|
+
private generateWeekDays;
|
|
7
|
+
private generateWeeks;
|
|
8
|
+
private generateDaysForWeek;
|
|
11
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthService, never>;
|
|
12
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarMonthService>;
|
|
13
11
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { CalendarService } from './calendar.service';
|
|
3
1
|
import * as i0 from "@angular/core";
|
|
4
2
|
export declare class CalendarYearService {
|
|
5
|
-
|
|
6
|
-
readonly
|
|
7
|
-
readonly seasons$: Observable<Date[][]>;
|
|
8
|
-
generateSeasons
|
|
3
|
+
private readonly config;
|
|
4
|
+
private readonly calendar;
|
|
5
|
+
readonly seasons$: import("rxjs").Observable<Date[][]>;
|
|
6
|
+
private generateSeasons;
|
|
9
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarYearService, never>;
|
|
10
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarYearService>;
|
|
11
9
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class CalendarYearsService {
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
5
|
-
|
|
6
|
-
get years(): Date[][];
|
|
3
|
+
private readonly config;
|
|
4
|
+
readonly years$: import("rxjs").Observable<Date[][]>;
|
|
5
|
+
private generateYears;
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarYearsService, never>;
|
|
8
7
|
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarYearsService>;
|
|
9
8
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function checkIdenticalDate(currentDate: Date, date: Date, calendarView:
|
|
1
|
+
import { CalendarView } from '../models';
|
|
2
|
+
export declare function checkIdenticalDate(currentDate: Date, date: Date, calendarView: CalendarView): boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CalendarConfig } from '../calendar.config';
|
|
2
|
-
import {
|
|
3
|
-
export declare function getA11yLabel(calendarView:
|
|
2
|
+
import { CalendarView } from '../models';
|
|
3
|
+
export declare function getA11yLabel(calendarView: CalendarView, config: CalendarConfig): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function validateMaxDate(maxDate: Date, date: Date, calendarView:
|
|
1
|
+
import { CalendarView } from '../models';
|
|
2
|
+
export declare function validateMaxDate(maxDate: Date, date: Date, calendarView: CalendarView): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function validateMinDate(maxDate: Date, date: Date, calendarView:
|
|
1
|
+
import { CalendarView } from '../models';
|
|
2
|
+
export declare function validateMinDate(maxDate: Date, date: Date, calendarView: CalendarView): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function validateNextDateSet(maxDate: Date, date: Date, calendarView:
|
|
1
|
+
import { CalendarView } from '../models';
|
|
2
|
+
export declare function validateNextDateSet(maxDate: Date, date: Date, calendarView: CalendarView): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function validatePreviousDateSet(minDate: Date, date: Date, calendarView:
|
|
1
|
+
import { CalendarView } from '../models';
|
|
2
|
+
export declare function validatePreviousDateSet(minDate: Date, date: Date, calendarView: CalendarView): boolean;
|
|
@@ -3,6 +3,7 @@ import { ClickOutsideDirective } from '@odx/angular';
|
|
|
3
3
|
import { CustomFormControl } from '@odx/angular/cdk/custom-form-control';
|
|
4
4
|
import { DateFilter } from '@odx/angular/components/calendar';
|
|
5
5
|
import { DropdownDirective } from '@odx/angular/components/dropdown';
|
|
6
|
+
import { Position } from '@odx/angular/utils';
|
|
6
7
|
import { DatepickerInputControlDirective } from './directives';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
import * as i1 from "@odx/angular";
|
|
@@ -18,6 +19,7 @@ export declare class DatepickerComponent extends CustomFormControl<Date | null>
|
|
|
18
19
|
filterFn: DateFilter | null;
|
|
19
20
|
minDate: Date | null;
|
|
20
21
|
maxDate: Date | null;
|
|
22
|
+
dropdownPosition: Position;
|
|
21
23
|
selectedChange: EventEmitter<Date>;
|
|
22
24
|
dropdown: DropdownDirective;
|
|
23
25
|
dropdownTriggerElement: ElementRef<HTMLElement>;
|
|
@@ -33,5 +35,5 @@ export declare class DatepickerComponent extends CustomFormControl<Date | null>
|
|
|
33
35
|
protected openDatepicker(event: KeyboardEvent): void;
|
|
34
36
|
private updateDateField;
|
|
35
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "odx-datepicker", never, { "filterFn": "filterFn"; "minDate": "minDate"; "maxDate": "maxDate"; }, { "selectedChange": "selectedChange"; }, ["dateField"], ["input[odxDatepickerControl]"], true, [{ directive: typeof i1.ClickOutsideDirective; inputs: {}; outputs: {}; }]>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "odx-datepicker", never, { "filterFn": "filterFn"; "minDate": "minDate"; "maxDate": "maxDate"; "dropdownPosition": "dropdownPosition"; }, { "selectedChange": "selectedChange"; }, ["dateField"], ["input[odxDatepickerControl]"], true, [{ directive: typeof i1.ClickOutsideDirective; inputs: {}; outputs: {}; }]>;
|
|
37
39
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-main-menu-links';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { trackByIndex } from '@odx/angular/utils';
|
|
2
3
|
import { MainMenuService } from './main-menu.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class MainMenuComponent {
|
|
5
6
|
static readonly ngAcceptInputType_isOpen: BooleanInput;
|
|
6
7
|
protected readonly mainMenuService: MainMenuService;
|
|
8
|
+
protected readonly mainMenuLinks: import("./models").MainMenuLink[];
|
|
9
|
+
protected readonly trackByIndex: typeof trackByIndex;
|
|
7
10
|
readonly element: import("@angular/core").ElementRef<HTMLElement>;
|
|
8
11
|
title: string;
|
|
9
12
|
subtitle: string | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface MainMenuLinksConfig {
|
|
2
|
+
dataProtectionUrl?: string | null;
|
|
3
|
+
legalNoticeUrl: string | null;
|
|
4
|
+
providerIdentificationUrl: string | null;
|
|
5
|
+
termsAndConditionsUrl?: string | null;
|
|
6
|
+
openSourceUrl?: string | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const MainMenuLinksConfig: import("@angular/core").InjectionToken<Partial<MainMenuLinksConfig>>, MainMenuLinksDefaultConfig: MainMenuLinksConfig, injectMainMenuLinksConfig: () => MainMenuLinksConfig, provideMainMenuLinksConfig: <D extends import("@odx/angular/utils").ConfigDependencies<unknown> = import("@odx/angular/utils").ConfigDependencies<MainMenuLinksConfig>>(config: import("@odx/angular/utils").ConfigProvider<Partial<MainMenuLinksConfig>, D>) => import("@angular/core").FactoryProvider | import("@angular/core").ValueProvider;
|