@4sh/ui-kit 0.6.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.fr.md +47 -22
- package/README.md +46 -23
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +5 -3
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +439 -0
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +111 -10
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +14 -6
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +655 -92
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1107 -0
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +43 -3
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +5 -3
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +8 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +15 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +8 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +40 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +282 -0
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +6 -4
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +8 -3
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +317 -0
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +8 -2
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +374 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +49 -14
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +45 -4
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +370 -0
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +2 -2
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +5 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +5 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +5 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -10
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +19 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +298 -0
- package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +5 -3
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2 -2
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/mcp/data/text-search-docs.json +1083 -83
- package/mcp/data/ui-config.json +5592 -2586
- package/mcp/index.js +682 -410
- package/mcp/package.json +1 -1
- package/package.json +29 -1
- package/schematics/index.cjs +1 -1
- package/styles/base/_ripple.scss +53 -0
- package/styles/component-vars.scss +177 -2
- package/styles/generated/_tokens-breakpoint.scss +1 -1
- package/styles/generated/_tokens-metrics.scss +1 -1
- package/styles/generated/_tokens-primitives.scss +1 -1
- package/styles/generated/_tokens-responsive.scss +17 -17
- package/styles/generated/_tokens-semantics.scss +15 -15
- package/styles/generated/_tokens-styles.scss +1 -1
- package/styles/generated/_tokens-transitions.scss +1 -1
- package/styles/generated/_tokens-typography.scss +1 -1
- package/styles/generated/_tokens.scss +1 -1
- package/styles/index.scss +1 -0
- package/styles/settings/_ui-config.scss +9 -0
- package/styles/utils/_helpers.scss +15 -0
- package/styles/utils/_mixins.scss +17 -1
- package/styles.css +1 -1
- package/types/4sh-ui-kit-actions-ui-button.d.ts +3 -1
- package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +234 -0
- package/types/4sh-ui-kit-base-ui-image.d.ts +16 -3
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +7 -2
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +242 -37
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +481 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +32 -2
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +3 -1
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +4 -0
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +9 -0
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +4 -1
- package/types/4sh-ui-kit-forms-ui-input.d.ts +28 -2
- package/types/4sh-ui-kit-forms-ui-knob.d.ts +93 -0
- package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +3 -1
- package/types/4sh-ui-kit-forms-ui-select.d.ts +5 -1
- package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +126 -0
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +4 -0
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +222 -0
- package/types/4sh-ui-kit-forms.d.ts +38 -7
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +7 -0
- package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +201 -0
- package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +3 -1
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +3 -1
- package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +3 -1
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +8 -3
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +16 -3
- package/types/4sh-ui-kit-ripple.d.ts +156 -0
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +3 -1
|
@@ -73,7 +73,7 @@ class UiStep {
|
|
|
73
73
|
this.stepper.updateValue(value, event);
|
|
74
74
|
}
|
|
75
75
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiStep, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
76
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiStep, isStandalone: true, selector: "ui-step", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class._active": "state() === 'active'", "class._completed": "state() === 'completed'", "class._vertical": "stepper.orientation() === 'vertical'", "class._disabled": "isDisabled()", "class._last": "isLastStep()" }, classAttribute: "ui-step" }, ngImport: i0, template: "<button\n #stepBtn\n type=\"button\"\n role=\"tab\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"state() === 'active'\"\n [attr.aria-current]=\"state() === 'active' ? 'step' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [disabled]=\"isDisabled()\"\n [attr.tabindex]=\"isDisabled() ? null : stepper.tabindex()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"ui-step-marker\" aria-hidden=\"true\">\n @if (markerIcon(); as name) {\n <ui-icon [name]=\"name\" size=\"default\" />\n } @else {\n {{ number() }}\n }\n </span>\n <span class=\"ui-step-title\"><ng-content /></span>\n</button>\n\n@if (showSeparator()) {\n <span\n class=\"ui-step-separator\"\n aria-hidden=\"true\"\n [class._completed]=\"separatorCompleted()\"\n ></span>\n}\n", styles: [":host{display:flex;flex:1 1 0;align-items:flex-start;min-width:0}:host._last{flex:0 0 auto}.ui-step-header{display:inline-flex;flex-direction:column;align-items:center;gap:var(--units-sm);flex:0 0 auto;margin:0;padding:0;border:0;background:transparent;cursor:pointer;text-align:center}.ui-step-header:disabled{cursor:not-allowed}.ui-step-header:focus-visible{outline:none}.ui-step-marker{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-stepper-marker-size, 2.75rem);height:var(--ui-stepper-marker-size, 2.75rem);flex:0 0 auto;border:var(--ui-stepper-marker-stroke-width, var(--stroke-sm)) solid var(--navigation-high-stroke-default);border-radius:var(--radius-full);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--size-typography-text-default);line-height:1;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)),border-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-step-title{width:0;display:flex;justify-content:center;white-space:nowrap;color:var(--navigation-high-content-default);font-family:var(--fontfamily-title);font-size:var(--size-typography-title-sm);line-height:1.2;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-header:focus-visible .ui-step-marker{box-shadow:0 0 0 var(--ui-stepper-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--global-border-focus)}.ui-step-separator{flex:1 1 auto;min-width:var(--units-lg);height:0;margin:calc(var(--ui-stepper-marker-size, 2.75rem) / 2 - var(--ui-stepper-separator-stroke-width, var(--stroke-default)) / 2) var(--units-sm) 0;border-top:var(--ui-stepper-separator-stroke-width, var(--stroke-default)) solid var(--global-border-default);transition:border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-separator._completed{border-top-color:var(--navigation-high-stroke-default)}:host._active .ui-step-marker{background-color:var(--navigation-high-surface-active);border-color:var(--navigation-high-stroke-active);color:var(--informative-defaulthigh-content-default)}:host._active .ui-step-title{color:var(--global-text-default);font-weight:var(--weight-bold)}:host._completed .ui-step-marker{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default)}.ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--navigation-high-surface-hover);border-color:var(--navigation-high-stroke-hover);color:var(--navigation-high-content-hover)}.ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-highlightlow-content-hover)}:host._active .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--navigation-high-surface-active);border-color:var(--navigation-high-stroke-hover)}:host._active .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-highlightlow-content-hover)}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--informative-defaulthigh-surface-hover);border-color:var(--informative-defaulthigh-stroke-hover);color:var(--informative-defaulthigh-content-hover)}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-defaultlow-content-default)}:host._disabled .ui-step-marker{background-color:var(--navigation-high-surface-disabled);border-color:var(--navigation-high-stroke-disabled);color:var(--navigation-high-content-disabled)}:host._disabled .ui-step-title{color:var(--navigation-high-content-disabled)}:host._vertical{display:block}:host._vertical .ui-step-header{flex-direction:row;align-items:center;gap:var(--units-sm);width:100%;text-align:left}:host._vertical .ui-step-title{width:auto;display:block;white-space:normal}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
76
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiStep, isStandalone: true, selector: "ui-step", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class._active": "state() === 'active'", "class._completed": "state() === 'completed'", "class._vertical": "stepper.orientation() === 'vertical'", "class._disabled": "isDisabled()", "class._last": "isLastStep()" }, classAttribute: "ui-step" }, ngImport: i0, template: "<!-- Horizontal: a real tab in the stepper's own tablist (role=\"tab\" + aria-selected).\n Vertical: the panel sits right under its header inside the same ui-step-item, so the\n stepper cannot be a tablist there without a tab containing its own tabpanel \u2014 invalid ARIA.\n Vertical drops the tab semantics for the accordion pattern instead (aria-expanded, no role),\n matching how ui-step-panel switches its own role the same way (see below). -->\n<button\n #stepBtn\n type=\"button\"\n [attr.role]=\"stepper.orientation() === 'vertical' ? null : 'tab'\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"stepper.orientation() === 'vertical' ? null : state() === 'active'\"\n [attr.aria-expanded]=\"stepper.orientation() === 'vertical' ? state() === 'active' : null\"\n [attr.aria-current]=\"state() === 'active' ? 'step' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [disabled]=\"isDisabled()\"\n [attr.tabindex]=\"isDisabled() ? null : stepper.tabindex()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"ui-step-marker\" aria-hidden=\"true\">\n @if (markerIcon(); as name) {\n <ui-icon [name]=\"name\" size=\"default\" />\n } @else {\n {{ number() }}\n }\n </span>\n <span class=\"ui-step-title\"><ng-content /></span>\n</button>\n\n@if (showSeparator()) {\n <span\n class=\"ui-step-separator\"\n aria-hidden=\"true\"\n [class._completed]=\"separatorCompleted()\"\n ></span>\n}\n", styles: [":host{display:flex;flex:1 1 0;align-items:flex-start;min-width:0}:host._last{flex:0 0 auto}.ui-step-header{display:inline-flex;flex-direction:column;align-items:center;gap:var(--units-sm);flex:0 0 auto;margin:0;padding:0;border:0;background:transparent;cursor:pointer;text-align:center}.ui-step-header:disabled{cursor:not-allowed}.ui-step-header:focus-visible{outline:none}.ui-step-marker{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-stepper-marker-size, 2.75rem);height:var(--ui-stepper-marker-size, 2.75rem);flex:0 0 auto;border:var(--ui-stepper-marker-stroke-width, var(--stroke-sm)) solid var(--navigation-high-stroke-default);border-radius:var(--radius-full);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--size-typography-text-default);line-height:1;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)),border-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-step-title{width:0;display:flex;justify-content:center;white-space:nowrap;color:var(--navigation-high-content-default);font-family:var(--fontfamily-title);font-size:var(--size-typography-title-sm);line-height:1.2;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-header:focus-visible .ui-step-marker{box-shadow:0 0 0 var(--ui-stepper-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--global-border-focus)}.ui-step-separator{flex:1 1 auto;min-width:var(--units-lg);height:0;margin:calc(var(--ui-stepper-marker-size, 2.75rem) / 2 - var(--ui-stepper-separator-stroke-width, var(--stroke-default)) / 2) var(--units-sm) 0;border-top:var(--ui-stepper-separator-stroke-width, var(--stroke-default)) solid var(--global-border-default);transition:border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-separator._completed{border-top-color:var(--navigation-high-stroke-default)}:host._active .ui-step-marker{background-color:var(--navigation-high-surface-active);border-color:var(--navigation-high-stroke-active);color:var(--informative-defaulthigh-content-default)}:host._active .ui-step-title{color:var(--global-text-default);font-weight:var(--weight-bold)}:host._completed .ui-step-marker{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default)}.ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--navigation-high-surface-hover);border-color:var(--navigation-high-stroke-hover);color:var(--navigation-high-content-hover)}.ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-highlightlow-content-hover)}:host._active .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--navigation-high-surface-active);border-color:var(--navigation-high-stroke-hover)}:host._active .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-highlightlow-content-hover)}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--informative-defaulthigh-surface-hover);border-color:var(--informative-defaulthigh-stroke-hover);color:var(--informative-defaulthigh-content-hover)}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-defaultlow-content-default)}:host._disabled .ui-step-marker{background-color:var(--navigation-high-surface-disabled);border-color:var(--navigation-high-stroke-disabled);color:var(--navigation-high-content-disabled)}:host._disabled .ui-step-title{color:var(--navigation-high-content-disabled)}:host._vertical{display:block}:host._vertical .ui-step-header{flex-direction:row;align-items:center;gap:var(--units-sm);width:100%;text-align:left}:host._vertical .ui-step-title{width:auto;display:block;white-space:normal}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
77
77
|
}
|
|
78
78
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiStep, decorators: [{
|
|
79
79
|
type: Component,
|
|
@@ -84,7 +84,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
84
84
|
'[class._vertical]': "stepper.orientation() === 'vertical'",
|
|
85
85
|
'[class._disabled]': 'isDisabled()',
|
|
86
86
|
'[class._last]': 'isLastStep()',
|
|
87
|
-
}, template: "<button\n #stepBtn\n type=\"button\"\n role=\"tab\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"state() === 'active'\"\n [attr.aria-current]=\"state() === 'active' ? 'step' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [disabled]=\"isDisabled()\"\n [attr.tabindex]=\"isDisabled() ? null : stepper.tabindex()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"ui-step-marker\" aria-hidden=\"true\">\n @if (markerIcon(); as name) {\n <ui-icon [name]=\"name\" size=\"default\" />\n } @else {\n {{ number() }}\n }\n </span>\n <span class=\"ui-step-title\"><ng-content /></span>\n</button>\n\n@if (showSeparator()) {\n <span\n class=\"ui-step-separator\"\n aria-hidden=\"true\"\n [class._completed]=\"separatorCompleted()\"\n ></span>\n}\n", styles: [":host{display:flex;flex:1 1 0;align-items:flex-start;min-width:0}:host._last{flex:0 0 auto}.ui-step-header{display:inline-flex;flex-direction:column;align-items:center;gap:var(--units-sm);flex:0 0 auto;margin:0;padding:0;border:0;background:transparent;cursor:pointer;text-align:center}.ui-step-header:disabled{cursor:not-allowed}.ui-step-header:focus-visible{outline:none}.ui-step-marker{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-stepper-marker-size, 2.75rem);height:var(--ui-stepper-marker-size, 2.75rem);flex:0 0 auto;border:var(--ui-stepper-marker-stroke-width, var(--stroke-sm)) solid var(--navigation-high-stroke-default);border-radius:var(--radius-full);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--size-typography-text-default);line-height:1;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)),border-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-step-title{width:0;display:flex;justify-content:center;white-space:nowrap;color:var(--navigation-high-content-default);font-family:var(--fontfamily-title);font-size:var(--size-typography-title-sm);line-height:1.2;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-header:focus-visible .ui-step-marker{box-shadow:0 0 0 var(--ui-stepper-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--global-border-focus)}.ui-step-separator{flex:1 1 auto;min-width:var(--units-lg);height:0;margin:calc(var(--ui-stepper-marker-size, 2.75rem) / 2 - var(--ui-stepper-separator-stroke-width, var(--stroke-default)) / 2) var(--units-sm) 0;border-top:var(--ui-stepper-separator-stroke-width, var(--stroke-default)) solid var(--global-border-default);transition:border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-separator._completed{border-top-color:var(--navigation-high-stroke-default)}:host._active .ui-step-marker{background-color:var(--navigation-high-surface-active);border-color:var(--navigation-high-stroke-active);color:var(--informative-defaulthigh-content-default)}:host._active .ui-step-title{color:var(--global-text-default);font-weight:var(--weight-bold)}:host._completed .ui-step-marker{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default)}.ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--navigation-high-surface-hover);border-color:var(--navigation-high-stroke-hover);color:var(--navigation-high-content-hover)}.ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-highlightlow-content-hover)}:host._active .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--navigation-high-surface-active);border-color:var(--navigation-high-stroke-hover)}:host._active .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-highlightlow-content-hover)}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--informative-defaulthigh-surface-hover);border-color:var(--informative-defaulthigh-stroke-hover);color:var(--informative-defaulthigh-content-hover)}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-defaultlow-content-default)}:host._disabled .ui-step-marker{background-color:var(--navigation-high-surface-disabled);border-color:var(--navigation-high-stroke-disabled);color:var(--navigation-high-content-disabled)}:host._disabled .ui-step-title{color:var(--navigation-high-content-disabled)}:host._vertical{display:block}:host._vertical .ui-step-header{flex-direction:row;align-items:center;gap:var(--units-sm);width:100%;text-align:left}:host._vertical .ui-step-title{width:auto;display:block;white-space:normal}\n"] }]
|
|
87
|
+
}, template: "<!-- Horizontal: a real tab in the stepper's own tablist (role=\"tab\" + aria-selected).\n Vertical: the panel sits right under its header inside the same ui-step-item, so the\n stepper cannot be a tablist there without a tab containing its own tabpanel \u2014 invalid ARIA.\n Vertical drops the tab semantics for the accordion pattern instead (aria-expanded, no role),\n matching how ui-step-panel switches its own role the same way (see below). -->\n<button\n #stepBtn\n type=\"button\"\n [attr.role]=\"stepper.orientation() === 'vertical' ? null : 'tab'\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"stepper.orientation() === 'vertical' ? null : state() === 'active'\"\n [attr.aria-expanded]=\"stepper.orientation() === 'vertical' ? state() === 'active' : null\"\n [attr.aria-current]=\"state() === 'active' ? 'step' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [disabled]=\"isDisabled()\"\n [attr.tabindex]=\"isDisabled() ? null : stepper.tabindex()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"ui-step-marker\" aria-hidden=\"true\">\n @if (markerIcon(); as name) {\n <ui-icon [name]=\"name\" size=\"default\" />\n } @else {\n {{ number() }}\n }\n </span>\n <span class=\"ui-step-title\"><ng-content /></span>\n</button>\n\n@if (showSeparator()) {\n <span\n class=\"ui-step-separator\"\n aria-hidden=\"true\"\n [class._completed]=\"separatorCompleted()\"\n ></span>\n}\n", styles: [":host{display:flex;flex:1 1 0;align-items:flex-start;min-width:0}:host._last{flex:0 0 auto}.ui-step-header{display:inline-flex;flex-direction:column;align-items:center;gap:var(--units-sm);flex:0 0 auto;margin:0;padding:0;border:0;background:transparent;cursor:pointer;text-align:center}.ui-step-header:disabled{cursor:not-allowed}.ui-step-header:focus-visible{outline:none}.ui-step-marker{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-stepper-marker-size, 2.75rem);height:var(--ui-stepper-marker-size, 2.75rem);flex:0 0 auto;border:var(--ui-stepper-marker-stroke-width, var(--stroke-sm)) solid var(--navigation-high-stroke-default);border-radius:var(--radius-full);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--size-typography-text-default);line-height:1;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)),border-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-step-title{width:0;display:flex;justify-content:center;white-space:nowrap;color:var(--navigation-high-content-default);font-family:var(--fontfamily-title);font-size:var(--size-typography-title-sm);line-height:1.2;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-header:focus-visible .ui-step-marker{box-shadow:0 0 0 var(--ui-stepper-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--global-border-focus)}.ui-step-separator{flex:1 1 auto;min-width:var(--units-lg);height:0;margin:calc(var(--ui-stepper-marker-size, 2.75rem) / 2 - var(--ui-stepper-separator-stroke-width, var(--stroke-default)) / 2) var(--units-sm) 0;border-top:var(--ui-stepper-separator-stroke-width, var(--stroke-default)) solid var(--global-border-default);transition:border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-separator._completed{border-top-color:var(--navigation-high-stroke-default)}:host._active .ui-step-marker{background-color:var(--navigation-high-surface-active);border-color:var(--navigation-high-stroke-active);color:var(--informative-defaulthigh-content-default)}:host._active .ui-step-title{color:var(--global-text-default);font-weight:var(--weight-bold)}:host._completed .ui-step-marker{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default)}.ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--navigation-high-surface-hover);border-color:var(--navigation-high-stroke-hover);color:var(--navigation-high-content-hover)}.ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-highlightlow-content-hover)}:host._active .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--navigation-high-surface-active);border-color:var(--navigation-high-stroke-hover)}:host._active .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-highlightlow-content-hover)}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--informative-defaulthigh-surface-hover);border-color:var(--informative-defaulthigh-stroke-hover);color:var(--informative-defaulthigh-content-hover)}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-defaultlow-content-default)}:host._disabled .ui-step-marker{background-color:var(--navigation-high-surface-disabled);border-color:var(--navigation-high-stroke-disabled);color:var(--navigation-high-content-disabled)}:host._disabled .ui-step-title{color:var(--navigation-high-content-disabled)}:host._vertical{display:block}:host._vertical .ui-step-header{flex-direction:row;align-items:center;gap:var(--units-sm);width:100%;text-align:left}:host._vertical .ui-step-title{width:auto;display:block;white-space:normal}\n"] }]
|
|
88
88
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
89
89
|
/**
|
|
90
90
|
* ui-step-panel , the content region tied to a {@link UiStep} by shared `value`.
|
|
@@ -124,7 +124,7 @@ class UiStepPanel {
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiStepPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
127
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiStepPanel, isStandalone: true, selector: "ui-step-panel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: {
|
|
127
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiStepPanel, isStandalone: true, selector: "ui-step-panel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "attr.role": "stepper.orientation() === 'vertical' ? 'region' : 'tabpanel'", "id": "stepper.panelId(value())", "attr.aria-labelledby": "stepper.stepId(value())", "attr.tabindex": "active() ? 0 : null", "attr.inert": "active() ? null : ''", "class._active": "active()" }, classAttribute: "ui-step-panel" }, queries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
128
128
|
<ng-template #defaultContent><ng-content /></ng-template>
|
|
129
129
|
<div
|
|
130
130
|
class="ui-step-panel-collapse"
|
|
@@ -160,7 +160,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
160
160
|
</div>
|
|
161
161
|
`, host: {
|
|
162
162
|
class: 'ui-step-panel',
|
|
163
|
-
|
|
163
|
+
// Horizontal: a real tabpanel, owned by the stepper's tablist (see ui-step.html).
|
|
164
|
+
// Vertical: role="region" instead — matching its header's accordion pattern
|
|
165
|
+
// (ui-accordion-panel uses the same role+aria-labelledby pairing) — a tabpanel
|
|
166
|
+
// with no tablist ancestor is invalid ARIA, and the vertical layout has none.
|
|
167
|
+
'[attr.role]': "stepper.orientation() === 'vertical' ? 'region' : 'tabpanel'",
|
|
164
168
|
'[id]': 'stepper.panelId(value())',
|
|
165
169
|
'[attr.aria-labelledby]': 'stepper.stepId(value())',
|
|
166
170
|
'[attr.tabindex]': 'active() ? 0 : null',
|
|
@@ -306,6 +310,10 @@ class UiStepper {
|
|
|
306
310
|
this.id = `ui-stepper-${nextUid++}`;
|
|
307
311
|
/** @ignore All steps projected under this container, in DOM order. */
|
|
308
312
|
this.steps = contentChildren(forwardRef(() => UiStep), { ...(ngDevMode ? { debugName: "steps" } : /* istanbul ignore next */ {}), descendants: true });
|
|
313
|
+
/** @ignore All panels projected under this container — a stepper used as a plain "steps only"
|
|
314
|
+
* progress indicator (see `UiStepList` doc) has none at all: `aria-controls` must not point
|
|
315
|
+
* at an id that resolves to nothing. */
|
|
316
|
+
this.panels = contentChildren(forwardRef(() => UiStepPanel), { ...(ngDevMode ? { debugName: "panels" } : /* istanbul ignore next */ {}), descendants: true });
|
|
309
317
|
/** @ignore Ordered step values (the progression sequence). */
|
|
310
318
|
this.orderedValues = computed(() => this.steps().map((s) => s.value()), /* @ts-ignore */
|
|
311
319
|
...(ngDevMode ? [{ debugName: "orderedValues" }] : /* istanbul ignore next */ []));
|
|
@@ -317,9 +325,10 @@ class UiStepper {
|
|
|
317
325
|
stepId(value) {
|
|
318
326
|
return `${this.id}-step-${value}`;
|
|
319
327
|
}
|
|
320
|
-
/** @ignore id of the panel for a given value
|
|
328
|
+
/** @ignore id of the panel for a given value — `null` when that panel is not actually
|
|
329
|
+
* rendered (see `panels` above), so the step omits `aria-controls` rather than dangle it. */
|
|
321
330
|
panelId(value) {
|
|
322
|
-
return `${this.id}-panel-${value}
|
|
331
|
+
return this.panels().some((p) => p.value() === value) ? `${this.id}-panel-${value}` : null;
|
|
323
332
|
}
|
|
324
333
|
/** @ignore Whether the given value is the active step. */
|
|
325
334
|
isActive(value) {
|
|
@@ -371,19 +380,22 @@ class UiStepper {
|
|
|
371
380
|
this.updateValue(values[index - 1]);
|
|
372
381
|
}
|
|
373
382
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiStepper, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
374
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.2", type: UiStepper, isStandalone: true, selector: "ui-stepper", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, completedIcon: { classPropertyName: "completedIcon", publicName: "completedIcon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", stepChange: "stepChange" }, host: { properties: { "class._vertical": "orientation() === 'vertical'", "attr.role": "orientation() === 'vertical' ? '
|
|
383
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.2", type: UiStepper, isStandalone: true, selector: "ui-stepper", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, completedIcon: { classPropertyName: "completedIcon", publicName: "completedIcon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", stepChange: "stepChange" }, host: { properties: { "class._vertical": "orientation() === 'vertical'", "attr.role": "orientation() === 'vertical' ? 'group' : null", "attr.aria-label": "orientation() === 'vertical' ? (ariaLabel() || null) : null", "attr.id": "id" }, classAttribute: "ui-stepper" }, queries: [{ propertyName: "steps", predicate: i0.forwardRef(() => UiStep), descendants: true, isSignal: true }, { propertyName: "panels", predicate: i0.forwardRef(() => UiStepPanel), descendants: true, isSignal: true }], ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:block;width:100%}\n"] }); }
|
|
375
384
|
}
|
|
376
385
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiStepper, decorators: [{
|
|
377
386
|
type: Component,
|
|
378
387
|
args: [{ selector: 'ui-stepper', template: '<ng-content />', host: {
|
|
379
388
|
class: 'ui-stepper',
|
|
380
389
|
'[class._vertical]': "orientation() === 'vertical'",
|
|
381
|
-
|
|
382
|
-
|
|
390
|
+
// Vertical interleaves each step's panel right under its own header (ui-step-item),
|
|
391
|
+
// so the container cannot be a tablist there — a tab containing its own tabpanel is
|
|
392
|
+
// invalid ARIA. role="group" instead: same accessible name, no tab semantics implied
|
|
393
|
+
// (headers/panels switch to the accordion pattern too, see ui-step.html/ui-step-panel).
|
|
394
|
+
'[attr.role]': "orientation() === 'vertical' ? 'group' : null",
|
|
383
395
|
'[attr.aria-label]': "orientation() === 'vertical' ? (ariaLabel() || null) : null",
|
|
384
396
|
'[attr.id]': 'id',
|
|
385
397
|
}, styles: [":host{display:block;width:100%}\n"] }]
|
|
386
|
-
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], linear: [{ type: i0.Input, args: [{ isSignal: true, alias: "linear", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], completedIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "completedIcon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], stepChange: [{ type: i0.Output, args: ["stepChange"] }], steps: [{ type: i0.ContentChildren, args: [forwardRef(() => UiStep), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
398
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], linear: [{ type: i0.Input, args: [{ isSignal: true, alias: "linear", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], completedIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "completedIcon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], stepChange: [{ type: i0.Output, args: ["stepChange"] }], steps: [{ type: i0.ContentChildren, args: [forwardRef(() => UiStep), { ...{ descendants: true }, isSignal: true }] }], panels: [{ type: i0.ContentChildren, args: [forwardRef(() => UiStepPanel), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
387
399
|
|
|
388
400
|
/*
|
|
389
401
|
* Public API Surface of ui-kit/ui-stepper
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-navigation-ui-stepper.mjs","sources":["../../../projects/ui-kit/navigation/ui-stepper/src/lib/ui-stepper.ts","../../../projects/ui-kit/navigation/ui-stepper/src/lib/ui-step.html","../../../projects/ui-kit/navigation/ui-stepper/src/public-api.ts","../../../projects/ui-kit/navigation/ui-stepper/src/4sh-ui-kit-navigation-ui-stepper.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChild,\n contentChildren,\n effect,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\n/** Identifier of a step / panel pair (matched against the container `value`). */\nexport type UiStepValue = string | number;\n/** Layout axis of the stepper. */\nexport type UiStepperOrientation = 'horizontal' | 'vertical';\n/** Progression state of a single step, derived from the active step. */\nexport type UiStepState = 'upcoming' | 'active' | 'completed';\n\n/** Payload emitted when the active step changes. */\nexport interface UiStepperChangeEvent {\n /** Value of the step that became active. */\n value: UiStepValue;\n /** Originating DOM event (click / keyboard), when triggered by the user. */\n originalEvent?: Event;\n}\n\n/** Process-wide counter for unique step/panel ids (aria wiring). */\nlet nextUid = 0;\n\n/**\n * ui-step , a single step header inside a {@link UiStepList} (horizontal) or a\n * {@link UiStepItem} (vertical).\n *\n * Renders a real native `<button role=\"tab\">` with a numbered marker and its\n * title. Every enabled header is a natural tab stop, so `Tab` walks through the\n * headers and `Enter`/`Space` activate the focused one (native button\n * behaviour , no custom key handling). The progression state (upcoming /\n * active / completed) is derived by the container from the active value; colours\n * come entirely from the `navigation.*` / `informative.*` design tokens.\n *\n * Declared before {@link UiStepper} so the container's content query can\n * reference it without a temporal-dead-zone error at class-definition time.\n */\n@Component({\n selector: 'ui-step',\n imports: [UiIcon],\n templateUrl: './ui-step.html',\n styleUrl: './ui-step.scss',\n host: {\n class: 'ui-step',\n '[class._active]': \"state() === 'active'\",\n '[class._completed]': \"state() === 'completed'\",\n '[class._vertical]': \"stepper.orientation() === 'vertical'\",\n '[class._disabled]': 'isDisabled()',\n '[class._last]': 'isLastStep()',\n },\n})\nexport class UiStep {\n /** Identifier of this step (matched against the container `value`). */\n value = model<UiStepValue | undefined>(undefined);\n /** Disable the step (not activatable, skipped by keyboard focus). */\n disabled = input(false, { transform: booleanAttribute });\n /** Icon name overriding the numbered marker (any state). */\n icon = input<string>();\n /** Accessible name override (falls back to the projected title). */\n ariaLabel = input<string>();\n\n /** @ignore Parent container (owns the active state + progression). */\n protected readonly stepper = inject(UiStepper);\n\n /** @ignore Progression state of this step. */\n readonly state = computed<UiStepState>(() => this.stepper.stepState(this.value()));\n\n /** @ignore 1-based position of this step (shown in the marker). */\n protected readonly number = computed(() => this.stepper.stepNumber(this.value()));\n\n /** @ignore Whether a trailing separator is drawn (horizontal, not the last step). */\n protected readonly showSeparator = computed(\n () => this.stepper.orientation() === 'horizontal' && !this.stepper.isLast(this.value()),\n );\n\n /** @ignore The separator bridges to the next step once this one is completed. */\n protected readonly separatorCompleted = computed(() => this.state() === 'completed');\n\n /** @ignore Last step in the sequence (no trailing growth in the horizontal strip). */\n protected readonly isLastStep = computed(() => this.stepper.isLast(this.value()));\n\n /**\n * @ignore Disabled when explicitly set, or , in `linear` mode , when the step\n * lies ahead of the active one (you cannot skip forward).\n */\n readonly isDisabled = computed(\n () => this.disabled() || (this.stepper.linear() && this.state() === 'upcoming'),\n );\n\n /** @ignore Glyph shown in the marker: own icon, else the completed icon, else the number. */\n protected readonly markerIcon = computed(() => {\n if (this.icon()) return this.icon()!;\n if (this.state() === 'completed') return this.stepper.completedIcon() ?? null;\n return null;\n });\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n const value = this.value();\n if (this.isDisabled() || value === undefined) return;\n this.stepper.updateValue(value, event);\n }\n}\n\n/**\n * ui-step-panel , the content region tied to a {@link UiStep} by shared `value`.\n *\n * The panel stays mounted but is `hidden` (and skipped by assistive tech) when\n * inactive, so its state is preserved. With `lazy` the content is rendered only\n * once the panel is first activated; wrap expensive content in a\n * `<ng-template #content>` so it initialises lazily.\n */\n@Component({\n selector: 'ui-step-panel',\n imports: [NgTemplateOutlet],\n template: `\n <ng-template #defaultContent><ng-content /></ng-template>\n <div\n class=\"ui-step-panel-collapse\"\n [class._open]=\"active()\"\n [class._no-motion]=\"!stepper.motion()\"\n >\n <div class=\"ui-step-panel-inner\">\n <div class=\"ui-step-panel-body\">\n @if (shouldRender()) {\n <ng-container [ngTemplateOutlet]=\"content() ?? defaultContent\" />\n }\n </div>\n </div>\n </div>\n `,\n styleUrl: './ui-step-panel.scss',\n host: {\n class: 'ui-step-panel',\n role: 'tabpanel',\n '[id]': 'stepper.panelId(value())',\n '[attr.aria-labelledby]': 'stepper.stepId(value())',\n '[attr.tabindex]': 'active() ? 0 : null',\n '[attr.inert]': \"active() ? null : ''\",\n '[class._active]': 'active()',\n },\n})\nexport class UiStepPanel {\n /** Identifier of this panel (matched against the step of the same `value`). */\n value = model<UiStepValue | undefined>(undefined);\n /** Render this panel's content only once it is first activated (overrides the group default). */\n lazy = input<boolean, unknown>(undefined, {\n transform: (v) => (v == null ? undefined : booleanAttribute(v)),\n });\n\n /** Optional lazy content template (`<ng-template #content>`). */\n protected readonly content = contentChild<TemplateRef<unknown>>('content');\n\n /** @ignore Parent container (active state + group `lazy` default). */\n protected readonly stepper = inject(UiStepper);\n\n /** @ignore */\n protected readonly active = computed(() => this.stepper.isActive(this.value()));\n /** @ignore Panel-level `lazy` overrides the group default when explicitly set. */\n private readonly isLazy = computed(() => this.lazy() ?? this.stepper.lazy());\n /** @ignore Sticks once the panel has been activated at least once. */\n private readonly hasRendered = signal(false);\n\n constructor() {\n effect(() => {\n if (this.active()) this.hasRendered.set(true);\n });\n }\n\n /** @ignore Eager panels always render; lazy ones only after first activation. */\n protected readonly shouldRender = computed(\n () => !this.isLazy() || this.hasRendered() || this.active(),\n );\n}\n\n/**\n * ui-step-list , the horizontal strip of {@link UiStep} headers.\n *\n * Owns the WAI-ARIA `role=\"tablist\"`. Focus moves through the headers with\n * `Tab` (each enabled header is a native tab stop); activation is `Enter` /\n * `Space` (native `<button>`). Use it on its own , without panels , for a plain\n * progress indicator (\"steps only\").\n */\n@Component({\n selector: 'ui-step-list',\n template: '<ng-content />',\n styleUrl: './ui-step-list.scss',\n host: {\n class: 'ui-step-list',\n role: 'tablist',\n 'aria-orientation': 'horizontal',\n '[attr.aria-label]': 'ariaLabel() || null',\n },\n})\nexport class UiStepList {\n /** Accessible name for the step list (recommended). */\n ariaLabel = input<string>();\n}\n\n/**\n * ui-step-panels , thin wrapper grouping the {@link UiStepPanel}s below the\n * horizontal step list.\n */\n@Component({\n selector: 'ui-step-panels',\n template: '<ng-content />',\n styles: `\n :host {\n display: block;\n width: 100%;\n }\n `,\n host: { class: 'ui-step-panels' },\n})\nexport class UiStepPanels {}\n\n/**\n * ui-step-item , vertical wrapper pairing a {@link UiStep} with its\n * {@link UiStepPanel}. Carries the shared `value` and propagates it to both\n * children, so the vertical markup stays terse. The connector rail is drawn by\n * the item itself, alongside the panel.\n */\n@Component({\n selector: 'ui-step-item',\n template: '<ng-content />',\n styleUrl: './ui-step-item.scss',\n host: {\n class: 'ui-step-item',\n '[class._active]': \"state() === 'active'\",\n '[class._completed]': \"state() === 'completed'\",\n '[class._last]': 'isLast()',\n },\n})\nexport class UiStepItem {\n /** Identifier shared by the wrapped step and panel. */\n value = input.required<UiStepValue>();\n\n /** @ignore Parent container. */\n protected readonly stepper = inject(UiStepper);\n\n /** @ignore Wrapped step (value propagated from this item). */\n private readonly step = contentChild(UiStep);\n /** @ignore Wrapped panel (value propagated from this item). */\n private readonly panel = contentChild(UiStepPanel);\n\n /** @ignore Progression state (drives the connector colour). */\n protected readonly state = computed<UiStepState>(() => this.stepper.stepState(this.value()));\n /** @ignore Last item hides its connector rail. */\n protected readonly isLast = computed(() => this.stepper.isLast(this.value()));\n\n constructor() {\n // Propagate the item value down to the wrapped step and panel.\n effect(() => {\n this.step()?.value.set(this.value());\n this.panel()?.value.set(this.value());\n });\n }\n}\n\n/**\n * ui-stepper , headless container guiding a user through a numbered, multi-step\n * progression (wizard). Composition API mirroring `ui-tabs`.\n *\n * Two layouts. **Horizontal**: a `ui-step-list` of `ui-step` headers on top and\n * a `ui-step-panels` holding one `ui-step-panel` per step below (each step and\n * its panel paired by `value`). **Vertical**: each `ui-step-item` wraps a\n * `ui-step` and its `ui-step-panel`, so the panel appears directly beneath its\n * header. With `linear`, steps ahead of the active one are disabled , advance by\n * setting `value` (e.g. a \"Next\" button in the panel). Every colour/metric comes\n * from the `navigation.*` / `informative.*` design tokens; the active panel\n * fades in via the shared motion system (reduced-motion aware).\n *\n * @example\n * ```html\n * <ui-stepper [(value)]=\"active\">\n * <ui-step-list ariaLabel=\"Étapes\">\n * <ui-step [value]=\"1\">Compte</ui-step>\n * <ui-step [value]=\"2\">Profil</ui-step>\n * <ui-step [value]=\"3\">Confirmation</ui-step>\n * </ui-step-list>\n * <ui-step-panels>\n * <ui-step-panel [value]=\"1\">…</ui-step-panel>\n * <ui-step-panel [value]=\"2\">…</ui-step-panel>\n * <ui-step-panel [value]=\"3\">…</ui-step-panel>\n * </ui-step-panels>\n * </ui-stepper>\n * ```\n */\n@Component({\n selector: 'ui-stepper',\n template: '<ng-content />',\n styles: `\n :host {\n display: block;\n width: 100%;\n }\n `,\n host: {\n class: 'ui-stepper',\n '[class._vertical]': \"orientation() === 'vertical'\",\n '[attr.role]': \"orientation() === 'vertical' ? 'tablist' : null\",\n '[attr.aria-orientation]': \"orientation() === 'vertical' ? 'vertical' : null\",\n '[attr.aria-label]': \"orientation() === 'vertical' ? (ariaLabel() || null) : null\",\n '[attr.id]': 'id',\n },\n})\nexport class UiStepper {\n /** Value of the active step (two-way). `undefined` = no active step. */\n value = model<UiStepValue | undefined>(undefined);\n /** Layout axis: `horizontal` (list on top, panels below) or `vertical`. */\n orientation = input<UiStepperOrientation>('horizontal');\n /** When `true`, steps ahead of the active one are disabled (no skipping forward). */\n linear = input(false, { transform: booleanAttribute });\n /** Group default: render an inactive panel's content only once it is first activated. */\n lazy = input(false, { transform: booleanAttribute });\n /** Animate the active panel transition (reduced-motion always wins). */\n motion = input(true, { transform: booleanAttribute });\n /** Icon shown in the marker of completed steps (falls back to the step number). */\n completedIcon = input<string>();\n /** Accessible name for the container (used as `aria-label` in vertical layout). */\n ariaLabel = input<string>();\n /** Tabindex applied to each enabled step header. */\n tabindex = input(0, { transform: numberAttribute });\n\n /** Fired whenever the active step changes (user click / keyboard). */\n stepChange = output<UiStepperChangeEvent>();\n\n /** @ignore Unique id root for aria wiring between steps and panels. */\n readonly id = `ui-stepper-${nextUid++}`;\n\n /** @ignore All steps projected under this container, in DOM order. */\n private readonly steps = contentChildren(\n forwardRef(() => UiStep),\n { descendants: true },\n );\n\n /** @ignore Ordered step values (the progression sequence). */\n private readonly orderedValues = computed(() => this.steps().map((s) => s.value()));\n\n /** @ignore Index of the active step in the ordered sequence (-1 when none). */\n private readonly activeIndex = computed(() => this.orderedValues().indexOf(this.value()));\n\n /** @ignore id of the step header for a given value. */\n stepId(value: UiStepValue | undefined): string {\n return `${this.id}-step-${value}`;\n }\n /** @ignore id of the panel for a given value. */\n panelId(value: UiStepValue | undefined): string {\n return `${this.id}-panel-${value}`;\n }\n\n /** @ignore Whether the given value is the active step. */\n isActive(value: UiStepValue | undefined): boolean {\n return value !== undefined && this.value() === value;\n }\n\n /** @ignore 1-based position of a step in the progression (0 when unknown). */\n stepNumber(value: UiStepValue | undefined): number {\n return this.orderedValues().indexOf(value) + 1;\n }\n\n /** @ignore Whether the given value is the last step in the sequence. */\n isLast(value: UiStepValue | undefined): boolean {\n const values = this.orderedValues();\n return values.length > 0 && values[values.length - 1] === value;\n }\n\n /**\n * @ignore Progression state of a step: before the active one → `completed`,\n * the active one → `active`, after it → `upcoming`.\n */\n stepState(value: UiStepValue | undefined): UiStepState {\n const index = this.orderedValues().indexOf(value);\n const active = this.activeIndex();\n if (index === -1 || active === -1) return 'upcoming';\n if (index < active) return 'completed';\n if (index === active) return 'active';\n return 'upcoming';\n }\n\n /** @ignore Activate a step (no-op if already active); emits `stepChange`. */\n updateValue(value: UiStepValue, event?: Event): void {\n if (this.value() === value) return;\n this.value.set(value);\n this.stepChange.emit({ value, originalEvent: event });\n }\n\n /** Activate the next step in the sequence (respects the sequence bounds). */\n next(): void {\n const values = this.orderedValues();\n const target = values[this.activeIndex() + 1];\n if (target !== undefined) this.updateValue(target);\n }\n\n /** Activate the previous step in the sequence. */\n prev(): void {\n const values = this.orderedValues();\n const index = this.activeIndex();\n if (index > 0) this.updateValue(values[index - 1]!);\n }\n}\n","<button\n #stepBtn\n type=\"button\"\n role=\"tab\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"state() === 'active'\"\n [attr.aria-current]=\"state() === 'active' ? 'step' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [disabled]=\"isDisabled()\"\n [attr.tabindex]=\"isDisabled() ? null : stepper.tabindex()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"ui-step-marker\" aria-hidden=\"true\">\n @if (markerIcon(); as name) {\n <ui-icon [name]=\"name\" size=\"default\" />\n } @else {\n {{ number() }}\n }\n </span>\n <span class=\"ui-step-title\"><ng-content /></span>\n</button>\n\n@if (showSeparator()) {\n <span\n class=\"ui-step-separator\"\n aria-hidden=\"true\"\n [class._completed]=\"separatorCompleted()\"\n ></span>\n}\n","/*\n * Public API Surface of ui-kit/ui-stepper\n */\n\nexport * from './lib/ui-stepper';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAkCA;AACA,IAAI,OAAO,GAAG,CAAC;AAEf;;;;;;;;;;;;;AAaG;MAeU,MAAM,CAAA;AAdnB,IAAA,WAAA,GAAA;;QAgBE,IAAA,CAAA,KAAK,GAAG,KAAK,CAA0B,SAAS;kFAAC;;QAEjD,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAGR,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC;;AAGrC,QAAA,IAAA,CAAA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,WAAA,EAAA,iDAAA,EAAA,uBAAA,EAAA,kDAAA,EAAA,iBAAA,EAAA,6DAAA,EAAA,SAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,YAAA,EAAA,EAAA,OAAA,EAAA,CAAA,EAAA,YAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,CAAA,UAAA,CAAA,MA0BD,MAAM,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA1Cf,gBAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,CAAA,CAAA;;2FAgBf,SAAS,EAAA,UAAA,EAAA,CAAA;kBAlBrB,SAAS;+BACE,YAAY,EAAA,QAAA,EACZ,gBAAgB,EAAA,IAAA,EAOpB;AACJ,wBAAA,KAAK,EAAE,YAAY;AACnB,wBAAA,mBAAmB,EAAE,8BAA8B;AACnD,wBAAA,aAAa,EAAE,iDAAiD;AAChE,wBAAA,yBAAyB,EAAE,kDAAkD;AAC7E,wBAAA,mBAAmB,EAAE,6DAA6D;AAClF,wBAAA,WAAW,EAAE,IAAI;AAClB,qBAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA;06BA4BC,UAAU,CAAC,MAAM,MAAM,CAAC,EAAA,EAAA,GACxB,EAAE,WAAW,EAAE,IAAI,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3VzB;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-navigation-ui-stepper.mjs","sources":["../../../projects/ui-kit/navigation/ui-stepper/src/lib/ui-stepper.ts","../../../projects/ui-kit/navigation/ui-stepper/src/lib/ui-step.html","../../../projects/ui-kit/navigation/ui-stepper/src/public-api.ts","../../../projects/ui-kit/navigation/ui-stepper/src/4sh-ui-kit-navigation-ui-stepper.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChild,\n contentChildren,\n effect,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\n/** Identifier of a step / panel pair (matched against the container `value`). */\nexport type UiStepValue = string | number;\n/** Layout axis of the stepper. */\nexport type UiStepperOrientation = 'horizontal' | 'vertical';\n/** Progression state of a single step, derived from the active step. */\nexport type UiStepState = 'upcoming' | 'active' | 'completed';\n\n/** Payload emitted when the active step changes. */\nexport interface UiStepperChangeEvent {\n /** Value of the step that became active. */\n value: UiStepValue;\n /** Originating DOM event (click / keyboard), when triggered by the user. */\n originalEvent?: Event;\n}\n\n/** Process-wide counter for unique step/panel ids (aria wiring). */\nlet nextUid = 0;\n\n/**\n * ui-step , a single step header inside a {@link UiStepList} (horizontal) or a\n * {@link UiStepItem} (vertical).\n *\n * Renders a real native `<button role=\"tab\">` with a numbered marker and its\n * title. Every enabled header is a natural tab stop, so `Tab` walks through the\n * headers and `Enter`/`Space` activate the focused one (native button\n * behaviour , no custom key handling). The progression state (upcoming /\n * active / completed) is derived by the container from the active value; colours\n * come entirely from the `navigation.*` / `informative.*` design tokens.\n *\n * Declared before {@link UiStepper} so the container's content query can\n * reference it without a temporal-dead-zone error at class-definition time.\n */\n@Component({\n selector: 'ui-step',\n imports: [UiIcon],\n templateUrl: './ui-step.html',\n styleUrl: './ui-step.scss',\n host: {\n class: 'ui-step',\n '[class._active]': \"state() === 'active'\",\n '[class._completed]': \"state() === 'completed'\",\n '[class._vertical]': \"stepper.orientation() === 'vertical'\",\n '[class._disabled]': 'isDisabled()',\n '[class._last]': 'isLastStep()',\n },\n})\nexport class UiStep {\n /** Identifier of this step (matched against the container `value`). */\n value = model<UiStepValue | undefined>(undefined);\n /** Disable the step (not activatable, skipped by keyboard focus). */\n disabled = input(false, { transform: booleanAttribute });\n /** Icon name overriding the numbered marker (any state). */\n icon = input<string>();\n /** Accessible name override (falls back to the projected title). */\n ariaLabel = input<string>();\n\n /** @ignore Parent container (owns the active state + progression). */\n protected readonly stepper = inject(UiStepper);\n\n /** @ignore Progression state of this step. */\n readonly state = computed<UiStepState>(() => this.stepper.stepState(this.value()));\n\n /** @ignore 1-based position of this step (shown in the marker). */\n protected readonly number = computed(() => this.stepper.stepNumber(this.value()));\n\n /** @ignore Whether a trailing separator is drawn (horizontal, not the last step). */\n protected readonly showSeparator = computed(\n () => this.stepper.orientation() === 'horizontal' && !this.stepper.isLast(this.value()),\n );\n\n /** @ignore The separator bridges to the next step once this one is completed. */\n protected readonly separatorCompleted = computed(() => this.state() === 'completed');\n\n /** @ignore Last step in the sequence (no trailing growth in the horizontal strip). */\n protected readonly isLastStep = computed(() => this.stepper.isLast(this.value()));\n\n /**\n * @ignore Disabled when explicitly set, or , in `linear` mode , when the step\n * lies ahead of the active one (you cannot skip forward).\n */\n readonly isDisabled = computed(\n () => this.disabled() || (this.stepper.linear() && this.state() === 'upcoming'),\n );\n\n /** @ignore Glyph shown in the marker: own icon, else the completed icon, else the number. */\n protected readonly markerIcon = computed(() => {\n if (this.icon()) return this.icon()!;\n if (this.state() === 'completed') return this.stepper.completedIcon() ?? null;\n return null;\n });\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n const value = this.value();\n if (this.isDisabled() || value === undefined) return;\n this.stepper.updateValue(value, event);\n }\n}\n\n/**\n * ui-step-panel , the content region tied to a {@link UiStep} by shared `value`.\n *\n * The panel stays mounted but is `hidden` (and skipped by assistive tech) when\n * inactive, so its state is preserved. With `lazy` the content is rendered only\n * once the panel is first activated; wrap expensive content in a\n * `<ng-template #content>` so it initialises lazily.\n */\n@Component({\n selector: 'ui-step-panel',\n imports: [NgTemplateOutlet],\n template: `\n <ng-template #defaultContent><ng-content /></ng-template>\n <div\n class=\"ui-step-panel-collapse\"\n [class._open]=\"active()\"\n [class._no-motion]=\"!stepper.motion()\"\n >\n <div class=\"ui-step-panel-inner\">\n <div class=\"ui-step-panel-body\">\n @if (shouldRender()) {\n <ng-container [ngTemplateOutlet]=\"content() ?? defaultContent\" />\n }\n </div>\n </div>\n </div>\n `,\n styleUrl: './ui-step-panel.scss',\n host: {\n class: 'ui-step-panel',\n // Horizontal: a real tabpanel, owned by the stepper's tablist (see ui-step.html).\n // Vertical: role=\"region\" instead — matching its header's accordion pattern\n // (ui-accordion-panel uses the same role+aria-labelledby pairing) — a tabpanel\n // with no tablist ancestor is invalid ARIA, and the vertical layout has none.\n '[attr.role]': \"stepper.orientation() === 'vertical' ? 'region' : 'tabpanel'\",\n '[id]': 'stepper.panelId(value())',\n '[attr.aria-labelledby]': 'stepper.stepId(value())',\n '[attr.tabindex]': 'active() ? 0 : null',\n '[attr.inert]': \"active() ? null : ''\",\n '[class._active]': 'active()',\n },\n})\nexport class UiStepPanel {\n /** Identifier of this panel (matched against the step of the same `value`). */\n value = model<UiStepValue | undefined>(undefined);\n /** Render this panel's content only once it is first activated (overrides the group default). */\n lazy = input<boolean, unknown>(undefined, {\n transform: (v) => (v == null ? undefined : booleanAttribute(v)),\n });\n\n /** Optional lazy content template (`<ng-template #content>`). */\n protected readonly content = contentChild<TemplateRef<unknown>>('content');\n\n /** @ignore Parent container (active state + group `lazy` default). */\n protected readonly stepper = inject(UiStepper);\n\n /** @ignore */\n protected readonly active = computed(() => this.stepper.isActive(this.value()));\n /** @ignore Panel-level `lazy` overrides the group default when explicitly set. */\n private readonly isLazy = computed(() => this.lazy() ?? this.stepper.lazy());\n /** @ignore Sticks once the panel has been activated at least once. */\n private readonly hasRendered = signal(false);\n\n constructor() {\n effect(() => {\n if (this.active()) this.hasRendered.set(true);\n });\n }\n\n /** @ignore Eager panels always render; lazy ones only after first activation. */\n protected readonly shouldRender = computed(\n () => !this.isLazy() || this.hasRendered() || this.active(),\n );\n}\n\n/**\n * ui-step-list , the horizontal strip of {@link UiStep} headers.\n *\n * Owns the WAI-ARIA `role=\"tablist\"`. Focus moves through the headers with\n * `Tab` (each enabled header is a native tab stop); activation is `Enter` /\n * `Space` (native `<button>`). Use it on its own , without panels , for a plain\n * progress indicator (\"steps only\").\n */\n@Component({\n selector: 'ui-step-list',\n template: '<ng-content />',\n styleUrl: './ui-step-list.scss',\n host: {\n class: 'ui-step-list',\n role: 'tablist',\n 'aria-orientation': 'horizontal',\n '[attr.aria-label]': 'ariaLabel() || null',\n },\n})\nexport class UiStepList {\n /** Accessible name for the step list (recommended). */\n ariaLabel = input<string>();\n}\n\n/**\n * ui-step-panels , thin wrapper grouping the {@link UiStepPanel}s below the\n * horizontal step list.\n */\n@Component({\n selector: 'ui-step-panels',\n template: '<ng-content />',\n styles: `\n :host {\n display: block;\n width: 100%;\n }\n `,\n host: { class: 'ui-step-panels' },\n})\nexport class UiStepPanels {}\n\n/**\n * ui-step-item , vertical wrapper pairing a {@link UiStep} with its\n * {@link UiStepPanel}. Carries the shared `value` and propagates it to both\n * children, so the vertical markup stays terse. The connector rail is drawn by\n * the item itself, alongside the panel.\n */\n@Component({\n selector: 'ui-step-item',\n template: '<ng-content />',\n styleUrl: './ui-step-item.scss',\n host: {\n class: 'ui-step-item',\n '[class._active]': \"state() === 'active'\",\n '[class._completed]': \"state() === 'completed'\",\n '[class._last]': 'isLast()',\n },\n})\nexport class UiStepItem {\n /** Identifier shared by the wrapped step and panel. */\n value = input.required<UiStepValue>();\n\n /** @ignore Parent container. */\n protected readonly stepper = inject(UiStepper);\n\n /** @ignore Wrapped step (value propagated from this item). */\n private readonly step = contentChild(UiStep);\n /** @ignore Wrapped panel (value propagated from this item). */\n private readonly panel = contentChild(UiStepPanel);\n\n /** @ignore Progression state (drives the connector colour). */\n protected readonly state = computed<UiStepState>(() => this.stepper.stepState(this.value()));\n /** @ignore Last item hides its connector rail. */\n protected readonly isLast = computed(() => this.stepper.isLast(this.value()));\n\n constructor() {\n // Propagate the item value down to the wrapped step and panel.\n effect(() => {\n this.step()?.value.set(this.value());\n this.panel()?.value.set(this.value());\n });\n }\n}\n\n/**\n * ui-stepper , headless container guiding a user through a numbered, multi-step\n * progression (wizard). Composition API mirroring `ui-tabs`.\n *\n * Two layouts. **Horizontal**: a `ui-step-list` of `ui-step` headers on top and\n * a `ui-step-panels` holding one `ui-step-panel` per step below (each step and\n * its panel paired by `value`). **Vertical**: each `ui-step-item` wraps a\n * `ui-step` and its `ui-step-panel`, so the panel appears directly beneath its\n * header. With `linear`, steps ahead of the active one are disabled , advance by\n * setting `value` (e.g. a \"Next\" button in the panel). Every colour/metric comes\n * from the `navigation.*` / `informative.*` design tokens; the active panel\n * fades in via the shared motion system (reduced-motion aware).\n *\n * @example\n * ```html\n * <ui-stepper [(value)]=\"active\">\n * <ui-step-list ariaLabel=\"Étapes\">\n * <ui-step [value]=\"1\">Compte</ui-step>\n * <ui-step [value]=\"2\">Profil</ui-step>\n * <ui-step [value]=\"3\">Confirmation</ui-step>\n * </ui-step-list>\n * <ui-step-panels>\n * <ui-step-panel [value]=\"1\">…</ui-step-panel>\n * <ui-step-panel [value]=\"2\">…</ui-step-panel>\n * <ui-step-panel [value]=\"3\">…</ui-step-panel>\n * </ui-step-panels>\n * </ui-stepper>\n * ```\n */\n@Component({\n selector: 'ui-stepper',\n template: '<ng-content />',\n styles: `\n :host {\n display: block;\n width: 100%;\n }\n `,\n host: {\n class: 'ui-stepper',\n '[class._vertical]': \"orientation() === 'vertical'\",\n // Vertical interleaves each step's panel right under its own header (ui-step-item),\n // so the container cannot be a tablist there — a tab containing its own tabpanel is\n // invalid ARIA. role=\"group\" instead: same accessible name, no tab semantics implied\n // (headers/panels switch to the accordion pattern too, see ui-step.html/ui-step-panel).\n '[attr.role]': \"orientation() === 'vertical' ? 'group' : null\",\n '[attr.aria-label]': \"orientation() === 'vertical' ? (ariaLabel() || null) : null\",\n '[attr.id]': 'id',\n },\n})\nexport class UiStepper {\n /** Value of the active step (two-way). `undefined` = no active step. */\n value = model<UiStepValue | undefined>(undefined);\n /** Layout axis: `horizontal` (list on top, panels below) or `vertical`. */\n orientation = input<UiStepperOrientation>('horizontal');\n /** When `true`, steps ahead of the active one are disabled (no skipping forward). */\n linear = input(false, { transform: booleanAttribute });\n /** Group default: render an inactive panel's content only once it is first activated. */\n lazy = input(false, { transform: booleanAttribute });\n /** Animate the active panel transition (reduced-motion always wins). */\n motion = input(true, { transform: booleanAttribute });\n /** Icon shown in the marker of completed steps (falls back to the step number). */\n completedIcon = input<string>();\n /** Accessible name for the container (used as `aria-label` in vertical layout). */\n ariaLabel = input<string>();\n /** Tabindex applied to each enabled step header. */\n tabindex = input(0, { transform: numberAttribute });\n\n /** Fired whenever the active step changes (user click / keyboard). */\n stepChange = output<UiStepperChangeEvent>();\n\n /** @ignore Unique id root for aria wiring between steps and panels. */\n readonly id = `ui-stepper-${nextUid++}`;\n\n /** @ignore All steps projected under this container, in DOM order. */\n private readonly steps = contentChildren(\n forwardRef(() => UiStep),\n { descendants: true },\n );\n /** @ignore All panels projected under this container — a stepper used as a plain \"steps only\"\n * progress indicator (see `UiStepList` doc) has none at all: `aria-controls` must not point\n * at an id that resolves to nothing. */\n private readonly panels = contentChildren(\n forwardRef(() => UiStepPanel),\n { descendants: true },\n );\n\n /** @ignore Ordered step values (the progression sequence). */\n private readonly orderedValues = computed(() => this.steps().map((s) => s.value()));\n\n /** @ignore Index of the active step in the ordered sequence (-1 when none). */\n private readonly activeIndex = computed(() => this.orderedValues().indexOf(this.value()));\n\n /** @ignore id of the step header for a given value. */\n stepId(value: UiStepValue | undefined): string {\n return `${this.id}-step-${value}`;\n }\n /** @ignore id of the panel for a given value — `null` when that panel is not actually\n * rendered (see `panels` above), so the step omits `aria-controls` rather than dangle it. */\n panelId(value: UiStepValue | undefined): string | null {\n return this.panels().some((p) => p.value() === value) ? `${this.id}-panel-${value}` : null;\n }\n\n /** @ignore Whether the given value is the active step. */\n isActive(value: UiStepValue | undefined): boolean {\n return value !== undefined && this.value() === value;\n }\n\n /** @ignore 1-based position of a step in the progression (0 when unknown). */\n stepNumber(value: UiStepValue | undefined): number {\n return this.orderedValues().indexOf(value) + 1;\n }\n\n /** @ignore Whether the given value is the last step in the sequence. */\n isLast(value: UiStepValue | undefined): boolean {\n const values = this.orderedValues();\n return values.length > 0 && values[values.length - 1] === value;\n }\n\n /**\n * @ignore Progression state of a step: before the active one → `completed`,\n * the active one → `active`, after it → `upcoming`.\n */\n stepState(value: UiStepValue | undefined): UiStepState {\n const index = this.orderedValues().indexOf(value);\n const active = this.activeIndex();\n if (index === -1 || active === -1) return 'upcoming';\n if (index < active) return 'completed';\n if (index === active) return 'active';\n return 'upcoming';\n }\n\n /** @ignore Activate a step (no-op if already active); emits `stepChange`. */\n updateValue(value: UiStepValue, event?: Event): void {\n if (this.value() === value) return;\n this.value.set(value);\n this.stepChange.emit({ value, originalEvent: event });\n }\n\n /** Activate the next step in the sequence (respects the sequence bounds). */\n next(): void {\n const values = this.orderedValues();\n const target = values[this.activeIndex() + 1];\n if (target !== undefined) this.updateValue(target);\n }\n\n /** Activate the previous step in the sequence. */\n prev(): void {\n const values = this.orderedValues();\n const index = this.activeIndex();\n if (index > 0) this.updateValue(values[index - 1]!);\n }\n}\n","<!-- Horizontal: a real tab in the stepper's own tablist (role=\"tab\" + aria-selected).\n Vertical: the panel sits right under its header inside the same ui-step-item, so the\n stepper cannot be a tablist there without a tab containing its own tabpanel — invalid ARIA.\n Vertical drops the tab semantics for the accordion pattern instead (aria-expanded, no role),\n matching how ui-step-panel switches its own role the same way (see below). -->\n<button\n #stepBtn\n type=\"button\"\n [attr.role]=\"stepper.orientation() === 'vertical' ? null : 'tab'\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"stepper.orientation() === 'vertical' ? null : state() === 'active'\"\n [attr.aria-expanded]=\"stepper.orientation() === 'vertical' ? state() === 'active' : null\"\n [attr.aria-current]=\"state() === 'active' ? 'step' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [disabled]=\"isDisabled()\"\n [attr.tabindex]=\"isDisabled() ? null : stepper.tabindex()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"ui-step-marker\" aria-hidden=\"true\">\n @if (markerIcon(); as name) {\n <ui-icon [name]=\"name\" size=\"default\" />\n } @else {\n {{ number() }}\n }\n </span>\n <span class=\"ui-step-title\"><ng-content /></span>\n</button>\n\n@if (showSeparator()) {\n <span\n class=\"ui-step-separator\"\n aria-hidden=\"true\"\n [class._completed]=\"separatorCompleted()\"\n ></span>\n}\n","/*\n * Public API Surface of ui-kit/ui-stepper\n */\n\nexport * from './lib/ui-stepper';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAkCA;AACA,IAAI,OAAO,GAAG,CAAC;AAEf;;;;;;;;;;;;;AAaG;MAeU,MAAM,CAAA;AAdnB,IAAA,WAAA,GAAA;;QAgBE,IAAA,CAAA,KAAK,GAAG,KAAK,CAA0B,SAAS;kFAAC;;QAEjD,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAGR,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC;;AAGrC,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAc,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;kFAAC;;AAG/D,QAAA,IAAA,CAAA,MAAM,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;mFAAC;;QAG9D,IAAA,CAAA,aAAa,GAAG,QAAQ,CACzC,MAAM,IAAI,CAAC,OAAO,CAAC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@ class UiTab {
|
|
|
67
67
|
type="button"
|
|
68
68
|
role="tab"
|
|
69
69
|
class="ui-tab-button"
|
|
70
|
+
[attr.data-ripple]="tabs.ripple() ? 'on' : 'off'"
|
|
70
71
|
[id]="tabs.tabId(value())"
|
|
71
72
|
[attr.aria-controls]="tabs.panelId(value())"
|
|
72
73
|
[attr.aria-selected]="active()"
|
|
@@ -91,6 +92,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
91
92
|
type="button"
|
|
92
93
|
role="tab"
|
|
93
94
|
class="ui-tab-button"
|
|
95
|
+
[attr.data-ripple]="tabs.ripple() ? 'on' : 'off'"
|
|
94
96
|
[id]="tabs.tabId(value())"
|
|
95
97
|
[attr.aria-controls]="tabs.panelId(value())"
|
|
96
98
|
[attr.aria-selected]="active()"
|
|
@@ -446,6 +448,8 @@ class UiTabs {
|
|
|
446
448
|
this.showNavigators = input(true, { ...(ngDevMode ? { debugName: "showNavigators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
447
449
|
/** Animate the active indicator and panel transitions (reduced-motion always wins). */
|
|
448
450
|
this.motion = input(true, { ...(ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
451
|
+
/** Ripple Effect */
|
|
452
|
+
this.ripple = input(true, { ...(ngDevMode ? { debugName: "ripple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
449
453
|
/** Tabindex applied to the active tab (the group's single tab stop). */
|
|
450
454
|
this.tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
451
455
|
/** Fired whenever the active tab changes (user click / keyboard / focus). */
|
|
@@ -454,6 +458,15 @@ class UiTabs {
|
|
|
454
458
|
this.id = `ui-tabs-${nextUid++}`;
|
|
455
459
|
/** @ignore All tabs projected under this container (across the list boundary). */
|
|
456
460
|
this.tabs = contentChildren(forwardRef(() => UiTab), { ...(ngDevMode ? { debugName: "tabs" } : /* istanbul ignore next */ {}), descendants: true });
|
|
461
|
+
/** @ignore Whether a `ui-tab-panels` wrapper is projected at all — some consumers use
|
|
462
|
+
* `ui-tabs` as a navigation menu with no panel (a router outlet renders the content
|
|
463
|
+
* instead, see the `TabMenu` story). `aria-controls` must not point at an id that resolves
|
|
464
|
+
* to nothing. A single presence check on the wrapper (rather than a second
|
|
465
|
+
* `contentChildren` query matched per tab value) — two sibling content-children queries on
|
|
466
|
+
* this component broke `<ng-content>` projection for every `UiTab` but the first, a real
|
|
467
|
+
* Angular/Ivy interaction, not something worth chasing further; this is the query-count-1
|
|
468
|
+
* workaround. */
|
|
469
|
+
this.hasPanels = contentChild(forwardRef(() => UiTabPanels), { ...(ngDevMode ? { debugName: "hasPanels" } : /* istanbul ignore next */ {}), descendants: true });
|
|
457
470
|
/**
|
|
458
471
|
* @ignore Value that owns the group's single tab stop (roving tabindex):
|
|
459
472
|
* the active tab, or the first enabled tab when none is active.
|
|
@@ -471,9 +484,11 @@ class UiTabs {
|
|
|
471
484
|
tabId(value) {
|
|
472
485
|
return `${this.id}-tab-${value}`;
|
|
473
486
|
}
|
|
474
|
-
/** @ignore id of the panel for a given value
|
|
487
|
+
/** @ignore id of the panel for a given value — `null` when no `ui-tab-panels` wrapper is
|
|
488
|
+
* projected at all (see `hasPanels` above), so the tab omits `aria-controls` rather than
|
|
489
|
+
* dangle it. */
|
|
475
490
|
panelId(value) {
|
|
476
|
-
return `${this.id}-panel-${value}
|
|
491
|
+
return this.hasPanels() ? `${this.id}-panel-${value}` : null;
|
|
477
492
|
}
|
|
478
493
|
/** @ignore Whether the given value is the active tab. */
|
|
479
494
|
isActive(value) {
|
|
@@ -487,7 +502,7 @@ class UiTabs {
|
|
|
487
502
|
this.tabChange.emit({ value, originalEvent: event });
|
|
488
503
|
}
|
|
489
504
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiTabs, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
490
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.2", type: UiTabs, isStandalone: true, selector: "ui-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, showNavigators: { classPropertyName: "showNavigators", publicName: "showNavigators", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", tabChange: "tabChange" }, host: { properties: { "class._vertical": "orientation() === 'vertical'" }, classAttribute: "ui-tabs" }, queries: [{ propertyName: "tabs", predicate: i0.forwardRef(() => UiTab), descendants: true, isSignal: true }], ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:flex;flex-direction:column;width:100%}:host(._vertical){flex-direction:row;align-items:flex-start}\n"] }); }
|
|
505
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.2", type: UiTabs, isStandalone: true, selector: "ui-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, showNavigators: { classPropertyName: "showNavigators", publicName: "showNavigators", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", tabChange: "tabChange" }, host: { properties: { "class._vertical": "orientation() === 'vertical'" }, classAttribute: "ui-tabs" }, queries: [{ propertyName: "tabs", predicate: i0.forwardRef(() => UiTab), descendants: true, isSignal: true }, { propertyName: "hasPanels", first: true, predicate: i0.forwardRef(() => UiTabPanels), descendants: true, isSignal: true }], ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:flex;flex-direction:column;width:100%}:host(._vertical){flex-direction:row;align-items:flex-start}\n"] }); }
|
|
491
506
|
}
|
|
492
507
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiTabs, decorators: [{
|
|
493
508
|
type: Component,
|
|
@@ -495,7 +510,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
495
510
|
class: 'ui-tabs',
|
|
496
511
|
'[class._vertical]': "orientation() === 'vertical'",
|
|
497
512
|
}, styles: [":host{display:flex;flex-direction:column;width:100%}:host(._vertical){flex-direction:row;align-items:flex-start}\n"] }]
|
|
498
|
-
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], showNavigators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showNavigators", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], tabChange: [{ type: i0.Output, args: ["tabChange"] }], tabs: [{ type: i0.ContentChildren, args: [forwardRef(() => UiTab), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
513
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], showNavigators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showNavigators", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], ripple: [{ type: i0.Input, args: [{ isSignal: true, alias: "ripple", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], tabChange: [{ type: i0.Output, args: ["tabChange"] }], tabs: [{ type: i0.ContentChildren, args: [forwardRef(() => UiTab), { ...{ descendants: true }, isSignal: true }] }], hasPanels: [{ type: i0.ContentChild, args: [forwardRef(() => UiTabPanels), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
499
514
|
|
|
500
515
|
/*
|
|
501
516
|
* Public API Surface of ui-kit/ui-tabs
|