ngx-t-forms-types 0.0.19 → 0.0.21

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.
Files changed (106) hide show
  1. package/dist/index.d.ts +13 -9
  2. package/dist/index.js +13 -9
  3. package/dist/interfaces/DeepProperty/DeepProperty.d.ts +25 -0
  4. package/dist/interfaces/DeepProperty/DeepProperty.js +1 -0
  5. package/dist/interfaces/DeepProperty/index.d.ts +1 -0
  6. package/dist/interfaces/DeepProperty/index.js +1 -0
  7. package/dist/interfaces/Encryption/EncryptedData.d.ts +19 -0
  8. package/dist/interfaces/Encryption/EncryptedData.js +1 -0
  9. package/dist/interfaces/Encryption/index.d.ts +1 -0
  10. package/dist/interfaces/Encryption/index.js +1 -0
  11. package/dist/interfaces/Form/ArrayFunctions.d.ts +43 -1
  12. package/dist/interfaces/Form/ArrayFunctions.js +28 -0
  13. package/dist/interfaces/Form/FormInClassUtils.d.ts +9 -7
  14. package/dist/interfaces/Form/IFormsInitStateInterface.d.ts +1 -1
  15. package/dist/interfaces/Form/formInterface.d.ts +8 -3
  16. package/dist/interfaces/Form/formSubmissionHandleInterface.d.ts +2 -2
  17. package/dist/interfaces/Form/index.d.ts +13 -12
  18. package/dist/interfaces/Form/index.js +5 -1
  19. package/dist/interfaces/FormBuilder/DefaultEelement.d.ts +1 -1
  20. package/dist/interfaces/FormBuilder/DefaultEelement.js +9 -9
  21. package/dist/interfaces/FormBuilder/DefaultInputConfigInterface.d.ts +36 -25
  22. package/dist/interfaces/FormBuilder/DefaultInputConfigInterface.js +1 -1
  23. package/dist/interfaces/FormBuilder/FormBuilderCallBackFunctions.d.ts +11 -3
  24. package/dist/interfaces/FormBuilder/elementEditor.d.ts +8 -7
  25. package/dist/interfaces/FormBuilder/elementEditor.js +1 -0
  26. package/dist/interfaces/FormBuilder/index.d.ts +11 -10
  27. package/dist/interfaces/FormBuilder/index.js +6 -6
  28. package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.d.ts +1 -1
  29. package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.js +14 -13
  30. package/dist/interfaces/FormBuilder/inputConfig/getInputValueFromElement.js +3 -3
  31. package/dist/interfaces/FormBuilder/workflowSelectionConfig.d.ts +2 -2
  32. package/dist/interfaces/FormSlide/accessTree.d.ts +1 -1
  33. package/dist/interfaces/FormSlide/formSlideInterface.d.ts +1 -1
  34. package/dist/interfaces/FormSlide/index.d.ts +3 -3
  35. package/dist/interfaces/FormSlide/index.js +1 -1
  36. package/dist/interfaces/Import/ImportProgress.d.ts +29 -0
  37. package/dist/interfaces/Import/ImportProgress.js +1 -0
  38. package/dist/interfaces/Import/ImportRowState.d.ts +66 -0
  39. package/dist/interfaces/Import/ImportRowState.js +1 -0
  40. package/dist/interfaces/Import/index.d.ts +2 -0
  41. package/dist/interfaces/Import/index.js +1 -0
  42. package/dist/interfaces/Tour/IFormTour.d.ts +14 -0
  43. package/dist/interfaces/Tour/IFormTour.js +1 -0
  44. package/dist/interfaces/Tour/index.d.ts +1 -0
  45. package/dist/interfaces/Tour/index.js +1 -0
  46. package/dist/interfaces/Tower/ITowerFormSteps.d.ts +3 -3
  47. package/dist/interfaces/Tower/ITowerFormSteps.js +1 -1
  48. package/dist/interfaces/Tower/index.d.ts +1 -1
  49. package/dist/interfaces/environment/IStoreFunctions.d.ts +8 -7
  50. package/dist/interfaces/environment/IStoreFunctions.js +1 -1
  51. package/dist/interfaces/environment/environment.d.ts +1 -1
  52. package/dist/interfaces/environment/index.d.ts +2 -2
  53. package/dist/interfaces/formInput/APIDataFetchingConfigurationInterface.d.ts +3 -3
  54. package/dist/interfaces/formInput/BasicFormInputInterface.d.ts +9 -9
  55. package/dist/interfaces/formInput/DateRangePickerInput.d.ts +1 -1
  56. package/dist/interfaces/formInput/FileUploadInputInterface.d.ts +7 -2
  57. package/dist/interfaces/formInput/FormControlCustomValidatorsInterface.d.ts +38 -4
  58. package/dist/interfaces/formInput/FormValidationOverride.d.ts +48 -0
  59. package/dist/interfaces/formInput/FormValidationOverride.js +1 -0
  60. package/dist/interfaces/formInput/IMscoaAccount.d.ts +25 -9
  61. package/dist/interfaces/formInput/ISelectInputInterface.d.ts +3 -3
  62. package/dist/interfaces/formInput/ISelectInputInterface.js +1 -1
  63. package/dist/interfaces/formInput/MatDataOptionsInterface.d.ts +2 -2
  64. package/dist/interfaces/formInput/MatrixInputInterface.d.ts +2 -2
  65. package/dist/interfaces/formInput/MinimumInputRequiredInterface.d.ts +1 -1
  66. package/dist/interfaces/formInput/MscoaInput.d.ts +2 -2
  67. package/dist/interfaces/formInput/MscoaInput.js +1 -1
  68. package/dist/interfaces/formInput/MultipleInterface.d.ts +2 -2
  69. package/dist/interfaces/formInput/RichTextEditorInput.d.ts +16 -2
  70. package/dist/interfaces/formInput/RichTextEditorInput.js +11 -1
  71. package/dist/interfaces/formInput/TableConfigurationsInterface.d.ts +1 -1
  72. package/dist/interfaces/formInput/TextAreaInput.d.ts +1 -1
  73. package/dist/interfaces/formInput/ToggleInputInterface.d.ts +1 -1
  74. package/dist/interfaces/formInput/WorkflowAdjudication.d.ts +16 -4
  75. package/dist/interfaces/formInput/WorkflowDocumentPicker.d.ts +4 -4
  76. package/dist/interfaces/formInput/WorkflowDocumentPicker.js +1 -1
  77. package/dist/interfaces/formInput/calculatedFieldRules.d.ts +1 -1
  78. package/dist/interfaces/formInput/calculationVariableInterface.d.ts +3 -1
  79. package/dist/interfaces/formInput/calculationVariableInterface.js +2 -0
  80. package/dist/interfaces/formInput/index.d.ts +28 -26
  81. package/dist/interfaces/formInput/index.js +15 -9
  82. package/dist/interfaces/formInput/schema.d.ts +11 -2
  83. package/dist/interfaces/pipeline-builder/index.d.ts +1 -1
  84. package/dist/interfaces/pipeline-builder/index.js +1 -1
  85. package/dist/interfaces/upgradeFunctions/interfaces/init-form.d.ts +14 -1
  86. package/dist/interfaces/workflow/WorkflowFunctionTypes.d.ts +26 -0
  87. package/dist/interfaces/workflow/WorkflowFunctionTypes.js +27 -0
  88. package/dist/interfaces/workflow/index.d.ts +3 -2
  89. package/dist/interfaces/workflow/index.js +3 -2
  90. package/dist/schemas/CalculatedFieldRulesSchema.d.ts +1 -1
  91. package/dist/schemas/CalculatedFieldRulesSchema.js +1 -1
  92. package/dist/schemas/DocmentPickerInputSchema.js +2 -2
  93. package/dist/schemas/FormInputSchema.d.ts +2 -2
  94. package/dist/schemas/FormInputSchema.js +18 -18
  95. package/dist/schemas/FormSchema.d.ts +2 -2
  96. package/dist/schemas/FormSchema.js +3 -3
  97. package/dist/schemas/MatOptionsSchema.js +2 -2
  98. package/dist/schemas/MscoaConfigSchema.js +1 -1
  99. package/dist/schemas/customValidationSchema.d.ts +1 -1
  100. package/dist/schemas/customValidationSchema.js +6 -2
  101. package/dist/schemas/index.d.ts +3 -3
  102. package/dist/schemas/index.js +3 -3
  103. package/dist/schemas/tests/CustomValidationSchema.spec.d.ts +1 -0
  104. package/dist/schemas/tests/CustomValidationSchema.spec.js +92 -0
  105. package/dist/schemas/tests/FormInputValidator.spec.js +3 -8
  106. package/package.json +83 -63
