@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.js
CHANGED
|
@@ -14943,7 +14943,7 @@ var script$L = {
|
|
|
14943
14943
|
},
|
|
14944
14944
|
|
|
14945
14945
|
pRaw (k, defValue = undefined, defType = undefined) {
|
|
14946
|
-
if (this.payload && this.payload[k] && this.payload[k] !== undefined) {
|
|
14946
|
+
if (k && this.payload && this.payload[k] && this.payload[k] !== undefined) {
|
|
14947
14947
|
return this.payload[k]
|
|
14948
14948
|
}
|
|
14949
14949
|
|
|
@@ -14992,7 +14992,7 @@ var script$K = {
|
|
|
14992
14992
|
const __vue_script__$K = script$K;
|
|
14993
14993
|
|
|
14994
14994
|
/* template */
|
|
14995
|
-
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('
|
|
14995
|
+
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)};
|
|
14996
14996
|
var __vue_staticRenderFns__$J = [];
|
|
14997
14997
|
|
|
14998
14998
|
/* style */
|
|
@@ -15030,7 +15030,7 @@ var script$J = {
|
|
|
15030
15030
|
const __vue_script__$J = script$J;
|
|
15031
15031
|
|
|
15032
15032
|
/* template */
|
|
15033
|
-
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-
|
|
15033
|
+
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)])};
|
|
15034
15034
|
var __vue_staticRenderFns__$I = [];
|
|
15035
15035
|
|
|
15036
15036
|
/* style */
|
|
@@ -15143,6 +15143,7 @@ var script$H = {
|
|
|
15143
15143
|
CInputSelect: __vue_component__$19,
|
|
15144
15144
|
CPagination: __vue_component__$J,
|
|
15145
15145
|
},
|
|
15146
|
+
|
|
15146
15147
|
extends: __vue_component__$M,
|
|
15147
15148
|
|
|
15148
15149
|
data () {
|
|
@@ -15342,10 +15343,6 @@ var script$H = {
|
|
|
15342
15343
|
this.filter.pageCursor = next ? this.filter.nextPage : this.filter.prevPage;
|
|
15343
15344
|
},
|
|
15344
15345
|
|
|
15345
|
-
getOptionKey ({ recordID }) {
|
|
15346
|
-
return recordID
|
|
15347
|
-
},
|
|
15348
|
-
|
|
15349
15346
|
setDefaultValues () {
|
|
15350
15347
|
this.processing = false;
|
|
15351
15348
|
this.query = '';
|
|
@@ -15362,7 +15359,7 @@ var script$H = {
|
|
|
15362
15359
|
const __vue_script__$H = script$H;
|
|
15363
15360
|
|
|
15364
15361
|
/* template */
|
|
15365
|
-
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('
|
|
15362
|
+
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)};
|
|
15366
15363
|
var __vue_staticRenderFns__$G = [];
|
|
15367
15364
|
|
|
15368
15365
|
/* style */
|
|
@@ -15437,7 +15434,7 @@ var script$G = {
|
|
|
15437
15434
|
const __vue_script__$G = script$G;
|
|
15438
15435
|
|
|
15439
15436
|
/* template */
|
|
15440
|
-
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)};
|
|
15437
|
+
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)};
|
|
15441
15438
|
var __vue_staticRenderFns__$F = [];
|
|
15442
15439
|
|
|
15443
15440
|
/* style */
|
|
@@ -15517,6 +15514,11 @@ const validTypes = [
|
|
|
15517
15514
|
|
|
15518
15515
|
var script$E = {
|
|
15519
15516
|
name: 'CPromptOptions',
|
|
15517
|
+
|
|
15518
|
+
components: {
|
|
15519
|
+
CInputSelect: __vue_component__$19,
|
|
15520
|
+
},
|
|
15521
|
+
|
|
15520
15522
|
extends: __vue_component__$M,
|
|
15521
15523
|
|
|
15522
15524
|
data () {
|
|
@@ -15526,9 +15528,10 @@ var script$E = {
|
|
|
15526
15528
|
},
|
|
15527
15529
|
|
|
15528
15530
|
computed: {
|
|
15529
|
-
|
|
15531
|
+
itemOptions () {
|
|
15530
15532
|
const out = [];
|
|
15531
15533
|
const options = this.pVal('options', {});
|
|
15534
|
+
|
|
15532
15535
|
for (const value in options) {
|
|
15533
15536
|
out.push({ value, text: options[value] });
|
|
15534
15537
|
}
|
|
@@ -15536,7 +15539,7 @@ var script$E = {
|
|
|
15536
15539
|
return out
|
|
15537
15540
|
},
|
|
15538
15541
|
|
|
15539
|
-
|
|
15542
|
+
inputType () {
|
|
15540
15543
|
const t = this.pVal('type', 'text');
|
|
15541
15544
|
if (validTypes.indexOf(t) === -1) {
|
|
15542
15545
|
return 'select'
|
|
@@ -15582,7 +15585,7 @@ var script$E = {
|
|
|
15582
15585
|
const __vue_script__$E = script$E;
|
|
15583
15586
|
|
|
15584
15587
|
/* template */
|
|
15585
|
-
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.
|
|
15588
|
+
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)};
|
|
15586
15589
|
var __vue_staticRenderFns__$D = [];
|
|
15587
15590
|
|
|
15588
15591
|
/* style */
|
|
@@ -16296,7 +16299,6 @@ const prompts = Object.freeze([
|
|
|
16296
16299
|
{ name: 'message', types: ['String'], required: true },
|
|
16297
16300
|
{ name: 'buttonLabel', types: ['String'] },
|
|
16298
16301
|
{ name: 'buttonVariant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants }, default: 'primary' } } } },
|
|
16299
|
-
{ name: 'buttonValue', types: ['Any'] },
|
|
16300
16302
|
],
|
|
16301
16303
|
},
|
|
16302
16304
|
{
|
|
@@ -16329,6 +16331,9 @@ const prompts = Object.freeze([
|
|
|
16329
16331
|
{ name: 'labelField', types: ['Handle'], required: true },
|
|
16330
16332
|
{ name: 'queryFields', types: ['Array'] },
|
|
16331
16333
|
{ name: 'prefilter', types: ['String'] },
|
|
16334
|
+
{ name: 'label', types: ['String'] },
|
|
16335
|
+
{ name: 'placeholder', types: ['String'] },
|
|
16336
|
+
{ name: 'buttonLabel', types: ['String'] },
|
|
16332
16337
|
],
|
|
16333
16338
|
results: [
|
|
16334
16339
|
{ name: 'value', types: ['ComposeRecord'] },
|
|
@@ -16367,6 +16372,7 @@ const prompts = Object.freeze([
|
|
|
16367
16372
|
},
|
|
16368
16373
|
},
|
|
16369
16374
|
{ name: 'inputValue', types: ['String'] },
|
|
16375
|
+
{ name: 'buttonLabel', types: ['String'] },
|
|
16370
16376
|
],
|
|
16371
16377
|
results: [
|
|
16372
16378
|
{ name: 'value', types: ['Any'] },
|
|
@@ -16400,8 +16406,10 @@ const prompts = Object.freeze([
|
|
|
16400
16406
|
},
|
|
16401
16407
|
},
|
|
16402
16408
|
{ name: 'value', types: ['String', 'Array'] },
|
|
16409
|
+
{ name: 'placeholder', types: ['String'] },
|
|
16403
16410
|
{ name: 'options', types: ['KV'] },
|
|
16404
16411
|
{ name: 'multiselect', types: ['Boolean'] },
|
|
16412
|
+
{ name: 'buttonLabel', types: ['String'] },
|
|
16405
16413
|
],
|
|
16406
16414
|
results: [
|
|
16407
16415
|
{ name: 'value', types: ['Any'] },
|
|
@@ -16791,7 +16799,7 @@ var script$y = {
|
|
|
16791
16799
|
},
|
|
16792
16800
|
|
|
16793
16801
|
props: {
|
|
16794
|
-
|
|
16802
|
+
sidebarExpanded: {
|
|
16795
16803
|
type: Boolean,
|
|
16796
16804
|
required: true,
|
|
16797
16805
|
default: false,
|
|
@@ -16918,7 +16926,7 @@ var script$y = {
|
|
|
16918
16926
|
const __vue_script__$y = script$y;
|
|
16919
16927
|
|
|
16920
16928
|
/* template */
|
|
16921
|
-
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.
|
|
16929
|
+
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:({
|
|
16922
16930
|
'background-image': _vm.avatarExists ? ("url(" + _vm.profileAvatarUrl + ")") : 'none',
|
|
16923
16931
|
})}):_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)])};
|
|
16924
16932
|
var __vue_staticRenderFns__$x = [];
|
|
@@ -16926,12 +16934,12 @@ var __vue_staticRenderFns__$x = [];
|
|
|
16926
16934
|
/* style */
|
|
16927
16935
|
const __vue_inject_styles__$z = function (inject) {
|
|
16928
16936
|
if (!inject) return
|
|
16929
|
-
inject("data-v-
|
|
16930
|
-
,inject("data-v-
|
|
16937
|
+
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 })
|
|
16938
|
+
,inject("data-v-2ac14c0d_1", { source: ".topbar-dropdown-menu{z-index:1100}#theme-dropleft .btn{font-family:var(--font-regular)}", map: undefined, media: undefined });
|
|
16931
16939
|
|
|
16932
16940
|
};
|
|
16933
16941
|
/* scoped */
|
|
16934
|
-
const __vue_scope_id__$z = "data-v-
|
|
16942
|
+
const __vue_scope_id__$z = "data-v-2ac14c0d";
|
|
16935
16943
|
/* module identifier */
|
|
16936
16944
|
const __vue_module_identifier__$z = undefined;
|
|
16937
16945
|
/* functional template */
|
|
@@ -17065,10 +17073,6 @@ var __vue_staticRenderFns__$x = [];
|
|
|
17065
17073
|
//
|
|
17066
17074
|
//
|
|
17067
17075
|
//
|
|
17068
|
-
//
|
|
17069
|
-
//
|
|
17070
|
-
//
|
|
17071
|
-
//
|
|
17072
17076
|
|
|
17073
17077
|
|
|
17074
17078
|
var script$x = {
|
|
@@ -17078,11 +17082,6 @@ var script$x = {
|
|
|
17078
17082
|
default: false,
|
|
17079
17083
|
},
|
|
17080
17084
|
|
|
17081
|
-
pinned: {
|
|
17082
|
-
type: Boolean,
|
|
17083
|
-
default: false,
|
|
17084
|
-
},
|
|
17085
|
-
|
|
17086
17085
|
expandOnClick: {
|
|
17087
17086
|
type: Boolean,
|
|
17088
17087
|
default: false,
|
|
@@ -17111,7 +17110,6 @@ var script$x = {
|
|
|
17111
17110
|
|
|
17112
17111
|
data () {
|
|
17113
17112
|
return {
|
|
17114
|
-
sidebarSettings: {},
|
|
17115
17113
|
isMobile: false,
|
|
17116
17114
|
}
|
|
17117
17115
|
},
|
|
@@ -17124,20 +17122,6 @@ var script$x = {
|
|
|
17124
17122
|
|
|
17125
17123
|
set (expanded) {
|
|
17126
17124
|
this.$emit('update:expanded', expanded);
|
|
17127
|
-
|
|
17128
|
-
if (!expanded) {
|
|
17129
|
-
this.isPinned = false;
|
|
17130
|
-
}
|
|
17131
|
-
},
|
|
17132
|
-
},
|
|
17133
|
-
|
|
17134
|
-
isPinned: {
|
|
17135
|
-
get () {
|
|
17136
|
-
return this.pinned
|
|
17137
|
-
},
|
|
17138
|
-
|
|
17139
|
-
set (pinned) {
|
|
17140
|
-
this.$emit('update:pinned', pinned);
|
|
17141
17125
|
},
|
|
17142
17126
|
},
|
|
17143
17127
|
},
|
|
@@ -17156,8 +17140,9 @@ var script$x = {
|
|
|
17156
17140
|
},
|
|
17157
17141
|
},
|
|
17158
17142
|
|
|
17159
|
-
|
|
17160
|
-
this.checkSidebar();
|
|
17143
|
+
mounted () {
|
|
17144
|
+
this.checkSidebar(true);
|
|
17145
|
+
this.checkIfMobile();
|
|
17161
17146
|
|
|
17162
17147
|
this.$root.$on('close-sidebar', this.closeSidebar);
|
|
17163
17148
|
window.addEventListener('resize', this.checkIfMobile);
|
|
@@ -17170,81 +17155,23 @@ var script$x = {
|
|
|
17170
17155
|
|
|
17171
17156
|
methods: {
|
|
17172
17157
|
checkIfMobile: _.throttle(function () {
|
|
17173
|
-
this.isMobile = window.innerWidth < 1024
|
|
17174
|
-
|
|
17175
|
-
if (this.isMobile) {
|
|
17176
|
-
this.closeSidebar();
|
|
17177
|
-
}
|
|
17158
|
+
this.isMobile = window.innerWidth < 1024;
|
|
17178
17159
|
}, 500),
|
|
17179
17160
|
|
|
17180
|
-
checkSidebar () {
|
|
17161
|
+
checkSidebar (initial = false) {
|
|
17181
17162
|
// If sidebar should be disabled on route, close and unpin when navigating to route
|
|
17182
17163
|
if (this.disabledRoutes.includes(this.$route.name)) {
|
|
17183
|
-
this.isPinned = false;
|
|
17184
17164
|
this.isExpanded = false;
|
|
17185
|
-
} else if (this.
|
|
17186
|
-
this.defaultSidebarAppearance();
|
|
17187
|
-
}
|
|
17188
|
-
|
|
17189
|
-
this.checkIfMobile();
|
|
17190
|
-
},
|
|
17191
|
-
|
|
17192
|
-
onHover: _.throttle(function (expand) {
|
|
17193
|
-
if (!expand && !this.pinned && this.expandOnClick) {
|
|
17194
|
-
setTimeout(() => {
|
|
17195
|
-
this.isExpanded = expand;
|
|
17196
|
-
}, expand ? 0 : 100);
|
|
17197
|
-
}
|
|
17198
|
-
}, 300),
|
|
17199
|
-
|
|
17200
|
-
togglePin () {
|
|
17201
|
-
if (this.expandOnClick && !this.isExpanded) {
|
|
17165
|
+
} else if (!this.isMobile && initial) {
|
|
17202
17166
|
this.isExpanded = true;
|
|
17203
17167
|
}
|
|
17204
|
-
|
|
17205
|
-
if (!this.isMobile) {
|
|
17206
|
-
this.isPinned = !this.isPinned;
|
|
17207
|
-
this.saveSettings(this.isPinned);
|
|
17208
|
-
}
|
|
17209
|
-
},
|
|
17210
|
-
|
|
17211
|
-
defaultSidebarAppearance () {
|
|
17212
|
-
const localStorageSettings = JSON.parse(window.localStorage.getItem('sidebarSettings'));
|
|
17213
|
-
|
|
17214
|
-
if (localStorageSettings) {
|
|
17215
|
-
this.sidebarSettings = localStorageSettings;
|
|
17216
|
-
}
|
|
17217
|
-
|
|
17218
|
-
const appSidebar = (localStorageSettings || {})[this.$root.$options.name];
|
|
17219
|
-
|
|
17220
|
-
if (!this.isMobile) {
|
|
17221
|
-
if (appSidebar) {
|
|
17222
|
-
this.isExpanded = appSidebar.pinned;
|
|
17223
|
-
this.isPinned = appSidebar.pinned;
|
|
17224
|
-
} else {
|
|
17225
|
-
this.openSidebar();
|
|
17226
|
-
}
|
|
17227
|
-
} else {
|
|
17228
|
-
this.closeSidebar();
|
|
17229
|
-
}
|
|
17230
|
-
},
|
|
17231
|
-
|
|
17232
|
-
saveSettings (pinned) {
|
|
17233
|
-
if (this.sidebarSettings[this.$root.$options.name]) {
|
|
17234
|
-
this.sidebarSettings[this.$root.$options.name].pinned = pinned;
|
|
17235
|
-
} else {
|
|
17236
|
-
this.sidebarSettings[this.$root.$options.name] = { pinned };
|
|
17237
|
-
}
|
|
17238
|
-
window.localStorage.setItem('sidebarSettings', JSON.stringify(this.sidebarSettings));
|
|
17239
17168
|
},
|
|
17240
17169
|
|
|
17241
17170
|
openSidebar () {
|
|
17242
|
-
this.isPinned = true;
|
|
17243
17171
|
this.isExpanded = true;
|
|
17244
17172
|
},
|
|
17245
17173
|
|
|
17246
17174
|
closeSidebar () {
|
|
17247
|
-
this.isPinned = false;
|
|
17248
17175
|
this.isExpanded = false;
|
|
17249
17176
|
},
|
|
17250
17177
|
},
|
|
@@ -17254,18 +17181,18 @@ var script$x = {
|
|
|
17254
17181
|
const __vue_script__$x = script$x;
|
|
17255
17182
|
|
|
17256
17183
|
/* template */
|
|
17257
|
-
var __vue_render__$w = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('
|
|
17184
|
+
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)};
|
|
17258
17185
|
var __vue_staticRenderFns__$w = [];
|
|
17259
17186
|
|
|
17260
17187
|
/* style */
|
|
17261
17188
|
const __vue_inject_styles__$y = function (inject) {
|
|
17262
17189
|
if (!inject) return
|
|
17263
|
-
inject("data-v-
|
|
17264
|
-
,inject("data-v-
|
|
17190
|
+
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 })
|
|
17191
|
+
,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 });
|
|
17265
17192
|
|
|
17266
17193
|
};
|
|
17267
17194
|
/* scoped */
|
|
17268
|
-
const __vue_scope_id__$y = "data-v-
|
|
17195
|
+
const __vue_scope_id__$y = "data-v-c2dbe544";
|
|
17269
17196
|
/* module identifier */
|
|
17270
17197
|
const __vue_module_identifier__$y = undefined;
|
|
17271
17198
|
/* functional template */
|