@odx/angular 2.6.1 → 2.7.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 +38 -0
- package/cdk/autocomplete-control/index.d.ts +0 -1
- package/cdk/autocomplete-control/lib/autocomplete-control.d.ts +2 -3
- package/cdk/autocomplete-control/lib/pipes/base-search-filter-pipe.d.ts +3 -3
- package/cdk/custom-form-control/index.d.ts +1 -0
- package/cdk/{autocomplete-control/lib/abstract/base-search-field.directive.d.ts → custom-form-control/lib/input-control.directive.d.ts} +3 -3
- package/charts-config/lib/charts-theme.directive.d.ts +1 -1
- package/charts-config/lib/charts-theme.service.d.ts +3 -3
- package/components/autocomplete/lib/autocomplete.component.d.ts +2 -2
- package/components/autocomplete/lib/autocomplete.module.d.ts +2 -2
- package/components/autocomplete/lib/directives/autocomplete-input-control.directive.d.ts +9 -0
- package/components/autocomplete/lib/directives/index.d.ts +1 -1
- package/components/calendar/README.md +3 -0
- package/components/calendar/index.d.ts +5 -0
- package/components/calendar/lib/calendar.component.d.ts +18 -0
- package/components/calendar/lib/calendar.config.d.ts +100 -0
- package/components/calendar/lib/components/calendar-header/calendar-header.component.d.ts +27 -0
- package/components/calendar/lib/components/calendar-header/index.d.ts +1 -0
- package/components/calendar/lib/components/calendar-month/calendar-month.component.d.ts +21 -0
- package/components/calendar/lib/components/calendar-month/index.d.ts +1 -0
- package/components/calendar/lib/components/calendar-year/calendar-year.component.d.ts +18 -0
- package/components/calendar/lib/components/calendar-year/index.d.ts +1 -0
- package/components/calendar/lib/components/calendar-years/calendar-years.component.d.ts +20 -0
- package/components/calendar/lib/components/calendar-years/index.d.ts +1 -0
- package/components/calendar/lib/components/index.d.ts +4 -0
- package/components/calendar/lib/directives/calendar-cell.directive.d.ts +34 -0
- package/components/calendar/lib/directives/calendar-view.directive.d.ts +29 -0
- package/components/calendar/lib/directives/index.d.ts +2 -0
- package/components/calendar/lib/enums/calendar-view.enum.d.ts +5 -0
- package/components/calendar/lib/enums/index.d.ts +1 -0
- package/components/calendar/lib/models/date-filter.d.ts +1 -0
- package/components/calendar/lib/models/date-type.d.ts +1 -0
- package/components/calendar/lib/models/date-validator.d.ts +1 -0
- package/components/calendar/lib/models/index.d.ts +3 -0
- package/components/calendar/lib/pipes/date-label.pipe.d.ts +18 -0
- package/components/calendar/lib/pipes/index.d.ts +1 -0
- package/components/calendar/lib/services/calendar-month.service.d.ts +13 -0
- package/components/calendar/lib/services/calendar-year.service.d.ts +11 -0
- package/components/calendar/lib/services/calendar-years.service.d.ts +9 -0
- package/components/calendar/lib/services/calendar.service.d.ts +25 -0
- package/components/calendar/lib/services/index.d.ts +4 -0
- package/components/calendar/lib/utils/check-identical-date.d.ts +2 -0
- package/components/calendar/lib/utils/get-A11y-label.d.ts +3 -0
- package/components/calendar/lib/utils/index.d.ts +7 -0
- package/components/calendar/lib/utils/parse-date.d.ts +2 -0
- package/components/calendar/lib/utils/validate-max-date.d.ts +2 -0
- package/components/calendar/lib/utils/validate-min-date.d.ts +2 -0
- package/components/calendar/lib/utils/validate-next-date-set.d.ts +2 -0
- package/components/calendar/lib/utils/validate-previous-date-set.d.ts +2 -0
- package/components/datepicker/README.md +3 -0
- package/components/datepicker/index.d.ts +5 -0
- package/components/datepicker/lib/datepicker.component.d.ts +37 -0
- package/components/datepicker/lib/datepicker.config.d.ts +29 -0
- package/components/datepicker/lib/datepicker.module.d.ts +9 -0
- package/components/datepicker/lib/directives/datepicker-input-control.directive.d.ts +24 -0
- package/components/datepicker/lib/directives/index.d.ts +1 -0
- package/components/datepicker/lib/models/datepicker-input-date-order.d.ts +6 -0
- package/components/datepicker/lib/models/datepicker-input-pattern.d.ts +11 -0
- package/components/datepicker/lib/models/index.d.ts +2 -0
- package/components/datepicker/lib/utils/get-datepicker-input-pattern.d.ts +3 -0
- package/components/datepicker/lib/utils/get-datepicker-input-value-as-date.d.ts +2 -0
- package/components/datepicker/lib/utils/index.d.ts +2 -0
- package/components/select/lib/directives/index.d.ts +1 -1
- package/components/select/lib/directives/select-input-control.directive.d.ts +9 -0
- package/components/select/lib/select.component.d.ts +2 -2
- package/components/select/lib/select.module.d.ts +2 -2
- package/esm2020/cdk/autocomplete-control/index.mjs +1 -2
- package/esm2020/cdk/autocomplete-control/lib/autocomplete-control.mjs +1 -1
- package/esm2020/cdk/autocomplete-control/lib/pipes/base-search-filter-pipe.mjs +1 -1
- package/esm2020/cdk/custom-form-control/index.mjs +2 -1
- package/esm2020/cdk/custom-form-control/lib/input-control.directive.mjs +35 -0
- package/esm2020/charts-config/lib/charts-theme.directive.mjs +5 -5
- package/esm2020/charts-config/lib/charts-theme.module.mjs +4 -4
- package/esm2020/charts-config/lib/charts-theme.service.mjs +5 -5
- package/esm2020/components/autocomplete/lib/autocomplete.component.mjs +4 -5
- package/esm2020/components/autocomplete/lib/autocomplete.module.mjs +4 -4
- package/esm2020/components/autocomplete/lib/directives/autocomplete-input-control.directive.mjs +32 -0
- package/esm2020/components/autocomplete/lib/directives/index.mjs +2 -2
- package/esm2020/components/calendar/index.mjs +6 -0
- package/esm2020/components/calendar/lib/calendar.component.mjs +57 -0
- package/esm2020/components/calendar/lib/calendar.config.mjs +15 -0
- package/esm2020/components/calendar/lib/components/calendar-header/calendar-header.component.mjs +51 -0
- package/esm2020/components/calendar/lib/components/calendar-header/index.mjs +2 -0
- package/esm2020/components/calendar/lib/components/calendar-month/calendar-month.component.mjs +59 -0
- package/esm2020/components/calendar/lib/components/calendar-month/index.mjs +2 -0
- package/esm2020/components/calendar/lib/components/calendar-year/calendar-year.component.mjs +57 -0
- package/esm2020/components/calendar/lib/components/calendar-year/index.mjs +2 -0
- package/esm2020/components/calendar/lib/components/calendar-years/calendar-years.component.mjs +65 -0
- package/esm2020/components/calendar/lib/components/calendar-years/index.mjs +2 -0
- package/esm2020/components/calendar/lib/components/index.mjs +5 -0
- package/esm2020/components/calendar/lib/directives/calendar-cell.directive.mjs +92 -0
- package/esm2020/components/calendar/lib/directives/calendar-view.directive.mjs +39 -0
- package/esm2020/components/calendar/lib/directives/index.mjs +3 -0
- package/esm2020/components/calendar/lib/enums/calendar-view.enum.mjs +7 -0
- package/esm2020/components/calendar/lib/enums/index.mjs +2 -0
- package/esm2020/components/calendar/lib/models/date-filter.mjs +2 -0
- package/esm2020/components/calendar/lib/models/date-type.mjs +2 -0
- package/esm2020/components/calendar/lib/models/date-validator.mjs +2 -0
- package/esm2020/components/calendar/lib/models/index.mjs +4 -0
- package/esm2020/components/calendar/lib/pipes/date-label.pipe.mjs +25 -0
- package/esm2020/components/calendar/lib/pipes/index.mjs +2 -0
- package/esm2020/components/calendar/lib/services/calendar-month.service.mjs +38 -0
- package/esm2020/components/calendar/lib/services/calendar-year.service.mjs +31 -0
- package/esm2020/components/calendar/lib/services/calendar-years.service.mjs +33 -0
- package/esm2020/components/calendar/lib/services/calendar.service.mjs +74 -0
- package/esm2020/components/calendar/lib/services/index.mjs +5 -0
- package/esm2020/components/calendar/lib/utils/check-identical-date.mjs +11 -0
- package/esm2020/components/calendar/lib/utils/get-A11y-label.mjs +10 -0
- package/esm2020/components/calendar/lib/utils/index.mjs +8 -0
- package/esm2020/components/calendar/lib/utils/parse-date.mjs +15 -0
- package/esm2020/components/calendar/lib/utils/validate-max-date.mjs +11 -0
- package/esm2020/components/calendar/lib/utils/validate-min-date.mjs +11 -0
- package/esm2020/components/calendar/lib/utils/validate-next-date-set.mjs +12 -0
- package/esm2020/components/calendar/lib/utils/validate-previous-date-set.mjs +12 -0
- package/esm2020/components/calendar/odx-angular-components-calendar.mjs +5 -0
- package/esm2020/components/datepicker/index.mjs +6 -0
- package/esm2020/components/datepicker/lib/datepicker.component.mjs +118 -0
- package/esm2020/components/datepicker/lib/datepicker.config.mjs +7 -0
- package/esm2020/components/datepicker/lib/datepicker.module.mjs +19 -0
- package/esm2020/components/datepicker/lib/directives/datepicker-input-control.directive.mjs +60 -0
- package/esm2020/components/datepicker/lib/directives/index.mjs +2 -0
- package/esm2020/components/datepicker/lib/models/datepicker-input-date-order.mjs +6 -0
- package/esm2020/components/datepicker/lib/models/datepicker-input-pattern.mjs +11 -0
- package/esm2020/components/datepicker/lib/models/index.mjs +3 -0
- package/esm2020/components/datepicker/lib/utils/get-datepicker-input-pattern.mjs +16 -0
- package/esm2020/components/datepicker/lib/utils/get-datepicker-input-value-as-date.mjs +30 -0
- package/esm2020/components/datepicker/lib/utils/index.mjs +3 -0
- package/esm2020/components/datepicker/odx-angular-components-datepicker.mjs +5 -0
- package/esm2020/components/select/lib/directives/index.mjs +2 -2
- package/esm2020/components/select/lib/directives/select-input-control.directive.mjs +35 -0
- package/esm2020/components/select/lib/select.component.mjs +4 -4
- package/esm2020/components/select/lib/select.module.mjs +4 -4
- package/esm2020/utils/lib/helpers/index.mjs +2 -2
- package/fesm2015/odx-angular-cdk-autocomplete-control.mjs +4 -39
- package/fesm2015/odx-angular-cdk-autocomplete-control.mjs.map +1 -1
- package/fesm2015/odx-angular-cdk-custom-form-control.mjs +34 -2
- package/fesm2015/odx-angular-cdk-custom-form-control.mjs.map +1 -1
- package/fesm2015/odx-angular-charts-config.mjs +10 -10
- package/fesm2015/odx-angular-charts-config.mjs.map +1 -1
- package/fesm2015/odx-angular-components-autocomplete.mjs +15 -12
- package/fesm2015/odx-angular-components-autocomplete.mjs.map +1 -1
- package/fesm2015/odx-angular-components-calendar.mjs +623 -0
- package/fesm2015/odx-angular-components-calendar.mjs.map +1 -0
- package/fesm2015/odx-angular-components-datepicker.mjs +249 -0
- package/fesm2015/odx-angular-components-datepicker.mjs.map +1 -0
- package/fesm2015/odx-angular-components-select.mjs +14 -13
- package/fesm2015/odx-angular-components-select.mjs.map +1 -1
- package/fesm2015/odx-angular-utils.mjs +21 -21
- package/fesm2015/odx-angular-utils.mjs.map +1 -1
- package/fesm2020/odx-angular-cdk-autocomplete-control.mjs +4 -39
- package/fesm2020/odx-angular-cdk-autocomplete-control.mjs.map +1 -1
- package/fesm2020/odx-angular-cdk-custom-form-control.mjs +34 -2
- package/fesm2020/odx-angular-cdk-custom-form-control.mjs.map +1 -1
- package/fesm2020/odx-angular-charts-config.mjs +10 -10
- package/fesm2020/odx-angular-charts-config.mjs.map +1 -1
- package/fesm2020/odx-angular-components-autocomplete.mjs +15 -12
- package/fesm2020/odx-angular-components-autocomplete.mjs.map +1 -1
- package/fesm2020/odx-angular-components-calendar.mjs +621 -0
- package/fesm2020/odx-angular-components-calendar.mjs.map +1 -0
- package/fesm2020/odx-angular-components-datepicker.mjs +249 -0
- package/fesm2020/odx-angular-components-datepicker.mjs.map +1 -0
- package/fesm2020/odx-angular-components-select.mjs +14 -13
- package/fesm2020/odx-angular-components-select.mjs.map +1 -1
- package/fesm2020/odx-angular-utils.mjs +21 -21
- package/fesm2020/odx-angular-utils.mjs.map +1 -1
- package/package.json +21 -3
- package/utils/lib/helpers/index.d.ts +1 -1
- package/cdk/autocomplete-control/lib/abstract/index.d.ts +0 -1
- package/components/autocomplete/lib/directives/autocomplete-search-field.directive.d.ts +0 -9
- package/components/select/lib/directives/select-search-field.directive.d.ts +0 -9
- package/esm2020/cdk/autocomplete-control/lib/abstract/base-search-field.directive.mjs +0 -38
- package/esm2020/cdk/autocomplete-control/lib/abstract/index.mjs +0 -2
- package/esm2020/components/autocomplete/lib/directives/autocomplete-search-field.directive.mjs +0 -26
- package/esm2020/components/select/lib/directives/select-search-field.directive.mjs +0 -35
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
# @odx/angular 2.7.0 (2023-08-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* apply suggestions from code review ([0fd2f72](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/0fd2f728d552f6e39a437452de66ca485c023b03))
|
|
7
|
+
* apply suggestions from code review ([cad3309](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/cad33093ff1d7c5e38b954bd273ded4833a2321b))
|
|
8
|
+
* base-search-filter-pipe type ([8486a0a](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/8486a0aced4d23e45dadc855d9a83e54e0926cb8))
|
|
9
|
+
* disable keyboard navigation ([39b0bf7](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/39b0bf7cd3aa6714b7e8e344b6d3cad807cfb0c4))
|
|
10
|
+
* merge conflicts ([2590c8f](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/2590c8feaa99c4398f500b293590a405ad6939dc))
|
|
11
|
+
* merge conflicts ([a071ff0](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/a071ff06bfcb312d645b4899e9880cf20ea51d14))
|
|
12
|
+
* merge conflicts ([53084e8](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/53084e86a2bc65f347d66a9ce41acf5564464f53))
|
|
13
|
+
* move calendar and datepicker token to configs ([a91eabe](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/a91eabe8eb2fbfbabddd4f793dea9216a4f7ffa2))
|
|
14
|
+
* nested form-field-control ([181c79c](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/181c79c8dd306802caac96c5061e96b826ccb4c7))
|
|
15
|
+
* resolve conflicts ([373c456](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/373c4562db0f4a98a0aff51beee2d15f4bb05194))
|
|
16
|
+
* start of the day in selected date ([4cdea20](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/4cdea204fa87673020dd4732a4ee15cc04b8cf7d))
|
|
17
|
+
* update ngx-mask ([a454c0a](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/a454c0a70cb3f4aff70fc3d7942e743335a2be10))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add calendar component tests ([68580d8](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/68580d8f2e709d9e002233b0e44c3099e2961c0d))
|
|
23
|
+
* add datepicker module ([abf2ade](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/abf2ade90ccc1c9b399801814b22925bb05eabd1))
|
|
24
|
+
* add mask to datepicker input ([517a8f4](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/517a8f43ad862ce1fb0ac2af3eab1b52c141bcdf))
|
|
25
|
+
* add story documentation ([c8caa0c](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/c8caa0cdcecc2c7e9adb36ba51093c8440c3cf0b))
|
|
26
|
+
* draft commit ([dc7d7da](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/dc7d7da5bd3ddd3451c5d810e962b725216a3450))
|
|
27
|
+
* draft commit ([5bcbdb3](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/5bcbdb34c31b21b2872cd50d0f095ae085929bfe))
|
|
28
|
+
* draft commit ([6a485d6](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/6a485d60835060d64b032d0ca209fcd4642282fb))
|
|
29
|
+
* draft commit ([a08e272](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/a08e272cc624d79fab970ebfc198272672685cf5))
|
|
30
|
+
* draft commit ([e7aa95c](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/e7aa95c789a690a94ad9cddae2b56ddc1e804f78))
|
|
31
|
+
* draft commit ([09149e6](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/09149e67f665260850a38a6a50a41ffde968fb32))
|
|
32
|
+
* finish datepicker tests ([a46d5dd](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/a46d5ddaa36b29f99098bed7dc76514ca2f1317c))
|
|
33
|
+
* test calendar component ([b464351](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/b4643514f42342d446a5b2ad87fa40d077f918ca))
|
|
34
|
+
* test calendar service ([733c08f](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/733c08f36572c2d523da6135166cc8d4e9054b03))
|
|
35
|
+
* test calendar services ([ced8e49](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/ced8e497235863b447290c4d9d6b1cbb776c07fe))
|
|
36
|
+
* test calendar-header ([7078d38](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/7078d382398895789708c66228064f8068a99970))
|
|
37
|
+
* update story file ([61a8fc6](https://dev.azure.com/draeger/ODXP/_git/odx-libraries/commit/61a8fc646fbf3264ada0642db977d65b4002d2b9))
|
|
38
|
+
|
|
1
39
|
## @odx/angular 2.6.1 (2023-08-10)
|
|
2
40
|
|
|
3
41
|
|
|
@@ -2,10 +2,9 @@ import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
|
2
2
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
3
|
import { AfterViewInit, ChangeDetectorRef, EventEmitter, QueryList } from '@angular/core';
|
|
4
4
|
import { StringifyFn } from '@odx/angular';
|
|
5
|
-
import { CustomFormControl } from '@odx/angular/cdk/custom-form-control';
|
|
5
|
+
import { CustomFormControl, InputControlDirective } from '@odx/angular/cdk/custom-form-control';
|
|
6
6
|
import { OptionControl } from '@odx/angular/cdk/option-control';
|
|
7
7
|
import { DropdownDirective } from '@odx/angular/components/dropdown';
|
|
8
|
-
import { BaseSearchFieldDirective } from './abstract';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export declare abstract class AutocompleteControl<T> extends CustomFormControl<T | null> implements AfterViewInit {
|
|
11
10
|
static ngAcceptInputType_isLoading: BooleanInput;
|
|
@@ -15,7 +14,7 @@ export declare abstract class AutocompleteControl<T> extends CustomFormControl<T
|
|
|
15
14
|
protected abstract readonly options?: QueryList<OptionControl<T>>;
|
|
16
15
|
protected readonly takeUntilDestroyed: <T_1>() => import("rxjs").MonoTypeOperatorFunction<T_1>;
|
|
17
16
|
protected readonly changeDetector: ChangeDetectorRef;
|
|
18
|
-
abstract searchField?:
|
|
17
|
+
abstract searchField?: InputControlDirective;
|
|
19
18
|
readonly element: import("@angular/core").ElementRef<HTMLElement>;
|
|
20
19
|
get hasOptions(): boolean;
|
|
21
20
|
get isOpen(): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InjectionToken, PipeTransform } from '@angular/core';
|
|
2
2
|
import { StringifyFn, StringSearchHandler } from '@odx/angular';
|
|
3
|
-
import {
|
|
3
|
+
import { InputControlDirective } from '@odx/angular/cdk/custom-form-control';
|
|
4
4
|
interface HostController {
|
|
5
|
-
searchField?:
|
|
5
|
+
searchField?: InputControlDirective;
|
|
6
6
|
stringify?: StringifyFn<unknown>;
|
|
7
7
|
}
|
|
8
8
|
export declare const ODX_SEARCH_FILTER_HOST: InjectionToken<HostController>;
|
|
@@ -10,7 +10,7 @@ export declare abstract class BaseSearchFilterPipe implements PipeTransform {
|
|
|
10
10
|
private readonly stringSearchHandler;
|
|
11
11
|
private readonly defaultStringify;
|
|
12
12
|
protected readonly hostController: HostController | null;
|
|
13
|
-
protected get searchField():
|
|
13
|
+
protected get searchField(): InputControlDirective | undefined;
|
|
14
14
|
protected get stringify(): StringifyFn<unknown>;
|
|
15
15
|
transform<T>(items: T[] | null, searchHandler?: StringSearchHandler): T[] | null;
|
|
16
16
|
protected queryHandler(query: string): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare abstract class
|
|
2
|
+
export declare abstract class InputControlDirective {
|
|
3
3
|
protected readonly takeUntilDestroyed: <T>() => import("rxjs").MonoTypeOperatorFunction<T>;
|
|
4
4
|
readonly element: import("@angular/core").ElementRef<HTMLInputElement>;
|
|
5
5
|
valueChange$: import("rxjs").Observable<string>;
|
|
@@ -8,6 +8,6 @@ export declare abstract class BaseSearchFieldDirective {
|
|
|
8
8
|
focus(): void;
|
|
9
9
|
blur(): void;
|
|
10
10
|
reset(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputControlDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputControlDirective, never, never, {}, {}, never, never, true, never>;
|
|
13
13
|
}
|
|
@@ -2,7 +2,7 @@ import { ElementRef, NgZone } from '@angular/core';
|
|
|
2
2
|
import { BaseChartDirective, ThemeService } from 'ng2-charts';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ChartThemeDirective extends BaseChartDirective {
|
|
5
|
-
private readonly
|
|
5
|
+
private readonly chartsThemeService;
|
|
6
6
|
private readonly takeUntilDestroyed;
|
|
7
7
|
constructor(element: ElementRef, ngzone: NgZone, parentThemeService: ThemeService);
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChartThemeDirective, never>;
|
|
@@ -2,7 +2,7 @@ import { Theme } from '@odx/angular/theming';
|
|
|
2
2
|
import { ChartConfiguration, Color } from 'chart.js';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ChartsThemeService {
|
|
6
6
|
private readonly coreChartThemeService;
|
|
7
7
|
private readonly document;
|
|
8
8
|
private readonly windowRef;
|
|
@@ -55,6 +55,6 @@ export declare class ChartsThemeServise {
|
|
|
55
55
|
setTheme(chartConf: ChartConfiguration): void;
|
|
56
56
|
private themeColorsOverrides;
|
|
57
57
|
private buildBodyObserver;
|
|
58
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
59
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartsThemeService, never>;
|
|
59
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChartsThemeService>;
|
|
60
60
|
}
|
|
@@ -2,14 +2,14 @@ import { AfterViewInit, QueryList } from '@angular/core';
|
|
|
2
2
|
import { ClickOutsideDirective } from '@odx/angular';
|
|
3
3
|
import { AutocompleteControl } from '@odx/angular/cdk/autocomplete-control';
|
|
4
4
|
import { AutocompleteOptionComponent } from './components';
|
|
5
|
-
import {
|
|
5
|
+
import { AutocompleteInputControlDirective } from './directives';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
import * as i1 from "@odx/angular";
|
|
8
8
|
export declare class AutocompleteComponent<T = unknown> extends AutocompleteControl<T | null> implements AfterViewInit {
|
|
9
9
|
private readonly defaultActiveOptionIndex;
|
|
10
10
|
protected readonly clickOutsideDirective: ClickOutsideDirective;
|
|
11
11
|
options?: QueryList<AutocompleteOptionComponent<T>>;
|
|
12
|
-
searchField?:
|
|
12
|
+
searchField?: AutocompleteInputControlDirective;
|
|
13
13
|
readonly dropdownOpenTriggers: never[];
|
|
14
14
|
ngAfterViewInit(): void;
|
|
15
15
|
selectOption(option?: AutocompleteOptionComponent<T> | null): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./autocomplete.component";
|
|
3
|
-
import * as i2 from "./directives/autocomplete-
|
|
3
|
+
import * as i2 from "./directives/autocomplete-input-control.directive";
|
|
4
4
|
import * as i3 from "./pipes/autocomplete-search-filter.pipe";
|
|
5
5
|
import * as i4 from "./components/option/autocomplete-option.component";
|
|
6
6
|
import * as i5 from "@odx/angular";
|
|
7
7
|
export declare class AutocompleteModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AutocompleteModule, never, [typeof i1.AutocompleteComponent, typeof i2.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AutocompleteModule, never, [typeof i1.AutocompleteComponent, typeof i2.AutocompleteInputControlDirective, typeof i3.AutocompleteSearchFilterPipe, typeof i4.AutocompleteOptionComponent], [typeof i5.CoreModule, typeof i1.AutocompleteComponent, typeof i2.AutocompleteInputControlDirective, typeof i3.AutocompleteSearchFilterPipe, typeof i4.AutocompleteOptionComponent]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<AutocompleteModule>;
|
|
11
11
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReadonlyController } from '@odx/angular';
|
|
2
|
+
import { InputControlDirective } from '@odx/angular/cdk/custom-form-control';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@odx/angular";
|
|
5
|
+
export declare class AutocompleteInputControlDirective extends InputControlDirective {
|
|
6
|
+
protected readonly readonlyController: ReadonlyController | null;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteInputControlDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AutocompleteInputControlDirective, "input[odxAutocompleteControl]", never, {}, {}, never, never, true, [{ directive: typeof i1.WithTabIndex; inputs: {}; outputs: {}; }]>;
|
|
9
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './autocomplete-
|
|
1
|
+
export * from './autocomplete-input-control.directive';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { CalendarViewEnum } from './enums';
|
|
3
|
+
import { DateFilter, DateType } from './models';
|
|
4
|
+
import { CalendarService } from './services';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CalendarComponent implements OnChanges {
|
|
7
|
+
protected readonly calendar: CalendarService;
|
|
8
|
+
readonly element: import("@angular/core").ElementRef<HTMLElement>;
|
|
9
|
+
readonly calendarView: typeof CalendarViewEnum;
|
|
10
|
+
set selectedDate(value: DateType | null);
|
|
11
|
+
minDate: Date | null;
|
|
12
|
+
maxDate: Date | null;
|
|
13
|
+
filterFn?: DateFilter | null;
|
|
14
|
+
selectedChange: EventEmitter<DateType | null>;
|
|
15
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "odx-calendar", never, { "selectedDate": "selectedDate"; "minDate": "minDate"; "maxDate": "maxDate"; "filterFn": "filterFn"; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Locale } from 'date-fns';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
export interface CalendarConfig {
|
|
4
|
+
/**
|
|
5
|
+
* Pattern by which month-year label is transformed
|
|
6
|
+
* @default 'LLLL yyyy'
|
|
7
|
+
*/
|
|
8
|
+
monthYearLabel: string;
|
|
9
|
+
/**
|
|
10
|
+
* Pattern by which month label is transformed
|
|
11
|
+
* @default 'LLL'
|
|
12
|
+
*/
|
|
13
|
+
monthLabel: string;
|
|
14
|
+
/**
|
|
15
|
+
* Pattern by which week label is transformed
|
|
16
|
+
* @default 'EEEEE'
|
|
17
|
+
*/
|
|
18
|
+
weekLabel: string;
|
|
19
|
+
/**
|
|
20
|
+
* Pattern by which day label is transformed
|
|
21
|
+
* @default 'd'
|
|
22
|
+
*/
|
|
23
|
+
dayLabel: string;
|
|
24
|
+
/**
|
|
25
|
+
* Pattern by which Year label is transformed
|
|
26
|
+
* @default 'yyyy'
|
|
27
|
+
*/
|
|
28
|
+
yearLabel: string;
|
|
29
|
+
/**
|
|
30
|
+
* Pattern by which A11y day label is transformed
|
|
31
|
+
* @default 'MMMM dd, yyyy'
|
|
32
|
+
*/
|
|
33
|
+
dayA11yLabel: string;
|
|
34
|
+
/**
|
|
35
|
+
* Pattern by which A11y month label is transformed
|
|
36
|
+
* @default 'MMMM, yyyy'
|
|
37
|
+
*/
|
|
38
|
+
monthA11yLabel: string;
|
|
39
|
+
/**
|
|
40
|
+
* Pattern by which A11y year label is transformed
|
|
41
|
+
* @default 'yyyy'
|
|
42
|
+
*/
|
|
43
|
+
yearA11yLabel: string;
|
|
44
|
+
/**
|
|
45
|
+
* Locale by which calendar labels are transformed
|
|
46
|
+
* @default enGB
|
|
47
|
+
*/
|
|
48
|
+
locale: BehaviorSubject<Locale>;
|
|
49
|
+
}
|
|
50
|
+
export declare const CalendarConfig: import("@angular/core").InjectionToken<Partial<{
|
|
51
|
+
monthYearLabel: string;
|
|
52
|
+
monthLabel: string;
|
|
53
|
+
weekLabel: string;
|
|
54
|
+
dayLabel: string;
|
|
55
|
+
yearLabel: string;
|
|
56
|
+
dayA11yLabel: string;
|
|
57
|
+
monthA11yLabel: string;
|
|
58
|
+
yearA11yLabel: string;
|
|
59
|
+
locale: BehaviorSubject<globalThis.Locale>;
|
|
60
|
+
}>>, CalendarDefaultConfig: {
|
|
61
|
+
monthYearLabel: string;
|
|
62
|
+
monthLabel: string;
|
|
63
|
+
weekLabel: string;
|
|
64
|
+
dayLabel: string;
|
|
65
|
+
yearLabel: string;
|
|
66
|
+
dayA11yLabel: string;
|
|
67
|
+
monthA11yLabel: string;
|
|
68
|
+
yearA11yLabel: string;
|
|
69
|
+
locale: BehaviorSubject<globalThis.Locale>;
|
|
70
|
+
}, injectCalendarConfig: () => {
|
|
71
|
+
monthYearLabel: string;
|
|
72
|
+
monthLabel: string;
|
|
73
|
+
weekLabel: string;
|
|
74
|
+
dayLabel: string;
|
|
75
|
+
yearLabel: string;
|
|
76
|
+
dayA11yLabel: string;
|
|
77
|
+
monthA11yLabel: string;
|
|
78
|
+
yearA11yLabel: string;
|
|
79
|
+
locale: BehaviorSubject<globalThis.Locale>;
|
|
80
|
+
}, provideCalendarConfig: <D extends import("@odx/angular/utils").ConfigDependencies<unknown> = import("@odx/angular/utils").ConfigDependencies<{
|
|
81
|
+
monthYearLabel: string;
|
|
82
|
+
monthLabel: string;
|
|
83
|
+
weekLabel: string;
|
|
84
|
+
dayLabel: string;
|
|
85
|
+
yearLabel: string;
|
|
86
|
+
dayA11yLabel: string;
|
|
87
|
+
monthA11yLabel: string;
|
|
88
|
+
yearA11yLabel: string;
|
|
89
|
+
locale: BehaviorSubject<globalThis.Locale>;
|
|
90
|
+
}>>(config: import("@odx/angular/utils").ConfigProvider<Partial<{
|
|
91
|
+
monthYearLabel: string;
|
|
92
|
+
monthLabel: string;
|
|
93
|
+
weekLabel: string;
|
|
94
|
+
dayLabel: string;
|
|
95
|
+
yearLabel: string;
|
|
96
|
+
dayA11yLabel: string;
|
|
97
|
+
monthA11yLabel: string;
|
|
98
|
+
yearA11yLabel: string;
|
|
99
|
+
locale: BehaviorSubject<globalThis.Locale>;
|
|
100
|
+
}>, D>) => import("@angular/core").FactoryProvider | import("@angular/core").ValueProvider;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { CalendarService } from '../../services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CalendarHeaderComponent {
|
|
5
|
+
protected readonly calendar: CalendarService;
|
|
6
|
+
readonly element: import("@angular/core").ElementRef<HTMLElement>;
|
|
7
|
+
previous: EventEmitter<Event>;
|
|
8
|
+
next: EventEmitter<Event>;
|
|
9
|
+
changeView: EventEmitter<null>;
|
|
10
|
+
readonly config: {
|
|
11
|
+
monthYearLabel: string;
|
|
12
|
+
monthLabel: string;
|
|
13
|
+
weekLabel: string;
|
|
14
|
+
dayLabel: string;
|
|
15
|
+
yearLabel: string;
|
|
16
|
+
dayA11yLabel: string;
|
|
17
|
+
monthA11yLabel: string;
|
|
18
|
+
yearA11yLabel: string;
|
|
19
|
+
locale: import("rxjs").BehaviorSubject<Locale>;
|
|
20
|
+
};
|
|
21
|
+
protected previousClicked(event: Event): void;
|
|
22
|
+
protected nextClicked(event: Event): void;
|
|
23
|
+
protected get isPreviousDisabled(): boolean;
|
|
24
|
+
protected get isNextDisabled(): boolean;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarHeaderComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarHeaderComponent, "odx-calendar-header", never, {}, { "previous": "previous"; "next": "next"; "changeView": "changeView"; }, never, ["*"], true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calendar-header.component';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { CalendarViewDirective } from '../../directives';
|
|
3
|
+
import { CalendarViewEnum } from '../../enums';
|
|
4
|
+
import { DateType } from '../../models';
|
|
5
|
+
import { CalendarMonthService } from '../../services';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class CalendarMonthComponent extends CalendarViewDirective {
|
|
8
|
+
protected readonly calendarMonth: CalendarMonthService;
|
|
9
|
+
protected readonly calendarNextView = CalendarViewEnum.Years;
|
|
10
|
+
protected readonly calendarCurrentView = CalendarViewEnum.Month;
|
|
11
|
+
selectedChange: EventEmitter<DateType | null>;
|
|
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;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarMonthComponent, "odx-calendar-month", never, {}, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calendar-month.component';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CalendarViewDirective } from '../../directives';
|
|
2
|
+
import { CalendarViewEnum } from '../../enums';
|
|
3
|
+
import { CalendarYearService } from '../../services';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CalendarYearComponent extends CalendarViewDirective {
|
|
6
|
+
protected readonly calendarYear: CalendarYearService;
|
|
7
|
+
protected readonly calendarNextView = CalendarViewEnum.Month;
|
|
8
|
+
protected readonly calendarCurrentView = CalendarViewEnum.Year;
|
|
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;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarYearComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarYearComponent, "odx-calendar-year", never, {}, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calendar-year.component';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import { CalendarViewDirective } from '../../directives';
|
|
3
|
+
import { CalendarViewEnum } from '../../enums';
|
|
4
|
+
import { CalendarYearsService } from '../../services';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CalendarYearsComponent extends CalendarViewDirective implements AfterViewInit {
|
|
7
|
+
private readonly document;
|
|
8
|
+
protected readonly calendarYears: CalendarYearsService;
|
|
9
|
+
protected readonly calendarNextView = CalendarViewEnum.Year;
|
|
10
|
+
protected readonly calendarCurrentView = CalendarViewEnum.Years;
|
|
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(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarYearsComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarYearsComponent, "odx-calendar-years", never, {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calendar-years.component';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { NgChanges } from '@odx/angular/utils';
|
|
3
|
+
import { CalendarViewEnum } from '../enums';
|
|
4
|
+
import { DateLabelPipe } from '../pipes';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CalendarCellDirective implements OnChanges {
|
|
7
|
+
private readonly disabledController;
|
|
8
|
+
protected isActive: boolean;
|
|
9
|
+
protected isSelected: boolean;
|
|
10
|
+
protected isCurrent: boolean;
|
|
11
|
+
protected adjacent: boolean;
|
|
12
|
+
protected get isDisabled(): boolean;
|
|
13
|
+
readonly element: import("@angular/core").ElementRef<HTMLElement>;
|
|
14
|
+
readonly dateLabelPipe: DateLabelPipe;
|
|
15
|
+
readonly config: {
|
|
16
|
+
monthYearLabel: string;
|
|
17
|
+
monthLabel: string;
|
|
18
|
+
weekLabel: string;
|
|
19
|
+
dayLabel: string;
|
|
20
|
+
yearLabel: string;
|
|
21
|
+
dayA11yLabel: string;
|
|
22
|
+
monthA11yLabel: string;
|
|
23
|
+
yearA11yLabel: string;
|
|
24
|
+
locale: import("rxjs").BehaviorSubject<Locale>;
|
|
25
|
+
};
|
|
26
|
+
date: Date;
|
|
27
|
+
calendarView: CalendarViewEnum;
|
|
28
|
+
activeDate: Date | null;
|
|
29
|
+
selectedDate: Date | null;
|
|
30
|
+
ngOnChanges(changes: NgChanges<CalendarCellDirective>): void;
|
|
31
|
+
get ariaLabel(): string;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarCellDirective, never>;
|
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarCellDirective, "[odxCalendarCell]", never, { "date": "odxCalendarCell"; "calendarView": "odxCalendarCellCalendarView"; "activeDate": "odxCalendarCellActiveDate"; "selectedDate": "odxCalendarCellSelectedDate"; }, {}, never, never, true, never>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CalendarViewEnum } from '../enums';
|
|
2
|
+
import { CalendarService } from '../services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare abstract class CalendarViewDirective {
|
|
5
|
+
protected readonly takeUntilDestroyed: <T>() => import("rxjs").MonoTypeOperatorFunction<T>;
|
|
6
|
+
protected readonly calendar: CalendarService;
|
|
7
|
+
protected abstract readonly calendarNextView: CalendarViewEnum;
|
|
8
|
+
protected abstract readonly calendarCurrentView: CalendarViewEnum;
|
|
9
|
+
readonly config: {
|
|
10
|
+
monthYearLabel: string;
|
|
11
|
+
monthLabel: string;
|
|
12
|
+
weekLabel: string;
|
|
13
|
+
dayLabel: string;
|
|
14
|
+
yearLabel: string;
|
|
15
|
+
dayA11yLabel: string;
|
|
16
|
+
monthA11yLabel: string;
|
|
17
|
+
yearA11yLabel: string;
|
|
18
|
+
locale: import("rxjs").BehaviorSubject<Locale>;
|
|
19
|
+
};
|
|
20
|
+
readonly element: import("@angular/core").ElementRef<HTMLElement>;
|
|
21
|
+
get activeDate(): Date;
|
|
22
|
+
trackByIndex(index: number): number;
|
|
23
|
+
isDateDisabled(value: Date): boolean;
|
|
24
|
+
changeView(): void;
|
|
25
|
+
updateActiveDate(event: Event, date: Date): void;
|
|
26
|
+
protected abstract selectDate(event: Date): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarViewDirective, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarViewDirective, never, never, {}, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calendar-view.enum';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DateFilter = (date: Date) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DateType = Date | number | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DateValidator = (date1: Date, date2: Date) => boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DateLabelPipe implements PipeTransform {
|
|
4
|
+
readonly config: {
|
|
5
|
+
monthYearLabel: string;
|
|
6
|
+
monthLabel: string;
|
|
7
|
+
weekLabel: string;
|
|
8
|
+
dayLabel: string;
|
|
9
|
+
yearLabel: string;
|
|
10
|
+
dayA11yLabel: string;
|
|
11
|
+
monthA11yLabel: string;
|
|
12
|
+
yearA11yLabel: string;
|
|
13
|
+
locale: import("rxjs").BehaviorSubject<Locale>;
|
|
14
|
+
};
|
|
15
|
+
transform(value: Date | null, dateFormat: string): string;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateLabelPipe, never>;
|
|
17
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DateLabelPipe, "odxDateLabel", true>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './date-label.pipe';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CalendarService } from './calendar.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CalendarMonthService {
|
|
5
|
+
protected readonly calendar: CalendarService;
|
|
6
|
+
readonly weekDays$: Observable<Date[]>;
|
|
7
|
+
readonly weeks$: Observable<Date[][]>;
|
|
8
|
+
generateWeekDays(date: Date): Date[];
|
|
9
|
+
generateWeeks(date: Date): Date[][];
|
|
10
|
+
generateDaysForWeek(date: Date, currentDate: Date): Date[];
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarMonthService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CalendarService } from './calendar.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CalendarYearService {
|
|
5
|
+
protected readonly calendar: CalendarService;
|
|
6
|
+
readonly seasonSeparator = 3;
|
|
7
|
+
readonly seasons$: Observable<Date[][]>;
|
|
8
|
+
generateSeasons(date: Date): Date[][];
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarYearService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarYearService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CalendarYearsService {
|
|
3
|
+
readonly yearsSeparator = 3;
|
|
4
|
+
readonly yearsLimit = 100;
|
|
5
|
+
readonly date: Date;
|
|
6
|
+
get years(): Date[][];
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarYearsService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarYearsService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CalendarViewEnum } from '../enums';
|
|
2
|
+
import { DateFilter, DateType } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CalendarService {
|
|
5
|
+
private readonly calendarView$$;
|
|
6
|
+
private readonly activeDate$$;
|
|
7
|
+
private readonly selectedDate$$;
|
|
8
|
+
minDate: Date | null;
|
|
9
|
+
maxDate: Date | null;
|
|
10
|
+
filterFn?: DateFilter | null;
|
|
11
|
+
readonly calendarView$: import("rxjs").Observable<CalendarViewEnum>;
|
|
12
|
+
readonly activeDate$: import("rxjs").Observable<Date>;
|
|
13
|
+
readonly selectedDate$: import("rxjs").Observable<Date | null>;
|
|
14
|
+
setActiveDate(value: DateType | null): void;
|
|
15
|
+
selectDate(value: DateType | null): void;
|
|
16
|
+
get activeDate(): Date;
|
|
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;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarService>;
|
|
25
|
+
}
|