ng-primitives 0.3.0 → 0.4.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.
Files changed (59) hide show
  1. package/date-picker/README.md +3 -0
  2. package/date-picker/date-picker/date-picker.directive.d.ts +61 -0
  3. package/date-picker/date-picker/date-picker.token.d.ts +14 -0
  4. package/date-picker/date-picker-cell/date-picker-cell.directive.d.ts +17 -0
  5. package/date-picker/date-picker-cell/date-picker-cell.token.d.ts +14 -0
  6. package/date-picker/date-picker-cell-render/date-picker-cell-render.directive.d.ts +43 -0
  7. package/date-picker/date-picker-cell-render/date-picker-cell-render.token.d.ts +19 -0
  8. package/date-picker/date-picker-date-button/date-picker-date-button.directive.d.ts +99 -0
  9. package/date-picker/date-picker-date-button/date-picker-date-button.token.d.ts +14 -0
  10. package/date-picker/date-picker-grid/date-picker-grid.directive.d.ts +13 -0
  11. package/date-picker/date-picker-grid/date-picker-grid.token.d.ts +14 -0
  12. package/date-picker/date-picker-label/date-picker-label.directive.d.ts +17 -0
  13. package/date-picker/date-picker-label/date-picker-label.token.d.ts +14 -0
  14. package/date-picker/date-picker-next-month/date-picker-next-month.directive.d.ts +32 -0
  15. package/date-picker/date-picker-next-month/date-picker-next-month.token.d.ts +14 -0
  16. package/date-picker/date-picker-previous-month/date-picker-previous-month.directive.d.ts +32 -0
  17. package/date-picker/date-picker-previous-month/date-picker-previous-month.token.d.ts +14 -0
  18. package/date-picker/date-picker-row-render/date-picker-row-render.directive.d.ts +49 -0
  19. package/date-picker/date-picker-row-render/date-picker-row-render.token.d.ts +19 -0
  20. package/date-picker/index.d.ts +25 -0
  21. package/date-time/README.md +3 -0
  22. package/date-time/date-adapter/date-adapter.d.ts +169 -0
  23. package/date-time/date-adapter/date-adapter.token.d.ts +18 -0
  24. package/date-time/index.d.ts +9 -0
  25. package/date-time/native-date-adapter/native-date-adapter.d.ts +106 -0
  26. package/esm2022/date-picker/date-picker/date-picker.directive.mjs +117 -0
  27. package/esm2022/date-picker/date-picker/date-picker.token.mjs +16 -0
  28. package/esm2022/date-picker/date-picker-cell/date-picker-cell.directive.mjs +50 -0
  29. package/esm2022/date-picker/date-picker-cell/date-picker-cell.token.mjs +16 -0
  30. package/esm2022/date-picker/date-picker-cell-render/date-picker-cell-render.directive.mjs +72 -0
  31. package/esm2022/date-picker/date-picker-cell-render/date-picker-cell-render.token.mjs +23 -0
  32. package/esm2022/date-picker/date-picker-date-button/date-picker-date-button.directive.mjs +277 -0
  33. package/esm2022/date-picker/date-picker-date-button/date-picker-date-button.token.mjs +16 -0
  34. package/esm2022/date-picker/date-picker-grid/date-picker-grid.directive.mjs +40 -0
  35. package/esm2022/date-picker/date-picker-grid/date-picker-grid.token.mjs +16 -0
  36. package/esm2022/date-picker/date-picker-label/date-picker-label.directive.mjs +47 -0
  37. package/esm2022/date-picker/date-picker-label/date-picker-label.token.mjs +16 -0
  38. package/esm2022/date-picker/date-picker-next-month/date-picker-next-month.directive.mjs +103 -0
  39. package/esm2022/date-picker/date-picker-next-month/date-picker-next-month.token.mjs +16 -0
  40. package/esm2022/date-picker/date-picker-previous-month/date-picker-previous-month.directive.mjs +104 -0
  41. package/esm2022/date-picker/date-picker-previous-month/date-picker-previous-month.token.mjs +16 -0
  42. package/esm2022/date-picker/date-picker-row-render/date-picker-row-render.directive.mjs +118 -0
  43. package/esm2022/date-picker/date-picker-row-render/date-picker-row-render.token.mjs +23 -0
  44. package/esm2022/date-picker/index.mjs +26 -0
  45. package/esm2022/date-picker/ng-primitives-date-picker.mjs +5 -0
  46. package/esm2022/date-time/date-adapter/date-adapter.mjs +9 -0
  47. package/esm2022/date-time/date-adapter/date-adapter.token.mjs +24 -0
  48. package/esm2022/date-time/index.mjs +9 -0
  49. package/esm2022/date-time/native-date-adapter/native-date-adapter.mjs +149 -0
  50. package/esm2022/date-time/ng-primitives-date-time.mjs +5 -0
  51. package/esm2022/interactions/hover/hover.directive.mjs +9 -10
  52. package/fesm2022/ng-primitives-date-picker.mjs +1044 -0
  53. package/fesm2022/ng-primitives-date-picker.mjs.map +1 -0
  54. package/fesm2022/ng-primitives-date-time.mjs +187 -0
  55. package/fesm2022/ng-primitives-date-time.mjs.map +1 -0
  56. package/fesm2022/ng-primitives-interactions.mjs +8 -10
  57. package/fesm2022/ng-primitives-interactions.mjs.map +1 -1
  58. package/interactions/hover/hover.directive.d.ts +3 -3
  59. package/package.json +18 -1
