@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.
package/dist/index.es.js CHANGED
@@ -6748,7 +6748,7 @@ function _temp$a(tz_0) {
6748
6748
  return /* @__PURE__ */ jsx(SelectItem, { value: tz_0.value, children: tz_0.label }, tz_0.value);
6749
6749
  }
6750
6750
  function AdvancedPropertyValidation(t0) {
6751
- const $ = c(9);
6751
+ const $ = c(13);
6752
6752
  const {
6753
6753
  disabled
6754
6754
  } = t0;
@@ -6786,18 +6786,35 @@ function AdvancedPropertyValidation(t0) {
6786
6786
  t2 = $[5];
6787
6787
  }
6788
6788
  let t3;
6789
- if ($[6] !== t1 || $[7] !== t2) {
6790
- t3 = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-2", children: [
6791
- t1,
6792
- t2
6793
- ] });
6794
- $[6] = t1;
6795
- $[7] = t2;
6789
+ if ($[6] !== disabled || $[7] !== t) {
6790
+ t3 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(Field, { name: "nullable", type: "checkbox", children: (t42) => {
6791
+ const {
6792
+ field: field_1,
6793
+ form: form_1
6794
+ } = t42;
6795
+ return /* @__PURE__ */ jsx(SwitchControl, { label: t("nullable"), size: "medium", disabled, tooltip: t("nullable_tooltip"), form: form_1, field: field_1 });
6796
+ } }) });
6797
+ $[6] = disabled;
6798
+ $[7] = t;
6796
6799
  $[8] = t3;
6797
6800
  } else {
6798
6801
  t3 = $[8];
6799
6802
  }
6800
- return t3;
6803
+ let t4;
6804
+ if ($[9] !== t1 || $[10] !== t2 || $[11] !== t3) {
6805
+ t4 = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-2", children: [
6806
+ t1,
6807
+ t2,
6808
+ t3
6809
+ ] });
6810
+ $[9] = t1;
6811
+ $[10] = t2;
6812
+ $[11] = t3;
6813
+ $[12] = t4;
6814
+ } else {
6815
+ t4 = $[12];
6816
+ }
6817
+ return t4;
6801
6818
  }
6802
6819
  function ConditionsPanel(t0) {
6803
6820
  const $ = c(3);
@@ -17634,6 +17651,8 @@ const collectionEditorTranslationsEn = {
17634
17651
  hide_from_collection_tooltip: "Hide this field from the collection view. It will still be visible in the form view",
17635
17652
  read_only: "Read only",
17636
17653
  read_only_tooltip: "Is this a read only field. Display only as a preview",
17654
+ nullable: "Nullable",
17655
+ nullable_tooltip: "Allow this field to be explicitly set to null. A clear button will be shown to the user",
17637
17656
  // Dialog & Tabs
17638
17657
  tab_general: "General",
17639
17658
  tab_display: "Display",
@@ -17756,6 +17775,8 @@ const collectionEditorTranslationsEs = {
17756
17775
  hide_from_collection_tooltip: "Ocultar este campo de la vista de colección. Seguirá visible en la vista de formulario",
17757
17776
  read_only: "Solo lectura",
17758
17777
  read_only_tooltip: "Es un campo de solo lectura. Mostrar solo como vista previa",
17778
+ nullable: "Nullable",
17779
+ nullable_tooltip: "Permitir que este campo se establezca explícitamente como null. Se mostrará un botón de borrar al usuario",
17759
17780
  tab_general: "General",
17760
17781
  tab_display: "Visualización",
17761
17782
  tab_properties: "Propiedades",
@@ -17876,6 +17897,8 @@ const collectionEditorTranslationsDe = {
17876
17897
  hide_from_collection_tooltip: "Dieses Feld aus der Sammlungsansicht ausblenden. Es wird weiterhin in der Formularansicht sichtbar sein",
17877
17898
  read_only: "Nur lesen",
17878
17899
  read_only_tooltip: "Ist dieses Feld schreibgeschützt. Nur als Vorschau anzeigen",
17900
+ nullable: "Nullable",
17901
+ nullable_tooltip: "Erlaubt es, dieses Feld explizit auf null zu setzen. Dem Benutzer wird eine Löschen-Schaltfläche angezeigt",
17879
17902
  tab_general: "Allgemein",
17880
17903
  tab_display: "Anzeige",
17881
17904
  tab_properties: "Eigenschaften",
@@ -17996,6 +18019,8 @@ const collectionEditorTranslationsFr = {
17996
18019
  hide_from_collection_tooltip: "Masquer ce champ de la vue collection. Il restera visible dans la vue formulaire",
17997
18020
  read_only: "Lecture seule",
17998
18021
  read_only_tooltip: "Ce champ est en lecture seule. Affichage en aperçu uniquement",
18022
+ nullable: "Nullable",
18023
+ nullable_tooltip: "Permettre de définir explicitement ce champ comme null. Un bouton d'effacement sera affiché à l'utilisateur",
17999
18024
  tab_general: "Général",
18000
18025
  tab_display: "Affichage",
18001
18026
  tab_properties: "Propriétés",
@@ -18116,6 +18141,8 @@ const collectionEditorTranslationsIt = {
18116
18141
  hide_from_collection_tooltip: "Nascondi questo campo dalla vista collezione. Sarà comunque visibile nella vista modulo",
18117
18142
  read_only: "Sola lettura",
18118
18143
  read_only_tooltip: "Questo è un campo di sola lettura. Visualizza solo come anteprima",
18144
+ nullable: "Nullable",
18145
+ nullable_tooltip: "Consenti di impostare esplicitamente questo campo su null. All'utente verrà mostrato un pulsante di cancellazione",
18119
18146
  tab_general: "Generale",
18120
18147
  tab_display: "Visualizzazione",
18121
18148
  tab_properties: "Proprietà",
@@ -18236,6 +18263,8 @@ const collectionEditorTranslationsHi = {
18236
18263
  hide_from_collection_tooltip: "इस फ़ील्ड को संग्रह दृश्य से छिपाएँ। यह फ़ॉर्म दृश्य में अभी भी दिखाई देगा",
18237
18264
  read_only: "केवल पढ़ने के लिए",
18238
18265
  read_only_tooltip: "क्या यह फ़ील्ड केवल पढ़ने के लिए है। केवल पूर्वावलोकन के रूप में प्रदर्शित करें",
18266
+ nullable: "Nullable",
18267
+ nullable_tooltip: "इस फ़ील्ड को स्पष्ट रूप से null पर सेट करने की अनुमति दें। उपयोगकर्ता को एक क्लियर बटन दिखाया जाएगा",
18239
18268
  tab_general: "सामान्य",
18240
18269
  tab_display: "प्रदर्शन",
18241
18270
  tab_properties: "प्रॉपर्टीज़",
@@ -18356,6 +18385,8 @@ const collectionEditorTranslationsPt = {
18356
18385
  hide_from_collection_tooltip: "Ocultar este campo da visualização da coleção. Ele ainda estará visível na visualização do formulário",
18357
18386
  read_only: "Somente leitura",
18358
18387
  read_only_tooltip: "Este é um campo somente leitura. Exibir apenas como pré-visualização",
18388
+ nullable: "Nullable",
18389
+ nullable_tooltip: "Permitir que este campo seja explicitamente definido como null. Um botão de limpar será exibido ao usuário",
18359
18390
  tab_general: "Geral",
18360
18391
  tab_display: "Exibição",
18361
18392
  tab_properties: "Propriedades",