ngx-t-forms-types 0.0.8 → 0.0.9

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 CHANGED
@@ -5,4 +5,5 @@ export * from './interfaces/formInput/index';
5
5
  export * from './interfaces/FormBuilder/index';
6
6
  export * from './interfaces/environment/index';
7
7
  export * from './interfaces/pipeline-builder/index';
8
+ export * from './interfaces/workflow/index';
8
9
  export * from './schemas/index';
package/dist/index.js CHANGED
@@ -5,4 +5,5 @@ export * from './interfaces/formInput/index';
5
5
  export * from './interfaces/FormBuilder/index';
6
6
  export * from './interfaces/environment/index';
7
7
  export * from './interfaces/pipeline-builder/index';
8
+ export * from './interfaces/workflow/index';
8
9
  export * from './schemas/index';
@@ -1,7 +1,14 @@
1
- import { APIDataFetchingConfigurationInterface } from "../formInput";
1
+ import { APIDataFetchingConfigurationInterface, MongoDbPipeLineConfigInterface } from "../formInput";
2
+ import { DataSources } from "../formInput/APIDataFetchingConfigurationInterface";
2
3
  export interface FormSubmissionHandleInterface {
3
4
  innerComponentShowSubmitButton?: boolean;
4
5
  canSubmitAPI?: Array<APIDataFetchingConfigurationInterface>;
5
6
  submissionAPI: Array<APIDataFetchingConfigurationInterface>;
6
7
  submissionMessage?: string;
7
8
  }
9
+ export interface IReportDataSources {
10
+ id: string;
11
+ name: string;
12
+ source: DataSources;
13
+ config: APIDataFetchingConfigurationInterface | MongoDbPipeLineConfigInterface;
14
+ }
@@ -7,6 +7,6 @@ import { FileData, FileUploadFn } from "./FileUploadFn";
7
7
  import { IFormChangeHistory } from "./formChangeHistory";
8
8
  import { IFormActions, InClassFormUtilsInterface, InClassFormUtilsWithSectionsInterface } from "./FormInClassUtils";
9
9
  import { FormInterface, DatabaseFormInterface } from "./formInterface";
10
- import { FormSubmissionHandleInterface } from "./formSubmissionHandleInterface";
10
+ import { FormSubmissionHandleInterface, IReportDataSources } from "./formSubmissionHandleInterface";
11
11
  import { FormListSection, FormStateErrors, IFormsInitStateInterface, LocalFormStateSelectorInterface } from "./IFormsInitStateInterface";
