@firecms/collection_editor 3.2.0 → 3.3.0-canary.451aa49

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.
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsDe: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsEn: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsEs: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsFr: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsHi: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsIt: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsPt: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@firecms/collection_editor",
3
3
  "type": "module",
4
- "version": "3.2.0",
4
+ "version": "3.3.0-canary.451aa49",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "source": "src/index.ts",
9
9
  "dependencies": {
10
- "@firecms/data_export": "3.2.0",
11
- "@firecms/data_import": "3.2.0",
12
- "@firecms/data_import_export": "3.2.0",
13
- "@firecms/formex": "3.2.0",
14
- "@firecms/schema_inference": "3.2.0",
15
- "@firecms/ui": "3.2.0",
10
+ "@firecms/data_export": "^3.3.0-canary.451aa49",
11
+ "@firecms/data_import": "^3.3.0-canary.451aa49",
12
+ "@firecms/data_import_export": "^3.3.0-canary.451aa49",
13
+ "@firecms/formex": "^3.3.0-canary.451aa49",
14
+ "@firecms/schema_inference": "^3.3.0-canary.451aa49",
15
+ "@firecms/ui": "^3.3.0-canary.451aa49",
16
16
  "json5": "^2.2.3",
17
17
  "prism-react-renderer": "^2.4.1"
18
18
  },
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "4c3b8f2c16265fcdd6bf443cf5b420a7a7332d9d"
72
+ "gitHead": "772b4a7f64893038f0cc13669d6bc66ec858fc49"
73
73
  }
