@cortezaproject/corteza-vue 2023.3.0-dev.5.1 → 2023.3.0-rc.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/index.es.js CHANGED
@@ -7,6 +7,7 @@ import detector from 'i18next-browser-languagedetector';
7
7
  import multiload from 'i18next-multiload-backend-adapter';
8
8
  import VueI18Next from '@panter/vue-i18next';
9
9
  import path from 'path';
10
+ import { createPopper } from '@popperjs/core';
10
11
  import { PhotoSwipe } from 'v-photoswipe';
11
12
  import pdfjs from 'pdfjs-dist';
12
13
  import Draggable from 'vuedraggable';
@@ -18,7 +19,6 @@ import { library } from '@fortawesome/fontawesome-svg-core';
18
19
  import { faLock } from '@fortawesome/free-solid-svg-icons';
19
20
  import { VueSelect } from 'vue-select';
20
21
  import { mapGetters, mapActions } from 'vuex';
21
- import { createPopper } from '@popperjs/core';
22
22
  import _, { debounce, throttle } from 'lodash';
23
23
  import pino from 'pino';
24
24
  import fzy from 'fuzzysort';
@@ -14140,12 +14140,65 @@ var files = {
14140
14140
  }
14141
14141
  };
14142
14142
 
14143
+ var calculateDropdownPosition = {
14144
+ methods: {
14145
+ calculateDropdownPosition(dropdownList, component, {
14146
+ width
14147
+ }) {
14148
+ /**
14149
+ * We need to explicitly define the dropdown width since
14150
+ * it is usually inherited from the parent with CSS.
14151
+ */
14152
+ dropdownList.style.width = width;
14153
+ /**
14154
+ * Here we position the dropdownList relative to the $refs.toggle Element.
14155
+ *
14156
+ * The 'offset' modifier aligns the dropdown so that the $refs.toggle and
14157
+ * the dropdownList overlap by 1 pixel.
14158
+ *
14159
+ * The 'toggleClass' modifier adds a 'drop-up' class to the Vue Select
14160
+ * wrapper so that we can set some styles for when the dropdown is placed
14161
+ * above.
14162
+ */
14163
+
14164
+ const popper = createPopper(component.$refs.toggle, dropdownList, {
14165
+ placement: 'bottom',
14166
+ modifiers: [{
14167
+ name: 'offset',
14168
+ options: {
14169
+ offset: [0, -1]
14170
+ }
14171
+ }, {
14172
+ name: 'toggleClass',
14173
+ enabled: true,
14174
+ phase: 'write',
14175
+
14176
+ fn({
14177
+ state
14178
+ }) {
14179
+ component.$el.classList.toggle('drop-up', state.placement === 'top');
14180
+ }
14181
+
14182
+ }]
14183
+ });
14184
+ /**
14185
+ * To prevent memory leaks Popper needs to be destroyed.
14186
+ * If you return function, it will be called just before dropdown is removed from DOM.
14187
+ */
14188
+
14189
+ return () => popper.destroy();
14190
+ }
14191
+
14192
+ }
14193
+ };
14194
+
14143
14195
 
14144
14196
 
14145
14197
  var index$1 = /*#__PURE__*/Object.freeze({
14146
14198
  __proto__: null,
14147
14199
  corredor: corredor,
14148
- files: files
14200
+ files: files,
14201
+ vueSelectPosition: calculateDropdownPosition
14149
14202
  });
14150
14203
 
