@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,124 +1,54 @@
|
|
|
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, TectraSelectTokens } from "@tectra-ng/themes";
|
|
4
4
|
import { TxSelectBase, TxSelectItem, TxSelectPart, TxSelectValueTemplate } from "@tectra-ng/ui/select";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
/** How selected values show in the closed field: `comma` text or removable `chip` elements. */
|
|
6
7
|
export type TxMultiselectDisplay = 'comma' | 'chip';
|
|
8
|
+
/** Parts of `tx-multiselect` that `pt` can style: the select parts plus `chip` and `toggleAll`. */
|
|
7
9
|
export type TxMultiselectPart = TxSelectPart | 'chip' | 'toggleAll';
|
|
10
|
+
/** Payload of the multiselect change event: the new value list and the option that was toggled. */
|
|
8
11
|
export interface TxMultiselectChangeEvent {
|
|
12
|
+
/** All selected values after the change. */
|
|
9
13
|
value: unknown[];
|
|
14
|
+
/** The option that was selected or unselected. */
|
|
10
15
|
option: unknown;
|
|
16
|
+
/** `true` when the option was selected, `false` when it was removed. */
|
|
11
17
|
selected: boolean;
|
|
12
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Pick several values from a list. The value is an array; works with `[formControl]`, `ngModel` and signal forms. Shares the option engine, keyboard and panel with `tx-select`: groups, search, virtual scroll, lazy loading and templates work the same.
|
|
21
|
+
* @see https://tectra-ng.com/components/multiselect
|
|
22
|
+
*/
|
|
13
23
|
export declare class TxMultiselect extends TxSelectBase<unknown[]> {
|
|
14
24
|
private readonly multiselectTheme;
|
|
25
|
+
/** Items to choose from — objects, or plain strings / numbers; `null` / `undefined` items are rows still loading (`lazy`) */
|
|
15
26
|
readonly options: import("@angular/core").InputSignal<readonly unknown[]>;
|
|
27
|
+
/** `comma` (text) or `chip` (removable chips) */
|
|
16
28
|
readonly display: import("@angular/core").InputSignal<TxMultiselectDisplay>;
|
|
29
|
+
/** Above this many values the field shows "N selected" */
|
|
17
30
|
readonly maxSelectedLabels: import("@angular/core").InputSignal<number>;
|
|
31
|
+
/** Own summary text, `{count}` is replaced */
|
|
18
32
|
readonly selectedItemsLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
33
|
+
/** Own text of the select-all checkbox (the translated "Select all" by default) */
|
|
19
34
|
readonly selectAllLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
35
|
+
/** Own count text in the select-all row, `{selected}` and `{total}` are replaced */
|
|
20
36
|
readonly countLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
37
|
+
/** Maximum number of values; other options turn disabled */
|
|
21
38
|
readonly selectionLimit: import("@angular/core").InputSignal<number | undefined>;
|
|
39
|
+
/** Checkbox that selects or clears all visible options (on by default): next to the search, or without it a full row with "Select all" and the count */
|
|
22
40
|
readonly showToggleAll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
41
|
+
/** Icon name of the dropdown indicator */
|
|
23
42
|
readonly dropdownIcon: import("@angular/core").InputSignal<TxIconName>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
dropdownWidth: string;
|
|
28
|
-
clearSize: string;
|
|
29
|
-
gap: string;
|
|
30
|
-
};
|
|
31
|
-
overlay: {
|
|
32
|
-
background: string;
|
|
33
|
-
borderColor: string;
|
|
34
|
-
borderRadius: string;
|
|
35
|
-
shadow: string;
|
|
36
|
-
};
|
|
37
|
-
list: {
|
|
38
|
-
padding: string;
|
|
39
|
-
paddingBlock: string;
|
|
40
|
-
paddingInline: string;
|
|
41
|
-
gap: string;
|
|
42
|
-
maxHeight: string;
|
|
43
|
-
};
|
|
44
|
-
option: {
|
|
45
|
-
padding: string;
|
|
46
|
-
gap: string;
|
|
47
|
-
borderRadius: string;
|
|
48
|
-
color: string;
|
|
49
|
-
focusColor: string;
|
|
50
|
-
focusBackground: string;
|
|
51
|
-
selectedBackground: string;
|
|
52
|
-
selectedColor: string;
|
|
53
|
-
selectedFocusBackground: string;
|
|
54
|
-
selectedFocusColor: string;
|
|
55
|
-
selectedFontWeight: string;
|
|
56
|
-
disabledColor: string;
|
|
57
|
-
checkColor: string;
|
|
58
|
-
multiple: {
|
|
59
|
-
selectedBackground: string;
|
|
60
|
-
selectedFocusBackground: string;
|
|
61
|
-
selectedColor: string;
|
|
62
|
-
selectedFocusColor: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
checkbox: {
|
|
66
|
-
size: string;
|
|
67
|
-
borderRadius: string;
|
|
68
|
-
borderColor: string;
|
|
69
|
-
background: string;
|
|
70
|
-
checkedBackground: string;
|
|
71
|
-
checkedColor: string;
|
|
72
|
-
iconSize: string;
|
|
73
|
-
shadow: string;
|
|
74
|
-
};
|
|
75
|
-
chip: {
|
|
76
|
-
gap: string;
|
|
77
|
-
paddingY: string;
|
|
78
|
-
paddingStart: string;
|
|
79
|
-
paddingEnd: string;
|
|
80
|
-
borderRadius: string;
|
|
81
|
-
background: string;
|
|
82
|
-
color: string;
|
|
83
|
-
fontSize: string;
|
|
84
|
-
removeSize: string;
|
|
85
|
-
removeColor: string;
|
|
86
|
-
removeHoverColor: string;
|
|
87
|
-
};
|
|
88
|
-
optionGroup: {
|
|
89
|
-
padding: string;
|
|
90
|
-
color: string;
|
|
91
|
-
fontSize: string;
|
|
92
|
-
fontWeight: string;
|
|
93
|
-
};
|
|
94
|
-
filter: {
|
|
95
|
-
padding: string;
|
|
96
|
-
gap: string;
|
|
97
|
-
iconInset: string;
|
|
98
|
-
minHeight: string;
|
|
99
|
-
};
|
|
100
|
-
dropdownButton: {
|
|
101
|
-
width: string;
|
|
102
|
-
background: string;
|
|
103
|
-
hoverBackground: string;
|
|
104
|
-
activeBackground: string;
|
|
105
|
-
color: string;
|
|
106
|
-
hoverColor: string;
|
|
107
|
-
};
|
|
108
|
-
header: {
|
|
109
|
-
padding: string;
|
|
110
|
-
};
|
|
111
|
-
footer: {
|
|
112
|
-
padding: string;
|
|
113
|
-
};
|
|
114
|
-
empty: {
|
|
115
|
-
padding: string;
|
|
116
|
-
color: string;
|
|
117
|
-
};
|
|
118
|
-
}> | undefined>;
|
|
43
|
+
/** Design tokens of this instance (`select`) */
|
|
44
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraSelectTokens> | undefined>;
|
|
45
|
+
/** Classes and styles of the parts: the select parts plus `chip`, `toggleAll` */
|
|
119
46
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxMultiselectPart, import("@tectra-ng/core/config").TxPassThroughValue<TxMultiselect>>> | undefined>;
|
|
47
|
+
/** How `pt` merges with the global pass-through */
|
|
120
48
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
49
|
+
/** Removes the tectra styles */
|
|
121
50
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
51
|
+
/** A value was added or removed: `{ value, option, selected }` (`option` is `null` for select all / clear) */
|
|
122
52
|
readonly changed: import("@angular/core").OutputEmitterRef<TxMultiselectChangeEvent>;
|
|
123
53
|
readonly valueTemplate: import("@angular/core").Signal<TxSelectValueTemplate | undefined>;
|
|
124
54
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-multiselect.d.ts","names":[],"sources":["../../../../packages/ui/multiselect/src/multiselect.types.ts","../../../../packages/ui/multiselect/src/multiselect.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-multiselect.d.ts","names":[],"sources":["../../../../packages/ui/multiselect/src/multiselect.types.ts","../../../../packages/ui/multiselect/src/multiselect.component.ts"],"mappings":";;;;;;YAGY;;YAGA,oBAAoB;;iBAGf;;EAEf;;EAEA;;EAEA;;;;;;qBCsBW,sBAAsB;mBAChB;;WAER,iCAAO;;WACP,iCAAO,YAAA;;WACP,2CAAiB;;WACjB,4CAAkB;;WAClB,wCAAc;;WACd,oCAAU;;WACV,wCAAc;;WACd,uCAAa;;WACb,sCAAY,YAAA;;WACZ,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,oDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,iCAAO,iBAAA;WAEP,uCAAa,OAAA;WAEb,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,oDAAA;qBACD,gCAAM;mBACR;WAER,wCAAc;WAId,uCAAa,OAAA;WAOb,kCAAQ;qBACW,uCAAa;WAIhC,oCAAU;WACV,iCAAO;WAGP,mCAAS;WACT,mCAAS;WAMT,kCAAQ;WACR,oCAAU;WACV,kCAAQ;WAKR,oCAAU,OAAA;WACV,mCAAS;;;WACT,oCAAU;;;EAEV,WAAW;EAIpB,WAAW,MAAM;EAajB;EAgBA,WAAW,MAAM,cAAc,OAAO;YAQ5B,WAAW;YAIX,SAAS,MAAM;YAIf;YAKA;YAIA,eAAe,OAAO,eAAe;YAiBrC;YAIS;SA/IR,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;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"}
|
|
@@ -1,32 +1,43 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
2
|
+
import { TectraDeepPartial, TectraOverlayBadgeTokens } from "@tectra-ng/themes";
|
|
3
3
|
import { TxBadgeSeverity, TxBadgeSize } from "@tectra-ng/ui/badge";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/** Shape of the host the badge sits on: `rect` (corner of a box) or `circle` (edge of a round avatar). */
|
|
5
6
|
export type TxOverlayBadgeShape = 'rect' | 'circle';
|
|
7
|
+
/** Parts of `tx-overlay-badge` that `pt` can style. */
|
|
6
8
|
export type TxOverlayBadgePart = 'root' | 'badge';
|
|
9
|
+
/**
|
|
10
|
+
* Puts a badge on the corner of anything — an icon, a button, an avatar. A number, a short text, or a dot without a value; big numbers turn into `99+`, zero hides itself.
|
|
11
|
+
* @see https://tectra-ng.com/components/overlay-badge
|
|
12
|
+
*/
|
|
7
13
|
export declare class TxOverlayBadge {
|
|
8
14
|
private readonly overlayBadgeTheme;
|
|
9
15
|
private host;
|
|
10
16
|
private linked;
|
|
11
17
|
private unlink;
|
|
18
|
+
/** Number or short text; no value — a dot */
|
|
12
19
|
readonly value: import("@angular/core").InputSignal<string | number | undefined>;
|
|
20
|
+
/** Colour of the badge: `primary`, `secondary`, `success`, `info`, `warn`, `danger`, `help`, `contrast` */
|
|
13
21
|
readonly severity: import("@angular/core").InputSignal<TxBadgeSeverity>;
|
|
22
|
+
/** `small`, `medium`, `large`, `xlarge` */
|
|
14
23
|
readonly size: import("@angular/core").InputSignal<TxBadgeSize>;
|
|
24
|
+
/** Shows `max+` above this number */
|
|
15
25
|
readonly max: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
26
|
+
/** Keeps the badge when the value is 0 */
|
|
16
27
|
readonly showZero: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
/** Hides the badge */
|
|
17
29
|
readonly hidden: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
30
|
+
/** `rect` (corner of a box) or `circle` (edge of a round avatar) */
|
|
18
31
|
readonly shape: import("@angular/core").InputSignal<TxOverlayBadgeShape>;
|
|
32
|
+
/** What the badge means for screen readers, e.g. "4 unread"; the badge is added to the `aria-describedby` of the focusable content */
|
|
19
33
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
ringWidth: string;
|
|
24
|
-
offset: string;
|
|
25
|
-
circleOffset: string;
|
|
26
|
-
};
|
|
27
|
-
}> | undefined>;
|
|
34
|
+
/** Design tokens of this instance (`overlayBadge`); the badge itself uses `badge` */
|
|
35
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraOverlayBadgeTokens> | undefined>;
|
|
36
|
+
/** Classes and styles of the parts: `root`, `badge` */
|
|
28
37
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxOverlayBadgePart, import("@tectra-ng/core/config").TxPassThroughValue<TxOverlayBadge>>> | undefined>;
|
|
38
|
+
/** How `pt` merges with the global pass-through */
|
|
29
39
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
40
|
+
/** Removes the tectra styles */
|
|
30
41
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
31
42
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
32
43
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxOverlayBadgePart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-overlay-badge.d.ts","names":[],"sources":["../../../../packages/ui/overlay-badge/src/overlay-badge.types.ts","../../../../packages/ui/overlay-badge/src/overlay-badge.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-overlay-badge.d.ts","names":[],"sources":["../../../../packages/ui/overlay-badge/src/overlay-badge.types.ts","../../../../packages/ui/overlay-badge/src/overlay-badge.component.ts"],"mappings":";;;;;YACY;;YAEA;;;;;qBCwCC;mBACM;UAET;UACA;UACA;;WAEC,+BAAK;;WACL,kCAAQ,YAAA;;WACR,8BAAI,YAAA;;WACJ,6BAAG;;WACH,kCAAQ;;WACR,gCAAM;;WACN,+BAAK,YAAA;;WACL,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;WACX;WACA,8BAAI;WAKJ,iCAAO;WACP,mCAAS;;;;UAOV;SApCG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAc;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,118 +1,136 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
2
|
+
import { TectraDeepPartial, TectraPaginatorTokens } from "@tectra-ng/themes";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import { TemplateRef } from "@angular/core";
|
|
5
|
+
/** Parts of `tx-paginator` that `pt` can style. */
|
|
5
6
|
export type TxPaginatorPart = 'root' | 'total' | 'bar' | 'start' | 'end' | 'currentPageReport' | 'first' | 'previous' | 'pages' | 'page' | 'next' | 'last' | 'jumpToPageDropdown' | 'jumpToPageInput' | 'rowsPerPageDropdown';
|
|
7
|
+
/**
|
|
8
|
+
* Current position of a paginator: zero-based page, index of the first row, page size and number of
|
|
9
|
+
* pages.
|
|
10
|
+
*/
|
|
6
11
|
export interface TxPageState {
|
|
12
|
+
/** Zero-based index of the current page. */
|
|
7
13
|
page: number;
|
|
14
|
+
/** Zero-based index of the first row on the current page. */
|
|
8
15
|
first: number;
|
|
16
|
+
/** Number of rows per page. */
|
|
9
17
|
rows: number;
|
|
18
|
+
/** Total number of pages. */
|
|
10
19
|
pageCount: number;
|
|
11
20
|
}
|
|
21
|
+
/** Rows-per-page entry that shows all rows at once, under a custom label. */
|
|
12
22
|
export interface TxRowsPerPageShowAll {
|
|
23
|
+
/** Label of the "show all" entry in the rows-per-page dropdown. */
|
|
13
24
|
showAll: string;
|
|
14
25
|
}
|
|
26
|
+
/** One entry of the rows-per-page dropdown: a page size or a "show all" entry. */
|
|
15
27
|
export type TxRowsPerPageOption = number | TxRowsPerPageShowAll;
|
|
28
|
+
/** A rows-per-page entry as shown in the dropdown: its label and page size. */
|
|
16
29
|
export interface TxRowsPerPageItem {
|
|
30
|
+
/** Text of the entry in the rows-per-page dropdown. */
|
|
17
31
|
label: string;
|
|
32
|
+
/** Page size the entry sets. */
|
|
18
33
|
value: number;
|
|
19
34
|
}
|
|
35
|
+
/** Context of the paginator templates (`txPaginatorStart`, `txPaginatorEnd`, ...). */
|
|
20
36
|
export interface TxPaginatorTemplateContext {
|
|
37
|
+
/** Current paginator state. */
|
|
21
38
|
$implicit: TxPageState;
|
|
22
39
|
}
|
|
40
|
+
/** Page parameters of a paginated request or response: one-based page, page size and totals. */
|
|
23
41
|
export interface TxPaginationParams {
|
|
42
|
+
/** One-based page number. */
|
|
24
43
|
page: number;
|
|
44
|
+
/** Page size. */
|
|
25
45
|
limit?: number;
|
|
46
|
+
/** Extra field some backends send next to `limit`; the kit does not read it. */
|
|
26
47
|
qtt?: number;
|
|
48
|
+
/** Total number of records. */
|
|
27
49
|
total?: number;
|
|
50
|
+
/** Extra field some backends send next to `total`; the kit does not read it. */
|
|
28
51
|
count?: number;
|
|
29
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* `<ng-template txPaginatorStart let-state>` — content at the start of the bar, gets `TxPageState`
|
|
55
|
+
* @see https://tectra-ng.com/components/paginator
|
|
56
|
+
*/
|
|
30
57
|
export declare class TxPaginatorStart {
|
|
31
58
|
readonly templateRef: TemplateRef<TxPaginatorTemplateContext>;
|
|
32
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxPaginatorStart, never>;
|
|
33
60
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxPaginatorStart, "ng-template[txPaginatorStart]", never, {}, {}, never, never, true, never>;
|
|
34
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* `<ng-template txPaginatorEnd let-state>` — content at the end of the bar, gets `TxPageState`
|
|
64
|
+
* @see https://tectra-ng.com/components/paginator
|
|
65
|
+
*/
|
|
35
66
|
export declare class TxPaginatorEnd {
|
|
36
67
|
readonly templateRef: TemplateRef<TxPaginatorTemplateContext>;
|
|
37
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxPaginatorEnd, never>;
|
|
38
69
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxPaginatorEnd, "ng-template[txPaginatorEnd]", never, {}, {}, never, never, true, never>;
|
|
39
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Page navigation for long lists: first / previous / page / next / last buttons, a page size select, a page report, jump to page and a "Total: N" label.
|
|
73
|
+
* @see https://tectra-ng.com/components/paginator
|
|
74
|
+
*/
|
|
40
75
|
export declare class TxPaginator {
|
|
41
76
|
private readonly paginatorTheme;
|
|
42
77
|
private localeService;
|
|
43
78
|
private breakpointObserver;
|
|
79
|
+
/** Index of the first record on the current page. Two-way: `[(first)]` */
|
|
44
80
|
readonly first: import("@angular/core").ModelSignal<number>;
|
|
81
|
+
/** Records per page. Two-way: `[(rows)]` — the page size select writes it */
|
|
45
82
|
readonly rows: import("@angular/core").ModelSignal<number>;
|
|
83
|
+
/** Number of records in the whole list */
|
|
46
84
|
readonly totalRecords: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
85
|
+
/** How many page buttons are shown around the current page */
|
|
47
86
|
readonly pageLinkSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
87
|
+
/** Page buttons in compact mode */
|
|
48
88
|
readonly compactPageLinkSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
89
|
+
/** Width below which the paginator is compact, e.g. `40rem`; `null` turns compact mode off */
|
|
49
90
|
readonly compactBreakpoint: import("@angular/core").InputSignal<string | null>;
|
|
91
|
+
/** Page sizes for the select — numbers, or `{ showAll: 'All' }` for every record. The current `rows` is added when missing; empty hides the select */
|
|
50
92
|
readonly rowsPerPageOptions: import("@angular/core").InputSignal<TxRowsPerPageOption[] | null | undefined>;
|
|
93
|
+
/** Shows the paginator also when there is only one page */
|
|
51
94
|
readonly alwaysShow: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
95
|
+
/** Shows the first and last page buttons */
|
|
52
96
|
readonly showFirstLastIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
97
|
+
/** Shows the page number buttons */
|
|
53
98
|
readonly showPageLinks: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
99
|
+
/** Shows the page report, "3 of 12" by default (translated) */
|
|
54
100
|
readonly showCurrentPageReport: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
101
|
+
/** Own report text with `{currentPage}`, `{totalPages}`, `{first}`, `{last}`, `{rows}`, `{totalRecords}` */
|
|
55
102
|
readonly currentPageReportTemplate: import("@angular/core").InputSignal<string | undefined>;
|
|
103
|
+
/** Shows a select with every page number */
|
|
56
104
|
readonly showJumpToPageDropdown: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
105
|
+
/** Shows a field for a page number — Enter or leaving the field goes there */
|
|
57
106
|
readonly showJumpToPageInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
107
|
+
/** Shows "Total: N" (translated) at the start; above the paginator on narrow screens */
|
|
58
108
|
readonly showTotal: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
109
|
+
/** Disables every control */
|
|
59
110
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
111
|
+
/** Locale of the numbers, e.g. `uk-UA`; the tectra locale by default */
|
|
60
112
|
readonly locale: import("@angular/core").InputSignal<string | undefined>;
|
|
113
|
+
/** Maximum height of the select lists */
|
|
61
114
|
readonly dropdownScrollHeight: import("@angular/core").InputSignal<string>;
|
|
115
|
+
/** Icon of the first page button */
|
|
62
116
|
readonly firstPageIcon: import("@angular/core").InputSignal<string>;
|
|
117
|
+
/** Icon of the previous page button */
|
|
63
118
|
readonly previousPageIcon: import("@angular/core").InputSignal<string>;
|
|
119
|
+
/** Icon of the next page button */
|
|
64
120
|
readonly nextPageIcon: import("@angular/core").InputSignal<string>;
|
|
121
|
+
/** Icon of the last page button */
|
|
65
122
|
readonly lastPageIcon: import("@angular/core").InputSignal<string>;
|
|
123
|
+
/** Name of the navigation; "Pagination" by default (translated) */
|
|
66
124
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
gap: string;
|
|
71
|
-
borderRadius: string;
|
|
72
|
-
background: string;
|
|
73
|
-
color: string;
|
|
74
|
-
transitionDuration: string;
|
|
75
|
-
};
|
|
76
|
-
navButton: {
|
|
77
|
-
background: string;
|
|
78
|
-
hoverBackground: string;
|
|
79
|
-
selectedBackground: string;
|
|
80
|
-
color: string;
|
|
81
|
-
hoverColor: string;
|
|
82
|
-
selectedColor: string;
|
|
83
|
-
width: string;
|
|
84
|
-
height: string;
|
|
85
|
-
borderRadius: string;
|
|
86
|
-
fontWeight: string;
|
|
87
|
-
fontSize: string;
|
|
88
|
-
iconSize: string;
|
|
89
|
-
disabledOpacity: string;
|
|
90
|
-
focusRing: {
|
|
91
|
-
width: string;
|
|
92
|
-
style: string;
|
|
93
|
-
color: string;
|
|
94
|
-
offset: string;
|
|
95
|
-
shadow: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
currentPageReport: {
|
|
99
|
-
color: string;
|
|
100
|
-
fontWeight: string;
|
|
101
|
-
fontSize: string;
|
|
102
|
-
};
|
|
103
|
-
jumpToPageInput: {
|
|
104
|
-
maxWidth: string;
|
|
105
|
-
};
|
|
106
|
-
total: {
|
|
107
|
-
color: string;
|
|
108
|
-
fontWeight: string;
|
|
109
|
-
fontSize: string;
|
|
110
|
-
margin: string;
|
|
111
|
-
};
|
|
112
|
-
}> | undefined>;
|
|
125
|
+
/** Design tokens (`paginator`) */
|
|
126
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraPaginatorTokens> | undefined>;
|
|
127
|
+
/** Classes and styles of the parts: `root`, `total`, `bar`, `start`, `end`, `currentPageReport`, `first`, `previous`, `pages`, `page`, `next`, `last`, `jumpToPageDropdown`, `jumpToPageInput`, `rowsPerPageDropdown` */
|
|
113
128
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxPaginatorPart, import("@tectra-ng/core/config").TxPassThroughValue<TxPaginator>>> | undefined>;
|
|
129
|
+
/** How `pt` merges with the global pass-through */
|
|
114
130
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
131
|
+
/** Removes the tectra styles */
|
|
115
132
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
133
|
+
/** The page or the page size changed (`TxPageState`) */
|
|
116
134
|
readonly pageChange: import("@angular/core").OutputEmitterRef<TxPageState>;
|
|
117
135
|
readonly startTemplate: import("@angular/core").Signal<TxPaginatorStart | undefined>;
|
|
118
136
|
readonly endTemplate: import("@angular/core").Signal<TxPaginatorEnd | undefined>;
|
|
@@ -288,8 +306,12 @@ export declare class TxPaginator {
|
|
|
288
306
|
"pageChange": "pageChange";
|
|
289
307
|
}, ["startTemplate", "endTemplate"], never, true, never>;
|
|
290
308
|
}
|
|
309
|
+
/** Number of pages needed for the given record count and page size; `0` when there are no records. */
|
|
291
310
|
export declare function pageCountOf(totalRecords: number, rows: number): number;
|
|
311
|
+
/** Converts the index of the first row into a zero-based page number. */
|
|
292
312
|
export declare function firstToPage(first: number, rows: number): number;
|
|
313
|
+
/** Converts a zero-based page number into the index of the first row of that page. */
|
|
293
314
|
export declare function pageToFirst(page: number, rows: number): number;
|
|
315
|
+
/** Zero-based page numbers to show as links, keeping the current page centred within `linkSize` links. */
|
|
294
316
|
export declare function pageLinksOf(page: number, pageCount: number, linkSize: number): number[];
|
|
295
317
|
//# sourceMappingURL=tectra-ng-ui-paginator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-paginator.d.ts","names":[],"sources":["../../../../packages/ui/paginator/src/paginator.types.ts","../../../../packages/ui/paginator/src/paginator.templates.ts","../../../../packages/ui/paginator/src/paginator.component.ts","../../../../packages/ui/paginator/src/paginator.utils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-paginator.d.ts","names":[],"sources":["../../../../packages/ui/paginator/src/paginator.types.ts","../../../../packages/ui/paginator/src/paginator.templates.ts","../../../../packages/ui/paginator/src/paginator.component.ts","../../../../packages/ui/paginator/src/paginator.utils.ts"],"mappings":";;;;;YACY;;;;;iBAqBK;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;;YAIU,+BAA+B;;iBAG1B;;EAEf;;EAEA;;;iBAIe;;EAEf,WAAW;;;iBAII;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;qBC/DW;WACF,aAAW,YAAA;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBAKA;WACF,aAAW,YAAA;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBCwCA;mBACM;UAET;UACA;;WAEC,+BAAK;;WACL,8BAAI;;WACJ,sCAAY;;WACZ,sCAAY;;WACZ,6CAAmB;;WACnB,2CAAiB;;WACjB,4CAAkB,YAAA;;WAClB,oCAAU;;WACV,2CAAiB;;WACjB,uCAAa;;WACb,+CAAqB;;WACrB,mDAAyB;;WACzB,gDAAsB;;WACtB,6CAAmB;;WACnB,mCAAS;;WACT,kCAAQ;;WACR,gCAAM;;WACN,8CAAoB;;WACpB,uCAAa;;WACb,0CAAgB;;WAChB,sCAAY;;WACZ,sCAAY;;WACZ,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,kDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,oCAAU,iBAAA;WAEV,uCAAa,OAAA;WACb,qCAAW,OAAA;WAEX,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,kDAAA;WACX,mCAAS;;;WAET,iCAAO;WASP,mCAAS;WACT,8BAAI;WACJ,+BAAK;WACL,qCAAW;WACX,oCAAU;WACV,mCAAS;WAGT,kCAAQ;WACR,iCAAO;WACP,+BAAK,OAAA;WAOL,0CAAgB,OAAA;WAiBhB,yCAAe;;;;WAIf,2CAAiB;WAejB,oCAAU;;EAenB,WAAW;EASX,WAAW;EASX,OAAO,OAAO;EAWd,UAAU;EAIV,OAAO;SA1JI,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;;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;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA;;;;wBChDR,YAAY,sBAAsB;;wBAMlC,YAAY,eAAe;;wBAK3B,YAAY,cAAc;;wBAK1B,YAAY,cAAc,mBAAmB"}
|
|
@@ -3,169 +3,116 @@ import { TxMenuItem, TxMenuItemEvent } from "@tectra-ng/ui/menu";
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import { TemplateRef } from "@angular/core";
|
|
5
5
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
6
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
6
|
+
import { TectraDeepPartial, TectraPanelMenuTokens } from "@tectra-ng/themes";
|
|
7
|
+
/** Look of `tx-panel-menu`: `panel` (titled blocks) or `sidebar` (flat navigation). */
|
|
7
8
|
export type TxPanelMenuVariant = 'panel' | 'sidebar';
|
|
9
|
+
/** Open state of submenus by item key: `true` for an expanded item. */
|
|
8
10
|
export type TxPanelMenuExpandedKeys = Record<string, boolean>;
|
|
11
|
+
/** Parts of `tx-panel-menu` that `pt` can style. */
|
|
9
12
|
export type TxPanelMenuPart = 'root' | 'panel' | 'header' | 'section' | 'tree' | 'item' | 'icon' | 'label' | 'badge' | 'lock' | 'submenuIcon' | 'separator';
|
|
13
|
+
/** One entry of `tx-panel-menu`: a menu item with nested items, an initial open state and active matching. */
|
|
10
14
|
export interface TxPanelMenuItem<TData = unknown> extends Omit<TxMenuItem<TData>, 'items'> {
|
|
15
|
+
/** Nested items shown as a submenu. */
|
|
11
16
|
items?: TxPanelMenuItem<TData>[];
|
|
17
|
+
/** Whether the submenu starts open. */
|
|
12
18
|
expanded?: boolean;
|
|
19
|
+
/** Marks the item as the current one, regardless of the route. */
|
|
13
20
|
active?: boolean;
|
|
21
|
+
/** Options that decide when `routerLink` counts as active: `{ exact }` or router match options. */
|
|
14
22
|
routerLinkActiveOptions?: {
|
|
15
23
|
exact: boolean;
|
|
16
24
|
} | Partial<IsActiveMatchOptions>;
|
|
17
25
|
}
|
|
26
|
+
/** Payload of a panel menu item click: the original event and the clicked item. */
|
|
18
27
|
export type TxPanelMenuItemEvent<TData = unknown> = TxMenuItemEvent<TData>;
|
|
28
|
+
/** Context of the item template of `tx-panel-menu`. */
|
|
19
29
|
export interface TxPanelMenuItemContext<TData = unknown> {
|
|
30
|
+
/** The item being rendered. */
|
|
20
31
|
$implicit: TxPanelMenuItem<TData>;
|
|
32
|
+
/** The item being rendered. */
|
|
21
33
|
item: TxPanelMenuItem<TData>;
|
|
34
|
+
/** Nesting depth of the item, from `0` at the top. */
|
|
22
35
|
level: number;
|
|
36
|
+
/** Whether the item is the current one. */
|
|
23
37
|
active: boolean;
|
|
38
|
+
/** Whether the submenu of the item is open. */
|
|
24
39
|
expanded: boolean;
|
|
40
|
+
/** Whether the item has nested items. */
|
|
25
41
|
hasSubmenu: boolean;
|
|
26
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* `<ng-template txPanelMenuItem let-item let-level="level" let-active="active" let-expanded="expanded" let-hasSubmenu="hasSubmenu">` — content of every header and item
|
|
45
|
+
* @see https://tectra-ng.com/components/panel-menu
|
|
46
|
+
*/
|
|
27
47
|
export declare class TxPanelMenuItemTemplate {
|
|
28
48
|
readonly template: TemplateRef<TxPanelMenuItemContext<unknown>>;
|
|
29
49
|
static ngTemplateContextGuard(_directive: TxPanelMenuItemTemplate, context: unknown): context is TxPanelMenuItemContext;
|
|
30
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxPanelMenuItemTemplate, never>;
|
|
31
51
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxPanelMenuItemTemplate, "ng-template[txPanelMenuItem]", never, {}, {}, never, never, true, never>;
|
|
32
52
|
}
|
|
53
|
+
/** Internal tree node of `tx-panel-menu`: an item with its key, depth, ancestors and children. */
|
|
33
54
|
export interface TxPanelMenuNode {
|
|
55
|
+
/** The menu item behind the node. */
|
|
34
56
|
item: TxPanelMenuItem;
|
|
57
|
+
/** Key of the node: the item `id` or its position path; used in `expandedKeys`. */
|
|
35
58
|
key: string;
|
|
59
|
+
/** DOM id of the node element. */
|
|
36
60
|
id: string;
|
|
61
|
+
/** Nesting depth of the node, from `0` at the top. */
|
|
37
62
|
level: number;
|
|
63
|
+
/** Keys of the parent nodes, outermost first. */
|
|
38
64
|
ancestors: string[];
|
|
65
|
+
/** Parent node, or `null` at the top level. */
|
|
39
66
|
parent: TxPanelMenuNode | null;
|
|
67
|
+
/** Child nodes shown in the submenu. */
|
|
40
68
|
children: TxPanelMenuNode[];
|
|
69
|
+
/** Whether the node is a separator line, not an item. */
|
|
41
70
|
separator: boolean;
|
|
42
71
|
}
|
|
72
|
+
/** Internal render block of `tx-panel-menu`: a top-level node and the nodes shown under it. */
|
|
43
73
|
interface TxPanelMenuBlock {
|
|
74
|
+
/** The top-level node of the block. */
|
|
44
75
|
node: TxPanelMenuNode;
|
|
76
|
+
/** Nodes rendered inside the block. */
|
|
45
77
|
tree: TxPanelMenuNode[];
|
|
78
|
+
/** Whether the block shows its node as a section title. */
|
|
46
79
|
titled: boolean;
|
|
47
80
|
}
|
|
81
|
+
/** How a node navigates: through the router, as a plain URL, or not at all. */
|
|
48
82
|
type TxPanelMenuLink = 'router' | 'url' | 'none';
|
|
83
|
+
/**
|
|
84
|
+
* A vertical menu of collapsible sections for app navigation. Two looks: `panel` (each root item is a bordered panel with a toggle header) and `sidebar` (root items are section titles above their links — the app sidebar). Nested items open in place with an animation; the item of the current route is highlighted and its parents open.
|
|
85
|
+
* @see https://tectra-ng.com/components/panel-menu
|
|
86
|
+
*/
|
|
49
87
|
export declare class TxPanelMenu {
|
|
50
88
|
private readonly panelMenuTheme;
|
|
51
89
|
private readonly router;
|
|
52
90
|
private readonly host;
|
|
53
91
|
private readonly txIconRegistry;
|
|
54
92
|
private readonly baseId;
|
|
93
|
+
/** The items, `TxPanelMenuItem[]` */
|
|
55
94
|
readonly model: import("@angular/core").InputSignal<TxPanelMenuItem<unknown>[]>;
|
|
95
|
+
/** `panel` or `sidebar` */
|
|
56
96
|
readonly variant: import("@angular/core").InputSignal<TxPanelMenuVariant>;
|
|
97
|
+
/** `sidebar`: shows only the icons in one column (nested items lose their indent) — the labels and section titles fade out (their space stays), badges and locks sit on the icons; for a narrow rail that opens on hover */
|
|
57
98
|
readonly collapsed: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
99
|
+
/** Several branches can be open at once; off, opening one closes its siblings (root panels in `panel`, every level in `sidebar`) */
|
|
58
100
|
readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
101
|
+
/** Two-way: the open items, `{ [key]: boolean }`; a key is the item `id` or its index path (`0-1-2`) */
|
|
59
102
|
readonly expandedKeys: import("@angular/core").ModelSignal<TxPanelMenuExpandedKeys>;
|
|
103
|
+
/** `sidebar`: numbers above it show as `99+` (zero and less are hidden) */
|
|
60
104
|
readonly badgeMax: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
105
|
+
/** Makes the menu a `navigation` landmark with this name */
|
|
61
106
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
transitionDuration: string;
|
|
66
|
-
expandDuration: string;
|
|
67
|
-
expandEasing: string;
|
|
68
|
-
fontSize: string;
|
|
69
|
-
lineHeight: string;
|
|
70
|
-
};
|
|
71
|
-
panel: {
|
|
72
|
-
background: string;
|
|
73
|
-
borderColor: string;
|
|
74
|
-
borderWidth: string;
|
|
75
|
-
color: string;
|
|
76
|
-
padding: string;
|
|
77
|
-
borderRadius: string;
|
|
78
|
-
};
|
|
79
|
-
list: {
|
|
80
|
-
gap: string;
|
|
81
|
-
};
|
|
82
|
-
item: {
|
|
83
|
-
padding: string;
|
|
84
|
-
gap: string;
|
|
85
|
-
borderRadius: string;
|
|
86
|
-
color: string;
|
|
87
|
-
fontWeight: string;
|
|
88
|
-
focusBackground: string;
|
|
89
|
-
focusColor: string;
|
|
90
|
-
activeBackground: string;
|
|
91
|
-
activeColor: string;
|
|
92
|
-
disabledOpacity: string;
|
|
93
|
-
focusRingWidth: string;
|
|
94
|
-
focusRingColor: string;
|
|
95
|
-
focusRingOffset: string;
|
|
96
|
-
};
|
|
97
|
-
icon: {
|
|
98
|
-
size: string;
|
|
99
|
-
color: string;
|
|
100
|
-
focusColor: string;
|
|
101
|
-
};
|
|
102
|
-
submenu: {
|
|
103
|
-
indent: string;
|
|
104
|
-
};
|
|
105
|
-
submenuIcon: {
|
|
106
|
-
size: string;
|
|
107
|
-
color: string;
|
|
108
|
-
focusColor: string;
|
|
109
|
-
};
|
|
110
|
-
separator: {
|
|
111
|
-
color: string;
|
|
112
|
-
margin: string;
|
|
113
|
-
};
|
|
114
|
-
sidebar: {
|
|
115
|
-
sectionPadding: string;
|
|
116
|
-
sectionFontSize: string;
|
|
117
|
-
sectionFontWeight: string;
|
|
118
|
-
sectionColor: string;
|
|
119
|
-
itemMargin: string;
|
|
120
|
-
itemPadding: string;
|
|
121
|
-
itemBadgePaddingEnd: string;
|
|
122
|
-
itemBorderRadius: string;
|
|
123
|
-
itemFontWeight: string;
|
|
124
|
-
itemColor: string;
|
|
125
|
-
itemHoverBackground: string;
|
|
126
|
-
itemHoverColor: string;
|
|
127
|
-
iconSize: string;
|
|
128
|
-
iconGap: string;
|
|
129
|
-
iconColor: string;
|
|
130
|
-
activeBackground: string;
|
|
131
|
-
activeColor: string;
|
|
132
|
-
activeHoverBackground: string;
|
|
133
|
-
activeFontWeight: string;
|
|
134
|
-
indent1: string;
|
|
135
|
-
indent2: string;
|
|
136
|
-
indent3: string;
|
|
137
|
-
indentStep: string;
|
|
138
|
-
togglerSize: string;
|
|
139
|
-
disabledOpacity: string;
|
|
140
|
-
focusShadow: string;
|
|
141
|
-
badgeSize: string;
|
|
142
|
-
badgePadding: string;
|
|
143
|
-
badgeGap: string;
|
|
144
|
-
badgeFontSize: string;
|
|
145
|
-
badgeFontWeight: string;
|
|
146
|
-
badgeBackground: string;
|
|
147
|
-
badgeColor: string;
|
|
148
|
-
lockSize: string;
|
|
149
|
-
lockGap: string;
|
|
150
|
-
lockColor: string;
|
|
151
|
-
revealDuration: string;
|
|
152
|
-
revealEasing: string;
|
|
153
|
-
hideDuration: string;
|
|
154
|
-
collapsedRingColor: string;
|
|
155
|
-
collapsedBadgeTop: string;
|
|
156
|
-
collapsedBadgeStart: string;
|
|
157
|
-
collapsedBadgePadding: string;
|
|
158
|
-
collapsedLockTop: string;
|
|
159
|
-
collapsedLockStart: string;
|
|
160
|
-
collapsedLockSize: string;
|
|
161
|
-
collapsedLockFontSize: string;
|
|
162
|
-
collapsedLockColor: string;
|
|
163
|
-
collapsedLockBackground: string;
|
|
164
|
-
};
|
|
165
|
-
}> | undefined>;
|
|
107
|
+
/** Design tokens of this instance (`panelMenu`) */
|
|
108
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraPanelMenuTokens> | undefined>;
|
|
109
|
+
/** Classes and styles of the parts: `root`, `panel`, `header`, `section`, `tree`, `item`, `icon`, `label`, `badge`, `lock`, `submenuIcon`, `separator` */
|
|
166
110
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxPanelMenuPart, import("@tectra-ng/core/config").TxPassThroughValue<TxPanelMenu>>> | undefined>;
|
|
111
|
+
/** How `pt` merges with the global pass-through */
|
|
167
112
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
113
|
+
/** Removes the tectra styles */
|
|
168
114
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
115
|
+
/** An item was clicked: `{ item, originalEvent }` (after its `command`) */
|
|
169
116
|
readonly itemClick: import("@angular/core").OutputEmitterRef<TxPanelMenuItemEvent>;
|
|
170
117
|
protected readonly itemTemplate: import("@angular/core").Signal<TxPanelMenuItemTemplate | undefined>;
|
|
171
118
|
protected readonly focusKey: import("@angular/core").WritableSignal<string | null>;
|