@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-paginator.mjs","names":[],"sources":["../../../../packages/ui/paginator/src/paginator.templates.ts","../../../../packages/ui/paginator/src/paginator.utils.ts","../../../../packages/ui/paginator/src/paginator.component.ts","../../../../packages/ui/paginator/src/paginator.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxPaginatorTemplateContext } from './paginator.types';\n\n@Directive({ selector: 'ng-template[txPaginatorStart]' })\nexport class TxPaginatorStart {\n readonly templateRef = inject<TemplateRef<TxPaginatorTemplateContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txPaginatorEnd]' })\nexport class TxPaginatorEnd {\n readonly templateRef = inject<TemplateRef<TxPaginatorTemplateContext>>(TemplateRef);\n}\n","export function pageCountOf(totalRecords: number, rows: number): number {\n if (totalRecords <= 0) return 0;\n return rows > 0 ? Math.ceil(totalRecords / rows) : 1;\n}\n\nexport function firstToPage(first: number, rows: number): number {\n return rows > 0 ? Math.floor(Math.max(0, first) / rows) : 0;\n}\n\nexport function pageToFirst(page: number, rows: number): number {\n return Math.max(0, page) * Math.max(0, rows);\n}\n\nexport function pageLinksOf(page: number, pageCount: number, linkSize: number): number[] {\n const visible = Math.max(0, Math.min(linkSize, pageCount));\n let start = Math.max(0, Math.ceil(page - visible / 2));\n const end = Math.min(pageCount - 1, start + visible - 1);\n start = Math.max(0, start - (visible - (end - start + 1)));\n return Array.from({ length: Math.max(0, end - start + 1) }, (_, index) => start + index);\n}\n","import { BreakpointObserver } from '@angular/cdk/layout';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n numberAttribute,\n output,\n untracked,\n} from '@angular/core';\nimport { toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { FormsModule } from '@angular/forms';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPaginatorTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxInput } from '@tectra-ng/ui/input';\nimport { TxSelect } from '@tectra-ng/ui/select';\nimport { map, of, switchMap } from 'rxjs';\nimport { TxPaginatorEnd, TxPaginatorStart } from './paginator.templates';\nimport { TxPageState, TxPaginatorPart, TxRowsPerPageItem, TxRowsPerPageOption } from './paginator.types';\nimport { firstToPage, pageCountOf, pageLinksOf, pageToFirst } from './paginator.utils';\n\n@Component({\n selector: 'tx-paginator',\n imports: [NgTemplateOutlet, FormsModule, TxIcon, TxSelect, TxInput],\n templateUrl: './paginator.component.html',\n styleUrl: './paginator.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-paginator',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-paginator--compact]': 'compact()',\n '[class.tx-paginator--with-total]': 'showTotal()',\n '[attr.hidden]': '!visible() || null',\n },\n})\nexport class TxPaginator {\n private localeService = inject(TxLocaleService);\n private breakpointObserver = inject(BreakpointObserver);\n\n readonly first = model(0);\n readonly rows = model(0);\n readonly totalRecords = input(0, { transform: numberAttribute });\n readonly pageLinkSize = input(5, { transform: numberAttribute });\n readonly compactPageLinkSize = input(3, { transform: numberAttribute });\n readonly compactBreakpoint = input<string | null>('40rem');\n readonly rowsPerPageOptions = input<TxRowsPerPageOption[] | null | undefined>(undefined);\n readonly alwaysShow = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showFirstLastIcon = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showPageLinks = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showCurrentPageReport = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly currentPageReportTemplate = input<string | undefined>(undefined);\n readonly showJumpToPageDropdown = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showJumpToPageInput = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showTotal = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly disabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly locale = input<string | undefined>(undefined);\n readonly dropdownScrollHeight = input('200px');\n readonly firstPageIcon = input('angle-double-left');\n readonly previousPageIcon = input('angle-left');\n readonly nextPageIcon = input('angle-right');\n readonly lastPageIcon = input('angle-double-right');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraPaginatorTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPaginatorPart, TxPaginator> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly pageChange = output<TxPageState>();\n\n readonly startTemplate = contentChild(TxPaginatorStart);\n readonly endTemplate = contentChild(TxPaginatorEnd);\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('paginator', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-paginator'), ...this.passThrough().root?.style }));\n\n readonly compact = toSignal(\n toObservable(this.compactBreakpoint).pipe(\n switchMap((breakpoint) =>\n breakpoint ? this.breakpointObserver.observe(`(width < ${breakpoint})`).pipe(map(({ matches }) => matches)) : of(false),\n ),\n ),\n { initialValue: false },\n );\n\n readonly pageCount = computed(() => pageCountOf(this.totalRecords(), this.rows()));\n readonly page = computed(() => Math.min(firstToPage(this.first(), this.rows()), Math.max(0, this.pageCount() - 1)));\n readonly empty = computed(() => this.pageCount() === 0);\n readonly isFirstPage = computed(() => this.empty() || this.page() === 0);\n readonly isLastPage = computed(() => this.empty() || this.page() === this.pageCount() - 1);\n readonly pageLinks = computed(() =>\n pageLinksOf(this.page(), this.pageCount(), this.compact() ? this.compactPageLinkSize() : this.pageLinkSize()),\n );\n readonly showEnds = computed(() => this.showFirstLastIcon() && !this.compact());\n readonly visible = computed(() => this.alwaysShow() || this.pageCount() > 1);\n readonly state = computed<TxPageState>(() => ({\n page: this.page(),\n first: this.first(),\n rows: this.rows(),\n pageCount: this.pageCount(),\n }));\n\n readonly rowsPerPageItems = computed<TxRowsPerPageItem[]>(() => {\n const options = this.rowsPerPageOptions();\n if (!options?.length) return [];\n const rows = this.rows();\n const items = options.map((option) =>\n typeof option === 'number'\n ? { label: this.format(option), value: option }\n : { label: option.showAll, value: this.totalRecords() },\n );\n const numbers = options.filter((option): option is number => typeof option === 'number');\n if (rows > 0 && !items.some((item) => item.value === rows)) {\n const merged = [...numbers, rows].sort((a, b) => a - b).map((value) => ({ label: this.format(value), value }));\n return [...merged, ...items.filter((_, index) => typeof options[index] !== 'number')];\n }\n return items;\n });\n\n readonly jumpToPageItems = computed(() =>\n Array.from({ length: this.pageCount() }, (_, index) => ({ label: this.format(index + 1), value: index })),\n );\n\n readonly currentPageReport = computed(() => {\n const total = this.totalRecords();\n const first = this.first();\n const values: Record<string, number> = {\n currentPage: this.empty() ? 0 : this.page() + 1,\n totalPages: this.pageCount(),\n first: total > 0 ? first + 1 : 0,\n last: Math.min(first + this.rows(), total),\n rows: this.rows(),\n totalRecords: total,\n };\n const template = this.currentPageReportTemplate() ?? this.translations().currentPageReport;\n return template.replace(/\\{(\\w+)\\}/g, (match, key: string) => (key in values ? this.format(values[key]) : match));\n });\n\n readonly totalLabel = computed(() =>\n this.translations().totalCount.replace('{count}', this.format(this.totalRecords())),\n );\n\n constructor() {\n effect(() => {\n const total = this.totalRecords();\n const pageCount = this.pageCount();\n const first = untracked(this.first);\n if (total > 0 && first >= total && pageCount > 0) {\n untracked(() => this.changePage(pageCount - 1));\n }\n });\n }\n\n changePage(page: number): void {\n const pageCount = this.pageCount();\n if (this.disabled() || page < 0 || page >= pageCount) return;\n const first = pageToFirst(page, this.rows());\n if (first === this.first() && page === this.page()) return;\n this.first.set(first);\n this.pageChange.emit({ page, first, rows: this.rows(), pageCount });\n }\n\n changeRows(rows: number | null): void {\n if (rows === null || rows <= 0 || rows === this.rows()) return;\n const page = firstToPage(this.first(), rows);\n const first = pageToFirst(page, rows);\n this.rows.set(rows);\n this.first.set(first);\n this.pageChange.emit({ page, first, rows, pageCount: pageCountOf(this.totalRecords(), rows) });\n }\n\n jumpTo(input: HTMLInputElement): void {\n const value = Number.parseInt(input.value, 10);\n if (Number.isNaN(value)) {\n input.value = String(this.page() + 1);\n return;\n }\n const page = Math.min(Math.max(value, 1), Math.max(this.pageCount(), 1)) - 1;\n input.value = String(page + 1);\n this.changePage(page);\n }\n\n pageLabel(page: number): string {\n return this.translations().pageNumber.replace('{page}', this.format(page + 1));\n }\n\n format(value: number): string {\n return new Intl.NumberFormat(this.locale() ?? this.localeService.locale().intl, { useGrouping: false }).format(value);\n }\n}\n","@if (showTotal()) {\n <div class=\"tx-paginator__total\" [class]=\"passThrough().total?.class\" [style]=\"passThrough().total?.style\">{{ totalLabel() }}</div>\n}\n<nav\n class=\"tx-paginator__bar\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.aria-label]=\"ariaLabel() ?? translations().pagination\"\n>\n @if (startTemplate(); as start) {\n <div class=\"tx-paginator__start\" [class]=\"passThrough().start?.class\" [style]=\"passThrough().start?.style\">\n <ng-container [ngTemplateOutlet]=\"start.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state() }\" />\n </div>\n }\n @if (showCurrentPageReport()) {\n <span\n class=\"tx-paginator__report\"\n aria-live=\"polite\"\n [class]=\"passThrough().currentPageReport?.class\"\n [style]=\"passThrough().currentPageReport?.style\"\n >{{ currentPageReport() }}</span\n >\n }\n @if (showEnds()) {\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__first\"\n [class]=\"passThrough().first?.class\"\n [style]=\"passThrough().first?.style\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"translations().firstPage\"\n (click)=\"changePage(0)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"firstPageIcon()\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__previous\"\n [class]=\"passThrough().previous?.class\"\n [style]=\"passThrough().previous?.style\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"translations().previousPage\"\n (click)=\"changePage(page() - 1)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"previousPageIcon()\" />\n </button>\n @if (showPageLinks()) {\n <span class=\"tx-paginator__pages\" [class]=\"passThrough().pages?.class\" [style]=\"passThrough().pages?.style\">\n @for (link of pageLinks(); track link) {\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__page\"\n [class.tx-paginator__page--selected]=\"link === page()\"\n [class]=\"passThrough().page?.class\"\n [style]=\"passThrough().page?.style\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"pageLabel(link)\"\n [attr.aria-current]=\"link === page() ? 'page' : null\"\n (click)=\"changePage(link)\"\n >\n {{ format(link + 1) }}\n </button>\n }\n </span>\n }\n @if (showJumpToPageDropdown() && !empty()) {\n <tx-select\n class=\"tx-paginator__jump-dropdown\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [class]=\"passThrough().jumpToPageDropdown?.class\"\n [style]=\"passThrough().jumpToPageDropdown?.style\"\n [options]=\"jumpToPageItems()\"\n [scrollHeight]=\"dropdownScrollHeight()\"\n [ariaLabel]=\"translations().jumpToPage\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"disabled()\"\n [ngModel]=\"page()\"\n (ngModelChange)=\"changePage($event)\"\n />\n }\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__next\"\n [class]=\"passThrough().next?.class\"\n [style]=\"passThrough().next?.style\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"translations().nextPage\"\n (click)=\"changePage(page() + 1)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"nextPageIcon()\" />\n </button>\n @if (showEnds()) {\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__last\"\n [class]=\"passThrough().last?.class\"\n [style]=\"passThrough().last?.style\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"translations().lastPage\"\n (click)=\"changePage(pageCount() - 1)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"lastPageIcon()\" />\n </button>\n }\n @if (showJumpToPageInput()) {\n <input\n #jumpInput\n txInput\n type=\"text\"\n inputmode=\"numeric\"\n class=\"tx-paginator__jump-input\"\n [class]=\"passThrough().jumpToPageInput?.class\"\n [style]=\"passThrough().jumpToPageInput?.style\"\n [value]=\"empty() ? '' : format(page() + 1)\"\n [disabled]=\"disabled() || empty()\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().jumpToPage\"\n (keydown.enter)=\"jumpTo(jumpInput)\"\n (blur)=\"jumpTo(jumpInput)\"\n />\n }\n @if (rowsPerPageItems().length) {\n <tx-select\n class=\"tx-paginator__rpp-dropdown\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [class]=\"passThrough().rowsPerPageDropdown?.class\"\n [style]=\"passThrough().rowsPerPageDropdown?.style\"\n [options]=\"rowsPerPageItems()\"\n [scrollHeight]=\"dropdownScrollHeight()\"\n [ariaLabel]=\"translations().rowsPerPage\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"disabled()\"\n [ngModel]=\"rows()\"\n (ngModelChange)=\"changeRows($event)\"\n />\n }\n @if (endTemplate(); as end) {\n <div class=\"tx-paginator__end\" [class]=\"passThrough().end?.class\" [style]=\"passThrough().end?.style\">\n <ng-container [ngTemplateOutlet]=\"end.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state() }\" />\n </div>\n }\n</nav>\n"],"mappings":";;;;;;;;;;;;;;;AAIA,IAAa,mBAAb,M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AAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,gBAAgB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAClB,cAAc,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-paginator.mjs","names":[],"sources":["../../../../packages/ui/paginator/src/paginator.templates.ts","../../../../packages/ui/paginator/src/paginator.utils.ts","../../../../packages/ui/paginator/src/paginator.component.ts","../../../../packages/ui/paginator/src/paginator.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxPaginatorTemplateContext } from './paginator.types';\n\n@Directive({ selector: 'ng-template[txPaginatorStart]' })\nexport class TxPaginatorStart {\n readonly templateRef = inject<TemplateRef<TxPaginatorTemplateContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txPaginatorEnd]' })\nexport class TxPaginatorEnd {\n readonly templateRef = inject<TemplateRef<TxPaginatorTemplateContext>>(TemplateRef);\n}\n","export function pageCountOf(totalRecords: number, rows: number): number {\n if (totalRecords <= 0) return 0;\n return rows > 0 ? Math.ceil(totalRecords / rows) : 1;\n}\n\nexport function firstToPage(first: number, rows: number): number {\n return rows > 0 ? Math.floor(Math.max(0, first) / rows) : 0;\n}\n\nexport function pageToFirst(page: number, rows: number): number {\n return Math.max(0, page) * Math.max(0, rows);\n}\n\nexport function pageLinksOf(page: number, pageCount: number, linkSize: number): number[] {\n const visible = Math.max(0, Math.min(linkSize, pageCount));\n let start = Math.max(0, Math.ceil(page - visible / 2));\n const end = Math.min(pageCount - 1, start + visible - 1);\n start = Math.max(0, start - (visible - (end - start + 1)));\n return Array.from({ length: Math.max(0, end - start + 1) }, (_, index) => start + index);\n}\n","import { BreakpointObserver } from '@angular/cdk/layout';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n numberAttribute,\n output,\n untracked,\n} from '@angular/core';\nimport { toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { FormsModule } from '@angular/forms';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPaginatorTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxInput } from '@tectra-ng/ui/input';\nimport { TxSelect } from '@tectra-ng/ui/select';\nimport { map, of, switchMap } from 'rxjs';\nimport { TxPaginatorEnd, TxPaginatorStart } from './paginator.templates';\nimport { TxPageState, TxPaginatorPart, TxRowsPerPageItem, TxRowsPerPageOption } from './paginator.types';\nimport { firstToPage, pageCountOf, pageLinksOf, pageToFirst } from './paginator.utils';\n\n@Component({\n selector: 'tx-paginator',\n imports: [NgTemplateOutlet, FormsModule, TxIcon, TxSelect, TxInput],\n templateUrl: './paginator.component.html',\n styleUrl: './paginator.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-paginator',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-paginator--compact]': 'compact()',\n '[class.tx-paginator--with-total]': 'showTotal()',\n '[attr.hidden]': '!visible() || null',\n },\n})\nexport class TxPaginator {\n private localeService = inject(TxLocaleService);\n private breakpointObserver = inject(BreakpointObserver);\n\n readonly first = model(0);\n readonly rows = model(0);\n readonly totalRecords = input(0, { transform: numberAttribute });\n readonly pageLinkSize = input(5, { transform: numberAttribute });\n readonly compactPageLinkSize = input(3, { transform: numberAttribute });\n readonly compactBreakpoint = input<string | null>('40rem');\n readonly rowsPerPageOptions = input<TxRowsPerPageOption[] | null | undefined>(undefined);\n readonly alwaysShow = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showFirstLastIcon = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showPageLinks = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showCurrentPageReport = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly currentPageReportTemplate = input<string | undefined>(undefined);\n readonly showJumpToPageDropdown = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showJumpToPageInput = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showTotal = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly disabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly locale = input<string | undefined>(undefined);\n readonly dropdownScrollHeight = input('200px');\n readonly firstPageIcon = input('angle-double-left');\n readonly previousPageIcon = input('angle-left');\n readonly nextPageIcon = input('angle-right');\n readonly lastPageIcon = input('angle-double-right');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraPaginatorTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPaginatorPart, TxPaginator> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly pageChange = output<TxPageState>();\n\n readonly startTemplate = contentChild(TxPaginatorStart);\n readonly endTemplate = contentChild(TxPaginatorEnd);\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('paginator', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-paginator'), ...this.passThrough().root?.style }));\n\n readonly compact = toSignal(\n toObservable(this.compactBreakpoint).pipe(\n switchMap((breakpoint) =>\n breakpoint ? this.breakpointObserver.observe(`(width < ${breakpoint})`).pipe(map(({ matches }) => matches)) : of(false),\n ),\n ),\n { initialValue: false },\n );\n\n readonly pageCount = computed(() => pageCountOf(this.totalRecords(), this.rows()));\n readonly page = computed(() => Math.min(firstToPage(this.first(), this.rows()), Math.max(0, this.pageCount() - 1)));\n readonly empty = computed(() => this.pageCount() === 0);\n readonly isFirstPage = computed(() => this.empty() || this.page() === 0);\n readonly isLastPage = computed(() => this.empty() || this.page() === this.pageCount() - 1);\n readonly pageLinks = computed(() =>\n pageLinksOf(this.page(), this.pageCount(), this.compact() ? this.compactPageLinkSize() : this.pageLinkSize()),\n );\n readonly showEnds = computed(() => this.showFirstLastIcon() && !this.compact());\n readonly visible = computed(() => this.alwaysShow() || this.pageCount() > 1);\n readonly state = computed<TxPageState>(() => ({\n page: this.page(),\n first: this.first(),\n rows: this.rows(),\n pageCount: this.pageCount(),\n }));\n\n readonly rowsPerPageItems = computed<TxRowsPerPageItem[]>(() => {\n const options = this.rowsPerPageOptions();\n if (!options?.length) return [];\n const rows = this.rows();\n const items = options.map((option) =>\n typeof option === 'number'\n ? { label: this.format(option), value: option }\n : { label: option.showAll, value: this.totalRecords() },\n );\n const numbers = options.filter((option): option is number => typeof option === 'number');\n if (rows > 0 && !items.some((item) => item.value === rows)) {\n const merged = [...numbers, rows].sort((a, b) => a - b).map((value) => ({ label: this.format(value), value }));\n return [...merged, ...items.filter((_, index) => typeof options[index] !== 'number')];\n }\n return items;\n });\n\n readonly jumpToPageItems = computed(() =>\n Array.from({ length: this.pageCount() }, (_, index) => ({ label: this.format(index + 1), value: index })),\n );\n\n readonly currentPageReport = computed(() => {\n const total = this.totalRecords();\n const first = this.first();\n const values: Record<string, number> = {\n currentPage: this.empty() ? 0 : this.page() + 1,\n totalPages: this.pageCount(),\n first: total > 0 ? first + 1 : 0,\n last: Math.min(first + this.rows(), total),\n rows: this.rows(),\n totalRecords: total,\n };\n const template = this.currentPageReportTemplate() ?? this.translations().currentPageReport;\n return template.replace(/\\{(\\w+)\\}/g, (match, key: string) => (key in values ? this.format(values[key]) : match));\n });\n\n readonly totalLabel = computed(() =>\n this.translations().totalCount.replace('{count}', this.format(this.totalRecords())),\n );\n\n constructor() {\n effect(() => {\n const total = this.totalRecords();\n const pageCount = this.pageCount();\n const first = untracked(this.first);\n if (total > 0 && first >= total && pageCount > 0) {\n untracked(() => this.changePage(pageCount - 1));\n }\n });\n }\n\n changePage(page: number): void {\n const pageCount = this.pageCount();\n if (this.disabled() || page < 0 || page >= pageCount) return;\n const first = pageToFirst(page, this.rows());\n if (first === this.first() && page === this.page()) return;\n this.first.set(first);\n this.pageChange.emit({ page, first, rows: this.rows(), pageCount });\n }\n\n changeRows(rows: number | null): void {\n if (rows === null || rows <= 0 || rows === this.rows()) return;\n const page = firstToPage(this.first(), rows);\n const first = pageToFirst(page, rows);\n this.rows.set(rows);\n this.first.set(first);\n this.pageChange.emit({ page, first, rows, pageCount: pageCountOf(this.totalRecords(), rows) });\n }\n\n jumpTo(input: HTMLInputElement): void {\n const value = Number.parseInt(input.value, 10);\n if (Number.isNaN(value)) {\n input.value = String(this.page() + 1);\n return;\n }\n const page = Math.min(Math.max(value, 1), Math.max(this.pageCount(), 1)) - 1;\n input.value = String(page + 1);\n this.changePage(page);\n }\n\n pageLabel(page: number): string {\n return this.translations().pageNumber.replace('{page}', this.format(page + 1));\n }\n\n format(value: number): string {\n return new Intl.NumberFormat(this.locale() ?? this.localeService.locale().intl, { useGrouping: false }).format(value);\n }\n}\n","@if (showTotal()) {\n <div class=\"tx-paginator__total\" [class]=\"passThrough().total?.class\" [style]=\"passThrough().total?.style\">{{ totalLabel() }}</div>\n}\n<nav\n class=\"tx-paginator__bar\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.aria-label]=\"ariaLabel() ?? translations().pagination\"\n>\n @if (startTemplate(); as start) {\n <div class=\"tx-paginator__start\" [class]=\"passThrough().start?.class\" [style]=\"passThrough().start?.style\">\n <ng-container [ngTemplateOutlet]=\"start.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state() }\" />\n </div>\n }\n @if (showCurrentPageReport()) {\n <span\n class=\"tx-paginator__report\"\n aria-live=\"polite\"\n [class]=\"passThrough().currentPageReport?.class\"\n [style]=\"passThrough().currentPageReport?.style\"\n >{{ currentPageReport() }}</span\n >\n }\n @if (showEnds()) {\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__first\"\n [class]=\"passThrough().first?.class\"\n [style]=\"passThrough().first?.style\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"translations().firstPage\"\n (click)=\"changePage(0)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"firstPageIcon()\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__previous\"\n [class]=\"passThrough().previous?.class\"\n [style]=\"passThrough().previous?.style\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"translations().previousPage\"\n (click)=\"changePage(page() - 1)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"previousPageIcon()\" />\n </button>\n @if (showPageLinks()) {\n <span class=\"tx-paginator__pages\" [class]=\"passThrough().pages?.class\" [style]=\"passThrough().pages?.style\">\n @for (link of pageLinks(); track link) {\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__page\"\n [class.tx-paginator__page--selected]=\"link === page()\"\n [class]=\"passThrough().page?.class\"\n [style]=\"passThrough().page?.style\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"pageLabel(link)\"\n [attr.aria-current]=\"link === page() ? 'page' : null\"\n (click)=\"changePage(link)\"\n >\n {{ format(link + 1) }}\n </button>\n }\n </span>\n }\n @if (showJumpToPageDropdown() && !empty()) {\n <tx-select\n class=\"tx-paginator__jump-dropdown\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [class]=\"passThrough().jumpToPageDropdown?.class\"\n [style]=\"passThrough().jumpToPageDropdown?.style\"\n [options]=\"jumpToPageItems()\"\n [scrollHeight]=\"dropdownScrollHeight()\"\n [ariaLabel]=\"translations().jumpToPage\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"disabled()\"\n [ngModel]=\"page()\"\n (ngModelChange)=\"changePage($event)\"\n />\n }\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__next\"\n [class]=\"passThrough().next?.class\"\n [style]=\"passThrough().next?.style\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"translations().nextPage\"\n (click)=\"changePage(page() + 1)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"nextPageIcon()\" />\n </button>\n @if (showEnds()) {\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__last\"\n [class]=\"passThrough().last?.class\"\n [style]=\"passThrough().last?.style\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"translations().lastPage\"\n (click)=\"changePage(pageCount() - 1)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"lastPageIcon()\" />\n </button>\n }\n @if (showJumpToPageInput()) {\n <input\n #jumpInput\n txInput\n type=\"text\"\n inputmode=\"numeric\"\n class=\"tx-paginator__jump-input\"\n [class]=\"passThrough().jumpToPageInput?.class\"\n [style]=\"passThrough().jumpToPageInput?.style\"\n [value]=\"empty() ? '' : format(page() + 1)\"\n [disabled]=\"disabled() || empty()\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().jumpToPage\"\n (keydown.enter)=\"jumpTo(jumpInput)\"\n (blur)=\"jumpTo(jumpInput)\"\n />\n }\n @if (rowsPerPageItems().length) {\n <tx-select\n class=\"tx-paginator__rpp-dropdown\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [class]=\"passThrough().rowsPerPageDropdown?.class\"\n [style]=\"passThrough().rowsPerPageDropdown?.style\"\n [options]=\"rowsPerPageItems()\"\n [scrollHeight]=\"dropdownScrollHeight()\"\n [ariaLabel]=\"translations().rowsPerPage\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"disabled()\"\n [ngModel]=\"rows()\"\n (ngModelChange)=\"changeRows($event)\"\n />\n }\n @if (endTemplate(); as end) {\n <div class=\"tx-paginator__end\" [class]=\"passThrough().end?.class\" [style]=\"passThrough().end?.style\">\n <ng-container [ngTemplateOutlet]=\"end.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state() }\" />\n </div>\n }\n</nav>\n"],"mappings":";;;;;;;;;;;;;;;AAIA,IAAa,mBAAb,MAAa,iBAAgB;CAClB,cAAc,OAAgD,WAAW;CADvE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAgB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAhB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAgB,cAAA;EAAA,U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EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,gBAAgB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAClB,cAAc,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
@@ -360,7 +360,7 @@ var TxOptionList = class TxOptionList {
|
|
|
360
360
|
}],
|
|
361
361
|
ngImport: i0,
|
|
362
362
|
template: "@if (rows().length) {\n @if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n class=\"tx-select__list tx-select__list--virtual\"\n role=\"listbox\"\n [id]=\"listboxId()\"\n [itemSize]=\"itemSize()\"\n [style.height.px]=\"virtualHeight()\"\n [attr.tabindex]=\"focusable() ? (disabled() ? -1 : 0) : null\"\n [attr.aria-activedescendant]=\"focusable() ? activeId() : null\"\n [attr.aria-multiselectable]=\"multiple() || null\"\n [attr.aria-busy]=\"loading() || null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"ariaDescribedBy() ?? null\"\n [attr.aria-invalid]=\"ariaInvalid() || null\"\n [attr.aria-disabled]=\"disabled() || null\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n (keydown)=\"listKeydown.emit($event)\"\n (focus)=\"listFocus.emit($event)\"\n (blur)=\"listBlur.emit($event)\"\n >\n <ng-container *cdkVirtualFor=\"let row of rows(); let index = index; trackBy: trackRow\">\n <ng-container [ngTemplateOutlet]=\"rowTemplate\" [ngTemplateOutletContext]=\"{ $implicit: row, index: index, virtual: true }\" />\n </ng-container>\n </cdk-virtual-scroll-viewport>\n } @else {\n <div\n #list\n class=\"tx-select__list\"\n role=\"listbox\"\n [id]=\"listboxId()\"\n [style.max-height]=\"scrollHeight() ?? null\"\n [attr.tabindex]=\"focusable() ? (disabled() ? -1 : 0) : null\"\n [attr.aria-activedescendant]=\"focusable() ? activeId() : null\"\n [attr.aria-multiselectable]=\"multiple() || null\"\n [attr.aria-busy]=\"loading() || null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"ariaDescribedBy() ?? null\"\n [attr.aria-invalid]=\"ariaInvalid() || null\"\n [attr.aria-disabled]=\"disabled() || null\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n (keydown)=\"listKeydown.emit($event)\"\n (focus)=\"listFocus.emit($event)\"\n (blur)=\"listBlur.emit($event)\"\n >\n @for (section of sections(); track section.group?.id ?? 'options') {\n @if (section.group; as group) {\n <div role=\"group\" class=\"tx-select__group-block\" [attr.aria-labelledby]=\"group.id\">\n <ng-container [ngTemplateOutlet]=\"rowTemplate\" [ngTemplateOutletContext]=\"{ $implicit: group, index: -1, virtual: false }\" />\n @for (entry of section.rows; track entry.row.id) {\n <ng-container [ngTemplateOutlet]=\"rowTemplate\" [ngTemplateOutletContext]=\"{ $implicit: entry.row, index: entry.index, virtual: false }\" />\n }\n </div>\n } @else {\n @for (entry of section.rows; track entry.row.id) {\n <ng-container [ngTemplateOutlet]=\"rowTemplate\" [ngTemplateOutletContext]=\"{ $implicit: entry.row, index: entry.index, virtual: false }\" />\n }\n }\n }\n </div>\n }\n} @else {\n <div\n #list\n class=\"tx-select__list tx-select__list--empty\"\n role=\"listbox\"\n [id]=\"listboxId()\"\n [attr.tabindex]=\"focusable() ? (disabled() ? -1 : 0) : null\"\n [attr.aria-busy]=\"loading() || null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n (keydown)=\"listKeydown.emit($event)\"\n (focus)=\"listFocus.emit($event)\"\n (blur)=\"listBlur.emit($event)\"\n >\n <div class=\"tx-select__empty\" role=\"presentation\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n @if (loading()) {\n {{ loadingText() }}\n } @else if (query().trim() && emptyFilterTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: query().trim() }\" />\n } @else if (emptyTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n } @else {\n {{ emptyText() }}\n }\n </div>\n </div>\n}\n\n<ng-template #rowTemplate let-row let-index=\"index\" let-virtual=\"virtual\">\n @switch (row.type) {\n @case ('group') {\n <div\n role=\"presentation\"\n class=\"tx-select__group\"\n [id]=\"row.id\"\n [style.height.px]=\"virtual ? itemSize() : null\"\n [class]=\"passThrough().group?.class\"\n [style]=\"passThrough().group?.style\"\n >\n @if (groupTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: row.group }\" />\n } @else {\n {{ row.label }}\n }\n </div>\n }\n @case ('loader') {\n <div role=\"presentation\" class=\"tx-select__option tx-select__option--loader\" [style.height.px]=\"virtual ? itemSize() : null\">\n <tx-skeleton [width]=\"'60%'\" />\n </div>\n }\n @default {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- options use aria-activedescendant: focus and keys stay on the field or the list -->\n <div\n role=\"option\"\n class=\"tx-select__option\"\n [id]=\"row.id\"\n [style.height.px]=\"virtual ? itemSize() : null\"\n [class.tx-select__option--active]=\"index === activeIndex()\"\n [class.tx-select__option--selected]=\"row.selected\"\n [class.tx-select__option--disabled]=\"row.disabled\"\n [class.tx-select__option--multiple]=\"checkbox()\"\n [attr.aria-selected]=\"row.selected\"\n [attr.aria-disabled]=\"row.disabled || null\"\n [attr.aria-setsize]=\"virtual ? optionCount() : null\"\n [attr.aria-posinset]=\"virtual ? row.index + 1 : null\"\n [class]=\"passThrough().option?.class\"\n [style]=\"passThrough().option?.style\"\n (mouseenter)=\"row.disabled || optionHover.emit(index)\"\n (click)=\"row.disabled || optionClick.emit(row)\"\n >\n @if (checkbox()) {\n <span class=\"tx-select__checkbox\" aria-hidden=\"true\" [class]=\"passThrough().check?.class\" [style]=\"passThrough().check?.style\">\n @if (row.selected) {\n <tx-icon [name]=\"'check'\" />\n }\n </span>\n }\n <span class=\"tx-select__option-label\">\n @if (optionTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{ $implicit: row.option, selected: row.selected, disabled: row.disabled, index: row.index }\"\n />\n } @else {\n {{ row.label }}\n }\n </span>\n @if (!checkbox() && checkmark() && row.selected) {\n <tx-icon class=\"tx-select__check\" [name]=\"'check'\" [class]=\"passThrough().check?.class\" [style]=\"passThrough().check?.style\" />\n }\n </div>\n }\n }\n</ng-template>\n",
|
|
363
|
-
styles: [":host{display:block}.tx-select__list{overflow-y:auto}.tx-select__option{display:flex;align-items:center;cursor:pointer}.tx-select__option-label{flex:1 1 auto;min-width:0}.tx-select__option--disabled,.tx-select__option--loader{cursor:default}:host([data-styled]) .tx-select__list{display:flex;flex-direction:column;gap:var(--tx-select-list-gap);max-height:var(--tx-select-list-max-height);padding:var(--tx-select-list-padding);outline:none}:host([data-styled]) .tx-select__list--virtual{display:block;max-height:none;padding:0}:host([data-styled]) .tx-select__list--virtual .tx-select__option,:host([data-styled]) .tx-select__list--virtual .tx-select__group{box-sizing:border-box;margin-inline:var(--tx-select-list-padding)}:host([data-styled]) .tx-select__group-block{display:flex;flex-direction:column;gap:var(--tx-select-list-gap)}:host([data-styled]) .tx-select__group{display:flex;align-items:flex-end;padding:var(--tx-select-option-group-padding);color:var(--tx-select-option-group-color);font-size:var(--tx-select-option-group-font-size);font-weight:var(--tx-select-option-group-font-weight)}:host([data-styled]) .tx-select__option{gap:var(--tx-select-option-gap);transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing);padding:var(--tx-select-option-padding);border-radius:var(--tx-select-option-border-radius);color:var(--tx-select-option-color)}:host([data-styled]) .tx-select__option-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([data-styled]) .tx-select__option--active{background:var(--tx-select-option-focus-background)}:host([data-styled]) .tx-select__option--selected:not(.tx-select__option--multiple){background:var(--tx-select-option-selected-background);color:var(--tx-select-option-selected-color);font-weight:var(--tx-select-option-selected-font-weight)}:host([data-styled]) .tx-select__option--selected:not(.tx-select__option--multiple).tx-select__option--active{background:var(--tx-select-option-selected-focus-background);color:var(--tx-select-option-selected-focus-color)}:host([data-styled]) .tx-select__option--disabled{color:var(--tx-select-option-disabled-color)}:host([data-styled]) .tx-select__check{flex:none;color:var(--tx-select-option-check-color)}:host([data-styled]) .tx-select__checkbox{transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),border-color var(--tx-motion-duration) var(--tx-motion-easing);display:inline-grid;flex:none;place-items:center;box-sizing:border-box;width:var(--tx-select-checkbox-size);height:var(--tx-select-checkbox-size);border:1px solid var(--tx-select-checkbox-border-color);border-radius:var(--tx-select-checkbox-border-radius);background:var(--tx-select-checkbox-background);box-shadow:var(--tx-select-checkbox-shadow);color:var(--tx-select-checkbox-checked-color);font-size:var(--tx-select-checkbox-icon-size)}:host([data-styled]) .tx-select__option:not(.tx-select__option--disabled):hover .tx-select__checkbox{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-select__option--selected .tx-select__checkbox{border-color:var(--tx-select-checkbox-checked-background);background:var(--tx-select-checkbox-checked-background)}:host([data-styled]) .tx-select__option--disabled .tx-select__checkbox{opacity:.6}:host([data-styled]) .tx-select__empty{padding:var(--tx-select-empty-padding);color:var(--tx-select-empty-color)}\n"],
|
|
363
|
+
styles: [":host{display:block}.tx-select__list{overflow-y:auto}.tx-select__option{display:flex;align-items:center;cursor:pointer}.tx-select__option-label{flex:1 1 auto;min-width:0}.tx-select__option--disabled,.tx-select__option--loader{cursor:default}:host([data-styled]) .tx-select__list{display:flex;flex-direction:column;gap:var(--tx-select-list-gap);max-height:var(--tx-select-list-max-height);padding:var(--tx-select-list-padding-block) var(--tx-select-list-padding-inline);outline:none}:host([data-styled]) .tx-select__list--virtual{display:block;max-height:none;padding:0}:host([data-styled]) .tx-select__list--virtual .tx-select__option,:host([data-styled]) .tx-select__list--virtual .tx-select__group{box-sizing:border-box;margin-inline:var(--tx-select-list-padding-inline)}:host([data-styled]) .tx-select__group-block{display:flex;flex-direction:column;gap:var(--tx-select-list-gap)}:host([data-styled]) .tx-select__group{display:flex;align-items:flex-end;padding:var(--tx-select-option-group-padding);color:var(--tx-select-option-group-color);font-size:var(--tx-select-option-group-font-size);font-weight:var(--tx-select-option-group-font-weight)}:host([data-styled]) .tx-select__option{gap:var(--tx-select-option-gap);transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing);padding:var(--tx-select-option-padding);border-radius:var(--tx-select-option-border-radius);color:var(--tx-select-option-color)}:host([data-styled]) .tx-select__option-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([data-styled]) .tx-select__option--active{background:var(--tx-select-option-focus-background);color:var(--tx-select-option-focus-color)}:host([data-styled]) .tx-select__option--selected:not(.tx-select__option--multiple){background:var(--tx-select-option-selected-background);color:var(--tx-select-option-selected-color);font-weight:var(--tx-select-option-selected-font-weight)}:host([data-styled]) .tx-select__option--selected:not(.tx-select__option--multiple).tx-select__option--active{background:var(--tx-select-option-selected-focus-background);color:var(--tx-select-option-selected-focus-color)}:host([data-styled]) .tx-select__option--selected.tx-select__option--multiple{background:var(--tx-select-option-multiple-selected-background);color:var(--tx-select-option-multiple-selected-color)}:host([data-styled]) .tx-select__option--selected.tx-select__option--multiple.tx-select__option--active{background:var(--tx-select-option-multiple-selected-focus-background);color:var(--tx-select-option-multiple-selected-focus-color)}:host([data-styled]) .tx-select__option--disabled{color:var(--tx-select-option-disabled-color)}:host([data-styled]) .tx-select__check{flex:none;color:var(--tx-select-option-check-color)}:host([data-styled]) .tx-select__checkbox{transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),border-color var(--tx-motion-duration) var(--tx-motion-easing);display:inline-grid;flex:none;place-items:center;box-sizing:border-box;width:var(--tx-select-checkbox-size);height:var(--tx-select-checkbox-size);border:1px solid var(--tx-select-checkbox-border-color);border-radius:var(--tx-select-checkbox-border-radius);background:var(--tx-select-checkbox-background);box-shadow:var(--tx-select-checkbox-shadow);color:var(--tx-select-checkbox-checked-color);font-size:var(--tx-select-checkbox-icon-size)}:host([data-styled]) .tx-select__option:not(.tx-select__option--disabled):hover .tx-select__checkbox{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-select__option--selected .tx-select__checkbox{border-color:var(--tx-select-checkbox-checked-background);background:var(--tx-select-checkbox-checked-background)}:host([data-styled]) .tx-select__option--disabled .tx-select__checkbox{opacity:.6}:host([data-styled]) .tx-select__empty{padding:var(--tx-select-empty-padding);color:var(--tx-select-empty-color)}\n"],
|
|
364
364
|
dependencies: [
|
|
365
365
|
{
|
|
366
366
|
kind: "component",
|
|
@@ -451,7 +451,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
451
451
|
"[attr.data-styled]": "unstyled() ? null : true"
|
|
452
452
|
},
|
|
453
453
|
template: "@if (rows().length) {\n @if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n class=\"tx-select__list tx-select__list--virtual\"\n role=\"listbox\"\n [id]=\"listboxId()\"\n [itemSize]=\"itemSize()\"\n [style.height.px]=\"virtualHeight()\"\n [attr.tabindex]=\"focusable() ? (disabled() ? -1 : 0) : null\"\n [attr.aria-activedescendant]=\"focusable() ? activeId() : null\"\n [attr.aria-multiselectable]=\"multiple() || null\"\n [attr.aria-busy]=\"loading() || null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"ariaDescribedBy() ?? null\"\n [attr.aria-invalid]=\"ariaInvalid() || null\"\n [attr.aria-disabled]=\"disabled() || null\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n (keydown)=\"listKeydown.emit($event)\"\n (focus)=\"listFocus.emit($event)\"\n (blur)=\"listBlur.emit($event)\"\n >\n <ng-container *cdkVirtualFor=\"let row of rows(); let index = index; trackBy: trackRow\">\n <ng-container [ngTemplateOutlet]=\"rowTemplate\" [ngTemplateOutletContext]=\"{ $implicit: row, index: index, virtual: true }\" />\n </ng-container>\n </cdk-virtual-scroll-viewport>\n } @else {\n <div\n #list\n class=\"tx-select__list\"\n role=\"listbox\"\n [id]=\"listboxId()\"\n [style.max-height]=\"scrollHeight() ?? null\"\n [attr.tabindex]=\"focusable() ? (disabled() ? -1 : 0) : null\"\n [attr.aria-activedescendant]=\"focusable() ? activeId() : null\"\n [attr.aria-multiselectable]=\"multiple() || null\"\n [attr.aria-busy]=\"loading() || null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"ariaDescribedBy() ?? null\"\n [attr.aria-invalid]=\"ariaInvalid() || null\"\n [attr.aria-disabled]=\"disabled() || null\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n (keydown)=\"listKeydown.emit($event)\"\n (focus)=\"listFocus.emit($event)\"\n (blur)=\"listBlur.emit($event)\"\n >\n @for (section of sections(); track section.group?.id ?? 'options') {\n @if (section.group; as group) {\n <div role=\"group\" class=\"tx-select__group-block\" [attr.aria-labelledby]=\"group.id\">\n <ng-container [ngTemplateOutlet]=\"rowTemplate\" [ngTemplateOutletContext]=\"{ $implicit: group, index: -1, virtual: false }\" />\n @for (entry of section.rows; track entry.row.id) {\n <ng-container [ngTemplateOutlet]=\"rowTemplate\" [ngTemplateOutletContext]=\"{ $implicit: entry.row, index: entry.index, virtual: false }\" />\n }\n </div>\n } @else {\n @for (entry of section.rows; track entry.row.id) {\n <ng-container [ngTemplateOutlet]=\"rowTemplate\" [ngTemplateOutletContext]=\"{ $implicit: entry.row, index: entry.index, virtual: false }\" />\n }\n }\n }\n </div>\n }\n} @else {\n <div\n #list\n class=\"tx-select__list tx-select__list--empty\"\n role=\"listbox\"\n [id]=\"listboxId()\"\n [attr.tabindex]=\"focusable() ? (disabled() ? -1 : 0) : null\"\n [attr.aria-busy]=\"loading() || null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n (keydown)=\"listKeydown.emit($event)\"\n (focus)=\"listFocus.emit($event)\"\n (blur)=\"listBlur.emit($event)\"\n >\n <div class=\"tx-select__empty\" role=\"presentation\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n @if (loading()) {\n {{ loadingText() }}\n } @else if (query().trim() && emptyFilterTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: query().trim() }\" />\n } @else if (emptyTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n } @else {\n {{ emptyText() }}\n }\n </div>\n </div>\n}\n\n<ng-template #rowTemplate let-row let-index=\"index\" let-virtual=\"virtual\">\n @switch (row.type) {\n @case ('group') {\n <div\n role=\"presentation\"\n class=\"tx-select__group\"\n [id]=\"row.id\"\n [style.height.px]=\"virtual ? itemSize() : null\"\n [class]=\"passThrough().group?.class\"\n [style]=\"passThrough().group?.style\"\n >\n @if (groupTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: row.group }\" />\n } @else {\n {{ row.label }}\n }\n </div>\n }\n @case ('loader') {\n <div role=\"presentation\" class=\"tx-select__option tx-select__option--loader\" [style.height.px]=\"virtual ? itemSize() : null\">\n <tx-skeleton [width]=\"'60%'\" />\n </div>\n }\n @default {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- options use aria-activedescendant: focus and keys stay on the field or the list -->\n <div\n role=\"option\"\n class=\"tx-select__option\"\n [id]=\"row.id\"\n [style.height.px]=\"virtual ? itemSize() : null\"\n [class.tx-select__option--active]=\"index === activeIndex()\"\n [class.tx-select__option--selected]=\"row.selected\"\n [class.tx-select__option--disabled]=\"row.disabled\"\n [class.tx-select__option--multiple]=\"checkbox()\"\n [attr.aria-selected]=\"row.selected\"\n [attr.aria-disabled]=\"row.disabled || null\"\n [attr.aria-setsize]=\"virtual ? optionCount() : null\"\n [attr.aria-posinset]=\"virtual ? row.index + 1 : null\"\n [class]=\"passThrough().option?.class\"\n [style]=\"passThrough().option?.style\"\n (mouseenter)=\"row.disabled || optionHover.emit(index)\"\n (click)=\"row.disabled || optionClick.emit(row)\"\n >\n @if (checkbox()) {\n <span class=\"tx-select__checkbox\" aria-hidden=\"true\" [class]=\"passThrough().check?.class\" [style]=\"passThrough().check?.style\">\n @if (row.selected) {\n <tx-icon [name]=\"'check'\" />\n }\n </span>\n }\n <span class=\"tx-select__option-label\">\n @if (optionTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{ $implicit: row.option, selected: row.selected, disabled: row.disabled, index: row.index }\"\n />\n } @else {\n {{ row.label }}\n }\n </span>\n @if (!checkbox() && checkmark() && row.selected) {\n <tx-icon class=\"tx-select__check\" [name]=\"'check'\" [class]=\"passThrough().check?.class\" [style]=\"passThrough().check?.style\" />\n }\n </div>\n }\n }\n</ng-template>\n",
|
|
454
|
-
styles: [":host{display:block}.tx-select__list{overflow-y:auto}.tx-select__option{display:flex;align-items:center;cursor:pointer}.tx-select__option-label{flex:1 1 auto;min-width:0}.tx-select__option--disabled,.tx-select__option--loader{cursor:default}:host([data-styled]) .tx-select__list{display:flex;flex-direction:column;gap:var(--tx-select-list-gap);max-height:var(--tx-select-list-max-height);padding:var(--tx-select-list-padding);outline:none}:host([data-styled]) .tx-select__list--virtual{display:block;max-height:none;padding:0}:host([data-styled]) .tx-select__list--virtual .tx-select__option,:host([data-styled]) .tx-select__list--virtual .tx-select__group{box-sizing:border-box;margin-inline:var(--tx-select-list-padding)}:host([data-styled]) .tx-select__group-block{display:flex;flex-direction:column;gap:var(--tx-select-list-gap)}:host([data-styled]) .tx-select__group{display:flex;align-items:flex-end;padding:var(--tx-select-option-group-padding);color:var(--tx-select-option-group-color);font-size:var(--tx-select-option-group-font-size);font-weight:var(--tx-select-option-group-font-weight)}:host([data-styled]) .tx-select__option{gap:var(--tx-select-option-gap);transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing);padding:var(--tx-select-option-padding);border-radius:var(--tx-select-option-border-radius);color:var(--tx-select-option-color)}:host([data-styled]) .tx-select__option-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([data-styled]) .tx-select__option--active{background:var(--tx-select-option-focus-background)}:host([data-styled]) .tx-select__option--selected:not(.tx-select__option--multiple){background:var(--tx-select-option-selected-background);color:var(--tx-select-option-selected-color);font-weight:var(--tx-select-option-selected-font-weight)}:host([data-styled]) .tx-select__option--selected:not(.tx-select__option--multiple).tx-select__option--active{background:var(--tx-select-option-selected-focus-background);color:var(--tx-select-option-selected-focus-color)}:host([data-styled]) .tx-select__option--disabled{color:var(--tx-select-option-disabled-color)}:host([data-styled]) .tx-select__check{flex:none;color:var(--tx-select-option-check-color)}:host([data-styled]) .tx-select__checkbox{transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),border-color var(--tx-motion-duration) var(--tx-motion-easing);display:inline-grid;flex:none;place-items:center;box-sizing:border-box;width:var(--tx-select-checkbox-size);height:var(--tx-select-checkbox-size);border:1px solid var(--tx-select-checkbox-border-color);border-radius:var(--tx-select-checkbox-border-radius);background:var(--tx-select-checkbox-background);box-shadow:var(--tx-select-checkbox-shadow);color:var(--tx-select-checkbox-checked-color);font-size:var(--tx-select-checkbox-icon-size)}:host([data-styled]) .tx-select__option:not(.tx-select__option--disabled):hover .tx-select__checkbox{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-select__option--selected .tx-select__checkbox{border-color:var(--tx-select-checkbox-checked-background);background:var(--tx-select-checkbox-checked-background)}:host([data-styled]) .tx-select__option--disabled .tx-select__checkbox{opacity:.6}:host([data-styled]) .tx-select__empty{padding:var(--tx-select-empty-padding);color:var(--tx-select-empty-color)}\n"]
|
|
454
|
+
styles: [":host{display:block}.tx-select__list{overflow-y:auto}.tx-select__option{display:flex;align-items:center;cursor:pointer}.tx-select__option-label{flex:1 1 auto;min-width:0}.tx-select__option--disabled,.tx-select__option--loader{cursor:default}:host([data-styled]) .tx-select__list{display:flex;flex-direction:column;gap:var(--tx-select-list-gap);max-height:var(--tx-select-list-max-height);padding:var(--tx-select-list-padding-block) var(--tx-select-list-padding-inline);outline:none}:host([data-styled]) .tx-select__list--virtual{display:block;max-height:none;padding:0}:host([data-styled]) .tx-select__list--virtual .tx-select__option,:host([data-styled]) .tx-select__list--virtual .tx-select__group{box-sizing:border-box;margin-inline:var(--tx-select-list-padding-inline)}:host([data-styled]) .tx-select__group-block{display:flex;flex-direction:column;gap:var(--tx-select-list-gap)}:host([data-styled]) .tx-select__group{display:flex;align-items:flex-end;padding:var(--tx-select-option-group-padding);color:var(--tx-select-option-group-color);font-size:var(--tx-select-option-group-font-size);font-weight:var(--tx-select-option-group-font-weight)}:host([data-styled]) .tx-select__option{gap:var(--tx-select-option-gap);transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing);padding:var(--tx-select-option-padding);border-radius:var(--tx-select-option-border-radius);color:var(--tx-select-option-color)}:host([data-styled]) .tx-select__option-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([data-styled]) .tx-select__option--active{background:var(--tx-select-option-focus-background);color:var(--tx-select-option-focus-color)}:host([data-styled]) .tx-select__option--selected:not(.tx-select__option--multiple){background:var(--tx-select-option-selected-background);color:var(--tx-select-option-selected-color);font-weight:var(--tx-select-option-selected-font-weight)}:host([data-styled]) .tx-select__option--selected:not(.tx-select__option--multiple).tx-select__option--active{background:var(--tx-select-option-selected-focus-background);color:var(--tx-select-option-selected-focus-color)}:host([data-styled]) .tx-select__option--selected.tx-select__option--multiple{background:var(--tx-select-option-multiple-selected-background);color:var(--tx-select-option-multiple-selected-color)}:host([data-styled]) .tx-select__option--selected.tx-select__option--multiple.tx-select__option--active{background:var(--tx-select-option-multiple-selected-focus-background);color:var(--tx-select-option-multiple-selected-focus-color)}:host([data-styled]) .tx-select__option--disabled{color:var(--tx-select-option-disabled-color)}:host([data-styled]) .tx-select__check{flex:none;color:var(--tx-select-option-check-color)}:host([data-styled]) .tx-select__checkbox{transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),border-color var(--tx-motion-duration) var(--tx-motion-easing);display:inline-grid;flex:none;place-items:center;box-sizing:border-box;width:var(--tx-select-checkbox-size);height:var(--tx-select-checkbox-size);border:1px solid var(--tx-select-checkbox-border-color);border-radius:var(--tx-select-checkbox-border-radius);background:var(--tx-select-checkbox-background);box-shadow:var(--tx-select-checkbox-shadow);color:var(--tx-select-checkbox-checked-color);font-size:var(--tx-select-checkbox-icon-size)}:host([data-styled]) .tx-select__option:not(.tx-select__option--disabled):hover .tx-select__checkbox{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-select__option--selected .tx-select__checkbox{border-color:var(--tx-select-checkbox-checked-background);background:var(--tx-select-checkbox-checked-background)}:host([data-styled]) .tx-select__option--disabled .tx-select__checkbox{opacity:.6}:host([data-styled]) .tx-select__empty{padding:var(--tx-select-empty-padding);color:var(--tx-select-empty-color)}\n"]
|
|
455
455
|
}]
|
|
456
456
|
}],
|
|
457
457
|
ctorParameters: () => [],
|
|
@@ -2243,7 +2243,7 @@ var TxSelect = class TxSelect extends TxSelectBase {
|
|
|
2243
2243
|
usesInheritance: true,
|
|
2244
2244
|
ngImport: i0,
|
|
2245
2245
|
template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the combobox inside the box takes focus and keys; the box only widens the click area -->\n<div\n #box\n #origin=\"cdkOverlayOrigin\"\n cdkOverlayOrigin\n class=\"tx-select__box\"\n [class]=\"passThrough().box?.class\"\n [style]=\"passThrough().box?.style\"\n (click)=\"onBoxClick($event)\"\n>\n @if (editable()) {\n <input\n #trigger\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n class=\"tx-select__trigger tx-select__input\"\n aria-autocomplete=\"none\"\n aria-haspopup=\"listbox\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-activedescendant]=\"activeItemId()\"\n [attr.aria-busy]=\"loading() || null\"\n [placeholder]=\"placeholder()\"\n [value]=\"editableText()\"\n [readOnly]=\"readonly()\"\n [disabled]=\"disabled()\"\n (input)=\"onEditableInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n } @else {\n <button\n #trigger\n type=\"button\"\n role=\"combobox\"\n class=\"tx-select__trigger\"\n aria-haspopup=\"listbox\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-activedescendant]=\"filter() ? null : activeItemId()\"\n [attr.aria-busy]=\"loading() || null\"\n [disabled]=\"disabled()\"\n (keydown)=\"onKeydown($event)\"\n >\n @if (selectedItem(); as item) {\n <span class=\"tx-select__value\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">\n @if (valueTemplate() ?? optionTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item.option, selected: true, disabled: item.disabled, index: item.index }\"\n />\n } @else {\n {{ item.label }}\n }\n </span>\n } @else {\n <span class=\"tx-select__value tx-select__value--placeholder\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">{{\n placeholder()\n }}</span>\n }\n </button>\n }\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"tx-select__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n <span class=\"tx-select__dropdown\" aria-hidden=\"true\" [class]=\"passThrough().dropdown?.class\" [style]=\"passThrough().dropdown?.style\">\n @if (loading()) {\n <tx-icon class=\"tx-select__spinner\" [name]=\"'spinner'\" />\n } @else {\n <tx-icon class=\"tx-select__chevron\" [name]=\"dropdownIcon()\" />\n }\n </span>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n txOverlayAnchor\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"isPanelMounted()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayViewportMargin]=\"viewportMargin()\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n [cdkConnectedOverlayWidth]=\"panelWidth()\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (attach)=\"onPanelAttach()\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"onPanelDetach()\"\n>\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- the panel only listens to keys and focus that bubble from its search field and actions -->\n <div\n #panel\n class=\"tx-select__panel\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.data-size]=\"size()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"panelStyle()\"\n (keydown)=\"onPanelKeydown($event)\"\n (mousedown)=\"onPanelMousedown($event)\"\n (focusout)=\"onPanelFocusOut($event)\"\n >\n @if (headerTemplate(); as template) {\n <div class=\"tx-select__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n }\n @if (filter()) {\n <div class=\"tx-select__filter\" [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <span class=\"tx-select__filter-field\">\n <input\n #filterInput\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-select__filter-input\"\n role=\"searchbox\"\n [class]=\"passThrough().filterInput?.class\"\n [style]=\"passThrough().filterInput?.style\"\n [attr.aria-label]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeItemId()\"\n [placeholder]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [value]=\"query()\"\n (input)=\"onFilterInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n <tx-icon class=\"tx-select__filter-icon\" [name]=\"'search'\" />\n </span>\n </div>\n }\n <tx-option-list\n [rows]=\"rows()\"\n [listboxId]=\"listboxId\"\n [activeIndex]=\"activeIndex()\"\n [checkmark]=\"checkmark()\"\n [virtualScroll]=\"virtualScroll()\"\n [itemSize]=\"virtualScrollItemSize()\"\n [scrollHeight]=\"scrollHeight()\"\n [loading]=\"loading()\"\n [query]=\"query()\"\n [emptyText]=\"emptyText()\"\n [loadingText]=\"translations().loading\"\n [optionTemplate]=\"optionTemplate()?.templateRef\"\n [groupTemplate]=\"groupTemplate()?.templateRef\"\n [emptyTemplate]=\"emptyTemplate()?.templateRef\"\n [emptyFilterTemplate]=\"emptyFilterTemplate()?.templateRef\"\n [passThrough]=\"passThrough()\"\n [unstyled]=\"isUnstyled()\"\n (optionClick)=\"onOptionClick($event)\"\n (optionHover)=\"activeIndex.set($event)\"\n (rangeChange)=\"onRangeChange($event)\"\n />\n @if (footerTemplate(); as template) {\n <div class=\"tx-select__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n }\n </div>\n</ng-template>\n",
|
|
2246
|
-
styles: [":host{display:block;width:100%}.tx-select__box{display:flex;align-items:center;cursor:pointer}.tx-select__trigger{flex:1 1 auto;min-width:0}.tx-select__value{display:block;min-height:1lh;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__dropdown{display:inline-flex}:host(.tx-select--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-select--readonly) .tx-select__box{cursor:default}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-select__box{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);--_px: var(--tx-form-field-padding-x);--_py: var(--tx-form-field-padding-y);gap:var(--tx-select-gap);width:100%;padding-inline-end:0}:host([data-styled])[data-variant=filled] .tx-select__box{background:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-select--disabled,.tx-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled])[data-variant=filled]:not(.tx-select--disabled,.tx-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{background:var(--tx-form-field-filled-hover-background)}:host([data-styled]) .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled])[data-variant=filled] .tx-select__box:has(.tx-select__trigger:focus){background:var(--tx-form-field-filled-focus-background)}:host([data-styled]).tx-select--readonly .tx-select__box,:host([data-styled]).tx-select--readonly .tx-select__box:hover{background:var(--tx-form-field-readonly-background);cursor:default;border-color:var(--tx-form-field-border-color)}:host([data-styled]).tx-select--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-select--invalid .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-select--disabled .tx-select__box{background:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height);--_px: var(--tx-form-field-sm-padding-x);--_py: var(--tx-form-field-sm-padding-y);padding-inline-end:0}:host([data-styled])[data-size=large] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height);--_px: var(--tx-form-field-lg-padding-x);--_py: var(--tx-form-field-lg-padding-y);padding-inline-end:0}:host([data-styled]) .tx-select__trigger{padding:0;padding-inline-end:var(--_px);border:none;outline:none;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:inherit}:host([data-styled]) .tx-select__input{cursor:text}:host([data-styled]) .tx-select__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-select__input:disabled{cursor:not-allowed}:host([data-styled]).tx-select--invalid .tx-select__input::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__value--placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled])[data-variant=filled] .tx-select__value--placeholder,:host([data-styled])[data-variant=filled] .tx-select__input::placeholder{color:var(--tx-form-field-filled-placeholder-color)}:host([data-styled]).tx-select--invalid .tx-select__value--placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__clear{display:grid;flex:none;place-items:center;width:var(--tx-select-clear-size);height:var(--tx-select-clear-size);padding:0;border:none;border-radius:var(--tx-radius-full);background:none;color:var(--tx-select-dropdown-color);font-size:var(--tx-select-clear-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-select__clear:hover{color:var(--tx-form-field-color)}:host([data-styled]) .tx-select__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-select__dropdown{flex:none;align-items:center;align-self:stretch;justify-content:center;width:var(--tx-select-dropdown-width);color:var(--tx-select-dropdown-color)}:host([data-styled]) .tx-select__spinner{animation:tx-select-spin .8s linear infinite}@keyframes tx-select-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-select__spinner{animation-duration:2.4s}}.tx-select__panel{box-sizing:border-box;width:100%}.tx-select__panel[data-styled]{overflow:hidden;border:1px solid var(--tx-select-overlay-border-color);border-radius:var(--tx-select-overlay-border-radius);background:var(--tx-select-overlay-background);box-shadow:var(--tx-select-overlay-shadow);color:var(--tx-select-option-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height)}.tx-select__panel[data-styled] .tx-select__header{padding:var(--tx-select-header-padding)}.tx-select__panel[data-styled] .tx-select__footer{padding:var(--tx-select-footer-padding)}.tx-select__panel[data-styled] .tx-select__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);width:100%;min-width:0;padding-inline-end:calc(var(--tx-form-field-padding-x) + 1em + var(--tx-select-filter-icon-inset))}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}\n"],
|
|
2246
|
+
styles: [":host{display:block;width:100%}.tx-select__box{display:flex;align-items:center;cursor:pointer}.tx-select__trigger{flex:1 1 auto;min-width:0}.tx-select__value{display:block;min-height:1lh;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__dropdown{display:inline-flex}:host(.tx-select--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-select--readonly) .tx-select__box{cursor:default}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-select__box{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);--_px: var(--tx-form-field-padding-x);--_py: var(--tx-form-field-padding-y);gap:var(--tx-select-gap);width:100%;padding-inline-end:0}:host([data-styled])[data-variant=filled] .tx-select__box{background-color:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-select--disabled,.tx-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled])[data-variant=filled]:not(.tx-select--disabled,.tx-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{background-color:var(--tx-form-field-filled-hover-background)}:host([data-styled]) .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled])[data-variant=filled] .tx-select__box:has(.tx-select__trigger:focus){background-color:var(--tx-form-field-filled-focus-background)}:host([data-styled]).tx-select--readonly .tx-select__box,:host([data-styled]).tx-select--readonly .tx-select__box:hover{background-color:var(--tx-form-field-readonly-background);cursor:default;border-color:var(--tx-form-field-border-color)}:host([data-styled]).tx-select--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-select--invalid .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-select--disabled .tx-select__box{background-color:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height);--_px: var(--tx-form-field-sm-padding-x);--_py: var(--tx-form-field-sm-padding-y);padding-inline-end:0}:host([data-styled])[data-size=large] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height);--_px: var(--tx-form-field-lg-padding-x);--_py: var(--tx-form-field-lg-padding-y);padding-inline-end:0}:host([data-styled]) .tx-select__trigger{padding:0;padding-inline-end:var(--_px);border:none;outline:none;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:inherit}:host([data-styled]) .tx-select__input{cursor:text}:host([data-styled]) .tx-select__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-select__input:disabled{cursor:not-allowed}:host([data-styled]).tx-select--invalid .tx-select__input::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__value--placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled])[data-variant=filled] .tx-select__value--placeholder,:host([data-styled])[data-variant=filled] .tx-select__input::placeholder{color:var(--tx-form-field-filled-placeholder-color)}:host([data-styled]).tx-select--invalid .tx-select__value--placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__clear{display:grid;flex:none;place-items:center;width:var(--tx-select-clear-size);height:var(--tx-select-clear-size);padding:0;border:none;border-radius:var(--tx-radius-full);background:none;color:var(--tx-select-dropdown-color);font-size:var(--tx-select-clear-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-select__clear:hover{color:var(--tx-form-field-color)}:host([data-styled]) .tx-select__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-select__dropdown{flex:none;align-items:center;align-self:stretch;justify-content:center;width:var(--tx-select-dropdown-width);color:var(--tx-select-dropdown-color)}:host([data-styled]) .tx-select__spinner{animation:tx-select-spin .8s linear infinite}@keyframes tx-select-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-select__spinner{animation-duration:2.4s}}.tx-select__panel{box-sizing:border-box;width:100%}.tx-select__panel[data-styled]{overflow:hidden;border:1px solid var(--tx-select-overlay-border-color);border-radius:var(--tx-select-overlay-border-radius);background:var(--tx-select-overlay-background);box-shadow:var(--tx-select-overlay-shadow);color:var(--tx-select-option-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height)}.tx-select__panel[data-styled] .tx-select__header{padding:var(--tx-select-header-padding)}.tx-select__panel[data-styled] .tx-select__footer{padding:var(--tx-select-footer-padding)}.tx-select__panel[data-styled] .tx-select__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);width:100%;min-width:0;padding-inline-end:calc(var(--tx-form-field-padding-x) + 1em + var(--tx-select-filter-icon-inset))}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}\n"],
|
|
2247
2247
|
dependencies: [
|
|
2248
2248
|
{
|
|
2249
2249
|
kind: "directive",
|
|
@@ -2395,7 +2395,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2395
2395
|
"[class.tx-select--editable]": "editable()"
|
|
2396
2396
|
},
|
|
2397
2397
|
template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the combobox inside the box takes focus and keys; the box only widens the click area -->\n<div\n #box\n #origin=\"cdkOverlayOrigin\"\n cdkOverlayOrigin\n class=\"tx-select__box\"\n [class]=\"passThrough().box?.class\"\n [style]=\"passThrough().box?.style\"\n (click)=\"onBoxClick($event)\"\n>\n @if (editable()) {\n <input\n #trigger\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n class=\"tx-select__trigger tx-select__input\"\n aria-autocomplete=\"none\"\n aria-haspopup=\"listbox\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-activedescendant]=\"activeItemId()\"\n [attr.aria-busy]=\"loading() || null\"\n [placeholder]=\"placeholder()\"\n [value]=\"editableText()\"\n [readOnly]=\"readonly()\"\n [disabled]=\"disabled()\"\n (input)=\"onEditableInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n } @else {\n <button\n #trigger\n type=\"button\"\n role=\"combobox\"\n class=\"tx-select__trigger\"\n aria-haspopup=\"listbox\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-activedescendant]=\"filter() ? null : activeItemId()\"\n [attr.aria-busy]=\"loading() || null\"\n [disabled]=\"disabled()\"\n (keydown)=\"onKeydown($event)\"\n >\n @if (selectedItem(); as item) {\n <span class=\"tx-select__value\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">\n @if (valueTemplate() ?? optionTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item.option, selected: true, disabled: item.disabled, index: item.index }\"\n />\n } @else {\n {{ item.label }}\n }\n </span>\n } @else {\n <span class=\"tx-select__value tx-select__value--placeholder\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">{{\n placeholder()\n }}</span>\n }\n </button>\n }\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"tx-select__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n <span class=\"tx-select__dropdown\" aria-hidden=\"true\" [class]=\"passThrough().dropdown?.class\" [style]=\"passThrough().dropdown?.style\">\n @if (loading()) {\n <tx-icon class=\"tx-select__spinner\" [name]=\"'spinner'\" />\n } @else {\n <tx-icon class=\"tx-select__chevron\" [name]=\"dropdownIcon()\" />\n }\n </span>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n txOverlayAnchor\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"isPanelMounted()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayViewportMargin]=\"viewportMargin()\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n [cdkConnectedOverlayWidth]=\"panelWidth()\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (attach)=\"onPanelAttach()\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"onPanelDetach()\"\n>\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- the panel only listens to keys and focus that bubble from its search field and actions -->\n <div\n #panel\n class=\"tx-select__panel\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.data-size]=\"size()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"panelStyle()\"\n (keydown)=\"onPanelKeydown($event)\"\n (mousedown)=\"onPanelMousedown($event)\"\n (focusout)=\"onPanelFocusOut($event)\"\n >\n @if (headerTemplate(); as template) {\n <div class=\"tx-select__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n }\n @if (filter()) {\n <div class=\"tx-select__filter\" [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <span class=\"tx-select__filter-field\">\n <input\n #filterInput\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-select__filter-input\"\n role=\"searchbox\"\n [class]=\"passThrough().filterInput?.class\"\n [style]=\"passThrough().filterInput?.style\"\n [attr.aria-label]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeItemId()\"\n [placeholder]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [value]=\"query()\"\n (input)=\"onFilterInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n <tx-icon class=\"tx-select__filter-icon\" [name]=\"'search'\" />\n </span>\n </div>\n }\n <tx-option-list\n [rows]=\"rows()\"\n [listboxId]=\"listboxId\"\n [activeIndex]=\"activeIndex()\"\n [checkmark]=\"checkmark()\"\n [virtualScroll]=\"virtualScroll()\"\n [itemSize]=\"virtualScrollItemSize()\"\n [scrollHeight]=\"scrollHeight()\"\n [loading]=\"loading()\"\n [query]=\"query()\"\n [emptyText]=\"emptyText()\"\n [loadingText]=\"translations().loading\"\n [optionTemplate]=\"optionTemplate()?.templateRef\"\n [groupTemplate]=\"groupTemplate()?.templateRef\"\n [emptyTemplate]=\"emptyTemplate()?.templateRef\"\n [emptyFilterTemplate]=\"emptyFilterTemplate()?.templateRef\"\n [passThrough]=\"passThrough()\"\n [unstyled]=\"isUnstyled()\"\n (optionClick)=\"onOptionClick($event)\"\n (optionHover)=\"activeIndex.set($event)\"\n (rangeChange)=\"onRangeChange($event)\"\n />\n @if (footerTemplate(); as template) {\n <div class=\"tx-select__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n }\n </div>\n</ng-template>\n",
|
|
2398
|
-
styles: [":host{display:block;width:100%}.tx-select__box{display:flex;align-items:center;cursor:pointer}.tx-select__trigger{flex:1 1 auto;min-width:0}.tx-select__value{display:block;min-height:1lh;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__dropdown{display:inline-flex}:host(.tx-select--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-select--readonly) .tx-select__box{cursor:default}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-select__box{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);--_px: var(--tx-form-field-padding-x);--_py: var(--tx-form-field-padding-y);gap:var(--tx-select-gap);width:100%;padding-inline-end:0}:host([data-styled])[data-variant=filled] .tx-select__box{background:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-select--disabled,.tx-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled])[data-variant=filled]:not(.tx-select--disabled,.tx-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{background:var(--tx-form-field-filled-hover-background)}:host([data-styled]) .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled])[data-variant=filled] .tx-select__box:has(.tx-select__trigger:focus){background:var(--tx-form-field-filled-focus-background)}:host([data-styled]).tx-select--readonly .tx-select__box,:host([data-styled]).tx-select--readonly .tx-select__box:hover{background:var(--tx-form-field-readonly-background);cursor:default;border-color:var(--tx-form-field-border-color)}:host([data-styled]).tx-select--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-select--invalid .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-select--disabled .tx-select__box{background:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height);--_px: var(--tx-form-field-sm-padding-x);--_py: var(--tx-form-field-sm-padding-y);padding-inline-end:0}:host([data-styled])[data-size=large] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height);--_px: var(--tx-form-field-lg-padding-x);--_py: var(--tx-form-field-lg-padding-y);padding-inline-end:0}:host([data-styled]) .tx-select__trigger{padding:0;padding-inline-end:var(--_px);border:none;outline:none;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:inherit}:host([data-styled]) .tx-select__input{cursor:text}:host([data-styled]) .tx-select__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-select__input:disabled{cursor:not-allowed}:host([data-styled]).tx-select--invalid .tx-select__input::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__value--placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled])[data-variant=filled] .tx-select__value--placeholder,:host([data-styled])[data-variant=filled] .tx-select__input::placeholder{color:var(--tx-form-field-filled-placeholder-color)}:host([data-styled]).tx-select--invalid .tx-select__value--placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__clear{display:grid;flex:none;place-items:center;width:var(--tx-select-clear-size);height:var(--tx-select-clear-size);padding:0;border:none;border-radius:var(--tx-radius-full);background:none;color:var(--tx-select-dropdown-color);font-size:var(--tx-select-clear-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-select__clear:hover{color:var(--tx-form-field-color)}:host([data-styled]) .tx-select__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-select__dropdown{flex:none;align-items:center;align-self:stretch;justify-content:center;width:var(--tx-select-dropdown-width);color:var(--tx-select-dropdown-color)}:host([data-styled]) .tx-select__spinner{animation:tx-select-spin .8s linear infinite}@keyframes tx-select-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-select__spinner{animation-duration:2.4s}}.tx-select__panel{box-sizing:border-box;width:100%}.tx-select__panel[data-styled]{overflow:hidden;border:1px solid var(--tx-select-overlay-border-color);border-radius:var(--tx-select-overlay-border-radius);background:var(--tx-select-overlay-background);box-shadow:var(--tx-select-overlay-shadow);color:var(--tx-select-option-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height)}.tx-select__panel[data-styled] .tx-select__header{padding:var(--tx-select-header-padding)}.tx-select__panel[data-styled] .tx-select__footer{padding:var(--tx-select-footer-padding)}.tx-select__panel[data-styled] .tx-select__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);width:100%;min-width:0;padding-inline-end:calc(var(--tx-form-field-padding-x) + 1em + var(--tx-select-filter-icon-inset))}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}\n"]
|
|
2398
|
+
styles: [":host{display:block;width:100%}.tx-select__box{display:flex;align-items:center;cursor:pointer}.tx-select__trigger{flex:1 1 auto;min-width:0}.tx-select__value{display:block;min-height:1lh;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__dropdown{display:inline-flex}:host(.tx-select--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-select--readonly) .tx-select__box{cursor:default}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-select__box{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);--_px: var(--tx-form-field-padding-x);--_py: var(--tx-form-field-padding-y);gap:var(--tx-select-gap);width:100%;padding-inline-end:0}:host([data-styled])[data-variant=filled] .tx-select__box{background-color:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-select--disabled,.tx-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled])[data-variant=filled]:not(.tx-select--disabled,.tx-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{background-color:var(--tx-form-field-filled-hover-background)}:host([data-styled]) .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled])[data-variant=filled] .tx-select__box:has(.tx-select__trigger:focus){background-color:var(--tx-form-field-filled-focus-background)}:host([data-styled]).tx-select--readonly .tx-select__box,:host([data-styled]).tx-select--readonly .tx-select__box:hover{background-color:var(--tx-form-field-readonly-background);cursor:default;border-color:var(--tx-form-field-border-color)}:host([data-styled]).tx-select--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-select--invalid .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-select--disabled .tx-select__box{background-color:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height);--_px: var(--tx-form-field-sm-padding-x);--_py: var(--tx-form-field-sm-padding-y);padding-inline-end:0}:host([data-styled])[data-size=large] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height);--_px: var(--tx-form-field-lg-padding-x);--_py: var(--tx-form-field-lg-padding-y);padding-inline-end:0}:host([data-styled]) .tx-select__trigger{padding:0;padding-inline-end:var(--_px);border:none;outline:none;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:inherit}:host([data-styled]) .tx-select__input{cursor:text}:host([data-styled]) .tx-select__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-select__input:disabled{cursor:not-allowed}:host([data-styled]).tx-select--invalid .tx-select__input::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__value--placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled])[data-variant=filled] .tx-select__value--placeholder,:host([data-styled])[data-variant=filled] .tx-select__input::placeholder{color:var(--tx-form-field-filled-placeholder-color)}:host([data-styled]).tx-select--invalid .tx-select__value--placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__clear{display:grid;flex:none;place-items:center;width:var(--tx-select-clear-size);height:var(--tx-select-clear-size);padding:0;border:none;border-radius:var(--tx-radius-full);background:none;color:var(--tx-select-dropdown-color);font-size:var(--tx-select-clear-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-select__clear:hover{color:var(--tx-form-field-color)}:host([data-styled]) .tx-select__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-select__dropdown{flex:none;align-items:center;align-self:stretch;justify-content:center;width:var(--tx-select-dropdown-width);color:var(--tx-select-dropdown-color)}:host([data-styled]) .tx-select__spinner{animation:tx-select-spin .8s linear infinite}@keyframes tx-select-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-select__spinner{animation-duration:2.4s}}.tx-select__panel{box-sizing:border-box;width:100%}.tx-select__panel[data-styled]{overflow:hidden;border:1px solid var(--tx-select-overlay-border-color);border-radius:var(--tx-select-overlay-border-radius);background:var(--tx-select-overlay-background);box-shadow:var(--tx-select-overlay-shadow);color:var(--tx-select-option-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height)}.tx-select__panel[data-styled] .tx-select__header{padding:var(--tx-select-header-padding)}.tx-select__panel[data-styled] .tx-select__footer{padding:var(--tx-select-footer-padding)}.tx-select__panel[data-styled] .tx-select__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);width:100%;min-width:0;padding-inline-end:calc(var(--tx-form-field-padding-x) + 1em + var(--tx-select-filter-icon-inset))}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}\n"]
|
|
2399
2399
|
}]
|
|
2400
2400
|
}],
|
|
2401
2401
|
propDecorators: {
|