ngx-t-forms-types 0.0.4 → 0.0.5

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.
@@ -1,6 +1,7 @@
1
1
  import Joi from 'joi';
2
2
  import { FormColumnInputs } from '../interfaces/Form';
3
3
  import { ValidationError, ValidationOptions } from '../interfaces/formInput/schema';
4
+ export declare const baseFormColumnInputsSchema: Joi.ObjectSchema<any>;
4
5
  declare const formColumnInputsSchema: Joi.ObjectSchema<any>;
5
6
  declare function validateFormColumnInputs(data: FormColumnInputs): {
6
7
  key: string;
@@ -15,7 +15,7 @@ import { MatDataOptionsSchema } from './MatOptionsSchema';
15
15
  import { CalculationFunctions } from '../interfaces/formInput/calculationVariableInterface';
16
16
  import { RichTextEditorType } from '../interfaces/formInput/RichTextEditorInput';
17
17
  import { InputViewTypes } from '../interfaces/formInput/BasicFormInputInterface';
18
- const baseFormColumnInputsSchema = Joi.object({
18
+ export const baseFormColumnInputsSchema = Joi.object({
19
19
  [AllFormInputPrimaryKeys.Id]: Joi.string().optional(),
20
20
  [AllFormInputPrimaryKeys.SectionId]: Joi.string().optional(),
21
21
  [AllFormInputPrimaryKeys.Element]: Joi.string().valid(...Object.values(ElementTypes)).required(),
@@ -1,6 +1,5 @@
1
1
  import Joi from 'joi';
2
2
  export declare const IncludedSegmentConfigSchema: Joi.ObjectSchema<any>;
3
- export declare const ScoaInnerInputSchema: Joi.ObjectSchema<any>;
4
3
  export declare const MscoaInputConfigSchema: Joi.ObjectSchema<any>;
5
4
  export declare function validateMscoaInputConfig(value: any): {
6
5
  error: Joi.ValidationError | undefined;
@@ -8,14 +8,8 @@ export const IncludedSegmentConfigSchema = Joi.object({
8
8
  segmentExtension: Joi.boolean().required(),
9
9
  id: Joi.string().required()
10
10
  });
11
- export const ScoaInnerInputSchema = Joi.object({
12
- segment: Joi.string().required(),
13
- id: Joi.string().required(),
14
- label: Joi.string().required(),
15
- formControlName: Joi.string().required(),
16
- });
17
11
  export const MscoaInputConfigSchema = Joi.object({
18
- inputs: Joi.array().items(ScoaInnerInputSchema).required(),
12
+ inputs: Joi.array().items(Joi.object().pattern(/./, Joi.any())).required(),
19
13
  segments: Joi.array().items(IncludedSegmentConfigSchema).min(1).required(),
20
14
  showAllSegments: Joi.boolean().required()
21
15
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-t-forms-types",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Typings and interfaces for the ngx-t-forms library for dynamic forms.",
5
5
  "keywords": [
6
6
  "typings",