@4sh/ui-kit 0.14.0 → 0.16.0
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.fr.md +8 -0
- package/README.md +8 -0
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +2 -2
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +2 -2
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +2 -2
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +4 -4
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +69 -22
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +15 -6
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +12 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +19 -8
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +30 -9
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +8 -3
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +10 -4
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +46 -2
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +2 -2
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +2 -2
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +2 -2
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +2 -2
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +2 -2
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +6 -6
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +2 -2
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2 -2
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/mcp/data/component-api.json +14 -0
- package/mcp/data/text-search-docs.json +45 -15
- package/mcp/data/ui-config.json +317 -23
- package/mcp/package.json +1 -1
- package/package.json +1 -1
- package/styles/base/_motion.scss +16 -16
- package/styles/component-vars.scss +2 -5
- package/styles/generated/_tokens-motion.scss +54 -0
- package/styles/generated/_tokens-transitions.scss +4 -4
- package/styles/generated/_tokens.scss +1 -0
- package/styles/settings/_ui-config.scss +23 -6
- package/styles/utils/_mixins.scss +39 -5
- package/styles/utils/_motion.scss +3 -3
- package/styles.css +1 -1
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +16 -3
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +2 -0
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +4 -1
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +5 -1
- package/types/4sh-ui-kit-forms-ui-input.d.ts +2 -0
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +2 -0
- package/types/4sh-ui-kit-forms.d.ts +25 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-actions-ui-button.mjs","sources":["../../../projects/ui-kit/actions/ui-button/src/lib/ui-button.ts","../../../projects/ui-kit/actions/ui-button/src/lib/ui-button.html","../../../projects/ui-kit/actions/ui-button/src/public-api.ts","../../../projects/ui-kit/actions/ui-button/src/4sh-ui-kit-actions-ui-button.ts"],"sourcesContent":["import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n input,\n isDevMode,\n output,\n signal,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { UiLevel } from '@4sh/ui-kit/types';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\nexport type ButtonType = 'button' | 'submit' | 'reset';\nexport type ButtonSize = 'default' | 'small';\nexport type ButtonVariant = 'filled' | 'outlined' | 'ghost';\n/** Luminosité du fond sur lequel le bouton est posé (voir l'input `onColor`). */\nexport type ButtonOnColor = 'dark' | 'light';\nexport type ButtonIconPos = 'left' | 'right' | 'top' | 'bottom';\nexport type ButtonNativeProps = Record<string, string | number | boolean | null | undefined>;\n\n@Component({\n selector: 'ui-button',\n imports: [UiIcon, NgTemplateOutlet, RouterLink],\n templateUrl: './ui-button.html',\n styleUrl: './ui-button.scss',\n host: {\n '[style.display]': \"expanded() ? 'flex' : 'inline-flex'\",\n '[style.width]': \"expanded() ? '100%' : null\",\n },\n})\nexport class UiButton {\n /** Button text. Absent: icon-only button, or content projected through `<ng-content>`. */\n label = input<string>();\n /** Accessible name. Required in icon-only mode; falls back to `label` otherwise. */\n ariaLabel = input<string>();\n /** Native `type` of the `<button>`. */\n type = input<ButtonType>('button');\n /**\n * Semantic level: `high`/`low` for importance, `success`/`warning`/`error` for contextual\n * feedback.\n */\n level = input<UiLevel>('high');\n /**\n * Appearance: `filled` (solid), `outlined` (border) or `ghost` (text only). Composes with `level`\n * and `onColor`.\n */\n variant = input<ButtonVariant>('filled');\n /**\n * À renseigner **uniquement** quand le bouton est posé sur un fond de couleur\n * (bandeau, carte teintée, image) : indique la luminosité de ce fond, et le\n * bouton épingle son chrome en conséquence — `'dark'` ⇒ blanc, `'light'` ⇒\n * sombre. Orthogonal à `level` et `variant`. Volontairement **insensible au\n * thème** : un bandeau violet reste violet en clair comme en sombre.\n */\n onColor = input<ButtonOnColor | null>(null);\n /** Button size. */\n size = input<ButtonSize>('default');\n /** FontAwesome icon name (e.g. `check`, `arrow-right`). */\n icon = input<string>();\n /** Icon position relative to the content. */\n iconPos = input<ButtonIconPos>('left');\n /** Forces the square icon-only style even when there is content. */\n iconOnly = input(false, { transform: booleanAttribute });\n /** Loading state: shows a spinner and disables the button. */\n loading = input(false, { transform: booleanAttribute });\n /** FontAwesome icon of the loading spinner (spun with `fa-spin`). */\n loadingIcon = input<string>('circle-notch');\n /** Full width (100%). */\n expanded = input(false, { transform: booleanAttribute });\n /** Pill shape (fully rounded corners). */\n rounded = input(false, { transform: booleanAttribute });\n /** Disables the button (native attribute). */\n disabled = input(false, { transform: booleanAttribute });\n /** Ripple Effect */\n ripple = input(true, { transform: booleanAttribute });\n /** Native `tabindex` of the button. */\n tabindex = input<number>();\n /** Extra native attributes forwarded to the `<button>` (e.g. `{ form: 'login', value: '1' }`). */\n buttonProps = input<ButtonNativeProps>();\n /** Custom icon template (replaces `icon`). */\n iconTemplate = input<TemplateRef<unknown>>();\n /** Custom loading icon template (replaces `loadingIcon`). */\n loadingIconTemplate = input<TemplateRef<unknown>>();\n\n // --- Link mode (polymorphic host) ------------------------------------\n // When `href` or `routerLink` is set, the host renders a real <a> styled\n // as a button — preserving native anchor behavior (Cmd/Ctrl+click, middle\n // click, \"open/copy link\"…). No JS-router navigation in a click handler.\n /** External / plain URL. Presence switches the host to an <a>. */\n href = input<string>();\n /** Angular router target. Presence switches the host to an <a> (RouterLink). */\n routerLink = input<string | unknown[]>();\n /** Anchor target (e.g. \"_blank\"). Only applies in link mode. */\n target = input<string>();\n /** Anchor rel. Defaults to \"noopener noreferrer\" when target=\"_blank\". */\n rel = input<string>();\n\n /** Triggered on click (never if disabled or loading). */\n buttonClick = output<MouseEvent>();\n /** Fired when the button receives focus. */\n buttonFocus = output<FocusEvent>();\n /** Fired when the button loses focus. */\n buttonBlur = output<FocusEvent>();\n\n /** @ignore Host element (either the <button> or the <a>). */\n private readonly hostEl = viewChild.required<ElementRef<HTMLElement>>('host');\n /** @ignore */\n private readonly contentWrap = viewChild<ElementRef<HTMLElement>>('contentWrap');\n /** @ignore Content actually rendered via <ng-content> (detected after rendering). */\n private readonly hasProjectedContent = signal(false);\n\n constructor() {\n // Detection of rendered content (<ng-content>) — SSR-safe (browser only).\n afterNextRender(() => {\n const el = this.contentWrap()?.nativeElement;\n const has =\n !!el &&\n Array.from(el.childNodes).some(\n (n) =>\n n.nodeType === Node.ELEMENT_NODE ||\n (n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim()),\n );\n this.hasProjectedContent.set(has);\n });\n\n // Pass additional native attributes (buttonProps) to the host element.\n afterRenderEffect(() => {\n const props = this.buttonProps();\n if (!props) return;\n const el = this.hostEl().nativeElement;\n for (const [key, value] of Object.entries(props)) {\n if (value === null || value === undefined || value === false) {\n el.removeAttribute(key);\n } else {\n el.setAttribute(key, value === true ? '' : String(value));\n }\n }\n });\n\n // A11y safeguard: An icon-only button must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.accessibleLabel()) {\n console.warn(\n '[ui-button] Icon-only button has no accessible name: provide `ariaLabel` (or `label`).',\n );\n }\n });\n }\n }\n\n /** @ignore */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore An icon (or its template) is available. */\n protected readonly hasIcon = computed(() => !!this.icon() || !!this.iconTemplate());\n\n /** @ignore Visible text content (label or displayed content). */\n protected readonly hasVisibleText = computed(() => !!this.label() || this.hasProjectedContent());\n\n /** @ignore The icon appears before the content (left/top) or after it (right/bottom). */\n protected readonly iconBefore = computed(() => {\n const pos = this.iconPos();\n return pos === 'left' || pos === 'top';\n });\n\n /** @ignore Icon-only mode: forced, or inferred (icon only, with no visible text). */\n protected readonly isIconOnly = computed(() => {\n if (this.iconOnly()) return true;\n const pos = this.iconPos();\n if (pos === 'top' || pos === 'bottom') return false;\n return !this.hasVisibleText() && this.hasIcon();\n });\n\n /** @ignore Accessible name: explicit; otherwise, the label is hidden as “icon-only”; otherwise, the text is visible. */\n protected readonly accessibleLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel()!;\n if (this.isIconOnly()) return this.label() ?? null;\n return null;\n });\n\n /** @ignore Host renders an <a> (a URL or a router target was provided). */\n protected readonly isLink = computed(() => !!this.href() || this.routerLink() != null);\n\n /** @ignore Link mode uses the Angular RouterLink directive. */\n protected readonly useRouterLink = computed(() => this.routerLink() != null);\n\n /** @ignore Anchor rel: explicit, or a safe default for target=\"_blank\". */\n protected readonly computedRel = computed(() => {\n if (this.rel()) return this.rel()!;\n if (this.target() === '_blank') return 'noopener noreferrer';\n return null;\n });\n\n /** @ignore Anchor tabindex: -1 when disabled (an <a> has no native disabled). */\n protected readonly linkTabindex = computed(() =>\n this.disabled() ? -1 : (this.tabindex() ?? null),\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-button', `_${this.level()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.variant() !== 'filled') c.push(`_${this.variant()}`);\n if (this.onColor()) c.push(`_on-${this.onColor()}`);\n if (this.expanded()) c.push('_expanded');\n if (this.rounded()) c.push('_rounded');\n if (this.isIconOnly()) c.push('_icon-only');\n if (this.loading()) c.push('_loading');\n if (this.isLink() && this.disabled()) c.push('_disabled');\n const pos = this.iconPos();\n if (pos === 'top') c.push('_icon-top');\n else if (pos === 'bottom') c.push('_icon-bottom');\n return c.join(' ');\n });\n\n /** Sets the focus on the button (useful for controlling focus programmatically). */\n focus(options?: FocusOptions): void {\n this.hostEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled() || this.loading()) {\n event.preventDefault();\n return;\n }\n this.buttonClick.emit(event);\n }\n}\n","@if (isLink()) {\n @if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.role]=\"'button'\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n } @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.role]=\"'button'\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n }\n} @else {\n <button\n #host\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"disabled() || loading()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n}\n\n<ng-template #inner>\n @if (iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"iconSlot\" />\n }\n\n <!-- Always rendered: `hasProjectedContent` is detected from this very element, so gating it on\n `isIconOnly()` (which itself derives from that detection) made projected-only content\n undetectable — and silently dropped. Collapsed by `.ui-button-content:empty` when unused. -->\n <span class=\"ui-button-content\" #contentWrap>\n @if (label() && !isIconOnly()) {\n <span class=\"ui-button-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (!iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"iconSlot\" />\n }\n</ng-template>\n\n<ng-template #iconSlot>\n @if (loading()) {\n @if (loadingIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <i\n class=\"ui-button-icon ui-button-icon-loading fa-solid fa-{{ loadingIcon() }} fa-spin\"\n aria-hidden=\"true\"\n ></i>\n }\n } @else if (iconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else if (icon()) {\n <ui-icon class=\"ui-button-icon\" [name]=\"icon()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-button\n */\n\nexport * from './lib/ui-button';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAsCa,QAAQ,CAAA;AAiFnB,IAAA,WAAA,GAAA;;AA/EA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QA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AAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,MAAM,qEAEV,aAAa,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnHjF;;AAEG;;ACFH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-actions-ui-button.mjs","sources":["../../../projects/ui-kit/actions/ui-button/src/lib/ui-button.ts","../../../projects/ui-kit/actions/ui-button/src/lib/ui-button.html","../../../projects/ui-kit/actions/ui-button/src/public-api.ts","../../../projects/ui-kit/actions/ui-button/src/4sh-ui-kit-actions-ui-button.ts"],"sourcesContent":["import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n input,\n isDevMode,\n output,\n signal,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { UiLevel } from '@4sh/ui-kit/types';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\nexport type ButtonType = 'button' | 'submit' | 'reset';\nexport type ButtonSize = 'default' | 'small';\nexport type ButtonVariant = 'filled' | 'outlined' | 'ghost';\n/** Luminosité du fond sur lequel le bouton est posé (voir l'input `onColor`). */\nexport type ButtonOnColor = 'dark' | 'light';\nexport type ButtonIconPos = 'left' | 'right' | 'top' | 'bottom';\nexport type ButtonNativeProps = Record<string, string | number | boolean | null | undefined>;\n\n@Component({\n selector: 'ui-button',\n imports: [UiIcon, NgTemplateOutlet, RouterLink],\n templateUrl: './ui-button.html',\n styleUrl: './ui-button.scss',\n host: {\n '[style.display]': \"expanded() ? 'flex' : 'inline-flex'\",\n '[style.width]': \"expanded() ? '100%' : null\",\n },\n})\nexport class UiButton {\n /** Button text. Absent: icon-only button, or content projected through `<ng-content>`. */\n label = input<string>();\n /** Accessible name. Required in icon-only mode; falls back to `label` otherwise. */\n ariaLabel = input<string>();\n /** Native `type` of the `<button>`. */\n type = input<ButtonType>('button');\n /**\n * Semantic level: `high`/`low` for importance, `success`/`warning`/`error` for contextual\n * feedback.\n */\n level = input<UiLevel>('high');\n /**\n * Appearance: `filled` (solid), `outlined` (border) or `ghost` (text only). Composes with `level`\n * and `onColor`.\n */\n variant = input<ButtonVariant>('filled');\n /**\n * À renseigner **uniquement** quand le bouton est posé sur un fond de couleur\n * (bandeau, carte teintée, image) : indique la luminosité de ce fond, et le\n * bouton épingle son chrome en conséquence — `'dark'` ⇒ blanc, `'light'` ⇒\n * sombre. Orthogonal à `level` et `variant`. Volontairement **insensible au\n * thème** : un bandeau violet reste violet en clair comme en sombre.\n */\n onColor = input<ButtonOnColor | null>(null);\n /** Button size. */\n size = input<ButtonSize>('default');\n /** FontAwesome icon name (e.g. `check`, `arrow-right`). */\n icon = input<string>();\n /** Icon position relative to the content. */\n iconPos = input<ButtonIconPos>('left');\n /** Forces the square icon-only style even when there is content. */\n iconOnly = input(false, { transform: booleanAttribute });\n /** Loading state: shows a spinner and disables the button. */\n loading = input(false, { transform: booleanAttribute });\n /** FontAwesome icon of the loading spinner (spun with `fa-spin`). */\n loadingIcon = input<string>('circle-notch');\n /** Full width (100%). */\n expanded = input(false, { transform: booleanAttribute });\n /** Pill shape (fully rounded corners). */\n rounded = input(false, { transform: booleanAttribute });\n /** Disables the button (native attribute). */\n disabled = input(false, { transform: booleanAttribute });\n /** Ripple Effect */\n ripple = input(true, { transform: booleanAttribute });\n /** Native `tabindex` of the button. */\n tabindex = input<number>();\n /** Extra native attributes forwarded to the `<button>` (e.g. `{ form: 'login', value: '1' }`). */\n buttonProps = input<ButtonNativeProps>();\n /** Custom icon template (replaces `icon`). */\n iconTemplate = input<TemplateRef<unknown>>();\n /** Custom loading icon template (replaces `loadingIcon`). */\n loadingIconTemplate = input<TemplateRef<unknown>>();\n\n // --- Link mode (polymorphic host) ------------------------------------\n // When `href` or `routerLink` is set, the host renders a real <a> styled\n // as a button — preserving native anchor behavior (Cmd/Ctrl+click, middle\n // click, \"open/copy link\"…). No JS-router navigation in a click handler.\n /** External / plain URL. Presence switches the host to an <a>. */\n href = input<string>();\n /** Angular router target. Presence switches the host to an <a> (RouterLink). */\n routerLink = input<string | unknown[]>();\n /** Anchor target (e.g. \"_blank\"). Only applies in link mode. */\n target = input<string>();\n /** Anchor rel. Defaults to \"noopener noreferrer\" when target=\"_blank\". */\n rel = input<string>();\n\n /** Triggered on click (never if disabled or loading). */\n buttonClick = output<MouseEvent>();\n /** Fired when the button receives focus. */\n buttonFocus = output<FocusEvent>();\n /** Fired when the button loses focus. */\n buttonBlur = output<FocusEvent>();\n\n /** @ignore Host element (either the <button> or the <a>). */\n private readonly hostEl = viewChild.required<ElementRef<HTMLElement>>('host');\n /** @ignore */\n private readonly contentWrap = viewChild<ElementRef<HTMLElement>>('contentWrap');\n /** @ignore Content actually rendered via <ng-content> (detected after rendering). */\n private readonly hasProjectedContent = signal(false);\n\n constructor() {\n // Detection of rendered content (<ng-content>) — SSR-safe (browser only).\n afterNextRender(() => {\n const el = this.contentWrap()?.nativeElement;\n const has =\n !!el &&\n Array.from(el.childNodes).some(\n (n) =>\n n.nodeType === Node.ELEMENT_NODE ||\n (n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim()),\n );\n this.hasProjectedContent.set(has);\n });\n\n // Pass additional native attributes (buttonProps) to the host element.\n afterRenderEffect(() => {\n const props = this.buttonProps();\n if (!props) return;\n const el = this.hostEl().nativeElement;\n for (const [key, value] of Object.entries(props)) {\n if (value === null || value === undefined || value === false) {\n el.removeAttribute(key);\n } else {\n el.setAttribute(key, value === true ? '' : String(value));\n }\n }\n });\n\n // A11y safeguard: An icon-only button must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.accessibleLabel()) {\n console.warn(\n '[ui-button] Icon-only button has no accessible name: provide `ariaLabel` (or `label`).',\n );\n }\n });\n }\n }\n\n /** @ignore */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore An icon (or its template) is available. */\n protected readonly hasIcon = computed(() => !!this.icon() || !!this.iconTemplate());\n\n /** @ignore Visible text content (label or displayed content). */\n protected readonly hasVisibleText = computed(() => !!this.label() || this.hasProjectedContent());\n\n /** @ignore The icon appears before the content (left/top) or after it (right/bottom). */\n protected readonly iconBefore = computed(() => {\n const pos = this.iconPos();\n return pos === 'left' || pos === 'top';\n });\n\n /** @ignore Icon-only mode: forced, or inferred (icon only, with no visible text). */\n protected readonly isIconOnly = computed(() => {\n if (this.iconOnly()) return true;\n const pos = this.iconPos();\n if (pos === 'top' || pos === 'bottom') return false;\n return !this.hasVisibleText() && this.hasIcon();\n });\n\n /** @ignore Accessible name: explicit; otherwise, the label is hidden as “icon-only”; otherwise, the text is visible. */\n protected readonly accessibleLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel()!;\n if (this.isIconOnly()) return this.label() ?? null;\n return null;\n });\n\n /** @ignore Host renders an <a> (a URL or a router target was provided). */\n protected readonly isLink = computed(() => !!this.href() || this.routerLink() != null);\n\n /** @ignore Link mode uses the Angular RouterLink directive. */\n protected readonly useRouterLink = computed(() => this.routerLink() != null);\n\n /** @ignore Anchor rel: explicit, or a safe default for target=\"_blank\". */\n protected readonly computedRel = computed(() => {\n if (this.rel()) return this.rel()!;\n if (this.target() === '_blank') return 'noopener noreferrer';\n return null;\n });\n\n /** @ignore Anchor tabindex: -1 when disabled (an <a> has no native disabled). */\n protected readonly linkTabindex = computed(() =>\n this.disabled() ? -1 : (this.tabindex() ?? null),\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-button', `_${this.level()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.variant() !== 'filled') c.push(`_${this.variant()}`);\n if (this.onColor()) c.push(`_on-${this.onColor()}`);\n if (this.expanded()) c.push('_expanded');\n if (this.rounded()) c.push('_rounded');\n if (this.isIconOnly()) c.push('_icon-only');\n if (this.loading()) c.push('_loading');\n if (this.isLink() && this.disabled()) c.push('_disabled');\n const pos = this.iconPos();\n if (pos === 'top') c.push('_icon-top');\n else if (pos === 'bottom') c.push('_icon-bottom');\n return c.join(' ');\n });\n\n /** Sets the focus on the button (useful for controlling focus programmatically). */\n focus(options?: FocusOptions): void {\n this.hostEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled() || this.loading()) {\n event.preventDefault();\n return;\n }\n this.buttonClick.emit(event);\n }\n}\n","@if (isLink()) {\n @if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.role]=\"'button'\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n } @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.role]=\"'button'\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n }\n} @else {\n <button\n #host\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"disabled() || loading()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n}\n\n<ng-template #inner>\n @if (iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"iconSlot\" />\n }\n\n <!-- Always rendered: `hasProjectedContent` is detected from this very element, so gating it on\n `isIconOnly()` (which itself derives from that detection) made projected-only content\n undetectable — and silently dropped. Collapsed by `.ui-button-content:empty` when unused. -->\n <span class=\"ui-button-content\" #contentWrap>\n @if (label() && !isIconOnly()) {\n <span class=\"ui-button-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (!iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"iconSlot\" />\n }\n</ng-template>\n\n<ng-template #iconSlot>\n @if (loading()) {\n @if (loadingIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <i\n class=\"ui-button-icon ui-button-icon-loading fa-solid fa-{{ loadingIcon() }} fa-spin\"\n aria-hidden=\"true\"\n ></i>\n }\n } @else if (iconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else if (icon()) {\n <ui-icon class=\"ui-button-icon\" [name]=\"icon()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-button\n */\n\nexport * from './lib/ui-button';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAsCa,QAAQ,CAAA;AAiFnB,IAAA,WAAA,GAAA;;AA/EA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6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EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,MAAM,qEAEV,aAAa,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnHjF;;AAEG;;ACFH;;AAEG;;"}
|
|
@@ -134,11 +134,11 @@ class UiLink {
|
|
|
134
134
|
this.linkClick.emit(event);
|
|
135
135
|
}
|
|
136
136
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiLink, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
137
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiLink, isStandalone: true, selector: "ui-link", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, rel: { classPropertyName: "rel", publicName: "rel", isSignal: true, isRequired: false, transformFunction: null }, external: { classPropertyName: "external", publicName: "external", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, ariaCurrent: { classPropertyName: "ariaCurrent", publicName: "ariaCurrent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkClick: "linkClick", linkFocus: "linkFocus", linkBlur: "linkBlur" }, host: { properties: { "style.display": "'inline-flex'" } }, viewQueries: [{ propertyName: "hostEl", first: true, predicate: ["host"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [".ui-link{display:inline-flex;align-items:center;gap:var(--ui-link-gap, var(--units-sm));font-family:var(--ui-link-font-family, var(--fontfamily-base));font-weight:var(--ui-link-weight, var(--weight-bold));font-size:var(--ui-link-font-size, var(--size-typography-text-default));line-height:1.4;color:var(--ui-link-color, var(--actions-low-content-default));text-decoration:none;text-decoration-thickness:var(--ui-link-underline-thickness, from-font);text-underline-offset:var(--ui-link-underline-offset, .15em);border-radius:var(--ui-link-radius, var(--radius-2xs));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),text-decoration-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-link-icon{line-height:0}.ui-link-content{display:inline}.ui-link-content:empty{display:none}.ui-link._small{font-size:var(--ui-link-font-size-small, var(--size-typography-text-md))}.ui-link._icon-only{gap:0;text-decoration:none}.ui-link:hover:not(._disabled){color:var(--ui-link-color-hover, var(--actions-low-content-hover));text-decoration:underline}.ui-link:focus-visible{outline:none;color:var(--ui-link-color-focus, var(--actions-low-content-focused));text-decoration:underline;box-shadow:0 0 0 var(--ui-link-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-link-color-focus, var(--actions-low-content-focused))}.ui-link:active:not(._disabled){color:var(--ui-link-color-pressed, var(--actions-low-content-pressed))}.ui-link._disabled{color:var(--ui-link-color-disabled, var(--actions-low-content-disabled));text-decoration-color:var(--ui-link-color-disabled, var(--actions-low-content-disabled));cursor:not-allowed;pointer-events:none}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
137
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiLink, isStandalone: true, selector: "ui-link", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, rel: { classPropertyName: "rel", publicName: "rel", isSignal: true, isRequired: false, transformFunction: null }, external: { classPropertyName: "external", publicName: "external", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, ariaCurrent: { classPropertyName: "ariaCurrent", publicName: "ariaCurrent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkClick: "linkClick", linkFocus: "linkFocus", linkBlur: "linkBlur" }, host: { properties: { "style.display": "'inline-flex'" } }, viewQueries: [{ propertyName: "hostEl", first: true, predicate: ["host"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [".ui-link{display:inline-flex;align-items:center;gap:var(--ui-link-gap, var(--units-sm));font-family:var(--ui-link-font-family, var(--fontfamily-base));font-weight:var(--ui-link-weight, var(--weight-bold));font-size:var(--ui-link-font-size, var(--size-typography-text-default));line-height:1.4;color:var(--ui-link-color, var(--actions-low-content-default));text-decoration:none;text-decoration-thickness:var(--ui-link-underline-thickness, from-font);text-underline-offset:var(--ui-link-underline-offset, .15em);border-radius:var(--ui-link-radius, var(--radius-2xs));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),text-decoration-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-link-icon{line-height:0}.ui-link-content{display:inline}.ui-link-content:empty{display:none}.ui-link._small{font-size:var(--ui-link-font-size-small, var(--size-typography-text-md))}.ui-link._icon-only{gap:0;text-decoration:none}.ui-link:hover:not(._disabled){color:var(--ui-link-color-hover, var(--actions-low-content-hover));text-decoration:underline}.ui-link:focus-visible{outline:none;color:var(--ui-link-color-focus, var(--actions-low-content-focused));text-decoration:underline;box-shadow:0 0 0 var(--ui-link-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-link-color-focus, var(--actions-low-content-focused))}.ui-link:active:not(._disabled){color:var(--ui-link-color-pressed, var(--actions-low-content-pressed))}.ui-link._disabled{color:var(--ui-link-color-disabled, var(--actions-low-content-disabled));text-decoration-color:var(--ui-link-color-disabled, var(--actions-low-content-disabled));cursor:not-allowed;pointer-events:none}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
138
138
|
}
|
|
139
139
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiLink, decorators: [{
|
|
140
140
|
type: Component,
|
|
141
|
-
args: [{ selector: 'ui-link', imports: [UiIcon, RouterLink, NgTemplateOutlet], host: { '[style.display]': "'inline-flex'" }, template: "@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [".ui-link{display:inline-flex;align-items:center;gap:var(--ui-link-gap, var(--units-sm));font-family:var(--ui-link-font-family, var(--fontfamily-base));font-weight:var(--ui-link-weight, var(--weight-bold));font-size:var(--ui-link-font-size, var(--size-typography-text-default));line-height:1.4;color:var(--ui-link-color, var(--actions-low-content-default));text-decoration:none;text-decoration-thickness:var(--ui-link-underline-thickness, from-font);text-underline-offset:var(--ui-link-underline-offset, .15em);border-radius:var(--ui-link-radius, var(--radius-2xs));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),text-decoration-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-link-icon{line-height:0}.ui-link-content{display:inline}.ui-link-content:empty{display:none}.ui-link._small{font-size:var(--ui-link-font-size-small, var(--size-typography-text-md))}.ui-link._icon-only{gap:0;text-decoration:none}.ui-link:hover:not(._disabled){color:var(--ui-link-color-hover, var(--actions-low-content-hover));text-decoration:underline}.ui-link:focus-visible{outline:none;color:var(--ui-link-color-focus, var(--actions-low-content-focused));text-decoration:underline;box-shadow:0 0 0 var(--ui-link-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-link-color-focus, var(--actions-low-content-focused))}.ui-link:active:not(._disabled){color:var(--ui-link-color-pressed, var(--actions-low-content-pressed))}.ui-link._disabled{color:var(--ui-link-color-disabled, var(--actions-low-content-disabled));text-decoration-color:var(--ui-link-color-disabled, var(--actions-low-content-disabled));cursor:not-allowed;pointer-events:none}\n"] }]
|
|
141
|
+
args: [{ selector: 'ui-link', imports: [UiIcon, RouterLink, NgTemplateOutlet], host: { '[style.display]': "'inline-flex'" }, template: "@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [".ui-link{display:inline-flex;align-items:center;gap:var(--ui-link-gap, var(--units-sm));font-family:var(--ui-link-font-family, var(--fontfamily-base));font-weight:var(--ui-link-weight, var(--weight-bold));font-size:var(--ui-link-font-size, var(--size-typography-text-default));line-height:1.4;color:var(--ui-link-color, var(--actions-low-content-default));text-decoration:none;text-decoration-thickness:var(--ui-link-underline-thickness, from-font);text-underline-offset:var(--ui-link-underline-offset, .15em);border-radius:var(--ui-link-radius, var(--radius-2xs));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),text-decoration-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-link-icon{line-height:0}.ui-link-content{display:inline}.ui-link-content:empty{display:none}.ui-link._small{font-size:var(--ui-link-font-size-small, var(--size-typography-text-md))}.ui-link._icon-only{gap:0;text-decoration:none}.ui-link:hover:not(._disabled){color:var(--ui-link-color-hover, var(--actions-low-content-hover));text-decoration:underline}.ui-link:focus-visible{outline:none;color:var(--ui-link-color-focus, var(--actions-low-content-focused));text-decoration:underline;box-shadow:0 0 0 var(--ui-link-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-link-color-focus, var(--actions-low-content-focused))}.ui-link:active:not(._disabled){color:var(--ui-link-color-pressed, var(--actions-low-content-pressed))}.ui-link._disabled{color:var(--ui-link-color-disabled, var(--actions-low-content-disabled));text-decoration-color:var(--ui-link-color-disabled, var(--actions-low-content-disabled));cursor:not-allowed;pointer-events:none}\n"] }]
|
|
142
142
|
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], routerLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLink", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], rel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rel", required: false }] }], external: [{ type: i0.Input, args: [{ isSignal: true, alias: "external", required: false }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], iconRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRight", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], ariaCurrent: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaCurrent", required: false }] }], linkClick: [{ type: i0.Output, args: ["linkClick"] }], linkFocus: [{ type: i0.Output, args: ["linkFocus"] }], linkBlur: [{ type: i0.Output, args: ["linkBlur"] }], hostEl: [{ type: i0.ViewChild, args: ['host', { isSignal: true }] }] } });
|
|
143
143
|
|
|
144
144
|
/*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-actions-ui-link.mjs","sources":["../../../projects/ui-kit/actions/ui-link/src/lib/ui-link.ts","../../../projects/ui-kit/actions/ui-link/src/lib/ui-link.html","../../../projects/ui-kit/actions/ui-link/src/public-api.ts","../../../projects/ui-kit/actions/ui-link/src/4sh-ui-kit-actions-ui-link.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n input,\n isDevMode,\n output,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\nexport type LinkSize = 'default' | 'small';\n\n/**\n * ui-link — inline textual link (renders a real <a>), for prose / navigation.\n *\n * Choose by semantics, not appearance:\n * • Something that NAVIGATES (URL/route) → this component, or `ui-button`\n * with `href`/`routerLink` when it must look like a button.\n * • Something that triggers an ACTION (submit, open a modal…) → `ui-button`.\n *\n * Accepts a plain `href` (external) or a `routerLink` (internal navigation).\n * Interactive states (hover/focus/pressed) are CSS-driven, never Angular props.\n */\n@Component({\n selector: 'ui-link',\n imports: [UiIcon, RouterLink, NgTemplateOutlet],\n templateUrl: './ui-link.html',\n styleUrl: './ui-link.scss',\n host: { '[style.display]': \"'inline-flex'\" },\n})\nexport class UiLink {\n /** Visible link text (optional when using projected content or icon-only). */\n label = input<string>();\n /** Accessible name. Required in icon-only mode; falls back to the label otherwise. */\n ariaLabel = input<string>();\n /** Link size. */\n size = input<LinkSize>('default');\n\n // --- Destination -----------------------------------------------------\n /** External / plain URL. */\n href = input<string>();\n /** Angular router target (internal navigation, uses RouterLink). */\n routerLink = input<string | unknown[]>();\n /** Anchor target (e.g. \"_blank\"). */\n target = input<string>();\n /** Anchor rel. Defaults to \"noopener noreferrer\" for external links. */\n rel = input<string>();\n /** Convenience for external links: sets target=\"_blank\" + a safe rel. */\n external = input(false, { transform: booleanAttribute });\n\n // --- Icons (presence-based, same as ui-button) -----------------------\n /** FontAwesome icon name shown before the text. */\n iconLeft = input<string>();\n /** FontAwesome icon name shown after the text. */\n iconRight = input<string>();\n\n /**\n * Disables the link: drops `href`/`routerLink`, sets `aria-disabled` and leaves the tab order.\n */\n disabled = input(false, { transform: booleanAttribute });\n /** Native `tabindex` of the link. */\n tabindex = input<number>();\n /** aria-current exposed on the anchor (e.g. \"page\" for the current breadcrumb item). */\n ariaCurrent = input<string>();\n\n /** Emitted on click (never when disabled). Navigation stays native. */\n linkClick = output<MouseEvent>();\n /** Fired when the link receives focus. */\n linkFocus = output<FocusEvent>();\n /** Fired when the link loses focus. */\n linkBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly hostEl = viewChild.required<ElementRef<HTMLAnchorElement>>('host');\n\n constructor() {\n // A11y safeguard: an icon-only link must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.accessibleLabel()) {\n console.warn(\n '[ui-link] Icon-only link has no accessible name: provide `ariaLabel` (or `label`).',\n );\n }\n });\n }\n }\n\n /** @ignore Icon size follows the text size. */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore No visible text but at least one icon → icon-only. */\n protected readonly isIconOnly = computed(\n () => !this.label() && (!!this.iconLeft() || !!this.iconRight()),\n );\n\n /** @ignore Link mode uses the Angular RouterLink directive. */\n protected readonly useRouterLink = computed(() => this.routerLink() != null);\n\n /** @ignore Effective anchor target (external forces _blank). */\n protected readonly computedTarget = computed(\n () => this.target() ?? (this.external() ? '_blank' : null),\n );\n\n /** @ignore Anchor rel: explicit, or a safe default for _blank / external. */\n protected readonly computedRel = computed(() => {\n if (this.rel()) return this.rel()!;\n if (this.computedTarget() === '_blank') return 'noopener noreferrer';\n return null;\n });\n\n /** @ignore Tabindex: -1 when disabled (an <a> has no native disabled). */\n protected readonly linkTabindex = computed(() =>\n this.disabled() ? -1 : (this.tabindex() ?? null),\n );\n\n /** @ignore Accessible name: explicit, or the label when icon-only. */\n protected readonly accessibleLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel()!;\n if (this.isIconOnly()) return this.label() ?? null;\n return null;\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-link'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isIconOnly()) c.push('_icon-only');\n if (this.disabled()) c.push('_disabled');\n return c.join(' ');\n });\n\n /** Sets the focus on the link (useful for controlling focus programmatically). */\n focus(options?: FocusOptions): void {\n this.hostEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n event.preventDefault();\n return;\n }\n this.linkClick.emit(event);\n }\n}\n","@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-link\n */\n\nexport * from './lib/ui-link';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAiBA;;;;;;;;;;AAUG;MAQU,MAAM,CAAA;AA6CjB,IAAA,WAAA,GAAA;;AA3CA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QAE3B,IAAA,CAAA,IAAI,GAAG,KAAK,CAAW,SAAS;iFAAC;;;AAIjC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAsB;;AAExC,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;8FAAU;;AAExB,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK;2FAAU;;QAErB,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK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,EAAA,IAAA,EAGzC,EAAE,iBAAiB,EAAE,eAAe,EAAE,EAAA,QAAA,EAAA,ohDAAA,EAAA,MAAA,EAAA,CAAA,w8DAAA,CAAA,EAAA;28CA6CgC,MAAM,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE9EpF;;AAEG;;ACFH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-actions-ui-link.mjs","sources":["../../../projects/ui-kit/actions/ui-link/src/lib/ui-link.ts","../../../projects/ui-kit/actions/ui-link/src/lib/ui-link.html","../../../projects/ui-kit/actions/ui-link/src/public-api.ts","../../../projects/ui-kit/actions/ui-link/src/4sh-ui-kit-actions-ui-link.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n input,\n isDevMode,\n output,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\nexport type LinkSize = 'default' | 'small';\n\n/**\n * ui-link — inline textual link (renders a real <a>), for prose / navigation.\n *\n * Choose by semantics, not appearance:\n * • Something that NAVIGATES (URL/route) → this component, or `ui-button`\n * with `href`/`routerLink` when it must look like a button.\n * • Something that triggers an ACTION (submit, open a modal…) → `ui-button`.\n *\n * Accepts a plain `href` (external) or a `routerLink` (internal navigation).\n * Interactive states (hover/focus/pressed) are CSS-driven, never Angular props.\n */\n@Component({\n selector: 'ui-link',\n imports: [UiIcon, RouterLink, NgTemplateOutlet],\n templateUrl: './ui-link.html',\n styleUrl: './ui-link.scss',\n host: { '[style.display]': \"'inline-flex'\" },\n})\nexport class UiLink {\n /** Visible link text (optional when using projected content or icon-only). */\n label = input<string>();\n /** Accessible name. Required in icon-only mode; falls back to the label otherwise. */\n ariaLabel = input<string>();\n /** Link size. */\n size = input<LinkSize>('default');\n\n // --- Destination -----------------------------------------------------\n /** External / plain URL. */\n href = input<string>();\n /** Angular router target (internal navigation, uses RouterLink). */\n routerLink = input<string | unknown[]>();\n /** Anchor target (e.g. \"_blank\"). */\n target = input<string>();\n /** Anchor rel. Defaults to \"noopener noreferrer\" for external links. */\n rel = input<string>();\n /** Convenience for external links: sets target=\"_blank\" + a safe rel. */\n external = input(false, { transform: booleanAttribute });\n\n // --- Icons (presence-based, same as ui-button) -----------------------\n /** FontAwesome icon name shown before the text. */\n iconLeft = input<string>();\n /** FontAwesome icon name shown after the text. */\n iconRight = input<string>();\n\n /**\n * Disables the link: drops `href`/`routerLink`, sets `aria-disabled` and leaves the tab order.\n */\n disabled = input(false, { transform: booleanAttribute });\n /** Native `tabindex` of the link. */\n tabindex = input<number>();\n /** aria-current exposed on the anchor (e.g. \"page\" for the current breadcrumb item). */\n ariaCurrent = input<string>();\n\n /** Emitted on click (never when disabled). Navigation stays native. */\n linkClick = output<MouseEvent>();\n /** Fired when the link receives focus. */\n linkFocus = output<FocusEvent>();\n /** Fired when the link loses focus. */\n linkBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly hostEl = viewChild.required<ElementRef<HTMLAnchorElement>>('host');\n\n constructor() {\n // A11y safeguard: an icon-only link must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.accessibleLabel()) {\n console.warn(\n '[ui-link] Icon-only link has no accessible name: provide `ariaLabel` (or `label`).',\n );\n }\n });\n }\n }\n\n /** @ignore Icon size follows the text size. */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore No visible text but at least one icon → icon-only. */\n protected readonly isIconOnly = computed(\n () => !this.label() && (!!this.iconLeft() || !!this.iconRight()),\n );\n\n /** @ignore Link mode uses the Angular RouterLink directive. */\n protected readonly useRouterLink = computed(() => this.routerLink() != null);\n\n /** @ignore Effective anchor target (external forces _blank). */\n protected readonly computedTarget = computed(\n () => this.target() ?? (this.external() ? '_blank' : null),\n );\n\n /** @ignore Anchor rel: explicit, or a safe default for _blank / external. */\n protected readonly computedRel = computed(() => {\n if (this.rel()) return this.rel()!;\n if (this.computedTarget() === '_blank') return 'noopener noreferrer';\n return null;\n });\n\n /** @ignore Tabindex: -1 when disabled (an <a> has no native disabled). */\n protected readonly linkTabindex = computed(() =>\n this.disabled() ? -1 : (this.tabindex() ?? null),\n );\n\n /** @ignore Accessible name: explicit, or the label when icon-only. */\n protected readonly accessibleLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel()!;\n if (this.isIconOnly()) return this.label() ?? null;\n return null;\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-link'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isIconOnly()) c.push('_icon-only');\n if (this.disabled()) c.push('_disabled');\n return c.join(' ');\n });\n\n /** Sets the focus on the link (useful for controlling focus programmatically). */\n focus(options?: FocusOptions): void {\n this.hostEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n event.preventDefault();\n return;\n }\n this.linkClick.emit(event);\n }\n}\n","@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-link\n */\n\nexport * from './lib/ui-link';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAiBA;;;;;;;;;;AAUG;MAQU,MAAM,CAAA;AA6CjB,IAAA,WAAA,GAAA;;AA3CA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QAE3B,IAAA,CAAA,IAAI,GAAG,KAAK,CAAW,SAAS;iFAAC;;;AAIjC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAsB;;AAExC,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;8FAAU;;AAExB,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK;2FAAU;;QAErB,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;;AAIxD,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;AAE1B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;AAE3B;;AAEG;QACH,IAAA,CAAA,QAAQ,GAAG,KAAK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,EAAA,CAAA;;AE9EpF;;AAEG;;ACFH;;AAEG;;"}
|
|
@@ -420,11 +420,11 @@ class UiSpeedDial {
|
|
|
420
420
|
setTimeout(() => this.focusByKey(this.tabStopKey() ?? undefined));
|
|
421
421
|
}
|
|
422
422
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiSpeedDial, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
423
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiSpeedDial, isStandalone: true, selector: "ui-speed-dial", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, itemLevel: { classPropertyName: "itemLevel", publicName: "itemLevel", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, hideIcon: { classPropertyName: "hideIcon", publicName: "hideIcon", isSignal: true, isRequired: false, transformFunction: null }, rotateAnimation: { classPropertyName: "rotateAnimation", publicName: "rotateAnimation", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, hideOnClickOutside: { classPropertyName: "hideOnClickOutside", publicName: "hideOnClickOutside", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, showTooltips: { classPropertyName: "showTooltips", publicName: "showTooltips", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", triggerClick: "triggerClick", opened: "opened", closed: "closed", itemClick: "itemClick" }, viewQueries: [{ propertyName: "triggerEl", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "actionEls", predicate: ["actionBtn"], descendants: true, isSignal: true }], ngImport: i0, template: "<div [class]=\"hostClasses()\" [style.--_radius]=\"radiusOverride()\">\n @if (mask() && visible()) {\n <div\n class=\"ui-speed-dial-mask\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #maskMotion=\"uiMotion\"\n [animate.enter]=\"maskMotion.enter()\"\n [animate.leave]=\"maskMotion.leave()\"\n (click)=\"onMaskClick()\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <ui-button\n #trigger\n class=\"ui-speed-dial-trigger\"\n [class._rotate]=\"triggerIconRotates()\"\n rounded\n iconOnly\n [level]=\"level()\"\n [variant]=\"variant()\"\n [size]=\"size()\"\n [icon]=\"triggerIcon()\"\n [ariaLabel]=\"ariaLabel()\"\n [disabled]=\"disabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"triggerProps()\"\n (buttonClick)=\"onTriggerClick($event)\"\n (keydown)=\"onTriggerKeydown($event)\"\n />\n\n @if (visible()) {\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-speed-dial-list\"\n [id]=\"uid\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n @for (node of nodes(); track node.key) {\n <ui-button\n #actionBtn\n class=\"ui-speed-dial-item\"\n [style.--_stagger-index]=\"node.index\"\n [style.transform]=\"type() !== 'linear' ? arcTransform()(node.index) : null\"\n [uiMotion]=\"itemMotionPreset()\"\n [motionDisabled]=\"!motion()\"\n #itemMotion=\"uiMotion\"\n [animate.enter]=\"itemMotion.enter()\"\n [animate.leave]=\"itemMotion.leave()\"\n rounded\n iconOnly\n [level]=\"itemLevel()\"\n [variant]=\"variant()\"\n size=\"small\"\n [icon]=\"node.item.icon\"\n [ariaLabel]=\"node.item.ariaLabel || node.item.label\"\n [disabled]=\"node.item.disabled\"\n [href]=\"node.item.url\"\n [routerLink]=\"node.item.routerLink\"\n [target]=\"node.item.target\"\n [tabindex]=\"node.key === tabStopKey() ? 0 : -1\"\n [buttonProps]=\"itemProps\"\n [uiTooltip]=\"showTooltips() ? node.item.ariaLabel || node.item.label : undefined\"\n [tooltipPosition]=\"tooltipPosition()\"\n (buttonClick)=\"onItemClick($event, node)\"\n (focus)=\"onEntryFocus(node.key)\"\n />\n }\n </div>\n }\n</div>\n", styles: [".ui-speed-dial{position:relative;display:inline-flex;z-index:var(--ui-speed-dial-z-index, 10);--_radius: var(--ui-speed-dial-radius, calc(2 * var(--size-components-default)))}.ui-speed-dial-mask{position:fixed;inset:0;background-color:var(--ui-speed-dial-mask-background, var(--primitives-black-50))}.ui-speed-dial-trigger{position:relative}.ui-speed-dial-trigger ::ng-deep .ui-button-icon{transition:rotate var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-speed-dial-trigger._rotate ::ng-deep .ui-button-icon{rotate:45deg}.ui-speed-dial-list{position:absolute;display:flex;gap:var(--ui-speed-dial-item-gap, var(--units-sm));margin:0;padding:0;list-style:none;pointer-events:none}.ui-speed-dial._up .ui-speed-dial-list{bottom:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column-reverse;translate:-50% 0}.ui-speed-dial._down .ui-speed-dial-list{top:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column;translate:-50% 0}.ui-speed-dial._left .ui-speed-dial-list{right:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row-reverse;translate:0 -50%}.ui-speed-dial._right .ui-speed-dial-list{left:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row;translate:0 -50%}.ui-speed-dial._circle .ui-speed-dial-list,.ui-speed-dial._semi-circle .ui-speed-dial-list,.ui-speed-dial._quarter-circle .ui-speed-dial-list{inset:0}.ui-speed-dial._circle .ui-speed-dial-item,.ui-speed-dial._semi-circle .ui-speed-dial-item,.ui-speed-dial._quarter-circle .ui-speed-dial-item{position:absolute;top:50%;left:50%}.ui-speed-dial-item{pointer-events:auto;--ui-motion-delay: calc(var(--_stagger-index, 0) * var(--ui-speed-dial-item-delay, var(--transition-fast)))}.ui-speed-dial-item[class*=-leave]{--ui-motion-delay: 0ms}\n"], dependencies: [{ kind: "component", type: UiButton, selector: "ui-button", inputs: ["label", "ariaLabel", "type", "level", "variant", "onColor", "size", "icon", "iconPos", "iconOnly", "loading", "loadingIcon", "expanded", "rounded", "disabled", "ripple", "tabindex", "buttonProps", "iconTemplate", "loadingIconTemplate", "href", "routerLink", "target", "rel"], outputs: ["buttonClick", "buttonFocus", "buttonBlur"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: UiTooltip, selector: "[uiTooltip]", inputs: ["uiTooltip", "tooltipPosition", "fitContent", "tooltipEvent", "tooltipDisabled", "showDelay", "hideDelay", "escape", "tooltipStyleClass", "autoHide", "hideOnEscape", "life", "showOnEllipsis", "positionTop", "positionLeft", "tooltipContext"], outputs: ["tooltipShow", "tooltipHide"], exportAs: ["uiTooltip"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
|
|
423
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiSpeedDial, isStandalone: true, selector: "ui-speed-dial", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, itemLevel: { classPropertyName: "itemLevel", publicName: "itemLevel", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, hideIcon: { classPropertyName: "hideIcon", publicName: "hideIcon", isSignal: true, isRequired: false, transformFunction: null }, rotateAnimation: { classPropertyName: "rotateAnimation", publicName: "rotateAnimation", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, hideOnClickOutside: { classPropertyName: "hideOnClickOutside", publicName: "hideOnClickOutside", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, showTooltips: { classPropertyName: "showTooltips", publicName: "showTooltips", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", triggerClick: "triggerClick", opened: "opened", closed: "closed", itemClick: "itemClick" }, viewQueries: [{ propertyName: "triggerEl", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "actionEls", predicate: ["actionBtn"], descendants: true, isSignal: true }], ngImport: i0, template: "<div [class]=\"hostClasses()\" [style.--_radius]=\"radiusOverride()\">\n @if (mask() && visible()) {\n <div\n class=\"ui-speed-dial-mask\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #maskMotion=\"uiMotion\"\n [animate.enter]=\"maskMotion.enter()\"\n [animate.leave]=\"maskMotion.leave()\"\n (click)=\"onMaskClick()\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <ui-button\n #trigger\n class=\"ui-speed-dial-trigger\"\n [class._rotate]=\"triggerIconRotates()\"\n rounded\n iconOnly\n [level]=\"level()\"\n [variant]=\"variant()\"\n [size]=\"size()\"\n [icon]=\"triggerIcon()\"\n [ariaLabel]=\"ariaLabel()\"\n [disabled]=\"disabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"triggerProps()\"\n (buttonClick)=\"onTriggerClick($event)\"\n (keydown)=\"onTriggerKeydown($event)\"\n />\n\n @if (visible()) {\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-speed-dial-list\"\n [id]=\"uid\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n @for (node of nodes(); track node.key) {\n <ui-button\n #actionBtn\n class=\"ui-speed-dial-item\"\n [style.--_stagger-index]=\"node.index\"\n [style.transform]=\"type() !== 'linear' ? arcTransform()(node.index) : null\"\n [uiMotion]=\"itemMotionPreset()\"\n [motionDisabled]=\"!motion()\"\n #itemMotion=\"uiMotion\"\n [animate.enter]=\"itemMotion.enter()\"\n [animate.leave]=\"itemMotion.leave()\"\n rounded\n iconOnly\n [level]=\"itemLevel()\"\n [variant]=\"variant()\"\n size=\"small\"\n [icon]=\"node.item.icon\"\n [ariaLabel]=\"node.item.ariaLabel || node.item.label\"\n [disabled]=\"node.item.disabled\"\n [href]=\"node.item.url\"\n [routerLink]=\"node.item.routerLink\"\n [target]=\"node.item.target\"\n [tabindex]=\"node.key === tabStopKey() ? 0 : -1\"\n [buttonProps]=\"itemProps\"\n [uiTooltip]=\"showTooltips() ? node.item.ariaLabel || node.item.label : undefined\"\n [tooltipPosition]=\"tooltipPosition()\"\n (buttonClick)=\"onItemClick($event, node)\"\n (focus)=\"onEntryFocus(node.key)\"\n />\n }\n </div>\n }\n</div>\n", styles: [".ui-speed-dial{position:relative;display:inline-flex;z-index:var(--ui-speed-dial-z-index, 10);--_radius: var(--ui-speed-dial-radius, calc(2 * var(--size-components-default)))}.ui-speed-dial-mask{position:fixed;inset:0;background-color:var(--ui-speed-dial-mask-background, var(--primitives-black-50))}.ui-speed-dial-trigger{position:relative}.ui-speed-dial-trigger ::ng-deep .ui-button-icon{transition:rotate var(--ui-control-transition-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-toggle-easing, var(--transition-easeinout)))}.ui-speed-dial-trigger._rotate ::ng-deep .ui-button-icon{rotate:45deg}.ui-speed-dial-list{position:absolute;display:flex;gap:var(--ui-speed-dial-item-gap, var(--units-sm));margin:0;padding:0;list-style:none;pointer-events:none}.ui-speed-dial._up .ui-speed-dial-list{bottom:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column-reverse;translate:-50% 0}.ui-speed-dial._down .ui-speed-dial-list{top:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column;translate:-50% 0}.ui-speed-dial._left .ui-speed-dial-list{right:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row-reverse;translate:0 -50%}.ui-speed-dial._right .ui-speed-dial-list{left:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row;translate:0 -50%}.ui-speed-dial._circle .ui-speed-dial-list,.ui-speed-dial._semi-circle .ui-speed-dial-list,.ui-speed-dial._quarter-circle .ui-speed-dial-list{inset:0}.ui-speed-dial._circle .ui-speed-dial-item,.ui-speed-dial._semi-circle .ui-speed-dial-item,.ui-speed-dial._quarter-circle .ui-speed-dial-item{position:absolute;top:50%;left:50%}.ui-speed-dial-item{pointer-events:auto;--ui-motion-delay: calc(var(--_stagger-index, 0) * var(--ui-speed-dial-item-delay, var(--motion-stagger-delay, var(--transition-fast))))}.ui-speed-dial-item[class*=-leave]{--ui-motion-delay: 0ms}\n"], dependencies: [{ kind: "component", type: UiButton, selector: "ui-button", inputs: ["label", "ariaLabel", "type", "level", "variant", "onColor", "size", "icon", "iconPos", "iconOnly", "loading", "loadingIcon", "expanded", "rounded", "disabled", "ripple", "tabindex", "buttonProps", "iconTemplate", "loadingIconTemplate", "href", "routerLink", "target", "rel"], outputs: ["buttonClick", "buttonFocus", "buttonBlur"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: UiTooltip, selector: "[uiTooltip]", inputs: ["uiTooltip", "tooltipPosition", "fitContent", "tooltipEvent", "tooltipDisabled", "showDelay", "hideDelay", "escape", "tooltipStyleClass", "autoHide", "hideOnEscape", "life", "showOnEllipsis", "positionTop", "positionLeft", "tooltipContext"], outputs: ["tooltipShow", "tooltipHide"], exportAs: ["uiTooltip"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
|
|
424
424
|
}
|
|
425
425
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiSpeedDial, decorators: [{
|
|
426
426
|
type: Component,
|
|
427
|
-
args: [{ selector: 'ui-speed-dial', imports: [UiButton, NgTemplateOutlet, RouterLink, UiTooltip, UiMotion], template: "<div [class]=\"hostClasses()\" [style.--_radius]=\"radiusOverride()\">\n @if (mask() && visible()) {\n <div\n class=\"ui-speed-dial-mask\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #maskMotion=\"uiMotion\"\n [animate.enter]=\"maskMotion.enter()\"\n [animate.leave]=\"maskMotion.leave()\"\n (click)=\"onMaskClick()\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <ui-button\n #trigger\n class=\"ui-speed-dial-trigger\"\n [class._rotate]=\"triggerIconRotates()\"\n rounded\n iconOnly\n [level]=\"level()\"\n [variant]=\"variant()\"\n [size]=\"size()\"\n [icon]=\"triggerIcon()\"\n [ariaLabel]=\"ariaLabel()\"\n [disabled]=\"disabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"triggerProps()\"\n (buttonClick)=\"onTriggerClick($event)\"\n (keydown)=\"onTriggerKeydown($event)\"\n />\n\n @if (visible()) {\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-speed-dial-list\"\n [id]=\"uid\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n @for (node of nodes(); track node.key) {\n <ui-button\n #actionBtn\n class=\"ui-speed-dial-item\"\n [style.--_stagger-index]=\"node.index\"\n [style.transform]=\"type() !== 'linear' ? arcTransform()(node.index) : null\"\n [uiMotion]=\"itemMotionPreset()\"\n [motionDisabled]=\"!motion()\"\n #itemMotion=\"uiMotion\"\n [animate.enter]=\"itemMotion.enter()\"\n [animate.leave]=\"itemMotion.leave()\"\n rounded\n iconOnly\n [level]=\"itemLevel()\"\n [variant]=\"variant()\"\n size=\"small\"\n [icon]=\"node.item.icon\"\n [ariaLabel]=\"node.item.ariaLabel || node.item.label\"\n [disabled]=\"node.item.disabled\"\n [href]=\"node.item.url\"\n [routerLink]=\"node.item.routerLink\"\n [target]=\"node.item.target\"\n [tabindex]=\"node.key === tabStopKey() ? 0 : -1\"\n [buttonProps]=\"itemProps\"\n [uiTooltip]=\"showTooltips() ? node.item.ariaLabel || node.item.label : undefined\"\n [tooltipPosition]=\"tooltipPosition()\"\n (buttonClick)=\"onItemClick($event, node)\"\n (focus)=\"onEntryFocus(node.key)\"\n />\n }\n </div>\n }\n</div>\n", styles: [".ui-speed-dial{position:relative;display:inline-flex;z-index:var(--ui-speed-dial-z-index, 10);--_radius: var(--ui-speed-dial-radius, calc(2 * var(--size-components-default)))}.ui-speed-dial-mask{position:fixed;inset:0;background-color:var(--ui-speed-dial-mask-background, var(--primitives-black-50))}.ui-speed-dial-trigger{position:relative}.ui-speed-dial-trigger ::ng-deep .ui-button-icon{transition:rotate var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-speed-dial-trigger._rotate ::ng-deep .ui-button-icon{rotate:45deg}.ui-speed-dial-list{position:absolute;display:flex;gap:var(--ui-speed-dial-item-gap, var(--units-sm));margin:0;padding:0;list-style:none;pointer-events:none}.ui-speed-dial._up .ui-speed-dial-list{bottom:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column-reverse;translate:-50% 0}.ui-speed-dial._down .ui-speed-dial-list{top:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column;translate:-50% 0}.ui-speed-dial._left .ui-speed-dial-list{right:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row-reverse;translate:0 -50%}.ui-speed-dial._right .ui-speed-dial-list{left:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row;translate:0 -50%}.ui-speed-dial._circle .ui-speed-dial-list,.ui-speed-dial._semi-circle .ui-speed-dial-list,.ui-speed-dial._quarter-circle .ui-speed-dial-list{inset:0}.ui-speed-dial._circle .ui-speed-dial-item,.ui-speed-dial._semi-circle .ui-speed-dial-item,.ui-speed-dial._quarter-circle .ui-speed-dial-item{position:absolute;top:50%;left:50%}.ui-speed-dial-item{pointer-events:auto;--ui-motion-delay: calc(var(--_stagger-index, 0) * var(--ui-speed-dial-item-delay, var(--transition-fast)))}.ui-speed-dial-item[class*=-leave]{--ui-motion-delay: 0ms}\n"] }]
|
|
427
|
+
args: [{ selector: 'ui-speed-dial', imports: [UiButton, NgTemplateOutlet, RouterLink, UiTooltip, UiMotion], template: "<div [class]=\"hostClasses()\" [style.--_radius]=\"radiusOverride()\">\n @if (mask() && visible()) {\n <div\n class=\"ui-speed-dial-mask\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #maskMotion=\"uiMotion\"\n [animate.enter]=\"maskMotion.enter()\"\n [animate.leave]=\"maskMotion.leave()\"\n (click)=\"onMaskClick()\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <ui-button\n #trigger\n class=\"ui-speed-dial-trigger\"\n [class._rotate]=\"triggerIconRotates()\"\n rounded\n iconOnly\n [level]=\"level()\"\n [variant]=\"variant()\"\n [size]=\"size()\"\n [icon]=\"triggerIcon()\"\n [ariaLabel]=\"ariaLabel()\"\n [disabled]=\"disabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"triggerProps()\"\n (buttonClick)=\"onTriggerClick($event)\"\n (keydown)=\"onTriggerKeydown($event)\"\n />\n\n @if (visible()) {\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-speed-dial-list\"\n [id]=\"uid\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n @for (node of nodes(); track node.key) {\n <ui-button\n #actionBtn\n class=\"ui-speed-dial-item\"\n [style.--_stagger-index]=\"node.index\"\n [style.transform]=\"type() !== 'linear' ? arcTransform()(node.index) : null\"\n [uiMotion]=\"itemMotionPreset()\"\n [motionDisabled]=\"!motion()\"\n #itemMotion=\"uiMotion\"\n [animate.enter]=\"itemMotion.enter()\"\n [animate.leave]=\"itemMotion.leave()\"\n rounded\n iconOnly\n [level]=\"itemLevel()\"\n [variant]=\"variant()\"\n size=\"small\"\n [icon]=\"node.item.icon\"\n [ariaLabel]=\"node.item.ariaLabel || node.item.label\"\n [disabled]=\"node.item.disabled\"\n [href]=\"node.item.url\"\n [routerLink]=\"node.item.routerLink\"\n [target]=\"node.item.target\"\n [tabindex]=\"node.key === tabStopKey() ? 0 : -1\"\n [buttonProps]=\"itemProps\"\n [uiTooltip]=\"showTooltips() ? node.item.ariaLabel || node.item.label : undefined\"\n [tooltipPosition]=\"tooltipPosition()\"\n (buttonClick)=\"onItemClick($event, node)\"\n (focus)=\"onEntryFocus(node.key)\"\n />\n }\n </div>\n }\n</div>\n", styles: [".ui-speed-dial{position:relative;display:inline-flex;z-index:var(--ui-speed-dial-z-index, 10);--_radius: var(--ui-speed-dial-radius, calc(2 * var(--size-components-default)))}.ui-speed-dial-mask{position:fixed;inset:0;background-color:var(--ui-speed-dial-mask-background, var(--primitives-black-50))}.ui-speed-dial-trigger{position:relative}.ui-speed-dial-trigger ::ng-deep .ui-button-icon{transition:rotate var(--ui-control-transition-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-toggle-easing, var(--transition-easeinout)))}.ui-speed-dial-trigger._rotate ::ng-deep .ui-button-icon{rotate:45deg}.ui-speed-dial-list{position:absolute;display:flex;gap:var(--ui-speed-dial-item-gap, var(--units-sm));margin:0;padding:0;list-style:none;pointer-events:none}.ui-speed-dial._up .ui-speed-dial-list{bottom:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column-reverse;translate:-50% 0}.ui-speed-dial._down .ui-speed-dial-list{top:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column;translate:-50% 0}.ui-speed-dial._left .ui-speed-dial-list{right:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row-reverse;translate:0 -50%}.ui-speed-dial._right .ui-speed-dial-list{left:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row;translate:0 -50%}.ui-speed-dial._circle .ui-speed-dial-list,.ui-speed-dial._semi-circle .ui-speed-dial-list,.ui-speed-dial._quarter-circle .ui-speed-dial-list{inset:0}.ui-speed-dial._circle .ui-speed-dial-item,.ui-speed-dial._semi-circle .ui-speed-dial-item,.ui-speed-dial._quarter-circle .ui-speed-dial-item{position:absolute;top:50%;left:50%}.ui-speed-dial-item{pointer-events:auto;--ui-motion-delay: calc(var(--_stagger-index, 0) * var(--ui-speed-dial-item-delay, var(--motion-stagger-delay, var(--transition-fast))))}.ui-speed-dial-item[class*=-leave]{--ui-motion-delay: 0ms}\n"] }]
|
|
428
428
|
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], itemLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemLevel", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], hideIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideIcon", required: false }] }], rotateAnimation: [{ type: i0.Input, args: [{ isSignal: true, alias: "rotateAnimation", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: false }] }], hideOnClickOutside: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnClickOutside", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], showTooltips: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTooltips", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], triggerClick: [{ type: i0.Output, args: ["triggerClick"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], triggerEl: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], actionEls: [{ type: i0.ViewChildren, args: ['actionBtn', { isSignal: true }] }] } });
|
|
429
429
|
|
|
430
430
|
/*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-actions-ui-speed-dial.mjs","sources":["../../../projects/ui-kit/actions/ui-speed-dial/src/lib/ui-speed-dial.ts","../../../projects/ui-kit/actions/ui-speed-dial/src/lib/ui-speed-dial.html","../../../projects/ui-kit/actions/ui-speed-dial/src/public-api.ts","../../../projects/ui-kit/actions/ui-speed-dial/src/4sh-ui-kit-actions-ui-speed-dial.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { UiLevel } from '@4sh/ui-kit/types';\nimport {\n ButtonNativeProps,\n ButtonSize,\n ButtonVariant,\n UiButton,\n} from '@4sh/ui-kit/actions/ui-button';\nimport { UiMenuItem } from '@4sh/ui-kit/navigation/ui-menu';\nimport { UiTooltip, TooltipPosition } from '@4sh/ui-kit/informative/ui-tooltip';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\nimport { UiMotion, UiMotionPreset } from '@4sh/ui-kit/motion';\n\n/**\n * Axis the actions fan out along.\n *\n * `linear`/`semi-circle` read the four cardinal values; `quarter-circle`\n * reads the four corners — a cardinal value falls back to `'up-right'` there\n * (see `arcSpan`).\n */\nexport type SpeedDialDirection =\n 'up' | 'down' | 'left' | 'right' | 'up-left' | 'up-right' | 'down-left' | 'down-right';\n\n/**\n * `linear` stacks the actions along `direction`. The other three arrange them\n * on an arc around the trigger (`radius`): `circle` the full ring,\n * `semi-circle` a 180° half centred on `direction`, `quarter-circle` a 90°\n * quadrant in the `direction` corner.\n */\nexport type SpeedDialType = 'linear' | 'circle' | 'semi-circle' | 'quarter-circle';\n\n/**\n * One action revealed by the dial — the leaf subset of {@link UiMenuItem}\n * `ui-button` can actually render (no groups/separators, and no\n * `queryParams`/`routerLinkActiveExact`: `ui-button`'s link mode does not\n * carry them).\n */\nexport type UiSpeedDialItem = Pick<\n UiMenuItem,\n 'id' | 'label' | 'icon' | 'command' | 'disabled' | 'routerLink' | 'url' | 'target' | 'ariaLabel'\n>;\n\n/** Payload of `itemClick` / an item's own `command`. */\nexport interface UiSpeedDialItemClickEvent {\n originalEvent: Event;\n item: UiSpeedDialItem;\n}\n\n/** @ignore Render node: item + its stable key + its index among enabled actions. */\ninterface UiSpeedDialNode {\n item: UiSpeedDialItem;\n key: string;\n index: number;\n}\n\n/** Process-wide unique id source (aria wiring). */\nlet nextUid = 0;\n\n/** @ignore Rounds away floating point noise CSS `calc()` cannot parse (see `arcTransform`). */\nfunction round(value: number): number {\n return Math.round(value * 1e6) / 1e6;\n}\n\n/**\n * @ignore Angular span an arc-type dial occupies, in degrees clockwise from\n * top (0° = up, 90° = right, 180° = down, 270° = left — the same convention\n * `arcTransform` reads it back with).\n *\n * `circle` ignores `direction`: a full ring has no \"side\". `semi-circle`\n * centres its 180° half on `direction`. `quarter-circle` fills the 90°\n * quadrant named by `direction`'s corner, defaulting to `up-right` for a\n * cardinal value (`quarter-circle` has no \"up\" of its own — only corners).\n */\nfunction arcSpan(\n type: Exclude<SpeedDialType, 'linear'>,\n direction: SpeedDialDirection,\n): { start: number; span: number } {\n if (type === 'circle') return { start: 0, span: 360 };\n if (type === 'semi-circle') {\n const center = { up: 0, right: 90, down: 180, left: 270 }[direction as string] ?? 0;\n return { start: center - 90, span: 180 };\n }\n const start =\n { 'up-right': 0, 'down-right': 90, 'down-left': 180, 'up-left': 270 }[direction as string] ?? 0;\n return { start, span: 90 };\n}\n\n/**\n * ui-speed-dial — a floating trigger button that fans a set of actions out\n * around itself.\n *\n * Driven by a declarative `items` list ({@link UiSpeedDialItem}: `command` /\n * `routerLink` / `url`, `icon`, `disabled`) — the same leaf shape as\n * {@link UiMenuItem}, so a menu's entries can feed a dial without reshaping\n * them. Four layouts ({@link SpeedDialType}): `linear` (stacks along\n * `direction`), `circle` (full ring), `semi-circle` and `quarter-circle`\n * (partial arcs centred/cornered on `direction`) — `radius` sizes the three\n * arc layouts.\n *\n * Open state is the two-way `visible` model. The action list mounts only\n * while open (`@if`) — closed actions are neither rendered nor reachable by\n * keyboard, so no `aria-hidden`/`inert` bookkeeping is needed. Escape closes\n * and returns focus to the trigger; `hideOnClickOutside` dismisses on an\n * outside click. The actions form **one tab stop** (roving tabindex, same\n * pattern as `ui-menu` / `ui-editor`'s toolbar): arrow keys move between\n * them, `Home`/`End` jump to the ends, disabled entries are skipped.\n *\n * The trigger and every action are `ui-button` instances (`rounded\n * iconOnly`) — colors come from the `actions.*` tokens, nothing is drawn by\n * hand. `mask` dims the page behind the open dial (`--primitives-black-50`,\n * the same token as `ui-modal`'s scrim).\n *\n * Positioning is left to the caller: the component does not assume a fixed\n * corner. Wrap it in a `position: fixed` host (see the MDX \"Bouton flottant\"\n * recipe) to reproduce the classic floating-action-button placement.\n */\n@Component({\n selector: 'ui-speed-dial',\n imports: [UiButton, NgTemplateOutlet, RouterLink, UiTooltip, UiMotion],\n templateUrl: './ui-speed-dial.html',\n styleUrl: './ui-speed-dial.scss',\n})\nexport class UiSpeedDial {\n /** Actions revealed by the dial (see {@link UiSpeedDialItem}). */\n items = input.required<UiSpeedDialItem[]>();\n /** Open state (two-way). */\n visible = model(false);\n\n /** Layout: `linear` (stacked), `circle` (ring), `semi-circle` or `quarter-circle` (arc). */\n type = input<SpeedDialType>('linear');\n /**\n * Axis the actions fan along. `linear`/`semi-circle` read the four\n * cardinal values; `quarter-circle` reads the four corners. Unused by\n * `circle`, which always goes full ring.\n */\n direction = input<SpeedDialDirection>('up');\n /** Ring/arc radius in px — every type but `linear`. Falls back to a size-derived default. */\n radius = input<number>();\n\n /** Semantic level of the trigger. */\n level = input<UiLevel>('high');\n /**\n * Semantic level of the actions. Defaults to `low`, deliberately different\n * from the trigger's own `level`: a `high`-styled action would read as a\n * second primary button rather than a revealed option.\n */\n itemLevel = input<UiLevel>('low');\n /** Apparence of the trigger and the actions. */\n variant = input<ButtonVariant>('filled');\n /** Size of the trigger and the actions. */\n size = input<ButtonSize>('default');\n\n /** Icon of the trigger while closed. */\n showIcon = input<string>('plus');\n /**\n * Icon of the trigger while open. Left unset, `showIcon` rotates 45° in\n * place instead of being swapped for a second icon.\n */\n hideIcon = input<string>();\n /** Animates the trigger icon's rotation (`hideIcon` unset only). */\n rotateAnimation = input(true, { transform: booleanAttribute });\n\n /** Dims the page behind the dial while open. */\n mask = input(false, { transform: booleanAttribute });\n /** Closes the dial on an outside click. */\n hideOnClickOutside = input(true, { transform: booleanAttribute });\n /** Disables the trigger and every action. */\n disabled = input(false, { transform: booleanAttribute });\n\n /** Shows each action's label as a tooltip (icon-only actions). */\n showTooltips = input(false, { transform: booleanAttribute });\n /** Animates the trigger and the actions (reduced-motion always wins). */\n motion = input(true, { transform: booleanAttribute });\n\n /** Accessible name of the trigger. */\n ariaLabel = input<string>();\n /** id of an external element naming the trigger. */\n ariaLabelledBy = input<string>();\n /** Native tabindex of the trigger. */\n tabindex = input<number>(0, { transform: numberAttribute });\n\n /** Fired when the trigger is clicked (never when disabled). */\n triggerClick = output<MouseEvent>();\n /** Fired when the dial opens. */\n opened = output<void>();\n /** Fired when the dial closes. */\n closed = output<void>();\n /** Fired when an action is activated (click / keyboard), never when disabled. */\n itemClick = output<UiSpeedDialItemClickEvent>();\n\n /** @ignore */\n private readonly document = inject(DOCUMENT);\n /** @ignore Host element — outside-click detection. */\n private readonly hostEl = inject(ElementRef<HTMLElement>);\n /** @ignore Trigger button (programmatic focus). */\n private readonly triggerEl = viewChild<UiButton>('trigger');\n /** @ignore Rendered action buttons, in DOM order — the roving tabindex ring.\n * Matched by their own `#actionBtn` ref so the trigger (`#trigger`) is excluded. */\n private readonly actionEls = viewChildren<UiButton>('actionBtn');\n\n /** Unique id of the actions list (wired to the trigger's `aria-controls`). */\n readonly uid = `ui-speed-dial-${nextUid++}`;\n /** @ignore Key of the action currently holding the roving tab stop. */\n protected readonly focusedKey = signal<string | null>(null);\n\n constructor() {\n // A dial declared in an app shell (header, sidebar) outlives the routed\n // view: close it rather than leaving it open over the next page.\n //\n // Deferred one frame (`afterNextRender`, not the constructor directly): a\n // dial that starts open (`[visible]=\"true\"`, e.g. this very Storybook\n // canvas) races the router's OWN initial navigation — that first\n // `NavigationStart` can still fire after this component exists but\n // before `router.url` has settled, which `closeOnNavigation` would then\n // read as \"the page changed\" and close a dial that never got a chance to\n // be seen open. One frame is enough for that bootstrap navigation to\n // resolve, and `closeOnNavigation`'s own job (dismiss on a LATER, real\n // navigation) is not time-critical to wire up before then.\n afterNextRender(() => closeOnNavigation(() => this.hide()));\n\n // Outside-click dismissal: attached only while open, torn down on close —\n // a document-wide listener has no reason to exist while nothing is open.\n effect((onCleanup) => {\n if (!this.visible()) return;\n const handler = (event: PointerEvent) => this.onDocumentPointerdown(event);\n this.document.addEventListener('pointerdown', handler, true);\n onCleanup(() => this.document.removeEventListener('pointerdown', handler, true));\n });\n }\n\n /** @ignore Enabled actions, keyed for the roving tabindex + trigonometry. */\n protected readonly nodes = computed<UiSpeedDialNode[]>(() =>\n this.items().map((item, index) => ({ item, key: item.id ?? `${this.uid}_${index}`, index })),\n );\n\n /** @ignore Keys of the enabled entries, in order (roving focus path). */\n private readonly focusableKeys = computed<string[]>(() =>\n this.nodes()\n .filter((n) => !n.item.disabled)\n .map((n) => n.key),\n );\n\n /** @ignore Node owning the tab stop: last focused, else the first enabled one. */\n protected readonly tabStopKey = computed<string | null>(() => {\n const keys = this.focusableKeys();\n const focused = this.focusedKey();\n return focused && keys.includes(focused) ? focused : (keys[0] ?? null);\n });\n\n /**\n * @ignore Explicit ring radius, in px — set as the `--_radius` override.\n * Left unset (`null`, no inline style), the SCSS default takes over.\n */\n protected readonly radiusOverride = computed(() => {\n const r = this.radius();\n return r != null ? `${r}px` : null;\n });\n\n /**\n * @ignore Per-item position on an arc (`circle`/`semi-circle`/\n * `quarter-circle`): self-centred on the trigger, `--_radius` out at its\n * angular slot (see `radiusOverride` for the explicit/default split).\n *\n * `circle` steps evenly around the FULL span (`span / total`, wrapping);\n * the other two divide by `total - 1` so the first and last actions land\n * exactly on the arc's own ends, not short of them.\n */\n protected readonly arcTransform = computed(() => {\n const type = this.type();\n const total = this.nodes().length;\n if (type === 'linear' || !total) return () => null;\n const { start, span } = arcSpan(type, this.direction());\n const step = type === 'circle' ? span / total : span / Math.max(total - 1, 1);\n return (index: number) => {\n const angle = ((start + step * index) * Math.PI) / 180;\n // Floating point noise (e.g. sin(π) ≈ 1.2e-16) prints as exponential\n // notation, which CSS `calc()` cannot parse — round it away.\n const x = round(Math.sin(angle));\n const y = round(-Math.cos(angle));\n return `translate(-50%, -50%) translate(calc(${x} * var(--_radius)), calc(${y} * var(--_radius)))`;\n };\n });\n\n /**\n * @ignore Enter/leave preset.\n *\n * Arc items (`circle`/`semi-circle`/`quarter-circle`) already carry their\n * own `[style.transform]` (angular position, `arcTransform`) —\n * `zoom`/`slide-*` animate `transform` too, and a CSS animation on a\n * property wins over an inline style for it, wiping the position out for\n * the animation's duration. `fade` (opacity only) is the one preset that\n * cannot collide with it.\n *\n * `linear` items carry no such transform, so they get the more expressive\n * `slide-${direction}` — \"enter moving toward `direction`\".\n */\n protected readonly itemMotionPreset = computed<UiMotionPreset>(() => {\n if (this.type() !== 'linear') return 'fade';\n // `linear` only means a cardinal direction; a corner value (meant for\n // `quarter-circle`) has no matching slide preset — fall back to 'up'.\n const d = this.direction();\n return (\n d === 'up' || d === 'down' || d === 'left' || d === 'right' ? `slide-${d}` : 'slide-up'\n ) as UiMotionPreset;\n });\n\n /** @ignore Trigger icon while open: `hideIcon`, or `showIcon` rotated in place. */\n protected readonly triggerIcon = computed(() => this.hideIcon() ?? this.showIcon());\n /** @ignore The trigger icon rotates only when there is no dedicated `hideIcon`. */\n protected readonly triggerIconRotates = computed(\n () => this.visible() && !this.hideIcon() && this.rotateAnimation(),\n );\n\n /** @ignore Tooltip side: opposite the fan-out direction, so it never overlaps an action. */\n protected readonly tooltipPosition = computed<TooltipPosition>(() => {\n if (this.type() !== 'linear') return 'top';\n const d = this.direction();\n if (d === 'up') return 'right';\n if (d === 'down') return 'right';\n if (d === 'left') return 'top';\n return 'top';\n });\n\n /**\n * @ignore Attributes forwarded onto the trigger's real `<button>`/`<a>`\n * (`ui-button`'s `#host`, not the `<ui-speed-dial>` wrapper): `role`,\n * `ariaLabel` and `tabindex` already have dedicated `ui-button` inputs, the\n * rest goes through `buttonProps` (see `ui-button`'s own forwarding).\n */\n protected readonly triggerProps = computed<ButtonNativeProps>(() => ({\n 'aria-haspopup': 'true',\n 'aria-expanded': this.visible() ? 'true' : 'false',\n 'aria-controls': this.uid,\n 'aria-labelledby': this.ariaLabelledBy() ?? null,\n }));\n\n /** @ignore Static: every action is a `menuitem`, whatever it renders as (button/link). */\n protected readonly itemProps: ButtonNativeProps = { role: 'menuitem' };\n\n /** @ignore */\n protected readonly hostClasses = computed(() => {\n const c = ['ui-speed-dial', `_${this.type()}`];\n if (this.type() === 'linear') c.push(`_${this.direction()}`);\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.visible()) c.push('_open');\n return c.join(' ');\n });\n\n /** Opens the dial. */\n show(): void {\n if (this.disabled() || this.visible()) return;\n this.visible.set(true);\n this.opened.emit();\n }\n\n /** Closes the dial. */\n hide(focusTrigger = false): void {\n if (!this.visible()) return;\n this.visible.set(false);\n this.focusedKey.set(null);\n this.closed.emit();\n if (focusTrigger) this.triggerEl()?.focus();\n }\n\n /** Toggles the dial open/closed. */\n toggle(): void {\n this.visible() ? this.hide() : this.show();\n }\n\n /** Moves focus onto the trigger. */\n focus(options?: FocusOptions): void {\n this.triggerEl()?.focus(options);\n }\n\n /** @ignore */\n protected onTriggerClick(event: MouseEvent): void {\n if (this.disabled()) return;\n this.triggerClick.emit(event);\n this.toggle();\n }\n\n /** @ignore Arrow key on the (closed) trigger opens the dial onto its first action. */\n protected onTriggerKeydown(event: KeyboardEvent): void {\n if (this.disabled() || this.visible()) return;\n if (!['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'].includes(event.key)) return;\n event.preventDefault();\n this.show();\n this.queueFocusTabStop();\n }\n\n /** @ignore Activation: command + itemClick, then close (never on a disabled entry). */\n protected onItemClick(event: Event, node: UiSpeedDialNode): void {\n const item = node.item;\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n if (!item.url && !item.routerLink) event.preventDefault();\n this.focusedKey.set(node.key);\n item.command?.({ originalEvent: event, item });\n this.itemClick.emit({ originalEvent: event, item });\n this.hide(true);\n }\n\n /**\n * @ignore Roving keyboard navigation among the open actions.\n *\n * Both arrow pairs move the same way regardless of `direction`/`type`: it\n * keeps the mapping simple and predictable rather than re-deriving which\n * pair means \"forward\" for eight possible linear/circular layouts.\n */\n protected onListKeydown(event: KeyboardEvent): void {\n const keys = this.focusableKeys();\n if (!keys.length) return;\n const current = this.focusedKey();\n const index = current ? keys.indexOf(current) : -1;\n\n switch (event.key) {\n case 'ArrowUp':\n case 'ArrowRight':\n event.preventDefault();\n this.focusByKey(keys[(index + 1) % keys.length]);\n break;\n case 'ArrowDown':\n case 'ArrowLeft':\n event.preventDefault();\n this.focusByKey(keys[(index - 1 + keys.length) % keys.length]);\n break;\n case 'Home':\n event.preventDefault();\n this.focusByKey(keys[0]);\n break;\n case 'End':\n event.preventDefault();\n this.focusByKey(keys[keys.length - 1]);\n break;\n case 'Escape':\n event.preventDefault();\n this.hide(true);\n break;\n }\n }\n\n /** @ignore */\n protected onEntryFocus(key: string): void {\n this.focusedKey.set(key);\n }\n\n /** @ignore Outside pointerdown closes the dial (mousedown mirrors ui-menu's own outside-click). */\n protected onDocumentPointerdown(event: PointerEvent): void {\n if (!this.visible() || !this.hideOnClickOutside()) return;\n if (event.target instanceof Node && this.hostEl.nativeElement.contains(event.target)) return;\n this.hide();\n }\n\n /** @ignore Clicking the mask itself closes the dial. */\n protected onMaskClick(): void {\n this.hide();\n }\n\n /** @ignore */\n private focusByKey(key: string | undefined): void {\n if (!key) return;\n this.focusedKey.set(key);\n const target = this.nodes().find((n) => n.key === key);\n if (!target) return;\n this.actionEls()[target.index]?.focus();\n }\n\n /** @ignore Focus the roving tab stop once the actions are rendered (macrotask: rAF\n * never fires in throttled/background tabs). */\n private queueFocusTabStop(): void {\n setTimeout(() => this.focusByKey(this.tabStopKey() ?? undefined));\n }\n}\n","<div [class]=\"hostClasses()\" [style.--_radius]=\"radiusOverride()\">\n @if (mask() && visible()) {\n <div\n class=\"ui-speed-dial-mask\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #maskMotion=\"uiMotion\"\n [animate.enter]=\"maskMotion.enter()\"\n [animate.leave]=\"maskMotion.leave()\"\n (click)=\"onMaskClick()\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <ui-button\n #trigger\n class=\"ui-speed-dial-trigger\"\n [class._rotate]=\"triggerIconRotates()\"\n rounded\n iconOnly\n [level]=\"level()\"\n [variant]=\"variant()\"\n [size]=\"size()\"\n [icon]=\"triggerIcon()\"\n [ariaLabel]=\"ariaLabel()\"\n [disabled]=\"disabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"triggerProps()\"\n (buttonClick)=\"onTriggerClick($event)\"\n (keydown)=\"onTriggerKeydown($event)\"\n />\n\n @if (visible()) {\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-speed-dial-list\"\n [id]=\"uid\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n @for (node of nodes(); track node.key) {\n <ui-button\n #actionBtn\n class=\"ui-speed-dial-item\"\n [style.--_stagger-index]=\"node.index\"\n [style.transform]=\"type() !== 'linear' ? arcTransform()(node.index) : null\"\n [uiMotion]=\"itemMotionPreset()\"\n [motionDisabled]=\"!motion()\"\n #itemMotion=\"uiMotion\"\n [animate.enter]=\"itemMotion.enter()\"\n [animate.leave]=\"itemMotion.leave()\"\n rounded\n iconOnly\n [level]=\"itemLevel()\"\n [variant]=\"variant()\"\n size=\"small\"\n [icon]=\"node.item.icon\"\n [ariaLabel]=\"node.item.ariaLabel || node.item.label\"\n [disabled]=\"node.item.disabled\"\n [href]=\"node.item.url\"\n [routerLink]=\"node.item.routerLink\"\n [target]=\"node.item.target\"\n [tabindex]=\"node.key === tabStopKey() ? 0 : -1\"\n [buttonProps]=\"itemProps\"\n [uiTooltip]=\"showTooltips() ? node.item.ariaLabel || node.item.label : undefined\"\n [tooltipPosition]=\"tooltipPosition()\"\n (buttonClick)=\"onItemClick($event, node)\"\n (focus)=\"onEntryFocus(node.key)\"\n />\n }\n </div>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-speed-dial\n */\n\nexport * from './lib/ui-speed-dial';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAwEA;AACA,IAAI,OAAO,GAAG,CAAC;AAEf;AACA,SAAS,KAAK,CAAC,KAAa,EAAA;IAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG;AACtC;AAEA;;;;;;;;;AASG;AACH,SAAS,OAAO,CACd,IAAsC,EACtC,SAA6B,EAAA;IAE7B,IAAI,IAAI,KAAK,QAAQ;QAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE;AACrD,IAAA,IAAI,IAAI,KAAK,aAAa,EAAE;QAC1B,MAAM,MAAM,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,SAAmB,CAAC,IAA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CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,SAAS,sEAGN,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvNjE;;AAEG;;ACFH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-actions-ui-speed-dial.mjs","sources":["../../../projects/ui-kit/actions/ui-speed-dial/src/lib/ui-speed-dial.ts","../../../projects/ui-kit/actions/ui-speed-dial/src/lib/ui-speed-dial.html","../../../projects/ui-kit/actions/ui-speed-dial/src/public-api.ts","../../../projects/ui-kit/actions/ui-speed-dial/src/4sh-ui-kit-actions-ui-speed-dial.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { UiLevel } from '@4sh/ui-kit/types';\nimport {\n ButtonNativeProps,\n ButtonSize,\n ButtonVariant,\n UiButton,\n} from '@4sh/ui-kit/actions/ui-button';\nimport { UiMenuItem } from '@4sh/ui-kit/navigation/ui-menu';\nimport { UiTooltip, TooltipPosition } from '@4sh/ui-kit/informative/ui-tooltip';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\nimport { UiMotion, UiMotionPreset } from '@4sh/ui-kit/motion';\n\n/**\n * Axis the actions fan out along.\n *\n * `linear`/`semi-circle` read the four cardinal values; `quarter-circle`\n * reads the four corners — a cardinal value falls back to `'up-right'` there\n * (see `arcSpan`).\n */\nexport type SpeedDialDirection =\n 'up' | 'down' | 'left' | 'right' | 'up-left' | 'up-right' | 'down-left' | 'down-right';\n\n/**\n * `linear` stacks the actions along `direction`. The other three arrange them\n * on an arc around the trigger (`radius`): `circle` the full ring,\n * `semi-circle` a 180° half centred on `direction`, `quarter-circle` a 90°\n * quadrant in the `direction` corner.\n */\nexport type SpeedDialType = 'linear' | 'circle' | 'semi-circle' | 'quarter-circle';\n\n/**\n * One action revealed by the dial — the leaf subset of {@link UiMenuItem}\n * `ui-button` can actually render (no groups/separators, and no\n * `queryParams`/`routerLinkActiveExact`: `ui-button`'s link mode does not\n * carry them).\n */\nexport type UiSpeedDialItem = Pick<\n UiMenuItem,\n 'id' | 'label' | 'icon' | 'command' | 'disabled' | 'routerLink' | 'url' | 'target' | 'ariaLabel'\n>;\n\n/** Payload of `itemClick` / an item's own `command`. */\nexport interface UiSpeedDialItemClickEvent {\n originalEvent: Event;\n item: UiSpeedDialItem;\n}\n\n/** @ignore Render node: item + its stable key + its index among enabled actions. */\ninterface UiSpeedDialNode {\n item: UiSpeedDialItem;\n key: string;\n index: number;\n}\n\n/** Process-wide unique id source (aria wiring). */\nlet nextUid = 0;\n\n/** @ignore Rounds away floating point noise CSS `calc()` cannot parse (see `arcTransform`). */\nfunction round(value: number): number {\n return Math.round(value * 1e6) / 1e6;\n}\n\n/**\n * @ignore Angular span an arc-type dial occupies, in degrees clockwise from\n * top (0° = up, 90° = right, 180° = down, 270° = left — the same convention\n * `arcTransform` reads it back with).\n *\n * `circle` ignores `direction`: a full ring has no \"side\". `semi-circle`\n * centres its 180° half on `direction`. `quarter-circle` fills the 90°\n * quadrant named by `direction`'s corner, defaulting to `up-right` for a\n * cardinal value (`quarter-circle` has no \"up\" of its own — only corners).\n */\nfunction arcSpan(\n type: Exclude<SpeedDialType, 'linear'>,\n direction: SpeedDialDirection,\n): { start: number; span: number } {\n if (type === 'circle') return { start: 0, span: 360 };\n if (type === 'semi-circle') {\n const center = { up: 0, right: 90, down: 180, left: 270 }[direction as string] ?? 0;\n return { start: center - 90, span: 180 };\n }\n const start =\n { 'up-right': 0, 'down-right': 90, 'down-left': 180, 'up-left': 270 }[direction as string] ?? 0;\n return { start, span: 90 };\n}\n\n/**\n * ui-speed-dial — a floating trigger button that fans a set of actions out\n * around itself.\n *\n * Driven by a declarative `items` list ({@link UiSpeedDialItem}: `command` /\n * `routerLink` / `url`, `icon`, `disabled`) — the same leaf shape as\n * {@link UiMenuItem}, so a menu's entries can feed a dial without reshaping\n * them. Four layouts ({@link SpeedDialType}): `linear` (stacks along\n * `direction`), `circle` (full ring), `semi-circle` and `quarter-circle`\n * (partial arcs centred/cornered on `direction`) — `radius` sizes the three\n * arc layouts.\n *\n * Open state is the two-way `visible` model. The action list mounts only\n * while open (`@if`) — closed actions are neither rendered nor reachable by\n * keyboard, so no `aria-hidden`/`inert` bookkeeping is needed. Escape closes\n * and returns focus to the trigger; `hideOnClickOutside` dismisses on an\n * outside click. The actions form **one tab stop** (roving tabindex, same\n * pattern as `ui-menu` / `ui-editor`'s toolbar): arrow keys move between\n * them, `Home`/`End` jump to the ends, disabled entries are skipped.\n *\n * The trigger and every action are `ui-button` instances (`rounded\n * iconOnly`) — colors come from the `actions.*` tokens, nothing is drawn by\n * hand. `mask` dims the page behind the open dial (`--primitives-black-50`,\n * the same token as `ui-modal`'s scrim).\n *\n * Positioning is left to the caller: the component does not assume a fixed\n * corner. Wrap it in a `position: fixed` host (see the MDX \"Bouton flottant\"\n * recipe) to reproduce the classic floating-action-button placement.\n */\n@Component({\n selector: 'ui-speed-dial',\n imports: [UiButton, NgTemplateOutlet, RouterLink, UiTooltip, UiMotion],\n templateUrl: './ui-speed-dial.html',\n styleUrl: './ui-speed-dial.scss',\n})\nexport class UiSpeedDial {\n /** Actions revealed by the dial (see {@link UiSpeedDialItem}). */\n items = input.required<UiSpeedDialItem[]>();\n /** Open state (two-way). */\n visible = model(false);\n\n /** Layout: `linear` (stacked), `circle` (ring), `semi-circle` or `quarter-circle` (arc). */\n type = input<SpeedDialType>('linear');\n /**\n * Axis the actions fan along. `linear`/`semi-circle` read the four\n * cardinal values; `quarter-circle` reads the four corners. Unused by\n * `circle`, which always goes full ring.\n */\n direction = input<SpeedDialDirection>('up');\n /** Ring/arc radius in px — every type but `linear`. Falls back to a size-derived default. */\n radius = input<number>();\n\n /** Semantic level of the trigger. */\n level = input<UiLevel>('high');\n /**\n * Semantic level of the actions. Defaults to `low`, deliberately different\n * from the trigger's own `level`: a `high`-styled action would read as a\n * second primary button rather than a revealed option.\n */\n itemLevel = input<UiLevel>('low');\n /** Apparence of the trigger and the actions. */\n variant = input<ButtonVariant>('filled');\n /** Size of the trigger and the actions. */\n size = input<ButtonSize>('default');\n\n /** Icon of the trigger while closed. */\n showIcon = input<string>('plus');\n /**\n * Icon of the trigger while open. Left unset, `showIcon` rotates 45° in\n * place instead of being swapped for a second icon.\n */\n hideIcon = input<string>();\n /** Animates the trigger icon's rotation (`hideIcon` unset only). */\n rotateAnimation = input(true, { transform: booleanAttribute });\n\n /** Dims the page behind the dial while open. */\n mask = input(false, { transform: booleanAttribute });\n /** Closes the dial on an outside click. */\n hideOnClickOutside = input(true, { transform: booleanAttribute });\n /** Disables the trigger and every action. */\n disabled = input(false, { transform: booleanAttribute });\n\n /** Shows each action's label as a tooltip (icon-only actions). */\n showTooltips = input(false, { transform: booleanAttribute });\n /** Animates the trigger and the actions (reduced-motion always wins). */\n motion = input(true, { transform: booleanAttribute });\n\n /** Accessible name of the trigger. */\n ariaLabel = input<string>();\n /** id of an external element naming the trigger. */\n ariaLabelledBy = input<string>();\n /** Native tabindex of the trigger. */\n tabindex = input<number>(0, { transform: numberAttribute });\n\n /** Fired when the trigger is clicked (never when disabled). */\n triggerClick = output<MouseEvent>();\n /** Fired when the dial opens. */\n opened = output<void>();\n /** Fired when the dial closes. */\n closed = output<void>();\n /** Fired when an action is activated (click / keyboard), never when disabled. */\n itemClick = output<UiSpeedDialItemClickEvent>();\n\n /** @ignore */\n private readonly document = inject(DOCUMENT);\n /** @ignore Host element — outside-click detection. */\n private readonly hostEl = inject(ElementRef<HTMLElement>);\n /** @ignore Trigger button (programmatic focus). */\n private readonly triggerEl = viewChild<UiButton>('trigger');\n /** @ignore Rendered action buttons, in DOM order — the roving tabindex ring.\n * Matched by their own `#actionBtn` ref so the trigger (`#trigger`) is excluded. */\n private readonly actionEls = viewChildren<UiButton>('actionBtn');\n\n /** Unique id of the actions list (wired to the trigger's `aria-controls`). */\n readonly uid = `ui-speed-dial-${nextUid++}`;\n /** @ignore Key of the action currently holding the roving tab stop. */\n protected readonly focusedKey = signal<string | null>(null);\n\n constructor() {\n // A dial declared in an app shell (header, sidebar) outlives the routed\n // view: close it rather than leaving it open over the next page.\n //\n // Deferred one frame (`afterNextRender`, not the constructor directly): a\n // dial that starts open (`[visible]=\"true\"`, e.g. this very Storybook\n // canvas) races the router's OWN initial navigation — that first\n // `NavigationStart` can still fire after this component exists but\n // before `router.url` has settled, which `closeOnNavigation` would then\n // read as \"the page changed\" and close a dial that never got a chance to\n // be seen open. One frame is enough for that bootstrap navigation to\n // resolve, and `closeOnNavigation`'s own job (dismiss on a LATER, real\n // navigation) is not time-critical to wire up before then.\n afterNextRender(() => closeOnNavigation(() => this.hide()));\n\n // Outside-click dismissal: attached only while open, torn down on close —\n // a document-wide listener has no reason to exist while nothing is open.\n effect((onCleanup) => {\n if (!this.visible()) return;\n const handler = (event: PointerEvent) => this.onDocumentPointerdown(event);\n this.document.addEventListener('pointerdown', handler, true);\n onCleanup(() => this.document.removeEventListener('pointerdown', handler, true));\n });\n }\n\n /** @ignore Enabled actions, keyed for the roving tabindex + trigonometry. */\n protected readonly nodes = computed<UiSpeedDialNode[]>(() =>\n this.items().map((item, index) => ({ item, key: item.id ?? `${this.uid}_${index}`, index })),\n );\n\n /** @ignore Keys of the enabled entries, in order (roving focus path). */\n private readonly focusableKeys = computed<string[]>(() =>\n this.nodes()\n .filter((n) => !n.item.disabled)\n .map((n) => n.key),\n );\n\n /** @ignore Node owning the tab stop: last focused, else the first enabled one. */\n protected readonly tabStopKey = computed<string | null>(() => {\n const keys = this.focusableKeys();\n const focused = this.focusedKey();\n return focused && keys.includes(focused) ? focused : (keys[0] ?? null);\n });\n\n /**\n * @ignore Explicit ring radius, in px — set as the `--_radius` override.\n * Left unset (`null`, no inline style), the SCSS default takes over.\n */\n protected readonly radiusOverride = computed(() => {\n const r = this.radius();\n return r != null ? `${r}px` : null;\n });\n\n /**\n * @ignore Per-item position on an arc (`circle`/`semi-circle`/\n * `quarter-circle`): self-centred on the trigger, `--_radius` out at its\n * angular slot (see `radiusOverride` for the explicit/default split).\n *\n * `circle` steps evenly around the FULL span (`span / total`, wrapping);\n * the other two divide by `total - 1` so the first and last actions land\n * exactly on the arc's own ends, not short of them.\n */\n protected readonly arcTransform = computed(() => {\n const type = this.type();\n const total = this.nodes().length;\n if (type === 'linear' || !total) return () => null;\n const { start, span } = arcSpan(type, this.direction());\n const step = type === 'circle' ? span / total : span / Math.max(total - 1, 1);\n return (index: number) => {\n const angle = ((start + step * index) * Math.PI) / 180;\n // Floating point noise (e.g. sin(π) ≈ 1.2e-16) prints as exponential\n // notation, which CSS `calc()` cannot parse — round it away.\n const x = round(Math.sin(angle));\n const y = round(-Math.cos(angle));\n return `translate(-50%, -50%) translate(calc(${x} * var(--_radius)), calc(${y} * var(--_radius)))`;\n };\n });\n\n /**\n * @ignore Enter/leave preset.\n *\n * Arc items (`circle`/`semi-circle`/`quarter-circle`) already carry their\n * own `[style.transform]` (angular position, `arcTransform`) —\n * `zoom`/`slide-*` animate `transform` too, and a CSS animation on a\n * property wins over an inline style for it, wiping the position out for\n * the animation's duration. `fade` (opacity only) is the one preset that\n * cannot collide with it.\n *\n * `linear` items carry no such transform, so they get the more expressive\n * `slide-${direction}` — \"enter moving toward `direction`\".\n */\n protected readonly itemMotionPreset = computed<UiMotionPreset>(() => {\n if (this.type() !== 'linear') return 'fade';\n // `linear` only means a cardinal direction; a corner value (meant for\n // `quarter-circle`) has no matching slide preset — fall back to 'up'.\n const d = this.direction();\n return (\n d === 'up' || d === 'down' || d === 'left' || d === 'right' ? `slide-${d}` : 'slide-up'\n ) as UiMotionPreset;\n });\n\n /** @ignore Trigger icon while open: `hideIcon`, or `showIcon` rotated in place. */\n protected readonly triggerIcon = computed(() => this.hideIcon() ?? this.showIcon());\n /** @ignore The trigger icon rotates only when there is no dedicated `hideIcon`. */\n protected readonly triggerIconRotates = computed(\n () => this.visible() && !this.hideIcon() && this.rotateAnimation(),\n );\n\n /** @ignore Tooltip side: opposite the fan-out direction, so it never overlaps an action. */\n protected readonly tooltipPosition = computed<TooltipPosition>(() => {\n if (this.type() !== 'linear') return 'top';\n const d = this.direction();\n if (d === 'up') return 'right';\n if (d === 'down') return 'right';\n if (d === 'left') return 'top';\n return 'top';\n });\n\n /**\n * @ignore Attributes forwarded onto the trigger's real `<button>`/`<a>`\n * (`ui-button`'s `#host`, not the `<ui-speed-dial>` wrapper): `role`,\n * `ariaLabel` and `tabindex` already have dedicated `ui-button` inputs, the\n * rest goes through `buttonProps` (see `ui-button`'s own forwarding).\n */\n protected readonly triggerProps = computed<ButtonNativeProps>(() => ({\n 'aria-haspopup': 'true',\n 'aria-expanded': this.visible() ? 'true' : 'false',\n 'aria-controls': this.uid,\n 'aria-labelledby': this.ariaLabelledBy() ?? null,\n }));\n\n /** @ignore Static: every action is a `menuitem`, whatever it renders as (button/link). */\n protected readonly itemProps: ButtonNativeProps = { role: 'menuitem' };\n\n /** @ignore */\n protected readonly hostClasses = computed(() => {\n const c = ['ui-speed-dial', `_${this.type()}`];\n if (this.type() === 'linear') c.push(`_${this.direction()}`);\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.visible()) c.push('_open');\n return c.join(' ');\n });\n\n /** Opens the dial. */\n show(): void {\n if (this.disabled() || this.visible()) return;\n this.visible.set(true);\n this.opened.emit();\n }\n\n /** Closes the dial. */\n hide(focusTrigger = false): void {\n if (!this.visible()) return;\n this.visible.set(false);\n this.focusedKey.set(null);\n this.closed.emit();\n if (focusTrigger) this.triggerEl()?.focus();\n }\n\n /** Toggles the dial open/closed. */\n toggle(): void {\n this.visible() ? this.hide() : this.show();\n }\n\n /** Moves focus onto the trigger. */\n focus(options?: FocusOptions): void {\n this.triggerEl()?.focus(options);\n }\n\n /** @ignore */\n protected onTriggerClick(event: MouseEvent): void {\n if (this.disabled()) return;\n this.triggerClick.emit(event);\n this.toggle();\n }\n\n /** @ignore Arrow key on the (closed) trigger opens the dial onto its first action. */\n protected onTriggerKeydown(event: KeyboardEvent): void {\n if (this.disabled() || this.visible()) return;\n if (!['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'].includes(event.key)) return;\n event.preventDefault();\n this.show();\n this.queueFocusTabStop();\n }\n\n /** @ignore Activation: command + itemClick, then close (never on a disabled entry). */\n protected onItemClick(event: Event, node: UiSpeedDialNode): void {\n const item = node.item;\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n if (!item.url && !item.routerLink) event.preventDefault();\n this.focusedKey.set(node.key);\n item.command?.({ originalEvent: event, item });\n this.itemClick.emit({ originalEvent: event, item });\n this.hide(true);\n }\n\n /**\n * @ignore Roving keyboard navigation among the open actions.\n *\n * Both arrow pairs move the same way regardless of `direction`/`type`: it\n * keeps the mapping simple and predictable rather than re-deriving which\n * pair means \"forward\" for eight possible linear/circular layouts.\n */\n protected onListKeydown(event: KeyboardEvent): void {\n const keys = this.focusableKeys();\n if (!keys.length) return;\n const current = this.focusedKey();\n const index = current ? keys.indexOf(current) : -1;\n\n switch (event.key) {\n case 'ArrowUp':\n case 'ArrowRight':\n event.preventDefault();\n this.focusByKey(keys[(index + 1) % keys.length]);\n break;\n case 'ArrowDown':\n case 'ArrowLeft':\n event.preventDefault();\n this.focusByKey(keys[(index - 1 + keys.length) % keys.length]);\n break;\n case 'Home':\n event.preventDefault();\n this.focusByKey(keys[0]);\n break;\n case 'End':\n event.preventDefault();\n this.focusByKey(keys[keys.length - 1]);\n break;\n case 'Escape':\n event.preventDefault();\n this.hide(true);\n break;\n }\n }\n\n /** @ignore */\n protected onEntryFocus(key: string): void {\n this.focusedKey.set(key);\n }\n\n /** @ignore Outside pointerdown closes the dial (mousedown mirrors ui-menu's own outside-click). */\n protected onDocumentPointerdown(event: PointerEvent): void {\n if (!this.visible() || !this.hideOnClickOutside()) return;\n if (event.target instanceof Node && this.hostEl.nativeElement.contains(event.target)) return;\n this.hide();\n }\n\n /** @ignore Clicking the mask itself closes the dial. */\n protected onMaskClick(): void {\n this.hide();\n }\n\n /** @ignore */\n private focusByKey(key: string | undefined): void {\n if (!key) return;\n this.focusedKey.set(key);\n const target = this.nodes().find((n) => n.key === key);\n if (!target) return;\n this.actionEls()[target.index]?.focus();\n }\n\n /** @ignore Focus the roving tab stop once the actions are rendered (macrotask: rAF\n * never fires in throttled/background tabs). */\n private queueFocusTabStop(): void {\n setTimeout(() => this.focusByKey(this.tabStopKey() ?? undefined));\n }\n}\n","<div [class]=\"hostClasses()\" [style.--_radius]=\"radiusOverride()\">\n @if (mask() && visible()) {\n <div\n class=\"ui-speed-dial-mask\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #maskMotion=\"uiMotion\"\n [animate.enter]=\"maskMotion.enter()\"\n [animate.leave]=\"maskMotion.leave()\"\n (click)=\"onMaskClick()\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <ui-button\n #trigger\n class=\"ui-speed-dial-trigger\"\n [class._rotate]=\"triggerIconRotates()\"\n rounded\n iconOnly\n [level]=\"level()\"\n [variant]=\"variant()\"\n [size]=\"size()\"\n [icon]=\"triggerIcon()\"\n [ariaLabel]=\"ariaLabel()\"\n [disabled]=\"disabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"triggerProps()\"\n (buttonClick)=\"onTriggerClick($event)\"\n (keydown)=\"onTriggerKeydown($event)\"\n />\n\n @if (visible()) {\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-speed-dial-list\"\n [id]=\"uid\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n @for (node of nodes(); track node.key) {\n <ui-button\n #actionBtn\n class=\"ui-speed-dial-item\"\n [style.--_stagger-index]=\"node.index\"\n [style.transform]=\"type() !== 'linear' ? arcTransform()(node.index) : null\"\n [uiMotion]=\"itemMotionPreset()\"\n [motionDisabled]=\"!motion()\"\n #itemMotion=\"uiMotion\"\n [animate.enter]=\"itemMotion.enter()\"\n [animate.leave]=\"itemMotion.leave()\"\n rounded\n iconOnly\n [level]=\"itemLevel()\"\n [variant]=\"variant()\"\n size=\"small\"\n [icon]=\"node.item.icon\"\n [ariaLabel]=\"node.item.ariaLabel || node.item.label\"\n [disabled]=\"node.item.disabled\"\n [href]=\"node.item.url\"\n [routerLink]=\"node.item.routerLink\"\n [target]=\"node.item.target\"\n [tabindex]=\"node.key === tabStopKey() ? 0 : -1\"\n [buttonProps]=\"itemProps\"\n [uiTooltip]=\"showTooltips() ? node.item.ariaLabel || node.item.label : undefined\"\n [tooltipPosition]=\"tooltipPosition()\"\n (buttonClick)=\"onItemClick($event, node)\"\n (focus)=\"onEntryFocus(node.key)\"\n />\n }\n </div>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-speed-dial\n */\n\nexport * from './lib/ui-speed-dial';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAwEA;AACA,IAAI,OAAO,GAAG,CAAC;AAEf;AACA,SAAS,KAAK,CAAC,KAAa,EAAA;IAC1B,OAAO,IAAI,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