@cortezaproject/corteza-vue 2024.9.3-dev.3 → 2024.9.3-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 +36 -109
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +36 -109
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -14921,7 +14921,7 @@ var script$L = {
|
|
|
14921
14921
|
},
|
|
14922
14922
|
|
|
14923
14923
|
pRaw (k, defValue = undefined, defType = undefined) {
|
|
14924
|
-
if (this.payload && this.payload[k] && this.payload[k] !== undefined) {
|
|
14924
|
+
if (k && this.payload && this.payload[k] && this.payload[k] !== undefined) {
|
|
14925
14925
|
return this.payload[k]
|
|
14926
14926
|
}
|
|
14927
14927
|
|
|
@@ -14970,7 +14970,7 @@ var script$K = {
|
|
|
14970
14970
|
const __vue_script__$K = script$K;
|
|
14971
14971
|
|
|
14972
14972
|
/* template */
|
|
14973
|
-
var __vue_render__$J = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!!_vm.message)?_c('p',{domProps:{"innerHTML":_vm._s(_vm.message)}}):_vm._e(),_vm._v(" "),_c('
|
|
14973
|
+
var __vue_render__$J = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-flex flex-column gap-1"},[(!!_vm.message)?_c('p',{staticClass:"text-break",domProps:{"innerHTML":_vm._s(_vm.message)}}):_vm._e(),_vm._v(" "),_c('b-button',{staticClass:"ml-auto",attrs:{"variant":_vm.pVal('buttonVariant', 'primary'),"disabled":_vm.loading},on:{"click":function($event){_vm.$emit('submit', { confirmed: _vm.pRaw(undefined, true, 'Boolean') });}}},[_vm._v("\n "+_vm._s(_vm.pVal('buttonLabel', 'Ok'))+"\n ")])],1)};
|
|
14974
14974
|
var __vue_staticRenderFns__$J = [];
|
|
14975
14975
|
|
|
14976
14976
|
/* style */
|
|
@@ -15008,7 +15008,7 @@ var script$J = {
|
|
|
15008
15008
|
const __vue_script__$J = script$J;
|
|
15009
15009
|
|
|
15010
15010
|
/* template */
|
|
15011
|
-
var __vue_render__$I = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!!_vm.message)?_c('p',{domProps:{"innerHTML":_vm._s(_vm.message)}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"d-flex align-items-
|
|
15011
|
+
var __vue_render__$I = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-flex flex-column gap-1"},[(!!_vm.message)?_c('p',{staticClass:"text-break",domProps:{"innerHTML":_vm._s(_vm.message)}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"d-flex flex-wrap align-items-center gap-2"},[_c('b-button',{staticClass:"flex-grow-1",attrs:{"variant":_vm.pVal('confirmButtonVariant', 'primary'),"disabled":_vm.loading},on:{"click":function($event){_vm.$emit('submit', { value: _vm.pRaw('confirmButtonValue', true, 'Boolean') });}}},[_vm._v("\n "+_vm._s(_vm.pVal('confirmButtonLabel', 'Yes'))+"\n ")]),_vm._v(" "),_c('b-button',{staticClass:"flex-grow-1",attrs:{"disabled":_vm.loading,"variant":_vm.pVal('rejectButtonVariant', 'light')},on:{"click":function($event){_vm.$emit('submit', { value: _vm.pRaw('rejectButtonValue', false, 'Boolean') });}}},[_vm._v("\n "+_vm._s(_vm.pVal('rejectButtonLabel', 'No'))+"\n ")])],1)])};
|
|
15012
15012
|
var __vue_staticRenderFns__$I = [];
|
|
15013
15013
|
|
|
15014
15014
|
/* style */
|
|
@@ -15121,6 +15121,7 @@ var script$H = {
|
|
|
15121
15121
|
CInputSelect: __vue_component__$19,
|
|
15122
15122
|
CPagination: __vue_component__$J,
|
|
15123
15123
|
},
|
|
15124
|
+
|
|
15124
15125
|
extends: __vue_component__$M,
|
|
15125
15126
|
|
|
15126
15127
|
data () {
|
|
@@ -15320,10 +15321,6 @@ var script$H = {
|
|
|
15320
15321
|
this.filter.pageCursor = next ? this.filter.nextPage : this.filter.prevPage;
|
|
15321
15322
|
},
|
|
15322
15323
|
|
|
15323
|
-
getOptionKey ({ recordID }) {
|
|
15324
|
-
return recordID
|
|
15325
|
-
},
|
|
15326
|
-
|
|
15327
15324
|
setDefaultValues () {
|
|
15328
15325
|
this.processing = false;
|
|
15329
15326
|
this.query = '';
|
|
@@ -15340,7 +15337,7 @@ var script$H = {
|
|
|
15340
15337
|
const __vue_script__$H = script$H;
|
|
15341
15338
|
|
|
15342
15339
|
/* template */
|
|
15343
|
-
var __vue_render__$G = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!!_vm.message)?_c('p',{domProps:{"innerHTML":_vm._s(_vm.message)}}):_vm._e(),_vm._v(" "),_c('
|
|
15340
|
+
var __vue_render__$G = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-flex flex-column gap-1"},[(!!_vm.message)?_c('p',{staticClass:"text-break",domProps:{"innerHTML":_vm._s(_vm.message)}}):_vm._e(),_vm._v(" "),_c('b-form-group',{attrs:{"label":_vm.pVal('label', ''),"label-class":"text-primary"}},[_c('c-input-select',{staticClass:"w-100",attrs:{"options":_vm.options,"get-option-key":function (r) { return r.recordID; },"loading":_vm.processing,"append-to-body":"","option-value":"recordID","placeholder":_vm.pVal('placeholder', 'Select a record'),"filterable":false,"reduce":function (r) { return r.recordID; }},on:{"search":_vm.search},scopedSlots:_vm._u([{key:"list-footer",fn:function(){return [(_vm.showPagination)?_c('c-pagination',{attrs:{"has-prev-page":_vm.hasPrevPage,"has-next-page":_vm.hasNextPage},on:{"prev":function($event){return _vm.goToPage(false)},"next":function($event){return _vm.goToPage(true)}}}):_vm._e()]},proxy:true}]),model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}})],1),_vm._v(" "),_c('b-button',{staticClass:"ml-auto",attrs:{"disabled":_vm.loading,"variant":"primary"},on:{"click":function($event){_vm.$emit('submit', { value: _vm.encodeValue() });}}},[_vm._v("\n "+_vm._s(_vm.pVal('buttonLabel', 'Submit'))+"\n ")])],1)};
|
|
15344
15341
|
var __vue_staticRenderFns__$G = [];
|
|
15345
15342
|
|
|
15346
15343
|
/* style */
|
|
@@ -15415,7 +15412,7 @@ var script$G = {
|
|
|
15415
15412
|
const __vue_script__$G = script$G;
|
|
15416
15413
|
|
|
15417
15414
|
/* template */
|
|
15418
|
-
var __vue_render__$F = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!!_vm.message)?_c('p',{domProps:{"innerHTML":_vm._s(_vm.message)}}):_vm._e(),_vm._v(" "),_c('b-form-group',{attrs:{"label":_vm.label,"label-class":"text-primary"}},[_c('b-input',{attrs:{"type":_vm.type,"disabled":_vm.loading},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}})],1),_vm._v(" "),_c('b-button',{attrs:{"disabled":_vm.loading,"variant":"primary"},on:{"click":function($event){return _vm.$emit('submit', { value: { '@value': _vm.value, '@type': 'String' }})}}},[_vm._v("\n "+_vm._s(_vm.pVal('buttonLabel', 'Submit'))+"\n ")])],1)};
|
|
15415
|
+
var __vue_render__$F = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-flex flex-column gap-1"},[(!!_vm.message)?_c('p',{staticClass:"text-break",domProps:{"innerHTML":_vm._s(_vm.message)}}):_vm._e(),_vm._v(" "),_c('b-form-group',{attrs:{"label":_vm.label,"label-class":"text-primary"}},[_c('b-input',{attrs:{"type":_vm.type,"disabled":_vm.loading},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}})],1),_vm._v(" "),_c('b-button',{staticClass:"ml-auto",attrs:{"disabled":_vm.loading,"variant":"primary"},on:{"click":function($event){return _vm.$emit('submit', { value: { '@value': _vm.value, '@type': 'String' }})}}},[_vm._v("\n "+_vm._s(_vm.pVal('buttonLabel', 'Submit'))+"\n ")])],1)};
|
|
15419
15416
|
var __vue_staticRenderFns__$F = [];
|
|
15420
15417
|
|
|
15421
15418
|
/* style */
|
|
@@ -15495,6 +15492,11 @@ const validTypes = [
|
|
|
15495
15492
|
|
|
15496
15493
|
var script$E = {
|
|
15497
15494
|
name: 'CPromptOptions',
|
|
15495
|
+
|
|
15496
|
+
components: {
|
|
15497
|
+
CInputSelect: __vue_component__$19,
|
|
15498
|
+
},
|
|
15499
|
+
|
|
15498
15500
|
extends: __vue_component__$M,
|
|
15499
15501
|
|
|
15500
15502
|
data () {
|
|
@@ -15504,9 +15506,10 @@ var script$E = {
|
|
|
15504
15506
|
},
|
|
15505
15507
|
|
|
15506
15508
|
computed: {
|
|
15507
|
-
|
|
15509
|
+
itemOptions () {
|
|
15508
15510
|
const out = [];
|
|
15509
15511
|
const options = this.pVal('options', {});
|
|
15512
|
+
|
|
15510
15513
|
for (const value in options) {
|
|
15511
15514
|
out.push({ value, text: options[value] });
|
|
15512
15515
|
}
|
|
@@ -15514,7 +15517,7 @@ var script$E = {
|
|
|
15514
15517
|
return out
|
|
15515
15518
|
},
|
|
15516
15519
|
|
|
15517
|
-
|
|
15520
|
+
inputType () {
|
|
15518
15521
|
const t = this.pVal('type', 'text');
|
|
15519
15522
|
if (validTypes.indexOf(t) === -1) {
|
|
15520
15523
|
return 'select'
|
|
@@ -15560,7 +15563,7 @@ var script$E = {
|
|
|
15560
15563
|
const __vue_script__$E = script$E;
|
|
15561
15564
|
|
|
15562
15565
|
/* template */
|
|
15563
|
-
var __vue_render__$D = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!!_vm.message)?_c('p',{domProps:{"innerHTML":_vm._s(_vm.message)}}):_vm._e(),_vm._v(" "),_c('b-form-group',{attrs:{"label":_vm.pVal('label', 'Input'),"label-class":"text-primary"}},[(_vm.
|
|
15566
|
+
var __vue_render__$D = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-flex flex-column gap-1"},[(!!_vm.message)?_c('p',{staticClass:"text-break",domProps:{"innerHTML":_vm._s(_vm.message)}}):_vm._e(),_vm._v(" "),_c('b-form-group',{attrs:{"label":_vm.pVal('label', 'Input'),"label-class":"text-primary"}},[(_vm.inputType === 'select')?_c('c-input-select',{staticClass:"w-100",attrs:{"options":_vm.itemOptions,"disabled":_vm.loading,"multiple":_vm.multiple,"append-to-body":"","label":"text","get-option-key":function (r) { return r.value; },"placeholder":_vm.pVal('placeholder', 'Select an option'),"reduce":function (r) { return r.value; }},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}}):(_vm.inputType === 'radio')?_c('b-form-radio-group',{attrs:{"options":_vm.itemOptions,"disabled":_vm.loading},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}}):_vm._e()],1),_vm._v(" "),_c('b-button',{staticClass:"ml-auto",attrs:{"disabled":_vm.loading,"variant":"primary"},on:{"click":function($event){_vm.$emit('submit', { value: _vm.encodeValue() });}}},[_vm._v("\n "+_vm._s(_vm.pVal('buttonLabel', 'Submit'))+"\n ")])],1)};
|
|
15564
15567
|
var __vue_staticRenderFns__$D = [];
|
|
15565
15568
|
|
|
15566
15569
|
/* style */
|
|
@@ -16274,7 +16277,6 @@ const prompts = Object.freeze([
|
|
|
16274
16277
|
{ name: 'message', types: ['String'], required: true },
|
|
16275
16278
|
{ name: 'buttonLabel', types: ['String'] },
|
|
16276
16279
|
{ name: 'buttonVariant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants }, default: 'primary' } } } },
|
|
16277
|
-
{ name: 'buttonValue', types: ['Any'] },
|
|
16278
16280
|
],
|
|
16279
16281
|
},
|
|
16280
16282
|
{
|
|
@@ -16307,6 +16309,9 @@ const prompts = Object.freeze([
|
|
|
16307
16309
|
{ name: 'labelField', types: ['Handle'], required: true },
|
|
16308
16310
|
{ name: 'queryFields', types: ['Array'] },
|
|
16309
16311
|
{ name: 'prefilter', types: ['String'] },
|
|
16312
|
+
{ name: 'label', types: ['String'] },
|
|
16313
|
+
{ name: 'placeholder', types: ['String'] },
|
|
16314
|
+
{ name: 'buttonLabel', types: ['String'] },
|
|
16310
16315
|
],
|
|
16311
16316
|
results: [
|
|
16312
16317
|
{ name: 'value', types: ['ComposeRecord'] },
|
|
@@ -16345,6 +16350,7 @@ const prompts = Object.freeze([
|
|
|
16345
16350
|
},
|
|
16346
16351
|
},
|
|
16347
16352
|
{ name: 'inputValue', types: ['String'] },
|
|
16353
|
+
{ name: 'buttonLabel', types: ['String'] },
|
|
16348
16354
|
],
|
|
16349
16355
|
results: [
|
|
16350
16356
|
{ name: 'value', types: ['Any'] },
|
|
@@ -16378,8 +16384,10 @@ const prompts = Object.freeze([
|
|
|
16378
16384
|
},
|
|
16379
16385
|
},
|
|
16380
16386
|
{ name: 'value', types: ['String', 'Array'] },
|
|
16387
|
+
{ name: 'placeholder', types: ['String'] },
|
|
16381
16388
|
{ name: 'options', types: ['KV'] },
|
|
16382
16389
|
{ name: 'multiselect', types: ['Boolean'] },
|
|
16390
|
+
{ name: 'buttonLabel', types: ['String'] },
|
|
16383
16391
|
],
|
|
16384
16392
|
results: [
|
|
16385
16393
|
{ name: 'value', types: ['Any'] },
|
|
@@ -16769,7 +16777,7 @@ var script$y = {
|
|
|
16769
16777
|
},
|
|
16770
16778
|
|
|
16771
16779
|
props: {
|
|
16772
|
-
|
|
16780
|
+
sidebarExpanded: {
|
|
16773
16781
|
type: Boolean,
|
|
16774
16782
|
required: true,
|
|
16775
16783
|
default: false,
|
|
@@ -16896,7 +16904,7 @@ var script$y = {
|
|
|
16896
16904
|
const __vue_script__$y = script$y;
|
|
16897
16905
|
|
|
16898
16906
|
/* template */
|
|
16899
|
-
var __vue_render__$x = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"header-navigation d-flex flex-wrap align-items-center py-2 px-3 gap-2"},[_c('div',{staticClass:"sidebar-spacer",class:{ 'expanded': _vm.
|
|
16907
|
+
var __vue_render__$x = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"header-navigation d-flex flex-wrap align-items-center py-2 px-3 gap-2"},[_c('div',{staticClass:"sidebar-spacer",class:{ 'expanded': _vm.sidebarExpanded }}),_vm._v(" "),_c('h2',{staticClass:"title mb-0"},[_vm._t("title")],2),_vm._v(" "),_c('div',{staticClass:"tools-wrapper ml-auto"},[_vm._t("tools")],2),_vm._v(" "),_c('div',{staticClass:"d-flex align-items-center ml-auto gap-1"},[(!_vm.hideAppSelector && !_vm.settings.hideAppSelector)?_c('b-button',{staticClass:"text-dark border-0 px-1",attrs:{"data-test-id":"app-selector","variant":"outline-extra-light","href":_vm.appSelectorURL}},[_vm._v("\n "+_vm._s(_vm.labels.appMenu)+"\n ")]):_vm._e(),_vm._v(" "),_vm._t("right-tools"),_vm._v(" "),(!_vm.settings.hideNotifications)?_c('c-notification-button'):_vm._e(),_vm._v(" "),(!_vm.settings.hideHelp)?_c('b-dropdown',{staticClass:"nav-icon text-sm-nowrap",attrs:{"data-test-id":"dropdown-helper","size":"lg","variant":"outline-extra-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 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","variant":_vm.avatarExists ? 'link' : 'outline-extra-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 mt-2","no-caret":""},on:{"hide":_vm.preventDropdownClose},scopedSlots:_vm._u([{key:"button-content",fn:function(){return [(_vm.avatarExists)?_c('div',{staticClass:"avatar d-flex h-100",style:({
|
|
16900
16908
|
'background-image': _vm.avatarExists ? ("url(" + _vm.profileAvatarUrl + ")") : 'none',
|
|
16901
16909
|
})}):_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,1615905304)},[_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(" "),(!_vm.settings.hideThemeSelector)?_c('b-dropdown',{staticClass:"d-flex",attrs:{"id":"theme-dropleft","variant":"link","text":"Theme","dropleft":"","no-caret":"","toggle-class":"text-decoration-none text-left dropdown-item rounded-0"},on:{"show":function($event){_vm.isThemeDropdownVisible = true;},"hide":function($event){_vm.isThemeDropdownVisible = false;},"click":function($event){$event.preventDefault();$event.stopPropagation();}}},_vm._l((_vm.themes),function(theme){return _c('b-dropdown-item-button',{key:theme.id,attrs:{"disabled":_vm.currentTheme === theme.id},on:{"click":function($event){return _vm.saveThemeMode(theme.id)}}},[_vm._v("\n "+_vm._s(theme.label)+"\n ")])}),1):_vm._e(),_vm._v(" "),_c('b-dropdown-divider'),_vm._v(" "),_c('b-dropdown-item-button',{staticClass:"mt-2",attrs:{"data-test-id":"dropdown-profile-logout"},on:{"click":function($event){return _vm.$auth.logout()}}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLogout)+"\n ")])],2):_vm._e()],2)])};
|
|
16902
16910
|
var __vue_staticRenderFns__$x = [];
|
|
@@ -16904,12 +16912,12 @@ var __vue_staticRenderFns__$x = [];
|
|
|
16904
16912
|
/* style */
|
|
16905
16913
|
const __vue_inject_styles__$z = function (inject) {
|
|
16906
16914
|
if (!inject) return
|
|
16907
|
-
inject("data-v-
|
|
16908
|
-
,inject("data-v-
|
|
16915
|
+
inject("data-v-2ac14c0d_0", { source: ".nav-icon[data-v-2ac14c0d]{width:calc(var(--topbar-height) - 24px);height:calc(var(--topbar-height) - 24px)}.nav-user-icon[data-v-2ac14c0d]{min-width:calc(var(--topbar-height) - 16px);min-height:calc(var(--topbar-height) - 16px)}.header-navigation[data-v-2ac14c0d]{width:100vw;min-height:var(--topbar-height);background-color:var(--topbar-bg)}.header-navigation .sidebar-spacer[data-v-2ac14c0d]{display:none;min-width:calc(var(--sidebar-width) - 60px)}.header-navigation .sidebar-spacer.expanded[data-v-2ac14c0d]{display:block}.avatar[data-v-2ac14c0d]{border-radius:50%;background-size:cover;background-repeat:no-repeat;background-position:center}.avatar[data-v-2ac14c0d]:hover{opacity:.8;transition:opacity .25s ease-in-out;-moz-transition:opacity .25s ease-in-out;-webkit-transition:opacity .25s ease-in-out}.title[data-v-2ac14c0d]{display:flex;align-items:center;min-height:calc(var(--topbar-height) - 16px);padding-left:47px}.title>*[data-v-2ac14c0d]{padding:.25rem 0;display:-webkit-box;display:-ms-flexbox;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;text-overflow:ellipsis}.tools-wrapper[data-v-2ac14c0d]{flex-grow:1}.tools-wrapper>*[data-v-2ac14c0d]{display:flex;justify-content:end;align-items:center;flex-wrap:wrap}", map: undefined, media: undefined })
|
|
16916
|
+
,inject("data-v-2ac14c0d_1", { source: ".topbar-dropdown-menu{z-index:1100}#theme-dropleft .btn{font-family:var(--font-regular)}", map: undefined, media: undefined });
|
|
16909
16917
|
|
|
16910
16918
|
};
|
|
16911
16919
|
/* scoped */
|
|
16912
|
-
const __vue_scope_id__$z = "data-v-
|
|
16920
|
+
const __vue_scope_id__$z = "data-v-2ac14c0d";
|
|
16913
16921
|
/* module identifier */
|
|
16914
16922
|
const __vue_module_identifier__$z = undefined;
|
|
16915
16923
|
/* functional template */
|
|
@@ -17043,10 +17051,6 @@ var __vue_staticRenderFns__$x = [];
|
|
|
17043
17051
|
//
|
|
17044
17052
|
//
|
|
17045
17053
|
//
|
|
17046
|
-
//
|
|
17047
|
-
//
|
|
17048
|
-
//
|
|
17049
|
-
//
|
|
17050
17054
|
|
|
17051
17055
|
|
|
17052
17056
|
var script$x = {
|
|
@@ -17056,11 +17060,6 @@ var script$x = {
|
|
|
17056
17060
|
default: false,
|
|
17057
17061
|
},
|
|
17058
17062
|
|
|
17059
|
-
pinned: {
|
|
17060
|
-
type: Boolean,
|
|
17061
|
-
default: false,
|
|
17062
|
-
},
|
|
17063
|
-
|
|
17064
17063
|
expandOnClick: {
|
|
17065
17064
|
type: Boolean,
|
|
17066
17065
|
default: false,
|
|
@@ -17089,7 +17088,6 @@ var script$x = {
|
|
|
17089
17088
|
|
|
17090
17089
|
data () {
|
|
17091
17090
|
return {
|
|
17092
|
-
sidebarSettings: {},
|
|
17093
17091
|
isMobile: false,
|
|
17094
17092
|
}
|
|
17095
17093
|
},
|
|
@@ -17102,20 +17100,6 @@ var script$x = {
|
|
|
17102
17100
|
|
|
17103
17101
|
set (expanded) {
|
|
17104
17102
|
this.$emit('update:expanded', expanded);
|
|
17105
|
-
|
|
17106
|
-
if (!expanded) {
|
|
17107
|
-
this.isPinned = false;
|
|
17108
|
-
}
|
|
17109
|
-
},
|
|
17110
|
-
},
|
|
17111
|
-
|
|
17112
|
-
isPinned: {
|
|
17113
|
-
get () {
|
|
17114
|
-
return this.pinned
|
|
17115
|
-
},
|
|
17116
|
-
|
|
17117
|
-
set (pinned) {
|
|
17118
|
-
this.$emit('update:pinned', pinned);
|
|
17119
17103
|
},
|
|
17120
17104
|
},
|
|
17121
17105
|
},
|
|
@@ -17134,8 +17118,9 @@ var script$x = {
|
|
|
17134
17118
|
},
|
|
17135
17119
|
},
|
|
17136
17120
|
|
|
17137
|
-
|
|
17138
|
-
this.checkSidebar();
|
|
17121
|
+
mounted () {
|
|
17122
|
+
this.checkSidebar(true);
|
|
17123
|
+
this.checkIfMobile();
|
|
17139
17124
|
|
|
17140
17125
|
this.$root.$on('close-sidebar', this.closeSidebar);
|
|
17141
17126
|
window.addEventListener('resize', this.checkIfMobile);
|
|
@@ -17148,81 +17133,23 @@ var script$x = {
|
|
|
17148
17133
|
|
|
17149
17134
|
methods: {
|
|
17150
17135
|
checkIfMobile: throttle$1(function () {
|
|
17151
|
-
this.isMobile = window.innerWidth < 1024
|
|
17152
|
-
|
|
17153
|
-
if (this.isMobile) {
|
|
17154
|
-
this.closeSidebar();
|
|
17155
|
-
}
|
|
17136
|
+
this.isMobile = window.innerWidth < 1024;
|
|
17156
17137
|
}, 500),
|
|
17157
17138
|
|
|
17158
|
-
checkSidebar () {
|
|
17139
|
+
checkSidebar (initial = false) {
|
|
17159
17140
|
// If sidebar should be disabled on route, close and unpin when navigating to route
|
|
17160
17141
|
if (this.disabledRoutes.includes(this.$route.name)) {
|
|
17161
|
-
this.isPinned = false;
|
|
17162
17142
|
this.isExpanded = false;
|
|
17163
|
-
} else if (this.
|
|
17164
|
-
this.defaultSidebarAppearance();
|
|
17165
|
-
}
|
|
17166
|
-
|
|
17167
|
-
this.checkIfMobile();
|
|
17168
|
-
},
|
|
17169
|
-
|
|
17170
|
-
onHover: throttle$1(function (expand) {
|
|
17171
|
-
if (!expand && !this.pinned && this.expandOnClick) {
|
|
17172
|
-
setTimeout(() => {
|
|
17173
|
-
this.isExpanded = expand;
|
|
17174
|
-
}, expand ? 0 : 100);
|
|
17175
|
-
}
|
|
17176
|
-
}, 300),
|
|
17177
|
-
|
|
17178
|
-
togglePin () {
|
|
17179
|
-
if (this.expandOnClick && !this.isExpanded) {
|
|
17143
|
+
} else if (!this.isMobile && initial) {
|
|
17180
17144
|
this.isExpanded = true;
|
|
17181
17145
|
}
|
|
17182
|
-
|
|
17183
|
-
if (!this.isMobile) {
|
|
17184
|
-
this.isPinned = !this.isPinned;
|
|
17185
|
-
this.saveSettings(this.isPinned);
|
|
17186
|
-
}
|
|
17187
|
-
},
|
|
17188
|
-
|
|
17189
|
-
defaultSidebarAppearance () {
|
|
17190
|
-
const localStorageSettings = JSON.parse(window.localStorage.getItem('sidebarSettings'));
|
|
17191
|
-
|
|
17192
|
-
if (localStorageSettings) {
|
|
17193
|
-
this.sidebarSettings = localStorageSettings;
|
|
17194
|
-
}
|
|
17195
|
-
|
|
17196
|
-
const appSidebar = (localStorageSettings || {})[this.$root.$options.name];
|
|
17197
|
-
|
|
17198
|
-
if (!this.isMobile) {
|
|
17199
|
-
if (appSidebar) {
|
|
17200
|
-
this.isExpanded = appSidebar.pinned;
|
|
17201
|
-
this.isPinned = appSidebar.pinned;
|
|
17202
|
-
} else {
|
|
17203
|
-
this.openSidebar();
|
|
17204
|
-
}
|
|
17205
|
-
} else {
|
|
17206
|
-
this.closeSidebar();
|
|
17207
|
-
}
|
|
17208
|
-
},
|
|
17209
|
-
|
|
17210
|
-
saveSettings (pinned) {
|
|
17211
|
-
if (this.sidebarSettings[this.$root.$options.name]) {
|
|
17212
|
-
this.sidebarSettings[this.$root.$options.name].pinned = pinned;
|
|
17213
|
-
} else {
|
|
17214
|
-
this.sidebarSettings[this.$root.$options.name] = { pinned };
|
|
17215
|
-
}
|
|
17216
|
-
window.localStorage.setItem('sidebarSettings', JSON.stringify(this.sidebarSettings));
|
|
17217
17146
|
},
|
|
17218
17147
|
|
|
17219
17148
|
openSidebar () {
|
|
17220
|
-
this.isPinned = true;
|
|
17221
17149
|
this.isExpanded = true;
|
|
17222
17150
|
},
|
|
17223
17151
|
|
|
17224
17152
|
closeSidebar () {
|
|
17225
|
-
this.isPinned = false;
|
|
17226
17153
|
this.isExpanded = false;
|
|
17227
17154
|
},
|
|
17228
17155
|
},
|
|
@@ -17232,18 +17159,18 @@ var script$x = {
|
|
|
17232
17159
|
const __vue_script__$x = script$x;
|
|
17233
17160
|
|
|
17234
17161
|
/* template */
|
|
17235
|
-
var __vue_render__$w = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('
|
|
17162
|
+
var __vue_render__$w = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-sidebar',{attrs:{"data-test-id":"sidebar","sidebar-class":("sidebar " + (_vm.isExpanded ? 'expanded' : '')),"header-class":("d-block sidebar-header " + (_vm.isExpanded ? 'expanded border-bottom p-2' : '')),"body-class":("" + (_vm.isExpanded ? 'px-3' : '')),"footer-class":("rounded-right " + (_vm.isExpanded ? 'px-2' : '')),"no-header":!_vm.isExpanded,"backdrop":_vm.isMobile,"backdrop-variant":"white","shadow":_vm.isExpanded && 'sm',"no-slide":"","right":_vm.right,"no-close-on-route-change":"","no-close-on-esc":""},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center justify-content-between pl-2",staticStyle:{"height":"47px"}},[_c('img',{staticClass:"logo w-auto border-0",attrs:{"data-test-id":"img-main-logo","src":_vm.logo}}),_vm._v(" "),_c('b-button',{staticClass:"d-flex align-items-center justify-content-center p-2 border-0 text-secondary",attrs:{"variant":"outline-light"},on:{"click":function($event){return _vm.closeSidebar()}}},[_c('font-awesome-icon',{staticClass:"h6 mb-0",attrs:{"icon":['fas', 'times']}})],1)],1),_vm._v(" "),(_vm.isExpanded)?_c('div',{staticClass:"px-2"},[_vm._t("header-expanded")],2):_vm._e(),_vm._v(" "),(!_vm.isExpanded)?_c('hr',{staticClass:"my-2"}):_vm._e()]},proxy:true},{key:"footer",fn:function(){return [(_vm.isExpanded)?_vm._t("footer-expanded"):_vm._e()]},proxy:true}],null,true),model:{value:(_vm.isExpanded),callback:function ($$v) {_vm.isExpanded=$$v;},expression:"isExpanded"}},[_vm._v(" "),(_vm.isExpanded)?_vm._t("body-expanded"):_vm._e()],2),_vm._v(" "),_c('div',{staticClass:"d-flex align-items-center justify-content-center tab position-absolute p-2"},[(_vm.disabledRoutes.includes(_vm.$route.name))?_c('div',{staticClass:"d-flex align-items-center border-0 p-2"},[_c('img',{staticClass:"icon w-auto border-0",attrs:{"src":_vm.icon}})]):(_vm.expandOnClick)?_c('b-button',{staticClass:"d-flex align-items-center border-0 text-primary",attrs:{"data-test-id":"button-sidebar-open","variant":"outline-extra-light","size":"lg"},on:{"click":function($event){return _vm.openSidebar()}}},[_c('font-awesome-icon',{staticClass:"h4 mb-0",attrs:{"icon":['fas', 'bars']}})],1):_c('b-button',{staticClass:"d-flex align-items-center p-2 border-0 text-primary",attrs:{"data-test-id":"button-home","variant":"outline-extra-light","size":"lg","to":{ name: 'root' }}},[_c('font-awesome-icon',{staticClass:"h4 mb-0",attrs:{"icon":['fas', 'home']}})],1)],1)],1)};
|
|
17236
17163
|
var __vue_staticRenderFns__$w = [];
|
|
17237
17164
|
|
|
17238
17165
|
/* style */
|
|
17239
17166
|
const __vue_inject_styles__$y = function (inject) {
|
|
17240
17167
|
if (!inject) return
|
|
17241
|
-
inject("data-v-
|
|
17242
|
-
,inject("data-v-
|
|
17168
|
+
inject("data-v-c2dbe544_0", { source: ".tab[data-v-c2dbe544]{z-index:1021;top:0;height:64px;width:66px}.icon[data-v-c2dbe544]{max-height:40px;max-width:40px}.logo[data-v-c2dbe544]{max-height:40px}.sidebar-header[data-v-c2dbe544]{height:64px}", map: undefined, media: undefined })
|
|
17169
|
+
,inject("data-v-c2dbe544_1", { source: ".b-sidebar{background-color:var(--white)!important}.b-sidebar-backdrop{opacity:.75!important}.sidebar{display:flex!important;left:calc(-320px)!important;transition:left .2s cubic-bezier(.4,0,.2,1)}.sidebar.expanded{left:0!important;transition:left .2s cubic-bezier(.4,0,.2,1)}[dir=rtl] .sidebar{right:calc(-320px)!important;left:auto!important;transition:right .2s cubic-bezier(.4,0,.2,1)}[dir=rtl] .sidebar.expanded{right:0!important;transition:right .2s cubic-bezier(.4,0,.2,1)}", map: undefined, media: undefined });
|
|
17243
17170
|
|
|
17244
17171
|
};
|
|
17245
17172
|
/* scoped */
|
|
17246
|
-
const __vue_scope_id__$y = "data-v-
|
|
17173
|
+
const __vue_scope_id__$y = "data-v-c2dbe544";
|
|
17247
17174
|
/* module identifier */
|
|
17248
17175
|
const __vue_module_identifier__$y = undefined;
|
|
17249
17176
|
/* functional template */
|