@tectra-ng/ui 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/country/README.md +14 -4
- package/data-view/README.md +71 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +2 -2
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chip.mjs +2 -2
- package/fesm2022/tectra-ng-ui-chip.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country.mjs +47 -6
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-data-view.mjs +1370 -0
- package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-fieldset.mjs +2 -2
- package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-number.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-listbox.mjs +2 -2
- package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menu.mjs +2 -2
- package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-message.mjs +2 -2
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-paginator.mjs +2 -2
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select.mjs +4 -4
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-slider.mjs +2 -2
- package/fesm2022/tectra-ng-ui-slider.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +1373 -1333
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tag.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs +2 -2
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +7 -46
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +901 -0
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tree.mjs +1940 -0
- package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +928 -0
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -0
- package/package.json +17 -1
- package/tree/README.md +93 -0
- package/tree-table/README.md +84 -0
- package/types/tectra-ng-ui-autocomplete.d.ts +11 -0
- package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
- package/types/tectra-ng-ui-chip.d.ts +3 -0
- package/types/tectra-ng-ui-chip.d.ts.map +1 -1
- package/types/tectra-ng-ui-country-select.d.ts +11 -0
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-country.d.ts +9 -3
- package/types/tectra-ng-ui-country.d.ts.map +1 -1
- package/types/tectra-ng-ui-data-view.d.ts +363 -0
- package/types/tectra-ng-ui-data-view.d.ts.map +1 -0
- package/types/tectra-ng-ui-fieldset.d.ts +8 -0
- package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-number.d.ts +1 -0
- package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
- package/types/tectra-ng-ui-input.d.ts +4 -0
- package/types/tectra-ng-ui-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-menu.d.ts +2 -0
- package/types/tectra-ng-ui-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +5 -0
- package/types/tectra-ng-ui-message.d.ts.map +1 -1
- package/types/tectra-ng-ui-multiselect.d.ts +11 -0
- package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
- package/types/tectra-ng-ui-paginator.d.ts +1 -0
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
- package/types/tectra-ng-ui-select.d.ts +11 -0
- package/types/tectra-ng-ui-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-slider.d.ts +1 -0
- package/types/tectra-ng-ui-slider.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +181 -15
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tag.d.ts +8 -0
- package/types/tectra-ng-ui-tag.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-switch.d.ts +5 -0
- package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +19 -22
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-table.d.ts +94 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -0
- package/types/tectra-ng-ui-tree.d.ts +571 -0
- package/types/tectra-ng-ui-tree.d.ts.map +1 -0
- package/types/tectra-ng-ui-virtual-scroller.d.ts +297 -0
- package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -0
- package/virtual-scroller/README.md +60 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-virtual-scroller.mjs","names":[],"sources":["../../../../packages/ui/virtual-scroller/src/virtual-scroller.templates.ts","../../../../packages/ui/virtual-scroller/src/virtual-scroller.component.ts","../../../../packages/ui/virtual-scroller/src/virtual-scroller.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxVirtualScrollerContentContext, TxVirtualScrollerItemContext, TxVirtualScrollerLoaderContext } from './virtual-scroller.types';\n\n@Directive({ selector: 'ng-template[txVirtualScrollerItem]' })\nexport class TxVirtualScrollerItem {\n readonly templateRef = inject<TemplateRef<TxVirtualScrollerItemContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txVirtualScrollerLoader]' })\nexport class TxVirtualScrollerLoader {\n readonly templateRef = inject<TemplateRef<TxVirtualScrollerLoaderContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txVirtualScrollerLoadingIcon]' })\nexport class TxVirtualScrollerLoadingIcon {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txVirtualScrollerContent]' })\nexport class TxVirtualScrollerContent {\n readonly templateRef = inject<TemplateRef<TxVirtualScrollerContentContext>>(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n untracked,\n} from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraVirtualScrollerTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxVirtualScrollerContent, TxVirtualScrollerItem, TxVirtualScrollerLoader, TxVirtualScrollerLoadingIcon } from './virtual-scroller.templates';\nimport {\n TxVirtualScrollerContentContext,\n TxVirtualScrollerItemContext,\n TxVirtualScrollerLazyLoadEvent,\n TxVirtualScrollerOrientation,\n TxVirtualScrollerPart,\n TxVirtualScrollerPosition,\n TxVirtualScrollerRenderedRange,\n TxVirtualScrollerScrollEvent,\n} from './virtual-scroller.types';\n\ninterface TxAxisRange {\n first: number;\n last: number;\n viewFirst: number;\n viewLast: number;\n}\n\ninterface TxRenderedCell<T> {\n index: number;\n item: T | undefined;\n}\n\ninterface TxRenderedRow<T> {\n index: number;\n cells: TxRenderedCell<T>[];\n}\n\n@Component({\n selector: 'tx-virtual-scroller',\n imports: [NgTemplateOutlet, TxIcon],\n templateUrl: './virtual-scroller.component.html',\n styleUrl: './virtual-scroller.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-virtual-scroller',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-orientation]': 'orientation()',\n '[class.tx-virtual-scroller--disabled]': 'disabled()',\n '[class.tx-virtual-scroller--loading]': 'showLoaderMask()',\n '[attr.tabindex]': 'tabindex()',\n '[attr.role]': 'ariaLabel() || ariaLabelledBy() ? \"region\" : null',\n '[attr.aria-label]': 'ariaLabel() ?? null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() ?? null',\n '[attr.aria-busy]': 'loading() || null',\n '(scroll)': 'onScroll($event)',\n },\n})\nexport class TxVirtualScroller<T = unknown> {\n readonly items = input<readonly (T | undefined)[] | readonly (readonly (T | undefined)[])[] | null | undefined>(undefined);\n readonly itemSize = input<number | readonly [number, number]>(40);\n readonly scrollHeight = input<string | undefined>(undefined);\n readonly scrollWidth = input<string | undefined>(undefined);\n readonly orientation = input<TxVirtualScrollerOrientation>('vertical');\n readonly numToleratedItems = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly delay = input(0, { transform: numberAttribute });\n readonly step = input(0, { transform: numberAttribute });\n readonly lazy = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly appendOnly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly disabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showSpacer = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showLoader = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loadingIcon = input('spinner');\n readonly trackBy = input<((index: number, item: T | undefined) => unknown) | undefined>(undefined);\n readonly tabindex = input(0, { transform: numberAttribute });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraVirtualScrollerTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxVirtualScrollerPart, TxVirtualScroller<T>> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly lazyLoad = output<TxVirtualScrollerLazyLoadEvent>();\n readonly scrolled = output<TxVirtualScrollerScrollEvent>();\n readonly scrollIndexChange = output<TxVirtualScrollerRenderedRange['viewport']>();\n\n readonly itemTemplate = contentChild(TxVirtualScrollerItem);\n readonly loaderTemplate = contentChild(TxVirtualScrollerLoader);\n readonly loadingIconTemplate = contentChild(TxVirtualScrollerLoadingIcon);\n readonly contentTemplate = contentChild(TxVirtualScrollerContent);\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly destroy = inject(DestroyRef);\n private readonly cleanup = this.destroy.onDestroy(() => clearTimeout(this.timer));\n private timer: ReturnType<typeof setTimeout> | undefined;\n private lastLazy = '';\n private lastViewport = '';\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('virtualScroller', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({\n ...toStyleObject(this.dt(), '--tx-virtual-scroller'),\n ...(this.scrollHeight() ? { height: this.scrollHeight() } : {}),\n ...(this.scrollWidth() ? { width: this.scrollWidth() } : {}),\n ...this.passThrough().root?.style,\n }));\n\n readonly scrollTop = signal(0);\n readonly scrollLeft = signal(0);\n readonly viewportHeight = signal(0);\n readonly viewportWidth = signal(0);\n readonly scrolling = signal(false);\n\n readonly both = computed(() => this.orientation() === 'both');\n readonly horizontal = computed(() => this.orientation() === 'horizontal');\n readonly rowSize = computed(() => {\n const size = this.itemSize();\n return typeof size === 'number' ? size : size[0];\n });\n readonly columnSize = computed(() => {\n const size = this.itemSize();\n return typeof size === 'number' ? size : size[1];\n });\n readonly list = computed(() => (this.items() ?? []) as readonly (T | undefined)[]);\n readonly grid = computed(() => (this.both() ? ((this.items() ?? []) as readonly (readonly (T | undefined)[])[]) : []));\n readonly rowCount = computed(() => (this.horizontal() ? 1 : this.both() ? this.grid().length : this.list().length));\n readonly columnCount = computed(() => {\n if (this.horizontal()) return this.list().length;\n if (!this.both()) return 1;\n return this.grid().reduce((max, row) => Math.max(max, row?.length ?? 0), 0);\n });\n readonly rows = computed(() => (this.horizontal() ? this.fullRange(1) : this.axisRange(this.scrollTop(), this.viewportHeight(), this.rowSize(), this.rowCount())));\n readonly columns = computed(() => {\n if (!this.horizontal() && !this.both()) return this.fullRange(1);\n return this.axisRange(this.scrollLeft(), this.viewportWidth(), this.columnSize(), this.columnCount());\n });\n readonly totalHeight = computed(() => (this.horizontal() ? null : this.rowCount() * this.rowSize()));\n readonly totalWidth = computed(() => (this.horizontal() || this.both() ? this.columnCount() * this.columnSize() : null));\n readonly offsetTop = computed(() => (this.horizontal() ? 0 : this.rows().first * this.rowSize()));\n readonly offsetLeft = computed(() => (this.horizontal() || this.both() ? this.columns().first * this.columnSize() : 0));\n readonly contentTransform = computed(() => `translate3d(${this.offsetLeft()}px, ${this.offsetTop()}px, 0)`);\n\n readonly renderedItems = computed<TxRenderedCell<T>[]>(() => {\n if (this.both()) return [];\n const { first, last } = this.horizontal() ? this.columns() : this.rows();\n const list = this.list();\n const cells: TxRenderedCell<T>[] = [];\n for (let index = first; index < last; index += 1) cells.push({ index, item: list[index] });\n return cells;\n });\n readonly renderedRows = computed<TxRenderedRow<T>[]>(() => {\n if (!this.both()) return [];\n const rows = this.rows();\n const columns = this.columns();\n const grid = this.grid();\n const result: TxRenderedRow<T>[] = [];\n for (let row = rows.first; row < rows.last; row += 1) {\n const cells: TxRenderedCell<T>[] = [];\n for (let column = columns.first; column < columns.last; column += 1) cells.push({ index: column, item: grid[row]?.[column] });\n result.push({ index: row, cells });\n }\n return result;\n });\n readonly showLoaderMask = computed(() => this.showLoader() && (this.loading() || this.scrolling()) && !this.loaderTemplate());\n readonly showLoaderItems = computed(() => this.showLoader() && (this.loading() || this.scrolling()) && !!this.loaderTemplate());\n readonly contentContext = computed<TxVirtualScrollerContentContext<T | undefined>>(() => {\n const items = this.renderedItems().map((cell) => cell.item);\n const range = this.horizontal() ? this.columns() : this.rows();\n return {\n $implicit: items,\n items,\n first: range.first,\n last: range.last,\n count: this.horizontal() ? this.columnCount() : this.rowCount(),\n spacerBefore: this.horizontal() ? this.offsetLeft() : this.offsetTop(),\n itemSize: this.horizontal() ? this.columnSize() : this.rowSize(),\n };\n });\n\n constructor() {\n afterNextRender(() => {\n this.measure();\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(() => this.measure());\n observer.observe(this.host.nativeElement);\n this.destroy.onDestroy(() => observer.disconnect());\n });\n\n effect(() => {\n if (!this.lazy()) return;\n const range = this.horizontal() ? this.columns() : this.rows();\n const step = this.step();\n const count = this.horizontal() ? this.columnCount() : this.rowCount();\n const first = step > 0 ? Math.floor(range.first / step) * step : range.first;\n const last = step > 0 ? Math.min(Math.max(count, range.last), Math.ceil(range.last / step) * step) : range.last;\n const key = `${first}:${last}`;\n if (key === this.lastLazy) return;\n this.lastLazy = key;\n untracked(() => this.lazyLoad.emit({ first, last }));\n });\n\n effect(() => {\n const viewport = this.renderedRange().viewport;\n const key = JSON.stringify(viewport);\n if (key === this.lastViewport) return;\n this.lastViewport = key;\n untracked(() => this.scrollIndexChange.emit(viewport));\n });\n }\n\n readonly renderedRange = computed<TxVirtualScrollerRenderedRange>(() => {\n const rows = this.rows();\n const columns = this.columns();\n if (this.both()) {\n return {\n first: [rows.first, columns.first],\n last: [rows.last, columns.last],\n viewport: { first: [rows.viewFirst, columns.viewFirst], last: [rows.viewLast, columns.viewLast] },\n };\n }\n const range = this.horizontal() ? columns : rows;\n return { first: range.first, last: range.last, viewport: { first: range.viewFirst, last: range.viewLast } };\n });\n\n getRenderedRange(): TxVirtualScrollerRenderedRange {\n return this.renderedRange();\n }\n\n trackOf(index: number, item: T | undefined): unknown {\n const own = this.trackBy();\n return own ? own(index, item) : index;\n }\n\n itemContext(cell: TxRenderedCell<T>, count: number): TxVirtualScrollerItemContext<T | undefined> {\n return {\n $implicit: cell.item,\n index: cell.index,\n count,\n first: cell.index === 0,\n last: cell.index === count - 1,\n even: cell.index % 2 === 0,\n odd: cell.index % 2 === 1,\n };\n }\n\n onScroll(event: Event): void {\n const element = event.target as HTMLElement;\n const top = element.scrollTop;\n const left = element.scrollLeft;\n this.scrolled.emit({ originalEvent: event });\n const apply = () => {\n this.scrollTop.set(top);\n this.scrollLeft.set(left);\n this.viewportHeight.set(element.clientHeight);\n this.viewportWidth.set(element.clientWidth);\n this.scrolling.set(false);\n };\n if (this.delay() > 0) {\n clearTimeout(this.timer);\n this.scrolling.set(true);\n this.timer = setTimeout(apply, this.delay());\n } else {\n apply();\n }\n }\n\n scrollTo(options: ScrollToOptions): void {\n const element = this.host.nativeElement;\n element.scrollTo?.(options);\n if (options.behavior === 'smooth') return;\n if (options.top !== undefined) this.scrollTop.set(Math.max(0, options.top));\n if (options.left !== undefined) this.scrollLeft.set(Math.max(0, options.left));\n }\n\n scrollToIndex(index: TxVirtualScrollerPosition, behavior: ScrollBehavior = 'auto'): void {\n const [row, column] = this.positionOf(index);\n this.scrollTo({ top: row * this.rowSize(), left: column * this.columnSize(), behavior });\n }\n\n scrollInView(index: TxVirtualScrollerPosition, to: 'to-start' | 'to-end', behavior: ScrollBehavior = 'auto'): void {\n const [row, column] = this.positionOf(index);\n if (to === 'to-start') {\n this.scrollToIndex(index, behavior);\n return;\n }\n this.scrollTo({\n top: Math.max(0, (row + 1) * this.rowSize() - this.viewportHeight()),\n left: Math.max(0, (column + 1) * this.columnSize() - this.viewportWidth()),\n behavior,\n });\n }\n\n refresh(): void {\n this.measure();\n }\n\n private positionOf(index: TxVirtualScrollerPosition): [number, number] {\n if (typeof index !== 'number') return [index[0], index[1]];\n return this.horizontal() ? [0, index] : [index, 0];\n }\n\n private measure(): void {\n const element = this.host.nativeElement;\n this.viewportHeight.set(element.clientHeight);\n this.viewportWidth.set(element.clientWidth);\n }\n\n private fullRange(count: number): TxAxisRange {\n return { first: 0, last: count, viewFirst: 0, viewLast: count };\n }\n\n private axisRange(scroll: number, viewport: number, size: number, count: number): TxAxisRange {\n if (this.disabled() || size <= 0) return this.fullRange(count);\n const space = viewport || size * 10;\n const visible = Math.ceil(space / size);\n const tolerance = this.numToleratedItems() ?? Math.ceil(visible / 2);\n const viewFirst = Math.min(count, Math.floor(scroll / size));\n const viewLast = Math.min(count, Math.ceil((scroll + space) / size));\n const first = this.appendOnly() ? 0 : Math.max(0, viewFirst - tolerance);\n const last = Math.min(count, viewLast + tolerance);\n return { first, last, viewFirst, viewLast };\n }\n}\n","@if (showSpacer()) {\n <div\n class=\"tx-virtual-scroller__spacer\"\n aria-hidden=\"true\"\n [style.height.px]=\"totalHeight()\"\n [style.width.px]=\"totalWidth()\"\n [class]=\"passThrough().spacer?.class\"\n [style]=\"passThrough().spacer?.style\"\n ></div>\n}\n\n<div\n class=\"tx-virtual-scroller__content\"\n [class.tx-virtual-scroller__content--horizontal]=\"horizontal()\"\n [style.transform]=\"contentTransform()\"\n [class]=\"passThrough().content?.class\"\n [style]=\"passThrough().content?.style\"\n>\n @if (contentTemplate(); as content) {\n <ng-container [ngTemplateOutlet]=\"content.templateRef\" [ngTemplateOutletContext]=\"contentContext()\" />\n } @else if (both()) {\n @for (row of renderedRows(); track row.index) {\n <div class=\"tx-virtual-scroller__row\" [style.height.px]=\"rowSize()\" [class]=\"passThrough().row?.class\" [style]=\"passThrough().row?.style\">\n @for (cell of row.cells; track trackOf(cell.index, cell.item)) {\n <div class=\"tx-virtual-scroller__item\" [style.width.px]=\"columnSize()\" [class]=\"passThrough().item?.class\" [style]=\"passThrough().item?.style\">\n <ng-container [ngTemplateOutlet]=\"cellContent\" [ngTemplateOutletContext]=\"{ $implicit: cell, count: columnCount() }\" />\n </div>\n }\n </div>\n }\n } @else {\n @for (cell of renderedItems(); track trackOf(cell.index, cell.item)) {\n <div\n class=\"tx-virtual-scroller__item\"\n [style.height.px]=\"horizontal() ? null : rowSize()\"\n [style.width.px]=\"horizontal() ? columnSize() : null\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"cellContent\" [ngTemplateOutletContext]=\"{ $implicit: cell, count: horizontal() ? columnCount() : rowCount() }\" />\n </div>\n }\n }\n</div>\n\n@if (showLoaderMask()) {\n <div class=\"tx-virtual-scroller__loader\" [class]=\"passThrough().loader?.class\" [style]=\"passThrough().loader?.style\">\n @if (loadingIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon.templateRef\" />\n } @else {\n <tx-icon\n class=\"tx-virtual-scroller__loading-icon\"\n role=\"img\"\n [name]=\"loadingIcon()\"\n [attr.aria-label]=\"translations().loading\"\n [class]=\"passThrough().loadingIcon?.class\"\n [style]=\"passThrough().loadingIcon?.style\"\n />\n }\n </div>\n}\n\n<ng-template #cellContent let-cell let-count=\"count\">\n @if (showLoaderItems() || (cell.item === undefined && loaderTemplate())) {\n <ng-container [ngTemplateOutlet]=\"loaderTemplate()?.templateRef ?? null\" [ngTemplateOutletContext]=\"{ $implicit: cell.index, index: cell.index, count }\" />\n } @else if (itemTem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|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Angular UI components for tectra: signals, OnPush, accessible and themable, one entry point per component.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://tectra-ng.com",
|
|
@@ -107,6 +107,10 @@
|
|
|
107
107
|
"types": "./types/tectra-ng-ui-country-select.d.ts",
|
|
108
108
|
"default": "./fesm2022/tectra-ng-ui-country-select.mjs"
|
|
109
109
|
},
|
|
110
|
+
"./data-view": {
|
|
111
|
+
"types": "./types/tectra-ng-ui-data-view.d.ts",
|
|
112
|
+
"default": "./fesm2022/tectra-ng-ui-data-view.mjs"
|
|
113
|
+
},
|
|
110
114
|
"./dialog": {
|
|
111
115
|
"types": "./types/tectra-ng-ui-dialog.d.ts",
|
|
112
116
|
"default": "./fesm2022/tectra-ng-ui-dialog.mjs"
|
|
@@ -291,9 +295,21 @@
|
|
|
291
295
|
"types": "./types/tectra-ng-ui-tooltip.d.ts",
|
|
292
296
|
"default": "./fesm2022/tectra-ng-ui-tooltip.mjs"
|
|
293
297
|
},
|
|
298
|
+
"./tree": {
|
|
299
|
+
"types": "./types/tectra-ng-ui-tree.d.ts",
|
|
300
|
+
"default": "./fesm2022/tectra-ng-ui-tree.mjs"
|
|
301
|
+
},
|
|
294
302
|
"./tree-select": {
|
|
295
303
|
"types": "./types/tectra-ng-ui-tree-select.d.ts",
|
|
296
304
|
"default": "./fesm2022/tectra-ng-ui-tree-select.mjs"
|
|
305
|
+
},
|
|
306
|
+
"./tree-table": {
|
|
307
|
+
"types": "./types/tectra-ng-ui-tree-table.d.ts",
|
|
308
|
+
"default": "./fesm2022/tectra-ng-ui-tree-table.mjs"
|
|
309
|
+
},
|
|
310
|
+
"./virtual-scroller": {
|
|
311
|
+
"types": "./types/tectra-ng-ui-virtual-scroller.d.ts",
|
|
312
|
+
"default": "./fesm2022/tectra-ng-ui-virtual-scroller.mjs"
|
|
297
313
|
}
|
|
298
314
|
},
|
|
299
315
|
"sideEffects": false,
|
package/tree/README.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Tree
|
|
2
|
+
|
|
3
|
+
Shows a hierarchy — folders, categories, menus — as a WAI-ARIA tree (`role="tree"`). Nodes open and close, can be selected one by one, several at once or with checkboxes that check a whole branch, searched, loaded lazily, moved by drag and drop (also between trees) and get a right-click menu. Nodes are `{ key, label, children?, icon?, expandedIcon?, collapsedIcon?, leaf?, expanded?, type?, selectable?, disabled?, draggable?, droppable?, loading?, styleClass?, data? }`. Also exports the helpers `walkTree`, `findNode`, `filterTree`, `moveNode`, `insertNode`, `removeNode`, `normalizeChecked`.
|
|
4
|
+
|
|
5
|
+
## Inputs
|
|
6
|
+
| Name | Description |
|
|
7
|
+
|---|---|
|
|
8
|
+
| value | Nodes of the tree; two-way with `[(value)]`, drag and drop writes the new order back |
|
|
9
|
+
| selectionMode | `single`, `multiple` or `checkbox`; leave empty for a tree without selection |
|
|
10
|
+
| selection | Selected node, or nodes in `multiple` / `checkbox` mode; two-way with `[(selection)]` |
|
|
11
|
+
| expandedKeys | Keys of the open nodes; two-way. Nodes with `expanded: true` are added on first sight |
|
|
12
|
+
| metaKeySelection | A click replaces the selection, Ctrl / ⌘ + click adds or removes a node |
|
|
13
|
+
| propagateSelectionUp | A parent is checked when all its children are, partly checked when some are |
|
|
14
|
+
| propagateSelectionDown | Checking a parent checks its whole branch |
|
|
15
|
+
| highlightOnSelect | Checked nodes also get the selected background |
|
|
16
|
+
| contextMenu | Menu items for a right click or Shift + F10 on a node |
|
|
17
|
+
| contextMenuSelection | The node the menu was opened for; two-way |
|
|
18
|
+
| draggableNodes | Nodes can be dragged (`draggable: false` keeps one in place) |
|
|
19
|
+
| droppableNodes | Nodes accept drops before, after or inside (`droppable: false` refuses inside) |
|
|
20
|
+
| draggableScope | Scope of the dragged nodes, matched against the target tree's `droppableScope` |
|
|
21
|
+
| droppableScope | Scopes this tree accepts from other trees |
|
|
22
|
+
| validateDrop | The drop waits until `accept()` of the `nodeDrop` event is called |
|
|
23
|
+
| loading | Shows the loading state |
|
|
24
|
+
| loadingMode | `mask` covers the tree with a spinner, `icon` only spins the togglers of loading nodes |
|
|
25
|
+
| loadingIcon | Icon of the mask |
|
|
26
|
+
| emptyMessage | Text when there are no nodes or the search found nothing |
|
|
27
|
+
| filter | Search field above the tree |
|
|
28
|
+
| filterBy | Fields searched, comma separated (`label`, `data.code`) |
|
|
29
|
+
| filterMode | `lenient` keeps the whole branch under a match, `strict` keeps only matching descendants |
|
|
30
|
+
| filterPlaceholder | Own placeholder of the search field |
|
|
31
|
+
| filterInputAutoFocus | Focuses the search field on start |
|
|
32
|
+
| scrollHeight | Maximum height of the scroll area; `flex` fills the parent |
|
|
33
|
+
| virtualScroll | Renders only the visible rows (needs `scrollHeight`) |
|
|
34
|
+
| virtualScrollItemSize | Height of one row in px with virtual scroll |
|
|
35
|
+
| virtualScrollTolerance | Rows rendered above and below the visible ones |
|
|
36
|
+
| ariaLabel | Accessible name of the tree |
|
|
37
|
+
| ariaLabelledBy | Id of the element that labels the tree |
|
|
38
|
+
| dt | Design tokens of this instance (`tree`) |
|
|
39
|
+
| pt | Classes and styles of the parts: `root`, `header`, `filter`, `filterInput`, `wrapper`, `list`, `node`, `content`, `toggler`, `checkbox`, `icon`, `label`, `children`, `dropPoint`, `empty`, `mask`, `footer` |
|
|
40
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
41
|
+
| unstyled | Removes the tectra styles |
|
|
42
|
+
|
|
43
|
+
## Outputs
|
|
44
|
+
| Name | Description |
|
|
45
|
+
|---|---|
|
|
46
|
+
| nodeSelect | A node was selected or checked: `{ node, originalEvent }` |
|
|
47
|
+
| nodeUnselect | A node was unselected or unchecked |
|
|
48
|
+
| nodeExpand | A node was opened — load its children here when it has `leaf: false` and no `children` |
|
|
49
|
+
| nodeCollapse | A node was closed |
|
|
50
|
+
| nodeContextMenuSelect | The menu was opened for a node |
|
|
51
|
+
| nodeDoubleClick | A node was double clicked |
|
|
52
|
+
| nodeDrop | A node was dropped: `{ dragNode, dropNode, position, index, originalEvent, accept }` |
|
|
53
|
+
| filtered | The search changed: `{ filter, filteredValue }` |
|
|
54
|
+
| valueChange | The nodes changed after a drop |
|
|
55
|
+
| selectionChange | The selection changed |
|
|
56
|
+
| expandedKeysChange | A node was opened or closed |
|
|
57
|
+
| contextMenuSelectionChange | The menu node changed |
|
|
58
|
+
|
|
59
|
+
## Slots
|
|
60
|
+
| Name | Description |
|
|
61
|
+
|---|---|
|
|
62
|
+
| txTreeNode | `<ng-template txTreeNode let-node>` — content of a node; `txTreeNode="type"` only for nodes of that `type`. Context: `node`, `level`, `expanded`, `selected`, `checked`, `partial` |
|
|
63
|
+
| txTreeHeader | `<ng-template txTreeHeader>` — content above the tree |
|
|
64
|
+
| txTreeFooter | `<ng-template txTreeFooter>` — content below the tree |
|
|
65
|
+
| txTreeEmpty | `<ng-template txTreeEmpty>` — own empty state |
|
|
66
|
+
| txTreeLoading | `<ng-template txTreeLoading>` — own content of the loading mask |
|
|
67
|
+
| txTreeFilter | `<ng-template txTreeFilter let-query let-filter="filter">` — own search field; call `filter(text)` |
|
|
68
|
+
| txTreeToggleIcon | `<ng-template txTreeToggleIcon let-expanded>` — own toggler icon (`loading` in the context) |
|
|
69
|
+
| txTreeCheckboxIcon | `<ng-template txTreeCheckboxIcon let-checked let-partial="partial">` — own checkbox icon |
|
|
70
|
+
|
|
71
|
+
## Methods
|
|
72
|
+
| Name | Description |
|
|
73
|
+
|---|---|
|
|
74
|
+
| expandAll() | Opens every node with children |
|
|
75
|
+
| collapseAll() | Closes every node |
|
|
76
|
+
| filterNodes(text) | Searches the tree |
|
|
77
|
+
| resetFilter() | Clears the search |
|
|
78
|
+
|
|
79
|
+
## Keyboard
|
|
80
|
+
| Key | Action |
|
|
81
|
+
|---|---|
|
|
82
|
+
| Tab | Moves into the tree to the selected node (or the first one) and out of it |
|
|
83
|
+
| ArrowDown / ArrowUp | Next / previous visible node |
|
|
84
|
+
| ArrowRight | Opens a closed node, moves to the first child of an open one |
|
|
85
|
+
| ArrowLeft | Closes an open node, moves to the parent of a closed one |
|
|
86
|
+
| Home / End | First / last visible node |
|
|
87
|
+
| Enter / Space | Selects the node, toggles its checkbox in `checkbox` mode |
|
|
88
|
+
| * | Opens all siblings of the node |
|
|
89
|
+
| Letters | Moves to the next node whose label starts with the typed text |
|
|
90
|
+
| Shift + F10 / Context menu key | Opens the context menu |
|
|
91
|
+
| Alt + ArrowUp / ArrowDown | Moves the node before the previous / after the next sibling (drag and drop on) |
|
|
92
|
+
| Alt + ArrowRight / ArrowLeft | Moves the node into the previous sibling / out of its parent (drag and drop on) |
|
|
93
|
+
| ArrowDown in the search field | Moves to the tree |
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Tree table
|
|
2
|
+
|
|
3
|
+
A table whose rows form a tree (`role="treegrid"`) and looks like the table: the first column gets a toggler and an indent, children open under their parent like an accordion. Built on `tx-table`, so it keeps its columns, cell templates, sorting (siblings are sorted on every level), pagination (of the root nodes), server data, filters (parents of the matches stay and open), column resize, reorder, settings and freezing, scroll height, virtual scroll, editing, row actions, context menu and CSV export. Rows are nodes `{ key?, data, children?, leaf?, expanded?, selectable?, loading? }`; cells read `data`. Every input, output and slot of the table works the same way — the tables below list the tree parts and the most used table ones.
|
|
4
|
+
|
|
5
|
+
## Inputs
|
|
6
|
+
| Name | Description |
|
|
7
|
+
|---|---|
|
|
8
|
+
| value | Root nodes |
|
|
9
|
+
| columns | Columns (`TxTableColumn`); the first visible one holds the toggler |
|
|
10
|
+
| dataKey | Field of `data` that identifies a row when nodes have no `key` |
|
|
11
|
+
| expandedKeys | Keys of the open nodes; two-way. Nodes with `expanded: true` are added on first sight |
|
|
12
|
+
| selectionMode | `single`, `multiple` (rows) or `checkbox` (a checkbox next to the toggler, select all in the header) |
|
|
13
|
+
| selection | Selected node or nodes; two-way |
|
|
14
|
+
| metaKeySelection | A click replaces the selection, Ctrl / ⌘ + click adds a row |
|
|
15
|
+
| propagateSelectionUp | A parent is checked when all its children are, partly checked when some are |
|
|
16
|
+
| propagateSelectionDown | Checking a parent checks its whole branch |
|
|
17
|
+
| filterMode | `lenient` keeps the whole branch under a match, `strict` keeps only matching descendants |
|
|
18
|
+
| filters | Column filters; two-way |
|
|
19
|
+
| globalFilter | Search over all columns; two-way |
|
|
20
|
+
| sortMode | `single` or `multiple` |
|
|
21
|
+
| sortField | Sorted field; two-way |
|
|
22
|
+
| sortOrder | `asc`, `desc` or `null`; two-way |
|
|
23
|
+
| paginator | Paginator under the table; pages count root nodes |
|
|
24
|
+
| rows | Root nodes per page; two-way |
|
|
25
|
+
| first | Index of the first root node on the page; two-way |
|
|
26
|
+
| totalRecords | Number of root nodes on the server (with `lazy`) |
|
|
27
|
+
| lazy | Sorting, pages and filters come from the server through `lazyLoad` |
|
|
28
|
+
| loading | Blurred loading overlay with a spinner |
|
|
29
|
+
| resizableColumns | Columns can be resized |
|
|
30
|
+
| reorderableColumns | Columns can be dragged to another place |
|
|
31
|
+
| scrollHeight | Height of the scroll area with a sticky header |
|
|
32
|
+
| virtualScroll | Renders only the visible rows (needs `scrollHeight`) |
|
|
33
|
+
| size | `small`, `medium`, `large` |
|
|
34
|
+
| showGridlines | Borders around every cell |
|
|
35
|
+
| stripedRows | Every second row is tinted |
|
|
36
|
+
| rowHover | Rows are highlighted under the pointer |
|
|
37
|
+
| responsive | Cards below the breakpoint (off by default for a tree) |
|
|
38
|
+
| contextMenu | Menu items for a right click on a row |
|
|
39
|
+
| ariaLabel | Accessible name of the tree grid |
|
|
40
|
+
| dt | Design tokens of this instance (`table`; the indent and the gap next to the toggler come from `treeTable`) |
|
|
41
|
+
| pt | Classes and styles of the table parts, plus `treeToggle` |
|
|
42
|
+
| ptOptions | How `pt` merges with the global pass-through |
|
|
43
|
+
| unstyled | Removes the tectra styles |
|
|
44
|
+
|
|
45
|
+
## Outputs
|
|
46
|
+
| Name | Description |
|
|
47
|
+
|---|---|
|
|
48
|
+
| nodeExpand | A node was opened — load its children here when it has `leaf: false` and no `children` |
|
|
49
|
+
| nodeCollapse | A node was closed |
|
|
50
|
+
| expandedKeysChange | A node was opened or closed |
|
|
51
|
+
| selectionChange | The selection changed |
|
|
52
|
+
| rowSelect | A row was selected or checked: `{ row, index, originalEvent }` (`row` is the node) |
|
|
53
|
+
| rowUnselect | A row was unselected or unchecked |
|
|
54
|
+
| sortChange | The sort changed |
|
|
55
|
+
| pageChange | The page changed |
|
|
56
|
+
| lazyLoad | The server should send another page, sort or filter |
|
|
57
|
+
| filterChange | Filters changed |
|
|
58
|
+
|
|
59
|
+
## Slots
|
|
60
|
+
| Name | Description |
|
|
61
|
+
|---|---|
|
|
62
|
+
| txTableCell | `<ng-template txTableCell="field" let-data let-node="node">` — own cell content; `data` is the node data |
|
|
63
|
+
| txTableHeaderCell | `<ng-template txTableHeaderCell="field" let-column>` — own header content |
|
|
64
|
+
| txTableFooterCell | `<ng-template txTableFooterCell="field">` — own footer content |
|
|
65
|
+
| txTableEmpty | `<ng-template txTableEmpty>` — own empty state |
|
|
66
|
+
| txTableEditor | `<ng-template txTableEditor="field">` — own cell editor |
|
|
67
|
+
|
|
68
|
+
## Methods
|
|
69
|
+
| Name | Description |
|
|
70
|
+
|---|---|
|
|
71
|
+
| expandAll() | Opens every node with children |
|
|
72
|
+
| collapseAll() | Closes every node |
|
|
73
|
+
| exportCSV() | Downloads every node (in tree order) as CSV |
|
|
74
|
+
|
|
75
|
+
## Keyboard
|
|
76
|
+
| Key | Action |
|
|
77
|
+
|---|---|
|
|
78
|
+
| Tab | Moves to the focused row, then to the togglers and controls inside it |
|
|
79
|
+
| ArrowDown / ArrowUp | Next / previous row |
|
|
80
|
+
| ArrowRight | Opens a closed row, moves to the first child of an open one |
|
|
81
|
+
| ArrowLeft | Closes an open row, moves to the parent of a closed one |
|
|
82
|
+
| Home / End | First / last row |
|
|
83
|
+
| Enter / Space | Selects the row or toggles its checkbox |
|
|
84
|
+
| Enter on the toggler | Opens or closes the row |
|
|
@@ -42,6 +42,8 @@ export declare class TxAutocomplete extends TxSelectBase<unknown> {
|
|
|
42
42
|
};
|
|
43
43
|
list: {
|
|
44
44
|
padding: string;
|
|
45
|
+
paddingBlock: string;
|
|
46
|
+
paddingInline: string;
|
|
45
47
|
gap: string;
|
|
46
48
|
maxHeight: string;
|
|
47
49
|
};
|
|
@@ -50,6 +52,7 @@ export declare class TxAutocomplete extends TxSelectBase<unknown> {
|
|
|
50
52
|
gap: string;
|
|
51
53
|
borderRadius: string;
|
|
52
54
|
color: string;
|
|
55
|
+
focusColor: string;
|
|
53
56
|
focusBackground: string;
|
|
54
57
|
selectedBackground: string;
|
|
55
58
|
selectedColor: string;
|
|
@@ -58,6 +61,12 @@ export declare class TxAutocomplete extends TxSelectBase<unknown> {
|
|
|
58
61
|
selectedFontWeight: string;
|
|
59
62
|
disabledColor: string;
|
|
60
63
|
checkColor: string;
|
|
64
|
+
multiple: {
|
|
65
|
+
selectedBackground: string;
|
|
66
|
+
selectedFocusBackground: string;
|
|
67
|
+
selectedColor: string;
|
|
68
|
+
selectedFocusColor: string;
|
|
69
|
+
};
|
|
61
70
|
};
|
|
62
71
|
checkbox: {
|
|
63
72
|
size: string;
|
|
@@ -95,8 +104,10 @@ export declare class TxAutocomplete extends TxSelectBase<unknown> {
|
|
|
95
104
|
minHeight: string;
|
|
96
105
|
};
|
|
97
106
|
dropdownButton: {
|
|
107
|
+
width: string;
|
|
98
108
|
background: string;
|
|
99
109
|
hoverBackground: string;
|
|
110
|
+
activeBackground: string;
|
|
100
111
|
color: string;
|
|
101
112
|
hoverColor: string;
|
|
102
113
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-autocomplete.d.ts","names":[],"sources":["../../../../packages/ui/autocomplete/src/autocomplete.types.ts","../../../../packages/ui/autocomplete/src/autocomplete.component.ts"],"mappings":";;;;;YAEY;YAEA,qBAAqB;iBAEhB;EACf;;iBAGe;EACf;EACA;EACA;;qBCgCW,uBAAuB;WACzB,qCAAW;WACX,kCAAQ;WACR,kCAAQ;WACR,sCAAY,YAAA;WACZ,sCAAY,YAAA;WACZ,wCAAc;WACd,qCAAW;WACX,+BAAK;WACL,mCAAS;WACT,yCAAe;WACf,yCAAe;WACf,0CAAgB;WAChB,mCAAS;WACT,4BAAE,YAAA
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-autocomplete.d.ts","names":[],"sources":["../../../../packages/ui/autocomplete/src/autocomplete.types.ts","../../../../packages/ui/autocomplete/src/autocomplete.component.ts"],"mappings":";;;;;YAEY;YAEA,qBAAqB;iBAEhB;EACf;;iBAGe;EACf;EACA;EACA;;qBCgCW,uBAAuB;WACzB,qCAAW;WACX,kCAAQ;WACR,kCAAQ;WACR,sCAAY,YAAA;WACZ,sCAAY,YAAA;WACZ,wCAAc;WACd,qCAAW;WACX,+BAAK;WACL,mCAAS;WACT,yCAAe;WACf,yCAAe;WACf,0CAAgB;WAChB,mCAAS;WACT,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,mCAAS,iBAAA;WACT,iCAAO,iBAAA;WAEP,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;qBACD,gCAAM;qBACG,oCAAU;mBACrB;UACT;mBACS;WAER,wCAAc;WAOd,uCAAa,OAAA;WAiBb,kCAAQ;WACR,mCAAS;WACT,oCAAU,OAAA;WACV,mCAAS;;;WACT,oCAAU;;;gBAEI;EAId,WAAW;EAOX;EAST,QAAQ,OAAO;EAuBf;EAMA,OAAO,OAAO;EAQd,gBAAgB,OAAO;EAUd,WAAW,OAAO;EAMlB;EAKT,WAAW,MAAM,cAAc,OAAO;YAU5B,WAAW;YAIX,SAAS,MAAM;YAmBf;YAOA;YAIA,eAAe,OAAO;YAsBtB;UAIF;UAiBA;UAOA;UAuBA;UAIA;SAnQG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAc;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;IAAA"}
|
|
@@ -28,6 +28,9 @@ export declare class TxChip {
|
|
|
28
28
|
removeHoverColor: string;
|
|
29
29
|
removeHoverBackground: string;
|
|
30
30
|
focusRingColor: string;
|
|
31
|
+
focusRingWidth: string;
|
|
32
|
+
focusRingOffset: string;
|
|
33
|
+
focusRingShadow: string;
|
|
31
34
|
};
|
|
32
35
|
}> | undefined>;
|
|
33
36
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxChipPart, import("@tectra-ng/core/config").TxPassThroughValue<TxChip>>> | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-chip.d.ts","names":[],"sources":["../../../../packages/ui/chip/src/chip.types.ts","../../../../packages/ui/chip/src/chip.component.ts"],"mappings":";;;;YAAY;qBCuDC;UACH;WAEC,+BAAK;WACL,8BAAI,YAAA;WACJ,+BAAK;WACL,6BAAG;WACH,mCAAS;WACT,oCAAU,YAAA;WACV,qCAAW;WACX,4BAAE,YAAA
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-chip.d.ts","names":[],"sources":["../../../../packages/ui/chip/src/chip.types.ts","../../../../packages/ui/chip/src/chip.component.ts"],"mappings":";;;;YAAY;qBCuDC;UACH;WAEC,+BAAK;WACL,8BAAI,YAAA;WACJ,+BAAK;WACL,6BAAG;WACH,mCAAS;WACT,oCAAU,YAAA;WACV,qCAAW;WACX,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,6CAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,iCAAO,iBAAA;WAEP,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,6CAAA;WACX,mCAAS;;;EAElB,WAAW;EAIX,OAAO,OAAO;SA1BH,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAM;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"}
|
|
@@ -54,6 +54,8 @@ export declare class TxCountrySelect extends TxFormControlBase<string | string[]
|
|
|
54
54
|
};
|
|
55
55
|
list: {
|
|
56
56
|
padding: string;
|
|
57
|
+
paddingBlock: string;
|
|
58
|
+
paddingInline: string;
|
|
57
59
|
gap: string;
|
|
58
60
|
maxHeight: string;
|
|
59
61
|
};
|
|
@@ -62,6 +64,7 @@ export declare class TxCountrySelect extends TxFormControlBase<string | string[]
|
|
|
62
64
|
gap: string;
|
|
63
65
|
borderRadius: string;
|
|
64
66
|
color: string;
|
|
67
|
+
focusColor: string;
|
|
65
68
|
focusBackground: string;
|
|
66
69
|
selectedBackground: string;
|
|
67
70
|
selectedColor: string;
|
|
@@ -70,6 +73,12 @@ export declare class TxCountrySelect extends TxFormControlBase<string | string[]
|
|
|
70
73
|
selectedFontWeight: string;
|
|
71
74
|
disabledColor: string;
|
|
72
75
|
checkColor: string;
|
|
76
|
+
multiple: {
|
|
77
|
+
selectedBackground: string;
|
|
78
|
+
selectedFocusBackground: string;
|
|
79
|
+
selectedColor: string;
|
|
80
|
+
selectedFocusColor: string;
|
|
81
|
+
};
|
|
73
82
|
};
|
|
74
83
|
checkbox: {
|
|
75
84
|
size: string;
|
|
@@ -107,8 +116,10 @@ export declare class TxCountrySelect extends TxFormControlBase<string | string[]
|
|
|
107
116
|
minHeight: string;
|
|
108
117
|
};
|
|
109
118
|
dropdownButton: {
|
|
119
|
+
width: string;
|
|
110
120
|
background: string;
|
|
111
121
|
hoverBackground: string;
|
|
122
|
+
activeBackground: string;
|
|
112
123
|
color: string;
|
|
113
124
|
hoverColor: string;
|
|
114
125
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-country-select.d.ts","names":[],"sources":["../../../../packages/ui/country-select/src/country-select.types.ts","../../../../packages/ui/country-select/src/country-select.component.ts"],"mappings":";;;;;iBAAiB;EACf;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;;YAGU;qBCMC,wBAAwB;UAC3B;WAEC,iCAAO,+BAAA;WACP,kCAAQ;WACR,gCAAM;WACN,8BAAI,YAAA;WACJ,+BAAK,YAAA;WACL,kCAAQ;WACR,gDAAsB;WACtB,qCAAW;WACX,mCAAS;WACT,iCAAO;WACP,iCAAO;WACP,mCAAS;WACT,wCAAc;WACd,8BAAI,YAAA;WACJ,iCAAO,YAAA;WACP,iCAAO;WACP,kCAAQ;WACR,4BAAE,YAAA
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-country-select.d.ts","names":[],"sources":["../../../../packages/ui/country-select/src/country-select.types.ts","../../../../packages/ui/country-select/src/country-select.component.ts"],"mappings":";;;;;iBAAiB;EACf;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;E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
12
|
+
export type TxFlagResolver = (code: string, shape: TxFlagShape) => TxFlag | Promise<TxFlag | null> | null;
|
|
13
13
|
export declare class TxCountry {
|
|
14
14
|
private locale;
|
|
15
15
|
private resolver;
|
|
@@ -26,6 +26,8 @@ export declare class TxCountry {
|
|
|
26
26
|
largeSize: string;
|
|
27
27
|
borderRadius: string;
|
|
28
28
|
ring: string;
|
|
29
|
+
ringGutter: string;
|
|
30
|
+
loadingBackground: string;
|
|
29
31
|
nameColor: string;
|
|
30
32
|
hintColor: string;
|
|
31
33
|
countColor: string;
|
|
@@ -39,11 +41,15 @@ export declare class TxCountry {
|
|
|
39
41
|
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxCountryPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
40
42
|
readonly code: import("@angular/core").Signal<string | null>;
|
|
41
43
|
readonly label: import("@angular/core").Signal<string>;
|
|
42
|
-
readonly
|
|
44
|
+
private readonly loaded;
|
|
45
|
+
private readonly resolution;
|
|
46
|
+
readonly isLoading: import("@angular/core").Signal<boolean>;
|
|
47
|
+
readonly flag: import("@angular/core").Signal<TxFlag | null>;
|
|
43
48
|
readonly emoji: import("@angular/core").Signal<string>;
|
|
44
49
|
readonly hostStyle: import("@angular/core").Signal<{
|
|
45
50
|
[x: string]: string;
|
|
46
51
|
}>;
|
|
52
|
+
constructor();
|
|
47
53
|
flagClass(own: string | undefined): string;
|
|
48
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxCountry, never>;
|
|
49
55
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxCountry, "tx-country", never, {
|
|
@@ -101,5 +107,5 @@ export declare function countryEmoji(code: string): string;
|
|
|
101
107
|
export declare const TX_FLAG_RESOLVER: InjectionToken<TxFlagResolver>;
|
|
102
108
|
export declare function provideTxFlags(resolver: TxFlagResolver): Provider;
|
|
103
109
|
export declare const txFlagIcons: TxFlagResolver;
|
|
104
|
-
export declare function txFlagImages(url: (code: string, shape:
|
|
110
|
+
export declare function txFlagImages(url: (code: string, shape: TxFlagShape) => string | Promise<string | null>): TxFlagResolver;
|
|
105
111
|
//# sourceMappingURL=tectra-ng-ui-country.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-country.d.ts","names":[],"sources":["../../../../packages/ui/country/src/country.types.ts","../../../../packages/ui/country/src/country.component.ts","../../../../packages/ui/country/src/countries.ts","../../../../packages/ui/country/src/flags.ts"],"mappings":";;;;YAAY;YACA;YACA;iBAEK;EACf;EACA;;YAGU,kBAAkB,cAAc,OAAO,gBAAgB;
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-country.d.ts","names":[],"sources":["../../../../packages/ui/country/src/country.types.ts","../../../../packages/ui/country/src/country.component.ts","../../../../packages/ui/country/src/countries.ts","../../../../packages/ui/country/src/flags.ts"],"mappings":";;;;YAAY;YACA;YACA;iBAEK;EACf;EACA;;YAGU,kBAAkB,cAAc,OAAO,gBAAgB,SAAS,QAAQ;qBCoCvE;UACH;UACA;WAEC,iCAAO;WACP,8BAAI;WACJ,kCAAQ;WACR,8BAAI,YAAA;WACJ,+BAAK,YAAA;WACL,4BAAE,YAAA;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,gDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,gDAAA;WACX,8BAAI;WAIJ,+BAAK;mBACG;mBACA;WAIR,mCAAS;WAIT,8BAAI,OAAA;WAWJ,+BAAK;WACL,mCAAS;;;;EAelB,UAAU;SAzDC,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAS;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;;;;qBC7CT;wBAYG,cAAc;wBAId,YAAY,cAAc;wBAa1B,aAAa;qBC1BhB,kBAAgB,eAAA;wBAEb,eAAe,UAAU,iBAAiB;qBAI7C,aAAa;wBAIV,aAAa,MAAM,cAAc,OAAO,yBAAyB,yBAAyB"}
|