@cortezaproject/corteza-vue 2022.3.4-rc.1 → 2022.3.4

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
@@ -82806,21 +82806,10 @@ var actions = /*#__PURE__*/Object.freeze({
82806
82806
 
82807
82807
  var script$N = {
82808
82808
  props: {
82809
- toast: {
82809
+ link: {
82810
82810
  type: Object,
82811
- required: true,
82812
- default: () => ({})
82813
- }
82814
- },
82815
- methods: {
82816
- fallbackLabel(resource = '') {
82817
- if (resource.toLowerCase().startsWith('compose:record')) {
82818
- return 'Record View';
82819
- }
82820
-
82821
- return 'Link';
82811
+ required: true
82822
82812
  }
82823
-
82824
82813
  }
82825
82814
  };
82826
82815
 
@@ -82828,7 +82817,7 @@ var script$N = {
82828
82817
  const __vue_script__$N = script$N;
82829
82818
 
82830
82819
  /* template */
82831
- var __vue_render__$I = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.toast.link)?_c('a',_vm._b({domProps:{"innerHTML":_vm._s(_vm.toast.linkLabel)}},'a',_vm.toast.linkOpts,false)):(_vm.toast.routerLink)?_c('router-link',_vm._b({attrs:{"to":_vm.toast.routerLink}},'router-link',_vm.toast.linkOpts,false),[_c('span',{domProps:{"innerHTML":_vm._s(_vm.toast.linkLabel)}})]):_vm._e()],1)};
82820
+ var __vue_render__$I = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('router-link',{attrs:{"to":_vm.link}},[_vm._v("\n "+_vm._s(_vm.link.label)+"\n ")])],1)};
82832
82821
  var __vue_staticRenderFns__$I = [];
82833
82822
 
82834
82823
  /* style */
@@ -82903,7 +82892,7 @@ var script$O = {
82903
82892
  const __vue_script__$O = script$O;
82904
82893
 
82905
82894
  /* template */
82906
- var __vue_render__$J = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',_vm._l((_vm.toasts),function(t){return _c('b-toast',_vm._b({key:t.id,attrs:{"visible":"","title":t.payload.title,"no-close-button":!t.actions.hide,"toast-class":"overflow-unset"},on:{"hide":function($event){t.actions.hide ? t.actions.hide.cb(t) : _vm.evtSink;}}},'b-toast',t.options || {},false),[_c('b-card',{staticClass:"border-0",attrs:{"header-bg-variant":"transparent","bg-variant":"transparent","body-class":"p-0"}},[_c('b-card-text',[_vm._v("\n "+_vm._s(t.payload.notes)+"\n ")]),_vm._v(" "),(t.payload.link)?_c('b-card-text',[_c('c-toaster-link',{attrs:{"toast":t}})],1):_vm._e(),_vm._v(" "),_vm._l((_vm.extraActions(t)),function(ref){
82895
+ var __vue_render__$J = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',_vm._l((_vm.toasts),function(t){return _c('b-toast',_vm._b({key:t.id,attrs:{"visible":"","title":t.payload.title,"no-close-button":!t.actions.hide,"toast-class":"overflow-unset"},on:{"hide":function($event){t.actions.hide ? t.actions.hide.cb(t) : _vm.evtSink;}}},'b-toast',t.options || {},false),[_c('b-card',{staticClass:"border-0",attrs:{"header-bg-variant":"transparent","bg-variant":"transparent","body-class":"p-0"}},[_c('b-card-text',[_vm._v("\n "+_vm._s(t.payload.notes)+"\n ")]),_vm._v(" "),(t.payload.link)?_c('b-card-text',[_c('c-toaster-link',{attrs:{"link":t.payload.link}})],1):_vm._e(),_vm._v(" "),_vm._l((_vm.extraActions(t)),function(ref){
82907
82896
  var name = ref[0];
82908
82897
  var act = ref[1];
82909
82898
  return _c(_vm.actComponent(act),_vm._b({key:name,tag:"component",staticClass:"mr-1",on:{"action":function($event){act.cb ? act.cb(t, $event) : _vm.evtSink;}}},'component',act,false))})],2)],1)}),1)};
