ngx-t-forms-types 0.0.10 → 0.0.11

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.
@@ -6,4 +6,6 @@ export declare enum FunctionTypes {
6
6
  export interface IArrayFunction {
7
7
  function: FunctionTypes;
8
8
  expression: string;
9
+ id: string;
10
+ inEdit?: boolean;
9
11
  }
@@ -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,39 @@ 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
+ ],
614
+ elementTemplate: {
615
+ element: ElementTypes.WorkflowAdjudication,
616
+ appearance: 'outline',
617
+ isCalculatedField: false,
618
+ required: true,
619
+ onlySetTempErrorOnTouch: false,
620
+ colSize: 12,
621
+ validators: [],
622
+ dataType: InputDataTypes.Array,
623
+ },
624
+ },
588
625
  // [ElementTypes.MatrixTable]: {
589
626
  // label: 'Comparison Table',
590
627
  // 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,11 @@ 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
+ TrueLabel = "trueLabel",
94
+ FalseLabel = "falseLabel"
89
95
  }
@@ -90,4 +90,10 @@ 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["TrueLabel"] = "trueLabel";
98
+ AllFormInputPrimaryKeys["FalseLabel"] = "falseLabel";
93
99
  })(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,47 @@ 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.FalseLabel,
326
+ deepBind: [AllFormInputPrimaryKeys.FalseLabel],
327
+ editType: ElementEditorTypes.Input,
328
+ id: "1787396c-cce6-4ae0-942f-6f7f0ec26fef",
329
+ label: 'False label',
330
+ hint: `Label for the false state of a toggle input.`,
331
+ },
332
+ {
333
+ name: AllFormInputPrimaryKeys.TrueLabel,
334
+ deepBind: [AllFormInputPrimaryKeys.TrueLabel],
335
+ editType: ElementEditorTypes.Input,
336
+ id: "a4647022-ab27-4ce6-8853-0b295ec3b0ce",
337
+ label: 'True label',
338
+ hint: `Label for the true state of a toggle input. This is used when the input type is 'toggle' or 'checkbox'.`,
339
+ },
299
340
  ],
300
341
  },
301
342
  {
@@ -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: boolean;
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,5 +1,5 @@
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
4
  import { IGetTreeResponse } from "../formInput";
5
5
  import { FormListSection } from "../Form/IFormsInitStateInterface";
@@ -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>;
@@ -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;
@@ -5,4 +5,6 @@ export declare enum LabelPosition {
5
5
  }
6
6
  export interface IToggleInput extends IBasicFormInput {
7
7
  labelPosition?: LabelPosition;
8
+ trueLabel?: string;
9
+ falseLabel?: string;
8
10
  }
@@ -0,0 +1,37 @@
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 WorkflowAdjudicationMicroFlowReviewValue {
12
+ id: string;
13
+ adj_microFlow_review: boolean;
14
+ nameOfBidder: string;
15
+ supplierNumber: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ adjudicationPricePreferenceCalculation: number;
19
+ reference: string;
20
+ }
21
+ export interface WorkflowAdjudicationResponseElectedSupplierSelectionValue {
22
+ id: string;
23
+ supplierNumber: string;
24
+ resolutionNotes: string;
25
+ resolutionAttachment: string;
26
+ }
27
+ export declare enum AdjudicationSteps {
28
+ ScoreCreation = "scoreCreation",
29
+ SubMissionReview = "subMissionReview",
30
+ PointAssignment = "pointAssignment",
31
+ SupplierSelection = "supplierSelection"
32
+ }
33
+ export interface IWorkflowAdjudicationInput extends IBasicFormInput {
34
+ workflowFormForScoreSheet: string;
35
+ adjudicationStep: AdjudicationSteps;
36
+ adjudicationPointTypes: string[];
37
+ }
@@ -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 { 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 };
@@ -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().integer().optional(),
37
- [AllFormInputPrimaryKeys.MaxLength]: Joi.number().integer().optional(),
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,14 @@ 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.AdjudicationPointTypes]: Joi.array().items(Joi.string()).optional(),
75
80
  [AllFormInputPrimaryKeys.WorkflowPickerConfig]: workflowDocumentPickerConfigSchema.optional(),
81
+ [AllFormInputPrimaryKeys.CanReload]: Joi.object({
82
+ emit: Joi.function().required(),
83
+ canReload: Joi.boolean().required()
84
+ }).optional(),
76
85
  }).id('formColumnInputs');
77
86
  const formColumnInputsSchema = baseFormColumnInputsSchema.append({
78
87
  [AllFormInputPrimaryKeys.FormInputs]: Joi.array().items(Joi.link('#formColumnInputs')).optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-t-forms-types",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Typings and interfaces for the ngx-t-forms library for dynamic forms.",
5
5
  "keywords": [
6
6
  "typings",