@griddo/core 1.75.243 → 1.75.245
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/schema-fields/base.d.ts +16 -4
- package/package.json +2 -2
|
@@ -21,8 +21,6 @@ interface GenericField {
|
|
|
21
21
|
_autoType?: TypeGeneratorBase;
|
|
22
22
|
}
|
|
23
23
|
interface GenericComponentField extends GenericField {
|
|
24
|
-
/** Forces all elements of the Array to be of the same type. If this option is enabled the schema should include a `VisualUniqueSelection` to choose the type. */
|
|
25
|
-
elementUniqueSelection?: boolean;
|
|
26
24
|
/** Maximum number of components that can be added. */
|
|
27
25
|
maxItems?: number | null;
|
|
28
26
|
/** Auto type generator */
|
|
@@ -100,6 +98,8 @@ export type BaseColorPicker = DynamicColorPicker | FixedColorPicker;
|
|
|
100
98
|
export interface BaseComponentArray extends GenericComponentField {
|
|
101
99
|
/** Campo para añadir múltiples componentes a un módulo. */
|
|
102
100
|
type: "ComponentArray";
|
|
101
|
+
/** Forces all elements of the Array to be of the same type. Default: false. If this option is enabled the schema should include a VisualUniqueSelection to choose the type. */
|
|
102
|
+
elementUniqueSelection?: boolean;
|
|
103
103
|
/** Indica si el field contiene modulos o componentes */
|
|
104
104
|
contentType: "modules" | "components";
|
|
105
105
|
}
|
|
@@ -290,14 +290,26 @@ export interface BaseUrlField extends GenericField {
|
|
|
290
290
|
/** Enables to display checks. Default: `false`. */
|
|
291
291
|
advanced?: boolean;
|
|
292
292
|
}
|
|
293
|
-
|
|
293
|
+
interface SimpleVisualUniqueSelection {
|
|
294
|
+
/** key of the ComponentArray for the `elementUniqueSelection` property */
|
|
295
|
+
reference?: never;
|
|
296
|
+
/** Forces all elements of the Array in the `reference` prop (required) to be of the same type. This option must also be set on the `ComponentArray` with the `reference` key */
|
|
297
|
+
elementUniqueSelection?: false;
|
|
298
|
+
}
|
|
299
|
+
interface WithUniqueElementVisualUniqueSelection {
|
|
300
|
+
/** key of the ComponentArray for the `elementUniqueSelection` property */
|
|
301
|
+
reference: string;
|
|
302
|
+
/** Forces all elements of the Array in the `reference` prop (required) to be of the same type. This option must also be set on the `ComponentArray` with the `reference` key */
|
|
303
|
+
elementUniqueSelection: true;
|
|
304
|
+
}
|
|
305
|
+
export type BaseVisualUniqueSelection = GenericField & {
|
|
294
306
|
/** Works as a `RadioGroup` but the options are images. */
|
|
295
307
|
type: "VisualUniqueSelection";
|
|
296
308
|
/** Width to distribute the options. */
|
|
297
309
|
columns?: number;
|
|
298
310
|
/** Array of radii to be displayed. */
|
|
299
311
|
options: Array<ThumbnailOption | ThemeVisualUniqueSelection>;
|
|
300
|
-
}
|
|
312
|
+
} & (SimpleVisualUniqueSelection | WithUniqueElementVisualUniqueSelection);
|
|
301
313
|
export interface BaseWysiwyg extends GenericField {
|
|
302
314
|
/** `TextArea` with Froala editor. */
|
|
303
315
|
type: "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.245",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"resolutions": {
|
|
79
79
|
"colors": "1.4.0"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "c825c8ae20cf1750e161f89c1064b759df50fe3e"
|
|
82
82
|
}
|