@cqa-lib/cqa-ui 1.1.244 → 1.1.245
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-custom-code/step-builder-custom-code.component.mjs +37 -3
- package/fesm2015/cqa-lib-cqa-ui.mjs +36 -2
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +36 -2
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/step-builder/step-builder-custom-code/step-builder-custom-code.component.d.ts +8 -1
- package/package.json +1 -1
|
@@ -18,6 +18,12 @@ export declare class StepBuilderCustomCodeComponent implements OnInit, OnChanges
|
|
|
18
18
|
template: ActionTemplate | null;
|
|
19
19
|
/** Function to handle variable processing or custom logic. Can be passed from parent component. */
|
|
20
20
|
setTemplateVariables: (variables: ActionTemplate) => any;
|
|
21
|
+
/** Initial values for editing mode */
|
|
22
|
+
initialCode?: string;
|
|
23
|
+
initialLanguage?: string;
|
|
24
|
+
initialMetadata?: string;
|
|
25
|
+
initialDescription?: string;
|
|
26
|
+
isEditMode: boolean;
|
|
21
27
|
/** Emit when step is created */
|
|
22
28
|
createStep: EventEmitter<CustomCodeFormData>;
|
|
23
29
|
/** Emit when cancelled */
|
|
@@ -28,6 +34,7 @@ export declare class StepBuilderCustomCodeComponent implements OnInit, OnChanges
|
|
|
28
34
|
constructor(fb: FormBuilder);
|
|
29
35
|
ngOnInit(): void;
|
|
30
36
|
ngOnChanges(changes: SimpleChanges): void;
|
|
37
|
+
private initializeFormWithValues;
|
|
31
38
|
private loadTemplateVariables;
|
|
32
39
|
private buildVariablesForm;
|
|
33
40
|
getSelectConfig(variable: any): DynamicSelectFieldConfig;
|
|
@@ -37,5 +44,5 @@ export declare class StepBuilderCustomCodeComponent implements OnInit, OnChanges
|
|
|
37
44
|
onCancel(): void;
|
|
38
45
|
onCreateStep(): void;
|
|
39
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepBuilderCustomCodeComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderCustomCodeComponent, "cqa-step-builder-custom-code", never, { "languageOptions": "languageOptions"; "template": "template"; "setTemplateVariables": "setTemplateVariables"; }, { "createStep": "createStep"; "cancelled": "cancelled"; }, never, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderCustomCodeComponent, "cqa-step-builder-custom-code", never, { "languageOptions": "languageOptions"; "template": "template"; "setTemplateVariables": "setTemplateVariables"; "initialCode": "initialCode"; "initialLanguage": "initialLanguage"; "initialMetadata": "initialMetadata"; "initialDescription": "initialDescription"; "isEditMode": "isEditMode"; }, { "createStep": "createStep"; "cancelled": "cancelled"; }, never, never>;
|
|
41
48
|
}
|