@quadrel-enterprise-ui/framework 21.16.0 → 21.17.1

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.
@@ -11840,11 +11840,11 @@ class QdFormOptionsListComponent {
11840
11840
  this.optionSelected.emit(option);
11841
11841
  }
11842
11842
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdFormOptionsListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
11843
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdFormOptionsListComponent, isStandalone: false, selector: "qd-form-options-list", inputs: { id: "id", options: "options", radioName: "radioName", testId: ["data-test-id", "testId"] }, outputs: { optionSelected: "optionSelected" }, viewQueries: [{ propertyName: "optionComponents", predicate: QdFormOptionItemComponent, descendants: true }], ngImport: i0, template: "<ng-content select=\"[qdFormOptionsListHeader]\"></ng-content>\n\n<div role=\"listbox\">\n @for (option of options; track option) {\n <div class=\"qd-option\" [class.qd-option-disabled]=\"option.disabled\">\n <qd-form-option-item\n role=\"option\"\n class=\"qd-option-item\"\n [option]=\"option\"\n [attr.aria-disabled]=\"option.disabled || null\"\n [attr.data-test-id]=\"testId + '-option-' + (option.value || '-')\"\n (click)=\"selectOption(option)\"\n >\n <input\n class=\"qd-option-input\"\n type=\"radio\"\n [name]=\"radioName\"\n [disabled]=\"option.disabled\"\n [value]=\"option.value\"\n [attr.id]=\"id ? option.value + '-' + id : null\"\n [attr.data-test-id]=\"testId + '-radio-' + (option.value || '-')\"\n />\n <label\n class=\"qd-option-label\"\n [attr.for]=\"id ? option.value + '-' + id : null\"\n [attr.data-test-id]=\"testId + '-label-' + (option.value || '-')\"\n >\n {{ option | qdFormOptionLabel }}\n </label>\n </qd-form-option-item>\n </div>\n }\n</div>\n\n<ng-content select=\"[qdFormOptionsListStatus]\"></ng-content>\n", styles: [".qd-option{background:#fff}.qd-option .qd-option-item{display:flex;min-height:2.25rem;align-items:center;padding-top:.5rem;padding-bottom:.5rem;padding-left:.75rem;color:#454545;cursor:pointer;font-size:.875rem;font-weight:400;line-height:1.4}.qd-option .qd-option-item:focus,.qd-option .qd-option-item:hover,.qd-option .qd-option-item.active{background:#f5f5f5;color:#171717}.qd-option .qd-option-input{display:none}.qd-option .qd-option-input:checked+label{background:#f5f5f5;color:#171717}.qd-option .qd-option-label{padding-right:1.25rem;cursor:pointer;overflow-wrap:anywhere}.qd-option.qd-option-disabled>.qd-option-item{color:#b4b4b4;cursor:default;pointer-events:none}\n"], dependencies: [{ kind: "component", type: QdFormOptionItemComponent, selector: "qd-form-option-item", inputs: ["option"] }, { kind: "pipe", type: QdFormOptionLabelPipe, name: "qdFormOptionLabel" }] });
11843
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdFormOptionsListComponent, isStandalone: false, selector: "qd-form-options-list", inputs: { id: "id", options: "options", radioName: "radioName", testId: ["data-test-id", "testId"] }, outputs: { optionSelected: "optionSelected" }, host: { properties: { "attr.data-test-id": "testId + \"-options\"" } }, viewQueries: [{ propertyName: "optionComponents", predicate: QdFormOptionItemComponent, descendants: true }], ngImport: i0, template: "<ng-content select=\"[qdFormOptionsListHeader]\"></ng-content>\n\n<div role=\"listbox\">\n @for (option of options; track option) {\n <div class=\"qd-option\" [class.qd-option-disabled]=\"option.disabled\">\n <qd-form-option-item\n role=\"option\"\n class=\"qd-option-item\"\n [option]=\"option\"\n [attr.aria-disabled]=\"option.disabled || null\"\n [attr.data-test-id]=\"testId + '-option-' + (option.value || '-')\"\n (click)=\"selectOption(option)\"\n >\n <input\n class=\"qd-option-input\"\n type=\"radio\"\n [name]=\"radioName\"\n [disabled]=\"option.disabled\"\n [value]=\"option.value\"\n [attr.id]=\"id ? option.value + '-' + id : null\"\n [attr.data-test-id]=\"testId + '-radio-' + (option.value || '-')\"\n />\n <label\n class=\"qd-option-label\"\n [attr.for]=\"id ? option.value + '-' + id : null\"\n [attr.data-test-id]=\"testId + '-label-' + (option.value || '-')\"\n >\n {{ option | qdFormOptionLabel }}\n </label>\n </qd-form-option-item>\n </div>\n }\n</div>\n\n<ng-content select=\"[qdFormOptionsListStatus]\"></ng-content>\n", styles: [".qd-option{background:#fff}.qd-option .qd-option-item{display:flex;min-height:2.25rem;align-items:center;padding-top:.5rem;padding-bottom:.5rem;padding-left:.75rem;color:#454545;cursor:pointer;font-size:.875rem;font-weight:400;line-height:1.4}.qd-option .qd-option-item:focus,.qd-option .qd-option-item:hover,.qd-option .qd-option-item.active{background:#f5f5f5;color:#171717}.qd-option .qd-option-input{display:none}.qd-option .qd-option-input:checked+label{background:#f5f5f5;color:#171717}.qd-option .qd-option-label{padding-right:1.25rem;cursor:pointer;overflow-wrap:anywhere}.qd-option.qd-option-disabled>.qd-option-item{color:#b4b4b4;cursor:default;pointer-events:none}\n"], dependencies: [{ kind: "component", type: QdFormOptionItemComponent, selector: "qd-form-option-item", inputs: ["option"] }, { kind: "pipe", type: QdFormOptionLabelPipe, name: "qdFormOptionLabel" }] });
11844
11844
  }
