@cortezaproject/corteza-vue 2023.3.0-dev.2 → 2023.3.0-dev.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.js CHANGED
@@ -70492,7 +70492,7 @@ var script$4 = {
70492
70492
  maxPages: {
70493
70493
  required: false,
70494
70494
  type: Number,
70495
- default: 5
70495
+ default: 25
70496
70496
  },
70497
70497
  initialScale: {
70498
70498
  required: false,
@@ -70723,12 +70723,12 @@ var __vue_staticRenderFns__$3 = [];
70723
70723
  /* style */
70724
70724
  const __vue_inject_styles__$4 = function (inject) {
70725
70725
  if (!inject) return
70726
- inject("data-v-0fb1847f_0", { source: ".doc-msg[data-v-0fb1847f]{display:flex;align-items:center;justify-content:center;height:100%;width:100%;background-color:#fff}.doc-err[data-v-0fb1847f]{cursor:pointer}.doc-err .err-message[data-v-0fb1847f]{color:red}", map: undefined, media: undefined })
70727
- ,inject("data-v-0fb1847f_1", { source: ".pdf-preview{text-align:center}.pdf-preview:not(.inline){padding-top:20px;padding-bottom:20px}.pdf-preview:not(.inline) canvas{box-shadow:0 0 3px #1e1E1E41}.pdf-preview.inline{height:200px;overflow-y:scroll;display:inline-block;cursor:zoom-in;width:100%;max-width:500px}.pdf-preview canvas{margin-bottom:10px}.pdf-preview canvas.inline{width:100%}.pdf-preview canvas:not(.inline){margin:0 auto 10px auto;display:block}.pdf-preview canvas:last-of-type{margin-bottom:unset}.pdf-preview .loader{margin-bottom:10px}", map: undefined, media: undefined });
70726
+ inject("data-v-12f1f9ce_0", { source: ".doc-msg[data-v-12f1f9ce]{display:flex;align-items:center;justify-content:center;height:100%;width:100%;background-color:#fff}.doc-err[data-v-12f1f9ce]{cursor:pointer}.doc-err .err-message[data-v-12f1f9ce]{color:red}", map: undefined, media: undefined })
70727
+ ,inject("data-v-12f1f9ce_1", { source: ".pdf-preview{text-align:center}.pdf-preview:not(.inline){padding-top:20px;padding-bottom:20px}.pdf-preview:not(.inline) canvas{box-shadow:0 0 3px #1e1E1E41}.pdf-preview.inline{height:200px;overflow-y:scroll;display:inline-block;cursor:zoom-in;width:100%;max-width:500px}.pdf-preview canvas{margin-bottom:10px}.pdf-preview canvas.inline{width:100%}.pdf-preview canvas:not(.inline){margin:0 auto 10px auto;display:block}.pdf-preview canvas:last-of-type{margin-bottom:unset}.pdf-preview .loader{margin-bottom:10px}", map: undefined, media: undefined });
70728
70728
 
70729
70729
  };
70730
70730
  /* scoped */
70731
- const __vue_scope_id__$4 = "data-v-0fb1847f";
70731
+ const __vue_scope_id__$4 = "data-v-12f1f9ce";
70732
70732
  /* module identifier */
70733
70733
  const __vue_module_identifier__$4 = undefined;
70734
70734
  /* functional template */
@@ -71068,7 +71068,7 @@ var script$8 = {
71068
71068
  const __vue_script__$8 = script$8;
71069
71069
 
71070
71070
  /* template */
71071
- var __vue_render__$7 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"text-center"},[(!_vm.inConfirmation)?_c('span',[_c('b-button',{class:(_vm.buttonClass + " " + (_vm.borderless ? 'border-0' : '')),attrs:{"data-test-id":"button-delete","variant":_vm.variant,"size":_vm.size,"disabled":_vm.disabled,"title":_vm.tooltip},on:{"click":function($event){$event.stopPropagation();$event.preventDefault();return _vm.onPrompt.apply(null, arguments)}}},[_vm._t("default",function(){return [_c('font-awesome-icon',{attrs:{"icon":['far', 'trash-alt']}})]})],2)],1):_c('span',[_c('b-button',{staticClass:"mr-1",class:[ _vm.borderless && 'border-0' ],attrs:{"data-test-id":"button-delete-confirm","variant":_vm.variantOk,"size":_vm.sizeConfirm,"disabled":_vm.okDisabled},on:{"blur":function($event){$event.preventDefault();return _vm.onCancel()},"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.onConfirmation()}}},[_vm._t("yes",function(){return [_c('font-awesome-icon',{attrs:{"icon":['fas', 'check']}})]})],2),_vm._v(" "),_c('b-button',{class:[ _vm.borderless && 'border-0' ],attrs:{"data-test-id":"button-delete-cancel","variant":_vm.variantCancel,"size":_vm.sizeConfirm,"disabled":_vm.cancelDisabled},on:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.onCancel()}}},[_vm._t("no",function(){return [_c('font-awesome-icon',{attrs:{"icon":['fas', 'times']}})]})],2)],1)])};
71071
+ var __vue_render__$7 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-inline-block",class:{ 'text-center': _vm.inConfirmation }},[(!_vm.inConfirmation)?[_c('b-button',{class:(_vm.buttonClass + " " + (_vm.borderless ? 'border-0' : '')),attrs:{"data-test-id":"button-delete","variant":_vm.variant,"size":_vm.size,"disabled":_vm.disabled,"title":_vm.tooltip},on:{"click":function($event){$event.stopPropagation();$event.preventDefault();return _vm.onPrompt.apply(null, arguments)}}},[_vm._t("default",function(){return [_c('font-awesome-icon',{attrs:{"icon":['far', 'trash-alt']}})]})],2)]:[_c('b-button',{staticClass:"mr-1",class:[ _vm.borderless && 'border-0' ],attrs:{"data-test-id":"button-delete-confirm","variant":_vm.variantOk,"size":_vm.sizeConfirm,"disabled":_vm.okDisabled},on:{"blur":function($event){$event.preventDefault();return _vm.onCancel()},"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.onConfirmation()}}},[_vm._t("yes",function(){return [_c('font-awesome-icon',{attrs:{"icon":['fas', 'check']}})]})],2),_vm._v(" "),_c('b-button',{class:[ _vm.borderless && 'border-0' ],attrs:{"data-test-id":"button-delete-cancel","variant":_vm.variantCancel,"size":_vm.sizeConfirm,"disabled":_vm.cancelDisabled},on:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.onCancel()}}},[_vm._t("no",function(){return [_c('font-awesome-icon',{attrs:{"icon":['fas', 'times']}})]})],2)]],2)};
71072
71072
  var __vue_staticRenderFns__$7 = [];
