@tectra-ng/ui 0.1.4 → 0.1.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tectra-ng-ui-galleria.mjs","names":[],"sources":["../../../../packages/ui/galleria/src/galleria.templates.ts","../../../../packages/ui/galleria/src/galleria.component.ts","../../../../packages/ui/galleria/src/galleria.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxGalleriaIndicatorContext, TxGalleriaItemContext, TxGalleriaThumbnailContext } from './galleria.types';\n\n@Directive({ selector: 'ng-template[txGalleriaItem]' })\nexport class TxGalleriaItemTemplate {\n readonly template = inject<TemplateRef<TxGalleriaItemContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txGalleriaThumbnail]' })\nexport class TxGalleriaThumbnailTemplate {\n readonly template = inject<TemplateRef<TxGalleriaThumbnailContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txGalleriaCaption]' })\nexport class TxGalleriaCaptionTemplate {\n readonly template = inject<TemplateRef<TxGalleriaItemContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txGalleriaIndicator]' })\nexport class TxGalleriaIndicatorTemplate {\n readonly template = inject<TemplateRef<TxGalleriaIndicatorContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxGalleriaIndicatorTemplate, context: unknown): context is TxGalleriaIndicatorContext {\n return !!context;\n }\n}\n\n@Directive({ selector: '[txGalleriaHeader]' })\nexport class TxGalleriaHeader {}\n\n@Directive({ selector: '[txGalleriaFooter]' })\nexport class TxGalleriaFooter {}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n Injector,\n TemplateRef,\n afterNextRender,\n ViewContainerRef,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n numberAttribute,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxSwapEffect, optionalBoolean, txCanAnimate, txCssTime, txSwapMotion } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraGalleriaTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxImageLayer, openImageLayer } from '@tectra-ng/ui/image';\nimport { TxGalleriaCaptionTemplate, TxGalleriaFooter, TxGalleriaHeader, TxGalleriaIndicatorTemplate, TxGalleriaItemTemplate, TxGalleriaThumbnailTemplate } from './galleria.templates';\nimport { TxGalleriaImage, TxGalleriaPart, TxGalleriaPosition, TxGalleriaResponsiveOption } from './galleria.types';\n\nconst SWIPE_MIN = 40;\nconst SWAP_DURATION = 450;\n\nfunction percent(value: number): string {\n return `${Math.round(value * 10000) / 10000}%`;\n}\n\nexport function galleriaImage(item: unknown): TxGalleriaImage | null {\n return typeof item === 'object' && item !== null && typeof (item as TxGalleriaImage).src === 'string' ? (item as TxGalleriaImage) : null;\n}\n\n@Component({\n selector: 'tx-galleria',\n imports: [NgTemplateOutlet, TxIcon],\n templateUrl: './galleria.component.html',\n styleUrl: './galleria.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-galleria',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-galleria--fullscreen]': 'fullScreen()',\n },\n})\nexport class TxGalleria {\n private injector = inject(Injector);\n private viewContainerRef = inject(ViewContainerRef);\n private document = inject(DOCUMENT);\n private layer: TxImageLayer | null = null;\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n private swipeStart: { pointerId: number; x: number; y: number } | null = null;\n\n readonly value = input<readonly unknown[] | null | undefined>([]);\n readonly activeIndex = model(0);\n readonly visible = model(false);\n readonly fullScreen = input(false, { transform: booleanAttribute });\n readonly numVisible = input(3, { transform: numberAttribute });\n readonly responsiveOptions = input<TxGalleriaResponsiveOption[] | undefined>(undefined);\n readonly showItemNavigators = input(false, { transform: booleanAttribute });\n readonly showItemNavigatorsOnHover = input(false, { transform: booleanAttribute });\n readonly showThumbnailNavigators = input(true, { transform: booleanAttribute });\n readonly showThumbnails = input(true, { transform: booleanAttribute });\n readonly thumbnailsPosition = input<TxGalleriaPosition>('bottom');\n readonly verticalThumbnailViewPortHeight = input('300px');\n readonly showIndicators = input(false, { transform: booleanAttribute });\n readonly showIndicatorsOnItem = input(false, { transform: booleanAttribute });\n readonly indicatorsPosition = input<TxGalleriaPosition>('bottom');\n readonly changeItemOnIndicatorHover = input(false, { transform: booleanAttribute });\n readonly circular = input(false, { transform: booleanAttribute });\n readonly autoPlay = input(false, { transform: booleanAttribute });\n readonly transitionInterval = input(4000, { transform: numberAttribute });\n readonly shouldStopAutoplayByClick = input(true, { transform: booleanAttribute });\n readonly swipe = input(true, { transform: booleanAttribute });\n readonly effect = input<TxSwapEffect>('slide');\n readonly prevIcon = input<TxIconName | (string & {})>('chevron-left');\n readonly nextIcon = input<TxIconName | (string & {})>('chevron-right');\n readonly closeIcon = input<TxIconName | (string & {})>('times');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraGalleriaTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxGalleriaPart, TxGalleria> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('galleria', this, this.pt, this.ptOptions);\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-galleria'));\n readonly frameStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n readonly maskStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().mask?.style }));\n\n protected readonly itemTemplate = contentChild(TxGalleriaItemTemplate);\n protected readonly thumbnailTemplate = contentChild(TxGalleriaThumbnailTemplate);\n protected readonly captionTemplate = contentChild(TxGalleriaCaptionTemplate);\n protected readonly indicatorTemplate = contentChild(TxGalleriaIndicatorTemplate);\n protected readonly header = contentChild(TxGalleriaHeader);\n protected readonly footer = contentChild(TxGalleriaFooter);\n private readonly layerTemplate = viewChild.required<TemplateRef<unknown>>('layer');\n\n readonly playing = signal(false);\n readonly leaving = signal<number | null>(null);\n private shownIndex: number | null = null;\n private lastDirection: 1 | -1 | null = null;\n private swapToken = 0;\n readonly hovered = signal(false);\n readonly focused = signal(false);\n private readonly responsive = signal<TxGalleriaResponsiveOption | null>(null);\n\n readonly items = computed(() => this.value() ?? []);\n readonly count = computed(() => this.items().length);\n readonly current = computed(() => Math.min(Math.max(Math.floor(this.activeIndex()), 0), Math.max(this.count() - 1, 0)));\n readonly activeItem = computed(() => this.items()[this.current()]);\n readonly activeImage = computed(() => galleriaImage(this.activeItem()));\n readonly thumbnailsVertical = computed(() => this.thumbnailsPosition() === 'left' || this.thumbnailsPosition() === 'right');\n readonly visibleThumbnails = computed(() => Math.max(1, Math.min(Math.floor(this.responsive()?.numVisible ?? this.numVisible()), Math.max(this.count(), 1))));\n readonly thumbnailStart = computed(() => {\n const visible = this.visibleThumbnails();\n const start = this.current() - Math.floor(visible / 2);\n return Math.min(Math.max(start, 0), Math.max(this.count() - visible, 0));\n });\n readonly thumbnailBasis = computed(() => percent(100 / this.visibleThumbnails()));\n readonly thumbnailTransform = computed(() => {\n const shift = percent((-this.thumbnailStart() * 100) / this.visibleThumbnails());\n return this.thumbnailsVertical() ? `translate3d(0, ${shift}, 0)` : `translate3d(${shift}, 0, 0)`;\n });\n readonly canPrev = computed(() => this.count() > 1 && (this.circular() || this.current() > 0));\n readonly canNext = computed(() => this.count() > 1 && (this.circular() || this.current() < this.count() - 1));\n readonly indexes = computed(() => Array.from({ length: this.count() }, (_, index) => index));\n readonly hasCaption = computed(() => !!this.captionTemplate() || !!this.activeImage()?.title || !!this.activeImage()?.description);\n readonly label = computed(() => this.ariaLabel() ?? this.translations().gallery);\n\n constructor() {\n effect(() => {\n const auto = this.autoPlay();\n untracked(() => this.playing.set(auto));\n });\n\n effect((onCleanup) => {\n const options = this.responsiveOptions();\n const view = this.document.defaultView;\n if (!options?.length || !view?.matchMedia) {\n this.responsive.set(null);\n return;\n }\n const entries = [...options]\n .sort((a, b) => parseFloat(a.breakpoint) - parseFloat(b.breakpoint))\n .map((option) => ({ option, query: view.matchMedia(`(max-width: ${option.breakpoint})`) }));\n const pick = () => this.responsive.set(entries.find((entry) => entry.query.matches)?.option ?? null);\n pick();\n entries.forEach((entry) => entry.query.addEventListener('change', pick));\n onCleanup(() => entries.forEach((entry) => entry.query.removeEventListener('change', pick)));\n });\n\n effect((onCleanup) => {\n const interval = this.transitionInterval();\n const shown = !this.fullScreen() || this.visible();\n if (!this.playing() || !shown || this.count() < 2 || this.hovered() || this.focused()) {\n return;\n }\n const timer = setInterval(() => this.move(1, true), interval);\n onCleanup(() => clearInterval(timer));\n });\n\n effect(() => {\n const index = this.current();\n untracked(() => this.swapTo(index));\n });\n\n effect(() => {\n const wanted = this.fullScreen() && this.visible();\n untracked(() => (wanted ? this.openLayer() : this.closeLayer()));\n });\n\n inject(DestroyRef).onDestroy(() => {\n const layer = this.layer;\n this.layer = null;\n void layer?.close();\n this.releaseSwipe();\n });\n }\n\n next(): void {\n this.move(1, false);\n }\n\n prev(): void {\n this.move(-1, false);\n }\n\n show(index: number): void {\n this.lastDirection = index < this.current() ? -1 : 1;\n this.activeIndex.set(Math.min(Math.max(index, 0), Math.max(this.count() - 1, 0)));\n }\n\n startAutoplay(): void {\n this.playing.set(true);\n }\n\n stopAutoplay(): void {\n this.playing.set(false);\n }\n\n isAutoPlayActive(): boolean {\n return this.playing();\n }\n\n close(): void {\n this.visible.set(false);\n }\n\n imageLabel(index: number): string {\n return this.translations().galleryImage.replace('{index}', String(index + 1));\n }\n\n slideLabel(index: number): string {\n return this.translations()\n .slideOf.replace('{index}', String(index + 1))\n .replace('{total}', String(this.count()));\n }\n\n imageOf(item: unknown): TxGalleriaImage | null {\n return galleriaImage(item);\n }\n\n protected onUserMove(direction: 1 | -1): void {\n this.move(direction, false);\n this.stopByClick();\n }\n\n protected onSelect(index: number): void {\n this.show(index);\n this.stopByClick();\n }\n\n protected onIndicatorHover(index: number): void {\n if (this.changeItemOnIndicatorHover()) {\n this.onSelect(index);\n }\n }\n\n protected onListKeydown(event: KeyboardEvent, selector: string): void {\n const last = this.count() - 1;\n const forward = ['ArrowRight', 'ArrowDown'];\n const backward = ['ArrowLeft', 'ArrowUp'];\n const target = forward.includes(event.key)\n ? this.current() + 1\n : backward.includes(event.key)\n ? this.current() - 1\n : event.key === 'Home'\n ? 0\n : event.key === 'End'\n ? last\n : null;\n if (target === null || last < 0) {\n return;\n }\n event.preventDefault();\n const index = target > last ? (this.circular() ? 0 : last) : target < 0 ? (this.circular() ? last : 0) : target;\n this.onSelect(index);\n const list = (event.currentTarget as HTMLElement).closest('ul');\n queueMicrotask(() => list?.querySelectorAll<HTMLElement>(selector)[index]?.focus());\n }\n\n protected onItemsKeydown(event: KeyboardEvent): void {\n if (event.target !== event.currentTarget) {\n return;\n }\n if (event.key === 'ArrowRight' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.onUserMove(event.key === 'ArrowRight' ? 1 : -1);\n }\n }\n\n protected onFocusOut(event: FocusEvent): void {\n const container = event.currentTarget as HTMLElement;\n if (!container.contains(event.relatedTarget as Node | null)) {\n this.focused.set(false);\n }\n }\n\n protected onSwipeStart(event: PointerEvent): void {\n if (!this.swipe() || this.count() < 2 || (event.pointerType === 'mouse' && event.button !== 0)) {\n return;\n }\n if ((event.target as Element).closest('button, a, input, select, textarea')) {\n return;\n }\n this.swipeStart = { pointerId: event.pointerId, x: event.clientX, y: event.clientY };\n this.document.addEventListener('pointerup', this.onSwipeEnd);\n this.document.addEventListener('pointercancel', this.onSwipeCancel);\n }\n\n private readonly onSwipeEnd = (event: PointerEvent): void => {\n const start = this.swipeStart;\n this.releaseSwipe();\n if (!start || event.pointerId !== start.pointerId) {\n return;\n }\n const dx = event.clientX - start.x;\n const dy = event.clientY - start.y;\n if (Math.abs(dx) >= SWIPE_MIN && Math.abs(dx) > Math.abs(dy)) {\n this.onUserMove(dx < 0 ? 1 : -1);\n }\n };\n\n private readonly onSwipeCancel = (): void => {\n this.releaseSwipe();\n };\n\n private releaseSwipe(): void {\n this.swipeStart = null;\n this.document.removeEventListener('pointerup', this.onSwipeEnd);\n this.document.removeEventListener('pointercancel', this.onSwipeCancel);\n }\n\n private stopByClick(): void {\n if (this.shouldStopAutoplayByClick()) {\n this.stopAutoplay();\n }\n }\n\n private move(direction: 1 | -1, wrap: boolean): void {\n const count = this.count();\n if (count < 2) {\n return;\n }\n const next = this.current() + direction;\n this.lastDirection = direction;\n if (next >= 0 && next < count) {\n this.activeIndex.set(next);\n } else if (this.circular() || wrap) {\n this.activeIndex.set(next < 0 ? count - 1 : 0);\n } else if (this.playing()) {\n this.stopAutoplay();\n }\n }\n\n private swapTo(index: number): void {\n const previous = this.shownIndex;\n this.shownIndex = index;\n const token = ++this.swapToken;\n const direction = this.lastDirection ?? (previous !== null && index < previous ? -1 : 1);\n this.lastDirection = null;\n if (previous === null || previous === index || previous >= this.count()) {\n this.leaving.set(null);\n return;\n }\n const motion = txSwapMotion(this.effect(), direction, 'x');\n if (!motion) {\n this.leaving.set(null);\n return;\n }\n this.leaving.set(previous);\n afterNextRender(\n () => {\n if (token !== this.swapToken) {\n return;\n }\n const root = this.fullScreen() ? (this.layer?.element ?? null) : this.host.nativeElement;\n const stage = root?.querySelector('.tx-galleria__stage') ?? null;\n const incoming = stage?.querySelector<HTMLElement>(`.tx-galleria__item[data-index=\"${index}\"]`) ?? null;\n const outgoing = stage?.querySelector<HTMLElement>(`.tx-galleria__item[data-index=\"${previous}\"]`) ?? null;\n if (!stage || !txCanAnimate(incoming) || !outgoing) {\n this.leaving.set(null);\n return;\n }\n stage.querySelectorAll<HTMLElement>('.tx-galleria__item').forEach((item) => item.getAnimations().forEach((animation) => animation.cancel()));\n const duration = txCssTime(stage, '--tx-galleria-slide-duration', SWAP_DURATION);\n const easing = (stage.ownerDocument.defaultView?.getComputedStyle(stage).getPropertyValue('--tx-galleria-slide-easing') ?? '').trim() || 'ease';\n const part = motion.sequential ? duration / 2 : duration;\n const leave = outgoing.animate(motion.leave, { duration: part, easing, fill: 'forwards' });\n incoming.animate(motion.enter, { duration: part, easing, delay: motion.sequential ? part : 0, fill: 'backwards' });\n void leave.finished\n .catch(() => undefined)\n .then(() => {\n if (token === this.swapToken) {\n this.leaving.set(null);\n leave.cancel();\n }\n });\n },\n { injector: this.injector },\n );\n }\n\n private openLayer(): void {\n if (this.layer) {\n return;\n }\n this.layer = openImageLayer(this.layerTemplate(), {\n injector: this.injector,\n viewContainerRef: this.viewContainerRef,\n focus: '.tx-galleria__close',\n onEscape: () => this.close(),\n onDetach: () => this.close(),\n });\n }\n\n private closeLayer(): void {\n const layer = this.layer;\n this.layer = null;\n void layer?.close();\n }\n}\n","<ng-template #frame>\n <div\n class=\"tx-galleria__frame\"\n role=\"region\"\n [class]=\"passThrough().root?.class\"\n [style]=\"frameStyle()\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.data-thumbnails]=\"showThumbnails() ? thumbnailsPosition() : null\"\n [attr.data-indicators]=\"showIndicators() ? indicatorsPosition() : null\"\n [attr.aria-roledescription]=\"translations().gallery\"\n [attr.aria-label]=\"label()\"\n [class.tx-galleria__frame--fullscreen]=\"fullScreen()\"\n [class.tx-galleria__frame--hover-navigators]=\"showItemNavigatorsOnHover()\"\n [class.tx-galleria__frame--inset-indicators]=\"showIndicators() && showIndicatorsOnItem()\"\n (mouseenter)=\"hovered.set(true)\"\n (mouseleave)=\"hovered.set(false)\"\n (focusin)=\"focused.set(true)\"\n (focusout)=\"onFocusOut($event)\"\n >\n @if (header()) {\n <div class=\"tx-galleria__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-content select=\"[txGalleriaHeader]\" />\n </div>\n }\n <div class=\"tx-galleria__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <div class=\"tx-galleria__items-container\">\n <div\n class=\"tx-galleria__items\"\n tabindex=\"0\"\n [class]=\"passThrough().items?.class\"\n [style]=\"passThrough().items?.style\"\n [attr.aria-live]=\"playing() ? 'off' : 'polite'\"\n (keydown)=\"onItemsKeydown($event)\"\n (pointerdown)=\"onSwipeStart($event)\"\n (dragstart)=\"$event.preventDefault()\"\n >\n <div class=\"tx-galleria__stage\">\n @for (item of items(); track $index) {\n @let index = $index;\n @let shown = index === current();\n @let image = imageOf(item);\n <div\n class=\"tx-galleria__item\"\n role=\"group\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n [class.tx-galleria__item--active]=\"shown\"\n [class.tx-galleria__item--leaving]=\"index === leaving()\"\n [attr.data-index]=\"index\"\n [attr.aria-roledescription]=\"translations().slide\"\n [attr.aria-label]=\"slideLabel(index)\"\n [attr.aria-hidden]=\"shown ? null : 'true'\"\n [attr.inert]=\"shown ? null : ''\"\n >\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.template\" [ngTemplateOutletContext]=\"{ $implicit: item, index }\" />\n } @else if (image) {\n <img\n class=\"tx-galleria__image\"\n [src]=\"image.src\"\n [attr.alt]=\"image.alt ?? image.title ?? ''\"\n [attr.width]=\"image.width ?? null\"\n [attr.height]=\"image.height ?? null\"\n />\n }\n </div>\n }\n </div>\n @if (showItemNavigators()) {\n <button\n type=\"button\"\n class=\"tx-galleria__navigator tx-galleria__prev\"\n [class]=\"passThrough().navigator?.class\"\n [style]=\"passThrough().navigator?.style\"\n [disabled]=\"!canPrev()\"\n [attr.aria-label]=\"translations().previousImage\"\n (click)=\"onUserMove(-1)\"\n >\n <tx-icon [name]=\"prevIcon()\" />\n </button>\n <button\n type=\"button\"\n class=\"tx-galleria__navigator tx-galleria__next\"\n [class]=\"passThrough().navigator?.class\"\n [style]=\"passThrough().navigator?.style\"\n [disabled]=\"!canNext()\"\n [attr.aria-label]=\"translations().nextImage\"\n (click)=\"onUserMove(1)\"\n >\n <tx-icon [name]=\"nextIcon()\" />\n </button>\n }\n @if (hasCaption() && count()) {\n <div class=\"tx-galleria__caption\" [class]=\"passThrough().caption?.class\" [style]=\"passThrough().caption?.style\">\n @if (captionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.template\" [ngTemplateOutletContext]=\"{ $implicit: activeItem(), index: current() }\" />\n } @else if (activeImage(); as image) {\n @if (image.title) {\n <div class=\"tx-galleria__caption-title\">{{ image.title }}</div>\n }\n @if (image.description) {\n <div class=\"tx-galleria__caption-text\">{{ image.description }}</div>\n }\n }\n </div>\n }\n </div>\n @if (showIndicators() && count() > 1) {\n <ul\n class=\"tx-galleria__indicators\"\n [class]=\"passThrough().indicators?.class\"\n [style]=\"passThrough().indicators?.style\"\n [attr.aria-label]=\"label()\"\n >\n @for (dot of indexes(); track dot) {\n @let active = dot === current();\n <li class=\"tx-galleria__indicator\" [class]=\"passThrough().indicator?.class\" [style]=\"passThrough().indicator?.style\" [class.tx-galleria__indicator--active]=\"active\">\n <button\n type=\"button\"\n class=\"tx-galleria__indicator-button\"\n [attr.aria-label]=\"imageLabel(dot)\"\n [attr.aria-current]=\"active ? 'true' : null\"\n [tabIndex]=\"active ? 0 : -1\"\n (click)=\"onSelect(dot)\"\n (keydown)=\"onListKeydown($event, '.tx-galleria__indicator-button')\"\n (mouseenter)=\"onIndicatorHover(dot)\"\n >\n @if (indicatorTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.template\" [ngTemplateOutletContext]=\"{ $implicit: dot, active }\" />\n }\n </button>\n </li>\n }\n </ul>\n }\n </div>\n @if (showThumbnails() && count()) {\n <div class=\"tx-galleria__thumbnails\" [class]=\"passThrough().thumbnails?.class\" [style]=\"passThrough().thumbnails?.style\">\n @if (showThumbnailNavigators()) {\n <button\n type=\"button\"\n class=\"tx-galleria__thumbnail-navigator\"\n [class]=\"passThrough().thumbnailNavigator?.class\"\n [style]=\"passThrough().thumbnailNavigator?.style\"\n [disabled]=\"!canPrev()\"\n [attr.aria-label]=\"translations().previousThumbnails\"\n (click)=\"onUserMove(-1)\"\n >\n <tx-icon [name]=\"thumbnailsVertical() ? 'chevron-up' : prevIcon()\" />\n </button>\n }\n <div class=\"tx-galleria__thumbnails-viewport\" [style.height]=\"thumbnailsVertical() ? verticalThumbnailViewPortHeight() : null\">\n <ul\n class=\"tx-galleria__thumbnail-items\"\n [attr.aria-label]=\"translations().thumbnails\"\n [style.transform]=\"thumbnailTransform()\"\n >\n @for (item of items(); track $index) {\n @let active = $index === current();\n @let image = imageOf(item);\n <li class=\"tx-galleria__thumbnail-item\" [class.tx-galleria__thumbnail-item--active]=\"active\" [style.flex-basis]=\"thumbnailBasis()\">\n <button\n type=\"button\"\n class=\"tx-galleria__thumbnail\"\n [class]=\"passThrough().thumbnail?.class\"\n [style]=\"passThrough().thumbnail?.style\"\n [attr.aria-label]=\"thumbnailTemplate() ? null : imageLabel($index)\"\n [attr.aria-current]=\"active ? 'true' : null\"\n [tabIndex]=\"active ? 0 : -1\"\n (click)=\"onSelect($index)\"\n (keydown)=\"onListKeydown($event, '.tx-galleria__thumbnail')\"\n >\n @if (thumbnailTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.template\" [ngTemplateOutletContext]=\"{ $implicit: item, index: $index, active }\" />\n } @else if (image) {\n <img\n class=\"tx-galleria__thumbnail-image\"\n alt=\"\"\n [src]=\"image.thumbnailSrc ?? image.src\"\n [attr.width]=\"image.width ?? null\"\n [attr.height]=\"image.height ?? null\"\n />\n }\n </button>\n </li>\n }\n </ul>\n </div>\n @if (showThumbnailNavigators()) {\n <button\n type=\"button\"\n class=\"tx-galleria__thumbnail-navigator\"\n [class]=\"passThrough().thumbnailNavigator?.class\"\n [style]=\"passThrough().thumbnailNavigator?.style\"\n [disabled]=\"!canNext()\"\n [attr.aria-label]=\"translations().nextThumbnails\"\n (click)=\"onUserMove(1)\"\n >\n <tx-icon [name]=\"thumbnailsVertical() ? 'chevron-down' : nextIcon()\" />\n </button>\n }\n </div>\n }\n </div>\n @if (footer()) {\n <div class=\"tx-galleria__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-content select=\"[txGalleriaFooter]\" />\n </div>\n }\n </div>\n</ng-template>\n\n@if (!fullScreen()) {\n <ng-container [ngTemplateOutlet]=\"frame\" />\n}\n\n<ng-template #layer>\n <div\n class=\"tx-galleria-mask\"\n role=\"dialog\"\n aria-modal=\"true\"\n [class]=\"passThrough().mask?.class\"\n [style]=\"maskStyle()\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.aria-label]=\"label()\"\n >\n <div class=\"tx-galleria-mask__backdrop\" aria-hidden=\"true\" (click)=\"close()\"></div>\n <button\n type=\"button\"\n class=\"tx-galleria__close\"\n [class]=\"passThrough().closeButton?.class\"\n [style]=\"passThrough().closeButton?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"close()\"\n >\n <tx-icon [name]=\"closeIcon()\" />\n </button>\n <ng-container [ngTemplateOutlet]=\"frame\" />\n </div>\n</ng-template>\n"],"mappings":";;;;;;;;;AAIA,IAAa,yBAAb,MAAa,uBAAsB;CACxB,WAAW,OAA2C,WAAW;CAD/D,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAsB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAtB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAsB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAtB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAsB,YAA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,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,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,sBAAsB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,mBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACjB,2BAA2B,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAC7B,yBAAyB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,mBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACvB,2BAA2B,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACtC,gBAAgB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAChB,gBAAgB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACiB,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -21,8 +21,10 @@ var TxIconField = class TxIconField {
21
21
  start = viewChild.required("start", ...ngDevMode ? [{ debugName: "start" }] : /* istanbul ignore next */ []);
22
22
  end = viewChild.required("end", ...ngDevMode ? [{ debugName: "end" }] : /* istanbul ignore next */ []);
23
23
  isFluid = injectFluid(this.fluid);
24
- startInset = signal(0, ...ngDevMode ? [{ debugName: "startInset" }] : /* istanbul ignore next */ []);
25
- endInset = signal(0, ...ngDevMode ? [{ debugName: "endInset" }] : /* istanbul ignore next */ []);
24
+ startInset = signal(null, ...ngDevMode ? [{ debugName: "startInset" }] : /* istanbul ignore next */ []);
25
+ endInset = signal(null, ...ngDevMode ? [{ debugName: "endInset" }] : /* istanbul ignore next */ []);
26
+ startContent = signal("none", ...ngDevMode ? [{ debugName: "startContent" }] : /* istanbul ignore next */ []);
27
+ endContent = signal("none", ...ngDevMode ? [{ debugName: "endContent" }] : /* istanbul ignore next */ []);
26
28
  hasValue = signal(false, ...ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []);
27
29
  isEditable = signal(true, ...ngDevMode ? [{ debugName: "isEditable" }] : /* istanbul ignore next */ []);
28
30
  constructor() {
@@ -31,6 +33,10 @@ var TxIconField = class TxIconField {
31
33
  this.watchValue();
32
34
  });
33
35
  }
