@tectra-ng/ui 0.1.7 → 0.1.9

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.
Files changed (32) hide show
  1. package/README.md +2 -2
  2. package/avatar/README.md +19 -6
  3. package/color-picker/README.md +6 -5
  4. package/fesm2022/tectra-ng-ui-avatar.mjs +243 -63
  5. package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
  6. package/fesm2022/tectra-ng-ui-color-picker.mjs +100 -18
  7. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  8. package/fesm2022/tectra-ng-ui-list-input.mjs +693 -0
  9. package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -0
  10. package/fesm2022/tectra-ng-ui-mention-textarea.mjs +1 -0
  11. package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-ui-month-calendar.mjs +1 -0
  13. package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-ui-tabs.mjs +4 -4
  15. package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-ui-tooltip.mjs +10 -5
  17. package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-ui-truncate-text.mjs +390 -0
  19. package/fesm2022/tectra-ng-ui-truncate-text.mjs.map +1 -0
  20. package/list-input/README.md +52 -0
  21. package/package.json +12 -4
  22. package/truncate-text/README.md +38 -0
  23. package/types/tectra-ng-ui-avatar.d.ts +85 -3
  24. package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
  25. package/types/tectra-ng-ui-color-picker.d.ts +22 -1
  26. package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
  27. package/types/tectra-ng-ui-list-input.d.ts +231 -0
  28. package/types/tectra-ng-ui-list-input.d.ts.map +1 -0
  29. package/types/tectra-ng-ui-tooltip.d.ts +20 -17
  30. package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
  31. package/types/tectra-ng-ui-truncate-text.d.ts +123 -0
  32. package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -0
package/README.md CHANGED
@@ -27,11 +27,11 @@ Every component takes `dt` (design tokens of this instance), `pt` / `ptOptions`
27
27
 
28
28
  | Group | `@tectra-ng/ui/…` |
29
29
  |---|---|
30
- | Form | `autocomplete`, `cascade-select`, `checkbox`, `chips-input`, `color-picker`, `country-select`, `datepicker`, `email-suggestion`, `field`, `icon-field`, `input`, `input-group`, `input-mask`, `input-number`, `input-otp`, `key-filter`, `knob`, `label`, `listbox`, `mention-textarea`, `multiselect`, `password`, `password-generator`, `radio-button`, `rating`, `select`, `slider`, `textarea`, `toggle-button`, `toggle-switch`, `tree-select` |
30
+ | Form | `autocomplete`, `cascade-select`, `checkbox`, `chips-input`, `color-picker`, `country-select`, `datepicker`, `email-suggestion`, `field`, `icon-field`, `input`, `input-group`, `input-mask`, `input-number`, `input-otp`, `key-filter`, `knob`, `label`, `list-input`, `listbox`, `mention-textarea`, `multiselect`, `password`, `password-generator`, `radio-button`, `rating`, `select`, `slider`, `textarea`, `toggle-button`, `toggle-switch`, `tree-select` |
31
31
  | Actions | `button`, `button-group`, `speed-dial`, `split-button` |
32
32
  | Data | `data-view`, `export`, `month-calendar`, `paginator`, `sparkline`, `stat-tiles`, `table`, `timeline`, `tree`, `tree-table`, `virtual-scroller` |
33
33
  | Overlay | `confirm`, `dialog`, `drawer`, `menu`, `popover`, `toast`, `tooltip` |
34
- | Display | `amount`, `avatar`, `badge`, `chip`, `country`, `highlight-text`, `link`, `overlay-badge`, `pill`, `status-icon`, `tag` |
34
+ | Display | `amount`, `avatar`, `badge`, `chip`, `country`, `highlight-text`, `link`, `overlay-badge`, `pill`, `status-icon`, `tag`, `truncate-text` |
35
35
  | Feedback | `message`, `progress-bar`, `progress-spinner`, `skeleton` |
36
36
  | Layout | `card`, `divider`, `fieldset`, `panel` |
37
37
  | Misc | `analog-clock`, `countdown` |
package/avatar/README.md CHANGED
@@ -1,15 +1,14 @@
1
1
  # Avatar
2
2
 
3
- 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 and a `+N`.
3
+ 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.
4
4
 
5
5
  ```html
6
6
  <tx-avatar [image]="user.photo" [name]="user.name" />
7
7
 
8
- <tx-avatar-group [max]="3" ariaLabel="Project members">
8
+ <tx-avatar-group [max]="3" addButton addLabel="Invite" ariaLabel="Project members" (add)="invite()">
9
9
  @for (member of members; track member.id) {
10
10
  <tx-avatar [image]="member.photo" [name]="member.name" />
11
11
  }
12
- <button txAvatarGroupEnd txButton icon="plus" [rounded]="true" aria-label="Invite"></button>
13
12
  </tx-avatar-group>
14
13
  ```
15
14
 
@@ -24,10 +23,16 @@ A person or an item as a small picture: a photo, otherwise initials from the nam
24
23
  | shape | `circle` or `square` (inherits the group) |
25
24
  | tone | Own colour instead of the one picked from the name: `blue`, `green`, `sky`, `orange`, `purple`, `red` |
26
25
  | ariaLabel | Accessible name instead of `name`; without both the avatar is decorative |
27
- | max | `tx-avatar-group`: shows this many avatars and a `+N` |
28
- | moreLabel | `tx-avatar-group`: accessible name of `+N` ("N more", translated, by default) |
26
+ | tooltip | Shows `name` (or `ariaLabel`) in a tooltip instead of the native title; inherits `tooltips` of the group, off on its own |
27
+ | tooltipPlacement | Where the name tooltip opens (`top` by default) |
28
+ | max | `tx-avatar-group`: shows this many avatars and a `+N` button; it opens a popover that lists the hidden ones (avatar + name) |
29
+ | tooltips | `tx-avatar-group`: name tooltip on every avatar (on by default) |
30
+ | morePopover | `tx-avatar-group`: `+N` is a button with the list of hidden people (on by default); `false` keeps it a plain label, e.g. inside a select trigger |
31
+ | addButton | `tx-avatar-group`: a dashed add button of the avatar size at the end; emits `add` |
32
+ | addLabel | `tx-avatar-group`: tooltip and accessible name of the add button ("Add a person", translated, by default) |
33
+ | moreLabel | `tx-avatar-group`: accessible name of `+N` and of its popover ("N more", translated, by default) |
29
34
  | dt | Design tokens of this instance (`avatar`) |