@@ -82912,7 +82901,7 @@ var __vue_staticRenderFns__$J = [];
82912
82901
  /* style */
82913
82902
  const __vue_inject_styles__$P = function (inject) {
82914
82903
  if (!inject) return
82915
- inject("data-v-09d66b04_0", { source: ".toast.overflow-unset{overflow:unset!important}", map: undefined, media: undefined });
82904
+ inject("data-v-6fbe9c62_0", { source: ".toast.overflow-unset{overflow:unset!important}", map: undefined, media: undefined });
82916
82905
 
82917
82906
  };
82918
82907
  /* scoped */
@@ -83826,11 +83815,12 @@ var script$V = {
83826
83815
  const hSeanFrames = {};
83827
83816
  const outHeader = [...selectedCols].map(index => {
83828
83817
  const column = frame.columns[index];
83818
+ const columnName = column ? column.name : '';
83829
83819
  return {
83830
83820
  column,
83831
83821
  meta: {
83832
83822
  ref: frame.ref,
83833
- sortKey: isLocal ? column.name : `${frame.ref}.${column.name}`
83823
+ sortKey: isLocal ? columnName : `${frame.ref}.${columnName}`
83834
83824
  }
83835
83825
  };
83836
83826
  });
@@ -83891,7 +83881,10 @@ var script$V = {
83891
83881
  };
83892
83882
  }
83893
83883
 
83894
- row[0].separator = true;
83884
+ if (row.length) {
83885
+ row[0].separator = true;
83886
+ }
83887
+
83895
83888
  const merged = this.mergeRows(auxRows).pop();
83896
83889
  row.push(...merged[0]);
83897
83890
  outRows.push(row);