14151
14204
  var script = {
@@ -70710,12 +70763,12 @@ var __vue_staticRenderFns__$3 = [];
70710
70763
  /* style */
70711
70764
  const __vue_inject_styles__$4 = function (inject) {
70712
70765
  if (!inject) return
70713
- inject("data-v-12f1f9ce_0", { source: ".doc-msg[data-v-12f1f9ce]{display:flex;align-items:center;justify-content:center;height:100%;width:100%;background-color:#fff}.doc-err[data-v-12f1f9ce]{cursor:pointer}.doc-err .err-message[data-v-12f1f9ce]{color:red}", map: undefined, media: undefined })
70714
- ,inject("data-v-12f1f9ce_1", { source: ".pdf-preview{text-align:center}.pdf-preview:not(.inline){padding-top:20px;padding-bottom:20px}.pdf-preview:not(.inline) canvas{box-shadow:0 0 3px #1e1E1E41}.pdf-preview.inline{height:200px;overflow-y:scroll;display:inline-block;cursor:zoom-in;width:100%;max-width:500px}.pdf-preview canvas{margin-bottom:10px}.pdf-preview canvas.inline{width:100%}.pdf-preview canvas:not(.inline){margin:0 auto 10px auto;display:block}.pdf-preview canvas:last-of-type{margin-bottom:unset}.pdf-preview .loader{margin-bottom:10px}", map: undefined, media: undefined });
70766
+ inject("data-v-29e0e814_0", { source: ".doc-msg[data-v-29e0e814]{display:flex;align-items:center;justify-content:center;height:100%;width:100%;background-color:#fff}.doc-err[data-v-29e0e814]{cursor:pointer}.doc-err .err-message[data-v-29e0e814]{color:#e54122}", map: undefined, media: undefined })
70767
+ ,inject("data-v-29e0e814_1", { source: ".pdf-preview{text-align:center}.pdf-preview:not(.inline){padding-top:20px;padding-bottom:20px}.pdf-preview:not(.inline) canvas{box-shadow:0 0 3px #1e1E1E41}.pdf-preview.inline{height:200px;overflow-y:scroll;display:inline-block;cursor:zoom-in;width:100%;max-width:500px}.pdf-preview canvas{margin-bottom:10px}.pdf-preview canvas.inline{width:100%}.pdf-preview canvas:not(.inline){margin:0 auto 10px auto;display:block}.pdf-preview canvas:last-of-type{margin-bottom:unset}.pdf-preview .loader{margin-bottom:10px}", map: undefined, media: undefined });
70715
70768
 
70716
70769
  };
70717
70770
  /* scoped */
70718
- const __vue_scope_id__$4 = "data-v-12f1f9ce";
70771
+ const __vue_scope_id__$4 = "data-v-29e0e814";
70719
70772
  /* module identifier */
70720
70773
  const __vue_module_identifier__$4 = undefined;
70721
70774
  /* functional template */
@@ -71629,7 +71682,7 @@ var script$d = {
71629
71682
  const __vue_script__$d = script$d;
71630
71683
 
71631
71684
  /* template */
71632
- var __vue_render__$c = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-input-group',[_c('b-input',{ref:"searchInput",staticClass:"h-100 pr-0 border-light border-right-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,"size":_vm.size},on:{"input":_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(" "),_c('b-input-group-append',{staticClass:"bg-white border-light rounded-right append-group-border",class:{ 'border-left': _vm.showSubmittable }},[(_vm.showSubmittable)?_c('b-button',{class:{
71685
+ var __vue_render__$c = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-input-group',[_c('b-input',{ref:"searchInput",staticClass:"h-100 pr-0 border-light border-right-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,"size":_vm.size},on:{"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(" "),_c('b-input-group-append',{staticClass:"bg-white border-light rounded-right append-group-border",class:{ 'border-left': _vm.showSubmittable }},[(_vm.showSubmittable)?_c('b-button',{class:{
71633
71686
  'search-icon-border': _vm.showSubmittableAndClearable,
71634
71687
  'cursor-default': !_vm.isSubmittable
71635
71688
  },attrs:{"variant":"link","disabled":_vm.disabled},on:_vm._d({},[_vm.isSubmittable,_vm.submitQuery])},[_c('font-awesome-icon',{staticClass:"align-middle",attrs:{"icon":['fas', 'search']}})],1):_vm._e()],1)],1)};
@@ -71638,11 +71691,11 @@ var __vue_staticRenderFns__$c = [];
71638
71691
  /* style */
71639
71692
  const __vue_inject_styles__$e = function (inject) {
71640
71693
  if (!inject) return
71641
- inject("data-v-99c92058_0", { source: "input[data-v-99c92058]:focus::placeholder{color:transparent}input[type=search][data-v-99c92058]::-webkit-search-cancel-button{height:13px;width:13px;padding-left:12px;cursor:pointer;background: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\")}.append-group-border[data-v-99c92058]{border:2px solid #e4e9ef}.search-icon-border[data-v-99c92058]{border-left:2px solid #e4e9ef}.cursor-default[data-v-99c92058]{cursor:default!important}", map: undefined, media: undefined });
71694
+ inject("data-v-931a1f24_0", { source: "input[data-v-931a1f24]:focus::placeholder{color:transparent}input[type=search][data-v-931a1f24]::-webkit-search-cancel-button{height:13px;width:13px;padding-left:12px;cursor:pointer;background: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\")}.append-group-border[data-v-931a1f24]{border:2px solid #f3f5f7}.search-icon-border[data-v-931a1f24]{border-left:2px solid #f3f5f7}.cursor-default[data-v-931a1f24]{cursor:default!important}", map: undefined, media: undefined });
71642
71695
 
71643
71696
  };