36
+ ngAfterViewInit() {
37
+ this.startContent.set(this.slotContent(this.start().nativeElement));
38
+ this.endContent.set(this.slotContent(this.end().nativeElement));
39
+ }
34
40
  value() {
35
41
  return this.input()?.nativeElement?.value ?? "";
36
42
  }
@@ -75,6 +81,10 @@ var TxIconField = class TxIconField {
75
81
  });
76
82
  update();
77
83
  }
84
+ slotContent(slot) {
85
+ if (slot.querySelector(".tx-input-action")) return "action";
86
+ return slot.querySelector(".tx-input-icon") ? "icon" : "none";
87
+ }
78
88
  inset(container) {
79
89
  const width = container.getBoundingClientRect().width;
80
90
  return width ? Math.round(width + 6) : 0;
@@ -103,8 +113,11 @@ var TxIconField = class TxIconField {
103
113
  host: {
104
114
  properties: {
105
115
  "class.tx-icon-field--fluid": "isFluid()",
106
- "style.--tx-field-inset-start": "startInset() + \"px\"",
107
- "style.--tx-field-inset-end": "endInset() + \"px\""
116
+ "class.tx-icon-field--start-icon": "startContent() === \"icon\"",
117
+ "class.tx-icon-field--end-icon": "endContent() === \"icon\"",
118
+ "class.tx-icon-field--end-action": "endContent() === \"action\"",
119
+ "style.--tx-field-inset-start": "startInset() === null ? null : startInset() + \"px\"",
120
+ "style.--tx-field-inset-end": "endInset() === null ? null : endInset() + \"px\""
108
121
  },
109
122
  classAttribute: "tx-icon-field"
110
123
  },
@@ -147,7 +160,7 @@ var TxIconField = class TxIconField {
147
160
  }],
148
161
  ngImport: i0,
149
162
  template: "<span #start class=\"tx-icon-field__slot tx-icon-field__slot--start\"><ng-content select=\"tx-input-icon:not([position=end])\" /></span>\n<ng-content />\n<span #end class=\"tx-icon-field__slot tx-icon-field__slot--end\"><ng-content select=\"tx-input-icon[position=end], tx-input-clear, tx-input-copy\" /></span>\n",
150
- styles: [":host{position:relative;display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-icon-field--fluid){display:flex;width:100%}.tx-icon-field__slot{position:absolute;top:50%;z-index:1;display:flex;align-items:center;gap:4px;transform:translateY(-50%);pointer-events:none}.tx-icon-field__slot:empty{display:none}.tx-icon-field__slot--start{left:var(--tx-form-field-padding-x)}.tx-icon-field__slot--end{right:calc(var(--tx-form-field-padding-x) - 4px)}\n"],
163
+ styles: [":host{--_icon-room: calc(var(--tx-form-field-font-size) + 6px);--_action-room: 30px ;position:relative;display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-icon-field--start-icon){--tx-field-inset-start: var(--_icon-room)}:host(.tx-icon-field--end-icon){--tx-field-inset-end: var(--_icon-room)}:host(.tx-icon-field--end-action){--tx-field-inset-end: var(--_action-room)}:host(.tx-icon-field--fluid){display:flex;width:100%}.tx-icon-field__slot{position:absolute;top:50%;z-index:1;display:flex;align-items:center;gap:4px;transform:translateY(-50%);pointer-events:none}.tx-icon-field__slot:empty{display:none}.tx-icon-field__slot--start{left:var(--tx-form-field-padding-x)}.tx-icon-field__slot--end{right:calc(var(--tx-form-field-padding-x) - 4px)}\n"],
151
164
  changeDetection: i0.ChangeDetectionStrategy.OnPush
152
165
  });