30
- | pt | Classes and styles of the parts: `root`, `image`, `label`, `icon`; group: `root`, `more` |
35
+ | pt | Classes and styles of the parts: `root`, `image`, `label`, `icon`; group: `root`, `more`, `add`, `list`, `item`, `name` |
31
36
  | ptOptions | How `pt` merges with the global pass-through |
32
37
  | unstyled | Removes the tectra styles |
33
38
 
@@ -35,9 +40,17 @@ A person or an item as a small picture: a photo, otherwise initials from the nam
35
40
  | Name | Description |
36
41
  |---|---|
37
42
  | imageError | The photo failed to load (the fallback is already shown) |
43
+ | add | `tx-avatar-group`: the add button was clicked |
38
44
 
39
45
  ## Slots
40
46
  | Name | Description |
41
47
  |---|---|
42
48
  | default | Avatar: extra content, e.g. a badge; group: the avatars |
43
49
  | txAvatarGroupEnd | `tx-avatar-group`: an element after the avatars, e.g. an add button |
50
+
51
+ ## Keyboard
52
+ | Key | Action |
53
+ |---|---|
54
+ | Tab | Moves to the `+N` button of a group, then to its add button |
55
+ | Enter / Space | `+N`: opens or closes the list of hidden people |
56
+ | Escape | Closes the list and returns focus to `+N` |
@@ -1,25 +1,26 @@
1
1
  # Color picker
2
2
 
3
- Pick a colour in a popover or inline: a saturation / brightness area, a hue slider, a hex field and preset swatches. Every part works from the keyboard. The value is a hex string by default (`#3366cc`), or an `{ r, g, b }` / `{ h, s, b }` object; works with `[formControl]`, `ngModel` and signal forms. Also exports `parseHex`, `rgbToHex`, `rgbToHsb`, `hsbToRgb`.
3
+ Pick a colour in a popover, inline, or from a text field: a saturation / brightness area, a hue slider, a hex field and preset swatches. Every part works from the keyboard. The value is a hex string by default (`#3366cc`), or an `{ r, g, b }` / `{ h, s, b }` object; works with `[formControl]`, `ngModel` and signal forms. With `field` it is a text field for a hex colour with a colour dot at its start: type the hex or open the picker from the dot, both stay in sync. Also exports `parseHex`, `rgbToHex`, `rgbToHsb`, `hsbToRgb` and the form validator `txColorHexValidator()`.
4
4
 
5
5
  ## Inputs
6
6
  | Name | Description |
7
7
  |---|---|
8
8
  | format | `hex`, `rgb` or `hsb` — the type of the value |
9
9
  | inline | Shows the panel in place instead of a button with a popover |
10
+ | field | A text field for the hex with a colour dot that opens the popover. The value is the text as typed; on blur a valid hex becomes `#rrggbb` and a blank one `null`. A text that is not a hex makes the form control invalid (`pattern`) |
10
11
  | presets | Hex colours shown as swatches |
11
12
  | showClear | Button that removes the colour (`null`) |
12
13
  | showInput | Hex field in the panel (on by default) |
13
14
  | showValue | Hex text next to the swatch on the button (on by default) |
14
- | placeholder | Text on the button without a colour |
15
- | inputId | Id of the button for a `<label for>` |
15
+ | placeholder | Text on the button without a colour; the field placeholder with `field` |
16
+ | inputId | Id of the button (of the text field with `field`) for a `<label for>` |
16
17
  | ariaLabel | Accessible name of the button and the panel |
17
18
  | ariaLabelledBy | Id of the element that labels the button |
18
19
  | size | `small`, `medium`, `large` |
19
20
  | invalid | Red border and `aria-invalid`; follows the form control by default |
20
21
  | readonly | Shows the colour, cannot change it |
21
22
  | dt | Design tokens of this instance (`colorPicker`) |
22
- | pt | Classes and styles of the parts: `root`, `trigger`, `swatch`, `panel`, `area`, `hue`, `input`, `presets`, `preset`, `clear` |
23
+ | pt | Classes and styles of the parts: `root`, `trigger`, `swatch` (the dot with `field`), `panel`, `area`, `hue`, `input` (also the text field with `field`), `presets`, `preset`, `clear` |
23
24
  | ptOptions | How `pt` merges with the global pass-through |
24
25
  | unstyled | Removes the tectra styles |
25
26
 
@@ -33,7 +34,7 @@ Pick a colour in a popover or inline: a saturation / brightness area, a hue slid
33
34
  ## Keyboard
34
35
  | Key | Action |
35
36
  |---|---|
36
- | Enter / Space | On the button: opens the popover, focus goes to the area |
37
+ | Enter / Space | On the button or the colour dot: opens the popover, focus goes to the area |
37
38
  | ArrowLeft / ArrowRight | Area: saturation − / +; hue slider: hue − / + |
38
39
  | ArrowUp / ArrowDown | Area: brightness + / −; hue slider: hue + / − |
39
40
  | Shift + arrows | Steps of 10 |
@@ -1,10 +1,13 @@
1
1
  import * as i0 from "@angular/core";
2
- import { ChangeDetectionStrategy, Component, InjectionToken, computed, contentChildren, effect, inject, input, output, signal } from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, InjectionToken, booleanAttribute, computed, contentChildren, effect, inject, input, output, signal } from "@angular/core";
3
3
  import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
4
4
  import { optionalBoolean, optionalNumber } from "@tectra-ng/core/utils";
5
5
  import { TxIcon, TxIconRegistry } from "@tectra-ng/icons";
