ngx-t-forms-types 0.0.10 → 0.0.12
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/dist/interfaces/Form/ArrayFunctions.d.ts +2 -0
- package/dist/interfaces/FormBuilder/DefaultEelement.js +39 -0
- package/dist/interfaces/FormBuilder/DefaultInputConfigInterface.d.ts +9 -1
- package/dist/interfaces/FormBuilder/FormInputKeys.d.ts +8 -1
- package/dist/interfaces/FormBuilder/FormInputKeys.js +7 -0
- package/dist/interfaces/FormBuilder/elementEditor.d.ts +5 -1
- package/dist/interfaces/FormBuilder/elementEditor.js +4 -0
- package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.js +60 -3
- package/dist/interfaces/FormSlide/accessTree.d.ts +2 -6
- package/dist/interfaces/Tower/ITowerFormSteps.d.ts +5 -1
- package/dist/interfaces/Tower/index.d.ts +2 -2
- package/dist/interfaces/environment/IStoreFunctions.d.ts +7 -2
- package/dist/interfaces/formInput/BasicFormInputInterface.d.ts +6 -5
- package/dist/interfaces/formInput/BasicFormInputInterface.js +1 -0
- package/dist/interfaces/formInput/MscoaInput.d.ts +8 -0
- package/dist/interfaces/formInput/ToggleInputInterface.d.ts +2 -0
- package/dist/interfaces/formInput/WorkflowAdjudication.d.ts +44 -0
- package/dist/interfaces/formInput/WorkflowAdjudication.js +7 -0
- package/dist/interfaces/formInput/index.d.ts +3 -2
- package/dist/interfaces/formInput/index.js +2 -1
- package/dist/schemas/FormInputSchema.js +13 -3
- package/package.json +1 -1
|
@@ -126,6 +126,8 @@ export const DefaultInputConfig = {
|
|
|
126
126
|
AllFormInputPrimaryKeys.Value,
|
|
127
127
|
AllFormInputPrimaryKeys.LabelPosition,
|
|
128
128
|
AllFormInputPrimaryKeys.HintLabel,
|
|
129
|
+
AllFormInputPrimaryKeys.TrueLabel,
|
|
130
|
+
AllFormInputPrimaryKeys.FalseLabel,
|
|
129
131
|
],
|
|
130
132
|
elementTemplate: {
|
|
131
133
|
element: ElementTypes.Toggle,
|
|
@@ -138,6 +140,8 @@ export const DefaultInputConfig = {
|
|
|
138
140
|
colSize: 12,
|
|
139
141
|
validators: [],
|
|
140
142
|
dataType: InputDataTypes.Boolean,
|
|
143
|
+
falseLabel: 'Yes',
|
|
144
|
+
trueLabel: 'No',
|
|
141
145
|
},
|
|
142
146
|
},
|
|
143
147
|
[ElementTypes.Select]: {
|
|
@@ -585,6 +589,41 @@ export const DefaultInputConfig = {
|
|
|
585
589
|
dataType: InputDataTypes.String,
|
|
586
590
|
},
|
|
587
591
|
},
|
|
592
|
+
[ElementTypes.WorkflowAdjudication]: {
|
|
593
|
+
label: 'Workflow Adjudication',
|
|
594
|
+
illustration: '/assets/tableSelect.svg',
|
|
595
|
+
disabled: false,
|
|
596
|
+
requiredProperties: [
|
|
597
|
+
AllFormInputPrimaryKeys.Label,
|
|
598
|
+
AllFormInputPrimaryKeys.Appearance,
|
|
599
|
+
AllFormInputPrimaryKeys.FormControlName,
|
|
600
|
+
AllFormInputPrimaryKeys.Required,
|
|
601
|
+
AllFormInputPrimaryKeys.AdjudicationStep,
|
|
602
|
+
],
|
|
603
|
+
properties: [
|
|
604
|
+
AllFormInputPrimaryKeys.Label,
|
|
605
|
+
AllFormInputPrimaryKeys.Appearance,
|
|
606
|
+
AllFormInputPrimaryKeys.FormControlName,
|
|
607
|
+
AllFormInputPrimaryKeys.Validators,
|
|
608
|
+
AllFormInputPrimaryKeys.Required,
|
|
609
|
+
AllFormInputPrimaryKeys.Value,
|
|
610
|
+
AllFormInputPrimaryKeys.HintLabel,
|
|
611
|
+
AllFormInputPrimaryKeys.AdjudicationStep,
|
|
612
|
+
AllFormInputPrimaryKeys.AdjudicationPointTypes,
|
|
613
|
+
AllFormInputPrimaryKeys.MinLength,
|
|
614
|
+
AllFormInputPrimaryKeys.MaxLength
|
|
615
|
+
],
|
|
616
|
+
elementTemplate: {
|
|
617
|
+
element: ElementTypes.WorkflowAdjudication,
|
|
618
|
+
appearance: 'outline',
|
|
619
|
+
isCalculatedField: false,
|
|
620
|
+
required: true,
|
|
621
|
+
onlySetTempErrorOnTouch: false,
|
|
622
|
+
colSize: 12,
|
|
623
|
+
validators: [],
|
|
624
|
+
dataType: InputDataTypes.Array,
|
|
625
|
+
},
|
|
626
|
+
},
|
|
588
627
|
// [ElementTypes.MatrixTable]: {
|
|
589
628
|
// label: 'Comparison Table',
|
|
590
629
|
// illustration: '/assets/matrix.svg',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementTypes, IToggleInput, ITextareaProperties, IDateRangePickerInput, IFileUploadInput, IMultiple } from "../formInput";
|
|
1
|
+
import { ElementTypes, IToggleInput, ITextareaProperties, IDateRangePickerInput, IFileUploadInput, IMultiple, IWorkflowAdjudicationInput } from "../formInput";
|
|
2
2
|
import { IFormElementTemplate } from "../formInput/BasicFormInputInterface";
|
|
3
3
|
import { IMscoaFormInput } from "../formInput/MscoaInput";
|
|
4
4
|
import { IRichTextEditor } from "../formInput/RichTextEditorInput";
|
|
@@ -141,4 +141,12 @@ export interface DefaultInputConfigInterface {
|
|
|
141
141
|
elementTemplate: IWorkflowDocumentPicker;
|
|
142
142
|
requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
|
|
143
143
|
};
|
|
144
|
+
[ElementTypes.WorkflowAdjudication]: {
|
|
145
|
+
label: string;
|
|
146
|
+
disabled: boolean;
|
|
147
|
+
illustration: string;
|
|
148
|
+
properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
|
|
149
|
+
elementTemplate: IWorkflowAdjudicationInput;
|
|
150
|
+
requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
|
|
151
|
+
};
|
|
144
152
|
}
|
|
@@ -85,5 +85,12 @@ export declare enum AllFormInputPrimaryKeys {
|
|
|
85
85
|
Status = "status",
|
|
86
86
|
ViewType = "viewType",
|
|
87
87
|
FormIsOpen = "formIsOpen",
|
|
88
|
-
LinkedSegmentId = "linkedSegmentId"
|
|
88
|
+
LinkedSegmentId = "linkedSegmentId",
|
|
89
|
+
CanReload = "canReload",
|
|
90
|
+
WorkflowFormForScoreSheet = "workflowFormForScoreSheet",
|
|
91
|
+
AdjudicationStep = "adjudicationStep",
|
|
92
|
+
AdjudicationPointTypes = "adjudicationPointTypes",
|
|
93
|
+
AdjudicationReviewFeedbackTemplate = "adjudicationReviewFeedbackTemplate",
|
|
94
|
+
TrueLabel = "trueLabel",
|
|
95
|
+
FalseLabel = "falseLabel"
|
|
89
96
|
}
|
|
@@ -90,4 +90,11 @@ export var AllFormInputPrimaryKeys;
|
|
|
90
90
|
AllFormInputPrimaryKeys["ViewType"] = "viewType";
|
|
91
91
|
AllFormInputPrimaryKeys["FormIsOpen"] = "formIsOpen";
|
|
92
92
|
AllFormInputPrimaryKeys["LinkedSegmentId"] = "linkedSegmentId";
|
|
93
|
+
AllFormInputPrimaryKeys["CanReload"] = "canReload";
|
|
94
|
+
AllFormInputPrimaryKeys["WorkflowFormForScoreSheet"] = "workflowFormForScoreSheet";
|
|
95
|
+
AllFormInputPrimaryKeys["AdjudicationStep"] = "adjudicationStep";
|
|
96
|
+
AllFormInputPrimaryKeys["AdjudicationPointTypes"] = "adjudicationPointTypes";
|
|
97
|
+
AllFormInputPrimaryKeys["AdjudicationReviewFeedbackTemplate"] = "adjudicationReviewFeedbackTemplate";
|
|
98
|
+
AllFormInputPrimaryKeys["TrueLabel"] = "trueLabel";
|
|
99
|
+
AllFormInputPrimaryKeys["FalseLabel"] = "falseLabel";
|
|
93
100
|
})(AllFormInputPrimaryKeys || (AllFormInputPrimaryKeys = {}));
|
|
@@ -11,6 +11,9 @@ export declare enum ElementEditorTypes {
|
|
|
11
11
|
Range = "range",
|
|
12
12
|
ChipSelect = "chipSelect",
|
|
13
13
|
WorkflowPicker = "workflowPicker",
|
|
14
|
+
SelectMember = "selectMember",
|
|
15
|
+
WorkflowStepPicker = "workflowStepPicker",
|
|
16
|
+
FormPicker = "formPicker",
|
|
14
17
|
OptionSelect = "optionSelect",
|
|
15
18
|
SelectionOptions = "selectionOptions",
|
|
16
19
|
ApiCall = "apiCall",
|
|
@@ -29,7 +32,8 @@ export declare enum ElementEditorTypes {
|
|
|
29
32
|
ChipOptionsCreator = "chipOptionsCreator",
|
|
30
33
|
default = "default",
|
|
31
34
|
DataSourcePicker = "dataSourcePicker",
|
|
32
|
-
ListLabelConfigEditor = "listLabelConfigEditor"
|
|
35
|
+
ListLabelConfigEditor = "listLabelConfigEditor",
|
|
36
|
+
DecisionGateSettings = "decisionGateSettings"
|
|
33
37
|
}
|
|
34
38
|
export interface ElementEditorConfigInterface {
|
|
35
39
|
editorSections: Array<ElementEditorConfigSectionInterface>;
|
|
@@ -5,6 +5,9 @@ export var ElementEditorTypes;
|
|
|
5
5
|
ElementEditorTypes["Range"] = "range";
|
|
6
6
|
ElementEditorTypes["ChipSelect"] = "chipSelect";
|
|
7
7
|
ElementEditorTypes["WorkflowPicker"] = "workflowPicker";
|
|
8
|
+
ElementEditorTypes["SelectMember"] = "selectMember";
|
|
9
|
+
ElementEditorTypes["WorkflowStepPicker"] = "workflowStepPicker";
|
|
10
|
+
ElementEditorTypes["FormPicker"] = "formPicker";
|
|
8
11
|
ElementEditorTypes["OptionSelect"] = "optionSelect";
|
|
9
12
|
ElementEditorTypes["SelectionOptions"] = "selectionOptions";
|
|
10
13
|
ElementEditorTypes["ApiCall"] = "apiCall";
|
|
@@ -24,6 +27,7 @@ export var ElementEditorTypes;
|
|
|
24
27
|
ElementEditorTypes["default"] = "default";
|
|
25
28
|
ElementEditorTypes["DataSourcePicker"] = "dataSourcePicker";
|
|
26
29
|
ElementEditorTypes["ListLabelConfigEditor"] = "listLabelConfigEditor";
|
|
30
|
+
ElementEditorTypes["DecisionGateSettings"] = "decisionGateSettings";
|
|
27
31
|
})(ElementEditorTypes || (ElementEditorTypes = {}));
|
|
28
32
|
// interface TStringExpressionValidationTest{
|
|
29
33
|
// expression: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CurrenciesList } from "../../../Configs/currencies";
|
|
2
2
|
import { DatePipeOptions } from "../../../Configs/datePipes";
|
|
3
|
-
import { ElementTypes, InputDataTypes, InputPipeTypes, InputTypes } from "../../formInput";
|
|
3
|
+
import { AdjudicationSteps, ElementTypes, InputDataTypes, InputPipeTypes, InputTypes } from "../../formInput";
|
|
4
4
|
import { DataSources } from "../../formInput/APIDataFetchingConfigurationInterface";
|
|
5
5
|
import { InputFileType } from "../../formInput/FileUploadInputInterface";
|
|
6
6
|
import { RichTextEditorType } from "../../formInput/RichTextEditorInput";
|
|
@@ -296,6 +296,63 @@ export var ElementConfig = {
|
|
|
296
296
|
hint: `Create a MongoDB aggregation pipeline to fetch document options from your database.`,
|
|
297
297
|
id: "1b826f36-08ad-46b5-86ea-c1c48fd90f51"
|
|
298
298
|
},
|
|
299
|
+
{
|
|
300
|
+
name: AllFormInputPrimaryKeys.AdjudicationStep,
|
|
301
|
+
label: 'Adjudication step type',
|
|
302
|
+
deepBind: [AllFormInputPrimaryKeys.AdjudicationStep],
|
|
303
|
+
hint: `Select the adjudication step type for this input. This determines how the input will be used in the adjudication process.`,
|
|
304
|
+
id: "fb93e65a-d56a-4979-9615-5138133df919",
|
|
305
|
+
editType: ElementEditorTypes.ChipSelect,
|
|
306
|
+
options: Object.values(AdjudicationSteps).map((type) => ({ label: type, value: type })),
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
name: AllFormInputPrimaryKeys.AdjudicationPointTypes,
|
|
310
|
+
deepBind: [AllFormInputPrimaryKeys.AdjudicationPointTypes],
|
|
311
|
+
editType: ElementEditorTypes.ChipOptionsCreator,
|
|
312
|
+
additionalTest: [
|
|
313
|
+
{
|
|
314
|
+
expression: `${AllFormInputPrimaryKeys.AdjudicationStep} === ${AdjudicationSteps.ScoreCreation}`,
|
|
315
|
+
deepBind: [AllFormInputPrimaryKeys.AdjudicationStep],
|
|
316
|
+
}
|
|
317
|
+
],
|
|
318
|
+
label: 'Adjudication point types',
|
|
319
|
+
hint: `Configure adjudication point types for this input.
|
|
320
|
+
This allows grouping or filtering points based on specific criteria, such as 'Functional', 'Financial'.
|
|
321
|
+
.`,
|
|
322
|
+
id: "88e9e85c-66d8-4df3-9742-eba1f7e47a01"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
name: AllFormInputPrimaryKeys.AdjudicationStep,
|
|
326
|
+
deepBind: [AllFormInputPrimaryKeys.AdjudicationReviewFeedbackTemplate],
|
|
327
|
+
editType: ElementEditorTypes.RichTextEditor,
|
|
328
|
+
additionalTest: [
|
|
329
|
+
{
|
|
330
|
+
expression: `${AllFormInputPrimaryKeys.AdjudicationStep} === ${AdjudicationSteps.SubMissionReview}`,
|
|
331
|
+
deepBind: [AllFormInputPrimaryKeys.AdjudicationStep],
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
label: 'Submission review Notes template',
|
|
335
|
+
hint: `
|
|
336
|
+
This helps the adjudicator to provide feedback on the submission. Add $bidderName, $bidderCode, $responseDate, $responsePreferenceCalculation to the template to dynamically insert values.
|
|
337
|
+
.`,
|
|
338
|
+
id: "3907f723-b62b-4387-8f8f-133481ada45b"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
name: AllFormInputPrimaryKeys.FalseLabel,
|
|
342
|
+
deepBind: [AllFormInputPrimaryKeys.FalseLabel],
|
|
343
|
+
editType: ElementEditorTypes.Input,
|
|
344
|
+
id: "1787396c-cce6-4ae0-942f-6f7f0ec26fef",
|
|
345
|
+
label: 'False label',
|
|
346
|
+
hint: `Label for the false state of a toggle input.`,
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
name: AllFormInputPrimaryKeys.TrueLabel,
|
|
350
|
+
deepBind: [AllFormInputPrimaryKeys.TrueLabel],
|
|
351
|
+
editType: ElementEditorTypes.Input,
|
|
352
|
+
id: "a4647022-ab27-4ce6-8853-0b295ec3b0ce",
|
|
353
|
+
label: 'True label',
|
|
354
|
+
hint: `Label for the true state of a toggle input. This is used when the input type is 'toggle' or 'checkbox'.`,
|
|
355
|
+
},
|
|
299
356
|
],
|
|
300
357
|
},
|
|
301
358
|
{
|
|
@@ -633,9 +690,9 @@ export var ElementConfig = {
|
|
|
633
690
|
id: "6a047c2f-ff33-4154-8c07-90d5272346a4"
|
|
634
691
|
},
|
|
635
692
|
{
|
|
636
|
-
name:
|
|
693
|
+
name: SpecialElementKeys.Default,
|
|
637
694
|
editType: ElementEditorTypes.Input,
|
|
638
|
-
deepBind: [AllFormInputPrimaryKeys.TourContent
|
|
695
|
+
deepBind: [AllFormInputPrimaryKeys.TourContent],
|
|
639
696
|
label: 'App tour message',
|
|
640
697
|
id: "a72704ba-d2a9-4884-bc90-14dac84b7d23"
|
|
641
698
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IArrayFunction } from "../Form/ArrayFunctions";
|
|
1
2
|
export interface TreeNode {
|
|
2
3
|
key: string;
|
|
3
4
|
value: any;
|
|
@@ -6,12 +7,7 @@ export interface TreeNode {
|
|
|
6
7
|
inEdit?: boolean;
|
|
7
8
|
path: string[];
|
|
8
9
|
keyIsArrayIndex?: boolean;
|
|
9
|
-
functions:
|
|
10
|
-
function: "filter" | "find";
|
|
11
|
-
id: string;
|
|
12
|
-
expression: string;
|
|
13
|
-
inEdit?: boolean;
|
|
14
|
-
}[];
|
|
10
|
+
functions: IArrayFunction[];
|
|
15
11
|
}
|
|
16
12
|
export interface FlatNode {
|
|
17
13
|
expandable: boolean;
|
|
@@ -5,12 +5,16 @@ import { FormListSection, FormStateErrors, IFormsInitStateInterface, LocalFormSt
|
|
|
5
5
|
import { DatabaseFormInterface } from '../Form/formInterface';
|
|
6
6
|
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
7
7
|
export interface ITowerStepColumn extends FormColumnInputs {
|
|
8
|
-
canReload:
|
|
8
|
+
canReload: IInputCanReload;
|
|
9
9
|
inputConfigErrors: {
|
|
10
10
|
key: string;
|
|
11
11
|
message: string;
|
|
12
12
|
}[];
|
|
13
13
|
}
|
|
14
|
+
export interface IInputCanReload {
|
|
15
|
+
emit: () => void;
|
|
16
|
+
canReload: boolean;
|
|
17
|
+
}
|
|
14
18
|
export interface ITowerFormSteps {
|
|
15
19
|
label: string;
|
|
16
20
|
sectionId: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FormsStoreSelectorsInterface, ITowerFormSteps } from "./ITowerFormSteps";
|
|
2
|
-
export { ITowerFormSteps, FormsStoreSelectorsInterface };
|
|
1
|
+
import { FormsStoreSelectorsInterface, ITowerFormSteps, ITowerStepColumn } from "./ITowerFormSteps";
|
|
2
|
+
export { ITowerFormSteps, FormsStoreSelectorsInterface, ITowerStepColumn };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
-
import { DatabaseFormInterface, FileUploadFn, FormInterface } from "../Form";
|
|
2
|
+
import { DatabaseFormInterface, FileUploadFn, FormColumnInputs, FormInterface } from "../Form";
|
|
3
3
|
import { IWorkflowOption } from "../FormBuilder";
|
|
4
|
-
import { IGetTreeResponse } from "../formInput";
|
|
4
|
+
import { AdjResponseReviewColumnMapping, IGetTreeResponse } from "../formInput";
|
|
5
5
|
import { FormListSection } from "../Form/IFormsInitStateInterface";
|
|
6
6
|
import { IUserSignature } from "../formInput/userSignature";
|
|
7
7
|
import { PointGroup } from "signature_pad";
|
|
@@ -39,6 +39,7 @@ export interface IStoreFunctions {
|
|
|
39
39
|
toastError: (message: string) => void;
|
|
40
40
|
workflows: () => Observable<IWorkflowOption[]>;
|
|
41
41
|
getWorkflowCols: (workflowId: string) => Observable<IWorkflowDocListCols[]>;
|
|
42
|
+
getCurrentFormAvailableInputOptions: () => Observable<Array<FormColumnInputs>>;
|
|
42
43
|
getSelectedDocument: (documentId: string) => Observable<any>;
|
|
43
44
|
getScoaTree: () => Observable<IGetTreeResponse>;
|
|
44
45
|
getSCOAAccount(SCOAAccount: string): Observable<any>;
|
|
@@ -58,4 +59,8 @@ export interface IStoreFunctions {
|
|
|
58
59
|
saveUserSignature: (signature: PointGroup[]) => Observable<void>;
|
|
59
60
|
httpPostDataFunction: (url: string, data: any, options?: any) => Observable<any>;
|
|
60
61
|
httpGetDataFunction: (url: string, options?: any) => Observable<any>;
|
|
62
|
+
getCurrentStepMicroflowSubmissions: () => Observable<{
|
|
63
|
+
submissions: any[];
|
|
64
|
+
columnMapping: AdjResponseReviewColumnMapping;
|
|
65
|
+
}>;
|
|
61
66
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MatFormFieldAppearance } from "@angular/material/form-field";
|
|
2
|
-
import { IFileUploadInput, IMatrixInput, IScoaInput, IMultiple, IToggleInput } from ".";
|
|
2
|
+
import { IFileUploadInput, IMatrixInput, IScoaInput, IMultiple, IToggleInput, IWorkflowAdjudicationInput } from ".";
|
|
3
3
|
import { ConditionalInputRule } from "./ConditionalInputRule";
|
|
4
4
|
import { IDateRangePickerInput } from "./DateRangePickerInput";
|
|
5
5
|
import { FormControlCustomValidatorsInterface } from "./FormControlCustomValidatorsInterface";
|
|
@@ -8,7 +8,7 @@ import { ITextareaProperties } from "./TextAreaInput";
|
|
|
8
8
|
import { CalculatedFieldRules } from "./calculatedFieldRules";
|
|
9
9
|
import { IRichTextEditor } from "./RichTextEditorInput";
|
|
10
10
|
import { IWorkflowDocumentPicker } from "./WorkflowDocumentPicker";
|
|
11
|
-
export type FormColumnInputs = IBasicFormInput & IWorkflowDocumentPicker & IFileUploadInput & IDateRangePickerInput & ITextareaProperties & IToggleInput & IMatrixInput & IMultiple & IScoaInput & IRichTextEditor;
|
|
11
|
+
export type FormColumnInputs = IBasicFormInput & IWorkflowDocumentPicker & IFileUploadInput & IDateRangePickerInput & ITextareaProperties & IToggleInput & IMatrixInput & IMultiple & IScoaInput & IRichTextEditor & IWorkflowAdjudicationInput;
|
|
12
12
|
export declare enum ElementTypes {
|
|
13
13
|
Input = "input",
|
|
14
14
|
Location = "location",
|
|
@@ -26,7 +26,8 @@ export declare enum ElementTypes {
|
|
|
26
26
|
MultipleInput = "multipleInput",
|
|
27
27
|
Editor = "editor",
|
|
28
28
|
MscoaSelection = "mscoaSelection",
|
|
29
|
-
WorkflowDocumentPicker = "workflowDocumentPicker"
|
|
29
|
+
WorkflowDocumentPicker = "workflowDocumentPicker",
|
|
30
|
+
WorkflowAdjudication = "workflowAdjudication"
|
|
30
31
|
}
|
|
31
32
|
export declare enum InputTypes {
|
|
32
33
|
Text = "text",
|
|
@@ -119,8 +120,8 @@ export interface IBasicFormInput extends IFormElementTemplate {
|
|
|
119
120
|
max?: number | string | Date | MaxMinCustomScripts;
|
|
120
121
|
tourContent?: string;
|
|
121
122
|
viewType?: InputViewTypes;
|
|
122
|
-
maxLength?: number;
|
|
123
|
-
minLength?: number;
|
|
123
|
+
maxLength?: number | string;
|
|
124
|
+
minLength?: number | string;
|
|
124
125
|
placeholder?: string;
|
|
125
126
|
pattern?: string;
|
|
126
127
|
spellcheck?: boolean;
|
|
@@ -21,6 +21,7 @@ export var ElementTypes;
|
|
|
21
21
|
ElementTypes["Editor"] = "editor";
|
|
22
22
|
ElementTypes["MscoaSelection"] = "mscoaSelection";
|
|
23
23
|
ElementTypes["WorkflowDocumentPicker"] = "workflowDocumentPicker";
|
|
24
|
+
ElementTypes["WorkflowAdjudication"] = "workflowAdjudication";
|
|
24
25
|
// Add other types as needed
|
|
25
26
|
})(ElementTypes || (ElementTypes = {}));
|
|
26
27
|
export var InputTypes;
|
|
@@ -13,4 +13,12 @@ export interface IMscoaFormInput extends IBasicFormInput {
|
|
|
13
13
|
export interface ScoaInnerInput extends FormColumnInputs {
|
|
14
14
|
linkedSegmentId: string;
|
|
15
15
|
}
|
|
16
|
+
export interface ScoreSheetItem {
|
|
17
|
+
id: string;
|
|
18
|
+
formControlName: string;
|
|
19
|
+
totalPoints: number;
|
|
20
|
+
description: string;
|
|
21
|
+
label: string;
|
|
22
|
+
[key: string]: number | string;
|
|
23
|
+
}
|
|
16
24
|
export declare var MSCOA_INPUT_DEFAULT_MAT_OPTIONS: MatDataOptionsInterface;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IBasicFormInput } from "./BasicFormInputInterface";
|
|
2
|
+
export interface WorkflowAdjudicationScoreSheetValue {
|
|
3
|
+
id: string;
|
|
4
|
+
formControlName: string;
|
|
5
|
+
totalPoints: number;
|
|
6
|
+
description: string;
|
|
7
|
+
pointType?: string;
|
|
8
|
+
inputId?: string;
|
|
9
|
+
isEditRow?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface AdjResponseReviewColumnMapping {
|
|
12
|
+
respondentNameKey: string;
|
|
13
|
+
respondentCodeKey: string;
|
|
14
|
+
responsePreferenceCalculationKey?: string;
|
|
15
|
+
responseDateKey?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface WorkflowAdjudicationMicroFlowReviewValue {
|
|
18
|
+
id: string;
|
|
19
|
+
adj_microFlow_review: boolean;
|
|
20
|
+
nameOfBidder: string;
|
|
21
|
+
supplierNumber: string;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
updatedAt: Date;
|
|
24
|
+
adjudicationPricePreferenceCalculation: number;
|
|
25
|
+
reference: string;
|
|
26
|
+
}
|
|
27
|
+
export interface WorkflowAdjudicationResponseElectedSupplierSelectionValue {
|
|
28
|
+
id: string;
|
|
29
|
+
supplierNumber: string;
|
|
30
|
+
resolutionNotes: string;
|
|
31
|
+
resolutionAttachment: string;
|
|
32
|
+
}
|
|
33
|
+
export declare enum AdjudicationSteps {
|
|
34
|
+
ScoreCreation = "scoreCreation",
|
|
35
|
+
SubMissionReview = "subMissionReview",
|
|
36
|
+
PointAssignment = "pointAssignment",
|
|
37
|
+
SupplierSelection = "supplierSelection"
|
|
38
|
+
}
|
|
39
|
+
export interface IWorkflowAdjudicationInput extends IBasicFormInput {
|
|
40
|
+
workflowFormForScoreSheet: string;
|
|
41
|
+
adjudicationStep: AdjudicationSteps;
|
|
42
|
+
adjudicationPointTypes: string[];
|
|
43
|
+
adjudicationReviewFeedbackTemplate: any;
|
|
44
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var AdjudicationSteps;
|
|
2
|
+
(function (AdjudicationSteps) {
|
|
3
|
+
AdjudicationSteps["ScoreCreation"] = "scoreCreation";
|
|
4
|
+
AdjudicationSteps["SubMissionReview"] = "subMissionReview";
|
|
5
|
+
AdjudicationSteps["PointAssignment"] = "pointAssignment";
|
|
6
|
+
AdjudicationSteps["SupplierSelection"] = "supplierSelection";
|
|
7
|
+
})(AdjudicationSteps || (AdjudicationSteps = {}));
|
|
@@ -11,14 +11,15 @@ import { IAccountSegmentTreeKeys, IGetTreeResponse, IIncludedSegmentConfig, ISco
|
|
|
11
11
|
import { MatDataOptionsInterface } from "./MatDataOptionsInterface";
|
|
12
12
|
import { IMatrixInput } from "./MatrixInputInterface";
|
|
13
13
|
import { MinInputMapInput, MinInputTypes, MinimumInputRequiredInterface } from "./MinimumInputRequiredInterface";
|
|
14
|
-
import { ScoaInnerInput } from "./MscoaInput";
|
|
14
|
+
import { ScoaInnerInput, ScoreSheetItem } from "./MscoaInput";
|
|
15
15
|
import { IMultiple, IMultipleInputCal } from "./MultipleInterface";
|
|
16
16
|
import { TableColumnConfigInterface, TableConfigurationsInterface } from "./TableConfigurationsInterface";
|
|
17
17
|
import { ITextareaProperties } from "./TextAreaInput";
|
|
18
18
|
import { IToggleInput } from "./ToggleInputInterface";
|
|
19
|
+
import { AdjResponseReviewColumnMapping, AdjudicationSteps, IWorkflowAdjudicationInput, WorkflowAdjudicationMicroFlowReviewValue, WorkflowAdjudicationResponseElectedSupplierSelectionValue, WorkflowAdjudicationScoreSheetValue } from "./WorkflowAdjudication";
|
|
19
20
|
import { IWorkflowDocumentPicker, IWorkflowDocumentPickerConfig, workflowStepStatus } from "./WorkflowDocumentPicker";
|
|
20
21
|
import { CalculatedFieldRules } from "./calculatedFieldRules";
|
|
21
22
|
import { CalculationFunctions, calculationVariableInterface } from "./calculationVariableInterface";
|
|
22
23
|
import { ValidationError, ValidationOptions } from "./schema";
|
|
23
24
|
import { IUserSignature } from "./userSignature";
|
|
24
|
-
export { ElementTypes, InputTypes, InputPipeTypes, AutocapitalizeOptions, AutocompleteOptions, InputDataTypes, MinInputTypes, IBasicFormInput, IFileUploadInput, IDateRangePickerInput, ITextareaProperties, IToggleInput, IMatrixInput, IMultiple, IMultipleInputCal, IScoaInput, TableConfigurationsInterface, TableColumnConfigInterface, FormControlCustomValidatorsInterface, MinimumInputRequiredInterface, MinInputMapInput, CalculatedFieldRules, calculationVariableInterface, APIDataFetchingConfigurationInterface, IGetTreeResponse, CalculationFunctions, TreeNode, IPostmanCollection, IFolderItem, FileUploadInputValueInterface, AllDocumentFileExtensions, AllImageFileExtensions, UploadTypes, InputFileType, IScoaAccount, IScoaInputConfig, ITableScoaSelectionRow, ScoaSegmentValue, IIncludedSegmentConfig, ScoaAccountTree, IUserSignature, ValidationOptions, ValidationError, MatDataOptionsInterface, MongoDbPipeLineConfigInterface, InputAPIDataId, FormInputBasicOptionInterface, ScoaInterface, ScoaInnerInput, IAccountSegmentTreeKeys, IWorkflowDocumentPicker, IWorkflowDocumentPickerConfig, workflowStepStatus, IWorkflowDocListCols };
|
|
25
|
+
export { ElementTypes, InputTypes, InputPipeTypes, AutocapitalizeOptions, AutocompleteOptions, InputDataTypes, MinInputTypes, IBasicFormInput, IFileUploadInput, IDateRangePickerInput, ITextareaProperties, IToggleInput, IMatrixInput, IMultiple, IMultipleInputCal, IScoaInput, TableConfigurationsInterface, TableColumnConfigInterface, FormControlCustomValidatorsInterface, MinimumInputRequiredInterface, MinInputMapInput, CalculatedFieldRules, calculationVariableInterface, APIDataFetchingConfigurationInterface, IGetTreeResponse, CalculationFunctions, TreeNode, IPostmanCollection, IFolderItem, FileUploadInputValueInterface, AllDocumentFileExtensions, AllImageFileExtensions, UploadTypes, InputFileType, IScoaAccount, IScoaInputConfig, ITableScoaSelectionRow, ScoaSegmentValue, IIncludedSegmentConfig, ScoaAccountTree, IUserSignature, ValidationOptions, ValidationError, MatDataOptionsInterface, MongoDbPipeLineConfigInterface, InputAPIDataId, FormInputBasicOptionInterface, ScoaInterface, ScoaInnerInput, IAccountSegmentTreeKeys, IWorkflowDocumentPicker, IWorkflowDocumentPickerConfig, workflowStepStatus, IWorkflowDocListCols, AdjudicationSteps, IWorkflowAdjudicationInput, WorkflowAdjudicationScoreSheetValue, WorkflowAdjudicationMicroFlowReviewValue, WorkflowAdjudicationResponseElectedSupplierSelectionValue, ScoreSheetItem, AdjResponseReviewColumnMapping };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AutocapitalizeOptions, AutocompleteOptions, ElementTypes, InputDataTypes, InputPipeTypes, InputTypes } from "./BasicFormInputInterface";
|
|
2
2
|
import { AllDocumentFileExtensions, AllImageFileExtensions, InputFileType, UploadTypes } from "./FileUploadInputInterface";
|
|
3
3
|
import { MinInputTypes } from "./MinimumInputRequiredInterface";
|
|
4
|
+
import { AdjudicationSteps } from "./WorkflowAdjudication";
|
|
4
5
|
import { workflowStepStatus } from "./WorkflowDocumentPicker";
|
|
5
6
|
import { CalculationFunctions } from "./calculationVariableInterface";
|
|
6
7
|
export {
|
|
7
8
|
///ENUMS
|
|
8
|
-
ElementTypes, InputTypes, InputPipeTypes, AutocapitalizeOptions, AutocompleteOptions, InputDataTypes, MinInputTypes, CalculationFunctions, AllDocumentFileExtensions, AllImageFileExtensions, UploadTypes, InputFileType, workflowStepStatus };
|
|
9
|
+
ElementTypes, InputTypes, InputPipeTypes, AutocapitalizeOptions, AutocompleteOptions, InputDataTypes, MinInputTypes, CalculationFunctions, AllDocumentFileExtensions, AllImageFileExtensions, UploadTypes, InputFileType, workflowStepStatus, AdjudicationSteps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Joi from 'joi';
|
|
2
2
|
import { AllFormInputPrimaryKeys } from '../interfaces/FormBuilder';
|
|
3
|
-
import { AutocapitalizeOptions, ElementTypes, InputDataTypes, InputPipeTypes, InputTypes } from '../interfaces/formInput';
|
|
3
|
+
import { AdjudicationSteps, AutocapitalizeOptions, ElementTypes, InputDataTypes, InputPipeTypes, InputTypes } from '../interfaces/formInput';
|
|
4
4
|
// import { InputFileType } from '../interfaces/formInput/FileUploadInputInterface';
|
|
5
5
|
// import { LabelPosition } from '../interfaces/formInput/ToggleInputInterface';
|
|
6
6
|
// import { MscoaInputConfigSchema } from './MscoaConfigSchema';
|
|
@@ -31,10 +31,12 @@ export const baseFormColumnInputsSchema = Joi.object({
|
|
|
31
31
|
[AllFormInputPrimaryKeys.FileType]: Joi.string().valid(...Object.values(InputFileType)).optional(),
|
|
32
32
|
[AllFormInputPrimaryKeys.SingleSelect]: Joi.boolean().optional(),
|
|
33
33
|
[AllFormInputPrimaryKeys.LabelPosition]: Joi.string().valid(...Object.values(LabelPosition)).optional(),
|
|
34
|
+
[AllFormInputPrimaryKeys.FalseLabel]: Joi.string().optional(),
|
|
35
|
+
[AllFormInputPrimaryKeys.TrueLabel]: Joi.string().optional(),
|
|
34
36
|
[AllFormInputPrimaryKeys.Min]: Joi.alternatives().try(Joi.number(), Joi.string(), Joi.date()).optional(),
|
|
35
37
|
[AllFormInputPrimaryKeys.Max]: Joi.alternatives().try(Joi.number(), Joi.string(), Joi.date()).optional(),
|
|
36
|
-
[AllFormInputPrimaryKeys.MinLength]: Joi.number().
|
|
37
|
-
[AllFormInputPrimaryKeys.MaxLength]: Joi.number().
|
|
38
|
+
[AllFormInputPrimaryKeys.MinLength]: Joi.alternatives().try(Joi.number(), Joi.string()).optional(),
|
|
39
|
+
[AllFormInputPrimaryKeys.MaxLength]: Joi.alternatives().try(Joi.number(), Joi.string()).optional(),
|
|
38
40
|
[AllFormInputPrimaryKeys.LinkedSegmentId]: Joi.string().optional(),
|
|
39
41
|
[AllFormInputPrimaryKeys.MscoaConfig]: MscoaInputConfigSchema.optional(),
|
|
40
42
|
[AllFormInputPrimaryKeys.SystemDefault]: Joi.boolean().optional(),
|
|
@@ -72,7 +74,15 @@ export const baseFormColumnInputsSchema = Joi.object({
|
|
|
72
74
|
[AllFormInputPrimaryKeys.Status]: Joi.object().pattern(Joi.string(), Joi.string()).optional(),
|
|
73
75
|
[AllFormInputPrimaryKeys.ViewType]: Joi.string().valid(...Object.values(InputViewTypes)).optional(),
|
|
74
76
|
[AllFormInputPrimaryKeys.FormIsOpen]: Joi.boolean().optional(),
|
|
77
|
+
[AllFormInputPrimaryKeys.WorkflowFormForScoreSheet]: Joi.string().optional(),
|
|
78
|
+
[AllFormInputPrimaryKeys.AdjudicationStep]: Joi.string().valid(...Object.values(AdjudicationSteps)).optional(),
|
|
79
|
+
[AllFormInputPrimaryKeys.AdjudicationReviewFeedbackTemplate]: Joi.any().optional(),
|
|
80
|
+
[AllFormInputPrimaryKeys.AdjudicationPointTypes]: Joi.array().items(Joi.string()).optional(),
|
|
75
81
|
[AllFormInputPrimaryKeys.WorkflowPickerConfig]: workflowDocumentPickerConfigSchema.optional(),
|
|
82
|
+
[AllFormInputPrimaryKeys.CanReload]: Joi.object({
|
|
83
|
+
emit: Joi.function().required(),
|
|
84
|
+
canReload: Joi.boolean().required()
|
|
85
|
+
}).optional(),
|
|
76
86
|
}).id('formColumnInputs');
|
|
77
87
|
const formColumnInputsSchema = baseFormColumnInputsSchema.append({
|
|
78
88
|
[AllFormInputPrimaryKeys.FormInputs]: Joi.array().items(Joi.link('#formColumnInputs')).optional()
|