@tectra-ng/ui 0.1.3 → 0.1.4
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/accordion/README.md +61 -0
- package/breadcrumb/README.md +57 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs +980 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +2 -2
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs +382 -0
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs +1452 -0
- package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-listbox.mjs +2 -2
- package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menubar.mjs +742 -0
- package/fesm2022/tectra-ng-ui-menubar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +610 -0
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs +319 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-splitter.mjs +750 -0
- package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs +1166 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-table.mjs +194 -50
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs +1218 -0
- package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-textarea.mjs +4 -1
- package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toolbar.mjs +348 -0
- package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tree-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +80 -2
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/field/README.md +1 -1
- package/file-upload/README.md +85 -0
- package/menubar/README.md +51 -0
- package/package.json +44 -4
- package/panel-menu/README.md +45 -0
- package/scroll-panel/README.md +35 -0
- package/splitter/README.md +62 -0
- package/stepper/README.md +66 -0
- package/table/README.md +1 -1
- package/tabs/README.md +69 -0
- package/toolbar/README.md +35 -0
- package/types/tectra-ng-ui-accordion.d.ts +304 -0
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts +157 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -0
- package/types/tectra-ng-ui-file-upload.d.ts +527 -0
- package/types/tectra-ng-ui-file-upload.d.ts.map +1 -0
- package/types/tectra-ng-ui-menubar.d.ts +201 -0
- package/types/tectra-ng-ui-menubar.d.ts.map +1 -0
- package/types/tectra-ng-ui-panel-menu.d.ts +244 -0
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts +94 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -0
- package/types/tectra-ng-ui-splitter.d.ts +226 -0
- package/types/tectra-ng-ui-splitter.d.ts.map +1 -0
- package/types/tectra-ng-ui-stepper.d.ts +446 -0
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -0
- package/types/tectra-ng-ui-table.d.ts +2 -4
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +420 -0
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -0
- package/types/tectra-ng-ui-textarea.d.ts +1 -0
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-toolbar.d.ts +85 -0
- package/types/tectra-ng-ui-toolbar.d.ts.map +1 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Panel menu
|
|
2
|
+
|
|
3
|
+
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.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-panel-menu [model]="items" />
|
|
7
|
+
<tx-panel-menu variant="sidebar" ariaLabel="Main" [model]="navigation" [(expandedKeys)]="open" />
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Items are `TxPanelMenuItem` — the kit menu item (`label`, `icon`, `routerLink`, `queryParams`, `fragment`, `url`, `target`, `command`, `disabled`, `visible`, `separator`, `badge`, `title`, `items`, `id`) plus `expanded` (open at the start) and `routerLinkActiveOptions` (`{ exact: true }` or router match options; a subset match by default).
|
|
11
|
+
|
|
12
|
+
## Inputs
|
|
13
|
+
| Name | Description |
|
|
14
|
+
|---|---|
|
|
15
|
+
| model | The items, `TxPanelMenuItem[]` |
|
|
16
|
+
| variant | `panel` or `sidebar` |
|
|
17
|
+
| multiple | Several branches can be open at once; off, opening one closes its siblings (root panels in `panel`, every level in `sidebar`) |
|
|
18
|
+
| expandedKeys | Two-way: the open items, `{ [key]: boolean }`; a key is the item `id` or its index path (`0-1-2`) |
|
|
19
|
+
| badgeMax | `sidebar`: numbers above it show as `99+` (zero and less are hidden) |
|
|
20
|
+
| ariaLabel | Makes the menu a `navigation` landmark with this name |
|
|
21
|
+
| dt | Design tokens of this instance (`panelMenu`) |
|
|
22
|
+
| pt | Classes and styles of the parts: `root`, `panel`, `header`, `section`, `tree`, `item`, `icon`, `label`, `badge`, `lock`, `submenuIcon`, `separator` |
|
|
23
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
24
|
+
| unstyled | Removes the tectra styles |
|
|
25
|
+
|
|
26
|
+
## Outputs
|
|
27
|
+
| Name | Description |
|
|
28
|
+
|---|---|
|
|
29
|
+
| expandedKeysChange | An item was opened or closed, or the route opened its parents |
|
|
30
|
+
| itemClick | An item was clicked: `{ item, originalEvent }` (after its `command`) |
|
|
31
|
+
|
|
32
|
+
## Slots
|
|
33
|
+
| Name | Description |
|
|
34
|
+
|---|---|
|
|
35
|
+
| txPanelMenuItem | `<ng-template txPanelMenuItem let-item let-level="level" let-active="active" let-expanded="expanded" let-hasSubmenu="hasSubmenu">` — content of every header and item |
|
|
36
|
+
|
|
37
|
+
## Keyboard
|
|
38
|
+
| Key | Action |
|
|
39
|
+
|---|---|
|
|
40
|
+
| Tab | Moves between the panel headers and into each menu |
|
|
41
|
+
| Down / Up arrow | Next / previous header, or next / previous visible item; disabled items are skipped |
|
|
42
|
+
| Home / End | First / last header or item |
|
|
43
|
+
| Right arrow | Opens a closed item, or moves into an open one |
|
|
44
|
+
| Left arrow | Closes an open item, or moves to its parent |
|
|
45
|
+
| Enter / Space | Opens or closes an item with children, follows a link or runs the command |
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Scroll panel
|
|
2
|
+
|
|
3
|
+
A scroll area with slim, themed scroll bars in place of the native ones. The bars appear while the pointer is over the panel, follow the content as it scrolls or resizes and can be dragged. Give the panel a `height` or a `max-height`.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-scroll-panel ariaLabel="Release notes" style="height: 240px">
|
|
7
|
+
<article>…</article>
|
|
8
|
+
</tx-scroll-panel>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Inputs
|
|
12
|
+
| Name | Description |
|
|
13
|
+
|---|---|
|
|
14
|
+
| step | Pixels an arrow key scrolls while a bar has focus |
|
|
15
|
+
| ariaLabel | Accessible name; makes the content a named `region` |
|
|
16
|
+
| dt | Design tokens of this instance (`scrollPanel`) |
|
|
17
|
+
| pt | Classes and styles of the parts: `root`, `content`, `barX`, `barY` |
|
|
18
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
19
|
+
| unstyled | Removes the tectra styles |
|
|
20
|
+
|
|
21
|
+
`scrollTop(value)` and `scrollLeft(value)` scroll to a position; `refresh()` measures the bars again (they update by themselves on scroll and size changes).
|
|
22
|
+
|
|
23
|
+
## Slots
|
|
24
|
+
| Name | Description |
|
|
25
|
+
|---|---|
|
|
26
|
+
| default | The content to scroll |
|
|
27
|
+
|
|
28
|
+
## Keyboard
|
|
29
|
+
| Key | Action |
|
|
30
|
+
|---|---|
|
|
31
|
+
| Tab | Moves focus to the content (it is focusable, so the native keys scroll it) |
|
|
32
|
+
| Arrows / Page Up / Page Down / Home / End | Scroll the focused content |
|
|
33
|
+
| Arrows | On a clicked bar: scroll by `step` pixels along its axis |
|
|
34
|
+
| Page Up / Page Down | On a clicked bar: scroll by one view |
|
|
35
|
+
| Home / End | On a clicked bar: scroll to the start / end |
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Splitter
|
|
2
|
+
|
|
3
|
+
Two or more panels side by side or stacked, with a gutter between them that the user drags (or moves with the keyboard) to share the space. Sizes are percentages; panels can have a minimum and a maximum, snap shut when collapsible, nest, and keep their sizes in the browser storage.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-splitter stateKey="editor-layout" (resizeEnd)="save($event.sizes)">
|
|
7
|
+
<tx-splitter-panel [size]="25" [minSize]="15" collapsible>Files</tx-splitter-panel>
|
|
8
|
+
<tx-splitter-panel [size]="75">
|
|
9
|
+
<tx-splitter layout="vertical">
|
|
10
|
+
<tx-splitter-panel>Editor</tx-splitter-panel>
|
|
11
|
+
<tx-splitter-panel [size]="30">Terminal</tx-splitter-panel>
|
|
12
|
+
</tx-splitter>
|
|
13
|
+
</tx-splitter-panel>
|
|
14
|
+
</tx-splitter>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Inputs
|
|
18
|
+
| Name | Description |
|
|
19
|
+
|---|---|
|
|
20
|
+
| layout | `horizontal` (panels side by side) or `vertical` (stacked) |
|
|
21
|
+
| panelSizes | Sizes of the panels in percent; win over the panels' own `size` |
|
|
22
|
+
| minSizes | Minimum sizes in percent for panels without their own `minSize` |
|
|
23
|
+
| gutterSize | Thickness of the gutter in pixels |
|
|
24
|
+
| step | Pixels an arrow key moves the gutter |
|
|
25
|
+
| disabled | The gutters cannot be moved |
|
|
26
|
+
| stateKey | Storage key; the sizes are saved after every resize and restored on the next visit |
|
|
27
|
+
| stateStorage | `session` or `local` storage for `stateKey` |
|
|
28
|
+
| gutterAriaLabel | Accessible name of the gutters (translated "Resize panels" by default) |
|
|
29
|
+
| size | `tx-splitter-panel`: initial size in percent (the panels share the space evenly without it) |
|
|
30
|
+
| minSize | `tx-splitter-panel`: smallest size in percent |
|
|
31
|
+
| maxSize | `tx-splitter-panel`: largest size in percent |
|
|
32
|
+
| collapsible | `tx-splitter-panel`: a drag below `minSize` snaps the panel shut, a drag back opens it at `minSize` |
|
|
33
|
+
| collapsedSize | `tx-splitter-panel`: size of the panel while shut |
|
|
34
|
+
| dt | Design tokens of this instance (`splitter`) |
|
|
35
|
+
| pt | Classes and styles of the parts: `root`, `panel`, `gutter`, `handle` |
|
|
36
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
37
|
+
| unstyled | Removes the tectra styles |
|
|
38
|
+
|
|
39
|
+
`sizes()` and `collapsed()` read the current state; `resetState()` goes back to the stored or initial sizes.
|
|
40
|
+
|
|
41
|
+
## Outputs
|
|
42
|
+
| Name | Description |
|
|
43
|
+
|---|---|
|
|
44
|
+
| resizeStart | A drag or a key press started a resize: `{ originalEvent, sizes }` |
|
|
45
|
+
| resizing | The sizes changed during the resize: `{ originalEvent, sizes }` |
|
|
46
|
+
| resizeEnd | The pointer or the key was released: `{ originalEvent, sizes }` |
|
|
47
|
+
| collapsedChange | A collapsible panel snapped shut or opened: `{ index, collapsed, sizes }` |
|
|
48
|
+
|
|
49
|
+
## Slots
|
|
50
|
+
| Name | Description |
|
|
51
|
+
|---|---|
|
|
52
|
+
| tx-splitter-panel | One panel; its content can be another `tx-splitter` |
|
|
53
|
+
|
|
54
|
+
## Keyboard
|
|
55
|
+
| Key | Action |
|
|
56
|
+
|---|---|
|
|
57
|
+
| Tab | Moves focus to the next gutter |
|
|
58
|
+
| Left / Right arrow | Moves the gutter of a horizontal splitter by `step` pixels |
|
|
59
|
+
| Up / Down arrow | Moves the gutter of a vertical splitter by `step` pixels |
|
|
60
|
+
| Home | Shrinks the panel before the gutter to its minimum (shut when collapsible) |
|
|
61
|
+
| End | Grows the panel before the gutter as far as the others allow |
|
|
62
|
+
| Enter | Collapses or restores the collapsible panel next to the gutter |
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Stepper
|
|
2
|
+
|
|
3
|
+
Two step indicators for multi-step flows.
|
|
4
|
+
|
|
5
|
+
- `tx-stepper` — a stepper with its own panels: a row of numbered steps above the panels (`tx-step-list` + `tx-step-panels`) or vertical items whose panels open under each step (`tx-step-item`). `linear` lets the panels' own buttons move on only.
|
|
6
|
+
- `tx-steps` — a step indicator built from an `items` array, without panels: numbers above the labels (`default`) or a compact track of markers with labels and descriptions (`track`) that stacks in a column when it is narrower than 560px.
|
|
7
|
+
|
|
8
|
+
```html
|
|
9
|
+
<tx-stepper [(value)]="step">
|
|
10
|
+
<tx-step-list>
|
|
11
|
+
<tx-step [value]="1">Account</tx-step>
|
|
12
|
+
<tx-step [value]="2">Profile</tx-step>
|
|
13
|
+
</tx-step-list>
|
|
14
|
+
<tx-step-panels>
|
|
15
|
+
<tx-step-panel [value]="1">
|
|
16
|
+
<ng-template txStepPanelContent let-activate>
|
|
17
|
+
…
|
|
18
|
+
<button txButton (click)="activate(2)">Next</button>
|
|
19
|
+
</ng-template>
|
|
20
|
+
</tx-step-panel>
|
|
21
|
+
<tx-step-panel [value]="2">…</tx-step-panel>
|
|
22
|
+
</tx-step-panels>
|
|
23
|
+
</tx-stepper>
|
|
24
|
+
|
|
25
|
+
<tx-steps variant="track" [items]="steps" [(activeIndex)]="current" />
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Inputs
|
|
29
|
+
| Name | Description |
|
|
30
|
+
|---|---|
|
|
31
|
+
| value | `tx-stepper`, two-way: the value of the active step. On `tx-step`, `tx-step-panel` and `tx-step-item`: the value of that step (a step and a panel inside a `tx-step-item` take the item's value) |
|
|
32
|
+
| linear | `tx-stepper`: steps cannot be picked in the header; only the panels move on through `activate` |
|
|
33
|
+
| disabled | `tx-step`: the step cannot be picked |
|
|
34
|
+
| items | `tx-steps`: the steps, `TxStepsItem[]` — `label`, `icon`, `description` (track), `disabled`, `command` (runs with `{ originalEvent, item, index }` when the step is clicked) |
|
|
35
|
+
| activeIndex | `tx-steps`, two-way: index of the current step; the steps before it are done. Set it to `items.length` to mark every step done |
|
|
36
|
+
| readonly | `tx-steps`: the steps cannot be clicked (default `true`). Off, an enabled step with a `command` can be clicked: it becomes current and runs its `command` |
|
|
37
|
+
| variant | `tx-steps`: `default` (numbers above the labels) or `track` (markers with labels and descriptions, a check on done steps) |
|
|
38
|
+
| ariaLabel | `tx-steps`: accessible name of the list |
|
|
39
|
+
| ariaLabelledBy | `tx-steps`: id of the element that names the list |
|
|
40
|
+
| dt | Design tokens of this instance (`stepper` on `tx-stepper`, `steps` on `tx-steps`) |
|
|
41
|
+
| pt | Classes and styles of the parts. `tx-stepper`: `root`, `list`, `step`, `header`, `number`, `title`, `separator`, `panels`, `panel`, `item`. `tx-steps`: `root`, `list`, `item`, `link`, `number`, `label`, `description`, `line` |
|
|
42
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
43
|
+
| unstyled | Removes the tectra styles |
|
|
44
|
+
|
|
45
|
+
## Outputs
|
|
46
|
+
| Name | Description |
|
|
47
|
+
|---|---|
|
|
48
|
+
| valueChange | `tx-stepper`: another step became active |
|
|
49
|
+
| activeIndexChange | `tx-steps`: a step was clicked (only when not `readonly`) |
|
|
50
|
+
|
|
51
|
+
## Slots
|
|
52
|
+
| Name | Description |
|
|
53
|
+
|---|---|
|
|
54
|
+
| default | `tx-step`: the step title. `tx-step-panel`: content that is always rendered |
|
|
55
|
+
| txStepPanelContent | `<ng-template txStepPanelContent let-activate let-value="value" let-index="index" let-active="active">` — panel content, rendered when the step is first opened; `activate(value)` moves to a step |
|
|
56
|
+
| txStepContent | `<ng-template txStepContent let-value let-active="active" let-completed="completed" let-index="index" let-activate="activate">` — own step header instead of the number and the title |
|
|
57
|
+
| txStepsItem | `<ng-template txStepsItem let-item let-index="index" let-active="active" let-done="done">` — own content of a `tx-steps` step |
|
|
58
|
+
|
|
59
|
+
## Keyboard
|
|
60
|
+
| Key | Action |
|
|
61
|
+
|---|---|
|
|
62
|
+
| Tab | Moves to the active step of a step list, then into the panel; in vertical items every step header is a tab stop |
|
|
63
|
+
| Arrow Right / Arrow Down | Next step of a step list (or next clickable step of `tx-steps`), wraps around |
|
|
64
|
+
| Arrow Left / Arrow Up | Previous step, wraps around |
|
|
65
|
+
| Home / End | First / last step |
|
|
66
|
+
| Enter / Space | Opens the focused step |
|
package/table/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Data table for lists: sorting, pagination, server data, selection, row actions w
|
|
|
10
10
|
</tx-table>
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Columns are `TxTableColumn` objects: `field` (a dot reads a nested value, `team.name`), `header`, `sortable` (on unless `false`), `sortField`, `reorderable`, `resizable`, `hideable`, `hidden`, `width` (fixed, no resize), `initialWidth`, `minWidth`, `maxWidth` (CSS lengths; columns are 100px until resized), `frozen` (`start` / `end`), `align` (`start` / `center` / `end`), `headerClass`, `cellClass`, `footer`, `cardTitle` (this column is the title of the card), `hideInCard`; filters: `filter`, `filterField`, `filterType` (`text`, `numeric`, `date
|
|
13
|
+
Columns are `TxTableColumn` objects: `field` (a dot reads a nested value, `team.name`), `header`, `sortable` (on unless `false`), `sortField`, `reorderable`, `resizable`, `hideable`, `hidden`, `width` (fixed, no resize), `initialWidth`, `minWidth`, `maxWidth` (CSS lengths; columns are 100px until resized), `frozen` (`start` / `end`), `align` (`start` / `center` / `end`), `headerClass`, `cellClass`, `footer`, `cardTitle` (this column is the title of the card), `hideInCard`; filters: `filter`, `filterField`, `filterType` (`text`, `numeric`, `date` — a date picker, `boolean`), `filterMatchModes`, `filterOptions` (`{ label, value }[]` — a multi select with the `in` match mode), `filterPlaceholder`; editing: `editable`, `editType` (`text`, `numeric`, `date` — a date picker, `boolean`), `editOptions` (a select).
|
|
14
14
|
|
|
15
15
|
A cell shows the value of its field as text; `<ng-template txTableCell="field">` replaces it. Text that does not fit is cut with an ellipsis.
|
|
16
16
|
|
package/tabs/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Tabs
|
|
2
|
+
|
|
3
|
+
Switch between views, modes or filters. Three looks: `segmented` (equal items in a track, the default), `pills` (content-width items) and `line` (an underline under the active tab). Pass an array of tabs, or build the list and the panels from parts.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-tabs [tabs]="tabs" [(value)]="active" (tabChange)="load($event)" />
|
|
7
|
+
|
|
8
|
+
<tx-tabs variant="line" [(value)]="active">
|
|
9
|
+
<tx-tab-list ariaLabel="Project">
|
|
10
|
+
<tx-tab value="summary">Summary</tx-tab>
|
|
11
|
+
<tx-tab value="members" [badge]="4">Members</tx-tab>
|
|
12
|
+
</tx-tab-list>
|
|
13
|
+
<tx-tab-panels>
|
|
14
|
+
<tx-tab-panel value="summary">…</tx-tab-panel>
|
|
15
|
+
<tx-tab-panel value="members">
|
|
16
|
+
<ng-template txTabPanelContent>…</ng-template>
|
|
17
|
+
</tx-tab-panel>
|
|
18
|
+
</tx-tab-panels>
|
|
19
|
+
</tx-tabs>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
`TxTabItem`: `value`, `label`, `icon`, `tooltip`, `description` (hint under the control while the tab is active), `badge` (counter after the label, `0` is shown), `disabled`.
|
|
23
|
+
|
|
24
|
+
## Inputs
|
|
25
|
+
| Name | Description |
|
|
26
|
+
|---|---|
|
|
27
|
+
| value | Two-way: the value of the active tab |
|
|
28
|
+
| tabs | Tabs as an array of `TxTabItem`; the list is rendered for you |
|
|
29
|
+
| variant | `segmented`, `pills` or `line` |
|
|
30
|
+
| size | `small` or `medium` (segmented) |
|
|
31
|
+
| orientation | `horizontal` or `vertical` (full-width tabs in a column) |
|
|
32
|
+
| raised | Card background, ring and shadow — for tabs on the page background |
|
|
33
|
+
| scrollable | Previous / next buttons when the tabs do not fit |
|
|
34
|
+
| showNavigators | Shows the previous / next buttons of a scrollable list |
|
|
35
|
+
| lazy | Renders only the active panel |
|
|
36
|
+
| selectOnFocus | The arrow keys pick the tab at once |
|
|
37
|
+
| ariaLabel | Accessible name of the tab list — on `tx-tabs` with `tabs`, or on `tx-tab-list` |
|
|
38
|
+
| ariaLabelledBy | Id of the element that names the tab list — on `tx-tabs` with `tabs`, or on `tx-tab-list` |
|
|
39
|
+
| icon | `tx-tab`: icon before the label |
|
|
40
|
+
| badge | `tx-tab`: counter after the label |
|
|
41
|
+
| description | `tx-tab`: hint under the control while the tab is active |
|
|
42
|
+
| disabled | `tx-tab`: the tab cannot be picked |
|
|
43
|
+
| dt | Design tokens of this instance (`tabs`) |
|
|
44
|
+
| pt | Classes and styles of the parts: `root`, `list`, `track`, `content`, `tab`, `icon`, `label`, `badge`, `activeBar`, `previousButton`, `nextButton`, `description`, `panels`, `panel` |
|
|
45
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
46
|
+
| unstyled | Removes the tectra styles |
|
|
47
|
+
|
|
48
|
+
`tx-tab` and `tx-tab-panel` take a required `value`. A tab can also be a link: `a[txTab]` (with `routerLink`) or `button[txTab]`.
|
|
49
|
+
|
|
50
|
+
## Outputs
|
|
51
|
+
| Name | Description |
|
|
52
|
+
|---|---|
|
|
53
|
+
| valueChange | The active tab changed |
|
|
54
|
+
| tabChange | The user picked another tab; emits its value |
|
|
55
|
+
|
|
56
|
+
## Slots
|
|
57
|
+
| Name | Description |
|
|
58
|
+
|---|---|
|
|
59
|
+
| tx-tab-list | The list of `tx-tab` |
|
|
60
|
+
| tx-tab-panels | The panels, one `tx-tab-panel` per value |
|
|
61
|
+
| txTabPanelContent | `<ng-template txTabPanelContent>` in a panel — created on the first visit (only while active with `lazy`) |
|
|
62
|
+
|
|
63
|
+
## Keyboard
|
|
64
|
+
| Key | Action |
|
|
65
|
+
|---|---|
|
|
66
|
+
| Tab | Moves focus to the active tab, then into the panel |
|
|
67
|
+
| Right / Left arrow | Next / previous tab (Down / Up when vertical); disabled tabs are skipped |
|
|
68
|
+
| Home / End | First / last tab |
|
|
69
|
+
| Enter / Space | Picks the focused tab |
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Toolbar
|
|
2
|
+
|
|
3
|
+
A bar that groups actions and controls: content at the start, in the centre and at the end. Wraps onto more lines when the space runs out.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-toolbar ariaLabel="Document">
|
|
7
|
+
<button txButton txToolbarStart icon="plus">New</button>
|
|
8
|
+
<tx-icon-field txToolbarCenter>…</tx-icon-field>
|
|
9
|
+
<button txButton txToolbarEnd icon="save">Save</button>
|
|
10
|
+
</tx-toolbar>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Inputs
|
|
14
|
+
| Name | Description |
|
|
15
|
+
|---|---|
|
|
16
|
+
| ariaLabel | Accessible name of the toolbar |
|
|
17
|
+
| ariaLabelledBy | Id of the element that names the toolbar |
|
|
18
|
+
| orientation | `horizontal` or `vertical`: the direction of the groups and `aria-orientation` |
|
|
19
|
+
| dt | Design tokens of this instance (`toolbar`) |
|
|
20
|
+
| pt | Classes and styles of the parts: `root`, `start`, `center`, `end` |
|
|
21
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
22
|
+
| unstyled | Removes the tectra styles |
|
|
23
|
+
|
|
24
|
+
## Slots
|
|
25
|
+
| Name | Description |
|
|
26
|
+
|---|---|
|
|
27
|
+
| txToolbarStart | Content of the start group |
|
|
28
|
+
| txToolbarCenter | Content of the centre group |
|
|
29
|
+
| txToolbarEnd | Content of the end group |
|
|
30
|
+
| default | Free content before the groups |
|
|
31
|
+
|
|
32
|
+
## Keyboard
|
|
33
|
+
| Key | Action |
|
|
34
|
+
|---|---|
|
|
35
|
+
| Tab / Shift + Tab | Moves through the controls of the toolbar in order |
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { TxIconName } from "@tectra-ng/icons";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { InjectionToken, Signal, TemplateRef } from "@angular/core";
|
|
4
|
+
import { TxPassThroughOptions, TxResolvedPassThrough } from "@tectra-ng/core/config";
|
|
5
|
+
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
6
|
+
export type TxAccordionPanelValue = string | number;
|
|
7
|
+
export type TxAccordionValue = TxAccordionPanelValue | TxAccordionPanelValue[] | null;
|
|
8
|
+
export type TxAccordionTone = 'info' | 'success' | 'warn' | 'danger';
|
|
9
|
+
export type TxAccordionIcon = TxIconName | (string & {});
|
|
10
|
+
export type TxAccordionPart = 'root' | 'panel' | 'header' | 'headerContent' | 'toggleIcon' | 'content' | 'contentInner';
|
|
11
|
+
export interface TxAccordionItem {
|
|
12
|
+
header: string;
|
|
13
|
+
content?: string;
|
|
14
|
+
value?: TxAccordionPanelValue;
|
|
15
|
+
tone?: TxAccordionTone;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export interface TxAccordionToggleEvent {
|
|
20
|
+
value: TxAccordionPanelValue;
|
|
21
|
+
index: number;
|
|
22
|
+
item?: TxAccordionItem;
|
|
23
|
+
}
|
|
24
|
+
export interface TxAccordionItemContext {
|
|
25
|
+
$implicit: TxAccordionItem;
|
|
26
|
+
item: TxAccordionItem;
|
|
27
|
+
index: number;
|
|
28
|
+
active: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface TxAccordionToggleIconContext {
|
|
31
|
+
$implicit: boolean;
|
|
32
|
+
active: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare class TxAccordionHeaderTemplate {
|
|
35
|
+
readonly template: TemplateRef<TxAccordionItemContext>;
|
|
36
|
+
static ngTemplateContextGuard(_directive: TxAccordionHeaderTemplate, context: unknown): context is TxAccordionItemContext;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxAccordionHeaderTemplate, never>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxAccordionHeaderTemplate, "ng-template[txAccordionHeader]", never, {}, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
40
|
+
export declare class TxAccordionContentTemplate {
|
|
41
|
+
readonly template: TemplateRef<TxAccordionItemContext>;
|
|
42
|
+
static ngTemplateContextGuard(_directive: TxAccordionContentTemplate, context: unknown): context is TxAccordionItemContext;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxAccordionContentTemplate, never>;
|
|
44
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxAccordionContentTemplate, "ng-template[txAccordionContent]", never, {}, {}, never, never, true, never>;
|
|
45
|
+
}
|
|
46
|
+
export declare class TxAccordionToggleIconTemplate {
|
|
47
|
+
readonly template: TemplateRef<TxAccordionToggleIconContext>;
|
|
48
|
+
static ngTemplateContextGuard(_directive: TxAccordionToggleIconTemplate, context: unknown): context is TxAccordionToggleIconContext;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxAccordionToggleIconTemplate, never>;
|
|
50
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxAccordionToggleIconTemplate, "ng-template[txAccordionToggleIcon]", never, {}, {}, never, never, true, never>;
|
|
51
|
+
}
|
|
52
|
+
interface TxAccordionContext {
|
|
53
|
+
readonly element: HTMLElement;
|
|
54
|
+
focusSelectPending: boolean;
|
|
55
|
+
readonly isUnstyled: Signal<boolean>;
|
|
56
|
+
readonly passThrough: Signal<TxResolvedPassThrough<TxAccordionPart>>;
|
|
57
|
+
readonly expandIcon: Signal<TxAccordionIcon | undefined>;
|
|
58
|
+
readonly collapseIcon: Signal<TxAccordionIcon | undefined>;
|
|
59
|
+
readonly selectOnFocus: Signal<boolean>;
|
|
60
|
+
readonly toggleIconTemplate: Signal<TemplateRef<TxAccordionToggleIconContext> | undefined>;
|
|
61
|
+
isActive(value: TxAccordionPanelValue): boolean;
|
|
62
|
+
toggle(value: TxAccordionPanelValue, panel: HTMLElement, item?: TxAccordionItem): void;
|
|
63
|
+
open(value: TxAccordionPanelValue, panel: HTMLElement, item?: TxAccordionItem): void;
|
|
64
|
+
}
|
|
65
|
+
interface TxAccordionPanelContext {
|
|
66
|
+
readonly value: Signal<TxAccordionPanelValue>;
|
|
67
|
+
readonly active: Signal<boolean>;
|
|
68
|
+
readonly disabled: Signal<boolean>;
|
|
69
|
+
readonly item: Signal<TxAccordionItem | undefined>;
|
|
70
|
+
readonly headerId: string;
|
|
71
|
+
readonly contentId: string;
|
|
72
|
+
toggle(): void;
|
|
73
|
+
open(): void;
|
|
74
|
+
}
|
|
75
|
+
declare const TX_ACCORDION: InjectionToken<TxAccordionContext>;
|
|
76
|
+
declare const TX_ACCORDION_PANEL: InjectionToken<TxAccordionPanelContext>;
|
|
77
|
+
export declare class TxAccordion implements TxAccordionContext {
|
|
78
|
+
readonly element: HTMLElement;
|
|
79
|
+
focusSelectPending: boolean;
|
|
80
|
+
readonly value: import("@angular/core").ModelSignal<TxAccordionValue>;
|
|
81
|
+
readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
82
|
+
readonly items: import("@angular/core").InputSignal<TxAccordionItem[] | undefined>;
|
|
83
|
+
readonly expandIcon: import("@angular/core").InputSignal<TxAccordionIcon | undefined>;
|
|
84
|
+
readonly collapseIcon: import("@angular/core").InputSignal<TxAccordionIcon | undefined>;
|
|
85
|
+
readonly selectOnFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
|
|
87
|
+
root: {
|
|
88
|
+
transitionDuration: string;
|
|
89
|
+
expandDuration: string;
|
|
90
|
+
expandEasing: string;
|
|
91
|
+
disabledOpacity: string;
|
|
92
|
+
};
|
|
93
|
+
panel: {
|
|
94
|
+
borderWidth: string;
|
|
95
|
+
borderColor: string;
|
|
96
|
+
};
|
|
97
|
+
header: {
|
|
98
|
+
padding: string;
|
|
99
|
+
gap: string;
|
|
100
|
+
fontSize: string;
|
|
101
|
+
fontWeight: string;
|
|
102
|
+
color: string;
|
|
103
|
+
hoverColor: string;
|
|
104
|
+
activeColor: string;
|
|
105
|
+
activeHoverColor: string;
|
|
106
|
+
background: string;
|
|
107
|
+
hoverBackground: string;
|
|
108
|
+
activeBackground: string;
|
|
109
|
+
activeHoverBackground: string;
|
|
110
|
+
borderWidth: string;
|
|
111
|
+
borderColor: string;
|
|
112
|
+
borderRadius: string;
|
|
113
|
+
focusRing: {
|
|
114
|
+
width: string;
|
|
115
|
+
color: string;
|
|
116
|
+
offset: string;
|
|
117
|
+
};
|
|
118
|
+
toggleIcon: {
|
|
119
|
+
size: string;
|
|
120
|
+
color: string;
|
|
121
|
+
hoverColor: string;
|
|
122
|
+
activeColor: string;
|
|
123
|
+
activeHoverColor: string;
|
|
124
|
+
};
|
|
125
|
+
first: {
|
|
126
|
+
borderWidth: string;
|
|
127
|
+
topBorderRadius: string;
|
|
128
|
+
};
|
|
129
|
+
last: {
|
|
130
|
+
bottomBorderRadius: string;
|
|
131
|
+
activeBottomBorderRadius: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
content: {
|
|
135
|
+
padding: string;
|
|
136
|
+
borderWidth: string;
|
|
137
|
+
borderColor: string;
|
|
138
|
+
background: string;
|
|
139
|
+
color: string;
|
|
140
|
+
lastBottomBorderRadius: string;
|
|
141
|
+
};
|
|
142
|
+
tone: {
|
|
143
|
+
width: string;
|
|
144
|
+
info: string;
|
|
145
|
+
success: string;
|
|
146
|
+
warn: string;
|
|
147
|
+
danger: string;
|
|
148
|
+
};
|
|
149
|
+
}> | undefined>;
|
|
150
|
+
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxAccordionPart, import("@tectra-ng/core/config").TxPassThroughValue<TxAccordion>>> | undefined>;
|
|
151
|
+
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
152
|
+
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
153
|
+
readonly opened: import("@angular/core").OutputEmitterRef<TxAccordionToggleEvent>;
|
|
154
|
+
readonly closed: import("@angular/core").OutputEmitterRef<TxAccordionToggleEvent>;
|
|
155
|
+
protected readonly headerTemplate: import("@angular/core").Signal<TxAccordionHeaderTemplate | undefined>;
|
|
156
|
+
protected readonly contentTemplate: import("@angular/core").Signal<TxAccordionContentTemplate | undefined>;
|
|
157
|
+
private readonly toggleIcon;
|
|
158
|
+
readonly toggleIconTemplate: import("@angular/core").Signal<import("@angular/core").TemplateRef<import("@tectra-ng/ui/accordion").TxAccordionToggleIconContext> | undefined>;
|
|
159
|
+
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
160
|
+
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxAccordionPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
161
|
+
readonly hostStyle: import("@angular/core").Signal<{
|
|
162
|
+
[x: string]: string;
|
|
163
|
+
}>;
|
|
164
|
+
private readonly activeValues;
|
|
165
|
+
protected itemValue(item: TxAccordionItem, index: number): TxAccordionPanelValue;
|
|
166
|
+
isActive(value: TxAccordionPanelValue): boolean;
|
|
167
|
+
toggle(value: TxAccordionPanelValue, panel: HTMLElement, item?: TxAccordionItem): void;
|
|
168
|
+
open(value: TxAccordionPanelValue, panel: HTMLElement, item?: TxAccordionItem): void;
|
|
169
|
+
private close;
|
|
170
|
+
private panels;
|
|
171
|
+
private panelElement;
|
|
172
|
+
private indexOf;
|
|
173
|
+
private itemOf;
|
|
174
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxAccordion, never>;
|
|
175
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TxAccordion, "tx-accordion", never, {
|
|
176
|
+
"value": {
|
|
177
|
+
"alias": "value";
|
|
178
|
+
"required": false;
|
|
179
|
+
"isSignal": true;
|
|
180
|
+
};
|
|
181
|
+
"multiple": {
|
|
182
|
+
"alias": "multiple";
|
|
183
|
+
"required": false;
|
|
184
|
+
"isSignal": true;
|
|
185
|
+
};
|
|
186
|
+
"items": {
|
|
187
|
+
"alias": "items";
|
|
188
|
+
"required": false;
|
|
189
|
+
"isSignal": true;
|
|
190
|
+
};
|
|
191
|
+
"expandIcon": {
|
|
192
|
+
"alias": "expandIcon";
|
|
193
|
+
"required": false;
|
|
194
|
+
"isSignal": true;
|
|
195
|
+
};
|
|
196
|
+
"collapseIcon": {
|
|
197
|
+
"alias": "collapseIcon";
|
|
198
|
+
"required": false;
|
|
199
|
+
"isSignal": true;
|
|
200
|
+
};
|
|
201
|
+
"selectOnFocus": {
|
|
202
|
+
"alias": "selectOnFocus";
|
|
203
|
+
"required": false;
|
|
204
|
+
"isSignal": true;
|
|
205
|
+
};
|
|
206
|
+
"dt": {
|
|
207
|
+
"alias": "dt";
|
|
208
|
+
"required": false;
|
|
209
|
+
"isSignal": true;
|
|
210
|
+
};
|
|
211
|
+
"pt": {
|
|
212
|
+
"alias": "pt";
|
|
213
|
+
"required": false;
|
|
214
|
+
"isSignal": true;
|
|
215
|
+
};
|
|
216
|
+
"ptOptions": {
|
|
217
|
+
"alias": "ptOptions";
|
|
218
|
+
"required": false;
|
|
219
|
+
"isSignal": true;
|
|
220
|
+
};
|
|
221
|
+
"unstyled": {
|
|
222
|
+
"alias": "unstyled";
|
|
223
|
+
"required": false;
|
|
224
|
+
"isSignal": true;
|
|
225
|
+
};
|
|
226
|
+
}, {
|
|
227
|
+
"value": "valueChange";
|
|
228
|
+
"opened": "opened";
|
|
229
|
+
"closed": "closed";
|
|
230
|
+
}, ["headerTemplate", "contentTemplate", "toggleIcon"], ["*"], true, never>;
|
|
231
|
+
}
|
|
232
|
+
export declare class TxAccordionPanel implements TxAccordionPanelContext {
|
|
233
|
+
protected readonly accordion: TxAccordionContext;
|
|
234
|
+
private element;
|
|
235
|
+
private id;
|
|
236
|
+
readonly value: import("@angular/core").InputSignal<TxAccordionPanelValue>;
|
|
237
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
238
|
+
readonly tone: import("@angular/core").InputSignal<TxAccordionTone | undefined>;
|
|
239
|
+
readonly item: import("@angular/core").InputSignal<TxAccordionItem | undefined>;
|
|
240
|
+
readonly headerId: string;
|
|
241
|
+
readonly contentId: string;
|
|
242
|
+
readonly active: import("@angular/core").Signal<boolean>;
|
|
243
|
+
toggle(): void;
|
|
244
|
+
open(): void;
|
|
245
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxAccordionPanel, never>;
|
|
246
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TxAccordionPanel, "tx-accordion-panel", never, {
|
|
247
|
+
"value": {
|
|
248
|
+
"alias": "value";
|
|
249
|
+
"required": true;
|
|
250
|
+
"isSignal": true;
|
|
251
|
+
};
|
|
252
|
+
"disabled": {
|
|
253
|
+
"alias": "disabled";
|
|
254
|
+
"required": false;
|
|
255
|
+
"isSignal": true;
|
|
256
|
+
};
|
|
257
|
+
"tone": {
|
|
258
|
+
"alias": "tone";
|
|
259
|
+
"required": false;
|
|
260
|
+
"isSignal": true;
|
|
261
|
+
};
|
|
262
|
+
"item": {
|
|
263
|
+
"alias": "item";
|
|
264
|
+
"required": false;
|
|
265
|
+
"isSignal": true;
|
|
266
|
+
};
|
|
267
|
+
}, {}, never, ["*"], true, never>;
|
|
268
|
+
}
|
|
269
|
+
export declare class TxAccordionHeader {
|
|
270
|
+
protected readonly accordion: TxAccordionContext;
|
|
271
|
+
protected readonly panel: TxAccordionPanelContext;
|
|
272
|
+
private txIconRegistry;
|
|
273
|
+
readonly headingLevel: import("@angular/core").InputSignal<number | undefined>;
|
|
274
|
+
protected readonly hasCustomIcon: import("@angular/core").Signal<boolean>;
|
|
275
|
+
protected readonly icon: import("@angular/core").Signal<import("@tectra-ng/ui/accordion").TxAccordionIcon | undefined>;
|
|
276
|
+
protected readonly iconName: import("@angular/core").Signal<import("@tectra-ng/ui/accordion").TxAccordionIcon | null>;
|
|
277
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
278
|
+
protected onFocus(): void;
|
|
279
|
+
private buttons;
|
|
280
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxAccordionHeader, never>;
|
|
281
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TxAccordionHeader, "tx-accordion-header", never, {
|
|
282
|
+
"headingLevel": {
|
|
283
|
+
"alias": "headingLevel";
|
|
284
|
+
"required": false;
|
|
285
|
+
"isSignal": true;
|
|
286
|
+
};
|
|
287
|
+
}, {}, never, ["*"], true, never>;
|
|
288
|
+
}
|
|
289
|
+
export declare class TxAccordionContent {
|
|
290
|
+
protected readonly accordion: TxAccordionContext;
|
|
291
|
+
protected readonly panel: TxAccordionPanelContext;
|
|
292
|
+
protected readonly lazyContent: import("@angular/core").Signal<TxAccordionContentTemplate | undefined>;
|
|
293
|
+
protected readonly rendered: import("@angular/core").WritableSignal<boolean>;
|
|
294
|
+
protected readonly templateContext: import("@angular/core").Signal<{
|
|
295
|
+
$implicit: import("@tectra-ng/ui/accordion").TxAccordionItem;
|
|
296
|
+
item: import("@tectra-ng/ui/accordion").TxAccordionItem;
|
|
297
|
+
index: number;
|
|
298
|
+
active: boolean;
|
|
299
|
+
}>;
|
|
300
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxAccordionContent, never>;
|
|
301
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TxAccordionContent, "tx-accordion-content", never, {}, {}, ["lazyContent"], ["*"], true, never>;
|
|
302
|
+
}
|
|
303
|
+
export {};
|
|
304
|
+
//# sourceMappingURL=tectra-ng-ui-accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-accordion.d.ts","names":[],"sources":["../../../../packages/ui/accordion/src/accordion.types.ts","../../../../packages/ui/accordion/src/accordion.templates.ts","../../../../packages/ui/accordion/src/accordion.context.ts","../../../../packages/ui/accordion/src/accordion.component.ts","../../../../packages/ui/accordion/src/accordion-panel.component.ts","../../../../packages/ui/accordion/src/accordion-header.component.ts","../../../../packages/ui/accordion/src/accordion-content.component.ts"],"mappings":"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"}
|