@cqa-lib/cqa-ui 1.1.219 → 1.1.220
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/step-builder/template-variables-form/template-variables-form.component.mjs +4 -4
- package/esm2020/lib/test-case-details/step-details-drawer/step-details-drawer.component.mjs +140 -6
- package/fesm2015/cqa-lib-cqa-ui.mjs +142 -5
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +139 -5
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/test-case-details/step-details-drawer/step-details-drawer.component.d.ts +24 -0
- package/package.json +1 -1
|
@@ -32,6 +32,14 @@ export declare class StepDetailsDrawerComponent implements OnInit, OnChanges {
|
|
|
32
32
|
pwLocator: string[];
|
|
33
33
|
/** Cached select configs per field key (stable refs for change detection). */
|
|
34
34
|
private selectConfigCache;
|
|
35
|
+
/** Cache for data type select configs */
|
|
36
|
+
private dataTypeSelectConfigCache;
|
|
37
|
+
/** Store data types for test-data fields */
|
|
38
|
+
private fieldDataTypes;
|
|
39
|
+
/** Store raw values (without formatting) for test-data fields */
|
|
40
|
+
private fieldRawValues;
|
|
41
|
+
/** Pre-computed data type options (static, no need to recreate) */
|
|
42
|
+
private readonly dataTypeOptions;
|
|
35
43
|
/** All fields from the provided array (same reference; used for single source of truth in template). */
|
|
36
44
|
get allFields(): DynamicFieldConfig[];
|
|
37
45
|
/** Fields in main section (section === 'main' or undefined). */
|
|
@@ -64,6 +72,22 @@ export declare class StepDetailsDrawerComponent implements OnInit, OnChanges {
|
|
|
64
72
|
getSelectConfig(field: DynamicFieldConfig): DynamicSelectFieldConfig | null;
|
|
65
73
|
/** Resolved header title for template: @Input drawerTitle > injected data.title > default. */
|
|
66
74
|
get displayTitle(): string;
|
|
75
|
+
/** Check if field needs data type dropdown (test-data, source-value, target-value) */
|
|
76
|
+
needsDataTypeDropdown(field: DynamicFieldConfig): boolean;
|
|
77
|
+
/** Parse test data value to extract data type and raw value */
|
|
78
|
+
private parseTestDataValue;
|
|
79
|
+
/** Format test data value based on data type */
|
|
80
|
+
private formatTestDataValue;
|
|
81
|
+
/** Get data type select config for a field */
|
|
82
|
+
getDataTypeSelectConfig(field: DynamicFieldConfig): DynamicSelectFieldConfig | null;
|
|
83
|
+
/** Get current data type for a field */
|
|
84
|
+
getCurrentDataType(field: DynamicFieldConfig): 'plain-text' | 'parameter' | 'runtime' | 'environment';
|
|
85
|
+
/** Get raw value (without formatting) for a field */
|
|
86
|
+
getRawValue(field: DynamicFieldConfig): string;
|
|
87
|
+
/** Handle data type change */
|
|
88
|
+
onDataTypeChange(fieldKey: string, dataType: 'plain-text' | 'parameter' | 'runtime' | 'environment'): void;
|
|
89
|
+
/** Handle test data value change (raw value input) */
|
|
90
|
+
onTestDataValueChange(fieldKey: string, rawValue: string): void;
|
|
67
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepDetailsDrawerComponent, [null, null, null, { optional: true; }]>;
|
|
68
92
|
static ɵcmp: i0.ɵɵComponentDeclaration<StepDetailsDrawerComponent, "cqa-step-details-drawer", never, { "stepData": "stepData"; "stepNumberInput": "stepNumberInput"; "dynamicFieldsInput": "dynamicFieldsInput"; "drawerTitle": "drawerTitle"; }, { "saveChanges": "saveChanges"; "cancel": "cancel"; "saveAsTemplate": "saveAsTemplate"; }, never, never>;
|
|
69
93
|
}
|