@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
|
@@ -144,11 +144,11 @@ class UiBottomTab {
|
|
|
144
144
|
this.bar.updateValue(this.value(), event);
|
|
145
145
|
}
|
|
146
146
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiBottomTab, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
147
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", 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(--ui-bottom-tab-bar-tab-surface, var(--navigation-high-surface-default));color:var(--ui-bottom-tab-bar-tab-color, var(--navigation-high-content-default));font-family:var(--ui-bottom-tab-bar-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(--ui-bottom-tab-bar-tab-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-bottom-tab-bar-tab-color-hover, var(--navigation-high-content-hover))}.ui-bottom-tab:focus-visible{outline:none;background-color:var(--ui-bottom-tab-bar-tab-surface-focus, var(--navigation-high-surface-focused));color:var(--ui-bottom-tab-bar-tab-color-focus, 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(--ui-bottom-tab-bar-tab-focus-ring-color, var(--global-border-focus))}.ui-bottom-tab:active:not(:disabled,[aria-disabled=true]){background-color:var(--ui-bottom-tab-bar-tab-surface-pressed, var(--navigation-high-surface-pressed));color:var(--ui-bottom-tab-bar-tab-color-pressed, var(--navigation-high-content-pressed))}.ui-bottom-tab:disabled,.ui-bottom-tab._disabled{background-color:var(--ui-bottom-tab-bar-tab-surface-disabled, var(--navigation-high-surface-disabled));color:var(--ui-bottom-tab-bar-tab-color-disabled, var(--navigation-high-content-disabled));cursor:not-allowed}.ui-bottom-tab._active{background-color:var(--ui-bottom-tab-bar-tab-surface-active, var(--navigation-high-surface-active));color:var(--ui-bottom-tab-bar-tab-color-active, 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"] }] }); }
|
|
147
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", 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(--ui-bottom-tab-bar-tab-surface, var(--navigation-high-surface-default));color:var(--ui-bottom-tab-bar-tab-color, var(--navigation-high-content-default));font-family:var(--ui-bottom-tab-bar-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(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-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-bottom-tab:hover:not(:disabled,[aria-disabled=true]){background-color:var(--ui-bottom-tab-bar-tab-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-bottom-tab-bar-tab-color-hover, var(--navigation-high-content-hover))}.ui-bottom-tab:focus-visible{outline:none;background-color:var(--ui-bottom-tab-bar-tab-surface-focus, var(--navigation-high-surface-focused));color:var(--ui-bottom-tab-bar-tab-color-focus, 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(--ui-bottom-tab-bar-tab-focus-ring-color, var(--global-border-focus))}.ui-bottom-tab:active:not(:disabled,[aria-disabled=true]){background-color:var(--ui-bottom-tab-bar-tab-surface-pressed, var(--navigation-high-surface-pressed));color:var(--ui-bottom-tab-bar-tab-color-pressed, var(--navigation-high-content-pressed))}.ui-bottom-tab:disabled,.ui-bottom-tab._disabled{background-color:var(--ui-bottom-tab-bar-tab-surface-disabled, var(--navigation-high-surface-disabled));color:var(--ui-bottom-tab-bar-tab-color-disabled, var(--navigation-high-content-disabled));cursor:not-allowed}.ui-bottom-tab._active{background-color:var(--ui-bottom-tab-bar-tab-surface-active, var(--navigation-high-surface-active));color:var(--ui-bottom-tab-bar-tab-color-active, 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
148
|
}
|
|
149
149
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiBottomTab, decorators: [{
|
|
150
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(--ui-bottom-tab-bar-tab-surface, var(--navigation-high-surface-default));color:var(--ui-bottom-tab-bar-tab-color, var(--navigation-high-content-default));font-family:var(--ui-bottom-tab-bar-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(--ui-bottom-tab-bar-tab-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-bottom-tab-bar-tab-color-hover, var(--navigation-high-content-hover))}.ui-bottom-tab:focus-visible{outline:none;background-color:var(--ui-bottom-tab-bar-tab-surface-focus, var(--navigation-high-surface-focused));color:var(--ui-bottom-tab-bar-tab-color-focus, 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(--ui-bottom-tab-bar-tab-focus-ring-color, var(--global-border-focus))}.ui-bottom-tab:active:not(:disabled,[aria-disabled=true]){background-color:var(--ui-bottom-tab-bar-tab-surface-pressed, var(--navigation-high-surface-pressed));color:var(--ui-bottom-tab-bar-tab-color-pressed, var(--navigation-high-content-pressed))}.ui-bottom-tab:disabled,.ui-bottom-tab._disabled{background-color:var(--ui-bottom-tab-bar-tab-surface-disabled, var(--navigation-high-surface-disabled));color:var(--ui-bottom-tab-bar-tab-color-disabled, var(--navigation-high-content-disabled));cursor:not-allowed}.ui-bottom-tab._active{background-color:var(--ui-bottom-tab-bar-tab-surface-active, var(--navigation-high-surface-active));color:var(--ui-bottom-tab-bar-tab-color-active, 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"] }]
|
|
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(--ui-bottom-tab-bar-tab-surface, var(--navigation-high-surface-default));color:var(--ui-bottom-tab-bar-tab-color, var(--navigation-high-content-default));font-family:var(--ui-bottom-tab-bar-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(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-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-bottom-tab:hover:not(:disabled,[aria-disabled=true]){background-color:var(--ui-bottom-tab-bar-tab-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-bottom-tab-bar-tab-color-hover, var(--navigation-high-content-hover))}.ui-bottom-tab:focus-visible{outline:none;background-color:var(--ui-bottom-tab-bar-tab-surface-focus, var(--navigation-high-surface-focused));color:var(--ui-bottom-tab-bar-tab-color-focus, 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(--ui-bottom-tab-bar-tab-focus-ring-color, var(--global-border-focus))}.ui-bottom-tab:active:not(:disabled,[aria-disabled=true]){background-color:var(--ui-bottom-tab-bar-tab-surface-pressed, var(--navigation-high-surface-pressed));color:var(--ui-bottom-tab-bar-tab-color-pressed, var(--navigation-high-content-pressed))}.ui-bottom-tab:disabled,.ui-bottom-tab._disabled{background-color:var(--ui-bottom-tab-bar-tab-surface-disabled, var(--navigation-high-surface-disabled));color:var(--ui-bottom-tab-bar-tab-color-disabled, var(--navigation-high-content-disabled));cursor:not-allowed}.ui-bottom-tab._active{background-color:var(--ui-bottom-tab-bar-tab-surface-active, var(--navigation-high-surface-active));color:var(--ui-bottom-tab-bar-tab-color-active, 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
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
153
|
/**
|
|
154
154
|
* ui-bottom-tab-action , the circular action raised above a
|
|
@@ -215,7 +215,7 @@ class UiBottomTabAction {
|
|
|
215
215
|
>
|
|
216
216
|
<ui-icon class="ui-bottom-tab-action-icon" [name]="icon()" size="xl" [type]="iconType()" />
|
|
217
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(--ui-bottom-tab-bar-action-focus-ring-color, var(--global-border-focus))}.ui-bottom-tab-action:disabled{box-shadow:none;cursor:not-allowed}.ui-bottom-tab-action._high{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-high-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-high-content-default))}.ui-bottom-tab-action._high:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-high-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-high-content-hover))}.ui-bottom-tab-action._high:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-high-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-high-content-focused))}.ui-bottom-tab-action._high:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-high-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-high-content-pressed))}.ui-bottom-tab-action._high:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-high-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-high-content-disabled))}.ui-bottom-tab-action._low{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-low-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-low-content-default))}.ui-bottom-tab-action._low:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-low-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-low-content-hover))}.ui-bottom-tab-action._low:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-low-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-low-content-focused))}.ui-bottom-tab-action._low:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-low-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-low-content-pressed))}.ui-bottom-tab-action._low:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-low-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-low-content-disabled))}.ui-bottom-tab-action._success{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-success-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-success-content-default))}.ui-bottom-tab-action._success:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-success-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-success-content-hover))}.ui-bottom-tab-action._success:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-success-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-success-content-focused))}.ui-bottom-tab-action._success:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-success-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-success-content-pressed))}.ui-bottom-tab-action._success:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-success-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-success-content-disabled))}.ui-bottom-tab-action._warning{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-warning-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-warning-content-default))}.ui-bottom-tab-action._warning:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-warning-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-warning-content-hover))}.ui-bottom-tab-action._warning:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-warning-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-warning-content-focused))}.ui-bottom-tab-action._warning:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-warning-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-warning-content-pressed))}.ui-bottom-tab-action._warning:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-warning-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-warning-content-disabled))}.ui-bottom-tab-action._error{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-error-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-error-content-default))}.ui-bottom-tab-action._error:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-error-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-error-content-hover))}.ui-bottom-tab-action._error:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-error-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-error-content-focused))}.ui-bottom-tab-action._error:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-error-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-error-content-pressed))}.ui-bottom-tab-action._error:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-error-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, 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"] }] }); }
|
|
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(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-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-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(--ui-bottom-tab-bar-action-focus-ring-color, var(--global-border-focus))}.ui-bottom-tab-action:disabled{box-shadow:none;cursor:not-allowed}.ui-bottom-tab-action._high{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-high-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-high-content-default))}.ui-bottom-tab-action._high:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-high-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-high-content-hover))}.ui-bottom-tab-action._high:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-high-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-high-content-focused))}.ui-bottom-tab-action._high:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-high-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-high-content-pressed))}.ui-bottom-tab-action._high:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-high-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-high-content-disabled))}.ui-bottom-tab-action._low{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-low-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-low-content-default))}.ui-bottom-tab-action._low:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-low-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-low-content-hover))}.ui-bottom-tab-action._low:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-low-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-low-content-focused))}.ui-bottom-tab-action._low:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-low-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-low-content-pressed))}.ui-bottom-tab-action._low:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-low-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-low-content-disabled))}.ui-bottom-tab-action._success{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-success-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-success-content-default))}.ui-bottom-tab-action._success:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-success-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-success-content-hover))}.ui-bottom-tab-action._success:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-success-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-success-content-focused))}.ui-bottom-tab-action._success:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-success-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-success-content-pressed))}.ui-bottom-tab-action._success:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-success-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-success-content-disabled))}.ui-bottom-tab-action._warning{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-warning-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-warning-content-default))}.ui-bottom-tab-action._warning:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-warning-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-warning-content-hover))}.ui-bottom-tab-action._warning:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-warning-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-warning-content-focused))}.ui-bottom-tab-action._warning:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-warning-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-warning-content-pressed))}.ui-bottom-tab-action._warning:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-warning-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-warning-content-disabled))}.ui-bottom-tab-action._error{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-error-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-error-content-default))}.ui-bottom-tab-action._error:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-error-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-error-content-hover))}.ui-bottom-tab-action._error:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-error-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-error-content-focused))}.ui-bottom-tab-action._error:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-error-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-error-content-pressed))}.ui-bottom-tab-action._error:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-error-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, 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
219
|
}
|
|
220
220
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiBottomTabAction, decorators: [{
|
|
221
221
|
type: Component,
|
|
@@ -231,7 +231,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
231
231
|
>
|
|
232
232
|
<ui-icon class="ui-bottom-tab-action-icon" [name]="icon()" size="xl" [type]="iconType()" />
|
|
233
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(--ui-bottom-tab-bar-action-focus-ring-color, var(--global-border-focus))}.ui-bottom-tab-action:disabled{box-shadow:none;cursor:not-allowed}.ui-bottom-tab-action._high{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-high-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-high-content-default))}.ui-bottom-tab-action._high:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-high-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-high-content-hover))}.ui-bottom-tab-action._high:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-high-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-high-content-focused))}.ui-bottom-tab-action._high:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-high-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-high-content-pressed))}.ui-bottom-tab-action._high:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-high-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-high-content-disabled))}.ui-bottom-tab-action._low{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-low-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-low-content-default))}.ui-bottom-tab-action._low:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-low-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-low-content-hover))}.ui-bottom-tab-action._low:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-low-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-low-content-focused))}.ui-bottom-tab-action._low:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-low-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-low-content-pressed))}.ui-bottom-tab-action._low:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-low-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-low-content-disabled))}.ui-bottom-tab-action._success{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-success-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-success-content-default))}.ui-bottom-tab-action._success:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-success-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-success-content-hover))}.ui-bottom-tab-action._success:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-success-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-success-content-focused))}.ui-bottom-tab-action._success:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-success-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-success-content-pressed))}.ui-bottom-tab-action._success:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-success-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-success-content-disabled))}.ui-bottom-tab-action._warning{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-warning-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-warning-content-default))}.ui-bottom-tab-action._warning:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-warning-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-warning-content-hover))}.ui-bottom-tab-action._warning:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-warning-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-warning-content-focused))}.ui-bottom-tab-action._warning:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-warning-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-warning-content-pressed))}.ui-bottom-tab-action._warning:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-warning-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-warning-content-disabled))}.ui-bottom-tab-action._error{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-error-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-error-content-default))}.ui-bottom-tab-action._error:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-error-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-error-content-hover))}.ui-bottom-tab-action._error:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-error-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-error-content-focused))}.ui-bottom-tab-action._error:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-error-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-error-content-pressed))}.ui-bottom-tab-action._error:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-error-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, 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"] }]
|
|
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(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-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-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(--ui-bottom-tab-bar-action-focus-ring-color, var(--global-border-focus))}.ui-bottom-tab-action:disabled{box-shadow:none;cursor:not-allowed}.ui-bottom-tab-action._high{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-high-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-high-content-default))}.ui-bottom-tab-action._high:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-high-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-high-content-hover))}.ui-bottom-tab-action._high:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-high-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-high-content-focused))}.ui-bottom-tab-action._high:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-high-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-high-content-pressed))}.ui-bottom-tab-action._high:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-high-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-high-content-disabled))}.ui-bottom-tab-action._low{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-low-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-low-content-default))}.ui-bottom-tab-action._low:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-low-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-low-content-hover))}.ui-bottom-tab-action._low:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-low-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-low-content-focused))}.ui-bottom-tab-action._low:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-low-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-low-content-pressed))}.ui-bottom-tab-action._low:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-low-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-low-content-disabled))}.ui-bottom-tab-action._success{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-success-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-success-content-default))}.ui-bottom-tab-action._success:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-success-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-success-content-hover))}.ui-bottom-tab-action._success:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-success-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-success-content-focused))}.ui-bottom-tab-action._success:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-success-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-success-content-pressed))}.ui-bottom-tab-action._success:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-success-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-success-content-disabled))}.ui-bottom-tab-action._warning{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-warning-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-warning-content-default))}.ui-bottom-tab-action._warning:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-warning-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-warning-content-hover))}.ui-bottom-tab-action._warning:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-warning-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-warning-content-focused))}.ui-bottom-tab-action._warning:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-warning-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-warning-content-pressed))}.ui-bottom-tab-action._warning:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-warning-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, var(--actions-warning-content-disabled))}.ui-bottom-tab-action._error{background-color:var(--ui-bottom-tab-bar-action-surface, var(--actions-error-surface-default));color:var(--ui-bottom-tab-bar-action-color, var(--actions-error-content-default))}.ui-bottom-tab-action._error:hover:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-hover, var(--actions-error-surface-hover));color:var(--ui-bottom-tab-bar-action-color-hover, var(--actions-error-content-hover))}.ui-bottom-tab-action._error:focus-visible{background-color:var(--ui-bottom-tab-bar-action-surface-focus, var(--actions-error-surface-focused));color:var(--ui-bottom-tab-bar-action-color-focus, var(--actions-error-content-focused))}.ui-bottom-tab-action._error:active:not(:disabled){background-color:var(--ui-bottom-tab-bar-action-surface-pressed, var(--actions-error-surface-pressed));color:var(--ui-bottom-tab-bar-action-color-pressed, var(--actions-error-content-pressed))}.ui-bottom-tab-action._error:disabled{background-color:var(--ui-bottom-tab-bar-action-surface-disabled, var(--actions-error-surface-disabled));color:var(--ui-bottom-tab-bar-action-color-disabled, 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
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
236
|
/**
|
|
237
237
|
* ui-bottom-tab-bar , bottom navigation bar for touch devices (mobile, tablet).
|
|
@@ -1 +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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,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;;"}
|
|
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,SA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A,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;;"}
|
|
@@ -176,11 +176,11 @@ class UiBreadcrumb {
|
|
|
176
176
|
this.itemClick.emit({ originalEvent: event, item });
|
|
177
177
|
}
|
|
178
178
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiBreadcrumb, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
179
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiBreadcrumb, isStandalone: true, selector: "ui-breadcrumb", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, maxItems: { classPropertyName: "maxItems", publicName: "maxItems", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ellipsisAriaLabel: { classPropertyName: "ellipsisAriaLabel", publicName: "ellipsisAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { properties: { "style.display": "'block'" } }, queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "separatorTemplate", first: true, predicate: ["separator"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "listEl", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "<nav [class]=\"classes()\" [attr.aria-label]=\"ariaLabel()\">\n <ol #list class=\"ui-breadcrumb-list\">\n @for (entry of entries(); track entry.key) {\n @if (entry.kind === 'ellipsis') {\n <li class=\"ui-breadcrumb-item\">\n <button\n type=\"button\"\n class=\"ui-breadcrumb-ellipsis\"\n [attr.aria-label]=\"ellipsisAriaLabel()\"\n aria-expanded=\"false\"\n (click)=\"expandOverflow()\"\n >\n <ui-icon name=\"ellipsis\" [size]=\"iconSize()\" />\n </button>\n </li>\n } @else {\n @let item = entry.item!;\n <li [class]=\"itemClasses(item)\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item, last: entry.last }\"\n />\n } @else if (isRouterCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [routerLink]=\"item.routerLink!\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else if (isHrefCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [href]=\"item.url!\"\n [attr.target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else if (isActionCrumb(item)) {\n <button\n type=\"button\"\n class=\"ui-breadcrumb-link\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </button>\n } @else {\n <!-- A disabled crumb always lands here (every isXxxCrumb() guard requires\n !item.disabled), and only a CSS class marked it as such: assistive tech had no\n way to know. `role=\"link\"` + `aria-disabled` states it \u2014 the pattern for a link\n that would exist were it enabled. The role is required for the attribute to be\n legal at all (aria-disabled is not global, a role-less span rejects it), and it\n is what makes WCAG 1.4.3's exemption for inactive components apply to the\n contrast of its faded label. -->\n <span\n class=\"ui-breadcrumb-text\"\n [class._current]=\"entry.last\"\n [class._disabled]=\"item.disabled ?? false\"\n [attr.role]=\"item.disabled ? 'link' : null\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </span>\n }\n </li>\n }\n\n @if (!$last) {\n <li class=\"ui-breadcrumb-separator\" aria-hidden=\"true\">\n @if (separatorTemplate()) {\n <ng-container [ngTemplateOutlet]=\"separatorTemplate()!\" />\n } @else {\n {{ separator() }}\n }\n </li>\n }\n }\n </ol>\n</nav>\n\n<ng-template #crumb let-item>\n @if (item.icon) {\n <ui-icon class=\"ui-breadcrumb-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-breadcrumb-label\">{{ item.label }}</span>\n }\n</ng-template>\n", styles: [".ui-breadcrumb{display:block;font-family:var(--ui-breadcrumb-font-family, var(--fontfamily-base))}.ui-breadcrumb-list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-breadcrumb-item-gap, var(--spacing-default));margin:0;padding:0;list-style:none;font-size:var(--ui-breadcrumb-font-size, var(--size-typography-text-default))}.ui-breadcrumb._small .ui-breadcrumb-list{font-size:var(--ui-breadcrumb-font-size-small, var(--size-typography-text-md))}.ui-breadcrumb-item{display:inline-flex;align-items:center;min-width:0}.ui-breadcrumb-link{display:inline-flex;align-items:center;gap:var(--ui-breadcrumb-content-gap, var(--units-sm));min-width:0;margin:0;padding:0;border:none;background:none;font:inherit;font-weight:var(--ui-breadcrumb-weight, var(--weight-bold));line-height:var(--ui-breadcrumb-line-height, 1.4);color:var(--ui-breadcrumb-link-color, var(--global-text-muted));text-align:inherit;text-decoration:none;text-decoration-thickness:from-font;text-underline-offset:.15em;border-radius:var(--ui-breadcrumb-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-breadcrumb-link:hover{color:var(--ui-breadcrumb-link-color-hover, var(--actions-low-content-hover));text-decoration:underline}.ui-breadcrumb-link:focus-visible{outline:none;color:var(--ui-breadcrumb-link-color-focus, var(--actions-low-content-focused));text-decoration:underline;box-shadow:0 0 0 var(--ui-breadcrumb-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-breadcrumb-link-color-focus, var(--actions-low-content-focused))}.ui-breadcrumb-link:active{color:var(--ui-breadcrumb-link-color-pressed, var(--actions-low-content-pressed))}.ui-breadcrumb-text{display:inline-flex;align-items:center;gap:var(--ui-breadcrumb-content-gap, var(--units-sm));min-width:0;font-weight:var(--ui-breadcrumb-weight, var(--weight-bold));line-height:var(--ui-breadcrumb-line-height, 1.4);color:var(--ui-breadcrumb-text-color, var(--global-text-default))}.ui-breadcrumb-text._disabled{color:var(--ui-breadcrumb-text-color-disabled, var(--actions-low-content-disabled));cursor:not-allowed}.ui-breadcrumb-icon{line-height:0}.ui-breadcrumb-separator{display:inline-flex;align-items:center;color:var(--ui-breadcrumb-separator-color, var(--global-text-default));-webkit-user-select:none;user-select:none}.ui-breadcrumb-ellipsis{display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;background:none;line-height:0;color:var(--ui-breadcrumb-ellipsis-color, var(--global-text-default));border-radius:var(--ui-breadcrumb-radius, var(--radius-2xs));cursor:pointer;transition: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-breadcrumb-ellipsis:hover{color:var(--ui-breadcrumb-ellipsis-color-hover, var(--actions-low-content-hover))}.ui-breadcrumb-ellipsis:focus-visible{outline:none;color:var(--ui-breadcrumb-ellipsis-color-focus, var(--actions-low-content-focused));box-shadow:0 0 0 var(--ui-breadcrumb-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-breadcrumb-ellipsis-color-focus, var(--actions-low-content-focused))}.ui-breadcrumb-ellipsis:active{color:var(--ui-breadcrumb-ellipsis-color-pressed, var(--actions-low-content-pressed))}\n"], dependencies: [{ 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"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
179
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiBreadcrumb, isStandalone: true, selector: "ui-breadcrumb", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, maxItems: { classPropertyName: "maxItems", publicName: "maxItems", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ellipsisAriaLabel: { classPropertyName: "ellipsisAriaLabel", publicName: "ellipsisAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { properties: { "style.display": "'block'" } }, queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "separatorTemplate", first: true, predicate: ["separator"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "listEl", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "<nav [class]=\"classes()\" [attr.aria-label]=\"ariaLabel()\">\n <ol #list class=\"ui-breadcrumb-list\">\n @for (entry of entries(); track entry.key) {\n @if (entry.kind === 'ellipsis') {\n <li class=\"ui-breadcrumb-item\">\n <button\n type=\"button\"\n class=\"ui-breadcrumb-ellipsis\"\n [attr.aria-label]=\"ellipsisAriaLabel()\"\n aria-expanded=\"false\"\n (click)=\"expandOverflow()\"\n >\n <ui-icon name=\"ellipsis\" [size]=\"iconSize()\" />\n </button>\n </li>\n } @else {\n @let item = entry.item!;\n <li [class]=\"itemClasses(item)\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item, last: entry.last }\"\n />\n } @else if (isRouterCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [routerLink]=\"item.routerLink!\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else if (isHrefCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [href]=\"item.url!\"\n [attr.target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else if (isActionCrumb(item)) {\n <button\n type=\"button\"\n class=\"ui-breadcrumb-link\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </button>\n } @else {\n <!-- A disabled crumb always lands here (every isXxxCrumb() guard requires\n !item.disabled), and only a CSS class marked it as such: assistive tech had no\n way to know. `role=\"link\"` + `aria-disabled` states it \u2014 the pattern for a link\n that would exist were it enabled. The role is required for the attribute to be\n legal at all (aria-disabled is not global, a role-less span rejects it), and it\n is what makes WCAG 1.4.3's exemption for inactive components apply to the\n contrast of its faded label. -->\n <span\n class=\"ui-breadcrumb-text\"\n [class._current]=\"entry.last\"\n [class._disabled]=\"item.disabled ?? false\"\n [attr.role]=\"item.disabled ? 'link' : null\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </span>\n }\n </li>\n }\n\n @if (!$last) {\n <li class=\"ui-breadcrumb-separator\" aria-hidden=\"true\">\n @if (separatorTemplate()) {\n <ng-container [ngTemplateOutlet]=\"separatorTemplate()!\" />\n } @else {\n {{ separator() }}\n }\n </li>\n }\n }\n </ol>\n</nav>\n\n<ng-template #crumb let-item>\n @if (item.icon) {\n <ui-icon class=\"ui-breadcrumb-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-breadcrumb-label\">{{ item.label }}</span>\n }\n</ng-template>\n", styles: [".ui-breadcrumb{display:block;font-family:var(--ui-breadcrumb-font-family, var(--fontfamily-base))}.ui-breadcrumb-list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-breadcrumb-item-gap, var(--spacing-default));margin:0;padding:0;list-style:none;font-size:var(--ui-breadcrumb-font-size, var(--size-typography-text-default))}.ui-breadcrumb._small .ui-breadcrumb-list{font-size:var(--ui-breadcrumb-font-size-small, var(--size-typography-text-md))}.ui-breadcrumb-item{display:inline-flex;align-items:center;min-width:0}.ui-breadcrumb-link{display:inline-flex;align-items:center;gap:var(--ui-breadcrumb-content-gap, var(--units-sm));min-width:0;margin:0;padding:0;border:none;background:none;font:inherit;font-weight:var(--ui-breadcrumb-weight, var(--weight-bold));line-height:var(--ui-breadcrumb-line-height, 1.4);color:var(--ui-breadcrumb-link-color, var(--global-text-muted));text-align:inherit;text-decoration:none;text-decoration-thickness:from-font;text-underline-offset:.15em;border-radius:var(--ui-breadcrumb-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-breadcrumb-link:hover{color:var(--ui-breadcrumb-link-color-hover, var(--actions-low-content-hover));text-decoration:underline}.ui-breadcrumb-link:focus-visible{outline:none;color:var(--ui-breadcrumb-link-color-focus, var(--actions-low-content-focused));text-decoration:underline;box-shadow:0 0 0 var(--ui-breadcrumb-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-breadcrumb-link-color-focus, var(--actions-low-content-focused))}.ui-breadcrumb-link:active{color:var(--ui-breadcrumb-link-color-pressed, var(--actions-low-content-pressed))}.ui-breadcrumb-text{display:inline-flex;align-items:center;gap:var(--ui-breadcrumb-content-gap, var(--units-sm));min-width:0;font-weight:var(--ui-breadcrumb-weight, var(--weight-bold));line-height:var(--ui-breadcrumb-line-height, 1.4);color:var(--ui-breadcrumb-text-color, var(--global-text-default))}.ui-breadcrumb-text._disabled{color:var(--ui-breadcrumb-text-color-disabled, var(--actions-low-content-disabled));cursor:not-allowed}.ui-breadcrumb-icon{line-height:0}.ui-breadcrumb-separator{display:inline-flex;align-items:center;color:var(--ui-breadcrumb-separator-color, var(--global-text-default));-webkit-user-select:none;user-select:none}.ui-breadcrumb-ellipsis{display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;background:none;line-height:0;color:var(--ui-breadcrumb-ellipsis-color, var(--global-text-default));border-radius:var(--ui-breadcrumb-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))),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-breadcrumb-ellipsis:hover{color:var(--ui-breadcrumb-ellipsis-color-hover, var(--actions-low-content-hover))}.ui-breadcrumb-ellipsis:focus-visible{outline:none;color:var(--ui-breadcrumb-ellipsis-color-focus, var(--actions-low-content-focused));box-shadow:0 0 0 var(--ui-breadcrumb-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-breadcrumb-ellipsis-color-focus, var(--actions-low-content-focused))}.ui-breadcrumb-ellipsis:active{color:var(--ui-breadcrumb-ellipsis-color-pressed, var(--actions-low-content-pressed))}\n"], dependencies: [{ 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"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
180
180
|
}
|
|
181
181
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiBreadcrumb, decorators: [{
|
|
182
182
|
type: Component,
|
|
183
|
-
args: [{ selector: 'ui-breadcrumb', imports: [NgTemplateOutlet, RouterLink, UiIcon], host: { '[style.display]': "'block'" }, template: "<nav [class]=\"classes()\" [attr.aria-label]=\"ariaLabel()\">\n <ol #list class=\"ui-breadcrumb-list\">\n @for (entry of entries(); track entry.key) {\n @if (entry.kind === 'ellipsis') {\n <li class=\"ui-breadcrumb-item\">\n <button\n type=\"button\"\n class=\"ui-breadcrumb-ellipsis\"\n [attr.aria-label]=\"ellipsisAriaLabel()\"\n aria-expanded=\"false\"\n (click)=\"expandOverflow()\"\n >\n <ui-icon name=\"ellipsis\" [size]=\"iconSize()\" />\n </button>\n </li>\n } @else {\n @let item = entry.item!;\n <li [class]=\"itemClasses(item)\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item, last: entry.last }\"\n />\n } @else if (isRouterCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [routerLink]=\"item.routerLink!\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else if (isHrefCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [href]=\"item.url!\"\n [attr.target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else if (isActionCrumb(item)) {\n <button\n type=\"button\"\n class=\"ui-breadcrumb-link\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </button>\n } @else {\n <!-- A disabled crumb always lands here (every isXxxCrumb() guard requires\n !item.disabled), and only a CSS class marked it as such: assistive tech had no\n way to know. `role=\"link\"` + `aria-disabled` states it \u2014 the pattern for a link\n that would exist were it enabled. The role is required for the attribute to be\n legal at all (aria-disabled is not global, a role-less span rejects it), and it\n is what makes WCAG 1.4.3's exemption for inactive components apply to the\n contrast of its faded label. -->\n <span\n class=\"ui-breadcrumb-text\"\n [class._current]=\"entry.last\"\n [class._disabled]=\"item.disabled ?? false\"\n [attr.role]=\"item.disabled ? 'link' : null\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </span>\n }\n </li>\n }\n\n @if (!$last) {\n <li class=\"ui-breadcrumb-separator\" aria-hidden=\"true\">\n @if (separatorTemplate()) {\n <ng-container [ngTemplateOutlet]=\"separatorTemplate()!\" />\n } @else {\n {{ separator() }}\n }\n </li>\n }\n }\n </ol>\n</nav>\n\n<ng-template #crumb let-item>\n @if (item.icon) {\n <ui-icon class=\"ui-breadcrumb-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-breadcrumb-label\">{{ item.label }}</span>\n }\n</ng-template>\n", styles: [".ui-breadcrumb{display:block;font-family:var(--ui-breadcrumb-font-family, var(--fontfamily-base))}.ui-breadcrumb-list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-breadcrumb-item-gap, var(--spacing-default));margin:0;padding:0;list-style:none;font-size:var(--ui-breadcrumb-font-size, var(--size-typography-text-default))}.ui-breadcrumb._small .ui-breadcrumb-list{font-size:var(--ui-breadcrumb-font-size-small, var(--size-typography-text-md))}.ui-breadcrumb-item{display:inline-flex;align-items:center;min-width:0}.ui-breadcrumb-link{display:inline-flex;align-items:center;gap:var(--ui-breadcrumb-content-gap, var(--units-sm));min-width:0;margin:0;padding:0;border:none;background:none;font:inherit;font-weight:var(--ui-breadcrumb-weight, var(--weight-bold));line-height:var(--ui-breadcrumb-line-height, 1.4);color:var(--ui-breadcrumb-link-color, var(--global-text-muted));text-align:inherit;text-decoration:none;text-decoration-thickness:from-font;text-underline-offset:.15em;border-radius:var(--ui-breadcrumb-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-breadcrumb-link:hover{color:var(--ui-breadcrumb-link-color-hover, var(--actions-low-content-hover));text-decoration:underline}.ui-breadcrumb-link:focus-visible{outline:none;color:var(--ui-breadcrumb-link-color-focus, var(--actions-low-content-focused));text-decoration:underline;box-shadow:0 0 0 var(--ui-breadcrumb-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-breadcrumb-link-color-focus, var(--actions-low-content-focused))}.ui-breadcrumb-link:active{color:var(--ui-breadcrumb-link-color-pressed, var(--actions-low-content-pressed))}.ui-breadcrumb-text{display:inline-flex;align-items:center;gap:var(--ui-breadcrumb-content-gap, var(--units-sm));min-width:0;font-weight:var(--ui-breadcrumb-weight, var(--weight-bold));line-height:var(--ui-breadcrumb-line-height, 1.4);color:var(--ui-breadcrumb-text-color, var(--global-text-default))}.ui-breadcrumb-text._disabled{color:var(--ui-breadcrumb-text-color-disabled, var(--actions-low-content-disabled));cursor:not-allowed}.ui-breadcrumb-icon{line-height:0}.ui-breadcrumb-separator{display:inline-flex;align-items:center;color:var(--ui-breadcrumb-separator-color, var(--global-text-default));-webkit-user-select:none;user-select:none}.ui-breadcrumb-ellipsis{display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;background:none;line-height:0;color:var(--ui-breadcrumb-ellipsis-color, var(--global-text-default));border-radius:var(--ui-breadcrumb-radius, var(--radius-2xs));cursor:pointer;transition: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-breadcrumb-ellipsis:hover{color:var(--ui-breadcrumb-ellipsis-color-hover, var(--actions-low-content-hover))}.ui-breadcrumb-ellipsis:focus-visible{outline:none;color:var(--ui-breadcrumb-ellipsis-color-focus, var(--actions-low-content-focused));box-shadow:0 0 0 var(--ui-breadcrumb-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-breadcrumb-ellipsis-color-focus, var(--actions-low-content-focused))}.ui-breadcrumb-ellipsis:active{color:var(--ui-breadcrumb-ellipsis-color-pressed, var(--actions-low-content-pressed))}\n"] }]
|
|
183
|
+
args: [{ selector: 'ui-breadcrumb', imports: [NgTemplateOutlet, RouterLink, UiIcon], host: { '[style.display]': "'block'" }, template: "<nav [class]=\"classes()\" [attr.aria-label]=\"ariaLabel()\">\n <ol #list class=\"ui-breadcrumb-list\">\n @for (entry of entries(); track entry.key) {\n @if (entry.kind === 'ellipsis') {\n <li class=\"ui-breadcrumb-item\">\n <button\n type=\"button\"\n class=\"ui-breadcrumb-ellipsis\"\n [attr.aria-label]=\"ellipsisAriaLabel()\"\n aria-expanded=\"false\"\n (click)=\"expandOverflow()\"\n >\n <ui-icon name=\"ellipsis\" [size]=\"iconSize()\" />\n </button>\n </li>\n } @else {\n @let item = entry.item!;\n <li [class]=\"itemClasses(item)\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item, last: entry.last }\"\n />\n } @else if (isRouterCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [routerLink]=\"item.routerLink!\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else if (isHrefCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [href]=\"item.url!\"\n [attr.target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else if (isActionCrumb(item)) {\n <button\n type=\"button\"\n class=\"ui-breadcrumb-link\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </button>\n } @else {\n <!-- A disabled crumb always lands here (every isXxxCrumb() guard requires\n !item.disabled), and only a CSS class marked it as such: assistive tech had no\n way to know. `role=\"link\"` + `aria-disabled` states it \u2014 the pattern for a link\n that would exist were it enabled. The role is required for the attribute to be\n legal at all (aria-disabled is not global, a role-less span rejects it), and it\n is what makes WCAG 1.4.3's exemption for inactive components apply to the\n contrast of its faded label. -->\n <span\n class=\"ui-breadcrumb-text\"\n [class._current]=\"entry.last\"\n [class._disabled]=\"item.disabled ?? false\"\n [attr.role]=\"item.disabled ? 'link' : null\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </span>\n }\n </li>\n }\n\n @if (!$last) {\n <li class=\"ui-breadcrumb-separator\" aria-hidden=\"true\">\n @if (separatorTemplate()) {\n <ng-container [ngTemplateOutlet]=\"separatorTemplate()!\" />\n } @else {\n {{ separator() }}\n }\n </li>\n }\n }\n </ol>\n</nav>\n\n<ng-template #crumb let-item>\n @if (item.icon) {\n <ui-icon class=\"ui-breadcrumb-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-breadcrumb-label\">{{ item.label }}</span>\n }\n</ng-template>\n", styles: [".ui-breadcrumb{display:block;font-family:var(--ui-breadcrumb-font-family, var(--fontfamily-base))}.ui-breadcrumb-list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-breadcrumb-item-gap, var(--spacing-default));margin:0;padding:0;list-style:none;font-size:var(--ui-breadcrumb-font-size, var(--size-typography-text-default))}.ui-breadcrumb._small .ui-breadcrumb-list{font-size:var(--ui-breadcrumb-font-size-small, var(--size-typography-text-md))}.ui-breadcrumb-item{display:inline-flex;align-items:center;min-width:0}.ui-breadcrumb-link{display:inline-flex;align-items:center;gap:var(--ui-breadcrumb-content-gap, var(--units-sm));min-width:0;margin:0;padding:0;border:none;background:none;font:inherit;font-weight:var(--ui-breadcrumb-weight, var(--weight-bold));line-height:var(--ui-breadcrumb-line-height, 1.4);color:var(--ui-breadcrumb-link-color, var(--global-text-muted));text-align:inherit;text-decoration:none;text-decoration-thickness:from-font;text-underline-offset:.15em;border-radius:var(--ui-breadcrumb-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-breadcrumb-link:hover{color:var(--ui-breadcrumb-link-color-hover, var(--actions-low-content-hover));text-decoration:underline}.ui-breadcrumb-link:focus-visible{outline:none;color:var(--ui-breadcrumb-link-color-focus, var(--actions-low-content-focused));text-decoration:underline;box-shadow:0 0 0 var(--ui-breadcrumb-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-breadcrumb-link-color-focus, var(--actions-low-content-focused))}.ui-breadcrumb-link:active{color:var(--ui-breadcrumb-link-color-pressed, var(--actions-low-content-pressed))}.ui-breadcrumb-text{display:inline-flex;align-items:center;gap:var(--ui-breadcrumb-content-gap, var(--units-sm));min-width:0;font-weight:var(--ui-breadcrumb-weight, var(--weight-bold));line-height:var(--ui-breadcrumb-line-height, 1.4);color:var(--ui-breadcrumb-text-color, var(--global-text-default))}.ui-breadcrumb-text._disabled{color:var(--ui-breadcrumb-text-color-disabled, var(--actions-low-content-disabled));cursor:not-allowed}.ui-breadcrumb-icon{line-height:0}.ui-breadcrumb-separator{display:inline-flex;align-items:center;color:var(--ui-breadcrumb-separator-color, var(--global-text-default));-webkit-user-select:none;user-select:none}.ui-breadcrumb-ellipsis{display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;background:none;line-height:0;color:var(--ui-breadcrumb-ellipsis-color, var(--global-text-default));border-radius:var(--ui-breadcrumb-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))),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-breadcrumb-ellipsis:hover{color:var(--ui-breadcrumb-ellipsis-color-hover, var(--actions-low-content-hover))}.ui-breadcrumb-ellipsis:focus-visible{outline:none;color:var(--ui-breadcrumb-ellipsis-color-focus, var(--actions-low-content-focused));box-shadow:0 0 0 var(--ui-breadcrumb-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-breadcrumb-ellipsis-color-focus, var(--actions-low-content-focused))}.ui-breadcrumb-ellipsis:active{color:var(--ui-breadcrumb-ellipsis-color-pressed, var(--actions-low-content-pressed))}\n"] }]
|
|
184
184
|
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], maxItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxItems", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ellipsisAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ellipsisAriaLabel", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], separatorTemplate: [{ type: i0.ContentChild, args: ['separator', { isSignal: true }] }], listEl: [{ type: i0.ViewChild, args: ['list', { isSignal: true }] }] } });
|
|
185
185
|
|
|
186
186
|
/*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-navigation-ui-breadcrumb.mjs","sources":["../../../projects/ui-kit/navigation/ui-breadcrumb/src/lib/ui-breadcrumb.ts","../../../projects/ui-kit/navigation/ui-breadcrumb/src/lib/ui-breadcrumb.html","../../../projects/ui-kit/navigation/ui-breadcrumb/src/public-api.ts","../../../projects/ui-kit/navigation/ui-breadcrumb/src/4sh-ui-kit-navigation-ui-breadcrumb.ts"],"sourcesContent":["import {\n afterNextRender,\n Component,\n computed,\n contentChild,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n isDevMode,\n linkedSignal,\n output,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { Params, RouterLink } from '@angular/router';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\n/** Breadcrumb density: `small` = compact rendering. */\nexport type BreadcrumbSize = 'default' | 'small';\n\n/** Payload passed to `command` callbacks and emitted by `itemClick`. */\nexport interface UiBreadcrumbItemCommandEvent {\n originalEvent: Event;\n item: UiBreadcrumbItem;\n}\n\n/**\n * Declarative breadcrumb entry. An item navigates through `url` (external)\n * or `routerLink` (internal), and/or triggers a `command` callback.\n */\nexport interface UiBreadcrumbItem {\n /** Text of the crumb. */\n label?: string;\n /** Leading FontAwesome icon name (icon-only crumb when no label, e.g. home). */\n icon?: string;\n /** Accessible name override (required for an icon-only crumb). */\n ariaLabel?: string;\n /** External / plain URL — the crumb renders a plain anchor. */\n url?: string;\n /** Anchor target (e.g. `_blank`). */\n target?: string;\n /** Anchor rel. Defaults to `noopener noreferrer` when `target=\"_blank\"`. */\n rel?: string;\n /** Angular router target — the crumb renders a RouterLink anchor. */\n routerLink?: string | unknown[];\n /** Query params passed to `routerLink`. */\n queryParams?: Params;\n /** URL fragment passed to `routerLink`. */\n fragment?: string;\n /** Callback invoked when the crumb is clicked. */\n command?: (event: UiBreadcrumbItemCommandEvent) => void;\n /** Disable the crumb (no navigation, out of the tab sequence). */\n disabled?: boolean;\n /** Hide the crumb entirely (default true). */\n visible?: boolean;\n /** Extra class on the crumb's `<li>`. */\n styleClass?: string;\n}\n\n/** @ignore Resolved render entry (crumb or overflow ellipsis). */\ninterface UiBreadcrumbEntry {\n kind: 'item' | 'ellipsis';\n item?: UiBreadcrumbItem;\n key: string;\n last: boolean;\n}\n\n/** @ignore Focusable descendants of a crumb (native or projected via `#item`). */\nconst FOCUSABLE_SELECTOR = 'a[href], button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])';\n\n/**\n * ui-breadcrumb — headless breadcrumb trail: shows the current location\n * within a navigational hierarchy.\n *\n * Driven by a declarative `items` model ({@link UiBreadcrumbItem}). Each crumb\n * renders the **native element matching its semantics**, never a wrapper\n * component — so the anchor stays fully controllable (`rel`, `target`,\n * `queryParams`, `fragment`…):\n *\n * • `routerLink` → `<a>` + `RouterLink` (internal navigation)\n * • `url` → `<a href>` (external / plain navigation)\n * • `command` only → `<button type=\"button\">` (action, not navigation)\n * • no destination / `disabled` → plain text (never a fake link)\n *\n * The last crumb represents the current page and carries `aria-current=\"page\"`.\n *\n * Long trails collapse behind an accessible ellipsis **button** when `maxItems`\n * is set (first crumb + \"…\" + trailing crumbs); activating it reveals the\n * hidden crumbs.\n *\n * Customisation: `separator` (string, default \"/\"), `#separator` template,\n * and `#item` template (crumb content, `$implicit` = item, `last`).\n */\n@Component({\n selector: 'ui-breadcrumb',\n imports: [NgTemplateOutlet, RouterLink, UiIcon],\n templateUrl: './ui-breadcrumb.html',\n styleUrl: './ui-breadcrumb.scss',\n host: { '[style.display]': \"'block'\" },\n})\nexport class UiBreadcrumb {\n /** Breadcrumb entries, in hierarchy order (see {@link UiBreadcrumbItem}). */\n items = input<UiBreadcrumbItem[]>([]);\n /** Density: `default`, or `small` for compact rendering. */\n size = input<BreadcrumbSize>('default');\n /** Separator character(s) between crumbs (overridden by the `#separator` template). */\n separator = input<string>('/');\n /**\n * Maximum number of crumbs displayed (minimum 2). Beyond it, the middle\n * collapses behind an ellipsis button: first crumb + \"…\" + the trailing\n * crumbs. Unset = never collapse.\n */\n maxItems = input<number>();\n /** Accessible name of the `<nav>` landmark. */\n ariaLabel = input<string>(\"Fil d'Ariane\");\n /** Accessible name of the ellipsis button revealing the hidden crumbs. */\n ellipsisAriaLabel = input<string>('Afficher les éléments masqués');\n /** Extra class(es) applied to the root `<nav>`. */\n styleClass = input<string>();\n\n /** Emitted when a crumb is clicked (never when disabled). */\n itemClick = output<UiBreadcrumbItemCommandEvent>();\n\n /** Custom crumb content: `<ng-template #item let-item let-last=\"last\">`. */\n protected readonly itemTemplate = contentChild<TemplateRef<unknown>>('item');\n /** Custom separator content: `<ng-template #separator>`. */\n protected readonly separatorTemplate = contentChild<TemplateRef<unknown>>('separator');\n\n /** @ignore Root list — focus management after expanding the overflow. */\n private readonly listEl = viewChild<ElementRef<HTMLElement>>('list');\n\n /** @ignore */\n private readonly injector = inject(Injector);\n\n constructor() {\n // A11y safeguard: an icon-only crumb must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n const unnamed = this.items().filter(\n (item) => item.visible !== false && item.icon && !item.label && !item.ariaLabel,\n );\n if (unnamed.length) {\n console.warn(\n '[ui-breadcrumb] Icon-only crumb has no accessible name: provide `ariaLabel`.',\n unnamed,\n );\n }\n });\n }\n }\n\n /** @ignore Overflow revealed by the ellipsis button; resets when items change. */\n protected readonly overflowExpanded = linkedSignal<UiBreadcrumbItem[], boolean>({\n source: this.items,\n computation: () => false,\n });\n\n /** @ignore Crumb / ellipsis icon size follows the breadcrumb density. */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-breadcrumb'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n const extra = this.styleClass();\n if (extra) c.push(extra);\n return c.join(' ');\n });\n\n /** @ignore Render entries: visible crumbs, middle collapsed when overflowing. */\n protected readonly entries = computed<UiBreadcrumbEntry[]>(() => {\n const items = this.items().filter((item) => item.visible !== false);\n const max = this.maxItems();\n const kept = max != null ? Math.max(2, max) : Infinity;\n\n let entries: UiBreadcrumbEntry[];\n if (!this.overflowExpanded() && items.length > kept) {\n entries = [\n { kind: 'item', item: items[0], key: 'item-0', last: false },\n { kind: 'ellipsis', key: 'ellipsis', last: false },\n ...items.slice(items.length - (kept - 1)).map((item, i) => ({\n kind: 'item' as const,\n item,\n key: `item-${items.length - (kept - 1) + i}`,\n last: false,\n })),\n ];\n } else {\n entries = items.map((item, i) => ({\n kind: 'item' as const,\n item,\n key: `item-${i}`,\n last: false,\n }));\n }\n if (entries.length) entries[entries.length - 1].last = true;\n return entries;\n });\n\n /** @ignore Class list of a crumb `<li>` (base + per-item styleClass). */\n protected itemClasses(item: UiBreadcrumbItem): string {\n return item.styleClass ? `ui-breadcrumb-item ${item.styleClass}` : 'ui-breadcrumb-item';\n }\n\n /** @ignore Internal navigation: `routerLink` wins over `url`. */\n protected isRouterCrumb(item: UiBreadcrumbItem): boolean {\n return !item.disabled && item.routerLink != null;\n }\n\n /** @ignore Plain navigation: an `url` and no `routerLink`. */\n protected isHrefCrumb(item: UiBreadcrumbItem): boolean {\n return !item.disabled && item.routerLink == null && !!item.url;\n }\n\n /** @ignore Action-only crumb (a `command` with no destination) → real `<button>`. */\n protected isActionCrumb(item: UiBreadcrumbItem): boolean {\n return !item.disabled && item.routerLink == null && !item.url && !!item.command;\n }\n\n /** @ignore Anchor `rel`: explicit, or a safe default for `target=\"_blank\"`. */\n protected relFor(item: UiBreadcrumbItem): string | null {\n if (item.rel) return item.rel;\n return item.target === '_blank' ? 'noopener noreferrer' : null;\n }\n\n /** @ignore Reveal the hidden crumbs, moving focus to the first revealed one. */\n protected expandOverflow(): void {\n this.overflowExpanded.set(true);\n // After the next render the full list is in the DOM: focus the first\n // focusable crumb revealed by the expansion (skipping the leading one).\n afterNextRender(\n () => {\n const list = this.listEl()?.nativeElement;\n if (!list) return;\n const crumbs = Array.from(list.querySelectorAll<HTMLElement>('.ui-breadcrumb-item'));\n for (const crumb of crumbs.slice(1)) {\n const focusable = crumb.querySelector<HTMLElement>(FOCUSABLE_SELECTOR);\n if (focusable) {\n focusable.focus();\n return;\n }\n }\n },\n { injector: this.injector },\n );\n }\n\n /** @ignore Crumb activation: command + itemClick (navigation stays native). */\n protected onItemClick(event: Event, item: UiBreadcrumbItem): void {\n if (item.disabled) return;\n item.command?.({ originalEvent: event, item });\n this.itemClick.emit({ originalEvent: event, item });\n }\n}\n","<nav [class]=\"classes()\" [attr.aria-label]=\"ariaLabel()\">\n <ol #list class=\"ui-breadcrumb-list\">\n @for (entry of entries(); track entry.key) {\n @if (entry.kind === 'ellipsis') {\n <li class=\"ui-breadcrumb-item\">\n <button\n type=\"button\"\n class=\"ui-breadcrumb-ellipsis\"\n [attr.aria-label]=\"ellipsisAriaLabel()\"\n aria-expanded=\"false\"\n (click)=\"expandOverflow()\"\n >\n <ui-icon name=\"ellipsis\" [size]=\"iconSize()\" />\n </button>\n </li>\n } @else {\n @let item = entry.item!;\n <li [class]=\"itemClasses(item)\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item, last: entry.last }\"\n />\n } @else if (isRouterCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [routerLink]=\"item.routerLink!\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else if (isHrefCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [href]=\"item.url!\"\n [attr.target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else if (isActionCrumb(item)) {\n <button\n type=\"button\"\n class=\"ui-breadcrumb-link\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </button>\n } @else {\n <!-- A disabled crumb always lands here (every isXxxCrumb() guard requires\n !item.disabled), and only a CSS class marked it as such: assistive tech had no\n way to know. `role=\"link\"` + `aria-disabled` states it — the pattern for a link\n that would exist were it enabled. The role is required for the attribute to be\n legal at all (aria-disabled is not global, a role-less span rejects it), and it\n is what makes WCAG 1.4.3's exemption for inactive components apply to the\n contrast of its faded label. -->\n <span\n class=\"ui-breadcrumb-text\"\n [class._current]=\"entry.last\"\n [class._disabled]=\"item.disabled ?? false\"\n [attr.role]=\"item.disabled ? 'link' : null\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </span>\n }\n </li>\n }\n\n @if (!$last) {\n <li class=\"ui-breadcrumb-separator\" aria-hidden=\"true\">\n @if (separatorTemplate()) {\n <ng-container [ngTemplateOutlet]=\"separatorTemplate()!\" />\n } @else {\n {{ separator() }}\n }\n </li>\n }\n }\n </ol>\n</nav>\n\n<ng-template #crumb let-item>\n @if (item.icon) {\n <ui-icon class=\"ui-breadcrumb-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-breadcrumb-label\">{{ item.label }}</span>\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-breadcrumb\n */\n\nexport * from './lib/ui-breadcrumb';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAsEA;AACA,MAAM,kBAAkB,GAAG,kEAAkE;AAE7F;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAQU,YAAY,CAAA;AAkCvB,IAAA,WAAA,GAAA;;QAhCA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAqB,EAAE;kFAAC;;QAErC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAiB,SAAS;iFAAC;;QAEvC,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,GAAG;sFAAC;AAC9B;;;;AAIG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;QAE1B,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,cAAc;sFAAC;;QAEzC,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAS,+BAA+B;8FAAC;;AAElE,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAU;;QAG5B,IAAA,CAAA,SAAS,GAAG,MAAM,EAAgC;;QAG/B,IAAA,CAAA,YAAY,GAAG,YAAY,CAAuB,MAAM;yFAAC;;QAEzD,IAAA,CAAA,iBAAiB,GAAG,YAAY,CAAuB,WAAW;8FAAC;;QAGrE,IAAA,CAAA,MAAM,GAAG,SAAS,CAA0B,MAAM;mFAAC;;AAGnD,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;;AAoBzB,QAAA,IAAA,CAAA,gBAAgB,GAAG,YAAY,CAAA,EAAA,IAAA,SAAA,GAA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A,CAAA,EAAA,CAAA,CAAA;;2FAKnC,YAAY,EAAA,UAAA,EAAA,CAAA;kBAPxB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,eAAe,EAAA,OAAA,EAChB,CAAC,gBAAgB,EAAE,UAAU,EAAE,MAAM,CAAC,EAAA,IAAA,EAGzC,EAAE,iBAAiB,EAAE,SAAS,EAAE,EAAA,QAAA,EAAA,w9IAAA,EAAA,MAAA,EAAA,CAAA,8vHAAA,CAAA,EAAA;00BA0B+B,MAAM,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAED,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAGxB,MAAM,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpIrE;;AAEG;;ACFH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-navigation-ui-breadcrumb.mjs","sources":["../../../projects/ui-kit/navigation/ui-breadcrumb/src/lib/ui-breadcrumb.ts","../../../projects/ui-kit/navigation/ui-breadcrumb/src/lib/ui-breadcrumb.html","../../../projects/ui-kit/navigation/ui-breadcrumb/src/public-api.ts","../../../projects/ui-kit/navigation/ui-breadcrumb/src/4sh-ui-kit-navigation-ui-breadcrumb.ts"],"sourcesContent":["import {\n afterNextRender,\n Component,\n computed,\n contentChild,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n isDevMode,\n linkedSignal,\n output,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { Params, RouterLink } from '@angular/router';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\n/** Breadcrumb density: `small` = compact rendering. */\nexport type BreadcrumbSize = 'default' | 'small';\n\n/** Payload passed to `command` callbacks and emitted by `itemClick`. */\nexport interface UiBreadcrumbItemCommandEvent {\n originalEvent: Event;\n item: UiBreadcrumbItem;\n}\n\n/**\n * Declarative breadcrumb entry. An item navigates through `url` (external)\n * or `routerLink` (internal), and/or triggers a `command` callback.\n */\nexport interface UiBreadcrumbItem {\n /** Text of the crumb. */\n label?: string;\n /** Leading FontAwesome icon name (icon-only crumb when no label, e.g. home). */\n icon?: string;\n /** Accessible name override (required for an icon-only crumb). */\n ariaLabel?: string;\n /** External / plain URL — the crumb renders a plain anchor. */\n url?: string;\n /** Anchor target (e.g. `_blank`). */\n target?: string;\n /** Anchor rel. Defaults to `noopener noreferrer` when `target=\"_blank\"`. */\n rel?: string;\n /** Angular router target — the crumb renders a RouterLink anchor. */\n routerLink?: string | unknown[];\n /** Query params passed to `routerLink`. */\n queryParams?: Params;\n /** URL fragment passed to `routerLink`. */\n fragment?: string;\n /** Callback invoked when the crumb is clicked. */\n command?: (event: UiBreadcrumbItemCommandEvent) => void;\n /** Disable the crumb (no navigation, out of the tab sequence). */\n disabled?: boolean;\n /** Hide the crumb entirely (default true). */\n visible?: boolean;\n /** Extra class on the crumb's `<li>`. */\n styleClass?: string;\n}\n\n/** @ignore Resolved render entry (crumb or overflow ellipsis). */\ninterface UiBreadcrumbEntry {\n kind: 'item' | 'ellipsis';\n item?: UiBreadcrumbItem;\n key: string;\n last: boolean;\n}\n\n/** @ignore Focusable descendants of a crumb (native or projected via `#item`). */\nconst FOCUSABLE_SELECTOR = 'a[href], button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])';\n\n/**\n * ui-breadcrumb — headless breadcrumb trail: shows the current location\n * within a navigational hierarchy.\n *\n * Driven by a declarative `items` model ({@link UiBreadcrumbItem}). Each crumb\n * renders the **native element matching its semantics**, never a wrapper\n * component — so the anchor stays fully controllable (`rel`, `target`,\n * `queryParams`, `fragment`…):\n *\n * • `routerLink` → `<a>` + `RouterLink` (internal navigation)\n * • `url` → `<a href>` (external / plain navigation)\n * • `command` only → `<button type=\"button\">` (action, not navigation)\n * • no destination / `disabled` → plain text (never a fake link)\n *\n * The last crumb represents the current page and carries `aria-current=\"page\"`.\n *\n * Long trails collapse behind an accessible ellipsis **button** when `maxItems`\n * is set (first crumb + \"…\" + trailing crumbs); activating it reveals the\n * hidden crumbs.\n *\n * Customisation: `separator` (string, default \"/\"), `#separator` template,\n * and `#item` template (crumb content, `$implicit` = item, `last`).\n */\n@Component({\n selector: 'ui-breadcrumb',\n imports: [NgTemplateOutlet, RouterLink, UiIcon],\n templateUrl: './ui-breadcrumb.html',\n styleUrl: './ui-breadcrumb.scss',\n host: { '[style.display]': \"'block'\" },\n})\nexport class UiBreadcrumb {\n /** Breadcrumb entries, in hierarchy order (see {@link UiBreadcrumbItem}). */\n items = input<UiBreadcrumbItem[]>([]);\n /** Density: `default`, or `small` for compact rendering. */\n size = input<BreadcrumbSize>('default');\n /** Separator character(s) between crumbs (overridden by the `#separator` template). */\n separator = input<string>('/');\n /**\n * Maximum number of crumbs displayed (minimum 2). Beyond it, the middle\n * collapses behind an ellipsis button: first crumb + \"…\" + the trailing\n * crumbs. Unset = never collapse.\n */\n maxItems = input<number>();\n /** Accessible name of the `<nav>` landmark. */\n ariaLabel = input<string>(\"Fil d'Ariane\");\n /** Accessible name of the ellipsis button revealing the hidden crumbs. */\n ellipsisAriaLabel = input<string>('Afficher les éléments masqués');\n /** Extra class(es) applied to the root `<nav>`. */\n styleClass = input<string>();\n\n /** Emitted when a crumb is clicked (never when disabled). */\n itemClick = output<UiBreadcrumbItemCommandEvent>();\n\n /** Custom crumb content: `<ng-template #item let-item let-last=\"last\">`. */\n protected readonly itemTemplate = contentChild<TemplateRef<unknown>>('item');\n /** Custom separator content: `<ng-template #separator>`. */\n protected readonly separatorTemplate = contentChild<TemplateRef<unknown>>('separator');\n\n /** @ignore Root list — focus management after expanding the overflow. */\n private readonly listEl = viewChild<ElementRef<HTMLElement>>('list');\n\n /** @ignore */\n private readonly injector = inject(Injector);\n\n constructor() {\n // A11y safeguard: an icon-only crumb must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n const unnamed = this.items().filter(\n (item) => item.visible !== false && item.icon && !item.label && !item.ariaLabel,\n );\n if (unnamed.length) {\n console.warn(\n '[ui-breadcrumb] Icon-only crumb has no accessible name: provide `ariaLabel`.',\n unnamed,\n );\n }\n });\n }\n }\n\n /** @ignore Overflow revealed by the ellipsis button; resets when items change. */\n protected readonly overflowExpanded = linkedSignal<UiBreadcrumbItem[], boolean>({\n source: this.items,\n computation: () => false,\n });\n\n /** @ignore Crumb / ellipsis icon size follows the breadcrumb density. */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-breadcrumb'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n const extra = this.styleClass();\n if (extra) c.push(extra);\n return c.join(' ');\n });\n\n /** @ignore Render entries: visible crumbs, middle collapsed when overflowing. */\n protected readonly entries = computed<UiBreadcrumbEntry[]>(() => {\n const items = this.items().filter((item) => item.visible !== false);\n const max = this.maxItems();\n const kept = max != null ? Math.max(2, max) : Infinity;\n\n let entries: UiBreadcrumbEntry[];\n if (!this.overflowExpanded() && items.length > kept) {\n entries = [\n { kind: 'item', item: items[0], key: 'item-0', last: false },\n { kind: 'ellipsis', key: 'ellipsis', last: false },\n ...items.slice(items.length - (kept - 1)).map((item, i) => ({\n kind: 'item' as const,\n item,\n key: `item-${items.length - (kept - 1) + i}`,\n last: false,\n })),\n ];\n } else {\n entries = items.map((item, i) => ({\n kind: 'item' as const,\n item,\n key: `item-${i}`,\n last: false,\n }));\n }\n if (entries.length) entries[entries.length - 1].last = true;\n return entries;\n });\n\n /** @ignore Class list of a crumb `<li>` (base + per-item styleClass). */\n protected itemClasses(item: UiBreadcrumbItem): string {\n return item.styleClass ? `ui-breadcrumb-item ${item.styleClass}` : 'ui-breadcrumb-item';\n }\n\n /** @ignore Internal navigation: `routerLink` wins over `url`. */\n protected isRouterCrumb(item: UiBreadcrumbItem): boolean {\n return !item.disabled && item.routerLink != null;\n }\n\n /** @ignore Plain navigation: an `url` and no `routerLink`. */\n protected isHrefCrumb(item: UiBreadcrumbItem): boolean {\n return !item.disabled && item.routerLink == null && !!item.url;\n }\n\n /** @ignore Action-only crumb (a `command` with no destination) → real `<button>`. */\n protected isActionCrumb(item: UiBreadcrumbItem): boolean {\n return !item.disabled && item.routerLink == null && !item.url && !!item.command;\n }\n\n /** @ignore Anchor `rel`: explicit, or a safe default for `target=\"_blank\"`. */\n protected relFor(item: UiBreadcrumbItem): string | null {\n if (item.rel) return item.rel;\n return item.target === '_blank' ? 'noopener noreferrer' : null;\n }\n\n /** @ignore Reveal the hidden crumbs, moving focus to the first revealed one. */\n protected expandOverflow(): void {\n this.overflowExpanded.set(true);\n // After the next render the full list is in the DOM: focus the first\n // focusable crumb revealed by the expansion (skipping the leading one).\n afterNextRender(\n () => {\n const list = this.listEl()?.nativeElement;\n if (!list) return;\n const crumbs = Array.from(list.querySelectorAll<HTMLElement>('.ui-breadcrumb-item'));\n for (const crumb of crumbs.slice(1)) {\n const focusable = crumb.querySelector<HTMLElement>(FOCUSABLE_SELECTOR);\n if (focusable) {\n focusable.focus();\n return;\n }\n }\n },\n { injector: this.injector },\n );\n }\n\n /** @ignore Crumb activation: command + itemClick (navigation stays native). */\n protected onItemClick(event: Event, item: UiBreadcrumbItem): void {\n if (item.disabled) return;\n item.command?.({ originalEvent: event, item });\n this.itemClick.emit({ originalEvent: event, item });\n }\n}\n","<nav [class]=\"classes()\" [attr.aria-label]=\"ariaLabel()\">\n <ol #list class=\"ui-breadcrumb-list\">\n @for (entry of entries(); track entry.key) {\n @if (entry.kind === 'ellipsis') {\n <li class=\"ui-breadcrumb-item\">\n <button\n type=\"button\"\n class=\"ui-breadcrumb-ellipsis\"\n [attr.aria-label]=\"ellipsisAriaLabel()\"\n aria-expanded=\"false\"\n (click)=\"expandOverflow()\"\n >\n <ui-icon name=\"ellipsis\" [size]=\"iconSize()\" />\n </button>\n </li>\n } @else {\n @let item = entry.item!;\n <li [class]=\"itemClasses(item)\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item, last: entry.last }\"\n />\n } @else if (isRouterCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [routerLink]=\"item.routerLink!\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else if (isHrefCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [href]=\"item.url!\"\n [attr.target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else if (isActionCrumb(item)) {\n <button\n type=\"button\"\n class=\"ui-breadcrumb-link\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </button>\n } @else {\n <!-- A disabled crumb always lands here (every isXxxCrumb() guard requires\n !item.disabled), and only a CSS class marked it as such: assistive tech had no\n way to know. `role=\"link\"` + `aria-disabled` states it — the pattern for a link\n that would exist were it enabled. The role is required for the attribute to be\n legal at all (aria-disabled is not global, a role-less span rejects it), and it\n is what makes WCAG 1.4.3's exemption for inactive components apply to the\n contrast of its faded label. -->\n <span\n class=\"ui-breadcrumb-text\"\n [class._current]=\"entry.last\"\n [class._disabled]=\"item.disabled ?? false\"\n [attr.role]=\"item.disabled ? 'link' : null\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"crumb\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </span>\n }\n </li>\n }\n\n @if (!$last) {\n <li class=\"ui-breadcrumb-separator\" aria-hidden=\"true\">\n @if (separatorTemplate()) {\n <ng-container [ngTemplateOutlet]=\"separatorTemplate()!\" />\n } @else {\n {{ separator() }}\n }\n </li>\n }\n }\n </ol>\n</nav>\n\n<ng-template #crumb let-item>\n @if (item.icon) {\n <ui-icon class=\"ui-breadcrumb-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-breadcrumb-label\">{{ item.label }}</span>\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-breadcrumb\n */\n\nexport * from './lib/ui-breadcrumb';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAsEA;AACA,MAAM,kBAAkB,GAAG,kEAAkE;AAE7F;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAQU,YAAY,CAAA;AAkCvB,IAAA,WAAA,GAAA;;QAhCA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAqB,EAAE;kFAAC;;QAErC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAiB,SAAS;iFAAC;;QAEvC,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,GAAG;sFAAC;AAC9B;;;;AAIG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gG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