@cqa-lib/cqa-ui 1.1.194 → 1.1.195
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-ai-agent/step-builder-ai-agent.component.mjs +87 -4
- package/fesm2015/cqa-lib-cqa-ui.mjs +86 -3
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +86 -3
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/step-builder/step-builder-ai-agent/step-builder-ai-agent.component.d.ts +19 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { DynamicSelectFieldConfig, SelectOption } from '../../dynamic-select/dynamic-select-field.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -14,7 +14,7 @@ export interface AiAgentFormData {
|
|
|
14
14
|
iframeLocator?: string;
|
|
15
15
|
otherLocators?: string;
|
|
16
16
|
}
|
|
17
|
-
export declare class StepBuilderAiAgentComponent implements OnInit {
|
|
17
|
+
export declare class StepBuilderAiAgentComponent implements OnInit, OnChanges {
|
|
18
18
|
private fb;
|
|
19
19
|
/** Options for type dropdown */
|
|
20
20
|
typeOptions: SelectOption[];
|
|
@@ -26,14 +26,30 @@ export declare class StepBuilderAiAgentComponent implements OnInit {
|
|
|
26
26
|
iframeLocatorOptions: SelectOption[];
|
|
27
27
|
/** Options for other locators dropdown */
|
|
28
28
|
otherLocatorsOptions: SelectOption[];
|
|
29
|
+
/** Initial values for edit mode */
|
|
30
|
+
initialQuery?: string;
|
|
31
|
+
initialType?: string;
|
|
32
|
+
initialDescription?: string;
|
|
33
|
+
initialEnvironments?: string;
|
|
34
|
+
initialMetadata?: string;
|
|
35
|
+
initialDisabled?: boolean;
|
|
36
|
+
initialContinueOnError?: boolean;
|
|
37
|
+
initialRetryCount?: number;
|
|
38
|
+
initialIframeLocator?: string;
|
|
39
|
+
initialOtherLocators?: string;
|
|
40
|
+
editMode: boolean;
|
|
29
41
|
/** Emit when step is created */
|
|
30
42
|
createStep: EventEmitter<AiAgentFormData>;
|
|
31
43
|
/** Emit when cancelled */
|
|
32
44
|
cancelled: EventEmitter<void>;
|
|
33
45
|
aiAgentForm: FormGroup;
|
|
34
46
|
showAdvanced: boolean;
|
|
47
|
+
private hasLoadedInitialData;
|
|
35
48
|
constructor(fb: FormBuilder);
|
|
36
49
|
ngOnInit(): void;
|
|
50
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
51
|
+
private hasInitialData;
|
|
52
|
+
private loadInitialData;
|
|
37
53
|
getTypeConfig(): DynamicSelectFieldConfig;
|
|
38
54
|
getEnvironmentConfig(): DynamicSelectFieldConfig;
|
|
39
55
|
getRetryCountConfig(): DynamicSelectFieldConfig;
|
|
@@ -43,5 +59,5 @@ export declare class StepBuilderAiAgentComponent implements OnInit {
|
|
|
43
59
|
onCancel(): void;
|
|
44
60
|
onCreateStep(): void;
|
|
45
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepBuilderAiAgentComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderAiAgentComponent, "cqa-step-builder-ai-agent", never, { "typeOptions": "typeOptions"; "environmentOptions": "environmentOptions"; "retryCountOptions": "retryCountOptions"; "iframeLocatorOptions": "iframeLocatorOptions"; "otherLocatorsOptions": "otherLocatorsOptions"; }, { "createStep": "createStep"; "cancelled": "cancelled"; }, never, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderAiAgentComponent, "cqa-step-builder-ai-agent", never, { "typeOptions": "typeOptions"; "environmentOptions": "environmentOptions"; "retryCountOptions": "retryCountOptions"; "iframeLocatorOptions": "iframeLocatorOptions"; "otherLocatorsOptions": "otherLocatorsOptions"; "initialQuery": "initialQuery"; "initialType": "initialType"; "initialDescription": "initialDescription"; "initialEnvironments": "initialEnvironments"; "initialMetadata": "initialMetadata"; "initialDisabled": "initialDisabled"; "initialContinueOnError": "initialContinueOnError"; "initialRetryCount": "initialRetryCount"; "initialIframeLocator": "initialIframeLocator"; "initialOtherLocators": "initialOtherLocators"; "editMode": "editMode"; }, { "createStep": "createStep"; "cancelled": "cancelled"; }, never, never>;
|
|
47
63
|
}
|