@cqa-lib/cqa-ui 1.1.333 → 1.1.334
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/esm2020/lib/test-case-details/test-data-modal/test-data-modal.component.mjs +37 -2
- package/fesm2015/cqa-lib-cqa-ui.mjs +39 -2
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +36 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/test-case-details/test-data-modal/test-data-modal.component.d.ts +6 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { DynamicSelectFieldConfig } from '../../dynamic-select/dynamic-select-field.component';
|
|
4
4
|
import { TestDataModalData, TestDataModalTab } from './test-data-modal-data';
|
|
@@ -8,7 +8,7 @@ import { EnvironmentItem } from './test-data-modal-environment.model';
|
|
|
8
8
|
import { ParameterItem, ParameterScopeFilter } from './test-data-modal-parameter.model';
|
|
9
9
|
import { CqaListItemConfig } from '../../item-list/item-list.model';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class TestDataModalComponent implements OnInit {
|
|
11
|
+
export declare class TestDataModalComponent implements OnInit, OnChanges {
|
|
12
12
|
private readonly fb;
|
|
13
13
|
private readonly cdr;
|
|
14
14
|
private ref;
|
|
@@ -43,6 +43,8 @@ export declare class TestDataModalComponent implements OnInit {
|
|
|
43
43
|
parameterScopeFilterSelectConfig: DynamicSelectFieldConfig;
|
|
44
44
|
/** Local copy of form value for Cancel revert (same pattern as Loop Step editSnapshot). */
|
|
45
45
|
private editSnapshot;
|
|
46
|
+
/** Preserve user-entered plain text independently from parameter/environment/runtime selections. */
|
|
47
|
+
private plainTextValue;
|
|
46
48
|
/** State derived from config/editForm for template and getters (mirrors Loop Step inputs). */
|
|
47
49
|
activeTab: TestDataModalTab;
|
|
48
50
|
value: string;
|
|
@@ -57,6 +59,7 @@ export declare class TestDataModalComponent implements OnInit {
|
|
|
57
59
|
runtimeValue: string;
|
|
58
60
|
constructor(fb: FormBuilder, cdr: ChangeDetectorRef, ref: TestDataModalRef<TestDataModalResult>, data?: TestDataModalData);
|
|
59
61
|
ngOnInit(): void;
|
|
62
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
60
63
|
/** Build form with all control values (same pattern as Loop Step buildEditForm). */
|
|
61
64
|
private buildEditForm;
|
|
62
65
|
/** Build select configs once (same pattern as Loop Step buildSelectConfigs). */
|
|
@@ -97,5 +100,5 @@ export declare class TestDataModalComponent implements OnInit {
|
|
|
97
100
|
onEditInDepth(event: Event): void;
|
|
98
101
|
onHelp(event: Event): void;
|
|
99
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<TestDataModalComponent, [null, null, null, { optional: true; }]>;
|
|
100
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TestDataModalComponent, "cqa-test-data-modal", never, { "parameters": "parameters"; "environmentItems": "environmentItems"; }, { "apply": "apply"; "cancel": "cancel"; "editInDepth": "editInDepth"; "parameterCreate": "parameterCreate"; "parameterEdit": "parameterEdit"; "environmentCreate": "environmentCreate"; "environmentEdit": "environmentEdit"; }, never, never>;
|
|
103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TestDataModalComponent, "cqa-test-data-modal", never, { "parameters": "parameters"; "environmentItems": "environmentItems"; "activeTab": "activeTab"; "value": "value"; "helpUrl": "helpUrl"; }, { "apply": "apply"; "cancel": "cancel"; "editInDepth": "editInDepth"; "parameterCreate": "parameterCreate"; "parameterEdit": "parameterEdit"; "environmentCreate": "environmentCreate"; "environmentEdit": "environmentEdit"; }, never, never>;
|
|
101
104
|
}
|