@cqa-lib/cqa-ui 1.1.286 → 1.1.288

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.
Files changed (27) hide show
  1. package/esm2020/lib/test-case-details/ai-agent-step/ai-agent-step.component.mjs +3 -3
  2. package/esm2020/lib/test-case-details/ai-verify-step/ai-verify-step.component.mjs +3 -3
  3. package/esm2020/lib/test-case-details/api-step/api-step.component.mjs +3 -3
  4. package/esm2020/lib/test-case-details/condition-step/condition-step.component.mjs +3 -3
  5. package/esm2020/lib/test-case-details/create-step-group/create-step-group.component.mjs +3 -3
  6. package/esm2020/lib/test-case-details/custom-code-step/custom-code-step.component.mjs +3 -3
  7. package/esm2020/lib/test-case-details/database-step/database-step.component.mjs +3 -3
  8. package/esm2020/lib/test-case-details/element-list/element-list.component.mjs +41 -3
  9. package/esm2020/lib/test-case-details/element-popup/element-popup-data.mjs +1 -1
  10. package/esm2020/lib/test-case-details/element-popup/element-popup.component.mjs +3 -3
  11. package/esm2020/lib/test-case-details/loop-step/loop-step.component.mjs +39 -19
  12. package/esm2020/lib/test-case-details/normal-step/normal-step.component.mjs +3 -3
  13. package/esm2020/lib/test-case-details/restore-session-step/restore-session-step.component.mjs +3 -3
  14. package/esm2020/lib/test-case-details/screenshot-step/screenshot-step.component.mjs +3 -3
  15. package/esm2020/lib/test-case-details/scroll-step/scroll-step.component.mjs +3 -3
  16. package/esm2020/lib/test-case-details/step-group/step-group.component.mjs +3 -3
  17. package/esm2020/lib/test-case-details/upload-step/upload-step.component.mjs +3 -3
  18. package/esm2020/lib/test-case-details/verify-url-step/verify-url-step.component.mjs +3 -3
  19. package/fesm2015/cqa-lib-cqa-ui.mjs +109 -50
  20. package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
  21. package/fesm2020/cqa-lib-cqa-ui.mjs +108 -50
  22. package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
  23. package/lib/test-case-details/element-list/element-list.component.d.ts +13 -1
  24. package/lib/test-case-details/element-popup/element-popup-data.d.ts +10 -0
  25. package/lib/test-case-details/loop-step/loop-step.component.d.ts +9 -0
  26. package/package.json +1 -1
  27. package/styles.css +1 -1
@@ -10,8 +10,12 @@ export declare class ElementListComponent implements AfterViewInit, OnDestroy, O
10
10
  selectorKey: string;
11
11
  /** Key to access the labels array from each item (default: 'labels') */
12
12
  labelsKey: string;
13
+ /** Key on each item for the screen name object (e.g. 'screenNameObj'); its 'name' property is shown below the selector */
14
+ screenNameObjectKey: string;
13
15
  /** Maximum height for the scrollable container (default: '200px') */
14
16
  maxHeight: string;
17
+ /** Currently selected item to highlight in the list (same reference or matching id/title+selector) */
18
+ selectedItem: any;
15
19
  /** Whether more items can be loaded */
16
20
  hasMore: boolean;
17
21
  /** Emitted when an item is clicked */
@@ -25,14 +29,22 @@ export declare class ElementListComponent implements AfterViewInit, OnDestroy, O
25
29
  * Get the value from an item using the specified key
26
30
  */
27
31
  getItemValue(item: any, key: string): any;
32
+ /**
33
+ * Get screen name from item (screenNameObj.name or screenName string) for display below selector
34
+ */
35
+ getScreenName(item: any): string | null;
28
36
  /**
29
37
  * Handle item click
30
38
  */
31
39
  onItemClick(item: any): void;
40
+ /**
41
+ * Whether the given item is the selected one (for highlighting).
42
+ */
43
+ isSelected(item: any): boolean;
32
44
  ngAfterViewInit(): void;
33
45
  ngOnChanges(changes: SimpleChanges): void;
34
46
  ngOnDestroy(): void;
35
47
  private setupScrollObserver;
36
48
  static ɵfac: i0.ɵɵFactoryDeclaration<ElementListComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<ElementListComponent, "cqa-element-list", never, { "items": "items"; "titleKey": "titleKey"; "selectorKey": "selectorKey"; "labelsKey": "labelsKey"; "maxHeight": "maxHeight"; "hasMore": "hasMore"; }, { "itemClick": "itemClick"; "loadMore": "loadMore"; }, never, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElementListComponent, "cqa-element-list", never, { "items": "items"; "titleKey": "titleKey"; "selectorKey": "selectorKey"; "labelsKey": "labelsKey"; "screenNameObjectKey": "screenNameObjectKey"; "maxHeight": "maxHeight"; "selectedItem": "selectedItem"; "hasMore": "hasMore"; }, { "itemClick": "itemClick"; "loadMore": "loadMore"; }, never, never>;
38
50
  }
@@ -6,6 +6,14 @@ export interface ElementPopupData {
6
6
  description: string;
7
7
  helpUrl?: string;
8
8
  }
9
+ /** Screen name object from API (e.g. list elements response) */
10
+ export interface ElementPopupScreenNameObj {
11
+ id?: number;
12
+ workspaceVersionId?: number;
13
+ name: string;
14
+ url?: string;
15
+ elementCount?: number | null;
16
+ }
9
17
  export interface ElementPopupDataElements {
10
18
  labels: string[];
11
19
  title: string;
@@ -13,6 +21,8 @@ export interface ElementPopupDataElements {
13
21
  id?: number;
14
22
  screenName?: string;
15
23
  screenNameId?: number;
24
+ /** Screen name object from API; display name via screenNameObj.name */
25
+ screenNameObj?: ElementPopupScreenNameObj;
16
26
  }
17
27
  /** Sentinel returned from afterClosed() when user clicked "Edit in depth". */
18
28
  export declare const ELEMENT_POPUP_EDIT_IN_DEPTH: unique symbol;
@@ -169,6 +169,15 @@ export declare class TestCaseLoopStepComponent implements OnInit, OnChanges {
169
169
  private getSelectedProfileDataLength;
170
170
  /** Loop Start/End options: 1 to N based on selected data profile's data array length; falls back to 1..10 if no profile. */
171
171
  getLoopStepOptions(): number[];
172
+ /** Sentinel value for "Start" / "End" options (same as old UI). */
173
+ static readonly LOOP_INDEX_START = -1;
174
+ static readonly LOOP_INDEX_END = -1;
175
+ /** Loop Start/End select options: same indices as getLoopStepOptions(), with label "name (index)" when profile data has row names, else "Step (index)". */
176
+ private getLoopStepSelectOptions;
177
+ /** Loop Start dropdown options: "Start" (value -1) first, then data rows. Same values as old UI. */
178
+ private getLoopStartSelectOptions;
179
+ /** Loop End dropdown options: data rows first, then "End" (value -1) last. Same values as old UI. */
180
+ private getLoopEndSelectOptions;
172
181
  /** Handle data profile selection: update display, clamp start/end to new profile range, refresh start/end dropdowns. */
173
182
  private onDataProfileChange;
174
183
  /** Handle search for data profiles */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.286",
3
+ "version": "1.1.288",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",