@@ -1,8 +1,22 @@
1
1
  import { IBasicFormInput } from ".";
2
+ /**
3
+ * Identifies the rich text editor library to render for a {@link IRichTextEditor} form input.
4
+ */
2
5
  export declare enum RichTextEditorType {
3
- EditorJS = "EditorJS",
4
- CkEditor = "CkEditor"
6
+ /** The Quill rich text editor. */
7
+ Quill = "Quill",
8
+ /**
9
+ * The EditorJS block-style editor.
10
+ *
11
+ * @deprecated EditorJS is no longer supported and will be removed in a future
12
+ * release. Use {@link RichTextEditorType.Quill} instead.
13
+ */
14
+ EditorJS = "EditorJS"
5
15
  }
16
+ /**
17
+ * A form input backed by a rich text editor.
18
+ */
6
19
  export interface IRichTextEditor extends IBasicFormInput {
20
+ /** The rich text editor library used to render this input. */
7
21
  richTextEditorLibrary: RichTextEditorType;
8
22
  }
@@ -1,5 +1,15 @@
1
+ /**
2
+ * Identifies the rich text editor library to render for a {@link IRichTextEditor} form input.
3
+ */
1
4
  export var RichTextEditorType;
2
5
  (function (RichTextEditorType) {
6
+ /** The Quill rich text editor. */
7
+ RichTextEditorType["Quill"] = "Quill";
8
+ /**
9
+ * The EditorJS block-style editor.
10
+ *
11
+ * @deprecated EditorJS is no longer supported and will be removed in a future
12
+ * release. Use {@link RichTextEditorType.Quill} instead.
13
+ */
3
14
  RichTextEditorType["EditorJS"] = "EditorJS";
4
- RichTextEditorType["CkEditor"] = "CkEditor";
5
15
  })(RichTextEditorType || (RichTextEditorType = {}));
