@tectra-ng/ui 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/amount/README.md +19 -1
- package/analog-clock/README.md +1 -1
- package/autocomplete/README.md +1 -1
- package/avatar/README.md +24 -4
- package/cascade-select/README.md +1 -1
- package/chips-input/README.md +11 -5
- package/color-picker/README.md +5 -0
- package/countdown/README.md +7 -1
- package/country/README.md +14 -1
- package/country-select/README.md +2 -1
- package/export/README.md +27 -2
- package/export-font/README.md +1 -1
- package/fesm2022/tectra-ng-ui-amount.mjs +96 -14
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-analog-clock.mjs +6 -19
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +5 -4
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-avatar.mjs +59 -17
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-button.mjs +2 -2
- package/fesm2022/tectra-ng-ui-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-card.mjs +2 -2
- package/fesm2022/tectra-ng-ui-card.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +7 -4
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +142 -22
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +93 -6
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-countdown.mjs +39 -10
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country-select.mjs +28 -5
- package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country.mjs +15 -6
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-datepicker.mjs +10 -8
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-dialog.mjs +6 -6
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export.mjs +1237 -84
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs +1 -0
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-fieldset.mjs +2 -2
- package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-icon-field.mjs +51 -23
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-number.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input.mjs +5 -4
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-key-filter.mjs +84 -19
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-knob.mjs +24 -2
- package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-label.mjs +68 -9
- package/fesm2022/tectra-ng-ui-label.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-link.mjs +38 -14
- package/fesm2022/tectra-ng-ui-link.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs +16 -5
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-message.mjs +17 -7
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-month-calendar.mjs +26 -9
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-multiselect.mjs +3 -2
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +45 -14
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel.mjs +4 -2
- package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password-generator.mjs +18 -1
- package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password.mjs +2 -2
- package/fesm2022/tectra-ng-ui-password.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-pill.mjs +33 -17
- package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-rating.mjs +2 -2
- package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select.mjs +30 -7
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs +93 -8
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-status-icon.mjs +40 -3
- package/fesm2022/tectra-ng-ui-status-icon.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +20 -6
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tag.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toast.mjs +2 -2
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +10 -8
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +4 -4
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-truncate-text.mjs +33 -9
- package/fesm2022/tectra-ng-ui-truncate-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui.mjs +1 -1
- package/icon-field/README.md +2 -1
- package/key-filter/README.md +3 -2
- package/knob/README.md +3 -1
- package/label/README.md +4 -1
- package/link/README.md +4 -1
- package/message/README.md +3 -3
- package/month-calendar/README.md +2 -1
- package/multiselect/README.md +1 -1
- package/package.json +4 -4
- package/panel/README.md +3 -1
- package/panel-menu/README.md +3 -2
- package/password-generator/README.md +2 -0
- package/pill/README.md +4 -4
- package/select/README.md +1 -1
- package/stat-tiles/README.md +17 -1
- package/status-icon/README.md +3 -1
- package/table/README.md +1 -1
- package/tag/README.md +2 -0
- package/tree-select/README.md +1 -1
- package/truncate-text/README.md +2 -1
- package/types/tectra-ng-ui-amount.d.ts +41 -1
- package/types/tectra-ng-ui-amount.d.ts.map +1 -1
- package/types/tectra-ng-ui-analog-clock.d.ts +1 -4
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
- package/types/tectra-ng-ui-autocomplete.d.ts +1 -1
- package/types/tectra-ng-ui-avatar.d.ts +45 -12
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
- package/types/tectra-ng-ui-cascade-select.d.ts +3 -2
- package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-chips-input.d.ts +62 -6
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-color-picker.d.ts +38 -1
- package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
- package/types/tectra-ng-ui-countdown.d.ts +12 -1
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
- package/types/tectra-ng-ui-country-select.d.ts +17 -4
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-country.d.ts +7 -1
- package/types/tectra-ng-ui-country.d.ts.map +1 -1
- package/types/tectra-ng-ui-datepicker.d.ts +2 -2
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
- package/types/tectra-ng-ui-export.d.ts +68 -8
- package/types/tectra-ng-ui-export.d.ts.map +1 -1
- package/types/tectra-ng-ui-icon-field.d.ts +9 -2
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-key-filter.d.ts +19 -4
- package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
- package/types/tectra-ng-ui-knob.d.ts +10 -2
- package/types/tectra-ng-ui-knob.d.ts.map +1 -1
- package/types/tectra-ng-ui-label.d.ts +8 -1
- package/types/tectra-ng-ui-label.d.ts.map +1 -1
- package/types/tectra-ng-ui-link.d.ts +8 -2
- package/types/tectra-ng-ui-link.d.ts.map +1 -1
- package/types/tectra-ng-ui-mention-textarea.d.ts +5 -0
- package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +6 -3
- package/types/tectra-ng-ui-message.d.ts.map +1 -1
- package/types/tectra-ng-ui-month-calendar.d.ts +14 -4
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
- package/types/tectra-ng-ui-multiselect.d.ts +1 -1
- package/types/tectra-ng-ui-panel-menu.d.ts +34 -6
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel.d.ts +1 -1
- package/types/tectra-ng-ui-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-password-generator.d.ts +10 -3
- package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
- package/types/tectra-ng-ui-pill.d.ts +9 -5
- package/types/tectra-ng-ui-pill.d.ts.map +1 -1
- package/types/tectra-ng-ui-select.d.ts +5 -2
- package/types/tectra-ng-ui-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-stat-tiles.d.ts +49 -5
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
- package/types/tectra-ng-ui-status-icon.d.ts +20 -2
- package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +2 -1
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +3 -3
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-truncate-text.d.ts +7 -2
- package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
- package/types/tectra-ng-ui.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-knob.mjs","names":[],"sources":["../../../../packages/ui/knob/src/knob-templates.directive.ts","../../../../packages/ui/knob/src/knob.icons.ts","../../../../packages/ui/knob/src/knob.theme.ts","../../../../packages/ui/knob/src/knob.component.ts","../../../../packages/ui/knob/src/knob.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxKnobValueContext } from './knob.types';\n\n@Directive({ selector: 'ng-template[txKnobValue]' })\nexport class TxKnobValueTemplate {\n readonly templateRef = inject<TemplateRef<TxKnobValueContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxKnobValueTemplate, context: unknown): context is TxKnobValueContext {\n return !!context;\n }\n}\n","import { TxIconSet, txIconText } from '@tectra-ng/icons';\n\nexport const KNOB_ICON_DEFAULTS: TxIconSet = {\n text: txIconText,\n};\n","import { formFieldTokens, knobTokens } from '@tectra-ng/themes';\n\nexport const KNOB_THEME = {\n formField: formFieldTokens,\n knob: knobTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, computed, contentChild, forwardRef, inject, input, numberAttribute, output, signal, viewChild } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { TxLocaleService } from '@tectra-ng/core/i18n';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraKnobTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxKnobValueTemplate } from './knob-templates.directive';\nimport { TxKnobArc, TxKnobChangeEvent, TxKnobPart } from './knob.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { KNOB_ICON_DEFAULTS } from './knob.icons';\nimport { KNOB_THEME } from './knob.theme';\n\nconst CENTER = 50;\nconst TEXT_INSET = 12;\nconst CHAR_WIDTH = 0.62;\n\n@Component({\n selector: 'tx-knob',\n imports: [NgTemplateOutlet],\n templateUrl: './knob.component.html',\n styleUrl: './knob.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxKnob), multi: true }],\n host: {\n class: 'tx-knob',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-arc]': 'arc()',\n '[class.tx-knob--dragging]': 'isDragging()',\n '[class.tx-knob--disabled]': 'isDisabled()',\n '[class.tx-knob--readonly]': 'readonly()',\n '[class.tx-knob--invalid]': 'isInvalid()',\n },\n viewProviders: [provideTxIconDefaults(KNOB_ICON_DEFAULTS)],\n})\nexport class TxKnob extends TxFormControlBase<number> {\n private readonly knobTheme = injectTokens(KNOB_THEME);\n\n private localeService = inject(TxLocaleService);\n private lastFraction = 0;\n\n readonly min = input<number, unknown>(0, { transform: numberAttribute });\n readonly max = input<number, unknown>(100, { transform: numberAttribute });\n readonly step = input<number, unknown>(1, { transform: numberAttribute });\n readonly limit = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly size = input<number, unknown>(100, { transform: numberAttribute });\n readonly strokeWidth = input<number, unknown>(12, { transform: numberAttribute });\n readonly arc = input<TxKnobArc>('dial');\n readonly showValue = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showHandle = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly valueTemplate = input<string>('{value}');\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly disabledInput = input<boolean, unknown>(false, { alias: 'disabled', transform: booleanAttribute });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraKnobTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxKnobPart, TxKnob> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<TxKnobChangeEvent>();\n\n readonly template = contentChild(TxKnobValueTemplate);\n readonly svg = viewChild.required<ElementRef<SVGSVGElement>>('svg');\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly passThrough = injectPassThrough('knob', this, this.pt, this.ptOptions);\n\n readonly isDragging = signal(false);\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput());\n readonly isEditable = computed(() => !this.isDisabled() && !this.readonly());\n readonly ceiling = computed(() => Math.min(this.max(), this.limit() ?? this.max()));\n readonly current = computed(() => this.clamp(this.value() ?? this.min()));\n readonly radius = computed(() => CENTER - this.strokeWidth() / 2 - (this.hasHandle() ? 3 : 0));\n readonly sweep = computed(() => (this.arc() === 'ring' ? 360 : 270));\n readonly start = computed(() => (this.arc() === 'ring' ? -90 : 135));\n readonly span = computed(() => (this.sweep() / 360) * 100);\n readonly hasHandle = computed(() => this.showHandle() ?? this.arc() === 'ring');\n readonly fraction = computed(() => this.fractionOf(this.current()));\n readonly limitFraction = computed(() => (this.limit() === undefined ? 1 : this.fractionOf(this.ceiling())));\n readonly rotate = computed(() => `rotate(${this.start()} ${CENTER} ${CENTER})`);\n readonly valueDash = computed(() => `${this.fraction() * this.span()} 100`);\n readonly rangeDash = computed(() => `${this.span()} 100`);\n readonly limitDash = computed(() => `0 ${this.limitFraction() * this.span()} ${(1 - this.limitFraction()) * this.span()} 100`);\n readonly handle = computed(() => this.point(this.fraction()));\n readonly text = computed(() => this.valueTemplate().replace('{value}', this.localeService.formatNumber(this.current())));\n readonly textFit = computed(() => {\n const chars = Array.from(this.text()).length;\n if (this.template() || !chars) return null;\n const room = 2 * (this.radius() - this.strokeWidth() / 2) - TEXT_INSET;\n return Math.max(0, room / (chars * CHAR_WIDTH));\n });\n readonly hostStyle = computed(() => ({\n ...toStyleObject(this.dt(), '--tx-knob'),\n width: `${this.size()}px`,\n height: `${this.size()}px`,\n ...this.passThrough().root?.style,\n }));\n\n readonly center = CENTER;\n\n onPointerDown(event: PointerEvent): void {\n if (!this.isEditable() || event.button !== 0) {\n return;\n }\n event.preventDefault();\n (event.currentTarget as Element).setPointerCapture?.(event.pointerId);\n (event.currentTarget as HTMLElement).focus();\n this.isDragging.set(true);\n this.lastFraction = this.fraction();\n this.moveTo(event, true);\n }\n\n onPointerMove(event: PointerEvent): void {\n if (this.isDragging()) {\n this.moveTo(event, false);\n }\n }\n\n onPointerUp(): void {\n if (this.isDragging()) {\n this.isDragging.set(false);\n this.markTouched();\n }\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (!this.isEditable()) {\n return;\n }\n const value = this.current();\n const step = this.step();\n const moves: Record<string, number> = {\n ArrowRight: value + step,\n ArrowUp: value + step,\n ArrowLeft: value - step,\n ArrowDown: value - step,\n PageUp: value + step * 10,\n PageDown: value - step * 10,\n Home: this.min(),\n End: this.ceiling(),\n };\n if (event.key in moves) {\n event.preventDefault();\n this.commit(moves[event.key], event);\n }\n }\n\n onBlur(): void {\n this.markTouched();\n }\n\n private moveTo(event: PointerEvent, first: boolean): void {\n const rect = this.svg().nativeElement.getBoundingClientRect();\n if (!rect.width) {\n return;\n }\n const x = ((event.clientX - rect.left) / rect.width) * 100 - CENTER;\n const y = ((event.clientY - rect.top) / rect.height) * 100 - CENTER;\n const angle = (Math.atan2(y, x) * 180) / Math.PI;\n let relative = (angle - this.start() + 720) % 360;\n if (relative > this.sweep()) {\n relative = relative > this.sweep() + (360 - this.sweep()) / 2 ? 0 : this.sweep();\n }\n let fraction = relative / this.sweep();\n if (!first && this.arc() === 'ring' && Math.abs(fraction - this.lastFraction) > 0.5) {\n fraction = this.lastFraction > 0.5 ? 1 : 0;\n }\n this.lastFraction = fraction;\n this.commit(this.min() + fraction * (this.max() - this.min()), event);\n }\n\n private commit(raw: number, event: Event): void {\n const step = this.step();\n const snapped = Math.round((raw - this.min()) / step) * step + this.min();\n const value = Number(this.clamp(snapped).toFixed(decimals(step)));\n if (value !== this.value()) {\n this.updateValue(value);\n this.changed.emit({ value, originalEvent: event });\n }\n }\n\n private clamp(value: number): number {\n return Math.min(this.ceiling(), Math.max(this.min(), value));\n }\n\n private fractionOf(value: number): number {\n const range = this.max() - this.min();\n return range > 0 ? (value - this.min()) / range : 0;\n }\n\n private point(fraction: number): { x: number; y: number } {\n const angle = ((this.start() + fraction * this.sweep()) * Math.PI) / 180;\n return { x: CENTER + this.radius() * Math.cos(angle), y: CENTER + this.radius() * Math.sin(angle) };\n }\n}\n\nfunction decimals(value: number): number {\n const text = String(value);\n return text.includes('.') ? text.split('.')[1].length : 0;\n}\n","<div\n class=\"tx-knob__control\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"ceiling()\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuetext]=\"text()\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-disabled]=\"isDisabled() || null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp()\"\n (pointercancel)=\"onPointerUp()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n>\n <svg #svg class=\"tx-knob__svg\" viewBox=\"0 0 100 100\" aria-hidden=\"true\" [class]=\"passThrough().svg?.class\" [style]=\"passThrough().svg?.style\">\n <circle\n class=\"tx-knob__range\"\n pathLength=\"100\"\n fill=\"none\"\n [class]=\"passThrough().range?.class\"\n [style]=\"passThrough().range?.style\"\n [attr.cx]=\"center\"\n [attr.cy]=\"center\"\n [attr.r]=\"radius()\"\n [attr.stroke-width]=\"strokeWidth()\"\n [attr.stroke-dasharray]=\"rangeDash()\"\n [attr.transform]=\"rotate()\"\n />\n @if (limit() !== undefined && limitFraction() < 1) {\n <circle\n class=\"tx-knob__limit\"\n pathLength=\"100\"\n fill=\"none\"\n [attr.cx]=\"center\"\n [attr.cy]=\"center\"\n [attr.r]=\"radius()\"\n [attr.stroke-width]=\"strokeWidth()\"\n [attr.stroke-dasharray]=\"limitDash()\"\n [attr.transform]=\"rotate()\"\n />\n }\n @if (fraction() > 0) {\n <circle\n class=\"tx-knob__value\"\n pathLength=\"100\"\n fill=\"none\"\n [class]=\"passThrough().value?.class\"\n [style]=\"passThrough().value?.style\"\n [attr.cx]=\"center\"\n [attr.cy]=\"center\"\n [attr.r]=\"radius()\"\n [attr.stroke-width]=\"strokeWidth()\"\n [attr.stroke-dasharray]=\"valueDash()\"\n [attr.transform]=\"rotate()\"\n />\n }\n @if (hasHandle()) {\n <circle\n class=\"tx-knob__handle\"\n [class]=\"passThrough().handle?.class\"\n [style]=\"passThrough().handle?.style\"\n [attr.cx]=\"handle().x\"\n [attr.cy]=\"handle().y\"\n [attr.r]=\"strokeWidth() / 2 + 2\"\n />\n }\n </svg>\n @if (showValue()) {\n <span class=\"tx-knob__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\" [style.--_text-fit]=\"textFit()\">\n @if (template(); as custom) {\n <ng-container [ng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AA,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,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,mBAAmB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,KAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACS,OAAK,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AAuIpE,SAAS,SAAS,OAAa;CAC7B,MAAM,OAAO,OAAO,KAAK;CACzB,OAAO,KAAK,SAAS,GAAG,IAAI,KAAK,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,SAAS;AAC1D"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-knob.mjs","names":[],"sources":["../../../../packages/ui/knob/src/knob-templates.directive.ts","../../../../packages/ui/knob/src/knob.icons.ts","../../../../packages/ui/knob/src/knob.theme.ts","../../../../packages/ui/knob/src/knob.component.ts","../../../../packages/ui/knob/src/knob.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxKnobValueContext } from './knob.types';\n\n@Directive({ selector: 'ng-template[txKnobValue]' })\nexport class TxKnobValueTemplate {\n readonly templateRef = inject<TemplateRef<TxKnobValueContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxKnobValueTemplate, context: unknown): context is TxKnobValueContext {\n return !!context;\n }\n}\n","import { TxIconSet, txIconText } from '@tectra-ng/icons';\n\nexport const KNOB_ICON_DEFAULTS: TxIconSet = {\n text: txIconText,\n};\n","import { formFieldTokens, knobTokens } from '@tectra-ng/themes';\n\nexport const KNOB_THEME = {\n formField: formFieldTokens,\n knob: knobTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, computed, contentChild, forwardRef, inject, input, model, numberAttribute, output, signal, viewChild } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { TxLocaleService } from '@tectra-ng/core/i18n';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraKnobTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxKnobValueTemplate } from './knob-templates.directive';\nimport { TxKnobArc, TxKnobChangeEvent, TxKnobPart } from './knob.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { KNOB_ICON_DEFAULTS } from './knob.icons';\nimport { KNOB_THEME } from './knob.theme';\n\nconst CENTER = 50;\nconst TEXT_INSET = 12;\nconst CHAR_WIDTH = 0.62;\n\n/**\n * A value on a dial: drag along the ring or use the keyboard. A `ControlValueAccessor` — works with `[formControl]`,\n * `ngModel`, signal forms and `[(value)]`.\n */\n@Component({\n selector: 'tx-knob',\n imports: [NgTemplateOutlet],\n templateUrl: './knob.component.html',\n styleUrl: './knob.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxKnob), multi: true }],\n host: {\n class: 'tx-knob',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-arc]': 'arc()',\n '[class.tx-knob--dragging]': 'isDragging()',\n '[class.tx-knob--disabled]': 'isDisabled()',\n '[class.tx-knob--readonly]': 'readonly()',\n '[class.tx-knob--invalid]': 'isInvalid()',\n },\n viewProviders: [provideTxIconDefaults(KNOB_ICON_DEFAULTS)],\n})\nexport class TxKnob extends TxFormControlBase<number> {\n private readonly knobTheme = injectTokens(KNOB_THEME);\n\n private localeService = inject(TxLocaleService);\n private lastFraction = 0;\n\n override readonly value = model<number | null>(null);\n readonly min = input<number, unknown>(0, { transform: numberAttribute });\n readonly max = input<number, unknown>(100, { transform: numberAttribute });\n readonly step = input<number, unknown>(1, { transform: numberAttribute });\n readonly limit = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly size = input<number, unknown>(100, { transform: numberAttribute });\n readonly strokeWidth = input<number, unknown>(12, { transform: numberAttribute });\n readonly arc = input<TxKnobArc>('dial');\n readonly showValue = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showHandle = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly valueTemplate = input<string>('{value}');\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly disabledInput = input<boolean, unknown>(false, { alias: 'disabled', transform: booleanAttribute });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraKnobTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxKnobPart, TxKnob> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<TxKnobChangeEvent>();\n\n readonly template = contentChild(TxKnobValueTemplate);\n readonly svg = viewChild.required<ElementRef<SVGSVGElement>>('svg');\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly passThrough = injectPassThrough('knob', this, this.pt, this.ptOptions);\n\n readonly isDragging = signal(false);\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput());\n readonly isEditable = computed(() => !this.isDisabled() && !this.readonly());\n readonly ceiling = computed(() => Math.min(this.max(), this.limit() ?? this.max()));\n readonly current = computed(() => this.clamp(this.value() ?? this.min()));\n readonly radius = computed(() => CENTER - this.strokeWidth() / 2 - (this.hasHandle() ? 3 : 0));\n readonly sweep = computed(() => (this.arc() === 'ring' ? 360 : 270));\n readonly start = computed(() => (this.arc() === 'ring' ? -90 : 135));\n readonly span = computed(() => (this.sweep() / 360) * 100);\n readonly hasHandle = computed(() => this.showHandle() ?? this.arc() === 'ring');\n readonly fraction = computed(() => this.fractionOf(this.current()));\n readonly limitFraction = computed(() => (this.limit() === undefined ? 1 : this.fractionOf(this.ceiling())));\n readonly rotate = computed(() => `rotate(${this.start()} ${CENTER} ${CENTER})`);\n readonly valueDash = computed(() => `${this.fraction() * this.span()} 100`);\n readonly rangeDash = computed(() => `${this.span()} 100`);\n readonly limitDash = computed(() => `0 ${this.limitFraction() * this.span()} ${(1 - this.limitFraction()) * this.span()} 100`);\n readonly handle = computed(() => this.point(this.fraction()));\n readonly text = computed(() => this.valueTemplate().replace('{value}', this.localeService.formatNumber(this.current())));\n readonly textFit = computed(() => {\n const chars = Array.from(this.text()).length;\n if (this.template() || !chars) return null;\n const room = 2 * (this.radius() - this.strokeWidth() / 2) - TEXT_INSET;\n return Math.max(0, room / (chars * CHAR_WIDTH));\n });\n readonly hostStyle = computed(() => ({\n ...toStyleObject(this.dt(), '--tx-knob'),\n width: `${this.size()}px`,\n height: `${this.size()}px`,\n ...this.passThrough().root?.style,\n }));\n\n readonly center = CENTER;\n\n onPointerDown(event: PointerEvent): void {\n if (!this.isEditable() || event.button !== 0) {\n return;\n }\n event.preventDefault();\n (event.currentTarget as Element).setPointerCapture?.(event.pointerId);\n (event.currentTarget as HTMLElement).focus();\n this.isDragging.set(true);\n this.lastFraction = this.fraction();\n this.moveTo(event, true);\n }\n\n onPointerMove(event: PointerEvent): void {\n if (this.isDragging()) {\n this.moveTo(event, false);\n }\n }\n\n onPointerUp(): void {\n if (this.isDragging()) {\n this.isDragging.set(false);\n this.markTouched();\n }\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (!this.isEditable()) {\n return;\n }\n const value = this.current();\n const step = this.step();\n const moves: Record<string, number> = {\n ArrowRight: value + step,\n ArrowUp: value + step,\n ArrowLeft: value - step,\n ArrowDown: value - step,\n PageUp: value + step * 10,\n PageDown: value - step * 10,\n Home: this.min(),\n End: this.ceiling(),\n };\n if (event.key in moves) {\n event.preventDefault();\n this.commit(moves[event.key], event);\n }\n }\n\n onBlur(): void {\n this.markTouched();\n }\n\n private moveTo(event: PointerEvent, first: boolean): void {\n const rect = this.svg().nativeElement.getBoundingClientRect();\n if (!rect.width) {\n return;\n }\n const x = ((event.clientX - rect.left) / rect.width) * 100 - CENTER;\n const y = ((event.clientY - rect.top) / rect.height) * 100 - CENTER;\n const angle = (Math.atan2(y, x) * 180) / Math.PI;\n let relative = (angle - this.start() + 720) % 360;\n if (relative > this.sweep()) {\n relative = relative > this.sweep() + (360 - this.sweep()) / 2 ? 0 : this.sweep();\n }\n let fraction = relative / this.sweep();\n if (!first && this.arc() === 'ring' && Math.abs(fraction - this.lastFraction) > 0.5) {\n fraction = this.lastFraction > 0.5 ? 1 : 0;\n }\n this.lastFraction = fraction;\n this.commit(this.min() + fraction * (this.max() - this.min()), event);\n }\n\n private commit(raw: number, event: Event): void {\n const step = this.step();\n const snapped = Math.round((raw - this.min()) / step) * step + this.min();\n const value = Number(this.clamp(snapped).toFixed(decimals(step)));\n if (value !== this.value()) {\n this.updateValue(value);\n this.changed.emit({ value, originalEvent: event });\n }\n }\n\n private clamp(value: number): number {\n return Math.min(this.ceiling(), Math.max(this.min(), value));\n }\n\n private fractionOf(value: number): number {\n const range = this.max() - this.min();\n return range > 0 ? (value - this.min()) / range : 0;\n }\n\n private point(fraction: number): { x: number; y: number } {\n const angle = ((this.start() + fraction * this.sweep()) * Math.PI) / 180;\n return { x: CENTER + this.radius() * Math.cos(angle), y: CENTER + this.radius() * Math.sin(angle) };\n }\n}\n\nfunction decimals(value: number): number {\n const text = String(value);\n return text.includes('.') ? text.split('.')[1].length : 0;\n}\n","<div\n class=\"tx-knob__control\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"ceiling()\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuetext]=\"text()\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-disabled]=\"isDisabled() || null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp()\"\n (pointercancel)=\"onPointerUp()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n>\n <svg #svg class=\"tx-knob__svg\" viewBox=\"0 0 100 100\" aria-hidden=\"true\" [class]=\"passThrough().svg?.class\" [style]=\"passThrough().svg?.style\">\n <circle\n class=\"tx-knob__range\"\n pathLength=\"100\"\n fill=\"none\"\n [class]=\"passThrough().range?.class\"\n [style]=\"passThrough().range?.style\"\n [attr.cx]=\"center\"\n [attr.cy]=\"center\"\n [attr.r]=\"radius()\"\n [attr.stroke-width]=\"strokeWidth()\"\n [attr.stroke-dasharray]=\"rangeDash()\"\n [attr.transform]=\"rotate()\"\n />\n @if (limit() !== undefined && limitFraction() < 1) {\n <circle\n class=\"tx-knob__limit\"\n pathLength=\"100\"\n fill=\"none\"\n [attr.cx]=\"center\"\n [attr.cy]=\"center\"\n [attr.r]=\"radius()\"\n [attr.stroke-width]=\"strokeWidth()\"\n [attr.stroke-dasharray]=\"limitDash()\"\n [attr.transform]=\"rotate()\"\n />\n }\n @if (fraction() > 0) {\n <circle\n class=\"tx-knob__value\"\n pathLength=\"100\"\n fill=\"none\"\n [class]=\"passThrough().value?.class\"\n [style]=\"passThrough().value?.style\"\n [attr.cx]=\"center\"\n [attr.cy]=\"center\"\n [attr.r]=\"radius()\"\n [attr.stroke-width]=\"strokeWidth()\"\n [attr.stroke-dasharray]=\"valueDash()\"\n [attr.transform]=\"rotate()\"\n />\n }\n @if (hasHandle()) {\n <circle\n class=\"tx-knob__handle\"\n [class]=\"passThrough().handle?.class\"\n [style]=\"passThrough().handle?.style\"\n [attr.cx]=\"handle().x\"\n [attr.cy]=\"handle().y\"\n [attr.r]=\"strokeWidth() / 2 + 2\"\n />\n }\n </svg>\n @if (showValue()) {\n <span class=\"tx-knob__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\" [style.--_text-fit]=\"textFit()\">\n @if (template(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: current() }\" />\n } @else {\n {{ text() }}\n }\n </span>\n }\n</div>\n"],"mappings":";;;;;;;;;;AAIA,IAAa,sBAAb,MAAa,oBAAmB;CACrB,cAAc,OAAwC,WAAW;CAE1E,OAAO,uBAAuB,YAAiC,SAAgB;EAC7E,OAAO,CAAC,CAAC;CACX;CALW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAmB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAnB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAmB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAD/B,MAAA;EAAU,M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AA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,mBAAmB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,KAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACS,OAAK,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AAuIpE,SAAS,SAAS,OAAa;CAC7B,MAAM,OAAO,OAAO,KAAK;CACzB,OAAO,KAAK,SAAS,GAAG,IAAI,KAAK,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,SAAS;AAC1D"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, booleanAttribute, input } from "@angular/core";
|
|
3
|
-
import { TxIcon, provideTxIconDefaults, txIconInfoCircle } from "@tectra-ng/icons";
|
|
3
|
+
import { TxIcon, provideTxIconDefaults, txIconCheck, txIconInfoCircle } from "@tectra-ng/icons";
|
|
4
|
+
import { TxTooltip } from "@tectra-ng/ui/tooltip";
|
|
4
5
|
import { injectTokens } from "@tectra-ng/core/config";
|
|
5
6
|
import { fieldTokens, floatLabelTokens, iftaLabelTokens, labelTokens } from "@tectra-ng/themes";
|
|
6
|
-
const LABEL_ICON_DEFAULTS = {
|
|
7
|
+
const LABEL_ICON_DEFAULTS = {
|
|
8
|
+
check: txIconCheck,
|
|
9
|
+
"info-circle": txIconInfoCircle
|
|
10
|
+
};
|
|
7
11
|
const LABEL_THEME = {
|
|
8
12
|
field: fieldTokens,
|
|
9
13
|
floatLabel: floatLabelTokens,
|
|
@@ -25,6 +29,10 @@ var TxLabel = class TxLabel {
|
|
|
25
29
|
...ngDevMode ? { debugName: "subtle" } : /* istanbul ignore next */ {},
|
|
26
30
|
transform: booleanAttribute
|
|
27
31
|
});
|
|
32
|
+
filled = input(false, {
|
|
33
|
+
...ngDevMode ? { debugName: "filled" } : /* istanbul ignore next */ {},
|
|
34
|
+
transform: booleanAttribute
|
|
35
|
+
});
|
|
28
36
|
tooltip = input(void 0, ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
|
|
29
37
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
30
38
|
minVersion: "12.0.0",
|
|
@@ -69,6 +77,13 @@ var TxLabel = class TxLabel {
|
|
|
69
77
|
isRequired: false,
|
|
70
78
|
transformFunction: null
|
|
71
79
|
},
|
|
80
|
+
filled: {
|
|
81
|
+
classPropertyName: "filled",
|
|
82
|
+
publicName: "filled",
|
|
83
|
+
isSignal: true,
|
|
84
|
+
isRequired: false,
|
|
85
|
+
transformFunction: null
|
|
86
|
+
},
|
|
72
87
|
tooltip: {
|
|
73
88
|
classPropertyName: "tooltip",
|
|
74
89
|
publicName: "tooltip",
|
|
@@ -78,7 +93,10 @@ var TxLabel = class TxLabel {
|
|
|
78
93
|
}
|
|
79
94
|
},
|
|
80
95
|
host: {
|
|
81
|
-
properties: {
|
|
96
|
+
properties: {
|
|
97
|
+
"class.tx-label--subtle": "subtle()",
|
|
98
|
+
"class.tx-label--filled": "filled()"
|
|
99
|
+
},
|
|
82
100
|
classAttribute: "tx-label"
|
|
83
101
|
},
|
|
84
102
|
ngImport: i0,
|
|
@@ -89,17 +107,46 @@ var TxLabel = class TxLabel {
|
|
|
89
107
|
<span class="tx-label__required" aria-hidden="true">*</span>
|
|
90
108
|
}
|
|
91
109
|
@if (tooltip(); as tooltip) {
|
|
92
|
-
<span class="tx-label__hint" role="img" tabindex="0" [
|
|
110
|
+
<span class="tx-label__hint" role="img" tabindex="0" [txTooltip]="tooltip" [attr.aria-label]="tooltip"><tx-icon [name]="'info-circle'" /></span>
|
|
111
|
+
}
|
|
112
|
+
@if (filled()) {
|
|
113
|
+
<span class="tx-label__filled" aria-hidden="true"><tx-icon [name]="'check'" /></span>
|
|
93
114
|
}
|
|
94
115
|
</label>
|
|
95
116
|
`,
|
|
96
117
|
isInline: true,
|
|
97
|
-
styles: [":host{display:block;margin-bottom:var(--tx-label-margin-bottom)}.tx-label__text{display:
|
|
118
|
+
styles: [":host{display:block;margin-bottom:var(--tx-label-margin-bottom)}.tx-label__text{display:var(--tx-label-text-display);align-items:center;gap:var(--tx-label-gap);color:var(--tx-label-color);font-family:var(--tx-font-family);font-size:var(--tx-label-font-size);font-weight:var(--tx-label-font-weight);line-height:var(--tx-label-line-height)}:host(.tx-label--subtle) .tx-label__text{color:var(--tx-label-subtle-color);font-size:var(--tx-label-subtle-font-size);font-weight:var(--tx-label-subtle-font-weight);line-height:var(--tx-label-subtle-line-height)}.tx-label__required{color:var(--tx-label-required-color)}.tx-label__hint{display:inline-flex;color:var(--tx-label-hint-color);font-size:var(--tx-label-hint-font-size);cursor:help}.tx-label__hint:focus-visible{border-radius:var(--tx-radius-xs);outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}.tx-label__filled{display:inline-flex;color:var(--tx-label-filled-color);font-size:var(--tx-label-filled-font-size);animation:tx-label-filled-in var(--tx-motion-duration) var(--tx-motion-easing)}@keyframes tx-label-filled-in{0%{opacity:0;transform:scale(.6)}}@media(prefers-reduced-motion:reduce){.tx-label__filled{animation:none}}\n"],
|
|
98
119
|
dependencies: [{
|
|
99
120
|
kind: "component",
|
|
100
121
|
type: TxIcon,
|
|
101
122
|
selector: "tx-icon",
|
|
102
123
|
inputs: ["name"]
|
|
124
|
+
}, {
|
|
125
|
+
kind: "directive",
|
|
126
|
+
type: TxTooltip,
|
|
127
|
+
selector: "[txTooltip]",
|
|
128
|
+
inputs: [
|
|
129
|
+
"txTooltip",
|
|
130
|
+
"tooltipPlacement",
|
|
131
|
+
"tooltipEvent",
|
|
132
|
+
"tooltipShowDelay",
|
|
133
|
+
"tooltipHideDelay",
|
|
134
|
+
"tooltipLife",
|
|
135
|
+
"tooltipOffset",
|
|
136
|
+
"tooltipArrow",
|
|
137
|
+
"tooltipInteractive",
|
|
138
|
+
"tooltipDisabled",
|
|
139
|
+
"tooltipOverflowOnly",
|
|
140
|
+
"tooltipMultiline",
|
|
141
|
+
"tooltipContext",
|
|
142
|
+
"tooltipClass",
|
|
143
|
+
"tooltipDt",
|
|
144
|
+
"tooltipPt",
|
|
145
|
+
"tooltipPtOptions",
|
|
146
|
+
"tooltipUnstyled"
|
|
147
|
+
],
|
|
148
|
+
outputs: ["tooltipShown", "tooltipHidden"],
|
|
149
|
+
exportAs: ["txTooltip"]
|
|
103
150
|
}],
|
|
104
151
|
viewProviders: [provideTxIconDefaults(LABEL_ICON_DEFAULTS)],
|
|
105
152
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
@@ -114,7 +161,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
114
161
|
type: Component,
|
|
115
162
|
args: [{
|
|
116
163
|
selector: "tx-label",
|
|
117
|
-
imports: [TxIcon],
|
|
164
|
+
imports: [TxIcon, TxTooltip],
|
|
118
165
|
template: `
|
|
119
166
|
<label class="tx-label__text" [attr.for]="for() ?? null">
|
|
120
167
|
<ng-content />@if (colon()) {:}
|
|
@@ -122,17 +169,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
122
169
|
<span class="tx-label__required" aria-hidden="true">*</span>
|
|
123
170
|
}
|
|
124
171
|
@if (tooltip(); as tooltip) {
|
|
125
|
-
<span class="tx-label__hint" role="img" tabindex="0" [
|
|
172
|
+
<span class="tx-label__hint" role="img" tabindex="0" [txTooltip]="tooltip" [attr.aria-label]="tooltip"><tx-icon [name]="'info-circle'" /></span>
|
|
173
|
+
}
|
|
174
|
+
@if (filled()) {
|
|
175
|
+
<span class="tx-label__filled" aria-hidden="true"><tx-icon [name]="'check'" /></span>
|
|
126
176
|
}
|
|
127
177
|
</label>
|
|
128
178
|
`,
|
|
129
179
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
130
180
|
host: {
|
|
131
181
|
class: "tx-label",
|
|
132
|
-
"[class.tx-label--subtle]": "subtle()"
|
|
182
|
+
"[class.tx-label--subtle]": "subtle()",
|
|
183
|
+
"[class.tx-label--filled]": "filled()"
|
|
133
184
|
},
|
|
134
185
|
viewProviders: [provideTxIconDefaults(LABEL_ICON_DEFAULTS)],
|
|
135
|
-
styles: [":host{display:block;margin-bottom:var(--tx-label-margin-bottom)}.tx-label__text{display:
|
|
186
|
+
styles: [":host{display:block;margin-bottom:var(--tx-label-margin-bottom)}.tx-label__text{display:var(--tx-label-text-display);align-items:center;gap:var(--tx-label-gap);color:var(--tx-label-color);font-family:var(--tx-font-family);font-size:var(--tx-label-font-size);font-weight:var(--tx-label-font-weight);line-height:var(--tx-label-line-height)}:host(.tx-label--subtle) .tx-label__text{color:var(--tx-label-subtle-color);font-size:var(--tx-label-subtle-font-size);font-weight:var(--tx-label-subtle-font-weight);line-height:var(--tx-label-subtle-line-height)}.tx-label__required{color:var(--tx-label-required-color)}.tx-label__hint{display:inline-flex;color:var(--tx-label-hint-color);font-size:var(--tx-label-hint-font-size);cursor:help}.tx-label__hint:focus-visible{border-radius:var(--tx-radius-xs);outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}.tx-label__filled{display:inline-flex;color:var(--tx-label-filled-color);font-size:var(--tx-label-filled-font-size);animation:tx-label-filled-in var(--tx-motion-duration) var(--tx-motion-easing)}@keyframes tx-label-filled-in{0%{opacity:0;transform:scale(.6)}}@media(prefers-reduced-motion:reduce){.tx-label__filled{animation:none}}\n"]
|
|
136
187
|
}]
|
|
137
188
|
}],
|
|
138
189
|
propDecorators: {
|
|
@@ -168,6 +219,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
168
219
|
required: false
|
|
169
220
|
}]
|
|
170
221
|
}],
|
|
222
|
+
filled: [{
|
|
223
|
+
type: i0.Input,
|
|
224
|
+
args: [{
|
|
225
|
+
isSignal: true,
|
|
226
|
+
alias: "filled",
|
|
227
|
+
required: false
|
|
228
|
+
}]
|
|
229
|
+
}],
|
|
171
230
|
tooltip: [{
|
|
172
231
|
type: i0.Input,
|
|
173
232
|
args: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-label.mjs","names":[],"sources":["../../../../packages/ui/label/src/label.icons.ts","../../../../packages/ui/label/src/label.theme.ts","../../../../packages/ui/label/src/label.component.ts","../../../../packages/ui/label/src/float-label.component.ts","../../../../packages/ui/label/src/ifta-label.component.ts"],"sourcesContent":["import { TxIconSet, txIconInfoCircle } from '@tectra-ng/icons';\n\nexport const LABEL_ICON_DEFAULTS: TxIconSet = {\n 'info-circle': txIconInfoCircle,\n};\n","import { fieldTokens, floatLabelTokens, iftaLabelTokens, labelTokens } from '@tectra-ng/themes';\n\nexport const LABEL_THEME = {\n field: fieldTokens,\n floatLabel: floatLabelTokens,\n iftaLabel: iftaLabelTokens,\n label: labelTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, input } from '@angular/core';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { LABEL_ICON_DEFAULTS } from './label.icons';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { LABEL_THEME } from './label.theme';\n\n@Component({\n selector: 'tx-label',\n imports: [TxIcon],\n template: `\n <label class=\"tx-label__text\" [attr.for]=\"for() ?? null\">\n <ng-content />@if (colon()) {:}\n @if (required()) {\n <span class=\"tx-label__required\" aria-hidden=\"true\">*</span>\n }\n @if (tooltip(); as tooltip) {\n <span class=\"tx-label__hint\" role=\"img\" tabindex=\"0\" [
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-label.mjs","names":[],"sources":["../../../../packages/ui/label/src/label.icons.ts","../../../../packages/ui/label/src/label.theme.ts","../../../../packages/ui/label/src/label.component.ts","../../../../packages/ui/label/src/float-label.component.ts","../../../../packages/ui/label/src/ifta-label.component.ts"],"sourcesContent":["import { TxIconSet, txIconCheck, txIconInfoCircle } from '@tectra-ng/icons';\n\nexport const LABEL_ICON_DEFAULTS: TxIconSet = {\n check: txIconCheck,\n 'info-circle': txIconInfoCircle,\n};\n","import { fieldTokens, floatLabelTokens, iftaLabelTokens, labelTokens } from '@tectra-ng/themes';\n\nexport const LABEL_THEME = {\n field: fieldTokens,\n floatLabel: floatLabelTokens,\n iftaLabel: iftaLabelTokens,\n label: labelTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, input } from '@angular/core';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { LABEL_ICON_DEFAULTS } from './label.icons';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { LABEL_THEME } from './label.theme';\n\n@Component({\n selector: 'tx-label',\n imports: [TxIcon, TxTooltip],\n template: `\n <label class=\"tx-label__text\" [attr.for]=\"for() ?? null\">\n <ng-content />@if (colon()) {:}\n @if (required()) {\n <span class=\"tx-label__required\" aria-hidden=\"true\">*</span>\n }\n @if (tooltip(); as tooltip) {\n <span class=\"tx-label__hint\" role=\"img\" tabindex=\"0\" [txTooltip]=\"tooltip\" [attr.aria-label]=\"tooltip\"><tx-icon [name]=\"'info-circle'\" /></span>\n }\n @if (filled()) {\n <span class=\"tx-label__filled\" aria-hidden=\"true\"><tx-icon [name]=\"'check'\" /></span>\n }\n </label>\n `,\n styleUrl: './label.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-label', '[class.tx-label--subtle]': 'subtle()', '[class.tx-label--filled]': 'filled()' },\n viewProviders: [provideTxIconDefaults(LABEL_ICON_DEFAULTS)],\n})\nexport class TxLabel {\n private readonly labelTheme = injectTokens(LABEL_THEME);\n\n readonly for = input<string | undefined>(undefined);\n readonly required = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly colon = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly subtle = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly filled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly tooltip = input<string | undefined>(undefined);\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { TxFloatLabelVariant } from './label.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { LABEL_ICON_DEFAULTS } from './label.icons';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { LABEL_THEME } from './label.theme';\n\n@Component({\n selector: 'tx-float-label',\n template: '<ng-content />',\n styleUrl: './float-label.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-float-label', '[attr.data-variant]': 'variant()' },\n viewProviders: [provideTxIconDefaults(LABEL_ICON_DEFAULTS)],\n})\nexport class TxFloatLabel {\n private readonly labelTheme = injectTokens(LABEL_THEME);\n\n readonly variant = input<TxFloatLabelVariant>('over');\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { LABEL_ICON_DEFAULTS } from './label.icons';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { LABEL_THEME } from './label.theme';\n\n@Component({\n selector: 'tx-ifta-label',\n template: '<ng-content />',\n styleUrl: './ifta-label.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-ifta-label' },\n viewProviders: [provideTxIconDefaults(LABEL_ICON_DEFAULTS)],\n})\nexport class TxIftaLabel {\n private readonly labelTheme = injectTokens(LABEL_THEME);\n}\n"],"mappings":";;;;;;AAEA,MAAa,sBAAiC;CAC5C,OAAO;CACP,eAAe;AAChB;ACHD,MAAa,cAAc;CACzB,OAAO;CACP,YAAY;CACZ,WAAW;CACX,OAAO;AACR;ACsBD,IAAa,UAAb,MAAa,QAAO;CACD,aAAa,aAAa,WAAW;CAE7C,MAAM,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;CAC1C,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAA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,MACzC,EAAE,OAAO,gBAAe;GAAE,eACjB,CAAC,sBAAsB,mBAAmB,CAAC;GAAC,QAAA,CAAA,qmCAAA;EAAA,CAAA"}
|
|
@@ -4,7 +4,7 @@ import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, booleanAttrib
|
|
|
4
4
|
import { RouterLink, RouterLinkActive } from "@angular/router";
|
|
5
5
|
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
6
6
|
import { injectTranslations } from "@tectra-ng/core/i18n";
|
|
7
|
-
import { optionalBoolean, optionalNumber } from "@tectra-ng/core/utils";
|
|
7
|
+
import { optionalBoolean, optionalNumber, writeToClipboard } from "@tectra-ng/core/utils";
|
|
8
8
|
import { TxIcon, injectTxIcons, provideTxIconDefaults, txIconArrowUpRight, txIconCheck, txIconCopy, txIconLink, txIconPhone, txIconText } from "@tectra-ng/icons";
|
|
9
9
|
import { iconLinkTokens, linkTokens, toStyleObject } from "@tectra-ng/themes";
|
|
10
10
|
import { TxHighlightText } from "@tectra-ng/ui/highlight-text";
|
|
@@ -148,7 +148,7 @@ var TxIconLink = class TxIconLink {
|
|
|
148
148
|
},
|
|
149
149
|
ngImport: i0,
|
|
150
150
|
template: "<ng-template #content>\n @if (icon(); as icon) {\n @if (iconName(); as name) {\n <tx-icon class=\"tx-icon-link__icon\" [name]=\"name\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else {\n <span class=\"tx-icon-link__icon\" aria-hidden=\"true\" [class]=\"icon\" [ngClass]=\"passThrough().icon?.class ?? null\" [style]=\"passThrough().icon?.style\"></span>\n }\n }\n <span class=\"tx-icon-link__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() }}<ng-content /></span>\n @if (opensNewTab()) {\n <span class=\"tx-icon-link__hint\">({{ translations().opensInNewTab }})</span>\n }\n</ng-template>\n\n@if (routerLink(); as commands) {\n <a\n class=\"tx-icon-link__anchor\"\n [routerLink]=\"$any(commands)\"\n routerLinkActive=\"tx-icon-link__anchor--active\"\n ariaCurrentWhenActive=\"page\"\n [routerLinkActiveOptions]=\"{ exact: exact() }\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else if (href()) {\n <a\n class=\"tx-icon-link__anchor\"\n [href]=\"href()\"\n [attr.target]=\"resolvedTarget()\"\n [attr.rel]=\"opensNewTab() ? 'noopener noreferrer' : null\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <button type=\"button\" class=\"tx-icon-link__anchor\" [class]=\"passThrough().anchor?.class\" [style]=\"passThrough().anchor?.style\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n}\n",
|
|
151
|
-
styles: [":host{display:inline-flex;min-width:0}.tx-icon-link__anchor{display:inline-flex;align-items:center;min-width:0}.tx-icon-link__text{min-width:0}.tx-icon-link__hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled]) .tx-icon-link__anchor{gap:var(--tx-icon-link-gap);padding:var(--tx-icon-link-padding-y) var(--tx-icon-link-padding-x);border:none;border-radius:var(--tx-icon-link-border-radius);background:transparent;color:var(--tx-icon-link-color);font-family:inherit;font-size:var(--tx-icon-link-font-size);font-weight:var(--tx-icon-link-font-weight);text-decoration:none;cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-icon-link__anchor:hover{background:var(--tx-icon-link-hover-background);color:var(--tx-icon-link-hover-color)}:host([data-styled]) .tx-icon-link__anchor:focus-visible{outline:2px solid var(--tx-icon-link-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-icon-link__anchor--active
|
|
151
|
+
styles: [":host{display:inline-flex;min-width:0}:host :where(.tx-icon-link__anchor){display:inline-flex;align-items:center;min-width:0}:host :where(.tx-icon-link__text){min-width:0}.tx-icon-link__hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host(:where([data-styled])) :where(.tx-icon-link__anchor){gap:var(--tx-icon-link-gap);padding:var(--tx-icon-link-padding-y) var(--tx-icon-link-padding-x);border:none;border-radius:var(--tx-icon-link-border-radius);background:transparent;color:var(--tx-icon-link-color);font-family:inherit;font-size:var(--tx-icon-link-font-size);font-weight:var(--tx-icon-link-font-weight);text-decoration:none;cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host(:where([data-styled])) :where(.tx-icon-link__anchor:hover){background:var(--tx-icon-link-hover-background);color:var(--tx-icon-link-hover-color)}:host(:where([data-styled])) :where(.tx-icon-link__anchor:focus-visible){outline:2px solid var(--tx-icon-link-focus-ring-color);outline-offset:1px}:host(:where([data-styled])) :where(.tx-icon-link__anchor--active,.tx-icon-link__anchor--active:hover){background:var(--tx-icon-link-active-background);color:var(--tx-icon-link-active-color)}:host(:where([data-styled])) :where(.tx-icon-link__icon){flex-shrink:0;font-size:var(--tx-icon-link-icon-size)}@media(prefers-reduced-motion:reduce){:host(:where([data-styled])) :where(.tx-icon-link__anchor){transition:none}}\n"],
|
|
152
152
|
dependencies: [
|
|
153
153
|
{
|
|
154
154
|
kind: "directive",
|
|
@@ -233,7 +233,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
233
233
|
},
|
|
234
234
|
viewProviders: [provideTxIconDefaults(LINK_ICON_DEFAULTS)],
|
|
235
235
|
template: "<ng-template #content>\n @if (icon(); as icon) {\n @if (iconName(); as name) {\n <tx-icon class=\"tx-icon-link__icon\" [name]=\"name\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else {\n <span class=\"tx-icon-link__icon\" aria-hidden=\"true\" [class]=\"icon\" [ngClass]=\"passThrough().icon?.class ?? null\" [style]=\"passThrough().icon?.style\"></span>\n }\n }\n <span class=\"tx-icon-link__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() }}<ng-content /></span>\n @if (opensNewTab()) {\n <span class=\"tx-icon-link__hint\">({{ translations().opensInNewTab }})</span>\n }\n</ng-template>\n\n@if (routerLink(); as commands) {\n <a\n class=\"tx-icon-link__anchor\"\n [routerLink]=\"$any(commands)\"\n routerLinkActive=\"tx-icon-link__anchor--active\"\n ariaCurrentWhenActive=\"page\"\n [routerLinkActiveOptions]=\"{ exact: exact() }\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else if (href()) {\n <a\n class=\"tx-icon-link__anchor\"\n [href]=\"href()\"\n [attr.target]=\"resolvedTarget()\"\n [attr.rel]=\"opensNewTab() ? 'noopener noreferrer' : null\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <button type=\"button\" class=\"tx-icon-link__anchor\" [class]=\"passThrough().anchor?.class\" [style]=\"passThrough().anchor?.style\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n}\n",
|
|
236
|
-
styles: [":host{display:inline-flex;min-width:0}.tx-icon-link__anchor{display:inline-flex;align-items:center;min-width:0}.tx-icon-link__text{min-width:0}.tx-icon-link__hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled]) .tx-icon-link__anchor{gap:var(--tx-icon-link-gap);padding:var(--tx-icon-link-padding-y) var(--tx-icon-link-padding-x);border:none;border-radius:var(--tx-icon-link-border-radius);background:transparent;color:var(--tx-icon-link-color);font-family:inherit;font-size:var(--tx-icon-link-font-size);font-weight:var(--tx-icon-link-font-weight);text-decoration:none;cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-icon-link__anchor:hover{background:var(--tx-icon-link-hover-background);color:var(--tx-icon-link-hover-color)}:host([data-styled]) .tx-icon-link__anchor:focus-visible{outline:2px solid var(--tx-icon-link-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-icon-link__anchor--active
|
|
236
|
+
styles: [":host{display:inline-flex;min-width:0}:host :where(.tx-icon-link__anchor){display:inline-flex;align-items:center;min-width:0}:host :where(.tx-icon-link__text){min-width:0}.tx-icon-link__hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host(:where([data-styled])) :where(.tx-icon-link__anchor){gap:var(--tx-icon-link-gap);padding:var(--tx-icon-link-padding-y) var(--tx-icon-link-padding-x);border:none;border-radius:var(--tx-icon-link-border-radius);background:transparent;color:var(--tx-icon-link-color);font-family:inherit;font-size:var(--tx-icon-link-font-size);font-weight:var(--tx-icon-link-font-weight);text-decoration:none;cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host(:where([data-styled])) :where(.tx-icon-link__anchor:hover){background:var(--tx-icon-link-hover-background);color:var(--tx-icon-link-hover-color)}:host(:where([data-styled])) :where(.tx-icon-link__anchor:focus-visible){outline:2px solid var(--tx-icon-link-focus-ring-color);outline-offset:1px}:host(:where([data-styled])) :where(.tx-icon-link__anchor--active,.tx-icon-link__anchor--active:hover){background:var(--tx-icon-link-active-background);color:var(--tx-icon-link-active-color)}:host(:where([data-styled])) :where(.tx-icon-link__icon){flex-shrink:0;font-size:var(--tx-icon-link-icon-size)}@media(prefers-reduced-motion:reduce){:host(:where([data-styled])) :where(.tx-icon-link__anchor){transition:none}}\n"]
|
|
237
237
|
}]
|
|
238
238
|
}],
|
|
239
239
|
propDecorators: {
|
|
@@ -325,6 +325,7 @@ var TxLink = class TxLink {
|
|
|
325
325
|
linkTheme = injectTokens(LINK_THEME);
|
|
326
326
|
document = inject(DOCUMENT);
|
|
327
327
|
timer = null;
|
|
328
|
+
destroyed = false;
|
|
328
329
|
link = input("", ...ngDevMode ? [{ debugName: "link" }] : /* istanbul ignore next */ []);
|
|
329
330
|
type = input("url", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
|
|
330
331
|
linkText = input(void 0, ...ngDevMode ? [{ debugName: "linkText" }] : /* istanbul ignore next */ []);
|
|
@@ -351,10 +352,12 @@ var TxLink = class TxLink {
|
|
|
351
352
|
transform: optionalBoolean
|
|
352
353
|
});
|
|
353
354
|
copied = output();
|
|
355
|
+
copyFailed = output();
|
|
354
356
|
translations = injectTranslations();
|
|
355
357
|
isUnstyled = injectUnstyled(this.unstyled);
|
|
356
358
|
passThrough = injectPassThrough("link", this, this.pt, this.ptOptions);
|
|
357
359
|
isCopied = signal(false, ...ngDevMode ? [{ debugName: "isCopied" }] : /* istanbul ignore next */ []);
|
|
360
|
+
isCopyFailed = signal(false, ...ngDevMode ? [{ debugName: "isCopyFailed" }] : /* istanbul ignore next */ []);
|
|
358
361
|
value = computed(() => (this.link() ?? "").trim(), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
359
362
|
fullText = computed(() => this.linkText() || this.value(), ...ngDevMode ? [{ debugName: "fullText" }] : /* istanbul ignore next */ []);
|
|
360
363
|
isTruncated = computed(() => {
|
|
@@ -382,20 +385,34 @@ var TxLink = class TxLink {
|
|
|
382
385
|
phone: translations.copyPhone
|
|
383
386
|
}[this.type()];
|
|
384
387
|
}, ...ngDevMode ? [{ debugName: "copyLabel" }] : /* istanbul ignore next */ []);
|
|
388
|
+
copyStateLabel = computed(() => {
|
|
389
|
+
if (this.isCopied()) return this.translations().copied;
|
|
390
|
+
return this.isCopyFailed() ? this.translations().copyToClipboardFailed : this.copyLabel();
|
|
391
|
+
}, ...ngDevMode ? [{ debugName: "copyStateLabel" }] : /* istanbul ignore next */ []);
|
|
385
392
|
hostStyle = computed(() => ({
|
|
386
393
|
...toStyleObject(this.dt(), "--tx-link"),
|
|
387
394
|
...this.passThrough().root?.style
|
|
388
395
|
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
389
396
|
constructor() {
|
|
390
|
-
inject(DestroyRef).onDestroy(() =>
|
|
397
|
+
inject(DestroyRef).onDestroy(() => {
|
|
398
|
+
this.destroyed = true;
|
|
399
|
+
if (this.timer) clearTimeout(this.timer);
|
|
400
|
+
});
|
|
391
401
|
}
|
|
392
|
-
copy() {
|
|
402
|
+
async copy() {
|
|
393
403
|
const text = this.value();
|
|
394
|
-
this.document
|
|
395
|
-
this.
|
|
396
|
-
this.isCopied.set(
|
|
404
|
+
const done = await writeToClipboard(text, this.document);
|
|
405
|
+
if (this.destroyed) return done;
|
|
406
|
+
this.isCopied.set(done);
|
|
407
|
+
this.isCopyFailed.set(!done);
|
|
408
|
+
if (done) this.copied.emit(text);
|
|
409
|
+
else this.copyFailed.emit(text);
|
|
397
410
|
if (this.timer) clearTimeout(this.timer);
|
|
398
|
-
this.timer = setTimeout(() =>
|
|
411
|
+
this.timer = setTimeout(() => {
|
|
412
|
+
this.isCopied.set(false);
|
|
413
|
+
this.isCopyFailed.set(false);
|
|
414
|
+
}, COPIED_FOR);
|
|
415
|
+
return done;
|
|
399
416
|
}
|
|
400
417
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
401
418
|
minVersion: "12.0.0",
|
|
@@ -504,7 +521,10 @@ var TxLink = class TxLink {
|
|
|
504
521
|
transformFunction: null
|
|
505
522
|
}
|
|
506
523
|
},
|
|
507
|
-
outputs: {
|
|
524
|
+
outputs: {
|
|
525
|
+
copied: "copied",
|
|
526
|
+
copyFailed: "copyFailed"
|
|
527
|
+
},
|
|
508
528
|
host: {
|
|
509
529
|
properties: {
|
|
510
530
|
"class": "passThrough().root?.class",
|
|
@@ -515,8 +535,8 @@ var TxLink = class TxLink {
|
|
|
515
535
|
classAttribute: "tx-link"
|
|
516
536
|
},
|
|
517
537
|
ngImport: i0,
|
|
518
|
-
template: "<ng-template #content>\n <span class=\"tx-link__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" />\n </span>\n @if (showExternal()) {\n <tx-icon class=\"tx-link__external\" name=\"arrow-up-right\" [class]=\"passThrough().external?.class\" [style]=\"passThrough().external?.style\" />\n }\n @if (opensNewTab()) {\n <span class=\"tx-link__hint\">({{ translations().opensInNewTab }})</span>\n }\n</ng-template>\n\n@if (routerLink(); as commands) {\n <a class=\"tx-link__anchor\" [routerLink]=\"$any(commands)\" [attr.title]=\"fullTitle()\" [class]=\"passThrough().anchor?.class\" [style]=\"passThrough().anchor?.style\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <a\n class=\"tx-link__anchor\"\n [href]=\"href()\"\n [attr.target]=\"resolvedTarget()\"\n [attr.rel]=\"opensNewTab() ? 'noopener noreferrer' : null\"\n [attr.title]=\"fullTitle()\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n}\n@if (copyable() && link()) {\n <button\n type=\"button\"\n class=\"tx-link__copy\"\n [class.tx-link__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"
|
|
519
|
-
styles: [":host{display:inline-flex;align-items:center;max-width:100%;min-width:0;vertical-align:bottom}.tx-link__anchor{min-width:0;overflow-wrap:anywhere}.tx-link__hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled]){gap:var(--tx-link-gap);font-family:inherit}:host([data-styled]) .tx-link__anchor{border-radius:2px;color:var(--tx-link-color);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:var(--tx-link-underline-offset);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing),text-decoration-color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-link__anchor:hover{color:var(--tx-link-hover-color);text-decoration-color:currentColor}:host([data-styled]) .tx-link__anchor:focus-visible{outline:2px solid var(--tx-link-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-link__external{margin-inline-start:.25em;vertical-align:-.05em;font-size:var(--tx-link-external-icon-size);opacity:.7}:host([data-styled]) .tx-link__copy{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-link-copy-size);height:var(--tx-link-copy-size);padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-link-copy-color);font-size:var(--tx-link-copy-icon-size);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-link__copy:hover{background:var(--tx-link-copy-hover-background);color:var(--tx-link-copy-hover-color)}:host([data-styled]) .tx-link__copy:focus-visible{outline:2px solid var(--tx-link-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-link__copy--done
|
|
538
|
+
template: "<ng-template #content>\n <span class=\"tx-link__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" />\n </span>\n @if (showExternal()) {\n <tx-icon class=\"tx-link__external\" name=\"arrow-up-right\" [class]=\"passThrough().external?.class\" [style]=\"passThrough().external?.style\" />\n }\n @if (opensNewTab()) {\n <span class=\"tx-link__hint\">({{ translations().opensInNewTab }})</span>\n }\n</ng-template>\n\n@if (routerLink(); as commands) {\n <a class=\"tx-link__anchor\" [routerLink]=\"$any(commands)\" [attr.title]=\"fullTitle()\" [class]=\"passThrough().anchor?.class\" [style]=\"passThrough().anchor?.style\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <a\n class=\"tx-link__anchor\"\n [href]=\"href()\"\n [attr.target]=\"resolvedTarget()\"\n [attr.rel]=\"opensNewTab() ? 'noopener noreferrer' : null\"\n [attr.title]=\"fullTitle()\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n}\n@if (copyable() && link()) {\n <button\n type=\"button\"\n class=\"tx-link__copy\"\n [class.tx-link__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"copyStateLabel()\"\n [title]=\"copyStateLabel()\"\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",
|
|
539
|
+
styles: [":host{display:inline-flex;align-items:center;max-width:100%;min-width:0;vertical-align:bottom}:host :where(.tx-link__anchor){min-width:0;overflow-wrap:anywhere}.tx-link__hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host(:where([data-styled])){gap:var(--tx-link-gap);font-family:inherit}:host(:where([data-styled])) :where(.tx-link__anchor){border-radius:2px;color:var(--tx-link-color);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:var(--tx-link-underline-offset);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing),text-decoration-color var(--tx-motion-duration) var(--tx-motion-easing)}:host(:where([data-styled])) :where(.tx-link__anchor:hover){color:var(--tx-link-hover-color);text-decoration-color:currentColor}:host(:where([data-styled])) :where(.tx-link__anchor:focus-visible){outline:2px solid var(--tx-link-focus-ring-color);outline-offset:2px}:host(:where([data-styled])) :where(.tx-link__external){margin-inline-start:.25em;vertical-align:-.05em;font-size:var(--tx-link-external-icon-size);opacity:.7}:host(:where([data-styled])) :where(.tx-link__copy){display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-link-copy-size);height:var(--tx-link-copy-size);padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-link-copy-color);font-size:var(--tx-link-copy-icon-size);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host(:where([data-styled])) :where(.tx-link__copy:hover){background:var(--tx-link-copy-hover-background);color:var(--tx-link-copy-hover-color)}:host(:where([data-styled])) :where(.tx-link__copy:focus-visible){outline:2px solid var(--tx-link-focus-ring-color);outline-offset:1px}:host(:where([data-styled])) :where(.tx-link__copy--done,.tx-link__copy--done:hover){color:var(--tx-link-copied-color)}@media(prefers-reduced-motion:reduce){:host(:where([data-styled])) :where(.tx-link__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"],
|
|
520
540
|
dependencies: [
|
|
521
541
|
{
|
|
522
542
|
kind: "directive",
|
|
@@ -596,8 +616,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
596
616
|
"[attr.data-type]": "type()"
|
|
597
617
|
},
|
|
598
618
|
viewProviders: [provideTxIconDefaults(LINK_ICON_DEFAULTS)],
|
|
599
|
-
template: "<ng-template #content>\n <span class=\"tx-link__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" />\n </span>\n @if (showExternal()) {\n <tx-icon class=\"tx-link__external\" name=\"arrow-up-right\" [class]=\"passThrough().external?.class\" [style]=\"passThrough().external?.style\" />\n }\n @if (opensNewTab()) {\n <span class=\"tx-link__hint\">({{ translations().opensInNewTab }})</span>\n }\n</ng-template>\n\n@if (routerLink(); as commands) {\n <a class=\"tx-link__anchor\" [routerLink]=\"$any(commands)\" [attr.title]=\"fullTitle()\" [class]=\"passThrough().anchor?.class\" [style]=\"passThrough().anchor?.style\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <a\n class=\"tx-link__anchor\"\n [href]=\"href()\"\n [attr.target]=\"resolvedTarget()\"\n [attr.rel]=\"opensNewTab() ? 'noopener noreferrer' : null\"\n [attr.title]=\"fullTitle()\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n}\n@if (copyable() && link()) {\n <button\n type=\"button\"\n class=\"tx-link__copy\"\n [class.tx-link__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"
|
|
600
|
-
styles: [":host{display:inline-flex;align-items:center;max-width:100%;min-width:0;vertical-align:bottom}.tx-link__anchor{min-width:0;overflow-wrap:anywhere}.tx-link__hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled]){gap:var(--tx-link-gap);font-family:inherit}:host([data-styled]) .tx-link__anchor{border-radius:2px;color:var(--tx-link-color);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:var(--tx-link-underline-offset);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing),text-decoration-color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-link__anchor:hover{color:var(--tx-link-hover-color);text-decoration-color:currentColor}:host([data-styled]) .tx-link__anchor:focus-visible{outline:2px solid var(--tx-link-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-link__external{margin-inline-start:.25em;vertical-align:-.05em;font-size:var(--tx-link-external-icon-size);opacity:.7}:host([data-styled]) .tx-link__copy{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-link-copy-size);height:var(--tx-link-copy-size);padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-link-copy-color);font-size:var(--tx-link-copy-icon-size);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-link__copy:hover{background:var(--tx-link-copy-hover-background);color:var(--tx-link-copy-hover-color)}:host([data-styled]) .tx-link__copy:focus-visible{outline:2px solid var(--tx-link-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-link__copy--done
|
|
619
|
+
template: "<ng-template #content>\n <span class=\"tx-link__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" />\n </span>\n @if (showExternal()) {\n <tx-icon class=\"tx-link__external\" name=\"arrow-up-right\" [class]=\"passThrough().external?.class\" [style]=\"passThrough().external?.style\" />\n }\n @if (opensNewTab()) {\n <span class=\"tx-link__hint\">({{ translations().opensInNewTab }})</span>\n }\n</ng-template>\n\n@if (routerLink(); as commands) {\n <a class=\"tx-link__anchor\" [routerLink]=\"$any(commands)\" [attr.title]=\"fullTitle()\" [class]=\"passThrough().anchor?.class\" [style]=\"passThrough().anchor?.style\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <a\n class=\"tx-link__anchor\"\n [href]=\"href()\"\n [attr.target]=\"resolvedTarget()\"\n [attr.rel]=\"opensNewTab() ? 'noopener noreferrer' : null\"\n [attr.title]=\"fullTitle()\"\n [class]=\"passThrough().anchor?.class\"\n [style]=\"passThrough().anchor?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n}\n@if (copyable() && link()) {\n <button\n type=\"button\"\n class=\"tx-link__copy\"\n [class.tx-link__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"copyStateLabel()\"\n [title]=\"copyStateLabel()\"\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",
|
|
620
|
+
styles: [":host{display:inline-flex;align-items:center;max-width:100%;min-width:0;vertical-align:bottom}:host :where(.tx-link__anchor){min-width:0;overflow-wrap:anywhere}.tx-link__hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host(:where([data-styled])){gap:var(--tx-link-gap);font-family:inherit}:host(:where([data-styled])) :where(.tx-link__anchor){border-radius:2px;color:var(--tx-link-color);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:var(--tx-link-underline-offset);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing),text-decoration-color var(--tx-motion-duration) var(--tx-motion-easing)}:host(:where([data-styled])) :where(.tx-link__anchor:hover){color:var(--tx-link-hover-color);text-decoration-color:currentColor}:host(:where([data-styled])) :where(.tx-link__anchor:focus-visible){outline:2px solid var(--tx-link-focus-ring-color);outline-offset:2px}:host(:where([data-styled])) :where(.tx-link__external){margin-inline-start:.25em;vertical-align:-.05em;font-size:var(--tx-link-external-icon-size);opacity:.7}:host(:where([data-styled])) :where(.tx-link__copy){display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-link-copy-size);height:var(--tx-link-copy-size);padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-link-copy-color);font-size:var(--tx-link-copy-icon-size);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host(:where([data-styled])) :where(.tx-link__copy:hover){background:var(--tx-link-copy-hover-background);color:var(--tx-link-copy-hover-color)}:host(:where([data-styled])) :where(.tx-link__copy:focus-visible){outline:2px solid var(--tx-link-focus-ring-color);outline-offset:1px}:host(:where([data-styled])) :where(.tx-link__copy--done,.tx-link__copy--done:hover){color:var(--tx-link-copied-color)}@media(prefers-reduced-motion:reduce){:host(:where([data-styled])) :where(.tx-link__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"]
|
|
601
621
|
}]
|
|
602
622
|
}],
|
|
603
623
|
ctorParameters: () => [],
|
|
@@ -709,6 +729,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
709
729
|
copied: [{
|
|
710
730
|
type: i0.Output,
|
|
711
731
|
args: ["copied"]
|
|
732
|
+
}],
|
|
733
|
+
copyFailed: [{
|
|
734
|
+
type: i0.Output,
|
|
735
|
+
args: ["copyFailed"]
|
|
712
736
|
}]
|
|
713
737
|
}
|
|
714
738
|
});
|