@griddo/core 11.2.12-rc.1 → 11.2.12

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.
@@ -364,8 +364,7 @@ interface Config {
364
364
  forms?: {
365
365
  templates: Record<string, Schema.FormTemplate>;
366
366
  fields: Record<string, Schema.FormField>;
367
- categories?: Schema.FormCategories;
368
- templateCategories?: Schema.FormTemplateCategories;
367
+ categories: Schema.FormCategories;
369
368
  };
370
369
  };
371
370
  }
@@ -174,8 +174,4 @@ type WithHidden = {
174
174
  /** Hides the field in the Griddo editor, useful when use computed fields */
175
175
  hidden?: boolean;
176
176
  };
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, };
177
+ export type { Option, SearchFrom, ThemeColors, ThemeFixedColors, ThemeVisualUniqueSelection, ThumbnailOption, WithAuxText, WithBackground, WithComputed, WithDataSources, WithDisabled, WithEntity, WithFrom, WithFullWidth, WithGroup, WithHelpText, WithHidden, WithHideable, WithHumanReadable, WithIndexable, WithIsMockup, WithPlaceHolder, WithPrefix, WithReadonly, WithRelations_AutoTypes, WithSearchable, WithShowList, WithSimpleContentTypeComputed, WithSlugTo, WithSource, WithSources, WithValidators, WithWhiteList, };
@@ -1,10 +1,12 @@
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";
1
+ import type { 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";
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;
8
10
  export type ConditionalField = BaseConditionalField<UIFormFields> & WithHelpText & WithHideable & WithHidden;
9
11
  export type DateField = BaseDateField & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
10
12
  export type FieldGroup = BaseFieldGroup<UIFormFields> & WithHelpText & WithHideable & WithHidden;
@@ -31,4 +33,4 @@ export type UniqueCheck = BaseUniqueCheck & WithHelpText & WithHideable & WithHi
31
33
  export type UrlField = BaseUrlField & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
32
34
  export type VisualUniqueSelection = BaseVisualUniqueSelection & WithHelpText & WithHideable & WithHidden;
33
35
  export type Wysiwyg = BaseWysiwyg & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden;
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;
36
+ export type UIFormFields = 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;
@@ -1,37 +1,39 @@
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";
1
+ import type { BaseArrayFieldGroup, BaseAsyncCheckGroup, BaseAsyncSelect, BaseCheckGroup, BaseColorPicker, BaseComponentArray, BaseComponentContainer, 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, 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 & 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;
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;
9
11
  export type ConditionalField = BaseConditionalField<UIFormTemplateFields> & WithHelpText & WithHideable & WithHidden;
10
- export type DateField = BaseDateField & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden & WithOverwrite;
12
+ export type DateField = BaseDateField & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
11
13
  export type FieldGroup = BaseFieldGroup<UIFormTemplateFields> & WithHelpText & WithHideable & WithHidden;
12
14
  export type FieldsDivider = BaseFieldsDivider & WithHelpText & WithHideable & WithHidden;
13
- export type FileField = BaseFileField & WithHelpText & WithHideable & WithPlaceHolder & WithHidden & WithOverwrite;
15
+ export type FileField = BaseFileField & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
14
16
  export type FormCategorySelect = BaseFormCategorySelect & WithHelpText & WithHidden;
15
17
  export type FormFieldArray = BaseFormFieldArray & WithFormFieldsWhiteList & WithHelpText & 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;
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;
21
23
  export type NoteField = BaseNoteField & WithHelpText & WithHideable & WithHidden;
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;
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 | ComponentArray | ComponentContainer | 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, BaseFormContainer, 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, 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,7 +14,6 @@ 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;
18
17
  export type HeadingField = BaseHeadingField & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden;
19
18
  export type ImageField = BaseImageField & WithIsMockup & WithFullWidth & WithHelpText & WithHideable & WithHidden;
20
19
  export type LinkField = BaseLinkField & WithWhiteList & WithHelpText & WithHideable & WithHidden;
@@ -36,4 +35,4 @@ export type UniqueCheck = BaseUniqueCheck & WithHelpText & WithHideable & WithHi
36
35
  export type UrlField = BaseUrlField & WithValidators & WithHelpText & WithHideable & WithPlaceHolder & WithHidden;
37
36
  export type VisualUniqueSelection = BaseVisualUniqueSelection & WithHelpText & WithHideable & WithHidden;
38
37
  export type Wysiwyg = BaseWysiwyg & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable & WithHidden;
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;
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;
@@ -7,10 +7,3 @@ 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,7 +1,6 @@
1
1
  import type { Fields } from "../..";
2
- import type { FormFieldArray, Source } from "../api-response-fields";
2
+ import type { Source } from "../api-response-fields";
3
3
  import type { BaseUI } from "./base";
4
- import type { FormTemplateCategoryEntry } from "./FormCategories";
5
4
  import type { ConfigTabs, Dimension, Thumbnails } from "./props";
6
5
  import type { UIFormTemplateFields } from "../schema-fields/ui-form-template-fields";
7
6
  import type { UITemplateFields } from "../schema-fields/ui-template-fields";
@@ -164,24 +163,17 @@ interface PaginatedDataTemplate<TemplateProps = any> extends TemplateBase {
164
163
  [key: string]: any;
165
164
  } & Omit<TemplateProps, "component"> & (RequestForData | RequestForDataLegacy);
166
165
  }
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"> {
166
+ interface FormTemplate<FormProps = any> extends Omit<BaseUI, "singleInstance" | "category" | "sectionList" | "dataPacks"> {
173
167
  /** Template Schema. */
174
168
  schemaType: "formTemplate";
175
169
  /** Array of fields for the content tab. */
176
170
  content: Array<UIFormTemplateFields>;
177
171
  /** Array of fields for the config tab. */
178
172
  config?: Array<UIFormTemplateFields>;
179
- /** Form Template Category value */
180
- category?: FormTemplateCategoryEntry["value"];
181
173
  default: {
182
174
  type: "formTemplate";
183
175
  [key: string]: any;
184
- } & AddFixedToFormFields<Omit<FormProps, "component">>;
176
+ } & Omit<FormProps, "component">;
185
177
  }
186
178
  interface FormComponent<T = unknown> extends ComponentAndModuleBase {
187
179
  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, FormTemplateCategories, FormTemplateCategoryEntry } from "./FormCategories";
6
+ import type { FormCategories, FormCategoryEntry } 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, FormTemplateCategories, FormTemplateCategoryEntry, 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, 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.12-rc.1",
5
+ "version": "11.2.12",
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": "74ebc755f184cd7dc5895a7efbc2a4bc0a314ab4"
131
+ "gitHead": "91ccea61b7695a0661c947f6f2570ca3c9ee52b3"
132
132
  }