71644
71697
  /* scoped */
71645
- const __vue_scope_id__$e = "data-v-99c92058";
71698
+ const __vue_scope_id__$e = "data-v-931a1f24";
71646
71699
  /* module identifier */
71647
71700
  const __vue_module_identifier__$e = undefined;
71648
71701
  /* functional template */
@@ -79637,7 +79690,7 @@ var __vue_staticRenderFns__$m = [];
79637
79690
  /* style */
79638
79691
  const __vue_inject_styles__$q = function (inject) {
79639
79692
  if (!inject) return
79640
- inject("data-v-11e55e3b_0", { source: ".access .btn{background-color:#e4e9ef;border:none}.access .btn:nth-child(2),.access .btn:nth-child(3){margin-left:.2rem!important}", map: undefined, media: undefined });
79693
+ inject("data-v-ea26f95c_0", { source: ".access .btn{background-color:#f3f5f7;border:none}.access .btn:nth-child(2),.access .btn:nth-child(3){margin-left:.2rem!important}", map: undefined, media: undefined });
79641
79694
 
79642
79695
  };
79643
79696
  /* scoped */
@@ -79840,6 +79893,7 @@ var script$s = {
79840
79893
  Rules: __vue_component__$s,
79841
79894
  VueSelect
79842
79895
  },
79896
+ mixins: [calculateDropdownPosition],
79843
79897
  props: {
79844
79898
  labels: {
79845
79899
  required: false,
@@ -80258,6 +80312,18 @@ var script$s = {
80258
80312
  }
80259
80313
 
80260
80314
  return this.$t(`permissions:ui.tooltip.unknown-context.${isUser ? 'user' : 'role'}`);
80315
+ },
80316
+
80317
+ getOptionRoleKey({
80318
+ roleID
80319
+ }) {
80320
+ return roleID;
80321
+ },
80322
+
80323
+ getOptionUserKey({
80324
+ userID
80325
+ }) {
80326
+ return userID;
80261
80327
  }
80262
80328
 
80263
80329
  }