package/src/locales/de.ts CHANGED
@@ -74,6 +74,8 @@ export const collectionEditorTranslationsDe = {
74
74
  hide_from_collection_tooltip: "Dieses Feld aus der Sammlungsansicht ausblenden. Es wird weiterhin in der Formularansicht sichtbar sein",
75
75
  read_only: "Nur lesen",
76
76
  read_only_tooltip: "Ist dieses Feld schreibgeschützt. Nur als Vorschau anzeigen",
77
+ nullable: "Nullable",
78
+ nullable_tooltip: "Erlaubt es, dieses Feld explizit auf null zu setzen. Dem Benutzer wird eine Löschen-Schaltfläche angezeigt",
77
79
  tab_general: "Allgemein",
78
80
  tab_display: "Anzeige",
79
81
  tab_properties: "Eigenschaften",
package/src/locales/en.ts CHANGED
@@ -91,6 +91,8 @@ export const collectionEditorTranslationsEn = {
91
91
  hide_from_collection_tooltip: "Hide this field from the collection view. It will still be visible in the form view",
92
92
  read_only: "Read only",
93
93
  read_only_tooltip: "Is this a read only field. Display only as a preview",
94
+ nullable: "Nullable",
95
+ nullable_tooltip: "Allow this field to be explicitly set to null. A clear button will be shown to the user",
94
96
 
95
97
  // Dialog & Tabs
96
98
  tab_general: "General",
package/src/locales/es.ts CHANGED
@@ -74,6 +74,8 @@ export const collectionEditorTranslationsEs = {
74
74
  hide_from_collection_tooltip: "Ocultar este campo de la vista de colección. Seguirá visible en la vista de formulario",
75
75
  read_only: "Solo lectura",
76
76
  read_only_tooltip: "Es un campo de solo lectura. Mostrar solo como vista previa",
77
+ nullable: "Nullable",
78
+ nullable_tooltip: "Permitir que este campo se establezca explícitamente como null. Se mostrará un botón de borrar al usuario",
77
79
  tab_general: "General",
78
80
  tab_display: "Visualización",
79
81
  tab_properties: "Propiedades",
package/src/locales/fr.ts CHANGED
@@ -74,6 +74,8 @@ export const collectionEditorTranslationsFr = {
74
74
  hide_from_collection_tooltip: "Masquer ce champ de la vue collection. Il restera visible dans la vue formulaire",
75
75
  read_only: "Lecture seule",
76
76
  read_only_tooltip: "Ce champ est en lecture seule. Affichage en aperçu uniquement",
77
+ nullable: "Nullable",
78
+ nullable_tooltip: "Permettre de définir explicitement ce champ comme null. Un bouton d'effacement sera affiché à l'utilisateur",
77
79
  tab_general: "Général",
78
80
  tab_display: "Affichage",
79
81
  tab_properties: "Propriétés",
package/src/locales/hi.ts CHANGED
@@ -74,6 +74,8 @@ export const collectionEditorTranslationsHi = {
74
74
  hide_from_collection_tooltip: "इस फ़ील्ड को संग्रह दृश्य से छिपाएँ। यह फ़ॉर्म दृश्य में अभी भी दिखाई देगा",
75
75
  read_only: "केवल पढ़ने के लिए",
76
76
  read_only_tooltip: "क्या यह फ़ील्ड केवल पढ़ने के लिए है। केवल पूर्वावलोकन के रूप में प्रदर्शित करें",
77
+ nullable: "Nullable",
78
+ nullable_tooltip: "इस फ़ील्ड को स्पष्ट रूप से null पर सेट करने की अनुमति दें। उपयोगकर्ता को एक क्लियर बटन दिखाया जाएगा",
77
79
  tab_general: "सामान्य",
78
80
  tab_display: "प्रदर्शन",
79
81
  tab_properties: "प्रॉपर्टीज़",
package/src/locales/it.ts CHANGED
@@ -74,6 +74,8 @@ export const collectionEditorTranslationsIt = {
74
74
  hide_from_collection_tooltip: "Nascondi questo campo dalla vista collezione. Sarà comunque visibile nella vista modulo",
75
75
  read_only: "Sola lettura",
76
76
  read_only_tooltip: "Questo è un campo di sola lettura. Visualizza solo come anteprima",
77
+ nullable: "Nullable",
78
+ nullable_tooltip: "Consenti di impostare esplicitamente questo campo su null. All'utente verrà mostrato un pulsante di cancellazione",
77
79
  tab_general: "Generale",
78
80
  tab_display: "Visualizzazione",
79
81
  tab_properties: "Proprietà",
package/src/locales/pt.ts CHANGED
@@ -74,6 +74,8 @@ export const collectionEditorTranslationsPt = {
74
74
  hide_from_collection_tooltip: "Ocultar este campo da visualização da coleção. Ele ainda estará visível na visualização do formulário",
75
75
  read_only: "Somente leitura",
76
76
  read_only_tooltip: "Este é um campo somente leitura. Exibir apenas como pré-visualização",
77
+ nullable: "Nullable",
78
+ nullable_tooltip: "Permitir que este campo seja explicitamente definido como null. Um botão de limpar será exibido ao usuário",
77
79
  tab_general: "Geral",
78
80
  tab_display: "Exibição",
79
81
  tab_properties: "Propriedades",
@@ -13,6 +13,7 @@ export function AdvancedPropertyValidation({ disabled }: {
13
13
  const columnWidth = "columnWidth";
14
14
  const hideFromCollection = "hideFromCollection";
15
15
  const readOnly = "readOnly";
16
+ const nullable = "nullable";
16
17
 
17
18
  return (
18
19
 
@@ -45,6 +46,21 @@ export function AdvancedPropertyValidation({ disabled }: {
45
46
  }}
46
47
  </Field>
47
48
  </div>
49
+
50
+ <div className={"col-span-12"}>
51
+ <Field name={nullable}
52
+ type="checkbox">
53
+ {({ field, form }: FormexFieldProps) => {
54
+ return <SwitchControl
55
+ label={t("nullable")}
56
+ size={"medium"}
57
+ disabled={disabled}
58
+ tooltip={t("nullable_tooltip")}
59
+ form={form}
60
+ field={field}/>
61
+ }}
62
+ </Field>
63
+ </div>
48
64
  </div>
49
65
  );
50
66
  }