@tectra-ng/ui 0.4.4 → 0.4.5
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/amount/README.md +19 -1
- package/analog-clock/README.md +1 -1
- package/autocomplete/README.md +1 -1
- package/avatar/README.md +24 -4
- package/cascade-select/README.md +1 -1
- package/chips-input/README.md +10 -5
- package/color-picker/README.md +5 -0
- package/countdown/README.md +7 -1
- package/country/README.md +14 -1
- package/country-select/README.md +2 -1
- package/export/README.md +27 -2
- package/export-font/README.md +1 -1
- package/fesm2022/tectra-ng-ui-amount.mjs +96 -14
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-analog-clock.mjs +6 -19
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +5 -4
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-avatar.mjs +59 -17
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-button.mjs +2 -2
- package/fesm2022/tectra-ng-ui-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-card.mjs +2 -2
- package/fesm2022/tectra-ng-ui-card.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +7 -4
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +114 -15
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +93 -6
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-countdown.mjs +39 -10
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country-select.mjs +28 -5
- package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country.mjs +15 -6
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-datepicker.mjs +10 -8
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-dialog.mjs +6 -6
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export.mjs +1237 -84
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs +1 -0
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-fieldset.mjs +2 -2
- package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-icon-field.mjs +51 -23
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-number.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input.mjs +5 -4
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-key-filter.mjs +84 -19
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-knob.mjs +24 -2
- package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-label.mjs +68 -9
- package/fesm2022/tectra-ng-ui-label.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-link.mjs +38 -14
- package/fesm2022/tectra-ng-ui-link.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs +16 -5
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-message.mjs +5 -1
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-month-calendar.mjs +26 -9
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-multiselect.mjs +3 -2
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +45 -14
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel.mjs +4 -2
- package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password-generator.mjs +18 -1
- package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password.mjs +2 -2
- package/fesm2022/tectra-ng-ui-password.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-pill.mjs +36 -16
- package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-rating.mjs +2 -2
- package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select.mjs +30 -7
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs +93 -8
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-status-icon.mjs +40 -3
- package/fesm2022/tectra-ng-ui-status-icon.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +20 -6
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tag.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toast.mjs +2 -2
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +10 -8
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +4 -4
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-truncate-text.mjs +33 -9
- package/fesm2022/tectra-ng-ui-truncate-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui.mjs +1 -1
- package/icon-field/README.md +2 -1
- package/key-filter/README.md +3 -2
- package/knob/README.md +3 -1
- package/label/README.md +4 -1
- package/link/README.md +4 -1
- package/message/README.md +2 -2
- package/month-calendar/README.md +2 -1
- package/multiselect/README.md +1 -1
- package/package.json +4 -4
- package/panel/README.md +3 -1
- package/panel-menu/README.md +3 -2
- package/password-generator/README.md +2 -0
- package/pill/README.md +4 -4
- package/select/README.md +1 -1
- package/stat-tiles/README.md +17 -1
- package/status-icon/README.md +3 -1
- package/table/README.md +1 -1
- package/tag/README.md +2 -0
- package/tree-select/README.md +1 -1
- package/truncate-text/README.md +2 -1
- package/types/tectra-ng-ui-amount.d.ts +41 -1
- package/types/tectra-ng-ui-amount.d.ts.map +1 -1
- package/types/tectra-ng-ui-analog-clock.d.ts +1 -4
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
- package/types/tectra-ng-ui-autocomplete.d.ts +1 -1
- package/types/tectra-ng-ui-avatar.d.ts +45 -12
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
- package/types/tectra-ng-ui-cascade-select.d.ts +3 -2
- package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-chips-input.d.ts +54 -6
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-color-picker.d.ts +38 -1
- package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
- package/types/tectra-ng-ui-countdown.d.ts +12 -1
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
- package/types/tectra-ng-ui-country-select.d.ts +17 -4
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-country.d.ts +7 -1
- package/types/tectra-ng-ui-country.d.ts.map +1 -1
- package/types/tectra-ng-ui-datepicker.d.ts +2 -2
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
- package/types/tectra-ng-ui-export.d.ts +68 -8
- package/types/tectra-ng-ui-export.d.ts.map +1 -1
- package/types/tectra-ng-ui-icon-field.d.ts +9 -2
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-key-filter.d.ts +19 -4
- package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
- package/types/tectra-ng-ui-knob.d.ts +10 -2
- package/types/tectra-ng-ui-knob.d.ts.map +1 -1
- package/types/tectra-ng-ui-label.d.ts +8 -1
- package/types/tectra-ng-ui-label.d.ts.map +1 -1
- package/types/tectra-ng-ui-link.d.ts +8 -2
- package/types/tectra-ng-ui-link.d.ts.map +1 -1
- package/types/tectra-ng-ui-mention-textarea.d.ts +5 -0
- package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +1 -1
- package/types/tectra-ng-ui-message.d.ts.map +1 -1
- package/types/tectra-ng-ui-month-calendar.d.ts +14 -4
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
- package/types/tectra-ng-ui-multiselect.d.ts +1 -1
- package/types/tectra-ng-ui-panel-menu.d.ts +34 -6
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel.d.ts +1 -1
- package/types/tectra-ng-ui-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-password-generator.d.ts +10 -3
- package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
- package/types/tectra-ng-ui-pill.d.ts +9 -5
- package/types/tectra-ng-ui-pill.d.ts.map +1 -1
- package/types/tectra-ng-ui-select.d.ts +5 -2
- package/types/tectra-ng-ui-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-stat-tiles.d.ts +49 -5
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
- package/types/tectra-ng-ui-status-icon.d.ts +20 -2
- package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +2 -1
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +3 -3
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-truncate-text.d.ts +7 -2
- package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
- package/types/tectra-ng-ui.d.ts +1 -1
package/link/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
`<tx-link>` shows a URL, an email or a phone number as a link: it builds the `href`, shortens long text, marks search matches and can add a copy button. Web links open in a new tab with `rel="noopener noreferrer"`, an arrow icon and a hidden "opens in a new tab" for screen readers. `<tx-icon-link>` is an icon with text for menus and footers — a router link with the active state, an external link, or a button.
|
|
4
4
|
|
|
5
|
+
The styles of both weigh as much as one class, so your own rule for a part (`.menu .item`, a `pt` class under a parent) wins without `!important`.
|
|
6
|
+
|
|
5
7
|
```html
|
|
6
8
|
<tx-link link="docs.example.com" [copyable]="true" />
|
|
7
9
|
<tx-link link="ann@example.com" type="email" />
|
|
@@ -32,7 +34,8 @@
|
|
|
32
34
|
## Outputs
|
|
33
35
|
| Name | Description |
|
|
34
36
|
|---|---|
|
|
35
|
-
| copied | `tx-link`: the link was copied; gives the copied text |
|
|
37
|
+
| copied | `tx-link`: the link was copied; gives the copied text. Copying uses the Clipboard API and falls back to a selection outside a secure context |
|
|
38
|
+
| copyFailed | `tx-link`: the browser refused to copy; gives the text. The button says "Could not copy" for a moment instead of the check mark — show your own message from here |
|
|
36
39
|
|
|
37
40
|
## Slots
|
|
38
41
|
| Name | Description |
|
package/message/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Inline feedback. `<tx-message>` is a box with a severity, an optional icon and a
|
|
|
10
10
|
<tx-field-error for="email" [control]="email" />
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Error texts: `messages` on the field, then `provideTectra({ validationMessages })`, then `error.message` of a custom validator, then the built-in text of the locale (`required`, `email`, `minlength`, `maxlength`, `min`, `max`, `pattern`, and the keys of `TxValidators` from `@tectra-ng/utils/validators
|
|
13
|
+
Error texts: `messages` on the field, then `provideTectra({ validationMessages })`, then `error.message` of a custom validator, then the built-in text of the locale (`required`, `email`, `minlength`, `maxlength`, `min`, `max`, `pattern`, and the keys of `TxValidators` from `@tectra-ng/utils/validators`). A key without any of these takes the `'*'` entry — of `messages`, then of `validationMessages` — and "Invalid value" when there is none. `{param}` is replaced with the fields of the error object, e.g. `{requiredLength}`, `{min}`.
|
|
14
14
|
|
|
15
15
|
## Inputs
|
|
16
16
|
| Name | Description |
|
|
@@ -27,7 +27,7 @@ Error texts: `messages` on the field, then `provideTectra({ validationMessages }
|
|
|
27
27
|
| errorText | `tx-field-error`: an error from outside the form (e.g. the server) — shown as is, before the control's errors |
|
|
28
28
|
| showImmediately | `tx-field-error`: shows the error, and the success text, before the control is touched or changed |
|
|
29
29
|
| successText | `tx-field-error`: text shown when the control has a valid value and was touched or changed (at once with `showImmediately`) |
|
|
30
|
-
| messages | `tx-field-error`: own texts per error key — a string with `{param}` or a function of the error |
|
|
30
|
+
| messages | `tx-field-error`: own texts per error key — a string with `{param}` or a function of the error; `'*'` is the text for keys that have no text of their own |
|
|
31
31
|
| for | `tx-field-hint`, `tx-field-error`: id of the field; adds this text to its `aria-describedby` |
|
|
32
32
|
| id | `tx-field-hint`, `tx-field-error`: own id instead of a generated one |
|
|
33
33
|
| dt | Design tokens of this instance (`message` or `fieldMessage`) |
|
package/month-calendar/README.md
CHANGED
|
@@ -15,9 +15,10 @@ A month grid that draws events as continuous bars across days, with day markers,
|
|
|
15
15
|
| selectedDate | Highlighted day: a `Date` or `'yyyy-MM-dd'`; it gets the keyboard focus |
|
|
16
16
|
| weekStartsOn | First day of the week: 0 Sunday … 6 Saturday; locale default |
|
|
17
17
|
| maxLanes | Bar rows per week; the rest goes to the `+N` link of the day |
|
|
18
|
-
| labels | Own texts `{ more, today, region }`: `more` with a `{count}` placeholder, `today` added to the name of today, `region` the name of the grid;
|
|
18
|
+
| labels | Own texts `{ more, today, region }`: `more` with a `{count}` placeholder, `today` added to the name of today, `region` the name of the grid; a missing, empty or `null` text stays translated |
|
|
19
19
|
| locale | BCP 47 locale for weekday names and day names; the kit locale by default |
|
|
20
20
|
| today | The day treated as today (the day of creation by default); pass it from a clock if the page stays open over midnight |
|
|
21
|
+
| eventTemplate | Content of a bar as a `TemplateRef` — for a component that wraps the calendar and gets the template from its own content; it wins over a `txMonthCalendarEvent` template inside the calendar |
|
|
21
22
|
| dt | Design tokens of this instance (`monthCalendar`) |
|
|
22
23
|
| pt | Classes and styles of the parts: `root`, `grid`, `head`, `weekday`, `week`, `cell`, `day`, `number`, `marker`, `event`, `more` |
|
|
23
24
|
| ptOptions | How `pt` merges with the global pass-through |
|
package/multiselect/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Multiselect
|
|
2
2
|
|
|
3
|
-
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.
|
|
3
|
+
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. The panel sizes itself like the one of `tx-select`.
|
|
4
4
|
|
|
5
5
|
Texts come from the tectra locale — `selectAll`, `selectedOfTotal`, `selectedItems`, `searchPlaceholder`, `emptyMessage`, `clear`. Override them for the whole app with `provideTectra({ translations: { selectAll: '…' } })`, switch languages at runtime with `TxLocaleService.setLocale(…)`, or set them on one field with `selectAllLabel`, `countLabel`, `selectedItemsLabel`, `filterPlaceholder`, `emptyMessage`.
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tectra-ng/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Angular UI components on signals: table, datepicker, select, multiselect, dialog, drawer, toast, tooltip, tree and 80+ more. Standalone, OnPush, zoneless, accessible and themable, one entry point per component.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://tectra-ng.com",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@angular/forms": "^22.2.0",
|
|
61
61
|
"@angular/router": "^22.2.0",
|
|
62
62
|
"rxjs": "^7.8.0",
|
|
63
|
-
"@tectra-ng/core": "^0.4.
|
|
64
|
-
"@tectra-ng/icons": "^0.4.
|
|
65
|
-
"@tectra-ng/themes": "^0.4.
|
|
63
|
+
"@tectra-ng/core": "^0.4.5",
|
|
64
|
+
"@tectra-ng/icons": "^0.4.5",
|
|
65
|
+
"@tectra-ng/themes": "^0.4.5"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"@angular/router": {
|
package/panel/README.md
CHANGED
|
@@ -9,6 +9,8 @@ A titled section of a page: an icon, a title and a subtitle, actions in the head
|
|
|
9
9
|
</tx-panel>
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
+
Give the panel a height (`height: 100%` in a grid cell, a flex item that grows) and the body grows with it, so content with `height: 100%` fills the panel. A panel that is not `toggleable` does not clip its content: shadows and negative margins stay visible. A `toggleable` panel clips it so the collapse animation stays inside the box.
|
|
13
|
+
|
|
12
14
|
## Inputs
|
|
13
15
|
| Name | Description |
|
|
14
16
|
|---|---|
|
|
@@ -16,7 +18,7 @@ A titled section of a page: an icon, a title and a subtitle, actions in the head
|
|
|
16
18
|
| subtitle | Muted line under the title |
|
|
17
19
|
| icon | Icon in a tinted square before the title |
|
|
18
20
|
| variant | `card`, `inset` or `plain` |
|
|
19
|
-
| align | Vertical alignment of the title and the actions: `start`, `center`, `end` |
|
|
21
|
+
| align | Vertical alignment of the title and the actions: `start`, `center`, `end`; with `end` the actions also line up at their bottom edge, e.g. a button next to a labelled field |
|
|
20
22
|
| headingLevel | Heading level of the title, 2 by default |
|
|
21
23
|
| toggleable | Adds a button that collapses the content |
|
|
22
24
|
| collapsed | Two-way: the content is collapsed |
|
package/panel-menu/README.md
CHANGED
|
@@ -7,7 +7,7 @@ A vertical menu of collapsible sections for app navigation. Two looks: `panel` (
|
|
|
7
7
|
<tx-panel-menu variant="sidebar" ariaLabel="Main" [model]="navigation" [(expandedKeys)]="open" />
|
|
8
8
|
```
|
|
9
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), `active` (marks the current item yourself — for items that run a `command`; without it the current item comes from the route)
|
|
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), `active` (marks the current item yourself — for items that run a `command`; without it the current item comes from the route), `routerLinkActiveOptions` (`{ exact: true }` or router match options; a subset match by default) and `routerLinkActiveExclude` (router links whose pages do not make the item active — `['/projects/owners']` on a `/projects` item next to an own "Owners" item). `badge` also takes a signal, so a counter updates in place. Only links are highlighted: an item with nested items does not navigate, so on the page of its own `routerLink` it just opens; in `sidebar` a section with an empty `label` gets no title.
|
|
11
11
|
|
|
12
12
|
## Inputs
|
|
13
13
|
| Name | Description |
|
|
@@ -19,6 +19,7 @@ Items are `TxPanelMenuItem` — the kit menu item (`label`, `icon`, `routerLink`
|
|
|
19
19
|
| expandedKeys | Two-way: the open items, `{ [key]: boolean }`; a key is the item `id` or its index path (`0-1-2`) |
|
|
20
20
|
| badgeMax | `sidebar`: numbers above it show as `99+` (zero and less are hidden) |
|
|
21
21
|
| ariaLabel | Makes the menu a `navigation` landmark with this name |
|
|
22
|
+
| translate | Translate function: item labels, section titles and item titles are keys passed through it; a function that reads signals updates the menu when they change |
|
|
22
23
|
| dt | Design tokens of this instance (`panelMenu`) |
|
|
23
24
|
| pt | Classes and styles of the parts: `root`, `panel`, `header`, `section`, `tree`, `item`, `icon`, `label`, `badge`, `lock`, `submenuIcon`, `separator` |
|
|
24
25
|
| ptOptions | How `pt` merges with the global pass-through |
|
|
@@ -33,7 +34,7 @@ Items are `TxPanelMenuItem` — the kit menu item (`label`, `icon`, `routerLink`
|
|
|
33
34
|
## Slots
|
|
34
35
|
| Name | Description |
|
|
35
36
|
|---|---|
|
|
36
|
-
| txPanelMenuItem | `<ng-template txPanelMenuItem let-item let-level="level" let-active="active" let-expanded="expanded" let-hasSubmenu="hasSubmenu">` — content of every header and item |
|
|
37
|
+
| txPanelMenuItem | `<ng-template txPanelMenuItem let-item let-level="level" let-active="active" let-expanded="expanded" let-hasSubmenu="hasSubmenu" let-label="label">` — content of every header and item; `label` is the translated label |
|
|
37
38
|
|
|
38
39
|
## Keyboard
|
|
39
40
|
| Key | Action |
|
|
@@ -11,6 +11,8 @@ Strong random passwords from `crypto.getRandomValues` (no bias, at least one cha
|
|
|
11
11
|
const password = inject(TxPasswordGenerator).generate({ length: 24, symbols: false });
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
`txPasswordGenerate` works on any `button`, also a `txButton`. An icon-only button without its own `aria-label`, `aria-labelledby` or `title` gets the translated "Generate password" (locale key `generatePassword`) as its accessible name; use the same key for a tooltip: `[txTooltip]="translations().generatePassword"` with `translations = injectTranslations()`.
|
|
15
|
+
|
|
14
16
|
## Inputs
|
|
15
17
|
| Name | Description |
|
|
16
18
|
|---|---|
|
package/pill/README.md
CHANGED
|
@@ -15,12 +15,12 @@ A small rounded label for a status, a category or a count — in tables, lists a
|
|
|
15
15
|
| tone | `neutral`, `primary`, `success`, `info`, `warn`, `danger`, `help`, `contrast`; `secondary` is the same as `neutral`, so tag and badge severities (and `txHttpStatusTone`) fit |
|
|
16
16
|
| variant | `soft` (tinted, default), `solid` or `outline` |
|
|
17
17
|
| size | `small`, `medium` (`normal` is the same), `large` |
|
|
18
|
-
| icon | Icon before the text: tectra name, `pi-` name or icon class |
|
|
18
|
+
| icon | Icon before the text: tectra name, `pi-` name or icon class. Words after a tectra name are classes of the icon; `spin` (or `pi-spin`) turns it: `icon="spinner spin"` |
|
|
19
19
|
| dot | A status dot instead of the icon |
|
|
20
20
|
| removable | Adds a remove button |
|
|
21
|
-
| removeLabel | Label of the remove button (translated "Remove"
|
|
21
|
+
| removeLabel | Label of the remove button (translated "Remove" when not set or empty) |
|
|
22
22
|
| dt | Design tokens of this instance (`pill`) |
|
|
23
|
-
| pt | Classes and styles of the parts: `root`, `icon`, `label`, `remove` |
|
|
23
|
+
| pt | Classes and styles of the parts: `root`, `icon`, `leading`, `label`, `remove` |
|
|
24
24
|
| ptOptions | How `pt` merges with the global pass-through |
|
|
25
25
|
| unstyled | Removes the tectra styles |
|
|
26
26
|
|
|
@@ -33,7 +33,7 @@ A small rounded label for a status, a category or a count — in tables, lists a
|
|
|
33
33
|
| Name | Description |
|
|
34
34
|
|---|---|
|
|
35
35
|
| default | The text |
|
|
36
|
-
| txPillLeading | An element before the text, e.g. a flag or a tiny avatar: `<img txPillLeading
|
|
36
|
+
| txPillLeading | An element before the text, e.g. a flag or a tiny avatar: `<img txPillLeading …>`. A component that wraps the pill can pass its own content on with `<ng-container ngProjectAs="[txPillLeading]">` — the slot styles whatever lands in it |
|
|
37
37
|
|
|
38
38
|
## Keyboard
|
|
39
39
|
| Key | Action |
|
package/select/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Select
|
|
2
2
|
|
|
3
|
-
Pick one value from a list. A `ControlValueAccessor`: works with `[formControl]`, `ngModel` and signal forms. The panel is a CDK overlay, so it is never cut by `overflow: hidden` and flips up at the bottom of the screen. Long lists scroll virtually and can load page by page from a server.
|
|
3
|
+
Pick one value from a list. A `ControlValueAccessor`: works with `[formControl]`, `ngModel` and signal forms. The panel is a CDK overlay, so it is never cut by `overflow: hidden` and flips up at the bottom of the screen. Long lists scroll virtually and can load page by page from a server. The panel is at least as wide as the field and grows with its options up to `--tx-form-field-panel-max-width` (300px; one field changes it with `[dt]="{ overlay: { maxWidth: '520px' } }"`), never past the screen; it keeps the width it opened with while you search, scroll or load more, and lines up with the end of the field when there is no room on the right.
|
|
4
4
|
|
|
5
5
|
The option engine (`buildOptionRows`, `readOptionField`, `foldText`) is exported for other list controls.
|
|
6
6
|
|
package/stat-tiles/README.md
CHANGED
|
@@ -13,7 +13,8 @@ A responsive grid of key numbers — totals, rates, counts — each tile with a
|
|
|
13
13
|
| Name | Description |
|
|
14
14
|
|---|---|
|
|
15
15
|
| minWidth | `tx-stat-tiles` — narrowest column before the grid wraps; without it columns stay at least the `floorWidth` token (210px) unless `compact`, an explicit value wins over that floor |
|
|
16
|
-
|
|
|
16
|
+
| floorWidth | `tx-stat-tiles` — lowest column width that `minWidth` cannot go below, e.g. `15rem` to keep long labels readable while `minWidth` sets the wrap point; not used when `compact` |
|
|
17
|
+
| compact | `tx-stat-tiles`: tighter gap, padding, icon and value; columns down to `minWidth` |
|
|
17
18
|
| ariaLabel | `tx-stat-tiles` — accessible name of the list |
|
|
18
19
|
| ariaLabelledBy | `tx-stat-tiles` — id of the element that names the list |
|
|
19
20
|
| label | `tx-stat-tile` — what the number is; one line, cut with an ellipsis and shown in full as a title, so values of a row stay on one line next to an aside |
|
|
@@ -27,6 +28,7 @@ A responsive grid of key numbers — totals, rates, counts — each tile with a
|
|
|
27
28
|
| fitValue | `tx-stat-tile` — the value shrinks with the tile width instead of wrapping |
|
|
28
29
|
| accentValue | `tx-stat-tile` — the value in the tone colour |
|
|
29
30
|
| highlighted | `tx-stat-tile` — tinted background and ring in the tone |
|
|
31
|
+
| compact | `tx-stat-tile`: the compact look of this tile; without it the tile follows its grid |
|
|
30
32
|
| link | `tx-stat-tile` — router link of the whole tile |
|
|
31
33
|
| queryParams | `tx-stat-tile` — query params of the router link |
|
|
32
34
|
| href | `tx-stat-tile` — plain URL of the whole tile |
|
|
@@ -36,6 +38,20 @@ A responsive grid of key numbers — totals, rates, counts — each tile with a
|
|
|
36
38
|
| ptOptions | How `pt` merges with the global pass-through |
|
|
37
39
|
| unstyled | Removes the tectra styles |
|
|
38
40
|
|
|
41
|
+
## Grid in a wrapper component
|
|
42
|
+
|
|
43
|
+
A tile reads `compact` from its grid through the `TX_STAT_TILES` token. Tiles projected into a component that wraps `tx-stat-tiles` cannot see the grid, because Angular resolves them where they are written. Add `provideTxStatTilesRelay()` to the wrapper's `providers` — the grid inside it then reaches the projected tiles — or set `compact` on each tile.
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
@Component({
|
|
47
|
+
selector: 'kpi-row',
|
|
48
|
+
imports: [TxStatTiles],
|
|
49
|
+
providers: [provideTxStatTilesRelay()],
|
|
50
|
+
template: `<tx-stat-tiles compact ariaLabel="Key numbers"><ng-content /></tx-stat-tiles>`,
|
|
51
|
+
})
|
|
52
|
+
export class KpiRow {}
|
|
53
|
+
```
|
|
54
|
+
|
|
39
55
|
## Slots
|
|
40
56
|
| Name | Description |
|
|
41
57
|
|---|---|
|
package/status-icon/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Status icon
|
|
2
2
|
|
|
3
|
-
A small coloured icon for a yes / no or a severity state in tables and lists — a check in green or a cross in red, with a label for screen readers and a native tooltip.
|
|
3
|
+
A small coloured icon for a yes / no or a severity state in tables and lists — a check in green or a cross in red, with a label for screen readers and a native or a kit tooltip.
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
6
|
<tx-status-icon [status]="user.verified" label="Verified" />
|
|
@@ -15,6 +15,8 @@ A small coloured icon for a yes / no or a severity state in tables and lists —
|
|
|
15
15
|
| icon | Own icon name or icon class |
|
|
16
16
|
| label | Accessible name and tooltip; "Yes" / "No" for `status` by default; empty makes the icon decorative |
|
|
17
17
|
| toolTip | Same as `label` |
|
|
18
|
+
| tooltip | How the label shows on hover: `false` (default) — the native title; `true` (or the bare attribute) — a kit tooltip (`txTooltip`); `none` — no hint, the label stays for screen readers |
|
|
19
|
+
| tooltipPlacement | Side of the kit tooltip (`top` by default) |
|
|
18
20
|
| size | `small`, `medium`, `large` |
|
|
19
21
|
| dt | Design tokens of this instance (`statusIcon`) |
|
|
20
22
|
| pt | Classes and styles of the parts: `root`, `icon` |
|
package/table/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Filtering, sorting and pagination run on `value` unless `lazy` is on — then `l
|
|
|
34
34
|
| ariaLabel | Name of the table |
|
|
35
35
|
| ariaLabelledBy | Id of the element that names the table |
|
|
36
36
|
| caption | Text of a `<caption>` hidden on screen: names the table for screen readers when there is no `ariaLabel`, or describes it in more words |
|
|
37
|
-
| rowClass | Function `(row, index)` that returns classes for a row |
|
|
37
|
+
| rowClass | Function `(row, index)` that returns classes for a row: a string, an array of names or an object `{ name: boolean }` (as `[class]` takes); added next to the `row` pass-through class |
|
|
38
38
|
| sortMode | `single` (default) or `multiple` — with `multiple`, Ctrl / ⌘ + click adds a column to the sort |
|
|
39
39
|
| sortField | Field the table is sorted by. Two-way: `[(sortField)]` |
|
|
40
40
|
| sortOrder | `asc`, `desc` or `null`. Two-way: `[(sortOrder)]`; a click goes asc → desc → none |
|
package/tag/README.md
CHANGED
|
@@ -7,6 +7,8 @@ A short label with a severity — a version, a category, an ID you can copy. Squ
|
|
|
7
7
|
<tx-tag severity="secondary" [copyable]="true">ord_8F2KQ1</tx-tag>
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
+
The same entry point exports `TxTagList`: `<tx-tag-list [tags]="tags" [limit]="3" />` keeps the tags on one line, shows the first `limit` of them and a `+N` tag that opens the rest in a popover. Its inputs and keyboard map are in [docs/tag-list.md](docs/tag-list.md).
|
|
11
|
+
|
|
10
12
|
## Inputs
|
|
11
13
|
| Name | Description |
|
|
12
14
|
|---|---|
|
package/tree-select/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Tree select
|
|
2
2
|
|
|
3
|
-
Pick from a hierarchy — folders, categories, org units. A select whose panel is a tree (`role="tree"`): expand with the arrows, search keeps the parents of what matches, one node, several nodes, or checkboxes that check a whole branch. The value is the node `key` (an array of keys for several). Also exports the tree helpers `walkTree`, `findNode`, `descendantKeys`, `normalizeChecked`.
|
|
3
|
+
Pick from a hierarchy — folders, categories, org units. A select whose panel is a tree (`role="tree"`): expand with the arrows, search keeps the parents of what matches, one node, several nodes, or checkboxes that check a whole branch. The value is the node `key` (an array of keys for several). Also exports the tree helpers `walkTree`, `findNode`, `descendantKeys`, `normalizeChecked`. The panel is at least as wide as the field and grows with its tree up to `--tx-form-field-panel-max-width` (300px; one field changes it with `[dt]="{ overlay: { maxWidth: '520px' } }"`), never past the screen; it keeps the width it opened with while you search or expand branches, and lines up with the end of the field when there is no room on the right.
|
|
4
4
|
|
|
5
5
|
## Inputs
|
|
6
6
|
| Name | Description |
|
package/truncate-text/README.md
CHANGED
|
@@ -27,7 +27,8 @@ One line of text cut to a number of characters, with the full value in a tooltip
|
|
|
27
27
|
## Outputs
|
|
28
28
|
| Name | Description |
|
|
29
29
|
|---|---|
|
|
30
|
-
| copied | The text was copied; gives the copied text |
|
|
30
|
+
| copied | The text was copied; gives the copied text. Copying uses the Clipboard API and falls back to a selection outside a secure context |
|
|
31
|
+
| copyFailed | The browser refused to copy; gives the text. The button says "Could not copy" for a moment instead of the check mark — show your own message from here |
|
|
31
32
|
|
|
32
33
|
## Keyboard
|
|
33
34
|
| Key | Action |
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
2
|
import { TectraAmountTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
import { InjectionToken, Provider } from "@angular/core";
|
|
4
5
|
/** Names of the parts of `tx-amount` that `pt` can style. */
|
|
5
6
|
export type TxAmountPart = 'root' | 'value' | 'currency';
|
|
6
7
|
/** How large numbers are written: in full (`standard`) or shortened like 1.2K (`compact`). */
|
|
7
8
|
export type TxAmountNotation = 'standard' | 'compact';
|
|
8
9
|
/** How the currency is written: narrow symbol, symbol, ISO code or full name. */
|
|
9
10
|
export type TxAmountCurrencyDisplay = 'narrowSymbol' | 'symbol' | 'code' | 'name';
|
|
11
|
+
/** Where the currency goes: `auto` as the locale writes it, `before` or `after` the number. */
|
|
12
|
+
export type TxAmountSymbolPosition = 'auto' | 'before' | 'after';
|
|
13
|
+
/** Own currency texts by ISO or custom code, such as `{ USDT: '₮', UAH: 'грн' }`. */
|
|
14
|
+
export type TxAmountSymbols = Readonly<Record<string, string>>;
|
|
10
15
|
/** Sign of an amount: `positive`, `negative` or `zero`. */
|
|
11
16
|
export type TxAmountSign = 'positive' | 'negative' | 'zero';
|
|
12
17
|
/** One piece of a formatted amount: the currency part or the number part. */
|
|
@@ -33,6 +38,19 @@ export interface TxAmountFormatOptions {
|
|
|
33
38
|
currencyDisplay?: TxAmountCurrencyDisplay;
|
|
34
39
|
/** Writes `+` before positive amounts (default off). */
|
|
35
40
|
showSign?: boolean;
|
|
41
|
+
/** Where the currency goes (default `auto`: as the locale writes it). */
|
|
42
|
+
symbolPosition?: TxAmountSymbolPosition;
|
|
43
|
+
/** Own currency texts by code; a code found here is written with its own text instead of the `Intl` one. */
|
|
44
|
+
symbols?: TxAmountSymbols;
|
|
45
|
+
}
|
|
46
|
+
/** App-wide defaults of every `tx-amount`; set them with `provideTxAmount`. */
|
|
47
|
+
export interface TxAmountOptions {
|
|
48
|
+
/** `Intl` locale of the numbers, such as `en-US`, apart from the language of the interface; the tectra locale when not set. */
|
|
49
|
+
locale?: string;
|
|
50
|
+
/** Where the currency goes (default `auto`). */
|
|
51
|
+
symbolPosition?: TxAmountSymbolPosition;
|
|
52
|
+
/** Own currency texts by code, such as `{ USDT: 'USDT', BTC: '₿' }`. */
|
|
53
|
+
symbols?: TxAmountSymbols;
|
|
36
54
|
}
|
|
37
55
|
/**
|
|
38
56
|
* A number or a sum of money formatted for the current locale — grouping, decimals, currency symbol and its position come from `Intl`. Empty values show a dash, zero is muted.
|
|
@@ -41,6 +59,7 @@ export interface TxAmountFormatOptions {
|
|
|
41
59
|
export declare class TxAmount {
|
|
42
60
|
private readonly amountTheme;
|
|
43
61
|
private localeService;
|
|
62
|
+
private options;
|
|
44
63
|
/** The number; `null` or `undefined` shows `emptyText` */
|
|
45
64
|
readonly amount: import("@angular/core").InputSignal<number | null | undefined>;
|
|
46
65
|
/** ISO 4217 code (`USD`, `EUR`, `UAH`); an unknown code is shown after the number as is */
|
|
@@ -57,8 +76,12 @@ export declare class TxAmount {
|
|
|
57
76
|
readonly signColor: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
58
77
|
/** Bolder number */
|
|
59
78
|
readonly strong: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
60
|
-
/** Own `Intl` locale instead of the current tectra locale */
|
|
79
|
+
/** Own `Intl` locale instead of the current tectra locale (or the `locale` of `provideTxAmount`) */
|
|
61
80
|
readonly locale: import("@angular/core").InputSignal<string | undefined>;
|
|
81
|
+
/** Where the currency goes: `auto` (as the locale writes it, by default), `before` or `after` the number, in any locale */
|
|
82
|
+
readonly symbolPosition: import("@angular/core").InputSignal<TxAmountSymbolPosition | undefined>;
|
|
83
|
+
/** Own currency texts by code, e.g. `{ USDT: '₮' }`; merged over the `symbols` of `provideTxAmount` */
|
|
84
|
+
readonly symbols: import("@angular/core").InputSignal<Readonly<Record<string, string>> | undefined>;
|
|
62
85
|
/** Shown when there is no number */
|
|
63
86
|
readonly emptyText: import("@angular/core").InputSignal<string>;
|
|
64
87
|
/** Design tokens of this instance (`amount`) */
|
|
@@ -124,6 +147,16 @@ export declare class TxAmount {
|
|
|
124
147
|
"required": false;
|
|
125
148
|
"isSignal": true;
|
|
126
149
|
};
|
|
150
|
+
"symbolPosition": {
|
|
151
|
+
"alias": "symbolPosition";
|
|
152
|
+
"required": false;
|
|
153
|
+
"isSignal": true;
|
|
154
|
+
};
|
|
155
|
+
"symbols": {
|
|
156
|
+
"alias": "symbols";
|
|
157
|
+
"required": false;
|
|
158
|
+
"isSignal": true;
|
|
159
|
+
};
|
|
127
160
|
"emptyText": {
|
|
128
161
|
"alias": "emptyText";
|
|
129
162
|
"required": false;
|
|
@@ -159,4 +192,11 @@ export declare function parseDigitsInfo(format: string | undefined): Pick<Intl.N
|
|
|
159
192
|
* Formats a number as money in the given locale and currency and splits the result into currency and number segments.
|
|
160
193
|
*/
|
|
161
194
|
export declare function formatAmount(amount: number, options: TxAmountFormatOptions): TxAmountSegment[];
|
|
195
|
+
/** App-wide defaults of every `tx-amount`; set them with `provideTxAmount`. */
|
|
196
|
+
export declare const TX_AMOUNT_OPTIONS: InjectionToken<TxAmountOptions>;
|
|
197
|
+
/**
|
|
198
|
+
* Sets app-wide defaults of every `tx-amount`: the number locale, where the currency goes and own currency texts,
|
|
199
|
+
* e.g. `provideTxAmount({ locale: 'uk-UA', symbolPosition: 'after', symbols: { USDT: 'USDT' } })`.
|
|
200
|
+
*/
|
|
201
|
+
export declare function provideTxAmount(options: TxAmountOptions): Provider;
|
|
162
202
|
//# sourceMappingURL=tectra-ng-ui-amount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-amount.d.ts","names":[],"sources":["../../../../packages/ui/amount/src/amount.types.ts","../../../../packages/ui/amount/src/amount.component.ts","../../../../packages/ui/amount/src/format-amount.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-amount.d.ts","names":[],"sources":["../../../../packages/ui/amount/src/amount.types.ts","../../../../packages/ui/amount/src/amount.component.ts","../../../../packages/ui/amount/src/format-amount.ts","../../../../packages/ui/amount/src/amount.options.ts"],"mappings":";;;;;YACY;;YAGA;;YAGA;;YAGA;;YAGA,kBAAkB,SAAS;;YAG3B;;iBAGK;;EAEf;;EAEA;;;iBAIe;;EAEf;;EAEA;;;;;EAKA;;EAEA,WAAW;;EAEX,kBAAkB;;EAElB;;EAEA,iBAAiB;;EAEjB,UAAU;;;iBAIK;;EAEf;;EAEA,iBAAiB;;EAEjB,UAAU;;;;;;qBCfC;mBACM;UAET;UACA;;WAEC,gCAAM;;WACN,kCAAQ;;WACR,gCAAM;;WACN,kCAAQ,YAAA;;WACR,yCAAe,YAAA;;WACf,kCAAQ;;WACR,mCAAS;;WACT,gCAAM;;WACN,gCAAM;;WACN,wCAAc,YAAA;;WACd,iCAAO,YAAA,SAAA;;WACP,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,+CAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,+CAAA;WACX,iCAAO;WAIP,8BAAI,OAAA;WAOJ,kCAAQ,sCAAA;WAgBR,mCAAS;;;SApDP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAQ;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;;;;;;;wBC9BL,gBAAgB,6BAA6B,KAAK,KAAK;;;;wBAuDvD,aAAa,gBAAgB,SAAS,wBAAwB;;qBC9DjE,mBAAiB,eAAA;;;;;wBAMd,gBAAgB,SAAS,kBAAkB"}
|
|
@@ -63,16 +63,13 @@ export declare class TxAnalogClock {
|
|
|
63
63
|
[x: string]: string;
|
|
64
64
|
}>;
|
|
65
65
|
protected readonly ticks: number[];
|
|
66
|
-
private readonly
|
|
67
|
-
private timer;
|
|
66
|
+
private readonly timeSource;
|
|
68
67
|
private readonly fixedTime;
|
|
69
68
|
readonly hands: import("@angular/core").Signal<import("@tectra-ng/ui/analog-clock").TxAnalogClockHands>;
|
|
70
69
|
readonly label: import("@angular/core").Signal<string>;
|
|
71
70
|
readonly hourAngle: import("@angular/core").WritableSignal<number>;
|
|
72
71
|
readonly minuteAngle: import("@angular/core").WritableSignal<number>;
|
|
73
72
|
readonly secondAngle: import("@angular/core").WritableSignal<number>;
|
|
74
|
-
private readonly schedule;
|
|
75
|
-
private readonly cleanup;
|
|
76
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxAnalogClock, never>;
|
|
77
74
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxAnalogClock, "tx-analog-clock", never, {
|
|
78
75
|
"timezone": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-analog-clock.d.ts","names":[],"sources":["../../../../packages/ui/analog-clock/src/analog-clock.types.ts","../../../../packages/ui/analog-clock/src/analog-clock.utils.ts","../../../../packages/ui/analog-clock/src/analog-clock-hands.pipe.ts","../../../../packages/ui/analog-clock/src/analog-clock.component.ts"],"mappings":";;;;;YACY;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;;YAIU,oBAAoB;;wBCbhB,cAAc;;wBAWd,UAAU,OAAO;;;;wBASjB,WAAW,cAAc,eAAe,sCAAsC;;;;wBAoB9E,aAAa,yBAAyB;;qBCrCzC,kCAAkC;EAC7C,UAAU,cAAc,eAAe,2BAAiC;SAD7D,MAAA,GAAA,qBAAA;SAAA,OAAA,GAAA,kBAAA;;;;;;qBCmDA;mBACM;;WAER,kCAAQ;;WACR,8BAAI,YAAA;;WACJ,qCAAW;;WACX,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,oDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,oDAAA;WACX,mCAAS;;;qBAEC;mBACF;
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-analog-clock.d.ts","names":[],"sources":["../../../../packages/ui/analog-clock/src/analog-clock.types.ts","../../../../packages/ui/analog-clock/src/analog-clock.utils.ts","../../../../packages/ui/analog-clock/src/analog-clock-hands.pipe.ts","../../../../packages/ui/analog-clock/src/analog-clock.component.ts"],"mappings":";;;;;YACY;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;;YAIU,oBAAoB;;wBCbhB,cAAc;;wBAWd,UAAU,OAAO;;;;wBASjB,WAAW,cAAc,eAAe,sCAAsC;;;;wBAoB9E,aAAa,yBAAyB;;qBCrCzC,kCAAkC;EAC7C,UAAU,cAAc,eAAe,2BAAiC;SAD7D,MAAA,GAAA,qBAAA;SAAA,OAAA,GAAA,kBAAA;;;;;;qBCmDA;mBACM;;WAER,kCAAQ;;WACR,8BAAI,YAAA;;WACJ,qCAAW;;WACX,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,oDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,oDAAA;WACX,mCAAS;;;qBAEC;mBACF;mBAEA;WACR,+BAAK,4CAAA;WACL,+BAAK;WACL,mCAAS;WACT,qCAAW;WACX,qCAAW;SAxBT,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"}
|
|
@@ -24,7 +24,7 @@ export interface TxAutocompleteChangeEvent {
|
|
|
24
24
|
selected: boolean;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* A text field that suggests values while you type. Free text, or only a suggestion with `forceSelection`; one value or several as chips. You load the suggestions in `completed` (from a server or a local list), or let the field search a fixed list with `localSearch`. Works with `[formControl]`, `ngModel` and signal forms.
|
|
27
|
+
* A text field that suggests values while you type. Free text, or only a suggestion with `forceSelection`; one value or several as chips. You load the suggestions in `completed` (from a server or a local list), or let the field search a fixed list with `localSearch`. Works with `[formControl]`, `ngModel` and signal forms. The panel is at least as wide as the field and grows with its suggestions up to `--tx-form-field-panel-max-width` (300px; one field changes it with `[dt]="{ overlay: { maxWidth: '520px' } }"`), never past the screen; it keeps the width it opened with while you type, and lines up with the end of the field when there is no room on the right.
|
|
28
28
|
* @see https://tectra-ng.com/components/autocomplete
|
|
29
29
|
*/
|
|
30
30
|
export declare class TxAutocomplete extends TxSelectBase<unknown> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { InjectionToken, Signal } from "@angular/core";
|
|
2
|
+
import { InjectionToken, Provider, Signal } from "@angular/core";
|
|
3
3
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
4
4
|
import { TxIconName } from "@tectra-ng/icons";
|
|
5
5
|
import { TectraAvatarTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
@@ -9,10 +9,19 @@ import { TxMenuItem } from "@tectra-ng/ui/menu";
|
|
|
9
9
|
export type TxAvatarSize = 'small' | 'medium' | 'large' | 'xlarge';
|
|
10
10
|
/** Outline of an avatar: `circle` or `square`. */
|
|
11
11
|
export type TxAvatarShape = 'circle' | 'square';
|
|
12
|
-
/** Background colour of an avatar with initials. */
|
|
13
|
-
export type TxAvatarTone = 'blue' | 'green' | 'sky' | 'orange' | 'purple' | 'red';
|
|
12
|
+
/** Background colour of an avatar with initials: a tinted tone, or `solid` (the primary colour). */
|
|
13
|
+
export type TxAvatarTone = 'blue' | 'green' | 'sky' | 'orange' | 'purple' | 'red' | 'solid';
|
|
14
14
|
/** Name hint of an avatar: `true` the kit tooltip, `false` the native title, `none` no hint at all. */
|
|
15
15
|
export type TxAvatarTooltip = boolean | 'none';
|
|
16
|
+
/** App-wide settings of every `tx-avatar`; set them with `provideTxAvatar`. */
|
|
17
|
+
export interface TxAvatarOptions {
|
|
18
|
+
/** Turns a name into initials; `avatarInitials` (first letters of the first and the last word) by default. */
|
|
19
|
+
initials?: (name: string) => string;
|
|
20
|
+
/** Photo addresses (exact text or a pattern) that are blank placeholders: such an avatar shows initials instead. */
|
|
21
|
+
placeholderImages?: readonly (string | RegExp)[];
|
|
22
|
+
/** One tone for every avatar with initials instead of the one picked from the name; `tone` of an avatar still wins. */
|
|
23
|
+
tone?: TxAvatarTone;
|
|
24
|
+
}
|
|
16
25
|
/** Names of the parts of `tx-avatar` that `pt` can style. */
|
|
17
26
|
export type TxAvatarPart = 'root' | 'image' | 'label' | 'icon';
|
|
18
27
|
/** Names of the parts of `tx-avatar-group` that `pt` can style. */
|
|
@@ -41,6 +50,18 @@ export interface TxAvatarGroupContext {
|
|
|
41
50
|
}
|
|
42
51
|
/** Lets an avatar read the size, shape and tooltip settings of the `tx-avatar-group` around it. */
|
|
43
52
|
export declare const TX_AVATAR_GROUP: InjectionToken<TxAvatarGroupContext>;
|
|
53
|
+
/** App-wide settings of every `tx-avatar`; set them with `provideTxAvatar`. */
|
|
54
|
+
export declare const TX_AVATAR_OPTIONS: InjectionToken<TxAvatarOptions>;
|
|
55
|
+
/**
|
|
56
|
+
* Sets app-wide settings of every `tx-avatar`: the initials rule, placeholder photos that show initials and one tone,
|
|
57
|
+
* e.g. `provideTxAvatar({ placeholderImages: ['/assets/blank.png'], tone: 'solid' })`.
|
|
58
|
+
*/
|
|
59
|
+
export declare function provideTxAvatar(options: TxAvatarOptions): Provider;
|
|
60
|
+
/**
|
|
61
|
+
* Initials of a name: the first letters of its first and last words, upper case (`Olena Kovalenko` → `OK`, `admin` → `A`);
|
|
62
|
+
* words are split by spaces, dots, underscores, `@` and dashes.
|
|
63
|
+
*/
|
|
64
|
+
export declare function avatarInitials(name: string): string;
|
|
44
65
|
/**
|
|
45
66
|
* A person or an item as a small picture: a photo, otherwise initials from the name on a colour picked from the name, otherwise an icon. A broken photo falls back on its own. `tx-avatar-group` stacks several with an overlap, shows each name in a tooltip, and a `+N` button opens a popover that lists the hidden people.
|
|
46
67
|
* @see https://tectra-ng.com/components/avatar
|
|
@@ -49,7 +70,8 @@ export declare class TxAvatar {
|
|
|
49
70
|
private readonly avatarTheme;
|
|
50
71
|
private txIconRegistry;
|
|
51
72
|
private group;
|
|
52
|
-
|
|
73
|
+
private options;
|
|
74
|
+
/** Photo URL; when it is empty, a placeholder of `provideTxAvatar` or fails to load, initials or the icon show instead */
|
|
53
75
|
readonly image: import("@angular/core").InputSignal<string | null | undefined>;
|
|
54
76
|
/** Person's name: initials, colour, accessible name and title */
|
|
55
77
|
readonly name: import("@angular/core").InputSignal<string | null | undefined>;
|
|
@@ -57,17 +79,17 @@ export declare class TxAvatar {
|
|
|
57
79
|
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
58
80
|
/** Icon when there is no photo and no name */
|
|
59
81
|
readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
|
|
60
|
-
/** `small`, `medium`, `large`, `xlarge
|
|
61
|
-
readonly size: import("@angular/core").InputSignal<number | TxAvatarSize | undefined>;
|
|
82
|
+
/** `small`, `medium`, `large`, `xlarge`, a number of px (inherits the group), or `fill`: the whole box of the parent (give it a width and height), with the text scaled to it */
|
|
83
|
+
readonly size: import("@angular/core").InputSignal<number | TxAvatarSize | "fill" | undefined>;
|
|
62
84
|
/** `circle` or `square` (inherits the group) */
|
|
63
85
|
readonly shape: import("@angular/core").InputSignal<TxAvatarShape | undefined>;
|
|
64
|
-
/** Own colour instead of the one picked from the name: `blue`, `green`, `sky`, `orange`, `purple`, `red` */
|
|
86
|
+
/** Own colour instead of the one picked from the name (or the `tone` of `provideTxAvatar`): `blue`, `green`, `sky`, `orange`, `purple`, `red`, or `solid` (the primary colour) */
|
|
65
87
|
readonly tone: import("@angular/core").InputSignal<TxAvatarTone | undefined>;
|
|
66
88
|
/** Accessible name instead of `name`; without both the avatar is decorative */
|
|
67
89
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
68
90
|
/** Shows `name` (or `ariaLabel`) in a tooltip instead of the native title; `none` shows no hint at all (neither tooltip nor title); inherits `tooltips` of the group, off on its own */
|
|
69
91
|
readonly tooltip: import("@angular/core").InputSignalWithTransform<TxAvatarTooltip | undefined, unknown>;
|
|
70
|
-
/** Design tokens of this instance (`avatar`) */
|
|
92
|
+
/** Design tokens of this instance (`avatar`); on a group they also reach the list of hidden people */
|
|
71
93
|
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraAvatarTokens> | undefined>;
|
|
72
94
|
/** Classes and styles of the parts: `root`, `image`, `label`, `icon`; group: `root`, `more`, `add`, `list`, `item`, `name` */
|
|
73
95
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxAvatarPart, import("@tectra-ng/core/config").TxPassThroughValue<TxAvatar>>> | undefined>;
|
|
@@ -82,8 +104,8 @@ export declare class TxAvatar {
|
|
|
82
104
|
readonly failed: import("@angular/core").WritableSignal<boolean>;
|
|
83
105
|
readonly showImage: import("@angular/core").Signal<boolean>;
|
|
84
106
|
readonly initials: import("@angular/core").Signal<string>;
|
|
85
|
-
readonly resolvedSize: import("@angular/core").Signal<number | TxAvatarSize>;
|
|
86
|
-
readonly presetSize: import("@angular/core").Signal<number | TxAvatarSize | null>;
|
|
107
|
+
readonly resolvedSize: import("@angular/core").Signal<number | TxAvatarSize | "fill">;
|
|
108
|
+
readonly presetSize: import("@angular/core").Signal<number | TxAvatarSize | "fill" | null>;
|
|
87
109
|
readonly resolvedShape: import("@angular/core").Signal<TxAvatarShape>;
|
|
88
110
|
readonly resolvedTone: import("@angular/core").Signal<TxAvatarTone | null>;
|
|
89
111
|
readonly accessibleName: import("@angular/core").Signal<string | null>;
|
|
@@ -96,6 +118,7 @@ export declare class TxAvatar {
|
|
|
96
118
|
}>;
|
|
97
119
|
constructor();
|
|
98
120
|
onImageError(event: Event): void;
|
|
121
|
+
private isPlaceholder;
|
|
99
122
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxAvatar, never>;
|
|
100
123
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxAvatar, "tx-avatar", never, {
|
|
101
124
|
"image": {
|
|
@@ -181,7 +204,7 @@ export declare class TxAvatarGroup {
|
|
|
181
204
|
private readonly avatarTheme;
|
|
182
205
|
/** shows this many avatars and a `+N` button; it opens a popover that lists the hidden ones (avatar + name) */
|
|
183
206
|
readonly max: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
184
|
-
/** `small`, `medium`, `large`, `xlarge
|
|
207
|
+
/** `small`, `medium`, `large`, `xlarge`, a number of px (inherits the group), or `fill`: the whole box of the parent (give it a width and height), with the text scaled to it */
|
|
185
208
|
readonly size: import("@angular/core").InputSignal<number | TxAvatarSize | undefined>;
|
|
186
209
|
/** `circle` or `square` (inherits the group) */
|
|
187
210
|
readonly shape: import("@angular/core").InputSignal<TxAvatarShape | undefined>;
|
|
@@ -197,7 +220,7 @@ export declare class TxAvatarGroup {
|
|
|
197
220
|
readonly addButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
198
221
|
/** tooltip and accessible name of the add button ("Add a person", translated, by default) */
|
|
199
222
|
readonly addLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
200
|
-
/** Design tokens of this instance (`avatar`) */
|
|
223
|
+
/** Design tokens of this instance (`avatar`); on a group they also reach the list of hidden people */
|
|
201
224
|
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraAvatarTokens> | undefined>;
|
|
202
225
|
/** Classes and styles of the parts: `root`, `image`, `label`, `icon`; group: `root`, `more`, `add`, `list`, `item`, `name` */
|
|
203
226
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxAvatarGroupPart, import("@tectra-ng/core/config").TxPassThroughValue<TxAvatarGroup>>> | undefined>;
|
|
@@ -220,6 +243,9 @@ export declare class TxAvatarGroup {
|
|
|
220
243
|
'--tx-avatar-size'?: string | undefined;
|
|
221
244
|
'--_overlap': string;
|
|
222
245
|
}>;
|
|
246
|
+
readonly listStyle: import("@angular/core").Signal<{
|
|
247
|
+
[x: string]: string;
|
|
248
|
+
}>;
|
|
223
249
|
readonly context: TxAvatarGroupContext;
|
|
224
250
|
nameOf(avatar: TxAvatar): string;
|
|
225
251
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxAvatarGroup, never>;
|
|
@@ -309,6 +335,8 @@ export declare class TxAvatarEditor {
|
|
|
309
335
|
readonly name: import("@angular/core").InputSignal<string | null | undefined>;
|
|
310
336
|
/** Size of the photo in px (112 by default, `editor.size` token) */
|
|
311
337
|
readonly size: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
338
|
+
/** `circle` (default) or `square` */
|
|
339
|
+
readonly shape: import("@angular/core").InputSignal<TxAvatarShape>;
|
|
312
340
|
/** Spinner over the photo while the new one uploads; the button is off */
|
|
313
341
|
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
314
342
|
/** Turns the button and drop off */
|
|
@@ -382,6 +410,11 @@ export declare class TxAvatarEditor {
|
|
|
382
410
|
"required": false;
|
|
383
411
|
"isSignal": true;
|
|
384
412
|
};
|
|
413
|
+
"shape": {
|
|
414
|
+
"alias": "shape";
|
|
415
|
+
"required": false;
|
|
416
|
+
"isSignal": true;
|
|
417
|
+
};
|
|
385
418
|
"loading": {
|
|
386
419
|
"alias": "loading";
|
|
387
420
|
"required": false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-avatar.d.ts","names":[],"sources":["../../../../packages/ui/avatar/src/avatar.types.ts","../../../../packages/ui/avatar/src/avatar-group.token.ts","../../../../packages/ui/avatar/src/avatar.component.ts","../../../../packages/ui/avatar/src/avatar-group.component.ts","../../../../packages/ui/avatar/src/avatar-editor.component.ts"],"mappings":";;;;;;;;YACY;;YAEA;;YAEA;;YAEA;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-avatar.d.ts","names":[],"sources":["../../../../packages/ui/avatar/src/avatar.types.ts","../../../../packages/ui/avatar/src/avatar-group.token.ts","../../../../packages/ui/avatar/src/avatar.options.ts","../../../../packages/ui/avatar/src/avatar.component.ts","../../../../packages/ui/avatar/src/avatar-group.component.ts","../../../../packages/ui/avatar/src/avatar-editor.component.ts"],"mappings":"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"}
|
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
import { ElementRef } from "@angular/core";
|
|
4
4
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
5
5
|
import { TxFormControlBase } from "@tectra-ng/core/forms";
|
|
6
|
-
import { TxPlacement } from "@tectra-ng/core/overlay";
|
|
6
|
+
import { TxPanelWidth, TxPlacement } from "@tectra-ng/core/overlay";
|
|
7
7
|
import { TectraCascadeSelectTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
8
8
|
import { TxFieldVariant, TxSelectSize } from "@tectra-ng/ui/select";
|
|
9
9
|
/** Names of the parts of `tx-cascade-select` that `pt` can style. */
|
|
@@ -41,7 +41,7 @@ export interface TxCascadeSelectChangeEvent {
|
|
|
41
41
|
path: unknown[];
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* Pick a value through nested groups shown as columns — country → region → city, category → subcategory → item. The next column opens on hover or with ArrowRight; only leaves are values. Works with `[formControl]`, `ngModel` and signal forms.
|
|
44
|
+
* Pick a value through nested groups shown as columns — country → region → city, category → subcategory → item. The next column opens on hover or with ArrowRight; only leaves are values. Works with `[formControl]`, `ngModel` and signal forms. The panel is at least as wide as the field and grows with its columns up to the width of the screen; past it the columns narrow and scroll sideways.
|
|
45
45
|
* @see https://tectra-ng.com/components/cascade-select
|
|
46
46
|
*/
|
|
47
47
|
export declare class TxCascadeSelect extends TxFormControlBase<unknown> {
|
|
@@ -117,6 +117,7 @@ export declare class TxCascadeSelect extends TxFormControlBase<unknown> {
|
|
|
117
117
|
readonly positions: import("@angular/core").WritableSignal<import("@angular/cdk/overlay").ConnectedPosition[]>;
|
|
118
118
|
readonly scrollStrategy: import("@angular/cdk/overlay").ScrollStrategy;
|
|
119
119
|
readonly viewportMargin: import("@angular/core").WritableSignal<import("@angular/cdk/overlay").ViewportMargin>;
|
|
120
|
+
readonly panelWidth: TxPanelWidth;
|
|
120
121
|
readonly treeId: string;
|
|
121
122
|
readonly columnEnter: string[];
|
|
122
123
|
readonly noClasses: string[];
|