153
166
  };
@@ -164,11 +177,14 @@ i0.ɵɵngDeclareClassMetadata({
164
177
  host: {
165
178
  class: "tx-icon-field",
166
179
  "[class.tx-icon-field--fluid]": "isFluid()",
167
- "[style.--tx-field-inset-start]": "startInset() + \"px\"",
168
- "[style.--tx-field-inset-end]": "endInset() + \"px\""
180
+ "[class.tx-icon-field--start-icon]": "startContent() === \"icon\"",
181
+ "[class.tx-icon-field--end-icon]": "endContent() === \"icon\"",
182
+ "[class.tx-icon-field--end-action]": "endContent() === \"action\"",
183
+ "[style.--tx-field-inset-start]": "startInset() === null ? null : startInset() + \"px\"",
184
+ "[style.--tx-field-inset-end]": "endInset() === null ? null : endInset() + \"px\""
169
185
  },
170
186
  template: "<span #start class=\"tx-icon-field__slot tx-icon-field__slot--start\"><ng-content select=\"tx-input-icon:not([position=end])\" /></span>\n<ng-content />\n<span #end class=\"tx-icon-field__slot tx-icon-field__slot--end\"><ng-content select=\"tx-input-icon[position=end], tx-input-clear, tx-input-copy\" /></span>\n",
171
- styles: [":host{position:relative;display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-icon-field--fluid){display:flex;width:100%}.tx-icon-field__slot{position:absolute;top:50%;z-index:1;display:flex;align-items:center;gap:4px;transform:translateY(-50%);pointer-events:none}.tx-icon-field__slot:empty{display:none}.tx-icon-field__slot--start{left:var(--tx-form-field-padding-x)}.tx-icon-field__slot--end{right:calc(var(--tx-form-field-padding-x) - 4px)}\n"]
187
+ styles: [":host{--_icon-room: calc(var(--tx-form-field-font-size) + 6px);--_action-room: 30px ;position:relative;display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-icon-field--start-icon){--tx-field-inset-start: var(--_icon-room)}:host(.tx-icon-field--end-icon){--tx-field-inset-end: var(--_icon-room)}:host(.tx-icon-field--end-action){--tx-field-inset-end: var(--_action-room)}:host(.tx-icon-field--fluid){display:flex;width:100%}.tx-icon-field__slot{position:absolute;top:50%;z-index:1;display:flex;align-items:center;gap:4px;transform:translateY(-50%);pointer-events:none}.tx-icon-field__slot:empty{display:none}.tx-icon-field__slot--start{left:var(--tx-form-field-padding-x)}.tx-icon-field__slot--end{right:calc(var(--tx-form-field-padding-x) - 4px)}\n"]
172
188
  }]