12
- export { CustomConfigInterface, InClassFormUtilsInterface, InClassFormUtilsWithSectionsInterface, FormInterface, DatabaseFormInterface, FormSubmissionHandleInterface, FormColumnInputs, IFormActions, NgxTFormsConfig, FileUploadFn, FileData, FormListSection, LocalFormStateSelectorInterface, IFormsInitStateInterface, FormStateErrors, IArrayFunction, OLD_FormInterface, IAllInputs, IFormChangeHistory };
12
+ export { CustomConfigInterface, InClassFormUtilsInterface, InClassFormUtilsWithSectionsInterface, FormInterface, DatabaseFormInterface, FormSubmissionHandleInterface, FormColumnInputs, IFormActions, NgxTFormsConfig, FileUploadFn, FileData, FormListSection, LocalFormStateSelectorInterface, IFormsInitStateInterface, FormStateErrors, IArrayFunction, OLD_FormInterface, IAllInputs, IFormChangeHistory, IReportDataSources };
@@ -56,6 +56,7 @@ export declare enum AllFormInputPrimaryKeys {
56
56
  MaxLength = "maxLength",
57
57
  HandleLabel = "handleLabel",
58
58
  MscoaConfig = "mscoaConfig",
59
+ SystemDefault = "systemDefault",
59
60
  Value = "value",
60
61
  DataType = "dataType",
61
62
  Readonly = "readonly",
@@ -60,6 +60,7 @@ export var AllFormInputPrimaryKeys;
60
60
  AllFormInputPrimaryKeys["MaxLength"] = "maxLength";
61
61
  AllFormInputPrimaryKeys["HandleLabel"] = "handleLabel";
62
62
  AllFormInputPrimaryKeys["MscoaConfig"] = "mscoaConfig";
63
+ AllFormInputPrimaryKeys["SystemDefault"] = "systemDefault";
63
64
  AllFormInputPrimaryKeys["Value"] = "value";
64
65
  AllFormInputPrimaryKeys["DataType"] = "dataType";
65
66
  AllFormInputPrimaryKeys["Readonly"] = "readonly";
@@ -26,7 +26,9 @@ export declare enum ElementEditorTypes {
26
26
  ConfigMscoaAdditionalInputs = "configMscoaAdditionalInputs",
27
27
  MongoPipelineBuilder = "mongoPipelineBuilder",
28
28
  ChipOptionsCreator = "chipOptionsCreator",
29
- default = "default"
29
+ default = "default",
30
+ DataSourcePicker = "dataSourcePicker",
31
+ ListLabelConfigEditor = "listLabelConfigEditor"
30
32
  }
31
33
  export interface ElementEditorConfigInterface {
32
34
  editorSections: Array<ElementEditorConfigSectionInterface>;
@@ -21,6 +21,8 @@ export var ElementEditorTypes;
21
21
  ElementEditorTypes["MongoPipelineBuilder"] = "mongoPipelineBuilder";
22
22
  ElementEditorTypes["ChipOptionsCreator"] = "chipOptionsCreator";
23
23
  ElementEditorTypes["default"] = "default";
24
+ ElementEditorTypes["DataSourcePicker"] = "dataSourcePicker";
25
+ ElementEditorTypes["ListLabelConfigEditor"] = "listLabelConfigEditor";
24
26
  })(ElementEditorTypes || (ElementEditorTypes = {}));
25
27
  // interface TStringExpressionValidationTest{
26
28
  // expression: string;
@@ -235,6 +235,13 @@ export var ElementConfig = {
235
235
  label: 'Set as readonly field',
236
236
  id: "cdc5173b-8464-4e03-b0fb-6258437fa50b"
237
237
  },
