@sdcorejs/angular 22.2.11 → 22.2.12

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.
@@ -82,6 +82,12 @@ class SdStepper {
82
82
  get cssActiveBg() {
83
83
  return `var(--sd-${this.color()})`;
84
84
  }
85
+ get cssActiveContrast() {
86
+ return `var(--sd-${this.color()}-contrast)`;
87
+ }
88
+ get cssCompletedBg() {
89
+ return `var(--sd-${this.color()}-light)`;
90
+ }
85
91
  get cssCompleted() {
86
92
  return `var(--sd-${this.color()})`;
87
93
  }
@@ -122,11 +128,11 @@ class SdStepper {
122
128
  step?.selectChange.emit();
123
129
  }
124
130
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdStepper, deps: [], target: i0.ɵɵFactoryTarget.Component });
125
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SdStepper, isStandalone: true, selector: "sd-stepper", inputs: { selectedIndex: { classPropertyName: "selectedIndex", publicName: "selectedIndex", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, headerPosition: { classPropertyName: "headerPosition", publicName: "headerPosition", isSignal: true, isRequired: false, transformFunction: null }, animationDuration: { classPropertyName: "animationDuration", publicName: "animationDuration", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIndex: "selectedIndexChange", selectionChange: "selectionChange" }, host: { properties: { "attr.data-autoId": "this.autoIdAttr", "style.--sd-stepper-active-color": "this.cssActive", "style.--sd-stepper-active-bg": "this.cssActiveBg", "style.--sd-stepper-completed-color": "this.cssCompleted", "style.--sd-stepper-line-active-color": "this.cssLine" } }, queries: [{ propertyName: "steps", predicate: SdStep, isSignal: true }], viewQueries: [{ propertyName: "matStepper", first: true, predicate: MatStepper, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- why: `(selectionChange)` b\u00EAn d\u01B0\u1EDBi l\u00E0 output c\u1EE7a `MatStepper` (Angular Material), KH\u00D4NG ph\u1EA3i output c\u1EE7a\n `<sd-stepper>` \u2014 ph\u1EA3i gi\u1EEF nguy\u00EAn t\u00EAn. Output c\u00F4ng khai c\u1EE7a lib \u0111\u00E3 \u0111\u1ED5i th\u00E0nh `selectionChange`. -->\n<mat-stepper\n class=\"sd-stepper\"\n [(selectedIndex)]=\"selectedIndex\"\n [linear]=\"linear()\"\n [orientation]=\"orientation()\"\n [labelPosition]=\"labelPosition()\"\n [headerPosition]=\"headerPosition()\"\n [animationDuration]=\"animationDuration()\"\n [disableRipple]=\"disableRipple()\"\n (selectionChange)=\"onSelectionChange($event)\">\n @for (step of steps(); track step; let i = $index) {\n <mat-step\n [stepControl]=\"step.stepControl() ?? undefined!\"\n [optional]=\"step.optional()\"\n [editable]=\"step.editable()\"\n [state]=\"step.state() ?? ''\"\n [errorMessage]=\"step.errorMessage() ?? ''\">\n <ng-template matStepLabel>\n <span class=\"sd-step__label\">\n <span class=\"sd-step__text\">{{ step.label() }}</span>\n </span>\n </ng-template>\n\n <ng-template matStepContent>\n <ng-container [ngTemplateOutlet]=\"step.bodyTpl()\"></ng-container>\n </ng-template>\n </mat-step>\n }\n <ng-template matStepperIcon=\"number\" let-index=\"index\">\n @if (steps()[index]?.icon(); as icon) {\n <sd-icon class=\"sd-step__icon\" [name]=\"icon\" size=\"18px\"></sd-icon>\n } @else {\n {{ index + 1 }}\n }\n </ng-template>\n <ng-template matStepperIcon=\"edit\"><sd-icon class=\"sd-step__icon\" name=\"check\" size=\"18px\"></sd-icon></ng-template>\n <ng-template matStepperIcon=\"done\"><sd-icon class=\"sd-step__icon\" name=\"check\" size=\"18px\"></sd-icon></ng-template>\n</mat-stepper>\n", styles: [":host{display:block;--sd-stepper-active-color: var(--sd-primary, #005cbb);--sd-stepper-active-bg: var(--sd-primary, #005cbb);--sd-stepper-completed-color: var(--sd-primary, #005cbb);--sd-stepper-line-active-color: var(--sd-primary, #005cbb);--sd-stepper-error-color: var(--sd-error, #ba1a1a);--sd-stepper-pending-bg: var(--sd-disabled-bg, rgba(26, 27, 31, .08));--sd-stepper-pending-color: var(--sd-disabled-text, rgba(26, 27, 31, .6));--sd-stepper-text-color: var(--sd-text, #1a1b1f)}.sd-step__label{display:inline-flex;align-items:center;gap:4px}.sd-step__icon{font-size:18px;width:18px;height:18px;line-height:18px}.sd-step__text{white-space:nowrap}:host ::ng-deep .mat-step-icon{background-color:var(--sd-stepper-pending-bg);color:var(--sd-stepper-pending-color)}:host ::ng-deep .mat-step-icon-selected{background-color:var(--sd-stepper-active-bg)!important;color:#fff!important}:host ::ng-deep .mat-step-icon-state-done,:host ::ng-deep .mat-step-icon-state-edit{background-color:var(--sd-stepper-completed-color)!important;color:#fff!important}:host ::ng-deep .mat-step-icon-state-error{background-color:var(--sd-stepper-error-color)!important;color:#fff!important}:host ::ng-deep .mat-step-label.mat-step-label-active .mat-step-text-label{color:var(--sd-stepper-text-color);font-weight:500}:host ::ng-deep .mat-step-label-selected .mat-step-text-label{color:var(--sd-stepper-active-color);font-weight:600}:host ::ng-deep .mat-stepper-horizontal-line,:host ::ng-deep .mat-stepper-vertical-line:before{border-color:#0000001f}:host ::ng-deep .mat-step-header.cdk-program-focused,:host ::ng-deep .mat-step-header:hover{background-color:#00000005}:host ::ng-deep .mat-step-icon{width:32px;height:32px;border-radius:8px}:host ::ng-deep .mat-step-icon-state-done,:host ::ng-deep .mat-step-icon-state-edit{background:color-mix(in srgb,var(--sd-stepper-completed-color) 12%,var(--sd-surface, #fff))!important;color:var(--sd-stepper-completed-color)!important}:host ::ng-deep .mat-step-icon-selected{background:var(--sd-stepper-active-bg)!important;color:#fff!important}:host ::ng-deep .mat-step-header{border-radius:8px}:host ::ng-deep .mat-step-header:focus-visible{outline:2px solid var(--sd-stepper-active-color);outline-offset:-2px}:host ::ng-deep .mat-step-label{min-width:0}:host ::ng-deep .mat-horizontal-content-container{padding-bottom:16px}:host ::ng-deep .mat-stepper-horizontal-line{min-width:16px}@media(max-width:600px){:host ::ng-deep .mat-horizontal-stepper-header-container{overflow-x:auto;scrollbar-width:thin}:host ::ng-deep .mat-horizontal-stepper-header{padding:12px;min-height:64px;flex-shrink:0}:host ::ng-deep .mat-horizontal-content-container{padding:0 12px 16px}:host ::ng-deep .mat-vertical-stepper-header{padding:16px 12px}:host ::ng-deep .mat-vertical-content-container{margin-left:28px}:host ::ng-deep .sd-step__text{white-space:normal;overflow-wrap:anywhere}:host ::ng-deep .mat-vertical-stepper-header .mat-step-label{white-space:normal}}@media(prefers-reduced-motion:reduce){:host ::ng-deep .mat-stepper-horizontal-line,:host ::ng-deep .mat-horizontal-content-container,:host ::ng-deep .mat-horizontal-stepper-content,:host ::ng-deep .mat-vertical-content-container{transition:none!important;animation:none!important}}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: MatStepperModule }, { kind: "component", type: i1.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i1.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i1.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["disableRipple", "color", "labelPosition", "headerPosition", "aria-label", "headerPrefix", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "directive", type: i1.MatStepperIcon, selector: "ng-template[matStepperIcon]", inputs: ["matStepperIcon"] }, { kind: "directive", type: i1.MatStepContent, selector: "ng-template[matStepContent]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
131
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SdStepper, isStandalone: true, selector: "sd-stepper", inputs: { selectedIndex: { classPropertyName: "selectedIndex", publicName: "selectedIndex", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, headerPosition: { classPropertyName: "headerPosition", publicName: "headerPosition", isSignal: true, isRequired: false, transformFunction: null }, animationDuration: { classPropertyName: "animationDuration", publicName: "animationDuration", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIndex: "selectedIndexChange", selectionChange: "selectionChange" }, host: { properties: { "attr.data-autoId": "this.autoIdAttr", "style.--sd-stepper-active-color": "this.cssActive", "style.--sd-stepper-active-bg": "this.cssActiveBg", "style.--sd-stepper-active-contrast": "this.cssActiveContrast", "style.--sd-stepper-completed-bg": "this.cssCompletedBg", "style.--sd-stepper-completed-color": "this.cssCompleted", "style.--sd-stepper-line-active-color": "this.cssLine" } }, queries: [{ propertyName: "steps", predicate: SdStep, isSignal: true }], viewQueries: [{ propertyName: "matStepper", first: true, predicate: MatStepper, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- why: `(selectionChange)` b\u00EAn d\u01B0\u1EDBi l\u00E0 output c\u1EE7a `MatStepper` (Angular Material), KH\u00D4NG ph\u1EA3i output c\u1EE7a\n `<sd-stepper>` \u2014 ph\u1EA3i gi\u1EEF nguy\u00EAn t\u00EAn. Output c\u00F4ng khai c\u1EE7a lib \u0111\u00E3 \u0111\u1ED5i th\u00E0nh `selectionChange`. -->\n<mat-stepper\n class=\"sd-stepper\"\n [(selectedIndex)]=\"selectedIndex\"\n [linear]=\"linear()\"\n [orientation]=\"orientation()\"\n [labelPosition]=\"labelPosition()\"\n [headerPosition]=\"headerPosition()\"\n [animationDuration]=\"animationDuration()\"\n [disableRipple]=\"disableRipple()\"\n (selectionChange)=\"onSelectionChange($event)\">\n @for (step of steps(); track step; let i = $index) {\n <mat-step\n [stepControl]=\"step.stepControl() ?? undefined!\"\n [optional]=\"step.optional()\"\n [editable]=\"step.editable()\"\n [state]=\"step.state() ?? ''\"\n [errorMessage]=\"step.errorMessage() ?? ''\">\n <ng-template matStepLabel>\n <span class=\"sd-step__label\">\n <span class=\"sd-step__text\">{{ step.label() }}</span>\n </span>\n </ng-template>\n\n <ng-template matStepContent>\n <ng-container [ngTemplateOutlet]=\"step.bodyTpl()\"></ng-container>\n </ng-template>\n </mat-step>\n }\n <ng-template matStepperIcon=\"number\" let-index=\"index\">\n @if (steps()[index]?.icon(); as icon) {\n <sd-icon class=\"sd-step__icon\" [name]=\"icon\" size=\"18px\"></sd-icon>\n } @else {\n {{ index + 1 }}\n }\n </ng-template>\n <ng-template matStepperIcon=\"edit\"><sd-icon class=\"sd-step__icon\" name=\"check\" size=\"18px\"></sd-icon></ng-template>\n <ng-template matStepperIcon=\"done\"><sd-icon class=\"sd-step__icon\" name=\"check\" size=\"18px\"></sd-icon></ng-template>\n</mat-stepper>\n", styles: [":host{display:block;--sd-stepper-active-color: var(--sd-primary, #005cbb);--sd-stepper-active-bg: var(--sd-primary, #005cbb);--sd-stepper-active-contrast: var(--sd-primary-contrast, #ffffff);--sd-stepper-completed-bg: var(--sd-primary-light, #d7e3ff);--sd-stepper-line-color: var(--sd-border, rgba(0, 0, 0, .12));--sd-stepper-completed-color: var(--sd-primary, #005cbb);--sd-stepper-line-active-color: var(--sd-primary, #005cbb);--sd-stepper-error-color: var(--sd-error, #ba1a1a);--sd-stepper-pending-bg: var(--sd-disabled-bg, rgba(26, 27, 31, .08));--sd-stepper-pending-color: var(--sd-disabled-text, rgba(26, 27, 31, .6));--sd-stepper-text-color: var(--sd-text, #1a1b1f)}.sd-step__label{display:inline-flex;align-items:center;gap:4px}.sd-step__icon{font-size:18px;width:18px;height:18px;line-height:18px}.sd-step__text{white-space:nowrap}:host ::ng-deep .mat-step-icon{background-color:var(--sd-stepper-pending-bg);color:var(--sd-stepper-pending-color)}:host ::ng-deep .mat-step-icon-state-done,:host ::ng-deep .mat-step-icon-state-edit{background-color:var(--sd-stepper-completed-bg)!important;color:var(--sd-stepper-completed-color)!important}:host ::ng-deep .mat-step-icon-selected{background-color:var(--sd-stepper-active-bg)!important;color:var(--sd-stepper-active-contrast)!important}:host ::ng-deep .mat-step-icon-state-error{background-color:var(--sd-error-light, #ffdad6)!important;color:var(--sd-stepper-error-color)!important}:host ::ng-deep .mat-step-label.mat-step-label-active .mat-step-text-label{color:var(--sd-stepper-text-color);font-weight:500}:host ::ng-deep .mat-step-label.mat-step-label-selected .mat-step-text-label{color:var(--sd-stepper-active-color);font-weight:600}:host ::ng-deep .mat-stepper-horizontal-line,:host ::ng-deep .mat-stepper-vertical-line:before,:host ::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:before,:host ::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:after{border-color:var(--sd-stepper-line-color)}:host ::ng-deep .mat-stepper-label-position-bottom .mat-stepper-horizontal-line,:host ::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:before,:host ::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:after{top:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2 + 16px)}:host ::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:before,:host ::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:after{width:calc(50% - 24px)}:host ::ng-deep .mat-step-header.cdk-program-focused,:host ::ng-deep .mat-step-header:hover{background-color:#00000005}:host ::ng-deep .mat-step-icon{width:32px;height:32px;border-radius:50%}:host ::ng-deep .mat-step-header{border-radius:8px}:host ::ng-deep .mat-step-header:focus-visible{outline:2px solid var(--sd-stepper-active-color);outline-offset:-2px}:host ::ng-deep .mat-step-label{min-width:0}:host ::ng-deep .mat-horizontal-content-container{padding-bottom:16px}:host ::ng-deep .mat-stepper-horizontal-line{min-width:16px}@media(max-width:600px){:host ::ng-deep .mat-horizontal-stepper-header-container{overflow-x:auto;scrollbar-width:thin}:host ::ng-deep .mat-horizontal-stepper-header{padding:12px;min-height:64px;flex-shrink:0}:host ::ng-deep .mat-horizontal-content-container{padding:0 12px 16px}:host ::ng-deep .mat-vertical-stepper-header{padding:16px 12px}:host ::ng-deep .mat-vertical-content-container{margin-left:28px}:host ::ng-deep .sd-step__text{white-space:normal;overflow-wrap:anywhere}:host ::ng-deep .mat-vertical-stepper-header .mat-step-label{white-space:normal}}@media(prefers-reduced-motion:reduce){:host ::ng-deep .mat-stepper-horizontal-line,:host ::ng-deep .mat-horizontal-content-container,:host ::ng-deep .mat-horizontal-stepper-content,:host ::ng-deep .mat-vertical-content-container{transition:none!important;animation:none!important}}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: MatStepperModule }, { kind: "component", type: i1.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i1.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i1.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["disableRipple", "color", "labelPosition", "headerPosition", "aria-label", "headerPrefix", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "directive", type: i1.MatStepperIcon, selector: "ng-template[matStepperIcon]", inputs: ["matStepperIcon"] }, { kind: "directive", type: i1.MatStepContent, selector: "ng-template[matStepContent]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
126
132
  }
127
133
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdStepper, decorators: [{
128
134
  type: Component,
129
- args: [{ selector: 'sd-stepper', standalone: true, imports: [SdIcon, MatStepperModule, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- why: `(selectionChange)` b\u00EAn d\u01B0\u1EDBi l\u00E0 output c\u1EE7a `MatStepper` (Angular Material), KH\u00D4NG ph\u1EA3i output c\u1EE7a\n `<sd-stepper>` \u2014 ph\u1EA3i gi\u1EEF nguy\u00EAn t\u00EAn. Output c\u00F4ng khai c\u1EE7a lib \u0111\u00E3 \u0111\u1ED5i th\u00E0nh `selectionChange`. -->\n<mat-stepper\n class=\"sd-stepper\"\n [(selectedIndex)]=\"selectedIndex\"\n [linear]=\"linear()\"\n [orientation]=\"orientation()\"\n [labelPosition]=\"labelPosition()\"\n [headerPosition]=\"headerPosition()\"\n [animationDuration]=\"animationDuration()\"\n [disableRipple]=\"disableRipple()\"\n (selectionChange)=\"onSelectionChange($event)\">\n @for (step of steps(); track step; let i = $index) {\n <mat-step\n [stepControl]=\"step.stepControl() ?? undefined!\"\n [optional]=\"step.optional()\"\n [editable]=\"step.editable()\"\n [state]=\"step.state() ?? ''\"\n [errorMessage]=\"step.errorMessage() ?? ''\">\n <ng-template matStepLabel>\n <span class=\"sd-step__label\">\n <span class=\"sd-step__text\">{{ step.label() }}</span>\n </span>\n </ng-template>\n\n <ng-template matStepContent>\n <ng-container [ngTemplateOutlet]=\"step.bodyTpl()\"></ng-container>\n </ng-template>\n </mat-step>\n }\n <ng-template matStepperIcon=\"number\" let-index=\"index\">\n @if (steps()[index]?.icon(); as icon) {\n <sd-icon class=\"sd-step__icon\" [name]=\"icon\" size=\"18px\"></sd-icon>\n } @else {\n {{ index + 1 }}\n }\n </ng-template>\n <ng-template matStepperIcon=\"edit\"><sd-icon class=\"sd-step__icon\" name=\"check\" size=\"18px\"></sd-icon></ng-template>\n <ng-template matStepperIcon=\"done\"><sd-icon class=\"sd-step__icon\" name=\"check\" size=\"18px\"></sd-icon></ng-template>\n</mat-stepper>\n", styles: [":host{display:block;--sd-stepper-active-color: var(--sd-primary, #005cbb);--sd-stepper-active-bg: var(--sd-primary, #005cbb);--sd-stepper-completed-color: var(--sd-primary, #005cbb);--sd-stepper-line-active-color: var(--sd-primary, #005cbb);--sd-stepper-error-color: var(--sd-error, #ba1a1a);--sd-stepper-pending-bg: var(--sd-disabled-bg, rgba(26, 27, 31, .08));--sd-stepper-pending-color: var(--sd-disabled-text, rgba(26, 27, 31, .6));--sd-stepper-text-color: var(--sd-text, #1a1b1f)}.sd-step__label{display:inline-flex;align-items:center;gap:4px}.sd-step__icon{font-size:18px;width:18px;height:18px;line-height:18px}.sd-step__text{white-space:nowrap}:host ::ng-deep .mat-step-icon{background-color:var(--sd-stepper-pending-bg);color:var(--sd-stepper-pending-color)}:host ::ng-deep .mat-step-icon-selected{background-color:var(--sd-stepper-active-bg)!important;color:#fff!important}:host ::ng-deep .mat-step-icon-state-done,:host ::ng-deep .mat-step-icon-state-edit{background-color:var(--sd-stepper-completed-color)!important;color:#fff!important}:host ::ng-deep .mat-step-icon-state-error{background-color:var(--sd-stepper-error-color)!important;color:#fff!important}:host ::ng-deep .mat-step-label.mat-step-label-active .mat-step-text-label{color:var(--sd-stepper-text-color);font-weight:500}:host ::ng-deep .mat-step-label-selected .mat-step-text-label{color:var(--sd-stepper-active-color);font-weight:600}:host ::ng-deep .mat-stepper-horizontal-line,:host ::ng-deep .mat-stepper-vertical-line:before{border-color:#0000001f}:host ::ng-deep .mat-step-header.cdk-program-focused,:host ::ng-deep .mat-step-header:hover{background-color:#00000005}:host ::ng-deep .mat-step-icon{width:32px;height:32px;border-radius:8px}:host ::ng-deep .mat-step-icon-state-done,:host ::ng-deep .mat-step-icon-state-edit{background:color-mix(in srgb,var(--sd-stepper-completed-color) 12%,var(--sd-surface, #fff))!important;color:var(--sd-stepper-completed-color)!important}:host ::ng-deep .mat-step-icon-selected{background:var(--sd-stepper-active-bg)!important;color:#fff!important}:host ::ng-deep .mat-step-header{border-radius:8px}:host ::ng-deep .mat-step-header:focus-visible{outline:2px solid var(--sd-stepper-active-color);outline-offset:-2px}:host ::ng-deep .mat-step-label{min-width:0}:host ::ng-deep .mat-horizontal-content-container{padding-bottom:16px}:host ::ng-deep .mat-stepper-horizontal-line{min-width:16px}@media(max-width:600px){:host ::ng-deep .mat-horizontal-stepper-header-container{overflow-x:auto;scrollbar-width:thin}:host ::ng-deep .mat-horizontal-stepper-header{padding:12px;min-height:64px;flex-shrink:0}:host ::ng-deep .mat-horizontal-content-container{padding:0 12px 16px}:host ::ng-deep .mat-vertical-stepper-header{padding:16px 12px}:host ::ng-deep .mat-vertical-content-container{margin-left:28px}:host ::ng-deep .sd-step__text{white-space:normal;overflow-wrap:anywhere}:host ::ng-deep .mat-vertical-stepper-header .mat-step-label{white-space:normal}}@media(prefers-reduced-motion:reduce){:host ::ng-deep .mat-stepper-horizontal-line,:host ::ng-deep .mat-horizontal-content-container,:host ::ng-deep .mat-horizontal-stepper-content,:host ::ng-deep .mat-vertical-content-container{transition:none!important;animation:none!important}}\n"] }]
135
+ args: [{ selector: 'sd-stepper', standalone: true, imports: [SdIcon, MatStepperModule, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- why: `(selectionChange)` b\u00EAn d\u01B0\u1EDBi l\u00E0 output c\u1EE7a `MatStepper` (Angular Material), KH\u00D4NG ph\u1EA3i output c\u1EE7a\n `<sd-stepper>` \u2014 ph\u1EA3i gi\u1EEF nguy\u00EAn t\u00EAn. Output c\u00F4ng khai c\u1EE7a lib \u0111\u00E3 \u0111\u1ED5i th\u00E0nh `selectionChange`. -->\n<mat-stepper\n class=\"sd-stepper\"\n [(selectedIndex)]=\"selectedIndex\"\n [linear]=\"linear()\"\n [orientation]=\"orientation()\"\n [labelPosition]=\"labelPosition()\"\n [headerPosition]=\"headerPosition()\"\n [animationDuration]=\"animationDuration()\"\n [disableRipple]=\"disableRipple()\"\n (selectionChange)=\"onSelectionChange($event)\">\n @for (step of steps(); track step; let i = $index) {\n <mat-step\n [stepControl]=\"step.stepControl() ?? undefined!\"\n [optional]=\"step.optional()\"\n [editable]=\"step.editable()\"\n [state]=\"step.state() ?? ''\"\n [errorMessage]=\"step.errorMessage() ?? ''\">\n <ng-template matStepLabel>\n <span class=\"sd-step__label\">\n <span class=\"sd-step__text\">{{ step.label() }}</span>\n </span>\n </ng-template>\n\n <ng-template matStepContent>\n <ng-container [ngTemplateOutlet]=\"step.bodyTpl()\"></ng-container>\n </ng-template>\n </mat-step>\n }\n <ng-template matStepperIcon=\"number\" let-index=\"index\">\n @if (steps()[index]?.icon(); as icon) {\n <sd-icon class=\"sd-step__icon\" [name]=\"icon\" size=\"18px\"></sd-icon>\n } @else {\n {{ index + 1 }}\n }\n </ng-template>\n <ng-template matStepperIcon=\"edit\"><sd-icon class=\"sd-step__icon\" name=\"check\" size=\"18px\"></sd-icon></ng-template>\n <ng-template matStepperIcon=\"done\"><sd-icon class=\"sd-step__icon\" name=\"check\" size=\"18px\"></sd-icon></ng-template>\n</mat-stepper>\n", styles: [":host{display:block;--sd-stepper-active-color: var(--sd-primary, #005cbb);--sd-stepper-active-bg: var(--sd-primary, #005cbb);--sd-stepper-active-contrast: var(--sd-primary-contrast, #ffffff);--sd-stepper-completed-bg: var(--sd-primary-light, #d7e3ff);--sd-stepper-line-color: var(--sd-border, rgba(0, 0, 0, .12));--sd-stepper-completed-color: var(--sd-primary, #005cbb);--sd-stepper-line-active-color: var(--sd-primary, #005cbb);--sd-stepper-error-color: var(--sd-error, #ba1a1a);--sd-stepper-pending-bg: var(--sd-disabled-bg, rgba(26, 27, 31, .08));--sd-stepper-pending-color: var(--sd-disabled-text, rgba(26, 27, 31, .6));--sd-stepper-text-color: var(--sd-text, #1a1b1f)}.sd-step__label{display:inline-flex;align-items:center;gap:4px}.sd-step__icon{font-size:18px;width:18px;height:18px;line-height:18px}.sd-step__text{white-space:nowrap}:host ::ng-deep .mat-step-icon{background-color:var(--sd-stepper-pending-bg);color:var(--sd-stepper-pending-color)}:host ::ng-deep .mat-step-icon-state-done,:host ::ng-deep .mat-step-icon-state-edit{background-color:var(--sd-stepper-completed-bg)!important;color:var(--sd-stepper-completed-color)!important}:host ::ng-deep .mat-step-icon-selected{background-color:var(--sd-stepper-active-bg)!important;color:var(--sd-stepper-active-contrast)!important}:host ::ng-deep .mat-step-icon-state-error{background-color:var(--sd-error-light, #ffdad6)!important;color:var(--sd-stepper-error-color)!important}:host ::ng-deep .mat-step-label.mat-step-label-active .mat-step-text-label{color:var(--sd-stepper-text-color);font-weight:500}:host ::ng-deep .mat-step-label.mat-step-label-selected .mat-step-text-label{color:var(--sd-stepper-active-color);font-weight:600}:host ::ng-deep .mat-stepper-horizontal-line,:host ::ng-deep .mat-stepper-vertical-line:before,:host ::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:before,:host ::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:after{border-color:var(--sd-stepper-line-color)}:host ::ng-deep .mat-stepper-label-position-bottom .mat-stepper-horizontal-line,:host ::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:before,:host ::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:after{top:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2 + 16px)}:host ::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:before,:host ::ng-deep .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:after{width:calc(50% - 24px)}:host ::ng-deep .mat-step-header.cdk-program-focused,:host ::ng-deep .mat-step-header:hover{background-color:#00000005}:host ::ng-deep .mat-step-icon{width:32px;height:32px;border-radius:50%}:host ::ng-deep .mat-step-header{border-radius:8px}:host ::ng-deep .mat-step-header:focus-visible{outline:2px solid var(--sd-stepper-active-color);outline-offset:-2px}:host ::ng-deep .mat-step-label{min-width:0}:host ::ng-deep .mat-horizontal-content-container{padding-bottom:16px}:host ::ng-deep .mat-stepper-horizontal-line{min-width:16px}@media(max-width:600px){:host ::ng-deep .mat-horizontal-stepper-header-container{overflow-x:auto;scrollbar-width:thin}:host ::ng-deep .mat-horizontal-stepper-header{padding:12px;min-height:64px;flex-shrink:0}:host ::ng-deep .mat-horizontal-content-container{padding:0 12px 16px}:host ::ng-deep .mat-vertical-stepper-header{padding:16px 12px}:host ::ng-deep .mat-vertical-content-container{margin-left:28px}:host ::ng-deep .sd-step__text{white-space:normal;overflow-wrap:anywhere}:host ::ng-deep .mat-vertical-stepper-header .mat-step-label{white-space:normal}}@media(prefers-reduced-motion:reduce){:host ::ng-deep .mat-stepper-horizontal-line,:host ::ng-deep .mat-horizontal-content-container,:host ::ng-deep .mat-horizontal-stepper-content,:host ::ng-deep .mat-vertical-content-container{transition:none!important;animation:none!important}}\n"] }]
130
136
  }], ctorParameters: () => [], propDecorators: { steps: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdStep), { isSignal: true }] }], selectedIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIndex", required: false }] }, { type: i0.Output, args: ["selectedIndexChange"] }], linear: [{ type: i0.Input, args: [{ isSignal: true, alias: "linear", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], headerPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerPosition", required: false }] }], animationDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "animationDuration", required: false }] }], disableRipple: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableRipple", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], autoId: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }], matStepper: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatStepper), { isSignal: true }] }], autoIdAttr: [{
