@tectra-ng/ui 0.4.3 → 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-accordion.mjs +21 -21
- package/fesm2022/tectra-ng-ui-amount.mjs +99 -17
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-analog-clock.mjs +12 -25
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +8 -7
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-avatar.mjs +68 -26
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-badge.mjs +3 -3
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs +9 -9
- package/fesm2022/tectra-ng-ui-button-group.mjs +3 -3
- package/fesm2022/tectra-ng-ui-button.mjs +11 -11
- package/fesm2022/tectra-ng-ui-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-card.mjs +5 -5
- package/fesm2022/tectra-ng-ui-card.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-carousel.mjs +15 -15
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +10 -7
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-checkbox.mjs +9 -9
- package/fesm2022/tectra-ng-ui-chip.mjs +3 -3
- package/fesm2022/tectra-ng-ui-chips-input.mjs +120 -21
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +96 -9
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-swatches.mjs +3 -3
- package/fesm2022/tectra-ng-ui-confirm.mjs +9 -9
- package/fesm2022/tectra-ng-ui-countdown.mjs +48 -19
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country-select.mjs +31 -8
- package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country.mjs +18 -9
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-data-view.mjs +30 -30
- package/fesm2022/tectra-ng-ui-datepicker.mjs +53 -40
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-dialog.mjs +30 -30
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-divider.mjs +3 -3
- package/fesm2022/tectra-ng-ui-drawer.mjs +9 -9
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs +3 -3
- package/fesm2022/tectra-ng-ui-export.mjs +1264 -111
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs +4 -3
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-fieldset.mjs +5 -5
- package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs +12 -12
- package/fesm2022/tectra-ng-ui-galleria.mjs +21 -21
- package/fesm2022/tectra-ng-ui-highlight-text.mjs +3 -3
- package/fesm2022/tectra-ng-ui-icon-field.mjs +63 -35
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-image.mjs +9 -9
- package/fesm2022/tectra-ng-ui-input-group.mjs +6 -6
- package/fesm2022/tectra-ng-ui-input-mask.mjs +3 -3
- package/fesm2022/tectra-ng-ui-input-number.mjs +5 -5
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-otp.mjs +3 -3
- package/fesm2022/tectra-ng-ui-input.mjs +11 -10
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-key-filter.mjs +87 -22
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-knob.mjs +30 -8
- package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-label.mjs +77 -18
- package/fesm2022/tectra-ng-ui-label.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-link.mjs +44 -20
- package/fesm2022/tectra-ng-ui-link.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-list-input.mjs +3 -3
- package/fesm2022/tectra-ng-ui-listbox.mjs +3 -3
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs +19 -8
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menu.mjs +15 -15
- package/fesm2022/tectra-ng-ui-menubar.mjs +6 -6
- package/fesm2022/tectra-ng-ui-message.mjs +23 -19
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-month-calendar.mjs +32 -15
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-multiselect.mjs +6 -5
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-overlay-badge.mjs +3 -3
- package/fesm2022/tectra-ng-ui-paginator.mjs +9 -9
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +51 -20
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel.mjs +7 -5
- package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password-generator.mjs +24 -7
- package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password.mjs +14 -14
- package/fesm2022/tectra-ng-ui-password.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-pill.mjs +39 -19
- package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-popover.mjs +15 -15
- package/fesm2022/tectra-ng-ui-progress-bar.mjs +6 -6
- package/fesm2022/tectra-ng-ui-progress-spinner.mjs +3 -3
- package/fesm2022/tectra-ng-ui-radio-button.mjs +6 -6
- package/fesm2022/tectra-ng-ui-rating.mjs +11 -11
- package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs +3 -3
- package/fesm2022/tectra-ng-ui-select-button.mjs +6 -6
- package/fesm2022/tectra-ng-ui-select.mjs +66 -43
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-skeleton.mjs +6 -6
- package/fesm2022/tectra-ng-ui-slider.mjs +3 -3
- package/fesm2022/tectra-ng-ui-sparkline.mjs +3 -3
- package/fesm2022/tectra-ng-ui-speed-dial.mjs +3 -3
- package/fesm2022/tectra-ng-ui-split-button.mjs +3 -3
- package/fesm2022/tectra-ng-ui-splitter.mjs +6 -6
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs +99 -14
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-status-icon.mjs +43 -6
- package/fesm2022/tectra-ng-ui-status-icon.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stepper.mjs +41 -35
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +74 -60
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs +18 -18
- package/fesm2022/tectra-ng-ui-tag.mjs +8 -8
- package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-textarea.mjs +9 -9
- package/fesm2022/tectra-ng-ui-timeline.mjs +15 -15
- package/fesm2022/tectra-ng-ui-toast.mjs +11 -11
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toggle-button.mjs +3 -3
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs +6 -6
- package/fesm2022/tectra-ng-ui-toolbar.mjs +12 -12
- package/fesm2022/tectra-ng-ui-tooltip.mjs +9 -9
- package/fesm2022/tectra-ng-ui-tree-select.mjs +13 -11
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +7 -7
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree.mjs +30 -30
- package/fesm2022/tectra-ng-ui-truncate-text.mjs +36 -12
- package/fesm2022/tectra-ng-ui-truncate-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +15 -15
- package/fesm2022/tectra-ng-ui.mjs +1 -1
- package/icon-field/README.md +2 -1
- package/input/README.md +1 -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 +4 -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-input.d.ts +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-stepper.d.ts +1 -0
- package/types/tectra-ng-ui-stepper.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/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":";;;;;;;;YACY;;YAEA;;YAEA;;YAEA;;iBAEK;;EAEf,YAAY;;EAEZ,uCAAuC;;EAEvC,OAAO;;;YAGG;;YAEA;;YAEA;;YAEA;;iBAGK;;WAEN,MAAM;;WAEN,QAAQ;;;iBC3BF;;WAEN,MAAM,OAAO;;WAEb,OAAO,OAAO;;WAEd,UAAU;;EAEnB,SAAS;;;qBAIE,iBAAe,eAAA;;qBCZf,mBAAiB,eAAA;;;;;wBAMd,gBAAgB,SAAS,kBAAkB;;;;;wBAQ3C,eAAe;;;;;qBCkClB;mBACM;UAET;UACA;UACA;;WAEC,+BAAK;;WACL,8BAAI;;WACJ,+BAAK;;WACL,8BAAI,YAAA;;WACJ,8BAAI,qBAAA;;WACJ,+BAAK,YAAA;;WACL,8BAAI,YAAA;;WACJ,mCAAS;;WACT,iCAAO,yBAAA;;WACP,4BAAE,YAAA,kBAAA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A;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA"}
|
|
@@ -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[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-cascade-select.d.ts","names":[],"sources":["../../../../packages/ui/cascade-select/src/cascade-select.types.ts","../../../../packages/ui/cascade-select/src/cascade-select.component.ts"],"mappings":";;;;;;;;;YACY;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-cascade-select.d.ts","names":[],"sources":["../../../../packages/ui/cascade-select/src/cascade-select.types.ts","../../../../packages/ui/cascade-select/src/cascade-select.component.ts"],"mappings":";;;;;;;;;YACY;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;;;;qBC+BW,wBAAwB;mBAClB;;WAER,iCAAO;;WACP,qCAAW;;WACX,qCAAW;;WACX,wCAAc;;WACd,0CAAgB;;WAChB,6CAAmB;;WACnB,iCAAO;;WACP,kCAAQ;;WACR,uCAAa;;WACb,qCAAW;;WACX,mCAAS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MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA"}
|
|
@@ -20,7 +20,27 @@ export interface TxChipsInputItemContext {
|
|
|
20
20
|
export interface TxChipsInputEvent {
|
|
21
21
|
/** The chip text that was added, removed or rejected. */
|
|
22
22
|
value: string;
|
|
23
|
-
/** The list of chips after the change;
|
|
23
|
+
/** The list of chips after the change; for a rejected value, the list after the whole input (a paste, an `add()` call) was handled. */
|
|
24
|
+
values: string[];
|
|
25
|
+
}
|
|
26
|
+
/** Why a value was not added: already in the list, the list is full, no match with `itemPattern`, or longer than `maxLength`. */
|
|
27
|
+
export type TxChipsInputRejectReason = 'duplicate' | 'max' | 'pattern' | 'length';
|
|
28
|
+
/** What `maxLength` does with a longer value: cut it (`truncate`) or refuse it (`reject`). */
|
|
29
|
+
export type TxChipsInputLengthMode = 'truncate' | 'reject';
|
|
30
|
+
/** Turns a trimmed value into the chip text before the checks; `null` or `''` drops the value. */
|
|
31
|
+
export type TxChipsInputNormalizer = (value: string) => string | null | undefined;
|
|
32
|
+
/** Payload of `rejected`: the refused value, the list after the whole input was handled and the reason. */
|
|
33
|
+
export interface TxChipsInputRejectedEvent extends TxChipsInputEvent {
|
|
34
|
+
/** Why the value was not added. */
|
|
35
|
+
reason: TxChipsInputRejectReason;
|
|
36
|
+
}
|
|
37
|
+
/** Payload of `committed`: everything one Enter, separator, blur, paste or `add()` call did. */
|
|
38
|
+
export interface TxChipsInputCommitEvent {
|
|
39
|
+
/** Values added, in order. */
|
|
40
|
+
added: string[];
|
|
41
|
+
/** Values refused, with their reasons. */
|
|
42
|
+
rejected: TxChipsInputRejectedEvent[];
|
|
43
|
+
/** The list of chips after the change. */
|
|
24
44
|
values: string[];
|
|
25
45
|
}
|
|
26
46
|
/**
|
|
@@ -34,10 +54,13 @@ export declare class TxChipsInputItemTemplate {
|
|
|
34
54
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxChipsInputItemTemplate, "ng-template[txChipsInputItem]", never, {}, {}, never, never, true, never>;
|
|
35
55
|
}
|
|
36
56
|
/**
|
|
37
|
-
* A text field that turns typed text into removable chips;
|
|
57
|
+
* A text field that turns typed text into removable chips; the value is a list of strings. A `ControlValueAccessor` —
|
|
58
|
+
* works with `[formControl]`, `ngModel`, signal forms and `[(value)]`.
|
|
38
59
|
*/
|
|
39
60
|
export declare class TxChipsInput extends TxFormControlBase<string[]> {
|
|
40
61
|
private readonly chipsInputTheme;
|
|
62
|
+
/** Two-way: the list of chips; use it or a form control */
|
|
63
|
+
readonly value: import("@angular/core").ModelSignal<string[] | null>;
|
|
41
64
|
/** Text shown while the field is empty */
|
|
42
65
|
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
43
66
|
/** Text or pattern that ends a chip while typing and splits pasted text (`,` by default); Enter always adds */
|
|
@@ -50,8 +73,12 @@ export declare class TxChipsInput extends TxFormControlBase<string[]> {
|
|
|
50
73
|
readonly caseSensitive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
51
74
|
/** Maximum number of chips; the field becomes read-only when full */
|
|
52
75
|
readonly max: import("@angular/core").InputSignal<number | undefined>;
|
|
53
|
-
/** Maximum length of one chip */
|
|
76
|
+
/** Maximum length of one chip; also caps typing in the field */
|
|
54
77
|
readonly maxLength: import("@angular/core").InputSignal<number | undefined>;
|
|
78
|
+
/** What happens to a longer pasted or added value: `truncate` cuts it (default), `reject` refuses it with the reason `length` */
|
|
79
|
+
readonly maxLengthMode: import("@angular/core").InputSignal<TxChipsInputLengthMode>;
|
|
80
|
+
/** `(value) => string | null` — turns the trimmed text into the chip text before the checks (duplicates compare the result); `null` or `''` drops the value */
|
|
81
|
+
readonly normalize: import("@angular/core").InputSignal<TxChipsInputNormalizer | undefined>;
|
|
55
82
|
/** Values that do not match are rejected (`rejected` output) */
|
|
56
83
|
readonly itemPattern: import("@angular/core").InputSignal<RegExp | undefined>;
|
|
57
84
|
/** Shows a button that removes all chips */
|
|
@@ -84,8 +111,10 @@ export declare class TxChipsInput extends TxFormControlBase<string[]> {
|
|
|
84
111
|
readonly added: import("@angular/core").OutputEmitterRef<TxChipsInputEvent>;
|
|
85
112
|
/** A chip was removed: `{ value, values }` */
|
|
86
113
|
readonly removed: import("@angular/core").OutputEmitterRef<TxChipsInputEvent>;
|
|
87
|
-
/** A value was not added
|
|
88
|
-
readonly rejected: import("@angular/core").OutputEmitterRef<
|
|
114
|
+
/** A value was not added: `{ value, values, reason }`, `reason` is `duplicate`, `max`, `pattern` or `length` */
|
|
115
|
+
readonly rejected: import("@angular/core").OutputEmitterRef<TxChipsInputRejectedEvent>;
|
|
116
|
+
/** Once per Enter, separator, blur, paste or `add()` call: `{ added, rejected, values }` */
|
|
117
|
+
readonly committed: import("@angular/core").OutputEmitterRef<TxChipsInputCommitEvent>;
|
|
89
118
|
readonly itemTemplate: import("@angular/core").Signal<TxChipsInputItemTemplate | undefined>;
|
|
90
119
|
readonly field: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
91
120
|
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
@@ -109,14 +138,21 @@ export declare class TxChipsInput extends TxFormControlBase<string[]> {
|
|
|
109
138
|
removeAt(index: number): void;
|
|
110
139
|
/** Removes every chip and the typed text */
|
|
111
140
|
clear(): void;
|
|
112
|
-
/** Adds a chip or a list of chips with the same
|
|
141
|
+
/** Adds a chip or a list of chips with the same steps as typing (`normalize`, `maxLength`, `itemPattern`, duplicates, `max`); emits `added` / `rejected`; does nothing when disabled or read-only. The typed text stays */
|
|
113
142
|
add(value: string | readonly string[]): void;
|
|
114
143
|
/** Clears the typed text and keeps the chips */
|
|
115
144
|
clearText(): void;
|
|
116
145
|
private addAll;
|
|
146
|
+
private prepare;
|
|
147
|
+
private rejectReason;
|
|
117
148
|
private setText;
|
|
118
149
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxChipsInput, never>;
|
|
119
150
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxChipsInput, "tx-chips-input", never, {
|
|
151
|
+
"value": {
|
|
152
|
+
"alias": "value";
|
|
153
|
+
"required": false;
|
|
154
|
+
"isSignal": true;
|
|
155
|
+
};
|
|
120
156
|
"placeholder": {
|
|
121
157
|
"alias": "placeholder";
|
|
122
158
|
"required": false;
|
|
@@ -152,6 +188,16 @@ export declare class TxChipsInput extends TxFormControlBase<string[]> {
|
|
|
152
188
|
"required": false;
|
|
153
189
|
"isSignal": true;
|
|
154
190
|
};
|
|
191
|
+
"maxLengthMode": {
|
|
192
|
+
"alias": "maxLengthMode";
|
|
193
|
+
"required": false;
|
|
194
|
+
"isSignal": true;
|
|
195
|
+
};
|
|
196
|
+
"normalize": {
|
|
197
|
+
"alias": "normalize";
|
|
198
|
+
"required": false;
|
|
199
|
+
"isSignal": true;
|
|
200
|
+
};
|
|
155
201
|
"itemPattern": {
|
|
156
202
|
"alias": "itemPattern";
|
|
157
203
|
"required": false;
|
|
@@ -223,10 +269,12 @@ export declare class TxChipsInput extends TxFormControlBase<string[]> {
|
|
|
223
269
|
"isSignal": true;
|
|
224
270
|
};
|
|
225
271
|
}, {
|
|
272
|
+
"value": "valueChange";
|
|
226
273
|
"text": "textChange";
|
|
227
274
|
"added": "added";
|
|
228
275
|
"removed": "removed";
|
|
229
276
|
"rejected": "rejected";
|
|
277
|
+
"committed": "committed";
|
|
230
278
|
}, ["itemTemplate"], never, true, never>;
|
|
231
279
|
}
|
|
232
280
|
//# sourceMappingURL=tectra-ng-ui-chips-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-chips-input.d.ts","names":[],"sources":["../../../../packages/ui/chips-input/src/chips-input.types.ts","../../../../packages/ui/chips-input/src/chips-input-item.directive.ts","../../../../packages/ui/chips-input/src/chips-input.component.ts"],"mappings":";;;;;;YACY;;YAEA;;YAEA;;iBAGK;;EAEf;;EAEA;;;iBAIe;;EAEf;;EAEA;;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-chips-input.d.ts","names":[],"sources":["../../../../packages/ui/chips-input/src/chips-input.types.ts","../../../../packages/ui/chips-input/src/chips-input-item.directive.ts","../../../../packages/ui/chips-input/src/chips-input.component.ts"],"mappings":";;;;;;YACY;;YAEA;;YAEA;;iBAGK;;EAEf;;EAEA;;;iBAIe;;EAEf;;EAEA;;;YAIU;;YAGA;;YAGA,0BAA0B;;iBAGrB,kCAAkC;;EAEjD,QAAQ;;;iBAIO;;EAEf;;EAEA,UAAU;;EAEV;;;;;;qBCzCW;WACF,aAAW,YAAA;SAEb,uBAAuB,YAAY,0BAA0B,mBAAmB,WAAW;SAHvF,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBC4DA,qBAAqB;mBACf;;WAEC,+BAAK;;WACd,qCAAW;;WACX,mCAAS,qBAAA;;WACT,mCAAS;;WACT,wCAAc;;WACd,uCAAa;;WACb,6BAAG;;WACH,mCAAS;;WACT,uCAAa,YAAA;;WACb,mCAAS,YAAA;;WACT,qCAAW,YAAA;;WACX,mCAAS;;WACT,iCAAO;;WACP,mCAAS;;WACT,wCAAc;;WACd,8BAAI,YAAA;;WACJ,iCAAO,YAAA;;WACP,iCAAO;;WACP,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,mDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WACR,8BAAI;;WAEJ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"@angular/forms";
|
|
5
5
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
6
6
|
import { TxFormControlBase } from "@tectra-ng/core/forms";
|
|
7
|
-
import { TxPlacement } from "@tectra-ng/core/overlay";
|
|
7
|
+
import { TxPanelWidth, TxPlacement } from "@tectra-ng/core/overlay";
|
|
8
8
|
import { TectraColorPickerTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
9
9
|
/** Type of the picker value: `hex` string, `rgb` object or `hsb` object. */
|
|
10
10
|
export type TxColorFormat = 'hex' | 'rgb' | 'hsb';
|
|
@@ -60,6 +60,16 @@ export declare class TxColorPicker extends TxFormControlBase<TxColorValue> imple
|
|
|
60
60
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
61
61
|
/** Id of the element that labels the button */
|
|
62
62
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
63
|
+
/** Accessible name of the saturation / brightness area (translated "Saturation and brightness" by default) */
|
|
64
|
+
readonly areaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
65
|
+
/** Accessible name of the hue slider (translated "Hue" by default) */
|
|
66
|
+
readonly hueLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
67
|
+
/** Accessible name of the hex field in the panel (translated "Hex colour" by default) */
|
|
68
|
+
readonly hexLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
69
|
+
/** Accessible name of the clear button (translated "Clear" by default, none when `clearText` names it) */
|
|
70
|
+
readonly clearLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
71
|
+
/** Text shown next to the clear icon; without it the button shows only the icon */
|
|
72
|
+
readonly clearText: import("@angular/core").InputSignal<string | undefined>;
|
|
63
73
|
/** `small`, `medium`, `large` */
|
|
64
74
|
readonly size: import("@angular/core").InputSignal<TxColorPickerSize>;
|
|
65
75
|
/** Red border and `aria-invalid`; follows the form control by default */
|
|
@@ -95,6 +105,7 @@ export declare class TxColorPicker extends TxFormControlBase<TxColorValue> imple
|
|
|
95
105
|
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
96
106
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxColorPickerPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
97
107
|
readonly positions: import("@angular/cdk/overlay").ConnectedPosition[];
|
|
108
|
+
readonly panelWidth: TxPanelWidth;
|
|
98
109
|
readonly scrollStrategy: import("@angular/cdk/overlay").ScrollStrategy;
|
|
99
110
|
readonly panelId: string;
|
|
100
111
|
readonly valueId: string;
|
|
@@ -113,6 +124,7 @@ export declare class TxColorPicker extends TxFormControlBase<TxColorValue> imple
|
|
|
113
124
|
readonly triggerText: import("@angular/core").Signal<string>;
|
|
114
125
|
readonly triggerLabel: import("@angular/core").Signal<string | null>;
|
|
115
126
|
readonly fieldLabel: import("@angular/core").Signal<string | null>;
|
|
127
|
+
readonly clearName: import("@angular/core").Signal<string | null>;
|
|
116
128
|
readonly editable: import("@angular/core").Signal<boolean>;
|
|
117
129
|
readonly hostStyle: import("@angular/core").Signal<{
|
|
118
130
|
[x: string]: string;
|
|
@@ -201,6 +213,31 @@ export declare class TxColorPicker extends TxFormControlBase<TxColorValue> imple
|
|
|
201
213
|
"required": false;
|
|
202
214
|
"isSignal": true;
|
|
203
215
|
};
|
|
216
|
+
"areaLabel": {
|
|
217
|
+
"alias": "areaLabel";
|
|
218
|
+
"required": false;
|
|
219
|
+
"isSignal": true;
|
|
220
|
+
};
|
|
221
|
+
"hueLabel": {
|
|
222
|
+
"alias": "hueLabel";
|
|
223
|
+
"required": false;
|
|
224
|
+
"isSignal": true;
|
|
225
|
+
};
|
|
226
|
+
"hexLabel": {
|
|
227
|
+
"alias": "hexLabel";
|
|
228
|
+
"required": false;
|
|
229
|
+
"isSignal": true;
|
|
230
|
+
};
|
|
231
|
+
"clearLabel": {
|
|
232
|
+
"alias": "clearLabel";
|
|
233
|
+
"required": false;
|
|
234
|
+
"isSignal": true;
|
|
235
|
+
};
|
|
236
|
+
"clearText": {
|
|
237
|
+
"alias": "clearText";
|
|
238
|
+
"required": false;
|
|
239
|
+
"isSignal": true;
|
|
240
|
+
};
|
|
204
241
|
"size": {
|
|
205
242
|
"alias": "size";
|
|
206
243
|
"required": false;
|