pristine-member-nest-api-database 1.2.7 → 1.2.8
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.
|
@@ -4,7 +4,7 @@ import { FieldTypeEnum } from "./Editor.FieldTypeMaster.model";
|
|
|
4
4
|
|
|
5
5
|
// TEXT OR TEXT AREA
|
|
6
6
|
export interface TextFieldConfig {
|
|
7
|
-
|
|
7
|
+
pattern?: string | null; // regex pattern for validation
|
|
8
8
|
minLength?: number | null;
|
|
9
9
|
maxLength?: number | null;
|
|
10
10
|
}
|
|
@@ -73,6 +73,10 @@ export interface MatrixFieldConfig {
|
|
|
73
73
|
columns: MatrixColumn[];
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
export interface DateFieldConfig {
|
|
77
|
+
pastDateEnabled?: boolean;
|
|
78
|
+
futureDateEnabled?: boolean;
|
|
79
|
+
}
|
|
76
80
|
/* =========================
|
|
77
81
|
UNION CONFIG TYPE
|
|
78
82
|
========================= */
|
|
@@ -83,6 +87,7 @@ export type FieldConfig =
|
|
|
83
87
|
| OptionFieldConfig
|
|
84
88
|
| TableFieldConfig
|
|
85
89
|
| MatrixFieldConfig
|
|
90
|
+
| DateFieldConfig
|
|
86
91
|
| null;
|
|
87
92
|
|
|
88
93
|
interface EditorField extends Document {
|