238
+ {
239
+ name: SpecialElementKeys.Default,
240
+ editType: ElementEditorTypes.Toggle,
241
+ deepBind: [AllFormInputPrimaryKeys.SystemDefault],
242
+ label: 'Set as system default',
243
+ id: "dbe19360-c923-467a-a7aa-000452af6c5d"
244
+ },
238
245
  {
239
246
  name: AllFormInputPrimaryKeys.IServeInputWithRequisitionItems,
240
247
  deepBind: ['iServeInputWithRequisitionItems'],
@@ -87,6 +87,7 @@ export interface IFormElementTemplate {
87
87
  element: ElementTypes;
88
88
  dataType: InputDataTypes;
89
89
  appearance: MatFormFieldAppearance;
90
+ systemDefault?: boolean;
90
91
  type?: InputTypes;
91
92
  required: boolean;
92
93
  colSize: number;
@@ -0,0 +1,45 @@
1
+ export declare enum SectionTypeGroups {
2
+ Transactions = "transactions",
3
+ Processes = "processes",
4
+ System = "system",
5
+ FormPreview = "formPreview",
6
+ Home = "home",
7
+ Transaction = "transaction",
8
+ Report = "Report"
9
+ }
10
+ export interface DocumentSectionConfigurationsInterface {
11
+ sectionTitle: string;
12
+ icon: string;
13
+ getSectionList: {
14
+ submissionId: string;
15
+ httpEndPoint: string;
16
+ };
17
+ documentDetailsConfig?: {
18
+ title: string;
19
+ };
20
+ sectionGroup: SectionTypeGroups;
21
+ docuListConfig?: DocumentLitsConfigInterface;
22
+ }
23
+ export interface DocumentLitsConfigInterface {
24
+ segments: any[];
25
+ activeSegment: string;
26
+ labelConfiguration: DocumentLitsLabelConfigInterface[];
27
+ }
28
+ export declare enum DocumentLitsLabelConfigInterfaceValueType {
29
+ currency = "currency",
30
+ number = "number",
31
+ string = "string",
32
+ date = "date",
33
+ daysAgo = "daysAgo",
34
+ systemReference = "systemReference"
35
+ }
36
+ export interface DocumentLitsLabelConfigInterface {
37
+ label: string;
38
+ formControlName: string;
39
+ isHidden?: boolean;
40
+ stepName: string | null;
41
+ valueType: DocumentLitsLabelConfigInterfaceValueType;
42
+ }
43
+ export interface GridListLabelConfigInterface {
44
+ labelConfiguration: DocumentLitsLabelConfigInterface[];
45
+ }
@@ -0,0 +1,19 @@
1
+ export var SectionTypeGroups;
2
+ (function (SectionTypeGroups) {
3
+ SectionTypeGroups["Transactions"] = "transactions";
4
+ SectionTypeGroups["Processes"] = "processes";
5
+ SectionTypeGroups["System"] = "system";
6
+ SectionTypeGroups["FormPreview"] = "formPreview";
7
+ SectionTypeGroups["Home"] = "home";
8
+ SectionTypeGroups["Transaction"] = "transaction";
9
+ SectionTypeGroups["Report"] = "Report";
10
+ })(SectionTypeGroups || (SectionTypeGroups = {}));
11
+ export var DocumentLitsLabelConfigInterfaceValueType;
12
+ (function (DocumentLitsLabelConfigInterfaceValueType) {
13
+ DocumentLitsLabelConfigInterfaceValueType["currency"] = "currency";
14
+ DocumentLitsLabelConfigInterfaceValueType["number"] = "number";
15
+ DocumentLitsLabelConfigInterfaceValueType["string"] = "string";
16
+ DocumentLitsLabelConfigInterfaceValueType["date"] = "date";
17
+ DocumentLitsLabelConfigInterfaceValueType["daysAgo"] = "daysAgo";
18
+ DocumentLitsLabelConfigInterfaceValueType["systemReference"] = "systemReference";
19
+ })(DocumentLitsLabelConfigInterfaceValueType || (DocumentLitsLabelConfigInterfaceValueType = {}));
@@ -0,0 +1,2 @@
1
+ import { DocumentLitsLabelConfigInterface, DocumentLitsLabelConfigInterfaceValueType } from "./DocumentSectionConfigurationsInterface";
2
+ export { DocumentLitsLabelConfigInterface, DocumentLitsLabelConfigInterfaceValueType };
@@ -0,0 +1,2 @@
1
+ import { DocumentLitsLabelConfigInterfaceValueType } from "./DocumentSectionConfigurationsInterface";
2
+ export { DocumentLitsLabelConfigInterfaceValueType };
@@ -36,6 +36,7 @@ export const baseFormColumnInputsSchema = Joi.object({
36
36
  [AllFormInputPrimaryKeys.MaxLength]: Joi.number().integer().optional(),
37
37
  [AllFormInputPrimaryKeys.LinkedSegmentId]: Joi.string().optional(),
38
38
  [AllFormInputPrimaryKeys.MscoaConfig]: MscoaInputConfigSchema.optional(),
39
+ [AllFormInputPrimaryKeys.SystemDefault]: Joi.boolean().optional(),
39
40
  [AllFormInputPrimaryKeys.Value]: Joi.alternatives().try(Joi.number(), Joi.string().allow(''), Joi.boolean(), Joi.date(), Joi.object(), Joi.array().items(Joi.object())).optional(),
40
41
  [AllFormInputPrimaryKeys.DataType]: Joi.string().valid(...Object.values(InputDataTypes)).required(),
41
42
  [AllFormInputPrimaryKeys.Readonly]: Joi.boolean().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-t-forms-types",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Typings and interfaces for the ngx-t-forms library for dynamic forms.",
5
5
  "keywords": [
6
6
  "typings",
@@ -29,6 +29,7 @@
29
29
  "test": "karma start",
30
30
  "clean": "rimraf dist",
31
31
  "build": "npm run clean && tsc",
32
+ "build:prod": "npm run build --mode production",
32
33
  "prepublishOnly": "npm run build",
33
34
  "dev": "npm run build --watch"
34
35
  },