@@ -80267,18 +80333,18 @@ var script$s = {
80267
80333
  const __vue_script__$s = script$s;
80268
80334
 
80269
80335
  /* template */
80270
- var __vue_render__$p = 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":"","ok-disabled":_vm.submitDisabled,"ok-title":_vm.labels.save,"cancel-title":_vm.labels.cancel,"cancel-variant":"light","body-class":"d-flex flex-column p-0"},on:{"hide":_vm.onHide,"ok":_vm.onSubmit}},[_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",attrs:{"data-test-id":"select-user-list-roles","label":"name","clearable":false,"options":_vm.roles,"append-to-body":""},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',{key:r.operation,staticClass:"text-center mb-1 mt-2 w-100",attrs:{"title":_vm.getRuleTooltip(r.access === 'unknown-context', !!e.userID)}},[(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":"","ok-only":"","ok-title":_vm.labels.add.save,"ok-disabled":!_vm.addEnabled},on:{"ok":_vm.onAddEval}},[_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",attrs:{"data-test-id":"select-role","options":_vm.roles,"label":"name","multiple":"","clearable":"","disabled":!!_vm.add.userID,"placeholder":_vm.labels.add.role.placeholder},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",attrs:{"data-test-id":"select-user","disabled":!!_vm.add.roleID.length,"options":_vm.userOptions,"get-option-label":_vm.getUserLabel,"label":"name","clearable":"","placeholder":_vm.labels.add.user.placeholder},on:{"search":_vm.searchUsers},model:{value:(_vm.add.userID),callback:function ($$v) {_vm.$set(_vm.add, "userID", $$v);},expression:"add.userID"}})],1)],1)],1)};
80336
+ var __vue_render__$p = 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":"","ok-disabled":_vm.submitDisabled,"ok-title":_vm.labels.save,"cancel-title":_vm.labels.cancel,"cancel-variant":"light","body-class":"d-flex flex-column p-0"},on:{"hide":_vm.onHide,"ok":_vm.onSubmit}},[_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",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',{key:r.operation,staticClass:"text-center mb-1 mt-2 w-100",attrs:{"title":_vm.getRuleTooltip(r.access === 'unknown-context', !!e.userID)}},[(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":"","ok-only":"","ok-title":_vm.labels.add.save,"ok-disabled":!_vm.addEnabled},on:{"ok":_vm.onAddEval}},[_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",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",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)};
80271
80337
  var __vue_staticRenderFns__$p = [];
80272
80338
 
80273
80339
  /* style */
80274
80340
  const __vue_inject_styles__$t = function (inject) {
80275
80341
  if (!inject) return
80276
- inject("data-v-48c9ff94_0", { source: ".not-allowed[data-v-48c9ff94]{cursor:not-allowed}.bg-extra-light[data-v-48c9ff94]{background-color:#f3f5f7}.pointer[data-v-48c9ff94]{cursor:pointer}.rotate[data-v-48c9ff94]{transform:rotate(45deg)}.hide-eval:hover .rotate[data-v-48c9ff94]{color:#162425!important}", map: undefined, media: undefined })
80277
- ,inject("data-v-48c9ff94_1", { source: "#permissions-modal .v-select,#permissions-modal-eval .v-select{min-width:100%}#permissions-modal .v-select .vs__selected-options,#permissions-modal-eval .v-select .vs__selected-options{flex-wrap:wrap}", map: undefined, media: undefined });
80342
+ inject("data-v-10cd8f99_0", { source: ".not-allowed[data-v-10cd8f99]{cursor:not-allowed}.bg-extra-light[data-v-10cd8f99]{background-color:#f3f5f7}.pointer[data-v-10cd8f99]{cursor:pointer}.rotate[data-v-10cd8f99]{transform:rotate(45deg)}.hide-eval:hover .rotate[data-v-10cd8f99]{color:#162425!important}", map: undefined, media: undefined })
80343
+ ,inject("data-v-10cd8f99_1", { source: "#permissions-modal .v-select,#permissions-modal-eval .v-select{min-width:100%}#permissions-modal .v-select .vs__selected-options,#permissions-modal-eval .v-select .vs__selected-options{flex-wrap:wrap}", map: undefined, media: undefined });
80278
80344
 
80279
80345
  };
80280
80346
  /* scoped */
80281
- const __vue_scope_id__$t = "data-v-48c9ff94";
80347
+ const __vue_scope_id__$t = "data-v-10cd8f99";
80282
80348
  /* module identifier */
80283
80349
  const __vue_module_identifier__$t = undefined;
80284
80350
  /* functional template */
@@ -80739,7 +80805,7 @@ var script$x = {
80739
80805
  }
80740
80806
  }, 300),
80741
80807
 
