@cqa-lib/cqa-ui 1.1.547 → 1.1.548
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-document/step-builder-document.component.mjs +43 -13
- package/fesm2015/cqa-lib-cqa-ui.mjs +43 -12
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +42 -12
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/step-builder/step-builder-document/step-builder-document.component.d.ts +11 -3
- package/package.json +1 -1
- package/styles.css +1 -1
|
@@ -3,10 +3,13 @@ import { FormBuilder, FormGroup, FormArray } from '@angular/forms';
|
|
|
3
3
|
import { DynamicSelectFieldConfig, SelectOption } from '../../dynamic-select/dynamic-select-field.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare type TemplateSourceType = 'existing' | 'upload' | 'createNew';
|
|
6
|
-
export interface
|
|
7
|
-
key: string;
|
|
6
|
+
export interface DocumentMappingValueEntry {
|
|
8
7
|
valueType: string;
|
|
9
8
|
value: string;
|
|
9
|
+
}
|
|
10
|
+
export interface DocumentMappingRow {
|
|
11
|
+
key: string;
|
|
12
|
+
values: DocumentMappingValueEntry[];
|
|
10
13
|
enabled?: boolean;
|
|
11
14
|
}
|
|
12
15
|
export interface DocumentFormData {
|
|
@@ -104,7 +107,7 @@ export declare class StepBuilderDocumentComponent implements OnInit, OnChanges {
|
|
|
104
107
|
get mappingsFormArray(): FormArray;
|
|
105
108
|
getDocumentTypeConfig(): DynamicSelectFieldConfig;
|
|
106
109
|
getTemplateSelectConfig(): DynamicSelectFieldConfig;
|
|
107
|
-
getValueTypeConfig(
|
|
110
|
+
getValueTypeConfig(rowIndex: number, valueIndex: number): DynamicSelectFieldConfig;
|
|
108
111
|
getDelimeterConfig(): DynamicSelectFieldConfig;
|
|
109
112
|
get isTxtSelected(): boolean;
|
|
110
113
|
get isCsvSelected(): boolean;
|
|
@@ -118,6 +121,11 @@ export declare class StepBuilderDocumentComponent implements OnInit, OnChanges {
|
|
|
118
121
|
addMapping(): void;
|
|
119
122
|
removeMapping(index: number): void;
|
|
120
123
|
getMappingFormGroup(index: number): FormGroup;
|
|
124
|
+
private buildValueEntry;
|
|
125
|
+
getValuesFormArray(rowIndex: number): FormArray;
|
|
126
|
+
getValueFormGroup(rowIndex: number, valueIndex: number): FormGroup;
|
|
127
|
+
addValueEntry(rowIndex: number): void;
|
|
128
|
+
removeValueEntry(rowIndex: number, valueIndex: number): void;
|
|
121
129
|
/** True when every mapping row has enabled === true */
|
|
122
130
|
get allMappingsSelected(): boolean;
|
|
123
131
|
/** True when at least one mapping row has enabled === true (for header indeterminate) */
|