@tectra-ng/ui 0.2.0 → 0.2.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-tag.mjs","names":[],"sources":["../../../../packages/ui/tag/src/tag.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, ElementRef, booleanAttribute, computed, inject, input, output, signal, viewChild } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraTagTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxTagPart, TxTagSeverity, TxTagSize } from './tag.types';\n\nconst COPIED_FOR = 1500;\n\n@Component({\n selector: 'tx-tag',\n imports: [TxIcon],\n template: `\n @if (icon(); as icon) {\n <span class=\"tx-tag__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <span #label class=\"tx-tag__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ value() }}<ng-content /></span>\n @if (copyable()) {\n <button\n type=\"button\"\n class=\"tx-tag__action tx-tag__copy\"\n [class.tx-tag__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"isCopied() ? translations().copied : translations().copy\"\n [title]=\"isCopied() ? translations().copied : translations().copy\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'copy'\" />\n </button>\n }\n @if (removable()) {\n <button\n type=\"button\"\n class=\"tx-tag__action tx-tag__remove\"\n [class]=\"passThrough().remove?.class\"\n [style]=\"passThrough().remove?.style\"\n [attr.aria-label]=\"removeLabel() ?? translations().remove\"\n [title]=\"removeLabel() ?? translations().remove\"\n (click)=\"remove($event)\"\n (keydown.delete)=\"remove($event)\"\n (keydown.backspace)=\"remove($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './tag.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-tag',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'resolvedSize()',\n '[class.tx-tag--rounded]': 'rounded()',\n },\n})\nexport class TxTag {\n private txIconRegistry = inject(TxIconRegistry);\n private document = inject(DOCUMENT);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly value = input<string | number | undefined>(undefined);\n readonly severity = input<TxTagSeverity>('primary');\n readonly size = input<TxTagSize>('medium');\n readonly rounded = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly copyable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removeLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraTagTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTagPart, TxTag> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly copied = output<string>();\n readonly removed = output<Event>();\n\n readonly label = viewChild.required<ElementRef<HTMLElement>>('label');\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('tag', this, this.pt, this.ptOptions);\n readonly isCopied = signal(false);\n readonly resolvedSize = computed(() => (this.size() === 'normal' ? 'medium' : this.size()));\n readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-tag'), ...this.passThrough().root?.style }));\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const text = (this.label().nativeElement.textContent ?? '').trim();\n this.document.defaultView?.navigator.clipboard?.writeText(text);\n this.copied.emit(text);\n this.isCopied.set(true);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), COPIED_FOR);\n }\n\n remove(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.removed.emit(event);\n }\n}\n"],"mappings":";;;;;;;AAQA,MAAM,aAAa;AA0DnB,IAAa,QAAb,MAAa,MAAK;CACR,iBAAiB,OAAO,cAAc;CACtC,WAAW,OAAO,QAAQ;CAC1B,QAA8C;CAE7C,QAAQ,MAAmC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,WAAW,MAAqB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC1C,OAAO,MAAiB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACjC,UAAU,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,UAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACtE,OAAO,MAA8C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC/D,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,YAAY,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;EAAI,WAAW;CA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AA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-tag.mjs","names":[],"sources":["../../../../packages/ui/tag/src/tag.component.ts","../../../../packages/ui/tag/src/tag-list.component.ts","../../../../packages/ui/tag/src/tag-list.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, ElementRef, booleanAttribute, computed, inject, input, output, signal, viewChild } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraTagTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxTagPart, TxTagSeverity, TxTagSize } from './tag.types';\n\nconst COPIED_FOR = 1500;\n\n@Component({\n selector: 'tx-tag',\n imports: [TxIcon],\n template: `\n @if (icon(); as icon) {\n <span class=\"tx-tag__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <span #label class=\"tx-tag__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ value() }}<ng-content /></span>\n @if (copyable()) {\n <button\n type=\"button\"\n class=\"tx-tag__action tx-tag__copy\"\n [class.tx-tag__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"isCopied() ? translations().copied : translations().copy\"\n [title]=\"isCopied() ? translations().copied : translations().copy\"\n (click)=\"copy()\"\n >\n <span class=\"tx-copy-swap\" [class.tx-copy-swap--done]=\"isCopied()\"><tx-icon class=\"tx-copy-swap__icon tx-copy-swap__icon--idle\" name=\"copy\" /><tx-icon class=\"tx-copy-swap__icon tx-copy-swap__icon--done\" name=\"check\" /></span>\n </button>\n }\n @if (removable()) {\n <button\n type=\"button\"\n class=\"tx-tag__action tx-tag__remove\"\n [class]=\"passThrough().remove?.class\"\n [style]=\"passThrough().remove?.style\"\n [attr.aria-label]=\"removeLabel() ?? translations().remove\"\n [title]=\"removeLabel() ?? translations().remove\"\n (click)=\"remove($event)\"\n (keydown.delete)=\"remove($event)\"\n (keydown.backspace)=\"remove($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './tag.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-tag',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'resolvedSize()',\n '[class.tx-tag--rounded]': 'rounded()',\n },\n})\nexport class TxTag {\n private txIconRegistry = inject(TxIconRegistry);\n private document = inject(DOCUMENT);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly value = input<string | number | undefined>(undefined);\n readonly severity = input<TxTagSeverity>('primary');\n readonly size = input<TxTagSize>('medium');\n readonly rounded = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly copyable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removeLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraTagTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTagPart, TxTag> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly copied = output<string>();\n readonly removed = output<Event>();\n\n readonly label = viewChild.required<ElementRef<HTMLElement>>('label');\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('tag', this, this.pt, this.ptOptions);\n readonly isCopied = signal(false);\n readonly resolvedSize = computed(() => (this.size() === 'normal' ? 'medium' : this.size()));\n readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-tag'), ...this.passThrough().root?.style }));\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const text = (this.label().nativeElement.textContent ?? '').trim();\n this.document.defaultView?.navigator.clipboard?.writeText(text);\n this.copied.emit(text);\n this.isCopied.set(true);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), COPIED_FOR);\n }\n\n remove(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.removed.emit(event);\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, booleanAttribute, computed, input } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraTagTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPopover, TxPopoverContent, TxPopoverTrigger } from '@tectra-ng/ui/popover';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { TxTag } from './tag.component';\nimport { TxTagListItem, TxTagListPart, TxTagSeverity, TxTagSize } from './tag.types';\n\n@Component({\n selector: 'tx-tag-list',\n imports: [NgTemplateOutlet, TxTag, TxTooltip, TxPopover, TxPopoverContent, TxPopoverTrigger],\n templateUrl: './tag-list.component.html',\n styleUrl: './tag-list.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-tag-list',\n role: 'list',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.aria-label]': 'ariaLabel() ?? null',\n '[class.tx-tag-list--empty]': '!all().length',\n },\n})\nexport class TxTagList {\n readonly tags = input<readonly TxTagListItem[] | null | undefined>([]);\n readonly limit = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly severity = input<TxTagSeverity>('secondary');\n readonly size = input<TxTagSize>('medium');\n readonly rounded = input(false, { transform: booleanAttribute });\n readonly emptyText = input('-');\n readonly moreLabel = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraTagTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTagListPart, TxTagList> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('tagList', this, this.pt, this.ptOptions);\n protected readonly t = injectTranslations();\n\n protected readonly all = computed(() => this.tags() ?? []);\n protected readonly visible = computed(() => {\n const limit = this.limit();\n return limit && limit > 0 ? this.all().slice(0, limit) : this.all();\n });\n protected readonly hidden = computed(() => {\n const limit = this.limit();\n return limit && limit > 0 ? this.all().slice(limit) : [];\n });\n protected readonly moreText = computed(() => this.moreLabel() ?? this.t().moreItems.replace('{count}', String(this.hidden().length)));\n\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-tag'), ...this.passThrough().root?.style }));\n}\n","<ng-template #tagTemplate let-tag>\n <tx-tag\n [value]=\"tag.value\"\n [severity]=\"tag.severity ?? severity()\"\n [icon]=\"tag.icon\"\n [size]=\"size()\"\n [rounded]=\"rounded()\"\n [unstyled]=\"isUnstyled()\"\n [txTooltip]=\"tag.tooltip ?? ''\"\n [class]=\"passThrough().tag?.class\"\n [style]=\"passThrough().tag?.style\"\n />\n</ng-template>\n\n@for (tag of visible(); track $index) {\n <span class=\"tx-tag-list__item\" role=\"listitem\"><ng-container *ngTemplateOutlet=\"tagTemplate; context: { $implicit: tag }\" /></span>\n} @empty {\n <span class=\"tx-tag-list__empty\" role=\"listitem\">{{ emptyText() }}</span>\n}\n@if (hidden().length) {\n <span class=\"tx-tag-list__item\" role=\"listitem\">\n <button\n type=\"button\"\n class=\"tx-tag-list__more\"\n [class]=\"passThrough().more?.class\"\n [style]=\"passThrough().more?.style\"\n [attr.aria-label]=\"moreText()\"\n [txPopoverTrigger]=\"rest\"\n >\n <tx-tag [value]=\"'+' + hidden().length\" [severity]=\"severity()\" [size]=\"size()\" [rounded]=\"rounded()\" [unstyled]=\"isUnstyled()\" />\n </button>\n </span>\n <tx-popover #rest [ariaLabel]=\"t().tagListHidden\" autoFocus=\"none\" [unstyled]=\"isUnstyled()\">\n <ng-template txPopoverContent>\n <div\n class=\"tx-tag-list__popover\"\n role=\"list\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [class]=\"passThrough().popover?.class\"\n [style]=\"passThrough().popover?.style\"\n >\n @for (tag of hidden(); track $index) {\n <span role=\"listitem\"><ng-container *ngTemplateOutlet=\"tagTemplate; context: { $implicit: tag }\" /></span>\n }\n </div>\n </ng-template>\n </tx-popover>\n}\n"],"mappings":";;;;;;;;;;AAQA,MAAM,aAAa;AA0DnB,IAAa,QAAb,MAAa,MAAK;CACR,iBAAiB,OAAO,cAAc;CACtC,WAAW,OAAO,QAAQ;CAC1B,QAA8C;CAE7C,QAAQ,MAAmC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,WAAW,MAAqB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC1C,OAAO,MAAiB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACjC,UAAU,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,UAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACtE,OAAO,MAA8C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC/D,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,YAAY,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACxE,cAAc,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,KAAK,MAAsD,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACrE,KAAK,MAAmD,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAClE,YAAY,MAAwC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+B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AM;IACN,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,qBAAqB;IACrB,8BAA8B;GAC/B;GAAA,UAAA;GAAA,QAAA,CAAA,y1BAAA;EAAA,CAAA"}
@@ -182,8 +182,8 @@ var TxTruncateText = class TxTruncateText {
182
182
  classAttribute: "tx-truncate-text"
183
183
  },
184
184
  ngImport: i0,
185
- template: "@if (copyable() && fullText()) {\n <button\n type=\"button\"\n class=\"tx-truncate-text__copy\"\n [class.tx-truncate-text__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"copyLabel()\"\n [txTooltip]=\"copyLabel()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'clone'\" />\n </button>\n}\n<ng-template #content>\n @if (isTruncated()) {\n <span aria-hidden=\"true\"><tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" /></span>\n <span class=\"tx-truncate-text__full\">{{ fullText() }}</span>\n } @else {\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" />\n }\n</ng-template>\n@if (linkHref(); as link) {\n <a\n class=\"tx-truncate-text__text tx-truncate-text__link\"\n [href]=\"link\"\n [attr.target]=\"target()\"\n [attr.rel]=\"relation()\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <span\n class=\"tx-truncate-text__text\"\n [attr.tabindex]=\"isTruncated() ? 0 : null\"\n [class]=\"passThrough().text?.class\"\n [style]=\"passThrough().text?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </span>\n}\n",
186
- styles: [":host{display:inline-flex;align-items:center;max-width:100%;min-width:0;vertical-align:middle}.tx-truncate-text__text{display:inline-flex;min-width:0;white-space:nowrap}.tx-truncate-text__full{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.tx-truncate-text__copy{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;border:0;background:none;font:inherit;cursor:pointer}:host([data-styled]){gap:var(--tx-truncate-text-gap)}:host([data-styled]) .tx-truncate-text__text{border-radius:2px}:host([data-styled]) .tx-truncate-text__text:focus-visible{outline:2px solid var(--tx-truncate-text-focus-ring-color);outline-offset:2px}:host([data-styled].tx-truncate-text--truncated) .tx-truncate-text__text{cursor:pointer}:host([data-styled]) .tx-truncate-text__link{color:var(--tx-truncate-text-link-color);text-decoration:none;transition:color var(--tx-truncate-text-transition-duration) ease}:host([data-styled]) .tx-truncate-text__link:hover{color:var(--tx-truncate-text-link-hover-color)}:host([data-styled]) .tx-truncate-text__copy{border-radius:2px;color:var(--tx-truncate-text-copy-color);font-size:var(--tx-truncate-text-copy-icon-size);transition:color var(--tx-truncate-text-transition-duration) ease}:host([data-styled]) .tx-truncate-text__copy:hover{color:var(--tx-truncate-text-copy-hover-color)}:host([data-styled]) .tx-truncate-text__copy:focus-visible{outline:2px solid var(--tx-truncate-text-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-truncate-text__copy--done{color:var(--tx-truncate-text-copied-color)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-truncate-text__link,:host([data-styled]) .tx-truncate-text__copy{transition:none}}\n"],
185
+ template: "@if (copyable() && fullText()) {\n <button\n type=\"button\"\n class=\"tx-truncate-text__copy\"\n [class.tx-truncate-text__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"copyLabel()\"\n [txTooltip]=\"copyLabel()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n (click)=\"copy()\"\n >\n <span class=\"tx-copy-swap\" [class.tx-copy-swap--done]=\"isCopied()\"><tx-icon class=\"tx-copy-swap__icon tx-copy-swap__icon--idle\" name=\"clone\" /><tx-icon class=\"tx-copy-swap__icon tx-copy-swap__icon--done\" name=\"check\" /></span>\n </button>\n}\n<ng-template #content>\n @if (isTruncated()) {\n <span aria-hidden=\"true\"><tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" /></span>\n <span class=\"tx-truncate-text__full\">{{ fullText() }}</span>\n } @else {\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" />\n }\n</ng-template>\n@if (linkHref(); as link) {\n <a\n class=\"tx-truncate-text__text tx-truncate-text__link\"\n [href]=\"link\"\n [attr.target]=\"target()\"\n [attr.rel]=\"relation()\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <span\n class=\"tx-truncate-text__text\"\n [attr.tabindex]=\"isTruncated() ? 0 : null\"\n [class]=\"passThrough().text?.class\"\n [style]=\"passThrough().text?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </span>\n}\n",
186
+ styles: [":host{display:inline-flex;align-items:center;max-width:100%;min-width:0;vertical-align:middle}.tx-truncate-text__text{display:inline-flex;min-width:0;white-space:nowrap}.tx-truncate-text__full{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.tx-truncate-text__copy{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;border:0;background:none;font:inherit;cursor:pointer}:host([data-styled]){gap:var(--tx-truncate-text-gap)}:host([data-styled]) .tx-truncate-text__text{border-radius:2px}:host([data-styled]) .tx-truncate-text__text:focus-visible{outline:2px solid var(--tx-truncate-text-focus-ring-color);outline-offset:2px}:host([data-styled].tx-truncate-text--truncated) .tx-truncate-text__text{cursor:pointer}:host([data-styled]) .tx-truncate-text__link{color:var(--tx-truncate-text-link-color);text-decoration:none;transition:color var(--tx-truncate-text-transition-duration) ease}:host([data-styled]) .tx-truncate-text__link:hover{color:var(--tx-truncate-text-link-hover-color)}:host([data-styled]) .tx-truncate-text__copy{border-radius:2px;color:var(--tx-truncate-text-copy-color);font-size:var(--tx-truncate-text-copy-icon-size);transition:color var(--tx-truncate-text-transition-duration) ease}:host([data-styled]) .tx-truncate-text__copy:hover{color:var(--tx-truncate-text-copy-hover-color)}:host([data-styled]) .tx-truncate-text__copy:focus-visible{outline:2px solid var(--tx-truncate-text-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-truncate-text__copy--done{color:var(--tx-truncate-text-copied-color)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-truncate-text__link,:host([data-styled]) .tx-truncate-text__copy{transition:none}}.tx-copy-swap{display:inline-grid;place-items:center}.tx-copy-swap__icon{grid-area:1/1;transition:opacity var(--tx-motion-duration) ease,transform var(--tx-motion-duration) cubic-bezier(.34,1.56,.64,1)}.tx-copy-swap__icon--done{opacity:0;transform:scale(.4) rotate(-45deg)}.tx-copy-swap--done .tx-copy-swap__icon--idle{opacity:0;transform:scale(.4) rotate(45deg)}.tx-copy-swap--done .tx-copy-swap__icon--done{opacity:1;transform:none}@media(prefers-reduced-motion:reduce){.tx-copy-swap__icon{transition:none}}\n"],
187
187
  dependencies: [
188
188
  {
189
189
  kind: "directive",
@@ -269,8 +269,8 @@ i0.ɵɵngDeclareClassMetadata({
269
269
  "[attr.data-styled]": "!isUnstyled() || null",
270
270
  "[class.tx-truncate-text--truncated]": "isTruncated()"
271
271
  },
272
- template: "@if (copyable() && fullText()) {\n <button\n type=\"button\"\n class=\"tx-truncate-text__copy\"\n [class.tx-truncate-text__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"copyLabel()\"\n [txTooltip]=\"copyLabel()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'clone'\" />\n </button>\n}\n<ng-template #content>\n @if (isTruncated()) {\n <span aria-hidden=\"true\"><tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" /></span>\n <span class=\"tx-truncate-text__full\">{{ fullText() }}</span>\n } @else {\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" />\n }\n</ng-template>\n@if (linkHref(); as link) {\n <a\n class=\"tx-truncate-text__text tx-truncate-text__link\"\n [href]=\"link\"\n [attr.target]=\"target()\"\n [attr.rel]=\"relation()\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <span\n class=\"tx-truncate-text__text\"\n [attr.tabindex]=\"isTruncated() ? 0 : null\"\n [class]=\"passThrough().text?.class\"\n [style]=\"passThrough().text?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </span>\n}\n",
273
- styles: [":host{display:inline-flex;align-items:center;max-width:100%;min-width:0;vertical-align:middle}.tx-truncate-text__text{display:inline-flex;min-width:0;white-space:nowrap}.tx-truncate-text__full{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.tx-truncate-text__copy{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;border:0;background:none;font:inherit;cursor:pointer}:host([data-styled]){gap:var(--tx-truncate-text-gap)}:host([data-styled]) .tx-truncate-text__text{border-radius:2px}:host([data-styled]) .tx-truncate-text__text:focus-visible{outline:2px solid var(--tx-truncate-text-focus-ring-color);outline-offset:2px}:host([data-styled].tx-truncate-text--truncated) .tx-truncate-text__text{cursor:pointer}:host([data-styled]) .tx-truncate-text__link{color:var(--tx-truncate-text-link-color);text-decoration:none;transition:color var(--tx-truncate-text-transition-duration) ease}:host([data-styled]) .tx-truncate-text__link:hover{color:var(--tx-truncate-text-link-hover-color)}:host([data-styled]) .tx-truncate-text__copy{border-radius:2px;color:var(--tx-truncate-text-copy-color);font-size:var(--tx-truncate-text-copy-icon-size);transition:color var(--tx-truncate-text-transition-duration) ease}:host([data-styled]) .tx-truncate-text__copy:hover{color:var(--tx-truncate-text-copy-hover-color)}:host([data-styled]) .tx-truncate-text__copy:focus-visible{outline:2px solid var(--tx-truncate-text-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-truncate-text__copy--done{color:var(--tx-truncate-text-copied-color)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-truncate-text__link,:host([data-styled]) .tx-truncate-text__copy{transition:none}}\n"]
272
+ template: "@if (copyable() && fullText()) {\n <button\n type=\"button\"\n class=\"tx-truncate-text__copy\"\n [class.tx-truncate-text__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"copyLabel()\"\n [txTooltip]=\"copyLabel()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n (click)=\"copy()\"\n >\n <span class=\"tx-copy-swap\" [class.tx-copy-swap--done]=\"isCopied()\"><tx-icon class=\"tx-copy-swap__icon tx-copy-swap__icon--idle\" name=\"clone\" /><tx-icon class=\"tx-copy-swap__icon tx-copy-swap__icon--done\" name=\"check\" /></span>\n </button>\n}\n<ng-template #content>\n @if (isTruncated()) {\n <span aria-hidden=\"true\"><tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" /></span>\n <span class=\"tx-truncate-text__full\">{{ fullText() }}</span>\n } @else {\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" />\n }\n</ng-template>\n@if (linkHref(); as link) {\n <a\n class=\"tx-truncate-text__text tx-truncate-text__link\"\n [href]=\"link\"\n [attr.target]=\"target()\"\n [attr.rel]=\"relation()\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <span\n class=\"tx-truncate-text__text\"\n [attr.tabindex]=\"isTruncated() ? 0 : null\"\n [class]=\"passThrough().text?.class\"\n [style]=\"passThrough().text?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </span>\n}\n",
273
+ styles: [":host{display:inline-flex;align-items:center;max-width:100%;min-width:0;vertical-align:middle}.tx-truncate-text__text{display:inline-flex;min-width:0;white-space:nowrap}.tx-truncate-text__full{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.tx-truncate-text__copy{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;border:0;background:none;font:inherit;cursor:pointer}:host([data-styled]){gap:var(--tx-truncate-text-gap)}:host([data-styled]) .tx-truncate-text__text{border-radius:2px}:host([data-styled]) .tx-truncate-text__text:focus-visible{outline:2px solid var(--tx-truncate-text-focus-ring-color);outline-offset:2px}:host([data-styled].tx-truncate-text--truncated) .tx-truncate-text__text{cursor:pointer}:host([data-styled]) .tx-truncate-text__link{color:var(--tx-truncate-text-link-color);text-decoration:none;transition:color var(--tx-truncate-text-transition-duration) ease}:host([data-styled]) .tx-truncate-text__link:hover{color:var(--tx-truncate-text-link-hover-color)}:host([data-styled]) .tx-truncate-text__copy{border-radius:2px;color:var(--tx-truncate-text-copy-color);font-size:var(--tx-truncate-text-copy-icon-size);transition:color var(--tx-truncate-text-transition-duration) ease}:host([data-styled]) .tx-truncate-text__copy:hover{color:var(--tx-truncate-text-copy-hover-color)}:host([data-styled]) .tx-truncate-text__copy:focus-visible{outline:2px solid var(--tx-truncate-text-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-truncate-text__copy--done{color:var(--tx-truncate-text-copied-color)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-truncate-text__link,:host([data-styled]) .tx-truncate-text__copy{transition:none}}.tx-copy-swap{display:inline-grid;place-items:center}.tx-copy-swap__icon{grid-area:1/1;transition:opacity var(--tx-motion-duration) ease,transform var(--tx-motion-duration) cubic-bezier(.34,1.56,.64,1)}.tx-copy-swap__icon--done{opacity:0;transform:scale(.4) rotate(-45deg)}.tx-copy-swap--done .tx-copy-swap__icon--idle{opacity:0;transform:scale(.4) rotate(45deg)}.tx-copy-swap--done .tx-copy-swap__icon--done{opacity:1;transform:none}@media(prefers-reduced-motion:reduce){.tx-copy-swap__icon{transition:none}}\n"]
274
274
  }]
275
275
  }],
