@griddo/core 11.6.7-rc.25 → 11.6.7-rc.29
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,6 @@
|
|
|
1
1
|
import type { HTMLHeadingTag } from "../global";
|
|
2
2
|
import type { DistributiveOmit } from "../utilities";
|
|
3
|
-
import type { Option, ThemeColors, ThemeFixedColors, ThemeVisualUniqueSelection, ThumbnailOption, WithDisabled, WithEntity, WithGroup, WithSource, WithTemplatesWhiteList } from "./props";
|
|
3
|
+
import type { Option, ThemeColors, ThemeFixedColors, ThemeVisualUniqueSelection, ThumbnailOption, WithAllOption, WithDisabled, WithEntity, WithGroup, WithSource, WithTemplatesWhiteList } from "./props";
|
|
4
4
|
/** Type generator options */
|
|
5
5
|
type TypeGeneratorBase = {
|
|
6
6
|
/** Comment for the Types generator */
|
|
@@ -56,7 +56,7 @@ export interface BaseArrayFieldGroup<FieldsType> extends GenericArrayFieldGroup
|
|
|
56
56
|
isTitle?: boolean;
|
|
57
57
|
}>;
|
|
58
58
|
}
|
|
59
|
-
export interface BaseAsyncCheckGroup extends GenericField, WithDisabled, WithSource {
|
|
59
|
+
export interface BaseAsyncCheckGroup extends GenericField, WithDisabled, WithSource, WithAllOption {
|
|
60
60
|
/** List of checkboxes that load the options of a database entity. */
|
|
61
61
|
type: "AsyncCheckGroup";
|
|
62
62
|
}
|
|
@@ -202,7 +202,7 @@ export interface BaseLinkField extends GenericField {
|
|
|
202
202
|
/** Campo que combina `TextField` + `ConditionalField` (`UrlField` o `ComponentContainer`). */
|
|
203
203
|
type: "LinkField";
|
|
204
204
|
}
|
|
205
|
-
export interface BaseMultiCheckSelect extends GenericField, WithSource {
|
|
205
|
+
export interface BaseMultiCheckSelect extends GenericField, WithSource, WithAllOption {
|
|
206
206
|
/** Campo que permite renderizar un AsyncCheckGroup dentro de una lista desplegable. */
|
|
207
207
|
type: "MultiCheckSelect";
|
|
208
208
|
/** Title for the field */
|
|
@@ -168,7 +168,7 @@ type WithComputed<ReturnType> = {
|
|
|
168
168
|
};
|
|
169
169
|
type WithSimpleContentTypeComputed<ContentType, ReturnType> = {
|
|
170
170
|
/** Computed prop callback for Simple Content Type */
|
|
171
|
-
computed?: (page: SimpleContentType<Omit<ContentType, "__contentTypeName" | "__contentTypeKind" | "__relatedContentTypeNames">>["content"], options?: ComputedOptions) => ReturnType;
|
|
171
|
+
computed?: (page: SimpleContentType<Omit<ContentType, "__contentTypeName" | "__contentTypeKind" | "__relatedContentTypeNames">>["content"], options?: ComputedOptions) => Promise<ReturnType> | ReturnType;
|
|
172
172
|
};
|
|
173
173
|
type WithHidden = {
|
|
174
174
|
/** Hides the field in the Griddo editor, useful when use computed fields */
|
|
@@ -182,4 +182,8 @@ type WithSiteLanguage = {
|
|
|
182
182
|
/** Allows loading content types of a specific language */
|
|
183
183
|
contentLanguages?: "all" | "current" | Array<__AT__.SiteLanguage["locale"]>;
|
|
184
184
|
};
|
|
185
|
-
|
|
185
|
+
type WithAllOption = {
|
|
186
|
+
/** Renders a "Select All" checkField at the beginning of AsyncCheckGroup fields */
|
|
187
|
+
allOption?: boolean;
|
|
188
|
+
};
|
|
189
|
+
export type { Option, SearchFrom, ThemeColors, ThemeFixedColors, ThemeVisualUniqueSelection, ThumbnailOption, WithAllOption, WithAuxText, WithBackground, WithComputed, WithDataSources, WithDisabled, WithEntity, WithFrom, WithFullWidth, WithGroup, WithHelpText, WithHidden, WithHideable, WithHumanReadable, WithIndexable, WithIsMockup, WithOverwrite, WithPlaceHolder, WithPrefix, WithReadonly, WithRelations_AutoTypes, WithSearchable, WithShowList, WithSimpleContentTypeComputed, WithSiteLanguage, WithSlugTo, WithSource, WithSources, WithValidators, WithWhiteList, };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
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
|
-
import type { WithAuxText, WithBackground, WithDataSources, WithFullWidth, WithHelpText, WithHidden, WithHideable, WithHumanReadable, WithIsMockup, WithPlaceHolder, WithPrefix, WithReadonly, WithRelations_AutoTypes, WithSiteLanguage, WithSlugTo, WithTemplatesWhiteList, WithValidators, WithWhiteList } from "./props";
|
|
2
|
+
import type { WithAllOption, WithAuxText, WithBackground, WithDataSources, WithFullWidth, WithHelpText, WithHidden, WithHideable, WithHumanReadable, WithIsMockup, WithPlaceHolder, WithPrefix, WithReadonly, WithRelations_AutoTypes, WithSiteLanguage, WithSlugTo, WithTemplatesWhiteList, WithValidators, WithWhiteList } from "./props";
|
|
3
|
+
import type { FormFieldArray } from "./ui-form-template-fields";
|
|
3
4
|
export type AIReferenceField = BaseAIReferenceField & WithTemplatesWhiteList;
|
|
4
5
|
export type ArrayFieldGroup = BaseArrayFieldGroup<UIFields> & WithHelpText & WithHideable & WithHidden;
|
|
5
|
-
export type AsyncCheckGroup = BaseAsyncCheckGroup & WithHelpText & WithHideable & WithHidden & WithSiteLanguage;
|
|
6
|
+
export type AsyncCheckGroup = BaseAsyncCheckGroup & WithHelpText & WithHideable & WithHidden & WithSiteLanguage & WithAllOption;
|
|
6
7
|
export type AsyncSelect = BaseAsyncSelect & WithHelpText & WithHideable & WithPlaceHolder & WithHidden & WithSiteLanguage;
|
|
7
8
|
export type CheckGroup = BaseCheckGroup & WithHelpText & WithHideable & WithHidden;
|
|
8
9
|
export type ColorPicker = BaseColorPicker & WithHelpText & WithHideable & WithHidden;
|
|
@@ -17,7 +18,7 @@ export type FormContainer = BaseFormContainer & WithHelpText & WithHideable & Wi
|
|
|
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;
|
|
20
|
-
export type MultiCheckSelect = BaseMultiCheckSelect & WithRelations_AutoTypes & WithHelpText & WithHideable & WithHidden & WithSiteLanguage;
|
|
21
|
+
export type MultiCheckSelect = BaseMultiCheckSelect & WithRelations_AutoTypes & WithHelpText & WithHideable & WithHidden & WithSiteLanguage & WithAllOption;
|
|
21
22
|
export type MultiCheckSelectGroup = BaseMultiCheckSelectGroup & WithRelations_AutoTypes & WithHelpText & WithHideable & WithHidden;
|
|
22
23
|
export type NoteField = BaseNoteField & WithHelpText & WithHideable & WithHidden;
|
|
23
24
|
export type NumberField = BaseNumberField & WithValidators & 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 UIFields = 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;
|
|
39
|
+
export type UIFields = AIReferenceField | ArrayFieldGroup | AsyncCheckGroup | AsyncSelect | CheckGroup | ColorPicker | ComponentArray | ComponentContainer | ConditionalField | DateField | FieldGroup | FieldsDivider | FileField | FormContainer | FormFieldArray | HeadingField | ImageField | LinkField | MultiCheckSelect | MultiCheckSelectGroup | NoteField | NumberField | RadioGroup | ReferenceField | RichText | Select | SliderField | TagsField | TextArea | TextField | TimeField | ToggleField | UniqueCheck | UrlField | VisualUniqueSelection | Wysiwyg;
|
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.6.7-rc.
|
|
5
|
+
"version": "11.6.7-rc.29",
|
|
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": "ed30c0992086a28c77987a43a546ab1048d059de"
|
|
132
132
|
}
|