@tectra-ng/ui 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data-view/README.md +9 -1
- package/dialog/README.md +3 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-dialog.mjs +51 -0
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +2 -2
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +20 -3
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui.mjs +1 -1
- package/fesm2022/tectra-ng-ui.mjs.map +1 -1
- package/package.json +9 -9
- package/table/README.md +1 -0
- package/tree-select/README.md +1 -0
- package/types/tectra-ng-ui-accordion.d.ts +96 -65
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -1
- package/types/tectra-ng-ui-amount.d.ts +40 -17
- package/types/tectra-ng-ui-amount.d.ts.map +1 -1
- package/types/tectra-ng-ui-analog-clock.d.ts +28 -41
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
- package/types/tectra-ng-ui-autocomplete.d.ts +35 -96
- package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
- package/types/tectra-ng-ui-avatar.d.ts +84 -259
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
- package/types/tectra-ng-ui-badge.d.ts +18 -61
- package/types/tectra-ng-ui-badge.d.ts.map +1 -1
- package/types/tectra-ng-ui-breadcrumb.d.ts +53 -36
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -1
- package/types/tectra-ng-ui-button-group.d.ts +4 -0
- package/types/tectra-ng-ui-button-group.d.ts.map +1 -1
- package/types/tectra-ng-ui-button.d.ts +45 -266
- package/types/tectra-ng-ui-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-card.d.ts +14 -16
- package/types/tectra-ng-ui-card.d.ts.map +1 -1
- package/types/tectra-ng-ui-carousel.d.ts +55 -27
- package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
- package/types/tectra-ng-ui-cascade-select.d.ts +48 -8
- package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-checkbox.d.ts +79 -119
- package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
- package/types/tectra-ng-ui-chip.d.ts +19 -22
- package/types/tectra-ng-ui-chip.d.ts.map +1 -1
- package/types/tectra-ng-ui-chips-input.d.ts +41 -11
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-color-picker.d.ts +51 -47
- package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
- package/types/tectra-ng-ui-confirm.d.ts +45 -0
- package/types/tectra-ng-ui-confirm.d.ts.map +1 -1
- package/types/tectra-ng-ui-countdown.d.ts +42 -10
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
- package/types/tectra-ng-ui-country-select.d.ts +41 -96
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-country.d.ts +40 -17
- package/types/tectra-ng-ui-country.d.ts.map +1 -1
- package/types/tectra-ng-ui-data-view.d.ts +92 -34
- package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
- package/types/tectra-ng-ui-datepicker.d.ts +186 -147
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
- package/types/tectra-ng-ui-dialog.d.ts +149 -67
- package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
- package/types/tectra-ng-ui-divider.d.ts +17 -12
- package/types/tectra-ng-ui-divider.d.ts.map +1 -1
- package/types/tectra-ng-ui-drawer.d.ts +31 -67
- package/types/tectra-ng-ui-drawer.d.ts.map +1 -1
- package/types/tectra-ng-ui-email-suggestion.d.ts +25 -8
- package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -1
- package/types/tectra-ng-ui-export-font.d.ts +1 -0
- package/types/tectra-ng-ui-export-font.d.ts.map +1 -1
- package/types/tectra-ng-ui-export.d.ts +238 -0
- package/types/tectra-ng-ui-export.d.ts.map +1 -1
- package/types/tectra-ng-ui-field.d.ts +24 -11
- package/types/tectra-ng-ui-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-fieldset.d.ts +14 -23
- package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
- package/types/tectra-ng-ui-file-upload.d.ts +127 -115
- package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
- package/types/tectra-ng-ui-galleria.d.ts +84 -84
- package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
- package/types/tectra-ng-ui-highlight-text.d.ts +24 -10
- package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -1
- package/types/tectra-ng-ui-icon-field.d.ts +20 -0
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-image.d.ts +60 -36
- package/types/tectra-ng-ui-image.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-group.d.ts +9 -0
- package/types/tectra-ng-ui-input-group.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-mask.d.ts +39 -0
- package/types/tectra-ng-ui-input-mask.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-number.d.ts +73 -15
- package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-otp.d.ts +28 -21
- package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
- package/types/tectra-ng-ui-input.d.ts +17 -50
- package/types/tectra-ng-ui-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-key-filter.d.ts +14 -0
- package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
- package/types/tectra-ng-ui-knob.d.ts +38 -18
- package/types/tectra-ng-ui-knob.d.ts.map +1 -1
- package/types/tectra-ng-ui-label.d.ts +19 -0
- package/types/tectra-ng-ui-label.d.ts.map +1 -1
- package/types/tectra-ng-ui-link.d.ts +39 -34
- package/types/tectra-ng-ui-link.d.ts.map +1 -1
- package/types/tectra-ng-ui-list-input.d.ts +54 -45
- package/types/tectra-ng-ui-list-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-listbox.d.ts +24 -14
- package/types/tectra-ng-ui-listbox.d.ts.map +1 -1
- package/types/tectra-ng-ui-mention-textarea.d.ts +36 -9
- package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-menu.d.ts +92 -166
- package/types/tectra-ng-ui-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-menubar.d.ts +29 -58
- package/types/tectra-ng-ui-menubar.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +61 -126
- package/types/tectra-ng-ui-message.d.ts.map +1 -1
- package/types/tectra-ng-ui-month-calendar.d.ts +98 -87
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
- package/types/tectra-ng-ui-multiselect.d.ts +26 -96
- package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
- package/types/tectra-ng-ui-overlay-badge.d.ts +20 -9
- package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -1
- package/types/tectra-ng-ui-paginator.d.ts +69 -47
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel-menu.d.ts +52 -105
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel.d.ts +22 -30
- package/types/tectra-ng-ui-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-password-generator.d.ts +27 -0
- package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
- package/types/tectra-ng-ui-password.d.ts +55 -26
- package/types/tectra-ng-ui-password.d.ts.map +1 -1
- package/types/tectra-ng-ui-pill.d.ts +23 -70
- package/types/tectra-ng-ui-pill.d.ts.map +1 -1
- package/types/tectra-ng-ui-popover.d.ts +58 -46
- package/types/tectra-ng-ui-popover.d.ts.map +1 -1
- package/types/tectra-ng-ui-progress-bar.d.ts +32 -28
- package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
- package/types/tectra-ng-ui-progress-spinner.d.ts +18 -16
- package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -1
- package/types/tectra-ng-ui-radio-button.d.ts +64 -115
- package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-rating.d.ts +40 -29
- package/types/tectra-ng-ui-rating.d.ts.map +1 -1
- package/types/tectra-ng-ui-scroll-panel.d.ts +22 -17
- package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-select.d.ts +169 -100
- package/types/tectra-ng-ui-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-skeleton.d.ts +34 -37
- package/types/tectra-ng-ui-skeleton.d.ts.map +1 -1
- package/types/tectra-ng-ui-slider.d.ts +37 -33
- package/types/tectra-ng-ui-slider.d.ts.map +1 -1
- package/types/tectra-ng-ui-sparkline.d.ts +22 -15
- package/types/tectra-ng-ui-sparkline.d.ts.map +1 -1
- package/types/tectra-ng-ui-speed-dial.d.ts +34 -11
- package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
- package/types/tectra-ng-ui-split-button.d.ts +28 -7
- package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-splitter.d.ts +47 -23
- package/types/tectra-ng-ui-splitter.d.ts.map +1 -1
- package/types/tectra-ng-ui-stat-tiles.d.ts +39 -91
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
- package/types/tectra-ng-ui-status-icon.d.ts +19 -23
- package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
- package/types/tectra-ng-ui-stepper.d.ts +106 -133
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +415 -183
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +91 -133
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
- package/types/tectra-ng-ui-tag.d.ts +46 -135
- package/types/tectra-ng-ui-tag.d.ts.map +1 -1
- package/types/tectra-ng-ui-textarea.d.ts +25 -31
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-timeline.d.ts +39 -27
- package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
- package/types/tectra-ng-ui-toast.d.ts +84 -78
- package/types/tectra-ng-ui-toast.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-button.d.ts +29 -55
- package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-switch.d.ts +41 -55
- package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
- package/types/tectra-ng-ui-toolbar.d.ts +15 -14
- package/types/tectra-ng-ui-toolbar.d.ts.map +1 -1
- package/types/tectra-ng-ui-tooltip.d.ts +72 -22
- package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +65 -104
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-table.d.ts +30 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree.d.ts +197 -69
- package/types/tectra-ng-ui-tree.d.ts.map +1 -1
- package/types/tectra-ng-ui-truncate-text.d.ts +21 -14
- package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
- package/types/tectra-ng-ui-virtual-scroller.d.ts +97 -13
- package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
- package/types/tectra-ng-ui.d.ts +2 -1
- package/types/tectra-ng-ui.d.ts.map +1 -1
|
@@ -2,52 +2,87 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { TemplateRef } from "@angular/core";
|
|
3
3
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
4
4
|
import { TxPlacement } from "@tectra-ng/core/overlay";
|
|
5
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
5
|
+
import { TectraDeepPartial, TectraMenuTokens } from "@tectra-ng/themes";
|
|
6
|
+
/** Color role of a menu item; `danger` marks destructive actions. */
|
|
6
7
|
export type TxMenuItemSeverity = 'danger';
|
|
8
|
+
/** Color of the icon button of an item in `tx-context-menu`. */
|
|
7
9
|
export type TxMenuIconSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'help' | 'contrast';
|
|
10
|
+
/** Parts of `tx-menu` and its variants that `pt` can style. */
|
|
8
11
|
export type TxMenuPart = 'root' | 'item' | 'icon' | 'label' | 'shortcut' | 'badge' | 'separator' | 'groupLabel' | 'submenuIcon';
|
|
12
|
+
/** Event of a menu item click or command. */
|
|
9
13
|
export interface TxMenuItemEvent<TData = unknown> {
|
|
14
|
+
/** The item that was activated. */
|
|
10
15
|
item: TxMenuItem<TData>;
|
|
16
|
+
/** Browser event that activated the item. */
|
|
11
17
|
originalEvent: Event;
|
|
12
18
|
}
|
|
19
|
+
/** One entry of a menu: a command, a link, a separator or a group of sub-items. */
|
|
13
20
|
export interface TxMenuItem<TData = unknown> {
|
|
21
|
+
/** Identifier of the item, for your own use. */
|
|
14
22
|
id?: string;
|
|
23
|
+
/** Text of the item. */
|
|
15
24
|
label?: string;
|
|
25
|
+
/** Icon name or icon class shown before the label. */
|
|
16
26
|
icon?: string;
|
|
27
|
+
/** Color of the icon button in `tx-context-menu` (default `primary`). */
|
|
17
28
|
iconSeverity?: TxMenuIconSeverity;
|
|
29
|
+
/** Called when the item is activated. */
|
|
18
30
|
command?: (event: TxMenuItemEvent<TData>) => void;
|
|
31
|
+
/** Router commands the item links to. */
|
|
19
32
|
routerLink?: string | readonly unknown[];
|
|
33
|
+
/** Query parameters of the `routerLink`. */
|
|
20
34
|
queryParams?: Record<string, unknown>;
|
|
35
|
+
/** Fragment of the `routerLink`. */
|
|
21
36
|
fragment?: string;
|
|
37
|
+
/** External address the item links to. */
|
|
22
38
|
url?: string;
|
|
39
|
+
/** Link target of `url`, such as `_blank`. */
|
|
23
40
|
target?: string;
|
|
41
|
+
/** Makes the item inactive. */
|
|
24
42
|
disabled?: boolean;
|
|
43
|
+
/** Set to `false` to hide the item. */
|
|
25
44
|
visible?: boolean;
|
|
45
|
+
/** Renders a divider line instead of an item. */
|
|
26
46
|
separator?: boolean;
|
|
47
|
+
/** Marks the item as `danger`. */
|
|
27
48
|
severity?: TxMenuItemSeverity;
|
|
49
|
+
/** Small badge shown at the end of the item. */
|
|
28
50
|
badge?: string | number;
|
|
51
|
+
/** Shortcut text shown at the end of the item; display only, bind the keys yourself. */
|
|
29
52
|
shortcut?: string;
|
|
53
|
+
/** Tooltip text of the item. */
|
|
30
54
|
title?: string;
|
|
55
|
+
/** Child items: a group in `tx-menu`, a sub-menu in `tx-tiered-menu` and `tx-context-menu`. */
|
|
31
56
|
items?: TxMenuItem<TData>[];
|
|
57
|
+
/** Your own data, passed back in events and templates. */
|
|
32
58
|
data?: TData;
|
|
33
59
|
}
|
|
60
|
+
/** Context of a `txMenuItem` template: one menu item. */
|
|
34
61
|
export interface TxMenuItemContext<TData = unknown> {
|
|
62
|
+
/** The item to render. */
|
|
35
63
|
$implicit: TxMenuItem<TData>;
|
|
64
|
+
/** `true` when the item opens a sub-menu. */
|
|
36
65
|
hasSubmenu: boolean;
|
|
37
66
|
}
|
|
38
|
-
|
|
39
|
-
tiered: boolean;
|
|
40
|
-
itemTemplate: TemplateRef<TxMenuItemContext> | null;
|
|
41
|
-
unstyled: boolean;
|
|
42
|
-
}
|
|
67
|
+
/** Where a menu list sits: inline in the page, in a popup overlay or in a sub-menu overlay. */
|
|
43
68
|
export type TxMenuPanel = 'inline' | 'popup' | 'submenu';
|
|
69
|
+
/** Item to focus when a list opens: the first, the last or none. */
|
|
44
70
|
export type TxMenuFocus = 'first' | 'last' | null;
|
|
71
|
+
/** Look of a menu list: `default` or `context` for context menus. */
|
|
45
72
|
export type TxMenuVariant = 'default' | 'context';
|
|
73
|
+
/** One row of a menu list: an item, a separator or a group heading. */
|
|
46
74
|
interface TxMenuEntry {
|
|
75
|
+
/** Whether the row is an item, a separator or a group heading. */
|
|
47
76
|
kind: 'item' | 'separator' | 'group';
|
|
77
|
+
/** The menu item behind the row. */
|
|
48
78
|
item: TxMenuItem;
|
|
79
|
+
/** Unique element id of the row. */
|
|
49
80
|
id: string;
|
|
50
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* The list of items shared by `tx-menu`, `tx-tiered-menu`, `tx-context-menu` and `tx-menubar`; handles
|
|
84
|
+
* keyboard and sub-menus.
|
|
85
|
+
*/
|
|
51
86
|
export declare class TxMenuList {
|
|
52
87
|
private readonly menuTheme;
|
|
53
88
|
private host;
|
|
@@ -58,15 +93,21 @@ export declare class TxMenuList {
|
|
|
58
93
|
private hoverTimer;
|
|
59
94
|
private submenu;
|
|
60
95
|
readonly items: import("@angular/core").InputSignal<TxMenuItem<unknown>[]>;
|
|
96
|
+
/** Nested items open as sub-menus (on by default for `tx-tiered-menu`) */
|
|
61
97
|
readonly tiered: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
62
98
|
readonly level: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
63
99
|
readonly panel: import("@angular/core").InputSignal<TxMenuPanel>;
|
|
100
|
+
/** `default`, or `context` for the look of a context menu (set by `tx-context-menu`) */
|
|
64
101
|
readonly variant: import("@angular/core").InputSignal<TxMenuVariant>;
|
|
65
102
|
readonly itemTemplate: import("@angular/core").InputSignal<TemplateRef<TxMenuItemContext<unknown>> | null>;
|
|
66
103
|
readonly focusOnInit: import("@angular/core").InputSignal<TxMenuFocus>;
|
|
104
|
+
/** Name of the menu */
|
|
67
105
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
106
|
+
/** Id of the element that names the menu */
|
|
68
107
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
108
|
+
/** Removes the tectra styles */
|
|
69
109
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
110
|
+
/** Classes and styles of the parts: `root`, `item`, `icon`, `label`, `shortcut`, `badge`, `separator`, `groupLabel`, `submenuIcon` */
|
|
70
111
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxMenuPart, import("@tectra-ng/core/config").TxPassThroughPart>> | undefined>;
|
|
71
112
|
readonly selected: import("@angular/core").OutputEmitterRef<TxMenuItemEvent<unknown>>;
|
|
72
113
|
readonly leave: import("@angular/core").OutputEmitterRef<void>;
|
|
@@ -158,110 +199,54 @@ export declare class TxMenuList {
|
|
|
158
199
|
"tabbed": "tabbed";
|
|
159
200
|
}, never, never, true, never>;
|
|
160
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* `<ng-template txMenuItem let-item let-hasSubmenu="hasSubmenu">` — own content of every item
|
|
204
|
+
* @see https://tectra-ng.com/components/menu
|
|
205
|
+
*/
|
|
161
206
|
export declare class TxMenuItemTemplate {
|
|
162
207
|
readonly template: TemplateRef<TxMenuItemContext<unknown>>;
|
|
163
208
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxMenuItemTemplate, never>;
|
|
164
209
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxMenuItemTemplate, "ng-template[txMenuItem]", never, {}, {}, never, never, true, never>;
|
|
165
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* A list of actions or links. `<tx-menu>` shows them in place or as a popup from a button, `<tx-tiered-menu>` opens nested items in sub-menus, `<tx-context-menu>` opens on right-click.
|
|
213
|
+
* @see https://tectra-ng.com/components/menu
|
|
214
|
+
*/
|
|
166
215
|
export declare class TxMenu {
|
|
167
216
|
private readonly menuTheme;
|
|
168
217
|
private overlay;
|
|
169
218
|
private viewContainerRef;
|
|
170
219
|
private tagName;
|
|
171
220
|
private triggers;
|
|
221
|
+
/** Items (`TxMenuItem[]`) */
|
|
172
222
|
readonly model: import("@angular/core").InputSignal<TxMenuItem<unknown>[]>;
|
|
223
|
+
/** Opens as a popup from a trigger instead of showing in place */
|
|
173
224
|
readonly popup: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
225
|
+
/** Nested items open as sub-menus (on by default for `tx-tiered-menu`) */
|
|
174
226
|
readonly tiered: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
227
|
+
/** Popup placement, `bottom-start` by default; flips when there is no room */
|
|
175
228
|
readonly placement: import("@angular/core").InputSignal<TxPlacement>;
|
|
229
|
+
/** Gap between the popup and its trigger in px */
|
|
176
230
|
readonly offset: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
231
|
+
/** `default`, or `context` for the look of a context menu (set by `tx-context-menu`) */
|
|
177
232
|
readonly variant: import("@angular/core").InputSignal<TxMenuVariant>;
|
|
233
|
+
/** Name of the menu */
|
|
178
234
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
235
|
+
/** Id of the element that names the menu */
|
|
179
236
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
borderColor: string;
|
|
184
|
-
borderRadius: string;
|
|
185
|
-
color: string;
|
|
186
|
-
shadow: string;
|
|
187
|
-
padding: string;
|
|
188
|
-
gap: string;
|
|
189
|
-
minWidth: string;
|
|
190
|
-
maxHeight: string;
|
|
191
|
-
fontSize: string;
|
|
192
|
-
lineHeight: string;
|
|
193
|
-
};
|
|
194
|
-
item: {
|
|
195
|
-
padding: string;
|
|
196
|
-
gap: string;
|
|
197
|
-
borderRadius: string;
|
|
198
|
-
color: string;
|
|
199
|
-
fontWeight: string;
|
|
200
|
-
focusBackground: string;
|
|
201
|
-
focusColor: string;
|
|
202
|
-
activeBackground: string;
|
|
203
|
-
disabledOpacity: string;
|
|
204
|
-
dangerColor: string;
|
|
205
|
-
dangerFocusBackground: string;
|
|
206
|
-
};
|
|
207
|
-
icon: {
|
|
208
|
-
color: string;
|
|
209
|
-
focusColor: string;
|
|
210
|
-
size: string;
|
|
211
|
-
};
|
|
212
|
-
shortcut: {
|
|
213
|
-
color: string;
|
|
214
|
-
fontSize: string;
|
|
215
|
-
};
|
|
216
|
-
groupLabel: {
|
|
217
|
-
padding: string;
|
|
218
|
-
color: string;
|
|
219
|
-
fontSize: string;
|
|
220
|
-
fontWeight: string;
|
|
221
|
-
};
|
|
222
|
-
submenuIcon: {
|
|
223
|
-
size: string;
|
|
224
|
-
};
|
|
225
|
-
separator: {
|
|
226
|
-
color: string;
|
|
227
|
-
margin: string;
|
|
228
|
-
};
|
|
229
|
-
popup: {
|
|
230
|
-
background: string;
|
|
231
|
-
borderColor: string;
|
|
232
|
-
padding: string;
|
|
233
|
-
gap: string;
|
|
234
|
-
minWidth: string;
|
|
235
|
-
itemPadding: string;
|
|
236
|
-
itemGap: string;
|
|
237
|
-
itemBorderRadius: string;
|
|
238
|
-
fontSize: string;
|
|
239
|
-
fontWeight: string;
|
|
240
|
-
itemBorderWidth: string;
|
|
241
|
-
};
|
|
242
|
-
context: {
|
|
243
|
-
background: string;
|
|
244
|
-
borderColor: string;
|
|
245
|
-
blur: string;
|
|
246
|
-
padding: string;
|
|
247
|
-
minWidth: string;
|
|
248
|
-
maxWidth: string;
|
|
249
|
-
maxHeight: string;
|
|
250
|
-
itemPadding: string;
|
|
251
|
-
itemGap: string;
|
|
252
|
-
iconButtonSize: string;
|
|
253
|
-
iconButtonFontSize: string;
|
|
254
|
-
iconButtonBorderRadius: string;
|
|
255
|
-
disabledOpacity: string;
|
|
256
|
-
itemBorderRadius: string;
|
|
257
|
-
fontSize: string;
|
|
258
|
-
};
|
|
259
|
-
}> | undefined>;
|
|
237
|
+
/** Design tokens of this menu (`menu`) */
|
|
238
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraMenuTokens> | undefined>;
|
|
239
|
+
/** Classes and styles of the parts: `root`, `item`, `icon`, `label`, `shortcut`, `badge`, `separator`, `groupLabel`, `submenuIcon` */
|
|
260
240
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxMenuPart, import("@tectra-ng/core/config").TxPassThroughValue<TxMenu>>> | undefined>;
|
|
241
|
+
/** How `pt` merges with the global pass-through */
|
|
261
242
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
243
|
+
/** Removes the tectra styles */
|
|
262
244
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
245
|
+
/** An item without sub-items was chosen (`{ item, originalEvent }`); a popup closes after it */
|
|
263
246
|
readonly itemSelected: import("@angular/core").OutputEmitterRef<TxMenuItemEvent<unknown>>;
|
|
247
|
+
/** The popup opened */
|
|
264
248
|
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
249
|
+
/** The popup closed */
|
|
265
250
|
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
266
251
|
readonly itemTemplate: import("@angular/core").Signal<TxMenuItemTemplate | undefined>;
|
|
267
252
|
private readonly panel;
|
|
@@ -351,9 +336,14 @@ export declare class TxMenu {
|
|
|
351
336
|
"closed": "closed";
|
|
352
337
|
}, ["itemTemplate"], never, true, never>;
|
|
353
338
|
}
|
|
339
|
+
/**
|
|
340
|
+
* A list of actions or links. `<tx-menu>` shows them in place or as a popup from a button, `<tx-tiered-menu>` opens nested items in sub-menus, `<tx-context-menu>` opens on right-click.
|
|
341
|
+
* @see https://tectra-ng.com/components/menu
|
|
342
|
+
*/
|
|
354
343
|
export declare class TxMenuTrigger {
|
|
355
344
|
private readonly menuTheme;
|
|
356
345
|
readonly host: HTMLElement;
|
|
346
|
+
/** On a button: the popup menu it opens */
|
|
357
347
|
readonly txMenuTrigger: import("@angular/core").InputSignal<TxMenu>;
|
|
358
348
|
constructor();
|
|
359
349
|
open(event: Event, focus: TxMenuFocus): void;
|
|
@@ -366,100 +356,36 @@ export declare class TxMenuTrigger {
|
|
|
366
356
|
};
|
|
367
357
|
}, {}, never, never, true, never>;
|
|
368
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
* A list of actions or links. `<tx-menu>` shows them in place or as a popup from a button, `<tx-tiered-menu>` opens nested items in sub-menus, `<tx-context-menu>` opens on right-click.
|
|
361
|
+
* @see https://tectra-ng.com/components/menu
|
|
362
|
+
*/
|
|
369
363
|
export declare class TxContextMenu {
|
|
370
364
|
private readonly menuTheme;
|
|
371
365
|
private document;
|
|
372
366
|
private anchor;
|
|
373
367
|
private readonly menu;
|
|
368
|
+
/** Items (`TxMenuItem[]`) */
|
|
374
369
|
readonly model: import("@angular/core").InputSignal<TxMenuItem<unknown>[]>;
|
|
370
|
+
/** element that opens the menu on right-click, the context menu key or Shift + F10 */
|
|
375
371
|
readonly target: import("@angular/core").InputSignal<Element | null | undefined>;
|
|
372
|
+
/** opens on right-click anywhere on the page */
|
|
376
373
|
readonly global: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
374
|
+
/** Name of the menu */
|
|
377
375
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
borderColor: string;
|
|
382
|
-
borderRadius: string;
|
|
383
|
-
color: string;
|
|
384
|
-
shadow: string;
|
|
385
|
-
padding: string;
|
|
386
|
-
gap: string;
|
|
387
|
-
minWidth: string;
|
|
388
|
-
maxHeight: string;
|
|
389
|
-
fontSize: string;
|
|
390
|
-
lineHeight: string;
|
|
391
|
-
};
|
|
392
|
-
item: {
|
|
393
|
-
padding: string;
|
|
394
|
-
gap: string;
|
|
395
|
-
borderRadius: string;
|
|
396
|
-
color: string;
|
|
397
|
-
fontWeight: string;
|
|
398
|
-
focusBackground: string;
|
|
399
|
-
focusColor: string;
|
|
400
|
-
activeBackground: string;
|
|
401
|
-
disabledOpacity: string;
|
|
402
|
-
dangerColor: string;
|
|
403
|
-
dangerFocusBackground: string;
|
|
404
|
-
};
|
|
405
|
-
icon: {
|
|
406
|
-
color: string;
|
|
407
|
-
focusColor: string;
|
|
408
|
-
size: string;
|
|
409
|
-
};
|
|
410
|
-
shortcut: {
|
|
411
|
-
color: string;
|
|
412
|
-
fontSize: string;
|
|
413
|
-
};
|
|
414
|
-
groupLabel: {
|
|
415
|
-
padding: string;
|
|
416
|
-
color: string;
|
|
417
|
-
fontSize: string;
|
|
418
|
-
fontWeight: string;
|
|
419
|
-
};
|
|
420
|
-
submenuIcon: {
|
|
421
|
-
size: string;
|
|
422
|
-
};
|
|
423
|
-
separator: {
|
|
424
|
-
color: string;
|
|
425
|
-
margin: string;
|
|
426
|
-
};
|
|
427
|
-
popup: {
|
|
428
|
-
background: string;
|
|
429
|
-
borderColor: string;
|
|
430
|
-
padding: string;
|
|
431
|
-
gap: string;
|
|
432
|
-
minWidth: string;
|
|
433
|
-
itemPadding: string;
|
|
434
|
-
itemGap: string;
|
|
435
|
-
itemBorderRadius: string;
|
|
436
|
-
fontSize: string;
|
|
437
|
-
fontWeight: string;
|
|
438
|
-
itemBorderWidth: string;
|
|
439
|
-
};
|
|
440
|
-
context: {
|
|
441
|
-
background: string;
|
|
442
|
-
borderColor: string;
|
|
443
|
-
blur: string;
|
|
444
|
-
padding: string;
|
|
445
|
-
minWidth: string;
|
|
446
|
-
maxWidth: string;
|
|
447
|
-
maxHeight: string;
|
|
448
|
-
itemPadding: string;
|
|
449
|
-
itemGap: string;
|
|
450
|
-
iconButtonSize: string;
|
|
451
|
-
iconButtonFontSize: string;
|
|
452
|
-
iconButtonBorderRadius: string;
|
|
453
|
-
disabledOpacity: string;
|
|
454
|
-
itemBorderRadius: string;
|
|
455
|
-
fontSize: string;
|
|
456
|
-
};
|
|
457
|
-
}> | undefined>;
|
|
376
|
+
/** Design tokens of this menu (`menu`) */
|
|
377
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraMenuTokens> | undefined>;
|
|
378
|
+
/** Classes and styles of the parts: `root`, `item`, `icon`, `label`, `shortcut`, `badge`, `separator`, `groupLabel`, `submenuIcon` */
|
|
458
379
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxMenuPart, import("@tectra-ng/core/config").TxPassThroughValue<TxMenu>>> | undefined>;
|
|
380
|
+
/** How `pt` merges with the global pass-through */
|
|
459
381
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
382
|
+
/** Removes the tectra styles */
|
|
460
383
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
384
|
+
/** An item without sub-items was chosen (`{ item, originalEvent }`); a popup closes after it */
|
|
461
385
|
readonly itemSelected: import("@angular/core").OutputEmitterRef<TxMenuItemEvent<unknown>>;
|
|
386
|
+
/** The popup opened */
|
|
462
387
|
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
388
|
+
/** The popup closed */
|
|
463
389
|
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
464
390
|
constructor();
|
|
465
391
|
show(event: MouseEvent | KeyboardEvent): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-menu.d.ts","names":[],"sources":["../../../../packages/ui/menu/src/menu.types.ts","../../../../packages/ui/menu/src/menu-list.component.ts","../../../../packages/ui/menu/src/menu.component.ts","../../../../packages/ui/menu/src/context-menu.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-menu.d.ts","names":[],"sources":["../../../../packages/ui/menu/src/menu.types.ts","../../../../packages/ui/menu/src/menu-list.component.ts","../../../../packages/ui/menu/src/menu.component.ts","../../../../packages/ui/menu/src/context-menu.component.ts"],"mappings":"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"}
|
|
@@ -2,21 +2,36 @@ import { TxMenuItem, TxMenuItemContext, TxMenuItemEvent } from "@tectra-ng/ui/me
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { TemplateRef } from "@angular/core";
|
|
4
4
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
5
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
5
|
+
import { TectraDeepPartial, TectraMenubarTokens } from "@tectra-ng/themes";
|
|
6
|
+
/** Parts of `tx-menubar` that `pt` can style. */
|
|
6
7
|
export type TxMenubarPart = 'root' | 'start' | 'end' | 'list' | 'item' | 'icon' | 'label' | 'badge' | 'submenuIcon' | 'separator' | 'submenu' | 'mobileButton';
|
|
8
|
+
/** A menu item of `tx-menubar` with its position in the tree. */
|
|
7
9
|
export interface TxMenubarEntry {
|
|
10
|
+
/** The menu item. */
|
|
8
11
|
item: TxMenuItem;
|
|
12
|
+
/** Path of the entry in the tree, such as `1-0`. */
|
|
9
13
|
key: string;
|
|
14
|
+
/** Unique element id of the entry. */
|
|
10
15
|
id: string;
|
|
16
|
+
/** Depth of the entry; 0 for the top bar. */
|
|
11
17
|
level: number;
|
|
18
|
+
/** Entries of the item's sub-items. */
|
|
12
19
|
children: TxMenubarEntry[];
|
|
13
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* `<ng-template txMenubarItem let-item let-hasSubmenu="hasSubmenu">` — own item content, root and submenu items
|
|
23
|
+
* @see https://tectra-ng.com/components/menubar
|
|
24
|
+
*/
|
|
14
25
|
export declare class TxMenubarItemTemplate {
|
|
15
26
|
readonly template: TemplateRef<TxMenuItemContext<unknown>>;
|
|
16
27
|
static ngTemplateContextGuard(_directive: TxMenubarItemTemplate, context: unknown): context is TxMenuItemContext;
|
|
17
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxMenubarItemTemplate, never>;
|
|
18
29
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxMenubarItemTemplate, "ng-template[txMenubarItem]", never, {}, {}, never, never, true, never>;
|
|
19
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* A horizontal menu bar for the top of an app or a page. Root items open their submenus below (on the kit menu panel), deeper levels open to the side. Below the breakpoint the bar turns into a button with an inline menu where nested items open in place.
|
|
33
|
+
* @see https://tectra-ng.com/components/menubar
|
|
34
|
+
*/
|
|
20
35
|
export declare class TxMenubar {
|
|
21
36
|
private readonly menubarTheme;
|
|
22
37
|
private readonly host;
|
|
@@ -27,73 +42,29 @@ export declare class TxMenubar {
|
|
|
27
42
|
private readonly baseId;
|
|
28
43
|
private submenu;
|
|
29
44
|
private stopWatchingOutside;
|
|
45
|
+
/** The items, `TxMenuItem[]` */
|
|
30
46
|
readonly model: import("@angular/core").InputSignal<TxMenuItem<unknown>[]>;
|
|
47
|
+
/** Opens a root submenu when the pointer is over its item, without the first click */
|
|
31
48
|
readonly autoDisplay: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
49
|
+
/** Width below which the bar turns into a button with an inline menu (`960px`) */
|
|
32
50
|
readonly breakpoint: import("@angular/core").InputSignal<string>;
|
|
51
|
+
/** Accessible name of the menu bar */
|
|
33
52
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
53
|
+
/** Id of the element that names the menu bar */
|
|
34
54
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
borderColor: string;
|
|
39
|
-
borderRadius: string;
|
|
40
|
-
color: string;
|
|
41
|
-
gap: string;
|
|
42
|
-
padding: string;
|
|
43
|
-
fontSize: string;
|
|
44
|
-
transitionDuration: string;
|
|
45
|
-
};
|
|
46
|
-
item: {
|
|
47
|
-
padding: string;
|
|
48
|
-
gap: string;
|
|
49
|
-
borderRadius: string;
|
|
50
|
-
color: string;
|
|
51
|
-
fontWeight: string;
|
|
52
|
-
focusBackground: string;
|
|
53
|
-
focusColor: string;
|
|
54
|
-
activeBackground: string;
|
|
55
|
-
activeColor: string;
|
|
56
|
-
disabledOpacity: string;
|
|
57
|
-
focusRingWidth: string;
|
|
58
|
-
focusRingColor: string;
|
|
59
|
-
focusRingOffset: string;
|
|
60
|
-
icon: {
|
|
61
|
-
size: string;
|
|
62
|
-
color: string;
|
|
63
|
-
focusColor: string;
|
|
64
|
-
activeColor: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
submenuIcon: {
|
|
68
|
-
size: string;
|
|
69
|
-
color: string;
|
|
70
|
-
focusColor: string;
|
|
71
|
-
};
|
|
72
|
-
mobileButton: {
|
|
73
|
-
size: string;
|
|
74
|
-
borderRadius: string;
|
|
75
|
-
color: string;
|
|
76
|
-
hoverColor: string;
|
|
77
|
-
hoverBackground: string;
|
|
78
|
-
};
|
|
79
|
-
mobile: {
|
|
80
|
-
padding: string;
|
|
81
|
-
gap: string;
|
|
82
|
-
background: string;
|
|
83
|
-
borderColor: string;
|
|
84
|
-
borderRadius: string;
|
|
85
|
-
shadow: string;
|
|
86
|
-
indent: string;
|
|
87
|
-
offset: string;
|
|
88
|
-
expandDuration: string;
|
|
89
|
-
expandEasing: string;
|
|
90
|
-
};
|
|
91
|
-
}> | undefined>;
|
|
55
|
+
/** Design tokens of this instance (`menubar`); submenus use the `menu` tokens */
|
|
56
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraMenubarTokens> | undefined>;
|
|
57
|
+
/** Classes and styles of the parts: `root`, `start`, `end`, `list`, `item`, `icon`, `label`, `badge`, `submenuIcon`, `separator`, `submenu`, `mobileButton` */
|
|
92
58
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxMenubarPart, import("@tectra-ng/core/config").TxPassThroughValue<TxMenubar>>> | undefined>;
|
|
59
|
+
/** How `pt` merges with the global pass-through */
|
|
93
60
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
61
|
+
/** Removes the tectra styles */
|
|
94
62
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
63
|
+
/** An item without a submenu was picked: `{ item, originalEvent }` */
|
|
95
64
|
readonly itemClick: import("@angular/core").OutputEmitterRef<TxMenuItemEvent<unknown>>;
|
|
65
|
+
/** Focus came into the bar */
|
|
96
66
|
readonly focused: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
67
|
+
/** Focus left the bar */
|
|
97
68
|
readonly blurred: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
98
69
|
protected readonly itemTemplate: import("@angular/core").Signal<TxMenubarItemTemplate | undefined>;
|
|
99
70
|
private readonly submenuTemplate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-menubar.d.ts","names":[],"sources":["../../../../packages/ui/menubar/src/menubar.types.ts","../../../../packages/ui/menubar/src/menubar.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-menubar.d.ts","names":[],"sources":["../../../../packages/ui/menubar/src/menubar.types.ts","../../../../packages/ui/menubar/src/menubar.component.ts"],"mappings":";;;;;;YAGY;;iBAeK;;EAEf,MAAM;;EAEN;;EAEA;;EAEA;;EAEA,UAAU;;;;;;qBCQC;WACF,UAAQ,YAAA;SAEV,uBAAuB,YAAY,uBAAuB,mBAAmB,WAAW;SAHpF,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBA0BA;mBACM;mBAEA;mBACA;mBACA;mBACA;mBACA;mBACA;UACT;UACA;;WAEC,+BAAK,YAAA;;WACL,qCAAW;;WACX,oCAAU;;WACV,mCAAS;;WACT,wCAAc;;WACd,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,gDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,mCAAS,iBAAA;;WACT,iCAAO,iBAAA;;WACP,iCAAO,iBAAA;qBAEG,sCAAY,OAAA;mBACd;WAER;WACA,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,gDAAA;WACX,mCAAS;;;WACT,mCAAS;;;WAET,iCAAO,OAAA;WACP,iCAAO;WACP,kCAAQ;WACR,gCAAM;WACN,oCAAU;WACV,kCAAQ,eAAA;WACR,kCAAQ;;EAyBjB,YAAY,OAAO;EAInB,SAAS,OAAO;EAIhB,WAAW,OAAO;EAIlB,QAAQ,OAAO,iBAAiB;EAIhC,WAAW,OAAO,iBAAiB;EAInC;EASA,YAAY,OAAO,gBAAgB,OAAO;EAkB1C,YAAY,OAAO;EAcnB,YAAY,OAAO;EAInB,UAAU,OAAO;EAqDjB,iBAAiB,OAAO;EAYxB;EAOA,kBAAkB,OAAO;EAKzB;EAIA,UAAU,OAAO;EAMjB,WAAW,OAAO;UAMV;UAWA;UAaA;UAMA;UAkCA;UAkBA;UAeA;UAwDA;UAcA;UAcA;UAIA;UAQA;UAIA;UAKA;UAgBA;SA3bG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAS;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"}
|