276
276
  ctorParameters: () => [],
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-truncate-text.mjs","names":[],"sources":["../../../../packages/ui/truncate-text/src/truncate-text.component.ts","../../../../packages/ui/truncate-text/src/truncate-text.component.html"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, booleanAttribute, computed, inject, input, numberAttribute, output, signal } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxPlacement } from '@tectra-ng/core/overlay';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraTruncateTextTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxHighlightTerms, TxHighlightText } from '@tectra-ng/ui/highlight-text';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { TxTruncateTextPart } from './truncate-text.types';\n\nconst COPIED_FOR = 1600;\n\n@Component({\n selector: 'tx-truncate-text',\n imports: [NgTemplateOutlet, TxHighlightText, TxIcon, TxTooltip],\n templateUrl: './truncate-text.component.html',\n styleUrl: './truncate-text.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-truncate-text',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-truncate-text--truncated]': 'isTruncated()',\n },\n})\nexport class TxTruncateText {\n private document = inject(DOCUMENT);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly text = input<string | number | null | undefined>('');\n readonly limit = input<number, unknown>(15, { transform: numberAttribute });\n readonly ellipsis = input<string>('...');\n readonly href = input<string | null | undefined>(undefined);\n readonly openLink = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly target = input<string>('_blank');\n readonly highlight = input<TxHighlightTerms>('');\n readonly copyable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly tooltipPlacement = input<TxPlacement>('top');\n readonly dt = input<TectraDeepPartial<TectraTruncateTextTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTruncateTextPart, TxTruncateText> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly copied = output<string>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('truncateText', this, this.pt, this.ptOptions);\n readonly isCopied = signal(false);\n\n readonly fullText = computed(() => String(this.text() ?? ''));\n readonly isTruncated = computed(() => this.limit() >= 0 && Array.from(this.fullText()).length > this.limit());\n readonly displayText = computed(() => (this.isTruncated() ? Array.from(this.fullText()).slice(0, this.limit()).join('') + this.ellipsis() : this.fullText()));\n readonly tooltip = computed(() => (this.isTruncated() ? this.fullText() : null));\n readonly linkHref = computed(() => this.href() || (this.openLink() ? this.fullText() : null) || null);\n readonly relation = computed(() => (this.target() === '_blank' ? 'noopener noreferrer' : null));\n readonly copyLabel = computed(() => (this.isCopied() ? this.translations().copied : this.translations().copy));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-truncate-text'), ...this.passThrough().root?.style }));\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const text = this.fullText();\n this.document.defaultView?.navigator.clipboard?.writeText(text);\n this.copied.emit(text);\n this.isCopied.set(true);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), COPIED_FOR);\n }\n}\n","@if (copyable() && fullText()) {\n <button\n type=\"button\"\n class=\"tx-truncate-text__copy\"\n [class.tx-truncate-text__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"copyLabel()\"\n [txTooltip]=\"copyLabel()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'clone'\" />\n </button>\n}\n<ng-template #content>\n @if (isTruncated()) {\n <span aria-hidden=\"true\"><tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" /></span>\n <span class=\"tx-truncate-text__full\">{{ fullText() }}</span>\n } @else {\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" />\n }\n</ng-template>\n@if (linkHref(); as link) {\n <a\n class=\"tx-truncate-text__text tx-truncate-text__link\"\n [href]=\"link\"\n [attr.target]=\"target()\"\n [attr.rel]=\"relation()\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <span\n class=\"tx-truncate-text__text\"\n [attr.tabindex]=\"isTruncated() ? 0 : null\"\n [class]=\"passThrough().text?.class\"\n [style]=\"passThrough().text?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </span>\n}\n"],"mappings":";;;;;;;;;;AAYA,MAAM,aAAa;AAgBnB,IAAa,iBAAb,MAAa,eAAc;CACjB,WAAW,OAAO,QAAQ;CAC1B,QAA8C;CAE7C,OAAO,MAA0C,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACpD,QAAQ,MAAuB,IAAE;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CAC/D,WAAW,MAAc,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC/B,OAAO,MAAiC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,SAAS,MAAc,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAChC,YAAY,MAAwB,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CACvC,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAA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AAA,oBAAA;IAAA,qCAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UC5B3B;EAkDA,QAAA,CAAA,guDAAA;EAAA,cAAA;GAAA;IAAA,MAAA;IAAA,MDlCY;IAAgB,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;IAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAe,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAM,UAAA;IAAA,QAAA,CAAA,MAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAS,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;IAAA,SAAA,CAAA,gBAAA,eAAA;IAAA,UAAA,CAAA,WAAA;GAAA;EAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAYnD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAd1B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAkB,SACnB;IAAC;IAAkB;IAAiB;IAAQ;GAAS;GAAC,iBAG9C,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,uCAAuC;GACxC;GAAA,UAAA;GAAA,QAAA,CAAA,guDAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-truncate-text.mjs","names":[],"sources":["../../../../packages/ui/truncate-text/src/truncate-text.component.ts","../../../../packages/ui/truncate-text/src/truncate-text.component.html"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, booleanAttribute, computed, inject, input, numberAttribute, output, signal } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxPlacement } from '@tectra-ng/core/overlay';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraTruncateTextTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxHighlightTerms, TxHighlightText } from '@tectra-ng/ui/highlight-text';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { TxTruncateTextPart } from './truncate-text.types';\n\nconst COPIED_FOR = 1600;\n\n@Component({\n selector: 'tx-truncate-text',\n imports: [NgTemplateOutlet, TxHighlightText, TxIcon, TxTooltip],\n templateUrl: './truncate-text.component.html',\n styleUrl: './truncate-text.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-truncate-text',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-truncate-text--truncated]': 'isTruncated()',\n },\n})\nexport class TxTruncateText {\n private document = inject(DOCUMENT);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly text = input<string | number | null | undefined>('');\n readonly limit = input<number, unknown>(15, { transform: numberAttribute });\n readonly ellipsis = input<string>('...');\n readonly href = input<string | null | undefined>(undefined);\n readonly openLink = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly target = input<string>('_blank');\n readonly highlight = input<TxHighlightTerms>('');\n readonly copyable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly tooltipPlacement = input<TxPlacement>('top');\n readonly dt = input<TectraDeepPartial<TectraTruncateTextTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTruncateTextPart, TxTruncateText> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly copied = output<string>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('truncateText', this, this.pt, this.ptOptions);\n readonly isCopied = signal(false);\n\n readonly fullText = computed(() => String(this.text() ?? ''));\n readonly isTruncated = computed(() => this.limit() >= 0 && Array.from(this.fullText()).length > this.limit());\n readonly displayText = computed(() => (this.isTruncated() ? Array.from(this.fullText()).slice(0, this.limit()).join('') + this.ellipsis() : this.fullText()));\n readonly tooltip = computed(() => (this.isTruncated() ? this.fullText() : null));\n readonly linkHref = computed(() => this.href() || (this.openLink() ? this.fullText() : null) || null);\n readonly relation = computed(() => (this.target() === '_blank' ? 'noopener noreferrer' : null));\n readonly copyLabel = computed(() => (this.isCopied() ? this.translations().copied : this.translations().copy));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-truncate-text'), ...this.passThrough().root?.style }));\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const text = this.fullText();\n this.document.defaultView?.navigator.clipboard?.writeText(text);\n this.copied.emit(text);\n this.isCopied.set(true);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), COPIED_FOR);\n }\n}\n","@if (copyable() && fullText()) {\n <button\n type=\"button\"\n class=\"tx-truncate-text__copy\"\n [class.tx-truncate-text__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"copyLabel()\"\n [txTooltip]=\"copyLabel()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n (click)=\"copy()\"\n >\n <span class=\"tx-copy-swap\" [class.tx-copy-swap--done]=\"isCopied()\"><tx-icon class=\"tx-copy-swap__icon tx-copy-swap__icon--idle\" name=\"clone\" /><tx-icon class=\"tx-copy-swap__icon tx-copy-swap__icon--done\" name=\"check\" /></span>\n </button>\n}\n<ng-template #content>\n @if (isTruncated()) {\n <span aria-hidden=\"true\"><tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" /></span>\n <span class=\"tx-truncate-text__full\">{{ fullText() }}</span>\n } @else {\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" />\n }\n</ng-template>\n@if (linkHref(); as link) {\n <a\n class=\"tx-truncate-text__text tx-truncate-text__link\"\n [href]=\"link\"\n [attr.target]=\"target()\"\n [attr.rel]=\"relation()\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <span\n class=\"tx-truncate-text__text\"\n [attr.tabindex]=\"isTruncated() ? 0 : null\"\n [class]=\"passThrough().text?.class\"\n [style]=\"passThrough().text?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </span>\n}\n"],"mappings":";;;;;;;;;;AAYA,MAAM,aAAa;AAgBnB,IAAa,iBAAb,MAAa,eAAc;CACjB,WAAW,OAAO,QAAQ;CAC1B,QAA8C;CAE7C,OAAO,MAA0C,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACpD,QAAQ,MAAuB,IAAE;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CAC/D,WAAW,MAAc,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC/B,OAAO,MAAiC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,WAAW,MAAwB,OAAK;EAAA,GAAA,Y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ACxC;GAAA,UAAA;GAAA,QAAA,CAAA,6tEAAA;EAAA,CAAA"}
package/message/README.md CHANGED
@@ -10,7 +10,7 @@ Inline feedback. `<tx-message>` is a box with a severity, an optional icon and a
10
10
  <tx-field-error for="email" [control]="email" />
