@tectra-ng/ui 0.3.1 → 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.
- package/data-view/README.md +9 -1
- package/dialog/README.md +3 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-dialog.mjs +51 -0
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +2 -2
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +20 -3
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui.mjs +1 -1
- package/fesm2022/tectra-ng-ui.mjs.map +1 -1
- package/package.json +9 -9
- package/table/README.md +1 -0
- package/tree-select/README.md +1 -0
- package/types/tectra-ng-ui-accordion.d.ts +96 -65
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -1
- package/types/tectra-ng-ui-amount.d.ts +40 -17
- package/types/tectra-ng-ui-amount.d.ts.map +1 -1
- package/types/tectra-ng-ui-analog-clock.d.ts +28 -41
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
- package/types/tectra-ng-ui-autocomplete.d.ts +35 -96
- package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
- package/types/tectra-ng-ui-avatar.d.ts +84 -259
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
- package/types/tectra-ng-ui-badge.d.ts +18 -61
- package/types/tectra-ng-ui-badge.d.ts.map +1 -1
- package/types/tectra-ng-ui-breadcrumb.d.ts +53 -36
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -1
- package/types/tectra-ng-ui-button-group.d.ts +4 -0
- package/types/tectra-ng-ui-button-group.d.ts.map +1 -1
- package/types/tectra-ng-ui-button.d.ts +45 -266
- package/types/tectra-ng-ui-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-card.d.ts +14 -16
- package/types/tectra-ng-ui-card.d.ts.map +1 -1
- package/types/tectra-ng-ui-carousel.d.ts +55 -27
- package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
- package/types/tectra-ng-ui-cascade-select.d.ts +48 -8
- package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-checkbox.d.ts +79 -119
- package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
- package/types/tectra-ng-ui-chip.d.ts +19 -22
- package/types/tectra-ng-ui-chip.d.ts.map +1 -1
- package/types/tectra-ng-ui-chips-input.d.ts +41 -11
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-color-picker.d.ts +51 -47
- package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
- package/types/tectra-ng-ui-confirm.d.ts +45 -0
- package/types/tectra-ng-ui-confirm.d.ts.map +1 -1
- package/types/tectra-ng-ui-countdown.d.ts +42 -10
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
- package/types/tectra-ng-ui-country-select.d.ts +41 -96
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-country.d.ts +40 -17
- package/types/tectra-ng-ui-country.d.ts.map +1 -1
- package/types/tectra-ng-ui-data-view.d.ts +92 -34
- package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
- package/types/tectra-ng-ui-datepicker.d.ts +186 -147
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
- package/types/tectra-ng-ui-dialog.d.ts +149 -67
- package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
- package/types/tectra-ng-ui-divider.d.ts +17 -12
- package/types/tectra-ng-ui-divider.d.ts.map +1 -1
- package/types/tectra-ng-ui-drawer.d.ts +31 -67
- package/types/tectra-ng-ui-drawer.d.ts.map +1 -1
- package/types/tectra-ng-ui-email-suggestion.d.ts +25 -8
- package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -1
- package/types/tectra-ng-ui-export-font.d.ts +1 -0
- package/types/tectra-ng-ui-export-font.d.ts.map +1 -1
- package/types/tectra-ng-ui-export.d.ts +238 -0
- package/types/tectra-ng-ui-export.d.ts.map +1 -1
- package/types/tectra-ng-ui-field.d.ts +24 -11
- package/types/tectra-ng-ui-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-fieldset.d.ts +14 -23
- package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
- package/types/tectra-ng-ui-file-upload.d.ts +127 -115
- package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
- package/types/tectra-ng-ui-galleria.d.ts +84 -84
- package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
- package/types/tectra-ng-ui-highlight-text.d.ts +24 -10
- package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -1
- package/types/tectra-ng-ui-icon-field.d.ts +20 -0
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-image.d.ts +60 -36
- package/types/tectra-ng-ui-image.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-group.d.ts +9 -0
- package/types/tectra-ng-ui-input-group.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-mask.d.ts +39 -0
- package/types/tectra-ng-ui-input-mask.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-number.d.ts +73 -15
- package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-otp.d.ts +28 -21
- package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
- package/types/tectra-ng-ui-input.d.ts +17 -50
- package/types/tectra-ng-ui-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-key-filter.d.ts +14 -0
- package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
- package/types/tectra-ng-ui-knob.d.ts +38 -18
- package/types/tectra-ng-ui-knob.d.ts.map +1 -1
- package/types/tectra-ng-ui-label.d.ts +19 -0
- package/types/tectra-ng-ui-label.d.ts.map +1 -1
- package/types/tectra-ng-ui-link.d.ts +39 -34
- package/types/tectra-ng-ui-link.d.ts.map +1 -1
- package/types/tectra-ng-ui-list-input.d.ts +54 -45
- package/types/tectra-ng-ui-list-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-listbox.d.ts +24 -14
- package/types/tectra-ng-ui-listbox.d.ts.map +1 -1
- package/types/tectra-ng-ui-mention-textarea.d.ts +36 -9
- package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-menu.d.ts +92 -166
- package/types/tectra-ng-ui-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-menubar.d.ts +29 -58
- package/types/tectra-ng-ui-menubar.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +61 -126
- package/types/tectra-ng-ui-message.d.ts.map +1 -1
- package/types/tectra-ng-ui-month-calendar.d.ts +98 -87
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
- package/types/tectra-ng-ui-multiselect.d.ts +26 -96
- package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
- package/types/tectra-ng-ui-overlay-badge.d.ts +20 -9
- package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -1
- package/types/tectra-ng-ui-paginator.d.ts +69 -47
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel-menu.d.ts +52 -105
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel.d.ts +22 -30
- package/types/tectra-ng-ui-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-password-generator.d.ts +27 -0
- package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
- package/types/tectra-ng-ui-password.d.ts +55 -26
- package/types/tectra-ng-ui-password.d.ts.map +1 -1
- package/types/tectra-ng-ui-pill.d.ts +23 -70
- package/types/tectra-ng-ui-pill.d.ts.map +1 -1
- package/types/tectra-ng-ui-popover.d.ts +58 -46
- package/types/tectra-ng-ui-popover.d.ts.map +1 -1
- package/types/tectra-ng-ui-progress-bar.d.ts +32 -28
- package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
- package/types/tectra-ng-ui-progress-spinner.d.ts +18 -16
- package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -1
- package/types/tectra-ng-ui-radio-button.d.ts +64 -115
- package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-rating.d.ts +40 -29
- package/types/tectra-ng-ui-rating.d.ts.map +1 -1
- package/types/tectra-ng-ui-scroll-panel.d.ts +22 -17
- package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-select.d.ts +169 -100
- package/types/tectra-ng-ui-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-skeleton.d.ts +34 -37
- package/types/tectra-ng-ui-skeleton.d.ts.map +1 -1
- package/types/tectra-ng-ui-slider.d.ts +37 -33
- package/types/tectra-ng-ui-slider.d.ts.map +1 -1
- package/types/tectra-ng-ui-sparkline.d.ts +22 -15
- package/types/tectra-ng-ui-sparkline.d.ts.map +1 -1
- package/types/tectra-ng-ui-speed-dial.d.ts +34 -11
- package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
- package/types/tectra-ng-ui-split-button.d.ts +28 -7
- package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-splitter.d.ts +47 -23
- package/types/tectra-ng-ui-splitter.d.ts.map +1 -1
- package/types/tectra-ng-ui-stat-tiles.d.ts +39 -91
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
- package/types/tectra-ng-ui-status-icon.d.ts +19 -23
- package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
- package/types/tectra-ng-ui-stepper.d.ts +106 -133
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +415 -183
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +91 -133
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
- package/types/tectra-ng-ui-tag.d.ts +46 -135
- package/types/tectra-ng-ui-tag.d.ts.map +1 -1
- package/types/tectra-ng-ui-textarea.d.ts +25 -31
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-timeline.d.ts +39 -27
- package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
- package/types/tectra-ng-ui-toast.d.ts +84 -78
- package/types/tectra-ng-ui-toast.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-button.d.ts +29 -55
- package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-switch.d.ts +41 -55
- package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
- package/types/tectra-ng-ui-toolbar.d.ts +15 -14
- package/types/tectra-ng-ui-toolbar.d.ts.map +1 -1
- package/types/tectra-ng-ui-tooltip.d.ts +72 -22
- package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +65 -104
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-table.d.ts +30 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree.d.ts +197 -69
- package/types/tectra-ng-ui-tree.d.ts.map +1 -1
- package/types/tectra-ng-ui-truncate-text.d.ts +21 -14
- package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
- package/types/tectra-ng-ui-virtual-scroller.d.ts +97 -13
- package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
- package/types/tectra-ng-ui.d.ts +2 -1
- package/types/tectra-ng-ui.d.ts.map +1 -1
|
@@ -5,101 +5,190 @@ import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
|
5
5
|
import { TxFormControlBase } from "@tectra-ng/core/forms";
|
|
6
6
|
import { TxPlacement } from "@tectra-ng/core/overlay";
|
|
7
7
|
import { TxIconName } from "@tectra-ng/icons";
|
|
8
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
8
|
+
import { TectraDatePickerTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
9
|
+
/** One day cell of the calendar. */
|
|
9
10
|
export interface TxCalendarDay {
|
|
11
|
+
/** The date of the cell. */
|
|
10
12
|
date: Date;
|
|
13
|
+
/** Day of the month, 1 to 31. */
|
|
11
14
|
day: number;
|
|
15
|
+
/** Month of the day, 0 for January. */
|
|
12
16
|
month: number;
|
|
17
|
+
/** Year of the day. */
|
|
13
18
|
year: number;
|
|
19
|
+
/** Whether the day belongs to the previous or next month. */
|
|
14
20
|
otherMonth: boolean;
|
|
21
|
+
/** Whether the day is today. */
|
|
15
22
|
today: boolean;
|
|
23
|
+
/** Whether the day can be picked under the date rules. */
|
|
16
24
|
selectable: boolean;
|
|
17
25
|
}
|
|
26
|
+
/** One row of the calendar. */
|
|
18
27
|
export interface TxCalendarWeek {
|
|
28
|
+
/** Week number of the row. */
|
|
19
29
|
number: number;
|
|
30
|
+
/** The seven days of the row. */
|
|
20
31
|
days: TxCalendarDay[];
|
|
21
32
|
}
|
|
33
|
+
/** One month of the calendar with its weeks. */
|
|
22
34
|
export interface TxCalendarMonth {
|
|
35
|
+
/** Month number, 0 for January. */
|
|
23
36
|
month: number;
|
|
37
|
+
/** Year of the month. */
|
|
24
38
|
year: number;
|
|
39
|
+
/** Rows of the month, each of seven days. */
|
|
25
40
|
weeks: TxCalendarWeek[];
|
|
26
41
|
}
|
|
42
|
+
/** Which dates cannot be picked. */
|
|
27
43
|
export interface TxDateRules {
|
|
44
|
+
/** Earliest day that can be picked. */
|
|
28
45
|
minDate?: Date | null;
|
|
46
|
+
/** Latest day that can be picked. */
|
|
29
47
|
maxDate?: Date | null;
|
|
48
|
+
/** Single days that cannot be picked. */
|
|
30
49
|
disabledDates?: readonly Date[] | null;
|
|
50
|
+
/** Weekdays that cannot be picked, 0 for Sunday to 6 for Saturday. */
|
|
31
51
|
disabledDays?: readonly number[] | null;
|
|
32
52
|
}
|
|
53
|
+
/** Returns a new date at 00:00 of the same day. */
|
|
33
54
|
export declare function startOfDay(date: Date): Date;
|
|
55
|
+
/** Tells whether two dates fall on the same calendar day; `false` when either is empty. */
|
|
34
56
|
export declare function sameDay(a: Date | null | undefined, b: Date | null | undefined): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Compares two dates by calendar day; negative when `a` is earlier, positive when later, `0` on the same day.
|
|
59
|
+
*/
|
|
35
60
|
export declare function compareDays(a: Date, b: Date): number;
|
|
61
|
+
/** Returns a new date moved by the given number of days, back when negative. */
|
|
36
62
|
export declare function addDays(date: Date, days: number): Date;
|
|
63
|
+
/**
|
|
64
|
+
* Returns a new date moved by the given number of months; the day is cut to the last day of a shorter month.
|
|
65
|
+
*/
|
|
37
66
|
export declare function addMonths(date: Date, months: number): Date;
|
|
67
|
+
/** Tells whether a day passes the min, max, disabled days and disabled dates rules. */
|
|
38
68
|
export declare function isSelectable(date: Date, rules: TxDateRules): boolean;
|
|
69
|
+
/** Tells whether any day of the month (0 for January) is inside the min and max dates. */
|
|
39
70
|
export declare function isMonthSelectable(year: number, month: number, rules: TxDateRules): boolean;
|
|
71
|
+
/** Tells whether the year is inside the min and max dates. */
|
|
40
72
|
export declare function isYearSelectable(year: number, rules: TxDateRules): boolean;
|
|
73
|
+
/** Week number of a date: the ISO 8601 week, or counted from January 1 when `fromFirstDayOfYear` is set. */
|
|
41
74
|
export declare function weekNumber(date: Date, fromFirstDayOfYear?: boolean): number;
|
|
75
|
+
/**
|
|
76
|
+
* Builds the weeks of a month (0 for January) for the calendar, with days of the neighbour months filling the first and last week.
|
|
77
|
+
*/
|
|
42
78
|
export declare function buildMonth(year: number, month: number, firstDayOfWeek: number, rules: TxDateRules, today: Date, fromFirstDayOfYear?: boolean): TxCalendarMonth;
|
|
79
|
+
/** Lists the weekday numbers (0 Sunday to 6 Saturday) starting from the first day of the week. */
|
|
43
80
|
export declare function weekdayOrder(firstDayOfWeek: number): number[];
|
|
81
|
+
/** What the user picks: one date (`single`), several (`multiple`) or a `range`. */
|
|
44
82
|
export type TxDatePickerSelectionMode = 'single' | 'multiple' | 'range';
|
|
83
|
+
/** Which panel the calendar shows: days (`date`), months (`month`) or years (`year`). */
|
|
45
84
|
export type TxDatePickerView = 'date' | 'month' | 'year';
|
|
85
|
+
/** Where the calendar icon sits: a `button` joined to the field, or an icon inside it (`input`). */
|
|
46
86
|
export type TxDatePickerIconDisplay = 'button' | 'input';
|
|
87
|
+
/** Clock of the time picker: `12` with AM and PM, or `24`. */
|
|
47
88
|
export type TxDatePickerHourFormat = '12' | '24';
|
|
89
|
+
/** Type of the model values: `date` for `Date` objects, `string` for text in `dateFormat`. */
|
|
48
90
|
export type TxDatePickerDataType = 'date' | 'string';
|
|
91
|
+
/** Size of the field: `small`, `medium` or `large`. */
|
|
49
92
|
export type TxDatePickerSize = 'small' | 'medium' | 'large';
|
|
93
|
+
/** Look of the field: `outlined` or `filled`. */
|
|
50
94
|
export type TxDatePickerVariant = 'outlined' | 'filled';
|
|
95
|
+
/** Value of `tx-datepicker`: a date, a list of dates (range or multiple), their text forms, or `null`. */
|
|
51
96
|
export type TxDatePickerValue = Date | readonly (Date | null)[] | string | readonly (string | null)[] | null;
|
|
97
|
+
/** Names of the parts of `tx-datepicker` that `pt` can style. */
|
|
52
98
|
export type TxDatePickerPart = 'root' | 'input' | 'dropdown' | 'inputIcon' | 'clear' | 'panel' | 'header' | 'title' | 'previous' | 'next' | 'selectMonth' | 'selectYear' | 'calendar' | 'table' | 'weekday' | 'weekNumber' | 'day' | 'monthView' | 'month' | 'yearView' | 'year' | 'timePicker' | 'buttonbar';
|
|
99
|
+
/** How many months show while the window is at most `breakpoint` wide. */
|
|
53
100
|
export interface TxDatePickerResponsiveOption {
|
|
101
|
+
/** Largest window width this option applies to, as a CSS length such as `768px`. */
|
|
54
102
|
breakpoint: string;
|
|
103
|
+
/** Number of months shown side by side. */
|
|
55
104
|
numberOfMonths: number;
|
|
56
105
|
}
|
|
106
|
+
/** Payload of `monthChange`: the month the calendar moved to. */
|
|
57
107
|
export interface TxDatePickerMonthChangeEvent {
|
|
108
|
+
/** Month number, 1 for January to 12. */
|
|
58
109
|
month: number;
|
|
110
|
+
/** Year of the month. */
|
|
59
111
|
year: number;
|
|
60
112
|
}
|
|
113
|
+
/** Context of the `txDatePickerDate` template: one day cell. */
|
|
61
114
|
export interface TxDatePickerDateContext {
|
|
115
|
+
/** The calendar day. */
|
|
62
116
|
$implicit: TxCalendarDay;
|
|
117
|
+
/** Whether the day is picked. */
|
|
63
118
|
selected: boolean;
|
|
119
|
+
/** Whether the day lies inside the picked range. */
|
|
64
120
|
inRange: boolean;
|
|
65
121
|
}
|
|
122
|
+
/** Context of the `txDatePickerDecade` template. */
|
|
66
123
|
export interface TxDatePickerDecadeContext {
|
|
124
|
+
/** The years of the decade shown. */
|
|
67
125
|
$implicit: readonly number[];
|
|
68
126
|
}
|
|
127
|
+
/** Context of the `txDatePickerButtonBar` template. */
|
|
69
128
|
export interface TxDatePickerButtonBarContext {
|
|
129
|
+
/** Moves to and picks today. */
|
|
70
130
|
today: () => void;
|
|
131
|
+
/** Clears the value. */
|
|
71
132
|
clear: () => void;
|
|
72
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* `<ng-template txDatePickerDate let-day let-selected="selected">` — content of a day: `day`, `month`, `year`, `today`, `otherMonth`, `selectable`
|
|
136
|
+
* @see https://tectra-ng.com/components/datepicker
|
|
137
|
+
*/
|
|
73
138
|
export declare class TxDatePickerDate {
|
|
74
139
|
readonly templateRef: TemplateRef<TxDatePickerDateContext>;
|
|
75
140
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDatePickerDate, never>;
|
|
76
141
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDatePickerDate, "ng-template[txDatePickerDate]", never, {}, {}, never, never, true, never>;
|
|
77
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* `<ng-template txDatePickerHeader>` — content above the calendar
|
|
145
|
+
* @see https://tectra-ng.com/components/datepicker
|
|
146
|
+
*/
|
|
78
147
|
export declare class TxDatePickerHeader {
|
|
79
148
|
readonly templateRef: TemplateRef<void>;
|
|
80
149
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDatePickerHeader, never>;
|
|
81
150
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDatePickerHeader, "ng-template[txDatePickerHeader]", never, {}, {}, never, never, true, never>;
|
|
82
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* `<ng-template txDatePickerFooter>` — content under the calendar
|
|
154
|
+
* @see https://tectra-ng.com/components/datepicker
|
|
155
|
+
*/
|
|
83
156
|
export declare class TxDatePickerFooter {
|
|
84
157
|
readonly templateRef: TemplateRef<void>;
|
|
85
158
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDatePickerFooter, never>;
|
|
86
159
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDatePickerFooter, "ng-template[txDatePickerFooter]", never, {}, {}, never, never, true, never>;
|
|
87
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* `<ng-template txDatePickerDecade let-years>` — title of the year view
|
|
163
|
+
* @see https://tectra-ng.com/components/datepicker
|
|
164
|
+
*/
|
|
88
165
|
export declare class TxDatePickerDecade {
|
|
89
166
|
readonly templateRef: TemplateRef<TxDatePickerDecadeContext>;
|
|
90
167
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDatePickerDecade, never>;
|
|
91
168
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDatePickerDecade, "ng-template[txDatePickerDecade]", never, {}, {}, never, never, true, never>;
|
|
92
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* `<ng-template txDatePickerButtonBar let-today="today" let-clear="clear">` — own button bar
|
|
172
|
+
* @see https://tectra-ng.com/components/datepicker
|
|
173
|
+
*/
|
|
93
174
|
export declare class TxDatePickerButtonBar {
|
|
94
175
|
readonly templateRef: TemplateRef<TxDatePickerButtonBarContext>;
|
|
95
176
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDatePickerButtonBar, never>;
|
|
96
177
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDatePickerButtonBar, "ng-template[txDatePickerButtonBar]", never, {}, {}, never, never, true, never>;
|
|
97
178
|
}
|
|
179
|
+
/**
|
|
180
|
+
* `<ng-template txDatePickerTriggerIcon>` — content of the icon button
|
|
181
|
+
* @see https://tectra-ng.com/components/datepicker
|
|
182
|
+
*/
|
|
98
183
|
export declare class TxDatePickerTriggerIcon {
|
|
99
184
|
readonly templateRef: TemplateRef<void>;
|
|
100
185
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDatePickerTriggerIcon, never>;
|
|
101
186
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDatePickerTriggerIcon, "ng-template[txDatePickerTriggerIcon]", never, {}, {}, never, never, true, never>;
|
|
102
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* `<ng-template txDatePickerInputIcon let-toggle>` — icon inside the field
|
|
190
|
+
* @see https://tectra-ng.com/components/datepicker
|
|
191
|
+
*/
|
|
103
192
|
export declare class TxDatePickerInputIcon {
|
|
104
193
|
readonly templateRef: TemplateRef<{
|
|
105
194
|
$implicit: () => void;
|
|
@@ -107,243 +196,193 @@ export declare class TxDatePickerInputIcon {
|
|
|
107
196
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxDatePickerInputIcon, never>;
|
|
108
197
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxDatePickerInputIcon, "ng-template[txDatePickerInputIcon]", never, {}, {}, never, never, true, never>;
|
|
109
198
|
}
|
|
199
|
+
/** Weekday and month names of a locale. */
|
|
110
200
|
export interface TxDateNames {
|
|
201
|
+
/** Long weekday names, Sunday first. */
|
|
111
202
|
dayNames: readonly string[];
|
|
203
|
+
/** Short weekday names, Sunday first. */
|
|
112
204
|
dayNamesShort: readonly string[];
|
|
205
|
+
/** Long month names, January first. */
|
|
113
206
|
monthNames: readonly string[];
|
|
207
|
+
/** Short month names, January first. */
|
|
114
208
|
monthNamesShort: readonly string[];
|
|
115
209
|
}
|
|
210
|
+
/** How a time is written: clock, seconds, separator and AM / PM texts. */
|
|
116
211
|
export interface TxTimeFormat {
|
|
212
|
+
/** `12` with AM and PM, or `24`. */
|
|
117
213
|
hourFormat: '12' | '24';
|
|
214
|
+
/** Whether seconds are shown. */
|
|
118
215
|
showSeconds: boolean;
|
|
216
|
+
/** Text between hours, minutes and seconds. */
|
|
119
217
|
separator: string;
|
|
218
|
+
/** Text for the morning in the 12-hour clock. */
|
|
120
219
|
am: string;
|
|
220
|
+
/** Text for the afternoon in the 12-hour clock. */
|
|
121
221
|
pm: string;
|
|
122
222
|
}
|
|
223
|
+
/** Reads the weekday and month names, long and short, for a locale; weekdays start on Sunday. */
|
|
123
224
|
export declare function dateNames(locale: string): TxDateNames;
|
|
225
|
+
/**
|
|
226
|
+
* Formats a date with a format string: `d` day, `o` day of the year, `D` weekday name, `m` month, `M` month name, `y` year, `@` Unix ms, `!` ticks and `'text'` literal; doubling a letter gives the long form.
|
|
227
|
+
*/
|
|
124
228
|
export declare function formatDate(date: Date | null | undefined, format: string, names: TxDateNames): string;
|
|
229
|
+
/** Formats the time of a date with the hour format, separator and AM / PM texts; empty for an empty date. */
|
|
125
230
|
export declare function formatTime(date: Date | null | undefined, format: TxTimeFormat): string;
|
|
231
|
+
/** Turns a short year cutoff into a two-digit year; `+10` means ten years after the current one. */
|
|
126
232
|
export declare function resolveCutoff(cutoff: string | number, now?: Date): number;
|
|
233
|
+
/**
|
|
234
|
+
* Reads text written in a `formatDate` format into a date; `null` when the text does not match or the date does not exist.
|
|
235
|
+
*/
|
|
127
236
|
export declare function parseDate(text: string, format: string, names: TxDateNames, shortYearCutoff?: string | number, now?: Date): Date | null;
|
|
237
|
+
/**
|
|
238
|
+
* Reads text like `14:30` or `2:30 PM` into hours, minutes and seconds; `null` when it does not fit the format.
|
|
239
|
+
*/
|
|
128
240
|
export declare function parseTime(text: string, format: TxTimeFormat): {
|
|
129
241
|
hours: number;
|
|
130
242
|
minutes: number;
|
|
131
243
|
seconds: number;
|
|
132
244
|
} | null;
|
|
245
|
+
/** Part of the time a spinner changes: `hour`, `minute` or `second`. */
|
|
133
246
|
type TimeUnit = 'hour' | 'minute' | 'second';
|
|
247
|
+
/**
|
|
248
|
+
* A date field with a calendar panel — one date, several dates or a range, with or without time, typed or picked, in a popup, a touch dialog or inline. Works with `formControl`, `ngModel` and signal forms.
|
|
249
|
+
* @see https://tectra-ng.com/components/datepicker
|
|
250
|
+
*/
|
|
134
251
|
export declare class TxDatePicker extends TxFormControlBase<TxDatePickerValue> {
|
|
135
252
|
private readonly datepickerTheme;
|
|
253
|
+
/** `single`, `multiple` or `range` (the value is `[start, end]`, `end` is `null` until picked; while the end is not picked, the days up to the hovered or focused day are highlighted) */
|
|
136
254
|
readonly selectionMode: import("@angular/core").InputSignal<TxDatePickerSelectionMode>;
|
|
255
|
+
/** Format of the field: `d` / `dd` day, `o` / `oo` day of the year, `D` / `DD` weekday name, `m` / `mm` month, `M` / `MM` month name, `y` / `yy` year, `@` Unix ms, `!` ticks, `'text'` literal; locale default (`mm/dd/yy` us, `dd.mm.yy` ua) */
|
|
137
256
|
readonly dateFormat: import("@angular/core").InputSignal<string | undefined>;
|
|
257
|
+
/** Text of the empty field */
|
|
138
258
|
readonly placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
259
|
+
/** Id of the input, for an outside `<label for>` */
|
|
139
260
|
readonly inputId: import("@angular/core").InputSignal<string | undefined>;
|
|
261
|
+
/** Name of the input */
|
|
140
262
|
readonly name: import("@angular/core").InputSignal<string | undefined>;
|
|
263
|
+
/** Accessible name of the field and the panel */
|
|
141
264
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
265
|
+
/** Id of the element that names the field */
|
|
142
266
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
267
|
+
/** Accessible name of the icon button; "Choose date" by default */
|
|
143
268
|
readonly iconAriaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
269
|
+
/** Shows the calendar in place, without a field */
|
|
144
270
|
readonly inline: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
271
|
+
/** Shows the calendar icon */
|
|
145
272
|
readonly showIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
273
|
+
/** `button` — a button joined to the field, `input` — an icon inside the field */
|
|
146
274
|
readonly iconDisplay: import("@angular/core").InputSignal<TxDatePickerIconDisplay>;
|
|
275
|
+
/** Icon name */
|
|
147
276
|
readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
|
|
277
|
+
/** Shows a clear button in the field when it has a value */
|
|
148
278
|
readonly showClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
279
|
+
/** Today and Clear buttons under the calendar */
|
|
149
280
|
readonly showButtonBar: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
281
|
+
/** Shows days of the previous / next month */
|
|
150
282
|
readonly showOtherMonths: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
283
|
+
/** Lets those days be picked; on by default */
|
|
151
284
|
readonly selectOtherMonths: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
285
|
+
/** Week numbers (ISO) */
|
|
152
286
|
readonly showWeek: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
287
|
+
/** Counts week 1 from January 1 */
|
|
153
288
|
readonly startWeekFromFirstDayOfYear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
289
|
+
/** Hours and minutes under the calendar */
|
|
154
290
|
readonly showTime: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
291
|
+
/** Only the time picker */
|
|
155
292
|
readonly timeOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
293
|
+
/** `24` or `12` (with AM / PM) */
|
|
156
294
|
readonly hourFormat: import("@angular/core").InputSignal<TxDatePickerHourFormat>;
|
|
295
|
+
/** Seconds in the time picker */
|
|
157
296
|
readonly showSeconds: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
297
|
+
/** Hours per click */
|
|
158
298
|
readonly stepHour: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
299
|
+
/** Minutes per click */
|
|
159
300
|
readonly stepMinute: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
301
|
+
/** Seconds per click */
|
|
160
302
|
readonly stepSecond: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
303
|
+
/** Between hours, minutes and seconds; `:` by default */
|
|
161
304
|
readonly timeSeparator: import("@angular/core").InputSignal<string>;
|
|
305
|
+
/** `date`, `month` (pick a month) or `year` (pick a year) */
|
|
162
306
|
readonly view: import("@angular/core").InputSignal<TxDatePickerView>;
|
|
307
|
+
/** Months side by side */
|
|
163
308
|
readonly numberOfMonths: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
309
|
+
/** `[{ breakpoint: '768px', numberOfMonths: 1 }]` — fewer months on narrow screens */
|
|
164
310
|
readonly responsiveOptions: import("@angular/core").InputSignal<readonly TxDatePickerResponsiveOption[] | undefined>;
|
|
311
|
+
/** 0 Sunday … 6 Saturday; locale default */
|
|
165
312
|
readonly firstDayOfWeek: import("@angular/core").InputSignal<number | undefined>;
|
|
313
|
+
/** Earliest date */
|
|
166
314
|
readonly minDate: import("@angular/core").InputSignal<Date | null | undefined>;
|
|
315
|
+
/** Latest date */
|
|
167
316
|
readonly maxDate: import("@angular/core").InputSignal<Date | null | undefined>;
|
|
317
|
+
/** Dates that cannot be picked */
|
|
168
318
|
readonly disabledDates: import("@angular/core").InputSignal<readonly Date[] | null | undefined>;
|
|
319
|
+
/** Weekdays that cannot be picked (0 Sunday … 6 Saturday) */
|
|
169
320
|
readonly disabledDays: import("@angular/core").InputSignal<readonly number[] | null | undefined>;
|
|
321
|
+
/** Most dates in `multiple` mode */
|
|
170
322
|
readonly maxDateCount: import("@angular/core").InputSignal<number | undefined>;
|
|
323
|
+
/** Month shown and time used while there is no value */
|
|
171
324
|
readonly defaultDate: import("@angular/core").InputSignal<Date | null | undefined>;
|
|
325
|
+
/** The field takes no typing, only the calendar */
|
|
172
326
|
readonly readonlyInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
327
|
+
/** Keeps text that is not a valid date after blur */
|
|
173
328
|
readonly keepInvalid: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
329
|
+
/** Closes the panel once the date (or the range end) is picked; not with time */
|
|
174
330
|
readonly hideOnDateTimeSelect: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
331
|
+
/** Opens the panel when the field gets focus or a click */
|
|
175
332
|
readonly showOnFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
333
|
+
/** Opens the calendar as a centred dialog with a mask, for touch screens */
|
|
176
334
|
readonly touchUI: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
335
|
+
/** `date` — `Date` values, `string` — strings in `dateFormat` */
|
|
177
336
|
readonly dataType: import("@angular/core").InputSignal<TxDatePickerDataType>;
|
|
337
|
+
/** Between dates in `multiple` mode; `,` */
|
|
178
338
|
readonly multipleSeparator: import("@angular/core").InputSignal<string>;
|
|
339
|
+
/** Between the start and the end; `-` */
|
|
179
340
|
readonly rangeSeparator: import("@angular/core").InputSignal<string>;
|
|
341
|
+
/** Two-digit years up to this one are this century (`+10` = ten years ahead) */
|
|
180
342
|
readonly shortYearCutoff: import("@angular/core").InputSignal<string | number>;
|
|
343
|
+
/** `small`, `medium` or `large` */
|
|
181
344
|
readonly size: import("@angular/core").InputSignal<TxDatePickerSize>;
|
|
345
|
+
/** `outlined` or `filled` */
|
|
182
346
|
readonly variant: import("@angular/core").InputSignal<TxDatePickerVariant>;
|
|
347
|
+
/** Takes the full width (also inside `<tx-fluid>`) */
|
|
183
348
|
readonly fluid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
349
|
+
/** Marks the field invalid; also taken from the form control */
|
|
184
350
|
readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
351
|
+
/** Disables the field */
|
|
185
352
|
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
353
|
+
/** Shows the value without changes */
|
|
186
354
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
355
|
+
/** Sets `required` on the input */
|
|
187
356
|
readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
};
|
|
192
|
-
panel: {
|
|
193
|
-
background: string;
|
|
194
|
-
borderColor: string;
|
|
195
|
-
color: string;
|
|
196
|
-
borderRadius: string;
|
|
197
|
-
shadow: string;
|
|
198
|
-
padding: string;
|
|
199
|
-
};
|
|
200
|
-
header: {
|
|
201
|
-
background: string;
|
|
202
|
-
borderColor: string;
|
|
203
|
-
color: string;
|
|
204
|
-
padding: string;
|
|
205
|
-
};
|
|
206
|
-
title: {
|
|
207
|
-
gap: string;
|
|
208
|
-
fontWeight: string;
|
|
209
|
-
fontSize: string;
|
|
210
|
-
};
|
|
211
|
-
dropdown: {
|
|
212
|
-
width: string;
|
|
213
|
-
sm: {
|
|
214
|
-
width: string;
|
|
215
|
-
};
|
|
216
|
-
lg: {
|
|
217
|
-
width: string;
|
|
218
|
-
};
|
|
219
|
-
background: string;
|
|
220
|
-
hoverBackground: string;
|
|
221
|
-
activeBackground: string;
|
|
222
|
-
borderColor: string;
|
|
223
|
-
hoverBorderColor: string;
|
|
224
|
-
activeBorderColor: string;
|
|
225
|
-
color: string;
|
|
226
|
-
hoverColor: string;
|
|
227
|
-
activeColor: string;
|
|
228
|
-
borderRadius: string;
|
|
229
|
-
focusRing: {
|
|
230
|
-
width: string;
|
|
231
|
-
style: string;
|
|
232
|
-
color: string;
|
|
233
|
-
offset: string;
|
|
234
|
-
shadow: string;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
inputIcon: {
|
|
238
|
-
color: string;
|
|
239
|
-
};
|
|
240
|
-
selectMonth: {
|
|
241
|
-
hoverBackground: string;
|
|
242
|
-
color: string;
|
|
243
|
-
hoverColor: string;
|
|
244
|
-
padding: string;
|
|
245
|
-
borderRadius: string;
|
|
246
|
-
fontWeight: string;
|
|
247
|
-
fontSize: string;
|
|
248
|
-
};
|
|
249
|
-
selectYear: {
|
|
250
|
-
hoverBackground: string;
|
|
251
|
-
color: string;
|
|
252
|
-
hoverColor: string;
|
|
253
|
-
padding: string;
|
|
254
|
-
borderRadius: string;
|
|
255
|
-
fontWeight: string;
|
|
256
|
-
fontSize: string;
|
|
257
|
-
};
|
|
258
|
-
group: {
|
|
259
|
-
borderColor: string;
|
|
260
|
-
gap: string;
|
|
261
|
-
};
|
|
262
|
-
dayView: {
|
|
263
|
-
margin: string;
|
|
264
|
-
};
|
|
265
|
-
weekDay: {
|
|
266
|
-
padding: string;
|
|
267
|
-
fontWeight: string;
|
|
268
|
-
fontSize: string;
|
|
269
|
-
color: string;
|
|
270
|
-
};
|
|
271
|
-
weekNumber: {
|
|
272
|
-
color: string;
|
|
273
|
-
fontSize: string;
|
|
274
|
-
};
|
|
275
|
-
date: {
|
|
276
|
-
fontWeight: string;
|
|
277
|
-
fontSize: string;
|
|
278
|
-
hoverBackground: string;
|
|
279
|
-
selectedBackground: string;
|
|
280
|
-
rangeSelectedBackground: string;
|
|
281
|
-
color: string;
|
|
282
|
-
hoverColor: string;
|
|
283
|
-
selectedColor: string;
|
|
284
|
-
rangeSelectedColor: string;
|
|
285
|
-
disabledOpacity: string;
|
|
286
|
-
width: string;
|
|
287
|
-
height: string;
|
|
288
|
-
borderRadius: string;
|
|
289
|
-
padding: string;
|
|
290
|
-
focusRing: {
|
|
291
|
-
width: string;
|
|
292
|
-
style: string;
|
|
293
|
-
color: string;
|
|
294
|
-
offset: string;
|
|
295
|
-
shadow: string;
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
monthView: {
|
|
299
|
-
margin: string;
|
|
300
|
-
};
|
|
301
|
-
month: {
|
|
302
|
-
padding: string;
|
|
303
|
-
borderRadius: string;
|
|
304
|
-
};
|
|
305
|
-
yearView: {
|
|
306
|
-
margin: string;
|
|
307
|
-
};
|
|
308
|
-
year: {
|
|
309
|
-
padding: string;
|
|
310
|
-
borderRadius: string;
|
|
311
|
-
};
|
|
312
|
-
buttonbar: {
|
|
313
|
-
padding: string;
|
|
314
|
-
borderColor: string;
|
|
315
|
-
};
|
|
316
|
-
timePicker: {
|
|
317
|
-
padding: string;
|
|
318
|
-
borderColor: string;
|
|
319
|
-
gap: string;
|
|
320
|
-
buttonGap: string;
|
|
321
|
-
color: string;
|
|
322
|
-
fontWeight: string;
|
|
323
|
-
fontSize: string;
|
|
324
|
-
};
|
|
325
|
-
today: {
|
|
326
|
-
background: string;
|
|
327
|
-
color: string;
|
|
328
|
-
};
|
|
329
|
-
touch: {
|
|
330
|
-
maskBackground: string;
|
|
331
|
-
width: string;
|
|
332
|
-
};
|
|
333
|
-
}> | undefined>;
|
|
357
|
+
/** Design tokens of this instance (`datePicker`) */
|
|
358
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraDatePickerTokens> | undefined>;
|
|
359
|
+
/** Classes and styles of the parts: `root`, `input`, `dropdown`, `inputIcon`, `clear`, `panel`, `header`, `title`, `previous`, `next`, `selectMonth`, `selectYear`, `calendar`, `table`, `weekday`, `weekNumber`, `day`, `monthView`, `month`, `yearView`, `year`, `timePicker`, `buttonbar` */
|
|
334
360
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxDatePickerPart, import("@tectra-ng/core/config").TxPassThroughValue<TxDatePicker>>> | undefined>;
|
|
361
|
+
/** How `pt` merges with the global pass-through */
|
|
335
362
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
363
|
+
/** Removes the tectra styles */
|
|
336
364
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
365
|
+
/** A date was picked in the calendar */
|
|
337
366
|
readonly selected: import("@angular/core").OutputEmitterRef<Date>;
|
|
367
|
+
/** The value was cleared */
|
|
338
368
|
readonly cleared: import("@angular/core").OutputEmitterRef<void>;
|
|
369
|
+
/** The Today button was clicked */
|
|
339
370
|
readonly todayClicked: import("@angular/core").OutputEmitterRef<Date>;
|
|
371
|
+
/** The Clear button was clicked */
|
|
340
372
|
readonly clearClicked: import("@angular/core").OutputEmitterRef<void>;
|
|
373
|
+
/** The calendar moved to another month: `{ month, year }` (month 1–12) */
|
|
341
374
|
readonly monthChange: import("@angular/core").OutputEmitterRef<TxDatePickerMonthChangeEvent>;
|
|
375
|
+
/** The calendar moved to another year */
|
|
342
376
|
readonly yearChange: import("@angular/core").OutputEmitterRef<TxDatePickerMonthChangeEvent>;
|
|
377
|
+
/** The panel opened */
|
|
343
378
|
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
379
|
+
/** The panel closed */
|
|
344
380
|
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
381
|
+
/** The field got focus */
|
|
345
382
|
readonly focused: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
383
|
+
/** The field lost focus */
|
|
346
384
|
readonly blurred: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
385
|
+
/** The text in the field changed */
|
|
347
386
|
readonly typed: import("@angular/core").OutputEmitterRef<string>;
|
|
348
387
|
protected readonly dateTemplate: import("@angular/core").Signal<TxDatePickerDate | undefined>;
|
|
349
388
|
protected readonly headerTemplate: import("@angular/core").Signal<TxDatePickerHeader | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-datepicker.d.ts","names":[],"sources":["../../../../packages/ui/datepicker/src/calendar.ts","../../../../packages/ui/datepicker/src/datepicker.types.ts","../../../../packages/ui/datepicker/src/datepicker.templates.ts","../../../../packages/ui/datepicker/src/date-format.ts","../../../../packages/ui/datepicker/src/datepicker.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-datepicker.d.ts","names":[],"sources":["../../../../packages/ui/datepicker/src/calendar.ts","../../../../packages/ui/datepicker/src/datepicker.types.ts","../../../../packages/ui/datepicker/src/datepicker.templates.ts","../../../../packages/ui/datepicker/src/date-format.ts","../../../../packages/ui/datepicker/src/datepicker.component.ts"],"mappings":";;;;;;;;;iBACiB;;EAEf,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA,MAAM;;;iBAIS;;EAEf;;EAEA;;EAEA,OAAO;;;iBAIQ;;EAEf,UAAU;;EAEV,UAAU;;EAEV,yBAAyB;;EAEzB;;;wBAIc,WAAW,MAAM,OAAO;;wBAKxB,QAAQ,GAAG,yBAAyB,GAAG;;;;wBAOvC,YAAY,GAAG,MAAM,GAAG;;wBAKxB,QAAQ,MAAM,MAAM,eAAe;;;;wBASnC,UAAU,MAAM,MAAM,iBAAiB;;wBAOvC,aAAa,MAAM,MAAM,OAAO;;wBAShC,kBAAkB,cAAc,eAAe,OAA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