ngx-t-forms-types 0.0.3 → 0.0.4
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.
|
@@ -646,6 +646,7 @@ export const DefaultInputConfig = {
|
|
|
646
646
|
AllFormInputPrimaryKeys.Validators,
|
|
647
647
|
AllFormInputPrimaryKeys.Required,
|
|
648
648
|
AllFormInputPrimaryKeys.HintLabel,
|
|
649
|
+
AllFormInputPrimaryKeys.MatOptions,
|
|
649
650
|
AllFormInputPrimaryKeys.FormInputs,
|
|
650
651
|
AllFormInputPrimaryKeys.HandleLabel,
|
|
651
652
|
],
|
|
@@ -65,13 +65,6 @@ export var ElementConfig = {
|
|
|
65
65
|
editType: ElementEditorTypes.Input,
|
|
66
66
|
deepBind: [AllFormInputPrimaryKeys.StartDateControl],
|
|
67
67
|
blurHandle: BlurHandleTypes.CleanFormControl,
|
|
68
|
-
disabled: [
|
|
69
|
-
//Don't allow editing if the form control name is already set
|
|
70
|
-
{
|
|
71
|
-
deepBind: [AllFormInputPrimaryKeys.Id],
|
|
72
|
-
testType: 'exists'
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
68
|
hint: "Because a date range has two values representing the start end end value, you need to assign a form control name to the start date input.",
|
|
76
69
|
label: 'Start Date Control name',
|
|
77
70
|
},
|
|
@@ -79,13 +72,6 @@ export var ElementConfig = {
|
|
|
79
72
|
name: AllFormInputPrimaryKeys.EndDateControl,
|
|
80
73
|
deepBind: [AllFormInputPrimaryKeys.EndDateControl],
|
|
81
74
|
id: "a50917da-9129-434a-b2db-316dea2ff0a7",
|
|
82
|
-
disabled: [
|
|
83
|
-
//Don't allow editing if the form control name is already set
|
|
84
|
-
{
|
|
85
|
-
deepBind: [AllFormInputPrimaryKeys.Id],
|
|
86
|
-
testType: 'exists'
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
75
|
editType: ElementEditorTypes.Input,
|
|
90
76
|
blurHandle: BlurHandleTypes.CleanFormControl,
|
|
91
77
|
label: 'End Date Control name',
|
|
@@ -111,7 +111,7 @@ export interface IBasicFormInput extends IFormElementTemplate {
|
|
|
111
111
|
};
|
|
112
112
|
hintLabel?: string;
|
|
113
113
|
temporaryHint?: string;
|
|
114
|
-
valueUpdatedAt?: Date;
|
|
114
|
+
valueUpdatedAt?: Date | undefined;
|
|
115
115
|
status?: Record<string, string>;
|
|
116
116
|
min?: number | string | Date | MaxMinCustomScripts;
|
|
117
117
|
max?: number | string | Date | MaxMinCustomScripts;
|
|
@@ -66,7 +66,7 @@ const baseFormColumnInputsSchema = Joi.object({
|
|
|
66
66
|
[AllFormInputPrimaryKeys.OnlySetTempErrorOnTouch]: Joi.boolean().optional(),
|
|
67
67
|
[AllFormInputPrimaryKeys.IsCalculatedField]: Joi.boolean().optional(),
|
|
68
68
|
[AllFormInputPrimaryKeys.TemporaryHint]: Joi.string().optional(),
|
|
69
|
-
[AllFormInputPrimaryKeys.ValueUpdatedAt]: Joi.
|
|
69
|
+
[AllFormInputPrimaryKeys.ValueUpdatedAt]: Joi.any().optional(),
|
|
70
70
|
[AllFormInputPrimaryKeys.Status]: Joi.object().pattern(Joi.string(), Joi.string()).optional(),
|
|
71
71
|
[AllFormInputPrimaryKeys.ViewType]: Joi.string().valid(...Object.values(InputViewTypes)).optional(),
|
|
72
72
|
[AllFormInputPrimaryKeys.FormIsOpen]: Joi.boolean().optional(),
|