173
189
  }],
174
190
  ctorParameters: () => [],
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-icon-field.mjs","names":[],"sources":["../../../../packages/ui/icon-field/src/icon-field.component.ts","../../../../packages/ui/icon-field/src/icon-field.component.html","../../../../packages/ui/icon-field/src/input-icon.component.ts","../../../../packages/ui/icon-field/src/input-clear.component.ts","../../../../packages/ui/icon-field/src/input-copy.component.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n afterNextRender,\n contentChild,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxInput } from '@tectra-ng/ui/input';\n\n@Component({\n selector: 'tx-icon-field',\n templateUrl: './icon-field.component.html',\n styleUrl: './icon-field.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-icon-field',\n '[class.tx-icon-field--fluid]': 'isFluid()',\n '[style.--tx-field-inset-start]': 'startInset() + \"px\"',\n '[style.--tx-field-inset-end]': 'endInset() + \"px\"',\n },\n})\nexport class TxIconField {\n private destroyRef = inject(DestroyRef);\n\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly input = contentChild(TxInput, { read: ElementRef });\n readonly inputDirective = contentChild(TxInput);\n readonly control = contentChild(NgControl);\n readonly start = viewChild.required<ElementRef<HTMLElement>>('start');\n readonly end = viewChild.required<ElementRef<HTMLElement>>('end');\n\n readonly isFluid = injectFluid(this.fluid);\n readonly startInset = signal(0);\n readonly endInset = signal(0);\n readonly hasValue = signal(false);\n readonly isEditable = signal(true);\n\n constructor() {\n afterNextRender(() => {\n this.watchInsets();\n this.watchValue();\n });\n }\n\n value(): string {\n return (this.input()?.nativeElement as HTMLInputElement | undefined)?.value ?? '';\n }\n\n clear(): void {\n const element = this.input()?.nativeElement as HTMLInputElement | undefined;\n if (!element) {\n return;\n }\n const control = this.control()?.control;\n if (control) {\n control.setValue('');\n control.markAsDirty();\n } else {\n element.value = '';\n element.dispatchEvent(new Event('input', { bubbles: true }));\n }\n this.hasValue.set(false);\n element.focus();\n }\n\n private watchInsets(): void {\n if (typeof ResizeObserver === 'undefined') {\n return;\n }\n const measure = () => {\n this.startInset.set(this.inset(this.start().nativeElement));\n this.endInset.set(this.inset(this.end().nativeElement));\n };\n const observer = new ResizeObserver(measure);\n observer.observe(this.start().nativeElement);\n observer.observe(this.end().nativeElement);\n measure();\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n\n private watchValue(): void {\n const element = this.input()?.nativeElement as HTMLInputElement | undefined;\n if (!element) {\n return;\n }\n const update = () => {\n this.hasValue.set(!!element.value);\n this.isEditable.set(!element.disabled && !element.readOnly);\n };\n element.addEventListener('input', update);\n const subscription = this.control()?.control?.events.subscribe(() => queueMicrotask(update));\n this.destroyRef.onDestroy(() => {\n element.removeEventListener('input', update);\n subscription?.unsubscribe();\n });\n update();\n }\n\n private inset(container: HTMLElement): number {\n const width = container.getBoundingClientRect().width;\n return width ? Math.round(width + 6) : 0;\n }\n}\n","<span #start class=\"tx-icon-field__slot tx-icon-field__slot--start\"><ng-content select=\"tx-input-icon:not([position=end])\" /></span>\n<ng-content />\n<span #end class=\"tx-icon-field__slot tx-icon-field__slot--end\"><ng-content select=\"tx-input-icon[position=end], tx-input-clear, tx-input-copy\" /></span>\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TxInputIconPosition } from './icon-field.types';\n\n@Component({\n selector: 'tx-input-icon',\n imports: [TxIcon],\n template: `\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else if (icon()) {\n <span [class]=\"icon()\"></span>\n }\n <ng-content />\n `,\n styleUrl: './input-icon.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-icon', 'aria-hidden': 'true' },\n})\nexport class TxInputIcon {\n private txIconRegistry = inject(TxIconRegistry);\n\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly position = input<TxInputIconPosition>('start');\n\n readonly iconName = computed(() => {\n const icon = this.icon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n}\n","import { ChangeDetectionStrategy, Component, inject, output } from '@angular/core';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxIconField } from './icon-field.component';\n\n@Component({\n selector: 'tx-input-clear',\n imports: [TxIcon],\n template: `\n @if (field.hasValue() && field.isEditable()) {\n <button type=\"button\" class=\"tx-input-action\" [attr.aria-label]=\"translations().clear\" [title]=\"translations().clear\" (click)=\"clear()\">\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './input-action.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-clear' },\n})\nexport class TxInputClear {\n readonly field = inject(TxIconField);\n readonly translations = injectTranslations();\n\n readonly cleared = output<void>();\n\n clear(): void {\n this.field.clear();\n this.cleared.emit();\n }\n}\n","import { ChangeDetectionStrategy, Component, DestroyRef, inject, output, signal } from '@angular/core';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxIconField } from './icon-field.component';\n\n@Component({\n selector: 'tx-input-copy',\n imports: [TxIcon],\n template: `\n <button\n type=\"button\"\n class=\"tx-input-action\"\n [class.tx-input-action--done]=\"isCopied()\"\n [attr.aria-label]=\"isCopied() ? translations().copied : translations().copy\"\n [title]=\"isCopied() ? translations().copied : translations().copy\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'copy'\" />\n </button>\n `,\n styleUrl: './input-action.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-copy' },\n})\nexport class TxInputCopy {\n private field = inject(TxIconField);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly translations = injectTranslations();\n readonly isCopied = signal(false);\n\n readonly copied = output<string>();\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const value = this.field.value();\n navigator.clipboard?.writeText(value);\n this.isCopied.set(true);\n this.copied.emit(value);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), 1500);\n }\n}\n"],"mappings":";;;;;;;;AA6BA,IAAa,cAAb,MAAa,YAAW;CACd,aAAa,OAAO,UAAU;CAE7B,QAAQ,MAAoC,QAAS;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CAEnF,QAAQ,aAAa,SAAO;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,MAAM;CAAU,CAAA;CAChD,iBAAiB,aAAa,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;CACtC,UAAU,aAAa,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACjC,QAAQ,UAAU,SAAkC,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAC5D,MAAM,UAAU,SAAkC,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;CAExD,UAAU,YAAY,KAAK,KAAK;CAChC,aAAa,OAAO,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CACtB,WAAW,OAAO,GAAE,GAAA,YAAA,C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AAK,SAAS,aAAa,KAAK,KAAK,CAAC;CAC3E;CAEA,OAAI;EACF,MAAM,QAAQ,KAAK,MAAM,MAAK;EAC9B,UAAU,WAAW,UAAU,KAAK;EACpC,KAAK,SAAS,IAAI,IAAI;EACtB,KAAK,OAAO,KAAK,KAAK;EACtB,IAAI,KAAK,OACP,aAAa,KAAK,KAAK;EAEzB,KAAK,QAAQ,iBAAiB,KAAK,SAAS,IAAI,KAAK,GAAG,IAAI;CAC9D;CAtBW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAW,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAX,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAW,cAAA;EAAA,UAAA;EAAA,SAAA,EAAA,QAAA,SAAA;EAAA,MAAA,EAAA,gBAAA,gBAAA;EAAA,UAAA;EAAA,UAhBZ;;;;;;;;;;;;EAWT,UAAA;EAAA,QAAA,CAAA,2mBAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MAZS;GAAM,UAAA;GAAA,QAAA,CAAA,MAAA;EAAA,CAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAiBL,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAW,YAAA,CAAA;EAnBvB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAe,SAChB,CAAC,MAAM;GAAC,UACP;;;;;;;;;;;;GAWT,iBAEgB,wBAAwB;GAAM,MACzC,EAAE,OAAO,gBAAe;GAAE,QAAA,CAAA,2mBAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-icon-field.mjs","names":[],"sources":["../../../../packages/ui/icon-field/src/icon-field.component.ts","../../../../packages/ui/icon-field/src/icon-field.component.html","../../../../packages/ui/icon-field/src/input-icon.component.ts","../../../../packages/ui/icon-field/src/input-clear.component.ts","../../../../packages/ui/icon-field/src/input-copy.component.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n afterNextRender,\n contentChild,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxInput } from '@tectra-ng/ui/input';\nimport { TxIconFieldSlotContent } from './icon-field.types';\n\n@Component({\n selector: 'tx-icon-field',\n templateUrl: './icon-field.component.html',\n styleUrl: './icon-field.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-icon-field',\n '[class.tx-icon-field--fluid]': 'isFluid()',\n '[class.tx-icon-field--start-icon]': 'startContent() === \"icon\"',\n '[class.tx-icon-field--end-icon]': 'endContent() === \"icon\"',\n '[class.tx-icon-field--end-action]': 'endContent() === \"action\"',\n '[style.--tx-field-inset-start]': 'startInset() === null ? null : startInset() + \"px\"',\n '[style.--tx-field-inset-end]': 'endInset() === null ? null : endInset() + \"px\"',\n },\n})\nexport class TxIconField implements AfterViewInit {\n private destroyRef = inject(DestroyRef);\n\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly input = contentChild(TxInput, { read: ElementRef });\n readonly inputDirective = contentChild(TxInput);\n readonly control = contentChild(NgControl);\n readonly start = viewChild.required<ElementRef<HTMLElement>>('start');\n readonly end = viewChild.required<ElementRef<HTMLElement>>('end');\n\n readonly isFluid = injectFluid(this.fluid);\n readonly startInset = signal<number | null>(null);\n readonly endInset = signal<number | null>(null);\n readonly startContent = signal<TxIconFieldSlotContent>('none');\n readonly endContent = signal<TxIconFieldSlotContent>('none');\n readonly hasValue = signal(false);\n readonly isEditable = signal(true);\n\n constructor() {\n afterNextRender(() => {\n this.watchInsets();\n this.watchValue();\n });\n }\n\n ngAfterViewInit(): void {\n this.startContent.set(this.slotContent(this.start().nativeElement));\n this.endContent.set(this.slotContent(this.end().nativeElement));\n }\n\n value(): string {\n return (this.input()?.nativeElement as HTMLInputElement | undefined)?.value ?? '';\n }\n\n clear(): void {\n const element = this.input()?.nativeElement as HTMLInputElement | undefined;\n if (!element) {\n return;\n }\n const control = this.control()?.control;\n if (control) {\n control.setValue('');\n control.markAsDirty();\n } else {\n element.value = '';\n element.dispatchEvent(new Event('input', { bubbles: true }));\n }\n this.hasValue.set(false);\n element.focus();\n }\n\n private watchInsets(): void {\n if (typeof ResizeObserver === 'undefined') {\n return;\n }\n const measure = () => {\n this.startInset.set(this.inset(this.start().nativeElement));\n this.endInset.set(this.inset(this.end().nativeElement));\n };\n const observer = new ResizeObserver(measure);\n observer.observe(this.start().nativeElement);\n observer.observe(this.end().nativeElement);\n measure();\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n\n private watchValue(): void {\n const element = this.input()?.nativeElement as HTMLInputElement | undefined;\n if (!element) {\n return;\n }\n const update = () => {\n this.hasValue.set(!!element.value);\n this.isEditable.set(!element.disabled && !element.readOnly);\n };\n element.addEventListener('input', update);\n const subscription = this.control()?.control?.events.subscribe(() => queueMicrotask(update));\n this.destroyRef.onDestroy(() => {\n element.removeEventListener('input', update);\n subscription?.unsubscribe();\n });\n update();\n }\n\n private slotContent(slot: HTMLElement): TxIconFieldSlotContent {\n if (slot.querySelector('.tx-input-action')) {\n return 'action';\n }\n return slot.querySelector('.tx-input-icon') ? 'icon' : 'none';\n }\n\n private inset(container: HTMLElement): number {\n const width = container.getBoundingClientRect().width;\n return width ? Math.round(width + 6) : 0;\n }\n}\n","<span #start class=\"tx-icon-field__slot tx-icon-field__slot--start\"><ng-content select=\"tx-input-icon:not([position=end])\" /></span>\n<ng-content />\n<span #end class=\"tx-icon-field__slot tx-icon-field__slot--end\"><ng-content select=\"tx-input-icon[position=end], tx-input-clear, tx-input-copy\" /></span>\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TxInputIconPosition } from './icon-field.types';\n\n@Component({\n selector: 'tx-input-icon',\n imports: [TxIcon],\n template: `\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else if (icon()) {\n <span [class]=\"icon()\"></span>\n }\n <ng-content />\n `,\n styleUrl: './input-icon.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-icon', 'aria-hidden': 'true' },\n})\nexport class TxInputIcon {\n private txIconRegistry = inject(TxIconRegistry);\n\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly position = input<TxInputIconPosition>('start');\n\n readonly iconName = computed(() => {\n const icon = this.icon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n}\n","import { ChangeDetectionStrategy, Component, inject, output } from '@angular/core';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxIconField } from './icon-field.component';\n\n@Component({\n selector: 'tx-input-clear',\n imports: [TxIcon],\n template: `\n @if (field.hasValue() && field.isEditable()) {\n <button type=\"button\" class=\"tx-input-action\" [attr.aria-label]=\"translations().clear\" [title]=\"translations().clear\" (click)=\"clear()\">\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './input-action.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-clear' },\n})\nexport class TxInputClear {\n readonly field = inject(TxIconField);\n readonly translations = injectTranslations();\n\n readonly cleared = output<void>();\n\n clear(): void {\n this.field.clear();\n this.cleared.emit();\n }\n}\n","import { ChangeDetectionStrategy, Component, DestroyRef, inject, output, signal } from '@angular/core';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxIconField } from './icon-field.component';\n\n@Component({\n selector: 'tx-input-copy',\n imports: [TxIcon],\n template: `\n <button\n type=\"button\"\n class=\"tx-input-action\"\n [class.tx-input-action--done]=\"isCopied()\"\n [attr.aria-label]=\"isCopied() ? translations().copied : translations().copy\"\n [title]=\"isCopied() ? translations().copied : translations().copy\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'copy'\" />\n </button>\n `,\n styleUrl: './input-action.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-copy' },\n})\nexport class TxInputCopy {\n private field = inject(TxIconField);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly translations = injectTranslations();\n readonly isCopied = signal(false);\n\n readonly copied = output<string>();\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const value = this.field.value();\n navigator.clipboard?.writeText(value);\n this.isCopied.set(true);\n this.copied.emit(value);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), 1500);\n }\n}\n"],"mappings":";;;;;;;;AAkCA,IAAa,cAAb,MAAa,YAAW;CACd,aAAa,OAAO,UAAU;CAE7B,QAAQ,MAAoC,QAAS;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CAEnF,QAAQ,aAAa,SAAO;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,MAAM;CAAU,CAAA;CAChD,iBAAiB,aAAa,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;CACtC,UAAU,aAAa,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACjC,QAAQ,UAAU,SAAkC,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAC5D,MAAM,UAAU,SAAkC,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;CAExD,UAAU,YAAY,KAAK,KAAK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