@tectra-ng/ui 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/country/README.md +14 -4
- package/data-view/README.md +71 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +2 -2
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chip.mjs +2 -2
- package/fesm2022/tectra-ng-ui-chip.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country.mjs +47 -6
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-data-view.mjs +1370 -0
- package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-fieldset.mjs +2 -2
- package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-number.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-listbox.mjs +2 -2
- package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menu.mjs +2 -2
- package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-message.mjs +2 -2
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-paginator.mjs +2 -2
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select.mjs +4 -4
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-slider.mjs +2 -2
- package/fesm2022/tectra-ng-ui-slider.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +1373 -1333
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tag.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs +2 -2
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +7 -46
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +901 -0
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tree.mjs +1940 -0
- package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +928 -0
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -0
- package/package.json +17 -1
- package/tree/README.md +93 -0
- package/tree-table/README.md +84 -0
- package/types/tectra-ng-ui-autocomplete.d.ts +11 -0
- package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
- package/types/tectra-ng-ui-chip.d.ts +3 -0
- package/types/tectra-ng-ui-chip.d.ts.map +1 -1
- package/types/tectra-ng-ui-country-select.d.ts +11 -0
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-country.d.ts +9 -3
- package/types/tectra-ng-ui-country.d.ts.map +1 -1
- package/types/tectra-ng-ui-data-view.d.ts +363 -0
- package/types/tectra-ng-ui-data-view.d.ts.map +1 -0
- package/types/tectra-ng-ui-fieldset.d.ts +8 -0
- package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-number.d.ts +1 -0
- package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
- package/types/tectra-ng-ui-input.d.ts +4 -0
- package/types/tectra-ng-ui-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-menu.d.ts +2 -0
- package/types/tectra-ng-ui-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +5 -0
- package/types/tectra-ng-ui-message.d.ts.map +1 -1
- package/types/tectra-ng-ui-multiselect.d.ts +11 -0
- package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
- package/types/tectra-ng-ui-paginator.d.ts +1 -0
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
- package/types/tectra-ng-ui-select.d.ts +11 -0
- package/types/tectra-ng-ui-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-slider.d.ts +1 -0
- package/types/tectra-ng-ui-slider.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +181 -15
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tag.d.ts +8 -0
- package/types/tectra-ng-ui-tag.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-switch.d.ts +5 -0
- package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +19 -22
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-table.d.ts +94 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -0
- package/types/tectra-ng-ui-tree.d.ts +571 -0
- package/types/tectra-ng-ui-tree.d.ts.map +1 -0
- package/types/tectra-ng-ui-virtual-scroller.d.ts +297 -0
- package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -0
- package/virtual-scroller/README.md +60 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-data-view.mjs","names":[],"sources":["../../../../packages/ui/data-view/src/data-view.templates.ts","../../../../packages/ui/data-view/src/data-view.component.ts","../../../../packages/ui/data-view/src/data-view.component.html","../../../../packages/ui/data-view/src/data-view-layout.component.ts"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxPaginatorTemplateContext } from '@tectra-ng/ui/paginator';\nimport { TxDataViewItemsContext } from './data-view.types';\n\n@Directive({ selector: 'ng-template[txDataViewList]' })\nexport class TxDataViewList {\n readonly templateRef = inject<TemplateRef<TxDataViewItemsContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewGrid]' })\nexport class TxDataViewGrid {\n readonly templateRef = inject<TemplateRef<TxDataViewItemsContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewHeader]' })\nexport class TxDataViewHeader {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewFooter]' })\nexport class TxDataViewFooter {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewEmpty]' })\nexport class TxDataViewEmpty {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewLoading]' })\nexport class TxDataViewLoading {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewPaginatorStart]' })\nexport class TxDataViewPaginatorStart {\n readonly templateRef = inject<TemplateRef<TxPaginatorTemplateContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewPaginatorEnd]' })\nexport class TxDataViewPaginatorEnd {\n readonly templateRef = inject<TemplateRef<TxPaginatorTemplateContext>>(TemplateRef);\n}\n","import { 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 { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraDataViewTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPageState, TxPaginator, TxPaginatorEnd, TxPaginatorStart, TxRowsPerPageOption } from '@tectra-ng/ui/paginator';\nimport { TxProgressSpinner } from '@tectra-ng/ui/progress-spinner';\nimport { foldText, readOptionField } from '@tectra-ng/ui/select';\nimport { compareValues } from '@tectra-ng/ui/table';\nimport {\n TxDataViewEmpty,\n TxDataViewFooter,\n TxDataViewGrid,\n TxDataViewHeader,\n TxDataViewList,\n TxDataViewLoading,\n TxDataViewPaginatorEnd,\n TxDataViewPaginatorStart,\n} from './data-view.templates';\nimport {\n TxDataViewItemsContext,\n TxDataViewLayout,\n TxDataViewLazyLoadEvent,\n TxDataViewPaginatorPosition,\n TxDataViewPart,\n TxDataViewSortEvent,\n TxDataViewSortOrder,\n} from './data-view.types';\n\n@Component({\n selector: 'tx-data-view',\n imports: [NgTemplateOutlet, TxPaginator, TxPaginatorStart, TxPaginatorEnd, TxProgressSpinner],\n templateUrl: './data-view.component.html',\n styleUrl: './data-view.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-data-view',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-layout]': 'layout()',\n '[class.tx-data-view--loading]': 'loading()',\n '[attr.aria-busy]': 'loading() || null',\n },\n})\nexport class TxDataView<T = unknown> {\n readonly value = input<readonly T[] | null | undefined>(undefined);\n readonly layout = model<TxDataViewLayout>('list');\n readonly paginator = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly paginatorPosition = input<TxDataViewPaginatorPosition>('bottom');\n readonly first = model(0);\n readonly rows = model(10);\n readonly totalRecords = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly pageLinks = input(5, { transform: numberAttribute });\n readonly rowsPerPageOptions = input<TxRowsPerPageOption[] | null | undefined>(undefined);\n readonly alwaysShowPaginator = 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 showFirstLastIcon = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showPageLinks = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showTotal = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly lazy = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly lazyLoadOnInit = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly emptyMessage = input<string | undefined>(undefined);\n readonly sortField = model<string | null>(null);\n readonly sortOrder = model<TxDataViewSortOrder>(null);\n readonly filterBy = input<string | undefined>(undefined);\n readonly filterValue = model('');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraDataViewTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxDataViewPart, TxDataView<T>> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly lazyLoad = output<TxDataViewLazyLoadEvent>();\n readonly pageChange = output<TxPageState>();\n readonly sortChange = output<TxDataViewSortEvent>();\n\n readonly listTemplate = contentChild(TxDataViewList);\n readonly gridTemplate = contentChild(TxDataViewGrid);\n readonly headerTemplate = contentChild(TxDataViewHeader);\n readonly footerTemplate = contentChild(TxDataViewFooter);\n readonly emptyTemplate = contentChild(TxDataViewEmpty);\n readonly loadingTemplate = contentChild(TxDataViewLoading);\n readonly paginatorStartTemplate = contentChild(TxDataViewPaginatorStart);\n readonly paginatorEndTemplate = contentChild(TxDataViewPaginatorEnd);\n\n private readonly localeService = inject(TxLocaleService);\n private lastSort = '';\n private lastFilter: string | null = null;\n private loadedOnce = false;\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('dataView', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-data-view'), ...this.passThrough().root?.style }));\n\n readonly filterFields = computed(() =>\n (this.filterBy() ?? '')\n .split(',')\n .map((field) => field.trim())\n .filter(Boolean),\n );\n readonly filtered = computed<T[]>(() => {\n const items = [...(this.value() ?? [])];\n const query = foldText(this.filterValue().trim());\n const fields = this.filterFields();\n if (this.lazy() || !query || !fields.length) return items;\n return items.filter((item) => fields.some((field) => foldText(String(readOptionField(item, field) ?? '')).includes(query)));\n });\n readonly sorted = computed<T[]>(() => {\n const items = this.filtered();\n const field = this.sortField();\n const order = this.sortOrder();\n if (this.lazy() || !field || !order) return items;\n const intl = this.localeService.locale().intl;\n const direction = order === 'desc' ? -1 : 1;\n return [...items].sort((a, b) => compareValues(readOptionField(a, field), readOptionField(b, field), intl) * direction);\n });\n readonly total = computed(() => this.totalRecords() ?? this.sorted().length);\n readonly pageItems = computed<T[]>(() => {\n const items = this.sorted();\n if (!this.paginator() || this.lazy() || this.totalRecords() !== undefined) return items;\n return items.slice(this.first(), this.first() + this.rows());\n });\n readonly empty = computed(() => this.pageItems().length === 0);\n readonly itemsContext = computed<TxDataViewItemsContext<T>>(() => ({ $implicit: this.pageItems(), items: this.pageItems(), first: this.first() }));\n readonly activeTemplate = computed(() => (this.layout() === 'grid' ? (this.gridTemplate() ?? this.listTemplate()) : (this.listTemplate() ?? this.gridTemplate())));\n readonly layoutKey = computed(() => [this.layout()]);\n readonly showPaginatorTop = computed(() => this.paginator() && this.paginatorPosition() !== 'bottom');\n readonly showPaginatorBottom = computed(() => this.paginator() && this.paginatorPosition() !== 'top');\n\n constructor() {\n effect(() => {\n const total = this.total();\n const first = untracked(this.first);\n const rows = untracked(this.rows);\n if (this.paginator() && total > 0 && first >= total && rows > 0) {\n untracked(() => this.first.set(Math.max(0, Math.floor((total - 1) / rows) * rows)));\n }\n });\n\n effect(() => {\n const sortField = this.sortField();\n const sortOrder = this.sortOrder();\n const key = `${sortField}:${sortOrder}`;\n if (!this.lastSort) {\n this.lastSort = key;\n return;\n }\n if (key === this.lastSort) return;\n this.lastSort = key;\n untracked(() => {\n if (this.paginator() && !this.lazy()) this.first.set(0);\n this.sortChange.emit({ sortField, sortOrder });\n this.emitLazyLoad();\n });\n });\n\n effect(() => {\n const query = this.filterValue();\n if (this.lastFilter === null) {\n this.lastFilter = query;\n return;\n }\n if (query === this.lastFilter) return;\n this.lastFilter = query;\n untracked(() => {\n if (this.paginator()) this.first.set(0);\n this.emitLazyLoad();\n });\n });\n\n effect(() => {\n if (this.loadedOnce || !this.lazy() || !this.lazyLoadOnInit()) return;\n this.loadedOnce = true;\n untracked(() => this.emitLazyLoad());\n });\n }\n\n filter(value: string): void {\n this.filterValue.set(value);\n }\n\n onPage(state: TxPageState): void {\n this.first.set(state.first);\n this.rows.set(state.rows);\n this.pageChange.emit(state);\n this.emitLazyLoad();\n }\n\n emitLazyLoad(): void {\n if (!this.lazy()) return;\n this.lazyLoad.emit({ first: this.first(), rows: this.rows(), sortField: this.sortField(), sortOrder: this.sortOrder(), filter: this.filterValue() });\n }\n}\n","@if (headerTemplate(); as header) {\n <div class=\"tx-data-view__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-container [ngTemplateOutlet]=\"header.templateRef\" />\n </div>\n}\n\n@if (showPaginatorTop()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'top' }\" />\n}\n\n<div class=\"tx-data-view__body\">\n @if (loading()) {\n <div class=\"tx-data-view__loading\" [class]=\"passThrough().loading?.class\" [style]=\"passThrough().loading?.style\">\n @if (loadingTemplate(); as loadingTemplate) {\n <ng-container [ngTemplateOutlet]=\"loadingTemplate.templateRef\" />\n } @else {\n <tx-progress-spinner [ariaLabel]=\"translations().loading\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n }\n\n @if (empty()) {\n <div class=\"tx-data-view__empty\" role=\"status\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n @if (emptyTemplate(); as emptyTemplate) {\n <ng-container [ngTemplateOutlet]=\"emptyTemplate.templateRef\" />\n } @else {\n {{ emptyMessage() ?? translations().emptyMessage }}\n }\n </div>\n } @else {\n @for (mode of layoutKey(); track mode) {\n <div\n class=\"tx-data-view__content\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.role]=\"ariaLabel() ? 'region' : null\"\n [class]=\"passThrough().content?.class\"\n [style]=\"passThrough().content?.style\"\n >\n @if (activeTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"itemsContext()\" />\n }\n </div>\n }\n }\n</div>\n\n@if (showPaginatorBottom()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'bottom' }\" />\n}\n\n@if (footerTemplate(); as footer) {\n <div class=\"tx-data-view__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"footer.templateRef\" />\n </div>\n}\n\n<ng-template #pager let-position>\n <tx-paginator\n class=\"tx-data-view__paginator\"\n [class.tx-data-view__paginator--top]=\"position === 'top'\"\n [class]=\"passThrough().paginator?.class\"\n [style]=\"passThrough().paginator?.style\"\n [first]=\"first()\"\n [rows]=\"rows()\"\n [totalRecords]=\"total()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n [showTotal]=\"showTotal()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\"\n [currentPageReportTemplate]=\"currentPageReportTemplate()\"\n [showFirstLastIcon]=\"showFirstLastIcon()\"\n [showPageLinks]=\"showPageLinks()\"\n [showJumpToPageDropdown]=\"showJumpToPageDropdown()\"\n [showJumpToPageInput]=\"showJumpToPageInput()\"\n [alwaysShow]=\"alwaysShowPaginator()\"\n [pageLinkSize]=\"pageLinks()\"\n [unstyled]=\"isUnstyled()\"\n (pageChange)=\"onPage($event)\"\n >\n @if (paginatorStartTemplate(); as start) {\n <ng-template txPaginatorStart let-state>\n <ng-container [ngTemplateOutlet]=\"start.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state }\" />\n </ng-template>\n }\n @if (paginatorEndTemplate(); as end) {\n <ng-template txPaginatorEnd let-state>\n <ng-container [ngTemplateOutlet]=\"end.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state }\" />\n </ng-template>\n }\n </tx-paginator>\n</ng-template>\n","import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';\nimport { injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxButton, TxButtonSize } from '@tectra-ng/ui/button';\nimport { TxButtonGroup } from '@tectra-ng/ui/button-group';\nimport { TxDataViewLayout } from './data-view.types';\n\n@Component({\n selector: 'tx-data-view-layout',\n imports: [TxButton, TxButtonGroup],\n template: `\n <tx-button-group role=\"group\" [attr.aria-label]=\"ariaLabel() ?? translations().layout\">\n <button\n txButton\n type=\"button\"\n icon=\"bars\"\n severity=\"secondary\"\n [size]=\"size()\"\n [outlined]=\"layout() !== 'list'\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().listView\"\n [attr.aria-pressed]=\"layout() === 'list'\"\n (click)=\"layout.set('list')\"\n ></button>\n <button\n txButton\n type=\"button\"\n icon=\"th-large\"\n severity=\"secondary\"\n [size]=\"size()\"\n [outlined]=\"layout() !== 'grid'\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().gridView\"\n [attr.aria-pressed]=\"layout() === 'grid'\"\n (click)=\"layout.set('grid')\"\n ></button>\n </tx-button-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-data-view-layout' },\n})\nexport class TxDataViewLayoutSwitch {\n readonly layout = model<TxDataViewLayout>('list');\n readonly size = input<TxButtonSize>('medium');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n}\n"],"mappings":";;;;;;;;;;;;;AAKA,IAAa,iBAAb,MAAa,eAAc;CAChB,cAAc,OAA4C,WAAW;CADnE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAc,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAd,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAc,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAd,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAD1B,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,8BAA6B,CAAE;;;AAMtD,IAAa,iBAAb,MAAa,eAAc;CAChB,cAAc,OAA4C,WAAW;CADnE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAc,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAd,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAc,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAd,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,M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styles: [":host{display:block;min-width:0}.tx-fieldset__box{min-width:0;margin:0}.tx-fieldset__collapse{display:grid;grid-template-rows:1fr}:host(.tx-fieldset--collapsed) .tx-fieldset__collapse{grid-template-rows:0fr}.tx-fieldset__collapse-inner{min-height:0;overflow:hidden}:host(.tx-fieldset--collapsed) .tx-fieldset__collapse-inner{visibility:hidden}:host([data-styled]) .tx-fieldset__box{padding:var(--tx-fieldset-padding);border:1px solid var(--tx-fieldset-border-color);border-radius:var(--tx-fieldset-border-radius);background:var(--tx-fieldset-background);font-family:var(--tx-font-family);transition:padding var(--tx-fieldset-transition-duration)}:host([data-styled].tx-fieldset--collapsed) .tx-fieldset__box{padding-bottom:0}:host([data-styled]) .tx-fieldset__legend{padding:var(--tx-fieldset-legend-padding);color:var(--tx-fieldset-legend-color);font-size:var(--tx-fieldset-legend-font-size);font-weight:var(--tx-fieldset-legend-font-weight)}:host([data-styled].tx-fieldset--toggleable) .tx-fieldset__legend{padding:0}:host([data-styled]) .tx-fieldset__toggle{display:inline-flex;align-items:center;gap:6px;padding:
|
|
135
|
+
styles: [":host{display:block;min-width:0}.tx-fieldset__box{min-width:0;margin:0}.tx-fieldset__collapse{display:grid;grid-template-rows:1fr}:host(.tx-fieldset--collapsed) .tx-fieldset__collapse{grid-template-rows:0fr}.tx-fieldset__collapse-inner{min-height:0;overflow:hidden}:host(.tx-fieldset--collapsed) .tx-fieldset__collapse-inner{visibility:hidden}:host([data-styled]) .tx-fieldset__box{padding:var(--tx-fieldset-padding);border:1px solid var(--tx-fieldset-border-color);border-radius:var(--tx-fieldset-border-radius);background:var(--tx-fieldset-background);font-family:var(--tx-font-family);transition:padding var(--tx-fieldset-transition-duration)}:host([data-styled].tx-fieldset--collapsed) .tx-fieldset__box{padding-bottom:0}:host([data-styled]) .tx-fieldset__legend{padding:var(--tx-fieldset-legend-padding);border-radius:var(--tx-fieldset-legend-border-radius);background:var(--tx-fieldset-legend-background);box-shadow:inset 0 0 0 1px var(--tx-fieldset-legend-border-color);color:var(--tx-fieldset-legend-color);font-size:var(--tx-fieldset-legend-font-size);font-weight:var(--tx-fieldset-legend-font-weight)}:host([data-styled].tx-fieldset--toggleable) .tx-fieldset__legend{padding:0}:host([data-styled]) .tx-fieldset__toggle{display:inline-flex;align-items:center;gap:6px;padding:var(--tx-fieldset-toggle-padding);border:none;border-radius:var(--tx-fieldset-legend-border-radius);background:transparent;color:inherit;font:inherit;cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-fieldset__toggle tx-icon{color:var(--tx-text-muted);transition:transform var(--tx-fieldset-transition-duration) cubic-bezier(.2,0,0,1)}:host([data-styled]) .tx-fieldset__toggle:focus-visible{outline:var(--tx-fieldset-focus-ring-width) solid var(--tx-focus-ring-color);outline-offset:var(--tx-fieldset-focus-ring-offset);background:var(--tx-fieldset-legend-focus-background);box-shadow:var(--tx-fieldset-focus-ring-shadow)}:host([data-styled]) .tx-fieldset__toggle:hover{background:var(--tx-fieldset-legend-hover-background)}:host([data-styled].tx-fieldset--collapsed) .tx-fieldset__toggle tx-icon{transform:rotate(-90deg)}:host([data-styled]) .tx-fieldset__collapse{transition:grid-template-rows var(--tx-fieldset-transition-duration) cubic-bezier(.2,0,0,1)}:host([data-styled].tx-fieldset--collapsed) .tx-fieldset__collapse-inner{transition:visibility 0s linear var(--tx-fieldset-transition-duration)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-fieldset__box,:host([data-styled]) .tx-fieldset__collapse,:host([data-styled]) .tx-fieldset__toggle,:host([data-styled].tx-fieldset--collapsed) .tx-fieldset__collapse-inner,:host([data-styled]) .tx-fieldset__toggle tx-icon{transition:none}}\n"],
|
|
136
136
|
dependencies: [{
|
|
137
137
|
kind: "component",
|
|
138
138
|
type: TxIcon,
|
|
@@ -188,7 +188,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
188
188
|
"[class.tx-fieldset--collapsed]": "toggleable() && collapsed()",
|
|
189
189
|
"[class.tx-fieldset--toggleable]": "toggleable()"
|
|
190
190
|
},
|
|
191
|
-
styles: [":host{display:block;min-width:0}.tx-fieldset__box{min-width:0;margin:0}.tx-fieldset__collapse{display:grid;grid-template-rows:1fr}:host(.tx-fieldset--collapsed) .tx-fieldset__collapse{grid-template-rows:0fr}.tx-fieldset__collapse-inner{min-height:0;overflow:hidden}:host(.tx-fieldset--collapsed) .tx-fieldset__collapse-inner{visibility:hidden}:host([data-styled]) .tx-fieldset__box{padding:var(--tx-fieldset-padding);border:1px solid var(--tx-fieldset-border-color);border-radius:var(--tx-fieldset-border-radius);background:var(--tx-fieldset-background);font-family:var(--tx-font-family);transition:padding var(--tx-fieldset-transition-duration)}:host([data-styled].tx-fieldset--collapsed) .tx-fieldset__box{padding-bottom:0}:host([data-styled]) .tx-fieldset__legend{padding:var(--tx-fieldset-legend-padding);color:var(--tx-fieldset-legend-color);font-size:var(--tx-fieldset-legend-font-size);font-weight:var(--tx-fieldset-legend-font-weight)}:host([data-styled].tx-fieldset--toggleable) .tx-fieldset__legend{padding:0}:host([data-styled]) .tx-fieldset__toggle{display:inline-flex;align-items:center;gap:6px;padding:
|
|
191
|
+
styles: [":host{display:block;min-width:0}.tx-fieldset__box{min-width:0;margin:0}.tx-fieldset__collapse{display:grid;grid-template-rows:1fr}:host(.tx-fieldset--collapsed) .tx-fieldset__collapse{grid-template-rows:0fr}.tx-fieldset__collapse-inner{min-height:0;overflow:hidden}:host(.tx-fieldset--collapsed) .tx-fieldset__collapse-inner{visibility:hidden}:host([data-styled]) .tx-fieldset__box{padding:var(--tx-fieldset-padding);border:1px solid var(--tx-fieldset-border-color);border-radius:var(--tx-fieldset-border-radius);background:var(--tx-fieldset-background);font-family:var(--tx-font-family);transition:padding var(--tx-fieldset-transition-duration)}:host([data-styled].tx-fieldset--collapsed) .tx-fieldset__box{padding-bottom:0}:host([data-styled]) .tx-fieldset__legend{padding:var(--tx-fieldset-legend-padding);border-radius:var(--tx-fieldset-legend-border-radius);background:var(--tx-fieldset-legend-background);box-shadow:inset 0 0 0 1px var(--tx-fieldset-legend-border-color);color:var(--tx-fieldset-legend-color);font-size:var(--tx-fieldset-legend-font-size);font-weight:var(--tx-fieldset-legend-font-weight)}:host([data-styled].tx-fieldset--toggleable) .tx-fieldset__legend{padding:0}:host([data-styled]) .tx-fieldset__toggle{display:inline-flex;align-items:center;gap:6px;padding:var(--tx-fieldset-toggle-padding);border:none;border-radius:var(--tx-fieldset-legend-border-radius);background:transparent;color:inherit;font:inherit;cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-fieldset__toggle tx-icon{color:var(--tx-text-muted);transition:transform var(--tx-fieldset-transition-duration) cubic-bezier(.2,0,0,1)}:host([data-styled]) .tx-fieldset__toggle:focus-visible{outline:var(--tx-fieldset-focus-ring-width) solid var(--tx-focus-ring-color);outline-offset:var(--tx-fieldset-focus-ring-offset);background:var(--tx-fieldset-legend-focus-background);box-shadow:var(--tx-fieldset-focus-ring-shadow)}:host([data-styled]) .tx-fieldset__toggle:hover{background:var(--tx-fieldset-legend-hover-background)}:host([data-styled].tx-fieldset--collapsed) .tx-fieldset__toggle tx-icon{transform:rotate(-90deg)}:host([data-styled]) .tx-fieldset__collapse{transition:grid-template-rows var(--tx-fieldset-transition-duration) cubic-bezier(.2,0,0,1)}:host([data-styled].tx-fieldset--collapsed) .tx-fieldset__collapse-inner{transition:visibility 0s linear var(--tx-fieldset-transition-duration)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-fieldset__box,:host([data-styled]) .tx-fieldset__collapse,:host([data-styled]) .tx-fieldset__toggle,:host([data-styled].tx-fieldset--collapsed) .tx-fieldset__collapse-inner,:host([data-styled]) .tx-fieldset__toggle tx-icon{transition:none}}\n"]
|
|
192
192
|
}]
|
|
193
193
|
}],
|
|
194
194
|
propDecorators: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-fieldset.mjs","names":[],"sources":["../../../../packages/ui/fieldset/src/fieldset.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, model } from '@angular/core';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraFieldsetTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxFieldsetPart } from './fieldset.types';\n\n@Component({\n selector: 'tx-fieldset',\n imports: [TxIcon],\n template: `\n <fieldset class=\"tx-fieldset__box\">\n <legend class=\"tx-fieldset__legend\" [class]=\"passThrough().legend?.class\" [style]=\"passThrough().legend?.style\">\n @if (toggleable()) {\n <button\n type=\"button\"\n class=\"tx-fieldset__toggle\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n [attr.aria-expanded]=\"!collapsed()\"\n [attr.aria-controls]=\"contentId\"\n (click)=\"collapsed.set(!collapsed())\"\n >\n <tx-icon [name]=\"'chevron-down'\" />\n <span>{{ legend() }}<ng-content select=\"[txFieldsetLegend]\" /></span>\n </button>\n } @else {\n {{ legend() }}<ng-content select=\"[txFieldsetLegend]\" />\n }\n </legend>\n <div class=\"tx-fieldset__collapse\" [id]=\"contentId\" [attr.inert]=\"isOpen() ? null : ''\">\n <div class=\"tx-fieldset__collapse-inner\">\n <div class=\"tx-fieldset__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\"><ng-content /></div>\n </div>\n </div>\n </fieldset>\n `,\n styleUrl: './fieldset.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-fieldset',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-fieldset--collapsed]': 'toggleable() && collapsed()',\n '[class.tx-fieldset--toggleable]': 'toggleable()',\n },\n})\nexport class TxFieldset {\n readonly legend = input<string | undefined>(undefined);\n readonly toggleable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly collapsed = model<boolean>(false);\n readonly dt = input<TectraDeepPartial<TectraFieldsetTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFieldsetPart, TxFieldset> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('fieldset', this, this.pt, this.ptOptions);\n readonly contentId = uniqueId('tx-fieldset-content');\n readonly isOpen = computed(() => !this.toggleable() || !this.collapsed());\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-fieldset'), ...this.passThrough().root?.style }));\n}\n"],"mappings":";;;;;;;AAiDA,IAAa,aAAb,MAAa,WAAU;CACZ,SAAS,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAC7C,aAAa,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,aAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACzE,YAAY,MAAe,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CACjC,KAAK,MAA2D,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAC1E,KAAK,MAA6D,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAC5E,YAAY,MAAwC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAC9D,WAAW,MAAoC,QAAS;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CAEtF,aAAa,eAAe,KAAK,QAAQ;C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AA,MAAA;GAAA,YAAA;IAAA,SAAA;IAAA,SAAA;IAAA,oBAAA;IAAA,gCAAA;IAAA,iCAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UAtCX;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BT,UAAA;EAAA,QAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-fieldset.mjs","names":[],"sources":["../../../../packages/ui/fieldset/src/fieldset.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, model } from '@angular/core';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraFieldsetTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxFieldsetPart } from './fieldset.types';\n\n@Component({\n selector: 'tx-fieldset',\n imports: [TxIcon],\n template: `\n <fieldset class=\"tx-fieldset__box\">\n <legend class=\"tx-fieldset__legend\" [class]=\"passThrough().legend?.class\" [style]=\"passThrough().legend?.style\">\n @if (toggleable()) {\n <button\n type=\"button\"\n class=\"tx-fieldset__toggle\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n [attr.aria-expanded]=\"!collapsed()\"\n [attr.aria-controls]=\"contentId\"\n (click)=\"collapsed.set(!collapsed())\"\n >\n <tx-icon [name]=\"'chevron-down'\" />\n <span>{{ legend() }}<ng-content select=\"[txFieldsetLegend]\" /></span>\n </button>\n } @else {\n {{ legend() }}<ng-content select=\"[txFieldsetLegend]\" />\n }\n </legend>\n <div class=\"tx-fieldset__collapse\" [id]=\"contentId\" [attr.inert]=\"isOpen() ? null : ''\">\n <div class=\"tx-fieldset__collapse-inner\">\n <div class=\"tx-fieldset__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\"><ng-content /></div>\n </div>\n </div>\n </fieldset>\n `,\n styleUrl: './fieldset.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-fieldset',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-fieldset--collapsed]': 'toggleable() && collapsed()',\n '[class.tx-fieldset--toggleable]': 'toggleable()',\n },\n})\nexport class TxFieldset {\n readonly legend = input<string | undefined>(undefined);\n readonly toggleable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly collapsed = model<boolean>(false);\n readonly dt = input<TectraDeepPartial<TectraFieldsetTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFieldsetPart, TxFieldset> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('fieldset', this, this.pt, this.ptOptions);\n readonly contentId = uniqueId('tx-fieldset-content');\n readonly isOpen = computed(() => !this.toggleable() || !this.collapsed());\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-fieldset'), ...this.passThrough().root?.style }));\n}\n"],"mappings":";;;;;;;AAiDA,IAAa,aAAb,MAAa,WAAU;CACZ,SAAS,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAC7C,aAAa,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,aAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACzE,YAAY,MAAe,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CACjC,KAAK,MAA2D,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAC1E,KAAK,MAA6D,QAAU,GAAA,YAA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AA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,WAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,UAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA,EAAA,WAAA,kBAAA;EAAA,MAAA;GAAA,YAAA;IAAA,SAAA;IAAA,SAAA;IAAA,oBAAA;IAAA,gCAAA;IAAA,iCAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UAtCX;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BT,UAAA;EAAA,QAAA,CAAA,itFAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MA3BS;GAAM,UAAA;GAAA,QAAA,CAAA,MAAA;EAAA,CAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAuCL,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAU,YAAA,CAAA;EAzCtB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAa,SACd,CAAC,MAAM;GAAC,UACP;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,kCAAkC;IAClC,mCAAmC;GACpC;GAAA,QAAA,CAAA,itFAAA;EAAA,CAAA"}
|
|
@@ -667,7 +667,7 @@ var TxInputNumber = class TxInputNumber extends TxFormControlBase {
|
|
|
667
667
|
usesInheritance: true,
|
|
668
668
|
ngImport: i0,
|
|
669
669
|
template: "@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__decrement\"\n [class]=\"passThrough().decrement?.class\"\n [style]=\"passThrough().decrement?.style\"\n [attr.aria-label]=\"translations().decrement\"\n [disabled]=\"!canDecrement()\"\n (pointerdown)=\"startRepeat(-1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (decrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"decrementIconName().className\"></span>\n }\n </button>\n}\n<input\n #input\n txInput\n type=\"text\"\n role=\"spinbutton\"\n inputmode=\"decimal\"\n autocomplete=\"off\"\n class=\"tx-input-number__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [fluid]=\"true\"\n [invalid]=\"isInvalid()\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.placeholder]=\"placeholder() ?? null\"\n [attr.name]=\"name() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-valuenow]=\"value() ?? null\"\n [attr.aria-valuemin]=\"min() ?? null\"\n [attr.aria-valuemax]=\"max() ?? null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur($event)\"\n/>\n@if (showClear() && value() !== null && isEditable()) {\n <button\n type=\"button\"\n class=\"tx-input-number__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n [title]=\"translations().clear\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clear($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n}\n@if (showButtons()) {\n @if (buttonLayout() === 'stacked') {\n <span class=\"tx-input-number__stack\">\n <ng-container [ngTemplateOutlet]=\"increment\" />\n <ng-container [ngTemplateOutlet]=\"decrement\" />\n </span>\n } @else {\n <ng-container [ngTemplateOutlet]=\"increment\" />\n }\n}\n\n<ng-template #increment>\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__increment\"\n [class]=\"passThrough().increment?.class\"\n [style]=\"passThrough().increment?.style\"\n [attr.aria-label]=\"translations().increment\"\n [disabled]=\"!canIncrement()\"\n (pointerdown)=\"startRepeat(1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (incrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"incrementIconName().className\"></span>\n }\n </button>\n</ng-template>\n<ng-template #decrement>\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__decrement\"\n [class]=\"passThrough().decrement?.class\"\n [style]=\"passThrough().decrement?.style\"\n [attr.aria-label]=\"translations().decrement\"\n [disabled]=\"!canDecrement()\"\n (pointerdown)=\"startRepeat(-1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (decrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"decrementIconName().className\"></span>\n }\n </button>\n</ng-template>\n",
|
|
670
|
-
styles: [":host{position:relative;display:inline-flex;align-items:stretch;vertical-align:top}:host(.tx-input-number--fluid){display:flex;width:100%}.tx-input-number__input{flex:1 1 auto;min-width:0;font-variant-numeric:tabular-nums}:host([data-styled]){--_inset: 0px}:host([data-styled][data-layout=stacked]){--_inset: var(--tx-input-number-button-stacked-width)}:host([data-styled]) .tx-input-number__input{--tx-field-inset-end: calc(var(--_inset) + var(--_clear, 0px))}:host([data-styled]:has(.tx-input-number__clear)){--_clear: 28px}.tx-input-number__clear{position:absolute;top:50%;right:calc(var(--_inset, 0px) + 8px);transform:translateY(-50%)}:host([data-styled]) .tx-input-number__clear{display:grid;place-items:center;width:24px;height:24px;padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-form-field-icon-color);font-size:var(--tx-form-field-font-size);cursor:pointer;pointer-events:auto;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-input-number__clear:hover{background:var(--tx-surface-hover);color:var(--tx-form-field-color)}:host([data-styled]) .tx-input-number__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-input-number__button{display:grid;place-items:center;box-sizing:border-box;width:var(--tx-input-number-button-width);padding:0;border:1px solid var(--tx-input-number-button-border-color);background:var(--tx-input-number-button-background);color:var(--tx-input-number-button-color);font-size:var(--tx-input-number-button-icon-size);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-input-number__button:hover:enabled{background:var(--tx-input-number-button-hover-background);color:var(--tx-input-number-button-hover-color)}:host([data-styled]) .tx-input-number__button:active:enabled{background:var(--tx-input-number-button-active-background)}:host([data-styled]) .tx-input-number__button:disabled{cursor:not-allowed;opacity:.5}.tx-input-number__stack{position:absolute;top:1px;right:1px;bottom:1px;display:flex;flex-direction:column;overflow:hidden}:host([data-styled]) .tx-input-number__stack{width:var(--tx-input-number-button-stacked-width);border-radius:0 calc(var(--tx-form-field-border-radius) - 1px) calc(var(--tx-form-field-border-radius) - 1px) 0}:host([data-styled]) .tx-input-number__stack .tx-input-number__button{flex:1 1 0;width:100%;min-height:0;border-width:0 0 0 1px}:host([data-styled]) .tx-input-number__stack .tx-input-number__increment{border-bottom-width:1px}:host([data-styled][data-layout=horizontal]) .tx-input-number__input{border-radius:0}:host([data-styled][data-layout=horizontal]) .tx-input-number__decrement{border-right:none;border-radius:var(--tx-form-field-border-radius) 0 0 var(--tx-form-field-border-radius)}:host([data-styled][data-layout=horizontal]) .tx-input-number__increment{border-left:none;border-radius:0 var(--tx-form-field-border-radius) var(--tx-form-field-border-radius) 0}:host([data-layout=vertical]){flex-direction:column}:host([data-styled][data-layout=vertical]) .tx-input-number__input{border-radius:0;text-align:center}:host([data-styled][data-layout=vertical]) .tx-input-number__button{width:auto;height:var(--tx-input-number-button-width)}:host([data-styled][data-layout=vertical]) .tx-input-number__increment{order:-1;border-bottom:none;border-radius:var(--tx-form-field-border-radius) var(--tx-form-field-border-radius) 0 0}:host([data-styled][data-layout=vertical]) .tx-input-number__decrement{order:1;border-top:none;border-radius:0 0 var(--tx-form-field-border-radius) var(--tx-form-field-border-radius)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-input-number__button{transition:none}}\n"],
|
|
670
|
+
styles: [":host{position:relative;display:inline-flex;align-items:stretch;vertical-align:top}:host(.tx-input-number--fluid){display:flex;width:100%}.tx-input-number__input{flex:1 1 auto;min-width:0;font-variant-numeric:tabular-nums}:host([data-styled]){--_inset: 0px}:host([data-styled][data-layout=stacked]){--_inset: var(--tx-input-number-button-stacked-width)}:host([data-styled]) .tx-input-number__input{--tx-field-inset-end: calc(var(--_inset) + var(--_clear, 0px))}:host([data-styled]:has(.tx-input-number__clear)){--_clear: 28px}.tx-input-number__clear{position:absolute;top:50%;right:calc(var(--_inset, 0px) + 8px);transform:translateY(-50%)}:host([data-styled]) .tx-input-number__clear{display:grid;place-items:center;width:24px;height:24px;padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-form-field-icon-color);font-size:var(--tx-form-field-font-size);cursor:pointer;pointer-events:auto;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-input-number__clear:hover{background:var(--tx-surface-hover);color:var(--tx-form-field-color)}:host([data-styled]) .tx-input-number__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-input-number__button{display:grid;place-items:center;box-sizing:border-box;width:var(--tx-input-number-button-width);padding:0;border:1px solid var(--tx-input-number-button-border-color);background:var(--tx-input-number-button-background);color:var(--tx-input-number-button-color);font-size:var(--tx-input-number-button-icon-size);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-input-number__button:hover:enabled{background:var(--tx-input-number-button-hover-background);color:var(--tx-input-number-button-hover-color)}:host([data-styled]) .tx-input-number__button:active:enabled{background:var(--tx-input-number-button-active-background);color:var(--tx-input-number-button-active-color)}:host([data-styled]) .tx-input-number__button:disabled{cursor:not-allowed;opacity:.5}.tx-input-number__stack{position:absolute;top:1px;right:1px;bottom:1px;display:flex;flex-direction:column;overflow:hidden}:host([data-styled]) .tx-input-number__stack{width:var(--tx-input-number-button-stacked-width);border-radius:0 calc(var(--tx-form-field-border-radius) - 1px) calc(var(--tx-form-field-border-radius) - 1px) 0}:host([data-styled]) .tx-input-number__stack .tx-input-number__button{flex:1 1 0;width:100%;min-height:0;border-width:0 0 0 1px}:host([data-styled]) .tx-input-number__stack .tx-input-number__increment{border-bottom-width:1px}:host([data-styled][data-layout=horizontal]) .tx-input-number__input{border-radius:0}:host([data-styled][data-layout=horizontal]) .tx-input-number__decrement{border-right:none;border-radius:var(--tx-form-field-border-radius) 0 0 var(--tx-form-field-border-radius)}:host([data-styled][data-layout=horizontal]) .tx-input-number__increment{border-left:none;border-radius:0 var(--tx-form-field-border-radius) var(--tx-form-field-border-radius) 0}:host([data-layout=vertical]){flex-direction:column}:host([data-styled][data-layout=vertical]) .tx-input-number__input{border-radius:0;text-align:center}:host([data-styled][data-layout=vertical]) .tx-input-number__button{width:auto;height:var(--tx-input-number-button-width)}:host([data-styled][data-layout=vertical]) .tx-input-number__increment{order:-1;border-bottom:none;border-radius:var(--tx-form-field-border-radius) var(--tx-form-field-border-radius) 0 0}:host([data-styled][data-layout=vertical]) .tx-input-number__decrement{order:1;border-top:none;border-radius:0 0 var(--tx-form-field-border-radius) var(--tx-form-field-border-radius)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-input-number__button{transition:none}}\n"],
|
|
671
671
|
dependencies: [
|
|
672
672
|
{
|
|
673
673
|
kind: "directive",
|
|
@@ -737,7 +737,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
737
737
|
"[class.tx-input-number--disabled]": "isDisabled()"
|
|
738
738
|
},
|
|
739
739
|
template: "@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__decrement\"\n [class]=\"passThrough().decrement?.class\"\n [style]=\"passThrough().decrement?.style\"\n [attr.aria-label]=\"translations().decrement\"\n [disabled]=\"!canDecrement()\"\n (pointerdown)=\"startRepeat(-1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (decrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"decrementIconName().className\"></span>\n }\n </button>\n}\n<input\n #input\n txInput\n type=\"text\"\n role=\"spinbutton\"\n inputmode=\"decimal\"\n autocomplete=\"off\"\n class=\"tx-input-number__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [fluid]=\"true\"\n [invalid]=\"isInvalid()\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.placeholder]=\"placeholder() ?? null\"\n [attr.name]=\"name() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-valuenow]=\"value() ?? null\"\n [attr.aria-valuemin]=\"min() ?? null\"\n [attr.aria-valuemax]=\"max() ?? null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur($event)\"\n/>\n@if (showClear() && value() !== null && isEditable()) {\n <button\n type=\"button\"\n class=\"tx-input-number__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n [title]=\"translations().clear\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clear($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n}\n@if (showButtons()) {\n @if (buttonLayout() === 'stacked') {\n <span class=\"tx-input-number__stack\">\n <ng-container [ngTemplateOutlet]=\"increment\" />\n <ng-container [ngTemplateOutlet]=\"decrement\" />\n </span>\n } @else {\n <ng-container [ngTemplateOutlet]=\"increment\" />\n }\n}\n\n<ng-template #increment>\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__increment\"\n [class]=\"passThrough().increment?.class\"\n [style]=\"passThrough().increment?.style\"\n [attr.aria-label]=\"translations().increment\"\n [disabled]=\"!canIncrement()\"\n (pointerdown)=\"startRepeat(1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (incrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"incrementIconName().className\"></span>\n }\n </button>\n</ng-template>\n<ng-template #decrement>\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__decrement\"\n [class]=\"passThrough().decrement?.class\"\n [style]=\"passThrough().decrement?.style\"\n [attr.aria-label]=\"translations().decrement\"\n [disabled]=\"!canDecrement()\"\n (pointerdown)=\"startRepeat(-1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (decrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"decrementIconName().className\"></span>\n }\n </button>\n</ng-template>\n",
|
|
740
|
-
styles: [":host{position:relative;display:inline-flex;align-items:stretch;vertical-align:top}:host(.tx-input-number--fluid){display:flex;width:100%}.tx-input-number__input{flex:1 1 auto;min-width:0;font-variant-numeric:tabular-nums}:host([data-styled]){--_inset: 0px}:host([data-styled][data-layout=stacked]){--_inset: var(--tx-input-number-button-stacked-width)}:host([data-styled]) .tx-input-number__input{--tx-field-inset-end: calc(var(--_inset) + var(--_clear, 0px))}:host([data-styled]:has(.tx-input-number__clear)){--_clear: 28px}.tx-input-number__clear{position:absolute;top:50%;right:calc(var(--_inset, 0px) + 8px);transform:translateY(-50%)}:host([data-styled]) .tx-input-number__clear{display:grid;place-items:center;width:24px;height:24px;padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-form-field-icon-color);font-size:var(--tx-form-field-font-size);cursor:pointer;pointer-events:auto;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-input-number__clear:hover{background:var(--tx-surface-hover);color:var(--tx-form-field-color)}:host([data-styled]) .tx-input-number__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-input-number__button{display:grid;place-items:center;box-sizing:border-box;width:var(--tx-input-number-button-width);padding:0;border:1px solid var(--tx-input-number-button-border-color);background:var(--tx-input-number-button-background);color:var(--tx-input-number-button-color);font-size:var(--tx-input-number-button-icon-size);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-input-number__button:hover:enabled{background:var(--tx-input-number-button-hover-background);color:var(--tx-input-number-button-hover-color)}:host([data-styled]) .tx-input-number__button:active:enabled{background:var(--tx-input-number-button-active-background)}:host([data-styled]) .tx-input-number__button:disabled{cursor:not-allowed;opacity:.5}.tx-input-number__stack{position:absolute;top:1px;right:1px;bottom:1px;display:flex;flex-direction:column;overflow:hidden}:host([data-styled]) .tx-input-number__stack{width:var(--tx-input-number-button-stacked-width);border-radius:0 calc(var(--tx-form-field-border-radius) - 1px) calc(var(--tx-form-field-border-radius) - 1px) 0}:host([data-styled]) .tx-input-number__stack .tx-input-number__button{flex:1 1 0;width:100%;min-height:0;border-width:0 0 0 1px}:host([data-styled]) .tx-input-number__stack .tx-input-number__increment{border-bottom-width:1px}:host([data-styled][data-layout=horizontal]) .tx-input-number__input{border-radius:0}:host([data-styled][data-layout=horizontal]) .tx-input-number__decrement{border-right:none;border-radius:var(--tx-form-field-border-radius) 0 0 var(--tx-form-field-border-radius)}:host([data-styled][data-layout=horizontal]) .tx-input-number__increment{border-left:none;border-radius:0 var(--tx-form-field-border-radius) var(--tx-form-field-border-radius) 0}:host([data-layout=vertical]){flex-direction:column}:host([data-styled][data-layout=vertical]) .tx-input-number__input{border-radius:0;text-align:center}:host([data-styled][data-layout=vertical]) .tx-input-number__button{width:auto;height:var(--tx-input-number-button-width)}:host([data-styled][data-layout=vertical]) .tx-input-number__increment{order:-1;border-bottom:none;border-radius:var(--tx-form-field-border-radius) var(--tx-form-field-border-radius) 0 0}:host([data-styled][data-layout=vertical]) .tx-input-number__decrement{order:1;border-top:none;border-radius:0 0 var(--tx-form-field-border-radius) var(--tx-form-field-border-radius)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-input-number__button{transition:none}}\n"]
|
|
740
|
+
styles: [":host{position:relative;display:inline-flex;align-items:stretch;vertical-align:top}:host(.tx-input-number--fluid){display:flex;width:100%}.tx-input-number__input{flex:1 1 auto;min-width:0;font-variant-numeric:tabular-nums}:host([data-styled]){--_inset: 0px}:host([data-styled][data-layout=stacked]){--_inset: var(--tx-input-number-button-stacked-width)}:host([data-styled]) .tx-input-number__input{--tx-field-inset-end: calc(var(--_inset) + var(--_clear, 0px))}:host([data-styled]:has(.tx-input-number__clear)){--_clear: 28px}.tx-input-number__clear{position:absolute;top:50%;right:calc(var(--_inset, 0px) + 8px);transform:translateY(-50%)}:host([data-styled]) .tx-input-number__clear{display:grid;place-items:center;width:24px;height:24px;padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-form-field-icon-color);font-size:var(--tx-form-field-font-size);cursor:pointer;pointer-events:auto;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-input-number__clear:hover{background:var(--tx-surface-hover);color:var(--tx-form-field-color)}:host([data-styled]) .tx-input-number__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-input-number__button{display:grid;place-items:center;box-sizing:border-box;width:var(--tx-input-number-button-width);padding:0;border:1px solid var(--tx-input-number-button-border-color);background:var(--tx-input-number-button-background);color:var(--tx-input-number-button-color);font-size:var(--tx-input-number-button-icon-size);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-input-number__button:hover:enabled{background:var(--tx-input-number-button-hover-background);color:var(--tx-input-number-button-hover-color)}:host([data-styled]) .tx-input-number__button:active:enabled{background:var(--tx-input-number-button-active-background);color:var(--tx-input-number-button-active-color)}:host([data-styled]) .tx-input-number__button:disabled{cursor:not-allowed;opacity:.5}.tx-input-number__stack{position:absolute;top:1px;right:1px;bottom:1px;display:flex;flex-direction:column;overflow:hidden}:host([data-styled]) .tx-input-number__stack{width:var(--tx-input-number-button-stacked-width);border-radius:0 calc(var(--tx-form-field-border-radius) - 1px) calc(var(--tx-form-field-border-radius) - 1px) 0}:host([data-styled]) .tx-input-number__stack .tx-input-number__button{flex:1 1 0;width:100%;min-height:0;border-width:0 0 0 1px}:host([data-styled]) .tx-input-number__stack .tx-input-number__increment{border-bottom-width:1px}:host([data-styled][data-layout=horizontal]) .tx-input-number__input{border-radius:0}:host([data-styled][data-layout=horizontal]) .tx-input-number__decrement{border-right:none;border-radius:var(--tx-form-field-border-radius) 0 0 var(--tx-form-field-border-radius)}:host([data-styled][data-layout=horizontal]) .tx-input-number__increment{border-left:none;border-radius:0 var(--tx-form-field-border-radius) var(--tx-form-field-border-radius) 0}:host([data-layout=vertical]){flex-direction:column}:host([data-styled][data-layout=vertical]) .tx-input-number__input{border-radius:0;text-align:center}:host([data-styled][data-layout=vertical]) .tx-input-number__button{width:auto;height:var(--tx-input-number-button-width)}:host([data-styled][data-layout=vertical]) .tx-input-number__increment{order:-1;border-bottom:none;border-radius:var(--tx-form-field-border-radius) var(--tx-form-field-border-radius) 0 0}:host([data-styled][data-layout=vertical]) .tx-input-number__decrement{order:1;border-top:none;border-radius:0 0 var(--tx-form-field-border-radius) var(--tx-form-field-border-radius)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-input-number__button{transition:none}}\n"]
|
|
741
741
|
}]
|
|
742
742
|
}],
|
|
743
743
|
ctorParameters: () => [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-input-number.mjs","names":[],"sources":["../../../../packages/ui/input-number/src/number-format.ts","../../../../packages/ui/input-number/src/input-number.component.ts","../../../../packages/ui/input-number/src/input-number.component.html"],"sourcesContent":["export interface TxNumberFormatOptions {\n locale: string;\n mode: 'decimal' | 'currency';\n currency?: string;\n currencyDisplay?: 'symbol' | 'narrowSymbol' | 'code' | 'name';\n useGrouping: boolean;\n minFractionDigits?: number;\n maxFractionDigits?: number;\n prefix?: string;\n suffix?: string;\n}\n\ninterface TxNumberRead {\n negative: boolean;\n digits: string;\n fraction: string | null;\n}\n\nconst NUMBER_PARTS = ['integer', 'group', 'decimal', 'fraction'];\n\nexport class TxNumberFormat {\n readonly decimal: string;\n readonly group: string;\n readonly before: string;\n readonly after: string;\n readonly maxFraction: number;\n private full: Intl.NumberFormat;\n private integer: Intl.NumberFormat;\n\n constructor(options: TxNumberFormatOptions) {\n const style: Intl.NumberFormatOptions =\n options.mode === 'currency'\n ? { style: 'currency', currency: options.currency ?? 'USD', currencyDisplay: options.currencyDisplay ?? 'symbol' }\n : { style: 'decimal' };\n const defaults = new Intl.NumberFormat(options.locale, style).resolvedOptions();\n const currency = options.mode === 'currency';\n const min = options.minFractionDigits ?? (currency ? (defaults.minimumFractionDigits ?? 2) : 0);\n const max = Math.max(min, options.maxFractionDigits ?? (currency ? (defaults.maximumFractionDigits ?? 2) : 3));\n this.full = new Intl.NumberFormat(options.locale, { ...style, useGrouping: options.useGrouping, minimumFractionDigits: min, maximumFractionDigits: max });\n this.integer = new Intl.NumberFormat(options.locale, { useGrouping: options.useGrouping, maximumFractionDigits: 0 });\n const plain = new Intl.NumberFormat(options.locale).formatToParts(12345.6);\n this.decimal = plain.find((part) => part.type === 'decimal')?.value ?? '.';\n this.group = plain.find((part) => part.type === 'group')?.value ?? ',';\n this.maxFraction = max;\n const sample = this.full.formatToParts(-12345.6);\n const first = sample.findIndex((part) => NUMBER_PARTS.includes(part.type));\n const last = sample.length - 1 - [...sample].reverse().findIndex((part) => NUMBER_PARTS.includes(part.type));\n const affix = (parts: Intl.NumberFormatPart[]) => parts.filter((part) => part.type !== 'minusSign').map((part) => part.value).join('');\n this.before = (options.prefix ?? '') + affix(sample.slice(0, first));\n this.after = affix(sample.slice(last + 1)) + (options.suffix ?? '');\n }\n\n format(value: number | null): string {\n if (value === null || Number.isNaN(value)) {\n return '';\n }\n const number = this.full\n .formatToParts(Math.abs(value))\n .filter((part) => NUMBER_PARTS.includes(part.type))\n .map((part) => part.value)\n .join('');\n return `${value < 0 ? '-' : ''}${this.before}${number}${this.after}`;\n }\n\n formatTyping(text: string): { display: string; value: number | null } {\n const read = this.read(text);\n if (read.digits === '' && read.fraction === null) {\n return { display: read.negative ? '-' : '', value: null };\n }\n const integer = (read.digits || '0').replace(/^0+(?=\\d)/, '');\n const fraction = read.fraction === null ? null : read.fraction.slice(0, this.maxFraction);\n const grouped = this.integer.format(BigInt(integer));\n const display = `${read.negative ? '-' : ''}${this.before}${grouped}${fraction === null ? '' : this.decimal + fraction}${this.after}`;\n const value = Number(`${read.negative ? '-' : ''}${integer}${fraction ? `.${fraction}` : ''}`);\n return { display, value };\n }\n\n parse(text: string): number | null {\n return this.formatTyping(text).value;\n }\n\n countBefore(text: string, caret: number): number {\n let count = 0;\n let decimalSeen = false;\n for (const char of this.strip(text.slice(0, caret))) {\n if (/\\d/.test(char)) {\n count += 1;\n } else if (!decimalSeen && this.isDecimal(char)) {\n decimalSeen = true;\n count += 1;\n }\n }\n return count;\n }\n\n caretFor(display: string, count: number): number {\n const start = (display.startsWith('-') ? 1 : 0) + this.before.length;\n if (count <= 0) {\n return start;\n }\n let seen = 0;\n for (let index = start; index < display.length - this.after.length; index += 1) {\n if (/\\d/.test(display[index]) || display[index] === this.decimal) {\n seen += 1;\n if (seen === count) {\n return index + 1;\n }\n }\n }\n return display.length - this.after.length;\n }\n\n private read(text: string): TxNumberRead {\n const negative = text.includes('-');\n let digits = '';\n let fraction: string | null = null;\n for (const char of this.strip(text)) {\n if (/\\d/.test(char)) {\n if (fraction === null) {\n digits += char;\n } else {\n fraction += char;\n }\n } else if (fraction === null && this.maxFraction > 0 && this.isDecimal(char)) {\n fraction = '';\n }\n }\n return { negative, digits, fraction };\n }\n\n private strip(text: string): string {\n let body = text.replace('-', '');\n if (this.before && body.startsWith(this.before)) {\n body = body.slice(this.before.length);\n }\n if (this.after && body.endsWith(this.after)) {\n body = body.slice(0, -this.after.length);\n }\n return body;\n }\n\n private isDecimal(char: string): boolean {\n return char === this.decimal || (this.decimal === ',' && char === '.' && this.group !== '.');\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n booleanAttribute,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraInputNumberTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxInput } from '@tectra-ng/ui/input';\nimport {\n TxInputNumberButtonLayout,\n TxInputNumberChangeEvent,\n TxInputNumberCurrencyDisplay,\n TxInputNumberMode,\n TxInputNumberPart,\n TxInputNumberSize,\n TxInputNumberVariant,\n} from './input-number.types';\nimport { TxNumberFormat } from './number-format';\n\nconst REPEAT_DELAY = 400;\nconst REPEAT_INTERVAL = 60;\n\n@Component({\n selector: 'tx-input-number',\n imports: [TxInput, TxIcon, NgTemplateOutlet],\n templateUrl: './input-number.component.html',\n styleUrl: './input-number.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxInputNumber), multi: true }],\n host: {\n class: 'tx-input-number',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-layout]': 'showButtons() ? buttonLayout() : null',\n '[attr.data-size]': 'size()',\n '[class.tx-input-number--fluid]': 'isFluid()',\n '[class.tx-input-number--filled]': 'value() !== null',\n '[class.tx-input-number--invalid]': 'isInvalid()',\n '[class.tx-input-number--disabled]': 'isDisabled()',\n },\n})\nexport class TxInputNumber extends TxFormControlBase<number> {\n private txIconRegistry = inject(TxIconRegistry);\n private localeService = inject(TxLocaleService);\n private generatedId = uniqueId('tx-input-number');\n private repeatTimer: ReturnType<typeof setTimeout> | null = null;\n\n readonly mode = input<TxInputNumberMode>('decimal');\n readonly currency = input<string | undefined>(undefined);\n readonly currencyDisplay = input<TxInputNumberCurrencyDisplay>('symbol');\n readonly locale = input<string | undefined>(undefined);\n readonly useGrouping = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly minFractionDigits = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly maxFractionDigits = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly prefix = input<string | undefined>(undefined);\n readonly suffix = input<string | undefined>(undefined);\n readonly min = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly max = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly step = input<number, unknown>(1, { transform: numberAttribute });\n readonly showButtons = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly buttonLayout = input<TxInputNumberButtonLayout>('stacked');\n readonly incrementIcon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly decrementIcon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly allowEmpty = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showClear = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<string | undefined>(undefined);\n readonly size = input<TxInputNumberSize>('medium');\n readonly variant = input<TxInputNumberVariant>('outlined');\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly disabledInput = input<boolean, unknown>(false, { alias: 'disabled', transform: booleanAttribute });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly required = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly name = input<string | undefined>(undefined);\n readonly inputId = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraInputNumberTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxInputNumberPart, TxInputNumber> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<TxInputNumberChangeEvent>();\n readonly cleared = output<void>();\n\n readonly inputRef = viewChild.required<ElementRef<HTMLInputElement>>('input');\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly isFluid = injectFluid(this.fluid);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly passThrough = injectPassThrough('inputNumber', this, this.pt, this.ptOptions);\n\n readonly isFocused = signal(false);\n readonly resolvedId = computed(() => this.inputId() ?? this.generatedId);\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput());\n readonly isEditable = computed(() => !this.isDisabled() && !this.readonly());\n readonly format = computed(\n () =>\n new TxNumberFormat({\n locale: this.locale() ?? this.localeService.locale().intl,\n mode: this.mode(),\n currency: this.currency(),\n currencyDisplay: this.currencyDisplay(),\n useGrouping: this.useGrouping(),\n minFractionDigits: this.minFractionDigits(),\n maxFractionDigits: this.maxFractionDigits(),\n prefix: this.prefix(),\n suffix: this.suffix(),\n }),\n );\n readonly canIncrement = computed(() => this.isEditable() && (this.max() === undefined || (this.value() ?? 0) < (this.max() as number)));\n readonly canDecrement = computed(() => this.isEditable() && (this.min() === undefined || (this.value() ?? 0) > (this.min() as number)));\n readonly incrementIconName = computed(() => this.iconName(this.incrementIcon(), this.buttonLayout() === 'stacked' ? 'chevron-up' : 'plus'));\n readonly decrementIconName = computed(() => this.iconName(this.decrementIcon(), this.buttonLayout() === 'stacked' ? 'chevron-down' : 'minus'));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-input-number'), ...this.passThrough().root?.style }));\n\n constructor() {\n super();\n effect(() => {\n this.format();\n if (!this.isFocused()) {\n this.paint(this.format().format(this.value()));\n }\n });\n inject(DestroyRef).onDestroy(() => this.stopRepeat());\n }\n\n override writeValue(value: number | null): void {\n super.writeValue(typeof value === 'number' && !Number.isNaN(value) ? value : null);\n queueMicrotask(() => this.paint(this.format().format(this.value())));\n }\n\n focus(): void {\n this.inputRef().nativeElement.focus();\n }\n\n onInput(event: Event): void {\n const element = this.inputRef().nativeElement;\n const format = this.format();\n const count = format.countBefore(element.value, element.selectionStart ?? element.value.length);\n const typed = format.formatTyping(this.allowsNegative() ? element.value : element.value.replace('-', ''));\n this.paint(typed.display);\n element.setSelectionRange(format.caretFor(typed.display, count), format.caretFor(typed.display, count));\n this.commit(typed.value, event);\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (!this.isEditable()) {\n return;\n }\n switch (event.key) {\n case 'ArrowUp':\n event.preventDefault();\n this.spin(1, event);\n break;\n case 'ArrowDown':\n event.preventDefault();\n this.spin(-1, event);\n break;\n case 'Home':\n if (this.min() !== undefined) {\n event.preventDefault();\n this.commit(this.min() as number, event, true);\n }\n break;\n case 'End':\n if (this.max() !== undefined) {\n event.preventDefault();\n this.commit(this.max() as number, event, true);\n }\n break;\n case 'Enter':\n this.finish(event);\n break;\n }\n }\n\n onFocus(): void {\n this.isFocused.set(true);\n }\n\n onBlur(event: Event): void {\n this.isFocused.set(false);\n this.finish(event);\n this.markTouched();\n }\n\n startRepeat(direction: 1 | -1, event: PointerEvent): void {\n if (event.button !== 0 || !this.isEditable()) {\n return;\n }\n event.preventDefault();\n this.focus();\n this.spin(direction, event);\n this.stopRepeat();\n const repeat = (delay: number) => {\n this.repeatTimer = setTimeout(() => {\n this.spin(direction, event);\n repeat(REPEAT_INTERVAL);\n }, delay);\n };\n repeat(REPEAT_DELAY);\n }\n\n stopRepeat(): void {\n if (this.repeatTimer) {\n clearTimeout(this.repeatTimer);\n this.repeatTimer = null;\n }\n }\n\n clear(event: Event): void {\n this.commit(this.allowEmpty() ? null : (this.min() ?? 0), event, true);\n this.cleared.emit();\n this.focus();\n }\n\n private spin(direction: 1 | -1, event: Event): void {\n const current = this.value() ?? 0;\n const precision = Math.max(decimals(this.step()), decimals(current));\n const next = Number((current + direction * this.step()).toFixed(precision));\n this.commit(this.clamp(next), event, true);\n if ((direction === 1 && !this.canIncrement()) || (direction === -1 && !this.canDecrement())) {\n this.stopRepeat();\n }\n }\n\n private finish(event: Event): void {\n let next = this.value();\n if (next === null && !this.allowEmpty()) {\n next = this.min() ?? 0;\n }\n next = next === null ? null : this.clamp(next);\n this.commit(next, event, true);\n }\n\n private commit(value: number | null, event: Event, repaint = false): void {\n if (repaint) {\n this.paint(this.format().format(value));\n }\n if (value !== this.value()) {\n this.updateValue(value);\n this.changed.emit({ value, originalEvent: event });\n }\n }\n\n private clamp(value: number): number {\n const min = this.min();\n const max = this.max();\n return Math.min(max ?? Infinity, Math.max(min ?? -Infinity, value));\n }\n\n private allowsNegative(): boolean {\n const min = this.min();\n return min === undefined || min < 0;\n }\n\n private paint(text: string): void {\n const element = this.inputRef().nativeElement;\n if (element.value !== text) {\n element.value = text;\n }\n }\n\n private iconName(icon: string | undefined, fallback: string): { name: string | null; className: string | null } {\n const resolved = icon ?? fallback;\n return this.txIconRegistry.has(resolved) ? { name: resolved, className: null } : { name: null, className: resolved };\n }\n}\n\nfunction decimals(value: number): number {\n const text = String(value);\n return text.includes('.') ? text.split('.')[1].length : 0;\n}\n","@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__decrement\"\n [class]=\"passThrough().decrement?.class\"\n [style]=\"passThrough().decrement?.style\"\n [attr.aria-label]=\"translations().decrement\"\n [disabled]=\"!canDecrement()\"\n (pointerdown)=\"startRepeat(-1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (decrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"decrementIconName().className\"></span>\n }\n </button>\n}\n<input\n #input\n txInput\n type=\"text\"\n role=\"spinbutton\"\n inputmode=\"decimal\"\n autocomplete=\"off\"\n class=\"tx-input-number__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [fluid]=\"true\"\n [invalid]=\"isInvalid()\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.placeholder]=\"placeholder() ?? null\"\n [attr.name]=\"name() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-valuenow]=\"value() ?? null\"\n [attr.aria-valuemin]=\"min() ?? null\"\n [attr.aria-valuemax]=\"max() ?? null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur($event)\"\n/>\n@if (showClear() && value() !== null && isEditable()) {\n <button\n type=\"button\"\n class=\"tx-input-number__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n [title]=\"translations().clear\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clear($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n}\n@if (showButtons()) {\n @if (buttonLayout() === 'stacked') {\n <span class=\"tx-input-number__stack\">\n <ng-container [ngTemplateOutlet]=\"increment\" />\n <ng-container [ngTemplateOutlet]=\"decrement\" />\n </span>\n } @else {\n <ng-container [ngTemplateOutlet]=\"increment\" />\n }\n}\n\n<ng-template #increment>\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__increment\"\n [class]=\"passThrough().increment?.class\"\n [style]=\"passThrough().increment?.style\"\n [attr.aria-label]=\"translations().increment\"\n [disabled]=\"!canIncrement()\"\n (pointerdown)=\"startRepeat(1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (incrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"incrementIconName().className\"></span>\n }\n </button>\n</ng-template>\n<ng-template #decrement>\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__decrement\"\n [class]=\"passThrough().decrement?.class\"\n [style]=\"passThrough().decrement?.style\"\n [attr.aria-label]=\"translations().decrement\"\n [disabled]=\"!canDecrement()\"\n (pointerdown)=\"startRepeat(-1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (decrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"decrementIconName().className\"></span>\n }\n </button>\n</ng-template>\n"],"mappings":";;;;;;;;;;;;;AAkBA,MAAM,eAAe;CAAC;CAAW;CAAS;CAAW;AAAU;AAE/D,IAAa,iBAAb,MAA2B;CAChB;CACA;CACA;CACA;CACA;CACD;CACA;CAER,YAAY,SAA8B;EACxC,MAAM,QACJ,QAAQ,SAAS,aACb;GAAE,OAAO;GAAY,UAAU,QAAQ,YAAY;GAAO,iBAAiB,QAAQ,mBAAmB;EAAQ,IAC9G,EAAE,OAAO,UAAS;EACxB,MAAM,WAAW,IAAI,KAAK,aAAa,QAAQ,QAAQ,KAAK,CAAC,CAAC,gBAAe;EAC7E,MAAM,WAAW,QAAQ,SAAS;EAClC,MAAM,MAAM,QAAQ,sBAAsB,WAAY,SAAS,yBAAyB,IAAK;EAC7F,MAAM,MAAM,KAAK,IAAI,KAAK,QAAQ,sBAAsB,WAAY,SAAS,yBAAyB,IAAK,EAAE;EAC7G,KAAK,OAAO,IAAI,KAAK,aAAa,QAAQ,QAAQ;GAAE,GAAG;GAAO,aAAa,QAAQ;GAAa,uBAAuB;GAAK,uBAAuB;EAAG,CAAE;EACxJ,KAAK,UAAU,IAAI,KAAK,aAAa,QAAQ,QAAQ;GAAE,aAAa,QAAQ;GAAa,uBAAuB;EAAC,CAAE;EACnH,MAAM,QAAQ,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AA;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,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,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AA0L9E,SAAS,SAAS,OAAa;CAC7B,MAAM,OAAO,OAAO,KAAK;CACzB,OAAO,KAAK,SAAS,GAAG,IAAI,KAAK,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,SAAS;AAC1D"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-input-number.mjs","names":[],"sources":["../../../../packages/ui/input-number/src/number-format.ts","../../../../packages/ui/input-number/src/input-number.component.ts","../../../../packages/ui/input-number/src/input-number.component.html"],"sourcesContent":["export interface TxNumberFormatOptions {\n locale: string;\n mode: 'decimal' | 'currency';\n currency?: string;\n currencyDisplay?: 'symbol' | 'narrowSymbol' | 'code' | 'name';\n useGrouping: boolean;\n minFractionDigits?: number;\n maxFractionDigits?: number;\n prefix?: string;\n suffix?: string;\n}\n\ninterface TxNumberRead {\n negative: boolean;\n digits: string;\n fraction: string | null;\n}\n\nconst NUMBER_PARTS = ['integer', 'group', 'decimal', 'fraction'];\n\nexport class TxNumberFormat {\n readonly decimal: string;\n readonly group: string;\n readonly before: string;\n readonly after: string;\n readonly maxFraction: number;\n private full: Intl.NumberFormat;\n private integer: Intl.NumberFormat;\n\n constructor(options: TxNumberFormatOptions) {\n const style: Intl.NumberFormatOptions =\n options.mode === 'currency'\n ? { style: 'currency', currency: options.currency ?? 'USD', currencyDisplay: options.currencyDisplay ?? 'symbol' }\n : { style: 'decimal' };\n const defaults = new Intl.NumberFormat(options.locale, style).resolvedOptions();\n const currency = options.mode === 'currency';\n const min = options.minFractionDigits ?? (currency ? (defaults.minimumFractionDigits ?? 2) : 0);\n const max = Math.max(min, options.maxFractionDigits ?? (currency ? (defaults.maximumFractionDigits ?? 2) : 3));\n this.full = new Intl.NumberFormat(options.locale, { ...style, useGrouping: options.useGrouping, minimumFractionDigits: min, maximumFractionDigits: max });\n this.integer = new Intl.NumberFormat(options.locale, { useGrouping: options.useGrouping, maximumFractionDigits: 0 });\n const plain = new Intl.NumberFormat(options.locale).formatToParts(12345.6);\n this.decimal = plain.find((part) => part.type === 'decimal')?.value ?? '.';\n this.group = plain.find((part) => part.type === 'group')?.value ?? ',';\n this.maxFraction = max;\n const sample = this.full.formatToParts(-12345.6);\n const first = sample.findIndex((part) => NUMBER_PARTS.includes(part.type));\n const last = sample.length - 1 - [...sample].reverse().findIndex((part) => NUMBER_PARTS.includes(part.type));\n const affix = (parts: Intl.NumberFormatPart[]) => parts.filter((part) => part.type !== 'minusSign').map((part) => part.value).join('');\n this.before = (options.prefix ?? '') + affix(sample.slice(0, first));\n this.after = affix(sample.slice(last + 1)) + (options.suffix ?? '');\n }\n\n format(value: number | null): string {\n if (value === null || Number.isNaN(value)) {\n return '';\n }\n const number = this.full\n .formatToParts(Math.abs(value))\n .filter((part) => NUMBER_PARTS.includes(part.type))\n .map((part) => part.value)\n .join('');\n return `${value < 0 ? '-' : ''}${this.before}${number}${this.after}`;\n }\n\n formatTyping(text: string): { display: string; value: number | null } {\n const read = this.read(text);\n if (read.digits === '' && read.fraction === null) {\n return { display: read.negative ? '-' : '', value: null };\n }\n const integer = (read.digits || '0').replace(/^0+(?=\\d)/, '');\n const fraction = read.fraction === null ? null : read.fraction.slice(0, this.maxFraction);\n const grouped = this.integer.format(BigInt(integer));\n const display = `${read.negative ? '-' : ''}${this.before}${grouped}${fraction === null ? '' : this.decimal + fraction}${this.after}`;\n const value = Number(`${read.negative ? '-' : ''}${integer}${fraction ? `.${fraction}` : ''}`);\n return { display, value };\n }\n\n parse(text: string): number | null {\n return this.formatTyping(text).value;\n }\n\n countBefore(text: string, caret: number): number {\n let count = 0;\n let decimalSeen = false;\n for (const char of this.strip(text.slice(0, caret))) {\n if (/\\d/.test(char)) {\n count += 1;\n } else if (!decimalSeen && this.isDecimal(char)) {\n decimalSeen = true;\n count += 1;\n }\n }\n return count;\n }\n\n caretFor(display: string, count: number): number {\n const start = (display.startsWith('-') ? 1 : 0) + this.before.length;\n if (count <= 0) {\n return start;\n }\n let seen = 0;\n for (let index = start; index < display.length - this.after.length; index += 1) {\n if (/\\d/.test(display[index]) || display[index] === this.decimal) {\n seen += 1;\n if (seen === count) {\n return index + 1;\n }\n }\n }\n return display.length - this.after.length;\n }\n\n private read(text: string): TxNumberRead {\n const negative = text.includes('-');\n let digits = '';\n let fraction: string | null = null;\n for (const char of this.strip(text)) {\n if (/\\d/.test(char)) {\n if (fraction === null) {\n digits += char;\n } else {\n fraction += char;\n }\n } else if (fraction === null && this.maxFraction > 0 && this.isDecimal(char)) {\n fraction = '';\n }\n }\n return { negative, digits, fraction };\n }\n\n private strip(text: string): string {\n let body = text.replace('-', '');\n if (this.before && body.startsWith(this.before)) {\n body = body.slice(this.before.length);\n }\n if (this.after && body.endsWith(this.after)) {\n body = body.slice(0, -this.after.length);\n }\n return body;\n }\n\n private isDecimal(char: string): boolean {\n return char === this.decimal || (this.decimal === ',' && char === '.' && this.group !== '.');\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n booleanAttribute,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraInputNumberTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxInput } from '@tectra-ng/ui/input';\nimport {\n TxInputNumberButtonLayout,\n TxInputNumberChangeEvent,\n TxInputNumberCurrencyDisplay,\n TxInputNumberMode,\n TxInputNumberPart,\n TxInputNumberSize,\n TxInputNumberVariant,\n} from './input-number.types';\nimport { TxNumberFormat } from './number-format';\n\nconst REPEAT_DELAY = 400;\nconst REPEAT_INTERVAL = 60;\n\n@Component({\n selector: 'tx-input-number',\n imports: [TxInput, TxIcon, NgTemplateOutlet],\n templateUrl: './input-number.component.html',\n styleUrl: './input-number.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxInputNumber), multi: true }],\n host: {\n class: 'tx-input-number',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-layout]': 'showButtons() ? buttonLayout() : null',\n '[attr.data-size]': 'size()',\n '[class.tx-input-number--fluid]': 'isFluid()',\n '[class.tx-input-number--filled]': 'value() !== null',\n '[class.tx-input-number--invalid]': 'isInvalid()',\n '[class.tx-input-number--disabled]': 'isDisabled()',\n },\n})\nexport class TxInputNumber extends TxFormControlBase<number> {\n private txIconRegistry = inject(TxIconRegistry);\n private localeService = inject(TxLocaleService);\n private generatedId = uniqueId('tx-input-number');\n private repeatTimer: ReturnType<typeof setTimeout> | null = null;\n\n readonly mode = input<TxInputNumberMode>('decimal');\n readonly currency = input<string | undefined>(undefined);\n readonly currencyDisplay = input<TxInputNumberCurrencyDisplay>('symbol');\n readonly locale = input<string | undefined>(undefined);\n readonly useGrouping = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly minFractionDigits = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly maxFractionDigits = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly prefix = input<string | undefined>(undefined);\n readonly suffix = input<string | undefined>(undefined);\n readonly min = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly max = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly step = input<number, unknown>(1, { transform: numberAttribute });\n readonly showButtons = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly buttonLayout = input<TxInputNumberButtonLayout>('stacked');\n readonly incrementIcon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly decrementIcon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly allowEmpty = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showClear = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<string | undefined>(undefined);\n readonly size = input<TxInputNumberSize>('medium');\n readonly variant = input<TxInputNumberVariant>('outlined');\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly disabledInput = input<boolean, unknown>(false, { alias: 'disabled', transform: booleanAttribute });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly required = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly name = input<string | undefined>(undefined);\n readonly inputId = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraInputNumberTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxInputNumberPart, TxInputNumber> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<TxInputNumberChangeEvent>();\n readonly cleared = output<void>();\n\n readonly inputRef = viewChild.required<ElementRef<HTMLInputElement>>('input');\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly isFluid = injectFluid(this.fluid);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly passThrough = injectPassThrough('inputNumber', this, this.pt, this.ptOptions);\n\n readonly isFocused = signal(false);\n readonly resolvedId = computed(() => this.inputId() ?? this.generatedId);\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput());\n readonly isEditable = computed(() => !this.isDisabled() && !this.readonly());\n readonly format = computed(\n () =>\n new TxNumberFormat({\n locale: this.locale() ?? this.localeService.locale().intl,\n mode: this.mode(),\n currency: this.currency(),\n currencyDisplay: this.currencyDisplay(),\n useGrouping: this.useGrouping(),\n minFractionDigits: this.minFractionDigits(),\n maxFractionDigits: this.maxFractionDigits(),\n prefix: this.prefix(),\n suffix: this.suffix(),\n }),\n );\n readonly canIncrement = computed(() => this.isEditable() && (this.max() === undefined || (this.value() ?? 0) < (this.max() as number)));\n readonly canDecrement = computed(() => this.isEditable() && (this.min() === undefined || (this.value() ?? 0) > (this.min() as number)));\n readonly incrementIconName = computed(() => this.iconName(this.incrementIcon(), this.buttonLayout() === 'stacked' ? 'chevron-up' : 'plus'));\n readonly decrementIconName = computed(() => this.iconName(this.decrementIcon(), this.buttonLayout() === 'stacked' ? 'chevron-down' : 'minus'));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-input-number'), ...this.passThrough().root?.style }));\n\n constructor() {\n super();\n effect(() => {\n this.format();\n if (!this.isFocused()) {\n this.paint(this.format().format(this.value()));\n }\n });\n inject(DestroyRef).onDestroy(() => this.stopRepeat());\n }\n\n override writeValue(value: number | null): void {\n super.writeValue(typeof value === 'number' && !Number.isNaN(value) ? value : null);\n queueMicrotask(() => this.paint(this.format().format(this.value())));\n }\n\n focus(): void {\n this.inputRef().nativeElement.focus();\n }\n\n onInput(event: Event): void {\n const element = this.inputRef().nativeElement;\n const format = this.format();\n const count = format.countBefore(element.value, element.selectionStart ?? element.value.length);\n const typed = format.formatTyping(this.allowsNegative() ? element.value : element.value.replace('-', ''));\n this.paint(typed.display);\n element.setSelectionRange(format.caretFor(typed.display, count), format.caretFor(typed.display, count));\n this.commit(typed.value, event);\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (!this.isEditable()) {\n return;\n }\n switch (event.key) {\n case 'ArrowUp':\n event.preventDefault();\n this.spin(1, event);\n break;\n case 'ArrowDown':\n event.preventDefault();\n this.spin(-1, event);\n break;\n case 'Home':\n if (this.min() !== undefined) {\n event.preventDefault();\n this.commit(this.min() as number, event, true);\n }\n break;\n case 'End':\n if (this.max() !== undefined) {\n event.preventDefault();\n this.commit(this.max() as number, event, true);\n }\n break;\n case 'Enter':\n this.finish(event);\n break;\n }\n }\n\n onFocus(): void {\n this.isFocused.set(true);\n }\n\n onBlur(event: Event): void {\n this.isFocused.set(false);\n this.finish(event);\n this.markTouched();\n }\n\n startRepeat(direction: 1 | -1, event: PointerEvent): void {\n if (event.button !== 0 || !this.isEditable()) {\n return;\n }\n event.preventDefault();\n this.focus();\n this.spin(direction, event);\n this.stopRepeat();\n const repeat = (delay: number) => {\n this.repeatTimer = setTimeout(() => {\n this.spin(direction, event);\n repeat(REPEAT_INTERVAL);\n }, delay);\n };\n repeat(REPEAT_DELAY);\n }\n\n stopRepeat(): void {\n if (this.repeatTimer) {\n clearTimeout(this.repeatTimer);\n this.repeatTimer = null;\n }\n }\n\n clear(event: Event): void {\n this.commit(this.allowEmpty() ? null : (this.min() ?? 0), event, true);\n this.cleared.emit();\n this.focus();\n }\n\n private spin(direction: 1 | -1, event: Event): void {\n const current = this.value() ?? 0;\n const precision = Math.max(decimals(this.step()), decimals(current));\n const next = Number((current + direction * this.step()).toFixed(precision));\n this.commit(this.clamp(next), event, true);\n if ((direction === 1 && !this.canIncrement()) || (direction === -1 && !this.canDecrement())) {\n this.stopRepeat();\n }\n }\n\n private finish(event: Event): void {\n let next = this.value();\n if (next === null && !this.allowEmpty()) {\n next = this.min() ?? 0;\n }\n next = next === null ? null : this.clamp(next);\n this.commit(next, event, true);\n }\n\n private commit(value: number | null, event: Event, repaint = false): void {\n if (repaint) {\n this.paint(this.format().format(value));\n }\n if (value !== this.value()) {\n this.updateValue(value);\n this.changed.emit({ value, originalEvent: event });\n }\n }\n\n private clamp(value: number): number {\n const min = this.min();\n const max = this.max();\n return Math.min(max ?? Infinity, Math.max(min ?? -Infinity, value));\n }\n\n private allowsNegative(): boolean {\n const min = this.min();\n return min === undefined || min < 0;\n }\n\n private paint(text: string): void {\n const element = this.inputRef().nativeElement;\n if (element.value !== text) {\n element.value = text;\n }\n }\n\n private iconName(icon: string | undefined, fallback: string): { name: string | null; className: string | null } {\n const resolved = icon ?? fallback;\n return this.txIconRegistry.has(resolved) ? { name: resolved, className: null } : { name: null, className: resolved };\n }\n}\n\nfunction decimals(value: number): number {\n const text = String(value);\n return text.includes('.') ? text.split('.')[1].length : 0;\n}\n","@if (showButtons() && buttonLayout() !== 'stacked') {\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__decrement\"\n [class]=\"passThrough().decrement?.class\"\n [style]=\"passThrough().decrement?.style\"\n [attr.aria-label]=\"translations().decrement\"\n [disabled]=\"!canDecrement()\"\n (pointerdown)=\"startRepeat(-1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (decrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"decrementIconName().className\"></span>\n }\n </button>\n}\n<input\n #input\n txInput\n type=\"text\"\n role=\"spinbutton\"\n inputmode=\"decimal\"\n autocomplete=\"off\"\n class=\"tx-input-number__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [fluid]=\"true\"\n [invalid]=\"isInvalid()\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.placeholder]=\"placeholder() ?? null\"\n [attr.name]=\"name() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-valuenow]=\"value() ?? null\"\n [attr.aria-valuemin]=\"min() ?? null\"\n [attr.aria-valuemax]=\"max() ?? null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur($event)\"\n/>\n@if (showClear() && value() !== null && isEditable()) {\n <button\n type=\"button\"\n class=\"tx-input-number__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n [title]=\"translations().clear\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clear($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n}\n@if (showButtons()) {\n @if (buttonLayout() === 'stacked') {\n <span class=\"tx-input-number__stack\">\n <ng-container [ngTemplateOutlet]=\"increment\" />\n <ng-container [ngTemplateOutlet]=\"decrement\" />\n </span>\n } @else {\n <ng-container [ngTemplateOutlet]=\"increment\" />\n }\n}\n\n<ng-template #increment>\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__increment\"\n [class]=\"passThrough().increment?.class\"\n [style]=\"passThrough().increment?.style\"\n [attr.aria-label]=\"translations().increment\"\n [disabled]=\"!canIncrement()\"\n (pointerdown)=\"startRepeat(1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (incrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"incrementIconName().className\"></span>\n }\n </button>\n</ng-template>\n<ng-template #decrement>\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"tx-input-number__button tx-input-number__decrement\"\n [class]=\"passThrough().decrement?.class\"\n [style]=\"passThrough().decrement?.style\"\n [attr.aria-label]=\"translations().decrement\"\n [disabled]=\"!canDecrement()\"\n (pointerdown)=\"startRepeat(-1, $event)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n >\n @if (decrementIconName().name; as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"decrementIconName().className\"></span>\n }\n </button>\n</ng-template>\n"],"mappings":";;;;;;;;;;;;;AAkBA,MAAM,eAAe;CAAC;CAAW;CAAS;CAAW;AAAU;AAE/D,IAAa,iBAAb,MAA2B;CAChB;CACA;CACA;CACA;CACA;CACD;CACA;CAER,YAAY,SAA8B;EACxC,MAAM,QACJ,QAAQ,SAAS,aACb;GAAE,OAAO;GAAY,UAAU,QAAQ,YAAY;GAAO,iBAAiB,QAAQ,mBAAmB;EAAQ,IAC9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A,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AA0L9E,SAAS,SAAS,OAAa;CAC7B,MAAM,OAAO,OAAO,KAAK;CACzB,OAAO,KAAK,SAAS,GAAG,IAAI,KAAK,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,SAAS;AAC1D"}
|
|
@@ -24,7 +24,7 @@ var TxInputStyles = class TxInputStyles {
|
|
|
24
24
|
ngImport: i0,
|
|
25
25
|
template: "",
|
|
26
26
|
isInline: true,
|
|
27
|
-
styles: [".tx-input[data-styled]{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)}.tx-input[data-styled]::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-input[data-styled][data-variant=filled]{background:var(--tx-form-field-filled-background)}.tx-input[data-styled]:enabled:not([readonly]):hover{border-color:var(--tx-form-field-hover-border-color)}.tx-input[data-styled]:enabled:not([readonly]):hover[data-variant=filled]{background:var(--tx-form-field-filled-hover-background)}.tx-input[data-styled]:enabled:not([readonly]):focus{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-input[data-styled]:enabled:not([readonly]):focus[data-variant=filled]{background:var(--tx-form-field-filled-focus-background)}.tx-input[data-styled][readonly]{background:var(--tx-form-field-readonly-background);cursor:default}.tx-input[data-styled].tx-input--invalid{border-color:var(--tx-form-field-invalid-border-color)}.tx-input[data-styled].tx-input--invalid::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}.tx-input[data-styled].tx-input--invalid:focus{border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}.tx-input[data-styled]:disabled{background:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}.tx-input[data-styled][data-size=small]{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)}.tx-input[data-styled][data-size=large]{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)}.tx-input[data-styled].tx-input--fluid{width:100%}.tx-icon-field>.tx-input[data-styled],.tx-input-group>.tx-input[data-styled],.tx-input-group>.tx-icon-field{flex:1 1 auto;width:auto;min-width:0}textarea.tx-input[data-styled]{min-height:80px;resize:vertical}\n"],
|
|
27
|
+
styles: [".tx-input[data-styled][type=search]{appearance:none}.tx-input[data-styled][type=search]::-webkit-search-cancel-button,.tx-input[data-styled][type=search]::-webkit-search-decoration{appearance:none;display:none}.tx-input[data-styled]{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)}.tx-input[data-styled]::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-input[data-styled][data-variant=filled]{background-color:var(--tx-form-field-filled-background)}.tx-input[data-styled]:enabled:not([readonly]):hover{border-color:var(--tx-form-field-hover-border-color)}.tx-input[data-styled]:enabled:not([readonly]):hover[data-variant=filled]{background-color:var(--tx-form-field-filled-hover-background)}.tx-input[data-styled]:enabled:not([readonly]):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-input[data-styled]:enabled:not([readonly]):focus[data-variant=filled]{background-color:var(--tx-form-field-filled-focus-background)}.tx-input[data-styled][readonly]{background-color:var(--tx-form-field-readonly-background);cursor:default}.tx-input[data-styled].tx-input--invalid{border-color:var(--tx-form-field-invalid-border-color)}.tx-input[data-styled].tx-input--invalid::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}.tx-input[data-styled].tx-input--invalid:focus{border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}.tx-input[data-styled]:disabled{background-color:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}.tx-input[data-styled][data-size=small]{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)}.tx-input[data-styled][data-size=large]{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)}.tx-input[data-styled].tx-input--fluid{width:100%}.tx-icon-field>.tx-input[data-styled],.tx-input-group>.tx-input[data-styled],.tx-input-group>.tx-icon-field{flex:1 1 auto;width:auto;min-width:0}textarea.tx-input[data-styled]{min-height:80px;resize:vertical}\n"],
|
|
28
28
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
29
29
|
encapsulation: i0.ViewEncapsulation.None
|
|
30
30
|
});
|
|
@@ -41,7 +41,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
41
41
|
template: "",
|
|
42
42
|
encapsulation: ViewEncapsulation.None,
|
|
43
43
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
44
|
-
styles: [".tx-input[data-styled]{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)}.tx-input[data-styled]::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-input[data-styled][data-variant=filled]{background:var(--tx-form-field-filled-background)}.tx-input[data-styled]:enabled:not([readonly]):hover{border-color:var(--tx-form-field-hover-border-color)}.tx-input[data-styled]:enabled:not([readonly]):hover[data-variant=filled]{background:var(--tx-form-field-filled-hover-background)}.tx-input[data-styled]:enabled:not([readonly]):focus{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-input[data-styled]:enabled:not([readonly]):focus[data-variant=filled]{background:var(--tx-form-field-filled-focus-background)}.tx-input[data-styled][readonly]{background:var(--tx-form-field-readonly-background);cursor:default}.tx-input[data-styled].tx-input--invalid{border-color:var(--tx-form-field-invalid-border-color)}.tx-input[data-styled].tx-input--invalid::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}.tx-input[data-styled].tx-input--invalid:focus{border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}.tx-input[data-styled]:disabled{background:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}.tx-input[data-styled][data-size=small]{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)}.tx-input[data-styled][data-size=large]{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)}.tx-input[data-styled].tx-input--fluid{width:100%}.tx-icon-field>.tx-input[data-styled],.tx-input-group>.tx-input[data-styled],.tx-input-group>.tx-icon-field{flex:1 1 auto;width:auto;min-width:0}textarea.tx-input[data-styled]{min-height:80px;resize:vertical}\n"]
|
|
44
|
+
styles: [".tx-input[data-styled][type=search]{appearance:none}.tx-input[data-styled][type=search]::-webkit-search-cancel-button,.tx-input[data-styled][type=search]::-webkit-search-decoration{appearance:none;display:none}.tx-input[data-styled]{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)}.tx-input[data-styled]::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-input[data-styled][data-variant=filled]{background-color:var(--tx-form-field-filled-background)}.tx-input[data-styled]:enabled:not([readonly]):hover{border-color:var(--tx-form-field-hover-border-color)}.tx-input[data-styled]:enabled:not([readonly]):hover[data-variant=filled]{background-color:var(--tx-form-field-filled-hover-background)}.tx-input[data-styled]:enabled:not([readonly]):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-input[data-styled]:enabled:not([readonly]):focus[data-variant=filled]{background-color:var(--tx-form-field-filled-focus-background)}.tx-input[data-styled][readonly]{background-color:var(--tx-form-field-readonly-background);cursor:default}.tx-input[data-styled].tx-input--invalid{border-color:var(--tx-form-field-invalid-border-color)}.tx-input[data-styled].tx-input--invalid::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}.tx-input[data-styled].tx-input--invalid:focus{border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}.tx-input[data-styled]:disabled{background-color:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}.tx-input[data-styled][data-size=small]{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)}.tx-input[data-styled][data-size=large]{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)}.tx-input[data-styled].tx-input--fluid{width:100%}.tx-icon-field>.tx-input[data-styled],.tx-input-group>.tx-input[data-styled],.tx-input-group>.tx-icon-field{flex:1 1 auto;width:auto;min-width:0}textarea.tx-input[data-styled]{min-height:80px;resize:vertical}\n"]
|
|
45
45
|
}]
|
|
46
46
|
}]
|
|
47
47
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-input.mjs","names":[],"sources":["../../../../packages/ui/input/src/input.styles.ts","../../../../packages/ui/input/src/input.directive.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'tx-input-styles',\n template: '',\n styleUrl: './input.styles.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TxInputStyles {}\n","import { Directive, computed, inject, input } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { injectFieldFilled, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { TxStyleLoader } from '@tectra-ng/core/styles';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraFormFieldTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxInputStyles } from './input.styles';\nimport { TxFieldVariant, TxInputPart, TxInputSize } from './input.types';\n\n@Directive({\n selector: 'input[txInput], textarea[txInput]',\n host: {\n class: 'tx-input',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-input--invalid]': 'isInvalid()',\n '[class.tx-input--fluid]': 'isFluid()',\n '[class.tx-input--filled]': 'isFilled()',\n '[attr.aria-invalid]': 'isInvalid() || null',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'variant()',\n },\n})\nexport class TxInput {\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly size = input<TxInputSize>('medium');\n readonly variant = input<TxFieldVariant>('outlined');\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly dt = input<TectraDeepPartial<TectraFormFieldTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxInputPart, TxInput> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly isFilled = injectFieldFilled();\n readonly isFluid = injectFluid(this.fluid);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('input', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-form-field'), ...this.passThrough().root?.style }));\n\n constructor() {\n inject(TxStyleLoader).load(TxInputStyles);\n }\n}\n"],"mappings":";;;;;;;;AASA,IAAa,gBAAb,MAAa,cAAa;CAAb,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAa,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAb,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAa,cAAA;EAAA,UAAA;EAAA,UAAA;EAAA,UALd;EAAE,UAAA;EAAA,QAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-input.mjs","names":[],"sources":["../../../../packages/ui/input/src/input.styles.ts","../../../../packages/ui/input/src/input.directive.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'tx-input-styles',\n template: '',\n styleUrl: './input.styles.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TxInputStyles {}\n","import { Directive, computed, inject, input } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { injectFieldFilled, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { TxStyleLoader } from '@tectra-ng/core/styles';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraFormFieldTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxInputStyles } from './input.styles';\nimport { TxFieldVariant, TxInputPart, TxInputSize } from './input.types';\n\n@Directive({\n selector: 'input[txInput], textarea[txInput]',\n host: {\n class: 'tx-input',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-input--invalid]': 'isInvalid()',\n '[class.tx-input--fluid]': 'isFluid()',\n '[class.tx-input--filled]': 'isFilled()',\n '[attr.aria-invalid]': 'isInvalid() || null',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'variant()',\n },\n})\nexport class TxInput {\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly size = input<TxInputSize>('medium');\n readonly variant = input<TxFieldVariant>('outlined');\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly dt = input<TectraDeepPartial<TectraFormFieldTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxInputPart, TxInput> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly isFilled = injectFieldFilled();\n readonly isFluid = injectFluid(this.fluid);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('input', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-form-field'), ...this.passThrough().root?.style }));\n\n constructor() {\n inject(TxStyleLoader).load(TxInputStyles);\n }\n}\n"],"mappings":";;;;;;;;AASA,IAAa,gBAAb,MAAa,cAAa;CAAb,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAa,MAAA,CAAA;EAAA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,UAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,MAAA;GAAA,YAAA;IAAA,SAAA;IAAA,SAAA;IAAA,oBAAA;IAAA,2BAAA;IAAA,yBAAA;IAAA,0BAAA;IAAA,qBAAA;IAAA,kBAAA;IAAA,qBAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;CAAA,CAAA;;AAAP,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAO,YAAA,CAAA;EAfnB,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,MAAM;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,6BAA6B;IAC7B,2BAA2B;IAC3B,4BAA4B;IAC5B,uBAAuB;IACvB,oBAAoB;IACpB,uBAAuB;GACxB;EACF,CAAA"}
|
|
@@ -271,7 +271,7 @@ var TxListbox = class TxListbox extends TxOptionsBase {
|
|
|
271
271
|
usesInheritance: true,
|
|
272
272
|
ngImport: i0,
|
|
273
273
|
template: "@if (headerTemplate(); as template) {\n <div class=\"tx-listbox__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-listbox__filter\" [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <span class=\"tx-select__filter-field\">\n <input\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-select__filter-input tx-listbox__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 [disabled]=\"disabled()\"\n (input)=\"onFilterInput($event)\"\n (keydown)=\"onListKeydown($event)\"\n (focus)=\"onFilterFocus()\"\n (blur)=\"onListBlur()\"\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]=\"shownActiveIndex()\"\n [multiple]=\"isMultiple()\"\n [checkbox]=\"checkbox()\"\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 [focusable]=\"true\"\n [disabled]=\"disabled()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [ariaInvalid]=\"isInvalid()\"\n (optionClick)=\"onOptionClick($event)\"\n (optionHover)=\"focused() && activeIndex.set($event)\"\n (rangeChange)=\"onRangeChange($event)\"\n (listKeydown)=\"onListKeydown($event)\"\n (listFocus)=\"onListFocus()\"\n (listBlur)=\"onListBlur()\"\n/>\n@if (footerTemplate(); as template) {\n <div class=\"tx-listbox__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n}\n",
|
|
274
|
-
styles: [":host{display:flex;flex-direction:column}:host(.tx-listbox--disabled){pointer-events:none}:host([data-styled]){overflow:hidden;border:1px solid var(--tx-listbox-border-color);border-radius:var(--tx-listbox-border-radius);background:var(--tx-listbox-background);box-shadow:var(--tx-listbox-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);transition:border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-listbox__header{padding:var(--tx-select-header-padding)}:host([data-styled]) .tx-listbox__footer{padding:var(--tx-select-footer-padding)}:host([data-styled]) .tx-listbox__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}:host([data-styled]) .tx-listbox__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))}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}:host([data-styled].tx-listbox--focused:has(.tx-select__list:focus-visible)){border-color:var(--tx-listbox-focus-border-color);box-shadow:var(--tx-listbox-focus-ring-shadow)}:host([data-styled].tx-listbox--invalid){border-color:var(--tx-listbox-invalid-border-color)}:host([data-styled].tx-listbox--disabled){background:var(--tx-listbox-disabled-background);color:var(--tx-listbox-disabled-color)}\n"],
|
|
274
|
+
styles: [":host{display:flex;flex-direction:column}:host(.tx-listbox--disabled){pointer-events:none}:host([data-styled]){overflow:hidden;border:1px solid var(--tx-listbox-border-color);border-radius:var(--tx-listbox-border-radius);background:var(--tx-listbox-background);box-shadow:var(--tx-listbox-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);transition:border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-listbox__header{padding:var(--tx-select-header-padding)}:host([data-styled]) .tx-listbox__footer{padding:var(--tx-select-footer-padding)}:host([data-styled]) .tx-listbox__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}:host([data-styled]) .tx-listbox__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))}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-listbox__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)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}:host([data-styled].tx-listbox--focused:has(.tx-select__list:focus-visible)){border-color:var(--tx-listbox-focus-border-color);box-shadow:var(--tx-listbox-focus-ring-shadow)}:host([data-styled].tx-listbox--invalid){border-color:var(--tx-listbox-invalid-border-color)}:host([data-styled].tx-listbox--disabled){background:var(--tx-listbox-disabled-background);color:var(--tx-listbox-disabled-color)}\n"],
|
|
275
275
|
dependencies: [
|
|
276
276
|
{
|
|
277
277
|
kind: "directive",
|
|
@@ -365,7 +365,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
365
365
|
"(mousedown)": "onPointer($event)"
|
|
366
366
|
},
|
|
367
367
|
template: "@if (headerTemplate(); as template) {\n <div class=\"tx-listbox__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-listbox__filter\" [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <span class=\"tx-select__filter-field\">\n <input\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-select__filter-input tx-listbox__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 [disabled]=\"disabled()\"\n (input)=\"onFilterInput($event)\"\n (keydown)=\"onListKeydown($event)\"\n (focus)=\"onFilterFocus()\"\n (blur)=\"onListBlur()\"\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]=\"shownActiveIndex()\"\n [multiple]=\"isMultiple()\"\n [checkbox]=\"checkbox()\"\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 [focusable]=\"true\"\n [disabled]=\"disabled()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [ariaInvalid]=\"isInvalid()\"\n (optionClick)=\"onOptionClick($event)\"\n (optionHover)=\"focused() && activeIndex.set($event)\"\n (rangeChange)=\"onRangeChange($event)\"\n (listKeydown)=\"onListKeydown($event)\"\n (listFocus)=\"onListFocus()\"\n (listBlur)=\"onListBlur()\"\n/>\n@if (footerTemplate(); as template) {\n <div class=\"tx-listbox__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n </div>\n}\n",
|
|
368
|
-
styles: [":host{display:flex;flex-direction:column}:host(.tx-listbox--disabled){pointer-events:none}:host([data-styled]){overflow:hidden;border:1px solid var(--tx-listbox-border-color);border-radius:var(--tx-listbox-border-radius);background:var(--tx-listbox-background);box-shadow:var(--tx-listbox-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);transition:border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-listbox__header{padding:var(--tx-select-header-padding)}:host([data-styled]) .tx-listbox__footer{padding:var(--tx-select-footer-padding)}:host([data-styled]) .tx-listbox__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}:host([data-styled]) .tx-listbox__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))}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}:host([data-styled].tx-listbox--focused:has(.tx-select__list:focus-visible)){border-color:var(--tx-listbox-focus-border-color);box-shadow:var(--tx-listbox-focus-ring-shadow)}:host([data-styled].tx-listbox--invalid){border-color:var(--tx-listbox-invalid-border-color)}:host([data-styled].tx-listbox--disabled){background:var(--tx-listbox-disabled-background);color:var(--tx-listbox-disabled-color)}\n"]
|
|
368
|
+
styles: [":host{display:flex;flex-direction:column}:host(.tx-listbox--disabled){pointer-events:none}:host([data-styled]){overflow:hidden;border:1px solid var(--tx-listbox-border-color);border-radius:var(--tx-listbox-border-radius);background:var(--tx-listbox-background);box-shadow:var(--tx-listbox-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);transition:border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-listbox__header{padding:var(--tx-select-header-padding)}:host([data-styled]) .tx-listbox__footer{padding:var(--tx-select-footer-padding)}:host([data-styled]) .tx-listbox__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}:host([data-styled]) .tx-listbox__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))}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-listbox__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)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-listbox__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}:host([data-styled].tx-listbox--focused:has(.tx-select__list:focus-visible)){border-color:var(--tx-listbox-focus-border-color);box-shadow:var(--tx-listbox-focus-ring-shadow)}:host([data-styled].tx-listbox--invalid){border-color:var(--tx-listbox-invalid-border-color)}:host([data-styled].tx-listbox--disabled){background:var(--tx-listbox-disabled-background);color:var(--tx-listbox-disabled-color)}\n"]
|
|
369
369
|
}]
|
|
370
370
|
}],
|
|
371
371
|
propDecorators: {
|