ngx-t-forms-types 0.0.11 → 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.
@@ -609,7 +609,9 @@ export const DefaultInputConfig = {
609
609
  AllFormInputPrimaryKeys.Value,
610
610
  AllFormInputPrimaryKeys.HintLabel,
611
611
  AllFormInputPrimaryKeys.AdjudicationStep,
612
- AllFormInputPrimaryKeys.AdjudicationPointTypes
612
+ AllFormInputPrimaryKeys.AdjudicationPointTypes,
613
+ AllFormInputPrimaryKeys.MinLength,
614
+ AllFormInputPrimaryKeys.MaxLength
613
615
  ],
614
616
  elementTemplate: {
615
617
  element: ElementTypes.WorkflowAdjudication,
@@ -90,6 +90,7 @@ export declare enum AllFormInputPrimaryKeys {
90
90
  WorkflowFormForScoreSheet = "workflowFormForScoreSheet",
91
91
  AdjudicationStep = "adjudicationStep",
92
92
  AdjudicationPointTypes = "adjudicationPointTypes",
93
+ AdjudicationReviewFeedbackTemplate = "adjudicationReviewFeedbackTemplate",
93
94
  TrueLabel = "trueLabel",
94
95
  FalseLabel = "falseLabel"
95
96
  }
@@ -94,6 +94,7 @@ export var AllFormInputPrimaryKeys;
94
94
  AllFormInputPrimaryKeys["WorkflowFormForScoreSheet"] = "workflowFormForScoreSheet";
95
95
  AllFormInputPrimaryKeys["AdjudicationStep"] = "adjudicationStep";
96
96
  AllFormInputPrimaryKeys["AdjudicationPointTypes"] = "adjudicationPointTypes";
97
+ AllFormInputPrimaryKeys["AdjudicationReviewFeedbackTemplate"] = "adjudicationReviewFeedbackTemplate";
97
98
  AllFormInputPrimaryKeys["TrueLabel"] = "trueLabel";
98
99
  AllFormInputPrimaryKeys["FalseLabel"] = "falseLabel";
99
100
  })(AllFormInputPrimaryKeys || (AllFormInputPrimaryKeys = {}));
@@ -321,6 +321,22 @@ export var ElementConfig = {
321
321
  .`,
322
322
  id: "88e9e85c-66d8-4df3-9742-eba1f7e47a01"
323
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
+ },
324
340
  {
325
341
  name: AllFormInputPrimaryKeys.FalseLabel,
326
342
  deepBind: [AllFormInputPrimaryKeys.FalseLabel],
@@ -674,9 +690,9 @@ export var ElementConfig = {
674
690
  id: "6a047c2f-ff33-4154-8c07-90d5272346a4"
675
691
  },
676
692
  {
677
- name: AllFormInputPrimaryKeys.TourContent,
693
+ name: SpecialElementKeys.Default,
678
694
  editType: ElementEditorTypes.Input,
679
- deepBind: [AllFormInputPrimaryKeys.TourContent,],
695
+ deepBind: [AllFormInputPrimaryKeys.TourContent],
680
696
  label: 'App tour message',
681
697
  id: "a72704ba-d2a9-4884-bc90-14dac84b7d23"
682
698
  },
@@ -1,7 +1,7 @@
1
1
  import { Observable } from "rxjs";
2
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";
@@ -59,4 +59,8 @@ export interface IStoreFunctions {
59
59
  saveUserSignature: (signature: PointGroup[]) => Observable<void>;
60
60
  httpPostDataFunction: (url: string, data: any, options?: any) => Observable<any>;
61
61
  httpGetDataFunction: (url: string, options?: any) => Observable<any>;
62
+ getCurrentStepMicroflowSubmissions: () => Observable<{
63
+ submissions: any[];
64
+ columnMapping: AdjResponseReviewColumnMapping;
65
+ }>;
62
66
  }
@@ -8,6 +8,12 @@ export interface WorkflowAdjudicationScoreSheetValue {
8
8
  inputId?: string;
9
9
  isEditRow?: boolean;
10
10
  }
11
+ export interface AdjResponseReviewColumnMapping {
12
+ respondentNameKey: string;
13
+ respondentCodeKey: string;
14
+ responsePreferenceCalculationKey?: string;
15
+ responseDateKey?: string;
16
+ }
11
17
  export interface WorkflowAdjudicationMicroFlowReviewValue {
12
18
  id: string;
13
19
  adj_microFlow_review: boolean;
@@ -34,4 +40,5 @@ export interface IWorkflowAdjudicationInput extends IBasicFormInput {
34
40
  workflowFormForScoreSheet: string;
35
41
  adjudicationStep: AdjudicationSteps;
36
42
  adjudicationPointTypes: string[];
43
+ adjudicationReviewFeedbackTemplate: any;
37
44
  }
@@ -16,10 +16,10 @@ 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
+ import { AdjResponseReviewColumnMapping, AdjudicationSteps, IWorkflowAdjudicationInput, WorkflowAdjudicationMicroFlowReviewValue, WorkflowAdjudicationResponseElectedSupplierSelectionValue, WorkflowAdjudicationScoreSheetValue } from "./WorkflowAdjudication";
20
20
  import { IWorkflowDocumentPicker, IWorkflowDocumentPickerConfig, workflowStepStatus } from "./WorkflowDocumentPicker";
21
21
  import { CalculatedFieldRules } from "./calculatedFieldRules";
22
22
  import { CalculationFunctions, calculationVariableInterface } from "./calculationVariableInterface";
23
23
  import { ValidationError, ValidationOptions } from "./schema";
24
24
  import { IUserSignature } from "./userSignature";
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 };
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 };
@@ -76,6 +76,7 @@ export const baseFormColumnInputsSchema = Joi.object({
76
76
  [AllFormInputPrimaryKeys.FormIsOpen]: Joi.boolean().optional(),
77
77
  [AllFormInputPrimaryKeys.WorkflowFormForScoreSheet]: Joi.string().optional(),
78
78
  [AllFormInputPrimaryKeys.AdjudicationStep]: Joi.string().valid(...Object.values(AdjudicationSteps)).optional(),
79
+ [AllFormInputPrimaryKeys.AdjudicationReviewFeedbackTemplate]: Joi.any().optional(),
79
80
  [AllFormInputPrimaryKeys.AdjudicationPointTypes]: Joi.array().items(Joi.string()).optional(),
80
81
  [AllFormInputPrimaryKeys.WorkflowPickerConfig]: workflowDocumentPickerConfigSchema.optional(),
81
82
  [AllFormInputPrimaryKeys.CanReload]: Joi.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-t-forms-types",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "Typings and interfaces for the ngx-t-forms library for dynamic forms.",
5
5
  "keywords": [
6
6
  "typings",