@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.
@@ -664,7 +664,24 @@ const BUILT_IN_MESSAGES = {
664
664
  maxlength: "validationMaxlength",
665
665
  min: "validationMin",
666
666
  max: "validationMax",
667
- pattern: "validationPattern"
667
+ pattern: "validationPattern",
668
+ invalidCodeFormat: "validationCodeFormat",
669
+ invalidDate: "validationDate",
670
+ pastDate: "validationPastDate",
671
+ invalidUrl: "validationUrl",
672
+ weakPassword: "validationWeakPassword",
673
+ mismatch: "validationMismatch",
674
+ passwordMismatch: "validationPasswordMismatch",
675
+ distinctControls: "validationDistinct",
676
+ invalidIp: "validationIp",
677
+ invalidDomain: "validationDomain",
678
+ duplicate: "validationDuplicate",
679
+ invalidTime: "validationTime",
680
+ invalidJson: "validationJson",
681
+ valueMismatch: "validationValueMismatch",
682
+ sumExceeded: "validationSumExceeded",
683
+ priceFormat: "validationPriceFormat",
684
+ pricePositive: "validationPricePositive"
668
685
  };
669
686
  var TxFieldError = class TxFieldError {
670
687
  generatedId = uniqueId("tx-field-error");
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-message.mjs","names":[],"sources":["../../../../packages/ui/message/src/message-templates.directive.ts","../../../../packages/ui/message/src/message.component.ts","../../../../packages/ui/message/src/message.component.html","../../../../packages/ui/message/src/field-hint.component.ts","../../../../packages/ui/message/src/field-error.component.ts","../../../../packages/ui/message/src/field-error.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({ selector: 'ng-template[txMessageIcon]' })\nexport class TxMessageIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txMessageCloseIcon]' })\nexport class TxMessageCloseIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, booleanAttribute, computed, contentChild, effect, inject, input, output, signal } 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 { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraMessageTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxMessageCloseIconTemplate, TxMessageIconTemplate } from './message-templates.directive';\nimport { TxMessagePart, TxMessageSeverity, TxMessageSize, TxMessageVariant } from './message.types';\n\n@Component({\n selector: 'tx-message',\n imports: [NgTemplateOutlet, TxIcon],\n templateUrl: './message.component.html',\n styleUrl: './message.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-message',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'variant() ?? null',\n '[attr.role]': 'role()',\n '[class.tx-message--closing]': 'isClosing()',\n '(animationend)': 'onAnimationEnd($event)',\n },\n})\nexport class TxMessage {\n private txIconRegistry = inject(TxIconRegistry);\n\n readonly severity = input<TxMessageSeverity>('info');\n readonly text = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly size = input<TxMessageSize>('medium');\n readonly variant = input<TxMessageVariant | undefined>(undefined);\n readonly closable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly closeIcon = input<TxIconName | (string & {})>('times');\n readonly life = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraMessageTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxMessagePart, TxMessage> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly closed = output<void>();\n\n readonly iconTemplate = contentChild(TxMessageIconTemplate);\n readonly closeIconTemplate = contentChild(TxMessageCloseIconTemplate);\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('message', this, this.pt, this.ptOptions);\n\n readonly isClosing = signal(false);\n readonly isClosed = signal(false);\n\n readonly role = computed(() => (this.severity() === 'danger' || this.severity() === 'warn' ? 'alert' : 'status'));\n readonly hasIcon = computed(() => !!this.icon() || !!this.iconTemplate());\n readonly iconName = computed(() => this.registered(this.icon()));\n readonly closeIconName = computed(() => this.registered(this.closeIcon()));\n readonly hostStyle = computed(() => ({\n ...toStyleObject(this.dt(), '--tx-message'),\n ...this.passThrough().root?.style,\n ...(this.isClosed() ? { display: 'none' } : {}),\n }));\n\n constructor() {\n effect((onCleanup) => {\n const life = this.life();\n if (life && life > 0) {\n const timer = setTimeout(() => this.close(), life);\n onCleanup(() => clearTimeout(timer));\n }\n });\n }\n\n close(): void {\n if (this.isClosing() || this.isClosed()) {\n return;\n }\n if (this.isUnstyled()) {\n this.finishClose();\n return;\n }\n this.isClosing.set(true);\n }\n\n onAnimationEnd(event: AnimationEvent): void {\n if (this.isClosing() && event.animationName.includes('tx-message-out')) {\n this.finishClose();\n }\n }\n\n private finishClose(): void {\n this.isClosing.set(false);\n this.isClosed.set(true);\n this.closed.emit();\n }\n\n private registered(icon: string | undefined): string | null {\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n }\n}\n","@if (hasIcon()) {\n <span class=\"tx-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon()\"></span>\n }\n </span>\n}\n<div class=\"tx-message__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n @if (text()) {\n {{ text() }}\n } @else {\n <ng-content />\n }\n</div>\n@if (closable()) {\n <button\n type=\"button\"\n class=\"tx-message__close\"\n [class]=\"passThrough().closeButton?.class\"\n [style]=\"passThrough().closeButton?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"close()\"\n >\n @if (closeIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (closeIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"closeIcon()\" aria-hidden=\"true\"></span>\n }\n </button>\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { injectDescribedBy, uniqueId } from '@tectra-ng/core/a11y';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraFieldMessageTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxFieldHintSeverity, TxFieldMessagePart } from './message.types';\n\n@Component({\n selector: 'tx-field-hint',\n imports: [TxIcon],\n template: `\n @if (icon(); as icon) {\n <span class=\"tx-field-message__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 class=\"tx-field-message__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\"><ng-content /></span>\n `,\n styleUrl: './field-message.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-field-message tx-field-hint',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[id]': 'resolvedId()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n },\n})\nexport class TxFieldHint {\n private txIconRegistry = inject(TxIconRegistry);\n private generatedId = uniqueId('tx-field-hint');\n\n readonly for = input<string | undefined>(undefined);\n readonly id = input<string | undefined>(undefined);\n readonly severity = input<TxFieldHintSeverity>('secondary');\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraFieldMessageTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFieldMessagePart, TxFieldHint> | 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('fieldHint', this, this.pt, this.ptOptions);\n readonly resolvedId = computed(() => this.id() ?? this.generatedId);\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-field-message'), ...this.passThrough().root?.style }));\n\n constructor() {\n injectDescribedBy(this.for, this.resolvedId);\n }\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, effect, inject, input, signal } from '@angular/core';\nimport { AbstractControl } from '@angular/forms';\nimport { injectDescribedBy, uniqueId } from '@tectra-ng/core/a11y';\nimport {\n TECTRA_CONFIG,\n TxPassThrough,\n TxPassThroughOptions,\n TxTranslations,\n TxValidationMessages,\n injectPassThrough,\n injectUnstyled,\n} from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraFieldMessageTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxFieldMessagePart } from './message.types';\n\nconst BUILT_IN_MESSAGES: Record<string, keyof TxTranslations> = {\n required: 'validationRequired',\n email: 'validationEmail',\n minlength: 'validationMinlength',\n maxlength: 'validationMaxlength',\n min: 'validationMin',\n max: 'validationMax',\n pattern: 'validationPattern',\n};\n\n@Component({\n selector: 'tx-field-error',\n imports: [TxIcon],\n templateUrl: './field-error.component.html',\n styleUrl: './field-message.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-field-message tx-field-error',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[id]': 'resolvedId()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-state]': 'state()',\n 'aria-live': 'polite',\n },\n})\nexport class TxFieldError {\n private generatedId = uniqueId('tx-field-error');\n private globalMessages = inject(TECTRA_CONFIG, { optional: true })?.validationMessages;\n private translations = injectTranslations();\n private readonly version = signal(0);\n\n readonly control = input<AbstractControl | undefined>(undefined);\n readonly errorText = input<string | undefined>(undefined);\n readonly showImmediately = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly successText = input<string | undefined>(undefined);\n readonly messages = input<TxValidationMessages | undefined>(undefined);\n readonly for = input<string | undefined>(undefined);\n readonly id = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraFieldMessageTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFieldMessagePart, TxFieldError> | 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('fieldError', this, this.pt, this.ptOptions);\n readonly resolvedId = computed(() => this.id() ?? this.generatedId);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-field-message'), ...this.passThrough().root?.style }));\n\n readonly errorKey = computed(() => {\n this.version();\n return Object.keys(this.control()?.errors ?? {})[0] ?? null;\n });\n readonly shownError = computed(() => {\n this.version();\n const external = this.errorText();\n if (external) {\n return external;\n }\n const control = this.control();\n const key = this.errorKey();\n if (!control || !key || !(this.showImmediately() || control.touched || control.dirty)) {\n return null;\n }\n return this.describe(key, control.errors?.[key]);\n });\n readonly successShown = computed(() => {\n this.version();\n const control = this.control();\n return (\n !!control &&\n !!this.successText() &&\n !this.shownError() &&\n control.valid &&\n hasValue(control.value) &&\n (control.touched || control.dirty)\n );\n });\n readonly state = computed(() => (this.shownError() ? 'error' : this.successShown() ? 'success' : null));\n\n constructor() {\n injectDescribedBy(this.for, this.resolvedId);\n effect((onCleanup) => {\n const subscription = this.control()?.events.subscribe(() => this.version.update((value) => value + 1));\n onCleanup(() => subscription?.unsubscribe());\n });\n }\n\n private describe(key: string, error: unknown): string {\n const custom = this.messages()?.[key] ?? this.globalMessages?.[key];\n if (custom) {\n return interpolate(typeof custom === 'function' ? custom(error) : custom, error);\n }\n if (isObject(error) && typeof error['message'] === 'string') {\n return error['message'];\n }\n return interpolate(this.translations()[BUILT_IN_MESSAGES[key] ?? 'validationInvalid'], error);\n }\n}\n\nfunction isObject(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\nfunction interpolate(template: string, error: unknown): string {\n const params = isObject(error) ? error : {};\n return template.replace(/\\{(\\w+)\\}/g, (match, name: string) => (params[name] === undefined ? match : String(params[name])));\n}\n\nfunction hasValue(value: unknown): boolean {\n if (Array.isArray(value)) {\n return value.length > 0;\n }\n return value !== null && value !== undefined && String(value).trim() !== '';\n}\n","@if (shownError(); as text) {\n <div class=\"tx-field-message__row\" animate.enter=\"tx-field-message--enter\" animate.leave=\"tx-field-message--leave\">\n <span class=\"tx-field-message__inner\">\n <span class=\"tx-field-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"'exclamation-circle'\" />\n </span>\n <span class=\"tx-field-message__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text }}</span>\n </span>\n </div>\n} @else if (successShown()) {\n <div class=\"tx-field-message__row tx-field-message__row--success\" animate.enter=\"tx-field-message--enter\" animate.leave=\"tx-field-message--leave\">\n <span class=\"tx-field-message__inner\">\n <span class=\"tx-field-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"'check-circle'\" />\n </span>\n <span class=\"tx-field-message__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ successText() }}</span>\n </span>\n </div>\n}\n"],"mappings":";;;;;;;;;AAGA,IAAa,wBAAb,MAAa,sBAAqB;CACvB,cAAc,OAAO,WAAW;CAD9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAqB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAArB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAqB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAArB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAqB,YAAA,CAAA;EADjC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,6BAA4B,CAAE;;;AAMrD,IAAa,6BAAb,MAAa,2BAA0B;CAC5B,cAAc,OAAO,WAAW;CAD9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAA0B,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAA1B,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAA0B,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAA1B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA0B,YAAA,CAAA;EADtC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,kCAAiC,CAAE;;;ACsB1D,IAAa,YAAb,MAAa,UAAS;CACZ,iBAAiB,OAAO,cAAc;CAErC,WAAW,MAAyB,QAAO,GAAA,YAAA,CAAA,EAAA,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AAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,QAAQ;IACR,sBAAsB;IACtB,qBAAqB;IACrB,aAAa;GACd;GAAA,UAAA;GAAA,QAAA,CAAA,qkDAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4EH,SAAS,SAAS,OAAc;CAC9B,OAAO,OAAO,UAAU,YAAY,UAAU;AAChD;AAEA,SAAS,YAAY,UAAkB,OAAc;CACnD,MAAM,SAAS,SAAS,KAAK,IAAI,QAAQ,CAAA;CACzC,OAAO,SAAS,QAAQ,eAAe,OAAO,SAAkB,OAAO,UAAU,SAAY,QAAQ,OAAO,OAAO,KAAK,CAAE;AAC5H;AAEA,SAAS,SAAS,OAAc;CAC9B,IAAI,MAAM,QAAQ,KAAK,GACrB,OAAO,MAAM,SAAS;CAExB,OAAO,UAAU,QAAQ,UAAU,UAAa,OAAO,KAAK,CAAC,CAAC,KAAI,MAAO;AAC3E"}
1
+ {"version":3,"file":"tectra-ng-ui-message.mjs","names":[],"sources":["../../../../packages/ui/message/src/message-templates.directive.ts","../../../../packages/ui/message/src/message.component.ts","../../../../packages/ui/message/src/message.component.html","../../../../packages/ui/message/src/field-hint.component.ts","../../../../packages/ui/message/src/field-error.component.ts","../../../../packages/ui/message/src/field-error.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({ selector: 'ng-template[txMessageIcon]' })\nexport class TxMessageIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txMessageCloseIcon]' })\nexport class TxMessageCloseIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, booleanAttribute, computed, contentChild, effect, inject, input, output, signal } 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 { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraMessageTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxMessageCloseIconTemplate, TxMessageIconTemplate } from './message-templates.directive';\nimport { TxMessagePart, TxMessageSeverity, TxMessageSize, TxMessageVariant } from './message.types';\n\n@Component({\n selector: 'tx-message',\n imports: [NgTemplateOutlet, TxIcon],\n templateUrl: './message.component.html',\n styleUrl: './message.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-message',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'variant() ?? null',\n '[attr.role]': 'role()',\n '[class.tx-message--closing]': 'isClosing()',\n '(animationend)': 'onAnimationEnd($event)',\n },\n})\nexport class TxMessage {\n private txIconRegistry = inject(TxIconRegistry);\n\n readonly severity = input<TxMessageSeverity>('info');\n readonly text = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly size = input<TxMessageSize>('medium');\n readonly variant = input<TxMessageVariant | undefined>(undefined);\n readonly closable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly closeIcon = input<TxIconName | (string & {})>('times');\n readonly life = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraMessageTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxMessagePart, TxMessage> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly closed = output<void>();\n\n readonly iconTemplate = contentChild(TxMessageIconTemplate);\n readonly closeIconTemplate = contentChild(TxMessageCloseIconTemplate);\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('message', this, this.pt, this.ptOptions);\n\n readonly isClosing = signal(false);\n readonly isClosed = signal(false);\n\n readonly role = computed(() => (this.severity() === 'danger' || this.severity() === 'warn' ? 'alert' : 'status'));\n readonly hasIcon = computed(() => !!this.icon() || !!this.iconTemplate());\n readonly iconName = computed(() => this.registered(this.icon()));\n readonly closeIconName = computed(() => this.registered(this.closeIcon()));\n readonly hostStyle = computed(() => ({\n ...toStyleObject(this.dt(), '--tx-message'),\n ...this.passThrough().root?.style,\n ...(this.isClosed() ? { display: 'none' } : {}),\n }));\n\n constructor() {\n effect((onCleanup) => {\n const life = this.life();\n if (life && life > 0) {\n const timer = setTimeout(() => this.close(), life);\n onCleanup(() => clearTimeout(timer));\n }\n });\n }\n\n close(): void {\n if (this.isClosing() || this.isClosed()) {\n return;\n }\n if (this.isUnstyled()) {\n this.finishClose();\n return;\n }\n this.isClosing.set(true);\n }\n\n onAnimationEnd(event: AnimationEvent): void {\n if (this.isClosing() && event.animationName.includes('tx-message-out')) {\n this.finishClose();\n }\n }\n\n private finishClose(): void {\n this.isClosing.set(false);\n this.isClosed.set(true);\n this.closed.emit();\n }\n\n private registered(icon: string | undefined): string | null {\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n }\n}\n","@if (hasIcon()) {\n <span class=\"tx-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon()\"></span>\n }\n </span>\n}\n<div class=\"tx-message__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n @if (text()) {\n {{ text() }}\n } @else {\n <ng-content />\n }\n</div>\n@if (closable()) {\n <button\n type=\"button\"\n class=\"tx-message__close\"\n [class]=\"passThrough().closeButton?.class\"\n [style]=\"passThrough().closeButton?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"close()\"\n >\n @if (closeIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (closeIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"closeIcon()\" aria-hidden=\"true\"></span>\n }\n </button>\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { injectDescribedBy, uniqueId } from '@tectra-ng/core/a11y';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraFieldMessageTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxFieldHintSeverity, TxFieldMessagePart } from './message.types';\n\n@Component({\n selector: 'tx-field-hint',\n imports: [TxIcon],\n template: `\n @if (icon(); as icon) {\n <span class=\"tx-field-message__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 class=\"tx-field-message__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\"><ng-content /></span>\n `,\n styleUrl: './field-message.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-field-message tx-field-hint',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[id]': 'resolvedId()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n },\n})\nexport class TxFieldHint {\n private txIconRegistry = inject(TxIconRegistry);\n private generatedId = uniqueId('tx-field-hint');\n\n readonly for = input<string | undefined>(undefined);\n readonly id = input<string | undefined>(undefined);\n readonly severity = input<TxFieldHintSeverity>('secondary');\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraFieldMessageTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFieldMessagePart, TxFieldHint> | 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('fieldHint', this, this.pt, this.ptOptions);\n readonly resolvedId = computed(() => this.id() ?? this.generatedId);\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-field-message'), ...this.passThrough().root?.style }));\n\n constructor() {\n injectDescribedBy(this.for, this.resolvedId);\n }\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, effect, inject, input, signal } from '@angular/core';\nimport { AbstractControl } from '@angular/forms';\nimport { injectDescribedBy, uniqueId } from '@tectra-ng/core/a11y';\nimport {\n TECTRA_CONFIG,\n TxPassThrough,\n TxPassThroughOptions,\n TxTranslations,\n TxValidationMessages,\n injectPassThrough,\n injectUnstyled,\n} from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraFieldMessageTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxFieldMessagePart } from './message.types';\n\nconst BUILT_IN_MESSAGES: Record<string, keyof TxTranslations> = {\n required: 'validationRequired',\n email: 'validationEmail',\n minlength: 'validationMinlength',\n maxlength: 'validationMaxlength',\n min: 'validationMin',\n max: 'validationMax',\n pattern: 'validationPattern',\n invalidCodeFormat: 'validationCodeFormat',\n invalidDate: 'validationDate',\n pastDate: 'validationPastDate',\n invalidUrl: 'validationUrl',\n weakPassword: 'validationWeakPassword',\n mismatch: 'validationMismatch',\n passwordMismatch: 'validationPasswordMismatch',\n distinctControls: 'validationDistinct',\n invalidIp: 'validationIp',\n invalidDomain: 'validationDomain',\n duplicate: 'validationDuplicate',\n invalidTime: 'validationTime',\n invalidJson: 'validationJson',\n valueMismatch: 'validationValueMismatch',\n sumExceeded: 'validationSumExceeded',\n priceFormat: 'validationPriceFormat',\n pricePositive: 'validationPricePositive',\n};\n\n@Component({\n selector: 'tx-field-error',\n imports: [TxIcon],\n templateUrl: './field-error.component.html',\n styleUrl: './field-message.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-field-message tx-field-error',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[id]': 'resolvedId()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-state]': 'state()',\n 'aria-live': 'polite',\n },\n})\nexport class TxFieldError {\n private generatedId = uniqueId('tx-field-error');\n private globalMessages = inject(TECTRA_CONFIG, { optional: true })?.validationMessages;\n private translations = injectTranslations();\n private readonly version = signal(0);\n\n readonly control = input<AbstractControl | undefined>(undefined);\n readonly errorText = input<string | undefined>(undefined);\n readonly showImmediately = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly successText = input<string | undefined>(undefined);\n readonly messages = input<TxValidationMessages | undefined>(undefined);\n readonly for = input<string | undefined>(undefined);\n readonly id = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraFieldMessageTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFieldMessagePart, TxFieldError> | 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('fieldError', this, this.pt, this.ptOptions);\n readonly resolvedId = computed(() => this.id() ?? this.generatedId);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-field-message'), ...this.passThrough().root?.style }));\n\n readonly errorKey = computed(() => {\n this.version();\n return Object.keys(this.control()?.errors ?? {})[0] ?? null;\n });\n readonly shownError = computed(() => {\n this.version();\n const external = this.errorText();\n if (external) {\n return external;\n }\n const control = this.control();\n const key = this.errorKey();\n if (!control || !key || !(this.showImmediately() || control.touched || control.dirty)) {\n return null;\n }\n return this.describe(key, control.errors?.[key]);\n });\n readonly successShown = computed(() => {\n this.version();\n const control = this.control();\n return (\n !!control &&\n !!this.successText() &&\n !this.shownError() &&\n control.valid &&\n hasValue(control.value) &&\n (control.touched || control.dirty)\n );\n });\n readonly state = computed(() => (this.shownError() ? 'error' : this.successShown() ? 'success' : null));\n\n constructor() {\n injectDescribedBy(this.for, this.resolvedId);\n effect((onCleanup) => {\n const subscription = this.control()?.events.subscribe(() => this.version.update((value) => value + 1));\n onCleanup(() => subscription?.unsubscribe());\n });\n }\n\n private describe(key: string, error: unknown): string {\n const custom = this.messages()?.[key] ?? this.globalMessages?.[key];\n if (custom) {\n return interpolate(typeof custom === 'function' ? custom(error) : custom, error);\n }\n if (isObject(error) && typeof error['message'] === 'string') {\n return error['message'];\n }\n return interpolate(this.translations()[BUILT_IN_MESSAGES[key] ?? 'validationInvalid'], error);\n }\n}\n\nfunction isObject(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\nfunction interpolate(template: string, error: unknown): string {\n const params = isObject(error) ? error : {};\n return template.replace(/\\{(\\w+)\\}/g, (match, name: string) => (params[name] === undefined ? match : String(params[name])));\n}\n\nfunction hasValue(value: unknown): boolean {\n if (Array.isArray(value)) {\n return value.length > 0;\n }\n return value !== null && value !== undefined && String(value).trim() !== '';\n}\n","@if (shownError(); as text) {\n <div class=\"tx-field-message__row\" animate.enter=\"tx-field-message--enter\" animate.leave=\"tx-field-message--leave\">\n <span class=\"tx-field-message__inner\">\n <span class=\"tx-field-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"'exclamation-circle'\" />\n </span>\n <span class=\"tx-field-message__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text }}</span>\n </span>\n </div>\n} @else if (successShown()) {\n <div class=\"tx-field-message__row tx-field-message__row--success\" animate.enter=\"tx-field-message--enter\" animate.leave=\"tx-field-message--leave\">\n <span class=\"tx-field-message__inner\">\n <span class=\"tx-field-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"'check-circle'\" />\n </span>\n <span class=\"tx-field-message__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ successText() }}</span>\n </span>\n </div>\n}\n"],"mappings":";;;;;;;;;AAGA,IAAa,wBAAb,MAAa,sBAAqB;CACvB,cAAc,OAAO,WAAW;CAD9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAqB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAArB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAqB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAArB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAqB,YAAA,CAAA;EADjC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,6BAA4B,CAAE;;;AAMrD,IAAa,6BAAb,MAAa,2BAA0B;CAC5B,cAAc,OAAO,WAAW;CAD9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAA0B,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAA1B,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;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ular/core";
2
2
  import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, booleanAttribute, computed, inject, input, output, signal, viewChild } from "@angular/core";
