@cortezaproject/corteza-vue 2023.3.0-dev.6 → 2023.3.0-rc.2
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 +88 -9
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +88 -9
- package/dist/index.js.map +1 -1
- package/dist/mixins/index.d.ts +1 -0
- package/dist/mixins/vue-select-position.d.ts +11 -0
- package/package.json +2 -2
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 = {
|
|
@@ -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-
|
|
80277
|
-
,inject("data-v-
|
|
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-
|
|
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
|
-
|
|
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.
|
|
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 */
|
|
@@ -84424,6 +84496,7 @@ var script$Z = {
|
|
|
84424
84496
|
components: {
|
|
84425
84497
|
VueSelect
|
|
84426
84498
|
},
|
|
84499
|
+
mixins: [calculateDropdownPosition],
|
|
84427
84500
|
props: {
|
|
84428
84501
|
value: {
|
|
84429
84502
|
type: String,
|
|
@@ -84504,6 +84577,12 @@ var script$Z = {
|
|
|
84504
84577
|
|
|
84505
84578
|
onInput(sensitivityLevelID) {
|
|
84506
84579
|
this.$emit('input', sensitivityLevelID ? sensitivityLevelID : NoID);
|
|
84580
|
+
},
|
|
84581
|
+
|
|
84582
|
+
getOptionKey({
|
|
84583
|
+
sensitivityLevelID
|
|
84584
|
+
}) {
|
|
84585
|
+
return sensitivityLevelID;
|
|
84507
84586
|
}
|
|
84508
84587
|
|
|
84509
84588
|
}
|
|
@@ -84513,7 +84592,7 @@ var script$Z = {
|
|
|
84513
84592
|
const __vue_script__$Z = script$Z;
|
|
84514
84593
|
|
|
84515
84594
|
/* template */
|
|
84516
|
-
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}})};
|
|
84517
84596
|
var __vue_staticRenderFns__$T = [];
|
|
84518
84597
|
|
|
84519
84598
|
/* style */
|