@4sh/ui-kit 0.7.0 → 0.8.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.
Files changed (82) hide show
  1. package/README.fr.md +12 -11
  2. package/README.md +12 -11
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +1 -1
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +5 -3
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +1 -1
  8. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +6 -4
  10. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +206 -25
  12. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +2 -2
  14. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +16 -3
  16. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +5 -3
  18. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +2 -2
  20. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +2 -2
  22. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +2 -2
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  25. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +2 -2
  26. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +282 -0
  28. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -0
  29. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +1 -1
  30. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +6 -4
  32. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +5 -3
  34. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +2 -2
  36. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +6 -4
  38. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms.mjs +7 -2
  40. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +370 -0
  42. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -0
  43. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +5 -3
  44. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +5 -3
  46. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +5 -3
  48. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +6 -2
  50. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-ripple.mjs +298 -0
  52. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -0
  53. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +5 -3
  54. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +1 -1
  56. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  57. package/mcp/data/text-search-docs.json +437 -17
  58. package/mcp/data/ui-config.json +830 -0
  59. package/mcp/package.json +1 -1
  60. package/package.json +13 -1
  61. package/styles/base/_ripple.scss +53 -0
  62. package/styles/component-vars.scss +59 -1
  63. package/styles/index.scss +1 -0
  64. package/styles/settings/_ui-config.scss +9 -0
  65. package/styles.css +1 -1
  66. package/types/4sh-ui-kit-actions-ui-button.d.ts +3 -1
  67. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +3 -1
  68. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +57 -2
  69. package/types/4sh-ui-kit-forms-ui-field.d.ts +13 -1
  70. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +3 -1
  71. package/types/4sh-ui-kit-forms-ui-knob.d.ts +93 -0
  72. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +3 -1
  73. package/types/4sh-ui-kit-forms-ui-select.d.ts +3 -1
  74. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +3 -1
  75. package/types/4sh-ui-kit-forms.d.ts +5 -1
  76. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +201 -0
  77. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +3 -1
  78. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +3 -1
  79. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +3 -1
  80. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +3 -1
  81. package/types/4sh-ui-kit-ripple.d.ts +156 -0
  82. package/types/4sh-ui-kit-table-ui-paginator.d.ts +3 -1