131
137
  type: HostBinding,
132
138
  args: ['attr.data-autoId']
@@ -136,6 +142,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
136
142
  }], cssActiveBg: [{
137
143
  type: HostBinding,
138
144
  args: ['style.--sd-stepper-active-bg']
145
+ }], cssActiveContrast: [{
146
+ type: HostBinding,
147
+ args: ['style.--sd-stepper-active-contrast']
148
+ }], cssCompletedBg: [{
149
+ type: HostBinding,
150
+ args: ['style.--sd-stepper-completed-bg']
139
151
  }], cssCompleted: [{
140
152
  type: HostBinding,
141
153
  args: ['style.--sd-stepper-completed-color']
@@ -1 +1 @@
1
- {"version":3,"file":"sdcorejs-angular-components-stepper.mjs","sources":["../../../projects/sdcorejs-angular/components/stepper/src/step.component.ts","../../../projects/sdcorejs-angular/components/stepper/src/stepper.component.ts","../../../projects/sdcorejs-angular/components/stepper/src/stepper.component.html","../../../projects/sdcorejs-angular/components/stepper/sdcorejs-angular-components-stepper.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, input, output, TemplateRef, viewChild } from '@angular/core';\nimport { AbstractControl } from '@angular/forms';\n\nexport type SdStepState = 'pending' | 'active' | 'completed' | 'error' | string;\n\n@Component({\n selector: 'sd-step',\n standalone: true,\n // why: identical pattern to <sd-tab> — capture projected content via #body\n // template ref so <sd-stepper> can render it inside mat-step's matStepContent\n // (lazy mount + animation-friendly).\n template: `<ng-template #body><ng-content></ng-content></ng-template>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SdStep {\n label = input.required<string>();\n // Optional Material icon name shown when the step is in 'pending' state\n // (overrides the default numbered indicator).\n icon = input<string | null | undefined>(undefined);\n // Set true to mark the step skippable in linear mode.\n optional = input(false, { transform: booleanAttribute });\n // When false, user cannot return to this step after it's been completed.\n editable = input(true, { transform: booleanAttribute });\n // Reactive form / control. When the stepper is linear, the user can only\n // proceed past this step once stepControl.valid is true.\n stepControl = input<AbstractControl | null | undefined>(undefined);\n // Override the auto-derived state (eg force 'error' from outside on async validation).\n state = input<SdStepState | undefined>(undefined);\n // Error message rendered next to the step header when state is 'error'.\n errorMessage = input<string | undefined>(undefined);\n\n // Emitted when this step transitions to selected.\n selectChange = output<void>();\n\n // Body template captured from projected <ng-content>.\n bodyTpl = viewChild.required<TemplateRef<unknown>>('body');\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n contentChildren,\n effect,\n HostBinding,\n input,\n model,\n output,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { StepperSelectionEvent } from '@angular/cdk/stepper';\nimport { MatStepperModule, MatStepper } from '@angular/material/stepper';\nimport { Color } from '@sdcorejs/utils/models';\nimport { SdStep } from './step.component';\nimport { SdIcon } from '@sdcorejs/angular/modules/icon';\n\n@Component({\n selector: 'sd-stepper',\n standalone: true,\n imports: [SdIcon, MatStepperModule, NgTemplateOutlet],\n templateUrl: './stepper.component.html',\n styleUrl: './stepper.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SdStepper {\n steps = contentChildren(SdStep);\n\n selectedIndex = model<number>(0);\n // why: enforce sequential gating — only valid steps unlock the next.\n linear = input(false, { transform: booleanAttribute });\n orientation = input<'horizontal' | 'vertical'>('horizontal');\n labelPosition = input<'end' | 'bottom'>('end');\n headerPosition = input<'top' | 'bottom'>('top');\n animationDuration = input<string>('500ms');\n disableRipple = input(false, { transform: booleanAttribute });\n // Drives the Core color CSS vars on indicators / connector / line.\n color = input<Color>('primary');\n autoId = input<string | undefined>(undefined);\n\n // Emits {previousIndex, selectedIndex, previousStep, selectedStep}.\n selectionChange = output<StepperSelectionEvent>();\n\n protected matStepper = viewChild(MatStepper);\n\n @HostBinding('attr.data-autoId') get autoIdAttr(): string | null {\n return this.autoId() ?? null;\n }\n\n // Core color CSS vars — same mechanism as <sd-tab-group>.\n @HostBinding('style.--sd-stepper-active-color') get cssActive(): string {\n return `var(--sd-${this.color()})`;\n }\n @HostBinding('style.--sd-stepper-active-bg') get cssActiveBg(): string {\n return `var(--sd-${this.color()})`;\n }\n @HostBinding('style.--sd-stepper-completed-color') get cssCompleted(): string {\n return `var(--sd-${this.color()})`;\n }\n @HostBinding('style.--sd-stepper-line-active-color') get cssLine(): string {\n return `var(--sd-${this.color()})`;\n }\n\n constructor() {\n // why: clamp selectedIndex when a step is removed past the active one.\n effect(() => {\n const len = this.steps().length;\n const cur = untracked(() => this.selectedIndex());\n if (len > 0 && cur >= len) {\n this.selectedIndex.set(Math.max(0, len - 1));\n }\n });\n }\n\n next(): void {\n this.matStepper()?.next();\n }\n\n previous(): void {\n this.matStepper()?.previous();\n }\n\n reset(): void {\n this.matStepper()?.reset();\n }\n\n goTo(index: number): void {\n const len = this.steps().length;\n if (len === 0) {\n this.selectedIndex.set(0);\n return;\n }\n this.selectedIndex.set(Math.max(0, Math.min(index, len - 1)));\n }\n\n protected onSelectionChange(ev: StepperSelectionEvent): void {\n this.selectionChange.emit(ev);\n // Forward to each step that just became selected so consumer can react.\n const step = this.steps()[ev.selectedIndex];\n step?.selectChange.emit();\n }\n}\n","<!-- why: `(selectionChange)` bên dưới là output của `MatStepper` (Angular Material), KHÔNG phải output của\n `<sd-stepper>` — phải giữ nguyên tên. Output công khai của lib đã đổi thành `selectionChange`. -->\n<mat-stepper\n class=\"sd-stepper\"\n [(selectedIndex)]=\"selectedIndex\"\n [linear]=\"linear()\"\n [orientation]=\"orientation()\"\n [labelPosition]=\"labelPosition()\"\n [headerPosition]=\"headerPosition()\"\n [animationDuration]=\"animationDuration()\"\n [disableRipple]=\"disableRipple()\"\n (selectionChange)=\"onSelectionChange($event)\">\n @for (step of steps(); track step; let i = $index) {\n <mat-step\n [stepControl]=\"step.stepControl() ?? undefined!\"\n [optional]=\"step.optional()\"\n [editable]=\"step.editable()\"\n [state]=\"step.state() ?? ''\"\n [errorMessage]=\"step.errorMessage() ?? ''\">\n <ng-template matStepLabel>\n <span class=\"sd-step__label\">\n <span class=\"sd-step__text\">{{ step.label() }}</span>\n </span>\n </ng-template>\n\n <ng-template matStepContent>\n <ng-container [ngTemplateOutlet]=\"step.bodyTpl()\"></ng-container>\n </ng-template>\n </mat-step>\n }\n <ng-template matStepperIcon=\"number\" let-index=\"index\">\n @if (steps()[index]?.icon(); as icon) {\n <sd-icon class=\"sd-step__icon\" [name]=\"icon\" size=\"18px\"></sd-icon>\n } @else {\n {{ index + 1 }}\n }\n </ng-template>\n <ng-template matStepperIcon=\"edit\"><sd-icon class=\"sd-step__icon\" name=\"check\" size=\"18px\"></sd-icon></ng-template>\n <ng-template matStepperIcon=\"done\"><sd-icon class=\"sd-step__icon\" name=\"check\" size=\"18px\"></sd-icon></ng-template>\n</mat-stepper>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAca,MAAM,CAAA;IACjB,KAAK,GAAG,KAAK,CAAC,QAAQ;8EAAU;;;IAGhC,IAAI,GAAG,KAAK,CAA4B,SAAS;6EAAC;;IAElD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gB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WAAW;uBAAC,oCAAoC;;sBAGhD,WAAW;uBAAC,sCAAsC;;;AE9DrD;;AAEG;;"}
1
+ {"version":3,"file":"sdcorejs-angular-components-stepper.mjs","sources":["../../../projects/sdcorejs-angular/components/stepper/src/step.component.ts","../../../projects/sdcorejs-angular/components/stepper/src/stepper.component.ts","../../../projects/sdcorejs-angular/components/stepper/src/stepper.component.html","../../../projects/sdcorejs-angular/components/stepper/sdcorejs-angular-components-stepper.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, input, output, TemplateRef, viewChild } from '@angular/core';\nimport { AbstractControl } from '@angular/forms';\n\nexport type SdStepState = 'pending' | 'active' | 'completed' | 'error' | string;\n\n@Component({\n selector: 'sd-step',\n standalone: true,\n // why: identical pattern to <sd-tab> — capture projected content via #body\n // template ref so <sd-stepper> can render it inside mat-step's matStepContent\n // (lazy mount + animation-friendly).\n template: `<ng-template #body><ng-content></ng-content></ng-template>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SdStep {\n label = input.required<string>();\n // Optional Material icon name shown when the step is in 'pending' state\n // (overrides the default numbered indicator).\n icon = input<string | null | undefined>(undefined);\n // Set true to mark the step skippable in linear mode.\n optional = input(false, { transform: booleanAttribute });\n // When false, user cannot return to this step after it's been completed.\n editable = input(true, { transform: booleanAttribute });\n // Reactive form / control. When the stepper is linear, the user can only\n // proceed past this step once stepControl.valid is true.\n stepControl = input<AbstractControl | null | undefined>(undefined);\n // Override the auto-derived state (eg force 'error' from outside on async validation).\n state = input<SdStepState | undefined>(undefined);\n // Error message rendered next to the step header when state is 'error'.\n errorMessage = input<string | undefined>(undefined);\n\n // Emitted when this step transitions to selected.\n selectChange = output<void>();\n\n // Body template captured from projected <ng-content>.\n bodyTpl = viewChild.required<TemplateRef<unknown>>('body');\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n contentChildren,\n effect,\n HostBinding,\n input,\n model,\n output,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { StepperSelectionEvent } from '@angular/cdk/stepper';\nimport { MatStepperModule, MatStepper } from '@angular/material/stepper';\nimport { Color } from '@sdcorejs/utils/models';\nimport { SdStep } from './step.component';\nimport { SdIcon } from '@sdcorejs/angular/modules/icon';\n\n@Component({\n selector: 'sd-stepper',\n standalone: true,\n imports: [SdIcon, MatStepperModule, NgTemplateOutlet],\n templateUrl: './stepper.component.html',\n styleUrl: './stepper.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SdStepper {\n steps = contentChildren(SdStep);\n\n selectedIndex = model<number>(0);\n // why: enforce sequential gating — only valid steps unlock the next.\n linear = input(false, { transform: booleanAttribute });\n orientation = input<'horizontal' | 'vertical'>('horizontal');\n labelPosition = input<'end' | 'bottom'>('end');\n headerPosition = input<'top' | 'bottom'>('top');\n animationDuration = input<string>('500ms');\n disableRipple = input(false, { transform: booleanAttribute });\n // Drives the Core color CSS vars on indicators / connector / line.\n color = input<Color>('primary');\n autoId = input<string | undefined>(undefined);\n\n // Emits {previousIndex, selectedIndex, previousStep, selectedStep}.\n selectionChange = output<StepperSelectionEvent>();\n\n protected matStepper = viewChild(MatStepper);\n\n @HostBinding('attr.data-autoId') get autoIdAttr(): string | null {\n return this.autoId() ?? null;\n }\n\n // Core color CSS vars — same mechanism as <sd-tab-group>.\n @HostBinding('style.--sd-stepper-active-color') get cssActive(): string {\n return `var(--sd-${this.color()})`;\n }\n @HostBinding('style.--sd-stepper-active-bg') get cssActiveBg(): string {\n return `var(--sd-${this.color()})`;\n }\n @HostBinding('style.--sd-stepper-active-contrast') get cssActiveContrast(): string {\n return `var(--sd-${this.color()}-contrast)`;\n }\n @HostBinding('style.--sd-stepper-completed-bg') get cssCompletedBg(): string {\n return `var(--sd-${this.color()}-light)`;\n }\n @HostBinding('style.--sd-stepper-completed-color') get cssCompleted(): string {\n return `var(--sd-${this.color()})`;\n }\n @HostBinding('style.--sd-stepper-line-active-color') get cssLine(): string {\n return `var(--sd-${this.color()})`;\n }\n\n constructor() {\n // why: clamp selectedIndex when a step is removed past the active one.\n effect(() => {\n const len = this.steps().length;\n const cur = untracked(() => this.selectedIndex());\n if (len > 0 && cur >= len) {\n this.selectedIndex.set(Math.max(0, len - 1));\n }\n });\n }\n\n next(): void {\n this.matStepper()?.next();\n }\n\n previous(): void {\n this.matStepper()?.previous();\n }\n\n reset(): void {\n this.matStepper()?.reset();\n }\n\n goTo(index: number): void {\n const len = this.steps().length;\n if (len === 0) {\n this.selectedIndex.set(0);\n return;\n }\n this.selectedIndex.set(Math.max(0, Math.min(index, len - 1)));\n }\n\n protected onSelectionChange(ev: StepperSelectionEvent): void {\n this.selectionChange.emit(ev);\n // Forward to each step that just became selected so consumer can react.\n const step = this.steps()[ev.selectedIndex];\n step?.selectChange.emit();\n }\n}\n","<!-- why: `(selectionChange)` bên dưới là output của `MatStepper` (Angular Material), KHÔNG phải output của\n `<sd-stepper>` — phải giữ nguyên tên. Output công khai của lib đã đổi thành `selectionChange`. -->\n<mat-stepper\n class=\"sd-stepper\"\n [(selectedIndex)]=\"selectedIndex\"\n [linear]=\"linear()\"\n [orientation]=\"orientation()\"\n [labelPosition]=\"labelPosition()\"\n [headerPosition]=\"headerPosition()\"\n [animationDuration]=\"animationDuration()\"\n [disableRipple]=\"disableRipple()\"\n (selectionChange)=\"onSelectionChange($event)\">\n @for (step of steps(); track step; let i = $index) {\n <mat-step\n [stepControl]=\"step.stepControl() ?? undefined!\"\n [optional]=\"step.optional()\"\n [editable]=\"step.editable()\"\n [state]=\"step.state() ?? ''\"\n [errorMessage]=\"step.errorMessage() ?? ''\">\n <ng-template matStepLabel>\n <span class=\"sd-step__label\">\n <span class=\"sd-step__text\">{{ step.label() }}</span>\n </span>\n </ng-template>\n\n <ng-template matStepContent>\n <ng-container [ngTemplateOutlet]=\"step.bodyTpl()\"></ng-container>\n </ng-template>\n </mat-step>\n }\n <ng-template matStepperIcon=\"number\" let-index=\"index\">\n @if (steps()[index]?.icon(); as icon) {\n <sd-icon class=\"sd-step__icon\" [name]=\"icon\" size=\"18px\"></sd-icon>\n } @else {\n {{ index + 1 }}\n }\n </ng-template>\n <ng-template matStepperIcon=\"edit\"><sd-icon class=\"sd-step__icon\" name=\"check\" size=\"18px\"></sd-icon></ng-template>\n <ng-template matStepperIcon=\"done\"><sd-icon class=\"sd-step__icon\" name=\"check\" size=\"18px\"></sd-icon></ng-template>\n</mat-stepper>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAca,MAAM,CAAA;IACjB,KAAK,GAAG,KAAK,CAAC,QAAQ;8EAAU;;;IAGhC,IAAI,GAAG,KAAK,CAA4B,SAAS;6EAAC;;IAElD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;;IAGvD,WAAW,GAAG,KAAK,CAAqC,SAAS;oFAAC;;IAElE,KAAK,GAAG,KAAK,CAA0B,SAAS;8EAAC;;IAEjD,YAAY,GAAG,KAAK,CAAqB,SAAS;qFAAC;;IAGnD,YAAY,GAAG,MAAM,EAAQ;;AAG7B,IAAA,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAuB,MAAM;gFAAC;uGArB/C,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAN,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAM,wmCAHP,CAAA,0DAAA,CAA4D,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAG3D,MAAM,EAAA,UAAA,EAAA,CAAA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BAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAKzC,SAAS,EAAA,UAAA,EAAA,CAAA;kBARrB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EAAA,UAAA,EACV,IAAI,EAAA,OAAA,EACP,CAAC,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAGpC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qyDAAA,EAAA,MAAA,EAAA,CAAA,w0HAAA,CAAA,EAAA;AAGvB,SAAA,CAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,cAAA,EAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,MAAM,omCAiBG,UAAU,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA;sBAE1C,WAAW;uBAAC,kBAAkB;;sBAK9B,WAAW;uBAAC,iCAAiC;;sBAG7C,WAAW;uBAAC,8BAA8B;;sBAG1C,WAAW;uBAAC,oCAAoC;;sBAGhD,WAAW;uBAAC,iCAAiC;;sBAG7C,WAAW;uBAAC,oCAAoC;;sBAGhD,WAAW;uBAAC,sCAAsC;;;AEpErD;;AAEG;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdcorejs/angular",
3
- "version": "22.2.11",
3
+ "version": "22.2.12",
4
4
  "description": "Angular component library: data table, query bar/builder, 20+ signal-based form controls, layout, auth and workflow services. Standalone, OnPush, signals-first. Published in parallel lines for Angular 19, 20, 21 and 22.",
5
5
  "keywords": [
6
6
  "angular",
@@ -36,6 +36,8 @@ declare class SdStepper {
36
36
  get autoIdAttr(): string | null;
37
37
  get cssActive(): string;
38
38
  get cssActiveBg(): string;
39
+ get cssActiveContrast(): string;
40
+ get cssCompletedBg(): string;
39
41
  get cssCompleted(): string;
40
42
  get cssLine(): string;
41
43
  constructor();