@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.
@@ -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
- * Extracts JSON path from the clicked position in a formatted JSON string
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.482",
3
+ "version": "1.1.484",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",