@tectra-ng/ui 0.4.2 → 0.4.3
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 +1 -1
- package/amount/README.md +2 -2
- package/analog-clock/README.md +3 -2
- package/button-group/README.md +34 -2
- package/chips-input/README.md +10 -0
- package/data-view/README.md +3 -0
- package/fesm2022/tectra-ng-ui-amount.mjs +11 -9
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-analog-clock.mjs +12 -6
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-button-group.mjs +139 -6
- package/fesm2022/tectra-ng-ui-button-group.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +36 -6
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-data-view.mjs +11 -3
- package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-datepicker.mjs +2 -2
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export.mjs +14 -19
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-otp.mjs +6 -2
- package/fesm2022/tectra-ng-ui-input-otp.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-knob.mjs +12 -4
- package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-message.mjs +1 -1
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-paginator.mjs +3 -20
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +19 -2
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel.mjs +2 -2
- package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-pill.mjs +3 -2
- package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs +4 -4
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select-button.mjs +748 -0
- package/fesm2022/tectra-ng-ui-select-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-speed-dial.mjs +91 -60
- package/fesm2022/tectra-ng-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-split-button.mjs +16 -5
- package/fesm2022/tectra-ng-ui-split-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs +8 -5
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stepper.mjs +72 -29
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +78 -141
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toggle-button.mjs +2 -2
- package/fesm2022/tectra-ng-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +17 -3
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +4 -4
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-truncate-text.mjs +2 -2
- package/fesm2022/tectra-ng-ui-truncate-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui.mjs +1 -1
- package/field/README.md +2 -2
- package/input-otp/README.md +1 -1
- package/knob/README.md +1 -1
- package/message/README.md +2 -2
- package/package.json +8 -4
- package/paginator/README.md +1 -1
- package/panel-menu/README.md +1 -1
- package/pill/README.md +1 -1
- package/select-button/README.md +70 -0
- package/speed-dial/README.md +2 -1
- package/stat-tiles/README.md +3 -3
- package/stepper/README.md +3 -2
- package/table/README.md +10 -7
- package/tabs/README.md +1 -1
- package/tree-select/README.md +1 -1
- package/tree-table/README.md +1 -1
- package/truncate-text/README.md +1 -1
- package/types/tectra-ng-ui-amount.d.ts +6 -3
- package/types/tectra-ng-ui-amount.d.ts.map +1 -1
- package/types/tectra-ng-ui-analog-clock.d.ts +9 -4
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
- package/types/tectra-ng-ui-button-group.d.ts +58 -5
- package/types/tectra-ng-ui-button-group.d.ts.map +1 -1
- package/types/tectra-ng-ui-chips-input.d.ts +14 -1
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-field.d.ts +2 -2
- package/types/tectra-ng-ui-input-otp.d.ts +1 -1
- package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
- package/types/tectra-ng-ui-knob.d.ts +2 -1
- package/types/tectra-ng-ui-knob.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +2 -2
- package/types/tectra-ng-ui-paginator.d.ts +2 -21
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel-menu.d.ts +9 -9
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-pill.d.ts +7 -3
- package/types/tectra-ng-ui-pill.d.ts.map +1 -1
- package/types/tectra-ng-ui-select-button.d.ts +256 -0
- package/types/tectra-ng-ui-select-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
- package/types/tectra-ng-ui-stat-tiles.d.ts +4 -3
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
- package/types/tectra-ng-ui-stepper.d.ts +25 -10
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +39 -42
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +3 -1
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-truncate-text.d.ts +1 -1
- package/types/tectra-ng-ui.d.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-select-button.mjs","names":[],"sources":["../../../../packages/ui/select-button/src/select-button-item.directive.ts","../../../../packages/ui/select-button/src/select-button.theme.ts","../../../../packages/ui/select-button/src/select-button.component.ts","../../../../packages/ui/select-button/src/select-button.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject, input } from '@angular/core';\nimport { TxSelectButtonItemContext } from './select-button.types';\n\n/** Own content of each `tx-select-button` item; `txSelectButtonItemOf` types the option from the options array. */\n@Directive({ selector: 'ng-template[txSelectButtonItem]' })\nexport class TxSelectButtonItemTemplate<T> {\n readonly templateRef = inject<TemplateRef<TxSelectButtonItemContext<T>>>(TemplateRef);\n readonly txSelectButtonItemOf = input<readonly T[] | null | undefined>(undefined);\n\n static ngTemplateContextGuard<T>(_directive: TxSelectButtonItemTemplate<T>, context: unknown): context is TxSelectButtonItemContext<T> {\n return !!context;\n }\n}\n","import { selectButtonTokens } from '@tectra-ng/themes';\n\nexport const SELECT_BUTTON_THEME = {\n selectButton: selectButtonTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n booleanAttribute,\n computed,\n contentChild,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { nextListIndex } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { injectTxIcons, TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraSelectButtonTokens, toStyleObject } from '@tectra-ng/themes';\nimport { readOptionField, sameOptionValue } from '@tectra-ng/ui/select';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { TxSelectButtonItemTemplate } from './select-button-item.directive';\nimport { TxSelectButtonChangeEvent, TxSelectButtonPart, TxSelectButtonSize } from './select-button.types';\nimport { SELECT_BUTTON_THEME } from './select-button.theme';\n\ninterface SelectButtonItem {\n option: unknown;\n value: unknown;\n label: string;\n icon: string | null;\n selected: boolean;\n disabled: boolean;\n}\n\nconst KEYS: Record<string, string> = { ArrowRight: 'ArrowDown', ArrowDown: 'ArrowDown', ArrowLeft: 'ArrowUp', ArrowUp: 'ArrowUp', Home: 'Home', End: 'End' };\n\n/**\n * A segmented choice: a row of buttons in one track, one value (`radiogroup`) or several (`multiple`, toggle\n * buttons). A `ControlValueAccessor` — works with `[formControl]`, `ngModel`, signal forms and `[(value)]`.\n */\n@Component({\n selector: 'tx-select-button',\n imports: [NgTemplateOutlet, TxIcon, TxTooltip],\n templateUrl: './select-button.component.html',\n styleUrl: './select-button.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxSelectButton), multi: true }],\n host: {\n class: 'tx-select-button',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.role]': 'multiple() ? \"group\" : \"radiogroup\"',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-size]': 'size()',\n '[attr.aria-label]': 'ariaLabel() ?? null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() ?? null',\n '[attr.aria-invalid]': 'isInvalid() || null',\n '[attr.aria-required]': '(!multiple() && required()) || null',\n '[attr.aria-readonly]': '(!multiple() && readonly()) || null',\n '[attr.aria-disabled]': 'isDisabled() || null',\n '[class.tx-select-button--multiple]': 'multiple()',\n '[class.tx-select-button--disabled]': 'isDisabled()',\n '[class.tx-select-button--readonly]': 'readonly()',\n '[class.tx-select-button--invalid]': 'isInvalid()',\n '[class.tx-select-button--fluid]': 'isFluid()',\n '[class.tx-select-button--icon-only]': 'iconOnly()',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class TxSelectButton extends TxFormControlBase<unknown> {\n private readonly selectButtonTheme = injectTokens(SELECT_BUTTON_THEME);\n\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly icons = injectTxIcons();\n\n override readonly value = model<unknown>(null);\n readonly options = input<readonly unknown[]>([]);\n readonly optionLabel = input<string>('label');\n readonly optionValue = input<string>('value');\n readonly optionDisabled = input<string>('disabled');\n readonly optionIcon = input<string>('icon');\n readonly dataKey = input<string | undefined>(undefined);\n readonly multiple = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly allowEmpty = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly iconOnly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly size = input<TxSelectButtonSize>('medium');\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly disabledInput = input<boolean, unknown>(false, { alias: 'disabled', transform: booleanAttribute });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly required = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraSelectButtonTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxSelectButtonPart, TxSelectButton> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<TxSelectButtonChangeEvent>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n\n readonly itemTemplate = contentChild(TxSelectButtonItemTemplate);\n private readonly buttons = viewChildren<ElementRef<HTMLButtonElement>>('button');\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly isFluid = injectFluid(this.fluid);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly passThrough = injectPassThrough('selectButton', this, this.pt, this.ptOptions);\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput());\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-select-button'), ...this.passThrough().root?.style }));\n\n private readonly activeIndex = signal(-1);\n\n readonly items = computed<SelectButtonItem[]>(() => {\n const selected = this.selectedValues();\n const dataKey = this.dataKey();\n return this.options().map((option) => {\n const isObject = option !== null && typeof option === 'object';\n const value = readOptionField(option, this.optionValue());\n const icon = isObject ? readOptionField(option, this.optionIcon()) : null;\n return {\n option,\n value,\n label: String(readOptionField(option, this.optionLabel()) ?? ''),\n icon: typeof icon === 'string' && icon ? icon : null,\n selected: selected.some((current) => sameOptionValue(current, value, dataKey)),\n disabled: isObject && !!readOptionField(option, this.optionDisabled()),\n };\n });\n });\n\n readonly tabStop = computed(() => {\n if (this.isDisabled()) {\n return -1;\n }\n const items = this.items();\n const usable = (index: number) => index >= 0 && index < items.length && !items[index].disabled;\n const selected = items.findIndex((item) => item.selected && !item.disabled);\n const active = this.activeIndex();\n const order = this.multiple() ? [active, selected] : [selected, active];\n return order.find(usable) ?? items.findIndex((item) => !item.disabled);\n });\n\n private readonly selectedValues = computed<readonly unknown[]>(() => {\n const value = this.value();\n if (this.multiple()) {\n return Array.isArray(value) ? value : [];\n }\n return value === null || value === undefined ? [] : [value];\n });\n\n /** Moves focus to the item that takes the Tab stop: the selected one, else the first that can be picked. */\n focus(): void {\n this.buttons()[this.tabStop()]?.nativeElement.focus();\n }\n\n hasIcon(name: string): boolean {\n return this.icons.has(name);\n }\n\n onItemClick(index: number, event: Event): void {\n this.activeIndex.set(index);\n this.toggle(index, event);\n }\n\n onItemFocus(index: number): void {\n this.activeIndex.set(index);\n }\n\n onKeydown(index: number, event: KeyboardEvent): void {\n const key = KEYS[event.key];\n if (!key) {\n return;\n }\n event.preventDefault();\n const items = this.items();\n const next = nextListIndex(key, { count: items.length, current: index, isDisabled: (position) => items[position].disabled });\n if (next === null || next === index) {\n return;\n }\n this.activeIndex.set(next);\n this.buttons()[next].nativeElement.focus();\n if (!this.multiple() && !items[next].selected) {\n this.toggle(next, event);\n }\n }\n\n onFocusIn(event: FocusEvent): void {\n if (!this.contains(event.relatedTarget)) {\n this.focused.emit(event);\n }\n }\n\n onFocusOut(event: FocusEvent): void {\n if (!this.contains(event.relatedTarget)) {\n this.markTouched();\n this.blurred.emit(event);\n }\n }\n\n private toggle(index: number, event: Event): void {\n const item = this.items()[index];\n if (item.disabled || this.isDisabled() || this.readonly()) {\n return;\n }\n const current = this.selectedValues();\n if (item.selected && !this.allowEmpty() && current.length <= 1) {\n return;\n }\n const dataKey = this.dataKey();\n let value: unknown;\n if (this.multiple()) {\n value = item.selected ? current.filter((entry) => !sameOptionValue(entry, item.value, dataKey)) : [...current, item.value];\n } else {\n value = item.selected ? null : item.value;\n }\n this.updateValue(value);\n this.changed.emit({ value, option: item.option, originalEvent: event });\n }\n\n private contains(target: EventTarget | null): boolean {\n return target instanceof Node && this.element.contains(target);\n }\n}\n","@for (item of items(); track $index; let index = $index) {\n @let iconAlone = iconOnly() && !itemTemplate() && !!item.icon;\n <button\n #button\n type=\"button\"\n class=\"tx-select-button__item\"\n [class.tx-select-button__item--selected]=\"item.selected\"\n [class.tx-select-button__item--disabled]=\"item.disabled\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n [attr.role]=\"multiple() ? null : 'radio'\"\n [attr.aria-checked]=\"multiple() ? null : item.selected\"\n [attr.aria-pressed]=\"multiple() ? item.selected : null\"\n [attr.aria-label]=\"iconAlone ? item.label : null\"\n [attr.tabindex]=\"index === tabStop() ? 0 : -1\"\n [disabled]=\"isDisabled() || item.disabled\"\n [txTooltip]=\"iconAlone ? item.label : undefined\"\n tooltipPlacement=\"top\"\n (click)=\"onItemClick(index, $event)\"\n (keydown)=\"onKeydown(index, $event)\"\n (focus)=\"onItemFocus(index)\"\n >\n @if (itemTemplate(); as template) {\n <ng-container\n *ngTemplateOutlet=\"template.templateRef; context: { $implicit: item.option, label: item.label, selected: item.selected, disabled: item.disabled, index }\"\n />\n } @else {\n @if (item.icon; as icon) {\n <span class=\"tx-select-button__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (hasIcon(icon)) {\n <tx-icon [name]=\"icon\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n @if (!iconAlone) {\n <span class=\"tx-select-button__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ item.label }}</span>\n }\n }\n </button>\n}\n"],"mappings":";;;;;;;;;;;;;AAKA,IAAa,6BAAb,MAAa,2BAA0B;CAC5B,cAAc,OAAkD,WAAW;CAC3E,uBAAuB,MAAuC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,uBAAA,CAAA,+BAAA,CAAA,CAAA;CAEjF,OAAO,uBAA0B,YAA2C,SAAgB;EAC1F,OAAO,CAAC,CAAC;CACX;CANW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAA0B,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAA1B,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAA0B,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,sBAAA;GAAA,mBAAA;GAAA,YAAA;GAAA,UAAA;GAAA,YAAA;GAAA,mBAAA;EAAA,EAAA;EAAA,UAAA;C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,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,0BAA0B,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACQ,UAAQ,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, DOCUMENT, ElementRef, booleanAttribute, computed, effect, inject, input, model, numberAttribute, output, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { RouterLink } from "@angular/router";
|
|
3
4
|
import { uniqueId } from "@tectra-ng/core/a11y";
|
|
4
5
|
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
5
6
|
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
@@ -200,6 +201,10 @@ var TxSpeedDial = class TxSpeedDial {
|
|
|
200
201
|
event.preventDefault();
|
|
201
202
|
this.hide(true);
|
|
202
203
|
} else if (event.key === "Tab") this.hide();
|
|
204
|
+
else if (event.key === " " && event.target instanceof HTMLAnchorElement) {
|
|
205
|
+
event.preventDefault();
|
|
206
|
+
event.target.click();
|
|
207
|
+
}
|
|
203
208
|
}
|
|
204
209
|
arrowKeys() {
|
|
205
210
|
const direction = this.direction();
|
|
@@ -407,65 +412,87 @@ var TxSpeedDial = class TxSpeedDial {
|
|
|
407
412
|
isSignal: true
|
|
408
413
|
}],
|
|
409
414
|
ngImport: i0,
|
|
410
|
-
template: "@if (mask() && visible()) {\n <div class=\"tx-speed-dial__mask\" aria-hidden=\"true\" [class]=\"passThrough().mask?.class\" [style]=\"passThrough().mask?.style\"></div>\n}\n<button\n #button\n txButton\n type=\"button\"\n class=\"tx-speed-dial__button\"\n aria-haspopup=\"menu\"\n [class]=\"passThrough().button?.class\"\n [style]=\"passThrough().button?.style\"\n [icon]=\"currentIcon()\"\n [rounded]=\"true\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-expanded]=\"visible()\"\n [attr.aria-controls]=\"listId\"\n (click)=\"toggle($event)\"\n (keydown)=\"onButtonKeydown($event)\"\n></button>\n<div\n class=\"tx-speed-dial__list\"\n role=\"menu\"\n [id]=\"listId\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n>\n @for (item of items(); track $index) {\n <
|
|
415
|
+
template: "@if (mask() && visible()) {\n <div class=\"tx-speed-dial__mask\" aria-hidden=\"true\" [class]=\"passThrough().mask?.class\" [style]=\"passThrough().mask?.style\"></div>\n}\n<button\n #button\n txButton\n type=\"button\"\n class=\"tx-speed-dial__button\"\n aria-haspopup=\"menu\"\n [class]=\"passThrough().button?.class\"\n [style]=\"passThrough().button?.style\"\n [icon]=\"currentIcon()\"\n [rounded]=\"true\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-expanded]=\"visible()\"\n [attr.aria-controls]=\"listId\"\n (click)=\"toggle($event)\"\n (keydown)=\"onButtonKeydown($event)\"\n></button>\n<div\n class=\"tx-speed-dial__list\"\n role=\"menu\"\n [id]=\"listId\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n>\n @for (item of items(); track $index) {\n @if (item.routerLink && !item.disabled) {\n <a\n txButton\n role=\"menuitem\"\n class=\"tx-speed-dial__item\"\n [class]=\"passThrough().item?.class\"\n [style]=\"itemStyle($index)\"\n [icon]=\"item.icon\"\n [rounded]=\"true\"\n [tabindex]=\"-1\"\n [severity]=\"item.severity === 'danger' ? 'danger' : itemSeverity()\"\n [size]=\"itemSize()\"\n [unstyled]=\"isUnstyled()\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.aria-label]=\"item.label ?? null\"\n [txTooltip]=\"item.label\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipDisabled]=\"!visible()\"\n (click)=\"run(item, $event)\"\n (keydown)=\"onListKeydown($event)\"\n ></a>\n } @else if (item.url && !item.disabled) {\n <a\n txButton\n role=\"menuitem\"\n class=\"tx-speed-dial__item\"\n [class]=\"passThrough().item?.class\"\n [style]=\"itemStyle($index)\"\n [icon]=\"item.icon\"\n [rounded]=\"true\"\n [tabindex]=\"-1\"\n [severity]=\"item.severity === 'danger' ? 'danger' : itemSeverity()\"\n [size]=\"itemSize()\"\n [unstyled]=\"isUnstyled()\"\n [attr.href]=\"item.url\"\n [attr.target]=\"item.target ?? null\"\n [attr.rel]=\"item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.aria-label]=\"item.label ?? null\"\n [txTooltip]=\"item.label\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipDisabled]=\"!visible()\"\n (click)=\"run(item, $event)\"\n (keydown)=\"onListKeydown($event)\"\n ></a>\n } @else {\n <button\n txButton\n type=\"button\"\n role=\"menuitem\"\n class=\"tx-speed-dial__item\"\n [class]=\"passThrough().item?.class\"\n [style]=\"itemStyle($index)\"\n [icon]=\"item.icon\"\n [rounded]=\"true\"\n [tabindex]=\"-1\"\n [severity]=\"item.severity === 'danger' ? 'danger' : itemSeverity()\"\n [size]=\"itemSize()\"\n [disabled]=\"item.disabled ?? false\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"item.label ?? null\"\n [txTooltip]=\"item.label\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipDisabled]=\"!visible()\"\n (click)=\"run(item, $event)\"\n (keydown)=\"onListKeydown($event)\"\n ></button>\n }\n }\n</div>\n",
|
|
411
416
|
styles: [":host{position:relative;display:inline-flex;vertical-align:middle}:host(.tx-speed-dial--open){z-index:var(--tx-layer-popover)}.tx-speed-dial__mask{position:fixed;inset:0}.tx-speed-dial__button{position:relative;z-index:1}.tx-speed-dial__list{position:absolute;inset:0;z-index:1;pointer-events:none}.tx-speed-dial__item{position:absolute;top:50%;left:50%;translate:-50% -50%;visibility:hidden;opacity:0;pointer-events:none}:host(.tx-speed-dial--open) .tx-speed-dial__item{visibility:visible;opacity:1;translate:calc(-50% + var(--_x)) calc(-50% + var(--_y));pointer-events:auto}:host([data-styled]) .tx-speed-dial__mask{background:var(--tx-speed-dial-mask-background);animation:tx-speed-dial-fade var(--tx-speed-dial-duration) ease-out}:host([data-styled]) .tx-speed-dial__button ::ng-deep .tx-button__icon{transition:rotate var(--tx-speed-dial-duration) cubic-bezier(.2,0,0,1)}:host([data-styled]) .tx-speed-dial__item{scale:.6;transition:translate var(--tx-speed-dial-duration) cubic-bezier(.2,0,0,1),scale var(--tx-speed-dial-duration) cubic-bezier(.2,0,0,1),opacity var(--tx-speed-dial-duration) ease,visibility 0s linear var(--tx-speed-dial-duration)}:host([data-styled].tx-speed-dial--open) .tx-speed-dial__item{scale:1;transition-delay:calc(var(--_i) * var(--tx-speed-dial-stagger))}:host([data-styled].tx-speed-dial--open.tx-speed-dial--rotate) .tx-speed-dial__button ::ng-deep .tx-button__icon{rotate:45deg}@keyframes tx-speed-dial-fade{0%{opacity:0}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-speed-dial__mask{animation:none}:host([data-styled]) .tx-speed-dial__item,:host([data-styled]) .tx-speed-dial__button ::ng-deep .tx-button__icon{transition:none}}\n"],
|
|
412
|
-
dependencies: [
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
"
|
|
434
|
-
|
|
435
|
-
"
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
"
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
417
|
+
dependencies: [
|
|
418
|
+
{
|
|
419
|
+
kind: "directive",
|
|
420
|
+
type: RouterLink,
|
|
421
|
+
selector: "[routerLink]",
|
|
422
|
+
inputs: [
|
|
423
|
+
"target",
|
|
424
|
+
"queryParams",
|
|
425
|
+
"fragment",
|
|
426
|
+
"queryParamsHandling",
|
|
427
|
+
"state",
|
|
428
|
+
"info",
|
|
429
|
+
"relativeTo",
|
|
430
|
+
"preserveFragment",
|
|
431
|
+
"skipLocationChange",
|
|
432
|
+
"replaceUrl",
|
|
433
|
+
"browserUrl",
|
|
434
|
+
"routerLink"
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
kind: "component",
|
|
439
|
+
type: TxButton,
|
|
440
|
+
selector: "button[txButton], a[txButton]",
|
|
441
|
+
inputs: [
|
|
442
|
+
"label",
|
|
443
|
+
"severity",
|
|
444
|
+
"size",
|
|
445
|
+
"variant",
|
|
446
|
+
"outlined",
|
|
447
|
+
"text",
|
|
448
|
+
"link",
|
|
449
|
+
"rounded",
|
|
450
|
+
"raised",
|
|
451
|
+
"plain",
|
|
452
|
+
"fluid",
|
|
453
|
+
"disabled",
|
|
454
|
+
"tabindex",
|
|
455
|
+
"icon",
|
|
456
|
+
"iconPos",
|
|
457
|
+
"iconOnly",
|
|
458
|
+
"loading",
|
|
459
|
+
"loadingIcon",
|
|
460
|
+
"badge",
|
|
461
|
+
"badgeSeverity",
|
|
462
|
+
"dt",
|
|
463
|
+
"pt",
|
|
464
|
+
"ptOptions",
|
|
465
|
+
"unstyled"
|
|
466
|
+
]
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
kind: "directive",
|
|
470
|
+
type: TxTooltip,
|
|
471
|
+
selector: "[txTooltip]",
|
|
472
|
+
inputs: [
|
|
473
|
+
"txTooltip",
|
|
474
|
+
"tooltipPlacement",
|
|
475
|
+
"tooltipEvent",
|
|
476
|
+
"tooltipShowDelay",
|
|
477
|
+
"tooltipHideDelay",
|
|
478
|
+
"tooltipLife",
|
|
479
|
+
"tooltipOffset",
|
|
480
|
+
"tooltipArrow",
|
|
481
|
+
"tooltipInteractive",
|
|
482
|
+
"tooltipDisabled",
|
|
483
|
+
"tooltipOverflowOnly",
|
|
484
|
+
"tooltipMultiline",
|
|
485
|
+
"tooltipContext",
|
|
486
|
+
"tooltipClass",
|
|
487
|
+
"tooltipDt",
|
|
488
|
+
"tooltipPt",
|
|
489
|
+
"tooltipPtOptions",
|
|
490
|
+
"tooltipUnstyled"
|
|
491
|
+
],
|
|
492
|
+
outputs: ["tooltipShown", "tooltipHidden"],
|
|
493
|
+
exportAs: ["txTooltip"]
|
|
494
|
+
}
|
|
495
|
+
],
|
|
469
496
|
viewProviders: [provideTxIconDefaults(SPEED_DIAL_ICON_DEFAULTS)],
|
|
470
497
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
471
498
|
});
|
|
@@ -479,7 +506,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
479
506
|
type: Component,
|
|
480
507
|
args: [{
|
|
481
508
|
selector: "tx-speed-dial",
|
|
482
|
-
imports: [
|
|
509
|
+
imports: [
|
|
510
|
+
RouterLink,
|
|
511
|
+
TxButton,
|
|
512
|
+
TxTooltip
|
|
513
|
+
],
|
|
483
514
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
484
515
|
host: {
|
|
485
516
|
class: "tx-speed-dial",
|
|
@@ -492,7 +523,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
492
523
|
"[class.tx-speed-dial--rotate]": "!hideIcon()"
|
|
493
524
|
},
|
|
494
525
|
viewProviders: [provideTxIconDefaults(SPEED_DIAL_ICON_DEFAULTS)],
|
|
495
|
-
template: "@if (mask() && visible()) {\n <div class=\"tx-speed-dial__mask\" aria-hidden=\"true\" [class]=\"passThrough().mask?.class\" [style]=\"passThrough().mask?.style\"></div>\n}\n<button\n #button\n txButton\n type=\"button\"\n class=\"tx-speed-dial__button\"\n aria-haspopup=\"menu\"\n [class]=\"passThrough().button?.class\"\n [style]=\"passThrough().button?.style\"\n [icon]=\"currentIcon()\"\n [rounded]=\"true\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-expanded]=\"visible()\"\n [attr.aria-controls]=\"listId\"\n (click)=\"toggle($event)\"\n (keydown)=\"onButtonKeydown($event)\"\n></button>\n<div\n class=\"tx-speed-dial__list\"\n role=\"menu\"\n [id]=\"listId\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n>\n @for (item of items(); track $index) {\n <
|
|
526
|
+
template: "@if (mask() && visible()) {\n <div class=\"tx-speed-dial__mask\" aria-hidden=\"true\" [class]=\"passThrough().mask?.class\" [style]=\"passThrough().mask?.style\"></div>\n}\n<button\n #button\n txButton\n type=\"button\"\n class=\"tx-speed-dial__button\"\n aria-haspopup=\"menu\"\n [class]=\"passThrough().button?.class\"\n [style]=\"passThrough().button?.style\"\n [icon]=\"currentIcon()\"\n [rounded]=\"true\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-expanded]=\"visible()\"\n [attr.aria-controls]=\"listId\"\n (click)=\"toggle($event)\"\n (keydown)=\"onButtonKeydown($event)\"\n></button>\n<div\n class=\"tx-speed-dial__list\"\n role=\"menu\"\n [id]=\"listId\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n>\n @for (item of items(); track $index) {\n @if (item.routerLink && !item.disabled) {\n <a\n txButton\n role=\"menuitem\"\n class=\"tx-speed-dial__item\"\n [class]=\"passThrough().item?.class\"\n [style]=\"itemStyle($index)\"\n [icon]=\"item.icon\"\n [rounded]=\"true\"\n [tabindex]=\"-1\"\n [severity]=\"item.severity === 'danger' ? 'danger' : itemSeverity()\"\n [size]=\"itemSize()\"\n [unstyled]=\"isUnstyled()\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.aria-label]=\"item.label ?? null\"\n [txTooltip]=\"item.label\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipDisabled]=\"!visible()\"\n (click)=\"run(item, $event)\"\n (keydown)=\"onListKeydown($event)\"\n ></a>\n } @else if (item.url && !item.disabled) {\n <a\n txButton\n role=\"menuitem\"\n class=\"tx-speed-dial__item\"\n [class]=\"passThrough().item?.class\"\n [style]=\"itemStyle($index)\"\n [icon]=\"item.icon\"\n [rounded]=\"true\"\n [tabindex]=\"-1\"\n [severity]=\"item.severity === 'danger' ? 'danger' : itemSeverity()\"\n [size]=\"itemSize()\"\n [unstyled]=\"isUnstyled()\"\n [attr.href]=\"item.url\"\n [attr.target]=\"item.target ?? null\"\n [attr.rel]=\"item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.aria-label]=\"item.label ?? null\"\n [txTooltip]=\"item.label\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipDisabled]=\"!visible()\"\n (click)=\"run(item, $event)\"\n (keydown)=\"onListKeydown($event)\"\n ></a>\n } @else {\n <button\n txButton\n type=\"button\"\n role=\"menuitem\"\n class=\"tx-speed-dial__item\"\n [class]=\"passThrough().item?.class\"\n [style]=\"itemStyle($index)\"\n [icon]=\"item.icon\"\n [rounded]=\"true\"\n [tabindex]=\"-1\"\n [severity]=\"item.severity === 'danger' ? 'danger' : itemSeverity()\"\n [size]=\"itemSize()\"\n [disabled]=\"item.disabled ?? false\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"item.label ?? null\"\n [txTooltip]=\"item.label\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipDisabled]=\"!visible()\"\n (click)=\"run(item, $event)\"\n (keydown)=\"onListKeydown($event)\"\n ></button>\n }\n }\n</div>\n",
|
|
496
527
|
styles: [":host{position:relative;display:inline-flex;vertical-align:middle}:host(.tx-speed-dial--open){z-index:var(--tx-layer-popover)}.tx-speed-dial__mask{position:fixed;inset:0}.tx-speed-dial__button{position:relative;z-index:1}.tx-speed-dial__list{position:absolute;inset:0;z-index:1;pointer-events:none}.tx-speed-dial__item{position:absolute;top:50%;left:50%;translate:-50% -50%;visibility:hidden;opacity:0;pointer-events:none}:host(.tx-speed-dial--open) .tx-speed-dial__item{visibility:visible;opacity:1;translate:calc(-50% + var(--_x)) calc(-50% + var(--_y));pointer-events:auto}:host([data-styled]) .tx-speed-dial__mask{background:var(--tx-speed-dial-mask-background);animation:tx-speed-dial-fade var(--tx-speed-dial-duration) ease-out}:host([data-styled]) .tx-speed-dial__button ::ng-deep .tx-button__icon{transition:rotate var(--tx-speed-dial-duration) cubic-bezier(.2,0,0,1)}:host([data-styled]) .tx-speed-dial__item{scale:.6;transition:translate var(--tx-speed-dial-duration) cubic-bezier(.2,0,0,1),scale var(--tx-speed-dial-duration) cubic-bezier(.2,0,0,1),opacity var(--tx-speed-dial-duration) ease,visibility 0s linear var(--tx-speed-dial-duration)}:host([data-styled].tx-speed-dial--open) .tx-speed-dial__item{scale:1;transition-delay:calc(var(--_i) * var(--tx-speed-dial-stagger))}:host([data-styled].tx-speed-dial--open.tx-speed-dial--rotate) .tx-speed-dial__button ::ng-deep .tx-button__icon{rotate:45deg}@keyframes tx-speed-dial-fade{0%{opacity:0}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-speed-dial__mask{animation:none}:host([data-styled]) .tx-speed-dial__item,:host([data-styled]) .tx-speed-dial__button ::ng-deep .tx-button__icon{transition:none}}\n"]
|
|
497
528
|
}]
|
|
498
529
|
}],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-speed-dial.mjs","names":[],"sources":["../../../../packages/ui/speed-dial/src/speed-dial.icons.ts","../../../../packages/ui/speed-dial/src/speed-dial.theme.ts","../../../../packages/ui/speed-dial/src/speed-dial.component.ts","../../../../packages/ui/speed-dial/src/speed-dial.component.html"],"sourcesContent":["import { TxIconSet, txIconCircle, txIconList, txIconPlus } from '@tectra-ng/icons';\n\nexport const SPEED_DIAL_ICON_DEFAULTS: TxIconSet = {\n circle: txIconCircle,\n list: txIconList,\n plus: txIconPlus,\n};\n","import { speedDialTokens } from '@tectra-ng/themes';\n\nexport const SPEED_DIAL_THEME = {\n speedDial: speedDialTokens,\n};\n","import {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n ElementRef,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxPlacement } from '@tectra-ng/core/overlay';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraSpeedDialTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton, TxButtonSeverity, TxButtonSize } from '@tectra-ng/ui/button';\nimport { TxMenuItem, TxMenuItemEvent } from '@tectra-ng/ui/menu';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { TxSpeedDialDirection, TxSpeedDialPart, TxSpeedDialType } from './speed-dial.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { SPEED_DIAL_ICON_DEFAULTS } from './speed-dial.icons';\nimport { SPEED_DIAL_THEME } from './speed-dial.theme';\n\nconst ARCS: Record<string, [number, number]> = {\n 'semi-circle up': [180, 360],\n 'semi-circle down': [0, 180],\n 'semi-circle left': [90, 270],\n 'semi-circle right': [-90, 90],\n 'quarter-circle up-left': [180, 270],\n 'quarter-circle up-right': [270, 360],\n 'quarter-circle down-left': [90, 180],\n 'quarter-circle down-right': [0, 90],\n};\n\nconst LINEAR: Record<string, [number, number]> = {\n up: [0, -1],\n down: [0, 1],\n left: [-1, 0],\n right: [1, 0],\n 'up-left': [-1, -1],\n 'up-right': [1, -1],\n 'down-left': [-1, 1],\n 'down-right': [1, 1],\n};\n\n@Component({\n selector: 'tx-speed-dial',\n imports: [TxButton, TxTooltip],\n templateUrl: './speed-dial.component.html',\n styleUrl: './speed-dial.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-speed-dial',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-direction]': 'direction()',\n '[attr.data-type]': 'type()',\n '[class.tx-speed-dial--open]': 'visible()',\n '[class.tx-speed-dial--rotate]': '!hideIcon()',\n },\n viewProviders: [provideTxIconDefaults(SPEED_DIAL_ICON_DEFAULTS)],\n})\nexport class TxSpeedDial {\n private readonly speedDialTheme = injectTokens(SPEED_DIAL_THEME);\n\n private host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private document = inject(DOCUMENT);\n\n readonly model = input<TxMenuItem[]>([]);\n readonly visible = model(false);\n readonly direction = input<TxSpeedDialDirection>('up');\n readonly type = input<TxSpeedDialType>('linear');\n readonly radius = input<number, unknown>(80, { transform: numberAttribute });\n readonly mask = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly hideOnClickOutside = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showIcon = input<string>('plus');\n readonly hideIcon = input<string | undefined>(undefined);\n readonly severity = input<TxButtonSeverity>('primary');\n readonly itemSeverity = input<TxButtonSeverity>('secondary');\n readonly size = input<TxButtonSize>('medium');\n readonly itemSize = input<TxButtonSize>('small');\n readonly disabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraSpeedDialTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxSpeedDialPart, TxSpeedDial> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly itemSelected = output<TxMenuItemEvent>();\n readonly opened = output<void>();\n readonly closed = output<void>();\n\n private readonly button = viewChild.required('button', { read: ElementRef });\n private readonly sizes = signal({ button: 37, item: 30, gap: 7 });\n\n readonly listId = uniqueId('tx-speed-dial');\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('speedDial', this, this.pt, this.ptOptions);\n readonly items = computed(() => this.model().filter((item) => item.visible !== false && !item.separator));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-speed-dial'), ...this.passThrough().root?.style }));\n readonly currentIcon = computed(() => (this.visible() ? (this.hideIcon() ?? this.showIcon()) : this.showIcon()));\n readonly tooltipPlacement = computed<TxPlacement>(() => {\n const direction = this.direction();\n if (this.type() !== 'linear') {\n return 'top';\n }\n return direction === 'up' || direction === 'down' ? 'left' : 'top';\n });\n readonly offsets = computed(() => {\n const count = this.items().length;\n const type = this.type();\n const direction = this.direction();\n if (type === 'linear') {\n const [dx, dy] = LINEAR[direction] ?? LINEAR['up'];\n const { button, item, gap } = this.sizes();\n return this.items().map((_, index) => {\n const distance = button / 2 + gap + item / 2 + index * (item + gap);\n return { x: dx * distance, y: dy * distance };\n });\n }\n const [start, end] = type === 'circle' ? [-90, 270] : (ARCS[`${type} ${direction}`] ?? ARCS[`${type} up`] ?? [180, 270]);\n const spread = type === 'circle' ? (end - start) / Math.max(count, 1) : (end - start) / Math.max(count - 1, 1);\n return this.items().map((_, index) => {\n const angle = ((start + spread * index) * Math.PI) / 180;\n return { x: Math.round(Math.cos(angle) * this.radius()), y: Math.round(Math.sin(angle) * this.radius()) };\n });\n });\n\n constructor() {\n effect((onCleanup) => {\n if (!this.visible() || !this.hideOnClickOutside()) {\n return;\n }\n const listener = (event: Event) => {\n if (!(event.target instanceof Node) || !this.host.contains(event.target)) {\n this.hide();\n }\n };\n this.document.addEventListener('pointerdown', listener, true);\n onCleanup(() => this.document.removeEventListener('pointerdown', listener, true));\n });\n }\n\n itemStyle(index: number): Record<string, string> {\n const offset = this.offsets()[index] ?? { x: 0, y: 0 };\n return { '--_x': `${offset.x}px`, '--_y': `${offset.y}px`, '--_i': String(index), ...this.passThrough().item?.style };\n }\n\n show(focusFirst = false): void {\n if (this.disabled()) {\n return;\n }\n this.measure();\n if (!this.visible()) {\n this.visible.set(true);\n this.opened.emit();\n }\n if (focusFirst) {\n setTimeout(() => this.focusItem(0));\n }\n }\n\n hide(focusButton = false): void {\n if (this.visible()) {\n this.visible.set(false);\n this.closed.emit();\n }\n if (focusButton) {\n (this.button().nativeElement as HTMLElement).focus();\n }\n }\n\n toggle(event?: MouseEvent): void {\n if (this.visible()) {\n this.hide();\n } else {\n this.show(event?.detail === 0);\n }\n }\n\n run(item: TxMenuItem, event: Event): void {\n if (item.disabled) {\n return;\n }\n const itemEvent: TxMenuItemEvent = { item, originalEvent: event };\n item.command?.(itemEvent);\n this.itemSelected.emit(itemEvent);\n this.hide(true);\n }\n\n onButtonKeydown(event: KeyboardEvent): void {\n if (event.key.startsWith('Arrow') && !this.visible()) {\n event.preventDefault();\n this.show(true);\n } else if (event.key === 'Escape' && this.visible()) {\n event.preventDefault();\n this.hide();\n }\n }\n\n onListKeydown(event: KeyboardEvent): void {\n const elements = this.itemElements();\n const current = elements.indexOf(this.document.activeElement as HTMLElement);\n const [nextKeys, previousKeys] = this.arrowKeys();\n if (nextKeys.includes(event.key)) {\n event.preventDefault();\n this.focusItem((current + 1) % elements.length);\n } else if (previousKeys.includes(event.key)) {\n event.preventDefault();\n this.focusItem((current - 1 + elements.length) % elements.length);\n } else if (event.key === 'Home' || event.key === 'End') {\n event.preventDefault();\n this.focusItem(event.key === 'Home' ? 0 : elements.length - 1);\n } else if (event.key === 'Escape') {\n event.preventDefault();\n this.hide(true);\n } else if (event.key === 'Tab') {\n this.hide();\n }\n }\n\n private arrowKeys(): [string[], string[]] {\n const direction = this.direction();\n if (this.type() === 'linear') {\n const forward = direction.startsWith('up') ? 'ArrowUp' : direction.startsWith('down') ? 'ArrowDown' : direction === 'left' ? 'ArrowLeft' : 'ArrowRight';\n const back = { ArrowUp: 'ArrowDown', ArrowDown: 'ArrowUp', ArrowLeft: 'ArrowRight', ArrowRight: 'ArrowLeft' }[forward] as string;\n return [[forward], [back]];\n }\n return [\n ['ArrowRight', 'ArrowDown'],\n ['ArrowLeft', 'ArrowUp'],\n ];\n }\n\n private focusItem(index: number): void {\n this.itemElements()[index]?.focus();\n }\n\n private itemElements(): HTMLElement[] {\n return [...this.host.querySelectorAll<HTMLElement>('.tx-speed-dial__item:not([disabled])')];\n }\n\n private measure(): void {\n const button = this.button().nativeElement as HTMLElement;\n const item = this.host.querySelector<HTMLElement>('.tx-speed-dial__item');\n const gap = parseFloat(this.document.defaultView?.getComputedStyle(this.host).getPropertyValue('--tx-speed-dial-gap') ?? '') || 7;\n if (button.offsetWidth) {\n this.sizes.set({ button: button.offsetWidth, item: item?.offsetWidth || button.offsetWidth, gap });\n }\n }\n}\n","@if (mask() && visible()) {\n <div class=\"tx-speed-dial__mask\" aria-hidden=\"true\" [class]=\"passThrough().mask?.class\" [style]=\"passThrough().mask?.style\"></div>\n}\n<button\n #button\n txButton\n type=\"button\"\n class=\"tx-speed-dial__button\"\n aria-haspopup=\"menu\"\n [class]=\"passThrough().button?.class\"\n [style]=\"passThrough().button?.style\"\n [icon]=\"currentIcon()\"\n [rounded]=\"true\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-expanded]=\"visible()\"\n [attr.aria-controls]=\"listId\"\n (click)=\"toggle($event)\"\n (keydown)=\"onButtonKeydown($event)\"\n></button>\n<div\n class=\"tx-speed-dial__list\"\n role=\"menu\"\n [id]=\"listId\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n>\n @for (item of items(); track $index) {\n <button\n txButton\n type=\"button\"\n role=\"menuitem\"\n class=\"tx-speed-dial__item\"\n [class]=\"passThrough().item?.class\"\n [style]=\"itemStyle($index)\"\n [icon]=\"item.icon\"\n [rounded]=\"true\"\n [tabindex]=\"-1\"\n [severity]=\"item.severity === 'danger' ? 'danger' : itemSeverity()\"\n [size]=\"itemSize()\"\n [disabled]=\"item.disabled ?? false\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"item.label ?? null\"\n [txTooltip]=\"item.label\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipDisabled]=\"!visible()\"\n (click)=\"run(item, $event)\"\n (keydown)=\"onListKeydown($event)\"\n ></button>\n }\n</div>\n"],"mappings":";;;;;;;;;AAEA,MAAa,2BAAsC;CACjD,QAAQ;CACR,MAAM;CACN,MAAM;AACP;ACJD,MAAa,mBAAmB,EAC9B,WAAW,gBACZ;ACyBD,MAAM,OAAyC;CAC7C,kBAAkB,CAAC,KAAK,GAAG;CAC3B,oBAAoB,CAAC,GAAG,GAAG;CAC3B,oBAAoB,CAAC,IAAI,GAAG;CAC5B,qBAAqB,CAAC,KAAK,EAAE;CAC7B,0BAA0B,CAAC,KAAK,GAAG;CACnC,2BAA2B,CAAC,KAAK,GAAG;CACpC,4BAA4B,CAAC,IAAI,GAAG;CACpC,6BAA6B,CAAC,GAAG,EAAE;AACpC;AAED,MAAM,SAA2C;CAC/C,IAAI,CAAC,GAAG,EAAE;CACV,MAAM,CAAC,GAAG,CAAC;CACX,MAAM,CAAC,IAAI,CAAC;CACZ,OAAO,CAAC,GAAG,CAAC;CACZ,WAAW,CAAC,IAAI,EAAE;CAClB,YAAY,CAAC,GAAG,EAAE;CAClB,aAAa,CAAC,IAAI,CAAC;CACnB,cAAc,CAAC,GAAG,CAAC;AACpB;AAoBD,IAAa,cAAb,MAAa,YAAW;CACL,iBAAiB,aAAa,gBAAgB;CAEvD,OAAO,OAAgC,UAAU,CAAC,CAAC;CACnD,WAAW,OAAO,QAAQ;CAEzB,QAAQ,MAAoB,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAC/B,UAAU,MAAM,OAAM,GA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EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,UAAQ;IAAI,MAAM;IAAY,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-speed-dial.mjs","names":[],"sources":["../../../../packages/ui/speed-dial/src/speed-dial.icons.ts","../../../../packages/ui/speed-dial/src/speed-dial.theme.ts","../../../../packages/ui/speed-dial/src/speed-dial.component.ts","../../../../packages/ui/speed-dial/src/speed-dial.component.html"],"sourcesContent":["import { TxIconSet, txIconCircle, txIconList, txIconPlus } from '@tectra-ng/icons';\n\nexport const SPEED_DIAL_ICON_DEFAULTS: TxIconSet = {\n circle: txIconCircle,\n list: txIconList,\n plus: txIconPlus,\n};\n","import { speedDialTokens } from '@tectra-ng/themes';\n\nexport const SPEED_DIAL_THEME = {\n speedDial: speedDialTokens,\n};\n","import {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n ElementRef,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxPlacement } from '@tectra-ng/core/overlay';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraSpeedDialTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton, TxButtonSeverity, TxButtonSize } from '@tectra-ng/ui/button';\nimport { TxMenuItem, TxMenuItemEvent } from '@tectra-ng/ui/menu';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { TxSpeedDialDirection, TxSpeedDialPart, TxSpeedDialType } from './speed-dial.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { SPEED_DIAL_ICON_DEFAULTS } from './speed-dial.icons';\nimport { SPEED_DIAL_THEME } from './speed-dial.theme';\n\nconst ARCS: Record<string, [number, number]> = {\n 'semi-circle up': [180, 360],\n 'semi-circle down': [0, 180],\n 'semi-circle left': [90, 270],\n 'semi-circle right': [-90, 90],\n 'quarter-circle up-left': [180, 270],\n 'quarter-circle up-right': [270, 360],\n 'quarter-circle down-left': [90, 180],\n 'quarter-circle down-right': [0, 90],\n};\n\nconst LINEAR: Record<string, [number, number]> = {\n up: [0, -1],\n down: [0, 1],\n left: [-1, 0],\n right: [1, 0],\n 'up-left': [-1, -1],\n 'up-right': [1, -1],\n 'down-left': [-1, 1],\n 'down-right': [1, 1],\n};\n\n@Component({\n selector: 'tx-speed-dial',\n imports: [RouterLink, TxButton, TxTooltip],\n templateUrl: './speed-dial.component.html',\n styleUrl: './speed-dial.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-speed-dial',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-direction]': 'direction()',\n '[attr.data-type]': 'type()',\n '[class.tx-speed-dial--open]': 'visible()',\n '[class.tx-speed-dial--rotate]': '!hideIcon()',\n },\n viewProviders: [provideTxIconDefaults(SPEED_DIAL_ICON_DEFAULTS)],\n})\nexport class TxSpeedDial {\n private readonly speedDialTheme = injectTokens(SPEED_DIAL_THEME);\n\n private host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private document = inject(DOCUMENT);\n\n readonly model = input<TxMenuItem[]>([]);\n readonly visible = model(false);\n readonly direction = input<TxSpeedDialDirection>('up');\n readonly type = input<TxSpeedDialType>('linear');\n readonly radius = input<number, unknown>(80, { transform: numberAttribute });\n readonly mask = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly hideOnClickOutside = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showIcon = input<string>('plus');\n readonly hideIcon = input<string | undefined>(undefined);\n readonly severity = input<TxButtonSeverity>('primary');\n readonly itemSeverity = input<TxButtonSeverity>('secondary');\n readonly size = input<TxButtonSize>('medium');\n readonly itemSize = input<TxButtonSize>('small');\n readonly disabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraSpeedDialTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxSpeedDialPart, TxSpeedDial> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly itemSelected = output<TxMenuItemEvent>();\n readonly opened = output<void>();\n readonly closed = output<void>();\n\n private readonly button = viewChild.required('button', { read: ElementRef });\n private readonly sizes = signal({ button: 37, item: 30, gap: 7 });\n\n readonly listId = uniqueId('tx-speed-dial');\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('speedDial', this, this.pt, this.ptOptions);\n readonly items = computed(() => this.model().filter((item) => item.visible !== false && !item.separator));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-speed-dial'), ...this.passThrough().root?.style }));\n readonly currentIcon = computed(() => (this.visible() ? (this.hideIcon() ?? this.showIcon()) : this.showIcon()));\n readonly tooltipPlacement = computed<TxPlacement>(() => {\n const direction = this.direction();\n if (this.type() !== 'linear') {\n return 'top';\n }\n return direction === 'up' || direction === 'down' ? 'left' : 'top';\n });\n readonly offsets = computed(() => {\n const count = this.items().length;\n const type = this.type();\n const direction = this.direction();\n if (type === 'linear') {\n const [dx, dy] = LINEAR[direction] ?? LINEAR['up'];\n const { button, item, gap } = this.sizes();\n return this.items().map((_, index) => {\n const distance = button / 2 + gap + item / 2 + index * (item + gap);\n return { x: dx * distance, y: dy * distance };\n });\n }\n const [start, end] = type === 'circle' ? [-90, 270] : (ARCS[`${type} ${direction}`] ?? ARCS[`${type} up`] ?? [180, 270]);\n const spread = type === 'circle' ? (end - start) / Math.max(count, 1) : (end - start) / Math.max(count - 1, 1);\n return this.items().map((_, index) => {\n const angle = ((start + spread * index) * Math.PI) / 180;\n return { x: Math.round(Math.cos(angle) * this.radius()), y: Math.round(Math.sin(angle) * this.radius()) };\n });\n });\n\n constructor() {\n effect((onCleanup) => {\n if (!this.visible() || !this.hideOnClickOutside()) {\n return;\n }\n const listener = (event: Event) => {\n if (!(event.target instanceof Node) || !this.host.contains(event.target)) {\n this.hide();\n }\n };\n this.document.addEventListener('pointerdown', listener, true);\n onCleanup(() => this.document.removeEventListener('pointerdown', listener, true));\n });\n }\n\n itemStyle(index: number): Record<string, string> {\n const offset = this.offsets()[index] ?? { x: 0, y: 0 };\n return { '--_x': `${offset.x}px`, '--_y': `${offset.y}px`, '--_i': String(index), ...this.passThrough().item?.style };\n }\n\n show(focusFirst = false): void {\n if (this.disabled()) {\n return;\n }\n this.measure();\n if (!this.visible()) {\n this.visible.set(true);\n this.opened.emit();\n }\n if (focusFirst) {\n setTimeout(() => this.focusItem(0));\n }\n }\n\n hide(focusButton = false): void {\n if (this.visible()) {\n this.visible.set(false);\n this.closed.emit();\n }\n if (focusButton) {\n (this.button().nativeElement as HTMLElement).focus();\n }\n }\n\n toggle(event?: MouseEvent): void {\n if (this.visible()) {\n this.hide();\n } else {\n this.show(event?.detail === 0);\n }\n }\n\n run(item: TxMenuItem, event: Event): void {\n if (item.disabled) {\n return;\n }\n const itemEvent: TxMenuItemEvent = { item, originalEvent: event };\n item.command?.(itemEvent);\n this.itemSelected.emit(itemEvent);\n this.hide(true);\n }\n\n onButtonKeydown(event: KeyboardEvent): void {\n if (event.key.startsWith('Arrow') && !this.visible()) {\n event.preventDefault();\n this.show(true);\n } else if (event.key === 'Escape' && this.visible()) {\n event.preventDefault();\n this.hide();\n }\n }\n\n onListKeydown(event: KeyboardEvent): void {\n const elements = this.itemElements();\n const current = elements.indexOf(this.document.activeElement as HTMLElement);\n const [nextKeys, previousKeys] = this.arrowKeys();\n if (nextKeys.includes(event.key)) {\n event.preventDefault();\n this.focusItem((current + 1) % elements.length);\n } else if (previousKeys.includes(event.key)) {\n event.preventDefault();\n this.focusItem((current - 1 + elements.length) % elements.length);\n } else if (event.key === 'Home' || event.key === 'End') {\n event.preventDefault();\n this.focusItem(event.key === 'Home' ? 0 : elements.length - 1);\n } else if (event.key === 'Escape') {\n event.preventDefault();\n this.hide(true);\n } else if (event.key === 'Tab') {\n this.hide();\n } else if (event.key === ' ' && event.target instanceof HTMLAnchorElement) {\n event.preventDefault();\n event.target.click();\n }\n }\n\n private arrowKeys(): [string[], string[]] {\n const direction = this.direction();\n if (this.type() === 'linear') {\n const forward = direction.startsWith('up') ? 'ArrowUp' : direction.startsWith('down') ? 'ArrowDown' : direction === 'left' ? 'ArrowLeft' : 'ArrowRight';\n const back = { ArrowUp: 'ArrowDown', ArrowDown: 'ArrowUp', ArrowLeft: 'ArrowRight', ArrowRight: 'ArrowLeft' }[forward] as string;\n return [[forward], [back]];\n }\n return [\n ['ArrowRight', 'ArrowDown'],\n ['ArrowLeft', 'ArrowUp'],\n ];\n }\n\n private focusItem(index: number): void {\n this.itemElements()[index]?.focus();\n }\n\n private itemElements(): HTMLElement[] {\n return [...this.host.querySelectorAll<HTMLElement>('.tx-speed-dial__item:not([disabled])')];\n }\n\n private measure(): void {\n const button = this.button().nativeElement as HTMLElement;\n const item = this.host.querySelector<HTMLElement>('.tx-speed-dial__item');\n const gap = parseFloat(this.document.defaultView?.getComputedStyle(this.host).getPropertyValue('--tx-speed-dial-gap') ?? '') || 7;\n if (button.offsetWidth) {\n this.sizes.set({ button: button.offsetWidth, item: item?.offsetWidth || button.offsetWidth, gap });\n }\n }\n}\n","@if (mask() && visible()) {\n <div class=\"tx-speed-dial__mask\" aria-hidden=\"true\" [class]=\"passThrough().mask?.class\" [style]=\"passThrough().mask?.style\"></div>\n}\n<button\n #button\n txButton\n type=\"button\"\n class=\"tx-speed-dial__button\"\n aria-haspopup=\"menu\"\n [class]=\"passThrough().button?.class\"\n [style]=\"passThrough().button?.style\"\n [icon]=\"currentIcon()\"\n [rounded]=\"true\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-expanded]=\"visible()\"\n [attr.aria-controls]=\"listId\"\n (click)=\"toggle($event)\"\n (keydown)=\"onButtonKeydown($event)\"\n></button>\n<div\n class=\"tx-speed-dial__list\"\n role=\"menu\"\n [id]=\"listId\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n>\n @for (item of items(); track $index) {\n @if (item.routerLink && !item.disabled) {\n <a\n txButton\n role=\"menuitem\"\n class=\"tx-speed-dial__item\"\n [class]=\"passThrough().item?.class\"\n [style]=\"itemStyle($index)\"\n [icon]=\"item.icon\"\n [rounded]=\"true\"\n [tabindex]=\"-1\"\n [severity]=\"item.severity === 'danger' ? 'danger' : itemSeverity()\"\n [size]=\"itemSize()\"\n [unstyled]=\"isUnstyled()\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.aria-label]=\"item.label ?? null\"\n [txTooltip]=\"item.label\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipDisabled]=\"!visible()\"\n (click)=\"run(item, $event)\"\n (keydown)=\"onListKeydown($event)\"\n ></a>\n } @else if (item.url && !item.disabled) {\n <a\n txButton\n role=\"menuitem\"\n class=\"tx-speed-dial__item\"\n [class]=\"passThrough().item?.class\"\n [style]=\"itemStyle($index)\"\n [icon]=\"item.icon\"\n [rounded]=\"true\"\n [tabindex]=\"-1\"\n [severity]=\"item.severity === 'danger' ? 'danger' : itemSeverity()\"\n [size]=\"itemSize()\"\n [unstyled]=\"isUnstyled()\"\n [attr.href]=\"item.url\"\n [attr.target]=\"item.target ?? null\"\n [attr.rel]=\"item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.aria-label]=\"item.label ?? null\"\n [txTooltip]=\"item.label\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipDisabled]=\"!visible()\"\n (click)=\"run(item, $event)\"\n (keydown)=\"onListKeydown($event)\"\n ></a>\n } @else {\n <button\n txButton\n type=\"button\"\n role=\"menuitem\"\n class=\"tx-speed-dial__item\"\n [class]=\"passThrough().item?.class\"\n [style]=\"itemStyle($index)\"\n [icon]=\"item.icon\"\n [rounded]=\"true\"\n [tabindex]=\"-1\"\n [severity]=\"item.severity === 'danger' ? 'danger' : itemSeverity()\"\n [size]=\"itemSize()\"\n [disabled]=\"item.disabled ?? false\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"item.label ?? null\"\n [txTooltip]=\"item.label\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipDisabled]=\"!visible()\"\n (click)=\"run(item, $event)\"\n (keydown)=\"onListKeydown($event)\"\n ></button>\n }\n }\n</div>\n"],"mappings":";;;;;;;;;;AAEA,MAAa,2BAAsC;CACjD,QAAQ;CACR,MAAM;CACN,MAAM;AACP;ACJD,MAAa,mBAAmB,EAC9B,WAAW,gBACZ;AC0BD,MAAM,OAAyC;CAC7C,kBAAkB,CAAC,KAAK,GAAG;CAC3B,oBAAoB,CAAC,GAAG,GAAG;CAC3B,oBAAoB,CAAC,IAAI,GAAG;CAC5B,qBAAqB,CAAC,KAAK,EAAE;CAC7B,0BAA0B,CAAC,KAAK,GAAG;CACnC,2BAA2B,CAAC,KAAK,GAAG;CACpC,4BAA4B,CAAC,IAAI,GAAG;CACpC,6BAA6B,CAAC,GAAG,EAAE;AACpC;AAED,MAAM,SAA2C;CAC/C,IAAI,CAAC,GAAG,EAAE;CACV,MAAM,CAAC,GAAG,CAAC;CACX,MAAM,CAAC,IAAI,CAAC;CACZ,OAAO,CAAC,GAAG,CAAC;CACZ,WAAW,CAAC,IAAI,EAAE;CAClB,YAAY,CAAC,GAAG,EAAE;CAClB,aAAa,CAAC,IAAI,CAAC;CACnB,c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MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,cAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,UAAQ;IAAI,MAAM;IAAY,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
@@ -3,13 +3,16 @@ import { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, compu
|
|
|
3
3
|
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
4
|
import { injectTranslations } from "@tectra-ng/core/i18n";
|
|
5
5
|
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
6
|
-
import { splitButtonTokens, toStyleObject } from "@tectra-ng/themes";
|
|
6
|
+
import { buttonGroupTokens, splitButtonTokens, toStyleObject } from "@tectra-ng/themes";
|
|
7
7
|
import { TxButton } from "@tectra-ng/ui/button";
|
|
8
8
|
import { TxButtonGroup } from "@tectra-ng/ui/button-group";
|
|
9
9
|
import { TxMenu } from "@tectra-ng/ui/menu";
|
|
10
10
|
import { provideTxIconDefaults, txIconChevronDown } from "@tectra-ng/icons";
|
|
11
11
|
const SPLIT_BUTTON_ICON_DEFAULTS = { "chevron-down": txIconChevronDown };
|
|
12
|
-
const SPLIT_BUTTON_THEME = {
|
|
12
|
+
const SPLIT_BUTTON_THEME = {
|
|
13
|
+
buttonGroup: buttonGroupTokens,
|
|
14
|
+
splitButton: splitButtonTokens
|
|
15
|
+
};
|
|
13
16
|
var TxSplitButton = class TxSplitButton {
|
|
14
17
|
splitButtonTheme = injectTokens(SPLIT_BUTTON_THEME);
|
|
15
18
|
label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
@@ -299,12 +302,20 @@ var TxSplitButton = class TxSplitButton {
|
|
|
299
302
|
/>
|
|
300
303
|
`,
|
|
301
304
|
isInline: true,
|
|
302
|
-
styles: [":host{display:inline-flex;vertical-align:middle}:host([data-styled]
|
|
305
|
+
styles: [":host{display:inline-flex;vertical-align:middle}:host([data-styled]) .tx-split-button__group{--tx-button-group-divider-width: var(--tx-split-button-divider-width);--tx-button-group-divider-color: var(--tx-split-button-divider-color)}\n"],
|
|
303
306
|
dependencies: [
|
|
304
307
|
{
|
|
305
308
|
kind: "component",
|
|
306
309
|
type: TxButtonGroup,
|
|
307
|
-
selector: "tx-button-group"
|
|
310
|
+
selector: "tx-button-group",
|
|
311
|
+
inputs: [
|
|
312
|
+
"orientation",
|
|
313
|
+
"fluid",
|
|
314
|
+
"dt",
|
|
315
|
+
"pt",
|
|
316
|
+
"ptOptions",
|
|
317
|
+
"unstyled"
|
|
318
|
+
]
|
|
308
319
|
},
|
|
309
320
|
{
|
|
310
321
|
kind: "component",
|
|
@@ -449,7 +460,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
449
460
|
"[attr.data-filled]": "!outlined() && !text() || null"
|
|
450
461
|
},
|
|
451
462
|
viewProviders: [provideTxIconDefaults(SPLIT_BUTTON_ICON_DEFAULTS)],
|
|
452
|
-
styles: [":host{display:inline-flex;vertical-align:middle}:host([data-styled]
|
|
463
|
+
styles: [":host{display:inline-flex;vertical-align:middle}:host([data-styled]) .tx-split-button__group{--tx-button-group-divider-width: var(--tx-split-button-divider-width);--tx-button-group-divider-color: var(--tx-split-button-divider-color)}\n"]
|
|
453
464
|
}]
|
|
454
465
|
}],
|
|
455
466
|
propDecorators: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-split-button.mjs","names":[],"sources":["../../../../packages/ui/split-button/src/split-button.icons.ts","../../../../packages/ui/split-button/src/split-button.theme.ts","../../../../packages/ui/split-button/src/split-button.component.ts"],"sourcesContent":["import { TxIconSet, txIconChevronDown } from '@tectra-ng/icons';\n\nexport const SPLIT_BUTTON_ICON_DEFAULTS: TxIconSet = {\n 'chevron-down': txIconChevronDown,\n};\n","import { splitButtonTokens } from '@tectra-ng/themes';\n\nexport const SPLIT_BUTTON_THEME = {\n splitButton: splitButtonTokens,\n};\n","import { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, computed, input, output, viewChild } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraSplitButtonTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton, TxButtonSeverity, TxButtonSize } from '@tectra-ng/ui/button';\nimport { TxButtonGroup } from '@tectra-ng/ui/button-group';\nimport { TxMenu, TxMenuFocus, TxMenuItem, TxMenuItemEvent } from '@tectra-ng/ui/menu';\nimport { TxSplitButtonPart } from './split-button.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { SPLIT_BUTTON_ICON_DEFAULTS } from './split-button.icons';\nimport { SPLIT_BUTTON_THEME } from './split-button.theme';\n\n@Component({\n selector: 'tx-split-button',\n imports: [TxButtonGroup, TxButton, TxMenu],\n template: `\n <tx-button-group class=\"tx-split-button__group\">\n <button\n txButton\n type=\"button\"\n class=\"tx-split-button__button\"\n [class]=\"passThrough().button?.class\"\n [style]=\"passThrough().button?.style\"\n [label]=\"label()\"\n [icon]=\"icon()\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [outlined]=\"outlined()\"\n [text]=\"text()\"\n [raised]=\"raised()\"\n [rounded]=\"rounded()\"\n [disabled]=\"disabled()\"\n [loading]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n (click)=\"clicked.emit($event)\"\n >\n <ng-content />\n </button>\n <button\n txButton\n type=\"button\"\n class=\"tx-split-button__menu-button\"\n icon=\"chevron-down\"\n aria-haspopup=\"menu\"\n [class]=\"passThrough().menuButton?.class\"\n [style]=\"passThrough().menuButton?.style\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [outlined]=\"outlined()\"\n [text]=\"text()\"\n [raised]=\"raised()\"\n [rounded]=\"rounded()\"\n [disabled]=\"disabled() || menuDisabled()\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"menuLabel()\"\n [attr.aria-expanded]=\"menu().isOpen()\"\n [attr.aria-controls]=\"menu().isOpen() ? menu().id : null\"\n (click)=\"menu().toggle($event)\"\n (keydown.arrowdown)=\"open($event, 'first')\"\n (keydown.arrowup)=\"open($event, 'last')\"\n ></button>\n </tx-button-group>\n <tx-tiered-menu\n popup\n arrow\n placement=\"bottom-end\"\n [model]=\"model()\"\n [ariaLabel]=\"menuLabel()\"\n [unstyled]=\"isUnstyled()\"\n (itemSelected)=\"itemSelected.emit($event)\"\n (opened)=\"menuOpened.emit()\"\n (closed)=\"menuClosed.emit()\"\n />\n `,\n styleUrl: './split-button.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-split-button',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-filled]': '!outlined() && !text() || null',\n },\n viewProviders: [provideTxIconDefaults(SPLIT_BUTTON_ICON_DEFAULTS)],\n})\nexport class TxSplitButton {\n private readonly splitButtonTheme = injectTokens(SPLIT_BUTTON_THEME);\n\n readonly label = input<string | undefined>(undefined);\n readonly icon = input<string | undefined>(undefined);\n readonly model = input<TxMenuItem[]>([]);\n readonly severity = input<TxButtonSeverity>('primary');\n readonly size = input<TxButtonSize>('medium');\n readonly outlined = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly text = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly raised = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly rounded = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly disabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly menuDisabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly menuAriaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraSplitButtonTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxSplitButtonPart, TxSplitButton> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly clicked = output<MouseEvent>();\n readonly itemSelected = output<TxMenuItemEvent>();\n readonly menuOpened = output<void>();\n readonly menuClosed = output<void>();\n\n readonly group = viewChild.required(TxButtonGroup, { read: ElementRef<HTMLElement> });\n readonly menu = viewChild.required(TxMenu);\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('splitButton', this, this.pt, this.ptOptions);\n readonly menuLabel = computed(() => this.menuAriaLabel() ?? this.translations().moreActions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-split-button'), ...this.passThrough().root?.style }));\n\n open(event: Event, focus: TxMenuFocus): void {\n event.preventDefault();\n this.menu().show(event, focus);\n }\n}\n"],"mappings":";;;;;;;;;;AAEA,MAAa,6BAAwC,EACnD,gBAAgB,kBACjB;ACFD,MAAa,qBAAqB,EAChC,aAAa,kBACd;ACkFD,IAAa,gBAAb,MAAa,cAAa;CACP,m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UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,cAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,aAAa,GAAA;IAAI,MAAM;IAAyB,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,MAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACjD,MAAM,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-split-button.mjs","names":[],"sources":["../../../../packages/ui/split-button/src/split-button.icons.ts","../../../../packages/ui/split-button/src/split-button.theme.ts","../../../../packages/ui/split-button/src/split-button.component.ts"],"sourcesContent":["import { TxIconSet, txIconChevronDown } from '@tectra-ng/icons';\n\nexport const SPLIT_BUTTON_ICON_DEFAULTS: TxIconSet = {\n 'chevron-down': txIconChevronDown,\n};\n","import { buttonGroupTokens, splitButtonTokens } from '@tectra-ng/themes';\n\nexport const SPLIT_BUTTON_THEME = {\n buttonGroup: buttonGroupTokens,\n splitButton: splitButtonTokens,\n};\n","import { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, computed, input, output, viewChild } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraSplitButtonTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton, TxButtonSeverity, TxButtonSize } from '@tectra-ng/ui/button';\nimport { TxButtonGroup } from '@tectra-ng/ui/button-group';\nimport { TxMenu, TxMenuFocus, TxMenuItem, TxMenuItemEvent } from '@tectra-ng/ui/menu';\nimport { TxSplitButtonPart } from './split-button.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { SPLIT_BUTTON_ICON_DEFAULTS } from './split-button.icons';\nimport { SPLIT_BUTTON_THEME } from './split-button.theme';\n\n@Component({\n selector: 'tx-split-button',\n imports: [TxButtonGroup, TxButton, TxMenu],\n template: `\n <tx-button-group class=\"tx-split-button__group\">\n <button\n txButton\n type=\"button\"\n class=\"tx-split-button__button\"\n [class]=\"passThrough().button?.class\"\n [style]=\"passThrough().button?.style\"\n [label]=\"label()\"\n [icon]=\"icon()\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [outlined]=\"outlined()\"\n [text]=\"text()\"\n [raised]=\"raised()\"\n [rounded]=\"rounded()\"\n [disabled]=\"disabled()\"\n [loading]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n (click)=\"clicked.emit($event)\"\n >\n <ng-content />\n </button>\n <button\n txButton\n type=\"button\"\n class=\"tx-split-button__menu-button\"\n icon=\"chevron-down\"\n aria-haspopup=\"menu\"\n [class]=\"passThrough().menuButton?.class\"\n [style]=\"passThrough().menuButton?.style\"\n [severity]=\"severity()\"\n [size]=\"size()\"\n [outlined]=\"outlined()\"\n [text]=\"text()\"\n [raised]=\"raised()\"\n [rounded]=\"rounded()\"\n [disabled]=\"disabled() || menuDisabled()\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"menuLabel()\"\n [attr.aria-expanded]=\"menu().isOpen()\"\n [attr.aria-controls]=\"menu().isOpen() ? menu().id : null\"\n (click)=\"menu().toggle($event)\"\n (keydown.arrowdown)=\"open($event, 'first')\"\n (keydown.arrowup)=\"open($event, 'last')\"\n ></button>\n </tx-button-group>\n <tx-tiered-menu\n popup\n arrow\n placement=\"bottom-end\"\n [model]=\"model()\"\n [ariaLabel]=\"menuLabel()\"\n [unstyled]=\"isUnstyled()\"\n (itemSelected)=\"itemSelected.emit($event)\"\n (opened)=\"menuOpened.emit()\"\n (closed)=\"menuClosed.emit()\"\n />\n `,\n styleUrl: './split-button.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-split-button',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-filled]': '!outlined() && !text() || null',\n },\n viewProviders: [provideTxIconDefaults(SPLIT_BUTTON_ICON_DEFAULTS)],\n})\nexport class TxSplitButton {\n private readonly splitButtonTheme = injectTokens(SPLIT_BUTTON_THEME);\n\n readonly label = input<string | undefined>(undefined);\n readonly icon = input<string | undefined>(undefined);\n readonly model = input<TxMenuItem[]>([]);\n readonly severity = input<TxButtonSeverity>('primary');\n readonly size = input<TxButtonSize>('medium');\n readonly outlined = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly text = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly raised = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly rounded = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly disabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly menuDisabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly menuAriaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraSplitButtonTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxSplitButtonPart, TxSplitButton> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly clicked = output<MouseEvent>();\n readonly itemSelected = output<TxMenuItemEvent>();\n readonly menuOpened = output<void>();\n readonly menuClosed = output<void>();\n\n readonly group = viewChild.required(TxButtonGroup, { read: ElementRef<HTMLElement> });\n readonly menu = viewChild.required(TxMenu);\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('splitButton', this, this.pt, this.ptOptions);\n readonly menuLabel = computed(() => this.menuAriaLabel() ?? this.translations().moreActions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-split-button'), ...this.passThrough().root?.style }));\n\n open(event: Event, focus: TxMenuFocus): void {\n event.preventDefault();\n this.menu().show(event, focus);\n }\n}\n"],"mappings":";;;;;;;;;;AAEA,MAAa,6BAAwC,EACnD,gBAAgB,kBACjB;ACFD,MAAa,qBAAqB;CAChC,aAAa;CACb,aAAa;AACd;ACiFD,IAAa,gBAAb,MAAa,cAAa;CACP,mBAAmB,aAAa,kBAAkB;CAE1D,QAAQ,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAC5C,OAAO,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC3C,QAAQ,MAAoB,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAC/B,WAAW,MAAwB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC7C,OAAO,MAAoB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACpC,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,OAAO,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,OAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACnE,SAAS,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,W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