@tectra-ng/ui 0.1.2 → 0.1.4
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/README.md +36 -19
- package/accordion/README.md +61 -0
- package/analog-clock/README.md +31 -0
- package/breadcrumb/README.md +57 -0
- package/countdown/README.md +45 -0
- package/datepicker/README.md +109 -0
- package/export/README.md +79 -0
- package/export-font/OFL.txt +93 -0
- package/export-font/README.md +7 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs +980 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-analog-clock.mjs +386 -0
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -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-breadcrumb.mjs +382 -0
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -0
- 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-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-countdown.mjs +513 -0
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-datepicker.mjs +2640 -0
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-export-font.mjs +7 -0
- package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-export.mjs +2574 -0
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-field.mjs +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs +1452 -0
- package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input-group.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-label.mjs +4 -4
- package/fesm2022/tectra-ng-ui-label.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-menubar.mjs +742 -0
- package/fesm2022/tectra-ng-ui-menubar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-month-calendar.mjs +601 -0
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +610 -0
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs +319 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-sparkline.mjs +240 -0
- package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-splitter.mjs +750 -0
- package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs +661 -0
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs +1166 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-table.mjs +195 -71
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs +1218 -0
- package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-textarea.mjs +4 -1
- package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-timeline.mjs +407 -0
- package/fesm2022/tectra-ng-ui-timeline.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-toolbar.mjs +348 -0
- package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tree-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +80 -2
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/field/README.md +1 -1
- package/file-upload/README.md +85 -0
- package/menubar/README.md +51 -0
- package/month-calendar/README.md +46 -0
- package/package.json +80 -4
- package/panel-menu/README.md +45 -0
- package/scroll-panel/README.md +35 -0
- package/sparkline/README.md +27 -0
- package/splitter/README.md +62 -0
- package/stat-tiles/README.md +53 -0
- package/stepper/README.md +66 -0
- package/table/README.md +1 -1
- package/tabs/README.md +69 -0
- package/timeline/README.md +42 -0
- package/toolbar/README.md +35 -0
- package/types/tectra-ng-ui-accordion.d.ts +304 -0
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -0
- package/types/tectra-ng-ui-analog-clock.d.ts +127 -0
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts +157 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -0
- package/types/tectra-ng-ui-countdown.d.ts +150 -0
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -0
- package/types/tectra-ng-ui-datepicker.d.ts +801 -0
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -0
- package/types/tectra-ng-ui-export-font.d.ts +5 -0
- package/types/tectra-ng-ui-export-font.d.ts.map +1 -0
- package/types/tectra-ng-ui-export.d.ts +427 -0
- package/types/tectra-ng-ui-export.d.ts.map +1 -0
- package/types/tectra-ng-ui-file-upload.d.ts +527 -0
- package/types/tectra-ng-ui-file-upload.d.ts.map +1 -0
- package/types/tectra-ng-ui-menubar.d.ts +201 -0
- package/types/tectra-ng-ui-menubar.d.ts.map +1 -0
- package/types/tectra-ng-ui-month-calendar.d.ts +287 -0
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -0
- package/types/tectra-ng-ui-panel-menu.d.ts +244 -0
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts +94 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -0
- package/types/tectra-ng-ui-sparkline.d.ts +80 -0
- package/types/tectra-ng-ui-sparkline.d.ts.map +1 -0
- package/types/tectra-ng-ui-splitter.d.ts +226 -0
- package/types/tectra-ng-ui-splitter.d.ts.map +1 -0
- package/types/tectra-ng-ui-stat-tiles.d.ts +287 -0
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -0
- package/types/tectra-ng-ui-stepper.d.ts +446 -0
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -0
- package/types/tectra-ng-ui-table.d.ts +2 -4
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +420 -0
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -0
- package/types/tectra-ng-ui-textarea.d.ts +1 -0
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-timeline.d.ts +129 -0
- package/types/tectra-ng-ui-timeline.d.ts.map +1 -0
- package/types/tectra-ng-ui-toolbar.d.ts +85 -0
- package/types/tectra-ng-ui-toolbar.d.ts.map +1 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-file-upload.mjs","names":[],"sources":["../../../../packages/ui/file-upload/src/file-upload.templates.ts","../../../../packages/ui/file-upload/src/file-upload.utils.ts","../../../../packages/ui/file-upload/src/file-upload.component.ts","../../../../packages/ui/file-upload/src/file-upload.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxFileUploadDropzoneContext, TxFileUploadFileContext } from './file-upload.types';\n\n@Directive({ selector: 'ng-template[txFileUploadFile]' })\nexport class TxFileUploadFileTemplate {\n readonly template = inject<TemplateRef<TxFileUploadFileContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxFileUploadFileTemplate, context: unknown): context is TxFileUploadFileContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txFileUploadDropzone]' })\nexport class TxFileUploadDropzoneTemplate {\n readonly template = inject<TemplateRef<TxFileUploadDropzoneContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxFileUploadDropzoneTemplate, context: unknown): context is TxFileUploadDropzoneContext {\n return !!context;\n }\n}\n\n@Directive({ selector: '[txFileUploadActions]' })\nexport class TxFileUploadActions {}\n","import { TxFileKind } from './file-upload.types';\n\nconst KINDS: Record<Exclude<TxFileKind, 'image' | 'media' | 'other'>, readonly string[]> = {\n pdf: ['pdf'],\n sheet: ['csv', 'tsv', 'xls', 'xlsx', 'ods', 'numbers'],\n document: ['doc', 'docx', 'odt', 'rtf', 'txt', 'md', 'pages'],\n archive: ['zip', 'rar', '7z', 'tar', 'gz', 'tgz', 'bz2'],\n};\n\nexport const TX_FILE_SIZE_UNITS = ['byte', 'kilobyte', 'megabyte', 'gigabyte', 'terabyte'] as const;\n\nexport function fileExtension(file: Pick<File, 'name'>): string {\n const dot = file.name.lastIndexOf('.');\n return dot > 0 ? file.name.slice(dot + 1).toLowerCase() : '';\n}\n\nexport function fileKind(file: Pick<File, 'name' | 'type'>): TxFileKind {\n if (file.type.startsWith('image/')) {\n return 'image';\n }\n if (file.type.startsWith('video/') || file.type.startsWith('audio/')) {\n return 'media';\n }\n const extension = fileExtension(file);\n const match = (Object.keys(KINDS) as (keyof typeof KINDS)[]).find((kind) => KINDS[kind].includes(extension));\n return match ?? (file.type === 'application/pdf' ? 'pdf' : 'other');\n}\n\nexport function fileMatchesAccept(file: Pick<File, 'name' | 'type'>, accept: string | undefined): boolean {\n const rules = (accept ?? '')\n .split(',')\n .map((rule) => rule.trim().toLowerCase())\n .filter(Boolean);\n if (!rules.length) {\n return true;\n }\n const type = file.type.toLowerCase();\n const extension = `.${fileExtension(file)}`;\n return rules.some((rule) => {\n if (rule.startsWith('.')) {\n return rule === extension;\n }\n if (rule.endsWith('/*')) {\n return type.startsWith(rule.slice(0, -1));\n }\n return rule === type;\n });\n}\n\nexport function fileSizeParts(bytes: number): { value: number; unit: (typeof TX_FILE_SIZE_UNITS)[number] } {\n let value = Math.max(0, bytes);\n let index = 0;\n while (value >= 1024 && index < TX_FILE_SIZE_UNITS.length - 1) {\n value /= 1024;\n index++;\n }\n return { value, unit: TX_FILE_SIZE_UNITS[index] };\n}\n\nexport function sameFile(a: File, b: File): boolean {\n return a.name === b.name && a.size === b.size && a.type === b.type && a.lastModified === b.lastModified;\n}\n\nexport function acceptLabel(accept: string | undefined): string {\n const labels = (accept ?? '')\n .split(',')\n .map((rule) => rule.trim())\n .filter(Boolean)\n .map((rule) => {\n if (rule.startsWith('.')) {\n return rule.slice(1).toUpperCase();\n }\n const [type, subtype = ''] = rule.split('/');\n return subtype === '*' ? `${type}/*` : subtype.replace(/^x-/, '').split(/[.+-]/).pop()?.toUpperCase() ?? rule;\n });\n return [...new Set(labels)].join(', ');\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { HttpClient, HttpEvent, HttpEventType, HttpHeaders } from '@angular/common/http';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TxAnnouncer, uniqueId } from '@tectra-ng/core/a11y';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\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 } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraFileUploadTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxField } from '@tectra-ng/ui/field';\nimport { TxFileUploadActions, TxFileUploadDropzoneTemplate, TxFileUploadFileTemplate } from './file-upload.templates';\nimport {\n TxFileKind,\n TxFileRejection,\n TxFileUploadBeforeUploadEvent,\n TxFileUploadEntry,\n TxFileUploadErrorEvent,\n TxFileUploadEvent,\n TxFileUploadFileContext,\n TxFileUploadHandlerEvent,\n TxFileUploadMessage,\n TxFileUploadMethod,\n TxFileUploadMode,\n TxFileUploadPart,\n TxFileUploadProgressEvent,\n TxFileUploadRemoveEvent,\n TxFileUploadSelectEvent,\n TxFileUploadedRemoveEvent,\n} from './file-upload.types';\nimport { acceptLabel, fileExtension, fileKind, fileMatchesAccept, fileSizeParts, sameFile } from './file-upload.utils';\n\nconst KIND_ICONS: Record<TxFileKind, TxIconName> = {\n image: 'image',\n pdf: 'file',\n sheet: 'file',\n document: 'file',\n archive: 'file',\n media: 'video',\n other: 'file',\n};\n\ntype TxFileUploadValue = File | File[];\n\n@Component({\n selector: 'tx-file-upload',\n imports: [NgTemplateOutlet, TxIcon, TxButton],\n templateUrl: './file-upload.component.html',\n styleUrl: './file-upload.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxFileUpload), multi: true }],\n host: {\n class: 'tx-file-upload',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-mode]': 'mode()',\n '[class.tx-file-upload--disabled]': 'isDisabled()',\n '[class.tx-file-upload--invalid]': 'isInvalid()',\n '[class.tx-file-upload--dragging]': 'dragging()',\n '[class.tx-file-upload--filled]': 'rows().length > 0',\n },\n})\nexport class TxFileUpload extends TxFormControlBase<TxFileUploadValue> {\n private document = inject(DOCUMENT);\n private http = inject(HttpClient, { optional: true });\n private announcer = inject(TxAnnouncer);\n private localeService = inject(TxLocaleService);\n private field = inject(TxField, { optional: true });\n\n readonly mode = input<TxFileUploadMode>('advanced');\n readonly files = model<File[]>([]);\n readonly file = model<File | null>(null);\n readonly multiple = input(false, { transform: booleanAttribute });\n readonly accept = input<string | undefined>(undefined);\n readonly maxFileSize = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly fileLimit = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly disabledInput = input(false, { alias: 'disabled', transform: booleanAttribute });\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly auto = input(false, { transform: booleanAttribute });\n readonly url = input<string | undefined>(undefined);\n readonly name = input('files');\n readonly method = input<TxFileUploadMethod>('post');\n readonly headers = input<HttpHeaders | Record<string, string> | undefined>(undefined);\n readonly withCredentials = input(false, { transform: booleanAttribute });\n readonly customUpload = input(false, { transform: booleanAttribute });\n readonly description = input<string | undefined>(undefined);\n readonly chooseLabel = input<string | undefined>(undefined);\n readonly uploadLabel = input<string | undefined>(undefined);\n readonly cancelLabel = input<string | undefined>(undefined);\n readonly chooseIcon = input<TxIconName | (string & {})>('plus');\n readonly uploadIcon = input<TxIconName | (string & {})>('upload');\n readonly cancelIcon = input<TxIconName | (string & {})>('times');\n readonly showUploadButton = input(true, { transform: booleanAttribute });\n readonly showCancelButton = input(true, { transform: booleanAttribute });\n readonly showMessages = input(true, { transform: booleanAttribute });\n readonly invalidFileTypeMessage = input<string | undefined>(undefined);\n readonly invalidFileSizeMessage = input<string | undefined>(undefined);\n readonly invalidFileLimitMessage = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraFileUploadTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFileUploadPart, TxFileUpload> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly selected = output<TxFileUploadSelectEvent>();\n readonly removed = output<TxFileUploadRemoveEvent>();\n readonly cleared = output<void>();\n readonly rejected = output<TxFileRejection[]>();\n readonly beforeUpload = output<TxFileUploadBeforeUploadEvent>();\n readonly uploadProgress = output<TxFileUploadProgressEvent>();\n readonly uploaded = output<TxFileUploadEvent>();\n readonly uploadFailed = output<TxFileUploadErrorEvent>();\n readonly uploadHandler = output<TxFileUploadHandlerEvent>();\n readonly uploadedFileRemoved = output<TxFileUploadedRemoveEvent>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly passThrough = injectPassThrough('fileUpload', this, this.pt, this.ptOptions);\n protected readonly fileTemplate = contentChild(TxFileUploadFileTemplate);\n protected readonly dropzoneTemplate = contentChild(TxFileUploadDropzoneTemplate);\n protected readonly actions = contentChild(TxFileUploadActions);\n private readonly inputElement = viewChild<ElementRef<HTMLInputElement>>('input');\n\n protected readonly id = uniqueId('tx-file-upload');\n readonly entries = signal<TxFileUploadEntry[]>([]);\n readonly uploadedEntries = signal<TxFileUploadEntry[]>([]);\n protected readonly messages = signal<TxFileUploadMessage[]>([]);\n protected readonly dragging = signal(false);\n\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput());\n readonly uploading = computed(() => this.entries().some((entry) => entry.status === 'uploading'));\n protected readonly rows = computed(() => [...this.entries(), ...this.uploadedEntries()].sort((a, b) => (this.order.get(a.id) ?? 0) - (this.order.get(b.id) ?? 0)));\n protected readonly current = computed(() => this.entries()[0] ?? this.uploadedEntries().at(-1) ?? null);\n protected readonly hasTarget = computed(() => !!this.url() || this.customUpload());\n protected readonly waiting = computed(() => this.entries().filter((entry) => entry.status === 'pending' || entry.status === 'failed'));\n protected readonly limitReached = computed(() => {\n const limit = this.fileLimit();\n return this.multiple() && limit !== undefined && this.entries().length + this.uploadedEntries().length >= limit;\n });\n protected readonly showFooter = computed(\n () => this.mode() === 'advanced' && (!!this.actions() || (this.hasTarget() && !this.auto() && this.showUploadButton() && this.waiting().length > 0)),\n );\n protected readonly prompt = computed(() => {\n const t = this.translations();\n const [before, after = ''] = (this.multiple() ? t.fileUploadPrompt : t.fileUploadPromptSingle).split('{browse}');\n return { before, link: this.chooseLabel() ?? t.fileUploadBrowse, after };\n });\n protected readonly summary = computed(() => {\n const waiting = this.waiting();\n const size = this.formatSize(waiting.reduce((sum, entry) => sum + entry.file.size, 0));\n return this.translations().filesSummary.replace('{count}', String(waiting.length)).replace('{size}', size);\n });\n protected readonly basicLabel = computed(() => {\n const entries = this.rows();\n const t = this.translations();\n if (!entries.length) {\n return t.noFileChosen;\n }\n return entries.length === 1 ? entries[0].file.name : t.filesChosen.replace('{count}', String(entries.length));\n });\n protected readonly zoneLabelledBy = computed(() => {\n if (this.ariaLabel()) {\n return null;\n }\n const own = !this.multiple() && this.current() ? `${this.id}-prompt` : `${this.id}-content`;\n return [this.field?.label() ? this.field.labelId : null, own].filter(Boolean).join(' ');\n });\n protected readonly chooseText = computed(() => this.chooseLabel() ?? (this.multiple() ? this.translations().chooseFiles : this.translations().chooseFile));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-file-upload'), ...this.passThrough().root?.style }));\n\n protected readonly chooseFiles = (): void => this.choose();\n\n private readonly order = new Map<string, number>();\n private dragDepth = 0;\n private messageId = 0;\n private abort: (() => void) | null = null;\n\n constructor() {\n super();\n effect(() => {\n const files = this.files();\n untracked(() => this.adopt(files));\n });\n effect(() => {\n const file = this.file();\n untracked(() => {\n if (!this.multiple() && (this.files()[0] ?? null) !== file) {\n this.files.set(file ? [file] : []);\n }\n });\n });\n inject(DestroyRef).onDestroy(() => {\n this.abort?.();\n [...this.entries(), ...this.uploadedEntries()].forEach((entry) => this.revoke(entry));\n });\n }\n\n override writeValue(value: TxFileUploadValue | null): void {\n super.writeValue(value);\n const files = value === null || value === undefined ? [] : Array.isArray(value) ? value : [value];\n this.files.set(files);\n this.file.set(this.multiple() ? null : (files[0] ?? null));\n }\n\n choose(): void {\n if (!this.isDisabled()) {\n this.inputElement()?.nativeElement.click();\n }\n }\n\n upload(): void {\n const waiting = this.waiting();\n if (!waiting.length || this.uploading()) {\n return;\n }\n const ids = new Set(waiting.map((entry) => entry.id));\n this.patch(ids, { status: 'uploading', progress: 0, error: null });\n const files = waiting.map((entry) => entry.file);\n if (this.customUpload()) {\n this.uploadHandler.emit({\n files,\n progress: (value, file) => this.patch(this.idsOf(ids, file), { progress: this.clampProgress(value) }),\n complete: (file) => this.finish(this.idsOf(ids, file), null),\n fail: (message, file) => this.fail(this.idsOf(ids, file), message ?? this.translations().fileFailed, null),\n });\n return;\n }\n const url = this.url();\n if (url) {\n this.send(url, ids, files);\n }\n }\n\n clear(): void {\n this.abort?.();\n this.abort = null;\n this.entries().forEach((entry) => this.revoke(entry));\n this.entries.set([]);\n this.messages.set([]);\n this.commit();\n this.cleared.emit();\n }\n\n protected onInputChange(event: Event): void {\n const input = event.target as HTMLInputElement;\n this.add(Array.from(input.files ?? []), event);\n input.value = '';\n this.markTouched();\n }\n\n protected onZoneClick(event: MouseEvent): void {\n if (!this.fromSelectedCard(event)) {\n this.choose();\n }\n }\n\n protected onZoneKeydown(event: KeyboardEvent): void {\n if (event.target !== event.currentTarget || this.fromSelectedCard(event)) {\n return;\n }\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.choose();\n }\n }\n\n protected onDragEnter(event: DragEvent): void {\n if (!this.acceptsDrag(event)) {\n return;\n }\n event.preventDefault();\n this.dragDepth++;\n this.dragging.set(true);\n }\n\n protected onDragOver(event: DragEvent): void {\n if (!this.acceptsDrag(event)) {\n return;\n }\n event.preventDefault();\n if (event.dataTransfer) {\n event.dataTransfer.dropEffect = 'copy';\n }\n }\n\n protected onDragLeave(event: DragEvent): void {\n if (!this.dragging()) {\n return;\n }\n event.preventDefault();\n this.dragDepth = Math.max(0, this.dragDepth - 1);\n if (this.dragDepth === 0) {\n this.dragging.set(false);\n }\n }\n\n protected onDrop(event: DragEvent): void {\n this.dragDepth = 0;\n this.dragging.set(false);\n if (this.isDisabled()) {\n return;\n }\n event.preventDefault();\n const files = Array.from(event.dataTransfer?.files ?? []);\n if (files.length) {\n this.add(files, event);\n this.markTouched();\n }\n }\n\n protected remove(event: Event, entry: TxFileUploadEntry): void {\n this.revoke(entry);\n if (this.uploadedEntries().includes(entry)) {\n this.uploadedEntries.update((entries) => entries.filter((item) => item !== entry));\n this.uploadedFileRemoved.emit({ file: entry.file, files: this.uploadedEntries().map((item) => item.file) });\n return;\n }\n this.entries.update((entries) => entries.filter((item) => item !== entry));\n this.messages.update((messages) => messages.filter((message) => !this.isLimitMessage(message)));\n this.commit();\n this.removed.emit({ originalEvent: event, file: entry.file });\n }\n\n protected retry(entry: TxFileUploadEntry): void {\n this.patch(new Set([entry.id]), { status: 'pending', progress: 0, error: null });\n this.upload();\n }\n\n protected dismiss(message: TxFileUploadMessage): void {\n this.messages.update((messages) => messages.filter((item) => item !== message));\n }\n\n protected fileContext(entry: TxFileUploadEntry, index: number): TxFileUploadFileContext {\n return { $implicit: entry, index, remove: (event: Event) => this.remove(event, entry) };\n }\n\n protected kindIcon(kind: TxFileKind): TxIconName {\n return KIND_ICONS[kind];\n }\n\n protected meta(entry: TxFileUploadEntry): string {\n const t = this.translations();\n const size = this.formatSize(entry.file.size);\n switch (entry.status) {\n case 'uploading':\n return `${size} · ${t.fileUploading.replace('{progress}', String(Math.round(entry.progress)))}`;\n case 'uploaded':\n return `${size} · ${t.fileUploaded}`;\n case 'failed':\n return `${size} · ${entry.error ?? t.fileFailed}`;\n default:\n return this.hasTarget() && !this.auto() ? `${size} · ${t.fileReady}` : size;\n }\n }\n\n protected removeLabel(entry: TxFileUploadEntry): string {\n return this.translations().removeItem.replace('{item}', entry.file.name);\n }\n\n formatSize(bytes: number): string {\n const { value, unit } = fileSizeParts(bytes);\n return this.localeService.formatNumber(value, { style: 'unit', unit, unitDisplay: 'short', maximumFractionDigits: unit === 'byte' ? 0 : 1 });\n }\n\n private add(files: File[], event: Event): void {\n if (this.isDisabled() || !files.length) {\n return;\n }\n const multiple = this.multiple();\n const candidates = multiple ? files : files.slice(0, 1);\n const kept = multiple ? this.entries() : [];\n const limit = this.fileLimit();\n const room = multiple && limit !== undefined ? Math.max(0, limit - kept.length - this.uploadedEntries().length) : Infinity;\n const accepted: File[] = [];\n const rejections: TxFileRejection[] = [];\n for (const file of candidates) {\n if ([...kept.map((entry) => entry.file), ...accepted].some((other) => sameFile(other, file))) {\n continue;\n }\n const reason = this.validate(file);\n if (reason) {\n rejections.push({ file, reason, message: this.rejectionText(reason, file) });\n } else if (accepted.length >= room) {\n rejections.push({ file, reason: 'limit', message: this.rejectionText('limit', file) });\n } else {\n accepted.push(file);\n }\n }\n const limitMessages = rejections.filter((rejection) => rejection.reason === 'limit').slice(0, 1);\n const shown = [...rejections.filter((rejection) => rejection.reason !== 'limit'), ...limitMessages];\n this.messages.set(this.showMessages() ? shown.map((rejection) => ({ id: ++this.messageId, text: rejection.message })) : []);\n if (rejections.length) {\n this.rejected.emit(rejections);\n this.announcer.announce(shown.map((rejection) => rejection.message).join('. '), 'assertive');\n }\n if (!accepted.length) {\n return;\n }\n if (!multiple) {\n this.entries().forEach((entry) => this.revoke(entry));\n }\n this.entries.set([...kept, ...accepted.map((file) => this.toEntry(file))]);\n this.commit();\n this.selected.emit({ originalEvent: event, files: accepted, currentFiles: this.files() });\n this.announcer.announce(this.translations().filesAdded.replace('{names}', accepted.map((file) => file.name).join(', ')));\n if (this.auto() && this.hasTarget()) {\n this.upload();\n }\n }\n\n private validate(file: File): 'type' | 'size' | null {\n if (!fileMatchesAccept(file, this.accept())) {\n return 'type';\n }\n const max = this.maxFileSize();\n return max !== undefined && max > 0 && file.size > max ? 'size' : null;\n }\n\n private rejectionText(reason: 'type' | 'size' | 'limit', file: File): string {\n const t = this.translations();\n const template = {\n type: this.invalidFileTypeMessage() ?? t.invalidFileType,\n size: this.invalidFileSizeMessage() ?? t.invalidFileSize,\n limit: this.invalidFileLimitMessage() ?? t.invalidFileLimit,\n }[reason];\n return template\n .replace('{name}', file.name)\n .replace('{types}', acceptLabel(this.accept()))\n .replace('{size}', this.formatSize(this.maxFileSize() ?? 0))\n .replace('{limit}', String(this.fileLimit() ?? ''));\n }\n\n private isLimitMessage(message: TxFileUploadMessage): boolean {\n const limit = String(this.fileLimit() ?? '');\n return message.text === (this.invalidFileLimitMessage() ?? this.translations().invalidFileLimit).replace('{limit}', limit);\n }\n\n private adopt(files: File[]): void {\n const entries = this.entries();\n if (files.length === entries.length && files.every((file, index) => file === entries[index].file)) {\n return;\n }\n const next = files.map((file) => entries.find((entry) => entry.file === file) ?? this.toEntry(file));\n entries.filter((entry) => !next.includes(entry)).forEach((entry) => this.revoke(entry));\n this.entries.set(next);\n }\n\n private commit(): void {\n const files = this.entries().map((entry) => entry.file);\n this.files.set(files);\n const single = files[0] ?? null;\n if (!this.multiple()) {\n this.file.set(single);\n }\n this.updateValue(this.multiple() ? files : single);\n }\n\n private toEntry(file: File): TxFileUploadEntry {\n const kind = fileKind(file);\n const view = this.document.defaultView as (Window & typeof globalThis) | null;\n const preview = kind === 'image' && view?.URL?.createObjectURL ? view.URL.createObjectURL(file) : null;\n const id = uniqueId('tx-file');\n this.order.set(id, this.order.size);\n return { id, file, kind, extension: fileExtension(file), preview, status: 'pending', progress: 0, error: null };\n }\n\n private revoke(entry: TxFileUploadEntry): void {\n this.order.delete(entry.id);\n if (entry.preview) {\n (this.document.defaultView as (Window & typeof globalThis) | null)?.URL?.revokeObjectURL?.(entry.preview);\n }\n }\n\n private patch(ids: ReadonlySet<string>, changes: Partial<TxFileUploadEntry>): void {\n this.entries.update((entries) => entries.map((entry) => (ids.has(entry.id) ? { ...entry, ...changes } : entry)));\n if (changes.progress !== undefined && changes.status === undefined) {\n this.uploadProgress.emit({ progress: changes.progress });\n }\n }\n\n private idsOf(ids: ReadonlySet<string>, file: File | undefined): ReadonlySet<string> {\n if (!file) {\n return ids;\n }\n const entry = this.entries().find((item) => item.file === file && ids.has(item.id));\n return new Set(entry ? [entry.id] : []);\n }\n\n private finish(ids: ReadonlySet<string>, originalEvent: unknown): void {\n const done = this.entries().filter((entry) => ids.has(entry.id) && entry.status === 'uploading');\n if (!done.length) {\n return;\n }\n this.entries.update((entries) => entries.filter((entry) => !done.includes(entry)));\n this.uploadedEntries.update((entries) => [...entries, ...done.map((entry) => ({ ...entry, status: 'uploaded' as const, progress: 100 }))]);\n this.commit();\n const files = done.map((entry) => entry.file);\n this.uploaded.emit({ originalEvent, files });\n this.announcer.announce(this.translations().filesUploaded);\n }\n\n private fail(ids: ReadonlySet<string>, message: string, error: unknown): void {\n const failed = this.entries().filter((entry) => ids.has(entry.id) && entry.status === 'uploading');\n if (!failed.length) {\n return;\n }\n this.patch(new Set(failed.map((entry) => entry.id)), { status: 'failed', error: message });\n this.uploadFailed.emit({ files: failed.map((entry) => entry.file), error });\n this.announcer.announce(message, 'assertive');\n }\n\n private send(url: string, ids: ReadonlySet<string>, files: File[]): void {\n const formData = new FormData();\n this.beforeUpload.emit({ formData });\n files.forEach((file) => formData.append(this.name(), file, file.name));\n const failText = this.translations().fileFailed;\n if (this.http) {\n const headers = this.headers();\n const subscription = this.http\n .request(this.method().toUpperCase(), url, {\n body: formData,\n headers: headers instanceof HttpHeaders ? headers : new HttpHeaders(headers ?? {}),\n reportProgress: true,\n observe: 'events',\n withCredentials: this.withCredentials(),\n })\n .subscribe({\n next: (event: HttpEvent<unknown>) => {\n if (event.type === HttpEventType.UploadProgress && event.total) {\n this.patch(ids, { progress: this.clampProgress((event.loaded * 100) / event.total) });\n } else if (event.type === HttpEventType.Response) {\n this.abort = null;\n if (event.ok) {\n this.finish(ids, event);\n } else {\n this.fail(ids, failText, event);\n }\n }\n },\n error: (error: unknown) => {\n this.abort = null;\n this.fail(ids, failText, error);\n },\n });\n this.abort = () => subscription.unsubscribe();\n return;\n }\n const request = new XMLHttpRequest();\n request.open(this.method().toUpperCase(), url);\n request.withCredentials = this.withCredentials();\n const headers = this.headers();\n if (headers instanceof HttpHeaders) {\n headers.keys().forEach((key) => request.setRequestHeader(key, headers.get(key) ?? ''));\n } else {\n Object.entries(headers ?? {}).forEach(([key, value]) => request.setRequestHeader(key, value));\n }\n request.upload.onprogress = (event) => {\n if (event.lengthComputable) {\n this.patch(ids, { progress: this.clampProgress((event.loaded * 100) / event.total) });\n }\n };\n request.onload = () => {\n this.abort = null;\n if (request.status >= 200 && request.status < 300) {\n this.finish(ids, request);\n } else {\n this.fail(ids, failText, request);\n }\n };\n request.onerror = () => {\n this.abort = null;\n this.fail(ids, failText, request);\n };\n request.send(formData);\n this.abort = () => request.abort();\n }\n\n private clampProgress(value: number): number {\n return Math.round(Math.min(100, Math.max(0, value)));\n }\n\n private fromSelectedCard(event: Event): boolean {\n const target = event.target as Element | null;\n return (!this.multiple() && this.current() !== null) || !!target?.closest?.('.tx-file-upload__selected');\n }\n\n private acceptsDrag(event: DragEvent): boolean {\n return !this.isDisabled() && !!event.dataTransfer && Array.from(event.dataTransfer.types).includes('Files');\n }\n}\n","<input\n #input\n type=\"file\"\n class=\"tx-file-upload__input\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [accept]=\"accept() ?? ''\"\n [multiple]=\"multiple()\"\n [disabled]=\"isDisabled()\"\n (change)=\"onInputChange($event)\"\n/>\n\n<ng-template #thumbnail let-entry let-large=\"large\">\n <span\n class=\"tx-file-upload__thumbnail\"\n aria-hidden=\"true\"\n [attr.data-kind]=\"entry.kind\"\n [attr.data-size]=\"large ? 'large' : null\"\n [class]=\"passThrough().thumbnail?.class\"\n [style]=\"passThrough().thumbnail?.style\"\n >\n @if (entry.preview) {\n <img class=\"tx-file-upload__preview\" alt=\"\" [src]=\"entry.preview\" />\n } @else {\n <tx-icon class=\"tx-file-upload__kind\" [name]=\"kindIcon(entry.kind)\" />\n @if (entry.extension) {\n <span class=\"tx-file-upload__extension\">{{ entry.extension }}</span>\n }\n }\n </span>\n</ng-template>\n\n<ng-template #progress let-entry>\n <span\n class=\"tx-file-upload__progress\"\n role=\"progressbar\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"entry.progress\"\n [attr.aria-label]=\"entry.file.name\"\n [class]=\"passThrough().progress?.class\"\n [style]=\"passThrough().progress?.style\"\n >\n <span class=\"tx-file-upload__progress-value\" [style.width.%]=\"entry.progress\"></span>\n </span>\n</ng-template>\n\n<ng-template #messageList>\n @if (messages().length) {\n <div class=\"tx-file-upload__messages\">\n @for (message of messages(); track message.id) {\n <div\n class=\"tx-file-upload__message\"\n animate.enter=\"tx-file-upload--enter\"\n animate.leave=\"tx-file-upload--leave\"\n [class]=\"passThrough().message?.class\"\n [style]=\"passThrough().message?.style\"\n >\n <tx-icon class=\"tx-file-upload__message-icon\" name=\"exclamation-circle\" />\n <span class=\"tx-file-upload__message-text\">{{ message.text }}</span>\n <button type=\"button\" class=\"tx-file-upload__dismiss\" [attr.aria-label]=\"translations().close\" (click)=\"dismiss(message)\">\n <tx-icon name=\"times\" />\n </button>\n </div>\n }\n </div>\n }\n</ng-template>\n\n@if (mode() === 'basic') {\n <div class=\"tx-file-upload__basic\" [class]=\"passThrough().basic?.class\" [style]=\"passThrough().basic?.style\">\n <button\n txButton\n type=\"button\"\n severity=\"secondary\"\n outlined\n [icon]=\"chooseIcon()\"\n [disabled]=\"isDisabled() || uploading()\"\n [attr.aria-describedby]=\"id + '-label'\"\n (click)=\"choose()\"\n >\n {{ chooseText() }}\n </button>\n @if (hasTarget() && !auto() && showUploadButton() && waiting().length) {\n <button txButton type=\"button\" [icon]=\"uploadIcon()\" [loading]=\"uploading()\" (click)=\"upload()\">\n {{ uploadLabel() ?? translations().upload }}\n </button>\n }\n <span class=\"tx-file-upload__basic-label\" [id]=\"id + '-label'\">\n {{ basicLabel() }}\n @if (rows().length === 1 && rows()[0].status !== 'pending') {\n · {{ meta(rows()[0]) }}\n }\n </span>\n </div>\n <ng-container [ngTemplateOutlet]=\"messageList\" />\n} @else {\n <div\n class=\"tx-file-upload__zone\"\n data-tx-field-control\n [attr.data-state]=\"!multiple() && current() ? 'selected' : 'empty'\"\n [attr.role]=\"!multiple() && current() ? 'group' : 'button'\"\n [attr.tabindex]=\"!multiple() && current() ? null : isDisabled() || limitReached() ? -1 : 0\"\n [attr.aria-disabled]=\"!multiple() && current() ? null : isDisabled() || limitReached() || null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"zoneLabelledBy()\"\n [attr.aria-describedby]=\"!multiple() && current() && description() ? id + '-hint' : null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [class]=\"passThrough().dropzone?.class\"\n [style]=\"passThrough().dropzone?.style\"\n (click)=\"onZoneClick($event)\"\n (keydown)=\"onZoneKeydown($event)\"\n (blur)=\"markTouched()\"\n (dragenter)=\"onDragEnter($event)\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (drop)=\"onDrop($event)\"\n >\n <svg class=\"tx-file-upload__outline\" aria-hidden=\"true\" focusable=\"false\"><rect class=\"tx-file-upload__outline-rect\" /></svg>\n @if (!multiple() && current(); as entry) {\n <div class=\"tx-file-upload__selected\" animate.enter=\"tx-file-upload--enter\">\n @if (fileTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.template\" [ngTemplateOutletContext]=\"fileContext(entry, 0)\" />\n } @else {\n <ng-container [ngTemplateOutlet]=\"thumbnail\" [ngTemplateOutletContext]=\"{ $implicit: entry, large: true }\" />\n <span class=\"tx-file-upload__selected-info\">\n <span\n class=\"tx-file-upload__name\"\n [id]=\"id + '-prompt'\"\n [title]=\"entry.file.name\"\n [class]=\"passThrough().fileName?.class\"\n [style]=\"passThrough().fileName?.style\"\n >{{ entry.file.name }}</span\n >\n <span\n class=\"tx-file-upload__meta\"\n [attr.data-status]=\"entry.status\"\n [class]=\"passThrough().fileMeta?.class\"\n [style]=\"passThrough().fileMeta?.style\"\n >\n @if (entry.status === 'uploaded') {\n <tx-icon class=\"tx-file-upload__status-icon\" name=\"check-circle\" />\n }\n {{ meta(entry) }}\n </span>\n </span>\n @if (entry.status === 'uploading') {\n <ng-container [ngTemplateOutlet]=\"progress\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n <span class=\"tx-file-upload__selected-actions\">\n @if (entry.status === 'failed') {\n <button txButton type=\"button\" size=\"small\" text severity=\"secondary\" icon=\"refresh\" (click)=\"retry(entry)\">{{ translations().retry }}</button>\n }\n @if (hasTarget() && !auto() && showUploadButton() && entry.status === 'pending') {\n <button txButton type=\"button\" size=\"small\" [icon]=\"uploadIcon()\" (click)=\"upload()\">{{ uploadLabel() ?? translations().upload }}</button>\n }\n <button\n txButton\n type=\"button\"\n size=\"small\"\n text\n severity=\"secondary\"\n icon=\"sync\"\n [disabled]=\"isDisabled() || entry.status === 'uploading'\"\n (click)=\"choose()\"\n >\n {{ translations().replace }}\n </button>\n <button\n txButton\n type=\"button\"\n size=\"small\"\n text\n severity=\"danger\"\n icon=\"trash\"\n [attr.aria-label]=\"removeLabel(entry)\"\n [disabled]=\"isDisabled() || entry.status === 'uploading'\"\n (click)=\"remove($event, entry)\"\n >\n {{ translations().remove }}\n </button>\n </span>\n }\n </div>\n } @else {\n <span class=\"tx-file-upload__content\" [id]=\"id + '-content'\">\n @if (dropzoneTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.template\" [ngTemplateOutletContext]=\"{ $implicit: dragging(), choose: chooseFiles }\" />\n } @else {\n <span class=\"tx-file-upload__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon class=\"tx-file-upload__glyph\" [name]=\"dragging() ? 'arrow-down' : 'cloud-upload'\" />\n </span>\n <span class=\"tx-file-upload__prompt\" [class]=\"passThrough().prompt?.class\" [style]=\"passThrough().prompt?.style\">\n @if (dragging()) {\n {{ translations().fileUploadRelease }}\n } @else {\n {{ prompt().before }}<span class=\"tx-file-upload__link\">{{ prompt().link }}</span>{{ prompt().after }}\n }\n </span>\n @if (description()) {\n <span class=\"tx-file-upload__hint\" [id]=\"id + '-hint'\" [class]=\"passThrough().hint?.class\" [style]=\"passThrough().hint?.style\">{{ description() }}</span>\n }\n }\n </span>\n }\n </div>\n\n @if (!multiple() && current() && description()) {\n <span class=\"tx-file-upload__hint tx-file-upload__hint--below\" [id]=\"id + '-hint'\">{{ description() }}</span>\n }\n\n <ng-container [ngTemplateOutlet]=\"messageList\" />\n\n @if (multiple() && rows().length) {\n <ul class=\"tx-file-upload__list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (entry of rows(); track entry.id; let index = $index) {\n <li\n class=\"tx-file-upload__file\"\n animate.enter=\"tx-file-upload--enter\"\n animate.leave=\"tx-file-upload--leave\"\n [attr.data-status]=\"entry.status\"\n [class]=\"passThrough().file?.class\"\n [style]=\"passThrough().file?.style\"\n >\n @if (fileTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.template\" [ngTemplateOutletContext]=\"fileContext(entry, index)\" />\n } @else {\n <ng-container [ngTemplateOutlet]=\"thumbnail\" [ngTemplateOutletContext]=\"{ $implicit: entry, large: false }\" />\n <span class=\"tx-file-upload__info\">\n <span class=\"tx-file-upload__name\" [title]=\"entry.file.name\" [class]=\"passThrough().fileName?.class\" [style]=\"passThrough().fileName?.style\">{{ entry.file.name }}</span>\n <span class=\"tx-file-upload__meta\" [attr.data-status]=\"entry.status\" [class]=\"passThrough().fileMeta?.class\" [style]=\"passThrough().fileMeta?.style\">\n @if (entry.status === 'uploaded') {\n <tx-icon class=\"tx-file-upload__status-icon\" name=\"check-circle\" />\n }\n {{ meta(entry) }}\n </span>\n @if (entry.status === 'uploading') {\n <ng-container [ngTemplateOutlet]=\"progress\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </span>\n @if (entry.status === 'failed') {\n <button\n txButton\n type=\"button\"\n size=\"small\"\n text\n rounded\n severity=\"secondary\"\n icon=\"refresh\"\n iconOnly\n [attr.aria-label]=\"translations().retry + ' ' + entry.file.name\"\n (click)=\"retry(entry)\"\n ></button>\n }\n <button\n txButton\n type=\"button\"\n size=\"small\"\n text\n rounded\n severity=\"secondary\"\n [icon]=\"cancelIcon()\"\n iconOnly\n class=\"tx-file-upload__remove\"\n [attr.aria-label]=\"removeLabel(entry)\"\n [disabled]=\"isDisabled() || entry.status === 'uploading'\"\n (click)=\"remove($event, entry)\"\n ></button>\n }\n </li>\n }\n </ul>\n }\n\n @if (showFooter()) {\n <div class=\"tx-file-upload__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-content select=\"[txFileUploadActions]\" />\n @if (hasTarget() && !auto() && showUploadButton() && waiting().length) {\n <span class=\"tx-file-upload__summary\">{{ summary() }}</span>\n <span class=\"tx-file-upload__footer-buttons\">\n @if (showCancelButton()) {\n <button txButton type=\"button\" size=\"small\" text severity=\"secondary\" [icon]=\"cancelIcon()\" (click)=\"clear()\">\n {{ cancelLabel() ?? translations().clear }}\n </button>\n }\n <button txButton type=\"button\" size=\"small\" [icon]=\"uploadIcon()\" [loading]=\"uploading()\" (click)=\"upload()\">\n {{ uploadLabel() ?? translations().upload }}\n </button>\n </span>\n }\n </div>\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAIA,IAAa,2B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AAA,CAAA;CAAA;AAAA,CAAA"}
|
|
@@ -37,7 +37,7 @@ var TxInputGroup = class TxInputGroup {
|
|
|
37
37
|
ngImport: i0,
|
|
38
38
|
template: "<ng-content />",
|
|
39
39
|
isInline: true,
|
|
40
|
-
styles: [":host{display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-input-group--fluid){display:flex;width:100%}:host ::ng-deep>*:not(:first-child){margin-left:-1px}:host ::ng-deep
|
|
40
|
+
styles: [":host{display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-input-group--fluid){display:flex;width:100%}:host ::ng-deep>*:not(:first-child){--tx-field-radius-start: 0;margin-left:-1px}:host ::ng-deep>*:not(:last-child){--tx-field-radius-end: 0}:host ::ng-deep>:is(.tx-input-group-addon,.tx-button):not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}:host ::ng-deep>:is(.tx-input-group-addon,.tx-button):not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}:host ::ng-deep>:is(tx-select,tx-multiselect,tx-autocomplete,tx-tree-select,tx-cascade-select){flex:1 1 auto;width:auto;min-width:0}:host ::ng-deep>:is(.tx-input,.tx-button,tx-icon-field,tx-select,tx-multiselect,tx-autocomplete,tx-tree-select,tx-cascade-select):is(:hover,:focus-within,:focus){position:relative;z-index:1}\n"],
|
|
41
41
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
42
42
|
});
|
|
43
43
|
};
|
|
@@ -57,7 +57,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
57
57
|
role: "group",
|
|
58
58
|
"[class.tx-input-group--fluid]": "isFluid()"
|
|
59
59
|
},
|
|
60
|
-
styles: [":host{display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-input-group--fluid){display:flex;width:100%}:host ::ng-deep>*:not(:first-child){margin-left:-1px}:host ::ng-deep
|
|
60
|
+
styles: [":host{display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-input-group--fluid){display:flex;width:100%}:host ::ng-deep>*:not(:first-child){--tx-field-radius-start: 0;margin-left:-1px}:host ::ng-deep>*:not(:last-child){--tx-field-radius-end: 0}:host ::ng-deep>:is(.tx-input-group-addon,.tx-button):not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}:host ::ng-deep>:is(.tx-input-group-addon,.tx-button):not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}:host ::ng-deep>:is(tx-select,tx-multiselect,tx-autocomplete,tx-tree-select,tx-cascade-select){flex:1 1 auto;width:auto;min-width:0}:host ::ng-deep>:is(.tx-input,.tx-button,tx-icon-field,tx-select,tx-multiselect,tx-autocomplete,tx-tree-select,tx-cascade-select):is(:hover,:focus-within,:focus){position:relative;z-index:1}\n"]
|
|
61
61
|
}]
|
|
62
62
|
}],
|
|
63
63
|
propDecorators: { fluid: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-input-group.mjs","names":[],"sources":["../../../../packages/ui/input-group/src/input-group.component.ts","../../../../packages/ui/input-group/src/input-group-addon.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\n\n@Component({\n selector: 'tx-input-group',\n template: '<ng-content />',\n styleUrl: './input-group.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-group', role: 'group', '[class.tx-input-group--fluid]': 'isFluid()' },\n})\nexport class TxInputGroup {\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly isFluid = injectFluid(this.fluid);\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'tx-input-group-addon',\n template: '<ng-content />',\n styleUrl: './input-group-addon.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-group-addon' },\n})\nexport class TxInputGroupAddon {}\n"],"mappings":";;;;AAWA,IAAa,eAAb,MAAa,aAAY;CACd,QAAQ,MAAoC,QAAS;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CACnF,UAAU,YAAY,KAAK,KAAK;CAF9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAY,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAZ,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAY,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,OAAA;GAAA,mBAAA;GAAA,YAAA;GAAA,UAAA;GAAA,YAAA;GAAA,mBAAA;EAAA,EAAA;EAAA,MAAA;GAAA,YAAA,EAAA,QAAA,QAAA;GAAA,YAAA,EAAA,+BAAA,YAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UALb;EAAgB,UAAA;EAAA,QAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-input-group.mjs","names":[],"sources":["../../../../packages/ui/input-group/src/input-group.component.ts","../../../../packages/ui/input-group/src/input-group-addon.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\n\n@Component({\n selector: 'tx-input-group',\n template: '<ng-content />',\n styleUrl: './input-group.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-group', role: 'group', '[class.tx-input-group--fluid]': 'isFluid()' },\n})\nexport class TxInputGroup {\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly isFluid = injectFluid(this.fluid);\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'tx-input-group-addon',\n template: '<ng-content />',\n styleUrl: './input-group-addon.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-group-addon' },\n})\nex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cAAA;EAAA,UAAA;EAAA,MAAA,EAAA,gBAAA,uBAAA;EAAA,UAAA;EAAA,UALlB;EAAgB,UAAA;EAAA,QAAA,CAAA,4lBAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAKf,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAP7B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAsB,UACtB;GAAgB,iBAET,wBAAwB;GAAM,MACzC,EAAE,OAAO,uBAAsB;GAAE,QAAA,CAAA,4lBAAA;EAAA,CAAA"}
|
|
@@ -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][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"],
|
|
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-start-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-end-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-start-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));border-end-end-radius:var(--tx-field-radius-end, 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][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"]
|
|
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-start-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-end-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-start-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));border-end-end-radius:var(--tx-field-radius-end, 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,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,q/HAAA;EAAA,iBAAA,GAAA,wBAAA;EAAA,eAAA,GAAA,kBAAA;CAAA,CAAA;;AAKD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAa,YAAA,CAAA;EAPzB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAiB,UACjB;GAAE,eAEG,kBAAkB;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IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,6BAA6B;IAC7B,2BAA2B;IAC3B,4BAA4B;IAC5B,uBAAuB;IACvB,oBAAoB;IACpB,uBAAuB;GACxB;EACF,CAAA"}
|
|
@@ -196,7 +196,7 @@ var TxFloatLabel = class TxFloatLabel {
|
|
|
196
196
|
ngImport: i0,
|
|
197
197
|
template: "<ng-content />",
|
|
198
198
|
isInline: true,
|
|
199
|
-
styles: [":host{position:relative;display:flex;flex-direction:column;align-items:flex-start;align-self:start}:host([data-variant=in]){--tx-field-padding-top: var(--tx-float-label-in-input-padding-top);--tx-field-padding-bottom: var(--tx-float-label-in-input-padding-bottom)}:host ::ng-deep>label{position:absolute;top:50%;left:var(--tx-float-label-position-x);z-index:1;max-width:calc(100% - 2 * var(--tx-float-label-position-x));overflow:hidden;margin:0;color:var(--tx-float-label-color);font-family:var(--tx-font-family);font-size:var(--tx-float-label-font-size);font-weight:var(--tx-float-label-font-weight);line-height:1.2;text-overflow:ellipsis;white-space:nowrap;transform:translateY(-50%);transition-property:top,transform,font-size,color,background-color,padding;transition-duration:var(--tx-float-label-transition-duration);pointer-events:none}:host ::ng-deep>textarea~label{top:var(--tx-float-label-position-y);transform:none}:host ::ng-deep>.tx-input:not(:focus)::placeholder,:host ::ng-deep>tx-password:not(:focus-within) .tx-input::placeholder,:host ::ng-deep>tx-input-number:not(:focus-within) .tx-input::placeholder,:host ::ng-deep>tx-select:not(.tx-select--open) .tx-select__value--placeholder,:host ::ng-deep>tx-multiselect:not(.tx-multiselect--open) .tx-select__value--placeholder,:host ::ng-deep>tx-tree-select:not(.tx-tree-select--open) .tx-select__value--placeholder,:host ::ng-deep>tx-cascade-select:not(.tx-cascade-select--open) .tx-select__value--placeholder,:host ::ng-deep>tx-select:not(.tx-select--open,:focus-within) .tx-select__input::placeholder,:host ::ng-deep>tx-autocomplete:not(:focus-within) .tx-select__input::placeholder,:host ::ng-deep>tx-chips-input:not(:focus-within) .tx-chips-input__input::placeholder{color:transparent}:host ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within)~label{font-size:var(--tx-float-label-active-font-size);font-weight:var(--tx-float-label-active-font-weight)}:host([data-variant=over]) ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within)~label{top:var(--tx-float-label-over-active-top);color:var(--tx-float-label-active-color);transform:none}:host([data-variant=in]) ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within)~label{top:var(--tx-float-label-in-active-top);transform:none}:host([data-variant=on]) ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within)~label{top:0;padding:var(--tx-float-label-on-active-padding);border-radius:var(--tx-float-label-on-border-radius);background:var(--tx-float-label-on-active-background);transform:translateY(-50%)}:host ::ng-deep>:is(.tx-input:focus,tx-select.tx-select--open,tx-select:focus-within,tx-multiselect.tx-multiselect--open,tx-multiselect:focus-within,tx-autocomplete:focus-within,tx-chips-input:focus-within,tx-tree-select:focus-within,tx-cascade-select:focus-within,tx-password:focus-within,tx-input-number:focus-within)~label{color:var(--tx-float-label-focus-color)}:host ::ng-deep>:is(.tx-input--invalid,tx-select.tx-select--invalid,tx-multiselect.tx-multiselect--invalid,tx-autocomplete.tx-autocomplete--invalid,tx-chips-input.tx-chips-input--invalid,tx-tree-select.tx-tree-select--invalid,tx-cascade-select.tx-cascade-select--invalid,tx-password.tx-password--invalid,tx-input-number.tx-input-number--invalid)~label{color:var(--tx-float-label-invalid-color)}\n"],
|
|
199
|
+
styles: [":host{position:relative;display:flex;flex-direction:column;align-items:flex-start;align-self:start}:host([data-variant=in]){--tx-field-padding-top: var(--tx-float-label-in-input-padding-top);--tx-field-padding-bottom: var(--tx-float-label-in-input-padding-bottom)}:host ::ng-deep>label{position:absolute;top:50%;left:var(--tx-float-label-position-x);z-index:1;max-width:calc(100% - 2 * var(--tx-float-label-position-x));overflow:hidden;margin:0;color:var(--tx-float-label-color);font-family:var(--tx-font-family);font-size:var(--tx-float-label-font-size);font-weight:var(--tx-float-label-font-weight);line-height:1.2;text-overflow:ellipsis;white-space:nowrap;transform:translateY(-50%);transition-property:top,transform,font-size,color,background-color,padding;transition-duration:var(--tx-float-label-transition-duration);pointer-events:none}:host ::ng-deep>textarea~label{top:var(--tx-float-label-position-y);transform:none}:host ::ng-deep>.tx-input:not(:focus)::placeholder,:host ::ng-deep>tx-password:not(:focus-within) .tx-input::placeholder,:host ::ng-deep>tx-input-number:not(:focus-within) .tx-input::placeholder,:host ::ng-deep>tx-datepicker:not(:focus-within,.tx-datepicker--open) .tx-input::placeholder,:host ::ng-deep>tx-select:not(.tx-select--open) .tx-select__value--placeholder,:host ::ng-deep>tx-multiselect:not(.tx-multiselect--open) .tx-select__value--placeholder,:host ::ng-deep>tx-tree-select:not(.tx-tree-select--open) .tx-select__value--placeholder,:host ::ng-deep>tx-cascade-select:not(.tx-cascade-select--open) .tx-select__value--placeholder,:host ::ng-deep>tx-select:not(.tx-select--open,:focus-within) .tx-select__input::placeholder,:host ::ng-deep>tx-autocomplete:not(:focus-within) .tx-select__input::placeholder,:host ::ng-deep>tx-chips-input:not(:focus-within) .tx-chips-input__input::placeholder{color:transparent}:host ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within,tx-datepicker.tx-datepicker--filled,tx-datepicker.tx-datepicker--open,tx-datepicker:focus-within)~label{font-size:var(--tx-float-label-active-font-size);font-weight:var(--tx-float-label-active-font-weight)}:host([data-variant=over]) ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within,tx-datepicker.tx-datepicker--filled,tx-datepicker.tx-datepicker--open,tx-datepicker:focus-within)~label{top:var(--tx-float-label-over-active-top);color:var(--tx-float-label-active-color);transform:none}:host([data-variant=in]) ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within,tx-datepicker.tx-datepicker--filled,tx-datepicker.tx-datepicker--open,tx-datepicker:focus-within)~label{top:var(--tx-float-label-in-active-top);transform:none}:host([data-variant=on]) ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within,tx-datepicker.tx-datepicker--filled,tx-datepicker.tx-datepicker--open,tx-datepicker:focus-within)~label{top:0;padding:var(--tx-float-label-on-active-padding);border-radius:var(--tx-float-label-on-border-radius);background:var(--tx-float-label-on-active-background);transform:translateY(-50%)}:host ::ng-deep>:is(.tx-input:focus,tx-select.tx-select--open,tx-select:focus-within,tx-multiselect.tx-multiselect--open,tx-multiselect:focus-within,tx-autocomplete:focus-within,tx-chips-input:focus-within,tx-tree-select:focus-within,tx-cascade-select:focus-within,tx-password:focus-within,tx-input-number:focus-within,tx-datepicker:focus-within,tx-datepicker.tx-datepicker--open)~label{color:var(--tx-float-label-focus-color)}:host ::ng-deep>:is(.tx-input--invalid,tx-select.tx-select--invalid,tx-multiselect.tx-multiselect--invalid,tx-autocomplete.tx-autocomplete--invalid,tx-chips-input.tx-chips-input--invalid,tx-tree-select.tx-tree-select--invalid,tx-cascade-select.tx-cascade-select--invalid,tx-password.tx-password--invalid,tx-input-number.tx-input-number--invalid,tx-datepicker.tx-datepicker--invalid)~label{color:var(--tx-float-label-invalid-color)}\n"],
|
|
200
200
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
201
201
|
});
|
|
202
202
|
};
|
|
@@ -215,7 +215,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
215
215
|
class: "tx-float-label",
|
|
216
216
|
"[attr.data-variant]": "variant()"
|
|
217
217
|
},
|
|
218
|
-
styles: [":host{position:relative;display:flex;flex-direction:column;align-items:flex-start;align-self:start}:host([data-variant=in]){--tx-field-padding-top: var(--tx-float-label-in-input-padding-top);--tx-field-padding-bottom: var(--tx-float-label-in-input-padding-bottom)}:host ::ng-deep>label{position:absolute;top:50%;left:var(--tx-float-label-position-x);z-index:1;max-width:calc(100% - 2 * var(--tx-float-label-position-x));overflow:hidden;margin:0;color:var(--tx-float-label-color);font-family:var(--tx-font-family);font-size:var(--tx-float-label-font-size);font-weight:var(--tx-float-label-font-weight);line-height:1.2;text-overflow:ellipsis;white-space:nowrap;transform:translateY(-50%);transition-property:top,transform,font-size,color,background-color,padding;transition-duration:var(--tx-float-label-transition-duration);pointer-events:none}:host ::ng-deep>textarea~label{top:var(--tx-float-label-position-y);transform:none}:host ::ng-deep>.tx-input:not(:focus)::placeholder,:host ::ng-deep>tx-password:not(:focus-within) .tx-input::placeholder,:host ::ng-deep>tx-input-number:not(:focus-within) .tx-input::placeholder,:host ::ng-deep>tx-select:not(.tx-select--open) .tx-select__value--placeholder,:host ::ng-deep>tx-multiselect:not(.tx-multiselect--open) .tx-select__value--placeholder,:host ::ng-deep>tx-tree-select:not(.tx-tree-select--open) .tx-select__value--placeholder,:host ::ng-deep>tx-cascade-select:not(.tx-cascade-select--open) .tx-select__value--placeholder,:host ::ng-deep>tx-select:not(.tx-select--open,:focus-within) .tx-select__input::placeholder,:host ::ng-deep>tx-autocomplete:not(:focus-within) .tx-select__input::placeholder,:host ::ng-deep>tx-chips-input:not(:focus-within) .tx-chips-input__input::placeholder{color:transparent}:host ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within)~label{font-size:var(--tx-float-label-active-font-size);font-weight:var(--tx-float-label-active-font-weight)}:host([data-variant=over]) ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within)~label{top:var(--tx-float-label-over-active-top);color:var(--tx-float-label-active-color);transform:none}:host([data-variant=in]) ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within)~label{top:var(--tx-float-label-in-active-top);transform:none}:host([data-variant=on]) ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within)~label{top:0;padding:var(--tx-float-label-on-active-padding);border-radius:var(--tx-float-label-on-border-radius);background:var(--tx-float-label-on-active-background);transform:translateY(-50%)}:host ::ng-deep>:is(.tx-input:focus,tx-select.tx-select--open,tx-select:focus-within,tx-multiselect.tx-multiselect--open,tx-multiselect:focus-within,tx-autocomplete:focus-within,tx-chips-input:focus-within,tx-tree-select:focus-within,tx-cascade-select:focus-within,tx-password:focus-within,tx-input-number:focus-within)~label{color:var(--tx-float-label-focus-color)}:host ::ng-deep>:is(.tx-input--invalid,tx-select.tx-select--invalid,tx-multiselect.tx-multiselect--invalid,tx-autocomplete.tx-autocomplete--invalid,tx-chips-input.tx-chips-input--invalid,tx-tree-select.tx-tree-select--invalid,tx-cascade-select.tx-cascade-select--invalid,tx-password.tx-password--invalid,tx-input-number.tx-input-number--invalid)~label{color:var(--tx-float-label-invalid-color)}\n"]
|
|
218
|
+
styles: [":host{position:relative;display:flex;flex-direction:column;align-items:flex-start;align-self:start}:host([data-variant=in]){--tx-field-padding-top: var(--tx-float-label-in-input-padding-top);--tx-field-padding-bottom: var(--tx-float-label-in-input-padding-bottom)}:host ::ng-deep>label{position:absolute;top:50%;left:var(--tx-float-label-position-x);z-index:1;max-width:calc(100% - 2 * var(--tx-float-label-position-x));overflow:hidden;margin:0;color:var(--tx-float-label-color);font-family:var(--tx-font-family);font-size:var(--tx-float-label-font-size);font-weight:var(--tx-float-label-font-weight);line-height:1.2;text-overflow:ellipsis;white-space:nowrap;transform:translateY(-50%);transition-property:top,transform,font-size,color,background-color,padding;transition-duration:var(--tx-float-label-transition-duration);pointer-events:none}:host ::ng-deep>textarea~label{top:var(--tx-float-label-position-y);transform:none}:host ::ng-deep>.tx-input:not(:focus)::placeholder,:host ::ng-deep>tx-password:not(:focus-within) .tx-input::placeholder,:host ::ng-deep>tx-input-number:not(:focus-within) .tx-input::placeholder,:host ::ng-deep>tx-datepicker:not(:focus-within,.tx-datepicker--open) .tx-input::placeholder,:host ::ng-deep>tx-select:not(.tx-select--open) .tx-select__value--placeholder,:host ::ng-deep>tx-multiselect:not(.tx-multiselect--open) .tx-select__value--placeholder,:host ::ng-deep>tx-tree-select:not(.tx-tree-select--open) .tx-select__value--placeholder,:host ::ng-deep>tx-cascade-select:not(.tx-cascade-select--open) .tx-select__value--placeholder,:host ::ng-deep>tx-select:not(.tx-select--open,:focus-within) .tx-select__input::placeholder,:host ::ng-deep>tx-autocomplete:not(:focus-within) .tx-select__input::placeholder,:host ::ng-deep>tx-chips-input:not(:focus-within) .tx-chips-input__input::placeholder{color:transparent}:host ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within,tx-datepicker.tx-datepicker--filled,tx-datepicker.tx-datepicker--open,tx-datepicker:focus-within)~label{font-size:var(--tx-float-label-active-font-size);font-weight:var(--tx-float-label-active-font-weight)}:host([data-variant=over]) ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within,tx-datepicker.tx-datepicker--filled,tx-datepicker.tx-datepicker--open,tx-datepicker:focus-within)~label{top:var(--tx-float-label-over-active-top);color:var(--tx-float-label-active-color);transform:none}:host([data-variant=in]) ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within,tx-datepicker.tx-datepicker--filled,tx-datepicker.tx-datepicker--open,tx-datepicker:focus-within)~label{top:var(--tx-float-label-in-active-top);transform:none}:host([data-variant=on]) ::ng-deep>:is(.tx-input--filled,.tx-input:focus,tx-select.tx-select--filled,tx-select.tx-select--open,tx-multiselect.tx-multiselect--filled,tx-multiselect.tx-multiselect--open,tx-autocomplete.tx-autocomplete--filled,tx-autocomplete:focus-within,tx-chips-input.tx-chips-input--filled,tx-chips-input:focus-within,tx-tree-select.tx-tree-select--filled,tx-tree-select.tx-tree-select--open,tx-cascade-select.tx-cascade-select--filled,tx-cascade-select.tx-cascade-select--open,tx-password.tx-password--filled,tx-password:focus-within,tx-input-number.tx-input-number--filled,tx-input-number:focus-within,tx-datepicker.tx-datepicker--filled,tx-datepicker.tx-datepicker--open,tx-datepicker:focus-within)~label{top:0;padding:var(--tx-float-label-on-active-padding);border-radius:var(--tx-float-label-on-border-radius);background:var(--tx-float-label-on-active-background);transform:translateY(-50%)}:host ::ng-deep>:is(.tx-input:focus,tx-select.tx-select--open,tx-select:focus-within,tx-multiselect.tx-multiselect--open,tx-multiselect:focus-within,tx-autocomplete:focus-within,tx-chips-input:focus-within,tx-tree-select:focus-within,tx-cascade-select:focus-within,tx-password:focus-within,tx-input-number:focus-within,tx-datepicker:focus-within,tx-datepicker.tx-datepicker--open)~label{color:var(--tx-float-label-focus-color)}:host ::ng-deep>:is(.tx-input--invalid,tx-select.tx-select--invalid,tx-multiselect.tx-multiselect--invalid,tx-autocomplete.tx-autocomplete--invalid,tx-chips-input.tx-chips-input--invalid,tx-tree-select.tx-tree-select--invalid,tx-cascade-select.tx-cascade-select--invalid,tx-password.tx-password--invalid,tx-input-number.tx-input-number--invalid,tx-datepicker.tx-datepicker--invalid)~label{color:var(--tx-float-label-invalid-color)}\n"]
|
|
219
219
|
}]
|
|
220
220
|
}],
|
|
221
221
|
propDecorators: { variant: [{
|
|
@@ -246,7 +246,7 @@ var TxIftaLabel = class TxIftaLabel {
|
|
|
246
246
|
ngImport: i0,
|
|
247
247
|
template: "<ng-content />",
|
|
248
248
|
isInline: true,
|
|
249
|
-
styles: [":host{--tx-field-padding-top: var(--tx-ifta-label-input-padding-top);--tx-field-padding-bottom: var(--tx-ifta-label-input-padding-bottom);position:relative;display:flex;flex-direction:column;align-items:flex-start;align-self:start}:host ::ng-deep>label{position:absolute;top:var(--tx-ifta-label-top);left:var(--tx-ifta-label-position-x);z-index:1;margin:0;color:var(--tx-ifta-label-color);font-family:var(--tx-font-family);font-size:var(--tx-ifta-label-font-size);font-weight:var(--tx-ifta-label-font-weight);line-height:1.2;transition:color var(--tx-ifta-label-transition-duration);pointer-events:none}:host ::ng-deep>:is(.tx-input:focus,tx-select.tx-select--open,tx-select:focus-within,tx-multiselect.tx-multiselect--open,tx-multiselect:focus-within,tx-autocomplete:focus-within)~label{color:var(--tx-ifta-label-focus-color)}:host ::ng-deep>:is(.tx-input--invalid,tx-select.tx-select--invalid,tx-multiselect.tx-multiselect--invalid,tx-autocomplete.tx-autocomplete--invalid)~label{color:var(--tx-ifta-label-invalid-color)}\n"],
|
|
249
|
+
styles: [":host{--tx-field-padding-top: var(--tx-ifta-label-input-padding-top);--tx-field-padding-bottom: var(--tx-ifta-label-input-padding-bottom);position:relative;display:flex;flex-direction:column;align-items:flex-start;align-self:start}:host ::ng-deep>label{position:absolute;top:var(--tx-ifta-label-top);left:var(--tx-ifta-label-position-x);z-index:1;margin:0;color:var(--tx-ifta-label-color);font-family:var(--tx-font-family);font-size:var(--tx-ifta-label-font-size);font-weight:var(--tx-ifta-label-font-weight);line-height:1.2;transition:color var(--tx-ifta-label-transition-duration);pointer-events:none}:host ::ng-deep>:is(.tx-input:focus,tx-select.tx-select--open,tx-select:focus-within,tx-multiselect.tx-multiselect--open,tx-multiselect:focus-within,tx-autocomplete:focus-within,tx-datepicker:focus-within,tx-datepicker.tx-datepicker--open)~label{color:var(--tx-ifta-label-focus-color)}:host ::ng-deep>:is(.tx-input--invalid,tx-select.tx-select--invalid,tx-multiselect.tx-multiselect--invalid,tx-autocomplete.tx-autocomplete--invalid,tx-datepicker.tx-datepicker--invalid)~label{color:var(--tx-ifta-label-invalid-color)}\n"],
|
|
250
250
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
251
251
|
});
|
|
252
252
|
};
|
|
@@ -262,7 +262,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
262
262
|
template: "<ng-content />",
|
|
263
263
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
264
264
|
host: { class: "tx-ifta-label" },
|
|
265
|
-
styles: [":host{--tx-field-padding-top: var(--tx-ifta-label-input-padding-top);--tx-field-padding-bottom: var(--tx-ifta-label-input-padding-bottom);position:relative;display:flex;flex-direction:column;align-items:flex-start;align-self:start}:host ::ng-deep>label{position:absolute;top:var(--tx-ifta-label-top);left:var(--tx-ifta-label-position-x);z-index:1;margin:0;color:var(--tx-ifta-label-color);font-family:var(--tx-font-family);font-size:var(--tx-ifta-label-font-size);font-weight:var(--tx-ifta-label-font-weight);line-height:1.2;transition:color var(--tx-ifta-label-transition-duration);pointer-events:none}:host ::ng-deep>:is(.tx-input:focus,tx-select.tx-select--open,tx-select:focus-within,tx-multiselect.tx-multiselect--open,tx-multiselect:focus-within,tx-autocomplete:focus-within)~label{color:var(--tx-ifta-label-focus-color)}:host ::ng-deep>:is(.tx-input--invalid,tx-select.tx-select--invalid,tx-multiselect.tx-multiselect--invalid,tx-autocomplete.tx-autocomplete--invalid)~label{color:var(--tx-ifta-label-invalid-color)}\n"]
|
|
265
|
+
styles: [":host{--tx-field-padding-top: var(--tx-ifta-label-input-padding-top);--tx-field-padding-bottom: var(--tx-ifta-label-input-padding-bottom);position:relative;display:flex;flex-direction:column;align-items:flex-start;align-self:start}:host ::ng-deep>label{position:absolute;top:var(--tx-ifta-label-top);left:var(--tx-ifta-label-position-x);z-index:1;margin:0;color:var(--tx-ifta-label-color);font-family:var(--tx-font-family);font-size:var(--tx-ifta-label-font-size);font-weight:var(--tx-ifta-label-font-weight);line-height:1.2;transition:color var(--tx-ifta-label-transition-duration);pointer-events:none}:host ::ng-deep>:is(.tx-input:focus,tx-select.tx-select--open,tx-select:focus-within,tx-multiselect.tx-multiselect--open,tx-multiselect:focus-within,tx-autocomplete:focus-within,tx-datepicker:focus-within,tx-datepicker.tx-datepicker--open)~label{color:var(--tx-ifta-label-focus-color)}:host ::ng-deep>:is(.tx-input--invalid,tx-select.tx-select--invalid,tx-multiselect.tx-multiselect--invalid,tx-autocomplete.tx-autocomplete--invalid,tx-datepicker.tx-datepicker--invalid)~label{color:var(--tx-ifta-label-invalid-color)}\n"]
|
|
266
266
|
}]
|
|
267
267
|
}]
|
|
268
268
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-label.mjs","names":[],"sources":["../../../../packages/ui/label/src/label.component.ts","../../../../packages/ui/label/src/float-label.component.ts","../../../../packages/ui/label/src/ifta-label.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, booleanAttribute, input } from '@angular/core';\nimport { TxIcon } from '@tectra-ng/icons';\n\n@Component({\n selector: 'tx-label',\n imports: [TxIcon],\n template: `\n <label class=\"tx-label__text\" [attr.for]=\"for() ?? null\">\n <ng-content />@if (colon()) {:}\n @if (required()) {\n <span class=\"tx-label__required\" aria-hidden=\"true\">*</span>\n }\n @if (tooltip(); as tooltip) {\n <span class=\"tx-label__hint\" role=\"img\" tabindex=\"0\" [title]=\"tooltip\" [attr.aria-label]=\"tooltip\"><tx-icon [name]=\"'info-circle'\" /></span>\n }\n </label>\n `,\n styleUrl: './label.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-label', '[class.tx-label--subtle]': 'subtle()' },\n})\nexport class TxLabel {\n readonly for = input<string | undefined>(undefined);\n readonly required = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly colon = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly subtle = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly tooltip = input<string | undefined>(undefined);\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { TxFloatLabelVariant } from './label.types';\n\n@Component({\n selector: 'tx-float-label',\n template: '<ng-content />',\n styleUrl: './float-label.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-float-label', '[attr.data-variant]': 'variant()' },\n})\nexport class TxFloatLabel {\n readonly variant = input<TxFloatLabelVariant>('over');\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'tx-ifta-label',\n template: '<ng-content />',\n styleUrl: './ifta-label.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-ifta-label' },\n})\nexport class TxIftaLabel {}\n"],"mappings":";;;AAqBA,IAAa,UAAb,MAAa,QAAO;CACT,MAAM,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;CAC1C,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,QAAQ,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACpE,SAAS,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,SAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACrE,UAAU,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAL5C,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAO,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAP,OAAA,OAAA,GAAA,qBA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AA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAY,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAZ,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAY,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,SAAA;GAAA,mBAAA;GAAA,YAAA;GAAA,UAAA;GAAA,YAAA;GAAA,mBAAA;EAAA,EAAA;EAAA,MAAA;GAAA,YAAA,EAAA,qBAAA,YAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UALb;EAAgB,UAAA;EAAA,QAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-label.mjs","names":[],"sources":["../../../../packages/ui/label/src/label.component.ts","../../../../packages/ui/label/src/float-label.component.ts","../../../../packages/ui/label/src/ifta-label.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, booleanAttribute, input } from '@angular/core';\nimport { TxIcon } from '@tectra-ng/icons';\n\n@Component({\n selector: 'tx-label',\n imports: [TxIcon],\n template: `\n <label class=\"tx-label__text\" [attr.for]=\"for() ?? null\">\n <ng-content />@if (colon()) {:}\n @if (required()) {\n <span class=\"tx-label__required\" aria-hidden=\"true\">*</span>\n }\n @if (tooltip(); as tooltip) {\n <span class=\"tx-label__hint\" role=\"img\" tabindex=\"0\" [title]=\"tooltip\" [attr.aria-label]=\"tooltip\"><tx-icon [name]=\"'info-circle'\" /></span>\n }\n </label>\n `,\n styleUrl: './label.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-label', '[class.tx-label--subtle]': 'subtle()' },\n})\nexport class TxLabel {\n readonly for = input<string | undefined>(undefined);\n readonly required = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly colon = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly subtle = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly tooltip = input<string | undefined>(undefined);\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { TxFloatLabelVariant } from './label.types';\n\n@Component({\n selector: 'tx-float-label',\n template: '<ng-content />',\n styleUrl: './float-label.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-float-label', '[attr.data-variant]': 'variant()' },\n})\nexport class TxFloatLabel {\n readonly variant = input<TxFloatLabelVariant>('over');\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'tx-ifta-label',\n template: '<ng-content />',\n styleUrl: './ifta-label.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-ifta-label' },\n})\nexport class TxIftaLabel {}\n"],"mappings":";;;AAqBA,IAAa,UAAb,MAAa,QAAO;CACT,MAAM,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;CAC1C,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,QAAQ,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACpE,SAAS,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,SAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACrE,UAAU,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAL5C,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAO,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAP,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAO,cAAA;EAAA,UAAA;EAAA,QAAA;GAAA,KAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;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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-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"],
|
|
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-start-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-end-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-start-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));border-end-end-radius:var(--tx-field-radius-end, 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-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"]
|
|
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-start-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-end-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-start-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));border-end-end-radius:var(--tx-field-radius-end, 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: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-listbox.mjs","names":[],"sources":["../../../../packages/ui/listbox/src/listbox.component.ts","../../../../packages/ui/listbox/src/listbox.component.html"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, booleanAttribute, computed, forwardRef, input, output, signal } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraListboxTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxOptionList, TxOptionsBase, TxSelectItem, isSelectableRow } from '@tectra-ng/ui/select';\nimport { TxListboxChangeEvent, TxListboxPart } from './listbox.types';\n\n@Component({\n selector: 'tx-listbox',\n imports: [NgTemplateOutlet, TxIcon, TxOptionList],\n templateUrl: './listbox.component.html',\n styleUrl: './listbox.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxListbox), multi: true }],\n host: {\n class: 'tx-listbox',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-listbox--focused]': 'focused()',\n '[class.tx-listbox--disabled]': 'disabled()',\n '[class.tx-listbox--invalid]': 'isInvalid()',\n '[class.tx-listbox--readonly]': 'readonly()',\n '(mousedown)': 'onPointer($event)',\n },\n})\nexport class TxListbox extends TxOptionsBase<unknown> {\n readonly options = input<readonly unknown[]>([]);\n readonly multiple = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly checkbox = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly metaKeySelection = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly checkmark = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraListboxTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxListboxPart, TxListbox> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<TxListboxChangeEvent>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly passThrough = injectPassThrough('listbox', this, this.pt, this.ptOptions);\n readonly focused = signal(false);\n protected readonly source = this.options;\n private replaceOnClick = false;\n\n readonly isMultiple = computed(() => this.multiple() || this.checkbox());\n readonly selectedValues = computed<unknown[]>(() => {\n const value = this.value();\n if (this.isMultiple()) {\n return Array.isArray(value) ? value : [];\n }\n return value === null || value === undefined ? [] : [value];\n });\n readonly shownActiveIndex = computed(() => (this.focused() ? this.activeIndex() : -1));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-listbox'), ...this.passThrough().root?.style }));\n\n onPointer(event: MouseEvent): void {\n this.replaceOnClick = this.isMultiple() && this.metaKeySelection() && !(event.ctrlKey || event.metaKey);\n }\n\n onListFocus(): void {\n this.focused.set(true);\n if (!isSelectableRow(this.rows()[this.activeIndex()])) {\n this.resetActive(true);\n }\n }\n\n onListBlur(): void {\n this.focused.set(false);\n this.markTouched();\n }\n\n onOptionClick(item: TxSelectItem): void {\n this.activeIndex.set(this.rows().indexOf(item));\n if (this.replaceOnClick) {\n this.replaceOnClick = false;\n this.commit([item.value], item);\n return;\n }\n this.activate(item);\n }\n\n onListKeydown(event: KeyboardEvent): void {\n const typing = (event.target as HTMLElement).classList.contains('tx-listbox__filter-input');\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp' || event.key === 'PageDown' || event.key === 'PageUp' || (!typing && (event.key === 'Home' || event.key === 'End'))) {\n event.preventDefault();\n if (!this.focused() && !isSelectableRow(this.rows()[this.activeIndex()])) {\n this.resetActive(true);\n }\n if (this.moveActive(event.key) && event.shiftKey && this.isMultiple()) {\n const active = this.rows()[this.activeIndex()];\n if (isSelectableRow(active) && !active.selected) {\n this.activate(active);\n }\n }\n return;\n }\n if (event.key === 'Enter' || (event.key === ' ' && !typing)) {\n const active = this.rows()[this.activeIndex()];\n if (isSelectableRow(active)) {\n event.preventDefault();\n this.activate(active);\n }\n return;\n }\n if (!typing && this.isMultiple() && (event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'a') {\n event.preventDefault();\n this.toggleAll();\n return;\n }\n if (!typing && event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {\n if (this.findByTyping(event.key)) {\n this.scrollActiveIntoView();\n }\n }\n }\n\n onFilterFocus(): void {\n this.focused.set(true);\n if (!isSelectableRow(this.rows()[this.activeIndex()])) {\n this.resetActive(true);\n }\n }\n\n toggleAll(): void {\n if (this.readonly() || this.disabled()) {\n return;\n }\n const items = this.rows().filter(isSelectableRow);\n const allSelected = items.every((item) => item.selected);\n const values = allSelected\n ? this.selectedValues().filter((value) => !items.some((item) => this.sameValue(item.value, value)))\n : [...this.selectedValues(), ...items.filter((item) => !item.selected).map((item) => item.value)];\n this.commit(values, null);\n }\n\n protected isListActive(): boolean {\n return this.focused();\n }\n\n protected isSelected(value: unknown): boolean {\n return this.selectedValues().some((selected) => this.sameValue(selected, value));\n }\n\n protected activate(item: TxSelectItem): void {\n if (this.readonly() || this.disabled() || item.disabled) {\n return;\n }\n if (!this.isMultiple()) {\n if (!item.selected) {\n this.commit([item.value], item);\n }\n return;\n }\n const values = item.selected ? this.selectedValues().filter((value) => !this.sameValue(value, item.value)) : [...this.selectedValues(), item.value];\n this.commit(values, item);\n }\n\n private commit(values: unknown[], item: TxSelectItem | null): void {\n const value = this.isMultiple() ? values : (values[0] ?? null);\n this.updateValue(value);\n this.changed.emit({ value, option: item?.option ?? null });\n }\n}\n","@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"],"mappings":";;;;;;;;;;AA8BA,IAAa,YAAb,MAAa,kBAAkB,cAAsB;CAC1C,UAAU,MAA0B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACvC,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,mBAAmB,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,mBAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAC/E,YAAY,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACxE,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,UAAU,MAAoC,QAAS;EAAA,GAAA,YAAA,EAAA,WAAA,UAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CACrF,YAAY,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAChD,iBAAiB,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,KAAK,MAA0D,QAAU,GAAA,YAAA,CAAA,EAAA,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;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;IAAA,SAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA;EAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAiBrC,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAS,YAAA,CAAA;EAnBrB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAY,SACb;IAAC;IAAkB;IAAQ;GAAY;GAAC,iBAGhC,wBAAwB;GAAM,WACpC,CAAC;IAAE,SAAS;IAAmB,aAAa,iBAAgB,SAAU;IAAG,OAAO;GAAI,CAAE;GAAC,MAC5F;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,+BAA+B;IAC/B,gCAAgC;IAChC,+BAA+B;IAC/B,gCAAgC;IAChC,eAAe;GAChB;GAAA,UAAA;GAAA,QAAA,CAAA,grGAAA;EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-listbox.mjs","names":[],"sources":["../../../../packages/ui/listbox/src/listbox.component.ts","../../../../packages/ui/listbox/src/listbox.component.html"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, booleanAttribute, computed, forwardRef, input, output, signal } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraListboxTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxOptionList, TxOptionsBase, TxSelectItem, isSelectableRow } from '@tectra-ng/ui/select';\nimport { TxListboxChangeEvent, TxListboxPart } from './listbox.types';\n\n@Component({\n selector: 'tx-listbox',\n imports: [NgTemplateOutlet, TxIcon, TxOptionList],\n templateUrl: './listbox.component.html',\n styleUrl: './listbox.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxListbox), multi: true }],\n host: {\n class: 'tx-listbox',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-listbox--focused]': 'focused()',\n '[class.tx-listbox--disabled]': 'disabled()',\n '[class.tx-listbox--invalid]': 'isInvalid()',\n '[class.tx-listbox--readonly]': 'readonly()',\n '(mousedown)': 'onPointer($event)',\n },\n})\nexport class TxListbox extends TxOptionsBase<unknown> {\n readonly options = input<readonly unknown[]>([]);\n readonly multiple = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly checkbox = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly metaKeySelection = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly checkmark = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraListboxTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxListboxPart, TxListbox> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<TxListboxChangeEvent>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly passThrough = injectPassThrough('listbox', this, this.pt, this.ptOptions);\n readonly focused = signal(false);\n protected readonly source = this.options;\n private replaceOnClick = false;\n\n readonly isMultiple = computed(() => this.multiple() || this.checkbox());\n readonly selectedValues = computed<unknown[]>(() => {\n const value = this.value();\n if (this.isMultiple()) {\n return Array.isArray(value) ? value : [];\n }\n return value === null || value === undefined ? [] : [value];\n });\n readonly shownActiveIndex = computed(() => (this.focused() ? this.activeIndex() : -1));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-listbox'), ...this.passThrough().root?.style }));\n\n onPointer(event: MouseEvent): void {\n this.replaceOnClick = this.isMultiple() && this.metaKeySelection() && !(event.ctrlKey || event.metaKey);\n }\n\n onListFocus(): void {\n this.focused.set(true);\n if (!isSelectableRow(this.rows()[this.activeIndex()])) {\n this.resetActive(true);\n }\n }\n\n onListBlur(): void {\n this.focused.set(false);\n this.markTouched();\n }\n\n onOptionClick(item: TxSelectItem): void {\n this.activeIndex.set(this.rows().indexOf(item));\n if (this.replaceOnClick) {\n this.replaceOnClick = false;\n this.commit([item.value], item);\n return;\n }\n this.activate(item);\n }\n\n onListKeydown(event: KeyboardEvent): void {\n const typing = (event.target as HTMLElement).classList.contains('tx-listbox__filter-input');\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp' || event.key === 'PageDown' || event.key === 'PageUp' || (!typing && (event.key === 'Home' || event.key === 'End'))) {\n event.preventDefault();\n if (!this.focused() && !isSelectableRow(this.rows()[this.activeIndex()])) {\n this.resetActive(true);\n }\n if (this.moveActive(event.key) && event.shiftKey && this.isMultiple()) {\n const active = this.rows()[this.activeIndex()];\n if (isSelectableRow(active) && !active.selected) {\n this.activate(active);\n }\n }\n return;\n }\n if (event.key === 'Enter' || (event.key === ' ' && !typing)) {\n const active = this.rows()[this.activeIndex()];\n if (isSelectableRow(active)) {\n event.preventDefault();\n this.activate(active);\n }\n return;\n }\n if (!typing && this.isMultiple() && (event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'a') {\n event.preventDefault();\n this.toggleAll();\n return;\n }\n if (!typing && event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {\n if (this.findByTyping(event.key)) {\n this.scrollActiveIntoView();\n }\n }\n }\n\n onFilterFocus(): void {\n this.focused.set(true);\n if (!isSelectableRow(this.rows()[this.activeIndex()])) {\n this.resetActive(true);\n }\n }\n\n toggleAll(): void {\n if (this.readonly() || this.disabled()) {\n return;\n }\n const items = this.rows().filter(isSelectableRow);\n const allSelected = items.every((item) => item.selected);\n const values = allSelected\n ? this.selectedValues().filter((value) => !items.some((item) => this.sameValue(item.value, value)))\n : [...this.selectedValues(), ...items.filter((item) => !item.selected).map((item) => item.value)];\n this.commit(values, null);\n }\n\n protected isListActive(): boolean {\n return this.focused();\n }\n\n protected isSelected(value: unknown): boolean {\n return this.selectedValues().some((selected) => this.sameValue(selected, value));\n }\n\n protected activate(item: TxSelectItem): void {\n if (this.readonly() || this.disabled() || item.disabled) {\n return;\n }\n if (!this.isMultiple()) {\n if (!item.selected) {\n this.commit([item.value], item);\n }\n return;\n }\n const values = item.selected ? this.selectedValues().filter((value) => !this.sameValue(value, item.value)) : [...this.selectedValues(), item.value];\n this.commit(values, item);\n }\n\n private commit(values: unknown[], item: TxSelectItem | null): void {\n const value = this.isMultiple() ? values : (values[0] ?? null);\n this.updateValue(value);\n this.changed.emit({ value, option: item?.option ?? null });\n }\n}\n","@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"],"mappings":";;;;;;;;;;AA8BA,IAAa,YAAb,MAAa,kBAAkB,cAAsB;CAC1C,UAAU,MAA0B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CA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