@tectra-ng/ui 0.3.2 → 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 +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
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
2
|
+
import { TectraDeepPartial, TectraStatTileTokens, TectraStatTilesTokens } from "@tectra-ng/themes";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import { Params } from "@angular/router";
|
|
5
5
|
import { TxIconName } from "@tectra-ng/icons";
|
|
6
|
+
/** Colour of the icon of a `tx-stat-tile`: `neutral`, `primary` or a severity. */
|
|
6
7
|
export type TxStatTileTone = 'neutral' | 'primary' | 'success' | 'info' | 'warn' | 'danger';
|
|
8
|
+
/** Parts of `tx-stat-tiles` that `pt` can style. */
|
|
7
9
|
export type TxStatTilesPart = 'root';
|
|
10
|
+
/** Parts of `tx-stat-tile` that `pt` can style. */
|
|
8
11
|
export type TxStatTilePart = 'root' | 'body' | 'head' | 'icon' | 'main' | 'label' | 'value' | 'unit' | 'meta' | 'aside' | 'bar' | 'barFill';
|
|
12
|
+
/** Router link of a stat tile: a path or a list of commands. */
|
|
9
13
|
export type TxStatTileCommands = string | readonly unknown[] | null | undefined;
|
|
14
|
+
/** A responsive grid of key numbers made of `tx-stat-tile` elements. */
|
|
10
15
|
export declare class TxStatTiles {
|
|
11
16
|
private readonly statTilesTheme;
|
|
17
|
+
/** `tx-stat-tiles` — narrowest column before the grid wraps; never below the `floorWidth` token (210px) unless `compact` */
|
|
12
18
|
readonly minWidth: import("@angular/core").InputSignal<string | undefined>;
|
|
19
|
+
/** `tx-stat-tiles` — tighter gap, padding, icon and value; columns down to `minWidth` */
|
|
13
20
|
readonly compact: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
/** `tx-stat-tiles` — accessible name of the list */
|
|
14
22
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
23
|
+
/** `tx-stat-tiles` — id of the element that names the list */
|
|
15
24
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
minWidth: string;
|
|
20
|
-
floorWidth: string;
|
|
21
|
-
};
|
|
22
|
-
compact: {
|
|
23
|
-
gap: string;
|
|
24
|
-
};
|
|
25
|
-
}> | undefined>;
|
|
25
|
+
/** Design tokens of this instance (`statTiles` / `statTile`) */
|
|
26
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraStatTilesTokens> | undefined>;
|
|
27
|
+
/** Classes and styles of the parts: `root` on the grid; `root`, `body`, `head`, `icon`, `main`, `label`, `value`, `unit`, `meta`, `aside`, `bar`, `barFill` on a tile */
|
|
26
28
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<"root", import("@tectra-ng/core/config").TxPassThroughValue<TxStatTiles>>> | undefined>;
|
|
29
|
+
/** How `pt` merges with the global pass-through */
|
|
27
30
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
31
|
+
/** Removes the tectra styles */
|
|
28
32
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
29
33
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
30
34
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<"root", import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -75,106 +79,50 @@ export declare class TxStatTiles {
|
|
|
75
79
|
};
|
|
76
80
|
}, {}, never, ["*"], true, never>;
|
|
77
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* One key number: a tinted icon, label, value with unit, meta line, optional share bar and aside; can
|
|
84
|
+
* be a link.
|
|
85
|
+
*/
|
|
78
86
|
export declare class TxStatTile {
|
|
79
87
|
private readonly statTilesTheme;
|
|
80
88
|
private tiles;
|
|
89
|
+
/** `tx-stat-tile` — what the number is */
|
|
81
90
|
readonly label: import("@angular/core").InputSignal<string>;
|
|
91
|
+
/** `tx-stat-tile` — the number or text; `null` shows "-" */
|
|
82
92
|
readonly value: import("@angular/core").InputSignal<string | number | null | undefined>;
|
|
93
|
+
/** `tx-stat-tile` — small text after the value */
|
|
83
94
|
readonly unit: import("@angular/core").InputSignal<string | null | undefined>;
|
|
95
|
+
/** `tx-stat-tile` — icon in a square tinted with the tone */
|
|
84
96
|
readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {}) | null | undefined>;
|
|
97
|
+
/** `tx-stat-tile` — muted line under the value, cut with an ellipsis */
|
|
85
98
|
readonly meta: import("@angular/core").InputSignal<string | null | undefined>;
|
|
99
|
+
/** `tx-stat-tile` — `neutral`, `primary`, `success`, `info`, `warn` or `danger`: icon, share bar, accent value and highlight */
|
|
86
100
|
readonly tone: import("@angular/core").InputSignal<TxStatTileTone>;
|
|
101
|
+
/** `tx-stat-tile` — 0–100, draws a share bar (a `meter`) */
|
|
87
102
|
readonly share: import("@angular/core").InputSignal<number | null | undefined>;
|
|
103
|
+
/** `tx-stat-tile` — the value is text: smaller, one line, cut with an ellipsis and a title */
|
|
88
104
|
readonly textValue: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
105
|
+
/** `tx-stat-tile` — the value shrinks with the tile width instead of wrapping */
|
|
89
106
|
readonly fitValue: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
107
|
+
/** `tx-stat-tile` — the value in the tone colour */
|
|
90
108
|
readonly accentValue: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
109
|
+
/** `tx-stat-tile` — tinted background and ring in the tone */
|
|
91
110
|
readonly highlighted: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
111
|
+
/** `tx-stat-tile` — router link of the whole tile */
|
|
92
112
|
readonly link: import("@angular/core").InputSignal<TxStatTileCommands>;
|
|
113
|
+
/** `tx-stat-tile` — query params of the router link */
|
|
93
114
|
readonly queryParams: import("@angular/core").InputSignal<Params | null | undefined>;
|
|
115
|
+
/** `tx-stat-tile` — plain URL of the whole tile */
|
|
94
116
|
readonly href: import("@angular/core").InputSignal<string | null | undefined>;
|
|
117
|
+
/** `tx-stat-tile` — link target; `_blank` adds `rel="noopener noreferrer"` */
|
|
95
118
|
readonly target: import("@angular/core").InputSignal<string | null | undefined>;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
borderColor: string;
|
|
100
|
-
borderWidth: string;
|
|
101
|
-
borderRadius: string;
|
|
102
|
-
paddingX: string;
|
|
103
|
-
paddingY: string;
|
|
104
|
-
gap: string;
|
|
105
|
-
headGap: string;
|
|
106
|
-
mainGap: string;
|
|
107
|
-
transitionDuration: string;
|
|
108
|
-
};
|
|
109
|
-
compact: {
|
|
110
|
-
paddingX: string;
|
|
111
|
-
paddingY: string;
|
|
112
|
-
gap: string;
|
|
113
|
-
iconSize: string;
|
|
114
|
-
valueFontSize: string;
|
|
115
|
-
};
|
|
116
|
-
icon: {
|
|
117
|
-
size: string;
|
|
118
|
-
fontSize: string;
|
|
119
|
-
borderRadius: string;
|
|
120
|
-
backgroundMix: string;
|
|
121
|
-
};
|
|
122
|
-
label: {
|
|
123
|
-
color: string;
|
|
124
|
-
fontSize: string;
|
|
125
|
-
fontWeight: string;
|
|
126
|
-
};
|
|
127
|
-
value: {
|
|
128
|
-
color: string;
|
|
129
|
-
fontSize: string;
|
|
130
|
-
fontWeight: string;
|
|
131
|
-
lineHeight: string;
|
|
132
|
-
letterSpacing: string;
|
|
133
|
-
textFontSize: string;
|
|
134
|
-
textLineHeight: string;
|
|
135
|
-
fitMinFontSize: string;
|
|
136
|
-
fitFontSize: string;
|
|
137
|
-
fitMaxFontSize: string;
|
|
138
|
-
};
|
|
139
|
-
unit: {
|
|
140
|
-
color: string;
|
|
141
|
-
fontSize: string;
|
|
142
|
-
lineHeight: string;
|
|
143
|
-
fontWeight: string;
|
|
144
|
-
gap: string;
|
|
145
|
-
};
|
|
146
|
-
meta: {
|
|
147
|
-
color: string;
|
|
148
|
-
fontSize: string;
|
|
149
|
-
lineHeight: string;
|
|
150
|
-
};
|
|
151
|
-
bar: {
|
|
152
|
-
height: string;
|
|
153
|
-
marginTop: string;
|
|
154
|
-
borderRadius: string;
|
|
155
|
-
background: string;
|
|
156
|
-
transitionDuration: string;
|
|
157
|
-
};
|
|
158
|
-
highlighted: {
|
|
159
|
-
backgroundMix: string;
|
|
160
|
-
borderMix: string;
|
|
161
|
-
};
|
|
162
|
-
link: {
|
|
163
|
-
hoverBorderColor: string;
|
|
164
|
-
focusRingWidth: string;
|
|
165
|
-
focusRingColor: string;
|
|
166
|
-
};
|
|
167
|
-
tone: {
|
|
168
|
-
neutral: string;
|
|
169
|
-
primary: string;
|
|
170
|
-
success: string;
|
|
171
|
-
info: string;
|
|
172
|
-
warn: string;
|
|
173
|
-
danger: string;
|
|
174
|
-
};
|
|
175
|
-
}> | undefined>;
|
|
119
|
+
/** Design tokens of this instance (`statTiles` / `statTile`) */
|
|
120
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraStatTileTokens> | undefined>;
|
|
121
|
+
/** Classes and styles of the parts: `root` on the grid; `root`, `body`, `head`, `icon`, `main`, `label`, `value`, `unit`, `meta`, `aside`, `bar`, `barFill` on a tile */
|
|
176
122
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxStatTilePart, import("@tectra-ng/core/config").TxPassThroughValue<TxStatTile>>> | undefined>;
|
|
123
|
+
/** How `pt` merges with the global pass-through */
|
|
177
124
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
125
|
+
/** Removes the tectra styles */
|
|
178
126
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
179
127
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
180
128
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxStatTilePart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-stat-tiles.d.ts","names":[],"sources":["../../../../packages/ui/stat-tiles/src/stat-tiles.types.ts","../../../../packages/ui/stat-tiles/src/stat-tiles.component.ts","../../../../packages/ui/stat-tiles/src/stat-tile.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-stat-tiles.d.ts","names":[],"sources":["../../../../packages/ui/stat-tiles/src/stat-tiles.types.ts","../../../../packages/ui/stat-tiles/src/stat-tiles.component.ts","../../../../packages/ui/stat-tiles/src/stat-tile.component.ts"],"mappings":";;;;;;YACY;;YAEA;;YAEA;;YAEA;;qBCoBC;mBACM;;WAER,kCAAQ;;WACR,iCAAO;;WACP,mCAAS;;WACT,wCAAc;;WACd,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,gDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,gDAAA;WACX,mCAAS;;;SAdP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW;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;;;;;;;;qBCSX;mBACM;UAET;;WAEC,+BAAK;;WACL,+BAAK;;WACL,8BAAI;;WACJ,8BAAI,YAAA;;WACJ,8BAAI;;WACJ,8BAAI,YAAA;;WACJ,+BAAK;;WACL,mCAAS;;WACT,kCAAQ;;WACR,qCAAW;;WACX,qCAAW;;WACX,8BAAI,YAAA;;WACJ,qCAAW,YAAA;;WACX,8BAAI;;WACJ,gCAAM;;WACN,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,iDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,iDAAA;WACX,mCAAS;;;WACT,mCAAS;WACT,gCAAM;WACN,sCAAY;WACZ,oCAAU;WACV,sCAAY;WAIZ,6BAAG;SApCD,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAU;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;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
|
|
@@ -1,43 +1,39 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
2
|
import { TxIconName } from "@tectra-ng/icons";
|
|
3
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
3
|
+
import { TectraDeepPartial, TectraStatusIconTokens } from "@tectra-ng/themes";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/** Parts of `tx-status-icon` that `pt` can style. */
|
|
5
6
|
export type TxStatusIconPart = 'root' | 'icon';
|
|
7
|
+
/** Colour and icon of a status icon: `success`, `info`, `warn`, `danger` or `secondary`. */
|
|
6
8
|
export type TxStatusIconSeverity = 'success' | 'info' | 'warn' | 'danger' | 'secondary';
|
|
9
|
+
/** Size of `tx-status-icon`: `small`, `medium` or `large`. */
|
|
7
10
|
export type TxStatusIconSize = 'small' | 'medium' | 'large';
|
|
11
|
+
/**
|
|
12
|
+
* A small coloured icon for a yes / no or a severity state in tables and lists — a check in green or a cross in red, with a label for screen readers and a native tooltip.
|
|
13
|
+
* @see https://tectra-ng.com/components/status-icon
|
|
14
|
+
*/
|
|
8
15
|
export declare class TxStatusIcon {
|
|
9
16
|
private readonly statusIconTheme;
|
|
10
17
|
private txIconRegistry;
|
|
18
|
+
/** On (green check) or off (red cross) */
|
|
11
19
|
readonly status: import("@angular/core").InputSignalWithTransform<boolean | null | undefined, unknown>;
|
|
20
|
+
/** Instead of `status`: `success`, `info`, `warn`, `danger`, `secondary` */
|
|
12
21
|
readonly severity: import("@angular/core").InputSignal<TxStatusIconSeverity | undefined>;
|
|
22
|
+
/** Own icon name or icon class */
|
|
13
23
|
readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
|
|
24
|
+
/** Accessible name and tooltip; "Yes" / "No" for `status` by default; empty makes the icon decorative */
|
|
14
25
|
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
26
|
+
/** Same as `label` */
|
|
15
27
|
readonly toolTip: import("@angular/core").InputSignal<string | undefined>;
|
|
28
|
+
/** `small`, `medium`, `large` */
|
|
16
29
|
readonly size: import("@angular/core").InputSignal<TxStatusIconSize>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
smSize: string;
|
|
21
|
-
lgSize: string;
|
|
22
|
-
};
|
|
23
|
-
success: {
|
|
24
|
-
color: string;
|
|
25
|
-
};
|
|
26
|
-
info: {
|
|
27
|
-
color: string;
|
|
28
|
-
};
|
|
29
|
-
warn: {
|
|
30
|
-
color: string;
|
|
31
|
-
};
|
|
32
|
-
danger: {
|
|
33
|
-
color: string;
|
|
34
|
-
};
|
|
35
|
-
secondary: {
|
|
36
|
-
color: string;
|
|
37
|
-
};
|
|
38
|
-
}> | undefined>;
|
|
30
|
+
/** Design tokens of this instance (`statusIcon`) */
|
|
31
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraStatusIconTokens> | undefined>;
|
|
32
|
+
/** Classes and styles of the parts: `root`, `icon` */
|
|
39
33
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxStatusIconPart, import("@tectra-ng/core/config").TxPassThroughValue<TxStatusIcon>>> | undefined>;
|
|
34
|
+
/** How `pt` merges with the global pass-through */
|
|
40
35
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
36
|
+
/** Removes the tectra styles */
|
|
41
37
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
42
38
|
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
43
39
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-status-icon.d.ts","names":[],"sources":["../../../../packages/ui/status-icon/src/status-icon.types.ts","../../../../packages/ui/status-icon/src/status-icon.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-status-icon.d.ts","names":[],"sources":["../../../../packages/ui/status-icon/src/status-icon.types.ts","../../../../packages/ui/status-icon/src/status-icon.component.ts"],"mappings":";;;;;YACY;;YAGA;;YAGA;;;;;qBCsCC;mBACM;UAET;;WAEC,gCAAM;;WACN,kCAAQ,YAAA;;WACR,8BAAI,YAAA;;WACJ,+BAAK;;WACL,iCAAO;;WACP,8BAAI,YAAA;;WACJ,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,mDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,mDAAA;WACX,0CAAgB,OAAA;WAChB,sCAAY,OAAA;WACZ,kCAAQ,OAAA;WAIR,uCAAa;WAUb,mCAAS;;;SAnCP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;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"}
|
|
@@ -2,83 +2,152 @@ import { TxIconName } from "@tectra-ng/icons";
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Signal, TemplateRef } from "@angular/core";
|
|
4
4
|
import { TxPassThroughOptions, TxResolvedPassThrough } from "@tectra-ng/core/config";
|
|
5
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
5
|
+
import { TectraDeepPartial, TectraStepperTokens, TectraStepsTokens } from "@tectra-ng/themes";
|
|
6
|
+
/** Identifier of a step in `tx-stepper`: a string or a number. */
|
|
6
7
|
export type TxStepValue = string | number;
|
|
8
|
+
/** Parts of `tx-stepper` that `pt` can style. */
|
|
7
9
|
export type TxStepperPart = 'root' | 'list' | 'step' | 'header' | 'number' | 'title' | 'separator' | 'panels' | 'panel' | 'item';
|
|
10
|
+
/** Context of the `txStepContent` template of a step. */
|
|
8
11
|
export interface TxStepContentContext {
|
|
12
|
+
/** Value of the step. */
|
|
9
13
|
$implicit: TxStepValue;
|
|
14
|
+
/** Value of the step. */
|
|
10
15
|
value: TxStepValue;
|
|
16
|
+
/** Position of the step. */
|
|
11
17
|
index: number;
|
|
18
|
+
/** Whether the step is the active one. */
|
|
12
19
|
active: boolean;
|
|
20
|
+
/** Whether the step comes before the active one. */
|
|
13
21
|
completed: boolean;
|
|
22
|
+
/** Whether the step cannot be picked. */
|
|
14
23
|
disabled: boolean;
|
|
24
|
+
/** Makes the step with the given value active. */
|
|
15
25
|
activate: (value: TxStepValue) => void;
|
|
16
26
|
}
|
|
27
|
+
/** Context of the `txStepPanelContent` template of a panel. */
|
|
17
28
|
export interface TxStepPanelContext {
|
|
29
|
+
/** Function that makes the step with a given value active. */
|
|
18
30
|
$implicit: (value: TxStepValue) => void;
|
|
31
|
+
/** Makes the step with the given value active. */
|
|
19
32
|
activate: (value: TxStepValue) => void;
|
|
33
|
+
/** Value of the step the panel belongs to. */
|
|
20
34
|
value: TxStepValue;
|
|
35
|
+
/** Position of the step the panel belongs to. */
|
|
21
36
|
index: number;
|
|
37
|
+
/** Whether the panel is the open one. */
|
|
22
38
|
active: boolean;
|
|
23
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Look of `tx-steps`: `default` (numbers above the labels) or `track` (markers with labels and
|
|
42
|
+
* descriptions).
|
|
43
|
+
*/
|
|
24
44
|
export type TxStepsVariant = 'default' | 'track';
|
|
45
|
+
/** Parts of `tx-steps` that `pt` can style. */
|
|
25
46
|
export type TxStepsPart = 'root' | 'list' | 'item' | 'link' | 'number' | 'label' | 'description' | 'line';
|
|
47
|
+
/** Payload passed to the `command` of a `tx-steps` item when its step is clicked. */
|
|
26
48
|
export interface TxStepsCommandEvent {
|
|
49
|
+
/** The click event. */
|
|
27
50
|
originalEvent: Event;
|
|
51
|
+
/** The clicked item. */
|
|
28
52
|
item: TxStepsItem;
|
|
53
|
+
/** Position of the clicked item. */
|
|
29
54
|
index: number;
|
|
30
55
|
}
|
|
56
|
+
/** One step of `tx-steps`: a label, an optional icon and description, and a command. */
|
|
31
57
|
export interface TxStepsItem {
|
|
58
|
+
/** Text of the step. */
|
|
32
59
|
label: string;
|
|
60
|
+
/** Icon shown in the step marker. */
|
|
33
61
|
icon?: TxIconName | (string & {});
|
|
62
|
+
/** Second line under the label; shown by the `track` variant. */
|
|
34
63
|
description?: string;
|
|
64
|
+
/** The step cannot be clicked. */
|
|
35
65
|
disabled?: boolean;
|
|
66
|
+
/** Runs when the step is clicked, while `readonly` is off. */
|
|
36
67
|
command?: (event: TxStepsCommandEvent) => void;
|
|
37
68
|
}
|
|
69
|
+
/** Context of the `txStepsItem` template. */
|
|
38
70
|
export interface TxStepsItemContext {
|
|
71
|
+
/** The item being rendered. */
|
|
39
72
|
$implicit: TxStepsItem;
|
|
73
|
+
/** Position of the item. */
|
|
40
74
|
index: number;
|
|
75
|
+
/** Whether the item is the current step. */
|
|
41
76
|
active: boolean;
|
|
77
|
+
/** Whether the item comes before the current step. */
|
|
42
78
|
done: boolean;
|
|
43
79
|
}
|
|
80
|
+
/** What the parts of a stepper (`tx-step`, `tx-step-panel`, ...) use to reach their `tx-stepper`. */
|
|
44
81
|
export declare abstract class TxStepperRef {
|
|
82
|
+
/** Value of the active step. */
|
|
45
83
|
abstract readonly value: Signal<TxStepValue | undefined>;
|
|
84
|
+
/** Whether steps can only be changed through the panels. */
|
|
46
85
|
abstract readonly linear: Signal<boolean>;
|
|
86
|
+
/** Whether the tectra styles are removed. */
|
|
47
87
|
abstract readonly isUnstyled: Signal<boolean>;
|
|
88
|
+
/** Resolved `pt` classes and styles of the parts. */
|
|
48
89
|
abstract readonly passThrough: Signal<TxResolvedPassThrough<TxStepperPart>>;
|
|
90
|
+
/** Position of the active step; `-1` when none is active. */
|
|
49
91
|
abstract readonly activeIndex: Signal<number>;
|
|
92
|
+
/** Position of the step with the given value, or `-1`. */
|
|
50
93
|
abstract indexOf(value: TxStepValue | undefined): number;
|
|
94
|
+
/** Whether the step with the given value is the active one. */
|
|
51
95
|
abstract isActive(value: TxStepValue | undefined): boolean;
|
|
96
|
+
/** Whether the step with the given value comes before the active one. */
|
|
52
97
|
abstract isCompleted(value: TxStepValue | undefined): boolean;
|
|
98
|
+
/** Whether the step with the given value is the last one. */
|
|
53
99
|
abstract isLast(value: TxStepValue | undefined): boolean;
|
|
100
|
+
/** Whether a panel exists for the given step value. */
|
|
54
101
|
abstract hasPanel(value: TxStepValue | undefined): boolean;
|
|
102
|
+
/** Value of the first step that is not disabled. */
|
|
55
103
|
abstract firstEnabled(): TxStepValue | undefined;
|
|
104
|
+
/** Makes the step with the given value active. */
|
|
56
105
|
abstract activate(value: TxStepValue): void;
|
|
106
|
+
/** DOM id of the step with the given value. */
|
|
57
107
|
abstract stepId(value: TxStepValue | undefined): string;
|
|
108
|
+
/** DOM id of the panel of the given step value. */
|
|
58
109
|
abstract panelId(value: TxStepValue | undefined): string;
|
|
110
|
+
/**
|
|
111
|
+
* Moves focus to the next or previous enabled step for an arrow, Home or End key; returns whether
|
|
112
|
+
* focus moved.
|
|
113
|
+
*/
|
|
59
114
|
abstract focusSibling(from: TxStepValue | undefined, key: string): boolean;
|
|
60
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* `<ng-template txStepContent let-value let-active="active" let-completed="completed" let-index="index" let-activate="activate">` — own step header instead of the number and the title
|
|
118
|
+
* @see https://tectra-ng.com/components/stepper
|
|
119
|
+
*/
|
|
61
120
|
export declare class TxStepContent {
|
|
62
121
|
readonly templateRef: TemplateRef<TxStepContentContext>;
|
|
63
122
|
static ngTemplateContextGuard(_directive: TxStepContent, context: unknown): context is TxStepContentContext;
|
|
64
123
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxStepContent, never>;
|
|
65
124
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxStepContent, "ng-template[txStepContent]", never, {}, {}, never, never, true, never>;
|
|
66
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* `<ng-template txStepPanelContent let-activate let-value="value" let-index="index" let-active="active">` — panel content, rendered when the step is first opened; `activate(value)` moves to a step
|
|
128
|
+
* @see https://tectra-ng.com/components/stepper
|
|
129
|
+
*/
|
|
67
130
|
export declare class TxStepPanelContent {
|
|
68
131
|
readonly templateRef: TemplateRef<TxStepPanelContext>;
|
|
69
132
|
static ngTemplateContextGuard(_directive: TxStepPanelContent, context: unknown): context is TxStepPanelContext;
|
|
70
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxStepPanelContent, never>;
|
|
71
134
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxStepPanelContent, "ng-template[txStepPanelContent]", never, {}, {}, never, never, true, never>;
|
|
72
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* `<ng-template txStepsItem let-item let-index="index" let-active="active" let-done="done">` — own content of a `tx-steps` step
|
|
138
|
+
* @see https://tectra-ng.com/components/stepper
|
|
139
|
+
*/
|
|
73
140
|
export declare class TxStepsItemTemplate {
|
|
74
141
|
readonly templateRef: TemplateRef<TxStepsItemContext>;
|
|
75
142
|
static ngTemplateContextGuard(_directive: TxStepsItemTemplate, context: unknown): context is TxStepsItemContext;
|
|
76
143
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxStepsItemTemplate, never>;
|
|
77
144
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxStepsItemTemplate, "ng-template[txStepsItem]", never, {}, {}, never, never, true, never>;
|
|
78
145
|
}
|
|
146
|
+
/** A vertical step of `tx-stepper` whose panel opens under it. */
|
|
79
147
|
export declare class TxStepItem {
|
|
80
148
|
private readonly stepperTheme;
|
|
81
149
|
protected readonly stepper: TxStepperRef;
|
|
150
|
+
/** `tx-stepper`, two-way: the value of the active step. On `tx-step`, `tx-step-panel` and `tx-step-item`: the value of that step (a step and a panel inside a `tx-step-item` take the item's value) */
|
|
82
151
|
readonly value: import("@angular/core").InputSignal<TxStepValue>;
|
|
83
152
|
readonly active: import("@angular/core").Signal<boolean>;
|
|
84
153
|
readonly completed: import("@angular/core").Signal<boolean>;
|
|
@@ -92,11 +161,14 @@ export declare class TxStepItem {
|
|
|
92
161
|
};
|
|
93
162
|
}, {}, never, ["*"], true, never>;
|
|
94
163
|
}
|
|
164
|
+
/** One numbered step in the header of `tx-stepper`. */
|
|
95
165
|
export declare class TxStep {
|
|
96
166
|
private readonly stepperTheme;
|
|
97
167
|
protected readonly stepper: TxStepperRef;
|
|
98
168
|
private readonly item;
|
|
169
|
+
/** `tx-stepper`, two-way: the value of the active step. On `tx-step`, `tx-step-panel` and `tx-step-item`: the value of that step (a step and a panel inside a `tx-step-item` take the item's value) */
|
|
99
170
|
readonly value: import("@angular/core").InputSignal<TxStepValue | undefined>;
|
|
171
|
+
/** the step cannot be picked */
|
|
100
172
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
101
173
|
protected readonly contentTemplate: import("@angular/core").Signal<TxStepContent | undefined>;
|
|
102
174
|
private readonly header;
|
|
@@ -128,22 +200,26 @@ export declare class TxStep {
|
|
|
128
200
|
};
|
|
129
201
|
}, {}, ["contentTemplate"], ["*"], true, never>;
|
|
130
202
|
}
|
|
203
|
+
/** The row of steps above the panels of `tx-stepper`. */
|
|
131
204
|
export declare class TxStepList {
|
|
132
205
|
private readonly stepperTheme;
|
|
133
206
|
protected readonly stepper: TxStepperRef;
|
|
134
207
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxStepList, never>;
|
|
135
208
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxStepList, "tx-step-list", never, {}, {}, never, ["*"], true, never>;
|
|
136
209
|
}
|
|
210
|
+
/** Holds the panels of `tx-stepper`. */
|
|
137
211
|
export declare class TxStepPanels {
|
|
138
212
|
private readonly stepperTheme;
|
|
139
213
|
protected readonly stepper: TxStepperRef;
|
|
140
214
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxStepPanels, never>;
|
|
141
215
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxStepPanels, "tx-step-panels", never, {}, {}, never, ["*"], true, never>;
|
|
142
216
|
}
|
|
217
|
+
/** The content of one step of `tx-stepper`, shown while the step is active. */
|
|
143
218
|
export declare class TxStepPanel {
|
|
144
219
|
private readonly stepperTheme;
|
|
145
220
|
protected readonly stepper: TxStepperRef;
|
|
146
221
|
private readonly item;
|
|
222
|
+
/** `tx-stepper`, two-way: the value of the active step. On `tx-step`, `tx-step-panel` and `tx-step-item`: the value of that step (a step and a panel inside a `tx-step-item` take the item's value) */
|
|
147
223
|
readonly value: import("@angular/core").InputSignal<TxStepValue | undefined>;
|
|
148
224
|
protected readonly contentTemplate: import("@angular/core").Signal<TxStepPanelContent | undefined>;
|
|
149
225
|
readonly inItem: boolean;
|
|
@@ -161,71 +237,21 @@ export declare class TxStepPanel {
|
|
|
161
237
|
};
|
|
162
238
|
}, {}, ["contentTemplate"], ["*"], true, never>;
|
|
163
239
|
}
|
|
240
|
+
/** A multi-step flow with its own panels: a row of numbered steps above the panels, or vertical items. */
|
|
164
241
|
export declare class TxStepper extends TxStepperRef {
|
|
165
242
|
private readonly stepperTheme;
|
|
166
243
|
private readonly id;
|
|
244
|
+
/** `tx-stepper`, two-way: the value of the active step. On `tx-step`, `tx-step-panel` and `tx-step-item`: the value of that step (a step and a panel inside a `tx-step-item` take the item's value) */
|
|
167
245
|
readonly value: import("@angular/core").ModelSignal<TxStepValue | undefined>;
|
|
246
|
+
/** steps cannot be picked in the header; only the panels move on through `activate` */
|
|
168
247
|
readonly linear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
panelTransitionDuration: string;
|
|
173
|
-
};
|
|
174
|
-
separator: {
|
|
175
|
-
background: string;
|
|
176
|
-
activeBackground: string;
|
|
177
|
-
margin: string;
|
|
178
|
-
size: string;
|
|
179
|
-
};
|
|
180
|
-
step: {
|
|
181
|
-
padding: string;
|
|
182
|
-
gap: string;
|
|
183
|
-
};
|
|
184
|
-
stepHeader: {
|
|
185
|
-
padding: string;
|
|
186
|
-
borderRadius: string;
|
|
187
|
-
gap: string;
|
|
188
|
-
disabledOpacity: string;
|
|
189
|
-
focusRing: {
|
|
190
|
-
width: string;
|
|
191
|
-
style: string;
|
|
192
|
-
color: string;
|
|
193
|
-
offset: string;
|
|
194
|
-
shadow: string;
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
stepTitle: {
|
|
198
|
-
color: string;
|
|
199
|
-
activeColor: string;
|
|
200
|
-
fontWeight: string;
|
|
201
|
-
fontSize: string;
|
|
202
|
-
};
|
|
203
|
-
stepNumber: {
|
|
204
|
-
background: string;
|
|
205
|
-
activeBackground: string;
|
|
206
|
-
borderColor: string;
|
|
207
|
-
activeBorderColor: string;
|
|
208
|
-
borderWidth: string;
|
|
209
|
-
color: string;
|
|
210
|
-
activeColor: string;
|
|
211
|
-
size: string;
|
|
212
|
-
fontSize: string;
|
|
213
|
-
fontWeight: string;
|
|
214
|
-
borderRadius: string;
|
|
215
|
-
shadow: string;
|
|
216
|
-
};
|
|
217
|
-
steppanels: {
|
|
218
|
-
padding: string;
|
|
219
|
-
};
|
|
220
|
-
steppanel: {
|
|
221
|
-
background: string;
|
|
222
|
-
color: string;
|
|
223
|
-
padding: string;
|
|
224
|
-
indent: string;
|
|
225
|
-
};
|
|
226
|
-
}> | undefined>;
|
|
248
|
+
/** Design tokens of this instance (`stepper` on `tx-stepper`, `steps` on `tx-steps`) */
|
|
249
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraStepperTokens> | undefined>;
|
|
250
|
+
/** Classes and styles of the parts. `tx-stepper`: `root`, `list`, `step`, `header`, `number`, `title`, `separator`, `panels`, `panel`, `item`. `tx-steps`: `root`, `list`, `item`, `link`, `number`, `label`, `description`, `line` */
|
|
227
251
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxStepperPart, import("@tectra-ng/core/config").TxPassThroughValue<TxStepper>>> | undefined>;
|
|
252
|
+
/** How `pt` merges with the global pass-through */
|
|
228
253
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
254
|
+
/** Removes the tectra styles */
|
|
229
255
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
230
256
|
private readonly steps;
|
|
231
257
|
private readonly items;
|
|
@@ -286,102 +312,49 @@ export declare class TxStepper extends TxStepperRef {
|
|
|
286
312
|
"value": "valueChange";
|
|
287
313
|
}, ["steps", "items", "panels"], ["*"], true, never>;
|
|
288
314
|
}
|
|
315
|
+
/** Internal view model of one step of `tx-steps`: the item with its state and icon. */
|
|
289
316
|
interface TxStepsEntry {
|
|
317
|
+
/** The item behind the entry. */
|
|
290
318
|
item: TxStepsItem;
|
|
319
|
+
/** Position of the entry. */
|
|
291
320
|
index: number;
|
|
321
|
+
/** Whether the entry is the current step. */
|
|
292
322
|
active: boolean;
|
|
323
|
+
/** Whether the entry comes before the current step. */
|
|
293
324
|
done: boolean;
|
|
325
|
+
/** Whether the step can be clicked: not `readonly`, not disabled and has a `command`. */
|
|
294
326
|
clickable: boolean;
|
|
327
|
+
/** Registered icon name, or `null`. */
|
|
295
328
|
icon: string | null;
|
|
329
|
+
/** CSS class used as an icon when the name is not a registered icon, or `null`. */
|
|
296
330
|
iconClass: string | null;
|
|
331
|
+
/** Context given to the `txStepsItem` template. */
|
|
297
332
|
context: TxStepsItemContext;
|
|
298
333
|
}
|
|
334
|
+
/** A step indicator built from an `items` array, without panels. */
|
|
299
335
|
export declare class TxSteps {
|
|
300
336
|
private readonly stepperTheme;
|
|
301
337
|
private readonly txIconRegistry;
|
|
302
338
|
private readonly host;
|
|
339
|
+
/** the steps, `TxStepsItem[]` — `label`, `icon`, `description` (track), `disabled`, `command` (runs with `{ originalEvent, item, index }` when the step is clicked) */
|
|
303
340
|
readonly items: import("@angular/core").InputSignal<readonly TxStepsItem[] | null | undefined>;
|
|
341
|
+
/** `tx-steps`, two-way: index of the current step; the steps before it are done. Set it to `items.length` to mark every step done */
|
|
304
342
|
readonly activeIndex: import("@angular/core").ModelSignal<number>;
|
|
343
|
+
/** the steps cannot be clicked (default `true`). Off, an enabled step with a `command` can be clicked: it becomes current and runs its `command` */
|
|
305
344
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
345
|
+
/** `default` (numbers above the labels) or `track` (markers with labels and descriptions, a check on done steps) */
|
|
306
346
|
readonly variant: import("@angular/core").InputSignal<TxStepsVariant>;
|
|
347
|
+
/** accessible name of the list */
|
|
307
348
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
349
|
+
/** id of the element that names the list */
|
|
308
350
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
};
|
|
313
|
-
separator: {
|
|
314
|
-
background: string;
|
|
315
|
-
size: string;
|
|
316
|
-
};
|
|
317
|
-
itemLink: {
|
|
318
|
-
borderRadius: string;
|
|
319
|
-
gap: string;
|
|
320
|
-
focusRing: {
|
|
321
|
-
width: string;
|
|
322
|
-
style: string;
|
|
323
|
-
color: string;
|
|
324
|
-
offset: string;
|
|
325
|
-
shadow: string;
|
|
326
|
-
};
|
|
327
|
-
};
|
|
328
|
-
itemLabel: {
|
|
329
|
-
color: string;
|
|
330
|
-
activeColor: string;
|
|
331
|
-
fontWeight: string;
|
|
332
|
-
fontSize: string;
|
|
333
|
-
};
|
|
334
|
-
itemNumber: {
|
|
335
|
-
background: string;
|
|
336
|
-
activeBackground: string;
|
|
337
|
-
borderColor: string;
|
|
338
|
-
activeBorderColor: string;
|
|
339
|
-
borderWidth: string;
|
|
340
|
-
color: string;
|
|
341
|
-
activeColor: string;
|
|
342
|
-
size: string;
|
|
343
|
-
fontSize: string;
|
|
344
|
-
fontWeight: string;
|
|
345
|
-
borderRadius: string;
|
|
346
|
-
shadow: string;
|
|
347
|
-
};
|
|
348
|
-
track: {
|
|
349
|
-
gap: string;
|
|
350
|
-
buttonPadding: string;
|
|
351
|
-
buttonGap: string;
|
|
352
|
-
buttonBorderRadius: string;
|
|
353
|
-
buttonHoverBackground: string;
|
|
354
|
-
textGap: string;
|
|
355
|
-
markerSize: string;
|
|
356
|
-
markerFontSize: string;
|
|
357
|
-
markerFontWeight: string;
|
|
358
|
-
markerBackground: string;
|
|
359
|
-
markerColor: string;
|
|
360
|
-
markerBorderColor: string;
|
|
361
|
-
markerBorderWidth: string;
|
|
362
|
-
labelFontSize: string;
|
|
363
|
-
labelFontWeight: string;
|
|
364
|
-
labelColor: string;
|
|
365
|
-
descriptionFontSize: string;
|
|
366
|
-
descriptionColor: string;
|
|
367
|
-
lineSize: string;
|
|
368
|
-
lineMargin: string;
|
|
369
|
-
lineMinWidth: string;
|
|
370
|
-
lineBackground: string;
|
|
371
|
-
doneLineBackground: string;
|
|
372
|
-
doneMarkerBackground: string;
|
|
373
|
-
doneMarkerColor: string;
|
|
374
|
-
doneMarkerBorderColor: string;
|
|
375
|
-
doneLabelColor: string;
|
|
376
|
-
activeMarkerBackground: string;
|
|
377
|
-
activeMarkerColor: string;
|
|
378
|
-
activeLabelColor: string;
|
|
379
|
-
buttonOffset: string;
|
|
380
|
-
disabledOpacity: string;
|
|
381
|
-
};
|
|
382
|
-
}> | undefined>;
|
|
351
|
+
/** Design tokens of this instance (`stepper` on `tx-stepper`, `steps` on `tx-steps`) */
|
|
352
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraStepsTokens> | undefined>;
|
|
353
|
+
/** Classes and styles of the parts. `tx-stepper`: `root`, `list`, `step`, `header`, `number`, `title`, `separator`, `panels`, `panel`, `item`. `tx-steps`: `root`, `list`, `item`, `link`, `number`, `label`, `description`, `line` */
|
|
383
354
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxStepsPart, import("@tectra-ng/core/config").TxPassThroughValue<TxSteps>>> | undefined>;
|
|
355
|
+
/** How `pt` merges with the global pass-through */
|
|
384
356
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
357
|
+
/** Removes the tectra styles */
|
|
385
358
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
386
359
|
protected readonly itemTemplate: import("@angular/core").Signal<TxStepsItemTemplate | undefined>;
|
|
387
360
|
protected readonly t: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|