@4sh/ui-kit 0.8.0 → 0.10.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 +11 -10
- package/README.md +11 -10
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +3 -3
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +4 -4
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +4 -4
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +3 -3
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +6 -6
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +340 -16
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +10 -82
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +8 -8
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +179 -0
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +7 -7
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +215 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +105 -7
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +13 -13
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +10 -10
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +10 -10
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +45 -26
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +605 -0
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +16 -16
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +5 -29
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +5 -29
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +4 -4
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +12 -12
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +12 -36
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -22
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +20 -20
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs +60 -2
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +9 -9
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +4 -4
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +34 -34
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
- package/mcp/data/text-search-docs.json +486 -66
- package/mcp/data/ui-config.json +26605 -12458
- package/mcp/package.json +1 -1
- package/package.json +13 -1
- package/styles/component-vars.scss +1440 -721
- package/styles/settings/_ui-config.scss +45 -2
- package/styles/utils/_mixins.scss +32 -30
- package/styles/utils/_overlay.scss +1 -1
- package/types/4sh-ui-kit-base-ui-image.d.ts +151 -6
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +3 -1
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +110 -0
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +114 -0
- package/types/4sh-ui-kit-forms.d.ts +43 -1
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +4 -4
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +256 -0
- package/types/4sh-ui-kit-overlay.d.ts +35 -1
|
@@ -292,12 +292,12 @@ class UiPopover {
|
|
|
292
292
|
const focusable = panelEl.querySelector(FOCUSABLE_SELECTOR);
|
|
293
293
|
(focusable ?? panelEl).focus();
|
|
294
294
|
}
|
|
295
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
296
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
295
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiPopover, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
296
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiPopover, isStandalone: true, selector: "ui-popover", inputs: { dismissable: { classPropertyName: "dismissable", publicName: "dismissable", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, showArrow: { classPropertyName: "showArrow", publicName: "showArrow", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { shown: "shown", hidden: "hidden" }, viewQueries: [{ propertyName: "panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n", styles: [".ui-popover{position:relative;display:block;width:max-content;max-width:var(--ui-popover-max-width, 20rem);color:var(--ui-popover-color, var(--global-text-default));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--ui-popover-stroke, var(--global-border-default)));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-popover-surface, var(--global-background-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));overflow:visible}.ui-popover:focus{outline:none}.ui-popover-content{box-sizing:border-box;padding:var(--ui-popover-padding, var(--units-md));max-height:var(--ui-popover-max-height);overflow:auto;border-radius:inherit}.ui-popover-arrow{position:absolute;width:var(--ui-popover-arrow-size, .5rem);height:var(--ui-popover-arrow-size, .5rem);background-color:var(--ui-popover-surface, var(--global-background-default));border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-popover-stroke, var(--global-border-default));rotate:45deg}.ui-popover._no-arrow .ui-popover-arrow{display:none}.ui-popover._top .ui-popover-arrow{bottom:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-popover._bottom .ui-popover-arrow{top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-popover._left .ui-popover-arrow{right:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-popover._right .ui-popover-arrow{left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"], dependencies: [{ kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
|
|
297
297
|
}
|
|
298
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiPopover, decorators: [{
|
|
299
299
|
type: Component,
|
|
300
|
-
args: [{ selector: 'ui-popover', imports: [OverlayModule, A11yModule, UiMotion], template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n", styles: [".ui-popover{position:relative;display:block;width:max-content;max-width:var(--ui-popover-max-width, 20rem);color:var(--global-text-default);box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--global-border-default));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--global-background-default));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--fontfamily-base);overflow:visible}.ui-popover:focus{outline:none}.ui-popover-content{box-sizing:border-box;padding:var(--ui-popover-padding, var(--units-md));max-height:var(--ui-popover-max-height);overflow:auto;border-radius:inherit}.ui-popover-arrow{position:absolute;width:var(--ui-popover-arrow-size, .5rem);height:var(--ui-popover-arrow-size, .5rem);background-color:var(--global-background-default);border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--global-border-default);rotate:45deg}.ui-popover._no-arrow .ui-popover-arrow{display:none}.ui-popover._top .ui-popover-arrow{bottom:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-popover._bottom .ui-popover-arrow{top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-popover._left .ui-popover-arrow{right:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-popover._right .ui-popover-arrow{left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"] }]
|
|
300
|
+
args: [{ selector: 'ui-popover', imports: [OverlayModule, A11yModule, UiMotion], template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n", styles: [".ui-popover{position:relative;display:block;width:max-content;max-width:var(--ui-popover-max-width, 20rem);color:var(--ui-popover-color, var(--global-text-default));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--ui-popover-stroke, var(--global-border-default)));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-popover-surface, var(--global-background-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));overflow:visible}.ui-popover:focus{outline:none}.ui-popover-content{box-sizing:border-box;padding:var(--ui-popover-padding, var(--units-md));max-height:var(--ui-popover-max-height);overflow:auto;border-radius:inherit}.ui-popover-arrow{position:absolute;width:var(--ui-popover-arrow-size, .5rem);height:var(--ui-popover-arrow-size, .5rem);background-color:var(--ui-popover-surface, var(--global-background-default));border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-popover-stroke, var(--global-border-default));rotate:45deg}.ui-popover._no-arrow .ui-popover-arrow{display:none}.ui-popover._top .ui-popover-arrow{bottom:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-popover._bottom .ui-popover-arrow{top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-popover._left .ui-popover-arrow{right:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-popover._right .ui-popover-arrow{left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"] }]
|
|
301
301
|
}], ctorParameters: () => [], propDecorators: { dismissable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissable", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], showArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "showArrow", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], focusOnShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnShow", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], shown: [{ type: i0.Output, args: ["shown"] }], hidden: [{ type: i0.Output, args: ["hidden"] }], panel: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }] } });
|
|
302
302
|
|
|
303
303
|
/*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-layout-ui-popover.mjs","sources":["../../../projects/ui-kit/layout/ui-popover/src/lib/ui-popover.ts","../../../projects/ui-kit/layout/ui-popover/src/lib/ui-popover.html","../../../projects/ui-kit/layout/ui-popover/src/public-api.ts","../../../projects/ui-kit/layout/ui-popover/src/4sh-ui-kit-layout-ui-popover.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n DOCUMENT,\n effect,\n ElementRef,\n inject,\n input,\n isDevMode,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n ConnectedOverlayPositionChange,\n ConnectedPosition,\n OverlayModule,\n} from '@angular/cdk/overlay';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { UiMotion } from '@4sh/ui-kit/motion';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\n\n/** Preferred side of the trigger the panel is displayed on (drives the arrow). */\nexport type PopoverPosition = 'top' | 'bottom' | 'left' | 'right';\n\n/** Accepted shapes for the anchor passed to `show` / `toggle`. */\nexport type PopoverTarget = HTMLElement | ElementRef<HTMLElement>;\n\n/** Gap (px) between the trigger and the panel, leaving room for the arrow — mirrors `$popover-arrow-size` in the SCSS. */\nconst ARROW_GAP = 8;\n\n/** Focusable descendants used to move focus into the panel on open. */\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n].join(',');\n\n/** Process-wide counter for unique panel ids (aria-controls wiring). */\nlet nextId = 0;\n\n/**\n * ui-popover — headless floating panel anchored to a trigger.\n *\n * A token-styled surface (shared `overlay-panel` shell + `global.*` tokens)\n * rendered in a CDK connected overlay, driven imperatively through the public\n * `show` / `hide` / `toggle` methods. The consumer keeps a template reference\n * variable on the popover and wires a trigger to it; the panel holds arbitrary\n * projected content.\n *\n * Built for accessibility: `role=\"dialog\"`, non-modal WAI-ARIA pattern by\n * default (no `aria-modal`, focus not trapped — see the `modal` input to opt\n * into a blocking dialog with `aria-modal` + a permanent focus trap via\n * `@angular/cdk/a11y`), the first focusable element (or an element carrying\n * `autofocus`) focused on open, `Escape` to close and return focus to the\n * trigger, and `aria-expanded` / `aria-controls` reflected on the trigger.\n *\n * Positioning, viewport flipping and scroll re-alignment are delegated to the\n * CDK connected overlay (no manual geometry); the arrow follows the effective\n * side.\n *\n * @example\n * ```html\n * <!-- Basic: the trigger's click event carries the anchor -->\n * <ui-button label=\"Détails\" (buttonClick)=\"op.toggle($event)\" />\n * <ui-popover #op ariaLabel=\"Détails du produit\">…</ui-popover>\n *\n * <!-- Controlled: pass the trigger element as the second argument -->\n * <span #anchor>Ancre</span>\n * <ui-button label=\"Ouvrir\" (buttonClick)=\"op.show($event, anchor)\" />\n * <ui-popover #op ariaLabel=\"Détails\">…</ui-popover>\n * ```\n */\n@Component({\n selector: 'ui-popover',\n imports: [OverlayModule, A11yModule, UiMotion],\n templateUrl: './ui-popover.html',\n styleUrl: './ui-popover.scss',\n})\nexport class UiPopover {\n /** Hide the panel when a click lands outside it (and outside the trigger). */\n dismissable = input(true, { transform: booleanAttribute });\n /** Preferred side of the trigger; the overlay flips it when space is lacking. */\n position = input<PopoverPosition>('bottom');\n /** Render the arrow pointing back to the trigger. */\n showArrow = input(true, { transform: booleanAttribute });\n /** Make the panel modal: `aria-modal` reflected + permanent focus trap. */\n modal = input(false, { transform: booleanAttribute });\n /** ARIA role of the panel. */\n role = input<string>('dialog');\n /** Accessible name of the panel (recommended). */\n ariaLabel = input<string>();\n /** Id of an external element naming the panel. */\n ariaLabelledBy = input<string>();\n /** Move focus into the panel when it opens. */\n focusOnShow = input(true, { transform: booleanAttribute });\n /** Close the panel when `Escape` is pressed. */\n closeOnEscape = input(true, { transform: booleanAttribute });\n /** Animate the panel entrance (reduced-motion / `data-motion=\"off\"` always win). */\n motion = input(true, { transform: booleanAttribute });\n /** Extra class(es) applied to the panel (scoped custom styling). */\n styleClass = input<string>();\n\n /** Emitted after the panel becomes visible. */\n shown = output<void>();\n /** Emitted after the panel is hidden. */\n hidden = output<void>();\n\n /** @ignore */\n private readonly doc = inject(DOCUMENT);\n /** @ignore Panel root (only present while open — queried after the overlay attaches). */\n private readonly panel = viewChild<ElementRef<HTMLElement>>('panel');\n\n /** @ignore Panel visibility. */\n private readonly _open = signal(false);\n /** Read-only open state (for host bindings / conditional logic). */\n readonly visible = this._open.asReadonly();\n\n /** @ignore Element the overlay is anchored to. */\n protected readonly origin = signal<HTMLElement | null>(null);\n /** @ignore Effective side (updated from the CDK connection pair) — drives the arrow. */\n protected readonly side = signal<PopoverPosition>('bottom');\n /** @ignore Unique panel id, wired to the trigger via `aria-controls`. */\n protected readonly panelId = `ui-popover-${nextId++}`;\n\n /** @ignore Resolved trigger element (kept for focus restore + aria cleanup). */\n private targetEl: HTMLElement | null = null;\n\n constructor() {\n // A popover declared in an app shell outlives the routed view: dismiss it\n // rather than carrying it over to the next page.\n closeOnNavigation(() => this.hide());\n\n // A11y safeguard: an open dialog must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this._open() && !this.ariaLabel() && !this.ariaLabelledBy()) {\n console.warn(\n '[ui-popover] Popover has no accessible name: provide `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n }\n }\n\n // --- Public API ---------------------------------------------------------\n\n /**\n * Show the panel anchored to `target` (or the event's `currentTarget`).\n * @param event Browser event whose `currentTarget` is used as a fallback anchor.\n * @param target Explicit anchor element (kept anchored to it).\n */\n show(event?: Event, target?: PopoverTarget): void {\n const anchor = this.resolveTarget(target) ?? this.resolveEventTarget(event);\n if (!anchor) return;\n event?.stopPropagation();\n\n this.targetEl = anchor;\n this.origin.set(anchor);\n if (!this._open()) {\n this._open.set(true);\n this.applyTriggerAria(anchor);\n this.shown.emit();\n }\n if (this.focusOnShow()) this.queueFocus();\n }\n\n /** Hide the panel; returns focus to the trigger when focus was inside it. */\n hide(): void {\n if (!this._open()) return;\n const panelEl = this.panel()?.nativeElement;\n const active = this.doc.activeElement;\n const focusWasInside = !!panelEl && active instanceof Node && panelEl.contains(active);\n\n this._open.set(false);\n this.clearTriggerAria();\n if (focusWasInside) this.targetEl?.focus();\n this.hidden.emit();\n }\n\n /** Toggle the panel, anchoring it like {@link show} when it opens. */\n toggle(event?: Event, target?: PopoverTarget): void {\n this._open() ? this.hide() : this.show(event, target);\n }\n\n // --- Positioning ----------------------------------------------------------\n\n /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */\n protected readonly positions = computed<ConnectedPosition[]>(() => {\n const top: ConnectedPosition = {\n originX: 'center',\n originY: 'top',\n overlayX: 'center',\n overlayY: 'bottom',\n offsetY: -ARROW_GAP,\n };\n const bottom: ConnectedPosition = {\n originX: 'center',\n originY: 'bottom',\n overlayX: 'center',\n overlayY: 'top',\n offsetY: ARROW_GAP,\n };\n const left: ConnectedPosition = {\n originX: 'start',\n originY: 'center',\n overlayX: 'end',\n overlayY: 'center',\n offsetX: -ARROW_GAP,\n };\n const right: ConnectedPosition = {\n originX: 'end',\n originY: 'center',\n overlayX: 'start',\n overlayY: 'center',\n offsetX: ARROW_GAP,\n };\n const order: Record<PopoverPosition, ConnectedPosition[]> = {\n top: [top, bottom, right, left],\n bottom: [bottom, top, right, left],\n left: [left, right, top, bottom],\n right: [right, left, top, bottom],\n };\n return order[this.position()];\n });\n\n /** @ignore */\n protected readonly panelClasses = computed(() => {\n const c = ['ui-popover', `_${this.side()}`];\n if (!this.showArrow()) c.push('_no-arrow');\n const extra = this.styleClass();\n if (extra) c.push(extra);\n return c.join(' ');\n });\n\n /** @ignore Map the active CDK connection pair back to the visual side (for the arrow). */\n protected onPositionChange(change: ConnectedOverlayPositionChange): void {\n // The trigger can be gone while the popover lives on (its page was\n // destroyed): re-positioning on a detached anchor measures 0×0 and would\n // snap the panel to the top-left corner.\n if (this.targetEl && !this.targetEl.isConnected) {\n this.hide();\n return;\n }\n const pair = change.connectionPair;\n if (pair.overlayY === 'bottom') this.side.set('top');\n else if (pair.overlayY === 'top' && pair.originY === 'bottom') this.side.set('bottom');\n else if (pair.overlayX === 'end') this.side.set('left');\n else if (pair.overlayX === 'start' && pair.originX === 'end') this.side.set('right');\n else this.side.set(this.position());\n }\n\n // --- Interactions ---------------------------------------------------------\n\n /** @ignore A click outside the panel closes it — unless it lands on the trigger,\n * whose own handler owns the toggle (avoids close-then-reopen races). */\n protected onOutsideClick(event: MouseEvent): void {\n if (!this.dismissable()) return;\n const target = event.target;\n if (target instanceof Node && this.targetEl?.contains(target)) return;\n this.hide();\n }\n\n /** @ignore */\n protected onEscape(event: Event): void {\n if (!this.closeOnEscape()) return;\n event.stopPropagation();\n this.hide();\n }\n\n // --- Internals ------------------------------------------------------------\n\n /** @ignore */\n private resolveTarget(target?: PopoverTarget): HTMLElement | null {\n if (!target) return null;\n return target instanceof ElementRef ? target.nativeElement : target;\n }\n\n /** @ignore */\n private resolveEventTarget(event?: Event): HTMLElement | null {\n const el = event?.currentTarget ?? event?.target;\n return el instanceof HTMLElement ? el : null;\n }\n\n /** @ignore Reflect the open relationship on the trigger. */\n private applyTriggerAria(el: HTMLElement): void {\n el.setAttribute('aria-expanded', 'true');\n el.setAttribute('aria-controls', this.panelId);\n }\n\n /** @ignore */\n private clearTriggerAria(): void {\n const el = this.targetEl;\n if (!el) return;\n el.setAttribute('aria-expanded', 'false');\n el.removeAttribute('aria-controls');\n }\n\n /** @ignore Focus the first focusable (or `[autofocus]`) once the overlay renders.\n * The overlay attaches after change detection: retry over macrotasks\n * (NOT rAF — it never fires in throttled/background tabs). */\n private queueFocus(attempts = 20): void {\n setTimeout(() => {\n const panelEl = this.panel()?.nativeElement;\n if (panelEl) this.focusFirst(panelEl);\n else if (attempts > 0) this.queueFocus(attempts - 1);\n });\n }\n\n /** @ignore */\n private focusFirst(panelEl: HTMLElement): void {\n const auto = panelEl.querySelector<HTMLElement>('[autofocus]');\n if (auto) {\n auto.focus();\n return;\n }\n const focusable = panelEl.querySelector<HTMLElement>(FOCUSABLE_SELECTOR);\n (focusable ?? panelEl).focus();\n }\n}\n","<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-popover\n */\n\nexport * from './lib/ui-popover';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AA6BA;AACA,MAAM,SAAS,GAAG,CAAC;AAEnB;AACA,MAAM,kBAAkB,GAAG;IACzB,SAAS;IACT,wBAAwB;IACxB,uBAAuB;IACvB,wBAAwB;IACxB,0BAA0B;IAC1B,iCAAiC;AAClC,CAAA,CAAC,IAAI,CAAC,GAAG,CAAC;AAEX;AACA,IAAI,MAAM,GAAG,CAAC;AAEd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BG;MAOU,SAAS,CAAA;AAiDpB,IAAA,WAAA,GAAA;;QA/CA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,IAAI,mFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAE1D,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAkB,QAAQ;qFAAC;;QAE3C,IAAA,CAAA,SAA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EAAE,UAAU,EAAE,QAAQ,CAAC,EAAA,QAAA,EAAA,6nCAAA,EAAA,MAAA,EAAA,CAAA,s6DAAA,CAAA,EAAA;qvCAoCc,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnHrE;;AAEG;;ACFH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-layout-ui-popover.mjs","sources":["../../../projects/ui-kit/layout/ui-popover/src/lib/ui-popover.ts","../../../projects/ui-kit/layout/ui-popover/src/lib/ui-popover.html","../../../projects/ui-kit/layout/ui-popover/src/public-api.ts","../../../projects/ui-kit/layout/ui-popover/src/4sh-ui-kit-layout-ui-popover.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n DOCUMENT,\n effect,\n ElementRef,\n inject,\n input,\n isDevMode,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n ConnectedOverlayPositionChange,\n ConnectedPosition,\n OverlayModule,\n} from '@angular/cdk/overlay';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { UiMotion } from '@4sh/ui-kit/motion';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\n\n/** Preferred side of the trigger the panel is displayed on (drives the arrow). */\nexport type PopoverPosition = 'top' | 'bottom' | 'left' | 'right';\n\n/** Accepted shapes for the anchor passed to `show` / `toggle`. */\nexport type PopoverTarget = HTMLElement | ElementRef<HTMLElement>;\n\n/** Gap (px) between the trigger and the panel, leaving room for the arrow — mirrors `$popover-arrow-size` in the SCSS. */\nconst ARROW_GAP = 8;\n\n/** Focusable descendants used to move focus into the panel on open. */\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n].join(',');\n\n/** Process-wide counter for unique panel ids (aria-controls wiring). */\nlet nextId = 0;\n\n/**\n * ui-popover — headless floating panel anchored to a trigger.\n *\n * A token-styled surface (shared `overlay-panel` shell + `global.*` tokens)\n * rendered in a CDK connected overlay, driven imperatively through the public\n * `show` / `hide` / `toggle` methods. The consumer keeps a template reference\n * variable on the popover and wires a trigger to it; the panel holds arbitrary\n * projected content.\n *\n * Built for accessibility: `role=\"dialog\"`, non-modal WAI-ARIA pattern by\n * default (no `aria-modal`, focus not trapped — see the `modal` input to opt\n * into a blocking dialog with `aria-modal` + a permanent focus trap via\n * `@angular/cdk/a11y`), the first focusable element (or an element carrying\n * `autofocus`) focused on open, `Escape` to close and return focus to the\n * trigger, and `aria-expanded` / `aria-controls` reflected on the trigger.\n *\n * Positioning, viewport flipping and scroll re-alignment are delegated to the\n * CDK connected overlay (no manual geometry); the arrow follows the effective\n * side.\n *\n * @example\n * ```html\n * <!-- Basic: the trigger's click event carries the anchor -->\n * <ui-button label=\"Détails\" (buttonClick)=\"op.toggle($event)\" />\n * <ui-popover #op ariaLabel=\"Détails du produit\">…</ui-popover>\n *\n * <!-- Controlled: pass the trigger element as the second argument -->\n * <span #anchor>Ancre</span>\n * <ui-button label=\"Ouvrir\" (buttonClick)=\"op.show($event, anchor)\" />\n * <ui-popover #op ariaLabel=\"Détails\">…</ui-popover>\n * ```\n */\n@Component({\n selector: 'ui-popover',\n imports: [OverlayModule, A11yModule, UiMotion],\n templateUrl: './ui-popover.html',\n styleUrl: './ui-popover.scss',\n})\nexport class UiPopover {\n /** Hide the panel when a click lands outside it (and outside the trigger). */\n dismissable = input(true, { transform: booleanAttribute });\n /** Preferred side of the trigger; the overlay flips it when space is lacking. */\n position = input<PopoverPosition>('bottom');\n /** Render the arrow pointing back to the trigger. */\n showArrow = input(true, { transform: booleanAttribute });\n /** Make the panel modal: `aria-modal` reflected + permanent focus trap. */\n modal = input(false, { transform: booleanAttribute });\n /** ARIA role of the panel. */\n role = input<string>('dialog');\n /** Accessible name of the panel (recommended). */\n ariaLabel = input<string>();\n /** Id of an external element naming the panel. */\n ariaLabelledBy = input<string>();\n /** Move focus into the panel when it opens. */\n focusOnShow = input(true, { transform: booleanAttribute });\n /** Close the panel when `Escape` is pressed. */\n closeOnEscape = input(true, { transform: booleanAttribute });\n /** Animate the panel entrance (reduced-motion / `data-motion=\"off\"` always win). */\n motion = input(true, { transform: booleanAttribute });\n /** Extra class(es) applied to the panel (scoped custom styling). */\n styleClass = input<string>();\n\n /** Emitted after the panel becomes visible. */\n shown = output<void>();\n /** Emitted after the panel is hidden. */\n hidden = output<void>();\n\n /** @ignore */\n private readonly doc = inject(DOCUMENT);\n /** @ignore Panel root (only present while open — queried after the overlay attaches). */\n private readonly panel = viewChild<ElementRef<HTMLElement>>('panel');\n\n /** @ignore Panel visibility. */\n private readonly _open = signal(false);\n /** Read-only open state (for host bindings / conditional logic). */\n readonly visible = this._open.asReadonly();\n\n /** @ignore Element the overlay is anchored to. */\n protected readonly origin = signal<HTMLElement | null>(null);\n /** @ignore Effective side (updated from the CDK connection pair) — drives the arrow. */\n protected readonly side = signal<PopoverPosition>('bottom');\n /** @ignore Unique panel id, wired to the trigger via `aria-controls`. */\n protected readonly panelId = `ui-popover-${nextId++}`;\n\n /** @ignore Resolved trigger element (kept for focus restore + aria cleanup). */\n private targetEl: HTMLElement | null = null;\n\n constructor() {\n // A popover declared in an app shell outlives the routed view: dismiss it\n // rather than carrying it over to the next page.\n closeOnNavigation(() => this.hide());\n\n // A11y safeguard: an open dialog must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this._open() && !this.ariaLabel() && !this.ariaLabelledBy()) {\n console.warn(\n '[ui-popover] Popover has no accessible name: provide `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n }\n }\n\n // --- Public API ---------------------------------------------------------\n\n /**\n * Show the panel anchored to `target` (or the event's `currentTarget`).\n * @param event Browser event whose `currentTarget` is used as a fallback anchor.\n * @param target Explicit anchor element (kept anchored to it).\n */\n show(event?: Event, target?: PopoverTarget): void {\n const anchor = this.resolveTarget(target) ?? this.resolveEventTarget(event);\n if (!anchor) return;\n event?.stopPropagation();\n\n this.targetEl = anchor;\n this.origin.set(anchor);\n if (!this._open()) {\n this._open.set(true);\n this.applyTriggerAria(anchor);\n this.shown.emit();\n }\n if (this.focusOnShow()) this.queueFocus();\n }\n\n /** Hide the panel; returns focus to the trigger when focus was inside it. */\n hide(): void {\n if (!this._open()) return;\n const panelEl = this.panel()?.nativeElement;\n const active = this.doc.activeElement;\n const focusWasInside = !!panelEl && active instanceof Node && panelEl.contains(active);\n\n this._open.set(false);\n this.clearTriggerAria();\n if (focusWasInside) this.targetEl?.focus();\n this.hidden.emit();\n }\n\n /** Toggle the panel, anchoring it like {@link show} when it opens. */\n toggle(event?: Event, target?: PopoverTarget): void {\n this._open() ? this.hide() : this.show(event, target);\n }\n\n // --- Positioning ----------------------------------------------------------\n\n /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */\n protected readonly positions = computed<ConnectedPosition[]>(() => {\n const top: ConnectedPosition = {\n originX: 'center',\n originY: 'top',\n overlayX: 'center',\n overlayY: 'bottom',\n offsetY: -ARROW_GAP,\n };\n const bottom: ConnectedPosition = {\n originX: 'center',\n originY: 'bottom',\n overlayX: 'center',\n overlayY: 'top',\n offsetY: ARROW_GAP,\n };\n const left: ConnectedPosition = {\n originX: 'start',\n originY: 'center',\n overlayX: 'end',\n overlayY: 'center',\n offsetX: -ARROW_GAP,\n };\n const right: ConnectedPosition = {\n originX: 'end',\n originY: 'center',\n overlayX: 'start',\n overlayY: 'center',\n offsetX: ARROW_GAP,\n };\n const order: Record<PopoverPosition, ConnectedPosition[]> = {\n top: [top, bottom, right, left],\n bottom: [bottom, top, right, left],\n left: [left, right, top, bottom],\n right: [right, left, top, bottom],\n };\n return order[this.position()];\n });\n\n /** @ignore */\n protected readonly panelClasses = computed(() => {\n const c = ['ui-popover', `_${this.side()}`];\n if (!this.showArrow()) c.push('_no-arrow');\n const extra = this.styleClass();\n if (extra) c.push(extra);\n return c.join(' ');\n });\n\n /** @ignore Map the active CDK connection pair back to the visual side (for the arrow). */\n protected onPositionChange(change: ConnectedOverlayPositionChange): void {\n // The trigger can be gone while the popover lives on (its page was\n // destroyed): re-positioning on a detached anchor measures 0×0 and would\n // snap the panel to the top-left corner.\n if (this.targetEl && !this.targetEl.isConnected) {\n this.hide();\n return;\n }\n const pair = change.connectionPair;\n if (pair.overlayY === 'bottom') this.side.set('top');\n else if (pair.overlayY === 'top' && pair.originY === 'bottom') this.side.set('bottom');\n else if (pair.overlayX === 'end') this.side.set('left');\n else if (pair.overlayX === 'start' && pair.originX === 'end') this.side.set('right');\n else this.side.set(this.position());\n }\n\n // --- Interactions ---------------------------------------------------------\n\n /** @ignore A click outside the panel closes it — unless it lands on the trigger,\n * whose own handler owns the toggle (avoids close-then-reopen races). */\n protected onOutsideClick(event: MouseEvent): void {\n if (!this.dismissable()) return;\n const target = event.target;\n if (target instanceof Node && this.targetEl?.contains(target)) return;\n this.hide();\n }\n\n /** @ignore */\n protected onEscape(event: Event): void {\n if (!this.closeOnEscape()) return;\n event.stopPropagation();\n this.hide();\n }\n\n // --- Internals ------------------------------------------------------------\n\n /** @ignore */\n private resolveTarget(target?: PopoverTarget): HTMLElement | null {\n if (!target) return null;\n return target instanceof ElementRef ? target.nativeElement : target;\n }\n\n /** @ignore */\n private resolveEventTarget(event?: Event): HTMLElement | null {\n const el = event?.currentTarget ?? event?.target;\n return el instanceof HTMLElement ? el : null;\n }\n\n /** @ignore Reflect the open relationship on the trigger. */\n private applyTriggerAria(el: HTMLElement): void {\n el.setAttribute('aria-expanded', 'true');\n el.setAttribute('aria-controls', this.panelId);\n }\n\n /** @ignore */\n private clearTriggerAria(): void {\n const el = this.targetEl;\n if (!el) return;\n el.setAttribute('aria-expanded', 'false');\n el.removeAttribute('aria-controls');\n }\n\n /** @ignore Focus the first focusable (or `[autofocus]`) once the overlay renders.\n * The overlay attaches after change detection: retry over macrotasks\n * (NOT rAF — it never fires in throttled/background tabs). */\n private queueFocus(attempts = 20): void {\n setTimeout(() => {\n const panelEl = this.panel()?.nativeElement;\n if (panelEl) this.focusFirst(panelEl);\n else if (attempts > 0) this.queueFocus(attempts - 1);\n });\n }\n\n /** @ignore */\n private focusFirst(panelEl: HTMLElement): void {\n const auto = panelEl.querySelector<HTMLElement>('[autofocus]');\n if (auto) {\n auto.focus();\n return;\n }\n const focusable = panelEl.querySelector<HTMLElement>(FOCUSABLE_SELECTOR);\n (focusable ?? panelEl).focus();\n }\n}\n","<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-popover\n */\n\nexport * from './lib/ui-popover';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AA6BA;AACA,MAAM,SAAS,GAAG,CAAC;AAEnB;AACA,MAAM,kBAAkB,GAAG;IAC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,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,UAAU,0LAAE,QAAQ,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,gBAAA,EAAA,aAAA,EAAA,cAAA,EAAA,mBAAA,EAAA,mBAAA,EAAA,gBAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIlC,SAAS,EAAA,UAAA,EAAA,CAAA;kBANrB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,WACb,CAAC,aAAa,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAA,QAAA,EAAA,6nCAAA,EAAA,MAAA,EAAA,CAAA,8kEAAA,CAAA,EAAA;qvCAoCc,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnHrE;;AAEG;;ACFH;;AAEG;;"}
|
|
@@ -119,10 +119,10 @@ class UiMotion {
|
|
|
119
119
|
}, /* @ts-ignore */
|
|
120
120
|
...(ngDevMode ? [{ debugName: "_scale" }] : /* istanbul ignore next */ []));
|
|
121
121
|
}
|
|
122
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
123
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.
|
|
122
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiMotion, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
123
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: UiMotion, isStandalone: true, selector: "[uiMotion]", inputs: { preset: { classPropertyName: "preset", publicName: "uiMotion", isSignal: true, isRequired: true, transformFunction: null }, motionDuration: { classPropertyName: "motionDuration", publicName: "motionDuration", isSignal: true, isRequired: false, transformFunction: null }, motionDelay: { classPropertyName: "motionDelay", publicName: "motionDelay", isSignal: true, isRequired: false, transformFunction: null }, motionEasing: { classPropertyName: "motionEasing", publicName: "motionEasing", isSignal: true, isRequired: false, transformFunction: null }, motionEnterEasing: { classPropertyName: "motionEnterEasing", publicName: "motionEnterEasing", isSignal: true, isRequired: false, transformFunction: null }, motionLeaveEasing: { classPropertyName: "motionLeaveEasing", publicName: "motionLeaveEasing", isSignal: true, isRequired: false, transformFunction: null }, motionDistance: { classPropertyName: "motionDistance", publicName: "motionDistance", isSignal: true, isRequired: false, transformFunction: null }, motionScale: { classPropertyName: "motionScale", publicName: "motionScale", isSignal: true, isRequired: false, transformFunction: null }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null }, motionOnInsert: { classPropertyName: "motionOnInsert", publicName: "motionOnInsert", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_insertClass()", "style.--ui-motion-duration": "_duration()", "style.--ui-motion-delay": "_delay()", "style.--ui-motion-easing-enter": "_enterEasing()", "style.--ui-motion-easing-leave": "_leaveEasing()", "style.--ui-motion-distance": "_distance()", "style.--ui-motion-scale": "_scale()" } }, exportAs: ["uiMotion"], ngImport: i0 }); }
|
|
124
124
|
}
|
|
125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiMotion, decorators: [{
|
|
126
126
|
type: Directive,
|
|
127
127
|
args: [{
|
|
128
128
|
selector: '[uiMotion]',
|
|
@@ -143,12 +143,12 @@ class UiBottomTab {
|
|
|
143
143
|
this.tabClick.emit(event);
|
|
144
144
|
this.bar.updateValue(this.value(), event);
|
|
145
145
|
}
|
|
146
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
147
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
146
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiBottomTab, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
147
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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"] }] }); }
|
|
148
148
|
}
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", 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(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-weight:var(--ui-bottom-tab-bar-label-weight, var(--weight-regular));font-size:var(--ui-bottom-tab-bar-label-font-size, var(--size-typography-text-sm));line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-bottom-tab:hover:not(:disabled,[aria-disabled=true]){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-bottom-tab:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:inset 0 0 0 var(--ui-bottom-tab-bar-item-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--global-border-focus)}.ui-bottom-tab:active:not(:disabled,[aria-disabled=true]){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-bottom-tab:disabled,.ui-bottom-tab._disabled{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled);cursor:not-allowed}.ui-bottom-tab._active{background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}.ui-bottom-tab-icon-box{position:relative;display:inline-flex;flex:none;align-items:center;justify-content:center}.ui-bottom-tab-icon{--ui-icon-size: var(--ui-bottom-tab-bar-icon-size, var(--size-typography-icon-default))}.ui-bottom-tab-adornment{position:absolute;top:var(--ui-bottom-tab-bar-adornment-offset, -.375rem);left:100%;display:flex;align-items:center;transform:translate(var(--ui-bottom-tab-bar-adornment-offset, -.375rem));pointer-events:none}.ui-bottom-tab-label{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"] }]
|
|
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"] }]
|
|
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
|
|
@@ -202,8 +202,8 @@ class UiBottomTabAction {
|
|
|
202
202
|
return;
|
|
203
203
|
this.actionClick.emit(event);
|
|
204
204
|
}
|
|
205
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
206
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.
|
|
205
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiBottomTabAction, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
206
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.5", type: UiBottomTabAction, isStandalone: true, selector: "ui-bottom-tab-action", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconType: { classPropertyName: "iconType", publicName: "iconType", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionClick: "actionClick" }, host: { classAttribute: "ui-bottom-tab-action-host" }, viewQueries: [{ propertyName: "controlEl", first: true, predicate: ["control"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
207
207
|
<button
|
|
208
208
|
#control
|
|
209
209
|
type="button"
|
|
@@ -215,9 +215,9 @@ 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(--global-border-focus)}.ui-bottom-tab-action:disabled{box-shadow:none;cursor:not-allowed}.ui-bottom-tab-action._high{background-color:var(--actions-high-surface-default);color:var(--actions-high-content-default)}.ui-bottom-tab-action._high:hover:not(:disabled){background-color:var(--actions-high-surface-hover);color:var(--actions-high-content-hover)}.ui-bottom-tab-action._high:focus-visible{background-color:var(--actions-high-surface-focused);color:var(--actions-high-content-focused)}.ui-bottom-tab-action._high:active:not(:disabled){background-color:var(--actions-high-surface-pressed);color:var(--actions-high-content-pressed)}.ui-bottom-tab-action._high:disabled{background-color:var(--actions-high-surface-disabled);color:var(--actions-high-content-disabled)}.ui-bottom-tab-action._low{background-color:var(--actions-low-surface-default);color:var(--actions-low-content-default)}.ui-bottom-tab-action._low:hover:not(:disabled){background-color:var(--actions-low-surface-hover);color:var(--actions-low-content-hover)}.ui-bottom-tab-action._low:focus-visible{background-color:var(--actions-low-surface-focused);color:var(--actions-low-content-focused)}.ui-bottom-tab-action._low:active:not(:disabled){background-color:var(--actions-low-surface-pressed);color:var(--actions-low-content-pressed)}.ui-bottom-tab-action._low:disabled{background-color:var(--actions-low-surface-disabled);color:var(--actions-low-content-disabled)}.ui-bottom-tab-action._success{background-color:var(--actions-success-surface-default);color:var(--actions-success-content-default)}.ui-bottom-tab-action._success:hover:not(:disabled){background-color:var(--actions-success-surface-hover);color:var(--actions-success-content-hover)}.ui-bottom-tab-action._success:focus-visible{background-color:var(--actions-success-surface-focused);color:var(--actions-success-content-focused)}.ui-bottom-tab-action._success:active:not(:disabled){background-color:var(--actions-success-surface-pressed);color:var(--actions-success-content-pressed)}.ui-bottom-tab-action._success:disabled{background-color:var(--actions-success-surface-disabled);color:var(--actions-success-content-disabled)}.ui-bottom-tab-action._warning{background-color:var(--actions-warning-surface-default);color:var(--actions-warning-content-default)}.ui-bottom-tab-action._warning:hover:not(:disabled){background-color:var(--actions-warning-surface-hover);color:var(--actions-warning-content-hover)}.ui-bottom-tab-action._warning:focus-visible{background-color:var(--actions-warning-surface-focused);color:var(--actions-warning-content-focused)}.ui-bottom-tab-action._warning:active:not(:disabled){background-color:var(--actions-warning-surface-pressed);color:var(--actions-warning-content-pressed)}.ui-bottom-tab-action._warning:disabled{background-color:var(--actions-warning-surface-disabled);color:var(--actions-warning-content-disabled)}.ui-bottom-tab-action._error{background-color:var(--actions-error-surface-default);color:var(--actions-error-content-default)}.ui-bottom-tab-action._error:hover:not(:disabled){background-color:var(--actions-error-surface-hover);color:var(--actions-error-content-hover)}.ui-bottom-tab-action._error:focus-visible{background-color:var(--actions-error-surface-focused);color:var(--actions-error-content-focused)}.ui-bottom-tab-action._error:active:not(:disabled){background-color:var(--actions-error-surface-pressed);color:var(--actions-error-content-pressed)}.ui-bottom-tab-action._error:disabled{background-color:var(--actions-error-surface-disabled);color:var(--actions-error-content-disabled)}.ui-bottom-tab-action-icon{--ui-icon-size: var(--ui-bottom-tab-bar-action-icon-size, var(--size-typography-icon-xl))}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
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"] }] }); }
|
|
219
219
|
}
|
|
220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiBottomTabAction, decorators: [{
|
|
221
221
|
type: Component,
|
|
222
222
|
args: [{ selector: 'ui-bottom-tab-action', imports: [UiIcon], template: `
|
|
223
223
|
<button
|
|
@@ -231,7 +231,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", 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(--global-border-focus)}.ui-bottom-tab-action:disabled{box-shadow:none;cursor:not-allowed}.ui-bottom-tab-action._high{background-color:var(--actions-high-surface-default);color:var(--actions-high-content-default)}.ui-bottom-tab-action._high:hover:not(:disabled){background-color:var(--actions-high-surface-hover);color:var(--actions-high-content-hover)}.ui-bottom-tab-action._high:focus-visible{background-color:var(--actions-high-surface-focused);color:var(--actions-high-content-focused)}.ui-bottom-tab-action._high:active:not(:disabled){background-color:var(--actions-high-surface-pressed);color:var(--actions-high-content-pressed)}.ui-bottom-tab-action._high:disabled{background-color:var(--actions-high-surface-disabled);color:var(--actions-high-content-disabled)}.ui-bottom-tab-action._low{background-color:var(--actions-low-surface-default);color:var(--actions-low-content-default)}.ui-bottom-tab-action._low:hover:not(:disabled){background-color:var(--actions-low-surface-hover);color:var(--actions-low-content-hover)}.ui-bottom-tab-action._low:focus-visible{background-color:var(--actions-low-surface-focused);color:var(--actions-low-content-focused)}.ui-bottom-tab-action._low:active:not(:disabled){background-color:var(--actions-low-surface-pressed);color:var(--actions-low-content-pressed)}.ui-bottom-tab-action._low:disabled{background-color:var(--actions-low-surface-disabled);color:var(--actions-low-content-disabled)}.ui-bottom-tab-action._success{background-color:var(--actions-success-surface-default);color:var(--actions-success-content-default)}.ui-bottom-tab-action._success:hover:not(:disabled){background-color:var(--actions-success-surface-hover);color:var(--actions-success-content-hover)}.ui-bottom-tab-action._success:focus-visible{background-color:var(--actions-success-surface-focused);color:var(--actions-success-content-focused)}.ui-bottom-tab-action._success:active:not(:disabled){background-color:var(--actions-success-surface-pressed);color:var(--actions-success-content-pressed)}.ui-bottom-tab-action._success:disabled{background-color:var(--actions-success-surface-disabled);color:var(--actions-success-content-disabled)}.ui-bottom-tab-action._warning{background-color:var(--actions-warning-surface-default);color:var(--actions-warning-content-default)}.ui-bottom-tab-action._warning:hover:not(:disabled){background-color:var(--actions-warning-surface-hover);color:var(--actions-warning-content-hover)}.ui-bottom-tab-action._warning:focus-visible{background-color:var(--actions-warning-surface-focused);color:var(--actions-warning-content-focused)}.ui-bottom-tab-action._warning:active:not(:disabled){background-color:var(--actions-warning-surface-pressed);color:var(--actions-warning-content-pressed)}.ui-bottom-tab-action._warning:disabled{background-color:var(--actions-warning-surface-disabled);color:var(--actions-warning-content-disabled)}.ui-bottom-tab-action._error{background-color:var(--actions-error-surface-default);color:var(--actions-error-content-default)}.ui-bottom-tab-action._error:hover:not(:disabled){background-color:var(--actions-error-surface-hover);color:var(--actions-error-content-hover)}.ui-bottom-tab-action._error:focus-visible{background-color:var(--actions-error-surface-focused);color:var(--actions-error-content-focused)}.ui-bottom-tab-action._error:active:not(:disabled){background-color:var(--actions-error-surface-pressed);color:var(--actions-error-content-pressed)}.ui-bottom-tab-action._error:disabled{background-color:var(--actions-error-surface-disabled);color:var(--actions-error-content-disabled)}.ui-bottom-tab-action-icon{--ui-icon-size: var(--ui-bottom-tab-bar-action-icon-size, var(--size-typography-icon-xl))}\n"] }]
|
|
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"] }]
|
|
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).
|
|
@@ -342,14 +342,14 @@ class UiBottomTabBar {
|
|
|
342
342
|
}
|
|
343
343
|
controls[pos].focus();
|
|
344
344
|
}
|
|
345
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
346
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.
|
|
345
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiBottomTabBar, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
346
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.5", type: UiBottomTabBar, isStandalone: true, selector: "ui-bottom-tab-bar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, showLabels: { classPropertyName: "showLabels", publicName: "showLabels", isSignal: true, isRequired: false, transformFunction: null }, safeArea: { classPropertyName: "safeArea", publicName: "safeArea", isSignal: true, isRequired: false, transformFunction: null }, contained: { classPropertyName: "contained", publicName: "contained", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", tabChange: "tabChange" }, host: { listeners: { "keydown": "onKeydown($event)" } }, viewQueries: [{ propertyName: "navEl", first: true, predicate: ["nav"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
347
347
|
<nav #nav [class]="classes()" [attr.aria-label]="ariaLabel()">
|
|
348
348
|
<ng-content />
|
|
349
349
|
</nav>
|
|
350
350
|
`, isInline: true, styles: [":host{display:contents}.ui-bottom-tab-bar{position:fixed;right:0;bottom:0;left:0;z-index:var(--ui-bottom-tab-bar-z-index, 100);display:flex;align-items:center;box-sizing:border-box;gap:var(--ui-bottom-tab-bar-gap, 0);min-height:calc(var(--ui-bottom-tab-bar-min-height, 3.5rem) + var(--ui-bottom-tab-bar-safe-area-offset, env(safe-area-inset-bottom, 0px)));padding:0 var(--ui-bottom-tab-bar-padding-x, 0) var(--ui-bottom-tab-bar-safe-area-offset, env(safe-area-inset-bottom, 0px));border-top:var(--ui-bottom-tab-bar-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-tab-bar-stroke, var(--global-border-default));background-color:var(--ui-bottom-tab-bar-surface, var(--global-background-default));box-shadow:var(--ui-bottom-tab-bar-shadow, none);touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;overflow:visible}.ui-bottom-tab-bar._contained{position:absolute}.ui-bottom-tab-bar._no-safe-area{min-height:var(--ui-bottom-tab-bar-min-height, 3.5rem);padding-bottom:0}@media print{.ui-bottom-tab-bar{display:none}}\n"] }); }
|
|
351
351
|
}
|
|
352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiBottomTabBar, decorators: [{
|
|
353
353
|
type: Component,
|
|
354
354
|
args: [{ selector: 'ui-bottom-tab-bar', template: `
|
|
355
355
|
<nav #nav [class]="classes()" [attr.aria-label]="ariaLabel()">
|
|
@@ -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;;AAEvB,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAU;AAC5B;;;;;AA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A,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,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QAE3B,IAAA,CAAA,MAAM,GAAG,KAAK,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