@cqa-lib/cqa-ui 1.1.482 → 1.1.484
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/dynamic-select/dynamic-select-field.component.mjs +28 -3
- package/esm2020/lib/execution-screen/api-step/api-step.component.mjs +78 -54
- package/fesm2015/cqa-lib-cqa-ui.mjs +106 -57
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +105 -56
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/dynamic-select/dynamic-select-field.component.d.ts +10 -0
- package/lib/execution-screen/api-step/api-step.component.d.ts +9 -1
- package/package.json +1 -1
|
@@ -7,6 +7,8 @@ export interface SelectOption {
|
|
|
7
7
|
value?: any;
|
|
8
8
|
name?: string;
|
|
9
9
|
label?: string;
|
|
10
|
+
/** e.g. MOBILE, BROWSER — shown as a leading icon in the dropdown when set */
|
|
11
|
+
testType?: string;
|
|
10
12
|
statusColor?: string;
|
|
11
13
|
durationFormatted?: string;
|
|
12
14
|
runNumberLabel?: string;
|
|
@@ -47,6 +49,8 @@ export interface DynamicSelectFieldConfig {
|
|
|
47
49
|
isLoading?: boolean;
|
|
48
50
|
/** Optional callback for server-side search when query changes. */
|
|
49
51
|
onSearch?: (query: string) => void;
|
|
52
|
+
/** If true, renders testType icons (mobile/web/other) before labels. */
|
|
53
|
+
showTestTypeIcon?: boolean;
|
|
50
54
|
/** Optional callback when more data is requested (infinite scroll). */
|
|
51
55
|
onLoadMore?: (query?: string) => void;
|
|
52
56
|
/** Optional regex pattern or function to highlight parts of option text. */
|
|
@@ -112,6 +116,12 @@ export declare class DynamicSelectFieldComponent implements OnInit, OnChanges {
|
|
|
112
116
|
get panelClass(): string;
|
|
113
117
|
get isMultiple(): boolean;
|
|
114
118
|
get singleSelectedDisplayLabel(): string;
|
|
119
|
+
/** Resolved option for single-select trigger (icon + label). */
|
|
120
|
+
get singleSelectedOption(): SelectOption | null;
|
|
121
|
+
/**
|
|
122
|
+
* Maps API testType strings to icon variants. Unknown non-empty values use 'other'.
|
|
123
|
+
*/
|
|
124
|
+
testTypeIconKind(opt: SelectOption | null | undefined): 'mobile' | 'web' | 'other' | null;
|
|
115
125
|
get isDisabled(): boolean;
|
|
116
126
|
get useCheckboxStyle(): boolean;
|
|
117
127
|
get allSelected(): boolean;
|
|
@@ -102,9 +102,17 @@ export declare class ApiStepComponent extends BaseStepComponent implements OnIni
|
|
|
102
102
|
copyRequestHeaders(): void;
|
|
103
103
|
copyResponseHeaders(): void;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* Walks jsonData and builds a map from each line number (in the output of
|
|
106
|
+
* JSON.stringify(jsonData, null, 2)) to the segment path that line represents.
|
|
107
|
+
* Segments are strings for object keys and numbers for array indices.
|
|
108
|
+
*/
|
|
109
|
+
private buildLinePathMap;
|
|
110
|
+
/**
|
|
111
|
+
* Extracts JSON path from the clicked position in a formatted JSON string.
|
|
112
|
+
* Returns an array of segments (string keys or numeric array indices), or null.
|
|
106
113
|
*/
|
|
107
114
|
private getJsonPathFromClick;
|
|
115
|
+
private formatSegmentsPath;
|
|
108
116
|
private normalizeJsonPath;
|
|
109
117
|
/**
|
|
110
118
|
* Copy JSON path on double-click
|