11845
11845
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdFormOptionsListComponent, decorators: [{
11846
11846
  type: Component,
11847
- args: [{ selector: 'qd-form-options-list', standalone: false, template: "<ng-content select=\"[qdFormOptionsListHeader]\"></ng-content>\n\n<div role=\"listbox\">\n @for (option of options; track option) {\n <div class=\"qd-option\" [class.qd-option-disabled]=\"option.disabled\">\n <qd-form-option-item\n role=\"option\"\n class=\"qd-option-item\"\n [option]=\"option\"\n [attr.aria-disabled]=\"option.disabled || null\"\n [attr.data-test-id]=\"testId + '-option-' + (option.value || '-')\"\n (click)=\"selectOption(option)\"\n >\n <input\n class=\"qd-option-input\"\n type=\"radio\"\n [name]=\"radioName\"\n [disabled]=\"option.disabled\"\n [value]=\"option.value\"\n [attr.id]=\"id ? option.value + '-' + id : null\"\n [attr.data-test-id]=\"testId + '-radio-' + (option.value || '-')\"\n />\n <label\n class=\"qd-option-label\"\n [attr.for]=\"id ? option.value + '-' + id : null\"\n [attr.data-test-id]=\"testId + '-label-' + (option.value || '-')\"\n >\n {{ option | qdFormOptionLabel }}\n </label>\n </qd-form-option-item>\n </div>\n }\n</div>\n\n<ng-content select=\"[qdFormOptionsListStatus]\"></ng-content>\n", styles: [".qd-option{background:#fff}.qd-option .qd-option-item{display:flex;min-height:2.25rem;align-items:center;padding-top:.5rem;padding-bottom:.5rem;padding-left:.75rem;color:#454545;cursor:pointer;font-size:.875rem;font-weight:400;line-height:1.4}.qd-option .qd-option-item:focus,.qd-option .qd-option-item:hover,.qd-option .qd-option-item.active{background:#f5f5f5;color:#171717}.qd-option .qd-option-input{display:none}.qd-option .qd-option-input:checked+label{background:#f5f5f5;color:#171717}.qd-option .qd-option-label{padding-right:1.25rem;cursor:pointer;overflow-wrap:anywhere}.qd-option.qd-option-disabled>.qd-option-item{color:#b4b4b4;cursor:default;pointer-events:none}\n"] }]
11847
+ args: [{ selector: 'qd-form-options-list', host: { '[attr.data-test-id]': 'testId + "-options"' }, standalone: false, template: "<ng-content select=\"[qdFormOptionsListHeader]\"></ng-content>\n\n<div role=\"listbox\">\n @for (option of options; track option) {\n <div class=\"qd-option\" [class.qd-option-disabled]=\"option.disabled\">\n <qd-form-option-item\n role=\"option\"\n class=\"qd-option-item\"\n [option]=\"option\"\n [attr.aria-disabled]=\"option.disabled || null\"\n [attr.data-test-id]=\"testId + '-option-' + (option.value || '-')\"\n (click)=\"selectOption(option)\"\n >\n <input\n class=\"qd-option-input\"\n type=\"radio\"\n [name]=\"radioName\"\n [disabled]=\"option.disabled\"\n [value]=\"option.value\"\n [attr.id]=\"id ? option.value + '-' + id : null\"\n [attr.data-test-id]=\"testId + '-radio-' + (option.value || '-')\"\n />\n <label\n class=\"qd-option-label\"\n [attr.for]=\"id ? option.value + '-' + id : null\"\n [attr.data-test-id]=\"testId + '-label-' + (option.value || '-')\"\n >\n {{ option | qdFormOptionLabel }}\n </label>\n </qd-form-option-item>\n </div>\n }\n</div>\n\n<ng-content select=\"[qdFormOptionsListStatus]\"></ng-content>\n", styles: [".qd-option{background:#fff}.qd-option .qd-option-item{display:flex;min-height:2.25rem;align-items:center;padding-top:.5rem;padding-bottom:.5rem;padding-left:.75rem;color:#454545;cursor:pointer;font-size:.875rem;font-weight:400;line-height:1.4}.qd-option .qd-option-item:focus,.qd-option .qd-option-item:hover,.qd-option .qd-option-item.active{background:#f5f5f5;color:#171717}.qd-option .qd-option-input{display:none}.qd-option .qd-option-input:checked+label{background:#f5f5f5;color:#171717}.qd-option .qd-option-label{padding-right:1.25rem;cursor:pointer;overflow-wrap:anywhere}.qd-option.qd-option-disabled>.qd-option-item{color:#b4b4b4;cursor:default;pointer-events:none}\n"] }]
11848
11848
  }], propDecorators: { id: [{
11849
11849
  type: Input
11850
11850
  }], options: [{
@@ -33610,6 +33610,12 @@ class QdPageStepHeaderComponent extends CdkStepHeader {
33610
33610
  optional;
33611
33611
  /** Whether the given step is not editable and completed. */
33612
33612
  locked;
33613
+ /**
33614
+ * A static test ID for integration tests can be set.
33615
+ */
33616
+ testId;
33617
+ /** The name-based test ID of the caption. Only set for a named step. */
33618
+ captionTestId;
33613
33619
  get stepNumber() {
33614
33620
  return this.index + 1;
33615
33621
  }
@@ -33618,11 +33624,12 @@ class QdPageStepHeaderComponent extends CdkStepHeader {
33618
33624
  super(elementRef);
33619
33625
  }
33620
33626
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdPageStepHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
33621
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: QdPageStepHeaderComponent, isStandalone: true, selector: "qd-page-step-header", inputs: { state: "state", label: "label", index: "index", selected: "selected", active: "active", optional: "optional", locked: "locked" }, host: { properties: { "class.qd-step": "true", "class.qd-step-active": "active", "class.qd-step-current": "selected", "class.qd-step-disabled": "locked", "class.qd-step-done": "state === STEP_STATE.DONE", "class.qd-step-edit": "state === STEP_STATE.EDIT", "class.qd-step-error": "state === STEP_STATE.ERROR" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"qd-step-number\">{{ stepNumber }}</div>\n<span class=\"qd-step-caption\">{{ label }}</span>\n", styles: [":host{color:#757575;font-size:14px;font-weight:400;line-height:18px;position:relative;display:inline-flex;height:3.5rem;flex-grow:1000;padding:.625rem 0}:host:not(:last-child):after{min-width:1.25rem;height:.0625rem;flex-grow:1;margin-top:.9375rem;margin-left:.3125rem;background-color:#d5d5d5;content:\"\"}:host:last-child{overflow:visible;flex-grow:1;margin-right:0;white-space:nowrap}:host .qd-step-number{display:inline-block;width:2rem;height:2rem;flex-shrink:0;border:rgb(151,151,151) .125rem solid;border-radius:100%;background-color:#fff;color:#979797;font-weight:500;line-height:1.75rem;text-align:center}:host .qd-step-caption{margin-left:.5rem;color:#979797;font-weight:500;line-height:2rem}:host.qd-step-active{cursor:pointer}:host.qd-step-active.qd-step-current .qd-step-number{position:relative;border-color:#069;background-color:#069;color:#fff}:host.qd-step-active.qd-step-current .qd-step-number:after{position:absolute;top:2.625rem;left:-.125rem;display:inline-block;width:2rem;height:.25rem;background-color:#069;content:\"\"}:host.qd-step-active.qd-step-current .qd-step-caption{color:#069}:host.qd-step-done .qd-step-number,:host.qd-step-edit .qd-step-number{border-color:#171717;background-color:#fff;color:#171717}:host.qd-step-done .qd-step-caption,:host.qd-step-edit .qd-step-caption{color:#171717}:host.qd-step-error{cursor:pointer}:host.qd-step-error .qd-step-number{border-color:#c70023;background-color:#fff;color:#c70023}:host.qd-step-error .qd-step-caption{color:#c70023}:host.qd-step-disabled .qd-step-number{border-color:#979797;background-color:#fff;color:#979797}:host.qd-step-disabled .qd-step-caption{color:#979797}:host:hover:not(.qd-step-current).qd-step-active .qd-step-number,:host:hover:not(.qd-step-current).qd-step-error .qd-step-number{border-color:#069;color:#069}:host:hover:not(.qd-step-current).qd-step-active .qd-step-caption,:host:hover:not(.qd-step-current).qd-step-error .qd-step-caption{color:#069}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
33627
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: QdPageStepHeaderComponent, isStandalone: true, selector: "qd-page-step-header", inputs: { state: "state", label: "label", index: "index", selected: "selected", active: "active", optional: "optional", locked: "locked", testId: ["data-test-id", "testId"], captionTestId: "captionTestId" }, host: { properties: { "attr.data-test-id": "testId", "class.qd-step": "true", "class.qd-step-active": "active", "class.qd-step-current": "selected", "class.qd-step-disabled": "locked", "class.qd-step-done": "state === STEP_STATE.DONE", "class.qd-step-edit": "state === STEP_STATE.EDIT", "class.qd-step-error": "state === STEP_STATE.ERROR" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"qd-step-number\">{{ stepNumber }}</div>\n<span class=\"qd-step-caption\" [attr.data-test-id]=\"captionTestId\">{{ label }}</span>\n", styles: [":host{color:#757575;font-size:14px;font-weight:400;line-height:18px;position:relative;display:inline-flex;height:3.5rem;flex-grow:1000;padding:.625rem 0}:host:not(:last-child):after{min-width:1.25rem;height:.0625rem;flex-grow:1;margin-top:.9375rem;margin-left:.3125rem;background-color:#d5d5d5;content:\"\"}:host:last-child{overflow:visible;flex-grow:1;margin-right:0;white-space:nowrap}:host .qd-step-number{display:inline-block;width:2rem;height:2rem;flex-shrink:0;border:rgb(151,151,151) .125rem solid;border-radius:100%;background-color:#fff;color:#979797;font-weight:500;line-height:1.75rem;text-align:center}:host .qd-step-caption{margin-left:.5rem;color:#979797;font-weight:500;line-height:2rem}:host.qd-step-active{cursor:pointer}:host.qd-step-active.qd-step-current .qd-step-number{position:relative;border-color:#069;background-color:#069;color:#fff}:host.qd-step-active.qd-step-current .qd-step-number:after{position:absolute;top:2.625rem;left:-.125rem;display:inline-block;width:2rem;height:.25rem;background-color:#069;content:\"\"}:host.qd-step-active.qd-step-current .qd-step-caption{color:#069}:host.qd-step-done .qd-step-number,:host.qd-step-edit .qd-step-number{border-color:#171717;background-color:#fff;color:#171717}:host.qd-step-done .qd-step-caption,:host.qd-step-edit .qd-step-caption{color:#171717}:host.qd-step-error{cursor:pointer}:host.qd-step-error .qd-step-number{border-color:#c70023;background-color:#fff;color:#c70023}:host.qd-step-error .qd-step-caption{color:#c70023}:host.qd-step-disabled .qd-step-number{border-color:#979797;background-color:#fff;color:#979797}:host.qd-step-disabled .qd-step-caption{color:#979797}:host:hover:not(.qd-step-current).qd-step-active .qd-step-number,:host:hover:not(.qd-step-current).qd-step-error .qd-step-number{border-color:#069;color:#069}:host:hover:not(.qd-step-current).qd-step-active .qd-step-caption,:host:hover:not(.qd-step-current).qd-step-error .qd-step-caption{color:#069}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
33622
33628
  }
33623
33629
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdPageStepHeaderComponent, decorators: [{
33624
33630
  type: Component,
33625
33631
  args: [{ selector: 'qd-page-step-header', host: {
33632
+ '[attr.data-test-id]': 'testId',
33626
33633
  '[class.qd-step]': 'true',
33627
33634
  '[class.qd-step-active]': 'active',
33628
33635
  '[class.qd-step-current]': 'selected',
@@ -33631,7 +33638,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
33631
33638
  '[class.qd-step-edit]': 'state === STEP_STATE.EDIT',
33632
33639
  '[class.qd-step-error]': 'state === STEP_STATE.ERROR'
33633
33640
  }, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true // inherited by CdkStepHeader
33634
- , template: "<div class=\"qd-step-number\">{{ stepNumber }}</div>\n<span class=\"qd-step-caption\">{{ label }}</span>\n", styles: [":host{color:#757575;font-size:14px;font-weight:400;line-height:18px;position:relative;display:inline-flex;height:3.5rem;flex-grow:1000;padding:.625rem 0}:host:not(:last-child):after{min-width:1.25rem;height:.0625rem;flex-grow:1;margin-top:.9375rem;margin-left:.3125rem;background-color:#d5d5d5;content:\"\"}:host:last-child{overflow:visible;flex-grow:1;margin-right:0;white-space:nowrap}:host .qd-step-number{display:inline-block;width:2rem;height:2rem;flex-shrink:0;border:rgb(151,151,151) .125rem solid;border-radius:100%;background-color:#fff;color:#979797;font-weight:500;line-height:1.75rem;text-align:center}:host .qd-step-caption{margin-left:.5rem;color:#979797;font-weight:500;line-height:2rem}:host.qd-step-active{cursor:pointer}:host.qd-step-active.qd-step-current .qd-step-number{position:relative;border-color:#069;background-color:#069;color:#fff}:host.qd-step-active.qd-step-current .qd-step-number:after{position:absolute;top:2.625rem;left:-.125rem;display:inline-block;width:2rem;height:.25rem;background-color:#069;content:\"\"}:host.qd-step-active.qd-step-current .qd-step-caption{color:#069}:host.qd-step-done .qd-step-number,:host.qd-step-edit .qd-step-number{border-color:#171717;background-color:#fff;color:#171717}:host.qd-step-done .qd-step-caption,:host.qd-step-edit .qd-step-caption{color:#171717}:host.qd-step-error{cursor:pointer}:host.qd-step-error .qd-step-number{border-color:#c70023;background-color:#fff;color:#c70023}:host.qd-step-error .qd-step-caption{color:#c70023}:host.qd-step-disabled .qd-step-number{border-color:#979797;background-color:#fff;color:#979797}:host.qd-step-disabled .qd-step-caption{color:#979797}:host:hover:not(.qd-step-current).qd-step-active .qd-step-number,:host:hover:not(.qd-step-current).qd-step-error .qd-step-number{border-color:#069;color:#069}:host:hover:not(.qd-step-current).qd-step-active .qd-step-caption,:host:hover:not(.qd-step-current).qd-step-error .qd-step-caption{color:#069}\n"] }]
33641
+ , template: "<div class=\"qd-step-number\">{{ stepNumber }}</div>\n<span class=\"qd-step-caption\" [attr.data-test-id]=\"captionTestId\">{{ label }}</span>\n", styles: [":host{color:#757575;font-size:14px;font-weight:400;line-height:18px;position:relative;display:inline-flex;height:3.5rem;flex-grow:1000;padding:.625rem 0}:host:not(:last-child):after{min-width:1.25rem;height:.0625rem;flex-grow:1;margin-top:.9375rem;margin-left:.3125rem;background-color:#d5d5d5;content:\"\"}:host:last-child{overflow:visible;flex-grow:1;margin-right:0;white-space:nowrap}:host .qd-step-number{display:inline-block;width:2rem;height:2rem;flex-shrink:0;border:rgb(151,151,151) .125rem solid;border-radius:100%;background-color:#fff;color:#979797;font-weight:500;line-height:1.75rem;text-align:center}:host .qd-step-caption{margin-left:.5rem;color:#979797;font-weight:500;line-height:2rem}:host.qd-step-active{cursor:pointer}:host.qd-step-active.qd-step-current .qd-step-number{position:relative;border-color:#069;background-color:#069;color:#fff}:host.qd-step-active.qd-step-current .qd-step-number:after{position:absolute;top:2.625rem;left:-.125rem;display:inline-block;width:2rem;height:.25rem;background-color:#069;content:\"\"}:host.qd-step-active.qd-step-current .qd-step-caption{color:#069}:host.qd-step-done .qd-step-number,:host.qd-step-edit .qd-step-number{border-color:#171717;background-color:#fff;color:#171717}:host.qd-step-done .qd-step-caption,:host.qd-step-edit .qd-step-caption{color:#171717}:host.qd-step-error{cursor:pointer}:host.qd-step-error .qd-step-number{border-color:#c70023;background-color:#fff;color:#c70023}:host.qd-step-error .qd-step-caption{color:#c70023}:host.qd-step-disabled .qd-step-number{border-color:#979797;background-color:#fff;color:#979797}:host.qd-step-disabled .qd-step-caption{color:#979797}:host:hover:not(.qd-step-current).qd-step-active .qd-step-number,:host:hover:not(.qd-step-current).qd-step-error .qd-step-number{border-color:#069;color:#069}:host:hover:not(.qd-step-current).qd-step-active .qd-step-caption,:host:hover:not(.qd-step-current).qd-step-error .qd-step-caption{color:#069}\n"] }]
33635
33642
  }], ctorParameters: () => [], propDecorators: { state: [{
33636
33643
  type: Input
33637
33644
  }], label: [{
@@ -33646,6 +33653,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
33646
33653
  type: Input
33647
33654
  }], locked: [{
33648
33655
  type: Input
33656
+ }], testId: [{
33657
+ type: Input,
33658
+ args: ['data-test-id']
33659
+ }], captionTestId: [{
33660
+ type: Input
33649
33661
  }] } });
33650
33662
 
33651
33663
  const QD_PAGE_STEP_RESOLVER_TOKEN = new InjectionToken('QD_PAGE_STEP_RESOLVER_TOKEN');
@@ -33675,7 +33687,8 @@ class QdPageStepperComponent extends CdkStepper {
33675
33687
  */
33676
33688
  config;
33677
33689
  /**
33678
- * A static test ID for integration tests can be set.
33690
+ * A static test ID for integration tests can be set. Every step header inherits it as
33691
+ * `<testId>-header-<index>` (e.g. `page-stepper-header-0`). The caption of a named step also gets `<testId>-header-<name>`.
33679
33692
  */
33680
33693
  testId = 'page-stepper';
33681
33694
  /**
@@ -33812,6 +33825,9 @@ class QdPageStepperComponent extends CdkStepper {
33812
33825
  showSubmitButton(selectedIndex) {
33813
33826
  return selectedIndex === this.steps.length - 1;
33814
33827
  }
33828
+ _getStepCaptionTestId(step) {
33829
+ return step.config.name ? this.testId + '-header-' + step.config.name : undefined;
33830
+ }
33815
33831
  _getIndicatorType(index, state) {
33816
33832
  if (state)
33817
33833
  return state;
@@ -33910,11 +33926,11 @@ class QdPageStepperComponent extends CdkStepper {
33910
33926
  throw new Error(`Quadrel Framework | QdPageStepper - The "${inputName}" attribute is not allowed. Please use QdPageStepperConfig instead.`);
33911
33927
  }
33912
33928
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdPageStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
33913
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdPageStepperComponent, isStandalone: true, selector: "qd-page-stepper", inputs: { config: "config", testId: ["data-test-id", "testId"] }, outputs: { submitted: "submitted" }, host: { properties: { "class.standalone": "!hasPageFooter" }, classAttribute: "qd-stepper" }, providers: [{ provide: CdkStepper, useExisting: QdPageStepperComponent }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@if (steps.length > 1) {\n<div class=\"qd-stepper-items-container\">\n @for (step of steps; track step; let i = $index) {\n <qd-page-step-header\n (click)=\"handleClickHeader(step, i)\"\n [id]=\"_getStepLabelId(i)\"\n [ngClass]=\"'qd-step'\"\n [index]=\"i\"\n [state]=\"_getIndicatorType(i, step.state)\"\n [label]=\"step.config.label.i18n | translate\"\n [selected]=\"selectedIndex === i\"\n [active]=\"step.completed || selectedIndex === i || !linear\"\n [optional]=\"step.optional\"\n [locked]=\"!step.editable && i < selectedIndex\"\n >\n </qd-page-step-header>\n }\n</div>\n}\n\n<div class=\"stepper-content\">\n <ng-container [ngTemplateOutlet]=\"selected?.content\"></ng-container>\n</div>\n\n@if (!hasPageFooter) {\n<div class=\"qd-stepper-action-area\">\n <button qdButton qdButtonGhost (click)=\"cancel()\" [data-test-id]=\"testId + '-cancel'\">\n {{ config?.cancel?.i18n || \"i18n.qd.stepper.cancel\" | translate }}\n </button>\n @if (showPreviousButton(selectedIndex)) {\n <button qdButton qdButtonGhost (click)=\"previousStep()\" [data-test-id]=\"testId + '-previous'\">\n {{ config?.previous?.i18n || \"i18n.qd.stepper.previous\" | translate }}\n </button>\n } @if (showNextButton(selectedIndex)) {\n <button\n qdButton\n [disabled]=\"(selectedStepValid$ | async) === false\"\n (click)=\"nextStep()\"\n [data-test-id]=\"testId + '-next'\"\n >\n {{ config?.next?.i18n || \"i18n.qd.stepper.next\" | translate }}\n </button>\n } @if (showSubmitButton(selectedIndex)) {\n <button\n qdButton\n (click)=\"submit()\"\n [disabled]=\"(allStepsValid$ | async) === false\"\n [data-test-id]=\"testId + '-submit'\"\n >\n {{ config?.submit?.i18n || \"i18n.qd.stepper.submit\" | translate }}\n </button>\n }\n</div>\n}\n", styles: [":host{display:flex;flex-direction:column}:host.standalone{height:calc(100% - 50px)}:host .qd-stepper-items-container{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding:0 1.25rem;border-bottom:.125rem solid rgb(213,213,213);background-color:#fff;gap:0 .625rem}@media(max-width:599.98px){:host .qd-stepper-items-container{padding:0 .9375rem}}:host .stepper-content{flex:1 1 auto}:host .qd-stepper-action-area{display:flex;width:100%;height:3.125rem;justify-content:flex-end}:host .qd-stepper-action-area button{margin-right:1.25rem}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: QdPageStepHeaderComponent, selector: "qd-page-step-header", inputs: ["state", "label", "index", "selected", "active", "optional", "locked"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: QdButtonModule }, { kind: "component", type: QdButtonComponent, selector: "button[qdButton], a[qdButton]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "directive", type: QdButtonGhostDirective, selector: "button[qdButtonGhost], a[qdButtonGhost]" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
33929
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdPageStepperComponent, isStandalone: true, selector: "qd-page-stepper", inputs: { config: "config", testId: ["data-test-id", "testId"] }, outputs: { submitted: "submitted" }, host: { properties: { "class.standalone": "!hasPageFooter" }, classAttribute: "qd-stepper" }, providers: [{ provide: CdkStepper, useExisting: QdPageStepperComponent }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@if (steps.length > 1) {\n<div class=\"qd-stepper-items-container\">\n @for (step of steps; track step; let i = $index) {\n <qd-page-step-header\n (click)=\"handleClickHeader(step, i)\"\n [id]=\"_getStepLabelId(i)\"\n [ngClass]=\"'qd-step'\"\n [index]=\"i\"\n [state]=\"_getIndicatorType(i, step.state)\"\n [label]=\"step.config.label.i18n | translate\"\n [selected]=\"selectedIndex === i\"\n [active]=\"step.completed || selectedIndex === i || !linear\"\n [optional]=\"step.optional\"\n [locked]=\"!step.editable && i < selectedIndex\"\n [data-test-id]=\"testId + '-header-' + i\"\n [captionTestId]=\"_getStepCaptionTestId(step)\"\n >\n </qd-page-step-header>\n }\n</div>\n}\n\n<div class=\"stepper-content\">\n <ng-container [ngTemplateOutlet]=\"selected?.content\"></ng-container>\n</div>\n\n@if (!hasPageFooter) {\n<div class=\"qd-stepper-action-area\">\n <button qdButton qdButtonGhost (click)=\"cancel()\" [data-test-id]=\"testId + '-cancel'\">\n {{ config?.cancel?.i18n || \"i18n.qd.stepper.cancel\" | translate }}\n </button>\n @if (showPreviousButton(selectedIndex)) {\n <button qdButton qdButtonGhost (click)=\"previousStep()\" [data-test-id]=\"testId + '-previous'\">\n {{ config?.previous?.i18n || \"i18n.qd.stepper.previous\" | translate }}\n </button>\n } @if (showNextButton(selectedIndex)) {\n <button\n qdButton\n [disabled]=\"(selectedStepValid$ | async) === false\"\n (click)=\"nextStep()\"\n [data-test-id]=\"testId + '-next'\"\n >\n {{ config?.next?.i18n || \"i18n.qd.stepper.next\" | translate }}\n </button>\n } @if (showSubmitButton(selectedIndex)) {\n <button\n qdButton\n (click)=\"submit()\"\n [disabled]=\"(allStepsValid$ | async) === false\"\n [data-test-id]=\"testId + '-submit'\"\n >\n {{ config?.submit?.i18n || \"i18n.qd.stepper.submit\" | translate }}\n </button>\n }\n</div>\n}\n", styles: [":host{display:flex;flex-direction:column}:host.standalone{height:calc(100% - 50px)}:host .qd-stepper-items-container{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding:0 1.25rem;border-bottom:.125rem solid rgb(213,213,213);background-color:#fff;gap:0 .625rem}@media(max-width:599.98px){:host .qd-stepper-items-container{padding:0 .9375rem}}:host .stepper-content{flex:1 1 auto}:host .qd-stepper-action-area{display:flex;width:100%;height:3.125rem;justify-content:flex-end}:host .qd-stepper-action-area button{margin-right:1.25rem}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: QdPageStepHeaderComponent, selector: "qd-page-step-header", inputs: ["state", "label", "index", "selected", "active", "optional", "locked", "data-test-id", "captionTestId"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: QdButtonModule }, { kind: "component", type: QdButtonComponent, selector: "button[qdButton], a[qdButton]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "directive", type: QdButtonGhostDirective, selector: "button[qdButtonGhost], a[qdButtonGhost]" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
33914
33930
  }
33915
33931
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdPageStepperComponent, decorators: [{
33916
33932
  type: Component,
33917
- args: [{ selector: 'qd-page-stepper', providers: [{ provide: CdkStepper, useExisting: QdPageStepperComponent }], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'qd-stepper', '[class.standalone]': '!hasPageFooter' }, standalone: true, imports: [NgClass, NgTemplateOutlet, AsyncPipe, QdPageStepHeaderComponent, TranslateModule, QdButtonModule], template: "@if (steps.length > 1) {\n<div class=\"qd-stepper-items-container\">\n @for (step of steps; track step; let i = $index) {\n <qd-page-step-header\n (click)=\"handleClickHeader(step, i)\"\n [id]=\"_getStepLabelId(i)\"\n [ngClass]=\"'qd-step'\"\n [index]=\"i\"\n [state]=\"_getIndicatorType(i, step.state)\"\n [label]=\"step.config.label.i18n | translate\"\n [selected]=\"selectedIndex === i\"\n [active]=\"step.completed || selectedIndex === i || !linear\"\n [optional]=\"step.optional\"\n [locked]=\"!step.editable && i < selectedIndex\"\n >\n </qd-page-step-header>\n }\n</div>\n}\n\n<div class=\"stepper-content\">\n <ng-container [ngTemplateOutlet]=\"selected?.content\"></ng-container>\n</div>\n\n@if (!hasPageFooter) {\n<div class=\"qd-stepper-action-area\">\n <button qdButton qdButtonGhost (click)=\"cancel()\" [data-test-id]=\"testId + '-cancel'\">\n {{ config?.cancel?.i18n || \"i18n.qd.stepper.cancel\" | translate }}\n </button>\n @if (showPreviousButton(selectedIndex)) {\n <button qdButton qdButtonGhost (click)=\"previousStep()\" [data-test-id]=\"testId + '-previous'\">\n {{ config?.previous?.i18n || \"i18n.qd.stepper.previous\" | translate }}\n </button>\n } @if (showNextButton(selectedIndex)) {\n <button\n qdButton\n [disabled]=\"(selectedStepValid$ | async) === false\"\n (click)=\"nextStep()\"\n [data-test-id]=\"testId + '-next'\"\n >\n {{ config?.next?.i18n || \"i18n.qd.stepper.next\" | translate }}\n </button>\n } @if (showSubmitButton(selectedIndex)) {\n <button\n qdButton\n (click)=\"submit()\"\n [disabled]=\"(allStepsValid$ | async) === false\"\n [data-test-id]=\"testId + '-submit'\"\n >\n {{ config?.submit?.i18n || \"i18n.qd.stepper.submit\" | translate }}\n </button>\n }\n</div>\n}\n", styles: [":host{display:flex;flex-direction:column}:host.standalone{height:calc(100% - 50px)}:host .qd-stepper-items-container{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding:0 1.25rem;border-bottom:.125rem solid rgb(213,213,213);background-color:#fff;gap:0 .625rem}@media(max-width:599.98px){:host .qd-stepper-items-container{padding:0 .9375rem}}:host .stepper-content{flex:1 1 auto}:host .qd-stepper-action-area{display:flex;width:100%;height:3.125rem;justify-content:flex-end}:host .qd-stepper-action-area button{margin-right:1.25rem}\n"] }]
33933
+ args: [{ selector: 'qd-page-stepper', providers: [{ provide: CdkStepper, useExisting: QdPageStepperComponent }], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'qd-stepper', '[class.standalone]': '!hasPageFooter' }, standalone: true, imports: [NgClass, NgTemplateOutlet, AsyncPipe, QdPageStepHeaderComponent, TranslateModule, QdButtonModule], template: "@if (steps.length > 1) {\n<div class=\"qd-stepper-items-container\">\n @for (step of steps; track step; let i = $index) {\n <qd-page-step-header\n (click)=\"handleClickHeader(step, i)\"\n [id]=\"_getStepLabelId(i)\"\n [ngClass]=\"'qd-step'\"\n [index]=\"i\"\n [state]=\"_getIndicatorType(i, step.state)\"\n [label]=\"step.config.label.i18n | translate\"\n [selected]=\"selectedIndex === i\"\n [active]=\"step.completed || selectedIndex === i || !linear\"\n [optional]=\"step.optional\"\n [locked]=\"!step.editable && i < selectedIndex\"\n [data-test-id]=\"testId + '-header-' + i\"\n [captionTestId]=\"_getStepCaptionTestId(step)\"\n >\n </qd-page-step-header>\n }\n</div>\n}\n\n<div class=\"stepper-content\">\n <ng-container [ngTemplateOutlet]=\"selected?.content\"></ng-container>\n</div>\n\n@if (!hasPageFooter) {\n<div class=\"qd-stepper-action-area\">\n <button qdButton qdButtonGhost (click)=\"cancel()\" [data-test-id]=\"testId + '-cancel'\">\n {{ config?.cancel?.i18n || \"i18n.qd.stepper.cancel\" | translate }}\n </button>\n @if (showPreviousButton(selectedIndex)) {\n <button qdButton qdButtonGhost (click)=\"previousStep()\" [data-test-id]=\"testId + '-previous'\">\n {{ config?.previous?.i18n || \"i18n.qd.stepper.previous\" | translate }}\n </button>\n } @if (showNextButton(selectedIndex)) {\n <button\n qdButton\n [disabled]=\"(selectedStepValid$ | async) === false\"\n (click)=\"nextStep()\"\n [data-test-id]=\"testId + '-next'\"\n >\n {{ config?.next?.i18n || \"i18n.qd.stepper.next\" | translate }}\n </button>\n } @if (showSubmitButton(selectedIndex)) {\n <button\n qdButton\n (click)=\"submit()\"\n [disabled]=\"(allStepsValid$ | async) === false\"\n [data-test-id]=\"testId + '-submit'\"\n >\n {{ config?.submit?.i18n || \"i18n.qd.stepper.submit\" | translate }}\n </button>\n }\n</div>\n}\n", styles: [":host{display:flex;flex-direction:column}:host.standalone{height:calc(100% - 50px)}:host .qd-stepper-items-container{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding:0 1.25rem;border-bottom:.125rem solid rgb(213,213,213);background-color:#fff;gap:0 .625rem}@media(max-width:599.98px){:host .qd-stepper-items-container{padding:0 .9375rem}}:host .stepper-content{flex:1 1 auto}:host .qd-stepper-action-area{display:flex;width:100%;height:3.125rem;justify-content:flex-end}:host .qd-stepper-action-area button{margin-right:1.25rem}\n"] }]
33918
33934
  }], ctorParameters: () => [], propDecorators: { config: [{
33919
33935
  type: Input
33920
33936
  }], testId: [{