@@ -84060,7 +84053,7 @@ var script$V = {
84060
84053
  const __vue_script__$V = script$V;
84061
84054
 
84062
84055
  /* template */
84063
- var __vue_render__$P = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',{staticClass:"h-100 rounded-0",attrs:{"no-body":""}},[_c('b-table-simple',{staticClass:"flex-grow-1 mh-100 mb-0",attrs:{"table-variant":_vm.options.tableVariant,"dark":_vm.options.dark,"bordered":_vm.options.bordered,"borderless":_vm.options.borderless,"outlined":_vm.options.outlined,"striped":_vm.options.striped,"responsive":_vm.options.responsive,"fixed":_vm.options.fixed,"hover":_vm.options.hover,"small":_vm.options.small,"no-border-collapse":_vm.options.noCollapse,"sticky-header":""}},[_vm._l((_vm.tabelify.colgroups),function(cg,i){return _c('colgroup',{key:i,class:{ local: cg.isLocal, foreign: !cg.isLocal },attrs:{"span":cg.size}})}),_vm._v(" "),_c('b-thead',{attrs:{"head-variant":_vm.options.headVariant}},[(_vm.dataframes.length > 1)?_c('b-tr',_vm._l((_vm.tabelify.header),function(c,i){return _c('b-th',_vm._b({key:i,staticClass:"border-0"},'b-th',c.column.attrs || {},false),[(c.sourceName)?_c('p',{staticClass:"m-0"},[_vm._v("\n "+_vm._s(c.sourceName)+"\n ")]):_vm._e()])}),1):_vm._e(),_vm._v(" "),_c('b-tr',_vm._l((_vm.tabelify.header),function(c,i){return _c('b-th',{key:i,staticClass:"border-0",class:{ 'pointer': !c.meta.sortKey.includes('.') },on:{"click":function($event){return _vm.handleSort(c.meta.sortKey)}}},[_c('div',{staticClass:"d-flex align-items-center"},[_c('div',{staticClass:"d-flex text-nowrap"},[_vm._v("\n "+_vm._s(c.column.label)+"\n ")]),_vm._v(" "),(!c.meta.sortKey.includes('.'))?_c('font-awesome-layers',{staticClass:"ml-2"},[_c('font-awesome-icon',{staticClass:"mb-1",style:({
84056
+ var __vue_render__$P = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',{staticClass:"h-100 rounded-0",attrs:{"no-body":""}},[_c('b-table-simple',{staticClass:"flex-grow-1 mh-100 mb-0",attrs:{"table-variant":_vm.options.tableVariant,"dark":_vm.options.dark,"bordered":_vm.options.bordered,"borderless":_vm.options.borderless,"outlined":_vm.options.outlined,"striped":_vm.options.striped,"responsive":_vm.options.responsive,"fixed":_vm.options.fixed,"hover":_vm.options.hover,"small":_vm.options.small,"no-border-collapse":_vm.options.noCollapse,"sticky-header":""}},[_vm._l((_vm.tabelify.colgroups),function(cg,i){return _c('colgroup',{key:i,class:{ local: cg.isLocal, foreign: !cg.isLocal },attrs:{"span":cg.size}})}),_vm._v(" "),_c('b-thead',{attrs:{"head-variant":_vm.options.headVariant}},[(_vm.dataframes.length > 1)?_c('b-tr',_vm._l((_vm.tabelify.header),function(c,i){return _c('b-th',_vm._b({key:i,staticClass:"border-0"},'b-th',c.column ? c.column.attrs : {},false),[(c.sourceName)?_c('p',{staticClass:"m-0"},[_vm._v("\n "+_vm._s(c.sourceName)+"\n ")]):_vm._e()])}),1):_vm._e(),_vm._v(" "),_c('b-tr',_vm._l((_vm.tabelify.header),function(c,i){return _c('b-th',{key:i,staticClass:"border-0",class:{ 'pointer': !c.meta.sortKey.includes('.') },on:{"click":function($event){return _vm.handleSort(c.meta.sortKey)}}},[_c('div',{staticClass:"d-flex align-items-center"},[(c.column ? c.column.label : '')?_c('div',{staticClass:"d-flex text-nowrap"},[_vm._v("\n "+_vm._s(c.column.label)+"\n ")]):_vm._e(),_vm._v(" "),(!c.meta.sortKey.includes('.'))?_c('font-awesome-layers',{staticClass:"ml-2"},[_c('font-awesome-icon',{staticClass:"mb-1",style:({
84064
84057
  color: _vm.sort.field === c.meta.sortKey && !_vm.sort.descending ? 'black' : 'grey',
84065
84058
  }),attrs:{"icon":['fas', 'angle-up']}}),_vm._v(" "),_c('font-awesome-icon',{staticClass:"mt-1",style:({
84066
84059
  color: _vm.sort.field === c.meta.sortKey && _vm.sort.descending ? 'black' : 'grey',
@@ -84072,11 +84065,11 @@ var __vue_staticRenderFns__$P = [];
84072
84065
  /* style */
84073
84066
  const __vue_inject_styles__$W = function (inject) {
84074
84067
  if (!inject) return
84075
- inject("data-v-4c6dba99_0", { source: ".foreign[data-v-4c6dba99]{border:1px solid rgba(22,36,37,.8);border-top:0;border-bottom:0}.separator[data-v-4c6dba99]{border-top:2px solid rgba(22,36,37,.5)}.card-rounded[data-v-4c6dba99]{border-radius:1rem 1rem 0 0}", map: undefined, media: undefined });
84068
+ inject("data-v-1a305c88_0", { source: ".foreign[data-v-1a305c88]{border:1px solid rgba(22,36,37,.8);border-top:0;border-bottom:0}.separator[data-v-1a305c88]{border-top:2px solid rgba(22,36,37,.5)}.card-rounded[data-v-1a305c88]{border-radius:1rem 1rem 0 0}", map: undefined, media: undefined });
84076
84069
 
84077
84070
  };
84078
84071
  /* scoped */
84079
- const __vue_scope_id__$W = "data-v-4c6dba99";
84072
+ const __vue_scope_id__$W = "data-v-1a305c88";
84080
84073
  /* module identifier */
84081
84074
  const __vue_module_identifier__$W = undefined;
84082
84075
  /* functional template */