3
3
  import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
4
4
  import { injectTranslations } from "@tectra-ng/core/i18n";
5
- import { optionalBoolean } from "@tectra-ng/core/utils";
5
+ import { optionalBoolean, optionalNumber } from "@tectra-ng/core/utils";
6
6
  import { TxIcon, TxIconRegistry } from "@tectra-ng/icons";
7
7
  import { toStyleObject } from "@tectra-ng/themes";
8
+ import { NgTemplateOutlet } from "@angular/common";
9
+ import { TxPopover, TxPopoverContent, TxPopoverTrigger } from "@tectra-ng/ui/popover";
10
+ import { TxTooltip } from "@tectra-ng/ui/tooltip";
8
11
  const COPIED_FOR = 1500;
9
12
  var TxTag = class TxTag {
10
13
  txIconRegistry = inject(TxIconRegistry);
@@ -211,7 +214,7 @@ var TxTag = class TxTag {
211
214
  [title]="isCopied() ? translations().copied : translations().copy"
212
215
  (click)="copy()"
213
216
  >
214
- <tx-icon [name]="isCopied() ? 'check' : 'copy'" />
217
+ <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>
215
218
  </button>
216
219
  }
217
220
  @if (removable()) {
@@ -231,7 +234,7 @@ var TxTag = class TxTag {
231
234
  }
232
235
  `,
233
236
  isInline: true,
234
- styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-tag__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-tag__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-tag-primary-color);--_background: var(--tx-tag-primary-background);flex-shrink:0;gap:var(--tx-tag-gap);box-sizing:border-box;padding:var(--tx-tag-padding-y) var(--tx-tag-padding-x);border-radius:var(--tx-tag-border-radius);background:color-mix(in srgb,var(--_background) var(--tx-tag-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-tag-font-size);font-weight:var(--tx-tag-font-weight);line-height:var(--tx-tag-line-height)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-tag-secondary-color);--_background: var(--tx-tag-secondary-background)}:host([data-styled][data-severity=success]){--_tone: var(--tx-tag-success-color);--_background: var(--tx-tag-success-background)}:host([data-styled][data-severity=info]){--_tone: var(--tx-tag-info-color);--_background: var(--tx-tag-info-background)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-tag-warn-color);--_background: var(--tx-tag-warn-background)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-tag-danger-color);--_background: var(--tx-tag-danger-background)}:host([data-styled][data-severity=help]){--_tone: var(--tx-tag-help-color);--_background: var(--tx-tag-help-background)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-tag-contrast-color);--_background: var(--tx-tag-contrast-background)}:host([data-styled][data-size=small]){padding:var(--tx-tag-sm-padding-y) var(--tx-tag-sm-padding-x);font-size:var(--tx-tag-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-tag-lg-padding-y) var(--tx-tag-lg-padding-x);font-size:var(--tx-tag-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-tag-lg-gap)}:host([data-styled].tx-tag--rounded){border-radius:var(--tx-tag-rounded-border-radius)}:host([data-styled]) .tx-tag__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-tag-icon-size)}:host([data-styled]) .tx-tag__action{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-tag-action-size);height:var(--tx-tag-action-size);margin-inline-end:-3px;padding:0;border:none;border-radius:var(--tx-radius-xs);background:transparent;color:inherit;font-size:.85em;opacity:.75;cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),opacity var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-tag__action:hover{background:color-mix(in srgb,currentColor 16%,transparent);opacity:1}:host([data-styled]) .tx-tag__action:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:1px;opacity:1}:host([data-styled]) .tx-tag__action+.tx-tag__action{margin-inline-start:-2px}:host([data-styled]) .tx-tag__copy--done{opacity:1}\n"],
237
+ styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-tag__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-tag__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-tag-primary-color);--_background: var(--tx-tag-primary-background);flex-shrink:0;gap:var(--tx-tag-gap);box-sizing:border-box;padding:var(--tx-tag-padding-y) var(--tx-tag-padding-x);border-radius:var(--tx-tag-border-radius);background:color-mix(in srgb,var(--_background) var(--tx-tag-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-tag-font-size);font-weight:var(--tx-tag-font-weight);line-height:var(--tx-tag-line-height)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-tag-secondary-color);--_background: var(--tx-tag-secondary-background)}:host([data-styled][data-severity=success]){--_tone: var(--tx-tag-success-color);--_background: var(--tx-tag-success-background)}:host([data-styled][data-severity=info]){--_tone: var(--tx-tag-info-color);--_background: var(--tx-tag-info-background)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-tag-warn-color);--_background: var(--tx-tag-warn-background)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-tag-danger-color);--_background: var(--tx-tag-danger-background)}:host([data-styled][data-severity=help]){--_tone: var(--tx-tag-help-color);--_background: var(--tx-tag-help-background)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-tag-contrast-color);--_background: var(--tx-tag-contrast-background)}:host([data-styled][data-size=small]){padding:var(--tx-tag-sm-padding-y) var(--tx-tag-sm-padding-x);font-size:var(--tx-tag-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-tag-lg-padding-y) var(--tx-tag-lg-padding-x);font-size:var(--tx-tag-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-tag-lg-gap)}:host([data-styled].tx-tag--rounded){border-radius:var(--tx-tag-rounded-border-radius)}:host([data-styled]) .tx-tag__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-tag-icon-size)}:host([data-styled]) .tx-tag__action{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-tag-action-size);height:var(--tx-tag-action-size);margin-inline-end:-3px;padding:0;border:none;border-radius:var(--tx-radius-xs);background:transparent;color:inherit;font-size:.85em;opacity:.75;cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),opacity var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-tag__action:hover{background:color-mix(in srgb,currentColor 16%,transparent);opacity:1}:host([data-styled]) .tx-tag__action:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:1px;opacity:1}:host([data-styled]) .tx-tag__action+.tx-tag__action{margin-inline-start:-2px}:host([data-styled]) .tx-tag__copy--done{opacity:1}.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"],
235
238
  dependencies: [{
236
239
  kind: "component",
237
240
  type: TxIcon,
@@ -273,7 +276,7 @@ i0.ɵɵngDeclareClassMetadata({
273
276
  [title]="isCopied() ? translations().copied : translations().copy"
274
277
  (click)="copy()"
275
278
  >
276
- <tx-icon [name]="isCopied() ? 'check' : 'copy'" />
279
+ <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>
277
280
  </button>
278
281
  }
279
282
  @if (removable()) {
@@ -302,7 +305,7 @@ i0.ɵɵngDeclareClassMetadata({
302
305
  "[attr.data-size]": "resolvedSize()",
303
306
  "[class.tx-tag--rounded]": "rounded()"
304
307
  },
305
- styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-tag__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-tag__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-tag-primary-color);--_background: var(--tx-tag-primary-background);flex-shrink:0;gap:var(--tx-tag-gap);box-sizing:border-box;padding:var(--tx-tag-padding-y) var(--tx-tag-padding-x);border-radius:var(--tx-tag-border-radius);background:color-mix(in srgb,var(--_background) var(--tx-tag-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-tag-font-size);font-weight:var(--tx-tag-font-weight);line-height:var(--tx-tag-line-height)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-tag-secondary-color);--_background: var(--tx-tag-secondary-background)}:host([data-styled][data-severity=success]){--_tone: var(--tx-tag-success-color);--_background: var(--tx-tag-success-background)}:host([data-styled][data-severity=info]){--_tone: var(--tx-tag-info-color);--_background: var(--tx-tag-info-background)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-tag-warn-color);--_background: var(--tx-tag-warn-background)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-tag-danger-color);--_background: var(--tx-tag-danger-background)}:host([data-styled][data-severity=help]){--_tone: var(--tx-tag-help-color);--_background: var(--tx-tag-help-background)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-tag-contrast-color);--_background: var(--tx-tag-contrast-background)}:host([data-styled][data-size=small]){padding:var(--tx-tag-sm-padding-y) var(--tx-tag-sm-padding-x);font-size:var(--tx-tag-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-tag-lg-padding-y) var(--tx-tag-lg-padding-x);font-size:var(--tx-tag-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-tag-lg-gap)}:host([data-styled].tx-tag--rounded){border-radius:var(--tx-tag-rounded-border-radius)}:host([data-styled]) .tx-tag__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-tag-icon-size)}:host([data-styled]) .tx-tag__action{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-tag-action-size);height:var(--tx-tag-action-size);margin-inline-end:-3px;padding:0;border:none;border-radius:var(--tx-radius-xs);background:transparent;color:inherit;font-size:.85em;opacity:.75;cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),opacity var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-tag__action:hover{background:color-mix(in srgb,currentColor 16%,transparent);opacity:1}:host([data-styled]) .tx-tag__action:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:1px;opacity:1}:host([data-styled]) .tx-tag__action+.tx-tag__action{margin-inline-start:-2px}:host([data-styled]) .tx-tag__copy--done{opacity:1}\n"]
308
+ styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-tag__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-tag__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-tag-primary-color);--_background: var(--tx-tag-primary-background);flex-shrink:0;gap:var(--tx-tag-gap);box-sizing:border-box;padding:var(--tx-tag-padding-y) var(--tx-tag-padding-x);border-radius:var(--tx-tag-border-radius);background:color-mix(in srgb,var(--_background) var(--tx-tag-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-tag-font-size);font-weight:var(--tx-tag-font-weight);line-height:var(--tx-tag-line-height)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-tag-secondary-color);--_background: var(--tx-tag-secondary-background)}:host([data-styled][data-severity=success]){--_tone: var(--tx-tag-success-color);--_background: var(--tx-tag-success-background)}:host([data-styled][data-severity=info]){--_tone: var(--tx-tag-info-color);--_background: var(--tx-tag-info-background)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-tag-warn-color);--_background: var(--tx-tag-warn-background)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-tag-danger-color);--_background: var(--tx-tag-danger-background)}:host([data-styled][data-severity=help]){--_tone: var(--tx-tag-help-color);--_background: var(--tx-tag-help-background)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-tag-contrast-color);--_background: var(--tx-tag-contrast-background)}:host([data-styled][data-size=small]){padding:var(--tx-tag-sm-padding-y) var(--tx-tag-sm-padding-x);font-size:var(--tx-tag-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-tag-lg-padding-y) var(--tx-tag-lg-padding-x);font-size:var(--tx-tag-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-tag-lg-gap)}:host([data-styled].tx-tag--rounded){border-radius:var(--tx-tag-rounded-border-radius)}:host([data-styled]) .tx-tag__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-tag-icon-size)}:host([data-styled]) .tx-tag__action{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-tag-action-size);height:var(--tx-tag-action-size);margin-inline-end:-3px;padding:0;border:none;border-radius:var(--tx-radius-xs);background:transparent;color:inherit;font-size:.85em;opacity:.75;cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),opacity var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-tag__action:hover{background:color-mix(in srgb,currentColor 16%,transparent);opacity:1}:host([data-styled]) .tx-tag__action:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:1px;opacity:1}:host([data-styled]) .tx-tag__action+.tx-tag__action{margin-inline-start:-2px}:host([data-styled]) .tx-tag__copy--done{opacity:1}.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"]
306
309
  }]
307
310
  }],
308
311
  ctorParameters: () => [],
@@ -417,6 +420,392 @@ i0.ɵɵngDeclareClassMetadata({
417
420
  }]
418
421
  }
419
422
  });
420
- export { TxTag };
423
+ var TxTagList = class TxTagList {
424
+ tags = input([], ...ngDevMode ? [{ debugName: "tags" }] : /* istanbul ignore next */ []);
425
+ limit = input(void 0, {
426
+ ...ngDevMode ? { debugName: "limit" } : /* istanbul ignore next */ {},
427
+ transform: optionalNumber
428
+ });
429
+ severity = input("secondary", ...ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []);
430
+ size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
431
+ rounded = input(false, {
432
+ ...ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {},
433
+ transform: booleanAttribute
434
+ });
435
+ emptyText = input("-", ...ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []);
436
+ moreLabel = input(void 0, ...ngDevMode ? [{ debugName: "moreLabel" }] : /* istanbul ignore next */ []);
437
+ ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
438
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
439
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
440
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
441
+ unstyled = input(void 0, {
442
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
443
+ transform: optionalBoolean
444
+ });
445
+ isUnstyled = injectUnstyled(this.unstyled);
446
+ passThrough = injectPassThrough("tagList", this, this.pt, this.ptOptions);
447
+ t = injectTranslations();
448
+ all = computed(() => this.tags() ?? [], ...ngDevMode ? [{ debugName: "all" }] : /* istanbul ignore next */ []);
449
+ visible = computed(() => {
450
+ const limit = this.limit();
451
+ return limit && limit > 0 ? this.all().slice(0, limit) : this.all();
452
+ }, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
453
+ hidden = computed(() => {
454
+ const limit = this.limit();
455
+ return limit && limit > 0 ? this.all().slice(limit) : [];
456
+ }, ...ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []);
457
+ moreText = computed(() => this.moreLabel() ?? this.t().moreItems.replace("{count}", String(this.hidden().length)), ...ngDevMode ? [{ debugName: "moreText" }] : /* istanbul ignore next */ []);
458
+ hostStyle = computed(() => ({
459
+ ...toStyleObject(this.dt(), "--tx-tag"),
460
+ ...this.passThrough().root?.style
461
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
462
+ static ɵfac = i0.ɵɵngDeclareFactory({
463
+ minVersion: "12.0.0",
464
+ version: "22.2.3",
465
+ ngImport: i0,
466
+ type: TxTagList,
467
+ deps: [],
468
+ target: i0.ɵɵFactoryTarget.Component
469
+ });
470
+ static ɵcmp = i0.ɵɵngDeclareComponent({
471
+ minVersion: "17.0.0",
472
+ version: "22.2.3",
473
+ type: TxTagList,
474
+ isStandalone: true,
475
+ selector: "tx-tag-list",
476
+ inputs: {
477
+ tags: {
478
+ classPropertyName: "tags",
479
+ publicName: "tags",
480
+ isSignal: true,
481
+ isRequired: false,
482
+ transformFunction: null
483
+ },
484
+ limit: {
485
+ classPropertyName: "limit",
486
+ publicName: "limit",
487
+ isSignal: true,
488
+ isRequired: false,
489
+ transformFunction: null
490
+ },
491
+ severity: {
492
+ classPropertyName: "severity",
493
+ publicName: "severity",
494
+ isSignal: true,
495
+ isRequired: false,
496
+ transformFunction: null
497
+ },
498
+ size: {
499
+ classPropertyName: "size",
500
+ publicName: "size",
501
+ isSignal: true,
502
+ isRequired: false,
503
+ transformFunction: null
504
+ },
505
+ rounded: {
506
+ classPropertyName: "rounded",
507
+ publicName: "rounded",
508
+ isSignal: true,
509
+ isRequired: false,
510
+ transformFunction: null
511
+ },
512
+ emptyText: {
513
+ classPropertyName: "emptyText",
514
+ publicName: "emptyText",
515
+ isSignal: true,
516
+ isRequired: false,
517
+ transformFunction: null
518
+ },
519
+ moreLabel: {
520
+ classPropertyName: "moreLabel",
521
+ publicName: "moreLabel",
522
+ isSignal: true,
523
+ isRequired: false,
524
+ transformFunction: null
525
+ },
526
+ ariaLabel: {
527
+ classPropertyName: "ariaLabel",
528
+ publicName: "ariaLabel",
529
+ isSignal: true,
530
+ isRequired: false,
531
+ transformFunction: null
532
+ },
533
+ dt: {
534
+ classPropertyName: "dt",
535
+ publicName: "dt",
536
+ isSignal: true,
537
+ isRequired: false,
538
+ transformFunction: null
539
+ },
540
+ pt: {
541
+ classPropertyName: "pt",
542
+ publicName: "pt",
543
+ isSignal: true,
544
+ isRequired: false,
545
+ transformFunction: null
546
+ },
547
+ ptOptions: {
548
+ classPropertyName: "ptOptions",
549
+ publicName: "ptOptions",
550
+ isSignal: true,
551
+ isRequired: false,
552
+ transformFunction: null
553
+ },
554
+ unstyled: {
555
+ classPropertyName: "unstyled",
556
+ publicName: "unstyled",
557
+ isSignal: true,
558
+ isRequired: false,
559
+ transformFunction: null
560
+ }
561
+ },
562
+ host: {
563
+ attributes: { "role": "list" },
564
+ properties: {
565
+ "class": "passThrough().root?.class",
566
+ "style": "hostStyle()",
567
+ "attr.data-styled": "!isUnstyled() || null",
568
+ "attr.aria-label": "ariaLabel() ?? null",
569
+ "class.tx-tag-list--empty": "!all().length"
570
+ },
571
+ classAttribute: "tx-tag-list"
572
+ },
573
+ ngImport: i0,
574
+ template: "<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",
575
+ styles: [":host{display:inline-flex;align-items:center;min-width:0}.tx-tag-list__item{display:inline-flex;flex:none}.tx-tag-list__more{display:inline-flex;padding:0;border:none;background:none;font:inherit;cursor:pointer}:host([data-styled]){gap:var(--tx-tag-list-gap)}:host([data-styled]) .tx-tag-list__item{white-space:nowrap}:host([data-styled]) .tx-tag-list__more{border-radius:var(--tx-tag-border-radius)}:host([data-styled]) .tx-tag-list__more:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-tag-list__empty{color:var(--tx-tag-list-empty-color)}.tx-tag-list__popover[data-styled]{display:flex;flex-wrap:wrap;gap:var(--tx-tag-list-popover-gap);max-width:var(--tx-tag-list-popover-max-width);max-height:var(--tx-tag-list-popover-max-height);padding:var(--tx-tag-list-popover-padding);overflow-y:auto}\n"],
576
+ dependencies: [
577
+ {
578
+ kind: "directive",
579
+ type: NgTemplateOutlet,
580
+ selector: "[ngTemplateOutlet]",
581
+ inputs: [
582
+ "ngTemplateOutletContext",
583
+ "ngTemplateOutlet",
584
+ "ngTemplateOutletInjector"
585
+ ]
586
+ },
587
+ {
588
+ kind: "component",
589
+ type: TxTag,
590
+ selector: "tx-tag",
591
+ inputs: [
592
+ "value",
593
+ "severity",
594
+ "size",
595
+ "rounded",
596
+ "icon",
597
+ "copyable",
598
+ "removable",
599
+ "removeLabel",
600
+ "dt",
601
+ "pt",
602
+ "ptOptions",
603
+ "unstyled"
604
+ ],
605
+ outputs: ["copied", "removed"]
606
+ },
607
+ {
608
+ kind: "directive",
609
+ type: TxTooltip,
610
+ selector: "[txTooltip]",
611
+ inputs: [
612
+ "txTooltip",
613
+ "tooltipPlacement",
614
+ "tooltipEvent",
615
+ "tooltipShowDelay",
616
+ "tooltipHideDelay",
617
+ "tooltipLife",
618
+ "tooltipOffset",
619
+ "tooltipArrow",
620
+ "tooltipInteractive",
621
+ "tooltipDisabled",
622
+ "tooltipOverflowOnly",
623
+ "tooltipMultiline",
624
+ "tooltipContext",
625
+ "tooltipClass",
626
+ "tooltipDt",
627
+ "tooltipPt",
628
+ "tooltipPtOptions",
629
+ "tooltipUnstyled"
630
+ ],
631
+ outputs: ["tooltipShown", "tooltipHidden"],
632
+ exportAs: ["txTooltip"]
633
+ },
634
+ {
635
+ kind: "component",
636
+ type: TxPopover,
637
+ selector: "tx-popover",
638
+ inputs: [
639
+ "placement",
640
+ "offset",
641
+ "arrow",
642
+ "header",
643
+ "closeButton",
644
+ "dismissable",
645
+ "closeOnEscape",
646
+ "autoFocus",
647
+ "restoreFocus",
648
+ "scroll",
649
+ "ariaLabel",
650
+ "ariaLabelledBy",
651
+ "panelClass",
652
+ "open",
653
+ "dt",
654
+ "pt",
655
+ "ptOptions",
656
+ "unstyled"
657
+ ],
658
+ outputs: [
659
+ "openChange",
660
+ "opened",
661
+ "closed"
662
+ ]
663
+ },
664
+ {
665
+ kind: "directive",
666
+ type: TxPopoverContent,
667
+ selector: "ng-template[txPopoverContent]"
668
+ },
669
+ {
670
+ kind: "directive",
671
+ type: TxPopoverTrigger,
672
+ selector: "[txPopoverTrigger]",
673
+ inputs: ["txPopoverTrigger"]
674
+ }
675
+ ],
676
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
677
+ });
678
+ };
679
+ i0.ɵɵngDeclareClassMetadata({
680
+ minVersion: "12.0.0",
681
+ version: "22.2.3",
682
+ ngImport: i0,
683
+ type: TxTagList,
684
+ decorators: [{
685
+ type: Component,
686
+ args: [{
687
+ selector: "tx-tag-list",
688
+ imports: [
689
+ NgTemplateOutlet,
690
+ TxTag,
691
+ TxTooltip,
692
+ TxPopover,
693
+ TxPopoverContent,
694
+ TxPopoverTrigger
695
+ ],
696
+ changeDetection: ChangeDetectionStrategy.OnPush,
697
+ host: {
698
+ class: "tx-tag-list",
699
+ role: "list",
700
+ "[class]": "passThrough().root?.class",
701
+ "[style]": "hostStyle()",
702
+ "[attr.data-styled]": "!isUnstyled() || null",
703
+ "[attr.aria-label]": "ariaLabel() ?? null",
704
+ "[class.tx-tag-list--empty]": "!all().length"
705
+ },
706
+ template: "<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",
707
+ styles: [":host{display:inline-flex;align-items:center;min-width:0}.tx-tag-list__item{display:inline-flex;flex:none}.tx-tag-list__more{display:inline-flex;padding:0;border:none;background:none;font:inherit;cursor:pointer}:host([data-styled]){gap:var(--tx-tag-list-gap)}:host([data-styled]) .tx-tag-list__item{white-space:nowrap}:host([data-styled]) .tx-tag-list__more{border-radius:var(--tx-tag-border-radius)}:host([data-styled]) .tx-tag-list__more:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-tag-list__empty{color:var(--tx-tag-list-empty-color)}.tx-tag-list__popover[data-styled]{display:flex;flex-wrap:wrap;gap:var(--tx-tag-list-popover-gap);max-width:var(--tx-tag-list-popover-max-width);max-height:var(--tx-tag-list-popover-max-height);padding:var(--tx-tag-list-popover-padding);overflow-y:auto}\n"]
708
+ }]
709
+ }],
710
+ propDecorators: {
711
+ tags: [{
712
+ type: i0.Input,
713
+ args: [{
714
+ isSignal: true,
715
+ alias: "tags",
716
+ required: false
717
+ }]
718
+ }],
719
+ limit: [{
720
+ type: i0.Input,
721
+ args: [{
722
+ isSignal: true,
723
+ alias: "limit",
724
+ required: false
725
+ }]
726
+ }],
727
+ severity: [{
728
+ type: i0.Input,
729
+ args: [{
730
+ isSignal: true,
731
+ alias: "severity",
732
+ required: false
733
+ }]
734
+ }],
735
+ size: [{
736
+ type: i0.Input,
737
+ args: [{
738
+ isSignal: true,
739
+ alias: "size",
740
+ required: false
741
+ }]
742
+ }],
743
+ rounded: [{
744
+ type: i0.Input,
745
+ args: [{
746
+ isSignal: true,
747
+ alias: "rounded",
748
+ required: false
749
+ }]
750
+ }],
751
+ emptyText: [{
752
+ type: i0.Input,
753
+ args: [{
754
+ isSignal: true,
755
+ alias: "emptyText",
756
+ required: false
757
+ }]
758
+ }],
759
+ moreLabel: [{
760
+ type: i0.Input,
761
+ args: [{
762
+ isSignal: true,
763
+ alias: "moreLabel",
764
+ required: false
765
+ }]
766
+ }],
767
+ ariaLabel: [{
768
+ type: i0.Input,
769
+ args: [{
770
+ isSignal: true,
771
+ alias: "ariaLabel",
772
+ required: false
773
+ }]
774
+ }],
775
+ dt: [{
776
+ type: i0.Input,
777
+ args: [{
778
+ isSignal: true,
779
+ alias: "dt",
780
+ required: false
781
+ }]
782
+ }],
783
+ pt: [{
784
+ type: i0.Input,
785
+ args: [{
786
+ isSignal: true,
787
+ alias: "pt",
788
+ required: false
789
+ }]
790
+ }],
791
+ ptOptions: [{
792
+ type: i0.Input,
793
+ args: [{
794
+ isSignal: true,
795
+ alias: "ptOptions",
796
+ required: false
797
+ }]
798
+ }],
799
+ unstyled: [{
800
+ type: i0.Input,
801
+ args: [{
802
+ isSignal: true,
803
+ alias: "unstyled",
804
+ required: false
805
+ }]
806
+ }]
807
+ }
808
+ });
809
+ export { TxTag, TxTagList };
421
810
 
422
811
  //# sourceMappingURL=tectra-ng-ui-tag.mjs.map