@griddo/core 11.2.12 → 11.2.13-rc.0
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/types/core/index.d.ts +2 -1
- package/dist/types/schema-fields/props.d.ts +5 -1
- package/dist/types/schema-fields/ui-form-fields.d.ts +2 -4
- package/dist/types/schema-fields/ui-form-template-fields.d.ts +30 -32
- package/dist/types/schema-fields/ui-template-fields.d.ts +3 -2
- package/dist/types/schemas/FormCategories.d.ts +7 -0
- package/dist/types/schemas/UI.d.ts +11 -3
- package/dist/types/schemas/index.d.ts +2 -2
- package/package.json +2 -2
|
@@ -364,7 +364,8 @@ interface Config {
|
|
|
364
364
|
forms?: {
|
|
365
365
|
templates: Record<string, Schema.FormTemplate>;
|
|
366
366
|
fields: Record<string, Schema.FormField>;
|
|
367
|
-
categories
|
|
367
|
+
categories?: Schema.FormCategories;
|
|
368
|
+
templateCategories?: Schema.FormTemplateCategories;
|
|
368
369
|
};
|
|
369
370
|
};
|
|
370
371
|
}
|
|
@@ -174,4 +174,8 @@ type WithHidden = {
|
|
|
174
174
|
/** Hides the field in the Griddo editor, useful when use computed fields */
|
|
175
175
|
hidden?: boolean;
|
|
176
176
|
};
|
|
177
|
-
|
|
177
|
+
type WithOverwrite = {
|
|
178
|
+
/** Allows to overwrite form field content in page editor */
|
|
179
|
+
overwrite?: boolean;
|
|
180
|
+
};
|
|
181
|
+
export type { Option, SearchFrom, ThemeColors, ThemeFixedColors, ThemeVisualUniqueSelection, ThumbnailOption, WithAuxText, WithBackground, WithComputed, WithDataSources, WithDisabled, WithEntity, WithFrom, WithFullWidth, WithGroup, WithHelpText, WithHidden, WithHideable, WithHumanReadable, WithIndexable, WithIsMockup, WithOverwrite, WithPlaceHolder, WithPrefix, WithReadonly, WithRelations_AutoTypes, WithSearchable, WithShowList, WithSimpleContentTypeComputed, WithSlugTo, WithSource, WithSources, WithValidators, WithWhiteList, };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { BaseArrayFieldGroup, BaseAsyncCheckGroup, BaseAsyncSelect, BaseCheckGroup, BaseColorPicker,
|
|
1
|
+
import type { BaseArrayFieldGroup, BaseAsyncCheckGroup, BaseAsyncSelect, BaseCheckGroup, BaseColorPicker, BaseConditionalField, BaseDateField, BaseFieldGroup, BaseFieldsDivider, BaseFileField, BaseHeadingField, BaseImageField, BaseLinkField, BaseMultiCheckSelect, BaseMultiCheckSelectGroup, BaseNoteField, BaseNumberField, BaseRadioGroup, BaseReferenceField, BaseRichText, BaseSelect, BaseSliderField, BaseTagsField, BaseTextArea, BaseTextField, BaseTimeField, BaseToggleField, BaseUniqueCheck, BaseUrlField, BaseVisualUniqueSelection, BaseWysiwyg } from "./base";
|
|
2
2
|
import type { WithAuxText, WithBackground, WithDataSources, WithFullWidth, WithHelpText, WithHidden, WithHideable, WithHumanReadable, WithIsMockup, WithPlaceHolder, WithPrefix, WithReadonly, WithRelations_AutoTypes, WithSlugTo, WithValidators, WithWhiteList } from "./props";
|
|
3
3
|
export type ArrayFieldGroup = BaseArrayFieldGroup<UIFormFields> & WithHelpText & WithHideable & WithHidden;
|
|
4
4
|
export type AsyncCheckGroup = BaseAsyncCheckGroup & WithHelpText & WithHideable & WithHidden;
|
|
5
5
|
export type AsyncSelect = BaseAsyncSelect & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
|
|
6
6
|
export type CheckGroup = BaseCheckGroup & WithHelpText & WithHideable & WithHidden;
|
|
7
7
|
export type ColorPicker = BaseColorPicker & WithHelpText & WithHideable & WithHidden;
|
|
8
|
-
export type ComponentArray = BaseComponentArray & WithWhiteList & WithHelpText & WithHidden;
|
|
9
|
-
export type ComponentContainer = BaseComponentContainer & WithWhiteList & WithHelpText & WithHideable & WithHidden;
|
|
10
8
|
export type ConditionalField = BaseConditionalField<UIFormFields> & WithHelpText & WithHideable & WithHidden;
|
|
11
9
|
export type DateField = BaseDateField & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
|
|
12
10
|
export type FieldGroup = BaseFieldGroup<UIFormFields> & WithHelpText & WithHideable & WithHidden;
|
|
@@ -33,4 +31,4 @@ export type UniqueCheck = BaseUniqueCheck & WithHelpText & WithHideable & WithHi
|
|
|
33
31
|
export type UrlField = BaseUrlField & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
|
|
34
32
|
export type VisualUniqueSelection = BaseVisualUniqueSelection & WithHelpText & WithHideable & WithHidden;
|
|
35
33
|
export type Wysiwyg = BaseWysiwyg & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden;
|
|
36
|
-
export type UIFormFields = ArrayFieldGroup | AsyncCheckGroup | AsyncSelect | CheckGroup | ColorPicker |
|
|
34
|
+
export type UIFormFields = ArrayFieldGroup | AsyncCheckGroup | AsyncSelect | CheckGroup | ColorPicker | ConditionalField | DateField | FieldGroup | FieldsDivider | FileField | HeadingField | ImageField | LinkField | MultiCheckSelect | MultiCheckSelectGroup | NoteField | NumberField | RadioGroup | ReferenceField | RichText | Select | SliderField | TagsField | TextArea | TextField | TimeField | ToggleField | UniqueCheck | UrlField | VisualUniqueSelection | Wysiwyg;
|
|
@@ -1,39 +1,37 @@
|
|
|
1
|
-
import type { BaseArrayFieldGroup, BaseAsyncCheckGroup, BaseAsyncSelect, BaseCheckGroup, BaseColorPicker,
|
|
2
|
-
import type { WithAuxText, WithBackground, WithComputed, WithDataSources, WithFormFieldsWhiteList, WithFullWidth, WithHelpText, WithHidden, WithHideable, WithHumanReadable, WithIsMockup, WithPlaceHolder, WithPrefix, WithReadonly, WithRelations_AutoTypes, WithSlugTo, WithValidators, WithWhiteList } from "./props";
|
|
1
|
+
import type { BaseArrayFieldGroup, BaseAsyncCheckGroup, BaseAsyncSelect, BaseCheckGroup, BaseColorPicker, BaseConditionalField, BaseDateField, BaseFieldGroup, BaseFieldsDivider, BaseFileField, BaseFormCategorySelect, BaseFormFieldArray, BaseHeadingField, BaseImageField, BaseLinkField, BaseMultiCheckSelect, BaseMultiCheckSelectGroup, BaseNoteField, BaseNumberField, BaseRadioGroup, BaseReferenceField, BaseRichText, BaseSelect, BaseSliderField, BaseTagsField, BaseTextArea, BaseTextField, BaseTimeField, BaseToggleField, BaseUniqueCheck, BaseUrlField, BaseVisualUniqueSelection, BaseWysiwyg } from "./base";
|
|
2
|
+
import type { WithAuxText, WithBackground, WithComputed, WithDataSources, WithFormFieldsWhiteList, WithFullWidth, WithHelpText, WithHidden, WithHideable, WithHumanReadable, WithIsMockup, WithOverwrite, WithPlaceHolder, WithPrefix, WithReadonly, WithRelations_AutoTypes, WithSlugTo, WithValidators, WithWhiteList } from "./props";
|
|
3
3
|
import type { Fields } from "../..";
|
|
4
|
-
export type ArrayFieldGroup = BaseArrayFieldGroup<UIFormTemplateFields> & WithHelpText & WithHideable & WithHidden;
|
|
5
|
-
export type AsyncCheckGroup = BaseAsyncCheckGroup & WithHelpText & WithHideable & WithHidden;
|
|
6
|
-
export type AsyncSelect = BaseAsyncSelect & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
|
|
7
|
-
export type CheckGroup = BaseCheckGroup & WithHelpText & WithHideable & WithHidden;
|
|
8
|
-
export type ColorPicker = BaseColorPicker & WithHelpText & WithHideable & WithHidden;
|
|
9
|
-
export type ComponentArray = BaseComponentArray & WithWhiteList & WithHelpText & WithHidden;
|
|
10
|
-
export type ComponentContainer = BaseComponentContainer & WithWhiteList & WithHelpText & WithHideable & WithHidden;
|
|
4
|
+
export type ArrayFieldGroup = BaseArrayFieldGroup<UIFormTemplateFields> & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
5
|
+
export type AsyncCheckGroup = BaseAsyncCheckGroup & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
6
|
+
export type AsyncSelect = BaseAsyncSelect & WithHelpText & WithHideable & WithPlaceHolder & WithHidden & WithOverwrite;
|
|
7
|
+
export type CheckGroup = BaseCheckGroup & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
8
|
+
export type ColorPicker = BaseColorPicker & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
11
9
|
export type ConditionalField = BaseConditionalField<UIFormTemplateFields> & WithHelpText & WithHideable & WithHidden;
|
|
12
|
-
export type DateField = BaseDateField & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
|
|
10
|
+
export type DateField = BaseDateField & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden & WithOverwrite;
|
|
13
11
|
export type FieldGroup = BaseFieldGroup<UIFormTemplateFields> & WithHelpText & WithHideable & WithHidden;
|
|
14
12
|
export type FieldsDivider = BaseFieldsDivider & WithHelpText & WithHideable & WithHidden;
|
|
15
|
-
export type FileField = BaseFileField & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
|
|
13
|
+
export type FileField = BaseFileField & WithHelpText & WithHideable & WithPlaceHolder & WithHidden & WithOverwrite;
|
|
16
14
|
export type FormCategorySelect = BaseFormCategorySelect & WithHelpText & WithHidden;
|
|
17
15
|
export type FormFieldArray = BaseFormFieldArray & WithFormFieldsWhiteList & WithHelpText & WithHidden;
|
|
18
|
-
export type HeadingField = BaseHeadingField & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden;
|
|
19
|
-
export type ImageField = BaseImageField & WithIsMockup & WithFullWidth & WithHelpText & WithHideable & WithHidden;
|
|
20
|
-
export type LinkField = BaseLinkField & WithWhiteList & WithHelpText & WithHideable & WithHidden;
|
|
21
|
-
export type MultiCheckSelect = BaseMultiCheckSelect & WithRelations_AutoTypes & WithHelpText & WithHideable & WithHidden;
|
|
22
|
-
export type MultiCheckSelectGroup = BaseMultiCheckSelectGroup & WithRelations_AutoTypes & WithHelpText & WithHideable & WithHidden;
|
|
16
|
+
export type HeadingField = BaseHeadingField & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
17
|
+
export type ImageField = BaseImageField & WithIsMockup & WithFullWidth & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
18
|
+
export type LinkField = BaseLinkField & WithWhiteList & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
19
|
+
export type MultiCheckSelect = BaseMultiCheckSelect & WithRelations_AutoTypes & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
20
|
+
export type MultiCheckSelectGroup = BaseMultiCheckSelectGroup & WithRelations_AutoTypes & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
23
21
|
export type NoteField = BaseNoteField & WithHelpText & WithHideable & WithHidden;
|
|
24
|
-
export type NumberField = BaseNumberField & WithValidators & WithHelpText & WithHideable & WithHidden;
|
|
25
|
-
export type RadioGroup = BaseRadioGroup & WithHelpText & WithHideable & WithHidden;
|
|
26
|
-
export type ReferenceField = BaseReferenceField & WithHelpText & WithHideable & WithDataSources & WithHidden;
|
|
27
|
-
export type RichText = BaseRichText & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden;
|
|
28
|
-
export type Select = BaseSelect & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
|
|
29
|
-
export type SliderField = BaseSliderField & WithValidators & WithHelpText & WithHideable & WithHidden;
|
|
30
|
-
export type TagsField = BaseTagsField & WithHideable & WithHidden;
|
|
31
|
-
export type TextArea = BaseTextArea & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden;
|
|
32
|
-
export type TextField = BaseTextField & WithComputed<Fields.Text> & WithIsMockup & WithValidators & WithReadonly & WithSlugTo & WithPrefix & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden;
|
|
33
|
-
export type ToggleField = BaseToggleField & WithBackground & WithAuxText & WithHelpText & WithHideable & WithHidden;
|
|
34
|
-
export type TimeField = BaseTimeField & WithIsMockup & WithReadonly & WithHelpText & WithHideable & WithHidden;
|
|
35
|
-
export type UniqueCheck = BaseUniqueCheck & WithHelpText & WithHideable & WithHidden;
|
|
36
|
-
export type UrlField = BaseUrlField & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
|
|
37
|
-
export type VisualUniqueSelection = BaseVisualUniqueSelection & WithHelpText & WithHideable & WithHidden;
|
|
38
|
-
export type Wysiwyg = BaseWysiwyg & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden;
|
|
39
|
-
export type UIFormTemplateFields = ArrayFieldGroup | AsyncCheckGroup | AsyncSelect | CheckGroup | ColorPicker |
|
|
22
|
+
export type NumberField = BaseNumberField & WithValidators & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
23
|
+
export type RadioGroup = BaseRadioGroup & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
24
|
+
export type ReferenceField = BaseReferenceField & WithHelpText & WithHideable & WithDataSources & WithHidden & WithOverwrite;
|
|
25
|
+
export type RichText = BaseRichText & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
26
|
+
export type Select = BaseSelect & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden & WithOverwrite;
|
|
27
|
+
export type SliderField = BaseSliderField & WithValidators & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
28
|
+
export type TagsField = BaseTagsField & WithHideable & WithHidden & WithOverwrite;
|
|
29
|
+
export type TextArea = BaseTextArea & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
30
|
+
export type TextField = BaseTextField & WithComputed<Fields.Text> & WithIsMockup & WithValidators & WithReadonly & WithSlugTo & WithPrefix & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
31
|
+
export type ToggleField = BaseToggleField & WithBackground & WithAuxText & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
32
|
+
export type TimeField = BaseTimeField & WithIsMockup & WithReadonly & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
33
|
+
export type UniqueCheck = BaseUniqueCheck & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
34
|
+
export type UrlField = BaseUrlField & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden & WithOverwrite;
|
|
35
|
+
export type VisualUniqueSelection = BaseVisualUniqueSelection & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
36
|
+
export type Wysiwyg = BaseWysiwyg & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden & WithOverwrite;
|
|
37
|
+
export type UIFormTemplateFields = ArrayFieldGroup | AsyncCheckGroup | AsyncSelect | CheckGroup | ColorPicker | ConditionalField | DateField | FieldGroup | FieldsDivider | FileField | FormCategorySelect | FormFieldArray | HeadingField | ImageField | LinkField | MultiCheckSelect | MultiCheckSelectGroup | NoteField | NumberField | RadioGroup | ReferenceField | RichText | Select | SliderField | TagsField | TextArea | TextField | TimeField | ToggleField | UniqueCheck | UrlField | VisualUniqueSelection | Wysiwyg;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseAIReferenceField, BaseArrayFieldGroup, BaseAsyncCheckGroup, BaseAsyncSelect, BaseCheckGroup, BaseColorPicker, BaseComponentArray, BaseComponentContainer, BaseConditionalField, BaseDateField, BaseFieldGroup, BaseFieldsDivider, BaseFileField, BaseHeadingField, BaseImageField, BaseLinkField, BaseMultiCheckSelect, BaseMultiCheckSelectGroup, BaseNoteField, BaseNumberField, BaseRadioGroup, BaseReferenceField, BaseRichText, BaseSelect, BaseSliderField, BaseTagsField, BaseTextArea, BaseTextField, BaseTimeField, BaseToggleField, BaseUniqueCheck, BaseUrlField, BaseVisualUniqueSelection, BaseWysiwyg } from "./base";
|
|
1
|
+
import type { BaseAIReferenceField, BaseArrayFieldGroup, BaseAsyncCheckGroup, BaseAsyncSelect, BaseCheckGroup, BaseColorPicker, BaseComponentArray, BaseComponentContainer, BaseConditionalField, BaseDateField, BaseFieldGroup, BaseFieldsDivider, BaseFileField, BaseFormContainer, BaseHeadingField, BaseImageField, BaseLinkField, BaseMultiCheckSelect, BaseMultiCheckSelectGroup, BaseNoteField, BaseNumberField, BaseRadioGroup, BaseReferenceField, BaseRichText, BaseSelect, BaseSliderField, BaseTagsField, BaseTextArea, BaseTextField, BaseTimeField, BaseToggleField, BaseUniqueCheck, BaseUrlField, BaseVisualUniqueSelection, BaseWysiwyg } from "./base";
|
|
2
2
|
import type { WithAuxText, WithBackground, WithComputed, WithDataSources, WithFullWidth, WithHelpText, WithHidden, WithHideable, WithHumanReadable, WithIsMockup, WithPlaceHolder, WithPrefix, WithReadonly, WithRelations_AutoTypes, WithSlugTo, WithValidators, WithWhiteList } from "./props";
|
|
3
3
|
import type { Fields } from "../..";
|
|
4
4
|
export type AIReferenceField = BaseAIReferenceField & WithHelpText & WithHidden;
|
|
@@ -14,6 +14,7 @@ export type DateField = BaseDateField & WithValidators & WithHelpText & WithHide
|
|
|
14
14
|
export type FieldGroup = BaseFieldGroup<UITemplateFields> & WithHelpText & WithHideable & WithHidden;
|
|
15
15
|
export type FieldsDivider = BaseFieldsDivider & WithHelpText & WithHideable & WithHidden;
|
|
16
16
|
export type FileField = BaseFileField & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
|
|
17
|
+
export type FormContainer = BaseFormContainer & WithHelpText & WithHidden;
|
|
17
18
|
export type HeadingField = BaseHeadingField & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden;
|
|
18
19
|
export type ImageField = BaseImageField & WithIsMockup & WithFullWidth & WithHelpText & WithHideable & WithHidden;
|
|
19
20
|
export type LinkField = BaseLinkField & WithWhiteList & WithHelpText & WithHideable & WithHidden;
|
|
@@ -35,4 +36,4 @@ export type UniqueCheck = BaseUniqueCheck & WithHelpText & WithHideable & WithHi
|
|
|
35
36
|
export type UrlField = BaseUrlField & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
|
|
36
37
|
export type VisualUniqueSelection = BaseVisualUniqueSelection & WithHelpText & WithHideable & WithHidden;
|
|
37
38
|
export type Wysiwyg = BaseWysiwyg & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden;
|
|
38
|
-
export type UITemplateFields = AIReferenceField | ArrayFieldGroup | AsyncCheckGroup | AsyncSelect | CheckGroup | ColorPicker | ComponentArray | ComponentContainer | ConditionalField | DateField | FieldGroup | FieldsDivider | FileField | HeadingField | ImageField | LinkField | MultiCheckSelect | MultiCheckSelectGroup | NoteField | NumberField | RadioGroup | ReferenceField | RichText | Select | SliderField | TagsField | TextArea | TextField | TimeField | ToggleField | UniqueCheck | UrlField | VisualUniqueSelection | Wysiwyg;
|
|
39
|
+
export type UITemplateFields = AIReferenceField | ArrayFieldGroup | AsyncCheckGroup | AsyncSelect | CheckGroup | ColorPicker | ComponentArray | ComponentContainer | ConditionalField | DateField | FieldGroup | FieldsDivider | FileField | FormContainer | HeadingField | ImageField | LinkField | MultiCheckSelect | MultiCheckSelectGroup | NoteField | NumberField | RadioGroup | ReferenceField | RichText | Select | SliderField | TagsField | TextArea | TextField | TimeField | ToggleField | UniqueCheck | UrlField | VisualUniqueSelection | Wysiwyg;
|
|
@@ -7,3 +7,10 @@ export interface FormCategoryEntry {
|
|
|
7
7
|
featured?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export type FormCategories = Array<FormCategoryEntry>;
|
|
10
|
+
export interface FormTemplateCategoryEntry {
|
|
11
|
+
/** Visible text for the category. */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Internal value for the category. */
|
|
14
|
+
value: string;
|
|
15
|
+
}
|
|
16
|
+
export type FormTemplateCategories = Array<FormTemplateCategoryEntry>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Fields } from "../..";
|
|
2
|
-
import type { Source } from "../api-response-fields";
|
|
2
|
+
import type { FormFieldArray, Source } from "../api-response-fields";
|
|
3
3
|
import type { BaseUI } from "./base";
|
|
4
|
+
import type { FormTemplateCategoryEntry } from "./FormCategories";
|
|
4
5
|
import type { ConfigTabs, Dimension, Thumbnails } from "./props";
|
|
5
6
|
import type { UIFormTemplateFields } from "../schema-fields/ui-form-template-fields";
|
|
6
7
|
import type { UITemplateFields } from "../schema-fields/ui-template-fields";
|
|
@@ -163,17 +164,24 @@ interface PaginatedDataTemplate<TemplateProps = any> extends TemplateBase {
|
|
|
163
164
|
[key: string]: any;
|
|
164
165
|
} & Omit<TemplateProps, "component"> & (RequestForData | RequestForDataLegacy);
|
|
165
166
|
}
|
|
166
|
-
|
|
167
|
+
type AddFixedToFormFields<T> = {
|
|
168
|
+
[K in keyof T]: T[K] extends FormFieldArray<infer U> | undefined ? FormFieldArray<U & {
|
|
169
|
+
fixed?: boolean;
|
|
170
|
+
}> | undefined : T[K];
|
|
171
|
+
};
|
|
172
|
+
interface FormTemplate<FormProps = unknown> extends Omit<BaseUI, "singleInstance" | "category" | "sectionList" | "dataPacks"> {
|
|
167
173
|
/** Template Schema. */
|
|
168
174
|
schemaType: "formTemplate";
|
|
169
175
|
/** Array of fields for the content tab. */
|
|
170
176
|
content: Array<UIFormTemplateFields>;
|
|
171
177
|
/** Array of fields for the config tab. */
|
|
172
178
|
config?: Array<UIFormTemplateFields>;
|
|
179
|
+
/** Form Template Category value */
|
|
180
|
+
category?: FormTemplateCategoryEntry["value"];
|
|
173
181
|
default: {
|
|
174
182
|
type: "formTemplate";
|
|
175
183
|
[key: string]: any;
|
|
176
|
-
} & Omit<FormProps, "component"
|
|
184
|
+
} & AddFixedToFormFields<Omit<FormProps, "component">>;
|
|
177
185
|
}
|
|
178
186
|
interface FormComponent<T = unknown> extends ComponentAndModuleBase {
|
|
179
187
|
schemaType: "formComponent";
|
|
@@ -3,7 +3,7 @@ import type { CategoryContentType, PageContentType, SimpleContentType } from "./
|
|
|
3
3
|
import type { DamDefaults } from "./DamDefaults";
|
|
4
4
|
import type { DataPack } from "./DataPack";
|
|
5
5
|
import type { DataPackCategory } from "./DataPackCategory";
|
|
6
|
-
import type { FormCategories, FormCategoryEntry } from "./FormCategories";
|
|
6
|
+
import type { FormCategories, FormCategoryEntry, FormTemplateCategories, FormTemplateCategoryEntry } from "./FormCategories";
|
|
7
7
|
import type { Footer, Header } from "./HeaderFooter";
|
|
8
8
|
import type { Languages } from "./Languages";
|
|
9
9
|
import type { Menu, MenuItem } from "./Menu";
|
|
@@ -12,4 +12,4 @@ import type { RichTextConfig } from "./RichTextConfig";
|
|
|
12
12
|
import type { ThemeEntry, Themes } from "./Themes";
|
|
13
13
|
import type { Translations } from "./Translations";
|
|
14
14
|
import type { Component, ContentTypeModule, FormTemplate, ListTemplate, Module, MultiPageComponent, MultiPageModule, PaginatedDataTemplate, Template, FormField, FormComponent } from "./UI";
|
|
15
|
-
export type { AutoTypesConfig, CategoryContentType, Component, ContentTypeModule, DamDefaults, DataPack, DataPackCategory, Footer, FormTemplate, FormField, FormComponent, FormCategories, FormCategoryEntry, Header, Languages, ListTemplate, Menu, MenuItem, Module, ModuleCategories, MultiPageComponent, MultiPageModule, PageContentType, PaginatedDataTemplate, RichTextConfig, SimpleContentType, Template, Themes, Translations, ThemeEntry, };
|
|
15
|
+
export type { AutoTypesConfig, CategoryContentType, Component, ContentTypeModule, DamDefaults, DataPack, DataPackCategory, Footer, FormTemplate, FormField, FormComponent, FormCategories, FormCategoryEntry, FormTemplateCategories, FormTemplateCategoryEntry, Header, Languages, ListTemplate, Menu, MenuItem, Module, ModuleCategories, MultiPageComponent, MultiPageModule, PageContentType, PaginatedDataTemplate, RichTextConfig, SimpleContentType, Template, Themes, Translations, ThemeEntry, };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@griddo/core",
|
|
3
3
|
"description": "Reload version of Griddo Core",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
|
-
"version": "11.2.
|
|
5
|
+
"version": "11.2.13-rc.0",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"publishConfig": {
|
|
129
129
|
"access": "public"
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "3e7da95cadb3fe090bb1ecff5d88db30ab5ac195"
|
|
132
132
|
}
|