@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/filters/index.d.ts +1 -0
- package/dist/filters/truncate.d.ts +1 -0
- package/dist/index.es.js +31 -22
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +31 -22
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/filters/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Truncate(s: string, l: number): string;
|
package/dist/index.es.js
CHANGED
|
@@ -70485,7 +70485,7 @@ var script$4 = {
|
|
|
70485
70485
|
maxPages: {
|
|
70486
70486
|
required: false,
|
|
70487
70487
|
type: Number,
|
|
70488
|
-
default:
|
|
70488
|
+
default: 25
|
|
70489
70489
|
},
|
|
70490
70490
|
initialScale: {
|
|
70491
70491
|
required: false,
|
|
@@ -70716,12 +70716,12 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
70716
70716
|
/* style */
|
|
70717
70717
|
const __vue_inject_styles__$4 = function (inject) {
|
|
70718
70718
|
if (!inject) return
|
|
70719
|
-
inject("data-v-
|
|
70720
|
-
,inject("data-v-
|
|
70719
|
+
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 })
|
|
70720
|
+
,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 });
|
|
70721
70721
|
|
|
70722
70722
|
};
|
|
70723
70723
|
/* scoped */
|
|
70724
|
-
const __vue_scope_id__$4 = "data-v-
|
|
70724
|
+
const __vue_scope_id__$4 = "data-v-12f1f9ce";
|
|
70725
70725
|
/* module identifier */
|
|
70726
70726
|
const __vue_module_identifier__$4 = undefined;
|
|
70727
70727
|
/* functional template */
|
|
@@ -71061,7 +71061,7 @@ var script$8 = {
|
|
|
71061
71061
|
const __vue_script__$8 = script$8;
|
|
71062
71062
|
|
|
71063
71063
|
/* template */
|
|
71064
|
-
var __vue_render__$7 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('
|
|
71064
|
+
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)};
|
|
71065
71065
|
var __vue_staticRenderFns__$7 = [];
|
|
71066
71066
|
|
|
71067
71067
|
/* style */
|
|
@@ -71215,7 +71215,7 @@ function setTime(time, value, noDate = false, noTime = false) {
|
|
|
71215
71215
|
var script$a = {
|
|
71216
71216
|
props: {
|
|
71217
71217
|
value: {
|
|
71218
|
-
type: String,
|
|
71218
|
+
type: [String, Date],
|
|
71219
71219
|
required: false
|
|
71220
71220
|
},
|
|
71221
71221
|
noTime: {
|
|
@@ -71286,7 +71286,7 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
71286
71286
|
/* style */
|
|
71287
71287
|
const __vue_inject_styles__$b = function (inject) {
|
|
71288
71288
|
if (!inject) return
|
|
71289
|
-
inject("data-v-
|
|
71289
|
+
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 });
|
|
71290
71290
|
|
|
71291
71291
|
};
|
|
71292
71292
|
/* scoped */
|
|
@@ -82133,7 +82133,7 @@ var script$F = {
|
|
|
82133
82133
|
},
|
|
82134
82134
|
|
|
82135
82135
|
isMobile() {
|
|
82136
|
-
return window.innerWidth <
|
|
82136
|
+
return window.innerWidth < 1024 || /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
82137
82137
|
}
|
|
82138
82138
|
|
|
82139
82139
|
},
|
|
@@ -82157,12 +82157,6 @@ var script$F = {
|
|
|
82157
82157
|
this.checkSidebar();
|
|
82158
82158
|
}
|
|
82159
82159
|
|
|
82160
|
-
},
|
|
82161
|
-
disabledRoutes: {
|
|
82162
|
-
handler() {
|
|
82163
|
-
this.checkSidebar();
|
|
82164
|
-
}
|
|
82165
|
-
|
|
82166
82160
|
}
|
|
82167
82161
|
},
|
|
82168
82162
|
methods: {
|
|
@@ -82245,12 +82239,12 @@ var __vue_staticRenderFns__$B = [];
|
|
|
82245
82239
|
/* style */
|
|
82246
82240
|
const __vue_inject_styles__$G = function (inject) {
|
|
82247
82241
|
if (!inject) return
|
|
82248
|
-
inject("data-v-
|
|
82249
|
-
,inject("data-v-
|
|
82242
|
+
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 })
|
|
82243
|
+
,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 });
|
|
82250
82244
|
|
|
82251
82245
|
};
|
|
82252
82246
|
/* scoped */
|
|
82253
|
-
const __vue_scope_id__$G = "data-v-
|
|
82247
|
+
const __vue_scope_id__$G = "data-v-32b752b4";
|
|
82254
82248
|
/* module identifier */
|
|
82255
82249
|
const __vue_module_identifier__$G = undefined;
|
|
82256
82250
|
/* functional template */
|
|
@@ -83084,13 +83078,13 @@ var script$P = {
|
|
|
83084
83078
|
const __vue_script__$P = script$P;
|
|
83085
83079
|
|
|
83086
83080
|
/* template */
|
|
83087
|
-
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)};
|
|
83081
|
+
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)};
|
|
83088
83082
|
var __vue_staticRenderFns__$K = [];
|
|
83089
83083
|
|
|
83090
83084
|
/* style */
|
|
83091
83085
|
const __vue_inject_styles__$Q = function (inject) {
|
|
83092
83086
|
if (!inject) return
|
|
83093
|
-
inject("data-v-
|
|
83087
|
+
inject("data-v-c27ae040_0", { source: ".reminder-sidebar-header{height:64px;background-color:#f4f7fa}", map: undefined, media: undefined });
|
|
83094
83088
|
|
|
83095
83089
|
};
|
|
83096
83090
|
/* scoped */
|
|
@@ -83613,7 +83607,7 @@ var script$T = {
|
|
|
83613
83607
|
const __vue_script__$T = script$T;
|
|
83614
83608
|
|
|
83615
83609
|
/* template */
|
|
83616
|
-
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":""}})};
|
|
83610
|
+
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))};
|
|
83617
83611
|
var __vue_staticRenderFns__$N = [];
|
|
83618
83612
|
|
|
83619
83613
|
/* style */
|
|
@@ -84467,6 +84461,9 @@ var script$Z = {
|
|
|
84467
84461
|
hidePagination: {
|
|
84468
84462
|
type: Boolean
|
|
84469
84463
|
},
|
|
84464
|
+
stickyHeader: {
|
|
84465
|
+
type: Boolean
|
|
84466
|
+
},
|
|
84470
84467
|
// Are rows clickable
|
|
84471
84468
|
clickable: {
|
|
84472
84469
|
type: Boolean,
|
|
@@ -84547,6 +84544,10 @@ var script$Z = {
|
|
|
84547
84544
|
|
|
84548
84545
|
hasNextPage() {
|
|
84549
84546
|
return !!this.pagination.nextPage;
|
|
84547
|
+
},
|
|
84548
|
+
|
|
84549
|
+
showPagination() {
|
|
84550
|
+
return !this.hidePagination && (this.hasPrevPage || this.hasNextPage);
|
|
84550
84551
|
}
|
|
84551
84552
|
|
|
84552
84553
|
},
|
|
@@ -84622,7 +84623,7 @@ var script$Z = {
|
|
|
84622
84623
|
const __vue_script__$Z = script$Z;
|
|
84623
84624
|
|
|
84624
84625
|
/* template */
|
|
84625
|
-
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
|
|
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(" "),(_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){
|
|
84626
84627
|
var item = ref.item;
|
|
84627
84628
|
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){
|
|
84628
84629
|
var item = ref.item;
|
|
@@ -85567,12 +85568,20 @@ function locDate(d) {
|
|
|
85567
85568
|
return fmt.date(d);
|
|
85568
85569
|
}
|
|
85569
85570
|
|
|
85571
|
+
function Truncate(s, l) {
|
|
85572
|
+
if (!s) {
|
|
85573
|
+
return '';
|
|
85574
|
+
}
|
|
85575
|
+
return s.length > l ? s.substring(0, l) + '...' : s;
|
|
85576
|
+
}
|
|
85577
|
+
|
|
85570
85578
|
|
|
85571
85579
|
|
|
85572
85580
|
var index$5 = /*#__PURE__*/Object.freeze({
|
|
85573
85581
|
__proto__: null,
|
|
85574
85582
|
locFullDateTime: locFullDateTime,
|
|
85575
|
-
locDate: locDate
|
|
85583
|
+
locDate: locDate,
|
|
85584
|
+
Truncate: Truncate
|
|
85576
85585
|
});
|
|
85577
85586
|
|
|
85578
85587
|
function loadPrompts(api) {
|