rb-document-form-constructor 0.3.4 → 0.3.8

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.
@@ -4974,8 +4974,8 @@ let baseConfig = {
4974
4974
  refInputConfigs: __clone(fcRefInputConfigs),
4975
4975
  rules: [],
4976
4976
  icons: {
4977
- iconExpandFacet: 'icon-chevron-up',
4978
- iconCollapseFacet: 'icon-chevron-down',
4977
+ iconExpandFacet: 'icon-chevron-down',
4978
+ iconCollapseFacet: 'icon-chevron-up',
4979
4979
  iconCloseFieldSidebar: 'icon-chevron-right',
4980
4980
  iconOpenFieldSidebar: 'icon-chevron-left',
4981
4981
  iconAdd: 'icon-add',
@@ -10807,6 +10807,13 @@ var script$4 = {
10807
10807
  let innerFacets = this.facets.map(f => ({ ...f,
10808
10808
  expanded: false
10809
10809
  }));
10810
+
10811
+ if (innerFacets) {
10812
+ innerFacets.forEach(facet => {
10813
+ facet.fields = facet.fields.filter(field => !field.hiddenOnFormConfig);
10814
+ });
10815
+ }
10816
+
10810
10817
  this.innerFacets = JSON.parse(JSON.stringify(innerFacets));
10811
10818
  this.allFacets = JSON.parse(JSON.stringify(innerFacets));
10812
10819
  }
@@ -10850,7 +10857,7 @@ var __vue_render__$4 = function () {
10850
10857
  })], 1)], 1)], 1)], 1), _vm._v(" "), _c('div', {
10851
10858
  staticClass: "rb-facet-list"
10852
10859
  }, _vm._l(_vm.innerFacets, function (facet) {
10853
- return facet.fields && facet.fields.length > 0 ? _c('div', {
10860
+ return facet.fields.length > 0 ? _c('div', {
10854
10861
  key: facet.name,
10855
10862
  staticClass: "rb-facet"
10856
10863
  }, [_c('h6', {
@@ -11002,9 +11009,9 @@ var script$3 = {
11002
11009
  type: Object,
11003
11010
  default: () => ({})
11004
11011
  },
11005
- refDataSuffix: {
11012
+ refSuffix: {
11006
11013
  type: String,
11007
- default: 'Data'
11014
+ default: 'Id'
11008
11015
  }
11009
11016
  },
11010
11017
 
@@ -11017,7 +11024,15 @@ var script$3 = {
11017
11024
  methods: {
11018
11025
  onEventFired(eventName, event, field) {
11019
11026
  if (eventName === 'input' && field.ref) {
11020
- this.doc[field.name + this.refDataSuffix] = null;
11027
+ let dataField = null;
11028
+
11029
+ if (field.name.lastIndexOf(this.refSuffix) >= 0) {
11030
+ dataField = field.name.substring(0, field.name.lastIndexOf(this.refSuffix));
11031
+ }
11032
+
11033
+ if (dataField && dataField.length > 0) {
11034
+ this.doc[dataField] = null;
11035
+ }
11021
11036
  }
11022
11037
 
11023
11038
  if (field.rules) {