@cqa-lib/cqa-ui 1.1.168 → 1.1.169
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/step-builder-action/step-builder-action.component.mjs +7 -4
- package/esm2020/lib/step-builder/step-builder-loop/step-builder-loop.component.mjs +56 -43
- package/fesm2015/cqa-lib-cqa-ui.mjs +58 -43
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +58 -43
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/step-builder/step-builder-action/step-builder-action.component.d.ts +2 -1
- package/lib/step-builder/step-builder-loop/step-builder-loop.component.d.ts +16 -19
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ export interface ElementField {
|
|
|
28
28
|
}
|
|
29
29
|
export declare class StepBuilderActionComponent implements OnInit, OnChanges {
|
|
30
30
|
private fb;
|
|
31
|
+
showHeader: boolean;
|
|
31
32
|
/** List of action templates to display */
|
|
32
33
|
templates: ActionTemplate[];
|
|
33
34
|
/** Placeholder text for search input */
|
|
@@ -67,5 +68,5 @@ export declare class StepBuilderActionComponent implements OnInit, OnChanges {
|
|
|
67
68
|
onElementValueChange(key: string, value: string): void;
|
|
68
69
|
onTestDataValueChange(key: string, value: string): void;
|
|
69
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepBuilderActionComponent, never>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderActionComponent, "cqa-step-builder-action", never, { "templates": "templates"; "searchPlaceholder": "searchPlaceholder"; "setTemplateVariables": "setTemplateVariables"; "preventSelectTemplate": "preventSelectTemplate"; }, { "templateChanged": "templateChanged"; "createStep": "createStep"; "cancelled": "cancelled"; }, never, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderActionComponent, "cqa-step-builder-action", never, { "showHeader": "showHeader"; "templates": "templates"; "searchPlaceholder": "searchPlaceholder"; "setTemplateVariables": "setTemplateVariables"; "preventSelectTemplate": "preventSelectTemplate"; }, { "templateChanged": "templateChanged"; "createStep": "createStep"; "cancelled": "cancelled"; }, never, never>;
|
|
71
72
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { DynamicSelectFieldConfig } from '../../dynamic-select/dynamic-select-field.component';
|
|
4
|
+
import { ActionTemplate } from '../step-builder-action/step-builder-action.component';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare type LoopType = 'for' | 'while';
|
|
6
7
|
/**
|
|
@@ -23,6 +24,8 @@ export interface LoopFormData {
|
|
|
23
24
|
loopStart?: number | string;
|
|
24
25
|
loopEnd?: number | string;
|
|
25
26
|
runTime?: string;
|
|
27
|
+
whileTemplate?: any;
|
|
28
|
+
event?: any;
|
|
26
29
|
}
|
|
27
30
|
export declare class StepBuilderLoopComponent implements OnInit, OnChanges {
|
|
28
31
|
/** Currently selected loop type */
|
|
@@ -33,10 +36,10 @@ export declare class StepBuilderLoopComponent implements OnInit, OnChanges {
|
|
|
33
36
|
dataProfileOptions: DataProfileOption[];
|
|
34
37
|
/** Indicates if more data profiles are available for loading */
|
|
35
38
|
hasMoreDataProfiles: boolean;
|
|
36
|
-
hasMoreWhileTemplates: boolean;
|
|
37
|
-
isLoadingWhileTemplates: boolean;
|
|
38
39
|
/** Loading state for data profiles */
|
|
39
40
|
isLoadingDataProfiles: boolean;
|
|
41
|
+
/** Function to handle variable processing or custom logic. Can be passed from parent component. */
|
|
42
|
+
setWhileTemplateVariables: (variables: ActionTemplate) => any;
|
|
40
43
|
/** Emit when step is created */
|
|
41
44
|
createStep: EventEmitter<LoopFormData>;
|
|
42
45
|
/** Emit when cancelled */
|
|
@@ -47,17 +50,16 @@ export declare class StepBuilderLoopComponent implements OnInit, OnChanges {
|
|
|
47
50
|
loadMoreDataProfiles: EventEmitter<string>;
|
|
48
51
|
/** Emit when data profile search query changes */
|
|
49
52
|
searchDataProfiles: EventEmitter<string>;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
whileTemplates: any[];
|
|
54
|
+
whileSearchPlaceholder: string;
|
|
55
|
+
whileSearchValue: string;
|
|
56
|
+
selectedWhileTemplate: any;
|
|
54
57
|
selectedLoopType: LoopType;
|
|
55
58
|
loopForm: FormGroup;
|
|
56
59
|
selectOptionConfig: DynamicSelectFieldConfig;
|
|
57
60
|
dataProfileConfig: DynamicSelectFieldConfig;
|
|
58
61
|
loopStartConfig: DynamicSelectFieldConfig;
|
|
59
62
|
loopEndConfig: DynamicSelectFieldConfig;
|
|
60
|
-
whileDataProfileConfig: DynamicSelectFieldConfig;
|
|
61
63
|
private selectedDataProfile;
|
|
62
64
|
private startArray;
|
|
63
65
|
private endArray;
|
|
@@ -85,6 +87,7 @@ export declare class StepBuilderLoopComponent implements OnInit, OnChanges {
|
|
|
85
87
|
onLoopTypeChange(type: string | LoopType): void;
|
|
86
88
|
onCancel(): void;
|
|
87
89
|
onCreateStep(): void;
|
|
90
|
+
createWhileStep(event: any): void;
|
|
88
91
|
/**
|
|
89
92
|
* Handle search event for data profiles
|
|
90
93
|
*/
|
|
@@ -96,22 +99,16 @@ export declare class StepBuilderLoopComponent implements OnInit, OnChanges {
|
|
|
96
99
|
key: string;
|
|
97
100
|
query: string;
|
|
98
101
|
}): void;
|
|
99
|
-
/**
|
|
100
|
-
* Handle search event for while templates
|
|
101
|
-
*/
|
|
102
|
-
onSearchWhileTemplates(query: string): void;
|
|
103
|
-
/**
|
|
104
|
-
* Handle loadMore event for while templates
|
|
105
|
-
*/
|
|
106
|
-
onLoadMoreWhileTemplates(event: {
|
|
107
|
-
key: string;
|
|
108
|
-
query: string;
|
|
109
|
-
}): void;
|
|
110
102
|
/**
|
|
111
103
|
* Update data profile config when loading state or hasMore changes
|
|
112
104
|
*/
|
|
113
105
|
private updateDataProfileConfig;
|
|
114
106
|
private resetForm;
|
|
107
|
+
onWhileSearchChange(event: any): void;
|
|
108
|
+
onWhileSearchSubmit(event: any): void;
|
|
109
|
+
onWhileSearchCleared(): void;
|
|
110
|
+
filterWhileTemplates(query: string): void;
|
|
111
|
+
selectWhileTemplate(template: any): void;
|
|
115
112
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepBuilderLoopComponent, never>;
|
|
116
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderLoopComponent, "cqa-step-builder-loop", never, { "loopType": "loopType"; "selectOptions": "selectOptions"; "dataProfileOptions": "dataProfileOptions"; "hasMoreDataProfiles": "hasMoreDataProfiles"; "
|
|
113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderLoopComponent, "cqa-step-builder-loop", never, { "loopType": "loopType"; "selectOptions": "selectOptions"; "dataProfileOptions": "dataProfileOptions"; "hasMoreDataProfiles": "hasMoreDataProfiles"; "isLoadingDataProfiles": "isLoadingDataProfiles"; "setWhileTemplateVariables": "setWhileTemplateVariables"; "whileTemplates": "whileTemplates"; "whileSearchPlaceholder": "whileSearchPlaceholder"; "whileSearchValue": "whileSearchValue"; }, { "createStep": "createStep"; "cancelled": "cancelled"; "loopTypeChange": "loopTypeChange"; "loadMoreDataProfiles": "loadMoreDataProfiles"; "searchDataProfiles": "searchDataProfiles"; }, never, never>;
|
|
117
114
|
}
|