71073
71073
 
71074
71074
  /* style */
@@ -71222,7 +71222,7 @@ function setTime(time, value, noDate = false, noTime = false) {
71222
71222
  var script$a = {
71223
71223
  props: {
71224
71224
  value: {
71225
- type: String,
71225
+ type: [String, Date],
71226
71226
  required: false
71227
71227
  },
71228
71228
  noTime: {
@@ -71293,7 +71293,7 @@ var __vue_staticRenderFns__$9 = [];
71293
71293
  /* style */
71294
71294
  const __vue_inject_styles__$b = function (inject) {
71295
71295
  if (!inject) return
71296
- inject("data-v-1bc6bb72_0", { source: ".c-input-date-time{min-width:120px}.c-input-date-time .btn{padding:.25rem .5rem}.c-input-date-time label{font-family:Poppins-Regular;color:#495057!important}.b-calendar-inner{background-color:#fff}@media (min-width:992px){.c-input-date-time{min-width:250px}}", map: undefined, media: undefined });
71296
+ inject("data-v-50842cb9_0", { source: ".c-input-date-time{min-width:120px}.c-input-date-time .btn{padding:.25rem .5rem}.c-input-date-time label{font-family:Poppins-Regular;color:#495057!important}.b-calendar-inner{background-color:#fff}@media (min-width:992px){.c-input-date-time{min-width:250px}}", map: undefined, media: undefined });
71297
71297
 
71298
71298
  };
71299
71299
  /* scoped */
@@ -82140,7 +82140,7 @@ var script$F = {
82140
82140
  },
82141
82141
 
82142
82142
  isMobile() {
82143
- return window.innerWidth < 576;
82143
+ return window.innerWidth < 1024 || /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
82144
82144
  }
82145
82145
 
82146
82146
  },
@@ -82164,12 +82164,6 @@ var script$F = {
82164
82164
  this.checkSidebar();
82165
82165
  }
82166
82166
 
82167
- },
82168
- disabledRoutes: {
82169
- handler() {
82170
- this.checkSidebar();
82171
- }
82172
-
82173
82167
  }
82174
82168
  },
82175
82169
  methods: {
@@ -82252,12 +82246,12 @@ var __vue_staticRenderFns__$B = [];
82252
82246
  /* style */
82253
82247
  const __vue_inject_styles__$G = function (inject) {
82254
82248
  if (!inject) return
82255
- inject("data-v-25036927_0", { source: ".tab[data-v-25036927]{z-index:1021;top:0;height:64px;width:66px}.icon[data-v-25036927]{max-height:40px;max-width:40px}.logo[data-v-25036927]{max-height:40px}.sidebar-header[data-v-25036927]{height:64px}", map: undefined, media: undefined })
82256
- ,inject("data-v-25036927_1", { source: ".sidebar{display:flex!important;left:calc(-320px)!important;-webkit-transition:left .15s ease-in-out;-moz-transition:left .15s ease-in-out;-o-transition:left .15s ease-in-out;transition:left .15s ease-in-out}.sidebar header{background-color:#fff}.sidebar header.expanded{background-color:#f4f7fa!important}.sidebar.expanded{left:0!important;-webkit-transition:left .2s ease-in-out;-moz-transition:left .2s ease-in-out;-o-transition:left .2s ease-in-out;transition:left .2s ease-in-out}[dir=rtl] .sidebar{right:calc(-320px)!important;-webkit-transition:right .15s ease-in-out;-moz-transition:right .15s ease-in-out;-o-transition:right .15s ease-in-out;transition:right .15s ease-in-out}[dir=rtl] .sidebar header{background-color:#fff}[dir=rtl] .sidebar header.expanded{background-color:#f4f7fa!important}[dir=rtl] .sidebar.expanded{right:0!important;-webkit-transition:right .2s ease-in-out;-moz-transition:right .2s ease-in-out;-o-transition:right .2s ease-in-out;transition:right .2s ease-in-out}", map: undefined, media: undefined });
82249
+ inject("data-v-32b752b4_0", { source: ".tab[data-v-32b752b4]{z-index:1021;top:0;height:64px;width:66px}.icon[data-v-32b752b4]{max-height:40px;max-width:40px}.logo[data-v-32b752b4]{max-height:40px}.sidebar-header[data-v-32b752b4]{height:64px}", map: undefined, media: undefined })
82250
+ ,inject("data-v-32b752b4_1", { source: ".sidebar{display:flex!important;left:calc(-320px)!important;-webkit-transition:left .15s ease-in-out;-moz-transition:left .15s ease-in-out;-o-transition:left .15s ease-in-out;transition:left .15s ease-in-out}.sidebar header{background-color:#fff}.sidebar header.expanded{background-color:#f4f7fa!important}.sidebar.expanded{left:0!important;-webkit-transition:left .2s ease-in-out;-moz-transition:left .2s ease-in-out;-o-transition:left .2s ease-in-out;transition:left .2s ease-in-out}[dir=rtl] .sidebar{right:calc(-320px)!important;-webkit-transition:right .15s ease-in-out;-moz-transition:right .15s ease-in-out;-o-transition:right .15s ease-in-out;transition:right .15s ease-in-out}[dir=rtl] .sidebar header{background-color:#fff}[dir=rtl] .sidebar header.expanded{background-color:#f4f7fa!important}[dir=rtl] .sidebar.expanded{right:0!important;-webkit-transition:right .2s ease-in-out;-moz-transition:right .2s ease-in-out;-o-transition:right .2s ease-in-out;transition:right .2s ease-in-out}", map: undefined, media: undefined });
82257
82251
 
82258
82252
  };
82259
82253
  /* scoped */
82260
- const __vue_scope_id__$G = "data-v-25036927";
82254
+ const __vue_scope_id__$G = "data-v-32b752b4";
82261
82255
  /* module identifier */
82262
82256
  const __vue_module_identifier__$G = undefined;
82263
82257
  /* functional template */
@@ -83091,13 +83085,13 @@ var script$P = {
83091
83085
  const __vue_script__$P = script$P;
83092
83086
 
83093
83087
  /* template */
83094
- var __vue_render__$K = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-sidebar',{attrs:{"header-class":"d-flex align-items-center justify-content-between reminder-sidebar-header px-2 py-3 border-bottom","body-class":"bg-white px-2","title":_vm.title,"backdrop":_vm.isMobile,"no-footer":"","right":"","shadow":"","no-close-on-route-change":"","no-close-on-esc":""},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('h4',{staticClass:"text-primary mb-0"},[_c('b',[_vm._v(_vm._s(_vm.title))])]),_vm._v(" "),_c('b-button',{staticClass:"d-flex align-items-center justify-content-center p-2",attrs:{"variant":"outline-light border-0"},on:{"click":function($event){_vm.isVisible = false;}}},[_c('font-awesome-icon',{staticClass:"h6 mb-0 text-dark",attrs:{"icon":['fas', 'times']}})],1)]},proxy:true}]),model:{value:(_vm.isVisible),callback:function ($$v) {_vm.isVisible=$$v;},expression:"isVisible"}},[_vm._v(" "),_vm._t("default")],2)};
83088
+ var __vue_render__$K = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-sidebar',{attrs:{"header-class":"d-flex align-items-center justify-content-between reminder-sidebar-header px-2 py-3 border-bottom","body-class":"bg-white px-2 pb-2","title":_vm.title,"backdrop":_vm.isMobile,"no-footer":"","right":"","shadow":"","no-close-on-route-change":"","no-close-on-esc":""},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('h4',{staticClass:"text-primary mb-0"},[_c('b',[_vm._v(_vm._s(_vm.title))])]),_vm._v(" "),_c('b-button',{staticClass:"d-flex align-items-center justify-content-center p-2",attrs:{"variant":"outline-light border-0"},on:{"click":function($event){_vm.isVisible = false;}}},[_c('font-awesome-icon',{staticClass:"h6 mb-0 text-dark",attrs:{"icon":['fas', 'times']}})],1)]},proxy:true}]),model:{value:(_vm.isVisible),callback:function ($$v) {_vm.isVisible=$$v;},expression:"isVisible"}},[_vm._v(" "),_vm._t("default")],2)};
83095
83089
  var __vue_staticRenderFns__$K = [];
83096
83090
 
83097
83091
  /* style */
83098
83092
  const __vue_inject_styles__$Q = function (inject) {
83099
83093
  if (!inject) return
83100
- inject("data-v-6d2b83fd_0", { source: ".reminder-sidebar-header{height:64px;background-color:#f4f7fa}", map: undefined, media: undefined });
83094
+ inject("data-v-c27ae040_0", { source: ".reminder-sidebar-header{height:64px;background-color:#f4f7fa}", map: undefined, media: undefined });
83101
83095
 
83102
83096
  };
83103
83097
  /* scoped */
@@ -83620,7 +83614,7 @@ var script$T = {
83620
83614
  const __vue_script__$T = script$T;
83621
83615
 
83622
83616
  /* template */
83623
- var __vue_render__$N = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('e-charts',{staticClass:"position-absolute w-100 h-100 overflow-hidden",attrs:{"option":_vm.chart,"theme":_vm.theme,"autoresize":""}})};
83617
+ var __vue_render__$N = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('e-charts',_vm._g({staticClass:"position-absolute w-100 h-100 overflow-hidden",attrs:{"option":_vm.chart,"theme":_vm.theme,"autoresize":""}},_vm.$listeners))};
83624
83618
  var __vue_staticRenderFns__$N = [];
83625
83619
 
83626
83620
  /* style */
@@ -84474,6 +84468,9 @@ var script$Z = {
84474
84468
  hidePagination: {
84475
84469
  type: Boolean
84476
84470
  },
84471
+ stickyHeader: {
84472
+ type: Boolean
84473
+ },
84477
84474
  // Are rows clickable
84478
84475
  clickable: {
84479
84476
  type: Boolean,
@@ -84554,6 +84551,10 @@ var script$Z = {
84554
84551
 
84555
84552
  hasNextPage() {
84556
84553
  return !!this.pagination.nextPage;
84554
+ },
84555
+
84556
+ showPagination() {
84557
+ return !this.hidePagination && (this.hasPrevPage || this.hasNextPage);
84557
84558
  }
84558
84559
 
84559
84560
  },
@@ -84629,7 +84630,7 @@ var script$Z = {
84629
84630
  const __vue_script__$Z = script$Z;
84630
84631
 
84631
84632
  /* template */
84632
- var __vue_render__$T = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',{staticClass:"shadow-sm",attrs:{"no-body":"","header-bg-variant":"white"},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('b-container',{staticClass:"p-0",attrs:{"fluid":"","align-v":"center"}},[_c('b-row',[_c('b-col',{attrs:{"lg":"8"}},[_vm._t("header",null,{"selected":_vm.selected})],2),_vm._v(" "),(!_vm.hideSearch)?_c('b-col',{staticClass:"pt-1 pt-lg-0"},[_c('c-input-search',{attrs:{"placeholder":_vm.translations.searchPlaceholder,"debounce":300},on:{"input":function($event){return _vm.$emit('search')}},model:{value:(_vm.filter[_vm.queryField]),callback:function ($$v) {_vm.$set(_vm.filter, _vm.queryField, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"filter[queryField]"}})],1):_vm._e()],1),_vm._v(" "),_c('b-row',{class:{ 'mt-3': !!_vm.$slots.toolbar }},[_vm._t("toolbar")],2)],1)]},proxy:true},{key:"footer",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center justify-content-between"},[_c('div',{staticClass:"text-truncate"},[(!_vm.hideTotal)?_c('div',{staticClass:"text-nowrap font-weight-bold"},[_vm._v("\n "+_vm._s(_vm.getPagination)+"\n ")]):_vm._e()]),_vm._v(" "),(!_vm.hidePagination)?_c('b-button-group',[_c('b-button',{staticClass:"text-dark",attrs:{"disabled":!_vm.hasPrevPage,"variant":"link"},on:{"click":function($event){return _vm.goToPage()}}},[_c('font-awesome-icon',{attrs:{"icon":['fas', 'angle-double-left']}})],1),_vm._v(" "),_c('b-button',{staticClass:"text-dark",attrs:{"disabled":!_vm.hasPrevPage,"variant":"link"},on:{"click":function($event){return _vm.goToPage('prevPage')}}},[_c('font-awesome-icon',{attrs:{"icon":['fas', 'angle-left']}}),_vm._v("\n "+_vm._s(_vm.translations.prevPagination)+"\n ")],1),_vm._v(" "),_c('b-button',{staticClass:"text-dark",attrs:{"disabled":!_vm.hasNextPage,"variant":"link"},on:{"click":function($event){return _vm.goToPage('nextPage')}}},[_vm._v("\n "+_vm._s(_vm.translations.nextPagination)+"\n "),_c('font-awesome-icon',{attrs:{"icon":['fas', 'angle-right']}})],1)],1):_vm._e()],1)]},proxy:true}],null,true)},[_vm._v(" "),_c('b-card-body',{staticClass:"p-0"},[_c('b-table',{ref:"resourceList",staticClass:"mb-0",attrs:{"id":"resource-list","head-variant":"light","hover":"","responsive":"","show-empty":"","no-sort-reset":"","no-local-sorting":"","primary-key":_vm.primaryKey,"sort-by":_vm.sorting.sortBy,"sort-desc":_vm.sorting.sortDesc,"items":_vm._items,"fields":_vm._fields,"tbody-tr-class":_vm.tableRowClasses},on:{"update:sortBy":function($event){return _vm.$set(_vm.sorting, "sortBy", $event)},"update:sort-by":function($event){return _vm.$set(_vm.sorting, "sortBy", $event)},"update:sortDesc":function($event){return _vm.$set(_vm.sorting, "sortDesc", $event)},"update:sort-desc":function($event){return _vm.$set(_vm.sorting, "sortDesc", $event)},"sort-changed":function($event){_vm.pagination.page = 1;},"row-clicked":function($event){return _vm.$emit('row-clicked', $event)}},scopedSlots:_vm._u([{key:"empty",fn:function(){return [_c('p',{staticClass:"text-center text-dark",staticStyle:{"margin-top":"1vh"},attrs:{"data-test-id":"no-matches"}},[_vm._v("\n "+_vm._s(_vm.translations.noItems)+"\n ")])]},proxy:true},{key:"table-busy",fn:function(){return [_c('div',{staticClass:"text-center m-5"},[_c('div',[_c('b-spinner',{staticClass:"align-middle m-2"})],1),_vm._v("\n "+_vm._s(_vm.translations.loading)+"\n ")])]},proxy:true},(_vm.selectable)?{key:"head(select)",fn:function(){return [_c('b-checkbox',{staticClass:"ml-1",attrs:{"disabled":_vm.disableSelectAll,"checked":_vm.allRowsSelected && !_vm.disableSelectAll},on:{"change":_vm.selectAllRows}})]},proxy:true}:null,{key:"cell(select)",fn:function(ref){
84633
+ var __vue_render__$T = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',{staticClass:"shadow-sm",attrs:{"no-body":"","header-bg-variant":"white","footer-bg-variant":"white","footer-class":"border-top"},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('b-container',{staticClass:"p-0",attrs:{"fluid":"","align-v":"center"}},[_c('b-row',[_c('b-col',{attrs:{"lg":"8"}},[_vm._t("header",null,{"selected":_vm.selected})],2),_vm._v(" "),(!_vm.hideSearch)?_c('b-col',{staticClass:"pt-1 pt-lg-0"},[_c('c-input-search',{attrs:{"placeholder":_vm.translations.searchPlaceholder,"debounce":300},on:{"input":function($event){return _vm.$emit('search')}},model:{value:(_vm.filter[_vm.queryField]),callback:function ($$v) {_vm.$set(_vm.filter, _vm.queryField, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"filter[queryField]"}})],1):_vm._e()],1),_vm._v(" "),_c('b-row',{class:{ 'mt-3': !!_vm.$slots.toolbar }},[_vm._t("toolbar")],2)],1)]},proxy:true},{key:"footer",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center justify-content-between"},[_c('div',{staticClass:"text-truncate"},[(!_vm.hideTotal)?_c('div',{staticClass:"text-nowrap"},[_vm._v("\n "+_vm._s(_vm.getPagination)+"\n ")]):_vm._e()]),_vm._v(" "),(_vm.showPagination)?_c('b-button-group',[_c('b-button',{staticClass:"d-flex align-items-center justify-content-center text-primary border-0",attrs:{"disabled":!_vm.hasPrevPage,"variant":"outline-light"},on:{"click":function($event){return _vm.goToPage()}}},[_c('font-awesome-icon',{attrs:{"icon":['fas', 'angle-double-left']}})],1),_vm._v(" "),_c('b-button',{staticClass:"d-flex align-items-center justify-content-center text-primary border-0",attrs:{"disabled":!_vm.hasPrevPage,"variant":"outline-light"},on:{"click":function($event){return _vm.goToPage('prevPage')}}},[_c('font-awesome-icon',{staticClass:"mr-1",attrs:{"icon":['fas', 'angle-left']}}),_vm._v("\n "+_vm._s(_vm.translations.prevPagination)+"\n ")],1),_vm._v(" "),_c('b-button',{staticClass:"d-flex align-items-center justify-content-center text-primary border-0",attrs:{"disabled":!_vm.hasNextPage,"variant":"outline-light"},on:{"click":function($event){return _vm.goToPage('nextPage')}}},[_vm._v("\n "+_vm._s(_vm.translations.nextPagination)+"\n "),_c('font-awesome-icon',{staticClass:"ml-1",attrs:{"icon":['fas', 'angle-right']}})],1)],1):_vm._e()],1)]},proxy:true}],null,true)},[_vm._v(" "),_c('b-card-body',{staticClass:"p-0"},[_c('b-table',{ref:"resourceList",staticClass:"mh-100 h-100 mb-0",attrs:{"id":"resource-list","head-variant":"light","fields":_vm._fields,"items":_vm._items,"sort-by":_vm.sorting.sortBy,"sort-desc":_vm.sorting.sortDesc,"sticky-header":_vm.stickyHeader,"tbody-tr-class":_vm.tableRowClasses,"hover":"","responsive":"","show-empty":"","no-sort-reset":"","no-local-sorting":"","primary-key":_vm.primaryKey},on:{"update:sortBy":function($event){return _vm.$set(_vm.sorting, "sortBy", $event)},"update:sort-by":function($event){return _vm.$set(_vm.sorting, "sortBy", $event)},"update:sortDesc":function($event){return _vm.$set(_vm.sorting, "sortDesc", $event)},"update:sort-desc":function($event){return _vm.$set(_vm.sorting, "sortDesc", $event)},"sort-changed":function($event){_vm.pagination.page = 1;},"row-clicked":function($event){return _vm.$emit('row-clicked', $event)}},scopedSlots:_vm._u([{key:"empty",fn:function(){return [_c('p',{staticClass:"text-center text-dark",staticStyle:{"margin-top":"1vh"},attrs:{"data-test-id":"no-matches"}},[_vm._v("\n "+_vm._s(_vm.translations.noItems)+"\n ")])]},proxy:true},{key:"table-busy",fn:function(){return [_c('div',{staticClass:"text-center m-5"},[_c('div',[_c('b-spinner',{staticClass:"align-middle m-2"})],1),_vm._v("\n "+_vm._s(_vm.translations.loading)+"\n ")])]},proxy:true},(_vm.selectable)?{key:"head(select)",fn:function(){return [_c('b-checkbox',{staticClass:"ml-1",attrs:{"disabled":_vm.disableSelectAll,"checked":_vm.allRowsSelected && !_vm.disableSelectAll},on:{"change":_vm.selectAllRows}})]},proxy:true}:null,{key:"cell(select)",fn:function(ref){
84633
84634
  var item = ref.item;
84634
84635
  return [(_vm.isItemSelectable(item))?_c('b-form-checkbox',{staticClass:"ml-1",attrs:{"checked":_vm.selected.includes(item[_vm.primaryKey])},on:{"change":function($event){return _vm.onSelectRow($event, item[_vm.primaryKey])}}}):_vm._e()]}},_vm._l((_vm.customFieldSlots),function(field){return {key:("cell(" + field + ")"),fn:function(ref){
84635
84636
  var item = ref.item;
@@ -85574,12 +85575,20 @@ function locDate(d) {
85574
85575
  return cortezaJs.fmt.date(d);
85575
85576
  }
85576
85577
 
85578
+ function Truncate(s, l) {
85579
+ if (!s) {
85580
+ return '';
85581
+ }
85582
+ return s.length > l ? s.substring(0, l) + '...' : s;
85583
+ }
85584
+
85577
85585
 
85578
85586
 
85579
85587
  var index$5 = /*#__PURE__*/Object.freeze({
85580
85588
  __proto__: null,
85581
85589
  locFullDateTime: locFullDateTime,
85582
- locDate: locDate
85590
+ locDate: locDate,
85591
+ Truncate: Truncate
85583
85592
  });
85584
85593
 
85585
85594
  function loadPrompts(api) {