@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
|
@@ -2,125 +2,70 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { TemplateRef } from "@angular/core";
|
|
3
3
|
import { TxPassThroughOptions, TxValidationMessages } from "@tectra-ng/core/config";
|
|
4
4
|
import { TxIconName } from "@tectra-ng/icons";
|
|
5
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
5
|
+
import { TectraDeepPartial, TectraFieldMessageTokens, TectraMessageTokens } from "@tectra-ng/themes";
|
|
6
6
|
import { AbstractControl } from "@angular/forms";
|
|
7
|
+
/** Color role of `tx-message`. */
|
|
7
8
|
export type TxMessageSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'help' | 'contrast';
|
|
9
|
+
/** Size of `tx-message`. */
|
|
8
10
|
export type TxMessageSize = 'small' | 'medium' | 'large';
|
|
11
|
+
/** Look of `tx-message`: outlined, text only or simple. */
|
|
9
12
|
export type TxMessageVariant = 'outlined' | 'text' | 'simple';
|
|
13
|
+
/** Parts of `tx-message` that `pt` can style. */
|
|
10
14
|
export type TxMessagePart = 'root' | 'icon' | 'content' | 'closeButton';
|
|
15
|
+
/** Tone of a field hint: neutral (`secondary`) or `success`. */
|
|
11
16
|
export type TxFieldHintSeverity = 'secondary' | 'success';
|
|
17
|
+
/** Parts of a field hint or error that `pt` can style. */
|
|
12
18
|
export type TxFieldMessagePart = 'root' | 'icon' | 'text';
|
|
19
|
+
/**
|
|
20
|
+
* `<ng-template txMessageIcon>` — own icon
|
|
21
|
+
* @see https://tectra-ng.com/components/message
|
|
22
|
+
*/
|
|
13
23
|
export declare class TxMessageIconTemplate {
|
|
14
24
|
readonly templateRef: TemplateRef<any>;
|
|
15
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxMessageIconTemplate, never>;
|
|
16
26
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxMessageIconTemplate, "ng-template[txMessageIcon]", never, {}, {}, never, never, true, never>;
|
|
17
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* `<ng-template txMessageCloseIcon>` — own close icon
|
|
30
|
+
* @see https://tectra-ng.com/components/message
|
|
31
|
+
*/
|
|
18
32
|
export declare class TxMessageCloseIconTemplate {
|
|
19
33
|
readonly templateRef: TemplateRef<any>;
|
|
20
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxMessageCloseIconTemplate, never>;
|
|
21
35
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxMessageCloseIconTemplate, "ng-template[txMessageCloseIcon]", never, {}, {}, never, never, true, never>;
|
|
22
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Inline feedback. `<tx-message>` is a box with a severity, an optional icon and a close button — for notices on a page or inside a form. `<tx-field-hint>` and `<tx-field-error>` sit under a field: a help text, and the first validation error of a form control with built-in texts in every locale.
|
|
39
|
+
* @see https://tectra-ng.com/components/message
|
|
40
|
+
*/
|
|
23
41
|
export declare class TxMessage {
|
|
24
42
|
private readonly messageTheme;
|
|
25
43
|
private txIconRegistry;
|
|
44
|
+
/** `primary`, `secondary`, `success`, `info`, `warn`, `danger`, `help`, `contrast`. `tx-field-hint`: `secondary` or `success` */
|
|
26
45
|
readonly severity: import("@angular/core").InputSignal<TxMessageSeverity>;
|
|
46
|
+
/** the text; without it the content is shown */
|
|
27
47
|
readonly text: import("@angular/core").InputSignal<string | undefined>;
|
|
48
|
+
/** Icon name (`exclamation-triangle`, also `pi-exclamation-triangle`) or an icon class; no icon by default */
|
|
28
49
|
readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
|
|
50
|
+
/** `small`, `medium`, `large` */
|
|
29
51
|
readonly size: import("@angular/core").InputSignal<TxMessageSize>;
|
|
52
|
+
/** tinted box by default, `outlined` without the fill, `text` without the box, `simple` without the box and padding */
|
|
30
53
|
readonly variant: import("@angular/core").InputSignal<TxMessageVariant | undefined>;
|
|
54
|
+
/** shows a close button */
|
|
31
55
|
readonly closable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
56
|
+
/** icon of the close button */
|
|
32
57
|
readonly closeIcon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
|
|
58
|
+
/** closes itself after this many milliseconds */
|
|
33
59
|
readonly life: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
borderColor: string;
|
|
38
|
-
borderTint: string;
|
|
39
|
-
borderWidth: string;
|
|
40
|
-
outlinedBorderWidth: string;
|
|
41
|
-
background: string;
|
|
42
|
-
backgroundTint: string;
|
|
43
|
-
color: string;
|
|
44
|
-
gap: string;
|
|
45
|
-
paddingY: string;
|
|
46
|
-
paddingStart: string;
|
|
47
|
-
paddingEnd: string;
|
|
48
|
-
fontSize: string;
|
|
49
|
-
fontWeight: string;
|
|
50
|
-
lineHeight: string;
|
|
51
|
-
accentWidth: string;
|
|
52
|
-
transitionDuration: string;
|
|
53
|
-
};
|
|
54
|
-
icon: {
|
|
55
|
-
size: string;
|
|
56
|
-
fontSize: string;
|
|
57
|
-
tint: string;
|
|
58
|
-
};
|
|
59
|
-
closeButton: {
|
|
60
|
-
size: string;
|
|
61
|
-
borderRadius: string;
|
|
62
|
-
color: string;
|
|
63
|
-
hoverColor: string;
|
|
64
|
-
hoverBackground: string;
|
|
65
|
-
fontSize: string;
|
|
66
|
-
focusRingWidth: string;
|
|
67
|
-
focusRingOffset: string;
|
|
68
|
-
focusRingShadow: string;
|
|
69
|
-
};
|
|
70
|
-
sm: {
|
|
71
|
-
gap: string;
|
|
72
|
-
paddingY: string;
|
|
73
|
-
paddingStart: string;
|
|
74
|
-
paddingEnd: string;
|
|
75
|
-
fontSize: string;
|
|
76
|
-
iconSize: string;
|
|
77
|
-
iconFontSize: string;
|
|
78
|
-
};
|
|
79
|
-
lg: {
|
|
80
|
-
gap: string;
|
|
81
|
-
paddingY: string;
|
|
82
|
-
paddingStart: string;
|
|
83
|
-
paddingEnd: string;
|
|
84
|
-
fontSize: string;
|
|
85
|
-
iconSize: string;
|
|
86
|
-
iconFontSize: string;
|
|
87
|
-
};
|
|
88
|
-
primary: {
|
|
89
|
-
tone: string;
|
|
90
|
-
text: string;
|
|
91
|
-
};
|
|
92
|
-
info: {
|
|
93
|
-
tone: string;
|
|
94
|
-
text: string;
|
|
95
|
-
};
|
|
96
|
-
success: {
|
|
97
|
-
tone: string;
|
|
98
|
-
text: string;
|
|
99
|
-
};
|
|
100
|
-
warn: {
|
|
101
|
-
tone: string;
|
|
102
|
-
text: string;
|
|
103
|
-
};
|
|
104
|
-
danger: {
|
|
105
|
-
tone: string;
|
|
106
|
-
text: string;
|
|
107
|
-
};
|
|
108
|
-
help: {
|
|
109
|
-
tone: string;
|
|
110
|
-
text: string;
|
|
111
|
-
};
|
|
112
|
-
secondary: {
|
|
113
|
-
tone: string;
|
|
114
|
-
text: string;
|
|
115
|
-
};
|
|
116
|
-
contrast: {
|
|
117
|
-
tone: string;
|
|
118
|
-
text: string;
|
|
119
|
-
};
|
|
120
|
-
}> | undefined>;
|
|
60
|
+
/** Design tokens of this instance (`message` or `fieldMessage`) */
|
|
61
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraMessageTokens> | undefined>;
|
|
62
|
+
/** Classes and styles of the parts: `root`, `icon`, `content`, `closeButton` (message); `root`, `icon`, `text` (hint, error) */
|
|
121
63
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxMessagePart, import("@tectra-ng/core/config").TxPassThroughValue<TxMessage>>> | undefined>;
|
|
64
|
+
/** How `pt` merges with the global pass-through */
|
|
122
65
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
66
|
+
/** Removes the tectra styles, keeps behaviour and ARIA */
|
|
123
67
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
68
|
+
/** closed by the button or after `life` — fires when the leave animation ends, so removing the message here keeps the animation */
|
|
124
69
|
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
125
70
|
readonly iconTemplate: import("@angular/core").Signal<TxMessageIconTemplate | undefined>;
|
|
126
71
|
readonly closeIconTemplate: import("@angular/core").Signal<TxMessageCloseIconTemplate | undefined>;
|
|
@@ -207,35 +152,28 @@ export declare class TxMessage {
|
|
|
207
152
|
"closed": "closed";
|
|
208
153
|
}, ["iconTemplate", "closeIconTemplate"], ["*"], true, never>;
|
|
209
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* Inline feedback. `<tx-message>` is a box with a severity, an optional icon and a close button — for notices on a page or inside a form. `<tx-field-hint>` and `<tx-field-error>` sit under a field: a help text, and the first validation error of a form control with built-in texts in every locale.
|
|
157
|
+
* @see https://tectra-ng.com/components/message
|
|
158
|
+
*/
|
|
210
159
|
export declare class TxFieldHint {
|
|
211
160
|
private readonly messageTheme;
|
|
212
161
|
private txIconRegistry;
|
|
213
162
|
private generatedId;
|
|
163
|
+
/** `tx-field-hint`, `tx-field-error`: id of the field; adds this text to its `aria-describedby` */
|
|
214
164
|
readonly for: import("@angular/core").InputSignal<string | undefined>;
|
|
165
|
+
/** `tx-field-hint`, `tx-field-error`: own id instead of a generated one */
|
|
215
166
|
readonly id: import("@angular/core").InputSignal<string | undefined>;
|
|
216
167
|
readonly severity: import("@angular/core").InputSignal<TxFieldHintSeverity>;
|
|
168
|
+
/** Icon name (`exclamation-triangle`, also `pi-exclamation-triangle`) or an icon class; no icon by default */
|
|
217
169
|
readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
lineHeight: string;
|
|
222
|
-
gap: string;
|
|
223
|
-
marginTop: string;
|
|
224
|
-
iconSize: string;
|
|
225
|
-
transitionDuration: string;
|
|
226
|
-
};
|
|
227
|
-
hint: {
|
|
228
|
-
color: string;
|
|
229
|
-
};
|
|
230
|
-
success: {
|
|
231
|
-
color: string;
|
|
232
|
-
};
|
|
233
|
-
error: {
|
|
234
|
-
color: string;
|
|
235
|
-
};
|
|
236
|
-
}> | undefined>;
|
|
170
|
+
/** Design tokens of this instance (`message` or `fieldMessage`) */
|
|
171
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraFieldMessageTokens> | undefined>;
|
|
172
|
+
/** Classes and styles of the parts: `root`, `icon`, `content`, `closeButton` (message); `root`, `icon`, `text` (hint, error) */
|
|
237
173
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxFieldMessagePart, import("@tectra-ng/core/config").TxPassThroughValue<TxFieldHint>>> | undefined>;
|
|
174
|
+
/** How `pt` merges with the global pass-through */
|
|
238
175
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
176
|
+
/** Removes the tectra styles, keeps behaviour and ARIA */
|
|
239
177
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
240
178
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
241
179
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxFieldMessagePart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -289,40 +227,37 @@ export declare class TxFieldHint {
|
|
|
289
227
|
};
|
|
290
228
|
}, {}, never, ["*"], true, never>;
|
|
291
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* Inline feedback. `<tx-message>` is a box with a severity, an optional icon and a close button — for notices on a page or inside a form. `<tx-field-hint>` and `<tx-field-error>` sit under a field: a help text, and the first validation error of a form control with built-in texts in every locale.
|
|
232
|
+
* @see https://tectra-ng.com/components/message
|
|
233
|
+
*/
|
|
292
234
|
export declare class TxFieldError {
|
|
293
235
|
private readonly messageTheme;
|
|
294
236
|
private generatedId;
|
|
295
237
|
private globalMessages;
|
|
296
238
|
private translations;
|
|
297
239
|
private readonly version;
|
|
240
|
+
/** the form control whose errors are shown (`formControl`, a group's control, or `ngModel.control`) */
|
|
298
241
|
readonly control: import("@angular/core").InputSignal<AbstractControl<any, any, any> | undefined>;
|
|
242
|
+
/** an error from outside the form (e.g. the server) — shown as is, before the control's errors */
|
|
299
243
|
readonly errorText: import("@angular/core").InputSignal<string | undefined>;
|
|
244
|
+
/** shows the error before the control is touched or changed */
|
|
300
245
|
readonly showImmediately: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
246
|
+
/** text shown when the control has a valid value and was touched or changed */
|
|
301
247
|
readonly successText: import("@angular/core").InputSignal<string | undefined>;
|
|
248
|
+
/** own texts per error key — a string with `{param}` or a function of the error */
|
|
302
249
|
readonly messages: import("@angular/core").InputSignal<TxValidationMessages | undefined>;
|
|
250
|
+
/** `tx-field-hint`, `tx-field-error`: id of the field; adds this text to its `aria-describedby` */
|
|
303
251
|
readonly for: import("@angular/core").InputSignal<string | undefined>;
|
|
252
|
+
/** `tx-field-hint`, `tx-field-error`: own id instead of a generated one */
|
|
304
253
|
readonly id: import("@angular/core").InputSignal<string | undefined>;
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
lineHeight: string;
|
|
309
|
-
gap: string;
|
|
310
|
-
marginTop: string;
|
|
311
|
-
iconSize: string;
|
|
312
|
-
transitionDuration: string;
|
|
313
|
-
};
|
|
314
|
-
hint: {
|
|
315
|
-
color: string;
|
|
316
|
-
};
|
|
317
|
-
success: {
|
|
318
|
-
color: string;
|
|
319
|
-
};
|
|
320
|
-
error: {
|
|
321
|
-
color: string;
|
|
322
|
-
};
|
|
323
|
-
}> | undefined>;
|
|
254
|
+
/** Design tokens of this instance (`message` or `fieldMessage`) */
|
|
255
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraFieldMessageTokens> | undefined>;
|
|
256
|
+
/** Classes and styles of the parts: `root`, `icon`, `content`, `closeButton` (message); `root`, `icon`, `text` (hint, error) */
|
|
324
257
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxFieldMessagePart, import("@tectra-ng/core/config").TxPassThroughValue<TxFieldError>>> | undefined>;
|
|
258
|
+
/** How `pt` merges with the global pass-through */
|
|
325
259
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
260
|
+
/** Removes the tectra styles, keeps behaviour and ARIA */
|
|
326
261
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
327
262
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
328
263
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxFieldMessagePart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-message.d.ts","names":[],"sources":["../../../../packages/ui/message/src/message.types.ts","../../../../packages/ui/message/src/message-templates.directive.ts","../../../../packages/ui/message/src/message.component.ts","../../../../packages/ui/message/src/field-hint.component.ts","../../../../packages/ui/message/src/field-error.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-message.d.ts","names":[],"sources":["../../../../packages/ui/message/src/message.types.ts","../../../../packages/ui/message/src/message-templates.directive.ts","../../../../packages/ui/message/src/message.component.ts","../../../../packages/ui/message/src/field-hint.component.ts","../../../../packages/ui/message/src/field-error.component.ts"],"mappings":"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"}
|
|
@@ -1,197 +1,208 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { TemplateRef } from "@angular/core";
|
|
3
3
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
4
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
4
|
+
import { TectraDeepPartial, TectraMonthCalendarTokens } from "@tectra-ng/themes";
|
|
5
|
+
/** Color role of an event, marker or dot in `tx-month-calendar`. */
|
|
5
6
|
export type TxMonthCalendarTone = 'primary' | 'info' | 'success' | 'warn' | 'danger' | 'neutral';
|
|
7
|
+
/** A day given as a `Date` or a string such as `2025-03-14`; a plain `YYYY-MM-DD` string is read in local time. */
|
|
6
8
|
export type TxMonthCalendarDateInput = Date | string;
|
|
9
|
+
/** Parts of `tx-month-calendar` that `pt` can style. */
|
|
7
10
|
export type TxMonthCalendarPart = 'root' | 'grid' | 'head' | 'weekday' | 'week' | 'cell' | 'day' | 'number' | 'marker' | 'event' | 'more';
|
|
11
|
+
/** Avatar of an event: an image, or a name to show initials from. */
|
|
8
12
|
export interface TxMonthCalendarAvatar {
|
|
13
|
+
/** Address of the avatar image. */
|
|
9
14
|
src?: string | null;
|
|
15
|
+
/** Name used for the initials and the accessible text when there is no image. */
|
|
10
16
|
name?: string | null;
|
|
11
17
|
}
|
|
18
|
+
/** An event on `tx-month-calendar`; with an `end` it spans several days. */
|
|
12
19
|
export interface TxMonthCalendarEvent<TData = unknown> {
|
|
20
|
+
/** Unique id of the event. */
|
|
13
21
|
id: string;
|
|
22
|
+
/** First day of the event. */
|
|
14
23
|
start: TxMonthCalendarDateInput;
|
|
24
|
+
/** Last day of the event, inclusive; a one-day event when empty. */
|
|
15
25
|
end?: TxMonthCalendarDateInput | null;
|
|
26
|
+
/** Text of the event. */
|
|
16
27
|
title: string;
|
|
28
|
+
/** Color of the event. */
|
|
17
29
|
tone: TxMonthCalendarTone;
|
|
30
|
+
/** Avatar shown before the title. */
|
|
18
31
|
avatar?: TxMonthCalendarAvatar | null;
|
|
32
|
+
/** Your own data, passed back in events and templates. */
|
|
19
33
|
data?: TData;
|
|
20
34
|
}
|
|
35
|
+
/** A pill in the header of one day, such as a holiday or a deadline; a dot in the compact grid. */
|
|
21
36
|
export interface TxMonthCalendarMarker {
|
|
37
|
+
/** Day of the marker. */
|
|
22
38
|
date: TxMonthCalendarDateInput;
|
|
39
|
+
/** Color of the marker. */
|
|
23
40
|
tone: TxMonthCalendarTone;
|
|
41
|
+
/** Text of the marker pill in the day header. */
|
|
24
42
|
label: string;
|
|
43
|
+
/** Icon name shown in the pill. */
|
|
25
44
|
icon?: string;
|
|
26
45
|
}
|
|
46
|
+
/** Texts of `tx-month-calendar`. */
|
|
27
47
|
export interface TxMonthCalendarLabels {
|
|
48
|
+
/** Text of the "more" button with a `{count}` placeholder. */
|
|
28
49
|
more: string;
|
|
50
|
+
/** Word added to the accessible name of today. */
|
|
29
51
|
today: string;
|
|
52
|
+
/** Accessible name of the calendar grid. */
|
|
30
53
|
region: string;
|
|
31
54
|
}
|
|
55
|
+
/** One day cell of the laid out month. */
|
|
32
56
|
export interface TxMonthCalendarDay {
|
|
57
|
+
/** Day as `YYYY-MM-DD`. */
|
|
33
58
|
key: string;
|
|
59
|
+
/** Day as a local `Date`. */
|
|
34
60
|
date: Date;
|
|
61
|
+
/** Day number from `dayIndex`. */
|
|
35
62
|
index: number;
|
|
63
|
+
/** Day of the month, 1 to 31. */
|
|
36
64
|
day: number;
|
|
65
|
+
/** Grid column of the day within its week, 1 to 7. */
|
|
37
66
|
column: number;
|
|
67
|
+
/** `false` for days of the neighboring months shown to fill the weeks. */
|
|
38
68
|
inMonth: boolean;
|
|
69
|
+
/** `true` for Saturday and Sunday. */
|
|
39
70
|
weekend: boolean;
|
|
71
|
+
/** `true` for the current day. */
|
|
40
72
|
today: boolean;
|
|
73
|
+
/** `true` for the selected day. */
|
|
41
74
|
selected: boolean;
|
|
75
|
+
/** Markers on this day. */
|
|
42
76
|
markers: TxMonthCalendarMarker[];
|
|
77
|
+
/** All events that cover this day. */
|
|
43
78
|
events: TxMonthCalendarEvent[];
|
|
79
|
+
/** Tones of the first three events, shown as dots in compact cells. */
|
|
44
80
|
dots: TxMonthCalendarTone[];
|
|
81
|
+
/** Number of events of this day that did not fit into the lanes. */
|
|
45
82
|
hidden: number;
|
|
46
83
|
}
|
|
84
|
+
/** The part of an event inside one week, drawn as one bar. */
|
|
47
85
|
export interface TxMonthCalendarSegment {
|
|
86
|
+
/** Unique key of the segment: event id and week. */
|
|
48
87
|
key: string;
|
|
88
|
+
/** The event the bar belongs to. */
|
|
49
89
|
event: TxMonthCalendarEvent;
|
|
90
|
+
/** Row of the bar below the day number, starting at 0. */
|
|
50
91
|
lane: number;
|
|
92
|
+
/** First grid column of the bar, 1 to 7. */
|
|
51
93
|
column: number;
|
|
94
|
+
/** Number of days the bar covers in this week. */
|
|
52
95
|
span: number;
|
|
96
|
+
/** `true` when the event begins in this week, so the bar has a rounded start. */
|
|
53
97
|
startsHere: boolean;
|
|
98
|
+
/** `true` when the event ends in this week, so the bar has a rounded end. */
|
|
54
99
|
endsHere: boolean;
|
|
55
100
|
}
|
|
101
|
+
/** One row of the laid out month. */
|
|
56
102
|
export interface TxMonthCalendarWeek {
|
|
103
|
+
/** First day of the week as `YYYY-MM-DD`. */
|
|
57
104
|
key: string;
|
|
105
|
+
/** The seven days of the week. */
|
|
58
106
|
days: TxMonthCalendarDay[];
|
|
107
|
+
/** Event bars of the week that fit into the lanes. */
|
|
59
108
|
segments: TxMonthCalendarSegment[];
|
|
60
109
|
}
|
|
110
|
+
/** A column heading of the calendar. */
|
|
61
111
|
export interface TxMonthCalendarWeekday {
|
|
112
|
+
/** Weekday number, 0 for Sunday to 6 for Saturday. */
|
|
62
113
|
key: number;
|
|
114
|
+
/** Short weekday name in the locale. */
|
|
63
115
|
short: string;
|
|
116
|
+
/** Narrow weekday name in the locale, used in small widths. */
|
|
64
117
|
narrow: string;
|
|
118
|
+
/** `true` for Saturday and Sunday. */
|
|
65
119
|
weekend: boolean;
|
|
66
120
|
}
|
|
121
|
+
/** Context of a `txMonthCalendarEvent` template: one event bar. */
|
|
67
122
|
export interface TxMonthCalendarEventContext {
|
|
123
|
+
/** The event to render. */
|
|
68
124
|
$implicit: TxMonthCalendarEvent;
|
|
125
|
+
/** The event to render. */
|
|
69
126
|
event: TxMonthCalendarEvent;
|
|
127
|
+
/** The bar being drawn, with its place in the week. */
|
|
70
128
|
segment: TxMonthCalendarSegment;
|
|
71
129
|
}
|
|
130
|
+
/** Input of `buildMonthLayout`. */
|
|
72
131
|
export interface TxMonthCalendarLayoutRequest {
|
|
132
|
+
/** Any date inside the month to lay out. */
|
|
73
133
|
month: Date;
|
|
134
|
+
/** Events to place. */
|
|
74
135
|
events: readonly TxMonthCalendarEvent[];
|
|
136
|
+
/** Markers to place. */
|
|
75
137
|
markers: readonly TxMonthCalendarMarker[];
|
|
138
|
+
/** Day to mark as selected; `null` for none. */
|
|
76
139
|
selectedDate: TxMonthCalendarDateInput | null;
|
|
140
|
+
/** Day to mark as today. */
|
|
77
141
|
today: Date;
|
|
142
|
+
/** First weekday of a week: 0 for Sunday to 6 for Saturday. */
|
|
78
143
|
weekStartsOn: number;
|
|
144
|
+
/** Most event rows per week; further events are counted in `hidden`. */
|
|
79
145
|
maxLanes: number;
|
|
80
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* `<ng-template txMonthCalendarEvent let-event let-segment="segment">` — content of a bar; `segment` has `lane`, `column`, `span`, `startsHere`, `endsHere`
|
|
149
|
+
* @see https://tectra-ng.com/components/month-calendar
|
|
150
|
+
*/
|
|
81
151
|
export declare class TxMonthCalendarEventTemplate {
|
|
82
152
|
readonly templateRef: TemplateRef<TxMonthCalendarEventContext>;
|
|
83
153
|
static ngTemplateContextGuard(_directive: TxMonthCalendarEventTemplate, context: unknown): context is TxMonthCalendarEventContext;
|
|
84
154
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxMonthCalendarEventTemplate, never>;
|
|
85
155
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxMonthCalendarEventTemplate, "ng-template[txMonthCalendarEvent]", never, {}, {}, never, never, true, never>;
|
|
86
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Converts a date to a whole day number (days since 1970-01-01, local calendar day); `null` when empty
|
|
159
|
+
* or invalid.
|
|
160
|
+
*/
|
|
87
161
|
export declare function dayIndex(value: TxMonthCalendarDateInput | null | undefined): number | null;
|
|
162
|
+
/** Converts a day number from `dayIndex` back to a local `Date` at midnight. */
|
|
88
163
|
export declare function indexToDate(index: number): Date;
|
|
164
|
+
/** Lays out a month as weeks of days, with multi-day events as lane-packed segments and a count of hidden ones. */
|
|
89
165
|
export declare function buildMonthLayout(request: TxMonthCalendarLayoutRequest): TxMonthCalendarWeek[];
|
|
166
|
+
/** Lists the seven weekday headings starting at the given weekday, with short and narrow names in the locale. */
|
|
90
167
|
export declare function monthWeekdays(weekStartsOn: number, locale: string): TxMonthCalendarWeekday[];
|
|
168
|
+
/**
|
|
169
|
+
* A month grid that draws events as continuous bars across days, with day markers, a `+N` link for the events that do not fit and keyboard navigation. Give it events and markers, handle day and event clicks — for schedules, deadlines, shifts or bookings. Below 560px of its own width it turns into a compact grid with coloured dots.
|
|
170
|
+
* @see https://tectra-ng.com/components/month-calendar
|
|
171
|
+
*/
|
|
91
172
|
export declare class TxMonthCalendar {
|
|
92
173
|
private readonly monthCalendarTheme;
|
|
93
174
|
private host;
|
|
94
175
|
private localeService;
|
|
95
176
|
private readonly createdAt;
|
|
177
|
+
/** Any date inside the month to show; the month of creation by default */
|
|
96
178
|
readonly month: import("@angular/core").InputSignal<Date | undefined>;
|
|
179
|
+
/** Bars: `{ id, start, end?, title, tone, avatar?, data? }`; `start` / `end` are `Date` or `'yyyy-MM-dd'` (local days), `end` is the inclusive last day; `tone` is `primary`, `info`, `success`, `warn`, `danger` or `neutral`; `avatar` `{ src?, name? }` shows at the start of the bar */
|
|
97
180
|
readonly events: import("@angular/core").InputSignal<readonly TxMonthCalendarEvent<unknown>[]>;
|
|
181
|
+
/** Pills in a day header (a dot in the compact grid): `{ date, tone, label, icon? }` */
|
|
98
182
|
readonly markers: import("@angular/core").InputSignal<readonly TxMonthCalendarMarker[]>;
|
|
183
|
+
/** Highlighted day: a `Date` or `'yyyy-MM-dd'`; it gets the keyboard focus */
|
|
99
184
|
readonly selectedDate: import("@angular/core").InputSignal<TxMonthCalendarDateInput | null>;
|
|
185
|
+
/** First day of the week: 0 Sunday … 6 Saturday; locale default */
|
|
100
186
|
readonly weekStartsOn: import("@angular/core").InputSignal<number | undefined>;
|
|
187
|
+
/** Bar rows per week; the rest goes to the `+N` link of the day */
|
|
101
188
|
readonly maxLanes: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
189
|
+
/** Own texts `{ more, today, region }`: `more` with a `{count}` placeholder, `today` added to the name of today, `region` the name of the grid; translated by default */
|
|
102
190
|
readonly labels: import("@angular/core").InputSignal<Partial<TxMonthCalendarLabels>>;
|
|
191
|
+
/** BCP 47 locale for weekday names and day names; the kit locale by default */
|
|
103
192
|
readonly locale: import("@angular/core").InputSignal<string | undefined>;
|
|
193
|
+
/** The day treated as today (the day of creation by default); pass it from a clock if the page stays open over midnight */
|
|
104
194
|
readonly today: import("@angular/core").InputSignal<Date | undefined>;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
borderColor: string;
|
|
109
|
-
borderRadius: string;
|
|
110
|
-
transitionDuration: string;
|
|
111
|
-
};
|
|
112
|
-
head: {
|
|
113
|
-
background: string;
|
|
114
|
-
};
|
|
115
|
-
weekday: {
|
|
116
|
-
padding: string;
|
|
117
|
-
widePaddingX: string;
|
|
118
|
-
color: string;
|
|
119
|
-
fontSize: string;
|
|
120
|
-
fontWeight: string;
|
|
121
|
-
weekendColor: string;
|
|
122
|
-
};
|
|
123
|
-
week: {
|
|
124
|
-
height: string;
|
|
125
|
-
headHeight: string;
|
|
126
|
-
laneHeight: string;
|
|
127
|
-
moreHeight: string;
|
|
128
|
-
};
|
|
129
|
-
cell: {
|
|
130
|
-
borderColor: string;
|
|
131
|
-
weekendBackground: string;
|
|
132
|
-
selectedBackground: string;
|
|
133
|
-
};
|
|
134
|
-
day: {
|
|
135
|
-
padding: string;
|
|
136
|
-
widePaddingX: string;
|
|
137
|
-
color: string;
|
|
138
|
-
hoverBackground: string;
|
|
139
|
-
gap: string;
|
|
140
|
-
focusRingWidth: string;
|
|
141
|
-
focusRingColor: string;
|
|
142
|
-
};
|
|
143
|
-
number: {
|
|
144
|
-
size: string;
|
|
145
|
-
fontSize: string;
|
|
146
|
-
fontWeight: string;
|
|
147
|
-
selectedColor: string;
|
|
148
|
-
selectedFontWeight: string;
|
|
149
|
-
todayBackground: string;
|
|
150
|
-
todayColor: string;
|
|
151
|
-
outsideColor: string;
|
|
152
|
-
};
|
|
153
|
-
dot: {
|
|
154
|
-
size: string;
|
|
155
|
-
gap: string;
|
|
156
|
-
bottom: string;
|
|
157
|
-
};
|
|
158
|
-
event: {
|
|
159
|
-
height: string;
|
|
160
|
-
paddingX: string;
|
|
161
|
-
gap: string;
|
|
162
|
-
inset: string;
|
|
163
|
-
borderRadius: string;
|
|
164
|
-
fontSize: string;
|
|
165
|
-
fontWeight: string;
|
|
166
|
-
backgroundMix: string;
|
|
167
|
-
hoverBackgroundMix: string;
|
|
168
|
-
textMix: string;
|
|
169
|
-
textBase: string;
|
|
170
|
-
avatarSize: string;
|
|
171
|
-
};
|
|
172
|
-
more: {
|
|
173
|
-
margin: string;
|
|
174
|
-
padding: string;
|
|
175
|
-
borderRadius: string;
|
|
176
|
-
color: string;
|
|
177
|
-
hoverColor: string;
|
|
178
|
-
hoverBackground: string;
|
|
179
|
-
fontSize: string;
|
|
180
|
-
fontWeight: string;
|
|
181
|
-
};
|
|
182
|
-
tone: {
|
|
183
|
-
primary: string;
|
|
184
|
-
info: string;
|
|
185
|
-
success: string;
|
|
186
|
-
warn: string;
|
|
187
|
-
danger: string;
|
|
188
|
-
neutral: string;
|
|
189
|
-
};
|
|
190
|
-
}> | undefined>;
|
|
195
|
+
/** Design tokens of this instance (`monthCalendar`) */
|
|
196
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraMonthCalendarTokens> | undefined>;
|
|
197
|
+
/** Classes and styles of the parts: `root`, `grid`, `head`, `weekday`, `week`, `cell`, `day`, `number`, `marker`, `event`, `more` */
|
|
191
198
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxMonthCalendarPart, import("@tectra-ng/core/config").TxPassThroughValue<TxMonthCalendar>>> | undefined>;
|
|
199
|
+
/** How `pt` merges with the global pass-through */
|
|
192
200
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
201
|
+
/** Removes the tectra styles */
|
|
193
202
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
203
|
+
/** A day or its `+N` link was clicked; the day `Date` */
|
|
194
204
|
readonly dayClick: import("@angular/core").OutputEmitterRef<Date>;
|
|
205
|
+
/** A bar was clicked; the event */
|
|
195
206
|
readonly eventClick: import("@angular/core").OutputEmitterRef<TxMonthCalendarEvent<unknown>>;
|
|
196
207
|
protected readonly eventTemplate: import("@angular/core").Signal<TxMonthCalendarEventTemplate | undefined>;
|
|
197
208
|
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-month-calendar.d.ts","names":[],"sources":["../../../../packages/ui/month-calendar/src/month-calendar.types.ts","../../../../packages/ui/month-calendar/src/month-calendar.templates.ts","../../../../packages/ui/month-calendar/src/month-calendar.layout.ts","../../../../packages/ui/month-calendar/src/month-calendar.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-month-calendar.d.ts","names":[],"sources":["../../../../packages/ui/month-calendar/src/month-calendar.types.ts","../../../../packages/ui/month-calendar/src/month-calendar.templates.ts","../../../../packages/ui/month-calendar/src/month-calendar.layout.ts","../../../../packages/ui/month-calendar/src/month-calendar.component.ts"],"mappings":";;;;;YACY;;YAGA,2BAA2B;;YAG3B;;iBAGK;;EAEf;;EAEA;;;iBAIe,qBAAqB;;EAEpC;;EAEA,OAAO;;EAEP,MAAM;;EAEN;;EAEA,MAAM;;EAEN,SAAS;;EAET,OAAO;;;iBAIQ;;EAEf,MAAM;;EAEN,MAAM;;EAEN;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,SAAS;;EAET,QAAQ;;EAER,MAAM;;EAEN;;;iBAIe;;EAEf;;EAEA,OAAO;;EAEP;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA,MAAM;;EAEN,UAAU;;;iBAIK;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf,WAAW;;EAEX,OAAO;;EAEP,SAAS;;;iBAIM;;EAEf,OAAO;;EAEP,iBAAiB;;EAEjB,kBAAkB;;EAElB,cAAc;;EAEd,OAAO;;EAEP;;EAEA;;;;;;qBCpJW;WACF,aAAW,YAAA;SAEb,uBAAuB,YAAY,8BAA8B,mBAAmB,WAAW;SAH3F,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;wBCsBG,SAAS,OAAO;;wBAWhB,YAAY,gBAAgB;;wBA6C5B,iBAAiB,SAAS,+BAA+B;;wBAiEzD,cAAc,sBAAsB,iBAAiB;;;;;qBC5GxD;mBACM;UAET;UACA;mBACS;;WAER,+BAAK,YAAA;;WACL,gCAAM,qBAAA;;WACN,iCAAO,qBAAA;;WACP,sCAAY,YAAA;;WACZ,sCAAY;;WACZ,kCAAQ;;WACR,gCAAM,YAAA,QAAA;;WACN,gCAAM;;WACN,+BAAK,YAAA;;WACL,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,sDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,kCAAQ,iBAAA;;WACR,oCAAU,iBAAA;qBAEA,uCAAa,OAAA;WAEvB,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,sDAAA;WACX,mCAAS;;;WAET,wCAAc;WACd,2CAAiB;WACjB,8BAAI,OAAA;WAIJ,kCAAQ,8CAAA;WACR,+BAAK,OAAA;mBAWG;WACR,kCAAQ;mBAKA;EAEjB,SAAS,KAAK;EAOd,UAAU;EAIV,WAAW,KAAK;EAKhB,aAAa,OAAO;EAIpB,aAAa,OAAO,eAAe,KAAK;SA7E7B,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAe;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
|