@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.
- package/carousel/README.md +53 -0
- package/datepicker/README.md +1 -1
- package/fesm2022/tectra-ng-ui-button.mjs +9 -3
- package/fesm2022/tectra-ng-ui-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-carousel.mjs +939 -0
- package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-galleria.mjs +1140 -0
- package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-icon-field.mjs +24 -8
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-image.mjs +759 -0
- package/fesm2022/tectra-ng-ui-image.mjs.map +1 -0
- package/galleria/README.md +62 -0
- package/image/README.md +54 -0
- package/package.json +55 -8
- package/types/tectra-ng-ui-button.d.ts +4 -2
- package/types/tectra-ng-ui-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-carousel.d.ts +263 -0
- package/types/tectra-ng-ui-carousel.d.ts.map +1 -0
- package/types/tectra-ng-ui-galleria.d.ts +407 -0
- package/types/tectra-ng-ui-galleria.d.ts.map +1 -0
- package/types/tectra-ng-ui-icon-field.d.ts +9 -4
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-image.d.ts +259 -0
- package/types/tectra-ng-ui-image.d.ts.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-image.mjs","names":[],"sources":["../../../../packages/ui/image/src/image.templates.ts","../../../../packages/ui/image/src/image-layer.ts","../../../../packages/ui/image/src/image.component.ts","../../../../packages/ui/image/src/image.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxImageIndicatorContext, TxImagePreviewContext } from './image.types';\n\n@Directive({ selector: 'ng-template[txImageIndicator]' })\nexport class TxImageIndicatorTemplate {\n readonly template = inject<TemplateRef<TxImageIndicatorContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxImageIndicatorTemplate, context: unknown): context is TxImageIndicatorContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txImagePreview]' })\nexport class TxImagePreviewTemplate {\n readonly template = inject<TemplateRef<TxImagePreviewContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxImagePreviewTemplate, context: unknown): context is TxImagePreviewContext {\n return !!context;\n }\n}\n","import { FocusTrapFactory } from '@angular/cdk/a11y';\nimport { createBlockScrollStrategy, createGlobalPositionStrategy, createOverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { DOCUMENT, Injector, TemplateRef, ViewContainerRef } from '@angular/core';\n\nconst LEAVE_LIMIT = 450;\n\nexport interface TxImageLayerOptions {\n injector: Injector;\n viewContainerRef: ViewContainerRef;\n focus?: string;\n onEscape?: () => void;\n onDetach?: () => void;\n}\n\nexport interface TxImageLayer {\n readonly element: HTMLElement;\n close(): Promise<void>;\n}\n\nfunction animationsOf(element: HTMLElement): Animation[] {\n return typeof element.getAnimations === 'function' ? element.getAnimations({ subtree: true }) : [];\n}\n\nexport function openImageLayer(template: TemplateRef<unknown>, options: TxImageLayerOptions): TxImageLayer {\n const { injector } = options;\n const document = injector.get(DOCUMENT);\n const previousFocus = document.activeElement as HTMLElement | null;\n const overlayRef = createOverlayRef(injector, {\n positionStrategy: createGlobalPositionStrategy(injector).top('0').left('0'),\n scrollStrategy: createBlockScrollStrategy(injector),\n width: '100%',\n height: '100%',\n panelClass: 'tx-image-layer',\n usePopover: false,\n disposeOnNavigation: true,\n });\n overlayRef.hostElement.style.zIndex = 'var(--tx-layer-modal)';\n const view = overlayRef.attach(new TemplatePortal(template, options.viewContainerRef));\n view.detectChanges();\n const element = overlayRef.overlayElement;\n const focusTrap = injector.get(FocusTrapFactory).create(element);\n const target = (options.focus ? element.querySelector<HTMLElement>(options.focus) : null) ?? element.querySelector<HTMLElement>('[tabindex], button, a[href]');\n target?.focus({ preventScroll: true });\n let closing: Promise<void> | null = null;\n\n overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape' && !closing) {\n event.preventDefault();\n options.onEscape?.();\n }\n });\n overlayRef.detachments().subscribe(() => {\n if (!closing) {\n options.onDetach?.();\n }\n });\n\n return {\n element,\n close(): Promise<void> {\n if (closing) {\n return closing;\n }\n Array.from(element.children).forEach((child) => child.classList.add('tx-image-layer--leaving'));\n element.style.pointerEvents = 'none';\n const animations = animationsOf(element);\n const finished = Promise.all(animations.map((animation) => animation.finished.catch(() => undefined))).then(() => undefined);\n closing = (animations.length ? Promise.race([finished, new Promise<void>((resolve) => setTimeout(resolve, LEAVE_LIMIT))]) : finished).then(() => {\n focusTrap.destroy();\n overlayRef.dispose();\n if (previousFocus?.isConnected) {\n previousFocus.focus({ preventScroll: true });\n }\n });\n return closing;\n },\n };\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n Injector,\n TemplateRef,\n ViewContainerRef,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraImageTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxImageLayer, openImageLayer } from './image-layer';\nimport { TxImageIndicatorTemplate, TxImagePreviewTemplate } from './image.templates';\nimport { TxImageLoading, TxImagePart, TxImagePreviewContext } from './image.types';\n\nconst PAN_THRESHOLD = 3;\n\n@Component({\n selector: 'tx-image',\n imports: [NgTemplateOutlet, TxIcon],\n templateUrl: './image.component.html',\n styleUrl: './image.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-image',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-image--preview]': 'preview()',\n '[class.tx-image--open]': 'visible()',\n },\n})\nexport class TxImage {\n private injector = inject(Injector);\n private viewContainerRef = inject(ViewContainerRef);\n private document = inject(DOCUMENT);\n private layer: TxImageLayer | null = null;\n private pan: { pointerId: number; x: number; y: number; originX: number; originY: number; moved: boolean } | null = null;\n\n readonly src = input<string | undefined>(undefined);\n readonly srcSet = input<string | undefined>(undefined);\n readonly sizes = input<string | undefined>(undefined);\n readonly previewSrc = input<string | undefined>(undefined);\n readonly previewSrcSet = input<string | undefined>(undefined);\n readonly previewSizes = input<string | undefined>(undefined);\n readonly alt = input<string | undefined>(undefined);\n readonly width = input<string | number | undefined>(undefined);\n readonly height = input<string | number | undefined>(undefined);\n readonly loading = input<TxImageLoading | undefined>(undefined);\n readonly preview = input(false, { transform: booleanAttribute });\n readonly previewIcon = input<TxIconName | (string & {})>('eye');\n readonly zoomStep = input(0.1, { transform: numberAttribute });\n readonly minZoom = input(0.5, { transform: numberAttribute });\n readonly maxZoom = input(1.5, { transform: numberAttribute });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraImageTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxImagePart, TxImage> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly opened = output<void>();\n readonly closed = output<void>();\n readonly imageError = output<Event>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('image', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-image'), ...this.passThrough().root?.style }));\n readonly layerStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-image'), ...this.passThrough().mask?.style }));\n\n protected readonly indicatorTemplate = contentChild(TxImageIndicatorTemplate);\n protected readonly previewTemplate = contentChild(TxImagePreviewTemplate);\n private readonly layerTemplate = viewChild.required<TemplateRef<unknown>>('layer');\n\n readonly visible = signal(false);\n readonly rotation = signal(0);\n readonly scale = signal(1);\n readonly offset = signal({ x: 0, y: 0 });\n readonly panning = signal(false);\n\n readonly fullSrc = computed(() => this.previewSrc() ?? this.src() ?? '');\n readonly fullSrcSet = computed(() => (this.previewSrc() ? this.previewSrcSet() : (this.previewSrcSet() ?? this.srcSet())));\n readonly fullSizes = computed(() => (this.previewSrc() ? this.previewSizes() : (this.previewSizes() ?? this.sizes())));\n readonly previewLabel = computed(() => this.ariaLabel() ?? this.alt() ?? this.translations().imagePreview);\n readonly canZoomIn = computed(() => this.scale() < this.maxZoom() - 1e-6);\n readonly canZoomOut = computed(() => this.scale() > this.minZoom() + 1e-6);\n readonly transform = computed(() => {\n const { x, y } = this.offset();\n return `translate(${x}px, ${y}px) rotate(${this.rotation()}deg) scale(${this.scale()})`;\n });\n readonly previewContext = computed<TxImagePreviewContext>(() => ({\n $implicit: this.fullSrc(),\n src: this.fullSrc(),\n alt: this.alt() ?? '',\n style: { transform: this.transform() },\n close: () => this.close(),\n }));\n\n constructor() {\n inject(DestroyRef).onDestroy(() => {\n const layer = this.layer;\n this.layer = null;\n void layer?.close();\n this.stopPan();\n });\n }\n\n open(): void {\n if (this.layer) {\n return;\n }\n this.rotation.set(0);\n this.scale.set(1);\n this.offset.set({ x: 0, y: 0 });\n this.visible.set(true);\n this.layer = openImageLayer(this.layerTemplate(), {\n injector: this.injector,\n viewContainerRef: this.viewContainerRef,\n focus: '.tx-image-preview__close',\n onEscape: () => this.close(),\n onDetach: () => this.close(),\n });\n this.opened.emit();\n }\n\n close(): void {\n const layer = this.layer;\n if (!layer) {\n return;\n }\n this.layer = null;\n this.stopPan();\n void layer.close().then(() => {\n this.visible.set(false);\n this.closed.emit();\n });\n }\n\n rotateRight(): void {\n this.rotation.update((value) => value + 90);\n }\n\n rotateLeft(): void {\n this.rotation.update((value) => value - 90);\n }\n\n zoomIn(): void {\n this.zoomTo(this.scale() + this.zoomStep());\n }\n\n zoomOut(): void {\n this.zoomTo(this.scale() - this.zoomStep());\n }\n\n resetZoom(): void {\n this.zoomTo(1);\n }\n\n protected onMaskClick(event: MouseEvent): void {\n const target = event.target as Element;\n if (!target.closest('.tx-image-preview__toolbar, .tx-image-preview__original, .tx-image-preview__custom')) {\n this.close();\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if ((event.target as Element).closest('input, textarea, [contenteditable]')) {\n return;\n }\n const actions: Record<string, () => void> = {\n '+': () => this.zoomIn(),\n '=': () => this.zoomIn(),\n '-': () => this.zoomOut(),\n '0': () => this.resetZoom(),\n };\n const action = event.ctrlKey || event.metaKey || event.altKey ? undefined : actions[event.key];\n if (action) {\n event.preventDefault();\n action();\n }\n }\n\n protected onWheel(event: WheelEvent): void {\n if (!event.deltaY) {\n return;\n }\n event.preventDefault();\n if (event.deltaY < 0) {\n this.zoomIn();\n } else {\n this.zoomOut();\n }\n }\n\n protected onDoubleClick(): void {\n this.zoomTo(this.scale() > 1 ? 1 : this.maxZoom());\n }\n\n protected startPan(event: PointerEvent): void {\n if (event.button !== 0 || this.scale() <= 1) {\n return;\n }\n event.preventDefault();\n const { x, y } = this.offset();\n this.pan = { pointerId: event.pointerId, x: event.clientX, y: event.clientY, originX: x, originY: y, moved: false };\n this.document.addEventListener('pointermove', this.movePan);\n this.document.addEventListener('pointerup', this.endPan);\n this.document.addEventListener('pointercancel', this.endPan);\n }\n\n protected imageFailed(event: Event): void {\n this.imageError.emit(event);\n }\n\n private readonly movePan = (event: PointerEvent): void => {\n const pan = this.pan;\n if (!pan || event.pointerId !== pan.pointerId) {\n return;\n }\n const dx = event.clientX - pan.x;\n const dy = event.clientY - pan.y;\n if (!pan.moved && Math.hypot(dx, dy) < PAN_THRESHOLD) {\n return;\n }\n pan.moved = true;\n this.panning.set(true);\n this.offset.set({ x: pan.originX + dx, y: pan.originY + dy });\n };\n\n private readonly endPan = (): void => {\n this.stopPan();\n };\n\n private stopPan(): void {\n this.pan = null;\n this.panning.set(false);\n this.document.removeEventListener('pointermove', this.movePan);\n this.document.removeEventListener('pointerup', this.endPan);\n this.document.removeEventListener('pointercancel', this.endPan);\n }\n\n private zoomTo(value: number): void {\n const next = Math.round(Math.min(Math.max(value, this.minZoom()), this.maxZoom()) * 1000) / 1000;\n this.scale.set(next);\n if (next <= 1) {\n this.offset.set({ x: 0, y: 0 });\n }\n }\n}\n","<img\n class=\"tx-image__image\"\n [class]=\"passThrough().image?.class\"\n [style]=\"passThrough().image?.style\"\n [attr.src]=\"src() ?? null\"\n [attr.srcset]=\"srcSet() ?? null\"\n [attr.sizes]=\"sizes() ?? null\"\n [attr.alt]=\"alt() ?? ''\"\n [attr.width]=\"width() ?? null\"\n [attr.height]=\"height() ?? null\"\n [attr.loading]=\"loading() ?? null\"\n (error)=\"imageFailed($event)\"\n/>\n@if (preview()) {\n <button\n type=\"button\"\n class=\"tx-image__preview\"\n [class]=\"passThrough().previewButton?.class\"\n [style]=\"passThrough().previewButton?.style\"\n [attr.aria-label]=\"translations().zoomImage\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"visible()\"\n (click)=\"open()\"\n >\n @if (indicatorTemplate(); as indicator) {\n <ng-container [ngTemplateOutlet]=\"indicator.template\" [ngTemplateOutletContext]=\"{ $implicit: fullSrc() }\" />\n } @else {\n <tx-icon class=\"tx-image__preview-icon\" [class]=\"passThrough().previewIcon?.class\" [style]=\"passThrough().previewIcon?.style\" [name]=\"previewIcon()\" />\n }\n </button>\n}\n\n<ng-template #layer>\n <div\n class=\"tx-image-preview\"\n role=\"dialog\"\n aria-modal=\"true\"\n [class]=\"passThrough().mask?.class\"\n [style]=\"layerStyle()\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.aria-label]=\"previewLabel()\"\n (click)=\"onMaskClick($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div class=\"tx-image-preview__backdrop\" aria-hidden=\"true\"></div>\n <div\n class=\"tx-image-preview__toolbar\"\n role=\"toolbar\"\n [class]=\"passThrough().toolbar?.class\"\n [style]=\"passThrough().toolbar?.style\"\n [attr.aria-label]=\"previewLabel()\"\n >\n <button type=\"button\" class=\"tx-image-preview__action\" [class]=\"passThrough().action?.class\" [style]=\"passThrough().action?.style\" [attr.aria-label]=\"translations().rotateRight\" (click)=\"rotateRight()\">\n <tx-icon name=\"refresh\" />\n </button>\n <button type=\"button\" class=\"tx-image-preview__action\" [class]=\"passThrough().action?.class\" [style]=\"passThrough().action?.style\" [attr.aria-label]=\"translations().rotateLeft\" (click)=\"rotateLeft()\">\n <tx-icon name=\"undo\" />\n </button>\n <button\n type=\"button\"\n class=\"tx-image-preview__action\"\n [class]=\"passThrough().action?.class\"\n [style]=\"passThrough().action?.style\"\n [attr.aria-label]=\"translations().zoomOut\"\n [disabled]=\"!canZoomOut()\"\n (click)=\"zoomOut()\"\n >\n <tx-icon name=\"search-minus\" />\n </button>\n <button\n type=\"button\"\n class=\"tx-image-preview__action\"\n [class]=\"passThrough().action?.class\"\n [style]=\"passThrough().action?.style\"\n [attr.aria-label]=\"translations().zoomIn\"\n [disabled]=\"!canZoomIn()\"\n (click)=\"zoomIn()\"\n >\n <tx-icon name=\"search-plus\" />\n </button>\n <button\n type=\"button\"\n class=\"tx-image-preview__action tx-image-preview__close\"\n [class]=\"passThrough().action?.class\"\n [style]=\"passThrough().action?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"close()\"\n >\n <tx-icon name=\"times\" />\n </button>\n </div>\n <div class=\"tx-image-preview__stage\">\n @if (previewTemplate(); as custom) {\n <div class=\"tx-image-preview__custom\">\n <ng-container [ngTemplateOutlet]=\"custom.template\" [ngTemplateOutletContext]=\"previewContext()\" />\n </div>\n } @else {\n <img\n class=\"tx-image-preview__original\"\n draggable=\"false\"\n [class]=\"passThrough().original?.class\"\n [style]=\"passThrough().original?.style\"\n [class.tx-image-preview__original--zoomed]=\"scale() > 1\"\n [class.tx-image-preview__original--panning]=\"panning()\"\n [style.transform]=\"transform()\"\n [attr.src]=\"fullSrc()\"\n [attr.srcset]=\"fullSrcSet() ?? null\"\n [attr.sizes]=\"fullSizes() ?? null\"\n [attr.alt]=\"alt() ?? ''\"\n (wheel)=\"onWheel($event)\"\n (dblclick)=\"onDoubleClick()\"\n (pointerdown)=\"startPan($event)\"\n />\n }\n </div>\n </div>\n</ng-template>\n"],"mappings":";;;;;;;;;;;AAIA,IAAa,2BAAb,MAAa,yBAAwB;CAC1B,WAAW,OAA6C,WAAW;CAE5E,OAAO,uBAAuB,YAAsC,SAAgB;EAClF,OAAO,CAAC,CAAC;CACX;CALW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAxB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAwB,YAAA,CAAA;EADpC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,gCAA+B,CAAE;;;AAUxD,IAAa,yBAAb,MAAa,uBAAsB;CACxB,WAAW,OAA2C,WAAW;CAE1E,OAAO,uBAAuB,YAAoC,SAAgB;EAChF,OAAO,CAAC,CAAC;CACX;CALW,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;E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AAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,wBAAwB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAC1B,sBAAsB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACE,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Galleria
|
|
2
|
+
|
|
3
|
+
A gallery of images: the active one large, with thumbnails, indicators, a caption, previous and next buttons and a slideshow. It also opens full screen over the page.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-galleria [value]="photos" [numVisible]="5" showItemNavigators />
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Items with `src` (`TxGalleriaImage`: `src`, `thumbnailSrc`, `alt`, `title`, `description`, `width`, `height`) render without templates; `width` and `height` keep the space of an image that is still loading. Any other items need `txGalleriaItem` and `txGalleriaThumbnail`.
|
|
10
|
+
|
|
11
|
+
## Inputs
|
|
12
|
+
| Name | Description |
|
|
13
|
+
|---|---|
|
|
14
|
+
| value | Items of the gallery |
|
|
15
|
+
| activeIndex | Index of the active item; two-way with `[(activeIndex)]` |
|
|
16
|
+
| fullScreen | Shows the gallery in a full-screen layer while `visible` is true instead of in the page |
|
|
17
|
+
| visible | Whether the full-screen gallery is open; two-way with `[(visible)]` |
|
|
18
|
+
| numVisible | Number of thumbnails shown at once |
|
|
19
|
+
| responsiveOptions | `numVisible` per `breakpoint` (max width of the window) |
|
|
20
|
+
| showItemNavigators | Shows previous and next buttons over the item |
|
|
21
|
+
| showItemNavigatorsOnHover | Shows those buttons only while the pointer or focus is on the item |
|
|
22
|
+
| showThumbnails | Shows the thumbnails |
|
|
23
|
+
| showThumbnailNavigators | Shows previous and next buttons beside the thumbnails |
|
|
24
|
+
| thumbnailsPosition | `bottom`, `top`, `left` or `right` |
|
|
25
|
+
| verticalThumbnailViewPortHeight | Height of the thumbnails on the left or right |
|
|
26
|
+
| showIndicators | Shows a dot per item |
|
|
27
|
+
| showIndicatorsOnItem | Puts the dots over the item |
|
|
28
|
+
| indicatorsPosition | `bottom`, `top`, `left` or `right` |
|
|
29
|
+
| changeItemOnIndicatorHover | Shows the item of a dot when the pointer moves over it |
|
|
30
|
+
| circular | The last item goes on to the first and back |
|
|
31
|
+
| autoPlay | Starts a slideshow; it pauses on hover and focus |
|
|
32
|
+
| transitionInterval | Milliseconds between slideshow steps |
|
|
33
|
+
| shouldStopAutoplayByClick | Stops the slideshow when the user moves to another item |
|
|
34
|
+
| swipe | Moves between items with a swipe or a mouse drag |
|
|
35
|
+
| effect | How one item replaces another: `slide` (default), `fade`, `zoom`, `blur`, `flip` or `none`; the old and the new item move together |
|
|
36
|
+
| prevIcon | Icon of the previous buttons |
|
|
37
|
+
| nextIcon | Icon of the next buttons |
|
|
38
|
+
| closeIcon | Icon of the full-screen close button |
|
|
39
|
+
| ariaLabel | Accessible name of the gallery |
|
|
40
|
+
| dt | Design tokens of this instance (`galleria`) |
|
|
41
|
+
| pt | Classes and styles of the parts: `root`, `mask`, `closeButton`, `header`, `content`, `items`, `item`, `navigator`, `caption`, `indicators`, `indicator`, `thumbnails`, `thumbnailNavigator`, `thumbnail`, `footer` |
|
|
42
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
43
|
+
| unstyled | Removes the tectra styles |
|
|
44
|
+
|
|
45
|
+
## Slots
|
|
46
|
+
| Name | Description |
|
|
47
|
+
|---|---|
|
|
48
|
+
| txGalleriaItem | `<ng-template txGalleriaItem let-item let-index="index">` — the active item |
|
|
49
|
+
| txGalleriaThumbnail | `<ng-template txGalleriaThumbnail let-item let-index="index" let-active="active">` — one thumbnail; its content names the thumbnail button, so give an image an `alt` |
|
|
50
|
+
| txGalleriaCaption | `<ng-template txGalleriaCaption let-item let-index="index">` — caption over the item; `title` and `description` of an image by default |
|
|
51
|
+
| txGalleriaIndicator | `<ng-template txGalleriaIndicator let-index let-active="active">` — content of a dot |
|
|
52
|
+
| txGalleriaHeader | Content above the gallery |
|
|
53
|
+
| txGalleriaFooter | Content below the gallery |
|
|
54
|
+
|
|
55
|
+
## Keyboard
|
|
56
|
+
| Key | Action |
|
|
57
|
+
|---|---|
|
|
58
|
+
| Tab / Shift + Tab | Moves between the item, its buttons, the current dot and the current thumbnail |
|
|
59
|
+
| Arrow left / Arrow right | On the item: shows the previous or next item |
|
|
60
|
+
| Arrow keys | On the thumbnails or dots: selects the previous or next item |
|
|
61
|
+
| Home / End | On the thumbnails or dots: selects the first or the last item |
|
|
62
|
+
| Escape | Closes the full-screen gallery |
|
package/image/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Image
|
|
2
|
+
|
|
3
|
+
An image with an optional full-screen preview: a dark layer over the page with rotate and zoom controls, zoom by the wheel or a double click, and dragging a zoomed image around.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tx-image src="/photos/lake-small.jpg" previewSrc="/photos/lake.jpg" alt="Alpine lake" width="320" preview />
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Inputs
|
|
10
|
+
| Name | Description |
|
|
11
|
+
|---|---|
|
|
12
|
+
| src | Source of the image |
|
|
13
|
+
| srcSet | `srcset` of the image |
|
|
14
|
+
| sizes | `sizes` of the image |
|
|
15
|
+
| previewSrc | Source shown in the preview, for example a larger file; `src` when empty |
|
|
16
|
+
| previewSrcSet | `srcset` of the preview image |
|
|
17
|
+
| previewSizes | `sizes` of the preview image |
|
|
18
|
+
| alt | Alternative text; also names the preview dialog |
|
|
19
|
+
| width | `width` attribute of the image |
|
|
20
|
+
| height | `height` attribute of the image |
|
|
21
|
+
| loading | `lazy` or `eager` loading of the image |
|
|
22
|
+
| preview | Shows a zoom button over the image that opens the preview |
|
|
23
|
+
| previewIcon | Icon of the zoom button |
|
|
24
|
+
| zoomStep | How much one zoom step changes the scale |
|
|
25
|
+
| minZoom | Smallest scale in the preview |
|
|
26
|
+
| maxZoom | Largest scale in the preview |
|
|
27
|
+
| ariaLabel | Accessible name of the preview dialog when `alt` does not describe it |
|
|
28
|
+
| dt | Design tokens of this instance (`image`) |
|
|
29
|
+
| pt | Classes and styles of the parts: `root`, `image`, `previewButton`, `previewIcon`, `mask`, `toolbar`, `action`, `original` |
|
|
30
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
31
|
+
| unstyled | Removes the tectra styles |
|
|
32
|
+
|
|
33
|
+
## Outputs
|
|
34
|
+
| Name | Description |
|
|
35
|
+
|---|---|
|
|
36
|
+
| opened | The preview opened |
|
|
37
|
+
| closed | The preview closed and its animation ended |
|
|
38
|
+
| imageError | The image failed to load |
|
|
39
|
+
|
|
40
|
+
## Slots
|
|
41
|
+
| Name | Description |
|
|
42
|
+
|---|---|
|
|
43
|
+
| txImageIndicator | `<ng-template txImageIndicator let-src>` — content of the zoom button over the image |
|
|
44
|
+
| txImagePreview | `<ng-template txImagePreview let-src let-style="style" let-close="close">` — own preview content; `style` carries the rotate and zoom transform |
|
|
45
|
+
|
|
46
|
+
## Keyboard
|
|
47
|
+
| Key | Action |
|
|
48
|
+
|---|---|
|
|
49
|
+
| Enter / Space | On the image: opens the preview |
|
|
50
|
+
| Tab / Shift + Tab | Moves through the preview controls; focus stays in the preview |
|
|
51
|
+
| + / = | Zooms in |
|
|
52
|
+
| - | Zooms out |
|
|
53
|
+
| 0 | Resets the zoom |
|
|
54
|
+
| Escape | Closes the preview and returns focus to the image |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tectra-ng/ui",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Angular UI components
|
|
3
|
+
"version": "0.1.6",
|
|
4
|
+
"description": "Angular UI components on signals: table, datepicker, select, multiselect, dialog, drawer, toast, tooltip, tree and 80+ more. Standalone, OnPush, zoneless, accessible and themable, one entry point per component.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://tectra-ng.com",
|
|
7
7
|
"repository": {
|
|
@@ -13,10 +13,45 @@
|
|
|
13
13
|
"keywords": [
|
|
14
14
|
"tectra",
|
|
15
15
|
"angular",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"angular-components",
|
|
17
|
+
"angular-ui",
|
|
18
|
+
"angular-library",
|
|
19
|
+
"ui-kit",
|
|
20
|
+
"ui-components",
|
|
21
|
+
"component-library",
|
|
18
22
|
"design-system",
|
|
19
|
-
"
|
|
23
|
+
"standalone-components",
|
|
24
|
+
"signals",
|
|
25
|
+
"zoneless",
|
|
26
|
+
"accessibility",
|
|
27
|
+
"wcag",
|
|
28
|
+
"dark-mode",
|
|
29
|
+
"theming",
|
|
30
|
+
"design-tokens",
|
|
31
|
+
"css-variables",
|
|
32
|
+
"datatable",
|
|
33
|
+
"data-table",
|
|
34
|
+
"table",
|
|
35
|
+
"datepicker",
|
|
36
|
+
"select",
|
|
37
|
+
"dropdown",
|
|
38
|
+
"multiselect",
|
|
39
|
+
"autocomplete",
|
|
40
|
+
"dialog",
|
|
41
|
+
"modal",
|
|
42
|
+
"drawer",
|
|
43
|
+
"toast",
|
|
44
|
+
"tooltip",
|
|
45
|
+
"menu",
|
|
46
|
+
"tabs",
|
|
47
|
+
"tree",
|
|
48
|
+
"treetable",
|
|
49
|
+
"form",
|
|
50
|
+
"input",
|
|
51
|
+
"checkbox",
|
|
52
|
+
"file-upload",
|
|
53
|
+
"carousel",
|
|
54
|
+
"paginator"
|
|
20
55
|
],
|
|
21
56
|
"peerDependencies": {
|
|
22
57
|
"@angular/cdk": "^22.0.0",
|
|
@@ -25,9 +60,9 @@
|
|
|
25
60
|
"@angular/forms": "^22.0.0",
|
|
26
61
|
"@angular/router": "^22.0.0",
|
|
27
62
|
"rxjs": "^7.8.0",
|
|
28
|
-
"@tectra-ng/core": "^0.1.
|
|
29
|
-
"@tectra-ng/icons": "^0.1.
|
|
30
|
-
"@tectra-ng/themes": "^0.1.
|
|
63
|
+
"@tectra-ng/core": "^0.1.6",
|
|
64
|
+
"@tectra-ng/icons": "^0.1.6",
|
|
65
|
+
"@tectra-ng/themes": "^0.1.6"
|
|
31
66
|
},
|
|
32
67
|
"peerDependenciesMeta": {
|
|
33
68
|
"@angular/router": {
|
|
@@ -87,6 +122,10 @@
|
|
|
87
122
|
"types": "./types/tectra-ng-ui-card.d.ts",
|
|
88
123
|
"default": "./fesm2022/tectra-ng-ui-card.mjs"
|
|
89
124
|
},
|
|
125
|
+
"./carousel": {
|
|
126
|
+
"types": "./types/tectra-ng-ui-carousel.d.ts",
|
|
127
|
+
"default": "./fesm2022/tectra-ng-ui-carousel.mjs"
|
|
128
|
+
},
|
|
90
129
|
"./cascade-select": {
|
|
91
130
|
"types": "./types/tectra-ng-ui-cascade-select.d.ts",
|
|
92
131
|
"default": "./fesm2022/tectra-ng-ui-cascade-select.mjs"
|
|
@@ -167,6 +206,10 @@
|
|
|
167
206
|
"types": "./types/tectra-ng-ui-file-upload.d.ts",
|
|
168
207
|
"default": "./fesm2022/tectra-ng-ui-file-upload.mjs"
|
|
169
208
|
},
|
|
209
|
+
"./galleria": {
|
|
210
|
+
"types": "./types/tectra-ng-ui-galleria.d.ts",
|
|
211
|
+
"default": "./fesm2022/tectra-ng-ui-galleria.mjs"
|
|
212
|
+
},
|
|
170
213
|
"./highlight-text": {
|
|
171
214
|
"types": "./types/tectra-ng-ui-highlight-text.d.ts",
|
|
172
215
|
"default": "./fesm2022/tectra-ng-ui-highlight-text.mjs"
|
|
@@ -175,6 +218,10 @@
|
|
|
175
218
|
"types": "./types/tectra-ng-ui-icon-field.d.ts",
|
|
176
219
|
"default": "./fesm2022/tectra-ng-ui-icon-field.mjs"
|
|
177
220
|
},
|
|
221
|
+
"./image": {
|
|
222
|
+
"types": "./types/tectra-ng-ui-image.d.ts",
|
|
223
|
+
"default": "./fesm2022/tectra-ng-ui-image.mjs"
|
|
224
|
+
},
|
|
178
225
|
"./input": {
|
|
179
226
|
"types": "./types/tectra-ng-ui-input.d.ts",
|
|
180
227
|
"default": "./fesm2022/tectra-ng-ui-input.mjs"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ElementRef, TemplateRef } from "@angular/core";
|
|
2
|
+
import { AfterViewInit, ElementRef, TemplateRef } from "@angular/core";
|
|
3
3
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
4
4
|
import { TxIconName } from "@tectra-ng/icons";
|
|
5
5
|
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
@@ -20,7 +20,7 @@ export type TxButtonSize = 'small' | 'medium' | 'large';
|
|
|
20
20
|
export type TxButtonVariant = 'outlined' | 'text' | 'link';
|
|
21
21
|
export type TxButtonIconPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
22
22
|
export type TxButtonPart = 'root' | 'icon' | 'loadingIcon' | 'label' | 'badge';
|
|
23
|
-
export declare class TxButton {
|
|
23
|
+
export declare class TxButton implements AfterViewInit {
|
|
24
24
|
private elementRef;
|
|
25
25
|
private txIconRegistry;
|
|
26
26
|
readonly label: import("@angular/core").InputSignal<string | number | undefined>;
|
|
@@ -331,6 +331,8 @@ export declare class TxButton {
|
|
|
331
331
|
[x: string]: string;
|
|
332
332
|
}>;
|
|
333
333
|
constructor();
|
|
334
|
+
ngAfterViewInit(): void;
|
|
335
|
+
private projectsLabel;
|
|
334
336
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxButton, never>;
|
|
335
337
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxButton, "button[txButton], a[txButton]", never, {
|
|
336
338
|
"label": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-button.d.ts","names":[],"sources":["../../../../packages/ui/button/src/button-templates.directive.ts","../../../../packages/ui/button/src/button.types.ts","../../../../packages/ui/button/src/button.component.ts"],"mappings":";;;;;;;qBAGa;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAKA;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;YCRD;YACA;YACA;YACA;YACA;
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-button.d.ts","names":[],"sources":["../../../../packages/ui/button/src/button-templates.directive.ts","../../../../packages/ui/button/src/button.types.ts","../../../../packages/ui/button/src/button.component.ts"],"mappings":";;;;;;;qBAGa;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAKA;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;YCRD;YACA;YACA;YACA;YACA;qBCqDC,oBAAoB;UACvB;UACA;WAEC,+BAAK;WACL,kCAAQ,YAAA;WACR,8BAAI,YAAA;WACJ,iCAAO,YAAA;WACP,kCAAQ;WACR,8BAAI;WACJ,8BAAI;WACJ,iCAAO;WACP,gCAAM;WACN,+BAAK;WACL,+BAAK;WACL,kCAAQ;WACR,kCAAQ;WACR,8BAAI,YAAA;WACJ,iCAAO,YAAA;WACP,kCAAQ;WACR,iCAAO;WACP,qCAAW,YAAA;WACX,+BAAK;WACL,uCAAa,YAAA;WACb,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,+CAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,sCAAY,OAAA;WACZ,6CAAmB,OAAA;WACnB,wCAAc,OAAA,WAAA;WAEd;WAEA,2CAAiB;EAC1B,oCAAU;EACV,iCAAO;EACP,qCAAW,OAAA,QAAA,OAAA,+CAAA;WAEF,yCAAe,OAAA;WAaf,oCAAU;WACV,iCAAO;WACP,sCAAY;WACZ,oCAAU;WACV,kCAAQ,OAAA;WAIR,yCAAe,OAAA;WAIf,kCAAQ;WACR,mCAAS;;;;EAsBlB;UAIQ;SA5FG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAQ;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA,kBAAA,GAAA;IAAA;MAAA;MAAA;MAAA;;IAAA"}
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { TemplateRef } from "@angular/core";
|
|
3
|
+
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
4
|
+
import { TxSwapEffect } from "@tectra-ng/core/utils";
|
|
5
|
+
import { TxIconName } from "@tectra-ng/icons";
|
|
6
|
+
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
7
|
+
export type TxCarouselOrientation = 'horizontal' | 'vertical';
|
|
8
|
+
export type TxCarouselPart = 'root' | 'header' | 'content' | 'viewport' | 'track' | 'item' | 'navigator' | 'indicators' | 'indicator' | 'footer';
|
|
9
|
+
export interface TxCarouselResponsiveOption {
|
|
10
|
+
breakpoint: string;
|
|
11
|
+
numVisible: number;
|
|
12
|
+
numScroll?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface TxCarouselItemContext<T = unknown> {
|
|
15
|
+
$implicit: T;
|
|
16
|
+
index: number;
|
|
17
|
+
active: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface TxCarouselIndicatorContext {
|
|
20
|
+
$implicit: number;
|
|
21
|
+
active: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare class TxCarouselItemTemplate {
|
|
24
|
+
readonly template: TemplateRef<TxCarouselItemContext<unknown>>;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxCarouselItemTemplate, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxCarouselItemTemplate, "ng-template[txCarouselItem]", never, {}, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
28
|
+
export declare class TxCarouselIndicatorTemplate {
|
|
29
|
+
readonly template: TemplateRef<TxCarouselIndicatorContext>;
|
|
30
|
+
static ngTemplateContextGuard(_directive: TxCarouselIndicatorTemplate, context: unknown): context is TxCarouselIndicatorContext;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxCarouselIndicatorTemplate, never>;
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxCarouselIndicatorTemplate, "ng-template[txCarouselIndicator]", never, {}, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
export declare class TxCarouselHeader {
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxCarouselHeader, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxCarouselHeader, "[txCarouselHeader]", never, {}, {}, never, never, true, never>;
|
|
37
|
+
}
|
|
38
|
+
export declare class TxCarouselFooter {
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxCarouselFooter, never>;
|
|
40
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxCarouselFooter, "[txCarouselFooter]", never, {}, {}, never, never, true, never>;
|
|
41
|
+
}
|
|
42
|
+
export declare class TxCarousel {
|
|
43
|
+
private document;
|
|
44
|
+
private host;
|
|
45
|
+
private destroyRef;
|
|
46
|
+
private drag;
|
|
47
|
+
private injector;
|
|
48
|
+
private swapToken;
|
|
49
|
+
private swapStarted;
|
|
50
|
+
private suppressClick;
|
|
51
|
+
readonly value: import("@angular/core").InputSignal<readonly unknown[] | null | undefined>;
|
|
52
|
+
readonly page: import("@angular/core").ModelSignal<number>;
|
|
53
|
+
readonly numVisible: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
54
|
+
readonly numScroll: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
55
|
+
readonly responsiveOptions: import("@angular/core").InputSignal<TxCarouselResponsiveOption[] | undefined>;
|
|
56
|
+
readonly orientation: import("@angular/core").InputSignal<TxCarouselOrientation>;
|
|
57
|
+
readonly verticalViewPortHeight: import("@angular/core").InputSignal<string>;
|
|
58
|
+
readonly circular: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
59
|
+
readonly autoplayInterval: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
60
|
+
readonly showIndicators: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
61
|
+
readonly showNavigators: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
62
|
+
readonly swipe: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
63
|
+
readonly effect: import("@angular/core").InputSignal<TxSwapEffect>;
|
|
64
|
+
readonly prevIcon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
|
|
65
|
+
readonly nextIcon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
|
|
66
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
67
|
+
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
68
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
|
|
69
|
+
root: {
|
|
70
|
+
transitionDuration: string;
|
|
71
|
+
slideDuration: string;
|
|
72
|
+
slideEasing: string;
|
|
73
|
+
};
|
|
74
|
+
content: {
|
|
75
|
+
gap: string;
|
|
76
|
+
};
|
|
77
|
+
indicatorList: {
|
|
78
|
+
padding: string;
|
|
79
|
+
gap: string;
|
|
80
|
+
};
|
|
81
|
+
indicator: {
|
|
82
|
+
width: string;
|
|
83
|
+
height: string;
|
|
84
|
+
hitArea: string;
|
|
85
|
+
borderRadius: string;
|
|
86
|
+
background: string;
|
|
87
|
+
hoverBackground: string;
|
|
88
|
+
activeBackground: string;
|
|
89
|
+
focusRingWidth: string;
|
|
90
|
+
focusRingColor: string;
|
|
91
|
+
focusRingOffset: string;
|
|
92
|
+
};
|
|
93
|
+
}> | undefined>;
|
|
94
|
+
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxCarouselPart, import("@tectra-ng/core/config").TxPassThroughValue<TxCarousel>>> | undefined>;
|
|
95
|
+
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
96
|
+
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
97
|
+
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
98
|
+
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
99
|
+
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxCarouselPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
100
|
+
readonly hostStyle: import("@angular/core").Signal<{
|
|
101
|
+
[x: string]: string;
|
|
102
|
+
}>;
|
|
103
|
+
protected readonly itemTemplate: import("@angular/core").Signal<TxCarouselItemTemplate | undefined>;
|
|
104
|
+
protected readonly indicatorTemplate: import("@angular/core").Signal<TxCarouselIndicatorTemplate | undefined>;
|
|
105
|
+
protected readonly header: import("@angular/core").Signal<TxCarouselHeader | undefined>;
|
|
106
|
+
protected readonly footer: import("@angular/core").Signal<TxCarouselFooter | undefined>;
|
|
107
|
+
private readonly viewport;
|
|
108
|
+
private readonly indicatorList;
|
|
109
|
+
readonly hovered: import("@angular/core").WritableSignal<boolean>;
|
|
110
|
+
readonly focused: import("@angular/core").WritableSignal<boolean>;
|
|
111
|
+
readonly autoplayStopped: import("@angular/core").WritableSignal<boolean>;
|
|
112
|
+
readonly dragging: import("@angular/core").WritableSignal<boolean>;
|
|
113
|
+
readonly shownFirst: import("@angular/core").WritableSignal<number>;
|
|
114
|
+
readonly dragOffset: import("@angular/core").WritableSignal<number>;
|
|
115
|
+
private readonly responsive;
|
|
116
|
+
readonly items: import("@angular/core").Signal<readonly unknown[]>;
|
|
117
|
+
readonly vertical: import("@angular/core").Signal<boolean>;
|
|
118
|
+
readonly visibleCount: import("@angular/core").Signal<number>;
|
|
119
|
+
readonly scrollCount: import("@angular/core").Signal<number>;
|
|
120
|
+
readonly totalPages: import("@angular/core").Signal<number>;
|
|
121
|
+
readonly currentPage: import("@angular/core").Signal<number>;
|
|
122
|
+
readonly pages: import("@angular/core").Signal<number[]>;
|
|
123
|
+
readonly firstIndex: import("@angular/core").Signal<number>;
|
|
124
|
+
readonly autoplaying: import("@angular/core").Signal<boolean>;
|
|
125
|
+
readonly isCircular: import("@angular/core").Signal<boolean>;
|
|
126
|
+
readonly canPrev: import("@angular/core").Signal<boolean>;
|
|
127
|
+
readonly canNext: import("@angular/core").Signal<boolean>;
|
|
128
|
+
readonly prevIconName: import("@angular/core").Signal<TxIconName | (string & {})>;
|
|
129
|
+
readonly nextIconName: import("@angular/core").Signal<TxIconName | (string & {})>;
|
|
130
|
+
readonly itemBasis: import("@angular/core").Signal<string>;
|
|
131
|
+
readonly trackTransform: import("@angular/core").Signal<string>;
|
|
132
|
+
constructor();
|
|
133
|
+
next(): void;
|
|
134
|
+
prev(): void;
|
|
135
|
+
goTo(page: number): void;
|
|
136
|
+
startAutoplay(): void;
|
|
137
|
+
stopAutoplay(): void;
|
|
138
|
+
isShown(index: number): boolean;
|
|
139
|
+
slideLabel(index: number): string;
|
|
140
|
+
pageLabel(page: number): string;
|
|
141
|
+
protected onNavigate(direction: 1 | -1): void;
|
|
142
|
+
protected onIndicatorClick(page: number): void;
|
|
143
|
+
protected onIndicatorKeydown(event: KeyboardEvent): void;
|
|
144
|
+
protected onFocusOut(event: FocusEvent): void;
|
|
145
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
146
|
+
private readonly onPointerMove;
|
|
147
|
+
private readonly onPointerUp;
|
|
148
|
+
private readonly onPointerCancel;
|
|
149
|
+
private releaseDrag;
|
|
150
|
+
private swapTo;
|
|
151
|
+
private step;
|
|
152
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxCarousel, never>;
|
|
153
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TxCarousel, "tx-carousel", never, {
|
|
154
|
+
"value": {
|
|
155
|
+
"alias": "value";
|
|
156
|
+
"required": false;
|
|
157
|
+
"isSignal": true;
|
|
158
|
+
};
|
|
159
|
+
"page": {
|
|
160
|
+
"alias": "page";
|
|
161
|
+
"required": false;
|
|
162
|
+
"isSignal": true;
|
|
163
|
+
};
|
|
164
|
+
"numVisible": {
|
|
165
|
+
"alias": "numVisible";
|
|
166
|
+
"required": false;
|
|
167
|
+
"isSignal": true;
|
|
168
|
+
};
|
|
169
|
+
"numScroll": {
|
|
170
|
+
"alias": "numScroll";
|
|
171
|
+
"required": false;
|
|
172
|
+
"isSignal": true;
|
|
173
|
+
};
|
|
174
|
+
"responsiveOptions": {
|
|
175
|
+
"alias": "responsiveOptions";
|
|
176
|
+
"required": false;
|
|
177
|
+
"isSignal": true;
|
|
178
|
+
};
|
|
179
|
+
"orientation": {
|
|
180
|
+
"alias": "orientation";
|
|
181
|
+
"required": false;
|
|
182
|
+
"isSignal": true;
|
|
183
|
+
};
|
|
184
|
+
"verticalViewPortHeight": {
|
|
185
|
+
"alias": "verticalViewPortHeight";
|
|
186
|
+
"required": false;
|
|
187
|
+
"isSignal": true;
|
|
188
|
+
};
|
|
189
|
+
"circular": {
|
|
190
|
+
"alias": "circular";
|
|
191
|
+
"required": false;
|
|
192
|
+
"isSignal": true;
|
|
193
|
+
};
|
|
194
|
+
"autoplayInterval": {
|
|
195
|
+
"alias": "autoplayInterval";
|
|
196
|
+
"required": false;
|
|
197
|
+
"isSignal": true;
|
|
198
|
+
};
|
|
199
|
+
"showIndicators": {
|
|
200
|
+
"alias": "showIndicators";
|
|
201
|
+
"required": false;
|
|
202
|
+
"isSignal": true;
|
|
203
|
+
};
|
|
204
|
+
"showNavigators": {
|
|
205
|
+
"alias": "showNavigators";
|
|
206
|
+
"required": false;
|
|
207
|
+
"isSignal": true;
|
|
208
|
+
};
|
|
209
|
+
"swipe": {
|
|
210
|
+
"alias": "swipe";
|
|
211
|
+
"required": false;
|
|
212
|
+
"isSignal": true;
|
|
213
|
+
};
|
|
214
|
+
"effect": {
|
|
215
|
+
"alias": "effect";
|
|
216
|
+
"required": false;
|
|
217
|
+
"isSignal": true;
|
|
218
|
+
};
|
|
219
|
+
"prevIcon": {
|
|
220
|
+
"alias": "prevIcon";
|
|
221
|
+
"required": false;
|
|
222
|
+
"isSignal": true;
|
|
223
|
+
};
|
|
224
|
+
"nextIcon": {
|
|
225
|
+
"alias": "nextIcon";
|
|
226
|
+
"required": false;
|
|
227
|
+
"isSignal": true;
|
|
228
|
+
};
|
|
229
|
+
"ariaLabel": {
|
|
230
|
+
"alias": "ariaLabel";
|
|
231
|
+
"required": false;
|
|
232
|
+
"isSignal": true;
|
|
233
|
+
};
|
|
234
|
+
"ariaLabelledBy": {
|
|
235
|
+
"alias": "ariaLabelledBy";
|
|
236
|
+
"required": false;
|
|
237
|
+
"isSignal": true;
|
|
238
|
+
};
|
|
239
|
+
"dt": {
|
|
240
|
+
"alias": "dt";
|
|
241
|
+
"required": false;
|
|
242
|
+
"isSignal": true;
|
|
243
|
+
};
|
|
244
|
+
"pt": {
|
|
245
|
+
"alias": "pt";
|
|
246
|
+
"required": false;
|
|
247
|
+
"isSignal": true;
|
|
248
|
+
};
|
|
249
|
+
"ptOptions": {
|
|
250
|
+
"alias": "ptOptions";
|
|
251
|
+
"required": false;
|
|
252
|
+
"isSignal": true;
|
|
253
|
+
};
|
|
254
|
+
"unstyled": {
|
|
255
|
+
"alias": "unstyled";
|
|
256
|
+
"required": false;
|
|
257
|
+
"isSignal": true;
|
|
258
|
+
};
|
|
259
|
+
}, {
|
|
260
|
+
"page": "pageChange";
|
|
261
|
+
}, ["itemTemplate", "indicatorTemplate", "header", "footer"], ["[txCarouselHeader]", "[txCarouselFooter]"], true, never>;
|
|
262
|
+
}
|
|
263
|
+
//# sourceMappingURL=tectra-ng-ui-carousel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-carousel.d.ts","names":[],"sources":["../../../../packages/ui/carousel/src/carousel.types.ts","../../../../packages/ui/carousel/src/carousel.templates.ts","../../../../packages/ui/carousel/src/carousel.component.ts"],"mappings":";;;;;;YAAY;YAEA;iBAEK;EACf;EACA;EACA;;iBAGe,sBAAsB;EACrC,WAAW;EACX;EACA;;iBAGe;EACf;EACA;;qBCdW;WACF,UAAQ,YAAA;SADN,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAKA;WACF,UAAQ,YAAA;SAEV,uBAAuB,YAAY,6BAA6B,mBAAmB,WAAW;SAH1F,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBASA;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAGA;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAA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