6
+ import * as i1 from "@tectra-ng/ui/tooltip";
7
+ import { TxTooltip } from "@tectra-ng/ui/tooltip";
6
8
  import { toStyleObject } from "@tectra-ng/themes";
7
9
  import { injectTranslations } from "@tectra-ng/core/i18n";
10
+ import { TxPopover, TxPopoverContent, TxPopoverTrigger } from "@tectra-ng/ui/popover";
8
11
  const TX_AVATAR_GROUP = new InjectionToken("TX_AVATAR_GROUP");
9
12
  const TONES = [
10
13
  "blue",
@@ -25,6 +28,10 @@ var TxAvatar = class TxAvatar {
25
28
  shape = input(void 0, ...ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []);
26
29
  tone = input(void 0, ...ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []);
27
30
  ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
31
+ tooltip = input(void 0, {
32
+ ...ngDevMode ? { debugName: "tooltip" } : /* istanbul ignore next */ {},
33
+ transform: optionalBoolean
34
+ });
28
35
  dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
29
36
  pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
30
37
  ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
@@ -43,6 +50,8 @@ var TxAvatar = class TxAvatar {
43
50
  resolvedShape = computed(() => this.shape() ?? this.group?.shape() ?? "circle", ...ngDevMode ? [{ debugName: "resolvedShape" }] : /* istanbul ignore next */ []);
44
51
  resolvedTone = computed(() => this.tone() ?? (this.name() || this.label() ? TONES[hash(this.name() ?? this.label() ?? "") % TONES.length] : null), ...ngDevMode ? [{ debugName: "resolvedTone" }] : /* istanbul ignore next */ []);
45
52
  accessibleName = computed(() => this.ariaLabel() ?? this.name() ?? null, ...ngDevMode ? [{ debugName: "accessibleName" }] : /* istanbul ignore next */ []);
53
+ showsTooltip = computed(() => (this.tooltip() ?? this.group?.tooltips() ?? false) && !!this.tooltipText(), ...ngDevMode ? [{ debugName: "showsTooltip" }] : /* istanbul ignore next */ []);
54
+ tooltipText = computed(() => this.name() || this.ariaLabel() || "", ...ngDevMode ? [{ debugName: "tooltipText" }] : /* istanbul ignore next */ []);
46
55
  isHidden = computed(() => !!this.group?.isHidden(this), ...ngDevMode ? [{ debugName: "isHidden" }] : /* istanbul ignore next */ []);
47
56
  iconName = computed(() => this.txIconRegistry.has(this.icon()) ? this.icon() : null, ...ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []);
48
57
  hostStyle = computed(() => {
@@ -54,6 +63,7 @@ var TxAvatar = class TxAvatar {
54
63
  };
55
64
  }, ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
56
65
  constructor() {
66
+ inject(TxTooltip, { self: true }).useContent(computed(() => this.showsTooltip() ? this.tooltipText() : void 0));
57
67
  effect(() => {
58
68
  this.image();
59
69
  this.failed.set(false);
@@ -134,6 +144,13 @@ var TxAvatar = class TxAvatar {
134
144
  isRequired: false,
135
145
  transformFunction: null
136
146
  },
147
+ tooltip: {
148
+ classPropertyName: "tooltip",
149
+ publicName: "tooltip",
150
+ isSignal: true,
151
+ isRequired: false,
152
+ transformFunction: null
153
+ },
137
154
  dt: {
138
155
  classPropertyName: "dt",
139
156
  publicName: "dt",
@@ -175,11 +192,15 @@ var TxAvatar = class TxAvatar {
175
192
  "attr.role": "accessibleName() ? \"img\" : null",
176
193
  "attr.aria-label": "accessibleName()",
177
194
  "attr.aria-hidden": "accessibleName() ? null : true",
178
- "attr.title": "name() ?? null",
195
+ "attr.title": "showsTooltip() ? null : (name() ?? null)",
179
196
  "hidden": "isHidden()"
180
197
  },
181
198
  classAttribute: "tx-avatar"
182
199
  },
200
+ hostDirectives: [{
201
+ directive: i1.TxTooltip,
202
+ inputs: ["tooltipPlacement", "tooltipPlacement"]
203
+ }],
183
204
  ngImport: i0,
184
205
  template: `
185
206
  @if (showImage()) {
@@ -234,6 +255,10 @@ i0.ɵɵngDeclareClassMetadata({
234
255
  }
235
256
  <ng-content />
236
257
  `,
258
+ hostDirectives: [{
259
+ directive: TxTooltip,
260
+ inputs: ["tooltipPlacement"]
261
+ }],
237
262
  changeDetection: ChangeDetectionStrategy.OnPush,
238
263
  host: {
239
264
  class: "tx-avatar",
@@ -246,7 +271,7 @@ i0.ɵɵngDeclareClassMetadata({
246
271
  "[attr.role]": "accessibleName() ? \"img\" : null",
247
272
  "[attr.aria-label]": "accessibleName()",
248
273
  "[attr.aria-hidden]": "accessibleName() ? null : true",
249
- "[attr.title]": "name() ?? null",
274
+ "[attr.title]": "showsTooltip() ? null : (name() ?? null)",
250
275
  "[hidden]": "isHidden()"
251
276
  },
252
277
  styles: [":host{position:relative;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;vertical-align:middle}:host([hidden]){display:none}.tx-avatar__image{width:100%;height:100%;border-radius:inherit;object-fit:cover}.tx-avatar__icon{display:inline-flex}:host([data-styled]){--_size: var(--tx-avatar-size);width:var(--_size);height:var(--_size);border-radius:50%;background:var(--tx-avatar-background);color:var(--tx-avatar-color);font-family:var(--tx-font-family);font-size:calc(var(--_size) * var(--tx-avatar-font-scale));font-weight:var(--tx-avatar-font-weight);line-height:1;-webkit-user-select:none;user-select:none}:host([data-styled][data-size=small]){--_size: var(--tx-avatar-sm-size)}:host([data-styled][data-size=large]){--_size: var(--tx-avatar-lg-size)}:host([data-styled][data-size=xlarge]){--_size: var(--tx-avatar-xl-size)}:host([data-styled][data-shape=square]){border-radius:var(--tx-avatar-square-border-radius)}:host([data-styled][data-tone=blue]){background:var(--tx-avatar-tones-blue-background);color:var(--tx-avatar-tones-blue-color)}:host([data-styled][data-tone=green]){background:var(--tx-avatar-tones-green-background);color:var(--tx-avatar-tones-green-color)}:host([data-styled][data-tone=sky]){background:var(--tx-avatar-tones-sky-background);color:var(--tx-avatar-tones-sky-color)}:host([data-styled][data-tone=orange]){background:var(--tx-avatar-tones-orange-background);color:var(--tx-avatar-tones-orange-color)}:host([data-styled][data-tone=purple]){background:var(--tx-avatar-tones-purple-background);color:var(--tx-avatar-tones-purple-color)}:host([data-styled][data-tone=red]){background:var(--tx-avatar-tones-red-background);color:var(--tx-avatar-tones-red-color)}:host([data-styled]) .tx-avatar__icon{font-size:calc(var(--_size) * var(--tx-avatar-icon-scale))}\n"]
@@ -318,6 +343,14 @@ i0.ɵɵngDeclareClassMetadata({
318
343
  required: false
319
344
  }]
320
345
  }],
346
+ tooltip: [{
347
+ type: i0.Input,
348
+ args: [{
349
+ isSignal: true,
350
+ alias: "tooltip",
351
+ required: false
352
+ }]
353
+ }],
321
354
  dt: [{
322
355
  type: i0.Input,
323
356
  args: [{
@@ -373,8 +406,21 @@ var TxAvatarGroup = class TxAvatarGroup {
373
406
  });
374
407
  size = input(void 0, ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
375
408
  shape = input(void 0, ...ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []);
409
+ tooltips = input(true, {
410
+ ...ngDevMode ? { debugName: "tooltips" } : /* istanbul ignore next */ {},
411
+ transform: booleanAttribute
412
+ });
413
+ morePopover = input(true, {
414
+ ...ngDevMode ? { debugName: "morePopover" } : /* istanbul ignore next */ {},
415
+ transform: booleanAttribute
416
+ });
376
417
  ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
377
418
  moreLabel = input(void 0, ...ngDevMode ? [{ debugName: "moreLabel" }] : /* istanbul ignore next */ []);
419
+ addButton = input(false, {
420
+ ...ngDevMode ? { debugName: "addButton" } : /* istanbul ignore next */ {},
421
+ transform: booleanAttribute
422
+ });
423
+ addLabel = input(void 0, ...ngDevMode ? [{ debugName: "addLabel" }] : /* istanbul ignore next */ []);
378
424
  dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
379
425
  pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
380
426
  ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
@@ -382,14 +428,22 @@ var TxAvatarGroup = class TxAvatarGroup {
382
428
  ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
383
429
  transform: optionalBoolean
384
430
  });
431
+ add = output();
385
432
  avatars = contentChildren(TxAvatar, ...ngDevMode ? [{ debugName: "avatars" }] : /* istanbul ignore next */ []);
386
433
  translations = injectTranslations();
387
434
  isUnstyled = injectUnstyled(this.unstyled);
388
435
  passThrough = injectPassThrough("avatarGroup", this, this.pt, this.ptOptions);
389
- extra = computed(() => {
436
+ hiddenAvatars = computed(() => {
390
437
  const max = this.max();
391
- return max !== void 0 ? Math.max(0, this.avatars().length - max) : 0;
392
- }, ...ngDevMode ? [{ debugName: "extra" }] : /* istanbul ignore next */ []);
438
+ return max !== void 0 ? this.avatars().slice(Math.max(0, max)) : [];
439
+ }, ...ngDevMode ? [{ debugName: "hiddenAvatars" }] : /* istanbul ignore next */ []);
440
+ extra = computed(() => this.hiddenAvatars().length, ...ngDevMode ? [{ debugName: "extra" }] : /* istanbul ignore next */ []);
441
+ moreText = computed(() => this.moreLabel() ?? this.translations().moreItems.replace("{count}", "" + this.extra()), ...ngDevMode ? [{ debugName: "moreText" }] : /* istanbul ignore next */ []);
442
+ addText = computed(() => this.addLabel() ?? this.translations().addPerson, ...ngDevMode ? [{ debugName: "addText" }] : /* istanbul ignore next */ []);
443
+ presetSize = computed(() => {
444
+ const size = this.size();
445
+ return typeof size === "string" ? size : null;
446
+ }, ...ngDevMode ? [{ debugName: "presetSize" }] : /* istanbul ignore next */ []);
393
447
  hostStyle = computed(() => {
394
448
  const size = this.size();
395
449
  return {
@@ -402,12 +456,12 @@ var TxAvatarGroup = class TxAvatarGroup {
402
456
  context = {
403
457
  size: this.size,
404
458
  shape: this.shape,
405
- isHidden: (avatar) => {
406
- const max = this.max();
407
- const index = this.avatars().indexOf(avatar);
408
- return max !== void 0 && index >= max;
409
- }
459
+ tooltips: this.tooltips,
460
+ isHidden: (avatar) => this.hiddenAvatars().includes(avatar)
410
461
  };
462
+ nameOf(avatar) {
463
+ return avatar.name() || avatar.ariaLabel() || avatar.label() || "";
464
+ }
411
465
  static ɵfac = i0.ɵɵngDeclareFactory({
412
466
  minVersion: "12.0.0",
413
467
  version: "22.2.3",
@@ -444,6 +498,20 @@ var TxAvatarGroup = class TxAvatarGroup {
444
498
  isRequired: false,
445
499
  transformFunction: null
446
500
  },
501
+ tooltips: {
502
+ classPropertyName: "tooltips",
503
+ publicName: "tooltips",
504
+ isSignal: true,
505
+ isRequired: false,
506
+ transformFunction: null
507
+ },
508
+ morePopover: {
509
+ classPropertyName: "morePopover",
510
+ publicName: "morePopover",
511
+ isSignal: true,
512
+ isRequired: false,
513
+ transformFunction: null
514
+ },
447
515
  ariaLabel: {
448
516
  classPropertyName: "ariaLabel",
449
517
  publicName: "ariaLabel",
@@ -458,6 +526,20 @@ var TxAvatarGroup = class TxAvatarGroup {
458
526
  isRequired: false,
459
527
  transformFunction: null
460
528
  },
529
+ addButton: {
530
+ classPropertyName: "addButton",
531
+ publicName: "addButton",
532
+ isSignal: true,
533
+ isRequired: false,
534
+ transformFunction: null
535
+ },
536
+ addLabel: {
537
+ classPropertyName: "addLabel",
538
+ publicName: "addLabel",
539
+ isSignal: true,
540
+ isRequired: false,
541
+ transformFunction: null
542
+ },
461
543
  dt: {
462
544
  classPropertyName: "dt",
463
545
  publicName: "dt",
@@ -487,12 +569,15 @@ var TxAvatarGroup = class TxAvatarGroup {
487
569
  transformFunction: null
488
570
  }
489
571
  },
572
+ outputs: { add: "add" },
490
573
  host: {
491
574
  attributes: { "role": "group" },
492
575
  properties: {
493
576
  "class": "passThrough().root?.class",
494
577
  "style": "hostStyle()",
495
578
  "attr.data-styled": "!isUnstyled() || null",
579
+ "attr.data-size": "presetSize()",
580
+ "attr.data-shape": "shape() ?? null",
496
581
  "attr.aria-label": "ariaLabel() ?? null"
497
582
  },
498
583
  classAttribute: "tx-avatar-group"
@@ -507,42 +592,105 @@ var TxAvatarGroup = class TxAvatarGroup {
507
592
  isSignal: true
508
593
  }],
509
594
  ngImport: i0,
510
- template: `
511
- <ng-content />
512
- @if (extra() > 0) {
513
- <tx-avatar
514
- class="tx-avatar-group__more"
515
- [class]="passThrough().more?.class"
516
- [style]="passThrough().more?.style"
517
- [label]="'+' + extra()"
518
- [ariaLabel]="moreLabel() ?? translations().moreItems.replace('{count}', '' + extra())"
519
- [unstyled]="isUnstyled()"
520
- />
521
- }
522
- <ng-content select="[txAvatarGroupEnd]" />
523
- `,
524
- isInline: true,
525
- styles: [":host{display:inline-flex;align-items:center}:host([data-styled]) ::ng-deep>tx-avatar{box-shadow:0 0 0 var(--tx-avatar-group-ring-width) var(--tx-avatar-group-ring-color)}:host([data-styled]) ::ng-deep>tx-avatar+tx-avatar{margin-inline-start:calc(var(--_size, var(--tx-avatar-size)) * var(--_overlap) * -1)}:host([data-styled]) ::ng-deep>[txAvatarGroupEnd]{margin-inline-start:6px}:host([data-styled]) .tx-avatar-group__more{background:var(--tx-avatar-group-more-background);color:var(--tx-avatar-group-more-color)}\n"],
526
- dependencies: [{
527
- kind: "component",
528
- type: TxAvatar,
529
- selector: "tx-avatar",
530
- inputs: [
531
- "image",
532
- "name",
533
- "label",
534
- "icon",
535
- "size",
536
- "shape",
537
- "tone",
538
- "ariaLabel",
539
- "dt",
540
- "pt",
541
- "ptOptions",
542
- "unstyled"
543
- ],
544
- outputs: ["imageError"]
545
- }],
595
+ template: "<ng-content />\n@if (extra() > 0 && !morePopover()) {\n <tx-avatar\n class=\"tx-avatar-group__more tx-avatar-group__more-avatar\"\n [class.tx-avatar-group__more--first]=\"hiddenAvatars().length === avatars().length\"\n [class]=\"passThrough().more?.class\"\n [style]=\"passThrough().more?.style\"\n [label]=\"'+' + extra()\"\n [ariaLabel]=\"moreText()\"\n [tooltip]=\"false\"\n [unstyled]=\"isUnstyled()\"\n />\n} @else if (extra() > 0) {\n <button\n type=\"button\"\n class=\"tx-avatar-group__more\"\n [class.tx-avatar-group__more--first]=\"hiddenAvatars().length === avatars().length\"\n [class]=\"passThrough().more?.class\"\n [style]=\"passThrough().more?.style\"\n [attr.aria-label]=\"moreText()\"\n [txPopoverTrigger]=\"list\"\n >\n <tx-avatar\n class=\"tx-avatar-group__more-avatar\"\n [label]=\"'+' + extra()\"\n [tooltip]=\"false\"\n [unstyled]=\"isUnstyled()\"\n />\n </button>\n <tx-popover #list [ariaLabel]=\"moreText()\" autoFocus=\"none\" [unstyled]=\"isUnstyled()\">\n <ng-template txPopoverContent>\n <div\n class=\"tx-avatar-group__list\"\n role=\"list\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n >\n @for (avatar of hiddenAvatars(); track avatar) {\n <div\n class=\"tx-avatar-group__item\"\n role=\"listitem\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n <span class=\"tx-avatar-group__item-avatar\" aria-hidden=\"true\">\n <tx-avatar\n [image]=\"avatar.image()\"\n [name]=\"avatar.name()\"\n [label]=\"avatar.label()\"\n [icon]=\"avatar.icon()\"\n [tone]=\"avatar.tone()\"\n [shape]=\"avatar.shape()\"\n [tooltip]=\"false\"\n [unstyled]=\"isUnstyled()\"\n />\n </span>\n <span\n class=\"tx-avatar-group__name\"\n [class]=\"passThrough().name?.class\"\n [style]=\"passThrough().name?.style\"\n >{{ nameOf(avatar) }}</span\n >\n </div>\n }\n </div>\n </ng-template>\n </tx-popover>\n}\n@if (addButton()) {\n <button\n type=\"button\"\n class=\"tx-avatar-group__add\"\n [class]=\"passThrough().add?.class\"\n [style]=\"passThrough().add?.style\"\n [attr.aria-label]=\"addText()\"\n [txTooltip]=\"addText()\"\n (click)=\"add.emit()\"\n >\n <tx-icon name=\"plus\" />\n </button>\n}\n<ng-content select=\"[txAvatarGroupEnd]\" />\n",
596
+ styles: [":host{display:inline-flex;align-items:center}.tx-avatar-group__more{display:inline-flex;flex-shrink:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}.tx-avatar-group__add{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;font:inherit;cursor:pointer}.tx-avatar-group__list{display:flex;flex-direction:column;overflow-y:auto}.tx-avatar-group__item{display:flex;align-items:center}.tx-avatar-group__item-avatar{display:inline-flex}.tx-avatar-group__name{white-space:nowrap}:host([data-styled]){--_group-size: var(--tx-avatar-size)}:host([data-styled][data-size=small]){--_group-size: var(--tx-avatar-sm-size)}:host([data-styled][data-size=large]){--_group-size: var(--tx-avatar-lg-size)}:host([data-styled][data-size=xlarge]){--_group-size: var(--tx-avatar-xl-size)}:host([data-styled]) ::ng-deep>tx-avatar,:host([data-styled]) .tx-avatar-group__more-avatar{box-shadow:0 0 0 var(--tx-avatar-group-ring-width) var(--tx-avatar-group-ring-color)}:host([data-styled]) ::ng-deep>tx-avatar+tx-avatar,:host([data-styled]) .tx-avatar-group__more{margin-inline-start:calc(var(--_group-size) * var(--_overlap) * -1)}:host([data-styled]) .tx-avatar-group__more.tx-avatar-group__more--first{margin-inline-start:0}:host([data-styled]) ::ng-deep>[txAvatarGroupEnd],:host([data-styled]) .tx-avatar-group__add{margin-inline-start:var(--tx-avatar-group-end-gap)}:host([data-styled]) .tx-avatar-group__add{width:var(--_group-size);height:var(--_group-size);border:1px dashed var(--tx-avatar-group-add-border-color);border-radius:50%;background:var(--tx-avatar-group-add-background);color:var(--tx-avatar-group-add-color);font-size:calc(var(--_group-size) * var(--tx-avatar-group-add-icon-scale));transition:border-color var(--tx-motion-duration) ease}:host([data-styled]) .tx-avatar-group__add:hover{border-color:var(--tx-avatar-group-add-hover-border-color)}:host([data-styled]) .tx-avatar-group__add:focus-visible{outline:var(--tx-avatar-group-more-focus-ring-width) solid var(--tx-avatar-group-more-focus-ring-color);outline-offset:var(--tx-avatar-group-more-focus-ring-offset)}:host([data-styled][data-shape=square]) .tx-avatar-group__add{border-radius:var(--tx-avatar-square-border-radius)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-avatar-group__add{transition:none}}:host([data-styled]) .tx-avatar-group__more{border-radius:50%}:host([data-styled]) .tx-avatar-group__more:focus-visible{outline:var(--tx-avatar-group-more-focus-ring-width) solid var(--tx-avatar-group-more-focus-ring-color);outline-offset:var(--tx-avatar-group-more-focus-ring-offset)}:host([data-styled][data-shape=square]) .tx-avatar-group__more{border-radius:var(--tx-avatar-square-border-radius)}:host([data-styled]) .tx-avatar-group__more-avatar{background:var(--tx-avatar-group-more-background);color:var(--tx-avatar-group-more-color)}.tx-avatar-group__list[data-styled]{gap:var(--tx-avatar-list-gap);max-height:var(--tx-avatar-list-max-height);padding:var(--tx-avatar-list-padding)}.tx-avatar-group__list[data-styled] .tx-avatar-group__item{gap:var(--tx-avatar-list-item-gap)}.tx-avatar-group__list[data-styled] .tx-avatar-group__name{color:var(--tx-avatar-list-name-color);font-size:var(--tx-avatar-list-name-font-size)}\n"],
597
+ dependencies: [
598
+ {
599
+ kind: "component",
600
+ type: TxAvatar,
601
+ selector: "tx-avatar",
602
+ inputs: [
603
+ "image",
604
+ "name",
605
+ "label",
606
+ "icon",
607
+ "size",
608
+ "shape",
609
+ "tone",
610
+ "ariaLabel",
611
+ "tooltip",
612
+ "dt",
613
+ "pt",
614
+ "ptOptions",
615
+ "unstyled"
616
+ ],
617
+ outputs: ["imageError"]
618
+ },
619
+ {
620
+ kind: "component",
621
+ type: TxIcon,
622
+ selector: "tx-icon",
623
+ inputs: ["name"]
624
+ },
625
+ {
626
+ kind: "component",
627
+ type: TxPopover,
628
+ selector: "tx-popover",
629
+ inputs: [
630
+ "placement",
631
+ "offset",
632
+ "arrow",
633
+ "header",
634
+ "closeButton",
635
+ "dismissable",
636
+ "closeOnEscape",
637
+ "autoFocus",
638
+ "restoreFocus",
639
+ "scroll",
640
+ "ariaLabel",
641
+ "ariaLabelledBy",
642
+ "panelClass",
643
+ "open",
644
+ "dt",
645
+ "pt",
646
+ "ptOptions",
647
+ "unstyled"
648
+ ],
649
+ outputs: [
650
+ "openChange",
651
+ "opened",
652
+ "closed"
653
+ ]
654
+ },
655
+ {
656
+ kind: "directive",
657
+ type: TxPopoverContent,
658
+ selector: "ng-template[txPopoverContent]"
659
+ },
660
+ {
661
+ kind: "directive",
662
+ type: TxPopoverTrigger,
663
+ selector: "[txPopoverTrigger]",
664
+ inputs: ["txPopoverTrigger"]
665
+ },
666
+ {
667
+ kind: "directive",
668
+ type: TxTooltip,
669
+ selector: "[txTooltip]",
670
+ inputs: [
671
+ "txTooltip",
672
+ "tooltipPlacement",
673
+ "tooltipEvent",
674
+ "tooltipShowDelay",
675
+ "tooltipHideDelay",
676
+ "tooltipLife",
677
+ "tooltipOffset",
678
+ "tooltipArrow",
679
+ "tooltipInteractive",
680
+ "tooltipDisabled",
681
+ "tooltipOverflowOnly",
682
+ "tooltipMultiline",
683
+ "tooltipContext",
684
+ "tooltipClass",
685
+ "tooltipDt",
686
+ "tooltipPt",
687
+ "tooltipPtOptions",
688
+ "tooltipUnstyled"
689
+ ],
690
+ outputs: ["tooltipShown", "tooltipHidden"],
691
+ exportAs: ["txTooltip"]
692
+ }
693
+ ],
546
694
  changeDetection: i0.ChangeDetectionStrategy.OnPush
547
695
  });
548
696
  };
@@ -555,21 +703,14 @@ i0.ɵɵngDeclareClassMetadata({
555
703
  type: Component,
556
704
  args: [{
557
705
  selector: "tx-avatar-group",
558
- imports: [TxAvatar],
559
- template: `
560
- <ng-content />
561
- @if (extra() > 0) {
562
- <tx-avatar
563
- class="tx-avatar-group__more"
564
- [class]="passThrough().more?.class"
565
- [style]="passThrough().more?.style"
566
- [label]="'+' + extra()"
567
- [ariaLabel]="moreLabel() ?? translations().moreItems.replace('{count}', '' + extra())"
568
- [unstyled]="isUnstyled()"
569
- />
570
- }
571
- <ng-content select="[txAvatarGroupEnd]" />
572
- `,
706
+ imports: [
707
+ TxAvatar,
708
+ TxIcon,
709
+ TxPopover,
710
+ TxPopoverContent,
711
+ TxPopoverTrigger,
712
+ TxTooltip
713
+ ],
573
714
  changeDetection: ChangeDetectionStrategy.OnPush,
574
715
  providers: [{
575
716
  provide: TX_AVATAR_GROUP,
@@ -581,9 +722,12 @@ i0.ɵɵngDeclareClassMetadata({
581
722
  "[class]": "passThrough().root?.class",
582
723
  "[style]": "hostStyle()",
583
724
  "[attr.data-styled]": "!isUnstyled() || null",
725
+ "[attr.data-size]": "presetSize()",
726
+ "[attr.data-shape]": "shape() ?? null",
584
727
  "[attr.aria-label]": "ariaLabel() ?? null"
585
728
  },
586
- styles: [":host{display:inline-flex;align-items:center}:host([data-styled]) ::ng-deep>tx-avatar{box-shadow:0 0 0 var(--tx-avatar-group-ring-width) var(--tx-avatar-group-ring-color)}:host([data-styled]) ::ng-deep>tx-avatar+tx-avatar{margin-inline-start:calc(var(--_size, var(--tx-avatar-size)) * var(--_overlap) * -1)}:host([data-styled]) ::ng-deep>[txAvatarGroupEnd]{margin-inline-start:6px}:host([data-styled]) .tx-avatar-group__more{background:var(--tx-avatar-group-more-background);color:var(--tx-avatar-group-more-color)}\n"]
729
+ template: "<ng-content />\n@if (extra() > 0 && !morePopover()) {\n <tx-avatar\n class=\"tx-avatar-group__more tx-avatar-group__more-avatar\"\n [class.tx-avatar-group__more--first]=\"hiddenAvatars().length === avatars().length\"\n [class]=\"passThrough().more?.class\"\n [style]=\"passThrough().more?.style\"\n [label]=\"'+' + extra()\"\n [ariaLabel]=\"moreText()\"\n [tooltip]=\"false\"\n [unstyled]=\"isUnstyled()\"\n />\n} @else if (extra() > 0) {\n <button\n type=\"button\"\n class=\"tx-avatar-group__more\"\n [class.tx-avatar-group__more--first]=\"hiddenAvatars().length === avatars().length\"\n [class]=\"passThrough().more?.class\"\n [style]=\"passThrough().more?.style\"\n [attr.aria-label]=\"moreText()\"\n [txPopoverTrigger]=\"list\"\n >\n <tx-avatar\n class=\"tx-avatar-group__more-avatar\"\n [label]=\"'+' + extra()\"\n [tooltip]=\"false\"\n [unstyled]=\"isUnstyled()\"\n />\n </button>\n <tx-popover #list [ariaLabel]=\"moreText()\" autoFocus=\"none\" [unstyled]=\"isUnstyled()\">\n <ng-template txPopoverContent>\n <div\n class=\"tx-avatar-group__list\"\n role=\"list\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n >\n @for (avatar of hiddenAvatars(); track avatar) {\n <div\n class=\"tx-avatar-group__item\"\n role=\"listitem\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n <span class=\"tx-avatar-group__item-avatar\" aria-hidden=\"true\">\n <tx-avatar\n [image]=\"avatar.image()\"\n [name]=\"avatar.name()\"\n [label]=\"avatar.label()\"\n [icon]=\"avatar.icon()\"\n [tone]=\"avatar.tone()\"\n [shape]=\"avatar.shape()\"\n [tooltip]=\"false\"\n [unstyled]=\"isUnstyled()\"\n />\n </span>\n <span\n class=\"tx-avatar-group__name\"\n [class]=\"passThrough().name?.class\"\n [style]=\"passThrough().name?.style\"\n >{{ nameOf(avatar) }}</span\n >\n </div>\n }\n </div>\n </ng-template>\n </tx-popover>\n}\n@if (addButton()) {\n <button\n type=\"button\"\n class=\"tx-avatar-group__add\"\n [class]=\"passThrough().add?.class\"\n [style]=\"passThrough().add?.style\"\n [attr.aria-label]=\"addText()\"\n [txTooltip]=\"addText()\"\n (click)=\"add.emit()\"\n >\n <tx-icon name=\"plus\" />\n </button>\n}\n<ng-content select=\"[txAvatarGroupEnd]\" />\n",
730
+ styles: [":host{display:inline-flex;align-items:center}.tx-avatar-group__more{display:inline-flex;flex-shrink:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}.tx-avatar-group__add{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;font:inherit;cursor:pointer}.tx-avatar-group__list{display:flex;flex-direction:column;overflow-y:auto}.tx-avatar-group__item{display:flex;align-items:center}.tx-avatar-group__item-avatar{display:inline-flex}.tx-avatar-group__name{white-space:nowrap}:host([data-styled]){--_group-size: var(--tx-avatar-size)}:host([data-styled][data-size=small]){--_group-size: var(--tx-avatar-sm-size)}:host([data-styled][data-size=large]){--_group-size: var(--tx-avatar-lg-size)}:host([data-styled][data-size=xlarge]){--_group-size: var(--tx-avatar-xl-size)}:host([data-styled]) ::ng-deep>tx-avatar,:host([data-styled]) .tx-avatar-group__more-avatar{box-shadow:0 0 0 var(--tx-avatar-group-ring-width) var(--tx-avatar-group-ring-color)}:host([data-styled]) ::ng-deep>tx-avatar+tx-avatar,:host([data-styled]) .tx-avatar-group__more{margin-inline-start:calc(var(--_group-size) * var(--_overlap) * -1)}:host([data-styled]) .tx-avatar-group__more.tx-avatar-group__more--first{margin-inline-start:0}:host([data-styled]) ::ng-deep>[txAvatarGroupEnd],:host([data-styled]) .tx-avatar-group__add{margin-inline-start:var(--tx-avatar-group-end-gap)}:host([data-styled]) .tx-avatar-group__add{width:var(--_group-size);height:var(--_group-size);border:1px dashed var(--tx-avatar-group-add-border-color);border-radius:50%;background:var(--tx-avatar-group-add-background);color:var(--tx-avatar-group-add-color);font-size:calc(var(--_group-size) * var(--tx-avatar-group-add-icon-scale));transition:border-color var(--tx-motion-duration) ease}:host([data-styled]) .tx-avatar-group__add:hover{border-color:var(--tx-avatar-group-add-hover-border-color)}:host([data-styled]) .tx-avatar-group__add:focus-visible{outline:var(--tx-avatar-group-more-focus-ring-width) solid var(--tx-avatar-group-more-focus-ring-color);outline-offset:var(--tx-avatar-group-more-focus-ring-offset)}:host([data-styled][data-shape=square]) .tx-avatar-group__add{border-radius:var(--tx-avatar-square-border-radius)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-avatar-group__add{transition:none}}:host([data-styled]) .tx-avatar-group__more{border-radius:50%}:host([data-styled]) .tx-avatar-group__more:focus-visible{outline:var(--tx-avatar-group-more-focus-ring-width) solid var(--tx-avatar-group-more-focus-ring-color);outline-offset:var(--tx-avatar-group-more-focus-ring-offset)}:host([data-styled][data-shape=square]) .tx-avatar-group__more{border-radius:var(--tx-avatar-square-border-radius)}:host([data-styled]) .tx-avatar-group__more-avatar{background:var(--tx-avatar-group-more-background);color:var(--tx-avatar-group-more-color)}.tx-avatar-group__list[data-styled]{gap:var(--tx-avatar-list-gap);max-height:var(--tx-avatar-list-max-height);padding:var(--tx-avatar-list-padding)}.tx-avatar-group__list[data-styled] .tx-avatar-group__item{gap:var(--tx-avatar-list-item-gap)}.tx-avatar-group__list[data-styled] .tx-avatar-group__name{color:var(--tx-avatar-list-name-color);font-size:var(--tx-avatar-list-name-font-size)}\n"]
587
731
  }]
588
732
  }],
589
733
  propDecorators: {
@@ -611,6 +755,22 @@ i0.ɵɵngDeclareClassMetadata({
611
755
  required: false
612
756
  }]
613
757
  }],
758
+ tooltips: [{
759
+ type: i0.Input,
760
+ args: [{
761
+ isSignal: true,
762
+ alias: "tooltips",
763
+ required: false
764
+ }]
765
+ }],
766
+ morePopover: [{
767
+ type: i0.Input,
768
+ args: [{
769
+ isSignal: true,
770
+ alias: "morePopover",
771
+ required: false
772
+ }]
773
+ }],
614
774
  ariaLabel: [{
615
775
  type: i0.Input,
616
776
  args: [{
@@ -627,6 +787,22 @@ i0.ɵɵngDeclareClassMetadata({
627
787
  required: false
628
788
  }]
629
789
  }],
790
+ addButton: [{
791
+ type: i0.Input,
792
+ args: [{
793
+ isSignal: true,
794
+ alias: "addButton",
795
+ required: false
796
+ }]
797
+ }],
798
+ addLabel: [{
799
+ type: i0.Input,
800
+ args: [{
801
+ isSignal: true,
802
+ alias: "addLabel",
803
+ required: false
804
+ }]
805
+ }],
630
806
  dt: [{
631
807
  type: i0.Input,
632
808
  args: [{
@@ -659,6 +835,10 @@ i0.ɵɵngDeclareClassMetadata({
659
835
  required: false
660
836
  }]
661
837
  }],
838
+ add: [{
839
+ type: i0.Output,
840
+ args: ["add"]
841
+ }],
662
842
  avatars: [{
663
843
  type: i0.ContentChildren,
664
844
  args: [i0.forwardRef(() => TxAvatar), { isSignal: true }]