80742
- calculatePosition(dropdownList, component, {
80808
+ calculateDropdownPosition(dropdownList, component, {
80743
80809
  width
80744
80810
  }) {
80745
80811
  /**
@@ -80835,6 +80901,12 @@ var script$x = {
80835
80901
 
80836
80902
  goToPage(next = true) {
80837
80903
  this.filter.pageCursor = next ? this.filter.nextPage : this.filter.prevPage;
80904
+ },
80905
+
80906
+ getOptionKey({
80907
+ recordID
80908
+ }) {
80909
+ return recordID;
80838
80910
  }
80839
80911
 
80840
80912
  }
@@ -80844,7 +80916,7 @@ var script$x = {
80844
80916
  const __vue_script__$x = script$x;
80845
80917
 
80846
80918
  /* template */
80847
- var __vue_render__$t = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('p',[_vm._v("\n "+_vm._s(_vm.message)+"\n ")]),_vm._v(" "),_c('div',{staticClass:"text-center m-2"},[_c('vue-select',{staticClass:"bg-white w-100 mb-3",attrs:{"options":_vm.options,"loading":_vm.processing,"append-to-body":"","calculate-position":_vm.calculatePosition,"option-value":"recordID","option-text":"label","placeholder":"Select record","filterable":false},on:{"search":_vm.search},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}},[(_vm.showPagination)?_c('c-pagination',{attrs:{"slot":"list-footer","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)}},slot:"list-footer"}):_vm._e()],1),_vm._v(" "),_c('b-button',{attrs:{"disabled":_vm.loading},on:{"click":function($event){_vm.$emit('submit', { value: _vm.encodeValue() });}}},[_vm._v("\n "+_vm._s(_vm.pVal('buttonLabel', 'Submit'))+"\n ")])],1)])};
80919
+ var __vue_render__$t = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('p',[_vm._v("\n "+_vm._s(_vm.message)+"\n ")]),_vm._v(" "),_c('div',{staticClass:"text-center m-2"},[_c('vue-select',{staticClass:"bg-white w-100 mb-3",attrs:{"options":_vm.options,"get-option-key":_vm.getOptionKey,"loading":_vm.processing,"append-to-body":"","calculate-position":_vm.calculateDropdownPosition,"option-value":"recordID","option-text":"label","placeholder":"Select record","filterable":false},on:{"search":_vm.search},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}},[(_vm.showPagination)?_c('c-pagination',{attrs:{"slot":"list-footer","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)}},slot:"list-footer"}):_vm._e()],1),_vm._v(" "),_c('b-button',{attrs:{"disabled":_vm.loading},on:{"click":function($event){_vm.$emit('submit', { value: _vm.encodeValue() });}}},[_vm._v("\n "+_vm._s(_vm.pVal('buttonLabel', 'Submit'))+"\n ")])],1)])};
80848
80920
  var __vue_staticRenderFns__$t = [];
80849
80921
 
80850
80922
  /* style */
@@ -82147,7 +82219,7 @@ const __vue_script__$F = script$F;
82147
82219
  /* template */
82148
82220
  var __vue_render__$B = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"header-navigation d-flex align-items-center sticky-top pr-3"},[_c('div',{staticClass:"spacer",class:{
82149
82221
  'expanded': _vm.sidebarPinned,
82150
- }}),_vm._v(" "),_c('h2',{staticClass:"d-none d-sm-inline-block text-truncate mb-0"},[_vm._t("title")],2),_vm._v(" "),_c('div',{staticClass:"ml-auto text-sm-nowrap"},[_vm._t("tools")],2),_vm._v(" "),(!_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",attrs:{"variant":"outline-light","href":_vm.appSelectorURL,"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",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,2593833445)},[_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":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@crust.tech","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:({
82222
+ }}),_vm._v(" "),_c('h2',{staticClass:"d-none d-sm-inline-block text-truncate title mb-0"},[_vm._t("title")],2),_vm._v(" "),_c('div',{staticClass:"ml-auto text-sm-nowrap"},[_vm._t("tools")],2),_vm._v(" "),(!_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",attrs:{"variant":"outline-light","href":_vm.appSelectorURL,"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",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,2593833445)},[_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":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@crust.tech","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:({
82151
82223
  'background-image': _vm.avatarExists ? ("url(" + _vm.profileAvatarUrl + ")") : 'none',
82152
82224
  })}):_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,1153089912)},[_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":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)};
82153
82225
  var __vue_staticRenderFns__$B = [];
@@ -82155,12 +82227,12 @@ var __vue_staticRenderFns__$B = [];
82155
82227
  /* style */
82156
82228
  const __vue_inject_styles__$G = function (inject) {
82157
82229
  if (!inject) return
82158
- inject("data-v-d534c544_0", { source: ".icon-logo[data-v-d534c544]{height:calc(64px / 2);background-repeat:no-repeat;background-position:center}.nav-icon[data-v-d534c544]{width:40px;height:40px}.nav-user-icon[data-v-d534c544]{width:50px;height:50px}.header-navigation[data-v-d534c544]{width:100vw;height:64px;background-color:#f3f3f5!important;padding-left:calc(3.5rem + 6px)}.topbar-dropdown-menu[data-v-d534c544]{max-height:80vh;overflow-y:auto}.avatar[data-v-d534c544]{border-radius:50%;background-size:cover;background-repeat:no-repeat;background-position:center}.avatar[data-v-d534c544]: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-d534c544]{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-d534c544]{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}", map: undefined, media: undefined })
82159
- ,inject("data-v-d534c544_1", { source: ".topbar-tools .vue-portal-target{display:flex;align-items:center}", map: undefined, media: undefined });
82230
+ inject("data-v-1f52662c_0", { source: ".icon-logo[data-v-1f52662c]{height:calc(64px / 2);background-repeat:no-repeat;background-position:center}.nav-icon[data-v-1f52662c]{width:40px;height:40px}.nav-user-icon[data-v-1f52662c]{min-width:50px;min-height:50px}.header-navigation[data-v-1f52662c]{width:100vw;height:64px;background-color:#f9fafb!important;padding-left:calc(3.5rem + 6px)}.header-navigation .title>*[data-v-1f52662c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-dropdown-menu[data-v-1f52662c]{max-height:80vh;overflow-y:auto}.avatar[data-v-1f52662c]{border-radius:50%;background-size:cover;background-repeat:no-repeat;background-position:center}.avatar[data-v-1f52662c]: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-1f52662c]{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-1f52662c]{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}", map: undefined, media: undefined })
82231
+ ,inject("data-v-1f52662c_1", { source: ".topbar-tools .vue-portal-target{display:flex;align-items:center}", map: undefined, media: undefined });
82160
82232
 
82161
82233
  };
82162
82234
  /* scoped */
82163
- const __vue_scope_id__$G = "data-v-d534c544";
82235
+ const __vue_scope_id__$G = "data-v-1f52662c";
82164
82236
  /* module identifier */
82165
82237
  const __vue_module_identifier__$G = undefined;
82166
82238
  /* functional template */
@@ -82219,7 +82291,8 @@ var script$G = {
82219
82291
 
82220
82292
  data() {
82221
82293
  return {
82222
- sidebar_settings: {}
82294
+ sidebarSettings: {},
82295
+ isMobile: false
82223
82296
  };
82224
82297
  },
82225
82298
 
@@ -82243,23 +82316,21 @@ var script$G = {
82243
82316
  this.$emit('update:pinned', pinned);
82244
82317
  }
82245
82318
 
82246
- },
82247
-
82248
- isMobile() {
82249
- return window.innerWidth < 1024 || /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
82250
82319
  }
82251
-
82252
82320
  },
82253
82321
 
82254
82322
  created() {
82323
+ this.checkIfMobile();
82255
82324
  this.$root.$on('close-sidebar', () => {
82256
82325
  this.isExpanded = false;
82257
82326
  this.isPinned = false;
82258
82327
  });
82328
+ window.addEventListener('resize', this.checkIfMobile);
82259
82329
  },
82260
82330
 
82261
82331
  beforeDestroy() {
82262
82332
  this.$root.$off('close-sidebar');
82333
+ window.removeEventListener('resize', this.checkIfMobile);
82263
82334
  },
82264
82335
 
82265
82336
  watch: {
@@ -82273,6 +82344,10 @@ var script$G = {
82273
82344
  }
82274
82345
  },
82275
82346
  methods: {
82347
+ checkIfMobile: throttle(function () {
82348
+ this.isMobile = window.innerWidth < 1024 || /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
82349
+ }, 500),
82350
+
82276
82351
  checkSidebar() {
82277
82352
  // If sidebar should be disabled on route, close and unpin when navigating to route
82278
82353
  if (this.disabledRoutes.includes(this.$route.name)) {
@@ -82297,10 +82372,10 @@ var script$G = {
82297
82372
  },
82298
82373
 
82299
82374
  defaultSidebarAppearance() {
82300
- const localstorage_settings = JSON.parse(window.localStorage.getItem('sidebar_settings'));
82375
+ const localstorage_settings = JSON.parse(window.localStorage.getItem('sidebarSettings'));
82301
82376
 
82302
82377
  if (localstorage_settings) {
82303
- this.sidebar_settings = localstorage_settings;
82378
+ this.sidebarSettings = localstorage_settings;
82304
82379
  }
82305
82380
 
82306
82381
  const app_sidebar = (localstorage_settings || {})[this.$root.$options.name];
@@ -82318,15 +82393,15 @@ var script$G = {
82318
82393
  },
82319
82394
 
82320
82395
  saveSettings(pinned) {
82321
- if (this.sidebar_settings[this.$root.$options.name]) {
82322
- this.sidebar_settings[this.$root.$options.name].pinned = pinned;
82396
+ if (this.sidebarSettings[this.$root.$options.name]) {
82397
+ this.sidebarSettings[this.$root.$options.name].pinned = pinned;
82323
82398
  } else {
82324
- this.sidebar_settings[this.$root.$options.name] = {
82399
+ this.sidebarSettings[this.$root.$options.name] = {
82325
82400
  pinned: pinned
82326
82401
  };
82327
82402
  }
82328
82403
 
82329
- window.localStorage.setItem('sidebar_settings', JSON.stringify(this.sidebar_settings));
82404
+ window.localStorage.setItem('sidebarSettings', JSON.stringify(this.sidebarSettings));
82330
82405
  },
82331
82406
 
82332
82407
  openSidebar() {
@@ -82352,12 +82427,12 @@ var __vue_staticRenderFns__$C = [];
82352
82427
  /* style */
82353
82428
  const __vue_inject_styles__$H = function (inject) {
82354
82429
  if (!inject) return
82355
- inject("data-v-32b752b4_0", { source: ".tab[data-v-32b752b4]{z-index:1021;top:0;height:64px;width:66px}.icon[data-v-32b752b4]{max-height:40px;max-width:40px}.logo[data-v-32b752b4]{max-height:40px}.sidebar-header[data-v-32b752b4]{height:64px}", map: undefined, media: undefined })
82356
- ,inject("data-v-32b752b4_1", { source: ".sidebar{display:flex!important;left:calc(-320px)!important;-webkit-transition:left .15s ease-in-out;-moz-transition:left .15s ease-in-out;-o-transition:left .15s ease-in-out;transition:left .15s ease-in-out}.sidebar header{background-color:#fff}.sidebar header.expanded{background-color:#f4f7fa!important}.sidebar.expanded{left:0!important;-webkit-transition:left .2s ease-in-out;-moz-transition:left .2s ease-in-out;-o-transition:left .2s ease-in-out;transition:left .2s ease-in-out}[dir=rtl] .sidebar{right:calc(-320px)!important;-webkit-transition:right .15s ease-in-out;-moz-transition:right .15s ease-in-out;-o-transition:right .15s ease-in-out;transition:right .15s ease-in-out}[dir=rtl] .sidebar header{background-color:#fff}[dir=rtl] .sidebar header.expanded{background-color:#f4f7fa!important}[dir=rtl] .sidebar.expanded{right:0!important;-webkit-transition:right .2s ease-in-out;-moz-transition:right .2s ease-in-out;-o-transition:right .2s ease-in-out;transition:right .2s ease-in-out}", map: undefined, media: undefined });
82430
+ inject("data-v-70b2c2b4_0", { source: ".tab[data-v-70b2c2b4]{z-index:1021;top:0;height:64px;width:66px}.icon[data-v-70b2c2b4]{max-height:40px;max-width:40px}.logo[data-v-70b2c2b4]{max-height:40px}.sidebar-header[data-v-70b2c2b4]{height:64px}", map: undefined, media: undefined })
82431
+ ,inject("data-v-70b2c2b4_1", { source: ".sidebar{display:flex!important;left:calc(-320px)!important;-webkit-transition:left .15s ease-in-out;-moz-transition:left .15s ease-in-out;-o-transition:left .15s ease-in-out;transition:left .15s ease-in-out}.sidebar header{background-color:#fff}.sidebar header.expanded{background-color:#f4f7fa!important}.sidebar.expanded{left:0!important;-webkit-transition:left .2s ease-in-out;-moz-transition:left .2s ease-in-out;-o-transition:left .2s ease-in-out;transition:left .2s ease-in-out}[dir=rtl] .sidebar{right:calc(-320px)!important;-webkit-transition:right .15s ease-in-out;-moz-transition:right .15s ease-in-out;-o-transition:right .15s ease-in-out;transition:right .15s ease-in-out}[dir=rtl] .sidebar header{background-color:#fff}[dir=rtl] .sidebar header.expanded{background-color:#f4f7fa!important}[dir=rtl] .sidebar.expanded{right:0!important;-webkit-transition:right .2s ease-in-out;-moz-transition:right .2s ease-in-out;-o-transition:right .2s ease-in-out;transition:right .2s ease-in-out}", map: undefined, media: undefined });
82357
82432
 
82358
82433
  };
82359
82434
  /* scoped */
82360
- const __vue_scope_id__$H = "data-v-32b752b4";
82435
+ const __vue_scope_id__$H = "data-v-70b2c2b4";
82361
82436
  /* module identifier */
82362
82437
  const __vue_module_identifier__$H = undefined;
82363
82438
  /* functional template */
@@ -83860,8 +83935,8 @@ var script$W = {
83860
83935
 
83861
83936
  style() {
83862
83937
  return {
83863
- fill: this.options.color || '#000000',
83864
- backgroundColor: this.options.backgroundColor || '#ffffff'
83938
+ fill: this.options.color || '#162425',
83939
+ backgroundColor: this.options.backgroundColor || '#FFFFFF'
83865
83940
  };
83866
83941
  },
83867
83942
 
@@ -84421,6 +84496,7 @@ var script$Z = {
84421
84496
  components: {
84422
84497
  VueSelect
84423
84498
  },
84499
+ mixins: [calculateDropdownPosition],
84424
84500
  props: {
84425
84501
  value: {
84426
84502
  type: String,
@@ -84501,6 +84577,12 @@ var script$Z = {
84501
84577
 
84502
84578
  onInput(sensitivityLevelID) {
84503
84579
  this.$emit('input', sensitivityLevelID ? sensitivityLevelID : NoID);
84580
+ },
84581
+
84582
+ getOptionKey({
84583
+ sensitivityLevelID
84584
+ }) {
84585
+ return sensitivityLevelID;
84504
84586
  }
84505
84587
 
84506
84588
  }
@@ -84510,7 +84592,7 @@ var script$Z = {
84510
84592
  const __vue_script__$Z = script$Z;
84511
84593
 
84512
84594
  /* template */
84513
- var __vue_render__$T = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('vue-select',{key:"type",staticClass:"bg-white",attrs:{"value":_vm._value,"disabled":_vm._disabled,"options":_vm.sensitivityLevels,"get-option-label":_vm.getLabel,"placeholder":_vm.placeholder,"reduce":function (l) { return l.sensitivityLevelID; },"append-to-body":""},on:{"input":_vm.onInput}})};
84595
+ var __vue_render__$T = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('vue-select',{key:"type",staticClass:"bg-white",attrs:{"value":_vm._value,"disabled":_vm._disabled,"options":_vm.sensitivityLevels,"get-option-label":_vm.getLabel,"get-option-key":_vm.getOptionKey,"placeholder":_vm.placeholder,"reduce":function (l) { return l.sensitivityLevelID; },"append-to-body":"","calculate-position":_vm.calculateDropdownPosition},on:{"input":_vm.onInput}})};
84514
84596
  var __vue_staticRenderFns__$T = [];
84515
84597
 
84516
84598
  /* style */
@@ -84647,11 +84729,12 @@ var script$_ = {
84647
84729
  },
84648
84730
 
84649
84731
  getPagination() {
84650
- const {
84732
+ let {
84651
84733
  total = 0,
84652
84734
  limit = 10,
84653
84735
  page = 1
84654
84736
  } = this.pagination;
84737
+ total = isNaN(total) ? 0 : total;
84655
84738
  const pagination = {
84656
84739
  from: (page - 1) * limit + 1,
84657
84740
  to: limit > 0 ? Math.min(page * limit, total) : total,
@@ -85124,7 +85207,7 @@ var __vue_staticRenderFns__$X = [];
85124
85207
  /* style */
85125
85208
  const __vue_inject_styles__$12 = function (inject) {
85126
85209
  if (!inject) return
85127
- inject("data-v-2c86815c_0", { source: ".layout{height:100vh;width:100vw;display:grid;grid-template-rows:auto 400px;grid-template-columns:300px auto;align-content:stretch;grid-template-areas:\"side main\" \"side controls\"}.layout aside{grid-area:side;overflow:auto}.layout main{grid-area:main;background-image:linear-gradient(135deg,#f3f3f5 21.43%,#fff 21.43%,#fff 50%,#f3f3f5 50%,#f3f3f5 71.43%,#fff 71.43%,#fff 100%);background-size:35px 35px;overflow:auto}.layout .controls{grid-area:controls;overflow:auto}.layout .controls .control-group{float:left}.layout .scenario{cursor:pointer}", map: undefined, media: undefined });
85210
+ inject("data-v-36e9ba5b_0", { source: ".layout{height:100vh;width:100vw;display:grid;grid-template-rows:auto 400px;grid-template-columns:300px auto;align-content:stretch;grid-template-areas:\"side main\" \"side controls\"}.layout aside{grid-area:side;overflow:auto}.layout main{grid-area:main;background-image:linear-gradient(135deg,#f9fafb 21.43%,#fff 21.43%,#fff 50%,#f9fafb 50%,#f9fafb 71.43%,#fff 71.43%,#fff 100%);background-size:35px 35px;overflow:auto}.layout .controls{grid-area:controls;overflow:auto}.layout .controls .control-group{float:left}.layout .scenario{cursor:pointer}", map: undefined, media: undefined });
85128
85211
 
85129
85212
  };
85130
85213
  /* scoped */