@@ -0,0 +1,3 @@
1
+ # ng-primitives/date-picker
2
+
3
+ Secondary entry point of `ng-primitives`. It can be used by importing from `ng-primitives/date-picker`.
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Copyright © 2024 Angular Primitives.
3
+ * https://github.com/ng-primitives/ng-primitives
4
+ *
5
+ * This source code is licensed under the Apache 2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { FocusOrigin } from '@angular/cdk/a11y';
9
+ import { BooleanInput } from '@angular/cdk/coercion';
10
+ import * as i0 from "@angular/core";
11
+ export declare class NgpDatePicker<T> {
12
+ /**
13
+ * Access the date adapter.
14
+ */
15
+ private readonly dateAdapter;
16
+ /**
17
+ * Access the injector.
18
+ */
19
+ private readonly injector;
20
+ /**
21
+ * The minimum date that can be selected.
22
+ */
23
+ readonly min: import("@angular/core").InputSignal<T | undefined>;
24
+ /**
25
+ * The maximum date that can be selected.
26
+ */
27
+ readonly max: import("@angular/core").InputSignal<T | undefined>;
28
+ /**
29
+ * Determine if the date picker is disabled.
30
+ */
31
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
32
+ /**
33
+ * A function that is called to determine if a specific date should be disabled.
34
+ */
35
+ readonly dateDisabled: import("@angular/core").InputSignal<(date: T) => boolean>;
36
+ /**
37
+ * The selected value.
38
+ */
39
+ readonly date: import("@angular/core").ModelSignal<T | undefined>;
40
+ /**
41
+ * The focused value.
42
+ */
43
+ readonly focusedDate: import("@angular/core").ModelSignal<T>;
44
+ /**
45
+ * Detect the label element.
46
+ * @internal
47
+ */
48
+ readonly label: import("@angular/core").Signal<import("ng-primitives/date-picker").NgpDatePickerLabel | undefined>;
49
+ /**
50
+ * Access all the date picker buttons
51
+ */
52
+ private readonly buttons;
53
+ /**
54
+ * Set the focused date.
55
+ * @param date The date to focus.
56
+ * @internal
57
+ */
58
+ setFocusedDate(date: T, origin: FocusOrigin | undefined, direction: 'forward' | 'backward'): void;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgpDatePicker<any>, never>;
60
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgpDatePicker<any>, "[ngpDatePicker]", ["ngpDatePicker"], { "min": { "alias": "ngpDatePickerMin"; "required": false; "isSignal": true; }; "max": { "alias": "ngpDatePickerMax"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpDatePickerDisabled"; "required": false; "isSignal": true; }; "dateDisabled": { "alias": "ngpDatePickerDateDisabled"; "required": false; "isSignal": true; }; "date": { "alias": "ngpDatePickerDate"; "required": false; "isSignal": true; }; "focusedDate": { "alias": "ngpDatePickerFocusedDate"; "required": false; "isSignal": true; }; }, { "date": "ngpDatePickerDateChange"; "focusedDate": "ngpDatePickerFocusedDateChange"; }, ["label", "buttons"], never, true, never>;
61
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright © 2024 Angular Primitives.
3
+ * https://github.com/ng-primitives/ng-primitives
4
+ *
5
+ * This source code is licensed under the Apache 2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { InjectionToken } from '@angular/core';
9
+ import type { NgpDatePicker } from './date-picker.directive';
10
+ export declare const NgpDatePickerToken: InjectionToken<NgpDatePicker<unknown>>;
11
+ /**
12
+ * Inject the DatePicker directive instance
13
+ */
14
+ export declare function injectDatePicker<T>(): NgpDatePicker<T>;
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NgpDatePickerCell {
3
+ /**
4
+ * Access the date picker.
5
+ */
6
+ private readonly datePicker;
7
+ /**
8
+ * Access the child date picker date button.
9
+ */
10
+ protected readonly datePickerButton: import("@angular/core").Signal<import("ng-primitives/date-picker").NgpDatePickerDateButton<unknown> | undefined>;
11
+ /**
12
+ * Access the label id.
13
+ */
14
+ protected readonly labelId: import("@angular/core").Signal<string | undefined>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgpDatePickerCell, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgpDatePickerCell, "[ngpDatePickerCell]", ["ngpDatePickerCell"], {}, {}, ["datePickerButton"], never, true, never>;
17
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright © 2024 Angular Primitives.
3
+ * https://github.com/ng-primitives/ng-primitives
4
+ *
5
+ * This source code is licensed under the Apache 2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { InjectionToken } from '@angular/core';
9
+ import type { NgpDatePickerCell } from './date-picker-cell.directive';
10
+ export declare const NgpDatePickerCellToken: InjectionToken<NgpDatePickerCell>;
11
+ /**
12
+ * Inject the DatePickerCell directive instance
13
+ */
14
+ export declare function injectDatePickerCell(): NgpDatePickerCell;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Copyright © 2024 Angular Primitives.
3
+ * https://github.com/ng-primitives/ng-primitives
4
+ *
5
+ * This source code is licensed under the Apache 2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { OnDestroy } from '@angular/core';
9
+ import * as i0 from "@angular/core";
10
+ export declare class NgpDatePickerCellRender<T> implements OnDestroy {
11
+ /**
12
+ * Access the template ref for the cell.
13
+ */
14
+ private readonly templateRef;
15
+ /**
16
+ * Access the view container ref.
17
+ */
18
+ private readonly viewContainerRef;
19
+ /**
20
+ * Access the dates in the week.
21
+ */
22
+ private readonly dates;
23
+ /**
24
+ * Store the view refs for the dates.
25
+ */
26
+ private readonly viewRefs;
27
+ static ngTemplateContextGuard<T>(_: NgpDatePickerCellRender<T>, context: unknown): context is NgpDatePickerCellContext<T>;
28
+ constructor();
29
+ /**
30
+ * Render the dates in the week.
31
+ */
32
+ private renderDates;
33
+ /**
34
+ * Destroy the view refs.
35
+ */
36
+ ngOnDestroy(): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgpDatePickerCellRender<any>, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgpDatePickerCellRender<any>, "[ngpDatePickerCellRender]", ["ngpDatePickerCellRender"], {}, {}, never, never, true, never>;
39
+ }
40
+ interface NgpDatePickerCellContext<T> {
41
+ $implicit: T;
42
+ }
43
+ export {};
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright © 2024 Angular Primitives.
3
+ * https://github.com/ng-primitives/ng-primitives
4
+ *
5
+ * This source code is licensed under the Apache 2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { InjectionToken } from '@angular/core';
9
+ import type { NgpDatePickerCellRender } from './date-picker-cell-render.directive';
10
+ export declare const NgpDatePickerCellRenderToken: InjectionToken<NgpDatePickerCellRender<unknown>>;
11
+ /**
12
+ * Inject the DatePickerCell directive instance
13
+ */
14
+ export declare function injectDatePickerCellRender<T>(): NgpDatePickerCellRender<T>;
15
+ export declare const NgpDatePickerCellDateToken: InjectionToken<unknown>;
16
+ /**
17
+ * Inject current cell date
18
+ */
19
+ export declare function injectDatePickerCellDate<T>(): T;
@@ -0,0 +1,99 @@
1
+ import { NgpCanDisable } from 'ng-primitives/internal';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "ng-primitives/button";
4
+ export declare class NgpDatePickerDateButton<T> implements NgpCanDisable {
5
+ /**
6
+ * Access the element ref.
7
+ */
8
+ private readonly elementRef;
9
+ /**
10
+ * Access the focus monitor.
11
+ */
12
+ private readonly focusMonitor;
13
+ /**
14
+ * Access the date picker.
15
+ */
16
+ private readonly datePicker;
17
+ /**
18
+ * Access the date adapter.
19
+ */
20
+ private readonly dateAdapter;
21
+ /**
22
+ * The date this cell represents.
23
+ */
24
+ private readonly date;
25
+ /**
26
+ * Determine if this is the focused date.
27
+ */
28
+ protected readonly focused: import("@angular/core").Signal<boolean>;
29
+ /**
30
+ * Determine if this is the selected date.
31
+ * @internal
32
+ */
33
+ readonly selected: import("@angular/core").Signal<boolean | undefined>;
34
+ /**
35
+ * Determine if this date is outside the current month.
36
+ */
37
+ protected readonly outside: import("@angular/core").Signal<boolean>;
38
+ /**
39
+ * Determine if this date is today.
40
+ */
41
+ protected readonly today: import("@angular/core").Signal<boolean>;
42
+ /**
43
+ * Determine if this date is disabled.
44
+ * @internal
45
+ */
46
+ readonly disabled: import("@angular/core").Signal<boolean>;
47
+ /**
48
+ * Determine if the element is a button.
49
+ */
50
+ protected readonly isButton: boolean;
51
+ /**
52
+ * When the button is clicked, select the date.
53
+ */
54
+ protected select(event?: KeyboardEvent): void;
55
+ /**
56
+ * Focus if this is the current focused date.
57
+ * @internal
58
+ */
59
+ focus(): void;
60
+ /**
61
+ * Focus the previous cell.
62
+ */
63
+ protected focusPrevious(event: KeyboardEvent): void;
64
+ /**
65
+ * Focus the next cell.
66
+ */
67
+ protected focusNext(event: KeyboardEvent): void;
68
+ /**
69
+ * Focus the above cell.
70
+ */
71
+ protected focusAbove(event: KeyboardEvent): void;
72
+ /**
73
+ * Focus the below cell.
74
+ */
75
+ protected focusBelow(event: KeyboardEvent): void;
76
+ /**
77
+ * Focus the first date of the month.
78
+ */
79
+ protected focusFirst(event: KeyboardEvent): void;
80
+ /**
81
+ * Focus the last date of the month.
82
+ */
83
+ protected focusLast(event: KeyboardEvent): void;
84
+ /**
85
+ * Focus the same date in the previous month.
86
+ */
87
+ protected focusPreviousMonth(event: KeyboardEvent): void;
88
+ /**
89
+ * Focus the same date in the next month.
90
+ */
91
+ protected focusNextMonth(event: KeyboardEvent): void;
92
+ private focusDate;
93
+ /**
94
+ * Get the direction of the element.
95
+ */
96
+ private getDirection;
97
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgpDatePickerDateButton<any>, never>;
98
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgpDatePickerDateButton<any>, "[ngpDatePickerDateButton]", ["ngpDatePickerDateButton"], {}, {}, never, never, true, [{ directive: typeof i1.NgpButton; inputs: {}; outputs: {}; }]>;
99
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright © 2024 Angular Primitives.
3
+ * https://github.com/ng-primitives/ng-primitives
4
+ *
5
+ * This source code is licensed under the Apache 2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { InjectionToken } from '@angular/core';
9
+ import type { NgpDatePickerDateButton } from './date-picker-date-button.directive';
10
+ export declare const NgpDatePickerDateButtonToken: InjectionToken<NgpDatePickerDateButton<unknown>>;
11
+ /**
12
+ * Inject the DatePickerDateButton directive instance
13
+ */
14
+ export declare function injectDatePickerDateButton<T>(): NgpDatePickerDateButton<T>;
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NgpDatePickerGrid<T> {
3
+ /**
4
+ * Access the date picker.
5
+ */
6
+ private readonly datePicker;
7
+ /**
8
+ * Determine the id for the label.
9
+ */
10
+ protected readonly labelId: import("@angular/core").Signal<string | undefined>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgpDatePickerGrid<any>, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgpDatePickerGrid<any>, "[ngpDatePickerGrid]", ["ngpDatePickerGrid"], {}, {}, never, never, true, never>;
13
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright © 2024 Angular Primitives.
3
+ * https://github.com/ng-primitives/ng-primitives
4
+ *
5
+ * This source code is licensed under the Apache 2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { InjectionToken } from '@angular/core';
9
+ import type { NgpDatePickerGrid } from './date-picker-grid.directive';
10
+ export declare const NgpDatePickerGridToken: InjectionToken<NgpDatePickerGrid<unknown>>;
11
+ /**
12
+ * Inject the DatePickerGrid directive instance
13
+ */
14
+ export declare function injectDatePickerGrid<T>(): NgpDatePickerGrid<T>;
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NgpDatePickerLabel {
3
+ /**
4
+ * Access the date picker.
5
+ */
6
+ protected readonly datePicker: import("ng-primitives/date-picker").NgpDatePicker<unknown>;
7
+ /**
8
+ * Define a unique id for the label.
9
+ */
10
+ readonly id: import("@angular/core").InputSignal<string>;
11
+ /**
12
+ * Define the aria live attribute.
13
+ */
14
+ readonly ariaLive: import("@angular/core").InputSignal<string>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgpDatePickerLabel, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgpDatePickerLabel, "[ngpDatePickerLabel]", ["ngpDatePickerLabel"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ariaLive": { "alias": "aria-live"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright © 2024 Angular Primitives.
3
+ * https://github.com/ng-primitives/ng-primitives
4
+ *
5
+ * This source code is licensed under the Apache 2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { InjectionToken } from '@angular/core';
9
+ import type { NgpDatePickerLabel } from './date-picker-label.directive';
10
+ export declare const NgpDatePickerLabelToken: InjectionToken<NgpDatePickerLabel>;
11
+ /**
12
+ * Inject the DatePickerLabel directive instance
13
+ */
14
+ export declare function injectDatePickerLabel(): NgpDatePickerLabel;
@@ -0,0 +1,32 @@
1
+ import { NgpCanDisable } from 'ng-primitives/internal';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "ng-primitives/button";
4
+ export declare class NgpDatePickerNextMonth<T> implements NgpCanDisable {
5
+ /**
6
+ * Access the element ref.
7
+ */
8
+ private readonly elementRef;
9
+ /**
10
+ * Access the date adapter.
11
+ */
12
+ private readonly dateAdapter;
13
+ /**
14
+ * Access the date picker.
15
+ */
16
+ private readonly datePicker;
17
+ /**
18
+ * Determine if this is a button element
19
+ */
20
+ protected readonly isButton: boolean;
21
+ /**
22
+ * Determine if the next month is disabled.
23
+ * @internal
24
+ */
25
+ readonly disabled: import("@angular/core").Signal<boolean>;
26
+ /**
27
+ * Navigate to the next month.
28
+ */
29
+ protected navigateToNextMonth(): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgpDatePickerNextMonth<any>, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgpDatePickerNextMonth<any>, "[ngpDatePickerNextMonth]", ["ngpDatePickerNextMonth"], {}, {}, never, never, true, [{ directive: typeof i1.NgpButton; inputs: {}; outputs: {}; }]>;
32
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright © 2024 Angular Primitives.
3
+ * https://github.com/ng-primitives/ng-primitives
4
+ *
5
+ * This source code is licensed under the Apache 2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { InjectionToken } from '@angular/core';
9
+ import type { NgpDatePickerNextMonth } from './date-picker-next-month.directive';
10
+ export declare const NgpDatePickerNextMonthToken: InjectionToken<NgpDatePickerNextMonth<unknown>>;
11
+ /**
12
+ * Inject the DatePickerNextMonth directive instance
13
+ */
14
+ export declare function injectDatePickerNextMonth<T>(): NgpDatePickerNextMonth<T>;
@@ -0,0 +1,32 @@
1
+ import { NgpCanDisable } from 'ng-primitives/internal';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "ng-primitives/button";
4
+ export declare class NgpDatePickerPreviousMonth<T> implements NgpCanDisable {
5
+ /**
6
+ * Access the element ref.
7
+ */
8
+ private readonly elementRef;
9
+ /**
10
+ * Access the date adapter.
11
+ */
12
+ private readonly dateAdapter;
13
+ /**
14
+ * Access the date picker.
15
+ */
16
+ private readonly datePicker;
17
+ /**
18
+ * Determine if this is a button element
19
+ */
20
+ protected readonly isButton: boolean;
21
+ /**
22
+ * Determine if the next month is disabled.
23
+ * @internal
24
+ */
25
+ readonly disabled: import("@angular/core").Signal<boolean>;
26
+ /**
27
+ * Navigate to the previous month.
28
+ */
29
+ protected navigateToPreviouMonth(): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgpDatePickerPreviousMonth<any>, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgpDatePickerPreviousMonth<any>, "[ngpDatePickerPreviousMonth]", ["ngpDatePickerPreviousMonth"], {}, {}, never, never, true, [{ directive: typeof i1.NgpButton; inputs: {}; outputs: {}; }]>;
32
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright © 2024 Angular Primitives.
3
+ * https://github.com/ng-primitives/ng-primitives
4
+ *
5
+ * This source code is licensed under the Apache 2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { InjectionToken } from '@angular/core';
9
+ import type { NgpDatePickerPreviousMonth } from './date-picker-previous-month.directive';
10
+ export declare const NgpDatePickerPreviousMonthToken: InjectionToken<NgpDatePickerPreviousMonth<unknown>>;
11
+ /**
12
+ * Inject the DatePickerPreviousMonth directive instance
13
+ */
14
+ export declare function injectDatePickerPreviousMonth<T>(): NgpDatePickerPreviousMonth<T>;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Copyright © 2024 Angular Primitives.
3
+ * https://github.com/ng-primitives/ng-primitives
4
+ *
5
+ * This source code is licensed under the Apache 2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { OnDestroy } from '@angular/core';
9
+ import * as i0 from "@angular/core";
10
+ export declare class NgpDatePickerRowRender<T> implements OnDestroy {
11
+ /**
12
+ * Access the date adapter.
13
+ */
14
+ private readonly dateAdapter;
15
+ /**
16
+ * Access the date picker.
17
+ */
18
+ private readonly datePicker;
19
+ /**
20
+ * Access the template ref for the cell.
21
+ */
22
+ private readonly templateRef;
23
+ /**
24
+ * Access the view container ref.
25
+ */
26
+ private readonly viewContainerRef;
27
+ /**
28
+ * Get all the days to display, this is the days of the current month
29
+ * and the days of the previous and next month to fill the grid.
30
+ */
31
+ protected readonly days: import("@angular/core").Signal<T[]>;
32
+ protected readonly weeks: import("@angular/core").Signal<T[][]>;
33
+ /**
34
+ * Store the embedded view refs of each rendered row.
35
+ */
36
+ private readonly viewRefs;
37
+ constructor();
38
+ ngOnDestroy(): void;
39
+ /**
40
+ * Render the row.
41
+ */
42
+ private renderRows;
43
+ /**
44
+ * Destroy the row.
45
+ */
46
+ private destroyRows;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgpDatePickerRowRender<any>, never>;
48
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgpDatePickerRowRender<any>, "[ngpDatePickerRowRender]", ["ngpDatePickerRowRender"], {}, {}, never, never, true, never>;
49
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright © 2024 Angular Primitives.
3
+ * https://github.com/ng-primitives/ng-primitives
4
+ *
5
+ * This source code is licensed under the Apache 2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { InjectionToken } from '@angular/core';
9
+ import type { NgpDatePickerRowRender } from './date-picker-row-render.directive';
10
+ export declare const NgpDatePickerRowRenderToken: InjectionToken<NgpDatePickerRowRender<unknown>>;
11
+ /**
12
+ * Inject the DatePickerRowRender directive instance
13
+ */
14
+ export declare function injectDatePickerRowRender<T>(): NgpDatePickerRowRender<T>;
15
+ export declare const NgpDatePickerWeekToken: InjectionToken<unknown[]>;
16
+ /**
17
+ * Inject current week days
18
+ */
19
+ export declare function injectDatePickerWeek<T>(): T[];
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright © 2024 Angular Primitives.
3
+ * https://github.com/ng-primitives/ng-primitives
4
+ *
5
+ * This source code is licensed under the Apache 2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export { NgpDatePickerCellRender } from './date-picker-cell-render/date-picker-cell-render.directive';
9
+ export { NgpDatePickerCellRenderToken } from './date-picker-cell-render/date-picker-cell-render.token';
10
+ export { NgpDatePickerDateButton } from './date-picker-date-button/date-picker-date-button.directive';
11
+ export { NgpDatePickerDateButtonToken } from './date-picker-date-button/date-picker-date-button.token';
12
+ export { NgpDatePickerGrid } from './date-picker-grid/date-picker-grid.directive';
13
+ export { NgpDatePickerGridToken } from './date-picker-grid/date-picker-grid.token';
14
+ export { NgpDatePickerLabel } from './date-picker-label/date-picker-label.directive';
15
+ export { NgpDatePickerLabelToken } from './date-picker-label/date-picker-label.token';
16
+ export { NgpDatePickerNextMonth } from './date-picker-next-month/date-picker-next-month.directive';
17
+ export { NgpDatePickerNextMonthToken } from './date-picker-next-month/date-picker-next-month.token';
18
+ export { NgpDatePickerPreviousMonth } from './date-picker-previous-month/date-picker-previous-month.directive';
19
+ export { NgpDatePickerPreviousMonthToken } from './date-picker-previous-month/date-picker-previous-month.token';
20
+ export { NgpDatePickerRowRender } from './date-picker-row-render/date-picker-row-render.directive';
21
+ export { NgpDatePickerRowRenderToken } from './date-picker-row-render/date-picker-row-render.token';
22
+ export { NgpDatePicker } from './date-picker/date-picker.directive';
23
+ export { NgpDatePickerToken } from './date-picker/date-picker.token';
24
+ export { NgpDatePickerCell } from './date-picker-cell/date-picker-cell.directive';
25
+ export { NgpDatePickerCellToken } from './date-picker-cell/date-picker-cell.token';
@@ -0,0 +1,3 @@
1
+ # ng-primitives/date-time
2
+
3
+ Secondary entry point of `ng-primitives`. It can be used by importing from `ng-primitives/date-time`.