@@ -0,0 +1,370 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, booleanAttribute, output, inject, viewChild, computed, isDevMode, effect, Component, model } from '@angular/core';
3
+ import { NgTemplateOutlet } from '@angular/common';
4
+ import { RouterLink } from '@angular/router';
5
+ import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
6
+
7
+ /** Focusable controls the bar walks with the arrow keys. */
8
+ const CONTROL_SELECTOR = '.ui-bottom-tab, .ui-bottom-tab-action';
9
+ /**
10
+ * ui-bottom-tab , a single destination inside a {@link UiBottomTabBar}.
11
+ *
12
+ * Renders a real native `<button>` , or an `<a>` as soon as `href` / `routerLink`
13
+ * is set, so Cmd/Ctrl+click and "open in new tab" keep working. The host is
14
+ * `display: contents`, so the control sits directly inside the bar's `<nav>`.
15
+ *
16
+ * The active state is owned by the bar (`value` comparison) and surfaced to
17
+ * assistive tech as `aria-current="page"`, the pattern for a navigation
18
+ * landmark , not `role="tab"`, which would require an associated tab panel.
19
+ *
20
+ * Declared before {@link UiBottomTabBar} so its `inject()` reference resolves
21
+ * at construction time without a temporal-dead-zone error.
22
+ */
23
+ class UiBottomTab {
24
+ constructor() {
25
+ /** Identifier of this tab (matched against the bar `value`). */
26
+ this.value = input.required(/* @ts-ignore */
27
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
28
+ /** Visible label under the icon. Omit it for an icon-only tab (then `ariaLabel` names it). */
29
+ this.label = input(/* @ts-ignore */
30
+ ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
31
+ /** Icon name in the resting state. */
32
+ this.icon = input(/* @ts-ignore */
33
+ ...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
34
+ /** Icon name once active (falls back to `icon`). */
35
+ this.activeIcon = input(/* @ts-ignore */
36
+ ...(ngDevMode ? [undefined, { debugName: "activeIcon" }] : /* istanbul ignore next */ []));
37
+ /**
38
+ * Icon variant in the resting state. Set it to `outline` to get the classic
39
+ * outline → filled swap on activation, `activeIconType` already being `solid`
40
+ * , but check the icon exists in the family's outline set first (FontAwesome
41
+ * Free only ships a handful).
42
+ */
43
+ this.iconType = input('solid', /* @ts-ignore */
44
+ ...(ngDevMode ? [{ debugName: "iconType" }] : /* istanbul ignore next */ []));
45
+ /** Icon variant once active. */
46
+ this.activeIconType = input('solid', /* @ts-ignore */
47
+ ...(ngDevMode ? [{ debugName: "activeIconType" }] : /* istanbul ignore next */ []));
48
+ /** Disable the tab (not activable, skipped by the arrow keys). */
49
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
50
+ /** Accessible name override (mandatory when no label is visible). */
51
+ this.ariaLabel = input(/* @ts-ignore */
52
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
53
+ /** Press wave on this tab. `false` opts it out, global activation included. */
54
+ this.ripple = input(true, { ...(ngDevMode ? { debugName: "ripple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
55
+ /** External / plain URL. Presence switches the control to an `<a>`. */
56
+ this.href = input(/* @ts-ignore */
57
+ ...(ngDevMode ? [undefined, { debugName: "href" }] : /* istanbul ignore next */ []));
58
+ /** Angular router target. Presence switches the control to an `<a>` (RouterLink). */
59
+ this.routerLink = input(/* @ts-ignore */
60
+ ...(ngDevMode ? [undefined, { debugName: "routerLink" }] : /* istanbul ignore next */ []));
61
+ /** Anchor target (e.g. "_blank"). Link mode only. */
62
+ this.target = input(/* @ts-ignore */
63
+ ...(ngDevMode ? [undefined, { debugName: "target" }] : /* istanbul ignore next */ []));
64
+ /** Anchor rel. Defaults to "noopener noreferrer" when target="_blank". */
65
+ this.rel = input(/* @ts-ignore */
66
+ ...(ngDevMode ? [undefined, { debugName: "rel" }] : /* istanbul ignore next */ []));
67
+ /** Fired on activation (click, Enter/Space), even when already active. */
68
+ this.tabClick = output();
69
+ /** @ignore Parent bar (owns the active value + the shared options). */
70
+ this.bar = inject(UiBottomTabBar);
71
+ /** @ignore The native control, for programmatic focus. */
72
+ this.controlEl = viewChild.required('control', /* @ts-ignore */
73
+ ...(ngDevMode ? [{ debugName: "controlEl" }] : /* istanbul ignore next */ []));
74
+ /** @ignore Whether this tab is the active one. */
75
+ this.active = computed(() => this.bar.isActive(this.value()), /* @ts-ignore */
76
+ ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
77
+ /** @ignore Label rendered only when provided AND the bar shows labels. */
78
+ this.labelVisible = computed(() => !!this.label() && this.bar.showLabels(), /* @ts-ignore */
79
+ ...(ngDevMode ? [{ debugName: "labelVisible" }] : /* istanbul ignore next */ []));
80
+ /** @ignore Icon swapped on activation (filled once selected, outlined otherwise). */
81
+ this.resolvedIcon = computed(() => this.active() ? (this.activeIcon() ?? this.icon()) : this.icon(), /* @ts-ignore */
82
+ ...(ngDevMode ? [{ debugName: "resolvedIcon" }] : /* istanbul ignore next */ []));
83
+ /** @ignore */
84
+ this.resolvedIconType = computed(() => this.active() ? this.activeIconType() : this.iconType(), /* @ts-ignore */
85
+ ...(ngDevMode ? [{ debugName: "resolvedIconType" }] : /* istanbul ignore next */ []));
86
+ /**
87
+ * @ignore Accessible name: explicit, otherwise the hidden label. Left `null`
88
+ * when the label is visible , the control's own text names it.
89
+ */
90
+ this.accessibleLabel = computed(() => this.ariaLabel() ?? (this.labelVisible() ? null : (this.label() ?? null)), /* @ts-ignore */
91
+ ...(ngDevMode ? [{ debugName: "accessibleLabel" }] : /* istanbul ignore next */ []));
92
+ /** @ignore Press wave: opted out on the tab, or on the whole bar. */
93
+ this.rippleOn = computed(() => this.ripple() && this.bar.ripple(), /* @ts-ignore */
94
+ ...(ngDevMode ? [{ debugName: "rippleOn" }] : /* istanbul ignore next */ []));
95
+ /** @ignore Control renders an `<a>` (a URL or a router target was provided). */
96
+ this.isLink = computed(() => !!this.href() || this.routerLink() != null, /* @ts-ignore */
97
+ ...(ngDevMode ? [{ debugName: "isLink" }] : /* istanbul ignore next */ []));
98
+ /** @ignore */
99
+ this.useRouterLink = computed(() => this.routerLink() != null, /* @ts-ignore */
100
+ ...(ngDevMode ? [{ debugName: "useRouterLink" }] : /* istanbul ignore next */ []));
101
+ /** @ignore Anchor rel: explicit, or a safe default for target="_blank". */
102
+ this.computedRel = computed(() => {
103
+ if (this.rel())
104
+ return this.rel();
105
+ if (this.target() === '_blank')
106
+ return 'noopener noreferrer';
107
+ return null;
108
+ }, /* @ts-ignore */
109
+ ...(ngDevMode ? [{ debugName: "computedRel" }] : /* istanbul ignore next */ []));
110
+ /** @ignore An `<a>` has no native `disabled`: take it out of the tab order. */
111
+ this.linkTabindex = computed(() => (this.disabled() ? -1 : null), /* @ts-ignore */
112
+ ...(ngDevMode ? [{ debugName: "linkTabindex" }] : /* istanbul ignore next */ []));
113
+ /** @ignore */
114
+ this.classes = computed(() => {
115
+ const c = ['ui-bottom-tab'];
116
+ if (this.active())
117
+ c.push('_active');
118
+ if (this.disabled())
119
+ c.push('_disabled');
120
+ if (!this.labelVisible())
121
+ c.push('_no-label');
122
+ return c.join(' ');
123
+ }, /* @ts-ignore */
124
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
125
+ if (isDevMode()) {
126
+ effect(() => {
127
+ if (!this.labelVisible() && !this.accessibleLabel()) {
128
+ console.warn('[ui-bottom-tab] Tab with no visible label has no accessible name: provide `ariaLabel` (or `label`).');
129
+ }
130
+ });
131
+ }
132
+ }
133
+ /** Move focus to this tab's control. */
134
+ focus(options) {
135
+ this.controlEl().nativeElement.focus(options);
136
+ }
137
+ /** @ignore */
138
+ onClick(event) {
139
+ if (this.disabled()) {
140
+ event.preventDefault();
141
+ return;
142
+ }
143
+ this.tabClick.emit(event);
144
+ this.bar.updateValue(this.value(), event);
145
+ }
146
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiBottomTab, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
147
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiBottomTab, isStandalone: true, selector: "ui-bottom-tab", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, activeIcon: { classPropertyName: "activeIcon", publicName: "activeIcon", isSignal: true, isRequired: false, transformFunction: null }, iconType: { classPropertyName: "iconType", publicName: "iconType", isSignal: true, isRequired: false, transformFunction: null }, activeIconType: { classPropertyName: "activeIconType", publicName: "activeIconType", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", 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 } }, outputs: { tabClick: "tabClick" }, host: { classAttribute: "ui-bottom-tab-host" }, viewQueries: [{ propertyName: "controlEl", first: true, predicate: ["control"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (isLink()) {\n @if (useRouterLink()) {\n <a\n #control\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"rippleOn() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n } @else {\n <a\n #control\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"rippleOn() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n }\n} @else {\n <button\n #control\n type=\"button\"\n [class]=\"classes()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.data-ripple]=\"rippleOn() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n}\n\n<ng-template #inner>\n <span class=\"ui-bottom-tab-icon-box\">\n @if (resolvedIcon(); as name) {\n <ui-icon\n class=\"ui-bottom-tab-icon\"\n [name]=\"name\"\n [type]=\"resolvedIconType()\"\n size=\"default\"\n />\n }\n <!-- Adornment layer over the icon (notification badge, dot\u2026): projected content,\n never hit-tested, so a tap always reaches the control. -->\n <span class=\"ui-bottom-tab-adornment\"><ng-content /></span>\n </span>\n @if (labelVisible()) {\n <span class=\"ui-bottom-tab-label\">{{ label() }}</span>\n }\n</ng-template>\n", styles: [":host{display:contents}.ui-bottom-tab{display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;min-height:var(--ui-bottom-tab-bar-item-min-height, 3.5rem);margin:0;padding:var(--ui-bottom-tab-bar-item-padding-y, var(--units-md)) var(--ui-bottom-tab-bar-item-padding-x, var(--units-xs));border:0;border-radius:var(--ui-bottom-tab-bar-item-radius, 0);gap:var(--ui-bottom-tab-bar-item-gap, var(--units-sm));background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-weight:var(--ui-bottom-tab-bar-label-weight, var(--weight-regular));font-size:var(--ui-bottom-tab-bar-label-font-size, var(--size-typography-text-sm));line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-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-bottom-tab:hover:not(:disabled,[aria-disabled=true]){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-bottom-tab:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:inset 0 0 0 var(--ui-bottom-tab-bar-item-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--global-border-focus)}.ui-bottom-tab:active:not(:disabled,[aria-disabled=true]){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-bottom-tab:disabled,.ui-bottom-tab._disabled{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled);cursor:not-allowed}.ui-bottom-tab._active{background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}.ui-bottom-tab-icon-box{position:relative;display:inline-flex;flex:none;align-items:center;justify-content:center}.ui-bottom-tab-icon{--ui-icon-size: var(--ui-bottom-tab-bar-icon-size, var(--size-typography-icon-default))}.ui-bottom-tab-adornment{position:absolute;top:var(--ui-bottom-tab-bar-adornment-offset, -.375rem);left:100%;display:flex;align-items:center;transform:translate(var(--ui-bottom-tab-bar-adornment-offset, -.375rem));pointer-events:none}.ui-bottom-tab-label{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }] }); }
148
+ }
149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiBottomTab, decorators: [{
150
+ type: Component,
151
+ args: [{ selector: 'ui-bottom-tab', imports: [UiIcon, NgTemplateOutlet, RouterLink], host: { class: 'ui-bottom-tab-host' }, template: "@if (isLink()) {\n @if (useRouterLink()) {\n <a\n #control\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"rippleOn() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n } @else {\n <a\n #control\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"rippleOn() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n }\n} @else {\n <button\n #control\n type=\"button\"\n [class]=\"classes()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.data-ripple]=\"rippleOn() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n}\n\n<ng-template #inner>\n <span class=\"ui-bottom-tab-icon-box\">\n @if (resolvedIcon(); as name) {\n <ui-icon\n class=\"ui-bottom-tab-icon\"\n [name]=\"name\"\n [type]=\"resolvedIconType()\"\n size=\"default\"\n />\n }\n <!-- Adornment layer over the icon (notification badge, dot\u2026): projected content,\n never hit-tested, so a tap always reaches the control. -->\n <span class=\"ui-bottom-tab-adornment\"><ng-content /></span>\n </span>\n @if (labelVisible()) {\n <span class=\"ui-bottom-tab-label\">{{ label() }}</span>\n }\n</ng-template>\n", styles: [":host{display:contents}.ui-bottom-tab{display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;min-height:var(--ui-bottom-tab-bar-item-min-height, 3.5rem);margin:0;padding:var(--ui-bottom-tab-bar-item-padding-y, var(--units-md)) var(--ui-bottom-tab-bar-item-padding-x, var(--units-xs));border:0;border-radius:var(--ui-bottom-tab-bar-item-radius, 0);gap:var(--ui-bottom-tab-bar-item-gap, var(--units-sm));background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-weight:var(--ui-bottom-tab-bar-label-weight, var(--weight-regular));font-size:var(--ui-bottom-tab-bar-label-font-size, var(--size-typography-text-sm));line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-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-bottom-tab:hover:not(:disabled,[aria-disabled=true]){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-bottom-tab:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:inset 0 0 0 var(--ui-bottom-tab-bar-item-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--global-border-focus)}.ui-bottom-tab:active:not(:disabled,[aria-disabled=true]){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-bottom-tab:disabled,.ui-bottom-tab._disabled{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled);cursor:not-allowed}.ui-bottom-tab._active{background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}.ui-bottom-tab-icon-box{position:relative;display:inline-flex;flex:none;align-items:center;justify-content:center}.ui-bottom-tab-icon{--ui-icon-size: var(--ui-bottom-tab-bar-icon-size, var(--size-typography-icon-default))}.ui-bottom-tab-adornment{position:absolute;top:var(--ui-bottom-tab-bar-adornment-offset, -.375rem);left:100%;display:flex;align-items:center;transform:translate(var(--ui-bottom-tab-bar-adornment-offset, -.375rem));pointer-events:none}.ui-bottom-tab-label{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"] }]
152
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], activeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIcon", required: false }] }], iconType: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconType", required: false }] }], activeIconType: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIconType", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ripple: [{ type: i0.Input, args: [{ isSignal: true, alias: "ripple", 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 }] }], tabClick: [{ type: i0.Output, args: ["tabClick"] }], controlEl: [{ type: i0.ViewChild, args: ['control', { isSignal: true }] }] } });
153
+ /**
154
+ * ui-bottom-tab-action , the circular action raised above a
155
+ * {@link UiBottomTabBar} (the "float action" slot of the Figma component).
156
+ *
157
+ * A command, not a destination: it never carries the bar's active state. Place
158
+ * it anywhere among the tabs , between the second and the third for the classic
159
+ * centred layout. Always icon-only, so `ariaLabel` is mandatory.
160
+ */
161
+ class UiBottomTabAction {
162
+ constructor() {
163
+ /** Icon name. */
164
+ this.icon = input('plus', /* @ts-ignore */
165
+ ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
166
+ /** Icon variant. */
167
+ this.iconType = input('solid', /* @ts-ignore */
168
+ ...(ngDevMode ? [{ debugName: "iconType" }] : /* istanbul ignore next */ []));
169
+ /** Colour family, mapped onto the `actions.{level}` tokens. */
170
+ this.level = input('high', /* @ts-ignore */
171
+ ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
172
+ /** Accessible name , mandatory, the button carries no visible text. */
173
+ this.ariaLabel = input(/* @ts-ignore */
174
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
175
+ /** Disable the action (native attribute). */
176
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
177
+ /** Press wave on this action. `false` opts it out, global activation included. */
178
+ this.ripple = input(true, { ...(ngDevMode ? { debugName: "ripple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
179
+ /** Fired on click (never when disabled). */
180
+ this.actionClick = output();
181
+ /** @ignore */
182
+ this.controlEl = viewChild.required('control', /* @ts-ignore */
183
+ ...(ngDevMode ? [{ debugName: "controlEl" }] : /* istanbul ignore next */ []));
184
+ /** @ignore */
185
+ this.classes = computed(() => ['ui-bottom-tab-action', `_${this.level()}`].join(' '), /* @ts-ignore */
186
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
187
+ if (isDevMode()) {
188
+ effect(() => {
189
+ if (!this.ariaLabel()) {
190
+ console.warn('[ui-bottom-tab-action] Icon-only action has no accessible name: provide `ariaLabel`.');
191
+ }
192
+ });
193
+ }
194
+ }
195
+ /** Move focus to the action button. */
196
+ focus(options) {
197
+ this.controlEl().nativeElement.focus(options);
198
+ }
199
+ /** @ignore */
200
+ onClick(event) {
201
+ if (this.disabled())
202
+ return;
203
+ this.actionClick.emit(event);
204
+ }
205
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiBottomTabAction, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
206
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.2", type: UiBottomTabAction, isStandalone: true, selector: "ui-bottom-tab-action", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconType: { classPropertyName: "iconType", publicName: "iconType", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionClick: "actionClick" }, host: { classAttribute: "ui-bottom-tab-action-host" }, viewQueries: [{ propertyName: "controlEl", first: true, predicate: ["control"], descendants: true, isSignal: true }], ngImport: i0, template: `
207
+ <button
208
+ #control
209
+ type="button"
210
+ [class]="classes()"
211
+ [disabled]="disabled()"
212
+ [attr.aria-label]="ariaLabel()"
213
+ [attr.data-ripple]="ripple() ? 'on' : 'off'"
214
+ (click)="onClick($event)"
215
+ >
216
+ <ui-icon class="ui-bottom-tab-action-icon" [name]="icon()" size="xl" [type]="iconType()" />
217
+ </button>
218
+ `, isInline: true, styles: [":host{display:contents}.ui-bottom-tab-action{display:inline-flex;flex:none;align-items:center;justify-content:center;align-self:center;box-sizing:border-box;width:var(--ui-bottom-tab-bar-action-size, 4rem);height:var(--ui-bottom-tab-bar-action-size, 4rem);margin:0 var(--ui-bottom-tab-bar-action-gap, var(--units-2xs));padding:0;border:0;border-radius:var(--ui-bottom-tab-bar-action-radius, var(--radius-full));transform:translateY(calc(-1 * var(--ui-bottom-tab-bar-action-offset-y, 1.25rem)));box-shadow:var(--ui-bottom-tab-bar-action-shadow, var(--shadow-default-md));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-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-bottom-tab-action:focus-visible{outline:none;box-shadow:var(--ui-bottom-tab-bar-action-shadow, var(--shadow-default-md)),0 0 0 var(--ui-bottom-tab-bar-action-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--global-border-focus)}.ui-bottom-tab-action:disabled{box-shadow:none;cursor:not-allowed}.ui-bottom-tab-action._high{background-color:var(--actions-high-surface-default);color:var(--actions-high-content-default)}.ui-bottom-tab-action._high:hover:not(:disabled){background-color:var(--actions-high-surface-hover);color:var(--actions-high-content-hover)}.ui-bottom-tab-action._high:focus-visible{background-color:var(--actions-high-surface-focused);color:var(--actions-high-content-focused)}.ui-bottom-tab-action._high:active:not(:disabled){background-color:var(--actions-high-surface-pressed);color:var(--actions-high-content-pressed)}.ui-bottom-tab-action._high:disabled{background-color:var(--actions-high-surface-disabled);color:var(--actions-high-content-disabled)}.ui-bottom-tab-action._low{background-color:var(--actions-low-surface-default);color:var(--actions-low-content-default)}.ui-bottom-tab-action._low:hover:not(:disabled){background-color:var(--actions-low-surface-hover);color:var(--actions-low-content-hover)}.ui-bottom-tab-action._low:focus-visible{background-color:var(--actions-low-surface-focused);color:var(--actions-low-content-focused)}.ui-bottom-tab-action._low:active:not(:disabled){background-color:var(--actions-low-surface-pressed);color:var(--actions-low-content-pressed)}.ui-bottom-tab-action._low:disabled{background-color:var(--actions-low-surface-disabled);color:var(--actions-low-content-disabled)}.ui-bottom-tab-action._success{background-color:var(--actions-success-surface-default);color:var(--actions-success-content-default)}.ui-bottom-tab-action._success:hover:not(:disabled){background-color:var(--actions-success-surface-hover);color:var(--actions-success-content-hover)}.ui-bottom-tab-action._success:focus-visible{background-color:var(--actions-success-surface-focused);color:var(--actions-success-content-focused)}.ui-bottom-tab-action._success:active:not(:disabled){background-color:var(--actions-success-surface-pressed);color:var(--actions-success-content-pressed)}.ui-bottom-tab-action._success:disabled{background-color:var(--actions-success-surface-disabled);color:var(--actions-success-content-disabled)}.ui-bottom-tab-action._warning{background-color:var(--actions-warning-surface-default);color:var(--actions-warning-content-default)}.ui-bottom-tab-action._warning:hover:not(:disabled){background-color:var(--actions-warning-surface-hover);color:var(--actions-warning-content-hover)}.ui-bottom-tab-action._warning:focus-visible{background-color:var(--actions-warning-surface-focused);color:var(--actions-warning-content-focused)}.ui-bottom-tab-action._warning:active:not(:disabled){background-color:var(--actions-warning-surface-pressed);color:var(--actions-warning-content-pressed)}.ui-bottom-tab-action._warning:disabled{background-color:var(--actions-warning-surface-disabled);color:var(--actions-warning-content-disabled)}.ui-bottom-tab-action._error{background-color:var(--actions-error-surface-default);color:var(--actions-error-content-default)}.ui-bottom-tab-action._error:hover:not(:disabled){background-color:var(--actions-error-surface-hover);color:var(--actions-error-content-hover)}.ui-bottom-tab-action._error:focus-visible{background-color:var(--actions-error-surface-focused);color:var(--actions-error-content-focused)}.ui-bottom-tab-action._error:active:not(:disabled){background-color:var(--actions-error-surface-pressed);color:var(--actions-error-content-pressed)}.ui-bottom-tab-action._error:disabled{background-color:var(--actions-error-surface-disabled);color:var(--actions-error-content-disabled)}.ui-bottom-tab-action-icon{--ui-icon-size: var(--ui-bottom-tab-bar-action-icon-size, var(--size-typography-icon-xl))}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
219
+ }
220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiBottomTabAction, decorators: [{
221
+ type: Component,
222
+ args: [{ selector: 'ui-bottom-tab-action', imports: [UiIcon], template: `
223
+ <button
224
+ #control
225
+ type="button"
226
+ [class]="classes()"
227
+ [disabled]="disabled()"
228
+ [attr.aria-label]="ariaLabel()"
229
+ [attr.data-ripple]="ripple() ? 'on' : 'off'"
230
+ (click)="onClick($event)"
231
+ >
232
+ <ui-icon class="ui-bottom-tab-action-icon" [name]="icon()" size="xl" [type]="iconType()" />
233
+ </button>
234
+ `, host: { class: 'ui-bottom-tab-action-host' }, styles: [":host{display:contents}.ui-bottom-tab-action{display:inline-flex;flex:none;align-items:center;justify-content:center;align-self:center;box-sizing:border-box;width:var(--ui-bottom-tab-bar-action-size, 4rem);height:var(--ui-bottom-tab-bar-action-size, 4rem);margin:0 var(--ui-bottom-tab-bar-action-gap, var(--units-2xs));padding:0;border:0;border-radius:var(--ui-bottom-tab-bar-action-radius, var(--radius-full));transform:translateY(calc(-1 * var(--ui-bottom-tab-bar-action-offset-y, 1.25rem)));box-shadow:var(--ui-bottom-tab-bar-action-shadow, var(--shadow-default-md));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-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-bottom-tab-action:focus-visible{outline:none;box-shadow:var(--ui-bottom-tab-bar-action-shadow, var(--shadow-default-md)),0 0 0 var(--ui-bottom-tab-bar-action-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--global-border-focus)}.ui-bottom-tab-action:disabled{box-shadow:none;cursor:not-allowed}.ui-bottom-tab-action._high{background-color:var(--actions-high-surface-default);color:var(--actions-high-content-default)}.ui-bottom-tab-action._high:hover:not(:disabled){background-color:var(--actions-high-surface-hover);color:var(--actions-high-content-hover)}.ui-bottom-tab-action._high:focus-visible{background-color:var(--actions-high-surface-focused);color:var(--actions-high-content-focused)}.ui-bottom-tab-action._high:active:not(:disabled){background-color:var(--actions-high-surface-pressed);color:var(--actions-high-content-pressed)}.ui-bottom-tab-action._high:disabled{background-color:var(--actions-high-surface-disabled);color:var(--actions-high-content-disabled)}.ui-bottom-tab-action._low{background-color:var(--actions-low-surface-default);color:var(--actions-low-content-default)}.ui-bottom-tab-action._low:hover:not(:disabled){background-color:var(--actions-low-surface-hover);color:var(--actions-low-content-hover)}.ui-bottom-tab-action._low:focus-visible{background-color:var(--actions-low-surface-focused);color:var(--actions-low-content-focused)}.ui-bottom-tab-action._low:active:not(:disabled){background-color:var(--actions-low-surface-pressed);color:var(--actions-low-content-pressed)}.ui-bottom-tab-action._low:disabled{background-color:var(--actions-low-surface-disabled);color:var(--actions-low-content-disabled)}.ui-bottom-tab-action._success{background-color:var(--actions-success-surface-default);color:var(--actions-success-content-default)}.ui-bottom-tab-action._success:hover:not(:disabled){background-color:var(--actions-success-surface-hover);color:var(--actions-success-content-hover)}.ui-bottom-tab-action._success:focus-visible{background-color:var(--actions-success-surface-focused);color:var(--actions-success-content-focused)}.ui-bottom-tab-action._success:active:not(:disabled){background-color:var(--actions-success-surface-pressed);color:var(--actions-success-content-pressed)}.ui-bottom-tab-action._success:disabled{background-color:var(--actions-success-surface-disabled);color:var(--actions-success-content-disabled)}.ui-bottom-tab-action._warning{background-color:var(--actions-warning-surface-default);color:var(--actions-warning-content-default)}.ui-bottom-tab-action._warning:hover:not(:disabled){background-color:var(--actions-warning-surface-hover);color:var(--actions-warning-content-hover)}.ui-bottom-tab-action._warning:focus-visible{background-color:var(--actions-warning-surface-focused);color:var(--actions-warning-content-focused)}.ui-bottom-tab-action._warning:active:not(:disabled){background-color:var(--actions-warning-surface-pressed);color:var(--actions-warning-content-pressed)}.ui-bottom-tab-action._warning:disabled{background-color:var(--actions-warning-surface-disabled);color:var(--actions-warning-content-disabled)}.ui-bottom-tab-action._error{background-color:var(--actions-error-surface-default);color:var(--actions-error-content-default)}.ui-bottom-tab-action._error:hover:not(:disabled){background-color:var(--actions-error-surface-hover);color:var(--actions-error-content-hover)}.ui-bottom-tab-action._error:focus-visible{background-color:var(--actions-error-surface-focused);color:var(--actions-error-content-focused)}.ui-bottom-tab-action._error:active:not(:disabled){background-color:var(--actions-error-surface-pressed);color:var(--actions-error-content-pressed)}.ui-bottom-tab-action._error:disabled{background-color:var(--actions-error-surface-disabled);color:var(--actions-error-content-disabled)}.ui-bottom-tab-action-icon{--ui-icon-size: var(--ui-bottom-tab-bar-action-icon-size, var(--size-typography-icon-xl))}\n"] }]
235
+ }], ctorParameters: () => [], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconType: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconType", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ripple: [{ type: i0.Input, args: [{ isSignal: true, alias: "ripple", required: false }] }], actionClick: [{ type: i0.Output, args: ["actionClick"] }], controlEl: [{ type: i0.ViewChild, args: ['control', { isSignal: true }] }] } });
236
+ /**
237
+ * ui-bottom-tab-bar , bottom navigation bar for touch devices (mobile, tablet).
238
+ *
239
+ * A `<nav>` landmark pinned to the bottom of the viewport, holding three to five
240
+ * {@link UiBottomTab} destinations and, optionally, a raised
241
+ * {@link UiBottomTabAction}. Every colour and metric comes from the
242
+ * `navigation.*` / `actions.*` design tokens.
243
+ *
244
+ * Built for the constraints of the device it lives on: the bar reserves the
245
+ * system inset (`safeArea`, the iOS home indicator and the Android gesture bar),
246
+ * items never fall under the 44px touch target, the double-tap zoom delay and
247
+ * the native tap flash are off (the kit's ripple owns press feedback), and the
248
+ * bar disappears from print. It positions itself `fixed` , pass `contained` to
249
+ * lay it out inside a positioned ancestor instead (a phone mockup, an embedded
250
+ * shell).
251
+ *
252
+ * @example
253
+ * ```html
254
+ * <ui-bottom-tab-bar [(value)]="route" ariaLabel="Navigation principale">
255
+ * <ui-bottom-tab value="/home" icon="house" label="Accueil" />
256
+ * <ui-bottom-tab value="/search" icon="magnifying-glass" label="Recherche" />
257
+ * <ui-bottom-tab-action ariaLabel="Nouveau message" (actionClick)="compose()" />
258
+ * <ui-bottom-tab value="/inbox" icon="envelope" label="Messages">
259
+ * <ui-badge value="3" level="error" />
260
+ * </ui-bottom-tab>
261
+ * <ui-bottom-tab value="/settings" icon="gear" label="Réglages" />
262
+ * </ui-bottom-tab-bar>
263
+ * ```
264
+ */
265
+ class UiBottomTabBar {
266
+ constructor() {
267
+ /** Value of the active tab (two-way). `undefined` = no active tab. */
268
+ this.value = model(undefined, /* @ts-ignore */
269
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
270
+ /** Accessible name of the navigation landmark. */
271
+ this.ariaLabel = input('Navigation principale', /* @ts-ignore */
272
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
273
+ /** Show the tabs' labels. `false` renders an icon-only bar. */
274
+ this.showLabels = input(true, { ...(ngDevMode ? { debugName: "showLabels" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
275
+ /** Reserve the system inset under the bar (iOS home indicator, Android gesture bar). */
276
+ this.safeArea = input(true, { ...(ngDevMode ? { debugName: "safeArea" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
277
+ /** Lay the bar out inside its positioned ancestor instead of the viewport. */
278
+ this.contained = input(false, { ...(ngDevMode ? { debugName: "contained" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
279
+ /** Press wave on the tabs. `false` cuts it on this bar, global activation included. */
280
+ this.ripple = input(true, { ...(ngDevMode ? { debugName: "ripple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
281
+ /** Fired whenever the active tab changes (click / keyboard). */
282
+ this.tabChange = output();
283
+ /** @ignore The `<nav>` landmark (arrow-key walking happens inside it). */
284
+ this.navEl = viewChild.required('nav', /* @ts-ignore */
285
+ ...(ngDevMode ? [{ debugName: "navEl" }] : /* istanbul ignore next */ []));
286
+ /** @ignore */
287
+ this.classes = computed(() => {
288
+ const c = ['ui-bottom-tab-bar'];
289
+ if (this.contained())
290
+ c.push('_contained');
291
+ if (!this.safeArea())
292
+ c.push('_no-safe-area');
293
+ if (!this.showLabels())
294
+ c.push('_no-labels');
295
+ return c.join(' ');
296
+ }, /* @ts-ignore */
297
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
298
+ }
299
+ /** @ignore Whether the given value is the active tab. */
300
+ isActive(value) {
301
+ return this.value() === value;
302
+ }
303
+ /** @ignore Activate a tab (no-op if already active); emits `tabChange`. */
304
+ updateValue(value, event) {
305
+ if (this.value() === value)
306
+ return;
307
+ this.value.set(value);
308
+ this.tabChange.emit({ value, originalEvent: event });
309
+ }
310
+ /**
311
+ * @ignore Arrow keys / Home / End walk the bar's controls. This is additive:
312
+ * unlike the roving tabindex of the tabs pattern, every control keeps its
313
+ * place in the tab order , which is what a navigation landmark owes its users.
314
+ *
315
+ * The controls are read from the DOM rather than through a content query: the
316
+ * bar mixes two projected component types (tabs and the raised action), and a
317
+ * single query cannot see both.
318
+ */
319
+ onKeydown(event) {
320
+ if (!['ArrowRight', 'ArrowLeft', 'Home', 'End'].includes(event.key))
321
+ return;
322
+ const controls = Array.from(this.navEl().nativeElement.querySelectorAll(CONTROL_SELECTOR)).filter((el) => !el.hasAttribute('disabled') && el.getAttribute('tabindex') !== '-1');
323
+ if (!controls.length)
324
+ return;
325
+ let pos = controls.indexOf(document.activeElement);
326
+ if (pos === -1)
327
+ return; // focus is elsewhere , let the event through.
328
+ event.preventDefault();
329
+ switch (event.key) {
330
+ case 'ArrowRight':
331
+ pos = (pos + 1) % controls.length;
332
+ break;
333
+ case 'ArrowLeft':
334
+ pos = (pos - 1 + controls.length) % controls.length;
335
+ break;
336
+ case 'Home':
337
+ pos = 0;
338
+ break;
339
+ case 'End':
340
+ pos = controls.length - 1;
341
+ break;
342
+ }
343
+ controls[pos].focus();
344
+ }
345
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiBottomTabBar, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
346
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.2", type: UiBottomTabBar, isStandalone: true, selector: "ui-bottom-tab-bar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, showLabels: { classPropertyName: "showLabels", publicName: "showLabels", isSignal: true, isRequired: false, transformFunction: null }, safeArea: { classPropertyName: "safeArea", publicName: "safeArea", isSignal: true, isRequired: false, transformFunction: null }, contained: { classPropertyName: "contained", publicName: "contained", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", tabChange: "tabChange" }, host: { listeners: { "keydown": "onKeydown($event)" } }, viewQueries: [{ propertyName: "navEl", first: true, predicate: ["nav"], descendants: true, isSignal: true }], ngImport: i0, template: `
347
+ <nav #nav [class]="classes()" [attr.aria-label]="ariaLabel()">
348
+ <ng-content />
349
+ </nav>
350
+ `, isInline: true, styles: [":host{display:contents}.ui-bottom-tab-bar{position:fixed;right:0;bottom:0;left:0;z-index:var(--ui-bottom-tab-bar-z-index, 100);display:flex;align-items:center;box-sizing:border-box;gap:var(--ui-bottom-tab-bar-gap, 0);min-height:calc(var(--ui-bottom-tab-bar-min-height, 3.5rem) + var(--ui-bottom-tab-bar-safe-area-offset, env(safe-area-inset-bottom, 0px)));padding:0 var(--ui-bottom-tab-bar-padding-x, 0) var(--ui-bottom-tab-bar-safe-area-offset, env(safe-area-inset-bottom, 0px));border-top:var(--ui-bottom-tab-bar-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-tab-bar-stroke, var(--global-border-default));background-color:var(--ui-bottom-tab-bar-surface, var(--global-background-default));box-shadow:var(--ui-bottom-tab-bar-shadow, none);touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;overflow:visible}.ui-bottom-tab-bar._contained{position:absolute}.ui-bottom-tab-bar._no-safe-area{min-height:var(--ui-bottom-tab-bar-min-height, 3.5rem);padding-bottom:0}@media print{.ui-bottom-tab-bar{display:none}}\n"] }); }
351
+ }
352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiBottomTabBar, decorators: [{
353
+ type: Component,
354
+ args: [{ selector: 'ui-bottom-tab-bar', template: `
355
+ <nav #nav [class]="classes()" [attr.aria-label]="ariaLabel()">
356
+ <ng-content />
357
+ </nav>
358
+ `, host: { '(keydown)': 'onKeydown($event)' }, styles: [":host{display:contents}.ui-bottom-tab-bar{position:fixed;right:0;bottom:0;left:0;z-index:var(--ui-bottom-tab-bar-z-index, 100);display:flex;align-items:center;box-sizing:border-box;gap:var(--ui-bottom-tab-bar-gap, 0);min-height:calc(var(--ui-bottom-tab-bar-min-height, 3.5rem) + var(--ui-bottom-tab-bar-safe-area-offset, env(safe-area-inset-bottom, 0px)));padding:0 var(--ui-bottom-tab-bar-padding-x, 0) var(--ui-bottom-tab-bar-safe-area-offset, env(safe-area-inset-bottom, 0px));border-top:var(--ui-bottom-tab-bar-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-tab-bar-stroke, var(--global-border-default));background-color:var(--ui-bottom-tab-bar-surface, var(--global-background-default));box-shadow:var(--ui-bottom-tab-bar-shadow, none);touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;overflow:visible}.ui-bottom-tab-bar._contained{position:absolute}.ui-bottom-tab-bar._no-safe-area{min-height:var(--ui-bottom-tab-bar-min-height, 3.5rem);padding-bottom:0}@media print{.ui-bottom-tab-bar{display:none}}\n"] }]
359
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], showLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabels", required: false }] }], safeArea: [{ type: i0.Input, args: [{ isSignal: true, alias: "safeArea", required: false }] }], contained: [{ type: i0.Input, args: [{ isSignal: true, alias: "contained", required: false }] }], ripple: [{ type: i0.Input, args: [{ isSignal: true, alias: "ripple", required: false }] }], tabChange: [{ type: i0.Output, args: ["tabChange"] }], navEl: [{ type: i0.ViewChild, args: ['nav', { isSignal: true }] }] } });
360
+
361
+ /*
362
+ * Public API Surface of ui-kit/ui-bottom-tab-bar
363
+ */
364
+
365
+ /**
366
+ * Generated bundle index. Do not edit.
367
+ */
368
+
369
+ export { UiBottomTab, UiBottomTabAction, UiBottomTabBar };
370
+ //# sourceMappingURL=4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs","sources":["../../../projects/ui-kit/navigation/ui-bottom-tab-bar/src/lib/ui-bottom-tab-bar.ts","../../../projects/ui-kit/navigation/ui-bottom-tab-bar/src/lib/ui-bottom-tab.html","../../../projects/ui-kit/navigation/ui-bottom-tab-bar/src/public-api.ts","../../../projects/ui-kit/navigation/ui-bottom-tab-bar/src/4sh-ui-kit-navigation-ui-bottom-tab-bar.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n isDevMode,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { UiIcon, UiIconType } from '@4sh/ui-kit/base/ui-icon';\nimport { UiLevel } from '@4sh/ui-kit/types';\n\n/** Identifier of a bottom tab (matched against the bar `value`). */\nexport type UiBottomTabValue = string | number;\n\n/** Payload emitted when the active tab changes. */\nexport interface UiBottomTabBarChangeEvent {\n /** Value of the tab that became active. */\n value: UiBottomTabValue;\n /** Originating DOM event (click / keyboard). */\n originalEvent: Event;\n}\n\n/** Focusable controls the bar walks with the arrow keys. */\nconst CONTROL_SELECTOR = '.ui-bottom-tab, .ui-bottom-tab-action';\n\n/**\n * ui-bottom-tab , a single destination inside a {@link UiBottomTabBar}.\n *\n * Renders a real native `<button>` , or an `<a>` as soon as `href` / `routerLink`\n * is set, so Cmd/Ctrl+click and \"open in new tab\" keep working. The host is\n * `display: contents`, so the control sits directly inside the bar's `<nav>`.\n *\n * The active state is owned by the bar (`value` comparison) and surfaced to\n * assistive tech as `aria-current=\"page\"`, the pattern for a navigation\n * landmark , not `role=\"tab\"`, which would require an associated tab panel.\n *\n * Declared before {@link UiBottomTabBar} so its `inject()` reference resolves\n * at construction time without a temporal-dead-zone error.\n */\n@Component({\n selector: 'ui-bottom-tab',\n imports: [UiIcon, NgTemplateOutlet, RouterLink],\n templateUrl: './ui-bottom-tab.html',\n styleUrl: './ui-bottom-tab.scss',\n host: { class: 'ui-bottom-tab-host' },\n})\nexport class UiBottomTab {\n /** Identifier of this tab (matched against the bar `value`). */\n value = input.required<UiBottomTabValue>();\n /** Visible label under the icon. Omit it for an icon-only tab (then `ariaLabel` names it). */\n label = input<string>();\n /** Icon name in the resting state. */\n icon = input<string>();\n /** Icon name once active (falls back to `icon`). */\n activeIcon = input<string>();\n /**\n * Icon variant in the resting state. Set it to `outline` to get the classic\n * outline → filled swap on activation, `activeIconType` already being `solid`\n * , but check the icon exists in the family's outline set first (FontAwesome\n * Free only ships a handful).\n */\n iconType = input<UiIconType>('solid');\n /** Icon variant once active. */\n activeIconType = input<UiIconType>('solid');\n /** Disable the tab (not activable, skipped by the arrow keys). */\n disabled = input(false, { transform: booleanAttribute });\n /** Accessible name override (mandatory when no label is visible). */\n ariaLabel = input<string>();\n /** Press wave on this tab. `false` opts it out, global activation included. */\n ripple = input(true, { transform: booleanAttribute });\n\n /** External / plain URL. Presence switches the control to an `<a>`. */\n href = input<string>();\n /** Angular router target. Presence switches the control to an `<a>` (RouterLink). */\n routerLink = input<string | unknown[]>();\n /** Anchor target (e.g. \"_blank\"). Link mode only. */\n target = input<string>();\n /** Anchor rel. Defaults to \"noopener noreferrer\" when target=\"_blank\". */\n rel = input<string>();\n\n /** Fired on activation (click, Enter/Space), even when already active. */\n tabClick = output<MouseEvent>();\n\n /** @ignore Parent bar (owns the active value + the shared options). */\n protected readonly bar = inject(UiBottomTabBar);\n\n /** @ignore The native control, for programmatic focus. */\n private readonly controlEl = viewChild.required<ElementRef<HTMLElement>>('control');\n\n /** @ignore Whether this tab is the active one. */\n readonly active = computed(() => this.bar.isActive(this.value()));\n\n /** @ignore Label rendered only when provided AND the bar shows labels. */\n protected readonly labelVisible = computed(() => !!this.label() && this.bar.showLabels());\n\n /** @ignore Icon swapped on activation (filled once selected, outlined otherwise). */\n protected readonly resolvedIcon = computed(() =>\n this.active() ? (this.activeIcon() ?? this.icon()) : this.icon(),\n );\n\n /** @ignore */\n protected readonly resolvedIconType = computed<UiIconType>(() =>\n this.active() ? this.activeIconType() : this.iconType(),\n );\n\n /**\n * @ignore Accessible name: explicit, otherwise the hidden label. Left `null`\n * when the label is visible , the control's own text names it.\n */\n protected readonly accessibleLabel = computed(\n () => this.ariaLabel() ?? (this.labelVisible() ? null : (this.label() ?? null)),\n );\n\n /** @ignore Press wave: opted out on the tab, or on the whole bar. */\n protected readonly rippleOn = computed(() => this.ripple() && this.bar.ripple());\n\n /** @ignore Control renders an `<a>` (a URL or a router target was provided). */\n protected readonly isLink = computed(() => !!this.href() || this.routerLink() != null);\n\n /** @ignore */\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 An `<a>` has no native `disabled`: take it out of the tab order. */\n protected readonly linkTabindex = computed(() => (this.disabled() ? -1 : null));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-bottom-tab'];\n if (this.active()) c.push('_active');\n if (this.disabled()) c.push('_disabled');\n if (!this.labelVisible()) c.push('_no-label');\n return c.join(' ');\n });\n\n constructor() {\n if (isDevMode()) {\n effect(() => {\n if (!this.labelVisible() && !this.accessibleLabel()) {\n console.warn(\n '[ui-bottom-tab] Tab with no visible label has no accessible name: provide `ariaLabel` (or `label`).',\n );\n }\n });\n }\n }\n\n /** Move focus to this tab's control. */\n focus(options?: FocusOptions): void {\n this.controlEl().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.tabClick.emit(event);\n this.bar.updateValue(this.value(), event);\n }\n}\n\n/**\n * ui-bottom-tab-action , the circular action raised above a\n * {@link UiBottomTabBar} (the \"float action\" slot of the Figma component).\n *\n * A command, not a destination: it never carries the bar's active state. Place\n * it anywhere among the tabs , between the second and the third for the classic\n * centred layout. Always icon-only, so `ariaLabel` is mandatory.\n */\n@Component({\n selector: 'ui-bottom-tab-action',\n imports: [UiIcon],\n template: `\n <button\n #control\n type=\"button\"\n [class]=\"classes()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n >\n <ui-icon class=\"ui-bottom-tab-action-icon\" [name]=\"icon()\" size=\"xl\" [type]=\"iconType()\" />\n </button>\n `,\n styleUrl: './ui-bottom-tab-action.scss',\n host: { class: 'ui-bottom-tab-action-host' },\n})\nexport class UiBottomTabAction {\n /** Icon name. */\n icon = input<string>('plus');\n /** Icon variant. */\n iconType = input<UiIconType>('solid');\n /** Colour family, mapped onto the `actions.{level}` tokens. */\n level = input<UiLevel>('high');\n /** Accessible name , mandatory, the button carries no visible text. */\n ariaLabel = input<string>();\n /** Disable the action (native attribute). */\n disabled = input(false, { transform: booleanAttribute });\n /** Press wave on this action. `false` opts it out, global activation included. */\n ripple = input(true, { transform: booleanAttribute });\n\n /** Fired on click (never when disabled). */\n actionClick = output<MouseEvent>();\n\n /** @ignore */\n private readonly controlEl = viewChild.required<ElementRef<HTMLButtonElement>>('control');\n\n /** @ignore */\n protected readonly classes = computed(() =>\n ['ui-bottom-tab-action', `_${this.level()}`].join(' '),\n );\n\n constructor() {\n if (isDevMode()) {\n effect(() => {\n if (!this.ariaLabel()) {\n console.warn(\n '[ui-bottom-tab-action] Icon-only action has no accessible name: provide `ariaLabel`.',\n );\n }\n });\n }\n }\n\n /** Move focus to the action button. */\n focus(options?: FocusOptions): void {\n this.controlEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) return;\n this.actionClick.emit(event);\n }\n}\n\n/**\n * ui-bottom-tab-bar , bottom navigation bar for touch devices (mobile, tablet).\n *\n * A `<nav>` landmark pinned to the bottom of the viewport, holding three to five\n * {@link UiBottomTab} destinations and, optionally, a raised\n * {@link UiBottomTabAction}. Every colour and metric comes from the\n * `navigation.*` / `actions.*` design tokens.\n *\n * Built for the constraints of the device it lives on: the bar reserves the\n * system inset (`safeArea`, the iOS home indicator and the Android gesture bar),\n * items never fall under the 44px touch target, the double-tap zoom delay and\n * the native tap flash are off (the kit's ripple owns press feedback), and the\n * bar disappears from print. It positions itself `fixed` , pass `contained` to\n * lay it out inside a positioned ancestor instead (a phone mockup, an embedded\n * shell).\n *\n * @example\n * ```html\n * <ui-bottom-tab-bar [(value)]=\"route\" ariaLabel=\"Navigation principale\">\n * <ui-bottom-tab value=\"/home\" icon=\"house\" label=\"Accueil\" />\n * <ui-bottom-tab value=\"/search\" icon=\"magnifying-glass\" label=\"Recherche\" />\n * <ui-bottom-tab-action ariaLabel=\"Nouveau message\" (actionClick)=\"compose()\" />\n * <ui-bottom-tab value=\"/inbox\" icon=\"envelope\" label=\"Messages\">\n * <ui-badge value=\"3\" level=\"error\" />\n * </ui-bottom-tab>\n * <ui-bottom-tab value=\"/settings\" icon=\"gear\" label=\"Réglages\" />\n * </ui-bottom-tab-bar>\n * ```\n */\n@Component({\n selector: 'ui-bottom-tab-bar',\n template: `\n <nav #nav [class]=\"classes()\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content />\n </nav>\n `,\n styleUrl: './ui-bottom-tab-bar.scss',\n // Keydown is bound on the host, not on the <nav>: the focus lives on the\n // projected controls, and the landmark itself must not become a tab stop.\n host: { '(keydown)': 'onKeydown($event)' },\n})\nexport class UiBottomTabBar {\n /** Value of the active tab (two-way). `undefined` = no active tab. */\n value = model<UiBottomTabValue | undefined>(undefined);\n /** Accessible name of the navigation landmark. */\n ariaLabel = input<string>('Navigation principale');\n /** Show the tabs' labels. `false` renders an icon-only bar. */\n showLabels = input(true, { transform: booleanAttribute });\n /** Reserve the system inset under the bar (iOS home indicator, Android gesture bar). */\n safeArea = input(true, { transform: booleanAttribute });\n /** Lay the bar out inside its positioned ancestor instead of the viewport. */\n contained = input(false, { transform: booleanAttribute });\n /** Press wave on the tabs. `false` cuts it on this bar, global activation included. */\n ripple = input(true, { transform: booleanAttribute });\n\n /** Fired whenever the active tab changes (click / keyboard). */\n tabChange = output<UiBottomTabBarChangeEvent>();\n\n /** @ignore The `<nav>` landmark (arrow-key walking happens inside it). */\n private readonly navEl = viewChild.required<ElementRef<HTMLElement>>('nav');\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-bottom-tab-bar'];\n if (this.contained()) c.push('_contained');\n if (!this.safeArea()) c.push('_no-safe-area');\n if (!this.showLabels()) c.push('_no-labels');\n return c.join(' ');\n });\n\n /** @ignore Whether the given value is the active tab. */\n isActive(value: UiBottomTabValue): boolean {\n return this.value() === value;\n }\n\n /** @ignore Activate a tab (no-op if already active); emits `tabChange`. */\n updateValue(value: UiBottomTabValue, event: Event): void {\n if (this.value() === value) return;\n this.value.set(value);\n this.tabChange.emit({ value, originalEvent: event });\n }\n\n /**\n * @ignore Arrow keys / Home / End walk the bar's controls. This is additive:\n * unlike the roving tabindex of the tabs pattern, every control keeps its\n * place in the tab order , which is what a navigation landmark owes its users.\n *\n * The controls are read from the DOM rather than through a content query: the\n * bar mixes two projected component types (tabs and the raised action), and a\n * single query cannot see both.\n */\n protected onKeydown(event: KeyboardEvent): void {\n if (!['ArrowRight', 'ArrowLeft', 'Home', 'End'].includes(event.key)) return;\n\n const controls = Array.from(\n this.navEl().nativeElement.querySelectorAll<HTMLElement>(CONTROL_SELECTOR),\n ).filter((el) => !el.hasAttribute('disabled') && el.getAttribute('tabindex') !== '-1');\n if (!controls.length) return;\n\n let pos = controls.indexOf(document.activeElement as HTMLElement);\n if (pos === -1) return; // focus is elsewhere , let the event through.\n\n event.preventDefault();\n switch (event.key) {\n case 'ArrowRight':\n pos = (pos + 1) % controls.length;\n break;\n case 'ArrowLeft':\n pos = (pos - 1 + controls.length) % controls.length;\n break;\n case 'Home':\n pos = 0;\n break;\n case 'End':\n pos = controls.length - 1;\n break;\n }\n controls[pos].focus();\n }\n}\n","@if (isLink()) {\n @if (useRouterLink()) {\n <a\n #control\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"rippleOn() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n } @else {\n <a\n #control\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"rippleOn() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n }\n} @else {\n <button\n #control\n type=\"button\"\n [class]=\"classes()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.data-ripple]=\"rippleOn() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n}\n\n<ng-template #inner>\n <span class=\"ui-bottom-tab-icon-box\">\n @if (resolvedIcon(); as name) {\n <ui-icon\n class=\"ui-bottom-tab-icon\"\n [name]=\"name\"\n [type]=\"resolvedIconType()\"\n size=\"default\"\n />\n }\n <!-- Adornment layer over the icon (notification badge, dot…): projected content,\n never hit-tested, so a tap always reaches the control. -->\n <span class=\"ui-bottom-tab-adornment\"><ng-content /></span>\n </span>\n @if (labelVisible()) {\n <span class=\"ui-bottom-tab-label\">{{ label() }}</span>\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-bottom-tab-bar\n */\n\nexport * from './lib/ui-bottom-tab-bar';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AA6BA;AACA,MAAM,gBAAgB,GAAG,uCAAuC;AAEhE;;;;;;;;;;;;;AAaG;MAQU,WAAW,CAAA;AA+FtB,IAAA,WAAA,GAAA;;QA7FA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ;kFAAoB;;AAE1C,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAU;AAC5B;;;;;AAKG;QACH,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,OAAO;qFAAC;;QAErC,IAAA,CAAA,cAAc,GAAG,KAAK,CAAa,OAAO;2FAAC;;QAE3C,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QAE3B,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,IAAI,8EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAGrD,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;;QAGrB,IAAA,CAAA,QAAQ,GAAG,MAAM,EAAc;;AAGZ,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,cAAc,CAAC;;AAG9B,QAAA,IAAA,CAAA,SAAS,GAAG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AA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,KAAA,EAAA,aAAA,EAAA,SAAA,EAAA,WAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,SAAA,EAAA,mBAAA,EAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,OAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,KAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAVf;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,ojCAAA,CAAA,EAAA,CAAA,CAAA;;2FAMU,cAAc,EAAA,UAAA,EAAA,CAAA;kBAZ1B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,mBAAmB,EAAA,QAAA,EACnB;;;;AAIT,EAAA,CAAA,EAAA,IAAA,EAIK,EAAE,WAAW,EAAE,mBAAmB,EAAE,EAAA,MAAA,EAAA,CAAA,ojCAAA,CAAA,EAAA;ouBAoB2B,KAAK,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvT5E;;AAEG;;ACFH;;AAEG;;"}
@@ -54,6 +54,8 @@ class UiContextMenu {
54
54
  ...(ngDevMode ? [{ debugName: "submenus" }] : /* istanbul ignore next */ []));
55
55
  /** Animate the menu entrance (reduced-motion always wins). */
56
56
  this.motion = input(true, { ...(ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
57
+ /** Ripple Effect */
58
+ this.ripple = input(true, { ...(ngDevMode ? { debugName: "ripple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
57
59
  /** Emitted when the menu opens. */
58
60
  this.opened = output();
59
61
  /** Emitted when the menu closes. */
@@ -200,12 +202,12 @@ class UiContextMenu {
200
202
  });
201
203
  }
202
204
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiContextMenu, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
203
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.2", type: UiContextMenu, isStandalone: true, selector: "ui-context-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, global: { classPropertyName: "global", publicName: "global", isSignal: true, isRequired: false, transformFunction: null }, triggerEvent: { classPropertyName: "triggerEvent", publicName: "triggerEvent", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, submenus: { classPropertyName: "submenus", publicName: "submenus", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "opened", closed: "closed", itemClick: "itemClick" }, queries: [{ propertyName: "itemTemplateContent", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "submenuHeaderTemplateContent", first: true, predicate: ["submenuheader"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayPoint()\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n (detach)=\"hide()\"\n>\n <!-- Context menu: Escape handled on the container, focus lives on the\n menu items (roving). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-context-menu\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n <!-- Projected #item / #submenuheader templates are forwarded as inputs:\n the embedded menu outlets them with its own item context. -->\n <ui-menu\n #menu\n [items]=\"items()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n [submenus]=\"submenus()\"\n [styleClass]=\"menuClasses()\"\n [ariaLabel]=\"ariaLabel()\"\n [itemTemplate]=\"itemTemplateContent()\"\n [submenuHeaderTemplate]=\"submenuHeaderTemplateContent()\"\n (itemClick)=\"onItemClick($event)\"\n />\n </div>\n</ng-template>\n", styles: [".ui-context-menu{display:block}\n"], dependencies: [{ kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "component", type: UiMenu, selector: "ui-menu", inputs: ["items", "popup", "expandedKeys", "ariaLabel", "ariaLabelledBy", "styleClass", "level", "size", "submenus", "motion", "autoFlip", "tabindex", "itemTemplate", "submenuHeaderTemplate"], outputs: ["expandedKeysChange", "opened", "closed", "itemClick"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
205
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.2", type: UiContextMenu, isStandalone: true, selector: "ui-context-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, global: { classPropertyName: "global", publicName: "global", isSignal: true, isRequired: false, transformFunction: null }, triggerEvent: { classPropertyName: "triggerEvent", publicName: "triggerEvent", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, submenus: { classPropertyName: "submenus", publicName: "submenus", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "opened", closed: "closed", itemClick: "itemClick" }, queries: [{ propertyName: "itemTemplateContent", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "submenuHeaderTemplateContent", first: true, predicate: ["submenuheader"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayPoint()\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n (detach)=\"hide()\"\n>\n <!-- Context menu: Escape handled on the container, focus lives on the\n menu items (roving). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-context-menu\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n <!-- Projected #item / #submenuheader templates are forwarded as inputs:\n the embedded menu outlets them with its own item context. -->\n <ui-menu\n #menu\n [items]=\"items()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n [ripple]=\"ripple()\"\n [submenus]=\"submenus()\"\n [styleClass]=\"menuClasses()\"\n [ariaLabel]=\"ariaLabel()\"\n [itemTemplate]=\"itemTemplateContent()\"\n [submenuHeaderTemplate]=\"submenuHeaderTemplateContent()\"\n (itemClick)=\"onItemClick($event)\"\n />\n </div>\n</ng-template>\n", styles: [".ui-context-menu{display:block}\n"], dependencies: [{ kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "component", type: UiMenu, selector: "ui-menu", inputs: ["items", "popup", "expandedKeys", "ariaLabel", "ariaLabelledBy", "styleClass", "level", "size", "submenus", "motion", "ripple", "autoFlip", "tabindex", "itemTemplate", "submenuHeaderTemplate"], outputs: ["expandedKeysChange", "opened", "closed", "itemClick"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
204
206
  }
205
207
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiContextMenu, decorators: [{
206
208
  type: Component,
207
- args: [{ selector: 'ui-context-menu', imports: [OverlayModule, UiMenu, UiMotion], template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayPoint()\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n (detach)=\"hide()\"\n>\n <!-- Context menu: Escape handled on the container, focus lives on the\n menu items (roving). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-context-menu\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n <!-- Projected #item / #submenuheader templates are forwarded as inputs:\n the embedded menu outlets them with its own item context. -->\n <ui-menu\n #menu\n [items]=\"items()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n [submenus]=\"submenus()\"\n [styleClass]=\"menuClasses()\"\n [ariaLabel]=\"ariaLabel()\"\n [itemTemplate]=\"itemTemplateContent()\"\n [submenuHeaderTemplate]=\"submenuHeaderTemplateContent()\"\n (itemClick)=\"onItemClick($event)\"\n />\n </div>\n</ng-template>\n", styles: [".ui-context-menu{display:block}\n"] }]
208
- }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], global: [{ type: i0.Input, args: [{ isSignal: true, alias: "global", required: false }] }], triggerEvent: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerEvent", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], submenus: [{ type: i0.Input, args: [{ isSignal: true, alias: "submenus", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], itemTemplateContent: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], submenuHeaderTemplateContent: [{ type: i0.ContentChild, args: ['submenuheader', { isSignal: true }] }], menu: [{ type: i0.ViewChild, args: ['menu', { isSignal: true }] }] } });
209
+ args: [{ selector: 'ui-context-menu', imports: [OverlayModule, UiMenu, UiMotion], template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayPoint()\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n (detach)=\"hide()\"\n>\n <!-- Context menu: Escape handled on the container, focus lives on the\n menu items (roving). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-context-menu\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n <!-- Projected #item / #submenuheader templates are forwarded as inputs:\n the embedded menu outlets them with its own item context. -->\n <ui-menu\n #menu\n [items]=\"items()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n [ripple]=\"ripple()\"\n [submenus]=\"submenus()\"\n [styleClass]=\"menuClasses()\"\n [ariaLabel]=\"ariaLabel()\"\n [itemTemplate]=\"itemTemplateContent()\"\n [submenuHeaderTemplate]=\"submenuHeaderTemplateContent()\"\n (itemClick)=\"onItemClick($event)\"\n />\n </div>\n</ng-template>\n", styles: [".ui-context-menu{display:block}\n"] }]
210
+ }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], global: [{ type: i0.Input, args: [{ isSignal: true, alias: "global", required: false }] }], triggerEvent: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerEvent", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], submenus: [{ type: i0.Input, args: [{ isSignal: true, alias: "submenus", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], ripple: [{ type: i0.Input, args: [{ isSignal: true, alias: "ripple", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], itemTemplateContent: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], submenuHeaderTemplateContent: [{ type: i0.ContentChild, args: ['submenuheader', { isSignal: true }] }], menu: [{ type: i0.ViewChild, args: ['menu', { isSignal: true }] }] } });
209
211
 
210
212
  /*
211
213
  * Public API Surface of ui-kit/ui-context-menu