@@ -1,4 +1,4 @@
1
- import { CalculatedFieldRules } from "./calculatedFieldRules";
1
+ import { CalculatedFieldRules } from "./calculatedFieldRules.js";
2
2
  export interface TableConfigurationsInterface {
3
3
  displayedColumnsInOrder: string[];
4
4
  columnsConfig: {
@@ -1,4 +1,4 @@
1
- import { IBasicFormInput } from "./BasicFormInputInterface";
1
+ import { IBasicFormInput } from "./BasicFormInputInterface.js";
2
2
  export interface ITextareaProperties extends IBasicFormInput {
3
3
  rows?: number;
4
4
  wrap?: 'hard' | 'soft';
@@ -1,4 +1,4 @@
1
- import { IBasicFormInput } from "./BasicFormInputInterface";
1
+ import { IBasicFormInput } from "./BasicFormInputInterface.js";
2
2
  export declare enum LabelPosition {
3
3
  Before = "before",
4
4
  After = "after"
@@ -1,4 +1,4 @@
1
- import { IBasicFormInput } from "./BasicFormInputInterface";
1
+ import { IBasicFormInput } from "./BasicFormInputInterface.js";
2
2
  export interface WorkflowAdjudicationScoreSheetValue {
3
3
  id: string;
4
4
  formControlName: string;
@@ -16,11 +16,23 @@ export interface AdjResponseReviewColumnMapping {
16
16
  }
17
17
  export interface WorkflowAdjudicationMicroFlowReviewValue {
18
18
  id: string;
19
- adj_microFlow_review: boolean;
19
+ /**
20
+ * Reviewer's compliance verdict for this micro-flow submission.
21
+ * Optional: `undefined` represents "not yet reviewed".
22
+ */
23
+ adj_microFlow_review?: 'compliant' | 'non-compliant';
24
+ /**
25
+ * Optional reviewer notes for this submission. Stored as a structured payload
26
+ * (e.g. EditorJS `OutputData`) or a plain string depending on the consumer renderer;
27
+ * typed as `unknown` here so the shared interface stays renderer-agnostic.
28
+ */
29
+ adj_microFlow_review_notes?: unknown;
20
30
  nameOfBidder: string;
21
31
  supplierNumber: string;
22
- createdAt: Date;
23
- updatedAt: Date;
32
+ /** Optional — populated from the underlying submission row when available. */
33
+ createdAt?: Date;
34
+ /** Optional — populated from the underlying submission row when available. */
35
+ updatedAt?: Date;
24
36
  adjudicationPricePreferenceCalculation: number;
25
37
  reference: string;
26
38
  }
@@ -1,7 +1,7 @@
1
- import { AllFormInputPrimaryKeys } from "../FormBuilder/FormInputKeys";
2
- import { TreeNode } from "../FormSlide/accessTree";
3
- import { APIDataFetchingConfigurationInterface, DataSources, MongoDbPipeLineConfigInterface } from "./APIDataFetchingConfigurationInterface";
4
- import { IBasicFormInput } from "./BasicFormInputInterface";
1
+ import { AllFormInputPrimaryKeys } from "../FormBuilder/FormInputKeys.js";
2
+ import { TreeNode } from "../FormSlide/accessTree.js";
3
+ import { APIDataFetchingConfigurationInterface, DataSources, MongoDbPipeLineConfigInterface } from "./APIDataFetchingConfigurationInterface.js";
4
+ import { IBasicFormInput } from "./BasicFormInputInterface.js";
5
5
  export interface IWorkflowDocumentPicker extends IBasicFormInput {
6
6
  workflowPickerConfig: IWorkflowDocumentPickerConfig;
7
7
  [AllFormInputPrimaryKeys.AllowMultipleSelection]: boolean;
@@ -1,4 +1,4 @@
1
- import { AllFormInputPrimaryKeys } from "../FormBuilder/FormInputKeys";
1
+ import { AllFormInputPrimaryKeys } from "../FormBuilder/FormInputKeys.js";
2
2
  export var workflowStepStatus;
3
3
  (function (workflowStepStatus) {
4
4
  workflowStepStatus["PENDING"] = "pending";
@@ -1,4 +1,4 @@
1
- import { calculationVariableInterface } from "./calculationVariableInterface";
1
+ import { calculationVariableInterface } from "./calculationVariableInterface.js";
2
2
  export interface CalculatedFieldRules {
3
3
  formula: string;
4
4
  variables: calculationVariableInterface[];
@@ -17,5 +17,7 @@ export declare enum CalculationFunctions {
17
17
  Avg = "avg",
18
18
  Sum = "sum",
19
19
  Max = "max",
20
- Min = "min"
20
+ Min = "min",
21
+ /** Number of rows in the list (does not require a numeric column). */
22
+ Count = "count"
21
23
  }
@@ -4,4 +4,6 @@ export var CalculationFunctions;
4
4
  CalculationFunctions["Sum"] = "sum";
5
5
  CalculationFunctions["Max"] = "max";
6
6
  CalculationFunctions["Min"] = "min";
7
+ /** Number of rows in the list (does not require a numeric column). */
8
+ CalculationFunctions["Count"] = "count";
7
9
  })(CalculationFunctions || (CalculationFunctions = {}));
@@ -1,26 +1,28 @@
1
- import { IFolderItem, IPostmanCollection } from "../FormBuilder/postmanCollection";
2
- import { IWorkflowDocListCols } from "../FormBuilder/workflowSelectionConfig";
3
- import { TreeNode } from "../FormSlide/accessTree";
4
- import { APIDataFetchingConfigurationInterface, InputAPIDataId, MongoDbPipeLineConfigInterface } from "./APIDataFetchingConfigurationInterface";
5
- import { AutocapitalizeOptions, AutocompleteOptions, ElementTypes, IBasicFormInput, IFormElementTemplate, InputDataTypes, InputPipeTypes, InputTypes, OptionSelectTypes } from "./BasicFormInputInterface";
6
- import { IDateRangePickerInput } from "./DateRangePickerInput";
7
- import { AllDocumentFileExtensions, AllImageFileExtensions, FileUploadInputValueInterface, IFileUploadInput, InputFileType, UploadTypes } from "./FileUploadInputInterface";
8
- import { FormControlCustomValidatorsInterface } from "./FormControlCustomValidatorsInterface";
9
- import { FormInputBasicOptionInterface } from "./FormInputBasicOptionInterface";
10
- import { AccountingBasis, IAccountSegmentTreeKeys, IGetTreeResponse, IIncludedSegmentConfig, IScoaAccount, IScoaInput, IScoaInputConfig, ITableScoaSelectionRow, ScoaAccountTree, ScoaInterface, ScoaSegmentValue } from "./IMscoaAccount";
11
- import { ISelectInputInterface } from "./ISelectInputInterface";
12
- import { MatDataOptionsInterface } from "./MatDataOptionsInterface";
13
- import { IMatrixInput } from "./MatrixInputInterface";
14
- import { JsDataTypes, MinInputMapInput, MinInputTypes, MinimumInputRequiredInterface } from "./MinimumInputRequiredInterface";
15
- import { ScoaInnerInput, ScoreSheetItem } from "./MscoaInput";
16
- import { IMultiple, IMultipleInputCal, MultipleInputAvailableOperations } from "./MultipleInterface";
17
- import { TableColumnConfigInterface, TableConfigurationsInterface } from "./TableConfigurationsInterface";
18
- import { ITextareaProperties } from "./TextAreaInput";
19
- import { IToggleInput } from "./ToggleInputInterface";
20
- import { AdjResponseReviewColumnMapping, AdjudicationSteps, IWorkflowAdjudicationInput, WorkflowAdjudicationMicroFlowReviewValue, WorkflowAdjudicationResponseElectedSupplierSelectionValue, WorkflowAdjudicationScoreSheetValue } from "./WorkflowAdjudication";
21
- import { IWorkflowDocumentPicker, IWorkflowDocumentPickerConfig, workflowStepStatus } from "./WorkflowDocumentPicker";
22
- import { CalculatedFieldRules } from "./calculatedFieldRules";
23
- import { CalculationFunctions, calculationVariableInterface } from "./calculationVariableInterface";
24
- import { ValidationError, ValidationOptions } from "./schema";
25
- import { IUserSignature } from "./userSignature";
26
- export { ElementTypes, InputTypes, InputPipeTypes, AutocapitalizeOptions, AutocompleteOptions, InputDataTypes, MinInputTypes, IFormElementTemplate, 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, AccountingBasis, ScoaAccountTree, IUserSignature, ValidationOptions, ValidationError, MatDataOptionsInterface, MongoDbPipeLineConfigInterface, InputAPIDataId, FormInputBasicOptionInterface, ScoaInterface, ScoaInnerInput, IAccountSegmentTreeKeys, IWorkflowDocumentPicker, IWorkflowDocumentPickerConfig, workflowStepStatus, IWorkflowDocListCols, JsDataTypes, AdjudicationSteps, IWorkflowAdjudicationInput, WorkflowAdjudicationScoreSheetValue, WorkflowAdjudicationMicroFlowReviewValue, WorkflowAdjudicationResponseElectedSupplierSelectionValue, ScoreSheetItem, AdjResponseReviewColumnMapping, OptionSelectTypes, ISelectInputInterface, MultipleInputAvailableOperations };
1
+ import { IFolderItem, IPostmanCollection } from "../FormBuilder/postmanCollection.js";
2
+ import { IWorkflowDocListCols } from "../FormBuilder/workflowSelectionConfig.js";
3
+ import { TreeNode } from "../FormSlide/accessTree.js";
4
+ import { APIDataFetchingConfigurationInterface, InputAPIDataId, MongoDbPipeLineConfigInterface } from "./APIDataFetchingConfigurationInterface.js";
5
+ import { AutocapitalizeOptions, AutocompleteOptions, ElementTypes, IBasicFormInput, IFormElementTemplate, InputDataTypes, InputPipeTypes, InputTypes, OptionSelectTypes } from "./BasicFormInputInterface.js";
6
+ import { IDateRangePickerInput } from "./DateRangePickerInput.js";
7
+ import { AllDocumentFileExtensions, AllImageFileExtensions, FileUploadInputValueInterface, IFileUploadInput, InputFileType, UploadTypes } from "./FileUploadInputInterface.js";
8
+ import { DraftFormControlCustomValidator, FormControlCustomValidatorsInterface, InputObservedForChange } from "./FormControlCustomValidatorsInterface.js";
9
+ import { IFormValidationOverride } from "./FormValidationOverride.js";
10
+ import { FormInputBasicOptionInterface } from "./FormInputBasicOptionInterface.js";
11
+ import { AccountingBasis, IAccountSegmentTreeKeys, IGetTreeResponse, IIncludedSegmentConfig, IScoaAccount, IScoaInput, IScoaInputConfig, ITableScoaSelectionRow, ScoaAccountTree, ScoaInterface, ScoaSegmentValue, ScoaSegmentValueBag } from "./IMscoaAccount.js";
12
+ import { ISelectInputInterface } from "./ISelectInputInterface.js";
13
+ import { MatDataOptionsInterface } from "./MatDataOptionsInterface.js";
14
+ import { IMatrixInput } from "./MatrixInputInterface.js";
15
+ import { JsDataTypes, MinInputMapInput, MinInputTypes, MinimumInputRequiredInterface } from "./MinimumInputRequiredInterface.js";
16
+ import { ScoaInnerInput, ScoreSheetItem } from "./MscoaInput.js";
17
+ import { IMultiple, IMultipleInputCal, MultipleInputAvailableOperations } from "./MultipleInterface.js";
18
+ import { TableColumnConfigInterface, TableConfigurationsInterface } from "./TableConfigurationsInterface.js";
19
+ import { ITextareaProperties } from "./TextAreaInput.js";
20
+ import { IToggleInput } from "./ToggleInputInterface.js";
21
+ import { AdjResponseReviewColumnMapping, AdjudicationSteps, IWorkflowAdjudicationInput, WorkflowAdjudicationMicroFlowReviewValue, WorkflowAdjudicationResponseElectedSupplierSelectionValue, WorkflowAdjudicationScoreSheetValue } from "./WorkflowAdjudication.js";
22
+ import { IWorkflowDocumentPicker, IWorkflowDocumentPickerConfig, workflowStepStatus } from "./WorkflowDocumentPicker.js";
23
+ import { CalculatedFieldRules } from "./calculatedFieldRules.js";
24
+ import { CalculationFunctions, calculationVariableInterface } from "./calculationVariableInterface.js";
25
+ import { IRichTextEditor, RichTextEditorType } from "./RichTextEditorInput.js";
26
+ import { ValidationError, ValidationOptions } from "./schema.js";
27
+ import { IUserSignature } from "./userSignature.js";
28
+ export { ElementTypes, InputTypes, InputPipeTypes, AutocapitalizeOptions, AutocompleteOptions, InputDataTypes, MinInputTypes, IFormElementTemplate, IBasicFormInput, IFileUploadInput, IDateRangePickerInput, ITextareaProperties, IToggleInput, IMatrixInput, IMultiple, IMultipleInputCal, IScoaInput, TableConfigurationsInterface, TableColumnConfigInterface, FormControlCustomValidatorsInterface, InputObservedForChange, DraftFormControlCustomValidator, IFormValidationOverride, MinimumInputRequiredInterface, MinInputMapInput, CalculatedFieldRules, calculationVariableInterface, APIDataFetchingConfigurationInterface, IGetTreeResponse, CalculationFunctions, TreeNode, IPostmanCollection, IFolderItem, FileUploadInputValueInterface, AllDocumentFileExtensions, AllImageFileExtensions, UploadTypes, InputFileType, IScoaAccount, IScoaInputConfig, ITableScoaSelectionRow, ScoaSegmentValue, ScoaSegmentValueBag, IIncludedSegmentConfig, AccountingBasis, ScoaAccountTree, IUserSignature, ValidationOptions, ValidationError, MatDataOptionsInterface, MongoDbPipeLineConfigInterface, InputAPIDataId, FormInputBasicOptionInterface, ScoaInterface, ScoaInnerInput, IAccountSegmentTreeKeys, IWorkflowDocumentPicker, IWorkflowDocumentPickerConfig, workflowStepStatus, IWorkflowDocListCols, JsDataTypes, AdjudicationSteps, IWorkflowAdjudicationInput, WorkflowAdjudicationScoreSheetValue, WorkflowAdjudicationMicroFlowReviewValue, WorkflowAdjudicationResponseElectedSupplierSelectionValue, ScoreSheetItem, AdjResponseReviewColumnMapping, OptionSelectTypes, ISelectInputInterface, MultipleInputAvailableOperations, RichTextEditorType, IRichTextEditor, };
@@ -1,11 +1,17 @@
1
- import { AutocapitalizeOptions, AutocompleteOptions, ElementTypes, InputDataTypes, InputPipeTypes, InputTypes, OptionSelectTypes } from "./BasicFormInputInterface";
2
- import { AllDocumentFileExtensions, AllImageFileExtensions, InputFileType, UploadTypes } from "./FileUploadInputInterface";
3
- import { AccountingBasis } from "./IMscoaAccount";
4
- import { JsDataTypes, MinInputTypes } from "./MinimumInputRequiredInterface";
5
- import { MultipleInputAvailableOperations } from "./MultipleInterface";
6
- import { AdjudicationSteps } from "./WorkflowAdjudication";
7
- import { workflowStepStatus } from "./WorkflowDocumentPicker";
8
- import { CalculationFunctions } from "./calculationVariableInterface";
1
+ import { AutocapitalizeOptions, AutocompleteOptions, ElementTypes, InputDataTypes, InputPipeTypes, InputTypes, OptionSelectTypes } from "./BasicFormInputInterface.js";
2
+ import { AllDocumentFileExtensions, AllImageFileExtensions, InputFileType, UploadTypes } from "./FileUploadInputInterface.js";
3
+ import { AccountingBasis } from "./IMscoaAccount.js";
4
+ import { JsDataTypes, MinInputTypes } from "./MinimumInputRequiredInterface.js";
5
+ import { MultipleInputAvailableOperations } from "./MultipleInterface.js";
6
+ import { AdjudicationSteps } from "./WorkflowAdjudication.js";
7
+ import { workflowStepStatus } from "./WorkflowDocumentPicker.js";
8
+ import { CalculationFunctions } from "./calculationVariableInterface.js";
9
+ import { RichTextEditorType } from "./RichTextEditorInput.js";
10
+ // H-018b (Worker T-C): `OLD_FormInterface` and `FormInterfaceMigration` are
11
+ // surfaced through the `Form` barrel (and thereby the top-level
12
+ // `ngx-t-forms-types` entry). They are intentionally NOT re-exported from this
13
+ // formInput barrel as well, because the wildcard merge in `src/index.ts`
14
+ // would otherwise trigger TS2300 "Duplicate identifier".
9
15
  export {
10
16
  ///ENUMS
11
- ElementTypes, InputTypes, InputPipeTypes, AutocapitalizeOptions, AutocompleteOptions, InputDataTypes, MinInputTypes, CalculationFunctions, AllDocumentFileExtensions, AllImageFileExtensions, UploadTypes, InputFileType, AccountingBasis, workflowStepStatus, JsDataTypes, AdjudicationSteps, OptionSelectTypes, MultipleInputAvailableOperations };
17
+ ElementTypes, InputTypes, InputPipeTypes, AutocapitalizeOptions, AutocompleteOptions, InputDataTypes, MinInputTypes, CalculationFunctions, AllDocumentFileExtensions, AllImageFileExtensions, UploadTypes, InputFileType, AccountingBasis, workflowStepStatus, JsDataTypes, AdjudicationSteps, OptionSelectTypes, MultipleInputAvailableOperations, RichTextEditorType, };
@@ -1,7 +1,16 @@
1
- import { AllFormInputPrimaryKeys, FormInputKeys } from "../FormBuilder";
1
+ import { AllFormInputPrimaryKeys, FormInputKeys, SpecialElementKeys } from "../FormBuilder/index.js";
2
2
  export interface ValidationOptions {
3
3
  data: Record<string, unknown>;
4
- requiredKeys: Array<FormInputKeys | AllFormInputPrimaryKeys>;
4
+ /**
5
+ * Keys that must be present on `data` for the form-column input to be valid.
6
+ *
7
+ * Widened (H-014) to include {@link SpecialElementKeys} so consumers can pass
8
+ * the `requiredProperties` of a `DefaultInputConfig` entry directly — some
9
+ * entries (e.g. `MscoaSelection`) legitimately list `SpecialElementKeys.*`
10
+ * alongside the primary keys. The runtime validator already string-compares,
11
+ * so the wider type only relaxes the compile-time check.
12
+ */
13
+ requiredKeys: Array<FormInputKeys | AllFormInputPrimaryKeys | SpecialElementKeys>;
5
14
  }
6
15
  export interface ValidationError {
7
16
  key: string;
@@ -1,2 +1,2 @@
1
- import { IPipelineGenerationError, IPipelineGenerationResponse, IRunPipelineResponse, PipelineStageEnum } from "./pipelineStages";
1
+ import { IPipelineGenerationError, IPipelineGenerationResponse, IRunPipelineResponse, PipelineStageEnum } from "./pipelineStages.js";
2
2
  export { IPipelineGenerationError, IPipelineGenerationResponse, IRunPipelineResponse, PipelineStageEnum };
@@ -1,2 +1,2 @@
1
- import { PipelineStageEnum } from "./pipelineStages";
1
+ import { PipelineStageEnum } from "./pipelineStages.js";
2
2
  export { PipelineStageEnum };
@@ -1,5 +1,5 @@
1
1
  import { MatFormFieldAppearance } from "@angular/material/form-field";
2
- import { IIncludedSegmentConfig } from "../../formInput";
2
+ import { IIncludedSegmentConfig } from "../../formInput/index.js";
3
3
  interface conditionalInputRule {
4
4
  formControlName: string;
5
5
  label: string;
@@ -261,4 +261,17 @@ interface FecthLocalStateData {
261
261
  param: string;
262
262
  passFunction?: string;
263
263
  }
264
+ /**
265
+ * Migration-bridge union for legacy → V2 form payloads.
266
+ *
267
+ * `initFormConfigToV2` (lib helper) accepts either the legacy `OLD_FormInterface`
268
+ * shape (with `submisionHandle`, `formSectionSteps`, `activeSlideNumber`) or the
269
+ * current `FormInterface`. Consumers that wrap that helper should type the
270
+ * argument as `FormInterfaceMigration` rather than reaching for `any`.
271
+ *
272
+ * Defined here (not in `Form/index.ts`) to avoid a circular module dependency
273
+ * between the legacy interface and the current one.
274
+ */
275
+ import type { FormInterface as _CurrentFormInterface } from "../../Form/formInterface.js";
276
+ export type FormInterfaceMigration = OLD_FormInterface | _CurrentFormInterface;
264
277
  export { OLD_FormInterface, IAllInputs };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * The set of dependent-function categories the `ngx-t-forms` tower
3
+ * may execute for a given input — drives calculation pipelines, API
4
+ * value/options lookups, input-sourced values, and manual validators.
5
+ *
6
+ * api-extractor previously surfaced this enum under the auto-disambiguated
7
+ * name `FunctionTypes_2` because the upstream package already declared a
8
+ * different `FunctionTypes` (array-access: Filter/Find/Map). This enum is
9
+ * the workflow / form-tower flavour and is named distinctly to remove the
10
+ * collision.
11
+ *
12
+ * Upstreamed from `ngx-t-forms` per DECISIONS.md D-016.
13
+ *
14
+ * @public
15
+ */
16
+ export declare enum WorkflowFunctionTypes {
17
+ ValueCalculation = "ValueCalculation",
18
+ ValuePostMethodAPI = "ValuePostMethodAPI",
19
+ ValuePostMethodAPIWithAllDefaultParams = "ValuePostMethodAPIWithAllDefaultParams",
20
+ OptionsPostMethodAPI = "OptionsPostMethodAPI",
21
+ OptionsPostMethodAPIWithAllDefaultParams = "OptionsPostMethodAPIWithAllDefaultParams",
22
+ ValueGetMethodAPI = "ValueGetMethodAPI",
23
+ OptionsGetMethodAPI = "OptionsGetMethodAPI",
24
+ InputSourcedValue = "InputSourcedValue",
25
+ ManualValueValidation = "ManualValueValidation"
26
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * The set of dependent-function categories the `ngx-t-forms` tower
3
+ * may execute for a given input — drives calculation pipelines, API
4
+ * value/options lookups, input-sourced values, and manual validators.
5
+ *
6
+ * api-extractor previously surfaced this enum under the auto-disambiguated
7
+ * name `FunctionTypes_2` because the upstream package already declared a
8
+ * different `FunctionTypes` (array-access: Filter/Find/Map). This enum is
9
+ * the workflow / form-tower flavour and is named distinctly to remove the
10
+ * collision.
11
+ *
12
+ * Upstreamed from `ngx-t-forms` per DECISIONS.md D-016.
13
+ *
14
+ * @public
15
+ */
16
+ export var WorkflowFunctionTypes;
17
+ (function (WorkflowFunctionTypes) {
18
+ WorkflowFunctionTypes["ValueCalculation"] = "ValueCalculation";
19
+ WorkflowFunctionTypes["ValuePostMethodAPI"] = "ValuePostMethodAPI";
20
+ WorkflowFunctionTypes["ValuePostMethodAPIWithAllDefaultParams"] = "ValuePostMethodAPIWithAllDefaultParams";
21
+ WorkflowFunctionTypes["OptionsPostMethodAPI"] = "OptionsPostMethodAPI";
22
+ WorkflowFunctionTypes["OptionsPostMethodAPIWithAllDefaultParams"] = "OptionsPostMethodAPIWithAllDefaultParams";
23
+ WorkflowFunctionTypes["ValueGetMethodAPI"] = "ValueGetMethodAPI";
24
+ WorkflowFunctionTypes["OptionsGetMethodAPI"] = "OptionsGetMethodAPI";
25
+ WorkflowFunctionTypes["InputSourcedValue"] = "InputSourcedValue";
26
+ WorkflowFunctionTypes["ManualValueValidation"] = "ManualValueValidation";
27
+ })(WorkflowFunctionTypes || (WorkflowFunctionTypes = {}));
@@ -1,2 +1,3 @@
1
- import { DocumentLitsLabelConfigInterface, DocumentLitsLabelConfigInterfaceValueType, ReportTypes } from "./DocumentSectionConfigurationsInterface";
2
- export { DocumentLitsLabelConfigInterface, DocumentLitsLabelConfigInterfaceValueType, ReportTypes };
1
+ import { DocumentLitsLabelConfigInterface, DocumentLitsLabelConfigInterfaceValueType, ReportTypes } from "./DocumentSectionConfigurationsInterface.js";
2
+ import { WorkflowFunctionTypes } from "./WorkflowFunctionTypes.js";
3
+ export { DocumentLitsLabelConfigInterface, DocumentLitsLabelConfigInterfaceValueType, ReportTypes, WorkflowFunctionTypes };
@@ -1,2 +1,3 @@
1
- import { DocumentLitsLabelConfigInterfaceValueType, ReportTypes } from "./DocumentSectionConfigurationsInterface";
2
- export { DocumentLitsLabelConfigInterfaceValueType, ReportTypes };
1
+ import { DocumentLitsLabelConfigInterfaceValueType, ReportTypes } from "./DocumentSectionConfigurationsInterface.js";
2
+ import { WorkflowFunctionTypes } from "./WorkflowFunctionTypes.js";
3
+ export { DocumentLitsLabelConfigInterfaceValueType, ReportTypes, WorkflowFunctionTypes };
@@ -1,4 +1,4 @@
1
- import * as Joi from 'joi';
1
+ import Joi from 'joi';
2
2
  export declare const calculatedFieldRulesSchema: Joi.ObjectSchema<any>;
3
3
  export declare function validateCalculatedFieldRules(value: any): {
4
4
  error: {
@@ -1,4 +1,4 @@
1
- import * as Joi from 'joi';
1
+ import Joi from 'joi';
2
2
  const calculationVariableSchema = Joi.object({
3
3
  formControlName: Joi.string().required(),
4
4
  label: Joi.string().required(),
@@ -1,6 +1,6 @@
1
1
  import Joi from 'joi';
2
- import { APIDataFetchingConfigurationSchema, MongoDbPipeLineConfigSchema } from './MatOptionsSchema';
3
- import { DataSources } from '../interfaces/FormBuilder';
2
+ import { APIDataFetchingConfigurationSchema, MongoDbPipeLineConfigSchema } from './MatOptionsSchema.js';
3
+ import { DataSources } from '../interfaces/FormBuilder/index.js';
4
4
  // Schema for IWorkflowDocumentPickerConfig
5
5
  const workflowDocumentPickerConfigSchema = Joi.object({
6
6
  workflowId: Joi.string().required(),
@@ -1,6 +1,6 @@
1
1
  import Joi from 'joi';
2
- import { FormColumnInputs } from '../interfaces/Form';
3
- import { ValidationError, ValidationOptions } from '../interfaces/formInput/schema';
2
+ import { FormColumnInputs } from '../interfaces/Form/index.js';
3
+ import { ValidationError, ValidationOptions } from '../interfaces/formInput/schema.js';
4
4
  export declare const paginationSelectionConfigSchema: Joi.ObjectSchema<any>;
5
5
  export declare const baseFormColumnInputsSchema: Joi.ObjectSchema<any>;
6
6
  declare const formColumnInputsSchema: Joi.ObjectSchema<any>;
@@ -1,22 +1,22 @@
1
1
  import Joi from 'joi';
2
- import { AllFormInputPrimaryKeys, SpecialElementKeys } from '../interfaces/FormBuilder';
3
- import { AdjudicationSteps, AutocapitalizeOptions, ElementTypes, InputDataTypes, InputPipeTypes, InputTypes } from '../interfaces/formInput';
4
- // import { InputFileType } from '../interfaces/formInput/FileUploadInputInterface';
5
- // import { LabelPosition } from '../interfaces/formInput/ToggleInputInterface';
6
- // import { MscoaInputConfigSchema } from './MscoaConfigSchema';
7
- // import { calculatedFieldRulesSchema } from './CalculatedFieldRulesSchema';
8
- // import { MatDataOptionsSchema } from './MatOptionsSchema';
9
- import { formControlCustomValidatorSchema } from './customValidationSchema';
10
- import { InputFileType } from '../interfaces/formInput/FileUploadInputInterface';
11
- import { LabelPosition } from '../interfaces/formInput/ToggleInputInterface';
12
- import { calculatedFieldRulesSchema } from './CalculatedFieldRulesSchema';
13
- import { MscoaInputConfigSchema } from './MscoaConfigSchema';
14
- import { MatDataOptionsSchema } from './MatOptionsSchema';
15
- import { CalculationFunctions } from '../interfaces/formInput/calculationVariableInterface';
16
- import { RichTextEditorType } from '../interfaces/formInput/RichTextEditorInput';
17
- import { InputViewTypes, OptionSelectTypes } from '../interfaces/formInput/BasicFormInputInterface';
18
- import { MultipleInputAvailableOperations } from '../interfaces/formInput/MultipleInterface';
19
- import { workflowDocumentPickerConfigSchema } from './DocmentPickerInputSchema';
2
+ import { AllFormInputPrimaryKeys, SpecialElementKeys } from '../interfaces/FormBuilder/index.js';
3
+ import { AdjudicationSteps, AutocapitalizeOptions, ElementTypes, InputDataTypes, InputPipeTypes, InputTypes } from '../interfaces/formInput/index.js';
4
+ // import { InputFileType } from '../interfaces/formInput/FileUploadInputInterface.js';
5
+ // import { LabelPosition } from '../interfaces/formInput/ToggleInputInterface.js';
6
+ // import { MscoaInputConfigSchema } from './MscoaConfigSchema.js';
7
+ // import { calculatedFieldRulesSchema } from './CalculatedFieldRulesSchema.js';
8
+ // import { MatDataOptionsSchema } from './MatOptionsSchema.js';
9
+ import { formControlCustomValidatorSchema } from './customValidationSchema.js';
10
+ import { InputFileType } from '../interfaces/formInput/FileUploadInputInterface.js';
11
+ import { LabelPosition } from '../interfaces/formInput/ToggleInputInterface.js';
12
+ import { calculatedFieldRulesSchema } from './CalculatedFieldRulesSchema.js';
13
+ import { MscoaInputConfigSchema } from './MscoaConfigSchema.js';
14
+ import { MatDataOptionsSchema } from './MatOptionsSchema.js';
15
+ import { CalculationFunctions } from '../interfaces/formInput/calculationVariableInterface.js';
16
+ import { RichTextEditorType } from '../interfaces/formInput/RichTextEditorInput.js';
17
+ import { InputViewTypes, OptionSelectTypes } from '../interfaces/formInput/BasicFormInputInterface.js';
18
+ import { MultipleInputAvailableOperations } from '../interfaces/formInput/MultipleInterface.js';
19
+ import { workflowDocumentPickerConfigSchema } from './DocmentPickerInputSchema.js';
20
20
  export const paginationSelectionConfigSchema = Joi.object({
21
21
  useLocalPagination: Joi.boolean().optional(),
22
22
  primaryIdentifierKey: Joi.array().items(Joi.object()).optional(),
@@ -1,5 +1,5 @@
1
- import * as Joi from 'joi';
2
- import { FormInterface } from "../interfaces/Form";
1
+ import Joi from 'joi';
2
+ import { FormInterface } from "../interfaces/Form/index.js";
3
3
  export declare const FormSlideSchema: Joi.ObjectSchema<any>;
4
4
  export declare const FormSubmissionHandleSchema: Joi.ObjectSchema<any>;
5
5
  export declare const FormSchema: Joi.ObjectSchema<any>;
@@ -1,6 +1,6 @@
1
- import * as Joi from 'joi';
2
- import { formColumnInputsSchema } from "./FormInputSchema";
3
- import { APIDataFetchingConfigurationSchema, MongoDbPipeLineConfigSchema } from "./MatOptionsSchema";
1
+ import Joi from 'joi';
2
+ import { formColumnInputsSchema } from "./FormInputSchema.js";
3
+ import { APIDataFetchingConfigurationSchema, MongoDbPipeLineConfigSchema } from "./MatOptionsSchema.js";
4
4
  export const FormSlideSchema = Joi.object({
5
5
  sectionId: Joi.string().required(),
6
6
  label: Joi.string().required(),
@@ -1,6 +1,6 @@
1
1
  import Joi from 'joi';
2
- import { ElementTypes, InputDataTypes, MinInputTypes } from '../interfaces/formInput';
3
- import { JsDataTypes } from '../interfaces/formInput/MinimumInputRequiredInterface';
2
+ import { ElementTypes, InputDataTypes, MinInputTypes } from '../interfaces/formInput/index.js';
3
+ import { JsDataTypes } from '../interfaces/formInput/MinimumInputRequiredInterface.js';
4
4
  const DynamicObjectSchema = Joi.object().pattern(Joi.alternatives().try(Joi.string(), Joi.number()), Joi.any());
5
5
  const FormInputBasicOptionSchema = Joi.object({
6
6
  label: Joi.string().optional(),
@@ -1,5 +1,5 @@
1
1
  import Joi from 'joi';
2
- import { AccountingBasis } from '../interfaces/formInput/IMscoaAccount';
2
+ import { AccountingBasis } from '../interfaces/formInput/IMscoaAccount.js';
3
3
  export const IncludedSegmentConfigSchema = Joi.object({
4
4
  segment: Joi.string(),
5
5
  customSegment: Joi.string().optional(),
@@ -1,3 +1,3 @@
1
- import * as Joi from 'joi';
1
+ import Joi from 'joi';
2
2
  export declare const inputsObservedForChangesSchema: Joi.ObjectSchema<any>;
3
3
  export declare const formControlCustomValidatorSchema: Joi.ObjectSchema<any>;
@@ -1,7 +1,11 @@
1
- import * as Joi from 'joi';
1
+ import Joi from 'joi';
2
+ import { CalculationFunctions } from '../interfaces/formInput/calculationVariableInterface.js';
2
3
  export const inputsObservedForChangesSchema = Joi.object({
3
4
  inputId: Joi.string(),
4
- variable: Joi.string()
5
+ variable: Joi.string(),
6
+ // Multiple-input (list) bindings — see InputObservedForChange.
7
+ parentInputId: Joi.string().optional(),
8
+ function: Joi.string().valid(...Object.values(CalculationFunctions)).optional()
5
9
  });
6
10
  export const formControlCustomValidatorSchema = Joi.object({
7
11
  id: Joi.string().required(),
@@ -1,4 +1,4 @@
1
- import { validateCalculatedFieldRules } from "./CalculatedFieldRulesSchema";
2
- import { formColumnInputsSchema, validateFormColumnInputs, validateFormColumnInputsWithRequired } from "./FormInputSchema";
3
- import { DatabaseFormSchema, FormSchema, validateApiDataFetchingConfiguration, validateForm, validateFormSlide } from "./FormSchema";
1
+ import { validateCalculatedFieldRules } from "./CalculatedFieldRulesSchema.js";
2
+ import { formColumnInputsSchema, validateFormColumnInputs, validateFormColumnInputsWithRequired } from "./FormInputSchema.js";
3
+ import { DatabaseFormSchema, FormSchema, validateApiDataFetchingConfiguration, validateForm, validateFormSlide } from "./FormSchema.js";
4
4
  export { FormSchema, DatabaseFormSchema, formColumnInputsSchema, validateCalculatedFieldRules, validateFormColumnInputs, validateFormSlide, validateFormColumnInputsWithRequired, validateForm, validateApiDataFetchingConfiguration };
@@ -1,4 +1,4 @@
1
- import { validateCalculatedFieldRules } from "./CalculatedFieldRulesSchema";
2
- import { formColumnInputsSchema, validateFormColumnInputs, validateFormColumnInputsWithRequired } from "./FormInputSchema";
3
- import { DatabaseFormSchema, FormSchema, validateApiDataFetchingConfiguration, validateForm, validateFormSlide } from "./FormSchema";
1
+ import { validateCalculatedFieldRules } from "./CalculatedFieldRulesSchema.js";
2
+ import { formColumnInputsSchema, validateFormColumnInputs, validateFormColumnInputsWithRequired } from "./FormInputSchema.js";
3
+ import { DatabaseFormSchema, FormSchema, validateApiDataFetchingConfiguration, validateForm, validateFormSlide } from "./FormSchema.js";
4
4
  export { FormSchema, DatabaseFormSchema, formColumnInputsSchema, validateCalculatedFieldRules, validateFormColumnInputs, validateFormSlide, validateFormColumnInputsWithRequired, validateForm, validateApiDataFetchingConfiguration };