@cortezaproject/corteza-vue 2023.3.0-dev.3 → 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.es.js +17 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +17 -10
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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:
|
|
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-
|
|
70727
|
-
,inject("data-v-
|
|
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-
|
|
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('
|
|
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-
|
|
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 */
|
|
@@ -83085,13 +83085,13 @@ var script$P = {
|
|
|
83085
83085
|
const __vue_script__$P = script$P;
|
|
83086
83086
|
|
|
83087
83087
|
/* template */
|
|
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","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)};
|
|
83089
83089
|
var __vue_staticRenderFns__$K = [];
|
|
83090
83090
|
|
|
83091
83091
|
/* style */
|
|
83092
83092
|
const __vue_inject_styles__$Q = function (inject) {
|
|
83093
83093
|
if (!inject) return
|
|
83094
|
-
inject("data-v-
|
|
83094
|
+
inject("data-v-c27ae040_0", { source: ".reminder-sidebar-header{height:64px;background-color:#f4f7fa}", map: undefined, media: undefined });
|
|
83095
83095
|
|
|
83096
83096
|
};
|
|
83097
83097
|
/* scoped */
|
|
@@ -84468,6 +84468,9 @@ var script$Z = {
|
|
|
84468
84468
|
hidePagination: {
|
|
84469
84469
|
type: Boolean
|
|
84470
84470
|
},
|
|
84471
|
+
stickyHeader: {
|
|
84472
|
+
type: Boolean
|
|
84473
|
+
},
|
|
84471
84474
|
// Are rows clickable
|
|
84472
84475
|
clickable: {
|
|
84473
84476
|
type: Boolean,
|
|
@@ -84548,6 +84551,10 @@ var script$Z = {
|
|
|
84548
84551
|
|
|
84549
84552
|
hasNextPage() {
|
|
84550
84553
|
return !!this.pagination.nextPage;
|
|
84554
|
+
},
|
|
84555
|
+
|
|
84556
|
+
showPagination() {
|
|
84557
|
+
return !this.hidePagination && (this.hasPrevPage || this.hasNextPage);
|
|
84551
84558
|
}
|
|
84552
84559
|
|
|
84553
84560
|
},
|
|
@@ -84623,7 +84630,7 @@ var script$Z = {
|
|
|
84623
84630
|
const __vue_script__$Z = script$Z;
|
|
84624
84631
|
|
|
84625
84632
|
/* template */
|
|
84626
|
-
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(" "),(
|
|
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){
|
|
84627
84634
|
var item = ref.item;
|
|
84628
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){
|
|
84629
84636
|
var item = ref.item;
|