@griddo/core 1.75.234 → 1.75.235
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,7 +1,9 @@
|
|
|
1
1
|
import type { FieldReturnTypes, Fields, SchemaFieldTypes, SchemaType } from "./types";
|
|
2
2
|
import type { UIFields } from "../../types/schema-fields/ui-fields";
|
|
3
3
|
/** Get all fields from one schema */
|
|
4
|
-
declare function getAllFields(schema: SchemaType): [import("../../types/schema-fields/base").BaseTextField & import("../../types/schema-fields/props").
|
|
4
|
+
declare function getAllFields(schema: SchemaType): [import("../../types/schema-fields/base").BaseTextField & import("../../types/schema-fields/props").WithIsMockup & import("../../types/schema-fields/props").WithValidators & import("../../types/schema-fields/props").WithReadonly & import("../../types/schema-fields/props").WithSlugTo & import("../../types/schema-fields/props").WithPrefix & import("../../types/schema-fields/props").WithPlaceHolder & import("../../types/schema-fields/props").WithHideable & import("../../types/schema-fields/props").WithIndexable & import("../../types/schema-fields/props").WithShowList & import("../../types/schema-fields/props").WithHelpText & import("../../types/schema-fields/props").WithSearchable & {
|
|
5
|
+
key: "title";
|
|
6
|
+
}, ...import("../../types/schema-fields/simple-content-type-fields").SimpleContentTypeFields<unknown>[]] | [import("../../types/schema-fields/base").BaseTextField & import("../../types/schema-fields/props").WithFrom & import("../../types/schema-fields/props").WithIndexable & import("../../types/schema-fields/props").WithShowList & import("../../types/schema-fields/props").WithSearchable & {
|
|
5
7
|
key: "title";
|
|
6
8
|
}, ...import("../../types/schema-fields/page-content-type-fields").PageContentTypeFields<unknown>[]] | UIFields<unknown>[];
|
|
7
9
|
/** Build a interface prop based on the field from the schema.
|
|
@@ -22,6 +22,10 @@ export type WithHideable = {
|
|
|
22
22
|
/** If `true` the field can be hidden in the editor. */
|
|
23
23
|
hideable?: boolean;
|
|
24
24
|
};
|
|
25
|
+
export type WithHumanReadable = {
|
|
26
|
+
/** Allows to use this field as natural language. */
|
|
27
|
+
humanReadable?: boolean;
|
|
28
|
+
};
|
|
25
29
|
export type WithIndexable = {
|
|
26
30
|
/** Default is false. If that field is to be used as an index (to be able to sort by that field, etc.) */
|
|
27
31
|
indexable?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseArrayFieldGroup, BaseAsyncCheckGroup, BaseAsyncSelect, BaseCheckGroup, BaseColorPicker, BaseComponentArray, BaseComponentContainer, BaseConditionalField, BaseDateField, BaseFieldGroup, BaseFieldsDivider, BaseFileField, BaseHeadingField, BaseImageField, BaseLinkField, BaseMultiCheckSelect, BaseMultiCheckSelectGroup, BaseNoteField, BaseNumberField, BaseRadioGroup, BaseReferenceField, BaseRichText, BaseSelect, BaseSliderField, BaseTextArea, BaseTextField, BaseToggleField, BaseUniqueCheck, BaseUrlField, BaseVisualUniqueSelection, BaseWysiwyg } from "./base";
|
|
2
|
-
import { WithHelpText, WithHideable, WithIsMockup, WithPlaceHolder, WithPrefix, WithReadonly, WithRelations_AutoTypes, WithSlugTo, WithValidators, WithWhiteList } from "./props";
|
|
2
|
+
import { WithHelpText, WithHideable, WithHumanReadable, WithIsMockup, WithPlaceHolder, WithPrefix, WithReadonly, WithRelations_AutoTypes, WithSlugTo, WithValidators, WithWhiteList } from "./props";
|
|
3
3
|
export type Common = WithHelpText & WithHideable;
|
|
4
4
|
export type ArrayFieldGroup = BaseArrayFieldGroup<UIFields> & Common;
|
|
5
5
|
export type AsyncCheckGroup = BaseAsyncCheckGroup & Common;
|
|
@@ -13,7 +13,7 @@ export type DateField = BaseDateField & WithValidators & Common & WithPlaceHolde
|
|
|
13
13
|
export type FieldGroup = BaseFieldGroup<UIFields> & Common;
|
|
14
14
|
export type FieldsDivider = BaseFieldsDivider & Common;
|
|
15
15
|
export type FileField = BaseFileField & Common & WithPlaceHolder;
|
|
16
|
-
export type HeadingField = BaseHeadingField & WithIsMockup & WithValidators &
|
|
16
|
+
export type HeadingField = BaseHeadingField & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & Common;
|
|
17
17
|
export type ImageField = BaseImageField & WithIsMockup & Common;
|
|
18
18
|
export type LinkField<WhiteListElements = unknown> = BaseLinkField & WithWhiteList<WhiteListElements> & Common;
|
|
19
19
|
export type MultiCheckSelect = BaseMultiCheckSelect & WithRelations_AutoTypes & Common;
|
|
@@ -22,14 +22,14 @@ export type NoteField = BaseNoteField & Common;
|
|
|
22
22
|
export type NumberField = BaseNumberField & WithValidators & Common;
|
|
23
23
|
export type RadioGroup = BaseRadioGroup & Common;
|
|
24
24
|
export type ReferenceField = BaseReferenceField & Common;
|
|
25
|
-
export type RichText = BaseRichText & WithIsMockup & WithValidators &
|
|
25
|
+
export type RichText = BaseRichText & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & Common;
|
|
26
26
|
export type Select = BaseSelect & WithValidators & Common & WithPlaceHolder;
|
|
27
27
|
export type SliderField = BaseSliderField & WithValidators & Common;
|
|
28
|
-
export type TextArea = BaseTextArea & WithIsMockup & WithValidators &
|
|
29
|
-
export type TextField = BaseTextField & WithIsMockup & WithValidators & WithReadonly & WithSlugTo & WithPrefix & WithPlaceHolder & Common;
|
|
28
|
+
export type TextArea = BaseTextArea & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & Common;
|
|
29
|
+
export type TextField = BaseTextField & WithIsMockup & WithValidators & WithReadonly & WithSlugTo & WithPrefix & WithPlaceHolder & WithHumanReadable & Common;
|
|
30
30
|
export type ToggleField = BaseToggleField & Common;
|
|
31
31
|
export type UniqueCheck = BaseUniqueCheck & Common;
|
|
32
32
|
export type UrlField = BaseUrlField & WithValidators & Common & WithPlaceHolder;
|
|
33
33
|
export type VisualUniqueSelection = BaseVisualUniqueSelection & Common;
|
|
34
|
-
export type Wysiwyg = BaseWysiwyg & WithIsMockup & WithValidators &
|
|
34
|
+
export type Wysiwyg = BaseWysiwyg & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & Common;
|
|
35
35
|
export type UIFields<WhiteListElements = unknown> = ArrayFieldGroup | AsyncCheckGroup | AsyncSelect | CheckGroup | ColorPicker | ComponentArray<WhiteListElements> | ComponentContainer<WhiteListElements> | ConditionalField | DateField | FieldGroup | FieldsDivider | FileField | HeadingField | ImageField | LinkField<WhiteListElements> | MultiCheckSelect | MultiCheckSelectGroup | NoteField | NumberField | RadioGroup | ReferenceField | RichText | Select | SliderField | TextArea | TextField | 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": "1.75.
|
|
5
|
+
"version": "1.75.235",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"resolutions": {
|
|
78
78
|
"colors": "1.4.0"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "3ea759bf34b590c02b27b8cf2b66ab29933ceb31"
|
|
81
81
|
}
|