11
11
  ```
12
12
 
13
- Error texts: `messages` on the field, then `provideTectra({ validationMessages })`, then `error.message` of a custom validator, then the built-in text of the locale (`required`, `email`, `minlength`, `maxlength`, `min`, `max`, `pattern`; anything else is "Invalid value"). `{param}` is replaced with the fields of the error object, e.g. `{requiredLength}`, `{min}`.
13
+ Error texts: `messages` on the field, then `provideTectra({ validationMessages })`, then `error.message` of a custom validator, then the built-in text of the locale (`required`, `email`, `minlength`, `maxlength`, `min`, `max`, `pattern`, and the keys of `TxValidators` from `@tectra-ng/utils/validators`; anything else is "Invalid value"). `{param}` is replaced with the fields of the error object, e.g. `{requiredLength}`, `{min}`.
14
14
 
15
15
  ## Inputs
16
16
  | Name | Description |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tectra-ng/ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Angular UI components on signals: table, datepicker, select, multiselect, dialog, drawer, toast, tooltip, tree and 80+ more. Standalone, OnPush, zoneless, accessible and themable, one entry point per component.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://tectra-ng.com",
@@ -60,9 +60,9 @@
60
60
  "@angular/forms": "^22.0.0",
61
61
  "@angular/router": "^22.0.0",
62
62
  "rxjs": "^7.8.0",
63
- "@tectra-ng/core": "^0.2.0",
64
- "@tectra-ng/icons": "^0.2.0",
65
- "@tectra-ng/themes": "^0.2.0"
63
+ "@tectra-ng/core": "^0.2.2",
64
+ "@tectra-ng/icons": "^0.2.2",
65
+ "@tectra-ng/themes": "^0.2.2"
66
66
  },
67
67
  "peerDependenciesMeta": {
68
68
  "@angular/router": {
@@ -4,11 +4,18 @@ import { TxPassThroughOptions } from "@tectra-ng/core/config";
4
4
  import { TxIconName } from "@tectra-ng/icons";
5
5
  import { TectraDeepPartial } from "@tectra-ng/themes";
6
6
  import * as i1 from "@tectra-ng/ui/tooltip";
7
+ import { TxMenuItem } from "@tectra-ng/ui/menu";
7
8
  export type TxAvatarSize = 'small' | 'medium' | 'large' | 'xlarge';
8
9
  export type TxAvatarShape = 'circle' | 'square';
9
10
  export type TxAvatarTone = 'blue' | 'green' | 'sky' | 'orange' | 'purple' | 'red';
10
11
  export type TxAvatarPart = 'root' | 'image' | 'label' | 'icon';
11
12
  export type TxAvatarGroupPart = 'root' | 'more' | 'add' | 'list' | 'item' | 'name';
13
+ export type TxAvatarEditorPart = 'root' | 'photo' | 'badge' | 'loader' | 'hint';
14
+ export type TxAvatarEditorRejectReason = 'type' | 'size';
15
+ export interface TxAvatarEditorRejection {
16
+ readonly file: File;
17
+ readonly reason: TxAvatarEditorRejectReason;
18
+ }
12
19
  export interface TxAvatarGroupContext {
13
20
  readonly size: Signal<TxAvatarSize | number | undefined>;
14
21
  readonly shape: Signal<TxAvatarShape | undefined>;
@@ -89,6 +96,22 @@ export declare class TxAvatar {
89
96
  addColor: string;
90
97
  addIconScale: string;
91
98
  };
99
+ editor: {
100
+ size: string;
101
+ gap: string;
102
+ ringWidth: string;
103
+ ringColor: string;
104
+ badgeRingWidth: string;
105
+ badgeRingColor: string;
106
+ badgeSize: string;
107
+ loaderBackground: string;
108
+ dropRingColor: string;
109
+ hintMaxWidth: string;
110
+ hintFontSize: string;
111
+ hintLineHeight: string;
112
+ hintColor: string;
113
+ transitionDuration: string;
114
+ };
92
115
  list: {
93
116
  padding: string;
94
117
  gap: string;
@@ -269,6 +292,22 @@ export declare class TxAvatarGroup {
269
292
  addColor: string;
270
293
  addIconScale: string;
271
294
  };
295
+ editor: {
296
+ size: string;
297
+ gap: string;
298
+ ringWidth: string;
299
+ ringColor: string;
300
+ badgeRingWidth: string;
301
+ badgeRingColor: string;
302
+ badgeSize: string;
303
+ loaderBackground: string;
304
+ dropRingColor: string;
305
+ hintMaxWidth: string;
306
+ hintFontSize: string;
307
+ hintLineHeight: string;
308
+ hintColor: string;
309
+ transitionDuration: string;
310
+ };
272
311
  list: {
273
312
  padding: string;
274
313
  gap: string;
@@ -368,4 +407,225 @@ export declare class TxAvatarGroup {
368
407
  "add": "add";
369
408
  }, ["avatars"], ["*", "[txAvatarGroupEnd]"], true, never>;
370
409
  }
410
+ export declare function acceptsFile(file: File, accept: string): boolean;
411
+ export declare class TxAvatarEditor {
412
+ readonly image: import("@angular/core").ModelSignal<string | null | undefined>;
413
+ readonly name: import("@angular/core").InputSignal<string | null | undefined>;
414
+ readonly size: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
415
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
416
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
417
+ readonly hint: import("@angular/core").InputSignal<string | undefined>;
418
+ readonly accept: import("@angular/core").InputSignal<string>;
419
+ readonly maxFileSize: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
420
+ readonly confirmRemove: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
421
+ readonly changeLabel: import("@angular/core").InputSignal<string | undefined>;
422
+ readonly removeLabel: import("@angular/core").InputSignal<string | undefined>;
423
+ readonly removeTitle: import("@angular/core").InputSignal<string | undefined>;
424
+ readonly removeMessage: import("@angular/core").InputSignal<string | undefined>;
425
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
426
+ root: {
427
+ size: string;
428
+ fontWeight: string;
429
+ fontScale: string;
430
+ iconScale: string;
431
+ squareBorderRadius: string;
432
+ background: string;
433
+ color: string;
434
+ };
435
+ sm: {
436
+ size: string;
437
+ };
438
+ lg: {
439
+ size: string;
440
+ };
441
+ xl: {
442
+ size: string;
443
+ };
444
+ tones: {
445
+ blue: {
446
+ background: string;
447
+ color: string;
448
+ };
449
+ green: {
450
+ background: string;
451
+ color: string;
452
+ };
453
+ sky: {
454
+ background: string;
455
+ color: string;
456
+ };
457
+ orange: {
458
+ background: string;
459
+ color: string;
460
+ };
461
+ purple: {
462
+ background: string;
463
+ color: string;
464
+ };
465
+ red: {
466
+ background: string;
467
+ color: string;
468
+ };
469
+ };
470
+ group: {
471
+ overlap: string;
472
+ ringWidth: string;
473
+ ringColor: string;
474
+ moreBackground: string;
475
+ moreColor: string;
476
+ moreFocusRingWidth: string;
477
+ moreFocusRingOffset: string;
478
+ moreFocusRingColor: string;
479
+ endGap: string;
480
+ addBackground: string;
481
+ addBorderColor: string;
482
+ addHoverBorderColor: string;
483
+ addColor: string;
484
+ addIconScale: string;
485
+ };
486
+ editor: {
487
+ size: string;
488
+ gap: string;
489
+ ringWidth: string;
490
+ ringColor: string;
491
+ badgeRingWidth: string;
492
+ badgeRingColor: string;
493
+ badgeSize: string;
494
+ loaderBackground: string;
495
+ dropRingColor: string;
496
+ hintMaxWidth: string;
497
+ hintFontSize: string;
498
+ hintLineHeight: string;
499
+ hintColor: string;
500
+ transitionDuration: string;
501
+ };
502
+ list: {
503
+ padding: string;
504
+ gap: string;
505
+ itemGap: string;
506
+ maxHeight: string;
507
+ nameFontSize: string;
508
+ nameColor: string;
509
+ };
510
+ }> | undefined>;
511
+ readonly pt: import("@angular/core").InputSignal<Partial<Record<TxAvatarEditorPart, import("@tectra-ng/core/config").TxPassThroughValue<TxAvatarEditor>>> | undefined>;
512
+ readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
513
+ readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
514
+ readonly photoChange: import("@angular/core").OutputEmitterRef<File | null>;
515
+ readonly rejected: import("@angular/core").OutputEmitterRef<TxAvatarEditorRejection>;
516
+ readonly isUnstyled: import("@angular/core").Signal<boolean>;
517
+ readonly passThrough: import("@angular/core").Signal<Partial<Record<TxAvatarEditorPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
518
+ protected readonly t: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
519
+ private readonly confirm;
520
+ private readonly fileInput;
521
+ private readonly menu;
522
+ protected readonly dragOver: import("@angular/core").WritableSignal<boolean>;
523
+ protected readonly hasPhoto: import("@angular/core").Signal<boolean>;
524
+ protected readonly blocked: import("@angular/core").Signal<boolean>;
525
+ protected readonly changeText: import("@angular/core").Signal<string>;
526
+ protected readonly menuItems: import("@angular/core").Signal<TxMenuItem<unknown>[]>;
527
+ readonly hostStyle: import("@angular/core").Signal<{
528
+ '--tx-avatar-editor-size'?: string | undefined;
529
+ }>;
530
+ pick(): void;
531
+ remove(): Promise<void>;
532
+ protected onBadge(event: MouseEvent): void;
533
+ protected onFile(event: Event): void;
534
+ protected onDragOver(event: DragEvent): void;
535
+ protected onDragLeave(): void;
536
+ protected onDrop(event: DragEvent): void;
537
+ private take;
538
+ static ɵfac: i0.ɵɵFactoryDeclaration<TxAvatarEditor, never>;
539
+ static ɵcmp: i0.ɵɵComponentDeclaration<TxAvatarEditor, "tx-avatar-editor", never, {
540
+ "image": {
541
+ "alias": "image";
542
+ "required": false;
543
+ "isSignal": true;
544
+ };
545
+ "name": {
546
+ "alias": "name";
547
+ "required": false;
548
+ "isSignal": true;
549
+ };
550
+ "size": {
551
+ "alias": "size";
552
+ "required": false;
553
+ "isSignal": true;
554
+ };
555
+ "loading": {
556
+ "alias": "loading";
557
+ "required": false;
558
+ "isSignal": true;
559
+ };
560
+ "disabled": {
561
+ "alias": "disabled";
562
+ "required": false;
563
+ "isSignal": true;
564
+ };
565
+ "hint": {
566
+ "alias": "hint";
567
+ "required": false;
568
+ "isSignal": true;
569
+ };
570
+ "accept": {
571
+ "alias": "accept";
572
+ "required": false;
573
+ "isSignal": true;
574
+ };
575
+ "maxFileSize": {
576
+ "alias": "maxFileSize";
577
+ "required": false;
578
+ "isSignal": true;
579
+ };
580
+ "confirmRemove": {
581
+ "alias": "confirmRemove";
582
+ "required": false;
583
+ "isSignal": true;
584
+ };
585
+ "changeLabel": {
586
+ "alias": "changeLabel";
587
+ "required": false;
588
+ "isSignal": true;
589
+ };
590
+ "removeLabel": {
591
+ "alias": "removeLabel";
592
+ "required": false;
593
+ "isSignal": true;
594
+ };
595
+ "removeTitle": {
596
+ "alias": "removeTitle";
597
+ "required": false;
598
+ "isSignal": true;
599
+ };
600
+ "removeMessage": {
601
+ "alias": "removeMessage";
602
+ "required": false;
603
+ "isSignal": true;
604
+ };
605
+ "dt": {
606
+ "alias": "dt";
607
+ "required": false;
608
+ "isSignal": true;
609
+ };
610
+ "pt": {
611
+ "alias": "pt";
612
+ "required": false;
613
+ "isSignal": true;
614
+ };
615
+ "ptOptions": {
616
+ "alias": "ptOptions";
617
+ "required": false;
618
+ "isSignal": true;
619
+ };
620
+ "unstyled": {
621
+ "alias": "unstyled";
622
+ "required": false;
623
+ "isSignal": true;
624
+ };
625
+ }, {
626
+ "image": "imageChange";
627
+ "photoChange": "photoChange";
628
+ "rejected": "rejected";
629
+ }, never, never, true, never>;
630
+ }
371
631
  //# sourceMappingURL=tectra-ng-ui-avatar.d.ts.map
@@ -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"],"mappings":";;;;;;YAAY;YACA;YACA;YACA;YACA;iBCDK;WACN,MAAM,OAAO;WACb,OAAO,OAAO;WACd,UAAU;EACnB,SAAS;;qBAGE,iBAAe,eAAA;qBCsCf;UACH;UACA;WAEC,+BAAK;WACL,8BAAI;WACJ,+BAAK;WACL,8BAAI,YAAA;WACJ,8BAAI,qBAAA;WACJ,+BAAK,YAAA;WACL,8BAAI,YAAA;WACJ,mCAAS;WACT,iCAAO;WACP,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,+CAAA,mB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CAAU,OAAA;WAIV,mCAAS;;;;WAUT,SAAS;EAOlB,OAAO,QAAQ;SAlDJ,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;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
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":";;;;;;;YAAY;YACA;YACA;YACA;YACA;YACA;YACA;iBAEK;WACN,MAAM;WACN,QAAQ;;iBCPF;WACN,MAAM,OAAO;WACb,OAAO,OAAO;WACd,UAAU;EACnB,SAAS;;qBAGE,iBAAe,eAAA;qBCsCf;UACH;UACA;WAEC,+BAAK;WACL,8BAAI;WACJ,+BAAK;WACL,8BAAI,YAAA;WACJ,8BAAI,qBAAA;WACJ,+BAAK,YAAA;WACL,8BAAI,YAAA;WACJ,mCAAS;WACT,iCAAO;WACP,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,+CAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,oCAAU,iBAAA;WAEV,oCAAU;WACV,qCAAW,OAAA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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"}
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-message.d.ts","names":[],"sources":["../../../../packages/ui/message/src/message.types.ts","../../../../packages/ui/message/src/message-templates.directive.ts","../../../../packages/ui/message/src/message.component.ts","../../../../packages/ui/message/src/field-hint.component.ts","../../../../packages/ui/message/src/field-error.component.ts"],"mappings":";;;;;;YAAY;YACA;YACA;YACA;YACA;YACA;qBCFC;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAKA;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBCqBA;UACH;WAEC,kCAAQ,YAAA;WACR,8BAAI;WACJ,8BAAI,YAAA;WACJ,8BAAI,YAAA;WACJ,iCAAO,YAAA;WACP,kCAAQ;WACR,mCAAS,YAAA;WACT,8BAAI;WACJ,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,gDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,gCAAM;WAEN,sCAAY,OAAA;WACZ,2CAAiB,OAAA;WAEjB,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,gDAAA;WAEX,m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qDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;WACX,oCAAU;WACV,mCAAS;;;WAET,kCAAQ;WAIR,oCAAU;WAaV,sCAAY;WAYZ,+BAAK;;UAUN;SA9DG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;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"}
1
+ {"version":3,"file":"tectra-ng-ui-message.d.ts","names":[],"sources":["../../../../packages/ui/message/src/message.types.ts","../../../../packages/ui/message/src/message-templates.directive.ts","../../../../packages/ui/message/src/message.component.ts","../../../../packages/ui/message/src/field-hint.component.ts","../../../../packages/ui/message/src/field-error.component.ts"],"mappings":";;;;;;YAAY;YACA;YACA;YACA;YACA;YACA;qBCFC;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAKA;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBCqBA;UACH;WAEC,kCAAQ,YAAA;WACR,8BAAI;WACJ,8BAAI,YAAA;WACJ,8BAAI,YAAA;WACJ,iCAAO,YAAA;WACP,kCAAQ;WACR,mCAAS,YAAA;WACT,8BAAI;WACJ,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,gDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,g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