@tectra-ng/ui 0.3.2 → 0.4.1
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/README.md +2 -2
- 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 +4 -4
- 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
|
@@ -3,42 +3,74 @@ import { TemplateRef } from "@angular/core";
|
|
|
3
3
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
4
4
|
import { TxSwapEffect } from "@tectra-ng/core/utils";
|
|
5
5
|
import { TxIconName } from "@tectra-ng/icons";
|
|
6
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
6
|
+
import { TectraCarouselTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
7
|
+
/** Direction the items move: `horizontal` or `vertical`. */
|
|
7
8
|
export type TxCarouselOrientation = 'horizontal' | 'vertical';
|
|
9
|
+
/** Names of the parts of `tx-carousel` that `pt` can style. */
|
|
8
10
|
export type TxCarouselPart = 'root' | 'header' | 'content' | 'viewport' | 'track' | 'item' | 'navigator' | 'indicators' | 'indicator' | 'footer';
|
|
11
|
+
/** How many items show and scroll while the window is at most `breakpoint` wide. */
|
|
9
12
|
export interface TxCarouselResponsiveOption {
|
|
13
|
+
/** Largest window width this option applies to, as a CSS length such as `768px`. */
|
|
10
14
|
breakpoint: string;
|
|
15
|
+
/** Number of items shown at once. */
|
|
11
16
|
numVisible: number;
|
|
17
|
+
/** Number of items one step moves; the `numScroll` of the carousel when not set. */
|
|
12
18
|
numScroll?: number;
|
|
13
19
|
}
|
|
20
|
+
/** Context of the `txCarouselItem` template. */
|
|
14
21
|
export interface TxCarouselItemContext<T = unknown> {
|
|
22
|
+
/** The item, so `let-item` works. */
|
|
15
23
|
$implicit: T;
|
|
24
|
+
/** Position of the item in `value`. */
|
|
16
25
|
index: number;
|
|
26
|
+
/** Whether the item is on the visible page. */
|
|
17
27
|
active: boolean;
|
|
18
28
|
}
|
|
29
|
+
/** Context of the `txCarouselIndicator` template. */
|
|
19
30
|
export interface TxCarouselIndicatorContext {
|
|
31
|
+
/** Index of the page the indicator stands for. */
|
|
20
32
|
$implicit: number;
|
|
33
|
+
/** Whether this is the current page. */
|
|
21
34
|
active: boolean;
|
|
22
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* `<ng-template txCarouselItem let-item let-index="index" let-active="active">` — one item; `active` is true while it is visible
|
|
38
|
+
* @see https://tectra-ng.com/components/carousel
|
|
39
|
+
*/
|
|
23
40
|
export declare class TxCarouselItemTemplate {
|
|
24
41
|
readonly template: TemplateRef<TxCarouselItemContext<unknown>>;
|
|
25
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxCarouselItemTemplate, never>;
|
|
26
43
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxCarouselItemTemplate, "ng-template[txCarouselItem]", never, {}, {}, never, never, true, never>;
|
|
27
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* `<ng-template txCarouselIndicator let-page let-active="active">` — content of a page indicator
|
|
47
|
+
* @see https://tectra-ng.com/components/carousel
|
|
48
|
+
*/
|
|
28
49
|
export declare class TxCarouselIndicatorTemplate {
|
|
29
50
|
readonly template: TemplateRef<TxCarouselIndicatorContext>;
|
|
30
51
|
static ngTemplateContextGuard(_directive: TxCarouselIndicatorTemplate, context: unknown): context is TxCarouselIndicatorContext;
|
|
31
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxCarouselIndicatorTemplate, never>;
|
|
32
53
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxCarouselIndicatorTemplate, "ng-template[txCarouselIndicator]", never, {}, {}, never, never, true, never>;
|
|
33
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Content above the carousel
|
|
57
|
+
* @see https://tectra-ng.com/components/carousel
|
|
58
|
+
*/
|
|
34
59
|
export declare class TxCarouselHeader {
|
|
35
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxCarouselHeader, never>;
|
|
36
61
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxCarouselHeader, "[txCarouselHeader]", never, {}, {}, never, never, true, never>;
|
|
37
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Content below the carousel
|
|
65
|
+
* @see https://tectra-ng.com/components/carousel
|
|
66
|
+
*/
|
|
38
67
|
export declare class TxCarouselFooter {
|
|
39
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxCarouselFooter, never>;
|
|
40
69
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxCarouselFooter, "[txCarouselFooter]", never, {}, {}, never, never, true, never>;
|
|
41
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Shows a list of items a few at a time and pages through them with buttons, indicators, swipes or autoplay.
|
|
73
|
+
*/
|
|
42
74
|
export declare class TxCarousel {
|
|
43
75
|
private readonly carouselTheme;
|
|
44
76
|
private document;
|
|
@@ -49,51 +81,47 @@ export declare class TxCarousel {
|
|
|
49
81
|
private swapToken;
|
|
50
82
|
private swapStarted;
|
|
51
83
|
private suppressClick;
|
|
84
|
+
/** Items to show */
|
|
52
85
|
readonly value: import("@angular/core").InputSignal<readonly unknown[] | null | undefined>;
|
|
86
|
+
/** Index of the current page; two-way with `[(page)]` */
|
|
53
87
|
readonly page: import("@angular/core").ModelSignal<number>;
|
|
88
|
+
/** Number of items shown at once */
|
|
54
89
|
readonly numVisible: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
90
|
+
/** Number of items one step moves */
|
|
55
91
|
readonly numScroll: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
92
|
+
/** `numVisible` and `numScroll` per `breakpoint` (max width of the window), for example `[{ breakpoint: '768px', numVisible: 1 }]` */
|
|
56
93
|
readonly responsiveOptions: import("@angular/core").InputSignal<TxCarouselResponsiveOption[] | undefined>;
|
|
94
|
+
/** `horizontal` or `vertical` */
|
|
57
95
|
readonly orientation: import("@angular/core").InputSignal<TxCarouselOrientation>;
|
|
96
|
+
/** Height of the visible area in vertical orientation */
|
|
58
97
|
readonly verticalViewPortHeight: import("@angular/core").InputSignal<string>;
|
|
98
|
+
/** The last page goes on to the first and back */
|
|
59
99
|
readonly circular: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
100
|
+
/** Milliseconds between automatic steps; `0` turns autoplay off. Autoplay pauses on hover and focus and stops after a manual step */
|
|
60
101
|
readonly autoplayInterval: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
102
|
+
/** Shows the page indicators */
|
|
61
103
|
readonly showIndicators: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
104
|
+
/** Shows the previous and next buttons */
|
|
62
105
|
readonly showNavigators: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
106
|
+
/** Pages with a swipe or a mouse drag */
|
|
63
107
|
readonly swipe: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
108
|
+
/** How a page replaces the previous one: `slide` (default) moves the strip; `fade`, `zoom`, `blur` and `flip` let the visible items leave and the next ones arrive; `none` jumps */
|
|
64
109
|
readonly effect: import("@angular/core").InputSignal<TxSwapEffect>;
|
|
110
|
+
/** Icon of the previous button; a chevron that follows the orientation by default */
|
|
65
111
|
readonly prevIcon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
|
|
112
|
+
/** Icon of the next button */
|
|
66
113
|
readonly nextIcon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
|
|
114
|
+
/** Accessible name of the carousel */
|
|
67
115
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
116
|
+
/** Id of the element that names the carousel */
|
|
68
117
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
slideDuration: string;
|
|
73
|
-
slideEasing: string;
|
|
74
|
-
};
|
|
75
|
-
content: {
|
|
76
|
-
gap: string;
|
|
77
|
-
};
|
|
78
|
-
indicatorList: {
|
|
79
|
-
padding: string;
|
|
80
|
-
gap: string;
|
|
81
|
-
};
|
|
82
|
-
indicator: {
|
|
83
|
-
width: string;
|
|
84
|
-
height: string;
|
|
85
|
-
hitArea: string;
|
|
86
|
-
borderRadius: string;
|
|
87
|
-
background: string;
|
|
88
|
-
hoverBackground: string;
|
|
89
|
-
activeBackground: string;
|
|
90
|
-
focusRingWidth: string;
|
|
91
|
-
focusRingColor: string;
|
|
92
|
-
focusRingOffset: string;
|
|
93
|
-
};
|
|
94
|
-
}> | undefined>;
|
|
118
|
+
/** Design tokens of this instance (`carousel`) */
|
|
119
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraCarouselTokens> | undefined>;
|
|
120
|
+
/** Classes and styles of the parts: `root`, `header`, `content`, `viewport`, `track`, `item`, `navigator`, `indicators`, `indicator`, `footer` */
|
|
95
121
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxCarouselPart, import("@tectra-ng/core/config").TxPassThroughValue<TxCarousel>>> | undefined>;
|
|
122
|
+
/** How `pt` merges with the global pass-through */
|
|
96
123
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
124
|
+
/** Removes the tectra styles */
|
|
97
125
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
98
126
|
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
99
127
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-carousel.d.ts","names":[],"sources":["../../../../packages/ui/carousel/src/carousel.types.ts","../../../../packages/ui/carousel/src/carousel.templates.ts","../../../../packages/ui/carousel/src/carousel.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-carousel.d.ts","names":[],"sources":["../../../../packages/ui/carousel/src/carousel.types.ts","../../../../packages/ui/carousel/src/carousel.templates.ts","../../../../packages/ui/carousel/src/carousel.component.ts"],"mappings":";;;;;;;YACY;;YAGA;;iBAGK;;EAEf;;EAEA;;EAEA;;;iBAIe,sBAAsB;;EAErC,WAAW;;EAEX;;EAEA;;;iBAIe;;EAEf;;EAEA;;;;;;qBC3BW;WACF,UAAQ,YAAA;SADN,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBAKA;WACF,UAAQ,YAAA;SAEV,uBAAuB,YAAY,6BAA6B,mBAAmB,WAAW;SAH1F,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBASA;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBAGA;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;qBC2DA;mBACM;UAET;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;WAEC,+BAAK;;WACL,8BAAI;;WACJ,oCAAU;;WACV,mCAAS;;WACT,2CAAiB,YAAA;;WACjB,qCAAW,YAAA;;WACX,gDAAsB;;WACtB,kCAAQ;;WACR,0CAAgB;;WAChB,wCAAc;;WACd,wCAAc;;WACd,+BAAK;;WACL,gCAAM,YAAA;;WACN,kCAAQ,YAAA;;WACR,kCAAQ,YAAA;;WACR,mCAAS;;WACT,wCAAc;;WACd,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,iDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,iDAAA;WACX,mCAAS;;;qBAEC,sCAAY,OAAA;qBACZ,2CAAiB,OAAA;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";
|
|
5
5
|
import { TxFormControlBase } from "@tectra-ng/core/forms";
|
|
6
6
|
import { TxPlacement } from "@tectra-ng/core/overlay";
|
|
7
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
7
|
+
import { TectraCascadeSelectTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
8
8
|
import { TxFieldVariant, TxSelectSize } from "@tectra-ng/ui/select";
|
|
9
|
+
/** Names of the parts of `tx-cascade-select` that `pt` can style. */
|
|
9
10
|
export type TxCascadeSelectPart = 'root' | 'box' | 'trigger' | 'value' | 'clear' | 'dropdown' | 'panel' | 'column' | 'option' | 'empty';
|
|
11
|
+
/** One row of a column of `tx-cascade-select`: an option or a group with its state. */
|
|
10
12
|
export interface TxCascadeItem {
|
|
13
|
+
/** Element id of the row, unique in the tree. */
|
|
11
14
|
id: string;
|
|
15
|
+
/** Text of the row. */
|
|
12
16
|
label: string;
|
|
17
|
+
/** Value of the option; `null` for a group. */
|
|
13
18
|
value: unknown;
|
|
19
|
+
/** The source option or group object. */
|
|
14
20
|
option: unknown;
|
|
21
|
+
/** Depth of the column, 0 for the first. */
|
|
15
22
|
level: number;
|
|
23
|
+
/** Position of the row in its column. */
|
|
16
24
|
index: number;
|
|
25
|
+
/** Whether the row opens a next column. */
|
|
17
26
|
group: boolean;
|
|
27
|
+
/** Whether the row cannot be picked. */
|
|
18
28
|
disabled: boolean;
|
|
29
|
+
/** Whether this option is the current value. */
|
|
19
30
|
selected: boolean;
|
|
31
|
+
/** Whether the row is on the path of opened groups. */
|
|
20
32
|
onPath: boolean;
|
|
21
33
|
}
|
|
34
|
+
/** Payload of `changed`: the picked option and the groups above it. */
|
|
22
35
|
export interface TxCascadeSelectChangeEvent {
|
|
36
|
+
/** The new value; `null` when cleared. */
|
|
23
37
|
value: unknown;
|
|
38
|
+
/** The picked option object; `null` when cleared. */
|
|
24
39
|
option: unknown;
|
|
40
|
+
/** The groups and the option that lead to the pick, from the top. */
|
|
25
41
|
path: unknown[];
|
|
26
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Pick a value through nested groups shown as columns — country → region → city, category → subcategory → item. The next column opens on hover or with ArrowRight; only leaves are values. Works with `[formControl]`, `ngModel` and signal forms.
|
|
45
|
+
* @see https://tectra-ng.com/components/cascade-select
|
|
46
|
+
*/
|
|
27
47
|
export declare class TxCascadeSelect extends TxFormControlBase<unknown> {
|
|
28
48
|
private readonly cascadeSelectTheme;
|
|
49
|
+
/** Top-level groups (or items) */
|
|
29
50
|
readonly options: import("@angular/core").InputSignal<readonly unknown[]>;
|
|
51
|
+
/** Field of a leaf shown as its text */
|
|
30
52
|
readonly optionLabel: import("@angular/core").InputSignal<string>;
|
|
53
|
+
/** Field of a leaf written into the value; empty string = the whole leaf */
|
|
31
54
|
readonly optionValue: import("@angular/core").InputSignal<string>;
|
|
55
|
+
/** Field that disables an item or a group */
|
|
32
56
|
readonly optionDisabled: import("@angular/core").InputSignal<string>;
|
|
57
|
+
/** Field of a group shown as its text */
|
|
33
58
|
readonly optionGroupLabel: import("@angular/core").InputSignal<string>;
|
|
59
|
+
/** Field with the children of a group, or one field per level (`['regions', 'cities']`) */
|
|
34
60
|
readonly optionGroupChildren: import("@angular/core").InputSignal<string | readonly string[]>;
|
|
61
|
+
/** Field that identifies an object value */
|
|
35
62
|
readonly dataKey: import("@angular/core").InputSignal<string | undefined>;
|
|
63
|
+
/** The field shows the whole path, e.g. "Poland / Masovia / Warsaw" */
|
|
36
64
|
readonly showPath: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
65
|
+
/** Text between the parts of the path */
|
|
37
66
|
readonly pathSeparator: import("@angular/core").InputSignal<string>;
|
|
67
|
+
/** Text shown while nothing is selected */
|
|
38
68
|
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
69
|
+
/** Button that clears the value */
|
|
39
70
|
readonly showClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
71
|
+
/** Text of an empty list */
|
|
40
72
|
readonly emptyMessage: import("@angular/core").InputSignal<string | undefined>;
|
|
73
|
+
/** Id of the field for a `<label for>` */
|
|
41
74
|
readonly inputId: import("@angular/core").InputSignal<string | undefined>;
|
|
75
|
+
/** Accessible name of the field and the tree */
|
|
42
76
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
77
|
+
/** Id of the element that labels the field */
|
|
43
78
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
79
|
+
/** `small`, `medium`, `large` */
|
|
44
80
|
readonly size: import("@angular/core").InputSignal<TxSelectSize>;
|
|
81
|
+
/** `outlined` or `filled` */
|
|
45
82
|
readonly variant: import("@angular/core").InputSignal<TxFieldVariant>;
|
|
83
|
+
/** Red border and `aria-invalid`; follows the form control by default */
|
|
46
84
|
readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
85
|
+
/** Shows the value, does not open */
|
|
47
86
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
columnBorderColor: string;
|
|
52
|
-
groupIconColor: string;
|
|
53
|
-
};
|
|
54
|
-
}> | undefined>;
|
|
87
|
+
/** Design tokens of this instance (`cascadeSelect`; options use the `select` tokens) */
|
|
88
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraCascadeSelectTokens> | undefined>;
|
|
89
|
+
/** Classes and styles of the parts: `root`, `box`, `trigger`, `value`, `clear`, `dropdown`, `panel`, `column`, `option`, `empty` */
|
|
55
90
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxCascadeSelectPart, import("@tectra-ng/core/config").TxPassThroughValue<TxCascadeSelect>>> | undefined>;
|
|
91
|
+
/** How `pt` merges with the global pass-through */
|
|
56
92
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
93
|
+
/** Removes the tectra styles */
|
|
57
94
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
95
|
+
/** A leaf was picked or the value cleared: `{ value, option, path }` (`path` holds the groups and the leaf) */
|
|
58
96
|
readonly changed: import("@angular/core").OutputEmitterRef<TxCascadeSelectChangeEvent>;
|
|
97
|
+
/** The panel was opened */
|
|
59
98
|
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
99
|
+
/** The panel was closed (the control is marked as touched) */
|
|
60
100
|
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
61
101
|
readonly box: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
62
102
|
readonly trigger: import("@angular/core").Signal<ElementRef<HTMLButtonElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-cascade-select.d.ts","names":[],"sources":["../../../../packages/ui/cascade-select/src/cascade-select.types.ts","../../../../packages/ui/cascade-select/src/cascade-select.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-cascade-select.d.ts","names":[],"sources":["../../../../packages/ui/cascade-select/src/cascade-select.types.ts","../../../../packages/ui/cascade-select/src/cascade-select.component.ts"],"mappings":";;;;;;;;;YACY;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;;;;qBC8BW,wBAAwB;mBAClB;;WAER,iCAAO;;WACP,qCAAW;;WACX,qCAAW;;WACX,wCAAc;;WACd,0CAAgB;;WAChB,6CAAmB;;WACnB,iCAAO;;WACP,kCAAQ;;WACR,uCAAa;;WACb,qCAAW;;WACX,mCAAS;;WACT,sCAAY;;WACZ,iCAAO;;WACP,mCAAS;;WACT,wCAAc;;WACd,8BAAI,YAAA;;WACJ,iCAAO,YAAA;;WACP,iCAAO;;WACP,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,sDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,i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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;IAAA"}
|
|
@@ -3,126 +3,125 @@ import { ElementRef, InjectionToken, Signal, TemplateRef } from "@angular/core";
|
|
|
3
3
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
4
4
|
import { TxFormControlBase } from "@tectra-ng/core/forms";
|
|
5
5
|
import { TxIconName } from "@tectra-ng/icons";
|
|
6
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
6
|
+
import { TectraCheckboxTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
7
|
+
/** Size of a checkbox: `small`, `medium` or `large`. */
|
|
7
8
|
export type TxCheckboxSize = 'small' | 'medium' | 'large';
|
|
9
|
+
/** Look of the box: `outlined` or `filled`. */
|
|
8
10
|
export type TxCheckboxVariant = 'outlined' | 'filled';
|
|
11
|
+
/** Names of the parts of `tx-checkbox` that `pt` can style. */
|
|
9
12
|
export type TxCheckboxPart = 'root' | 'box' | 'input' | 'icon' | 'label' | 'description';
|
|
13
|
+
/** Names of the parts of `tx-checkbox-group` that `pt` can style. */
|
|
10
14
|
export type TxCheckboxGroupPart = 'root' | 'selectAll' | 'items';
|
|
15
|
+
/** Direction the checkboxes of a group line up: `vertical` or `horizontal`. */
|
|
11
16
|
export type TxCheckboxGroupOrientation = 'vertical' | 'horizontal';
|
|
17
|
+
/** Payload of `changed`: the new state, the value written to the model and the DOM event. */
|
|
12
18
|
export interface TxCheckboxChangeEvent {
|
|
19
|
+
/** Whether the checkbox is now checked. */
|
|
13
20
|
checked: boolean;
|
|
21
|
+
/** The new model value: the true or false value, or the updated list of values in a group. */
|
|
14
22
|
value: unknown;
|
|
23
|
+
/** The DOM event that caused the change. */
|
|
15
24
|
originalEvent: Event;
|
|
16
25
|
}
|
|
26
|
+
/** Context of the custom check icon template. */
|
|
17
27
|
export interface TxCheckboxIconContext {
|
|
28
|
+
/** Whether the checkbox is checked. */
|
|
18
29
|
$implicit: boolean;
|
|
30
|
+
/** Whether the checkbox shows the mixed state. */
|
|
19
31
|
indeterminate: boolean;
|
|
20
32
|
}
|
|
33
|
+
/** What a checkbox needs from the `tx-checkbox-group` around it. */
|
|
21
34
|
export interface TxCheckboxGroupContext {
|
|
35
|
+
/** Shared `name` of the checkboxes. */
|
|
22
36
|
readonly name: Signal<string | undefined>;
|
|
37
|
+
/** Whether the whole group is disabled. */
|
|
23
38
|
readonly isDisabled: Signal<boolean>;
|
|
39
|
+
/** Whether the group shows the invalid state. */
|
|
24
40
|
readonly isInvalid: Signal<boolean>;
|
|
41
|
+
/** Size the group gives to its checkboxes. */
|
|
25
42
|
readonly size: Signal<TxCheckboxSize | undefined>;
|
|
43
|
+
/** Look the group gives to its checkboxes. */
|
|
26
44
|
readonly variant: Signal<TxCheckboxVariant | undefined>;
|
|
45
|
+
/** Tells whether the value is among the checked ones. */
|
|
27
46
|
isChecked(value: unknown): boolean;
|
|
47
|
+
/** Adds the value to the checked ones or removes it. */
|
|
28
48
|
toggle(value: unknown, checked: boolean): void;
|
|
49
|
+
/** Tells the group about a checkbox value, for "select all"; returns a function that withdraws it. */
|
|
29
50
|
register(value: unknown): () => void;
|
|
51
|
+
/** Marks the group as touched, as a blur does. */
|
|
30
52
|
touch(): void;
|
|
31
53
|
}
|
|
54
|
+
/** Lets a checkbox read its `tx-checkbox-group`: the shared name, state and the list of checked values. */
|
|
32
55
|
export declare const TX_CHECKBOX_GROUP: InjectionToken<TxCheckboxGroupContext>;
|
|
56
|
+
/**
|
|
57
|
+
* `<ng-template txCheckboxIcon let-checked let-indeterminate="indeterminate">` — own indicator icon
|
|
58
|
+
* @see https://tectra-ng.com/components/checkbox
|
|
59
|
+
*/
|
|
33
60
|
export declare class TxCheckboxIconTemplate {
|
|
34
61
|
readonly templateRef: TemplateRef<TxCheckboxIconContext>;
|
|
35
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxCheckboxIconTemplate, never>;
|
|
36
63
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxCheckboxIconTemplate, "ng-template[txCheckboxIcon]", never, {}, {}, never, never, true, never>;
|
|
37
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* A checkbox on a native `<input type="checkbox">`: one boolean, a value in an array, or a group with "select all". Space toggles, the label toggles, screen readers hear the native control.
|
|
67
|
+
* @see https://tectra-ng.com/components/checkbox
|
|
68
|
+
*/
|
|
38
69
|
export declare class TxCheckbox extends TxFormControlBase<unknown> {
|
|
39
70
|
private readonly checkboxTheme;
|
|
40
71
|
private txIconRegistry;
|
|
41
72
|
private group;
|
|
42
73
|
private generatedId;
|
|
74
|
+
/** Text of the label; content inside the tag is added after it */
|
|
43
75
|
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
76
|
+
/** Muted text under the label, linked with `aria-describedby` */
|
|
44
77
|
readonly description: import("@angular/core").InputSignal<string | undefined>;
|
|
78
|
+
/** Value added to the array when checked (group / array mode) */
|
|
45
79
|
readonly optionValue: import("@angular/core").InputSignal<unknown>;
|
|
80
|
+
/** Forces binary mode even with a `value` */
|
|
46
81
|
readonly binary: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
82
|
+
/** Binary mode: model value when checked */
|
|
47
83
|
readonly trueValue: import("@angular/core").InputSignal<unknown>;
|
|
84
|
+
/** Binary mode: model value when not checked */
|
|
48
85
|
readonly falseValue: import("@angular/core").InputSignal<unknown>;
|
|
86
|
+
/** Mixed state (`aria-checked="mixed"`); clears on the next click */
|
|
49
87
|
readonly indeterminate: import("@angular/core").ModelSignal<boolean>;
|
|
88
|
+
/** Icon of the checked state */
|
|
50
89
|
readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
|
|
90
|
+
/** Icon of the mixed state */
|
|
51
91
|
readonly indeterminateIcon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
|
|
92
|
+
/** `small`, `medium`, `large` (inherits the group) */
|
|
52
93
|
readonly size: import("@angular/core").InputSignal<TxCheckboxSize | undefined>;
|
|
94
|
+
/** `outlined` or `filled` (inherits the group) */
|
|
53
95
|
readonly variant: import("@angular/core").InputSignal<TxCheckboxVariant | undefined>;
|
|
96
|
+
/** Option tile look: the whole card toggles, with a border and a checked background */
|
|
54
97
|
readonly tile: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
98
|
+
/** Red border; without it the checkbox follows its form control */
|
|
55
99
|
readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
100
|
+
/** Disables the checkbox (also from the form control or the group) */
|
|
56
101
|
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
102
|
+
/** Shows the value, ignores clicks */
|
|
57
103
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
104
|
+
/** Native `required` */
|
|
58
105
|
readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
106
|
+
/** Native `name` (inherits the group) */
|
|
59
107
|
readonly name: import("@angular/core").InputSignal<string | undefined>;
|
|
108
|
+
/** Id of the native input, for an outside `<label for>` */
|
|
60
109
|
readonly inputId: import("@angular/core").InputSignal<string | undefined>;
|
|
110
|
+
/** Accessible name when there is no visible label */
|
|
61
111
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
112
|
+
/** Id of the element that names the checkbox */
|
|
62
113
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
114
|
+
/** Tab order of the native input */
|
|
63
115
|
readonly tabindex: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
borderRadius: string;
|
|
68
|
-
borderWidth: string;
|
|
69
|
-
borderColor: string;
|
|
70
|
-
hoverBorderColor: string;
|
|
71
|
-
background: string;
|
|
72
|
-
filledBackground: string;
|
|
73
|
-
checkedBackground: string;
|
|
74
|
-
checkedBorderColor: string;
|
|
75
|
-
checkedHoverBackground: string;
|
|
76
|
-
checkedHoverBorderColor: string;
|
|
77
|
-
iconColor: string;
|
|
78
|
-
iconSize: string;
|
|
79
|
-
invalidBorderColor: string;
|
|
80
|
-
disabledBackground: string;
|
|
81
|
-
disabledBorderColor: string;
|
|
82
|
-
disabledCheckedBackground: string;
|
|
83
|
-
disabledIconColor: string;
|
|
84
|
-
focusRingColor: string;
|
|
85
|
-
focusRingWidth: string;
|
|
86
|
-
focusRingOffset: string;
|
|
87
|
-
gap: string;
|
|
88
|
-
labelColor: string;
|
|
89
|
-
labelFontSize: string;
|
|
90
|
-
labelFontWeight: string;
|
|
91
|
-
disabledLabelColor: string;
|
|
92
|
-
descriptionColor: string;
|
|
93
|
-
descriptionFontSize: string;
|
|
94
|
-
transitionDuration: string;
|
|
95
|
-
};
|
|
96
|
-
sm: {
|
|
97
|
-
size: string;
|
|
98
|
-
iconSize: string;
|
|
99
|
-
labelFontSize: string;
|
|
100
|
-
};
|
|
101
|
-
lg: {
|
|
102
|
-
size: string;
|
|
103
|
-
iconSize: string;
|
|
104
|
-
labelFontSize: string;
|
|
105
|
-
};
|
|
106
|
-
tile: {
|
|
107
|
-
padding: string;
|
|
108
|
-
gap: string;
|
|
109
|
-
borderRadius: string;
|
|
110
|
-
borderColor: string;
|
|
111
|
-
hoverBorderColor: string;
|
|
112
|
-
background: string;
|
|
113
|
-
checkedBorderColor: string;
|
|
114
|
-
checkedBackground: string;
|
|
115
|
-
labelFontWeight: string;
|
|
116
|
-
};
|
|
117
|
-
group: {
|
|
118
|
-
gap: string;
|
|
119
|
-
horizontalGap: string;
|
|
120
|
-
selectAllGap: string;
|
|
121
|
-
};
|
|
122
|
-
}> | undefined>;
|
|
116
|
+
/** Design tokens of this instance (`checkbox`) */
|
|
117
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraCheckboxTokens> | undefined>;
|
|
118
|
+
/** Classes and styles of the parts: `root`, `box`, `input`, `icon`, `label`, `description`; group: `root`, `selectAll`, `items` */
|
|
123
119
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxCheckboxPart, import("@tectra-ng/core/config").TxPassThroughValue<TxCheckbox>>> | undefined>;
|
|
120
|
+
/** How `pt` merges with the global pass-through */
|
|
124
121
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
122
|
+
/** Removes the tectra styles, keeps the native input */
|
|
125
123
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
124
|
+
/** Checkbox: `{ checked, value, originalEvent }` after a toggle; group: the new array */
|
|
126
125
|
readonly changed: import("@angular/core").OutputEmitterRef<TxCheckboxChangeEvent>;
|
|
127
126
|
readonly iconTemplate: import("@angular/core").Signal<TxCheckboxIconTemplate | undefined>;
|
|
128
127
|
readonly inputRef: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
@@ -282,81 +281,42 @@ export declare class TxCheckbox extends TxFormControlBase<unknown> {
|
|
|
282
281
|
"changed": "changed";
|
|
283
282
|
}, ["iconTemplate"], ["*"], true, never>;
|
|
284
283
|
}
|
|
284
|
+
/**
|
|
285
|
+
* A checkbox on a native `<input type="checkbox">`: one boolean, a value in an array, or a group with "select all". Space toggles, the label toggles, screen readers hear the native control.
|
|
286
|
+
* @see https://tectra-ng.com/components/checkbox
|
|
287
|
+
*/
|
|
285
288
|
export declare class TxCheckboxGroup extends TxFormControlBase<unknown[]> {
|
|
286
289
|
private readonly checkboxTheme;
|
|
287
290
|
private readonly registered;
|
|
291
|
+
/** adds a "select all" checkbox above, mixed when some are checked */
|
|
288
292
|
readonly selectAll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
293
|
+
/** text of "select all" (translated by default) */
|
|
289
294
|
readonly selectAllLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
295
|
+
/** `vertical` or `horizontal` */
|
|
290
296
|
readonly orientation: import("@angular/core").InputSignal<TxCheckboxGroupOrientation>;
|
|
297
|
+
/** Native `name` (inherits the group) */
|
|
291
298
|
readonly name: import("@angular/core").InputSignal<string | undefined>;
|
|
299
|
+
/** `small`, `medium`, `large` (inherits the group) */
|
|
292
300
|
readonly size: import("@angular/core").InputSignal<TxCheckboxSize | undefined>;
|
|
301
|
+
/** `outlined` or `filled` (inherits the group) */
|
|
293
302
|
readonly variant: import("@angular/core").InputSignal<TxCheckboxVariant | undefined>;
|
|
303
|
+
/** Red border; without it the checkbox follows its form control */
|
|
294
304
|
readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
305
|
+
/** Disables the checkbox (also from the form control or the group) */
|
|
295
306
|
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
307
|
+
/** Accessible name when there is no visible label */
|
|
296
308
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
309
|
+
/** Id of the element that names the checkbox */
|
|
297
310
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
borderRadius: string;
|
|
302
|
-
borderWidth: string;
|
|
303
|
-
borderColor: string;
|
|
304
|
-
hoverBorderColor: string;
|
|
305
|
-
background: string;
|
|
306
|
-
filledBackground: string;
|
|
307
|
-
checkedBackground: string;
|
|
308
|
-
checkedBorderColor: string;
|
|
309
|
-
checkedHoverBackground: string;
|
|
310
|
-
checkedHoverBorderColor: string;
|
|
311
|
-
iconColor: string;
|
|
312
|
-
iconSize: string;
|
|
313
|
-
invalidBorderColor: string;
|
|
314
|
-
disabledBackground: string;
|
|
315
|
-
disabledBorderColor: string;
|
|
316
|
-
disabledCheckedBackground: string;
|
|
317
|
-
disabledIconColor: string;
|
|
318
|
-
focusRingColor: string;
|
|
319
|
-
focusRingWidth: string;
|
|
320
|
-
focusRingOffset: string;
|
|
321
|
-
gap: string;
|
|
322
|
-
labelColor: string;
|
|
323
|
-
labelFontSize: string;
|
|
324
|
-
labelFontWeight: string;
|
|
325
|
-
disabledLabelColor: string;
|
|
326
|
-
descriptionColor: string;
|
|
327
|
-
descriptionFontSize: string;
|
|
328
|
-
transitionDuration: string;
|
|
329
|
-
};
|
|
330
|
-
sm: {
|
|
331
|
-
size: string;
|
|
332
|
-
iconSize: string;
|
|
333
|
-
labelFontSize: string;
|
|
334
|
-
};
|
|
335
|
-
lg: {
|
|
336
|
-
size: string;
|
|
337
|
-
iconSize: string;
|
|
338
|
-
labelFontSize: string;
|
|
339
|
-
};
|
|
340
|
-
tile: {
|
|
341
|
-
padding: string;
|
|
342
|
-
gap: string;
|
|
343
|
-
borderRadius: string;
|
|
344
|
-
borderColor: string;
|
|
345
|
-
hoverBorderColor: string;
|
|
346
|
-
background: string;
|
|
347
|
-
checkedBorderColor: string;
|
|
348
|
-
checkedBackground: string;
|
|
349
|
-
labelFontWeight: string;
|
|
350
|
-
};
|
|
351
|
-
group: {
|
|
352
|
-
gap: string;
|
|
353
|
-
horizontalGap: string;
|
|
354
|
-
selectAllGap: string;
|
|
355
|
-
};
|
|
356
|
-
}> | undefined>;
|
|
311
|
+
/** Design tokens of this instance (`checkbox`) */
|
|
312
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraCheckboxTokens> | undefined>;
|
|
313
|
+
/** Classes and styles of the parts: `root`, `box`, `input`, `icon`, `label`, `description`; group: `root`, `selectAll`, `items` */
|
|
357
314
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxCheckboxGroupPart, import("@tectra-ng/core/config").TxPassThroughValue<TxCheckboxGroup>>> | undefined>;
|
|
315
|
+
/** How `pt` merges with the global pass-through */
|
|
358
316
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
317
|
+
/** Removes the tectra styles, keeps the native input */
|
|
359
318
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
319
|
+
/** Checkbox: `{ checked, value, originalEvent }` after a toggle; group: the new array */
|
|
360
320
|
readonly changed: import("@angular/core").OutputEmitterRef<unknown[]>;
|
|
361
321
|
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
362
322
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-checkbox.d.ts","names":[],"sources":["../../../../packages/ui/checkbox/src/checkbox.types.ts","../../../../packages/ui/checkbox/src/checkbox-group.token.ts","../../../../packages/ui/checkbox/src/checkbox-templates.directive.ts","../../../../packages/ui/checkbox/src/checkbox.component.ts","../../../../packages/ui/checkbox/src/checkbox-group.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-checkbox.d.ts","names":[],"sources":["../../../../packages/ui/checkbox/src/checkbox.types.ts","../../../../packages/ui/checkbox/src/checkbox-group.token.ts","../../../../packages/ui/checkbox/src/checkbox-templates.directive.ts","../../../../packages/ui/checkbox/src/checkbox.component.ts","../../../../packages/ui/checkbox/src/checkbox-group.component.ts"],"mappings":";;;;;;;YACY;;YAEA;;YAEA;;YAEA;;YAEA;;iBAGK;;EAEf;;EAEA;;EAEA,eAAe;;;iBAIA;;EAEf;;EAEA;;;iBCtBe;;WAEN,MAAM;;WAEN,YAAY;;WAEZ,WAAW;;WAEX,MAAM,OAAO;;WAEb,SAAS,OAAO;;EAEzB,UAAU;;EAEV,OAAO,gBAAgB;;EAEvB,SAAS;;EAET;;;qBAIW,mBAAiB,eAAA;;;;;qBCtBjB;WACF,aAAW,YAAA;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBCiDA,mBAAmB;mBACb;UAET;UACA;UACA;;WAEC,+BAAK;;WACL,qCAAW;;WAEX,qCAAW;;WACX,gCAAM;;WACN,mCAAS;;WACT,oCAAU;;WACV,uCAAa;;WACb,8BAAI,YAAA;;WACJ,2CAAiB,YAAA;;WACjB,8BAAI,YAAA;;WACJ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