@cortezaproject/corteza-vue 2023.9.0 → 2023.9.1
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/components/map/index.d.ts +1 -0
- package/dist/index.es.js +54 -16
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +54 -16
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CMap } from './CMap.vue';
|
package/dist/index.es.js
CHANGED
|
@@ -71153,7 +71153,7 @@ var script$8 = {
|
|
|
71153
71153
|
const __vue_script__$8 = script$8;
|
|
71154
71154
|
|
|
71155
71155
|
/* template */
|
|
71156
|
-
var __vue_render__$7 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-inline-flex"},[(!_vm.inConfirmation)?[_c('b-button',{class:(_vm.buttonClass + " " + (_vm.borderless ? 'border-0' : '') + " flex-fill"),attrs:{"data-test-id":"button-delete","variant":_vm.variant,"size":_vm.size,"disabled":_vm.disabled || _vm.processing
|
|
71156
|
+
var __vue_render__$7 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-inline-flex"},[(!_vm.inConfirmation)?[_c('b-button',{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",value:({ title: _vm.tooltip, container: '#body' }),expression:"{ title: tooltip, container: '#body' }",modifiers:{"hover":true}}],class:(_vm.buttonClass + " " + (_vm.borderless ? 'border-0' : '') + " flex-fill"),attrs:{"data-test-id":"button-delete","variant":_vm.variant,"size":_vm.size,"disabled":_vm.disabled || _vm.processing},on:{"click":function($event){$event.stopPropagation();$event.preventDefault();return _vm.onPrompt.apply(null, arguments)}}},[(_vm.processing)?_c('b-spinner',{staticClass:"align-middle",attrs:{"data-test-id":"spinner","small":""}}):_vm._t("default",function(){return [(!_vm.$slots.default)?[(_vm.showIcon || !_vm.text)?_c('font-awesome-icon',{class:_vm.iconClass,attrs:{"icon":_vm.icon}}):_vm._e(),_vm._v(" "),(_vm.text)?_c('span',{class:_vm.textClass},[_vm._v("\n "+_vm._s(_vm.text)+"\n ")]):_vm._e()]:_vm._e()]})],2)]:[_c('b-button',{staticClass:"flex-fill mr-1",class:{ 'border-0': _vm.borderless },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:{"data-test-id":"confirm","icon":['fas', 'check']}})]})],2),_vm._v(" "),_c('b-button',{staticClass:"flex-fill",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:{"data-test-id":"reject","icon":['fas', 'times']}})]})],2)]],2)};
|
|
71157
71157
|
var __vue_staticRenderFns__$7 = [];
|
|
71158
71158
|
|
|
71159
71159
|
/* style */
|
|
@@ -71751,7 +71751,7 @@ var script$d = {
|
|
|
71751
71751
|
const __vue_script__$d = script$d;
|
|
71752
71752
|
|
|
71753
71753
|
/* template */
|
|
71754
|
-
var __vue_render__$c = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-input-group',{staticClass:"input-group-border border-light rounded",staticStyle:{"min-width":"200px"},attrs:{"size":_vm.size}},[_c('b-input',{ref:"searchInput",staticClass:"h-100 pr-0 border-0 rounded-0 text-truncate bg-white",attrs:{"data-test-id":"input-search","type":_vm.inputType,"name":"search","value":_vm.value,"debounce":_vm.debounce,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"autocomplete":_vm.autocomplete},on:{"input":_vm.onInput,"update":_vm.search,"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.submitQuery.apply(null, arguments)}}}),_vm._v(" "),(_vm.showSubmittable)?_c('b-input-group-append',{staticClass:"bg-white m-0",class:{ 'search-icon-border border-light': _vm.showSubmittableAndClearable }},[_c('b-button',{staticClass:"border-0 rounded-0 py-0",class:{
|
|
71754
|
+
var __vue_render__$c = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-input-group',{staticClass:"input-group-border border-light rounded",staticStyle:{"min-width":"200px"},attrs:{"size":_vm.size}},[_c('b-input',{ref:"searchInput",staticClass:"h-100 pr-0 border-0 rounded-0 text-truncate bg-white",attrs:{"data-test-id":"input-search","type":_vm.inputType,"name":"search","value":_vm.value,"debounce":_vm.debounce,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"autocomplete":_vm.autocomplete},on:{"input":_vm.onInput,"update":_vm.search,"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.submitQuery.apply(null, arguments)}}}),_vm._v(" "),(_vm.showSubmittable)?_c('b-input-group-append',{staticClass:"bg-white m-0",class:{ 'search-icon-border border-light': _vm.showSubmittableAndClearable }},[_c('b-button',{staticClass:"d-inline-flex align-items-center border-0 rounded-0 py-0",class:{
|
|
71755
71755
|
'cursor-default': !_vm.isSubmittable
|
|
71756
71756
|
},attrs:{"variant":_vm.isSubmittable ? 'outline-light' : 'link',"disabled":_vm.disabled},on:_vm._d({},[_vm.isSubmittable,_vm.submitQuery])},[_c('font-awesome-icon',{staticClass:"align-middle text-primary",attrs:{"icon":['fas', 'search']}})],1)],1):_vm._e()],1)};
|
|
71757
71757
|
var __vue_staticRenderFns__$c = [];
|
|
@@ -71759,11 +71759,11 @@ var __vue_staticRenderFns__$c = [];
|
|
|
71759
71759
|
/* style */
|
|
71760
71760
|
const __vue_inject_styles__$e = function (inject) {
|
|
71761
71761
|
if (!inject) return
|
|
71762
|
-
inject("data-v-
|
|
71762
|
+
inject("data-v-a2f6fd70_0", { source: "input[data-v-a2f6fd70]:focus::placeholder{color:transparent}input[type=search][data-v-a2f6fd70]::-webkit-search-cancel-button{-webkit-appearance:none;height:1em;width:1em;background-image:url(\"data:image/svg+xml;charset=UTF-8,%3csvg viewPort='0 0 12 12' version='1.1' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='1' y1='11' x2='11' y2='1' stroke='black' stroke-width='2'/%3e%3cline x1='1' y1='1' x2='11' y2='11' stroke='black' stroke-width='2'/%3e%3c/svg%3e\");cursor:pointer;margin-right:13px;margin-top:2px}.input-group-border[data-v-a2f6fd70]{border-width:2px;border-style:solid}.search-icon-border[data-v-a2f6fd70]{border-width:0 0 0 2px;border-style:solid}.cursor-default[data-v-a2f6fd70]{cursor:default!important}", map: undefined, media: undefined });
|
|
71763
71763
|
|
|
71764
71764
|
};
|
|
71765
71765
|
/* scoped */
|
|
71766
|
-
const __vue_scope_id__$e = "data-v-
|
|
71766
|
+
const __vue_scope_id__$e = "data-v-a2f6fd70";
|
|
71767
71767
|
/* module identifier */
|
|
71768
71768
|
const __vue_module_identifier__$e = undefined;
|
|
71769
71769
|
/* functional template */
|
|
@@ -85453,17 +85453,17 @@ var script$v = {
|
|
|
85453
85453
|
const __vue_script__$v = script$v;
|
|
85454
85454
|
|
|
85455
85455
|
/* template */
|
|
85456
|
-
var __vue_render__$s = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-modal',{staticClass:"h-100 overflow-hidden",attrs:{"id":"permissions-modal","visible":_vm.showModal,"size":"xl","title":_vm.translatedTitle,"lazy":"","scrollable":"","no-fade":"","body-class":"d-flex flex-column p-0"},on:{"hide":_vm.onHide},scopedSlots:_vm._u([{key:"modal-footer",fn:function(){return [_c('b-button',{attrs:{"data-test-id":"button-cancel","variant":"light"},on:{"click":_vm.onHide}},[_vm._v("\n "+_vm._s(_vm.labels.cancel)+"\n ")]),_vm._v(" "),_c('c-button-submit',{attrs:{"data-test-id":"button-save","disabled":_vm.submitDisabled,"processing":_vm.processing,"text":_vm.labels.save},on:{"submit":_vm.onSubmit}})]},proxy:true}])},[_c('b-row',{staticClass:"bg-extra-light border-bottom",attrs:{"no-gutters":""}},[_c('b-col',{staticClass:"p-3",attrs:{"lg":"4"}},[_vm._v("\n "+_vm._s(_vm.labels.edit.description)+"\n ")]),_vm._v(" "),_c('b-col',{staticClass:"d-none d-lg-block border-left p-3"},[_vm._v("\n "+_vm._s(_vm.labels.evaluate.description)+"\n ")])],1),_vm._v(" "),_c('b-row',{staticClass:"bg-extra-light",attrs:{"no-gutters":"","align-v":"stretch"}},[_c('b-col',{staticClass:"d-flex align-items-center p-3 border-bottom",attrs:{"lg":"4"}},[_c('b-form-group',{staticClass:"mb-0 w-100",attrs:{"label":_vm.labels.edit.label,"label-class":"text-primary"}},[_c('vue-select',{key:"roleID",staticClass:"h-100 bg-white rounded",attrs:{"data-test-id":"select-user-list-roles","label":"name","clearable":false,"options":_vm.roles,"get-option-key":_vm.getOptionRoleKey,"append-to-body":"","calculate-position":_vm.calculateDropdownPosition},on:{"input":_vm.onRoleChange},model:{value:(_vm.currentRole),callback:function ($$v) {_vm.currentRole=$$v;},expression:"currentRole"}})],1)],1),_vm._v(" "),_vm._l((_vm.evaluate),function(e,i){return _c('b-col',{key:i,staticClass:"pointer hide-eval border-bottom d-none d-lg-flex flex-column align-items-center justify-content-center overflow-hidden border-left p-3",attrs:{"data-test-id":"icon-remove","lg":"2"},on:{"click":function($event){return _vm.onHideEval(i)}}},[_vm._l((_vm.getEvalName(e)),function(n,index){return _c('label',{key:index,staticClass:"pointer text-center text-primary text-break mb-1",attrs:{"title":n}},[_vm._v("\n "+_vm._s(n)+"\n ")])}),_vm._v(" "),_c('font-awesome-icon',{staticClass:"text-secondary rotate mt-1",attrs:{"icon":['fas', 'plus']}})],2)}),_vm._v(" "),(_vm.evaluate.length < 4)?_c('b-col',{directives:[{name:"b-modal",rawName:"v-b-modal.permissions-modal-eval",modifiers:{"permissions-modal-eval":true}}],staticClass:"d-none d-lg-flex pointer border-bottom flex-column align-items-center justify-content-center overflow-hidden border-left p-3",attrs:{"data-test-id":"icon-add"}},[_c('label',{staticClass:"pointer text-center text-primary text-break mb-1"},[_vm._v("\n "+_vm._s(_vm.labels.add.label)+"\n ")]),_vm._v(" "),_c('font-awesome-icon',{staticClass:"text-success d-block mx-auto mt-1",attrs:{"icon":['fas', 'plus']}})],1):_vm._e()],2),_vm._v(" "),(_vm.processing)?_c('div',{staticClass:"d-flex flex-column align-items-center justify-content-center h-100 py-4",staticStyle:{"min-height":"50vh"}},[_c('b-spinner'),_vm._v(" "),_c('div',[_vm._v("\n "+_vm._s(_vm.labels.loading)+"\n ")])],1):_c('b-row',{attrs:{"no-gutters":""}},[_c('b-col',{staticClass:"p-3",attrs:{"lg":"4"}},[_c('rules',{attrs:{"rules":_vm.rules},on:{"update:rules":function($event){_vm.rules=$event;}}})],1),_vm._v(" "),_vm._l((_vm.evaluate),function(e,i){return _c('b-col',{key:i,staticClass:"d-none d-lg-flex border-left p-3 bg-extra-light not-allowed",attrs:{"lg":"2"}},[_c('div',{staticClass:"d-flex flex-column align-items-center justify-content-between mt-4 w-100"},_vm._l((e.rules),function(r){return _c('h5',{
|
|
85456
|
+
var __vue_render__$s = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-modal',{staticClass:"h-100 overflow-hidden",attrs:{"id":"permissions-modal","visible":_vm.showModal,"size":"xl","title":_vm.translatedTitle,"lazy":"","scrollable":"","no-fade":"","body-class":"d-flex flex-column p-0"},on:{"hide":_vm.onHide},scopedSlots:_vm._u([{key:"modal-footer",fn:function(){return [_c('b-button',{attrs:{"data-test-id":"button-cancel","variant":"light"},on:{"click":_vm.onHide}},[_vm._v("\n "+_vm._s(_vm.labels.cancel)+"\n ")]),_vm._v(" "),_c('c-button-submit',{attrs:{"data-test-id":"button-save","disabled":_vm.submitDisabled,"processing":_vm.processing,"text":_vm.labels.save},on:{"submit":_vm.onSubmit}})]},proxy:true}])},[_c('b-row',{staticClass:"bg-extra-light border-bottom",attrs:{"no-gutters":""}},[_c('b-col',{staticClass:"p-3",attrs:{"lg":"4"}},[_vm._v("\n "+_vm._s(_vm.labels.edit.description)+"\n ")]),_vm._v(" "),_c('b-col',{staticClass:"d-none d-lg-block border-left p-3"},[_vm._v("\n "+_vm._s(_vm.labels.evaluate.description)+"\n ")])],1),_vm._v(" "),_c('b-row',{staticClass:"bg-extra-light",attrs:{"no-gutters":"","align-v":"stretch"}},[_c('b-col',{staticClass:"d-flex align-items-center p-3 border-bottom",attrs:{"lg":"4"}},[_c('b-form-group',{staticClass:"mb-0 w-100",attrs:{"label":_vm.labels.edit.label,"label-class":"text-primary"}},[_c('vue-select',{key:"roleID",staticClass:"h-100 bg-white rounded",attrs:{"data-test-id":"select-user-list-roles","label":"name","clearable":false,"options":_vm.roles,"get-option-key":_vm.getOptionRoleKey,"append-to-body":"","calculate-position":_vm.calculateDropdownPosition},on:{"input":_vm.onRoleChange},model:{value:(_vm.currentRole),callback:function ($$v) {_vm.currentRole=$$v;},expression:"currentRole"}})],1)],1),_vm._v(" "),_vm._l((_vm.evaluate),function(e,i){return _c('b-col',{key:i,staticClass:"pointer hide-eval border-bottom d-none d-lg-flex flex-column align-items-center justify-content-center overflow-hidden border-left p-3",attrs:{"data-test-id":"icon-remove","lg":"2"},on:{"click":function($event){return _vm.onHideEval(i)}}},[_vm._l((_vm.getEvalName(e)),function(n,index){return _c('label',{key:index,staticClass:"pointer text-center text-primary text-break mb-1",attrs:{"title":n}},[_vm._v("\n "+_vm._s(n)+"\n ")])}),_vm._v(" "),_c('font-awesome-icon',{staticClass:"text-secondary rotate mt-1",attrs:{"icon":['fas', 'plus']}})],2)}),_vm._v(" "),(_vm.evaluate.length < 4)?_c('b-col',{directives:[{name:"b-modal",rawName:"v-b-modal.permissions-modal-eval",modifiers:{"permissions-modal-eval":true}}],staticClass:"d-none d-lg-flex pointer border-bottom flex-column align-items-center justify-content-center overflow-hidden border-left p-3",attrs:{"data-test-id":"icon-add"}},[_c('label',{staticClass:"pointer text-center text-primary text-break mb-1"},[_vm._v("\n "+_vm._s(_vm.labels.add.label)+"\n ")]),_vm._v(" "),_c('font-awesome-icon',{staticClass:"text-success d-block mx-auto mt-1",attrs:{"icon":['fas', 'plus']}})],1):_vm._e()],2),_vm._v(" "),(_vm.processing)?_c('div',{staticClass:"d-flex flex-column align-items-center justify-content-center h-100 py-4",staticStyle:{"min-height":"50vh"}},[_c('b-spinner'),_vm._v(" "),_c('div',[_vm._v("\n "+_vm._s(_vm.labels.loading)+"\n ")])],1):_c('b-row',{attrs:{"no-gutters":""}},[_c('b-col',{staticClass:"p-3",attrs:{"lg":"4"}},[_c('rules',{attrs:{"rules":_vm.rules},on:{"update:rules":function($event){_vm.rules=$event;}}})],1),_vm._v(" "),_vm._l((_vm.evaluate),function(e,i){return _c('b-col',{key:i,staticClass:"d-none d-lg-flex border-left p-3 bg-extra-light not-allowed",attrs:{"lg":"2"}},[_c('div',{staticClass:"d-flex flex-column align-items-center justify-content-between mt-4 w-100"},_vm._l((e.rules),function(r){return _c('h5',{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",value:({ title: _vm.getRuleTooltip(r.access === 'unknown-context', !!e.userID), container: '#body' }),expression:"{ title: getRuleTooltip(r.access === 'unknown-context', !!e.userID), container: '#body' }",modifiers:{"hover":true}}],key:r.operation,staticClass:"text-center mb-1 mt-2 w-100"},[(r.access === 'unknown-context')?_c('font-awesome-icon',{staticClass:"text-secondary",attrs:{"icon":['fas', 'question']}}):(r.access === 'allow')?_c('font-awesome-icon',{staticClass:"text-success",attrs:{"icon":['fas', 'check']}}):_c('font-awesome-icon',{staticClass:"text-danger",attrs:{"icon":['fas', 'times']}})],1)}),0)])}),_vm._v(" "),_c('b-col',{staticClass:"d-none d-lg-block pt-4 border-left"})],2)],1),_vm._v(" "),_c('b-modal',{attrs:{"id":"permissions-modal-eval","title":_vm.labels.add.title,"centered":"","no-fade":""},scopedSlots:_vm._u([{key:"modal-footer",fn:function(){return [_c('c-button-submit',{attrs:{"data-test-id":"button-save","disabled":!_vm.addEnabled,"processing":_vm.processing,"text":_vm.labels.add.save},on:{"submit":_vm.onAddEval}})]},proxy:true}])},[_c('b-form-group',{staticClass:"mb-0",attrs:{"label":_vm.labels.add.role.label,"label-class":"text-primary"}},[_c('vue-select',{key:"roleID",staticClass:"bg-white rounded",attrs:{"data-test-id":"select-role","options":_vm.roles,"get-option-key":_vm.getOptionRoleKey,"label":"name","multiple":"","clearable":"","disabled":!!_vm.add.userID,"placeholder":_vm.labels.add.role.placeholder,"calculate-position":_vm.calculateDropdownPosition},model:{value:(_vm.add.roleID),callback:function ($$v) {_vm.$set(_vm.add, "roleID", $$v);},expression:"add.roleID"}})],1),_vm._v(" "),_c('b-form-group',{staticClass:"mt-3 mb-0",attrs:{"label":_vm.labels.add.user.label,"label-class":"text-primary"}},[_c('vue-select',{key:"userID",staticClass:"bg-white rounded",attrs:{"data-test-id":"select-user","disabled":!!_vm.add.roleID.length,"options":_vm.userOptions,"get-option-label":_vm.getUserLabel,"get-option-key":_vm.getOptionUserKey,"label":"name","clearable":"","placeholder":_vm.labels.add.user.placeholder,"calculate-position":_vm.calculateDropdownPosition},on:{"search":_vm.searchUsers},model:{value:(_vm.add.userID),callback:function ($$v) {_vm.$set(_vm.add, "userID", $$v);},expression:"add.userID"}})],1)],1)],1)};
|
|
85457
85457
|
var __vue_staticRenderFns__$s = [];
|
|
85458
85458
|
|
|
85459
85459
|
/* style */
|
|
85460
85460
|
const __vue_inject_styles__$w = function (inject) {
|
|
85461
85461
|
if (!inject) return
|
|
85462
|
-
inject("data-v-
|
|
85462
|
+
inject("data-v-26fbc657_0", { source: ".not-allowed[data-v-26fbc657]{cursor:not-allowed}.bg-extra-light[data-v-26fbc657]{background-color:#f3f5f7}.pointer[data-v-26fbc657]{cursor:pointer}.rotate[data-v-26fbc657]{transform:rotate(45deg)}.hide-eval:hover .rotate[data-v-26fbc657]{color:#162425!important}", map: undefined, media: undefined });
|
|
85463
85463
|
|
|
85464
85464
|
};
|
|
85465
85465
|
/* scoped */
|
|
85466
|
-
const __vue_scope_id__$w = "data-v-
|
|
85466
|
+
const __vue_scope_id__$w = "data-v-26fbc657";
|
|
85467
85467
|
/* module identifier */
|
|
85468
85468
|
const __vue_module_identifier__$w = undefined;
|
|
85469
85469
|
/* functional template */
|
|
@@ -87271,6 +87271,9 @@ var __vue_staticRenderFns__$D = [];
|
|
|
87271
87271
|
//
|
|
87272
87272
|
//
|
|
87273
87273
|
//
|
|
87274
|
+
//
|
|
87275
|
+
//
|
|
87276
|
+
//
|
|
87274
87277
|
var script$I = {
|
|
87275
87278
|
props: {
|
|
87276
87279
|
sidebarPinned: {
|
|
@@ -87363,18 +87366,18 @@ var __vue_render__$E = function () {var _vm=this;var _h=_vm.$createElement;var _
|
|
|
87363
87366
|
'expanded': _vm.sidebarPinned,
|
|
87364
87367
|
}}),_vm._v(" "),_c('h2',{staticClass:"title py-1 mb-0"},[_vm._t("title")],2),_vm._v(" "),_c('div',{staticClass:"tools-wrapper py-1 ml-auto"},[_vm._t("tools")],2),_vm._v(" "),_c('div',{staticClass:"d-flex align-items-center ml-auto"},[(!_vm.hideAppSelector && !_vm.settings.hideAppSelector)?_c('b-button',{staticClass:"d-flex align-items-center justify-content-center text-dark border-0 nav-icon rounded-circle text-sm-nowrap",attrs:{"data-test-id":"app-selector","variant":"outline-light","href":_vm.appSelectorURL,"title":"Apps","size":"lg"}},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['fas', 'grip-horizontal']}})],1):_vm._e(),_vm._v(" "),(!_vm.settings.hideHelp)?_c('b-dropdown',{staticClass:"nav-icon mx-1 text-sm-nowrap",attrs:{"data-test-id":"dropdown-helper","size":"lg","variant":"outline-light","toggle-class":"text-decoration-none text-dark rounded-circle border-0 w-100","menu-class":"topbar-dropdown-menu border-0 shadow-sm text-dark font-weight-bold mt-2","right":"","no-caret":""},scopedSlots:_vm._u([{key:"button-content",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center justify-content-center"},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['far', 'question-circle']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,1129756517)},[_vm._v(" "),_c('div',[_vm._t("help-dropdown")],2),_vm._v(" "),_vm._l((_vm.helpLinks),function(helpLink,index){return _c('b-dropdown-item',{key:index,attrs:{"href":_vm._f("checkValidURL")(helpLink.url),"target":helpLink.newTab ? '_blank' : ''}},[_vm._v("\n "+_vm._s(helpLink.handle)+"\n ")])}),_vm._v(" "),(!_vm.settings.hideForumLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-forum","href":"https://forum.cortezaproject.org/","target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideDocumentationLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-docs","href":_vm.documentationURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpDocumentation)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideFeedbackLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-feedback","href":"mailto:info@cortezaproject.org","target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpFeedback)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.onlyVersion)?_c('b-dropdown-divider'):_vm._e(),_vm._v(" "),_c('b-dropdown-item',{staticClass:"small",attrs:{"disabled":""}},[_vm._v("\n "+_vm._s(_vm.labels.helpVersion)+"\n "),_c('br'),_vm._v("\n "+_vm._s(_vm.frontendVersion)+"\n ")])],2):_vm._e(),_vm._v(" "),(!_vm.settings.hideProfile)?_c('b-dropdown',{staticClass:"nav-user-icon",attrs:{"data-test-id":"dropdown-profile","data-v-onboarding":"profile","variant":_vm.avatarExists ? 'link' : 'outline-light',"toggle-class":("nav-icon text-decoration-none text-dark rounded-circle border " + (_vm.avatarExists ? 'p-0' : '')),"size":"lg","right":"","menu-class":"topbar-dropdown-menu border-0 shadow-sm text-dark font-weight-bold mt-2","no-caret":""},scopedSlots:_vm._u([{key:"button-content",fn:function(){return [(_vm.avatarExists)?_c('div',{staticClass:"avatar d-flex h-100",style:({
|
|
87365
87368
|
'background-image': _vm.avatarExists ? ("url(" + _vm.profileAvatarUrl + ")") : 'none',
|
|
87366
|
-
})}):_c('div',{staticClass:"d-flex align-items-center justify-content-center"},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['far', 'user']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,3591924344)},[_vm._v(" "),_c('b-dropdown-text',{staticClass:"text-muted mb-2"},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLoggedInAs)+"\n ")]),_vm._v(" "),_c('div',[_vm._t("avatar-dropdown")],2),_vm._v(" "),_vm._l((_vm.profileLinks),function(profileLink,index){return _c('b-dropdown-item',{key:index,attrs:{"href":_vm._f("checkValidURL")(profileLink.url),"target":profileLink.newTab ? '_blank' : ''}},[_vm._v("\n "+_vm._s(profileLink.handle)+"\n ")])}),_vm._v(" "),(!_vm.settings.hideProfileLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-profile-user","href":_vm.userProfileURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsProfile)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideChangePasswordLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-profile-change-password","href":_vm.changePasswordURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsChangePassword)+"\n ")]):_vm._e(),_vm._v(" "),_c('b-dropdown-divider'),_vm._v(" "),_c('b-dropdown-item',{staticClass:"mt-2",attrs:{"data-test-id":"dropdown-profile-logout","href":""},on:{"click":function($event){return _vm.$auth.logout()}}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLogout)+"\n ")])],2):_vm._e()],1)])};
|
|
87369
|
+
})}):_c('div',{staticClass:"d-flex align-items-center justify-content-center"},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['far', 'user']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,3591924344)},[_vm._v(" "),_c('b-dropdown-text',{staticClass:"text-muted mb-2",attrs:{"data-test-id":"dropdown-item-username"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLoggedInAs)+"\n ")]),_vm._v(" "),_c('div',[_vm._t("avatar-dropdown")],2),_vm._v(" "),_vm._l((_vm.profileLinks),function(profileLink,index){return _c('b-dropdown-item',{key:index,attrs:{"href":_vm._f("checkValidURL")(profileLink.url),"target":profileLink.newTab ? '_blank' : ''}},[_vm._v("\n "+_vm._s(profileLink.handle)+"\n ")])}),_vm._v(" "),(!_vm.settings.hideProfileLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-profile-user","href":_vm.userProfileURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsProfile)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideChangePasswordLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-profile-change-password","href":_vm.changePasswordURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsChangePassword)+"\n ")]):_vm._e(),_vm._v(" "),_c('b-dropdown-divider'),_vm._v(" "),_c('b-dropdown-item',{staticClass:"mt-2",attrs:{"data-test-id":"dropdown-profile-logout","href":""},on:{"click":function($event){return _vm.$auth.logout()}}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLogout)+"\n ")])],2):_vm._e()],1)])};
|
|
87367
87370
|
var __vue_staticRenderFns__$E = [];
|
|
87368
87371
|
|
|
87369
87372
|
/* style */
|
|
87370
87373
|
const __vue_inject_styles__$J = function (inject) {
|
|
87371
87374
|
if (!inject) return
|
|
87372
|
-
inject("data-v-
|
|
87373
|
-
,inject("data-v-
|
|
87375
|
+
inject("data-v-fb214e64_0", { source: ".icon-logo[data-v-fb214e64]{height:calc(64px / 2);background-repeat:no-repeat;background-position:center}.nav-icon[data-v-fb214e64]{width:40px;height:40px}.nav-user-icon[data-v-fb214e64]{min-width:50px;min-height:50px}.header-navigation[data-v-fb214e64]{width:100vw;min-height:64px;background-color:var(--body-bg)}.avatar[data-v-fb214e64]{border-radius:50%;background-size:cover;background-repeat:no-repeat;background-position:center}.avatar[data-v-fb214e64]:hover{opacity:.8;transition:opacity .25s ease-in-out;-moz-transition:opacity .25s ease-in-out;-webkit-transition:opacity .25s ease-in-out}.spacer[data-v-fb214e64]{min-width:0;-webkit-transition:min-width .15s ease-in-out;-moz-transition:min-width .15s ease-in-out;-o-transition:min-width .15s ease-in-out;transition:min-width .15s ease-in-out}.spacer.expanded[data-v-fb214e64]{min-width:calc(320px - 42px);-webkit-transition:min-width .2s ease-in-out;-moz-transition:min-width .2s ease-in-out;-o-transition:min-width .2s ease-in-out;transition:min-width .2s ease-in-out}.title[data-v-fb214e64]{display:flex;align-items:center;min-height:64px;padding-left:calc(3.5rem + 6px)}.title .vue-portal-target[data-v-fb214e64]{display:-webkit-box;display:-ms-flexbox;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis}.tools-wrapper[data-v-fb214e64]{flex-grow:1}.tools-wrapper .vue-portal-target[data-v-fb214e64]{display:flex;justify-content:end;align-items:center;flex-wrap:wrap}", map: undefined, media: undefined })
|
|
87376
|
+
,inject("data-v-fb214e64_1", { source: ".topbar-dropdown-menu{z-index:1100}", map: undefined, media: undefined });
|
|
87374
87377
|
|
|
87375
87378
|
};
|
|
87376
87379
|
/* scoped */
|
|
87377
|
-
const __vue_scope_id__$J = "data-v-
|
|
87380
|
+
const __vue_scope_id__$J = "data-v-fb214e64";
|
|
87378
87381
|
/* module identifier */
|
|
87379
87382
|
const __vue_module_identifier__$J = undefined;
|
|
87380
87383
|
/* functional template */
|
|
@@ -88427,13 +88430,13 @@ var script$T = {
|
|
|
88427
88430
|
const __vue_script__$T = script$T;
|
|
88428
88431
|
|
|
88429
88432
|
/* template */
|
|
88430
|
-
var __vue_render__$O = 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":"d-flex flex-column overflow-hidden bg-white","
|
|
88433
|
+
var __vue_render__$O = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-sidebar',{attrs:{"title":_vm.title,"header-class":"d-flex align-items-center justify-content-between reminder-sidebar-header px-2 py-3 border-bottom","body-class":"d-flex flex-column overflow-hidden bg-white","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)};
|
|
88431
88434
|
var __vue_staticRenderFns__$O = [];
|
|
88432
88435
|
|
|
88433
88436
|
/* style */
|
|
88434
88437
|
const __vue_inject_styles__$U = function (inject) {
|
|
88435
88438
|
if (!inject) return
|
|
88436
|
-
inject("data-v-
|
|
88439
|
+
inject("data-v-57b41904_0", { source: ".reminder-sidebar-header{height:64px;background-color:var(--gray-200)}", map: undefined, media: undefined });
|
|
88437
88440
|
|
|
88438
88441
|
};
|
|
88439
88442
|
/* scoped */
|
|
@@ -89864,6 +89867,10 @@ var script$11 = {
|
|
|
89864
89867
|
queryField: {
|
|
89865
89868
|
type: String,
|
|
89866
89869
|
default: 'query'
|
|
89870
|
+
},
|
|
89871
|
+
hidePerPageOption: {
|
|
89872
|
+
type: Boolean,
|
|
89873
|
+
default: false
|
|
89867
89874
|
}
|
|
89868
89875
|
},
|
|
89869
89876
|
|
|
@@ -89896,6 +89903,27 @@ var script$11 = {
|
|
|
89896
89903
|
return [...Object.keys(this.$slots), ...Object.keys(this.$scopedSlots)].filter(s => s !== 'header');
|
|
89897
89904
|
},
|
|
89898
89905
|
|
|
89906
|
+
perPageOptions() {
|
|
89907
|
+
const defaultText = this.pagination.limit === 0 ? this.$t('general:label.all') : this.pagination.limit.toString();
|
|
89908
|
+
return [{
|
|
89909
|
+
text: defaultText,
|
|
89910
|
+
value: this.pagination.limit
|
|
89911
|
+
}, {
|
|
89912
|
+
text: '25',
|
|
89913
|
+
value: 25
|
|
89914
|
+
}, {
|
|
89915
|
+
text: '50',
|
|
89916
|
+
value: 50
|
|
89917
|
+
}, {
|
|
89918
|
+
text: '100',
|
|
89919
|
+
value: 100
|
|
89920
|
+
}].filter((v, i) => i === 0 || v.value !== this.pagination.limit).sort((a, b) => {
|
|
89921
|
+
if (a.value === 0) return 1;
|
|
89922
|
+
if (b.value === 0) return -1;
|
|
89923
|
+
return a.value - b.value;
|
|
89924
|
+
});
|
|
89925
|
+
},
|
|
89926
|
+
|
|
89899
89927
|
disableSelectAll() {
|
|
89900
89928
|
return !this.selectableItemIDs.length;
|
|
89901
89929
|
},
|
|
@@ -89929,7 +89957,7 @@ var script$11 = {
|
|
|
89929
89957
|
},
|
|
89930
89958
|
|
|
89931
89959
|
showFooter() {
|
|
89932
|
-
return !(this.hideTotal && this.hidePagination);
|
|
89960
|
+
return !(this.hideTotal && this.hidePagination && this.hidePerPageOption);
|
|
89933
89961
|
}
|
|
89934
89962
|
|
|
89935
89963
|
},
|
|
@@ -89998,6 +90026,16 @@ var script$11 = {
|
|
|
89998
90026
|
});
|
|
89999
90027
|
},
|
|
90000
90028
|
|
|
90029
|
+
handlePerPageChange(limit) {
|
|
90030
|
+
this.$router.replace({
|
|
90031
|
+
query: { ...this.$route.query,
|
|
90032
|
+
page: 1,
|
|
90033
|
+
limit
|
|
90034
|
+
}
|
|
90035
|
+
});
|
|
90036
|
+
this.$refs.resourceList.refresh();
|
|
90037
|
+
},
|
|
90038
|
+
|
|
90001
90039
|
setDefaultValues() {
|
|
90002
90040
|
this.selected = [], this.selectableItemIDs = [];
|
|
90003
90041
|
}
|
|
@@ -90009,7 +90047,7 @@ var script$11 = {
|
|
|
90009
90047
|
const __vue_script__$11 = script$11;
|
|
90010
90048
|
|
|
90011
90049
|
/* template */
|
|
90012
|
-
var __vue_render__$X = 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":"
|
|
90050
|
+
var __vue_render__$X = 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":"p-0 border-top","header-class":_vm.cardHeaderClass},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('b-container',{staticClass:"d-flex flex-column p-0 gap-2 d-print-none",attrs:{"fluid":""}},[_c('b-row',{staticClass:"d-flex align-items-center justify-content-between gap-1",attrs:{"no-gutters":""}},[_c('div',{class:("d-flex align-items-center flex-grow-1 flex-wrap flex-fill-child gap-1 " + _vm.headerClass)},[_vm._t("header",null,{"selected":_vm.selected})],2),_vm._v(" "),(!_vm.hideSearch)?_c('div',{staticClass:"flex-fill"},[_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()]),_vm._v(" "),(_vm.$slots.toolbar)?_c('b-row',{staticClass:"gap-1"},[_vm._t("toolbar")],2):_vm._e()],1)]},proxy:true},(_vm.showFooter)?{key:"footer",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center flex-wrap justify-content-between p-2 w-100"},[_c('div',{staticClass:"d-flex gap-col-3 align-items-center flex-wrap"},[(!_vm.hideTotal)?_c('div',{staticClass:"text-nowrap ml-2"},[_vm._v("\n "+_vm._s(_vm.getPagination)+"\n ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"d-flex align-items-center ml-2 my-1 gap-1 text-nowrap"},[_c('span',[_vm._v("\n "+_vm._s(_vm.$t('general:resourceList.pagination.recordsPerPage'))+"\n ")]),_vm._v(" "),_c('b-form-select',{attrs:{"value":_vm.pagination.limit,"options":_vm.perPageOptions},on:{"change":_vm.handlePerPageChange}})],1)]),_vm._v(" "),(!_vm.hidePagination)?_c('div',{staticClass:"d-flex align-items-center justify-content-end"},[_c('b-button-group',[_c('b-button',{staticClass:"d-flex align-items-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 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\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\n "),_c('font-awesome-icon',{staticClass:"ml-1",attrs:{"icon":['fas', 'angle-right']}})],1)],1)],1):_vm._e()])]},proxy:true}:null],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){
|
|
90013
90051
|
var item = ref.item;
|
|
90014
90052
|
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){
|
|
90015
90053
|
var item = ref.item;
|
|
@@ -90019,7 +90057,7 @@ var __vue_staticRenderFns__$X = [];
|
|
|
90019
90057
|
/* style */
|
|
90020
90058
|
const __vue_inject_styles__$12 = function (inject) {
|
|
90021
90059
|
if (!inject) return
|
|
90022
|
-
inject("data-v-
|
|
90060
|
+
inject("data-v-042d20f8_0", { source: "#resource-list th{background-color:var(--gray-200)!important}#resource-list td.actions{padding-top:8px;right:0;opacity:0;position:sticky;transition:opacity .25s;width:1%}#resource-list td.actions .regular-font{font-family:Poppins-Regular!important}#resource-list tr:hover td.actions{opacity:1;background-color:var(--gray-200);z-index:1}@media (max-width:576px){.flex-fill-child>*{flex:1 1 auto!important}}", map: undefined, media: undefined });
|
|
90023
90061
|
|
|
90024
90062
|
};
|
|
90025
90063
|
/* scoped */
|