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.
- package/dist/index.d.ts +13 -9
- package/dist/index.js +13 -9
- package/dist/interfaces/DeepProperty/DeepProperty.d.ts +25 -0
- package/dist/interfaces/DeepProperty/DeepProperty.js +1 -0
- package/dist/interfaces/DeepProperty/index.d.ts +1 -0
- package/dist/interfaces/DeepProperty/index.js +1 -0
- package/dist/interfaces/Encryption/EncryptedData.d.ts +19 -0
- package/dist/interfaces/Encryption/EncryptedData.js +1 -0
- package/dist/interfaces/Encryption/index.d.ts +1 -0
- package/dist/interfaces/Encryption/index.js +1 -0
- package/dist/interfaces/Form/ArrayFunctions.d.ts +43 -1
- package/dist/interfaces/Form/ArrayFunctions.js +28 -0
- package/dist/interfaces/Form/FormInClassUtils.d.ts +9 -7
- package/dist/interfaces/Form/IFormsInitStateInterface.d.ts +1 -1
- package/dist/interfaces/Form/formInterface.d.ts +8 -3
- package/dist/interfaces/Form/formSubmissionHandleInterface.d.ts +2 -2
- package/dist/interfaces/Form/index.d.ts +13 -12
- package/dist/interfaces/Form/index.js +5 -1
- package/dist/interfaces/FormBuilder/DefaultEelement.d.ts +1 -1
- package/dist/interfaces/FormBuilder/DefaultEelement.js +9 -9
- package/dist/interfaces/FormBuilder/DefaultInputConfigInterface.d.ts +36 -25
- package/dist/interfaces/FormBuilder/DefaultInputConfigInterface.js +1 -1
- package/dist/interfaces/FormBuilder/FormBuilderCallBackFunctions.d.ts +11 -3
- package/dist/interfaces/FormBuilder/elementEditor.d.ts +8 -7
- package/dist/interfaces/FormBuilder/elementEditor.js +1 -0
- package/dist/interfaces/FormBuilder/index.d.ts +11 -10
- package/dist/interfaces/FormBuilder/index.js +6 -6
- package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.d.ts +1 -1
- package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.js +14 -13
- package/dist/interfaces/FormBuilder/inputConfig/getInputValueFromElement.js +3 -3
- package/dist/interfaces/FormBuilder/workflowSelectionConfig.d.ts +2 -2
- package/dist/interfaces/FormSlide/accessTree.d.ts +1 -1
- package/dist/interfaces/FormSlide/formSlideInterface.d.ts +1 -1
- package/dist/interfaces/FormSlide/index.d.ts +3 -3
- package/dist/interfaces/FormSlide/index.js +1 -1
- package/dist/interfaces/Import/ImportProgress.d.ts +29 -0
- package/dist/interfaces/Import/ImportProgress.js +1 -0
- package/dist/interfaces/Import/ImportRowState.d.ts +66 -0
- package/dist/interfaces/Import/ImportRowState.js +1 -0
- package/dist/interfaces/Import/index.d.ts +2 -0
- package/dist/interfaces/Import/index.js +1 -0
- package/dist/interfaces/Tour/IFormTour.d.ts +14 -0
- package/dist/interfaces/Tour/IFormTour.js +1 -0
- package/dist/interfaces/Tour/index.d.ts +1 -0
- package/dist/interfaces/Tour/index.js +1 -0
- package/dist/interfaces/Tower/ITowerFormSteps.d.ts +3 -3
- package/dist/interfaces/Tower/ITowerFormSteps.js +1 -1
- package/dist/interfaces/Tower/index.d.ts +1 -1
- package/dist/interfaces/environment/IStoreFunctions.d.ts +8 -7
- package/dist/interfaces/environment/IStoreFunctions.js +1 -1
- package/dist/interfaces/environment/environment.d.ts +1 -1
- package/dist/interfaces/environment/index.d.ts +2 -2
- package/dist/interfaces/formInput/APIDataFetchingConfigurationInterface.d.ts +3 -3
- package/dist/interfaces/formInput/BasicFormInputInterface.d.ts +9 -9
- package/dist/interfaces/formInput/DateRangePickerInput.d.ts +1 -1
- package/dist/interfaces/formInput/FileUploadInputInterface.d.ts +7 -2
- package/dist/interfaces/formInput/FormControlCustomValidatorsInterface.d.ts +38 -4
- package/dist/interfaces/formInput/FormValidationOverride.d.ts +48 -0
- package/dist/interfaces/formInput/FormValidationOverride.js +1 -0
- package/dist/interfaces/formInput/IMscoaAccount.d.ts +25 -9
- package/dist/interfaces/formInput/ISelectInputInterface.d.ts +3 -3
- package/dist/interfaces/formInput/ISelectInputInterface.js +1 -1
- package/dist/interfaces/formInput/MatDataOptionsInterface.d.ts +2 -2
- package/dist/interfaces/formInput/MatrixInputInterface.d.ts +2 -2
- package/dist/interfaces/formInput/MinimumInputRequiredInterface.d.ts +1 -1
- package/dist/interfaces/formInput/MscoaInput.d.ts +2 -2
- package/dist/interfaces/formInput/MscoaInput.js +1 -1
- package/dist/interfaces/formInput/MultipleInterface.d.ts +2 -2
- package/dist/interfaces/formInput/RichTextEditorInput.d.ts +16 -2
- package/dist/interfaces/formInput/RichTextEditorInput.js +11 -1
- package/dist/interfaces/formInput/TableConfigurationsInterface.d.ts +1 -1
- package/dist/interfaces/formInput/TextAreaInput.d.ts +1 -1
- package/dist/interfaces/formInput/ToggleInputInterface.d.ts +1 -1
- package/dist/interfaces/formInput/WorkflowAdjudication.d.ts +16 -4
- package/dist/interfaces/formInput/WorkflowDocumentPicker.d.ts +4 -4
- package/dist/interfaces/formInput/WorkflowDocumentPicker.js +1 -1
- package/dist/interfaces/formInput/calculatedFieldRules.d.ts +1 -1
- package/dist/interfaces/formInput/calculationVariableInterface.d.ts +3 -1
- package/dist/interfaces/formInput/calculationVariableInterface.js +2 -0
- package/dist/interfaces/formInput/index.d.ts +28 -26
- package/dist/interfaces/formInput/index.js +15 -9
- package/dist/interfaces/formInput/schema.d.ts +11 -2
- package/dist/interfaces/pipeline-builder/index.d.ts +1 -1
- package/dist/interfaces/pipeline-builder/index.js +1 -1
- package/dist/interfaces/upgradeFunctions/interfaces/init-form.d.ts +14 -1
- package/dist/interfaces/workflow/WorkflowFunctionTypes.d.ts +26 -0
- package/dist/interfaces/workflow/WorkflowFunctionTypes.js +27 -0
- package/dist/interfaces/workflow/index.d.ts +3 -2
- package/dist/interfaces/workflow/index.js +3 -2
- package/dist/schemas/CalculatedFieldRulesSchema.d.ts +1 -1
- package/dist/schemas/CalculatedFieldRulesSchema.js +1 -1
- package/dist/schemas/DocmentPickerInputSchema.js +2 -2
- package/dist/schemas/FormInputSchema.d.ts +2 -2
- package/dist/schemas/FormInputSchema.js +18 -18
- package/dist/schemas/FormSchema.d.ts +2 -2
- package/dist/schemas/FormSchema.js +3 -3
- package/dist/schemas/MatOptionsSchema.js +2 -2
- package/dist/schemas/MscoaConfigSchema.js +1 -1
- package/dist/schemas/customValidationSchema.d.ts +1 -1
- package/dist/schemas/customValidationSchema.js +6 -2
- package/dist/schemas/index.d.ts +3 -3
- package/dist/schemas/index.js +3 -3
- package/dist/schemas/tests/CustomValidationSchema.spec.d.ts +1 -0
- package/dist/schemas/tests/CustomValidationSchema.spec.js +92 -0
- package/dist/schemas/tests/FormInputValidator.spec.js +3 -8
- 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
|
-
|
|
4
|
-
|
|
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 { 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
|
-
|
|
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
|
-
|
|
23
|
-
|
|
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;
|
|
@@ -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 {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1
|
+
import { DocumentLitsLabelConfigInterfaceValueType, ReportTypes } from "./DocumentSectionConfigurationsInterface.js";
|
|
2
|
+
import { WorkflowFunctionTypes } from "./WorkflowFunctionTypes.js";
|
|
3
|
+
export { DocumentLitsLabelConfigInterfaceValueType, ReportTypes, WorkflowFunctionTypes };
|
|
@@ -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
|
|
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
|
|
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,7 +1,11 @@
|
|
|
1
|
-
import
|
|
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(),
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -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 };
|
package/dist/schemas/index.js
CHANGED
|
@@ -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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|